1 | import numbro from 'numbro';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export type CellValue = any;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export type CellChange = [number, string | number | ColumnDataGetterSetterFunction, CellValue, CellValue];
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export interface RowObject {
|
22 | [prop: string]: any;
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | export interface SelectOptionsObject {
|
29 | [prop: string]: string;
|
30 | }
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export type SourceRowData = RowObject | CellValue[];
|
36 |
|
37 | export interface SimpleCellCoords {
|
38 | row: number;
|
39 | col: number;
|
40 | }
|
41 |
|
42 | export interface RangeType {
|
43 | startRow: number;
|
44 | startCol: number;
|
45 | endRow: number;
|
46 | endCol: number;
|
47 | }
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | export type ChangeSource = 'auto' | 'edit' | 'loadData' | 'updateData' | 'populateFromArray' | 'spliceCol' |
|
53 | 'spliceRow' | 'timeValidate' | 'dateValidate' | 'validateCells' |
|
54 | 'Autofill.fill' | 'ContextMenu.clearColumn' | 'ContextMenu.columnLeft' |
|
55 | 'ContextMenu.columnRight' | 'ContextMenu.removeColumn' |
|
56 | 'ContextMenu.removeRow' | 'ContextMenu.rowAbove' | 'ContextMenu.rowBelow' |
|
57 | 'CopyPaste.paste' | 'UndoRedo.redo' | 'UndoRedo.undo' | 'ColumnSummary.set' |
|
58 | 'ColumnSummary.reset';
|
59 |
|
60 | export interface LabelOptions {
|
61 | property?: string;
|
62 | position?: 'before' | 'after';
|
63 | value?: string | (() => string);
|
64 | }
|
65 |
|
66 | export interface NumericFormatOptions {
|
67 | pattern: string | numbro.Format;
|
68 | culture?: string;
|
69 | }
|
70 |
|
71 | export interface ColumnDataGetterSetterFunction {
|
72 | (row: RowObject | CellValue[]): CellValue;
|
73 | (row: RowObject | CellValue[], value: CellValue): void;
|
74 | }
|
75 |
|
76 | export type OverlayType = 'inline_start' | 'top' | 'top_inline_start_corner' | 'bottom' |
|
77 | 'bottom_inline_start_corner' | 'master';
|
78 |
|
\ | No newline at end of file |