@iota-uz/sdk 0.26.0 → 0.27.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.
Files changed (57) hide show
  1. package/dist/client-host/identity.d.ts +4 -4
  2. package/dist/client-host/identity.js +2 -2
  3. package/dist/lens/{CascadePanel-DXykK3Re.js → CascadePanel-CCOzLuq0.js} +64 -64
  4. package/dist/lens/{ChartDataEquivalent--6Rkhu3O.js → ChartDataEquivalent-jAEMAHLz.js} +1 -1
  5. package/dist/lens/{ChartPanel-Cvy_m7Mj.js → ChartPanel-BM5BNY_0.js} +49 -49
  6. package/dist/lens/{CoveragePanel-Ck4WKij9.js → CoveragePanel-D9dnY-z3.js} +20 -20
  7. package/dist/lens/DashboardPanels.d.ts +14 -0
  8. package/dist/lens/DashboardPanels.d.ts.map +1 -1
  9. package/dist/lens/{GaugePanel-yQnz97pE.js → GaugePanel-Da_8U-va.js} +12 -12
  10. package/dist/lens/LensDashboard.d.ts +9 -0
  11. package/dist/lens/LensDashboard.d.ts.map +1 -1
  12. package/dist/lens/{MapPanel-DAsqidkl.js → MapPanel-C_5zKBAZ.js} +16 -16
  13. package/dist/lens/{MetricFlowPanel-DiV_hXg2.js → MetricFlowPanel-CjIbdcGO.js} +24 -24
  14. package/dist/lens/{MetricHierarchyPanel-Beb2HL8v.js → MetricHierarchyPanel-B2P_uTgk.js} +17 -17
  15. package/dist/lens/{MetricRelationshipPanel-WDA2X5G5.js → MetricRelationshipPanel-0d4fAcHP.js} +17 -17
  16. package/dist/lens/{PrintReport-DHVB36F1.js → PrintReport-awUBISRB.js} +5 -5
  17. package/dist/lens/{TablePanel-BSL-Qda_.js → TablePanel-D46pk8E6.js} +222 -222
  18. package/dist/lens/{adapter-C8B6E1pp.js → adapter-BJKTlRCi.js} +7 -7
  19. package/dist/lens/controls/FilterBar.d.ts +9 -2
  20. package/dist/lens/controls/FilterBar.d.ts.map +1 -1
  21. package/dist/lens/controls/ScopedFilterControls.d.ts.map +1 -1
  22. package/dist/lens/controls/toolbarOverflow.d.ts +5 -0
  23. package/dist/lens/controls/toolbarOverflow.d.ts.map +1 -0
  24. package/dist/lens/dashboardEdit-KuYE7jYk.js +284 -0
  25. package/dist/lens/icons.d.ts +6 -0
  26. package/dist/lens/icons.d.ts.map +1 -1
  27. package/dist/lens/{index-Bv8OdTZx.js → index-BHhPCIjl.js} +1 -1
  28. package/dist/lens/index-C2oaf8ou.js +17066 -0
  29. package/dist/lens/index.d.ts +1 -0
  30. package/dist/lens/index.d.ts.map +1 -1
  31. package/dist/lens/index.js +28 -28
  32. package/dist/lens/{install-B6C6Ofrh.js → install-Bu88-uMj.js} +1 -1
  33. package/dist/lens/{install-Cc71ldkx.js → install-Ca0kMSB-.js} +1 -1
  34. package/dist/lens/{install-CJiBw6fK.js → install-Y4ssavWy.js} +1 -1
  35. package/dist/lens/{install-BZZf8fGf.js → install-ilsK_qly.js} +1 -1
  36. package/dist/lens/{keys-CDuPhptC.js → keys-B-YImOJ9.js} +2 -2
  37. package/dist/lens/{metricViews-DSt7U_tR.js → metricViews-CY3ENGQy.js} +10 -10
  38. package/dist/lens/{prefetch-CdqkJU0Q.js → prefetch-H6lk56fj.js} +2 -2
  39. package/dist/lens/{prefetchPanels-DWdWaKBW.js → prefetchPanels-BM6WTBt-.js} +5 -5
  40. package/dist/lens/{print-pZ6_K3m5.js → print-DYkxBibF.js} +1 -1
  41. package/dist/lens/reports/DashboardEmptyState.d.ts +6 -0
  42. package/dist/lens/reports/DashboardEmptyState.d.ts.map +1 -0
  43. package/dist/lens/reports/ReportCompositionEditor.d.ts +11 -15
  44. package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -1
  45. package/dist/lens/reports/dashboardEdit.d.ts +128 -0
  46. package/dist/lens/reports/dashboardEdit.d.ts.map +1 -0
  47. package/dist/lens/reports/dashboardEditTypes.d.ts +45 -0
  48. package/dist/lens/reports/dashboardEditTypes.d.ts.map +1 -0
  49. package/dist/lens/reports/editing.d.ts +176 -0
  50. package/dist/lens/reports/editing.d.ts.map +1 -0
  51. package/dist/lens/{scales-BgYelCDe.js → scales-COnESBiP.js} +1 -1
  52. package/dist/lens/style.css +1 -1
  53. package/dist/sdk-identity.cjs +3 -3
  54. package/dist/sdk-identity.js +3 -3
  55. package/dist/sdk-identity.json +2 -2
  56. package/package.json +1 -1
  57. package/dist/lens/index-D0vCs6QJ.js +0 -16447
@@ -1,10 +1,10 @@
1
- import { insert as i, memo as P, effect as G, setAttribute as H, createComponent as K, className as Ge, template as C, addEventListener as bt, style as ct, use as St, setStyleProperty as $t, delegateEvents as xt } from "solid-js/web";
2
- import { createSignal as se, createMemo as R, onCleanup as Be, untrack as De, createEffect as xe, For as Je, Show as ne } from "solid-js";
1
+ import { insert as i, memo as P, effect as Y, setAttribute as H, createComponent as K, className as Ye, template as C, addEventListener as bt, style as ct, use as St, setStyleProperty as $t, delegateEvents as xt } from "solid-js/web";
2
+ import { createSignal as se, createMemo as R, onCleanup as Be, untrack as De, createEffect as xe, For as Ge, Show as ne } from "solid-js";
3
3
  import { r as _t } from "./adapter-CgoRd_uP.js";
