@svgrid/grid-wc 3.0.8 → 3.0.10
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,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
2
|
import { S as e, h as t } from "./chart-nwSa4jQe.js";
|
|
3
|
-
import {
|
|
3
|
+
import { $ as n, A as r, C as i, D as a, F as o, I as s, J as c, L as l, M as u, N as d, Q as f, R as p, S as m, U as h, W as g, X as _, Y as v, _ as y, a as b, at as x, d as S, f as C, g as w, h as T, i as E, j as ee, k as D, n as O, nt as k, o as te, p as A, r as ne, rt as re, s as ie, tt as j, v as ae, w as M, y as N, z as P } from "./client-wYhMjrKG.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-Bj2Pr2u9.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;
|
|
@@ -31,10 +31,10 @@ function fe(e) {
|
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region ../grid/dist/SvChartPanes.svelte
|
|
34
|
-
var z =
|
|
35
|
-
function me(t,
|
|
36
|
-
|
|
37
|
-
let
|
|
34
|
+
var z = u("<div class=\"sv-chart-pane is-indicator svelte-14dx6di\"><span class=\"sv-chart-pane-title svelte-14dx6di\"> </span> <!></div>"), pe = u("<div class=\"sv-chart-panes svelte-14dx6di\"><div class=\"sv-chart-pane is-main svelte-14dx6di\"><!></div> <!></div>");
|
|
35
|
+
function me(t, i) {
|
|
36
|
+
re(i, !0);
|
|
37
|
+
let a = O(i, "indicators", 19, () => []), o = O(i, "axisWidth", 3, 56), s = O(i, "zoom", 15, null), l = ne(i, [
|
|
38
38
|
"$$slots",
|
|
39
39
|
"$$events",
|
|
40
40
|
"$$legacy",
|
|
@@ -47,102 +47,102 @@ function me(t, n) {
|
|
|
47
47
|
"zoomable",
|
|
48
48
|
"legend",
|
|
49
49
|
"toolbar"
|
|
50
|
-
]),
|
|
51
|
-
...
|
|
52
|
-
...
|
|
50
|
+
]), u = `svcp-${Math.random().toString(36).slice(2, 8)}`, d = j(() => i.syncGroup ?? u), p = n(0), m = (e) => P(p) > 0 && !e.width ? { width: Math.round(P(p)) } : {}, g = j(() => ({
|
|
51
|
+
...i.spec,
|
|
52
|
+
...m(i.spec),
|
|
53
53
|
xAxis: {
|
|
54
|
-
...
|
|
55
|
-
...
|
|
54
|
+
...i.spec.xAxis,
|
|
55
|
+
...a().length ? { labels: !1 } : {}
|
|
56
56
|
},
|
|
57
57
|
yAxis: {
|
|
58
|
-
...
|
|
59
|
-
width:
|
|
58
|
+
...i.spec.yAxis,
|
|
59
|
+
width: o()
|
|
60
60
|
},
|
|
61
|
-
...
|
|
62
|
-
...
|
|
63
|
-
width:
|
|
61
|
+
...i.spec.y2Axis || i.spec.series.some((e) => e.axis === "right") ? { y2Axis: {
|
|
62
|
+
...i.spec.y2Axis,
|
|
63
|
+
width: o()
|
|
64
64
|
} } : {}
|
|
65
|
-
})),
|
|
66
|
-
let { title:
|
|
65
|
+
})), v = j(() => a().map((t, n) => {
|
|
66
|
+
let { title: r, ...s } = e(i.spec, t);
|
|
67
67
|
return {
|
|
68
|
-
title:
|
|
68
|
+
title: r ?? t.kind,
|
|
69
69
|
spec: {
|
|
70
70
|
...s,
|
|
71
|
-
...
|
|
71
|
+
...m(s),
|
|
72
72
|
xAxis: {
|
|
73
73
|
...s.xAxis,
|
|
74
|
-
labels:
|
|
74
|
+
labels: n === a().length - 1
|
|
75
75
|
},
|
|
76
76
|
yAxis: {
|
|
77
77
|
...s.yAxis,
|
|
78
|
-
width:
|
|
78
|
+
width: o()
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
}));
|
|
83
|
-
var y = pe(), b =
|
|
84
|
-
de(
|
|
83
|
+
var y = pe(), b = c(y), S = c(b);
|
|
84
|
+
de(S, E({
|
|
85
85
|
get spec() {
|
|
86
|
-
return
|
|
86
|
+
return P(g);
|
|
87
87
|
},
|
|
88
88
|
get syncGroup() {
|
|
89
|
-
return
|
|
89
|
+
return P(d);
|
|
90
90
|
},
|
|
91
91
|
get onZoom() {
|
|
92
|
-
return
|
|
92
|
+
return i.onZoom;
|
|
93
93
|
},
|
|
94
94
|
get zoomable() {
|
|
95
|
-
return
|
|
95
|
+
return i.zoomable;
|
|
96
96
|
},
|
|
97
97
|
get legend() {
|
|
98
|
-
return
|
|
98
|
+
return i.legend;
|
|
99
99
|
},
|
|
100
100
|
get toolbar() {
|
|
101
|
-
return
|
|
101
|
+
return i.toolbar;
|
|
102
102
|
}
|
|
103
|
-
}, () =>
|
|
103
|
+
}, () => l, {
|
|
104
104
|
get zoom() {
|
|
105
|
-
return
|
|
105
|
+
return s();
|
|
106
106
|
},
|
|
107
107
|
set zoom(e) {
|
|
108
|
-
|
|
108
|
+
s(e);
|
|
109
109
|
}
|
|
110
|
-
})),
|
|
110
|
+
})), x(b);
|
|
111
111
|
var w = _(b, 2);
|
|
112
|
-
|
|
113
|
-
var s = z(),
|
|
112
|
+
M(w, 19, () => P(v), (e, t) => `${a()[t]?.kind}-${t}`, (e, t, n) => {
|
|
113
|
+
var s = z(), l = c(s);
|
|
114
114
|
let u;
|
|
115
|
-
var f =
|
|
116
|
-
|
|
117
|
-
var p = _(
|
|
115
|
+
var f = c(l, !0);
|
|
116
|
+
x(l);
|
|
117
|
+
var p = _(l, 2);
|
|
118
118
|
{
|
|
119
|
-
let e =
|
|
119
|
+
let e = j(() => i.zoomable ? {
|
|
120
120
|
drag: !1,
|
|
121
|
-
wheel: typeof
|
|
122
|
-
pan: typeof
|
|
121
|
+
wheel: typeof i.zoomable == "object" && i.zoomable.wheel,
|
|
122
|
+
pan: typeof i.zoomable == "object" && i.zoomable.pan
|
|
123
123
|
} : !1);
|
|
124
124
|
de(p, {
|
|
125
125
|
get spec() {
|
|
126
|
-
return
|
|
126
|
+
return P(t).spec;
|
|
127
127
|
},
|
|
128
128
|
get syncGroup() {
|
|
129
|
-
return
|
|
129
|
+
return P(d);
|
|
130
130
|
},
|
|
131
131
|
get zoomable() {
|
|
132
|
-
return
|
|
132
|
+
return P(e);
|
|
133
133
|
},
|
|
134
134
|
legend: !1,
|
|
135
135
|
toolbar: !1,
|
|
136
136
|
interactive: !0,
|
|
137
137
|
get localeText() {
|
|
138
|
-
return
|
|
138
|
+
return i.localeText;
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
C(s, "data-indicator",
|
|
144
|
-
}),
|
|
145
|
-
}),
|
|
142
|
+
x(s), h(() => {
|
|
143
|
+
C(s, "data-indicator", a()[P(n)]?.kind), u = ae(l, "", u, { left: `${o() + 6}px` }), D(f, P(t).title);
|
|
144
|
+
}), r(e, s);
|
|
145
|
+
}), x(y), te(y, "clientWidth", (e) => f(p, e)), r(t, y), k();
|
|
146
146
|
}
|
|
147
147
|
//#endregion
|
|
148
148
|
//#region ../grid/dist/SvGridChartPickers.svelte
|
|
@@ -521,15 +521,15 @@ var H = [
|
|
|
521
521
|
value: "year",
|
|
522
522
|
label: "chartBucketYear"
|
|
523
523
|
}
|
|
524
|
-
], xe =
|
|
524
|
+
], xe = u("<option> </option>"), Se = u("<optgroup></optgroup>"), Ce = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), we = u("<option> </option>"), Te = u("<option> </option>"), Ee = u("<option> </option>"), W = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><!><!></select></label>"), De = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label> <!>", 1), Oe = u("<option> </option>"), ke = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Ae = u("<option> </option>"), je = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><!></select></label>"), Me = u("<option> </option>"), Ne = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Pe = u("<option> </option>"), Fe = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Ie = u("<option> </option>"), Le = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), Re = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <input class=\"sv-grid-chart-num\" type=\"number\" min=\"1\" max=\"200\"/></label>"), G = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label>"), ze = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label>"), Be = u("<button type=\"button\"> </button>"), Ve = u("<span class=\"sv-grid-chart-ctl sv-grid-chart-indicators\" role=\"group\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <span class=\"sv-grid-chart-chips\"></span></span>"), He = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label> <label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>", 1), Ue = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), We = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), Ge = u("<option> </option>"), Ke = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), K = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), q = u("<option> </option>"), J = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), qe = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), Je = u("<p class=\"sv-grid-chart-hint sv-grid-chart-pivot-hint\" role=\"note\"> </p>"), Ye = u("<p class=\"sv-grid-chart-hint\" role=\"note\"> </p>"), Y = u("<div><!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label> <!> <!> <!> <label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label> <!> <!> <!> <!> <!></div>");
|
|
525
525
|
function Xe(e, n) {
|
|
526
|
-
|
|
527
|
-
let
|
|
528
|
-
function
|
|
529
|
-
let t =
|
|
530
|
-
|
|
526
|
+
re(n, !0);
|
|
527
|
+
let i = O(n, "ctrl", 7), o = O(n, "scope", 3, "panel"), s = j(() => i().chartableColumns), u = j(() => i().pivotResult != null), d = j(() => he(P(s), n.messages).filter((e) => !P(u) || t(e.value) === e.value)), f = j(() => [...new Set(P(d).map((e) => e.group))]), p = j(() => V(n.messages));
|
|
528
|
+
function m(e) {
|
|
529
|
+
let t = i().chartIndicators.includes(e), n = ge.includes(e) ? i().chartIndicators.filter((e) => !ge.includes(e)) : i().chartIndicators;
|
|
530
|
+
i().chartIndicators = t ? n.filter((t) => t !== e) : [...n, e];
|
|
531
531
|
}
|
|
532
|
-
let
|
|
532
|
+
let g = j(() => H.find((e) => e.colors && i().chartPalette && e.colors.join() === i().chartPalette.join())?.key ?? "theme"), b = j(() => i().chartType === "bar"), E = j(() => i().chartType === "pie" || i().chartType === "sunburst"), ee = j(() => !P(u) && i().chartType !== "gauge" && i().chartType !== "histogram"), te = j(() => !P(u) && P(s).dims.length > 1 && ![
|
|
533
533
|
"pie",
|
|
534
534
|
"gauge",
|
|
535
535
|
"waterfall",
|
|
@@ -538,12 +538,12 @@ function Xe(e, n) {
|
|
|
538
538
|
"bullet",
|
|
539
539
|
"pareto",
|
|
540
540
|
"radial-bar"
|
|
541
|
-
].includes(
|
|
541
|
+
].includes(i().chartType)), ne = j(() => [
|
|
542
542
|
"bar",
|
|
543
543
|
"line",
|
|
544
544
|
"area",
|
|
545
545
|
"radial-column"
|
|
546
|
-
].includes(
|
|
546
|
+
].includes(i().chartType)), ie = j(() => ve.includes(i().chartType) || i().chartType === "scatter" || i().chartType === "boxplot" || i().chartType === "histogram"), ae = j(() => ![
|
|
547
547
|
"gauge",
|
|
548
548
|
"sankey",
|
|
549
549
|
"calendar",
|
|
@@ -553,383 +553,383 @@ function Xe(e, n) {
|
|
|
553
553
|
"chord",
|
|
554
554
|
"sunburst",
|
|
555
555
|
"stream"
|
|
556
|
-
].includes(
|
|
557
|
-
let e =
|
|
558
|
-
if (e === "heatmap" && !
|
|
559
|
-
if (e === "sankey" && !
|
|
556
|
+
].includes(i().chartType)), F = j(() => !P(u) && (i().chartType === "scatter" || ye.includes(i().chartType) || i().chartType === "bullet")), oe = j(() => i().chartType === "scatter" ? n.messages.chartY : i().chartType === "bullet" ? n.messages.chartTarget : n.messages.chartHigh), se = j(() => i().chartType === "funnel"), ce = j(() => i().chartType === "candlestick"), le = j(() => !P(u) && i().chartIsOhlc), ue = j(() => !P(u) && i().chartType === "histogram"), de = j(() => !P(u) && !i().chartIsOhlc), I = j(() => !P(u) && i().chartType !== "scatter" && i().chartType !== "boxplot" && i().chartType !== "histogram" && !i().chartIsOhlc), L = j(() => {
|
|
557
|
+
let e = i().chartType, t = i().chartSpec?.categories.length ?? 0;
|
|
558
|
+
if (e === "heatmap" && !i().chartSeriesId && P(s).dims.length > 1) return n.messages.chartIssueHeatmap;
|
|
559
|
+
if (e === "sankey" && !i().chartSeriesId) return n.messages.chartIssueSankey;
|
|
560
560
|
if (e === "radar" && t > 0 && t < 3) return n.messages.chartIssueRadar;
|
|
561
561
|
if (e === "funnel" && t === 1) return n.messages.chartIssueFunnel;
|
|
562
|
-
if (e === "chord" && !
|
|
563
|
-
if (e === "stream" && !
|
|
564
|
-
if (ye.includes(e) && !
|
|
565
|
-
if (
|
|
566
|
-
let e =
|
|
567
|
-
if (!
|
|
562
|
+
if (e === "chord" && !i().chartSeriesId) return n.messages.chartIssueChord;
|
|
563
|
+
if (e === "stream" && !i().chartSeriesId) return n.messages.chartIssueStream;
|
|
564
|
+
if (ye.includes(e) && !i().effectiveChartMeasure2Id) return n.messages.chartIssueSecondMeasure;
|
|
565
|
+
if (i().chartIsOhlc) {
|
|
566
|
+
let e = i().chartOhlc;
|
|
567
|
+
if (!i().chartOhlcDateId) return n.messages.chartIssueOhlcDate;
|
|
568
568
|
if (!e.open || !e.high || !e.low || !e.close) return n.messages.chartIssueOhlcColumns;
|
|
569
569
|
}
|
|
570
570
|
return null;
|
|
571
571
|
});
|
|
572
572
|
var R = Y();
|
|
573
573
|
let fe;
|
|
574
|
-
var z =
|
|
575
|
-
var t = Ce(),
|
|
576
|
-
|
|
577
|
-
var
|
|
578
|
-
|
|
574
|
+
var z = c(R), pe = (e) => {
|
|
575
|
+
var t = Ce(), a = c(t), o = c(a, !0);
|
|
576
|
+
x(a);
|
|
577
|
+
var s = _(a, 2);
|
|
578
|
+
M(s, 20, () => P(f), (e) => e, (e, t) => {
|
|
579
579
|
var n = Se();
|
|
580
|
-
|
|
581
|
-
var n = xe(),
|
|
582
|
-
|
|
583
|
-
var
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
}),
|
|
587
|
-
}),
|
|
588
|
-
}),
|
|
589
|
-
var
|
|
590
|
-
w(
|
|
591
|
-
|
|
592
|
-
}),
|
|
580
|
+
M(n, 21, () => P(d).filter((e) => e.group === t), (e) => e.value, (e, t) => {
|
|
581
|
+
var n = xe(), i = c(n, !0);
|
|
582
|
+
x(n);
|
|
583
|
+
var a = {};
|
|
584
|
+
h(() => {
|
|
585
|
+
D(i, P(t).label), a !== (a = P(t).value) && (n.value = (n.__value = P(t).value) ?? "");
|
|
586
|
+
}), r(e, n);
|
|
587
|
+
}), x(n), h(() => C(n, "label", t)), r(e, n);
|
|
588
|
+
}), x(s);
|
|
589
|
+
var u;
|
|
590
|
+
w(s), x(t), h(() => {
|
|
591
|
+
D(o, n.messages.chartType), u !== (u = i().chartType) && (s.value = (s.__value = i().chartType) ?? "", y(s, i().chartType));
|
|
592
|
+
}), l("change", s, (e) => i().chartType = e.currentTarget.value), r(e, t);
|
|
593
593
|
};
|
|
594
|
-
|
|
595
|
-
|
|
594
|
+
a(z, (e) => {
|
|
595
|
+
o() === "panel" && e(pe);
|
|
596
596
|
});
|
|
597
597
|
var me = _(z, 2), B = (e) => {
|
|
598
|
-
var t = De(),
|
|
599
|
-
|
|
600
|
-
var
|
|
601
|
-
|
|
602
|
-
var n = we(),
|
|
603
|
-
|
|
604
|
-
var
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}),
|
|
608
|
-
}),
|
|
609
|
-
var
|
|
610
|
-
w(
|
|
611
|
-
var
|
|
612
|
-
|
|
613
|
-
var
|
|
614
|
-
|
|
615
|
-
var f = _(
|
|
616
|
-
var t = Te(),
|
|
617
|
-
|
|
598
|
+
var t = De(), o = v(t), u = c(o), d = c(u, !0);
|
|
599
|
+
x(u);
|
|
600
|
+
var f = _(u, 2);
|
|
601
|
+
M(f, 21, () => P(s).dates, (e) => e.id, (e, t) => {
|
|
602
|
+
var n = we(), i = c(n, !0);
|
|
603
|
+
x(n);
|
|
604
|
+
var a = {};
|
|
605
|
+
h(() => {
|
|
606
|
+
D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
|
|
607
|
+
}), r(e, n);
|
|
608
|
+
}), x(f);
|
|
609
|
+
var p;
|
|
610
|
+
w(f), x(o);
|
|
611
|
+
var m = _(o, 2);
|
|
612
|
+
M(m, 17, () => _e, (e) => e.key, (e, t) => {
|
|
613
|
+
var o = W(), u = c(o), d = c(u, !0);
|
|
614
|
+
x(u);
|
|
615
|
+
var f = _(u, 2), p = c(f), m = (e) => {
|
|
616
|
+
var t = Te(), i = c(t, !0);
|
|
617
|
+
x(t), t.value = t.__value = "", h(() => D(i, n.messages.chartNone)), r(e, t);
|
|
618
618
|
};
|
|
619
|
-
|
|
620
|
-
|
|
619
|
+
a(p, (e) => {
|
|
620
|
+
P(t).key === "volume" && e(m);
|
|
621
621
|
});
|
|
622
622
|
var g = _(p);
|
|
623
|
-
|
|
624
|
-
var n = Ee(),
|
|
625
|
-
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}),
|
|
630
|
-
}),
|
|
623
|
+
M(g, 17, () => P(s).measures, (e) => e.id, (e, t) => {
|
|
624
|
+
var n = Ee(), i = c(n, !0);
|
|
625
|
+
x(n);
|
|
626
|
+
var a = {};
|
|
627
|
+
h(() => {
|
|
628
|
+
D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
|
|
629
|
+
}), r(e, n);
|
|
630
|
+
}), x(f);
|
|
631
631
|
var v;
|
|
632
|
-
w(f),
|
|
633
|
-
d
|
|
634
|
-
}),
|
|
635
|
-
...
|
|
636
|
-
[
|
|
637
|
-
}),
|
|
638
|
-
}),
|
|
639
|
-
d
|
|
640
|
-
}),
|
|
632
|
+
w(f), x(o), h(() => {
|
|
633
|
+
D(d, n.messages[P(t).label]), v !== (v = i().chartOhlc[P(t).key] ?? "") && (f.value = (f.__value = i().chartOhlc[P(t).key] ?? "") ?? "", y(f, i().chartOhlc[P(t).key] ?? ""));
|
|
634
|
+
}), l("change", f, (e) => i().chartOhlc = {
|
|
635
|
+
...i().chartOhlc,
|
|
636
|
+
[P(t).key]: e.currentTarget.value || null
|
|
637
|
+
}), r(e, o);
|
|
638
|
+
}), h(() => {
|
|
639
|
+
D(d, n.messages.chartDate), p !== (p = i().chartOhlcDateId ?? "") && (f.value = (f.__value = i().chartOhlcDateId ?? "") ?? "", y(f, i().chartOhlcDateId ?? ""));
|
|
640
|
+
}), l("change", f, (e) => i().chartDimensionId = e.currentTarget.value || null), r(e, t);
|
|
641
641
|
}, Xe = (e) => {
|
|
642
|
-
var t = ke(),
|
|
643
|
-
|
|
644
|
-
var
|
|
645
|
-
|
|
646
|
-
var n = Oe(),
|
|
647
|
-
|
|
648
|
-
var
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}),
|
|
652
|
-
}),
|
|
653
|
-
var
|
|
654
|
-
w(
|
|
655
|
-
|
|
656
|
-
}),
|
|
642
|
+
var t = ke(), a = c(t), o = c(a, !0);
|
|
643
|
+
x(a);
|
|
644
|
+
var u = _(a, 2);
|
|
645
|
+
M(u, 21, () => P(s).dims, (e) => e.id, (e, t) => {
|
|
646
|
+
var n = Oe(), i = c(n, !0);
|
|
647
|
+
x(n);
|
|
648
|
+
var a = {};
|
|
649
|
+
h(() => {
|
|
650
|
+
D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
|
|
651
|
+
}), r(e, n);
|
|
652
|
+
}), x(u);
|
|
653
|
+
var d;
|
|
654
|
+
w(u), x(t), h(() => {
|
|
655
|
+
D(o, i().chartType === "sankey" ? n.messages.chartFrom : i().chartType === "heatmap" ? n.messages.chartColumns : n.messages.chartGroupBy), d !== (d = i().chartDimensionId ?? "") && (u.value = (u.__value = i().chartDimensionId ?? "") ?? "", y(u, i().chartDimensionId ?? ""));
|
|
656
|
+
}), l("change", u, (e) => i().chartDimensionId = e.currentTarget.value || null), r(e, t);
|
|
657
657
|
};
|
|
658
|
-
|
|
659
|
-
|
|
658
|
+
a(me, (e) => {
|
|
659
|
+
P(le) ? e(B) : P(ee) && e(Xe, 1);
|
|
660
660
|
});
|
|
661
661
|
var Ze = _(me, 2), Qe = (e) => {
|
|
662
|
-
var t = je(),
|
|
663
|
-
|
|
664
|
-
var
|
|
665
|
-
|
|
666
|
-
var p = _(
|
|
667
|
-
|
|
668
|
-
var n = Ae(),
|
|
669
|
-
|
|
670
|
-
var
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}),
|
|
674
|
-
}),
|
|
675
|
-
var
|
|
676
|
-
w(
|
|
677
|
-
|
|
678
|
-
}),
|
|
662
|
+
var t = je(), a = c(t), o = c(a, !0);
|
|
663
|
+
x(a);
|
|
664
|
+
var u = _(a, 2), d = c(u), f = c(d, !0);
|
|
665
|
+
x(d), d.value = d.__value = "";
|
|
666
|
+
var p = _(d);
|
|
667
|
+
M(p, 17, () => P(s).dims, (e) => e.id, (e, t) => {
|
|
668
|
+
var n = Ae(), i = c(n, !0);
|
|
669
|
+
x(n);
|
|
670
|
+
var a = {};
|
|
671
|
+
h(() => {
|
|
672
|
+
D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
|
|
673
|
+
}), r(e, n);
|
|
674
|
+
}), x(u);
|
|
675
|
+
var m;
|
|
676
|
+
w(u), x(t), h(() => {
|
|
677
|
+
D(o, i().chartType === "sankey" ? n.messages.chartTo : i().chartType === "heatmap" ? n.messages.chartRows : n.messages.chartSplitBy), D(f, n.messages.chartNone), m !== (m = i().chartSeriesId ?? "") && (u.value = (u.__value = i().chartSeriesId ?? "") ?? "", y(u, i().chartSeriesId ?? ""));
|
|
678
|
+
}), l("change", u, (e) => i().chartSeriesId = e.currentTarget.value || null), r(e, t);
|
|
679
679
|
};
|
|
680
|
-
|
|
681
|
-
|
|
680
|
+
a(Ze, (e) => {
|
|
681
|
+
P(te) && e(Qe);
|
|
682
682
|
});
|
|
683
683
|
var $e = _(Ze, 2), et = (e) => {
|
|
684
|
-
var t = Ne(),
|
|
685
|
-
|
|
686
|
-
var
|
|
687
|
-
|
|
688
|
-
var n = Me(),
|
|
689
|
-
|
|
690
|
-
var
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
}),
|
|
694
|
-
}),
|
|
695
|
-
var
|
|
696
|
-
w(
|
|
697
|
-
|
|
698
|
-
}, [() =>
|
|
684
|
+
var t = Ne(), a = c(t), o = c(a, !0);
|
|
685
|
+
x(a);
|
|
686
|
+
var u = _(a, 2);
|
|
687
|
+
M(u, 21, () => P(s).measures, (e) => e.id, (e, t) => {
|
|
688
|
+
var n = Me(), i = c(n, !0);
|
|
689
|
+
x(n);
|
|
690
|
+
var a = {};
|
|
691
|
+
h(() => {
|
|
692
|
+
D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
|
|
693
|
+
}), r(e, n);
|
|
694
|
+
}), x(u);
|
|
695
|
+
var d;
|
|
696
|
+
w(u), x(t), h((e) => {
|
|
697
|
+
D(o, e), d !== (d = i().chartMeasureId ?? "") && (u.value = (u.__value = i().chartMeasureId ?? "") ?? "", y(u, i().chartMeasureId ?? ""));
|
|
698
|
+
}, [() => i().chartType === "scatter" ? n.messages.chartX : ye.includes(i().chartType) ? n.messages.chartLow : i().chartType === "gauge" ? n.messages.chartMetric : n.messages.chartValue]), l("change", u, (e) => i().chartMeasureId = e.currentTarget.value || null), r(e, t);
|
|
699
699
|
};
|
|
700
|
-
|
|
701
|
-
|
|
700
|
+
a($e, (e) => {
|
|
701
|
+
P(de) && e(et);
|
|
702
702
|
});
|
|
703
703
|
var tt = _($e, 2), nt = (e) => {
|
|
704
|
-
var t = Fe(), n =
|
|
705
|
-
|
|
706
|
-
var
|
|
707
|
-
|
|
708
|
-
var n = Pe(),
|
|
709
|
-
|
|
710
|
-
var
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
}),
|
|
714
|
-
}),
|
|
715
|
-
var
|
|
716
|
-
w(
|
|
717
|
-
|
|
718
|
-
}),
|
|
704
|
+
var t = Fe(), n = c(t), a = c(n, !0);
|
|
705
|
+
x(n);
|
|
706
|
+
var o = _(n, 2);
|
|
707
|
+
M(o, 21, () => P(s).measures, (e) => e.id, (e, t) => {
|
|
708
|
+
var n = Pe(), i = c(n, !0);
|
|
709
|
+
x(n);
|
|
710
|
+
var a = {};
|
|
711
|
+
h(() => {
|
|
712
|
+
D(i, P(t).label), a !== (a = P(t).id) && (n.value = (n.__value = P(t).id) ?? "");
|
|
713
|
+
}), r(e, n);
|
|
714
|
+
}), x(o);
|
|
715
|
+
var u;
|
|
716
|
+
w(o), x(t), h(() => {
|
|
717
|
+
D(a, P(oe)), u !== (u = i().effectiveChartMeasure2Id ?? "") && (o.value = (o.__value = i().effectiveChartMeasure2Id ?? "") ?? "", y(o, i().effectiveChartMeasure2Id ?? ""));
|
|
718
|
+
}), l("change", o, (e) => i().chartMeasure2Id = e.currentTarget.value || null), r(e, t);
|
|
719
719
|
};
|
|
720
|
-
|
|
721
|
-
|
|
720
|
+
a(tt, (e) => {
|
|
721
|
+
P(F) && e(nt);
|
|
722
722
|
});
|
|
723
723
|
var rt = _(tt, 2), it = (e) => {
|
|
724
|
-
var t = Le(),
|
|
725
|
-
|
|
726
|
-
var
|
|
727
|
-
|
|
728
|
-
var n = Ie(),
|
|
729
|
-
|
|
730
|
-
var
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
}),
|
|
734
|
-
}),
|
|
735
|
-
var
|
|
736
|
-
w(
|
|
737
|
-
|
|
738
|
-
}),
|
|
724
|
+
var t = Le(), a = c(t), o = c(a, !0);
|
|
725
|
+
x(a);
|
|
726
|
+
var s = _(a, 2);
|
|
727
|
+
M(s, 21, () => P(p), (e) => e.value, (e, t) => {
|
|
728
|
+
var n = Ie(), i = c(n, !0);
|
|
729
|
+
x(n);
|
|
730
|
+
var a = {};
|
|
731
|
+
h(() => {
|
|
732
|
+
D(i, P(t).label), a !== (a = P(t).value) && (n.value = (n.__value = P(t).value) ?? "");
|
|
733
|
+
}), r(e, n);
|
|
734
|
+
}), x(s);
|
|
735
|
+
var u;
|
|
736
|
+
w(s), x(t), h(() => {
|
|
737
|
+
D(o, n.messages.chartAggregate), u !== (u = i().chartReduce) && (s.value = (s.__value = i().chartReduce) ?? "", y(s, i().chartReduce));
|
|
738
|
+
}), l("change", s, (e) => i().chartReduce = e.currentTarget.value), r(e, t);
|
|
739
739
|
};
|
|
740
|
-
|
|
741
|
-
|
|
740
|
+
a(rt, (e) => {
|
|
741
|
+
P(I) && e(it);
|
|
742
742
|
});
|
|
743
743
|
var at = _(rt, 2), ot = (e) => {
|
|
744
|
-
var t = Re(),
|
|
745
|
-
|
|
746
|
-
var
|
|
747
|
-
|
|
748
|
-
C(t, "title", n.messages.chartBinsTitle),
|
|
749
|
-
}),
|
|
744
|
+
var t = Re(), a = c(t), o = c(a, !0);
|
|
745
|
+
x(a);
|
|
746
|
+
var s = _(a, 2);
|
|
747
|
+
S(s), x(t), h(() => {
|
|
748
|
+
C(t, "title", n.messages.chartBinsTitle), D(o, n.messages.chartBins), T(s, i().chartBins ?? ""), C(s, "placeholder", n.messages.chartBuilderAuto);
|
|
749
|
+
}), l("change", s, (e) => i().chartBins = e.currentTarget.value ? Number(e.currentTarget.value) : null), r(e, t);
|
|
750
750
|
};
|
|
751
|
-
|
|
752
|
-
|
|
751
|
+
a(at, (e) => {
|
|
752
|
+
P(ue) && e(ot);
|
|
753
753
|
});
|
|
754
754
|
var st = _(at, 2), ct = (e) => {
|
|
755
|
-
var t = G(),
|
|
756
|
-
|
|
757
|
-
var
|
|
758
|
-
|
|
759
|
-
var f = _(
|
|
760
|
-
|
|
761
|
-
var m = _(f),
|
|
762
|
-
|
|
763
|
-
var
|
|
764
|
-
w(
|
|
765
|
-
|
|
766
|
-
}),
|
|
755
|
+
var t = G(), a = c(t), o = c(a, !0);
|
|
756
|
+
x(a);
|
|
757
|
+
var s = _(a, 2), u = c(s), d = c(u, !0);
|
|
758
|
+
x(u), u.value = u.__value = "trapezoid";
|
|
759
|
+
var f = _(u), p = c(f, !0);
|
|
760
|
+
x(f), f.value = f.__value = "pyramid";
|
|
761
|
+
var m = _(f), g = c(m, !0);
|
|
762
|
+
x(m), m.value = m.__value = "cone", x(s);
|
|
763
|
+
var v;
|
|
764
|
+
w(s), x(t), h(() => {
|
|
765
|
+
D(o, n.messages.chartShape), D(d, n.messages.chartShapeFunnel), D(p, n.messages.chartShapePyramid), D(g, n.messages.chartShapeCone), v !== (v = i().chartFunnelShape ?? "trapezoid") && (s.value = (s.__value = i().chartFunnelShape ?? "trapezoid") ?? "", y(s, i().chartFunnelShape ?? "trapezoid"));
|
|
766
|
+
}), l("change", s, (e) => i().chartFunnelShape = e.currentTarget.value), r(e, t);
|
|
767
767
|
};
|
|
768
|
-
|
|
769
|
-
|
|
768
|
+
a(st, (e) => {
|
|
769
|
+
P(se) && e(ct);
|
|
770
770
|
});
|
|
771
771
|
var lt = _(st, 2), ut = (e) => {
|
|
772
|
-
var t = ze(),
|
|
773
|
-
|
|
774
|
-
var
|
|
775
|
-
|
|
776
|
-
var f = _(
|
|
777
|
-
|
|
778
|
-
var m = _(f),
|
|
779
|
-
|
|
780
|
-
var
|
|
781
|
-
w(
|
|
782
|
-
|
|
783
|
-
}),
|
|
772
|
+
var t = ze(), a = c(t), o = c(a, !0);
|
|
773
|
+
x(a);
|
|
774
|
+
var s = _(a, 2), u = c(s), d = c(u, !0);
|
|
775
|
+
x(u), u.value = u.__value = "classic";
|
|
776
|
+
var f = _(u), p = c(f, !0);
|
|
777
|
+
x(f), f.value = f.__value = "hollow";
|
|
778
|
+
var m = _(f), g = c(m, !0);
|
|
779
|
+
x(m), m.value = m.__value = "heikin-ashi", x(s);
|
|
780
|
+
var v;
|
|
781
|
+
w(s), x(t), h(() => {
|
|
782
|
+
D(o, n.messages.chartCandles), D(d, n.messages.chartCandlesClassic), D(p, n.messages.chartCandlesHollow), D(g, n.messages.chartCandlesHeikinAshi), v !== (v = i().chartCandleStyle ?? "classic") && (s.value = (s.__value = i().chartCandleStyle ?? "classic") ?? "", y(s, i().chartCandleStyle ?? "classic"));
|
|
783
|
+
}), l("change", s, (e) => i().chartCandleStyle = e.currentTarget.value), r(e, t);
|
|
784
784
|
};
|
|
785
|
-
|
|
786
|
-
|
|
785
|
+
a(lt, (e) => {
|
|
786
|
+
P(ce) && e(ut);
|
|
787
787
|
});
|
|
788
788
|
var dt = _(lt, 2), ft = (e) => {
|
|
789
|
-
var t = Ve(),
|
|
790
|
-
|
|
791
|
-
var
|
|
792
|
-
|
|
793
|
-
var
|
|
794
|
-
let
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
}, [() => ({ "is-on":
|
|
799
|
-
}),
|
|
800
|
-
C(t, "aria-label", n.messages.chartIndicators),
|
|
801
|
-
}),
|
|
789
|
+
var t = Ve(), a = c(t), o = c(a, !0);
|
|
790
|
+
x(a);
|
|
791
|
+
var s = _(a, 2);
|
|
792
|
+
M(s, 21, () => U, (e) => e.value, (e, t) => {
|
|
793
|
+
var a = Be();
|
|
794
|
+
let o;
|
|
795
|
+
var s = c(a, !0);
|
|
796
|
+
x(a), h((e, r) => {
|
|
797
|
+
o = N(a, 1, "sv-grid-chart-chip", null, o, e), C(a, "aria-pressed", r), C(a, "title", n.messages[P(t).title]), D(s, n.messages[P(t).label]);
|
|
798
|
+
}, [() => ({ "is-on": i().chartIndicators.includes(P(t).value) }), () => i().chartIndicators.includes(P(t).value)]), l("click", a, () => m(P(t).value)), r(e, a);
|
|
799
|
+
}), x(s), x(t), h(() => {
|
|
800
|
+
C(t, "aria-label", n.messages.chartIndicators), D(o, n.messages.chartIndicators);
|
|
801
|
+
}), r(e, t);
|
|
802
802
|
};
|
|
803
|
-
|
|
804
|
-
|
|
803
|
+
a(dt, (e) => {
|
|
804
|
+
P(le) && e(ft);
|
|
805
805
|
});
|
|
806
|
-
var pt = _(dt, 2), mt =
|
|
807
|
-
|
|
808
|
-
var X = _(mt, 2), gt =
|
|
809
|
-
|
|
810
|
-
var vt = _(gt), yt =
|
|
811
|
-
|
|
812
|
-
var bt = _(vt), xt =
|
|
813
|
-
|
|
806
|
+
var pt = _(dt, 2), mt = c(pt), ht = c(mt, !0);
|
|
807
|
+
x(mt);
|
|
808
|
+
var X = _(mt, 2), gt = c(X), _t = c(gt, !0);
|
|
809
|
+
x(gt), gt.value = gt.__value = "number";
|
|
810
|
+
var vt = _(gt), yt = c(vt, !0);
|
|
811
|
+
x(vt), vt.value = vt.__value = "currency";
|
|
812
|
+
var bt = _(vt), xt = c(bt, !0);
|
|
813
|
+
x(bt), bt.value = bt.__value = "percent", x(X);
|
|
814
814
|
var St;
|
|
815
|
-
w(X),
|
|
815
|
+
w(X), x(pt);
|
|
816
816
|
var Ct = _(pt, 2), wt = (e) => {
|
|
817
|
-
var t = He(),
|
|
817
|
+
var t = He(), a = v(t), o = c(a);
|
|
818
|
+
S(o);
|
|
819
|
+
var s = _(o);
|
|
818
820
|
x(a);
|
|
819
|
-
var
|
|
820
|
-
|
|
821
|
-
var
|
|
822
|
-
x(
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
j(a, r().chartStacked), d(l, ` ${n.messages.chartStacked ?? ""}`), C(u, "title", n.messages.chartStacked100Title), j(f, r().chartStacked100), d(p, ` ${n.messages.chartStacked100 ?? ""}`);
|
|
826
|
-
}), s("change", a, (e) => r().chartStacked = e.currentTarget.checked), s("change", f, (e) => r().chartStacked100 = e.currentTarget.checked), k(e, t);
|
|
821
|
+
var u = _(a, 2), d = c(u);
|
|
822
|
+
S(d);
|
|
823
|
+
var f = _(d);
|
|
824
|
+
x(u), h(() => {
|
|
825
|
+
A(o, i().chartStacked), D(s, ` ${n.messages.chartStacked ?? ""}`), C(u, "title", n.messages.chartStacked100Title), A(d, i().chartStacked100), D(f, ` ${n.messages.chartStacked100 ?? ""}`);
|
|
826
|
+
}), l("change", o, (e) => i().chartStacked = e.currentTarget.checked), l("change", d, (e) => i().chartStacked100 = e.currentTarget.checked), r(e, t);
|
|
827
827
|
};
|
|
828
|
-
|
|
829
|
-
|
|
828
|
+
a(Ct, (e) => {
|
|
829
|
+
P(ne) && e(wt);
|
|
830
830
|
});
|
|
831
831
|
var Tt = _(Ct, 2), Et = (e) => {
|
|
832
|
-
var t = Ue(),
|
|
833
|
-
|
|
834
|
-
var
|
|
835
|
-
|
|
836
|
-
C(t, "title", n.messages.chartHorizontalTitle),
|
|
837
|
-
}),
|
|
832
|
+
var t = Ue(), a = c(t);
|
|
833
|
+
S(a);
|
|
834
|
+
var o = _(a);
|
|
835
|
+
x(t), h(() => {
|
|
836
|
+
C(t, "title", n.messages.chartHorizontalTitle), A(a, i().chartOrientation === "horizontal"), D(o, ` ${n.messages.chartHorizontal ?? ""}`);
|
|
837
|
+
}), l("change", a, (e) => i().chartOrientation = e.currentTarget.checked ? "horizontal" : "vertical"), r(e, t);
|
|
838
838
|
};
|
|
839
|
-
|
|
840
|
-
|
|
839
|
+
a(Tt, (e) => {
|
|
840
|
+
P(b) && e(Et);
|
|
841
841
|
});
|
|
842
842
|
var Dt = _(Tt, 2), Ot = (e) => {
|
|
843
|
-
var t = We(),
|
|
844
|
-
|
|
845
|
-
var
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
}),
|
|
843
|
+
var t = We(), a = c(t);
|
|
844
|
+
S(a);
|
|
845
|
+
var o = _(a);
|
|
846
|
+
x(t), h(() => {
|
|
847
|
+
A(a, i().chartDonut), D(o, ` ${n.messages.chartDonut ?? ""}`);
|
|
848
|
+
}), l("change", a, (e) => i().chartDonut = e.currentTarget.checked), r(e, t);
|
|
849
849
|
};
|
|
850
|
-
|
|
851
|
-
|
|
850
|
+
a(Dt, (e) => {
|
|
851
|
+
P(E) && e(Ot);
|
|
852
852
|
});
|
|
853
|
-
var Z = _(Dt, 2), kt =
|
|
854
|
-
|
|
853
|
+
var Z = _(Dt, 2), kt = c(Z), At = c(kt, !0);
|
|
854
|
+
x(kt);
|
|
855
855
|
var Q = _(kt, 2);
|
|
856
|
-
|
|
857
|
-
var
|
|
858
|
-
|
|
859
|
-
var
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
}),
|
|
863
|
-
}),
|
|
856
|
+
M(Q, 21, () => H, (e) => e.key, (e, t) => {
|
|
857
|
+
var i = Ge(), a = c(i, !0);
|
|
858
|
+
x(i);
|
|
859
|
+
var o = {};
|
|
860
|
+
h(() => {
|
|
861
|
+
D(a, n.messages[P(t).label]), o !== (o = P(t).key) && (i.value = (i.__value = P(t).key) ?? "");
|
|
862
|
+
}), r(e, i);
|
|
863
|
+
}), x(Q);
|
|
864
864
|
var jt;
|
|
865
|
-
w(Q),
|
|
865
|
+
w(Q), x(Z);
|
|
866
866
|
var Mt = _(Z, 2), Nt = (e) => {
|
|
867
|
-
var t = Ke(),
|
|
868
|
-
|
|
869
|
-
var
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
}),
|
|
867
|
+
var t = Ke(), a = c(t);
|
|
868
|
+
S(a);
|
|
869
|
+
var o = _(a);
|
|
870
|
+
x(t), h(() => {
|
|
871
|
+
A(a, i().chartDataLabels), D(o, ` ${n.messages.chartLabels ?? ""}`);
|
|
872
|
+
}), l("change", a, (e) => i().chartDataLabels = e.currentTarget.checked), r(e, t);
|
|
873
873
|
};
|
|
874
|
-
|
|
875
|
-
|
|
874
|
+
a(Mt, (e) => {
|
|
875
|
+
P(ae) && e(Nt);
|
|
876
876
|
});
|
|
877
877
|
var Pt = _(Mt, 2), $ = (e) => {
|
|
878
|
-
var t = K(),
|
|
879
|
-
|
|
880
|
-
var
|
|
881
|
-
|
|
882
|
-
C(t, "title", n.messages.chartLogScaleTitle),
|
|
883
|
-
}),
|
|
878
|
+
var t = K(), a = c(t);
|
|
879
|
+
S(a);
|
|
880
|
+
var o = _(a);
|
|
881
|
+
x(t), h(() => {
|
|
882
|
+
C(t, "title", n.messages.chartLogScaleTitle), A(a, i().chartLogScale), D(o, ` ${n.messages.chartLogScale ?? ""}`);
|
|
883
|
+
}), l("change", a, (e) => i().chartLogScale = e.currentTarget.checked), r(e, t);
|
|
884
884
|
};
|
|
885
|
-
|
|
886
|
-
|
|
885
|
+
a(Pt, (e) => {
|
|
886
|
+
P(ie) && e($);
|
|
887
887
|
});
|
|
888
888
|
var Ft = _(Pt, 2), It = (e) => {
|
|
889
|
-
var t = J(),
|
|
890
|
-
|
|
891
|
-
var
|
|
892
|
-
|
|
893
|
-
var
|
|
894
|
-
|
|
895
|
-
var
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
}),
|
|
899
|
-
}),
|
|
900
|
-
var
|
|
901
|
-
w(
|
|
902
|
-
C(t, "title", n.messages.chartBucketTitle),
|
|
903
|
-
}),
|
|
889
|
+
var t = J(), a = c(t), o = c(a, !0);
|
|
890
|
+
x(a);
|
|
891
|
+
var s = _(a, 2);
|
|
892
|
+
M(s, 21, () => be, (e) => e.value, (e, t) => {
|
|
893
|
+
var i = q(), a = c(i, !0);
|
|
894
|
+
x(i);
|
|
895
|
+
var o = {};
|
|
896
|
+
h(() => {
|
|
897
|
+
D(a, n.messages[P(t).label]), o !== (o = P(t).value) && (i.value = (i.__value = P(t).value) ?? "");
|
|
898
|
+
}), r(e, i);
|
|
899
|
+
}), x(s);
|
|
900
|
+
var u;
|
|
901
|
+
w(s), x(t), h(() => {
|
|
902
|
+
C(t, "title", n.messages.chartBucketTitle), D(o, n.messages.chartBucket), u !== (u = i().chartBucket ?? "") && (s.value = (s.__value = i().chartBucket ?? "") ?? "", y(s, i().chartBucket ?? ""));
|
|
903
|
+
}), l("change", s, (e) => i().chartBucket = e.currentTarget.value || null), r(e, t);
|
|
904
904
|
};
|
|
905
|
-
|
|
906
|
-
|
|
905
|
+
a(Ft, (e) => {
|
|
906
|
+
i().chartDimensionIsDate && P(ee) && e(It);
|
|
907
907
|
});
|
|
908
908
|
var Lt = _(Ft, 2), Rt = (e) => {
|
|
909
|
-
var t = qe(),
|
|
910
|
-
|
|
911
|
-
var
|
|
912
|
-
|
|
913
|
-
C(t, "title", n.messages.chartDateAxisTitle),
|
|
914
|
-
}),
|
|
915
|
-
}, zt =
|
|
916
|
-
|
|
917
|
-
|
|
909
|
+
var t = qe(), a = c(t);
|
|
910
|
+
S(a);
|
|
911
|
+
var o = _(a);
|
|
912
|
+
x(t), h(() => {
|
|
913
|
+
C(t, "title", n.messages.chartDateAxisTitle), A(a, i().chartTimeAxis), D(o, ` ${n.messages.chartDateAxis ?? ""}`);
|
|
914
|
+
}), l("change", a, (e) => i().chartTimeAxis = e.currentTarget.checked), r(e, t);
|
|
915
|
+
}, zt = j(() => i().chartDimensionIsDate && ve.includes(i().chartType));
|
|
916
|
+
a(Lt, (e) => {
|
|
917
|
+
P(zt) && e(Rt);
|
|
918
918
|
});
|
|
919
919
|
var Bt = _(Lt, 2), Vt = (e) => {
|
|
920
|
-
var t = Je(),
|
|
921
|
-
|
|
920
|
+
var t = Je(), i = c(t, !0);
|
|
921
|
+
x(t), h(() => D(i, n.messages.chartPivotHint)), r(e, t);
|
|
922
922
|
}, Ht = (e) => {
|
|
923
|
-
var t = Ye(), n =
|
|
924
|
-
|
|
923
|
+
var t = Ye(), n = c(t, !0);
|
|
924
|
+
x(t), h(() => D(n, P(L))), r(e, t);
|
|
925
925
|
};
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
}),
|
|
929
|
-
fe =
|
|
930
|
-
}),
|
|
926
|
+
a(Bt, (e) => {
|
|
927
|
+
P(u) ? e(Vt) : P(L) && e(Ht, 1);
|
|
928
|
+
}), x(R), h(() => {
|
|
929
|
+
fe = N(R, 1, "sv-grid-chart-controls", null, fe, { "is-form": o() === "builder" }), C(R, "data-scope", o()), D(ht, n.messages.chartFormat), D(_t, n.messages.chartFormatNumber), D(yt, n.messages.chartFormatCurrency), D(xt, n.messages.chartFormatPercent), St !== (St = i().chartValueFormat) && (X.value = (X.__value = i().chartValueFormat) ?? "", y(X, i().chartValueFormat)), D(At, n.messages.chartColours), jt !== (jt = P(g)) && (Q.value = (Q.__value = P(g)) ?? "", y(Q, P(g)));
|
|
930
|
+
}), l("change", X, (e) => i().chartValueFormat = e.currentTarget.value), l("change", Q, (e) => i().chartPalette = H.find((t) => t.key === e.currentTarget.value)?.colors ?? null), r(e, R), k();
|
|
931
931
|
}
|
|
932
|
-
|
|
932
|
+
s(["change", "click"]);
|
|
933
933
|
//#endregion
|
|
934
934
|
//#region ../grid/dist/chart-panel-messages.js
|
|
935
935
|
var Ze = {
|
|
@@ -1194,51 +1194,51 @@ function $e(e, t) {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
//#endregion
|
|
1196
1196
|
//#region ../grid/dist/SvGridChartPanel.svelte
|
|
1197
|
-
var et =
|
|
1197
|
+
var et = u("<div role=\"separator\"></div>"), tt = u("<button type=\"button\" class=\"sv-grid-chart-btn\"> </button>"), nt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"20 6 9 17 4 12\"></polyline></svg>"), rt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"></path><polyline points=\"7 10 12 15 17 10\"></polyline><line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"></line></svg>"), it = u("<div class=\"sv-grid-chart-export-menu\" role=\"menu\"><button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button> <button type=\"button\" role=\"menuitem\"> </button></div>"), at = u("<button type=\"button\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M12 2l1.9 4.6L18.5 8.5 13.9 10.4 12 15l-1.9-4.6L5.5 8.5l4.6-1.9L12 2zm6 11l1 2.4 2.4 1-2.4 1L18 21l-1-2.6-2.4-1 2.4-1L18 13zM6 14l.8 2 2 .8-2 .8L6 20l-.8-2.4-2-.8 2-.8L6 14z\"></path></svg> </button>"), ot = u("<li class=\"sv-grid-chart-saved-item\"><button type=\"button\" class=\"sv-grid-chart-saved-apply\"> </button> <button type=\"button\" class=\"sv-grid-chart-saved-x\">×</button></li>"), st = u("<ul class=\"sv-grid-chart-saved-list\"></ul>"), ct = u("<p class=\"sv-grid-chart-saved-empty\"> </p>"), lt = u("<div class=\"sv-grid-chart-export-menu sv-grid-chart-saved-menu\" role=\"dialog\"><form class=\"sv-grid-chart-saved-row\"><input class=\"sv-grid-chart-saved-name\" type=\"text\"/> <button type=\"submit\" class=\"sv-grid-chart-btn\"> </button></form> <!></div>"), ut = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M18.84 12.25l1.72-1.71a5 5 0 0 0-7.07-7.07l-1.72 1.71\"></path><path d=\"M5.17 11.75l-1.71 1.71a5 5 0 0 0 7.07 7.07l1.71-1.71\"></path><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"5\"></line><line x1=\"2\" y1=\"8\" x2=\"5\" y2=\"8\"></line><line x1=\"16\" y1=\"19\" x2=\"16\" y2=\"22\"></line><line x1=\"19\" y1=\"16\" x2=\"22\" y2=\"16\"></line></svg>"), dt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\"></path><path d=\"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\"></path></svg>"), ft = u("<button type=\"button\" class=\"sv-grid-chart-btn sv-grid-chart-build-btn\" aria-haspopup=\"dialog\"><svg width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"></rect><rect x=\"14\" y=\"3\" width=\"7\" height=\"7\" rx=\"1\"></rect><rect x=\"3\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"></rect><rect x=\"14\" y=\"14\" width=\"7\" height=\"7\" rx=\"1\"></rect></svg> </button> <div class=\"sv-grid-chart-export sv-grid-chart-saved\"><button type=\"button\" class=\"sv-grid-chart-icon-btn sv-grid-chart-saved-btn\" aria-haspopup=\"dialog\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z\"></path><polyline points=\"17 21 17 13 7 13 7 21\"></polyline><polyline points=\"7 3 7 8 15 8\"></polyline></svg></button> <!></div> <button type=\"button\"><!></button> <button type=\"button\" class=\"sv-grid-chart-icon-btn\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><line x1=\"12\" y1=\"5\" x2=\"12\" y2=\"19\"></line><line x1=\"5\" y1=\"12\" x2=\"19\" y2=\"12\"></line></svg></button>", 1), pt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 3v3a2 2 0 0 1-2 2H3\"></path><path d=\"M21 8h-3a2 2 0 0 1-2-2V3\"></path><path d=\"M3 16h3a2 2 0 0 1 2 2v3\"></path><path d=\"M16 21v-3a2 2 0 0 1 2-2h3\"></path></svg>"), mt = d("<svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M8 3H5a2 2 0 0 0-2 2v3\"></path><path d=\"M21 8V5a2 2 0 0 0-2-2h-3\"></path><path d=\"M3 16v3a2 2 0 0 0 2 2h3\"></path><path d=\"M16 21h3a2 2 0 0 0 2-2v-3\"></path></svg>"), ht = u("<button type=\"button\" class=\"sv-grid-chart-icon-btn\"><!></button> <button type=\"button\" class=\"sv-grid-chart-icon-btn\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"></rect><line x1=\"15\" y1=\"3\" x2=\"15\" y2=\"21\"></line></svg></button>", 1), X = u("<button type=\"button\" class=\"sv-grid-chart-icon-btn\"><svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 3h6v6\"></path><path d=\"M10 14 21 3\"></path><path d=\"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\"></path></svg></button>"), gt = u("<div><button type=\"button\" class=\"sv-grid-chart-tab-label\" role=\"tab\"> </button> <button type=\"button\" class=\"sv-grid-chart-tab-x\">×</button></div>"), _t = u("<div class=\"sv-grid-chart-tabs\" role=\"tablist\"></div>"), vt = u("<button type=\"button\" class=\"sv-grid-chart-btn sv-grid-chart-explain-btn\"> </button>"), yt = u("<p class=\"sv-grid-chart-ai-msg is-error\"> </p>"), bt = u("<p class=\"sv-grid-chart-ai-msg\"> </p>"), xt = u("<div class=\"sv-grid-chart-ai\"><form class=\"sv-grid-chart-ai-row\"><input class=\"sv-grid-chart-ai-input\" type=\"text\"/> <button type=\"submit\" class=\"sv-grid-chart-btn\"> </button> <!></form> <!></div>"), St = u("<div class=\"sv-grid-chart-panes-host\"><!></div>"), Ct = u("<p class=\"sv-grid-chart-empty\"><!></p>"), wt = u("<div class=\"sv-grid-chart-float-resizer\" role=\"separator\"></div>"), Tt = u("<section><!> <header class=\"sv-grid-chart-panel-head\"><div><svg class=\"sv-grid-chart-title-icon\" width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"10\"></line><line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"4\"></line><line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"16\"></line></svg> <span class=\"sv-grid-chart-title\"> </span> <div class=\"sv-grid-chart-actions\"><!> <div class=\"sv-grid-chart-export\"><button type=\"button\" class=\"sv-grid-chart-icon-btn\"><!></button> <!></div> <!> <!> <!> <button type=\"button\" class=\"sv-grid-chart-close\">×</button></div></div> <!> <!> <!></header> <div class=\"sv-grid-chart-panel-body\"><!></div> <!> <!></section>");
|
|
1198
1198
|
function Et(e, t) {
|
|
1199
|
-
|
|
1200
|
-
let
|
|
1201
|
-
function
|
|
1202
|
-
if (
|
|
1203
|
-
|
|
1199
|
+
re(t, !0);
|
|
1200
|
+
let s = n(null), u = n(!1);
|
|
1201
|
+
function d() {
|
|
1202
|
+
if (P(s)) {
|
|
1203
|
+
f(u, !0);
|
|
1204
1204
|
return;
|
|
1205
1205
|
}
|
|
1206
|
-
import("./SvGridChartBuilder-
|
|
1207
|
-
|
|
1206
|
+
import("./SvGridChartBuilder-Dpw2X4pR.js").then((e) => {
|
|
1207
|
+
f(s, e.default, !0), f(u, !0);
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
|
-
let
|
|
1210
|
+
let y = O(t, "ctrl", 7), w = j(() => Qe(y().localizationText)), T = j(() => y().chartingConfig), E = j(() => y().chartCfg), te = j(() => y().chartFormat?.legend === void 0 || y().chartFormat.legend), A = j(() => y().chartFormat?.dataLabels === void 0 ? y().chartDataLabels : y().chartFormat.dataLabels !== null && { placement: y().chartFormat.dataLabels }), ne = j(() => y().chartFormat?.crosshairLabels !== !1), F = j(() => y().chartIsCustom), I = j(() => P(T)?.position ?? "bottom"), L = j(() => P(T)?.crossFilter !== !1), z = j(() => y().chartSpec), pe = j(() => y().chartableColumns), B = j(() => y().chartSize ?? (P(I) === "right" ? P(T)?.width ?? 340 : P(T)?.height ?? 260)), V = j(() => y().chartFloating), H = j(() => y().chartMaximized), U = j(() => y().chartFloatRect), ge = n(null);
|
|
1211
1211
|
function _e() {
|
|
1212
|
-
let e =
|
|
1212
|
+
let e = P(ge)?.offsetParent;
|
|
1213
1213
|
return {
|
|
1214
1214
|
w: e?.clientWidth ?? 800,
|
|
1215
1215
|
h: e?.clientHeight ?? 520
|
|
1216
1216
|
};
|
|
1217
1217
|
}
|
|
1218
1218
|
function ve() {
|
|
1219
|
-
if (!
|
|
1219
|
+
if (!y().chartFloatRect) {
|
|
1220
1220
|
let { w: e, h: t } = _e(), n = Math.min(600, Math.max(360, e - 80)), r = Math.min(430, Math.max(260, t - 90));
|
|
1221
|
-
|
|
1221
|
+
y().chartFloatRect = {
|
|
1222
1222
|
x: Math.round((e - n) / 2),
|
|
1223
1223
|
y: Math.round((t - r) / 2),
|
|
1224
1224
|
w: n,
|
|
1225
1225
|
h: r
|
|
1226
1226
|
};
|
|
1227
1227
|
}
|
|
1228
|
-
|
|
1228
|
+
y().chartFloating = !0;
|
|
1229
1229
|
}
|
|
1230
1230
|
function ye() {
|
|
1231
|
-
|
|
1231
|
+
y().chartFloating = !1, y().chartMaximized = !1;
|
|
1232
1232
|
}
|
|
1233
|
-
let be = () =>
|
|
1233
|
+
let be = () => y().chartMaximized = !y().chartMaximized;
|
|
1234
1234
|
function xe(e) {
|
|
1235
|
-
if (!
|
|
1236
|
-
let t =
|
|
1235
|
+
if (!P(V) || P(H) || e.target?.closest("button")) return;
|
|
1236
|
+
let t = y().chartFloatRect;
|
|
1237
1237
|
if (!t) return;
|
|
1238
1238
|
e.preventDefault();
|
|
1239
1239
|
let n = e.clientX, r = e.clientY, { w: i, h: a } = _e(), o = (e) => {
|
|
1240
1240
|
let o = Math.max(0, Math.min(i - t.w, t.x + e.clientX - n)), s = Math.max(0, Math.min(a - t.h, t.y + e.clientY - r));
|
|
1241
|
-
|
|
1241
|
+
y().chartFloatRect = {
|
|
1242
1242
|
x: o,
|
|
1243
1243
|
y: s,
|
|
1244
1244
|
w: t.w,
|
|
@@ -1250,13 +1250,13 @@ function Et(e, t) {
|
|
|
1250
1250
|
window.addEventListener("pointermove", o), window.addEventListener("pointerup", s);
|
|
1251
1251
|
}
|
|
1252
1252
|
function Se(e) {
|
|
1253
|
-
let t =
|
|
1253
|
+
let t = y().chartFloatRect;
|
|
1254
1254
|
if (!t) return;
|
|
1255
1255
|
e.preventDefault(), e.stopPropagation();
|
|
1256
1256
|
let n = e.clientX, r = e.clientY;
|
|
1257
1257
|
e.target.setPointerCapture?.(e.pointerId);
|
|
1258
1258
|
let i = (e) => {
|
|
1259
|
-
|
|
1259
|
+
y().chartFloatRect = {
|
|
1260
1260
|
x: t.x,
|
|
1261
1261
|
y: t.y,
|
|
1262
1262
|
w: Math.max(300, t.w + e.clientX - n),
|
|
@@ -1267,38 +1267,38 @@ function Et(e, t) {
|
|
|
1267
1267
|
};
|
|
1268
1268
|
window.addEventListener("pointermove", i), window.addEventListener("pointerup", a);
|
|
1269
1269
|
}
|
|
1270
|
-
let Ce =
|
|
1270
|
+
let Ce = j(() => P(V) ? P(H) ? "left:12px; top:12px; right:12px; bottom:12px; width:auto; height:auto;" : P(U) ? `left:${P(U).x}px; top:${P(U).y}px; width:${P(U).w}px; height:${P(U).h}px;` : "" : P(I) === "right" ? `width:${P(B)}px` : `height:${P(B)}px`), we = j(() => he(P(pe), P(w)));
|
|
1271
1271
|
function Te(e) {
|
|
1272
|
-
|
|
1272
|
+
P(L) && e.category != null && y().applyChartCrossFilter(String(e.category));
|
|
1273
1273
|
}
|
|
1274
|
-
let Ee =
|
|
1274
|
+
let Ee = n(null), W = n(!1), De = n(!1), Oe = () => P(Ee)?.querySelector("svg") ?? null, ke = j(() => !!P(z) && se(P(z)));
|
|
1275
1275
|
function Ae() {
|
|
1276
1276
|
let e = Oe();
|
|
1277
|
-
e && ce(e, "chart.png"),
|
|
1277
|
+
e && ce(e, "chart.png"), f(W, !1);
|
|
1278
1278
|
}
|
|
1279
1279
|
function je() {
|
|
1280
1280
|
let e = Oe();
|
|
1281
|
-
e && ue(e, "chart.svg"),
|
|
1281
|
+
e && ue(e, "chart.svg"), f(W, !1);
|
|
1282
1282
|
}
|
|
1283
1283
|
function Me() {
|
|
1284
|
-
|
|
1284
|
+
P(z) && oe(P(z), "chart.csv"), f(W, !1);
|
|
1285
1285
|
}
|
|
1286
1286
|
async function Ne() {
|
|
1287
1287
|
let e = Oe();
|
|
1288
|
-
|
|
1288
|
+
f(W, !1), e && await (await import("./chart-export-pdf-Bc0Rz4kB.js")).downloadChartPdf(e, "chart.pdf", { title: P(z)?.title ?? y().charts[y().activeChartIndex]?.title });
|
|
1289
1289
|
}
|
|
1290
1290
|
async function Pe() {
|
|
1291
1291
|
let e = Oe();
|
|
1292
|
-
|
|
1292
|
+
f(W, !1), e && (await import("./chart-export-pdf-Bc0Rz4kB.js")).printChart(e, { title: P(z)?.title ?? y().charts[y().activeChartIndex]?.title });
|
|
1293
1293
|
}
|
|
1294
1294
|
async function Fe() {
|
|
1295
1295
|
let e = Oe();
|
|
1296
|
-
if (
|
|
1296
|
+
if (f(W, !1), !(!e || typeof ClipboardItem > "u" || !navigator.clipboard?.write)) try {
|
|
1297
1297
|
let t = await le(e);
|
|
1298
|
-
await navigator.clipboard.write([new ClipboardItem({ "image/png": t })]),
|
|
1298
|
+
await navigator.clipboard.write([new ClipboardItem({ "image/png": t })]), f(De, !0), setTimeout(() => f(De, !1), 1400);
|
|
1299
1299
|
} catch {}
|
|
1300
1300
|
}
|
|
1301
|
-
let Ie =
|
|
1301
|
+
let Ie = n(null), Le = n(null);
|
|
1302
1302
|
function Re(e, t, n) {
|
|
1303
1303
|
let r = (n) => {
|
|
1304
1304
|
n.target?.closest(e) || t();
|
|
@@ -1310,434 +1310,434 @@ function Et(e, t) {
|
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
1312
1312
|
g(() => {
|
|
1313
|
-
if (
|
|
1313
|
+
if (P(W)) return Re(".sv-grid-chart-export", () => f(W, !1), () => P(Ie));
|
|
1314
1314
|
});
|
|
1315
|
-
let G =
|
|
1315
|
+
let G = n(!1), ze = n("");
|
|
1316
1316
|
function Be() {
|
|
1317
|
-
let e =
|
|
1318
|
-
e && (
|
|
1317
|
+
let e = P(ze).trim();
|
|
1318
|
+
e && (y().saveChart(e), f(ze, ""));
|
|
1319
1319
|
}
|
|
1320
1320
|
g(() => {
|
|
1321
|
-
if (
|
|
1321
|
+
if (P(G)) return Re(".sv-grid-chart-saved", () => f(G, !1), () => P(Le));
|
|
1322
1322
|
});
|
|
1323
1323
|
async function Ve() {
|
|
1324
|
-
if (
|
|
1325
|
-
let { chartSummary: e } = await import("./chart-summary-BL4WDgEu.js"), t = e(
|
|
1324
|
+
if (f(W, !1), !P(z)) return;
|
|
1325
|
+
let { chartSummary: e } = await import("./chart-summary-BL4WDgEu.js"), t = e(P(z));
|
|
1326
1326
|
try {
|
|
1327
1327
|
await navigator.clipboard?.writeText(t);
|
|
1328
1328
|
} catch {}
|
|
1329
|
-
|
|
1329
|
+
f(J, t, !0);
|
|
1330
1330
|
}
|
|
1331
|
-
let He =
|
|
1331
|
+
let He = j(() => !!y().chartAiHandler), Ue = j(() => !!y().chartExplainHandler);
|
|
1332
1332
|
async function We() {
|
|
1333
|
-
let e =
|
|
1334
|
-
if (!(!e ||
|
|
1335
|
-
|
|
1333
|
+
let e = y().chartExplainHandler;
|
|
1334
|
+
if (!(!e || P(K))) {
|
|
1335
|
+
f(K, !0), f(q, ""), f(J, "");
|
|
1336
1336
|
try {
|
|
1337
1337
|
let t = await e();
|
|
1338
|
-
|
|
1338
|
+
f(J, t ? [t.summary, ...t.insights].filter(Boolean).join(" ") : "", !0), t || f(q, P(w).chartAiNoExplanation, !0);
|
|
1339
1339
|
} catch (e) {
|
|
1340
|
-
|
|
1340
|
+
f(q, e instanceof Error ? e.message : P(w).chartAiFailed, !0);
|
|
1341
1341
|
} finally {
|
|
1342
|
-
|
|
1342
|
+
f(K, !1);
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
let Ge =
|
|
1346
|
+
let Ge = n(!1), Ke = n(""), K = n(!1), q = n(""), J = n("");
|
|
1347
1347
|
async function qe() {
|
|
1348
|
-
let e =
|
|
1349
|
-
if (!(!e || !t ||
|
|
1350
|
-
|
|
1348
|
+
let e = y().chartAiHandler, t = P(Ke).trim();
|
|
1349
|
+
if (!(!e || !t || P(K))) {
|
|
1350
|
+
f(K, !0), f(q, ""), f(J, "");
|
|
1351
1351
|
try {
|
|
1352
1352
|
let n = await e(t);
|
|
1353
|
-
n ? (
|
|
1353
|
+
n ? (y().applyChartConfig(n), f(J, typeof n.rationale == "string" ? n.rationale : "", !0)) : f(q, P(w).chartAiNoChart, !0);
|
|
1354
1354
|
} catch (e) {
|
|
1355
|
-
|
|
1355
|
+
f(q, e instanceof Error ? e.message : P(w).chartAiFailed, !0);
|
|
1356
1356
|
} finally {
|
|
1357
|
-
|
|
1357
|
+
f(K, !1);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
let Je =
|
|
1361
|
+
let Je = n(!1);
|
|
1362
1362
|
function Ye(e) {
|
|
1363
|
-
e.preventDefault(),
|
|
1364
|
-
let t =
|
|
1363
|
+
e.preventDefault(), f(Je, !0);
|
|
1364
|
+
let t = P(I) === "right" ? e.clientX : e.clientY, n = P(B);
|
|
1365
1365
|
e.target.setPointerCapture?.(e.pointerId);
|
|
1366
1366
|
let r = (e) => {
|
|
1367
|
-
let r =
|
|
1368
|
-
|
|
1367
|
+
let r = P(I) === "right" ? t - e.clientX : t - e.clientY;
|
|
1368
|
+
y().chartSize = Math.max(160, Math.min(720, n + r));
|
|
1369
1369
|
}, i = () => {
|
|
1370
|
-
|
|
1370
|
+
f(Je, !1), window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", i);
|
|
1371
1371
|
};
|
|
1372
1372
|
window.addEventListener("pointermove", r), window.addEventListener("pointerup", i);
|
|
1373
1373
|
}
|
|
1374
1374
|
var Y = Tt();
|
|
1375
1375
|
let Ze;
|
|
1376
|
-
var Et =
|
|
1376
|
+
var Et = c(Y), Dt = (e) => {
|
|
1377
1377
|
var t = et();
|
|
1378
1378
|
let n;
|
|
1379
|
-
|
|
1380
|
-
n =
|
|
1381
|
-
}),
|
|
1379
|
+
h(() => {
|
|
1380
|
+
n = N(t, 1, "sv-grid-chart-resizer", null, n, { "is-dragging": P(Je) }), C(t, "aria-orientation", P(I) === "right" ? "vertical" : "horizontal"), C(t, "aria-label", P(w).chartResize);
|
|
1381
|
+
}), l("pointerdown", t, Ye), r(e, t);
|
|
1382
1382
|
};
|
|
1383
|
-
|
|
1384
|
-
|
|
1383
|
+
a(Et, (e) => {
|
|
1384
|
+
P(V) || e(Dt);
|
|
1385
1385
|
});
|
|
1386
|
-
var Ot = _(Et, 2), Z =
|
|
1386
|
+
var Ot = _(Et, 2), Z = c(Ot);
|
|
1387
1387
|
let kt;
|
|
1388
|
-
var At = _(
|
|
1389
|
-
|
|
1390
|
-
var jt = _(At, 2), Mt =
|
|
1391
|
-
var t = tt(), n =
|
|
1392
|
-
|
|
1388
|
+
var At = _(c(Z), 2), Q = c(At, !0);
|
|
1389
|
+
x(At);
|
|
1390
|
+
var jt = _(At, 2), Mt = c(jt), Nt = (e) => {
|
|
1391
|
+
var t = tt(), n = c(t, !0);
|
|
1392
|
+
x(t), h(() => D(n, P(w).chartClearFilter)), l("click", t, () => y().clearChartCrossFilter()), r(e, t);
|
|
1393
1393
|
};
|
|
1394
|
-
|
|
1395
|
-
|
|
1394
|
+
a(Mt, (e) => {
|
|
1395
|
+
P(L) && !P(F) && e(Nt);
|
|
1396
1396
|
});
|
|
1397
|
-
var Pt = _(Mt, 2), $ =
|
|
1397
|
+
var Pt = _(Mt, 2), $ = c(Pt), Ft = c($), It = (e) => {
|
|
1398
1398
|
var t = nt();
|
|
1399
|
-
|
|
1399
|
+
r(e, t);
|
|
1400
1400
|
}, Lt = (e) => {
|
|
1401
1401
|
var t = rt();
|
|
1402
|
-
|
|
1402
|
+
r(e, t);
|
|
1403
1403
|
};
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
}),
|
|
1404
|
+
a(Ft, (e) => {
|
|
1405
|
+
P(De) ? e(It) : e(Lt, -1);
|
|
1406
|
+
}), x($), b($, (e) => f(Ie, e), () => P(Ie));
|
|
1407
1407
|
var Rt = _($, 2), zt = (e) => {
|
|
1408
|
-
var t = it(), n =
|
|
1409
|
-
|
|
1410
|
-
var
|
|
1411
|
-
|
|
1412
|
-
var
|
|
1413
|
-
|
|
1414
|
-
var
|
|
1415
|
-
|
|
1416
|
-
var p = _(
|
|
1417
|
-
|
|
1418
|
-
var g = _(p, 2), v =
|
|
1419
|
-
|
|
1420
|
-
var y = _(g, 2), b =
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
}),
|
|
1408
|
+
var t = it(), n = c(t), i = c(n, !0);
|
|
1409
|
+
x(n);
|
|
1410
|
+
var a = _(n, 2), o = c(a, !0);
|
|
1411
|
+
x(a);
|
|
1412
|
+
var s = _(a, 2), u = c(s, !0);
|
|
1413
|
+
x(s);
|
|
1414
|
+
var d = _(s, 2), f = c(d, !0);
|
|
1415
|
+
x(d);
|
|
1416
|
+
var p = _(d, 2), m = c(p, !0);
|
|
1417
|
+
x(p);
|
|
1418
|
+
var g = _(p, 2), v = c(g, !0);
|
|
1419
|
+
x(g);
|
|
1420
|
+
var y = _(g, 2), b = c(y, !0);
|
|
1421
|
+
x(y), x(t), h(() => {
|
|
1422
|
+
D(i, P(w).chartExportPng), D(o, P(w).chartExportSvg), D(u, P(w).chartExportPdf), d.disabled = !P(ke), D(f, P(w).chartExportCsv), D(m, P(w).chartExportCopy), D(v, P(w).chartExportPrint), D(b, P(w).chartExportDescribe);
|
|
1423
|
+
}), l("click", n, Ae), l("click", a, je), l("click", s, Ne), l("click", d, Me), l("click", p, Fe), l("click", g, Pe), l("click", y, Ve), r(e, t);
|
|
1424
1424
|
};
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
}),
|
|
1425
|
+
a(Rt, (e) => {
|
|
1426
|
+
P(W) && e(zt);
|
|
1427
|
+
}), x(Pt);
|
|
1428
1428
|
var Bt = _(Pt, 2), Vt = (e) => {
|
|
1429
1429
|
var t = at();
|
|
1430
1430
|
let n;
|
|
1431
|
-
var
|
|
1432
|
-
|
|
1433
|
-
n =
|
|
1434
|
-
}),
|
|
1431
|
+
var i = _(c(t));
|
|
1432
|
+
x(t), h(() => {
|
|
1433
|
+
n = N(t, 1, "sv-grid-chart-btn sv-grid-chart-ai-btn", null, n, { "is-active": P(Ge) }), C(t, "aria-label", P(w).chartAiLabel), C(t, "title", P(w).chartAiLabel), C(t, "aria-expanded", P(Ge)), D(i, ` ${P(w).chartAi ?? ""}`);
|
|
1434
|
+
}), l("click", t, () => f(Ge, !P(Ge))), r(e, t);
|
|
1435
1435
|
};
|
|
1436
|
-
|
|
1437
|
-
|
|
1436
|
+
a(Bt, (e) => {
|
|
1437
|
+
P(He) && !P(F) && e(Vt);
|
|
1438
1438
|
});
|
|
1439
1439
|
var Ht = _(Bt, 2), Ut = (e) => {
|
|
1440
|
-
var t = ft(), n =
|
|
1441
|
-
|
|
1442
|
-
var
|
|
1443
|
-
b(
|
|
1444
|
-
var
|
|
1445
|
-
var t = lt(), n =
|
|
1446
|
-
|
|
1447
|
-
var
|
|
1448
|
-
|
|
1449
|
-
var u = _(n, 2),
|
|
1440
|
+
var t = ft(), n = v(t), i = _(c(n));
|
|
1441
|
+
x(n);
|
|
1442
|
+
var o = _(n, 2), s = c(o);
|
|
1443
|
+
b(s, (e) => f(Le, e), () => P(Le));
|
|
1444
|
+
var u = _(s, 2), m = (e) => {
|
|
1445
|
+
var t = lt(), n = c(t), i = c(n);
|
|
1446
|
+
S(i);
|
|
1447
|
+
var o = _(i, 2), s = c(o, !0);
|
|
1448
|
+
x(o), x(n);
|
|
1449
|
+
var u = _(n, 2), d = (e) => {
|
|
1450
1450
|
var t = st();
|
|
1451
|
-
|
|
1452
|
-
var n = ot(),
|
|
1453
|
-
|
|
1454
|
-
var
|
|
1455
|
-
|
|
1456
|
-
C(
|
|
1457
|
-
}),
|
|
1458
|
-
|
|
1459
|
-
}),
|
|
1460
|
-
}),
|
|
1461
|
-
},
|
|
1462
|
-
var t = ct(), n =
|
|
1463
|
-
|
|
1451
|
+
M(t, 21, () => y().savedCharts, (e) => e.name, (e, t) => {
|
|
1452
|
+
var n = ot(), i = c(n), a = c(i, !0);
|
|
1453
|
+
x(i);
|
|
1454
|
+
var o = _(i, 2);
|
|
1455
|
+
x(n), h(() => {
|
|
1456
|
+
C(i, "title", P(w).chartSaveApply), D(a, P(t).name), C(o, "aria-label", `${P(w).chartSaveRemove}: ${P(t).name}`), C(o, "title", P(w).chartSaveRemove);
|
|
1457
|
+
}), l("click", i, () => {
|
|
1458
|
+
y().applySavedChart(P(t).name), f(G, !1);
|
|
1459
|
+
}), l("click", o, () => y().removeSavedChart(P(t).name)), r(e, n);
|
|
1460
|
+
}), x(t), r(e, t);
|
|
1461
|
+
}, m = (e) => {
|
|
1462
|
+
var t = ct(), n = c(t, !0);
|
|
1463
|
+
x(t), h(() => D(n, P(w).chartSavedEmpty)), r(e, t);
|
|
1464
1464
|
};
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
}),
|
|
1468
|
-
C(t, "aria-label",
|
|
1469
|
-
}, [() => !
|
|
1465
|
+
a(u, (e) => {
|
|
1466
|
+
y().savedCharts.length ? e(d) : e(m, -1);
|
|
1467
|
+
}), x(t), h((e) => {
|
|
1468
|
+
C(t, "aria-label", P(w).chartSavedTitle), C(i, "aria-label", P(w).chartSaveName), C(i, "placeholder", P(w).chartSaveNamePlaceholder), o.disabled = e, D(s, P(w).chartSave);
|
|
1469
|
+
}, [() => !P(ze).trim()]), p("submit", n, (e) => {
|
|
1470
1470
|
e.preventDefault(), Be();
|
|
1471
|
-
}),
|
|
1471
|
+
}), ie(i, () => P(ze), (e) => f(ze, e)), r(e, t);
|
|
1472
1472
|
};
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
}),
|
|
1476
|
-
var
|
|
1477
|
-
let
|
|
1478
|
-
var
|
|
1473
|
+
a(u, (e) => {
|
|
1474
|
+
P(G) && e(m);
|
|
1475
|
+
}), x(o);
|
|
1476
|
+
var g = _(o, 2);
|
|
1477
|
+
let T;
|
|
1478
|
+
var E = c(g), ee = (e) => {
|
|
1479
1479
|
var t = ut();
|
|
1480
|
-
|
|
1480
|
+
r(e, t);
|
|
1481
1481
|
}, O = (e) => {
|
|
1482
1482
|
var t = dt();
|
|
1483
|
-
|
|
1483
|
+
r(e, t);
|
|
1484
1484
|
};
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
}),
|
|
1488
|
-
var
|
|
1489
|
-
|
|
1490
|
-
C(n, "aria-label",
|
|
1491
|
-
}),
|
|
1485
|
+
a(E, (e) => {
|
|
1486
|
+
y().chartFrozen ? e(ee) : e(O, -1);
|
|
1487
|
+
}), x(g);
|
|
1488
|
+
var k = _(g, 2);
|
|
1489
|
+
h(() => {
|
|
1490
|
+
C(n, "aria-label", P(w).chartBuildLabel), C(n, "title", P(w).chartBuildTitle), D(i, ` ${P(w).chartBuild ?? ""}`), C(s, "aria-label", P(w).chartSaveLabel), C(s, "title", P(w).chartSavedTitle), C(s, "aria-expanded", P(G)), T = N(g, 1, "sv-grid-chart-icon-btn sv-grid-chart-link-btn", null, T, { "is-unlinked": !!y().chartFrozen }), C(g, "aria-label", y().chartFrozen ? P(w).chartLinkBack : P(w).chartUnlink), C(g, "aria-pressed", !!y().chartFrozen), C(g, "title", y().chartFrozen ? P(w).chartUnlinkedTitle : P(w).chartLinkedTitle), C(k, "aria-label", P(w).chartAdd), C(k, "title", P(w).chartAdd);
|
|
1491
|
+
}), l("click", n, d), l("click", s, () => f(G, !P(G))), l("click", g, () => y().chartFrozen ? y().unfreezeChart() : y().freezeChart()), l("click", k, () => y().addChart()), r(e, t);
|
|
1492
1492
|
};
|
|
1493
|
-
|
|
1494
|
-
|
|
1493
|
+
a(Ht, (e) => {
|
|
1494
|
+
P(F) || e(Ut);
|
|
1495
1495
|
});
|
|
1496
1496
|
var Wt = _(Ht, 2), Gt = (e) => {
|
|
1497
|
-
var t = ht(), n =
|
|
1497
|
+
var t = ht(), n = v(t), i = c(n), o = (e) => {
|
|
1498
1498
|
var t = pt();
|
|
1499
|
-
|
|
1500
|
-
},
|
|
1499
|
+
r(e, t);
|
|
1500
|
+
}, s = (e) => {
|
|
1501
1501
|
var t = mt();
|
|
1502
|
-
|
|
1502
|
+
r(e, t);
|
|
1503
1503
|
};
|
|
1504
|
-
i
|
|
1505
|
-
|
|
1506
|
-
}),
|
|
1504
|
+
a(i, (e) => {
|
|
1505
|
+
P(H) ? e(o) : e(s, -1);
|
|
1506
|
+
}), x(n);
|
|
1507
1507
|
var u = _(n, 2);
|
|
1508
|
-
|
|
1509
|
-
C(n, "aria-label",
|
|
1510
|
-
}),
|
|
1508
|
+
h(() => {
|
|
1509
|
+
C(n, "aria-label", P(H) ? P(w).chartRestore : P(w).chartMaximize), C(n, "title", P(H) ? P(w).chartRestore : P(w).chartMaximize), C(u, "aria-label", P(w).chartDockLabel), C(u, "title", P(w).chartDock);
|
|
1510
|
+
}), l("click", n, be), l("click", u, ye), r(e, t);
|
|
1511
1511
|
}, Kt = (e) => {
|
|
1512
1512
|
var t = X();
|
|
1513
|
-
|
|
1514
|
-
C(t, "aria-label",
|
|
1515
|
-
}),
|
|
1513
|
+
h(() => {
|
|
1514
|
+
C(t, "aria-label", P(w).chartPopOutLabel), C(t, "title", P(w).chartPopOut);
|
|
1515
|
+
}), l("click", t, ve), r(e, t);
|
|
1516
1516
|
};
|
|
1517
|
-
|
|
1518
|
-
|
|
1517
|
+
a(Wt, (e) => {
|
|
1518
|
+
P(V) ? e(Gt) : e(Kt, -1);
|
|
1519
1519
|
});
|
|
1520
1520
|
var qt = _(Wt, 2);
|
|
1521
|
-
|
|
1521
|
+
x(jt), x(Z);
|
|
1522
1522
|
var Jt = _(Z, 2), Yt = (e) => {
|
|
1523
1523
|
var t = _t();
|
|
1524
|
-
|
|
1525
|
-
var
|
|
1526
|
-
let
|
|
1527
|
-
var
|
|
1528
|
-
|
|
1529
|
-
var
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
}, [() => $e(
|
|
1533
|
-
}),
|
|
1524
|
+
M(t, 23, () => y().charts, (e) => e.id, (e, t, n) => {
|
|
1525
|
+
var i = gt();
|
|
1526
|
+
let a;
|
|
1527
|
+
var o = c(i), s = c(o, !0);
|
|
1528
|
+
x(o);
|
|
1529
|
+
var u = _(o, 2);
|
|
1530
|
+
x(i), h((e) => {
|
|
1531
|
+
a = N(i, 1, "sv-grid-chart-tab", null, a, { "is-active": P(n) === y().activeChartIndex }), C(o, "aria-selected", P(n) === y().activeChartIndex), D(s, P(t).title), C(u, "aria-label", e), C(u, "title", P(w).chartRemove);
|
|
1532
|
+
}, [() => $e(P(w).chartRemoveTab, { title: P(t).title })]), l("click", o, () => y().activeChartIndex = P(n)), l("click", u, () => y().removeChart(P(n))), r(e, i);
|
|
1533
|
+
}), x(t), h(() => C(t, "aria-label", P(w).chartTabs)), r(e, t);
|
|
1534
1534
|
};
|
|
1535
|
-
|
|
1536
|
-
!
|
|
1535
|
+
a(Jt, (e) => {
|
|
1536
|
+
!P(F) && y().charts.length > 1 && e(Yt);
|
|
1537
1537
|
});
|
|
1538
1538
|
var Xt = _(Jt, 2), Zt = (e) => {
|
|
1539
|
-
var t = xt(), n =
|
|
1540
|
-
|
|
1541
|
-
var
|
|
1542
|
-
|
|
1543
|
-
var u = _(
|
|
1544
|
-
var t = vt(), n =
|
|
1545
|
-
|
|
1546
|
-
t.disabled =
|
|
1547
|
-
}),
|
|
1539
|
+
var t = xt(), n = c(t), i = c(n);
|
|
1540
|
+
S(i);
|
|
1541
|
+
var o = _(i, 2), s = c(o, !0);
|
|
1542
|
+
x(o);
|
|
1543
|
+
var u = _(o, 2), d = (e) => {
|
|
1544
|
+
var t = vt(), n = c(t, !0);
|
|
1545
|
+
x(t), h(() => {
|
|
1546
|
+
t.disabled = P(K) || !P(z), C(t, "title", P(w).chartAiExplainTitle), D(n, P(w).chartAiExplain);
|
|
1547
|
+
}), l("click", t, We), r(e, t);
|
|
1548
1548
|
};
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
}),
|
|
1552
|
-
var
|
|
1553
|
-
var t = yt(), n =
|
|
1554
|
-
|
|
1555
|
-
},
|
|
1556
|
-
var t = bt(), n =
|
|
1557
|
-
|
|
1549
|
+
a(u, (e) => {
|
|
1550
|
+
P(Ue) && e(d);
|
|
1551
|
+
}), x(n);
|
|
1552
|
+
var m = _(n, 2), g = (e) => {
|
|
1553
|
+
var t = yt(), n = c(t, !0);
|
|
1554
|
+
x(t), h(() => D(n, P(q))), r(e, t);
|
|
1555
|
+
}, v = (e) => {
|
|
1556
|
+
var t = bt(), n = c(t, !0);
|
|
1557
|
+
x(t), h(() => D(n, P(J))), r(e, t);
|
|
1558
1558
|
};
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
}),
|
|
1562
|
-
C(
|
|
1563
|
-
}, [() =>
|
|
1559
|
+
a(m, (e) => {
|
|
1560
|
+
P(q) ? e(g) : P(J) && e(v, 1);
|
|
1561
|
+
}), x(t), h((e) => {
|
|
1562
|
+
C(i, "placeholder", P(w).chartAiPlaceholder), i.disabled = P(K), o.disabled = e, D(s, P(K) ? P(w).chartAiThinking : P(w).chartAiRun);
|
|
1563
|
+
}, [() => P(K) || !P(Ke).trim()]), p("submit", n, (e) => {
|
|
1564
1564
|
e.preventDefault(), qe();
|
|
1565
|
-
}),
|
|
1565
|
+
}), ie(i, () => P(Ke), (e) => f(Ke, e)), r(e, t);
|
|
1566
1566
|
};
|
|
1567
|
-
|
|
1568
|
-
|
|
1567
|
+
a(Xt, (e) => {
|
|
1568
|
+
P(He) && P(Ge) && !P(F) && e(Zt);
|
|
1569
1569
|
});
|
|
1570
1570
|
var Qt = _(Xt, 2), $t = (e) => {
|
|
1571
1571
|
Xe(e, {
|
|
1572
1572
|
get ctrl() {
|
|
1573
|
-
return
|
|
1573
|
+
return y();
|
|
1574
1574
|
},
|
|
1575
1575
|
get messages() {
|
|
1576
|
-
return
|
|
1576
|
+
return P(w);
|
|
1577
1577
|
}
|
|
1578
1578
|
});
|
|
1579
1579
|
};
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
}),
|
|
1583
|
-
var en = _(Ot, 2), tn =
|
|
1584
|
-
var t = St(), n =
|
|
1580
|
+
a(Qt, (e) => {
|
|
1581
|
+
P(F) || e($t);
|
|
1582
|
+
}), x(Ot);
|
|
1583
|
+
var en = _(Ot, 2), tn = c(en), nn = (e) => {
|
|
1584
|
+
var t = St(), n = c(t);
|
|
1585
1585
|
{
|
|
1586
|
-
let e =
|
|
1586
|
+
let e = j(() => P(E)?.zoom ?? !1), t = j(() => P(E)?.rangePresets), r = j(() => P(E)?.syncGroup), i = j(() => P(E)?.contextMenu), a = j(() => P(E)?.animate), o = j(() => P(E)?.localeText), s = j(() => P(E)?.export === !0 || void 0);
|
|
1587
1587
|
me(n, {
|
|
1588
1588
|
get spec() {
|
|
1589
|
-
return
|
|
1589
|
+
return P(z);
|
|
1590
1590
|
},
|
|
1591
1591
|
get indicators() {
|
|
1592
|
-
return
|
|
1592
|
+
return y().chartIndicatorPanes;
|
|
1593
1593
|
},
|
|
1594
1594
|
onSelect: Te,
|
|
1595
1595
|
interactive: !0,
|
|
1596
1596
|
legend: !1,
|
|
1597
1597
|
get zoomable() {
|
|
1598
|
-
return
|
|
1598
|
+
return P(e);
|
|
1599
1599
|
},
|
|
1600
1600
|
get rangePresets() {
|
|
1601
|
-
return
|
|
1601
|
+
return P(t);
|
|
1602
1602
|
},
|
|
1603
1603
|
get syncGroup() {
|
|
1604
|
-
return
|
|
1604
|
+
return P(r);
|
|
1605
1605
|
},
|
|
1606
1606
|
get contextMenu() {
|
|
1607
|
-
return
|
|
1607
|
+
return P(i);
|
|
1608
1608
|
},
|
|
1609
1609
|
get animate() {
|
|
1610
|
-
return
|
|
1610
|
+
return P(a);
|
|
1611
1611
|
},
|
|
1612
1612
|
get localeText() {
|
|
1613
|
-
return
|
|
1613
|
+
return P(o);
|
|
1614
1614
|
},
|
|
1615
1615
|
get crosshairLabels() {
|
|
1616
|
-
return
|
|
1616
|
+
return P(ne);
|
|
1617
1617
|
},
|
|
1618
1618
|
get toolbar() {
|
|
1619
|
-
return
|
|
1619
|
+
return P(s);
|
|
1620
1620
|
},
|
|
1621
1621
|
get zoom() {
|
|
1622
|
-
return
|
|
1622
|
+
return y().chartZoom;
|
|
1623
1623
|
},
|
|
1624
1624
|
set zoom(e) {
|
|
1625
|
-
|
|
1625
|
+
y().chartZoom = e;
|
|
1626
1626
|
}
|
|
1627
1627
|
});
|
|
1628
1628
|
}
|
|
1629
|
-
|
|
1629
|
+
x(t), r(e, t);
|
|
1630
1630
|
}, rn = (e) => {
|
|
1631
1631
|
{
|
|
1632
|
-
let t =
|
|
1632
|
+
let t = j(() => P(E)?.zoom ?? !1), n = j(() => P(E)?.brush === !0), r = j(() => P(E)?.rangePresets), i = j(() => P(E)?.syncGroup), a = j(() => P(E)?.contextMenu), o = j(() => P(E)?.animate), s = j(() => P(E)?.localeText), c = j(() => P(E)?.export === !0 || void 0);
|
|
1633
1633
|
de(e, {
|
|
1634
1634
|
get spec() {
|
|
1635
|
-
return
|
|
1635
|
+
return P(z);
|
|
1636
1636
|
},
|
|
1637
1637
|
autosize: !0,
|
|
1638
1638
|
onSelect: Te,
|
|
1639
1639
|
interactive: !0,
|
|
1640
1640
|
get legend() {
|
|
1641
|
-
return
|
|
1641
|
+
return P(te);
|
|
1642
1642
|
},
|
|
1643
1643
|
get dataLabels() {
|
|
1644
|
-
return
|
|
1644
|
+
return P(A);
|
|
1645
1645
|
},
|
|
1646
1646
|
get zoomable() {
|
|
1647
|
-
return
|
|
1647
|
+
return P(t);
|
|
1648
1648
|
},
|
|
1649
1649
|
get brush() {
|
|
1650
|
-
return
|
|
1650
|
+
return P(n);
|
|
1651
1651
|
},
|
|
1652
1652
|
get rangePresets() {
|
|
1653
|
-
return
|
|
1653
|
+
return P(r);
|
|
1654
1654
|
},
|
|
1655
1655
|
get syncGroup() {
|
|
1656
|
-
return
|
|
1656
|
+
return P(i);
|
|
1657
1657
|
},
|
|
1658
1658
|
get contextMenu() {
|
|
1659
|
-
return
|
|
1659
|
+
return P(a);
|
|
1660
1660
|
},
|
|
1661
1661
|
get animate() {
|
|
1662
|
-
return
|
|
1662
|
+
return P(o);
|
|
1663
1663
|
},
|
|
1664
1664
|
get localeText() {
|
|
1665
|
-
return
|
|
1665
|
+
return P(s);
|
|
1666
1666
|
},
|
|
1667
1667
|
get crosshairLabels() {
|
|
1668
|
-
return
|
|
1668
|
+
return P(ne);
|
|
1669
1669
|
},
|
|
1670
1670
|
get toolbar() {
|
|
1671
|
-
return
|
|
1671
|
+
return P(c);
|
|
1672
1672
|
},
|
|
1673
1673
|
get zoom() {
|
|
1674
|
-
return
|
|
1674
|
+
return y().chartZoom;
|
|
1675
1675
|
},
|
|
1676
1676
|
set zoom(e) {
|
|
1677
|
-
|
|
1677
|
+
y().chartZoom = e;
|
|
1678
1678
|
}
|
|
1679
1679
|
});
|
|
1680
1680
|
}
|
|
1681
1681
|
}, an = (e) => {
|
|
1682
|
-
var t = Ct(), n =
|
|
1683
|
-
var t =
|
|
1684
|
-
|
|
1685
|
-
},
|
|
1686
|
-
var t =
|
|
1687
|
-
|
|
1682
|
+
var t = Ct(), n = c(t), i = (e) => {
|
|
1683
|
+
var t = o();
|
|
1684
|
+
h(() => D(t, P(w).chartEmptyColumns)), r(e, t);
|
|
1685
|
+
}, s = (e) => {
|
|
1686
|
+
var t = o();
|
|
1687
|
+
h(() => D(t, P(w).chartEmptyData)), r(e, t);
|
|
1688
1688
|
};
|
|
1689
|
-
|
|
1690
|
-
!
|
|
1691
|
-
}),
|
|
1689
|
+
a(n, (e) => {
|
|
1690
|
+
!P(pe).dims.length || !P(pe).measures.length ? e(i) : e(s, -1);
|
|
1691
|
+
}), x(t), r(e, t);
|
|
1692
1692
|
};
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
}),
|
|
1693
|
+
a(tn, (e) => {
|
|
1694
|
+
P(z) && y().chartIndicatorPanes.length && P(z).series[0]?.ohlc ? e(nn) : P(z) && (P(z).series.length || P(z).gaugeValue != null || P(F)) ? e(rn, 1) : e(an, -1);
|
|
1695
|
+
}), x(en), b(en, (e) => f(Ee, e), () => P(Ee));
|
|
1696
1696
|
var on = _(en, 2), sn = (e) => {
|
|
1697
|
-
var t =
|
|
1698
|
-
|
|
1697
|
+
var t = ee(), n = v(t);
|
|
1698
|
+
i(n, () => P(s), (e, t) => {
|
|
1699
1699
|
t(e, {
|
|
1700
1700
|
get ctrl() {
|
|
1701
|
-
return
|
|
1701
|
+
return y();
|
|
1702
1702
|
},
|
|
1703
1703
|
get types() {
|
|
1704
|
-
return
|
|
1704
|
+
return P(we);
|
|
1705
1705
|
},
|
|
1706
1706
|
get messages() {
|
|
1707
|
-
return
|
|
1707
|
+
return P(w);
|
|
1708
1708
|
},
|
|
1709
1709
|
get open() {
|
|
1710
|
-
return
|
|
1710
|
+
return P(u);
|
|
1711
1711
|
},
|
|
1712
1712
|
set open(e) {
|
|
1713
|
-
|
|
1713
|
+
f(u, e, !0);
|
|
1714
1714
|
}
|
|
1715
1715
|
});
|
|
1716
|
-
}),
|
|
1716
|
+
}), r(e, t);
|
|
1717
1717
|
};
|
|
1718
|
-
|
|
1719
|
-
|
|
1718
|
+
a(on, (e) => {
|
|
1719
|
+
P(s) && e(sn);
|
|
1720
1720
|
});
|
|
1721
1721
|
var cn = _(on, 2), ln = (e) => {
|
|
1722
1722
|
var t = wt();
|
|
1723
|
-
|
|
1723
|
+
h(() => C(t, "aria-label", P(w).chartResizeWindow)), l("pointerdown", t, Se), r(e, t);
|
|
1724
1724
|
};
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
}),
|
|
1728
|
-
Ze =
|
|
1729
|
-
"is-right":
|
|
1730
|
-
"is-bottom":
|
|
1731
|
-
"is-floating":
|
|
1732
|
-
"is-maximized":
|
|
1733
|
-
}), ae(Y,
|
|
1734
|
-
}),
|
|
1735
|
-
x: !
|
|
1736
|
-
y: !
|
|
1725
|
+
a(cn, (e) => {
|
|
1726
|
+
P(V) && !P(H) && e(ln);
|
|
1727
|
+
}), x(Y), b(Y, (e) => f(ge, e), () => P(ge)), h(() => {
|
|
1728
|
+
Ze = N(Y, 1, "sv-grid-chart-panel", null, Ze, {
|
|
1729
|
+
"is-right": P(I) === "right" && !P(V),
|
|
1730
|
+
"is-bottom": P(I) === "bottom" && !P(V),
|
|
1731
|
+
"is-floating": P(V),
|
|
1732
|
+
"is-maximized": P(V) && P(H)
|
|
1733
|
+
}), ae(Y, P(Ce)), C(Y, "aria-label", P(w).chartPanelTitle), kt = N(Z, 1, "sv-grid-chart-drawer-title", null, kt, { "is-drag-handle": P(V) && !P(H) }), D(Q, P(w).chartPanelTitle), C($, "aria-label", P(w).chartExportLabel), C($, "title", P(w).chartExport), C($, "aria-expanded", P(W)), C(qt, "aria-label", P(w).chartClose);
|
|
1734
|
+
}), l("pointerdown", Z, xe), l("click", $, () => f(W, !P(W))), l("click", qt, () => y().chartPanelOpen = !1), m(3, Y, () => R, () => ({
|
|
1735
|
+
x: !P(V) && P(I) === "right" ? P(B) : 0,
|
|
1736
|
+
y: !P(V) && P(I) === "bottom" ? P(B) : 0,
|
|
1737
1737
|
duration: 180,
|
|
1738
1738
|
easing: fe
|
|
1739
|
-
})),
|
|
1739
|
+
})), r(e, Y), k();
|
|
1740
1740
|
}
|
|
1741
|
-
|
|
1741
|
+
s(["pointerdown", "click"]);
|
|
1742
1742
|
//#endregion
|
|
1743
1743
|
export { Et as default, Xe as n, $e as t };
|