@svgrid/grid-wc 2.6.1 → 2.7.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 (50) hide show
  1. package/dist/{GridMenus-Boz00ms0.js → GridMenus-DE0zNY_3.js} +265 -243
  2. package/dist/{SvDateTimePicker-Ch1Vug8H.js → SvDateTimePicker-BpeEupA2.js} +81 -81
  3. package/dist/SvGrid.helpers-BZPDBcza.js +125 -0
  4. package/dist/SvGridCellEditor-_rqEaig7.js +531 -0
  5. package/dist/{SvGridChart-BztTavvw.js → SvGridChart-yK5Zv85y.js} +158 -158
  6. package/dist/{SvGridChartPanel-Ca5HWIZ3.js → SvGridChartPanel-B38_VjXM.js} +52 -52
  7. package/dist/{SvGridChartView-AcWj_tcs.js → SvGridChartView-ScXTF6t-.js} +4 -4
  8. package/dist/{SvGridDropdown-BXqvR1cs.js → SvGridDropdown-DnAESFDu.js} +29 -29
  9. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +358 -0
  10. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -0
  11. package/dist/angular/package.json +25 -0
  12. package/dist/angular/types/svgrid-grid-wc-angular.d.ts +161 -0
  13. package/dist/{client-DoXxrq8q.js → client-DjwUji8D.js} +1 -1
  14. package/dist/column-resize-DvCRUrN3.js +101 -0
  15. package/dist/{dismissable-xj_k_fnZ.js → dismissable-Nx79OIVg.js} +36 -36
  16. package/dist/editor-registry-DxGKqcvx.js +24 -0
  17. package/dist/react/index.d.ts +313 -0
  18. package/dist/react/index.js +72 -0
  19. package/dist/row-drag-touch-Ddaa-QeB.js +91 -0
  20. package/dist/row-resize-D-8s3cqT.js +94 -0
  21. package/dist/shadow/GridMenus-DE0zNY_3.js +1022 -0
  22. package/dist/shadow/SvDateTimePicker-BpeEupA2.js +1885 -0
  23. package/dist/shadow/SvGrid.helpers-BZPDBcza.js +125 -0
  24. package/dist/shadow/SvGridCellEditor-_rqEaig7.js +531 -0
  25. package/dist/shadow/SvGridChart-yK5Zv85y.js +1199 -0
  26. package/dist/shadow/SvGridChartPanel-B38_VjXM.js +584 -0
  27. package/dist/shadow/SvGridChartView-ScXTF6t-.js +50 -0
  28. package/dist/shadow/SvGridDropdown-DnAESFDu.js +256 -0
  29. package/dist/shadow/cell-formatting-C0OsDmi_.js +86 -0
  30. package/dist/shadow/chart-uvs3sFJA.js +1220 -0
  31. package/dist/shadow/client-DjwUji8D.js +2960 -0
  32. package/dist/shadow/column-resize-DvCRUrN3.js +101 -0
  33. package/dist/shadow/dismissable-Nx79OIVg.js +186 -0
  34. package/dist/shadow/editor-contract-peBDxir_.js +22 -0
  35. package/dist/shadow/editor-registry-DxGKqcvx.js +24 -0
  36. package/dist/shadow/export-format-C8kZGZfz.js +161 -0
  37. package/dist/shadow/popover-WsGlvtQv.js +69 -0
  38. package/dist/shadow/row-drag-touch-Ddaa-QeB.js +91 -0
  39. package/dist/shadow/row-resize-D-8s3cqT.js +94 -0
  40. package/dist/shadow/sv-grid-shadow-element.d.ts +246 -0
  41. package/dist/shadow/sv-grid-shadow-element.js +10067 -0
  42. package/dist/{svelte-virtualizer.svelte-ZL3wxPzD.js → shadow/svelte-virtualizer.svelte-DZ9UcyfT.js} +79 -166
  43. package/dist/shadow/validate-CgmAtX1A.js +75 -0
  44. package/dist/sv-grid-element.d.ts +246 -0
  45. package/dist/sv-grid-element.js +3927 -3202
  46. package/dist/svelte-virtualizer.svelte-DZ9UcyfT.js +527 -0
  47. package/dist/validate-CgmAtX1A.js +75 -0
  48. package/dist/vue/index.d.ts +147 -0
  49. package/dist/vue/index.js +72 -0
  50. package/package.json +85 -6
@@ -1,5 +1,5 @@
1
- import { $ as e, E as t, F as n, H as r, I as i, J as a, K as o, L as s, M as c, O as l, P as u, R as d, S as f, V as p, X as m, Z as h, _ as g, a as ee, d as _, f as v, g as y, it as b, j as x, k as S, n as C, nt as te, o as w, p as T, q as ne, rt as E, s as D, tt as re, v as O, w as k, y as A } from "./client-DoXxrq8q.js";
2
- import { t as ie } from "./SvGridChart-BztTavvw.js";
1
+ import { $ as e, E as t, F as n, H as r, I as i, J as a, K as o, L as s, M as c, O as l, P as u, R as d, S as f, V as p, X as m, Z as h, _ as g, a as ee, d as _, et as v, f as y, g as b, j as x, k as S, n as te, nt as C, o as w, p as T, q as ne, rt as E, s as D, tt as re, v as O, w as k, y as A } from "./client-DjwUji8D.js";
2
+ import { t as ie } from "./SvGridChart-yK5Zv85y.js";
3
3
  //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
