@svgrid/grid-wc 3.0.49 → 3.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/GridFind-B5zpfGlk.js +39 -0
  2. package/dist/GridFooter-CSzuZWPH.js +142 -0
  3. package/dist/GridMenus-DGR1VkZL.js +1480 -0
  4. package/dist/PinSplitter-BbQwf4Eh.js +178 -0
  5. package/dist/{SvChartMenu-CztABicV.js → SvChartMenu-CFvrEIJf.js} +132 -132
  6. package/dist/{SvDateRangeInput-ByR-LFgf.js → SvDateRangeInput-B8uPcD0z.js} +107 -107
  7. package/dist/{SvDateTimePicker-8nq26l0z.js → SvDateTimePicker-D9MnooXn.js} +316 -316
  8. package/dist/{SvField-CtzxdF7J.js → SvField--1Px2j7E.js} +105 -105
  9. package/dist/SvGridCellEditor-BzLvoGRp.js +594 -0
  10. package/dist/SvGridChart-rvB4vvCB.js +3684 -0
  11. package/dist/{SvGridChartBuilder-BMPDRY0A.js → SvGridChartBuilder-C0HbpZhw.js} +385 -385
  12. package/dist/SvGridChartPanel-CftDsgLi.js +1689 -0
  13. package/dist/{SvGridChartView-D0Mk0N4Q.js → SvGridChartView-BMJf1fCo.js} +12 -12
  14. package/dist/SvGridDropdown-CZRv-0Cw.js +258 -0
  15. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +4 -2
  16. package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
  17. package/dist/angular/types/svgrid-grid-wc-angular.d.ts +2 -1
  18. package/dist/{chart-export-pdf-COD2Ugv7.js → chart-export-pdf-CFq7Y-pq.js} +1 -1
  19. package/dist/{shadow/client-OtsRxGjS.js → client-DeNKZvIV.js} +593 -581
  20. package/dist/{date-format-DngG1HJ5.js → date-format-B1XMOxlA.js} +309 -309
  21. package/dist/{grid-extension.svelte-DToFhcZv.js → grid-extension.svelte-B_gzYJQQ.js} +8 -8
  22. package/dist/{range-commit-C6Rogxem.js → range-commit-BriJZw_M.js} +1 -1
  23. package/dist/react/index.d.ts +3 -1
  24. package/dist/react/index.js +1 -1
  25. package/dist/{shadow/row-drag-DLQMyiV3.js → row-drag-DevACK09.js} +1 -1
  26. package/dist/shadow/GridFind-CVqPCjPK.js +39 -0
  27. package/dist/shadow/GridFooter-DY9numnH.js +142 -0
  28. package/dist/shadow/GridMenus-Bl11jIy6.js +1480 -0
  29. package/dist/shadow/PinSplitter-DNjnUtbi.js +178 -0
  30. package/dist/shadow/{SvChartMenu-CFlDiKdq.js → SvChartMenu-Ca2hVFUA.js} +132 -132
  31. package/dist/shadow/{SvDateRangeInput-9Wq4E64y.js → SvDateRangeInput-CNXId95j.js} +107 -107
  32. package/dist/shadow/{SvDateTimePicker-J65ZmtSw.js → SvDateTimePicker-B6lwKYFq.js} +316 -316
  33. package/dist/shadow/{SvField-DGPj2clt.js → SvField-1OiD5dJA.js} +105 -105
  34. package/dist/shadow/SvGridCellEditor-CRImfWTE.js +594 -0
  35. package/dist/shadow/SvGridChart-_GY1Mgr4.js +3684 -0
  36. package/dist/shadow/{SvGridChartBuilder-BY64S-Zw.js → SvGridChartBuilder-Ci_GlCg3.js} +385 -385
  37. package/dist/shadow/SvGridChartPanel-BHczMJAe.js +1689 -0
  38. package/dist/shadow/{SvGridChartView-DwchQygE.js → SvGridChartView-BJEpaO8h.js} +12 -12
  39. package/dist/shadow/SvGridDropdown-giyKVcC0.js +258 -0
  40. package/dist/shadow/{chart-export-pdf-D9OfzqwS.js → chart-export-pdf-Ne0ET-JM.js} +1 -1
  41. package/dist/{client-OtsRxGjS.js → shadow/client-DeNKZvIV.js} +593 -581
  42. package/dist/shadow/{date-format-C9UkbCig.js → date-format-VCW-gATr.js} +309 -309
  43. package/dist/shadow/{grid-extension.svelte-DToFhcZv.js → grid-extension.svelte-B_gzYJQQ.js} +8 -8
  44. package/dist/shadow/{range-commit-C6Rogxem.js → range-commit-BriJZw_M.js} +1 -1
  45. package/dist/{row-drag-DLQMyiV3.js → shadow/row-drag-DevACK09.js} +1 -1
  46. package/dist/shadow/sv-grid-scrollbar-yHMClECS.js +228 -0
  47. package/dist/shadow/sv-grid-shadow-element.d.ts +2 -0
  48. package/dist/shadow/sv-grid-shadow-element.js +5686 -5829
  49. package/dist/{svelte-virtualizer.svelte-DWvD9wvL.js → shadow/svelte-virtualizer.svelte-D8oCAQUc.js} +4 -4
  50. package/dist/sv-grid-element.d.ts +2 -0
  51. package/dist/sv-grid-element.js +5668 -5811
  52. package/dist/sv-grid-scrollbar-yHMClECS.js +228 -0
  53. package/dist/{shadow/svelte-virtualizer.svelte-DWvD9wvL.js → svelte-virtualizer.svelte-D8oCAQUc.js} +4 -4
  54. package/dist/vue/index.d.ts +2 -1
  55. package/dist/vue/index.js +1 -1
  56. package/package.json +3 -3
  57. package/dist/GridFind-C1YbloFh.js +0 -39
  58. package/dist/GridFooter-DOR8m9GQ.js +0 -142
  59. package/dist/GridMenus-ac4ROLfR.js +0 -1461
  60. package/dist/PinSplitter-Du4ZF8T3.js +0 -178
  61. package/dist/SvGridCellEditor-3jq3ec38.js +0 -594
  62. package/dist/SvGridChart-CHMHUQto.js +0 -3684
  63. package/dist/SvGridChartPanel-Bk_xFAwN.js +0 -1689
  64. package/dist/SvGridDropdown-CnCQuXaI.js +0 -258
  65. package/dist/shadow/GridFind-CcoKoisE.js +0 -39
  66. package/dist/shadow/GridFooter-CDq71ytl.js +0 -142
  67. package/dist/shadow/GridMenus-hIMzQt3E.js +0 -1461
  68. package/dist/shadow/PinSplitter-BAYTAZtm.js +0 -178
  69. package/dist/shadow/SvGridCellEditor-DA5l3ENL.js +0 -594
  70. package/dist/shadow/SvGridChart-DgCuTYRq.js +0 -3684
  71. package/dist/shadow/SvGridChartPanel-CuRtOxSk.js +0 -1689
  72. package/dist/shadow/SvGridDropdown-B_5kqHQE.js +0 -258
