@tachui/core 0.8.23 → 0.8.24
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/dist/assets/index.js +41 -40
- package/dist/{binding-DCV5PKkK.js → binding-DCr-JHsC.js} +9 -9
- package/dist/build-tools/typegen-runner.d.ts +4 -0
- package/dist/build-tools/typegen-runner.d.ts.map +1 -1
- package/dist/cleanup-BR8UpYPX.js +61 -0
- package/dist/common.js +272 -277
- package/dist/{component-D-O9yq0P.js → component-BzvSm8rM.js} +19 -19
- package/dist/{component-base-C41K3NTe.js → component-base-Do2EdQkr.js} +32 -33
- package/dist/{component-context-B9HI2nZH.js → component-context-C7Y6Xu6h.js} +1 -1
- package/dist/components/index.js +1 -1
- package/dist/computed-CA4Cgtoe.js +407 -0
- package/dist/{concatenated-component-2Gzy5e2c.js → concatenated-component-CA54ng_j.js} +43 -44
- package/dist/css-classes/index.js +2 -2
- package/dist/{effect-BsW3fy1q.js → effect-DgNm6jk9.js} +3 -3
- package/dist/{enhanced-renderer-t9Ni2EEG.js → enhanced-renderer-D05CCloF.js} +26 -28
- package/dist/essential.js +276 -281
- package/dist/factories-B05hE6kc.js +644 -0
- package/dist/{factory-gqfMcmOy.js → factory-B1YXfgU1.js} +23 -29
- package/dist/full.d.ts +12 -0
- package/dist/full.d.ts.map +1 -0
- package/dist/full.js +436 -0
- package/dist/gradients/index.js +53 -53
- package/dist/hooks-w_FYPLjI.js +158 -0
- package/dist/{index-DL9Cys3t.js → index-CmQmIgPK.js} +220 -233
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +295 -300
- package/dist/minimal-prod.js +106 -108
- package/dist/minimal.js +97 -98
- package/dist/modifiers/base.d.ts.map +1 -1
- package/dist/modifiers/base.js +121 -120
- package/dist/modifiers/builder.js +1 -1
- package/dist/modifiers/index.js +22 -23
- package/dist/modifiers/registry.js +1 -1
- package/dist/{observed-object-p1CLdrFm.js → observed-object-DCoyucmV.js} +3 -3
- package/dist/optimization-D9t53vNJ.js +308 -0
- package/dist/{proxy-Cp0QUXME.js → proxy-B7ZIqGd0.js} +3 -3
- package/dist/reactive/index.js +87 -85
- package/dist/runtime/dom-bridge.js +15 -17
- package/dist/runtime/index.js +71 -71
- package/dist/runtime/renderer.js +10 -11
- package/dist/signal-BRoiFOO7.js +262 -0
- package/dist/{signal-list-07gNXGiW.js → signal-list-_Eid-N7_.js} +285 -176
- package/dist/state/index.js +43 -44
- package/dist/theme-D5-09a8N.js +26 -0
- package/dist/validation/index.js +24 -26
- package/dist/version.js +1 -1
- package/package.json +16 -3
- package/dist/factories-B3-rmvkB.js +0 -268
- package/dist/hooks-WGmpzYgD.js +0 -446
- package/dist/optimization-CbKNA9w4.js +0 -21
- package/dist/presets-B9x94uRn.js +0 -381
- package/dist/scheduler-DppMK9mR.js +0 -169
- package/dist/theme-CRLPHryV.js +0 -687
- package/dist/{index-JQ1sW1SK.js → index-7vhCZc7g.js} +1 -1
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { c as v } from "./computed-CA4Cgtoe.js";
|
|
2
|
+
import { d as p } from "./signal-BRoiFOO7.js";
|
|
3
|
+
import { b as C } from "./component-context-C7Y6Xu6h.js";
|
|
4
|
+
var x = Object.defineProperty, b = (s, e, t) => e in s ? x(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, c = (s, e, t) => b(s, typeof e != "symbol" ? e + "" : e, t);
|
|
5
|
+
const f = class l {
|
|
6
|
+
constructor() {
|
|
7
|
+
c(this, "contexts", /* @__PURE__ */ new Map()), c(this, "providerStack", /* @__PURE__ */ new Map()), c(this, "currentComponent", null);
|
|
8
|
+
}
|
|
9
|
+
static getInstance() {
|
|
10
|
+
return l.instance || (l.instance = new l()), l.instance;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Set the current component context for provider resolution
|
|
14
|
+
*/
|
|
15
|
+
setCurrentComponent(e) {
|
|
16
|
+
this.currentComponent = e;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get the current component context
|
|
20
|
+
*/
|
|
21
|
+
getCurrentComponent() {
|
|
22
|
+
return this.currentComponent;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Register a context provider
|
|
26
|
+
*/
|
|
27
|
+
registerProvider(e, t, r) {
|
|
28
|
+
this.providerStack.has(e) || this.providerStack.set(e, []);
|
|
29
|
+
const n = this.providerStack.get(e), [i, o] = p(t), a = {
|
|
30
|
+
value: t,
|
|
31
|
+
signal: [i, o],
|
|
32
|
+
subscribers: /* @__PURE__ */ new Set(),
|
|
33
|
+
providers: /* @__PURE__ */ new Set([r])
|
|
34
|
+
};
|
|
35
|
+
return n.push(a), r.providers.set(e, a), () => {
|
|
36
|
+
const u = n.indexOf(a);
|
|
37
|
+
u !== -1 && n.splice(u, 1), r.providers.delete(e), a.subscribers.clear(), a.providers.clear();
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get context value with reactive subscription
|
|
42
|
+
*/
|
|
43
|
+
getContextValue(e, t) {
|
|
44
|
+
const r = this.providerStack.get(e), n = r && r.length > 0 ? r[r.length - 1] : null;
|
|
45
|
+
if (n)
|
|
46
|
+
return this.currentComponent && (n.subscribers.add(this.currentComponent.id), this.currentComponent.consumers.add(e)), [n.signal[0], !0];
|
|
47
|
+
const [i] = p(t);
|
|
48
|
+
return [i, !1];
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Update context value and notify subscribers
|
|
52
|
+
*/
|
|
53
|
+
updateContextValue(e, t) {
|
|
54
|
+
const r = this.providerStack.get(e), n = r && r.length > 0 ? r[r.length - 1] : null;
|
|
55
|
+
return n ? (n.value = t, n.signal[1](t), !0) : !1;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get all registered contexts (for debugging)
|
|
59
|
+
*/
|
|
60
|
+
getAllContexts() {
|
|
61
|
+
const e = /* @__PURE__ */ new Map();
|
|
62
|
+
for (const [t, r] of this.providerStack.entries())
|
|
63
|
+
r.length > 0 && e.set(t, r[r.length - 1]);
|
|
64
|
+
return e;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Clear all contexts (for testing)
|
|
68
|
+
*/
|
|
69
|
+
clear() {
|
|
70
|
+
this.contexts.clear(), this.providerStack.clear(), this.currentComponent = null;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
c(f, "instance");
|
|
74
|
+
let g = f;
|
|
75
|
+
class d {
|
|
76
|
+
constructor() {
|
|
77
|
+
c(this, "registry", g.getInstance());
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Create a context provider component
|
|
81
|
+
*/
|
|
82
|
+
createProvider(e, t, r) {
|
|
83
|
+
return {
|
|
84
|
+
type: "component",
|
|
85
|
+
render: () => {
|
|
86
|
+
const n = this.registry.registerProvider(
|
|
87
|
+
e.symbol,
|
|
88
|
+
t,
|
|
89
|
+
C(`provider_${e.symbol.toString()}`)
|
|
90
|
+
), i = r.flatMap((o) => {
|
|
91
|
+
let a = o;
|
|
92
|
+
"build" in o && typeof o.build == "function" && (a = o.build());
|
|
93
|
+
const u = a.render();
|
|
94
|
+
return Array.isArray(u) ? u : [u];
|
|
95
|
+
});
|
|
96
|
+
return [
|
|
97
|
+
{
|
|
98
|
+
type: "element",
|
|
99
|
+
tag: "div",
|
|
100
|
+
props: { "data-context-provider": e.displayName || "provider" },
|
|
101
|
+
children: i,
|
|
102
|
+
dispose: n
|
|
103
|
+
}
|
|
104
|
+
];
|
|
105
|
+
},
|
|
106
|
+
props: { children: r },
|
|
107
|
+
id: `provider_${Date.now()}`,
|
|
108
|
+
children: r
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Set current component for context resolution
|
|
113
|
+
*/
|
|
114
|
+
setCurrentComponent(e) {
|
|
115
|
+
this.registry.setCurrentComponent(e);
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Update a context value
|
|
119
|
+
*/
|
|
120
|
+
updateContext(e, t) {
|
|
121
|
+
return this.registry.updateContextValue(e.symbol, t);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Get all active contexts (for debugging)
|
|
125
|
+
*/
|
|
126
|
+
getAllContexts() {
|
|
127
|
+
return this.registry.getAllContexts();
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Clear all contexts
|
|
131
|
+
*/
|
|
132
|
+
clear() {
|
|
133
|
+
this.registry.clear();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function h(s, e = {}) {
|
|
137
|
+
return {
|
|
138
|
+
symbol: Symbol(e.displayName || "TachUIContext"),
|
|
139
|
+
defaultValue: s,
|
|
140
|
+
displayName: e.displayName
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function w(s) {
|
|
144
|
+
const e = g.getInstance(), [t, r] = e.getContextValue(s.symbol, s.defaultValue);
|
|
145
|
+
return r || console.warn(
|
|
146
|
+
`Context ${s.displayName || "unnamed"} used without a Provider. Using default value.`
|
|
147
|
+
), t;
|
|
148
|
+
}
|
|
149
|
+
function V(s, e) {
|
|
150
|
+
return (t) => function(n) {
|
|
151
|
+
return new d().createProvider(s, e, [t(n)]);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
function S(s, e) {
|
|
155
|
+
return {
|
|
156
|
+
type: "component",
|
|
157
|
+
render: () => {
|
|
158
|
+
const t = w(s);
|
|
159
|
+
let n = v(() => {
|
|
160
|
+
const o = t();
|
|
161
|
+
return e(o);
|
|
162
|
+
})();
|
|
163
|
+
"build" in n && typeof n.build == "function" && (n = n.build());
|
|
164
|
+
const i = n.render();
|
|
165
|
+
return Array.isArray(i) ? i : [i];
|
|
166
|
+
},
|
|
167
|
+
props: {},
|
|
168
|
+
id: `consumer_${Date.now()}`
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
class y {
|
|
172
|
+
constructor() {
|
|
173
|
+
c(this, "services", /* @__PURE__ */ new Map()), c(this, "factories", /* @__PURE__ */ new Map()), c(this, "singletons", /* @__PURE__ */ new Map()), c(this, "scoped", /* @__PURE__ */ new Map()), c(this, "dependencies", /* @__PURE__ */ new Map());
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Register a service with the container
|
|
177
|
+
*/
|
|
178
|
+
register(e, t, r = {}) {
|
|
179
|
+
this.services.set(e, t), r.dependencies && this.dependencies.set(e, r.dependencies), r.singleton && this.singletons.set(e, null), r.scoped && this.scoped.set(e, null);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Resolve a service from the container
|
|
183
|
+
*/
|
|
184
|
+
resolve(e) {
|
|
185
|
+
if (this.singletons.has(e)) {
|
|
186
|
+
let t = this.singletons.get(e);
|
|
187
|
+
return t === null && (t = this.createInstance(e), this.singletons.set(e, t)), t;
|
|
188
|
+
}
|
|
189
|
+
if (this.scoped.has(e)) {
|
|
190
|
+
let t = this.scoped.get(e);
|
|
191
|
+
return t === null && (t = this.createInstance(e), this.scoped.set(e, t)), t;
|
|
192
|
+
}
|
|
193
|
+
return this.createInstance(e);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Create instance with dependency injection
|
|
197
|
+
*/
|
|
198
|
+
createInstance(e) {
|
|
199
|
+
const r = (this.dependencies.get(e) || []).map((o) => this.resolve(o)), n = this.factories.get(e);
|
|
200
|
+
if (n)
|
|
201
|
+
return n(...r);
|
|
202
|
+
const i = this.services.get(e);
|
|
203
|
+
if (i) {
|
|
204
|
+
if (typeof i == "function")
|
|
205
|
+
try {
|
|
206
|
+
return new i(...r);
|
|
207
|
+
} catch {
|
|
208
|
+
return i(...r);
|
|
209
|
+
}
|
|
210
|
+
return i;
|
|
211
|
+
}
|
|
212
|
+
throw new Error(`Service ${String(e)} not found in DI container`);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Check if service is registered
|
|
216
|
+
*/
|
|
217
|
+
has(e) {
|
|
218
|
+
return this.services.has(e) || this.factories.has(e);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Clear the container
|
|
222
|
+
*/
|
|
223
|
+
clear() {
|
|
224
|
+
this.services.clear(), this.factories.clear(), this.singletons.clear(), this.scoped.clear(), this.dependencies.clear();
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Get all registered services (for debugging)
|
|
228
|
+
*/
|
|
229
|
+
getRegistered() {
|
|
230
|
+
return [...this.services.keys(), ...this.factories.keys()];
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
const m = new y();
|
|
234
|
+
function N(s) {
|
|
235
|
+
return m.resolve(s);
|
|
236
|
+
}
|
|
237
|
+
function _(s) {
|
|
238
|
+
return (e) => {
|
|
239
|
+
const t = s || e.name;
|
|
240
|
+
return m.register(t, e), e;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
const A = {
|
|
244
|
+
/**
|
|
245
|
+
* Create multiple contexts at once
|
|
246
|
+
*/
|
|
247
|
+
createContextGroup(s, e = {}) {
|
|
248
|
+
const t = {};
|
|
249
|
+
for (const [r, n] of Object.entries(s))
|
|
250
|
+
t[r] = h(n, {
|
|
251
|
+
displayName: e.prefix ? `${e.prefix}.${r}` : r
|
|
252
|
+
});
|
|
253
|
+
return t;
|
|
254
|
+
},
|
|
255
|
+
/**
|
|
256
|
+
* Combine multiple context providers
|
|
257
|
+
*/
|
|
258
|
+
combineProviders(s, e, t) {
|
|
259
|
+
const r = new d();
|
|
260
|
+
let n = t;
|
|
261
|
+
for (const [i, o] of Object.entries(s)) {
|
|
262
|
+
const a = e[i];
|
|
263
|
+
n = [r.createProvider(o, a, n)];
|
|
264
|
+
}
|
|
265
|
+
return n[0];
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* Create context with validation
|
|
269
|
+
*/
|
|
270
|
+
createValidatedContext(s, e, t = {}) {
|
|
271
|
+
return {
|
|
272
|
+
...h(s, t),
|
|
273
|
+
validate: e
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
}, D = new d();
|
|
277
|
+
class $ {
|
|
278
|
+
// Placeholder implementation
|
|
279
|
+
}
|
|
280
|
+
function R() {
|
|
281
|
+
}
|
|
282
|
+
function O() {
|
|
283
|
+
}
|
|
284
|
+
function j() {
|
|
285
|
+
}
|
|
286
|
+
function T() {
|
|
287
|
+
}
|
|
288
|
+
function U() {
|
|
289
|
+
}
|
|
290
|
+
export {
|
|
291
|
+
d as C,
|
|
292
|
+
y as D,
|
|
293
|
+
_ as I,
|
|
294
|
+
$ as L,
|
|
295
|
+
h as a,
|
|
296
|
+
S as b,
|
|
297
|
+
A as c,
|
|
298
|
+
D as d,
|
|
299
|
+
O as e,
|
|
300
|
+
j as f,
|
|
301
|
+
m as g,
|
|
302
|
+
T as h,
|
|
303
|
+
N as i,
|
|
304
|
+
U as l,
|
|
305
|
+
R as m,
|
|
306
|
+
w as u,
|
|
307
|
+
V as w
|
|
308
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as h, d as R } from "./concatenated-component-
|
|
1
|
+
import { z as h, d as R } from "./concatenated-component-CA54ng_j.js";
|
|
2
2
|
const k = {
|
|
3
3
|
proxyModifiers: !0
|
|
4
4
|
};
|
|
@@ -180,8 +180,8 @@ function O(r) {
|
|
|
180
180
|
return B.set(r, w), w;
|
|
181
181
|
}
|
|
182
182
|
export {
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
O as a,
|
|
184
|
+
_ as c,
|
|
185
185
|
v as g,
|
|
186
186
|
W as i,
|
|
187
187
|
E as r
|
package/dist/reactive/index.js
CHANGED
|
@@ -1,87 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { R as
|
|
3
|
-
import { c as
|
|
4
|
-
import {
|
|
1
|
+
import { c as t, a as s, b as r, d as c, e as i, f as n, o as l } from "../cleanup-BR8UpYPX.js";
|
|
2
|
+
import { R as g, m as f, U as u, b as d, d as h, c as E, a as S, e as m, f as p, g as R, h as y, j as b, i as C, k as q, s as v, l as x } from "../computed-CA4Cgtoe.js";
|
|
3
|
+
import { b as M, c as P, d as T, f as O, g as L, a as U, e as I, i as j, r as k, u as D } from "../signal-BRoiFOO7.js";
|
|
4
|
+
import { c as z, a as B, b as A, d as G } from "../effect-DgNm6jk9.js";
|
|
5
|
+
import { T as F, p as J, q as K, i as N, A as Q, c as V, a as X, j as Y, b as Z, r as _, d as $, s as ee, e as ae, k as te, L as se, M as re, f as ce, t as ie, F as ne, g as le, l as oe, h as ge, m as fe, u as ue, B as de, C as he, G as Ee, n as Se, o as me, D as pe, v as Re, w as ye, x as be, y as Ce, E as qe, H as ve, I as xe, J as we, z as Me, K as Pe } from "../signal-list-_Eid-N7_.js";
|
|
6
|
+
import { d as Oe, g as Le, a as Ue, s as Ie } from "../theme-D5-09a8N.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
8
|
+
g as ReactiveError,
|
|
9
|
+
f as ReactiveScheduler,
|
|
10
|
+
F as TaskPriority,
|
|
11
|
+
u as UpdatePriority,
|
|
12
|
+
J as analyzeReactivePerformance,
|
|
13
|
+
K as analyzeSignalUsage,
|
|
14
|
+
M as batch,
|
|
15
|
+
d as combineEquals,
|
|
16
|
+
h as createArrayEquals,
|
|
17
|
+
t as createCleanupGroup,
|
|
18
|
+
E as createComputed,
|
|
19
|
+
N as createDeepSignal,
|
|
20
|
+
Q as createDetachedRoot,
|
|
21
|
+
z as createEffect,
|
|
22
|
+
V as createEffectBatch,
|
|
23
|
+
X as createEnhancedEffect,
|
|
24
|
+
Y as createEnhancedSignal,
|
|
25
|
+
s as createEventListener,
|
|
26
|
+
Z as createHighPriorityEffect,
|
|
27
|
+
r as createInterval,
|
|
28
|
+
_ as createLegacySignal,
|
|
29
|
+
$ as createLowPriorityEffect,
|
|
30
|
+
S as createMemo,
|
|
31
|
+
ee as createMigrationReport,
|
|
32
|
+
m as createObjectEquals,
|
|
33
|
+
B as createOnceEffect,
|
|
34
|
+
A as createRenderEffect,
|
|
35
|
+
ae as createResilientEffect,
|
|
36
|
+
c as createResource,
|
|
37
|
+
P as createRoot,
|
|
38
|
+
p as createSelectorEquals,
|
|
39
|
+
te as createShallowSignal,
|
|
40
|
+
T as createSignal,
|
|
41
|
+
se as createSignalList,
|
|
42
|
+
re as createSignalListControls,
|
|
43
|
+
G as createSyncEffect,
|
|
44
|
+
i as createTimeout,
|
|
45
|
+
ce as createWatchEffect,
|
|
46
|
+
R as debugEquals,
|
|
47
|
+
y as deepEquals,
|
|
48
|
+
b as defaultEquals,
|
|
49
|
+
Oe as detectSystemTheme,
|
|
50
|
+
n as dispose,
|
|
51
|
+
ie as enableReactiveDebugging,
|
|
52
|
+
ne as enableScheduling,
|
|
53
|
+
le as flushEffectUpdates,
|
|
54
|
+
oe as flushSignalUpdates,
|
|
55
|
+
O as flushSync,
|
|
56
|
+
Le as getCurrentTheme,
|
|
57
|
+
ge as getEffectPerformanceMetrics,
|
|
58
|
+
fe as getEnhancedSignalImpl,
|
|
59
|
+
ue as getMigrationStats,
|
|
60
|
+
L as getOwner,
|
|
61
|
+
de as getOwnerChain,
|
|
62
|
+
U as getReactiveContext,
|
|
63
|
+
he as getRootOwner,
|
|
64
|
+
Ee as getScheduler,
|
|
65
|
+
I as getSignalImpl,
|
|
66
|
+
Se as getSignalPerformanceMetrics,
|
|
67
|
+
Ue as getThemeSignal,
|
|
68
|
+
C as isComputed,
|
|
69
|
+
me as isEnhancedSignal,
|
|
70
|
+
pe as isReactiveContext,
|
|
71
|
+
j as isSignal,
|
|
72
|
+
q as jsonEquals,
|
|
73
|
+
Re as migrateBatch,
|
|
74
|
+
ye as migrateReactiveCode,
|
|
75
|
+
be as migrateToEnhancedSignal,
|
|
76
|
+
l as onCleanup,
|
|
77
|
+
Ce as resetMigrationStats,
|
|
78
|
+
qe as runOutsideReactiveContext,
|
|
79
|
+
k as runWithOwner,
|
|
80
|
+
ve as scheduleIdle,
|
|
81
|
+
xe as scheduleUpdate,
|
|
82
|
+
we as scheduleWithPriority,
|
|
83
|
+
Me as setMigrationWarnings,
|
|
84
|
+
Pe as setScheduler,
|
|
85
|
+
Ie as setTheme,
|
|
86
|
+
v as shallowEquals,
|
|
87
|
+
x as structuralEquals,
|
|
88
|
+
D as untrack
|
|
87
89
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import { b as g, s as m, a as p } from "../component-context-B9HI2nZH.js";
|
|
5
|
-
import { D as L } from "../concatenated-component-2Gzy5e2c.js";
|
|
1
|
+
import { c as C, g as M } from "../signal-BRoiFOO7.js";
|
|
2
|
+
import { b as g, s as m, a as p } from "../component-context-C7Y6Xu6h.js";
|
|
3
|
+
import { D as L } from "../concatenated-component-CA54ng_j.js";
|
|
6
4
|
const v = new L(), u = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set();
|
|
7
|
-
function
|
|
5
|
+
function H(e) {
|
|
8
6
|
e._enhancedLifecycle && h.add(e);
|
|
9
7
|
}
|
|
10
8
|
function D() {
|
|
@@ -39,7 +37,7 @@ function O(e) {
|
|
|
39
37
|
const t = document.querySelectorAll(`[data-component-id="${e.id}"]`);
|
|
40
38
|
return t.length > 0 ? Array.from(t) : [];
|
|
41
39
|
}
|
|
42
|
-
function
|
|
40
|
+
function _(e) {
|
|
43
41
|
C((o) => {
|
|
44
42
|
const t = g("root-app");
|
|
45
43
|
m(t);
|
|
@@ -159,7 +157,7 @@ function R(e, o) {
|
|
|
159
157
|
function x(e) {
|
|
160
158
|
return e && typeof e == "object" && ("modifiers" in e || "modifier" in e);
|
|
161
159
|
}
|
|
162
|
-
function
|
|
160
|
+
function N(e, o) {
|
|
163
161
|
const t = [];
|
|
164
162
|
for (const n of e) {
|
|
165
163
|
const r = E(n, o);
|
|
@@ -167,7 +165,7 @@ function $(e, o) {
|
|
|
167
165
|
}
|
|
168
166
|
return t;
|
|
169
167
|
}
|
|
170
|
-
function
|
|
168
|
+
function T(e, o) {
|
|
171
169
|
const t = l.get(e);
|
|
172
170
|
if (!t) {
|
|
173
171
|
console.warn("Attempted to update unmounted component");
|
|
@@ -177,7 +175,7 @@ function I(e, o) {
|
|
|
177
175
|
const n = t[0]?.parentElement;
|
|
178
176
|
n && (w(e, n), E(e, n));
|
|
179
177
|
}
|
|
180
|
-
function
|
|
178
|
+
function $(e) {
|
|
181
179
|
let o = e;
|
|
182
180
|
for (; o; ) {
|
|
183
181
|
const t = u.get(o);
|
|
@@ -186,7 +184,7 @@ function B(e) {
|
|
|
186
184
|
o = o.parentElement;
|
|
187
185
|
}
|
|
188
186
|
}
|
|
189
|
-
const
|
|
187
|
+
const I = {
|
|
190
188
|
getMountedComponents: () => Array.from(u.entries()),
|
|
191
189
|
getComponentElements: (e) => l.get(e),
|
|
192
190
|
isComponentMounted: (e) => e.mounted || !1,
|
|
@@ -209,13 +207,13 @@ const U = {
|
|
|
209
207
|
}
|
|
210
208
|
};
|
|
211
209
|
export {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
210
|
+
I as DOMBridgeDebug,
|
|
211
|
+
$ as getComponentFromElement,
|
|
212
|
+
N as mountComponentChildren,
|
|
215
213
|
E as mountComponentTree,
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
_ as mountRoot,
|
|
215
|
+
H as registerComponentWithLifecycleHooks,
|
|
218
216
|
w as unmountComponent,
|
|
219
217
|
b as unmountComponentEnhanced,
|
|
220
|
-
|
|
218
|
+
T as updateComponent
|
|
221
219
|
};
|