@svgrid/grid-wc 3.0.49 → 3.0.51
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
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { A as e, B as t, J as n, L as r, N as i, R as a, S as o, U as s, W as c, X as l, Z as u, at as d, c as f, ct as p, f as m, j as h, k as g, n as _, nt as v, ot as y, p as b } from "./client-DeNKZvIV.js";
|
|
2
|
+
import "./sv-grid-element.js";
|
|
3
|
+
import { t as x } from "./grid-menu-messages-BEsB6Jhh.js";
|
|
4
|
+
//#region ../grid/dist/GridFind.svelte
|
|
5
|
+
var S = i("<div class=\"sv-grid-find\" role=\"search\"><!> <input class=\"sv-grid-find-input\" type=\"search\"/> <span class=\"sv-grid-find-count\"> </span> <button type=\"button\" class=\"sv-grid-find-step\"><!></button> <button type=\"button\" class=\"sv-grid-find-step\"><!></button> <button type=\"button\" class=\"sv-grid-find-close\"><!></button></div>");
|
|
6
|
+
function C(r, i) {
|
|
7
|
+
y(i, !0);
|
|
8
|
+
let C = _(i, "ctrl", 7), w = v(() => C().findHits), T = v(() => x(C().props.localization?.text)), E = (e) => e.focus();
|
|
9
|
+
function D(e) {
|
|
10
|
+
if (t(w).length === 0) return;
|
|
11
|
+
C().findHitIndex = (C().findHitIndex + e + t(w).length) % t(w).length;
|
|
12
|
+
let n = t(w)[C().findHitIndex];
|
|
13
|
+
n && (C().setActiveCell(n.rowIndex, n.colIndex), C().scrollActiveCellIntoView(n.rowIndex, n.colIndex));
|
|
14
|
+
}
|
|
15
|
+
function O() {
|
|
16
|
+
C().findOpen = !1, C().findQuery = "", C().gridRootEl?.focus({ preventScroll: !0 });
|
|
17
|
+
}
|
|
18
|
+
var k = S(), A = n(k);
|
|
19
|
+
g(A, () => i.icon, () => "search");
|
|
20
|
+
var j = u(A, 2);
|
|
21
|
+
m(j), o(j, (e) => E?.(e)), s(() => f(j, () => C().findQuery, (e) => C().findQuery = e));
|
|
22
|
+
var M = u(j, 2), N = l(M, !0), P = u(M, 2), F = n(P);
|
|
23
|
+
g(F, () => i.icon, () => "find-prev"), p(P);
|
|
24
|
+
var I = u(P, 2), L = n(I);
|
|
25
|
+
g(L, () => i.icon, () => "find-next"), p(I);
|
|
26
|
+
var R = u(I, 2), z = n(R);
|
|
27
|
+
g(z, () => i.icon, () => "close"), p(R), p(k), c((n) => {
|
|
28
|
+
b(k, "aria-label", t(T).findLabel), b(j, "placeholder", t(T).findPlaceholder), e(N, n), b(P, "aria-label", t(T).findPrevious), P.disabled = t(w).length === 0, b(I, "aria-label", t(T).findNext), I.disabled = t(w).length === 0, b(R, "aria-label", t(T).findClose);
|
|
29
|
+
}, [() => t(w).length === 0 && C().findQuery.trim() ? t(T).findNoMatches : t(w).length === 0 ? "" : t(T).findCount.replace("{at}", String(C().findHitIndex + 1)).replace("{total}", String(t(w).length))]), a("input", j, () => C().findHitIndex = 0), a("keydown", j, (e) => {
|
|
30
|
+
e.stopPropagation(), e.key === "Enter" && (e.preventDefault(), D(e.shiftKey ? -1 : 1)), e.key === "Escape" && (e.preventDefault(), O());
|
|
31
|
+
}), a("click", P, () => D(-1)), a("click", I, () => D(1)), a("click", R, O), h(r, k), d();
|
|
32
|
+
}
|
|
33
|
+
r([
|
|
34
|
+
"input",
|
|
35
|
+
"keydown",
|
|
36
|
+
"click"
|
|
37
|
+
]);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { C as default };
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { $ as e, A as t, B as n, J as r, L as i, M as a, N as o, O as s, R as c, T as l, W as u, X as d, Y as f, Z as p, at as m, b as h, ct as g, et as _, j as v, k as y, n as b, nt as x, ot as S, p as C, w } from "./client-DeNKZvIV.js";
|
|
2
|
+
import { s as T } from "./SvGrid.helpers-DovOhyhU.js";
|
|
3
|
+
import { r as E } from "./grid-extension.svelte-B_gzYJQQ.js";
|
|
4
|
+
import "./sv-grid-element.js";
|
|
5
|
+
//#region ../grid/dist/GridFooter.svelte
|
|
6
|
+
var D = o("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), O = o("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Numeric</span> </span>"), k = o("<span class=\"sv-grid-status-aggregates\" role=\"status\" aria-live=\"polite\"></span>"), A = o("<div class=\"sv-grid-status-bar\"><!> <!></div>"), ee = o("<div class=\"sv-grid-dropdown\"><button type=\"button\" class=\"sv-grid-dropdown-trigger\" aria-haspopup=\"listbox\" aria-expanded=\"false\"><span class=\"sv-grid-dropdown-label\"> </span> <span class=\"sv-grid-dropdown-caret\" aria-hidden=\"true\"><!></span></button></div>"), te = o("<div role=\"navigation\" aria-label=\"Pagination\"><div class=\"sv-grid-pagination-pagesize\"><span> </span> <div class=\"sv-grid-pagination-pagesize-dd\"><!></div></div> <span class=\"sv-grid-pagination-range\"><strong> </strong> to <strong> </strong> of <strong> </strong></span> <div class=\"sv-grid-pagination-nav\"><button type=\"button\" class=\"sv-grid-pagination-btn\"><!></button> <button type=\"button\" class=\"sv-grid-pagination-btn\"><!></button> <span class=\"sv-grid-pagination-label\"> <strong> </strong> <strong> </strong></span> <button type=\"button\" class=\"sv-grid-pagination-btn\"><!></button> <button type=\"button\" class=\"sv-grid-pagination-btn\"><!></button></div></div>"), j = o("<!> <!>", 1);
|
|
7
|
+
function M(i, o) {
|
|
8
|
+
S(o, !0);
|
|
9
|
+
let M = b(o, "pager", 3, !0), N = b(o, "showStatus", 3, !0), ne = b(o, "top", 3, !1), P = _(null), F = _(!1);
|
|
10
|
+
async function re() {
|
|
11
|
+
if (!(n(P) || n(F))) {
|
|
12
|
+
e(F, !0);
|
|
13
|
+
try {
|
|
14
|
+
e(P, (await import("./SvGridDropdown-CZRv-0Cw.js")).default, !0);
|
|
15
|
+
} finally {
|
|
16
|
+
e(F, !1);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
let I = x(() => o.ctrl.paginationEnabled), L = x(() => o.ctrl.statusBarEnabled), R = x(() => o.ctrl.statusBarAggregates), z = x(() => typeof o.ctrl.props.statusBar == "object" && o.ctrl.props.statusBar.rows ? E()?.statusBarRows?.(o.ctrl) ?? null : null), B = x(() => o.ctrl.statusBarStats), ie = x(() => o.ctrl.changePage), ae = x(() => o.ctrl.goToPage), oe = x(() => o.ctrl.setPageSize), V = x(() => o.ctrl.messages);
|
|
21
|
+
var H = j(), U = f(H), W = (e) => {
|
|
22
|
+
var i = A(), c = r(i), m = (e) => {
|
|
23
|
+
var t = a(), r = f(t);
|
|
24
|
+
w(r, () => n(z), (e, t) => {
|
|
25
|
+
t(e, { get ctrl() {
|
|
26
|
+
return o.ctrl;
|
|
27
|
+
} });
|
|
28
|
+
}), v(e, t);
|
|
29
|
+
};
|
|
30
|
+
s(c, (e) => {
|
|
31
|
+
n(z) && e(m);
|
|
32
|
+
});
|
|
33
|
+
var h = p(c, 2), _ = (e) => {
|
|
34
|
+
let i = x(() => n(B));
|
|
35
|
+
var o = k();
|
|
36
|
+
l(o, 20, () => n(R), (e) => e, (e, o) => {
|
|
37
|
+
var c = a(), l = f(c), m = (e) => {
|
|
38
|
+
var a = D(), o = r(a), s = d(o, !0), c = p(o, 1, !0);
|
|
39
|
+
g(a), u((e) => {
|
|
40
|
+
t(s, n(V).statCount), t(c, e);
|
|
41
|
+
}, [() => T(n(i).count)]), v(e, a);
|
|
42
|
+
}, h = (e) => {
|
|
43
|
+
var a = O(), o = p(r(a), 1, !0);
|
|
44
|
+
g(a), u((e) => t(o, e), [() => T(n(i).numericCount)]), v(e, a);
|
|
45
|
+
}, _ = (e) => {
|
|
46
|
+
var a = D(), o = r(a), s = d(o, !0), c = p(o, 1, !0);
|
|
47
|
+
g(a), u((e) => {
|
|
48
|
+
t(s, n(V).statSum), t(c, e);
|
|
49
|
+
}, [() => T(n(i).sum)]), v(e, a);
|
|
50
|
+
}, y = (e) => {
|
|
51
|
+
var a = D(), o = r(a), s = d(o, !0), c = p(o, 1, !0);
|
|
52
|
+
g(a), u((e) => {
|
|
53
|
+
t(s, n(V).statAvg), t(c, e);
|
|
54
|
+
}, [() => T(n(i).avg)]), v(e, a);
|
|
55
|
+
}, b = (e) => {
|
|
56
|
+
var a = D(), o = r(a), s = d(o, !0), c = p(o, 1, !0);
|
|
57
|
+
g(a), u((e) => {
|
|
58
|
+
t(s, n(V).statMin), t(c, e);
|
|
59
|
+
}, [() => T(n(i).min)]), v(e, a);
|
|
60
|
+
}, x = (e) => {
|
|
61
|
+
var a = D(), o = r(a), s = d(o, !0), c = p(o, 1, !0);
|
|
62
|
+
g(a), u((e) => {
|
|
63
|
+
t(s, n(V).statMax), t(c, e);
|
|
64
|
+
}, [() => T(n(i).max)]), v(e, a);
|
|
65
|
+
};
|
|
66
|
+
s(l, (e) => {
|
|
67
|
+
o === "count" ? e(m) : o === "numericCount" ? e(h, 1) : n(i).numericCount > 0 && o === "sum" ? e(_, 2) : n(i).numericCount > 0 && o === "avg" ? e(y, 3) : n(i).numericCount > 0 && o === "min" ? e(b, 4) : n(i).numericCount > 0 && o === "max" && e(x, 5);
|
|
68
|
+
}), v(e, c);
|
|
69
|
+
}), g(o), v(e, o);
|
|
70
|
+
};
|
|
71
|
+
s(h, (e) => {
|
|
72
|
+
n(B) && e(_);
|
|
73
|
+
}), g(i), v(e, i);
|
|
74
|
+
};
|
|
75
|
+
s(U, (e) => {
|
|
76
|
+
N() && n(L) && (n(B) || n(z)) && e(W);
|
|
77
|
+
});
|
|
78
|
+
var G = p(U, 2), K = (e) => {
|
|
79
|
+
let i = x(() => o.ctrl.paginationTotalRows), l = x(() => o.ctrl.paginationPageSize), m = x(() => Math.max(1, Math.ceil(n(i) / n(l)))), _ = x(() => Math.min(o.ctrl.paginationPageIndex + 1, n(m))), b = x(() => n(i) === 0 ? 0 : (n(_) - 1) * n(l) + 1), S = x(() => Math.min(n(i), n(_) * n(l))), T = x(() => n(_) <= 1), E = x(() => n(_) >= n(m)), D = x(() => o.pageSizeOptions && o.pageSizeOptions.length ? o.pageSizeOptions : [
|
|
80
|
+
10,
|
|
81
|
+
25,
|
|
82
|
+
50,
|
|
83
|
+
100
|
|
84
|
+
]);
|
|
85
|
+
var O = te();
|
|
86
|
+
let k;
|
|
87
|
+
var A = r(O), j = r(A), M = d(j, !0), N = p(j, 2), F = r(N), I = (e) => {
|
|
88
|
+
var t = a(), r = f(t);
|
|
89
|
+
{
|
|
90
|
+
let e = x(() => n(D).map((e) => ({
|
|
91
|
+
value: e,
|
|
92
|
+
label: String(e)
|
|
93
|
+
})));
|
|
94
|
+
w(r, () => n(P), (t, r) => {
|
|
95
|
+
r(t, {
|
|
96
|
+
get options() {
|
|
97
|
+
return n(e);
|
|
98
|
+
},
|
|
99
|
+
get value() {
|
|
100
|
+
return n(l);
|
|
101
|
+
},
|
|
102
|
+
autoOpen: !0,
|
|
103
|
+
onChange: (e) => n(oe)(Number(e))
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
v(e, t);
|
|
108
|
+
}, L = (e) => {
|
|
109
|
+
var i = ee(), a = r(i), s = r(a), f = d(s, !0), m = p(s, 2), h = r(m);
|
|
110
|
+
y(h, () => o.icon, () => "page-size-caret"), g(m), g(a), g(i), u(() => t(f, n(l))), c("click", a, re), v(e, i);
|
|
111
|
+
};
|
|
112
|
+
s(F, (e) => {
|
|
113
|
+
n(P) ? e(I) : e(L, -1);
|
|
114
|
+
}), g(N), g(A);
|
|
115
|
+
var R = p(A, 2), z = r(R), B = d(z, !0), H = p(z, 2), U = d(H, !0), W = p(H, 2), G = d(W, !0);
|
|
116
|
+
g(R);
|
|
117
|
+
var K = p(R, 2), q = r(K), se = r(q);
|
|
118
|
+
y(se, () => o.icon, () => "page-first"), g(q);
|
|
119
|
+
var J = p(q, 2), ce = r(J);
|
|
120
|
+
y(ce, () => o.icon, () => "page-prev"), g(J);
|
|
121
|
+
var Y = p(J, 2), X = r(Y), Z = p(X), le = d(Z, !0), ue = p(Z), de = p(ue), fe = d(de, !0);
|
|
122
|
+
g(Y);
|
|
123
|
+
var Q = p(Y, 2), pe = r(Q);
|
|
124
|
+
y(pe, () => o.icon, () => "page-next"), g(Q);
|
|
125
|
+
var $ = p(Q, 2), me = r($);
|
|
126
|
+
y(me, () => o.icon, () => "page-last"), g($), g(K), g(O), u((e, r, i, a, o) => {
|
|
127
|
+
k = h(O, 1, "sv-grid-pagination", null, k, { "sv-grid-pagination-top": ne() }), t(M, n(V).pageSize), t(B, e), t(U, r), t(G, i), q.disabled = n(T), C(q, "aria-label", n(V).firstPage), J.disabled = n(T), C(J, "aria-label", n(V).prevPage), t(X, `${n(V).page ?? ""} `), t(le, a), t(ue, ` ${n(V).of ?? ""} `), t(fe, o), Q.disabled = n(E), C(Q, "aria-label", n(V).nextPage), $.disabled = n(E), C($, "aria-label", n(V).lastPage);
|
|
128
|
+
}, [
|
|
129
|
+
() => n(b).toLocaleString(),
|
|
130
|
+
() => n(S).toLocaleString(),
|
|
131
|
+
() => n(i).toLocaleString(),
|
|
132
|
+
() => n(_).toLocaleString(),
|
|
133
|
+
() => n(m).toLocaleString()
|
|
134
|
+
]), c("click", q, () => n(ae)(0)), c("click", J, () => n(ie)(-1)), c("click", Q, () => n(ie)(1)), c("click", $, () => n(ae)(n(m) - 1)), v(e, O);
|
|
135
|
+
};
|
|
136
|
+
s(G, (e) => {
|
|
137
|
+
M() && n(I) && e(K);
|
|
138
|
+
}), v(i, H), m();
|
|
139
|
+
}
|
|
140
|
+
i(["click"]);
|
|
141
|
+
//#endregion
|
|
142
|
+
export { M as default };
|