@svgrid/grid-wc 3.0.2 → 3.0.4

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/README.md +4 -1
  2. package/dist/GridMenus-DMkf7UMn.js +1086 -0
  3. package/dist/{SvChartMenu-CBMKm7Xb.js → SvChartMenu-DkSyLWYH.js} +2 -2
  4. package/dist/{shadow/SvDateTimePicker-CnLlqNDQ.js → SvDateTimePicker-Czin1Ead.js} +1 -1
  5. package/dist/{shadow/SvGridCellEditor-B005dmV1.js → SvGridCellEditor-DhXEIlyE.js} +1 -1
  6. package/dist/{SvGridChart-4TcL9Rj2.js → SvGridChart-BMdCbrqb.js} +5 -5
  7. package/dist/{SvGridChartBuilder-C4OL4XYx.js → SvGridChartBuilder-Chp_MD1B.js} +121 -120
  8. package/dist/{shadow/SvGridChartPanel-CfHA8Ioq.js → SvGridChartPanel-BIV2O2Lp.js} +6 -6
  9. package/dist/{SvGridChartView-Ci-9_EJ0.js → SvGridChartView-DyhkumD-.js} +2 -2
  10. package/dist/{SvGridDropdown-BlA6iw9m.js → SvGridDropdown-BwPpGwLz.js} +140 -140
  11. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +37 -3
  12. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
  13. package/dist/angular/types/svgrid-grid-wc-angular.d.ts +16 -1
  14. package/dist/{shadow/cell-formatting-Eypm-id0.js → cell-formatting-CBfgahv1.js} +1 -1
  15. package/dist/chart/{SvChartMenu-C-sbGNk8.js → SvChartMenu-DslxOgPN.js} +5 -1
  16. package/dist/chart/{chart-summary-B86RFA3M.js → chart-summary-6Xu2JoNC.js} +1 -1
  17. package/dist/chart/{chart-trend-DP6DSsBa.js → chart-trend-7fxtAqEl.js} +1 -1
  18. package/dist/chart/sv-chart-element.js +3 -3
  19. package/dist/{chart-DoqdUoGg.js → chart-D_LKA1fr.js} +1 -1
  20. package/dist/{chart-export-pdf-BirUdchl.js → chart-export-pdf-9OCvhzr0.js} +1 -1
  21. package/dist/{shadow/chart-summary-BP9i-v8M.js → chart-summary-v3Lhe8YD.js} +1 -1
  22. package/dist/{shadow/dismissable-DvhBKm3q.js → dismissable-CQ6XFXsk.js} +5 -1
  23. package/dist/{export-format-uGayRKWM.js → export-format-CAi1mp-1.js} +1 -1
  24. package/dist/{shadow/focus-trap-DvlOlOGM.js → focus-trap-Dbb2tJxb.js} +1 -1
  25. package/dist/react/index.d.ts +44 -0
  26. package/dist/react/index.js +5 -1
  27. package/dist/{row-resize-Cf8qPLbi.js → row-resize-limG_N1z.js} +41 -32
  28. package/dist/shadow/GridMenus-DMkf7UMn.js +1086 -0
  29. package/dist/shadow/{SvChartMenu-CBMKm7Xb.js → SvChartMenu-DkSyLWYH.js} +2 -2
  30. package/dist/{SvDateTimePicker-CnLlqNDQ.js → shadow/SvDateTimePicker-Czin1Ead.js} +1 -1
  31. package/dist/{SvGridCellEditor-B005dmV1.js → shadow/SvGridCellEditor-DhXEIlyE.js} +1 -1
  32. package/dist/shadow/{SvGridChart-4TcL9Rj2.js → SvGridChart-BMdCbrqb.js} +5 -5
  33. package/dist/shadow/{SvGridChartBuilder-C4OL4XYx.js → SvGridChartBuilder-Chp_MD1B.js} +121 -120
  34. package/dist/{SvGridChartPanel-CfHA8Ioq.js → shadow/SvGridChartPanel-BIV2O2Lp.js} +6 -6
  35. package/dist/shadow/{SvGridChartView-Ci-9_EJ0.js → SvGridChartView-DyhkumD-.js} +2 -2
  36. package/dist/shadow/{SvGridDropdown-BlA6iw9m.js → SvGridDropdown-BwPpGwLz.js} +140 -140
  37. package/dist/{cell-formatting-Eypm-id0.js → shadow/cell-formatting-CBfgahv1.js} +1 -1
  38. package/dist/shadow/{chart-DoqdUoGg.js → chart-D_LKA1fr.js} +1 -1
  39. package/dist/shadow/{chart-export-pdf-BirUdchl.js → chart-export-pdf-9OCvhzr0.js} +1 -1
  40. package/dist/{chart-summary-BP9i-v8M.js → shadow/chart-summary-v3Lhe8YD.js} +1 -1
  41. package/dist/{dismissable-DvhBKm3q.js → shadow/dismissable-CQ6XFXsk.js} +5 -1
  42. package/dist/shadow/{export-format-DhdZREP1.js → export-format-mnW_rVBZ.js} +1 -1
  43. package/dist/{focus-trap-DvlOlOGM.js → shadow/focus-trap-Dbb2tJxb.js} +1 -1
  44. package/dist/shadow/{row-resize-Cf8qPLbi.js → row-resize-limG_N1z.js} +41 -32
  45. package/dist/shadow/sv-grid-shadow-element.d.ts +26 -0
  46. package/dist/shadow/sv-grid-shadow-element.js +3479 -2627
  47. package/dist/shadow/validate-BqDthkNr.js +88 -0
  48. package/dist/sv-grid-element.d.ts +26 -0
  49. package/dist/sv-grid-element.js +3464 -2612
  50. package/dist/validate-BqDthkNr.js +88 -0
  51. package/dist/vue/index.d.ts +17 -2
  52. package/dist/vue/index.js +1 -25
  53. package/package.json +3 -3
  54. package/dist/GridMenus-B1mC1aPp.js +0 -1077
  55. package/dist/shadow/GridMenus-B1mC1aPp.js +0 -1077
  56. package/dist/shadow/validate-CgmAtX1A.js +0 -75
  57. package/dist/validate-CgmAtX1A.js +0 -75
