@ishibashi0112/spreadsheet-grid 1.6.0 → 1.7.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.
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./createSpreadsheetGrid-iAPCKb03.cjs");exports.createSpreadsheetGrid=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./createSpreadsheetGrid-B4_L9K--.cjs");exports.createSpreadsheetGrid=e.t;
@@ -1,2 +1,2 @@
1
- import { t as e } from "./createSpreadsheetGrid-CvNJLEhA.js";
1
+ import { t as e } from "./createSpreadsheetGrid-BlYZzGf-.js";
2
2
  export { e as createSpreadsheetGrid };
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../selectSearch-BIeA4Xhg.cjs");exports.selectSearchFeature=e.t;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../selectSearch-B1OSCMbw.js";
2
+ export { e as selectSearchFeature };
@@ -0,0 +1,204 @@
1
+ import { r as e } from "./useController-zuzvTNo5.js";
2
+ import { i as t, r as n } from "./usePortalTokens-hsX2T3ep.js";
3
+ import { r } from "./useGridLocaleText-CpoTVgyp.js";
4
+ import { n as i, t as ee } from "./useTopAlignedInput-CAagCTj-.js";
5
+ import { useCallback as a, useEffect as o, useId as te, useRef as s, useState as c, useSyncExternalStore as ne } from "react";
6
+ import { cx as l } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/cx";
7
+ import { createPortal as re } from "react-dom";
8
+ import { isImeComposingKeyEvent as ie } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
9
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
10
+ import { SELECT_SEARCH_POPOVER_MIN_WIDTH as p, computeSelectPopoverPlacement as m, createPointerMoveFilter as ae, resolveSelectOptionRowHeight as oe } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectEditorState";
11
+ import { withAnchorVisibility as h } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/editorVisibleBounds";
12
+ import { revealOverflowTitle as se } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/overflowTitle";
13
+ import { DEFAULT_SELECT_SEARCH_LOCALE_TEXT as g } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures";
14
+ import { resolveSelectListWindow as ce, revealSelectListRow as le, splitSelectSearchText as _ } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/selectSearch";
15
+ import { createSearchSelectEditorController as ue } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/searchSelectEditorController";
16
+ //#region src/editors/SearchSelectCellEditor.tsx
17
+ function v({ text: e, range: t }) {
18
+ return /* @__PURE__ */ d(u, { children: _(e, t).map((e, t) => e.match ? /* @__PURE__ */ d("mark", {
19
+ className: "ssg-select-editor-match",
20
+ children: e.text
21
+ }, t) : e.text) });
22
+ }
23
+ function y({ ariaLabel: g, options: _, value: y, displayText: b, allowFreeText: x, load: S, onCommit: de, onCancel: C, onRegisterFlush: w, align: T, themeClassName: E, popoverSlot: D, enterMove: fe, initialText: O, cellTop: pe = 0, cellLeft: me = 0, cellHeight: he = 0, alignTop: ge = !1 }) {
24
+ let k = r(), A = s(null), j = s(null), M = s(null);
25
+ ee(A, ge, he);
26
+ let N = te(), [_e] = c(ae), [P, F] = c(null), I = (e, t, n, r) => {
27
+ let i = de(e, t, n, r);
28
+ return i && i.status === "rejected" && F(i.message), i;
29
+ }, [L] = c(() => ue({
30
+ options: _,
31
+ value: y,
32
+ initialText: O,
33
+ displayText: b,
34
+ allowFreeText: x,
35
+ load: S,
36
+ onCommit: I,
37
+ onCancel: C
38
+ }));
39
+ e(() => {
40
+ L.setHandlers({
41
+ onCommit: I,
42
+ onCancel: C,
43
+ load: S
44
+ });
45
+ });
46
+ let R = ne(L.subscribe, L.getSnapshot, L.getSnapshot);
47
+ o(() => L.attach(), [L]), e(() => {
48
+ L.setOptions(_);
49
+ }, [L, _]), e(() => {
50
+ w?.(x ? L.flush : null);
51
+ }, [
52
+ w,
53
+ x,
54
+ L
55
+ ]);
56
+ let [z] = c(oe), [B, V] = c(null), [ve, H] = c(0), { results: U, highlight: W, status: G } = R, K = x && G === "ready" && R.filtered && U.length === 0;
57
+ t(M, B !== null && !K, E, { layout: B });
58
+ let q = n(B !== null), J = Math.max(U.length, 1), ye = (e) => h(e, m(e.getBoundingClientRect(), J, window.innerWidth, window.innerHeight, z, p)), be = a((e) => {
59
+ A.current = e, e && (e.focus(), O === void 0 ? e.select() : e.setSelectionRange(e.value.length, e.value.length));
60
+ }, [O]), Y = s(null);
61
+ e(() => {
62
+ let e = `${J}:${z}:${pe}:${me}`, t = A.current;
63
+ Y.current === e || !t || (Y.current = e, V(ye(t)));
64
+ }), o(() => {
65
+ let e = () => {
66
+ let e = A.current;
67
+ e && V(h(e, m(e.getBoundingClientRect(), J, window.innerWidth, window.innerHeight, z, p)));
68
+ };
69
+ return window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
70
+ window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
71
+ };
72
+ }, [J, z]);
73
+ let xe = B !== null, X = Math.min(J, 8) * z, Z = a(() => {
74
+ let e = j.current;
75
+ if (!e) return;
76
+ let t = L.getSnapshot().highlight, n = t < 0 ? 0 : le(t, e.scrollTop, X, z);
77
+ n !== e.scrollTop && (e.scrollTop = n), H(n);
78
+ }, [
79
+ L,
80
+ z,
81
+ X
82
+ ]);
83
+ e(() => {
84
+ Z();
85
+ }, [
86
+ Z,
87
+ U,
88
+ xe
89
+ ]);
90
+ let Se = (e) => {
91
+ if (ie(e.nativeEvent)) return;
92
+ let t = L.getSnapshot().highlight;
93
+ L.keyDown(e, fe) && L.getSnapshot().highlight !== t && (F(null), Z());
94
+ }, Q = ce(ve, X, z, U.length), Ce = U.slice(Q.start, Q.end), $ = B !== null && U.length > 0, we = $ && W >= 0 && U[W] ? `${N}-${W}` : void 0, Te = G === "error" ? /* @__PURE__ */ f("div", {
95
+ className: "ssg-select-editor-empty ssg-select-editor-error",
96
+ role: "alert",
97
+ children: [/* @__PURE__ */ d("span", {
98
+ className: "ssg-select-editor-error-text",
99
+ title: R.errorMessage ?? void 0,
100
+ children: k.selectSearchFailed
101
+ }), /* @__PURE__ */ d("button", {
102
+ type: "button",
103
+ className: "ssg-select-editor-retry",
104
+ tabIndex: -1,
105
+ onClick: () => L.retry(),
106
+ children: k.retry
107
+ })]
108
+ }) : U.length > 0 ? null : /* @__PURE__ */ d("div", {
109
+ className: "ssg-select-editor-empty",
110
+ role: "status",
111
+ children: G === "loading" ? k.selectSearchLoading : R.filtered ? k.selectSearchNoMatch : k.noOptions
112
+ });
113
+ return /* @__PURE__ */ f(u, { children: [
114
+ /* @__PURE__ */ d("input", {
115
+ ref: be,
116
+ type: "text",
117
+ value: R.text,
118
+ onChange: (e) => {
119
+ F(null), L.input(e.target.value, e.nativeEvent.isComposing === !0);
120
+ },
121
+ onCompositionEnd: (e) => L.input(e.currentTarget.value, !1),
122
+ onKeyDown: Se,
123
+ onBlur: () => L.blur(),
124
+ role: "combobox",
125
+ "aria-autocomplete": "list",
126
+ "aria-label": g,
127
+ "aria-expanded": $,
128
+ "aria-controls": $ ? N : void 0,
129
+ "aria-activedescendant": we,
130
+ "aria-invalid": P !== null || void 0,
131
+ autoComplete: "off",
132
+ spellCheck: !1,
133
+ className: l("ssg-cell-editor-input ssg-cell-editor-input--search", P !== null && "ssg-cell-editor-input--invalid"),
134
+ style: T ? { textAlign: T } : void 0
135
+ }),
136
+ P === null ? null : /* @__PURE__ */ d(i, { message: P }),
137
+ B && q && !K ? re(/* @__PURE__ */ f("div", {
138
+ ref: M,
139
+ className: l("ssg-select-editor-popover ssg-select-editor-popover--search", G === "loading" && U.length > 0 && "ssg-select-editor-popover--loading", E, D?.className),
140
+ style: {
141
+ ...D?.style,
142
+ left: B.left,
143
+ top: B.top,
144
+ width: B.width,
145
+ maxHeight: B.maxHeight,
146
+ visibility: B.hidden ? "hidden" : void 0
147
+ },
148
+ onPointerDown: (e) => e.preventDefault(),
149
+ children: [Te, U.length > 0 ? /* @__PURE__ */ d("div", {
150
+ ref: j,
151
+ role: "listbox",
152
+ id: N,
153
+ "aria-label": g,
154
+ "aria-busy": G === "loading" || void 0,
155
+ className: "ssg-select-editor-scroller",
156
+ style: { height: X },
157
+ onScroll: (e) => H(e.currentTarget.scrollTop),
158
+ children: /* @__PURE__ */ d("div", {
159
+ className: "ssg-select-editor-rows",
160
+ role: "presentation",
161
+ style: { height: U.length * z },
162
+ children: Ce.map((e, t) => {
163
+ let n = Q.start + t, { option: r } = e;
164
+ return /* @__PURE__ */ f("div", {
165
+ id: `${N}-${n}`,
166
+ role: "option",
167
+ "aria-selected": n === W,
168
+ "aria-setsize": U.length,
169
+ "aria-posinset": n + 1,
170
+ className: l("ssg-select-editor-option", n === W && "ssg-select-editor-option--highlighted"),
171
+ style: { top: n * z },
172
+ onClick: () => L.choose(n),
173
+ onPointerEnter: (e) => se(e.currentTarget),
174
+ onPointerMove: (e) => {
175
+ _e(e) && L.hover(n);
176
+ },
177
+ children: [/* @__PURE__ */ d("span", {
178
+ className: "ssg-select-editor-option-label",
179
+ children: /* @__PURE__ */ d(v, {
180
+ text: r.label,
181
+ range: e.labelMatch
182
+ })
183
+ }), r.description ? /* @__PURE__ */ d("span", {
184
+ className: "ssg-select-editor-option-description",
185
+ children: /* @__PURE__ */ d(v, {
186
+ text: r.description,
187
+ range: e.descriptionMatch
188
+ })
189
+ }) : null]
190
+ }, `${r.value}-${n}`);
191
+ })
192
+ })
193
+ }) : null]
194
+ }), q) : null
195
+ ] });
196
+ }
197
+ //#endregion
198
+ //#region src/features/selectSearch.ts
199
+ var b = {
200
+ SearchSelectCellEditor: y,
201
+ localeText: g
202
+ };
203
+ //#endregion
204
+ export { b as t };
@@ -0,0 +1 @@
1
+ const e=require("./useController-Zlv7BRoY.cjs"),t=require("./usePortalTokens-CUAiwfmK.cjs"),n=require("./useGridLocaleText-CRSWUb4o.cjs"),r=require("./useTopAlignedInput-BAL_0rjw.cjs");let i=require("react"),a=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/cx"),ee=require("react-dom"),te=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards"),o=require("react/jsx-runtime"),s=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/selectEditorState"),c=require("@ishibashi0112/spreadsheet-grid-core/internal/utils/editorVisibleBounds"),l=require("@ishibashi0112/spreadsheet-grid-core/internal/utils/overflowTitle"),u=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/localeTextFeatures"),d=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/selectSearch"),f=require("@ishibashi0112/spreadsheet-grid-core/internal/controllers/searchSelectEditorController");function p({text:e,range:t}){return(0,o.jsx)(o.Fragment,{children:(0,d.splitSelectSearchText)(e,t).map((e,t)=>e.match?(0,o.jsx)(`mark`,{className:`ssg-select-editor-match`,children:e.text},t):e.text)})}function m({ariaLabel:u,options:m,value:h,displayText:g,allowFreeText:_,load:v,onCommit:y,onCancel:b,onRegisterFlush:x,align:S,themeClassName:C,popoverSlot:w,enterMove:ne,initialText:T,cellTop:re=0,cellLeft:ie=0,cellHeight:ae=0,alignTop:E=!1}){let D=n.r(),O=(0,i.useRef)(null),k=(0,i.useRef)(null),A=(0,i.useRef)(null);r.t(O,E,ae);let j=(0,i.useId)(),[M]=(0,i.useState)(s.createPointerMoveFilter),[N,P]=(0,i.useState)(null),F=(e,t,n,r)=>{let i=y(e,t,n,r);return i&&i.status===`rejected`&&P(i.message),i},[I]=(0,i.useState)(()=>(0,f.createSearchSelectEditorController)({options:m,value:h,initialText:T,displayText:g,allowFreeText:_,load:v,onCommit:F,onCancel:b}));e.r(()=>{I.setHandlers({onCommit:F,onCancel:b,load:v})});let L=(0,i.useSyncExternalStore)(I.subscribe,I.getSnapshot,I.getSnapshot);(0,i.useEffect)(()=>I.attach(),[I]),e.r(()=>{I.setOptions(m)},[I,m]),e.r(()=>{x?.(_?I.flush:null)},[x,_,I]);let[R]=(0,i.useState)(s.resolveSelectOptionRowHeight),[z,B]=(0,i.useState)(null),[V,H]=(0,i.useState)(0),{results:U,highlight:W,status:G}=L,K=_&&G===`ready`&&L.filtered&&U.length===0;t.i(A,z!==null&&!K,C,{layout:z});let q=t.r(z!==null),J=Math.max(U.length,1),oe=e=>(0,c.withAnchorVisibility)(e,(0,s.computeSelectPopoverPlacement)(e.getBoundingClientRect(),J,window.innerWidth,window.innerHeight,R,s.SELECT_SEARCH_POPOVER_MIN_WIDTH)),se=(0,i.useCallback)(e=>{O.current=e,e&&(e.focus(),T===void 0?e.select():e.setSelectionRange(e.value.length,e.value.length))},[T]),Y=(0,i.useRef)(null);e.r(()=>{let e=`${J}:${R}:${re}:${ie}`,t=O.current;Y.current===e||!t||(Y.current=e,B(oe(t)))}),(0,i.useEffect)(()=>{let e=()=>{let e=O.current;e&&B((0,c.withAnchorVisibility)(e,(0,s.computeSelectPopoverPlacement)(e.getBoundingClientRect(),J,window.innerWidth,window.innerHeight,R,s.SELECT_SEARCH_POPOVER_MIN_WIDTH)))};return window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[J,R]);let ce=z!==null,X=Math.min(J,8)*R,Z=(0,i.useCallback)(()=>{let e=k.current;if(!e)return;let t=I.getSnapshot().highlight,n=t<0?0:(0,d.revealSelectListRow)(t,e.scrollTop,X,R);n!==e.scrollTop&&(e.scrollTop=n),H(n)},[I,R,X]);e.r(()=>{Z()},[Z,U,ce]);let le=e=>{if((0,te.isImeComposingKeyEvent)(e.nativeEvent))return;let t=I.getSnapshot().highlight;I.keyDown(e,ne)&&I.getSnapshot().highlight!==t&&(P(null),Z())},Q=(0,d.resolveSelectListWindow)(V,X,R,U.length),ue=U.slice(Q.start,Q.end),$=z!==null&&U.length>0,de=$&&W>=0&&U[W]?`${j}-${W}`:void 0,fe=G===`error`?(0,o.jsxs)(`div`,{className:`ssg-select-editor-empty ssg-select-editor-error`,role:`alert`,children:[(0,o.jsx)(`span`,{className:`ssg-select-editor-error-text`,title:L.errorMessage??void 0,children:D.selectSearchFailed}),(0,o.jsx)(`button`,{type:`button`,className:`ssg-select-editor-retry`,tabIndex:-1,onClick:()=>I.retry(),children:D.retry})]}):U.length>0?null:(0,o.jsx)(`div`,{className:`ssg-select-editor-empty`,role:`status`,children:G===`loading`?D.selectSearchLoading:L.filtered?D.selectSearchNoMatch:D.noOptions});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(`input`,{ref:se,type:`text`,value:L.text,onChange:e=>{P(null),I.input(e.target.value,e.nativeEvent.isComposing===!0)},onCompositionEnd:e=>I.input(e.currentTarget.value,!1),onKeyDown:le,onBlur:()=>I.blur(),role:`combobox`,"aria-autocomplete":`list`,"aria-label":u,"aria-expanded":$,"aria-controls":$?j:void 0,"aria-activedescendant":de,"aria-invalid":N!==null||void 0,autoComplete:`off`,spellCheck:!1,className:(0,a.cx)(`ssg-cell-editor-input ssg-cell-editor-input--search`,N!==null&&`ssg-cell-editor-input--invalid`),style:S?{textAlign:S}:void 0}),N===null?null:(0,o.jsx)(r.n,{message:N}),z&&q&&!K?(0,ee.createPortal)((0,o.jsxs)(`div`,{ref:A,className:(0,a.cx)(`ssg-select-editor-popover ssg-select-editor-popover--search`,G===`loading`&&U.length>0&&`ssg-select-editor-popover--loading`,C,w?.className),style:{...w?.style,left:z.left,top:z.top,width:z.width,maxHeight:z.maxHeight,visibility:z.hidden?`hidden`:void 0},onPointerDown:e=>e.preventDefault(),children:[fe,U.length>0?(0,o.jsx)(`div`,{ref:k,role:`listbox`,id:j,"aria-label":u,"aria-busy":G===`loading`||void 0,className:`ssg-select-editor-scroller`,style:{height:X},onScroll:e=>H(e.currentTarget.scrollTop),children:(0,o.jsx)(`div`,{className:`ssg-select-editor-rows`,role:`presentation`,style:{height:U.length*R},children:ue.map((e,t)=>{let n=Q.start+t,{option:r}=e;return(0,o.jsxs)(`div`,{id:`${j}-${n}`,role:`option`,"aria-selected":n===W,"aria-setsize":U.length,"aria-posinset":n+1,className:(0,a.cx)(`ssg-select-editor-option`,n===W&&`ssg-select-editor-option--highlighted`),style:{top:n*R},onClick:()=>I.choose(n),onPointerEnter:e=>(0,l.revealOverflowTitle)(e.currentTarget),onPointerMove:e=>{M(e)&&I.hover(n)},children:[(0,o.jsx)(`span`,{className:`ssg-select-editor-option-label`,children:(0,o.jsx)(p,{text:r.label,range:e.labelMatch})}),r.description?(0,o.jsx)(`span`,{className:`ssg-select-editor-option-description`,children:(0,o.jsx)(p,{text:r.description,range:e.descriptionMatch})}):null]},`${r.value}-${n}`)})})}):null]}),q):null]})}var h={SearchSelectCellEditor:m,localeText:u.DEFAULT_SELECT_SEARCH_LOCALE_TEXT};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return h}});
@@ -0,0 +1 @@
1
+ const e=require("./useController-Zlv7BRoY.cjs");let t=require("react"),n=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/cx"),r=require("react/jsx-runtime"),i=require("@ishibashi0112/spreadsheet-grid-core/internal/utils/errorBubblePlacement"),a=require("@ishibashi0112/spreadsheet-grid-core/internal/utils/topAlignedInput");function o({message:e}){let[a,o]=(0,t.useState)(i.DEFAULT_ERROR_BUBBLE_PLACEMENT);return(0,r.jsx)(`div`,{ref:(0,t.useCallback)(e=>{e&&o((0,i.placeErrorBubble)(e))},[]),role:`alert`,className:(0,n.cx)(`ssg-cell-editor-error`,a.above&&i.ERROR_BUBBLE_ABOVE_CLASS),style:a.shift>0||a.wrapWidth!==null?{left:a.shift>0?-a.shift:void 0,width:a.wrapWidth??void 0,whiteSpace:a.wrapWidth===null?void 0:`normal`}:void 0,children:e},e)}var s=(t,n,r)=>{e.r(()=>{let e=t.current;e&&(0,a.alignInputTextToTop)(e,n,r,n?(0,a.resolveHiddenTopOf)(e):0)},[t,n,r])};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return s}});
@@ -0,0 +1,37 @@
1
+ import { r as e } from "./useController-zuzvTNo5.js";
2
+ import { useCallback as t, useState as n } from "react";
3
+ import { cx as r } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/cx";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import { DEFAULT_ERROR_BUBBLE_PLACEMENT as a, ERROR_BUBBLE_ABOVE_CLASS as o, placeErrorBubble as s } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/errorBubblePlacement";
6
+ import { alignInputTextToTop as c, resolveHiddenTopOf as l } from "@ishibashi0112/spreadsheet-grid-core/internal/utils/topAlignedInput";
7
+ //#region src/editors/CellEditorErrorBubble.tsx
8
+ function u({ message: e }) {
9
+ let [c, l] = n(a);
10
+ return /* @__PURE__ */ i("div", {
11
+ ref: t((e) => {
12
+ e && l(s(e));
13
+ }, []),
14
+ role: "alert",
15
+ className: r("ssg-cell-editor-error", c.above && o),
16
+ style: c.shift > 0 || c.wrapWidth !== null ? {
17
+ left: c.shift > 0 ? -c.shift : void 0,
18
+ width: c.wrapWidth ?? void 0,
19
+ whiteSpace: c.wrapWidth === null ? void 0 : "normal"
20
+ } : void 0,
21
+ children: e
22
+ }, e);
23
+ }
24
+ //#endregion
25
+ //#region src/editors/useTopAlignedInput.ts
26
+ var d = (t, n, r) => {
27
+ e(() => {
28
+ let e = t.current;
29
+ e && c(e, n, r, n ? l(e) : 0);
30
+ }, [
31
+ t,
32
+ n,
33
+ r
34
+ ]);
35
+ };
36
+ //#endregion
37
+ export { u as n, d as t };
package/dist/lite.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lite/createSpreadsheetGrid-iAPCKb03.cjs"),t=require("./lite/columnAutosize-4rpifIFh.cjs"),n=require("./lite/columnMenu-DcjRobOG.cjs"),r=require("./lite/features/export.cjs"),i=require("./lite/filtering-BTAXzOAK.cjs"),a=require("./lite/lazyPopups-B1nKq4RV.cjs"),o=require("./lite/toolPanel-DQlOiytT.cjs"),s=require("./lite/features/standard.cjs"),c=require("./lite/find-CBDk2qXA.cjs"),l=require("./lite/fillHandle-4pow6QTn.cjs"),u=require("./lite/columnReorder-Dp3-n6UT.cjs"),d=require("./lite/rowDrag-Bb1xlVXa.cjs"),f=require("./lite/scrollHint-Bt8fuU7l.cjs"),p=require("./lite/totalRow-CPe9CVv6.cjs"),m=require("./lite/pinnedRows-CBgirKjW.cjs"),h=require("./lite/columnGroups-BO3v8R95.cjs"),g=require("./lite/features/imeDirectInput.cjs"),_=require("./lite/contextMenu-C_EUynb4.cjs"),v=require("./lite/conditionalFormat-DPOgQy4e.cjs"),y=require("./lite/selectionAggregates-DuSb6U5D.cjs"),b=require("./lite/motionExtras-aDs-d_Qv.cjs"),x=require("./lite/features/autoHeight.cjs"),S=require("./lite/serverSide-COYBN6Pt.cjs"),C=require("./lite/labelRow-rhK34_qd.cjs"),w=require("./lite/grouping-DKYPOjCk.cjs");let T=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/valueFormatters"),E=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers"),D=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/gridState");exports.autoHeightFeature=x.autoHeightFeature,exports.columnAutosizeFeature=t.t,exports.columnGroupsFeature=h.t,exports.columnMenuFeature=n.t,exports.columnReorderFeature=u.t,exports.conditionalFormatFeature=v.t,exports.contextMenuFeature=_.t,exports.createSpreadsheetGrid=e.t,exports.exportFeature=r.exportFeature,exports.fillHandleFeature=l.t,exports.filteringFeature=i.t,exports.findFeature=c.t,exports.groupingFeature=w.t,exports.imeDirectInputFeature=g.imeDirectInputFeature,exports.labelRowFeature=C.t,exports.motionExtrasFeature=b.t,Object.defineProperty(exports,"numberFormatter",{enumerable:!0,get:function(){return T.numberFormatter}}),Object.defineProperty(exports,"numberParser",{enumerable:!0,get:function(){return E.numberParser}}),exports.pinnedRowsFeature=m.t,exports.preloadGridPopups=a.n,Object.defineProperty(exports,"restoreColumnsFromState",{enumerable:!0,get:function(){return D.restoreColumnsFromState}}),exports.rowDragFeature=d.t,exports.scrollHintFeature=f.t,exports.selectionAggregatesFeature=y.t,exports.serverSideFeature=S.t,exports.standardFeatures=s.standardFeatures,exports.toolPanelFeature=o.t,exports.totalRowFeature=p.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lite/createSpreadsheetGrid-B4_L9K--.cjs"),t=require("./lite/columnAutosize-4rpifIFh.cjs"),n=require("./lite/columnMenu-DcjRobOG.cjs"),r=require("./lite/features/export.cjs"),i=require("./lite/filtering-BTAXzOAK.cjs"),a=require("./lite/lazyPopups-B1nKq4RV.cjs"),o=require("./lite/toolPanel-DQlOiytT.cjs"),s=require("./lite/features/standard.cjs"),c=require("./lite/find-CBDk2qXA.cjs"),l=require("./lite/fillHandle-4pow6QTn.cjs"),u=require("./lite/columnReorder-Dp3-n6UT.cjs"),d=require("./lite/rowDrag-Bb1xlVXa.cjs"),f=require("./lite/scrollHint-Bt8fuU7l.cjs"),p=require("./lite/totalRow-CPe9CVv6.cjs"),m=require("./lite/pinnedRows-CBgirKjW.cjs"),h=require("./lite/columnGroups-BO3v8R95.cjs"),g=require("./lite/features/imeDirectInput.cjs"),_=require("./lite/selectSearch-BIeA4Xhg.cjs"),v=require("./lite/contextMenu-C_EUynb4.cjs"),y=require("./lite/conditionalFormat-DPOgQy4e.cjs"),b=require("./lite/selectionAggregates-DuSb6U5D.cjs"),x=require("./lite/motionExtras-aDs-d_Qv.cjs"),S=require("./lite/features/autoHeight.cjs"),C=require("./lite/serverSide-COYBN6Pt.cjs"),w=require("./lite/labelRow-rhK34_qd.cjs"),T=require("./lite/grouping-DKYPOjCk.cjs");let E=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/valueFormatters"),D=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers"),O=require("@ishibashi0112/spreadsheet-grid-core/internal/logic/gridState");exports.autoHeightFeature=S.autoHeightFeature,exports.columnAutosizeFeature=t.t,exports.columnGroupsFeature=h.t,exports.columnMenuFeature=n.t,exports.columnReorderFeature=u.t,exports.conditionalFormatFeature=y.t,exports.contextMenuFeature=v.t,exports.createSpreadsheetGrid=e.t,exports.exportFeature=r.exportFeature,exports.fillHandleFeature=l.t,exports.filteringFeature=i.t,exports.findFeature=c.t,exports.groupingFeature=T.t,exports.imeDirectInputFeature=g.imeDirectInputFeature,exports.labelRowFeature=w.t,exports.motionExtrasFeature=x.t,Object.defineProperty(exports,"numberFormatter",{enumerable:!0,get:function(){return E.numberFormatter}}),Object.defineProperty(exports,"numberParser",{enumerable:!0,get:function(){return D.numberParser}}),exports.pinnedRowsFeature=m.t,exports.preloadGridPopups=a.n,Object.defineProperty(exports,"restoreColumnsFromState",{enumerable:!0,get:function(){return O.restoreColumnsFromState}}),exports.rowDragFeature=d.t,exports.scrollHintFeature=f.t,exports.selectSearchFeature=_.t,exports.selectionAggregatesFeature=b.t,exports.serverSideFeature=C.t,exports.standardFeatures=s.standardFeatures,exports.toolPanelFeature=o.t,exports.totalRowFeature=p.t;
package/dist/lite.d.ts CHANGED
@@ -12,6 +12,7 @@ export { totalRowFeature } from './features/totalRow.js';
12
12
  export { pinnedRowsFeature } from './features/pinnedRows.js';
