@svgrid/grid-wc 3.0.7 → 3.0.9
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/dist/GridMenus-BsOHO9kc.js +1086 -0
- package/dist/{SvChartMenu-DkSyLWYH.js → SvChartMenu-CwWtjXsG.js} +153 -153
- package/dist/{shadow/SvDateRangeInput-BrYTQEMM.js → SvDateRangeInput-DtKZ07aC.js} +88 -88
- package/dist/SvDateTimePicker-C37mOYov.js +766 -0
- package/dist/{SvField-Bmzp3ObZ.js → SvField-CpglDJLn.js} +107 -107
- package/dist/SvGridCellEditor-C2t-q8n3.js +560 -0
- package/dist/{SvGridChart-BSNYAW_W.js → SvGridChart-Bj2Pr2u9.js} +1522 -1522
- package/dist/{SvGridChartBuilder-DDl_Bv8k.js → SvGridChartBuilder-Dpw2X4pR.js} +418 -418
- package/dist/{shadow/SvGridChartPanel-DkIR-3rA.js → SvGridChartPanel-Ce78cR3g.js} +642 -642
- package/dist/{SvGridChartView-B4pqLWnm.js → SvGridChartView-CTfjtiXs.js} +11 -11
- package/dist/SvGridDropdown-CfA5Jfe5.js +257 -0
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +4 -2
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
- package/dist/angular/types/svgrid-grid-wc-angular.d.ts +2 -1
- package/dist/{chart-export-pdf-hJVuR7_z.js → chart-export-pdf-Bc0Rz4kB.js} +1 -1
- package/dist/{shadow/client-DEF0GRjE.js → client-wYhMjrKG.js} +172 -161
- package/dist/{date-format-DMTwV8NC.js → date-format-SCGd8EWh.js} +363 -363
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +1 -1
- package/dist/shadow/GridMenus-BsOHO9kc.js +1086 -0
- package/dist/shadow/{SvChartMenu-DkSyLWYH.js → SvChartMenu-CwWtjXsG.js} +153 -153
- package/dist/{SvDateRangeInput-BrYTQEMM.js → shadow/SvDateRangeInput-DtKZ07aC.js} +88 -88
- package/dist/shadow/SvDateTimePicker-C37mOYov.js +766 -0
- package/dist/shadow/{SvField-Bmzp3ObZ.js → SvField-CpglDJLn.js} +107 -107
- package/dist/shadow/SvGridCellEditor-C2t-q8n3.js +560 -0
- package/dist/shadow/{SvGridChart-BSNYAW_W.js → SvGridChart-Bj2Pr2u9.js} +1522 -1522
- package/dist/shadow/{SvGridChartBuilder-DDl_Bv8k.js → SvGridChartBuilder-Dpw2X4pR.js} +418 -418
- package/dist/{SvGridChartPanel-DkIR-3rA.js → shadow/SvGridChartPanel-Ce78cR3g.js} +642 -642
- package/dist/shadow/{SvGridChartView-B4pqLWnm.js → SvGridChartView-CTfjtiXs.js} +11 -11
- package/dist/shadow/SvGridDropdown-CfA5Jfe5.js +257 -0
- package/dist/shadow/{chart-export-pdf-hJVuR7_z.js → chart-export-pdf-Bc0Rz4kB.js} +1 -1
- package/dist/{client-DEF0GRjE.js → shadow/client-wYhMjrKG.js} +172 -161
- package/dist/shadow/{date-format-DMTwV8NC.js → date-format-SCGd8EWh.js} +363 -363
- package/dist/shadow/sv-grid-shadow-element.d.ts +2 -0
- package/dist/shadow/sv-grid-shadow-element.js +4429 -3986
- package/dist/shadow/{svelte-virtualizer.svelte-CMX34S17.js → svelte-virtualizer.svelte-BGip4kwG.js} +106 -59
- package/dist/shadow/{validate-JAuMsk6Z.js → validate-43C03DLP.js} +1 -1
- package/dist/sv-grid-element.d.ts +2 -0
- package/dist/sv-grid-element.js +4414 -3971
- package/dist/{svelte-virtualizer.svelte-CMX34S17.js → svelte-virtualizer.svelte-BGip4kwG.js} +106 -59
- package/dist/{validate-JAuMsk6Z.js → validate-43C03DLP.js} +1 -1
- package/dist/vue/index.d.ts +2 -1
- package/dist/vue/index.js +1 -1
- package/package.json +3 -3
- package/dist/GridMenus-Nf04Zcl5.js +0 -1086
- package/dist/SvDateTimePicker-Czin1Ead.js +0 -766
- package/dist/SvGridCellEditor-BTbDEgpe.js +0 -560
- package/dist/SvGridDropdown-BwPpGwLz.js +0 -257
- package/dist/shadow/GridMenus-Nf04Zcl5.js +0 -1086
- package/dist/shadow/SvDateTimePicker-Czin1Ead.js +0 -766
- package/dist/shadow/SvGridCellEditor-BTbDEgpe.js +0 -560
- package/dist/shadow/SvGridDropdown-BwPpGwLz.js +0 -257
|
@@ -1,12 +1,12 @@
|
|
|
1
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
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-nwSa4jQe.js";
|
|
3
|
-
import { $ as c, A as l, D as u,
|
|
3
|
+
import { $ as c, A as l, D as u, I as d, J as f, L as p, M as m, O as h, Q as g, R as _, U as v, W as y, X as b, Y as x, Z as S, _ as C, a as w, at as T, c as E, d as D, et as ee, f as O, g as k, h as A, j, k as M, l as N, n as P, nt as F, o as I, ot as L, p as R, rt as te, tt as z, u as B, w as V, x as H, y as ne, z as U } from "./client-wYhMjrKG.js";
|
|
4
4
|
import { i as W } from "./editor-contract-peBDxir_.js";
|
|
5
5
|
import { r as G } from "./popover-WsGlvtQv.js";
|
|
6
6
|
import { t as K } from "./dismissable-CQ6XFXsk.js";
|
|
7
7
|
import { n as q, t as J } from "./focus-trap-Dbb2tJxb.js";
|
|
8
|
-
import { t as Y } from "./SvGridChart-
|
|
9
|
-
import { n as X, t as Z } from "./SvGridChartPanel-
|
|
8
|
+
import { t as Y } from "./SvGridChart-Bj2Pr2u9.js";
|
|
9
|
+
import { n as X, t as Z } from "./SvGridChartPanel-Ce78cR3g.js";
|
|
10
10
|
//#region ../grid/dist/a11y/scroll-lock.js
|
|
11
11
|
var Q = 0, re = "", $ = "";
|
|
12
12
|
function ie() {
|
|
@@ -30,7 +30,7 @@ function ie() {
|
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region ../grid/dist/createOverlay.svelte.js
|
|
32
32
|
function ae(e) {
|
|
33
|
-
return
|
|
33
|
+
return y(() => {
|
|
34
34
|
if (!e.open() || !e.getDialog()) return;
|
|
35
35
|
e.onOpen?.();
|
|
36
36
|
let t = e.getDialog(), n = e.trapFocus?.() ?? !0 ? J(t, e.initialFocus ? { initialFocus: e.initialFocus } : void 0) : null;
|
|
@@ -56,8 +56,8 @@ function ae(e) {
|
|
|
56
56
|
//#region ../grid/dist/createTabs.svelte.js
|
|
57
57
|
var oe = 0;
|
|
58
58
|
function se(e) {
|
|
59
|
-
let t = `sv-tabs-${oe++}`, n = () => e.tabs(), r = () => e.orientation?.() ?? "horizontal", i = () => e.activation?.() ?? "automatic", a =
|
|
60
|
-
|
|
59
|
+
let t = `sv-tabs-${oe++}`, n = () => e.tabs(), r = () => e.orientation?.() ?? "horizontal", i = () => e.activation?.() ?? "automatic", a = z(() => n().filter((e) => !e.disabled)), o = z(() => e.value() ?? n().find((e) => !e.disabled)?.id ?? n()[0]?.id ?? ""), s = c(""), l = c(0), u = (e) => {
|
|
60
|
+
g(s, e, !0), ee(l);
|
|
61
61
|
}, d = (e) => `${t}-tab-${e}`, f = (e) => `${t}-panel-${e}`;
|
|
62
62
|
function p(t) {
|
|
63
63
|
let r = n().find((e) => e.id === t);
|
|
@@ -67,33 +67,33 @@ function se(e) {
|
|
|
67
67
|
n().find((e) => e.id === t)?.closable && e.onClose?.(t);
|
|
68
68
|
}
|
|
69
69
|
function h(t) {
|
|
70
|
-
let n =
|
|
70
|
+
let n = U(a);
|
|
71
71
|
if (!n.length) return;
|
|
72
|
-
let s = n.findIndex((e) => e.id ===
|
|
72
|
+
let s = n.findIndex((e) => e.id === U(o)), c = r() === "horizontal", l = c && e.dir?.() === "rtl", d = c ? l ? "ArrowLeft" : "ArrowRight" : "ArrowDown", f = c ? l ? "ArrowRight" : "ArrowLeft" : "ArrowUp", h = null;
|
|
73
73
|
if (t.key === d) h = n[(s + 1) % n.length]?.id ?? null;
|
|
74
74
|
else if (t.key === f) h = n[(s - 1 + n.length) % n.length]?.id ?? null;
|
|
75
75
|
else if (t.key === "Home") h = n[0]?.id ?? null;
|
|
76
76
|
else if (t.key === "End") h = n.at(-1)?.id ?? null;
|
|
77
77
|
else if ((t.key === "Enter" || t.key === " ") && i() === "manual") {
|
|
78
|
-
t.preventDefault(), p(
|
|
78
|
+
t.preventDefault(), p(U(o));
|
|
79
79
|
return;
|
|
80
80
|
} else if (t.key === "Delete") {
|
|
81
|
-
t.preventDefault(), m(
|
|
81
|
+
t.preventDefault(), m(U(o));
|
|
82
82
|
return;
|
|
83
83
|
} else return;
|
|
84
84
|
h && (t.preventDefault(), u(h), i() === "automatic" && p(h));
|
|
85
85
|
}
|
|
86
86
|
return {
|
|
87
87
|
get activeId() {
|
|
88
|
-
return
|
|
88
|
+
return U(o);
|
|
89
89
|
},
|
|
90
90
|
get focusId() {
|
|
91
|
-
return
|
|
91
|
+
return U(s);
|
|
92
92
|
},
|
|
93
93
|
get focusTick() {
|
|
94
|
-
return
|
|
94
|
+
return U(l);
|
|
95
95
|
},
|
|
96
|
-
isActive: (e) => e ===
|
|
96
|
+
isActive: (e) => e === U(o),
|
|
97
97
|
select: p,
|
|
98
98
|
close: m,
|
|
99
99
|
onKeydown: h,
|
|
@@ -103,7 +103,7 @@ function se(e) {
|
|
|
103
103
|
"aria-label": e.ariaLabel?.()
|
|
104
104
|
}),
|
|
105
105
|
tabProps: (e) => {
|
|
106
|
-
let t = n().find((t) => t.id === e), r = e ===
|
|
106
|
+
let t = n().find((t) => t.id === e), r = e === U(o);
|
|
107
107
|
return {
|
|
108
108
|
role: "tab",
|
|
109
109
|
id: d(e),
|
|
@@ -126,181 +126,181 @@ function se(e) {
|
|
|
126
126
|
}
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region ../grid/dist/SvTabs.svelte
|
|
129
|
-
var ce =
|
|
129
|
+
var ce = m("<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 = m("<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 = m("<span role=\"presentation\"><button> </button> <!></span>"), de = m("<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 = m("<div><!></div>"), pe = m("<div><div class=\"sv-tabs__strip svelte-13z0l57\"><!> <div></div> <!></div> <!></div>");
|
|
130
130
|
function me(e, t) {
|
|
131
|
-
|
|
132
|
-
let n =
|
|
133
|
-
function
|
|
134
|
-
W && (
|
|
131
|
+
te(t, !0);
|
|
132
|
+
let n = P(t, "value", 15), r = P(t, "variant", 3, "line"), i = P(t, "activation", 3, "automatic"), a = P(t, "reorderable", 3, !1), o = z(() => t.tabPosition ?? (t.orientation === "vertical" ? "left" : "top")), s = z(() => U(o) === "left" || U(o) === "right" ? "vertical" : "horizontal"), d = z(() => t.dir === "ltr" || t.dir === "rtl" ? t.dir : void 0), m = c(0), x = c(0), S = c(0), C = z(() => U(s) === "horizontal" && U(S) > U(x) + 1), D = z(() => U(m) <= 1), ee = z(() => U(m) + U(x) >= U(S) - 1);
|
|
133
|
+
function k() {
|
|
134
|
+
W && (g(x, W.clientWidth, !0), g(S, W.scrollWidth, !0), g(m, W.scrollLeft, !0));
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
t.tabs.length, queueMicrotask(
|
|
138
|
-
}),
|
|
139
|
-
let e = () =>
|
|
136
|
+
y(() => {
|
|
137
|
+
t.tabs.length, queueMicrotask(k);
|
|
138
|
+
}), y(() => {
|
|
139
|
+
let e = () => k();
|
|
140
140
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
141
141
|
});
|
|
142
|
-
function
|
|
142
|
+
function A(e) {
|
|
143
143
|
W?.scrollBy({
|
|
144
|
-
left: e * Math.max(120,
|
|
144
|
+
left: e * Math.max(120, U(x) * .7),
|
|
145
145
|
behavior: "smooth"
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
let
|
|
149
|
-
function
|
|
148
|
+
let j = c(null), N = c(null);
|
|
149
|
+
function L(e, n) {
|
|
150
150
|
if (e === n) return;
|
|
151
151
|
let r = t.tabs.map((e) => e.id), i = r.indexOf(e), a = r.indexOf(n);
|
|
152
152
|
i < 0 || a < 0 || (r.splice(a, 0, r.splice(i, 1)[0]), t.onReorder?.(r));
|
|
153
153
|
}
|
|
154
|
-
let
|
|
154
|
+
let R = se({
|
|
155
155
|
tabs: () => t.tabs,
|
|
156
156
|
value: () => n(),
|
|
157
157
|
onChange: (e) => {
|
|
158
158
|
n(e), t.onChange?.(e);
|
|
159
159
|
},
|
|
160
160
|
onClose: (e) => t.onClose?.(e),
|
|
161
|
-
orientation: () =>
|
|
161
|
+
orientation: () => U(s),
|
|
162
162
|
activation: () => i(),
|
|
163
163
|
dir: () => t.dir,
|
|
164
164
|
ariaLabel: () => t.ariaLabel
|
|
165
|
-
}),
|
|
166
|
-
|
|
167
|
-
if (
|
|
168
|
-
G =
|
|
169
|
-
let e =
|
|
165
|
+
}), H = z(() => R.activeId), W = null, G = 0;
|
|
166
|
+
y(() => {
|
|
167
|
+
if (R.focusTick !== G) {
|
|
168
|
+
G = R.focusTick;
|
|
169
|
+
let e = R.focusId;
|
|
170
170
|
queueMicrotask(() => W?.querySelector(`[data-tab="${e}"]`)?.focus());
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
|
-
var K = pe(), q =
|
|
173
|
+
var K = pe(), q = f(K), J = f(q), Y = (e) => {
|
|
174
174
|
var t = ce();
|
|
175
|
-
|
|
175
|
+
v(() => t.disabled = U(D)), p("click", t, () => A(-1)), l(e, t);
|
|
176
176
|
};
|
|
177
|
-
|
|
178
|
-
|
|
177
|
+
u(J, (e) => {
|
|
178
|
+
U(C) && e(Y);
|
|
179
179
|
});
|
|
180
|
-
var X =
|
|
181
|
-
|
|
180
|
+
var X = b(J, 2), Z = (e) => g(m, e.currentTarget.scrollLeft, !0);
|
|
181
|
+
B(X, (e) => ({
|
|
182
182
|
class: "sv-tabs__list",
|
|
183
183
|
onscroll: Z,
|
|
184
184
|
...e
|
|
185
|
-
}), [() =>
|
|
185
|
+
}), [() => R.tablistProps()], void 0, void 0, "svelte-13z0l57"), V(X, 21, () => t.tabs, (e) => e.id, (e, t) => {
|
|
186
186
|
var n = ue();
|
|
187
187
|
let r;
|
|
188
|
-
var i =
|
|
189
|
-
|
|
188
|
+
var i = f(n);
|
|
189
|
+
B(i, (e) => ({
|
|
190
190
|
type: "button",
|
|
191
191
|
class: "sv-tabs__tab",
|
|
192
192
|
...e,
|
|
193
|
-
[
|
|
194
|
-
}), [() =>
|
|
195
|
-
var o =
|
|
196
|
-
|
|
197
|
-
var s =
|
|
193
|
+
[E]: { "is-active": U(t).id === U(H) }
|
|
194
|
+
}), [() => R.tabProps(U(t).id)], void 0, void 0, "svelte-13z0l57");
|
|
195
|
+
var o = f(i, !0);
|
|
196
|
+
T(i);
|
|
197
|
+
var s = b(i, 2), c = (e) => {
|
|
198
198
|
var n = le();
|
|
199
|
-
|
|
200
|
-
e.stopPropagation(),
|
|
201
|
-
}),
|
|
199
|
+
v(() => O(n, "aria-label", `Close ${U(t).label}`)), p("click", n, (e) => {
|
|
200
|
+
e.stopPropagation(), R.close(U(t).id);
|
|
201
|
+
}), l(e, n);
|
|
202
202
|
};
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}),
|
|
203
|
+
u(s, (e) => {
|
|
204
|
+
U(t).closable && e(c);
|
|
205
|
+
}), T(n), v(() => {
|
|
206
206
|
r = ne(n, 1, "sv-tabs__tabwrap svelte-13z0l57", null, r, {
|
|
207
|
-
"is-active":
|
|
208
|
-
"is-closable":
|
|
209
|
-
"is-drag":
|
|
210
|
-
"is-over":
|
|
211
|
-
}),
|
|
212
|
-
}),
|
|
207
|
+
"is-active": U(t).id === U(H),
|
|
208
|
+
"is-closable": U(t).closable,
|
|
209
|
+
"is-drag": U(j) === U(t).id,
|
|
210
|
+
"is-over": U(N) === U(t).id
|
|
211
|
+
}), O(n, "draggable", a() && !U(t).disabled), M(o, U(t).label);
|
|
212
|
+
}), _("dragstart", n, function(...e) {
|
|
213
213
|
(a() ? (e) => {
|
|
214
|
-
|
|
214
|
+
g(j, U(t).id, !0), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
215
215
|
} : void 0)?.apply(this, e);
|
|
216
|
-
}),
|
|
216
|
+
}), _("dragover", n, function(...e) {
|
|
217
217
|
(a() ? (e) => {
|
|
218
|
-
e.preventDefault(),
|
|
218
|
+
e.preventDefault(), g(N, U(t).id, !0);
|
|
219
219
|
} : void 0)?.apply(this, e);
|
|
220
|
-
}),
|
|
220
|
+
}), _("dragleave", n, function(...e) {
|
|
221
221
|
(a() ? () => {
|
|
222
|
-
|
|
222
|
+
U(N) === U(t).id && g(N, null);
|
|
223
223
|
} : void 0)?.apply(this, e);
|
|
224
|
-
}),
|
|
224
|
+
}), _("drop", n, function(...e) {
|
|
225
225
|
(a() ? (e) => {
|
|
226
|
-
e.preventDefault(),
|
|
226
|
+
e.preventDefault(), U(j) && L(U(j), U(t).id), g(j, null), g(N, null);
|
|
227
227
|
} : void 0)?.apply(this, e);
|
|
228
|
-
}),
|
|
228
|
+
}), _("dragend", n, function(...e) {
|
|
229
229
|
(a() ? () => {
|
|
230
|
-
|
|
230
|
+
g(j, null), g(N, null);
|
|
231
231
|
} : void 0)?.apply(this, e);
|
|
232
|
-
}),
|
|
233
|
-
}),
|
|
234
|
-
var Q =
|
|
232
|
+
}), l(e, n);
|
|
233
|
+
}), T(X), w(X, (e) => W = e, () => W);
|
|
234
|
+
var Q = b(X, 2), re = (e) => {
|
|
235
235
|
var t = de();
|
|
236
|
-
|
|
236
|
+
v(() => t.disabled = U(ee)), p("click", t, () => A(1)), l(e, t);
|
|
237
237
|
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}),
|
|
241
|
-
var $ =
|
|
238
|
+
u(Q, (e) => {
|
|
239
|
+
U(C) && e(re);
|
|
240
|
+
}), T(q);
|
|
241
|
+
var $ = b(q, 2), ie = (e) => {
|
|
242
242
|
var n = fe();
|
|
243
|
-
|
|
243
|
+
B(n, (e) => ({
|
|
244
244
|
class: "sv-tabs__panel",
|
|
245
245
|
...e
|
|
246
|
-
}), [() =>
|
|
247
|
-
var r =
|
|
248
|
-
|
|
246
|
+
}), [() => R.panelProps(U(H))], void 0, void 0, "svelte-13z0l57");
|
|
247
|
+
var r = f(n);
|
|
248
|
+
h(r, () => t.panel, () => U(H)), T(n), l(e, n);
|
|
249
249
|
};
|
|
250
|
-
|
|
250
|
+
u($, (e) => {
|
|
251
251
|
t.panel && e(ie);
|
|
252
|
-
}),
|
|
253
|
-
ne(K, 1, `sv-tabs sv-tabs--${
|
|
254
|
-
}),
|
|
252
|
+
}), T(K), v(() => {
|
|
253
|
+
ne(K, 1, `sv-tabs sv-tabs--${U(o) ?? ""} sv-tabs--${U(s) ?? ""} sv-tabs--${r() ?? ""}`, "svelte-13z0l57"), O(K, "dir", U(d)), K.dir = K.dir;
|
|
254
|
+
}), I(X, "clientWidth", (e) => g(x, e)), l(e, K), F();
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
d(["click"]);
|
|
257
257
|
//#endregion
|
|
258
258
|
//#region ../grid/dist/SvModal.svelte
|
|
259
|
-
var he =
|
|
259
|
+
var he = m("<button type=\"button\" class=\"sv-modal__x\" aria-label=\"Close\">×</button>"), ge = m("<div><h2 class=\"sv-modal__title\"> </h2> <!></div>"), _e = m("<div class=\"sv-modal__footer\"><!></div>"), ve = m("<div class=\"sv-modal__resize\" aria-hidden=\"true\"></div>"), ye = m("<div class=\"sv-modal__backdrop\"><div><!> <div class=\"sv-modal__body\"><!></div> <!> <!></div></div>");
|
|
260
260
|
function be(e, t) {
|
|
261
|
-
|
|
262
|
-
let n =
|
|
261
|
+
te(t, !0);
|
|
262
|
+
let n = P(t, "open", 15, !1), r = P(t, "size", 3, "md"), i = P(t, "draggable", 3, !1), a = P(t, "resizable", 3, !1), o = P(t, "closeOnBackdrop", 3, !0), s = P(t, "closeOnEsc", 3, !0), d = P(t, "hideClose", 3, !1), m = W("sv-modal-title"), y = c(null), C = c(S({
|
|
263
263
|
x: 0,
|
|
264
264
|
y: 0
|
|
265
|
-
})),
|
|
266
|
-
function
|
|
265
|
+
})), D = c(null);
|
|
266
|
+
function ee() {
|
|
267
267
|
n(!1), t.onClose?.();
|
|
268
268
|
}
|
|
269
|
-
let
|
|
269
|
+
let k = ae({
|
|
270
270
|
open: () => n(),
|
|
271
|
-
getDialog: () => y
|
|
272
|
-
onClose:
|
|
271
|
+
getDialog: () => U(y),
|
|
272
|
+
onClose: ee,
|
|
273
273
|
closeOnEsc: () => s(),
|
|
274
274
|
closeOnBackdrop: () => o(),
|
|
275
275
|
onOpen: () => {
|
|
276
|
-
C
|
|
276
|
+
g(C, {
|
|
277
277
|
x: 0,
|
|
278
278
|
y: 0
|
|
279
|
-
}, !0),
|
|
279
|
+
}, !0), g(D, null);
|
|
280
280
|
},
|
|
281
|
-
initialFocus: () => t.initialFocus?.() || (y
|
|
282
|
-
}),
|
|
281
|
+
initialFocus: () => t.initialFocus?.() || (U(y) ? q(U(y)).find((e) => !e.closest(".sv-modal__header")) ?? U(y) : null)
|
|
282
|
+
}), A = !1, I = {
|
|
283
283
|
x: 0,
|
|
284
284
|
y: 0,
|
|
285
285
|
ox: 0,
|
|
286
286
|
oy: 0
|
|
287
287
|
};
|
|
288
288
|
function R(e) {
|
|
289
|
-
!i() || e.target.closest(".sv-modal__x") || (
|
|
289
|
+
!i() || e.target.closest(".sv-modal__x") || (A = !0, I = {
|
|
290
290
|
x: e.clientX,
|
|
291
291
|
y: e.clientY,
|
|
292
|
-
ox:
|
|
293
|
-
oy:
|
|
292
|
+
ox: U(C).x,
|
|
293
|
+
oy: U(C).y
|
|
294
294
|
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
295
295
|
}
|
|
296
296
|
function z(e) {
|
|
297
|
-
|
|
298
|
-
x:
|
|
299
|
-
y:
|
|
297
|
+
A && g(C, {
|
|
298
|
+
x: I.ox + (e.clientX - I.x),
|
|
299
|
+
y: I.oy + (e.clientY - I.y)
|
|
300
300
|
}, !0);
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
|
|
302
|
+
function V(e) {
|
|
303
|
+
A && (A = !1, e.currentTarget.releasePointerCapture(e.pointerId));
|
|
304
304
|
}
|
|
305
305
|
let K = !1, J = {
|
|
306
306
|
x: 0,
|
|
@@ -309,21 +309,21 @@ function be(e, t) {
|
|
|
309
309
|
h: 0
|
|
310
310
|
};
|
|
311
311
|
function Y(e) {
|
|
312
|
-
if (!a() || !y
|
|
312
|
+
if (!a() || !U(y)) return;
|
|
313
313
|
e.stopPropagation(), K = !0;
|
|
314
|
-
let t = y
|
|
314
|
+
let t = U(y).getBoundingClientRect();
|
|
315
315
|
J = {
|
|
316
316
|
x: e.clientX,
|
|
317
317
|
y: e.clientY,
|
|
318
318
|
w: t.width,
|
|
319
319
|
h: t.height
|
|
320
|
-
},
|
|
320
|
+
}, g(D, {
|
|
321
321
|
w: t.width,
|
|
322
322
|
h: t.height
|
|
323
323
|
}, !0), e.currentTarget.setPointerCapture(e.pointerId);
|
|
324
324
|
}
|
|
325
325
|
function X(e) {
|
|
326
|
-
K &&
|
|
326
|
+
K && g(D, {
|
|
327
327
|
w: Math.max(240, J.w + (e.clientX - J.x)),
|
|
328
328
|
h: Math.max(160, J.h + (e.clientY - J.y))
|
|
329
329
|
}, !0);
|
|
@@ -331,58 +331,58 @@ function be(e, t) {
|
|
|
331
331
|
function Z(e) {
|
|
332
332
|
K && (K = !1, e.currentTarget.releasePointerCapture(e.pointerId));
|
|
333
333
|
}
|
|
334
|
-
var Q =
|
|
335
|
-
var n = ye(), o =
|
|
336
|
-
|
|
334
|
+
var Q = j(), re = x(Q), $ = (e) => {
|
|
335
|
+
var n = ye(), o = f(n);
|
|
336
|
+
B(o, (e) => ({
|
|
337
337
|
class: `sv-modal sv-modal--${r() ?? ""}`,
|
|
338
338
|
...e,
|
|
339
|
-
[
|
|
340
|
-
[
|
|
341
|
-
transform: `translate(calc(-50% + ${
|
|
342
|
-
width:
|
|
343
|
-
height:
|
|
339
|
+
[E]: { "is-resized": !!U(D) },
|
|
340
|
+
[N]: {
|
|
341
|
+
transform: `translate(calc(-50% + ${U(C).x}px), calc(-50% + ${U(C).y}px))`,
|
|
342
|
+
width: U(D) ? `${U(D).w}px` : t.width ? `${t.width}px` : void 0,
|
|
343
|
+
height: U(D) ? `${U(D).h}px` : void 0
|
|
344
344
|
}
|
|
345
|
-
}), [() =>
|
|
346
|
-
var s =
|
|
345
|
+
}), [() => k.dialogProps({ labelledBy: t.title ? m : void 0 })]);
|
|
346
|
+
var s = f(o), c = (e) => {
|
|
347
347
|
var n = ge();
|
|
348
348
|
let r;
|
|
349
|
-
var a =
|
|
350
|
-
|
|
351
|
-
var s =
|
|
349
|
+
var a = f(n), o = f(a, !0);
|
|
350
|
+
T(a);
|
|
351
|
+
var s = b(a, 2), c = (e) => {
|
|
352
352
|
var t = he();
|
|
353
|
-
|
|
353
|
+
p("click", t, ee), l(e, t);
|
|
354
354
|
};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}),
|
|
358
|
-
r = ne(n, 1, "sv-modal__header", null, r, { "is-draggable": i() }),
|
|
359
|
-
}),
|
|
355
|
+
u(s, (e) => {
|
|
356
|
+
d() || e(c);
|
|
357
|
+
}), T(n), v(() => {
|
|
358
|
+
r = ne(n, 1, "sv-modal__header", null, r, { "is-draggable": i() }), O(a, "id", m), M(o, t.title ?? "");
|
|
359
|
+
}), p("pointerdown", n, R), p("pointermove", n, z), p("pointerup", n, V), _("pointercancel", n, V), l(e, n);
|
|
360
360
|
};
|
|
361
|
-
|
|
362
|
-
(t.title || !
|
|
361
|
+
u(s, (e) => {
|
|
362
|
+
(t.title || !d()) && e(c);
|
|
363
363
|
});
|
|
364
|
-
var
|
|
365
|
-
|
|
366
|
-
var
|
|
367
|
-
var n = _e(), r =
|
|
368
|
-
|
|
364
|
+
var x = b(s, 2), S = f(x);
|
|
365
|
+
h(S, () => t.children ?? L), T(x);
|
|
366
|
+
var A = b(x, 2), j = (e) => {
|
|
367
|
+
var n = _e(), r = f(n);
|
|
368
|
+
h(r, () => t.footer), T(n), l(e, n);
|
|
369
369
|
};
|
|
370
|
-
|
|
371
|
-
t.footer && e(
|
|
370
|
+
u(A, (e) => {
|
|
371
|
+
t.footer && e(j);
|
|
372
372
|
});
|
|
373
|
-
var P =
|
|
373
|
+
var P = b(A, 2), F = (e) => {
|
|
374
374
|
var t = ve();
|
|
375
|
-
|
|
375
|
+
p("pointerdown", t, Y), p("pointermove", t, X), p("pointerup", t, Z), _("pointercancel", t, Z), l(e, t);
|
|
376
376
|
};
|
|
377
|
-
|
|
378
|
-
a() && e(
|
|
379
|
-
}),
|
|
377
|
+
u(P, (e) => {
|
|
378
|
+
a() && e(F);
|
|
379
|
+
}), T(o), w(o, (e) => g(y, e), () => U(y)), T(n), H(n, (e) => G?.(e)), l(e, n);
|
|
380
380
|
};
|
|
381
|
-
|
|
381
|
+
u(re, (e) => {
|
|
382
382
|
n() && e($);
|
|
383
|
-
}),
|
|
383
|
+
}), l(e, Q), F();
|
|
384
384
|
}
|
|
385
|
-
|
|
385
|
+
d([
|
|
386
386
|
"pointerdown",
|
|
387
387
|
"pointermove",
|
|
388
388
|
"pointerup",
|
|
@@ -771,45 +771,45 @@ function we(e, t, n = 150, r = 92) {
|
|
|
771
771
|
}
|
|
772
772
|
//#endregion
|
|
773
773
|
//#region ../grid/dist/SvGridChartBuilder.svelte
|
|
774
|
-
var Te =
|
|
774
|
+
var Te = m("<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 = m("<div class=\"sv-grid-chart-builder-group svelte-1yr3emi\"> </div> <div class=\"sv-grid-chart-builder-cards svelte-1yr3emi\"></div>", 1), De = m("<div class=\"sv-grid-chart-builder-gallery\"></div>"), Oe = m("<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 = m("<option> </option>"), Ae = m("<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 = m("<span> </span>"), Me = m("<option> </option>"), Ne = m("<input type=\"text\" class=\"svelte-1yr3emi\"/>"), Pe = m("<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 = m("<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 = m("<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 = m("<div class=\"sv-grid-chart-builder svelte-1yr3emi\"><!></div>");
|
|
775
775
|
function Re(e, t) {
|
|
776
|
-
|
|
777
|
-
let n =
|
|
778
|
-
function
|
|
776
|
+
te(t, !0);
|
|
777
|
+
let n = P(t, "ctrl", 7), r = P(t, "open", 15, !1), i = c("type"), a = z(() => [...new Set(t.types.map((e) => e.group))]), o = z(() => n().chartSpec), s = z(() => n().chartPalette ?? void 0), d = z(() => U(o)?.series.map((e) => e.label) ?? []), m = z(() => n().chartFormat ?? {});
|
|
778
|
+
function h(e) {
|
|
779
779
|
n().chartFormat = {
|
|
780
|
-
...
|
|
780
|
+
...U(m),
|
|
781
781
|
...e
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
|
|
786
|
-
...
|
|
784
|
+
function _(e, t) {
|
|
785
|
+
h({ [e]: {
|
|
786
|
+
...U(m)[e] ?? {},
|
|
787
787
|
...t
|
|
788
788
|
} });
|
|
789
789
|
}
|
|
790
|
-
function
|
|
791
|
-
|
|
792
|
-
...
|
|
790
|
+
function y(e, t) {
|
|
791
|
+
h({ series: {
|
|
792
|
+
...U(m).series ?? {},
|
|
793
793
|
[e]: {
|
|
794
|
-
...
|
|
794
|
+
...U(m).series?.[e] ?? {},
|
|
795
795
|
...t
|
|
796
796
|
}
|
|
797
797
|
} });
|
|
798
798
|
}
|
|
799
|
-
function
|
|
800
|
-
|
|
801
|
-
...
|
|
799
|
+
function S(e) {
|
|
800
|
+
h({ style: {
|
|
801
|
+
...U(m).style ?? {},
|
|
802
802
|
...e
|
|
803
803
|
} });
|
|
804
804
|
}
|
|
805
|
-
let
|
|
805
|
+
let w = (e) => e.trim() === "" ? null : Number(e), E = z(() => !!U(o)?.series.some((e) => e.axis === "right") || !!U(m).series && Object.values(U(m).series).some((e) => e?.axis === "right")), ee = z(() => !!U(o) && ["bar", "area"].includes(U(o).type)), N = [
|
|
806
806
|
"circle",
|
|
807
807
|
"square",
|
|
808
808
|
"diamond",
|
|
809
809
|
"triangle",
|
|
810
810
|
"cross",
|
|
811
811
|
"none"
|
|
812
|
-
],
|
|
812
|
+
], I = [
|
|
813
813
|
"number",
|
|
814
814
|
"currency",
|
|
815
815
|
"percent",
|
|
@@ -827,24 +827,24 @@ function Re(e, t) {
|
|
|
827
827
|
r(e);
|
|
828
828
|
},
|
|
829
829
|
children: (e, r) => {
|
|
830
|
-
var
|
|
830
|
+
var c = Le(), P = f(c);
|
|
831
831
|
{
|
|
832
|
-
let e = (e, r =
|
|
833
|
-
var i =
|
|
832
|
+
let e = (e, r = L) => {
|
|
833
|
+
var i = j(), c = x(i), g = (e) => {
|
|
834
834
|
var r = De();
|
|
835
|
-
|
|
836
|
-
var i = Ee(), a =
|
|
837
|
-
|
|
838
|
-
var c =
|
|
839
|
-
|
|
835
|
+
V(r, 20, () => U(a), (e) => e, (e, r) => {
|
|
836
|
+
var i = Ee(), a = x(i), o = f(a, !0);
|
|
837
|
+
T(a);
|
|
838
|
+
var c = b(a, 2);
|
|
839
|
+
V(c, 21, () => t.types.filter((e) => e.group === r), (e) => e.value, (e, t) => {
|
|
840
840
|
var r = Te();
|
|
841
841
|
let i;
|
|
842
|
-
var a =
|
|
842
|
+
var a = f(r), o = f(a);
|
|
843
843
|
{
|
|
844
|
-
let e =
|
|
844
|
+
let e = z(() => we(U(t).value, U(s)));
|
|
845
845
|
Y(o, {
|
|
846
846
|
get spec() {
|
|
847
|
-
return
|
|
847
|
+
return U(e);
|
|
848
848
|
},
|
|
849
849
|
interactive: !1,
|
|
850
850
|
legend: !1,
|
|
@@ -852,15 +852,15 @@ function Re(e, t) {
|
|
|
852
852
|
announce: !1
|
|
853
853
|
});
|
|
854
854
|
}
|
|
855
|
-
|
|
856
|
-
var c =
|
|
857
|
-
|
|
858
|
-
i = ne(r, 1, "sv-grid-chart-builder-card svelte-1yr3emi", null, i, { "is-selected": n().chartType ===
|
|
859
|
-
}),
|
|
860
|
-
}),
|
|
861
|
-
}),
|
|
862
|
-
},
|
|
863
|
-
var r = Oe(), i =
|
|
855
|
+
T(a);
|
|
856
|
+
var c = b(a, 2), u = f(c, !0);
|
|
857
|
+
T(c), T(r), v(() => {
|
|
858
|
+
i = ne(r, 1, "sv-grid-chart-builder-card svelte-1yr3emi", null, i, { "is-selected": n().chartType === U(t).value }), O(r, "aria-pressed", n().chartType === U(t).value), O(r, "title", U(t).label), M(u, U(t).label);
|
|
859
|
+
}), p("click", r, () => n().chartType = U(t).value), l(e, r);
|
|
860
|
+
}), T(c), v(() => M(o, r)), l(e, i);
|
|
861
|
+
}), T(r), l(e, r);
|
|
862
|
+
}, P = (e) => {
|
|
863
|
+
var r = Oe(), i = f(r);
|
|
864
864
|
X(i, {
|
|
865
865
|
get ctrl() {
|
|
866
866
|
return n();
|
|
@@ -870,258 +870,258 @@ function Re(e, t) {
|
|
|
870
870
|
},
|
|
871
871
|
scope: "builder"
|
|
872
872
|
});
|
|
873
|
-
var a =
|
|
874
|
-
|
|
875
|
-
var c =
|
|
876
|
-
|
|
877
|
-
var
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
}, [() => n().chartFrozen ? Z(t.messages.chartBuilderFrozenAt, { time: new Date(n().chartFrozen.at).toLocaleTimeString() }) : t.messages.chartBuilderFollows]),
|
|
881
|
-
},
|
|
882
|
-
var r = Ie(), i =
|
|
883
|
-
|
|
884
|
-
var
|
|
885
|
-
|
|
886
|
-
var
|
|
887
|
-
|
|
888
|
-
var
|
|
889
|
-
|
|
890
|
-
var
|
|
891
|
-
|
|
892
|
-
var
|
|
893
|
-
|
|
894
|
-
var
|
|
895
|
-
|
|
896
|
-
var K =
|
|
897
|
-
|
|
898
|
-
var Y =
|
|
899
|
-
|
|
900
|
-
var Q =
|
|
901
|
-
|
|
902
|
-
var $ =
|
|
903
|
-
|
|
904
|
-
var ae =
|
|
905
|
-
|
|
873
|
+
var a = b(i, 2), o = f(a), s = f(o, !0);
|
|
874
|
+
T(o);
|
|
875
|
+
var c = b(o, 2);
|
|
876
|
+
D(c);
|
|
877
|
+
var u = b(c, 2), d = f(u, !0);
|
|
878
|
+
T(u), T(a), T(r), v((e) => {
|
|
879
|
+
M(s, t.messages.chartBuilderLinked), R(c, !n().chartFrozen), M(d, e);
|
|
880
|
+
}, [() => n().chartFrozen ? Z(t.messages.chartBuilderFrozenAt, { time: new Date(n().chartFrozen.at).toLocaleTimeString() }) : t.messages.chartBuilderFollows]), p("change", c, (e) => e.currentTarget.checked ? n().unfreezeChart() : n().freezeChart()), l(e, r);
|
|
881
|
+
}, F = (e) => {
|
|
882
|
+
var r = Ie(), i = f(r), a = f(i), s = f(a, !0);
|
|
883
|
+
T(a);
|
|
884
|
+
var c = b(a);
|
|
885
|
+
D(c), T(i);
|
|
886
|
+
var g = b(i, 2), x = f(g), j = f(x, !0);
|
|
887
|
+
T(x);
|
|
888
|
+
var P = b(x);
|
|
889
|
+
D(P), T(g);
|
|
890
|
+
var F = b(g, 2), L = f(F), te = f(L, !0);
|
|
891
|
+
T(L);
|
|
892
|
+
var B = b(L);
|
|
893
|
+
D(B), T(F);
|
|
894
|
+
var H = b(F, 2), W = f(H), G = f(W, !0);
|
|
895
|
+
T(W);
|
|
896
|
+
var K = b(W, 2), q = f(K), J = f(q, !0);
|
|
897
|
+
T(q), q.value = q.__value = "bottom";
|
|
898
|
+
var Y = b(q), X = f(Y, !0);
|
|
899
|
+
T(Y), Y.value = Y.__value = "top";
|
|
900
|
+
var Q = b(Y), re = f(Q, !0);
|
|
901
|
+
T(Q), Q.value = Q.__value = "left";
|
|
902
|
+
var $ = b(Q), ie = f($, !0);
|
|
903
|
+
T($), $.value = $.__value = "right";
|
|
904
|
+
var ae = b($), oe = f(ae, !0);
|
|
905
|
+
T(ae), ae.value = ae.__value = "none", T(K);
|
|
906
906
|
var se;
|
|
907
|
-
|
|
908
|
-
var ce =
|
|
909
|
-
|
|
910
|
-
var de =
|
|
911
|
-
|
|
912
|
-
var me =
|
|
913
|
-
|
|
914
|
-
var ge =
|
|
915
|
-
|
|
916
|
-
var ve =
|
|
917
|
-
|
|
918
|
-
var be =
|
|
919
|
-
|
|
920
|
-
var Se =
|
|
921
|
-
|
|
907
|
+
k(K), T(H);
|
|
908
|
+
var ce = b(H, 2), le = f(ce), ue = f(le, !0);
|
|
909
|
+
T(le);
|
|
910
|
+
var de = b(le, 2), fe = f(de), pe = f(fe, !0);
|
|
911
|
+
T(fe), fe.value = fe.__value = "auto";
|
|
912
|
+
var me = b(fe), he = f(me, !0);
|
|
913
|
+
T(me), me.value = me.__value = "top";
|
|
914
|
+
var ge = b(me), _e = f(ge, !0);
|
|
915
|
+
T(ge), ge.value = ge.__value = "outside";
|
|
916
|
+
var ve = b(ge), ye = f(ve, !0);
|
|
917
|
+
T(ve), ve.value = ve.__value = "inside";
|
|
918
|
+
var be = b(ve), xe = f(be, !0);
|
|
919
|
+
T(be), be.value = be.__value = "center";
|
|
920
|
+
var Se = b(be), Ce = f(Se, !0);
|
|
921
|
+
T(Se), Se.value = Se.__value = "none", T(de);
|
|
922
922
|
var we;
|
|
923
|
-
|
|
924
|
-
var Te =
|
|
925
|
-
|
|
926
|
-
var Oe =
|
|
927
|
-
|
|
928
|
-
var Le =
|
|
929
|
-
|
|
930
|
-
var Be =
|
|
931
|
-
|
|
932
|
-
var Ve =
|
|
933
|
-
|
|
934
|
-
var We =
|
|
935
|
-
|
|
936
|
-
var Ge =
|
|
937
|
-
|
|
938
|
-
var Je =
|
|
939
|
-
|
|
940
|
-
var Ze =
|
|
941
|
-
|
|
942
|
-
var Qe =
|
|
943
|
-
|
|
944
|
-
var tt =
|
|
945
|
-
|
|
946
|
-
var nt =
|
|
947
|
-
|
|
948
|
-
var at =
|
|
949
|
-
|
|
950
|
-
var ot =
|
|
951
|
-
|
|
952
|
-
var lt =
|
|
953
|
-
|
|
954
|
-
var ft =
|
|
955
|
-
|
|
956
|
-
var n = ke(), r =
|
|
957
|
-
|
|
923
|
+
k(de), T(ce);
|
|
924
|
+
var Te = b(ce, 2), Ee = f(Te), De = f(Ee, !0);
|
|
925
|
+
T(Ee);
|
|
926
|
+
var Oe = b(Ee);
|
|
927
|
+
D(Oe), T(Te);
|
|
928
|
+
var Le = b(Te, 2), Re = f(Le), ze = f(Re, !0);
|
|
929
|
+
T(Re);
|
|
930
|
+
var Be = b(Re);
|
|
931
|
+
D(Be), T(Le);
|
|
932
|
+
var Ve = b(Le, 2), He = f(Ve), Ue = f(He, !0);
|
|
933
|
+
T(He);
|
|
934
|
+
var We = b(He, 2);
|
|
935
|
+
D(We), T(Ve);
|
|
936
|
+
var Ge = b(Ve, 2), Ke = f(Ge), qe = f(Ke, !0);
|
|
937
|
+
T(Ke);
|
|
938
|
+
var Je = b(Ke, 2), Ye = f(Je), Xe = f(Ye, !0);
|
|
939
|
+
T(Ye);
|
|
940
|
+
var Ze = b(Ye);
|
|
941
|
+
D(Ze), T(Je);
|
|
942
|
+
var Qe = b(Je, 2), $e = f(Qe), et = f($e, !0);
|
|
943
|
+
T($e);
|
|
944
|
+
var tt = b($e);
|
|
945
|
+
D(tt), T(Qe);
|
|
946
|
+
var nt = b(Qe, 2), rt = f(nt), it = f(rt, !0);
|
|
947
|
+
T(rt);
|
|
948
|
+
var at = b(rt);
|
|
949
|
+
D(at), T(nt);
|
|
950
|
+
var ot = b(nt, 2), st = f(ot), ct = f(st, !0);
|
|
951
|
+
T(st);
|
|
952
|
+
var lt = b(st, 2), ut = f(lt), dt = f(ut, !0);
|
|
953
|
+
T(ut), ut.value = ut.__value = "";
|
|
954
|
+
var ft = b(ut);
|
|
955
|
+
V(ft, 16, () => I, (e) => e, (e, t) => {
|
|
956
|
+
var n = ke(), r = f(n, !0);
|
|
957
|
+
T(n);
|
|
958
958
|
var i = {};
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
}),
|
|
962
|
-
}),
|
|
959
|
+
v(() => {
|
|
960
|
+
M(r, t), i !== (i = t) && (n.value = (n.__value = t) ?? "");
|
|
961
|
+
}), l(e, n);
|
|
962
|
+
}), T(lt);
|
|
963
963
|
var pt;
|
|
964
|
-
|
|
965
|
-
var mt =
|
|
966
|
-
|
|
967
|
-
var _t =
|
|
968
|
-
|
|
969
|
-
var vt =
|
|
970
|
-
var n = Ae(), r =
|
|
971
|
-
|
|
972
|
-
var a =
|
|
973
|
-
|
|
974
|
-
var c =
|
|
975
|
-
|
|
976
|
-
var
|
|
977
|
-
|
|
978
|
-
var
|
|
979
|
-
|
|
980
|
-
var
|
|
981
|
-
|
|
982
|
-
var C =
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
}),
|
|
964
|
+
k(lt), T(ot);
|
|
965
|
+
var mt = b(ot, 2), ht = f(mt), gt = f(ht, !0);
|
|
966
|
+
T(ht);
|
|
967
|
+
var _t = b(ht);
|
|
968
|
+
D(_t), T(mt), T(Ge);
|
|
969
|
+
var vt = b(Ge, 2), yt = (e) => {
|
|
970
|
+
var n = Ae(), r = f(n), i = f(r, !0);
|
|
971
|
+
T(r);
|
|
972
|
+
var a = b(r, 2), o = f(a), s = f(o, !0);
|
|
973
|
+
T(o);
|
|
974
|
+
var c = b(o);
|
|
975
|
+
D(c), T(a);
|
|
976
|
+
var u = b(a, 2), d = f(u), h = f(d, !0);
|
|
977
|
+
T(d);
|
|
978
|
+
var g = b(d);
|
|
979
|
+
D(g), T(u);
|
|
980
|
+
var y = b(u, 2), x = f(y), S = f(x, !0);
|
|
981
|
+
T(x);
|
|
982
|
+
var C = b(x);
|
|
983
|
+
D(C), T(y), T(n), v(() => {
|
|
984
|
+
M(i, t.messages.chartBuilderRightAxis), M(s, t.messages.chartBuilderTitleField), A(c, U(m).y2Axis?.title ?? ""), M(h, t.messages.chartBuilderMin), A(g, U(m).y2Axis?.min ?? ""), O(g, "placeholder", t.messages.chartBuilderAuto), M(S, t.messages.chartBuilderMax), A(C, U(m).y2Axis?.max ?? ""), O(C, "placeholder", t.messages.chartBuilderAuto);
|
|
985
|
+
}), p("input", c, (e) => _("y2Axis", { title: e.currentTarget.value })), p("change", g, (e) => _("y2Axis", { min: w(e.currentTarget.value) })), p("change", C, (e) => _("y2Axis", { max: w(e.currentTarget.value) })), l(e, n);
|
|
986
986
|
};
|
|
987
|
-
|
|
988
|
-
|
|
987
|
+
u(vt, (e) => {
|
|
988
|
+
U(E) && e(yt);
|
|
989
989
|
});
|
|
990
|
-
var bt =
|
|
991
|
-
|
|
992
|
-
var Ct =
|
|
993
|
-
|
|
994
|
-
var Et =
|
|
995
|
-
|
|
996
|
-
var Dt =
|
|
997
|
-
|
|
998
|
-
var At =
|
|
999
|
-
|
|
1000
|
-
var jt =
|
|
1001
|
-
|
|
1002
|
-
var Pt =
|
|
1003
|
-
|
|
1004
|
-
var Lt =
|
|
1005
|
-
|
|
1006
|
-
var zt =
|
|
1007
|
-
|
|
1008
|
-
var Vt =
|
|
1009
|
-
|
|
990
|
+
var bt = b(vt, 2), xt = f(bt), St = f(xt, !0);
|
|
991
|
+
T(xt);
|
|
992
|
+
var Ct = b(xt, 2), wt = f(Ct), Tt = f(wt, !0);
|
|
993
|
+
T(wt);
|
|
994
|
+
var Et = b(wt);
|
|
995
|
+
D(Et), T(Ct);
|
|
996
|
+
var Dt = b(Ct, 2), Ot = f(Dt), kt = f(Ot, !0);
|
|
997
|
+
T(Ot);
|
|
998
|
+
var At = b(Ot);
|
|
999
|
+
D(At), T(Dt);
|
|
1000
|
+
var jt = b(Dt, 2), Mt = f(jt), Nt = f(Mt, !0);
|
|
1001
|
+
T(Mt);
|
|
1002
|
+
var Pt = b(Mt, 2), Ft = f(Pt), It = f(Ft, !0);
|
|
1003
|
+
T(Ft), Ft.value = Ft.__value = "auto";
|
|
1004
|
+
var Lt = b(Ft), Rt = f(Lt, !0);
|
|
1005
|
+
T(Lt), Lt.value = Lt.__value = "0";
|
|
1006
|
+
var zt = b(Lt), Bt = f(zt, !0);
|
|
1007
|
+
T(zt), zt.value = zt.__value = "-45";
|
|
1008
|
+
var Vt = b(zt), Ht = f(Vt, !0);
|
|
1009
|
+
T(Vt), Vt.value = Vt.__value = "-90", T(Pt);
|
|
1010
1010
|
var Ut;
|
|
1011
|
-
|
|
1012
|
-
var Wt =
|
|
1013
|
-
var n = Fe(), r =
|
|
1014
|
-
|
|
1015
|
-
var a =
|
|
1011
|
+
k(Pt), T(jt), T(bt);
|
|
1012
|
+
var Wt = b(bt, 2), Gt = (e) => {
|
|
1013
|
+
var n = Fe(), r = f(n), i = f(r, !0);
|
|
1014
|
+
T(r);
|
|
1015
|
+
var a = b(r, 2);
|
|
1016
1016
|
let s;
|
|
1017
|
-
var
|
|
1018
|
-
|
|
1019
|
-
var
|
|
1020
|
-
|
|
1021
|
-
var
|
|
1022
|
-
|
|
1023
|
-
var
|
|
1024
|
-
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1027
|
-
var
|
|
1028
|
-
|
|
1029
|
-
var
|
|
1030
|
-
var n = je(), r =
|
|
1031
|
-
|
|
1017
|
+
var c = f(a), h = f(c, !0);
|
|
1018
|
+
T(c);
|
|
1019
|
+
var g = b(c), _ = f(g, !0);
|
|
1020
|
+
T(g);
|
|
1021
|
+
var x = b(g), S = f(x, !0);
|
|
1022
|
+
T(x);
|
|
1023
|
+
var w = b(x), E = f(w, !0);
|
|
1024
|
+
T(w);
|
|
1025
|
+
var j = b(w), P = f(j, !0);
|
|
1026
|
+
T(j);
|
|
1027
|
+
var F = b(j), I = f(F, !0);
|
|
1028
|
+
T(F);
|
|
1029
|
+
var L = b(F), R = (e) => {
|
|
1030
|
+
var n = je(), r = f(n, !0);
|
|
1031
|
+
T(n), v(() => M(r, t.messages.chartBuilderStack)), l(e, n);
|
|
1032
1032
|
};
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
}),
|
|
1036
|
-
var te =
|
|
1037
|
-
|
|
1038
|
-
let r =
|
|
1033
|
+
u(L, (e) => {
|
|
1034
|
+
U(ee) && e(R);
|
|
1035
|
+
}), T(a);
|
|
1036
|
+
var te = b(a, 2);
|
|
1037
|
+
V(te, 16, () => U(d), (e) => e, (e, n) => {
|
|
1038
|
+
let r = z(() => U(m).series?.[n] ?? {}), i = z(() => U(o)?.series.find((e) => e.label === n));
|
|
1039
1039
|
var a = Pe();
|
|
1040
1040
|
let s;
|
|
1041
|
-
var c =
|
|
1042
|
-
|
|
1043
|
-
var
|
|
1044
|
-
|
|
1045
|
-
var
|
|
1046
|
-
|
|
1047
|
-
var
|
|
1048
|
-
|
|
1049
|
-
var
|
|
1050
|
-
|
|
1051
|
-
var
|
|
1052
|
-
|
|
1053
|
-
var
|
|
1054
|
-
|
|
1055
|
-
var
|
|
1056
|
-
|
|
1057
|
-
var
|
|
1058
|
-
|
|
1041
|
+
var c = f(a), d = f(c, !0);
|
|
1042
|
+
T(c);
|
|
1043
|
+
var h = b(c, 2);
|
|
1044
|
+
D(h);
|
|
1045
|
+
var g = b(h, 2), _ = f(g), x = f(_, !0);
|
|
1046
|
+
T(_), _.value = _.__value = "";
|
|
1047
|
+
var S = b(_), w = f(S, !0);
|
|
1048
|
+
T(S), S.value = S.__value = "bar";
|
|
1049
|
+
var E = b(S), j = f(E, !0);
|
|
1050
|
+
T(E), E.value = E.__value = "line";
|
|
1051
|
+
var P = b(E), F = f(P, !0);
|
|
1052
|
+
T(P), P.value = P.__value = "area", T(g);
|
|
1053
|
+
var I;
|
|
1054
|
+
k(g);
|
|
1055
|
+
var L = b(g, 2), R = f(L), te = f(R, !0);
|
|
1056
|
+
T(R), R.value = R.__value = "left";
|
|
1057
|
+
var B = b(R), H = f(B, !0);
|
|
1058
|
+
T(B), B.value = B.__value = "right", T(L);
|
|
1059
1059
|
var W;
|
|
1060
|
-
|
|
1061
|
-
var G =
|
|
1062
|
-
|
|
1063
|
-
var n = Me(), r =
|
|
1064
|
-
|
|
1060
|
+
k(L);
|
|
1061
|
+
var G = b(L, 2);
|
|
1062
|
+
V(G, 20, () => N, (e) => e, (e, t) => {
|
|
1063
|
+
var n = Me(), r = f(n, !0);
|
|
1064
|
+
T(n);
|
|
1065
1065
|
var i = {};
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
}),
|
|
1069
|
-
}),
|
|
1066
|
+
v(() => {
|
|
1067
|
+
M(r, t), i !== (i = t) && (n.value = (n.__value = t) ?? "");
|
|
1068
|
+
}), l(e, n);
|
|
1069
|
+
}), T(G);
|
|
1070
1070
|
var K;
|
|
1071
|
-
|
|
1072
|
-
var q =
|
|
1073
|
-
|
|
1074
|
-
var J =
|
|
1071
|
+
k(G);
|
|
1072
|
+
var q = b(G, 2);
|
|
1073
|
+
D(q);
|
|
1074
|
+
var J = b(q, 2), Y = (e) => {
|
|
1075
1075
|
var a = Ne();
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
}, [() => Z(t.messages.chartBuilderSeriesStackLabel, { series: n })]),
|
|
1076
|
+
D(a), v((e) => {
|
|
1077
|
+
A(a, U(r).stack ?? U(i)?.stack ?? ""), O(a, "placeholder", t.messages.chartBuilderStackPlaceholder), O(a, "aria-label", e);
|
|
1078
|
+
}, [() => Z(t.messages.chartBuilderSeriesStackLabel, { series: n })]), p("change", a, (e) => y(n, { stack: e.currentTarget.value.trim() })), l(e, a);
|
|
1079
1079
|
};
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}),
|
|
1083
|
-
s = ne(a, 1, "sv-grid-chart-builder-series svelte-1yr3emi", null, s, { "has-stack":
|
|
1080
|
+
u(J, (e) => {
|
|
1081
|
+
U(ee) && e(Y);
|
|
1082
|
+
}), T(a), v((e, o, l, u, f) => {
|
|
1083
|
+
s = ne(a, 1, "sv-grid-chart-builder-series svelte-1yr3emi", null, s, { "has-stack": U(ee) }), O(a, "data-series", n), O(c, "title", n), M(d, n), A(h, U(r).color ?? U(i)?.color ?? "#2563eb"), O(h, "aria-label", e), O(g, "aria-label", o), M(x, t.messages.chartBuilderChartType), M(w, t.messages.chartBuilderBar), M(j, t.messages.chartBuilderLine), M(F, t.messages.chartBuilderArea), I !== (I = U(r).type ?? U(i)?.type ?? "") && (g.value = (g.__value = U(r).type ?? U(i)?.type ?? "") ?? "", C(g, U(r).type ?? U(i)?.type ?? "")), O(L, "aria-label", l), M(te, t.messages.chartBuilderLeft), M(H, t.messages.chartBuilderRight), W !== (W = U(r).axis ?? U(i)?.axis ?? "left") && (L.value = (L.__value = U(r).axis ?? U(i)?.axis ?? "left") ?? "", C(L, U(r).axis ?? U(i)?.axis ?? "left")), O(G, "aria-label", u), K !== (K = U(r).marker ?? "circle") && (G.value = (G.__value = U(r).marker ?? "circle") ?? "", C(G, U(r).marker ?? "circle")), A(q, U(r).strokeWidth ?? 2), O(q, "aria-label", f);
|
|
1084
1084
|
}, [
|
|
1085
1085
|
() => Z(t.messages.chartBuilderSeriesColorLabel, { series: n }),
|
|
1086
1086
|
() => Z(t.messages.chartBuilderSeriesTypeLabel, { series: n }),
|
|
1087
1087
|
() => Z(t.messages.chartBuilderSeriesAxisLabel, { series: n }),
|
|
1088
1088
|
() => Z(t.messages.chartBuilderSeriesMarkerLabel, { series: n }),
|
|
1089
1089
|
() => Z(t.messages.chartBuilderSeriesWidthLabel, { series: n })
|
|
1090
|
-
]),
|
|
1091
|
-
}),
|
|
1092
|
-
|
|
1093
|
-
}),
|
|
1090
|
+
]), p("input", h, (e) => y(n, { color: e.currentTarget.value })), p("change", g, (e) => y(n, { type: e.currentTarget.value || void 0 })), p("change", L, (e) => y(n, { axis: e.currentTarget.value })), p("change", G, (e) => y(n, { marker: e.currentTarget.value })), p("change", q, (e) => y(n, { strokeWidth: Number(e.currentTarget.value) || 2 })), l(e, a);
|
|
1091
|
+
}), T(n), v(() => {
|
|
1092
|
+
M(i, t.messages.chartBuilderSeries), s = ne(a, 1, "sv-grid-chart-builder-series-head svelte-1yr3emi", null, s, { "has-stack": U(ee) }), M(h, t.messages.chartBuilderSeries), M(_, t.messages.chartBuilderColor), M(S, t.messages.chartBuilderSeriesType), M(E, t.messages.chartBuilderAxis), M(P, t.messages.chartBuilderMarker), M(I, t.messages.chartBuilderWidth);
|
|
1093
|
+
}), l(e, n);
|
|
1094
1094
|
};
|
|
1095
|
-
|
|
1096
|
-
|
|
1095
|
+
u(Wt, (e) => {
|
|
1096
|
+
U(d).length && e(Gt);
|
|
1097
1097
|
});
|
|
1098
|
-
var Kt =
|
|
1099
|
-
|
|
1100
|
-
var Yt =
|
|
1101
|
-
|
|
1102
|
-
var Qt =
|
|
1103
|
-
|
|
1104
|
-
var $t =
|
|
1105
|
-
|
|
1106
|
-
var nn =
|
|
1107
|
-
|
|
1108
|
-
var rn =
|
|
1109
|
-
|
|
1110
|
-
var sn =
|
|
1111
|
-
|
|
1112
|
-
var cn =
|
|
1113
|
-
|
|
1114
|
-
var dn =
|
|
1115
|
-
|
|
1116
|
-
var fn =
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
}, [() =>
|
|
1098
|
+
var Kt = b(Wt, 2), qt = f(Kt), Jt = f(qt, !0);
|
|
1099
|
+
T(qt);
|
|
1100
|
+
var Yt = b(qt, 2), Xt = f(Yt), Zt = f(Xt, !0);
|
|
1101
|
+
T(Xt);
|
|
1102
|
+
var Qt = b(Xt);
|
|
1103
|
+
D(Qt), T(Yt);
|
|
1104
|
+
var $t = b(Yt, 2), en = f($t), tn = f(en, !0);
|
|
1105
|
+
T(en);
|
|
1106
|
+
var nn = b(en);
|
|
1107
|
+
D(nn), T($t);
|
|
1108
|
+
var rn = b($t, 2), an = f(rn), on = f(an, !0);
|
|
1109
|
+
T(an);
|
|
1110
|
+
var sn = b(an);
|
|
1111
|
+
D(sn), T(rn);
|
|
1112
|
+
var cn = b(rn, 2), ln = f(cn), un = f(ln, !0);
|
|
1113
|
+
T(ln);
|
|
1114
|
+
var dn = b(ln);
|
|
1115
|
+
D(dn), T(cn), T(Kt);
|
|
1116
|
+
var fn = b(Kt, 2), pn = f(fn), mn = f(pn, !0);
|
|
1117
|
+
T(pn), T(fn), T(r), v((e) => {
|
|
1118
|
+
M(s, t.messages.chartBuilderTitleField), A(c, U(m).title ?? ""), M(j, t.messages.chartBuilderSubtitle), A(P, U(m).subtitle ?? ""), M(te, t.messages.chartBuilderCaption), A(B, U(m).caption ?? ""), M(G, t.messages.chartBuilderLegend), M(J, t.messages.chartLegendBottom), M(X, t.messages.chartLegendTop), M(re, t.messages.chartLegendLeft), M(ie, t.messages.chartLegendRight), M(oe, t.messages.chartLegendHidden), se !== (se = U(m).legend === !1 ? "none" : U(m).legend ?? "bottom") && (K.value = (K.__value = U(m).legend === !1 ? "none" : U(m).legend ?? "bottom") ?? "", C(K, U(m).legend === !1 ? "none" : U(m).legend ?? "bottom")), M(ue, t.messages.chartBuilderDataLabels), M(pe, t.messages.chartBuilderPanelSetting), M(he, t.messages.chartLabelsTop), M(_e, t.messages.chartLabelsOutside), M(ye, t.messages.chartLabelsInside), M(xe, t.messages.chartLabelsCenter), M(Ce, t.messages.chartLabelsHidden), we !== (we = U(m).dataLabels === null ? "none" : U(m).dataLabels ?? "auto") && (de.value = (de.__value = U(m).dataLabels === null ? "none" : U(m).dataLabels ?? "auto") ?? "", C(de, U(m).dataLabels === null ? "none" : U(m).dataLabels ?? "auto")), M(De, t.messages.chartBuilderSeriesLabels), R(Oe, U(m).seriesLabels === !0), M(ze, t.messages.chartBuilderCrosshairLabels), R(Be, U(m).crosshairLabels !== !1), O(Ve, "title", t.messages.chartBuilderCompactBelowTitle), M(Ue, t.messages.chartBuilderCompactBelow), A(We, U(m).compactBelow ?? ""), O(We, "placeholder", t.messages.chartBuilderOff), M(qe, t.messages.chartBuilderValueAxis), M(Xe, t.messages.chartBuilderTitleField), A(Ze, U(m).yAxis?.title ?? ""), M(et, t.messages.chartBuilderMin), A(tt, U(m).yAxis?.min ?? ""), O(tt, "placeholder", t.messages.chartBuilderAuto), M(it, t.messages.chartBuilderMax), A(at, U(m).yAxis?.max ?? ""), O(at, "placeholder", t.messages.chartBuilderAuto), M(ct, t.messages.chartFormat), M(dt, t.messages.chartBuilderPanelSetting), pt !== (pt = U(m).yAxis?.format ?? "") && (lt.value = (lt.__value = U(m).yAxis?.format ?? "") ?? "", C(lt, U(m).yAxis?.format ?? "")), M(gt, t.messages.chartBuilderGridLines), R(_t, U(m).yAxis?.gridLines !== !1), M(St, t.messages.chartBuilderCategoryAxis), M(Tt, t.messages.chartBuilderTitleField), A(Et, U(m).xAxis?.title ?? ""), M(kt, t.messages.chartBuilderGridLines), R(At, U(m).xAxis?.gridLines === !0), M(Nt, t.messages.chartBuilderAxisLabels), M(It, t.messages.chartBuilderLabelsAuto), M(Rt, t.messages.chartBuilderLabelsHorizontal), M(Bt, t.messages.chartBuilderLabelsTilted), M(Ht, t.messages.chartBuilderLabelsVertical), Ut !== (Ut = e) && (Pt.value = (Pt.__value = e) ?? "", C(Pt, e)), M(Jt, t.messages.chartBuilderStyle), M(Zt, t.messages.chartBuilderFontSize), A(Qt, U(m).style?.fontSize ?? ""), M(tn, t.messages.chartBuilderFontFamily), A(nn, U(m).style?.fontFamily ?? ""), M(on, t.messages.chartBuilderBackground), A(sn, U(m).style?.background ?? ""), M(un, t.messages.chartBuilderTextColor), A(dn, U(m).style?.textColor ?? ""), M(mn, t.messages.chartBuilderResetFormat);
|
|
1119
|
+
}, [() => U(m).xAxis?.labelRotation === void 0 ? "auto" : String(U(m).xAxis.labelRotation)]), p("input", c, (e) => h({ title: e.currentTarget.value })), p("input", P, (e) => h({ subtitle: e.currentTarget.value })), p("input", B, (e) => h({ caption: e.currentTarget.value })), p("change", K, (e) => h({ legend: e.currentTarget.value !== "none" && e.currentTarget.value })), p("change", de, (e) => h({ dataLabels: e.currentTarget.value === "auto" ? void 0 : e.currentTarget.value === "none" ? null : e.currentTarget.value })), p("change", Oe, (e) => h({ seriesLabels: e.currentTarget.checked })), p("change", Be, (e) => h({ crosshairLabels: e.currentTarget.checked })), p("change", We, (e) => h({ compactBelow: w(e.currentTarget.value) })), p("input", Ze, (e) => _("yAxis", { title: e.currentTarget.value })), p("change", tt, (e) => _("yAxis", { min: w(e.currentTarget.value) })), p("change", at, (e) => _("yAxis", { max: w(e.currentTarget.value) })), p("change", lt, (e) => _("yAxis", { format: e.currentTarget.value || void 0 })), p("change", _t, (e) => _("yAxis", { gridLines: e.currentTarget.checked })), p("input", Et, (e) => _("xAxis", { title: e.currentTarget.value })), p("change", At, (e) => _("xAxis", { gridLines: e.currentTarget.checked })), p("change", Pt, (e) => _("xAxis", { labelRotation: e.currentTarget.value === "auto" ? "auto" : Number(e.currentTarget.value) })), p("change", Qt, (e) => S({ fontSize: w(e.currentTarget.value) ?? void 0 })), p("input", nn, (e) => S({ fontFamily: e.currentTarget.value || void 0 })), p("input", sn, (e) => S({ background: e.currentTarget.value || void 0 })), p("input", dn, (e) => S({ textColor: e.currentTarget.value || void 0 })), p("click", pn, () => n().chartFormat = null), l(e, r);
|
|
1120
1120
|
};
|
|
1121
|
-
|
|
1122
|
-
r() === "type" ? e(
|
|
1123
|
-
}),
|
|
1124
|
-
}, r =
|
|
1121
|
+
u(c, (e) => {
|
|
1122
|
+
r() === "type" ? e(g) : r() === "data" ? e(P, 1) : e(F, -1);
|
|
1123
|
+
}), l(e, i);
|
|
1124
|
+
}, r = z(() => [
|
|
1125
1125
|
{
|
|
1126
1126
|
id: "type",
|
|
1127
1127
|
label: t.messages.chartBuilderTabType
|
|
@@ -1135,29 +1135,29 @@ function Re(e, t) {
|
|
|
1135
1135
|
label: t.messages.chartBuilderTabFormat
|
|
1136
1136
|
}
|
|
1137
1137
|
]);
|
|
1138
|
-
me(
|
|
1138
|
+
me(P, {
|
|
1139
1139
|
get tabs() {
|
|
1140
|
-
return
|
|
1140
|
+
return U(r);
|
|
1141
1141
|
},
|
|
1142
1142
|
get ariaLabel() {
|
|
1143
1143
|
return t.messages.chartBuilderTitle;
|
|
1144
1144
|
},
|
|
1145
1145
|
get value() {
|
|
1146
|
-
return
|
|
1146
|
+
return U(i);
|
|
1147
1147
|
},
|
|
1148
1148
|
set value(e) {
|
|
1149
|
-
|
|
1149
|
+
g(i, e, !0);
|
|
1150
1150
|
},
|
|
1151
1151
|
panel: e,
|
|
1152
1152
|
$$slots: { panel: !0 }
|
|
1153
1153
|
});
|
|
1154
1154
|
}
|
|
1155
|
-
|
|
1155
|
+
T(c), l(e, c);
|
|
1156
1156
|
},
|
|
1157
1157
|
$$slots: { default: !0 }
|
|
1158
|
-
}),
|
|
1158
|
+
}), F();
|
|
1159
1159
|
}
|
|
1160
|
-
|
|
1160
|
+
d([
|
|
1161
1161
|
"click",
|
|
1162
1162
|
"change",
|
|
1163
1163
|
"input"
|