@svgrid/grid-wc 3.0.28 → 3.0.30
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/GridFooter-DEKpo1cS.js +162 -0
- package/dist/{GridMenus-4ksk1dnR.js → GridMenus-N2KRdNsI.js} +337 -320
- package/dist/{PinSplitter-vmU3zd_R.js → PinSplitter-CinhgIrH.js} +2 -2
- package/dist/grid-extension.svelte-CBhmpjuc.js +27 -0
- package/dist/merges-DQTOlMWM.js +109 -0
- package/dist/shadow/GridFooter-DzMtiAvb.js +162 -0
- package/dist/shadow/{GridMenus-CpE2jjUR.js → GridMenus-De7ebuLc.js} +337 -320
- package/dist/shadow/{PinSplitter-vmU3zd_R.js → PinSplitter-CinhgIrH.js} +2 -2
- package/dist/shadow/grid-extension.svelte-CBhmpjuc.js +27 -0
- package/dist/shadow/merges-DQTOlMWM.js +109 -0
- package/dist/shadow/sv-grid-shadow-element.js +2905 -2944
- package/dist/sv-grid-element.js +2888 -2927
- package/package.json +3 -3
- package/dist/GridFooter-La5NyTDN.js +0 -145
- package/dist/grid-extension.svelte-BixlrIqc.js +0 -20
- package/dist/shadow/GridFooter-d70CxdXM.js +0 -145
- package/dist/shadow/grid-extension.svelte-BixlrIqc.js +0 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(){try{var c=".sv-pin-split.svelte-3uth74{z-index:50;pointer-events:none;width:0;position:absolute;top:0;left:0}.sv-pin-split.is-editing.svelte-3uth74{display:none}.sv-pin-split-line.svelte-3uth74{top:0;bottom:0;left:calc(var(--x) - 1px);background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:2px;transition:background-color .12s;position:absolute}.sv-pin-split-hit.svelte-3uth74{bottom:0;left:max(0px, calc(var(--x) - 4px));cursor:col-resize;pointer-events:auto;touch-action:none;outline:none;width:8px;position:absolute}.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;left:calc(var(--x) - 1.5px)}.sv-pin-split-ghost.svelte-3uth74{border-left: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;left:calc(var(--x) + 8px);background:var(--sg-fg,#0f172a);color:var(--sg-bg,#fff);white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:12px;position:absolute}\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:PinSplitter-
|
|
1
|
+
(function(){try{var c=".sv-pin-split.svelte-3uth74{z-index:50;pointer-events:none;width:0;position:absolute;top:0;left:0}.sv-pin-split.is-editing.svelte-3uth74{display:none}.sv-pin-split-line.svelte-3uth74{top:0;bottom:0;left:calc(var(--x) - 1px);background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:2px;transition:background-color .12s;position:absolute}.sv-pin-split-hit.svelte-3uth74{bottom:0;left:max(0px, calc(var(--x) - 4px));cursor:col-resize;pointer-events:auto;touch-action:none;outline:none;width:8px;position:absolute}.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;left:calc(var(--x) - 1.5px)}.sv-pin-split-ghost.svelte-3uth74{border-left: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;left:calc(var(--x) + 8px);background:var(--sg-fg,#0f172a);color:var(--sg-bg,#fff);white-space:nowrap;border-radius:6px;padding:3px 8px;font-size:12px;position:absolute}\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:PinSplitter-CinhgIrH.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:PinSplitter-CinhgIrH.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
2
|
import { $ as e, A as t, D as n, I as r, L as i, M as a, R as o, U as s, W as c, X as l, Y as u, Z as d, et as f, f as p, it as m, j as h, k as g, n as _, nt as v, ot as y, rt as b, v as x, y as S, z as C } from "./client-DtIdusS4.js";
|
|
3
|
-
import {
|
|
3
|
+
import { r as w } from "./grid-extension.svelte-CBhmpjuc.js";
|
|
4
4
|
//#region ../grid/dist/pin-splitter.js
|
|
5
5
|
function T(e, t) {
|
|
6
6
|
let n = [e], r = e;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { et as e, z as t } from "./client-DtIdusS4.js";
|
|
2
|
+
//#region ../grid/dist/filtering/filter-operator-catalogue.js
|
|
3
|
+
var n = ["isBlank", "isNotBlank"];
|
|
4
|
+
function r(e) {
|
|
5
|
+
return n.includes(e);
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../grid/dist/filter-operator-registry.js
|
|
9
|
+
var i = {}, a = e(null);
|
|
10
|
+
function o(e, n) {
|
|
11
|
+
let r = t(a)?.column;
|
|
12
|
+
if (!r) return e;
|
|
13
|
+
let i = n ?? s(e);
|
|
14
|
+
return e.map((e) => e?.columns?.length ? {
|
|
15
|
+
...e,
|
|
16
|
+
columns: o(e.columns, i)
|
|
17
|
+
} : e?.fieldType ? r(e, i) : e);
|
|
18
|
+
}
|
|
19
|
+
function s(e) {
|
|
20
|
+
return e.flatMap((e) => e?.columns?.length ? s(e.columns) : [e]);
|
|
21
|
+
}
|
|
22
|
+
var c = (e) => i[e], l = (e) => r(e) || !!c(e)?.valueless;
|
|
23
|
+
function u() {
|
|
24
|
+
return t(a);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { l as i, o as n, u as r, c as t };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
//#region ../grid/dist/merges.js
|
|
2
|
+
var e = (e, t) => `${e}:${t}`;
|
|
3
|
+
function t(t) {
|
|
4
|
+
if (!t || t.length === 0) return null;
|
|
5
|
+
let n = /* @__PURE__ */ new Map(), r = [];
|
|
6
|
+
for (let i of t) {
|
|
7
|
+
let t = Math.max(1, Math.floor(i.rowSpan)), a = Math.max(1, Math.floor(i.colSpan));
|
|
8
|
+
if (t === 1 && a === 1) continue;
|
|
9
|
+
let o = {
|
|
10
|
+
rowIndex: i.rowIndex,
|
|
11
|
+
colIndex: i.colIndex,
|
|
12
|
+
rowSpan: t,
|
|
13
|
+
colSpan: a
|
|
14
|
+
};
|
|
15
|
+
r.push(o);
|
|
16
|
+
for (let r = o.rowIndex; r < o.rowIndex + t; r += 1) for (let t = o.colIndex; t < o.colIndex + a; t += 1) n.set(e(r, t), o);
|
|
17
|
+
}
|
|
18
|
+
return r.length ? {
|
|
19
|
+
list: r,
|
|
20
|
+
byCell: n
|
|
21
|
+
} : null;
|
|
22
|
+
}
|
|
23
|
+
function n(t, n, r) {
|
|
24
|
+
return t?.byCell.get(e(n, r));
|
|
25
|
+
}
|
|
26
|
+
function r(e, t, r) {
|
|
27
|
+
let i = n(e, t, r);
|
|
28
|
+
return !!i && (i.rowIndex !== t || i.colIndex !== r);
|
|
29
|
+
}
|
|
30
|
+
function i(e, t, r) {
|
|
31
|
+
let i = n(e, t, r);
|
|
32
|
+
return i ? {
|
|
33
|
+
rowIndex: i.rowIndex,
|
|
34
|
+
colIndex: i.colIndex
|
|
35
|
+
} : {
|
|
36
|
+
rowIndex: t,
|
|
37
|
+
colIndex: r
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function a(e, t, r) {
|
|
41
|
+
let i = n(e, t, r);
|
|
42
|
+
return i ? {
|
|
43
|
+
rowIndex: i.rowIndex + i.rowSpan - 1,
|
|
44
|
+
colIndex: i.colIndex + i.colSpan - 1
|
|
45
|
+
} : {
|
|
46
|
+
rowIndex: t,
|
|
47
|
+
colIndex: r
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function o(e, t) {
|
|
51
|
+
if (!e) return t;
|
|
52
|
+
let { minRow: n, maxRow: r, minCol: i, maxCol: a } = t;
|
|
53
|
+
for (let t = 0; t < 64; t += 1) {
|
|
54
|
+
let t = !1;
|
|
55
|
+
for (let o of e.list) {
|
|
56
|
+
let e = o.rowIndex + o.rowSpan - 1, s = o.colIndex + o.colSpan - 1;
|
|
57
|
+
o.rowIndex <= r && e >= n && o.colIndex <= a && s >= i && (o.rowIndex < n && (n = o.rowIndex, t = !0), e > r && (r = e, t = !0), o.colIndex < i && (i = o.colIndex, t = !0), s > a && (a = s, t = !0));
|
|
58
|
+
}
|
|
59
|
+
if (!t) break;
|
|
60
|
+
}
|
|
61
|
+
return n === t.minRow && r === t.maxRow && i === t.minCol && a === t.maxCol ? t : {
|
|
62
|
+
minRow: n,
|
|
63
|
+
maxRow: r,
|
|
64
|
+
minCol: i,
|
|
65
|
+
maxCol: a
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
function s(e, t, r, i) {
|
|
69
|
+
if (!e) return r;
|
|
70
|
+
let a = n(e, r.rowIndex, r.colIndex);
|
|
71
|
+
if (!a) return r;
|
|
72
|
+
if (n(e, t.rowIndex, t.colIndex) !== a) return {
|
|
73
|
+
rowIndex: a.rowIndex,
|
|
74
|
+
colIndex: a.colIndex
|
|
75
|
+
};
|
|
76
|
+
let o = Math.sign(r.rowIndex - t.rowIndex), s = Math.sign(r.colIndex - t.colIndex);
|
|
77
|
+
if (o === 0 && s === 0) return {
|
|
78
|
+
rowIndex: a.rowIndex,
|
|
79
|
+
colIndex: a.colIndex
|
|
80
|
+
};
|
|
81
|
+
let c = r.rowIndex, l = r.colIndex;
|
|
82
|
+
if (o > 0 ? c = a.rowIndex + a.rowSpan : o < 0 && (c = a.rowIndex - 1), s > 0 ? l = a.colIndex + a.colSpan : s < 0 && (l = a.colIndex - 1), c < 0 || c > i.maxRow || l < 0 || l > i.maxCol) return {
|
|
83
|
+
rowIndex: a.rowIndex,
|
|
84
|
+
colIndex: a.colIndex
|
|
85
|
+
};
|
|
86
|
+
let u = n(e, c, l);
|
|
87
|
+
return u ? {
|
|
88
|
+
rowIndex: u.rowIndex,
|
|
89
|
+
colIndex: u.colIndex
|
|
90
|
+
} : {
|
|
91
|
+
rowIndex: c,
|
|
92
|
+
colIndex: l
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function c(e, t, r, i) {
|
|
96
|
+
let a = n(e, t, r);
|
|
97
|
+
if (!a) return null;
|
|
98
|
+
let o = Math.max(a.rowIndex, i.firstRow), s = Math.max(a.colIndex, i.firstCol);
|
|
99
|
+
if (t !== o || r !== s) return { kind: "skip" };
|
|
100
|
+
let c = o === a.rowIndex && s === a.colIndex, l = Math.max(1, Math.min(a.rowIndex + a.rowSpan - t, i.lastRow - t + 1)), u = Math.max(1, Math.min(a.colIndex + a.colSpan - r, i.lastCol - r + 1));
|
|
101
|
+
return {
|
|
102
|
+
kind: c ? "origin" : "continuation",
|
|
103
|
+
merge: a,
|
|
104
|
+
rowSpan: l,
|
|
105
|
+
colSpan: u
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { t as buildMergeIndex, a as endOf, o as expandRectToMerges, r as isCovered, n as mergeAt, c as mergeDrawAt, i as originOf, s as stepPastMerge };
|