@tachui/core 0.8.11 → 0.8.12

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/essential.js CHANGED
@@ -1,9 +1,9 @@
1
- import { c as s, b as r, C as n, S as i, T as o, k as c, q as d, s as l, p as m, g, d as p, e as f, f as C, j as u, h as S, l as M, n as h, i as E, a as x, u as v, m as b, v as y, w as G, o as R, r as O, t as A } from "./index-ykdS-3xs.js";
1
+ import { c as s, b as r, C as n, S as i, T as o, k as c, q as d, s as l, p as m, g, d as p, e as f, f as C, j as u, h as S, l as M, n as h, i as E, a as x, u as v, m as b, v as y, w as G, o as R, r as O, t as A } from "./index-BaBj0d3d.js";
2
2
  import { Assets as P, ColorAsset as L, FontAsset as T, FontWidth as D, ImageAsset as U, SystemFonts as w, createColorAsset as B, createFontAsset as F, createGoogleFont as j, createImageAsset as V, createSystemFont as q, createVariableFont as z, getAssetInfo as k, listAssetNames as N, registerAsset as W } from "./assets/index.js";
3
3
  import { a as _, w as K, A as J, x as Y, B as Q, u as X, f as Z, C as $, v as ee, D as ae, E as te, F as se, g as re, h as ne, K as ie, H as oe, M as ce, J as de, G as le, l as me, e as ge, m as pe, I as fe, L as Ce, d as ue, N as Se, R as Me, t as he, p as Ee, s as xe, r as ve, q as be, b as ye, c as Ge, k as Re, j as Oe, S as Ae, T as Ie, y as Pe, z as Le, i as Te, n as De, o as Ue, O as we } from "./index-JQ1sW1SK.js";
4
4
  import { Layout as Fe, dimensionToCSS as je, infinity as Ve, infinityToFlexCSS as qe, isInfinity as ze, shouldExpandForInfinity as ke } from "./constants/layout.js";
5
- import { b as We, g as He, f as _e, c as Ke, a as Je, h as Ye, r as Qe, w as Xe, d as Ze, e as $e } from "./factory-BgnjJRGE.js";
6
- import { C as aa, y as ta, y as sa, D as ra, k as na, E as ia, M as oa, S as ca, q as da, V as la, a as ma, b as ga, v as pa, l as fa, o as Ca, d as ua, c as Sa, e as Ma, n as ha, g as Ea, w as xa, i as va, h as ba, x as ya, m as Ga, p as Ra, r as Oa, f as Aa, u as Ia, s as Pa, j as La, t as Ta } from "./concatenated-component-CP81AwgI.js";
5
+ import { b as We, g as He, f as _e, c as Ke, a as Je, h as Ye, r as Qe, w as Xe, d as Ze, e as $e } from "./factory-wYm7L3JT.js";
6
+ import { C as aa, y as ta, y as sa, D as ra, k as na, E as ia, M as oa, S as ca, q as da, V as la, a as ma, b as ga, v as pa, l as fa, o as Ca, d as ua, c as Sa, e as Ma, n as ha, g as Ea, w as xa, i as va, h as ba, x as ya, m as Ga, p as Ra, r as Oa, f as Aa, u as Ia, s as Pa, j as La, t as Ta } from "./concatenated-component-BCrw_7cC.js";
7
7
  import { OptimizedLazyPluginLoader as Ua, PluginDevUtils as wa, PluginError as Ba, SimplifiedComponentRegistry as Fa, SimplifiedPluginManager as ja, SimplifiedTachUIInstance as Va, adaptPlugin as qa, compareSemver as za, createLazyPlugin as ka, createLegacyPluginAdapter as Na, globalTachUIInstance as Wa, installPlugin as Ha, isLegacyPlugin as _a, normalizePluginName as Ka, registerComponent as Ja, registerService as Ya, validatePluginName as Qa, validateSemver as Xa } from "./plugins/index.js";
