@ishibashi0112/spreadsheet-grid 1.0.0 → 1.0.1
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 +99 -82
- package/README.md +4 -4
- package/dist/ColumnFilterPopover-VHTWLyQ7.cjs +1 -0
- package/dist/ColumnFilterPopover-xCX4O5Pb.js +1036 -0
- package/dist/editors/DateCellEditor.d.ts +2 -1
- package/dist/editors/NumberCellEditor.d.ts +2 -1
- package/dist/editors/SelectCellEditor.d.ts +2 -1
- package/dist/editors/TextCellEditor.d.ts +2 -1
- package/dist/hooks/useColumnSelectOptionsCollector.d.ts +2 -1
- package/dist/hooks/useGridViewportSync.d.ts +2 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +2875 -2771
- package/dist/lite/ColumnFilterPopover-BNzAJgCT.js +1036 -0
- package/dist/lite/ColumnFilterPopover-Dusx2AfV.cjs +1 -0
- package/dist/lite/columnMenu-C8LMgSDh.cjs +1 -0
- package/dist/lite/{columnMenu-tZSAVFch.js → columnMenu-DImtqeXz.js} +27 -12
- package/dist/lite/createSpreadsheetGrid-BsuvhGwN.cjs +7 -0
- package/dist/lite/createSpreadsheetGrid-CcUZV9Nl.js +4383 -0
- package/dist/lite/createSpreadsheetGrid.cjs +1 -1
- package/dist/lite/createSpreadsheetGrid.js +1 -1
- package/dist/lite/features/columnMenu.cjs +1 -1
- package/dist/lite/features/columnMenu.js +1 -1
- package/dist/lite/features/filtering.cjs +1 -1
- package/dist/lite/features/filtering.js +1 -1
- package/dist/lite/features/selectionAggregates.cjs +1 -1
- package/dist/lite/features/selectionAggregates.js +1 -1
- package/dist/lite/features/standard.cjs +1 -1
- package/dist/lite/features/standard.js +3 -3
- package/dist/lite/features/toolPanel.cjs +1 -1
- package/dist/lite/features/toolPanel.js +1 -1
- package/dist/lite/{filtering-DWiGawv7.js → filtering-BJD9TbJf.js} +14 -10
- package/dist/lite/filtering-CTgteY8F.cjs +1 -0
- package/dist/lite/{lazyPopups-BJXlFn1p.cjs → lazyPopups-BQZ_tQmx.cjs} +1 -1
- package/dist/lite/{lazyPopups-DVqRlLJf.js → lazyPopups-DbZ9rUbb.js} +1 -1
- package/dist/lite/{selectionAggregates-D5TcCyB5.cjs → selectionAggregates-CP0_LaAu.cjs} +1 -1
- package/dist/lite/{selectionAggregates-3u3kJh4W.js → selectionAggregates-CS_VR9ev.js} +14 -7
- package/dist/lite/{toolPanel-DZFTU5l3.js → toolPanel-DZ6JUS79.js} +1 -1
- package/dist/lite/{toolPanel-E0gQydUn.cjs → toolPanel-RciyWlun.cjs} +1 -1
- package/dist/lite/{toolPanelViews-CbMCZSFx.js → toolPanelViews-DYrngzT1.js} +2 -1
- package/dist/lite/toolPanelViews-DgY7fFl7.cjs +1 -0
- package/dist/lite.cjs +1 -1
- package/dist/lite.js +6 -6
- package/dist/style.css +1 -1
- package/dist/style.layer.css +1 -1
- package/dist/themes/heroui.css +2 -1
- package/dist/themes/shadcn.css +2 -1
- package/dist/toolPanelViews-BdtqSCJ6.cjs +1 -0
- package/dist/{toolPanelViews-BywJx-1p.js → toolPanelViews-C7C1j-ss.js} +2 -1
- package/package.json +2 -2
- package/skills/spreadsheet-grid/SKILL.md +7 -7
- package/dist/ColumnFilterPopover-BPUTyi1X.js +0 -1023
- package/dist/ColumnFilterPopover-C0BaV7ne.cjs +0 -1
- package/dist/lite/ColumnFilterPopover-CRrelKCm.cjs +0 -1
- package/dist/lite/ColumnFilterPopover-DZj1S5tC.js +0 -1023
- package/dist/lite/columnMenu-Dp1_-G7T.cjs +0 -1
- package/dist/lite/createSpreadsheetGrid--0D_J_WV.js +0 -4305
- package/dist/lite/createSpreadsheetGrid-BVm9M39W.cjs +0 -7
- package/dist/lite/filtering-SjDjhxZN.cjs +0 -1
- package/dist/lite/toolPanelViews-CRRJt6BV.cjs +0 -1
- package/dist/toolPanelViews-lSrwZauC.cjs +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { EditorCommitDirection, EditorCommitResult, EditorEnterMove } from '../model/gridTypes.js';
|
|
2
2
|
type DateCellEditorProps = {
|
|
3
|
+
ariaLabel?: string;
|
|
3
4
|
initialValue: string;
|
|
4
5
|
onCommit: (value: unknown, direction?: EditorCommitDirection) => EditorCommitResult | void;
|
|
5
6
|
onCancel: () => void;
|
|
6
7
|
align?: 'left' | 'center' | 'right';
|
|
7
8
|
enterMove?: EditorEnterMove;
|
|
8
9
|
};
|
|
9
|
-
export declare function DateCellEditor({ initialValue, onCommit, onCancel, align, enterMove, }: DateCellEditorProps): import("react").JSX.Element;
|
|
10
|
+
export declare function DateCellEditor({ ariaLabel, initialValue, onCommit, onCancel, align, enterMove, }: DateCellEditorProps): import("react").JSX.Element;
|
|
10
11
|
export default DateCellEditor;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EditorCommitDirection, EditorCommitResult, EditorEnterMove } from '../model/gridTypes.js';
|
|
2
2
|
type NumberCellEditorProps = {
|
|
3
|
+
ariaLabel?: string;
|
|
3
4
|
initialValue: string;
|
|
4
5
|
min?: number;
|
|
5
6
|
max?: number;
|
|
@@ -9,5 +10,5 @@ type NumberCellEditorProps = {
|
|
|
9
10
|
align?: 'left' | 'center' | 'right';
|
|
10
11
|
enterMove?: EditorEnterMove;
|
|
11
12
|
};
|
|
12
|
-
export declare function NumberCellEditor({ initialValue, min, max, step, onCommit, onCancel, align, enterMove, }: NumberCellEditorProps): import("react").JSX.Element;
|
|
13
|
+
export declare function NumberCellEditor({ ariaLabel, initialValue, min, max, step, onCommit, onCancel, align, enterMove, }: NumberCellEditorProps): import("react").JSX.Element;
|
|
13
14
|
export default NumberCellEditor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { EditorCommitDirection, EditorCommitResult, EditorEnterMove, GridSelectEditorOption } from '../model/gridTypes.js';
|
|
2
2
|
import type { GridResolvedSlot } from '../model/gridTypes.js';
|
|
3
3
|
type SelectCellEditorProps = {
|
|
4
|
+
ariaLabel?: string;
|
|
4
5
|
options: GridSelectEditorOption[];
|
|
5
6
|
value: unknown;
|
|
6
7
|
onCommit: (value: unknown, direction?: EditorCommitDirection) => EditorCommitResult | void;
|
|
@@ -11,5 +12,5 @@ type SelectCellEditorProps = {
|
|
|
11
12
|
enterMove?: EditorEnterMove;
|
|
12
13
|
initialText?: string;
|
|
13
14
|
};
|
|
14
|
-
export declare function SelectCellEditor({ options, value, onCommit, onCancel, align, themeClassName, popoverSlot, enterMove, initialText, }: SelectCellEditorProps): import("react").JSX.Element;
|
|
15
|
+
export declare function SelectCellEditor({ ariaLabel, options, value, onCommit, onCancel, align, themeClassName, popoverSlot, enterMove, initialText, }: SelectCellEditorProps): import("react").JSX.Element;
|
|
15
16
|
export default SelectCellEditor;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EditorCommitDirection, EditorCommitResult, EditorEnterMove, GridTextEditorEnterKey } from '../model/gridTypes.js';
|
|
2
2
|
type TextCellEditorProps = {
|
|
3
|
+
ariaLabel?: string;
|
|
3
4
|
initialValue: string;
|
|
4
5
|
onCommit: (value: unknown, direction?: EditorCommitDirection) => EditorCommitResult | void;
|
|
5
6
|
onCancel: () => void;
|
|
@@ -12,5 +13,5 @@ type TextCellEditorProps = {
|
|
|
12
13
|
lineBreak?: string;
|
|
13
14
|
alignTop?: boolean;
|
|
14
15
|
};
|
|
15
|
-
export declare function TextCellEditor({ initialValue, onCommit, onCancel, align, enterMove, multiline, enterKey, cellHeight, wordBreak, lineBreak, alignTop, }: TextCellEditorProps): import("react").JSX.Element;
|
|
16
|
+
export declare function TextCellEditor({ ariaLabel, initialValue, onCommit, onCancel, align, enterMove, multiline, enterKey, cellHeight, wordBreak, lineBreak, alignTop, }: TextCellEditorProps): import("react").JSX.Element;
|
|
16
17
|
export default TextCellEditor;
|
|
@@ -5,6 +5,7 @@ type UseColumnSelectOptionsCollectorArgs<T> = {
|
|
|
5
5
|
column: GridColumn<T> | null;
|
|
6
6
|
rowCount: number;
|
|
7
7
|
getRawValueAt: RawValueAccessor;
|
|
8
|
+
numeric?: boolean;
|
|
8
9
|
};
|
|
9
|
-
export declare const useColumnSelectOptionsCollector: <T>({ column, rowCount, getRawValueAt, }: UseColumnSelectOptionsCollectorArgs<T>) => ColumnSelectOptionsResult;
|
|
10
|
+
export declare const useColumnSelectOptionsCollector: <T>({ column, rowCount, getRawValueAt, numeric, }: UseColumnSelectOptionsCollectorArgs<T>) => ColumnSelectOptionsResult;
|
|
10
11
|
export default useColumnSelectOptionsCollector;
|
|
@@ -2,6 +2,7 @@ import { type RefObject } from 'react';
|
|
|
2
2
|
import { type ViewportSyncArgs } from '@ishibashi0112/spreadsheet-grid-core/internal/controllers/viewportSyncController';
|
|
3
3
|
type UseGridViewportSyncArgs<T> = Omit<ViewportSyncArgs<T>, 'scrollElement'> & {
|
|
4
4
|
scrollRef: RefObject<HTMLDivElement | null>;
|
|
5
|
+
onScrollTopAnchored: (scrollTop: number) => void;
|
|
5
6
|
};
|
|
6
|
-
export declare const useGridViewportSync: <T>({ scrollRef, ...args }: UseGridViewportSyncArgs<T>) => void;
|
|
7
|
+
export declare const useGridViewportSync: <T>({ scrollRef, onScrollTopAnchored, ...args }: UseGridViewportSyncArgs<T>) => void;
|
|
7
8
|
export default useGridViewportSync;
|