@svgrid/grid 2.2.33 → 2.2.35

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 (26) hide show
  1. package/dist/GridFooter.svelte +46 -7
  2. package/dist/SvGrid.css +10 -0
  3. package/dist/cdn/{GridMenus-BxmIvCJh.js → GridMenus-T-bZNprc.js} +153 -150
  4. package/dist/cdn/{GridMenus-B7XhhqdN.js → GridMenus-oQYElQll.js} +4 -4
  5. package/dist/cdn/{SvDateTimePicker-ClqtVIj3.js → SvDateTimePicker-CHnUkWcH.js} +163 -163
  6. package/dist/cdn/{SvDateTimePicker-o94wfSUa.js → SvDateTimePicker-CRQH_U7E.js} +570 -553
  7. package/dist/cdn/{SvGridChart-BhnFdLd0.js → SvGridChart-BEJmNNx9.js} +1 -1
  8. package/dist/cdn/{SvGridChart-Cr_90pPD.js → SvGridChart-BwVos976.js} +27 -20
  9. package/dist/cdn/{SvGridChartPanel-Cmx9DHAS.js → SvGridChartPanel-BOknOkrP.js} +2 -2
  10. package/dist/cdn/{SvGridChartPanel-ICbxiUvK.js → SvGridChartPanel-D2PjII4O.js} +20 -12
  11. package/dist/cdn/{SvGridChartView-Bx42PMvf.js → SvGridChartView-00LPUHL1.js} +3 -3
  12. package/dist/cdn/{SvGridChartView-B40DTJSX.js → SvGridChartView-BhUEJ5ki.js} +2 -2
  13. package/dist/cdn/{SvGridDropdown-CUOdm7YA.js → SvGridDropdown-D13MtJ2j.js} +5 -4
  14. package/dist/cdn/{chart-T1usDN0o.js → chart-i4XcXyHJ.js} +12 -10
  15. package/dist/cdn/{disclose-version-DljhZohK.js → disclose-version-Dr7rEVv-.js} +989 -1081
  16. package/dist/cdn/{export-format-JT5pWVT8.js → export-format-Cv1Dll6k.js} +66 -245
  17. package/dist/cdn/{src-ktbQVOk-.js → src-72QTH8lh.js} +9004 -8792
  18. package/dist/cdn/{src-erjBRYfX.js → src-Cm7C_WOZ.js} +9204 -8908
  19. package/dist/cdn/svgrid.js +9 -9
  20. package/dist/cdn/svgrid.svelte-external.js +8 -8
  21. package/dist/columns.js +9 -2
  22. package/package.json +1 -1
  23. package/src/GridFooter.svelte +46 -7
  24. package/src/SvGrid.css +10 -0
  25. package/src/columns.ts +7 -2
  26. package/src/svgrid.footer-pagesize.svelte.test.ts +86 -0
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "./chart-T1usDN0o.js";
1
+ import { n as e, s as t, t as n } from "./chart-i4XcXyHJ.js";
2
2
  import * as r from "svelte/internal/client";
3
3
  import "svelte/internal/disclose-version";
4
4
  //#region src/SvGridChart.svelte
@@ -1,5 +1,5 @@
1
- import { D as e, E as t, F as n, G as r, H as i, I as a, L as o, N as s, R as c, U as l, V as u, X as d, Y as f, _ as p, at as m, d as h, et as g, ft as _, i as v, it as y, k as b, lt as x, nt as S, pt as C, rt as ee, st as w, t as T, tt as E, ut as te, v as D, x as ne } from "./disclose-version-DljhZohK.js";
2
- import { n as re, s as ie, t as ae } from "./chart-T1usDN0o.js";
1
+ import { D as e, E as t, F as n, G as r, H as i, I as a, L as o, N as s, R as c, U as l, V as u, X as d, Y as f, _ as p, at as m, d as h, et as g, ft as _, i as v, it as y, k as b, lt as x, nt as S, pt as C, rt as ee, st as w, t as T, tt as E, ut as te, v as D, x as ne } from "./disclose-version-Dr7rEVv-.js";
2
+ import { n as re, s as ie, t as ae } from "./chart-i4XcXyHJ.js";
3
3
  //#region src/SvGridChart.svelte