4
4
  function j(e) {
5
5
  let t = e - 1;
@@ -125,8 +125,8 @@ function ce(e, t = "chart.csv") {
125
125
  //#region ../grid/dist/SvGridChartPanel.svelte
126
126
  var le = x("<div role=\"separator\" aria-label=\"Resize chart panel\"></div>"), ue = x("<button type=\"button\" class=\"sv-grid-chart-btn\">Clear filter</button>"), de = c("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"20 6 9 17 4 12\"></polyline></svg>"), fe = c("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path><polyline points=\"7 10 12 15 17 10\"></polyline><line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"></line></svg>"), pe = x("<div class=\"sv-grid-chart-export-menu\" role=\"menu\"><button type=\"button\" role=\"menuitem\">PNG image</button> <button type=\"button\" role=\"menuitem\">SVG vector</button> <button type=\"button\" role=\"menuitem\">CSV data</button> <button type=\"button\" role=\"menuitem\">Copy to clipboard</button></div>"), me = x("<button type=\"button\" aria-label=\"Chart with AI\" title=\"Chart with AI\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 2l1.9 4.6L18.5 8.5 13.9 10.4 12 15l-1.9-4.6L5.5 8.5l4.6-1.9L12 2zm6 11l1 2.4 2.4 1-2.4 1L18 21l-1-2.6-2.4-1 2.4-1L18 13zM6 14l.8 2 2 .8-2 .8L6 20l-.8-2.4-2-.8 2-.8L6 14z\"></path></svg> AI</button>"), he = x("<button type=\"button\" class=\"sv-grid-chart-icon-btn\" aria-label=\"Add chart\" title=\"Add chart\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"></line><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"></line></svg></button>"), ge = c("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 3v3a2 2 0 0 1-2 2H3\"></path><path d=\"M21 8h-3a2 2 0 0 1-2-2V3\"></path><path d=\"M3 16h3a2 2 0 0 1 2 2v3\"></path><path d=\"M16 21v-3a2 2 0 0 1 2-2h3\"></path></svg>"), _e = c("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 3H5a2 2 0 0 0-2 2v3\"></path><path d=\"M21 8V5a2 2 0 0 0-2-2h-3\"></path><path d=\"M3 16v3a2 2 0 0 0 2 2h3\"></path><path d=\"M16 21h3a2 2 0 0 0 2-2v-3\"></path></svg>"), ve = x("<button type=\"button\" class=\"sv-grid-chart-icon-btn\"><!></button> <button type=\"button\" class=\"sv-grid-chart-icon-btn\" aria-label=\"Dock chart\" title=\"Dock\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"></rect><line x1=\"15\" y1=\"3\" x2=\"15\" y2=\"21\"></line></svg></button>", 1), ye = x("<button type=\"button\" class=\"sv-grid-chart-icon-btn\" aria-label=\"Pop out chart\" title=\"Pop out\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 3h6v6\"></path><path d=\"M10 14 21 3\"></path><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path></svg></button>"), be = x("<div><button type=\"button\" class=\"sv-grid-chart-tab-label\" role=\"tab\"> </button> <button type=\"button\" class=\"sv-grid-chart-tab-x\" title=\"Remove\">&times;</button></div>"), xe = x("<div class=\"sv-grid-chart-tabs\" role=\"tablist\" aria-label=\"Charts\"></div>"), Se = x("<p class=\"sv-grid-chart-ai-msg is-error\"> </p>"), Ce = x("<p class=\"sv-grid-chart-ai-msg\"> </p>"), we = x("<div class=\"sv-grid-chart-ai\"><form class=\"sv-grid-chart-ai-row\"><input class=\"sv-grid-chart-ai-input\" type=\"text\" placeholder=\"Describe a chart, e.g. revenue by region stacked by product\"/> <button type=\"submit\" class=\"sv-grid-chart-btn\"> </button></form> <!></div>"), Te = x("<option> </option>"), Ee = x("<option> </option>"), De = x("<option> </option>"), Oe = x("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\">Split by</span> <select><option>(none)</option><!></select></label>"), ke = x("<option> </option>"), Ae = x("<option> </option>"), je = x("<option> </option>"), Me = x("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> Stacked</label>"), Ne = x("<label class=\"sv-grid-chart-toggle\" title=\"Logarithmic value axis - flattens wide-range data\"><input type=\"checkbox\"/> Log scale</label>"), Pe = x("<label class=\"sv-grid-chart-toggle\" title=\"Space points by actual date - real time ticks and proportional gaps\"><input type=\"checkbox\"/> Date axis</label>"), Fe = x("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\">Type</span> <select></select></label> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\">Group by</span> <select></select></label> <!> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\">Value</span> <select></select></label> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\">Aggregate</span> <select></select></label> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\">Format</span> <select></select></label> <!> <label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> Labels</label> <!> <!>", 1), Ie = x("<p class=\"sv-grid-chart-empty\"><!></p>"), Le = x("<div class=\"sv-grid-chart-float-resizer\" role=\"separator\" aria-label=\"Resize chart window\"></div>"), Re = x("<section aria-label=\"Chart\"><!> <header class=\"sv-grid-chart-panel-head\"><div><svg class=\"sv-grid-chart-title-icon\" width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"10\"></line><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"4\"></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"16\"></line></svg> <span class=\"sv-grid-chart-title\">Chart</span> <div class=\"sv-grid-chart-actions\"><!> <div class=\"sv-grid-chart-export\"><button type=\"button\" class=\"sv-grid-chart-icon-btn\" aria-label=\"Export chart\" title=\"Export\"><!></button> <!></div> <!> <!> <!> <button type=\"button\" class=\"sv-grid-chart-close\" aria-label=\"Close chart\">&times;</button></div></div> <!> <!> <div class=\"sv-grid-chart-controls\"><!></div></header> <div class=\"sv-grid-chart-panel-body\"><!></div> <!></section>");
127
127
  function V(n, c) {
128
- te(c, !0);
129
- let x = C(c, "ctrl", 7), j = e(() => x().chartingConfig), M = e(() => x().chartCfg), F = e(() => x().chartIsCustom), I = e(() => d(j)?.position ?? "bottom"), L = e(() => d(j)?.crossFilter !== !1), R = e(() => x().chartSpec), z = e(() => x().chartableColumns), B = e(() => x().chartSize ?? (d(I) === "right" ? d(j)?.width ?? 340 : d(j)?.height ?? 260)), V = e(() => x().chartFloating), H = e(() => x().chartMaximized), U = e(() => x().chartFloatRect), ze = h(null);
128
+ re(c, !0);
129
+ let x = te(c, "ctrl", 7), j = e(() => x().chartingConfig), M = e(() => x().chartCfg), F = e(() => x().chartIsCustom), I = e(() => d(j)?.position ?? "bottom"), L = e(() => d(j)?.crossFilter !== !1), R = e(() => x().chartSpec), z = e(() => x().chartableColumns), B = e(() => x().chartSize ?? (d(I) === "right" ? d(j)?.width ?? 340 : d(j)?.height ?? 260)), V = e(() => x().chartFloating), H = e(() => x().chartMaximized), U = e(() => x().chartFloatRect), ze = h(null);
130
130
  function Be() {
131
131
  let e = d(ze)?.offsetParent;
132
132
  return {
@@ -293,7 +293,7 @@ function V(n, c) {
293
293
  var t = le();
294
294
  let n;
295
295
  p(() => {
296
- n = A(t, 1, "sv-grid-chart-resizer", null, n, { "is-dragging": d(pt) }), v(t, "aria-orientation", d(I) === "right" ? "vertical" : "horizontal");
296
+ n = A(t, 1, "sv-grid-chart-resizer", null, n, { "is-dragging": d(pt) }), y(t, "aria-orientation", d(I) === "right" ? "vertical" : "horizontal");
297
297
  }), i("pointerdown", t, mt), S(e, t);
298
298
  };
299
299
  t(gt, (e) => {
@@ -317,19 +317,19 @@ function V(n, c) {
317
317
  };
318
318
  t(wt, (e) => {
319
319
  d(it) ? e(Tt) : e(Et, -1);
320
- }), b(Q);
320
+ }), E(Q);
321
321
  var Dt = a(Q, 2), Ot = (e) => {
322
322
  var t = pe(), n = o(t), r = a(n, 2), s = a(r, 2), c = a(s, 2);
323
- b(t), p(() => s.disabled = !d(ot)), i("click", n, st), i("click", r, ct), i("click", s, lt), i("click", c, ut), S(e, t);
323
+ E(t), p(() => s.disabled = !d(ot)), i("click", n, st), i("click", r, ct), i("click", s, lt), i("click", c, ut), S(e, t);
324
324
  };
325
325
  t(Dt, (e) => {
326
326
  d(W) && e(Ot);
327
- }), b(Ct);
327
+ }), E(Ct);
328
328
  var kt = a(Ct, 2), At = (e) => {
329
329
  var t = me();
330
330
  let n;
331
331
  p(() => {
332
- n = A(t, 1, "sv-grid-chart-btn sv-grid-chart-ai-btn", null, n, { "is-active": d(G) }), v(t, "aria-expanded", d(G));
332
+ n = A(t, 1, "sv-grid-chart-btn sv-grid-chart-ai-btn", null, n, { "is-active": d(G) }), y(t, "aria-expanded", d(G));
333
333
  }), i("click", t, () => m(G, !d(G))), S(e, t);
334
334
  };
335
335
  t(kt, (e) => {
@@ -352,10 +352,10 @@ function V(n, c) {
352
352
  };
353
353
  t(s, (e) => {
354
354
  d(H) ? e(c) : e(l, -1);
355
- }), b(r);
355
+ }), E(r);
356
356
  var u = a(r, 2);
357
357
  p(() => {
358
- v(r, "aria-label", d(H) ? "Restore" : "Maximize"), v(r, "title", d(H) ? "Restore" : "Maximize");
358
+ y(r, "aria-label", d(H) ? "Restore" : "Maximize"), y(r, "title", d(H) ? "Restore" : "Maximize");
359
359
  }), i("click", r, Ue), i("click", u, He), S(e, n);
360
360
  }, Ft = (e) => {
361
361
  var t = ye();
@@ -365,19 +365,19 @@ function V(n, c) {
365
365
  d(V) ? e(Pt) : e(Ft, -1);
366
366
  });
367
367
  var It = a(Nt, 2);
368
- b(bt), b(Z);
368
+ E(bt), E(Z);
369
369
  var Lt = a(Z, 2), Rt = (e) => {
370
370
  var t = xe();
371
371
  k(t, 23, () => x().charts, (e) => e.id, (e, t, n) => {
372
372
  var r = be();
373
373
  let s;
374
374
  var c = o(r), u = o(c, !0);
375
- b(c);
375
+ E(c);
376
376
  var f = a(c, 2);
377
- b(r), p(() => {
378
- s = A(r, 1, "sv-grid-chart-tab", null, s, { "is-active": d(n) === x().activeChartIndex }), v(c, "aria-selected", d(n) === x().activeChartIndex), l(u, d(t).title), v(f, "aria-label", `Remove ${d(t).title}`);
377
+ E(r), p(() => {
378
+ s = A(r, 1, "sv-grid-chart-tab", null, s, { "is-active": d(n) === x().activeChartIndex }), y(c, "aria-selected", d(n) === x().activeChartIndex), l(u, d(t).title), y(f, "aria-label", `Remove ${d(t).title}`);
379
379
  }), i("click", c, () => x().activeChartIndex = d(n)), i("click", f, () => x().removeChart(d(n))), S(e, r);
380
- }), b(t), S(e, t);
380
+ }), E(t), S(e, t);
381
381
  };
382
382
  t(Lt, (e) => {
383
383
  !d(F) && x().charts.length > 1 && e(Rt);
@@ -386,17 +386,17 @@ function V(n, c) {
386
386
  var n = we(), r = o(n), i = o(r);
387
387
  _(i);
388
388
  var c = a(i, 2), u = o(c, !0);
389
- b(c), b(r);
389
+ E(c), E(r);
390
390
  var f = a(r, 2), h = (e) => {
391
391
  var t = Se(), n = o(t, !0);
392
- b(t), p(() => l(n, d(J))), S(e, t);
392
+ E(t), p(() => l(n, d(J))), S(e, t);
393
393
  }, g = (e) => {
394
394
  var t = Ce(), n = o(t, !0);
395
- b(t), p(() => l(n, d(Y))), S(e, t);
395
+ E(t), p(() => l(n, d(Y))), S(e, t);
396
396
  };
397
397
  t(f, (e) => {
398
398
  d(J) ? e(h) : d(Y) && e(g, 1);
399
- }), b(n), p((e) => {
399
+ }), E(n), p((e) => {
400
400
  i.disabled = d(q), c.disabled = e, l(u, d(q) ? "Thinking..." : "Chart it");
401
401
  }, [() => d(q) || !d(K).trim()]), s("submit", r, (e) => {
402
402
  e.preventDefault(), ft();
@@ -409,107 +409,107 @@ function V(n, c) {
409
409
  var n = Fe(), r = ne(n), s = a(o(r), 2);
410
410
  k(s, 21, () => $e, (e) => e.value, (e, t) => {
411
411
  var n = Te(), r = o(n, !0);
412
- b(n);
412
+ E(n);
413
413
  var i = {};
414
414
  p(() => {
415
415
  l(r, d(t).label), i !== (i = d(t).value) && (n.value = (n.__value = d(t).value) ?? "");
416
416
  }), S(e, n);
417
- }), b(s);
417
+ }), E(s);
418
418
  var c;
419
- y(s), b(r);
419
+ b(s), E(r);
420
420
  var u = a(r, 2), f = a(o(u), 2);
421
421
  k(f, 21, () => d(z).dims, (e) => e.id, (e, t) => {
422
422
  var n = Ee(), r = o(n, !0);
423
- b(n);
423
+ E(n);
424
424
  var i = {};
425
425
  p(() => {
426
426
  l(r, d(t).label), i !== (i = d(t).id) && (n.value = (n.__value = d(t).id) ?? "");
427
427
  }), S(e, n);
428
- }), b(f);
428
+ }), E(f);
429
429
  var m;
430
- y(f), b(u);
430
+ b(f), E(u);
431
431
  var h = a(u, 2), ee = (e) => {
432
432
  var t = Oe(), n = a(o(t), 2), r = o(n);
433
433
  r.value = r.__value = "";
434
434
  var s = a(r);
435
435
  k(s, 17, () => d(z).dims, (e) => e.id, (e, t) => {
436
436
  var n = De(), r = o(n, !0);
437
- b(n);
437
+ E(n);
438
438
  var i = {};
439
439
  p(() => {
440
440
  l(r, d(t).label), i !== (i = d(t).id) && (n.value = (n.__value = d(t).id) ?? "");
441
441
  }), S(e, n);
442
- }), b(n);
442
+ }), E(n);
443
443
  var c;
444
- y(n), b(t), p(() => {
444
+ b(n), E(t), p(() => {
445
445
  c !== (c = x().chartSeriesId ?? "") && (n.value = (n.__value = x().chartSeriesId ?? "") ?? "", g(n, x().chartSeriesId ?? ""));
446
446
  }), i("change", n, (e) => x().chartSeriesId = e.currentTarget.value || null), S(e, t);
447
447
  };
448
448
  t(h, (e) => {
449
449
  d(z).dims.length > 1 && e(ee);
450
450
  });
451
- var v = a(h, 2), C = a(o(v), 2);
452
- k(C, 21, () => d(z).measures, (e) => e.id, (e, t) => {
451
+ var v = a(h, 2), y = a(o(v), 2);
452
+ k(y, 21, () => d(z).measures, (e) => e.id, (e, t) => {
453
453
  var n = ke(), r = o(n, !0);
454
- b(n);
454
+ E(n);
455
455
  var i = {};
456
456
  p(() => {
457
457
  l(r, d(t).label), i !== (i = d(t).id) && (n.value = (n.__value = d(t).id) ?? "");
458
458
  }), S(e, n);
459
- }), b(C);
459
+ }), E(y);
460
460
  var te;
461
- y(C), b(v);
461
+ b(y), E(v);
462
462
  var w = a(v, 2), D = a(o(w), 2);
463
463
  k(D, 21, () => et, (e) => e.value, (e, t) => {
464
464
  var n = Ae(), r = o(n, !0);
465
- b(n);
465
+ E(n);
466
466
  var i = {};
467
467
  p(() => {
468
468
  l(r, d(t).label), i !== (i = d(t).value) && (n.value = (n.__value = d(t).value) ?? "");
469
469
  }), S(e, n);
470
- }), b(D);
470
+ }), E(D);
471
471
  var re;
472
- y(D), b(w);
472
+ b(D), E(w);
473
473
  var O = a(w, 2), A = a(o(O), 2);
474
474
  k(A, 21, () => tt, (e) => e.value, (e, t) => {
475
475
  var n = je(), r = o(n, !0);
476
- b(n);
476
+ E(n);
477
477
  var i = {};
478
478
  p(() => {
479
479
  l(r, d(t).label), i !== (i = d(t).value) && (n.value = (n.__value = d(t).value) ?? "");
480
480
  }), S(e, n);
481
- }), b(A);
481
+ }), E(A);
482
482
  var ie;
