@tachui/data 0.8.15 → 0.8.17
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/List.js +62 -61
- package/package.json +5 -5
package/dist/List.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = (n, 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
|
+
import "@tachui/core/reactive";
|
|
5
6
|
import "@tachui/modifiers";
|
|
6
7
|
const y = {
|
|
7
8
|
Clean: 0,
|
|
@@ -9,13 +10,13 @@ const y = {
|
|
|
9
10
|
Dirty: 2,
|
|
10
11
|
Disposed: 3
|
|
11
12
|
};
|
|
12
|
-
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,
|
|
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);
|
|
13
14
|
let He = 0;
|
|
14
15
|
const Ve = Math.random().toString(36).substr(2, 6);
|
|
15
16
|
let ye = null, ve = null;
|
|
16
17
|
const je = /* @__PURE__ */ new Set();
|
|
17
18
|
je.add(Ve);
|
|
18
|
-
const
|
|
19
|
+
const q = {
|
|
19
20
|
get currentComputation() {
|
|
20
21
|
return ye;
|
|
21
22
|
},
|
|
@@ -30,14 +31,14 @@ const Q = {
|
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
33
|
function Ce() {
|
|
33
|
-
return
|
|
34
|
+
return q.currentComputation;
|
|
34
35
|
}
|
|
35
36
|
function Ee() {
|
|
36
|
-
return
|
|
37
|
+
return q.currentOwner;
|
|
37
38
|
}
|
|
38
39
|
class Ae {
|
|
39
40
|
constructor(e, t = null) {
|
|
40
|
-
|
|
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);
|
|
41
42
|
}
|
|
42
43
|
execute() {
|
|
43
44
|
if (this.state === y.Disposed)
|
|
@@ -45,14 +46,14 @@ class Ae {
|
|
|
45
46
|
for (const t of this.sources)
|
|
46
47
|
t && typeof t == "object" && "removeObserver" in t && t.removeObserver(this);
|
|
47
48
|
this.sources.clear();
|
|
48
|
-
const e =
|
|
49
|
-
|
|
49
|
+
const e = q.currentComputation;
|
|
50
|
+
q.currentComputation = this;
|
|
50
51
|
try {
|
|
51
52
|
return this.state = y.Clean, this.value = this.fn(), this.value;
|
|
52
53
|
} catch (t) {
|
|
53
54
|
throw this.state = y.Disposed, (typeof process > "u" || process.env.NODE_ENV !== "test") && console.error("Error in computation:", t), t;
|
|
54
55
|
} finally {
|
|
55
|
-
|
|
56
|
+
q.currentComputation = e;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
dispose() {
|
|
@@ -67,10 +68,10 @@ class Ae {
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
var Fe = Object.defineProperty, Be = (n, e, t) => e in n ? Fe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
71
|
+
var Fe = Object.defineProperty, Be = (n, e, t) => e in n ? Fe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ie = (n, e, t) => Be(n, typeof e != "symbol" ? e + "" : e, t);
|
|
71
72
|
let We = 0, Ue = class {
|
|
72
73
|
constructor(e) {
|
|
73
|
-
|
|
74
|
+
ie(this, "id"), ie(this, "observers", /* @__PURE__ */ new Set()), ie(this, "_value"), this.id = ++We, this._value = e;
|
|
74
75
|
}
|
|
75
76
|
/**
|
|
76
77
|
* Get the current value and track dependency
|
|
@@ -97,7 +98,7 @@ let We = 0, Ue = class {
|
|
|
97
98
|
*/
|
|
98
99
|
notify() {
|
|
99
100
|
for (const e of this.observers)
|
|
100
|
-
e.state !== y.Disposed && (e.state = y.Dirty,
|
|
101
|
+
e.state !== y.Disposed && (e.state = y.Dirty, Qe(e));
|
|
101
102
|
}
|
|
102
103
|
/**
|
|
103
104
|
* Remove an observer (cleanup)
|
|
@@ -119,10 +120,10 @@ let We = 0, Ue = class {
|
|
|
119
120
|
};
|
|
120
121
|
const X = /* @__PURE__ */ new Set();
|
|
121
122
|
let J = !1;
|
|
122
|
-
function
|
|
123
|
-
X.add(n), !J && queueMicrotask(
|
|
123
|
+
function Qe(n) {
|
|
124
|
+
X.add(n), !J && queueMicrotask(qe);
|
|
124
125
|
}
|
|
125
|
-
function
|
|
126
|
+
function qe() {
|
|
126
127
|
if (!J) {
|
|
127
128
|
J = !0;
|
|
128
129
|
try {
|
|
@@ -137,7 +138,7 @@ function Qe() {
|
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
|
-
function
|
|
141
|
+
function he(n) {
|
|
141
142
|
const e = new Ue(n), t = e.getValue.bind(e);
|
|
142
143
|
t.peek = e.peek.bind(e);
|
|
143
144
|
const s = e.set.bind(e);
|
|
@@ -457,7 +458,7 @@ function st(n, e) {
|
|
|
457
458
|
function B(n) {
|
|
458
459
|
return typeof n == "function" && Symbol.for("tachui.computed") in n;
|
|
459
460
|
}
|
|
460
|
-
const [rt, Ss] =
|
|
461
|
+
const [rt, Ss] = he("light");
|
|
461
462
|
st(() => {
|
|
462
463
|
const n = rt();
|
|
463
464
|
return n === "system" ? it() : n;
|
|
@@ -491,7 +492,7 @@ let at = class {
|
|
|
491
492
|
}
|
|
492
493
|
};
|
|
493
494
|
new at();
|
|
494
|
-
let
|
|
495
|
+
let ne = null;
|
|
495
496
|
const b = class b {
|
|
496
497
|
constructor() {
|
|
497
498
|
m(this, "instanceId");
|
|
@@ -780,9 +781,9 @@ m(b, "instanceCount", 0), m(b, "FORBIDDEN_NAMES", /* @__PURE__ */ new Set([
|
|
|
780
781
|
"toString",
|
|
781
782
|
"valueOf"
|
|
782
783
|
])), m(b, "NAME_PATTERN", /^[a-zA-Z_$][a-zA-Z0-9_$]*$/);
|
|
783
|
-
let
|
|
784
|
+
let de = b;
|
|
784
785
|
function lt() {
|
|
785
|
-
return
|
|
786
|
+
return ne || (ne = new de()), ne;
|
|
786
787
|
}
|
|
787
788
|
const x = lt();
|
|
788
789
|
function T(n, e = {}) {
|
|
@@ -1617,7 +1618,7 @@ const xe = class W {
|
|
|
1617
1618
|
Mt(xe, "instance");
|
|
1618
1619
|
let It = xe;
|
|
1619
1620
|
const xt = It.getInstance();
|
|
1620
|
-
var Tt = Object.defineProperty, $t = (n, e, t) => e in n ? Tt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
1621
|
+
var Tt = Object.defineProperty, $t = (n, e, t) => e in n ? Tt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, oe = (n, e, t) => $t(n, typeof e != "symbol" ? e + "" : e, t);
|
|
1621
1622
|
const Nt = /* @__PURE__ */ new Set([
|
|
1622
1623
|
"click",
|
|
1623
1624
|
"dblclick",
|
|
@@ -1646,7 +1647,7 @@ const Nt = /* @__PURE__ */ new Set([
|
|
|
1646
1647
|
]);
|
|
1647
1648
|
class Rt {
|
|
1648
1649
|
constructor() {
|
|
1649
|
-
|
|
1650
|
+
oe(this, "containerListeners", /* @__PURE__ */ new WeakMap()), oe(this, "elementHandlers", /* @__PURE__ */ new WeakMap()), oe(this, "handlerCounts", /* @__PURE__ */ new WeakMap());
|
|
1650
1651
|
}
|
|
1651
1652
|
/**
|
|
1652
1653
|
* Register an event handler with delegation
|
|
@@ -1756,9 +1757,9 @@ class Rt {
|
|
|
1756
1757
|
}), this.containerListeners.delete(e)), this.handlerCounts.delete(e);
|
|
1757
1758
|
}
|
|
1758
1759
|
}
|
|
1759
|
-
const
|
|
1760
|
-
var
|
|
1761
|
-
const
|
|
1760
|
+
const ae = new Rt();
|
|
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
|
+
const le = "__tachuiManagedComponentId";
|
|
1762
1763
|
class Te {
|
|
1763
1764
|
constructor() {
|
|
1764
1765
|
j(this, "nodeMap", /* @__PURE__ */ new WeakMap()), j(this, "cleanupMap", /* @__PURE__ */ new WeakMap()), j(this, "renderedNodes", /* @__PURE__ */ new Set()), j(this, "elementToContainer", /* @__PURE__ */ new WeakMap()), j(this, "metrics", {
|
|
@@ -1853,7 +1854,7 @@ class Te {
|
|
|
1853
1854
|
a === "key" || a === "children" || i && i[a] === l || this.applyProp(e, a, l, s);
|
|
1854
1855
|
});
|
|
1855
1856
|
const o = t.componentId;
|
|
1856
|
-
if (o ? (e.getAttribute("data-component-id") !== String(o) && (e.setAttribute("data-component-id", String(o)), this.recordAttributeWrite()), e[
|
|
1857
|
+
if (o ? (e.getAttribute("data-component-id") !== String(o) && (e.setAttribute("data-component-id", String(o)), this.recordAttributeWrite()), e[le] = !0) : e.hasAttribute("data-component-id") && e[le] === !0 && (e.removeAttribute("data-component-id"), this.recordAttributeRemoval(), e[le] = !1), t.__appliedProps = { ...r }, "componentMetadata" in t && t.componentMetadata) {
|
|
1857
1858
|
const a = t.componentMetadata;
|
|
1858
1859
|
if (a.overriddenTo && a.originalType && t.tag)
|
|
1859
1860
|
try {
|
|
@@ -2126,8 +2127,8 @@ class Te {
|
|
|
2126
2127
|
let i = t.slice(2).toLowerCase();
|
|
2127
2128
|
i === "focus" ? i = "focusin" : i === "blur" && (i = "focusout");
|
|
2128
2129
|
const o = r || this.elementToContainer.get(e);
|
|
2129
|
-
if (o &&
|
|
2130
|
-
const h =
|
|
2130
|
+
if (o && ae.shouldDelegate(i)) {
|
|
2131
|
+
const h = ae.register(
|
|
2131
2132
|
o,
|
|
2132
2133
|
e,
|
|
2133
2134
|
i,
|
|
@@ -2142,7 +2143,7 @@ class Te {
|
|
|
2142
2143
|
} catch (c) {
|
|
2143
2144
|
console.error(`Event handler error for ${t}:`, c);
|
|
2144
2145
|
}
|
|
2145
|
-
}, l =
|
|
2146
|
+
}, l = ae.shouldBePassive(i) ? { passive: !0 } : void 0;
|
|
2146
2147
|
e.addEventListener(i, a, l), this.addCleanup(e, () => {
|
|
2147
2148
|
e.removeEventListener(i, a, l);
|
|
2148
2149
|
});
|
|
@@ -2317,11 +2318,11 @@ function kt(n, e, ...t) {
|
|
|
2317
2318
|
};
|
|
2318
2319
|
return e && "componentMetadata" in e && (r.componentMetadata = e.componentMetadata), r;
|
|
2319
2320
|
}
|
|
2320
|
-
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,
|
|
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);
|
|
2321
2322
|
let Y = class ee {
|
|
2322
2323
|
// Required by ModifiableComponent interface
|
|
2323
2324
|
constructor(e, t, s = !0) {
|
|
2324
|
-
this.metadata = t,
|
|
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;
|
|
2325
2326
|
}
|
|
2326
2327
|
/**
|
|
2327
2328
|
* Render the concatenated component to DOM nodes (Enhanced - Phase 4.2)
|
|
@@ -2656,7 +2657,7 @@ function $(n) {
|
|
|
2656
2657
|
}
|
|
2657
2658
|
return n._modifiableComponent;
|
|
2658
2659
|
}
|
|
2659
|
-
function
|
|
2660
|
+
function ue(n) {
|
|
2660
2661
|
if (!$e())
|
|
2661
2662
|
return n;
|
|
2662
2663
|
const e = we.get(n);
|
|
@@ -2688,7 +2689,7 @@ function de(n) {
|
|
|
2688
2689
|
const f = u.build.bind(u);
|
|
2689
2690
|
return (...p) => {
|
|
2690
2691
|
const v = f(...p);
|
|
2691
|
-
return v && typeof v == "object" && !Array.isArray(v) ?
|
|
2692
|
+
return v && typeof v == "object" && !Array.isArray(v) ? ue(
|
|
2692
2693
|
v
|
|
2693
2694
|
) : v;
|
|
2694
2695
|
};
|
|
@@ -2729,8 +2730,8 @@ function de(n) {
|
|
|
2729
2730
|
throw new Error(
|
|
2730
2731
|
`Modifier '${String(l)}' is not callable`
|
|
2731
2732
|
);
|
|
2732
|
-
const
|
|
2733
|
-
return
|
|
2733
|
+
const re = fe.apply(E, k);
|
|
2734
|
+
return re && re !== E ? re : o;
|
|
2734
2735
|
};
|
|
2735
2736
|
t.set(l, v), s.set(
|
|
2736
2737
|
l,
|
|
@@ -2762,7 +2763,7 @@ function de(n) {
|
|
|
2762
2763
|
const c = Reflect.get(a, l, a);
|
|
2763
2764
|
return typeof c == "function" ? l === "clone" ? (...u) => {
|
|
2764
2765
|
const f = c.apply(a, u);
|
|
2765
|
-
return f && typeof f == "object" ?
|
|
2766
|
+
return f && typeof f == "object" ? ue(f) : f;
|
|
2766
2767
|
} : (r.has(l) || r.set(l, c.bind(a)), r.get(l)) : c;
|
|
2767
2768
|
}
|
|
2768
2769
|
},
|
|
@@ -2883,7 +2884,7 @@ class Wt {
|
|
|
2883
2884
|
function Ut(n, e) {
|
|
2884
2885
|
return new Wt(n, e);
|
|
2885
2886
|
}
|
|
2886
|
-
var
|
|
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
2888
|
const Gt = class U {
|
|
2888
2889
|
constructor() {
|
|
2889
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);
|
|
@@ -2983,12 +2984,12 @@ const Gt = class U {
|
|
|
2983
2984
|
};
|
|
2984
2985
|
H(Gt, "instance");
|
|
2985
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);
|
|
2986
|
-
const Ne = class
|
|
2987
|
+
const Ne = class Q {
|
|
2987
2988
|
constructor() {
|
|
2988
2989
|
M(this, "contexts", /* @__PURE__ */ new Map()), M(this, "providerStack", /* @__PURE__ */ new Map()), M(this, "currentComponent", null);
|
|
2989
2990
|
}
|
|
2990
2991
|
static getInstance() {
|
|
2991
|
-
return
|
|
2992
|
+
return Q.instance || (Q.instance = new Q()), Q.instance;
|
|
2992
2993
|
}
|
|
2993
2994
|
/**
|
|
2994
2995
|
* Set the current component context for provider resolution
|
|
@@ -3007,7 +3008,7 @@ const Ne = class q {
|
|
|
3007
3008
|
*/
|
|
3008
3009
|
registerProvider(e, t, s) {
|
|
3009
3010
|
this.providerStack.has(e) || this.providerStack.set(e, []);
|
|
3010
|
-
const r = this.providerStack.get(e), [i, o] =
|
|
3011
|
+
const r = this.providerStack.get(e), [i, o] = he(t), a = {
|
|
3011
3012
|
value: t,
|
|
3012
3013
|
signal: [i, o],
|
|
3013
3014
|
subscribers: /* @__PURE__ */ new Set(),
|
|
@@ -3025,7 +3026,7 @@ const Ne = class q {
|
|
|
3025
3026
|
const s = this.providerStack.get(e), r = s && s.length > 0 ? s[s.length - 1] : null;
|
|
3026
3027
|
if (r)
|
|
3027
3028
|
return this.currentComponent && (r.subscribers.add(this.currentComponent.id), this.currentComponent.consumers.add(e)), [r.signal[0], !0];
|
|
3028
|
-
const [i] =
|
|
3029
|
+
const [i] = he(t);
|
|
3029
3030
|
return [i, !1];
|
|
3030
3031
|
}
|
|
3031
3032
|
/**
|
|
@@ -3178,7 +3179,7 @@ class Jt {
|
|
|
3178
3179
|
new Jt();
|
|
3179
3180
|
new Xt();
|
|
3180
3181
|
new Te();
|
|
3181
|
-
var es = Object.defineProperty, ts = (n, e, t) => e in n ? es(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
3182
|
+
var es = Object.defineProperty, ts = (n, e, t) => e in n ? es(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, ce = (n, e, t) => ts(n, typeof e != "symbol" ? e + "" : e, t);
|
|
3182
3183
|
const ss = {
|
|
3183
3184
|
sanitizeClassNames: !0,
|
|
3184
3185
|
sanitizationRules: {
|
|
@@ -3193,7 +3194,7 @@ const ss = {
|
|
|
3193
3194
|
};
|
|
3194
3195
|
let rs = class {
|
|
3195
3196
|
constructor(e = {}) {
|
|
3196
|
-
|
|
3197
|
+
ce(this, "config"), ce(this, "classCache"), ce(this, "processingCache"), this.config = { ...ss, ...e };
|
|
3197
3198
|
const t = (() => {
|
|
3198
3199
|
try {
|
|
3199
3200
|
return typeof Map < "u" && typeof Map == "function";
|
|
@@ -3370,10 +3371,10 @@ let rs = class {
|
|
|
3370
3371
|
new rs();
|
|
3371
3372
|
function is(n, e, t = {}, ...s) {
|
|
3372
3373
|
const r = new n(e, ...s);
|
|
3373
|
-
return $e() && t.prewarmProxy !== !1 &&
|
|
3374
|
+
return $e() && t.prewarmProxy !== !1 && ue(r), r;
|
|
3374
3375
|
}
|
|
3375
3376
|
var ns = Object.defineProperty, os = (n, e, t) => e in n ? ns(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, D = (n, e, t) => os(n, typeof e != "symbol" ? e + "" : e, t);
|
|
3376
|
-
|
|
3377
|
+
class se extends ke {
|
|
3377
3378
|
constructor(e) {
|
|
3378
3379
|
super(), this.props = e, D(this, "type", "component"), D(this, "id"), D(this, "mounted", !1), D(this, "cleanup", []), D(this, "effectiveTag"), D(this, "validationResult"), this.id = `text-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
3379
3380
|
const t = this.resolveDefaultTag(), s = Le(
|
|
@@ -3435,21 +3436,21 @@ let as = class ue extends ke {
|
|
|
3435
3436
|
return e.deep ? this.deepClone() : this.shallowClone();
|
|
3436
3437
|
}
|
|
3437
3438
|
shallowClone() {
|
|
3438
|
-
const e = me(this.props), t = new
|
|
3439
|
+
const e = me(this.props), t = new se(e);
|
|
3439
3440
|
return ge(t), t;
|
|
3440
3441
|
}
|
|
3441
3442
|
deepClone() {
|
|
3442
3443
|
const e = me(this.props, {
|
|
3443
3444
|
deep: !0
|
|
3444
|
-
}), t = new
|
|
3445
|
+
}), t = new se(e);
|
|
3445
3446
|
return ge(t), t;
|
|
3446
3447
|
}
|
|
3447
|
-
}
|
|
3448
|
+
}
|
|
3448
3449
|
function Re(n, e) {
|
|
3449
3450
|
const t = {
|
|
3450
3451
|
content: n,
|
|
3451
3452
|
...e
|
|
3452
|
-
}, s = is(
|
|
3453
|
+
}, s = is(se, t);
|
|
3453
3454
|
return pe(s);
|
|
3454
3455
|
}
|
|
3455
3456
|
function z(n) {
|
|
@@ -3467,8 +3468,8 @@ Object.assign(Re, {
|
|
|
3467
3468
|
H5: z(5),
|
|
3468
3469
|
H6: z(6)
|
|
3469
3470
|
});
|
|
3470
|
-
var
|
|
3471
|
-
class
|
|
3471
|
+
var as = Object.defineProperty, ls = (n, e, t) => e in n ? as(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, g = (n, e, t) => ls(n, typeof e != "symbol" ? e + "" : e, t);
|
|
3472
|
+
class cs {
|
|
3472
3473
|
constructor(e) {
|
|
3473
3474
|
this.props = e, g(this, "type", "component"), g(this, "id"), g(this, "mounted", !1), g(this, "cleanup", []), g(this, "scrollElement", null), g(this, "contentOffsetSignal"), g(this, "setContentOffset"), g(this, "contentSizeSignal"), g(this, "setContentSize"), g(this, "setIsScrolling"), g(this, "pullToRefreshStateSignal"), g(this, "setPullToRefreshState"), g(this, "scrollEventThrottle"), g(this, "lastScrollTime", 0), g(this, "scrollVelocity", { x: 0, y: 0 }), g(this, "lastScrollOffset", { x: 0, y: 0 }), g(this, "pullStartY", 0), g(this, "isPulling", !1), g(this, "handleScroll", (h) => {
|
|
3474
3475
|
if (!this.scrollElement) return;
|
|
@@ -3803,11 +3804,11 @@ class hs {
|
|
|
3803
3804
|
return [c];
|
|
3804
3805
|
}
|
|
3805
3806
|
}
|
|
3806
|
-
function
|
|
3807
|
-
const e = new
|
|
3807
|
+
function hs(n = {}) {
|
|
3808
|
+
const e = new cs(n);
|
|
3808
3809
|
return pe(e);
|
|
3809
3810
|
}
|
|
3810
|
-
const
|
|
3811
|
+
const ds = `
|
|
3811
3812
|
@keyframes spin {
|
|
3812
3813
|
from { transform: rotate(0deg); }
|
|
3813
3814
|
to { transform: rotate(360deg); }
|
|
@@ -3815,10 +3816,10 @@ const us = `
|
|
|
3815
3816
|
`;
|
|
3816
3817
|
if (typeof document < "u") {
|
|
3817
3818
|
const n = document.createElement("style");
|
|
3818
|
-
n.textContent =
|
|
3819
|
+
n.textContent = ds, document.head.appendChild(n);
|
|
3819
3820
|
}
|
|
3820
3821
|
process.env.NODE_ENV;
|
|
3821
|
-
class
|
|
3822
|
+
class us {
|
|
3822
3823
|
constructor(e) {
|
|
3823
3824
|
m(this, "type", "component");
|
|
3824
3825
|
m(this, "id");
|
|
@@ -4239,11 +4240,11 @@ class ps {
|
|
|
4239
4240
|
children: s,
|
|
4240
4241
|
onScroll: this.handleListScroll
|
|
4241
4242
|
};
|
|
4242
|
-
return new
|
|
4243
|
+
return new hs(r).render();
|
|
4243
4244
|
}
|
|
4244
4245
|
}
|
|
4245
4246
|
function Z(n) {
|
|
4246
|
-
const e = new
|
|
4247
|
+
const e = new us(n);
|
|
4247
4248
|
return pe(e);
|
|
4248
4249
|
}
|
|
4249
4250
|
const As = {
|
|
@@ -4292,7 +4293,7 @@ const As = {
|
|
|
4292
4293
|
}
|
|
4293
4294
|
};
|
|
4294
4295
|
export {
|
|
4295
|
-
|
|
4296
|
+
us as E,
|
|
4296
4297
|
Z as L,
|
|
4297
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.
|
|
3
|
+
"version": "0.8.17",
|
|
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.
|
|
29
|
-
"@tachui/flow-control": "0.8.
|
|
30
|
-
"@tachui/mobile": "0.8.
|
|
31
|
-
"@tachui/primitives": "0.8.
|
|
28
|
+
"@tachui/core": "0.8.17",
|
|
29
|
+
"@tachui/flow-control": "0.8.17",
|
|
30
|
+
"@tachui/mobile": "0.8.17",
|
|
31
|
+
"@tachui/primitives": "0.8.17"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^20.0.0",
|