🌱 🏗️ ⬆️ 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

View File

@@ -1,5 +1,5 @@
/**
* @vue/runtime-core v3.5.13
* @vue/runtime-core v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -348,11 +348,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;
}
}
}
@@ -377,10 +377,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;
@@ -416,7 +416,7 @@ function flushJobs(seen) {
for (; flushIndex < queue.length; flushIndex++) {
const job = queue[flushIndex];
if (job) {
job.flags &= ~1;
job.flags &= -2;
}
}
flushIndex = -1;
@@ -905,7 +905,7 @@ const TeleportImpl = {
namespace,
slotScopeIds
);
traverseStaticChildren(n1, n2, true);
traverseStaticChildren(n1, n2, false);
} else if (!optimized) {
patchChildren(
n1,
@@ -2677,7 +2677,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;
}
@@ -2764,8 +2764,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;
@@ -2880,14 +2880,16 @@ function renderList(source, renderItem, cache, index) {
if (sourceIsArray || shared.isString(source)) {
const sourceIsReactiveArray = sourceIsArray && reactivity.isReactive(source);
let needsWrap = false;
let isReadonlySource = false;
if (sourceIsReactiveArray) {
needsWrap = !reactivity.isShallow(source);
isReadonlySource = reactivity.isReadonly(source);
source = reactivity.shallowReadArray(source);
}
ret = new Array(source.length);
for (let i = 0, l = source.length; i < l; i++) {
ret[i] = renderItem(
needsWrap ? reactivity.toReactive(source[i]) : source[i],
needsWrap ? isReadonlySource ? reactivity.toReadonly(reactivity.toReactive(source[i])) : reactivity.toReactive(source[i]) : source[i],
i,
void 0,
cached && cached[i]
@@ -3909,11 +3911,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) {
@@ -4436,7 +4436,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.`
);
@@ -4475,7 +4475,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];
}
}
@@ -5161,8 +5161,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);
@@ -5724,7 +5724,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();
@@ -5757,7 +5763,9 @@ function baseCreateRenderer(options, createHydrationFns) {
optimized = false;
}
if (ref != null) {
reactivity.pauseTracking();
setRef(ref, null, parentSuspense, vnode, true);
reactivity.resetTracking();
}
if (cacheIndex != null) {
parentComponent.renderCache[cacheIndex] = void 0;
@@ -5869,12 +5877,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) {
shared.invokeArrayFns(bum);
}
if (parent && shared.isArray(slotCacheKeys)) {
slotCacheKeys.forEach((v) => {
parent.renderCache[v] = void 0;
});
}
scope.stop();
if (job) {
job.flags |= 8;
@@ -5970,8 +5993,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) {
@@ -5998,6 +6021,9 @@ function traverseStaticChildren(n1, n2, shallow = false) {
if (c2.type === Comment && !c2.el) {
c2.el = c1.el;
}
{
c2.el && (c2.el.__vnode = c2);
}
}
}
}
@@ -7343,8 +7369,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;
}
}
@@ -7805,7 +7831,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;
@@ -8136,13 +8162,15 @@ function initCustomFormatter() {
if (obj.__isVue) {
return ["div", vueStyle, `VueInstance`];
} else if (reactivity.isRef(obj)) {
reactivity.pauseTracking();
const value = obj.value;
reactivity.resetTracking();
return [
"div",
{},
["span", vueStyle, genRefFlag(obj)],
"<",
// avoid debugger accessing value affecting behavior
formatValue("_value" in obj ? obj._value : obj),
formatValue(value),
`>`
];
} else if (reactivity.isReactive(obj)) {
@@ -8323,7 +8351,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 ;

View File

@@ -1,5 +1,5 @@
/**
* @vue/runtime-core v3.5.13
* @vue/runtime-core v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -213,11 +213,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;
}
}
}
@@ -236,10 +236,10 @@ function flushPostFlushCbs(seen) {
for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
const cb = activePostFlushCbs[postFlushIndex];
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;
@@ -269,7 +269,7 @@ function flushJobs(seen) {
for (; flushIndex < queue.length; flushIndex++) {
const job = queue[flushIndex];
if (job) {
job.flags &= ~1;
job.flags &= -2;
}
}
flushIndex = -1;
@@ -998,6 +998,9 @@ function getInnerChild$1(vnode) {
}
return vnode;
}
if (vnode.component) {
return vnode.component.subTree;
}
const { shapeFlag, children } = vnode;
if (children) {
if (shapeFlag & 16) {
@@ -2028,7 +2031,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;
}
@@ -2115,8 +2118,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;
@@ -2217,14 +2220,16 @@ function renderList(source, renderItem, cache, index) {
if (sourceIsArray || shared.isString(source)) {
const sourceIsReactiveArray = sourceIsArray && reactivity.isReactive(source);
let needsWrap = false;
let isReadonlySource = false;
if (sourceIsReactiveArray) {
needsWrap = !reactivity.isShallow(source);
isReadonlySource = reactivity.isReadonly(source);
source = reactivity.shallowReadArray(source);
}
ret = new Array(source.length);
for (let i = 0, l = source.length; i < l; i++) {
ret[i] = renderItem(
needsWrap ? reactivity.toReactive(source[i]) : source[i],
needsWrap ? isReadonlySource ? reactivity.toReadonly(reactivity.toReactive(source[i])) : reactivity.toReactive(source[i]) : source[i],
i,
void 0,
cached && cached[i]
@@ -3357,7 +3362,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];
}
}
@@ -4443,7 +4448,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();
@@ -4476,7 +4487,9 @@ function baseCreateRenderer(options, createHydrationFns) {
optimized = false;
}
if (ref != null) {
reactivity.pauseTracking();
setRef(ref, null, parentSuspense, vnode, true);
reactivity.resetTracking();
}
if (cacheIndex != null) {
parentComponent.renderCache[cacheIndex] = void 0;
@@ -4577,12 +4590,27 @@ function baseCreateRenderer(options, createHydrationFns) {
hostRemove(end);
};
const unmountComponent = (instance, parentSuspense, doRemove) => {
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) {
shared.invokeArrayFns(bum);
}
if (parent && shared.isArray(slotCacheKeys)) {
slotCacheKeys.forEach((v) => {
parent.renderCache[v] = void 0;
});
}
scope.stop();
if (job) {
job.flags |= 8;
@@ -4675,8 +4703,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) {
@@ -4700,6 +4728,9 @@ function traverseStaticChildren(n1, n2, shallow = false) {
if (c2.type === Text) {
c2.el = c1.el;
}
if (c2.type === Comment && !c2.el) {
c2.el = c1.el;
}
}
}
}
@@ -6275,7 +6306,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;
@@ -6484,7 +6515,7 @@ function isMemoSame(cached, memo) {
return true;
}
const version = "3.5.13";
const version = "3.5.14";
const warn$1 = shared.NOOP;
const ErrorTypeStrings = ErrorTypeStrings$1 ;
const devtools = void 0;

View File

@@ -1,4 +1,4 @@
import { computed as computed$1, Ref, OnCleanup, WatchStopHandle, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, WatchCallback, ReactiveEffect, DebuggerOptions, WatchEffect, WatchHandle, WatchSource, ReactiveMarker, ShallowRef, WatchErrorCodes, reactive } from '@vue/reactivity';
import { computed as computed$1, Ref, OnCleanup, WatchStopHandle, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, WatchCallback, ReactiveEffect, DebuggerOptions, WatchSource, WatchHandle, ReactiveMarker, WatchEffect, ShallowRef, WatchErrorCodes, reactive } from '@vue/reactivity';
export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEventExtraInfo, DebuggerOptions, DeepReadonly, EffectScheduler, EffectScope, MaybeRef, MaybeRefOrGetter, Raw, Reactive, ReactiveEffect, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, Ref, ShallowReactive, ShallowRef, ShallowUnwrapRef, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapRef, WatchCallback, WatchEffect, WatchHandle, WatchSource, WatchStopHandle, WritableComputedOptions, WritableComputedRef, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
import { IfAny, Prettify, LooseRequired, UnionToIntersection, OverloadParameters, IsKeyValues } from '@vue/shared';
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
@@ -417,7 +417,7 @@ export interface ObjectDirective<HostElement = any, Value = any, Modifiers exten
}
export type FunctionDirective<HostElement = any, V = any, Modifiers extends string = string, Arg extends string = string> = DirectiveHook<HostElement, any, V, Modifiers, Arg>;
export type Directive<HostElement = any, Value = any, Modifiers extends string = string, Arg extends string = string> = ObjectDirective<HostElement, Value, Modifiers, Arg> | FunctionDirective<HostElement, Value, Modifiers, Arg>;
type DirectiveModifiers<K extends string = string> = Record<K, boolean>;
type DirectiveModifiers<K extends string = string> = Partial<Record<K, boolean>>;
export type DirectiveArguments = Array<[Directive | undefined] | [Directive | undefined, any] | [Directive | undefined, any, string] | [Directive | undefined, any, string | undefined, DirectiveModifiers]>;
/**
* Adds directives to a VNode.
@@ -872,20 +872,20 @@ interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOpt
filters?: Record<string, Function>;
mixins?: Mixin[];
extends?: Extends;
beforeCreate?(): void;
created?(): void;
beforeMount?(): void;
mounted?(): void;
beforeUpdate?(): void;
updated?(): void;
activated?(): void;
deactivated?(): void;
beforeCreate?(): any;
created?(): any;
beforeMount?(): any;
mounted?(): any;
beforeUpdate?(): any;
updated?(): any;
activated?(): any;
deactivated?(): any;
/** @deprecated use `beforeUnmount` instead */
beforeDestroy?(): void;
beforeUnmount?(): void;
beforeDestroy?(): any;
beforeUnmount?(): any;
/** @deprecated use `unmounted` instead */
destroyed?(): void;
unmounted?(): void;
destroyed?(): any;
unmounted?(): any;
renderTracked?: DebuggerHook;
renderTriggered?: DebuggerHook;
errorCaptured?: ErrorCapturedHook;
@@ -1017,8 +1017,8 @@ InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide>
export interface App<HostElement = any> {
version: string;
config: AppConfig;
use<Options extends unknown[]>(plugin: Plugin<Options>, ...options: Options): this;
use<Options>(plugin: Plugin<Options>, options: Options): this;
use<Options extends unknown[]>(plugin: Plugin<Options>, ...options: NoInfer<Options>): this;
use<Options>(plugin: Plugin<Options>, options: NoInfer<Options>): this;
mixin(mixin: ComponentOptions): this;
component(name: string): Component | undefined;
component<T extends Component | DefineComponent>(name: string, component: T): this;
@@ -1105,7 +1105,7 @@ export type ObjectPlugin<Options = any[]> = {
install: PluginInstallFunction<Options>;
};
export type FunctionPlugin<Options = any[]> = PluginInstallFunction<Options> & Partial<ObjectPlugin<Options>>;
export type Plugin<Options = any[]> = FunctionPlugin<Options> | ObjectPlugin<Options>;
export type Plugin<Options = any[], P extends unknown[] = Options extends unknown[] ? Options : [Options]> = FunctionPlugin<P> | ObjectPlugin<P>;
export type CreateAppFunction<HostElement> = (rootComponent: Component, rootProps?: Data | null) => App<HostElement>;
type TeleportVNode = VNode<RendererNode, RendererElement, TeleportProps>;
@@ -1525,7 +1525,8 @@ export declare function defineAsyncComponent<T extends Component = {
export declare function useModel<M extends PropertyKey, T extends Record<string, any>, K extends keyof T, G = T[K], S = T[K]>(props: T, name: K, options?: DefineModelOptions<T[K], G, S>): ModelRef<T[K], M, G, S>;
export declare function useTemplateRef<T = unknown, Keys extends string = string>(key: Keys): Readonly<ShallowRef<T | null>>;
export type TemplateRef<T = unknown> = Readonly<ShallowRef<T | null>>;
export declare function useTemplateRef<T = unknown, Keys extends string = string>(key: Keys): TemplateRef<T>;
export declare function useId(): string;
@@ -1798,7 +1799,8 @@ declare module '@vue/reactivity' {
export declare const DeprecationTypes: typeof DeprecationTypes$1;
export { type WatchEffectOptions as WatchOptionsBase, createBaseVNode as createElementVNode, };
export { createBaseVNode as createElementVNode, };
export type { WatchEffectOptions as WatchOptionsBase };
// Note: this file is auto concatenated to the end of the bundled d.ts during
// build.

View File

@@ -1,11 +1,11 @@
/**
* @vue/runtime-core v3.5.13
* @vue/runtime-core v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
import { pauseTracking, resetTracking, isRef, toRaw, traverse, shallowRef, readonly, isReactive, ref, isShallow, shallowReadArray, toReactive, shallowReadonly, track, reactive, shallowReactive, trigger, ReactiveEffect, watch as watch$1, customRef, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, isReadonly } from '@vue/reactivity';
import { pauseTracking, resetTracking, isRef, toRaw, traverse, shallowRef, readonly, isReactive, ref, isShallow, isReadonly, shallowReadArray, toReadonly, toReactive, shallowReadonly, track, reactive, shallowReactive, trigger, ReactiveEffect, watch as watch$1, customRef, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1 } from '@vue/reactivity';
export { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, onWatcherCleanup, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
import { isString, isFunction, isPromise, isArray, EMPTY_OBJ, NOOP, getGlobalThis, extend, isBuiltInDirective, hasOwn, remove, def, isOn, isReservedProp, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr, isRenderableAttrValue, getEscapedCssVarName, isObject, isRegExp, invokeArrayFns, toHandlerKey, capitalize, camelize, isSymbol, isGloballyAllowed, NO, hyphenate, EMPTY_ARR, toRawType, makeMap, hasChanged, looseToNumber, isModelListener, toNumber } from '@vue/shared';
import { isString, isFunction, EMPTY_OBJ, isPromise, isArray, NOOP, getGlobalThis, extend, isBuiltInDirective, hasOwn, remove, def, isOn, isReservedProp, normalizeClass, stringifyStyle, normalizeStyle, isKnownSvgAttr, isBooleanAttr, isKnownHtmlAttr, includeBooleanAttr, isRenderableAttrValue, getEscapedCssVarName, isObject, isRegExp, invokeArrayFns, toHandlerKey, camelize, capitalize, isSymbol, isGloballyAllowed, NO, EMPTY_ARR, hyphenate, makeMap, toRawType, hasChanged, looseToNumber, isModelListener, toNumber } from '@vue/shared';
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
const stack = [];
@@ -351,11 +351,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;
}
}
}
@@ -380,10 +380,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;
@@ -419,7 +419,7 @@ function flushJobs(seen) {
for (; flushIndex < queue.length; flushIndex++) {
const job = queue[flushIndex];
if (job) {
job.flags &= ~1;
job.flags &= -2;
}
}
flushIndex = -1;
@@ -908,7 +908,7 @@ const TeleportImpl = {
namespace,
slotScopeIds
);
traverseStaticChildren(n1, n2, true);
traverseStaticChildren(n1, n2, !!!(process.env.NODE_ENV !== "production"));
} else if (!optimized) {
patchChildren(
n1,
@@ -1425,7 +1425,7 @@ function getInnerChild$1(vnode) {
}
return vnode;
}
if (!!(process.env.NODE_ENV !== "production") && vnode.component) {
if (vnode.component) {
return vnode.component.subTree;
}
const { shapeFlag, children } = vnode;
@@ -2605,6 +2605,9 @@ const KeepAliveImpl = {
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) {
devtoolsComponentAdded(instance2);
}
if (!!(process.env.NODE_ENV !== "production") && true) {
instance2.__keepAliveStorageContainer = storageContainer;
}
};
function unmount(vnode) {
resetShapeFlag(vnode);
@@ -2692,7 +2695,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;
}
@@ -2779,8 +2782,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;
@@ -2895,14 +2898,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]
@@ -3928,11 +3933,9 @@ function createAppAPI(render, hydrate) {
}
if (!!(process.env.NODE_ENV !== "production")) {
context.reload = () => {
render(
cloneVNode(vnode),
rootContainer,
namespace
);
const cloned = cloneVNode(vnode);
cloned.el = null;
render(cloned, rootContainer, namespace);
};
}
if (isHydrate && hydrate) {
@@ -4455,7 +4458,7 @@ const normalizeSlot = (key, rawSlot, ctx) => {
return rawSlot;
}
const normalized = withCtx((...args) => {
if (!!(process.env.NODE_ENV !== "production") && currentInstance && (!ctx || ctx.root === currentInstance.root)) {
if (!!(process.env.NODE_ENV !== "production") && 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.`
);
@@ -4494,7 +4497,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];
}
}
@@ -5218,8 +5221,8 @@ function baseCreateRenderer(options, createHydrationFns) {
endMeasure(instance, `init`);
}
}
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) initialVNode.el = null;
if (instance.asyncDep) {
if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) initialVNode.el = null;
parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
if (!initialVNode.el) {
const placeholder = instance.subTree = createVNode(Comment);
@@ -5781,7 +5784,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();
@@ -5814,7 +5823,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;
@@ -5926,12 +5937,27 @@ function baseCreateRenderer(options, createHydrationFns) {
if (!!(process.env.NODE_ENV !== "production") && 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;
@@ -6027,8 +6053,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) {
@@ -6052,9 +6078,12 @@ function traverseStaticChildren(n1, n2, shallow = false) {
if (c2.type === Text) {
c2.el = c1.el;
}
if (!!(process.env.NODE_ENV !== "production") && c2.type === Comment && !c2.el) {
if (c2.type === Comment && !c2.el) {
c2.el = c1.el;
}
if (!!(process.env.NODE_ENV !== "production")) {
c2.el && (c2.el.__vnode = c2);
}
}
}
}
@@ -7400,8 +7429,8 @@ function isSameVNodeType(n1, n2) {
if (!!(process.env.NODE_ENV !== "production") && 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;
}
}
@@ -7864,7 +7893,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;
@@ -8207,13 +8236,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)) {
@@ -8394,7 +8425,7 @@ function isMemoSame(cached, memo) {
return true;
}
const version = "3.5.13";
const version = "3.5.14";
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
const ErrorTypeStrings = ErrorTypeStrings$1 ;
const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;

View File

@@ -1,6 +1,6 @@
{
"name": "@vue/runtime-core",
"version": "3.5.13",
"version": "3.5.14",
"description": "@vue/runtime-core",
"main": "index.js",
"module": "dist/runtime-core.esm-bundler.js",
@@ -46,7 +46,7 @@
},
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
"dependencies": {
"@vue/shared": "3.5.13",
"@vue/reactivity": "3.5.13"
"@vue/shared": "3.5.14",
"@vue/reactivity": "3.5.14"
}
}