@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
package/dist/proxy-Cqmbiyx0.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { z as B, d as g } from "./concatenated-component-_tF1eMvy.js";
|
|
2
|
-
const j = {
|
|
3
|
-
proxyModifiers: !0
|
|
4
|
-
};
|
|
5
|
-
let h = { ...j };
|
|
6
|
-
function k(t) {
|
|
7
|
-
h = {
|
|
8
|
-
...h,
|
|
9
|
-
...t
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
function W() {
|
|
13
|
-
return { ...h };
|
|
14
|
-
}
|
|
15
|
-
function R() {
|
|
16
|
-
return h.proxyModifiers === !0;
|
|
17
|
-
}
|
|
18
|
-
let M = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap();
|
|
19
|
-
function s(t) {
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(t, "modifiers") && Object.prototype.hasOwnProperty.call(t, "modifierBuilder"))
|
|
21
|
-
return t;
|
|
22
|
-
if (!t._modifiableComponent) {
|
|
23
|
-
const c = g(t);
|
|
24
|
-
Object.prototype.hasOwnProperty.call(t, "modifier") || Object.defineProperty(t, "modifier", {
|
|
25
|
-
configurable: !0,
|
|
26
|
-
enumerable: !1,
|
|
27
|
-
get() {
|
|
28
|
-
return c.modifierBuilder;
|
|
29
|
-
},
|
|
30
|
-
set(o) {
|
|
31
|
-
Object.defineProperty(t, "modifier", {
|
|
32
|
-
configurable: !0,
|
|
33
|
-
enumerable: !1,
|
|
34
|
-
writable: !0,
|
|
35
|
-
value: o
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}), t._modifiableComponent = c;
|
|
39
|
-
}
|
|
40
|
-
return t._modifiableComponent;
|
|
41
|
-
}
|
|
42
|
-
function S() {
|
|
43
|
-
M = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap();
|
|
44
|
-
}
|
|
45
|
-
function O(t) {
|
|
46
|
-
if (!R())
|
|
47
|
-
return t;
|
|
48
|
-
const c = M.get(t);
|
|
49
|
-
if (c)
|
|
50
|
-
return c;
|
|
51
|
-
const o = /* @__PURE__ */ new Map();
|
|
52
|
-
P.set(t, o);
|
|
53
|
-
const l = /* @__PURE__ */ new Map();
|
|
54
|
-
x.set(t, l);
|
|
55
|
-
const A = {
|
|
56
|
-
get(i, e, d) {
|
|
57
|
-
if (e === Symbol.toStringTag)
|
|
58
|
-
return Reflect.get(i, e, d);
|
|
59
|
-
if (e === "render") {
|
|
60
|
-
if (l.has(e))
|
|
61
|
-
return l.get(e);
|
|
62
|
-
const r = s(i);
|
|
63
|
-
if (typeof r.render == "function") {
|
|
64
|
-
const f = r.render.bind(r);
|
|
65
|
-
return l.set(e, f), f;
|
|
66
|
-
}
|
|
67
|
-
return Reflect.get(i, e, d);
|
|
68
|
-
}
|
|
69
|
-
if (e === "build") {
|
|
70
|
-
const r = s(i), f = r.modifierBuilder || r.modifier;
|
|
71
|
-
if (f && typeof f.build == "function") {
|
|
72
|
-
const n = f.build.bind(f);
|
|
73
|
-
return (...m) => {
|
|
74
|
-
const u = n(...m);
|
|
75
|
-
return u && typeof u == "object" && !Array.isArray(u) ? O(
|
|
76
|
-
u
|
|
77
|
-
) : u;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
if (e === "modifiers" || e === "modifier" || e === "modifierBuilder") {
|
|
83
|
-
if (e === "modifier") {
|
|
84
|
-
const f = Object.getOwnPropertyDescriptor(
|
|
85
|
-
i,
|
|
86
|
-
"modifier"
|
|
87
|
-
);
|
|
88
|
-
if (f && "value" in f)
|
|
89
|
-
return f.value;
|
|
90
|
-
}
|
|
91
|
-
const r = s(i);
|
|
92
|
-
return e === "modifiers" ? r.modifiers : r.modifierBuilder;
|
|
93
|
-
}
|
|
94
|
-
if (typeof e == "string") {
|
|
95
|
-
if (Reflect.has(i, e)) {
|
|
96
|
-
const n = Reflect.get(i, e, i);
|
|
97
|
-
if (typeof n != "function")
|
|
98
|
-
return n;
|
|
99
|
-
}
|
|
100
|
-
const r = s(i), f = r.modifierBuilder || r.modifier;
|
|
101
|
-
if (f) {
|
|
102
|
-
const n = f[e];
|
|
103
|
-
if (typeof n == "function") {
|
|
104
|
-
if (!o.has(e)) {
|
|
105
|
-
const m = (...u) => {
|
|
106
|
-
const b = s(i), a = b.modifierBuilder || b.modifier, C = a?.[e];
|
|
107
|
-
if (typeof C != "function")
|
|
108
|
-
throw new Error(
|
|
109
|
-
`Modifier '${String(e)}' is not callable`
|
|
110
|
-
);
|
|
111
|
-
const w = C.apply(a, u);
|
|
112
|
-
return w && w !== a ? w : y;
|
|
113
|
-
};
|
|
114
|
-
o.set(e, m);
|
|
115
|
-
}
|
|
116
|
-
return o.get(e);
|
|
117
|
-
}
|
|
118
|
-
if (n !== void 0)
|
|
119
|
-
return n;
|
|
120
|
-
}
|
|
121
|
-
if (B.has(e)) {
|
|
122
|
-
if (!o.has(e)) {
|
|
123
|
-
const n = (...m) => {
|
|
124
|
-
const u = s(i), b = u.modifierBuilder || u.modifier, a = b?.[e];
|
|
125
|
-
if (typeof a != "function")
|
|
126
|
-
throw new Error(`Modifier '${String(e)}' is not callable`);
|
|
127
|
-
return a.apply(b, m), y;
|
|
128
|
-
};
|
|
129
|
-
o.set(e, n);
|
|
130
|
-
}
|
|
131
|
-
return o.get(e);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
if (Reflect.has(i, e)) {
|
|
135
|
-
const r = Reflect.get(i, e, i);
|
|
136
|
-
return typeof r == "function" ? e === "clone" ? (...f) => {
|
|
137
|
-
const n = r.apply(i, f);
|
|
138
|
-
return n && typeof n == "object" ? O(n) : n;
|
|
139
|
-
} : (l.has(e) || l.set(e, r.bind(i)), l.get(e)) : r;
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
has(i, e) {
|
|
143
|
-
if (e === "modifiers" || e === "modifier" || e === "modifierBuilder")
|
|
144
|
-
return !0;
|
|
145
|
-
if (typeof e == "string") {
|
|
146
|
-
const d = i._modifiableComponent || s(i), r = d?.modifierBuilder || d?.modifier;
|
|
147
|
-
if (r && typeof r[e] == "function")
|
|
148
|
-
return !0;
|
|
149
|
-
}
|
|
150
|
-
return Reflect.has(i, e) || B.has(e);
|
|
151
|
-
},
|
|
152
|
-
set(i, e, d, r) {
|
|
153
|
-
if (e === "modifier")
|
|
154
|
-
return Object.defineProperty(i, "modifier", {
|
|
155
|
-
configurable: !0,
|
|
156
|
-
enumerable: !1,
|
|
157
|
-
writable: !0,
|
|
158
|
-
value: d
|
|
159
|
-
}), o.clear(), !0;
|
|
160
|
-
if (e === "modifiers" && Array.isArray(d)) {
|
|
161
|
-
const f = s(i);
|
|
162
|
-
return f.modifiers = [...d], !0;
|
|
163
|
-
}
|
|
164
|
-
return Reflect.set(i, e, d, r);
|
|
165
|
-
}
|
|
166
|
-
}, y = new Proxy(t, A);
|
|
167
|
-
return M.set(t, y), y;
|
|
168
|
-
}
|
|
169
|
-
export {
|
|
170
|
-
k as a,
|
|
171
|
-
O as c,
|
|
172
|
-
W as g,
|
|
173
|
-
R as i,
|
|
174
|
-
S as r
|
|
175
|
-
};
|