483
- y(A), b(O);
483
+ b(A), E(O);
484
484
  var j = a(O, 2), M = (e) => {
485
485
  var t = Me(), n = o(t);
486
- _(n), E(), b(t), p(() => T(n, x().chartStacked)), i("change", n, (e) => x().chartStacked = e.currentTarget.checked), S(e, t);
486
+ _(n), C(), E(t), p(() => T(n, x().chartStacked)), i("change", n, (e) => x().chartStacked = e.currentTarget.checked), S(e, t);
487
487
  };
488
488
  t(j, (e) => {
489
489
  x().chartType !== "pie" && e(M);
490
490
  });
491
491
  var N = a(j, 2), P = o(N);
492
- _(P), E(), b(N);
492
+ _(P), C(), E(N);
493
493
  var F = a(N, 2), I = (e) => {
494
494
  var t = Ne(), n = o(t);
495
- _(n), E(), b(t), p(() => T(n, x().chartLogScale)), i("change", n, (e) => x().chartLogScale = e.currentTarget.checked), S(e, t);
495
+ _(n), C(), E(t), p(() => T(n, x().chartLogScale)), i("change", n, (e) => x().chartLogScale = e.currentTarget.checked), S(e, t);
496
496
  };
497
497
  t(F, (e) => {
498
498
  x().chartType !== "pie" && e(I);
499
499
  });
