@svgrid/grid-wc 3.0.32 → 3.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{GridMenus-N2KRdNsI.js → GridMenus-T9EoG8Ww.js} +2 -2
- package/dist/{SvDateRangeInput-DHTz33L2.js → SvDateRangeInput-Cpss2SsG.js} +2 -1
- package/dist/SvGridCellEditor-D8UIbCRd.js +584 -0
- package/dist/{SvGridChart-B1Ro43s3.js → SvGridChart-Cjay-so9.js} +303 -302
- package/dist/{SvGridChartBuilder-BGWhm8hq.js → SvGridChartBuilder-Ca3M_gpQ.js} +3 -3
- package/dist/{SvGridChartPanel-t_UgLw4I.js → SvGridChartPanel-BvNxBEeX.js} +5 -5
- package/dist/{SvGridChartView-EbUF0BKk.js → SvGridChartView-BVS7Ac61.js} +2 -2
- package/dist/chart/{chart-export-BHGuh_kZ.js → chart-export-C43UPY8D.js} +37 -30
- package/dist/chart/{chart-export-pdf-BjkkIEkE.js → chart-export-pdf-C0_y8glC.js} +1 -1
- package/dist/chart/sv-chart-element.js +3 -3
- package/dist/{chart-export-pdf-BSDueOD-.js → chart-export-pdf-CBZNCRFi.js} +1 -1
- package/dist/csv-injection-Ce26_TOb.js +8 -0
- package/dist/{shadow/export-format-CWEVxATj.js → export-format-DW7bHqeY.js} +56 -55
- package/dist/shadow/{GridMenus-De7ebuLc.js → GridMenus--Qxo5g1j.js} +2 -2
- package/dist/shadow/{SvDateRangeInput-DHTz33L2.js → SvDateRangeInput-Cpss2SsG.js} +2 -1
- package/dist/shadow/SvGridCellEditor-D8UIbCRd.js +584 -0
- package/dist/shadow/{SvGridChart-B1Ro43s3.js → SvGridChart-Cjay-so9.js} +303 -302
- package/dist/shadow/{SvGridChartBuilder-BGWhm8hq.js → SvGridChartBuilder-Ca3M_gpQ.js} +3 -3
- package/dist/shadow/{SvGridChartPanel-t_UgLw4I.js → SvGridChartPanel-BvNxBEeX.js} +5 -5
- package/dist/shadow/{SvGridChartView-EbUF0BKk.js → SvGridChartView-BVS7Ac61.js} +2 -2
- package/dist/shadow/{chart-export-pdf-BSDueOD-.js → chart-export-pdf-CBZNCRFi.js} +1 -1
- package/dist/shadow/csv-injection-Ce26_TOb.js +8 -0
- package/dist/{export-format-CWEVxATj.js → shadow/export-format-DW7bHqeY.js} +56 -55
- package/dist/shadow/sv-grid-shadow-element.js +1250 -1235
- package/dist/sv-grid-element.js +1233 -1218
- package/package.json +3 -3
- package/dist/SvGridCellEditor-6ZyGKeXd.js +0 -582
- package/dist/shadow/SvGridCellEditor-6ZyGKeXd.js +0 -582
|
@@ -1,12 +1,12 @@
|
|
|
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__||{})["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:SvGridChartBuilder-BGWhm8hq.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:SvGridChartBuilder-BGWhm8hq.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
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__||{})["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:SvGridChartBuilder-Ca3M_gpQ.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:SvGridChartBuilder-Ca3M_gpQ.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
2
|
import { c as e, f as t, l as n, m as r, o as i, p as a, s as o, u as s } from "./chart-xrT6cLA5.js";
|
|
3
3
|
import { $ as c, A as l, D as u, I as d, L as f, M as p, O as m, Q as h, R as g, U as _, W as v, X as y, Y as b, Z as x, _ as S, a as C, c as w, d as T, et as E, f as D, g as O, h as k, it as A, j, k as M, l as N, n as P, nt as F, o as ee, ot as I, p as L, rt as R, st as z, tt as B, u as V, w as te, x as H, y as ne, z as U } from "./client-DtIdusS4.js";
|
|
4
4
|
import { i as W } from "./editor-contract-peBDxir_.js";
|
|
5
5
|
import { r as G } from "./popover-WsGlvtQv.js";
|
|
6
6
|
import { t as K } from "./dismissable-CQ6XFXsk.js";
|
|
7
7
|
import { n as q, t as J } from "./focus-trap-Dbb2tJxb.js";
|
|
8
|
-
import { t as Y } from "./SvGridChart-
|
|
9
|
-
import { n as X, t as Z } from "./SvGridChartPanel-
|
|
8
|
+
import { t as Y } from "./SvGridChart-Cjay-so9.js";
|
|
9
|
+
import { n as X, t as Z } from "./SvGridChartPanel-BvNxBEeX.js";
|
|
10
10
|
//#region ../grid/dist/a11y/scroll-lock.js
|
|
11
11
|
var Q = 0, re = "", $ = "";
|
|
12
12
|
function ie() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(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-
|
|
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-BvNxBEeX.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:SvGridChartPanel-BvNxBEeX.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
2
|
import { S as e, h as t } from "./chart-xrT6cLA5.js";
|
|
3
3
|
import { $ as n, A as r, C as i, D as a, F as o, I as s, L as c, M as l, N as u, R as d, S as f, U as p, W as m, X as h, Y as g, Z as _, _ as v, a as y, d as b, et as x, f as S, g as C, h as w, i as T, it as ee, j as te, k as E, n as D, nt as O, o as ne, ot as k, p as A, r as re, rt as ie, s as ae, v as oe, w as j, y as M, z as N } from "./client-DtIdusS4.js";
|
|
4
4
|
import { a as P } from "./editor-contract-peBDxir_.js";
|
|
5
|
-
import { a as se, n as ce, o as le, r as ue, s as de, t as fe } from "./SvGridChart-
|
|
5
|
+
import { a as se, n as ce, o as le, r as ue, s as de, t as fe } from "./SvGridChart-Cjay-so9.js";
|
|
6
6
|
//#region ../../node_modules/.pnpm/svelte@5.55.9_@typescript-eslint+types@8.67.0/node_modules/svelte/src/transition/index.js
|
|
7
7
|
function F(e) {
|
|
8
8
|
let t = e - 1;
|
|
@@ -1203,7 +1203,7 @@ function Et(e, t) {
|
|
|
1203
1203
|
n(l, !0);
|
|
1204
1204
|
return;
|
|
1205
1205
|
}
|
|
1206
|
-
import("./SvGridChartBuilder-
|
|
1206
|
+
import("./SvGridChartBuilder-Ca3M_gpQ.js").then((e) => {
|
|
1207
1207
|
n(s, e.default, !0), n(l, !0);
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
@@ -1285,11 +1285,11 @@ function Et(e, t) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
async function Ne() {
|
|
1287
1287
|
let e = W();
|
|
1288
|
-
n(U, !1), e && await (await import("./chart-export-pdf-
|
|
1288
|
+
n(U, !1), e && await (await import("./chart-export-pdf-CBZNCRFi.js")).downloadChartPdf(e, "chart.pdf", { title: N(R)?.title ?? v().charts[v().activeChartIndex]?.title });
|
|
1289
1289
|
}
|
|
1290
1290
|
async function Pe() {
|
|
1291
1291
|
let e = W();
|
|
1292
|
-
n(U, !1), e && (await import("./chart-export-pdf-
|
|
1292
|
+
n(U, !1), e && (await import("./chart-export-pdf-CBZNCRFi.js")).printChart(e, { title: N(R)?.title ?? v().charts[v().activeChartIndex]?.title });
|
|
1293
1293
|
}
|
|
1294
1294
|
async function Fe() {
|
|
1295
1295
|
let e = W();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(){try{var c=".sv-grid-chart-view.svelte-733vyy{box-sizing:border-box;width:100%;height:100%;min-height:0;display:grid}\n",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:SvGridChartView-
|
|
1
|
+
(function(){try{var c=".sv-grid-chart-view.svelte-733vyy{box-sizing:border-box;width:100%;height:100%;min-height:0;display:grid}\n",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:SvGridChartView-BVS7Ac61.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:SvGridChartView-BVS7Ac61.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
2
|
import { s as e } from "./chart-xrT6cLA5.js";
|
|
3
3
|
import { A as t, M as n, Y as r, it as i, nt as a, ot as o, rt as s, z as c } from "./client-DtIdusS4.js";
|
|
4
|
-
import { t as l } from "./SvGridChart-
|
|
4
|
+
import { t as l } from "./SvGridChart-Cjay-so9.js";
|
|
5
5
|
//#region ../grid/dist/SvGridChartView.svelte
|
|
6
6
|
var u = n("<div class=\"sv-grid-chart-view svelte-733vyy\"><!></div>");
|
|
7
7
|
function d(n, d) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region ../grid/dist/csv-injection.js
|
|
2
|
+
var e = /^[+-]\s*\p{Sc}?\s*\d[\d.,\s ]*(?:e[+-]?\d+)?\s*%?\s*\p{Sc}?$/iu;
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = t.charCodeAt(0);
|
|
5
|
+
return n !== 61 && n !== 43 && n !== 45 && n !== 64 && n !== 9 && n !== 13 || (n === 43 || n === 45) && e.test(t) ? t : "'" + t;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { t };
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { a as e, i as t, n, t as r } from "./cell-formatting-5uEa4Y_0.js";
|
|
2
|
+
import { t as i } from "./csv-injection-Ce26_TOb.js";
|
|
2
3
|
import "./conditional-formatting-LFQdw2jz.js";
|
|
3
4
|
//#region ../grid/dist/export-format.js
|
|
4
|
-
function
|
|
5
|
+
function a(e) {
|
|
5
6
|
return t(e);
|
|
6
7
|
}
|
|
7
|
-
function
|
|
8
|
+
function o(e) {
|
|
8
9
|
let t = (e, t = 2) => String(Math.abs(e)).padStart(t, "0"), n = -e.getTimezoneOffset(), r = n < 0 ? "-" : "+", i = e.getFullYear();
|
|
9
10
|
return (i < 0 ? "-" + t(i, 6) : t(i, 4)) + `-${t(e.getMonth() + 1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}:${t(e.getSeconds())}.${t(e.getMilliseconds(), 3)}${r}${t(Math.floor(Math.abs(n) / 60))}:${t(Math.abs(n) % 60)}`;
|
|
10
11
|
}
|
|
11
|
-
function
|
|
12
|
+
function s(t, i) {
|
|
12
13
|
if (t == null) return "";
|
|
13
|
-
if (!
|
|
14
|
-
if (
|
|
15
|
-
type:
|
|
16
|
-
locales:
|
|
17
|
-
currency:
|
|
18
|
-
valueIsPercentPoints:
|
|
19
|
-
options:
|
|
14
|
+
if (!i) return String(t);
|
|
15
|
+
if (i.type === "number" || i.type === "currency" || i.type === "percent") return r(t, {
|
|
16
|
+
type: i.type,
|
|
17
|
+
locales: i.locales,
|
|
18
|
+
currency: i.type === "currency" ? i.currency ?? "USD" : void 0,
|
|
19
|
+
valueIsPercentPoints: i.type === "percent" ? i.valueIsPercentPoints : void 0,
|
|
20
|
+
options: i.options
|
|
20
21
|
});
|
|
21
|
-
if (
|
|
22
|
-
let r =
|
|
22
|
+
if (i.type === "date" || i.type === "datetime") {
|
|
23
|
+
let r = a(t);
|
|
23
24
|
if (r) {
|
|
24
|
-
let t = e(
|
|
25
|
+
let t = e(i.pattern, i.type), a = t || i.options ? {
|
|
25
26
|
...t,
|
|
26
|
-
...
|
|
27
|
-
} :
|
|
27
|
+
...i.options
|
|
28
|
+
} : i.type === "date" ? {
|
|
28
29
|
year: "numeric",
|
|
29
30
|
month: "2-digit",
|
|
30
31
|
day: "2-digit"
|
|
@@ -35,22 +36,22 @@ function o(t, a) {
|
|
|
35
36
|
hour: "2-digit",
|
|
36
37
|
minute: "2-digit"
|
|
37
38
|
};
|
|
38
|
-
return n(
|
|
39
|
+
return n(i.locales, a).format(r);
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
return String(t);
|
|
42
43
|
}
|
|
43
|
-
function
|
|
44
|
+
function c(e, t, n = {}) {
|
|
44
45
|
let r = n.columns && n.columns.length ? n.columns.map((e) => t.find((t) => t.field === e)).filter((e) => !!e) : t.filter((e) => e.field), i = r.map((e) => e.field), a = {};
|
|
45
46
|
for (let e of r) e.align && (a[e.field] = e.align);
|
|
46
|
-
let
|
|
47
|
-
for (let e of r)
|
|
48
|
-
let c = [
|
|
47
|
+
let o = {};
|
|
48
|
+
for (let e of r) o[e.field] = e.header;
|
|
49
|
+
let c = [o];
|
|
49
50
|
for (let t of e) {
|
|
50
51
|
let e = {};
|
|
51
52
|
for (let i of r) {
|
|
52
53
|
let r = t[i.field];
|
|
53
|
-
e[i.field] = n.rawValues ? r :
|
|
54
|
+
e[i.field] = n.rawValues ? r : s(r, i.format);
|
|
54
55
|
}
|
|
55
56
|
c.push(e);
|
|
56
57
|
}
|
|
@@ -60,40 +61,40 @@ function s(e, t, n = {}) {
|
|
|
60
61
|
align: a
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
64
|
+
var l = "";
|
|
65
|
+
function u(e) {
|
|
65
66
|
if (e?.aborted) throw new DOMException("Export aborted", "AbortError");
|
|
66
67
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
69
|
-
let
|
|
70
|
-
return
|
|
68
|
+
var d = () => new Promise((e) => setTimeout(e, 0));
|
|
69
|
+
function f(e, t, n) {
|
|
70
|
+
let r = e == null ? "" : e instanceof Date ? o(e) : String(e);
|
|
71
|
+
return r === "" ? r : (n && typeof e == "string" && (r = i(r)), r.includes(t) || r.includes("\"") || r.includes("\n") || r.includes("\r") ? `"${r.replace(/"/g, "\"\"")}"` : r);
|
|
71
72
|
}
|
|
72
|
-
async function
|
|
73
|
-
let r = n.csv?.delimiter ?? ",", i = n.csv?.eol ?? "\r\n", a = n.csv?.bom ?? !0, o = Math.max(1, n.chunkRows ?? 5e3),
|
|
73
|
+
async function p(e, t, n = {}) {
|
|
74
|
+
let r = n.csv?.delimiter ?? ",", i = n.csv?.eol ?? "\r\n", a = n.csv?.bom ?? !0, o = n.csv?.escapeFormulas ?? !0, s = Math.max(1, n.chunkRows ?? 5e3), c = e.length, p = [];
|
|
74
75
|
for (let i = 0; i < e.length; i++) {
|
|
75
|
-
|
|
76
|
+
u(n.signal);
|
|
76
77
|
let a = e[i];
|
|
77
|
-
|
|
78
|
+
p.push(t.map((e) => f(a[e], r, o)).join(r)), i > 0 && i % s === 0 && (n.onProgress?.({
|
|
78
79
|
phase: "serialize",
|
|
79
|
-
ratio: i /
|
|
80
|
+
ratio: i / c,
|
|
80
81
|
row: i,
|
|
81
|
-
total:
|
|
82
|
-
}), await
|
|
82
|
+
total: c
|
|
83
|
+
}), await d());
|
|
83
84
|
}
|
|
84
85
|
n.onProgress?.({
|
|
85
86
|
phase: "serialize",
|
|
86
87
|
ratio: 1,
|
|
87
|
-
row:
|
|
88
|
-
total:
|
|
88
|
+
row: c,
|
|
89
|
+
total: c
|
|
89
90
|
});
|
|
90
|
-
let
|
|
91
|
-
return (a ?
|
|
91
|
+
let m = p.join(i);
|
|
92
|
+
return (a ? l : "") + m;
|
|
92
93
|
}
|
|
93
|
-
async function
|
|
94
|
+
async function m(e, t, n = {}) {
|
|
94
95
|
let r = Math.max(1, n.chunkRows ?? 5e3), i = e.length - 1, a = [];
|
|
95
96
|
for (let o = 1; o < e.length; o++) {
|
|
96
|
-
|
|
97
|
+
u(n.signal);
|
|
97
98
|
let s = e[o], c = {};
|
|
98
99
|
for (let e of t) c[e] = s[e];
|
|
99
100
|
a.push(c), o > 0 && o % r === 0 && (n.onProgress?.({
|
|
@@ -101,7 +102,7 @@ async function p(e, t, n = {}) {
|
|
|
101
102
|
ratio: o / i,
|
|
102
103
|
row: o,
|
|
103
104
|
total: i
|
|
104
|
-
}), await
|
|
105
|
+
}), await d());
|
|
105
106
|
}
|
|
106
107
|
return n.onProgress?.({
|
|
107
108
|
phase: "serialize",
|
|
@@ -110,23 +111,23 @@ async function p(e, t, n = {}) {
|
|
|
110
111
|
total: i
|
|
111
112
|
}), JSON.stringify(a, null, 2);
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
-
return (e == null ? "" : e instanceof Date ?
|
|
114
|
+
function h(e) {
|
|
115
|
+
return (e == null ? "" : e instanceof Date ? o(e) : String(e)).replace(/\\/g, "\\\\").replace(/\|/g, "\\|").replace(/\r?\n/g, "<br>");
|
|
115
116
|
}
|
|
116
|
-
async function
|
|
117
|
-
let r = Math.max(1, n.chunkRows ?? 5e3), i = e.length, a = n.align ?? {}, o = e[0], s = `| ${t.map((e) =>
|
|
117
|
+
async function g(e, t, n = {}) {
|
|
118
|
+
let r = Math.max(1, n.chunkRows ?? 5e3), i = e.length, a = n.align ?? {}, o = e[0], s = `| ${t.map((e) => h(o?.[e])).join(" | ")} |`, c = `| ${t.map((e) => {
|
|
118
119
|
let t = a[e];
|
|
119
120
|
return t === "right" ? "---:" : t === "center" ? ":--:" : "---";
|
|
120
|
-
}).join(" | ")} |`,
|
|
121
|
+
}).join(" | ")} |`, l = [];
|
|
121
122
|
for (let a = 1; a < e.length; a++) {
|
|
122
|
-
|
|
123
|
+
u(n.signal);
|
|
123
124
|
let o = e[a];
|
|
124
|
-
|
|
125
|
+
l.push(`| ${t.map((e) => h(o[e])).join(" | ")} |`), a > 0 && a % r === 0 && (n.onProgress?.({
|
|
125
126
|
phase: "serialize",
|
|
126
127
|
ratio: a / i,
|
|
127
128
|
row: a,
|
|
128
129
|
total: i
|
|
129
|
-
}), await
|
|
130
|
+
}), await d());
|
|
130
131
|
}
|
|
131
132
|
return n.onProgress?.({
|
|
132
133
|
phase: "serialize",
|
|
@@ -136,21 +137,21 @@ async function h(e, t, n = {}) {
|
|
|
136
137
|
}), [
|
|
137
138
|
s,
|
|
138
139
|
c,
|
|
139
|
-
...
|
|
140
|
+
...l
|
|
140
141
|
].join("\n") + "\n";
|
|
141
142
|
}
|
|
142
|
-
function
|
|
143
|
+
function _(e, t) {
|
|
143
144
|
if (typeof document > "u" || typeof URL > "u") throw Error("@svgrid/grid: export requires a browser environment");
|
|
144
145
|
let n = URL.createObjectURL(e), r = document.createElement("a");
|
|
145
146
|
r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 0);
|
|
146
147
|
}
|
|
147
|
-
function
|
|
148
|
+
function v(e, t, n) {
|
|
148
149
|
if (typeof document > "u" || typeof URL > "u") throw Error("@svgrid/grid: text export requires a browser environment");
|
|
149
|
-
|
|
150
|
+
_(new Blob([e], { type: n }), t);
|
|
150
151
|
}
|
|
151
|
-
async function
|
|
152
|
+
async function y(e) {
|
|
152
153
|
if (typeof navigator > "u" || !navigator.clipboard) throw Error("@svgrid/grid: clipboard API is unavailable in this context");
|
|
153
154
|
await navigator.clipboard.writeText(e);
|
|
154
155
|
}
|
|
155
156
|
//#endregion
|
|
156
|
-
export {
|
|
157
|
+
export { y as copyTextToClipboard, v as downloadTextFile, c as projectGridRows, p as serializeDelimited, m as serializeJson, g as serializeMarkdown };
|