8
8
  import { DOMBridgeDebug as $a, getComponentFromElement as et, mountComponentChildren as at, mountComponentTree as tt, mountRoot as st, registerComponentWithLifecycleHooks as rt, unmountComponent as nt, unmountComponentEnhanced as it, updateComponent as ot } from "./runtime/dom-bridge.js";
9
9
  import { LifecycleValidationUtils as dt, ProductionUtils as lt, ValidationDevTools as mt, ValidationSetup as gt, getComponentValidator as pt } from "./validation/index.js";
@@ -11,7 +11,7 @@ import { TACHUI_PACKAGE as Ct, TACHUI_PACKAGE_VERSION as ut, VERSION as St } fro
11
11
  import { c as ht, g as Et, a as xt, p as vt, b as bt } from "./plugin-BCAdZXKq.js";
12
12
  import { AnimationModifier as Gt, AppearanceModifier as Rt, BaseModifier as Ot, InteractionModifier as At, LayoutModifier as It, LifecycleModifier as Pt, ResizableModifier as Lt } from "./modifiers/base.js";
13
13
  import { ModifierPriority as Dt } from "@tachui/types/modifiers";
14
- import { a as wt, c as Bt, g as Ft, i as jt, r as Vt } from "./proxy-522Jjabr.js";
14
+ import { a as wt, c as Bt, g as Ft, i as jt, r as Vt } from "./proxy-gO-vDCUZ.js";
15
15
  import { a as zt, b as kt, c as Nt, i as Wt, l as Ht, p as _t } from "./presets-B9x94uRn.js";
16
16
  import { g as Jt, e as Yt, f as Qt, c as Xt, a as Zt, i as $t, m as es, r as as, s as ts, h as ss } from "./factories-B3-rmvkB.js";
17
17
  import { r as ns } from "./registration-utils-CNsN4eoU.js";
@@ -2,8 +2,8 @@ import "./scheduler-DppMK9mR.js";
2
2
  import "./theme-CRLPHryV.js";
3
3
  import "@tachui/types/reactive";
4
4
  import "@tachui/types/modifiers";
5
- import { p as x, h as w, d as S, c as M } from "./concatenated-component-CP81AwgI.js";
6
- import { i as P, c as R } from "./proxy-522Jjabr.js";
5
+ import { p as x, h as w, d as S, c as M } from "./concatenated-component-BCrw_7cC.js";
6
+ import { i as P, c as R } from "./proxy-gO-vDCUZ.js";
7
7
  import "./presets-B9x94uRn.js";
8
8
  import "@tachui/registry";
9
9
  import "./component-D-O9yq0P.js";
@@ -1,7 +1,7 @@
1
1
  import { infinity as c } from "./constants/layout.js";
2
2
  import { LayoutModifier as m } from "./modifiers/base.js";
3
- import { y as h, t as T, h as w } from "./concatenated-component-CP81AwgI.js";
4
- import { g as z, a as E } from "./proxy-522Jjabr.js";
3
+ import { y as h, t as T, h as w } from "./concatenated-component-BCrw_7cC.js";
4
+ import { g as z, a as E } from "./proxy-gO-vDCUZ.js";
5
5
  import "./assets/index.js";
6
6
  import "./scheduler-DppMK9mR.js";
7
7
  import "./theme-CRLPHryV.js";
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { c as s, b as r, C as n, S as i, T as o, k as c, q as d, s as l, p as m, g, d as p, e as f, f as C, j as u, h as S, l as M, n as h, i as E, a as x, u as b, m as v, v as y, w as R, o as G, r as O, t as A } from "./index-ykdS-3xs.js";
1
+ import { c as s, b as r, C as n, S as i, T as o, k as c, q as d, s as l, p as m, g, d as p, e as f, f as C, j as u, h as S, l as M, n as h, i as E, a as x, u as b, m as v, v as y, w as R, o as G, r as O, t as A } from "./index-BaBj0d3d.js";
2
2
  import { Assets as P, ColorAsset as L, FontAsset as T, FontWidth as D, ImageAsset as w, SystemFonts as U, createColorAsset as B, createFontAsset as F, createGoogleFont as j, createImageAsset as V, createSystemFont as N, createVariableFont as k, getAssetInfo as q, listAssetNames as z, registerAsset as W } from "./assets/index.js";
