@svgrid/enterprise 3.1.21 → 3.1.23
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/SvGridBoard.svelte +39 -0
- package/dist/SvGridGallery.svelte +23 -0
- package/dist/SvGridRowCount.svelte +23 -0
- package/dist/SvGridRowCount.svelte.d.ts +6 -0
- package/dist/SvGridScheduler.svelte +25 -7
- package/dist/cdn/svgrid-enterprise.svelte-external.js +13838 -13554
- package/dist/designer/assets/GridFooter-DKMfZpL4.js +2 -0
- package/dist/designer/assets/GridMenus-DWDghydL.js +6 -0
- package/dist/designer/assets/{PinSplitter-C5AwA1xV.js → PinSplitter-BfIjd7pi.js} +1 -1
- package/dist/designer/assets/grid-extension.svelte-G1ng0xd2.js +1 -0
- package/dist/designer/assets/index-CHx3F4Ij.css +1 -0
- package/dist/designer/assets/{index-DLJjuVA4.js → index-CIxqRzKJ.js} +324 -324
- package/dist/designer/assets/merges-Bg-KqPEl.js +1 -0
- package/dist/designer/index.html +3 -3
- package/dist/expressions/compile.js +11 -7
- package/dist/expressions/evaluate.js +4 -0
- package/dist/expressions/expression-columns.d.ts +4 -1
- package/dist/expressions/expression-columns.js +12 -3
- package/dist/expressions/parse.js +19 -7
- package/dist/fields/RecordView.svelte +5 -2
- package/dist/fields/activity.svelte.d.ts +5 -2
- package/dist/fields/activity.svelte.js +4 -3
- package/dist/fields/grid-access.d.ts +1 -1
- package/dist/fields/grid-access.js +13 -3
- package/dist/fields/index.d.ts +18 -0
- package/dist/fields/index.js +31 -0
- package/dist/filter-labels.d.ts +16 -0
- package/dist/filter-labels.js +83 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -0
- package/dist/install.js +8 -0
- package/dist/node/studio.js +12 -5
- package/dist/relative-date-core.d.ts +40 -0
- package/dist/relative-date-core.js +85 -0
- package/dist/relative-dates.d.ts +28 -0
- package/dist/relative-dates.js +61 -0
- package/dist/review/GhostCell.svelte +60 -0
- package/dist/review/GhostCell.svelte.d.ts +14 -0
- package/dist/review/RichCellMark.svelte +72 -0
- package/dist/review/RichCellMark.svelte.d.ts +8 -0
- package/dist/review/SvReviewPanel.svelte +759 -0
- package/dist/review/SvReviewPanel.svelte.d.ts +16 -0
- package/dist/review/adapters.d.ts +79 -0
- package/dist/review/adapters.js +119 -0
- package/dist/review/agent.d.ts +52 -0
- package/dist/review/agent.js +232 -0
- package/dist/review/card-marks.svelte.d.ts +42 -0
- package/dist/review/card-marks.svelte.js +51 -0
- package/dist/review/cluster.d.ts +26 -0
- package/dist/review/cluster.js +377 -0
- package/dist/review/equal.d.ts +9 -0
- package/dist/review/equal.js +35 -0
- package/dist/review/formats.d.ts +31 -0
- package/dist/review/formats.js +37 -0
- package/dist/review/ghost.d.ts +17 -0
- package/dist/review/ghost.js +104 -0
- package/dist/review/index.d.ts +42 -0
- package/dist/review/index.js +36 -0
- package/dist/review/messages.d.ts +113 -0
- package/dist/review/messages.js +135 -0
- package/dist/review/model.svelte.d.ts +262 -0
- package/dist/review/model.svelte.js +883 -0
- package/dist/review/pending-filter.d.ts +26 -0
- package/dist/review/pending-filter.js +71 -0
- package/dist/review/rich-cells.d.ts +1 -0
- package/dist/review/rich-cells.js +36 -0
- package/dist/review/types.d.ts +83 -0
- package/dist/review/types.js +7 -0
- package/dist/row-count.d.ts +28 -0
- package/dist/row-count.js +39 -0
- package/dist/sort-blanks.d.ts +8 -0
- package/dist/sort-blanks.js +47 -0
- package/dist/studio/ui-components.generated.js +1 -1
- package/dist/upgrade-prompt.d.ts +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/dist/wc/GridFooter-CKC4L36O.js +162 -0
- package/dist/wc/{GridMenus-DVGuqp2l.js → GridMenus-h7RsvcmI.js} +320 -303
- package/dist/wc/{PinSplitter-Btco0txr.js → PinSplitter-BN6ybmjs.js} +1 -1
- package/dist/wc/grid-extension.svelte-CDf5EUyz.js +27 -0
- package/dist/wc/merges-DQTOlMWM.js +109 -0
- package/dist/wc/sv-sheet-element.js +6753 -6792
- package/package.json +9 -3
- package/dist/designer/assets/GridFooter-CKBVItAU.js +0 -2
- package/dist/designer/assets/GridMenus-Dzwu7M9r.js +0 -6
- package/dist/designer/assets/grid-extension.svelte-BZ7AqyJI.js +0 -1
- package/dist/designer/assets/index-WCxj6WfJ.css +0 -1
- package/dist/wc/GridFooter-BgoA77TJ.js +0 -145
- package/dist/wc/grid-extension.svelte-CucBS4FL.js +0 -20
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { G as e, H as t, I as n, L as r, P as i, R as a, S as o, T as s, U as c, W as l, X as u, Y as d, at as f, ct as p, dt as m, ft as h, ht as g, j as _, m as v, n as y, nt as b, ot as x, rt as S, tt as C, x as w } from "./client-GWAV79ON.js";
|
|
2
|
-
import {
|
|
2
|
+
import { r as T } from "./grid-extension.svelte-CDf5EUyz.js";
|
|
3
3
|
//#region ../grid/dist/pin-splitter.js
|
|
4
4
|
function E(e, t) {
|
|
5
5
|
let n = [e], r = e;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { G as e, ot as t } from "./client-GWAV79ON.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 = t(null);
|
|
10
|
+
function o(t, n) {
|
|
11
|
+
let r = e(a)?.column;
|
|
12
|
+
if (!r) return t;
|
|
13
|
+
let i = n ?? s(t);
|
|
14
|
+
return t.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 e(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 };
|