@svgrid/grid-wc 3.0.1 → 3.0.3

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 (104) hide show
  1. package/README.md +24 -1
  2. package/dist/GridMenus-DMkf7UMn.js +1086 -0
  3. package/dist/SvChartMenu-DkSyLWYH.js +413 -0
  4. package/dist/SvDateRangeInput-BrYTQEMM.js +197 -0
  5. package/dist/SvDateTimePicker-Czin1Ead.js +766 -0
  6. package/dist/SvField-Bmzp3ObZ.js +147 -0
  7. package/dist/SvGridCellEditor-DhXEIlyE.js +560 -0
  8. package/dist/SvGridChart-BMdCbrqb.js +3702 -0
  9. package/dist/SvGridChartBuilder-Chp_MD1B.js +1166 -0
  10. package/dist/SvGridChartPanel-BIV2O2Lp.js +1743 -0
  11. package/dist/SvGridChartView-DyhkumD-.js +45 -0
  12. package/dist/SvGridDropdown-BwPpGwLz.js +257 -0
  13. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +212 -7
  14. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
  15. package/dist/angular/types/svgrid-grid-wc-angular.d.ts +92 -2
  16. package/dist/{cell-formatting-Eypm-id0.js → cell-formatting-CBfgahv1.js} +1 -1
  17. package/dist/chart/SvChartMenu-DslxOgPN.js +590 -0
  18. package/dist/chart/chart-export-BHGuh_kZ.js +127 -0
  19. package/dist/chart/chart-export-pdf-BjkkIEkE.js +104 -0
  20. package/dist/chart/chart-summary-6Xu2JoNC.js +137 -0
  21. package/dist/chart/chart-trend-7fxtAqEl.js +56 -0
  22. package/dist/chart/chart-validate-CD6ptiwg.js +180 -0
  23. package/dist/chart/client-BuB0wIgc.js +2757 -0
  24. package/dist/chart/sv-chart-element.d.ts +98 -0
  25. package/dist/chart/sv-chart-element.js +7282 -0
  26. package/dist/chart-D_LKA1fr.js +4398 -0
  27. package/dist/chart-export-pdf-9OCvhzr0.js +104 -0
  28. package/dist/chart-summary-v3Lhe8YD.js +137 -0
  29. package/dist/chart-validate-CD6ptiwg.js +180 -0
  30. package/dist/{shadow/client-DjwUji8D.js → client-DEF0GRjE.js} +1 -1
  31. package/dist/{shadow/column-resize-DvCRUrN3.js → column-resize-DUPgynvc.js} +3 -3
  32. package/dist/date-format-DMTwV8NC.js +1128 -0
  33. package/dist/{shadow/dismissable-DvhBKm3q.js → dismissable-CQ6XFXsk.js} +5 -1
  34. package/dist/{export-format-uGayRKWM.js → export-format-CAi1mp-1.js} +1 -1
  35. package/dist/focus-trap-Dbb2tJxb.js +65 -0
  36. package/dist/list-option-DrRyivWp.js +82 -0
  37. package/dist/react/chart.d.ts +99 -0
  38. package/dist/react/chart.js +49 -0
  39. package/dist/react/index.d.ts +72 -0
  40. package/dist/react/index.js +8 -1
  41. package/dist/row-resize-limG_N1z.js +111 -0
  42. package/dist/shadow/GridMenus-DMkf7UMn.js +1086 -0
  43. package/dist/shadow/SvChartMenu-DkSyLWYH.js +413 -0
  44. package/dist/shadow/SvDateRangeInput-BrYTQEMM.js +197 -0
  45. package/dist/shadow/SvDateTimePicker-Czin1Ead.js +766 -0
  46. package/dist/shadow/SvField-Bmzp3ObZ.js +147 -0
  47. package/dist/shadow/SvGridCellEditor-DhXEIlyE.js +560 -0
  48. package/dist/shadow/SvGridChart-BMdCbrqb.js +3702 -0
  49. package/dist/shadow/SvGridChartBuilder-Chp_MD1B.js +1166 -0
  50. package/dist/shadow/SvGridChartPanel-BIV2O2Lp.js +1743 -0
  51. package/dist/shadow/SvGridChartView-DyhkumD-.js +45 -0
  52. package/dist/shadow/SvGridDropdown-BwPpGwLz.js +257 -0
  53. package/dist/shadow/{cell-formatting-Eypm-id0.js → cell-formatting-CBfgahv1.js} +1 -1
  54. package/dist/shadow/chart-D_LKA1fr.js +4398 -0
  55. package/dist/shadow/chart-export-pdf-9OCvhzr0.js +104 -0
  56. package/dist/shadow/chart-summary-v3Lhe8YD.js +137 -0
  57. package/dist/shadow/chart-validate-CD6ptiwg.js +180 -0
  58. package/dist/{client-DjwUji8D.js → shadow/client-DEF0GRjE.js} +1 -1
  59. package/dist/{column-resize-DvCRUrN3.js → shadow/column-resize-DUPgynvc.js} +3 -3
  60. package/dist/shadow/date-format-DMTwV8NC.js +1128 -0
  61. package/dist/{dismissable-DvhBKm3q.js → shadow/dismissable-CQ6XFXsk.js} +5 -1
  62. package/dist/shadow/{export-format-DhdZREP1.js → export-format-mnW_rVBZ.js} +1 -1
  63. package/dist/shadow/focus-trap-Dbb2tJxb.js +65 -0
  64. package/dist/shadow/list-option-DrRyivWp.js +82 -0
  65. package/dist/shadow/row-resize-limG_N1z.js +111 -0
  66. package/dist/shadow/sv-grid-shadow-element.d.ts +41 -0
  67. package/dist/shadow/sv-grid-shadow-element.js +5905 -3986
  68. package/dist/shadow/{svelte-virtualizer.svelte-DZ9UcyfT.js → svelte-virtualizer.svelte-CnGhFGDc.js} +37 -34
  69. package/dist/shadow/validate-BqDthkNr.js +88 -0
  70. package/dist/sv-grid-element.d.ts +41 -0
  71. package/dist/sv-grid-element.js +5874 -3985
  72. package/dist/{svelte-virtualizer.svelte-DZ9UcyfT.js → svelte-virtualizer.svelte-CnGhFGDc.js} +37 -34
  73. package/dist/validate-BqDthkNr.js +88 -0
  74. package/dist/vue/chart.d.ts +64 -0
  75. package/dist/vue/chart.js +41 -0
  76. package/dist/vue/index.d.ts +26 -2
  77. package/dist/vue/index.js +1 -22
  78. package/package.json +18 -5
  79. package/dist/GridMenus-YwTw9Upd.js +0 -1123
  80. package/dist/SvDateRangeInput-CrxeppBV.js +0 -196
  81. package/dist/SvDateTimePicker-xAO-Pb4S.js +0 -765
  82. package/dist/SvField-CE345DyF.js +0 -146
  83. package/dist/SvGridCellEditor-D7SyHtff.js +0 -550
  84. package/dist/SvGridChart-CMaVmlso.js +0 -1477
  85. package/dist/SvGridChartPanel-Pc_IW0eA.js +0 -833
  86. package/dist/SvGridChartView-DLhhzmFy.js +0 -52
  87. package/dist/SvGridDropdown-DUncHqM-.js +0 -256
  88. package/dist/chart-GRBAgN1M.js +0 -1658
  89. package/dist/date-format-D_oQ5Yw0.js +0 -1127
  90. package/dist/row-resize-D-8s3cqT.js +0 -94
  91. package/dist/shadow/GridMenus-YwTw9Upd.js +0 -1123
  92. package/dist/shadow/SvDateRangeInput-CrxeppBV.js +0 -196
  93. package/dist/shadow/SvDateTimePicker-xAO-Pb4S.js +0 -765
  94. package/dist/shadow/SvField-CE345DyF.js +0 -146
  95. package/dist/shadow/SvGridCellEditor-D7SyHtff.js +0 -550
  96. package/dist/shadow/SvGridChart-CMaVmlso.js +0 -1477
  97. package/dist/shadow/SvGridChartPanel-Pc_IW0eA.js +0 -833
  98. package/dist/shadow/SvGridChartView-DLhhzmFy.js +0 -52
  99. package/dist/shadow/SvGridDropdown-DUncHqM-.js +0 -256
  100. package/dist/shadow/chart-GRBAgN1M.js +0 -1658
  101. package/dist/shadow/date-format-D_oQ5Yw0.js +0 -1127
  102. package/dist/shadow/row-resize-D-8s3cqT.js +0 -94
  103. package/dist/shadow/validate-CgmAtX1A.js +0 -75
  104. package/dist/validate-CgmAtX1A.js +0 -75