3
3
  import { a as H, w as K, A as J, x as Y, B as Q, u as X, f as Z, C as $, v as ee, D as ae, E as te, F as se, g as re, h as ne, K as ie, H as oe, M as ce, J as de, G as le, l as me, e as ge, m as pe, I as fe, L as Ce, d as ue, N as Se, R as Me, t as he, p as Ee, s as xe, r as be, q as ve, b as ye, c as Re, k as Ge, j as Oe, S as Ae, T as Ie, y as Pe, z as Le, i as Te, n as De, o as we, O as Ue } from "./index-JQ1sW1SK.js";
4
4
  import { Layout as Fe, dimensionToCSS as je, infinity as Ve, infinityToFlexCSS as Ne, isInfinity as ke, shouldExpandForInfinity as qe } from "./constants/layout.js";
5
- import { b as We, g as _e, f as He, c as Ke, a as Je, h as Ye, r as Qe, w as Xe, d as Ze, e as $e } from "./factory-BgnjJRGE.js";
6
- import { C as aa, y as ta, y as sa, D as ra, k as na, E as ia, M as oa, S as ca, q as da, V as la, a as ma, b as ga, v as pa, l as fa, o as Ca, d as ua, c as Sa, e as Ma, n as ha, g as Ea, w as xa, i as ba, h as va, x as ya, m as Ra, p as Ga, r as Oa, f as Aa, u as Ia, s as Pa, j as La, t as Ta } from "./concatenated-component-CP81AwgI.js";
5
+ import { b as We, g as _e, f as He, c as Ke, a as Je, h as Ye, r as Qe, w as Xe, d as Ze, e as $e } from "./factory-wYm7L3JT.js";
6
+ import { C as aa, y as ta, y as sa, D as ra, k as na, E as ia, M as oa, S as ca, q as da, V as la, a as ma, b as ga, v as pa, l as fa, o as Ca, d as ua, c as Sa, e as Ma, n as ha, g as Ea, w as xa, i as ba, h as va, x as ya, m as Ra, p as Ga, r as Oa, f as Aa, u as Ia, s as Pa, j as La, t as Ta } from "./concatenated-component-BCrw_7cC.js";
7
7
  import { OptimizedLazyPluginLoader as wa, PluginDevUtils as Ua, PluginError as Ba, SimplifiedComponentRegistry as Fa, SimplifiedPluginManager as ja, SimplifiedTachUIInstance as Va, adaptPlugin as Na, compareSemver as ka, createLazyPlugin as qa, createLegacyPluginAdapter as za, globalTachUIInstance as Wa, installPlugin as _a, isLegacyPlugin as Ha, normalizePluginName as Ka, registerComponent as Ja, registerService as Ya, validatePluginName as Qa, validateSemver as Xa } from "./plugins/index.js";
8
8
  import { DOMBridgeDebug as $a, getComponentFromElement as et, mountComponentChildren as at, mountComponentTree as tt, mountRoot as st, registerComponentWithLifecycleHooks as rt, unmountComponent as nt, unmountComponentEnhanced as it, updateComponent as ot } from "./runtime/dom-bridge.js";
9
9
  import { LifecycleValidationUtils as dt, ProductionUtils as lt, ValidationDevTools as mt, ValidationSetup as gt, getComponentValidator as pt } from "./validation/index.js";
@@ -11,7 +11,7 @@ import { TACHUI_PACKAGE as Ct, TACHUI_PACKAGE_VERSION as ut, VERSION as St } fro
11
11
  import { c as ht, g as Et, a as xt, p as bt, b as vt } from "./plugin-BCAdZXKq.js";