4
- import { C as It, f as Ct } from "./keys-CDuPhptC.js";
5
- import { s as Lt, o as Pe, c as kt, a as Ft, b as At, d as Kt, f as Tt } from "./scales-BgYelCDe.js";
6
- import { t as Rt, u as Fe, g as dt, x as Et, y as nt, z as ot, l as Ht, A as Bt, B as Mt, C as Ot, D as Nt, a as Ut, E as Vt, G as zt, H as rt, m as ut, n as gt, k as mt, I as Dt, J as Pt, o as qt, K as Wt, L as Zt, P as jt, W as Qt, M as D, N as at, O as Gt, Q as qe, R as Jt, S as Yt, T as Xt, U as en } from "./index-D0vCs6QJ.js";
7
- import { C as tn, c as nn } from "./ChartDataEquivalent--6Rkhu3O.js";
4
+ import { C as It, f as Ct } from "./keys-B-YImOJ9.js";
5
+ import { s as Lt, o as Pe, c as kt, a as Ft, b as At, d as Kt, f as Tt } from "./scales-COnESBiP.js";
6
+ import { H as Rt, u as Fe, g as dt, I as Et, J as nt, K as ot, l as Ht, M as Bt, N as Mt, O as Ot, Q as Nt, a as Ut, R as Vt, T as zt, U as rt, m as ut, n as gt, k as mt, V as Dt, W as Pt, o as qt, X as Wt, Y as Zt, Z as jt, _ as Qt, $ as D, a0 as at, a1 as Yt, a2 as qe, a3 as Gt, a4 as Jt, a5 as Xt, a6 as en } from "./index-C2oaf8ou.js";
7
+ import { C as tn, c as nn } from "./ChartDataEquivalent-jAEMAHLz.js";
8
8
  var on = /* @__PURE__ */ C("<div class=lens-temporal-controls>"), rn = /* @__PURE__ */ C("<button class=lens-temporal-toggle type=button>"), an = /* @__PURE__ */ C("<select class=lens-temporal-select><option value>"), ln = /* @__PURE__ */ C("<option>"), sn = /* @__PURE__ */ C("<span class=lens-chart-source-note role=note>"), cn = /* @__PURE__ */ C("<span class=lens-chart-log-scale role=note><span>"), dn = /* @__PURE__ */ C("<span class=lens-chart-period-note role=note>"), un = /* @__PURE__ */ C("<button class=lens-chart-collapse-other type=button>"), gn = /* @__PURE__ */ C("<button class=lens-chart-reset-zoom type=button>"), mn = /* @__PURE__ */ C("<div class=lens-chart-notes><span class=lens-chart-notes-actions>"), hn = /* @__PURE__ */ C("<div><div class=lens-chart-area>"), fn = /* @__PURE__ */ C("<div class=lens-chart-empty role=status><span class=lens-chart-empty-note></span><button class=lens-chart-empty-action type=button>"), vn = /* @__PURE__ */ C("<span class=lens-chart-compact-empty>"), wn = /* @__PURE__ */ C("<strong class=lens-chart-compact-value>"), pn = /* @__PURE__ */ C("<span class=lens-chart-compact-label>"), yn = /* @__PURE__ */ C('<button class="lens-chart-compact lens-chart-compact-action"type=button>'), bn = /* @__PURE__ */ C("<div class=lens-chart-compact role=img>"), Sn = /* @__PURE__ */ C("<span class=lens-plot-total><span class=lens-panel-total-label>:</span> "), $n = /* @__PURE__ */ C('<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">'), xn = /* @__PURE__ */ C("<div class=lens-chart-legend-controls><div class=lens-chart-legend-tools role=group>"), Qe = /* @__PURE__ */ C("<button type=button>"), _n = /* @__PURE__ */ C("<button class=lens-chart-legend-invert type=button>"), In = /* @__PURE__ */ C("<label class=lens-chart-legend-search><span class=lens:sr-only></span><input class=lens-facet-search type=search>"), Cn = /* @__PURE__ */ C("<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>"), Ln = /* @__PURE__ */ C("<li class=lens-chart-legend-heading>"), ht = /* @__PURE__ */ C("<span class=lens-chart-legend-value>"), kn = /* @__PURE__ */ C("<button class=lens-chart-legend-overflow type=button>"), Fn = /* @__PURE__ */ C('<ul class="lens-chart-legend lens-chart-overlay-legend"><li class=lens-chart-legend-heading>'), An = /* @__PURE__ */ C("<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>"), Kn = /* @__PURE__ */ C("<span aria-hidden=true class=lens-chart-legend-separator>·");
9
9
  const Tn = 0.02, Rn = en, En = 4;
10
10
  function Hn(e) {
@@ -25,14 +25,14 @@ function Hn(e) {
25
25
  cutLabel: M,
26
26
  final: q
27
27
  }, ue = /* @__PURE__ */ new Map();
28
- for (const Y of Gt) {
29
- const re = e.encoding[Y], X = ae[Y];
28
+ for (const J of Yt) {
29
+ const re = e.encoding[J], X = ae[J];
30
30
  re && X && ue.set(re, X);
31
31
  }
32
- return (Y, re) => (ue.get(Y) ?? t)(re);
32
+ return (J, re) => (ue.get(J) ?? t)(re);
33
33
  }), W = R(() => {
34
34
  const ae = e.encoding.value, ue = e.encoding.median;
35
- return (Y, re) => ae && Y === ae ? oe(re) : ue && Y === ue ? Q(re) : w()(Y, re);
35
+ return (J, re) => ae && J === ae ? oe(re) : ue && J === ue ? Q(re) : w()(J, re);
36
36
  });
37
37
  return {
38
38
  format: w(),
@@ -153,7 +153,7 @@ function it(e, t, o) {
153
153
  collapsed: !0
154
154
  };
155
155
  }