13
13
  export { columnGroupsFeature } from './features/columnGroups.js';
14
14
  export { imeDirectInputFeature } from './features/imeDirectInput.js';
15
+ export { selectSearchFeature } from './features/selectSearch.js';
15
16
  export { contextMenuFeature } from './features/contextMenu.js';
16
17
  export { conditionalFormatFeature } from './features/conditionalFormat.js';
17
18
  export { selectionAggregatesFeature } from './features/selectionAggregates.js';
package/dist/lite.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./lite/createSpreadsheetGrid-CvNJLEhA.js";
1
+ import { t as e } from "./lite/createSpreadsheetGrid-BlYZzGf-.js";
2
2
  import { t } from "./lite/columnAutosize-B0Rt8TlP.js";
3
3
  import { t as n } from "./lite/columnMenu-CpfckJa8.js";
4
4
  import { exportFeature as r } from "./lite/features/export.js";
@@ -15,15 +15,16 @@ import { t as p } from "./lite/totalRow-Btq5XqtJ.js";
15
15
  import { t as m } from "./lite/pinnedRows-BtvLVkLa.js";
16
16
  import { t as h } from "./lite/columnGroups-DQYKLqYn.js";
17
17
  import { imeDirectInputFeature as g } from "./lite/features/imeDirectInput.js";