12
12
  import { AnimationModifier as Rt, AppearanceModifier as Gt, BaseModifier as Ot, InteractionModifier as At, LayoutModifier as It, LifecycleModifier as Pt, ResizableModifier as Lt } from "./modifiers/base.js";
13
13
  import { ModifierPriority as Dt } from "@tachui/types/modifiers";
14
- import { a as Ut, c as Bt, g as Ft, i as jt, r as Vt } from "./proxy-522Jjabr.js";
14
+ import { a as Ut, c as Bt, g as Ft, i as jt, r as Vt } from "./proxy-gO-vDCUZ.js";
15
15
  import { a as kt, b as qt, c as zt, i as Wt, l as _t, p as Ht } from "./presets-B9x94uRn.js";
16
16
  import { g as Jt, e as Yt, f as Qt, c as Xt, a as Zt, i as $t, m as es, r as as, s as ts, h as ss } from "./factories-B3-rmvkB.js";
17
17
  import { r as ns } from "./registration-utils-CNsN4eoU.js";
@@ -1,5 +1,5 @@
1
1
  import "@tachui/registry";
2
- import { M as s, a, c as o, m as d, s as t } from "../concatenated-component-CP81AwgI.js";
2
+ import { M as s, a, c as o, m as d, s as t } from "../concatenated-component-BCrw_7cC.js";
3
3
  export {
4
4
  s as ModifierBuilderImpl,
5
5
  a as applyModifiers,
@@ -1,7 +1,7 @@
1
1
  import { AnimationModifier as r, AppearanceModifier as o, BaseModifier as a, InteractionModifier as s, LayoutModifier as f, LifecycleModifier as t, ResizableModifier as d } from "./base.js";
2
2
  import { ModifierPriority as p } from "@tachui/types/modifiers";
3
- import { M as n, a as m, b as l, d as y, c as x, e as b, m as u, s as g } from "../concatenated-component-CP81AwgI.js";
4
- import { c as h, r as B } from "../proxy-522Jjabr.js";
3
+ import { M as n, a as m, b as l, d as y, c as x, e as b, m as u, s as g } from "../concatenated-component-BCrw_7cC.js";
4
+ import { c as h, r as B } from "../proxy-gO-vDCUZ.js";
5
5
  import { a as R, b as v, c as A, i as I, l as L, p as z } from "../presets-B9x94uRn.js";
6
6
  import { g as H, e as N, f as S, c as T, a as U, i as W, m as j, r as k, s as q, h as w } from "../factories-B3-rmvkB.js";
7
7
  import { r as F } from "../registration-utils-CNsN4eoU.js";
@@ -1,4 +1,4 @@
1
- import { b as a, d as r, e as s, z as t, B as d, A as p } from "../concatenated-component-CP81AwgI.js";
1
+ import { b as a, d as r, e as s, z as t, B as d, A as p } from "../concatenated-component-BCrw_7cC.js";
2
2
  import "@tachui/registry";
3
3
  export {
4
4
  a as applyModifiersToNode,
@@ -1,4 +1,4 @@
1
- import { z as h, d as R } from "./concatenated-component-CP81AwgI.js";
1
+ import { z as h, d as R } from "./concatenated-component-BCrw_7cC.js";
2
2
  const k = {
3
3
  proxyModifiers: !0
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"dom-bridge.d.ts","sourceRoot":"","sources":["../../src/runtime/dom-bridge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAkBhD;;GAEG;AACH,wBAAgB,mCAAmC,CACjD,SAAS,EAAE,iBAAiB,GAC3B,IAAI,CAIN;AA+FD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,SAAS,CAAC,YAAY,EAAE,MAAM,iBAAiB,GAAG,IAAI,CA4CrE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,iBAAiB,EAC5B,SAAS,EAAE,OAAO,EAClB,cAAc,GAAE,OAAc,GAC7B,MAAM,IAAI,CAkIZ;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,iBAAiB,EAC5B,SAAS,EAAE,OAAO,GACjB,IAAI,CAmBN;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,iBAAiB,EAC5B,SAAS,EAAE,OAAO,GACjB,IAAI,CA6DN;AAsED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,iBAAiB,EAAE,EAC7B,SAAS,EAAE,OAAO,GACjB,CAAC,MAAM,IAAI,CAAC,EAAE,CAShB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,iBAAiB,EAC5B,QAAQ,EAAE,GAAG,GACZ,IAAI,CAiBN;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,OAAO,GACf,iBAAiB,GAAG,SAAS,CAU/B;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;;sCAES,iBAAiB;oCAEnB,iBAAiB;IAGjD;;OAEG;wBACiB;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE;CAyBzD,CAAA"}
1
+ {"version":3,"file":"dom-bridge.d.ts","sourceRoot":"","sources":["../../src/runtime/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"@tachui/types/reactive";
4
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
- const L = new v(), f = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set();
7
- function _(e) {
5
+ import { D as L } from "../concatenated-component-BCrw_7cC.js";
6
+ const v = new L(), u = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set();
7
+ function N(e) {
8
8
  e._enhancedLifecycle && h.add(e);
9
9
  }
10
- function A() {
10
+ function D() {
11
11
  for (const e of h) {
12
12
  const o = e._enhancedLifecycle;
13
13
  if (o && !e.domReady) {
14
- const t = D(e);
14
+ const t = O(e);
15
15
  if (t.length > 0) {
16
16
  if (e.domElements = /* @__PURE__ */ new Map(), t.forEach((n, r) => {
17
17
  const s = n.id || `element-${r}`;
@@ -32,34 +32,14 @@ function A() {
32
32
  }
33
33
  h.clear();
34
34
  }
35
- function D(e) {
35
+ function O(e) {
36
36
  const o = l.get(e);
37
37
  if (o && o.length > 0)
38
38
  return o;
39
39
  const t = document.querySelectorAll(`[data-component-id="${e.id}"]`);
40
- if (t.length > 0)
41
- return Array.from(t);
42
- if (e.id.startsWith("image-")) {
43
- const n = document.querySelectorAll("img.tachui-image");
44
- return Array.from(n).filter(
45
- (r) => !Array.from(l.values()).flat().includes(r)
46
- );
47
- }
48
- if (e.id.startsWith("text-")) {
49
- const n = document.querySelectorAll(".tachui-text");
50
- return Array.from(n).filter(
51
- (r) => !Array.from(l.values()).flat().includes(r)
52
- );
53
- }
54
- if (e.id.startsWith("vstack-") || e.id.startsWith("hstack-")) {
55
- const n = document.querySelectorAll(".tachui-vstack, .tachui-hstack");
56
- return Array.from(n).filter(
57
- (r) => !Array.from(l.values()).flat().includes(r)
58
- );
59
- }
60
- return [];
40
+ return t.length > 0 ? Array.from(t) : [];
61
41
  }
62
- function N(e) {
42
+ function T(e) {
63
43
  C((o) => {
64
44
  const t = g("root-app");
65
45
  m(t);
@@ -68,54 +48,54 @@ function N(e) {
68
48
  let r;
69
49
  try {
70
50
  r = e();
71
- const a = document.getElementById("app");
72
- if (!a)
51
+ const c = document.getElementById("app");
52
+ if (!c)
73
53
  throw new Error('App container element with id="app" not found');
74
- y(r, a);
75
- } catch (a) {
76
- throw m(null), n && n.context.delete(p), a;
54
+ E(r, c);
55
+ } catch (c) {
56
+ throw m(null), n && n.context.delete(p), c;
77
57
  }
78
58
  const s = o;
79
59
  return () => (m(null), n && n.context.delete(p), s());
80
60
  });
81
61
  }
82
- function y(e, o, t = !0) {
62
+ function E(e, o, t = !0) {
83
63
  try {
84
64
  t && (o.innerHTML = "");
85
65
  let n = e;
86
66
  "build" in e && typeof e.build == "function" && (n = e.build());
87
- const r = n.render(), s = Array.isArray(r) ? r : [r], a = [];
88
- for (const c of s) {
89
- const i = L.render(c, o);
67
+ const r = n.render(), s = Array.isArray(r) ? r : [r], c = [];
68
+ for (const f of s) {
69
+ const i = v.render(f, o);
90
70
  if (i instanceof DocumentFragment) {
91
71
  const d = Array.from(i.childNodes);
92
- for (const u of d)
93
- u instanceof Element && (a.push(u), o.appendChild(u));
94
- } else i instanceof Element && (a.push(i), o.appendChild(i));
72
+ for (const a of d)
73
+ a instanceof Element && (c.push(a), o.appendChild(a));
74
+ } else i instanceof Element && (c.push(i), o.appendChild(i));
95
75
  }
96
- if (a.length > 0) {
97
- e.domElements = /* @__PURE__ */ new Map(), a.forEach((i, d) => {
98
- const u = i.id || `element-${d}`;
99
- e.domElements.set(u, i), i instanceof HTMLElement && (i._componentId = e.id), e.primaryElement || (e.primaryElement = i);
76
+ if (c.length > 0) {
77
+ e.domElements = /* @__PURE__ */ new Map(), c.forEach((i, d) => {
78
+ const a = i.id || `element-${d}`;
79
+ e.domElements.set(a, i), i instanceof HTMLElement && (i._componentId = e.id), e.primaryElement || (e.primaryElement = i);
100
80
  }), e.domReady = !0;
101
- const c = e._enhancedLifecycle;
102
- if (c?.onDOMReady) {
103
- const i = c.onDOMReady(
81
+ const f = e._enhancedLifecycle;
82
+ if (f?.onDOMReady) {
83
+ const i = f.onDOMReady(
104
84
  e.domElements,
105
85
  e.primaryElement
106
86
  );
107
87
  typeof i == "function" && (e.cleanup = e.cleanup || [], e.cleanup.push(i));
108
88
  }
109
- if (c?.onMount) {
110
- const i = c.onMount();
89
+ if (f?.onMount) {
90
+ const i = f.onMount();
111
91
  typeof i == "function" && (e.cleanup = e.cleanup || [], e.cleanup.push(i));
112
92
  }
113
93
  }
114
- for (const c of a)
115
- b(c, e);
116
- const E = [];
117
- return f.set(o, e), l.set(e, a), e.mounted = !0, A(), () => {
118
- E.forEach((c) => c()), w(e, o);
94
+ for (const f of c)
95
+ R(f, e);
96
+ const y = [];
97
+ return u.set(o, e), l.set(e, c), e.mounted = !0, D(), () => {
98
+ y.forEach((f) => f()), b(e, o);
119
99
  };
120
100
  } catch (n) {
121
101
  const r = Object.assign(new Error(), n, {
@@ -125,13 +105,13 @@ function y(e, o, t = !0) {
125
105
  throw s?.onDOMError ? s.onDOMError(r, "mount") : s?.onError ? s.onError(r) : console.error("Failed to mount component tree:", n), n;
126
106
  }
127
107
  }
128
- function O(e, o) {
108
+ function w(e, o) {
129
109
  const t = l.get(e);
130
110
  t && (t.forEach((n) => {
131
111
  n.parentNode && n.parentNode.removeChild(n);
132
- }), l.delete(e)), f.delete(o), e.mounted = !1, e.cleanup && (e.cleanup.forEach((n) => n()), e.cleanup = []);
112
+ }), l.delete(e)), u.delete(o), e.mounted = !1, e.cleanup && (e.cleanup.forEach((n) => n()), e.cleanup = []);
133
113
  }
134
- function w(e, o) {
114
+ function b(e, o) {
135
115
  try {
136
116
  const t = e._enhancedLifecycle;
137
117
  t?.onUnmount && t.onUnmount(), e.cleanup && (e.cleanup.forEach((r) => {
@@ -149,7 +129,7 @@ function w(e, o) {
149
129
  r instanceof HTMLElement && delete r._componentId;
150
130
  e.domElements.clear();
151
131
  }
152
- e.primaryElement = void 0, e.domReady = !1, e.mounted = !1, f.delete(o);
132
+ e.primaryElement = void 0, e.domReady = !1, e.mounted = !1, u.delete(o);
153
133
  } catch (t) {
154
134
  const n = Object.assign(new Error(), t, {
155
135
  code: "UNMOUNT_FAILED",
@@ -158,13 +138,13 @@ function w(e, o) {
158
138
  r?.onDOMError ? r.onDOMError(n, "unmount") : console.error("Component unmounting failed:", t);
159
139
  }
160
140
  }
161
- function b(e, o) {
141
+ function R(e, o) {
162
142
  const t = e;
163
143
  if (o.props) {
164
144
  const n = o.props;
165
145
  n.onClick && typeof n.onClick == "function" && t.addEventListener("click", n.onClick), n.onMouseEnter && typeof n.onMouseEnter == "function" && t.addEventListener("mouseenter", n.onMouseEnter), n.onMouseLeave && typeof n.onMouseLeave == "function" && t.addEventListener("mouseleave", n.onMouseLeave), n.onFocus && typeof n.onFocus == "function" && t.addEventListener("focus", n.onFocus), n.onBlur && typeof n.onBlur == "function" && t.addEventListener("blur", n.onBlur);
166
146
  }
167
- if (k(o) && o.modifiers) {
147
+ if (x(o) && o.modifiers) {
168
148
  for (const n of o.modifiers)
169
149
  if (n && "eventHandlers" in n && n.eventHandlers)
170
150
  for (const [r, s] of Object.entries(
@@ -176,18 +156,18 @@ function b(e, o) {
176
156
  );
177
157
  }
178
158
  }
179
- function k(e) {
159
+ function x(e) {
180
160
  return e && typeof e == "object" && ("modifiers" in e || "modifier" in e);
181
161
  }
182
- function I(e, o) {
162
+ function $(e, o) {
183
163
  const t = [];
184
164
  for (const n of e) {
185
- const r = y(n, o);
165
+ const r = E(n, o);
186
166
  t.push(r);
187
167
  }
188
168
  return t;
189
169
  }
190
- function S(e, o) {
170
+ function I(e, o) {
191
171
  const t = l.get(e);
192
172
  if (!t) {
193
173
  console.warn("Attempted to update unmounted component");
@@ -195,19 +175,19 @@ function S(e, o) {
195
175
  }
196
176
  e.prevProps = e.props, e.props = { ...e.props, ...o };
197
177
  const n = t[0]?.parentElement;
198
- n && (O(e, n), y(e, n));
178
+ n && (w(e, n), E(e, n));
199
179
  }
200
- function W(e) {
180
+ function B(e) {
201
181
  let o = e;
202
182
  for (; o; ) {
203
- const t = f.get(o);
183
+ const t = u.get(o);
204
184
  if (t)
205
185
  return t;
206
186
  o = o.parentElement;
207
187
  }
208
188
  }
209
- const $ = {
210
- getMountedComponents: () => Array.from(f.entries()),
189
+ const U = {
190
+ getMountedComponents: () => Array.from(u.entries()),
211
191
  getComponentElements: (e) => l.get(e),
212
192
  isComponentMounted: (e) => e.mounted || !1,
213
193
  /**
@@ -215,7 +195,7 @@ const $ = {
215
195
  */
216
196
  validateMounting() {
217
197
  const e = [];
218
- for (const [o, t] of f.entries()) {
198
+ for (const [o, t] of u.entries()) {
219
199
  document.contains(o) || e.push(`Container for component ${t.id} is not in DOM`), t.mounted || e.push(
220
200
  `Component ${t.id} marked as unmounted but still registered`
221
201
  );
@@ -229,13 +209,13 @@ const $ = {
229
209
  }
230
210
  };
231
211
  export {
232
- $ as DOMBridgeDebug,
233
- W as getComponentFromElement,
234
- I as mountComponentChildren,
235
- y as mountComponentTree,
236
- N as mountRoot,
237
- _ as registerComponentWithLifecycleHooks,
238
- O as unmountComponent,
239
- w as unmountComponentEnhanced,
240
- S as updateComponent
212
+ U as DOMBridgeDebug,
213
+ B as getComponentFromElement,
214
+ $ as mountComponentChildren,
215
+ E as mountComponentTree,
216
+ T as mountRoot,
217
+ N as registerComponentWithLifecycleHooks,
218
+ w as unmountComponent,
219
+ b as unmountComponentEnhanced,
220
+ I as updateComponent
241
221
  };
@@ -3,7 +3,7 @@ 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,
3
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-CP81AwgI.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-BCrw_7cC.js";
7
7
  export {
8
8
  L as AnimationManager,
9
9
  xe as COMPONENT_ELIGIBILITY,
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../src/runtime/renderer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAWzD;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,MAAM,CAAA;IACvB,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,qBAAa,WAAW;IACtB,OAAO,CAAC,OAAO,CAAmD;IAClE,OAAO,CAAC,UAAU,CAA0D;IAC5E,OAAO,CAAC,aAAa,CAAqB;IAE1C,OAAO,CAAC,kBAAkB,CAAkC;IAC5D,OAAO,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AE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;IAyBnD;;OAEG;IACH,OAAO,IAAI,IAAI;IAmBf,YAAY,IAAI,IAAI;IAgBpB,UAAU,IAAI,eAAe;IAI7B,cAAc,IAAI,IAAI;IAItB,eAAe,IAAI,IAAI;IAIvB,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,EAAE,WAAW,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI;IA8B9F,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI;IAOpE,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,0BAA0B;CAGnC;AAOD,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAA;AAErD,wBAAgB,oBAAoB,IAAI,IAAI,CAE3C;AAED,wBAAgB,kBAAkB,IAAI,uBAAuB,CAE5D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,iBAAiB,EAC3B,SAAS,EAAE,OAAO,GACjB,MAAM,IAAI,CAwNZ;AAED;;GAEG;AACH,wBAAgB,CAAC,CACf,GAAG,EAAE,MAAM,EACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,EAClC,GAAG,QAAQ,EAAE,CAAC,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,GACzC,OAAO,CA0BT;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,OAAO,CAsC9D"}
@@ -1,4 +1,4 @@
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";
1
+ import { D as m, g as n, h as p, r as a, f as d, t as M } from "../concatenated-component-BCrw_7cC.js";
2
2
  import "../scheduler-DppMK9mR.js";
3
3
  import "../theme-CRLPHryV.js";
4
4
  import "../effect-BsW3fy1q.js";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const c = "@tachui/core", o = "0.8.11", n = c, t = o, s = o;
1
+ const c = "@tachui/core", o = "0.8.12", n = c, t = o, s = o;
2
2
  export {
3
3
  n as TACHUI_PACKAGE,
4
4
  t as TACHUI_PACKAGE_VERSION,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachui/core",
3
- "version": "0.8.11",
3
+ "version": "0.8.12",
4
4
  "description": "tachUI core framework with reactive system and compiler",
5
5
  "homepage": "https://tachui.dev/",
6
6
  "type": "module",
@@ -141,8 +141,8 @@
141
141
  "dist"
142
142
  ],
143
143
  "dependencies": {
144
- "@tachui/types": "0.8.11",
145
- "@tachui/registry": "0.8.11"
144
+ "@tachui/types": "0.8.12",
145
+ "@tachui/registry": "0.8.12"
146
146
  },
147
147
  "devDependencies": {
148
148
  "@types/jsdom": "^21.1.6",