@@ -1,1689 +0,0 @@
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",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["shadow"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["shadow"]=q["shadow"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="shadow:SvGridChartPanel-CuRtOxSk.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:SvGridChartPanel-CuRtOxSk.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
2
- import { S as e, h as t } from "./chart-CVOJXX1_.js";
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 ee, d as x, f as S, g as C, h as w, i as T, it as te, j as ne, k as E, n as re, o as ie, p as D, q as O, r as ae, s as oe, st as k, tt as A, v as se, w as j, x as ce, y as M, z as N } from "./client-OtsRxGjS.js";
4
- import { a as P } from "./editor-contract-peBDxir_.js";
5
- import { t as le } from "./menu-focus-lmTebXyL.js";
6
- import { a as ue, n as de, o as fe, r as pe, s as me, t as he } from "./SvGridChart-DgCuTYRq.js";
7
- import "./sv-grid-shadow-element.js";
8
- //#region ../../node_modules/.pnpm/svelte@5.57.3_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
9
- function F(e) {
10
- let t = e - 1;
11
- return t * t * t + 1;
12
- }
13
- function ge(e) {
14
- let t = typeof e == "string" && e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
15
- return t ? [parseFloat(t[1]), t[2] || "px"] : [e, "px"];
16
- }
17
- function _e(e, { delay: t = 0, duration: n = 400, easing: r = F, x: i = 0, y: a = 0, opacity: o = 0 } = {}) {
18
- let s = getComputedStyle(e), c = +s.opacity, l = s.transform === "none" ? "" : s.transform, u = c * (1 - o), [d, f] = ge(i), [p, m] = ge(a);
19
- return {
20
- delay: t,
21
- duration: n,
22
- easing: r,
23
- css: (e, t) => `
24
- transform: ${l} translate(${(1 - e) * d}${f}, ${(1 - e) * p}${m});
25
- opacity: ${c - u * t}`
26
- };
27
- }
28
- //#endregion
29
- //#region ../../node_modules/.pnpm/svelte@5.57.3_@typescript-eslint+types@8.67.0/node_modules/svelte/src/easing/index.js
30
- function ve(e) {
31
- let t = e - 1;
32
- return t * t * t + 1;
33
- }
34
- //#endregion
35
- //#region ../grid/dist/SvChartPanes.svelte
36
- var I = /* @__PURE__ */ new Set([
37
- "$$slots",
38
- "$$events",
39
- "$$legacy",
40
- "spec",
41
- "indicators",
42
- "syncGroup",
43
- "axisWidth",
44
- "zoom",
45
- "onZoom",
46
- "zoomable",
47
- "legend",
48
- "toolbar"
49
- ]), ye = u("<div class=\"sv-chart-pane is-indicator svelte-14dx6di\"><span class=\"sv-chart-pane-title svelte-14dx6di\"> </span> <!></div>"), L = u("<div class=\"sv-chart-panes svelte-14dx6di\"><div class=\"sv-chart-pane is-main svelte-14dx6di\"><!></div> <!></div>");
50
- function be(t, i) {
51
- ee(i, !0);
52
- let a = re(i, "indicators", 19, () => []), o = re(i, "axisWidth", 3, 56), s = re(i, "zoom", 15, null), c = ae(i, I), l = `svcp-${Math.random().toString(36).slice(2, 8)}`, u = A(() => i.syncGroup ?? l), d = n(0), p = (e) => N(d) > 0 && !e.width ? { width: Math.round(N(d)) } : {}, m = A(() => ({
53
- ...i.spec,
54
- ...p(i.spec),
55
- xAxis: {
56
- ...i.spec.xAxis,
57
- ...a().length ? { labels: !1 } : {}
58
- },
59
- yAxis: {
60
- ...i.spec.yAxis,
61
- width: o()
62
- },
63
- ...i.spec.y2Axis || i.spec.series.some((e) => e.axis === "right") ? { y2Axis: {
64
- ...i.spec.y2Axis,
65
- width: o()
66
- } } : {}
67
- })), g = A(() => a().map((t, n) => {
68
- let { title: r, ...s } = e(i.spec, t);
69
- return {
70
- title: r ?? t.kind,
71
- spec: {
72
- ...s,
73
- ...p(s),
74
- xAxis: {
75
- ...s.xAxis,
76
- labels: n === a().length - 1
77
- },
78
- yAxis: {
79
- ...s.yAxis,
80
- width: o()
81
- }
82
- }
83
- };
84
- }));
85
- var y = L(), b = O(y), x = O(b);
86
- he(x, T({
87
- get spec() {
88
- return N(m);
89
- },
90
- get syncGroup() {
91
- return N(u);
92
- },
93
- get onZoom() {
94
- return i.onZoom;
95
- },
96
- get zoomable() {
97
- return i.zoomable;
98
- },
99
- get legend() {
100
- return i.legend;
101
- },
102
- get toolbar() {
103
- return i.toolbar;
104
- }
105
- }, () => c, {
106
- get zoom() {
107
- return s();
108
- },
109
- set zoom(e) {
110
- s(e);
111
- }
112
- })), k(b);
113
- var C = _(b, 2);
114
- j(C, 19, () => N(g), (e, t) => `${a()[t]?.kind}-${t}`, (e, t, n) => {
115
- var s = ye(), c = O(s);
116
- let l;
117
- var d = v(c, !0), f = _(c, 2);
118
- {
119
- let e = A(() => i.zoomable ? {
120
- drag: !1,
121
- wheel: typeof i.zoomable == "object" && i.zoomable.wheel,
122
- pan: typeof i.zoomable == "object" && i.zoomable.pan
123
- } : !1);
124
- he(f, {
125
- get spec() {
126
- return N(t).spec;
127
- },
128
- get syncGroup() {
129
- return N(u);
130
- },
131
- get zoomable() {
132
- return N(e);
133
- },
134
- legend: !1,
135
- toolbar: !1,
136
- interactive: !0,
137
- get localeText() {
138
- return i.localeText;
139
- }
140
- });
141
- }
142
- k(s), h(() => {
143
- S(s, "data-indicator", a()[N(n)]?.kind), l = se(c, "", l, { left: `${o() + 6}px` }), E(d, N(t).title);
144
- }), r(e, s);
145
- }), k(y), ie(y, "clientWidth", (e) => f(d, e)), r(t, y), te();
146
- }
147
- //#endregion
148
- //#region ../grid/dist/SvGridChartPickers.svelte
149
- var R = [
150
- {
151
- value: "bar",
152
- label: "chartTypeBar",
153
- group: "chartGroupCompare"
154
- },
155
- {
156
- value: "line",
157
- label: "chartTypeLine",
158
- group: "chartGroupCompare"
159
- },
160
- {
161
- value: "area",
162
- label: "chartTypeArea",
163
- group: "chartGroupCompare"
164
- },
165
- {
166
- value: "lollipop",
167
- label: "chartTypeLollipop",
168
- group: "chartGroupCompare"
169
- },
170
- {
171
- value: "pareto",
172
- label: "chartTypePareto",
173
- group: "chartGroupCompare"
174
- },
175
- {
176
- value: "range-bar",
177
- label: "chartTypeRangeBar",
178
- group: "chartGroupCompare",
179
- needs: (e) => e.measures.length >= 2
180
- },
181
- {
182
- value: "range-area",
183
- label: "chartTypeRangeArea",
184
- group: "chartGroupCompare",
185
- needs: (e) => e.measures.length >= 2
186
- },
187
- {
188
- value: "dumbbell",
189
- label: "chartTypeDumbbell",
190
- group: "chartGroupCompare",
191
- needs: (e) => e.measures.length >= 2
192
- },
193
- {
194
- value: "radial-column",
195
- label: "chartTypeRadialColumn",
196
- group: "chartGroupCompare"
197
- },
198
- {
199
- value: "radial-bar",
200
- label: "chartTypeRadialBar",
201
- group: "chartGroupCompare"
202
- },
203
- {
204
- value: "nightingale",
205
- label: "chartTypeNightingale",
206
- group: "chartGroupCompare"
207
- },
208
- {
209
- value: "pie",
210
- label: "chartTypePie",
211
- group: "chartGroupPartOfWhole"
212
- },
213
- {
214
- value: "treemap",
215
- label: "chartTypeTreemap",
216
- group: "chartGroupPartOfWhole"
217
- },
218
- {
219
- value: "sunburst",
220
- label: "chartTypeSunburst",
221
- group: "chartGroupPartOfWhole"
222
- },
223
- {
224
- value: "funnel",
225
- label: "chartTypeFunnel",
226
- group: "chartGroupFlow"
227
- },
228
- {
229
- value: "waterfall",
230
- label: "chartTypeWaterfall",
231
- group: "chartGroupFlow"
232
- },
233
- {
234
- value: "sankey",
235
- label: "chartTypeSankey",
236
- group: "chartGroupFlow",
237
- needs: (e) => e.dims.length >= 2
238
- },
239
- {
240
- value: "chord",
241
- label: "chartTypeChord",
242
- group: "chartGroupFlow",
243
- needs: (e) => e.dims.length >= 2
244
- },
245
- {
246
- value: "radar",
247
- label: "chartTypeRadar",
248
- group: "chartGroupDistribution"
249
- },
250
- {
251
- value: "heatmap",
252
- label: "chartTypeHeatmap",
253
- group: "chartGroupDistribution",
254
- needs: (e) => e.dims.length >= 2
255
- },
256
- {
257
- value: "scatter",
258
- label: "chartTypeScatter",
259
- group: "chartGroupDistribution",
260
- needs: (e) => e.measures.length >= 2
261
- },
262
- {
263
- value: "boxplot",
264
- label: "chartTypeBoxplot",
265
- group: "chartGroupDistribution"
266
- },
267
- {
268
- value: "histogram",
269
- label: "chartTypeHistogram",
270
- group: "chartGroupDistribution"
271
- },
272
- {
273
- value: "gauge",
274
- label: "chartTypeGauge",
275
- group: "chartGroupSingleValue"
276
- },
277
- {
278
- value: "bullet",
279
- label: "chartTypeBullet",
280
- group: "chartGroupSingleValue"
281
- },
282
- {
283
- value: "calendar",
284
- label: "chartTypeCalendar",
285
- group: "chartGroupOverTime",
286
- needs: (e) => e.dates.length >= 1
287
- },
288
- {
289
- value: "stream",
290
- label: "chartTypeStream",
291
- group: "chartGroupOverTime",
292
- needs: (e) => e.dims.length >= 2
293
- },
294
- {
295
- value: "candlestick",
296
- label: "chartTypeCandlestick",
297
- group: "chartGroupOverTime",
298
- needs: (e) => e.dates.length >= 1 && e.measures.length >= 4
299
- },
300
- {
301
- value: "ohlc",
302
- label: "chartTypeOhlc",
303
- group: "chartGroupOverTime",
304
- needs: (e) => e.dates.length >= 1 && e.measures.length >= 4
305
- }
306
- ];
307
- function xe(e, t) {
308
- return R.filter((t) => !t.needs || t.needs(e)).map((e) => ({
309
- value: e.value,
310
- label: t[e.label],
311
- group: t[e.group]
312
- }));
313
- }
314
- function z(e) {
315
- return [
316
- {
317
- value: "sum",
318
- label: e.chartReduceSum
319
- },
320
- {
321
- value: "avg",
322
- label: e.chartReduceAvg
323
- },
324
- {
325
- value: "count",
326
- label: e.chartReduceCount
327
- },
328
- {
329
- value: "min",
330
- label: e.chartReduceMin
331
- },
332
- {
333
- value: "max",
334
- label: e.chartReduceMax
335
- },
336
- {
337
- value: "median",
338
- label: e.chartReduceMedian
339
- },
340
- {
341
- value: "p90",
342
- label: e.chartReduceP90
343
- },
344
- {
345
- value: "first",
346
- label: e.chartReduceFirst
347
- },
348
- {
349
- value: "last",
350
- label: e.chartReduceLast
351
- },
352
- {
353
- value: "countDistinct",
354
- label: e.chartReduceCountDistinct
355
- }
356
- ];
357
- }
358
- var B = [
359
- {
360
- key: "theme",
361
- label: "chartPaletteTheme",
362
- colors: null
363
- },
364
- {
365
- key: "ocean",
366
- label: "chartPaletteOcean",
367
- colors: [
368
- "#0ea5e9",
369
- "#14b8a6",
370
- "#6366f1",
371
- "#8b5cf6",
372
- "#06b6d4"
373
- ]
374
- },
375
- {
376
- key: "sunset",
377
- label: "chartPaletteSunset",
378
- colors: [
379
- "#f59e0b",
380
- "#ef4444",
381
- "#ec4899",
382
- "#8b5cf6",
383
- "#f97316"
384
- ]
385
- },
386
- {
387
- key: "forest",
388
- label: "chartPaletteForest",
389
- colors: [
390
- "#16a34a",
391
- "#65a30d",
392
- "#0d9488",
393
- "#4d7c0f",
394
- "#0891b2"
395
- ]
396
- },
397
- {
398
- key: "slate",
399
- label: "chartPaletteSlate",
400
- colors: [
401
- "#475569",
402
- "#0ea5e9",
403
- "#64748b",
404
- "#38bdf8",
405
- "#94a3b8"
406
- ]
407
- }
408
- ], Se = [
409
- {
410
- value: "volume",
411
- label: "chartIndVolume",
412
- title: "chartIndVolumeTitle"
413
- },
414
- {
415
- value: "rsi",
416
- label: "chartIndRsi",
417
- title: "chartIndRsiTitle"
418
- },
419
- {
420
- value: "macd",
421
- label: "chartIndMacd",
422
- title: "chartIndMacdTitle"
423
- },
424
- {
425
- value: "stochastic",
426
- label: "chartIndStochastic",
427
- title: "chartIndStochasticTitle"
428
- },
429
- {
430
- value: "atr",
431
- label: "chartIndAtr",
432
- title: "chartIndAtrTitle"
433
- },
434
- {
435
- value: "obv",
436
- label: "chartIndObv",
437
- title: "chartIndObvTitle"
438
- },
439
- {
440
- value: "sma",
441
- label: "chartIndSma",
442
- title: "chartIndSmaTitle"
443
- },
444
- {
445
- value: "ema",
446
- label: "chartIndEma",
447
- title: "chartIndEmaTitle"
448
- },
449
- {
450
- value: "bb",
451
- label: "chartIndBb",
452
- title: "chartIndBbTitle"
453
- },
454
- {
455
- value: "vwap",
456
- label: "chartIndVwap",
457
- title: "chartIndVwapTitle"
458
- }
459
- ], Ce = [
460
- "sma",
461
- "ema",
462
- "bb",
463
- "vwap"
464
- ], we = [
465
- {
466
- key: "open",
467
- label: "chartOpen"
468
- },
469
- {
470
- key: "high",
471
- label: "chartHigh"
472
- },
473
- {
474
- key: "low",
475
- label: "chartLow"
476
- },
477
- {
478
- key: "close",
479
- label: "chartClosePrice"
480
- },
481
- {
482
- key: "volume",
483
- label: "chartVolume"
484
- }
485
- ], Te = [
486
- "bar",
487
- "line",
488
- "area",
489
- "lollipop",
490
- "pareto",
491
- "range-bar",
492
- "range-area",
493
- "dumbbell",
494
- "stream"
495
- ], Ee = [
496
- "range-bar",
497
- "range-area",
498
- "dumbbell"
499
- ], De = [
500
- {
501
- value: "",
502
- label: "chartBucketExact"
503
- },
504
- {
505
- value: "day",
506
- label: "chartBucketDay"
507
- },
508
- {
509
- value: "week",
510
- label: "chartBucketWeek"
511
- },
512
- {
513
- value: "month",
514
- label: "chartBucketMonth"
515
- },
516
- {
517
- value: "quarter",
518
- label: "chartBucketQuarter"
519
- },
520
- {
521
- value: "year",
522
- label: "chartBucketYear"
523
- }
524
- ], V = u("<option> </option>"), Oe = u("<optgroup></optgroup>"), H = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label>"), ke = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><!><!></select></label>"), Ae = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select></select></label> <!>", 1), U = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><!></select></label>"), je = 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>"), W = u("<label class=\"sv-grid-chart-ctl\"><span class=\"sv-grid-chart-ctl-lbl\"> </span> <select><option> </option><option> </option><option> </option></select></label>"), Me = u("<button type=\"button\"> </button>"), Ne = 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>"), Pe = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label> <label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>", 1), Fe = u("<label class=\"sv-grid-chart-toggle\"><input type=\"checkbox\"/> </label>"), G = u("<p class=\"sv-grid-chart-hint sv-grid-chart-pivot-hint\" role=\"note\"> </p>"), Ie = u("<p class=\"sv-grid-chart-hint\" role=\"note\"> </p>"), Le = 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
- function Re(e, n) {
526
- ee(n, !0);
527
- let i = re(n, "ctrl", 7), o = re(n, "scope", 3, "panel"), s = A(() => i().chartableColumns), u = A(() => i().pivotResult != null), d = A(() => xe(N(s), n.messages).filter((e) => !N(u) || t(e.value) === e.value)), f = A(() => [...new Set(N(d).map((e) => e.group))]), p = A(() => z(n.messages));
528
- function m(e) {
529
- let t = i().chartIndicators.includes(e), n = Ce.includes(e) ? i().chartIndicators.filter((e) => !Ce.includes(e)) : i().chartIndicators;
530
- i().chartIndicators = t ? n.filter((t) => t !== e) : [...n, e];
531
- }
532
- let g = A(() => B.find((e) => e.colors && i().chartPalette && e.colors.join() === i().chartPalette.join())?.key ?? "theme"), b = A(() => i().chartType === "bar"), T = A(() => i().chartType === "pie" || i().chartType === "sunburst"), ne = A(() => !N(u) && i().chartType !== "gauge" && i().chartType !== "histogram"), ie = A(() => !N(u) && N(s).dims.length > 1 && ![
533
- "pie",
534
- "gauge",
535
- "waterfall",
536
- "funnel",
537
- "calendar",
538
- "bullet",
539
- "pareto",
540
- "radial-bar"
541
- ].includes(i().chartType)), ae = A(() => [
542
- "bar",
543
- "line",
544
- "area",
545
- "radial-column"
546
- ].includes(i().chartType)), oe = A(() => Te.includes(i().chartType) || i().chartType === "scatter" || i().chartType === "boxplot" || i().chartType === "histogram"), se = A(() => ![
547
- "gauge",
548
- "sankey",
549
- "calendar",
550
- "treemap",
551
- "scatter",
552
- "boxplot",
553
- "chord",
554
- "sunburst",
555
- "stream"
556
- ].includes(i().chartType)), ce = A(() => !N(u) && (i().chartType === "scatter" || Ee.includes(i().chartType) || i().chartType === "bullet")), P = A(() => i().chartType === "scatter" ? n.messages.chartY : i().chartType === "bullet" ? n.messages.chartTarget : n.messages.chartHigh), le = A(() => i().chartType === "funnel"), ue = A(() => i().chartType === "candlestick"), de = A(() => !N(u) && i().chartIsOhlc), fe = A(() => !N(u) && i().chartType === "histogram"), pe = A(() => !N(u) && !i().chartIsOhlc), me = A(() => !N(u) && i().chartType !== "scatter" && i().chartType !== "boxplot" && i().chartType !== "histogram" && !i().chartIsOhlc), he = A(() => {
557
- let e = i().chartType, t = i().chartSpec?.categories.length ?? 0;
558
- if (e === "heatmap" && !i().chartSeriesId && N(s).dims.length > 1) return n.messages.chartIssueHeatmap;
559
- if (e === "sankey" && !i().chartSeriesId) return n.messages.chartIssueSankey;
560
- if (e === "radar" && t > 0 && t < 3) return n.messages.chartIssueRadar;
561
- if (e === "funnel" && t === 1) return n.messages.chartIssueFunnel;
562
- if (e === "chord" && !i().chartSeriesId) return n.messages.chartIssueChord;
563
- if (e === "stream" && !i().chartSeriesId) return n.messages.chartIssueStream;
564
- if (Ee.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
- if (!e.open || !e.high || !e.low || !e.close) return n.messages.chartIssueOhlcColumns;
569
- }
570
- return null;
571
- });
572
- var F = Le();
573
- let ge;
574
- var _e = O(F), ve = (e) => {
575
- var t = H(), a = O(t), o = v(a, !0), s = _(a, 2);
576
- j(s, 20, () => N(f), (e) => e, (e, t) => {
577
- var n = Oe();
578
- j(n, 21, () => N(d).filter((e) => e.group === t), (e) => e.value, (e, t) => {
579
- var n = V(), i = v(n, !0), a = {};
580
- h(() => {
581
- E(i, N(t).label), a !== (a = N(t).value) && (n.value = (n.__value = a) ?? "");
582
- }), r(e, n);
583
- }), k(n), h(() => S(n, "label", t)), r(e, n);
584
- }), k(s);
585
- var c;
586
- C(s), k(t), h(() => {
587
- E(o, n.messages.chartType), c !== (c = i().chartType) && (s.value = (s.__value = c) ?? "", y(s, c));
588
- }), l("change", s, (e) => i().chartType = e.currentTarget.value), r(e, t);
589
- };
590
- a(_e, (e) => {
591
- o() === "panel" && e(ve);
592
- });
593
- var I = _(_e, 2), ye = (e) => {
594
- var t = Ae(), o = c(t), u = O(o), d = v(u, !0), f = _(u, 2);
595
- j(f, 21, () => N(s).dates, (e) => e.id, (e, t) => {
596
- var n = V(), i = v(n, !0), a = {};
597
- h(() => {
598
- E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = a) ?? "");
599
- }), r(e, n);
600
- }), k(f);
601
- var p;
602
- C(f), k(o);
603
- var m = _(o, 2);
604
- j(m, 17, () => we, (e) => e.key, (e, t) => {
605
- var o = ke(), c = O(o), u = v(c, !0), d = _(c, 2), f = O(d), p = (e) => {
606
- var t = V(), i = v(t, !0);
607
- t.value = t.__value = "", h(() => E(i, n.messages.chartNone)), r(e, t);
608
- };
609
- a(f, (e) => {
610
- N(t).key === "volume" && e(p);
611
- });
612
- var m = _(f);
613
- j(m, 17, () => N(s).measures, (e) => e.id, (e, t) => {
614
- var n = V(), i = v(n, !0), a = {};
615
- h(() => {
616
- E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = a) ?? "");
617
- }), r(e, n);
618
- }), k(d);
619
- var g;
620
- C(d), k(o), h(() => {
621
- E(u, n.messages[N(t).label]), g !== (g = i().chartOhlc[N(t).key] ?? "") && (d.value = (d.__value = g) ?? "", y(d, g));
622
- }), l("change", d, (e) => i().chartOhlc = {
623
- ...i().chartOhlc,
624
- [N(t).key]: e.currentTarget.value || null
625
- }), r(e, o);
626
- }), h(() => {
627
- E(d, n.messages.chartDate), p !== (p = i().chartOhlcDateId ?? "") && (f.value = (f.__value = p) ?? "", y(f, p));
628
- }), l("change", f, (e) => i().chartDimensionId = e.currentTarget.value || null), r(e, t);
629
- }, L = (e) => {
630
- var t = H(), a = O(t), o = v(a, !0), c = _(a, 2);
631
- j(c, 21, () => N(s).dims, (e) => e.id, (e, t) => {
632
- var n = V(), i = v(n, !0), a = {};
633
- h(() => {
634
- E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = a) ?? "");
635
- }), r(e, n);
636
- }), k(c);
637
- var u;
638
- C(c), k(t), h(() => {
639
- E(o, i().chartType === "sankey" ? n.messages.chartFrom : i().chartType === "heatmap" ? n.messages.chartColumns : n.messages.chartGroupBy), u !== (u = i().chartDimensionId ?? "") && (c.value = (c.__value = u) ?? "", y(c, u));
640
- }), l("change", c, (e) => i().chartDimensionId = e.currentTarget.value || null), r(e, t);
641
- };
642
- a(I, (e) => {
643
- N(de) ? e(ye) : N(ne) && e(L, 1);
644
- });
645
- var be = _(I, 2), R = (e) => {
646
- var t = U(), a = O(t), o = v(a, !0), c = _(a, 2), u = O(c), d = v(u, !0);
647
- u.value = u.__value = "";
648
- var f = _(u);
649
- j(f, 17, () => N(s).dims, (e) => e.id, (e, t) => {
650
- var n = V(), i = v(n, !0), a = {};
651
- h(() => {
652
- E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = a) ?? "");
653
- }), r(e, n);
654
- }), k(c);
655
- var p;
656
- C(c), k(t), h(() => {
657
- E(o, i().chartType === "sankey" ? n.messages.chartTo : i().chartType === "heatmap" ? n.messages.chartRows : n.messages.chartSplitBy), E(d, n.messages.chartNone), p !== (p = i().chartSeriesId ?? "") && (c.value = (c.__value = p) ?? "", y(c, p));
658
- }), l("change", c, (e) => i().chartSeriesId = e.currentTarget.value || null), r(e, t);
659
- };
660
- a(be, (e) => {
661
- N(ie) && e(R);
662
- });
663
- var Re = _(be, 2), ze = (e) => {
664
- var t = H(), a = O(t), o = v(a, !0), c = _(a, 2);
665
- j(c, 21, () => N(s).measures, (e) => e.id, (e, t) => {
666
- var n = V(), i = v(n, !0), a = {};
667
- h(() => {
668
- E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = a) ?? "");
669
- }), r(e, n);
670
- }), k(c);
671
- var u;
672
- C(c), k(t), h((e) => {
673
- E(o, e), u !== (u = i().chartMeasureId ?? "") && (c.value = (c.__value = u) ?? "", y(c, u));
674
- }, [() => i().chartType === "scatter" ? n.messages.chartX : Ee.includes(i().chartType) ? n.messages.chartLow : i().chartType === "gauge" ? n.messages.chartMetric : n.messages.chartValue]), l("change", c, (e) => i().chartMeasureId = e.currentTarget.value || null), r(e, t);
675
- };
676
- a(Re, (e) => {
677
- N(pe) && e(ze);
678
- });
679
- var Be = _(Re, 2), Ve = (e) => {
680
- var t = H(), n = O(t), a = v(n, !0), o = _(n, 2);
681
- j(o, 21, () => N(s).measures, (e) => e.id, (e, t) => {
682
- var n = V(), i = v(n, !0), a = {};
683
- h(() => {
684
- E(i, N(t).label), a !== (a = N(t).id) && (n.value = (n.__value = a) ?? "");
685
- }), r(e, n);
686
- }), k(o);
687
- var c;
688
- C(o), k(t), h(() => {
689
- E(a, N(P)), c !== (c = i().effectiveChartMeasure2Id ?? "") && (o.value = (o.__value = c) ?? "", y(o, c));
690
- }), l("change", o, (e) => i().chartMeasure2Id = e.currentTarget.value || null), r(e, t);
691
- };
692
- a(Be, (e) => {
693
- N(ce) && e(Ve);
694
- });
695
- var He = _(Be, 2), Ue = (e) => {
696
- var t = H(), a = O(t), o = v(a, !0), s = _(a, 2);
697
- j(s, 21, () => N(p), (e) => e.value, (e, t) => {
698
- var n = V(), i = v(n, !0), a = {};
699
- h(() => {
700
- E(i, N(t).label), a !== (a = N(t).value) && (n.value = (n.__value = a) ?? "");
701
- }), r(e, n);
702
- }), k(s);
703
- var c;
704
- C(s), k(t), h(() => {
705
- E(o, n.messages.chartAggregate), c !== (c = i().chartReduce) && (s.value = (s.__value = c) ?? "", y(s, c));
706
- }), l("change", s, (e) => i().chartReduce = e.currentTarget.value), r(e, t);
707
- };
708
- a(He, (e) => {
709
- N(me) && e(Ue);
710
- });
711
- var We = _(He, 2), Ge = (e) => {
712
- var t = je(), a = O(t), o = v(a, !0), s = _(a, 2);
713
- x(s), k(t), h(() => {
714
- S(t, "title", n.messages.chartBinsTitle), E(o, n.messages.chartBins), w(s, i().chartBins ?? ""), S(s, "placeholder", n.messages.chartBuilderAuto);
715
- }), l("change", s, (e) => i().chartBins = e.currentTarget.value ? Number(e.currentTarget.value) : null), r(e, t);
716
- };
717
- a(We, (e) => {
718
- N(fe) && e(Ge);
719
- });
720
- var Ke = _(We, 2), qe = (e) => {
721
- var t = W(), a = O(t), o = v(a, !0), s = _(a, 2), c = O(s), u = v(c, !0);
722
- c.value = c.__value = "trapezoid";
723
- var d = _(c), f = v(d, !0);
724
- d.value = d.__value = "pyramid";
725
- var p = _(d), m = v(p, !0);
726
- p.value = p.__value = "cone", k(s);
727
- var g;
728
- C(s), k(t), h(() => {
729
- E(o, n.messages.chartShape), E(u, n.messages.chartShapeFunnel), E(f, n.messages.chartShapePyramid), E(m, n.messages.chartShapeCone), g !== (g = i().chartFunnelShape ?? "trapezoid") && (s.value = (s.__value = g) ?? "", y(s, g));
730
- }), l("change", s, (e) => i().chartFunnelShape = e.currentTarget.value), r(e, t);
731
- };
732
- a(Ke, (e) => {
733
- N(le) && e(qe);
734
- });
735
- var Je = _(Ke, 2), Ye = (e) => {
736
- var t = W(), a = O(t), o = v(a, !0), s = _(a, 2), c = O(s), u = v(c, !0);
737
- c.value = c.__value = "classic";
738
- var d = _(c), f = v(d, !0);
739
- d.value = d.__value = "hollow";
740
- var p = _(d), m = v(p, !0);
741
- p.value = p.__value = "heikin-ashi", k(s);
742
- var g;
743
- C(s), k(t), h(() => {
744
- E(o, n.messages.chartCandles), E(u, n.messages.chartCandlesClassic), E(f, n.messages.chartCandlesHollow), E(m, n.messages.chartCandlesHeikinAshi), g !== (g = i().chartCandleStyle ?? "classic") && (s.value = (s.__value = g) ?? "", y(s, g));
745
- }), l("change", s, (e) => i().chartCandleStyle = e.currentTarget.value), r(e, t);
746
- };
747
- a(Je, (e) => {
748
- N(ue) && e(Ye);
749
- });
750
- var Xe = _(Je, 2), Ze = (e) => {
751
- var t = Ne(), a = O(t), o = v(a, !0), s = _(a, 2);
752
- j(s, 21, () => Se, (e) => e.value, (e, t) => {
753
- var a = Me();
754
- let o;
755
- var s = v(a, !0);
756
- h((e, r) => {
757
- o = M(a, 1, "sv-grid-chart-chip", null, o, { "is-on": e }), S(a, "aria-pressed", r), S(a, "title", n.messages[N(t).title]), E(s, n.messages[N(t).label]);
758
- }, [() => i().chartIndicators.includes(N(t).value), () => i().chartIndicators.includes(N(t).value)]), l("click", a, () => m(N(t).value)), r(e, a);
759
- }), k(s), k(t), h(() => {
760
- S(t, "aria-label", n.messages.chartIndicators), E(o, n.messages.chartIndicators);
761
- }), r(e, t);
762
- };
763
- a(Xe, (e) => {
764
- N(de) && e(Ze);
765
- });
766
- var Qe = _(Xe, 2), $e = O(Qe), et = v($e, !0), K = _($e, 2), tt = O(K), nt = v(tt, !0);
767
- tt.value = tt.__value = "number";
768
- var rt = _(tt), it = v(rt, !0);
769
- rt.value = rt.__value = "currency";
770
- var at = _(rt), ot = v(at, !0);
771
- at.value = at.__value = "percent", k(K);
772
- var st;
773
- C(K), k(Qe);
774
- var ct = _(Qe, 2), lt = (e) => {
775
- var t = Pe(), a = c(t), o = O(a);
776
- x(o);
777
- var s = _(o);
778
- k(a);
779
- var u = _(a, 2), d = O(u);
780
- x(d);
781
- var f = _(d);
782
- k(u), h(() => {
783
- D(o, i().chartStacked), E(s, ` ${n.messages.chartStacked ?? ""}`), S(u, "title", n.messages.chartStacked100Title), D(d, i().chartStacked100), E(f, ` ${n.messages.chartStacked100 ?? ""}`);
784
- }), l("change", o, (e) => i().chartStacked = e.currentTarget.checked), l("change", d, (e) => i().chartStacked100 = e.currentTarget.checked), r(e, t);
785
- };
786
- a(ct, (e) => {
787
- N(ae) && e(lt);
788
- });
789
- var ut = _(ct, 2), dt = (e) => {
790
- var t = Fe(), a = O(t);
791
- x(a);
792
- var o = _(a);
793
- k(t), h(() => {
794
- S(t, "title", n.messages.chartHorizontalTitle), D(a, i().chartOrientation === "horizontal"), E(o, ` ${n.messages.chartHorizontal ?? ""}`);
795
- }), l("change", a, (e) => i().chartOrientation = e.currentTarget.checked ? "horizontal" : "vertical"), r(e, t);
796
- };
797
- a(ut, (e) => {
798
- N(b) && e(dt);
799
- });
800
- var ft = _(ut, 2), pt = (e) => {
801
- var t = Fe(), a = O(t);
802
- x(a);
803
- var o = _(a);
804
- k(t), h(() => {
805
- D(a, i().chartDonut), E(o, ` ${n.messages.chartDonut ?? ""}`);
806
- }), l("change", a, (e) => i().chartDonut = e.currentTarget.checked), r(e, t);
807
- };
808
- a(ft, (e) => {
809
- N(T) && e(pt);
810
- });
811
- var mt = _(ft, 2), ht = O(mt), gt = v(ht, !0), q = _(ht, 2);
812
- j(q, 21, () => B, (e) => e.key, (e, t) => {
813
- var i = V(), a = v(i, !0), o = {};
814
- h(() => {
815
- E(a, n.messages[N(t).label]), o !== (o = N(t).key) && (i.value = (i.__value = o) ?? "");
816
- }), r(e, i);
817
- }), k(q);
818
- var _t;
819
- C(q), k(mt);
820
- var J = _(mt, 2), vt = (e) => {
821
- var t = Fe(), a = O(t);
822
- x(a);
823
- var o = _(a);
824
- k(t), h(() => {
825
- D(a, i().chartDataLabels), E(o, ` ${n.messages.chartLabels ?? ""}`);
826
- }), l("change", a, (e) => i().chartDataLabels = e.currentTarget.checked), r(e, t);
827
- };
828
- a(J, (e) => {
829
- N(se) && e(vt);
830
- });
831
- var yt = _(J, 2), bt = (e) => {
832
- var t = Fe(), a = O(t);
833
- x(a);
834
- var o = _(a);
835
- k(t), h(() => {
836
- S(t, "title", n.messages.chartLogScaleTitle), D(a, i().chartLogScale), E(o, ` ${n.messages.chartLogScale ?? ""}`);
837
- }), l("change", a, (e) => i().chartLogScale = e.currentTarget.checked), r(e, t);
838
- };
839
- a(yt, (e) => {
840
- N(oe) && e(bt);
841
- });
842
- var xt = _(yt, 2), St = (e) => {
843
- var t = H(), a = O(t), o = v(a, !0), s = _(a, 2);
844
- j(s, 21, () => De, (e) => e.value, (e, t) => {
845
- var i = V(), a = v(i, !0), o = {};
846
- h(() => {
847
- E(a, n.messages[N(t).label]), o !== (o = N(t).value) && (i.value = (i.__value = o) ?? "");
848
- }), r(e, i);
849
- }), k(s);
850
- var c;
851
- C(s), k(t), h(() => {
852
- S(t, "title", n.messages.chartBucketTitle), E(o, n.messages.chartBucket), c !== (c = i().chartBucket ?? "") && (s.value = (s.__value = c) ?? "", y(s, c));
853
- }), l("change", s, (e) => i().chartBucket = e.currentTarget.value || null), r(e, t);
854
- };
855
- a(xt, (e) => {
856
- i().chartDimensionIsDate && N(ne) && e(St);
857
- });
858
- var Ct = _(xt, 2), wt = (e) => {
859
- var t = Fe(), a = O(t);
860
- x(a);
861
- var o = _(a);
862
- k(t), h(() => {
863
- S(t, "title", n.messages.chartDateAxisTitle), D(a, i().chartTimeAxis), E(o, ` ${n.messages.chartDateAxis ?? ""}`);
864
- }), l("change", a, (e) => i().chartTimeAxis = e.currentTarget.checked), r(e, t);
865
- }, Tt = A(() => i().chartDimensionIsDate && Te.includes(i().chartType));
866
- a(Ct, (e) => {
867
- N(Tt) && e(wt);
868
- });
869
- var Y = _(Ct, 2), X = (e) => {
870
- var t = G(), i = v(t, !0);
871
- h(() => E(i, n.messages.chartPivotHint)), r(e, t);
872
- }, Z = (e) => {
873
- var t = Ie(), n = v(t, !0);
874
- h(() => E(n, N(he))), r(e, t);
875
- };
876
- a(Y, (e) => {
877
- N(u) ? e(X) : N(he) && e(Z, 1);
878
- }), k(F), h(() => {
879
- ge = M(F, 1, "sv-grid-chart-controls", null, ge, { "is-form": o() === "builder" }), S(F, "data-scope", o()), E(et, n.messages.chartFormat), E(nt, n.messages.chartFormatNumber), E(it, n.messages.chartFormatCurrency), E(ot, n.messages.chartFormatPercent), st !== (st = i().chartValueFormat) && (K.value = (K.__value = st) ?? "", y(K, st)), E(gt, n.messages.chartColours), _t !== (_t = N(g)) && (q.value = (q.__value = _t) ?? "", y(q, _t));
880
- }), l("change", K, (e) => i().chartValueFormat = e.currentTarget.value), l("change", q, (e) => i().chartPalette = B.find((t) => t.key === e.currentTarget.value)?.colors ?? null), r(e, F), te();
881
- }
882
- s(["change", "click"]);
883
- //#endregion
884
- //#region ../grid/dist/chart-panel-messages.js
885
- var ze = {
886
- chartPanelTitle: "Chart",
887
- chartClearFilter: "Clear filter",
888
- chartExport: "Export",
889
- chartExportLabel: "Export chart",
890
- chartExportPng: "PNG image",
891
- chartExportSvg: "SVG vector",
892
- chartExportPdf: "PDF document",
893
- chartExportPdfCannotDraw: "No PDF: its font cannot draw \"{text}\". Download PNG or SVG.",
894
- chartExportCsv: "CSV data",
895
- chartExportCsvNone: "This chart has no table of values to save as CSV.",
896
- chartExportCopy: "Copy to clipboard",
897
- chartExportPrint: "Print",
898
- chartExportDescribe: "Describe chart",
899
- chartAi: "AI",
900
- chartAiLabel: "Chart with AI",
901
- chartAiPlaceholder: "Describe a chart, e.g. revenue by region stacked by product",
902
- chartAiRun: "Chart it",
903
- chartAiThinking: "Thinking...",
904
- chartAiExplain: "Explain",
905
- chartAiExplainTitle: "Explain this chart in plain words",
906
- chartAiNoChart: "Couldn't build a chart from that request.",
907
- chartAiNoExplanation: "Couldn't explain this chart.",
908
- chartAiFailed: "Something went wrong.",
909
- chartBuild: "Build",
910
- chartBuildLabel: "Open the chart builder",
911
- chartBuildTitle: "Chart builder: type gallery, data and format",
912
- chartLinkBack: "Link the chart back to the grid",
913
- chartUnlink: "Unlink the chart from the grid",
914
- chartLinkedTitle: "Linked: the chart follows the grid's rows. Click to freeze it.",
915
- chartUnlinkedTitle: "Unlinked: the chart keeps the data it has. Click to follow the grid again.",
916
- chartAdd: "Add chart",
917
- chartSave: "Save",
918
- chartSaveLabel: "Saved charts",
919
- chartSavedTitle: "Saved charts",
920
- chartSaveName: "Save this chart as",
921
- chartSaveNamePlaceholder: "Name",
922
- chartSaveApply: "Apply",
923
- chartPivotHint: "Charting the pivot: its row groups are the categories and its column groups the series.",
924
- chartSaveRemove: "Remove",
925
- chartSavedEmpty: "No saved charts yet.",
926
- chartMaximize: "Maximize",
927
- chartRestore: "Restore",
928
- chartDock: "Dock",
929
- chartDockLabel: "Dock chart",
930
- chartPopOut: "Pop out",
931
- chartPopOutLabel: "Pop out chart",
932
- chartClose: "Close chart",
933
- chartResize: "Resize chart panel",
934
- chartResizeWindow: "Resize chart window",
935
- chartTabs: "Charts",
936
- chartRemoveTab: "Remove {title}",
937
- chartRemove: "Remove",
938
- chartEmptyColumns: "Charting needs at least one text column (to group by) and one numeric column (to measure).",
939
- chartEmptyData: "No data to chart.",
940
- chartType: "Type",
941
- chartDate: "Date",
942
- chartGroupBy: "Group by",
943
- chartFrom: "From",
944
- chartColumns: "Columns",
945
- chartSplitBy: "Split by",
946
- chartTo: "To",
947
- chartRows: "Rows",
948
- chartNone: "(none)",
949
- chartValue: "Value",
950
- chartX: "X",
951
- chartY: "Y",
952
- chartLow: "Low",
953
- chartHigh: "High",
954
- chartOpen: "Open",
955
- chartClosePrice: "Close",
956
- chartVolume: "Volume",
957
- chartMetric: "Metric",
958
- chartTarget: "Target",
959
- chartAggregate: "Aggregate",
960
- chartReduceSum: "Sum",
961
- chartReduceAvg: "Average",
962
- chartReduceCount: "Count",
963
- chartReduceMin: "Min",
964
- chartReduceMax: "Max",
965
- chartReduceMedian: "Median",
966
- chartReduceP90: "90th percentile",
967
- chartReduceFirst: "First",
968
- chartReduceLast: "Last",
969
- chartReduceCountDistinct: "Distinct count",
970
- chartBins: "Bins",
971
- chartBinsTitle: "How many bins the sample is split into",
972
- chartShape: "Shape",
973
- chartShapeFunnel: "Funnel",
974
- chartShapePyramid: "Pyramid",
975
- chartShapeCone: "Cone",
976
- chartCandles: "Candles",
977
- chartCandlesClassic: "Classic",
978
- chartCandlesHollow: "Hollow",
979
- chartCandlesHeikinAshi: "Heikin-Ashi",
980
- chartIndicators: "Indicators",
981
- chartIndVolume: "Volume",
982
- chartIndVolumeTitle: "Volume bars under the price",
983
- chartIndRsi: "RSI",
984
- chartIndRsiTitle: "Relative strength index, 14 bars",
985
- chartIndMacd: "MACD",
986
- chartIndMacdTitle: "MACD 12 / 26 / 9",
987
- chartIndStochastic: "Stoch",
988
- chartIndStochasticTitle: "Stochastic oscillator 14 / 3",
989
- chartIndAtr: "ATR",
990
- chartIndAtrTitle: "Average true range, 14 bars",
991
- chartIndObv: "OBV",
992
- chartIndObvTitle: "On-balance volume",
993
- chartIndSma: "SMA 20",
994
- chartIndSmaTitle: "20-bar simple moving average on the price",
995
- chartIndEma: "EMA 20",
996
- chartIndEmaTitle: "20-bar exponential moving average on the price",
997
- chartIndBb: "Bollinger",
998
- chartIndBbTitle: "Bollinger bands 20 / 2 on the price",
999
- chartIndVwap: "VWAP",
1000
- chartIndVwapTitle: "Volume-weighted average price on the price",
1001
- chartFormat: "Format",
1002
- chartFormatNumber: "Number",
1003
- chartFormatCurrency: "Currency",
1004
- chartFormatPercent: "Percent",
1005
- chartStacked: "Stacked",
1006
- chartStacked100: "100%",
1007
- chartStacked100Title: "Normalise each category to 100 percent",
1008
- chartHorizontal: "Horizontal",
1009
- chartHorizontalTitle: "Bars grow rightwards - suits long category labels",
1010
- chartDonut: "Donut",
1011
- chartColours: "Colours",
1012
- chartPaletteTheme: "Theme",
1013
- chartPaletteOcean: "Ocean",
1014
- chartPaletteSunset: "Sunset",
1015
- chartPaletteForest: "Forest",
1016
- chartPaletteSlate: "Slate",
1017
- chartLabels: "Labels",
1018
- chartLogScale: "Log scale",
1019
- chartLogScaleTitle: "Logarithmic value axis - flattens wide-range data",
1020
- chartBucket: "Bucket",
1021
- chartBucketTitle: "Group the dates by calendar unit: one bar per month instead of one per day",
1022
- chartBucketExact: "Exact",
1023
- chartBucketDay: "Day",
1024
- chartBucketWeek: "Week",
1025
- chartBucketMonth: "Month",
1026
- chartBucketQuarter: "Quarter",
1027
- chartBucketYear: "Year",
1028
- chartDateAxis: "Date axis",
1029
- chartDateAxisTitle: "Space points by actual date - real time ticks and proportional gaps",
1030
- chartGroupCompare: "Compare",
1031
- chartGroupPartOfWhole: "Part of a whole",
1032
- chartGroupFlow: "Flow",
1033
- chartGroupDistribution: "Distribution",
1034
- chartGroupSingleValue: "Single value",
1035
- chartGroupOverTime: "Over time",
1036
- chartTypeBar: "Bar",
1037
- chartTypeLine: "Line",
1038
- chartTypeArea: "Area",
1039
- chartTypeLollipop: "Lollipop",
1040
- chartTypePareto: "Pareto",
1041
- chartTypeRangeBar: "Range bar",
1042
- chartTypeRangeArea: "Range area",
1043
- chartTypeDumbbell: "Dumbbell",
1044
- chartTypeRadialColumn: "Radial column",
1045
- chartTypeRadialBar: "Radial bar",
1046
- chartTypeNightingale: "Nightingale",
1047
- chartTypePie: "Pie",
1048
- chartTypeTreemap: "Tree map",
1049
- chartTypeSunburst: "Sunburst",
1050
- chartTypeFunnel: "Funnel",
1051
- chartTypeWaterfall: "Waterfall",
1052
- chartTypeSankey: "Sankey",
1053
- chartTypeChord: "Chord",
1054
- chartTypeRadar: "Radar",
1055
- chartTypeHeatmap: "Heat map",
1056
- chartTypeScatter: "Scatter",
1057
- chartTypeBoxplot: "Box plot",
1058
- chartTypeHistogram: "Histogram",
1059
- chartTypeGauge: "Gauge",
1060
- chartTypeBullet: "Bullet",
1061
- chartTypeCalendar: "Calendar",
1062
- chartTypeStream: "Stream",
1063
- chartTypeCandlestick: "Candlestick",
1064
- chartTypeOhlc: "OHLC bars",
1065
- chartIssueHeatmap: "Heat map needs a Split by column for its rows.",
1066
- chartIssueSankey: "Sankey needs a Split by column: Group by is the source, Split by the target.",
1067
- chartIssueRadar: "Radar needs at least 3 groups.",
1068
- chartIssueFunnel: "Funnel needs at least 2 stages.",
1069
- chartIssueChord: "Chord needs a Split by column: Group by and Split by are the two ends of each flow.",
1070
- chartIssueStream: "Stream needs a Split by column: each split becomes a layer.",
1071
- chartIssueSecondMeasure: "Pick a second measure for the high end of the range.",
1072
- chartIssueOhlcDate: "Candlesticks need a date column.",
1073
- chartIssueOhlcColumns: "Pick the Open, High, Low and Close columns.",
1074
- chartBuilderTitle: "Chart builder",
1075
- chartBuilderTabType: "Type",
1076
- chartBuilderTabData: "Data",
1077
- chartBuilderTabFormat: "Format",
1078
- chartBuilderLinked: "Linked to the grid",
1079
- chartBuilderFrozenAt: "Frozen at {time}; edits, filters and new rows no longer change it.",
1080
- chartBuilderFollows: "The chart follows the grid's rows, filters and edits.",
1081
- chartBuilderTitleField: "Title",
1082
- chartBuilderSubtitle: "Subtitle",
1083
- chartBuilderCaption: "Caption",
1084
- chartBuilderLegend: "Legend",
1085
- chartLegendBottom: "Bottom",
1086
- chartLegendTop: "Top",
1087
- chartLegendLeft: "Left",
1088
- chartLegendRight: "Right",
1089
- chartLegendHidden: "Hidden",
1090
- chartBuilderDataLabels: "Data labels",
1091
- chartBuilderPanelSetting: "Panel setting",
1092
- chartLabelsTop: "Top",
1093
- chartLabelsOutside: "Outside",
1094
- chartLabelsInside: "Inside",
1095
- chartLabelsCenter: "Center",
1096
- chartLabelsHidden: "Hidden",
1097
- chartBuilderSeriesLabels: "Series labels",
1098
- chartBuilderCrosshairLabels: "Crosshair labels",
1099
- chartBuilderCompactBelow: "Compact under",
1100
- chartBuilderCompactBelowTitle: "Below this width in px the chart drops its series and data labels, turns the category labels vertical and hides the legend",
1101
- chartBuilderValueAxis: "Value axis",
1102
- chartBuilderRightAxis: "Right axis",
1103
- chartBuilderCategoryAxis: "Category axis",
1104
- chartBuilderMin: "Min",
1105
- chartBuilderMax: "Max",
1106
- chartBuilderAuto: "auto",
1107
- chartBuilderOff: "off",
1108
- chartBuilderGridLines: "Grid lines",
1109
- chartBuilderAxisLabels: "Labels",
1110
- chartBuilderLabelsAuto: "Auto",
1111
- chartBuilderLabelsHorizontal: "Horizontal",
1112
- chartBuilderLabelsTilted: "Tilted",
1113
- chartBuilderLabelsVertical: "Vertical",
1114
- chartBuilderSeries: "Series",
1115
- chartBuilderColor: "Color",
1116
- chartBuilderSeriesType: "Type",
1117
- chartBuilderAxis: "Axis",
1118
- chartBuilderMarker: "Marker",
1119
- chartBuilderWidth: "Width",
1120
- chartBuilderStack: "Stack",
1121
- chartBuilderStackPlaceholder: "own",
1122
- chartBuilderSeriesColorLabel: "{series} colour",
1123
- chartBuilderSeriesTypeLabel: "{series} type",
1124
- chartBuilderSeriesAxisLabel: "{series} axis",
1125
- chartBuilderSeriesMarkerLabel: "{series} marker",
1126
- chartBuilderSeriesWidthLabel: "{series} line width",
1127
- chartBuilderSeriesStackLabel: "{series} stack group",
1128
- chartBuilderChartType: "Chart",
1129
- chartBuilderBar: "Bar",
1130
- chartBuilderLine: "Line",
1131
- chartBuilderArea: "Area",
1132
- chartBuilderLeft: "Left",
1133
- chartBuilderRight: "Right",
1134
- chartBuilderStyle: "Style",
1135
- chartBuilderFontSize: "Font size",
1136
- chartBuilderFontFamily: "Font",
1137
- chartBuilderBackground: "Background",
1138
- chartBuilderTextColor: "Text",
1139
- chartBuilderResetFormat: "Reset format"
1140
- };
1141
- function Be(e) {
1142
- return P(ze, e);
1143
- }
1144
- function Ve(e, t) {
1145
- return e.replace(/\{(\w+)\}/g, (e, n) => n in t ? String(t[n]) : `{${n}}`);
1146
- }
1147
- //#endregion
1148
- //#region ../grid/dist/SvGridChartPanel.svelte
1149
- var He = u("<div role=\"separator\"></div>"), Ue = u("<button type=\"button\" class=\"sv-grid-chart-btn\"> </button>"), We = 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>"), Ge = 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>"), Ke = u("<div class=\"sv-grid-chart-export-menu\" role=\"menu\" tabindex=\"-1\"><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>"), qe = 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>"), Je = 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\">&times;</button></li>"), Ye = u("<ul class=\"sv-grid-chart-saved-list\"></ul>"), Xe = u("<p class=\"sv-grid-chart-saved-empty\"> </p>"), Ze = 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>"), Qe = 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>"), $e = 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>"), et = 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), K = 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>"), tt = 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>"), nt = 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), rt = 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>"), it = u("<div><button type=\"button\" class=\"sv-grid-chart-tab-label\" role=\"tab\"> </button> <button type=\"button\" class=\"sv-grid-chart-tab-x\">&times;</button></div>"), at = u("<div class=\"sv-grid-chart-tabs\" role=\"tablist\"></div>"), ot = u("<button type=\"button\" class=\"sv-grid-chart-btn sv-grid-chart-explain-btn\"> </button>"), st = u("<p class=\"sv-grid-chart-ai-msg is-error\"> </p>"), ct = u("<p class=\"sv-grid-chart-ai-msg\"> </p>"), lt = 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>"), ut = u("<div class=\"sv-grid-chart-panes-host\"><!></div>"), dt = u("<p class=\"sv-grid-chart-empty\"><!></p>"), ft = u("<div class=\"sv-grid-chart-float-resizer\" role=\"separator\"></div>"), pt = 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\">&times;</button></div></div> <!> <!> <!></header> <div class=\"sv-grid-chart-panel-body\"><!></div> <!> <!></section>");
1150
- function mt(e, t) {
1151
- ee(t, !0);
1152
- let s = n(null), u = n(!1);
1153
- function d() {
1154
- if (N(s)) {
1155
- f(u, !0);
1156
- return;
1157
- }
1158
- import("./SvGridChartBuilder-BY64S-Zw.js").then((e) => {
1159
- f(s, e.default, !0), f(u, !0);
1160
- });
1161
- }
1162
- let y = re(t, "ctrl", 7), C = A(() => Be(y().localizationText)), w = A(() => y().chartingConfig), T = A(() => y().chartCfg), ie = A(() => y().chartFormat?.legend === void 0 || y().chartFormat.legend), D = A(() => y().chartFormat?.dataLabels === void 0 ? y().chartDataLabels : y().chartFormat.dataLabels !== null && { placement: y().chartFormat.dataLabels }), ae = A(() => y().chartFormat?.crosshairLabels !== !1), P = A(() => y().chartIsCustom), F = A(() => N(w)?.position ?? "bottom"), ge = A(() => N(w)?.crossFilter !== !1), I = A(() => y().chartSpec), ye = A(() => y().chartableColumns), L = A(() => y().chartSize ?? (N(F) === "right" ? N(w)?.width ?? 340 : N(w)?.height ?? 260)), R = A(() => y().chartFloating), z = A(() => y().chartMaximized), B = A(() => y().chartFloatRect), Se = n(null);
1163
- function Ce() {
1164
- let e = N(Se)?.offsetParent;
1165
- return {
1166
- w: e?.clientWidth ?? 800,
1167
- h: e?.clientHeight ?? 520
1168
- };
1169
- }
1170
- function we() {
1171
- if (!y().chartFloatRect) {
1172
- let { w: e, h: t } = Ce(), n = Math.min(600, Math.max(360, e - 80)), r = Math.min(430, Math.max(260, t - 90));
1173
- y().chartFloatRect = {
1174
- x: Math.round((e - n) / 2),
1175
- y: Math.round((t - r) / 2),
1176
- w: n,
1177
- h: r
1178
- };
1179
- }
1180
- y().chartFloating = !0;
1181
- }
1182
- function Te() {
1183
- y().chartFloating = !1, y().chartMaximized = !1;
1184
- }
1185
- let Ee = () => y().chartMaximized = !y().chartMaximized;
1186
- function De(e) {
1187
- if (!N(R) || N(z) || e.target?.closest("button")) return;
1188
- let t = y().chartFloatRect;
1189
- if (!t) return;
1190
- e.preventDefault();
1191
- let n = e.clientX, r = e.clientY, { w: i, h: a } = Ce(), o = (e) => {
1192
- 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));
1193
- y().chartFloatRect = {
1194
- x: o,
1195
- y: s,
1196
- w: t.w,
1197
- h: t.h
1198
- };
1199
- }, s = () => {
1200
- window.removeEventListener("pointermove", o), window.removeEventListener("pointerup", s);
1201
- };
1202
- window.addEventListener("pointermove", o), window.addEventListener("pointerup", s);
1203
- }
1204
- function V(e) {
1205
- let t = y().chartFloatRect;
1206
- if (!t) return;
1207
- e.preventDefault(), e.stopPropagation();
1208
- let n = e.clientX, r = e.clientY;
1209
- e.target.setPointerCapture?.(e.pointerId);
1210
- let i = (e) => {
1211
- y().chartFloatRect = {
1212
- x: t.x,
1213
- y: t.y,
1214
- w: Math.max(300, t.w + e.clientX - n),
1215
- h: Math.max(220, t.h + e.clientY - r)
1216
- };
1217
- }, a = () => {
1218
- window.removeEventListener("pointermove", i), window.removeEventListener("pointerup", a);
1219
- };
1220
- window.addEventListener("pointermove", i), window.addEventListener("pointerup", a);
1221
- }
1222
- let Oe = A(() => N(R) ? N(z) ? "left:12px; top:12px; right:12px; bottom:12px; width:auto; height:auto;" : N(B) ? `left:${N(B).x}px; top:${N(B).y}px; width:${N(B).w}px; height:${N(B).h}px;` : "" : N(F) === "right" ? `width:${N(L)}px` : `height:${N(L)}px`), H = A(() => xe(N(ye), N(C)));
1223
- function ke(e) {
1224
- N(ge) && e.category != null && y().applyChartCrossFilter(String(e.category));
1225
- }
1226
- let Ae = n(null), U = n(!1), je = n(!1), W = () => N(Ae)?.querySelector("svg") ?? null, Me = A(() => !!N(I) && de(N(I)));
1227
- function Ne() {
1228
- let e = W();
1229
- e && fe(e, "chart.png"), f(U, !1);
1230
- }
1231
- function Pe() {
1232
- let e = W();
1233
- e && me(e, "chart.svg"), f(U, !1);
1234
- }
1235
- function Fe() {
1236
- N(I) && ue(N(I), "chart.csv"), f(U, !1);
1237
- }
1238
- let G = n(null), Ie = () => N(I)?.title ?? y().charts[y().activeChartIndex]?.title, Le = A(() => {
1239
- let e = N(G)?.pdfUndrawable(Ie());
1240
- return e ? Ve(N(C).chartExportPdfCannotDraw, { text: e }) : "";
1241
- });
1242
- g(() => {
1243
- N(U) && !N(G) && import("./chart-export-pdf-D9OfzqwS.js").then((e) => f(G, e, !0));
1244
- });
1245
- async function ze() {
1246
- let e = W(), t = f(G, N(G) ?? await import("./chart-export-pdf-D9OfzqwS.js"), !0);
1247
- N(Le) || !e || (f(U, !1), await t.downloadChartPdf(e, "chart.pdf", { title: Ie() }));
1248
- }
1249
- async function mt() {
1250
- let e = W();
1251
- f(U, !1), e && f(G, N(G) ?? await import("./chart-export-pdf-D9OfzqwS.js"), !0).printChart(e, { title: Ie() });
1252
- }
1253
- async function ht() {
1254
- let e = W();
1255
- if (f(U, !1), !(!e || typeof ClipboardItem > "u" || !navigator.clipboard?.write)) try {
1256
- let t = await pe(e);
1257
- await navigator.clipboard.write([new ClipboardItem({ "image/png": t })]), f(je, !0), setTimeout(() => f(je, !1), 1400);
1258
- } catch {}
1259
- }
1260
- let gt = n(null), q = n(null);
1261
- function _t(e, t, n) {
1262
- let r = (n) => {
1263
- n.target?.closest(e) || t();
1264
- }, i = (e) => {
1265
- e.key === "Escape" && (e.stopPropagation(), t(), n()?.focus());
1266
- };
1267
- return window.addEventListener("pointerdown", r), window.addEventListener("keydown", i, !0), () => {
1268
- window.removeEventListener("pointerdown", r), window.removeEventListener("keydown", i, !0);
1269
- };
1270
- }
1271
- g(() => {
1272
- if (N(U)) return _t(".sv-grid-chart-export", () => f(U, !1), () => N(gt));
1273
- });
1274
- let J = n(!1), vt = n("");
1275
- function yt() {
1276
- let e = N(vt).trim();
1277
- e && (y().saveChart(e), f(vt, ""));
1278
- }
1279
- g(() => {
1280
- if (N(J)) return _t(".sv-grid-chart-saved", () => f(J, !1), () => N(q));
1281
- });
1282
- async function bt() {
1283
- if (f(U, !1), !N(I)) return;
1284
- let { chartSummary: e } = await import("./chart-summary-B52586F9.js"), t = e(N(I));
1285
- try {
1286
- await navigator.clipboard?.writeText(t);
1287
- } catch {}
1288
- f(Z, t, !0);
1289
- }
1290
- let xt = A(() => !!y().chartAiHandler), St = A(() => !!y().chartExplainHandler);
1291
- async function Ct() {
1292
- let e = y().chartExplainHandler;
1293
- if (!(!e || N(Y))) {
1294
- f(Y, !0), f(X, ""), f(Z, "");
1295
- try {
1296
- let t = await e();
1297
- f(Z, t ? [t.summary, ...t.insights].filter(Boolean).join(" ") : "", !0), t || f(X, N(C).chartAiNoExplanation, !0);
1298
- } catch (e) {
1299
- f(X, e instanceof Error ? e.message : N(C).chartAiFailed, !0);
1300
- } finally {
1301
- f(Y, !1);
1302
- }
1303
- }
1304
- }
1305
- let wt = n(!1), Tt = n(""), Y = n(!1), X = n(""), Z = n("");
1306
- async function Et() {
1307
- let e = y().chartAiHandler, t = N(Tt).trim();
1308
- if (!(!e || !t || N(Y))) {
1309
- f(Y, !0), f(X, ""), f(Z, "");
1310
- try {
1311
- let n = await e(t);
1312
- n ? (y().applyChartConfig(n), f(Z, typeof n.rationale == "string" ? n.rationale : "", !0)) : f(X, N(C).chartAiNoChart, !0);
1313
- } catch (e) {
1314
- f(X, e instanceof Error ? e.message : N(C).chartAiFailed, !0);
1315
- } finally {
1316
- f(Y, !1);
1317
- }
1318
- }
1319
- }
1320
- let Dt = n(!1);
1321
- function Ot(e) {
1322
- e.preventDefault(), f(Dt, !0);
1323
- let t = N(F) === "right" ? e.clientX : e.clientY, n = N(L);
1324
- e.target.setPointerCapture?.(e.pointerId);
1325
- let r = (e) => {
1326
- let r = N(F) === "right" ? t - e.clientX : t - e.clientY;
1327
- y().chartSize = Math.max(160, Math.min(720, n + r));
1328
- }, i = () => {
1329
- f(Dt, !1), window.removeEventListener("pointermove", r), window.removeEventListener("pointerup", i);
1330
- };
1331
- window.addEventListener("pointermove", r), window.addEventListener("pointerup", i);
1332
- }
1333
- var Q = pt();
1334
- let kt;
1335
- var At = O(Q), jt = (e) => {
1336
- var t = He();
1337
- let n;
1338
- h(() => {
1339
- n = M(t, 1, "sv-grid-chart-resizer", null, n, { "is-dragging": N(Dt) }), S(t, "aria-orientation", N(F) === "right" ? "vertical" : "horizontal"), S(t, "aria-label", N(C).chartResize);
1340
- }), l("pointerdown", t, Ot), r(e, t);
1341
- };
1342
- a(At, (e) => {
1343
- N(R) || e(jt);
1344
- });
1345
- var Mt = _(At, 2), Nt = O(Mt);
1346
- let Pt;
1347
- var Ft = _(O(Nt), 2), It = v(Ft, !0), Lt = _(Ft, 2), Rt = O(Lt), zt = (e) => {
1348
- var t = Ue(), n = v(t, !0);
1349
- h(() => E(n, N(C).chartClearFilter)), l("click", t, () => y().clearChartCrossFilter()), r(e, t);
1350
- };
1351
- a(Rt, (e) => {
1352
- N(ge) && !N(P) && e(zt);
1353
- });
1354
- var Bt = _(Rt, 2), $ = O(Bt), Vt = O($), Ht = (e) => {
1355
- var t = We();
1356
- r(e, t);
1357
- }, Ut = (e) => {
1358
- var t = Ge();
1359
- r(e, t);
1360
- };
1361
- a(Vt, (e) => {
1362
- N(je) ? e(Ht) : e(Ut, -1);
1363
- }), k($), b($, (e) => f(gt, e), () => N(gt));
1364
- var Wt = _($, 2), Gt = (e) => {
1365
- var t = Ke(), n = O(t), i = v(n, !0), a = _(n, 2), o = v(a, !0), s = _(a, 2);
1366
- let c;
1367
- var u = v(s, !0), d = _(s, 2);
1368
- let p;
1369
- var m = v(d, !0), g = _(d, 2), y = v(g, !0), b = _(g, 2), ee = v(b, !0), x = _(b, 2), w = v(x, !0);
1370
- k(t), ce(t, (e, t) => le?.(e, t), () => ({
1371
- close: () => f(U, !1),
1372
- returnTo: () => N(gt)
1373
- })), h(() => {
1374
- S(t, "aria-label", N(C).chartExportLabel), E(i, N(C).chartExportPng), E(o, N(C).chartExportSvg), S(s, "aria-disabled", N(Le) ? "true" : void 0), c = M(s, 1, "", null, c, { "is-off": !!N(Le) }), E(u, N(Le) || N(C).chartExportPdf), S(d, "aria-disabled", N(Me) ? void 0 : "true"), S(d, "title", N(Me) ? void 0 : N(C).chartExportCsvNone), p = M(d, 1, "", null, p, { "is-off": !N(Me) }), E(m, N(C).chartExportCsv), E(y, N(C).chartExportCopy), E(ee, N(C).chartExportPrint), E(w, N(C).chartExportDescribe);
1375
- }), l("click", n, Ne), l("click", a, Pe), l("click", s, ze), l("click", d, () => N(Me) && Fe()), l("click", g, ht), l("click", b, mt), l("click", x, bt), r(e, t);
1376
- };
1377
- a(Wt, (e) => {
1378
- N(U) && e(Gt);
1379
- }), k(Bt);
1380
- var Kt = _(Bt, 2), qt = (e) => {
1381
- var t = qe();
1382
- let n;
1383
- var i = _(O(t));
1384
- k(t), h(() => {
1385
- n = M(t, 1, "sv-grid-chart-btn sv-grid-chart-ai-btn", null, n, { "is-active": N(wt) }), S(t, "aria-label", N(C).chartAiLabel), S(t, "title", N(C).chartAiLabel), S(t, "aria-expanded", N(wt)), E(i, ` ${N(C).chartAi ?? ""}`);
1386
- }), l("click", t, () => f(wt, !N(wt))), r(e, t);
1387
- };
1388
- a(Kt, (e) => {
1389
- N(xt) && !N(P) && e(qt);
1390
- });
1391
- var Jt = _(Kt, 2), Yt = (e) => {
1392
- var t = et(), n = c(t), i = _(O(n));
1393
- k(n);
1394
- var o = _(n, 2), s = O(o);
1395
- b(s, (e) => f(q, e), () => N(q));
1396
- var u = _(s, 2), m = (e) => {
1397
- var t = Ze(), n = O(t), i = O(n);
1398
- x(i);
1399
- var o = _(i, 2), s = v(o, !0);
1400
- k(n);
1401
- var c = _(n, 2), u = (e) => {
1402
- var t = Ye();
1403
- j(t, 21, () => y().savedCharts, (e) => e.name, (e, t) => {
1404
- var n = Je(), i = O(n), a = v(i, !0), o = _(i, 2);
1405
- k(n), h(() => {
1406
- S(i, "title", N(C).chartSaveApply), E(a, N(t).name), S(o, "aria-label", `${N(C).chartSaveRemove}: ${N(t).name}`), S(o, "title", N(C).chartSaveRemove);
1407
- }), l("click", i, () => {
1408
- y().applySavedChart(N(t).name), f(J, !1);
1409
- }), l("click", o, () => y().removeSavedChart(N(t).name)), r(e, n);
1410
- }), k(t), r(e, t);
1411
- }, d = (e) => {
1412
- var t = Xe(), n = v(t, !0);
1413
- h(() => E(n, N(C).chartSavedEmpty)), r(e, t);
1414
- };
1415
- a(c, (e) => {
1416
- y().savedCharts.length ? e(u) : e(d, -1);
1417
- }), k(t), h((e) => {
1418
- S(t, "aria-label", N(C).chartSavedTitle), S(i, "aria-label", N(C).chartSaveName), S(i, "placeholder", N(C).chartSaveNamePlaceholder), o.disabled = e, E(s, N(C).chartSave);
1419
- }, [() => !N(vt).trim()]), p("submit", n, (e) => {
1420
- e.preventDefault(), yt();
1421
- }), oe(i, () => N(vt), (e) => f(vt, e)), r(e, t);
1422
- };
1423
- a(u, (e) => {
1424
- N(J) && e(m);
1425
- }), k(o);
1426
- var g = _(o, 2);
1427
- let ee;
1428
- var w = O(g), T = (e) => {
1429
- var t = Qe();
1430
- r(e, t);
1431
- }, te = (e) => {
1432
- var t = $e();
1433
- r(e, t);
1434
- };
1435
- a(w, (e) => {
1436
- y().chartFrozen ? e(T) : e(te, -1);
1437
- }), k(g);
1438
- var ne = _(g, 2);
1439
- h(() => {
1440
- S(n, "aria-label", N(C).chartBuildLabel), S(n, "title", N(C).chartBuildTitle), E(i, ` ${N(C).chartBuild ?? ""}`), S(s, "aria-label", N(C).chartSaveLabel), S(s, "title", N(C).chartSavedTitle), S(s, "aria-expanded", N(J)), ee = M(g, 1, "sv-grid-chart-icon-btn sv-grid-chart-link-btn", null, ee, { "is-unlinked": !!y().chartFrozen }), S(g, "aria-label", y().chartFrozen ? N(C).chartLinkBack : N(C).chartUnlink), S(g, "aria-pressed", !!y().chartFrozen), S(g, "title", y().chartFrozen ? N(C).chartUnlinkedTitle : N(C).chartLinkedTitle), S(ne, "aria-label", N(C).chartAdd), S(ne, "title", N(C).chartAdd);
1441
- }), l("click", n, d), l("click", s, () => f(J, !N(J))), l("click", g, () => y().chartFrozen ? y().unfreezeChart() : y().freezeChart()), l("click", ne, () => y().addChart()), r(e, t);
1442
- };
1443
- a(Jt, (e) => {
1444
- N(P) || e(Yt);
1445
- });
1446
- var Xt = _(Jt, 2), Zt = (e) => {
1447
- var t = nt(), n = c(t), i = O(n), o = (e) => {
1448
- var t = K();
1449
- r(e, t);
1450
- }, s = (e) => {
1451
- var t = tt();
1452
- r(e, t);
1453
- };
1454
- a(i, (e) => {
1455
- N(z) ? e(o) : e(s, -1);
1456
- }), k(n);
1457
- var u = _(n, 2);
1458
- h(() => {
1459
- S(n, "aria-label", N(z) ? N(C).chartRestore : N(C).chartMaximize), S(n, "title", N(z) ? N(C).chartRestore : N(C).chartMaximize), S(u, "aria-label", N(C).chartDockLabel), S(u, "title", N(C).chartDock);
1460
- }), l("click", n, Ee), l("click", u, Te), r(e, t);
1461
- }, Qt = (e) => {
1462
- var t = rt();
1463
- h(() => {
1464
- S(t, "aria-label", N(C).chartPopOutLabel), S(t, "title", N(C).chartPopOut);
1465
- }), l("click", t, we), r(e, t);
1466
- };
1467
- a(Xt, (e) => {
1468
- N(R) ? e(Zt) : e(Qt, -1);
1469
- });
1470
- var $t = _(Xt, 2);
1471
- k(Lt), k(Nt);
1472
- var en = _(Nt, 2), tn = (e) => {
1473
- var t = at();
1474
- j(t, 23, () => y().charts, (e) => e.id, (e, t, n) => {
1475
- var i = it();
1476
- let a;
1477
- var o = O(i), s = v(o, !0), c = _(o, 2);
1478
- k(i), h((e) => {
1479
- a = M(i, 1, "sv-grid-chart-tab", null, a, { "is-active": N(n) === y().activeChartIndex }), S(o, "aria-selected", N(n) === y().activeChartIndex), E(s, N(t).title), S(c, "aria-label", e), S(c, "title", N(C).chartRemove);
1480
- }, [() => Ve(N(C).chartRemoveTab, { title: N(t).title })]), l("click", o, () => y().activeChartIndex = N(n)), l("click", c, () => y().removeChart(N(n))), r(e, i);
1481
- }), k(t), h(() => S(t, "aria-label", N(C).chartTabs)), r(e, t);
1482
- };
1483
- a(en, (e) => {
1484
- !N(P) && y().charts.length > 1 && e(tn);
1485
- });
1486
- var nn = _(en, 2), rn = (e) => {
1487
- var t = lt(), n = O(t), i = O(n);
1488
- x(i);
1489
- var o = _(i, 2), s = v(o, !0), c = _(o, 2), u = (e) => {
1490
- var t = ot(), n = v(t, !0);
1491
- h(() => {
1492
- t.disabled = N(Y) || !N(I), S(t, "title", N(C).chartAiExplainTitle), E(n, N(C).chartAiExplain);
1493
- }), l("click", t, Ct), r(e, t);
1494
- };
1495
- a(c, (e) => {
1496
- N(St) && e(u);
1497
- }), k(n);
1498
- var d = _(n, 2), m = (e) => {
1499
- var t = st(), n = v(t, !0);
1500
- h(() => E(n, N(X))), r(e, t);
1501
- }, g = (e) => {
1502
- var t = ct(), n = v(t, !0);
1503
- h(() => E(n, N(Z))), r(e, t);
1504
- };
1505
- a(d, (e) => {
1506
- N(X) ? e(m) : N(Z) && e(g, 1);
1507
- }), k(t), h((e) => {
1508
- S(i, "placeholder", N(C).chartAiPlaceholder), i.disabled = N(Y), o.disabled = e, E(s, N(Y) ? N(C).chartAiThinking : N(C).chartAiRun);
1509
- }, [() => N(Y) || !N(Tt).trim()]), p("submit", n, (e) => {
1510
- e.preventDefault(), Et();
1511
- }), oe(i, () => N(Tt), (e) => f(Tt, e)), r(e, t);
1512
- };
1513
- a(nn, (e) => {
1514
- N(xt) && N(wt) && !N(P) && e(rn);
1515
- });
1516
- var an = _(nn, 2), on = (e) => {
1517
- Re(e, {
1518
- get ctrl() {
1519
- return y();
1520
- },
1521
- get messages() {
1522
- return N(C);
1523
- }
1524
- });
1525
- };
1526
- a(an, (e) => {
1527
- N(P) || e(on);
1528
- }), k(Mt);
1529
- var sn = _(Mt, 2), cn = O(sn), ln = (e) => {
1530
- var t = ut(), n = O(t);
1531
- {
1532
- let e = A(() => N(T)?.zoom ?? !1), t = A(() => N(T)?.rangePresets), r = A(() => N(T)?.syncGroup), i = A(() => N(T)?.contextMenu), a = A(() => N(T)?.animate), o = A(() => N(T)?.localeText), s = A(() => N(T)?.export === !0 || void 0);
1533
- be(n, {
1534
- get spec() {
1535
- return N(I);
1536
- },
1537
- get indicators() {
1538
- return y().chartIndicatorPanes;
1539
- },
1540
- onSelect: ke,
1541
- interactive: !0,
1542
- legend: !1,
1543
- get zoomable() {
1544
- return N(e);
1545
- },
1546
- get rangePresets() {
1547
- return N(t);
1548
- },
1549
- get syncGroup() {
1550
- return N(r);
1551
- },
1552
- get contextMenu() {
1553
- return N(i);
1554
- },
1555
- get animate() {
1556
- return N(a);
1557
- },
1558
- get localeText() {
1559
- return N(o);
1560
- },
1561
- get crosshairLabels() {
1562
- return N(ae);
1563
- },
1564
- get toolbar() {
1565
- return N(s);
1566
- },
1567
- get zoom() {
1568
- return y().chartZoom;
1569
- },
1570
- set zoom(e) {
1571
- y().chartZoom = e;
1572
- }
1573
- });
1574
- }
1575
- k(t), r(e, t);
1576
- }, un = (e) => {
1577
- {
1578
- let t = A(() => N(T)?.zoom ?? !1), n = A(() => N(T)?.brush === !0), r = A(() => N(T)?.rangePresets), i = A(() => N(T)?.syncGroup), a = A(() => N(T)?.contextMenu), o = A(() => N(T)?.animate), s = A(() => N(T)?.localeText), c = A(() => N(T)?.export === !0 || void 0);
1579
- he(e, {
1580
- get spec() {
1581
- return N(I);
1582
- },
1583
- autosize: !0,
1584
- onSelect: ke,
1585
- interactive: !0,
1586
- get legend() {
1587
- return N(ie);
1588
- },
1589
- get dataLabels() {
1590
- return N(D);
1591
- },
1592
- get zoomable() {
1593
- return N(t);
1594
- },
1595
- get brush() {
1596
- return N(n);
1597
- },
1598
- get rangePresets() {
1599
- return N(r);
1600
- },
1601
- get syncGroup() {
1602
- return N(i);
1603
- },
1604
- get contextMenu() {
1605
- return N(a);
1606
- },
1607
- get animate() {
1608
- return N(o);
1609
- },
1610
- get localeText() {
1611
- return N(s);
1612
- },
1613
- get crosshairLabels() {
1614
- return N(ae);
1615
- },
1616
- get toolbar() {
1617
- return N(c);
1618
- },
1619
- get zoom() {
1620
- return y().chartZoom;
1621
- },
1622
- set zoom(e) {
1623
- y().chartZoom = e;
1624
- }
1625
- });
1626
- }
1627
- }, dn = (e) => {
1628
- var t = dt(), n = O(t), i = (e) => {
1629
- var t = o();
1630
- h(() => E(t, N(C).chartEmptyColumns)), r(e, t);
1631
- }, s = (e) => {
1632
- var t = o();
1633
- h(() => E(t, N(C).chartEmptyData)), r(e, t);
1634
- };
1635
- a(n, (e) => {
1636
- !N(ye).dims.length || !N(ye).measures.length ? e(i) : e(s, -1);
1637
- }), k(t), r(e, t);
1638
- };
1639
- a(cn, (e) => {
1640
- N(I) && y().chartIndicatorPanes.length && N(I).series[0]?.ohlc ? e(ln) : N(I) && (N(I).series.length || N(I).gaugeValue != null || N(P)) ? e(un, 1) : e(dn, -1);
1641
- }), k(sn), b(sn, (e) => f(Ae, e), () => N(Ae));
1642
- var fn = _(sn, 2), pn = (e) => {
1643
- var t = ne(), n = c(t);
1644
- i(n, () => N(s), (e, t) => {
1645
- t(e, {
1646
- get ctrl() {
1647
- return y();
1648
- },
1649
- get types() {
1650
- return N(H);
1651
- },
1652
- get messages() {
1653
- return N(C);
1654
- },
1655
- get open() {
1656
- return N(u);
1657
- },
1658
- set open(e) {
1659
- f(u, e, !0);
1660
- }
1661
- });
1662
- }), r(e, t);
1663
- };
1664
- a(fn, (e) => {
1665
- N(s) && e(pn);
1666
- });
1667
- var mn = _(fn, 2), hn = (e) => {
1668
- var t = ft();
1669
- h(() => S(t, "aria-label", N(C).chartResizeWindow)), l("pointerdown", t, V), r(e, t);
1670
- };
1671
- a(mn, (e) => {
1672
- N(R) && !N(z) && e(hn);
1673
- }), k(Q), b(Q, (e) => f(Se, e), () => N(Se)), h(() => {
1674
- kt = M(Q, 1, "sv-grid-chart-panel", null, kt, {
1675
- "is-right": N(F) === "right" && !N(R),
1676
- "is-bottom": N(F) === "bottom" && !N(R),
1677
- "is-floating": N(R),
1678
- "is-maximized": N(R) && N(z)
1679
- }), se(Q, N(Oe)), S(Q, "aria-label", N(C).chartPanelTitle), Pt = M(Nt, 1, "sv-grid-chart-drawer-title", null, Pt, { "is-drag-handle": N(R) && !N(z) }), E(It, N(C).chartPanelTitle), S($, "aria-label", N(C).chartExportLabel), S($, "title", N(C).chartExport), S($, "aria-expanded", N(U)), S($t, "aria-label", N(C).chartClose);
1680
- }), l("pointerdown", Nt, De), l("click", $, () => f(U, !N(U))), l("click", $t, () => y().chartPanelOpen = !1), m(3, Q, () => _e, () => ({
1681
- x: !N(R) && N(F) === "right" ? N(L) : 0,
1682
- y: !N(R) && N(F) === "bottom" ? N(L) : 0,
1683
- duration: 180,
1684
- easing: ve
1685
- })), r(e, Q), te();
1686
- }
1687
- s(["pointerdown", "click"]);
1688
- //#endregion
1689
- export { mt as default, Re as n, Ve as t };