156
- function Yn(e) {
156
+ function Jn(e) {
157
157
  var tt;
158
158
  const t = e.panel, o = Rt(t.id), r = Fe(), {
159
159
  document: g,
@@ -165,21 +165,21 @@ function Yn(e) {
165
165
  formatAxis: b
166
166
  } = Hn(t), [$, S] = se(), [B, v] = se(!1), [m, M] = se(0), q = typeof window > "u" ? {
167
167
  regression: !1
168
- } : nt(new URL(window.location.href), t.id), [oe, Q] = se(q.regression), [w, W] = se(q.movingAverage), [ae, ue] = se(/* @__PURE__ */ new Set()), [Y, re] = se(typeof window > "u" ? /* @__PURE__ */ new Set() : ot(new URL(window.location.href), t.id)), X = R(() => Y()), _e = () => l.panelId === t.id && l.path.length > 0, ee = R(() => _e() ? Ht(g, l.path) : t.drillRoot ? g.drill.edges[t.drillRoot] : void 0), Ie = () => ee() ? ee().children.some(({
168
+ } : nt(new URL(window.location.href), t.id), [oe, Q] = se(q.regression), [w, W] = se(q.movingAverage), [ae, ue] = se(/* @__PURE__ */ new Set()), [J, re] = se(typeof window > "u" ? /* @__PURE__ */ new Set() : ot(new URL(window.location.href), t.id)), X = R(() => J()), _e = () => l.panelId === t.id && l.path.length > 0, ee = R(() => _e() ? Ht(g, l.path) : t.drillRoot ? g.drill.edges[t.drillRoot] : void 0), Ie = () => ee() ? ee().children.some(({
169
169
  target: n
170
- }) => n) : !!t.drillRoot, J = () => !!t.drillRoot || !!ee(), x = Bt(t);
170
+ }) => n) : !!t.drillRoot, G = () => !!t.drillRoot || !!ee(), x = Bt(t);
171
171
  let ie;
172
172
  const Me = (n) => {
173
- if (De(J) || !x.action || !o.data) return;
173
+ if (De(G) || !x.action || !o.data) return;
174
174
  const a = lt(o.data, t, n);
175
175
  return x.urlForRow(o.data, a >= 0 ? o.data.rows[a] : void 0);
176
176
  }, Ae = (n) => {
177
- ie == null || ie(), ie = void 0, !(n === null || De(J)) && (ie = x.prefetch(Me(n)));
177
+ ie == null || ie(), ie = void 0, !(n === null || De(G)) && (ie = x.prefetch(Me(n)));
178
178
  };
179
179
  Be(() => ie == null ? void 0 : ie());
180
180
  const Oe = R(() => {
181
181
  var n;
182
- return De(J) || ((n = x.action) == null ? void 0 : n.kind) !== "open_drawer" || !o.data ? [] : o.data.rows.length === 0 || o.data.rows.length > 4 ? [] : [...new Set(o.data.rows.flatMap((a) => {
182
+ return De(G) || ((n = x.action) == null ? void 0 : n.kind) !== "open_drawer" || !o.data ? [] : o.data.rows.length === 0 || o.data.rows.length > 4 ? [] : [...new Set(o.data.rows.flatMap((a) => {
183
183
  const s = x.urlForRow(o.data, a);
184
184
  return s ? [s] : [];
185
185
  }))];
@@ -338,7 +338,7 @@ function Yn(e) {
338
338
  var a = P(() => !!t.temporal.regression);
339
339
  return () => a() && (() => {
340
340
  var s = rn();
341
- return s.$$click = () => Q((d) => !d), i(s, () => r("chart.regression", "Trend")), G(() => H(s, "aria-pressed", oe())), s;
341
+ return s.$$click = () => Q((d) => !d), i(s, () => r("chart.regression", "Trend")), Y(() => H(s, "aria-pressed", oe())), s;
342
342
  })();
343
343
  })(), null), i(n, (() => {
344
344
  var a = P(() => {
@@ -347,7 +347,7 @@ function Yn(e) {
347
347
  });
348
348
  return () => a() && (() => {
349
349
  var s = an(), d = s.firstChild;
350
- return s.addEventListener("change", (u) => W(u.target.value ? Number(u.target.value) : void 0)), i(d, () => r("chart.movingAverage", "Moving average")), i(s, K(Je, {
350
+ return s.addEventListener("change", (u) => W(u.target.value ? Number(u.target.value) : void 0)), i(d, () => r("chart.movingAverage", "Moving average")), i(s, K(Ge, {
351
351
  get each() {
352
352
  return t.temporal.movingAverages;
353
353
  },
@@ -358,7 +358,7 @@ function Yn(e) {
358
358
  var te = ln();
359
359
  return te.value = u, i(te, z || `SMA ${u}`), te;
360
360
  })()
361
- }), null), G(() => H(s, "aria-label", r("chart.movingAverage", "Moving average"))), G(() => s.value = w() ?? ""), s;
361
+ }), null), Y(() => H(s, "aria-label", r("chart.movingAverage", "Moving average"))), Y(() => s.value = w() ?? ""), s;
362
362
  })();
363
363
  })(), null), n;
364
364
  })() : void 0, pe = R(() => ({
@@ -437,14 +437,14 @@ function Yn(e) {
437
437
  });
438
438
  }), fe = Zt(), He = () => {
439
439
  var n;
440
- return J() ? fe ? !!(((n = ee()) == null ? void 0 : n.children.length) ?? t.drillRoot) : Ie() : !!x.action;
441
- }, Ye = le === "histogram" || le === "boxplot" || le === "heatmap", Ve = () => Te() && !Ye, je = (n, a, s) => {
440
+ return G() ? fe ? !!(((n = ee()) == null ? void 0 : n.children.length) ?? t.drillRoot) : Ie() : !!x.action;
441
+ }, Je = le === "histogram" || le === "boxplot" || le === "heatmap", Ve = () => Te() && !Je, je = (n, a, s) => {
442
442
  const d = y(), u = d.frame ? d.frame.rows.length - 1 : -1;
443
443
  if (d.collapsed && !!(n === f() || d.frame && lt(d.frame, t, n) === u)) {
444
444
  v((de) => !de);
445
445
  return;
446
446
  }
447
- if (!De(J)) {
447
+ if (!De(G)) {
448
448
  const de = Me(n);
449
449
  x.activate(de, void 0, {
450
450
  newTab: s == null ? void 0 : s.newTab
@@ -468,7 +468,7 @@ function Yn(e) {
468
468
  actionHint: yt()
469
469
  } : ye());
470
470
  return K(jt, {
471
- allowEmptyContent: !Ye,
471
+ allowEmptyContent: !Je,
472
472
  headerActions: j,
473
473
  panel: t,
474
474
  frame: o,
@@ -514,7 +514,7 @@ function Yn(e) {
514
514
  var u = cn(), z = u.firstChild;
515
515
  return i(u, K(Qt, {
516
516
  "aria-hidden": "true"
517
- }), z), i(z, () => r("chart.logScale", "Logarithmic scale")), G(() => H(u, "title", r("chart.logScaleHint", "Values are shown on a logarithmic scale"))), u;
517
+ }), z), i(z, () => r("chart.logScale", "Logarithmic scale")), Y(() => H(u, "title", r("chart.logScaleHint", "Values are shown on a logarithmic scale"))), u;
518
518
  }
519
519
  }), d), i(s, K(ne, {
520
520
  get when() {
@@ -657,7 +657,7 @@ function Yn(e) {
657
657
  }
658
658
  });
659
659
  }
660
- }), null), G(() => Ge(n, `lens-chart-layout${Xe() ? " lens-chart-layout-legend" : ""}`)), n;
660
+ }), null), Y(() => Ye(n, `lens-chart-layout${Xe() ? " lens-chart-layout-legend" : ""}`)), n;
661
661
  }
662
662
  });
663
663
  }
