@svgrid/grid-wc 3.0.4 → 3.0.5
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-DMkf7UMn.js → GridMenus-Nf04Zcl5.js} +2 -2
- package/dist/{SvGrid.helpers-BdVDtjUm.js → SvGrid.helpers-zBkDTryR.js} +36 -37
- package/dist/{shadow/SvGridCellEditor-DhXEIlyE.js → SvGridCellEditor-BTbDEgpe.js} +1 -1
- package/dist/{shadow/SvGridChart-BMdCbrqb.js → SvGridChart-BSNYAW_W.js} +4 -4
- package/dist/{SvGridChartBuilder-Chp_MD1B.js → SvGridChartBuilder-DDl_Bv8k.js} +3 -3
- package/dist/{SvGridChartPanel-BIV2O2Lp.js → SvGridChartPanel-DkIR-3rA.js} +6 -6
- package/dist/{SvGridChartView-DyhkumD-.js → SvGridChartView-B4pqLWnm.js} +2 -2
- package/dist/{shadow/cell-formatting-CBfgahv1.js → cell-formatting-hb3vzxhJ.js} +27 -5
- package/dist/{shadow/chart-export-pdf-9OCvhzr0.js → chart-export-pdf-hJVuR7_z.js} +1 -1
- package/dist/{chart-D_LKA1fr.js → chart-nwSa4jQe.js} +1 -1
- package/dist/{shadow/chart-summary-v3Lhe8YD.js → chart-summary-BL4WDgEu.js} +1 -1
- package/dist/{export-format-CAi1mp-1.js → export-format-CXEUNl8j.js} +60 -65
- package/dist/shadow/{GridMenus-DMkf7UMn.js → GridMenus-Nf04Zcl5.js} +2 -2
- package/dist/shadow/{SvGrid.helpers-BdVDtjUm.js → SvGrid.helpers-zBkDTryR.js} +36 -37
- package/dist/{SvGridCellEditor-DhXEIlyE.js → shadow/SvGridCellEditor-BTbDEgpe.js} +1 -1
- package/dist/{SvGridChart-BMdCbrqb.js → shadow/SvGridChart-BSNYAW_W.js} +4 -4
- package/dist/shadow/{SvGridChartBuilder-Chp_MD1B.js → SvGridChartBuilder-DDl_Bv8k.js} +3 -3
- package/dist/shadow/{SvGridChartPanel-BIV2O2Lp.js → SvGridChartPanel-DkIR-3rA.js} +6 -6
- package/dist/shadow/{SvGridChartView-DyhkumD-.js → SvGridChartView-B4pqLWnm.js} +2 -2
- package/dist/{cell-formatting-CBfgahv1.js → shadow/cell-formatting-hb3vzxhJ.js} +27 -5
- package/dist/{chart-export-pdf-9OCvhzr0.js → shadow/chart-export-pdf-hJVuR7_z.js} +1 -1
- package/dist/shadow/{chart-D_LKA1fr.js → chart-nwSa4jQe.js} +1 -1
- package/dist/{chart-summary-v3Lhe8YD.js → shadow/chart-summary-BL4WDgEu.js} +1 -1
- package/dist/shadow/{export-format-mnW_rVBZ.js → export-format-DQtIyOvV.js} +60 -65
- package/dist/shadow/sv-grid-shadow-element.js +1960 -1911
- package/dist/shadow/{svelte-virtualizer.svelte-CnGhFGDc.js → svelte-virtualizer.svelte-CMX34S17.js} +7 -3
- package/dist/sv-grid-element.js +1945 -1896
- package/dist/{svelte-virtualizer.svelte-CnGhFGDc.js → svelte-virtualizer.svelte-CMX34S17.js} +7 -3
- package/package.json +3 -3
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e, i as t, n, t as r } from "./cell-formatting-hb3vzxhJ.js";
|
|
2
2
|
import "./sv-grid-element.js";
|
|
3
3
|
//#region ../grid/dist/export-format.js
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
if (typeof e == "string" && e.trim() !== "") {
|
|
11
|
-
let t = new Date(e);
|
|
12
|
-
return Number.isNaN(t.getTime()) ? null : t;
|
|
13
|
-
}
|
|
14
|
-
return null;
|
|
4
|
+
function i(e) {
|
|
5
|
+
return t(e);
|
|
6
|
+
}
|
|
7
|
+
function a(e) {
|
|
8
|
+
let t = (e, t = 2) => String(Math.abs(e)).padStart(t, "0"), n = -e.getTimezoneOffset(), r = n < 0 ? "-" : "+", i = e.getFullYear();
|
|
9
|
+
return (i < 0 ? "-" + t(i, 6) : t(i, 4)) + `-${t(e.getMonth() + 1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}.${t(e.getMilliseconds(), 3)}${r}${t(Math.floor(Math.abs(n) / 60))}:${t(Math.abs(n) % 60)}`;
|
|
15
10
|
}
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
if (!a) return String(
|
|
19
|
-
if (a.type === "number" || a.type === "currency" || a.type === "percent") return
|
|
11
|
+
function o(t, a) {
|
|
12
|
+
if (t == null) return "";
|
|
13
|
+
if (!a) return String(t);
|
|
14
|
+
if (a.type === "number" || a.type === "currency" || a.type === "percent") return r(t, {
|
|
20
15
|
type: a.type,
|
|
21
16
|
locales: a.locales,
|
|
22
17
|
currency: a.type === "currency" ? a.currency ?? "USD" : void 0,
|
|
@@ -24,10 +19,10 @@ function i(i, a) {
|
|
|
24
19
|
options: a.options
|
|
25
20
|
});
|
|
26
21
|
if (a.type === "date" || a.type === "datetime") {
|
|
27
|
-
let
|
|
28
|
-
if (
|
|
29
|
-
let
|
|
30
|
-
...
|
|
22
|
+
let r = i(t);
|
|
23
|
+
if (r) {
|
|
24
|
+
let t = e(a.pattern, a.type), i = t || a.options ? {
|
|
25
|
+
...t,
|
|
31
26
|
...a.options
|
|
32
27
|
} : a.type === "date" ? {
|
|
33
28
|
year: "numeric",
|
|
@@ -40,73 +35,73 @@ function i(i, a) {
|
|
|
40
35
|
hour: "2-digit",
|
|
41
36
|
minute: "2-digit"
|
|
42
37
|
};
|
|
43
|
-
return
|
|
38
|
+
return n(a.locales, i).format(r);
|
|
44
39
|
}
|
|
45
40
|
}
|
|
46
|
-
return String(
|
|
41
|
+
return String(t);
|
|
47
42
|
}
|
|
48
|
-
function
|
|
49
|
-
let r = n.columns && n.columns.length ? n.columns.map((e) => t.find((t) => t.field === e)).filter((e) => !!e) : t.filter((e) => e.field),
|
|
50
|
-
for (let e of r) e.align && (
|
|
43
|
+
function s(e, t, n = {}) {
|
|
44
|
+
let r = n.columns && n.columns.length ? n.columns.map((e) => t.find((t) => t.field === e)).filter((e) => !!e) : t.filter((e) => e.field), i = r.map((e) => e.field), a = {};
|
|
45
|
+
for (let e of r) e.align && (a[e.field] = e.align);
|
|
51
46
|
let s = {};
|
|
52
47
|
for (let e of r) s[e.field] = e.header;
|
|
53
48
|
let c = [s];
|
|
54
49
|
for (let t of e) {
|
|
55
50
|
let e = {};
|
|
56
|
-
for (let
|
|
57
|
-
let r = t[
|
|
58
|
-
e[
|
|
51
|
+
for (let i of r) {
|
|
52
|
+
let r = t[i.field];
|
|
53
|
+
e[i.field] = n.rawValues ? r : o(r, i.format);
|
|
59
54
|
}
|
|
60
55
|
c.push(e);
|
|
61
56
|
}
|
|
62
57
|
return {
|
|
63
58
|
records: c,
|
|
64
|
-
fields:
|
|
65
|
-
align:
|
|
59
|
+
fields: i,
|
|
60
|
+
align: a
|
|
66
61
|
};
|
|
67
62
|
}
|
|
68
|
-
var
|
|
69
|
-
function
|
|
63
|
+
var c = "";
|
|
64
|
+
function l(e) {
|
|
70
65
|
if (e?.aborted) throw new DOMException("Export aborted", "AbortError");
|
|
71
66
|
}
|
|
72
|
-
var
|
|
73
|
-
function
|
|
74
|
-
let n = e == null ? "" : e instanceof Date ? e
|
|
67
|
+
var u = () => new Promise((e) => setTimeout(e, 0));
|
|
68
|
+
function d(e, t) {
|
|
69
|
+
let n = e == null ? "" : e instanceof Date ? a(e) : String(e);
|
|
75
70
|
return n === "" ? n : n.includes(t) || n.includes("\"") || n.includes("\n") || n.includes("\r") ? `"${n.replace(/"/g, "\"\"")}"` : n;
|
|
76
71
|
}
|
|
77
|
-
async function
|
|
78
|
-
let r = n.csv?.delimiter ?? ",", i = n.csv?.eol ?? "\r\n", a = n.csv?.bom ?? !0,
|
|
72
|
+
async function f(e, t, n = {}) {
|
|
73
|
+
let r = n.csv?.delimiter ?? ",", i = n.csv?.eol ?? "\r\n", a = n.csv?.bom ?? !0, o = Math.max(1, n.chunkRows ?? 5e3), s = e.length, f = [];
|
|
79
74
|
for (let i = 0; i < e.length; i++) {
|
|
80
|
-
|
|
75
|
+
l(n.signal);
|
|
81
76
|
let a = e[i];
|
|
82
|
-
f.push(t.map((e) =>
|
|
77
|
+
f.push(t.map((e) => d(a[e], r)).join(r)), i > 0 && i % o === 0 && (n.onProgress?.({
|
|
83
78
|
phase: "serialize",
|
|
84
|
-
ratio: i /
|
|
79
|
+
ratio: i / s,
|
|
85
80
|
row: i,
|
|
86
|
-
total:
|
|
87
|
-
}), await
|
|
81
|
+
total: s
|
|
82
|
+
}), await u());
|
|
88
83
|
}
|
|
89
84
|
n.onProgress?.({
|
|
90
85
|
phase: "serialize",
|
|
91
86
|
ratio: 1,
|
|
92
|
-
row:
|
|
93
|
-
total:
|
|
87
|
+
row: s,
|
|
88
|
+
total: s
|
|
94
89
|
});
|
|
95
90
|
let p = f.join(i);
|
|
96
|
-
return (a ?
|
|
91
|
+
return (a ? c : "") + p;
|
|
97
92
|
}
|
|
98
|
-
async function
|
|
93
|
+
async function p(e, t, n = {}) {
|
|
99
94
|
let r = Math.max(1, n.chunkRows ?? 5e3), i = e.length - 1, a = [];
|
|
100
95
|
for (let o = 1; o < e.length; o++) {
|
|
101
|
-
|
|
102
|
-
let
|
|
103
|
-
for (let e of t)
|
|
104
|
-
a.push(
|
|
96
|
+
l(n.signal);
|
|
97
|
+
let s = e[o], c = {};
|
|
98
|
+
for (let e of t) c[e] = s[e];
|
|
99
|
+
a.push(c), o > 0 && o % r === 0 && (n.onProgress?.({
|
|
105
100
|
phase: "serialize",
|
|
106
101
|
ratio: o / i,
|
|
107
102
|
row: o,
|
|
108
103
|
total: i
|
|
109
|
-
}), await
|
|
104
|
+
}), await u());
|
|
110
105
|
}
|
|
111
106
|
return n.onProgress?.({
|
|
112
107
|
phase: "serialize",
|
|
@@ -115,23 +110,23 @@ async function d(e, t, n = {}) {
|
|
|
115
110
|
total: i
|
|
116
111
|
}), JSON.stringify(a, null, 2);
|
|
117
112
|
}
|
|
118
|
-
function
|
|
119
|
-
return (e == null ? "" : e instanceof Date ? e
|
|
113
|
+
function m(e) {
|
|
114
|
+
return (e == null ? "" : e instanceof Date ? a(e) : String(e)).replace(/\\/g, "\\\\").replace(/\|/g, "\\|").replace(/\r?\n/g, "<br>");
|
|
120
115
|
}
|
|
121
|
-
async function
|
|
122
|
-
let r = Math.max(1, n.chunkRows ?? 5e3), i = e.length, a = n.align ?? {}, o = e[0],
|
|
116
|
+
async function h(e, t, n = {}) {
|
|
117
|
+
let r = Math.max(1, n.chunkRows ?? 5e3), i = e.length, a = n.align ?? {}, o = e[0], s = `| ${t.map((e) => m(o?.[e])).join(" | ")} |`, c = `| ${t.map((e) => {
|
|
123
118
|
let t = a[e];
|
|
124
119
|
return t === "right" ? "---:" : t === "center" ? ":--:" : "---";
|
|
125
120
|
}).join(" | ")} |`, d = [];
|
|
126
121
|
for (let a = 1; a < e.length; a++) {
|
|
127
|
-
|
|
122
|
+
l(n.signal);
|
|
128
123
|
let o = e[a];
|
|
129
|
-
d.push(`| ${t.map((e) =>
|
|
124
|
+
d.push(`| ${t.map((e) => m(o[e])).join(" | ")} |`), a > 0 && a % r === 0 && (n.onProgress?.({
|
|
130
125
|
phase: "serialize",
|
|
131
126
|
ratio: a / i,
|
|
132
127
|
row: a,
|
|
133
128
|
total: i
|
|
134
|
-
}), await
|
|
129
|
+
}), await u());
|
|
135
130
|
}
|
|
136
131
|
return n.onProgress?.({
|
|
137
132
|
phase: "serialize",
|
|
@@ -139,23 +134,23 @@ async function p(e, t, n = {}) {
|
|
|
139
134
|
row: i,
|
|
140
135
|
total: i
|
|
141
136
|
}), [
|
|
142
|
-
|
|
143
|
-
|
|
137
|
+
s,
|
|
138
|
+
c,
|
|
144
139
|
...d
|
|
145
140
|
].join("\n") + "\n";
|
|
146
141
|
}
|
|
147
|
-
function
|
|
142
|
+
function g(e, t) {
|
|
148
143
|
if (typeof document > "u" || typeof URL > "u") throw Error("@svgrid/grid: export requires a browser environment");
|
|
149
144
|
let n = URL.createObjectURL(e), r = document.createElement("a");
|
|
150
145
|
r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 0);
|
|
151
146
|
}
|
|
152
|
-
function
|
|
147
|
+
function _(e, t, n) {
|
|
153
148
|
if (typeof document > "u" || typeof URL > "u") throw Error("@svgrid/grid: text export requires a browser environment");
|
|
154
|
-
|
|
149
|
+
g(new Blob([e], { type: n }), t);
|
|
155
150
|
}
|
|
156
|
-
async function
|
|
151
|
+
async function v(e) {
|
|
157
152
|
if (typeof navigator > "u" || !navigator.clipboard) throw Error("@svgrid/grid: clipboard API is unavailable in this context");
|
|
158
153
|
await navigator.clipboard.writeText(e);
|
|
159
154
|
}
|
|
160
155
|
//#endregion
|
|
161
|
-
export {
|
|
156
|
+
export { v as copyTextToClipboard, _ as downloadTextFile, s as projectGridRows, f as serializeDelimited, p as serializeJson, h as serializeMarkdown };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){try{var c=".sv-listbox.svelte-1qscmce{--_accent:var(--sg-accent,#2563eb);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));border-radius:var(--sg-radius,8px);--_fs:13px;outline:none;width:220px;margin:0;list-style:none}.sv-listbox.svelte-1qscmce:not(.is-virtual){max-height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:4px;overflow-y:auto}.sv-listbox.is-virtual.svelte-1qscmce{height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:0;position:relative;overflow:hidden}.sv-listbox.is-block.svelte-1qscmce{width:100%}.sv-listbox--sm.svelte-1qscmce{--_fs:12px}.sv-listbox--lg.svelte-1qscmce{--_fs:15px}.sv-listbox.svelte-1qscmce:focus-visible{border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox.is-invalid.svelte-1qscmce{border-color:var(--sg-danger,#dc2626)}.sv-listbox.is-invalid.svelte-1qscmce:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger,#dc2626) 22%, transparent)}.sv-listbox__vp.svelte-1qscmce{touch-action:none;position:absolute;inset:4px;overflow:hidden}.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__opt:where(.svelte-1qscmce),.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__group:where(.svelte-1qscmce){position:absolute;top:0;left:0;right:0}.sv-listbox__sb.svelte-1qscmce{z-index:2;width:10px;position:absolute;top:4px;bottom:4px;right:2px}.sv-listbox__thumb.svelte-1qscmce{background:color-mix(in srgb, currentColor 26%, transparent);cursor:default;touch-action:none;border-radius:4px;min-height:24px;position:absolute;top:0;left:2px;right:2px}.sv-listbox__thumb.svelte-1qscmce:hover,.sv-listbox__thumb.is-dragging.svelte-1qscmce{background:color-mix(in srgb, currentColor 42%, transparent)}.sv-listbox__opt.svelte-1qscmce{box-sizing:border-box;cursor:pointer;font-size:var(--_fs,13px);border-radius:6px;flex:none;align-items:center;gap:8px;padding:0 10px;display:flex}.sv-listbox__opt.is-active.svelte-1qscmce{background:var(--sg-row-hover-bg,#f1f5f9)}.sv-listbox__opt.is-selected.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 14%, transparent);color:var(--_accent);font-weight:600}.sv-listbox__opt.is-selected.is-active.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox__opt.is-disabled.svelte-1qscmce{opacity:.4;cursor:not-allowed}.sv-listbox__group.svelte-1qscmce{box-sizing:border-box;text-transform:uppercase;letter-spacing:.04em;color:var(--sg-muted,#94a3b8);align-items:flex-end;padding:8px 10px 3px;font-size:10.5px;font-weight:700;display:flex}.sv-listbox__check.svelte-1qscmce{text-align:center;width:14px;color:var(--_accent)}.sv-listbox__label.svelte-1qscmce{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.sv-listbox__hint.svelte-1qscmce{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;flex:none;margin-inline-start:8px;font-size:.9em}.sv-listbox__box.svelte-1qscmce{box-sizing:border-box;border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));background:var(--sg-input-bg,#fff);border-radius:3px;flex:none;width:14px;height:14px;position:relative}.sv-listbox__box.is-on.svelte-1qscmce{background:var(--_accent);border-color:var(--_accent)}.sv-listbox__box.is-on.svelte-1qscmce:after{content:\"\";border:solid var(--sg-input-bg,#fff);border-width:0 2px 2px 0;width:3px;height:7px;position:absolute;top:1px;left:4px;transform:rotate(45deg)}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected:where(.svelte-1qscmce){color:inherit;font-weight:inherit;background:0 0}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-active:where(.svelte-1qscmce),.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected.is-active:where(.svelte-1qscmce){background:var(--sg-row-hover-bg,#f1f5f9)}\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="GridMenus"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"GridMenus");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
2
|
import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as d, M as f, O as p, Q as m, R as h, T as g, U as _, W as v, Y as y, Z as b, _ as x, a as S, at as C, c as w, d as T, et as E, f as D, g as ee, h as O, it as k, j as A, k as j, l as M, n as N, nt as te, o as P, p as ne, q as F, rt as I, s as L, tt as re, u as R, v as z, w as B, x as ie, y as V } from "./client-DEF0GRjE.js";
|
|
3
|
-
import { c as ae, s as oe, t as H } from "./svelte-virtualizer.svelte-
|
|
4
|
-
import { S as se, h as ce, u as le, w as U } from "./SvGrid.helpers-
|
|
3
|
+
import { c as ae, s as oe, t as H } from "./svelte-virtualizer.svelte-CMX34S17.js";
|
|
4
|
+
import { S as se, h as ce, u as le, w as U } from "./SvGrid.helpers-zBkDTryR.js";
|
|
5
5
|
import { i as ue, t as W } from "./editor-contract-peBDxir_.js";
|
|
6
6
|
import { t as de } from "./SvField-Bmzp3ObZ.js";
|
|
7
7
|
import { n as G } from "./dismissable-CQ6XFXsk.js";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
+
import { i as e } from "./cell-formatting-hb3vzxhJ.js";
|
|
1
2
|
//#region ../grid/dist/SvGrid.helpers.js
|
|
2
|
-
function
|
|
3
|
+
function t(e) {
|
|
3
4
|
let t = "";
|
|
4
5
|
return e.color && (t += `color:${e.color};`), e.fontWeight != null && (t += `font-weight:${e.fontWeight};`), t;
|
|
5
6
|
}
|
|
6
|
-
function
|
|
7
|
+
function n(e) {
|
|
7
8
|
return Number.isInteger(e) ? e.toLocaleString() : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
+
function r(e, t) {
|
|
10
11
|
return `${e}:${t}`;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
+
function i(e) {
|
|
13
14
|
if (!e) return "";
|
|
14
15
|
if (typeof e == "string") return e;
|
|
15
16
|
if (Array.isArray(e)) return e.filter(Boolean).join(" ");
|
|
@@ -20,22 +21,22 @@ function r(e) {
|
|
|
20
21
|
}
|
|
21
22
|
return "";
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
+
function a(e) {
|
|
24
25
|
if (e == null || e === "") return "";
|
|
25
26
|
if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) return e;
|
|
26
27
|
let t = e instanceof Date ? e : new Date(e);
|
|
27
28
|
return Number.isNaN(t.getTime()) ? "" : t.toISOString().slice(0, 10);
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function o(e) {
|
|
30
31
|
if (e == null || e === "") return "";
|
|
31
32
|
if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(e)) return e;
|
|
32
33
|
let t = e instanceof Date ? e : new Date(e);
|
|
33
34
|
return Number.isNaN(t.getTime()) ? "" : t.toISOString().slice(0, 16);
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
+
function s(e) {
|
|
36
37
|
return String(e).replace(/-native$/, "");
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function c(e) {
|
|
39
40
|
if (e instanceof Date) return e;
|
|
40
41
|
if (typeof e == "string") {
|
|
41
42
|
let t = e.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?/);
|
|
@@ -46,23 +47,23 @@ function s(e) {
|
|
|
46
47
|
}
|
|
47
48
|
return null;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function l(e) {
|
|
50
51
|
return e ? `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}` : null;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
let n =
|
|
54
|
-
return n === "date" ?
|
|
53
|
+
function u(e, t) {
|
|
54
|
+
let n = s(e);
|
|
55
|
+
return n === "date" ? a(t) : n === "datetime" ? o(t) : String(t ?? "");
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
-
let t =
|
|
57
|
+
function d(e) {
|
|
58
|
+
let t = s(e);
|
|
58
59
|
return t === "number" ? "number" : t === "date" ? "date" : t === "datetime" ? "datetime-local" : t === "time" ? "time" : t === "password" ? "password" : t === "color" ? "color" : "text";
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function f(e) {
|
|
61
62
|
if (!e || Number.isNaN(e.getTime())) return "";
|
|
62
63
|
let t = (e) => String(e).padStart(2, "0");
|
|
63
64
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`;
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function p(e) {
|
|
66
67
|
if (!e) return null;
|
|
67
68
|
let t = /^(\d{4})-(\d{2})-(\d{2})/.exec(e);
|
|
68
69
|
if (!t) {
|
|
@@ -72,46 +73,44 @@ function f(e) {
|
|
|
72
73
|
let n = new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]));
|
|
73
74
|
return Number.isNaN(n.getTime()) ? null : n;
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function m(e) {
|
|
76
77
|
if (!e || String(e).endsWith("-native")) return !1;
|
|
77
|
-
let t =
|
|
78
|
+
let t = s(e);
|
|
78
79
|
return t === "date" || t === "datetime" || t === "time";
|
|
79
80
|
}
|
|
80
|
-
function m(e) {
|
|
81
|
-
return o(e) === "number" ? "text" : u(e);
|
|
82
|
-
}
|
|
83
81
|
function h(e) {
|
|
84
|
-
return
|
|
82
|
+
return s(e) === "number" ? "text" : d(e);
|
|
85
83
|
}
|
|
86
84
|
function g(e) {
|
|
85
|
+
return /^-?(\d*\.?\d*)(e-?\d*)?$/i.test(e);
|
|
86
|
+
}
|
|
87
|
+
function _(e) {
|
|
87
88
|
return e == null || e === "" ? [] : Array.isArray(e) ? e.filter((e) => e != null && e !== "") : [e];
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
+
function v(e, t) {
|
|
90
91
|
let n = e.find((e) => e.value === t || String(e.value) === String(t));
|
|
91
92
|
return n ? n.label : String(t ?? "");
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function y(e, t) {
|
|
94
95
|
return e.find((e) => e.value === t || String(e.value) === String(t))?.color;
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function b(e) {
|
|
97
98
|
return e ? `background: color-mix(in srgb, ${e} 22%, transparent);border-color: color-mix(in srgb, ${e} 45%, transparent);color: color-mix(in srgb, ${e} 80%, var(--sg-fg, #0f172a));` : "";
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
let t =
|
|
100
|
+
function x(e) {
|
|
101
|
+
let t = s(e);
|
|
101
102
|
return t === "number" ? "sv-grid-cell-editor sv-grid-cell-editor-number" : t === "date" ? "sv-grid-cell-editor sv-grid-cell-editor-date" : t === "datetime" ? "sv-grid-cell-editor sv-grid-cell-editor-datetime" : t === "color" ? "sv-grid-cell-editor sv-grid-cell-editor-color" : "sv-grid-cell-editor";
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
105
|
-
let t = e instanceof Date ? e : new Date(e);
|
|
106
|
-
return Number.isNaN(t.getTime()) ? null : t;
|
|
104
|
+
function S(t) {
|
|
105
|
+
return e(t);
|
|
107
106
|
}
|
|
108
|
-
function
|
|
107
|
+
function C(e, t) {
|
|
109
108
|
return Math.max(8, Math.min(e, window.innerWidth - t - 8));
|
|
110
109
|
}
|
|
111
|
-
function
|
|
110
|
+
function w(e) {
|
|
112
111
|
return typeof CSS < "u" && CSS.escape ? CSS.escape(e) : e.replace(/"/g, "\\\"");
|
|
113
112
|
}
|
|
114
|
-
function
|
|
113
|
+
function T(e, t) {
|
|
115
114
|
if (e == null || e === "") return NaN;
|
|
116
115
|
if (t) {
|
|
117
116
|
let t = (e instanceof Date ? e : new Date(String(e))).getTime();
|
|
@@ -120,11 +119,11 @@ function w(e, t) {
|
|
|
120
119
|
let n = typeof e == "number" ? e : Number(e);
|
|
121
120
|
return Number.isFinite(n) ? n : NaN;
|
|
122
121
|
}
|
|
123
|
-
function
|
|
122
|
+
function E(e) {
|
|
124
123
|
let t = Math.abs(e), n = t >= 1e3 ? 0 : t >= 100 ? 1 : t >= 1 ? 2 : 4;
|
|
125
124
|
return e.toLocaleString(void 0, { maximumFractionDigits: n });
|
|
126
125
|
}
|
|
127
|
-
function
|
|
126
|
+
function D(e) {
|
|
128
127
|
return new Date(e).toLocaleDateString(void 0, {
|
|
129
128
|
year: "numeric",
|
|
130
129
|
month: "short",
|
|
@@ -132,4 +131,4 @@ function E(e) {
|
|
|
132
131
|
});
|
|
133
132
|
}
|
|
134
133
|
//#endregion
|
|
135
|
-
export {
|
|
134
|
+
export { _ as C, f as S, v as _, w as a, i as b, D as c, h as d, r as f, y as g, d as h, b as i, E as l, x as m, t as n, l as o, u as p, C as r, n as s, S as t, p as u, g as v, m as w, c as x, T as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, C as t, D as n, E as r, F as i, G as a, H as o, I as s, J as c, L as l, O as u, Q as d, R as f, U as p, Y as m, Z as h, _ as g, at as _, b as v, d as y, et as b, f as x, g as S, h as C, i as ee, it as w, j as T, k as E, n as D, nt as te, p as ne, q as O, tt as k, w as A, x as j, y as M } from "./client-DEF0GRjE.js";
|
|
2
|
-
import { C as re, d as ie, h as ae, m as oe, o as se, p as ce, v as le, x as ue } from "./SvGrid.helpers-
|
|
2
|
+
import { C as re, d as ie, h as ae, m as oe, o as se, p as ce, v as le, x as ue } from "./SvGrid.helpers-zBkDTryR.js";
|
|
3
3
|
import { n as de, r as fe, t as pe } from "./editor-registry-DxGKqcvx.js";
|
|
4
4
|
//#region ../grid/dist/SvGridCellEditor.svelte
|
|
5
5
|
var N = T("<span class=\"sv-grid-chip sv-grid-chip-removable\"> <button type=\"button\" class=\"sv-grid-chip-remove\">×</button></span>"), P = T("<button type=\"button\" class=\"sv-grid-chip-commit\" aria-label=\"Commit chip selection\">Done</button>"), F = T("<div class=\"sv-grid-cell-editor sv-grid-cell-editor-chips\" role=\"group\"><div class=\"sv-grid-chips-row\"><!> <input class=\"sv-grid-chip-input\" type=\"text\"/> <!></div></div>"), I = T("<input type=\"checkbox\" class=\"sv-grid-fr-editor sv-grid-fr-checkbox\"/>"), L = T("<option> </option>"), R = T("<select class=\"sv-grid-cell-editor sv-grid-fr-editor\"></select>"), z = T("<input class=\"sv-grid-cell-editor sv-grid-fr-editor\"/>"), me = T("<button type=\"button\" class=\"sv-grid-checkbox\" role=\"checkbox\" aria-label=\"Edit checkbox value\"></button>"), he = T("<button type=\"button\" role=\"radio\">★</button>"), ge = T("<span class=\"sv-grid-rating-editor\" role=\"radiogroup\" aria-label=\"Rating\"><!> <button type=\"button\" aria-label=\"Clear rating\" class=\"sv-grid-rating-clear\">×</button></span>"), _e = T("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-textarea\" rows=\"4\"></textarea>"), ve = T("<button type=\"button\" class=\"sv-grid-autocomplete-option\" role=\"option\"> </button>"), ye = T("<div class=\"sv-grid-autocomplete-list\" role=\"listbox\"></div>"), be = T("<div class=\"sv-grid-autocomplete\"><input class=\"sv-grid-cell-editor sv-grid-cell-editor-autocomplete\" type=\"text\"/> <!></div>"), xe = T("<input type=\"color\"/>"), Se = T("<textarea class=\"sv-grid-cell-editor sv-grid-cell-editor-text sv-grid-cell-editor-multiline\"></textarea>"), Ce = T("<input/>");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){try{var c=".sv-grid-chart.svelte-kvdein{background:var(--sg-chart-bg,transparent);flex-direction:column;gap:8px;width:100%;display:flex;position:relative}.sv-grid-chart.is-legend-top.svelte-kvdein .sv-grid-chart-toolbar:where(.svelte-kvdein){order:-2}.sv-grid-chart.is-legend-top.svelte-kvdein .sv-grid-chart-legend:where(.svelte-kvdein){order:-1}.sv-grid-chart.is-legend-left.svelte-kvdein,.sv-grid-chart.is-legend-right.svelte-kvdein{grid-template-rows:auto 1fr auto;align-items:start;display:grid}.sv-grid-chart.is-legend-left.svelte-kvdein{grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"tb tb\"\"lg svg\"\"lg br\"}.sv-grid-chart.is-legend-right.svelte-kvdein{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"tb tb\"\"svg lg\"\"br lg\"}.sv-grid-chart.is-legend-left.svelte-kvdein .sv-grid-chart-toolbar:where(.svelte-kvdein),.sv-grid-chart.is-legend-right.svelte-kvdein .sv-grid-chart-toolbar:where(.svelte-kvdein){grid-area:tb}.sv-grid-chart.is-legend-left.svelte-kvdein .sv-grid-chart-svg:where(.svelte-kvdein),.sv-grid-chart.is-legend-right.svelte-kvdein .sv-grid-chart-svg:where(.svelte-kvdein){grid-area:svg}.sv-grid-chart.is-legend-left.svelte-kvdein .sv-grid-chart-brush-host:where(.svelte-kvdein),.sv-grid-chart.is-legend-right.svelte-kvdein .sv-grid-chart-brush-host:where(.svelte-kvdein){grid-area:br}.sv-grid-chart-brush-host.svelte-kvdein{min-width:0;display:block}.sv-grid-chart.is-legend-left.svelte-kvdein .sv-grid-chart-legend:where(.svelte-kvdein),.sv-grid-chart.is-legend-right.svelte-kvdein .sv-grid-chart-legend:where(.svelte-kvdein){grid-area:lg}.sv-grid-chart-legend.is-vertical.svelte-kvdein{flex-direction:column;align-items:flex-start;gap:4px;max-width:180px;padding-top:6px}.sv-grid-chart.is-autosize.svelte-kvdein{min-height:0}.sv-grid-chart.is-autosize.svelte-kvdein .sv-grid-chart-svg:where(.svelte-kvdein){flex:none;min-height:0}.sv-grid-chart-svg.svelte-kvdein{width:100%;height:auto;display:block}.sv-grid-chart-title.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(14px * var(--sg-chart-font-scale,1));font-family:inherit;font-weight:600}.sv-grid-chart-subtitle.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(11.5px * var(--sg-chart-font-scale,1));font-family:inherit}.sv-grid-chart-caption.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(10px * var(--sg-chart-font-scale,1));font-family:inherit}.sv-grid-chart-refband.svelte-kvdein{pointer-events:none}.sv-grid-chart-wipe.svelte-kvdein{animation:.7s cubic-bezier(.2,.7,.2,1) both svelte-kvdein-sv-grid-chart-wipe}@keyframes svelte-kvdein-sv-grid-chart-wipe{0%{width:0}}.sv-grid-chart-marks.is-enter-grow.svelte-kvdein .sv-grid-chart-bar:where(.svelte-kvdein){transform-box:fill-box;transform-origin:50% 100%;animation:.5s cubic-bezier(.2,.7,.2,1) both svelte-kvdein-sv-grid-chart-grow}@keyframes svelte-kvdein-sv-grid-chart-grow{0%{transform:scaleY(.02)}}.sv-grid-chart-marks.is-enter-none.svelte-kvdein :where(.svelte-kvdein),.sv-grid-chart-marks.is-enter-none.svelte-kvdein{animation:none!important}.sv-grid-chart-svg.is-pannable.svelte-kvdein{cursor:grab}.sv-grid-chart-svg.is-pannable.svelte-kvdein:active{cursor:grabbing}.sv-grid-chart-presets.svelte-kvdein{gap:2px;margin-right:6px;display:inline-flex}.sv-grid-chart-crumbs.svelte-kvdein{font-size:calc(11.5px * var(--sg-chart-font-scale,1));align-items:center;gap:2px;margin-right:8px;display:inline-flex}.sv-grid-chart-crumb.is-current.svelte-kvdein{color:var(--sg-fg,#0f172a);padding:0 4px;font-weight:600}.sv-grid-chart-crumb-sep.svelte-kvdein{color:var(--sg-muted,#64748b)}.sv-grid-chart-arc.is-drillable.svelte-kvdein,.sv-grid-chart-slice.is-drillable.svelte-kvdein{cursor:zoom-in}.sv-grid-chart-bar.is-selected.svelte-kvdein,.sv-grid-chart-slice.is-selected.svelte-kvdein,.sv-grid-chart-arc.is-selected.svelte-kvdein{stroke:var(--sg-fg,#0f172a);stroke-width:2px}.sv-grid-chart-dot.is-selected.svelte-kvdein{stroke:var(--sg-fg,#0f172a);stroke-width:2px;r:5}.sv-grid-chart-scatter.is-selected.svelte-kvdein{stroke:var(--sg-fg,#0f172a);stroke-width:2px;fill-opacity:1}.sv-grid-chart-preset.svelte-kvdein{padding-inline:6px}.sv-grid-chart-arc-track.svelte-kvdein{fill:var(--sg-border,#e2e8f0);opacity:.45;pointer-events:none}.sv-grid-chart-arc.svelte-kvdein{transition:opacity .1s;animation:.3s both svelte-kvdein-sv-grid-chart-in}.sv-grid-chart-ribbon.svelte-kvdein{transition:opacity .1s}.sv-grid-chart-stem.svelte-kvdein line:where(.svelte-kvdein){stroke-linecap:round}.sv-grid-chart-dot.is-stroked.svelte-kvdein{fill:none}.sv-grid-chart-tooltip.is-custom.svelte-kvdein{color:inherit;box-shadow:none;background:0 0;border:0;padding:0}.sv-grid-chart-gridline.svelte-kvdein{stroke:var(--sg-border,#e2e8f0);stroke-width:1px;opacity:.6}.sv-grid-chart-gridline.is-zero.svelte-kvdein{stroke:var(--sg-muted,#94a3b8);opacity:.9}.sv-grid-chart-axis.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(10px * var(--sg-chart-font-scale,1));font-family:inherit}.sv-grid-chart-axis-title.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(11px * var(--sg-chart-font-scale,1));font-family:inherit;font-weight:600}.sv-grid-chart-group-label.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-weight:600}.sv-grid-chart-crosshair.svelte-kvdein{stroke:var(--sg-accent,#2563eb);stroke-width:1px;stroke-dasharray:3 3;opacity:.65;pointer-events:none}.sv-grid-chart-callout.svelte-kvdein{opacity:.8;pointer-events:none}.sv-grid-chart-callout-label.svelte-kvdein{font-size:calc(10.5px * var(--sg-chart-font-scale,1));fill:var(--sg-fg,#0f172a);pointer-events:none;font-family:inherit}.sv-grid-chart-crosshair-label.svelte-kvdein rect:where(.svelte-kvdein){fill:var(--sg-fg,#0f172a);opacity:.85}.sv-grid-chart-crosshair-label.svelte-kvdein text:where(.svelte-kvdein){fill:var(--sg-bg,#fff);font-size:calc(9.5px * var(--sg-chart-font-scale,1));font-family:inherit;font-weight:600}.sv-grid-chart-refline.svelte-kvdein{stroke-width:1.5px;opacity:.9;pointer-events:none}.sv-grid-chart-reflabel.svelte-kvdein{font-size:calc(9.5px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-overlay.svelte-kvdein{opacity:.85;pointer-events:none}.sv-grid-chart-annotation-marker.svelte-kvdein{pointer-events:none}.sv-grid-chart-annotation-marker.has-text.svelte-kvdein{pointer-events:auto;cursor:help}.sv-grid-chart-annotation-marker.svelte-kvdein:focus-visible{outline:2px solid var(--sg-accent,#2563eb);outline-offset:2px}.sv-grid-chart-annotation-label.svelte-kvdein{font-size:calc(10px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-serieslabel.svelte-kvdein{font-size:calc(10.5px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:600}.sv-grid-chart-annotation-flagtext.svelte-kvdein{font-size:calc(9px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-refpill.svelte-kvdein text:where(.svelte-kvdein){font-size:calc(9.5px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-drawing-hit.svelte-kvdein{stroke:#0000;stroke-width:10px;fill:#0000;pointer-events:stroke}.sv-grid-chart-drawing.is-fib.svelte-kvdein .sv-grid-chart-drawing-hit:where(.svelte-kvdein),.sv-grid-chart-drawing.is-rect.svelte-kvdein rect:where(.svelte-kvdein),.sv-grid-chart-drawing.is-text.svelte-kvdein text:where(.svelte-kvdein){pointer-events:all}.sv-grid-chart-drawing[role=button].svelte-kvdein{cursor:pointer}.sv-grid-chart-drawing.svelte-kvdein:focus-visible{outline:none}.sv-grid-chart-drawing.is-selected.svelte-kvdein line:where(.svelte-kvdein),.sv-grid-chart-drawing.is-selected.svelte-kvdein rect:where(.svelte-kvdein),.sv-grid-chart-drawing.svelte-kvdein:focus-visible line:where(.svelte-kvdein),.sv-grid-chart-drawing.svelte-kvdein:focus-visible rect:where(.svelte-kvdein){filter:drop-shadow(0 0 2px var(--sg-accent,#2563eb))}.sv-grid-chart-drawing-label.svelte-kvdein{font-size:calc(9px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:600}.sv-grid-chart-drawing-text.svelte-kvdein{font-size:calc(11px * var(--sg-chart-font-scale,1));font-family:inherit;font-weight:600}.sv-grid-chart-drawing-handle.svelte-kvdein{cursor:move}.sv-grid-chart-textdraft.svelte-kvdein{z-index:11;width:160px;font:inherit;font-size:calc(12px * var(--sg-chart-font-scale,1));border:1px solid var(--sg-accent,#2563eb);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);border-radius:4px;padding:3px 6px;position:absolute;transform:translateY(-50%);box-shadow:0 4px 12px #00000026}.sv-grid-chart-svg.is-drawing.svelte-kvdein{cursor:crosshair}.sv-grid-chart-drawtools.svelte-kvdein{border-right:1px solid var(--sg-border,#e2e8f0);gap:2px;margin-right:2px;padding-right:6px;display:inline-flex}.sv-grid-chart-heatcell.svelte-kvdein{stroke:var(--sg-border,#cbd5e1);stroke-width:1px;cursor:default;transition:opacity .1s}.sv-grid-chart-svg.is-clickable.svelte-kvdein .sv-grid-chart-heatcell:where(.svelte-kvdein){cursor:pointer}.sv-grid-chart-heatcell.svelte-kvdein:hover{opacity:.85}.sv-grid-chart-heatlabel.svelte-kvdein{font-size:calc(10px * var(--sg-chart-font-scale,1));pointer-events:none;-webkit-user-select:none;user-select:none;font-family:inherit;font-weight:600}.sv-grid-chart-heatlegend.svelte-kvdein{stroke:var(--sg-border,#cbd5e1);stroke-width:1px}.sv-grid-chart-funnel-seg.svelte-kvdein{stroke:var(--sg-bg,#fff);stroke-width:2px;cursor:default;transition:opacity .1s}.sv-grid-chart-svg.is-clickable.svelte-kvdein .sv-grid-chart-funnel-seg:where(.svelte-kvdein){cursor:pointer}.sv-grid-chart-funnel-seg.svelte-kvdein:hover{opacity:.88}.sv-grid-chart-funnel-label.svelte-kvdein{font-size:calc(11px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-funnel-value.svelte-kvdein{font-size:calc(10px * var(--sg-chart-font-scale,1));opacity:.85;pointer-events:none;font-family:inherit}.sv-grid-chart-radar-ring.svelte-kvdein{fill:none;stroke:var(--sg-border,#e2e8f0);stroke-width:1px;opacity:.6}.sv-grid-chart-radar-spoke.svelte-kvdein{stroke:var(--sg-border,#e2e8f0);stroke-width:1px;opacity:.6}.sv-grid-chart-radar-poly.svelte-kvdein{pointer-events:none;transition:opacity .1s}.sv-grid-chart-radar-dot.svelte-kvdein{cursor:default;transition:r .1s}.sv-grid-chart-radar-dot.svelte-kvdein:hover{r:4.5}.sv-grid-chart-calendar-cell.svelte-kvdein{stroke:var(--sg-border,#e2e8f0);stroke-width:.5px;cursor:default;transition:opacity .1s}.sv-grid-chart-calendar-cell.is-blank.svelte-kvdein{stroke-opacity:.5}.sv-grid-chart-calendar-cell.svelte-kvdein:hover{opacity:.85}.sv-grid-chart-calendar-legend.svelte-kvdein{stroke:var(--sg-border,#cbd5e1);stroke-width:.5px}.sv-grid-chart-gauge-value.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(22px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:800}.sv-grid-chart-gauge-tick.svelte-kvdein{stroke:var(--sg-muted,#94a3b8);stroke-width:1px;opacity:.4}.sv-grid-chart-gauge-tick.is-major.svelte-kvdein{stroke-width:2px;opacity:.7}.sv-grid-chart-gauge-needle.svelte-kvdein{fill:var(--sg-fg,#0f172a);stroke:var(--sg-bg,#fff);stroke-width:.75px;stroke-linejoin:round}.sv-grid-chart-gauge-hub.svelte-kvdein{fill:var(--sg-fg,#0f172a);stroke:var(--sg-bg,#fff);stroke-width:2px}.sv-grid-chart-gauge-hub-dot.svelte-kvdein{fill:var(--sg-bg,#fff)}.sv-grid-chart-treemap-cell.svelte-kvdein{stroke:var(--sg-bg,#fff);stroke-width:1px;cursor:default;transition:opacity .1s}.sv-grid-chart-svg.is-clickable.svelte-kvdein .sv-grid-chart-treemap-cell:where(.svelte-kvdein){cursor:pointer}.sv-grid-chart-treemap-cell.svelte-kvdein:hover{opacity:.88}.sv-grid-chart-treemap-label.svelte-kvdein{font-size:calc(11px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:600}.sv-grid-chart-treemap-value.svelte-kvdein{font-size:calc(10px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit}.sv-grid-chart-sankey-node.svelte-kvdein{cursor:default;transition:opacity .1s}.sv-grid-chart-sankey-node.svelte-kvdein:hover{opacity:.88}.sv-grid-chart-sankey-link.svelte-kvdein{cursor:default;transition:stroke-opacity .1s}.sv-grid-chart-sankey-link.svelte-kvdein:hover{stroke-opacity:.6}.sv-grid-chart-sankey-label.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(11px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:600}.sv-grid-chart-brush.svelte-kvdein{border-top:1px solid var(--sg-border,#e2e8f0);-webkit-user-select:none;user-select:none;touch-action:none;width:100%;height:auto;margin-top:4px;display:block}.sv-grid-chart-brush-mask.svelte-kvdein{fill:var(--sg-bg,#fff);fill-opacity:.65;pointer-events:none}.sv-grid-chart-brush-window.svelte-kvdein{fill:var(--sg-accent,#2563eb);fill-opacity:.1;stroke:var(--sg-accent,#2563eb);stroke-width:1px;cursor:grab}.sv-grid-chart-brush-window.svelte-kvdein:active{cursor:grabbing}.sv-grid-chart-brush-handle.svelte-kvdein{fill:var(--sg-accent,#2563eb);fill-opacity:.4;cursor:ew-resize}.sv-grid-chart-brush-handle.svelte-kvdein:hover{fill-opacity:.7}.sv-grid-chart-scatter.svelte-kvdein{stroke-width:1px;transition:opacity .2s}.is-clickable.svelte-kvdein .sv-grid-chart-scatter:where(.svelte-kvdein),.sv-grid-chart-scatter.svelte-kvdein:hover{cursor:pointer}.sv-grid-chart-cat-hit.svelte-kvdein{fill:#0000}.sv-grid-chart-cat-hit.svelte-kvdein:focus-visible,.sv-grid-chart-slice.svelte-kvdein:focus-visible,.sv-grid-chart-arc.svelte-kvdein:focus-visible,.sv-grid-chart-heatcell.svelte-kvdein:focus-visible,.sv-grid-chart-funnel-seg.svelte-kvdein:focus-visible,.sv-grid-chart-treemap-cell.svelte-kvdein:focus-visible,.sv-grid-chart-sankey-node.svelte-kvdein:focus-visible,.sv-grid-chart-sankey-link.svelte-kvdein:focus-visible,.sv-grid-chart-calendar-cell.svelte-kvdein:focus-visible,.sv-grid-chart-radar-dot.svelte-kvdein:focus-visible,.sv-grid-chart-scatter.svelte-kvdein:focus-visible,.sv-grid-chart-brush.svelte-kvdein:focus-visible{outline:2px solid var(--sg-accent,#2563eb);outline-offset:1px}.sv-grid-chart-datalabel.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(9.5px * var(--sg-chart-font-scale,1));font-variant-numeric:tabular-nums;pointer-events:none;font-weight:600}.sv-grid-chart-datalabel-leader.svelte-kvdein{stroke:var(--sg-muted,#64748b);stroke-width:1px;pointer-events:none}.sv-grid-chart-datalabel.on-bar.svelte-kvdein{fill:#fff}.sv-grid-chart-donut-total.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(16px * var(--sg-chart-font-scale,1));font-variant-numeric:tabular-nums;font-weight:800}.sv-grid-chart-donut-label.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(10px * var(--sg-chart-font-scale,1))}.sv-grid-chart-bar.svelte-kvdein{transition:x .3s,y .3s,width .3s,height .3s}.sv-grid-chart-dot.svelte-kvdein{transition:cx .3s,cy .3s}.sv-grid-chart-candle.svelte-kvdein{stroke-width:1px;transition:x .3s,y .3s,width .3s,height .3s}.sv-grid-chart-wick.svelte-kvdein,.sv-grid-chart-ohlc.svelte-kvdein{stroke-width:1px;shape-rendering:crispedges}.sv-grid-chart-box.svelte-kvdein{stroke-width:1px;transition:x .3s,y .3s,width .3s,height .3s}.sv-grid-chart-whisker.svelte-kvdein,.sv-grid-chart-errorbar.svelte-kvdein{stroke-width:1px;shape-rendering:crispedges}.sv-grid-chart-median.svelte-kvdein{stroke-width:2px;shape-rendering:crispedges}.sv-grid-chart-outlier.svelte-kvdein{stroke-width:1px}.is-clickable.svelte-kvdein .sv-grid-chart-cat-hit:where(.svelte-kvdein),.is-clickable.svelte-kvdein .sv-grid-chart-slice:where(.svelte-kvdein){cursor:pointer}.sv-grid-chart-empty.svelte-kvdein{color:var(--sg-muted,#94a3b8);font-size:calc(13px * var(--sg-chart-font-scale,1));pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.sv-grid-chart-toolbar.svelte-kvdein{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.sv-grid-chart-tool.svelte-kvdein{border:1px solid var(--sg-border,#cbd5e1);background:var(--sg-bg,#fff);color:var(--sg-fg,#1e293b);font-size:calc(11px * var(--sg-chart-font-scale,1));cursor:pointer;border-radius:4px;align-items:center;gap:4px;padding:3px 8px;font-weight:500;transition:background-color .1s,border-color .1s;display:inline-flex}.sv-grid-chart-tool.svelte-kvdein:hover{background:var(--sg-row-hover-bg,#f1f5f9);border-color:var(--sg-accent,#2563eb)}.sv-grid-chart-tool.is-on.svelte-kvdein{background:var(--sg-accent,#2563eb);border-color:var(--sg-accent,#2563eb);color:var(--sg-on-accent,#fff)}.sv-grid-chart-svg.is-annotating.svelte-kvdein{cursor:copy}.sv-grid-chart-annotation-marker.is-removable.svelte-kvdein{cursor:pointer}.sv-grid-chart-svg.is-zoomable.svelte-kvdein{cursor:crosshair}.sv-grid-chart-svg.is-dragging.svelte-kvdein{cursor:crosshair;-webkit-user-select:none;user-select:none}.sv-grid-chart-zoom-rect.svelte-kvdein{fill:var(--sg-accent,#2563eb);fill-opacity:.12;stroke:var(--sg-accent,#2563eb);stroke-width:1px;stroke-dasharray:3 3;pointer-events:none}.sv-grid-chart-tooltip.svelte-kvdein{z-index:10;pointer-events:none;white-space:nowrap;background:var(--sg-fg,#0f172a);color:var(--sg-bg,#fff);font-size:calc(11.5px * var(--sg-chart-font-scale,1));border-radius:6px;flex-direction:column;gap:1px;padding:6px 9px;line-height:1.4;display:flex;position:absolute;transform:translate(-50%,calc(-100% - 12px));box-shadow:0 6px 18px #00000047}.sv-grid-chart-tooltip.is-below.svelte-kvdein{transform:translate(-50%,16px)}.sv-grid-chart-tooltip.is-fixed.svelte-kvdein{transform:none}.sv-grid-chart-tooltip.is-fixed.is-right.svelte-kvdein{transform:translate(-100%)}.sv-grid-chart-tooltip.is-fixed.is-bottom.svelte-kvdein{transform:translateY(-100%)}.sv-grid-chart-tooltip.is-fixed.is-right.is-bottom.svelte-kvdein{transform:translate(-100%,-100%)}.sv-grid-chart-tooltip.is-pinned.svelte-kvdein{pointer-events:auto;-webkit-user-select:text;user-select:text;box-shadow:0 0 0 2px var(--sg-accent,#2563eb), 0 6px 18px #00000047}.sv-grid-chart-tooltip-title.svelte-kvdein{opacity:.75;font-size:calc(10.5px * var(--sg-chart-font-scale,1));margin-bottom:1px}.sv-grid-chart-tooltip-row.svelte-kvdein{align-items:center;gap:6px;display:flex}.sv-grid-chart-tooltip-dot.svelte-kvdein{border-radius:2px;flex-shrink:0;width:8px;height:8px}.sv-grid-chart-tooltip-row-label.svelte-kvdein{opacity:.85}.sv-grid-chart-tooltip-row-value.svelte-kvdein{font-variant-numeric:tabular-nums;margin-left:auto;padding-left:10px;font-weight:700}.sv-grid-chart-legend.svelte-kvdein{font-size:calc(12px * var(--sg-chart-font-scale,1));color:var(--sg-fg,#0f172a);flex-wrap:wrap;gap:6px 12px;display:flex}.sv-grid-chart-legend-item.svelte-kvdein{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;align-items:center;gap:6px;padding:1px 2px;display:inline-flex}.sv-grid-chart-legend-item.svelte-kvdein:disabled{cursor:default}.sv-grid-chart-legend-item.is-off.svelte-kvdein{color:var(--sg-muted,#94a3b8);text-decoration:line-through}.sv-grid-chart-legend-item.is-isolated.svelte-kvdein{background:var(--sg-header-bg,#f1f5f9);font-weight:700}.sv-grid-chart-legend-more.svelte-kvdein{border:1px dashed var(--sg-border,#cbd5e1);color:var(--sg-muted,#64748b);font:inherit;font-size:calc(11px * var(--sg-chart-font-scale,1));cursor:pointer;background:0 0;border-radius:999px;padding:1px 7px}.sv-grid-chart-legend-more.svelte-kvdein:hover{color:var(--sg-fg,#0f172a);border-color:var(--sg-accent,#2563eb)}.sv-grid-chart-sr-only.svelte-kvdein{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.sv-grid-chart-swatch.svelte-kvdein{box-sizing:border-box;border:1.5px solid #0000;border-radius:3px;width:12px;height:12px;display:inline-block}@keyframes svelte-kvdein-sv-grid-chart-in{0%{opacity:0}to{opacity:1}}.sv-grid-chart-bar.svelte-kvdein,.sv-grid-chart-linepath.svelte-kvdein,.sv-grid-chart-area.svelte-kvdein,.sv-grid-chart-slice.svelte-kvdein,.sv-grid-chart-candle.svelte-kvdein,.sv-grid-chart-box.svelte-kvdein,.sv-grid-chart-funnel-seg.svelte-kvdein,.sv-grid-chart-heatcell.svelte-kvdein,.sv-grid-chart-treemap-cell.svelte-kvdein{animation:.3s ease-out both svelte-kvdein-sv-grid-chart-in}@media (prefers-reduced-motion:reduce){.sv-grid-chart-bar.svelte-kvdein,.sv-grid-chart-dot.svelte-kvdein,.sv-grid-chart-candle.svelte-kvdein,.sv-grid-chart-box.svelte-kvdein{transition:none}.sv-grid-chart-bar.svelte-kvdein,.sv-grid-chart-linepath.svelte-kvdein,.sv-grid-chart-area.svelte-kvdein,.sv-grid-chart-slice.svelte-kvdein,.sv-grid-chart-candle.svelte-kvdein,.sv-grid-chart-box.svelte-kvdein,.sv-grid-chart-funnel-seg.svelte-kvdein,.sv-grid-chart-heatcell.svelte-kvdein,.sv-grid-chart-treemap-cell.svelte-kvdein{animation:none}}@media (forced-colors:active){.sv-grid-chart-svg.svelte-kvdein,.sv-grid-chart-brush.svelte-kvdein,.sv-grid-chart-swatch.svelte-kvdein{forced-color-adjust:none}.sv-grid-chart-axis.svelte-kvdein,.sv-grid-chart-axis-title.svelte-kvdein,.sv-grid-chart-title.svelte-kvdein,.sv-grid-chart-subtitle.svelte-kvdein,.sv-grid-chart-caption.svelte-kvdein,.sv-grid-chart-datalabel.svelte-kvdein,.sv-grid-chart-callout-label.svelte-kvdein,.sv-grid-chart-donut-total.svelte-kvdein,.sv-grid-chart-donut-label.svelte-kvdein,.sv-grid-chart-sankey-label.svelte-kvdein,.sv-grid-chart-annotation-label.svelte-kvdein{fill:canvastext}.sv-grid-chart-gridline.svelte-kvdein{stroke:graytext;opacity:1}.sv-grid-chart-crosshair.svelte-kvdein{stroke:highlight;opacity:1}.sv-grid-chart-crosshair-label.svelte-kvdein rect:where(.svelte-kvdein),.sv-grid-chart-refpill.svelte-kvdein rect:where(.svelte-kvdein){fill:highlight;opacity:1}.sv-grid-chart-crosshair-label.svelte-kvdein text:where(.svelte-kvdein),.sv-grid-chart-refpill.svelte-kvdein text:where(.svelte-kvdein){fill:highlighttext}.sv-grid-chart-cat-hit.svelte-kvdein:focus-visible,.sv-grid-chart-slice.svelte-kvdein:focus-visible,.sv-grid-chart-arc.svelte-kvdein:focus-visible,.sv-grid-chart-heatcell.svelte-kvdein:focus-visible,.sv-grid-chart-funnel-seg.svelte-kvdein:focus-visible,.sv-grid-chart-treemap-cell.svelte-kvdein:focus-visible,.sv-grid-chart-sankey-node.svelte-kvdein:focus-visible,.sv-grid-chart-sankey-link.svelte-kvdein:focus-visible,.sv-grid-chart-calendar-cell.svelte-kvdein:focus-visible,.sv-grid-chart-radar-dot.svelte-kvdein:focus-visible,.sv-grid-chart-scatter.svelte-kvdein:focus-visible,.sv-grid-chart-brush.svelte-kvdein:focus-visible,.sv-grid-chart-annotation-marker.svelte-kvdein:focus-visible{outline:3px solid highlight}.sv-grid-chart-slice.is-selected.svelte-kvdein,.sv-grid-chart-arc.is-selected.svelte-kvdein{stroke:highlight;stroke-width:3px}.sv-grid-chart-brush-mask.svelte-kvdein{fill:canvas;fill-opacity:.7}.sv-grid-chart-brush-window.svelte-kvdein{stroke:highlight;fill:highlight;fill-opacity:.2}.sv-grid-chart-brush-handle.svelte-kvdein{fill:highlight}.sv-grid-chart-tooltip.svelte-kvdein{border:1px solid canvastext}.sv-grid-chart-legend-item.is-off.svelte-kvdein .sv-grid-chart-swatch:where(.svelte-kvdein){forced-color-adjust:auto}}\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="SvGridChart"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"SvGridChart");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
|
-
import { C as e, D as t, E as n, O as r, T as i, _ as a, a as o, b as s, d as c, g as l, i as u, j as d, n as ee, t as te, v as ne, w as re, x as ie, y as f } from "./chart-
|
|
2
|
+
import { C as e, D as t, E as n, O as r, T as i, _ as a, a as o, b as s, d as c, g as l, i as u, j as d, n as ee, t as te, v as ne, w as re, x as ie, y as f } from "./chart-nwSa4jQe.js";
|
|
3
3
|
import { A as p, B as ae, C as oe, D as se, E as m, F as ce, H as h, I as g, J as _, L as v, M as y, O as b, P as le, Q as x, R as S, T as C, U as ue, V as de, X as fe, Y as w, Z as T, a as pe, d as me, et as E, f as D, it as O, j as k, k as A, n as j, nt as he, o as ge, q as M, rt as _e, s as ve, tt as ye, v as N, w as P, x as be, y as F, z as xe } from "./client-DEF0GRjE.js";
|
|
4
4
|
import { a as Se } from "./editor-contract-peBDxir_.js";
|
|
5
5
|
//#region ../grid/dist/chart-zoom.js
|
|
@@ -454,7 +454,7 @@ function ni(ne, f) {
|
|
|
454
454
|
return;
|
|
455
455
|
}
|
|
456
456
|
let e = S(W), t = !0;
|
|
457
|
-
return import("./chart-summary-
|
|
457
|
+
return import("./chart-summary-BL4WDgEu.js").then(({ chartSummary: n }) => {
|
|
458
458
|
t && T(Ye, n(e), !0);
|
|
459
459
|
}), () => {
|
|
460
460
|
t = !1;
|
|
@@ -2029,7 +2029,7 @@ function ni(ne, f) {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
async function $s() {
|
|
2031
2031
|
if (!S(ss)) return;
|
|
2032
|
-
let e = await import("./chart-export-pdf-
|
|
2032
|
+
let e = await import("./chart-export-pdf-hJVuR7_z.js"), t = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
2033
2033
|
await e.downloadChartPdf(S(ss), `chart-${t}.pdf`, {
|
|
2034
2034
|
title: S(B).title,
|
|
2035
2035
|
subtitle: S(B).subtitle,
|
|
@@ -2037,7 +2037,7 @@ function ni(ne, f) {
|
|
|
2037
2037
|
});
|
|
2038
2038
|
}
|
|
2039
2039
|
async function ec() {
|
|
2040
|
-
S(ss) && (await import("./chart-export-pdf-
|
|
2040
|
+
S(ss) && (await import("./chart-export-pdf-hJVuR7_z.js")).printChart(S(ss), { title: S(B).title });
|
|
2041
2041
|
}
|
|
2042
2042
|
async function tc() {
|
|
2043
2043
|
let e = Ys();
|
|
@@ -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
|
-
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-
|
|
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
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
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-BSNYAW_W.js";
|
|
9
|
+
import { n as X, t as Z } from "./SvGridChartPanel-DkIR-3rA.js";
|
|
10
10
|
//#region ../grid/dist/a11y/scroll-lock.js
|
|
11
11
|
var Q = 0, re = "", $ = "";
|
|
12
12
|
function ie() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function(){try{var c=".sv-chart-panes.svelte-14dx6di{flex-direction:column;gap:2px;min-width:0;display:flex}.sv-chart-pane.svelte-14dx6di{min-width:0;position:relative}.sv-chart-pane-title.svelte-14dx6di{z-index:1;color:var(--sg-muted,#64748b);pointer-events:none;font-size:10px;font-weight:600;position:absolute;top:2px}\n";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="SvGridChartPanel"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"SvGridChartPanel");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
|
-
import { S as e, h as t } from "./chart-
|
|
2
|
+
import { S as e, h as t } from "./chart-nwSa4jQe.js";
|
|
3
3
|
import { A as n, C as r, E as i, F as a, H as o, I as s, J as c, L as l, M as u, O as d, P as f, Q as p, R as m, S as h, U as g, Y as _, Z as v, _ as y, a as b, d as x, et as S, f as C, g as w, h as T, i as E, it as D, j as O, k, n as A, nt as ee, o as te, p as j, q as M, r as ne, s as re, tt as ie, v as ae, w as N, y as P } from "./client-DEF0GRjE.js";
|
|
4
4
|
import { a as F } from "./editor-contract-peBDxir_.js";
|
|
5
|
-
import { a as oe, n as se, o as ce, r as le, s as ue, t as de } from "./SvGridChart-
|
|
5
|
+
import { a as oe, n as se, o as ce, r as le, s as ue, t as de } from "./SvGridChart-BSNYAW_W.js";
|
|
6
6
|
//#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
|
|
7
7
|
function I(e) {
|
|
8
8
|
let t = e - 1;
|
|
@@ -1203,7 +1203,7 @@ function Et(e, t) {
|
|
|
1203
1203
|
v(u, !0);
|
|
1204
1204
|
return;
|
|
1205
1205
|
}
|
|
1206
|
-
import("./SvGridChartBuilder-
|
|
1206
|
+
import("./SvGridChartBuilder-DDl_Bv8k.js").then((e) => {
|
|
1207
1207
|
v(a, e.default, !0), v(u, !0);
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
@@ -1285,11 +1285,11 @@ function Et(e, t) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
async function Ne() {
|
|
1287
1287
|
let e = Oe();
|
|
1288
|
-
v(W, !1), e && await (await import("./chart-export-pdf-
|
|
1288
|
+
v(W, !1), e && await (await import("./chart-export-pdf-hJVuR7_z.js")).downloadChartPdf(e, "chart.pdf", { title: m(z)?.title ?? w().charts[w().activeChartIndex]?.title });
|
|
1289
1289
|
}
|
|
1290
1290
|
async function Pe() {
|
|
1291
1291
|
let e = Oe();
|
|
1292
|
-
v(W, !1), e && (await import("./chart-export-pdf-
|
|
1292
|
+
v(W, !1), e && (await import("./chart-export-pdf-hJVuR7_z.js")).printChart(e, { title: m(z)?.title ?? w().charts[w().activeChartIndex]?.title });
|
|
1293
1293
|
}
|
|
1294
1294
|
async function Fe() {
|
|
1295
1295
|
let e = Oe();
|
|
@@ -1322,7 +1322,7 @@ function Et(e, t) {
|
|
|
1322
1322
|
});
|
|
1323
1323
|
async function Ve() {
|
|
1324
1324
|
if (v(W, !1), !m(z)) return;
|
|
1325
|
-
let { chartSummary: e } = await import("./chart-summary-
|
|
1325
|
+
let { chartSummary: e } = await import("./chart-summary-BL4WDgEu.js"), t = e(m(z));
|
|
1326
1326
|
try {
|
|
1327
1327
|
await navigator.clipboard?.writeText(t);
|
|
1328
1328
|
} catch {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){try{var c=".sv-grid-chart-view.svelte-733vyy{box-sizing:border-box;width:100%;height:100%;min-height:0;display:grid}\n";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="SvGridChartView"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"SvGridChartView");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
|
-
import { s as e } from "./chart-
|
|
2
|
+
import { s as e } from "./chart-nwSa4jQe.js";
|
|
3
3
|
import { R as t, et as n, it as r, j as i, k as a, nt as o, q as s, tt as c } from "./client-DEF0GRjE.js";
|
|
4
|
-
import { t as l } from "./SvGridChart-
|
|
4
|
+
import { t as l } from "./SvGridChart-BSNYAW_W.js";
|
|
5
5
|
//#region ../grid/dist/SvGridChartView.svelte
|
|
6
6
|
var u = i("<div class=\"sv-grid-chart-view svelte-733vyy\"><!></div>");
|
|
7
7
|
function d(i, d) {
|