@ishibashi0112/spreadsheet-grid 1.9.0 → 1.10.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 +141 -21
- package/README.md +2 -2
- package/dist/CellEditorLayer.d.ts +2 -1
- package/dist/GridShell.d.ts +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/editors/DateCellEditor.d.ts +2 -1
- package/dist/editors/NumberCellEditor.d.ts +2 -1
- package/dist/editors/SearchSelectCellEditor.d.ts +2 -1
- package/dist/editors/SelectCellEditor.d.ts +2 -1
- package/dist/editors/TextCellEditor.d.ts +2 -1
- package/dist/features/excelShortcuts.d.ts +2 -0
- package/dist/features/newRow.d.ts +2 -0
- package/dist/features/types.d.ts +5 -0
- package/dist/hooks/useGridClipboardController.d.ts +1 -0
- package/dist/hooks/useGridStore.d.ts +1 -1
- package/dist/index.cjs +11 -9
- package/dist/index.js +3248 -3025
- package/dist/lite/CopyRangeOverlay-BrCXRBtd.js +23 -0
- package/dist/lite/CopyRangeOverlay-CJGp8xo5.cjs +1 -0
- package/dist/lite/createSpreadsheetGrid-BWZbBB_j.js +5065 -0
- package/dist/lite/createSpreadsheetGrid-fhnxS5bQ.cjs +11 -0
- package/dist/lite/createSpreadsheetGrid.cjs +1 -1
- package/dist/lite/createSpreadsheetGrid.js +1 -1
- package/dist/lite/features/excelShortcuts.cjs +1 -0
- package/dist/lite/features/excelShortcuts.js +5 -0
- package/dist/lite/features/motionExtras.cjs +1 -1
- package/dist/lite/features/motionExtras.js +1 -1
- package/dist/lite/features/newRow.cjs +1 -0
- package/dist/lite/features/newRow.js +11 -0
- package/dist/lite/features/rowDrag.cjs +1 -1
- package/dist/lite/features/rowDrag.js +1 -1
- package/dist/lite/features/selectSearch.cjs +1 -1
- package/dist/lite/features/selectSearch.js +1 -1
- package/dist/lite/motionExtras-CZvGdgRi.js +26 -0
- package/dist/lite/motionExtras-Cz6DeWVG.cjs +1 -0
- package/dist/lite/{rowDrag-Bb1xlVXa.cjs → rowDrag--lPuW0-D.cjs} +1 -1
- package/dist/lite/{rowDrag-Dvg4JlGR.js → rowDrag-DVqgwSaj.js} +2 -1
- package/dist/lite/selectSearch-CMNy2EOi.cjs +1 -0
- package/dist/lite/{selectSearch-B1OSCMbw.js → selectSearch-DmFm5bXg.js} +51 -38
- package/dist/lite.cjs +1 -1
- package/dist/lite.d.ts +2 -0
- package/dist/lite.js +18 -16
- package/dist/model/gridTypes.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/style.layer.css +1 -1
- package/dist/view/GridBodyLayer.d.ts +9 -1
- package/package.json +2 -2
- package/skills/spreadsheet-grid/SKILL.md +5 -2
- package/dist/lite/createSpreadsheetGrid-B8ove8hh.js +0 -4857
- package/dist/lite/createSpreadsheetGrid-M3WJSRoB.cjs +0 -9
- package/dist/lite/motionExtras-aDs-d_Qv.cjs +0 -1
- package/dist/lite/motionExtras-pdhFC4q1.js +0 -46
- package/dist/lite/selectSearch-BIeA4Xhg.cjs +0 -1
|
@@ -4,6 +4,7 @@ type TextCellEditorProps = {
|
|
|
4
4
|
initialValue: string;
|
|
5
5
|
onCommit: (value: unknown, direction?: EditorCommitDirection) => EditorCommitResult | void;
|
|
6
6
|
onCancel: () => void;
|
|
7
|
+
onCommitToSelection?: ((value: unknown) => EditorCommitResult | void) | undefined;
|
|
7
8
|
onRegisterFlush?: ((flush: (() => void) | null) => void) | undefined;
|
|
8
9
|
align?: 'left' | 'center' | 'right';
|
|
9
10
|
enterMove?: EditorEnterMove;
|
|
@@ -14,5 +15,5 @@ type TextCellEditorProps = {
|
|
|
14
15
|
lineBreak?: string;
|
|
15
16
|
alignTop?: boolean;
|
|
16
17
|
};
|
|
17
|
-
export declare function TextCellEditor({ ariaLabel, initialValue, onCommit, onCancel, onRegisterFlush, align, enterMove, multiline, enterKey, cellHeight, wordBreak, lineBreak, alignTop, }: TextCellEditorProps): import("react").JSX.Element;
|
|
18
|
+
export declare function TextCellEditor({ ariaLabel, initialValue, onCommit, onCancel, onCommitToSelection, onRegisterFlush, align, enterMove, multiline, enterKey, cellHeight, wordBreak, lineBreak, alignTop, }: TextCellEditorProps): import("react").JSX.Element;
|
|
18
19
|
export default TextCellEditor;
|
package/dist/features/types.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import type { DateRolloverStore } from '@ishibashi0112/spreadsheet-grid-core/int
|
|
|
12
12
|
import type { RowOrder } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/filtering';
|
|
13
13
|
import type { buildRevertMenuItems, describeUnsavedCell, formatUnsavedSummary } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/changeTracking';
|
|
14
14
|
import type { ResolvedGridLocaleText } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/localeText';
|
|
15
|
+
import type { resolveNewRowPlaceholder } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/newRow';
|
|
15
16
|
import type { GridUiAction } from '@ishibashi0112/spreadsheet-grid-core/internal/model/gridActions';
|
|
16
17
|
import type { ColumnPane, GridPaneLayout } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/geometry';
|
|
17
18
|
import type { DetailRowExtra, RowMetrics } from '@ishibashi0112/spreadsheet-grid-core/internal/logic/verticalGeometry';
|
|
@@ -283,6 +284,10 @@ export type ReactGridFeatures = {
|
|
|
283
284
|
formatUnsavedSummary: typeof formatUnsavedSummary;
|
|
284
285
|
buildRevertMenuItems: typeof buildRevertMenuItems;
|
|
285
286
|
} | undefined;
|
|
287
|
+
excelShortcuts?: NonNullable<GridCoreFeatures['excelShortcuts']> | undefined;
|
|
288
|
+
newRow?: NonNullable<GridCoreFeatures['newRow']> & FeatureLocaleDefaults & {
|
|
289
|
+
resolveNewRowPlaceholder: typeof resolveNewRowPlaceholder;
|
|
290
|
+
} | undefined;
|
|
286
291
|
treeData?: NonNullable<GridCoreFeatures['treeData']> & FeatureLocaleDefaults & {
|
|
287
292
|
TreeCellPrefix: typeof GridTreeCellPrefix;
|
|
288
293
|
TreeAggregateValue: typeof GridTreeAggregateValue;
|
|
@@ -3,6 +3,7 @@ import { type ClipboardControllerArgs } from '@ishibashi0112/spreadsheet-grid-co
|
|
|
3
3
|
export declare const useGridClipboardController: <T extends object>(args: ClipboardControllerArgs<T>) => {
|
|
4
4
|
isWholeGridSelected: boolean;
|
|
5
5
|
handleCopy: () => Promise<void>;
|
|
6
|
+
handleCut: () => Promise<void>;
|
|
6
7
|
handlePaste: (event: ClipboardEvent<HTMLDivElement>) => void;
|
|
7
8
|
};
|
|
8
9
|
export default useGridClipboardController;
|
|
@@ -2,6 +2,6 @@ import { type GridStore, type GridViewState, type Updater } from '@ishibashi0112
|
|
|
2
2
|
import type { GridUiState } from '../model/gridTypes.js';
|
|
3
3
|
export declare function useGridStore(store: GridStore): [GridUiState, GridStore['dispatch']];
|
|
4
4
|
export type GridViewStateSetters = {
|
|
5
|
-
[K in Exclude<keyof GridViewState, 'maxBodyPx'> as `set${Capitalize<K>}`]-?: (next: Updater<Exclude<GridViewState[K], undefined>>) => void;
|
|
5
|
+
[K in Exclude<keyof GridViewState, 'maxBodyPx' | 'newRowDraft'> as `set${Capitalize<K>}`]-?: (next: Updater<Exclude<GridViewState[K], undefined>>) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare function useGridViewState(store: GridStore): [GridViewState, GridViewStateSetters];
|