@ishibashi0112/spreadsheet-grid-solid 1.13.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.
Files changed (35) hide show
  1. package/API_REFERENCE.md +228 -16
  2. package/README.md +10 -8
  3. package/dist/{ColumnFilterPopover-t32VGfTq.js → ColumnFilterPopover-DYnfyUTm.js} +40 -41
  4. package/dist/ai.d.ts +2 -0
  5. package/dist/ai.js +48 -47
  6. package/dist/devWarnings.d.ts +1 -0
  7. package/dist/features/pagination.d.ts +2 -0
  8. package/dist/features/types.d.ts +7 -0
  9. package/dist/index.d.ts +2 -1
  10. package/dist/index.js +3611 -3312
  11. package/dist/inputValue-Dvxw-RUC.js +69 -0
  12. package/dist/primitives/rowDrag.d.ts +1 -0
  13. package/dist/primitives/serverSide.d.ts +2 -1
  14. package/dist/source/ai.jsx +3 -0
  15. package/dist/source/chunks/{ColumnFilterPopover-JL3HPGXY.jsx → ColumnFilterPopover-7COSTSPD.jsx} +2 -4
  16. package/dist/source/chunks/{chunk-AI3CSPI3.jsx → chunk-D4IAL3ZE.jsx} +43 -1
  17. package/dist/source/chunks/{toolPanelViews-N6TGBFFW.jsx → toolPanelViews-WBFE4QVY.jsx} +2 -4
  18. package/dist/source/index.jsx +926 -477
  19. package/dist/style.css +1 -1
  20. package/dist/style.layer.css +1 -1
  21. package/dist/{toolPanelViews-CPYtBTQP.js → toolPanelViews-BgEAIDpk.js} +35 -36
  22. package/dist/view/DefaultGridBottomBar.d.ts +3 -0
  23. package/dist/view/DefaultGridTopBar.d.ts +1 -0
  24. package/dist/view/GridBodyGroupRow.d.ts +1 -0
  25. package/dist/view/GridBodyLabelRow.d.ts +1 -0
  26. package/dist/view/GridBodyLayer.d.ts +1 -0
  27. package/dist/view/GridBodySkeletonRow.d.ts +2 -0
  28. package/dist/view/GridPager.d.ts +9 -0
  29. package/dist/view/GridScrollHint.d.ts +2 -0
  30. package/dist/view/GridStickyLabelLayer.d.ts +1 -0
  31. package/package.json +3 -3
  32. package/skills/spreadsheet-grid-solid/SKILL.md +5 -1
  33. package/dist/inputValue-C6BHBMBx.js +0 -24
  34. package/dist/portalTokens-LgUwLYnR.js +0 -47
  35. package/dist/source/chunks/chunk-WLXZT66B.jsx +0 -44
package/dist/ai.js CHANGED
@@ -5,14 +5,15 @@ import { systemColorSchemeStore as b } from "@ishibashi0112/spreadsheet-grid-cor
5
5
  import { resolveGridAskLocaleText as x } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/gridAskLocaleText";
6
6
  import { formatLocaleText as S } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFilters";
7
7
  import { createGridAskRequest as C, createGridAskRequest as w, describeGridAskView as T, describeGridAskView as E, gridAskSystemPrompt as D, isGridAskColumnsChanged as O, isGridAskColumnsChanged as k, isSameGridAskView as A, isSameGridAskView as j, readGridAskAnswer as M, readGridAskAnswer as N, removeGridAskItem as P, removeGridAskItem as F } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/gridAsk";
8
+ import { createGridAgentTools as I, registerGridAgentTools as L } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/gridAgentTools";
8
9
  //#region src/ai/createGridAsk.ts
