@ishibashi0112/spreadsheet-grid-solid 1.14.0 → 1.15.0
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/API_REFERENCE.md +101 -13
- package/README.md +9 -9
- package/dist/{ColumnFilterPopover-t32VGfTq.js → ColumnFilterPopover-DYnfyUTm.js} +40 -41
- package/dist/devWarnings.d.ts +1 -0
- package/dist/features/pagination.d.ts +2 -0
- package/dist/features/types.d.ts +7 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3610 -3315
- package/dist/inputValue-Dvxw-RUC.js +69 -0
- package/dist/primitives/rowDrag.d.ts +1 -0
- package/dist/source/chunks/{ColumnFilterPopover-JL3HPGXY.jsx → ColumnFilterPopover-7COSTSPD.jsx} +2 -4
- package/dist/source/chunks/{chunk-AI3CSPI3.jsx → chunk-D4IAL3ZE.jsx} +43 -1
- package/dist/source/chunks/{toolPanelViews-N6TGBFFW.jsx → toolPanelViews-WBFE4QVY.jsx} +2 -4
- package/dist/source/index.jsx +920 -477
- package/dist/style.css +1 -1
- package/dist/style.layer.css +1 -1
- package/dist/{toolPanelViews-CPYtBTQP.js → toolPanelViews-BgEAIDpk.js} +35 -36
- package/dist/view/DefaultGridBottomBar.d.ts +3 -0
- package/dist/view/DefaultGridTopBar.d.ts +1 -0
- package/dist/view/GridBodyGroupRow.d.ts +1 -0
- package/dist/view/GridBodyLabelRow.d.ts +1 -0
- package/dist/view/GridBodyLayer.d.ts +1 -0
- package/dist/view/GridBodySkeletonRow.d.ts +2 -0
- package/dist/view/GridPager.d.ts +9 -0
- package/dist/view/GridScrollHint.d.ts +2 -0
- package/dist/view/GridStickyLabelLayer.d.ts +1 -0
- package/package.json +3 -3
- package/skills/spreadsheet-grid-solid/SKILL.md +3 -1
- package/dist/inputValue-C6BHBMBx.js +0 -24
- package/dist/portalTokens-LgUwLYnR.js +0 -47
- package/dist/source/chunks/chunk-WLXZT66B.jsx +0 -44
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { a as e } from "./localeText-CCqvpkYM.js";
|
|
2
2
|
import { n as t, r as n, t as r } from "./columnVirtualizer-DdL7-ijS.js";
|
|
3
|
-
import { i,
|
|
4
|
-
import { n as c, r as l, t as u } from "./inputValue-C6BHBMBx.js";
|
|
3
|
+
import { i, l as a, n as o, o as s, r as c, s as l, t as u } from "./inputValue-Dvxw-RUC.js";
|
|
5
4
|
import { For as d, Match as f, Show as p, Switch as m, createEffect as h, createMemo as g, createSignal as _, onCleanup as v, untrack as y } from "solid-js";
|
|
6
5
|
import { Portal as b, addEvent as x, className as S, createComponent as C, delegateEvents as w, effect as T, heldRead as E, insert as D, memo as O, readShallow as k, ref as A, setAttribute as j, setStyleProperty as M, spread as N, style as ee, template as P } from "@solidjs/web";
|
|
7
6
|
import { formatLocaleText as F } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText";
|
|
@@ -25,11 +24,11 @@ import { buildCalendarDayCells as _e, buildYearGrid as ve, formatFilterDateDispl
|
|
|
25
24
|
//#region src/view/FilterDateField.tsx
|
|
26
25
|
var xe = /* @__PURE__ */ P("<div class=ssg-dp-root><div class=ssg-dp-field><input type=text inputmode=numeric placeholder=yyyy/mm/dd class=ssg-dp-input><button><svg width=12 height=12 viewBox=\"0 0 16 16\"aria-hidden=true><rect x=1.5 y=2.5 width=13 height=12 rx=1.5 fill=none stroke=currentColor></rect><line x1=1.5 y1=6 x2=14.5 y2=6 stroke=currentColor></line><line x1=5 y1=1 x2=5 y2=4 stroke=currentColor></line><line x1=11 y1=1 x2=11 y2=4 stroke=currentColor>"), Se = /* @__PURE__ */ P("<div class=ssg-dp-panel><div class=ssg-dp-nav><button>‹</button><button></button><button>›</button></div><!><!><div class=ssg-dp-foot><button></button><button>"), Ce = /* @__PURE__ */ P("<div class=ssg-dp-dow>"), we = /* @__PURE__ */ P("<div class=ssg-dp-days>"), Te = /* @__PURE__ */ P("<span>"), Z = /* @__PURE__ */ P("<button>"), Ee = /* @__PURE__ */ P("<div class=ssg-dp-grid>");
|
|
27
26
|
function De(t) {
|
|
28
|
-
let n = e(), [r, i] = _(null), [a, o] = _(!1), [s,
|
|
27
|
+
let n = e(), [r, i] = _(null), [a, o] = _(!1), [s, l] = _(!1), [u, f] = _("days"), [p, m] = _((/* @__PURE__ */ new Date()).getFullYear()), [b, x] = _((/* @__PURE__ */ new Date()).getMonth()), S, w = !1;
|
|
29
28
|
v(() => {
|
|
30
29
|
w = !0, t.inputRef && t.inputRef.current === E && (t.inputRef.current = null);
|
|
31
30
|
});
|
|
32
|
-
let E, k = g(() => r() ?? ye(t.value)), M = () => R(/* @__PURE__ */ new Date()) ?? "", ee =
|
|
31
|
+
let E, k = g(() => r() ?? ye(t.value)), M = () => R(/* @__PURE__ */ new Date()) ?? "", ee = c(k), P = () => {
|
|
33
32
|
let e = y(r);
|
|
34
33
|
if (e === null) return;
|
|
35
34
|
let n = e.trim();
|
|
@@ -45,9 +44,9 @@ function De(t) {
|
|
|
45
44
|
t.onCommit(a), i(null), o(!1);
|
|
46
45
|
}, L = () => {
|
|
47
46
|
let [e, n] = (t.value === "" ? M() : t.value).split("-");
|
|
48
|
-
m(Number(e)), x(Number(n) - 1), f("days"),
|
|
47
|
+
m(Number(e)), x(Number(n) - 1), f("days"), l(!0);
|
|
49
48
|
}, V = () => {
|
|
50
|
-
|
|
49
|
+
l(!1);
|
|
51
50
|
}, H = (e) => {
|
|
52
51
|
t.onCommit(e), i(null), o(!1), V();
|
|
53
52
|
};
|
|
@@ -55,7 +54,7 @@ function De(t) {
|
|
|
55
54
|
if (!e) return;
|
|
56
55
|
let t = (e) => {
|
|
57
56
|
let t = B(e, S ?? null);
|
|
58
|
-
t && S?.contains(t) ||
|
|
57
|
+
t && S?.contains(t) || l(!1);
|
|
59
58
|
};
|
|
60
59
|
return document.addEventListener("pointerdown", t, !0), () => {
|
|
61
60
|
document.removeEventListener("pointerdown", t, !0);
|
|
@@ -310,7 +309,7 @@ function ht() {
|
|
|
310
309
|
}
|
|
311
310
|
var gt = (e, t, n) => t === 0 ? n ? e.filterNoOptionsSource : e.noOptions : e.filterNoMatches;
|
|
312
311
|
function _t(t) {
|
|
313
|
-
let n = e(), [i,
|
|
312
|
+
let n = e(), [i, s] = _(""), c = g(() => dt(t.options, n().blank)), l = g(() => K(c(), i())), f = g(() => i().trim().length > 0), p, m = lt(), h = r(() => ({
|
|
314
313
|
count: l().length,
|
|
315
314
|
getScrollElement: () => p ?? null,
|
|
316
315
|
estimateSize: () => m,
|
|
@@ -333,7 +332,7 @@ function _t(t) {
|
|
|
333
332
|
return r;
|
|
334
333
|
}), w = g(() => l().length > 0 && S() === l().length), k = g(() => S() > 0 && !w()), N = g(() => new Set(t.options.map((e) => e.value))), ee = g(() => mt(t.setSelection, N(), t.options.length)), P = () => {
|
|
335
334
|
t.onSelectAllChange(y(f) || t.selectAllUsesExplicitScope ? y(l).map((e) => e.value) : "all", !y(w));
|
|
336
|
-
}, L =
|
|
335
|
+
}, L = o(k), R = ot(() => t.searchInputRef);
|
|
337
336
|
return [
|
|
338
337
|
(() => {
|
|
339
338
|
var e = ke();
|
|
@@ -341,11 +340,11 @@ function _t(t) {
|
|
|
341
340
|
if (e.stopPropagation(), e.key === "Escape" && (e.preventDefault(), t.onRequestClose()), e.key === "Enter") {
|
|
342
341
|
if (I(e)) return;
|
|
343
342
|
e.preventDefault();
|
|
344
|
-
let n = te(y(
|
|
343
|
+
let n = te(y(c), e.currentTarget.value);
|
|
345
344
|
if (n.kind === "none") return;
|
|
346
345
|
n.kind === "replace" && t.onReplaceSelection(n.values), t.onRequestClose();
|
|
347
346
|
}
|
|
348
|
-
}, e._$$input = (e) =>
|
|
347
|
+
}, e._$$input = (e) => s(e.currentTarget.value), A(() => R, e), T(() => ({
|
|
349
348
|
e: n().filterSearchPlaceholder,
|
|
350
349
|
t: n().filterSearchPlaceholder
|
|
351
350
|
}), ({ e: t, t: n }, r) => {
|
|
@@ -408,7 +407,7 @@ function _t(t) {
|
|
|
408
407
|
];
|
|
409
408
|
}
|
|
410
409
|
function vt(t) {
|
|
411
|
-
let n = e(), r = g(() => re(t.draft.operator)), i =
|
|
410
|
+
let n = e(), r = g(() => re(t.draft.operator)), i = c(() => t.draft.operator);
|
|
412
411
|
return [(() => {
|
|
413
412
|
var e = Ie();
|
|
414
413
|
return x(e, "keydown", t.onKeyDown, !0), e.addEventListener("change", (e) => t.onDraftChange({
|
|
@@ -483,7 +482,7 @@ function vt(t) {
|
|
|
483
482
|
})())];
|
|
484
483
|
}
|
|
485
484
|
function yt(e) {
|
|
486
|
-
let t =
|
|
485
|
+
let t = c(() => e.value()), n = ot(() => e.inputRef);
|
|
487
486
|
var r = Ve();
|
|
488
487
|
return x(r, "keydown", e.onKeyDown, !0), r.addEventListener("compositionend", (t) => e.onCommit(t.currentTarget.value)), r._$$input = (t) => e.onChange(t.currentTarget.value, t), A(() => (e) => {
|
|
489
488
|
n(e), t(e);
|
|
@@ -496,7 +495,7 @@ function yt(e) {
|
|
|
496
495
|
}), r;
|
|
497
496
|
}
|
|
498
497
|
function bt(t) {
|
|
499
|
-
let n = e(), r = g(() => ce(t.draft.operator)), i =
|
|
498
|
+
let n = e(), r = g(() => ce(t.draft.operator)), i = c(() => t.draft.operator);
|
|
500
499
|
return [(() => {
|
|
501
500
|
var e = Ie();
|
|
502
501
|
return x(e, "keydown", t.onKeyDown, !0), e.addEventListener("change", (e) => t.onDraftChange({
|
|
@@ -544,7 +543,7 @@ function bt(t) {
|
|
|
544
543
|
})())];
|
|
545
544
|
}
|
|
546
545
|
function xt(t) {
|
|
547
|
-
let n = e(), r = g(() => t.draft.preset === null ? fe(t.draft.operator) : 0), i =
|
|
546
|
+
let n = e(), r = g(() => t.draft.preset === null ? fe(t.draft.operator) : 0), i = c(() => t.draft.operator), a = (e, n) => {
|
|
548
547
|
t.onDraftChange({
|
|
549
548
|
...t.draft,
|
|
550
549
|
[e]: me(n),
|
|
@@ -564,7 +563,7 @@ function xt(t) {
|
|
|
564
563
|
},
|
|
565
564
|
slot: e
|
|
566
565
|
}));
|
|
567
|
-
}, s = g(() => r() === 2 ? "from" : "single"),
|
|
566
|
+
}, s = g(() => r() === 2 ? "from" : "single"), l = (e) => {
|
|
568
567
|
t.onDraftChange({
|
|
569
568
|
...t.draft,
|
|
570
569
|
preset: t.draft.preset === e ? null : e
|
|
@@ -676,7 +675,7 @@ function xt(t) {
|
|
|
676
675
|
return N(n, [
|
|
677
676
|
{ type: "button" },
|
|
678
677
|
() => $((t) => {
|
|
679
|
-
|
|
678
|
+
l(e().id), W(t);
|
|
680
679
|
}),
|
|
681
680
|
{ get class() {
|
|
682
681
|
return ["ssg-filter-preset-chip", { "ssg-filter-preset-chip--active": t.draft.preset === e().id }];
|
|
@@ -688,7 +687,7 @@ function xt(t) {
|
|
|
688
687
|
];
|
|
689
688
|
}
|
|
690
689
|
function St(t) {
|
|
691
|
-
let n = e(), [i,
|
|
690
|
+
let n = e(), [i, s] = _(""), [c, l] = _(/* @__PURE__ */ new Set()), f = g(() => i().trim().length > 0), p = g(() => dt(t.options, n().blank)), m = g(() => K(p(), i())), h = g(() => ge(t.options, c(), n())), v, b = g(() => f() ? m().length : h().length), S = lt(), w = r(() => ({
|
|
692
691
|
count: b(),
|
|
693
692
|
getScrollElement: () => v ?? null,
|
|
694
693
|
estimateSize: () => S,
|
|
@@ -735,8 +734,8 @@ function St(t) {
|
|
|
735
734
|
}
|
|
736
735
|
let n = y(() => t.setSelection), r = e.leafKeys.length > 0 && W(e.leafKeys, n) === e.leafKeys.length;
|
|
737
736
|
t.onSelectAllChange(e.leafKeys, !r);
|
|
738
|
-
}, J =
|
|
739
|
-
let r = g(() => W(e.row().leafKeys, t.setSelection)), i = g(() => e.row().leafKeys.length > 0 && r() === e.row().leafKeys.length), a = g(() => r() > 0 && !i()),
|
|
737
|
+
}, J = o(B), Y = ot(() => t.searchInputRef), X = (e) => {
|
|
738
|
+
let r = g(() => W(e.row().leafKeys, t.setSelection)), i = g(() => e.row().leafKeys.length > 0 && r() === e.row().leafKeys.length), a = g(() => r() > 0 && !i()), s = o(a), c = () => ut(e.row().key, e.row().label, n().blank);
|
|
740
739
|
return [
|
|
741
740
|
O(() => O(() => e.row().type === "group")() ? (() => {
|
|
742
741
|
var t = Q();
|
|
@@ -753,9 +752,9 @@ function St(t) {
|
|
|
753
752
|
})() : Ke()),
|
|
754
753
|
(() => {
|
|
755
754
|
var t = We();
|
|
756
|
-
return x(t, "change", u(a, () => G(y(e.row)))), A(() =>
|
|
755
|
+
return x(t, "change", u(a, () => G(y(e.row)))), A(() => s, t), T(() => ({
|
|
757
756
|
e: i(),
|
|
758
|
-
t:
|
|
757
|
+
t: c(),
|
|
759
758
|
a: E()
|
|
760
759
|
}), ({ e, t: n, a: r }, i) => {
|
|
761
760
|
(e !== i?.e || !r) && (t.checked = e), n !== i?.t && j(t, "aria-label", n);
|
|
@@ -763,7 +762,7 @@ function St(t) {
|
|
|
763
762
|
})(),
|
|
764
763
|
(() => {
|
|
765
764
|
var e = Ge();
|
|
766
|
-
return D(e,
|
|
765
|
+
return D(e, c), e;
|
|
767
766
|
})()
|
|
768
767
|
];
|
|
769
768
|
};
|
|
@@ -778,7 +777,7 @@ function St(t) {
|
|
|
778
777
|
if (n.kind === "none") return;
|
|
779
778
|
n.kind === "replace" && t.onReplaceSelection(n.values), t.onRequestClose();
|
|
780
779
|
}
|
|
781
|
-
}, e._$$input = (e) =>
|
|
780
|
+
}, e._$$input = (e) => s(e.currentTarget.value), A(() => Y, e), T(() => ({
|
|
782
781
|
e: n().filterSearchPlaceholder,
|
|
783
782
|
t: n().filterSearchPlaceholder
|
|
784
783
|
}), ({ e: t, t: n }, r) => {
|
|
@@ -890,7 +889,7 @@ function Ct(t) {
|
|
|
890
889
|
})());
|
|
891
890
|
}
|
|
892
891
|
function wt(t) {
|
|
893
|
-
let n = e(), r =
|
|
892
|
+
let n = e(), r = c(() => t.draftValue), i = ot(() => t.selectRef);
|
|
894
893
|
return [(() => {
|
|
895
894
|
var e = Qe(), a = e.firstChild;
|
|
896
895
|
return e._$$keydown = (e) => {
|
|
@@ -921,7 +920,7 @@ function wt(t) {
|
|
|
921
920
|
})()];
|
|
922
921
|
}
|
|
923
922
|
function Tt(t) {
|
|
924
|
-
let n = e(), r =
|
|
923
|
+
let n = e(), r = c(() => t.draftValue), i = ot(() => t.textInputRef);
|
|
925
924
|
return [(() => {
|
|
926
925
|
var e = Ve();
|
|
927
926
|
return e._$$keydown = (e) => {
|
|
@@ -984,23 +983,23 @@ function Et(t) {
|
|
|
984
983
|
];
|
|
985
984
|
}
|
|
986
985
|
function Dt(r) {
|
|
987
|
-
let
|
|
986
|
+
let o = e(), c = s().container(), u = { current: null }, d = /* @__PURE__ */ new Date(), p = V();
|
|
988
987
|
t(p, () => ({ active: r.filterType === "dateSet" && (r.dateConditionDraft?.preset ?? null) !== null }), "render", "filterDateRollover");
|
|
989
988
|
let h = n(p, "filterDateRolloverStore"), y = () => he(d, h()), [x, w] = _(), E;
|
|
990
989
|
v(() => {
|
|
991
990
|
E?.removeEventListener("keydown", Ce, !0), r.panelRef.current === E && (r.panelRef.current = null);
|
|
992
991
|
});
|
|
993
992
|
let M = g(() => r.layout);
|
|
994
|
-
|
|
993
|
+
i(x, () => r.themeClassName, M);
|
|
995
994
|
let P = g(() => r.filterType), R = g(() => P() === "set"), z = g(() => P() === "numberSet"), B = g(() => P() === "textSet"), U = g(() => P() === "dateSet"), W = g(() => z() || B() || U()), K = g(() => R() || W()), te = g(() => K() || P() === "select"), q = g(() => {
|
|
996
995
|
if (!te()) return "ready";
|
|
997
996
|
let e = r.optionsStatus;
|
|
998
997
|
return e === "collecting" ? "collecting" : e === "loading" || e === "error" ? "pending" : "ready";
|
|
999
|
-
}), Y = g(() => r.optionsStatus === "loading" ? "loading" : "error"), re = g(() => r.numberConditionDraft ?? J), ae = g(() => r.textConditionDraft ?? ie), ce = g(() => r.dateConditionDraft ?? ue), le = g(() => r.datePresets ?? H(void 0,
|
|
998
|
+
}), Y = g(() => r.optionsStatus === "loading" ? "loading" : "error"), re = g(() => r.numberConditionDraft ?? J), ae = g(() => r.textConditionDraft ?? ie), ce = g(() => r.dateConditionDraft ?? ue), le = g(() => r.datePresets ?? H(void 0, o())), fe = g(() => z() ? X(re()) : null), me = g(() => B() ? oe(ae()) : null), ge = g(() => U() ? de(ce()) : null), _e = g(() => fe() !== null || me() !== null || ge() !== null), ve = g(() => z() ? ne(r.selectOptions, fe()) : B() ? se(r.selectOptions, me()) : U() ? pe(r.selectOptions, ge(), y(), le()) : r.selectOptions), ye = g(() => {
|
|
1000
999
|
let e = q();
|
|
1001
|
-
if (e === "collecting") return
|
|
1002
|
-
if (e === "pending") return Y() === "loading" ?
|
|
1003
|
-
}), be = () => F(
|
|
1000
|
+
if (e === "collecting") return o().filterOptionsLoadingShort;
|
|
1001
|
+
if (e === "pending") return Y() === "loading" ? o().filterOptionsLoadingShort : o().filterOptionsFailedShort;
|
|
1002
|
+
}), be = () => F(o().filterCollecting, { percent: Math.round(r.optionsProgress * 100) }), xe = (e) => {
|
|
1004
1003
|
if (e.stopPropagation(), !I(e)) {
|
|
1005
1004
|
if (e.key === "Enter") {
|
|
1006
1005
|
e.preventDefault(), r.onApply();
|
|
@@ -1011,7 +1010,7 @@ function Dt(r) {
|
|
|
1011
1010
|
}, Se = (e) => {
|
|
1012
1011
|
e.stopPropagation(), e.key === "Escape" && !L(e) && !I(e) && (e.preventDefault(), r.onRequestClose());
|
|
1013
1012
|
}, Ce = (e) => {
|
|
1014
|
-
if (
|
|
1013
|
+
if (l(e) !== "Tab" || e.altKey || e.ctrlKey || e.metaKey || I(e)) return;
|
|
1015
1014
|
let t = e.currentTarget, n = G(t, e.target instanceof Element ? e.target : null, e.shiftKey);
|
|
1016
1015
|
n !== null && (e.preventDefault(), n.focus());
|
|
1017
1016
|
}, we = () => C(m, { get children() {
|
|
@@ -1353,15 +1352,15 @@ function Dt(r) {
|
|
|
1353
1352
|
}
|
|
1354
1353
|
})
|
|
1355
1354
|
];
|
|
1356
|
-
} }), Z = () => F(
|
|
1355
|
+
} }), Z = () => F(o().filterTitle, { column: r.title }), Ee = () => ({
|
|
1357
1356
|
...r.popoverSlot?.style,
|
|
1358
1357
|
top: a(M().top),
|
|
1359
1358
|
left: a(M().left),
|
|
1360
1359
|
width: a(M().width),
|
|
1361
1360
|
"max-height": a(M().maxHeight)
|
|
1362
1361
|
});
|
|
1363
|
-
return
|
|
1364
|
-
mount:
|
|
1362
|
+
return c ? C(b, {
|
|
1363
|
+
mount: c,
|
|
1365
1364
|
get children() {
|
|
1366
1365
|
var e = at(), t = e.firstChild, n = t.nextSibling, i = n.nextSibling;
|
|
1367
1366
|
return e._$$keydown = Se, e._$$pointerdown = (e) => e.stopPropagation(), A(() => (e) => {
|
|
@@ -1370,7 +1369,7 @@ function Dt(r) {
|
|
|
1370
1369
|
var e = O(() => !K());
|
|
1371
1370
|
return () => e() ? (() => {
|
|
1372
1371
|
var e = et();
|
|
1373
|
-
return D(e, () => F(
|
|
1372
|
+
return D(e, () => F(o().filterCurrentValue, { value: r.currentValueText })), e;
|
|
1374
1373
|
})() : void 0;
|
|
1375
1374
|
})(), i), D(i, (() => {
|
|
1376
1375
|
var e = O(() => !!K());
|
|
@@ -1380,28 +1379,28 @@ function Dt(r) {
|
|
|
1380
1379
|
{ type: "button" },
|
|
1381
1380
|
() => $(() => r.onSetClear()),
|
|
1382
1381
|
{ class: "ssg-filter-btn-secondary" }
|
|
1383
|
-
], !0), D(e, () =>
|
|
1382
|
+
], !0), D(e, () => o().clear), e;
|
|
1384
1383
|
})(), (() => {
|
|
1385
1384
|
var e = Q();
|
|
1386
1385
|
return N(e, [
|
|
1387
1386
|
{ type: "button" },
|
|
1388
1387
|
() => $(() => r.onRequestClose()),
|
|
1389
1388
|
{ class: "ssg-filter-btn-primary" }
|
|
1390
|
-
], !0), D(e, () =>
|
|
1389
|
+
], !0), D(e, () => o().close), e;
|
|
1391
1390
|
})()] : [(() => {
|
|
1392
1391
|
var e = Q();
|
|
1393
1392
|
return N(e, [
|
|
1394
1393
|
{ type: "button" },
|
|
1395
1394
|
() => $(() => r.onClear()),
|
|
1396
1395
|
{ class: "ssg-filter-btn-secondary" }
|
|
1397
|
-
], !0), D(e, () =>
|
|
1396
|
+
], !0), D(e, () => o().clear), e;
|
|
1398
1397
|
})(), (() => {
|
|
1399
1398
|
var e = Q();
|
|
1400
1399
|
return N(e, [
|
|
1401
1400
|
{ type: "button" },
|
|
1402
1401
|
() => $(() => r.onApply()),
|
|
1403
1402
|
{ class: "ssg-filter-btn-primary" }
|
|
1404
|
-
], !0), D(e, () =>
|
|
1403
|
+
], !0), D(e, () => o().apply), e;
|
|
1405
1404
|
})()];
|
|
1406
1405
|
})()), T(() => ({
|
|
1407
1406
|
e: k([
|
package/dist/devWarnings.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export type ShellDevWarningArgs = {
|
|
|
39
39
|
rangeDecorationWarnCount: number;
|
|
40
40
|
rangeDecorationWithoutRowKeysWarning: string | undefined;
|
|
41
41
|
hasRowKeyGetter: () => boolean;
|
|
42
|
+
autoPageSizeWithAutoHeight: () => boolean;
|
|
42
43
|
};
|
|
43
44
|
declare function createShellDevWarningsInDev(args: ShellDevWarningArgs): void;
|
|
44
45
|
export declare const createShellDevWarnings: typeof createShellDevWarningsInDev;
|
package/dist/features/types.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ import type { formatTotalRowCellText, resolveTotalRowCaption, resolveTotalRowLab
|
|
|
5
5
|
import type { buildRevertMenuItems, describeUnsavedCell, formatUnsavedSummary } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/changeTracking';
|
|
6
6
|
import type { resolveNewRowPlaceholder } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/newRow';
|
|
7
7
|
import type { createRangeDecorationResolver } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/rangeDecorations';
|
|
8
|
+
import type { resolveAutoPageSize, resolvePaginationOptions } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/pagination';
|
|
8
9
|
import type { describeChangeNavTarget, describeDiffCell, formatDiffOriginalText, formatDiffSummaryParts, nextChangeNavAnnouncement } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/diffView';
|
|
9
10
|
import type { GridRangeDecorationFrames } from '../view/GridRangeDecorations.js';
|
|
11
|
+
import type { GridPager } from '../view/GridPager.js';
|
|
10
12
|
import type { GridDiffBarChip } from '../view/GridDiffBar.js';
|
|
11
13
|
import type { GridLocaleText } from '@ishibashi0112/spreadsheet-grid-core';
|
|
12
14
|
import type { GridChip } from '../view/GridChip.js';
|
|
@@ -107,6 +109,11 @@ export type SolidGridFeatures = {
|
|
|
107
109
|
newRow?: (NonNullable<GridCoreFeatures['newRow']> & FeatureLocaleDefaults & {
|
|
108
110
|
resolveNewRowPlaceholder: typeof resolveNewRowPlaceholder;
|
|
109
111
|
}) | undefined;
|
|
112
|
+
pagination?: (NonNullable<GridCoreFeatures['pagination']> & FeatureLocaleDefaults & {
|
|
113
|
+
resolvePaginationOptions: typeof resolvePaginationOptions;
|
|
114
|
+
resolveAutoPageSize: typeof resolveAutoPageSize;
|
|
115
|
+
Pager: typeof GridPager;
|
|
116
|
+
}) | undefined;
|
|
110
117
|
excelShortcuts?: NonNullable<GridCoreFeatures['excelShortcuts']> | undefined;
|
|
111
118
|
treeData?: (NonNullable<GridCoreFeatures['treeData']> & FeatureLocaleDefaults & {
|
|
112
119
|
TreeCellPrefix: typeof GridTreeCellPrefix;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export { multiSelectFeature } from './features/multiSelect.js';
|
|
|
21
21
|
export { changeTrackingFeature } from './features/changeTracking.js';
|
|
22
22
|
export { diffViewFeature } from './features/diffView.js';
|
|
23
23
|
export { rangeDecorationsFeature } from './features/rangeDecorations.js';
|
|
24
|
+
export { paginationFeature } from './features/pagination.js';
|
|
24
25
|
export { excelShortcutsFeature } from './features/excelShortcuts.js';
|
|
25
26
|
export { newRowFeature } from './features/newRow.js';
|
|
26
27
|
export { treeDataFeature } from './features/treeData.js';
|
|
@@ -40,6 +41,6 @@ export { numberFormatter } from '@ishibashi0112/spreadsheet-grid-core/internal/l
|
|
|
40
41
|
export { numberParser } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers';
|
|
41
42
|
export { restoreColumnsFromState } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/gridState';
|
|
42
43
|
export { preloadGridPopups } from './view/lazyPopups.js';
|
|
43
|
-
export type { SpreadsheetGridProps, GridColumn, GridColumnPinned, GridColumnEditor, EditorCommitDirection, EditorEnterMove, CellEditorContext, GridSelectEditorOption, GridSelectLoadOptionsParams, GridSelectFillRowContext, GridValidationMode, CellValidationContext, CellValidationResult, GridInvalidCell, EditorCommitResult, GridChanges, GridChangedRow, GridChangesSummary, GridChangesSavedTarget, GridAddedRow, GridRemovedRow, GridTrackChangesOptions, GridRangeDecoration, GridTreeDataOptions, GridTreeRow, CellTreeContext, CellTreeState, TreeRowOpenChangeParams, GridRevealRowOptions, GridRowKey, GridAggFuncName, GridAggFuncParams, GridAggFunc, GridGroupRow, GridSelectFilterOption, GetFilterOptionsParams, GetFilterOptionsResult, ColumnFilterTypeOption, ColumnFilterUiType, CellRenderContext, HeaderRenderContext, GridColumnGroup, GridColumnGroupCollapsible, ColumnGroupHeaderRenderContext, ColumnGroupOpenChangeParams, GridExportColumnGroup, CellStyleContext, CanEditCellContext, GridConditionalFormat, RowStyleContext, DetailRowOptions, GridClassNames, GridSlotProps, GridFrameworkTypes, SolidGridTypes, DetailRowRenderContext, CellDetailContext, LabelRowOptions, LabelRowRenderContext, GridLabelRow, LabelRowSortMode, TotalRowOptions, TotalRowCellContext, TotalRowCellKind, FillHandleOptions, GridFillValueParams, GridFillDirection, GridFillKind, RowDragContext, RowMoveParams, RowDropParams, GridCellRef, GridCellEventParams, GridCellDoubleClickParams, CellValueFormatter, CellValueFormatterParams, SpreadsheetGridSlotContext, SpreadsheetGridDerivedSummary, SpreadsheetGridSelectionStats, GridLocaleText, GridLocaleTextTemplate, GridVerticalAlign, GridTextEditorEnterKey, GlobalFilterStatus, GridSelectionAggregates, CellCoord, CellRange, GridSelection, GridSortState, GridSortEntry, GridSortDirection, ColumnFilterValue, GridFilterState, SetColumnFilterValue, NumberColumnFilterValue, NumberSetColumnFilterValue, ParsedNumberFilter, TextSetColumnFilterValue, ParsedTextFilter, DateSetColumnFilterValue, ParsedDateFilter, DateFilterPreset, DateFilterPresetOption, CustomDateFilterPreset, DateFilterPresetRange, FilterDateInputContext, TextColumnFilterValue, DateColumnFilterValue, SelectColumnFilterValue, CustomColumnFilterValue, ServerSideDataSource, ServerSideQuery, ServerSideGetRowsParams, ServerSideGetRowsResult, ServerSideLoadErrorParams, ServerSideCellChange, ServerSideRowUpdate, ServerSideUpdateRowsParams, ServerSideUpdateRowsResult, ServerSideWriteErrorParams, RowModel, SpreadsheetGridHandle, RowSelectionModel, RowSelectionMode, ScrollAlign, GridScrollPosition, GridScrollEventParams, CsvExportScope, CsvExportOptions, GridExportOptions, GridExportCell, GridExportData, GridState, GridStatePatch, GridColumnState, GridDensity, GridTheme, UndoRedoState, GridMotion, GridPopupContainer, GridGlobalFilterMatch, GridPasteSkippedCell, GridPasteSkippedParams, GridExcelShortcutsOptions, GridNewRowOptions, GridApplyRowsOptions, GridCellValueEdit, GridCellValueSkip, GridCellValueSkipReason, GridCellValueMarked, GridSetCellValuesOptions, GridSetCellValuesResult, GridRowCounts, GridPinnedRowPosition, FindOptions, FindChangeParams, GridFindOpenOptions, GridFindReplaceResult, GridDataBarFormat, GridColorScaleFormat, GridChipTone, GridChipSpec, GridChipMap, AutoSizeColumnsMode, GridContextMenuTarget, GridContextMenuParams, GridContextMenuItem, GridContextMenuActionItem, GridContextMenuLabelItem, GridContextMenuSeparatorItem, GridContextMenuCustomItem, ScrollHintOptions, ScrollHintTrigger, ScrollHintRenderArgs, } from './model/gridTypes.js';
|
|
44
|
+
export type { SpreadsheetGridProps, GridColumn, GridColumnPinned, GridColumnEditor, EditorCommitDirection, EditorEnterMove, CellEditorContext, GridSelectEditorOption, GridSelectLoadOptionsParams, GridSelectFillRowContext, GridValidationMode, CellValidationContext, CellValidationResult, GridInvalidCell, EditorCommitResult, GridChanges, GridChangedRow, GridChangesSummary, GridChangesSavedTarget, GridAddedRow, GridRemovedRow, GridTrackChangesOptions, GridRangeDecoration, GridTreeDataOptions, GridTreeRow, CellTreeContext, CellTreeState, TreeRowOpenChangeParams, GridRevealRowOptions, GridRowKey, GridAggFuncName, GridAggFuncParams, GridAggFunc, GridGroupRow, GridSelectFilterOption, GetFilterOptionsParams, GetFilterOptionsResult, ColumnFilterTypeOption, ColumnFilterUiType, CellRenderContext, HeaderRenderContext, GridColumnGroup, GridColumnGroupCollapsible, ColumnGroupHeaderRenderContext, ColumnGroupOpenChangeParams, GridExportColumnGroup, CellStyleContext, CanEditCellContext, GridConditionalFormat, RowStyleContext, DetailRowOptions, GridClassNames, GridSlotProps, GridFrameworkTypes, SolidGridTypes, DetailRowRenderContext, CellDetailContext, LabelRowOptions, LabelRowRenderContext, GridLabelRow, LabelRowSortMode, TotalRowOptions, TotalRowCellContext, TotalRowCellKind, FillHandleOptions, GridFillValueParams, GridFillDirection, GridFillKind, RowDragContext, RowMoveParams, RowDropParams, GridCellRef, GridCellEventParams, GridCellDoubleClickParams, CellValueFormatter, CellValueFormatterParams, SpreadsheetGridSlotContext, SpreadsheetGridDerivedSummary, SpreadsheetGridSelectionStats, GridLocaleText, GridLocaleTextTemplate, GridVerticalAlign, GridTextEditorEnterKey, GlobalFilterStatus, GridSelectionAggregates, CellCoord, CellRange, GridSelection, GridSortState, GridSortEntry, GridSortDirection, ColumnFilterValue, GridFilterState, SetColumnFilterValue, NumberColumnFilterValue, NumberSetColumnFilterValue, ParsedNumberFilter, TextSetColumnFilterValue, ParsedTextFilter, DateSetColumnFilterValue, ParsedDateFilter, DateFilterPreset, DateFilterPresetOption, CustomDateFilterPreset, DateFilterPresetRange, FilterDateInputContext, TextColumnFilterValue, DateColumnFilterValue, SelectColumnFilterValue, CustomColumnFilterValue, ServerSideDataSource, ServerSideQuery, ServerSideGetRowsParams, ServerSideGetRowsResult, ServerSideLoadErrorParams, ServerSideCellChange, ServerSideRowUpdate, ServerSideUpdateRowsParams, ServerSideUpdateRowsResult, ServerSideWriteErrorParams, RowModel, SpreadsheetGridHandle, RowSelectionModel, RowSelectionMode, ScrollAlign, GridScrollPosition, GridScrollEventParams, CsvExportScope, CsvExportOptions, GridExportOptions, GridExportCell, GridExportData, GridState, GridStatePatch, GridColumnState, GridDensity, GridTheme, UndoRedoState, GridMotion, GridPopupContainer, GridGlobalFilterMatch, GridPasteSkippedCell, GridPasteSkippedParams, GridExcelShortcutsOptions, GridNewRowOptions, GridApplyRowsOptions, GridCellValueEdit, GridCellValueSkip, GridCellValueSkipReason, GridCellValueMarked, GridSetCellValuesOptions, GridSetCellValuesResult, GridRowCounts, GridPaginationOptions, GridPageInfo, GridPaginationContext, GridPinnedRowPosition, FindOptions, FindChangeParams, GridFindOpenOptions, GridFindReplaceResult, GridDataBarFormat, GridColorScaleFormat, GridChipTone, GridChipSpec, GridChipMap, AutoSizeColumnsMode, GridContextMenuTarget, GridContextMenuParams, GridContextMenuItem, GridContextMenuActionItem, GridContextMenuLabelItem, GridContextMenuSeparatorItem, GridContextMenuCustomItem, ScrollHintOptions, ScrollHintTrigger, ScrollHintRenderArgs, } from './model/gridTypes.js';
|
|
44
45
|
export type { NumberFormatterOptions } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/valueFormatters';
|
|
45
46
|
export type { NumberParserOptions } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers';
|