@tachui/data 0.8.16 → 0.8.18

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 (2) hide show
  1. package/dist/List.js +27 -26
  2. package/package.json +5 -5
package/dist/List.js CHANGED
@@ -1,6 +1,6 @@
1
- var Oe = Object.defineProperty;
2
- var Pe = (n, e, t) => e in n ? Oe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var m = (n, e, t) => Pe(n, typeof e != "symbol" ? e + "" : e, t);
1
+ var Pe = Object.defineProperty;
2
+ var Oe = (n, e, t) => e in n ? Pe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var m = (n, e, t) => Oe(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { withModifiers as pe, ComponentWithCSSClasses as ke, processElementOverride as Le, h as w, text as De, clonePropsPreservingReactivity as me, resetLifecycleState as ge, createSignal as N, isSignal as S, createEffect as R } from "@tachui/core";
5
5
  import "@tachui/core/reactive";
6
6
  import "@tachui/modifiers";
@@ -10,13 +10,13 @@ const y = {
10
10
  Dirty: 2,
11
11
  Disposed: 3
12
12
  };
13
- var ze = Object.defineProperty, _e = (n, e, t) => e in n ? ze(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, O = (n, e, t) => _e(n, typeof e != "symbol" ? e + "" : e, t);
13
+ var ze = Object.defineProperty, _e = (n, e, t) => e in n ? ze(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, P = (n, e, t) => _e(n, typeof e != "symbol" ? e + "" : e, t);
14
14
  let He = 0;
15
15
  const Ve = Math.random().toString(36).substr(2, 6);
16
16
  let ye = null, ve = null;
17
17
  const je = /* @__PURE__ */ new Set();
18
18
  je.add(Ve);
19
- const Q = {
19
+ const q = {
20
20
  get currentComputation() {
21
21
  return ye;
22
22
  },
@@ -31,14 +31,14 @@ const Q = {
31
31
  }
32
32
  };
33
33
  function Ce() {
34
- return Q.currentComputation;
34
+ return q.currentComputation;
35
35
  }
36
36
  function Ee() {
37
- return Q.currentOwner;
37
+ return q.currentOwner;
38
38
  }
39
39
  class Ae {
40
40
  constructor(e, t = null) {
41
- O(this, "id"), O(this, "owner"), O(this, "fn"), O(this, "sources", /* @__PURE__ */ new Set()), O(this, "observers", /* @__PURE__ */ new Set()), O(this, "state", y.Dirty), O(this, "value"), this.id = ++He, this.fn = e, this.owner = t, t && !t.disposed && t.sources.add(this);
41
+ P(this, "id"), P(this, "owner"), P(this, "fn"), P(this, "sources", /* @__PURE__ */ new Set()), P(this, "observers", /* @__PURE__ */ new Set()), P(this, "state", y.Dirty), P(this, "value"), this.id = ++He, this.fn = e, this.owner = t, t && !t.disposed && t.sources.add(this);
42
42
  }
43
43
  execute() {
44
44
  if (this.state === y.Disposed)
@@ -46,14 +46,14 @@ class Ae {
46
46
  for (const t of this.sources)
47
47
  t && typeof t == "object" && "removeObserver" in t && t.removeObserver(this);
48
48
  this.sources.clear();
49
- const e = Q.currentComputation;
50
- Q.currentComputation = this;
49
+ const e = q.currentComputation;
50
+ q.currentComputation = this;
51
51
  try {
52
52
  return this.state = y.Clean, this.value = this.fn(), this.value;
53
53
  } catch (t) {
54
54
  throw this.state = y.Disposed, (typeof process > "u" || process.env.NODE_ENV !== "test") && console.error("Error in computation:", t), t;
55
55
  } finally {
56
- Q.currentComputation = e;
56
+ q.currentComputation = e;
57
57
  }
58
58
  }
59
59
  dispose() {
@@ -98,7 +98,7 @@ let We = 0, Ue = class {
98
98
  */
99
99
  notify() {
100
100
  for (const e of this.observers)
101
- e.state !== y.Disposed && (e.state = y.Dirty, qe(e));
101
+ e.state !== y.Disposed && (e.state = y.Dirty, Qe(e));
102
102
  }
103
103
  /**
104
104
  * Remove an observer (cleanup)
@@ -120,10 +120,10 @@ let We = 0, Ue = class {
120
120
  };
121
121
  const X = /* @__PURE__ */ new Set();
122
122
  let J = !1;
123
- function qe(n) {
124
- X.add(n), !J && queueMicrotask(Qe);
123
+ function Qe(n) {
124
+ X.add(n), !J && queueMicrotask(qe);
125
125
  }
126
- function Qe() {
126
+ function qe() {
127
127
  if (!J) {
128
128
  J = !0;
129
129
  try {
@@ -1758,7 +1758,7 @@ class Rt {
1758
1758
  }
1759
1759
  }
1760
1760
  const ae = new Rt();
1761
- var Ot = Object.defineProperty, Pt = (n, e, t) => e in n ? Ot(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, j = (n, e, t) => Pt(n, typeof e != "symbol" ? e + "" : e, t);
1761
+ var Pt = Object.defineProperty, Ot = (n, e, t) => e in n ? Pt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, j = (n, e, t) => Ot(n, typeof e != "symbol" ? e + "" : e, t);
1762
1762
  const le = "__tachuiManagedComponentId";
1763
1763
  class Te {
1764
1764
  constructor() {
@@ -2242,7 +2242,7 @@ class Te {
2242
2242
  */
2243
2243
  adoptNode(e, t) {
2244
2244
  const s = this.nodeMap.get(e);
2245
- s && (this.nodeMap.set(t, s), this.nodeMap.delete(e), this.renderedNodes.delete(e), this.renderedNodes.add(t), t.element = s, e.dispose && (t.dispose = e.dispose), e.__renderedChildren && (t.__renderedChildren = e.__renderedChildren), e.__appliedProps && (t.__appliedProps = e.__appliedProps), this.metrics.adopted++);
2245
+ s && (this.nodeMap.set(t, s), this.nodeMap.delete(e), this.renderedNodes.delete(e), this.renderedNodes.add(t), t.element = s, e.dispose && (t.dispose = e.dispose), e.__renderedChildren && (t.__renderedChildren = e.__renderedChildren), e.__appliedProps && (t.__appliedProps = { ...e.__appliedProps }), this.metrics.adopted++);
2246
2246
  }
2247
2247
  /**
2248
2248
  * Cleanup all tracked elements
@@ -2318,11 +2318,11 @@ function kt(n, e, ...t) {
2318
2318
  };
2319
2319
  return e && "componentMetadata" in e && (r.componentMetadata = e.componentMetadata), r;
2320
2320
  }
2321
- var Lt = Object.defineProperty, Dt = (n, e, t) => e in n ? Lt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, P = (n, e, t) => Dt(n, typeof e != "symbol" ? e + "" : e, t);
2321
+ var Lt = Object.defineProperty, Dt = (n, e, t) => e in n ? Lt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, O = (n, e, t) => Dt(n, typeof e != "symbol" ? e + "" : e, t);
2322
2322
  let Y = class ee {
2323
2323
  // Required by ModifiableComponent interface
2324
2324
  constructor(e, t, s = !0) {
2325
- this.metadata = t, P(this, "type", "component"), P(this, "id"), P(this, "mounted", !1), P(this, "cleanup", []), P(this, "props", {}), P(this, "segments"), P(this, "modifiers", []), this.id = `concat-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, this.segments = e;
2325
+ this.metadata = t, O(this, "type", "component"), O(this, "id"), O(this, "mounted", !1), O(this, "cleanup", []), O(this, "props", {}), O(this, "segments"), O(this, "modifiers", []), this.id = `concat-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, this.segments = e;
2326
2326
  }
2327
2327
  /**
2328
2328
  * Render the concatenated component to DOM nodes (Enhanced - Phase 4.2)
@@ -2884,7 +2884,7 @@ class Wt {
2884
2884
  function Ut(n, e) {
2885
2885
  return new Wt(n, e);
2886
2886
  }
2887
- var qt = Object.defineProperty, Qt = (n, e, t) => e in n ? qt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, H = (n, e, t) => Qt(n, typeof e != "symbol" ? e + "" : e, t);
2887
+ var Qt = Object.defineProperty, qt = (n, e, t) => e in n ? Qt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, H = (n, e, t) => qt(n, typeof e != "symbol" ? e + "" : e, t);
2888
2888
  const Gt = class U {
2889
2889
  constructor() {
2890
2890
  H(this, "components", /* @__PURE__ */ new Map()), H(this, "contexts", /* @__PURE__ */ new Map()), H(this, "cleanupQueue", /* @__PURE__ */ new Set()), H(this, "updateQueue", /* @__PURE__ */ new Set()), H(this, "isUpdating", !1);
@@ -2984,12 +2984,12 @@ const Gt = class U {
2984
2984
  };
2985
2985
  H(Gt, "instance");
2986
2986
  var Kt = Object.defineProperty, Yt = (n, e, t) => e in n ? Kt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, M = (n, e, t) => Yt(n, typeof e != "symbol" ? e + "" : e, t);
2987
- const Ne = class q {
2987
+ const Ne = class Q {
2988
2988
  constructor() {
2989
2989
  M(this, "contexts", /* @__PURE__ */ new Map()), M(this, "providerStack", /* @__PURE__ */ new Map()), M(this, "currentComponent", null);
2990
2990
  }
2991
2991
  static getInstance() {
2992
- return q.instance || (q.instance = new q()), q.instance;
2992
+ return Q.instance || (Q.instance = new Q()), Q.instance;
2993
2993
  }
2994
2994
  /**
2995
2995
  * Set the current component context for provider resolution
@@ -3113,7 +3113,8 @@ let Zt = Ne, Xt = class {
3113
3113
  clear() {
3114
3114
  this.registry.clear();
3115
3115
  }
3116
- }, Jt = class {
3116
+ };
3117
+ class Jt {
3117
3118
  constructor() {
3118
3119
  M(this, "services", /* @__PURE__ */ new Map()), M(this, "factories", /* @__PURE__ */ new Map()), M(this, "singletons", /* @__PURE__ */ new Map()), M(this, "scoped", /* @__PURE__ */ new Map()), M(this, "dependencies", /* @__PURE__ */ new Map());
3119
3120
  }
@@ -3174,7 +3175,7 @@ let Zt = Ne, Xt = class {
3174
3175
  getRegistered() {
3175
3176
  return [...this.services.keys(), ...this.factories.keys()];
3176
3177
  }
3177
- };
3178
+ }
3178
3179
  new Jt();
3179
3180
  new Xt();
3180
3181
  new Te();
@@ -4246,7 +4247,7 @@ function Z(n) {
4246
4247
  const e = new us(n);
4247
4248
  return pe(e);
4248
4249
  }
4249
- const Ms = {
4250
+ const As = {
4250
4251
  /**
4251
4252
  * Create a simple list from array
4252
4253
  */
@@ -4294,5 +4295,5 @@ const Ms = {
4294
4295
  export {
4295
4296
  us as E,
4296
4297
  Z as L,
4297
- Ms as a
4298
+ As as a
4298
4299
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachui/data",
3
- "version": "0.8.16",
3
+ "version": "0.8.18",
4
4
  "description": "Data display and organization components for tachUI framework",
5
5
  "homepage": "https://tachui.dev/",
6
6
  "type": "module",
@@ -25,10 +25,10 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@tachui/core": "0.8.16",
29
- "@tachui/flow-control": "0.8.16",
30
- "@tachui/mobile": "0.8.16",
31
- "@tachui/primitives": "0.8.16"
28
+ "@tachui/core": "0.8.18",
29
+ "@tachui/flow-control": "0.8.18",
30
+ "@tachui/mobile": "0.8.18",
31
+ "@tachui/primitives": "0.8.18"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^20.0.0",