@@ -685,7 +685,7 @@ function Vn(e) {
685
685
  return w.$$click = () => {
686
686
  var W;
687
687
  return (W = e.onSelect) == null ? void 0 : W.call(e, m);
688
- }, i(w, M), G(() => H(w, "aria-label", `${q}. ${t("chart.openMark", "Open {name}", {
688
+ }, i(w, M), Y(() => H(w, "aria-label", `${q}. ${t("chart.openMark", "Open {name}", {
689
689
  name: $ ?? m
690
690
  })}`)), w;
691
691
  })() : (() => {
@@ -710,11 +710,11 @@ function Dn(e) {
710
710
  const [$, S] = se({
711
711
  top: !1,
712
712
  bottom: !1
713
- }), [B, v] = se(0), [m, M] = se(!1), q = ft(o, t), oe = q >= 0 ? t.encoding.series : t.encoding.label ?? t.encoding.category, Q = t.encoding.value, w = D(Q ? t.format[Q] : void 0), W = o.columns.findIndex((c) => c.name === oe), ae = o.columns.findIndex((c) => c.name === Q), ue = D(oe ? t.format[oe] : void 0), Y = () => g.panelId === t.id && g.path.length > 0, re = ut(o, t), X = gt(r.theme, t, o, !Y()), _e = mt(r.theme, t, {
713
+ }), [B, v] = se(0), [m, M] = se(!1), q = ft(o, t), oe = q >= 0 ? t.encoding.series : t.encoding.label ?? t.encoding.category, Q = t.encoding.value, w = D(Q ? t.format[Q] : void 0), W = o.columns.findIndex((c) => c.name === oe), ae = o.columns.findIndex((c) => c.name === Q), ue = D(oe ? t.format[oe] : void 0), J = () => g.panelId === t.id && g.path.length > 0, re = ut(o, t), X = gt(r.theme, t, o, !J()), _e = mt(r.theme, t, {
714
714
  colors: o.colors,
715
- positional: !Y(),
715
+ positional: !J(),
716
716
  labels: re
717
- }), 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, J = ((Ne = t.radial) == null ? void 0 : Ne.mode) === "partition", x = R(() => {
717
+ }), 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 = ((Ne = t.radial) == null ? void 0 : Ne.mode) === "partition", x = R(() => {
718
718
  var ge, me;
719
719
  const c = o.rows.map((p, k) => {
720
720
  const F = ee >= 0 ? p[ee] : p[W];
@@ -725,7 +725,7 @@ function Dn(e) {
725
725
  return String(typeof F == "string" || typeof F == "number" || typeof F == "bigint" ? F : k);
726
726
  });
727
727
  let y = o.rows.map((p, k) => k);
728
- if (q >= 0 || J) {
728
+ if (q >= 0 || G) {
729
729
  const p = /* @__PURE__ */ new Set();
730
730
  y = [];
731
731
  for (let k = 0; k < o.rows.length; k += 1) {
@@ -734,12 +734,12 @@ function Dn(e) {
734
734
  }
735
735
  }
736
736
  const f = y.map((p) => A[p]), L = new Map(y.map((p, k) => [p, k])), E = /* @__PURE__ */ new Map();
737
- J && c.forEach((p) => {
737
+ G && c.forEach((p) => {
738
738
  E.has(p) || E.set(p, E.size);
739
739
  });
740
740
  const O = new Map((((ge = t.radial) == null ? void 0 : ge.rings) ?? []).map((p) => [p.key, p.total])), h = /* @__PURE__ */ new Map();
741
741
  for (let p = 0; p < o.rows.length; p += 1) {
742
- const k = Ie >= 0 ? (me = o.rows[p]) == null ? void 0 : me[Ie] : void 0, F = J && typeof k == "string" ? k : "", V = J ? O.get(F) ?? e.total : e.total, U = J ? F : String(V), Se = h.get(U) ?? {
742
+ const k = Ie >= 0 ? (me = o.rows[p]) == null ? void 0 : me[Ie] : void 0, F = G && typeof k == "string" ? k : "", V = G ? O.get(F) ?? e.total : e.total, U = G ? F : String(V), Se = h.get(U) ?? {
743
743
  denominator: V,
744
744
  indices: []
745
745
  };
@@ -757,7 +757,7 @@ function Dn(e) {
757
757
  Kt(F, p).forEach((V, U) => T.set(k[U], V));
758
758
  }
759
759
  const N = /* @__PURE__ */ new Map();
760
- J && c.forEach((p) => N.set(p, (N.get(p) ?? 0) + 1));
760
+ G && c.forEach((p) => N.set(p, (N.get(p) ?? 0) + 1));
761
761
  const Z = /* @__PURE__ */ new Map();
762
762
  ae >= 0 && o.rows.forEach((p, k) => {
763
763
  var U;
@@ -767,7 +767,7 @@ function Dn(e) {
767
767
  q >= 0 && Q && ((U = t.format[Q]) == null ? void 0 : U.kind) !== "percent" ? Z.set(V, (Z.get(V) ?? 0) + F) : Z.set(V, F);
768
768
  });
769
769
  const ce = /* @__PURE__ */ new Map();
770
- return J && Ie >= 0 && y.forEach((p) => {
770
+ return G && Ie >= 0 && y.forEach((p) => {
771
771
  var F;
772
772
  const k = (F = o.rows[p]) == null ? void 0 : F[Ie];
773
773
  typeof k == "string" && ce.set(p, k);
@@ -788,7 +788,7 @@ function Dn(e) {
788
788
  if (q >= 0) return X(x().entryKeys[A], y);
789
789
  const f = ee >= 0 ? (E = o.rows[A]) == null ? void 0 : E[ee] : void 0, L = typeof f == "string" && f.trim() !== "" ? f : void 0;
790
790
  return _e(c, x().categoryOrder.get(x().rowKeys[A]) ?? A, L);
791
- }, Me = ((Re = e.presentation) == null ? void 0 : Re.legendValue) === "percent", Ae = (c) => q >= 0 ? "value" : Me ? "percent" : J ? x().rowsPerKey.get(x().rowKeys[c]) === 1 ? "percent" : "none" : "value", Oe = () => _().trim().toLocaleLowerCase(), Ke = R(() => Oe() === "" ? x().entries : x().entries.filter((c) => {
791
+ }, Me = ((Re = e.presentation) == null ? void 0 : Re.legendValue) === "percent", Ae = (c) => q >= 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) => {
792
792
  var y;
793
793
  const A = (y = o.rows[c]) == null ? void 0 : y[W];
794
794
  return ke(A).toLocaleLowerCase().includes(Oe());
@@ -835,13 +835,13 @@ function Dn(e) {
835
835
  var O = P(() => !!Te());
836
836
  return () => O() ? [(() => {
837
837
  var h = Qe();
838
- return h.$$click = () => e.onSetHidden(new Set(x().allKeys)), i(h, () => l("chart.legendHideAll", "Hide all")), G(() => H(h, "aria-pressed", we())), h;
838
+ return h.$$click = () => e.onSetHidden(new Set(x().allKeys)), i(h, () => l("chart.legendHideAll", "Hide all")), Y(() => H(h, "aria-pressed", we())), h;
839
839
  })(), (() => {
840
840
  var h = Qe();
841
- return h.$$click = () => e.onSetHidden(/* @__PURE__ */ new Set()), i(h, () => l("chart.legendShowAll", "Show all")), G(() => H(h, "aria-pressed", Ze())), h;
841
+ return h.$$click = () => e.onSetHidden(/* @__PURE__ */ new Set()), i(h, () => l("chart.legendShowAll", "Show all")), Y(() => H(h, "aria-pressed", Ze())), h;
842
842
  })(), (() => {
843
843
  var h = _n();
844
- return h.$$click = () => e.onSetHidden(new Set(x().allKeys.filter((T) => !e.hidden.has(T)))), i(h, K(Jt, {})), G((T) => {
844
+ return h.$$click = () => e.onSetHidden(new Set(x().allKeys.filter((T) => !e.hidden.has(T)))), i(h, K(Gt, {})), Y((T) => {
845
845
  var N = l("chart.legendInvert", "Invert"), Z = l("chart.legendInvert", "Invert");
846
846
  return N !== T.e && H(h, "aria-label", T.e = N), Z !== T.t && H(h, "title", T.t = Z), T;
847
847
  }, {
@@ -859,9 +859,9 @@ function Dn(e) {
859
859
  var O = P(() => !!Te());
860
860
  return () => O() && (() => {
861
861
  var h = In(), T = h.firstChild, N = T.nextSibling;
862
- return i(T, () => l("chart.legendSearch", "Search legend")), N.addEventListener("change", (Z) => I(Z.currentTarget.value)), G(() => H(N, "placeholder", l("chart.legendSearch", "Search legend"))), G(() => N.value = _()), h;
862
+ return i(T, () => l("chart.legendSearch", "Search legend")), N.addEventListener("change", (Z) => I(Z.currentTarget.value)), Y(() => H(N, "placeholder", l("chart.legendSearch", "Search legend"))), Y(() => N.value = _()), h;
863
863
  })();
864
- })(), null), G((O) => {
864
+ })(), null), Y((O) => {
865
865
  var h = l("chart.legendControls", "Legend controls"), T = Te() ? "many" : "one";
866
866
  return h !== O.e && H(E, "aria-label", O.e = h), T !== O.t && H(E, "data-members", O.t = T), O;
867
867
  }, {
@@ -871,7 +871,7 @@ function Dn(e) {
871
871
  })();
872
872
  })(), A), St((f) => {
873
873
  b = f;
874
- }, y), i(y, K(Je, {
874
+ }, y), i(y, K(Ge, {
875
875
  get each() {
876
876
  return Ke();
877
877
  },
@@ -897,10 +897,10 @@ function Dn(e) {
897
897
  })();
898
898
  })(), Ue), i(Ue, (() => {
899
899
  var j = P(() => !!Z());
900
- return () => j() ? K(Yt, {}) : K(Xt, {});
901
- })()), G((j) => {
900
+ return () => j() ? K(Jt, {}) : K(Xt, {});
901
+ })()), Y((j) => {
902
902
  var pe = !Z(), ye = `lens-chart-legend-toggle${Z() ? " 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, f, O);
903
- return pe !== j.e && H(U, "aria-pressed", j.e = pe), ye !== j.t && Ge(U, j.t = ye), he !== j.a && H(U, "data-testid", j.a = he), fe !== j.o && H(U, "title", j.o = fe), He !== j.i && $t(Se, "background", j.i = He), j;
903
+ return pe !== j.e && H(U, "aria-pressed", j.e = pe), ye !== j.t && Ye(U, j.t = ye), he !== j.a && H(U, "data-testid", j.a = he), fe !== j.o && H(U, "title", j.o = fe), He !== j.i && $t(Se, "background", j.i = He), j;
904
904
  }, {
905
905
  e: void 0,
906
906
  t: void 0,
@@ -921,7 +921,7 @@ function Dn(e) {
921
921
  });
922
922
  })()), L;
