@tachui/data 0.8.18 → 0.8.20
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 +234 -124
- package/dist/list/List.d.ts +8 -0
- package/dist/list/List.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/List.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Pe = Object.defineProperty;
|
|
2
2
|
var Oe = (n, e, t) => e in n ? Pe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var m = (n, e, t) => Oe(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { withModifiers as pe, ComponentWithCSSClasses as
|
|
4
|
+
import { withModifiers as pe, ComponentWithCSSClasses as Le, processElementOverride as ke, h as S, text as De, clonePropsPreservingReactivity as me, resetLifecycleState as ge, createSignal as N, isSignal as w, createEffect as R } from "@tachui/core";
|
|
5
5
|
import "@tachui/core/reactive";
|
|
6
6
|
import "@tachui/modifiers";
|
|
7
7
|
const y = {
|
|
@@ -362,10 +362,10 @@ const Xe = class _ {
|
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
364
|
A(Xe, "instance", null);
|
|
365
|
-
var Je = Object.defineProperty, et = (n, e, t) => e in n ? Je(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
365
|
+
var Je = Object.defineProperty, et = (n, e, t) => e in n ? Je(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, k = (n, e, t) => et(n, typeof e != "symbol" ? e + "" : e, t);
|
|
366
366
|
let tt = class extends Ae {
|
|
367
367
|
constructor(e, t = {}, s = Ee()) {
|
|
368
|
-
super(e, s),
|
|
368
|
+
super(e, s), k(this, "type", "computed"), k(this, "priority"), k(this, "_hasValue", !1), k(this, "_error", null), k(this, "equalsFn"), k(this, "options"), this.priority = t.priority ?? G.Normal, this.equalsFn = t.equals ?? Ge, this.options = t;
|
|
369
369
|
}
|
|
370
370
|
/**
|
|
371
371
|
* Get the computed value, tracking dependency and lazily computing
|
|
@@ -819,11 +819,11 @@ const ut = /* @__PURE__ */ new Set([
|
|
|
819
819
|
"onSwipeLeft",
|
|
820
820
|
"onSwipeRight"
|
|
821
821
|
]);
|
|
822
|
-
function
|
|
822
|
+
function Ie() {
|
|
823
823
|
return x;
|
|
824
824
|
}
|
|
825
825
|
function d(n, ...e) {
|
|
826
|
-
const t =
|
|
826
|
+
const t = Ie().get(n);
|
|
827
827
|
if (t)
|
|
828
828
|
try {
|
|
829
829
|
return t.apply(null, e);
|
|
@@ -1312,7 +1312,7 @@ function ft(n) {
|
|
|
1312
1312
|
} : i;
|
|
1313
1313
|
}
|
|
1314
1314
|
if (typeof s == "string") {
|
|
1315
|
-
const i =
|
|
1315
|
+
const i = Ie();
|
|
1316
1316
|
if (s === "responsive")
|
|
1317
1317
|
return function(...o) {
|
|
1318
1318
|
const a = o[0];
|
|
@@ -1366,7 +1366,7 @@ process.env.NODE_ENV === "development" && console.log("📤 Created RegistryAdap
|
|
|
1366
1366
|
registryId: x.instanceId,
|
|
1367
1367
|
currentSize: x.list().length
|
|
1368
1368
|
});
|
|
1369
|
-
function
|
|
1369
|
+
function Me(n, e, t = {}, s = {}) {
|
|
1370
1370
|
if (!e.length) return n;
|
|
1371
1371
|
const r = {
|
|
1372
1372
|
componentId: t.componentId || "unknown",
|
|
@@ -1549,7 +1549,7 @@ let wt = {
|
|
|
1549
1549
|
function Ct() {
|
|
1550
1550
|
return { ...wt };
|
|
1551
1551
|
}
|
|
1552
|
-
var Et = Object.defineProperty, At = (n, e, t) => e in n ? Et(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
1552
|
+
var Et = Object.defineProperty, At = (n, e, t) => e in n ? Et(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, It = (n, e, t) => At(n, e + "", t);
|
|
1553
1553
|
const xe = class W {
|
|
1554
1554
|
static getInstance() {
|
|
1555
1555
|
return W.instance || (W.instance = new W()), W.instance;
|
|
@@ -1615,9 +1615,9 @@ const xe = class W {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
};
|
|
1618
|
-
|
|
1619
|
-
let
|
|
1620
|
-
const xt =
|
|
1618
|
+
It(xe, "instance");
|
|
1619
|
+
let Mt = xe;
|
|
1620
|
+
const xt = Mt.getInstance();
|
|
1621
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);
|
|
1622
1622
|
const Nt = /* @__PURE__ */ new Set([
|
|
1623
1623
|
"click",
|
|
@@ -2218,7 +2218,7 @@ class Te {
|
|
|
2218
2218
|
t.length > 0 && this.recordModifierApplications(t.length);
|
|
2219
2219
|
const r = s.componentInstance || s.componentMetadata && s.componentMetadata.componentInstance || s._originalComponent || // Use original component if available
|
|
2220
2220
|
s;
|
|
2221
|
-
|
|
2221
|
+
Me(
|
|
2222
2222
|
s,
|
|
2223
2223
|
t,
|
|
2224
2224
|
{
|
|
@@ -2308,7 +2308,7 @@ class Te {
|
|
|
2308
2308
|
}
|
|
2309
2309
|
}
|
|
2310
2310
|
new Te();
|
|
2311
|
-
function
|
|
2311
|
+
function Lt(n, e, ...t) {
|
|
2312
2312
|
const s = t.flat().filter((i) => i != null).map((i) => typeof i == "string" || typeof i == "number" ? { type: "text", text: String(i) } : i), r = {
|
|
2313
2313
|
type: "element",
|
|
2314
2314
|
tag: n,
|
|
@@ -2318,7 +2318,7 @@ function kt(n, e, ...t) {
|
|
|
2318
2318
|
};
|
|
2319
2319
|
return e && "componentMetadata" in e && (r.componentMetadata = e.componentMetadata), r;
|
|
2320
2320
|
}
|
|
2321
|
-
var
|
|
2321
|
+
var kt = Object.defineProperty, Dt = (n, e, t) => e in n ? kt(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) {
|
|
@@ -2330,7 +2330,7 @@ let Y = class ee {
|
|
|
2330
2330
|
render() {
|
|
2331
2331
|
const e = this.determineContainerClass(), t = this.buildAccessibilityLabel(), s = this.buildAccessibilityAttributes(), r = this.modifiers && this.modifiers.some((o) => o.type === "asHTML");
|
|
2332
2332
|
let i;
|
|
2333
|
-
return r ? i = this.renderSegmentsWithAsHTML() : i = this.segments.map((o) => o.render()).flat(), [
|
|
2333
|
+
return r ? i = this.renderSegmentsWithAsHTML() : i = this.segments.map((o) => o.render()).flat(), [Lt("span", {
|
|
2334
2334
|
class: `tachui-concatenated ${e}`,
|
|
2335
2335
|
...s,
|
|
2336
2336
|
"aria-label": t || void 0,
|
|
@@ -2602,7 +2602,7 @@ let Y = class ee {
|
|
|
2602
2602
|
componentInstance: s.component
|
|
2603
2603
|
// Pass the original component
|
|
2604
2604
|
};
|
|
2605
|
-
return
|
|
2605
|
+
return Me(e, t, r, { batch: !0 });
|
|
2606
2606
|
}
|
|
2607
2607
|
/**
|
|
2608
2608
|
* Generate comprehensive accessibility tree for this concatenated component
|
|
@@ -2724,13 +2724,13 @@ function ue(n) {
|
|
|
2724
2724
|
const p = f[l];
|
|
2725
2725
|
if (typeof p == "function") {
|
|
2726
2726
|
if (!t.has(l)) {
|
|
2727
|
-
const v = (...
|
|
2727
|
+
const v = (...L) => {
|
|
2728
2728
|
const C = $(a), E = C.modifierBuilder || C.modifier, fe = E?.[l];
|
|
2729
2729
|
if (typeof fe != "function")
|
|
2730
2730
|
throw new Error(
|
|
2731
2731
|
`Modifier '${String(l)}' is not callable`
|
|
2732
2732
|
);
|
|
2733
|
-
const re = fe.apply(E,
|
|
2733
|
+
const re = fe.apply(E, L);
|
|
2734
2734
|
return re && re !== E ? re : o;
|
|
2735
2735
|
};
|
|
2736
2736
|
t.set(l, v), s.set(
|
|
@@ -2746,7 +2746,7 @@ function ue(n) {
|
|
|
2746
2746
|
if (V.has(l)) {
|
|
2747
2747
|
if (!t.has(l)) {
|
|
2748
2748
|
const p = (...v) => {
|
|
2749
|
-
const
|
|
2749
|
+
const L = $(a), C = L.modifierBuilder || L.modifier, E = C?.[l];
|
|
2750
2750
|
if (typeof E != "function")
|
|
2751
2751
|
throw new Error(`Modifier '${String(l)}' is not callable`);
|
|
2752
2752
|
return E.apply(C, v), o;
|
|
@@ -2794,10 +2794,10 @@ function ue(n) {
|
|
|
2794
2794
|
}, o = new Proxy(n, i);
|
|
2795
2795
|
return we.set(n, o), o;
|
|
2796
2796
|
}
|
|
2797
|
-
var Ft = Object.defineProperty, Bt = (n, e, t) => e in n ? Ft(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
2797
|
+
var Ft = Object.defineProperty, Bt = (n, e, t) => e in n ? Ft(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, M = (n, e, t) => Bt(n, typeof e != "symbol" ? e + "" : e, t);
|
|
2798
2798
|
class Wt {
|
|
2799
2799
|
constructor(e, t) {
|
|
2800
|
-
|
|
2800
|
+
M(this, "id"), M(this, "parent"), M(this, "providers", /* @__PURE__ */ new Map()), M(this, "consumers", /* @__PURE__ */ new Set()), M(this, "cleanup", /* @__PURE__ */ new Set()), M(this, "stateStore", /* @__PURE__ */ new Map()), M(this, "bindingStore", /* @__PURE__ */ new Map()), M(this, "createdAt", Date.now()), M(this, "updateCount", 0), this.id = e, this.parent = t;
|
|
2801
2801
|
}
|
|
2802
2802
|
/**
|
|
2803
2803
|
* Store state value for a property
|
|
@@ -2983,10 +2983,10 @@ const Gt = class U {
|
|
|
2983
2983
|
}
|
|
2984
2984
|
};
|
|
2985
2985
|
H(Gt, "instance");
|
|
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,
|
|
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, I = (n, e, t) => Yt(n, typeof e != "symbol" ? e + "" : e, t);
|
|
2987
2987
|
const Ne = class Q {
|
|
2988
2988
|
constructor() {
|
|
2989
|
-
|
|
2989
|
+
I(this, "contexts", /* @__PURE__ */ new Map()), I(this, "providerStack", /* @__PURE__ */ new Map()), I(this, "currentComponent", null);
|
|
2990
2990
|
}
|
|
2991
2991
|
static getInstance() {
|
|
2992
2992
|
return Q.instance || (Q.instance = new Q()), Q.instance;
|
|
@@ -3052,10 +3052,10 @@ const Ne = class Q {
|
|
|
3052
3052
|
this.contexts.clear(), this.providerStack.clear(), this.currentComponent = null;
|
|
3053
3053
|
}
|
|
3054
3054
|
};
|
|
3055
|
-
|
|
3055
|
+
I(Ne, "instance");
|
|
3056
3056
|
let Zt = Ne, Xt = class {
|
|
3057
3057
|
constructor() {
|
|
3058
|
-
|
|
3058
|
+
I(this, "registry", Zt.getInstance());
|
|
3059
3059
|
}
|
|
3060
3060
|
/**
|
|
3061
3061
|
* Create a context provider component
|
|
@@ -3116,7 +3116,7 @@ let Zt = Ne, Xt = class {
|
|
|
3116
3116
|
};
|
|
3117
3117
|
class Jt {
|
|
3118
3118
|
constructor() {
|
|
3119
|
-
|
|
3119
|
+
I(this, "services", /* @__PURE__ */ new Map()), I(this, "factories", /* @__PURE__ */ new Map()), I(this, "singletons", /* @__PURE__ */ new Map()), I(this, "scoped", /* @__PURE__ */ new Map()), I(this, "dependencies", /* @__PURE__ */ new Map());
|
|
3120
3120
|
}
|
|
3121
3121
|
/**
|
|
3122
3122
|
* Register a service with the container
|
|
@@ -3374,10 +3374,10 @@ function is(n, e, t = {}, ...s) {
|
|
|
3374
3374
|
return $e() && t.prewarmProxy !== !1 && ue(r), r;
|
|
3375
3375
|
}
|
|
3376
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);
|
|
3377
|
-
class se extends
|
|
3377
|
+
class se extends Le {
|
|
3378
3378
|
constructor(e) {
|
|
3379
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)}`;
|
|
3380
|
-
const t = this.resolveDefaultTag(), s =
|
|
3380
|
+
const t = this.resolveDefaultTag(), s = ke(
|
|
3381
3381
|
"Text",
|
|
3382
3382
|
t,
|
|
3383
3383
|
this.props.element
|
|
@@ -3392,7 +3392,7 @@ class se extends ke {
|
|
|
3392
3392
|
*/
|
|
3393
3393
|
render() {
|
|
3394
3394
|
const e = ["tachui-text"], t = this.createClassString(this.props, e);
|
|
3395
|
-
return [
|
|
3395
|
+
return [S(
|
|
3396
3396
|
this.effectiveTag,
|
|
3397
3397
|
{
|
|
3398
3398
|
className: t,
|
|
@@ -3535,17 +3535,17 @@ class cs {
|
|
|
3535
3535
|
const [, o] = N(!1);
|
|
3536
3536
|
this.setIsScrolling = o;
|
|
3537
3537
|
const [a, l] = N("idle");
|
|
3538
|
-
if (this.pullToRefreshStateSignal = a, this.setPullToRefreshState = l, e.contentOffset &&
|
|
3538
|
+
if (this.pullToRefreshStateSignal = a, this.setPullToRefreshState = l, e.contentOffset && w(e.contentOffset)) {
|
|
3539
3539
|
this.setContentOffset(e.contentOffset());
|
|
3540
3540
|
const h = R(() => {
|
|
3541
|
-
e.contentOffset &&
|
|
3541
|
+
e.contentOffset && w(e.contentOffset) && this.setContentOffset(e.contentOffset());
|
|
3542
3542
|
});
|
|
3543
3543
|
this.cleanup.push(() => h.dispose());
|
|
3544
3544
|
}
|
|
3545
|
-
if (e.contentSize &&
|
|
3545
|
+
if (e.contentSize && w(e.contentSize)) {
|
|
3546
3546
|
this.setContentSize(e.contentSize());
|
|
3547
3547
|
const h = R(() => {
|
|
3548
|
-
e.contentSize &&
|
|
3548
|
+
e.contentSize && w(e.contentSize) && this.setContentSize(e.contentSize());
|
|
3549
3549
|
});
|
|
3550
3550
|
this.cleanup.push(() => h.dispose());
|
|
3551
3551
|
}
|
|
@@ -3684,7 +3684,7 @@ class cs {
|
|
|
3684
3684
|
cleanup: [],
|
|
3685
3685
|
props: {},
|
|
3686
3686
|
render: () => [
|
|
3687
|
-
|
|
3687
|
+
S(
|
|
3688
3688
|
"div",
|
|
3689
3689
|
{
|
|
3690
3690
|
style: {
|
|
@@ -3746,7 +3746,7 @@ class cs {
|
|
|
3746
3746
|
const u = r();
|
|
3747
3747
|
s = Array.isArray(u) ? u : [];
|
|
3748
3748
|
} else Array.isArray(e) && (s = e);
|
|
3749
|
-
const i =
|
|
3749
|
+
const i = S(
|
|
3750
3750
|
"div",
|
|
3751
3751
|
{
|
|
3752
3752
|
class: "tachui-scrollview-content",
|
|
@@ -3762,7 +3762,7 @@ class cs {
|
|
|
3762
3762
|
a.push(...f.filter((p) => p));
|
|
3763
3763
|
}
|
|
3764
3764
|
a.push(i);
|
|
3765
|
-
const { direction: l = "vertical" } = this.props, h = this.getOverflowStyles(l), c =
|
|
3765
|
+
const { direction: l = "vertical" } = this.props, h = this.getOverflowStyles(l), c = S(
|
|
3766
3766
|
"div",
|
|
3767
3767
|
{
|
|
3768
3768
|
id: this.id,
|
|
@@ -3780,20 +3780,20 @@ class cs {
|
|
|
3780
3780
|
const u = c.element;
|
|
3781
3781
|
this.scrollElement = u, this.applyScrollViewStyles(u), this.setupScrollHandlers(u), i.element && this.applyContentInsets(i.element);
|
|
3782
3782
|
const f = () => {
|
|
3783
|
-
const p =
|
|
3783
|
+
const p = w(t) ? t() : t;
|
|
3784
3784
|
u.style.overflow = p ? "auto" : "hidden", u.style.pointerEvents = p ? "auto" : "none";
|
|
3785
3785
|
};
|
|
3786
|
-
if (
|
|
3786
|
+
if (w(t)) {
|
|
3787
3787
|
const p = R(f);
|
|
3788
3788
|
this.cleanup.push(() => p.dispose());
|
|
3789
3789
|
} else
|
|
3790
3790
|
f();
|
|
3791
3791
|
if (typeof r == "function") {
|
|
3792
3792
|
const p = R(() => {
|
|
3793
|
-
const v = r(),
|
|
3793
|
+
const v = r(), L = (Array.isArray(v) ? v : []).flatMap((C) => C.render());
|
|
3794
3794
|
if (i.element) {
|
|
3795
3795
|
const C = i.element;
|
|
3796
|
-
C.innerHTML = "",
|
|
3796
|
+
C.innerHTML = "", L.forEach((E) => {
|
|
3797
3797
|
E && E.element && C.appendChild(E.element);
|
|
3798
3798
|
});
|
|
3799
3799
|
}
|
|
@@ -3844,7 +3844,7 @@ class us {
|
|
|
3844
3844
|
* Handle scroll events for virtual scrolling and infinite scroll
|
|
3845
3845
|
*/
|
|
3846
3846
|
m(this, "handleListScroll", (e) => {
|
|
3847
|
-
this.scrollOffset = e.offset.y, this.containerHeight = e.containerSize.height, this.props.virtualScrolling?.enabled && this.calculateVisibleRange(), this.props.onLoadMore && e.edges.bottom && (
|
|
3847
|
+
this.scrollOffset = e.offset.y, this.containerHeight = e.containerSize.height, this.props.virtualScrolling?.enabled && this.calculateVisibleRange(), this.props.onLoadMore && e.edges.bottom && (w(this.props.hasMore) ? this.props.hasMore() : this.props.hasMore) && !this.isLoadingSignal() && (this.setIsLoading(!0), this.props.onLoadMore().finally(() => {
|
|
3848
3848
|
this.setIsLoading(!1);
|
|
3849
3849
|
})), this.props.onScroll && this.props.onScroll(e);
|
|
3850
3850
|
});
|
|
@@ -3868,6 +3868,41 @@ class us {
|
|
|
3868
3868
|
flattenRenderResult(e) {
|
|
3869
3869
|
return Array.isArray(e) ? e : [e];
|
|
3870
3870
|
}
|
|
3871
|
+
/**
|
|
3872
|
+
* Wrap arbitrary component output in a semantic list row.
|
|
3873
|
+
*/
|
|
3874
|
+
wrapComponentInListItem(e, t, s, r = {}, i = {}) {
|
|
3875
|
+
const {
|
|
3876
|
+
class: o,
|
|
3877
|
+
style: a,
|
|
3878
|
+
...l
|
|
3879
|
+
} = i, h = typeof o == "string" && o.length > 0 ? `${s} ${o}` : s, c = a && typeof a == "object" ? a : {};
|
|
3880
|
+
return {
|
|
3881
|
+
type: "component",
|
|
3882
|
+
id: t,
|
|
3883
|
+
mounted: !1,
|
|
3884
|
+
cleanup: [],
|
|
3885
|
+
props: {},
|
|
3886
|
+
render: () => {
|
|
3887
|
+
const u = this.flattenRenderResult(e.render());
|
|
3888
|
+
return [
|
|
3889
|
+
S(
|
|
3890
|
+
"li",
|
|
3891
|
+
{
|
|
3892
|
+
class: h,
|
|
3893
|
+
style: {
|
|
3894
|
+
listStyle: "none",
|
|
3895
|
+
...r,
|
|
3896
|
+
...c
|
|
3897
|
+
},
|
|
3898
|
+
...l
|
|
3899
|
+
},
|
|
3900
|
+
...u
|
|
3901
|
+
)
|
|
3902
|
+
];
|
|
3903
|
+
}
|
|
3904
|
+
};
|
|
3905
|
+
}
|
|
3871
3906
|
/**
|
|
3872
3907
|
* Normalize item render output into safe DOM node payloads.
|
|
3873
3908
|
*
|
|
@@ -3882,39 +3917,39 @@ class us {
|
|
|
3882
3917
|
*/
|
|
3883
3918
|
resolveData() {
|
|
3884
3919
|
const { data: e } = this.props;
|
|
3885
|
-
return Array.isArray(e) ? e :
|
|
3920
|
+
return Array.isArray(e) ? e : w(e) ? e() : [];
|
|
3886
3921
|
}
|
|
3887
3922
|
/**
|
|
3888
3923
|
* Resolve sections from various input types
|
|
3889
3924
|
*/
|
|
3890
3925
|
resolveSections() {
|
|
3891
3926
|
const { sections: e } = this.props;
|
|
3892
|
-
return Array.isArray(e) ? e :
|
|
3927
|
+
return Array.isArray(e) ? e : w(e) ? e() : [];
|
|
3893
3928
|
}
|
|
3894
3929
|
/**
|
|
3895
3930
|
* Resolve loading state
|
|
3896
3931
|
*/
|
|
3897
3932
|
resolveIsLoading() {
|
|
3898
3933
|
const { isLoading: e } = this.props;
|
|
3899
|
-
return typeof e == "boolean" ? e :
|
|
3934
|
+
return typeof e == "boolean" ? e : w(e) ? e() : !1;
|
|
3900
3935
|
}
|
|
3901
3936
|
/**
|
|
3902
3937
|
* Set up reactive updates for data and state
|
|
3903
3938
|
*/
|
|
3904
3939
|
setupReactiveUpdates() {
|
|
3905
|
-
if (
|
|
3940
|
+
if (w(this.props.data)) {
|
|
3906
3941
|
const e = R(() => {
|
|
3907
3942
|
this.setData(this.resolveData()), this.updateVirtualScrolling();
|
|
3908
3943
|
});
|
|
3909
3944
|
this.cleanup.push(() => e.dispose());
|
|
3910
3945
|
}
|
|
3911
|
-
if (
|
|
3946
|
+
if (w(this.props.sections)) {
|
|
3912
3947
|
const e = R(() => {
|
|
3913
3948
|
this.setSections(this.resolveSections()), this.updateVirtualScrolling();
|
|
3914
3949
|
});
|
|
3915
3950
|
this.cleanup.push(() => e.dispose());
|
|
3916
3951
|
}
|
|
3917
|
-
if (
|
|
3952
|
+
if (w(this.props.isLoading)) {
|
|
3918
3953
|
const e = R(() => {
|
|
3919
3954
|
this.setIsLoading(this.resolveIsLoading());
|
|
3920
3955
|
});
|
|
@@ -3986,11 +4021,12 @@ class us {
|
|
|
3986
4021
|
cleanup: [],
|
|
3987
4022
|
props: {},
|
|
3988
4023
|
render: () => {
|
|
3989
|
-
const h =
|
|
3990
|
-
"
|
|
4024
|
+
const h = S(
|
|
4025
|
+
"li",
|
|
3991
4026
|
{
|
|
3992
4027
|
class: `tachui-list-item tachui-list-item-${i || "plain"}`,
|
|
3993
4028
|
style: {
|
|
4029
|
+
listStyle: "none",
|
|
3994
4030
|
display: "flex",
|
|
3995
4031
|
flexDirection: "column",
|
|
3996
4032
|
position: "relative",
|
|
@@ -4026,22 +4062,30 @@ class us {
|
|
|
4026
4062
|
/**
|
|
4027
4063
|
* Create list separator
|
|
4028
4064
|
*/
|
|
4029
|
-
createSeparator() {
|
|
4030
|
-
const { separator:
|
|
4031
|
-
return
|
|
4065
|
+
createSeparator(e = 0) {
|
|
4066
|
+
const { separator: t } = this.props;
|
|
4067
|
+
return t ? typeof t == "object" && "render" in t ? this.wrapComponentInListItem(
|
|
4068
|
+
t,
|
|
4069
|
+
`${this.id}-separator-custom-${e}`,
|
|
4070
|
+
"tachui-list-separator-item",
|
|
4071
|
+
{},
|
|
4072
|
+
{ "aria-hidden": "true" }
|
|
4073
|
+
) : {
|
|
4032
4074
|
type: "component",
|
|
4033
|
-
id: `${this.id}-separator`,
|
|
4075
|
+
id: `${this.id}-separator-${e}`,
|
|
4034
4076
|
mounted: !1,
|
|
4035
4077
|
cleanup: [],
|
|
4036
4078
|
props: {},
|
|
4037
4079
|
render: () => [
|
|
4038
|
-
|
|
4080
|
+
S("li", {
|
|
4039
4081
|
class: "tachui-list-separator",
|
|
4040
4082
|
style: {
|
|
4083
|
+
listStyle: "none",
|
|
4041
4084
|
height: "1px",
|
|
4042
4085
|
backgroundColor: "#e0e0e0",
|
|
4043
4086
|
margin: "0 16px"
|
|
4044
|
-
}
|
|
4087
|
+
},
|
|
4088
|
+
"aria-hidden": "true"
|
|
4045
4089
|
})
|
|
4046
4090
|
]
|
|
4047
4091
|
} : null;
|
|
@@ -4050,51 +4094,69 @@ class us {
|
|
|
4050
4094
|
* Create section header
|
|
4051
4095
|
*/
|
|
4052
4096
|
createSectionHeader(e, t) {
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4097
|
+
if (!e.header) return null;
|
|
4098
|
+
if (typeof e.header == "string")
|
|
4099
|
+
return {
|
|
4100
|
+
type: "component",
|
|
4101
|
+
id: `${this.id}-section-header-${t}`,
|
|
4102
|
+
mounted: !1,
|
|
4103
|
+
cleanup: [],
|
|
4104
|
+
props: {},
|
|
4105
|
+
render: () => {
|
|
4106
|
+
const r = S("li", {
|
|
4107
|
+
class: "tachui-list-section-header",
|
|
4108
|
+
style: {
|
|
4109
|
+
listStyle: "none",
|
|
4110
|
+
padding: "8px 16px",
|
|
4111
|
+
backgroundColor: "#f8f9fa",
|
|
4112
|
+
fontWeight: "600",
|
|
4113
|
+
fontSize: "14px",
|
|
4114
|
+
color: "#666",
|
|
4115
|
+
textTransform: "uppercase",
|
|
4116
|
+
letterSpacing: "0.5px"
|
|
4117
|
+
}
|
|
4118
|
+
}), i = r.element;
|
|
4119
|
+
return i && (i.textContent = e.header), [r];
|
|
4120
|
+
}
|
|
4121
|
+
};
|
|
4122
|
+
const s = this.props.renderSectionHeader ? this.props.renderSectionHeader(e, t) : e.header;
|
|
4123
|
+
return this.wrapComponentInListItem(
|
|
4124
|
+
s,
|
|
4125
|
+
`${this.id}-section-header-${t}`,
|
|
4126
|
+
"tachui-list-section-header-item"
|
|
4127
|
+
);
|
|
4075
4128
|
}
|
|
4076
4129
|
/**
|
|
4077
4130
|
* Create section footer
|
|
4078
4131
|
*/
|
|
4079
4132
|
createSectionFooter(e, t) {
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4133
|
+
if (!e.footer) return null;
|
|
4134
|
+
if (typeof e.footer == "string")
|
|
4135
|
+
return {
|
|
4136
|
+
type: "component",
|
|
4137
|
+
id: `${this.id}-section-footer-${t}`,
|
|
4138
|
+
mounted: !1,
|
|
4139
|
+
cleanup: [],
|
|
4140
|
+
props: {},
|
|
4141
|
+
render: () => {
|
|
4142
|
+
const r = S("li", {
|
|
4143
|
+
class: "tachui-list-section-footer",
|
|
4144
|
+
style: {
|
|
4145
|
+
listStyle: "none",
|
|
4146
|
+
padding: "8px 16px",
|
|
4147
|
+
fontSize: "12px",
|
|
4148
|
+
color: "#999"
|
|
4149
|
+
}
|
|
4150
|
+
}), i = r.element;
|
|
4151
|
+
return i && (i.textContent = e.footer), [r];
|
|
4152
|
+
}
|
|
4153
|
+
};
|
|
4154
|
+
const s = this.props.renderSectionFooter ? this.props.renderSectionFooter(e, t) : e.footer;
|
|
4155
|
+
return this.wrapComponentInListItem(
|
|
4156
|
+
s,
|
|
4157
|
+
`${this.id}-section-footer-${t}`,
|
|
4158
|
+
"tachui-list-section-footer-item"
|
|
4159
|
+
);
|
|
4098
4160
|
}
|
|
4099
4161
|
/**
|
|
4100
4162
|
* Create empty state component
|
|
@@ -4108,7 +4170,7 @@ class us {
|
|
|
4108
4170
|
cleanup: [],
|
|
4109
4171
|
props: {},
|
|
4110
4172
|
render: () => [
|
|
4111
|
-
|
|
4173
|
+
S(
|
|
4112
4174
|
"div",
|
|
4113
4175
|
{
|
|
4114
4176
|
class: "tachui-list-empty",
|
|
@@ -4139,7 +4201,7 @@ class us {
|
|
|
4139
4201
|
cleanup: [],
|
|
4140
4202
|
props: {},
|
|
4141
4203
|
render: () => [
|
|
4142
|
-
|
|
4204
|
+
S(
|
|
4143
4205
|
"div",
|
|
4144
4206
|
{
|
|
4145
4207
|
class: "tachui-list-loading",
|
|
@@ -4162,60 +4224,102 @@ class us {
|
|
|
4162
4224
|
renderVirtualContent() {
|
|
4163
4225
|
if (!this.props.virtualScrolling?.enabled)
|
|
4164
4226
|
return this.renderRegularContent();
|
|
4165
|
-
const e = this.dataSignal(), t = this.selectedItemsSignal(), s =
|
|
4227
|
+
const e = this.dataSignal(), t = this.selectedItemsSignal(), s = [];
|
|
4166
4228
|
if (this.visibleStartIndex > 0) {
|
|
4167
|
-
const
|
|
4168
|
-
|
|
4229
|
+
const r = this.virtualItems[this.visibleStartIndex]?.offset || 0;
|
|
4230
|
+
s.push({
|
|
4169
4231
|
type: "component",
|
|
4170
4232
|
id: `${this.id}-spacer-top`,
|
|
4171
4233
|
mounted: !1,
|
|
4172
4234
|
cleanup: [],
|
|
4173
4235
|
props: {},
|
|
4174
4236
|
render: () => [
|
|
4175
|
-
|
|
4176
|
-
|
|
4237
|
+
S("li", {
|
|
4238
|
+
class: "tachui-list-spacer tachui-list-spacer-top",
|
|
4239
|
+
style: { listStyle: "none", height: `${r}px` },
|
|
4240
|
+
"aria-hidden": "true"
|
|
4177
4241
|
})
|
|
4178
4242
|
]
|
|
4179
4243
|
});
|
|
4180
4244
|
}
|
|
4181
|
-
for (let
|
|
4182
|
-
const
|
|
4183
|
-
|
|
4245
|
+
for (let r = this.visibleStartIndex; r <= this.visibleEndIndex && r < e.length; r++) {
|
|
4246
|
+
const i = e[r], o = this.props.getItemId ? this.props.getItemId(i, r) : r, a = t.has(o);
|
|
4247
|
+
if (s.push(this.createListItem(i, r, a)), r < e.length - 1) {
|
|
4248
|
+
const l = this.createSeparator(r);
|
|
4249
|
+
if (!l) continue;
|
|
4250
|
+
s.push(l);
|
|
4251
|
+
}
|
|
4184
4252
|
}
|
|
4185
4253
|
if (this.visibleEndIndex < e.length - 1) {
|
|
4186
|
-
const
|
|
4187
|
-
|
|
4254
|
+
const r = this.totalHeight - (this.virtualItems[this.visibleEndIndex + 1]?.offset || 0);
|
|
4255
|
+
s.push({
|
|
4188
4256
|
type: "component",
|
|
4189
4257
|
id: `${this.id}-spacer-bottom`,
|
|
4190
4258
|
mounted: !1,
|
|
4191
4259
|
cleanup: [],
|
|
4192
4260
|
props: {},
|
|
4193
4261
|
render: () => [
|
|
4194
|
-
|
|
4195
|
-
|
|
4262
|
+
S("li", {
|
|
4263
|
+
class: "tachui-list-spacer tachui-list-spacer-bottom",
|
|
4264
|
+
style: { listStyle: "none", height: `${r}px` },
|
|
4265
|
+
"aria-hidden": "true"
|
|
4196
4266
|
})
|
|
4197
4267
|
]
|
|
4198
4268
|
});
|
|
4199
4269
|
}
|
|
4200
|
-
return
|
|
4270
|
+
return s;
|
|
4201
4271
|
}
|
|
4202
4272
|
/**
|
|
4203
4273
|
* Render regular (non-virtual) content
|
|
4204
4274
|
*/
|
|
4205
4275
|
renderRegularContent() {
|
|
4206
|
-
const e = this.dataSignal(), t = this.sectionsSignal(), s = this.selectedItemsSignal(), r =
|
|
4207
|
-
return t.length > 0 ? t.forEach((
|
|
4208
|
-
const
|
|
4209
|
-
|
|
4210
|
-
const
|
|
4211
|
-
|
|
4276
|
+
const e = this.dataSignal(), t = this.sectionsSignal(), s = this.selectedItemsSignal(), r = [];
|
|
4277
|
+
return t.length > 0 ? t.forEach((i, o) => {
|
|
4278
|
+
const a = this.createSectionHeader(i, o);
|
|
4279
|
+
a && r.push(a), i.items.forEach((h, c) => {
|
|
4280
|
+
const u = o * 1e3 + c, f = this.props.getItemId ? this.props.getItemId(h, u) : u, p = s.has(f);
|
|
4281
|
+
if (r.push(this.createListItem(h, u, p)), c < i.items.length - 1) {
|
|
4282
|
+
const v = this.createSeparator(u);
|
|
4283
|
+
v && r.push(v);
|
|
4284
|
+
}
|
|
4212
4285
|
});
|
|
4213
|
-
const
|
|
4214
|
-
|
|
4215
|
-
}) : e.forEach((
|
|
4216
|
-
const
|
|
4217
|
-
|
|
4218
|
-
|
|
4286
|
+
const l = this.createSectionFooter(i, o);
|
|
4287
|
+
l && r.push(l);
|
|
4288
|
+
}) : e.forEach((i, o) => {
|
|
4289
|
+
const a = this.props.getItemId ? this.props.getItemId(i, o) : o, l = s.has(a);
|
|
4290
|
+
if (r.push(this.createListItem(i, o, l)), o < e.length - 1) {
|
|
4291
|
+
const h = this.createSeparator(o);
|
|
4292
|
+
h && r.push(h);
|
|
4293
|
+
}
|
|
4294
|
+
}), r;
|
|
4295
|
+
}
|
|
4296
|
+
/**
|
|
4297
|
+
* Wrap list rows in a semantic list container.
|
|
4298
|
+
*/
|
|
4299
|
+
createListContainer(e) {
|
|
4300
|
+
return {
|
|
4301
|
+
type: "component",
|
|
4302
|
+
id: `${this.id}-content`,
|
|
4303
|
+
mounted: !1,
|
|
4304
|
+
cleanup: [],
|
|
4305
|
+
props: {},
|
|
4306
|
+
render: () => [
|
|
4307
|
+
S(
|
|
4308
|
+
"ul",
|
|
4309
|
+
{
|
|
4310
|
+
role: "list",
|
|
4311
|
+
class: `tachui-list-content tachui-list-content-${this.props.style || "plain"}`,
|
|
4312
|
+
style: {
|
|
4313
|
+
margin: "0",
|
|
4314
|
+
padding: "0",
|
|
4315
|
+
listStyle: "none",
|
|
4316
|
+
width: "100%"
|
|
4317
|
+
}
|
|
4318
|
+
},
|
|
4319
|
+
...e.flatMap((t) => t.render())
|
|
4320
|
+
)
|
|
4321
|
+
]
|
|
4322
|
+
};
|
|
4219
4323
|
}
|
|
4220
4324
|
/**
|
|
4221
4325
|
* Render the list component
|
|
@@ -4233,11 +4337,17 @@ class us {
|
|
|
4233
4337
|
const s = this.props.virtualScrolling?.enabled ? this.renderVirtualContent() : this.renderRegularContent();
|
|
4234
4338
|
if (t && e.length > 0) {
|
|
4235
4339
|
const o = this.createLoadingIndicator();
|
|
4236
|
-
o && s.push(
|
|
4340
|
+
o && s.push(
|
|
4341
|
+
this.wrapComponentInListItem(
|
|
4342
|
+
o,
|
|
4343
|
+
`${this.id}-loading-row`,
|
|
4344
|
+
"tachui-list-loading-row"
|
|
4345
|
+
)
|
|
4346
|
+
);
|
|
4237
4347
|
}
|
|
4238
4348
|
const r = {
|
|
4239
4349
|
...this.props,
|
|
4240
|
-
children: s,
|
|
4350
|
+
children: [this.createListContainer(s)],
|
|
4241
4351
|
onScroll: this.handleListScroll
|
|
4242
4352
|
};
|
|
4243
4353
|
return new hs(r).render();
|
package/dist/list/List.d.ts
CHANGED
|
@@ -102,6 +102,10 @@ export declare class EnhancedList<T = any> implements ComponentInstance<ListProp
|
|
|
102
102
|
* Helper to flatten render results
|
|
103
103
|
*/
|
|
104
104
|
private flattenRenderResult;
|
|
105
|
+
/**
|
|
106
|
+
* Wrap arbitrary component output in a semantic list row.
|
|
107
|
+
*/
|
|
108
|
+
private wrapComponentInListItem;
|
|
105
109
|
/**
|
|
106
110
|
* Normalize item render output into safe DOM node payloads.
|
|
107
111
|
*
|
|
@@ -173,6 +177,10 @@ export declare class EnhancedList<T = any> implements ComponentInstance<ListProp
|
|
|
173
177
|
* Render regular (non-virtual) content
|
|
174
178
|
*/
|
|
175
179
|
private renderRegularContent;
|
|
180
|
+
/**
|
|
181
|
+
* Wrap list rows in a semantic list container.
|
|
182
|
+
*/
|
|
183
|
+
private createListContainer;
|
|
176
184
|
/**
|
|
177
185
|
* Handle scroll events for virtual scrolling and infinite scroll
|
|
178
186
|
*/
|
package/dist/list/List.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/list/List.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAExE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AACrD,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAGrE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAA;AAE1D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;AAEjE;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,MAA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AC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAC7D;IASD;;OAEG;aACM,CAAC,QACF,CAAC,EAAE,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,cACX,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,iBAAiB,cAC7C,MAAM,OAAO,CAAC,IAAI,CAAC,WACtB,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAC3B,IAAI,CACT,SAAS,CAAC,CAAC,CAAC,EACZ,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,SAAS,CACjD,GACA,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG;QACrC,QAAQ,EAAE,eAAe,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAC7D;CASF,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachui/data",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.20",
|
|
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.20",
|
|
29
|
+
"@tachui/flow-control": "0.8.20",
|
|
30
|
+
"@tachui/mobile": "0.8.20",
|
|
31
|
+
"@tachui/primitives": "0.8.20"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^20.0.0",
|