@tachui/core 0.8.22 → 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.
Files changed (56) hide show
  1. package/dist/assets/FontAsset.d.ts.map +1 -1
  2. package/dist/assets/index.js +42 -41
  3. package/dist/{binding-DCV5PKkK.js → binding-DCr-JHsC.js} +9 -9
  4. package/dist/build-tools/typegen-runner.d.ts +4 -0
  5. package/dist/build-tools/typegen-runner.d.ts.map +1 -1
  6. package/dist/cleanup-BR8UpYPX.js +61 -0
  7. package/dist/common.js +272 -277
  8. package/dist/{component-D-O9yq0P.js → component-BzvSm8rM.js} +19 -19
  9. package/dist/{component-base-C41K3NTe.js → component-base-Do2EdQkr.js} +32 -33
  10. package/dist/{component-context-B9HI2nZH.js → component-context-C7Y6Xu6h.js} +1 -1
  11. package/dist/components/index.js +1 -1
  12. package/dist/computed-CA4Cgtoe.js +407 -0
  13. package/dist/{concatenated-component-2Gzy5e2c.js → concatenated-component-CA54ng_j.js} +43 -44
  14. package/dist/css-classes/index.js +2 -2
  15. package/dist/{effect-BsW3fy1q.js → effect-DgNm6jk9.js} +3 -3
  16. package/dist/{enhanced-renderer-t9Ni2EEG.js → enhanced-renderer-D05CCloF.js} +26 -28
  17. package/dist/essential.js +276 -281
  18. package/dist/factories-B05hE6kc.js +644 -0
  19. package/dist/{factory-gqfMcmOy.js → factory-B1YXfgU1.js} +23 -29
  20. package/dist/full.d.ts +12 -0
  21. package/dist/full.d.ts.map +1 -0
  22. package/dist/full.js +436 -0
  23. package/dist/gradients/index.js +53 -53
  24. package/dist/hooks-w_FYPLjI.js +158 -0
  25. package/dist/{index-DL9Cys3t.js → index-CmQmIgPK.js} +220 -233
  26. package/dist/index.d.ts +0 -1
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +295 -300
  29. package/dist/minimal-prod.js +106 -108
  30. package/dist/minimal.js +97 -98
  31. package/dist/modifiers/base.d.ts.map +1 -1
  32. package/dist/modifiers/base.js +121 -120
  33. package/dist/modifiers/builder.js +1 -1
  34. package/dist/modifiers/index.js +22 -23
  35. package/dist/modifiers/registry.js +1 -1
  36. package/dist/{observed-object-p1CLdrFm.js → observed-object-DCoyucmV.js} +3 -3
  37. package/dist/optimization-D9t53vNJ.js +308 -0
  38. package/dist/{proxy-Cp0QUXME.js → proxy-B7ZIqGd0.js} +3 -3
  39. package/dist/reactive/index.js +87 -85
  40. package/dist/runtime/dom-bridge.js +15 -17
  41. package/dist/runtime/index.js +71 -71
  42. package/dist/runtime/renderer.js +10 -11
  43. package/dist/signal-BRoiFOO7.js +262 -0
  44. package/dist/{signal-list-07gNXGiW.js → signal-list-_Eid-N7_.js} +285 -176
  45. package/dist/state/index.js +43 -44
  46. package/dist/theme-D5-09a8N.js +26 -0
  47. package/dist/validation/index.js +24 -26
  48. package/dist/version.js +1 -1
  49. package/package.json +16 -3
  50. package/dist/factories-B3-rmvkB.js +0 -268
  51. package/dist/hooks-WGmpzYgD.js +0 -446
  52. package/dist/optimization-CbKNA9w4.js +0 -21
  53. package/dist/presets-B9x94uRn.js +0 -381
  54. package/dist/scheduler-DppMK9mR.js +0 -169
  55. package/dist/theme-CRLPHryV.js +0 -687
  56. package/dist/{index-JQ1sW1SK.js → index-7vhCZc7g.js} +1 -1
