@svgrid/grid-wc 3.0.49 → 3.0.50
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-B5zpfGlk.js +39 -0
- package/dist/GridFooter-CSzuZWPH.js +142 -0
- package/dist/GridMenus-DGR1VkZL.js +1480 -0
- package/dist/PinSplitter-BbQwf4Eh.js +178 -0
- package/dist/{SvChartMenu-CztABicV.js → SvChartMenu-CFvrEIJf.js} +132 -132
- package/dist/{SvDateRangeInput-ByR-LFgf.js → SvDateRangeInput-B8uPcD0z.js} +107 -107
- package/dist/{SvDateTimePicker-8nq26l0z.js → SvDateTimePicker-D9MnooXn.js} +316 -316
- package/dist/{SvField-CtzxdF7J.js → SvField--1Px2j7E.js} +105 -105
- package/dist/SvGridCellEditor-BzLvoGRp.js +594 -0
- package/dist/SvGridChart-rvB4vvCB.js +3684 -0
- package/dist/{SvGridChartBuilder-BMPDRY0A.js → SvGridChartBuilder-C0HbpZhw.js} +385 -385
- package/dist/SvGridChartPanel-CftDsgLi.js +1689 -0
- package/dist/{SvGridChartView-D0Mk0N4Q.js → SvGridChartView-BMJf1fCo.js} +12 -12
- package/dist/SvGridDropdown-CZRv-0Cw.js +258 -0
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +4 -2
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
- package/dist/angular/types/svgrid-grid-wc-angular.d.ts +2 -1
- package/dist/{chart-export-pdf-COD2Ugv7.js → chart-export-pdf-CFq7Y-pq.js} +1 -1
- package/dist/{shadow/client-OtsRxGjS.js → client-DeNKZvIV.js} +593 -581
- package/dist/{date-format-DngG1HJ5.js → date-format-B1XMOxlA.js} +309 -309
- package/dist/{grid-extension.svelte-DToFhcZv.js → grid-extension.svelte-B_gzYJQQ.js} +8 -8
- package/dist/{range-commit-C6Rogxem.js → range-commit-BriJZw_M.js} +1 -1
- package/dist/react/index.d.ts +3 -1
- package/dist/react/index.js +1 -1
- package/dist/{shadow/row-drag-DLQMyiV3.js → row-drag-DevACK09.js} +1 -1
- package/dist/shadow/GridFind-CVqPCjPK.js +39 -0
- package/dist/shadow/GridFooter-DY9numnH.js +142 -0
- package/dist/shadow/GridMenus-Bl11jIy6.js +1480 -0
- package/dist/shadow/PinSplitter-DNjnUtbi.js +178 -0
- package/dist/shadow/{SvChartMenu-CFlDiKdq.js → SvChartMenu-Ca2hVFUA.js} +132 -132
- package/dist/shadow/{SvDateRangeInput-9Wq4E64y.js → SvDateRangeInput-CNXId95j.js} +107 -107
- package/dist/shadow/{SvDateTimePicker-J65ZmtSw.js → SvDateTimePicker-B6lwKYFq.js} +316 -316
- package/dist/shadow/{SvField-DGPj2clt.js → SvField-1OiD5dJA.js} +105 -105
- package/dist/shadow/SvGridCellEditor-CRImfWTE.js +594 -0
- package/dist/shadow/SvGridChart-_GY1Mgr4.js +3684 -0
- package/dist/shadow/{SvGridChartBuilder-BY64S-Zw.js → SvGridChartBuilder-Ci_GlCg3.js} +385 -385
- package/dist/shadow/SvGridChartPanel-BHczMJAe.js +1689 -0
- package/dist/shadow/{SvGridChartView-DwchQygE.js → SvGridChartView-BJEpaO8h.js} +12 -12
- package/dist/shadow/SvGridDropdown-giyKVcC0.js +258 -0
- package/dist/shadow/{chart-export-pdf-D9OfzqwS.js → chart-export-pdf-Ne0ET-JM.js} +1 -1
- package/dist/{client-OtsRxGjS.js → shadow/client-DeNKZvIV.js} +593 -581
- package/dist/shadow/{date-format-C9UkbCig.js → date-format-VCW-gATr.js} +309 -309
- package/dist/shadow/{grid-extension.svelte-DToFhcZv.js → grid-extension.svelte-B_gzYJQQ.js} +8 -8
- package/dist/shadow/{range-commit-C6Rogxem.js → range-commit-BriJZw_M.js} +1 -1
- package/dist/{row-drag-DLQMyiV3.js → shadow/row-drag-DevACK09.js} +1 -1
- package/dist/shadow/sv-grid-scrollbar-yHMClECS.js +228 -0
- package/dist/shadow/sv-grid-shadow-element.d.ts +2 -0
- package/dist/shadow/sv-grid-shadow-element.js +5686 -5829
- package/dist/{svelte-virtualizer.svelte-DWvD9wvL.js → shadow/svelte-virtualizer.svelte-D8oCAQUc.js} +4 -4
- package/dist/sv-grid-element.d.ts +2 -0
- package/dist/sv-grid-element.js +5668 -5811
- package/dist/sv-grid-scrollbar-yHMClECS.js +228 -0
- package/dist/{shadow/svelte-virtualizer.svelte-DWvD9wvL.js → svelte-virtualizer.svelte-D8oCAQUc.js} +4 -4
- package/dist/vue/index.d.ts +2 -1
- package/dist/vue/index.js +1 -1
- package/package.json +3 -3
- package/dist/GridFind-C1YbloFh.js +0 -39
- package/dist/GridFooter-DOR8m9GQ.js +0 -142
- package/dist/GridMenus-ac4ROLfR.js +0 -1461
- package/dist/PinSplitter-Du4ZF8T3.js +0 -178
- package/dist/SvGridCellEditor-3jq3ec38.js +0 -594
- package/dist/SvGridChart-CHMHUQto.js +0 -3684
- package/dist/SvGridChartPanel-Bk_xFAwN.js +0 -1689
- package/dist/SvGridDropdown-CnCQuXaI.js +0 -258
- package/dist/shadow/GridFind-CcoKoisE.js +0 -39
- package/dist/shadow/GridFooter-CDq71ytl.js +0 -142
- package/dist/shadow/GridMenus-hIMzQt3E.js +0 -1461
- package/dist/shadow/PinSplitter-BAYTAZtm.js +0 -178
- package/dist/shadow/SvGridCellEditor-DA5l3ENL.js +0 -594
- package/dist/shadow/SvGridChart-DgCuTYRq.js +0 -3684
- package/dist/shadow/SvGridChartPanel-CuRtOxSk.js +0 -1689
- package/dist/shadow/SvGridDropdown-B_5kqHQE.js +0 -258
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
(function(){try{var c=".sv-pin-split.svelte-3uth74{top:0;z-index:50;pointer-events:none;width:0;position:absolute;inset-inline-start:0}.sv-pin-split.is-editing.svelte-3uth74{display:none}.sv-pin-split-line.svelte-3uth74{top:0;bottom:0;background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:2px;transition:background-color .12s;position:absolute;inset-inline-start:calc(var(--x) - 1px)}.sv-pin-split-hit.svelte-3uth74{bottom:0;cursor:col-resize;pointer-events:auto;touch-action:none;outline:none;width:8px;position:absolute;inset-inline-start:max(0px, calc(var(--x) - 4px))}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:var(--sg-accent,#2563eb)}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){width:3px;inset-inline-start:calc(var(--x) - 1.5px)}.sv-pin-split-ghost.svelte-3uth74{border-inline-start:2px dashed color-mix(in srgb, var(--sg-accent,#2563eb) 50%, transparent);width:0;position:absolute;top:0;bottom:0}.sv-pin-split-tip.svelte-3uth74{top:6px;background:var(--sg-fg,#0f172a);color:var(--sg-bg,#fff);white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:12px;position:absolute;inset-inline-start:calc(var(--x) + 8px)}@media (forced-colors:active){.sv-pin-split-line.svelte-3uth74,.sv-pin-split-ghost.svelte-3uth74{forced-color-adjust:none;background:canvastext;border-color:highlight}.sv-pin-split.is-dragging.svelte-3uth74 .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):hover) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split.svelte-3uth74:has(.sv-pin-split-hit:where(.svelte-3uth74):focus-visible) .sv-pin-split-line:where(.svelte-3uth74){background:highlight}.sv-pin-split-tip.svelte-3uth74{border:1px solid canvastext}}\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:PinSplitter-Du4ZF8T3.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"grid:PinSplitter-Du4ZF8T3.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
|
-
import { $ as e, A as t, D as n, I as r, J as i, L as a, M as o, Q as s, R as c, U as l, W as u, X as d, Y as f, a as p, at as m, f as h, it as g, j as _, k as v, n as y, q as b, st as x, tt as S, v as C, y as w, z as T } from "./client-OtsRxGjS.js";
|
|
3
|
-
import { r as E } from "./grid-extension.svelte-DToFhcZv.js";
|
|
4
|
-
import "./sv-grid-element.js";
|
|
5
|
-
//#region ../grid/dist/pin-splitter.js
|
|
6
|
-
function ee(e, t) {
|
|
7
|
-
let n = [e], r = e;
|
|
8
|
-
for (let e of t) n.push(r += e);
|
|
9
|
-
return n;
|
|
10
|
-
}
|
|
11
|
-
function te(e, t, n, r) {
|
|
12
|
-
let i = 0, a = Math.abs((e[0] ?? 0) - t);
|
|
13
|
-
for (let o = 1; o < e.length && o <= n; o++) {
|
|
14
|
-
let n = e[o] ?? Infinity;
|
|
15
|
-
if (n > r) break;
|
|
16
|
-
Math.abs(n - t) < a && (i = o, a = Math.abs(n - t));
|
|
17
|
-
}
|
|
18
|
-
return i;
|
|
19
|
-
}
|
|
20
|
-
function ne(e, t) {
|
|
21
|
-
let n = new Set(e), r = t.filter((e) => n.has(e)), i = new Set(r), a = 0;
|
|
22
|
-
return e.map((e) => i.has(e) ? r[a++] ?? e : e);
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region ../grid/dist/PinSplitter.svelte
|
|
26
|
-
var re = o("<div class=\"sv-pin-split-ghost svelte-3uth74\" aria-hidden=\"true\"></div> <div class=\"sv-pin-split-tip svelte-3uth74\" aria-hidden=\"true\"> </div>", 1), D = o("<div><!> <div class=\"sv-pin-split-line svelte-3uth74\" aria-hidden=\"true\"></div> <div class=\"sv-pin-split-hit svelte-3uth74\" role=\"separator\" aria-orientation=\"vertical\" tabindex=\"0\"></div></div>");
|
|
27
|
-
function O(r, o) {
|
|
28
|
-
m(o, !0);
|
|
29
|
-
let O = y(o, "ctrl", 7), k = S(() => new Set(O().effectivePinning.right)), A = S(() => O().allColumns.filter((e) => !T(k).has(e.id))), j = S(() => new Set(O().effectivePinning.left)), M = S(() => T(A).filter((e) => T(j).has(e.id)).length), N = S(() => ee(O().systemColumnsWidth ?? 0, T(A).map((e) => O().getColumnWidth(e.id)))), P = S(() => T(N)[T(M)] ?? 0), ie = S(() => O().hasHorizontalOverflow ? 16 : 0), F = S(() => {
|
|
30
|
-
let e = E()?.lockColumn, t = 0;
|
|
31
|
-
if (e) for (let n of T(A)) {
|
|
32
|
-
if (!T(j).has(n.id) || !e(O(), n.id)) break;
|
|
33
|
-
t += 1;
|
|
34
|
-
}
|
|
35
|
-
return t;
|
|
36
|
-
}), I = S(() => O().messages), L = e(null);
|
|
37
|
-
function R() {
|
|
38
|
-
let e = O().scrollContainer;
|
|
39
|
-
if (!e?.clientWidth) return Infinity;
|
|
40
|
-
let t = 0;
|
|
41
|
-
for (let e of T(k)) t += O().getColumnWidth(e) ?? 0;
|
|
42
|
-
return e.clientWidth - t - 120;
|
|
43
|
-
}
|
|
44
|
-
let z = () => !!O().scrollContainer && getComputedStyle(O().scrollContainer).direction === "rtl";
|
|
45
|
-
function B(e) {
|
|
46
|
-
let t = O().scrollContainer;
|
|
47
|
-
if (!t) return e.clientX;
|
|
48
|
-
let n = t.getBoundingClientRect();
|
|
49
|
-
return z() ? n.right - e.clientX : e.clientX - n.left;
|
|
50
|
-
}
|
|
51
|
-
function V(e) {
|
|
52
|
-
if (e === T(M)) return;
|
|
53
|
-
let t = T(A).map((e) => e.id), n = new Set(t), r = [...O().columnPinning.left.filter((e) => !n.has(e)), ...t.slice(0, e)], i = O().grid.getAllColumns().map((e) => e.id), a = O().userColumnOrder ?? [], o = a.length ? [...a, ...i.filter((e) => !a.includes(e))] : i, s = ne(o, O().allColumns.map((e) => e.id));
|
|
54
|
-
s.some((e, t) => e !== o[t]) && O().setColumnOrderInternal(s), O().columnPinning = {
|
|
55
|
-
left: r,
|
|
56
|
-
right: [...O().columnPinning.right]
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
let H = (e) => document.elementsFromPoint?.(e.clientX, e.clientY).find((e) => !e.closest(".sv-pin-split"))?.closest(".sv-grid-placeholder-row button"), U = e(!1);
|
|
60
|
-
function W(e) {
|
|
61
|
-
s(U, !0);
|
|
62
|
-
let t = (n) => {
|
|
63
|
-
e.isConnected && e.contains(n.target) || (s(U, !1), window.removeEventListener("pointermove", t, !0));
|
|
64
|
-
};
|
|
65
|
-
window.addEventListener("pointermove", t, !0);
|
|
66
|
-
}
|
|
67
|
-
function G(e) {
|
|
68
|
-
if (e.button !== 0) return;
|
|
69
|
-
e.preventDefault();
|
|
70
|
-
let t = H(e);
|
|
71
|
-
if (t) return t.click();
|
|
72
|
-
e.stopPropagation();
|
|
73
|
-
let n = O().scrollContainer;
|
|
74
|
-
n && (n.scrollLeft = 0), e.currentTarget.setPointerCapture?.(e.pointerId), s(L, {
|
|
75
|
-
x: T(P),
|
|
76
|
-
count: T(M)
|
|
77
|
-
}, !0);
|
|
78
|
-
}
|
|
79
|
-
u(() => {
|
|
80
|
-
if (!T(L)) return;
|
|
81
|
-
let e = (e) => {
|
|
82
|
-
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), s(L, null));
|
|
83
|
-
};
|
|
84
|
-
return window.addEventListener("keydown", e, !0), () => window.removeEventListener("keydown", e, !0);
|
|
85
|
-
});
|
|
86
|
-
function K(e) {
|
|
87
|
-
if (!T(L)) {
|
|
88
|
-
let t = H(e);
|
|
89
|
-
t && !T(U) && W(t);
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
let t = B(e);
|
|
93
|
-
s(L, {
|
|
94
|
-
x: t,
|
|
95
|
-
count: Math.max(T(F), te(T(N), t, T(A).length - 1, R()))
|
|
96
|
-
}, !0);
|
|
97
|
-
}
|
|
98
|
-
function q() {
|
|
99
|
-
if (!T(L)) return;
|
|
100
|
-
let e = T(L).count;
|
|
101
|
-
s(L, null), V(e);
|
|
102
|
-
}
|
|
103
|
-
function J(e) {
|
|
104
|
-
let t = T(M), n = z() ? "ArrowLeft" : "ArrowRight";
|
|
105
|
-
if (e.key === n) t = T(M) + 1;
|
|
106
|
-
else if (e.key === "ArrowRight" || e.key === "ArrowLeft") t = T(M) - 1;
|
|
107
|
-
else if (e.key === "Home") t = T(F);
|
|
108
|
-
else return;
|
|
109
|
-
e.preventDefault(), e.stopPropagation(), !(t < T(F) || t > T(A).length - 1) && (t > T(M) && (T(N)[t] ?? Infinity) > R() || V(t));
|
|
110
|
-
}
|
|
111
|
-
let Y = e(null), X = e("");
|
|
112
|
-
u(() => {
|
|
113
|
-
let e = O().scrollContainer, t = T(Y);
|
|
114
|
-
if (!e || !t) return;
|
|
115
|
-
let n = 0, r = () => {
|
|
116
|
-
n = 0;
|
|
117
|
-
let r = e.querySelectorAll(".sv-grid-placeholder-failed");
|
|
118
|
-
if (!r.length) return void s(X, "");
|
|
119
|
-
let i = t.getBoundingClientRect().top, a = i + (O().headerHeight ?? 0), o = "";
|
|
120
|
-
for (let e of r) {
|
|
121
|
-
let t = e.getBoundingClientRect(), n = Math.max(t.top, a) - i, r = t.bottom - i;
|
|
122
|
-
r > n && (o += `,#000 ${n}px,#0000 ${n}px ${r}px,#000 ${r}px`);
|
|
123
|
-
}
|
|
124
|
-
s(X, o && `linear-gradient(#000${o})`, !0);
|
|
125
|
-
}, i = () => n ||= requestAnimationFrame(r), a = new MutationObserver(i);
|
|
126
|
-
return a.observe(e, {
|
|
127
|
-
childList: !0,
|
|
128
|
-
subtree: !0,
|
|
129
|
-
attributeFilter: ["class"]
|
|
130
|
-
}), e.addEventListener("scroll", i, { passive: !0 }), i(), () => {
|
|
131
|
-
cancelAnimationFrame(n), a.disconnect(), e.removeEventListener("scroll", i);
|
|
132
|
-
};
|
|
133
|
-
});
|
|
134
|
-
let Z = S(() => T(L) ? T(L).count : T(M)), ae = S(() => T(L) ? T(N)[T(L).count] ?? T(P) : T(P)), Q = S(() => T(Z) === 0 ? T(I).pinSplitterNone : T(Z) === 1 ? T(I).pinSplitterOne : T(I).pinSplitterMany.replace("{count}", String(T(Z))));
|
|
135
|
-
var $ = _(), oe = i($), se = (e) => {
|
|
136
|
-
var r = D();
|
|
137
|
-
let o, u;
|
|
138
|
-
var m = b(r), g = (e) => {
|
|
139
|
-
var n = re(), r = i(n);
|
|
140
|
-
let a;
|
|
141
|
-
var o = d(r, 2), s = f(o, !0);
|
|
142
|
-
l(() => {
|
|
143
|
-
a = C(r, "", a, { "inset-inline-start": `${T(L).x}px` }), v(s, T(Q));
|
|
144
|
-
}), t(e, n);
|
|
145
|
-
};
|
|
146
|
-
n(m, (e) => {
|
|
147
|
-
T(L) && e(g);
|
|
148
|
-
});
|
|
149
|
-
var _ = d(m, 2);
|
|
150
|
-
let y;
|
|
151
|
-
p(_, (e) => s(Y, e), () => T(Y));
|
|
152
|
-
var S = d(_, 2);
|
|
153
|
-
let E;
|
|
154
|
-
x(r), l(() => {
|
|
155
|
-
o = w(r, 1, "sv-pin-split svelte-3uth74", null, o, {
|
|
156
|
-
"is-dragging": !!T(L),
|
|
157
|
-
"is-editing": !!O().editingCell
|
|
158
|
-
}), u = C(r, "", u, {
|
|
159
|
-
"--x": `${T(ae)}px`,
|
|
160
|
-
bottom: `${T(ie)}px`
|
|
161
|
-
}), y = C(_, "", y, { "mask-image": T(X) || void 0 }), h(S, "aria-label", T(I).pinSplitterLabel), h(S, "aria-valuemin", T(F)), h(S, "aria-valuemax", T(A).length - 1), h(S, "aria-valuenow", T(Z)), h(S, "aria-valuetext", T(Q)), h(S, "title", T(I).pinSplitterHint), E = C(S, "", E, {
|
|
162
|
-
top: `${O().headerHeight ?? 0}px`,
|
|
163
|
-
"pointer-events": T(U) ? "none" : void 0
|
|
164
|
-
});
|
|
165
|
-
}), a("pointerdown", S, G), a("pointermove", S, K), a("pointerup", S, q), c("pointercancel", S, () => s(L, null)), c("lostpointercapture", S, q), a("keydown", S, J), t(e, r);
|
|
166
|
-
};
|
|
167
|
-
n(oe, (e) => {
|
|
168
|
-
!O().isNarrowResponsive && T(A).length > 1 && e(se);
|
|
169
|
-
}), t(r, $), g();
|
|
170
|
-
}
|
|
171
|
-
r([
|
|
172
|
-
"pointerdown",
|
|
173
|
-
"pointermove",
|
|
174
|
-
"pointerup",
|
|
175
|
-
"keydown"
|
|
176
|
-
]);
|
|
177
|
-
//#endregion
|
|
178
|
-
export { O as default };
|