@@ -0,0 +1,1166 @@
1
+ (function(){try{var c=".sv-tabs.svelte-13z0l57{--_accent:var(--sg-accent,#2563eb);gap:0;display:flex}.sv-tabs--top.svelte-13z0l57{flex-direction:column}.sv-tabs--bottom.svelte-13z0l57{flex-direction:column-reverse}.sv-tabs--left.svelte-13z0l57{flex-direction:row}.sv-tabs--right.svelte-13z0l57{flex-direction:row-reverse}.sv-tabs__strip.svelte-13z0l57{align-items:center;min-width:0;display:flex}.sv-tabs--vertical.svelte-13z0l57 .sv-tabs__strip:where(.svelte-13z0l57){align-items:stretch}.sv-tabs__list.svelte-13z0l57{gap:2px;display:flex}.sv-tabs--horizontal.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){scrollbar-width:none;scroll-behavior:smooth;flex:auto;min-width:0;overflow-x:auto}.sv-tabs--horizontal.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57)::-webkit-scrollbar{display:none}.sv-tabs--horizontal.svelte-13z0l57 .sv-tabs__tabwrap:where(.svelte-13z0l57){flex:none}.sv-tabs--vertical.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){flex-direction:column}.sv-tabs__scroll.svelte-13z0l57{width:26px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;flex:none;align-self:stretch;place-items:center;display:grid}.sv-tabs__scroll.svelte-13z0l57:hover:not(:disabled){color:var(--_accent)}.sv-tabs__scroll.svelte-13z0l57:disabled{opacity:.3;cursor:default}.sv-tabs__tabwrap.is-drag.svelte-13z0l57{opacity:.4}.sv-tabs__tabwrap.is-over.svelte-13z0l57:before{content:\"\";inset-inline-start:-1px;background:var(--_accent);border-radius:2px;width:2px;position:absolute;top:5px;bottom:5px}.sv-tabs__tabwrap[draggable=true].svelte-13z0l57 .sv-tabs__tab:where(.svelte-13z0l57){cursor:grab}.sv-tabs--top.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){border-bottom:1px solid var(--sg-border,#e2e8f0)}.sv-tabs--bottom.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){border-top:1px solid var(--sg-border,#e2e8f0)}.sv-tabs--left.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){border-inline-end:1px solid var(--sg-border,#e2e8f0)}.sv-tabs--right.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){border-inline-start:1px solid var(--sg-border,#e2e8f0)}.sv-tabs--pill.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){background:var(--sg-header-bg,#f1f5f9);border:0;border-radius:9px;gap:3px;padding:3px}.sv-tabs__tabwrap.svelte-13z0l57{align-items:center;display:inline-flex;position:relative}.sv-tabs__tab.svelte-13z0l57{font:inherit;color:var(--sg-muted,#64748b);cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:9px 14px;font-size:13px;font-weight:600}.sv-tabs__tabwrap.is-closable.svelte-13z0l57 .sv-tabs__tab:where(.svelte-13z0l57){padding-inline-end:4px}.sv-tabs__tab.svelte-13z0l57:hover:not(:disabled):not(.is-active){color:var(--sg-fg,#0f172a)}.sv-tabs__tab.svelte-13z0l57:disabled{opacity:.45;cursor:not-allowed}.sv-tabs__tab.svelte-13z0l57:focus-visible{outline:2px solid var(--sg-focus-ring,var(--_accent));outline-offset:-2px;border-radius:6px}.sv-tabs__close.svelte-13z0l57{width:18px;height:18px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;flex:none;place-items:center;margin-inline-end:8px;display:grid}.sv-tabs__close.svelte-13z0l57:hover{background:var(--sg-row-hover-bg,#f1f5f9);color:var(--sg-danger,#dc2626)}.sv-tabs--line.svelte-13z0l57 .sv-tabs__tab.is-active:where(.svelte-13z0l57){color:var(--_accent)}.sv-tabs--line.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{content:\"\";background:var(--_accent);position:absolute}.sv-tabs--line.sv-tabs--top.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{height:2px;bottom:-1px;left:8px;right:8px}.sv-tabs--line.sv-tabs--bottom.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{height:2px;top:-1px;left:8px;right:8px}.sv-tabs--line.sv-tabs--left.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{top:8px;bottom:8px;width:2px;inset-inline-end:-1px}.sv-tabs--line.sv-tabs--right.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{top:8px;bottom:8px;width:2px;inset-inline-start:-1px}.sv-tabs--pill.svelte-13z0l57 .sv-tabs__tab:where(.svelte-13z0l57){border-radius:7px;padding:7px 14px}.sv-tabs--pill.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57) .sv-tabs__tab:where(.svelte-13z0l57),.sv-tabs--pill.svelte-13z0l57 .sv-tabs__tab.is-active:where(.svelte-13z0l57){background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);box-shadow:0 1px 2px #00000014}.sv-tabs__panel.svelte-13z0l57{outline:none;flex:1;min-width:0;padding:16px 2px}.sv-modal__backdrop{z-index:2147483000;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);background:#0f172a73;animation:.16s both svelte-o40lcu-sv-modal-fade;position:fixed;inset:0}@keyframes svelte-o40lcu-sv-modal-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.sv-modal__backdrop{animation:none}}.sv-modal{background:var(--sg-bg,#fff);min-width:240px;max-width:94vw;max-height:88vh;color:var(--sg-fg,#0f172a);border:1px solid var(--sg-border,#e2e8f0);border-radius:12px;flex-direction:column;animation:.18s cubic-bezier(.16,1,.3,1) both svelte-o40lcu-sv-modal-in;display:flex;position:fixed;top:50%;left:50%;overflow:hidden;box-shadow:0 24px 64px -16px #0f172a80}@keyframes svelte-o40lcu-sv-modal-in{0%{opacity:0;transform:translate(-50%,-50%)scale(.94)}to{opacity:1}}@media (prefers-reduced-motion:reduce){.sv-modal{animation:none}}.sv-modal--sm{width:360px}.sv-modal--md{width:520px}.sv-modal--lg{width:720px}.sv-modal.is-resized{max-width:none;max-height:none}.sv-modal__header{border-bottom:1px solid var(--sg-border,#e2e8f0);align-items:center;gap:12px;padding:13px 16px;display:flex}.sv-modal__header.is-draggable{cursor:move;touch-action:none;-webkit-user-select:none;user-select:none}.sv-modal__title{flex:1;margin:0;font-size:15px;font-weight:650}.sv-modal__x{width:28px;height:28px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;font-size:20px;line-height:1;display:grid}.sv-modal__x:hover{background:var(--sg-row-hover-bg,#f1f5f9);color:var(--sg-fg,#0f172a)}.sv-modal__body{flex:1;padding:16px;font-size:13.5px;line-height:1.6;overflow:auto}.sv-modal__footer{border-top:1px solid var(--sg-border,#e2e8f0);justify-content:flex-end;gap:8px;padding:12px 16px;display:flex}.sv-modal__resize{inset-inline-end:0;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg, transparent 50%, var(--sg-muted,#94a3b8) 50%, var(--sg-muted,#94a3b8) 60%, transparent 60%, transparent 72%, var(--sg-muted,#94a3b8) 72%, var(--sg-muted,#94a3b8) 82%, transparent 82%);opacity:.6;width:16px;height:16px;position:absolute;bottom:0}.sv-grid-chart-builder.svelte-1yr3emi{min-height:420px;max-height:70vh;font-size:12px;overflow:auto}.sv-grid-chart-builder-group.svelte-1yr3emi{color:var(--sg-muted,#64748b);text-transform:uppercase;letter-spacing:.04em;margin:10px 0 6px;font-size:11px;font-weight:600}.sv-grid-chart-builder-cards.svelte-1yr3emi{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;display:grid}.sv-grid-chart-builder-card.svelte-1yr3emi{border:1px solid var(--sg-border,#e2e8f0);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);cursor:pointer;text-align:left;font:inherit;border-radius:8px;flex-direction:column;gap:4px;padding:6px;display:flex}.sv-grid-chart-builder-card.svelte-1yr3emi:hover{border-color:var(--sg-accent,#2563eb)}.sv-grid-chart-builder-card.is-selected.svelte-1yr3emi{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 30%, transparent 70%)}.sv-grid-chart-builder-thumb.svelte-1yr3emi{pointer-events:none;height:92px;overflow:hidden}.sv-grid-chart-builder-card-label.svelte-1yr3emi{font-size:11px;font-weight:600}.sv-grid-chart-builder-form.svelte-1yr3emi{flex-direction:column;gap:8px;padding:8px 2px;display:flex}.sv-grid-chart-builder-row.svelte-1yr3emi{grid-template-columns:110px 1fr;align-items:center;gap:8px;display:grid}.sv-grid-chart-builder-row.svelte-1yr3emi>span:where(.svelte-1yr3emi){color:var(--sg-muted,#64748b)}.sv-grid-chart-builder-row.svelte-1yr3emi>small:where(.svelte-1yr3emi){color:var(--sg-muted,#64748b);grid-column:2}.sv-grid-chart-builder-row.svelte-1yr3emi>input[type=checkbox]:where(.svelte-1yr3emi){justify-self:start}.sv-grid-chart-builder-row.svelte-1yr3emi input[type=text]:where(.svelte-1yr3emi),.sv-grid-chart-builder-row.svelte-1yr3emi input[type=number]:where(.svelte-1yr3emi),.sv-grid-chart-builder-row.svelte-1yr3emi select:where(.svelte-1yr3emi),.sv-grid-chart-builder-series.svelte-1yr3emi input:where(.svelte-1yr3emi),.sv-grid-chart-builder-series.svelte-1yr3emi select:where(.svelte-1yr3emi){font:inherit;border:1px solid var(--sg-border,#e2e8f0);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);border-radius:6px;min-width:0;padding:3px 6px}.sv-grid-chart-builder-fs.svelte-1yr3emi{border:1px solid var(--sg-border,#e2e8f0);border-radius:8px;flex-direction:column;gap:6px;padding:6px 10px 10px;display:flex}.sv-grid-chart-builder-fs.svelte-1yr3emi>legend:where(.svelte-1yr3emi){padding:0 4px;font-weight:600}.sv-grid-chart-builder-series.svelte-1yr3emi,.sv-grid-chart-builder-series-head.svelte-1yr3emi{grid-template-columns:minmax(80px,1.4fr) 44px 1fr 1fr 1fr 64px;align-items:center;gap:6px;display:grid}.sv-grid-chart-builder-series.has-stack.svelte-1yr3emi,.sv-grid-chart-builder-series-head.has-stack.svelte-1yr3emi{grid-template-columns:minmax(80px,1.4fr) 44px 1fr 1fr 1fr 64px 72px}.sv-grid-chart-builder-series-head.svelte-1yr3emi{color:var(--sg-muted,#64748b);font-size:11px}.sv-grid-chart-builder-series-name.svelte-1yr3emi{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-chart-builder-actions.svelte-1yr3emi{justify-content:flex-end;display:flex}\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="SvGridChartBuilder"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"SvGridChartBuilder");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
+ import { c as e, f as t, l as n, m as r, o as i, p as a, s as o, u as s } from "./chart-D_LKA1fr.js";
3
+ import { $ as c, A as l, D as u, E as d, F as f, H as p, I as m, J as h, L as g, O as _, Q as v, R as y, U as b, X as x, Y as S, Z as C, _ as w, a as T, at as E, c as D, d as O, et as k, f as A, g as j, h as M, it as N, j as P, k as F, l as ee, n as I, nt as L, o as R, p as z, q as B, tt as te, u as V, w as H, x as U, y as ne } from "./client-DEF0GRjE.js";
4
+ import { i as W } from "./editor-contract-peBDxir_.js";
5
+ import { r as G } from "./popover-WsGlvtQv.js";
6
+ import { t as K } from "./dismissable-CQ6XFXsk.js";
7
+ import { n as q, t as J } from "./focus-trap-Dbb2tJxb.js";
8
+ import { t as Y } from "./SvGridChart-BMdCbrqb.js";
9
+ import { n as X, t as Z } from "./SvGridChartPanel-BIV2O2Lp.js";
10
+ //#region ../grid/dist/a11y/scroll-lock.js
11
+ var Q = 0, re = "", $ = "";
12
+ function ie() {
13
+ if (typeof document > "u") return () => {};
14
+ let e = document.body;
15
+ if (Q === 0) {
16
+ re = e.style.overflow, $ = e.style.paddingRight;
17
+ let t = window.innerWidth - document.documentElement.clientWidth;
18
+ if (t > 0) {
19
+ let n = parseFloat(getComputedStyle(e).paddingRight) || 0;
20
+ e.style.paddingRight = `${n + t}px`;
21
+ }
22
+ e.style.overflow = "hidden";
23
+ }
24
+ Q++;
25
+ let t = !1;
26
+ return () => {
27
+ t || (t = !0, Q = Math.max(0, Q - 1), Q === 0 && (e.style.overflow = re, e.style.paddingRight = $));
28
+ };
29
+ }
30
+ //#endregion
31
+ //#region ../grid/dist/createOverlay.svelte.js
32
+ function ae(e) {
33
+ return b(() => {
34
+ if (!e.open() || !e.getDialog()) return;
35
+ e.onOpen?.();
36
+ let t = e.getDialog(), n = e.trapFocus?.() ?? !0 ? J(t, e.initialFocus ? { initialFocus: e.initialFocus } : void 0) : null;
37
+ n?.activate();
38
+ let r = e.scrollLock?.() ?? !0 ? ie() : null, i = K({
39
+ element: () => e.getDialog(),
40
+ onDismiss: (t) => {
41
+ (t === "escape" ? e.closeOnEsc?.() ?? !0 : e.closeOnBackdrop?.() ?? !0) && e.onClose();
42
+ }
43
+ });
44
+ return i.activate(), () => {
45
+ i.release(), r?.(), n?.release();
46
+ };
47
+ }), { dialogProps: (e) => ({
48
+ role: "dialog",
49
+ "aria-modal": "true",
50
+ "aria-labelledby": e?.labelledBy,
51
+ "aria-label": e?.label,
52
+ tabindex: -1
53
+ }) };
54
+ }
55
+ //#endregion
56
+ //#region ../grid/dist/createTabs.svelte.js
57
+ var oe = 0;
58
+ function se(e) {
59
+ let t = `sv-tabs-${oe++}`, n = () => e.tabs(), r = () => e.orientation?.() ?? "horizontal", i = () => e.activation?.() ?? "automatic", a = k(() => n().filter((e) => !e.disabled)), o = k(() => e.value() ?? n().find((e) => !e.disabled)?.id ?? n()[0]?.id ?? ""), s = v(""), l = v(0), u = (e) => {
60
+ C(s, e, !0), c(l);
61
+ }, d = (e) => `${t}-tab-${e}`, f = (e) => `${t}-panel-${e}`;
62
+ function p(t) {
63
+ let r = n().find((e) => e.id === t);
64
+ !r || r.disabled || e.onChange?.(t);
65
+ }
66
+ function m(t) {
67
+ n().find((e) => e.id === t)?.closable && e.onClose?.(t);
68
+ }
69
+ function h(t) {
70
+ let n = y(a);
71
+ if (!n.length) return;
72
+ let s = n.findIndex((e) => e.id === y(o)), c = r() === "horizontal", l = c && e.dir?.() === "rtl", d = c ? l ? "ArrowLeft" : "ArrowRight" : "ArrowDown", f = c ? l ? "ArrowRight" : "ArrowLeft" : "ArrowUp", h = null;
73
+ if (t.key === d) h = n[(s + 1) % n.length]?.id ?? null;
74
+ else if (t.key === f) h = n[(s - 1 + n.length) % n.length]?.id ?? null;
75
+ else if (t.key === "Home") h = n[0]?.id ?? null;
76
+ else if (t.key === "End") h = n.at(-1)?.id ?? null;
77
+ else if ((t.key === "Enter" || t.key === " ") && i() === "manual") {
78
+ t.preventDefault(), p(y(o));
79
+ return;
80
+ } else if (t.key === "Delete") {
81
+ t.preventDefault(), m(y(o));
82
+ return;
83
+ } else return;
84
+ h && (t.preventDefault(), u(h), i() === "automatic" && p(h));
85
+ }
86
+ return {
87
+ get activeId() {
88
+ return y(o);
89
+ },
90
+ get focusId() {
91
+ return y(s);
92
+ },
93
+ get focusTick() {
94
+ return y(l);
95
+ },
96
+ isActive: (e) => e === y(o),
97
+ select: p,
98
+ close: m,
99
+ onKeydown: h,
100
+ tablistProps: () => ({
101
+ role: "tablist",
102
+ "aria-orientation": r(),
103
+ "aria-label": e.ariaLabel?.()
104
+ }),
105
+ tabProps: (e) => {
106
+ let t = n().find((t) => t.id === e), r = e === y(o);
107
+ return {
108
+ role: "tab",
109
+ id: d(e),
110
+ "data-tab": e,
111
+ "aria-selected": r,
112
+ "aria-controls": f(e),
113
+ tabindex: r ? 0 : -1,
114
+ disabled: t?.disabled,
115
+ onclick: () => p(e),
116
+ onkeydown: h
117
+ };
118
+ },
119
+ panelProps: (e) => ({
120
+ role: "tabpanel",
121
+ id: f(e),
122
+ "aria-labelledby": d(e),
123
+ tabindex: 0
124
+ })
125
+ };
126
+ }
127
+ //#endregion
128
+ //#region ../grid/dist/SvTabs.svelte
129
+ var ce = P("<button type=\"button\" class=\"sv-tabs__scroll svelte-13z0l57\" tabindex=\"-1\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 18l-6-6 6-6\"></path></svg></button>"), le = P("<button type=\"button\" class=\"sv-tabs__close svelte-13z0l57\" tabindex=\"-1\"><svg viewBox=\"0 0 24 24\" width=\"12\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"><path d=\"M6 6l12 12M18 6L6 18\"></path></svg></button>"), ue = P("<span role=\"presentation\"><button> </button> <!></span>"), de = P("<button type=\"button\" class=\"sv-tabs__scroll svelte-13z0l57\" tabindex=\"-1\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 18l6-6-6-6\"></path></svg></button>"), fe = P("<div><!></div>"), pe = P("<div><div class=\"sv-tabs__strip svelte-13z0l57\"><!> <div></div> <!></div> <!></div>");
130
+ function me(e, t) {
131
+ L(t, !0);
132
+ let n = I(t, "value", 15), r = I(t, "variant", 3, "line"), i = I(t, "activation", 3, "automatic"), a = I(t, "reorderable", 3, !1), o = k(() => t.tabPosition ?? (t.orientation === "vertical" ? "left" : "top")), s = k(() => y(o) === "left" || y(o) === "right" ? "vertical" : "horizontal"), c = k(() => t.dir === "ltr" || t.dir === "rtl" ? t.dir : void 0), l = v(0), f = v(0), h = v(0), x = k(() => y(s) === "horizontal" && y(h) > y(f) + 1), w = k(() => y(l) <= 1), E = k(() => y(l) + y(f) >= y(h) - 1);
133
+ function O() {
134
+ W && (C(f, W.clientWidth, !0), C(h, W.scrollWidth, !0), C(l, W.scrollLeft, !0));
135
+ }
136
+ b(() => {
137
+ t.tabs.length, queueMicrotask(O);
138
+ }), b(() => {
139
+ let e = () => O();
140
+ return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
141
+ });
142
+ function j(e) {
143
+ W?.scrollBy({
144
+ left: e * Math.max(120, y(f) * .7),
145
+ behavior: "smooth"
146
+ });
147
+ }
148
+ let M = v(null), P = v(null);
149
+ function ee(e, n) {
150
+ if (e === n) return;
151
+ let r = t.tabs.map((e) => e.id), i = r.indexOf(e), a = r.indexOf(n);
152
+ i < 0 || a < 0 || (r.splice(a, 0, r.splice(i, 1)[0]), t.onReorder?.(r));
153
+ }
154
+ let z = se({
155
+ tabs: () => t.tabs,
156
+ value: () => n(),
157
+ onChange: (e) => {
158
+ n(e), t.onChange?.(e);
159
+ },
160
+ onClose: (e) => t.onClose?.(e),
161
+ orientation: () => y(s),
162
+ activation: () => i(),
163
+ dir: () => t.dir,
164
+ ariaLabel: () => t.ariaLabel
165
+ }), U = k(() => z.activeId), W = null, G = 0;
166
+ b(() => {
167
+ if (z.focusTick !== G) {
168
+ G = z.focusTick;
169
+ let e = z.focusId;
170
+ queueMicrotask(() => W?.querySelector(`[data-tab="${e}"]`)?.focus());
171
+ }
172
+ });
173
+ var K = pe(), q = B(K), J = B(q), Y = (e) => {
174
+ var t = ce();
175
+ p(() => t.disabled = y(w)), m("click", t, () => j(-1)), F(e, t);
176
+ };
177
+ d(J, (e) => {
178
+ y(x) && e(Y);
179
+ });
180
+ var X = S(J, 2), Z = (e) => C(l, e.currentTarget.scrollLeft, !0);
181
+ V(X, (e) => ({
182
+ class: "sv-tabs__list",
183
+ onscroll: Z,
184
+ ...e
185
+ }), [() => z.tablistProps()], void 0, void 0, "svelte-13z0l57"), H(X, 21, () => t.tabs, (e) => e.id, (e, t) => {
186
+ var n = ue();
187
+ let r;
188
+ var i = B(n);
189
+ V(i, (e) => ({
190
+ type: "button",
191
+ class: "sv-tabs__tab",
192
+ ...e,
193
+ [D]: { "is-active": y(t).id === y(U) }
194
+ }), [() => z.tabProps(y(t).id)], void 0, void 0, "svelte-13z0l57");
195
+ var o = B(i, !0);
196
+ N(i);
197
+ var s = S(i, 2), c = (e) => {
198
+ var n = le();
199
+ p(() => A(n, "aria-label", `Close ${y(t).label}`)), m("click", n, (e) => {
200
+ e.stopPropagation(), z.close(y(t).id);
201
+ }), F(e, n);
202
+ };
203
+ d(s, (e) => {
204
+ y(t).closable && e(c);
205
+ }), N(n), p(() => {
206
+ r = ne(n, 1, "sv-tabs__tabwrap svelte-13z0l57", null, r, {
207
+ "is-active": y(t).id === y(U),
208
+ "is-closable": y(t).closable,
209
+ "is-drag": y(M) === y(t).id,
210
+ "is-over": y(P) === y(t).id
211
+ }), A(n, "draggable", a() && !y(t).disabled), _(o, y(t).label);
212
+ }), g("dragstart", n, function(...e) {
213
+ (a() ? (e) => {
214
+ C(M, y(t).id, !0), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
215
+ } : void 0)?.apply(this, e);
216
+ }), g("dragover", n, function(...e) {
217
+ (a() ? (e) => {
218
+ e.preventDefault(), C(P, y(t).id, !0);
219
+ } : void 0)?.apply(this, e);
220
+ }), g("dragleave", n, function(...e) {
221
+ (a() ? () => {
222
+ y(P) === y(t).id && C(P, null);
223
+ } : void 0)?.apply(this, e);
224
+ }), g("drop", n, function(...e) {
225
+ (a() ? (e) => {
226
+ e.preventDefault(), y(M) && ee(y(M), y(t).id), C(M, null), C(P, null);
227
+ } : void 0)?.apply(this, e);
228
+ }), g("dragend", n, function(...e) {
229
+ (a() ? () => {
230
+ C(M, null), C(P, null);
231
+ } : void 0)?.apply(this, e);
232
+ }), F(e, n);
233
+ }), N(X), T(X, (e) => W = e, () => W);
234
+ var Q = S(X, 2), re = (e) => {
235
+ var t = de();
236
+ p(() => t.disabled = y(E)), m("click", t, () => j(1)), F(e, t);
237
+ };
238
+ d(Q, (e) => {
239
+ y(x) && e(re);
240
+ }), N(q);
241
+ var $ = S(q, 2), ie = (e) => {
242
+ var n = fe();
243
+ V(n, (e) => ({
244
+ class: "sv-tabs__panel",
245
+ ...e
246
+ }), [() => z.panelProps(y(U))], void 0, void 0, "svelte-13z0l57");
247
+ var r = B(n);
248
+ u(r, () => t.panel, () => y(U)), N(n), F(e, n);
249
+ };
250
+ d($, (e) => {
251
+ t.panel && e(ie);
252
+ }), N(K), p(() => {
253
+ ne(K, 1, `sv-tabs sv-tabs--${y(o) ?? ""} sv-tabs--${y(s) ?? ""} sv-tabs--${r() ?? ""}`, "svelte-13z0l57"), A(K, "dir", y(c)), K.dir = K.dir;
254
+ }), R(X, "clientWidth", (e) => C(f, e)), F(e, K), te();
255
+ }
256
+ f(["click"]);
257
+ //#endregion
258
+ //#region ../grid/dist/SvModal.svelte
259
+ var he = P("<button type=\"button\" class=\"sv-modal__x\" aria-label=\"Close\">&times;</button>"), ge = P("<div><h2 class=\"sv-modal__title\"> </h2> <!></div>"), _e = P("<div class=\"sv-modal__footer\"><!></div>"), ve = P("<div class=\"sv-modal__resize\" aria-hidden=\"true\"></div>"), ye = P("<div class=\"sv-modal__backdrop\"><div><!> <div class=\"sv-modal__body\"><!></div> <!> <!></div></div>");
260
+ function be(e, t) {
261
+ L(t, !0);
262
+ let n = I(t, "open", 15, !1), r = I(t, "size", 3, "md"), i = I(t, "draggable", 3, !1), a = I(t, "resizable", 3, !1), o = I(t, "closeOnBackdrop", 3, !0), s = I(t, "closeOnEsc", 3, !0), c = I(t, "hideClose", 3, !1), f = W("sv-modal-title"), b = v(null), w = v(x({
263
+ x: 0,
264
+ y: 0
265
+ })), O = v(null);
266
+ function k() {
267
+ n(!1), t.onClose?.();
268
+ }
269
+ let j = ae({
270
+ open: () => n(),
271
+ getDialog: () => y(b),
272
+ onClose: k,
273
+ closeOnEsc: () => s(),
274
+ closeOnBackdrop: () => o(),
275
+ onOpen: () => {
276
+ C(w, {
277
+ x: 0,
278
+ y: 0
279
+ }, !0), C(O, null);
280
+ },
281
+ initialFocus: () => t.initialFocus?.() || (y(b) ? q(y(b)).find((e) => !e.closest(".sv-modal__header")) ?? y(b) : null)
282
+ }), M = !1, P = {
283
+ x: 0,
284
+ y: 0,
285
+ ox: 0,
286
+ oy: 0
287
+ };
288
+ function R(e) {
289
+ !i() || e.target.closest(".sv-modal__x") || (M = !0, P = {
290
+ x: e.clientX,
291
+ y: e.clientY,
292
+ ox: y(w).x,
293
+ oy: y(w).y
294
+ }, e.currentTarget.setPointerCapture(e.pointerId));
295
+ }
296
+ function z(e) {
297
+ M && C(w, {
298
+ x: P.ox + (e.clientX - P.x),
299
+ y: P.oy + (e.clientY - P.y)
300
+ }, !0);
301
+ }
302
+ function H(e) {
303
+ M && (M = !1, e.currentTarget.releasePointerCapture(e.pointerId));
304
+ }
305
+ let K = !1, J = {
306
+ x: 0,
307
+ y: 0,
308
+ w: 0,
309
+ h: 0
310
+ };
311
+ function Y(e) {
312
+ if (!a() || !y(b)) return;
313
+ e.stopPropagation(), K = !0;
314
+ let t = y(b).getBoundingClientRect();
315
+ J = {
316
+ x: e.clientX,
317
+ y: e.clientY,
318
+ w: t.width,
319
+ h: t.height
320
+ }, C(O, {
321
+ w: t.width,
322
+ h: t.height
323
+ }, !0), e.currentTarget.setPointerCapture(e.pointerId);
324
+ }
325
+ function X(e) {
326
+ K && C(O, {
327
+ w: Math.max(240, J.w + (e.clientX - J.x)),
328
+ h: Math.max(160, J.h + (e.clientY - J.y))
329
+ }, !0);
330
+ }
331
+ function Z(e) {
332
+ K && (K = !1, e.currentTarget.releasePointerCapture(e.pointerId));
333
+ }
334
+ var Q = l(), re = h(Q), $ = (e) => {
335
+ var n = ye(), o = B(n);
336
+ V(o, (e) => ({
337
+ class: `sv-modal sv-modal--${r() ?? ""}`,
338
+ ...e,
339
+ [D]: { "is-resized": !!y(O) },
340
+ [ee]: {
341
+ transform: `translate(calc(-50% + ${y(w).x}px), calc(-50% + ${y(w).y}px))`,
342
+ width: y(O) ? `${y(O).w}px` : t.width ? `${t.width}px` : void 0,
343
+ height: y(O) ? `${y(O).h}px` : void 0
344
+ }
345
+ }), [() => j.dialogProps({ labelledBy: t.title ? f : void 0 })]);
346
+ var s = B(o), l = (e) => {
347
+ var n = ge();
348
+ let r;
349
+ var a = B(n), o = B(a, !0);
350
+ N(a);
351
+ var s = S(a, 2), l = (e) => {
352
+ var t = he();
353
+ m("click", t, k), F(e, t);
354
+ };
355
+ d(s, (e) => {
356
+ c() || e(l);
357
+ }), N(n), p(() => {
358
+ r = ne(n, 1, "sv-modal__header", null, r, { "is-draggable": i() }), A(a, "id", f), _(o, t.title ?? "");
359
+ }), m("pointerdown", n, R), m("pointermove", n, z), m("pointerup", n, H), g("pointercancel", n, H), F(e, n);
360
+ };
361
+ d(s, (e) => {
362
+ (t.title || !c()) && e(l);
363
+ });
364
+ var h = S(s, 2), v = B(h);
365
+ u(v, () => t.children ?? E), N(h);
366
+ var x = S(h, 2), M = (e) => {
367
+ var n = _e(), r = B(n);
368
+ u(r, () => t.footer), N(n), F(e, n);
369
+ };
370
+ d(x, (e) => {
371
+ t.footer && e(M);
372
+ });
373
+ var P = S(x, 2), I = (e) => {
374
+ var t = ve();
375
+ m("pointerdown", t, Y), m("pointermove", t, X), m("pointerup", t, Z), g("pointercancel", t, Z), F(e, t);
376
+ };
377
+ d(P, (e) => {
378
+ a() && e(I);
379
+ }), N(o), T(o, (e) => C(b, e), () => y(b)), N(n), U(n, (e) => G?.(e)), F(e, n);
380
+ };
381
+ d(re, (e) => {
382
+ n() && e($);
383
+ }), F(e, Q), te();
384
+ }
385
+ f([
386
+ "pointerdown",
387
+ "pointermove",
388
+ "pointerup",
389
+ "click"
390
+ ]);
391
+ //#endregion
392
+ //#region ../grid/dist/chart-samples.js
393
+ var xe = null;
394
+ function Se() {
395
+ if (xe) return xe;
396
+ let e = 7, t = () => (e = (e * 1103515245 + 12345) % 2147483648) / 2147483648, n = [
397
+ "North",
398
+ "South",
399
+ "East",
400
+ "West"
401
+ ], r = [
402
+ "Web",
403
+ "Retail",
404
+ "Partner"
405
+ ], i = [], a = Date.UTC(2026, 0, 1);
406
+ for (let e = 0; e < 160; e += 1) {
407
+ let e = new Date(a + Math.floor(t() * 180) * 864e5).toISOString().slice(0, 10), o = 1 + Math.floor(t() * 12), s = 40 + t() * 160, c = Math.round(o * s);
408
+ i.push({
409
+ day: e,
410
+ region: n[Math.floor(t() * 4)],
411
+ channel: r[Math.floor(t() * 3)],
412
+ units: o,
413
+ cost: Math.round(c * (.5 + t() * .3)),
414
+ revenue: c
415
+ });
416
+ }
417
+ return xe = i, i;
418
+ }
419
+ function Ce(c, l) {
420
+ let u = Se(), d = o(u, {
421
+ type: "bar",
422
+ category: "region",
423
+ value: "revenue"
424
+ }), f = o(u, {
425
+ type: "bar",
426
+ category: "region",
427
+ value: "revenue",
428
+ series: "channel"
429
+ }), p = o(u, {
430
+ type: "line",
431
+ category: "day",
432
+ value: "revenue",
433
+ bucket: "month"
434
+ }), m = o(u, {
435
+ type: "area",
436
+ category: "day",
437
+ value: "revenue",
438
+ series: "channel",
439
+ bucket: "month"
440
+ }), h = () => n(d.categories.map((e, t) => ({
441
+ region: e,
442
+ cost: d.series[0].values[t] * .6,
443
+ revenue: d.series[0].values[t]
444
+ })), {
445
+ category: "region",
446
+ low: "cost",
447
+ high: "revenue"
448
+ }), g = () => {
449
+ let e = p.series[0].values, t = e.map((t, n) => {
450
+ let r = n ? e[n - 1] : t * .95;
451
+ return {
452
+ o: r,
453
+ c: t,
454
+ h: Math.max(r, t) * 1.04,
455
+ l: Math.min(r, t) * .96
456
+ };
457
+ });
458
+ return {
459
+ categories: p.categories,
460
+ series: [{
461
+ label: "Revenue",
462
+ values: e,
463
+ ohlc: t
464
+ }],
465
+ xType: "ordinal-time"
466
+ };
467
+ }, _;
468
+ switch (c) {
469
+ case "line":
470
+ _ = {
471
+ ...m,
472
+ type: "line"
473
+ };
474
+ break;
475
+ case "area":
476
+ _ = {
477
+ ...m,
478
+ type: "area",
479
+ stacked: !0
480
+ };
481
+ break;
482
+ case "lollipop":
483
+ _ = {
484
+ ...d,
485
+ type: "lollipop"
486
+ };
487
+ break;
488
+ case "dumbbell":
489
+ _ = {
490
+ ...h(),
491
+ type: "dumbbell"
492
+ };
493
+ break;
494
+ case "range-bar":
495
+ _ = h();
496
+ break;
497
+ case "range-area":
498
+ _ = {
499
+ ...p,
500
+ type: "range-area",
501
+ series: [{
502
+ label: "Band",
503
+ values: p.series[0].values.map((e) => e * 1.15),
504
+ lowValues: p.series[0].values.map((e) => e * .85)
505
+ }]
506
+ };
507
+ break;
508
+ case "pareto":
509
+ _ = {
510
+ ...o(u, {
511
+ type: "bar",
512
+ category: "channel",
513
+ value: "units"
514
+ }),
515
+ type: "pareto"
516
+ };
517
+ break;
518
+ case "radial-column":
519
+ _ = {
520
+ ...f,
521
+ type: "radial-column",
522
+ stacked: !0
523
+ };
524
+ break;
525
+ case "radial-bar":
526
+ _ = {
527
+ ...d,
528
+ type: "radial-bar"
529
+ };
530
+ break;
531
+ case "nightingale":
532
+ _ = {
533
+ ...p,
534
+ type: "nightingale"
535
+ };
536
+ break;
537
+ case "pie":
538
+ _ = {
539
+ ...d,
540
+ type: "pie",
541
+ innerRadius: .55
542
+ };
543
+ break;
544
+ case "treemap":
545
+ _ = {
546
+ ...f,
547
+ type: "treemap",
548
+ treemap: r(f)
549
+ };
550
+ break;
551
+ case "sunburst":
552
+ _ = {
553
+ ...f,
554
+ type: "sunburst",
555
+ tree: r(f)
556
+ };
557
+ break;
558
+ case "funnel":
559
+ _ = {
560
+ type: "funnel",
561
+ categories: [
562
+ "Visits",
563
+ "Sign-ups",
564
+ "Trials",
565
+ "Paid"
566
+ ],
567
+ series: [{
568
+ label: "Users",
569
+ values: [
570
+ 12400,
571
+ 5100,
572
+ 2300,
573
+ 880
574
+ ]
575
+ }]
576
+ };
577
+ break;
578
+ case "waterfall":
579
+ _ = {
580
+ type: "waterfall",
581
+ categories: [
582
+ "Start",
583
+ "Web",
584
+ "Retail",
585
+ "Partner",
586
+ "Returns",
587
+ "End"
588
+ ],
589
+ series: [{
590
+ label: "P&L",
591
+ values: [
592
+ 120,
593
+ 48,
594
+ 31,
595
+ 22,
596
+ -19,
597
+ 0
598
+ ]
599
+ }],
600
+ waterfallTotals: [
601
+ !0,
602
+ !1,
603
+ !1,
604
+ !1,
605
+ !1,
606
+ !0
607
+ ]
608
+ };
609
+ break;
610
+ case "sankey": {
611
+ let e = a(f);
612
+ _ = {
613
+ ...f,
614
+ type: "sankey",
615
+ sankeyNodes: e.nodes,
616
+ sankeyLinks: e.links
617
+ };
618
+ break;
619
+ }
620
+ case "chord": {
621
+ let e = a(f);
622
+ _ = {
623
+ ...f,
624
+ type: "chord",
625
+ sankeyNodes: e.nodes,
626
+ sankeyLinks: e.links
627
+ };
628
+ break;
629
+ }
630
+ case "radar":
631
+ _ = {
632
+ ...f,
633
+ type: "radar"
634
+ };
635
+ break;
636
+ case "heatmap":
637
+ _ = {
638
+ ...f,
639
+ type: "heatmap"
640
+ };
641
+ break;
642
+ case "scatter":
643
+ _ = s(u.slice(0, 80), {
644
+ x: "cost",
645
+ y: "revenue",
646
+ series: "channel",
647
+ r: "units"
648
+ });
649
+ break;
650
+ case "boxplot":
651
+ _ = i(u, {
652
+ category: "region",
653
+ value: "revenue"
654
+ });
655
+ break;
656
+ case "histogram":
657
+ _ = e(u, {
658
+ value: "revenue",
659
+ bins: 10
660
+ });
661
+ break;
662
+ case "gauge":
663
+ _ = {
664
+ type: "gauge",
665
+ categories: [],
666
+ series: [],
667
+ gaugeValue: 72,
668
+ gaugeMin: 0,
669
+ gaugeMax: 100,
670
+ gaugeTarget: 80,
671
+ gaugeUnit: "%",
672
+ gaugeRanges: [
673
+ {
674
+ from: 0,
675
+ to: 50,
676
+ color: "#ef4444"
677
+ },
678
+ {
679
+ from: 50,
680
+ to: 75,
681
+ color: "#f59e0b"
682
+ },
683
+ {
684
+ from: 75,
685
+ to: 100,
686
+ color: "#16a34a"
687
+ }
688
+ ]
689
+ };
690
+ break;
691
+ case "bullet":
692
+ _ = {
693
+ type: "bullet",
694
+ categories: d.categories,
695
+ series: [{
696
+ label: "Revenue",
697
+ values: d.series[0].values,
698
+ targets: d.series[0].values.map((e, t) => e * (.9 + t % 3 * .1))
699
+ }]
700
+ };
701
+ break;
702
+ case "calendar": {
703
+ let e = o(u, {
704
+ type: "bar",
705
+ category: "day",
706
+ value: "units"
707
+ });
708
+ _ = {
709
+ ...e,
710
+ type: "calendar",
711
+ calendarValues: t(e)
712
+ };
713
+ break;
714
+ }
715
+ case "stream":
716
+ _ = {
717
+ ...m,
718
+ type: "stream",
719
+ stacked: !0,
720
+ stackOffset: "wiggle"
721
+ };
722
+ break;
723
+ case "candlestick":
724
+ _ = {
725
+ type: "candlestick",
726
+ ...g()
727
+ };
728
+ break;
729
+ case "ohlc":
730
+ _ = {
731
+ type: "ohlc",
732
+ ...g()
733
+ };
734
+ break;
735
+ default: _ = {
736
+ ...f,
737
+ type: "bar"
738
+ };
739
+ }
740
+ return l ? {
741
+ ..._,
742
+ palette: l
743
+ } : _;
744
+ }
745
+ function we(e, t, n = 150, r = 92) {
746
+ let i = Ce(e, t);
747
+ return {
748
+ ...i,
749
+ width: n,
750
+ height: r,
751
+ title: void 0,
752
+ yAxisTitle: void 0,
753
+ xAxisTitle: void 0,
754
+ referenceLines: void 0,
755
+ xAxis: {
756
+ ...i.xAxis ?? {},
757
+ labels: !1,
758
+ title: void 0
759
+ },
760
+ yAxis: {
761
+ ...i.yAxis ?? {},
762
+ labels: !1,
763
+ title: void 0
764
+ },
765
+ y2Axis: {
766
+ ...i.y2Axis ?? {},
767
+ labels: !1,
768
+ title: void 0
769
+ }
770
+ };
771
+ }
772
+ //#endregion
773
+ //#region ../grid/dist/SvGridChartBuilder.svelte
774
+ var Te = P("<button type=\"button\"><div class=\"sv-grid-chart-builder-thumb svelte-1yr3emi\"><!></div> <span class=\"sv-grid-chart-builder-card-label svelte-1yr3emi\"> </span></button>"), Ee = P("<div class=\"sv-grid-chart-builder-group svelte-1yr3emi\"> </div> <div class=\"sv-grid-chart-builder-cards svelte-1yr3emi\"></div>", 1), De = P("<div class=\"sv-grid-chart-builder-gallery\"></div>"), Oe = P("<div class=\"sv-grid-chart-builder-form svelte-1yr3emi\"><!> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <input type=\"checkbox\" class=\"svelte-1yr3emi\"/> <small class=\"svelte-1yr3emi\"> </small></label></div>"), ke = P("<option> </option>"), Ae = P("<fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" class=\"svelte-1yr3emi\"/></label></fieldset>"), je = P("<span> </span>"), Me = P("<option> </option>"), Ne = P("<input type=\"text\" class=\"svelte-1yr3emi\"/>"), Pe = P("<div><span class=\"sv-grid-chart-builder-series-name svelte-1yr3emi\"> </span> <input type=\"color\" class=\"svelte-1yr3emi\"/> <select class=\"svelte-1yr3emi\"><option> </option><option> </option><option> </option><option> </option></select> <select class=\"svelte-1yr3emi\"><option> </option><option> </option></select> <select class=\"svelte-1yr3emi\"></select> <input type=\"number\" min=\"0.5\" max=\"8\" step=\"0.5\" class=\"svelte-1yr3emi\"/> <!></div>"), Fe = P("<fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <div><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><!></div> <!></fieldset>"), Ie = P("<div class=\"sv-grid-chart-builder-form svelte-1yr3emi\"><label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <select class=\"svelte-1yr3emi\"><option> </option><option> </option><option> </option><option> </option><option> </option></select></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <select class=\"svelte-1yr3emi\"><option> </option><option> </option><option> </option><option> </option><option> </option><option> </option></select></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"checkbox\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"checkbox\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <input type=\"number\" min=\"0\" step=\"10\" class=\"svelte-1yr3emi\"/></label> <fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <select class=\"svelte-1yr3emi\"><option> </option><!></select></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"checkbox\" class=\"svelte-1yr3emi\"/></label></fieldset> <!> <fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"checkbox\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <select class=\"svelte-1yr3emi\"><option> </option><option> </option><option> </option><option> </option></select></label></fieldset> <!> <fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" min=\"8\" max=\"32\" placeholder=\"12\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" placeholder=\"transparent\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" placeholder=\"inherit\" class=\"svelte-1yr3emi\"/></label></fieldset> <div class=\"sv-grid-chart-builder-actions svelte-1yr3emi\"><button type=\"button\" class=\"sv-grid-chart-btn\"> </button></div></div>"), Le = P("<div class=\"sv-grid-chart-builder svelte-1yr3emi\"><!></div>");
775
+ function Re(e, t) {
776
+ L(t, !0);
777
+ let n = I(t, "ctrl", 7), r = I(t, "open", 15, !1), i = v("type"), a = k(() => [...new Set(t.types.map((e) => e.group))]), o = k(() => n().chartSpec), s = k(() => n().chartPalette ?? void 0), c = k(() => y(o)?.series.map((e) => e.label) ?? []), u = k(() => n().chartFormat ?? {});
778
+ function f(e) {
779
+ n().chartFormat = {
780
+ ...y(u),
781
+ ...e
782
+ };
783
+ }
784
+ function g(e, t) {
785
+ f({ [e]: {
786
+ ...y(u)[e] ?? {},
787
+ ...t
788
+ } });
789
+ }
790
+ function b(e, t) {
791
+ f({ series: {
792
+ ...y(u).series ?? {},
793
+ [e]: {
794
+ ...y(u).series?.[e] ?? {},
795
+ ...t
796
+ }
797
+ } });
798
+ }
799
+ function x(e) {
800
+ f({ style: {
801
+ ...y(u).style ?? {},
802
+ ...e
803
+ } });
804
+ }
805
+ let T = (e) => e.trim() === "" ? null : Number(e), D = k(() => !!y(o)?.series.some((e) => e.axis === "right") || !!y(u).series && Object.values(y(u).series).some((e) => e?.axis === "right")), P = k(() => !!y(o) && ["bar", "area"].includes(y(o).type)), ee = [
806
+ "circle",
807
+ "square",
808
+ "diamond",
809
+ "triangle",
810
+ "cross",
811
+ "none"
812
+ ], R = [
813
+ "number",
814
+ "currency",
815
+ "percent",
816
+ "compact"
817
+ ];
818
+ be(e, {
819
+ get title() {
820
+ return t.messages.chartBuilderTitle;
821
+ },
822
+ size: "lg",
823
+ get open() {
824
+ return r();
825
+ },
826
+ set open(e) {
827
+ r(e);
828
+ },
829
+ children: (e, r) => {
830
+ var v = Le(), I = B(v);
831
+ {
832
+ let e = (e, r = E) => {
833
+ var i = l(), v = h(i), C = (e) => {
834
+ var r = De();
835
+ H(r, 20, () => y(a), (e) => e, (e, r) => {
836
+ var i = Ee(), a = h(i), o = B(a, !0);
837
+ N(a);
838
+ var c = S(a, 2);
839
+ H(c, 21, () => t.types.filter((e) => e.group === r), (e) => e.value, (e, t) => {
840
+ var r = Te();
841
+ let i;
842
+ var a = B(r), o = B(a);
843
+ {
844
+ let e = k(() => we(y(t).value, y(s)));
845
+ Y(o, {
846
+ get spec() {
847
+ return y(e);
848
+ },
849
+ interactive: !1,
850
+ legend: !1,
851
+ toolbar: !1,
852
+ announce: !1
853
+ });
854
+ }
855
+ N(a);
856
+ var c = S(a, 2), l = B(c, !0);
857
+ N(c), N(r), p(() => {
858
+ i = ne(r, 1, "sv-grid-chart-builder-card svelte-1yr3emi", null, i, { "is-selected": n().chartType === y(t).value }), A(r, "aria-pressed", n().chartType === y(t).value), A(r, "title", y(t).label), _(l, y(t).label);
859
+ }), m("click", r, () => n().chartType = y(t).value), F(e, r);
860
+ }), N(c), p(() => _(o, r)), F(e, i);
861
+ }), N(r), F(e, r);
862
+ }, I = (e) => {
863
+ var r = Oe(), i = B(r);
864
+ X(i, {
865
+ get ctrl() {
866
+ return n();
867
+ },
868
+ get messages() {
869
+ return t.messages;
870
+ },
871
+ scope: "builder"
872
+ });
873
+ var a = S(i, 2), o = B(a), s = B(o, !0);
874
+ N(o);
875
+ var c = S(o, 2);
876
+ O(c);
877
+ var l = S(c, 2), u = B(l, !0);
878
+ N(l), N(a), N(r), p((e) => {
879
+ _(s, t.messages.chartBuilderLinked), z(c, !n().chartFrozen), _(u, e);
880
+ }, [() => n().chartFrozen ? Z(t.messages.chartBuilderFrozenAt, { time: new Date(n().chartFrozen.at).toLocaleTimeString() }) : t.messages.chartBuilderFollows]), m("change", c, (e) => e.currentTarget.checked ? n().unfreezeChart() : n().freezeChart()), F(e, r);
881
+ }, L = (e) => {
882
+ var r = Ie(), i = B(r), a = B(i), s = B(a, !0);
883
+ N(a);
884
+ var l = S(a);
885
+ O(l), N(i);
886
+ var h = S(i, 2), v = B(h), C = B(v, !0);
887
+ N(v);
888
+ var E = S(v);
889
+ O(E), N(h);
890
+ var I = S(h, 2), L = B(I), te = B(L, !0);
891
+ N(L);
892
+ var V = S(L);
893
+ O(V), N(I);
894
+ var U = S(I, 2), W = B(U), G = B(W, !0);
895
+ N(W);
896
+ var K = S(W, 2), q = B(K), J = B(q, !0);
897
+ N(q), q.value = q.__value = "bottom";
898
+ var Y = S(q), X = B(Y, !0);
899
+ N(Y), Y.value = Y.__value = "top";
900
+ var Q = S(Y), re = B(Q, !0);
901
+ N(Q), Q.value = Q.__value = "left";
902
+ var $ = S(Q), ie = B($, !0);
903
+ N($), $.value = $.__value = "right";
904
+ var ae = S($), oe = B(ae, !0);
905
+ N(ae), ae.value = ae.__value = "none", N(K);
906
+ var se;
907
+ j(K), N(U);
908
+ var ce = S(U, 2), le = B(ce), ue = B(le, !0);
909
+ N(le);
910
+ var de = S(le, 2), fe = B(de), pe = B(fe, !0);
911
+ N(fe), fe.value = fe.__value = "auto";
912
+ var me = S(fe), he = B(me, !0);
913
+ N(me), me.value = me.__value = "top";
914
+ var ge = S(me), _e = B(ge, !0);
915
+ N(ge), ge.value = ge.__value = "outside";
916
+ var ve = S(ge), ye = B(ve, !0);
917
+ N(ve), ve.value = ve.__value = "inside";
918
+ var be = S(ve), xe = B(be, !0);
919
+ N(be), be.value = be.__value = "center";
920
+ var Se = S(be), Ce = B(Se, !0);
921
+ N(Se), Se.value = Se.__value = "none", N(de);
922
+ var we;
923
+ j(de), N(ce);
924
+ var Te = S(ce, 2), Ee = B(Te), De = B(Ee, !0);
925
+ N(Ee);
926
+ var Oe = S(Ee);
927
+ O(Oe), N(Te);
928
+ var Le = S(Te, 2), Re = B(Le), ze = B(Re, !0);
929
+ N(Re);
930
+ var Be = S(Re);
931
+ O(Be), N(Le);
932
+ var Ve = S(Le, 2), He = B(Ve), Ue = B(He, !0);
933
+ N(He);
934
+ var We = S(He, 2);
935
+ O(We), N(Ve);
936
+ var Ge = S(Ve, 2), Ke = B(Ge), qe = B(Ke, !0);
937
+ N(Ke);
938
+ var Je = S(Ke, 2), Ye = B(Je), Xe = B(Ye, !0);
939
+ N(Ye);
940
+ var Ze = S(Ye);
941
+ O(Ze), N(Je);
942
+ var Qe = S(Je, 2), $e = B(Qe), et = B($e, !0);
943
+ N($e);
944
+ var tt = S($e);
945
+ O(tt), N(Qe);
946
+ var nt = S(Qe, 2), rt = B(nt), it = B(rt, !0);
947
+ N(rt);
948
+ var at = S(rt);
949
+ O(at), N(nt);
950
+ var ot = S(nt, 2), st = B(ot), ct = B(st, !0);
951
+ N(st);
952
+ var lt = S(st, 2), ut = B(lt), dt = B(ut, !0);
953
+ N(ut), ut.value = ut.__value = "";
954
+ var ft = S(ut);
955
+ H(ft, 16, () => R, (e) => e, (e, t) => {
956
+ var n = ke(), r = B(n, !0);
957
+ N(n);
958
+ var i = {};
959
+ p(() => {
960
+ _(r, t), i !== (i = t) && (n.value = (n.__value = t) ?? "");
961
+ }), F(e, n);
962
+ }), N(lt);
963
+ var pt;
964
+ j(lt), N(ot);
965
+ var mt = S(ot, 2), ht = B(mt), gt = B(ht, !0);
966
+ N(ht);
967
+ var _t = S(ht);
968
+ O(_t), N(mt), N(Ge);
969
+ var vt = S(Ge, 2), yt = (e) => {
970
+ var n = Ae(), r = B(n), i = B(r, !0);
971
+ N(r);
972
+ var a = S(r, 2), o = B(a), s = B(o, !0);
973
+ N(o);
974
+ var c = S(o);
975
+ O(c), N(a);
976
+ var l = S(a, 2), d = B(l), f = B(d, !0);
977
+ N(d);
978
+ var h = S(d);
979
+ O(h), N(l);
980
+ var v = S(l, 2), b = B(v), x = B(b, !0);
981
+ N(b);
982
+ var C = S(b);
983
+ O(C), N(v), N(n), p(() => {
984
+ _(i, t.messages.chartBuilderRightAxis), _(s, t.messages.chartBuilderTitleField), M(c, y(u).y2Axis?.title ?? ""), _(f, t.messages.chartBuilderMin), M(h, y(u).y2Axis?.min ?? ""), A(h, "placeholder", t.messages.chartBuilderAuto), _(x, t.messages.chartBuilderMax), M(C, y(u).y2Axis?.max ?? ""), A(C, "placeholder", t.messages.chartBuilderAuto);
985
+ }), m("input", c, (e) => g("y2Axis", { title: e.currentTarget.value })), m("change", h, (e) => g("y2Axis", { min: T(e.currentTarget.value) })), m("change", C, (e) => g("y2Axis", { max: T(e.currentTarget.value) })), F(e, n);
986
+ };
987
+ d(vt, (e) => {
988
+ y(D) && e(yt);
989
+ });
990
+ var bt = S(vt, 2), xt = B(bt), St = B(xt, !0);
991
+ N(xt);
992
+ var Ct = S(xt, 2), wt = B(Ct), Tt = B(wt, !0);
993
+ N(wt);
994
+ var Et = S(wt);
995
+ O(Et), N(Ct);
996
+ var Dt = S(Ct, 2), Ot = B(Dt), kt = B(Ot, !0);
997
+ N(Ot);
998
+ var At = S(Ot);
999
+ O(At), N(Dt);
1000
+ var jt = S(Dt, 2), Mt = B(jt), Nt = B(Mt, !0);
1001
+ N(Mt);
1002
+ var Pt = S(Mt, 2), Ft = B(Pt), It = B(Ft, !0);
1003
+ N(Ft), Ft.value = Ft.__value = "auto";
1004
+ var Lt = S(Ft), Rt = B(Lt, !0);
1005
+ N(Lt), Lt.value = Lt.__value = "0";
1006
+ var zt = S(Lt), Bt = B(zt, !0);
1007
+ N(zt), zt.value = zt.__value = "-45";
1008
+ var Vt = S(zt), Ht = B(Vt, !0);
1009
+ N(Vt), Vt.value = Vt.__value = "-90", N(Pt);
1010
+ var Ut;
1011
+ j(Pt), N(jt), N(bt);
1012
+ var Wt = S(bt, 2), Gt = (e) => {
1013
+ var n = Fe(), r = B(n), i = B(r, !0);
1014
+ N(r);
1015
+ var a = S(r, 2);
1016
+ let s;
1017
+ var l = B(a), f = B(l, !0);
1018
+ N(l);
1019
+ var h = S(l), g = B(h, !0);
1020
+ N(h);
1021
+ var v = S(h), x = B(v, !0);
1022
+ N(v);
1023
+ var C = S(v), T = B(C, !0);
1024
+ N(C);
1025
+ var E = S(C), D = B(E, !0);
1026
+ N(E);
1027
+ var I = S(E), L = B(I, !0);
1028
+ N(I);
1029
+ var R = S(I), z = (e) => {
1030
+ var n = je(), r = B(n, !0);
1031
+ N(n), p(() => _(r, t.messages.chartBuilderStack)), F(e, n);
1032
+ };
1033
+ d(R, (e) => {
1034
+ y(P) && e(z);
1035
+ }), N(a);
1036
+ var te = S(a, 2);
1037
+ H(te, 16, () => y(c), (e) => e, (e, n) => {
1038
+ let r = k(() => y(u).series?.[n] ?? {}), i = k(() => y(o)?.series.find((e) => e.label === n));
1039
+ var a = Pe();
1040
+ let s;
1041
+ var c = B(a), l = B(c, !0);
1042
+ N(c);
1043
+ var f = S(c, 2);
1044
+ O(f);
1045
+ var h = S(f, 2), g = B(h), v = B(g, !0);
1046
+ N(g), g.value = g.__value = "";
1047
+ var x = S(g), C = B(x, !0);
1048
+ N(x), x.value = x.__value = "bar";
1049
+ var T = S(x), E = B(T, !0);
1050
+ N(T), T.value = T.__value = "line";
1051
+ var D = S(T), I = B(D, !0);
1052
+ N(D), D.value = D.__value = "area", N(h);
1053
+ var L;
1054
+ j(h);
1055
+ var R = S(h, 2), z = B(R), te = B(z, !0);
1056
+ N(z), z.value = z.__value = "left";
1057
+ var V = S(z), U = B(V, !0);
1058
+ N(V), V.value = V.__value = "right", N(R);
1059
+ var W;
1060
+ j(R);
1061
+ var G = S(R, 2);
1062
+ H(G, 20, () => ee, (e) => e, (e, t) => {
1063
+ var n = Me(), r = B(n, !0);
1064
+ N(n);
1065
+ var i = {};
1066
+ p(() => {
1067
+ _(r, t), i !== (i = t) && (n.value = (n.__value = t) ?? "");
1068
+ }), F(e, n);
1069
+ }), N(G);
1070
+ var K;
1071
+ j(G);
1072
+ var q = S(G, 2);
1073
+ O(q);
1074
+ var J = S(q, 2), Y = (e) => {
1075
+ var a = Ne();
1076
+ O(a), p((e) => {
1077
+ M(a, y(r).stack ?? y(i)?.stack ?? ""), A(a, "placeholder", t.messages.chartBuilderStackPlaceholder), A(a, "aria-label", e);
1078
+ }, [() => Z(t.messages.chartBuilderSeriesStackLabel, { series: n })]), m("change", a, (e) => b(n, { stack: e.currentTarget.value.trim() })), F(e, a);
1079
+ };
1080
+ d(J, (e) => {
1081
+ y(P) && e(Y);
1082
+ }), N(a), p((e, o, u, d, p) => {
1083
+ s = ne(a, 1, "sv-grid-chart-builder-series svelte-1yr3emi", null, s, { "has-stack": y(P) }), A(a, "data-series", n), A(c, "title", n), _(l, n), M(f, y(r).color ?? y(i)?.color ?? "#2563eb"), A(f, "aria-label", e), A(h, "aria-label", o), _(v, t.messages.chartBuilderChartType), _(C, t.messages.chartBuilderBar), _(E, t.messages.chartBuilderLine), _(I, t.messages.chartBuilderArea), L !== (L = y(r).type ?? y(i)?.type ?? "") && (h.value = (h.__value = y(r).type ?? y(i)?.type ?? "") ?? "", w(h, y(r).type ?? y(i)?.type ?? "")), A(R, "aria-label", u), _(te, t.messages.chartBuilderLeft), _(U, t.messages.chartBuilderRight), W !== (W = y(r).axis ?? y(i)?.axis ?? "left") && (R.value = (R.__value = y(r).axis ?? y(i)?.axis ?? "left") ?? "", w(R, y(r).axis ?? y(i)?.axis ?? "left")), A(G, "aria-label", d), K !== (K = y(r).marker ?? "circle") && (G.value = (G.__value = y(r).marker ?? "circle") ?? "", w(G, y(r).marker ?? "circle")), M(q, y(r).strokeWidth ?? 2), A(q, "aria-label", p);
1084
+ }, [
1085
+ () => Z(t.messages.chartBuilderSeriesColorLabel, { series: n }),
1086
+ () => Z(t.messages.chartBuilderSeriesTypeLabel, { series: n }),
1087
+ () => Z(t.messages.chartBuilderSeriesAxisLabel, { series: n }),
1088
+ () => Z(t.messages.chartBuilderSeriesMarkerLabel, { series: n }),
1089
+ () => Z(t.messages.chartBuilderSeriesWidthLabel, { series: n })
1090
+ ]), m("input", f, (e) => b(n, { color: e.currentTarget.value })), m("change", h, (e) => b(n, { type: e.currentTarget.value || void 0 })), m("change", R, (e) => b(n, { axis: e.currentTarget.value })), m("change", G, (e) => b(n, { marker: e.currentTarget.value })), m("change", q, (e) => b(n, { strokeWidth: Number(e.currentTarget.value) || 2 })), F(e, a);
1091
+ }), N(n), p(() => {
1092
+ _(i, t.messages.chartBuilderSeries), s = ne(a, 1, "sv-grid-chart-builder-series-head svelte-1yr3emi", null, s, { "has-stack": y(P) }), _(f, t.messages.chartBuilderSeries), _(g, t.messages.chartBuilderColor), _(x, t.messages.chartBuilderSeriesType), _(T, t.messages.chartBuilderAxis), _(D, t.messages.chartBuilderMarker), _(L, t.messages.chartBuilderWidth);
1093
+ }), F(e, n);
1094
+ };
1095
+ d(Wt, (e) => {
1096
+ y(c).length && e(Gt);
1097
+ });
1098
+ var Kt = S(Wt, 2), qt = B(Kt), Jt = B(qt, !0);
1099
+ N(qt);
1100
+ var Yt = S(qt, 2), Xt = B(Yt), Zt = B(Xt, !0);
1101
+ N(Xt);
1102
+ var Qt = S(Xt);
1103
+ O(Qt), N(Yt);
1104
+ var $t = S(Yt, 2), en = B($t), tn = B(en, !0);
1105
+ N(en);
1106
+ var nn = S(en);
1107
+ O(nn), N($t);
1108
+ var rn = S($t, 2), an = B(rn), on = B(an, !0);
1109
+ N(an);
1110
+ var sn = S(an);
1111
+ O(sn), N(rn);
1112
+ var cn = S(rn, 2), ln = B(cn), un = B(ln, !0);
1113
+ N(ln);
1114
+ var dn = S(ln);
1115
+ O(dn), N(cn), N(Kt);
1116
+ var fn = S(Kt, 2), pn = B(fn), mn = B(pn, !0);
1117
+ N(pn), N(fn), N(r), p((e) => {
1118
+ _(s, t.messages.chartBuilderTitleField), M(l, y(u).title ?? ""), _(C, t.messages.chartBuilderSubtitle), M(E, y(u).subtitle ?? ""), _(te, t.messages.chartBuilderCaption), M(V, y(u).caption ?? ""), _(G, t.messages.chartBuilderLegend), _(J, t.messages.chartLegendBottom), _(X, t.messages.chartLegendTop), _(re, t.messages.chartLegendLeft), _(ie, t.messages.chartLegendRight), _(oe, t.messages.chartLegendHidden), se !== (se = y(u).legend === !1 ? "none" : y(u).legend ?? "bottom") && (K.value = (K.__value = y(u).legend === !1 ? "none" : y(u).legend ?? "bottom") ?? "", w(K, y(u).legend === !1 ? "none" : y(u).legend ?? "bottom")), _(ue, t.messages.chartBuilderDataLabels), _(pe, t.messages.chartBuilderPanelSetting), _(he, t.messages.chartLabelsTop), _(_e, t.messages.chartLabelsOutside), _(ye, t.messages.chartLabelsInside), _(xe, t.messages.chartLabelsCenter), _(Ce, t.messages.chartLabelsHidden), we !== (we = y(u).dataLabels === null ? "none" : y(u).dataLabels ?? "auto") && (de.value = (de.__value = y(u).dataLabels === null ? "none" : y(u).dataLabels ?? "auto") ?? "", w(de, y(u).dataLabels === null ? "none" : y(u).dataLabels ?? "auto")), _(De, t.messages.chartBuilderSeriesLabels), z(Oe, y(u).seriesLabels === !0), _(ze, t.messages.chartBuilderCrosshairLabels), z(Be, y(u).crosshairLabels !== !1), A(Ve, "title", t.messages.chartBuilderCompactBelowTitle), _(Ue, t.messages.chartBuilderCompactBelow), M(We, y(u).compactBelow ?? ""), A(We, "placeholder", t.messages.chartBuilderOff), _(qe, t.messages.chartBuilderValueAxis), _(Xe, t.messages.chartBuilderTitleField), M(Ze, y(u).yAxis?.title ?? ""), _(et, t.messages.chartBuilderMin), M(tt, y(u).yAxis?.min ?? ""), A(tt, "placeholder", t.messages.chartBuilderAuto), _(it, t.messages.chartBuilderMax), M(at, y(u).yAxis?.max ?? ""), A(at, "placeholder", t.messages.chartBuilderAuto), _(ct, t.messages.chartFormat), _(dt, t.messages.chartBuilderPanelSetting), pt !== (pt = y(u).yAxis?.format ?? "") && (lt.value = (lt.__value = y(u).yAxis?.format ?? "") ?? "", w(lt, y(u).yAxis?.format ?? "")), _(gt, t.messages.chartBuilderGridLines), z(_t, y(u).yAxis?.gridLines !== !1), _(St, t.messages.chartBuilderCategoryAxis), _(Tt, t.messages.chartBuilderTitleField), M(Et, y(u).xAxis?.title ?? ""), _(kt, t.messages.chartBuilderGridLines), z(At, y(u).xAxis?.gridLines === !0), _(Nt, t.messages.chartBuilderAxisLabels), _(It, t.messages.chartBuilderLabelsAuto), _(Rt, t.messages.chartBuilderLabelsHorizontal), _(Bt, t.messages.chartBuilderLabelsTilted), _(Ht, t.messages.chartBuilderLabelsVertical), Ut !== (Ut = e) && (Pt.value = (Pt.__value = e) ?? "", w(Pt, e)), _(Jt, t.messages.chartBuilderStyle), _(Zt, t.messages.chartBuilderFontSize), M(Qt, y(u).style?.fontSize ?? ""), _(tn, t.messages.chartBuilderFontFamily), M(nn, y(u).style?.fontFamily ?? ""), _(on, t.messages.chartBuilderBackground), M(sn, y(u).style?.background ?? ""), _(un, t.messages.chartBuilderTextColor), M(dn, y(u).style?.textColor ?? ""), _(mn, t.messages.chartBuilderResetFormat);
1119
+ }, [() => y(u).xAxis?.labelRotation === void 0 ? "auto" : String(y(u).xAxis.labelRotation)]), m("input", l, (e) => f({ title: e.currentTarget.value })), m("input", E, (e) => f({ subtitle: e.currentTarget.value })), m("input", V, (e) => f({ caption: e.currentTarget.value })), m("change", K, (e) => f({ legend: e.currentTarget.value !== "none" && e.currentTarget.value })), m("change", de, (e) => f({ dataLabels: e.currentTarget.value === "auto" ? void 0 : e.currentTarget.value === "none" ? null : e.currentTarget.value })), m("change", Oe, (e) => f({ seriesLabels: e.currentTarget.checked })), m("change", Be, (e) => f({ crosshairLabels: e.currentTarget.checked })), m("change", We, (e) => f({ compactBelow: T(e.currentTarget.value) })), m("input", Ze, (e) => g("yAxis", { title: e.currentTarget.value })), m("change", tt, (e) => g("yAxis", { min: T(e.currentTarget.value) })), m("change", at, (e) => g("yAxis", { max: T(e.currentTarget.value) })), m("change", lt, (e) => g("yAxis", { format: e.currentTarget.value || void 0 })), m("change", _t, (e) => g("yAxis", { gridLines: e.currentTarget.checked })), m("input", Et, (e) => g("xAxis", { title: e.currentTarget.value })), m("change", At, (e) => g("xAxis", { gridLines: e.currentTarget.checked })), m("change", Pt, (e) => g("xAxis", { labelRotation: e.currentTarget.value === "auto" ? "auto" : Number(e.currentTarget.value) })), m("change", Qt, (e) => x({ fontSize: T(e.currentTarget.value) ?? void 0 })), m("input", nn, (e) => x({ fontFamily: e.currentTarget.value || void 0 })), m("input", sn, (e) => x({ background: e.currentTarget.value || void 0 })), m("input", dn, (e) => x({ textColor: e.currentTarget.value || void 0 })), m("click", pn, () => n().chartFormat = null), F(e, r);
1120
+ };
1121
+ d(v, (e) => {
1122
+ r() === "type" ? e(C) : r() === "data" ? e(I, 1) : e(L, -1);
1123
+ }), F(e, i);
1124
+ }, r = k(() => [
1125
+ {
1126
+ id: "type",
1127
+ label: t.messages.chartBuilderTabType
1128
+ },
1129
+ {
1130
+ id: "data",
1131
+ label: t.messages.chartBuilderTabData
1132
+ },
1133
+ {
1134
+ id: "format",
1135
+ label: t.messages.chartBuilderTabFormat
1136
+ }
1137
+ ]);
1138
+ me(I, {
1139
+ get tabs() {
1140
+ return y(r);
1141
+ },
1142
+ get ariaLabel() {
1143
+ return t.messages.chartBuilderTitle;
1144
+ },
1145
+ get value() {
1146
+ return y(i);
1147
+ },
1148
+ set value(e) {
1149
+ C(i, e, !0);
1150
+ },
1151
+ panel: e,
1152
+ $$slots: { panel: !0 }
1153
+ });
1154
+ }
1155
+ N(v), F(e, v);
1156
+ },
1157
+ $$slots: { default: !0 }
1158
+ }), te();
1159
+ }
1160
+ f([
1161
+ "click",
1162
+ "change",
1163
+ "input"
1164
+ ]);
1165
+ //#endregion
1166
+ export { Re as default };