@@ -1,8 +1,8 @@
1
1
  (function(){try{var c=".sv-chart-panes.svelte-14dx6di{flex-direction:column;gap:2px;min-width:0;display:flex}.sv-chart-pane.svelte-14dx6di{min-width:0;position:relative}.sv-chart-pane-title.svelte-14dx6di{z-index:1;color:var(--sg-muted,#64748b);pointer-events:none;font-size:10px;font-weight:600;position:absolute;top:2px}\n";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="SvGridChartPanel"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"SvGridChartPanel");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
- import { S as e, h as t } from "./chart-DoqdUoGg.js";
2
+ import { S as e, h as t } from "./chart-D_LKA1fr.js";
3
3
  import { A as n, C as r, E as i, F as a, H as o, I as s, J as c, L as l, M as u, O as d, P as f, Q as p, R as m, S as h, U as g, Y as _, Z as v, _ as y, a as b, d as x, et as S, f as C, g as w, h as T, i as E, it as D, j as O, k, n as A, nt as ee, o as te, p as j, q as M, r as ne, s as re, tt as ie, v as ae, w as N, y as P } from "./client-DEF0GRjE.js";
4
4
  import { a as F } from "./editor-contract-peBDxir_.js";
5
- import { a as oe, n as se, o as ce, r as le, s as ue, t as de } from "./SvGridChart-4TcL9Rj2.js";
5
+ import { a as oe, n as se, o as ce, r as le, s as ue, t as de } from "./SvGridChart-BMdCbrqb.js";
6
6
  //#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
7
7
  function I(e) {
8
8
  let t = e - 1;
@@ -1203,7 +1203,7 @@ function Et(e, t) {
1203
1203
  v(u, !0);
1204
1204
  return;
1205
1205
  }
1206
- import("./SvGridChartBuilder-C4OL4XYx.js").then((e) => {
1206
+ import("./SvGridChartBuilder-Chp_MD1B.js").then((e) => {
1207
1207
  v(a, e.default, !0), v(u, !0);
1208
1208
  });
1209
1209
  }
@@ -1285,11 +1285,11 @@ function Et(e, t) {
1285
1285
  }
1286
1286
  async function Ne() {
1287
1287
  let e = Oe();
1288
- v(W, !1), e && await (await import("./chart-export-pdf-BirUdchl.js")).downloadChartPdf(e, "chart.pdf", { title: m(z)?.title ?? w().charts[w().activeChartIndex]?.title });
1288
+ v(W, !1), e && await (await import("./chart-export-pdf-9OCvhzr0.js")).downloadChartPdf(e, "chart.pdf", { title: m(z)?.title ?? w().charts[w().activeChartIndex]?.title });
1289
1289
  }
1290
1290
  async function Pe() {
1291
1291
  let e = Oe();
1292
- v(W, !1), e && (await import("./chart-export-pdf-BirUdchl.js")).printChart(e, { title: m(z)?.title ?? w().charts[w().activeChartIndex]?.title });
1292
+ v(W, !1), e && (await import("./chart-export-pdf-9OCvhzr0.js")).printChart(e, { title: m(z)?.title ?? w().charts[w().activeChartIndex]?.title });
1293
1293
  }
1294
1294
  async function Fe() {
1295
1295
  let e = Oe();
@@ -1322,7 +1322,7 @@ function Et(e, t) {
1322
1322
  });
1323
1323
  async function Ve() {
1324
1324
  if (v(W, !1), !m(z)) return;
1325
- let { chartSummary: e } = await import("./chart-summary-BP9i-v8M.js"), t = e(m(z));
1325
+ let { chartSummary: e } = await import("./chart-summary-v3Lhe8YD.js"), t = e(m(z));
1326
1326
  try {
1327
1327
  await navigator.clipboard?.writeText(t);
1328
1328
  } catch {}
@@ -1,7 +1,7 @@
1
1
  (function(){try{var c=".sv-grid-chart-view.svelte-733vyy{box-sizing:border-box;width:100%;height:100%;min-height:0;display:grid}\n";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="SvGridChartView"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"SvGridChartView");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
- import { s as e } from "./chart-DoqdUoGg.js";
2
+ import { s as e } from "./chart-D_LKA1fr.js";
3
3
  import { R as t, et as n, it as r, j as i, k as a, nt as o, q as s, tt as c } from "./client-DEF0GRjE.js";
4
- import { t as l } from "./SvGridChart-4TcL9Rj2.js";
4
+ import { t as l } from "./SvGridChart-BMdCbrqb.js";
5
5
  //#region ../grid/dist/SvGridChartView.svelte
6
6
  var u = i("<div class=\"sv-grid-chart-view svelte-733vyy\"><!></div>");
7
7
  function d(i, d) {
@@ -1,249 +1,249 @@
1
1
  (function(){try{var c=".sv-grid-dropdown.svelte-r4kmto{background:var(--sg-bg,#fff);height:100%;color:var(--sg-fg,#0f172a);position:absolute;top:0;left:0;right:0}.sv-grid-dropdown-trigger.svelte-r4kmto{background:var(--sg-bg,#fff);width:100%;height:100%;min-height:28px;color:var(--sg-fg,#0f172a);font:inherit;text-align:start;cursor:pointer;box-sizing:border-box;border:0;outline:none;align-items:center;gap:6px;padding:0 8px;display:flex}.sv-grid-dropdown-trigger.svelte-r4kmto:focus{outline:2px solid var(--sg-accent,#2563eb);outline-offset:-2px}.sv-grid-dropdown-trigger-chips.svelte-r4kmto{flex-wrap:wrap;align-items:center;padding:4px 8px}.sv-grid-dropdown-chips.svelte-r4kmto{flex-wrap:wrap;flex:auto;align-items:center;gap:4px;min-width:0;display:inline-flex}.sv-grid-dropdown-label.svelte-r4kmto{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.sv-grid-dropdown-caret.svelte-r4kmto{opacity:.7;flex:none;font-size:10px;line-height:1}.sv-grid-dropdown-panel{background:var(--sg-header-bg,var(--sg-bg,#fff));color:var(--sg-fg,#0f172a);border:1px solid var(--sg-accent,#2563eb);border-radius:6px;padding:4px 0;font-family:inherit;overflow-y:auto;box-shadow:0 12px 28px #00000073}.sv-grid-dropdown-panel.sv-grid-dropdown-panel-fits{overflow:visible}.sv-grid-dropdown-option{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--sg-fg,#0f172a);align-items:center;gap:8px;padding:6px 10px;display:flex}.sv-grid-dropdown-option-highlighted{background:var(--sg-row-hover-bg,#2563eb1a)}.sv-grid-dropdown-option-selected{background:var(--sg-selection-bg,#2563eb26);font-weight:600}.sv-grid-dropdown-option-selected.sv-grid-dropdown-option-highlighted{background:var(--sg-row-hover-bg,#2563eb2e)}.sv-grid-dropdown-option-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.sv-grid-dropdown-check{color:var(--sg-accent,#2563eb);flex:0 0 16px;justify-content:center;align-items:center;font-weight:700;display:inline-flex}.sv-grid-dropdown-swatch{border:1px solid color-mix(in srgb, var(--sg-fg,#0f172a) 25%, transparent);border-radius:999px;flex:0 0 12px;width:12px;height:12px}.sv-grid-dropdown-option-chip{text-overflow:ellipsis;white-space:nowrap;border:1px solid #0000;border-radius:999px;align-items:center;max-width:100%;padding:2px 11px;font-size:.9em;font-weight:600;line-height:1.5;display:inline-flex;overflow:hidden}.sv-grid-dropdown-empty{color:var(--sg-muted,#0f172a8c);padding:8px 10px;font-size:.9em;font-style:italic}.sv-grid-dropdown-footer{border-top:1px solid var(--sg-border,#0f172a14);justify-content:flex-end;margin-top:2px;padding:4px 6px;display:flex}.sv-grid-dropdown-done{text-transform:uppercase;letter-spacing:.04em;color:#fff;background:var(--sg-accent,#2563eb);cursor:pointer;border:0;border-radius:4px;padding:4px 10px;font-size:11px}.sv-grid-dropdown-done:hover{filter:brightness(1.12)}.sv-grid-chip.svelte-r4kmto{background:color-mix(in srgb, var(--sg-accent,#2563eb) 18%, transparent);color:var(--sg-fg,#0f172a);border:1px solid color-mix(in srgb, var(--sg-accent,#2563eb) 35%, transparent);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:.85em;line-height:1.4;display:inline-flex}.sv-grid-chip-removable.svelte-r4kmto{padding-inline-end:2px}.sv-grid-chip-remove.svelte-r4kmto{background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:16px;height:16px;color:inherit;cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0;font-size:12px;line-height:1;display:inline-flex}.sv-grid-chip-remove.svelte-r4kmto:hover{color:#fff;background:#dc2626b3}\n";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="SvGridDropdown"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"SvGridDropdown");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
- import { A as e, E as t, F as n, H as r, I as i, J as a, L as o, N as s, O as c, Q as l, R as u, U as d, X as f, Y as p, Z as m, a as h, d as ee, et as g, f as _, it as v, j as y, k as b, n as x, nt as S, q as C, rt as te, s as ne, tt as w, v as T, w as re, x as E, y as D } from "./client-DEF0GRjE.js";
3
- import { n as ie, r as ae, t as O } from "./popover-WsGlvtQv.js";
2
+ import { A as e, E as t, F as n, H as r, I as i, J as a, L as o, N as s, O as c, Q as l, R as u, U as d, X as f, Y as p, Z as m, a as h, d as ee, et as g, f as _, it as v, j as y, k as b, n as x, nt as S, q as C, rt as w, s as te, tt as T, v as E, w as D, x as O, y as k } from "./client-DEF0GRjE.js";
3
+ import { n as ne, r as re, t as ie } from "./popover-WsGlvtQv.js";
4
4
  //#region ../grid/dist/SvGridDropdown.svelte
5
- var k = y("<span class=\"sv-grid-chip sv-grid-chip-removable svelte-r4kmto\"> <span class=\"sv-grid-chip-remove svelte-r4kmto\" role=\"button\">×</span></span>"), A = y("<span class=\"sv-grid-dropdown-chips svelte-r4kmto\"></span>"), oe = y("<span class=\"sv-grid-chip svelte-r4kmto\"> </span>"), j = y("<span class=\"sv-grid-dropdown-label svelte-r4kmto\"> </span>"), se = y("<input type=\"search\" class=\"sv-grid-dropdown-search\" placeholder=\"Search…\"/>"), ce = y("<div class=\"sv-grid-dropdown-empty\" role=\"status\" aria-live=\"polite\">Loading…</div>"), le = y("<div class=\"sv-grid-dropdown-empty\"> </div>"), ue = y("<span class=\"sv-grid-dropdown-check\" aria-hidden=\"true\"> </span>"), de = y("<span class=\"sv-grid-dropdown-option-chip\"> </span>"), fe = y("<span class=\"sv-grid-dropdown-option-label\"> </span>"), pe = y("<div role=\"option\"><!> <!></div>"), me = y("<div class=\"sv-grid-dropdown-footer\"><button type=\"button\" class=\"sv-grid-dropdown-done\">Done</button></div>"), he = y("<div role=\"listbox\"><!> <!> <!></div>"), ge = y("<div><button type=\"button\" aria-haspopup=\"listbox\"><!> <span class=\"sv-grid-dropdown-caret svelte-r4kmto\" aria-hidden=\"true\">▾</span></button> <!></div>");
6
- function M(n, y) {
7
- let M = s();
5
+ var ae = y("<span class=\"sv-grid-chip sv-grid-chip-removable svelte-r4kmto\"> <span class=\"sv-grid-chip-remove svelte-r4kmto\" role=\"button\">×</span></span>"), oe = y("<span class=\"sv-grid-dropdown-chips svelte-r4kmto\"></span>"), se = y("<span class=\"sv-grid-chip svelte-r4kmto\"> </span>"), ce = y("<span class=\"sv-grid-dropdown-label svelte-r4kmto\"> </span>"), le = y("<input type=\"search\" class=\"sv-grid-dropdown-search\" placeholder=\"Search…\"/>"), ue = y("<div class=\"sv-grid-dropdown-empty\" role=\"status\" aria-live=\"polite\">Loading…</div>"), de = y("<div class=\"sv-grid-dropdown-empty\"> </div>"), fe = y("<span class=\"sv-grid-dropdown-check\" aria-hidden=\"true\"> </span>"), pe = y("<span class=\"sv-grid-dropdown-option-chip\"> </span>"), me = y("<span class=\"sv-grid-dropdown-option-label\"> </span>"), he = y("<div role=\"option\"><!> <!></div>"), ge = y("<div class=\"sv-grid-dropdown-footer\"><button type=\"button\" class=\"sv-grid-dropdown-done\">Done</button></div>"), _e = y("<div role=\"listbox\"><!> <!> <!></div>"), ve = y("<div><button type=\"button\" aria-haspopup=\"listbox\"><!> <span class=\"sv-grid-dropdown-caret svelte-r4kmto\" aria-hidden=\"true\">▾</span></button> <!></div>");
6
+ function ye(n, y) {
7
+ let ye = s();
8
8
  S(y, !0);
9
- let N = x(y, "multiple", 3, !1), _e = x(y, "placeholder", 3, "Select…"), ve = x(y, "renderChipsInTrigger", 3, !1), P = x(y, "searchable", 3, !1), ye = x(y, "autoOpen", 3, !0), be = x(y, "loading", 3, !1);
10
- function xe(e) {
11
- return e >= 0 && e < u(L).length ? `${M}-opt-${e}` : void 0;
9
+ let A = x(y, "multiple", 3, !1), be = x(y, "placeholder", 3, "Select…"), j = x(y, "renderChipsInTrigger", 3, !1), M = x(y, "searchable", 3, !1), xe = x(y, "autoOpen", 3, !0), Se = x(y, "loading", 3, !1), Ce = x(y, "invalid", 3, !1);
10
+ function N(e) {
11
+ return e >= 0 && e < u(I).length ? `${ye}-opt-${e}` : void 0;
12
12
  }
13
- let F = g(() => y.options.some((e) => e.color) ? 40 : 32), I = l(""), L = g(() => !P() || !u(I).trim() ? y.options : (() => {
14
- let e = u(I).trim().toLowerCase();
13
+ let P = g(() => y.options.some((e) => e.color) ? 40 : 32), F = l(""), I = g(() => !M() || !u(F).trim() ? y.options : (() => {
14
+ let e = u(F).trim().toLowerCase();
15
15
  return y.options.filter((t) => t.label.toLowerCase().includes(e));
16
- })()), R = l(!1), z = l(-1), B = l(null), V = l(null), H = l(null), U = l(f({
16
+ })()), L = l(!1), R = l(-1), z = l(null), B = l(null), V = l(null), H = l(f({
17
17
  top: 0,
18
18
  left: 0,
19
19
  width: 0,
20
20
  openUpward: !1,
21
21
  maxHeight: 0,
22
22
  availHeight: 0
23
- })), W = g(() => Array.isArray(y.value) ? y.value : y.value == null || y.value === "" ? [] : [y.value]), Se = g(() => {
24
- if (u(W).length === 0) return _e();
25
- if (!N()) {
26
- let e = u(W)[0], t = y.options.find((t) => String(t.value) === String(e));
23
+ })), U = g(() => Array.isArray(y.value) ? y.value : y.value == null || y.value === "" ? [] : [y.value]), we = g(() => {
24
+ if (u(U).length === 0) return be();
25
+ if (!A()) {
26
+ let e = u(U)[0], t = y.options.find((t) => String(t.value) === String(e));
27
27
  return t ? t.label : String(e);
28
28
  }
29
- return `${u(W).length} selected`;
30
- }), Ce = g(() => {
31
- if (N() || u(W).length !== 1) return;
32
- let e = u(W)[0];
29
+ return `${u(U).length} selected`;
30
+ }), Te = g(() => {
31
+ if (A() || u(U).length !== 1) return;
32
+ let e = u(U)[0];
33
33
  return y.options.find((t) => String(t.value) === String(e))?.color;
34
34
  });
35
- function G(e) {
36
- return u(W).some((t) => String(t) === String(e.value));
35
+ function W(e) {
36
+ return u(U).some((t) => String(t) === String(e.value));
37
37
  }
38
- function K(e) {
39
- if (N()) {
40
- let t = G(e) ? u(W).filter((t) => String(t) !== String(e.value)) : [...u(W), e.value];
38
+ function G(e) {
39
+ if (A()) {
40
+ let t = W(e) ? u(U).filter((t) => String(t) !== String(e.value)) : [...u(U), e.value];
41
41
  y.onChange?.(t);
42
- } else y.onChange?.(e.value), m(R, !1), y.onCommit?.();
42
+ } else y.onChange?.(e.value), m(L, !1), y.onCommit?.();
43
43
  }
44
- function q() {
45
- if (!u(R)) {
46
- if (m(R, !0), u(z) < 0) {
47
- let e = y.options.findIndex((e) => G(e));
48
- m(z, e >= 0 ? e : 0, !0);
44
+ function K() {
45
+ if (!u(L)) {
46
+ if (m(L, !0), u(R) < 0) {
47
+ let e = y.options.findIndex((e) => W(e));
48
+ m(R, e >= 0 ? e : 0, !0);
49
49
  }
50
- J();
50
+ q();
51
51
  }
52
52
  }
53
- function J() {
54
- if (!u(V)) return;
55
- let e = Math.min(u(L).length, 10), t = P() ? 38 : 0, n = e * u(F) + (N() ? 40 : 0) + t + 8;
56
- m(U, O(u(V).getBoundingClientRect(), {
53
+ function q() {
54
+ if (!u(B)) return;
55
+ let e = Math.min(u(I).length, 10), t = M() ? 38 : 0, n = e * u(P) + (A() ? 40 : 0) + t + 8;
56
+ m(H, ie(u(B).getBoundingClientRect(), {
57
57
  estimatedHeight: n,
58
58
  clampHorizontal: !1
59
59
  }), !0);
60
60
  }
61
61
  d(() => {
62
- if (!u(R)) return;
63
- let e = () => J();
62
+ if (!u(L)) return;
63
+ let e = () => q();
64
64
  return window.addEventListener("scroll", e, !0), window.addEventListener("resize", e), () => {
65
65
  window.removeEventListener("scroll", e, !0), window.removeEventListener("resize", e);
66
66
  };
67
67
  }), d(() => {
68
- u(R) && (u(L).length, u(F), J());
68
+ u(L) && (u(I).length, u(P), q());
69
69
  });
70
- function Y() {
71
- m(R, !1), m(z, -1);
70
+ function J() {
71
+ m(L, !1), m(R, -1);
72
72
  }
73
- function we(e) {
73
+ function Ee(e) {
74
74
  if (e.stopPropagation(), e.key === "Escape") {
75
- e.preventDefault(), Y(), y.onCancel?.();
75
+ e.preventDefault(), J(), y.onCancel?.();
76
76
  return;
77
77
  }
78
78
  if (e.key === "ArrowDown") {
79
- if (e.preventDefault(), !u(R)) {
80
- q();
79
+ if (e.preventDefault(), !u(L)) {
80
+ K();
81
81
  return;
82
82
  }
83
- m(z, Math.min(u(z) + 1, y.options.length - 1), !0), X();
83
+ m(R, Math.min(u(R) + 1, y.options.length - 1), !0), Y();
84
84
  } else if (e.key === "ArrowUp") {
85
- if (e.preventDefault(), !u(R)) {
86
- q();
85
+ if (e.preventDefault(), !u(L)) {
86
+ K();
87
87
  return;
88
88
  }
89
- m(z, Math.max(u(z) - 1, 0), !0), X();
89
+ m(R, Math.max(u(R) - 1, 0), !0), Y();
90
90
  } else if (e.key === "Home") {
91
- if (!u(R)) return;
92
- e.preventDefault(), m(z, 0), X();
91
+ if (!u(L)) return;
92
+ e.preventDefault(), m(R, 0), Y();
93
93
  } else if (e.key === "End") {
94
- if (!u(R)) return;
95
- e.preventDefault(), m(z, y.options.length - 1), X();
94
+ if (!u(L)) return;
95
+ e.preventDefault(), m(R, y.options.length - 1), Y();
96
96
  } else if (e.key === "Enter") {
97
- if (e.preventDefault(), !u(R)) {
98
- q();
97
+ if (e.preventDefault(), !u(L)) {
98
+ K();
99
99
  return;
100
100
  }
101
- let t = y.options[u(z)];
102
- t ? K(t) : N() && (Y(), y.onCommit?.());
103
- } else if (e.key === " " && u(R)) {
101
+ let t = y.options[u(R)];
102
+ t ? G(t) : A() && (J(), y.onCommit?.());
103
+ } else if (e.key === " " && u(L)) {
104
104
  e.preventDefault();
105
- let t = y.options[u(z)];
106
- t && K(t);
107
- } else e.key === "Tab" && (u(R) && Y(), y.onCommit?.());
105
+ let t = y.options[u(R)];
106
+ t && G(t);
107
+ } else e.key === "Tab" && (u(L) && J(), y.onCommit?.());
108
108
  }
109
- function X() {
109
+ function Y() {
110
110
  queueMicrotask(() => {
111
- u(H) && u(H).querySelector(`[data-opt-idx="${u(z)}"]`)?.scrollIntoView({ block: "nearest" });
111
+ u(V) && u(V).querySelector(`[data-opt-idx="${u(R)}"]`)?.scrollIntoView({ block: "nearest" });
112
112
  });
113
113
  }
114
- function Te(e) {
114
+ function De(e) {
115
115
  let t = e.relatedTarget;
116
- t && u(B)?.contains(t) || (u(R) && Y(), y.onCommit?.());
116
+ t && u(z)?.contains(t) || (u(L) && J(), y.onCommit?.());
117
117
  }
118
- function Ee(e, t) {
118
+ function Oe(e, t) {
119
119
  t.preventDefault(), t.stopPropagation();
120
- let n = u(W).filter((t) => String(t) !== String(e));
121
- y.onChange?.(N() ? n : n[0] ?? null);
120
+ let n = u(U).filter((t) => String(t) !== String(e));
121
+ y.onChange?.(A() ? n : n[0] ?? null);
122
122
  }
123
- function De(e) {
124
- ye() && (e.focus(), q());
123
+ function ke(e) {
124
+ xe() && (e.focus(), K());
125
125
  }
126
126
  d(() => {
127
- if (!u(R)) return;
127
+ if (!u(L)) return;
128
128
  let e = (e) => {
129
129
  let t = e.target;
130
- t && (u(B)?.contains(t) || u(H)?.contains(t) || (Y(), y.onCommit?.()));
130
+ t && (u(z)?.contains(t) || u(V)?.contains(t) || (J(), y.onCommit?.()));
131
131
  };
132
132
  return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
133
133
  });
134
- function Z(e) {
134
+ function X(e) {
135
135
  return `background: color-mix(in srgb, ${e} 22%, transparent);border-color: color-mix(in srgb, ${e} 45%, transparent);color: color-mix(in srgb, ${e} 80%, var(--sg-fg, #0f172a));`;
136
136
  }
137
- var Q = ge();
138
- let Oe;
139
- var $ = C(Q);
140
- let ke;
141
- var Ae = C($), je = (e) => {
142
- var t = A();
143
- re(t, 21, () => u(W), (e) => String(e), (e, t) => {
137
+ var Z = ve();
138
+ let Ae;
139
+ var Q = C(Z);
140
+ let $;
141
+ var je = C(Q), Me = (e) => {
142
+ var t = oe();
143
+ D(t, 21, () => u(U), (e) => String(e), (e, t) => {
144
144
  let n = g(() => y.options.find((e) => String(e.value) === String(u(t))));
145
- var a = k(), o = C(a), s = p(o);
145
+ var a = ae(), o = C(a), s = p(o);
146
146
  _(s, "tabindex", -1), v(a), r((e, t, n) => {
147
- T(a, e), c(o, `${t ?? ""} `), _(s, "aria-label", `Remove ${n ?? ""}`);
147
+ E(a, e), c(o, `${t ?? ""} `), _(s, "aria-label", `Remove ${n ?? ""}`);
148
148
  }, [
149
- () => u(n)?.color ? Z(u(n).color) : "",
149
+ () => u(n)?.color ? X(u(n).color) : "",
150
150
  () => u(n) ? u(n).label : String(u(t)),
151
151
  () => u(n) ? u(n).label : String(u(t))
152
- ]), i("mousedown", s, (e) => e.preventDefault()), i("click", s, (e) => Ee(u(t), e)), b(e, a);
152
+ ]), i("mousedown", s, (e) => e.preventDefault()), i("click", s, (e) => Oe(u(t), e)), b(e, a);
153
153
  }), v(t), b(e, t);
154
- }, Me = (e) => {
155
- var t = oe(), n = C(t, !0);
156
- v(t), r((e) => {
157
- T(t, e), c(n, u(Se));
158
- }, [() => Z(u(Ce))]), b(e, t);
159
154
  }, Ne = (e) => {
160
- var t = j(), n = C(t, !0);
161
- v(t), r(() => c(n, u(Se))), b(e, t);
155
+ var t = se(), n = C(t, !0);
156
+ v(t), r((e) => {
157
+ E(t, e), c(n, u(we));
158
+ }, [() => X(u(Te))]), b(e, t);
159
+ }, Pe = (e) => {
160
+ var t = ce(), n = C(t, !0);
161
+ v(t), r(() => c(n, u(we))), b(e, t);
162
162
  };
163
- t(Ae, (e) => {
164
- ve() && u(W).length > 0 ? e(je) : !N() && u(W).length === 1 && u(Ce) ? e(Me, 1) : e(Ne, -1);
165
- }), te(2), v($), h($, (e) => m(V, e), () => u(V)), E($, (e) => De?.(e));
166
- var Pe = p($, 2), Fe = (n) => {
167
- let s = g(() => y.options.length > 10), l = g(() => Math.min(u(s) ? 10 * u(F) + (N() ? 40 : 0) + 8 : Infinity, u(U).availHeight));
168
- var d = he();
163
+ t(je, (e) => {
164
+ j() && u(U).length > 0 ? e(Me) : !A() && u(U).length === 1 && u(Te) ? e(Ne, 1) : e(Pe, -1);
165
+ }), w(2), v(Q), h(Q, (e) => m(B, e), () => u(B)), O(Q, (e) => ke?.(e));
166
+ var Fe = p(Q, 2), Ie = (n) => {
167
+ let s = g(() => y.options.length > 10), l = g(() => Math.min(u(s) ? 10 * u(P) + (A() ? 40 : 0) + 8 : Infinity, u(H).availHeight));
168
+ var d = _e();
169
169
  let f, x;
170
- var S = C(d), te = (e) => {
171
- var t = se();
170
+ var S = C(d), w = (e) => {
171
+ var t = le();
172
172
  ee(t), i("mousedown", t, (e) => e.stopPropagation()), i("click", t, (e) => e.stopPropagation()), i("keydown", t, (e) => {
173
- e.key === "Escape" && (e.preventDefault(), m(R, !1), y.onCancel?.());
174
- }), ne(t, () => u(I), (e) => m(I, e)), b(e, t);
173
+ e.key === "Escape" && (e.preventDefault(), m(L, !1), y.onCancel?.());
174
+ }), te(t, () => u(F), (e) => m(F, e)), b(e, t);
175
175
  };
176
176
  t(S, (e) => {
177
- P() && e(te);
177
+ M() && e(w);
178
178
  });
179
- var w = p(S, 2), O = (e) => {
180
- var t = ce();
179
+ var T = p(S, 2), ie = (e) => {
180
+ var t = ue();
181
181
  b(e, t);
182
- }, k = (e) => {
183
- var t = le(), n = C(t, !0);
184
- v(t), r(() => c(n, P() && u(I) ? `No matches for "${u(I)}"` : "No options")), b(e, t);
185
- }, A = (n) => {
182
+ }, ae = (e) => {
183
+ var t = de(), n = C(t, !0);
184
+ v(t), r(() => c(n, M() && u(F) ? `No matches for "${u(F)}"` : "No options")), b(e, t);
185
+ }, oe = (n) => {
186
186
  var s = e(), l = a(s);
187
- re(l, 19, () => u(L), (e) => String(e.value), (e, n, a) => {
188
- let s = g(() => G(u(n)));
189
- var l = pe();
187
+ D(l, 19, () => u(I), (e) => String(e.value), (e, n, a) => {
188
+ let s = g(() => W(u(n)));
189
+ var l = he();
190
190
  let d;
191
191
  var f = C(l), h = (e) => {
192
- var t = ue(), n = C(t, !0);
192
+ var t = fe(), n = C(t, !0);
193
193
  v(t), r(() => c(n, u(s) ? "✓" : "")), b(e, t);
194
194
  };
195
195
  t(f, (e) => {
196
- N() && e(h);
196
+ A() && e(h);
197
197
  });
198
198
  var ee = p(f, 2), y = (e) => {
199
- var t = de(), i = C(t, !0);
199
+ var t = pe(), i = C(t, !0);
200
200
  v(t), r((e) => {
201
- T(t, e), c(i, u(n).label);
202
- }, [() => Z(u(n).color)]), b(e, t);
201
+ E(t, e), c(i, u(n).label);
202
+ }, [() => X(u(n).color)]), b(e, t);
203
203
  }, x = (e) => {
204
- var t = fe(), i = C(t, !0);
204
+ var t = me(), i = C(t, !0);
205
205
  v(t), r(() => c(i, u(n).label)), b(e, t);
206
206
  };
207
207
  t(ee, (e) => {
208
208
  u(n).color ? e(y) : e(x, -1);
209
209
  }), v(l), r((e) => {
210
- d = D(l, 1, "sv-grid-dropdown-option", null, d, {
210
+ d = k(l, 1, "sv-grid-dropdown-option", null, d, {
211
211
  "sv-grid-dropdown-option-selected": u(s),
212
- "sv-grid-dropdown-option-highlighted": u(a) === u(z)
212
+ "sv-grid-dropdown-option-highlighted": u(a) === u(R)
213
213
  }), _(l, "id", e), _(l, "aria-selected", u(s)), _(l, "data-opt-idx", u(a));
214
- }, [() => xe(u(a))]), i("mousedown", l, (e) => {
215
- e.preventDefault(), K(u(n));
216
- }), o("mouseenter", l, () => m(z, u(a), !0)), b(e, l);
214
+ }, [() => N(u(a))]), i("mousedown", l, (e) => {
215
+ e.preventDefault(), G(u(n));
216
+ }), o("mouseenter", l, () => m(R, u(a), !0)), b(e, l);
217
217
  }), b(n, s);
218
218
  };
219
- t(w, (e) => {
220
- be() && u(L).length === 0 ? e(O) : u(L).length === 0 ? e(k, 1) : e(A, -1);
219
+ t(T, (e) => {
220
+ Se() && u(I).length === 0 ? e(ie) : u(I).length === 0 ? e(ae, 1) : e(oe, -1);
221
221
  });
222
- var oe = p(w, 2), j = (e) => {
223
- var t = me(), n = C(t);
222
+ var se = p(T, 2), ce = (e) => {
223
+ var t = ge(), n = C(t);
224
224
  v(t), i("mousedown", n, (e) => e.preventDefault()), i("click", n, () => {
225
- Y(), y.onCommit?.();
225
+ J(), y.onCommit?.();
226
226
  }), b(e, t);
227
227
  };
228
- t(oe, (e) => {
229
- N() && e(j);
230
- }), v(d), h(d, (e) => m(H, e), () => u(H)), E(d, (e) => ae?.(e)), E(d, (e, t) => ie?.(e, t), () => ({ up: u(U).openUpward })), r(() => {
231
- f = D(d, 1, "sv-grid-dropdown-panel", null, f, { "sv-grid-dropdown-panel-fits": !u(s) }), _(d, "aria-multiselectable", N()), x = T(d, "", x, {
228
+ t(se, (e) => {
229
+ A() && e(ce);
230
+ }), v(d), h(d, (e) => m(V, e), () => u(V)), O(d, (e) => re?.(e)), O(d, (e, t) => ne?.(e, t), () => ({ up: u(H).openUpward })), r(() => {
231
+ f = k(d, 1, "sv-grid-dropdown-panel", null, f, { "sv-grid-dropdown-panel-fits": !u(s) }), _(d, "aria-multiselectable", A()), x = E(d, "", x, {
232
232
  position: "fixed",
233
- top: u(U).openUpward ? null : `${u(U).top}px`,
234
- bottom: u(U).openUpward ? `${u(U).bottom}px` : null,
235
- left: `${u(U).left}px`,
236
- width: `${u(U).width}px`,
233
+ top: u(H).openUpward ? null : `${u(H).top}px`,
234
+ bottom: u(H).openUpward ? `${u(H).bottom}px` : null,
235
+ left: `${u(H).left}px`,
236
+ width: `${u(H).width}px`,
237
237
  "max-height": u(l) === null ? null : `${u(l)}px`,
238
238
  "z-index": "2147483647"
239
239
  });
240
240
  }), i("pointerdown", d, (e) => e.stopPropagation()), i("mousedown", d, (e) => e.stopPropagation()), i("click", d, (e) => e.stopPropagation()), b(n, d);
241
241
  };
242
- t(Pe, (e) => {
243
- u(R) && e(Fe);
244
- }), v(Q), h(Q, (e) => m(B, e), () => u(B)), r((e) => {
245
- Oe = D(Q, 1, "sv-grid-dropdown svelte-r4kmto", null, Oe, { "sv-grid-dropdown-open": u(R) }), ke = D($, 1, "sv-grid-dropdown-trigger svelte-r4kmto", null, ke, { "sv-grid-dropdown-trigger-chips": ve() && u(W).length > 0 }), _($, "aria-expanded", u(R)), _($, "aria-activedescendant", e);
246
- }, [() => u(R) ? xe(u(z)) : void 0]), i("focusout", Q, Te), i("click", Q, (e) => e.stopPropagation()), i("dblclick", Q, (e) => e.stopPropagation()), i("pointerdown", Q, (e) => e.stopPropagation()), i("mousedown", Q, (e) => e.stopPropagation()), i("click", $, () => u(R) ? Y() : q()), i("keydown", $, we), b(n, Q), w();
242
+ t(Fe, (e) => {
243
+ u(L) && e(Ie);
244
+ }), v(Z), h(Z, (e) => m(z, e), () => u(z)), r((e) => {
245
+ Ae = k(Z, 1, "sv-grid-dropdown svelte-r4kmto", null, Ae, { "sv-grid-dropdown-open": u(L) }), _(Q, "id", y.id), $ = k(Q, 1, "sv-grid-dropdown-trigger svelte-r4kmto", null, $, { "sv-grid-dropdown-trigger-chips": j() && u(U).length > 0 }), _(Q, "aria-expanded", u(L)), _(Q, "aria-label", y.ariaLabel), _(Q, "aria-invalid", Ce() || void 0), _(Q, "aria-describedby", y.describedBy), _(Q, "aria-activedescendant", e);
246
+ }, [() => u(L) ? N(u(R)) : void 0]), i("focusout", Z, De), i("click", Z, (e) => e.stopPropagation()), i("dblclick", Z, (e) => e.stopPropagation()), i("pointerdown", Z, (e) => e.stopPropagation()), i("mousedown", Z, (e) => e.stopPropagation()), i("click", Q, () => u(L) ? J() : K()), i("keydown", Q, Ee), b(n, Z), T();
247
247
  }
248
248
  n([
249
249
  "focusout",
@@ -254,4 +254,4 @@ n([
254
254
  "keydown"
255
255
  ]);
256
256
  //#endregion
257
- export { M as default };
257
+ export { ye as default };
@@ -54,7 +54,7 @@ function e(e, t) {
54
54
  }
55
55
  var t = /* @__PURE__ */ new Map();
56
56
  function n(e, n) {
57
- let r = (Array.isArray(e) ? e.join(",") : e ?? "") + "|" + (n.style ?? "") + "|" + (n.currency ?? "") + "|" + (n.minimumFractionDigits ?? "") + "|" + (n.maximumFractionDigits ?? "") + "|" + (n.useGrouping ?? "") + "|" + (n.currencyDisplay ?? "") + "|" + (n.notation ?? ""), i = t.get(r);
57
+ let r = (Array.isArray(e) ? e.join(",") : e ?? "") + "|" + (n.style ?? "") + "|" + (n.currency ?? "") + "|" + (n.minimumFractionDigits ?? "") + "|" + (n.maximumFractionDigits ?? "") + "|" + (n.useGrouping ?? "") + "|" + (n.currencyDisplay ?? "") + "|" + (n.notation ?? "") + "|" + (n.signDisplay ?? "") + "|" + (n.minimumIntegerDigits ?? "") + "|" + (n.compactDisplay ?? "") + "|" + (n.unit ?? "") + "|" + (n.unitDisplay ?? "") + "|" + (n.minimumSignificantDigits ?? "") + "|" + (n.maximumSignificantDigits ?? ""), i = t.get(r);
58
58
  return i || (i = new Intl.NumberFormat(e, n), t.set(r, i)), i;
59
59
  }
60
60
  var r = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- import { r as e } from "./cell-formatting-Eypm-id0.js";
1
+ import { r as e } from "./cell-formatting-CBfgahv1.js";
2
2
  //#region \0rolldown/runtime.js
3
3
  var t = Object.defineProperty, n = (e, n) => {
4
4
  let r = {};
@@ -1,4 +1,4 @@
1
- import { i as e, r as t } from "./SvGridChart-4TcL9Rj2.js";
1
+ import { i as e, r as t } from "./SvGridChart-BMdCbrqb.js";
2
2
  //#region ../grid/dist/chart-export-pdf.js
3
3
  var n = {
4
4
  A4: [595.28, 841.89],
@@ -1,4 +1,4 @@
1
- import { A as e, j as t, k as n } from "./chart-DoqdUoGg.js";
1
+ import { A as e, j as t, k as n } from "./chart-D_LKA1fr.js";
2
2
  //#region ../grid/dist/chart-summary.js
3
3
  var r = (e) => typeof e == "number" && Number.isFinite(e);
4
4
  function i(e) {
@@ -34,8 +34,12 @@ function a(t, n) {
34
34
  if (typeof window > "u") return () => {};
35
35
  let r = (r) => {
36
36
  e(t(), r.target) || n();
37
+ }, i = !1, a = requestAnimationFrame(() => {
38
+ a = null, i = !0, window.addEventListener("scroll", r, !0);
39
+ });
40
+ return () => {
41
+ a !== null && cancelAnimationFrame(a), a = null, i && window.removeEventListener("scroll", r, !0), i = !1;
37
42
  };
38
- return window.addEventListener("scroll", r, !0), () => window.removeEventListener("scroll", r, !0);
39
43
  }
40
44
  //#endregion
41
45
  export { a as n, i as t };
@@ -1,4 +1,4 @@
1
- import { i as e, n as t, t as n } from "./cell-formatting-Eypm-id0.js";
1
+ import { i as e, n as t, t as n } from "./cell-formatting-CBfgahv1.js";
2
2
  import "./sv-grid-shadow-element.js";
3
3
  //#region ../grid/dist/export-format.js
4
4
  function r(e) {
@@ -62,4 +62,4 @@ function r(e, t = {}) {
62
62
  };
63
63
  }
64
64
  //#endregion
65
- export { r as t };
65
+ export { n, r as t };