ia-table 0.12.10 → 0.13.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/dist/index.d.ts +3521 -15
- package/dist/index.js +10535 -9996
- package/package.json +8 -5
- package/dist/components/IATable/types/api.d.ts +0 -285
- package/dist/components/IATable/types/cache.d.ts +0 -65
- package/dist/components/IATable/types/columns.d.ts +0 -204
- package/dist/components/IATable/types/common.d.ts +0 -62
- package/dist/components/IATable/types/index.d.ts +0 -7
- package/dist/components/IATable/types/reducer.d.ts +0 -3
- package/dist/components/IATable/types/svg.d.ts +0 -5
- package/dist/components/IATable/types/table.d.ts +0 -206
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode, Ref } from "react";
|
|
2
|
-
import {
|
|
3
|
-
SmartGridColumnDefinition,
|
|
4
|
-
SmartGridHeaderStyleParams,
|
|
5
|
-
} from "./columns";
|
|
6
|
-
import {
|
|
7
|
-
SmartGridAPI,
|
|
8
|
-
SmartGridCellValueChangedParams,
|
|
9
|
-
SmartGridGetRowDataParams,
|
|
10
|
-
SmartGridRowData,
|
|
11
|
-
} from "./api";
|
|
12
|
-
import { SmartGridSortModel } from "./common";
|
|
13
|
-
|
|
14
|
-
export interface SmartGridTableRef {
|
|
15
|
-
api: SmartGridAPI;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface SmartGridRowDragStartParams {
|
|
19
|
-
api: SmartGridAPI;
|
|
20
|
-
type: "rowDragStart";
|
|
21
|
-
rowIndex: number;
|
|
22
|
-
rowData: SmartGridRowData;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface SmartGridRowDragEndParams {
|
|
26
|
-
api: SmartGridAPI;
|
|
27
|
-
type: "rowDragEnd";
|
|
28
|
-
fromIndex: number;
|
|
29
|
-
toIndex: number;
|
|
30
|
-
rowData: SmartGridRowData;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export type SmartGridOnReadyParams = {
|
|
34
|
-
api: SmartGridAPI;
|
|
35
|
-
columnApi: SmartGridAPI;
|
|
36
|
-
type: "gridReady";
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export type SmartGridRowGrouOpenParams = {
|
|
40
|
-
rowId: string;
|
|
41
|
-
rowIndex: number;
|
|
42
|
-
api: SmartGridAPI;
|
|
43
|
-
isExpanded: boolean;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
export type SmartGridOnSelectionChangedParams = {
|
|
47
|
-
api: SmartGridAPI;
|
|
48
|
-
type: string;
|
|
49
|
-
source: string;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export type SmartGridRowStyleParams = {
|
|
53
|
-
api: SmartGridAPI;
|
|
54
|
-
data: SmartGridRowData;
|
|
55
|
-
pinned: boolean;
|
|
56
|
-
node: {
|
|
57
|
-
rowIndex: number;
|
|
58
|
-
data: SmartGridRowData;
|
|
59
|
-
api: SmartGridAPI;
|
|
60
|
-
pinned: boolean;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export type SmartGridDefaultColDef = {
|
|
65
|
-
minWidth: number;
|
|
66
|
-
headerComponentParams?: {
|
|
67
|
-
innerHeaderComponent:
|
|
68
|
-
| ((params: SmartGridHeaderStyleParams) => ReactNode)
|
|
69
|
-
| null;
|
|
70
|
-
};
|
|
71
|
-
headerComponent?: ((params: SmartGridHeaderStyleParams) => ReactNode) | null;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
export type SmartGridTableProps = {
|
|
75
|
-
ref?: Ref<SmartGridTableRef>;
|
|
76
|
-
data?: SmartGridRowData[];
|
|
77
|
-
columns: SmartGridColumnDefinition[];
|
|
78
|
-
height?: number | string;
|
|
79
|
-
uniqueIdField: string;
|
|
80
|
-
childKeyField?: string;
|
|
81
|
-
defaultColDef?: SmartGridDefaultColDef;
|
|
82
|
-
pinnedTopRowData?: SmartGridRowData[];
|
|
83
|
-
pinnedBottomRowData?: SmartGridRowData[];
|
|
84
|
-
getRowStyle?: (params: SmartGridRowStyleParams) => CSSProperties;
|
|
85
|
-
tableHeader?: string | ReactNode;
|
|
86
|
-
topRightOptions?: string | ReactNode;
|
|
87
|
-
bottomLeftOptions?: string | ReactNode;
|
|
88
|
-
bottomCenterOptions?: string | ReactNode;
|
|
89
|
-
bottomRightOptions?: string | ReactNode;
|
|
90
|
-
topLeftOptions?: string | ReactNode;
|
|
91
|
-
headerHeight?: number | string;
|
|
92
|
-
onSelectionChanged?: (event: SmartGridOnSelectionChangedParams) => void;
|
|
93
|
-
onRowDragStart?: (event: SmartGridRowDragStartParams) => void;
|
|
94
|
-
onRowDragEnd?: (event: SmartGridRowDragEndParams) => void;
|
|
95
|
-
onCellValueChanged?: (params: SmartGridCellValueChangedParams) => void;
|
|
96
|
-
onGridReady?: (params: SmartGridOnReadyParams) => void;
|
|
97
|
-
onRowGroupOpened?: (params: SmartGridRowGrouOpenParams) => void;
|
|
98
|
-
fetchData?: (
|
|
99
|
-
manualbody: any,
|
|
100
|
-
page: any,
|
|
101
|
-
context: any,
|
|
102
|
-
pageNo: any,
|
|
103
|
-
other: any
|
|
104
|
-
) => Promise<any>;
|
|
105
|
-
apiUrl?: string;
|
|
106
|
-
autoFetch?: boolean;
|
|
107
|
-
cacheConfig?: {
|
|
108
|
-
threshold?: number;
|
|
109
|
-
maxBlocksInCache?: number;
|
|
110
|
-
cacheOverflowSize?: number;
|
|
111
|
-
rowHeight?: number;
|
|
112
|
-
purgeStrategy?: string;
|
|
113
|
-
enablePersistence?: boolean;
|
|
114
|
-
persistenceStorageKey?: string;
|
|
115
|
-
persistenceOptions?: any;
|
|
116
|
-
force?: boolean;
|
|
117
|
-
};
|
|
118
|
-
onScroll?: (event: any) => void;
|
|
119
|
-
showSaveTableConfig?: boolean;
|
|
120
|
-
loadTableInstance?: (api: SmartGridAPI) => void;
|
|
121
|
-
adjustTableHeightServerSide?: boolean;
|
|
122
|
-
largeDatasetOptions?: {
|
|
123
|
-
enableIndexedDBCache?: boolean;
|
|
124
|
-
enableStreamingLoad?: boolean;
|
|
125
|
-
enableEnhancedWorker?: boolean;
|
|
126
|
-
binaryFormat?: boolean;
|
|
127
|
-
extremelyLargeDatasetThreshold?: number;
|
|
128
|
-
};
|
|
129
|
-
gridOptions?: any;
|
|
130
|
-
tableId?: string;
|
|
131
|
-
alignedGrids?: any[];
|
|
132
|
-
masterDetail?: boolean;
|
|
133
|
-
detailCellRenderer?: any;
|
|
134
|
-
detailRowHeight?: number;
|
|
135
|
-
infiniteScroll?: boolean;
|
|
136
|
-
customTabFunction?: any;
|
|
137
|
-
getRowData?: (params: SmartGridGetRowDataParams, columnName: string) => any;
|
|
138
|
-
rowDragManaged?: boolean;
|
|
139
|
-
hidePaginationPageSizeSelector?: boolean;
|
|
140
|
-
purgeClosedRowNodes?: boolean;
|
|
141
|
-
detailRendererTable?: boolean;
|
|
142
|
-
smartGridMenuOptions?: {
|
|
143
|
-
withColumMenu?: boolean;
|
|
144
|
-
autoWithColumMenu?: boolean;
|
|
145
|
-
freezeColumnMenu?: boolean;
|
|
146
|
-
sortColumnMenu?: boolean;
|
|
147
|
-
collapseColumnAll?: boolean;
|
|
148
|
-
expandColumnAll?: boolean;
|
|
149
|
-
wrapText?: boolean;
|
|
150
|
-
[key: string]: any;
|
|
151
|
-
};
|
|
152
|
-
paginateOriginalRowsOnly?: boolean;
|
|
153
|
-
isSaveViewEnabled?: boolean;
|
|
154
|
-
isSavingViewLoading?: boolean;
|
|
155
|
-
maxSavedViews?: number;
|
|
156
|
-
deleteViewPromptText?: string;
|
|
157
|
-
savedViewsOptions?: any[];
|
|
158
|
-
handleSetDefaultView?: (view: any) => void;
|
|
159
|
-
handleSavedViewClick?: (view: any) => void;
|
|
160
|
-
handleEditSaveView?: (view: any) => void;
|
|
161
|
-
handleSaveAndApply?: (view: any) => void;
|
|
162
|
-
handleDeleteViewClick?: (view: any) => void;
|
|
163
|
-
rowHeight?: string;
|
|
164
|
-
additionalButtons?: string | ReactNode;
|
|
165
|
-
aboveTableComponent?: string | ReactNode;
|
|
166
|
-
shouldRenderTable?: boolean;
|
|
167
|
-
nestedTable?: boolean;
|
|
168
|
-
nestedTableComponent?: Function | ReactNode;
|
|
169
|
-
enableNestedTableCloseButton?: boolean;
|
|
170
|
-
downloadAsExcel?: boolean;
|
|
171
|
-
downloadAsCSV?: boolean;
|
|
172
|
-
copyToClipboard?: boolean;
|
|
173
|
-
onCloseNestedTable?: () => void;
|
|
174
|
-
downloadExcelHandler?: () => void;
|
|
175
|
-
downloadCSVHandler?: () => void;
|
|
176
|
-
copyToClipboardHandler?: () => void;
|
|
177
|
-
ShowFullText?: boolean;
|
|
178
|
-
hideNotification?: boolean;
|
|
179
|
-
isSingleSelect?: boolean;
|
|
180
|
-
defaultPageSize?: number;
|
|
181
|
-
paginationPageSize?: number[];
|
|
182
|
-
enableRowSpan?: boolean;
|
|
183
|
-
rowSpanColumn?: string | string[];
|
|
184
|
-
showHeader?: boolean;
|
|
185
|
-
showFooter?: boolean;
|
|
186
|
-
showToolbar?: boolean;
|
|
187
|
-
selectable?: boolean;
|
|
188
|
-
defaultSort?: SmartGridSortModel;
|
|
189
|
-
actions?: Record<string, any>;
|
|
190
|
-
pagination?: boolean;
|
|
191
|
-
showTableSettingActionTab?: boolean;
|
|
192
|
-
showTableSettingFormatTab?: boolean;
|
|
193
|
-
showFilters?: boolean;
|
|
194
|
-
expandable?: boolean;
|
|
195
|
-
onCellClicked?: () => void;
|
|
196
|
-
onCellClick?: () => void;
|
|
197
|
-
onRowClicked?: () => void;
|
|
198
|
-
onRowClick?: () => void;
|
|
199
|
-
disableSelectAllRecords?: boolean;
|
|
200
|
-
columnBufferSize?: number;
|
|
201
|
-
lazyLoadCellRenderer?: boolean;
|
|
202
|
-
hasSplitRenderer?: boolean;
|
|
203
|
-
splitRendererKeys?: string[];
|
|
204
|
-
removeSelectionOnOperation?: boolean;
|
|
205
|
-
[key: string]: any;
|
|
206
|
-
};
|