500
500
  var L = a(F, 2), R = (e) => {
501
501
  var t = Pe(), n = o(t);
502
- _(n), E(), b(t), p(() => T(n, x().chartTimeAxis)), i("change", n, (e) => x().chartTimeAxis = e.currentTarget.checked), S(e, t);
502
+ _(n), C(), E(t), p(() => T(n, x().chartTimeAxis)), i("change", n, (e) => x().chartTimeAxis = e.currentTarget.checked), S(e, t);
503
503
  };
504
504
  t(L, (e) => {
505
505
  x().chartDimensionIsDate && x().chartType !== "pie" && e(R);
506
506
  }), p(() => {
507
- c !== (c = x().chartType) && (s.value = (s.__value = x().chartType) ?? "", g(s, x().chartType)), m !== (m = x().chartDimensionId ?? "") && (f.value = (f.__value = x().chartDimensionId ?? "") ?? "", g(f, x().chartDimensionId ?? "")), te !== (te = x().chartMeasureId ?? "") && (C.value = (C.__value = x().chartMeasureId ?? "") ?? "", g(C, x().chartMeasureId ?? "")), re !== (re = x().chartReduce) && (D.value = (D.__value = x().chartReduce) ?? "", g(D, x().chartReduce)), ie !== (ie = x().chartValueFormat) && (A.value = (A.__value = x().chartValueFormat) ?? "", g(A, x().chartValueFormat)), T(P, x().chartDataLabels);
508
- }), i("change", s, (e) => x().chartType = e.currentTarget.value), i("change", f, (e) => x().chartDimensionId = e.currentTarget.value || null), i("change", C, (e) => x().chartMeasureId = e.currentTarget.value || null), i("change", D, (e) => x().chartReduce = e.currentTarget.value), i("change", A, (e) => x().chartValueFormat = e.currentTarget.value), i("change", P, (e) => x().chartDataLabels = e.currentTarget.checked), S(e, n);
507
+ c !== (c = x().chartType) && (s.value = (s.__value = x().chartType) ?? "", g(s, x().chartType)), m !== (m = x().chartDimensionId ?? "") && (f.value = (f.__value = x().chartDimensionId ?? "") ?? "", g(f, x().chartDimensionId ?? "")), te !== (te = x().chartMeasureId ?? "") && (y.value = (y.__value = x().chartMeasureId ?? "") ?? "", g(y, x().chartMeasureId ?? "")), re !== (re = x().chartReduce) && (D.value = (D.__value = x().chartReduce) ?? "", g(D, x().chartReduce)), ie !== (ie = x().chartValueFormat) && (A.value = (A.__value = x().chartValueFormat) ?? "", g(A, x().chartValueFormat)), T(P, x().chartDataLabels);
508
+ }), i("change", s, (e) => x().chartType = e.currentTarget.value), i("change", f, (e) => x().chartDimensionId = e.currentTarget.value || null), i("change", y, (e) => x().chartMeasureId = e.currentTarget.value || null), i("change", D, (e) => x().chartReduce = e.currentTarget.value), i("change", A, (e) => x().chartValueFormat = e.currentTarget.value), i("change", P, (e) => x().chartDataLabels = e.currentTarget.checked), S(e, n);
509
509
  };
