@iota-uz/sdk 0.44.0 → 0.46.0
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/chat-ui/index.js +658 -656
- package/dist/client-host/identity.d.ts +4 -4
- package/dist/client-host/identity.js +2 -2
- package/dist/lens/{CascadePanel-BRmkM66c.js → CascadePanel-Bha4qY7J.js} +74 -74
- package/dist/lens/{ChartDataEquivalent-CcGY9owW.js → ChartDataEquivalent-Bwgn4yYB.js} +1 -1
- package/dist/lens/{ChartPanel-CdQYCwUh.js → ChartPanel-BZpzBuwl.js} +105 -105
- package/dist/lens/{CoveragePanel-BdbUu97M.js → CoveragePanel-D40AuKkD.js} +36 -36
- package/dist/lens/{GaugePanel-BPSnyl2f.js → GaugePanel-C9k2TuJH.js} +8 -8
- package/dist/lens/{MapPanel-CMGzE0bO.js → MapPanel-ZYxfDsPM.js} +22 -22
- package/dist/lens/{MetricFlowPanel-Qo6h8eYB.js → MetricFlowPanel-CmESLoLK.js} +15 -15
- package/dist/lens/{MetricHierarchyPanel-M6Jj_8f3.js → MetricHierarchyPanel-UZVuJ5P2.js} +19 -19
- package/dist/lens/{MetricRelationshipPanel-o1JgnNB5.js → MetricRelationshipPanel-CXLdScAy.js} +20 -20
- package/dist/lens/PrintReport-lrfdCTZO.js +1954 -0
- package/dist/lens/QualityChip-BYz-DHfs.js +90 -0
- package/dist/lens/TablePanel-C09tzJOL.js +980 -0
- package/dist/lens/{adapter-LlQCVH2d.js → adapter-CeAqYWqm.js} +7 -7
- package/dist/lens/contract/schemas.d.ts +4 -0
- package/dist/lens/contract/schemas.d.ts.map +1 -1
- package/dist/lens/contract/types.d.ts +25 -0
- package/dist/lens/contract/types.d.ts.map +1 -1
- package/dist/lens/{dashboardEdit-CzTrZ9GY.js → dashboardEdit-DKVE_6J_.js} +31 -31
- package/dist/lens/formula/FormulaTip.d.ts +25 -0
- package/dist/lens/formula/FormulaTip.d.ts.map +1 -0
- package/dist/lens/formula/FormulaView.d.ts +34 -0
- package/dist/lens/formula/FormulaView.d.ts.map +1 -0
- package/dist/lens/formula/PanelFormula.d.ts +19 -0
- package/dist/lens/formula/PanelFormula.d.ts.map +1 -0
- package/dist/lens/formula/element.d.ts +22 -0
- package/dist/lens/formula/element.d.ts.map +1 -0
- package/dist/lens/formula/values.d.ts +29 -0
- package/dist/lens/formula/values.d.ts.map +1 -0
- package/dist/lens/icons.d.ts +5 -0
- package/dist/lens/icons.d.ts.map +1 -1
- package/dist/lens/{index-C9_EJaLN.js → index-DcVtZneD.js} +6618 -5837
- package/dist/lens/{index-ha5KBmiS.js → index-DkVTXC8W.js} +1 -1
- package/dist/lens/index.d.ts +2 -0
- package/dist/lens/index.d.ts.map +1 -1
- package/dist/lens/index.js +57 -54
- package/dist/lens/{install-z4ugcXiK.js → install-BwD_xNlp.js} +1 -1
- package/dist/lens/{install-B0hhW_BN.js → install-CKmxqMe1.js} +1 -1
- package/dist/lens/{install-0VKAMdaz.js → install-CQ_iMuAE.js} +1 -1
- package/dist/lens/{install-D50hM31K.js → install-Ch0_qifK.js} +1 -1
- package/dist/lens/katex-B6_r1m5T.js +11681 -0
- package/dist/lens/{keys-B3RofDXR.js → keys-BBmWdfaH.js} +2 -2
- package/dist/lens/panels/PanelFrame.d.ts.map +1 -1
- package/dist/lens/panels/StatPanel.d.ts.map +1 -1
- package/dist/lens/panels/TablePanel.d.ts.map +1 -1
- package/dist/lens/{prefetch-BGXardWv.js → prefetch-BXoUIIgq.js} +2 -2
- package/dist/lens/{prefetchPanels-DXHorJDF.js → prefetchPanels-a-zs_bDm.js} +1 -1
- package/dist/lens/print/PrintReport.d.ts.map +1 -1
- package/dist/lens/print/formula.d.ts +9 -0
- package/dist/lens/print/formula.d.ts.map +1 -1
- package/dist/lens/{print-BSeT1zzv.js → print-CpgWJxDG.js} +1 -1
- package/dist/lens/runtime/messages.d.ts.map +1 -1
- package/dist/lens/runtime/provider.d.ts +1 -0
- package/dist/lens/runtime/provider.d.ts.map +1 -1
- package/dist/lens/{scales-nh-3WZ_4.js → scales-BLf9OweG.js} +3 -3
- 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/PrintReport-xIL8mIuB.js +0 -1907
- package/dist/lens/TablePanel-DXQcrnkI.js +0 -947
- package/dist/lens/metricViews-KImVDfFt.js +0 -211
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { insert as i, memo as q, effect as Y, setAttribute as E, createComponent as K, className as Ye, template as
|
|
1
|
+
import { insert as i, memo as q, effect as Y, setAttribute as E, createComponent as K, className as Ye, template as F, addEventListener as $t, style as ct, use as xt, setStyleProperty as _t, delegateEvents as It } from "solid-js/web";
|
|
2
2
|
import { createSignal as le, createMemo as R, onCleanup as Be, untrack as ze, createEffect as xe, For as Ge, Show as ne } from "solid-js";
|
|
3
3
|
import { r as Ct } from "./adapter-CgoRd_uP.js";
|
|
4
|
-
import { C as Lt, f as
|
|
5
|
-
import { s as
|
|
6
|
-
import {
|
|
7
|
-
import { C as rn, c as an } from "./ChartDataEquivalent-
|
|
8
|
-
var ln = /* @__PURE__ */
|
|
4
|
+
import { C as Lt, f as Ft } from "./keys-BBmWdfaH.js";
|
|
5
|
+
import { s as kt, o as De, c as At, a as Kt, b as Tt, d as Rt, f as Et } from "./scales-BLf9OweG.js";
|
|
6
|
+
import { U as Ht, u as ke, x as dt, V as Bt, W as nt, X as ot, l as Mt, Y as Ot, Z as Ut, _ as Vt, $ as Nt, a as Pt, a0 as zt, a1 as Dt, a2 as rt, C as ut, D as gt, B as mt, a3 as qt, a4 as Wt, E as Zt, a5 as jt, a6 as Qt, a7 as Yt, a8 as Gt, a9 as D, aa as at, ab as Xt, ac as qe, ad as Jt, ae as en, af as tn, ag as nn, ah as on } from "./index-DcVtZneD.js";
|
|
7
|
+
import { C as rn, c as an } from "./ChartDataEquivalent-Bwgn4yYB.js";
|
|
8
|
+
var ln = /* @__PURE__ */ F("<div class=lens-temporal-controls>"), sn = /* @__PURE__ */ F("<button class=lens-temporal-toggle type=button>"), cn = /* @__PURE__ */ F("<select class=lens-temporal-select><option value>"), dn = /* @__PURE__ */ F("<option>"), un = /* @__PURE__ */ F("<span class=lens-chart-source-note role=note>"), gn = /* @__PURE__ */ F("<span class=lens-chart-log-scale role=note><span>"), mn = /* @__PURE__ */ F("<span class=lens-chart-period-note role=note>"), hn = /* @__PURE__ */ F("<button class=lens-chart-collapse-other type=button>"), fn = /* @__PURE__ */ F("<button class=lens-chart-reset-zoom type=button>"), vn = /* @__PURE__ */ F("<div class=lens-chart-notes><span class=lens-chart-notes-actions>"), wn = /* @__PURE__ */ F("<div><div class=lens-chart-area>"), pn = /* @__PURE__ */ F("<div class=lens-chart-empty role=status><span class=lens-chart-empty-note></span><button class=lens-chart-empty-action type=button>"), yn = /* @__PURE__ */ F("<span class=lens-chart-compact-empty>"), bn = /* @__PURE__ */ F("<strong class=lens-chart-compact-value>"), Sn = /* @__PURE__ */ F("<span class=lens-chart-compact-label>"), $n = /* @__PURE__ */ F('<button class="lens-chart-compact lens-chart-compact-action"type=button>'), xn = /* @__PURE__ */ F("<div class=lens-chart-compact role=img>"), _n = /* @__PURE__ */ F("<span class=lens-plot-total><span class=lens-panel-total-label>:</span> "), In = /* @__PURE__ */ F('<div class=lens-chart-legend-shell><div class=lens-chart-legend-scroll-frame><ul class=lens-chart-legend role=region></ul><span aria-hidden=true class="lens-chart-legend-edge lens-chart-legend-edge-top"></span><span aria-hidden=true class="lens-chart-legend-edge lens-chart-legend-edge-bottom">'), Cn = /* @__PURE__ */ F("<div class=lens-chart-legend-controls><div class=lens-chart-legend-tools role=group>"), Qe = /* @__PURE__ */ F("<button type=button>"), Ln = /* @__PURE__ */ F("<button class=lens-chart-legend-invert type=button>"), Fn = /* @__PURE__ */ F("<label class=lens-chart-legend-search><span class=lens:sr-only></span><input class=lens-facet-search type=search>"), kn = /* @__PURE__ */ F("<li class=lens-chart-legend-item><button type=button><span aria-hidden=true class=lens-chart-legend-mark></span><span class=lens-chart-legend-label></span><span aria-hidden=true class=lens-chart-legend-visibility>"), An = /* @__PURE__ */ F("<li class=lens-chart-legend-heading>"), ht = /* @__PURE__ */ F("<span class=lens-chart-legend-value>"), Kn = /* @__PURE__ */ F("<button class=lens-chart-legend-overflow type=button>"), Tn = /* @__PURE__ */ F('<ul class="lens-chart-legend lens-chart-overlay-legend"><li class=lens-chart-legend-heading>'), Rn = /* @__PURE__ */ F("<li class=lens-chart-legend-item><button type=button><span aria-hidden=true class=lens-chart-overlay-mark></span><span class=lens-chart-legend-label>"), En = /* @__PURE__ */ F("<span aria-hidden=true class=lens-chart-legend-separator>·");
|
|
9
9
|
const Hn = 0.02, Bn = on, Mn = 4;
|
|
10
10
|
function On(e) {
|
|
11
11
|
const t = D(), o = D(e.encoding.label ? e.format[e.encoding.label] : void 0), a = D(e.encoding.value ? e.format[e.encoding.value] : void 0), m = D(e.encoding.previous ? e.format[e.encoding.previous] : void 0), l = D(e.encoding.lower ? e.format[e.encoding.lower] : void 0), _ = D(e.encoding.q1 ? e.format[e.encoding.q1] : void 0), I = D(e.encoding.median ? e.format[e.encoding.median] : void 0), b = D(e.encoding.q3 ? e.format[e.encoding.q3] : void 0), $ = D(e.encoding.upper ? e.format[e.encoding.upper] : void 0), S = D(e.encoding.id ? e.format[e.encoding.id] : void 0), H = D(e.encoding.series ? e.format[e.encoding.series] : void 0), v = D(e.encoding.category ? e.format[e.encoding.category] : void 0), g = D(e.encoding.cut ? e.format[e.encoding.cut] : void 0), M = D(e.encoding.cutLabel ? e.format[e.encoding.cutLabel] : void 0), W = D(e.encoding.final ? e.format[e.encoding.final] : void 0), oe = at(e.encoding.value ? e.format[e.encoding.value] : void 0), Q = at(e.encoding.median ? e.format[e.encoding.median] : void 0), w = R(() => {
|
|
@@ -25,14 +25,14 @@ function On(e) {
|
|
|
25
25
|
cutLabel: M,
|
|
26
26
|
final: W
|
|
27
27
|
}, ge = /* @__PURE__ */ new Map();
|
|
28
|
-
for (const
|
|
29
|
-
const re = e.encoding[
|
|
30
|
-
re &&
|
|
28
|
+
for (const X of Xt) {
|
|
29
|
+
const re = e.encoding[X], J = se[X];
|
|
30
|
+
re && J && ge.set(re, J);
|
|
31
31
|
}
|
|
32
|
-
return (
|
|
32
|
+
return (X, re) => (ge.get(X) ?? t)(re);
|
|
33
33
|
}), Z = R(() => {
|
|
34
34
|
const se = e.encoding.value, ge = e.encoding.median;
|
|
35
|
-
return (
|
|
35
|
+
return (X, re) => se && X === se ? oe(re) : ge && X === ge ? Q(re) : w()(X, re);
|
|
36
36
|
});
|
|
37
37
|
return {
|
|
38
38
|
format: w(),
|
|
@@ -59,12 +59,12 @@ function lt(e, t, o) {
|
|
|
59
59
|
const a = e.rows.findIndex((b, $) => We(e, t, $) === o);
|
|
60
60
|
if (a >= 0) return a;
|
|
61
61
|
const m = t.encoding.category ?? t.encoding.label, l = e.columns.findIndex((b) => b.name === m), _ = e.columns.findIndex((b) => b.name === t.encoding.series);
|
|
62
|
-
return l < 0 ? -1 : e.rows.findIndex((b) =>
|
|
62
|
+
return l < 0 ? -1 : e.rows.findIndex((b) => Ft(Fe(b[l]), _ >= 0 ? Fe(b[_]) : "") === o);
|
|
63
63
|
}
|
|
64
64
|
function ft(e, t) {
|
|
65
65
|
return t.semantics !== "series" || !t.encoding.series ? -1 : e.columns.findIndex((o) => o.name === t.encoding.series);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function Un(e, t, o) {
|
|
68
68
|
var l;
|
|
69
69
|
const a = ft(e, t);
|
|
70
70
|
if (a < 0) return We(e, t, o);
|
|
@@ -78,14 +78,14 @@ function ve(e) {
|
|
|
78
78
|
if (Number.isFinite(t)) return t;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Fe(e) {
|
|
82
82
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "bigint" ? String(e) : "";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Vn(e, t) {
|
|
85
85
|
const m = (t.kind === "pie" || t.kind === "donut" || t.kind === "radial" ? [t.encoding.label, t.encoding.category] : [t.encoding.category, t.encoding.label]).reduce((l, _) => l >= 0 || !_ ? l : e.columns.findIndex((I) => I.name === _), -1);
|
|
86
86
|
return m < 0 ? 0 : new Set(e.rows.map((l) => l[m]).filter((l) => l != null).map(String)).size;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Nn(e, t) {
|
|
89
89
|
const o = e.columns.findIndex((a) => a.name === t.encoding.series);
|
|
90
90
|
return o < 0 ? 1 : new Set(e.rows.map((a) => a[o]).filter((a) => a != null).map(String)).size;
|
|
91
91
|
}
|
|
@@ -155,7 +155,7 @@ function it(e, t, o) {
|
|
|
155
155
|
}
|
|
156
156
|
function to(e) {
|
|
157
157
|
var tt;
|
|
158
|
-
const t = e.panel, o = Ht(t.id), a =
|
|
158
|
+
const t = e.panel, o = Ht(t.id), a = ke(), {
|
|
159
159
|
document: m,
|
|
160
160
|
navigation: l
|
|
161
161
|
} = dt(), {
|
|
@@ -165,7 +165,7 @@ function to(e) {
|
|
|
165
165
|
formatAxis: b
|
|
166
166
|
} = On(t), [$, S] = le(), [H, v] = le(!1), [g, M] = le(0), W = typeof window > "u" ? {
|
|
167
167
|
regression: !1
|
|
168
|
-
} : nt(new URL(window.location.href), t.id), [oe, Q] = le(W.regression), [w, Z] = le(W.movingAverage), [se, ge] = le(/* @__PURE__ */ new Set()), [
|
|
168
|
+
} : nt(new URL(window.location.href), t.id), [oe, Q] = le(W.regression), [w, Z] = le(W.movingAverage), [se, ge] = le(/* @__PURE__ */ new Set()), [X, re] = le(typeof window > "u" ? /* @__PURE__ */ new Set() : ot(new URL(window.location.href), t.id)), J = R(() => X()), _e = () => l.panelId === t.id && l.path.length > 0, ee = R(() => _e() ? Mt(m, l.path) : t.drillRoot ? m.drill.edges[t.drillRoot] : void 0), Ie = () => ee() ? ee().children.some(({
|
|
169
169
|
target: n
|
|
170
170
|
}) => n) : !!t.drillRoot, G = () => !!t.drillRoot || !!ee(), x = Ot(t);
|
|
171
171
|
let ie;
|
|
@@ -190,29 +190,29 @@ function to(e) {
|
|
|
190
190
|
const r = x.prefetchIdle(n);
|
|
191
191
|
Be(r);
|
|
192
192
|
});
|
|
193
|
-
const Ke =
|
|
193
|
+
const Ke = Ut(), be = () => {
|
|
194
194
|
var n, r;
|
|
195
195
|
return ((n = x.action) == null ? void 0 : n.kind) === "cross_filter" || ((r = x.action) == null ? void 0 : r.kind) === "cube_drill" ? x.action.filter : void 0;
|
|
196
196
|
}, we = R(() => {
|
|
197
197
|
var u;
|
|
198
198
|
if (!((u = be()) != null && u.dimension)) return;
|
|
199
|
-
const n = Ke.values[
|
|
199
|
+
const n = Ke.values[Vt], r = Array.isArray(n) ? n : n ? [n] : [], s = `${be().dimension}:`, d = new Set(r.filter((z) => z.startsWith(s)).map((z) => z.slice(s.length)));
|
|
200
200
|
return d.size > 0 ? d : void 0;
|
|
201
201
|
}), Ze = R(() => {
|
|
202
202
|
if (!we() || !be() || !o.data) return;
|
|
203
203
|
new URL(globalThis.location.href);
|
|
204
204
|
const n = o.data;
|
|
205
205
|
for (let r = 0; r < n.rows.length; r += 1) {
|
|
206
|
-
const s =
|
|
206
|
+
const s = Nt(be().value, {
|
|
207
207
|
fields: Pt(n, n.rows[r]),
|
|
208
208
|
variables: {}
|
|
209
|
-
}), d =
|
|
209
|
+
}), d = Fe(s);
|
|
210
210
|
if (d !== "" && we().has(d)) return We(n, t, r);
|
|
211
211
|
}
|
|
212
|
-
}), ae = t.kind, Te = () => o.data ?
|
|
212
|
+
}), ae = t.kind, Te = () => o.data ? Vn(o.data, t) <= 1 && Nn(o.data, t) <= 1 : !1, Ue = () => `${l.panelId === t.id ? l.path.join("|") : ""}:${l.perspectiveId ?? ""}`;
|
|
213
213
|
let Re;
|
|
214
214
|
xe(() => {
|
|
215
|
-
const n =
|
|
215
|
+
const n = Ue();
|
|
216
216
|
Re !== n && (Re = n, S(void 0));
|
|
217
217
|
});
|
|
218
218
|
const c = (n) => re(new Set(n));
|
|
@@ -222,7 +222,7 @@ function to(e) {
|
|
|
222
222
|
window.addEventListener("popstate", n), Be(() => window.removeEventListener("popstate", n));
|
|
223
223
|
}), xe(() => {
|
|
224
224
|
if (typeof window > "u") return;
|
|
225
|
-
const n = new URL(window.location.href), r = zt(n, t.id,
|
|
225
|
+
const n = new URL(window.location.href), r = zt(n, t.id, J());
|
|
226
226
|
r.search !== n.search && window.history.replaceState(window.history.state, "", r);
|
|
227
227
|
}), xe(() => {
|
|
228
228
|
if (typeof window > "u") return;
|
|
@@ -241,8 +241,8 @@ function to(e) {
|
|
|
241
241
|
});
|
|
242
242
|
const C = R(() => {
|
|
243
243
|
var z, te;
|
|
244
|
-
if (!o.data ||
|
|
245
|
-
const n = o.data.rows.map((ue, $e) => !
|
|
244
|
+
if (!o.data || J().size === 0) return o.data;
|
|
245
|
+
const n = o.data.rows.map((ue, $e) => !J().has(Un(o.data, t, $e))), r = o.data.rows.filter((ue, $e) => n[$e]), s = (z = o.data.colors) == null ? void 0 : z.filter((ue, $e) => n[$e]), d = o.data.columns.findIndex((ue) => ue.name === t.encoding.value), u = ((te = t.radial) == null ? void 0 : te.mode) === "partition" || d < 0 ? o.data.total : r.reduce((ue, $e) => ue + (ve($e[d]) ?? 0), 0);
|
|
246
246
|
return {
|
|
247
247
|
...o.data,
|
|
248
248
|
rows: r,
|
|
@@ -264,14 +264,14 @@ function to(e) {
|
|
|
264
264
|
return n.collapsed && n.frame ? an(n.frame, t, n.frame.rows.length - 1) : void 0;
|
|
265
265
|
}, L = R(() => H() || !y().collapsed ? C() : y().frame), B = R(() => {
|
|
266
266
|
var n;
|
|
267
|
-
return L() ?
|
|
267
|
+
return L() ? kt(L(), t.encoding, t.valueAxis, (n = t.presentation) == null ? void 0 : n.valueSpreadThreshold) : !1;
|
|
268
268
|
}), O = R(() => {
|
|
269
269
|
if (!o.data || H()) return o.data;
|
|
270
270
|
const n = st(o.data, t);
|
|
271
271
|
return n.collapsed ? n.frame : it(o.data, t, a("chart.other", "Other")).frame;
|
|
272
272
|
}), f = R(() => {
|
|
273
273
|
var r, s;
|
|
274
|
-
if (!o.data ||
|
|
274
|
+
if (!o.data || J().size === 0 || !t.encoding.value || ((r = t.radial) == null ? void 0 : r.mode) === "partition") return;
|
|
275
275
|
const n = o.data.columns.findIndex((d) => d.name === t.encoding.value);
|
|
276
276
|
if (!(n < 0))
|
|
277
277
|
return (((s = C()) == null ? void 0 : s.rows) ?? []).reduce((d, u) => d + (ve(u[n]) ?? 0), 0);
|
|
@@ -281,20 +281,20 @@ function to(e) {
|
|
|
281
281
|
const n = o.data.columns.findIndex((s) => s.name === t.encoding.value);
|
|
282
282
|
if (!(n < 0))
|
|
283
283
|
return o.data.rows.reduce((s, d) => s + (ve(d[n]) ?? 0), 0);
|
|
284
|
-
}),
|
|
284
|
+
}), U = () => {
|
|
285
285
|
var n;
|
|
286
|
-
return
|
|
287
|
-
},
|
|
286
|
+
return J().size > 0 && (((n = C()) == null ? void 0 : n.rows.length) ?? 0) === 0;
|
|
287
|
+
}, N = () => {
|
|
288
288
|
var n, r;
|
|
289
289
|
return ((r = ((n = o.data) == null ? void 0 : n.presentation) ?? t.presentation) == null ? void 0 : r.keepTotalBadge) === !0;
|
|
290
|
-
}, ce = () => o.data && (o.data.rows.length > 0 ||
|
|
290
|
+
}, ce = () => o.data && (o.data.rows.length > 0 || N()) ? o.data.total ?? (N() || _e() || t.kind === "pie" || t.kind === "donut" || t.kind === "radial" ? T() : void 0) ?? t.total : void 0, me = R(() => ce() === void 0 || U() && !N() ? null : J().size > 0 ? f() ?? null : ce()), de = () => {
|
|
291
291
|
var n;
|
|
292
292
|
return ((n = o.data) == null ? void 0 : n.presentation) ?? t.presentation;
|
|
293
293
|
}, p = () => {
|
|
294
294
|
var n;
|
|
295
295
|
return (n = L()) == null ? void 0 : n.colors;
|
|
296
|
-
},
|
|
297
|
-
const r = new Set(
|
|
296
|
+
}, k = (n) => {
|
|
297
|
+
const r = new Set(J());
|
|
298
298
|
r.has(n) ? r.delete(n) : r.add(n), c(r);
|
|
299
299
|
}, A = R(() => {
|
|
300
300
|
if (ee())
|
|
@@ -302,7 +302,7 @@ function to(e) {
|
|
|
302
302
|
var r;
|
|
303
303
|
return !!((r = rt(ee(), n)) != null && r.target);
|
|
304
304
|
};
|
|
305
|
-
}), P = R(() => ut(o.data, t)),
|
|
305
|
+
}), P = R(() => ut(o.data, t)), V = R(() => gt(m.theme, t, o.data, !_e())), Se = R(() => mt(m.theme, t, {
|
|
306
306
|
colors: p(),
|
|
307
307
|
positional: !_e(),
|
|
308
308
|
labels: P()
|
|
@@ -315,7 +315,7 @@ function to(e) {
|
|
|
315
315
|
} of ((r = t.temporal) == null ? void 0 : r.movingAverages) ?? [])
|
|
316
316
|
s !== w() && n.add(De.average(s));
|
|
317
317
|
return n;
|
|
318
|
-
}),
|
|
318
|
+
}), Ve = (n) => {
|
|
319
319
|
var s, d;
|
|
320
320
|
if (n === De.trend) {
|
|
321
321
|
Q((u) => !u);
|
|
@@ -409,7 +409,7 @@ function to(e) {
|
|
|
409
409
|
// across a reload or a shared URL, not only in the click that made it.
|
|
410
410
|
selectedKey: $() ?? Ze(),
|
|
411
411
|
presentation: de(),
|
|
412
|
-
seriesColor:
|
|
412
|
+
seriesColor: V(),
|
|
413
413
|
rowColor: Se(),
|
|
414
414
|
radial: t.radial,
|
|
415
415
|
temporal: t.temporal,
|
|
@@ -438,7 +438,7 @@ function to(e) {
|
|
|
438
438
|
}), fe = Qt(), He = () => {
|
|
439
439
|
var n;
|
|
440
440
|
return G() ? fe ? !!(((n = ee()) == null ? void 0 : n.children.length) ?? t.drillRoot) : Ie() : !!x.action;
|
|
441
|
-
},
|
|
441
|
+
}, Xe = ae === "histogram" || ae === "boxplot" || ae === "heatmap", Ne = () => Te() && !Xe, je = (n, r, s) => {
|
|
442
442
|
const d = y(), u = d.frame ? d.frame.rows.length - 1 : -1;
|
|
443
443
|
if (d.collapsed && !!(n === h() || d.frame && lt(d.frame, t, n) === u)) {
|
|
444
444
|
v((ue) => !ue);
|
|
@@ -457,10 +457,10 @@ function to(e) {
|
|
|
457
457
|
}
|
|
458
458
|
const te = rt(ee(), n);
|
|
459
459
|
ee() && !(te != null && te.target) || (S(n), _((te == null ? void 0 : te.key) ?? n, t.id));
|
|
460
|
-
}, [wt, pt] = le(),
|
|
460
|
+
}, [wt, pt] = le(), Je = () => {
|
|
461
461
|
var n, r;
|
|
462
|
-
return !!L() && (!
|
|
463
|
-
}, yt = () => !
|
|
462
|
+
return !!L() && (!Ne() && ((n = de()) == null ? void 0 : n.legend) === "below" || nn(ae, wt(), (r = de()) == null ? void 0 : r.sliceLabels));
|
|
463
|
+
}, yt = () => !Ne() && he().length > 0 && !!L(), Ce = () => He() || y().collapsed, bt = t.encoding.category ?? t.encoding.label, et = () => {
|
|
464
464
|
var n;
|
|
465
465
|
return (ae === "line" || ae === "area") && ((n = L()) == null ? void 0 : n.columns.some((r) => r.name === bt && r.type === "time")) === !0;
|
|
466
466
|
}, Pe = () => he().find((n) => n.kind === "incomplete" && n.active), St = () => be() ? a("chart.filterHint", "Select to filter the page") : a("chart.drillHint", "Select to explore"), Le = R(() => ye() && He() ? {
|
|
@@ -468,7 +468,7 @@ function to(e) {
|
|
|
468
468
|
actionHint: St()
|
|
469
469
|
} : ye());
|
|
470
470
|
return K(Yt, {
|
|
471
|
-
allowEmptyContent: !
|
|
471
|
+
allowEmptyContent: !Xe,
|
|
472
472
|
headerActions: j,
|
|
473
473
|
panel: t,
|
|
474
474
|
frame: o,
|
|
@@ -544,7 +544,7 @@ function to(e) {
|
|
|
544
544
|
}
|
|
545
545
|
}), null), i(r, K(ne, {
|
|
546
546
|
get when() {
|
|
547
|
-
return
|
|
547
|
+
return U();
|
|
548
548
|
},
|
|
549
549
|
get children() {
|
|
550
550
|
return K(zn, {
|
|
@@ -553,7 +553,7 @@ function to(e) {
|
|
|
553
553
|
}
|
|
554
554
|
}), null), i(r, K(ne, {
|
|
555
555
|
get when() {
|
|
556
|
-
return q(() => !!(!
|
|
556
|
+
return q(() => !!(!U() && Le()))() && Ne();
|
|
557
557
|
},
|
|
558
558
|
get children() {
|
|
559
559
|
return K(Dn, {
|
|
@@ -571,7 +571,7 @@ function to(e) {
|
|
|
571
571
|
}
|
|
572
572
|
}), null), i(r, K(ne, {
|
|
573
573
|
get when() {
|
|
574
|
-
return q(() => !!(!
|
|
574
|
+
return q(() => !!(!U() && Le()))() && !Ne();
|
|
575
575
|
},
|
|
576
576
|
get children() {
|
|
577
577
|
return [K(rn, {
|
|
@@ -629,7 +629,7 @@ function to(e) {
|
|
|
629
629
|
},
|
|
630
630
|
get children() {
|
|
631
631
|
return K(Zn, {
|
|
632
|
-
onToggle:
|
|
632
|
+
onToggle: Ve,
|
|
633
633
|
get overlays() {
|
|
634
634
|
return he();
|
|
635
635
|
}
|
|
@@ -637,7 +637,7 @@ function to(e) {
|
|
|
637
637
|
}
|
|
638
638
|
}), null), i(n, K(ne, {
|
|
639
639
|
get when() {
|
|
640
|
-
return q(() => !!
|
|
640
|
+
return q(() => !!Je())() && O();
|
|
641
641
|
},
|
|
642
642
|
get children() {
|
|
643
643
|
return K(Wn, {
|
|
@@ -645,10 +645,10 @@ function to(e) {
|
|
|
645
645
|
return O();
|
|
646
646
|
},
|
|
647
647
|
get hidden() {
|
|
648
|
-
return
|
|
648
|
+
return J();
|
|
649
649
|
},
|
|
650
650
|
onSetHidden: c,
|
|
651
|
-
onToggle:
|
|
651
|
+
onToggle: k,
|
|
652
652
|
panel: t,
|
|
653
653
|
get presentation() {
|
|
654
654
|
return de();
|
|
@@ -658,12 +658,12 @@ function to(e) {
|
|
|
658
658
|
}
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
|
-
}), null), Y(() => Ye(n, `lens-chart-layout${
|
|
661
|
+
}), null), Y(() => Ye(n, `lens-chart-layout${Je() ? " lens-chart-layout-legend" : ""}`)), n;
|
|
662
662
|
}
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
665
|
function zn(e) {
|
|
666
|
-
const t =
|
|
666
|
+
const t = ke();
|
|
667
667
|
return (() => {
|
|
668
668
|
var o = pn(), a = o.firstChild, m = a.nextSibling;
|
|
669
669
|
return i(a, () => t("chart.allSeriesHidden", "All series are hidden")), $t(m, "click", e.onShowAll, !0), i(m, () => t("chart.showAllSeries", "Show all series")), o;
|
|
@@ -671,7 +671,7 @@ function zn(e) {
|
|
|
671
671
|
}
|
|
672
672
|
function Dn(e) {
|
|
673
673
|
var oe, Q;
|
|
674
|
-
const t =
|
|
674
|
+
const t = ke(), o = [e.panel.encoding.category, e.panel.encoding.label].find((w) => w !== void 0 && e.frame.columns.some((Z) => Z.name === w)), a = e.panel.encoding.value, m = e.frame.columns.findIndex((w) => w.name === o), l = e.frame.columns.findIndex((w) => w.name === a), _ = D(a ? e.panel.format[a] : void 0), I = l < 0 ? void 0 : e.frame.rows.reduce((w, Z) => w + (ve(Z[l]) ?? 0), 0), b = m < 0 || (oe = e.frame.rows[0]) == null ? void 0 : oe[m], $ = Fe(b), S = _(I), H = e.panel.encoding.id ?? o, v = e.frame.columns.findIndex((w) => w.name === H), g = Fe(v < 0 || (Q = e.frame.rows[0]) == null ? void 0 : Q[v]), M = q(() => q(() => e.frame.rows.length === 0)() ? (() => {
|
|
675
675
|
var w = yn();
|
|
676
676
|
return i(w, () => t("panel.empty", "No data")), w;
|
|
677
677
|
})() : [$ && (() => {
|
|
@@ -695,83 +695,83 @@ function Dn(e) {
|
|
|
695
695
|
})();
|
|
696
696
|
}
|
|
697
697
|
function qn(e) {
|
|
698
|
-
const t =
|
|
698
|
+
const t = ke(), o = D(e.panel.encoding.value ? e.panel.format[e.panel.encoding.value] : void 0);
|
|
699
699
|
return (() => {
|
|
700
700
|
var a = _n(), m = a.firstChild, l = m.firstChild;
|
|
701
701
|
return m.nextSibling, i(m, () => t("panel.total", "Total"), l), i(a, () => o(e.total), null), a;
|
|
702
702
|
})();
|
|
703
703
|
}
|
|
704
704
|
function Wn(e) {
|
|
705
|
-
var
|
|
705
|
+
var Ue, Re;
|
|
706
706
|
const t = e.panel, o = e.frame, {
|
|
707
707
|
document: a,
|
|
708
708
|
navigation: m
|
|
709
|
-
} = dt(), l =
|
|
709
|
+
} = dt(), l = ke(), [_, I] = le("");
|
|
710
710
|
let b;
|
|
711
711
|
const [$, S] = le({
|
|
712
712
|
top: !1,
|
|
713
713
|
bottom: !1
|
|
714
|
-
}), [H, v] = le(0), [g, M] = le(!1), W = ft(o, t), oe = W >= 0 ? t.encoding.series : [t.encoding.label, t.encoding.category].find((c) => c !== void 0 && o.columns.some((C) => C.name === c)), Q = t.encoding.value, w = D(Q ? t.format[Q] : void 0), Z = o.columns.findIndex((c) => c.name === oe), se = o.columns.findIndex((c) => c.name === Q), ge = D(oe ? t.format[oe] : void 0),
|
|
714
|
+
}), [H, v] = le(0), [g, M] = le(!1), W = ft(o, t), oe = W >= 0 ? t.encoding.series : [t.encoding.label, t.encoding.category].find((c) => c !== void 0 && o.columns.some((C) => C.name === c)), Q = t.encoding.value, w = D(Q ? t.format[Q] : void 0), Z = o.columns.findIndex((c) => c.name === oe), se = o.columns.findIndex((c) => c.name === Q), ge = D(oe ? t.format[oe] : void 0), X = () => m.panelId === t.id && m.path.length > 0, re = ut(o, t), J = gt(a.theme, t, o, !X()), _e = mt(a.theme, t, {
|
|
715
715
|
colors: o.colors,
|
|
716
|
-
positional: !
|
|
716
|
+
positional: !X(),
|
|
717
717
|
labels: re
|
|
718
|
-
}), ee = t.encoding.id ? o.columns.findIndex((c) => c.name === t.encoding.id) : -1, Ie = t.encoding.series ? o.columns.findIndex((c) => c.name === t.encoding.series) : -1, G = ((
|
|
718
|
+
}), ee = t.encoding.id ? o.columns.findIndex((c) => c.name === t.encoding.id) : -1, Ie = t.encoding.series ? o.columns.findIndex((c) => c.name === t.encoding.series) : -1, G = ((Ue = t.radial) == null ? void 0 : Ue.mode) === "partition", x = R(() => {
|
|
719
719
|
var me, de;
|
|
720
|
-
const c = o.rows.map((p,
|
|
720
|
+
const c = o.rows.map((p, k) => {
|
|
721
721
|
const A = ee >= 0 ? p[ee] : p[Z];
|
|
722
|
-
return String(typeof A == "string" || typeof A == "number" || typeof A == "bigint" ? A :
|
|
723
|
-
}), C = o.rows.map((p,
|
|
724
|
-
if (W < 0) return c[
|
|
722
|
+
return String(typeof A == "string" || typeof A == "number" || typeof A == "bigint" ? A : k);
|
|
723
|
+
}), C = o.rows.map((p, k) => {
|
|
724
|
+
if (W < 0) return c[k];
|
|
725
725
|
const A = p[W];
|
|
726
|
-
return String(typeof A == "string" || typeof A == "number" || typeof A == "bigint" ? A :
|
|
726
|
+
return String(typeof A == "string" || typeof A == "number" || typeof A == "bigint" ? A : k);
|
|
727
727
|
});
|
|
728
|
-
let y = o.rows.map((p,
|
|
728
|
+
let y = o.rows.map((p, k) => k);
|
|
729
729
|
if (W >= 0 || G) {
|
|
730
730
|
const p = /* @__PURE__ */ new Set();
|
|
731
731
|
y = [];
|
|
732
|
-
for (let
|
|
733
|
-
const A = C[
|
|
734
|
-
p.has(A) || (p.add(A), y.push(
|
|
732
|
+
for (let k = 0; k < o.rows.length; k += 1) {
|
|
733
|
+
const A = C[k];
|
|
734
|
+
p.has(A) || (p.add(A), y.push(k));
|
|
735
735
|
}
|
|
736
736
|
}
|
|
737
|
-
const h = y.map((p) => C[p]), L = new Map(y.map((p,
|
|
737
|
+
const h = y.map((p) => C[p]), L = new Map(y.map((p, k) => [p, k])), B = /* @__PURE__ */ new Map();
|
|
738
738
|
G && c.forEach((p) => {
|
|
739
739
|
B.has(p) || B.set(p, B.size);
|
|
740
740
|
});
|
|
741
741
|
const O = new Map((((me = t.radial) == null ? void 0 : me.rings) ?? []).map((p) => [p.key, p.total])), f = /* @__PURE__ */ new Map();
|
|
742
742
|
for (let p = 0; p < o.rows.length; p += 1) {
|
|
743
|
-
const
|
|
743
|
+
const k = Ie >= 0 ? (de = o.rows[p]) == null ? void 0 : de[Ie] : void 0, A = G && typeof k == "string" ? k : "", P = G ? O.get(A) ?? e.total : e.total, V = G ? A : String(P), Se = f.get(V) ?? {
|
|
744
744
|
denominator: P,
|
|
745
745
|
indices: []
|
|
746
746
|
};
|
|
747
|
-
Se.indices.push(p), f.set(
|
|
747
|
+
Se.indices.push(p), f.set(V, Se);
|
|
748
748
|
}
|
|
749
749
|
const T = /* @__PURE__ */ new Map();
|
|
750
750
|
for (const {
|
|
751
751
|
denominator: p,
|
|
752
|
-
indices:
|
|
752
|
+
indices: k
|
|
753
753
|
} of f.values()) {
|
|
754
|
-
const A =
|
|
755
|
-
var
|
|
756
|
-
return se >= 0 ? ve((
|
|
754
|
+
const A = k.map((P) => {
|
|
755
|
+
var V;
|
|
756
|
+
return se >= 0 ? ve((V = o.rows[P]) == null ? void 0 : V[se]) : void 0;
|
|
757
757
|
});
|
|
758
|
-
Rt(A, p).forEach((P,
|
|
758
|
+
Rt(A, p).forEach((P, V) => T.set(k[V], P));
|
|
759
759
|
}
|
|
760
|
+
const U = /* @__PURE__ */ new Map();
|
|
761
|
+
G && c.forEach((p) => U.set(p, (U.get(p) ?? 0) + 1));
|
|
760
762
|
const N = /* @__PURE__ */ new Map();
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
se >= 0 && o.rows.forEach((p, F) => {
|
|
764
|
-
var U;
|
|
763
|
+
se >= 0 && o.rows.forEach((p, k) => {
|
|
764
|
+
var V;
|
|
765
765
|
const A = ve(p[se]);
|
|
766
766
|
if (A === void 0) return;
|
|
767
|
-
const P = C[
|
|
768
|
-
W >= 0 && Q && ((
|
|
767
|
+
const P = C[k];
|
|
768
|
+
W >= 0 && Q && ((V = t.format[Q]) == null ? void 0 : V.kind) !== "percent" ? N.set(P, (N.get(P) ?? 0) + A) : N.set(P, A);
|
|
769
769
|
});
|
|
770
770
|
const ce = /* @__PURE__ */ new Map();
|
|
771
771
|
return G && Ie >= 0 && y.forEach((p) => {
|
|
772
772
|
var A;
|
|
773
|
-
const
|
|
774
|
-
typeof
|
|
773
|
+
const k = (A = o.rows[p]) == null ? void 0 : A[Ie];
|
|
774
|
+
typeof k == "string" && ce.set(p, k);
|
|
775
775
|
}), {
|
|
776
776
|
allKeys: h,
|
|
777
777
|
categoryOrder: B,
|
|
@@ -780,19 +780,19 @@ function Wn(e) {
|
|
|
780
780
|
entryPositions: L,
|
|
781
781
|
ringByIndex: ce,
|
|
782
782
|
rowKeys: c,
|
|
783
|
-
rowsPerKey:
|
|
783
|
+
rowsPerKey: U,
|
|
784
784
|
shares: T,
|
|
785
|
-
valueByKey:
|
|
785
|
+
valueByKey: N
|
|
786
786
|
};
|
|
787
787
|
}), ie = (c, C, y) => {
|
|
788
788
|
var B;
|
|
789
|
-
if (W >= 0) return
|
|
789
|
+
if (W >= 0) return J(x().entryKeys[C], y);
|
|
790
790
|
const h = ee >= 0 ? (B = o.rows[C]) == null ? void 0 : B[ee] : void 0, L = typeof h == "string" && h.trim() !== "" ? h : void 0;
|
|
791
791
|
return _e(c, x().categoryOrder.get(x().rowKeys[C]) ?? C, L);
|
|
792
792
|
}, Me = ((Re = e.presentation) == null ? void 0 : Re.legendValue) === "percent", Ae = (c) => W >= 0 ? "value" : Me ? "percent" : G ? x().rowsPerKey.get(x().rowKeys[c]) === 1 ? "percent" : "none" : "value", Oe = () => _().trim().toLocaleLowerCase(), Ke = R(() => Oe() === "" ? x().entries : x().entries.filter((c) => {
|
|
793
793
|
var y;
|
|
794
794
|
const C = (y = o.rows[c]) == null ? void 0 : y[Z];
|
|
795
|
-
return
|
|
795
|
+
return Fe(C).toLocaleLowerCase().includes(Oe());
|
|
796
796
|
}));
|
|
797
797
|
xe(() => {
|
|
798
798
|
const c = b;
|
|
@@ -842,9 +842,9 @@ function Wn(e) {
|
|
|
842
842
|
return f.$$click = () => e.onSetHidden(/* @__PURE__ */ new Set()), i(f, () => l("chart.legendShowAll", "Show all")), Y(() => E(f, "aria-pressed", Ze())), f;
|
|
843
843
|
})(), (() => {
|
|
844
844
|
var f = Ln();
|
|
845
|
-
return f.$$click = () => e.onSetHidden(new Set(x().allKeys.filter((T) => !e.hidden.has(T)))), i(f, K(
|
|
846
|
-
var
|
|
847
|
-
return
|
|
845
|
+
return f.$$click = () => e.onSetHidden(new Set(x().allKeys.filter((T) => !e.hidden.has(T)))), i(f, K(Jt, {})), Y((T) => {
|
|
846
|
+
var U = l("chart.legendInvert", "Invert"), N = l("chart.legendInvert", "Invert");
|
|
847
|
+
return U !== T.e && E(f, "aria-label", T.e = U), N !== T.t && E(f, "title", T.t = N), T;
|
|
848
848
|
}, {
|
|
849
849
|
e: void 0,
|
|
850
850
|
t: void 0
|
|
@@ -859,8 +859,8 @@ function Wn(e) {
|
|
|
859
859
|
})()), i(L, (() => {
|
|
860
860
|
var O = q(() => !!Te());
|
|
861
861
|
return () => O() && (() => {
|
|
862
|
-
var f =
|
|
863
|
-
return i(T, () => l("chart.legendSearch", "Search legend")),
|
|
862
|
+
var f = Fn(), T = f.firstChild, U = T.nextSibling;
|
|
863
|
+
return i(T, () => l("chart.legendSearch", "Search legend")), U.addEventListener("change", (N) => I(N.currentTarget.value)), Y(() => E(U, "placeholder", l("chart.legendSearch", "Search legend"))), Y(() => U.value = _()), f;
|
|
864
864
|
})();
|
|
865
865
|
})(), null), Y((O) => {
|
|
866
866
|
var f = l("chart.legendControls", "Legend controls"), T = Te() ? "many" : "one";
|
|
@@ -877,14 +877,14 @@ function Wn(e) {
|
|
|
877
877
|
return Ke();
|
|
878
878
|
},
|
|
879
879
|
children: (h, L) => {
|
|
880
|
-
var p,
|
|
881
|
-
const B = o.rows[h], O = x().entryPositions.get(h) ?? h, f = B[Z], T = f == null ? "" : ge(f),
|
|
880
|
+
var p, k, A;
|
|
881
|
+
const B = o.rows[h], O = x().entryPositions.get(h) ?? h, f = B[Z], T = f == null ? "" : ge(f), U = x().entryKeys[h], N = () => e.hidden.has(U), ce = x().ringByIndex.get(h), me = L() > 0 ? x().ringByIndex.get(Ke()[L() - 1]) : void 0, de = ((A = (k = (p = t.radial) == null ? void 0 : p.rings) == null ? void 0 : k.find((P) => P.key === ce)) == null ? void 0 : A.label) ?? ce;
|
|
882
882
|
return [ce && ce !== me && (() => {
|
|
883
883
|
var P = An();
|
|
884
884
|
return i(P, de), P;
|
|
885
885
|
})(), (() => {
|
|
886
|
-
var P =
|
|
887
|
-
return
|
|
886
|
+
var P = kn(), V = P.firstChild, Se = V.firstChild, Ee = Se.nextSibling, Ve = Ee.nextSibling;
|
|
887
|
+
return V.$$dblclick = () => be(U), V.$$click = () => e.onToggle(U), i(Ee, T), i(V, (() => {
|
|
888
888
|
var j = q(() => Ae(h) !== "none");
|
|
889
889
|
return () => j() && (() => {
|
|
890
890
|
var pe = ht();
|
|
@@ -892,16 +892,16 @@ function Wn(e) {
|
|
|
892
892
|
var ye = q(() => Ae(h) === "percent");
|
|
893
893
|
return () => {
|
|
894
894
|
var he, fe;
|
|
895
|
-
return ye() ? Et(x().shares.get(h), (he = a.meta) == null ? void 0 : he.locale, Q ? (fe = t.format[Q]) == null ? void 0 : fe.decimalSeparator : void 0) : w(x().valueByKey.get(
|
|
895
|
+
return ye() ? Et(x().shares.get(h), (he = a.meta) == null ? void 0 : he.locale, Q ? (fe = t.format[Q]) == null ? void 0 : fe.decimalSeparator : void 0) : w(x().valueByKey.get(U));
|
|
896
896
|
};
|
|
897
897
|
})()), pe;
|
|
898
898
|
})();
|
|
899
|
-
})(),
|
|
900
|
-
var j = q(() => !!
|
|
899
|
+
})(), Ve), i(Ve, (() => {
|
|
900
|
+
var j = q(() => !!N());
|
|
901
901
|
return () => j() ? K(en, {}) : K(tn, {});
|
|
902
902
|
})()), Y((j) => {
|
|
903
|
-
var pe = !
|
|
904
|
-
return pe !== j.e && E(
|
|
903
|
+
var pe = !N(), ye = `lens-chart-legend-toggle${N() ? " lens-chart-legend-hidden" : ""}`, he = `lens-panel-${t.id}-legend-series-${O}`, fe = l("chart.legendToggleHint", "Click to toggle · double-click to isolate"), He = ie(T, h, O);
|
|
904
|
+
return pe !== j.e && E(V, "aria-pressed", j.e = pe), ye !== j.t && Ye(V, j.t = ye), he !== j.a && E(V, "data-testid", j.a = he), fe !== j.o && E(V, "title", j.o = fe), He !== j.i && _t(Se, "background", j.i = He), j;
|
|
905
905
|
}, {
|
|
906
906
|
e: void 0,
|
|
907
907
|
t: void 0,
|
|
@@ -925,8 +925,8 @@ function Wn(e) {
|
|
|
925
925
|
})(), null), Y((h) => {
|
|
926
926
|
var L = H() > 0 && !g() || void 0, B = g() ? {
|
|
927
927
|
"--lens-chart-legend-max": "none"
|
|
928
|
-
} : void 0, O = $().bottom || void 0, f = $().top || void 0, T = l("chart.legendControls", "Legend controls"),
|
|
929
|
-
return L !== h.e && E(c, "data-collapsed", h.e = L), h.t = ct(c, B, h.t), O !== h.a && E(C, "data-overflow-bottom", h.a = O), f !== h.o && E(C, "data-overflow-top", h.o = f), T !== h.i && E(y, "aria-label", h.i = T),
|
|
928
|
+
} : void 0, O = $().bottom || void 0, f = $().top || void 0, T = l("chart.legendControls", "Legend controls"), U = `lens-panel-${t.id}-legend`, N = $().top || $().bottom ? 0 : void 0;
|
|
929
|
+
return L !== h.e && E(c, "data-collapsed", h.e = L), h.t = ct(c, B, h.t), O !== h.a && E(C, "data-overflow-bottom", h.a = O), f !== h.o && E(C, "data-overflow-top", h.o = f), T !== h.i && E(y, "aria-label", h.i = T), U !== h.n && E(y, "data-testid", h.n = U), N !== h.s && E(y, "tabindex", h.s = N), h;
|
|
930
930
|
}, {
|
|
931
931
|
e: void 0,
|
|
932
932
|
t: void 0,
|
|
@@ -940,7 +940,7 @@ function Wn(e) {
|
|
|
940
940
|
});
|
|
941
941
|
}
|
|
942
942
|
function Zn(e) {
|
|
943
|
-
const t =
|
|
943
|
+
const t = ke(), o = t("chart.legendOverlays", "Chart marks");
|
|
944
944
|
return (() => {
|
|
945
945
|
var a = Tn(), m = a.firstChild;
|
|
946
946
|
return E(a, "aria-label", o), i(m, o), i(a, K(Ge, {
|