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