sheet-happens 0.0.24 → 0.0.25
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/index.d.ts +3 -40
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/sheet.d.ts +41 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,41 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
value: string;
|
|
5
|
-
autoFocus: boolean;
|
|
6
|
-
onKeyDown: KeyboardEventHandler<HTMLElement>;
|
|
7
|
-
onChange: (value: string) => void;
|
|
8
|
-
style: InputStyle;
|
|
9
|
-
};
|
|
10
|
-
export declare type SheetProps = {
|
|
11
|
-
cellWidth?: RowOrColumnProperty<number>;
|
|
12
|
-
cellHeight?: RowOrColumnProperty<number>;
|
|
13
|
-
columnHeaders?: RowOrColumnProperty<CellContentType>;
|
|
14
|
-
columnHeaderStyle?: RowOrColumnProperty<Style>;
|
|
15
|
-
cellStyle?: CellProperty<Style>;
|
|
16
|
-
readOnly?: CellProperty<boolean>;
|
|
17
|
-
canSizeColumn?: RowOrColumnProperty<boolean>;
|
|
18
|
-
canSizeRow?: RowOrColumnProperty<boolean>;
|
|
19
|
-
canOrderColumn?: RowOrColumnProperty<boolean>;
|
|
20
|
-
canOrderRow?: RowOrColumnProperty<boolean>;
|
|
21
|
-
sourceData?: CellProperty<string | number | null>;
|
|
22
|
-
displayData?: CellProperty<CellContentType>;
|
|
23
|
-
editData?: CellProperty<string>;
|
|
24
|
-
editKeys?: CellProperty<string>;
|
|
25
|
-
sheetStyle?: SheetStyle;
|
|
26
|
-
secondarySelections?: Selection[];
|
|
27
|
-
cacheLayout?: boolean;
|
|
28
|
-
dontCommitEditOnSelectionChange?: boolean;
|
|
29
|
-
inputComponent?: (x: number, y: number, props: SheetInputProps, commitEditingCell?: () => void) => ReactElement | undefined;
|
|
30
|
-
onSelectionChanged?: (minX: number, minY: number, maxX: number, maxY: number) => void;
|
|
31
|
-
onRightClick?: (e: SheetPointerEvent) => void;
|
|
32
|
-
onChange?: (changes: Array<Change>) => void;
|
|
33
|
-
onColumnOrderChange?: (indices: number[], order: number) => void;
|
|
34
|
-
onRowOrderChange?: (indices: number[], order: number) => void;
|
|
35
|
-
onCellWidthChange?: (indices: number[], value: number) => void;
|
|
36
|
-
onCellHeightChange?: (indices: number[], value: number) => void;
|
|
37
|
-
onScrollChange?: (visibleRows: number[], visibleColumns: number[]) => void;
|
|
38
|
-
};
|
|
39
|
-
export declare type SheetRef = CellLayout;
|
|
40
|
-
declare const Sheet: React.ForwardRefExoticComponent<SheetProps & React.RefAttributes<CellLayout>>;
|
|
1
|
+
import Sheet from './sheet';
|
|
2
|
+
export * from './sheet';
|
|
3
|
+
export * from './types';
|
|
41
4
|
export default Sheet;
|