@ishibashi0112/spreadsheet-grid-solid 1.12.0 → 1.14.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 +223 -13
- package/README.md +4 -2
- package/dist/ai.d.ts +2 -0
- package/dist/ai.js +48 -47
- package/dist/devWarnings.d.ts +5 -0
- package/dist/features/diffView.d.ts +2 -0
- package/dist/features/rangeDecorations.d.ts +2 -0
- package/dist/features/types.d.ts +16 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2846 -2531
- package/dist/primitives/serverSide.d.ts +2 -1
- package/dist/source/ai.jsx +3 -0
- package/dist/source/index.jsx +617 -96
- package/dist/style.css +1 -1
- package/dist/style.layer.css +1 -1
- package/dist/themes/astryx.css +4 -0
- package/dist/themes/heroui.css +4 -0
- package/dist/themes/mantine.css +4 -0
- package/dist/themes/shadcn.css +4 -0
- package/dist/view/DefaultGridBottomBar.d.ts +3 -1
- package/dist/view/GridBodyLayer.d.ts +7 -0
- package/dist/view/GridDiffBar.d.ts +11 -0
- package/dist/view/GridRangeDecorations.d.ts +7 -0
- package/package.json +3 -3
- package/skills/spreadsheet-grid-solid/SKILL.md +4 -0
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
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
24
|
+
}), H = (e, t) => k(e, t) ? t : {
|
|
24
25
|
...t,
|
|
25
26
|
columns: void 0
|
|
26
|
-
},
|
|
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
|
-
},
|
|
47
|
+
}, W = (e) => {
|
|
47
48
|
let t = e.grid;
|
|
48
49
|
return (typeof t == "function" ? t() : t) ?? null;
|
|
49
50
|
};
|
|
50
|
-
function
|
|
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 =
|
|
78
|
-
n === null ||
|
|
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
|
-
},
|
|
89
|
-
}, a = setInterval(r,
|
|
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 =
|
|
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(),
|
|
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 =
|
|
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(
|
|
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 =
|
|
145
|
+
let n = W(e);
|
|
145
146
|
if (n === null || t.view.phase !== "applied") return null;
|
|
146
147
|
let r = n.getState();
|
|
147
|
-
return
|
|
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 =
|
|
179
|
-
t.target.applyState(
|
|
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(
|
|
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,
|
|
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
|
|
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
|
|
214
|
-
let s =
|
|
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 =
|
|
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 =
|
|
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
|
-
}),
|
|
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 =
|
|
267
|
+
var e = J();
|
|
267
268
|
return e._$$click = R, p(e, () => u().stop), e;
|
|
268
269
|
})() : (() => {
|
|
269
|
-
var e =
|
|
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 =
|
|
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 =
|
|
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
|
-
})(),
|
|
299
|
+
})(), W), p(W, (() => {
|
|
299
300
|
var e = m(() => !!T());
|
|
300
301
|
return () => e() ? (() => {
|
|
301
|
-
var e =
|
|
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(
|
|
305
|
+
})(), Z), p(W, (() => {
|
|
305
306
|
var e = m(() => !T() && s.error !== null);
|
|
306
307
|
return () => e() ? (() => {
|
|
307
|
-
var e =
|
|
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 =
|
|
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(
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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(
|
|
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) && (
|
|
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 {
|
|
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 };
|
package/dist/devWarnings.d.ts
CHANGED
|
@@ -34,6 +34,11 @@ export type ShellDevWarningArgs = {
|
|
|
34
34
|
id: string;
|
|
35
35
|
message: string;
|
|
36
36
|
}[];
|
|
37
|
+
diffShowRemovedBlocked: () => boolean;
|
|
38
|
+
rangeDecorationCount: () => number;
|
|
39
|
+
rangeDecorationWarnCount: number;
|
|
40
|
+
rangeDecorationWithoutRowKeysWarning: string | undefined;
|
|
41
|
+
hasRowKeyGetter: () => boolean;
|
|
37
42
|
};
|
|
38
43
|
declare function createShellDevWarningsInDev(args: ShellDevWarningArgs): void;
|
|
39
44
|
export declare const createShellDevWarnings: typeof createShellDevWarningsInDev;
|
package/dist/features/types.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ import type { resolveChipSpec, resolveColorScaleBackground, resolveDataBar } fro
|
|
|
4
4
|
import type { formatTotalRowCellText, resolveTotalRowCaption, resolveTotalRowLabelColumnKey } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/totalRow';
|
|
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
|
+
import type { createRangeDecorationResolver } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/rangeDecorations';
|
|
8
|
+
import type { describeChangeNavTarget, describeDiffCell, formatDiffOriginalText, formatDiffSummaryParts, nextChangeNavAnnouncement } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/diffView';
|
|
9
|
+
import type { GridRangeDecorationFrames } from '../view/GridRangeDecorations.js';
|
|
10
|
+
import type { GridDiffBarChip } from '../view/GridDiffBar.js';
|
|
7
11
|
import type { GridLocaleText } from '@ishibashi0112/spreadsheet-grid-core';
|
|
8
12
|
import type { GridChip } from '../view/GridChip.js';
|
|
9
13
|
import type { GridTotalRow } from '../view/GridTotalRow.js';
|
|
@@ -88,6 +92,18 @@ export type SolidGridFeatures = {
|
|
|
88
92
|
formatUnsavedSummary: typeof formatUnsavedSummary;
|
|
89
93
|
buildRevertMenuItems: typeof buildRevertMenuItems;
|
|
90
94
|
}) | undefined;
|
|
95
|
+
diffView?: (NonNullable<GridCoreFeatures['diffView']> & FeatureLocaleDefaults & {
|
|
96
|
+
describeDiffCell: typeof describeDiffCell;
|
|
97
|
+
formatDiffOriginalText: typeof formatDiffOriginalText;
|
|
98
|
+
formatDiffSummaryParts: typeof formatDiffSummaryParts;
|
|
99
|
+
describeChangeNavTarget: typeof describeChangeNavTarget;
|
|
100
|
+
nextChangeNavAnnouncement: typeof nextChangeNavAnnouncement;
|
|
101
|
+
DiffBarChip: typeof GridDiffBarChip;
|
|
102
|
+
}) | undefined;
|
|
103
|
+
rangeDecorations?: {
|
|
104
|
+
createRangeDecorationResolver: typeof createRangeDecorationResolver;
|
|
105
|
+
RangeDecorationFrames: typeof GridRangeDecorationFrames;
|
|
106
|
+
} | undefined;
|
|
91
107
|
newRow?: (NonNullable<GridCoreFeatures['newRow']> & FeatureLocaleDefaults & {
|
|
92
108
|
resolveNewRowPlaceholder: typeof resolveNewRowPlaceholder;
|
|
93
109
|
}) | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export { selectSearchFeature } from './features/selectSearch.js';
|
|
|
19
19
|
export { dateTimeEditorsFeature } from './features/dateTimeEditors.js';
|
|
20
20
|
export { multiSelectFeature } from './features/multiSelect.js';
|
|
21
21
|
export { changeTrackingFeature } from './features/changeTracking.js';
|
|
22
|
+
export { diffViewFeature } from './features/diffView.js';
|
|
23
|
+
export { rangeDecorationsFeature } from './features/rangeDecorations.js';
|
|
22
24
|
export { excelShortcutsFeature } from './features/excelShortcuts.js';
|
|
23
25
|
export { newRowFeature } from './features/newRow.js';
|
|
24
26
|
export { treeDataFeature } from './features/treeData.js';
|
|
@@ -38,6 +40,6 @@ export { numberFormatter } from '@ishibashi0112/spreadsheet-grid-core/internal/l
|
|
|
38
40
|
export { numberParser } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers';
|
|
39
41
|
export { restoreColumnsFromState } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/gridState';
|
|
40
42
|
export { preloadGridPopups } from './view/lazyPopups.js';
|
|
41
|
-
export type { SpreadsheetGridProps, GridColumn, GridColumnPinned, GridColumnEditor, EditorCommitDirection, EditorEnterMove, CellEditorContext, GridSelectEditorOption, GridSelectLoadOptionsParams, GridSelectFillRowContext, GridValidationMode, CellValidationContext, CellValidationResult, GridInvalidCell, EditorCommitResult, GridChanges, GridChangedRow, GridChangesSummary, GridChangesSavedTarget, GridAddedRow, GridRemovedRow, GridTrackChangesOptions, 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';
|
|
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';
|
|
42
44
|
export type { NumberFormatterOptions } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/valueFormatters';
|
|
43
45
|
export type { NumberParserOptions } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers';
|