@ishibashi0112/spreadsheet-grid 0.25.0 → 0.26.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/dist/CellEditorLayer.d.ts +3 -2
- package/dist/SpreadsheetGrid.d.ts +1 -1
- package/dist/editors/DateCellEditor.d.ts +3 -2
- package/dist/editors/NumberCellEditor.d.ts +3 -2
- package/dist/editors/SelectCellEditor.d.ts +3 -2
- package/dist/editors/TextCellEditor.d.ts +3 -2
- package/dist/editors/editorKeyBindings.d.ts +4 -2
- package/dist/hooks/useGridEditController.d.ts +1 -2
- package/dist/hooks/useGridKeyboardInteractions.d.ts +0 -1
- package/dist/index.cjs +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1615 -1583
- package/dist/model/gridTypes.d.ts +3 -1
- package/package.json +1 -1
|
@@ -242,7 +242,8 @@ export type CellValueFormatterParams<T> = {
|
|
|
242
242
|
column: GridColumn<T>;
|
|
243
243
|
};
|
|
244
244
|
export type CellValueFormatter<T> = (params: CellValueFormatterParams<T>) => string;
|
|
245
|
-
export type EditorCommitDirection = 'down' | 'right' | 'left';
|
|
245
|
+
export type EditorCommitDirection = 'down' | 'up' | 'right' | 'left';
|
|
246
|
+
export type EditorEnterMove = 'down' | 'up' | 'right' | 'left' | 'none';
|
|
246
247
|
export type GridSelectEditorOption = GridSelectFilterOption;
|
|
247
248
|
export type GridColumnEditor<T> = {
|
|
248
249
|
type: 'text';
|
|
@@ -628,6 +629,7 @@ export type SpreadsheetGridProps<T> = {
|
|
|
628
629
|
canEditCell?: (rowIndex: number, colIndex: number, row: T, column: GridColumn<T>) => boolean;
|
|
629
630
|
enableUndoRedo?: boolean;
|
|
630
631
|
enableClearOnDelete?: boolean;
|
|
632
|
+
editorEnterMove?: EditorEnterMove;
|
|
631
633
|
undoHistoryLimit?: number;
|
|
632
634
|
onUndoRedoStateChange?: (state: UndoRedoState) => void;
|
|
633
635
|
enableRangeSelection?: boolean;
|