4
4
  var oe = o("<button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Reset zoom (or double-click the plot)\"><svg width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7v6h6\"></path><path d=\"M21 17a9 9 0 0 0-15-6.7L3 13\"></path></svg> Reset zoom</button>"), se = o("<div class=\"sv-grid-chart-toolbar svelte-hyytey\"><!> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download PNG\">PNG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Download SVG\">SVG</button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-hyytey\" title=\"Copy chart as image\"> </button></div>"), ce = c("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(45)\"><rect width=\"6\" height=\"6\"></rect><rect width=\"3\" height=\"6\" fill=\"rgba(255,255,255,0.35)\"></rect></pattern>"), le = c("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><path d=\"M0 0L6 6 M6 0L0 6\" stroke=\"rgba(255,255,255,0.45)\" stroke-width=\"1\"></path></pattern>"), ue = c("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><circle cx=\"3\" cy=\"3\" r=\"1.2\" fill=\"rgba(255,255,255,0.55)\"></circle></pattern>"), de = c("<pattern width=\"8\" height=\"8\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(-45)\"><rect width=\"8\" height=\"8\"></rect><line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"8\" stroke=\"rgba(0,0,0,0.18)\" stroke-width=\"2\"></line></pattern>"), fe = c("<defs></defs>"), pe = c("<line class=\"sv-grid-chart-gridline svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), me = c("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), he = c("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), ge = c("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), _e = c("<!><!><!><!>", 1), ve = c("<line></line><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>", 1), ye = c("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), be = c("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), xe = c("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), Se = c("<line class=\"sv-grid-chart-gridline svelte-hyytey\" opacity=\"0.5\"></line>"), Ce = c("<line class=\"sv-grid-chart-gridline svelte-hyytey\"></line><!><text class=\"sv-grid-chart-axis sv-grid-chart-group-label svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), we = c("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Te = c("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), Ee = c("<text class=\"sv-grid-chart-axis-title svelte-hyytey\" text-anchor=\"middle\"> </text>"), De = c("<!><!><!><!><!><!><!>", 1), Oe = c("<path class=\"sv-grid-chart-band\" fill-opacity=\"0.12\" stroke=\"none\"></path>"), ke = c("<path class=\"sv-grid-chart-area\" fill-opacity=\"0.15\" stroke=\"none\"></path>"), Ae = c("<text class=\"sv-grid-chart-datalabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), je = c("<circle></circle><!>", 1), Me = c("<g><!><!><path class=\"sv-grid-chart-linepath\" fill=\"none\" stroke-width=\"2\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path><!></g>"), Ne = c("<text> </text>"), Pe = c("<text text-anchor=\"middle\"> </text>"), Fe = c("<rect class=\"sv-grid-chart-bar svelte-hyytey\" rx=\"1\"></rect><!>", 1), Ie = c("<circle class=\"sv-grid-chart-scatter svelte-hyytey\" fill-opacity=\"0.7\"></circle>"), Le = c("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"end\"> </text>", 1), Re = c("<line class=\"sv-grid-chart-refline svelte-hyytey\"></line><text class=\"sv-grid-chart-reflabel svelte-hyytey\" text-anchor=\"start\"> </text>", 1), ze = c("<path class=\"sv-grid-chart-overlay svelte-hyytey\" fill=\"none\" stroke-width=\"2\" stroke-dasharray=\"6 4\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>"), Be = c("<circle class=\"sv-grid-chart-annotation-marker svelte-hyytey\" r=\"4\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle><text class=\"sv-grid-chart-annotation-label svelte-hyytey\"> </text>", 1), Ve = c("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), He = c("<line class=\"sv-grid-chart-crosshair svelte-hyytey\"></line>"), Ue = c("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), We = c("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text>"), Ge = c("<text class=\"sv-grid-chart-heatlabel svelte-hyytey\" text-anchor=\"middle\"> </text>"), Ke = c("<rect class=\"sv-grid-chart-heatcell svelte-hyytey\"></rect><!>", 1), qe = c("<stop></stop>"), Je = c("<defs><linearGradient x1=\"0\" y1=\"1\" x2=\"0\" y2=\"0\"></linearGradient></defs><rect class=\"sv-grid-chart-heatlegend svelte-hyytey\" width=\"10\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), Ye = c("<!><!><!><!>", 1), Xe = c("<path class=\"sv-grid-chart-funnel-seg svelte-hyytey\"></path><text class=\"sv-grid-chart-funnel-label svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-funnel-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), Ze = c("<circle class=\"sv-grid-chart-radar-ring svelte-hyytey\"></circle>"), Qe = c("<line class=\"sv-grid-chart-radar-spoke svelte-hyytey\"></line><text class=\"sv-grid-chart-axis svelte-hyytey\"> </text>", 1), $e = c("<circle class=\"sv-grid-chart-radar-dot svelte-hyytey\" r=\"3\"></circle>"), et = c("<path class=\"sv-grid-chart-radar-poly svelte-hyytey\" fill-opacity=\"0.18\" stroke-width=\"2\"></path><!>", 1), tt = c("<!><!><!>", 1), nt = c("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>"), rt = c("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"end\"> </text>"), it = c("<rect rx=\"2\"></rect>"), at = c("<rect class=\"sv-grid-chart-calendar-legend svelte-hyytey\" width=\"10\" height=\"10\" rx=\"2\"></rect><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\"> </text>", 1), ot = c("<text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">Less</text><!><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"start\">More</text>", 1), st = c("<!><!><!><!>", 1), ct = c("<line></line>"), lt = c("<path fill=\"none\" stroke-width=\"6\" stroke-linecap=\"round\" opacity=\"0.85\"></path>"), ut = c("<line stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line>"), dt = c("<!><path fill=\"none\" stroke=\"var(--sg-border, #e2e8f0)\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path class=\"sv-grid-chart-gauge-needle svelte-hyytey\"></path><circle class=\"sv-grid-chart-gauge-hub svelte-hyytey\"></circle><circle class=\"sv-grid-chart-gauge-hub-dot svelte-hyytey\" r=\"2.5\"></circle><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-axis svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-gauge-value svelte-hyytey\" text-anchor=\"middle\"> </text>", 1), ft = c("<text class=\"sv-grid-chart-treemap-label svelte-hyytey\"> </text>"), pt = c("<text class=\"sv-grid-chart-treemap-value svelte-hyytey\" opacity=\"0.85\"> </text>"), mt = c("<rect class=\"sv-grid-chart-treemap-cell svelte-hyytey\"></rect><!><!>", 1), ht = c("<path class=\"sv-grid-chart-sankey-link svelte-hyytey\" fill=\"none\" stroke-opacity=\"0.35\"></path>"), gt = c("<rect class=\"sv-grid-chart-sankey-node svelte-hyytey\"></rect><text class=\"sv-grid-chart-sankey-label svelte-hyytey\"> </text>", 1), _t = c("<!><!>", 1), vt = c("<text class=\"sv-grid-chart-datalabel on-bar svelte-hyytey\" text-anchor=\"middle\" dominant-baseline=\"middle\"> </text>"), yt = c("<path class=\"sv-grid-chart-slice svelte-hyytey\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path><!>", 1), bt = c("<text class=\"sv-grid-chart-donut-total svelte-hyytey\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-donut-label svelte-hyytey\" text-anchor=\"middle\">Total</text>", 1), xt = c("<rect class=\"sv-grid-chart-cat-hit svelte-hyytey\"></rect>"), St = c("<rect class=\"sv-grid-chart-zoom-rect svelte-hyytey\"></rect>"), Ct = c("<path fill-opacity=\"0.10\" stroke=\"none\"></path>"), wt = c("<!><path fill=\"none\" stroke-width=\"1.2\" opacity=\"0.75\"></path>", 1), Tt = c("<rect opacity=\"0.55\"></rect>"), Et = c("<svg class=\"sv-grid-chart-brush svelte-hyytey\" width=\"100%\" role=\"img\" aria-label=\"Range brush\"><!><!><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-mask svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-window svelte-hyytey\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-hyytey\" width=\"8\"></rect></svg>"), Dt = o("<div class=\"sv-grid-chart-empty svelte-hyytey\">No data</div>"), Ot = o("<span class=\"sv-grid-chart-tooltip-dot svelte-hyytey\"></span>"), kt = o("<span class=\"sv-grid-chart-tooltip-row-label svelte-hyytey\"> </span>"), At = o("<span class=\"sv-grid-chart-tooltip-row svelte-hyytey\"><!> <!> <span class=\"sv-grid-chart-tooltip-row-value svelte-hyytey\"> </span></span>"), jt = o("<div><span class=\"sv-grid-chart-tooltip-title svelte-hyytey\"> </span> <!></div>"), Mt = o("<button type=\"button\"><span class=\"sv-grid-chart-swatch svelte-hyytey\"></span> </button>"), Nt = o("<button type=\"button\" class=\"sv-grid-chart-legend-more svelte-hyytey\"> </button>"), Pt = o("<div class=\"sv-grid-chart-legend svelte-hyytey\"><!> <!></div>"), Ft = o("<th> </th>"), It = o("<td> </td>"), Lt = o("<tr></tr>"), Rt = o("<div class=\"sv-grid-chart svelte-hyytey\"><!> <svg width=\"100%\" role=\"img\"><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!></svg> <!> <!> <!> <!> <table class=\"sv-grid-chart-sr-only svelte-hyytey\"><caption> </caption><thead><tr></tr></thead><tbody></tbody></table></div>"), zt = {
5
5
  hash: "svelte-hyytey",
@@ -112,10 +112,10 @@ function O(o, c) {
112
112
  }
113
113
  function dn(e, t) {
114
114
  if (!r(R)) return;
115
- let n = e.currentTarget;
115
+ let n = e.currentTarget, i = un(e, n.ownerSVGElement ?? n);
116
116
  y(z, {
117
117
  mode: t,
118
- startX: un(e, n.ownerSVGElement ?? n),
118
+ startX: i,
119
119
  startT0: r(ln).t0,
120
120
  startT1: r(ln).t1
121
121
  }, !0), e.currentTarget.setPointerCapture?.(e.pointerId), e.stopPropagation();
@@ -536,8 +536,8 @@ function O(o, c) {
536
536
  }, [() => Mn(r(t).value, r(t).label)]), n(e, i);
537
537
  });
