@svgrid/grid-wc 3.0.15 → 3.0.17
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-DaqpUo5H.js → GridFooter-D1Mxru-f.js} +1 -1
- package/dist/{GridMenus-BXla2VNU.js → GridMenus-BzTtZA7e.js} +2 -2
- package/dist/{shadow/SvDateRangeInput-DtKZ07aC.js → SvDateRangeInput-EIQRPO_K.js} +14 -11
- package/dist/{shadow/SvDateTimePicker-C37mOYov.js → SvDateTimePicker-IsJpZskc.js} +324 -320
- package/dist/{SvGrid.helpers-B2GEKrxS.js → SvGrid.helpers-tk7gWxcT.js} +1 -1
- package/dist/{SvGridCellEditor-DdqVsNeJ.js → SvGridCellEditor-Bhdpvez8.js} +159 -148
- package/dist/{SvGridChart-Bj2Pr2u9.js → SvGridChart-DHptYODr.js} +4 -4
- package/dist/{SvGridChartBuilder-Dpw2X4pR.js → SvGridChartBuilder-COttFU6T.js} +3 -3
- package/dist/{shadow/SvGridChartPanel-Ce78cR3g.js → SvGridChartPanel-DGMs4B9p.js} +6 -6
- package/dist/{SvGridChartView-CTfjtiXs.js → SvGridChartView-iQoET4TC.js} +2 -2
- package/dist/{shadow/cell-formatting-hb3vzxhJ.js → cell-formatting-5uEa4Y_0.js} +1 -0
- package/dist/{shadow/chart-export-pdf-Bc0Rz4kB.js → chart-export-pdf-C_iQ0kET.js} +1 -1
- package/dist/{chart-summary-BL4WDgEu.js → chart-summary-zpeh1XVx.js} +1 -1
- package/dist/{chart-nwSa4jQe.js → chart-xrT6cLA5.js} +1 -1
- package/dist/{shadow/export-format-DIcJWdKl.js → export-format-CWEVxATj.js} +1 -1
- package/dist/shadow/{GridFooter-BBBUK5Ry.js → GridFooter-BX1o5fzB.js} +1 -1
- package/dist/shadow/{GridMenus-DGiPj4-r.js → GridMenus-CjsOj-5H.js} +2 -2
- package/dist/{SvDateRangeInput-DtKZ07aC.js → shadow/SvDateRangeInput-EIQRPO_K.js} +14 -11
- package/dist/{SvDateTimePicker-C37mOYov.js → shadow/SvDateTimePicker-IsJpZskc.js} +324 -320
- package/dist/shadow/{SvGrid.helpers-B2GEKrxS.js → SvGrid.helpers-tk7gWxcT.js} +1 -1
- package/dist/shadow/{SvGridCellEditor-DdqVsNeJ.js → SvGridCellEditor-Bhdpvez8.js} +159 -148
- package/dist/shadow/{SvGridChart-Bj2Pr2u9.js → SvGridChart-DHptYODr.js} +4 -4
- package/dist/shadow/{SvGridChartBuilder-Dpw2X4pR.js → SvGridChartBuilder-COttFU6T.js} +3 -3
- package/dist/{SvGridChartPanel-Ce78cR3g.js → shadow/SvGridChartPanel-DGMs4B9p.js} +6 -6
- package/dist/shadow/{SvGridChartView-CTfjtiXs.js → SvGridChartView-iQoET4TC.js} +2 -2
- package/dist/{cell-formatting-hb3vzxhJ.js → shadow/cell-formatting-5uEa4Y_0.js} +1 -0
- package/dist/{chart-export-pdf-Bc0Rz4kB.js → shadow/chart-export-pdf-C_iQ0kET.js} +1 -1
- package/dist/shadow/{chart-summary-BL4WDgEu.js → chart-summary-zpeh1XVx.js} +1 -1
- package/dist/shadow/{chart-nwSa4jQe.js → chart-xrT6cLA5.js} +1 -1
- package/dist/{export-format-DIcJWdKl.js → shadow/export-format-CWEVxATj.js} +1 -1
- package/dist/shadow/sv-grid-shadow-element.js +2541 -2514
- package/dist/sv-grid-element.js +2526 -2499
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { $ as e, A as t, C as n, D as r, I as i, J as a, L as o, M as s, O as c, Q as l, U as u, X as d, Y as f, at as p, f as m, j as h, k as g, n as _, nt as v, rt as y, tt as b, w as x, y as ee, z as S } from "./client-wYhMjrKG.js";
|
|
2
|
-
import { s as C } from "./SvGrid.helpers-
|
|
2
|
+
import { s as C } from "./SvGrid.helpers-tk7gWxcT.js";
|
|
3
3
|
import "./sv-grid-element.js";
|
|
4
4
|
//#region ../grid/dist/GridFooter.svelte
|
|
5
5
|
var w = s("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), te = s("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\">Numeric</span> </span>"), T = s("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), E = s("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), D = s("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), O = s("<span class=\"sv-grid-status-item\"><span class=\"sv-grid-status-label\"> </span> </span>"), k = s("<div class=\"sv-grid-status-bar\" role=\"status\" aria-live=\"polite\"></div>"), ne = s("<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>"), re = s("<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>"), A = s("<!> <!>", 1);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){try{var c=".sv-listbox.svelte-1qscmce{--_accent:var(--sg-accent,#2563eb);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));border-radius:var(--sg-radius,8px);--_fs:13px;outline:none;width:220px;margin:0;list-style:none}.sv-listbox.svelte-1qscmce:not(.is-virtual){max-height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:4px;overflow-y:auto}.sv-listbox.is-virtual.svelte-1qscmce{height:calc(var(--sv-rows,7) * var(--sv-row-h,32px) + 8px);padding:0;position:relative;overflow:hidden}.sv-listbox.is-block.svelte-1qscmce{width:100%}.sv-listbox--sm.svelte-1qscmce{--_fs:12px}.sv-listbox--lg.svelte-1qscmce{--_fs:15px}.sv-listbox.svelte-1qscmce:focus-visible{border-color:var(--_accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox.is-invalid.svelte-1qscmce{border-color:var(--sg-danger,#dc2626)}.sv-listbox.is-invalid.svelte-1qscmce:focus-visible{box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-danger,#dc2626) 22%, transparent)}.sv-listbox__vp.svelte-1qscmce{touch-action:none;position:absolute;inset:4px;overflow:hidden}.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__opt:where(.svelte-1qscmce),.sv-listbox.is-virtual.svelte-1qscmce .sv-listbox__group:where(.svelte-1qscmce){position:absolute;top:0;left:0;right:0}.sv-listbox__sb.svelte-1qscmce{z-index:2;width:10px;position:absolute;top:4px;bottom:4px;right:2px}.sv-listbox__thumb.svelte-1qscmce{background:color-mix(in srgb, currentColor 26%, transparent);cursor:default;touch-action:none;border-radius:4px;min-height:24px;position:absolute;top:0;left:2px;right:2px}.sv-listbox__thumb.svelte-1qscmce:hover,.sv-listbox__thumb.is-dragging.svelte-1qscmce{background:color-mix(in srgb, currentColor 42%, transparent)}.sv-listbox__opt.svelte-1qscmce{box-sizing:border-box;cursor:pointer;font-size:var(--_fs,13px);border-radius:6px;flex:none;align-items:center;gap:8px;padding:0 10px;display:flex}.sv-listbox__opt.is-active.svelte-1qscmce{background:var(--sg-row-hover-bg,#f1f5f9)}.sv-listbox__opt.is-selected.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 14%, transparent);color:var(--_accent);font-weight:600}.sv-listbox__opt.is-selected.is-active.svelte-1qscmce{background:color-mix(in srgb, var(--_accent) 22%, transparent)}.sv-listbox__opt.is-disabled.svelte-1qscmce{opacity:.4;cursor:not-allowed}.sv-listbox__group.svelte-1qscmce{box-sizing:border-box;text-transform:uppercase;letter-spacing:.04em;color:var(--sg-muted,#94a3b8);align-items:flex-end;padding:8px 10px 3px;font-size:10.5px;font-weight:700;display:flex}.sv-listbox__check.svelte-1qscmce{text-align:center;width:14px;color:var(--_accent)}.sv-listbox__label.svelte-1qscmce{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.sv-listbox__hint.svelte-1qscmce{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;flex:none;margin-inline-start:8px;font-size:.9em}.sv-listbox__box.svelte-1qscmce{box-sizing:border-box;border:1px solid var(--sg-input-border,var(--sg-border,#cbd5e1));background:var(--sg-input-bg,#fff);border-radius:3px;flex:none;width:14px;height:14px;position:relative}.sv-listbox__box.is-on.svelte-1qscmce{background:var(--_accent);border-color:var(--_accent)}.sv-listbox__box.is-on.svelte-1qscmce:after{content:\"\";border:solid var(--sg-input-bg,#fff);border-width:0 2px 2px 0;width:3px;height:7px;position:absolute;top:1px;left:4px;transform:rotate(45deg)}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected:where(.svelte-1qscmce){color:inherit;font-weight:inherit;background:0 0}.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-active:where(.svelte-1qscmce),.sv-listbox.is-checkbox.svelte-1qscmce .sv-listbox__opt.is-selected.is-active:where(.svelte-1qscmce){background:var(--sg-row-hover-bg,#f1f5f9)}\n";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="GridMenus"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"GridMenus");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
2
|
import { $ as e, A as t, C as n, D as r, G as i, I as a, J as o, K as s, L as c, M as l, N as u, O as d, Q as f, R as p, T as m, U as h, V as g, W as _, X as v, Y as y, _ as b, a as x, at as S, c as C, d as w, f as T, g as E, h as D, it as O, j as k, k as A, l as j, n as M, nt as N, o as ee, ot as te, p as ne, q as re, rt as P, s as F, tt as I, u as ie, v as L, w as R, x as ae, y as z, z as B } from "./client-wYhMjrKG.js";
|
|
3
|
-
import { S as oe, h as se, r as ce, u as le, w as ue } from "./SvGrid.helpers-
|
|
3
|
+
import { S as oe, h as se, r as ce, u as le, w as ue } from "./SvGrid.helpers-tk7gWxcT.js";
|
|
4
4
|
import { c as V, s as de, t as fe } from "./svelte-virtualizer.svelte-Bftvroa6.js";
|
|
5
5
|
import { n as H } from "./grid-extension.svelte-6IzZ_3Cv.js";
|
|
6
6
|
import { i as pe, t as me } from "./editor-contract-peBDxir_.js";
|
|
@@ -952,7 +952,7 @@ function Ct(a, l) {
|
|
|
952
952
|
let e = B(Y) ?? B(q);
|
|
953
953
|
if (!e) return;
|
|
954
954
|
let t = B(Te).find((t) => t.id === e);
|
|
955
|
-
ue(t?.columnDef) && (B(zt) || import("./SvDateTimePicker-
|
|
955
|
+
ue(t?.columnDef) && (B(zt) || import("./SvDateTimePicker-IsJpZskc.js").then((e) => f(zt, e.default, !0)), B(Bt) || import("./SvDateRangeInput-EIQRPO_K.js").then((e) => f(Bt, e.default, !0)));
|
|
956
956
|
});
|
|
957
957
|
function Vt(e, t) {
|
|
958
958
|
let n = () => {
|
|
@@ -13,7 +13,7 @@ function A(r, o) {
|
|
|
13
13
|
clear: "Clear",
|
|
14
14
|
open: "Open calendar",
|
|
15
15
|
to: "to"
|
|
16
|
-
}, j = v(o, "value", 3, null), fe = v(o, "formatString", 3, "yyyy-MM-dd"), pe = v(o, "min", 3, null), me = v(o, "max", 3, null), he = v(o, "months", 3, 2), ge = v(o, "firstDayOfWeek", 3, 0),
|
|
16
|
+
}, j = v(o, "value", 3, null), fe = v(o, "formatString", 3, "yyyy-MM-dd"), pe = v(o, "min", 3, null), me = v(o, "max", 3, null), he = v(o, "months", 3, 2), ge = v(o, "firstDayOfWeek", 3, 0), _e = v(o, "weekNumbers", 3, !1), M = v(o, "locale", 19, () => typeof navigator < "u" ? navigator.language : "en-US"), N = v(o, "placeholder", 3, "Select date range"), P = v(o, "animate", 3, !1), F = v(o, "autoOpen", 3, !1), I = v(o, "disabled", 3, !1), ve = v(o, "readonly", 3, !1), ye = v(o, "size", 3, "md"), L = v(o, "invalid", 3, !1), R = v(o, "block", 3, !1), z = v(o, "required", 3, !1), be = E("sv-daterange"), B = x(() => o.id ?? be), V = x(() => T(A, o.messages)), H = x(() => o.dir === "ltr" || o.dir === "rtl" ? o.dir : void 0), U = x(() => !I() && !ve()), W = (e) => k(e, fe(), M()), xe = x(() => {
|
|
17
17
|
if (!j()) return "";
|
|
18
18
|
let [e, t] = j();
|
|
19
19
|
return e && t ? `${W(e)} ${w(V).to} ${W(t)}` : e ? W(e) : "";
|
|
@@ -66,7 +66,7 @@ function A(r, o) {
|
|
|
66
66
|
e.key === "Escape" ? J() : e.key === "ArrowDown" && (e.altKey || !j()) && (e.preventDefault(), q());
|
|
67
67
|
}
|
|
68
68
|
function Ee(e) {
|
|
69
|
-
|
|
69
|
+
F() && (e.focus(), q());
|
|
70
70
|
}
|
|
71
71
|
se(r, {
|
|
72
72
|
get id() {
|
|
@@ -87,6 +87,9 @@ function A(r, o) {
|
|
|
87
87
|
get dir() {
|
|
88
88
|
return o.dir;
|
|
89
89
|
},
|
|
90
|
+
get block() {
|
|
91
|
+
return R();
|
|
92
|
+
},
|
|
90
93
|
children: (e, r) => {
|
|
91
94
|
var l = de();
|
|
92
95
|
let f;
|
|
@@ -98,16 +101,16 @@ function A(r, o) {
|
|
|
98
101
|
class: "sv-dri__input",
|
|
99
102
|
type: "text",
|
|
100
103
|
readonly: !0,
|
|
101
|
-
placeholder:
|
|
104
|
+
placeholder: N(),
|
|
102
105
|
value: w(xe),
|
|
103
|
-
disabled:
|
|
106
|
+
disabled: I(),
|
|
104
107
|
...e,
|
|
105
108
|
"aria-haspopup": "dialog",
|
|
106
109
|
"aria-expanded": w(K),
|
|
107
110
|
onkeydown: Te
|
|
108
111
|
}), [() => ne({
|
|
109
112
|
id: w(B),
|
|
110
|
-
invalid:
|
|
113
|
+
invalid: L(),
|
|
111
114
|
required: z(),
|
|
112
115
|
error: o.error,
|
|
113
116
|
hint: o.hint,
|
|
@@ -144,16 +147,16 @@ function A(r, o) {
|
|
|
144
147
|
return ge();
|
|
145
148
|
},
|
|
146
149
|
get weekNumbers() {
|
|
147
|
-
return
|
|
150
|
+
return _e();
|
|
148
151
|
},
|
|
149
152
|
get locale() {
|
|
150
|
-
return
|
|
153
|
+
return M();
|
|
151
154
|
},
|
|
152
155
|
get presets() {
|
|
153
156
|
return o.presets;
|
|
154
157
|
},
|
|
155
158
|
get animate() {
|
|
156
|
-
return
|
|
159
|
+
return P();
|
|
157
160
|
},
|
|
158
161
|
get dir() {
|
|
159
162
|
return w(H);
|
|
@@ -182,9 +185,9 @@ function A(r, o) {
|
|
|
182
185
|
o.name && e(k);
|
|
183
186
|
}), m(l), c(() => {
|
|
184
187
|
f = C(l, 1, "sv-dri svelte-1rb3yee", null, f, {
|
|
185
|
-
"is-block":
|
|
186
|
-
"sv-dri--disabled":
|
|
187
|
-
}), y = C(v, 1, `sv-dri__field sv-dri__field--${
|
|
188
|
+
"is-block": R(),
|
|
189
|
+
"sv-dri--disabled": I()
|
|
190
|
+
}), y = C(v, 1, `sv-dri__field sv-dri__field--${ye() ?? ""}`, "svelte-1rb3yee", y, { "is-invalid": L() }), g(v, "dir", w(H)), v.dir = v.dir;
|
|
188
191
|
}), a("click", v, () => {
|
|
189
192
|
w(U) && (w(X)?.focus(), Se());
|
|
190
193
|
}), t(e, l);
|