923
923
  })();
924
- })(), null), G((f) => {
924
+ })(), null), Y((f) => {
925
925
  var L = m() ? {
926
926
  "--lens-chart-legend-max": "none"
927
927
  } : void 0, E = $().bottom || void 0, O = $().top || void 0, h = l("chart.legendControls", "Legend controls"), T = `lens-panel-${t.id}-legend`, N = $().top || $().bottom ? 0 : void 0;
@@ -941,7 +941,7 @@ function Pn(e) {
941
941
  const t = Fe(), o = t("chart.legendOverlays", "Chart marks");
942
942
  return (() => {
943
943
  var r = Fn(), g = r.firstChild;
944
- return H(r, "aria-label", o), i(g, o), i(r, K(Je, {
944
+ return H(r, "aria-label", o), i(g, o), i(r, K(Ge, {
945
945
  get each() {
946
946
  return e.overlays;
947
947
  },
@@ -953,11 +953,11 @@ function Pn(e) {
953
953
  var B = ht();
954
954
  return i(B, () => l.detail), B;
955
955
  })()];
956
- })(), null), G((S) => {
956
+ })(), null), Y((S) => {
957
957
  var B = l.active, v = `lens-chart-legend-toggle${l.active ? "" : " lens-chart-legend-hidden"}`, m = t("chart.legendToggleOverlay", "Show or hide this mark"), M = l.stroke, q = {
958
958
  "--lens-overlay-ink": `var(${At(l.tone)})`
959
959
  };
960
- return B !== S.e && H(I, "aria-pressed", S.e = B), v !== S.t && Ge(I, S.t = v), m !== S.a && H(I, "title", S.a = m), M !== S.o && H(b, "data-stroke", S.o = M), S.i = ct(b, q, S.i), S;
960
+ return B !== S.e && H(I, "aria-pressed", S.e = B), v !== S.t && Ye(I, S.t = v), m !== S.a && H(I, "title", S.a = m), M !== S.o && H(b, "data-stroke", S.o = M), S.i = ct(b, q, S.i), S;
961
961
  }, {
962
962
  e: void 0,
963
963
  t: void 0,
@@ -971,7 +971,7 @@ function Pn(e) {
971
971
  }
972
972
  xt(["click", "dblclick"]);
973
973
  export {
974
- Yn as ChartPanel,
974
+ Jn as ChartPanel,
975
975
  st as collapseExpandableTopN,
976
976
  it as collapseMinorDonutSlices,
977
977
  vt as donutRemainderKey,
@@ -1,8 +1,8 @@
1
- import { createComponent as f, insert as c, memo as D, effect as _, setAttribute as k, setStyleProperty as E, addEventListener as J, template as h, className as K, style as O, delegateEvents as Q } from "solid-js/web";
2
- import { createMemo as W, createSignal as X, For as R, Show as I } from "solid-js";
3
- import { t as Y, u as Z, a1 as F, M as q, g as ee, a6 as te, m as ae, A as re, P as ne, a7 as le, a2 as A, a3 as B } from "./index-D0vCs6QJ.js";
1
+ import { createComponent as f, insert as c, memo as D, effect as _, setAttribute as k, setStyleProperty as E, addEventListener as G, template as h, className as J, style as K, delegateEvents as O } from "solid-js/web";
2
+ import { createMemo as Q, createSignal as W, For as R, Show as I } from "solid-js";
3
+ import { H as X, u as Y, ae as F, $ as Z, g as ee, aj as te, m as ae, M as re, Z as ne, ak as le, af as B, ag as H } from "./index-C2oaf8ou.js";
4
4
  import "solid-js/store";
5
- var oe = /* @__PURE__ */ h("<span>"), ie = /* @__PURE__ */ h("<div class=lens-coverage-bullet><div class=lens-coverage-track aria-hidden=true></div><span aria-hidden=true class=lens-coverage-bullet-marker>"), z = /* @__PURE__ */ h("<span class=lens-coverage-track-segment>"), se = /* @__PURE__ */ h("<div class=lens-coverage><p class=lens-coverage-headline><span class=lens-coverage-headline-value></span><span class=lens-coverage-headline-label></span></p><ul class=lens-coverage-legend>"), ce = /* @__PURE__ */ h("<div class=lens-coverage-track>"), de = /* @__PURE__ */ h("<span aria-hidden=true class=lens-coverage-legend-bullet>"), ve = /* @__PURE__ */ h("<span class=lens-coverage-legend-label>"), ue = /* @__PURE__ */ h("<span class=lens-coverage-legend-value>"), ge = /* @__PURE__ */ h("<span class=lens-coverage-legend-share>"), he = /* @__PURE__ */ h("<a class=lens-coverage-legend-link>"), me = /* @__PURE__ */ h("<li class=lens-coverage-legend-row>");
5
+ var oe = /* @__PURE__ */ h("<span>"), ie = /* @__PURE__ */ h("<div class=lens-coverage-bullet><div class=lens-coverage-track aria-hidden=true></div><span aria-hidden=true class=lens-coverage-bullet-marker>"), q = /* @__PURE__ */ h("<span class=lens-coverage-track-segment>"), se = /* @__PURE__ */ h("<div class=lens-coverage><p class=lens-coverage-headline><span class=lens-coverage-headline-value></span><span class=lens-coverage-headline-label></span></p><ul class=lens-coverage-legend>"), ce = /* @__PURE__ */ h("<div class=lens-coverage-track>"), de = /* @__PURE__ */ h("<span aria-hidden=true class=lens-coverage-legend-bullet>"), ve = /* @__PURE__ */ h("<span class=lens-coverage-legend-label>"), ue = /* @__PURE__ */ h("<span class=lens-coverage-legend-value>"), ge = /* @__PURE__ */ h("<span class=lens-coverage-legend-share>"), he = /* @__PURE__ */ h("<a class=lens-coverage-legend-link>"), me = /* @__PURE__ */ h("<li class=lens-coverage-legend-row>");
6
6
  function be(t) {
7
7
  if (typeof t == "number" && Number.isFinite(t)) return t;
8
8
  if (typeof t == "string" && t.trim()) {
@@ -12,16 +12,16 @@ function be(t) {
12
12
  return 0;
13
13
  }
14
14
  function ke(t, e, o) {
15
- const w = A(e, F(t, "label") ?? F(t, "category") ?? "label"), L = A(e, F(t, "value") ?? "value"), $ = A(e, F(t, "id")), m = e.rows.map((r) => Math.max(0, be(r[L]))), y = m.reduce((r, n) => r + n, 0);
15
+ const w = B(e, F(t, "label") ?? F(t, "category") ?? "label"), L = B(e, F(t, "value") ?? "value"), $ = B(e, F(t, "id")), m = e.rows.map((r) => Math.max(0, be(r[L]))), y = m.reduce((r, n) => r + n, 0);
16
16
  return {
17
17
  segments: e.rows.map((r, n) => {
18
- const d = $ >= 0 ? B(r[$], String(n)) : String(n), i = m[n] ?? 0;
18
+ const d = $ >= 0 ? H(r[$], String(n)) : String(n), i = m[n] ?? 0;
19
19
  return {
20
20
  key: d,
21
- label: B(r[w], `#${n + 1}`),
21
+ label: H(r[w], `#${n + 1}`),
22
22
  value: i,
23
23
  share: y > 0 ? i / y : 0,
24
- color: o(B(r[w], d), n)
24
+ color: o(H(r[w], d), n)
25
25
  };
26
26
  }),
27
27
  total: y
@@ -43,7 +43,7 @@ function fe(t) {
43
43
  return r.value > 0;
44
44
  },
45
45
  get children() {
46
- var n = z();
46
+ var n = q();
47
47
  return n.addEventListener("pointerleave", () => t.onSegmentLeave(r.key)), n.addEventListener("pointerenter", () => t.onSegmentEnter(r.key)), _((d) => {
48
48
  var i = t.activeSegment === r.key || void 0, x = o(r.value), p = r.color;
49
49
  return i !== d.e && k(n, "data-highlighted", d.e = i), x !== d.t && E(n, "width", d.t = x), p !== d.a && E(n, "background", d.a = p), d;
@@ -58,7 +58,7 @@ function fe(t) {
58
58
  when: L,
59
59
  get children() {
60
60
  var r = oe();
61
- return K(r, `lens-coverage-bullet-label${w > 0.5 ? " lens-coverage-bullet-label-end" : ""}`), k(r, "title", L), c(r, L), _((n) => O(r, w > 0.5 ? {
61
+ return J(r, `lens-coverage-bullet-label${w > 0.5 ? " lens-coverage-bullet-label-end" : ""}`), k(r, "title", L), c(r, L), _((n) => K(r, w > 0.5 ? {
62
62
  right: o(e - t.target.value),
63
63
  "max-width": o(t.target.value)
64
64
  } : {
@@ -70,13 +70,13 @@ function fe(t) {
70
70
  })();
71
71
  }
72
72
  function we(t) {
73
- const e = t.panel, o = Y(e.id), w = Z(), L = F(e, "value") ?? "value", $ = q(e.format[L]), m = q({
73
+ const e = t.panel, o = X(e.id), w = Y(), L = F(e, "value") ?? "value", $ = Z(e.format[L]), m = Z({
74
74
  kind: "percent",
75
75
  minorUnits: !1,
76
76
  precision: 0
77
77
  }), {
78
78
  document: y
79
- } = ee(), S = W(() => o.data ? ke(e, o.data, te(y.theme, e, {
79
+ } = ee(), S = Q(() => o.data ? ke(e, o.data, te(y.theme, e, {
80
80
  labels: ae(o.data, e)
81
81
  })) : {
82
82
  segments: [],
@@ -84,7 +84,7 @@ function we(t) {
84
84
  }), r = () => e.headline ?? e.total ?? S().total, n = () => S().segments.reduce((v, b) => v + (b.value > 0 ? 1 : 0), 0), d = () => n() > 1 || !!e.target && n() > 0, i = re(e), x = () => i.cardURL(o.data), p = (v) => {
85
85
  var b;
86
86
  return i.rowScoped ? i.urlForRow(o.data, (b = o.data) == null ? void 0 : b.rows[v]) : void 0;
87
- }, [P, H] = X(), M = (v) => H(v), N = (v) => H((b) => b === v ? void 0 : b);
87
+ }, [P, j] = W(), M = (v) => j(v), N = (v) => j((b) => b === v ? void 0 : b);
88
88
  return f(ne, {
89
89
  panel: e,
90
90
  frame: o,
@@ -100,8 +100,8 @@ function we(t) {
100
100
  return i.onClick(x());
101
101
  },
102
102
  get children() {
103
- var v = se(), b = v.firstChild, U = b.firstChild, G = U.nextSibling, T = b.nextSibling;
104
- return c(U, () => $(r())), c(G, () => w("panel.total", "Total")), c(v, (() => {
103
+ var v = se(), b = v.firstChild, A = b.firstChild, z = A.nextSibling, T = b.nextSibling;
104
+ return c(A, () => $(r())), c(z, () => w("panel.total", "Total")), c(v, (() => {
105
105
  var s = D(() => !!(d() && !e.target));
106
106
  return () => s() && (() => {
107
107
  var C = ce();
@@ -114,10 +114,10 @@ function we(t) {
114
114
  return l.value > 0;
115
115
  },
116
116
  get children() {
117
- var g = z();
117
+ var g = q();
118
118
  return g.addEventListener("pointerleave", () => N(l.key)), g.addEventListener("pointerenter", () => M(l.key)), _((a) => {
119
- var u = P() === l.key || void 0, V = `${l.share * 100}%`, j = l.color;
120
- return u !== a.e && k(g, "data-highlighted", a.e = u), V !== a.t && E(g, "width", a.t = V), j !== a.a && E(g, "background", a.a = j), a;
119
+ var u = P() === l.key || void 0, U = `${l.share * 100}%`, V = l.color;
120
+ return u !== a.e && k(g, "data-highlighted", a.e = u), U !== a.t && E(g, "width", a.t = U), V !== a.a && E(g, "background", a.a = V), a;
121
121
  }, {
122
122
  e: void 0,
123
123
  t: void 0,
@@ -178,7 +178,7 @@ function we(t) {
178
178
  fallback: g,
179
179
  get children() {
180
180
  var u = he();
181
- return J(u, "click", i.onClick(l), !0), u.addEventListener("focus", () => M(s.key)), u.addEventListener("blur", () => N(s.key)), k(u, "href", l), c(u, g), u;
181
+ return G(u, "click", i.onClick(l), !0), u.addEventListener("focus", () => M(s.key)), u.addEventListener("blur", () => N(s.key)), k(u, "href", l), c(u, g), u;
182
182
  }
183
183
  })), _(() => k(a, "data-highlighted", P() === s.key || void 0)), a;
184
184
  })();
@@ -189,7 +189,7 @@ function we(t) {
189
189
  }
190
190
  });
191
191
  }
192
- Q(["click"]);
192
+ O(["click"]);
193
193
  export {
194
194
  we as CoveragePanel,
195
195
  ke as buildCoverageSegments
@@ -3,11 +3,19 @@ import type { LayoutGroup, LayoutItem, LayoutRow } from './contract';
3
3
  import type { LensToolbarContext } from './LensDashboard';
4
4
  import { type PanelRegistry } from './panels/registry';
5
5
  import { type CalendarDate } from './controls';
6
+ import type { LensDashboardChrome, LensDashboardEditing } from './reports/dashboardEditTypes';
7
+ import type { LensThemeMode } from './runtime';
6
8
  export interface DashboardPanelsProps {
7
9
  toolbar?: (context: LensToolbarContext) => JSX.Element;
8
10
  registry?: PanelRegistry;
9
11
  /** Fixed calendar "today" for deterministic stories and visual regression. */
10
12
  filterToday?: CalendarDate;
13
+ edit?: LensDashboardEditing;
14
+ chrome?: LensDashboardChrome;
15
+ theme?: LensThemeMode;
16
+ locale?: string;
17
+ csrf?: string;
18
+ fetcher?: typeof fetch;
11
19
  }
12
20
  interface LayoutCluster {
13
21
  group?: LayoutGroup;
@@ -34,6 +42,12 @@ export declare function metricColumnCount(rows: LayoutRow[]): number;
34
42
  * that failed to load) while every seam still lands on a column line.
35
43
  */
36
44
  export declare function metricSpans(count: number, columns: number): number[];
45
+ interface PlacementSource {
46
+ group: LayoutGroup;
47
+ items: LayoutItem[];
48
+ }
49
+ /** The report placements of a composed document: outermost grid groups, keyed by placement id, with their items. */
50
+ export declare function documentPlacements(rows: LayoutRow[]): Map<string, PlacementSource>;
37
51
  export declare function DashboardPanels(props: DashboardPanelsProps): JSX.Element;
38
52
  export {};
39
53
  //# sourceMappingURL=DashboardPanels.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardPanels.d.ts","sourceRoot":"","sources":["../src/DashboardPanels.tsx"],"names":[],"mappings":"AACA,OAAO,EAWL,KAAK,GAAG,EACT,MAAM,UAAU,CAAA;AAEjB,OAAO,KAAK,EAAU,WAAW,EAAE,UAAU,EAAE,SAAS,EAAS,MAAM,YAAY,CAAA;AACnF,OAAO,KAAK,EAAE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, setStyleProperty as L, template as B } from "solid-js/web";
2
- import { t as G, u as R, M as T, P as j } from "./index-D0vCs6QJ.js";
2
+ import { H as G, u as H, $ as R, Z as T } from "./index-C2oaf8ou.js";
3
3
  import "solid-js";
4
4
  import "solid-js/store";
5
- var q = /* @__PURE__ */ B('<div aria-valuemin=0 class=lens-gauge role=meter><svg aria-hidden=true class=lens-gauge-arc viewBox="0 0 120 70"><path class=lens-gauge-track d="M10 60 A50 50 0 0 1 110 60"pathLength=100></path><path class=lens-gauge-value-arc d="M10 60 A50 50 0 0 1 110 60"pathLength=100></path></svg><div class=lens-gauge-reading><strong></strong><span></span></div><div aria-hidden=true class=lens-gauge-scale><span></span><span>');
6
- function z(n) {
5
+ var Z = /* @__PURE__ */ B('<div aria-valuemin=0 class=lens-gauge role=meter><svg aria-hidden=true class=lens-gauge-arc viewBox="0 0 120 70"><path class=lens-gauge-track d="M10 60 A50 50 0 0 1 110 60"pathLength=100></path><path class=lens-gauge-value-arc d="M10 60 A50 50 0 0 1 110 60"pathLength=100></path></svg><div class=lens-gauge-reading><strong></strong><span></span></div><div aria-hidden=true class=lens-gauge-scale><span></span><span>');
6
+ function j(n) {
7
7
  if (typeof n == "number" && Number.isFinite(n)) return n;
8
8
  if (typeof n != "string" || n.trim() === "") return;
9
9
  const a = Number(n);
10
10
  return Number.isFinite(a) ? a : void 0;
11
11
  }
12
- function K(n) {
12
+ function J(n) {
13
13
  var p, x;
14
- const a = n.panel, o = G(a.id), d = R(), m = a.encoding.value, c = ((p = o.data) == null ? void 0 : p.columns.findIndex((e) => e.name === m)) ?? -1, g = () => {
14
+ const a = n.panel, o = G(a.id), d = H(), m = a.encoding.value, c = ((p = o.data) == null ? void 0 : p.columns.findIndex((e) => e.name === m)) ?? -1, g = () => {
15
15
  var e, i;
16
- return c >= 0 ? z((i = (e = o.data) == null ? void 0 : e.rows[0]) == null ? void 0 : i[c]) : void 0;
17
- }, u = T(m ? a.format[m] : void 0), r = ((x = a.radial) == null ? void 0 : x.max) ?? 1, v = () => Math.max(0, Math.min(r, g() ?? 0)), C = () => r > 0 ? v() / r * 100 : 0, f = () => u(g()), h = u(r);
18
- return k(j, {
16
+ return c >= 0 ? j((i = (e = o.data) == null ? void 0 : e.rows[0]) == null ? void 0 : i[c]) : void 0;
17
+ }, u = R(m ? a.format[m] : void 0), r = ((x = a.radial) == null ? void 0 : x.max) ?? 1, v = () => Math.max(0, Math.min(r, g() ?? 0)), M = () => r > 0 ? v() / r * 100 : 0, f = () => u(g()), h = u(r);
18
+ return k(T, {
19
19
  panel: a,
20
20
  frame: o,
21
21
  get children() {
22
- var e = q(), i = e.firstChild, P = i.firstChild, V = P.nextSibling, b = i.nextSibling, $ = b.firstChild, w = $.nextSibling, A = b.nextSibling, _ = A.firstChild, N = _.nextSibling;
22
+ var e = Z(), i = e.firstChild, P = i.firstChild, V = P.nextSibling, b = i.nextSibling, $ = b.firstChild, w = $.nextSibling, A = b.nextSibling, _ = A.firstChild, N = _.nextSibling;
23
23
  return s(e, "aria-valuemax", r), l($, f), l(w, () => d("chart.gaugeRange", "of {maximum}", {
24
24
  maximum: h
25
25
  })), l(_, () => u(0)), l(N, h), I((t) => {
26
26
  var F = d("chart.gaugeValue", "{name} value", {
27
27
  name: a.title
28
- }), M = v(), S = f(), y = `${C()} 100`;
29
- return F !== t.e && s(e, "aria-label", t.e = F), M !== t.t && s(e, "aria-valuenow", t.t = M), S !== t.a && s(e, "aria-valuetext", t.a = S), y !== t.o && L(V, "stroke-dasharray", t.o = y), t;
28
+ }), S = v(), y = f(), C = `${M()} 100`;
29
+ return F !== t.e && s(e, "aria-label", t.e = F), S !== t.t && s(e, "aria-valuenow", t.t = S), y !== t.a && s(e, "aria-valuetext", t.a = y), C !== t.o && L(V, "stroke-dasharray", t.o = C), t;
30
30
  }, {
31
31
  e: void 0,
32
32
  t: void 0,
@@ -37,5 +37,5 @@ function K(n) {
37
37
  });
38
38
  }
39
39
  export {
40
- K as GaugePanel
40
+ J as GaugePanel
41
41
  };
@@ -6,6 +6,7 @@ import { type HostPanelRenderers } from './panels/hostRenderers';
6
6
  import type { PanelRegistry } from './panels/registry';
7
7
  import type { CalendarDate } from './controls';
8
8
  import { type LensThemeMode } from './runtime';
9
+ import type { LensDashboardChrome, LensDashboardEditing } from './reports/dashboardEditTypes';
9
10
  export interface LensDashboardProps {
10
11
  filterDefaultsHost?: FilterDefaultsHost;
11
12
  /**
@@ -35,6 +36,14 @@ export interface LensDashboardProps {
35
36
  initialDocument?: DashboardDocument;
36
37
  /** Fixed calendar "today" for deterministic stories and visual regression. */
37
38
  filterToday?: CalendarDate;
39
+ /**
40
+ * In-place editing of a composed dashboard. The cards are drawn from the
41
+ * draft, so a layout change re-renders the live cards immediately; the
42
+ * host persists through the draft and decides when editing starts.
43
+ */
44
+ edit?: LensDashboardEditing;
45
+ /** Hide parts of the header a host page already renders, or collapse the toolbar. */
46
+ chrome?: LensDashboardChrome;
38
47
  }
39
48
  export interface LensToolbarContext {
40
49
  document: DashboardDocument;
@@ -1 +1 @@
1
- {"version":3,"file":"LensDashboard.d.ts","sourceRoot":"","sources":["../src/LensDashboard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAA0B,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtF,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAE3F,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAElE,OAAO,EAAyB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAA8C,KAAK,aAAa,EAAE,MAAM,WAAW,CAAA;AAE1F,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,CAAC,EAAE,kBAAkB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