538
538
  var l = S(o), u = (e) => {
539
- var i = a();
540
- t(E(i), 17, () => r(H).y2Ticks, (e) => e.value, (e, t) => {
539
+ var i = a(), o = E(i);
540
+ t(o, 17, () => r(H).y2Ticks, (e) => e.value, (e, t) => {
541
541
  var i = ye(), a = g(i, !0);
542
542
  C(i), f((e) => {
543
543
  h(i, "x", r(H).plot.x + r(H).plot.w + 6), h(i, "y", r(t).y + 3), s(a, e);
@@ -634,8 +634,8 @@ function O(o, c) {
634
634
  b(d, (e) => {
635
635
  r(o).areaPath && e(m);
636
636
  });
637
- var _ = S(d);
638
- t(S(_), 17, () => r(o).points, e, (e, t, i) => {
637
+ var _ = S(d), v = S(_);
638
+ t(v, 17, () => r(o).points, e, (e, t, i) => {
639
639
  var c = a(), l = E(c), u = (e) => {
640
640
  var a = je(), c = E(a);
641
641
  let l;
@@ -793,8 +793,8 @@ function O(o, c) {
793
793
  r(gn) && e(hr);
794
794
  });
795
795
  var gr = S(mr), _r = (o) => {
796
- var u = a();
797
- t(E(u), 17, () => r(H).funnelSegments, e, (e, t, a) => {
796
+ var u = a(), d = E(u);
797
+ t(d, 17, () => r(H).funnelSegments, e, (e, t, a) => {
798
798
  var o = Xe(), u = E(o), d = S(u), p = g(d, !0);
799
799
  C(d);
800
800
  var m = S(d), _ = g(m);
@@ -830,9 +830,11 @@ function O(o, c) {
830
830
  C(p), f((e) => {
831
831
  h(d, "x1", r(o).cx), h(d, "y1", r(o).cy), h(d, "x2", r(t).x), h(d, "y2", r(t).y), h(p, "x", r(c)), h(p, "y", r(l) + 3), h(p, "text-anchor", e), s(m, r(t).label);
832
832
  }, [() => Math.abs(r(i)) < 1 ? "middle" : r(i) > 0 ? "start" : "end"]), n(e, u);
833
- }), t(S(d), 17, () => r(H).radarSeries, e, (a, o) => {
834
- var s = et(), c = E(s);
835
- t(S(c), 17, () => r(o).points, e, (e, t) => {
833
+ });
834
+ var m = S(d);
835
+ t(m, 17, () => r(H).radarSeries, e, (a, o) => {
836
+ var s = et(), c = E(s), u = S(c);
837
+ t(u, 17, () => r(o).points, e, (e, t) => {
836
838
  var a = $e();
837
839
  f(() => {
838
840
  h(a, "cx", r(t).x), h(a, "cy", r(t).y), h(a, "fill", r(o).color);
@@ -949,8 +951,8 @@ function O(o, c) {
949
951
  r(bn) && r(H).gauge && e(Cr);
950
952
  });
951
953
  var wr = S(Sr), Tr = (o) => {
952
- var u = a();
953
- t(E(u), 17, () => r(H).treemapCells, e, (e, t) => {
954
+ var u = a(), d = E(u);
955
+ t(d, 17, () => r(H).treemapCells, e, (e, t) => {
954
956
  var a = mt(), o = E(a), u = S(o), d = (e) => {
955
957
  var i = ft(), a = g(i, !0);
956
958
  C(i), f((e) => {
@@ -991,7 +993,9 @@ function O(o, c) {
991
993
  color: r(t).color,
992
994
  value: k(r(t).value)
993
995
  }])), l("mouseleave", a, X), n(e, a);
994
- }), t(S(c), 17, () => r(H).sankeyNodes, e, (e, t) => {
996
+ });
997
+ var u = S(c);
998
+ t(u, 17, () => r(H).sankeyNodes, e, (e, t) => {
995
999
  var a = gt(), o = E(a);
996
1000
  h(o, "tabindex", 0);
997
1001
  var c = S(o), u = g(c, !0);
@@ -1047,8 +1051,8 @@ function O(o, c) {
1047
1051
  r(H).donut && e(Ar);
1048
1052
  });
1049
1053
  var jr = S(kr), Mr = (e) => {
1050
- var o = a();
1051
- t(E(o), 19, () => r(V).categories, (e, t) => e + t, (e, t, a) => {
1054
+ var o = a(), s = E(o);
1055
+ t(s, 19, () => r(V).categories, (e, t) => e + t, (e, t, a) => {
1052
1056
  let o = w(() => r(H).lines[0]?.points), s = w(() => r(o)?.[r(a)]?.x), u = w(() => !r(U) && r(o) && r(o).length === r(V).categories.length && Number.isFinite(r(s))), d = w(() => r(u) && r(a) > 0 ? r(o)[r(a) - 1].x : null), p = w(() => r(u) && r(a) < r(o).length - 1 ? r(o)[r(a) + 1].x : null), m = w(() => r(u) ? r(d) == null ? r(H).plot.x : (r(d) + r(s)) / 2 : r(H).plot.x + r(W) * r(a)), g = w(() => r(u) ? r(p) == null ? r(H).plot.x + r(H).plot.w : (r(s) + r(p)) / 2 : r(H).plot.x + r(W) * (r(a) + 1));
1053
1057
  var _ = xt();
1054
1058
  f((e, t) => {
@@ -1102,7 +1106,8 @@ function O(o, c) {
1102
1106
  r(sn) && r(R) && e(Ir);
1103
1107
  });
1104
1108
  var Lr = S(Fr, 2), Rr = (e) => {
1105
- n(e, Dt());
1109
+ var t = Dt();
1110
+ n(e, t);
1106
1111
  };
1107
1112
  b(Lr, (e) => {
1108
1113
  r(On) && e(Rr);
@@ -1111,7 +1116,9 @@ function O(o, c) {
1111
1116
  var a = jt();
1112
1117
  let o;
1113
1118
  var c = g(a), l = g(c, !0);
1114
- C(c), t(S(c, 2), 17, () => r(q).rows, e, (e, t) => {
1119
+ C(c);
1120
+ var u = S(c, 2);
1121
+ t(u, 17, () => r(q).rows, e, (e, t) => {
1115
1122
  var i = At(), a = g(i), o = (e) => {
1116
1123
  var i = Ot();
1117
1124
  f(() => p(i, `background:${r(t).color}`)), n(e, i);
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { t } from "./SvGridChart-BhnFdLd0.js";
2
+ import { t } from "./SvGridChart-BEJmNNx9.js";
3
3
  import * as n from "svelte/internal/client";
4
4
  import "svelte/internal/disclose-version";
5
5
  import { fly as r } from "svelte/transition";
@@ -489,7 +489,7 @@ function T(e, a) {
489
489
  }), n.reset(Q), n.reset(q);
490
490
  var $ = n.sibling(q, 2), pt = n.child($), mt = (e) => {
491
491
  {
492
- let r = n.derived(() => n.get(c)?.zoom === !0), i = n.derived(() => n.get(c)?.brush === !0), a = n.derived(() => n.get(c)?.export === !0 ? !0 : void 0);
492
+ let r = n.derived(() => n.get(c)?.zoom === !0), i = n.derived(() => n.get(c)?.brush === !0), a = n.derived(() => n.get(c)?.export === !0 || void 0);
493
493
  t(e, {
494
494
  get spec() {
495
495
  return n.get(T);
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { B as t, C as n, E as r, F as i, G as a, H as o, L as s, N as c, R as l, U as u, V as d, X as f, Y as p, _ as m, a as h, at as g, d as _, et as v, f as ee, ft as te, g as y, h as b, i as x, it as S, k as C, lt as w, nt as T, o as E, pt as D, st as O, t as k, tt as ne, u as A, ut as j, v as M } from "./disclose-version-DljhZohK.js";
3
- import { t as re } from "./SvGridChart-Cr_90pPD.js";
2
+ import { B as t, C as n, E as r, F as i, G as a, H as o, L as s, N as c, R as l, U as u, V as d, X as f, Y as p, _ as m, a as h, at as g, d as _, et as v, f as ee, ft as te, g as y, h as b, i as x, it as S, k as C, lt as w, nt as T, o as E, pt as D, st as O, t as k, tt as ne, u as A, ut as j, v as M } from "./disclose-version-Dr7rEVv-.js";
3
+ import { t as re } from "./SvGridChart-BwVos976.js";
4
4
  //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
5
5
  function N(e) {
6
6
  let t = e - 1;
@@ -310,9 +310,11 @@ function U(e, s) {
310
310
  a(L) && !a(P) && e(St);
311
311
  });
312
312
  var Ct = T(xt, 2), Q = v(Ct), wt = v(Q), Tt = (e) => {
313
- i(e, de());
313
+ var t = de();
314
+ i(e, t);
314
315
  }, Et = (e) => {
315
- i(e, fe());
316
+ var t = fe();
317
+ i(e, t);
316
318
  };
317
319
  C(wt, (e) => {
318
320
  a(it) ? e(Tt) : e(Et, -1);
@@ -343,9 +345,11 @@ function U(e, s) {
343
345
  });
344
346
  var Nt = T(jt, 2), Pt = (e) => {
345
347
  var t = ve(), n = ne(t), r = v(n), s = (e) => {
346
- i(e, ge());
348
+ var t = ge();
349
+ i(e, t);
347
350
  }, c = (e) => {
348
- i(e, _e());
351
+ var t = _e();
352
+ i(e, t);
349
353
  };
350
354
  C(r, (e) => {
351
355
  a(H) ? e(s) : e(c, -1);
@@ -427,7 +431,9 @@ function U(e, s) {
427
431
  b(f), D(d);
428
432
  var h = T(d, 2), g = (e) => {
429
433
  var t = Oe(), n = T(v(t), 2), s = v(n);
430
- s.value = s.__value = "", r(T(s), 17, () => a(z).dims, (e) => e.id, (e, t) => {
434
+ s.value = s.__value = "";
435
+ var u = T(s);
436
+ r(u, 17, () => a(z).dims, (e) => e.id, (e, t) => {
431
437
  var n = De(), r = v(n, !0);
432
438
  D(n);
433
439
  var o = {};
@@ -435,9 +441,9 @@ function U(e, s) {
435
441
  c(r, a(t).label), o !== (o = a(t).id) && (n.value = (n.__value = a(t).id) ?? "");
436
442
  }), i(e, n);
437
443
  }), D(n);
438
- var u;
444
+ var d;
439
445
  b(n), D(t), p(() => {
440
- u !== (u = l().chartSeriesId ?? "") && (n.value = (n.__value = l().chartSeriesId ?? "") ?? "", y(n, l().chartSeriesId ?? ""));
446
+ d !== (d = l().chartSeriesId ?? "") && (n.value = (n.__value = l().chartSeriesId ?? "") ?? "", y(n, l().chartSeriesId ?? ""));
441
447
  }), o("change", n, (e) => l().chartSeriesId = e.currentTarget.value || null), i(e, t);
442
448
  };
443
449
  C(h, (e) => {
@@ -507,7 +513,7 @@ function U(e, s) {
507
513
  }), D(Vt), D(vt);
508
514
  var $ = T(vt, 2), Wt = v($), Gt = (e) => {
509
515
  {
510
- let t = O(() => a(N)?.zoom === !0), n = O(() => a(N)?.brush === !0), r = O(() => a(N)?.export === !0 ? !0 : void 0);
516
+ let t = O(() => a(N)?.zoom === !0), n = O(() => a(N)?.brush === !0), r = O(() => a(N)?.export === !0 || void 0);
511
517
  re(e, {
512
518
  get spec() {
513
519
  return a(R);
@@ -537,9 +543,11 @@ function U(e, s) {
537
543
  }
538
544
  }, Kt = (e) => {
539
545
  var n = Ie(), r = v(n), o = (e) => {
540
- i(e, t("Charting needs at least one text column (to group by) and one numeric column (to measure)."));
546
+ var n = t("Charting needs at least one text column (to group by) and one numeric column (to measure).");
547
+ i(e, n);
541
548
  }, s = (e) => {
542
- i(e, t("No data to chart."));
549
+ var n = t("No data to chart.");
550
+ i(e, n);
543
551
  };
544
552
  C(r, (e) => {
545
553
  !a(z).dims.length || !a(z).measures.length ? e(o) : e(s, -1);
@@ -1,6 +1,6 @@
1
- import { F as e, G as t, L as n, a as r, at as i, et as a, it as o, k as s, lt as c, pt as l, st as u, ut as d, x as f } from "./disclose-version-DljhZohK.js";
2
- import { f as p } from "./chart-T1usDN0o.js";
3
- import { t as m } from "./SvGridChart-Cr_90pPD.js";
1
+ import { F as e, G as t, L as n, a as r, at as i, et as a, it as o, k as s, lt as c, pt as l, st as u, ut as d, x as f } from "./disclose-version-Dr7rEVv-.js";
2
+ import { f as p } from "./chart-i4XcXyHJ.js";
3
+ import { t as m } from "./SvGridChart-BwVos976.js";
4
4
  //#region src/SvGridChartView.svelte
5
5
  var h = n("<div class=\"sv-grid-chart-view svelte-10run6t\"><!></div>"), g = {
6
6
  hash: "svelte-10run6t",
@@ -1,5 +1,5 @@
1
- import { f as e } from "./chart-T1usDN0o.js";
2
- import { t } from "./SvGridChart-BhnFdLd0.js";
1
+ import { f as e } from "./chart-i4XcXyHJ.js";
2
+ import { t } from "./SvGridChart-BEJmNNx9.js";
3
3
  import * as n from "svelte/internal/client";
4
4
  import "svelte/internal/disclose-version";
5
5
  //#region src/SvGridChartView.svelte
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { E as t, F as n, G as r, H as i, I as a, L as o, N as s, U as c, V as l, X as u, Y as d, _ as f, at as p, b as m, d as h, et as g, ft as _, i as v, it as y, k as b, lt as x, nt as S, o as ee, pt as C, rt as w, st as T, t as E, tt as te, u as ne, ut as D, v as O, x as re, z as ie } from "./disclose-version-DljhZohK.js";
2
+ import { E as t, F as n, G as r, H as i, I as a, L as o, N as s, U as c, V as l, X as u, Y as d, _ as f, at as p, b as m, d as h, et as g, ft as _, i as v, it as y, k as b, lt as x, nt as S, o as ee, pt as C, rt as w, st as T, t as E, tt as te, u as ne, ut as D, v as O, x as re, z as ie } from "./disclose-version-Dr7rEVv-.js";
3
3
  import { i as ae, n as k, r as oe } from "./popover-P-9P2YYn.js";
4
4
  //#region src/SvGridDropdown.svelte
5
5
  var A = /* @__PURE__ */ e({ default: () => j }), se = o("<span class=\"sv-grid-chip sv-grid-chip-removable svelte-ei8hp3\"> <span class=\"sv-grid-chip-remove svelte-ei8hp3\" role=\"button\">×</span></span>"), ce = o("<span class=\"sv-grid-dropdown-chips svelte-ei8hp3\"></span>"), le = o("<span class=\"sv-grid-chip svelte-ei8hp3\"> </span>"), ue = o("<span class=\"sv-grid-dropdown-label svelte-ei8hp3\"> </span>"), de = o("<input type=\"search\" class=\"sv-grid-dropdown-search\" placeholder=\"Search…\"/>"), fe = o("<div class=\"sv-grid-dropdown-empty\" role=\"status\" aria-live=\"polite\">Loading…</div>"), pe = o("<div class=\"sv-grid-dropdown-empty\"> </div>"), me = o("<span class=\"sv-grid-dropdown-check\" aria-hidden=\"true\"> </span>"), he = o("<span class=\"sv-grid-dropdown-option-chip\"> </span>"), ge = o("<span class=\"sv-grid-dropdown-option-label\"> </span>"), _e = o("<div role=\"option\"><!> <!></div>"), ve = o("<div class=\"sv-grid-dropdown-footer\"><button type=\"button\" class=\"sv-grid-dropdown-done\">Done</button></div>"), ye = o("<div role=\"listbox\"><!> <!> <!></div>"), be = o("<div><button type=\"button\" aria-haspopup=\"listbox\"><!> <span class=\"sv-grid-dropdown-caret svelte-ei8hp3\" aria-hidden=\"true\">▾</span></button> <!></div>"), xe = {
@@ -180,13 +180,14 @@ function j(e, o) {
180
180
  N() && e(E);
181
181
  });
182
182
  var D = S(w, 2), re = (e) => {
183
- n(e, fe());
183
+ var t = fe();
184
+ n(e, t);
184
185
  }, ie = (e) => {
185
186
  var t = pe(), i = g(t, !0);
186
187
  C(t), d(() => s(i, N() && r(F) ? `No matches for "${r(F)}"` : "No options")), n(e, t);
187
188
  }, k = (e) => {
188
- var o = a();
189
- t(te(o), 19, () => r(I), (e) => String(e.value), (e, t, a) => {
189
+ var o = a(), l = te(o);
190
+ t(l, 19, () => r(I), (e) => String(e.value), (e, t, a) => {
190
191
  let o = T(() => W(r(t)));
191
192
  var l = _e();
192
193
  let u;
@@ -1038,17 +1038,19 @@ function O(e, t = "light") {
1038
1038
  };
1039
1039
  });
1040
1040
  let d = !!t.smooth, f = h(l, d), p = "";
1041
- if (t.kind === "area" && l.length) if (u) p = `${d ? g(l.map((e) => ({
1042
- x: e.x,
1043
- y: e.y
1044
- }))) : l.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} ${d ? `L${u[u.length - 1].x},${u[u.length - 1].y} ` + g(u.slice().reverse()).replace(/^M[^ ]+ /, "") : u.slice().reverse().map((e) => `L${e.x},${e.y}`).join(" ")} Z`;
1045
- else {
1046
- let e = r(a(Math.min(Math.max(0, n.min), n.max))), t = [], i = [];
1047
- for (let e of l) e.defined ? i.push(e) : i.length && (t.push(i), i = []);
1048
- i.length && t.push(i), p = t.map((t) => `${d ? g(t.map((e) => ({
1041
+ if (t.kind === "area" && l.length) {
1042
+ if (u) p = `${d ? g(l.map((e) => ({
1049
1043
  x: e.x,
1050
1044
  y: e.y
1051
- }))) : t.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} L${t[t.length - 1].x},${e} L${t[0].x},${e} Z`).join(" ");
1045
+ }))) : l.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} ${d ? `L${u[u.length - 1].x},${u[u.length - 1].y} ` + g(u.slice().reverse()).replace(/^M[^ ]+ /, "") : u.slice().reverse().map((e) => `L${e.x},${e.y}`).join(" ")} Z`;
1046
+ else {
1047
+ let e = r(a(Math.min(Math.max(0, n.min), n.max))), t = [], i = [];
1048
+ for (let e of l) e.defined ? i.push(e) : i.length && (t.push(i), i = []);
1049
+ i.length && t.push(i), p = t.map((t) => `${d ? g(t.map((e) => ({
1050
+ x: e.x,
1051
+ y: e.y
1052
+ }))) : t.map((e, t) => `${t === 0 ? "M" : "L"}${e.x},${e.y}`).join(" ")} L${t[t.length - 1].x},${e} L${t[0].x},${e} Z`).join(" ");
1053
+ }
1052
1054
  }
1053
1055
  let m = "";
1054
1056
  if (t.upperValues?.length === t.values.length && t.lowerValues?.length === t.values.length) {
@@ -1139,7 +1141,7 @@ function O(e, t = "light") {
1139
1141
  hasRightAxis: y,
1140
1142
  xTicks: ae,
1141
1143
  categoryGroupTicks: X,
1142
- xLabelRotated: K ? !1 : O,
1144
+ xLabelRotated: !K && O,
1143
1145
  referenceLines: le,
1144
1146
  overlays: ue,
1145
1147
  annotations: de