@iota-uz/sdk 0.5.0 → 0.5.2
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/client-host/identity.d.ts +4 -4
- package/dist/client-host/identity.js +2 -2
- package/dist/lens/CascadePanel-DnwWRglV.js +574 -0
- package/dist/lens/{ChartHost-Bl2lxIqU.js → ChartHost-DohEf1-L.js} +2 -2
- package/dist/lens/{ChartPanel-CTIp_4YE.js → ChartPanel-WhiPcjdF.js} +3 -3
- package/dist/lens/{CoveragePanel-DZZWkjSv.js → CoveragePanel-BjmHpQIZ.js} +6 -6
- package/dist/lens/{GaugePanel-BcNdd_Wj.js → GaugePanel-CmQ4ShEf.js} +1 -1
- package/dist/lens/{MapPanel-6sI_Ei9L.js → MapPanel-B9q3sceX.js} +2 -2
- package/dist/lens/{MetricFlowPanel-LzqevSPs.js → MetricFlowPanel-HcjNwmDG.js} +6 -6
- package/dist/lens/{MetricHierarchyPanel-h6tJqRPg.js → MetricHierarchyPanel-D6EZ05aK.js} +2 -2
- package/dist/lens/{MetricRelationshipPanel-CgckUvvJ.js → MetricRelationshipPanel--MlnSeD0.js} +5 -5
- package/dist/lens/{PrintReport-DJv4Rm_U.js → PrintReport-CFq0u0ZA.js} +5 -5
- package/dist/lens/{TablePanel-Dh6bXlwM.js → TablePanel-8NER1r6f.js} +102 -102
- package/dist/lens/{adapter-zBDC8hbZ.js → adapter-Bl6H53g9.js} +5622 -5620
- package/dist/lens/breakpoints.d.ts +6 -4
- package/dist/lens/breakpoints.d.ts.map +1 -1
- package/dist/lens/charts/echarts/options.d.ts.map +1 -1
- package/dist/lens/contract/schemas.d.ts +1 -0
- package/dist/lens/contract/schemas.d.ts.map +1 -1
- package/dist/lens/contract/types.d.ts +2 -0
- package/dist/lens/contract/types.d.ts.map +1 -1
- package/dist/lens/controls/PeriodFilterControl.d.ts.map +1 -1
- package/dist/lens/controls/model.d.ts +11 -0
- package/dist/lens/controls/model.d.ts.map +1 -1
- package/dist/lens/icons.d.ts +9 -0
- package/dist/lens/icons.d.ts.map +1 -1
- package/dist/lens/{index-CspKnSQn.js → index-CIngYYVZ.js} +1 -1
- package/dist/lens/{index-C45DAO6w.js → index-DGLFNPl4.js} +3046 -2981
- package/dist/lens/index.js +1 -1
- package/dist/lens/{install-DyXK20dR.js → install-B6q-zRno.js} +1 -1
- package/dist/lens/{install-DT0AQkUj.js → install-BM-Kt5qH.js} +1 -1
- package/dist/lens/{install-3GLgv_LN.js → install-BdsfPB-W.js} +1 -1
- package/dist/lens/{install-B5oSx3pv.js → install-DNHJghsU.js} +1 -1
- package/dist/lens/{metricViews-QvoFHVdh.js → metricViews-CPJMPqcl.js} +1 -1
- package/dist/lens/panels/CascadePanel.d.ts +46 -6
- package/dist/lens/panels/CascadePanel.d.ts.map +1 -1
- package/dist/lens/panels/PanelFrame.d.ts.map +1 -1
- package/dist/lens/panels/TablePanel.d.ts.map +1 -1
- package/dist/lens/panels/WaterfallPlot.d.ts +7 -1
- package/dist/lens/panels/WaterfallPlot.d.ts.map +1 -1
- package/dist/lens/panels/data.d.ts +2 -0
- package/dist/lens/panels/data.d.ts.map +1 -1
- package/dist/lens/panels/panelFailure.d.ts +39 -0
- package/dist/lens/panels/panelFailure.d.ts.map +1 -0
- package/dist/lens/{prefetch-Dov5CBoH.js → prefetch-14qoPAtc.js} +2 -2
- package/dist/lens/{prefetchPanels-B7bIY0bM.js → prefetchPanels-C_-SP6Zx.js} +3 -3
- package/dist/lens/{print-CwcB0fug.js → print-DRljk_Xa.js} +1 -1
- package/dist/lens/runtime/provider.d.ts.map +1 -1
- package/dist/lens/runtime/query.d.ts +16 -2
- package/dist/lens/runtime/query.d.ts.map +1 -1
- package/dist/lens/{scales-DKkoQGtJ.js → scales-sHVLUC1f.js} +1 -1
- package/dist/lens/style.css +1 -1
- package/dist/sdk-identity.cjs +3 -3
- package/dist/sdk-identity.js +3 -3
- package/dist/sdk-identity.json +2 -2
- package/package.json +1 -1
- package/dist/lens/CascadePanel-DqOZFdR-.js +0 -512
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as n, jsxs as h, Fragment as D } from "react/jsx-runtime";
|
|
2
|
-
import { useState as G, useRef as ie, useMemo as ee, useEffect as re, useLayoutEffect as
|
|
3
|
-
import { o as
|
|
2
|
+
import { useState as G, useRef as ie, useMemo as ee, useEffect as re, useLayoutEffect as ct, createContext as dt, useContext as mt } from "react";
|
|
3
|
+
import { o as ht, a as He, ad as ft, u as K, l as bt, ae as ut, P as pt, af as Ve, Q as gt, ag as Ke, ah as de, ai as Xe, aj as et, ak as Nt, Z as _e, al as je, L as oe, d as yt, am as vt } from "./index-DGLFNPl4.js";
|
|
4
4
|
import "@iota-uz/sdk/client-host";
|
|
5
|
-
const
|
|
5
|
+
const wt = 5, xt = 7, kt = 21, St = 10, tt = dt(null);
|
|
6
6
|
function me(e, t) {
|
|
7
|
-
const l =
|
|
8
|
-
return
|
|
7
|
+
const l = mt(tt);
|
|
8
|
+
return vt(t, e ? l == null ? void 0 : l.get(e) : void 0);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Ct(e) {
|
|
11
11
|
if (e.type === "number") return { kind: "number", minorUnits: !1 };
|
|
12
12
|
if (e.type === "time") return { kind: "date", minorUnits: !1 };
|
|
13
13
|
if (e.type === "string") return { kind: "string", minorUnits: !1 };
|
|
@@ -19,7 +19,7 @@ function A(e) {
|
|
|
19
19
|
if (Number.isFinite(t)) return t;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ye(e, t) {
|
|
23
23
|
var l;
|
|
24
24
|
if (e == null) return "";
|
|
25
25
|
if (t === "number") {
|
|
@@ -32,29 +32,29 @@ function je(e, t) {
|
|
|
32
32
|
}
|
|
33
33
|
return t === "bool" ? e === !0 || e === 1 || e === "true" ? 1 : 0 : typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? String(e).toLocaleLowerCase() : ((l = JSON.stringify(e)) == null ? void 0 : l.toLocaleLowerCase()) ?? "";
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Lt(e, t) {
|
|
36
36
|
return typeof e == "number" && typeof t == "number" ? e - t : String(e).localeCompare(String(t), void 0, { numeric: !0, sensitivity: "base" });
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Je({ direction: e }) {
|
|
39
39
|
return /* @__PURE__ */ h(
|
|
40
40
|
"span",
|
|
41
41
|
{
|
|
42
42
|
"aria-hidden": "true",
|
|
43
43
|
className: `lens-table-sort${e ? ` lens-table-sort-${e}` : ""}`,
|
|
44
44
|
children: [
|
|
45
|
-
e === "ascending" && /* @__PURE__ */ n(
|
|
46
|
-
e === "descending" && /* @__PURE__ */ n(
|
|
47
|
-
!e && /* @__PURE__ */ n(
|
|
45
|
+
e === "ascending" && /* @__PURE__ */ n(Ve, { className: "lens-table-sort-up" }),
|
|
46
|
+
e === "descending" && /* @__PURE__ */ n(Ve, {}),
|
|
47
|
+
!e && /* @__PURE__ */ n(gt, { className: "lens-table-sort-neutral" })
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function H(e, t) {
|
|
53
53
|
var l;
|
|
54
54
|
return e.align ? e.align === "right" : e.cell.kind === "bar" || e.cell.kind === "underline" || e.cell.kind === "delta" ? !0 : e.field.trim() ? ((l = t.columns.find((r) => r.name === e.field)) == null ? void 0 : l.type) === "number" : !1;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
const r = me(e.name, t ??
|
|
56
|
+
function at({ column: e, format: t, value: l }) {
|
|
57
|
+
const r = me(e.name, t ?? Ct(e)), m = K();
|
|
58
58
|
if (e.type === "bool") {
|
|
59
59
|
if (l == null || l === "") return /* @__PURE__ */ n("span", { className: "lens-table-null", children: "—" });
|
|
60
60
|
const o = l === !0 || l === 1 || l === "true";
|
|
@@ -63,7 +63,7 @@ function tt({ column: e, format: t, value: l }) {
|
|
|
63
63
|
const s = r(l);
|
|
64
64
|
return e.type === "time" && s !== "—" ? /* @__PURE__ */ n("time", { dateTime: typeof l == "string" ? l : void 0, children: s }) : /* @__PURE__ */ n(D, { children: s });
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Rt({ field: e, format: t, value: l, max: r }) {
|
|
67
67
|
const m = me(e, t), s = A(l), o = r > 0 && s !== void 0 ? Math.max(0, Math.min(1, Math.abs(s) / r)) : 0, p = s !== void 0 && s < 0;
|
|
68
68
|
return /* @__PURE__ */ h("div", { className: "lens-table-bar", children: [
|
|
69
69
|
s !== void 0 && s !== 0 && /* @__PURE__ */ n("span", { className: "lens-table-bar-track", "aria-hidden": "true", children: /* @__PURE__ */ n(
|
|
@@ -76,7 +76,7 @@ function Lt({ field: e, format: t, value: l, max: r }) {
|
|
|
76
76
|
/* @__PURE__ */ n("span", { className: "lens-table-bar-value", children: m(l) })
|
|
77
77
|
] });
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Mt({ field: e, format: t, value: l }) {
|
|
80
80
|
const r = me(e, t), m = A(l), s = m !== void 0 && m < 0, o = m === void 0;
|
|
81
81
|
return /* @__PURE__ */ h("span", { className: "lens-table-underline", children: [
|
|
82
82
|
/* @__PURE__ */ n("span", { className: "lens-table-underline-value", children: r(l) }),
|
|
@@ -89,14 +89,14 @@ function Rt({ field: e, format: t, value: l }) {
|
|
|
89
89
|
)
|
|
90
90
|
] });
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Ft({
|
|
93
93
|
valueFormat: e,
|
|
94
94
|
value: t,
|
|
95
95
|
secondaryFormat: l,
|
|
96
96
|
secondaryValue: r,
|
|
97
97
|
stacked: m
|
|
98
98
|
}) {
|
|
99
|
-
const s = oe(e), o = oe(l), p =
|
|
99
|
+
const s = oe(e), o = oe(l), p = K(), { document: g } = He(), R = A(t), b = A(r), S = r != null && r !== "", u = !S && R !== void 0 && R !== 0, C = b !== void 0 && b < 0, M = b !== void 0 ? yt(b, g.meta.locale) : void 0, k = (S || u) && /* @__PURE__ */ n("span", { className: `lens-table-delta-pct${C ? " lens-table-delta-pct-negative" : ""}`, children: u ? p("panel.trend.new", "New") : M ?? /* @__PURE__ */ h(D, { children: [
|
|
100
100
|
b !== void 0 && b > 0 ? "+" : "",
|
|
101
101
|
o(r)
|
|
102
102
|
] }) });
|
|
@@ -108,14 +108,14 @@ function Mt({
|
|
|
108
108
|
k
|
|
109
109
|
] });
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Qe(e, t, l) {
|
|
112
112
|
if (!l) return "";
|
|
113
113
|
const r = e.columns.findIndex((s) => s.name === l);
|
|
114
114
|
if (r < 0) return "";
|
|
115
115
|
const m = t[r];
|
|
116
116
|
return typeof m == "string" ? m : "";
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function nt({
|
|
119
119
|
column: e,
|
|
120
120
|
frame: t,
|
|
121
121
|
row: l,
|
|
@@ -124,18 +124,18 @@ function at({
|
|
|
124
124
|
max: s
|
|
125
125
|
}) {
|
|
126
126
|
var E;
|
|
127
|
-
const o = de(e.action), p =
|
|
127
|
+
const o = de(e.action), p = K(), g = t.columns.findIndex((N) => N.name === e.field), R = ((E = t.columns[g]) == null ? void 0 : E.type) ?? "string", b = g >= 0 ? l[g] : void 0, S = r.format[e.field];
|
|
128
128
|
let u;
|
|
129
129
|
if (!e.field.trim() && e.text)
|
|
130
130
|
u = /* @__PURE__ */ n("span", { className: "lens-table-cell-text", children: e.text });
|
|
131
131
|
else if (e.cell.kind === "bar")
|
|
132
|
-
u = /* @__PURE__ */ n(
|
|
132
|
+
u = /* @__PURE__ */ n(Rt, { field: e.field, format: S, value: b, max: s });
|
|
133
133
|
else if (e.cell.kind === "underline")
|
|
134
|
-
u = /* @__PURE__ */ n(
|
|
134
|
+
u = /* @__PURE__ */ n(Mt, { field: e.field, format: S, value: b });
|
|
135
135
|
else if (e.cell.kind === "delta") {
|
|
136
136
|
const N = e.cell.secondaryField, P = N ? t.columns.findIndex((q) => q.name === N) : -1;
|
|
137
137
|
u = /* @__PURE__ */ n(
|
|
138
|
-
|
|
138
|
+
Ft,
|
|
139
139
|
{
|
|
140
140
|
valueFormat: S,
|
|
141
141
|
value: b,
|
|
@@ -145,10 +145,10 @@ function at({
|
|
|
145
145
|
}
|
|
146
146
|
);
|
|
147
147
|
} else
|
|
148
|
-
u = /* @__PURE__ */ n(
|
|
149
|
-
const C =
|
|
148
|
+
u = /* @__PURE__ */ n(at, { column: { name: e.field, type: R }, format: S, value: b });
|
|
149
|
+
const C = Qe(t, l, e.cell.toneField);
|
|
150
150
|
(C === "pos" || C === "warn" || C === "neg") && (u = /* @__PURE__ */ n("span", { className: `lens-table-tone lens-table-tone-${C}`, children: u }));
|
|
151
|
-
const M = e.action && o.available ?
|
|
151
|
+
const M = e.action && o.available ? Nt(e.action, t, l, m) : void 0;
|
|
152
152
|
if (e.clamp) {
|
|
153
153
|
const N = typeof b == "string" ? b : void 0, P = /* @__PURE__ */ h(D, { children: [
|
|
154
154
|
/* @__PURE__ */ n(
|
|
@@ -168,12 +168,12 @@ function at({
|
|
|
168
168
|
let F;
|
|
169
169
|
M && te ? F = /* @__PURE__ */ h("a", { className: "lens-table-cell-quiet", href: M, onClick: o.onClick(M), children: [
|
|
170
170
|
/* @__PURE__ */ n("span", { className: "lens-table-cell-quiet-value", children: u }),
|
|
171
|
-
/* @__PURE__ */ n("span", { "aria-hidden": "true", className: "lens-table-cell-quiet-arrow", children: /* @__PURE__ */ n(
|
|
171
|
+
/* @__PURE__ */ n("span", { "aria-hidden": "true", className: "lens-table-cell-quiet-arrow", children: /* @__PURE__ */ n(_e, {}) })
|
|
172
172
|
] }) : M ? F = /* @__PURE__ */ h("a", { className: `lens-table-cell-link${k ? " lens-table-cell-pill" : ""}`, href: M, onClick: o.onClick(M), children: [
|
|
173
173
|
u,
|
|
174
|
-
/* @__PURE__ */ n("span", { className: "lens-table-cell-link-arrow", children: k ? /* @__PURE__ */ n(
|
|
174
|
+
/* @__PURE__ */ n("span", { className: "lens-table-cell-link-arrow", children: k ? /* @__PURE__ */ n(_e, {}) : /* @__PURE__ */ n(et, {}) })
|
|
175
175
|
] }) : k ? F = /* @__PURE__ */ n("span", { className: "lens-table-cell-pill", children: u }) : F = u;
|
|
176
|
-
const V =
|
|
176
|
+
const V = Qe(t, l, e.badgeField), U = e.sampleSizeField ? t.columns.findIndex((N) => N.name === e.sampleSizeField) : -1, $ = U >= 0 ? A(l[U]) : void 0, B = (e.minSampleSize ?? 0) > 0 ? e.minSampleSize : wt;
|
|
177
177
|
if ($ !== void 0 && $ < B) {
|
|
178
178
|
const N = p(
|
|
179
179
|
"table.smallSample",
|
|
@@ -184,63 +184,63 @@ function at({
|
|
|
184
184
|
F,
|
|
185
185
|
/* @__PURE__ */ h("span", { className: "lens-table-small-sample-marker", children: [
|
|
186
186
|
p("table.smallSampleShort", "n<{minimum}", { minimum: B }),
|
|
187
|
-
/* @__PURE__ */ n(
|
|
187
|
+
/* @__PURE__ */ n(je, { inline: !0, text: N })
|
|
188
188
|
] })
|
|
189
189
|
] });
|
|
190
190
|
}
|
|
191
191
|
return V ? /* @__PURE__ */ h("span", { className: "lens-table-cell-badged", children: [
|
|
192
192
|
F,
|
|
193
|
-
/* @__PURE__ */ n("span", { className: "lens-table-cell-badge", title: V, children: /* @__PURE__ */ n(
|
|
193
|
+
/* @__PURE__ */ n("span", { className: "lens-table-cell-badge", title: V, children: /* @__PURE__ */ n(je, { inline: !0, text: V }) })
|
|
194
194
|
] }) : F;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function It(e, t) {
|
|
197
197
|
if (t.length <= 1) return 0.5;
|
|
198
198
|
const l = t.indexOf(e);
|
|
199
199
|
if (l < 0) return 0.5;
|
|
200
200
|
const r = t.lastIndexOf(e);
|
|
201
201
|
return (l + r) / 2 / (t.length - 1);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function lt(e, t, l, r) {
|
|
204
204
|
if (!e.heat) return;
|
|
205
205
|
const m = t.columns.findIndex((R) => R.name === e.field), s = m >= 0 ? A(l[m]) : void 0, o = r.get(e.field);
|
|
206
206
|
if (s === void 0 || !o) return;
|
|
207
|
-
const p =
|
|
208
|
-
return { backgroundColor: `color-mix(in srgb, var(--lens-accent-500) ${Math.round(
|
|
207
|
+
const p = It(s, o.sorted);
|
|
208
|
+
return { backgroundColor: `color-mix(in srgb, var(--lens-accent-500) ${Math.round(xt + Math.max(0, Math.min(1, p)) * kt)}%, var(--lens-bg-card))` };
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function Pt(e, t) {
|
|
211
211
|
const l = e.rows.map((o, p) => ({ row: o, index: p }));
|
|
212
212
|
if (!t) return l;
|
|
213
213
|
const r = e.columns.findIndex(({ name: o }) => o === t.column), m = e.columns[r];
|
|
214
214
|
if (!m) return l;
|
|
215
215
|
const s = t.direction === "ascending" ? 1 : -1;
|
|
216
216
|
return l.sort((o, p) => {
|
|
217
|
-
const g =
|
|
217
|
+
const g = Lt(Ye(o.row[r], m.type), Ye(p.row[r], m.type));
|
|
218
218
|
return g === 0 ? o.index - p.index : g * s;
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Ze({ panel: e, field: t, value: l }) {
|
|
222
222
|
const r = oe(e.format[t]);
|
|
223
223
|
return /* @__PURE__ */ n(D, { children: l === void 0 ? /* @__PURE__ */ n(ce, {}) : r(l) });
|
|
224
224
|
}
|
|
225
225
|
function ce() {
|
|
226
|
-
const e =
|
|
226
|
+
const e = K();
|
|
227
227
|
return /* @__PURE__ */ h("span", { className: "lens-table-summary-void", children: [
|
|
228
228
|
/* @__PURE__ */ n("span", { "aria-hidden": "true", children: "—" }),
|
|
229
229
|
/* @__PURE__ */ n("span", { className: "lens-sr-only", children: e("table.notSummable", "Not summable") })
|
|
230
230
|
] });
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
var
|
|
234
|
-
const t =
|
|
232
|
+
function Ot({ panel: e }) {
|
|
233
|
+
var xe, ke, Se, Ce, Le, Re, Me, Fe, Ie, Pe, Te, We, Ae, $e, Ee, qe, ze, Oe;
|
|
234
|
+
const t = ht(e.id), { document: l, navigation: r } = He(), m = ft(), s = K(), [o, p] = G(), [g, R] = G(""), [b, S] = G(() => globalThis.location.href), u = ie(null), [C, M] = G({ left: !1, right: !1 }), [k, te] = G(!1), F = ie(!1), [V, U] = G(((xe = t.page) == null ? void 0 : xe.number) ?? 1), $ = ie(l.snapshotId), B = r.panelId === e.id && r.path.length ? bt(l, r.path) : void 0, E = !!((ke = l == null ? void 0 : l.endpoints) != null && ke.panel && ((Se = e.table) != null && Se.searchable)), N = ((Ce = e.presentation) == null ? void 0 : Ce.sortable) !== !1 && (!t.page || E), P = ee(() => t.data ? Pt(t.data, !E && N ? o : void 0) : [], [t.data, E, o, N]), q = ((Le = t.page) == null ? void 0 : Le.number) ?? 1, he = (Re = t.page) == null ? void 0 : Re.size, fe = $.current === l.snapshotId ? V : 1, st = ((Me = t.page) == null ? void 0 : Me.hasNext) ?? !!(he && (((Fe = t.data) == null ? void 0 : Fe.rows.length) ?? 0) >= he);
|
|
235
235
|
re(() => {
|
|
236
236
|
const a = () => S(globalThis.location.href);
|
|
237
237
|
return globalThis.addEventListener("popstate", a), () => globalThis.removeEventListener("popstate", a);
|
|
238
238
|
}, []);
|
|
239
|
-
const
|
|
239
|
+
const X = ee(() => new URL(b), [b]), L = (Ie = e.columns) != null && Ie.length ? e.columns : void 0, _ = ee(() => {
|
|
240
240
|
const a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map();
|
|
241
241
|
if (!t.data) return { maxima: a, ranges: i, references: f };
|
|
242
242
|
for (const [c, y] of t.data.columns.entries()) {
|
|
243
|
-
const v = t.data.rows.map((w) => A(w[c])).filter((w) => w !== void 0), d =
|
|
243
|
+
const v = t.data.rows.map((w) => A(w[c])).filter((w) => w !== void 0), d = ut(v, e.format[y.name]);
|
|
244
244
|
d !== void 0 && f.set(y.name, d);
|
|
245
245
|
}
|
|
246
246
|
if (!L) return { maxima: a, ranges: i, references: f };
|
|
@@ -256,7 +256,7 @@ function zt({ panel: e }) {
|
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
258
|
return { maxima: a, ranges: i, references: f };
|
|
259
|
-
}, [L, t.data, e.format]), j = !!L && e.actions.some((a) => a.kind === "navigate_to_leaf" || a.kind === "open_drawer"), [be,
|
|
259
|
+
}, [L, t.data, e.format]), j = !!L && e.actions.some((a) => a.kind === "navigate_to_leaf" || a.kind === "open_drawer"), [be, it] = G({}), ue = (Pe = e.presentation) == null ? void 0 : Pe.rowGroupField, Y = L && t.data && ue ? t.data.columns.findIndex((a) => a.name === ue) : -1, rt = (a) => it((i) => ({ ...i, [a]: !i[a] })), ot = ee(() => {
|
|
260
260
|
if (Y < 0) return P.map((y) => ({ ...y, kind: "normal" }));
|
|
261
261
|
const a = [], i = [], f = /* @__PURE__ */ new Map();
|
|
262
262
|
for (const y of P) {
|
|
@@ -278,10 +278,10 @@ function zt({ panel: e }) {
|
|
|
278
278
|
if (c.push({ ...y, kind: "toggle", group: v, expanded: d }), d) for (const w of f.get(v) ?? []) c.push({ ...w, kind: "member" });
|
|
279
279
|
}
|
|
280
280
|
return c;
|
|
281
|
-
}, [P, Y, be]), pe = Y < 0 ? ((
|
|
281
|
+
}, [P, Y, be]), pe = Y < 0 ? ((Te = t.data) == null ? void 0 : Te.rows.length) ?? 0 : ((We = t.data) == null ? void 0 : We.rows.reduce((a, i) => {
|
|
282
282
|
const f = i[Y];
|
|
283
283
|
return typeof f == "string" && f.endsWith(":toggle") ? a : a + 1;
|
|
284
|
-
}, 0)) ?? 0;
|
|
284
|
+
}, 0)) ?? 0, ge = (((Ae = t.summary) == null ? void 0 : Ae.filteredRows) ?? pe) > St;
|
|
285
285
|
re(() => {
|
|
286
286
|
var a;
|
|
287
287
|
if ($.current !== l.snapshotId) {
|
|
@@ -289,7 +289,7 @@ function zt({ panel: e }) {
|
|
|
289
289
|
return;
|
|
290
290
|
}
|
|
291
291
|
(a = t.page) != null && a.number && U(t.page.number);
|
|
292
|
-
}, [l.snapshotId, (
|
|
292
|
+
}, [l.snapshotId, ($e = t.page) == null ? void 0 : $e.number]), re(() => {
|
|
293
293
|
var i;
|
|
294
294
|
if (!((i = e.table) != null && i.searchable)) return;
|
|
295
295
|
if (!F.current) {
|
|
@@ -300,27 +300,27 @@ function zt({ panel: e }) {
|
|
|
300
300
|
m.search(e.id, g);
|
|
301
301
|
}, l.theme.debounceMs ?? 500);
|
|
302
302
|
return () => globalThis.clearTimeout(a);
|
|
303
|
-
}, [l.theme.debounceMs, m, e.id, (
|
|
304
|
-
const
|
|
303
|
+
}, [l.theme.debounceMs, m, e.id, (Ee = e.table) == null ? void 0 : Ee.searchable, g]);
|
|
304
|
+
const Ne = (a) => {
|
|
305
305
|
U(a), m.loadPage(e.id, a);
|
|
306
|
-
},
|
|
306
|
+
}, ye = (a) => {
|
|
307
307
|
const i = (o == null ? void 0 : o.column) === a ? { column: a, direction: o.direction === "ascending" ? "descending" : "ascending" } : { column: a, direction: "ascending" };
|
|
308
308
|
p(i), E && m.sort(e.id, { field: a, direction: i.direction === "ascending" ? "asc" : "desc" });
|
|
309
|
-
},
|
|
310
|
-
|
|
309
|
+
}, ve = (a) => N && (o == null ? void 0 : o.column) === a ? o.direction : void 0, ae = L ? L.length + (j ? 1 : 0) : (((qe = t.data) == null ? void 0 : qe.columns.length) ?? 0) + 1;
|
|
310
|
+
ct(() => {
|
|
311
311
|
const a = u.current;
|
|
312
312
|
if (!a) return;
|
|
313
313
|
let i;
|
|
314
314
|
const f = () => {
|
|
315
|
-
var
|
|
316
|
-
const d = a.querySelector("thead th:first-child"), w = (d == null ? void 0 : d.offsetWidth) ?? 0, ne = Number.parseFloat(((
|
|
317
|
-
(
|
|
315
|
+
var Be, De;
|
|
316
|
+
const d = a.querySelector("thead th:first-child"), w = (d == null ? void 0 : d.offsetWidth) ?? 0, ne = Number.parseFloat(((Be = a.parentElement) == null ? void 0 : Be.style.getPropertyValue("--lens-table-sticky-width")) ?? "");
|
|
317
|
+
(De = a.parentElement) == null || De.style.setProperty("--lens-table-sticky-width", `${w}px`);
|
|
318
318
|
const z = a.querySelector("table"), J = (z == null ? void 0 : z.scrollWidth) || a.scrollWidth, T = Math.max(0, J - (k ? w : 0)) > a.clientWidth + 1;
|
|
319
319
|
te((I) => I === T ? I : T);
|
|
320
|
-
const O = Array.from(a.querySelectorAll("thead th:not(.lens-table-scroll-spacer):not(.lens-table-action-heading)")), Q = Math.max(0, J - a.clientWidth), W = O.at(-1), x = Math.max(0, ((W == null ? void 0 : W.offsetLeft) ?? 0) + ((W == null ? void 0 : W.offsetWidth) ?? 0) - a.clientWidth),
|
|
321
|
-
a.scrollLeft >
|
|
322
|
-
const
|
|
323
|
-
M((I) => I.left ===
|
|
320
|
+
const O = Array.from(a.querySelectorAll("thead th:not(.lens-table-scroll-spacer):not(.lens-table-action-heading)")), Q = Math.max(0, J - a.clientWidth), W = O.at(-1), x = Math.max(0, ((W == null ? void 0 : W.offsetLeft) ?? 0) + ((W == null ? void 0 : W.offsetWidth) ?? 0) - a.clientWidth), Z = O.slice(1).map((I) => Math.max(0, I.offsetLeft - w)).find((I) => I >= x - 1 && I <= Q + 1) ?? Math.min(x, Q);
|
|
321
|
+
a.scrollLeft > Z && (a.scrollLeft = Z);
|
|
322
|
+
const Ge = a.scrollLeft > 1, Ue = a.scrollLeft < Z - 1;
|
|
323
|
+
M((I) => I.left === Ge && I.right === Ue ? I : { left: Ge, right: Ue }), (!Number.isFinite(ne) || Math.abs(ne - w) > 0.5) && (i !== void 0 && globalThis.cancelAnimationFrame(i), i = globalThis.requestAnimationFrame(f));
|
|
324
324
|
};
|
|
325
325
|
f(), a.addEventListener("scroll", f, { passive: !0 });
|
|
326
326
|
const c = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(f);
|
|
@@ -331,15 +331,15 @@ function zt({ panel: e }) {
|
|
|
331
331
|
a.removeEventListener("scroll", f), c == null || c.disconnect(), i !== void 0 && globalThis.cancelAnimationFrame(i), (d = a.parentElement) == null || d.style.removeProperty("--lens-table-sticky-width");
|
|
332
332
|
};
|
|
333
333
|
}, [ae, t.data, k]);
|
|
334
|
-
const
|
|
334
|
+
const we = (a) => {
|
|
335
335
|
var Q, W;
|
|
336
336
|
const i = u.current;
|
|
337
337
|
if (!i) return;
|
|
338
|
-
const f = ((Q = i.querySelector("table")) == null ? void 0 : Q.scrollWidth) || i.scrollWidth, c = Array.from(i.querySelectorAll("thead th:not(.lens-table-scroll-spacer):not(.lens-table-action-heading)")), y = ((W = c[0]) == null ? void 0 : W.offsetWidth) ?? 0, v = Math.max(0, f - i.clientWidth), d = c.at(-1), w = Math.max(0, ((d == null ? void 0 : d.offsetLeft) ?? 0) + ((d == null ? void 0 : d.offsetWidth) ?? 0) - i.clientWidth), z = c.slice(1).map((x) => Math.max(0, x.offsetLeft - y)).find((x) => x >= w - 1 && x <= v + 1) ?? Math.min(w, v), J = c.slice(1).map((x) => Math.max(0, Math.min(z, x.offsetLeft - y))).filter((x, se,
|
|
338
|
+
const f = ((Q = i.querySelector("table")) == null ? void 0 : Q.scrollWidth) || i.scrollWidth, c = Array.from(i.querySelectorAll("thead th:not(.lens-table-scroll-spacer):not(.lens-table-action-heading)")), y = ((W = c[0]) == null ? void 0 : W.offsetWidth) ?? 0, v = Math.max(0, f - i.clientWidth), d = c.at(-1), w = Math.max(0, ((d == null ? void 0 : d.offsetLeft) ?? 0) + ((d == null ? void 0 : d.offsetWidth) ?? 0) - i.clientWidth), z = c.slice(1).map((x) => Math.max(0, x.offsetLeft - y)).find((x) => x >= w - 1 && x <= v + 1) ?? Math.min(w, v), J = c.slice(1).map((x) => Math.max(0, Math.min(z, x.offsetLeft - y))).filter((x, se, Z) => x > 0 && (se === 0 || x !== Z[se - 1])), le = i.scrollLeft + a * Math.max(120, Math.round(i.clientWidth * 0.8)), T = a > 0 ? J.filter((x) => x > i.scrollLeft + 1) : J.filter((x) => x < i.scrollLeft - 1), O = T.length === 0 ? a > 0 ? z : 0 : a > 0 ? T.find((x) => x >= le) ?? T[T.length - 1] : [...T].reverse().find((x) => x <= le) ?? T[0];
|
|
339
339
|
O !== void 0 && (i.scrollLeft = O, M({ left: O > 1, right: O < z - 1 }), i.focus({ preventScroll: !0 }));
|
|
340
340
|
};
|
|
341
|
-
return /* @__PURE__ */ n(
|
|
342
|
-
((
|
|
341
|
+
return /* @__PURE__ */ n(pt, { panel: e, frame: t, allowEmptyContent: !!t.page, children: t.data && /* @__PURE__ */ n(tt.Provider, { value: _.references, children: /* @__PURE__ */ h("div", { className: "lens-table-view", children: [
|
|
342
|
+
((ze = e.table) == null ? void 0 : ze.searchable) && /* @__PURE__ */ h("label", { className: "lens-table-search", children: [
|
|
343
343
|
/* @__PURE__ */ n("span", { className: "lens-sr-only", children: s("table.search", "Search table") }),
|
|
344
344
|
/* @__PURE__ */ n(
|
|
345
345
|
"input",
|
|
@@ -376,12 +376,12 @@ function zt({ panel: e }) {
|
|
|
376
376
|
"th",
|
|
377
377
|
{
|
|
378
378
|
"aria-sort": f ? (o == null ? void 0 : o.column) === a.field ? o.direction : "none" : void 0,
|
|
379
|
-
className:
|
|
379
|
+
className: H(a, t.data) ? "lens-table-col-right" : void 0,
|
|
380
380
|
scope: "col",
|
|
381
381
|
style: a.widthPx ? { minWidth: `${a.widthPx}px` } : void 0,
|
|
382
|
-
children: f ? /* @__PURE__ */ h("button", { type: "button", onClick: () =>
|
|
382
|
+
children: f ? /* @__PURE__ */ h("button", { type: "button", onClick: () => ye(a.field), children: [
|
|
383
383
|
/* @__PURE__ */ n("span", { children: a.label }),
|
|
384
|
-
/* @__PURE__ */ n(
|
|
384
|
+
/* @__PURE__ */ n(Je, { direction: ve(a.field) })
|
|
385
385
|
] }) : /* @__PURE__ */ n("span", { className: "lens-table-heading-static", children: a.label })
|
|
386
386
|
},
|
|
387
387
|
a.field || `column-${i}`
|
|
@@ -395,9 +395,9 @@ function zt({ panel: e }) {
|
|
|
395
395
|
"aria-sort": N ? (o == null ? void 0 : o.column) === a.name ? o.direction : "none" : void 0,
|
|
396
396
|
className: a.type === "number" || a.type === "time" ? "lens-table-col-right" : void 0,
|
|
397
397
|
scope: "col",
|
|
398
|
-
children: N ? /* @__PURE__ */ h("button", { type: "button", onClick: () =>
|
|
398
|
+
children: N ? /* @__PURE__ */ h("button", { type: "button", onClick: () => ye(a.name), children: [
|
|
399
399
|
/* @__PURE__ */ n("span", { children: a.name }),
|
|
400
|
-
/* @__PURE__ */ n(
|
|
400
|
+
/* @__PURE__ */ n(Je, { direction: ve(a.name) })
|
|
401
401
|
] }) : /* @__PURE__ */ n("span", { className: "lens-table-heading-static", children: a.name })
|
|
402
402
|
},
|
|
403
403
|
a.name
|
|
@@ -409,18 +409,18 @@ function zt({ panel: e }) {
|
|
|
409
409
|
/* @__PURE__ */ n("tbody", { children: P.length === 0 ? /* @__PURE__ */ h("tr", { children: [
|
|
410
410
|
/* @__PURE__ */ n("td", { className: "lens-table-empty", colSpan: ae, children: s("table.emptyPage", "No records on this page") }),
|
|
411
411
|
k && /* @__PURE__ */ n("td", { "aria-hidden": "true", className: "lens-table-scroll-spacer" })
|
|
412
|
-
] }) :
|
|
413
|
-
|
|
412
|
+
] }) : ot.map((a) => L ? a.kind === "toggle" ? /* @__PURE__ */ n(
|
|
413
|
+
Tt,
|
|
414
414
|
{
|
|
415
415
|
columns: L,
|
|
416
416
|
frame: t.data,
|
|
417
417
|
row: a.row,
|
|
418
418
|
panel: e,
|
|
419
|
-
location:
|
|
419
|
+
location: X,
|
|
420
420
|
columnMaxima: _.maxima,
|
|
421
421
|
columnRanges: _.ranges,
|
|
422
422
|
expanded: a.expanded,
|
|
423
|
-
onToggle: () =>
|
|
423
|
+
onToggle: () => rt(a.group),
|
|
424
424
|
trailingSpacer: k
|
|
425
425
|
},
|
|
426
426
|
`toggle-${a.group}`
|
|
@@ -428,19 +428,19 @@ function zt({ panel: e }) {
|
|
|
428
428
|
L.map((i, f) => /* @__PURE__ */ n(
|
|
429
429
|
"td",
|
|
430
430
|
{
|
|
431
|
-
className: `lens-table-cell${
|
|
431
|
+
className: `lens-table-cell${H(i, t.data) ? " lens-table-col-right" : ""}`,
|
|
432
432
|
style: {
|
|
433
433
|
...i.widthPx ? { minWidth: `${i.widthPx}px` } : {},
|
|
434
|
-
...
|
|
434
|
+
...lt(i, t.data, a.row, _.ranges)
|
|
435
435
|
},
|
|
436
436
|
children: /* @__PURE__ */ n(
|
|
437
|
-
|
|
437
|
+
nt,
|
|
438
438
|
{
|
|
439
439
|
column: i,
|
|
440
440
|
frame: t.data,
|
|
441
441
|
row: a.row,
|
|
442
442
|
panel: e,
|
|
443
|
-
location:
|
|
443
|
+
location: X,
|
|
444
444
|
max: _.maxima.get(i.field) ?? 0
|
|
445
445
|
}
|
|
446
446
|
)
|
|
@@ -448,25 +448,25 @@ function zt({ panel: e }) {
|
|
|
448
448
|
i.field || `column-${f}`
|
|
449
449
|
)),
|
|
450
450
|
j && /* @__PURE__ */ n("td", { className: "lens-table-action-cell", children: /* @__PURE__ */ n(
|
|
451
|
-
|
|
451
|
+
Wt,
|
|
452
452
|
{
|
|
453
453
|
frame: t.data,
|
|
454
454
|
row: a.row,
|
|
455
455
|
panel: e,
|
|
456
|
-
location:
|
|
456
|
+
location: X,
|
|
457
457
|
level: B,
|
|
458
458
|
label: s("table.openRecord", "Open record")
|
|
459
459
|
}
|
|
460
460
|
) }),
|
|
461
461
|
k && /* @__PURE__ */ n("td", { "aria-hidden": "true", className: "lens-table-scroll-spacer" })
|
|
462
462
|
] }, a.index) : /* @__PURE__ */ n(
|
|
463
|
-
|
|
463
|
+
At,
|
|
464
464
|
{
|
|
465
465
|
frame: t.data,
|
|
466
466
|
row: a.row,
|
|
467
467
|
index: a.index,
|
|
468
468
|
panel: e,
|
|
469
|
-
location:
|
|
469
|
+
location: X,
|
|
470
470
|
level: B,
|
|
471
471
|
openRecordLabel: s("table.openRecord", "Open record"),
|
|
472
472
|
trailingSpacer: k
|
|
@@ -480,8 +480,8 @@ function zt({ panel: e }) {
|
|
|
480
480
|
return /* @__PURE__ */ n(
|
|
481
481
|
"td",
|
|
482
482
|
{
|
|
483
|
-
className: `lens-table-cell${
|
|
484
|
-
children: i === 0 ? (f = t.summary) != null && f.fullValues ? s("table.filteredTotal", "Filtered total") : s("table.total", "Total") : a.total === !0 ? /* @__PURE__ */ n(
|
|
483
|
+
className: `lens-table-cell${H(a, t.data) ? " lens-table-col-right" : ""}`,
|
|
484
|
+
children: i === 0 ? (f = t.summary) != null && f.fullValues ? s("table.filteredTotal", "Filtered total") : s("table.total", "Total") : a.total === !0 ? /* @__PURE__ */ n(Ze, { panel: e, field: a.field, value: (c = t.summary) == null ? void 0 : c.values[a.field] }) : /* @__PURE__ */ n(ce, {})
|
|
485
485
|
},
|
|
486
486
|
a.field || `summary-${i}`
|
|
487
487
|
);
|
|
@@ -492,7 +492,7 @@ function zt({ panel: e }) {
|
|
|
492
492
|
t.summary.fullValues && /* @__PURE__ */ h("tr", { className: "lens-table-summary-all", children: [
|
|
493
493
|
L.map((a, i) => {
|
|
494
494
|
var f, c;
|
|
495
|
-
return /* @__PURE__ */ n("td", { className: `lens-table-cell${
|
|
495
|
+
return /* @__PURE__ */ n("td", { className: `lens-table-cell${H(a, t.data) ? " lens-table-col-right" : ""}`, children: i === 0 ? s("table.allRowsTotal", "All rows total") : a.total === !0 ? /* @__PURE__ */ n(Ze, { panel: e, field: a.field, value: (c = (f = t.summary) == null ? void 0 : f.fullValues) == null ? void 0 : c[a.field] }) : /* @__PURE__ */ n(ce, {}) }, a.field || `full-summary-${i}`);
|
|
496
496
|
}),
|
|
497
497
|
j && /* @__PURE__ */ n("td", {}),
|
|
498
498
|
k && /* @__PURE__ */ n("td", { "aria-hidden": "true", className: "lens-table-scroll-spacer" })
|
|
@@ -507,7 +507,7 @@ function zt({ panel: e }) {
|
|
|
507
507
|
"aria-label": s("table.scrollLeft", "Scroll table left"),
|
|
508
508
|
className: "lens-table-overflow-edge lens-table-overflow-edge-left",
|
|
509
509
|
disabled: !C.left,
|
|
510
|
-
onClick: () =>
|
|
510
|
+
onClick: () => we(-1),
|
|
511
511
|
type: "button"
|
|
512
512
|
}
|
|
513
513
|
),
|
|
@@ -517,31 +517,31 @@ function zt({ panel: e }) {
|
|
|
517
517
|
"aria-label": s("table.scrollRight", "Scroll table right"),
|
|
518
518
|
className: "lens-table-overflow-edge lens-table-overflow-edge-right",
|
|
519
519
|
disabled: !C.right,
|
|
520
|
-
onClick: () =>
|
|
520
|
+
onClick: () => we(1),
|
|
521
521
|
type: "button"
|
|
522
522
|
}
|
|
523
523
|
)
|
|
524
524
|
]
|
|
525
525
|
}
|
|
526
526
|
),
|
|
527
|
-
/* @__PURE__ */ h("footer", { className: "lens-table-footer", children: [
|
|
528
|
-
/* @__PURE__ */ n("span", { className: "lens-table-footer-notes", children:
|
|
527
|
+
(ge || t.page) && /* @__PURE__ */ h("footer", { className: "lens-table-footer", children: [
|
|
528
|
+
/* @__PURE__ */ n("span", { className: "lens-table-footer-notes", children: ge && /* @__PURE__ */ n("span", { className: "lens-table-rowcount", children: t.summary && t.summary.totalRows > t.summary.filteredRows ? s("table.filteredRowCount", "{filtered} of {total} rows", { filtered: t.summary.filteredRows, total: t.summary.totalRows }) : s("table.rowCount", "{count} rows", { count: ((Oe = t.summary) == null ? void 0 : Oe.filteredRows) ?? pe }) }) }),
|
|
529
529
|
t.page && /* @__PURE__ */ h(
|
|
530
530
|
"nav",
|
|
531
531
|
{
|
|
532
532
|
"aria-label": s("table.pages", "{name} pages", { name: e.title }),
|
|
533
533
|
className: "lens-table-pagination",
|
|
534
534
|
children: [
|
|
535
|
-
/* @__PURE__ */ n("button", { disabled: t.isLoading || q <= 1, onClick: () =>
|
|
535
|
+
/* @__PURE__ */ n("button", { disabled: t.isLoading || q <= 1, onClick: () => Ne(q - 1), type: "button", children: s("table.previous", "Previous") }),
|
|
536
536
|
/* @__PURE__ */ n("span", { "aria-live": "polite", children: t.isLoading && fe !== q ? s("table.loadingPage", "Loading page {n}", { n: fe }) : s("table.page", "Page {n}", { n: q }) }),
|
|
537
|
-
/* @__PURE__ */ n("button", { disabled: t.isLoading || !
|
|
537
|
+
/* @__PURE__ */ n("button", { disabled: t.isLoading || !st, onClick: () => Ne(q + 1), type: "button", children: s("table.next", "Next") })
|
|
538
538
|
]
|
|
539
539
|
}
|
|
540
540
|
)
|
|
541
541
|
] })
|
|
542
542
|
] }) }) });
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Tt({
|
|
545
545
|
columns: e,
|
|
546
546
|
frame: t,
|
|
547
547
|
row: l,
|
|
@@ -559,16 +559,16 @@ function Pt({
|
|
|
559
559
|
return /* @__PURE__ */ n(
|
|
560
560
|
"td",
|
|
561
561
|
{
|
|
562
|
-
className: `lens-table-cell${
|
|
562
|
+
className: `lens-table-cell${H(b, t) ? " lens-table-col-right" : ""}`,
|
|
563
563
|
style: {
|
|
564
564
|
...b.widthPx ? { minWidth: `${b.widthPx}px` } : {},
|
|
565
|
-
...
|
|
565
|
+
...lt(b, t, l, o)
|
|
566
566
|
},
|
|
567
567
|
children: S === 0 ? /* @__PURE__ */ h("button", { "aria-expanded": p, className: "lens-table-group-toggle-btn", onClick: g, type: "button", children: [
|
|
568
|
-
/* @__PURE__ */ n("span", { "aria-hidden": "true", className: `lens-table-group-chevron${p ? " lens-table-group-chevron-open" : ""}`, children: /* @__PURE__ */ n(
|
|
568
|
+
/* @__PURE__ */ n("span", { "aria-hidden": "true", className: `lens-table-group-chevron${p ? " lens-table-group-chevron-open" : ""}`, children: /* @__PURE__ */ n(et, {}) }),
|
|
569
569
|
/* @__PURE__ */ n("span", { children: M })
|
|
570
570
|
] }) : /* @__PURE__ */ n(
|
|
571
|
-
|
|
571
|
+
nt,
|
|
572
572
|
{
|
|
573
573
|
column: b,
|
|
574
574
|
frame: t,
|
|
@@ -585,7 +585,7 @@ function Pt({
|
|
|
585
585
|
R && /* @__PURE__ */ n("td", { "aria-hidden": "true", className: "lens-table-scroll-spacer" })
|
|
586
586
|
] });
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Wt({
|
|
589
589
|
frame: e,
|
|
590
590
|
row: t,
|
|
591
591
|
panel: l,
|
|
@@ -596,7 +596,7 @@ function Tt({
|
|
|
596
596
|
const o = Ke(l, e, t, m), p = de(o), g = p.available ? Xe(l, e, t, r, m) : void 0;
|
|
597
597
|
return g ? /* @__PURE__ */ n("a", { className: "lens-leaf-action", href: g, onClick: p.onClick(g), children: s }) : null;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function At({
|
|
600
600
|
frame: e,
|
|
601
601
|
row: t,
|
|
602
602
|
index: l,
|
|
@@ -608,12 +608,12 @@ function Wt({
|
|
|
608
608
|
}) {
|
|
609
609
|
const g = Ke(r, e, t, s), R = de(g), b = R.available ? Xe(r, e, t, m, s) : void 0;
|
|
610
610
|
return /* @__PURE__ */ h("tr", { children: [
|
|
611
|
-
e.columns.map((S, u) => /* @__PURE__ */ n("td", { className: `lens-table-cell-${S.type}`, children: /* @__PURE__ */ n(
|
|
611
|
+
e.columns.map((S, u) => /* @__PURE__ */ n("td", { className: `lens-table-cell-${S.type}`, children: /* @__PURE__ */ n(at, { column: S, format: r.format[S.name], value: t[u] }) }, S.name)),
|
|
612
612
|
/* @__PURE__ */ n("td", { className: "lens-table-action-cell", children: b && /* @__PURE__ */ n("a", { className: "lens-leaf-action", href: b, onClick: R.onClick(b), children: o }) }),
|
|
613
613
|
p && /* @__PURE__ */ n("td", { "aria-hidden": "true", className: "lens-table-scroll-spacer" })
|
|
614
614
|
] }, l);
|
|
615
615
|
}
|
|
616
616
|
export {
|
|
617
|
-
|
|
618
|
-
|
|
617
|
+
Ot as TablePanel,
|
|
618
|
+
It as heatRank
|
|
619
619
|
};
|