510
510
  t(Ht, (e) => {
511
511
  d(F) || e(Ut);
512
- }), b(Vt), b(vt);
512
+ }), E(Vt), E(vt);
513
513
  var $ = a(vt, 2), Wt = o($), Gt = (t) => {
514
514
  {
515
515
  let n = e(() => d(M)?.zoom === !0), r = e(() => d(M)?.brush === !0), i = e(() => d(M)?.export === !0 || void 0);
@@ -550,30 +550,30 @@ function V(n, c) {
550
550
  };
551
551
  t(r, (e) => {
552
552
  !d(z).dims.length || !d(z).measures.length ? e(i) : e(a, -1);
553
- }), b(n), S(e, n);
553
+ }), E(n), S(e, n);
554
554
  };
555
555
  t(Wt, (e) => {
556
556
  d(R) && (d(R).series.length || d(F)) ? e(Gt) : e(Kt, -1);
557
- }), b($), ee($, (e) => m(rt, e), () => d(rt));
557
+ }), E($), ee($, (e) => m(rt, e), () => d(rt));
558
558
  var qt = a($, 2), Jt = (e) => {
559
559
  var t = Le();
560
560
  i("pointerdown", t, Ge), S(e, t);
561
561
  };
562
562
  t(qt, (e) => {
563
563
  d(V) && !d(H) && e(Jt);
564
- }), b(X), ee(X, (e) => m(ze, e), () => d(ze)), p(() => {
564
+ }), E(X), ee(X, (e) => m(ze, e), () => d(ze)), p(() => {
565
565
  ht = A(X, 1, "sv-grid-chart-panel", null, ht, {
566
566
  "is-right": d(I) === "right" && !d(V),
567
567
  "is-bottom": d(I) === "bottom" && !d(V),
568
568
  "is-floating": d(V),
569
569
  "is-maximized": d(V) && d(H)
570
- }), O(X, d(Ke)), yt = A(Z, 1, "sv-grid-chart-drawer-title", null, yt, { "is-drag-handle": d(V) && !d(H) }), v(Q, "aria-expanded", d(W));
570
+ }), O(X, d(Ke)), yt = A(Z, 1, "sv-grid-chart-drawer-title", null, yt, { "is-drag-handle": d(V) && !d(H) }), y(Q, "aria-expanded", d(W));
571
571
  }), i("pointerdown", Z, We), i("click", Q, () => m(W, !d(W))), i("click", It, () => x().chartPanelOpen = !1), w($, "clientWidth", (e) => m(qe, e)), w($, "clientHeight", (e) => m(Je, e)), f(3, X, () => N, () => ({
572
572
  x: !d(V) && d(I) === "right" ? d(B) : 0,
573
573
  y: !d(V) && d(I) === "bottom" ? d(B) : 0,
574
574
  duration: 180,
575
575
  easing: P
576
- })), S(n, X), re();
576
+ })), S(n, X), v();
577
577
  }
