@svgrid/grid-wc 3.0.1 → 3.0.2
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.
- package/README.md +20 -0
- package/dist/GridMenus-B1mC1aPp.js +1077 -0
- package/dist/SvChartMenu-CBMKm7Xb.js +413 -0
- package/dist/SvDateRangeInput-BrYTQEMM.js +197 -0
- package/dist/SvDateTimePicker-CnLlqNDQ.js +766 -0
- package/dist/SvField-Bmzp3ObZ.js +147 -0
- package/dist/SvGridCellEditor-B005dmV1.js +560 -0
- package/dist/SvGridChart-4TcL9Rj2.js +3702 -0
- package/dist/SvGridChartBuilder-C4OL4XYx.js +1165 -0
- package/dist/SvGridChartPanel-CfHA8Ioq.js +1743 -0
- package/dist/SvGridChartView-Ci-9_EJ0.js +45 -0
- package/dist/SvGridDropdown-BlA6iw9m.js +257 -0
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +178 -7
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
- package/dist/angular/types/svgrid-grid-wc-angular.d.ts +77 -2
- package/dist/chart/SvChartMenu-C-sbGNk8.js +586 -0
- package/dist/chart/chart-export-BHGuh_kZ.js +127 -0
- package/dist/chart/chart-export-pdf-BjkkIEkE.js +104 -0
- package/dist/chart/chart-summary-B86RFA3M.js +137 -0
- package/dist/chart/chart-trend-DP6DSsBa.js +56 -0
- package/dist/chart/chart-validate-CD6ptiwg.js +180 -0
- package/dist/chart/client-BuB0wIgc.js +2757 -0
- package/dist/chart/sv-chart-element.d.ts +98 -0
- package/dist/chart/sv-chart-element.js +7282 -0
- package/dist/chart-DoqdUoGg.js +4398 -0
- package/dist/chart-export-pdf-BirUdchl.js +104 -0
- package/dist/chart-summary-BP9i-v8M.js +137 -0
- package/dist/chart-validate-CD6ptiwg.js +180 -0
- package/dist/{shadow/client-DjwUji8D.js → client-DEF0GRjE.js} +1 -1
- package/dist/{column-resize-DvCRUrN3.js → column-resize-DUPgynvc.js} +3 -3
- package/dist/date-format-DMTwV8NC.js +1128 -0
- package/dist/focus-trap-DvlOlOGM.js +65 -0
- package/dist/list-option-DrRyivWp.js +82 -0
- package/dist/react/chart.d.ts +99 -0
- package/dist/react/chart.js +49 -0
- package/dist/react/index.d.ts +28 -0
- package/dist/react/index.js +4 -1
- package/dist/{row-resize-D-8s3cqT.js → row-resize-Cf8qPLbi.js} +44 -36
- package/dist/shadow/GridMenus-B1mC1aPp.js +1077 -0
- package/dist/shadow/SvChartMenu-CBMKm7Xb.js +413 -0
- package/dist/shadow/SvDateRangeInput-BrYTQEMM.js +197 -0
- package/dist/shadow/SvDateTimePicker-CnLlqNDQ.js +766 -0
- package/dist/shadow/SvField-Bmzp3ObZ.js +147 -0
- package/dist/shadow/SvGridCellEditor-B005dmV1.js +560 -0
- package/dist/shadow/SvGridChart-4TcL9Rj2.js +3702 -0
- package/dist/shadow/SvGridChartBuilder-C4OL4XYx.js +1165 -0
- package/dist/shadow/SvGridChartPanel-CfHA8Ioq.js +1743 -0
- package/dist/shadow/SvGridChartView-Ci-9_EJ0.js +45 -0
- package/dist/shadow/SvGridDropdown-BlA6iw9m.js +257 -0
- package/dist/shadow/chart-DoqdUoGg.js +4398 -0
- package/dist/shadow/chart-export-pdf-BirUdchl.js +104 -0
- package/dist/shadow/chart-summary-BP9i-v8M.js +137 -0
- package/dist/shadow/chart-validate-CD6ptiwg.js +180 -0
- package/dist/{client-DjwUji8D.js → shadow/client-DEF0GRjE.js} +1 -1
- package/dist/shadow/{column-resize-DvCRUrN3.js → column-resize-DUPgynvc.js} +3 -3
- package/dist/shadow/date-format-DMTwV8NC.js +1128 -0
- package/dist/shadow/focus-trap-DvlOlOGM.js +65 -0
- package/dist/shadow/list-option-DrRyivWp.js +82 -0
- package/dist/shadow/{row-resize-D-8s3cqT.js → row-resize-Cf8qPLbi.js} +44 -36
- package/dist/shadow/sv-grid-shadow-element.d.ts +15 -0
- package/dist/shadow/sv-grid-shadow-element.js +4688 -3621
- package/dist/shadow/{svelte-virtualizer.svelte-DZ9UcyfT.js → svelte-virtualizer.svelte-CnGhFGDc.js} +37 -34
- package/dist/sv-grid-element.d.ts +15 -0
- package/dist/sv-grid-element.js +4646 -3609
- package/dist/{svelte-virtualizer.svelte-DZ9UcyfT.js → svelte-virtualizer.svelte-CnGhFGDc.js} +37 -34
- package/dist/vue/chart.d.ts +64 -0
- package/dist/vue/chart.js +41 -0
- package/dist/vue/index.d.ts +11 -2
- package/dist/vue/index.js +4 -1
- package/package.json +18 -5
- package/dist/GridMenus-YwTw9Upd.js +0 -1123
- package/dist/SvDateRangeInput-CrxeppBV.js +0 -196
- package/dist/SvDateTimePicker-xAO-Pb4S.js +0 -765
- package/dist/SvField-CE345DyF.js +0 -146
- package/dist/SvGridCellEditor-D7SyHtff.js +0 -550
- package/dist/SvGridChart-CMaVmlso.js +0 -1477
- package/dist/SvGridChartPanel-Pc_IW0eA.js +0 -833
- package/dist/SvGridChartView-DLhhzmFy.js +0 -52
- package/dist/SvGridDropdown-DUncHqM-.js +0 -256
- package/dist/chart-GRBAgN1M.js +0 -1658
- package/dist/date-format-D_oQ5Yw0.js +0 -1127
- package/dist/shadow/GridMenus-YwTw9Upd.js +0 -1123
- package/dist/shadow/SvDateRangeInput-CrxeppBV.js +0 -196
- package/dist/shadow/SvDateTimePicker-xAO-Pb4S.js +0 -765
- package/dist/shadow/SvField-CE345DyF.js +0 -146
- package/dist/shadow/SvGridCellEditor-D7SyHtff.js +0 -550
- package/dist/shadow/SvGridChart-CMaVmlso.js +0 -1477
- package/dist/shadow/SvGridChartPanel-Pc_IW0eA.js +0 -833
- package/dist/shadow/SvGridChartView-DLhhzmFy.js +0 -52
- package/dist/shadow/SvGridDropdown-DUncHqM-.js +0 -256
- package/dist/shadow/chart-GRBAgN1M.js +0 -1658
- package/dist/shadow/date-format-D_oQ5Yw0.js +0 -1127
|
@@ -0,0 +1,1165 @@
|
|
|
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-DoqdUoGg.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-DvhBKm3q.js";
|
|
7
|
+
import { t as q } from "./focus-trap-DvlOlOGM.js";
|
|
8
|
+
import { t as re } from "./SvGridChart-4TcL9Rj2.js";
|
|
9
|
+
import { n as J, t as Y } from "./SvGridChartPanel-CfHA8Ioq.js";
|
|
10
|
+
//#region ../grid/dist/a11y/scroll-lock.js
|
|
11
|
+
var X = 0, Z = "", ie = "";
|
|
12
|
+
function ae() {
|
|
13
|
+
if (typeof document > "u") return () => {};
|
|
14
|
+
let e = document.body;
|
|
15
|
+
if (X === 0) {
|
|
16
|
+
Z = e.style.overflow, ie = 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
|
+
X++;
|
|
25
|
+
let t = !1;
|
|
26
|
+
return () => {
|
|
27
|
+
t || (t = !0, X = Math.max(0, X - 1), X === 0 && (e.style.overflow = Z, e.style.paddingRight = ie));
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region ../grid/dist/createOverlay.svelte.js
|
|
32
|
+
function oe(e) {
|
|
33
|
+
return b(() => {
|
|
34
|
+
if (!e.open() || !e.getDialog()) return;
|
|
35
|
+
e.onOpen?.();
|
|
36
|
+
let t = e.getDialog(), n = e.trapFocus?.() ?? !0 ? q(t, e.initialFocus ? { initialFocus: e.initialFocus } : void 0) : null;
|
|
37
|
+
n?.activate();
|
|
38
|
+
let r = e.scrollLock?.() ?? !0 ? ae() : 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 se = 0;
|
|
58
|
+
function ce(e) {
|
|
59
|
+
let t = `sv-tabs-${se++}`, 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 le = 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>"), ue = 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>"), de = P("<span role=\"presentation\"><button> </button> <!></span>"), fe = 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>"), Q = 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 = ce({
|
|
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), re = B(q), J = (e) => {
|
|
174
|
+
var t = le();
|
|
175
|
+
p(() => t.disabled = y(w)), m("click", t, () => j(-1)), F(e, t);
|
|
176
|
+
};
|
|
177
|
+
d(re, (e) => {
|
|
178
|
+
y(x) && e(J);
|
|
179
|
+
});
|
|
180
|
+
var Y = S(re, 2), X = (e) => C(l, e.currentTarget.scrollLeft, !0);
|
|
181
|
+
V(Y, (e) => ({
|
|
182
|
+
class: "sv-tabs__list",
|
|
183
|
+
onscroll: X,
|
|
184
|
+
...e
|
|
185
|
+
}), [() => z.tablistProps()], void 0, void 0, "svelte-13z0l57"), H(Y, 21, () => t.tabs, (e) => e.id, (e, t) => {
|
|
186
|
+
var n = de();
|
|
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 = ue();
|
|
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(Y), T(Y, (e) => W = e, () => W);
|
|
234
|
+
var Z = S(Y, 2), ie = (e) => {
|
|
235
|
+
var t = fe();
|
|
236
|
+
p(() => t.disabled = y(E)), m("click", t, () => j(1)), F(e, t);
|
|
237
|
+
};
|
|
238
|
+
d(Z, (e) => {
|
|
239
|
+
y(x) && e(ie);
|
|
240
|
+
}), N(q);
|
|
241
|
+
var ae = S(q, 2), oe = (e) => {
|
|
242
|
+
var n = Q();
|
|
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(ae, (e) => {
|
|
251
|
+
t.panel && e(oe);
|
|
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(Y, "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\">×</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 = oe({
|
|
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
|
+
}), M = !1, P = {
|
|
282
|
+
x: 0,
|
|
283
|
+
y: 0,
|
|
284
|
+
ox: 0,
|
|
285
|
+
oy: 0
|
|
286
|
+
};
|
|
287
|
+
function R(e) {
|
|
288
|
+
!i() || e.target.closest(".sv-modal__x") || (M = !0, P = {
|
|
289
|
+
x: e.clientX,
|
|
290
|
+
y: e.clientY,
|
|
291
|
+
ox: y(w).x,
|
|
292
|
+
oy: y(w).y
|
|
293
|
+
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
294
|
+
}
|
|
295
|
+
function z(e) {
|
|
296
|
+
M && C(w, {
|
|
297
|
+
x: P.ox + (e.clientX - P.x),
|
|
298
|
+
y: P.oy + (e.clientY - P.y)
|
|
299
|
+
}, !0);
|
|
300
|
+
}
|
|
301
|
+
function H(e) {
|
|
302
|
+
M && (M = !1, e.currentTarget.releasePointerCapture(e.pointerId));
|
|
303
|
+
}
|
|
304
|
+
let K = !1, q = {
|
|
305
|
+
x: 0,
|
|
306
|
+
y: 0,
|
|
307
|
+
w: 0,
|
|
308
|
+
h: 0
|
|
309
|
+
};
|
|
310
|
+
function re(e) {
|
|
311
|
+
if (!a() || !y(b)) return;
|
|
312
|
+
e.stopPropagation(), K = !0;
|
|
313
|
+
let t = y(b).getBoundingClientRect();
|
|
314
|
+
q = {
|
|
315
|
+
x: e.clientX,
|
|
316
|
+
y: e.clientY,
|
|
317
|
+
w: t.width,
|
|
318
|
+
h: t.height
|
|
319
|
+
}, C(O, {
|
|
320
|
+
w: t.width,
|
|
321
|
+
h: t.height
|
|
322
|
+
}, !0), e.currentTarget.setPointerCapture(e.pointerId);
|
|
323
|
+
}
|
|
324
|
+
function J(e) {
|
|
325
|
+
K && C(O, {
|
|
326
|
+
w: Math.max(240, q.w + (e.clientX - q.x)),
|
|
327
|
+
h: Math.max(160, q.h + (e.clientY - q.y))
|
|
328
|
+
}, !0);
|
|
329
|
+
}
|
|
330
|
+
function Y(e) {
|
|
331
|
+
K && (K = !1, e.currentTarget.releasePointerCapture(e.pointerId));
|
|
332
|
+
}
|
|
333
|
+
var X = l(), Z = h(X), ie = (e) => {
|
|
334
|
+
var n = ye(), o = B(n);
|
|
335
|
+
V(o, (e) => ({
|
|
336
|
+
class: `sv-modal sv-modal--${r() ?? ""}`,
|
|
337
|
+
...e,
|
|
338
|
+
[D]: { "is-resized": !!y(O) },
|
|
339
|
+
[ee]: {
|
|
340
|
+
transform: `translate(calc(-50% + ${y(w).x}px), calc(-50% + ${y(w).y}px))`,
|
|
341
|
+
width: y(O) ? `${y(O).w}px` : t.width ? `${t.width}px` : void 0,
|
|
342
|
+
height: y(O) ? `${y(O).h}px` : void 0
|
|
343
|
+
}
|
|
344
|
+
}), [() => j.dialogProps({ labelledBy: t.title ? f : void 0 })]);
|
|
345
|
+
var s = B(o), l = (e) => {
|
|
346
|
+
var n = ge();
|
|
347
|
+
let r;
|
|
348
|
+
var a = B(n), o = B(a, !0);
|
|
349
|
+
N(a);
|
|
350
|
+
var s = S(a, 2), l = (e) => {
|
|
351
|
+
var t = he();
|
|
352
|
+
m("click", t, k), F(e, t);
|
|
353
|
+
};
|
|
354
|
+
d(s, (e) => {
|
|
355
|
+
c() || e(l);
|
|
356
|
+
}), N(n), p(() => {
|
|
357
|
+
r = ne(n, 1, "sv-modal__header", null, r, { "is-draggable": i() }), A(a, "id", f), _(o, t.title ?? "");
|
|
358
|
+
}), m("pointerdown", n, R), m("pointermove", n, z), m("pointerup", n, H), g("pointercancel", n, H), F(e, n);
|
|
359
|
+
};
|
|
360
|
+
d(s, (e) => {
|
|
361
|
+
(t.title || !c()) && e(l);
|
|
362
|
+
});
|
|
363
|
+
var h = S(s, 2), v = B(h);
|
|
364
|
+
u(v, () => t.children ?? E), N(h);
|
|
365
|
+
var x = S(h, 2), M = (e) => {
|
|
366
|
+
var n = _e(), r = B(n);
|
|
367
|
+
u(r, () => t.footer), N(n), F(e, n);
|
|
368
|
+
};
|
|
369
|
+
d(x, (e) => {
|
|
370
|
+
t.footer && e(M);
|
|
371
|
+
});
|
|
372
|
+
var P = S(x, 2), I = (e) => {
|
|
373
|
+
var t = ve();
|
|
374
|
+
m("pointerdown", t, re), m("pointermove", t, J), m("pointerup", t, Y), g("pointercancel", t, Y), F(e, t);
|
|
375
|
+
};
|
|
376
|
+
d(P, (e) => {
|
|
377
|
+
a() && e(I);
|
|
378
|
+
}), N(o), T(o, (e) => C(b, e), () => y(b)), N(n), U(n, (e) => G?.(e)), F(e, n);
|
|
379
|
+
};
|
|
380
|
+
d(Z, (e) => {
|
|
381
|
+
n() && e(ie);
|
|
382
|
+
}), F(e, X), te();
|
|
383
|
+
}
|
|
384
|
+
f([
|
|
385
|
+
"pointerdown",
|
|
386
|
+
"pointermove",
|
|
387
|
+
"pointerup",
|
|
388
|
+
"click"
|
|
389
|
+
]);
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region ../grid/dist/chart-samples.js
|
|
392
|
+
var $ = null;
|
|
393
|
+
function xe() {
|
|
394
|
+
if ($) return $;
|
|
395
|
+
let e = 7, t = () => (e = (e * 1103515245 + 12345) % 2147483648) / 2147483648, n = [
|
|
396
|
+
"North",
|
|
397
|
+
"South",
|
|
398
|
+
"East",
|
|
399
|
+
"West"
|
|
400
|
+
], r = [
|
|
401
|
+
"Web",
|
|
402
|
+
"Retail",
|
|
403
|
+
"Partner"
|
|
404
|
+
], i = [], a = Date.UTC(2026, 0, 1);
|
|
405
|
+
for (let e = 0; e < 160; e += 1) {
|
|
406
|
+
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);
|
|
407
|
+
i.push({
|
|
408
|
+
day: e,
|
|
409
|
+
region: n[Math.floor(t() * 4)],
|
|
410
|
+
channel: r[Math.floor(t() * 3)],
|
|
411
|
+
units: o,
|
|
412
|
+
cost: Math.round(c * (.5 + t() * .3)),
|
|
413
|
+
revenue: c
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
return $ = i, i;
|
|
417
|
+
}
|
|
418
|
+
function Se(c, l) {
|
|
419
|
+
let u = xe(), d = o(u, {
|
|
420
|
+
type: "bar",
|
|
421
|
+
category: "region",
|
|
422
|
+
value: "revenue"
|
|
423
|
+
}), f = o(u, {
|
|
424
|
+
type: "bar",
|
|
425
|
+
category: "region",
|
|
426
|
+
value: "revenue",
|
|
427
|
+
series: "channel"
|
|
428
|
+
}), p = o(u, {
|
|
429
|
+
type: "line",
|
|
430
|
+
category: "day",
|
|
431
|
+
value: "revenue",
|
|
432
|
+
bucket: "month"
|
|
433
|
+
}), m = o(u, {
|
|
434
|
+
type: "area",
|
|
435
|
+
category: "day",
|
|
436
|
+
value: "revenue",
|
|
437
|
+
series: "channel",
|
|
438
|
+
bucket: "month"
|
|
439
|
+
}), h = () => n(d.categories.map((e, t) => ({
|
|
440
|
+
region: e,
|
|
441
|
+
cost: d.series[0].values[t] * .6,
|
|
442
|
+
revenue: d.series[0].values[t]
|
|
443
|
+
})), {
|
|
444
|
+
category: "region",
|
|
445
|
+
low: "cost",
|
|
446
|
+
high: "revenue"
|
|
447
|
+
}), g = () => {
|
|
448
|
+
let e = p.series[0].values, t = e.map((t, n) => {
|
|
449
|
+
let r = n ? e[n - 1] : t * .95;
|
|
450
|
+
return {
|
|
451
|
+
o: r,
|
|
452
|
+
c: t,
|
|
453
|
+
h: Math.max(r, t) * 1.04,
|
|
454
|
+
l: Math.min(r, t) * .96
|
|
455
|
+
};
|
|
456
|
+
});
|
|
457
|
+
return {
|
|
458
|
+
categories: p.categories,
|
|
459
|
+
series: [{
|
|
460
|
+
label: "Revenue",
|
|
461
|
+
values: e,
|
|
462
|
+
ohlc: t
|
|
463
|
+
}],
|
|
464
|
+
xType: "ordinal-time"
|
|
465
|
+
};
|
|
466
|
+
}, _;
|
|
467
|
+
switch (c) {
|
|
468
|
+
case "line":
|
|
469
|
+
_ = {
|
|
470
|
+
...m,
|
|
471
|
+
type: "line"
|
|
472
|
+
};
|
|
473
|
+
break;
|
|
474
|
+
case "area":
|
|
475
|
+
_ = {
|
|
476
|
+
...m,
|
|
477
|
+
type: "area",
|
|
478
|
+
stacked: !0
|
|
479
|
+
};
|
|
480
|
+
break;
|
|
481
|
+
case "lollipop":
|
|
482
|
+
_ = {
|
|
483
|
+
...d,
|
|
484
|
+
type: "lollipop"
|
|
485
|
+
};
|
|
486
|
+
break;
|
|
487
|
+
case "dumbbell":
|
|
488
|
+
_ = {
|
|
489
|
+
...h(),
|
|
490
|
+
type: "dumbbell"
|
|
491
|
+
};
|
|
492
|
+
break;
|
|
493
|
+
case "range-bar":
|
|
494
|
+
_ = h();
|
|
495
|
+
break;
|
|
496
|
+
case "range-area":
|
|
497
|
+
_ = {
|
|
498
|
+
...p,
|
|
499
|
+
type: "range-area",
|
|
500
|
+
series: [{
|
|
501
|
+
label: "Band",
|
|
502
|
+
values: p.series[0].values.map((e) => e * 1.15),
|
|
503
|
+
lowValues: p.series[0].values.map((e) => e * .85)
|
|
504
|
+
}]
|
|
505
|
+
};
|
|
506
|
+
break;
|
|
507
|
+
case "pareto":
|
|
508
|
+
_ = {
|
|
509
|
+
...o(u, {
|
|
510
|
+
type: "bar",
|
|
511
|
+
category: "channel",
|
|
512
|
+
value: "units"
|
|
513
|
+
}),
|
|
514
|
+
type: "pareto"
|
|
515
|
+
};
|
|
516
|
+
break;
|
|
517
|
+
case "radial-column":
|
|
518
|
+
_ = {
|
|
519
|
+
...f,
|
|
520
|
+
type: "radial-column",
|
|
521
|
+
stacked: !0
|
|
522
|
+
};
|
|
523
|
+
break;
|
|
524
|
+
case "radial-bar":
|
|
525
|
+
_ = {
|
|
526
|
+
...d,
|
|
527
|
+
type: "radial-bar"
|
|
528
|
+
};
|
|
529
|
+
break;
|
|
530
|
+
case "nightingale":
|
|
531
|
+
_ = {
|
|
532
|
+
...p,
|
|
533
|
+
type: "nightingale"
|
|
534
|
+
};
|
|
535
|
+
break;
|
|
536
|
+
case "pie":
|
|
537
|
+
_ = {
|
|
538
|
+
...d,
|
|
539
|
+
type: "pie",
|
|
540
|
+
innerRadius: .55
|
|
541
|
+
};
|
|
542
|
+
break;
|
|
543
|
+
case "treemap":
|
|
544
|
+
_ = {
|
|
545
|
+
...f,
|
|
546
|
+
type: "treemap",
|
|
547
|
+
treemap: r(f)
|
|
548
|
+
};
|
|
549
|
+
break;
|
|
550
|
+
case "sunburst":
|
|
551
|
+
_ = {
|
|
552
|
+
...f,
|
|
553
|
+
type: "sunburst",
|
|
554
|
+
tree: r(f)
|
|
555
|
+
};
|
|
556
|
+
break;
|
|
557
|
+
case "funnel":
|
|
558
|
+
_ = {
|
|
559
|
+
type: "funnel",
|
|
560
|
+
categories: [
|
|
561
|
+
"Visits",
|
|
562
|
+
"Sign-ups",
|
|
563
|
+
"Trials",
|
|
564
|
+
"Paid"
|
|
565
|
+
],
|
|
566
|
+
series: [{
|
|
567
|
+
label: "Users",
|
|
568
|
+
values: [
|
|
569
|
+
12400,
|
|
570
|
+
5100,
|
|
571
|
+
2300,
|
|
572
|
+
880
|
|
573
|
+
]
|
|
574
|
+
}]
|
|
575
|
+
};
|
|
576
|
+
break;
|
|
577
|
+
case "waterfall":
|
|
578
|
+
_ = {
|
|
579
|
+
type: "waterfall",
|
|
580
|
+
categories: [
|
|
581
|
+
"Start",
|
|
582
|
+
"Web",
|
|
583
|
+
"Retail",
|
|
584
|
+
"Partner",
|
|
585
|
+
"Returns",
|
|
586
|
+
"End"
|
|
587
|
+
],
|
|
588
|
+
series: [{
|
|
589
|
+
label: "P&L",
|
|
590
|
+
values: [
|
|
591
|
+
120,
|
|
592
|
+
48,
|
|
593
|
+
31,
|
|
594
|
+
22,
|
|
595
|
+
-19,
|
|
596
|
+
0
|
|
597
|
+
]
|
|
598
|
+
}],
|
|
599
|
+
waterfallTotals: [
|
|
600
|
+
!0,
|
|
601
|
+
!1,
|
|
602
|
+
!1,
|
|
603
|
+
!1,
|
|
604
|
+
!1,
|
|
605
|
+
!0
|
|
606
|
+
]
|
|
607
|
+
};
|
|
608
|
+
break;
|
|
609
|
+
case "sankey": {
|
|
610
|
+
let e = a(f);
|
|
611
|
+
_ = {
|
|
612
|
+
...f,
|
|
613
|
+
type: "sankey",
|
|
614
|
+
sankeyNodes: e.nodes,
|
|
615
|
+
sankeyLinks: e.links
|
|
616
|
+
};
|
|
617
|
+
break;
|
|
618
|
+
}
|
|
619
|
+
case "chord": {
|
|
620
|
+
let e = a(f);
|
|
621
|
+
_ = {
|
|
622
|
+
...f,
|
|
623
|
+
type: "chord",
|
|
624
|
+
sankeyNodes: e.nodes,
|
|
625
|
+
sankeyLinks: e.links
|
|
626
|
+
};
|
|
627
|
+
break;
|
|
628
|
+
}
|
|
629
|
+
case "radar":
|
|
630
|
+
_ = {
|
|
631
|
+
...f,
|
|
632
|
+
type: "radar"
|
|
633
|
+
};
|
|
634
|
+
break;
|
|
635
|
+
case "heatmap":
|
|
636
|
+
_ = {
|
|
637
|
+
...f,
|
|
638
|
+
type: "heatmap"
|
|
639
|
+
};
|
|
640
|
+
break;
|
|
641
|
+
case "scatter":
|
|
642
|
+
_ = s(u.slice(0, 80), {
|
|
643
|
+
x: "cost",
|
|
644
|
+
y: "revenue",
|
|
645
|
+
series: "channel",
|
|
646
|
+
r: "units"
|
|
647
|
+
});
|
|
648
|
+
break;
|
|
649
|
+
case "boxplot":
|
|
650
|
+
_ = i(u, {
|
|
651
|
+
category: "region",
|
|
652
|
+
value: "revenue"
|
|
653
|
+
});
|
|
654
|
+
break;
|
|
655
|
+
case "histogram":
|
|
656
|
+
_ = e(u, {
|
|
657
|
+
value: "revenue",
|
|
658
|
+
bins: 10
|
|
659
|
+
});
|
|
660
|
+
break;
|
|
661
|
+
case "gauge":
|
|
662
|
+
_ = {
|
|
663
|
+
type: "gauge",
|
|
664
|
+
categories: [],
|
|
665
|
+
series: [],
|
|
666
|
+
gaugeValue: 72,
|
|
667
|
+
gaugeMin: 0,
|
|
668
|
+
gaugeMax: 100,
|
|
669
|
+
gaugeTarget: 80,
|
|
670
|
+
gaugeUnit: "%",
|
|
671
|
+
gaugeRanges: [
|
|
672
|
+
{
|
|
673
|
+
from: 0,
|
|
674
|
+
to: 50,
|
|
675
|
+
color: "#ef4444"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
from: 50,
|
|
679
|
+
to: 75,
|
|
680
|
+
color: "#f59e0b"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
from: 75,
|
|
684
|
+
to: 100,
|
|
685
|
+
color: "#16a34a"
|
|
686
|
+
}
|
|
687
|
+
]
|
|
688
|
+
};
|
|
689
|
+
break;
|
|
690
|
+
case "bullet":
|
|
691
|
+
_ = {
|
|
692
|
+
type: "bullet",
|
|
693
|
+
categories: d.categories,
|
|
694
|
+
series: [{
|
|
695
|
+
label: "Revenue",
|
|
696
|
+
values: d.series[0].values,
|
|
697
|
+
targets: d.series[0].values.map((e, t) => e * (.9 + t % 3 * .1))
|
|
698
|
+
}]
|
|
699
|
+
};
|
|
700
|
+
break;
|
|
701
|
+
case "calendar": {
|
|
702
|
+
let e = o(u, {
|
|
703
|
+
type: "bar",
|
|
704
|
+
category: "day",
|
|
705
|
+
value: "units"
|
|
706
|
+
});
|
|
707
|
+
_ = {
|
|
708
|
+
...e,
|
|
709
|
+
type: "calendar",
|
|
710
|
+
calendarValues: t(e)
|
|
711
|
+
};
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
case "stream":
|
|
715
|
+
_ = {
|
|
716
|
+
...m,
|
|
717
|
+
type: "stream",
|
|
718
|
+
stacked: !0,
|
|
719
|
+
stackOffset: "wiggle"
|
|
720
|
+
};
|
|
721
|
+
break;
|
|
722
|
+
case "candlestick":
|
|
723
|
+
_ = {
|
|
724
|
+
type: "candlestick",
|
|
725
|
+
...g()
|
|
726
|
+
};
|
|
727
|
+
break;
|
|
728
|
+
case "ohlc":
|
|
729
|
+
_ = {
|
|
730
|
+
type: "ohlc",
|
|
731
|
+
...g()
|
|
732
|
+
};
|
|
733
|
+
break;
|
|
734
|
+
default: _ = {
|
|
735
|
+
...f,
|
|
736
|
+
type: "bar"
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
return l ? {
|
|
740
|
+
..._,
|
|
741
|
+
palette: l
|
|
742
|
+
} : _;
|
|
743
|
+
}
|
|
744
|
+
function Ce(e, t, n = 150, r = 92) {
|
|
745
|
+
let i = Se(e, t);
|
|
746
|
+
return {
|
|
747
|
+
...i,
|
|
748
|
+
width: n,
|
|
749
|
+
height: r,
|
|
750
|
+
title: void 0,
|
|
751
|
+
yAxisTitle: void 0,
|
|
752
|
+
xAxisTitle: void 0,
|
|
753
|
+
referenceLines: void 0,
|
|
754
|
+
xAxis: {
|
|
755
|
+
...i.xAxis ?? {},
|
|
756
|
+
labels: !1,
|
|
757
|
+
title: void 0
|
|
758
|
+
},
|
|
759
|
+
yAxis: {
|
|
760
|
+
...i.yAxis ?? {},
|
|
761
|
+
labels: !1,
|
|
762
|
+
title: void 0
|
|
763
|
+
},
|
|
764
|
+
y2Axis: {
|
|
765
|
+
...i.y2Axis ?? {},
|
|
766
|
+
labels: !1,
|
|
767
|
+
title: void 0
|
|
768
|
+
}
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
//#endregion
|
|
772
|
+
//#region ../grid/dist/SvGridChartBuilder.svelte
|
|
773
|
+
var we = 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>"), Te = P("<div class=\"sv-grid-chart-builder-group svelte-1yr3emi\"> </div> <div class=\"sv-grid-chart-builder-cards svelte-1yr3emi\"></div>", 1), Ee = P("<div class=\"sv-grid-chart-builder-gallery\"></div>"), De = 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>"), Oe = P("<option> </option>"), ke = 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>"), Ae = P("<span> </span>"), je = P("<option> </option>"), Me = P("<input type=\"text\" class=\"svelte-1yr3emi\"/>"), Ne = 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>"), Pe = 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>"), Fe = 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>"), Ie = P("<div class=\"sv-grid-chart-builder svelte-1yr3emi\"><!></div>");
|
|
774
|
+
function Le(e, t) {
|
|
775
|
+
L(t, !0);
|
|
776
|
+
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 ?? {});
|
|
777
|
+
function f(e) {
|
|
778
|
+
n().chartFormat = {
|
|
779
|
+
...y(u),
|
|
780
|
+
...e
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
function g(e, t) {
|
|
784
|
+
f({ [e]: {
|
|
785
|
+
...y(u)[e] ?? {},
|
|
786
|
+
...t
|
|
787
|
+
} });
|
|
788
|
+
}
|
|
789
|
+
function b(e, t) {
|
|
790
|
+
f({ series: {
|
|
791
|
+
...y(u).series ?? {},
|
|
792
|
+
[e]: {
|
|
793
|
+
...y(u).series?.[e] ?? {},
|
|
794
|
+
...t
|
|
795
|
+
}
|
|
796
|
+
} });
|
|
797
|
+
}
|
|
798
|
+
function x(e) {
|
|
799
|
+
f({ style: {
|
|
800
|
+
...y(u).style ?? {},
|
|
801
|
+
...e
|
|
802
|
+
} });
|
|
803
|
+
}
|
|
804
|
+
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 = [
|
|
805
|
+
"circle",
|
|
806
|
+
"square",
|
|
807
|
+
"diamond",
|
|
808
|
+
"triangle",
|
|
809
|
+
"cross",
|
|
810
|
+
"none"
|
|
811
|
+
], R = [
|
|
812
|
+
"number",
|
|
813
|
+
"currency",
|
|
814
|
+
"percent",
|
|
815
|
+
"compact"
|
|
816
|
+
];
|
|
817
|
+
be(e, {
|
|
818
|
+
get title() {
|
|
819
|
+
return t.messages.chartBuilderTitle;
|
|
820
|
+
},
|
|
821
|
+
size: "lg",
|
|
822
|
+
get open() {
|
|
823
|
+
return r();
|
|
824
|
+
},
|
|
825
|
+
set open(e) {
|
|
826
|
+
r(e);
|
|
827
|
+
},
|
|
828
|
+
children: (e, r) => {
|
|
829
|
+
var v = Ie(), I = B(v);
|
|
830
|
+
{
|
|
831
|
+
let e = (e, r = E) => {
|
|
832
|
+
var i = l(), v = h(i), C = (e) => {
|
|
833
|
+
var r = Ee();
|
|
834
|
+
H(r, 20, () => y(a), (e) => e, (e, r) => {
|
|
835
|
+
var i = Te(), a = h(i), o = B(a, !0);
|
|
836
|
+
N(a);
|
|
837
|
+
var c = S(a, 2);
|
|
838
|
+
H(c, 21, () => t.types.filter((e) => e.group === r), (e) => e.value, (e, t) => {
|
|
839
|
+
var r = we();
|
|
840
|
+
let i;
|
|
841
|
+
var a = B(r), o = B(a);
|
|
842
|
+
{
|
|
843
|
+
let e = k(() => Ce(y(t).value, y(s)));
|
|
844
|
+
re(o, {
|
|
845
|
+
get spec() {
|
|
846
|
+
return y(e);
|
|
847
|
+
},
|
|
848
|
+
interactive: !1,
|
|
849
|
+
legend: !1,
|
|
850
|
+
toolbar: !1,
|
|
851
|
+
announce: !1
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
N(a);
|
|
855
|
+
var c = S(a, 2), l = B(c, !0);
|
|
856
|
+
N(c), N(r), p(() => {
|
|
857
|
+
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);
|
|
858
|
+
}), m("click", r, () => n().chartType = y(t).value), F(e, r);
|
|
859
|
+
}), N(c), p(() => _(o, r)), F(e, i);
|
|
860
|
+
}), N(r), F(e, r);
|
|
861
|
+
}, I = (e) => {
|
|
862
|
+
var r = De(), i = B(r);
|
|
863
|
+
J(i, {
|
|
864
|
+
get ctrl() {
|
|
865
|
+
return n();
|
|
866
|
+
},
|
|
867
|
+
get messages() {
|
|
868
|
+
return t.messages;
|
|
869
|
+
},
|
|
870
|
+
scope: "builder"
|
|
871
|
+
});
|
|
872
|
+
var a = S(i, 2), o = B(a), s = B(o, !0);
|
|
873
|
+
N(o);
|
|
874
|
+
var c = S(o, 2);
|
|
875
|
+
O(c);
|
|
876
|
+
var l = S(c, 2), u = B(l, !0);
|
|
877
|
+
N(l), N(a), N(r), p((e) => {
|
|
878
|
+
_(s, t.messages.chartBuilderLinked), z(c, !n().chartFrozen), _(u, e);
|
|
879
|
+
}, [() => n().chartFrozen ? Y(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);
|
|
880
|
+
}, L = (e) => {
|
|
881
|
+
var r = Fe(), i = B(r), a = B(i), s = B(a, !0);
|
|
882
|
+
N(a);
|
|
883
|
+
var l = S(a);
|
|
884
|
+
O(l), N(i);
|
|
885
|
+
var h = S(i, 2), v = B(h), C = B(v, !0);
|
|
886
|
+
N(v);
|
|
887
|
+
var E = S(v);
|
|
888
|
+
O(E), N(h);
|
|
889
|
+
var I = S(h, 2), L = B(I), te = B(L, !0);
|
|
890
|
+
N(L);
|
|
891
|
+
var V = S(L);
|
|
892
|
+
O(V), N(I);
|
|
893
|
+
var U = S(I, 2), W = B(U), G = B(W, !0);
|
|
894
|
+
N(W);
|
|
895
|
+
var K = S(W, 2), q = B(K), re = B(q, !0);
|
|
896
|
+
N(q), q.value = q.__value = "bottom";
|
|
897
|
+
var J = S(q), X = B(J, !0);
|
|
898
|
+
N(J), J.value = J.__value = "top";
|
|
899
|
+
var Z = S(J), ie = B(Z, !0);
|
|
900
|
+
N(Z), Z.value = Z.__value = "left";
|
|
901
|
+
var ae = S(Z), oe = B(ae, !0);
|
|
902
|
+
N(ae), ae.value = ae.__value = "right";
|
|
903
|
+
var se = S(ae), ce = B(se, !0);
|
|
904
|
+
N(se), se.value = se.__value = "none", N(K);
|
|
905
|
+
var le;
|
|
906
|
+
j(K), N(U);
|
|
907
|
+
var ue = S(U, 2), de = B(ue), fe = B(de, !0);
|
|
908
|
+
N(de);
|
|
909
|
+
var Q = S(de, 2), pe = B(Q), me = B(pe, !0);
|
|
910
|
+
N(pe), pe.value = pe.__value = "auto";
|
|
911
|
+
var he = S(pe), ge = B(he, !0);
|
|
912
|
+
N(he), he.value = he.__value = "top";
|
|
913
|
+
var _e = S(he), ve = B(_e, !0);
|
|
914
|
+
N(_e), _e.value = _e.__value = "outside";
|
|
915
|
+
var ye = S(_e), be = B(ye, !0);
|
|
916
|
+
N(ye), ye.value = ye.__value = "inside";
|
|
917
|
+
var $ = S(ye), xe = B($, !0);
|
|
918
|
+
N($), $.value = $.__value = "center";
|
|
919
|
+
var Se = S($), Ce = B(Se, !0);
|
|
920
|
+
N(Se), Se.value = Se.__value = "none", N(Q);
|
|
921
|
+
var we;
|
|
922
|
+
j(Q), N(ue);
|
|
923
|
+
var Te = S(ue, 2), Ee = B(Te), De = B(Ee, !0);
|
|
924
|
+
N(Ee);
|
|
925
|
+
var Ie = S(Ee);
|
|
926
|
+
O(Ie), N(Te);
|
|
927
|
+
var Le = S(Te, 2), Re = B(Le), ze = B(Re, !0);
|
|
928
|
+
N(Re);
|
|
929
|
+
var Be = S(Re);
|
|
930
|
+
O(Be), N(Le);
|
|
931
|
+
var Ve = S(Le, 2), He = B(Ve), Ue = B(He, !0);
|
|
932
|
+
N(He);
|
|
933
|
+
var We = S(He, 2);
|
|
934
|
+
O(We), N(Ve);
|
|
935
|
+
var Ge = S(Ve, 2), Ke = B(Ge), qe = B(Ke, !0);
|
|
936
|
+
N(Ke);
|
|
937
|
+
var Je = S(Ke, 2), Ye = B(Je), Xe = B(Ye, !0);
|
|
938
|
+
N(Ye);
|
|
939
|
+
var Ze = S(Ye);
|
|
940
|
+
O(Ze), N(Je);
|
|
941
|
+
var Qe = S(Je, 2), $e = B(Qe), et = B($e, !0);
|
|
942
|
+
N($e);
|
|
943
|
+
var tt = S($e);
|
|
944
|
+
O(tt), N(Qe);
|
|
945
|
+
var nt = S(Qe, 2), rt = B(nt), it = B(rt, !0);
|
|
946
|
+
N(rt);
|
|
947
|
+
var at = S(rt);
|
|
948
|
+
O(at), N(nt);
|
|
949
|
+
var ot = S(nt, 2), st = B(ot), ct = B(st, !0);
|
|
950
|
+
N(st);
|
|
951
|
+
var lt = S(st, 2), ut = B(lt), dt = B(ut, !0);
|
|
952
|
+
N(ut), ut.value = ut.__value = "";
|
|
953
|
+
var ft = S(ut);
|
|
954
|
+
H(ft, 16, () => R, (e) => e, (e, t) => {
|
|
955
|
+
var n = Oe(), r = B(n, !0);
|
|
956
|
+
N(n);
|
|
957
|
+
var i = {};
|
|
958
|
+
p(() => {
|
|
959
|
+
_(r, t), i !== (i = t) && (n.value = (n.__value = t) ?? "");
|
|
960
|
+
}), F(e, n);
|
|
961
|
+
}), N(lt);
|
|
962
|
+
var pt;
|
|
963
|
+
j(lt), N(ot);
|
|
964
|
+
var mt = S(ot, 2), ht = B(mt), gt = B(ht, !0);
|
|
965
|
+
N(ht);
|
|
966
|
+
var _t = S(ht);
|
|
967
|
+
O(_t), N(mt), N(Ge);
|
|
968
|
+
var vt = S(Ge, 2), yt = (e) => {
|
|
969
|
+
var n = ke(), r = B(n), i = B(r, !0);
|
|
970
|
+
N(r);
|
|
971
|
+
var a = S(r, 2), o = B(a), s = B(o, !0);
|
|
972
|
+
N(o);
|
|
973
|
+
var c = S(o);
|
|
974
|
+
O(c), N(a);
|
|
975
|
+
var l = S(a, 2), d = B(l), f = B(d, !0);
|
|
976
|
+
N(d);
|
|
977
|
+
var h = S(d);
|
|
978
|
+
O(h), N(l);
|
|
979
|
+
var v = S(l, 2), b = B(v), x = B(b, !0);
|
|
980
|
+
N(b);
|
|
981
|
+
var C = S(b);
|
|
982
|
+
O(C), N(v), N(n), p(() => {
|
|
983
|
+
_(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);
|
|
984
|
+
}), 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);
|
|
985
|
+
};
|
|
986
|
+
d(vt, (e) => {
|
|
987
|
+
y(D) && e(yt);
|
|
988
|
+
});
|
|
989
|
+
var bt = S(vt, 2), xt = B(bt), St = B(xt, !0);
|
|
990
|
+
N(xt);
|
|
991
|
+
var Ct = S(xt, 2), wt = B(Ct), Tt = B(wt, !0);
|
|
992
|
+
N(wt);
|
|
993
|
+
var Et = S(wt);
|
|
994
|
+
O(Et), N(Ct);
|
|
995
|
+
var Dt = S(Ct, 2), Ot = B(Dt), kt = B(Ot, !0);
|
|
996
|
+
N(Ot);
|
|
997
|
+
var At = S(Ot);
|
|
998
|
+
O(At), N(Dt);
|
|
999
|
+
var jt = S(Dt, 2), Mt = B(jt), Nt = B(Mt, !0);
|
|
1000
|
+
N(Mt);
|
|
1001
|
+
var Pt = S(Mt, 2), Ft = B(Pt), It = B(Ft, !0);
|
|
1002
|
+
N(Ft), Ft.value = Ft.__value = "auto";
|
|
1003
|
+
var Lt = S(Ft), Rt = B(Lt, !0);
|
|
1004
|
+
N(Lt), Lt.value = Lt.__value = "0";
|
|
1005
|
+
var zt = S(Lt), Bt = B(zt, !0);
|
|
1006
|
+
N(zt), zt.value = zt.__value = "-45";
|
|
1007
|
+
var Vt = S(zt), Ht = B(Vt, !0);
|
|
1008
|
+
N(Vt), Vt.value = Vt.__value = "-90", N(Pt);
|
|
1009
|
+
var Ut;
|
|
1010
|
+
j(Pt), N(jt), N(bt);
|
|
1011
|
+
var Wt = S(bt, 2), Gt = (e) => {
|
|
1012
|
+
var n = Pe(), r = B(n), i = B(r, !0);
|
|
1013
|
+
N(r);
|
|
1014
|
+
var a = S(r, 2);
|
|
1015
|
+
let s;
|
|
1016
|
+
var l = B(a), f = B(l, !0);
|
|
1017
|
+
N(l);
|
|
1018
|
+
var h = S(l), g = B(h, !0);
|
|
1019
|
+
N(h);
|
|
1020
|
+
var v = S(h), x = B(v, !0);
|
|
1021
|
+
N(v);
|
|
1022
|
+
var C = S(v), T = B(C, !0);
|
|
1023
|
+
N(C);
|
|
1024
|
+
var E = S(C), D = B(E, !0);
|
|
1025
|
+
N(E);
|
|
1026
|
+
var I = S(E), L = B(I, !0);
|
|
1027
|
+
N(I);
|
|
1028
|
+
var R = S(I), z = (e) => {
|
|
1029
|
+
var n = Ae(), r = B(n, !0);
|
|
1030
|
+
N(n), p(() => _(r, t.messages.chartBuilderStack)), F(e, n);
|
|
1031
|
+
};
|
|
1032
|
+
d(R, (e) => {
|
|
1033
|
+
y(P) && e(z);
|
|
1034
|
+
}), N(a);
|
|
1035
|
+
var te = S(a, 2);
|
|
1036
|
+
H(te, 16, () => y(c), (e) => e, (e, n) => {
|
|
1037
|
+
let r = k(() => y(u).series?.[n] ?? {}), i = k(() => y(o)?.series.find((e) => e.label === n));
|
|
1038
|
+
var a = Ne();
|
|
1039
|
+
let s;
|
|
1040
|
+
var c = B(a), l = B(c, !0);
|
|
1041
|
+
N(c);
|
|
1042
|
+
var f = S(c, 2);
|
|
1043
|
+
O(f);
|
|
1044
|
+
var h = S(f, 2), g = B(h), v = B(g, !0);
|
|
1045
|
+
N(g), g.value = g.__value = "";
|
|
1046
|
+
var x = S(g), C = B(x, !0);
|
|
1047
|
+
N(x), x.value = x.__value = "bar";
|
|
1048
|
+
var T = S(x), E = B(T, !0);
|
|
1049
|
+
N(T), T.value = T.__value = "line";
|
|
1050
|
+
var D = S(T), I = B(D, !0);
|
|
1051
|
+
N(D), D.value = D.__value = "area", N(h);
|
|
1052
|
+
var L;
|
|
1053
|
+
j(h);
|
|
1054
|
+
var R = S(h, 2), z = B(R), te = B(z, !0);
|
|
1055
|
+
N(z), z.value = z.__value = "left";
|
|
1056
|
+
var V = S(z), U = B(V, !0);
|
|
1057
|
+
N(V), V.value = V.__value = "right", N(R);
|
|
1058
|
+
var W;
|
|
1059
|
+
j(R);
|
|
1060
|
+
var G = S(R, 2);
|
|
1061
|
+
H(G, 20, () => ee, (e) => e, (e, t) => {
|
|
1062
|
+
var n = je(), r = B(n, !0);
|
|
1063
|
+
N(n);
|
|
1064
|
+
var i = {};
|
|
1065
|
+
p(() => {
|
|
1066
|
+
_(r, t), i !== (i = t) && (n.value = (n.__value = t) ?? "");
|
|
1067
|
+
}), F(e, n);
|
|
1068
|
+
}), N(G);
|
|
1069
|
+
var K;
|
|
1070
|
+
j(G);
|
|
1071
|
+
var q = S(G, 2);
|
|
1072
|
+
O(q);
|
|
1073
|
+
var re = S(q, 2), J = (e) => {
|
|
1074
|
+
var a = Me();
|
|
1075
|
+
O(a), p((e) => {
|
|
1076
|
+
M(a, y(r).stack ?? y(i)?.stack ?? ""), A(a, "placeholder", t.messages.chartBuilderStackPlaceholder), A(a, "aria-label", e);
|
|
1077
|
+
}, [() => Y(t.messages.chartBuilderSeriesStackLabel, { series: n })]), m("change", a, (e) => b(n, { stack: e.currentTarget.value.trim() })), F(e, a);
|
|
1078
|
+
};
|
|
1079
|
+
d(re, (e) => {
|
|
1080
|
+
y(P) && e(J);
|
|
1081
|
+
}), N(a), p((e, o, u, d, p) => {
|
|
1082
|
+
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);
|
|
1083
|
+
}, [
|
|
1084
|
+
() => Y(t.messages.chartBuilderSeriesColorLabel, { series: n }),
|
|
1085
|
+
() => Y(t.messages.chartBuilderSeriesTypeLabel, { series: n }),
|
|
1086
|
+
() => Y(t.messages.chartBuilderSeriesAxisLabel, { series: n }),
|
|
1087
|
+
() => Y(t.messages.chartBuilderSeriesMarkerLabel, { series: n }),
|
|
1088
|
+
() => Y(t.messages.chartBuilderSeriesWidthLabel, { series: n })
|
|
1089
|
+
]), 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);
|
|
1090
|
+
}), N(n), p(() => {
|
|
1091
|
+
_(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);
|
|
1092
|
+
}), F(e, n);
|
|
1093
|
+
};
|
|
1094
|
+
d(Wt, (e) => {
|
|
1095
|
+
y(c).length && e(Gt);
|
|
1096
|
+
});
|
|
1097
|
+
var Kt = S(Wt, 2), qt = B(Kt), Jt = B(qt, !0);
|
|
1098
|
+
N(qt);
|
|
1099
|
+
var Yt = S(qt, 2), Xt = B(Yt), Zt = B(Xt, !0);
|
|
1100
|
+
N(Xt);
|
|
1101
|
+
var Qt = S(Xt);
|
|
1102
|
+
O(Qt), N(Yt);
|
|
1103
|
+
var $t = S(Yt, 2), en = B($t), tn = B(en, !0);
|
|
1104
|
+
N(en);
|
|
1105
|
+
var nn = S(en);
|
|
1106
|
+
O(nn), N($t);
|
|
1107
|
+
var rn = S($t, 2), an = B(rn), on = B(an, !0);
|
|
1108
|
+
N(an);
|
|
1109
|
+
var sn = S(an);
|
|
1110
|
+
O(sn), N(rn);
|
|
1111
|
+
var cn = S(rn, 2), ln = B(cn), un = B(ln, !0);
|
|
1112
|
+
N(ln);
|
|
1113
|
+
var dn = S(ln);
|
|
1114
|
+
O(dn), N(cn), N(Kt);
|
|
1115
|
+
var fn = S(Kt, 2), pn = B(fn), mn = B(pn, !0);
|
|
1116
|
+
N(pn), N(fn), N(r), p((e) => {
|
|
1117
|
+
_(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), _(re, t.messages.chartLegendBottom), _(X, t.messages.chartLegendTop), _(ie, t.messages.chartLegendLeft), _(oe, t.messages.chartLegendRight), _(ce, t.messages.chartLegendHidden), le !== (le = 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")), _(fe, t.messages.chartBuilderDataLabels), _(me, t.messages.chartBuilderPanelSetting), _(ge, t.messages.chartLabelsTop), _(ve, t.messages.chartLabelsOutside), _(be, t.messages.chartLabelsInside), _(xe, t.messages.chartLabelsCenter), _(Ce, t.messages.chartLabelsHidden), we !== (we = y(u).dataLabels === null ? "none" : y(u).dataLabels ?? "auto") && (Q.value = (Q.__value = y(u).dataLabels === null ? "none" : y(u).dataLabels ?? "auto") ?? "", w(Q, y(u).dataLabels === null ? "none" : y(u).dataLabels ?? "auto")), _(De, t.messages.chartBuilderSeriesLabels), z(Ie, 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);
|
|
1118
|
+
}, [() => 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", Q, (e) => f({ dataLabels: e.currentTarget.value === "auto" ? void 0 : e.currentTarget.value === "none" ? null : e.currentTarget.value })), m("change", Ie, (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);
|
|
1119
|
+
};
|
|
1120
|
+
d(v, (e) => {
|
|
1121
|
+
r() === "type" ? e(C) : r() === "data" ? e(I, 1) : e(L, -1);
|
|
1122
|
+
}), F(e, i);
|
|
1123
|
+
}, r = k(() => [
|
|
1124
|
+
{
|
|
1125
|
+
id: "type",
|
|
1126
|
+
label: t.messages.chartBuilderTabType
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
id: "data",
|
|
1130
|
+
label: t.messages.chartBuilderTabData
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
id: "format",
|
|
1134
|
+
label: t.messages.chartBuilderTabFormat
|
|
1135
|
+
}
|
|
1136
|
+
]);
|
|
1137
|
+
me(I, {
|
|
1138
|
+
get tabs() {
|
|
1139
|
+
return y(r);
|
|
1140
|
+
},
|
|
1141
|
+
get ariaLabel() {
|
|
1142
|
+
return t.messages.chartBuilderTitle;
|
|
1143
|
+
},
|
|
1144
|
+
get value() {
|
|
1145
|
+
return y(i);
|
|
1146
|
+
},
|
|
1147
|
+
set value(e) {
|
|
1148
|
+
C(i, e, !0);
|
|
1149
|
+
},
|
|
1150
|
+
panel: e,
|
|
1151
|
+
$$slots: { panel: !0 }
|
|
1152
|
+
});
|
|
1153
|
+
}
|
|
1154
|
+
N(v), F(e, v);
|
|
1155
|
+
},
|
|
1156
|
+
$$slots: { default: !0 }
|
|
1157
|
+
}), te();
|
|
1158
|
+
}
|
|
1159
|
+
f([
|
|
1160
|
+
"click",
|
|
1161
|
+
"change",
|
|
1162
|
+
"input"
|
|
1163
|
+
]);
|
|
1164
|
+
//#endregion
|
|
1165
|
+
export { Le as default };
|