@tachui/core 0.8.5-alpha → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/assets/index.js +10 -10
- package/dist/{binding-CYpEQquE.js → binding-DCV5PKkK.js} +3 -3
- package/dist/common.js +36 -36
- package/dist/{component-CECyfUOE.js → component-D-O9yq0P.js} +4 -4
- package/dist/{component-base-CJ__jTlr.js → component-base-C41K3NTe.js} +2 -2
- package/dist/{component-context-B6qX_Qsg.js → component-context-B9HI2nZH.js} +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{concatenated-component-_tF1eMvy.js → concatenated-component-CP81AwgI.js} +3 -3
- package/dist/css-classes/index.js +2 -2
- package/dist/{effect-DGmdACI2.js → effect-BsW3fy1q.js} +1 -1
- package/dist/{enhanced-renderer-Bwqsh8Ku.js → enhanced-renderer-BXwg8n7F.js} +4 -4
- package/dist/essential.js +43 -43
- package/dist/{factories-Co2Lv2kJ.js → factories-B3-rmvkB.js} +3 -3
- package/dist/{factory-D7jAY5Kn.js → factory-BgnjJRGE.js} +7 -7
- package/dist/{hooks-DeLasj54.js → hooks-WGmpzYgD.js} +3 -3
- package/dist/{index-X8MVY78C.js → index-ykdS-3xs.js} +7 -7
- package/dist/index.js +36 -36
- package/dist/minimal-prod.js +89 -88
- package/dist/minimal.js +97 -96
- package/dist/modifiers/base.d.ts +1 -0
- package/dist/modifiers/base.d.ts.map +1 -1
- package/dist/modifiers/base.js +213 -93
- package/dist/modifiers/builder.js +1 -1
- package/dist/modifiers/index.js +3 -3
- package/dist/modifiers/proxy.d.ts.map +1 -1
- package/dist/modifiers/reactive-style-bindings.d.ts +22 -0
- package/dist/modifiers/reactive-style-bindings.d.ts.map +1 -0
- package/dist/modifiers/registry.js +1 -1
- package/dist/{observed-object-DepiqSgg.js → observed-object-p1CLdrFm.js} +3 -3
- package/dist/proxy-522Jjabr.js +188 -0
- package/dist/reactive/computed.d.ts +3 -0
- package/dist/reactive/computed.d.ts.map +1 -1
- package/dist/reactive/index.js +18 -18
- package/dist/runtime/dom-bridge.js +4 -4
- package/dist/runtime/index.js +4 -4
- package/dist/runtime/renderer.js +4 -4
- package/dist/{scheduler-DI_8ykMk.js → scheduler-DppMK9mR.js} +1 -1
- package/dist/{signal-list-BdpxSodS.js → signal-list-07gNXGiW.js} +18 -18
- package/dist/state/index.js +8 -8
- package/dist/{theme-BFaKUcjZ.js → theme-CRLPHryV.js} +128 -118
- package/dist/validation/index.js +2 -2
- package/dist/version.js +1 -1
- package/package.json +4 -3
- package/dist/proxy-Cqmbiyx0.js +0 -175
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { z as h, d as R } from "./concatenated-component-CP81AwgI.js";
|
|
2
|
+
const k = {
|
|
3
|
+
proxyModifiers: !0
|
|
4
|
+
};
|
|
5
|
+
let C = { ...k };
|
|
6
|
+
function _(r) {
|
|
7
|
+
C = {
|
|
8
|
+
...C,
|
|
9
|
+
...r
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function v() {
|
|
13
|
+
return { ...C };
|
|
14
|
+
}
|
|
15
|
+
function W() {
|
|
16
|
+
return C.proxyModifiers === !0;
|
|
17
|
+
}
|
|
18
|
+
let B = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap();
|
|
19
|
+
function a(r) {
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(r, "modifiers") && Object.prototype.hasOwnProperty.call(r, "modifierBuilder"))
|
|
21
|
+
return r;
|
|
22
|
+
if (!r._modifiableComponent) {
|
|
23
|
+
const m = R(r);
|
|
24
|
+
Object.prototype.hasOwnProperty.call(r, "modifier") || Object.defineProperty(r, "modifier", {
|
|
25
|
+
configurable: !0,
|
|
26
|
+
enumerable: !1,
|
|
27
|
+
get() {
|
|
28
|
+
return m.modifierBuilder;
|
|
29
|
+
},
|
|
30
|
+
set(o) {
|
|
31
|
+
Object.defineProperty(r, "modifier", {
|
|
32
|
+
configurable: !0,
|
|
33
|
+
enumerable: !1,
|
|
34
|
+
writable: !0,
|
|
35
|
+
value: o
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}), r._modifiableComponent = m;
|
|
39
|
+
}
|
|
40
|
+
return r._modifiableComponent;
|
|
41
|
+
}
|
|
42
|
+
function E() {
|
|
43
|
+
B = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), A = /* @__PURE__ */ new WeakMap();
|
|
44
|
+
}
|
|
45
|
+
function O(r) {
|
|
46
|
+
if (!W())
|
|
47
|
+
return r;
|
|
48
|
+
const m = B.get(r);
|
|
49
|
+
if (m)
|
|
50
|
+
return m;
|
|
51
|
+
const o = /* @__PURE__ */ new Map();
|
|
52
|
+
P.set(r, o);
|
|
53
|
+
const b = /* @__PURE__ */ new Map();
|
|
54
|
+
x.set(r, b);
|
|
55
|
+
const l = /* @__PURE__ */ new Map();
|
|
56
|
+
A.set(r, l);
|
|
57
|
+
const j = {
|
|
58
|
+
get(i, e, d) {
|
|
59
|
+
if (e === Symbol.toStringTag)
|
|
60
|
+
return Reflect.get(i, e, d);
|
|
61
|
+
if (e === "render") {
|
|
62
|
+
if (l.has(e))
|
|
63
|
+
return l.get(e);
|
|
64
|
+
const t = a(i);
|
|
65
|
+
if (typeof t.render == "function") {
|
|
66
|
+
const f = t.render.bind(t);
|
|
67
|
+
return l.set(e, f), f;
|
|
68
|
+
}
|
|
69
|
+
return Reflect.get(i, e, d);
|
|
70
|
+
}
|
|
71
|
+
if (e === "build") {
|
|
72
|
+
const t = a(i), f = t.modifierBuilder || t.modifier;
|
|
73
|
+
if (f && typeof f.build == "function") {
|
|
74
|
+
const s = f.build.bind(f);
|
|
75
|
+
return (...n) => {
|
|
76
|
+
const u = s(...n);
|
|
77
|
+
return u && typeof u == "object" && !Array.isArray(u) ? O(
|
|
78
|
+
u
|
|
79
|
+
) : u;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (e === "modifiers" || e === "modifier" || e === "modifierBuilder") {
|
|
85
|
+
if (e === "modifier") {
|
|
86
|
+
const f = Object.getOwnPropertyDescriptor(
|
|
87
|
+
i,
|
|
88
|
+
"modifier"
|
|
89
|
+
);
|
|
90
|
+
if (f && "value" in f)
|
|
91
|
+
return f.value;
|
|
92
|
+
}
|
|
93
|
+
const t = a(i);
|
|
94
|
+
return e === "modifiers" ? t.modifiers : t.modifierBuilder;
|
|
95
|
+
}
|
|
96
|
+
if (typeof e == "string") {
|
|
97
|
+
let t;
|
|
98
|
+
if (o.has(e) && (t = h.get(e), t)) {
|
|
99
|
+
const n = b.get(e);
|
|
100
|
+
n !== void 0 && n !== t && (o.delete(e), b.delete(e));
|
|
101
|
+
}
|
|
102
|
+
if (Reflect.has(i, e)) {
|
|
103
|
+
const n = Reflect.get(i, e, i);
|
|
104
|
+
if (typeof n != "function")
|
|
105
|
+
return n;
|
|
106
|
+
}
|
|
107
|
+
const f = a(i), s = f.modifierBuilder || f.modifier;
|
|
108
|
+
if (s) {
|
|
109
|
+
const n = s[e];
|
|
110
|
+
if (typeof n == "function") {
|
|
111
|
+
if (!o.has(e)) {
|
|
112
|
+
const u = (...M) => {
|
|
113
|
+
const y = a(i), c = y.modifierBuilder || y.modifier, F = c?.[e];
|
|
114
|
+
if (typeof F != "function")
|
|
115
|
+
throw new Error(
|
|
116
|
+
`Modifier '${String(e)}' is not callable`
|
|
117
|
+
);
|
|
118
|
+
const g = F.apply(c, M);
|
|
119
|
+
return g && g !== c ? g : w;
|
|
120
|
+
};
|
|
121
|
+
o.set(e, u), b.set(
|
|
122
|
+
e,
|
|
123
|
+
t ?? h.get(e)
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
return o.get(e);
|
|
127
|
+
}
|
|
128
|
+
if (n !== void 0)
|
|
129
|
+
return n;
|
|
130
|
+
}
|
|
131
|
+
if (h.has(e)) {
|
|
132
|
+
if (!o.has(e)) {
|
|
133
|
+
const n = (...u) => {
|
|
134
|
+
const M = a(i), y = M.modifierBuilder || M.modifier, c = y?.[e];
|
|
135
|
+
if (typeof c != "function")
|
|
136
|
+
throw new Error(`Modifier '${String(e)}' is not callable`);
|
|
137
|
+
return c.apply(y, u), w;
|
|
138
|
+
};
|
|
139
|
+
o.set(e, n), b.set(
|
|
140
|
+
e,
|
|
141
|
+
t ?? h.get(e)
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
return o.get(e);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
if (Reflect.has(i, e)) {
|
|
148
|
+
const t = Reflect.get(i, e, i);
|
|
149
|
+
return typeof t == "function" ? e === "clone" ? (...f) => {
|
|
150
|
+
const s = t.apply(i, f);
|
|
151
|
+
return s && typeof s == "object" ? O(s) : s;
|
|
152
|
+
} : (l.has(e) || l.set(e, t.bind(i)), l.get(e)) : t;
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
has(i, e) {
|
|
156
|
+
if (e === "modifiers" || e === "modifier" || e === "modifierBuilder")
|
|
157
|
+
return !0;
|
|
158
|
+
if (typeof e == "string") {
|
|
159
|
+
const d = i._modifiableComponent || a(i), t = d?.modifierBuilder || d?.modifier;
|
|
160
|
+
if (t && typeof t[e] == "function")
|
|
161
|
+
return !0;
|
|
162
|
+
}
|
|
163
|
+
return Reflect.has(i, e) || h.has(e);
|
|
164
|
+
},
|
|
165
|
+
set(i, e, d, t) {
|
|
166
|
+
if (e === "modifier")
|
|
167
|
+
return Object.defineProperty(i, "modifier", {
|
|
168
|
+
configurable: !0,
|
|
169
|
+
enumerable: !1,
|
|
170
|
+
writable: !0,
|
|
171
|
+
value: d
|
|
172
|
+
}), o.clear(), !0;
|
|
173
|
+
if (e === "modifiers" && Array.isArray(d)) {
|
|
174
|
+
const f = a(i);
|
|
175
|
+
return f.modifiers = [...d], !0;
|
|
176
|
+
}
|
|
177
|
+
return Reflect.set(i, e, d, t);
|
|
178
|
+
}
|
|
179
|
+
}, w = new Proxy(r, j);
|
|
180
|
+
return B.set(r, w), w;
|
|
181
|
+
}
|
|
182
|
+
export {
|
|
183
|
+
_ as a,
|
|
184
|
+
O as c,
|
|
185
|
+
v as g,
|
|
186
|
+
W as i,
|
|
187
|
+
E as r
|
|
188
|
+
};
|
|
@@ -13,6 +13,7 @@ export interface ComputedOptions<T> {
|
|
|
13
13
|
priority?: UpdatePriority;
|
|
14
14
|
debugName?: string;
|
|
15
15
|
onError?: (error: Error) => T;
|
|
16
|
+
releaseOnNoObservers?: boolean;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Robust computed value implementation with error recovery
|
|
@@ -37,6 +38,7 @@ declare class ComputedImpl<T> extends ComputationImpl implements ReactiveNode {
|
|
|
37
38
|
* Remove an observer (cleanup)
|
|
38
39
|
*/
|
|
39
40
|
removeObserver(computation: Computation): void;
|
|
41
|
+
releaseSources(): void;
|
|
40
42
|
/**
|
|
41
43
|
* Execute the computation and notify observers
|
|
42
44
|
*/
|
|
@@ -91,6 +93,7 @@ export declare function isComputed<T = any>(value: any): value is Signal<T>;
|
|
|
91
93
|
* Get the underlying computed implementation for debugging
|
|
92
94
|
*/
|
|
93
95
|
export declare function getComputedImpl<T>(computed: Signal<T>): ComputedImpl<T> | null;
|
|
96
|
+
export declare function releaseComputedSourcesIfUnobserved<T>(computed: Signal<T>): void;
|
|
94
97
|
/**
|
|
95
98
|
* Create a computed value with explicit dependency tracking
|
|
96
99
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed.d.ts","sourceRoot":"","sources":["../../src/reactive/computed.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,WAAW,CAAA;AACnF,OAAO,EAAiB,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EA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,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAenF;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAiBxF;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAA"}
|
package/dist/reactive/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as t, c as s, a as r, b as c, e as i, f as n, d as l, g as o, h as g, o as u, s as f, i as d, j as h, k as E } from "../scheduler-
|
|
2
|
-
import { R as m,
|
|
3
|
-
import { c as V, b as X, a as Y, d as Z } from "../effect-
|
|
4
|
-
import { p as $, q as ee, i as ae, A as te, c as se, a as re, j as ce, b as ie, r as ne, d as le, s as oe, e as ge, k as ue, F as fe, G as de, f as he, t as Ee, g as Se, l as me, h as pe, m as Re, u as ye, B as
|
|
1
|
+
import { T as t, c as s, a as r, b as c, e as i, f as n, d as l, g as o, h as g, o as u, s as f, i as d, j as h, k as E } from "../scheduler-DppMK9mR.js";
|
|
2
|
+
import { R as m, M as p, U as R, q as y, w as q, x as v, a as C, b, y as w, n as x, z as M, c as P, A as T, B as O, E as L, I as U, f as I, J as j, p as k, v as z, g as B, K as D, d as W, i as A, F as G, o as F, L as H, G as J, H as K, u as N } from "../theme-CRLPHryV.js";
|
|
3
|
+
import { c as V, b as X, a as Y, d as Z } from "../effect-BsW3fy1q.js";
|
|
4
|
+
import { p as $, q as ee, i as ae, A as te, c as se, a as re, j as ce, b as ie, r as ne, d as le, s as oe, e as ge, k as ue, F as fe, G as de, f as he, t as Ee, g as Se, l as me, h as pe, m as Re, u as ye, B as qe, C as ve, n as Ce, o as be, D as we, v as xe, w as Me, x as Pe, y as Te, E as Oe, z as Le } from "../signal-list-07gNXGiW.js";
|
|
5
5
|
export {
|
|
6
6
|
m as ReactiveError,
|
|
7
7
|
p as ReactiveScheduler,
|
|
@@ -10,10 +10,10 @@ export {
|
|
|
10
10
|
$ as analyzeReactivePerformance,
|
|
11
11
|
ee as analyzeSignalUsage,
|
|
12
12
|
y as batch,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
q as combineEquals,
|
|
14
|
+
v as createArrayEquals,
|
|
15
15
|
s as createCleanupGroup,
|
|
16
|
-
|
|
16
|
+
C as createComputed,
|
|
17
17
|
ae as createDeepSignal,
|
|
18
18
|
te as createDetachedRoot,
|
|
19
19
|
V as createEffect,
|
|
@@ -25,7 +25,7 @@ export {
|
|
|
25
25
|
c as createInterval,
|
|
26
26
|
ne as createLegacySignal,
|
|
27
27
|
le as createLowPriorityEffect,
|
|
28
|
-
|
|
28
|
+
b as createMemo,
|
|
29
29
|
oe as createMigrationReport,
|
|
30
30
|
w as createObjectEquals,
|
|
31
31
|
X as createOnceEffect,
|
|
@@ -33,15 +33,15 @@ export {
|
|
|
33
33
|
ge as createResilientEffect,
|
|
34
34
|
i as createResource,
|
|
35
35
|
x as createRoot,
|
|
36
|
-
|
|
36
|
+
M as createSelectorEquals,
|
|
37
37
|
ue as createShallowSignal,
|
|
38
|
-
|
|
38
|
+
P as createSignal,
|
|
39
39
|
fe as createSignalList,
|
|
40
40
|
de as createSignalListControls,
|
|
41
41
|
Z as createSyncEffect,
|
|
42
42
|
n as createTimeout,
|
|
43
43
|
he as createWatchEffect,
|
|
44
|
-
|
|
44
|
+
T as debugEquals,
|
|
45
45
|
O as deepEquals,
|
|
46
46
|
L as defaultEquals,
|
|
47
47
|
U as detectSystemTheme,
|
|
@@ -56,23 +56,23 @@ export {
|
|
|
56
56
|
Re as getEnhancedSignalImpl,
|
|
57
57
|
ye as getMigrationStats,
|
|
58
58
|
k as getOwner,
|
|
59
|
-
|
|
59
|
+
qe as getOwnerChain,
|
|
60
60
|
z as getReactiveContext,
|
|
61
|
-
|
|
61
|
+
ve as getRootOwner,
|
|
62
62
|
g as getScheduler,
|
|
63
63
|
B as getSignalImpl,
|
|
64
|
-
|
|
64
|
+
Ce as getSignalPerformanceMetrics,
|
|
65
65
|
D as getThemeSignal,
|
|
66
66
|
W as isComputed,
|
|
67
|
-
|
|
67
|
+
be as isEnhancedSignal,
|
|
68
68
|
we as isReactiveContext,
|
|
69
69
|
A as isSignal,
|
|
70
70
|
G as jsonEquals,
|
|
71
71
|
xe as migrateBatch,
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
Me as migrateReactiveCode,
|
|
73
|
+
Pe as migrateToEnhancedSignal,
|
|
74
74
|
u as onCleanup,
|
|
75
|
-
|
|
75
|
+
Te as resetMigrationStats,
|
|
76
76
|
Oe as runOutsideReactiveContext,
|
|
77
77
|
F as runWithOwner,
|
|
78
78
|
f as scheduleIdle,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../scheduler-
|
|
2
|
-
import { n as C,
|
|
1
|
+
import "../scheduler-DppMK9mR.js";
|
|
2
|
+
import { n as C, p as M } from "../theme-CRLPHryV.js";
|
|
3
3
|
import "@tachui/types/reactive";
|
|
4
|
-
import { b as g, s as m, a as p } from "../component-context-
|
|
5
|
-
import { D as v } from "../concatenated-component-
|
|
4
|
+
import { b as g, s as m, a as p } from "../component-context-B9HI2nZH.js";
|
|
5
|
+
import { D as v } from "../concatenated-component-CP81AwgI.js";
|
|
6
6
|
const L = new v(), f = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set();
|
|
7
7
|
function _(e) {
|
|
8
8
|
e._enhancedLifecycle && h.add(e);
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h as t, C as n, P as o, R as r, d as s, j as m, c as i, e as C, i as c, a as l, f as p, k as u, l as g, g as d, p as M, w as E } from "../component-
|
|
2
|
-
import { C as x, a as R, E as h, c as v, b as D, d as O, g as A, p as b, r as w, s as I, w as y } from "../component-context-
|
|
3
|
-
import { A as L, C as T, D as P, F as V, I as j, c as F, a as _, b as k, d as B, g as G, i as N, m as U, o as q, e as W, f as z, h as H, j as K, s as Y, k as J, u as Q, l as X, n as Z, p as $, w as ee, q as ae } from "../hooks-
|
|
1
|
+
import { h as t, C as n, P as o, R as r, d as s, j as m, c as i, e as C, i as c, a as l, f as p, k as u, l as g, g as d, p as M, w as E } from "../component-D-O9yq0P.js";
|
|
2
|
+
import { C as x, a as R, E as h, c as v, b as D, d as O, g as A, p as b, r as w, s as I, w as y } from "../component-context-B9HI2nZH.js";
|
|
3
|
+
import { A as L, C as T, D as P, F as V, I as j, c as F, a as _, b as k, d as B, g as G, i as N, m as U, o as q, e as W, f as z, h as H, j as K, s as Y, k as J, u as Q, l as X, n as Z, p as $, w as ee, q as ae } from "../hooks-WGmpzYgD.js";
|
|
4
4
|
import { DOMBridgeDebug as ne, getComponentFromElement as oe, mountComponentChildren as re, mountComponentTree as se, mountRoot as me, unmountComponent as ie, unmountComponentEnhanced as Ce, updateComponent as ce } from "./dom-bridge.js";
|
|
5
5
|
import { L as pe, l as ue, b as ge, m as de, u as Me, a as Ee } from "../optimization-CbKNA9w4.js";
|
|
6
|
-
import { C as xe, D as Re, k as he, E as ve, S as De, q as Oe, V as Ae, v as be, l as we, o as Ie, n as ye, g as Se, w as Le, i as Te, h as Pe, x as Ve, p as je, r as Fe, f as _e, u as ke, j as Be, t as Ge } from "../concatenated-component-
|
|
6
|
+
import { C as xe, D as Re, k as he, E as ve, S as De, q as Oe, V as Ae, v as be, l as we, o as Ie, n as ye, g as Se, w as Le, i as Te, h as Pe, x as Ve, p as je, r as Fe, f as _e, u as ke, j as Be, t as Ge } from "../concatenated-component-CP81AwgI.js";
|
|
7
7
|
export {
|
|
8
8
|
L as AnimationManager,
|
|
9
9
|
xe as COMPONENT_ELIGIBILITY,
|
package/dist/runtime/renderer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as m, g as n, h as p, r as a, f as d, t as M } from "../concatenated-component-
|
|
2
|
-
import "../scheduler-
|
|
3
|
-
import "../theme-
|
|
4
|
-
import "../effect-
|
|
1
|
+
import { D as m, g as n, h as p, r as a, f as d, t as M } from "../concatenated-component-CP81AwgI.js";
|
|
2
|
+
import "../scheduler-DppMK9mR.js";
|
|
3
|
+
import "../theme-CRLPHryV.js";
|
|
4
|
+
import "../effect-BsW3fy1q.js";
|
|
5
5
|
import "@tachui/types/reactive";
|
|
6
6
|
export {
|
|
7
7
|
m as DOMRenderer,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { l as
|
|
1
|
+
import { l as F, U as m, M as p, k as $, G as q, E as A, B as x, c as y, a as z, p as E, o as L, n as V } from "./theme-CRLPHryV.js";
|
|
2
2
|
import { ComputationState as S } from "@tachui/types/reactive";
|
|
3
3
|
var B = Object.defineProperty, H = (t, e, r) => e in t ? B(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, l = (t, e, r) => H(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
let T = 0;
|
|
5
5
|
class W {
|
|
6
6
|
constructor(e, r = {}) {
|
|
7
|
-
this.effectFn = e, l(this, "id", ++T), l(this, "type", "effect"), l(this, "priority"), l(this, "sources", /* @__PURE__ */ new Set()), l(this, "observers", /* @__PURE__ */ new Set()), l(this, "isDisposed", !1), l(this, "cleanupFn"), l(this, "options"), l(this, "owner"), this.priority = r.priority ?? m.Normal, this.options = r, this.owner =
|
|
7
|
+
this.effectFn = e, l(this, "id", ++T), l(this, "type", "effect"), l(this, "priority"), l(this, "sources", /* @__PURE__ */ new Set()), l(this, "observers", /* @__PURE__ */ new Set()), l(this, "isDisposed", !1), l(this, "cleanupFn"), l(this, "options"), l(this, "owner"), this.priority = r.priority ?? m.Normal, this.options = r, this.owner = F(), r.fireImmediately !== !1 && this.execute();
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Notify method called by unified scheduler
|
|
@@ -97,7 +97,7 @@ class W {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
function v(t, e) {
|
|
100
|
-
const r = new W(t, e), s =
|
|
100
|
+
const r = new W(t, e), s = F();
|
|
101
101
|
return s && s.cleanups.push(() => r.cleanup()), () => r.cleanup();
|
|
102
102
|
}
|
|
103
103
|
function ie(t, e) {
|
|
@@ -139,11 +139,11 @@ function fe() {
|
|
|
139
139
|
function de() {
|
|
140
140
|
p.getInstance().flushSync();
|
|
141
141
|
}
|
|
142
|
-
var j = Object.defineProperty,
|
|
143
|
-
let
|
|
142
|
+
var j = Object.defineProperty, G = (t, e, r) => e in t ? j(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, f = (t, e, r) => G(t, typeof e != "symbol" ? e + "" : e, r);
|
|
143
|
+
let k = 0;
|
|
144
144
|
class K {
|
|
145
145
|
constructor(e, r = {}) {
|
|
146
|
-
f(this, "id", ++
|
|
146
|
+
f(this, "id", ++k), f(this, "type", "signal"), f(this, "priority"), f(this, "observers", /* @__PURE__ */ new Set()), f(this, "_value"), f(this, "scheduler", p.getInstance()), f(this, "equalsFn"), f(this, "debugName"), f(this, "options"), this._value = e, this.options = r, this.priority = r.priority ?? m.Normal, this.equalsFn = r.equals ?? A, this.debugName = r.debugName;
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
149
|
* Get the current value and track dependency
|
|
@@ -289,7 +289,7 @@ function Ee(t) {
|
|
|
289
289
|
};
|
|
290
290
|
t.signals && (e.signals = t.signals.map(
|
|
291
291
|
({ original: s, options: i }) => J(s, i)
|
|
292
|
-
)), t.computeds && (e.computeds = t.computeds.map(({ original: s, options: i }) => (c.computedsConverted++,
|
|
292
|
+
)), t.computeds && (e.computeds = t.computeds.map(({ original: s, options: i }) => (c.computedsConverted++, z(s, i))));
|
|
293
293
|
const r = [];
|
|
294
294
|
return t.effects && t.effects.forEach(({ original: s, options: i }) => {
|
|
295
295
|
c.effectsConverted++;
|
|
@@ -362,10 +362,10 @@ function _e() {
|
|
|
362
362
|
errorsFixed: 0
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Ie(t) {
|
|
366
366
|
O = t;
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function Fe() {
|
|
369
369
|
const t = Q();
|
|
370
370
|
return `
|
|
371
371
|
# TachUI Reactive System Migration Report
|
|
@@ -389,7 +389,7 @@ function $e() {
|
|
|
389
389
|
return E() !== null;
|
|
390
390
|
}
|
|
391
391
|
function X(t) {
|
|
392
|
-
return
|
|
392
|
+
return L(null, t);
|
|
393
393
|
}
|
|
394
394
|
function qe(t) {
|
|
395
395
|
return X(() => V(t));
|
|
@@ -436,7 +436,7 @@ function Y(t, e) {
|
|
|
436
436
|
const u = h();
|
|
437
437
|
b([...u, o]);
|
|
438
438
|
}
|
|
439
|
-
},
|
|
439
|
+
}, M = (o, n) => {
|
|
440
440
|
if (o.length !== n.length)
|
|
441
441
|
return !0;
|
|
442
442
|
const a = new Set(o), u = new Set(n);
|
|
@@ -446,14 +446,14 @@ function Y(t, e) {
|
|
|
446
446
|
if (!a.has(N))
|
|
447
447
|
return !0;
|
|
448
448
|
return !1;
|
|
449
|
-
},
|
|
449
|
+
}, U = (o) => {
|
|
450
450
|
const n = o.map(e), a = new Set(n), u = h();
|
|
451
451
|
o.forEach((g) => {
|
|
452
|
-
const _ = e(g),
|
|
453
|
-
|
|
452
|
+
const _ = e(g), I = r.get(_);
|
|
453
|
+
I ? I[1](g) : r.set(_, y(g));
|
|
454
454
|
}), u.forEach((g) => {
|
|
455
455
|
a.has(g) || r.delete(g);
|
|
456
|
-
}),
|
|
456
|
+
}), M(u, n) && b(n);
|
|
457
457
|
}, w = (o, n) => {
|
|
458
458
|
const a = r.get(o);
|
|
459
459
|
if (!a) return null;
|
|
@@ -466,7 +466,7 @@ function Y(t, e) {
|
|
|
466
466
|
ids: d,
|
|
467
467
|
get: D,
|
|
468
468
|
update: P,
|
|
469
|
-
set:
|
|
469
|
+
set: U,
|
|
470
470
|
clear: () => {
|
|
471
471
|
r.clear(), b([]);
|
|
472
472
|
},
|
|
@@ -514,12 +514,12 @@ export {
|
|
|
514
514
|
Q as p,
|
|
515
515
|
Se as q,
|
|
516
516
|
ye as r,
|
|
517
|
-
|
|
517
|
+
Fe as s,
|
|
518
518
|
we as t,
|
|
519
519
|
Ne as u,
|
|
520
520
|
Ee as v,
|
|
521
521
|
Ce as w,
|
|
522
522
|
J as x,
|
|
523
523
|
_e as y,
|
|
524
|
-
|
|
524
|
+
Ie as z
|
|
525
525
|
};
|
package/dist/state/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { p as g, C as p, c as u, o as m, m as l, E as c } from "../observed-object-
|
|
2
|
-
import { O as z, e as W, a as K, i as k, b as F, d as q } from "../observed-object-
|
|
3
|
-
import { d as f, e as _, S as h } from "../binding-
|
|
4
|
-
import { B as L, b as Q, c as X, f as Y, a as Z, i as ee, u as te } from "../binding-
|
|
5
|
-
import "../scheduler-
|
|
6
|
-
import { a as se, b as re, c as ae } from "../theme-
|
|
7
|
-
import { c as oe } from "../effect-
|
|
1
|
+
import { p as g, C as p, c as u, o as m, m as l, E as c } from "../observed-object-p1CLdrFm.js";
|
|
2
|
+
import { O as z, e as W, a as K, i as k, b as F, d as q } from "../observed-object-p1CLdrFm.js";
|
|
3
|
+
import { d as f, e as _, S as h } from "../binding-DCV5PKkK.js";
|
|
4
|
+
import { B as L, b as Q, c as X, f as Y, a as Z, i as ee, u as te } from "../binding-DCV5PKkK.js";
|
|
5
|
+
import "../scheduler-DppMK9mR.js";
|
|
6
|
+
import { a as se, b as re, c as ae } from "../theme-CRLPHryV.js";
|
|
7
|
+
import { c as oe } from "../effect-BsW3fy1q.js";
|
|
8
8
|
import "@tachui/types/reactive";
|
|
9
|
-
import { d as O } from "../component-context-
|
|
9
|
+
import { d as O } from "../component-context-B9HI2nZH.js";
|
|
10
10
|
var w = Object.defineProperty, v = (s, e, n) => e in s ? w(s, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : s[e] = n, a = (s, e, n) => v(s, typeof e != "symbol" ? e + "" : e, n);
|
|
11
11
|
class j {
|
|
12
12
|
constructor(e) {
|