18
- import { t as _ } from "./lite/contextMenu-Cb9KT0FS.js";
19
- import { t as v } from "./lite/conditionalFormat-DJ0EViJB.js";
20
- import { t as y } from "./lite/selectionAggregates-DoHetiAE.js";
21
- import { t as b } from "./lite/motionExtras-pdhFC4q1.js";
22
- import { autoHeightFeature as x } from "./lite/features/autoHeight.js";
23
- import { t as S } from "./lite/serverSide-CLb4dLUK.js";
24
- import { t as C } from "./lite/labelRow-l9spGw-3.js";
25
- import { t as w } from "./lite/grouping-u4J8Rl0V.js";
26
- import { numberFormatter as T } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/valueFormatters";
27
- import { numberParser as E } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers";
28
- import { restoreColumnsFromState as D } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/gridState";
29
- export { x as autoHeightFeature, t as columnAutosizeFeature, h as columnGroupsFeature, n as columnMenuFeature, u as columnReorderFeature, v as conditionalFormatFeature, _ as contextMenuFeature, e as createSpreadsheetGrid, r as exportFeature, l as fillHandleFeature, i as filteringFeature, c as findFeature, w as groupingFeature, g as imeDirectInputFeature, C as labelRowFeature, b as motionExtrasFeature, T as numberFormatter, E as numberParser, m as pinnedRowsFeature, a as preloadGridPopups, D as restoreColumnsFromState, d as rowDragFeature, f as scrollHintFeature, y as selectionAggregatesFeature, S as serverSideFeature, s as standardFeatures, o as toolPanelFeature, p as totalRowFeature };
18
+ import { t as _ } from "./lite/selectSearch-B1OSCMbw.js";
19
+ import { t as v } from "./lite/contextMenu-Cb9KT0FS.js";
20
+ import { t as y } from "./lite/conditionalFormat-DJ0EViJB.js";
21
+ import { t as b } from "./lite/selectionAggregates-DoHetiAE.js";
22
+ import { t as x } from "./lite/motionExtras-pdhFC4q1.js";
23
+ import { autoHeightFeature as S } from "./lite/features/autoHeight.js";
24
+ import { t as C } from "./lite/serverSide-CLb4dLUK.js";
25
+ import { t as w } from "./lite/labelRow-l9spGw-3.js";
26
+ import { t as T } from "./lite/grouping-u4J8Rl0V.js";
27
+ import { numberFormatter as E } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/valueFormatters";
28
+ import { numberParser as D } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/valueParsers";
29
+ import { restoreColumnsFromState as O } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/gridState";
30
+ export { S as autoHeightFeature, t as columnAutosizeFeature, h as columnGroupsFeature, n as columnMenuFeature, u as columnReorderFeature, y as conditionalFormatFeature, v as contextMenuFeature, e as createSpreadsheetGrid, r as exportFeature, l as fillHandleFeature, i as filteringFeature, c as findFeature, T as groupingFeature, g as imeDirectInputFeature, w as labelRowFeature, x as motionExtrasFeature, E as numberFormatter, D as numberParser, m as pinnedRowsFeature, a as preloadGridPopups, O as restoreColumnsFromState, d as rowDragFeature, f as scrollHintFeature, _ as selectSearchFeature, b as selectionAggregatesFeature, C as serverSideFeature, s as standardFeatures, o as toolPanelFeature, p as totalRowFeature };
@@ -36,6 +36,8 @@ export type GridAggFunc<T> = Core.GridAggFunc<T, ReactGridTypes>;
36
36
  /** 列定義(`columns` prop の要素)。各フィールドの説明は JSDoc と同梱の `API_REFERENCE.md`の「GridColumn props」表。 */
37
37
  export type GridColumn<T> = Core.GridColumn<T, ReactGridTypes>;
38
38
  export type GetFilterOptionsParams<T> = Core.GetFilterOptionsParams<T, ReactGridTypes>;
39
+ /** select エディタの `loadOptions` へ渡る引数(`query` / `row` / `rowKey` / `column` / `signal`)。 */
40
+ export type GridSelectLoadOptionsParams<T> = Core.GridSelectLoadOptionsParams<T, ReactGridTypes>;
39
41
  export type SpreadsheetGridSlotContext<T> = Core.SpreadsheetGridSlotContext<T, ReactGridTypes>;
40
42
  export type GridContextMenuTarget<T> = Core.GridContextMenuTarget<T, ReactGridTypes>;
41
43
  /** `getContextMenuItems` / `onContextMenuOpen` へ渡る右クリックの文脈。 */