@@ -0,0 +1,158 @@
1
+ function a(t, e) {
2
+ t._enhancedLifecycle = {
3
+ ...t._enhancedLifecycle,
4
+ ...e
5
+ };
6
+ }
7
+ function m(t, e) {
8
+ a(t, { onMount: e });
9
+ }
10
+ function i(t, e) {
11
+ a(t, { onDOMReady: e });
12
+ }
13
+ function y(t, e) {
14
+ a(t, { onUnmount: e });
15
+ }
16
+ function h(t, e) {
17
+ a(t, { onError: e });
18
+ }
19
+ function g(t, e) {
20
+ a(t, { onDOMError: e });
21
+ }
22
+ function M(t, e) {
23
+ return a(t, {
24
+ onError: (s) => e(s),
25
+ onDOMError: (s, o) => e(s, `DOM:${o}`)
26
+ }), t;
27
+ }
28
+ function d(t, e) {
29
+ i(t, (s, o) => {
30
+ if (o)
31
+ return e(o);
32
+ });
33
+ }
34
+ function p(t, e, s) {
35
+ d(t, (o) => {
36
+ if (typeof e?.resolve == "function") {
37
+ const n = e.resolve();
38
+ s(o, n);
39
+ }
40
+ });
41
+ }
42
+ function E(t, e) {
43
+ console.warn("⚠️ setTimeout workaround detected. Consider migrating to onDOMReady."), i(t, () => {
44
+ e();
45
+ });
46
+ }
47
+ const O = {
48
+ /**
49
+ * Focus element when DOM is ready (replaces setTimeout focus hacks)
50
+ */
51
+ focusWhenReady(t, e, s) {
52
+ i(t, (o, n) => {
53
+ let c = null;
54
+ s ? c = s : e ? c = n?.querySelector(e) || null : c = n || null, c instanceof HTMLElement && typeof c.focus == "function" && requestAnimationFrame(() => {
55
+ try {
56
+ c.focus();
57
+ } catch (l) {
58
+ console.warn("Focus failed:", l);
59
+ }
60
+ });
61
+ });
62
+ },
63
+ /**
64
+ * Focus first focusable element in component
65
+ */
66
+ focusFirstFocusable(t) {
67
+ i(t, (e, s) => {
68
+ if (s) {
69
+ const o = s.querySelector(
70
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
71
+ );
72
+ o && this.focusWhenReady(t, void 0, o);
73
+ }
74
+ });
75
+ }
76
+ }, D = {
77
+ /**
78
+ * Coordinate animations with DOM readiness
79
+ */
80
+ animateWhenReady(t, e) {
81
+ i(t, (s, o) => {
82
+ let n = null;
83
+ e.element ? n = e.element : e.selector ? n = o?.querySelector(e.selector) || null : n = o || null, n && (e.setup(n), requestAnimationFrame(() => {
84
+ e.animate(n);
85
+ }));
86
+ });
87
+ },
88
+ /**
89
+ * Fade in animation (common pattern)
90
+ */
91
+ fadeIn(t, e, s = 300) {
92
+ this.animateWhenReady(t, {
93
+ element: e,
94
+ setup: (o) => {
95
+ const n = o;
96
+ n.style.opacity = "0", n.style.transition = `opacity ${s}ms ease-out`;
97
+ },
98
+ animate: (o) => {
99
+ const n = o;
100
+ n.style.opacity = "1";
101
+ }
102
+ });
103
+ },
104
+ /**
105
+ * Scale in animation (common for modals/alerts)
106
+ */
107
+ scaleIn(t, e, s = 300) {
108
+ this.animateWhenReady(t, {
109
+ element: e,
110
+ setup: (o) => {
111
+ const n = o;
112
+ n.style.transform = "scale(0.8)", n.style.opacity = "0", n.style.transition = `all ${s}ms ease-out`;
113
+ },
114
+ animate: (o) => {
115
+ const n = o;
116
+ n.style.transform = "scale(1)", n.style.opacity = "1";
117
+ }
118
+ });
119
+ }
120
+ };
121
+ function R(t, e, s) {
122
+ i(t, (o, n) => {
123
+ const c = s ? n?.querySelector(s) : n;
124
+ if (c) {
125
+ const l = (r) => {
126
+ c.contains(r.target) || e();
127
+ };
128
+ document.addEventListener("click", l), y(t, () => {
129
+ document.removeEventListener("click", l);
130
+ });
131
+ }
132
+ });
133
+ }
134
+ function q(t, e, s, o) {
135
+ i(t, (n, c) => {
136
+ const l = c?.querySelector(e), r = c?.querySelector(s);
137
+ if (l && r) {
138
+ const u = o(l, r), f = r;
139
+ f.style.left = `${u.x}px`, f.style.top = `${u.y}px`;
140
+ }
141
+ });
142
+ }
143
+ export {
144
+ D as A,
145
+ O as F,
146
+ i as a,
147
+ h as b,
148
+ m as c,
149
+ y as d,
150
+ q as e,
151
+ M as f,
152
+ p as g,
153
+ E as m,
154
+ g as o,
155
+ R as s,
156
+ a as u,
157
+ d as w
158
+ };