🌱 🏗️ ⬆️ add expense table 🎨 🔧

This commit is contained in:
2025-05-15 17:45:22 +02:00
parent d17fded423
commit be5225c85d
100 changed files with 6250 additions and 8757 deletions

2
node_modules/vue/dist/vue.cjs.js generated vendored
View File

@@ -1,5 +1,5 @@
/**
* vue v3.5.13
* vue v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/

View File

@@ -1,5 +1,5 @@
/**
* vue v3.5.13
* vue v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/

View File

@@ -1,5 +1,5 @@
/**
* vue v3.5.13
* vue v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -396,6 +396,10 @@ class EffectScope {
* @internal
*/
this._active = true;
/**
* @internal track `on` calls, allow `on` call multiple times
*/
this._on = 0;
/**
* @internal
*/
@@ -466,14 +470,20 @@ class EffectScope {
* @internal
*/
on() {
activeEffectScope = this;
if (++this._on === 1) {
this.prevScope = activeEffectScope;
activeEffectScope = this;
}
}
/**
* This should only be called on non-detached scopes
* @internal
*/
off() {
activeEffectScope = this.parent;
if (this._on > 0 && --this._on === 0) {
activeEffectScope = this.prevScope;
this.prevScope = void 0;
}
}
stop(fromParent) {
if (this._active) {
@@ -555,7 +565,7 @@ class ReactiveEffect {
}
resume() {
if (this.flags & 64) {
this.flags &= ~64;
this.flags &= -65;
if (pausedQueueEffects.has(this)) {
pausedQueueEffects.delete(this);
this.trigger();
@@ -595,7 +605,7 @@ class ReactiveEffect {
cleanupDeps(this);
activeSub = prevEffect;
shouldTrack = prevShouldTrack;
this.flags &= ~2;
this.flags &= -3;
}
}
stop() {
@@ -606,7 +616,7 @@ class ReactiveEffect {
this.deps = this.depsTail = void 0;
cleanupEffect(this);
this.onStop && this.onStop();
this.flags &= ~1;
this.flags &= -2;
}
}
trigger() {
@@ -656,7 +666,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
e = next;
}
}
@@ -667,7 +677,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
if (e.flags & 1) {
try {
;
@@ -723,17 +733,16 @@ function refreshComputed(computed) {
if (computed.flags & 4 && !(computed.flags & 16)) {
return;
}
computed.flags &= ~16;
computed.flags &= -17;
if (computed.globalVersion === globalVersion) {
return;
}
computed.globalVersion = globalVersion;
const dep = computed.dep;
computed.flags |= 2;
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
computed.flags &= ~2;
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
return;
}
computed.flags |= 2;
const dep = computed.dep;
const prevSub = activeSub;
const prevShouldTrack = shouldTrack;
activeSub = computed;
@@ -742,6 +751,7 @@ function refreshComputed(computed) {
prepareDeps(computed);
const value = computed.fn(computed._value);
if (dep.version === 0 || hasChanged(value, computed._value)) {
computed.flags |= 128;
computed._value = value;
dep.version++;
}
@@ -752,7 +762,7 @@ function refreshComputed(computed) {
activeSub = prevSub;
shouldTrack = prevShouldTrack;
cleanupDeps(computed);
computed.flags &= ~2;
computed.flags &= -3;
}
}
function removeSub(link, soft = false) {
@@ -771,7 +781,7 @@ function removeSub(link, soft = false) {
if (dep.subs === link) {
dep.subs = prevSub;
if (!prevSub && dep.computed) {
dep.computed.flags &= ~4;
dep.computed.flags &= -5;
for (let l = dep.computed.deps; l; l = l.nextDep) {
removeSub(l, true);
}
@@ -1704,14 +1714,14 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
return target;
}
const existingProxy = proxyMap.get(target);
if (existingProxy) {
return existingProxy;
}
const targetType = getTargetType(target);
if (targetType === 0 /* INVALID */) {
return target;
}
const existingProxy = proxyMap.get(target);
if (existingProxy) {
return existingProxy;
}
const proxy = new Proxy(
target,
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
@@ -2555,11 +2565,11 @@ function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
queue.splice(i, 1);
i--;
if (cb.flags & 4) {
cb.flags &= ~1;
cb.flags &= -2;
}
cb();
if (!(cb.flags & 4)) {
cb.flags &= ~1;
cb.flags &= -2;
}
}
}
@@ -2584,10 +2594,10 @@ function flushPostFlushCbs(seen) {
continue;
}
if (cb.flags & 4) {
cb.flags &= ~1;
cb.flags &= -2;
}
if (!(cb.flags & 8)) cb();
cb.flags &= ~1;
cb.flags &= -2;
}
activePostFlushCbs = null;
postFlushIndex = 0;
@@ -2623,7 +2633,7 @@ function flushJobs(seen) {
for (; flushIndex < queue.length; flushIndex++) {
const job = queue[flushIndex];
if (job) {
job.flags &= ~1;
job.flags &= -2;
}
}
flushIndex = -1;
@@ -3112,7 +3122,7 @@ const TeleportImpl = {
namespace,
slotScopeIds
);
traverseStaticChildren(n1, n2, true);
traverseStaticChildren(n1, n2, false);
} else if (!optimized) {
patchChildren(
n1,
@@ -4797,6 +4807,9 @@ const KeepAliveImpl = {
{
devtoolsComponentAdded(instance2);
}
{
instance2.__keepAliveStorageContainer = storageContainer;
}
};
function unmount(vnode) {
resetShapeFlag(vnode);
@@ -4884,7 +4897,7 @@ const KeepAliveImpl = {
);
const { include, exclude, max } = props;
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
vnode.shapeFlag &= ~256;
vnode.shapeFlag &= -257;
current = vnode;
return rawVNode;
}
@@ -4971,8 +4984,8 @@ function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
}, target);
}
function resetShapeFlag(vnode) {
vnode.shapeFlag &= ~256;
vnode.shapeFlag &= ~512;
vnode.shapeFlag &= -257;
vnode.shapeFlag &= -513;
}
function getInnerChild(vnode) {
return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;
@@ -5087,14 +5100,16 @@ function renderList(source, renderItem, cache, index) {
if (sourceIsArray || isString(source)) {
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
let needsWrap = false;
let isReadonlySource = false;
if (sourceIsReactiveArray) {
needsWrap = !isShallow(source);
isReadonlySource = isReadonly(source);
source = shallowReadArray(source);
}
ret = new Array(source.length);
for (let i = 0, l = source.length; i < l; i++) {
ret[i] = renderItem(
needsWrap ? toReactive(source[i]) : source[i],
needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
i,
void 0,
cached && cached[i]
@@ -6116,11 +6131,9 @@ function createAppAPI(render, hydrate) {
}
{
context.reload = () => {
render(
cloneVNode(vnode),
rootContainer,
namespace
);
const cloned = cloneVNode(vnode);
cloned.el = null;
render(cloned, rootContainer, namespace);
};
}
if (isHydrate && hydrate) {
@@ -6643,7 +6656,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
return rawSlot;
}
const normalized = withCtx((...args) => {
if (currentInstance && (!ctx || ctx.root === currentInstance.root)) {
if (currentInstance && !(ctx === null && currentRenderingInstance) && !(ctx && ctx.root !== currentInstance.root)) {
warn$1(
`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.`
);
@@ -6682,7 +6695,7 @@ const normalizeVNodeSlots = (instance, children) => {
};
const assignSlots = (slots, children, optimized) => {
for (const key in children) {
if (optimized || key !== "_") {
if (optimized || !isInternalKey(key)) {
slots[key] = children[key];
}
}
@@ -7368,8 +7381,8 @@ function baseCreateRenderer(options, createHydrationFns) {
endMeasure(instance, `init`);
}
}
if (isHmrUpdating) initialVNode.el = null;
if (instance.asyncDep) {
if (isHmrUpdating) initialVNode.el = null;
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
if (!initialVNode.el) {
const placeholder = instance.subTree = createVNode(Comment);
@@ -7931,7 +7944,13 @@ function baseCreateRenderer(options, createHydrationFns) {
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
} else {
const { leave, delayLeave, afterLeave } = transition;
const remove2 = () => hostInsert(el, container, anchor);
const remove2 = () => {
if (vnode.ctx.isUnmounted) {
hostRemove(el);
} else {
hostInsert(el, container, anchor);
}
};
const performLeave = () => {
leave(el, () => {
remove2();
@@ -7964,7 +7983,9 @@ function baseCreateRenderer(options, createHydrationFns) {
optimized = false;
}
if (ref != null) {
pauseTracking();
setRef(ref, null, parentSuspense, vnode, true);
resetTracking();
}
if (cacheIndex != null) {
parentComponent.renderCache[cacheIndex] = void 0;
@@ -8076,12 +8097,27 @@ function baseCreateRenderer(options, createHydrationFns) {
if (instance.type.__hmrId) {
unregisterHMR(instance);
}
const { bum, scope, job, subTree, um, m, a } = instance;
const {
bum,
scope,
job,
subTree,
um,
m,
a,
parent,
slots: { __: slotCacheKeys }
} = instance;
invalidateMount(m);
invalidateMount(a);
if (bum) {
invokeArrayFns(bum);
}
if (parent && isArray(slotCacheKeys)) {
slotCacheKeys.forEach((v) => {
parent.renderCache[v] = void 0;
});
}
scope.stop();
if (job) {
job.flags |= 8;
@@ -8177,8 +8213,8 @@ function toggleRecurse({ effect, job }, allowed) {
effect.flags |= 32;
job.flags |= 4;
} else {
effect.flags &= ~32;
job.flags &= ~4;
effect.flags &= -33;
job.flags &= -5;
}
}
function needTransition(parentSuspense, transition) {
@@ -8205,6 +8241,9 @@ function traverseStaticChildren(n1, n2, shallow = false) {
if (c2.type === Comment && !c2.el) {
c2.el = c1.el;
}
{
c2.el && (c2.el.__vnode = c2);
}
}
}
}
@@ -9550,8 +9589,8 @@ function isSameVNodeType(n1, n2) {
if (n2.shapeFlag & 6 && n1.component) {
const dirtyInstances = hmrDirtyComponents.get(n2.type);
if (dirtyInstances && dirtyInstances.has(n1.component)) {
n1.shapeFlag &= ~256;
n2.shapeFlag &= ~512;
n1.shapeFlag &= -257;
n2.shapeFlag &= -513;
return false;
}
}
@@ -10012,7 +10051,7 @@ function setupComponent(instance, isSSR = false, optimized = false) {
const { props, children } = instance.vnode;
const isStateful = isStatefulComponent(instance);
initProps(instance, props, isStateful, isSSR);
initSlots(instance, children, optimized);
initSlots(instance, children, optimized || isSSR);
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
isSSR && setInSSRSetupState(false);
return setupResult;
@@ -10343,13 +10382,15 @@ function initCustomFormatter() {
if (obj.__isVue) {
return ["div", vueStyle, `VueInstance`];
} else if (isRef(obj)) {
pauseTracking();
const value = obj.value;
resetTracking();
return [
"div",
{},
["span", vueStyle, genRefFlag(obj)],
"<",
// avoid debugger accessing value affecting behavior
formatValue("_value" in obj ? obj._value : obj),
formatValue(value),
`>`
];
} else if (isReactive(obj)) {
@@ -10530,7 +10571,7 @@ function isMemoSame(cached, memo) {
return true;
}
const version = "3.5.13";
const version = "3.5.14";
const warn = warn$1 ;
const ErrorTypeStrings = ErrorTypeStrings$1 ;
const devtools = devtools$1 ;
@@ -11348,7 +11389,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
}
return false;
}
if (key === "spellcheck" || key === "draggable" || key === "translate") {
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
return false;
}
if (key === "form") {
@@ -11837,6 +11878,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
instance.vnode.el,
moveClass
)) {
prevChildren = [];
return;
}
prevChildren.forEach(callPendingCbs);
@@ -11860,6 +11902,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
};
el.addEventListener("transitionend", cb);
});
prevChildren = [];
});
return () => {
const rawProps = toRaw(props);
@@ -14709,6 +14752,7 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
}
}
let cachedAsArray = false;
const slotCacheKeys = [];
if (toCache.length === children.length && node.type === 1) {
if (node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && isArray(node.codegenNode.children)) {
node.codegenNode.children = getCacheExpression(
@@ -14718,6 +14762,7 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
} else if (node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
const slot = getSlotNode(node.codegenNode, "default");
if (slot) {
slotCacheKeys.push(context.cached.length);
slot.returns = getCacheExpression(
createArrayExpression(slot.returns)
);
@@ -14727,6 +14772,7 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
const slotName = findDir(node, "slot", true);
const slot = slotName && slotName.arg && getSlotNode(parent.codegenNode, slotName.arg);
if (slot) {
slotCacheKeys.push(context.cached.length);
slot.returns = getCacheExpression(
createArrayExpression(slot.returns)
);
@@ -14736,9 +14782,18 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
}
if (!cachedAsArray) {
for (const child of toCache) {
slotCacheKeys.push(context.cached.length);
child.codegenNode = context.cache(child.codegenNode);
}
}
if (slotCacheKeys.length && node.type === 1 && node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
node.codegenNode.children.properties.push(
createObjectProperty(
`__`,
createSimpleExpression(JSON.stringify(slotCacheKeys), false)
)
);
}
function getCacheExpression(value) {
const exp = context.cache(value);
if (inFor && context.hmr) {
@@ -17383,8 +17438,7 @@ const transformModel$1 = (dir, node, context) => {
context.onError(createCompilerError(44, exp.loc));
return createTransformProps();
}
const maybeRef = false;
if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) {
if (!expString.trim() || !isMemberExpression(exp) && true) {
context.onError(
createCompilerError(42, exp.loc)
);

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
/**
* vue v3.5.13
* vue v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/

154
node_modules/vue/dist/vue.global.js generated vendored
View File

@@ -1,5 +1,5 @@
/**
* vue v3.5.13
* vue v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -399,6 +399,10 @@ var Vue = (function (exports) {
* @internal
*/
this._active = true;
/**
* @internal track `on` calls, allow `on` call multiple times
*/
this._on = 0;
/**
* @internal
*/
@@ -469,14 +473,20 @@ var Vue = (function (exports) {
* @internal
*/
on() {
activeEffectScope = this;
if (++this._on === 1) {
this.prevScope = activeEffectScope;
activeEffectScope = this;
}
}
/**
* This should only be called on non-detached scopes
* @internal
*/
off() {
activeEffectScope = this.parent;
if (this._on > 0 && --this._on === 0) {
activeEffectScope = this.prevScope;
this.prevScope = void 0;
}
}
stop(fromParent) {
if (this._active) {
@@ -558,7 +568,7 @@ var Vue = (function (exports) {
}
resume() {
if (this.flags & 64) {
this.flags &= ~64;
this.flags &= -65;
if (pausedQueueEffects.has(this)) {
pausedQueueEffects.delete(this);
this.trigger();
@@ -598,7 +608,7 @@ var Vue = (function (exports) {
cleanupDeps(this);
activeSub = prevEffect;
shouldTrack = prevShouldTrack;
this.flags &= ~2;
this.flags &= -3;
}
}
stop() {
@@ -609,7 +619,7 @@ var Vue = (function (exports) {
this.deps = this.depsTail = void 0;
cleanupEffect(this);
this.onStop && this.onStop();
this.flags &= ~1;
this.flags &= -2;
}
}
trigger() {
@@ -659,7 +669,7 @@ var Vue = (function (exports) {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
e = next;
}
}
@@ -670,7 +680,7 @@ var Vue = (function (exports) {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
if (e.flags & 1) {
try {
;
@@ -726,17 +736,16 @@ var Vue = (function (exports) {
if (computed.flags & 4 && !(computed.flags & 16)) {
return;
}
computed.flags &= ~16;
computed.flags &= -17;
if (computed.globalVersion === globalVersion) {
return;
}
computed.globalVersion = globalVersion;
const dep = computed.dep;
computed.flags |= 2;
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
computed.flags &= ~2;
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
return;
}
computed.flags |= 2;
const dep = computed.dep;
const prevSub = activeSub;
const prevShouldTrack = shouldTrack;
activeSub = computed;
@@ -745,6 +754,7 @@ var Vue = (function (exports) {
prepareDeps(computed);
const value = computed.fn(computed._value);
if (dep.version === 0 || hasChanged(value, computed._value)) {
computed.flags |= 128;
computed._value = value;
dep.version++;
}
@@ -755,7 +765,7 @@ var Vue = (function (exports) {
activeSub = prevSub;
shouldTrack = prevShouldTrack;
cleanupDeps(computed);
computed.flags &= ~2;
computed.flags &= -3;
}
}
function removeSub(link, soft = false) {
@@ -774,7 +784,7 @@ var Vue = (function (exports) {
if (dep.subs === link) {
dep.subs = prevSub;
if (!prevSub && dep.computed) {
dep.computed.flags &= ~4;
dep.computed.flags &= -5;
for (let l = dep.computed.deps; l; l = l.nextDep) {
removeSub(l, true);
}
@@ -1707,14 +1717,14 @@ var Vue = (function (exports) {
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
return target;
}
const existingProxy = proxyMap.get(target);
if (existingProxy) {
return existingProxy;
}
const targetType = getTargetType(target);
if (targetType === 0 /* INVALID */) {
return target;
}
const existingProxy = proxyMap.get(target);
if (existingProxy) {
return existingProxy;
}
const proxy = new Proxy(
target,
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
@@ -2558,11 +2568,11 @@ var Vue = (function (exports) {
queue.splice(i, 1);
i--;
if (cb.flags & 4) {
cb.flags &= ~1;
cb.flags &= -2;
}
cb();
if (!(cb.flags & 4)) {
cb.flags &= ~1;
cb.flags &= -2;
}
}
}
@@ -2587,10 +2597,10 @@ var Vue = (function (exports) {
continue;
}
if (cb.flags & 4) {
cb.flags &= ~1;
cb.flags &= -2;
}
if (!(cb.flags & 8)) cb();
cb.flags &= ~1;
cb.flags &= -2;
}
activePostFlushCbs = null;
postFlushIndex = 0;
@@ -2626,7 +2636,7 @@ var Vue = (function (exports) {
for (; flushIndex < queue.length; flushIndex++) {
const job = queue[flushIndex];
if (job) {
job.flags &= ~1;
job.flags &= -2;
}
}
flushIndex = -1;
@@ -3115,7 +3125,7 @@ var Vue = (function (exports) {
namespace,
slotScopeIds
);
traverseStaticChildren(n1, n2, true);
traverseStaticChildren(n1, n2, false);
} else if (!optimized) {
patchChildren(
n1,
@@ -4794,6 +4804,9 @@ Server rendered element contains fewer child nodes than client vdom.`
{
devtoolsComponentAdded(instance2);
}
{
instance2.__keepAliveStorageContainer = storageContainer;
}
};
function unmount(vnode) {
resetShapeFlag(vnode);
@@ -4881,7 +4894,7 @@ Server rendered element contains fewer child nodes than client vdom.`
);
const { include, exclude, max } = props;
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
vnode.shapeFlag &= ~256;
vnode.shapeFlag &= -257;
current = vnode;
return rawVNode;
}
@@ -4968,8 +4981,8 @@ Server rendered element contains fewer child nodes than client vdom.`
}, target);
}
function resetShapeFlag(vnode) {
vnode.shapeFlag &= ~256;
vnode.shapeFlag &= ~512;
vnode.shapeFlag &= -257;
vnode.shapeFlag &= -513;
}
function getInnerChild(vnode) {
return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;
@@ -5084,14 +5097,16 @@ If this is a native custom element, make sure to exclude it from component resol
if (sourceIsArray || isString(source)) {
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
let needsWrap = false;
let isReadonlySource = false;
if (sourceIsReactiveArray) {
needsWrap = !isShallow(source);
isReadonlySource = isReadonly(source);
source = shallowReadArray(source);
}
ret = new Array(source.length);
for (let i = 0, l = source.length; i < l; i++) {
ret[i] = renderItem(
needsWrap ? toReactive(source[i]) : source[i],
needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
i,
void 0,
cached && cached[i]
@@ -6110,11 +6125,9 @@ If this is a native custom element, make sure to exclude it from component resol
}
{
context.reload = () => {
render(
cloneVNode(vnode),
rootContainer,
namespace
);
const cloned = cloneVNode(vnode);
cloned.el = null;
render(cloned, rootContainer, namespace);
};
}
if (isHydrate && hydrate) {
@@ -6637,7 +6650,7 @@ If you want to remount the same app, move your app creation logic into a factory
return rawSlot;
}
const normalized = withCtx((...args) => {
if (currentInstance && (!ctx || ctx.root === currentInstance.root)) {
if (currentInstance && !(ctx === null && currentRenderingInstance) && !(ctx && ctx.root !== currentInstance.root)) {
warn$1(
`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.`
);
@@ -6676,7 +6689,7 @@ If you want to remount the same app, move your app creation logic into a factory
};
const assignSlots = (slots, children, optimized) => {
for (const key in children) {
if (optimized || key !== "_") {
if (optimized || !isInternalKey(key)) {
slots[key] = children[key];
}
}
@@ -7362,8 +7375,8 @@ If you want to remount the same app, move your app creation logic into a factory
endMeasure(instance, `init`);
}
}
if (isHmrUpdating) initialVNode.el = null;
if (instance.asyncDep) {
if (isHmrUpdating) initialVNode.el = null;
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
if (!initialVNode.el) {
const placeholder = instance.subTree = createVNode(Comment);
@@ -7925,7 +7938,13 @@ If you want to remount the same app, move your app creation logic into a factory
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
} else {
const { leave, delayLeave, afterLeave } = transition;
const remove2 = () => hostInsert(el, container, anchor);
const remove2 = () => {
if (vnode.ctx.isUnmounted) {
hostRemove(el);
} else {
hostInsert(el, container, anchor);
}
};
const performLeave = () => {
leave(el, () => {
remove2();
@@ -7958,7 +7977,9 @@ If you want to remount the same app, move your app creation logic into a factory
optimized = false;
}
if (ref != null) {
pauseTracking();
setRef(ref, null, parentSuspense, vnode, true);
resetTracking();
}
if (cacheIndex != null) {
parentComponent.renderCache[cacheIndex] = void 0;
@@ -8070,12 +8091,27 @@ If you want to remount the same app, move your app creation logic into a factory
if (instance.type.__hmrId) {
unregisterHMR(instance);
}
const { bum, scope, job, subTree, um, m, a } = instance;
const {
bum,
scope,
job,
subTree,
um,
m,
a,
parent,
slots: { __: slotCacheKeys }
} = instance;
invalidateMount(m);
invalidateMount(a);
if (bum) {
invokeArrayFns(bum);
}
if (parent && isArray(slotCacheKeys)) {
slotCacheKeys.forEach((v) => {
parent.renderCache[v] = void 0;
});
}
scope.stop();
if (job) {
job.flags |= 8;
@@ -8171,8 +8207,8 @@ If you want to remount the same app, move your app creation logic into a factory
effect.flags |= 32;
job.flags |= 4;
} else {
effect.flags &= ~32;
job.flags &= ~4;
effect.flags &= -33;
job.flags &= -5;
}
}
function needTransition(parentSuspense, transition) {
@@ -8199,6 +8235,9 @@ If you want to remount the same app, move your app creation logic into a factory
if (c2.type === Comment && !c2.el) {
c2.el = c1.el;
}
{
c2.el && (c2.el.__vnode = c2);
}
}
}
}
@@ -9516,8 +9555,8 @@ If you want to remount the same app, move your app creation logic into a factory
if (n2.shapeFlag & 6 && n1.component) {
const dirtyInstances = hmrDirtyComponents.get(n2.type);
if (dirtyInstances && dirtyInstances.has(n1.component)) {
n1.shapeFlag &= ~256;
n2.shapeFlag &= ~512;
n1.shapeFlag &= -257;
n2.shapeFlag &= -513;
return false;
}
}
@@ -9966,7 +10005,7 @@ Component that was made reactive: `,
const { props, children } = instance.vnode;
const isStateful = isStatefulComponent(instance);
initProps(instance, props, isStateful, isSSR);
initSlots(instance, children, optimized);
initSlots(instance, children, optimized || isSSR);
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
isSSR && setInSSRSetupState(false);
return setupResult;
@@ -10295,13 +10334,15 @@ Component that was made reactive: `,
if (obj.__isVue) {
return ["div", vueStyle, `VueInstance`];
} else if (isRef(obj)) {
pauseTracking();
const value = obj.value;
resetTracking();
return [
"div",
{},
["span", vueStyle, genRefFlag(obj)],
"<",
// avoid debugger accessing value affecting behavior
formatValue("_value" in obj ? obj._value : obj),
formatValue(value),
`>`
];
} else if (isReactive(obj)) {
@@ -10482,7 +10523,7 @@ Component that was made reactive: `,
return true;
}
const version = "3.5.13";
const version = "3.5.14";
const warn = warn$1 ;
const ErrorTypeStrings = ErrorTypeStrings$1 ;
const devtools = devtools$1 ;
@@ -11281,7 +11322,7 @@ Expected function or array of functions, received type ${typeof value}.`
}
return false;
}
if (key === "spellcheck" || key === "draggable" || key === "translate") {
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
return false;
}
if (key === "form") {
@@ -11758,6 +11799,7 @@ Expected function or array of functions, received type ${typeof value}.`
instance.vnode.el,
moveClass
)) {
prevChildren = [];
return;
}
prevChildren.forEach(callPendingCbs);
@@ -11781,6 +11823,7 @@ Expected function or array of functions, received type ${typeof value}.`
};
el.addEventListener("transitionend", cb);
});
prevChildren = [];
});
return () => {
const rawProps = toRaw(props);
@@ -14417,6 +14460,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
}
}
let cachedAsArray = false;
const slotCacheKeys = [];
if (toCache.length === children.length && node.type === 1) {
if (node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && isArray(node.codegenNode.children)) {
node.codegenNode.children = getCacheExpression(
@@ -14426,6 +14470,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
} else if (node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
const slot = getSlotNode(node.codegenNode, "default");
if (slot) {
slotCacheKeys.push(context.cached.length);
slot.returns = getCacheExpression(
createArrayExpression(slot.returns)
);
@@ -14435,6 +14480,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
const slotName = findDir(node, "slot", true);
const slot = slotName && slotName.arg && getSlotNode(parent.codegenNode, slotName.arg);
if (slot) {
slotCacheKeys.push(context.cached.length);
slot.returns = getCacheExpression(
createArrayExpression(slot.returns)
);
@@ -14444,9 +14490,18 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
}
if (!cachedAsArray) {
for (const child of toCache) {
slotCacheKeys.push(context.cached.length);
child.codegenNode = context.cache(child.codegenNode);
}
}
if (slotCacheKeys.length && node.type === 1 && node.tagType === 1 && node.codegenNode && node.codegenNode.type === 13 && node.codegenNode.children && !isArray(node.codegenNode.children) && node.codegenNode.children.type === 15) {
node.codegenNode.children.properties.push(
createObjectProperty(
`__`,
createSimpleExpression(JSON.stringify(slotCacheKeys), false)
)
);
}
function getCacheExpression(value) {
const exp = context.cache(value);
if (inFor && context.hmr) {
@@ -17091,8 +17146,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
context.onError(createCompilerError(44, exp.loc));
return createTransformProps();
}
const maybeRef = false;
if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) {
if (!expString.trim() || !isMemberExpression(exp) && true) {
context.onError(
createCompilerError(42, exp.loc)
);

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
/**
* vue v3.5.13
* vue v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -323,6 +323,10 @@ class EffectScope {
* @internal
*/
this._active = true;
/**
* @internal track `on` calls, allow `on` call multiple times
*/
this._on = 0;
/**
* @internal
*/
@@ -393,14 +397,20 @@ class EffectScope {
* @internal
*/
on() {
activeEffectScope = this;
if (++this._on === 1) {
this.prevScope = activeEffectScope;
activeEffectScope = this;
}
}
/**
* This should only be called on non-detached scopes
* @internal
*/
off() {
activeEffectScope = this.parent;
if (this._on > 0 && --this._on === 0) {
activeEffectScope = this.prevScope;
this.prevScope = void 0;
}
}
stop(fromParent) {
if (this._active) {
@@ -482,7 +492,7 @@ class ReactiveEffect {
}
resume() {
if (this.flags & 64) {
this.flags &= ~64;
this.flags &= -65;
if (pausedQueueEffects.has(this)) {
pausedQueueEffects.delete(this);
this.trigger();
@@ -522,7 +532,7 @@ class ReactiveEffect {
cleanupDeps(this);
activeSub = prevEffect;
shouldTrack = prevShouldTrack;
this.flags &= ~2;
this.flags &= -3;
}
}
stop() {
@@ -533,7 +543,7 @@ class ReactiveEffect {
this.deps = this.depsTail = void 0;
cleanupEffect(this);
this.onStop && this.onStop();
this.flags &= ~1;
this.flags &= -2;
}
}
trigger() {
@@ -583,7 +593,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
e = next;
}
}
@@ -594,7 +604,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
if (e.flags & 1) {
try {
;
@@ -650,17 +660,16 @@ function refreshComputed(computed) {
if (computed.flags & 4 && !(computed.flags & 16)) {
return;
}
computed.flags &= ~16;
computed.flags &= -17;
if (computed.globalVersion === globalVersion) {
return;
}
computed.globalVersion = globalVersion;
const dep = computed.dep;
computed.flags |= 2;
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
computed.flags &= ~2;
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
return;
}
computed.flags |= 2;
const dep = computed.dep;
const prevSub = activeSub;
const prevShouldTrack = shouldTrack;
activeSub = computed;
@@ -669,6 +678,7 @@ function refreshComputed(computed) {
prepareDeps(computed);
const value = computed.fn(computed._value);
if (dep.version === 0 || hasChanged(value, computed._value)) {
computed.flags |= 128;
computed._value = value;
dep.version++;
}
@@ -679,7 +689,7 @@ function refreshComputed(computed) {
activeSub = prevSub;
shouldTrack = prevShouldTrack;
cleanupDeps(computed);
computed.flags &= ~2;
computed.flags &= -3;
}
}
function removeSub(link, soft = false) {
@@ -698,7 +708,7 @@ function removeSub(link, soft = false) {
if (dep.subs === link) {
dep.subs = prevSub;
if (!prevSub && dep.computed) {
dep.computed.flags &= ~4;
dep.computed.flags &= -5;
for (let l = dep.computed.deps; l; l = l.nextDep) {
removeSub(l, true);
}
@@ -1631,14 +1641,14 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
return target;
}
const existingProxy = proxyMap.get(target);
if (existingProxy) {
return existingProxy;
}
const targetType = getTargetType(target);
if (targetType === 0 /* INVALID */) {
return target;
}
const existingProxy = proxyMap.get(target);
if (existingProxy) {
return existingProxy;
}
const proxy = new Proxy(
target,
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
@@ -2482,11 +2492,11 @@ function flushPreFlushCbs(instance, seen, i = flushIndex + 1) {
queue.splice(i, 1);
i--;
if (cb.flags & 4) {
cb.flags &= ~1;
cb.flags &= -2;
}
cb();
if (!(cb.flags & 4)) {
cb.flags &= ~1;
cb.flags &= -2;
}
}
}
@@ -2511,10 +2521,10 @@ function flushPostFlushCbs(seen) {
continue;
}
if (cb.flags & 4) {
cb.flags &= ~1;
cb.flags &= -2;
}
if (!(cb.flags & 8)) cb();
cb.flags &= ~1;
cb.flags &= -2;
}
activePostFlushCbs = null;
postFlushIndex = 0;
@@ -2550,7 +2560,7 @@ function flushJobs(seen) {
for (; flushIndex < queue.length; flushIndex++) {
const job = queue[flushIndex];
if (job) {
job.flags &= ~1;
job.flags &= -2;
}
}
flushIndex = -1;
@@ -3039,7 +3049,7 @@ const TeleportImpl = {
namespace,
slotScopeIds
);
traverseStaticChildren(n1, n2, true);
traverseStaticChildren(n1, n2, false);
} else if (!optimized) {
patchChildren(
n1,
@@ -4724,6 +4734,9 @@ const KeepAliveImpl = {
{
devtoolsComponentAdded(instance2);
}
{
instance2.__keepAliveStorageContainer = storageContainer;
}
};
function unmount(vnode) {
resetShapeFlag(vnode);
@@ -4811,7 +4824,7 @@ const KeepAliveImpl = {
);
const { include, exclude, max } = props;
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
vnode.shapeFlag &= ~256;
vnode.shapeFlag &= -257;
current = vnode;
return rawVNode;
}
@@ -4898,8 +4911,8 @@ function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
}, target);
}
function resetShapeFlag(vnode) {
vnode.shapeFlag &= ~256;
vnode.shapeFlag &= ~512;
vnode.shapeFlag &= -257;
vnode.shapeFlag &= -513;
}
function getInnerChild(vnode) {
return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;
@@ -5014,14 +5027,16 @@ function renderList(source, renderItem, cache, index) {
if (sourceIsArray || isString(source)) {
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
let needsWrap = false;
let isReadonlySource = false;
if (sourceIsReactiveArray) {
needsWrap = !isShallow(source);
isReadonlySource = isReadonly(source);
source = shallowReadArray(source);
}
ret = new Array(source.length);
for (let i = 0, l = source.length; i < l; i++) {
ret[i] = renderItem(
needsWrap ? toReactive(source[i]) : source[i],
needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
i,
void 0,
cached && cached[i]
@@ -6043,11 +6058,9 @@ function createAppAPI(render, hydrate) {
}
{
context.reload = () => {
render(
cloneVNode(vnode),
rootContainer,
namespace
);
const cloned = cloneVNode(vnode);
cloned.el = null;
render(cloned, rootContainer, namespace);
};
}
if (isHydrate && hydrate) {
@@ -6570,7 +6583,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
return rawSlot;
}
const normalized = withCtx((...args) => {
if (currentInstance && (!ctx || ctx.root === currentInstance.root)) {
if (currentInstance && !(ctx === null && currentRenderingInstance) && !(ctx && ctx.root !== currentInstance.root)) {
warn$1(
`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.`
);
@@ -6609,7 +6622,7 @@ const normalizeVNodeSlots = (instance, children) => {
};
const assignSlots = (slots, children, optimized) => {
for (const key in children) {
if (optimized || key !== "_") {
if (optimized || !isInternalKey(key)) {
slots[key] = children[key];
}
}
@@ -7295,8 +7308,8 @@ function baseCreateRenderer(options, createHydrationFns) {
endMeasure(instance, `init`);
}
}
if (isHmrUpdating) initialVNode.el = null;
if (instance.asyncDep) {
if (isHmrUpdating) initialVNode.el = null;
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
if (!initialVNode.el) {
const placeholder = instance.subTree = createVNode(Comment);
@@ -7858,7 +7871,13 @@ function baseCreateRenderer(options, createHydrationFns) {
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
} else {
const { leave, delayLeave, afterLeave } = transition;
const remove2 = () => hostInsert(el, container, anchor);
const remove2 = () => {
if (vnode.ctx.isUnmounted) {
hostRemove(el);
} else {
hostInsert(el, container, anchor);
}
};
const performLeave = () => {
leave(el, () => {
remove2();
@@ -7891,7 +7910,9 @@ function baseCreateRenderer(options, createHydrationFns) {
optimized = false;
}
if (ref != null) {
pauseTracking();
setRef(ref, null, parentSuspense, vnode, true);
resetTracking();
}
if (cacheIndex != null) {
parentComponent.renderCache[cacheIndex] = void 0;
@@ -8003,12 +8024,27 @@ function baseCreateRenderer(options, createHydrationFns) {
if (instance.type.__hmrId) {
unregisterHMR(instance);
}
const { bum, scope, job, subTree, um, m, a } = instance;
const {
bum,
scope,
job,
subTree,
um,
m,
a,
parent,
slots: { __: slotCacheKeys }
} = instance;
invalidateMount(m);
invalidateMount(a);
if (bum) {
invokeArrayFns(bum);
}
if (parent && isArray(slotCacheKeys)) {
slotCacheKeys.forEach((v) => {
parent.renderCache[v] = void 0;
});
}
scope.stop();
if (job) {
job.flags |= 8;
@@ -8104,8 +8140,8 @@ function toggleRecurse({ effect, job }, allowed) {
effect.flags |= 32;
job.flags |= 4;
} else {
effect.flags &= ~32;
job.flags &= ~4;
effect.flags &= -33;
job.flags &= -5;
}
}
function needTransition(parentSuspense, transition) {
@@ -8132,6 +8168,9 @@ function traverseStaticChildren(n1, n2, shallow = false) {
if (c2.type === Comment && !c2.el) {
c2.el = c1.el;
}
{
c2.el && (c2.el.__vnode = c2);
}
}
}
}
@@ -9477,8 +9516,8 @@ function isSameVNodeType(n1, n2) {
if (n2.shapeFlag & 6 && n1.component) {
const dirtyInstances = hmrDirtyComponents.get(n2.type);
if (dirtyInstances && dirtyInstances.has(n1.component)) {
n1.shapeFlag &= ~256;
n2.shapeFlag &= ~512;
n1.shapeFlag &= -257;
n2.shapeFlag &= -513;
return false;
}
}
@@ -9939,7 +9978,7 @@ function setupComponent(instance, isSSR = false, optimized = false) {
const { props, children } = instance.vnode;
const isStateful = isStatefulComponent(instance);
initProps(instance, props, isStateful, isSSR);
initSlots(instance, children, optimized);
initSlots(instance, children, optimized || isSSR);
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
isSSR && setInSSRSetupState(false);
return setupResult;
@@ -10270,13 +10309,15 @@ function initCustomFormatter() {
if (obj.__isVue) {
return ["div", vueStyle, `VueInstance`];
} else if (isRef(obj)) {
pauseTracking();
const value = obj.value;
resetTracking();
return [
"div",
{},
["span", vueStyle, genRefFlag(obj)],
"<",
// avoid debugger accessing value affecting behavior
formatValue("_value" in obj ? obj._value : obj),
formatValue(value),
`>`
];
} else if (isReactive(obj)) {
@@ -10457,7 +10498,7 @@ function isMemoSame(cached, memo) {
return true;
}
const version = "3.5.13";
const version = "3.5.14";
const warn = warn$1 ;
const ErrorTypeStrings = ErrorTypeStrings$1 ;
const devtools = devtools$1 ;
@@ -11275,7 +11316,7 @@ function shouldSetAsProp(el, key, value, isSVG) {
}
return false;
}
if (key === "spellcheck" || key === "draggable" || key === "translate") {
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
return false;
}
if (key === "form") {
@@ -11764,6 +11805,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
instance.vnode.el,
moveClass
)) {
prevChildren = [];
return;
}
prevChildren.forEach(callPendingCbs);
@@ -11787,6 +11829,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
};
el.addEventListener("transitionend", cb);
});
prevChildren = [];
});
return () => {
const rawProps = toRaw(props);

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
/**
* vue v3.5.13
* vue v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/

View File

@@ -1,5 +1,5 @@
/**
* vue v3.5.13
* vue v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -326,6 +326,10 @@ var Vue = (function (exports) {
* @internal
*/
this._active = true;
/**
* @internal track `on` calls, allow `on` call multiple times
*/
this._on = 0;
/**
* @internal
*/
@@ -396,14 +400,20 @@ var Vue = (function (exports) {
* @internal
*/
on() {
activeEffectScope = this;
if (++this._on === 1) {
this.prevScope = activeEffectScope;
activeEffectScope = this;
}
}
/**
* This should only be called on non-detached scopes
* @internal
*/
off() {
activeEffectScope = this.parent;
if (this._on > 0 && --this._on === 0) {
activeEffectScope = this.prevScope;
this.prevScope = void 0;
}
}
stop(fromParent) {
if (this._active) {
@@ -485,7 +495,7 @@ var Vue = (function (exports) {
}
resume() {
if (this.flags & 64) {
this.flags &= ~64;
this.flags &= -65;
if (pausedQueueEffects.has(this)) {
pausedQueueEffects.delete(this);
this.trigger();
@@ -525,7 +535,7 @@ var Vue = (function (exports) {
cleanupDeps(this);
activeSub = prevEffect;
shouldTrack = prevShouldTrack;
this.flags &= ~2;
this.flags &= -3;
}
}
stop() {
@@ -536,7 +546,7 @@ var Vue = (function (exports) {
this.deps = this.depsTail = void 0;
cleanupEffect(this);
this.onStop && this.onStop();
this.flags &= ~1;
this.flags &= -2;
}
}
trigger() {
@@ -586,7 +596,7 @@ var Vue = (function (exports) {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
e = next;
}
}
@@ -597,7 +607,7 @@ var Vue = (function (exports) {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
if (e.flags & 1) {
try {
;
@@ -653,17 +663,16 @@ var Vue = (function (exports) {
if (computed.flags & 4 && !(computed.flags & 16)) {
return;
}
computed.flags &= ~16;
computed.flags &= -17;
if (computed.globalVersion === globalVersion) {
return;
}
computed.globalVersion = globalVersion;
const dep = computed.dep;
computed.flags |= 2;
if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
computed.flags &= ~2;
if (!computed.isSSR && computed.flags & 128 && (!computed.deps && !computed._dirty || !isDirty(computed))) {
return;
}
computed.flags |= 2;
const dep = computed.dep;
const prevSub = activeSub;
const prevShouldTrack = shouldTrack;
activeSub = computed;
@@ -672,6 +681,7 @@ var Vue = (function (exports) {
prepareDeps(computed);
const value = computed.fn(computed._value);
if (dep.version === 0 || hasChanged(value, computed._value)) {
computed.flags |= 128;
computed._value = value;
dep.version++;
}
@@ -682,7 +692,7 @@ var Vue = (function (exports) {
activeSub = prevSub;
shouldTrack = prevShouldTrack;
cleanupDeps(computed);
computed.flags &= ~2;
computed.flags &= -3;
}
}
function removeSub(link, soft = false) {
@@ -701,7 +711,7 @@ var Vue = (function (exports) {
if (dep.subs === link) {
dep.subs = prevSub;
if (!prevSub && dep.computed) {
dep.computed.flags &= ~4;
dep.computed.flags &= -5;
for (let l = dep.computed.deps; l; l = l.nextDep) {
removeSub(l, true);
}
@@ -1634,14 +1644,14 @@ var Vue = (function (exports) {
if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
return target;
}
const existingProxy = proxyMap.get(target);
if (existingProxy) {
return existingProxy;
}
const targetType = getTargetType(target);
if (targetType === 0 /* INVALID */) {
return target;
}
const existingProxy = proxyMap.get(target);
if (existingProxy) {
return existingProxy;
}
const proxy = new Proxy(
target,
targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers
@@ -2485,11 +2495,11 @@ var Vue = (function (exports) {
queue.splice(i, 1);
i--;
if (cb.flags & 4) {
cb.flags &= ~1;
cb.flags &= -2;
}
cb();
if (!(cb.flags & 4)) {
cb.flags &= ~1;
cb.flags &= -2;
}
}
}
@@ -2514,10 +2524,10 @@ var Vue = (function (exports) {
continue;
}
if (cb.flags & 4) {
cb.flags &= ~1;
cb.flags &= -2;
}
if (!(cb.flags & 8)) cb();
cb.flags &= ~1;
cb.flags &= -2;
}
activePostFlushCbs = null;
postFlushIndex = 0;
@@ -2553,7 +2563,7 @@ var Vue = (function (exports) {
for (; flushIndex < queue.length; flushIndex++) {
const job = queue[flushIndex];
if (job) {
job.flags &= ~1;
job.flags &= -2;
}
}
flushIndex = -1;
@@ -3042,7 +3052,7 @@ var Vue = (function (exports) {
namespace,
slotScopeIds
);
traverseStaticChildren(n1, n2, true);
traverseStaticChildren(n1, n2, false);
} else if (!optimized) {
patchChildren(
n1,
@@ -4721,6 +4731,9 @@ Server rendered element contains fewer child nodes than client vdom.`
{
devtoolsComponentAdded(instance2);
}
{
instance2.__keepAliveStorageContainer = storageContainer;
}
};
function unmount(vnode) {
resetShapeFlag(vnode);
@@ -4808,7 +4821,7 @@ Server rendered element contains fewer child nodes than client vdom.`
);
const { include, exclude, max } = props;
if (include && (!name || !matches(include, name)) || exclude && name && matches(exclude, name)) {
vnode.shapeFlag &= ~256;
vnode.shapeFlag &= -257;
current = vnode;
return rawVNode;
}
@@ -4895,8 +4908,8 @@ Server rendered element contains fewer child nodes than client vdom.`
}, target);
}
function resetShapeFlag(vnode) {
vnode.shapeFlag &= ~256;
vnode.shapeFlag &= ~512;
vnode.shapeFlag &= -257;
vnode.shapeFlag &= -513;
}
function getInnerChild(vnode) {
return vnode.shapeFlag & 128 ? vnode.ssContent : vnode;
@@ -5011,14 +5024,16 @@ If this is a native custom element, make sure to exclude it from component resol
if (sourceIsArray || isString(source)) {
const sourceIsReactiveArray = sourceIsArray && isReactive(source);
let needsWrap = false;
let isReadonlySource = false;
if (sourceIsReactiveArray) {
needsWrap = !isShallow(source);
isReadonlySource = isReadonly(source);
source = shallowReadArray(source);
}
ret = new Array(source.length);
for (let i = 0, l = source.length; i < l; i++) {
ret[i] = renderItem(
needsWrap ? toReactive(source[i]) : source[i],
needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i],
i,
void 0,
cached && cached[i]
@@ -6037,11 +6052,9 @@ If this is a native custom element, make sure to exclude it from component resol
}
{
context.reload = () => {
render(
cloneVNode(vnode),
rootContainer,
namespace
);
const cloned = cloneVNode(vnode);
cloned.el = null;
render(cloned, rootContainer, namespace);
};
}
if (isHydrate && hydrate) {
@@ -6564,7 +6577,7 @@ If you want to remount the same app, move your app creation logic into a factory
return rawSlot;
}
const normalized = withCtx((...args) => {
if (currentInstance && (!ctx || ctx.root === currentInstance.root)) {
if (currentInstance && !(ctx === null && currentRenderingInstance) && !(ctx && ctx.root !== currentInstance.root)) {
warn$1(
`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.`
);
@@ -6603,7 +6616,7 @@ If you want to remount the same app, move your app creation logic into a factory
};
const assignSlots = (slots, children, optimized) => {
for (const key in children) {
if (optimized || key !== "_") {
if (optimized || !isInternalKey(key)) {
slots[key] = children[key];
}
}
@@ -7289,8 +7302,8 @@ If you want to remount the same app, move your app creation logic into a factory
endMeasure(instance, `init`);
}
}
if (isHmrUpdating) initialVNode.el = null;
if (instance.asyncDep) {
if (isHmrUpdating) initialVNode.el = null;
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
if (!initialVNode.el) {
const placeholder = instance.subTree = createVNode(Comment);
@@ -7852,7 +7865,13 @@ If you want to remount the same app, move your app creation logic into a factory
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
} else {
const { leave, delayLeave, afterLeave } = transition;
const remove2 = () => hostInsert(el, container, anchor);
const remove2 = () => {
if (vnode.ctx.isUnmounted) {
hostRemove(el);
} else {
hostInsert(el, container, anchor);
}
};
const performLeave = () => {
leave(el, () => {
remove2();
@@ -7885,7 +7904,9 @@ If you want to remount the same app, move your app creation logic into a factory
optimized = false;
}
if (ref != null) {
pauseTracking();
setRef(ref, null, parentSuspense, vnode, true);
resetTracking();
}
if (cacheIndex != null) {
parentComponent.renderCache[cacheIndex] = void 0;
@@ -7997,12 +8018,27 @@ If you want to remount the same app, move your app creation logic into a factory
if (instance.type.__hmrId) {
unregisterHMR(instance);
}
const { bum, scope, job, subTree, um, m, a } = instance;
const {
bum,
scope,
job,
subTree,
um,
m,
a,
parent,
slots: { __: slotCacheKeys }
} = instance;
invalidateMount(m);
invalidateMount(a);
if (bum) {
invokeArrayFns(bum);
}
if (parent && isArray(slotCacheKeys)) {
slotCacheKeys.forEach((v) => {
parent.renderCache[v] = void 0;
});
}
scope.stop();
if (job) {
job.flags |= 8;
@@ -8098,8 +8134,8 @@ If you want to remount the same app, move your app creation logic into a factory
effect.flags |= 32;
job.flags |= 4;
} else {
effect.flags &= ~32;
job.flags &= ~4;
effect.flags &= -33;
job.flags &= -5;
}
}
function needTransition(parentSuspense, transition) {
@@ -8126,6 +8162,9 @@ If you want to remount the same app, move your app creation logic into a factory
if (c2.type === Comment && !c2.el) {
c2.el = c1.el;
}
{
c2.el && (c2.el.__vnode = c2);
}
}
}
}
@@ -9443,8 +9482,8 @@ If you want to remount the same app, move your app creation logic into a factory
if (n2.shapeFlag & 6 && n1.component) {
const dirtyInstances = hmrDirtyComponents.get(n2.type);
if (dirtyInstances && dirtyInstances.has(n1.component)) {
n1.shapeFlag &= ~256;
n2.shapeFlag &= ~512;
n1.shapeFlag &= -257;
n2.shapeFlag &= -513;
return false;
}
}
@@ -9893,7 +9932,7 @@ Component that was made reactive: `,
const { props, children } = instance.vnode;
const isStateful = isStatefulComponent(instance);
initProps(instance, props, isStateful, isSSR);
initSlots(instance, children, optimized);
initSlots(instance, children, optimized || isSSR);
const setupResult = isStateful ? setupStatefulComponent(instance, isSSR) : void 0;
isSSR && setInSSRSetupState(false);
return setupResult;
@@ -10222,13 +10261,15 @@ Component that was made reactive: `,
if (obj.__isVue) {
return ["div", vueStyle, `VueInstance`];
} else if (isRef(obj)) {
pauseTracking();
const value = obj.value;
resetTracking();
return [
"div",
{},
["span", vueStyle, genRefFlag(obj)],
"<",
// avoid debugger accessing value affecting behavior
formatValue("_value" in obj ? obj._value : obj),
formatValue(value),
`>`
];
} else if (isReactive(obj)) {
@@ -10409,7 +10450,7 @@ Component that was made reactive: `,
return true;
}
const version = "3.5.13";
const version = "3.5.14";
const warn = warn$1 ;
const ErrorTypeStrings = ErrorTypeStrings$1 ;
const devtools = devtools$1 ;
@@ -11208,7 +11249,7 @@ Expected function or array of functions, received type ${typeof value}.`
}
return false;
}
if (key === "spellcheck" || key === "draggable" || key === "translate") {
if (key === "spellcheck" || key === "draggable" || key === "translate" || key === "autocorrect") {
return false;
}
if (key === "form") {
@@ -11685,6 +11726,7 @@ Expected function or array of functions, received type ${typeof value}.`
instance.vnode.el,
moveClass
)) {
prevChildren = [];
return;
}
prevChildren.forEach(callPendingCbs);
@@ -11708,6 +11750,7 @@ Expected function or array of functions, received type ${typeof value}.`
};
el.addEventListener("transitionend", cb);
});
prevChildren = [];
});
return () => {
const rawProps = toRaw(props);

File diff suppressed because one or more lines are too long

12
node_modules/vue/package.json generated vendored
View File

@@ -1,6 +1,6 @@
{
"name": "vue",
"version": "3.5.13",
"version": "3.5.14",
"description": "The progressive JavaScript framework for building modern web UI.",
"main": "index.js",
"module": "dist/vue.runtime.esm-bundler.js",
@@ -95,11 +95,11 @@
},
"homepage": "https://github.com/vuejs/core/tree/main/packages/vue#readme",
"dependencies": {
"@vue/shared": "3.5.13",
"@vue/compiler-dom": "3.5.13",
"@vue/runtime-dom": "3.5.13",
"@vue/server-renderer": "3.5.13",
"@vue/compiler-sfc": "3.5.13"
"@vue/shared": "3.5.14",
"@vue/runtime-dom": "3.5.14",
"@vue/compiler-sfc": "3.5.14",
"@vue/compiler-dom": "3.5.14",
"@vue/server-renderer": "3.5.14"
},
"peerDependencies": {
"typescript": "*"