@svgrid/grid-wc 3.0.46 → 3.0.48
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/GridFind-C1YbloFh.js +39 -0
- package/dist/GridFooter-DOR8m9GQ.js +142 -0
- package/dist/GridMenus-Da8XGbc6.js +1461 -0
- package/dist/PinSplitter-Du4ZF8T3.js +178 -0
- package/dist/SvChartMenu-B6kpmwUv.js +401 -0
- package/dist/{SvDateRangeInput-Cpss2SsG.js → SvDateRangeInput-ByR-LFgf.js} +78 -77
- package/dist/SvDateTimePicker-BCxhFb5c.js +763 -0
- package/dist/{SvField-C--8r4go.js → SvField-CtzxdF7J.js} +100 -99
- package/dist/SvGridCellEditor-BUdVD7xM.js +594 -0
- package/dist/SvGridChart-DkKI8-bj.js +3684 -0
- package/dist/SvGridChartBuilder-BCQ3W8TY.js +1086 -0
- package/dist/SvGridChartPanel-uqul044E.js +1689 -0
- package/dist/{SvGridChartView-Bvacwk37.js → SvGridChartView-DWxEFzdM.js} +9 -8
- package/dist/SvGridDropdown-CnCQuXaI.js +258 -0
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +12 -3
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
- package/dist/angular/types/svgrid-grid-wc-angular.d.ts +5 -1
- package/dist/chart/SvChartMenu-NxEyX5kU.js +635 -0
- package/dist/chart/{chart-export-C43UPY8D.js → chart-export-Dj_zVsjI.js} +5 -7
- package/dist/chart/chart-export-pdf-pmzjhHhB.js +156 -0
- package/dist/chart/{client-BuB0wIgc.js → client-Y303i9Lw.js} +1317 -1214
- package/dist/chart/sv-chart-element.js +2390 -2405
- package/dist/chart-export-pdf-DyuVs1gO.js +156 -0
- package/dist/client-OtsRxGjS.js +3075 -0
- package/dist/{column-resize-DUPgynvc.js → column-resize-SEn7el6C.js} +21 -9
- package/dist/{csv-injection-Ce26_TOb.js → csv-injection-Cxf6dMrr.js} +1 -1
- package/dist/{date-format-B0RznzxC.js → date-format-DngG1HJ5.js} +402 -407
- package/dist/{shadow/export-format-6jDuF2nb.js → export-format-7DhxeN27.js} +2 -2
- package/dist/{grid-extension.svelte-CBhmpjuc.js → grid-extension.svelte-DToFhcZv.js} +1 -1
- package/dist/grid-menu-messages-BEsB6Jhh.js +57 -0
- package/dist/history-Q12tf0k-.js +80 -0
- package/dist/list-option-DpIu99JN.js +203 -0
- package/dist/menu-focus-lmTebXyL.js +45 -0
- package/dist/range-commit-C6Rogxem.js +385 -0
- package/dist/react/index.d.ts +11 -0
- package/dist/react/index.js +2 -1
- package/dist/shadow/GridFind-CcoKoisE.js +39 -0
- package/dist/shadow/GridFooter-CDq71ytl.js +142 -0
- package/dist/shadow/GridMenus-RAp-E3hp.js +1461 -0
- package/dist/shadow/PinSplitter-BAYTAZtm.js +178 -0
- package/dist/shadow/SvChartMenu-C74rWwjU.js +401 -0
- package/dist/shadow/{SvDateRangeInput-Cpss2SsG.js → SvDateRangeInput-9Wq4E64y.js} +78 -77
- package/dist/shadow/SvDateTimePicker-y9jPLR19.js +763 -0
- package/dist/shadow/{SvField-C--8r4go.js → SvField-DGPj2clt.js} +100 -99
- package/dist/shadow/SvGridCellEditor-CzeBp9lp.js +594 -0
- package/dist/shadow/SvGridChart-zTsB6F3Y.js +3684 -0
- package/dist/shadow/SvGridChartBuilder-VUKgOcp7.js +1086 -0
- package/dist/shadow/SvGridChartPanel-DkjEUB7t.js +1689 -0
- package/dist/shadow/{SvGridChartView-Bvacwk37.js → SvGridChartView-DQmJahyT.js} +9 -8
- package/dist/shadow/SvGridDropdown-B_5kqHQE.js +258 -0
- package/dist/shadow/chart-export-pdf-BZy6f5QB.js +156 -0
- package/dist/shadow/client-OtsRxGjS.js +3075 -0
- package/dist/shadow/{column-resize-DUPgynvc.js → column-resize-SEn7el6C.js} +21 -9
- package/dist/shadow/{csv-injection-Ce26_TOb.js → csv-injection-Cxf6dMrr.js} +1 -1
- package/dist/shadow/{date-format-B0RznzxC.js → date-format-C9UkbCig.js} +402 -407
- package/dist/{export-format-6jDuF2nb.js → shadow/export-format-7DhxeN27.js} +2 -2
- package/dist/shadow/{grid-extension.svelte-CBhmpjuc.js → grid-extension.svelte-DToFhcZv.js} +1 -1
- package/dist/shadow/grid-menu-messages-BEsB6Jhh.js +57 -0
- package/dist/shadow/history-Q12tf0k-.js +80 -0
- package/dist/shadow/list-option-DpIu99JN.js +203 -0
- package/dist/shadow/menu-focus-lmTebXyL.js +45 -0
- package/dist/shadow/range-commit-C6Rogxem.js +385 -0
- package/dist/shadow/sv-grid-shadow-element.d.ts +7 -0
- package/dist/shadow/sv-grid-shadow-element.js +4236 -4469
- package/dist/shadow/{svelte-virtualizer.svelte-u-y0InK2.js → svelte-virtualizer.svelte-DWvD9wvL.js} +17 -12
- package/dist/sv-grid-element.d.ts +7 -0
- package/dist/sv-grid-element.js +4219 -4452
- package/dist/{svelte-virtualizer.svelte-u-y0InK2.js → svelte-virtualizer.svelte-DWvD9wvL.js} +17 -12
- package/dist/vue/index.d.ts +6 -2
- package/dist/vue/index.js +1 -1
- package/package.json +4 -4
- package/dist/GridFind-DianRZxS.js +0 -39
- package/dist/GridFooter-Bp3o5qJX.js +0 -162
- package/dist/GridMenus-BYkY3nhr.js +0 -1405
- package/dist/PinSplitter-CinhgIrH.js +0 -130
- package/dist/SvChartMenu-CgAcTloT.js +0 -413
- package/dist/SvDateTimePicker-DyRO_e91.js +0 -770
- package/dist/SvGridCellEditor-DHHGSjgp.js +0 -584
- package/dist/SvGridChart-BFQLtNmn.js +0 -3703
- package/dist/SvGridChartBuilder-CtGuoAOV.js +0 -1166
- package/dist/SvGridChartPanel-CeaXNzmV.js +0 -1743
- package/dist/SvGridDropdown-CrECQYeq.js +0 -257
- package/dist/chart/SvChartMenu-DslxOgPN.js +0 -590
- package/dist/chart/chart-export-pdf-C0_y8glC.js +0 -104
- package/dist/chart-export-pdf-DDVtypH7.js +0 -104
- package/dist/client-DtIdusS4.js +0 -2974
- package/dist/focus-trap-Dbb2tJxb.js +0 -65
- package/dist/list-option-DrRyivWp.js +0 -82
- package/dist/shadow/GridFind-DianRZxS.js +0 -39
- package/dist/shadow/GridFooter-DvMFqeNV.js +0 -162
- package/dist/shadow/GridMenus-DKLNTKDZ.js +0 -1405
- package/dist/shadow/PinSplitter-CinhgIrH.js +0 -130
- package/dist/shadow/SvChartMenu-CgAcTloT.js +0 -413
- package/dist/shadow/SvDateTimePicker-DyRO_e91.js +0 -770
- package/dist/shadow/SvGridCellEditor-DHHGSjgp.js +0 -584
- package/dist/shadow/SvGridChart-BFQLtNmn.js +0 -3703
- package/dist/shadow/SvGridChartBuilder-CtGuoAOV.js +0 -1166
- package/dist/shadow/SvGridChartPanel-CeaXNzmV.js +0 -1743
- package/dist/shadow/SvGridDropdown-CrECQYeq.js +0 -257
- package/dist/shadow/chart-export-pdf-DDVtypH7.js +0 -104
- package/dist/shadow/client-DtIdusS4.js +0 -2974
- package/dist/shadow/focus-trap-Dbb2tJxb.js +0 -65
- package/dist/shadow/list-option-DrRyivWp.js +0 -82
|
@@ -0,0 +1,1086 @@
|
|
|
1
|
+
(function(){try{var c=".sv-tabs.svelte-13z0l57{--_accent:var(--sg-accent,#2563eb);gap:0;display:flex}.sv-tabs--top.svelte-13z0l57{flex-direction:column}.sv-tabs--bottom.svelte-13z0l57{flex-direction:column-reverse}.sv-tabs--left.svelte-13z0l57{flex-direction:row}.sv-tabs--right.svelte-13z0l57{flex-direction:row-reverse}.sv-tabs__strip.svelte-13z0l57{align-items:center;min-width:0;display:flex}.sv-tabs--vertical.svelte-13z0l57 .sv-tabs__strip:where(.svelte-13z0l57){align-items:stretch}.sv-tabs__list.svelte-13z0l57{gap:2px;display:flex}.sv-tabs--horizontal.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){scrollbar-width:none;scroll-behavior:smooth;flex:auto;min-width:0;overflow-x:auto}.sv-tabs--horizontal.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57)::-webkit-scrollbar{display:none}.sv-tabs--horizontal.svelte-13z0l57 .sv-tabs__tabwrap:where(.svelte-13z0l57){flex:none}.sv-tabs--vertical.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){flex-direction:column}.sv-tabs__scroll.svelte-13z0l57{width:26px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;flex:none;align-self:stretch;place-items:center;display:grid}.sv-tabs__scroll.svelte-13z0l57:hover:not(:disabled){color:var(--_accent)}.sv-tabs__scroll.svelte-13z0l57:disabled{opacity:.3;cursor:default}.sv-tabs__tabwrap.is-drag.svelte-13z0l57{opacity:.4}.sv-tabs__tabwrap.is-over.svelte-13z0l57:before{content:\"\";inset-inline-start:-1px;background:var(--_accent);border-radius:2px;width:2px;position:absolute;top:5px;bottom:5px}.sv-tabs__tabwrap[draggable=true].svelte-13z0l57 .sv-tabs__tab:where(.svelte-13z0l57){cursor:grab}.sv-tabs--top.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){border-bottom:1px solid var(--sg-border,#e2e8f0)}.sv-tabs--bottom.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){border-top:1px solid var(--sg-border,#e2e8f0)}.sv-tabs--left.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){border-inline-end:1px solid var(--sg-border,#e2e8f0)}.sv-tabs--right.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){border-inline-start:1px solid var(--sg-border,#e2e8f0)}.sv-tabs--pill.svelte-13z0l57 .sv-tabs__list:where(.svelte-13z0l57){background:var(--sg-header-bg,#f1f5f9);border:0;border-radius:9px;gap:3px;padding:3px}.sv-tabs__tabwrap.svelte-13z0l57{align-items:center;display:inline-flex;position:relative}.sv-tabs__tab.svelte-13z0l57{font:inherit;color:var(--sg-muted,#64748b);cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:9px 14px;font-size:13px;font-weight:600}.sv-tabs__tabwrap.is-closable.svelte-13z0l57 .sv-tabs__tab:where(.svelte-13z0l57){padding-inline-end:4px}.sv-tabs__tab.svelte-13z0l57:hover:not(:disabled):not(.is-active){color:var(--sg-fg,#0f172a)}.sv-tabs__tab.svelte-13z0l57:disabled{opacity:.45;cursor:not-allowed}.sv-tabs__tab.svelte-13z0l57:focus-visible{outline:2px solid var(--sg-focus-ring,var(--_accent));outline-offset:-2px;border-radius:6px}.sv-tabs__close.svelte-13z0l57{width:18px;height:18px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;flex:none;place-items:center;margin-inline-end:8px;display:grid}.sv-tabs__close.svelte-13z0l57:hover{background:var(--sg-row-hover-bg,#f1f5f9);color:var(--sg-danger,#dc2626)}.sv-tabs--line.svelte-13z0l57 .sv-tabs__tab.is-active:where(.svelte-13z0l57){color:var(--_accent)}.sv-tabs--line.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{content:\"\";background:var(--_accent);position:absolute}.sv-tabs--line.sv-tabs--top.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{height:2px;bottom:-1px;left:8px;right:8px}.sv-tabs--line.sv-tabs--bottom.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{height:2px;top:-1px;left:8px;right:8px}.sv-tabs--line.sv-tabs--left.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{top:8px;bottom:8px;width:2px;inset-inline-end:-1px}.sv-tabs--line.sv-tabs--right.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57):after{top:8px;bottom:8px;width:2px;inset-inline-start:-1px}.sv-tabs--pill.svelte-13z0l57 .sv-tabs__tab:where(.svelte-13z0l57){border-radius:7px;padding:7px 14px}.sv-tabs--pill.svelte-13z0l57 .sv-tabs__tabwrap.is-active:where(.svelte-13z0l57) .sv-tabs__tab:where(.svelte-13z0l57),.sv-tabs--pill.svelte-13z0l57 .sv-tabs__tab.is-active:where(.svelte-13z0l57){background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);box-shadow:0 1px 2px #00000014}.sv-tabs__panel.svelte-13z0l57{outline:none;flex:1;min-width:0;padding:16px 2px}.sv-modal__backdrop{z-index:2147483000;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);background:#0f172a73;animation:.16s both svelte-o40lcu-sv-modal-fade;position:fixed;inset:0}@keyframes svelte-o40lcu-sv-modal-fade{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.sv-modal__backdrop{animation:none}}.sv-modal{background:var(--sg-bg,#fff);min-width:240px;max-width:94vw;max-height:88vh;color:var(--sg-fg,#0f172a);border:1px solid var(--sg-border,#e2e8f0);border-radius:12px;flex-direction:column;animation:.18s cubic-bezier(.16,1,.3,1) both svelte-o40lcu-sv-modal-in;display:flex;position:fixed;top:50%;left:50%;overflow:hidden;box-shadow:0 24px 64px -16px #0f172a80}@keyframes svelte-o40lcu-sv-modal-in{0%{opacity:0;transform:translate(-50%,-50%)scale(.94)}to{opacity:1}}@media (prefers-reduced-motion:reduce){.sv-modal{animation:none}}.sv-modal--sm{width:360px}.sv-modal--md{width:520px}.sv-modal--lg{width:720px}.sv-modal.is-resized{max-width:none;max-height:none}.sv-modal__header{border-bottom:1px solid var(--sg-border,#e2e8f0);align-items:center;gap:12px;padding:13px 16px;display:flex}.sv-modal__header.is-draggable{cursor:move;touch-action:none;-webkit-user-select:none;user-select:none}.sv-modal__title{flex:1;margin:0;font-size:15px;font-weight:650}.sv-modal__x{width:28px;height:28px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;place-items:center;font-size:20px;line-height:1;display:grid}.sv-modal__x:hover{background:var(--sg-row-hover-bg,#f1f5f9);color:var(--sg-fg,#0f172a)}.sv-modal__body{flex:1;padding:16px;font-size:13.5px;line-height:1.6;overflow:auto}.sv-modal__footer{border-top:1px solid var(--sg-border,#e2e8f0);justify-content:flex-end;gap:8px;padding:12px 16px;display:flex}.sv-modal__resize{inset-inline-end:0;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg, transparent 50%, var(--sg-muted,#94a3b8) 50%, var(--sg-muted,#94a3b8) 60%, transparent 60%, transparent 72%, var(--sg-muted,#94a3b8) 72%, var(--sg-muted,#94a3b8) 82%, transparent 82%);opacity:.6;width:16px;height:16px;position:absolute;bottom:0}.sv-grid-chart-builder.svelte-1yr3emi{min-height:420px;max-height:70vh;font-size:12px;overflow:auto}.sv-grid-chart-builder-group.svelte-1yr3emi{color:var(--sg-muted,#64748b);text-transform:uppercase;letter-spacing:.04em;margin:10px 0 6px;font-size:11px;font-weight:600}.sv-grid-chart-builder-cards.svelte-1yr3emi{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;display:grid}.sv-grid-chart-builder-card.svelte-1yr3emi{border:1px solid var(--sg-border,#e2e8f0);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);cursor:pointer;text-align:left;font:inherit;border-radius:8px;flex-direction:column;gap:4px;padding:6px;display:flex}.sv-grid-chart-builder-card.svelte-1yr3emi:hover{border-color:var(--sg-accent,#2563eb)}.sv-grid-chart-builder-card.is-selected.svelte-1yr3emi{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 30%, transparent 70%)}.sv-grid-chart-builder-thumb.svelte-1yr3emi{pointer-events:none;height:92px;overflow:hidden}.sv-grid-chart-builder-card-label.svelte-1yr3emi{font-size:11px;font-weight:600}.sv-grid-chart-builder-form.svelte-1yr3emi{flex-direction:column;gap:8px;padding:8px 2px;display:flex}.sv-grid-chart-builder-row.svelte-1yr3emi{grid-template-columns:110px 1fr;align-items:center;gap:8px;display:grid}.sv-grid-chart-builder-row.svelte-1yr3emi>span:where(.svelte-1yr3emi){color:var(--sg-muted,#64748b)}.sv-grid-chart-builder-row.svelte-1yr3emi>small:where(.svelte-1yr3emi){color:var(--sg-muted,#64748b);grid-column:2}.sv-grid-chart-builder-row.svelte-1yr3emi>input[type=checkbox]:where(.svelte-1yr3emi){justify-self:start}.sv-grid-chart-builder-row.svelte-1yr3emi input[type=text]:where(.svelte-1yr3emi),.sv-grid-chart-builder-row.svelte-1yr3emi input[type=number]:where(.svelte-1yr3emi),.sv-grid-chart-builder-row.svelte-1yr3emi select:where(.svelte-1yr3emi),.sv-grid-chart-builder-series.svelte-1yr3emi input:where(.svelte-1yr3emi),.sv-grid-chart-builder-series.svelte-1yr3emi select:where(.svelte-1yr3emi){font:inherit;border:1px solid var(--sg-border,#e2e8f0);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);border-radius:6px;min-width:0;padding:3px 6px}.sv-grid-chart-builder-fs.svelte-1yr3emi{border:1px solid var(--sg-border,#e2e8f0);border-radius:8px;flex-direction:column;gap:6px;padding:6px 10px 10px;display:flex}.sv-grid-chart-builder-fs.svelte-1yr3emi>legend:where(.svelte-1yr3emi){padding:0 4px;font-weight:600}.sv-grid-chart-builder-series.svelte-1yr3emi,.sv-grid-chart-builder-series-head.svelte-1yr3emi{grid-template-columns:minmax(80px,1.4fr) 44px 1fr 1fr 1fr 64px;align-items:center;gap:6px;display:grid}.sv-grid-chart-builder-series.has-stack.svelte-1yr3emi,.sv-grid-chart-builder-series-head.has-stack.svelte-1yr3emi{grid-template-columns:minmax(80px,1.4fr) 44px 1fr 1fr 1fr 64px 72px}.sv-grid-chart-builder-series-head.svelte-1yr3emi{color:var(--sg-muted,#64748b);font-size:11px}.sv-grid-chart-builder-series-name.svelte-1yr3emi{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-chart-builder-actions.svelte-1yr3emi{justify-content:flex-end;display:flex}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["grid"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["grid"]=q["grid"]||[]).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')==="grid:SvGridChartBuilder-BCQ3W8TY.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"grid:SvGridChartBuilder-BCQ3W8TY.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
|
+
import { c as e, f as t, l as n, m as r, o as i, p as a, s as o, u as s } from "./chart-Cwv61lx6.js";
|
|
3
|
+
import { $ as c, A as l, D as u, I as d, J as f, L as p, M as m, O as h, Q as g, R as _, U as v, W as y, X as b, Y as x, Z as S, _ as C, a as w, at as T, c as ee, ct as E, d as D, et as O, f as k, g as A, h as j, it as M, j as N, k as P, l as te, n as F, o as I, p as L, q as R, st as z, tt as B, u as V, w as H, x as U, y as ne, z as W } from "./client-OtsRxGjS.js";
|
|
4
|
+
import { i as G } from "./editor-contract-peBDxir_.js";
|
|
5
|
+
import { r as K } from "./popover-WsGlvtQv.js";
|
|
6
|
+
import { t as q } from "./dismissable-CQ6XFXsk.js";
|
|
7
|
+
import { f as J, l as Y } from "./list-option-DpIu99JN.js";
|
|
8
|
+
import { t as X } from "./SvGridChart-DkKI8-bj.js";
|
|
9
|
+
import { n as Z, t as Q } from "./SvGridChartPanel-uqul044E.js";
|
|
10
|
+
import "./sv-grid-element.js";
|
|
11
|
+
//#region ../grid/dist/a11y/scroll-lock.js
|
|
12
|
+
var $ = 0, re = "", ie = "";
|
|
13
|
+
function ae() {
|
|
14
|
+
if (typeof document > "u") return () => {};
|
|
15
|
+
let e = document.body;
|
|
16
|
+
if ($ === 0) {
|
|
17
|
+
re = e.style.overflow, ie = e.style.paddingRight;
|
|
18
|
+
let t = window.innerWidth - document.documentElement.clientWidth;
|
|
19
|
+
if (t > 0) {
|
|
20
|
+
let n = parseFloat(getComputedStyle(e).paddingRight) || 0;
|
|
21
|
+
e.style.paddingRight = `${n + t}px`;
|
|
22
|
+
}
|
|
23
|
+
e.style.overflow = "hidden";
|
|
24
|
+
}
|
|
25
|
+
$++;
|
|
26
|
+
let t = !1;
|
|
27
|
+
return () => {
|
|
28
|
+
t || (t = !0, $ = Math.max(0, $ - 1), $ === 0 && (e.style.overflow = re, e.style.paddingRight = ie));
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region ../grid/dist/createOverlay.svelte.js
|
|
33
|
+
function oe(e) {
|
|
34
|
+
return y(() => {
|
|
35
|
+
if (!e.open() || !e.getDialog()) return;
|
|
36
|
+
e.onOpen?.();
|
|
37
|
+
let t = e.getDialog(), n = e.trapFocus?.() ?? !0 ? Y(t, e.initialFocus ? { initialFocus: e.initialFocus } : void 0) : null;
|
|
38
|
+
n?.activate();
|
|
39
|
+
let r = e.scrollLock?.() ?? !0 ? ae() : null, i = q({
|
|
40
|
+
element: () => e.getDialog(),
|
|
41
|
+
onDismiss: (t) => {
|
|
42
|
+
(t === "escape" ? e.closeOnEsc?.() ?? !0 : e.closeOnBackdrop?.() ?? !0) && e.onClose();
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
return i.activate(), () => {
|
|
46
|
+
i.release(), r?.(), n?.release();
|
|
47
|
+
};
|
|
48
|
+
}), { dialogProps: (e) => ({
|
|
49
|
+
role: "dialog",
|
|
50
|
+
"aria-modal": "true",
|
|
51
|
+
"aria-labelledby": e?.labelledBy,
|
|
52
|
+
"aria-label": e?.label,
|
|
53
|
+
tabindex: -1
|
|
54
|
+
}) };
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region ../grid/dist/createTabs.svelte.js
|
|
58
|
+
var se = 0;
|
|
59
|
+
function ce(e) {
|
|
60
|
+
let t = `sv-tabs-${se++}`, n = () => e.tabs(), r = () => e.orientation?.() ?? "horizontal", i = () => e.activation?.() ?? "automatic", a = B(() => n().filter((e) => !e.disabled)), o = B(() => e.value() ?? n().find((e) => !e.disabled)?.id ?? n()[0]?.id ?? ""), s = c(""), l = c(0), u = (e) => {
|
|
61
|
+
g(s, e, !0), O(l);
|
|
62
|
+
}, d = (e) => `${t}-tab-${e}`, f = (e) => `${t}-panel-${e}`;
|
|
63
|
+
function p(t) {
|
|
64
|
+
let r = n().find((e) => e.id === t);
|
|
65
|
+
!r || r.disabled || e.onChange?.(t);
|
|
66
|
+
}
|
|
67
|
+
function m(t) {
|
|
68
|
+
n().find((e) => e.id === t)?.closable && e.onClose?.(t);
|
|
69
|
+
}
|
|
70
|
+
function h(t) {
|
|
71
|
+
let n = W(a);
|
|
72
|
+
if (!n.length) return;
|
|
73
|
+
let s = n.findIndex((e) => e.id === W(o)), c = r() === "horizontal", l = c && e.dir?.() === "rtl", d = c ? l ? "ArrowLeft" : "ArrowRight" : "ArrowDown", f = c ? l ? "ArrowRight" : "ArrowLeft" : "ArrowUp", h = null;
|
|
74
|
+
if (t.key === d) h = n[(s + 1) % n.length]?.id ?? null;
|
|
75
|
+
else if (t.key === f) h = n[(s - 1 + n.length) % n.length]?.id ?? null;
|
|
76
|
+
else if (t.key === "Home") h = n[0]?.id ?? null;
|
|
77
|
+
else if (t.key === "End") h = n.at(-1)?.id ?? null;
|
|
78
|
+
else if ((t.key === "Enter" || t.key === " ") && i() === "manual") {
|
|
79
|
+
t.preventDefault(), p(W(o));
|
|
80
|
+
return;
|
|
81
|
+
} else if (t.key === "Delete") {
|
|
82
|
+
t.preventDefault(), m(W(o));
|
|
83
|
+
return;
|
|
84
|
+
} else return;
|
|
85
|
+
h && (t.preventDefault(), u(h), i() === "automatic" && p(h));
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
get activeId() {
|
|
89
|
+
return W(o);
|
|
90
|
+
},
|
|
91
|
+
get focusId() {
|
|
92
|
+
return W(s);
|
|
93
|
+
},
|
|
94
|
+
get focusTick() {
|
|
95
|
+
return W(l);
|
|
96
|
+
},
|
|
97
|
+
isActive: (e) => e === W(o),
|
|
98
|
+
select: p,
|
|
99
|
+
close: m,
|
|
100
|
+
onKeydown: h,
|
|
101
|
+
tablistProps: () => ({
|
|
102
|
+
role: "tablist",
|
|
103
|
+
"aria-orientation": r(),
|
|
104
|
+
"aria-label": e.ariaLabel?.()
|
|
105
|
+
}),
|
|
106
|
+
tabProps: (e) => {
|
|
107
|
+
let t = n().find((t) => t.id === e), r = e === W(o);
|
|
108
|
+
return {
|
|
109
|
+
role: "tab",
|
|
110
|
+
id: d(e),
|
|
111
|
+
"data-tab": e,
|
|
112
|
+
"aria-selected": r,
|
|
113
|
+
"aria-controls": f(e),
|
|
114
|
+
tabindex: r ? 0 : -1,
|
|
115
|
+
disabled: t?.disabled,
|
|
116
|
+
onclick: () => p(e),
|
|
117
|
+
onkeydown: h
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
panelProps: (e) => ({
|
|
121
|
+
role: "tabpanel",
|
|
122
|
+
id: f(e),
|
|
123
|
+
"aria-labelledby": d(e),
|
|
124
|
+
tabindex: 0
|
|
125
|
+
})
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region ../grid/dist/SvTabs.svelte
|
|
130
|
+
var le = m("<button type=\"button\" class=\"sv-tabs__scroll svelte-13z0l57\" tabindex=\"-1\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15 18l-6-6 6-6\"></path></svg></button>"), ue = m("<button type=\"button\" class=\"sv-tabs__close svelte-13z0l57\" tabindex=\"-1\"><svg viewBox=\"0 0 24 24\" width=\"12\" height=\"12\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\"><path d=\"M6 6l12 12M18 6L6 18\"></path></svg></button>"), de = m("<span role=\"presentation\"><button> </button> <!></span>"), fe = m("<button type=\"button\" class=\"sv-tabs__scroll svelte-13z0l57\" tabindex=\"-1\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" width=\"15\" height=\"15\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M9 18l6-6-6-6\"></path></svg></button>"), pe = m("<div><!></div>"), me = m("<div><div class=\"sv-tabs__strip svelte-13z0l57\"><!> <div></div> <!></div> <!></div>");
|
|
131
|
+
function he(e, t) {
|
|
132
|
+
T(t, !0);
|
|
133
|
+
let n = F(t, "value", 15), r = F(t, "variant", 3, "line"), i = F(t, "activation", 3, "automatic"), a = F(t, "reorderable", 3, !1), o = B(() => t.tabPosition ?? (t.orientation === "vertical" ? "left" : "top")), s = B(() => W(o) === "left" || W(o) === "right" ? "vertical" : "horizontal"), d = B(() => t.dir === "ltr" || t.dir === "rtl" ? t.dir : void 0), f = c(0), m = c(0), S = c(0), C = B(() => W(s) === "horizontal" && W(S) > W(m) + 1), E = B(() => W(f) <= 1), D = B(() => W(f) + W(m) >= W(S) - 1);
|
|
134
|
+
function O() {
|
|
135
|
+
G && (g(m, G.clientWidth, !0), g(S, G.scrollWidth, !0), g(f, G.scrollLeft, !0));
|
|
136
|
+
}
|
|
137
|
+
y(() => {
|
|
138
|
+
t.tabs.length, queueMicrotask(O);
|
|
139
|
+
}), y(() => {
|
|
140
|
+
let e = () => O();
|
|
141
|
+
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
142
|
+
});
|
|
143
|
+
function A(e) {
|
|
144
|
+
G?.scrollBy({
|
|
145
|
+
left: e * Math.max(120, W(m) * .7),
|
|
146
|
+
behavior: "smooth"
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
let j = c(null), N = c(null);
|
|
150
|
+
function te(e, n) {
|
|
151
|
+
if (e === n) return;
|
|
152
|
+
let r = t.tabs.map((e) => e.id), i = r.indexOf(e), a = r.indexOf(n);
|
|
153
|
+
i < 0 || a < 0 || (r.splice(a, 0, r.splice(i, 1)[0]), t.onReorder?.(r));
|
|
154
|
+
}
|
|
155
|
+
let L = ce({
|
|
156
|
+
tabs: () => t.tabs,
|
|
157
|
+
value: () => n(),
|
|
158
|
+
onChange: (e) => {
|
|
159
|
+
n(e), t.onChange?.(e);
|
|
160
|
+
},
|
|
161
|
+
onClose: (e) => t.onClose?.(e),
|
|
162
|
+
orientation: () => W(s),
|
|
163
|
+
activation: () => i(),
|
|
164
|
+
dir: () => t.dir,
|
|
165
|
+
ariaLabel: () => t.ariaLabel
|
|
166
|
+
}), U = B(() => L.activeId), G = null, K = 0;
|
|
167
|
+
y(() => {
|
|
168
|
+
if (L.focusTick !== K) {
|
|
169
|
+
K = L.focusTick;
|
|
170
|
+
let e = L.focusId;
|
|
171
|
+
queueMicrotask(() => G?.querySelector(`[data-tab="${e}"]`)?.focus());
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
var q = me(), J = R(q), Y = R(J), X = (e) => {
|
|
175
|
+
var t = le();
|
|
176
|
+
v(() => t.disabled = W(E)), p("click", t, () => A(-1)), l(e, t);
|
|
177
|
+
};
|
|
178
|
+
u(Y, (e) => {
|
|
179
|
+
W(C) && e(X);
|
|
180
|
+
});
|
|
181
|
+
var Z = b(Y, 2), Q = (e) => g(f, e.currentTarget.scrollLeft, !0);
|
|
182
|
+
V(Z, (e) => ({
|
|
183
|
+
class: "sv-tabs__list",
|
|
184
|
+
onscroll: Q,
|
|
185
|
+
...e
|
|
186
|
+
}), [() => L.tablistProps()], void 0, void 0, "svelte-13z0l57"), H(Z, 21, () => t.tabs, (e) => e.id, (e, t) => {
|
|
187
|
+
var n = de();
|
|
188
|
+
let r;
|
|
189
|
+
var i = R(n);
|
|
190
|
+
V(i, (e) => ({
|
|
191
|
+
type: "button",
|
|
192
|
+
class: "sv-tabs__tab",
|
|
193
|
+
...e,
|
|
194
|
+
[ee]: { "is-active": W(t).id === W(U) }
|
|
195
|
+
}), [() => L.tabProps(W(t).id)], void 0, void 0, "svelte-13z0l57");
|
|
196
|
+
var o = x(i, !0), s = b(i, 2), c = (e) => {
|
|
197
|
+
var n = ue();
|
|
198
|
+
v(() => k(n, "aria-label", `Close ${W(t).label}`)), p("click", n, (e) => {
|
|
199
|
+
e.stopPropagation(), L.close(W(t).id);
|
|
200
|
+
}), l(e, n);
|
|
201
|
+
};
|
|
202
|
+
u(s, (e) => {
|
|
203
|
+
W(t).closable && e(c);
|
|
204
|
+
}), z(n), v(() => {
|
|
205
|
+
r = ne(n, 1, "sv-tabs__tabwrap svelte-13z0l57", null, r, {
|
|
206
|
+
"is-active": W(t).id === W(U),
|
|
207
|
+
"is-closable": W(t).closable,
|
|
208
|
+
"is-drag": W(j) === W(t).id,
|
|
209
|
+
"is-over": W(N) === W(t).id
|
|
210
|
+
}), k(n, "draggable", a() && !W(t).disabled), P(o, W(t).label);
|
|
211
|
+
}), _("dragstart", n, function(...e) {
|
|
212
|
+
(a() ? (e) => {
|
|
213
|
+
g(j, W(t).id, !0), e.dataTransfer && (e.dataTransfer.effectAllowed = "move");
|
|
214
|
+
} : void 0)?.apply(this, e);
|
|
215
|
+
}), _("dragover", n, function(...e) {
|
|
216
|
+
(a() ? (e) => {
|
|
217
|
+
e.preventDefault(), g(N, W(t).id, !0);
|
|
218
|
+
} : void 0)?.apply(this, e);
|
|
219
|
+
}), _("dragleave", n, function(...e) {
|
|
220
|
+
(a() ? () => {
|
|
221
|
+
W(N) === W(t).id && g(N, null);
|
|
222
|
+
} : void 0)?.apply(this, e);
|
|
223
|
+
}), _("drop", n, function(...e) {
|
|
224
|
+
(a() ? (e) => {
|
|
225
|
+
e.preventDefault(), W(j) && te(W(j), W(t).id), g(j, null), g(N, null);
|
|
226
|
+
} : void 0)?.apply(this, e);
|
|
227
|
+
}), _("dragend", n, function(...e) {
|
|
228
|
+
(a() ? () => {
|
|
229
|
+
g(j, null), g(N, null);
|
|
230
|
+
} : void 0)?.apply(this, e);
|
|
231
|
+
}), l(e, n);
|
|
232
|
+
}), z(Z), w(Z, (e) => G = e, () => G);
|
|
233
|
+
var $ = b(Z, 2), re = (e) => {
|
|
234
|
+
var t = fe();
|
|
235
|
+
v(() => t.disabled = W(D)), p("click", t, () => A(1)), l(e, t);
|
|
236
|
+
};
|
|
237
|
+
u($, (e) => {
|
|
238
|
+
W(C) && e(re);
|
|
239
|
+
}), z(J);
|
|
240
|
+
var ie = b(J, 2), ae = (e) => {
|
|
241
|
+
var n = pe();
|
|
242
|
+
V(n, (e) => ({
|
|
243
|
+
class: "sv-tabs__panel",
|
|
244
|
+
...e
|
|
245
|
+
}), [() => L.panelProps(W(U))], void 0, void 0, "svelte-13z0l57");
|
|
246
|
+
var r = R(n);
|
|
247
|
+
h(r, () => t.panel, () => W(U)), z(n), l(e, n);
|
|
248
|
+
};
|
|
249
|
+
u(ie, (e) => {
|
|
250
|
+
t.panel && e(ae);
|
|
251
|
+
}), z(q), v(() => {
|
|
252
|
+
ne(q, 1, `sv-tabs sv-tabs--${W(o) ?? ""} sv-tabs--${W(s) ?? ""} sv-tabs--${r() ?? ""}`, "svelte-13z0l57"), k(q, "dir", W(d)), q.dir = q.dir;
|
|
253
|
+
}), I(Z, "clientWidth", (e) => g(m, e)), l(e, q), M();
|
|
254
|
+
}
|
|
255
|
+
d(["click"]);
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region ../grid/dist/SvModal.svelte
|
|
258
|
+
var ge = c("Close"), _e = m("<button type=\"button\" class=\"sv-modal__x\">×</button>"), ve = m("<div><h2 class=\"sv-modal__title\"> </h2> <!></div>"), ye = m("<div class=\"sv-modal__footer\"><!></div>"), be = m("<div class=\"sv-modal__resize\" aria-hidden=\"true\"></div>"), xe = m("<div class=\"sv-modal__backdrop\"><div><!> <div class=\"sv-modal__body\"><!></div> <!> <!></div></div>");
|
|
259
|
+
function Se(e, t) {
|
|
260
|
+
T(t, !0);
|
|
261
|
+
let n = F(t, "open", 15, !1), r = F(t, "size", 3, "md"), i = F(t, "draggable", 3, !1), a = F(t, "resizable", 3, !1), o = F(t, "closeOnBackdrop", 3, !0), s = F(t, "closeOnEsc", 3, !0), d = F(t, "hideClose", 3, !1), m = G("sv-modal-title"), y = c(null), C = c(S({
|
|
262
|
+
x: 0,
|
|
263
|
+
y: 0
|
|
264
|
+
})), D = c(null);
|
|
265
|
+
function O() {
|
|
266
|
+
n(!1), t.onClose?.();
|
|
267
|
+
}
|
|
268
|
+
let A = oe({
|
|
269
|
+
open: () => n(),
|
|
270
|
+
getDialog: () => W(y),
|
|
271
|
+
onClose: O,
|
|
272
|
+
closeOnEsc: () => s(),
|
|
273
|
+
closeOnBackdrop: () => o(),
|
|
274
|
+
onOpen: () => {
|
|
275
|
+
g(C, {
|
|
276
|
+
x: 0,
|
|
277
|
+
y: 0
|
|
278
|
+
}, !0), g(D, null);
|
|
279
|
+
},
|
|
280
|
+
initialFocus: () => t.initialFocus?.() || (W(y) ? J(W(y)).find((e) => !e.closest(".sv-modal__header")) ?? W(y) : null)
|
|
281
|
+
}), j = !1, I = {
|
|
282
|
+
x: 0,
|
|
283
|
+
y: 0,
|
|
284
|
+
ox: 0,
|
|
285
|
+
oy: 0
|
|
286
|
+
};
|
|
287
|
+
function L(e) {
|
|
288
|
+
!i() || e.target.closest(".sv-modal__x") || (j = !0, I = {
|
|
289
|
+
x: e.clientX,
|
|
290
|
+
y: e.clientY,
|
|
291
|
+
ox: W(C).x,
|
|
292
|
+
oy: W(C).y
|
|
293
|
+
}, e.currentTarget.setPointerCapture(e.pointerId));
|
|
294
|
+
}
|
|
295
|
+
function B(e) {
|
|
296
|
+
j && g(C, {
|
|
297
|
+
x: I.ox + (e.clientX - I.x),
|
|
298
|
+
y: I.oy + (e.clientY - I.y)
|
|
299
|
+
}, !0);
|
|
300
|
+
}
|
|
301
|
+
function H(e) {
|
|
302
|
+
j && (j = !1, e.currentTarget.releasePointerCapture(e.pointerId));
|
|
303
|
+
}
|
|
304
|
+
let q = !1, Y = {
|
|
305
|
+
x: 0,
|
|
306
|
+
y: 0,
|
|
307
|
+
w: 0,
|
|
308
|
+
h: 0
|
|
309
|
+
};
|
|
310
|
+
function X(e) {
|
|
311
|
+
if (!a() || !W(y)) return;
|
|
312
|
+
e.stopPropagation(), q = !0;
|
|
313
|
+
let t = W(y).getBoundingClientRect();
|
|
314
|
+
Y = {
|
|
315
|
+
x: e.clientX,
|
|
316
|
+
y: e.clientY,
|
|
317
|
+
w: t.width,
|
|
318
|
+
h: t.height
|
|
319
|
+
}, g(D, {
|
|
320
|
+
w: t.width,
|
|
321
|
+
h: t.height
|
|
322
|
+
}, !0), e.currentTarget.setPointerCapture(e.pointerId);
|
|
323
|
+
}
|
|
324
|
+
function Z(e) {
|
|
325
|
+
q && g(D, {
|
|
326
|
+
w: Math.max(240, Y.w + (e.clientX - Y.x)),
|
|
327
|
+
h: Math.max(160, Y.h + (e.clientY - Y.y))
|
|
328
|
+
}, !0);
|
|
329
|
+
}
|
|
330
|
+
function Q(e) {
|
|
331
|
+
q && (q = !1, e.currentTarget.releasePointerCapture(e.pointerId));
|
|
332
|
+
}
|
|
333
|
+
var $ = N(), re = f($), ie = (e) => {
|
|
334
|
+
var n = xe(), o = R(n);
|
|
335
|
+
V(o, (e) => ({
|
|
336
|
+
class: `sv-modal sv-modal--${r() ?? ""}`,
|
|
337
|
+
...e,
|
|
338
|
+
"aria-describedby": t.describedBy,
|
|
339
|
+
[ee]: { "is-resized": !!W(D) },
|
|
340
|
+
[te]: {
|
|
341
|
+
transform: `translate(calc(-50% + ${W(C).x}px), calc(-50% + ${W(C).y}px))`,
|
|
342
|
+
width: W(D) ? `${W(D).w}px` : t.width ? `${t.width}px` : void 0,
|
|
343
|
+
height: W(D) ? `${W(D).h}px` : void 0
|
|
344
|
+
}
|
|
345
|
+
}), [() => A.dialogProps({ labelledBy: t.title ? m : void 0 })]);
|
|
346
|
+
var s = R(o), c = (e) => {
|
|
347
|
+
var n = ve();
|
|
348
|
+
let r;
|
|
349
|
+
var a = R(n), o = x(a, !0), s = b(a, 2), c = (e) => {
|
|
350
|
+
var t = _e();
|
|
351
|
+
v(() => k(t, "aria-label", W(ge))), p("click", t, O), l(e, t);
|
|
352
|
+
};
|
|
353
|
+
u(s, (e) => {
|
|
354
|
+
d() || e(c);
|
|
355
|
+
}), z(n), v(() => {
|
|
356
|
+
r = ne(n, 1, "sv-modal__header", null, r, { "is-draggable": i() }), k(a, "id", m), P(o, t.title ?? "");
|
|
357
|
+
}), p("pointerdown", n, L), p("pointermove", n, B), p("pointerup", n, H), _("pointercancel", n, H), l(e, n);
|
|
358
|
+
};
|
|
359
|
+
u(s, (e) => {
|
|
360
|
+
(t.title || !d()) && e(c);
|
|
361
|
+
});
|
|
362
|
+
var f = b(s, 2), S = R(f);
|
|
363
|
+
h(S, () => t.children ?? E), z(f);
|
|
364
|
+
var T = b(f, 2), j = (e) => {
|
|
365
|
+
var n = ye(), r = R(n);
|
|
366
|
+
h(r, () => t.footer), z(n), l(e, n);
|
|
367
|
+
};
|
|
368
|
+
u(T, (e) => {
|
|
369
|
+
t.footer && e(j);
|
|
370
|
+
});
|
|
371
|
+
var M = b(T, 2), N = (e) => {
|
|
372
|
+
var t = be();
|
|
373
|
+
p("pointerdown", t, X), p("pointermove", t, Z), p("pointerup", t, Q), _("pointercancel", t, Q), l(e, t);
|
|
374
|
+
};
|
|
375
|
+
u(M, (e) => {
|
|
376
|
+
a() && e(N);
|
|
377
|
+
}), z(o), w(o, (e) => g(y, e), () => W(y)), z(n), U(n, (e) => K?.(e)), l(e, n);
|
|
378
|
+
};
|
|
379
|
+
u(re, (e) => {
|
|
380
|
+
n() && e(ie);
|
|
381
|
+
}), l(e, $), M();
|
|
382
|
+
}
|
|
383
|
+
d([
|
|
384
|
+
"pointerdown",
|
|
385
|
+
"pointermove",
|
|
386
|
+
"pointerup",
|
|
387
|
+
"click"
|
|
388
|
+
]);
|
|
389
|
+
//#endregion
|
|
390
|
+
//#region ../grid/dist/chart-samples.js
|
|
391
|
+
var Ce = null;
|
|
392
|
+
function we() {
|
|
393
|
+
if (Ce) return Ce;
|
|
394
|
+
let e = 7, t = () => (e = (e * 1103515245 + 12345) % 2147483648) / 2147483648, n = [
|
|
395
|
+
"North",
|
|
396
|
+
"South",
|
|
397
|
+
"East",
|
|
398
|
+
"West"
|
|
399
|
+
], r = [
|
|
400
|
+
"Web",
|
|
401
|
+
"Retail",
|
|
402
|
+
"Partner"
|
|
403
|
+
], i = [], a = Date.UTC(2026, 0, 1);
|
|
404
|
+
for (let e = 0; e < 160; e += 1) {
|
|
405
|
+
let e = new Date(a + Math.floor(t() * 180) * 864e5).toISOString().slice(0, 10), o = 1 + Math.floor(t() * 12), s = 40 + t() * 160, c = Math.round(o * s);
|
|
406
|
+
i.push({
|
|
407
|
+
day: e,
|
|
408
|
+
region: n[Math.floor(t() * 4)],
|
|
409
|
+
channel: r[Math.floor(t() * 3)],
|
|
410
|
+
units: o,
|
|
411
|
+
cost: Math.round(c * (.5 + t() * .3)),
|
|
412
|
+
revenue: c
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
return Ce = i, i;
|
|
416
|
+
}
|
|
417
|
+
function Te(c, l) {
|
|
418
|
+
let u = we(), d = o(u, {
|
|
419
|
+
type: "bar",
|
|
420
|
+
category: "region",
|
|
421
|
+
value: "revenue"
|
|
422
|
+
}), f = o(u, {
|
|
423
|
+
type: "bar",
|
|
424
|
+
category: "region",
|
|
425
|
+
value: "revenue",
|
|
426
|
+
series: "channel"
|
|
427
|
+
}), p = o(u, {
|
|
428
|
+
type: "line",
|
|
429
|
+
category: "day",
|
|
430
|
+
value: "revenue",
|
|
431
|
+
bucket: "month"
|
|
432
|
+
}), m = o(u, {
|
|
433
|
+
type: "area",
|
|
434
|
+
category: "day",
|
|
435
|
+
value: "revenue",
|
|
436
|
+
series: "channel",
|
|
437
|
+
bucket: "month"
|
|
438
|
+
}), h = () => n(d.categories.map((e, t) => ({
|
|
439
|
+
region: e,
|
|
440
|
+
cost: d.series[0].values[t] * .6,
|
|
441
|
+
revenue: d.series[0].values[t]
|
|
442
|
+
})), {
|
|
443
|
+
category: "region",
|
|
444
|
+
low: "cost",
|
|
445
|
+
high: "revenue"
|
|
446
|
+
}), g = () => {
|
|
447
|
+
let e = p.series[0].values, t = e.map((t, n) => {
|
|
448
|
+
let r = n ? e[n - 1] : t * .95;
|
|
449
|
+
return {
|
|
450
|
+
o: r,
|
|
451
|
+
c: t,
|
|
452
|
+
h: Math.max(r, t) * 1.04,
|
|
453
|
+
l: Math.min(r, t) * .96
|
|
454
|
+
};
|
|
455
|
+
});
|
|
456
|
+
return {
|
|
457
|
+
categories: p.categories,
|
|
458
|
+
series: [{
|
|
459
|
+
label: "Revenue",
|
|
460
|
+
values: e,
|
|
461
|
+
ohlc: t
|
|
462
|
+
}],
|
|
463
|
+
xType: "ordinal-time"
|
|
464
|
+
};
|
|
465
|
+
}, _;
|
|
466
|
+
switch (c) {
|
|
467
|
+
case "line":
|
|
468
|
+
_ = {
|
|
469
|
+
...m,
|
|
470
|
+
type: "line"
|
|
471
|
+
};
|
|
472
|
+
break;
|
|
473
|
+
case "area":
|
|
474
|
+
_ = {
|
|
475
|
+
...m,
|
|
476
|
+
type: "area",
|
|
477
|
+
stacked: !0
|
|
478
|
+
};
|
|
479
|
+
break;
|
|
480
|
+
case "lollipop":
|
|
481
|
+
_ = {
|
|
482
|
+
...d,
|
|
483
|
+
type: "lollipop"
|
|
484
|
+
};
|
|
485
|
+
break;
|
|
486
|
+
case "dumbbell":
|
|
487
|
+
_ = {
|
|
488
|
+
...h(),
|
|
489
|
+
type: "dumbbell"
|
|
490
|
+
};
|
|
491
|
+
break;
|
|
492
|
+
case "range-bar":
|
|
493
|
+
_ = h();
|
|
494
|
+
break;
|
|
495
|
+
case "range-area":
|
|
496
|
+
_ = {
|
|
497
|
+
...p,
|
|
498
|
+
type: "range-area",
|
|
499
|
+
series: [{
|
|
500
|
+
label: "Band",
|
|
501
|
+
values: p.series[0].values.map((e) => e * 1.15),
|
|
502
|
+
lowValues: p.series[0].values.map((e) => e * .85)
|
|
503
|
+
}]
|
|
504
|
+
};
|
|
505
|
+
break;
|
|
506
|
+
case "pareto":
|
|
507
|
+
_ = {
|
|
508
|
+
...o(u, {
|
|
509
|
+
type: "bar",
|
|
510
|
+
category: "channel",
|
|
511
|
+
value: "units"
|
|
512
|
+
}),
|
|
513
|
+
type: "pareto"
|
|
514
|
+
};
|
|
515
|
+
break;
|
|
516
|
+
case "radial-column":
|
|
517
|
+
_ = {
|
|
518
|
+
...f,
|
|
519
|
+
type: "radial-column",
|
|
520
|
+
stacked: !0
|
|
521
|
+
};
|
|
522
|
+
break;
|
|
523
|
+
case "radial-bar":
|
|
524
|
+
_ = {
|
|
525
|
+
...d,
|
|
526
|
+
type: "radial-bar"
|
|
527
|
+
};
|
|
528
|
+
break;
|
|
529
|
+
case "nightingale":
|
|
530
|
+
_ = {
|
|
531
|
+
...p,
|
|
532
|
+
type: "nightingale"
|
|
533
|
+
};
|
|
534
|
+
break;
|
|
535
|
+
case "pie":
|
|
536
|
+
_ = {
|
|
537
|
+
...d,
|
|
538
|
+
type: "pie",
|
|
539
|
+
innerRadius: .55
|
|
540
|
+
};
|
|
541
|
+
break;
|
|
542
|
+
case "treemap":
|
|
543
|
+
_ = {
|
|
544
|
+
...f,
|
|
545
|
+
type: "treemap",
|
|
546
|
+
treemap: r(f)
|
|
547
|
+
};
|
|
548
|
+
break;
|
|
549
|
+
case "sunburst":
|
|
550
|
+
_ = {
|
|
551
|
+
...f,
|
|
552
|
+
type: "sunburst",
|
|
553
|
+
tree: r(f)
|
|
554
|
+
};
|
|
555
|
+
break;
|
|
556
|
+
case "funnel":
|
|
557
|
+
_ = {
|
|
558
|
+
type: "funnel",
|
|
559
|
+
categories: [
|
|
560
|
+
"Visits",
|
|
561
|
+
"Sign-ups",
|
|
562
|
+
"Trials",
|
|
563
|
+
"Paid"
|
|
564
|
+
],
|
|
565
|
+
series: [{
|
|
566
|
+
label: "Users",
|
|
567
|
+
values: [
|
|
568
|
+
12400,
|
|
569
|
+
5100,
|
|
570
|
+
2300,
|
|
571
|
+
880
|
|
572
|
+
]
|
|
573
|
+
}]
|
|
574
|
+
};
|
|
575
|
+
break;
|
|
576
|
+
case "waterfall":
|
|
577
|
+
_ = {
|
|
578
|
+
type: "waterfall",
|
|
579
|
+
categories: [
|
|
580
|
+
"Start",
|
|
581
|
+
"Web",
|
|
582
|
+
"Retail",
|
|
583
|
+
"Partner",
|
|
584
|
+
"Returns",
|
|
585
|
+
"End"
|
|
586
|
+
],
|
|
587
|
+
series: [{
|
|
588
|
+
label: "P&L",
|
|
589
|
+
values: [
|
|
590
|
+
120,
|
|
591
|
+
48,
|
|
592
|
+
31,
|
|
593
|
+
22,
|
|
594
|
+
-19,
|
|
595
|
+
0
|
|
596
|
+
]
|
|
597
|
+
}],
|
|
598
|
+
waterfallTotals: [
|
|
599
|
+
!0,
|
|
600
|
+
!1,
|
|
601
|
+
!1,
|
|
602
|
+
!1,
|
|
603
|
+
!1,
|
|
604
|
+
!0
|
|
605
|
+
]
|
|
606
|
+
};
|
|
607
|
+
break;
|
|
608
|
+
case "sankey": {
|
|
609
|
+
let e = a(f);
|
|
610
|
+
_ = {
|
|
611
|
+
...f,
|
|
612
|
+
type: "sankey",
|
|
613
|
+
sankeyNodes: e.nodes,
|
|
614
|
+
sankeyLinks: e.links
|
|
615
|
+
};
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
case "chord": {
|
|
619
|
+
let e = a(f);
|
|
620
|
+
_ = {
|
|
621
|
+
...f,
|
|
622
|
+
type: "chord",
|
|
623
|
+
sankeyNodes: e.nodes,
|
|
624
|
+
sankeyLinks: e.links
|
|
625
|
+
};
|
|
626
|
+
break;
|
|
627
|
+
}
|
|
628
|
+
case "radar":
|
|
629
|
+
_ = {
|
|
630
|
+
...f,
|
|
631
|
+
type: "radar"
|
|
632
|
+
};
|
|
633
|
+
break;
|
|
634
|
+
case "heatmap":
|
|
635
|
+
_ = {
|
|
636
|
+
...f,
|
|
637
|
+
type: "heatmap"
|
|
638
|
+
};
|
|
639
|
+
break;
|
|
640
|
+
case "scatter":
|
|
641
|
+
_ = s(u.slice(0, 80), {
|
|
642
|
+
x: "cost",
|
|
643
|
+
y: "revenue",
|
|
644
|
+
series: "channel",
|
|
645
|
+
r: "units"
|
|
646
|
+
});
|
|
647
|
+
break;
|
|
648
|
+
case "boxplot":
|
|
649
|
+
_ = i(u, {
|
|
650
|
+
category: "region",
|
|
651
|
+
value: "revenue"
|
|
652
|
+
});
|
|
653
|
+
break;
|
|
654
|
+
case "histogram":
|
|
655
|
+
_ = e(u, {
|
|
656
|
+
value: "revenue",
|
|
657
|
+
bins: 10
|
|
658
|
+
});
|
|
659
|
+
break;
|
|
660
|
+
case "gauge":
|
|
661
|
+
_ = {
|
|
662
|
+
type: "gauge",
|
|
663
|
+
categories: [],
|
|
664
|
+
series: [],
|
|
665
|
+
gaugeValue: 72,
|
|
666
|
+
gaugeMin: 0,
|
|
667
|
+
gaugeMax: 100,
|
|
668
|
+
gaugeTarget: 80,
|
|
669
|
+
gaugeUnit: "%",
|
|
670
|
+
gaugeRanges: [
|
|
671
|
+
{
|
|
672
|
+
from: 0,
|
|
673
|
+
to: 50,
|
|
674
|
+
color: "#ef4444"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
from: 50,
|
|
678
|
+
to: 75,
|
|
679
|
+
color: "#f59e0b"
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
from: 75,
|
|
683
|
+
to: 100,
|
|
684
|
+
color: "#16a34a"
|
|
685
|
+
}
|
|
686
|
+
]
|
|
687
|
+
};
|
|
688
|
+
break;
|
|
689
|
+
case "bullet":
|
|
690
|
+
_ = {
|
|
691
|
+
type: "bullet",
|
|
692
|
+
categories: d.categories,
|
|
693
|
+
series: [{
|
|
694
|
+
label: "Revenue",
|
|
695
|
+
values: d.series[0].values,
|
|
696
|
+
targets: d.series[0].values.map((e, t) => e * (.9 + t % 3 * .1))
|
|
697
|
+
}]
|
|
698
|
+
};
|
|
699
|
+
break;
|
|
700
|
+
case "calendar": {
|
|
701
|
+
let e = o(u, {
|
|
702
|
+
type: "bar",
|
|
703
|
+
category: "day",
|
|
704
|
+
value: "units"
|
|
705
|
+
});
|
|
706
|
+
_ = {
|
|
707
|
+
...e,
|
|
708
|
+
type: "calendar",
|
|
709
|
+
calendarValues: t(e)
|
|
710
|
+
};
|
|
711
|
+
break;
|
|
712
|
+
}
|
|
713
|
+
case "stream":
|
|
714
|
+
_ = {
|
|
715
|
+
...m,
|
|
716
|
+
type: "stream",
|
|
717
|
+
stacked: !0,
|
|
718
|
+
stackOffset: "wiggle"
|
|
719
|
+
};
|
|
720
|
+
break;
|
|
721
|
+
case "candlestick":
|
|
722
|
+
_ = {
|
|
723
|
+
type: "candlestick",
|
|
724
|
+
...g()
|
|
725
|
+
};
|
|
726
|
+
break;
|
|
727
|
+
case "ohlc":
|
|
728
|
+
_ = {
|
|
729
|
+
type: "ohlc",
|
|
730
|
+
...g()
|
|
731
|
+
};
|
|
732
|
+
break;
|
|
733
|
+
default: _ = {
|
|
734
|
+
...f,
|
|
735
|
+
type: "bar"
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
return l ? {
|
|
739
|
+
..._,
|
|
740
|
+
palette: l
|
|
741
|
+
} : _;
|
|
742
|
+
}
|
|
743
|
+
function Ee(e, t, n = 150, r = 92) {
|
|
744
|
+
let i = Te(e, t);
|
|
745
|
+
return {
|
|
746
|
+
...i,
|
|
747
|
+
width: n,
|
|
748
|
+
height: r,
|
|
749
|
+
title: void 0,
|
|
750
|
+
yAxisTitle: void 0,
|
|
751
|
+
xAxisTitle: void 0,
|
|
752
|
+
referenceLines: void 0,
|
|
753
|
+
xAxis: {
|
|
754
|
+
...i.xAxis ?? {},
|
|
755
|
+
labels: !1,
|
|
756
|
+
title: void 0
|
|
757
|
+
},
|
|
758
|
+
yAxis: {
|
|
759
|
+
...i.yAxis ?? {},
|
|
760
|
+
labels: !1,
|
|
761
|
+
title: void 0
|
|
762
|
+
},
|
|
763
|
+
y2Axis: {
|
|
764
|
+
...i.y2Axis ?? {},
|
|
765
|
+
labels: !1,
|
|
766
|
+
title: void 0
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
//#endregion
|
|
771
|
+
//#region ../grid/dist/SvGridChartBuilder.svelte
|
|
772
|
+
var De = m("<button type=\"button\"><div class=\"sv-grid-chart-builder-thumb svelte-1yr3emi\"><!></div> <span class=\"sv-grid-chart-builder-card-label svelte-1yr3emi\"> </span></button>"), Oe = m("<div class=\"sv-grid-chart-builder-group svelte-1yr3emi\"> </div> <div class=\"sv-grid-chart-builder-cards svelte-1yr3emi\"></div>", 1), ke = m("<div class=\"sv-grid-chart-builder-gallery\"></div>"), Ae = m("<div class=\"sv-grid-chart-builder-form svelte-1yr3emi\"><!> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <input type=\"checkbox\" class=\"svelte-1yr3emi\"/> <small class=\"svelte-1yr3emi\"> </small></label></div>"), je = m("<option> </option>"), Me = m("<fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" class=\"svelte-1yr3emi\"/></label></fieldset>"), Ne = m("<span> </span>"), Pe = m("<input type=\"text\" class=\"svelte-1yr3emi\"/>"), Fe = m("<div><span class=\"sv-grid-chart-builder-series-name svelte-1yr3emi\"> </span> <input type=\"color\" class=\"svelte-1yr3emi\"/> <select class=\"svelte-1yr3emi\"><option> </option><option> </option><option> </option><option> </option></select> <select class=\"svelte-1yr3emi\"><option> </option><option> </option></select> <select class=\"svelte-1yr3emi\"></select> <input type=\"number\" min=\"0.5\" max=\"8\" step=\"0.5\" class=\"svelte-1yr3emi\"/> <!></div>"), Ie = m("<fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <div><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><!></div> <!></fieldset>"), Le = m("<div class=\"sv-grid-chart-builder-form svelte-1yr3emi\"><label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <select class=\"svelte-1yr3emi\"><option> </option><option> </option><option> </option><option> </option><option> </option></select></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <select class=\"svelte-1yr3emi\"><option> </option><option> </option><option> </option><option> </option><option> </option><option> </option></select></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"checkbox\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"checkbox\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <input type=\"number\" min=\"0\" step=\"10\" class=\"svelte-1yr3emi\"/></label> <fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <select class=\"svelte-1yr3emi\"><option> </option><!></select></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"checkbox\" class=\"svelte-1yr3emi\"/></label></fieldset> <!> <fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"checkbox\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span> <select class=\"svelte-1yr3emi\"><option> </option><option> </option><option> </option><option> </option></select></label></fieldset> <!> <fieldset class=\"sv-grid-chart-builder-fs svelte-1yr3emi\"><legend class=\"svelte-1yr3emi\"> </legend> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"number\" min=\"8\" max=\"32\" placeholder=\"12\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" placeholder=\"transparent\" class=\"svelte-1yr3emi\"/></label> <label class=\"sv-grid-chart-builder-row svelte-1yr3emi\"><span class=\"svelte-1yr3emi\"> </span><input type=\"text\" placeholder=\"inherit\" class=\"svelte-1yr3emi\"/></label></fieldset> <div class=\"sv-grid-chart-builder-actions svelte-1yr3emi\"><button type=\"button\" class=\"sv-grid-chart-btn\"> </button></div></div>"), Re = m("<div class=\"sv-grid-chart-builder svelte-1yr3emi\"><!></div>");
|
|
773
|
+
function ze(e, t) {
|
|
774
|
+
T(t, !0);
|
|
775
|
+
let n = F(t, "ctrl", 7), r = F(t, "open", 15, !1), i = c("type"), a = B(() => [...new Set(t.types.map((e) => e.group))]), o = B(() => n().chartSpec), s = B(() => n().chartPalette ?? void 0), d = B(() => W(o)?.series.map((e) => e.label) ?? []), m = B(() => n().chartFormat ?? {});
|
|
776
|
+
function h(e) {
|
|
777
|
+
n().chartFormat = {
|
|
778
|
+
...W(m),
|
|
779
|
+
...e
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
function _(e, t) {
|
|
783
|
+
h({ [e]: {
|
|
784
|
+
...W(m)[e] ?? {},
|
|
785
|
+
...t
|
|
786
|
+
} });
|
|
787
|
+
}
|
|
788
|
+
function y(e, t) {
|
|
789
|
+
h({ series: {
|
|
790
|
+
...W(m).series ?? {},
|
|
791
|
+
[e]: {
|
|
792
|
+
...W(m).series?.[e] ?? {},
|
|
793
|
+
...t
|
|
794
|
+
}
|
|
795
|
+
} });
|
|
796
|
+
}
|
|
797
|
+
function S(e) {
|
|
798
|
+
h({ style: {
|
|
799
|
+
...W(m).style ?? {},
|
|
800
|
+
...e
|
|
801
|
+
} });
|
|
802
|
+
}
|
|
803
|
+
let w = (e) => e.trim() === "" ? null : Number(e), ee = B(() => !!W(o)?.series.some((e) => e.axis === "right") || !!W(m).series && Object.values(W(m).series).some((e) => e?.axis === "right")), O = B(() => !!W(o) && ["bar", "area"].includes(W(o).type)), te = [
|
|
804
|
+
"circle",
|
|
805
|
+
"square",
|
|
806
|
+
"diamond",
|
|
807
|
+
"triangle",
|
|
808
|
+
"cross",
|
|
809
|
+
"none"
|
|
810
|
+
], I = [
|
|
811
|
+
"number",
|
|
812
|
+
"currency",
|
|
813
|
+
"percent",
|
|
814
|
+
"compact"
|
|
815
|
+
];
|
|
816
|
+
Se(e, {
|
|
817
|
+
get title() {
|
|
818
|
+
return t.messages.chartBuilderTitle;
|
|
819
|
+
},
|
|
820
|
+
size: "lg",
|
|
821
|
+
get open() {
|
|
822
|
+
return r();
|
|
823
|
+
},
|
|
824
|
+
set open(e) {
|
|
825
|
+
r(e);
|
|
826
|
+
},
|
|
827
|
+
children: (e, r) => {
|
|
828
|
+
var c = Re(), T = R(c);
|
|
829
|
+
{
|
|
830
|
+
let e = (e, r = E) => {
|
|
831
|
+
var i = N(), c = f(i), g = (e) => {
|
|
832
|
+
var r = ke();
|
|
833
|
+
H(r, 20, () => W(a), (e) => e, (e, r) => {
|
|
834
|
+
var i = Oe(), a = f(i), o = x(a, !0), c = b(a, 2);
|
|
835
|
+
H(c, 21, () => t.types.filter((e) => e.group === r), (e) => e.value, (e, t) => {
|
|
836
|
+
var r = De();
|
|
837
|
+
let i;
|
|
838
|
+
var a = R(r), o = R(a);
|
|
839
|
+
{
|
|
840
|
+
let e = B(() => Ee(W(t).value, W(s)));
|
|
841
|
+
X(o, {
|
|
842
|
+
get spec() {
|
|
843
|
+
return W(e);
|
|
844
|
+
},
|
|
845
|
+
interactive: !1,
|
|
846
|
+
legend: !1,
|
|
847
|
+
toolbar: !1,
|
|
848
|
+
announce: !1
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
z(a);
|
|
852
|
+
var c = b(a, 2), u = x(c, !0);
|
|
853
|
+
z(r), v(() => {
|
|
854
|
+
i = ne(r, 1, "sv-grid-chart-builder-card svelte-1yr3emi", null, i, { "is-selected": n().chartType === W(t).value }), k(r, "aria-pressed", n().chartType === W(t).value), k(r, "title", W(t).label), P(u, W(t).label);
|
|
855
|
+
}), p("click", r, () => n().chartType = W(t).value), l(e, r);
|
|
856
|
+
}), z(c), v(() => P(o, r)), l(e, i);
|
|
857
|
+
}), z(r), l(e, r);
|
|
858
|
+
}, T = (e) => {
|
|
859
|
+
var r = Ae(), i = R(r);
|
|
860
|
+
Z(i, {
|
|
861
|
+
get ctrl() {
|
|
862
|
+
return n();
|
|
863
|
+
},
|
|
864
|
+
get messages() {
|
|
865
|
+
return t.messages;
|
|
866
|
+
},
|
|
867
|
+
scope: "builder"
|
|
868
|
+
});
|
|
869
|
+
var a = b(i, 2), o = R(a), s = x(o, !0), c = b(o, 2);
|
|
870
|
+
D(c);
|
|
871
|
+
var u = b(c, 2), d = x(u, !0);
|
|
872
|
+
z(a), z(r), v((e) => {
|
|
873
|
+
P(s, t.messages.chartBuilderLinked), L(c, !n().chartFrozen), P(d, e);
|
|
874
|
+
}, [() => n().chartFrozen ? Q(t.messages.chartBuilderFrozenAt, { time: new Date(n().chartFrozen.at).toLocaleTimeString() }) : t.messages.chartBuilderFollows]), p("change", c, (e) => e.currentTarget.checked ? n().unfreezeChart() : n().freezeChart()), l(e, r);
|
|
875
|
+
}, M = (e) => {
|
|
876
|
+
var r = Le(), i = R(r), a = R(i), s = x(a, !0), c = b(a);
|
|
877
|
+
D(c), z(i);
|
|
878
|
+
var f = b(i, 2), g = R(f), T = x(g, !0), E = b(g);
|
|
879
|
+
D(E), z(f);
|
|
880
|
+
var M = b(f, 2), N = R(M), F = x(N, !0), V = b(N);
|
|
881
|
+
D(V), z(M);
|
|
882
|
+
var U = b(M, 2), G = R(U), K = x(G, !0), q = b(G, 2), J = R(q), Y = x(J, !0);
|
|
883
|
+
J.value = J.__value = "bottom";
|
|
884
|
+
var X = b(J), Z = x(X, !0);
|
|
885
|
+
X.value = X.__value = "top";
|
|
886
|
+
var $ = b(X), re = x($, !0);
|
|
887
|
+
$.value = $.__value = "left";
|
|
888
|
+
var ie = b($), ae = x(ie, !0);
|
|
889
|
+
ie.value = ie.__value = "right";
|
|
890
|
+
var oe = b(ie), se = x(oe, !0);
|
|
891
|
+
oe.value = oe.__value = "none", z(q);
|
|
892
|
+
var ce;
|
|
893
|
+
A(q), z(U);
|
|
894
|
+
var le = b(U, 2), ue = R(le), de = x(ue, !0), fe = b(ue, 2), pe = R(fe), me = x(pe, !0);
|
|
895
|
+
pe.value = pe.__value = "auto";
|
|
896
|
+
var he = b(pe), ge = x(he, !0);
|
|
897
|
+
he.value = he.__value = "top";
|
|
898
|
+
var _e = b(he), ve = x(_e, !0);
|
|
899
|
+
_e.value = _e.__value = "outside";
|
|
900
|
+
var ye = b(_e), be = x(ye, !0);
|
|
901
|
+
ye.value = ye.__value = "inside";
|
|
902
|
+
var xe = b(ye), Se = x(xe, !0);
|
|
903
|
+
xe.value = xe.__value = "center";
|
|
904
|
+
var Ce = b(xe), we = x(Ce, !0);
|
|
905
|
+
Ce.value = Ce.__value = "none", z(fe);
|
|
906
|
+
var Te;
|
|
907
|
+
A(fe), z(le);
|
|
908
|
+
var Ee = b(le, 2), De = R(Ee), Oe = x(De, !0), ke = b(De);
|
|
909
|
+
D(ke), z(Ee);
|
|
910
|
+
var Ae = b(Ee, 2), Re = R(Ae), ze = x(Re, !0), Be = b(Re);
|
|
911
|
+
D(Be), z(Ae);
|
|
912
|
+
var Ve = b(Ae, 2), He = R(Ve), Ue = x(He, !0), We = b(He, 2);
|
|
913
|
+
D(We), z(Ve);
|
|
914
|
+
var Ge = b(Ve, 2), Ke = R(Ge), qe = x(Ke, !0), Je = b(Ke, 2), Ye = R(Je), Xe = x(Ye, !0), Ze = b(Ye);
|
|
915
|
+
D(Ze), z(Je);
|
|
916
|
+
var Qe = b(Je, 2), $e = R(Qe), et = x($e, !0), tt = b($e);
|
|
917
|
+
D(tt), z(Qe);
|
|
918
|
+
var nt = b(Qe, 2), rt = R(nt), it = x(rt, !0), at = b(rt);
|
|
919
|
+
D(at), z(nt);
|
|
920
|
+
var ot = b(nt, 2), st = R(ot), ct = x(st, !0), lt = b(st, 2), ut = R(lt), dt = x(ut, !0);
|
|
921
|
+
ut.value = ut.__value = "";
|
|
922
|
+
var ft = b(ut);
|
|
923
|
+
H(ft, 16, () => I, (e) => e, (e, t) => {
|
|
924
|
+
var n = je(), r = x(n, !0), i = {};
|
|
925
|
+
v(() => {
|
|
926
|
+
P(r, t), i !== (i = t) && (n.value = (n.__value = i) ?? "");
|
|
927
|
+
}), l(e, n);
|
|
928
|
+
}), z(lt);
|
|
929
|
+
var pt;
|
|
930
|
+
A(lt), z(ot);
|
|
931
|
+
var mt = b(ot, 2), ht = R(mt), gt = x(ht, !0), _t = b(ht);
|
|
932
|
+
D(_t), z(mt), z(Ge);
|
|
933
|
+
var vt = b(Ge, 2), yt = (e) => {
|
|
934
|
+
var n = Me(), r = R(n), i = x(r, !0), a = b(r, 2), o = R(a), s = x(o, !0), c = b(o);
|
|
935
|
+
D(c), z(a);
|
|
936
|
+
var u = b(a, 2), d = R(u), f = x(d, !0), h = b(d);
|
|
937
|
+
D(h), z(u);
|
|
938
|
+
var g = b(u, 2), y = R(g), S = x(y, !0), C = b(y);
|
|
939
|
+
D(C), z(g), z(n), v(() => {
|
|
940
|
+
P(i, t.messages.chartBuilderRightAxis), P(s, t.messages.chartBuilderTitleField), j(c, W(m).y2Axis?.title ?? ""), P(f, t.messages.chartBuilderMin), j(h, W(m).y2Axis?.min ?? ""), k(h, "placeholder", t.messages.chartBuilderAuto), P(S, t.messages.chartBuilderMax), j(C, W(m).y2Axis?.max ?? ""), k(C, "placeholder", t.messages.chartBuilderAuto);
|
|
941
|
+
}), p("input", c, (e) => _("y2Axis", { title: e.currentTarget.value })), p("change", h, (e) => _("y2Axis", { min: w(e.currentTarget.value) })), p("change", C, (e) => _("y2Axis", { max: w(e.currentTarget.value) })), l(e, n);
|
|
942
|
+
};
|
|
943
|
+
u(vt, (e) => {
|
|
944
|
+
W(ee) && e(yt);
|
|
945
|
+
});
|
|
946
|
+
var bt = b(vt, 2), xt = R(bt), St = x(xt, !0), Ct = b(xt, 2), wt = R(Ct), Tt = x(wt, !0), Et = b(wt);
|
|
947
|
+
D(Et), z(Ct);
|
|
948
|
+
var Dt = b(Ct, 2), Ot = R(Dt), kt = x(Ot, !0), At = b(Ot);
|
|
949
|
+
D(At), z(Dt);
|
|
950
|
+
var jt = b(Dt, 2), Mt = R(jt), Nt = x(Mt, !0), Pt = b(Mt, 2), Ft = R(Pt), It = x(Ft, !0);
|
|
951
|
+
Ft.value = Ft.__value = "auto";
|
|
952
|
+
var Lt = b(Ft), Rt = x(Lt, !0);
|
|
953
|
+
Lt.value = Lt.__value = "0";
|
|
954
|
+
var zt = b(Lt), Bt = x(zt, !0);
|
|
955
|
+
zt.value = zt.__value = "-45";
|
|
956
|
+
var Vt = b(zt), Ht = x(Vt, !0);
|
|
957
|
+
Vt.value = Vt.__value = "-90", z(Pt);
|
|
958
|
+
var Ut;
|
|
959
|
+
A(Pt), z(jt), z(bt);
|
|
960
|
+
var Wt = b(bt, 2), Gt = (e) => {
|
|
961
|
+
var n = Ie(), r = R(n), i = x(r, !0), a = b(r, 2);
|
|
962
|
+
let s;
|
|
963
|
+
var c = R(a), f = x(c, !0), h = b(c), g = x(h, !0), _ = b(h), S = x(_, !0), w = b(_), T = x(w, !0), ee = b(w), E = x(ee, !0), M = b(ee), N = x(M, !0), F = b(M), I = (e) => {
|
|
964
|
+
var n = Ne(), r = x(n, !0);
|
|
965
|
+
v(() => P(r, t.messages.chartBuilderStack)), l(e, n);
|
|
966
|
+
};
|
|
967
|
+
u(F, (e) => {
|
|
968
|
+
W(O) && e(I);
|
|
969
|
+
}), z(a);
|
|
970
|
+
var L = b(a, 2);
|
|
971
|
+
H(L, 16, () => W(d), (e) => e, (e, n) => {
|
|
972
|
+
let r = B(() => W(m).series?.[n] ?? {}), i = B(() => W(o)?.series.find((e) => e.label === n));
|
|
973
|
+
var a = Fe();
|
|
974
|
+
let s;
|
|
975
|
+
var c = R(a), d = x(c, !0), f = b(c, 2);
|
|
976
|
+
D(f);
|
|
977
|
+
var h = b(f, 2), g = R(h), _ = x(g, !0);
|
|
978
|
+
g.value = g.__value = "";
|
|
979
|
+
var S = b(g), w = x(S, !0);
|
|
980
|
+
S.value = S.__value = "bar";
|
|
981
|
+
var T = b(S), ee = x(T, !0);
|
|
982
|
+
T.value = T.__value = "line";
|
|
983
|
+
var E = b(T), M = x(E, !0);
|
|
984
|
+
E.value = E.__value = "area", z(h);
|
|
985
|
+
var N;
|
|
986
|
+
A(h);
|
|
987
|
+
var F = b(h, 2), I = R(F), L = x(I, !0);
|
|
988
|
+
I.value = I.__value = "left";
|
|
989
|
+
var V = b(I), U = x(V, !0);
|
|
990
|
+
V.value = V.__value = "right", z(F);
|
|
991
|
+
var G;
|
|
992
|
+
A(F);
|
|
993
|
+
var K = b(F, 2);
|
|
994
|
+
H(K, 20, () => te, (e) => e, (e, t) => {
|
|
995
|
+
var n = je(), r = x(n, !0), i = {};
|
|
996
|
+
v(() => {
|
|
997
|
+
P(r, t), i !== (i = t) && (n.value = (n.__value = i) ?? "");
|
|
998
|
+
}), l(e, n);
|
|
999
|
+
}), z(K);
|
|
1000
|
+
var q;
|
|
1001
|
+
A(K);
|
|
1002
|
+
var J = b(K, 2);
|
|
1003
|
+
D(J);
|
|
1004
|
+
var Y = b(J, 2), X = (e) => {
|
|
1005
|
+
var a = Pe();
|
|
1006
|
+
D(a), v((e) => {
|
|
1007
|
+
j(a, W(r).stack ?? W(i)?.stack ?? ""), k(a, "placeholder", t.messages.chartBuilderStackPlaceholder), k(a, "aria-label", e);
|
|
1008
|
+
}, [() => Q(t.messages.chartBuilderSeriesStackLabel, { series: n })]), p("change", a, (e) => y(n, { stack: e.currentTarget.value.trim() })), l(e, a);
|
|
1009
|
+
};
|
|
1010
|
+
u(Y, (e) => {
|
|
1011
|
+
W(O) && e(X);
|
|
1012
|
+
}), z(a), v((e, o, l, u, p) => {
|
|
1013
|
+
s = ne(a, 1, "sv-grid-chart-builder-series svelte-1yr3emi", null, s, { "has-stack": W(O) }), k(a, "data-series", n), k(c, "title", n), P(d, n), j(f, W(r).color ?? W(i)?.color ?? "#2563eb"), k(f, "aria-label", e), k(h, "aria-label", o), P(_, t.messages.chartBuilderChartType), P(w, t.messages.chartBuilderBar), P(ee, t.messages.chartBuilderLine), P(M, t.messages.chartBuilderArea), N !== (N = W(r).type ?? W(i)?.type ?? "") && (h.value = (h.__value = N) ?? "", C(h, N)), k(F, "aria-label", l), P(L, t.messages.chartBuilderLeft), P(U, t.messages.chartBuilderRight), G !== (G = W(r).axis ?? W(i)?.axis ?? "left") && (F.value = (F.__value = G) ?? "", C(F, G)), k(K, "aria-label", u), q !== (q = W(r).marker ?? "circle") && (K.value = (K.__value = q) ?? "", C(K, q)), j(J, W(r).strokeWidth ?? 2), k(J, "aria-label", p);
|
|
1014
|
+
}, [
|
|
1015
|
+
() => Q(t.messages.chartBuilderSeriesColorLabel, { series: n }),
|
|
1016
|
+
() => Q(t.messages.chartBuilderSeriesTypeLabel, { series: n }),
|
|
1017
|
+
() => Q(t.messages.chartBuilderSeriesAxisLabel, { series: n }),
|
|
1018
|
+
() => Q(t.messages.chartBuilderSeriesMarkerLabel, { series: n }),
|
|
1019
|
+
() => Q(t.messages.chartBuilderSeriesWidthLabel, { series: n })
|
|
1020
|
+
]), p("input", f, (e) => y(n, { color: e.currentTarget.value })), p("change", h, (e) => y(n, { type: e.currentTarget.value || void 0 })), p("change", F, (e) => y(n, { axis: e.currentTarget.value })), p("change", K, (e) => y(n, { marker: e.currentTarget.value })), p("change", J, (e) => y(n, { strokeWidth: Number(e.currentTarget.value) || 2 })), l(e, a);
|
|
1021
|
+
}), z(n), v(() => {
|
|
1022
|
+
P(i, t.messages.chartBuilderSeries), s = ne(a, 1, "sv-grid-chart-builder-series-head svelte-1yr3emi", null, s, { "has-stack": W(O) }), P(f, t.messages.chartBuilderSeries), P(g, t.messages.chartBuilderColor), P(S, t.messages.chartBuilderSeriesType), P(T, t.messages.chartBuilderAxis), P(E, t.messages.chartBuilderMarker), P(N, t.messages.chartBuilderWidth);
|
|
1023
|
+
}), l(e, n);
|
|
1024
|
+
};
|
|
1025
|
+
u(Wt, (e) => {
|
|
1026
|
+
W(d).length && e(Gt);
|
|
1027
|
+
});
|
|
1028
|
+
var Kt = b(Wt, 2), qt = R(Kt), Jt = x(qt, !0), Yt = b(qt, 2), Xt = R(Yt), Zt = x(Xt, !0), Qt = b(Xt);
|
|
1029
|
+
D(Qt), z(Yt);
|
|
1030
|
+
var $t = b(Yt, 2), en = R($t), tn = x(en, !0), nn = b(en);
|
|
1031
|
+
D(nn), z($t);
|
|
1032
|
+
var rn = b($t, 2), an = R(rn), on = x(an, !0), sn = b(an);
|
|
1033
|
+
D(sn), z(rn);
|
|
1034
|
+
var cn = b(rn, 2), ln = R(cn), un = x(ln, !0), dn = b(ln);
|
|
1035
|
+
D(dn), z(cn), z(Kt);
|
|
1036
|
+
var fn = b(Kt, 2), pn = R(fn), mn = x(pn, !0);
|
|
1037
|
+
z(fn), z(r), v((e) => {
|
|
1038
|
+
P(s, t.messages.chartBuilderTitleField), j(c, W(m).title ?? ""), P(T, t.messages.chartBuilderSubtitle), j(E, W(m).subtitle ?? ""), P(F, t.messages.chartBuilderCaption), j(V, W(m).caption ?? ""), P(K, t.messages.chartBuilderLegend), P(Y, t.messages.chartLegendBottom), P(Z, t.messages.chartLegendTop), P(re, t.messages.chartLegendLeft), P(ae, t.messages.chartLegendRight), P(se, t.messages.chartLegendHidden), ce !== (ce = W(m).legend === !1 ? "none" : W(m).legend ?? "bottom") && (q.value = (q.__value = ce) ?? "", C(q, ce)), P(de, t.messages.chartBuilderDataLabels), P(me, t.messages.chartBuilderPanelSetting), P(ge, t.messages.chartLabelsTop), P(ve, t.messages.chartLabelsOutside), P(be, t.messages.chartLabelsInside), P(Se, t.messages.chartLabelsCenter), P(we, t.messages.chartLabelsHidden), Te !== (Te = W(m).dataLabels === null ? "none" : W(m).dataLabels ?? "auto") && (fe.value = (fe.__value = Te) ?? "", C(fe, Te)), P(Oe, t.messages.chartBuilderSeriesLabels), L(ke, W(m).seriesLabels === !0), P(ze, t.messages.chartBuilderCrosshairLabels), L(Be, W(m).crosshairLabels !== !1), k(Ve, "title", t.messages.chartBuilderCompactBelowTitle), P(Ue, t.messages.chartBuilderCompactBelow), j(We, W(m).compactBelow ?? ""), k(We, "placeholder", t.messages.chartBuilderOff), P(qe, t.messages.chartBuilderValueAxis), P(Xe, t.messages.chartBuilderTitleField), j(Ze, W(m).yAxis?.title ?? ""), P(et, t.messages.chartBuilderMin), j(tt, W(m).yAxis?.min ?? ""), k(tt, "placeholder", t.messages.chartBuilderAuto), P(it, t.messages.chartBuilderMax), j(at, W(m).yAxis?.max ?? ""), k(at, "placeholder", t.messages.chartBuilderAuto), P(ct, t.messages.chartFormat), P(dt, t.messages.chartBuilderPanelSetting), pt !== (pt = W(m).yAxis?.format ?? "") && (lt.value = (lt.__value = pt) ?? "", C(lt, pt)), P(gt, t.messages.chartBuilderGridLines), L(_t, W(m).yAxis?.gridLines !== !1), P(St, t.messages.chartBuilderCategoryAxis), P(Tt, t.messages.chartBuilderTitleField), j(Et, W(m).xAxis?.title ?? ""), P(kt, t.messages.chartBuilderGridLines), L(At, W(m).xAxis?.gridLines === !0), P(Nt, t.messages.chartBuilderAxisLabels), P(It, t.messages.chartBuilderLabelsAuto), P(Rt, t.messages.chartBuilderLabelsHorizontal), P(Bt, t.messages.chartBuilderLabelsTilted), P(Ht, t.messages.chartBuilderLabelsVertical), Ut !== (Ut = e) && (Pt.value = (Pt.__value = Ut) ?? "", C(Pt, Ut)), P(Jt, t.messages.chartBuilderStyle), P(Zt, t.messages.chartBuilderFontSize), j(Qt, W(m).style?.fontSize ?? ""), P(tn, t.messages.chartBuilderFontFamily), j(nn, W(m).style?.fontFamily ?? ""), P(on, t.messages.chartBuilderBackground), j(sn, W(m).style?.background ?? ""), P(un, t.messages.chartBuilderTextColor), j(dn, W(m).style?.textColor ?? ""), P(mn, t.messages.chartBuilderResetFormat);
|
|
1039
|
+
}, [() => W(m).xAxis?.labelRotation === void 0 ? "auto" : String(W(m).xAxis.labelRotation)]), p("input", c, (e) => h({ title: e.currentTarget.value })), p("input", E, (e) => h({ subtitle: e.currentTarget.value })), p("input", V, (e) => h({ caption: e.currentTarget.value })), p("change", q, (e) => h({ legend: e.currentTarget.value !== "none" && e.currentTarget.value })), p("change", fe, (e) => h({ dataLabels: e.currentTarget.value === "auto" ? void 0 : e.currentTarget.value === "none" ? null : e.currentTarget.value })), p("change", ke, (e) => h({ seriesLabels: e.currentTarget.checked })), p("change", Be, (e) => h({ crosshairLabels: e.currentTarget.checked })), p("change", We, (e) => h({ compactBelow: w(e.currentTarget.value) })), p("input", Ze, (e) => _("yAxis", { title: e.currentTarget.value })), p("change", tt, (e) => _("yAxis", { min: w(e.currentTarget.value) })), p("change", at, (e) => _("yAxis", { max: w(e.currentTarget.value) })), p("change", lt, (e) => _("yAxis", { format: e.currentTarget.value || void 0 })), p("change", _t, (e) => _("yAxis", { gridLines: e.currentTarget.checked })), p("input", Et, (e) => _("xAxis", { title: e.currentTarget.value })), p("change", At, (e) => _("xAxis", { gridLines: e.currentTarget.checked })), p("change", Pt, (e) => _("xAxis", { labelRotation: e.currentTarget.value === "auto" ? "auto" : Number(e.currentTarget.value) })), p("change", Qt, (e) => S({ fontSize: w(e.currentTarget.value) ?? void 0 })), p("input", nn, (e) => S({ fontFamily: e.currentTarget.value || void 0 })), p("input", sn, (e) => S({ background: e.currentTarget.value || void 0 })), p("input", dn, (e) => S({ textColor: e.currentTarget.value || void 0 })), p("click", pn, () => n().chartFormat = null), l(e, r);
|
|
1040
|
+
};
|
|
1041
|
+
u(c, (e) => {
|
|
1042
|
+
r() === "type" ? e(g) : r() === "data" ? e(T, 1) : e(M, -1);
|
|
1043
|
+
}), l(e, i);
|
|
1044
|
+
}, r = B(() => [
|
|
1045
|
+
{
|
|
1046
|
+
id: "type",
|
|
1047
|
+
label: t.messages.chartBuilderTabType
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
id: "data",
|
|
1051
|
+
label: t.messages.chartBuilderTabData
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
id: "format",
|
|
1055
|
+
label: t.messages.chartBuilderTabFormat
|
|
1056
|
+
}
|
|
1057
|
+
]);
|
|
1058
|
+
he(T, {
|
|
1059
|
+
get tabs() {
|
|
1060
|
+
return W(r);
|
|
1061
|
+
},
|
|
1062
|
+
get ariaLabel() {
|
|
1063
|
+
return t.messages.chartBuilderTitle;
|
|
1064
|
+
},
|
|
1065
|
+
get value() {
|
|
1066
|
+
return W(i);
|
|
1067
|
+
},
|
|
1068
|
+
set value(e) {
|
|
1069
|
+
g(i, e, !0);
|
|
1070
|
+
},
|
|
1071
|
+
panel: e,
|
|
1072
|
+
$$slots: { panel: !0 }
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
z(c), l(e, c);
|
|
1076
|
+
},
|
|
1077
|
+
$$slots: { default: !0 }
|
|
1078
|
+
}), M();
|
|
1079
|
+
}
|
|
1080
|
+
d([
|
|
1081
|
+
"click",
|
|
1082
|
+
"change",
|
|
1083
|
+
"input"
|
|
1084
|
+
]);
|
|
1085
|
+
//#endregion
|
|
1086
|
+
export { ze as default };
|