578
578
  n([
579
579
  "pointerdown",
@@ -1,10 +1,10 @@
1
1
  import { a as e } from "./chart-uvs3sFJA.js";
2
- import { $ as t, E as n, K as r, R as i, X as a, Z as o, it as s, j as c, k as l, nt as u, o as d, tt as f } from "./client-DoXxrq8q.js";
3
- import { t as p } from "./SvGridChart-BztTavvw.js";
2
+ import { $ as t, E as n, K as r, R as i, X as a, Z as o, et as s, j as c, k as l, o as u, rt as d, tt as f } from "./client-DjwUji8D.js";
3
+ import { t as p } from "./SvGridChart-yK5Zv85y.js";
4
4
  //#region ../grid/dist/SvGridChartView.svelte
5
5
  var m = c("<div class=\"sv-grid-chart-view svelte-9enbu0\"><!></div>");
6
6
  function h(c, h) {
7
- u(h, !0);
7
+ f(h, !0);
8
8
  let g = o(0), _ = o(0), v = t(() => {
9
9
  let t = e(h.data ?? [], {
10
10
  type: h.chart.type ?? "bar",
@@ -44,7 +44,7 @@ function h(c, h) {
44
44
  };
45
45
  n(b, (e) => {
46
46
  i(g) > 0 && i(_) > 0 && e(x);
47
- }), s(y), d(y, "clientWidth", (e) => a(g, e)), d(y, "clientHeight", (e) => a(_, e)), l(c, y), f();
47
+ }), d(y), u(y, "clientWidth", (e) => a(g, e)), u(y, "clientHeight", (e) => a(_, e)), l(c, y), s();
48
48
  }
49
49
  //#endregion
50
50
  export { h as default };
@@ -1,10 +1,10 @@
1
- import { $ as e, A as t, E as n, F as r, H as i, I as a, J as o, K as s, L as c, N as l, O as u, R as d, V as f, X as p, Y as m, Z as h, a as g, d as _, f as v, it as y, j as b, k as x, n as S, nt as C, q as ee, rt as w, s as te, tt as T, v as E, w as D, x as O, y as k } from "./client-DoXxrq8q.js";
1
+ import { $ as e, A as t, E as n, F as r, H as i, I as a, J as o, K as s, L as c, N as l, O as u, R as d, V as f, X as p, Y as m, Z as h, a as g, d as _, et as v, f as y, j as b, k as x, n as S, nt as C, q as ee, rt as w, s as te, tt as T, v as E, w as D, x as O, y as k } from "./client-DjwUji8D.js";
2
2
  import { n as ne, r as re, t as ie } from "./popover-WsGlvtQv.js";
3
3
  //#region ../grid/dist/SvGridDropdown.svelte
4
4
  var ae = b("<span class=\"sv-grid-chip sv-grid-chip-removable svelte-13rpzh6\"> <span class=\"sv-grid-chip-remove svelte-13rpzh6\" role=\"button\">×</span></span>"), oe = b("<span class=\"sv-grid-dropdown-chips svelte-13rpzh6\"></span>"), se = b("<span class=\"sv-grid-chip svelte-13rpzh6\"> </span>"), ce = b("<span class=\"sv-grid-dropdown-label svelte-13rpzh6\"> </span>"), le = b("<input type=\"search\" class=\"sv-grid-dropdown-search\" placeholder=\"Search…\"/>"), ue = b("<div class=\"sv-grid-dropdown-empty\" role=\"status\" aria-live=\"polite\">Loading…</div>"), de = b("<div class=\"sv-grid-dropdown-empty\"> </div>"), fe = b("<span class=\"sv-grid-dropdown-check\" aria-hidden=\"true\"> </span>"), pe = b("<span class=\"sv-grid-dropdown-option-chip\"> </span>"), me = b("<span class=\"sv-grid-dropdown-option-label\"> </span>"), he = b("<div role=\"option\"><!> <!></div>"), ge = b("<div class=\"sv-grid-dropdown-footer\"><button type=\"button\" class=\"sv-grid-dropdown-done\">Done</button></div>"), _e = b("<div role=\"listbox\"><!> <!> <!></div>"), ve = b("<div><button type=\"button\" aria-haspopup=\"listbox\"><!> <span class=\"sv-grid-dropdown-caret svelte-13rpzh6\" aria-hidden=\"true\">▾</span></button> <!></div>");
5
5
  function A(r, b) {
6
6
  let A = l();
7
- C(b, !0);
7
+ T(b, !0);
8
8
  let j = S(b, "multiple", 3, !1), ye = S(b, "placeholder", 3, "Select…"), M = S(b, "renderChipsInTrigger", 3, !1), N = S(b, "searchable", 3, !1), be = S(b, "autoOpen", 3, !0), xe = S(b, "loading", 3, !1);
9
9
  function P(e) {
10
10
  return e >= 0 && e < d(L).length ? `${A}-opt-${e}` : void 0;
@@ -142,45 +142,45 @@ function A(r, b) {
142
142
  D(n, 21, () => d(W), (e) => String(e), (t, n) => {
143
143
  let r = e(() => b.options.find((e) => String(e.value) === String(d(n))));
144
144
  var i = ae(), c = s(i), l = o(c);
145
- v(l, "tabindex", -1), y(i), f((e, t, n) => {
146
- E(i, e), u(c, `${t ?? ""} `), v(l, "aria-label", `Remove ${n ?? ""}`);
145
+ y(l, "tabindex", -1), w(i), f((e, t, n) => {
146
+ E(i, e), u(c, `${t ?? ""} `), y(l, "aria-label", `Remove ${n ?? ""}`);
147
147
  }, [
148
148
  () => d(r)?.color ? Z(d(r).color) : "",
149
149
  () => d(r) ? d(r).label : String(d(n)),
150
150
  () => d(r) ? d(r).label : String(d(n))
151
151
  ]), a("mousedown", l, (e) => e.preventDefault()), a("click", l, (e) => Ee(d(n), e)), x(t, i);
152
- }), y(n), x(t, n);
152
+ }), w(n), x(t, n);
153
153
  }, Me = (e) => {
154
154
  var t = se(), n = s(t, !0);
155
- y(t), f((e) => {
155
+ w(t), f((e) => {
156
156
  E(t, e), u(n, d(Se));
157
157
  }, [() => Z(d(Ce))]), x(e, t);
158
158
  }, Ne = (e) => {
159
159
  var t = ce(), n = s(t, !0);
160
- y(t), f(() => u(n, d(Se))), x(e, t);
160
+ w(t), f(() => u(n, d(Se))), x(e, t);
161
161
  };
162
162
  n(Ae, (e) => {
163
163
  M() && d(W).length > 0 ? e(je) : !j() && d(W).length === 1 && d(Ce) ? e(Me, 1) : e(Ne, -1);
164
- }), w(2), y($), g($, (e) => p(V, e), () => d(V)), O($, (e) => De?.(e));
164
+ }), C(2), w($), g($, (e) => p(V, e), () => d(V)), O($, (e) => De?.(e));
165
165
  var Pe = o($, 2), Fe = (r) => {
166
166
  let i = e(() => b.options.length > 10), l = e(() => Math.min(d(i) ? 10 * d(F) + (j() ? 40 : 0) + 8 : Infinity, d(U).availHeight));
167
167
  var m = _e();
168
- let h, S;
169
- var C = s(m), w = (e) => {
168
+ let h, v;
169
+ var S = s(m), C = (e) => {
170
170
  var t = le();
171
171
  _(t), a("mousedown", t, (e) => e.stopPropagation()), a("click", t, (e) => e.stopPropagation()), a("keydown", t, (e) => {
172
172
  e.key === "Escape" && (e.preventDefault(), p(R, !1), b.onCancel?.());
173
173
  }), te(t, () => d(I), (e) => p(I, e)), x(e, t);
174
174
  };
175
- n(C, (e) => {
176
- N() && e(w);
175
+ n(S, (e) => {
176
+ N() && e(C);
177
177
  });
178
- var T = o(C, 2), ie = (e) => {
178
+ var T = o(S, 2), ie = (e) => {
179
179
  var t = ue();
180
180
  x(e, t);
181
181
  }, ae = (e) => {
182
182
  var t = de(), n = s(t, !0);
183
- y(t), f(() => u(n, N() && d(I) ? `No matches for "${d(I)}"` : "No options")), x(e, t);
183
+ w(t), f(() => u(n, N() && d(I) ? `No matches for "${d(I)}"` : "No options")), x(e, t);
184
184
  }, oe = (r) => {
185
185
  var i = t(), l = ee(i);
186
186
  D(l, 19, () => d(L), (e) => String(e.value), (t, r, i) => {
@@ -189,27 +189,27 @@ function A(r, b) {
189
189
  let h;
190
190
  var g = s(m), _ = (e) => {
191
191
  var t = fe(), n = s(t, !0);
192
- y(t), f(() => u(n, d(l) ? "✓" : "")), x(e, t);
192
+ w(t), f(() => u(n, d(l) ? "✓" : "")), x(e, t);
193
193
  };
194
194
  n(g, (e) => {
195
195
  j() && e(_);
196
196
  });
197
- var b = o(g, 2), S = (e) => {
197
+ var v = o(g, 2), b = (e) => {
198
198
  var t = pe(), n = s(t, !0);
199
- y(t), f((e) => {
199
+ w(t), f((e) => {
200
200
  E(t, e), u(n, d(r).label);
201
201
  }, [() => Z(d(r).color)]), x(e, t);
202
- }, C = (e) => {
202
+ }, S = (e) => {
203
203
  var t = me(), n = s(t, !0);
204
- y(t), f(() => u(n, d(r).label)), x(e, t);
204
+ w(t), f(() => u(n, d(r).label)), x(e, t);
205
205
  };
206
- n(b, (e) => {
207
- d(r).color ? e(S) : e(C, -1);
208
- }), y(m), f((e) => {
206
+ n(v, (e) => {
207
+ d(r).color ? e(b) : e(S, -1);
208
+ }), w(m), f((e) => {
209
209
  h = k(m, 1, "sv-grid-dropdown-option", null, h, {
210
210
  "sv-grid-dropdown-option-selected": d(l),
211
211
  "sv-grid-dropdown-option-highlighted": d(i) === d(z)
212
- }), v(m, "id", e), v(m, "aria-selected", d(l)), v(m, "data-opt-idx", d(i));
212
+ }), y(m, "id", e), y(m, "aria-selected", d(l)), y(m, "data-opt-idx", d(i));
213
213
  }, [() => P(d(i))]), a("mousedown", m, (e) => {
214
214
  e.preventDefault(), K(d(r));
215
215
  }), c("mouseenter", m, () => p(z, d(i), !0)), x(t, m);
@@ -220,14 +220,14 @@ function A(r, b) {
220
220
  });
221
221
  var se = o(T, 2), ce = (e) => {
222
222
  var t = ge(), n = s(t);
223
- y(t), a("mousedown", n, (e) => e.preventDefault()), a("click", n, () => {
223
+ w(t), a("mousedown", n, (e) => e.preventDefault()), a("click", n, () => {
224
224
  Y(), b.onCommit?.();
225
225
  }), x(e, t);
226
226
  };
227
227
  n(se, (e) => {
228
228
  j() && e(ce);
229
- }), y(m), g(m, (e) => p(H, e), () => d(H)), O(m, (e) => re?.(e)), O(m, (e, t) => ne?.(e, t), () => ({ up: d(U).openUpward })), f(() => {
230
- h = k(m, 1, "sv-grid-dropdown-panel", null, h, { "sv-grid-dropdown-panel-fits": !d(i) }), v(m, "aria-multiselectable", j()), S = E(m, "", S, {
229
+ }), w(m), g(m, (e) => p(H, e), () => d(H)), O(m, (e) => re?.(e)), O(m, (e, t) => ne?.(e, t), () => ({ up: d(U).openUpward })), f(() => {
230
+ h = k(m, 1, "sv-grid-dropdown-panel", null, h, { "sv-grid-dropdown-panel-fits": !d(i) }), y(m, "aria-multiselectable", j()), v = E(m, "", v, {
231
231
  position: "fixed",
232
232
  top: d(U).openUpward ? null : `${d(U).top}px`,
233
233
  bottom: d(U).openUpward ? `${d(U).bottom}px` : null,
@@ -240,9 +240,9 @@ function A(r, b) {
240
240
  };
241
241
  n(Pe, (e) => {
242
242
  d(R) && e(Fe);
243
- }), y(Q), g(Q, (e) => p(B, e), () => d(B)), f((e) => {
244
- Oe = k(Q, 1, "sv-grid-dropdown svelte-13rpzh6", null, Oe, { "sv-grid-dropdown-open": d(R) }), ke = k($, 1, "sv-grid-dropdown-trigger svelte-13rpzh6", null, ke, { "sv-grid-dropdown-trigger-chips": M() && d(W).length > 0 }), v($, "aria-expanded", d(R)), v($, "aria-activedescendant", e);
245
- }, [() => d(R) ? P(d(z)) : void 0]), a("focusout", Q, Te), a("click", Q, (e) => e.stopPropagation()), a("dblclick", Q, (e) => e.stopPropagation()), a("pointerdown", Q, (e) => e.stopPropagation()), a("mousedown", Q, (e) => e.stopPropagation()), a("click", $, () => d(R) ? Y() : q()), a("keydown", $, we), x(r, Q), T();
243
+ }), w(Q), g(Q, (e) => p(B, e), () => d(B)), f((e) => {
244
+ Oe = k(Q, 1, "sv-grid-dropdown svelte-13rpzh6", null, Oe, { "sv-grid-dropdown-open": d(R) }), ke = k($, 1, "sv-grid-dropdown-trigger svelte-13rpzh6", null, ke, { "sv-grid-dropdown-trigger-chips": M() && d(W).length > 0 }), y($, "aria-expanded", d(R)), y($, "aria-activedescendant", e);
245
+ }, [() => d(R) ? P(d(z)) : void 0]), a("focusout", Q, Te), a("click", Q, (e) => e.stopPropagation()), a("dblclick", Q, (e) => e.stopPropagation()), a("pointerdown", Q, (e) => e.stopPropagation()), a("mousedown", Q, (e) => e.stopPropagation()), a("click", $, () => d(R) ? Y() : q()), a("keydown", $, we), x(r, Q), v();
246
246
  }
247
247
  r([
248
248
  "focusout",