🌱 🏗️ ⬆️ 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/reactivity v3.5.13
* @vue/reactivity v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -21,6 +21,10 @@ class EffectScope {
* @internal
*/
this._active = true;
/**
* @internal track `on` calls, allow `on` call multiple times
*/
this._on = 0;
/**
* @internal
*/
@@ -91,14 +95,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) {
@@ -160,7 +170,9 @@ const EffectFlags = {
"ALLOW_RECURSE": 32,
"32": "ALLOW_RECURSE",
"PAUSED": 64,
"64": "PAUSED"
"64": "PAUSED",
"EVALUATED": 128,
"128": "EVALUATED"
};
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
class ReactiveEffect {
@@ -196,7 +208,7 @@ class ReactiveEffect {
}
resume() {
if (this.flags & 64) {
this.flags &= ~64;
this.flags &= -65;
if (pausedQueueEffects.has(this)) {
pausedQueueEffects.delete(this);
this.trigger();
@@ -236,7 +248,7 @@ class ReactiveEffect {
cleanupDeps(this);
activeSub = prevEffect;
shouldTrack = prevShouldTrack;
this.flags &= ~2;
this.flags &= -3;
}
}
stop() {
@@ -247,7 +259,7 @@ class ReactiveEffect {
this.deps = this.depsTail = void 0;
cleanupEffect(this);
this.onStop && this.onStop();
this.flags &= ~1;
this.flags &= -2;
}
}
trigger() {
@@ -297,7 +309,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
e = next;
}
}
@@ -308,7 +320,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
if (e.flags & 1) {
try {
;
@@ -364,17 +376,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;
@@ -383,6 +394,7 @@ function refreshComputed(computed) {
prepareDeps(computed);
const value = computed.fn(computed._value);
if (dep.version === 0 || shared.hasChanged(value, computed._value)) {
computed.flags |= 128;
computed._value = value;
dep.version++;
}
@@ -393,7 +405,7 @@ function refreshComputed(computed) {
activeSub = prevSub;
shouldTrack = prevShouldTrack;
cleanupDeps(computed);
computed.flags &= ~2;
computed.flags &= -3;
}
}
function removeSub(link, soft = false) {
@@ -412,7 +424,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);
}
@@ -1358,14 +1370,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

View File

@@ -1,5 +1,5 @@
/**
* @vue/reactivity v3.5.13
* @vue/reactivity v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -17,6 +17,10 @@ class EffectScope {
* @internal
*/
this._active = true;
/**
* @internal track `on` calls, allow `on` call multiple times
*/
this._on = 0;
/**
* @internal
*/
@@ -85,14 +89,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) {
@@ -150,7 +160,9 @@ const EffectFlags = {
"ALLOW_RECURSE": 32,
"32": "ALLOW_RECURSE",
"PAUSED": 64,
"64": "PAUSED"
"64": "PAUSED",
"EVALUATED": 128,
"128": "EVALUATED"
};
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
class ReactiveEffect {
@@ -186,7 +198,7 @@ class ReactiveEffect {
}
resume() {
if (this.flags & 64) {
this.flags &= ~64;
this.flags &= -65;
if (pausedQueueEffects.has(this)) {
pausedQueueEffects.delete(this);
this.trigger();
@@ -221,7 +233,7 @@ class ReactiveEffect {
cleanupDeps(this);
activeSub = prevEffect;
shouldTrack = prevShouldTrack;
this.flags &= ~2;
this.flags &= -3;
}
}
stop() {
@@ -232,7 +244,7 @@ class ReactiveEffect {
this.deps = this.depsTail = void 0;
cleanupEffect(this);
this.onStop && this.onStop();
this.flags &= ~1;
this.flags &= -2;
}
}
trigger() {
@@ -282,7 +294,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
e = next;
}
}
@@ -293,7 +305,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
if (e.flags & 1) {
try {
;
@@ -349,17 +361,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;
@@ -368,6 +379,7 @@ function refreshComputed(computed) {
prepareDeps(computed);
const value = computed.fn(computed._value);
if (dep.version === 0 || shared.hasChanged(value, computed._value)) {
computed.flags |= 128;
computed._value = value;
dep.version++;
}
@@ -378,7 +390,7 @@ function refreshComputed(computed) {
activeSub = prevSub;
shouldTrack = prevShouldTrack;
cleanupDeps(computed);
computed.flags &= ~2;
computed.flags &= -3;
}
}
function removeSub(link, soft = false) {
@@ -394,7 +406,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);
}
@@ -1254,14 +1266,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

View File

@@ -47,9 +47,9 @@ export type ShallowReactive<T> = T & {
[ShallowReactiveMarker]?: true;
};
/**
* Shallow version of {@link reactive()}.
* Shallow version of {@link reactive}.
*
* Unlike {@link reactive()}, there is no deep conversion: only root-level
* Unlike {@link reactive}, there is no deep conversion: only root-level
* properties are reactive for a shallow reactive object. Property values are
* stored and exposed as-is - this also means properties with ref values will
* not be automatically unwrapped.
@@ -87,7 +87,7 @@ export type DeepReadonly<T> = T extends Builtin ? T : T extends Map<infer K, inf
* the original.
*
* A readonly proxy is deep: any nested property accessed will be readonly as
* well. It also has the same ref-unwrapping behavior as {@link reactive()},
* well. It also has the same ref-unwrapping behavior as {@link reactive},
* except the unwrapped values will also be made readonly.
*
* @example
@@ -113,9 +113,9 @@ export type DeepReadonly<T> = T extends Builtin ? T : T extends Map<infer K, inf
*/
export declare function readonly<T extends object>(target: T): DeepReadonly<UnwrapNestedRefs<T>>;
/**
* Shallow version of {@link readonly()}.
* Shallow version of {@link readonly}.
*
* Unlike {@link readonly()}, there is no deep conversion: only root-level
* Unlike {@link readonly}, there is no deep conversion: only root-level
* properties are made readonly. Property values are stored and exposed as-is -
* this also means properties with ref values will not be automatically
* unwrapped.
@@ -144,8 +144,8 @@ export declare function readonly<T extends object>(target: T): DeepReadonly<Unwr
*/
export declare function shallowReadonly<T extends object>(target: T): Readonly<T>;
/**
* Checks if an object is a proxy created by {@link reactive()} or
* {@link shallowReactive()} (or {@link ref()} in some cases).
* Checks if an object is a proxy created by {@link reactive} or
* {@link shallowReactive} (or {@link ref} in some cases).
*
* @example
* ```js
@@ -167,7 +167,7 @@ export declare function isReactive(value: unknown): boolean;
* readonly object can change, but they can't be assigned directly via the
* passed object.
*
* The proxies created by {@link readonly()} and {@link shallowReadonly()} are
* The proxies created by {@link readonly} and {@link shallowReadonly} are
* both considered readonly, as is a computed ref without a set function.
*
* @param value - The value to check.
@@ -177,7 +177,7 @@ export declare function isReadonly(value: unknown): boolean;
export declare function isShallow(value: unknown): boolean;
/**
* Checks if an object is a proxy created by {@link reactive},
* {@link readonly}, {@link shallowReactive} or {@link shallowReadonly()}.
* {@link readonly}, {@link shallowReactive} or {@link shallowReadonly}.
*
* @param value - The value to check.
* @see {@link https://vuejs.org/api/reactivity-utilities.html#isproxy}
@@ -187,8 +187,8 @@ export declare function isProxy(value: any): boolean;
* Returns the raw, original object of a Vue-created proxy.
*
* `toRaw()` can return the original object from proxies created by
* {@link reactive()}, {@link readonly()}, {@link shallowReactive()} or
* {@link shallowReadonly()}.
* {@link reactive}, {@link readonly}, {@link shallowReactive} or
* {@link shallowReadonly}.
*
* This is an escape hatch that can be used to temporarily read without
* incurring proxy access / tracking overhead or write without triggering
@@ -225,7 +225,7 @@ export type Raw<T> = T & {
* ```
*
* **Warning:** `markRaw()` together with the shallow APIs such as
* {@link shallowReactive()} allow you to selectively opt-out of the default
* {@link shallowReactive} allow you to selectively opt-out of the default
* deep reactive/readonly conversion and embed raw, non-proxied objects in your
* state graph.
*
@@ -281,7 +281,8 @@ export declare enum EffectFlags {
NOTIFIED = 8,
DIRTY = 16,
ALLOW_RECURSE = 32,
PAUSED = 64
PAUSED = 64,
EVALUATED = 128
}
/**
* Subscriber is a type that tracks (or subscribes to) a list of deps.
@@ -447,7 +448,7 @@ export type ShallowRef<T = any, S = T> = Ref<T, S> & {
[ShallowRefMarker]?: true;
};
/**
* Shallow version of {@link ref()}.
* Shallow version of {@link ref}.
*
* @example
* ```js
@@ -512,7 +513,7 @@ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | ComputedRef<T> | (() => T)
export declare function unref<T>(ref: MaybeRef<T> | ComputedRef<T>): T;
/**
* Normalizes values / refs / getters to values.
* This is similar to {@link unref()}, except that it also normalizes getters.
* This is similar to {@link unref}, except that it also normalizes getters.
* If the argument is a getter, it will be invoked and its return value will
* be returned.
*
@@ -554,7 +555,7 @@ export type ToRefs<T = any> = {
/**
* Converts a reactive object to a plain object where each property of the
* resulting object is a ref pointing to the corresponding property of the
* original object. Each individual ref is created using {@link toRef()}.
* original object. Each individual ref is created using {@link toRef}.
*
* @param object - Reactive object to be made into an object of linked refs.
* @see {@link https://vuejs.org/api/reactivity-utilities.html#torefs}
@@ -672,6 +673,7 @@ export declare class EffectScope {
*/
resume(): void;
run<T>(fn: () => T): T | undefined;
prevScope: EffectScope | undefined;
stop(fromParent?: boolean): void;
}
/**
@@ -752,3 +754,4 @@ export declare function onWatcherCleanup(cleanupFn: () => void, failSilently?: b
export declare function watch(source: WatchSource | WatchSource[] | WatchEffect | object, cb?: WatchCallback | null, options?: WatchOptions): WatchHandle;
export declare function traverse(value: unknown, depth?: number, seen?: Set<unknown>): unknown;

View File

@@ -1,5 +1,5 @@
/**
* @vue/reactivity v3.5.13
* @vue/reactivity v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -69,6 +69,10 @@ class EffectScope {
* @internal
*/
this._active = true;
/**
* @internal track `on` calls, allow `on` call multiple times
*/
this._on = 0;
/**
* @internal
*/
@@ -139,14 +143,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) {
@@ -208,7 +218,9 @@ const EffectFlags = {
"ALLOW_RECURSE": 32,
"32": "ALLOW_RECURSE",
"PAUSED": 64,
"64": "PAUSED"
"64": "PAUSED",
"EVALUATED": 128,
"128": "EVALUATED"
};
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
class ReactiveEffect {
@@ -244,7 +256,7 @@ class ReactiveEffect {
}
resume() {
if (this.flags & 64) {
this.flags &= ~64;
this.flags &= -65;
if (pausedQueueEffects.has(this)) {
pausedQueueEffects.delete(this);
this.trigger();
@@ -284,7 +296,7 @@ class ReactiveEffect {
cleanupDeps(this);
activeSub = prevEffect;
shouldTrack = prevShouldTrack;
this.flags &= ~2;
this.flags &= -3;
}
}
stop() {
@@ -295,7 +307,7 @@ class ReactiveEffect {
this.deps = this.depsTail = void 0;
cleanupEffect(this);
this.onStop && this.onStop();
this.flags &= ~1;
this.flags &= -2;
}
}
trigger() {
@@ -345,7 +357,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
e = next;
}
}
@@ -356,7 +368,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
if (e.flags & 1) {
try {
;
@@ -412,17 +424,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;
@@ -431,6 +442,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++;
}
@@ -441,7 +453,7 @@ function refreshComputed(computed) {
activeSub = prevSub;
shouldTrack = prevShouldTrack;
cleanupDeps(computed);
computed.flags &= ~2;
computed.flags &= -3;
}
}
function removeSub(link, soft = false) {
@@ -460,7 +472,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);
}
@@ -1406,14 +1418,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

File diff suppressed because one or more lines are too long

View File

@@ -1,9 +1,9 @@
/**
* @vue/reactivity v3.5.13
* @vue/reactivity v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
import { hasChanged, extend, isArray, isIntegerKey, isSymbol, isMap, hasOwn, isObject, makeMap, toRawType, capitalize, def, isFunction, EMPTY_OBJ, isSet, isPlainObject, NOOP, remove } from '@vue/shared';
import { extend, hasChanged, isArray, isIntegerKey, isSymbol, isMap, hasOwn, makeMap, isObject, capitalize, toRawType, def, isFunction, EMPTY_OBJ, isSet, isPlainObject, remove, NOOP } from '@vue/shared';
function warn(msg, ...args) {
console.warn(`[Vue warn] ${msg}`, ...args);
@@ -17,6 +17,10 @@ class EffectScope {
* @internal
*/
this._active = true;
/**
* @internal track `on` calls, allow `on` call multiple times
*/
this._on = 0;
/**
* @internal
*/
@@ -87,14 +91,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) {
@@ -156,7 +166,9 @@ const EffectFlags = {
"ALLOW_RECURSE": 32,
"32": "ALLOW_RECURSE",
"PAUSED": 64,
"64": "PAUSED"
"64": "PAUSED",
"EVALUATED": 128,
"128": "EVALUATED"
};
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
class ReactiveEffect {
@@ -192,7 +204,7 @@ class ReactiveEffect {
}
resume() {
if (this.flags & 64) {
this.flags &= ~64;
this.flags &= -65;
if (pausedQueueEffects.has(this)) {
pausedQueueEffects.delete(this);
this.trigger();
@@ -232,7 +244,7 @@ class ReactiveEffect {
cleanupDeps(this);
activeSub = prevEffect;
shouldTrack = prevShouldTrack;
this.flags &= ~2;
this.flags &= -3;
}
}
stop() {
@@ -243,7 +255,7 @@ class ReactiveEffect {
this.deps = this.depsTail = void 0;
cleanupEffect(this);
this.onStop && this.onStop();
this.flags &= ~1;
this.flags &= -2;
}
}
trigger() {
@@ -293,7 +305,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
e = next;
}
}
@@ -304,7 +316,7 @@ function endBatch() {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
if (e.flags & 1) {
try {
;
@@ -360,17 +372,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;
@@ -379,6 +390,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++;
}
@@ -389,7 +401,7 @@ function refreshComputed(computed) {
activeSub = prevSub;
shouldTrack = prevShouldTrack;
cleanupDeps(computed);
computed.flags &= ~2;
computed.flags &= -3;
}
}
function removeSub(link, soft = false) {
@@ -408,7 +420,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);
}
@@ -1358,14 +1370,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

View File

@@ -1,5 +1,5 @@
/**
* @vue/reactivity v3.5.13
* @vue/reactivity v3.5.14
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
@@ -72,6 +72,10 @@ var VueReactivity = (function (exports) {
* @internal
*/
this._active = true;
/**
* @internal track `on` calls, allow `on` call multiple times
*/
this._on = 0;
/**
* @internal
*/
@@ -142,14 +146,20 @@ var VueReactivity = (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) {
@@ -211,7 +221,9 @@ var VueReactivity = (function (exports) {
"ALLOW_RECURSE": 32,
"32": "ALLOW_RECURSE",
"PAUSED": 64,
"64": "PAUSED"
"64": "PAUSED",
"EVALUATED": 128,
"128": "EVALUATED"
};
const pausedQueueEffects = /* @__PURE__ */ new WeakSet();
class ReactiveEffect {
@@ -247,7 +259,7 @@ var VueReactivity = (function (exports) {
}
resume() {
if (this.flags & 64) {
this.flags &= ~64;
this.flags &= -65;
if (pausedQueueEffects.has(this)) {
pausedQueueEffects.delete(this);
this.trigger();
@@ -287,7 +299,7 @@ var VueReactivity = (function (exports) {
cleanupDeps(this);
activeSub = prevEffect;
shouldTrack = prevShouldTrack;
this.flags &= ~2;
this.flags &= -3;
}
}
stop() {
@@ -298,7 +310,7 @@ var VueReactivity = (function (exports) {
this.deps = this.depsTail = void 0;
cleanupEffect(this);
this.onStop && this.onStop();
this.flags &= ~1;
this.flags &= -2;
}
}
trigger() {
@@ -348,7 +360,7 @@ var VueReactivity = (function (exports) {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
e = next;
}
}
@@ -359,7 +371,7 @@ var VueReactivity = (function (exports) {
while (e) {
const next = e.next;
e.next = void 0;
e.flags &= ~8;
e.flags &= -9;
if (e.flags & 1) {
try {
;
@@ -415,17 +427,16 @@ var VueReactivity = (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;
@@ -434,6 +445,7 @@ var VueReactivity = (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++;
}
@@ -444,7 +456,7 @@ var VueReactivity = (function (exports) {
activeSub = prevSub;
shouldTrack = prevShouldTrack;
cleanupDeps(computed);
computed.flags &= ~2;
computed.flags &= -3;
}
}
function removeSub(link, soft = false) {
@@ -463,7 +475,7 @@ var VueReactivity = (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);
}
@@ -1409,14 +1421,14 @@ var VueReactivity = (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

File diff suppressed because one or more lines are too long

View File

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