9
- var I = 1e3, L = 400, R = (e, t, n) => n ? j(e, t) : j({
10
+ var R = 1e3, z = 400, B = (e, t, n) => n ? j(e, t) : j({
10
11
  ...e,
11
12
  columns: void 0
12
13
  }, {
13
14
  ...t,
14
15
  columns: void 0
15
- }), z = (e) => ({
16
+ }), V = (e) => ({
16
17
  columns: e.columns,
17
18
  columnHints: e.columnHints,
18
19
  allowFilter: e.allowFilter,
@@ -20,10 +21,10 @@ var I = 1e3, L = 400, R = (e, t, n) => n ? j(e, t) : j({
20
21
  allowSearch: e.allowSearch,
21
22
  allowColumnVisibility: e.allowColumnVisibility,
22
23
  localeText: e.localeText
23
- }), B = (e, t) => k(e, t) ? t : {
24
+ }), H = (e, t) => k(e, t) ? t : {
24
25
  ...t,
25
26
  columns: void 0
26
- }, V = (e, t, n) => {
27
+ }, U = (e, t, n) => {
27
28
  if (!n) return {
28
29
  ...e,
29
30
  filters: t.filters,
@@ -43,11 +44,11 @@ var I = 1e3, L = 400, R = (e, t, n) => n ? j(e, t) : j({
43
44
  return delete t.visible, t;
44
45
  })
45
46
  };
46
- }, H = (e) => {
47
+ }, W = (e) => {
47
48
  let t = e.grid;
48
49
  return (typeof t == "function" ? t() : t) ?? null;
49
50
  };
50
- function U(e) {
51
+ function G(e) {
51
52
  let [t, a] = i("idle", { name: "gridAskStatus" }), [o, c] = i(null, { name: "gridAskError" }), [l, u] = i(null, { name: "gridAskNotice" }), [d, f] = i(null, { name: "gridAskSession" }), p = null, m = null, h = (e) => {
52
53
  m = e, f(() => e);
53
54
  };
@@ -74,8 +75,8 @@ function U(e) {
74
75
  if (t === null) return;
75
76
  let n = null, r = () => {
76
77
  if (p !== null || m !== t) return;
77
- let n = H(e);
78
- n === null || R(n.getState(), t.applied, _()) || (h({
78
+ let n = W(e);
79
+ n === null || B(n.getState(), t.applied, _()) || (h({
79
80
  ...t,
80
81
  view: {
81
82
  ...t.view,
@@ -85,8 +86,8 @@ function U(e) {
85
86
  }, i = () => {
86
87
  n === null && (n = setTimeout(() => {
87
88
  n = null, r();
88
- }, L));
89
- }, a = setInterval(r, I);
89
+ }, z));
90
+ }, a = setInterval(r, R);
90
91
  return document.addEventListener("click", i, !0), document.addEventListener("keyup", i, !0), () => {
91
92
  clearInterval(a), n !== null && clearTimeout(n), document.removeEventListener("click", i, !0), document.removeEventListener("keyup", i, !0);
92
93
  };
@@ -94,19 +95,19 @@ function U(e) {
94
95
  let v = async (t) => {
95
96
  let n = t.trim();
96
97
  if (n === "" || p !== null) return !1;
97
- let r = H(e);
98
+ let r = W(e);
98
99
  if (r === null) return c(g().noGrid), !1;
99
100
  let i = new AbortController();
100
101
  p = i, a("asking"), c(null), u(null);
101
102
  let o;
102
103
  try {
103
- o = await e.ask(w(n, r.getState(), z(e)), { signal: i.signal });
104
+ o = await e.ask(w(n, r.getState(), V(e)), { signal: i.signal });
104
105
  } catch (t) {
105
106
  return i.signal.aborted ? !1 : (p = null, a("idle"), e.onError?.(t), c(g().askFailed), !1);
106
107
  }
107
108
  if (i.signal.aborted) return !1;
108
109
  p = null, a("idle");
109
- let s = z(e), l = H(e);
110
+ let s = V(e), l = W(e);
110
111
  if (l === null) return c(g().noGrid), !1;
111
112
  let d = l.getState(), f = N(o, d, s);
112
113
  if (!f.ok) return c(f.message), !1;
@@ -115,7 +116,7 @@ function U(e) {
115
116
  dropped: f.dropped,
116
117
  unsupported: f.unsupported
117
118
  };
118
- return u(null), f.changed ? (l.applyState(B(d, f.state)), h({
119
+ return u(null), f.changed ? (l.applyState(H(d, f.state)), h({
119
120
  view: {
120
121
  ...m,
121
122
  phase: "applied",
@@ -141,10 +142,10 @@ function U(e) {
141
142
  let e = p;
142
143
  e !== null && (p = null, e.abort(), a("idle"));
143
144
  }, b = (t) => {
144
- let n = H(e);
145
+ let n = W(e);
145
146
  if (n === null || t.view.phase !== "applied") return null;
146
147
  let r = n.getState();
147
- return R(r, t.applied, _()) ? {
148
+ return B(r, t.applied, _()) ? {
148
149
  target: n,
149
150
  now: r
150
151
  } : (u(g().changedNotice), h({
@@ -175,8 +176,8 @@ function U(e) {
175
176
  if (e === null) return;
176
177
  let t = b(e);
177
178
  if (t === null) return;
178
- let n = V(t.now, e.before, _());
179
- t.target.applyState(B(t.now, n)), u(null), h({
179
+ let n = U(t.now, e.before, _());
180
+ t.target.applyState(H(t.now, n)), u(null), h({
180
181
  ...e,
181
182
  view: {
182
183
  ...e.view,
@@ -190,12 +191,12 @@ function U(e) {
190
191
  let r = b(n);
191
192
  if (r === null) return;
192
193
  let i = F(r.now, t);
193
- r.target.applyState(B(r.now, i)), h({
194
+ r.target.applyState(H(r.now, i)), h({
194
195
  ...n,
195
196
  applied: i,
196
197
  view: {
197
198
  ...n.view,
198
- items: E(i, z(e))
199
+ items: E(i, V(e))
199
200
  }
200
201
  });
201
202
  },
@@ -206,12 +207,12 @@ function U(e) {
206
207
  }
207
208
  //#endregion
208
209
  //#region src/ai/GridAskBar.tsx
209
- var W = /* @__PURE__ */ v("<button type=button class=ssg-ask-link>"), ee = /* @__PURE__ */ v("<div data-ssg-ask><form class=ssg-ask-form><svg class=ssg-ask-icon viewBox=\"0 0 16 16\"width=16 height=16 aria-hidden=true><path d=\"M6 1.5l1.1 3.4L10.5 6 7.1 7.1 6 10.5 4.9 7.1 1.5 6l3.4-1.1L6 1.5zm6 7l.6 1.9 1.9.6-1.9.6-.6 1.9-.6-1.9-1.9-.6 1.9-.6.6-1.9z\"fill=currentColor></path></svg><input class=ssg-ask-input type=text enterkeyhint=send></form><div class=ssg-ask-output aria-live=polite><!><!><!><!>"), te = /* @__PURE__ */ v("<button type=button class=ssg-ask-button>"), ne = /* @__PURE__ */ v("<button type=submit class=\"ssg-ask-button ssg-ask-button--primary\">"), re = /* @__PURE__ */ v("<div class=ssg-ask-examples><span class=ssg-ask-examples-label>"), ie = /* @__PURE__ */ v("<button type=button class=ssg-ask-example>"), ae = /* @__PURE__ */ v("<div class=ssg-ask-status><span class=ssg-ask-spinner aria-hidden=true></span><span class=ssg-ask-hint>"), oe = /* @__PURE__ */ v("<div class=\"ssg-ask-note ssg-ask-note--error\"><span>"), G = /* @__PURE__ */ v("<div class=ssg-ask-result><div class=ssg-ask-result-head><span class=ssg-ask-result-title></span><span class=ssg-ask-result-actions><button type=button class=ssg-ask-link>"), K = /* @__PURE__ */ v("<ul class=ssg-ask-chips>"), se = /* @__PURE__ */ v("<div class=ssg-ask-empty>"), ce = /* @__PURE__ */ v("<li class=ssg-ask-chip><span class=ssg-ask-chip-label></span><span class=ssg-ask-chip-text></span><button type=button class=ssg-ask-chip-remove>×"), q = /* @__PURE__ */ v("<div class=ssg-ask-note><span>"), J = /* @__PURE__ */ v("<div class=\"ssg-ask-note ssg-ask-note--warn\"><span class=ssg-ask-note-title></span><ul class=ssg-ask-dropped>"), le = /* @__PURE__ */ v("<li>"), ue = /* @__PURE__ */ v("<div class=\"ssg-ask-note ssg-ask-note--warn\"><span>"), de = (...e) => e.filter(Boolean).join(" "), fe = () => {
210
+ var K = /* @__PURE__ */ v("<button type=button class=ssg-ask-link>"), q = /* @__PURE__ */ v("<div data-ssg-ask><form class=ssg-ask-form><svg class=ssg-ask-icon viewBox=\"0 0 16 16\"width=16 height=16 aria-hidden=true><path d=\"M6 1.5l1.1 3.4L10.5 6 7.1 7.1 6 10.5 4.9 7.1 1.5 6l3.4-1.1L6 1.5zm6 7l.6 1.9 1.9.6-1.9.6-.6 1.9-.6-1.9-1.9-.6 1.9-.6.6-1.9z\"fill=currentColor></path></svg><input class=ssg-ask-input type=text enterkeyhint=send></form><div class=ssg-ask-output aria-live=polite><!><!><!><!>"), J = /* @__PURE__ */ v("<button type=button class=ssg-ask-button>"), Y = /* @__PURE__ */ v("<button type=submit class=\"ssg-ask-button ssg-ask-button--primary\">"), ee = /* @__PURE__ */ v("<div class=ssg-ask-examples><span class=ssg-ask-examples-label>"), te = /* @__PURE__ */ v("<button type=button class=ssg-ask-example>"), ne = /* @__PURE__ */ v("<div class=ssg-ask-status><span class=ssg-ask-spinner aria-hidden=true></span><span class=ssg-ask-hint>"), re = /* @__PURE__ */ v("<div class=\"ssg-ask-note ssg-ask-note--error\"><span>"), ie = /* @__PURE__ */ v("<div class=ssg-ask-result><div class=ssg-ask-result-head><span class=ssg-ask-result-title></span><span class=ssg-ask-result-actions><button type=button class=ssg-ask-link>"), ae = /* @__PURE__ */ v("<ul class=ssg-ask-chips>"), oe = /* @__PURE__ */ v("<div class=ssg-ask-empty>"), se = /* @__PURE__ */ v("<li class=ssg-ask-chip><span class=ssg-ask-chip-label></span><span class=ssg-ask-chip-text></span><button type=button class=ssg-ask-chip-remove>×"), X = /* @__PURE__ */ v("<div class=ssg-ask-note><span>"), ce = /* @__PURE__ */ v("<div class=\"ssg-ask-note ssg-ask-note--warn\"><span class=ssg-ask-note-title></span><ul class=ssg-ask-dropped>"), le = /* @__PURE__ */ v("<li>"), ue = /* @__PURE__ */ v("<div class=\"ssg-ask-note ssg-ask-note--warn\"><span>"), de = (...e) => e.filter(Boolean).join(" "), fe = () => {
210
211
  let [e, t] = i(a() ? b.getServerSnapshot() : b.getSnapshot(), { name: "gridAskSystemColorScheme" });
211
212
  return s(() => (t(b.getSnapshot()), b.subscribe(() => t(b.getSnapshot())))), e;
212
213
  };
213
- function Y(a) {
214
- let s = U(o(a, "examples", "placeholder", "label", "className", "theme")), u = r(() => x(a.localeText)), [v, b] = i("", { name: "gridAskText" }), C = fe(), w = () => y(a.theme ?? "light", C()), T = r(() => s.status === "asking"), E = "", [D, O] = i(!1, { name: "gridAskHasSent" }), k, A, j, M = null, [N, P] = i(0, { name: "gridAskFocusRequest" });
214
+ function Z(a) {
215
+ let s = G(o(a, "examples", "placeholder", "label", "className", "theme")), u = r(() => x(a.localeText)), [v, b] = i("", { name: "gridAskText" }), C = fe(), w = () => y(a.theme ?? "light", C()), T = r(() => s.status === "asking"), E = "", [D, O] = i(!1, { name: "gridAskHasSent" }), k, A, j, M = null, [N, P] = i(0, { name: "gridAskFocusRequest" });
215
216
  n(() => [
216
217
  N(),
217
218
  s.session,
@@ -252,21 +253,21 @@ function Y(a) {
252
253
  }, z = (e) => {
253
254
  e.detail > 1 && e.preventDefault();
254
255
  }, B = () => (() => {
255
- var e = W();
256
+ var e = K();
256
257
  return e._$$click = () => {
257
258
  F(), s.dismiss();
258
259
  }, p(e, () => u().close), e;
259
260
  })();
260
- var V = ee(), H = V.firstChild, Y = H.firstChild.nextSibling, X = H.nextSibling, Z = X.firstChild, Q = Z.nextSibling, $ = Q.nextSibling, pe = $.nextSibling;
261
+ var V = q(), H = V.firstChild, U = H.firstChild.nextSibling, W = H.nextSibling, Z = W.firstChild, Q = Z.nextSibling, $ = Q.nextSibling, pe = $.nextSibling;
261
262
  return g(() => (e) => k = e, V), H.addEventListener("submit", (e) => {
262
263
  e.preventDefault(), I(v());
263
- }), Y._$$keydown = L, Y._$$input = (e) => b(e.currentTarget.value), g(() => (e) => A = e, Y), p(H, (() => {
264
+ }), U._$$keydown = L, U._$$input = (e) => b(e.currentTarget.value), g(() => (e) => A = e, U), p(H, (() => {
264
265
  var e = m(() => !!T());
265
266
  return () => e() ? (() => {
266
- var e = te();
267
+ var e = J();
267
268
  return e._$$click = R, p(e, () => u().stop), e;
268
269
  })() : (() => {
269
- var e = ne();
270
+ var e = Y();
270
271
  return e._$$click = z, p(e, () => u().submit), d(() => v().trim() === "", (t) => {
271
272
  _(e, "disabled", t);
272
273
  }), e;
@@ -274,14 +275,14 @@ function Y(a) {
274
275
  })(), null), p(V, (() => {
275
276
  var t = m(() => !!(a.examples && a.examples.length > 0));
276
277
  return () => t() ? (() => {
277
- var t = re(), n = t.firstChild;
278
+ var t = ee(), n = t.firstChild;
278
279
  return p(n, () => u().examples), p(t, l(e, {
279
280
  get each() {
280
281
  return a.examples ?? [];
281
282
  },
282
283
  keyed: !1,
283
284
  children: (e) => (() => {
284
- var t = ie();
285
+ var t = te();
285
286
  return t._$$click = () => {
286
287
  if (T()) return;
287
288
  let t = e();
@@ -295,46 +296,46 @@ function Y(a) {
295
296
  })()
296
297
  }), null), t;
297
298
  })() : void 0;
298
- })(), X), p(X, (() => {
299
+ })(), W), p(W, (() => {
299
300
  var e = m(() => !!T());
300
301
  return () => e() ? (() => {
301
- var e = ae(), t = e.firstChild.nextSibling;
302
+ var e = ne(), t = e.firstChild.nextSibling;
302
303
  return p(e, () => u().thinking, t), p(t, () => u().escHint), e;
303
304
  })() : void 0;
304
- })(), Z), p(X, (() => {
305
+ })(), Z), p(W, (() => {
305
306
  var e = m(() => !T() && s.error !== null);
306
307
  return () => e() ? (() => {
307
- var e = oe(), t = e.firstChild;
308
+ var e = re(), t = e.firstChild;
308
309
  return p(t, () => s.error), p(e, (() => {
309
310
  var e = m(() => !!D());
310
311
  return () => e() ? (() => {
311
- var e = W();
312
+ var e = K();
312
313
  return e._$$click = () => {
313
314
  F(), I(E);
314
315
  }, p(e, () => u().retry), e;
315
316
  })() : void 0;
316
317
  })(), null), e;
317
318
  })() : void 0;
318
- })(), Q), p(X, l(t, {
319
+ })(), Q), p(W, l(t, {
319
320
  get when() {
320
321
  return m(() => !T())() ? s.session : null;
321
322
  },
322
323
  children: (t) => [
323
324
  m(() => m(() => t().phase === "applied")() ? (() => {
324
- var n = G(), r = n.firstChild.firstChild, i = r.nextSibling, a = i.firstChild;
325
+ var n = ie(), r = n.firstChild.firstChild, i = r.nextSibling, a = i.firstChild;
325
326
  return p(r, () => u().appliedTitle), a._$$click = () => {
326
327
  F(), s.undo();
327
328
  }, p(a, () => u().undo), p(i, B, null), p(n, (() => {
328
329
  var n = m(() => t().items.length > 0);
329
330
  return () => n() ? (() => {
330
- var n = K();
331
+ var n = ae();
331
332
  return g(() => (e) => j = e, n), p(n, l(e, {
332
333
  get each() {
333
334
  return t().items;
334
335
  },
335
336
  keyed: (e) => e.id,
336
337
  children: (e, t) => (() => {
337
- var n = ce(), r = n.firstChild, i = r.nextSibling, a = i.nextSibling;
338
+ var n = se(), r = n.firstChild, i = r.nextSibling, a = i.nextSibling;
338
339
  return p(r, () => e().label), p(i, () => e().text), a._$$click = () => {
339
340
  F(t()), s.remove(e().id);
340
341
  }, d(() => ({
@@ -349,21 +350,21 @@ function Y(a) {
349
350
  })()
350
351
  })), n;
351
352
  })() : (() => {
352
- var e = se();
353
+ var e = oe();
353
354
  return p(e, () => u().allRemoved), e;
354
355
  })();
355
356
  })(), null), n;
356
357
  })() : void 0),
357
358
  m(() => m(() => t().phase === "unchanged")() ? (() => {
358
- var e = q(), t = e.firstChild;
359
+ var e = X(), t = e.firstChild;
359
360
  return p(t, () => u().unchanged), p(e, B, null), e;
360
361
  })() : void 0),
361
362
  m(() => m(() => t().phase === "undone")() ? (() => {
362
- var e = q(), t = e.firstChild;
363
+ var e = X(), t = e.firstChild;
363
364
  return p(t, () => u().undone), p(e, B, null), e;
364
365
  })() : void 0),
365
366
  m(() => m(() => t().phase !== "undone" && t().phase !== "changed" && t().dropped.length > 0)() ? (() => {
366
- var n = J(), r = n.firstChild, i = r.nextSibling;
367
+ var n = ce(), r = n.firstChild, i = r.nextSibling;
367
368
  return p(r, () => u().droppedTitle), p(i, l(e, {
368
369
  get each() {
369
370
  return t().dropped;
@@ -376,11 +377,11 @@ function Y(a) {
376
377
  })), n;
377
378
  })() : void 0),
378
379
  m(() => m(() => t().phase !== "undone" && t().phase !== "changed" && t().unsupported !== null)() ? (() => {
379
- var e = q(), n = e.firstChild;
380
+ var e = X(), n = e.firstChild;
380
381
  return p(n, () => S(u().fromAi, { text: t().unsupported ?? "" })), e;
381
382
  })() : void 0)
382
383
  ]
383
- }), $), p(X, (() => {
384
+ }), $), p(W, (() => {
384
385
  var e = m(() => s.notice !== null);
385
386
  return () => e() ? (() => {
386
387
  var e = ue(), n = e.firstChild;
@@ -400,7 +401,7 @@ function Y(a) {
400
401
  o: a.label ?? u().label,
401
402
  i: f()
402
403
  }), ({ e, t, a: n, o: r, i }, a) => {
403
- c(V, e, a?.e), (t !== a?.t || !i) && (Y.value = t ?? ""), n !== a?.a && _(Y, "placeholder", n), r !== a?.o && _(Y, "aria-label", r);
404
+ c(V, e, a?.e), (t !== a?.t || !i) && (U.value = t ?? ""), n !== a?.a && _(U, "placeholder", n), r !== a?.o && _(U, "aria-label", r);
404
405
  }), V;
405
406
  }
406
407
  u([
@@ -409,4 +410,4 @@ u([
409
410
  "keydown"
410
411
  ]);
411
412
  //#endregion
412
- export { Y as GridAskBar, U as createGridAsk, C as createGridAskRequest, T as describeGridAskView, D as gridAskSystemPrompt, O as isGridAskColumnsChanged, A as isSameGridAskView, M as readGridAskAnswer, P as removeGridAskItem };
413
+ export { Z as GridAskBar, I as createGridAgentTools, G as createGridAsk, C as createGridAskRequest, T as describeGridAskView, D as gridAskSystemPrompt, O as isGridAskColumnsChanged, A as isSameGridAskView, M as readGridAskAnswer, L as registerGridAgentTools, P as removeGridAskItem };
@@ -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;
@@ -0,0 +1,2 @@
1
+ import type { GridFeature } from './types.js';
2
+ export declare const paginationFeature: GridFeature<"pagination">;
@@ -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, 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';