@infinite-table/infinite-react 0.2.8 → 0.2.11
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/index.css +5 -5
- package/index.d.ts +1045 -3217
- package/index.esm.css +5 -5
- package/index.esm.js +6506 -6332
- package/index.js +6422 -6252
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,3229 +1,1057 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const sortTypes: {
|
|
14
|
-
[key: string]: (first: any, second: any) => number;
|
|
15
|
-
};
|
|
16
|
-
export default sortTypes;
|
|
17
|
-
}
|
|
18
|
-
declare module "utils/multisort/index" {
|
|
19
|
-
export type SortDir = 1 | -1;
|
|
20
|
-
export type MultisortInfo<T> = {
|
|
21
|
-
/**
|
|
22
|
-
* The sorting direction
|
|
23
|
-
*/
|
|
24
|
-
dir: SortDir;
|
|
25
|
-
/**
|
|
26
|
-
* a property whose value to use for sorting on the array items
|
|
27
|
-
*/
|
|
28
|
-
field?: keyof T;
|
|
29
|
-
/**
|
|
30
|
-
* for now 'string' and 'number' are known types, meaning they have
|
|
31
|
-
* sort functions already implemented
|
|
32
|
-
*/
|
|
33
|
-
type?: string;
|
|
34
|
-
fn?: (a: any, b: any) => number;
|
|
35
|
-
};
|
|
36
|
-
export interface MultisortFn<T> {
|
|
37
|
-
(sortInfo: MultisortInfo<T>[], array: T[]): T[];
|
|
38
|
-
knownTypes: {
|
|
39
|
-
[key: string]: (first: T, second: T) => number;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export const multisort: {
|
|
43
|
-
<T>(sortInfo: MultisortInfo<T>[], array: T[], get?: ((item: any) => T) | undefined): T[];
|
|
44
|
-
knownTypes: {
|
|
45
|
-
[key: string]: (first: any, second: any) => number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
const getSortFunctions: <T>(sortInfo: MultisortInfo<T>[]) => (((first: T, second: T) => number) | undefined)[];
|
|
49
|
-
const getMultisortFunction: <T>(sortInfo: MultisortInfo<T>[], get?: ((item: any) => T) | undefined) => (first: T, second: T) => number;
|
|
50
|
-
export { getMultisortFunction, getSortFunctions };
|
|
51
|
-
}
|
|
52
|
-
declare module "utils/DeepMap/once" {
|
|
53
|
-
export function once<ReturnType>(fn: () => ReturnType): () => ReturnType;
|
|
54
|
-
}
|
|
55
|
-
declare module "utils/DeepMap/sortAscending" {
|
|
56
|
-
export const sortAscending: (a: number, b: number) => number;
|
|
57
|
-
}
|
|
58
|
-
declare module "utils/DeepMap/index" {
|
|
59
|
-
type VoidFn = () => void;
|
|
60
|
-
type Pair<KeyType, ValueType> = {
|
|
61
|
-
value?: ValueType;
|
|
62
|
-
map?: Map<KeyType, Pair<KeyType, ValueType>>;
|
|
63
|
-
revision?: number;
|
|
64
|
-
};
|
|
65
|
-
export type DeepMapVisitFn<KeyType, ValueType> = (pair: Pair<KeyType, ValueType>, keys: KeyType[], next: VoidFn) => void;
|
|
66
|
-
export class DeepMap<KeyType, ValueType> {
|
|
67
|
-
private map;
|
|
68
|
-
private length;
|
|
69
|
-
private revision;
|
|
70
|
-
static clone<KeyType, ValueType>(map: DeepMap<KeyType, ValueType>): DeepMap<KeyType, ValueType>;
|
|
71
|
-
constructor(initial?: [KeyType[], ValueType][]);
|
|
72
|
-
set(keys: KeyType[] & {
|
|
73
|
-
length: Omit<number, 0>;
|
|
74
|
-
}, value: ValueType): this;
|
|
75
|
-
get(keys: KeyType[]): ValueType | undefined;
|
|
76
|
-
get size(): number;
|
|
77
|
-
clear(): void;
|
|
78
|
-
delete(keys: KeyType[]): boolean;
|
|
79
|
-
has(keys: KeyType[]): boolean;
|
|
80
|
-
private visitKey;
|
|
81
|
-
visit: (fn: DeepMapVisitFn<KeyType, ValueType>) => void;
|
|
82
|
-
visitDepthFirst: (fn: (value: ValueType, keys: KeyType[], indexInGroup: number, next?: VoidFn | undefined) => void) => void;
|
|
83
|
-
private visitWithNext;
|
|
84
|
-
private getArray;
|
|
85
|
-
values(): Generator<ValueType, void, unknown>;
|
|
86
|
-
keys(): Generator<KeyType[], void, unknown>;
|
|
87
|
-
entries(): Generator<[KeyType[], ValueType], void, unknown>;
|
|
88
|
-
topDownEntries(): [KeyType[], ValueType][];
|
|
89
|
-
topDownKeys(): KeyType[][];
|
|
90
|
-
topDownValues(): ValueType[];
|
|
91
|
-
private sortedIterator;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
declare module "utils/debug" {
|
|
95
|
-
export interface LogFn {
|
|
96
|
-
(...args: any[]): LogFn;
|
|
97
|
-
extend: (channelName: string) => LogFn;
|
|
98
|
-
}
|
|
99
|
-
export const dbg: (channelName: string) => LogFn;
|
|
100
|
-
export const err: (channelName: string) => LogFn;
|
|
101
|
-
export class Logger {
|
|
102
|
-
debug: LogFn;
|
|
103
|
-
error: LogFn;
|
|
104
|
-
constructor(channelName: string);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
declare module "utils/proxyFnCall" {
|
|
108
|
-
export function proxyFn<T_PARAM_TO_PROXY, T_FN_PARAMETERS, T_RESULT extends any>(fn: (...params: T_FN_PARAMETERS[]) => T_RESULT, config?: {
|
|
109
|
-
getProxyTargetFromArgs: (...params: T_FN_PARAMETERS[]) => T_PARAM_TO_PROXY;
|
|
110
|
-
putProxyToArgs: (proxy: T_PARAM_TO_PROXY, ...params: T_FN_PARAMETERS[]) => T_FN_PARAMETERS[];
|
|
111
|
-
}): {
|
|
112
|
-
fn: (...params: T_FN_PARAMETERS[]) => T_RESULT;
|
|
113
|
-
propertyReads: Set<string>;
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
declare module "utils/toUpperFirst" {
|
|
117
|
-
export const toUpperFirst: (s: string) => string;
|
|
118
|
-
export default toUpperFirst;
|
|
119
|
-
}
|
|
120
|
-
declare module "components/utils/isControlledValue" {
|
|
121
|
-
export function isControlledValue(value: any): boolean;
|
|
122
|
-
}
|
|
123
|
-
declare module "components/utils/isControlled" {
|
|
124
|
-
export function isControlled<V extends keyof T, T>(propName: V, props: T): boolean;
|
|
125
|
-
}
|
|
126
|
-
declare module "components/hooks/useLatest" {
|
|
127
|
-
export function useLatest<T>(value: T): () => T;
|
|
128
|
-
}
|
|
129
|
-
declare module "components/hooks/usePrevious" {
|
|
130
|
-
export const usePrevious: <T>(value: T, initialValue?: T | undefined) => T;
|
|
131
|
-
}
|
|
132
|
-
declare module "components/hooks/useComponentState" {
|
|
133
|
-
import * as React from 'react';
|
|
134
|
-
export const notifyChange: (props: any, propName: string, newValue: any) => void;
|
|
135
|
-
export function getComponentStateContext<T>(): React.Context<T>;
|
|
136
|
-
type ComponentStateContext<T_STATE, T_ACTIONS> = {
|
|
137
|
-
getComponentState: () => T_STATE;
|
|
138
|
-
componentState: T_STATE;
|
|
139
|
-
componentActions: T_ACTIONS;
|
|
140
|
-
};
|
|
141
|
-
export type ComponentStateGeneratedActions<T_STATE> = {
|
|
142
|
-
[k in keyof T_STATE]: T_STATE[k] | React.SetStateAction<T_STATE[k]>;
|
|
143
|
-
};
|
|
144
|
-
export type ComponentInterceptedActions<T_STATE> = {
|
|
145
|
-
[k in keyof T_STATE]?: (value: T_STATE[k], { actions, state, }: {
|
|
146
|
-
actions: ComponentStateGeneratedActions<T_STATE>;
|
|
147
|
-
state: T_STATE;
|
|
148
|
-
}) => void | boolean;
|
|
149
|
-
};
|
|
150
|
-
export type ComponentStateActions<T_STATE> = ComponentStateGeneratedActions<T_STATE>;
|
|
151
|
-
export type ForwardPropsToStateFnResult<TYPE_PROPS, TYPE_RESULT> = Partial<{
|
|
152
|
-
[propName in keyof TYPE_PROPS & keyof TYPE_RESULT]: 1 | ((value: TYPE_PROPS[propName]) => TYPE_RESULT[propName]);
|
|
153
|
-
}>;
|
|
154
|
-
type ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE = {}, COMPONENT_DERIVED_STATE = {}, T_ACTIONS = {}, T_PARENT_STATE = {}> = {
|
|
155
|
-
debugName?: string;
|
|
156
|
-
initSetupState?: () => COMPONENT_SETUP_STATE;
|
|
157
|
-
forwardProps?: (setupState: COMPONENT_SETUP_STATE) => ForwardPropsToStateFnResult<T_PROPS, COMPONENT_MAPPED_STATE>;
|
|
158
|
-
allowedControlledPropOverrides?: Record<keyof T_PROPS, true>;
|
|
159
|
-
interceptActions?: ComponentInterceptedActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>;
|
|
160
|
-
onPropChange?: (params: {
|
|
161
|
-
name: keyof T_PROPS;
|
|
162
|
-
oldValue: any;
|
|
163
|
-
newValue: any;
|
|
164
|
-
}, props: T_PROPS, actions: ComponentStateActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>) => void;
|
|
165
|
-
mapPropsToState?: (params: {
|
|
166
|
-
props: T_PROPS;
|
|
167
|
-
state: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & Partial<COMPONENT_DERIVED_STATE>;
|
|
168
|
-
oldState: null | (COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & Partial<COMPONENT_DERIVED_STATE>);
|
|
169
|
-
parentState: T_PARENT_STATE | null;
|
|
170
|
-
}) => COMPONENT_DERIVED_STATE;
|
|
171
|
-
concludeReducer?: (params: {
|
|
172
|
-
previousState: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
|
|
173
|
-
state: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
|
|
174
|
-
updatedProps: Partial<T_PROPS> | null;
|
|
175
|
-
parentState: T_PARENT_STATE | null;
|
|
176
|
-
}) => COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
|
|
177
|
-
getReducerActions?: (dispatch: React.Dispatch<any>) => T_ACTIONS;
|
|
178
|
-
getParentState?: () => T_PARENT_STATE;
|
|
179
|
-
onControlledPropertyChange?: (name: string, newValue: any, oldValue: any) => void | ((value: any, oldValue: any) => any);
|
|
180
|
-
};
|
|
181
|
-
export function getComponentStateRoot<T_PROPS, COMPONENT_MAPPED_STATE extends object, COMPONENT_SETUP_STATE extends object = {}, COMPONENT_DERIVED_STATE extends object = {}, T_ACTIONS = {}, T_PARENT_STATE = {}>(config: ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE, COMPONENT_DERIVED_STATE, T_ACTIONS, T_PARENT_STATE>): React.NamedExoticComponent<T_PROPS & {
|
|
182
|
-
children: React.ReactNode;
|
|
183
|
-
}>;
|
|
184
|
-
export function useComponentState<COMPONENT_STATE>(): ComponentStateContext<COMPONENT_STATE, ComponentStateGeneratedActions<COMPONENT_STATE>>;
|
|
185
|
-
}
|
|
186
|
-
declare module "components/types/NonUndefined" {
|
|
187
|
-
export type NonUndefined<T> = T extends undefined ? never : T;
|
|
188
|
-
}
|
|
189
|
-
declare module "components/types/VoidFn" {
|
|
190
|
-
export type VoidFn = () => void;
|
|
191
|
-
}
|
|
192
|
-
declare module "components/types/SubscriptionCallback" {
|
|
193
|
-
import { VoidFn } from "components/types/VoidFn";
|
|
194
|
-
export type SubscriptionCallbackOnChangeFn<T> = (node: T | null) => void;
|
|
195
|
-
export interface SubscriptionCallback<T> {
|
|
196
|
-
(node: T): void;
|
|
197
|
-
get: () => T | null;
|
|
198
|
-
destroy: VoidFn;
|
|
199
|
-
onChange: (fn: SubscriptionCallbackOnChangeFn<T>) => VoidFn;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
declare module "components/types/Size" {
|
|
203
|
-
export interface Size {
|
|
204
|
-
width: number;
|
|
205
|
-
height: number;
|
|
206
|
-
}
|
|
207
|
-
export type OnResizeFn = (size: {
|
|
208
|
-
width: number;
|
|
209
|
-
height: number;
|
|
210
|
-
}) => void;
|
|
211
|
-
}
|
|
212
|
-
declare module "components/VirtualBrain/index" {
|
|
213
|
-
import { Logger } from "utils/debug";
|
|
214
|
-
import { Size } from "components/types/Size";
|
|
215
|
-
import type { OnScrollFn, ScrollPosition } from "components/types/ScrollPosition";
|
|
216
|
-
type MainAxisOptions = 'vertical' | 'horizontal';
|
|
217
|
-
export type VirtualBrainOptions = {
|
|
218
|
-
mainAxis: MainAxisOptions;
|
|
219
|
-
itemSize: MainAxisSize;
|
|
220
|
-
itemSpan?: ({ itemIndex }: {
|
|
221
|
-
itemIndex: number;
|
|
222
|
-
}) => number;
|
|
223
|
-
count: number;
|
|
224
|
-
name?: string;
|
|
225
|
-
};
|
|
226
|
-
export type MainAxisSize = number | ((itemIndex: number) => number);
|
|
227
|
-
type OnRenderCountChangeFn = (renderCount: number) => void;
|
|
228
|
-
type OnSizeChangeFn = (size: number) => void;
|
|
229
|
-
type OnDestroyFn = () => void;
|
|
230
|
-
export type GetItemPositionFn = (itemIndex: number) => number;
|
|
231
|
-
export type RenderRange = {
|
|
232
|
-
renderStartIndex: number;
|
|
233
|
-
renderEndIndex: number;
|
|
234
|
-
};
|
|
235
|
-
export type OnRenderRangeChangeFn = (renderRange: RenderRange) => void;
|
|
236
|
-
export class VirtualBrain extends Logger {
|
|
237
|
-
private scrollPosition;
|
|
238
|
-
private scrollPositionOnMainAxis;
|
|
239
|
-
private itemSpanParent;
|
|
240
|
-
private itemSpanValue;
|
|
241
|
-
private itemSizeCache;
|
|
242
|
-
private itemOffsetCache;
|
|
243
|
-
private options;
|
|
244
|
-
private destroyed;
|
|
245
|
-
private totalSize;
|
|
246
|
-
private onScrollFns;
|
|
247
|
-
private onTotalSizeChangeFns;
|
|
248
|
-
private onRenderCountChangeFns;
|
|
249
|
-
private onRenderRangeChangeFns;
|
|
250
|
-
private onDestroyFns;
|
|
251
|
-
name: string | undefined;
|
|
252
|
-
private renderCount;
|
|
253
|
-
private renderRange;
|
|
254
|
-
private availableSize;
|
|
255
|
-
constructor(options: VirtualBrainOptions);
|
|
256
|
-
setAvailableSize: (size: Size) => void;
|
|
257
|
-
getOptions(): VirtualBrainOptions;
|
|
258
|
-
private updateRenderCount;
|
|
259
|
-
private computeRenderCount;
|
|
260
|
-
private setRenderCount;
|
|
261
|
-
private updateRenderRange;
|
|
262
|
-
getRenderStartIndex(): number;
|
|
263
|
-
getRenderCount: () => number;
|
|
264
|
-
setScrollPosition: (scrollPosition: ScrollPosition) => void;
|
|
265
|
-
private notifyScrollChange;
|
|
266
|
-
private notifyDestroy;
|
|
267
|
-
private notifyTotalSizeChange;
|
|
268
|
-
private notifyRenderCountChange;
|
|
269
|
-
private notifyRenderRangeChange;
|
|
270
|
-
getRenderRange: () => RenderRange;
|
|
271
|
-
private setRenderRange;
|
|
272
|
-
private computeRenderRange;
|
|
273
|
-
getScrollPosition: () => ScrollPosition;
|
|
274
|
-
onScroll: (fn: OnScrollFn) => () => void;
|
|
275
|
-
onTotalSizeChange: (fn: OnSizeChangeFn) => () => void;
|
|
276
|
-
onRenderCountChange: (fn: OnRenderCountChangeFn) => () => void;
|
|
277
|
-
onRenderRangeChange: (fn: OnRenderRangeChangeFn) => () => void;
|
|
278
|
-
onDestroy: (fn: OnDestroyFn) => () => void;
|
|
279
|
-
update: (newCount: VirtualBrainOptions['count'], newItemSize: VirtualBrainOptions['itemSize'], newItemSpan?: VirtualBrainOptions['itemSpan']) => void;
|
|
280
|
-
private reset;
|
|
281
|
-
private computeItemSpanUpTo;
|
|
282
|
-
private computeCacheFor;
|
|
283
|
-
private getItemSizeCacheFor;
|
|
284
|
-
getItemSpan: (itemIndex: number) => number;
|
|
285
|
-
getItemSpanParent: (itemIndex: number) => number;
|
|
286
|
-
getItemSizeWithSpan: (itemIndex: number, itemSpan: number) => number;
|
|
287
|
-
/**
|
|
288
|
-
* For now, this doesn't take into account the itemspan, and it's okay not to
|
|
289
|
-
* @param itemIndex
|
|
290
|
-
* @returns the size of the specified item
|
|
291
|
-
*/
|
|
292
|
-
getItemSize: (itemIndex: number) => number;
|
|
293
|
-
getTotalSize: () => number;
|
|
294
|
-
getItemAt: (scrollPos: number) => number;
|
|
295
|
-
getItemOffsetFor: (itemIndex: number) => number;
|
|
296
|
-
destroy: () => void;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
declare module "components/DataSource/types" {
|
|
300
|
-
import * as React from 'react';
|
|
301
|
-
import { MultisortInfo } from "utils/multisort/index";
|
|
302
|
-
import { DeepMap } from "utils/DeepMap/index";
|
|
303
|
-
import { DeepMapGroupValueType, GroupBy, GroupKeyType, PivotBy } from "utils/groupAndPivot/index";
|
|
304
|
-
import { InfiniteTableColumn, InfiniteTableColumnGroup, InfiniteTableRowInfo, Scrollbars } from "components/InfiniteTable/index";
|
|
305
|
-
import { ComponentStateActions } from "components/hooks/useComponentState";
|
|
306
|
-
import { GroupRowsState } from "components/DataSource/GroupRowsState";
|
|
307
|
-
import { InfiniteTablePropPivotTotalColumnPosition } from "components/InfiniteTable/types/InfiniteTableState";
|
|
308
|
-
import { NonUndefined } from "components/types/NonUndefined";
|
|
309
|
-
import { SubscriptionCallback } from "components/types/SubscriptionCallback";
|
|
310
|
-
import { ScrollStopInfo } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
311
|
-
import { RenderRange } from "components/VirtualBrain/index";
|
|
312
|
-
export interface DataSourceDataParams<T> {
|
|
313
|
-
originalDataArray: T[];
|
|
314
|
-
sortInfo?: DataSourceSortInfo<T>;
|
|
315
|
-
groupBy?: DataSourcePropGroupBy<T>;
|
|
316
|
-
pivotBy?: DataSourcePropPivotBy<T>;
|
|
317
|
-
lazyLoadBatchSize?: number;
|
|
318
|
-
lazyLoadStartIndex?: number;
|
|
319
|
-
groupKeys?: any[];
|
|
320
|
-
aggregationReducers?: DataSourcePropAggregationReducers<T>;
|
|
321
|
-
livePaginationCursor?: DataSourceLivePaginationCursorValue;
|
|
322
|
-
cursorId?: DataSourceSetupState<T>['cursorId'];
|
|
323
|
-
changes?: DataSourceDataParamsChanges<T>;
|
|
324
|
-
}
|
|
325
|
-
export type DataSourceDataParamsChanges<T> = Partial<Record<keyof Omit<DataSourceDataParams<T>, 'originalDataArray' | 'changes'>, true>>;
|
|
326
|
-
export type DataSourceSingleSortInfo<T> = MultisortInfo<T> & {
|
|
327
|
-
field?: keyof T;
|
|
328
|
-
id?: string;
|
|
329
|
-
};
|
|
330
|
-
export type DataSourceGroupBy<T> = GroupBy<T, any>;
|
|
331
|
-
export type DataSourcePivotBy<T> = PivotBy<T, any>;
|
|
332
|
-
export type DataSourceSortInfo<T> = null | DataSourceSingleSortInfo<T> | DataSourceSingleSortInfo<T>[];
|
|
333
|
-
export type DataSourceRemoteData<T> = {
|
|
334
|
-
data: T[];
|
|
335
|
-
mappings?: DataSourceMappings;
|
|
336
|
-
cache?: boolean;
|
|
337
|
-
totalCount?: number;
|
|
338
|
-
livePaginationCursor?: DataSourceLivePaginationCursorValue;
|
|
339
|
-
};
|
|
340
|
-
export type DataSourceData<T> = T[] | DataSourceRemoteData<T> | Promise<T[] | DataSourceRemoteData<T>> | ((dataInfo: DataSourceDataParams<T>) => T[] | Promise<T[] | DataSourceRemoteData<T>>);
|
|
341
|
-
export type DataSourceGroupRowsList<KeyType> = true | KeyType[][];
|
|
342
|
-
export type DataSourceExpandedAndCollapsedGroupRows<KeyType> = {
|
|
343
|
-
expandedRows: DataSourceGroupRowsList<KeyType>;
|
|
344
|
-
collapsedRows: DataSourceGroupRowsList<KeyType>;
|
|
345
|
-
};
|
|
346
|
-
export type DataSourcePropGroupBy<T> = DataSourceGroupBy<T>[];
|
|
347
|
-
export type DataSourcePropPivotBy<T> = DataSourcePivotBy<T>[];
|
|
348
|
-
export interface DataSourceMappedState<T> {
|
|
349
|
-
aggregationReducers?: DataSourceProps<T>['aggregationReducers'];
|
|
350
|
-
livePagination: DataSourceProps<T>['livePagination'];
|
|
351
|
-
lazyLoad: DataSourceProps<T>['lazyLoad'];
|
|
352
|
-
onDataParamsChange: DataSourceProps<T>['onDataParamsChange'];
|
|
353
|
-
data: DataSourceProps<T>['data'];
|
|
354
|
-
primaryKey: DataSourceProps<T>['primaryKey'];
|
|
355
|
-
groupBy: NonUndefined<DataSourceProps<T>['groupBy']>;
|
|
356
|
-
groupRowsState: NonUndefined<DataSourceProps<T>['groupRowsState']>;
|
|
357
|
-
pivotBy: DataSourceProps<T>['pivotBy'];
|
|
358
|
-
loading: NonUndefined<DataSourceProps<T>['loading']>;
|
|
359
|
-
collapseGroupRowsOnDataFunctionChange: NonUndefined<DataSourceProps<T>['collapseGroupRowsOnDataFunctionChange']>;
|
|
360
|
-
sortInfo: DataSourceSingleSortInfo<T>[] | null;
|
|
361
|
-
}
|
|
362
|
-
export type DataSourceAggregationReducer<T, AggregationResultType> = {
|
|
363
|
-
name?: string;
|
|
364
|
-
field?: keyof T;
|
|
365
|
-
initialValue?: AggregationResultType;
|
|
366
|
-
getter?: (data: T) => any;
|
|
367
|
-
reducer: string | ((accumulator: any, value: any, data: T) => AggregationResultType | any);
|
|
368
|
-
done?: (accumulatedValue: AggregationResultType | any, array: T[]) => AggregationResultType;
|
|
369
|
-
};
|
|
370
|
-
export type DataSourceMappings = Record<'totals' | 'values', string>;
|
|
371
|
-
export type LazyGroupDataItem<DataType> = {
|
|
372
|
-
data: Partial<DataType>;
|
|
373
|
-
keys: any[];
|
|
374
|
-
aggregations?: Record<string, any>;
|
|
375
|
-
pivot?: {
|
|
376
|
-
values: Record<string, any>;
|
|
377
|
-
totals?: Record<string, any>;
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
export type LazyGroupRowInfo<DataType> = {
|
|
381
|
-
items: LazyGroupDataItem<DataType>[];
|
|
382
|
-
totalCount: number;
|
|
383
|
-
cache?: boolean;
|
|
384
|
-
};
|
|
385
|
-
export type LazyGroupDataDeepMap<DataType, KeyType = string> = DeepMap<KeyType, LazyGroupRowInfo<DataType>>;
|
|
386
|
-
export interface DataSourceSetupState<T> {
|
|
387
|
-
pivotMappings?: DataSourceMappings;
|
|
388
|
-
propsCache: Map<keyof DataSourceProps<T>, WeakMap<any, any>>;
|
|
389
|
-
showSeparatePivotColumnForSingleAggregation: boolean;
|
|
390
|
-
dataParams?: DataSourceDataParams<T>;
|
|
391
|
-
originalLazyGroupData: LazyGroupDataDeepMap<T>;
|
|
392
|
-
originalLazyGroupDataChangeDetect: number | string;
|
|
393
|
-
scrollStopDelayUpdatedByTable: number;
|
|
394
|
-
notifyScrollbarsChange: SubscriptionCallback<Scrollbars>;
|
|
395
|
-
notifyScrollStop: SubscriptionCallback<ScrollStopInfo>;
|
|
396
|
-
notifyRenderRangeChange: SubscriptionCallback<RenderRange>;
|
|
397
|
-
originalDataArray: T[];
|
|
398
|
-
lastSortDataArray?: T[];
|
|
399
|
-
lastGroupDataArray?: InfiniteTableRowInfo<T>[];
|
|
400
|
-
dataArray: InfiniteTableRowInfo<T>[];
|
|
401
|
-
groupDeepMap?: DeepMap<GroupKeyType, DeepMapGroupValueType<T, any>>;
|
|
402
|
-
pivotTotalColumnPosition: InfiniteTablePropPivotTotalColumnPosition;
|
|
403
|
-
cursorId: number | Symbol | DataSourceLivePaginationCursorValue;
|
|
404
|
-
updatedAt: number;
|
|
405
|
-
reducedAt: number;
|
|
406
|
-
groupedAt: number;
|
|
407
|
-
sortedAt: number;
|
|
408
|
-
generateGroupRows: boolean;
|
|
409
|
-
postSortDataArray?: T[];
|
|
410
|
-
postGroupDataArray?: InfiniteTableRowInfo<T>[];
|
|
411
|
-
pivotColumns?: Map<string, InfiniteTableColumn<T>>;
|
|
412
|
-
pivotColumnGroups?: Map<string, InfiniteTableColumnGroup>;
|
|
413
|
-
}
|
|
414
|
-
export type DataSourcePropAggregationReducers<T> = Record<string, DataSourceAggregationReducer<T, any>>;
|
|
415
|
-
export type DataSourceProps<T> = {
|
|
416
|
-
children: React.ReactNode | ((contextData: DataSourceState<T>) => React.ReactNode);
|
|
417
|
-
primaryKey: keyof T;
|
|
418
|
-
fields?: (keyof T)[];
|
|
419
|
-
data: DataSourceData<T>;
|
|
420
|
-
lazyLoad?: boolean | {
|
|
421
|
-
batchSize?: number;
|
|
422
|
-
};
|
|
423
|
-
loading?: boolean;
|
|
424
|
-
defaultLoading?: boolean;
|
|
425
|
-
onLoadingChange?: (loading: boolean) => void;
|
|
426
|
-
pivotBy?: DataSourcePropPivotBy<T>;
|
|
427
|
-
defaultPivotBy?: DataSourcePropPivotBy<T>;
|
|
428
|
-
onPivotByChange?: (pivotBy: DataSourcePropPivotBy<T>) => void;
|
|
429
|
-
aggregationReducers?: DataSourcePropAggregationReducers<T>;
|
|
430
|
-
defaultAggregationReducers?: DataSourcePropAggregationReducers<T>;
|
|
431
|
-
groupBy?: DataSourcePropGroupBy<T>;
|
|
432
|
-
defaultGroupBy?: DataSourcePropGroupBy<T>;
|
|
433
|
-
onGroupByChange?: (groupBy: DataSourcePropGroupBy<T>) => void;
|
|
434
|
-
groupRowsState?: GroupRowsState;
|
|
435
|
-
defaultGroupRowsState?: GroupRowsState;
|
|
436
|
-
onGroupRowsStateChange?: (groupRowsState: GroupRowsState) => void;
|
|
437
|
-
collapseGroupRowsOnDataFunctionChange?: boolean;
|
|
438
|
-
sortInfo?: DataSourceSortInfo<T>;
|
|
439
|
-
defaultSortInfo?: DataSourceSortInfo<T>;
|
|
440
|
-
onSortInfoChange?: ((sortInfo: DataSourceSingleSortInfo<T> | null) => void) | ((sortInfo: DataSourceSingleSortInfo<T>[]) => void);
|
|
441
|
-
onDataParamsChange?: (dataParamsChange: DataSourceDataParams<T>) => void;
|
|
442
|
-
livePagination?: boolean;
|
|
443
|
-
livePaginationCursor?: DataSourcePropLivePaginationCursor<T>;
|
|
444
|
-
onLivePaginationCursorChange?: (livePaginationCursor: DataSourceLivePaginationCursorValue) => void;
|
|
445
|
-
};
|
|
446
|
-
export type DataSourcePropLivePaginationCursor<T> = DataSourceLivePaginationCursorValue | DataSourceLivePaginationCursorFn<T>;
|
|
447
|
-
export type DataSourceLivePaginationCursorFn<T> = (params: DataSourceLivePaginationCursorParams<T>) => DataSourceLivePaginationCursorValue;
|
|
448
|
-
export type DataSourceLivePaginationCursorParams<T> = {
|
|
449
|
-
array: T[];
|
|
450
|
-
lastItem: T | Partial<T> | null;
|
|
451
|
-
length: number;
|
|
452
|
-
};
|
|
453
|
-
export type DataSourceLivePaginationCursorValue = string | number | null;
|
|
454
|
-
export interface DataSourceState<T> extends DataSourceSetupState<T>, DataSourceDerivedState<T>, DataSourceMappedState<T> {
|
|
455
|
-
}
|
|
456
|
-
export interface DataSourceDerivedState<_T> {
|
|
457
|
-
multiSort: boolean;
|
|
458
|
-
controlledSort: boolean;
|
|
459
|
-
livePaginationCursor?: DataSourceLivePaginationCursorValue;
|
|
460
|
-
lazyLoadBatchSize?: number;
|
|
461
|
-
}
|
|
462
|
-
export type DataSourceComponentActions<T> = ComponentStateActions<DataSourceState<T>>;
|
|
463
|
-
export interface DataSourceContextValue<T> {
|
|
464
|
-
getState: () => DataSourceState<T>;
|
|
465
|
-
componentState: DataSourceState<T>;
|
|
466
|
-
componentActions: DataSourceComponentActions<T>;
|
|
467
|
-
}
|
|
468
|
-
export enum DataSourceActionType {
|
|
469
|
-
INIT = "INIT"
|
|
470
|
-
}
|
|
471
|
-
export interface DataSourceAction<T> {
|
|
472
|
-
type: DataSourceActionType;
|
|
473
|
-
payload: T;
|
|
474
|
-
}
|
|
475
|
-
export interface DataSourceReducer<T> {
|
|
476
|
-
(state: DataSourceState<T>, action: DataSourceAction<any>): DataSourceState<T>;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
declare module "components/DataSource/DataSourceContext" {
|
|
480
|
-
import * as React from 'react';
|
|
481
|
-
import { DataSourceContextValue } from "components/DataSource/types";
|
|
482
|
-
export function getDataSourceContext<T>(): React.Context<DataSourceContextValue<T>>;
|
|
483
|
-
}
|
|
484
|
-
declare module "components/DataSource/publicHooks/useDataSource" {
|
|
485
|
-
import { DataSourceContextValue } from "components/DataSource/types";
|
|
486
|
-
import { DataSourceState } from "components/DataSource/index";
|
|
487
|
-
export function useDataSource<T>(): DataSourceState<T>;
|
|
488
|
-
export function useDataSourceContextValue<T>(): DataSourceContextValue<T>;
|
|
489
|
-
}
|
|
490
|
-
declare module "utils/getGlobal" {
|
|
491
|
-
export function getGlobal<T extends Window>(): T;
|
|
492
|
-
}
|
|
493
|
-
declare module "components/hooks/useEffectWithChanges" {
|
|
494
|
-
import { EffectCallback } from 'react';
|
|
495
|
-
export function useEffectWithChanges(fn: (changes: Record<string, any>, prevValues: Record<string, any>) => void | (() => void), deps: Record<string, any>): void;
|
|
496
|
-
export function useEffectWithObject(fn: EffectCallback, deps: Record<string, any>): void;
|
|
497
|
-
}
|
|
498
|
-
declare module "components/utils/debounce" {
|
|
499
|
-
export function debounce(fn: Function, { wait }: {
|
|
500
|
-
wait: number;
|
|
501
|
-
}): (...args: any[]) => void;
|
|
502
|
-
}
|
|
503
|
-
declare module "components/DataSource/privateHooks/useLoadData" {
|
|
504
|
-
import { ComponentStateGeneratedActions } from "components/hooks/useComponentState";
|
|
505
|
-
import { DataSourceDataParams, DataSourceData, DataSourceState } from "components/DataSource/types";
|
|
506
|
-
export function buildDataSourceDataParams<T>(componentState: DataSourceState<T>, overrides?: Partial<DataSourceDataParams<T>>): DataSourceDataParams<T>;
|
|
507
|
-
export function loadData<T>(data: DataSourceData<T>, componentState: DataSourceState<T>, actions: ComponentStateGeneratedActions<DataSourceState<T>>, overrides?: Partial<DataSourceDataParams<T>>): Promise<any>;
|
|
508
|
-
export function useLoadData<T>(): void;
|
|
509
|
-
}
|
|
510
|
-
declare module "components/DataSource/state/normalizeSortInfo" {
|
|
511
|
-
import { DataSourceSingleSortInfo, DataSourceSortInfo } from "components/DataSource/types";
|
|
512
|
-
export const normalizeSortInfo: <T>(initialSortInfo?: DataSourceSortInfo<T> | undefined, weakMap?: WeakMap<any, any> | undefined) => DataSourceSingleSortInfo<T>[];
|
|
513
|
-
}
|
|
514
|
-
declare module "components/utils/buildSubscriptionCallback" {
|
|
515
|
-
import { SubscriptionCallback } from "components/types/SubscriptionCallback";
|
|
516
|
-
export function buildSubscriptionCallback<T>(): SubscriptionCallback<T>;
|
|
517
|
-
}
|
|
518
|
-
declare module "utils/shallowEqualObjects" {
|
|
519
|
-
export function shallowEqualObjects<T extends object | null>(objA: T, objB: T, ignoreKeys?: Set<string>): boolean;
|
|
520
|
-
}
|
|
521
|
-
declare module "components/utils/discardCallsWithEqualArg" {
|
|
522
|
-
export function discardCallsWithEqualArg<T = any>(fn: (arg: T) => void, timeframe?: number, getCompareObject?: (arg: T) => any): (arg: T) => void;
|
|
523
|
-
}
|
|
524
|
-
declare module "components/DataSource/state/getInitialState" {
|
|
525
|
-
import { DataSourceMappedState, DataSourceProps, DataSourceDerivedState, DataSourceSetupState, DataSourceState } from "components/DataSource/types";
|
|
526
|
-
import { GroupRowsState } from "components/DataSource/GroupRowsState";
|
|
527
|
-
import { ComponentInterceptedActions, ForwardPropsToStateFnResult } from "components/hooks/useComponentState";
|
|
528
|
-
import { DataSourceComponentActions, DataSourceDataParams } from "components/DataSource/index";
|
|
529
|
-
export const defaultCursorId: unique symbol;
|
|
530
|
-
export function initSetupState<T>(): DataSourceSetupState<T>;
|
|
531
|
-
export const forwardProps: <T>(setupState: DataSourceSetupState<T>) => Partial<{
|
|
532
|
-
data: 1 | ((value: import("components/DataSource").DataSourceData<T>) => import("components/DataSource").DataSourceData<T>);
|
|
533
|
-
loading: 1 | ((value: boolean | undefined) => boolean);
|
|
534
|
-
sortInfo: 1 | ((value: import("components/DataSource").DataSourceSortInfo<T> | undefined) => import("components/DataSource").DataSourceSingleSortInfo<T>[] | null);
|
|
535
|
-
groupBy: 1 | ((value: import("components/DataSource").DataSourcePropGroupBy<T> | undefined) => import("components/DataSource").DataSourcePropGroupBy<T>);
|
|
536
|
-
pivotBy: 1 | ((value: import("components/DataSource").DataSourcePropPivotBy<T> | undefined) => import("components/DataSource").DataSourcePropPivotBy<T> | undefined);
|
|
537
|
-
aggregationReducers: 1 | ((value: import("components/DataSource").DataSourcePropAggregationReducers<T> | undefined) => import("components/DataSource").DataSourcePropAggregationReducers<T> | undefined);
|
|
538
|
-
livePagination: 1 | ((value: boolean | undefined) => boolean | undefined);
|
|
539
|
-
lazyLoad: 1 | ((value: boolean | {
|
|
540
|
-
batchSize?: number | undefined;
|
|
541
|
-
} | undefined) => boolean | {
|
|
542
|
-
batchSize?: number | undefined;
|
|
543
|
-
} | undefined);
|
|
544
|
-
onDataParamsChange: 1 | ((value: ((dataParamsChange: DataSourceDataParams<T>) => void) | undefined) => ((dataParamsChange: DataSourceDataParams<T>) => void) | undefined);
|
|
545
|
-
primaryKey: 1 | ((value: keyof T) => keyof T);
|
|
546
|
-
groupRowsState: 1 | ((value: GroupRowsState<any> | undefined) => GroupRowsState<any>);
|
|
547
|
-
collapseGroupRowsOnDataFunctionChange: 1 | ((value: boolean | undefined) => boolean);
|
|
548
|
-
}>;
|
|
549
|
-
export function mapPropsToState<T extends any>(params: {
|
|
550
|
-
props: DataSourceProps<T>;
|
|
551
|
-
state: DataSourceState<T>;
|
|
552
|
-
oldState: DataSourceState<T> | null;
|
|
553
|
-
}): DataSourceDerivedState<T>;
|
|
554
|
-
export function onPropChange<T>(params: {
|
|
555
|
-
name: keyof T;
|
|
556
|
-
newValue: any;
|
|
557
|
-
oldValue: any;
|
|
558
|
-
}, props: DataSourceProps<T>, actions: DataSourceComponentActions<T>): void;
|
|
559
|
-
export function getInterceptActions<T>(): ComponentInterceptedActions<DataSourceState<T>>;
|
|
560
|
-
}
|
|
561
|
-
declare module "components/types/Renderable" {
|
|
562
|
-
import * as React from 'react';
|
|
563
|
-
export type Renderable = React.ReactNode;
|
|
564
|
-
}
|
|
565
|
-
declare module "components/InfiniteTable/types/Utility" {
|
|
566
|
-
export type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
567
|
-
export type MapOrRecord<K extends string, V> = Map<K, V> | Record<K, V>;
|
|
568
|
-
export type RequireOnlyOneProperty<T, Keys extends keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
569
|
-
[K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>>;
|
|
570
|
-
}[Keys];
|
|
571
|
-
export type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
572
|
-
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
573
|
-
}[Keys];
|
|
574
|
-
export type DiscriminatedUnion<A, B> = (A & {
|
|
575
|
-
[K in keyof B]?: undefined;
|
|
576
|
-
}) | (B & {
|
|
577
|
-
[K in keyof A]?: undefined;
|
|
578
|
-
});
|
|
579
|
-
export type AllPropertiesOrNone<DATA_TYPE> = DATA_TYPE | {
|
|
580
|
-
[KEY in keyof DATA_TYPE]?: never;
|
|
581
|
-
};
|
|
582
|
-
}
|
|
583
|
-
declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
584
|
-
import type { Renderable } from "components/types/Renderable";
|
|
585
|
-
import type { DataSourcePivotBy, DataSourceSingleSortInfo, DataSourceState } from "components/DataSource/types";
|
|
586
|
-
import type { DiscriminatedUnion, RequireAtLeastOne } from "components/InfiniteTable/types/Utility";
|
|
587
|
-
import type { InfiniteTableColumnGroup, InfiniteTableRowInfo } from "components/InfiniteTable/types/index";
|
|
588
|
-
import { CSSProperties } from 'react';
|
|
589
|
-
import { AggregationReducer, InfiniteTableRowInfoGroup, InfiniteTableRowInfoNormal, PivotBy } from "utils/groupAndPivot/index";
|
|
590
|
-
import { InfiniteTableColumnPinnedValues } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
591
|
-
export type { DiscriminatedUnion, RequireAtLeastOne };
|
|
592
|
-
export type InfiniteTableToggleGroupRowFn = (groupKeys: any[]) => void;
|
|
593
|
-
export type InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
|
|
594
|
-
value: string | number | Renderable;
|
|
595
|
-
groupRowInfo: InfiniteTableRowInfo<DATA_TYPE> | null;
|
|
596
|
-
rowIndex: number;
|
|
597
|
-
column: COL_TYPE;
|
|
598
|
-
toggleCurrentGroupRow: () => void;
|
|
599
|
-
toggleGroupRow: InfiniteTableToggleGroupRowFn;
|
|
600
|
-
groupBy: DataSourceState<DATA_TYPE>['groupBy'];
|
|
601
|
-
pivotBy?: DataSourceState<DATA_TYPE>['pivotBy'];
|
|
602
|
-
} & ({
|
|
603
|
-
rowInfo: InfiniteTableRowInfoNormal<DATA_TYPE>;
|
|
604
|
-
data: DATA_TYPE;
|
|
605
|
-
} | {
|
|
606
|
-
rowInfo: InfiniteTableRowInfoGroup<DATA_TYPE>;
|
|
607
|
-
data: Partial<DATA_TYPE> | null;
|
|
608
|
-
});
|
|
609
|
-
export type InfiniteTableGroupColumnRenderIconParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE> & {
|
|
610
|
-
collapsed: boolean;
|
|
611
|
-
groupIcon: Renderable;
|
|
612
|
-
};
|
|
613
|
-
export type InfiniteTableColumnRenderValueParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>;
|
|
614
|
-
export type InfiniteTableColumnRowspanParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
|
|
615
|
-
rowInfo: InfiniteTableRowInfo<DATA_TYPE>;
|
|
616
|
-
data: DATA_TYPE | Partial<DATA_TYPE> | null;
|
|
617
|
-
dataArray: InfiniteTableRowInfo<DATA_TYPE>[];
|
|
618
|
-
rowIndex: number;
|
|
619
|
-
column: COL_TYPE;
|
|
620
|
-
};
|
|
621
|
-
export interface InfiniteTableColumnHeaderRenderParams<T> {
|
|
622
|
-
column: InfiniteTableComputedColumn<T>;
|
|
623
|
-
columnSortInfo: DataSourceSingleSortInfo<T> | null | undefined;
|
|
624
|
-
}
|
|
625
|
-
export type InfiniteTableColumnRenderFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = ({ value, rowIndex, column, data, toggleGroupRow, toggleCurrentGroupRow, rowInfo, groupBy, pivotBy, }: InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>) => Renderable | null;
|
|
626
|
-
export type InfiniteTableGroupColumnRenderIconFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = (param: InfiniteTableGroupColumnRenderIconParam<DATA_TYPE, COL_TYPE>) => Renderable | null;
|
|
627
|
-
export type InfiniteTableColumnRenderValueFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderFunction<DATA_TYPE, COL_TYPE>;
|
|
628
|
-
export type InfiniteTableColumnHeaderRenderFunction<T> = ({ columnSortInfo, column, }: InfiniteTableColumnHeaderRenderParams<T>) => Renderable;
|
|
629
|
-
export type InfiniteTableColumnWithField<T> = {
|
|
630
|
-
field: keyof T;
|
|
631
|
-
};
|
|
632
|
-
export type InfiniteTableColumnWithRender<T> = {
|
|
633
|
-
render: InfiniteTableColumnRenderFunction<T>;
|
|
634
|
-
};
|
|
635
|
-
export type InfiniteTableColumnWithRenderValue<T> = {
|
|
636
|
-
renderValue: InfiniteTableColumnRenderFunction<T>;
|
|
637
|
-
};
|
|
638
|
-
export type InfiniteTableColumnAlign = 'start' | 'center' | 'end';
|
|
639
|
-
export type InfiniteTableColumnVerticalAlign = 'start' | 'center' | 'end';
|
|
640
|
-
export type InfiniteTableColumnHeader<T> = Renderable | InfiniteTableColumnHeaderRenderFunction<T>;
|
|
641
|
-
export type InfiniteTableColumnTypeNames = 'string' | 'number' | 'date' | string;
|
|
642
|
-
export type InfiniteTableColumnWithRenderOrRenderValueOrFieldOrValueGetter<T> = RequireAtLeastOne<{
|
|
643
|
-
field?: keyof T;
|
|
644
|
-
render?: InfiniteTableColumnRenderFunction<T>;
|
|
645
|
-
renderValue?: InfiniteTableColumnRenderFunction<T>;
|
|
646
|
-
valueGetter?: InfiniteTableColumnValueGetter<T>;
|
|
647
|
-
}, 'render' | 'renderValue' | 'field' | 'valueGetter'>;
|
|
648
|
-
export type InfiniteTableColumnStyleFnParams<T> = {
|
|
649
|
-
value: Renderable;
|
|
650
|
-
column: InfiniteTableColumn<T>;
|
|
651
|
-
} & ({
|
|
652
|
-
data: T;
|
|
653
|
-
rowInfo: InfiniteTableRowInfoNormal<T>;
|
|
654
|
-
} | {
|
|
655
|
-
data: Partial<T> | null;
|
|
656
|
-
rowInfo: InfiniteTableRowInfoGroup<T>;
|
|
657
|
-
});
|
|
658
|
-
export type InfiniteTableColumnStyleFn<T> = (params: InfiniteTableColumnStyleFnParams<T>) => undefined | React.CSSProperties;
|
|
659
|
-
export type InfiniteTableColumnClassNameFn<T> = (params: InfiniteTableColumnStyleFnParams<T>) => undefined | string;
|
|
660
|
-
export type InfiniteTableColumnStyle<T> = CSSProperties | InfiniteTableColumnStyleFn<T>;
|
|
661
|
-
export type InfiniteTableColumnClassName<T> = string | InfiniteTableColumnClassNameFn<T>;
|
|
662
|
-
export type InfiniteTableColumnValueGetterParams<T> = {
|
|
663
|
-
data: T;
|
|
664
|
-
rowInfo: InfiniteTableRowInfoNormal<T>;
|
|
665
|
-
} | {
|
|
666
|
-
data: Partial<T> | null;
|
|
667
|
-
rowInfo: InfiniteTableRowInfoGroup<T>;
|
|
668
|
-
};
|
|
669
|
-
export type InfiniteTableColumnValueGetter<T, VALUE_GETTER_TYPE = Renderable> = (params: InfiniteTableColumnValueGetterParams<T>) => VALUE_GETTER_TYPE;
|
|
670
|
-
export type InfiniteTableColumnRowspanFn<T> = (params: InfiniteTableColumnRowspanParam<T>) => number;
|
|
671
|
-
export type InfiniteTableColumnComparer<T> = (a: T, b: T) => number;
|
|
672
|
-
export type InfiniteTableBaseColumn<T> = {
|
|
673
|
-
sortable?: boolean;
|
|
674
|
-
draggable?: boolean;
|
|
675
|
-
resizable?: boolean;
|
|
676
|
-
comparer?: InfiniteTableColumnComparer<T>;
|
|
677
|
-
defaultHiddenWhenGroupedBy?: '*' | keyof T | {
|
|
678
|
-
[k in keyof Partial<T>]: true;
|
|
679
|
-
};
|
|
680
|
-
align?: InfiniteTableColumnAlign;
|
|
681
|
-
verticalAlign?: InfiniteTableColumnVerticalAlign;
|
|
682
|
-
columnGroup?: string;
|
|
683
|
-
header?: InfiniteTableColumnHeader<T>;
|
|
684
|
-
name?: Renderable;
|
|
685
|
-
cssEllipsis?: boolean;
|
|
686
|
-
headerCssEllipsis?: boolean;
|
|
687
|
-
type?: InfiniteTableColumnTypeNames | InfiniteTableColumnTypeNames[] | null;
|
|
688
|
-
style?: InfiniteTableColumnStyle<T>;
|
|
689
|
-
className?: InfiniteTableColumnClassName<T>;
|
|
690
|
-
rowspan?: InfiniteTableColumnRowspanFn<T>;
|
|
691
|
-
valueGetter?: InfiniteTableColumnValueGetter<T>;
|
|
692
|
-
defaultWidth?: number;
|
|
693
|
-
defaultFlex?: number;
|
|
694
|
-
};
|
|
695
|
-
export type InfiniteTableColumn<T> = {} & InfiniteTableBaseColumn<T> & InfiniteTableColumnWithRenderOrRenderValueOrFieldOrValueGetter<T>;
|
|
696
|
-
export type InfiniteTableGeneratedGroupColumn<T> = InfiniteTableColumn<T> & {
|
|
697
|
-
groupByField: string | string[];
|
|
698
|
-
id?: string;
|
|
699
|
-
};
|
|
700
|
-
export type InfiniteTablePivotColumn<T> = InfiniteTableColumn<T> & Partial<InfiniteTablePivotFinalColumnVariant<T, any>>;
|
|
701
|
-
export type InfiniteTablePivotFinalColumnGroup<DataType, KeyType extends any = any> = InfiniteTableColumnGroup & {
|
|
702
|
-
pivotBy: DataSourcePivotBy<DataType>[];
|
|
703
|
-
pivotTotalColumnGroup?: true;
|
|
704
|
-
pivotGroupKeys: KeyType[];
|
|
705
|
-
pivotByAtIndex: PivotBy<DataType, KeyType>;
|
|
706
|
-
pivotGroupKey: KeyType;
|
|
707
|
-
pivotIndex: number;
|
|
708
|
-
};
|
|
709
|
-
export type InfiniteTablePivotFinalColumn<DataType, KeyType extends any = any> = InfiniteTableColumn<DataType> & {
|
|
710
|
-
pivotBy: DataSourcePivotBy<DataType>[];
|
|
711
|
-
pivotColumn: true;
|
|
712
|
-
pivotTotalColumn: boolean;
|
|
713
|
-
pivotAggregator: AggregationReducer<DataType, any>;
|
|
714
|
-
pivotAggregatorIndex: number;
|
|
715
|
-
pivotGroupKeys: KeyType[];
|
|
716
|
-
pivotByAtIndex?: PivotBy<DataType, KeyType>;
|
|
717
|
-
pivotIndex: number;
|
|
718
|
-
pivotGroupKey: KeyType;
|
|
719
|
-
};
|
|
720
|
-
export type InfiniteTablePivotFinalColumnVariant<DataType, KeyType extends any = any> = InfiniteTablePivotFinalColumn<DataType, KeyType>;
|
|
721
|
-
type InfiniteTableComputedColumnBase<T> = {
|
|
722
|
-
computedWidth: number;
|
|
723
|
-
computedOffset: number;
|
|
724
|
-
computedPinningOffset: number;
|
|
725
|
-
computedAbsoluteOffset: number;
|
|
726
|
-
computedSortable: boolean;
|
|
727
|
-
computedSortInfo: DataSourceSingleSortInfo<T> | null;
|
|
728
|
-
computedSorted: boolean;
|
|
729
|
-
computedSortedAsc: boolean;
|
|
730
|
-
computedSortedDesc: boolean;
|
|
731
|
-
computedSortIndex: number;
|
|
732
|
-
computedVisibleIndex: number;
|
|
733
|
-
computedMultiSort: boolean;
|
|
734
|
-
computedPinned: InfiniteTableColumnPinnedValues;
|
|
735
|
-
computedDraggable: boolean;
|
|
736
|
-
computedFirstInCategory: boolean;
|
|
737
|
-
computedLastInCategory: boolean;
|
|
738
|
-
computedFirst: boolean;
|
|
739
|
-
computedLast: boolean;
|
|
740
|
-
toggleSort: () => void;
|
|
741
|
-
id: string;
|
|
742
|
-
};
|
|
743
|
-
export type InfiniteTableComputedColumn<T> = InfiniteTableColumn<T> & InfiniteTableComputedColumnBase<T> & Partial<InfiniteTablePivotFinalColumn<T>> & Partial<InfiniteTableGeneratedGroupColumn<T>>;
|
|
744
|
-
export type InfiniteTableComputedPivotFinalColumn<T> = InfiniteTableComputedColumn<T> & InfiniteTablePivotFinalColumn<T>;
|
|
745
|
-
}
|
|
746
|
-
declare module "utils/groupAndPivot/getPivotColumnsAndColumnGroups" {
|
|
747
|
-
import type { DataSourceAggregationReducer, DataSourcePivotBy } from "components/DataSource/index";
|
|
748
|
-
import type { InfiniteTablePropColumnsMap } from "components/InfiniteTable/index";
|
|
749
|
-
import type { InfiniteTablePivotColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
750
|
-
import { InfiniteTablePropColumnGroupsMap } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
751
|
-
import type { InfiniteTablePropPivotTotalColumnPosition } from "components/InfiniteTable/types/InfiniteTableState";
|
|
752
|
-
import { DeepMap } from "utils/DeepMap/index";
|
|
753
|
-
export type ComputedColumnsAndGroups<DataType> = {
|
|
754
|
-
columns: InfiniteTablePropColumnsMap<DataType, InfiniteTablePivotColumn<DataType>>;
|
|
755
|
-
columnGroups: InfiniteTablePropColumnGroupsMap;
|
|
756
|
-
};
|
|
757
|
-
export function getPivotColumnsAndColumnGroups<DataType, KeyType = any>({ deepMap, pivotBy, pivotTotalColumnPosition, reducers, showSeparatePivotColumnForSingleAggregation, }: {
|
|
758
|
-
deepMap: DeepMap<KeyType, boolean>;
|
|
759
|
-
pivotBy: DataSourcePivotBy<DataType>[];
|
|
760
|
-
pivotTotalColumnPosition: InfiniteTablePropPivotTotalColumnPosition;
|
|
761
|
-
reducers?: Record<string, DataSourceAggregationReducer<DataType, any>>;
|
|
762
|
-
showSeparatePivotColumnForSingleAggregation?: boolean;
|
|
763
|
-
}): ComputedColumnsAndGroups<DataType>;
|
|
764
|
-
}
|
|
765
|
-
declare module "components/DataSource/state/reducer" {
|
|
766
|
-
import type { DataSourceState, DataSourceDerivedState } from "components/DataSource/types";
|
|
767
|
-
import { DataSourceSetupState } from "components/DataSource/index";
|
|
768
|
-
export function concludeReducer<T>(params: {
|
|
769
|
-
previousState: DataSourceState<T> & DataSourceDerivedState<T>;
|
|
770
|
-
state: DataSourceState<T> & DataSourceDerivedState<T> & DataSourceSetupState<T>;
|
|
771
|
-
}): DataSourceState<T> & DataSourceDerivedState<T> & DataSourceSetupState<T>;
|
|
772
|
-
}
|
|
773
|
-
declare module "components/DataSource/index" {
|
|
774
|
-
import { multisort } from "utils/multisort/index";
|
|
775
|
-
import { DataSourceProps } from "components/DataSource/types";
|
|
776
|
-
import { useDataSource } from "components/DataSource/publicHooks/useDataSource";
|
|
777
|
-
import { GroupRowsState } from "components/DataSource/GroupRowsState";
|
|
778
|
-
function DataSource<T>(props: DataSourceProps<T>): JSX.Element;
|
|
779
|
-
export { useDataSource, DataSource, GroupRowsState, multisort };
|
|
780
|
-
export * from "components/DataSource/types";
|
|
781
|
-
}
|
|
782
|
-
declare module "components/DataSource/GroupRowsState" {
|
|
783
|
-
import { DataSourceExpandedAndCollapsedGroupRows } from "components/DataSource/index";
|
|
784
|
-
export class GroupRowsState<KeyType extends any = any> {
|
|
785
|
-
private expandedMap?;
|
|
786
|
-
private collapsedMap?;
|
|
787
|
-
private collapsedAll;
|
|
788
|
-
private expandedAll;
|
|
789
|
-
private initialState;
|
|
790
|
-
constructor(state: DataSourceExpandedAndCollapsedGroupRows<KeyType> | GroupRowsState<KeyType>);
|
|
791
|
-
getState(): DataSourceExpandedAndCollapsedGroupRows<KeyType>;
|
|
792
|
-
destroy(): void;
|
|
793
|
-
private update;
|
|
794
|
-
areAllCollapsed(): boolean;
|
|
795
|
-
areAllExpanded(): boolean;
|
|
796
|
-
collapseAll(): void;
|
|
797
|
-
expandAll(): void;
|
|
798
|
-
isGroupRowExpanded(keys: KeyType[]): boolean | undefined;
|
|
799
|
-
isGroupRowCollapsed(keys: KeyType[]): boolean;
|
|
800
|
-
setGroupRowExpanded(keys: KeyType[], shouldExpand: boolean): void;
|
|
801
|
-
collapseGroupRow(keys: KeyType[]): void;
|
|
802
|
-
expandGroupRow(keys: KeyType[]): void;
|
|
803
|
-
toggleGroupRow(keys: KeyType[]): void;
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
declare module "utils/groupAndPivot/index" {
|
|
807
|
-
import { DataSourceAggregationReducer, DataSourceMappings, LazyGroupDataDeepMap } from "@infinite-table/infinite-react";
|
|
808
|
-
import { GroupRowsState } from "components/DataSource/GroupRowsState";
|
|
809
|
-
import { InfiniteTableColumn, InfiniteTablePivotColumn, InfiniteTablePivotFinalColumnGroup, InfiniteTablePivotFinalColumnVariant } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
810
|
-
import { InfiniteTableColumnGroup, InfiniteTableGroupColumnBase } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
811
|
-
import { DeepMap } from "utils/DeepMap/index";
|
|
812
|
-
export const LAZY_ROOT_KEY_FOR_GROUPS: string;
|
|
813
|
-
export const NOT_LOADED_YET_KEY_PREFIX = "____not_loaded_yet____";
|
|
814
|
-
export type AggregationReducer<T, AggregationResultType = any> = DataSourceAggregationReducer<T, AggregationResultType> & {
|
|
815
|
-
id: string;
|
|
816
|
-
};
|
|
817
|
-
export type AggregationReducerResult<AggregationResultType extends any = any> = {
|
|
818
|
-
value: AggregationResultType;
|
|
819
|
-
id: string;
|
|
820
|
-
};
|
|
821
|
-
export type InfiniteTableRowInfoNormalType<DataType> = {
|
|
822
|
-
data: DataType;
|
|
823
|
-
isGroupRow: false;
|
|
824
|
-
};
|
|
825
|
-
export type InfiniteTableRowInfoGroupType<DataType> = {
|
|
826
|
-
data: Partial<DataType> | null;
|
|
827
|
-
isGroupRow: true;
|
|
828
|
-
};
|
|
829
|
-
export type InfiniteTableRowInfoNormal<T> = InfiniteTableRowInfoBase<T> & InfiniteTableRowInfoNormalType<T>;
|
|
830
|
-
export type InfiniteTableRowInfoGroup<T> = InfiniteTableRowInfoBase<T> & InfiniteTableRowInfoGroupType<T>;
|
|
831
|
-
export type InfiniteTableRowInfo<T> = InfiniteTableRowInfoNormal<T> | InfiniteTableRowInfoGroup<T>;
|
|
832
|
-
export type InfiniteTableRowInfoBase<T> = {
|
|
833
|
-
id: any;
|
|
834
|
-
value?: any;
|
|
835
|
-
groupData?: T[];
|
|
836
|
-
collapsed: boolean;
|
|
837
|
-
collapsedChildrenCount?: number;
|
|
838
|
-
collapsedGroupsCount?: number;
|
|
839
|
-
groupNesting?: number;
|
|
840
|
-
groupKeys?: any[];
|
|
841
|
-
flatRowInfoList?: (InfiniteTableRowInfo<T> | InfiniteTableEnhancedGroupInfo<T>)[];
|
|
842
|
-
parents?: InfiniteTableEnhancedGroupInfo<T>[];
|
|
843
|
-
indexInParentGroups?: number[];
|
|
844
|
-
indexInGroup: number;
|
|
845
|
-
indexInAll: number;
|
|
846
|
-
groupCount?: number;
|
|
847
|
-
groupBy?: (keyof T)[];
|
|
848
|
-
rootGroupBy?: (keyof T)[];
|
|
849
|
-
pivotValuesMap?: PivotValuesDeepMap<T, any>;
|
|
850
|
-
reducerResults?: Record<string, AggregationReducerResult>;
|
|
851
|
-
};
|
|
852
|
-
export type InfiniteTableEnhancedGroupInfo<T> = InfiniteTableRowInfo<T> & {
|
|
853
|
-
data: Partial<T> | null;
|
|
854
|
-
groupData: T[];
|
|
855
|
-
flatRowInfoList: (InfiniteTableRowInfo<T> | InfiniteTableEnhancedGroupInfo<T>)[];
|
|
856
|
-
value: any;
|
|
857
|
-
isGroupRow: true;
|
|
858
|
-
collapsedChildrenCount: number;
|
|
859
|
-
collapsedGroupsCount: number;
|
|
860
|
-
groupNesting: number;
|
|
861
|
-
groupKeys?: any[];
|
|
862
|
-
groupCount: number;
|
|
863
|
-
groupBy: (keyof T)[];
|
|
864
|
-
rootGroupBy: (keyof T)[];
|
|
865
|
-
pivotValuesMap?: PivotValuesDeepMap<T, any>;
|
|
866
|
-
};
|
|
867
|
-
export type GroupKeyType<T extends any = any> = T;
|
|
868
|
-
type PivotReducerResults<T = any> = Record<string, AggregationReducerResult<T>>;
|
|
869
|
-
type PivotGroupValueType<DataType, KeyType> = {
|
|
870
|
-
reducerResults: PivotReducerResults<KeyType>;
|
|
871
|
-
items: DataType[];
|
|
872
|
-
};
|
|
873
|
-
export type PivotValuesDeepMap<DataType, KeyType> = DeepMap<GroupKeyType<KeyType>, PivotGroupValueType<DataType, KeyType>>;
|
|
874
|
-
export type DeepMapGroupValueType<DataType, KeyType> = {
|
|
875
|
-
items: DataType[];
|
|
876
|
-
commonData?: Partial<DataType>;
|
|
877
|
-
reducerResults: Record<string, AggregationReducerResult>;
|
|
878
|
-
pivotDeepMap?: DeepMap<GroupKeyType<KeyType>, PivotGroupValueType<DataType, KeyType>>;
|
|
879
|
-
};
|
|
880
|
-
export type GroupBy<DataType, KeyType> = {
|
|
881
|
-
field: keyof DataType;
|
|
882
|
-
toKey?: (value: any, data: DataType) => GroupKeyType<KeyType>;
|
|
883
|
-
column?: Partial<InfiniteTableGroupColumnBase<DataType>>;
|
|
884
|
-
};
|
|
885
|
-
export type PivotBy<DataType, KeyType> = Omit<GroupBy<DataType, KeyType>, 'column'> & {
|
|
886
|
-
column?: InfiniteTableColumn<DataType> | (({ column, }: {
|
|
887
|
-
column: InfiniteTablePivotFinalColumnVariant<DataType, KeyType>;
|
|
888
|
-
}) => Partial<InfiniteTablePivotColumn<DataType>>);
|
|
889
|
-
columnGroup?: InfiniteTableColumnGroup | (({ columnGroup, }: {
|
|
890
|
-
columnGroup: InfiniteTablePivotFinalColumnGroup<DataType, KeyType>;
|
|
891
|
-
}) => Partial<InfiniteTablePivotFinalColumnGroup<DataType>>);
|
|
892
|
-
};
|
|
893
|
-
type GroupParams<DataType, KeyType> = {
|
|
894
|
-
groupBy: GroupBy<DataType, KeyType>[];
|
|
895
|
-
defaultToKey?: (value: any, item: DataType) => GroupKeyType<KeyType>;
|
|
896
|
-
pivot?: PivotBy<DataType, KeyType>[];
|
|
897
|
-
reducers?: Record<string, DataSourceAggregationReducer<DataType, any>>;
|
|
898
|
-
};
|
|
899
|
-
type LazyGroupParams = {
|
|
900
|
-
mappings?: DataSourceMappings;
|
|
901
|
-
};
|
|
902
|
-
export type DataGroupResult<DataType, KeyType extends any> = {
|
|
903
|
-
deepMap: DeepMap<GroupKeyType<KeyType>, DeepMapGroupValueType<DataType, KeyType>>;
|
|
904
|
-
groupParams: GroupParams<DataType, KeyType>;
|
|
905
|
-
initialData: DataType[];
|
|
906
|
-
reducerResults?: Record<string, AggregationReducerResult>;
|
|
907
|
-
topLevelPivotColumns?: DeepMap<GroupKeyType<KeyType>, boolean>;
|
|
908
|
-
pivot?: PivotBy<DataType, KeyType>[];
|
|
909
|
-
};
|
|
910
|
-
export function lazyGroup<DataType, KeyType extends string = string>(groupParams: GroupParams<DataType, KeyType> & LazyGroupParams, rootData: LazyGroupDataDeepMap<DataType>): DataGroupResult<DataType, KeyType>;
|
|
911
|
-
export function group<DataType, KeyType = any>(groupParams: GroupParams<DataType, KeyType>, data: DataType[]): DataGroupResult<DataType, KeyType>;
|
|
912
|
-
export function flatten<DataType, KeyType extends any>(groupResult: DataGroupResult<DataType, KeyType>): DataType[];
|
|
913
|
-
export type EnhancedFlattenParam<DataType, KeyType = any> = {
|
|
914
|
-
groupResult: DataGroupResult<DataType, KeyType>;
|
|
915
|
-
toPrimaryKey: (data: DataType) => any;
|
|
916
|
-
groupRowsState?: GroupRowsState;
|
|
917
|
-
reducers?: Record<string, DataSourceAggregationReducer<DataType, any>>;
|
|
918
|
-
generateGroupRows: boolean;
|
|
919
|
-
};
|
|
920
|
-
export function enhancedFlatten<DataType, KeyType = any>(param: EnhancedFlattenParam<DataType, KeyType>): {
|
|
921
|
-
data: InfiniteTableRowInfo<DataType>[];
|
|
922
|
-
};
|
|
923
|
-
}
|
|
924
|
-
declare module "components/InfiniteTable/theme.css" {
|
|
925
|
-
export const ThemeVars: import("@vanilla-extract/private").MapLeafNodes<{
|
|
926
|
-
color: {
|
|
927
|
-
/**
|
|
928
|
-
* Brand-specific accent color. This probably needs override to match your app.
|
|
929
|
-
*/
|
|
930
|
-
accent: string;
|
|
931
|
-
/**
|
|
932
|
-
* The text color inside the component
|
|
933
|
-
*/
|
|
934
|
-
color: string;
|
|
935
|
-
};
|
|
936
|
-
spacing: {
|
|
937
|
-
0: string;
|
|
938
|
-
1: string;
|
|
939
|
-
2: string;
|
|
940
|
-
3: string;
|
|
941
|
-
4: string;
|
|
942
|
-
5: string;
|
|
943
|
-
6: string;
|
|
944
|
-
7: string;
|
|
945
|
-
8: string;
|
|
946
|
-
9: string;
|
|
947
|
-
10: string;
|
|
948
|
-
};
|
|
949
|
-
fontSize: {
|
|
950
|
-
0: string;
|
|
951
|
-
1: string;
|
|
952
|
-
2: string;
|
|
953
|
-
3: string;
|
|
954
|
-
4: string;
|
|
955
|
-
5: string;
|
|
956
|
-
6: string;
|
|
957
|
-
7: string;
|
|
958
|
-
};
|
|
959
|
-
fontFamily: string;
|
|
960
|
-
minHeight: string;
|
|
961
|
-
borderRadius: string;
|
|
962
|
-
/**
|
|
963
|
-
* The background color for the whole component.
|
|
964
|
-
*
|
|
965
|
-
* Overriden in the `dark` theme.
|
|
966
|
-
*/
|
|
967
|
-
background: string;
|
|
968
|
-
components: {
|
|
969
|
-
LoadMask: {
|
|
970
|
-
/**
|
|
971
|
-
* The padding used for the content inside the LoadMask.
|
|
972
|
-
*/
|
|
973
|
-
padding: string;
|
|
974
|
-
color: string;
|
|
975
|
-
textBackground: string;
|
|
976
|
-
overlayBackground: string;
|
|
977
|
-
overlayOpacity: string;
|
|
978
|
-
borderRadius: string;
|
|
979
|
-
};
|
|
980
|
-
Header: {
|
|
981
|
-
/**
|
|
982
|
-
* Background color for the header. Defaults to [`--infinie-header-cell-background`](#header-cell-background).
|
|
983
|
-
*
|
|
984
|
-
* Overriden in the `dark` theme.
|
|
985
|
-
*/
|
|
986
|
-
background: string;
|
|
987
|
-
/**
|
|
988
|
-
* The text color inside the header.
|
|
989
|
-
*
|
|
990
|
-
* Overriden in the `dark` theme.
|
|
991
|
-
*/
|
|
992
|
-
color: string;
|
|
993
|
-
height: string;
|
|
994
|
-
};
|
|
995
|
-
HeaderCell: {
|
|
996
|
-
draggingBackground: string;
|
|
997
|
-
/**
|
|
998
|
-
* Background for header cells.
|
|
999
|
-
*
|
|
1000
|
-
* Overriden in the `dark` theme.
|
|
1001
|
-
*/
|
|
1002
|
-
background: string;
|
|
1003
|
-
padding: string;
|
|
1004
|
-
iconSize: string;
|
|
1005
|
-
};
|
|
1006
|
-
Cell: {
|
|
1007
|
-
padding: string;
|
|
1008
|
-
borderWidth: string;
|
|
1009
|
-
/**
|
|
1010
|
-
* Specifies the border for cells.
|
|
1011
|
-
*
|
|
1012
|
-
* Overriden in the `dark` theme - eg: `1px solid #2a323d`
|
|
1013
|
-
*/
|
|
1014
|
-
border: string;
|
|
1015
|
-
borderInvisible: string;
|
|
1016
|
-
borderRadius: string;
|
|
1017
|
-
};
|
|
1018
|
-
Row: {
|
|
1019
|
-
/**
|
|
1020
|
-
* Text color inside rows. Defaults to `currentColor`
|
|
1021
|
-
*
|
|
1022
|
-
* Overriden in `dark` theme.
|
|
1023
|
-
*/
|
|
1024
|
-
color: string;
|
|
1025
|
-
/**
|
|
1026
|
-
* Background color for rows. Defaults to [`--infinite-background`](#background).
|
|
1027
|
-
*
|
|
1028
|
-
* Overriden in `dark` theme.
|
|
1029
|
-
*/
|
|
1030
|
-
background: string;
|
|
1031
|
-
/**
|
|
1032
|
-
* Background color for odd rows. Even rows will use [`--infinite-row-background`](#row-background).
|
|
1033
|
-
*
|
|
1034
|
-
* Overriden in `dark` theme.
|
|
1035
|
-
*/
|
|
1036
|
-
oddBackground: string;
|
|
1037
|
-
/**
|
|
1038
|
-
* Background color for rows, on hover.
|
|
1039
|
-
*
|
|
1040
|
-
* Overriden in the `dark` theme.
|
|
1041
|
-
*/
|
|
1042
|
-
hoverBackground: string;
|
|
1043
|
-
groupRowBackground: string;
|
|
1044
|
-
groupRowColumnNesting: string;
|
|
1045
|
-
groupNesting: string;
|
|
1046
|
-
pointerEventsWhileScrolling: string;
|
|
1047
|
-
};
|
|
1048
|
-
ColumnCell: {
|
|
1049
|
-
background: string;
|
|
1050
|
-
};
|
|
1051
|
-
};
|
|
1052
|
-
}, import("@vanilla-extract/private").CSSVarFunction>;
|
|
1053
|
-
}
|
|
1054
|
-
declare module "components/InfiniteTable/utilities.css" {
|
|
1055
|
-
export const boxSizingBorderBox: string;
|
|
1056
|
-
export const position: Record<"fixed" | "absolute" | "relative" | "sticky", string>;
|
|
1057
|
-
export const fill: Record<"accentColor" | "currentColor", string>;
|
|
1058
|
-
export const background: Record<"inherit", string>;
|
|
1059
|
-
export const transformTranslateZero: string;
|
|
1060
|
-
export const transform: Record<"translateZero" | "rotate90", string>;
|
|
1061
|
-
export const cursor: Record<"pointer", string>;
|
|
1062
|
-
export const flex: Record<"none" | 1, string>;
|
|
1063
|
-
export const zIndex: Record<1 | 10 | 1000 | 10000 | 100000, string>;
|
|
1064
|
-
export const display: Record<"block" | "flex" | "inlineBlock", string>;
|
|
1065
|
-
export const userSelect: Record<"none", string>;
|
|
1066
|
-
export const height: Record<"0" | "100%", string>;
|
|
1067
|
-
export const width: Record<"0" | "100%", string>;
|
|
1068
|
-
export const top: Record<"0" | "100%", string>;
|
|
1069
|
-
export const left: Record<"0" | "100%", string>;
|
|
1070
|
-
export const bottom: Record<"0" | "100%", string>;
|
|
1071
|
-
export const right: Record<"0" | "100%", string>;
|
|
1072
|
-
export const flexFlow: Record<"column" | "row", string>;
|
|
1073
|
-
export const alignItems: Record<"center" | "stretch", string>;
|
|
1074
|
-
export const justifyContent: Record<"center" | "end" | "start", string>;
|
|
1075
|
-
export const overflow: Record<"auto" | "hidden" | "visible", string>;
|
|
1076
|
-
export const willChange: Record<"transform", string>;
|
|
1077
|
-
export const whiteSpace: Record<"nowrap", string>;
|
|
1078
|
-
export const textOverflow: Record<"ellipsis", string>;
|
|
1079
|
-
export const cssEllipsisClassName: string;
|
|
1080
|
-
export const absoluteCover: string;
|
|
1081
|
-
}
|
|
1082
|
-
declare module "components/InfiniteTable/components/LoadMask.css" {
|
|
1083
|
-
export const LoadMaskCls: Record<"hidden" | "visible", string>;
|
|
1084
|
-
export const LoadMaskOverlayCls: string;
|
|
1085
|
-
export const LoadMaskTextCls: string;
|
|
1086
|
-
}
|
|
1087
|
-
declare module "components/InfiniteTable/internalProps" {
|
|
1088
|
-
export const rootClassName = "Infinite";
|
|
1089
|
-
export const internalProps: {
|
|
1090
|
-
rootClassName: string;
|
|
1091
|
-
};
|
|
1092
|
-
}
|
|
1093
|
-
declare module "components/InfiniteTable/components/LoadMask" {
|
|
1094
|
-
import { Renderable } from "components/types/Renderable";
|
|
1095
|
-
export type LoadMaskProps = {
|
|
1096
|
-
visible: boolean;
|
|
1097
|
-
children: Renderable;
|
|
1098
|
-
};
|
|
1099
|
-
function LoadMaskFn(props: LoadMaskProps): JSX.Element;
|
|
1100
|
-
export const LoadMask: typeof LoadMaskFn;
|
|
1101
|
-
}
|
|
1102
|
-
declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
1103
|
-
import * as React from 'react';
|
|
1104
|
-
import { InfiniteTableState } from "components/InfiniteTable/types/index";
|
|
1105
|
-
import { AggregationReducer, InfiniteTableRowInfoGroup, InfiniteTableRowInfoNormal } from "utils/groupAndPivot/index";
|
|
1106
|
-
import { DataSourceGroupBy, DataSourcePivotBy, DataSourcePropGroupBy, DataSourcePropPivotBy, DataSourceState } from "components/DataSource/index";
|
|
1107
|
-
import { Renderable } from "components/types/Renderable";
|
|
1108
|
-
import { LoadMaskProps } from "components/InfiniteTable/components/LoadMask";
|
|
1109
|
-
import type { InfiniteTableColumn, InfiniteTableColumnRenderFunction, InfiniteTableComputedColumn, InfiniteTableComputedPivotFinalColumn, InfiniteTableGroupColumnRenderIconFunction, InfiniteTablePivotColumn, InfiniteTablePivotFinalColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1110
|
-
import { InfiniteTablePropPivotTotalColumnPosition } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1111
|
-
export type InfiniteTablePropColumnOrderNormalized = string[];
|
|
1112
|
-
export type InfiniteTablePropColumnOrder = InfiniteTablePropColumnOrderNormalized | true;
|
|
1113
|
-
export type InfiniteTablePropColumnVisibility = Record<string, false>;
|
|
1114
|
-
export type InfiniteTablePropColumnPinningMap = Map<string, true | 'start' | 'end'>;
|
|
1115
|
-
export type InfiniteTableColumnPinnedValues = false | 'start' | 'end';
|
|
1116
|
-
export type InfiniteTablePropColumnPinningRecord = Record<string, true | 'start' | 'end'>;
|
|
1117
|
-
export type InfiniteTablePropColumnPinning = InfiniteTablePropColumnPinningRecord | InfiniteTablePropColumnPinningMap;
|
|
1118
|
-
export type InfiniteTableRowStyleFnParams<T> = {
|
|
1119
|
-
rowIndex: number;
|
|
1120
|
-
groupBy?: (keyof T)[];
|
|
1121
|
-
} & ({
|
|
1122
|
-
data: T;
|
|
1123
|
-
rowInfo: InfiniteTableRowInfoNormal<T>;
|
|
1124
|
-
} | {
|
|
1125
|
-
data: Partial<T> | null;
|
|
1126
|
-
rowInfo: InfiniteTableRowInfoGroup<T>;
|
|
1127
|
-
});
|
|
1128
|
-
export type InfiniteTableRowStyleFn<T> = (params: InfiniteTableRowStyleFnParams<T>) => undefined | React.CSSProperties;
|
|
1129
|
-
export type InfiniteTableRowClassNameFn<T> = (params: InfiniteTableRowStyleFnParams<T>) => string | undefined;
|
|
1130
|
-
export type InfiniteTablePropRowStyle<T> = React.CSSProperties | InfiniteTableRowStyleFn<T>;
|
|
1131
|
-
export type InfiniteTablePropRowClassName<T> = string | InfiniteTableRowClassNameFn<T>;
|
|
1132
|
-
export type InfiniteTableColumnAggregator<T, AggregationResultType> = Omit<AggregationReducer<T, AggregationResultType>, 'getter' | 'id'> & {
|
|
1133
|
-
getter?: AggregationReducer<T, AggregationResultType>['getter'];
|
|
1134
|
-
field?: keyof T;
|
|
1135
|
-
};
|
|
1136
|
-
export type InfiniteTableColumnType<T> = {
|
|
1137
|
-
minWidth?: number;
|
|
1138
|
-
maxWidth?: number;
|
|
1139
|
-
defaultWidth?: number;
|
|
1140
|
-
defaultFlex?: number;
|
|
1141
|
-
defaultPinned?: InfiniteTableColumnPinnedValues;
|
|
1142
|
-
defaultHiddenWhenGroupedBy?: InfiniteTableColumn<T>['defaultHiddenWhenGroupedBy'];
|
|
1143
|
-
header?: InfiniteTableColumn<T>['header'];
|
|
1144
|
-
comparer?: InfiniteTableColumn<T>['comparer'];
|
|
1145
|
-
draggable?: InfiniteTableColumn<T>['draggable'];
|
|
1146
|
-
sortable?: InfiniteTableColumn<T>['sortable'];
|
|
1147
|
-
resizable?: InfiniteTableColumn<T>['resizable'];
|
|
1148
|
-
align?: InfiniteTableColumn<T>['align'];
|
|
1149
|
-
verticalAlign?: InfiniteTableColumn<T>['verticalAlign'];
|
|
1150
|
-
renderValue?: InfiniteTableColumn<T>['renderValue'];
|
|
1151
|
-
render?: InfiniteTableColumn<T>['render'];
|
|
1152
|
-
valueGetter?: InfiniteTableColumn<T>['valueGetter'];
|
|
1153
|
-
};
|
|
1154
|
-
export type InfiniteTablePropColumnTypesMap<T> = Map<'default' | string, InfiniteTableColumnType<T>>;
|
|
1155
|
-
export type InfiniteTablePropColumnTypes<T> = InfiniteTablePropColumnTypesMap<T> | Record<'default' | string, InfiniteTableColumnType<T>>;
|
|
1156
|
-
export type InfiniteTableColumnSizingOptions = {
|
|
1157
|
-
flex?: number;
|
|
1158
|
-
width?: number;
|
|
1159
|
-
minWidth?: number;
|
|
1160
|
-
maxWidth?: number;
|
|
1161
|
-
};
|
|
1162
|
-
export type InfiniteTablePropColumnSizingMap = Map<string, InfiniteTableColumnSizingOptions>;
|
|
1163
|
-
export type InfiniteTablePropColumnSizing = InfiniteTablePropColumnSizingMap | Record<string, InfiniteTableColumnSizingOptions>;
|
|
1164
|
-
export type InfiniteTableImperativeApi<T> = {
|
|
1165
|
-
setColumnOrder: (columnOrder: InfiniteTablePropColumnOrder) => void;
|
|
1166
|
-
setColumnVisibility: (columnVisibility: InfiniteTablePropColumnVisibility) => void;
|
|
1167
|
-
x?: T;
|
|
1168
|
-
getState: () => InfiniteTableState<T>;
|
|
1169
|
-
getDataSourceState: () => DataSourceState<T>;
|
|
1170
|
-
};
|
|
1171
|
-
export type InfiniteTablePropVirtualizeColumns<T> = boolean | ((columns: InfiniteTableComputedColumn<T>[]) => boolean);
|
|
1172
|
-
export type InfiniteTableInternalProps<T> = {
|
|
1173
|
-
rowHeight: number;
|
|
1174
|
-
___t?: T;
|
|
1175
|
-
};
|
|
1176
|
-
export type InfiniteTablePropColumnsMap<T, ColumnType = InfiniteTableColumn<T>> = Map<string, ColumnType>;
|
|
1177
|
-
export type InfiniteTablePropColumns<T, ColumnType = InfiniteTableColumn<T>> = InfiniteTablePropColumnsMap<T, ColumnType> | Record<string, ColumnType>;
|
|
1178
|
-
export type InfiniteTableColumns<T> = InfiniteTablePropColumns<T>;
|
|
1179
|
-
export type InfiniteTableColumnsMap<T> = InfiniteTablePropColumnsMap<T>;
|
|
1180
|
-
export type InfiniteTablePropColumnGroupsMap = Map<string, InfiniteTableColumnGroup>;
|
|
1181
|
-
export type InfiniteTablePropColumnGroupsRecord = Record<string, InfiniteTableColumnGroup>;
|
|
1182
|
-
export type InfiniteTablePropColumnGroups = InfiniteTablePropColumnGroupsRecord | InfiniteTablePropColumnGroupsMap;
|
|
1
|
+
import * as _vanilla_extract_private from '@vanilla-extract/private';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { CSSProperties, MutableRefObject } from 'react';
|
|
4
|
+
|
|
5
|
+
interface ScrollPosition {
|
|
6
|
+
scrollTop: number;
|
|
7
|
+
scrollLeft: number;
|
|
8
|
+
}
|
|
9
|
+
declare type OnScrollFn = (scrollPosition: ScrollPosition) => void;
|
|
10
|
+
|
|
11
|
+
declare type SortDir = 1 | -1;
|
|
12
|
+
declare type MultisortInfo<T> = {
|
|
1183
13
|
/**
|
|
1184
|
-
*
|
|
1185
|
-
* the value is the id of the column to leave as visible
|
|
14
|
+
* The sorting direction
|
|
1186
15
|
*/
|
|
1187
|
-
|
|
1188
|
-
export type InfiniteTablePropCollapsedColumnGroups = Map<string[], string>;
|
|
1189
|
-
export type InfiniteTableColumnGroupHeaderRenderParams = {
|
|
1190
|
-
columnGroup: InfiniteTableComputedColumnGroup;
|
|
1191
|
-
};
|
|
1192
|
-
export type InfiniteTableColumnGroupHeaderRenderFunction = (params: InfiniteTableColumnGroupHeaderRenderParams) => Renderable;
|
|
1193
|
-
export type InfiniteTableColumnGroup = {
|
|
1194
|
-
columnGroup?: string;
|
|
1195
|
-
header?: Renderable | InfiniteTableColumnGroupHeaderRenderFunction;
|
|
1196
|
-
};
|
|
1197
|
-
export type InfiniteTableComputedColumnGroup = InfiniteTableColumnGroup & {
|
|
1198
|
-
id: string;
|
|
1199
|
-
groupOffset: number;
|
|
1200
|
-
computedWidth: number;
|
|
1201
|
-
uniqueGroupId: string[];
|
|
1202
|
-
columns: string[];
|
|
1203
|
-
depth: number;
|
|
1204
|
-
};
|
|
1205
|
-
export type InfiniteTableGroupColumnGetterOptions<T> = {
|
|
1206
|
-
groupIndexForColumn?: number;
|
|
1207
|
-
groupByForColumn?: DataSourceGroupBy<T>;
|
|
1208
|
-
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
1209
|
-
groupCount: number;
|
|
1210
|
-
groupBy: DataSourceGroupBy<T>[];
|
|
1211
|
-
pivotBy?: DataSourcePivotBy<T>[];
|
|
1212
|
-
};
|
|
1213
|
-
export type InfiniteTablePivotColumnGetterOptions<T, COL_TYPE = InfiniteTableColumn<T>> = {
|
|
1214
|
-
column: COL_TYPE;
|
|
1215
|
-
groupBy: DataSourcePropGroupBy<T>;
|
|
1216
|
-
pivotBy: DataSourcePropPivotBy<T>;
|
|
1217
|
-
};
|
|
1218
|
-
export type InfiniteTablePropGroupRenderStrategy = 'single-column' | 'multi-column' | 'inline';
|
|
1219
|
-
export type InfiniteTableGroupColumnBase<T> = Partial<InfiniteTableColumn<T>> & {
|
|
1220
|
-
renderValue?: InfiniteTableColumnRenderFunction<T>;
|
|
1221
|
-
renderGroupIcon?: InfiniteTableGroupColumnRenderIconFunction<T>;
|
|
1222
|
-
id?: string;
|
|
1223
|
-
};
|
|
1224
|
-
export type InfiniteTablePivotColumnBase<T> = InfiniteTableColumn<T> & {
|
|
1225
|
-
renderValue?: InfiniteTableColumnRenderFunction<T, InfiniteTableComputedPivotFinalColumn<T>>;
|
|
1226
|
-
};
|
|
1227
|
-
export type InfiniteTablePropGroupColumn<T> = InfiniteTableGroupColumnBase<T> | InfiniteTableGroupColumnFunction<T>;
|
|
1228
|
-
export type InfiniteTableGroupColumnFunction<T> = (options: InfiniteTableGroupColumnGetterOptions<T>, toggleGroupRow: (groupKeys: any[]) => void) => Partial<InfiniteTableGroupColumnBase<T>>;
|
|
1229
|
-
export type InfiniteTablePropPivotColumn<T, COL_TYPE = InfiniteTableColumn<T>> = Partial<InfiniteTablePivotColumnBase<T>> | ((options: InfiniteTablePivotColumnGetterOptions<T, COL_TYPE>) => InfiniteTablePivotColumnBase<T>);
|
|
1230
|
-
export type InfiniteTablePropComponents = {
|
|
1231
|
-
LoadMask?: React.FC<LoadMaskProps>;
|
|
1232
|
-
};
|
|
1233
|
-
export type ScrollStopInfo = {
|
|
1234
|
-
scrollTop: number;
|
|
1235
|
-
firstVisibleRowIndex: number;
|
|
1236
|
-
lastVisibleRowIndex: number;
|
|
1237
|
-
};
|
|
1238
|
-
export interface InfiniteTableProps<T> {
|
|
1239
|
-
columns: InfiniteTablePropColumns<T>;
|
|
1240
|
-
pivotColumns?: InfiniteTablePropColumnsMap<T, InfiniteTablePivotColumn<T>>;
|
|
1241
|
-
loadingText?: Renderable;
|
|
1242
|
-
components?: InfiniteTablePropComponents;
|
|
1243
|
-
viewportReservedWidth?: number;
|
|
1244
|
-
pivotColumn?: InfiniteTablePropPivotColumn<T, InfiniteTableColumn<T> & InfiniteTablePivotFinalColumn<T>>;
|
|
1245
|
-
pivotTotalColumnPosition?: InfiniteTablePropPivotTotalColumnPosition;
|
|
1246
|
-
groupColumn?: Partial<InfiniteTablePropGroupColumn<T>>;
|
|
1247
|
-
groupRenderStrategy?: InfiniteTablePropGroupRenderStrategy;
|
|
1248
|
-
hideEmptyGroupColumns?: boolean;
|
|
1249
|
-
columnVisibility?: InfiniteTablePropColumnVisibility;
|
|
1250
|
-
defaultColumnVisibility?: InfiniteTablePropColumnVisibility;
|
|
1251
|
-
pinnedStartMaxWidth?: number;
|
|
1252
|
-
pinnedEndMaxWidth?: number;
|
|
1253
|
-
columnPinning?: InfiniteTablePropColumnPinning;
|
|
1254
|
-
defaultColumnPinning?: InfiniteTablePropColumnPinning;
|
|
1255
|
-
columnSizing?: InfiniteTablePropColumnSizing;
|
|
1256
|
-
defaultColumnSizing?: InfiniteTablePropColumnSizing;
|
|
1257
|
-
pivotColumnGroups?: InfiniteTablePropColumnGroups;
|
|
1258
|
-
columnGroups?: InfiniteTablePropColumnGroups;
|
|
1259
|
-
defaultColumnGroups?: InfiniteTablePropColumnGroups;
|
|
1260
|
-
defaultCollapsedColumnGroups?: InfiniteTablePropCollapsedColumnGroups;
|
|
1261
|
-
collapsedColumnGroups?: InfiniteTablePropCollapsedColumnGroups;
|
|
1262
|
-
onScrollbarsChange?: (scrollbars: Scrollbars) => void;
|
|
1263
|
-
onColumnVisibilityChange?: (columnVisibility: InfiniteTablePropColumnVisibility) => void;
|
|
1264
|
-
columnTypes?: InfiniteTablePropColumnTypes<T>;
|
|
1265
|
-
showSeparatePivotColumnForSingleAggregation?: boolean;
|
|
1266
|
-
rowHeight: number | string;
|
|
1267
|
-
rowStyle?: InfiniteTablePropRowStyle<T>;
|
|
1268
|
-
rowClassName?: InfiniteTablePropRowClassName<T>;
|
|
1269
|
-
headerHeight: number | string;
|
|
1270
|
-
domProps?: React.HTMLProps<HTMLDivElement>;
|
|
1271
|
-
showZebraRows?: boolean;
|
|
1272
|
-
showHoverRows?: boolean;
|
|
1273
|
-
sortable?: boolean;
|
|
1274
|
-
draggableColumns?: boolean;
|
|
1275
|
-
header?: boolean;
|
|
1276
|
-
focusedClassName?: string;
|
|
1277
|
-
focusedWithinClassName?: string;
|
|
1278
|
-
focusedStyle?: React.CSSProperties;
|
|
1279
|
-
focusedWithinStyle?: React.CSSProperties;
|
|
1280
|
-
columnDefaultWidth?: number;
|
|
1281
|
-
columnMinWidth?: number;
|
|
1282
|
-
columnMaxWidth?: number;
|
|
1283
|
-
virtualizeColumns?: InfiniteTablePropVirtualizeColumns<T>;
|
|
1284
|
-
virtualizeRows?: boolean;
|
|
1285
|
-
defaultActiveIndex?: number;
|
|
1286
|
-
activeIndex?: number;
|
|
1287
|
-
onSelfFocus?: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
1288
|
-
onSelfBlur?: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
1289
|
-
onFocusWithin?: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
1290
|
-
onBlurWithin?: (event: React.FocusEvent<HTMLDivElement>) => void;
|
|
1291
|
-
onScrollToTop?: () => void;
|
|
1292
|
-
onScrollToBottom?: () => void;
|
|
1293
|
-
scrollStopDelay?: number;
|
|
1294
|
-
onScrollStop?: (param: ScrollStopInfo) => void;
|
|
1295
|
-
scrollToBottomOffset?: number;
|
|
1296
|
-
defaultColumnOrder?: InfiniteTablePropColumnOrder;
|
|
1297
|
-
columnOrder?: InfiniteTablePropColumnOrder;
|
|
1298
|
-
onColumnOrderChange?: (columnOrder: InfiniteTablePropColumnOrder) => void;
|
|
1299
|
-
onRowHeightChange?: (rowHeight: number) => void;
|
|
1300
|
-
onReady?: (api: InfiniteTableImperativeApi<T>) => void;
|
|
1301
|
-
rowProps?: React.HTMLProps<HTMLDivElement> | ((rowArgs: InfiniteTableRowStyleFnParams<T>) => React.HTMLProps<HTMLDivElement>);
|
|
1302
|
-
licenseKey?: string;
|
|
1303
|
-
scrollTopId?: string | number;
|
|
1304
|
-
}
|
|
1305
|
-
export type Scrollbars = {
|
|
1306
|
-
vertical: boolean;
|
|
1307
|
-
horizontal: boolean;
|
|
1308
|
-
};
|
|
1309
|
-
}
|
|
1310
|
-
declare module "components/VirtualBrain/ScrollListener" {
|
|
1311
|
-
import { OnScrollFn, ScrollPosition } from "components/types/ScrollPosition";
|
|
1312
|
-
export class ScrollListener {
|
|
1313
|
-
private scrollPosition;
|
|
1314
|
-
private onScrollFns;
|
|
1315
|
-
getScrollPosition: () => ScrollPosition;
|
|
1316
|
-
onScroll: (fn: OnScrollFn) => () => void;
|
|
1317
|
-
setScrollPosition: (scrollPosition: ScrollPosition) => void;
|
|
1318
|
-
private notifyScrollChange;
|
|
1319
|
-
destroy: () => void;
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
declare module "components/InfiniteTable/types/InfiniteTableState" {
|
|
1323
|
-
import type { ScrollPosition } from "components/types/ScrollPosition";
|
|
1324
|
-
import type { InfiniteTableColumnGroup, InfiniteTablePropColumnGroupsMap, InfiniteTablePropColumnPinningMap, InfiniteTablePropColumnSizingMap, InfiniteTablePropColumnsMap, InfiniteTablePropColumnTypesMap, InfiniteTablePropColumnVisibility, InfiniteTableProps } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1325
|
-
import { Size } from "components/types/Size";
|
|
1326
|
-
import { MutableRefObject } from 'react';
|
|
1327
|
-
import { SubscriptionCallback } from "components/types/SubscriptionCallback";
|
|
1328
|
-
import { ScrollListener } from "components/VirtualBrain/ScrollListener";
|
|
1329
|
-
import { NonUndefined } from "components/types/NonUndefined";
|
|
1330
|
-
import { InfiniteTableColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1331
|
-
import { ComponentStateActions } from "components/hooks/useComponentState";
|
|
1332
|
-
import { DataSourceGroupBy, DataSourceProps } from "components/DataSource/types";
|
|
1333
|
-
export type GroupByMap<T> = Map<keyof T, {
|
|
1334
|
-
groupBy: DataSourceGroupBy<T>;
|
|
1335
|
-
groupIndex: number;
|
|
1336
|
-
}>;
|
|
1337
|
-
export interface InfiniteTableSetupState<T> {
|
|
1338
|
-
propsCache: Map<keyof InfiniteTableProps<T>, WeakMap<any, any>>;
|
|
1339
|
-
columnsWhenInlineGroupRenderStrategy?: Map<string, InfiniteTableColumn<T>>;
|
|
1340
|
-
domRef: MutableRefObject<HTMLDivElement | null>;
|
|
1341
|
-
scrollerDOMRef: MutableRefObject<HTMLDivElement | null>;
|
|
1342
|
-
portalDOMRef: MutableRefObject<HTMLDivElement | null>;
|
|
1343
|
-
onRowHeightCSSVarChange: SubscriptionCallback<number>;
|
|
1344
|
-
onHeaderHeightCSSVarChange: SubscriptionCallback<number>;
|
|
1345
|
-
columnsWhenGrouping?: InfiniteTablePropColumnsMap<T>;
|
|
1346
|
-
bodySize: Size;
|
|
1347
|
-
focused: boolean;
|
|
1348
|
-
focusedWithin: boolean;
|
|
1349
|
-
scrollPosition: ScrollPosition;
|
|
1350
|
-
draggingColumnId: null | string;
|
|
1351
|
-
pinnedStartScrollListener: ScrollListener;
|
|
1352
|
-
pinnedEndScrollListener: ScrollListener;
|
|
1353
|
-
columnShifts: number[] | null;
|
|
1354
|
-
}
|
|
1355
|
-
export type InfiniteTableComputedColumnGroup = InfiniteTableColumnGroup & {
|
|
1356
|
-
depth: number;
|
|
1357
|
-
};
|
|
1358
|
-
export type InfiniteTableColumnGroupsDepthsMap = Map<string, number>;
|
|
1359
|
-
export type InfiniteTablePropPivotTotalColumnPosition = false | 'start' | 'end';
|
|
1360
|
-
export interface InfiniteTableMappedState<T> {
|
|
1361
|
-
scrollTopId: InfiniteTableProps<T>['scrollTopId'];
|
|
1362
|
-
viewportReservedWidth: InfiniteTableProps<T>['viewportReservedWidth'];
|
|
1363
|
-
groupColumn: InfiniteTableProps<T>['groupColumn'];
|
|
1364
|
-
onScrollbarsChange: InfiniteTableProps<T>['onScrollbarsChange'];
|
|
1365
|
-
loadingText: InfiniteTableProps<T>['loadingText'];
|
|
1366
|
-
components: InfiniteTableProps<T>['components'];
|
|
1367
|
-
columns: InfiniteTablePropColumnsMap<T>;
|
|
1368
|
-
pivotColumns: InfiniteTableProps<T>['pivotColumns'];
|
|
1369
|
-
onReady: InfiniteTableProps<T>['onReady'];
|
|
1370
|
-
onSelfFocus: InfiniteTableProps<T>['onSelfFocus'];
|
|
1371
|
-
onSelfBlur: InfiniteTableProps<T>['onSelfBlur'];
|
|
1372
|
-
onFocusWithin: InfiniteTableProps<T>['onFocusWithin'];
|
|
1373
|
-
onBlurWithin: InfiniteTableProps<T>['onBlurWithin'];
|
|
1374
|
-
scrollStopDelay: NonUndefined<InfiniteTableProps<T>['scrollStopDelay']>;
|
|
1375
|
-
onScrollToTop: InfiniteTableProps<T>['onScrollToTop'];
|
|
1376
|
-
onScrollToBottom: InfiniteTableProps<T>['onScrollToBottom'];
|
|
1377
|
-
onScrollStop: InfiniteTableProps<T>['onScrollStop'];
|
|
1378
|
-
scrollToBottomOffset: InfiniteTableProps<T>['scrollToBottomOffset'];
|
|
1379
|
-
focusedClassName: InfiniteTableProps<T>['focusedClassName'];
|
|
1380
|
-
focusedWithinClassName: InfiniteTableProps<T>['focusedWithinClassName'];
|
|
1381
|
-
focusedStyle: InfiniteTableProps<T>['focusedStyle'];
|
|
1382
|
-
focusedWithinStyle: InfiniteTableProps<T>['focusedWithinStyle'];
|
|
1383
|
-
showSeparatePivotColumnForSingleAggregation: NonUndefined<InfiniteTableProps<T>['showSeparatePivotColumnForSingleAggregation']>;
|
|
1384
|
-
domProps: InfiniteTableProps<T>['domProps'];
|
|
1385
|
-
rowStyle: InfiniteTableProps<T>['rowStyle'];
|
|
1386
|
-
rowProps: InfiniteTableProps<T>['rowProps'];
|
|
1387
|
-
rowClassName: InfiniteTableProps<T>['rowClassName'];
|
|
1388
|
-
pinnedStartMaxWidth: InfiniteTableProps<T>['pinnedStartMaxWidth'];
|
|
1389
|
-
pinnedEndMaxWidth: InfiniteTableProps<T>['pinnedEndMaxWidth'];
|
|
1390
|
-
pivotColumn: InfiniteTableProps<T>['pivotColumn'];
|
|
1391
|
-
pivotColumnGroups: InfiniteTablePropColumnGroupsMap;
|
|
1392
|
-
activeIndex: NonUndefined<InfiniteTableProps<T>['activeIndex']>;
|
|
1393
|
-
columnMinWidth: NonUndefined<InfiniteTableProps<T>['columnMinWidth']>;
|
|
1394
|
-
columnMaxWidth: NonUndefined<InfiniteTableProps<T>['columnMaxWidth']>;
|
|
1395
|
-
columnDefaultWidth: NonUndefined<InfiniteTableProps<T>['columnDefaultWidth']>;
|
|
1396
|
-
draggableColumns: NonUndefined<InfiniteTableProps<T>['draggableColumns']>;
|
|
1397
|
-
sortable: NonUndefined<InfiniteTableProps<T>['sortable']>;
|
|
1398
|
-
hideEmptyGroupColumns: NonUndefined<InfiniteTableProps<T>['hideEmptyGroupColumns']>;
|
|
1399
|
-
columnOrder: NonUndefined<InfiniteTableProps<T>['columnOrder']>;
|
|
1400
|
-
showZebraRows: NonUndefined<InfiniteTableProps<T>['showZebraRows']>;
|
|
1401
|
-
showHoverRows: NonUndefined<InfiniteTableProps<T>['showHoverRows']>;
|
|
1402
|
-
header: NonUndefined<InfiniteTableProps<T>['header']>;
|
|
1403
|
-
virtualizeColumns: NonUndefined<InfiniteTableProps<T>['virtualizeColumns']>;
|
|
1404
|
-
rowHeight: number;
|
|
1405
|
-
headerHeight: number;
|
|
1406
|
-
licenseKey: NonUndefined<InfiniteTableProps<T>['licenseKey']>;
|
|
1407
|
-
columnVisibility: InfiniteTablePropColumnVisibility;
|
|
1408
|
-
columnPinning: InfiniteTablePropColumnPinningMap;
|
|
1409
|
-
columnSizing: InfiniteTablePropColumnSizingMap;
|
|
1410
|
-
columnTypes: InfiniteTablePropColumnTypesMap<T>;
|
|
1411
|
-
columnGroups: InfiniteTablePropColumnGroupsMap;
|
|
1412
|
-
collapsedColumnGroups: NonUndefined<InfiniteTableProps<T>['collapsedColumnGroups']>;
|
|
1413
|
-
pivotTotalColumnPosition: NonUndefined<InfiniteTableProps<T>['pivotTotalColumnPosition']>;
|
|
1414
|
-
}
|
|
1415
|
-
export interface InfiniteTableDerivedState<T> {
|
|
1416
|
-
groupBy: DataSourceProps<T>['groupBy'];
|
|
1417
|
-
computedColumns: Map<string, InfiniteTableColumn<T>>;
|
|
1418
|
-
virtualizeHeader: boolean;
|
|
1419
|
-
groupRenderStrategy: NonUndefined<InfiniteTableProps<T>['groupRenderStrategy']>;
|
|
1420
|
-
columnGroupsDepthsMap: InfiniteTableColumnGroupsDepthsMap;
|
|
1421
|
-
columnGroupsMaxDepth: number;
|
|
1422
|
-
computedColumnGroups: InfiniteTablePropColumnGroupsMap;
|
|
1423
|
-
rowHeightCSSVar: string;
|
|
1424
|
-
headerHeightCSSVar: string;
|
|
1425
|
-
controlledColumnVisibility: boolean;
|
|
1426
|
-
}
|
|
1427
|
-
export type InfiniteTableActions<T> = ComponentStateActions<InfiniteTableState<T>>;
|
|
1428
|
-
export interface InfiniteTableState<T> extends InfiniteTableMappedState<T>, InfiniteTableDerivedState<T>, InfiniteTableSetupState<T> {
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
declare module "components/InfiniteTable/types/InfiniteTableActionType" {
|
|
1432
|
-
export enum InfiniteTableActionType {
|
|
1433
|
-
SET_COLUMN_SIZE = 0,
|
|
1434
|
-
SET_SCROLL_POSITION = 1,
|
|
1435
|
-
SET_BODY_SIZE = 2,
|
|
1436
|
-
SET_COLUMN_ORDER = 3,
|
|
1437
|
-
SET_COLUMN_VISIBILITY = 4,
|
|
1438
|
-
SET_COLUMN_SHIFTS = 5,
|
|
1439
|
-
SET_COLUMN_PINNING = 6,
|
|
1440
|
-
SET_COLUMN_AGGREGATIONS = 7,
|
|
1441
|
-
SET_DRAGGING_COLUMN_ID = 8
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
|
-
declare module "components/InfiniteTable/types/InfiniteTableAction" {
|
|
1445
|
-
import { InfiniteTableActionType } from "components/InfiniteTable/types/InfiniteTableActionType";
|
|
1446
|
-
export type InfiniteTableAction = {
|
|
1447
|
-
type: InfiniteTableActionType;
|
|
1448
|
-
payload?: any;
|
|
1449
|
-
};
|
|
1450
|
-
}
|
|
1451
|
-
declare module "components/InfiniteTable/types/InfiniteTableComputedValues" {
|
|
1452
|
-
import type { VirtualBrainOptions } from "components/VirtualBrain/index";
|
|
1453
|
-
import type { InfiniteTableComputedColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1454
|
-
import type { InfiniteTablePropColumnOrderNormalized, InfiniteTablePropColumnVisibility } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1455
|
-
export interface InfiniteTableComputedValues<T> {
|
|
1456
|
-
rowSpan?: VirtualBrainOptions['itemSpan'];
|
|
1457
|
-
computedPinnedStartOverflow: boolean;
|
|
1458
|
-
computedPinnedEndOverflow: boolean;
|
|
1459
|
-
computedPinnedStartColumns: InfiniteTableComputedColumn<T>[];
|
|
1460
|
-
computedPinnedEndColumns: InfiniteTableComputedColumn<T>[];
|
|
1461
|
-
computedUnpinnedColumns: InfiniteTableComputedColumn<T>[];
|
|
1462
|
-
computedVisibleColumns: InfiniteTableComputedColumn<T>[];
|
|
1463
|
-
computedVisibleColumnsMap: Map<string, InfiniteTableComputedColumn<T>>;
|
|
1464
|
-
computedColumnVisibility: InfiniteTablePropColumnVisibility;
|
|
1465
|
-
computedColumnOrder: InfiniteTablePropColumnOrderNormalized;
|
|
1466
|
-
computedPinnedStartColumnsWidth: number;
|
|
1467
|
-
computedPinnedStartWidth: number;
|
|
1468
|
-
computedPinnedEndColumnsWidth: number;
|
|
1469
|
-
computedPinnedEndWidth: number;
|
|
1470
|
-
computedUnpinnedColumnsWidth: number;
|
|
1471
|
-
computedUnpinnedOffset: number;
|
|
1472
|
-
computedPinnedEndOffset: number;
|
|
1473
|
-
computedRemainingSpace: number;
|
|
1474
|
-
unpinnedColumnRenderCount: number;
|
|
1475
|
-
columnRenderStartIndex: number;
|
|
1476
|
-
toggleGroupRow: (groupKeys: any[]) => void;
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
declare module "components/InfiniteTable/types/InfiniteTableContextValue" {
|
|
1480
|
-
import { InfiniteTableActions, InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1481
|
-
import { InfiniteTableComputedValues } from "components/InfiniteTable/types/InfiniteTableComputedValues";
|
|
1482
|
-
export interface InfiniteTableContextValue<T> {
|
|
1483
|
-
componentState: InfiniteTableState<T>;
|
|
1484
|
-
componentActions: InfiniteTableActions<T>;
|
|
1485
|
-
computed: InfiniteTableComputedValues<T>;
|
|
1486
|
-
getComputed: () => InfiniteTableComputedValues<T>;
|
|
1487
|
-
getState: () => InfiniteTableState<T>;
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
declare module "components/InfiniteTable/types/index" {
|
|
1491
|
-
import type { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1492
|
-
import type { InfiniteTableAction } from "components/InfiniteTable/types/InfiniteTableAction";
|
|
1493
|
-
import type { InfiniteTableActionType } from "components/InfiniteTable/types/InfiniteTableActionType";
|
|
1494
|
-
import type { InfiniteTableProps, InfiniteTableImperativeApi, InfiniteTablePropColumnOrder, InfiniteTablePropColumnVisibility, InfiniteTablePropColumnPinning, InfiniteTableColumnAggregator, InfiniteTableColumnGroup, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropColumnGroups, InfiniteTablePropRowStyle, InfiniteTableRowStyleFn, InfiniteTableRowClassNameFn, InfiniteTablePropRowClassName, InfiniteTablePropColumns, InfiniteTablePropColumnsMap, InfiniteTablePropComponents, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnGetterOptions, InfiniteTablePropColumnSizingMap, InfiniteTablePropColumnSizing, InfiniteTablePropColumnTypes, InfiniteTablePropColumnTypesMap, InfiniteTableColumnSizingOptions, Scrollbars, InfiniteTableGroupColumnBase, InfiniteTablePropGroupColumn } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1495
|
-
import type { InfiniteTableColumn, InfiniteTableColumnComparer, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableColumnRowspanParam } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1496
|
-
import type { InfiniteTableComputedValues } from "components/InfiniteTable/types/InfiniteTableComputedValues";
|
|
1497
|
-
import type { InfiniteTableContextValue } from "components/InfiniteTable/types/InfiniteTableContextValue";
|
|
1498
|
-
import type { InfiniteTableRowInfo } from "utils/groupAndPivot/index";
|
|
1499
|
-
export type { Scrollbars, InfiniteTableColumnAggregator, InfiniteTableComputedValues, InfiniteTableColumnRowspanParam, InfiniteTablePropColumns, InfiniteTablePropGroupColumn, InfiniteTablePropColumnsMap, InfiniteTableRowInfo, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnBase, InfiniteTablePropColumnOrder, InfiniteTablePropComponents, InfiniteTablePropColumnVisibility as InfiniteTablePropColumnVisibility, InfiniteTablePropColumnPinning, InfiniteTableColumnGroup, InfiniteTableColumn, InfiniteTableColumnComparer, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableContextValue, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropColumnGroups, InfiniteTablePropColumnSizing, InfiniteTablePropColumnSizingMap, InfiniteTableColumnSizingOptions, InfiniteTableState, InfiniteTableAction, InfiniteTableProps, InfiniteTablePropColumnTypes, InfiniteTablePropColumnTypesMap, InfiniteTableImperativeApi, InfiniteTableActionType, InfiniteTablePropRowStyle, InfiniteTablePropRowClassName, InfiniteTableRowStyleFn, InfiniteTableRowClassNameFn, InfiniteTableGroupColumnGetterOptions, };
|
|
1500
|
-
}
|
|
1501
|
-
declare module "components/InfiniteTable/InfiniteTableContext" {
|
|
1502
|
-
import { InfiniteTableContextValue } from "components/InfiniteTable/types/InfiniteTableContextValue";
|
|
1503
|
-
export function getInfiniteTableContext<T>(): React.Context<InfiniteTableContextValue<T>>;
|
|
1504
|
-
}
|
|
1505
|
-
declare module "components/InfiniteTable/utils/toMap" {
|
|
1506
|
-
export function toMap<K extends string, V>(mapOrObject?: Map<K, V> | Record<K, V>, weakMapCache?: WeakMap<any, any>): Map<K, V>;
|
|
1507
|
-
}
|
|
1508
|
-
declare module "components/InfiniteTable/state/computeColumnGroupsDepths" {
|
|
1509
|
-
import type { InfiniteTablePropColumnGroupsMap } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1510
|
-
import type { InfiniteTableColumnGroupsDepthsMap } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1511
|
-
export function computeColumnGroupsDepths(columnGroups: InfiniteTablePropColumnGroupsMap): InfiniteTableColumnGroupsDepthsMap;
|
|
1512
|
-
}
|
|
1513
|
-
declare module "components/InfiniteTable/state/getInitialState" {
|
|
1514
|
-
import { DataSourceState } from "components/DataSource/index";
|
|
1515
|
-
import { ForwardPropsToStateFnResult } from "components/hooks/useComponentState";
|
|
1516
|
-
import { InfiniteTableProps, InfiniteTableState } from "components/InfiniteTable/types/index";
|
|
1517
|
-
import { InfiniteTablePropGroupColumn } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1518
|
-
import { InfiniteTableSetupState, InfiniteTableDerivedState, InfiniteTableMappedState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
16
|
+
dir: SortDir;
|
|
1519
17
|
/**
|
|
1520
|
-
*
|
|
1521
|
-
* be affected by props
|
|
18
|
+
* a property whose value to use for sorting on the array items
|
|
1522
19
|
*/
|
|
1523
|
-
|
|
1524
|
-
export const forwardProps: <T>(setupState: InfiniteTableSetupState<T>) => Partial<{
|
|
1525
|
-
columns: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumns<T, import("components/InfiniteTable/types").InfiniteTableColumn<T>>) => import("components/InfiniteTable/types").InfiniteTablePropColumnsMap<T, import("components/InfiniteTable/types").InfiniteTableColumn<T>>);
|
|
1526
|
-
header: 1 | ((value: boolean | undefined) => boolean);
|
|
1527
|
-
showSeparatePivotColumnForSingleAggregation: 1 | ((value: boolean | undefined) => boolean);
|
|
1528
|
-
pivotTotalColumnPosition: 1 | ((value: import("components/InfiniteTable/types/InfiniteTableState").InfiniteTablePropPivotTotalColumnPosition | undefined) => import("components/InfiniteTable/types/InfiniteTableState").InfiniteTablePropPivotTotalColumnPosition);
|
|
1529
|
-
pivotColumns: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnsMap<T, import("components/InfiniteTable/types/InfiniteTableColumn").InfiniteTablePivotColumn<T>> | undefined) => import("components/InfiniteTable/types").InfiniteTablePropColumnsMap<T, import("components/InfiniteTable/types/InfiniteTableColumn").InfiniteTablePivotColumn<T>> | undefined);
|
|
1530
|
-
pivotColumnGroups: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnGroups | undefined) => import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropColumnGroupsMap);
|
|
1531
|
-
sortable: 1 | ((value: boolean | undefined) => boolean);
|
|
1532
|
-
pivotColumn: 1 | ((value: import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropPivotColumn<T, import("components/InfiniteTable/types").InfiniteTableColumn<T> & import("components/InfiniteTable/types/InfiniteTableColumn").InfiniteTablePivotFinalColumn<T, any>> | undefined) => import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropPivotColumn<T, import("components/InfiniteTable/types").InfiniteTableColumn<T> & import("components/InfiniteTable/types/InfiniteTableColumn").InfiniteTablePivotFinalColumn<T, any>> | undefined);
|
|
1533
|
-
components: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropComponents | undefined) => import("components/InfiniteTable/types").InfiniteTablePropComponents | undefined);
|
|
1534
|
-
loadingText: 1 | ((value: import("react").ReactNode) => import("react").ReactNode);
|
|
1535
|
-
viewportReservedWidth: 1 | ((value: number | undefined) => number | undefined);
|
|
1536
|
-
groupColumn: 1 | ((value: Partial<InfiniteTablePropGroupColumn<T>> | undefined) => Partial<InfiniteTablePropGroupColumn<T>> | undefined);
|
|
1537
|
-
hideEmptyGroupColumns: 1 | ((value: boolean | undefined) => boolean);
|
|
1538
|
-
columnVisibility: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnVisibility | undefined) => import("components/InfiniteTable/types").InfiniteTablePropColumnVisibility);
|
|
1539
|
-
pinnedStartMaxWidth: 1 | ((value: number | undefined) => number | undefined);
|
|
1540
|
-
pinnedEndMaxWidth: 1 | ((value: number | undefined) => number | undefined);
|
|
1541
|
-
columnPinning: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnPinning | undefined) => import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropColumnPinningMap);
|
|
1542
|
-
columnSizing: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnSizing | undefined) => import("components/InfiniteTable/types").InfiniteTablePropColumnSizingMap);
|
|
1543
|
-
columnGroups: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnGroups | undefined) => import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropColumnGroupsMap);
|
|
1544
|
-
collapsedColumnGroups: 1 | ((value: import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropCollapsedColumnGroups | undefined) => import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropCollapsedColumnGroups);
|
|
1545
|
-
onScrollbarsChange: 1 | ((value: ((scrollbars: import("components/InfiniteTable/types").Scrollbars) => void) | undefined) => ((scrollbars: import("components/InfiniteTable/types").Scrollbars) => void) | undefined);
|
|
1546
|
-
columnTypes: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnTypes<T> | undefined) => import("components/InfiniteTable/types").InfiniteTablePropColumnTypesMap<T>);
|
|
1547
|
-
rowHeight: 1 | ((value: string | number) => number);
|
|
1548
|
-
rowStyle: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropRowStyle<T> | undefined) => import("components/InfiniteTable/types").InfiniteTablePropRowStyle<T> | undefined);
|
|
1549
|
-
rowClassName: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropRowClassName<T> | undefined) => import("components/InfiniteTable/types").InfiniteTablePropRowClassName<T> | undefined);
|
|
1550
|
-
headerHeight: 1 | ((value: string | number) => number);
|
|
1551
|
-
domProps: 1 | ((value: import("react").HTMLProps<HTMLDivElement> | undefined) => import("react").HTMLProps<HTMLDivElement> | undefined);
|
|
1552
|
-
showZebraRows: 1 | ((value: boolean | undefined) => boolean);
|
|
1553
|
-
showHoverRows: 1 | ((value: boolean | undefined) => boolean);
|
|
1554
|
-
draggableColumns: 1 | ((value: boolean | undefined) => boolean);
|
|
1555
|
-
focusedClassName: 1 | ((value: string | undefined) => string | undefined);
|
|
1556
|
-
focusedWithinClassName: 1 | ((value: string | undefined) => string | undefined);
|
|
1557
|
-
focusedStyle: 1 | ((value: import("react").CSSProperties | undefined) => import("react").CSSProperties | undefined);
|
|
1558
|
-
focusedWithinStyle: 1 | ((value: import("react").CSSProperties | undefined) => import("react").CSSProperties | undefined);
|
|
1559
|
-
columnDefaultWidth: 1 | ((value: number | undefined) => number);
|
|
1560
|
-
columnMinWidth: 1 | ((value: number | undefined) => number);
|
|
1561
|
-
columnMaxWidth: 1 | ((value: number | undefined) => number);
|
|
1562
|
-
virtualizeColumns: 1 | ((value: import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropVirtualizeColumns<T> | undefined) => import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropVirtualizeColumns<T>);
|
|
1563
|
-
activeIndex: 1 | ((value: number | undefined) => number);
|
|
1564
|
-
onSelfFocus: 1 | ((value: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined) => ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined);
|
|
1565
|
-
onSelfBlur: 1 | ((value: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined) => ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined);
|
|
1566
|
-
onFocusWithin: 1 | ((value: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined) => ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined);
|
|
1567
|
-
onBlurWithin: 1 | ((value: ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined) => ((event: import("react").FocusEvent<HTMLDivElement, Element>) => void) | undefined);
|
|
1568
|
-
onScrollToTop: 1 | ((value: (() => void) | undefined) => (() => void) | undefined);
|
|
1569
|
-
onScrollToBottom: 1 | ((value: (() => void) | undefined) => (() => void) | undefined);
|
|
1570
|
-
scrollStopDelay: 1 | ((value: number | undefined) => number);
|
|
1571
|
-
onScrollStop: 1 | ((value: ((param: import("components/InfiniteTable/types/InfiniteTableProps").ScrollStopInfo) => void) | undefined) => ((param: import("components/InfiniteTable/types/InfiniteTableProps").ScrollStopInfo) => void) | undefined);
|
|
1572
|
-
scrollToBottomOffset: 1 | ((value: number | undefined) => number | undefined);
|
|
1573
|
-
columnOrder: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnOrder | undefined) => import("components/InfiniteTable/types").InfiniteTablePropColumnOrder);
|
|
1574
|
-
onReady: 1 | ((value: ((api: import("components/InfiniteTable/types").InfiniteTableImperativeApi<T>) => void) | undefined) => ((api: import("components/InfiniteTable/types").InfiniteTableImperativeApi<T>) => void) | undefined);
|
|
1575
|
-
rowProps: 1 | ((value: import("react").HTMLProps<HTMLDivElement> | ((rowArgs: import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTableRowStyleFnParams<T>) => import("react").HTMLProps<HTMLDivElement>) | undefined) => import("react").HTMLProps<HTMLDivElement> | ((rowArgs: import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTableRowStyleFnParams<T>) => import("react").HTMLProps<HTMLDivElement>) | undefined);
|
|
1576
|
-
licenseKey: 1 | ((value: string | undefined) => string);
|
|
1577
|
-
scrollTopId: 1 | ((value: string | number | undefined) => string | number | undefined);
|
|
1578
|
-
}>;
|
|
1579
|
-
export const mapPropsToState: <T>(params: {
|
|
1580
|
-
props: InfiniteTableProps<T>;
|
|
1581
|
-
state: InfiniteTableState<T>;
|
|
1582
|
-
oldState: InfiniteTableState<T> | null;
|
|
1583
|
-
parentState: DataSourceState<T>;
|
|
1584
|
-
}) => InfiniteTableDerivedState<T>;
|
|
1585
|
-
}
|
|
1586
|
-
declare module "components/ResizeObserver/index" {
|
|
1587
|
-
import * as React from 'react';
|
|
1588
|
-
import { OnResizeFn } from "components/types/Size";
|
|
1589
|
-
interface ResizeObserverProps {
|
|
1590
|
-
/**
|
|
1591
|
-
* Specifies whether to call onResize after the initial render (on mount)
|
|
1592
|
-
*
|
|
1593
|
-
* @default true
|
|
1594
|
-
*/
|
|
1595
|
-
notifyOnMount?: boolean;
|
|
1596
|
-
/**
|
|
1597
|
-
* If set to true, it will be attached using useLayoutEffect. If false, will be attached using useEffect
|
|
1598
|
-
* @default false
|
|
1599
|
-
*/
|
|
1600
|
-
earlyAttach?: boolean;
|
|
1601
|
-
onResize: OnResizeFn;
|
|
1602
|
-
}
|
|
1603
|
-
export const setupResizeObserver: (node: HTMLElement, callback: OnResizeFn) => (() => void);
|
|
20
|
+
field?: keyof T;
|
|
1604
21
|
/**
|
|
1605
|
-
*
|
|
1606
|
-
*
|
|
1607
|
-
* @param ref A React ref to a DOM element
|
|
1608
|
-
* @param callback The function to be called when the element is resized.
|
|
22
|
+
* for now 'string' and 'number' are known types, meaning they have
|
|
23
|
+
* sort functions already implemented
|
|
1609
24
|
*/
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
earlyAttach: boolean;
|
|
1618
|
-
};
|
|
1619
|
-
};
|
|
1620
|
-
export default ReactResizeObserver;
|
|
1621
|
-
}
|
|
1622
|
-
declare module "components/InfiniteTable/hooks/useInfiniteTable" {
|
|
1623
|
-
import type { InfiniteTableContextValue } from "components/InfiniteTable/types/index";
|
|
1624
|
-
export const useInfiniteTable: <T>() => InfiniteTableContextValue<T>;
|
|
1625
|
-
}
|
|
1626
|
-
declare module "components/flexbox/index" {
|
|
1627
|
-
import { RequireAtLeastOne } from "components/InfiniteTable/types/Utility";
|
|
1628
|
-
type FlexItem = {
|
|
1629
|
-
size?: number;
|
|
1630
|
-
flex?: number;
|
|
1631
|
-
maxSize?: number;
|
|
1632
|
-
minSize?: number;
|
|
1633
|
-
};
|
|
1634
|
-
type FlexItemWithSizeOrFlex = RequireAtLeastOne<FlexItem, 'size' | 'flex'>;
|
|
1635
|
-
type FlexComputeParams = {
|
|
1636
|
-
availableSize: number;
|
|
1637
|
-
minSize?: number;
|
|
1638
|
-
maxSize?: number;
|
|
1639
|
-
items: FlexItemWithSizeOrFlex[];
|
|
1640
|
-
};
|
|
1641
|
-
type SizedFlexItem = FlexItem & {
|
|
1642
|
-
flexSize?: number;
|
|
1643
|
-
computedSize?: number;
|
|
1644
|
-
};
|
|
1645
|
-
type FlexComputeResult = {
|
|
1646
|
-
items: SizedFlexItem[];
|
|
1647
|
-
flexSizes: number[];
|
|
1648
|
-
computedSizes: number[];
|
|
1649
|
-
remainingSize: number;
|
|
1650
|
-
};
|
|
1651
|
-
export const computeFlex: (params: FlexComputeParams) => FlexComputeResult;
|
|
1652
|
-
}
|
|
1653
|
-
declare module "components/InfiniteTable/utils/adjustColumnOrderForPinning" {
|
|
1654
|
-
import { InfiniteTablePropColumnOrderNormalized, InfiniteTablePropColumnPinningMap } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1655
|
-
export const adjustColumnOrderForPinning: (columnOrder: InfiniteTablePropColumnOrderNormalized, columnPinning: InfiniteTablePropColumnPinningMap) => InfiniteTablePropColumnOrderNormalized;
|
|
1656
|
-
}
|
|
1657
|
-
declare module "components/utils/getScrollbarWidth" {
|
|
1658
|
-
export function getScrollbarWidth(): number;
|
|
1659
|
-
}
|
|
1660
|
-
declare module "components/InfiniteTable/utils/getColumnComputedType" {
|
|
1661
|
-
import type { InfiniteTableColumn } from "components/InfiniteTable/types/index";
|
|
1662
|
-
import type { InfiniteTableColumnType, InfiniteTablePropColumnTypesMap } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1663
|
-
export function getColumnComputedType<T>(column: InfiniteTableColumn<T>, columnTypes: InfiniteTablePropColumnTypesMap<T>): InfiniteTableColumnType<T>;
|
|
1664
|
-
}
|
|
1665
|
-
declare module "components/InfiniteTable/utils/getComputedVisibleColumns" {
|
|
1666
|
-
import type { InfiniteTableColumn, InfiniteTableComputedColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1667
|
-
import type { Size } from "components/types/Size";
|
|
1668
|
-
import type { DataSourceSingleSortInfo } from "components/DataSource/types";
|
|
1669
|
-
import type { InfiniteTablePropColumnOrder, InfiniteTablePropColumnOrderNormalized, InfiniteTablePropColumnPinningMap, InfiniteTablePropColumnSizingMap, InfiniteTablePropColumnTypesMap, InfiniteTablePropColumnVisibility } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1670
|
-
export type SortInfoMap<T> = {
|
|
1671
|
-
[key: string]: {
|
|
1672
|
-
sortInfo: DataSourceSingleSortInfo<T>;
|
|
1673
|
-
index: number;
|
|
1674
|
-
};
|
|
1675
|
-
};
|
|
1676
|
-
export type GetComputedVisibleColumnsResult<T> = {
|
|
1677
|
-
computedRemainingSpace: number;
|
|
1678
|
-
computedPinnedStartColumnsWidth: number;
|
|
1679
|
-
computedPinnedStartWidth: number;
|
|
1680
|
-
computedPinnedEndColumnsWidth: number;
|
|
1681
|
-
computedPinnedEndWidth: number;
|
|
1682
|
-
computedUnpinnedColumnsWidth: number;
|
|
1683
|
-
columnMinWidth?: number;
|
|
1684
|
-
columnMaxWidth?: number;
|
|
1685
|
-
columnDefaultWidth?: number;
|
|
1686
|
-
computedPinnedStartColumns: InfiniteTableComputedColumn<T>[];
|
|
1687
|
-
computedPinnedEndColumns: InfiniteTableComputedColumn<T>[];
|
|
1688
|
-
computedUnpinnedColumns: InfiniteTableComputedColumn<T>[];
|
|
1689
|
-
computedColumnOrder: InfiniteTablePropColumnOrderNormalized;
|
|
1690
|
-
computedUnpinnedOffset: number;
|
|
1691
|
-
computedPinnedEndOffset: number;
|
|
1692
|
-
computedVisibleColumns: InfiniteTableComputedColumn<T>[];
|
|
1693
|
-
computedVisibleColumnsMap: Map<string, InfiniteTableComputedColumn<T>>;
|
|
1694
|
-
};
|
|
1695
|
-
type GetComputedVisibleColumnsParam<T> = {
|
|
1696
|
-
columns: Map<string, InfiniteTableColumn<T>>;
|
|
1697
|
-
bodySize: Size;
|
|
1698
|
-
columnMinWidth?: number;
|
|
1699
|
-
columnMaxWidth?: number;
|
|
1700
|
-
pinnedStartMaxWidth?: number;
|
|
1701
|
-
pinnedEndMaxWidth?: number;
|
|
1702
|
-
columnDefaultWidth?: number;
|
|
1703
|
-
viewportReservedWidth?: number;
|
|
1704
|
-
sortable?: boolean;
|
|
1705
|
-
multiSort: boolean;
|
|
1706
|
-
sortInfo?: DataSourceSingleSortInfo<T>[];
|
|
1707
|
-
setSortInfo: (sortInfo: DataSourceSingleSortInfo<T>[]) => void;
|
|
1708
|
-
draggableColumns?: boolean;
|
|
1709
|
-
columnOrder: InfiniteTablePropColumnOrder;
|
|
1710
|
-
columnPinning: InfiniteTablePropColumnPinningMap;
|
|
1711
|
-
columnSizing: InfiniteTablePropColumnSizingMap;
|
|
1712
|
-
columnTypes: InfiniteTablePropColumnTypesMap<T>;
|
|
1713
|
-
columnVisibility: InfiniteTablePropColumnVisibility;
|
|
1714
|
-
columnVisibilityAssumeVisible: boolean;
|
|
1715
|
-
};
|
|
1716
|
-
export const getComputedVisibleColumns: <T extends unknown>({ columns, bodySize, columnMinWidth, columnMaxWidth, columnDefaultWidth, pinnedStartMaxWidth, pinnedEndMaxWidth, sortable, sortInfo, setSortInfo, multiSort, viewportReservedWidth, draggableColumns, columnOrder, columnPinning, columnSizing, columnTypes, columnVisibility, columnVisibilityAssumeVisible, }: GetComputedVisibleColumnsParam<T>) => GetComputedVisibleColumnsResult<T>;
|
|
1717
|
-
}
|
|
1718
|
-
declare module "components/hooks/useRerender" {
|
|
1719
|
-
export const useRerender: () => [number, () => void];
|
|
1720
|
-
}
|
|
1721
|
-
declare module "components/hooks/useInterceptedMap" {
|
|
1722
|
-
type InterceptedMapFns<K, V> = {
|
|
1723
|
-
set?: (k: K, v: V) => void;
|
|
1724
|
-
beforeClear?: (map: Map<K, V>) => void;
|
|
1725
|
-
clear?: () => void;
|
|
1726
|
-
delete?: (k: K) => void;
|
|
1727
|
-
};
|
|
1728
|
-
/**
|
|
1729
|
-
*
|
|
1730
|
-
* @param map Map to intercept
|
|
1731
|
-
* @param fns fns to inject
|
|
1732
|
-
* @returns a function to restore the map to initial methods
|
|
1733
|
-
*/
|
|
1734
|
-
export function interceptMap<K, V>(map: Map<K, V>, fns: InterceptedMapFns<K, V>): () => void;
|
|
1735
|
-
export function useInterceptedMap<K, V>(map: Map<K, V>, fns: InterceptedMapFns<K, V>): void;
|
|
1736
|
-
}
|
|
1737
|
-
declare module "components/InfiniteTable/utils/rafFn" {
|
|
1738
|
-
export const rafFn: (fn: (...args: any[]) => void) => (...args: any[]) => void;
|
|
1739
|
-
}
|
|
1740
|
-
declare module "components/InfiniteTable/hooks/useRerenderOnKeyChange" {
|
|
1741
|
-
export const useRerenderOnKeyChange: <K extends unknown, V extends unknown>(map: Map<K, V>) => number;
|
|
1742
|
-
}
|
|
1743
|
-
declare module "components/InfiniteTable/hooks/useComputedVisibleColumns" {
|
|
1744
|
-
import type { DataSourceSingleSortInfo } from "components/DataSource/types";
|
|
1745
|
-
import type { InfiniteTableColumn } from "components/InfiniteTable/types/index";
|
|
1746
|
-
import type { InfiniteTablePropColumnOrder, InfiniteTablePropColumnPinningMap, InfiniteTablePropColumnSizingMap, InfiniteTablePropColumnTypesMap, InfiniteTablePropColumnVisibility } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1747
|
-
import type { Size } from "components/types/Size";
|
|
1748
|
-
import type { GetComputedVisibleColumnsResult } from "components/InfiniteTable/utils/getComputedVisibleColumns";
|
|
1749
|
-
type UseComputedVisibleColumnsParam<T> = {
|
|
1750
|
-
columns: Map<string, InfiniteTableColumn<T>>;
|
|
1751
|
-
bodySize: Size;
|
|
1752
|
-
columnMinWidth?: number;
|
|
1753
|
-
columnMaxWidth?: number;
|
|
1754
|
-
viewportReservedWidth?: number;
|
|
1755
|
-
pinnedEndMaxWidth?: number;
|
|
1756
|
-
pinnedStartMaxWidth?: number;
|
|
1757
|
-
columnDefaultWidth?: number;
|
|
1758
|
-
sortable?: boolean;
|
|
1759
|
-
draggableColumns?: boolean;
|
|
1760
|
-
multiSort: boolean;
|
|
1761
|
-
sortInfo?: DataSourceSingleSortInfo<T>[];
|
|
1762
|
-
setSortInfo: (sortInfo: DataSourceSingleSortInfo<T>[]) => void;
|
|
1763
|
-
columnPinning: InfiniteTablePropColumnPinningMap;
|
|
1764
|
-
columnSizing: InfiniteTablePropColumnSizingMap;
|
|
1765
|
-
columnTypes: InfiniteTablePropColumnTypesMap<T>;
|
|
1766
|
-
columnOrder: InfiniteTablePropColumnOrder;
|
|
1767
|
-
columnVisibility: InfiniteTablePropColumnVisibility;
|
|
1768
|
-
columnVisibilityAssumeVisible?: boolean;
|
|
1769
|
-
};
|
|
1770
|
-
type UseComputedVisibleColumnsResult<T> = {
|
|
1771
|
-
columns: UseComputedVisibleColumnsParam<T>['columns'];
|
|
1772
|
-
computedRemainingSpace: GetComputedVisibleColumnsResult<T>['computedRemainingSpace'];
|
|
1773
|
-
computedUnpinnedOffset: GetComputedVisibleColumnsResult<T>['computedUnpinnedOffset'];
|
|
1774
|
-
computedPinnedEndOffset: GetComputedVisibleColumnsResult<T>['computedPinnedEndOffset'];
|
|
1775
|
-
computedPinnedStartColumnsWidth: GetComputedVisibleColumnsResult<T>['computedPinnedStartColumnsWidth'];
|
|
1776
|
-
computedPinnedEndColumnsWidth: GetComputedVisibleColumnsResult<T>['computedPinnedEndColumnsWidth'];
|
|
1777
|
-
computedUnpinnedColumnsWidth: GetComputedVisibleColumnsResult<T>['computedUnpinnedColumnsWidth'];
|
|
1778
|
-
computedPinnedStartColumns: GetComputedVisibleColumnsResult<T>['computedPinnedStartColumns'];
|
|
1779
|
-
computedPinnedEndColumns: GetComputedVisibleColumnsResult<T>['computedPinnedEndColumns'];
|
|
1780
|
-
computedUnpinnedColumns: GetComputedVisibleColumnsResult<T>['computedUnpinnedColumns'];
|
|
1781
|
-
computedVisibleColumns: GetComputedVisibleColumnsResult<T>['computedVisibleColumns'];
|
|
1782
|
-
computedVisibleColumnsMap: GetComputedVisibleColumnsResult<T>['computedVisibleColumnsMap'];
|
|
1783
|
-
computedPinnedEndWidth: GetComputedVisibleColumnsResult<T>['computedPinnedEndWidth'];
|
|
1784
|
-
computedPinnedStartWidth: GetComputedVisibleColumnsResult<T>['computedPinnedStartWidth'];
|
|
1785
|
-
computedColumnOrder: GetComputedVisibleColumnsResult<T>['computedColumnOrder'];
|
|
1786
|
-
};
|
|
1787
|
-
export const useComputedVisibleColumns: <T extends unknown>({ columns, bodySize, columnMinWidth, columnMaxWidth, columnDefaultWidth, sortable, draggableColumns, sortInfo, multiSort, setSortInfo, columnOrder, columnPinning, columnTypes, pinnedEndMaxWidth, pinnedStartMaxWidth, viewportReservedWidth, columnVisibility, columnVisibilityAssumeVisible, columnSizing, }: UseComputedVisibleColumnsParam<T>) => UseComputedVisibleColumnsResult<T>;
|
|
1788
|
-
}
|
|
1789
|
-
declare module "components/InfiniteTable/hooks/useColumnGroups" {
|
|
1790
|
-
export function useColumnGroups<T>(): void;
|
|
1791
|
-
}
|
|
1792
|
-
declare module "utils/join" {
|
|
1793
|
-
const join: (...args: (string | number | void | null)[]) => string;
|
|
1794
|
-
export { join };
|
|
1795
|
-
}
|
|
1796
|
-
declare module "components/InfiniteTable/components/icons/ExpanderIcon.css" {
|
|
1797
|
-
export const ExpanderIconCls: string;
|
|
1798
|
-
export const ExpanderIconClsVariants: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
|
1799
|
-
expanded: {
|
|
1800
|
-
true: string;
|
|
1801
|
-
false: {};
|
|
1802
|
-
};
|
|
1803
|
-
}>;
|
|
1804
|
-
}
|
|
1805
|
-
declare module "components/InfiniteTable/components/icons/ExpanderIcon" {
|
|
1806
|
-
import * as React from 'react';
|
|
1807
|
-
type ExpanderIconProps = {
|
|
1808
|
-
size?: number;
|
|
1809
|
-
expanded?: boolean;
|
|
1810
|
-
defaultExpanded?: boolean;
|
|
1811
|
-
onChange?: (expanded: boolean) => void;
|
|
1812
|
-
style?: React.CSSProperties;
|
|
1813
|
-
className?: string;
|
|
1814
|
-
};
|
|
1815
|
-
export function ExpanderIcon(props: ExpanderIconProps): JSX.Element;
|
|
1816
|
-
}
|
|
1817
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/row.css" {
|
|
1818
|
-
export const RowHoverCls: string;
|
|
1819
|
-
export const RowClsRecipe: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
|
1820
|
-
zebra: {
|
|
1821
|
-
false: {};
|
|
1822
|
-
even: {
|
|
1823
|
-
background: import("@vanilla-extract/private").CSSVarFunction;
|
|
1824
|
-
};
|
|
1825
|
-
odd: {
|
|
1826
|
-
background: import("@vanilla-extract/private").CSSVarFunction;
|
|
1827
|
-
};
|
|
1828
|
-
};
|
|
1829
|
-
groupRow: {
|
|
1830
|
-
true: {
|
|
1831
|
-
zIndex: number;
|
|
1832
|
-
};
|
|
1833
|
-
false: {};
|
|
1834
|
-
};
|
|
1835
|
-
inlineGroupRow: {
|
|
1836
|
-
true: {
|
|
1837
|
-
zIndex: number;
|
|
1838
|
-
};
|
|
1839
|
-
false: {};
|
|
1840
|
-
};
|
|
1841
|
-
showHoverRows: {
|
|
1842
|
-
true: {};
|
|
1843
|
-
false: {};
|
|
1844
|
-
};
|
|
1845
|
-
}>;
|
|
1846
|
-
export const GroupRowExpanderCls: string;
|
|
1847
|
-
}
|
|
1848
|
-
declare module "components/InfiniteTable/utils/getColumnForGroupBy" {
|
|
1849
|
-
import * as React from 'react';
|
|
1850
|
-
import { InfiniteTableColumnRenderParam } from "components/InfiniteTable/index";
|
|
1851
|
-
import { DataSourceGroupBy } from "components/DataSource/index";
|
|
1852
|
-
import { InfiniteTableGeneratedGroupColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1853
|
-
import { InfiniteTableGroupColumnGetterOptions, InfiniteTablePropGroupColumn, InfiniteTablePropGroupRenderStrategy } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1854
|
-
export function getGroupColumnRender<T>({ groupIndexForColumn, groupRenderStrategy, toggleGroupRow, }: {
|
|
1855
|
-
toggleGroupRow: (groupRowKeys: any[]) => void;
|
|
1856
|
-
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
1857
|
-
groupIndexForColumn: number;
|
|
1858
|
-
}): (renderOptions: InfiniteTableColumnRenderParam<T>) => React.ReactNode;
|
|
1859
|
-
export function getColumnForGroupBy<T>(options: InfiniteTableGroupColumnGetterOptions<T> & {
|
|
1860
|
-
groupIndexForColumn: number;
|
|
1861
|
-
groupByForColumn: DataSourceGroupBy<T>;
|
|
1862
|
-
}, toggleGroupRow: (groupRowKeys: any[]) => void, groupColumnFromProps?: Partial<InfiniteTablePropGroupColumn<T>>): InfiniteTableGeneratedGroupColumn<T>;
|
|
1863
|
-
export function getSingleGroupColumn<T>(options: InfiniteTableGroupColumnGetterOptions<T>, toggleGroupRow: (groupRowKeys: any[]) => void, groupColumnFromProps?: Partial<InfiniteTablePropGroupColumn<T>>): InfiniteTableGeneratedGroupColumn<T>;
|
|
1864
|
-
}
|
|
1865
|
-
declare module "components/InfiniteTable/hooks/useToggleGroupRow" {
|
|
1866
|
-
export type ToggleGrouRowFn = (groupKeys: any[]) => void;
|
|
1867
|
-
export function useToggleGroupRow<T>(): ToggleGrouRowFn;
|
|
1868
|
-
}
|
|
1869
|
-
declare module "components/InfiniteTable/hooks/useColumnsWhen" {
|
|
1870
|
-
import type { InfiniteTableColumn, InfiniteTableState } from "components/InfiniteTable/index";
|
|
1871
|
-
import type { DataSourceGroupBy, DataSourcePivotBy } from "components/DataSource/index";
|
|
1872
|
-
import type { InfiniteTablePropGroupRenderStrategy, InfiniteTableProps } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1873
|
-
import { ToggleGrouRowFn } from "components/InfiniteTable/hooks/useToggleGroupRow";
|
|
1874
|
-
export function useColumnsWhen<T>(): {
|
|
1875
|
-
toggleGroupRow: ToggleGrouRowFn;
|
|
1876
|
-
};
|
|
1877
|
-
export function getColumnsWhenGrouping<T>(params: {
|
|
1878
|
-
columns: Map<string, InfiniteTableColumn<T>>;
|
|
1879
|
-
groupBy: DataSourceGroupBy<T>[];
|
|
1880
|
-
pivotBy?: DataSourcePivotBy<T>[];
|
|
1881
|
-
toggleGroupRow: (groupKeys: any[]) => void;
|
|
1882
|
-
pivotTotalColumnPosition: InfiniteTableState<T>['pivotTotalColumnPosition'];
|
|
1883
|
-
groupColumn: InfiniteTableProps<T>['groupColumn'];
|
|
1884
|
-
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
1885
|
-
pivotColumns: InfiniteTableProps<T>['pivotColumns'];
|
|
1886
|
-
pivotColumn: InfiniteTableProps<T>['pivotColumn'];
|
|
1887
|
-
}): Map<string, InfiniteTableColumn<T>> | undefined;
|
|
1888
|
-
}
|
|
1889
|
-
declare module "components/InfiniteTable/hooks/useComputed" {
|
|
1890
|
-
import { InfiniteTableComputedValues } from "components/InfiniteTable/types/index";
|
|
1891
|
-
export function useComputed<T>(): InfiniteTableComputedValues<T>;
|
|
1892
|
-
}
|
|
1893
|
-
declare module "components/InfiniteTable/hooks/useInternalProps" {
|
|
1894
|
-
export const useInternalProps: () => {
|
|
1895
|
-
rootClassName: string;
|
|
1896
|
-
};
|
|
1897
|
-
export const getInternalProps: () => {
|
|
1898
|
-
rootClassName: string;
|
|
1899
|
-
};
|
|
1900
|
-
}
|
|
1901
|
-
declare module "components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody" {
|
|
1902
|
-
import * as React from 'react';
|
|
1903
|
-
export const InfiniteTableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1904
|
-
}
|
|
1905
|
-
declare module "components/InfiniteTable/components/InfiniteTableBody/index" {
|
|
1906
|
-
export * from "components/InfiniteTable/components/InfiniteTableBody/InfiniteTableBody";
|
|
1907
|
-
}
|
|
1908
|
-
declare module "components/InfiniteTable/components/ScrollbarPlaceholder" {
|
|
1909
|
-
import * as React from 'react';
|
|
1910
|
-
function HorizontalScrollbarPlaceholderFn(props: {
|
|
1911
|
-
style: React.CSSProperties;
|
|
1912
|
-
}): JSX.Element | null;
|
|
1913
|
-
export const HorizontalScrollbarPlaceholder: React.MemoExoticComponent<typeof HorizontalScrollbarPlaceholderFn>;
|
|
1914
|
-
function VerticalScrollbarPlaceholderFn(props: {
|
|
1915
|
-
style: React.CSSProperties;
|
|
1916
|
-
}): JSX.Element | null;
|
|
1917
|
-
export const VerticalScrollbarPlaceholder: React.MemoExoticComponent<typeof VerticalScrollbarPlaceholderFn>;
|
|
1918
|
-
}
|
|
1919
|
-
declare module "components/InfiniteTable/InfiniteCls.css" {
|
|
1920
|
-
export const InfiniteCls: string;
|
|
1921
|
-
export const InfiniteClsScrolling: string;
|
|
1922
|
-
export const InfiniteClsRecipe: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
|
1923
|
-
focused: {
|
|
1924
|
-
true: {};
|
|
1925
|
-
false: {};
|
|
1926
|
-
};
|
|
1927
|
-
focusedWithin: {
|
|
1928
|
-
true: {};
|
|
1929
|
-
false: {};
|
|
1930
|
-
};
|
|
1931
|
-
hasPinnedStart: {
|
|
1932
|
-
true: {};
|
|
1933
|
-
false: {};
|
|
1934
|
-
};
|
|
1935
|
-
hasPinnedEnd: {
|
|
1936
|
-
true: {};
|
|
1937
|
-
false: {};
|
|
1938
|
-
};
|
|
1939
|
-
hasPinnedStartOverflow: {
|
|
1940
|
-
true: {};
|
|
1941
|
-
false: {};
|
|
1942
|
-
};
|
|
1943
|
-
hasPinnedEndOverflow: {
|
|
1944
|
-
true: {};
|
|
1945
|
-
false: {};
|
|
1946
|
-
};
|
|
1947
|
-
}>;
|
|
1948
|
-
export const PinnedRowsClsVariants: Record<"overflow" | "pinnedStart" | "pinnedEnd", string>;
|
|
1949
|
-
export const PinnedRowsContainerClsVariants: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
|
1950
|
-
pinned: {
|
|
1951
|
-
start: {
|
|
1952
|
-
borderRight: import("@vanilla-extract/private").CSSVarFunction[];
|
|
1953
|
-
};
|
|
1954
|
-
end: {
|
|
1955
|
-
borderLeft: import("@vanilla-extract/private").CSSVarFunction[];
|
|
1956
|
-
};
|
|
1957
|
-
false: {};
|
|
1958
|
-
};
|
|
1959
|
-
}>;
|
|
1960
|
-
export const InfiniteClsShiftingColumns: string;
|
|
1961
|
-
export const FooterCls: string;
|
|
1962
|
-
}
|
|
1963
|
-
declare module "components/InfiniteTable/components/cell.css" {
|
|
1964
|
-
export const columnAlignCellStyle: Record<"center" | "end" | "start", string>;
|
|
1965
|
-
export const CellBorderObject: {
|
|
1966
|
-
borderLeft: string;
|
|
1967
|
-
borderRight: string;
|
|
1968
|
-
};
|
|
1969
|
-
export const CellClsVariants: Record<"shifting" | "dragging", string>;
|
|
1970
|
-
export const CellCls: string;
|
|
1971
|
-
export const ColumnCellVariantsObject: {
|
|
1972
|
-
first: {
|
|
1973
|
-
borderTopLeftRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
1974
|
-
borderBottomLeftRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
1975
|
-
};
|
|
1976
|
-
last: {
|
|
1977
|
-
borderTopRightRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
1978
|
-
borderBottomRightRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
1979
|
-
};
|
|
1980
|
-
groupByField: {};
|
|
1981
|
-
firstInCategory: {};
|
|
1982
|
-
lastInCategory: {};
|
|
1983
|
-
pinnedStart: {};
|
|
1984
|
-
pinnedEnd: {};
|
|
1985
|
-
unpinned: {};
|
|
1986
|
-
pinnedStartLastInCategory: {
|
|
1987
|
-
borderRight: import("@vanilla-extract/private").CSSVarFunction;
|
|
1988
|
-
vars: {};
|
|
1989
|
-
};
|
|
1990
|
-
pinnedEndFirstInCategory: {
|
|
1991
|
-
borderLeft: import("@vanilla-extract/private").CSSVarFunction;
|
|
1992
|
-
vars: {
|
|
1993
|
-
[x: string]: import("@vanilla-extract/private").CSSVarFunction;
|
|
1994
|
-
};
|
|
1995
|
-
};
|
|
1996
|
-
};
|
|
1997
|
-
export const ColumnCellRecipe: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
|
1998
|
-
dragging: {
|
|
1999
|
-
false: {};
|
|
2000
|
-
};
|
|
2001
|
-
first: {
|
|
2002
|
-
true: {
|
|
2003
|
-
borderTopLeftRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
2004
|
-
borderBottomLeftRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
2005
|
-
};
|
|
2006
|
-
false: {};
|
|
2007
|
-
};
|
|
2008
|
-
last: {
|
|
2009
|
-
true: {
|
|
2010
|
-
borderTopRightRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
2011
|
-
borderBottomRightRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
2012
|
-
};
|
|
2013
|
-
false: {};
|
|
2014
|
-
};
|
|
2015
|
-
groupByField: {
|
|
2016
|
-
true: {};
|
|
2017
|
-
false: {};
|
|
2018
|
-
};
|
|
2019
|
-
firstInCategory: {
|
|
2020
|
-
true: {};
|
|
2021
|
-
false: {};
|
|
2022
|
-
};
|
|
2023
|
-
lastInCategory: {
|
|
2024
|
-
true: {};
|
|
2025
|
-
false: {};
|
|
2026
|
-
};
|
|
2027
|
-
pinned: {
|
|
2028
|
-
start: {};
|
|
2029
|
-
end: {};
|
|
2030
|
-
false: {};
|
|
2031
|
-
};
|
|
2032
|
-
}>;
|
|
2033
|
-
}
|
|
2034
|
-
declare module "components/InfiniteTable/components/InfiniteTableHeader/header.css" {
|
|
2035
|
-
import { RecipeVariants } from '@vanilla-extract/recipes';
|
|
2036
|
-
import { CellCls, CellClsVariants } from "components/InfiniteTable/components/cell.css";
|
|
2037
|
-
export { CellCls, CellClsVariants };
|
|
2038
|
-
export const HeaderCellProxy: string;
|
|
2039
|
-
export const HeaderSortIconCls: string;
|
|
2040
|
-
export const HeaderClsRecipe: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
|
2041
|
-
pinned: {
|
|
2042
|
-
start: {};
|
|
2043
|
-
end: {};
|
|
2044
|
-
false: {};
|
|
2045
|
-
};
|
|
2046
|
-
virtualized: {
|
|
2047
|
-
true: {};
|
|
2048
|
-
false: {
|
|
2049
|
-
position: "relative";
|
|
2050
|
-
overflow: "hidden";
|
|
2051
|
-
};
|
|
2052
|
-
};
|
|
2053
|
-
overflow: {
|
|
2054
|
-
true: {
|
|
2055
|
-
zIndex: number;
|
|
2056
|
-
};
|
|
2057
|
-
false: {};
|
|
2058
|
-
};
|
|
2059
|
-
}>;
|
|
2060
|
-
export const HeaderCellRecipe: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
|
2061
|
-
dragging: {
|
|
2062
|
-
true: {
|
|
2063
|
-
zIndex: number;
|
|
2064
|
-
opacity: number;
|
|
2065
|
-
background: import("@vanilla-extract/private").CSSVarFunction;
|
|
2066
|
-
};
|
|
2067
|
-
false: {};
|
|
2068
|
-
};
|
|
2069
|
-
first: {
|
|
2070
|
-
true: {
|
|
2071
|
-
borderTopLeftRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
2072
|
-
borderBottomLeftRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
2073
|
-
};
|
|
2074
|
-
false: {};
|
|
2075
|
-
};
|
|
2076
|
-
last: {
|
|
2077
|
-
true: {
|
|
2078
|
-
borderTopRightRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
2079
|
-
borderBottomRightRadius: import("@vanilla-extract/private").CSSVarFunction;
|
|
2080
|
-
};
|
|
2081
|
-
false: {};
|
|
2082
|
-
};
|
|
2083
|
-
groupByField: {
|
|
2084
|
-
true: {};
|
|
2085
|
-
false: {};
|
|
2086
|
-
};
|
|
2087
|
-
firstInCategory: {
|
|
2088
|
-
true: {};
|
|
2089
|
-
false: {};
|
|
2090
|
-
};
|
|
2091
|
-
lastInCategory: {
|
|
2092
|
-
true: {};
|
|
2093
|
-
false: {};
|
|
2094
|
-
};
|
|
2095
|
-
pinned: {
|
|
2096
|
-
start: {
|
|
2097
|
-
zIndex: number;
|
|
2098
|
-
};
|
|
2099
|
-
end: {};
|
|
2100
|
-
false: {};
|
|
2101
|
-
};
|
|
2102
|
-
}>;
|
|
2103
|
-
export type HeaderCellVariantsType = RecipeVariants<typeof HeaderCellRecipe>;
|
|
2104
|
-
export const HeaderWrapperCls: string;
|
|
2105
|
-
export const HeaderGroupCls: string;
|
|
2106
|
-
export const HeaderGroup_Header: string;
|
|
2107
|
-
export const HeaderGroup_Children: string;
|
|
2108
|
-
}
|
|
2109
|
-
declare module "components/InfiniteTable/hooks/useInfiniteTableState" {
|
|
2110
|
-
import { InfiniteTableState } from "components/InfiniteTable/types/index";
|
|
2111
|
-
export const useInfiniteTableState: <T>() => InfiniteTableState<T>;
|
|
2112
|
-
}
|
|
2113
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCellTypes" {
|
|
2114
|
-
import { CSSProperties } from 'react';
|
|
2115
|
-
import { InfiniteTableComputedColumn } from "components/InfiniteTable/index";
|
|
2116
|
-
import { Renderable } from "components/types/Renderable";
|
|
2117
|
-
import { OnResizeFn } from "components/types/Size";
|
|
2118
|
-
import { InfiniteTableRowInfo, InfiniteTablePropGroupRenderStrategy } from "components/InfiniteTable/types/index";
|
|
2119
|
-
import { InfiniteTableToggleGroupRowFn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
2120
|
-
export interface InfiniteTableCellProps<T> {
|
|
2121
|
-
column: InfiniteTableComputedColumn<T>;
|
|
2122
|
-
cssEllipsis?: boolean;
|
|
2123
|
-
children: Renderable;
|
|
2124
|
-
virtualized?: boolean;
|
|
2125
|
-
skipColumnShifting?: boolean;
|
|
2126
|
-
beforeChildren?: Renderable;
|
|
2127
|
-
afterChildren?: Renderable;
|
|
2128
|
-
offset?: number;
|
|
2129
|
-
offsetProperty?: 'left' | 'right';
|
|
2130
|
-
cssPosition?: CSSProperties['position'];
|
|
2131
|
-
domRef?: React.RefCallback<HTMLElement>;
|
|
2132
|
-
}
|
|
2133
|
-
export interface InfiniteTableColumnCellProps<T> extends Omit<InfiniteTableCellProps<T>, 'children'> {
|
|
2134
|
-
virtualized: boolean;
|
|
2135
|
-
hidden: boolean;
|
|
2136
|
-
rowInfo: InfiniteTableRowInfo<T>;
|
|
2137
|
-
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
2138
|
-
getData: () => InfiniteTableRowInfo<T>[];
|
|
2139
|
-
toggleGroupRow: InfiniteTableToggleGroupRowFn;
|
|
2140
|
-
rowIndex: number;
|
|
2141
|
-
rowHeight: number;
|
|
2142
|
-
}
|
|
2143
|
-
export interface InfiniteTableHeaderCellProps<T> extends Omit<InfiniteTableCellProps<T>, 'children'> {
|
|
2144
|
-
columns: Map<string, InfiniteTableComputedColumn<T>>;
|
|
2145
|
-
headerHeight: number;
|
|
2146
|
-
onResize?: OnResizeFn;
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCell" {
|
|
2150
|
-
import * as React from 'react';
|
|
2151
|
-
import { InfiniteTableCellProps } from "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCellTypes";
|
|
2152
|
-
export const InfiniteTableCellClassName: string;
|
|
2153
|
-
function InfiniteTableCellFn<T>(props: InfiniteTableCellProps<T> & React.HTMLAttributes<HTMLElement>): JSX.Element;
|
|
2154
|
-
export const InfiniteTableCell: typeof InfiniteTableCellFn;
|
|
2155
|
-
}
|
|
2156
|
-
declare module "components/InfiniteTable/utils/moveXatY" {
|
|
2157
|
-
export const moveXatY: <T>(arr: T[], dragIndex: number, dropIndex: number) => T[];
|
|
2158
|
-
}
|
|
2159
|
-
declare module "components/InfiniteTable/hooks/useColumnPointerEvents" {
|
|
2160
|
-
import * as React from 'react';
|
|
2161
|
-
import { MutableRefObject } from 'react';
|
|
2162
|
-
import type { InfiniteTableComputedColumn } from "components/InfiniteTable/types/index";
|
|
2163
|
-
type TopLeft = {
|
|
2164
|
-
left: number;
|
|
2165
|
-
top: number;
|
|
2166
|
-
};
|
|
2167
|
-
type TopLeftOrNull = TopLeft | null;
|
|
2168
|
-
export const useColumnPointerEvents: <T>({ columnId, domRef, columns, computedRemainingSpace, }: {
|
|
2169
|
-
computedRemainingSpace: number;
|
|
2170
|
-
columns: Map<string, InfiniteTableComputedColumn<T>>;
|
|
2171
|
-
columnId: string;
|
|
2172
|
-
domRef: React.MutableRefObject<HTMLElement | null>;
|
|
2173
|
-
}) => {
|
|
2174
|
-
onPointerUp: (e: any) => void;
|
|
2175
|
-
onPointerDown: (e: any) => void;
|
|
2176
|
-
dragging: boolean;
|
|
2177
|
-
proxyOffset: TopLeftOrNull;
|
|
2178
|
-
draggingDiff: TopLeft;
|
|
2179
|
-
};
|
|
2180
|
-
}
|
|
2181
|
-
declare module "components/InfiniteTable/hooks/useCellClassName" {
|
|
2182
|
-
import { HeaderCellVariantsType } from "components/InfiniteTable/components/InfiniteTableHeader/header.css";
|
|
2183
|
-
import { InfiniteTableComputedColumn } from "components/InfiniteTable/types/index";
|
|
2184
|
-
export function useCellClassName<T>(column: InfiniteTableComputedColumn<T>, baseClasses: string[], variants: (x: HeaderCellVariantsType) => string, extraFlags: {
|
|
2185
|
-
dragging: boolean;
|
|
2186
|
-
}): string;
|
|
2187
|
-
}
|
|
2188
|
-
declare module "components/InfiniteTable/components/icons/SortIcon" {
|
|
2189
|
-
import * as React from 'react';
|
|
2190
|
-
type SortIconProps = {
|
|
2191
|
-
direction: 1 | -1 | 0;
|
|
2192
|
-
size?: number;
|
|
2193
|
-
lineWidth?: number;
|
|
2194
|
-
lineStyle?: React.CSSProperties;
|
|
2195
|
-
style?: React.CSSProperties;
|
|
2196
|
-
className?: string;
|
|
2197
|
-
index?: number;
|
|
2198
|
-
};
|
|
2199
|
-
export function SortIcon(props: SortIconProps): JSX.Element | null;
|
|
2200
|
-
}
|
|
2201
|
-
declare module "components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderCell" {
|
|
2202
|
-
import { InfiniteTableHeaderCellProps } from "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCellTypes";
|
|
2203
|
-
export function InfiniteTableHeaderCell<T>(props: InfiniteTableHeaderCellProps<T>): JSX.Element;
|
|
2204
|
-
}
|
|
2205
|
-
declare module "components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderTypes" {
|
|
2206
|
-
import { InfiniteTableComputedColumn } from "components/InfiniteTable/index";
|
|
2207
|
-
import { Renderable } from "components/types/Renderable";
|
|
2208
|
-
import { VirtualBrain } from "components/VirtualBrain/index";
|
|
2209
|
-
import { ScrollListener } from "components/VirtualBrain/ScrollListener";
|
|
2210
|
-
import { InfiniteTableColumnPinnedValues, InfiniteTableComputedColumnGroup } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
2211
|
-
export type InfiniteTableHeaderProps<T> = {
|
|
2212
|
-
repaintId?: string | number;
|
|
2213
|
-
brain: VirtualBrain;
|
|
2214
|
-
columns: InfiniteTableComputedColumn<T>[];
|
|
2215
|
-
totalWidth: number;
|
|
2216
|
-
availableWidth: number;
|
|
2217
|
-
pinning: InfiniteTableColumnPinnedValues;
|
|
2218
|
-
};
|
|
2219
|
-
export type InfiniteTableHeaderGroupProps<T> = {
|
|
2220
|
-
columns: InfiniteTableComputedColumn<T>[];
|
|
2221
|
-
columnGroup: InfiniteTableComputedColumnGroup;
|
|
2222
|
-
children: Renderable;
|
|
2223
|
-
height: number;
|
|
2224
|
-
headerHeight: number;
|
|
2225
|
-
};
|
|
2226
|
-
export type InfiniteTableHeaderUnvirtualizedProps<T> = Omit<InfiniteTableHeaderProps<T>, 'repaintId' | 'brain'> & {
|
|
2227
|
-
brain?: VirtualBrain;
|
|
2228
|
-
scrollListener?: ScrollListener;
|
|
2229
|
-
scrollable?: boolean;
|
|
2230
|
-
};
|
|
2231
|
-
}
|
|
2232
|
-
declare module "components/RawList/AvoidReactDiff" {
|
|
2233
|
-
import * as React from 'react';
|
|
2234
|
-
import { Renderable } from "components/types/Renderable";
|
|
2235
|
-
import { SubscriptionCallback } from "components/types/SubscriptionCallback";
|
|
2236
|
-
export type AvoidReactDiffProps = {
|
|
2237
|
-
name?: string;
|
|
2238
|
-
updater: SubscriptionCallback<Renderable>;
|
|
2239
|
-
};
|
|
2240
|
-
function AvoidReactDiffFn(props: AvoidReactDiffProps): JSX.Element;
|
|
2241
|
-
export const AvoidReactDiff: React.MemoExoticComponent<typeof AvoidReactDiffFn>;
|
|
2242
|
-
}
|
|
2243
|
-
declare module "components/RawList/types" {
|
|
2244
|
-
import type { RefCallback } from 'react';
|
|
2245
|
-
import type { Renderable } from "components/types/Renderable";
|
|
2246
|
-
import type { VirtualBrain } from "components/VirtualBrain/index";
|
|
2247
|
-
export type RenderItemParam = {
|
|
2248
|
-
domRef: RefCallback<HTMLElement>;
|
|
2249
|
-
itemIndex: number;
|
|
2250
|
-
itemSize: number;
|
|
2251
|
-
itemSizeWithSpan: number;
|
|
2252
|
-
itemSpan: number;
|
|
2253
|
-
spanParent: number;
|
|
2254
|
-
covered: boolean;
|
|
25
|
+
type?: string;
|
|
26
|
+
fn?: (a: any, b: any) => number;
|
|
27
|
+
};
|
|
28
|
+
declare const multisort: {
|
|
29
|
+
<T>(sortInfo: MultisortInfo<T>[], array: T[], get?: ((item: any) => T) | undefined): T[];
|
|
30
|
+
knownTypes: {
|
|
31
|
+
[key: string]: (first: any, second: any) => number;
|
|
2255
32
|
};
|
|
2256
|
-
|
|
2257
|
-
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
declare type VoidFn$1 = () => void;
|
|
36
|
+
declare type Pair<KeyType, ValueType> = {
|
|
37
|
+
value?: ValueType;
|
|
38
|
+
map?: Map<KeyType, Pair<KeyType, ValueType>>;
|
|
39
|
+
revision?: number;
|
|
40
|
+
};
|
|
41
|
+
declare type DeepMapVisitFn<KeyType, ValueType> = (pair: Pair<KeyType, ValueType>, keys: KeyType[], next: VoidFn$1) => void;
|
|
42
|
+
declare class DeepMap<KeyType, ValueType> {
|
|
43
|
+
private map;
|
|
44
|
+
private length;
|
|
45
|
+
private revision;
|
|
46
|
+
static clone<KeyType, ValueType>(map: DeepMap<KeyType, ValueType>): DeepMap<KeyType, ValueType>;
|
|
47
|
+
constructor(initial?: [KeyType[], ValueType][]);
|
|
48
|
+
set(keys: KeyType[] & {
|
|
49
|
+
length: Omit<number, 0>;
|
|
50
|
+
}, value: ValueType): this;
|
|
51
|
+
get(keys: KeyType[]): ValueType | undefined;
|
|
52
|
+
get size(): number;
|
|
53
|
+
clear(): void;
|
|
54
|
+
delete(keys: KeyType[]): boolean;
|
|
55
|
+
has(keys: KeyType[]): boolean;
|
|
56
|
+
private visitKey;
|
|
57
|
+
visit: (fn: DeepMapVisitFn<KeyType, ValueType>) => void;
|
|
58
|
+
visitDepthFirst: (fn: (value: ValueType, keys: KeyType[], indexInGroup: number, next?: VoidFn$1 | undefined) => void) => void;
|
|
59
|
+
private visitWithNext;
|
|
60
|
+
private getArray;
|
|
61
|
+
values(): Generator<ValueType, void, unknown>;
|
|
62
|
+
keys(): Generator<KeyType[], void, unknown>;
|
|
63
|
+
entries(): Generator<[KeyType[], ValueType], void, unknown>;
|
|
64
|
+
topDownEntries(): [KeyType[], ValueType][];
|
|
65
|
+
topDownKeys(): KeyType[][];
|
|
66
|
+
topDownValues(): ValueType[];
|
|
67
|
+
private sortedIterator;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare type ComponentStateContext<T_STATE, T_ACTIONS> = {
|
|
71
|
+
getComponentState: () => T_STATE;
|
|
72
|
+
componentState: T_STATE;
|
|
73
|
+
componentActions: T_ACTIONS;
|
|
74
|
+
};
|
|
75
|
+
declare type ComponentStateGeneratedActions<T_STATE> = {
|
|
76
|
+
[k in keyof T_STATE]: T_STATE[k] | React$1.SetStateAction<T_STATE[k]>;
|
|
77
|
+
};
|
|
78
|
+
declare type ComponentInterceptedActions<T_STATE> = {
|
|
79
|
+
[k in keyof T_STATE]?: (value: T_STATE[k], { actions, state, }: {
|
|
80
|
+
actions: ComponentStateGeneratedActions<T_STATE>;
|
|
81
|
+
state: T_STATE;
|
|
82
|
+
}) => void | boolean;
|
|
83
|
+
};
|
|
84
|
+
declare type ComponentStateActions<T_STATE> = ComponentStateGeneratedActions<T_STATE>;
|
|
85
|
+
declare type ForwardPropsToStateFnResult<TYPE_PROPS, TYPE_RESULT> = Partial<{
|
|
86
|
+
[propName in keyof TYPE_PROPS & keyof TYPE_RESULT]: 1 | ((value: TYPE_PROPS[propName]) => TYPE_RESULT[propName]);
|
|
87
|
+
}>;
|
|
88
|
+
declare type ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE = {}, COMPONENT_DERIVED_STATE = {}, T_ACTIONS = {}, T_PARENT_STATE = {}> = {
|
|
89
|
+
debugName?: string;
|
|
90
|
+
initSetupState?: () => COMPONENT_SETUP_STATE;
|
|
91
|
+
forwardProps?: (setupState: COMPONENT_SETUP_STATE) => ForwardPropsToStateFnResult<T_PROPS, COMPONENT_MAPPED_STATE>;
|
|
92
|
+
allowedControlledPropOverrides?: Record<keyof T_PROPS, true>;
|
|
93
|
+
interceptActions?: ComponentInterceptedActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>;
|
|
94
|
+
onPropChange?: (params: {
|
|
95
|
+
name: keyof T_PROPS;
|
|
96
|
+
oldValue: any;
|
|
97
|
+
newValue: any;
|
|
98
|
+
}, props: T_PROPS, actions: ComponentStateActions<COMPONENT_MAPPED_STATE & COMPONENT_DERIVED_STATE & COMPONENT_SETUP_STATE>) => void;
|
|
99
|
+
mapPropsToState?: (params: {
|
|
100
|
+
props: T_PROPS;
|
|
101
|
+
state: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & Partial<COMPONENT_DERIVED_STATE>;
|
|
102
|
+
oldState: null | (COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & Partial<COMPONENT_DERIVED_STATE>);
|
|
103
|
+
parentState: T_PARENT_STATE | null;
|
|
104
|
+
}) => COMPONENT_DERIVED_STATE;
|
|
105
|
+
concludeReducer?: (params: {
|
|
106
|
+
previousState: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
|
|
107
|
+
state: COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
|
|
108
|
+
updatedProps: Partial<T_PROPS> | null;
|
|
109
|
+
parentState: T_PARENT_STATE | null;
|
|
110
|
+
}) => COMPONENT_MAPPED_STATE & COMPONENT_SETUP_STATE & COMPONENT_DERIVED_STATE;
|
|
111
|
+
getReducerActions?: (dispatch: React$1.Dispatch<any>) => T_ACTIONS;
|
|
112
|
+
getParentState?: () => T_PARENT_STATE;
|
|
113
|
+
onControlledPropertyChange?: (name: string, newValue: any, oldValue: any) => void | ((value: any, oldValue: any) => any);
|
|
114
|
+
};
|
|
115
|
+
declare function getComponentStateRoot<T_PROPS, COMPONENT_MAPPED_STATE extends object, COMPONENT_SETUP_STATE extends object = {}, COMPONENT_DERIVED_STATE extends object = {}, T_ACTIONS = {}, T_PARENT_STATE = {}>(config: ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE, COMPONENT_DERIVED_STATE, T_ACTIONS, T_PARENT_STATE>): React$1.NamedExoticComponent<T_PROPS & {
|
|
116
|
+
children: React$1.ReactNode;
|
|
117
|
+
}>;
|
|
118
|
+
declare function useComponentState<COMPONENT_STATE>(): ComponentStateContext<COMPONENT_STATE, ComponentStateGeneratedActions<COMPONENT_STATE>>;
|
|
119
|
+
|
|
120
|
+
declare type NonUndefined<T> = T extends undefined ? never : T;
|
|
121
|
+
|
|
122
|
+
declare type VoidFn = () => void;
|
|
123
|
+
|
|
124
|
+
declare type SubscriptionCallbackOnChangeFn<T> = (node: T | null) => void;
|
|
125
|
+
interface SubscriptionCallback<T> {
|
|
126
|
+
(node: T): void;
|
|
127
|
+
get: () => T | null;
|
|
128
|
+
destroy: VoidFn;
|
|
129
|
+
onChange: (fn: SubscriptionCallbackOnChangeFn<T>) => VoidFn;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface LogFn {
|
|
133
|
+
(...args: any[]): LogFn;
|
|
134
|
+
extend: (channelName: string) => LogFn;
|
|
135
|
+
}
|
|
136
|
+
declare class Logger {
|
|
137
|
+
debug: LogFn;
|
|
138
|
+
error: LogFn;
|
|
139
|
+
constructor(channelName: string);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface Size {
|
|
143
|
+
width: number;
|
|
144
|
+
height: number;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
declare type MainAxisOptions = 'vertical' | 'horizontal';
|
|
148
|
+
declare type VirtualBrainOptions = {
|
|
149
|
+
mainAxis: MainAxisOptions;
|
|
150
|
+
itemSize: MainAxisSize;
|
|
151
|
+
itemSpan?: ({ itemIndex }: {
|
|
2258
152
|
itemIndex: number;
|
|
2259
153
|
}) => number;
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
reset(): void;
|
|
2324
|
-
}
|
|
2325
|
-
}
|
|
2326
|
-
declare module "components/RawList/useVirtualRenderer" {
|
|
2327
|
-
import { Renderable } from "components/types/Renderable";
|
|
2328
|
-
import { SubscriptionCallback } from "components/types/SubscriptionCallback";
|
|
2329
|
-
import { VirtualBrain } from "components/VirtualBrain/index";
|
|
2330
|
-
import { ReactVirtualRenderer } from "components/RawList/ReactVirtualRenderer";
|
|
2331
|
-
export function useVirtualRenderer({ brain, }: {
|
|
2332
|
-
brain: VirtualBrain;
|
|
2333
|
-
debugChannel?: string;
|
|
2334
|
-
}): {
|
|
2335
|
-
onRenderUpdater: SubscriptionCallback<Renderable>;
|
|
2336
|
-
renderer: ReactVirtualRenderer;
|
|
2337
|
-
};
|
|
2338
|
-
}
|
|
2339
|
-
declare module "components/RawList/index" {
|
|
2340
|
-
import * as React from 'react';
|
|
2341
|
-
import { RawListProps } from "components/RawList/types";
|
|
2342
|
-
export const RawList: React.FC<RawListProps>;
|
|
2343
|
-
}
|
|
2344
|
-
declare module "components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeader" {
|
|
2345
|
-
import * as React from 'react';
|
|
2346
|
-
import type { InfiniteTableHeaderProps } from "components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderTypes";
|
|
2347
|
-
export const TableHeaderClassName: string;
|
|
2348
|
-
function InfiniteTableHeaderFn<T>(props: InfiniteTableHeaderProps<T> & React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
2349
|
-
export const InfiniteTableHeader: typeof InfiniteTableHeaderFn;
|
|
2350
|
-
}
|
|
2351
|
-
declare module "components/InfiniteTable/components/InfiniteTableHeader/buildColumnAndGroupTree" {
|
|
2352
|
-
import { InfiniteTableColumnGroup, InfiniteTableComputedColumn, InfiniteTableState } from "components/InfiniteTable/types/index";
|
|
2353
|
-
export type ColGroupTreeBaseItem = {
|
|
2354
|
-
id: string;
|
|
2355
|
-
groupOffset: number;
|
|
2356
|
-
depth: number;
|
|
2357
|
-
computedWidth: number;
|
|
2358
|
-
};
|
|
2359
|
-
export type ColGroupTreeColumnItem<T> = ColGroupTreeBaseItem & {
|
|
2360
|
-
type: 'column';
|
|
2361
|
-
ref: InfiniteTableComputedColumn<T>;
|
|
2362
|
-
};
|
|
2363
|
-
export type ColGroupTreeGroupItem<T> = ColGroupTreeBaseItem & {
|
|
2364
|
-
type: 'group';
|
|
2365
|
-
ref: InfiniteTableColumnGroup;
|
|
2366
|
-
uniqueGroupId: string[];
|
|
2367
|
-
children: ColGroupTreeItem<T>[];
|
|
2368
|
-
columnItems: ColGroupTreeColumnItem<T>[];
|
|
2369
|
-
};
|
|
2370
|
-
export type ColGroupTreeItem<T> = ColGroupTreeColumnItem<T> | ColGroupTreeGroupItem<T>;
|
|
2371
|
-
export function buildColumnAndGroupTree<T>(columns: InfiniteTableComputedColumn<T>[], columnGroups: InfiniteTableState<T>['columnGroups'], columnGroupsDepthsMap: InfiniteTableState<T>['columnGroupsDepthsMap']): ColGroupTreeItem<T>[];
|
|
2372
|
-
}
|
|
2373
|
-
declare module "components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderGroup" {
|
|
2374
|
-
import { InfiniteTableHeaderGroupProps } from "components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderTypes";
|
|
2375
|
-
export const TableHeaderGroupClassName: string;
|
|
2376
|
-
export function InfiniteTableHeaderGroup<T>(props: InfiniteTableHeaderGroupProps<T>): JSX.Element;
|
|
2377
|
-
}
|
|
2378
|
-
declare module "components/InfiniteTable/components/InfiniteTableHeader/renderColumnHeaderGroups" {
|
|
2379
|
-
import { InfiniteTableComputedColumn } from "components/InfiniteTable/types/index";
|
|
2380
|
-
import { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
2381
|
-
type BuildColumnHeaderGroupsConfig<T> = {
|
|
2382
|
-
columnGroups: InfiniteTableState<T>['columnGroups'];
|
|
2383
|
-
columnGroupsDepthsMap: InfiniteTableState<T>['columnGroupsDepthsMap'];
|
|
2384
|
-
columnGroupsMaxDepth: number;
|
|
2385
|
-
columns: InfiniteTableComputedColumn<T>[];
|
|
2386
|
-
headerHeight: number;
|
|
2387
|
-
allVisibleColumns: Map<string, InfiniteTableComputedColumn<T>>;
|
|
2388
|
-
};
|
|
2389
|
-
export function renderColumnHeaderGroups<T>(config: BuildColumnHeaderGroupsConfig<T>): JSX.Element[];
|
|
2390
|
-
}
|
|
2391
|
-
declare module "components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderUnvirtualized" {
|
|
2392
|
-
import * as React from 'react';
|
|
2393
|
-
import { InfiniteTableHeaderUnvirtualizedProps } from "components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderTypes";
|
|
2394
|
-
export const TableHeaderClassName: string;
|
|
2395
|
-
function InfiniteTableHeaderUnvirtualizedFn<T>(props: InfiniteTableHeaderUnvirtualizedProps<T> & React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
2396
|
-
export const InfiniteTableHeaderUnvirtualized: typeof InfiniteTableHeaderUnvirtualizedFn;
|
|
2397
|
-
}
|
|
2398
|
-
declare module "components/InfiniteTable/components/InfiniteTableHeader/InfiniteTableHeaderWrapper" {
|
|
2399
|
-
import type { Scrollbars } from "components/InfiniteTable/index";
|
|
2400
|
-
import { VirtualBrain } from "components/VirtualBrain/index";
|
|
2401
|
-
export type TableHeaderWrapperProps = {
|
|
2402
|
-
brain: VirtualBrain;
|
|
2403
|
-
scrollbars: Scrollbars;
|
|
2404
|
-
repaintId?: number | string;
|
|
2405
|
-
};
|
|
2406
|
-
export function TableHeaderWrapper<T>(props: TableHeaderWrapperProps): JSX.Element;
|
|
2407
|
-
}
|
|
2408
|
-
declare module "components/hooks/useOnScroll" {
|
|
2409
|
-
import { RefObject } from 'react';
|
|
2410
|
-
type OnScroll = (scrollPosition: {
|
|
2411
|
-
scrollTop: number;
|
|
2412
|
-
scrollLeft: number;
|
|
2413
|
-
}) => void;
|
|
2414
|
-
export const useOnScroll: (domRef: RefObject<HTMLElement>, onScroll: OnScroll | undefined) => void;
|
|
2415
|
-
}
|
|
2416
|
-
declare module "components/VirtualScrollContainer/VirtualScrollContainer.css" {
|
|
2417
|
-
export const VirtualScrollContainerCls: string;
|
|
2418
|
-
export const ScrollableCls: {
|
|
2419
|
-
true: string;
|
|
2420
|
-
false: string;
|
|
2421
|
-
visible: string;
|
|
2422
|
-
auto: string;
|
|
2423
|
-
hidden: string;
|
|
2424
|
-
};
|
|
2425
|
-
export const ScrollableHorizontalCls: {
|
|
2426
|
-
true: string;
|
|
2427
|
-
false: string;
|
|
2428
|
-
visible: string;
|
|
2429
|
-
auto: string;
|
|
2430
|
-
hidden: string;
|
|
2431
|
-
};
|
|
2432
|
-
export const ScrollableVerticalCls: {
|
|
2433
|
-
true: string;
|
|
2434
|
-
false: string;
|
|
2435
|
-
visible: string;
|
|
2436
|
-
auto: string;
|
|
2437
|
-
hidden: string;
|
|
2438
|
-
};
|
|
2439
|
-
}
|
|
2440
|
-
declare module "components/VirtualScrollContainer/getScrollableClassName" {
|
|
2441
|
-
type ScrollType = 'hidden' | 'visible' | 'auto';
|
|
2442
|
-
export type Scrollable = boolean | ScrollType | {
|
|
2443
|
-
vertical: boolean | ScrollType;
|
|
2444
|
-
horizontal: boolean | ScrollType;
|
|
2445
|
-
};
|
|
2446
|
-
export const getScrollableClassName: (scrollable: Scrollable) => string;
|
|
2447
|
-
}
|
|
2448
|
-
declare module "components/VirtualScrollContainer/index" {
|
|
2449
|
-
import * as React from 'react';
|
|
2450
|
-
import { CSSProperties } from 'react';
|
|
2451
|
-
import { Scrollable } from "components/VirtualScrollContainer/getScrollableClassName";
|
|
2452
|
-
import type { Renderable } from "components/types/Renderable";
|
|
2453
|
-
export type { Scrollable };
|
|
2454
|
-
export interface VirtualScrollContainerProps {
|
|
2455
|
-
className?: string;
|
|
2456
|
-
style?: CSSProperties;
|
|
2457
|
-
children?: Renderable;
|
|
2458
|
-
scrollable?: Scrollable;
|
|
2459
|
-
onContainerScroll?: (scrollPos: {
|
|
2460
|
-
scrollTop: number;
|
|
2461
|
-
scrollLeft: number;
|
|
2462
|
-
}) => void;
|
|
2463
|
-
}
|
|
2464
|
-
export const VirtualScrollContainer: React.ForwardRefExoticComponent<VirtualScrollContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
2465
|
-
}
|
|
2466
|
-
declare module "components/VirtualList/SpacePlaceholder" {
|
|
2467
|
-
import * as React from 'react';
|
|
2468
|
-
interface SpacePlaceholderProps {
|
|
2469
|
-
width: number;
|
|
2470
|
-
height: number;
|
|
2471
|
-
count?: number;
|
|
2472
|
-
}
|
|
2473
|
-
function SpacePlaceholderFn(props: SpacePlaceholderProps): JSX.Element;
|
|
2474
|
-
export const SpacePlaceholder: React.MemoExoticComponent<typeof SpacePlaceholderFn>;
|
|
2475
|
-
}
|
|
2476
|
-
declare module "components/VirtualList/types" {
|
|
2477
|
-
import type { MutableRefObject, RefCallback } from 'react';
|
|
2478
|
-
import type { Renderable } from "components/types/Renderable";
|
|
2479
|
-
import type { Scrollable } from "components/VirtualScrollContainer/index";
|
|
2480
|
-
import type { VirtualBrain } from "components/VirtualBrain/index";
|
|
2481
|
-
import type { RenderItem } from "components/RawList/types";
|
|
2482
|
-
export type OnContainerScrollFn = (scrollInfo: {
|
|
2483
|
-
scrollLeft: number;
|
|
2484
|
-
scrollTop: number;
|
|
2485
|
-
}) => void;
|
|
2486
|
-
interface BaseVirtualListProps {
|
|
2487
|
-
brain: VirtualBrain;
|
|
2488
|
-
count: number;
|
|
2489
|
-
sizeRef?: MutableRefObject<HTMLElement | null>;
|
|
2490
|
-
scrollable?: Scrollable;
|
|
2491
|
-
outerChildren?: Renderable;
|
|
2492
|
-
onContainerScroll?: OnContainerScrollFn;
|
|
2493
|
-
children?: Renderable;
|
|
2494
|
-
repaintId?: number | string;
|
|
2495
|
-
}
|
|
2496
|
-
export interface VirtualListProps extends BaseVirtualListProps {
|
|
2497
|
-
mainAxis: 'vertical' | 'horizontal';
|
|
2498
|
-
renderItem: RenderItem;
|
|
2499
|
-
itemMainAxisSize: number | ((itemIndex: number) => number);
|
|
2500
|
-
mainAxisSize?: number;
|
|
2501
|
-
itemCrossAxisSize?: number;
|
|
2502
|
-
}
|
|
2503
|
-
export type RowHeight = number | ((rowIndex: number) => number);
|
|
2504
|
-
export interface VirtualRowListProps extends BaseVirtualListProps {
|
|
2505
|
-
renderRow: RenderRow;
|
|
2506
|
-
rowHeight: RowHeight;
|
|
2507
|
-
rowWidth?: number;
|
|
2508
|
-
}
|
|
2509
|
-
export type RenderRowParam = {
|
|
2510
|
-
domRef: RefCallback<HTMLElement>;
|
|
2511
|
-
rowIndex: number;
|
|
2512
|
-
rowHeight: number;
|
|
2513
|
-
};
|
|
2514
|
-
export type RenderColumnParam = {
|
|
2515
|
-
domRef: RefCallback<HTMLElement>;
|
|
2516
|
-
columnIndex: number;
|
|
2517
|
-
columnWidth: number;
|
|
2518
|
-
};
|
|
2519
|
-
export type RenderRow = (renderProps: RenderRowParam) => Renderable;
|
|
2520
|
-
export type RenderColumn = (renderProps: RenderColumnParam) => Renderable;
|
|
2521
|
-
}
|
|
2522
|
-
declare module "components/VirtualList/VirtualList.css" {
|
|
2523
|
-
export const VirtualListCls: string;
|
|
2524
|
-
export const VirtualListClsOrientation: Record<"horizontal" | "vertical", string>;
|
|
2525
|
-
export const scrollTransformTargetCls: string;
|
|
2526
|
-
}
|
|
2527
|
-
declare module "components/VirtualList/VirtualList" {
|
|
2528
|
-
import { HTMLProps } from 'react';
|
|
2529
|
-
import type { VirtualListProps } from "components/VirtualList/types";
|
|
2530
|
-
export const VirtualList: (props: VirtualListProps & HTMLProps<HTMLDivElement>) => JSX.Element;
|
|
2531
|
-
}
|
|
2532
|
-
declare module "components/VirtualList/VirtualRowList" {
|
|
2533
|
-
import { HTMLProps } from 'react';
|
|
2534
|
-
import { VirtualRowListProps } from "components/VirtualList/types";
|
|
2535
|
-
export const VirtualRowList: (props: VirtualRowListProps & HTMLProps<HTMLDivElement>) => JSX.Element;
|
|
2536
|
-
}
|
|
2537
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowTypes" {
|
|
2538
|
-
import type { VirtualBrain, VirtualBrainOptions } from "components/VirtualBrain/index";
|
|
2539
|
-
import type { ScrollPosition } from "components/types/ScrollPosition";
|
|
2540
|
-
import type { InfiniteTableComputedColumn, InfiniteTableRowInfo } from "components/InfiniteTable/types/index";
|
|
2541
|
-
import { InfiniteTableToggleGroupRowFn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
2542
|
-
export interface InfiniteTableRowProps<T> {
|
|
2543
|
-
rowHeight: number;
|
|
2544
|
-
rowWidth: number;
|
|
2545
|
-
rowIndex: number;
|
|
2546
|
-
brain: VirtualBrain;
|
|
2547
|
-
verticalBrain: VirtualBrain;
|
|
2548
|
-
domRef: React.RefCallback<HTMLElement>;
|
|
2549
|
-
rowInfo: InfiniteTableRowInfo<T>;
|
|
2550
|
-
getData: () => InfiniteTableRowInfo<T>[];
|
|
2551
|
-
toggleGroupRow: InfiniteTableToggleGroupRowFn;
|
|
2552
|
-
repaintId?: number | string;
|
|
2553
|
-
rowSpan?: VirtualBrainOptions['itemSpan'];
|
|
2554
|
-
virtualizeColumns: boolean;
|
|
2555
|
-
showZebraRows?: boolean;
|
|
2556
|
-
showHoverRows?: boolean;
|
|
2557
|
-
columns: InfiniteTableComputedColumn<T>[];
|
|
2558
|
-
domProps?: React.HTMLAttributes<HTMLDivElement>;
|
|
2559
|
-
}
|
|
2560
|
-
export type InfiniteTableRowApi = {
|
|
2561
|
-
setScrollPosition: (scrollPosition: ScrollPosition) => void;
|
|
2562
|
-
};
|
|
2563
|
-
}
|
|
2564
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableColumnCell" {
|
|
2565
|
-
import { InfiniteTableColumnCellProps } from "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableCellTypes";
|
|
2566
|
-
function InfiniteTableColumnCellFn<T>(props: InfiniteTableColumnCellProps<T>): JSX.Element | null;
|
|
2567
|
-
export const InfiniteTableColumnCell: typeof InfiniteTableColumnCellFn;
|
|
2568
|
-
}
|
|
2569
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowClassName" {
|
|
2570
|
-
export const InfiniteTableRowClassName: string;
|
|
2571
|
-
export const InfiniteTableRowClassName__hover: string;
|
|
2572
|
-
}
|
|
2573
|
-
declare module "utils/stripVar" {
|
|
2574
|
-
export function stripVar(cssVariableWithVarString: string): string;
|
|
2575
|
-
}
|
|
2576
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/useRowDOMProps" {
|
|
2577
|
-
import { MutableRefObject, RefCallback } from 'react';
|
|
2578
|
-
import type { InfiniteTableRowProps } from "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowTypes";
|
|
2579
|
-
import { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
2580
|
-
export type TableRowHTMLAttributes = React.HTMLAttributes<HTMLDivElement> & {
|
|
2581
|
-
'data-virtualize-columns': 'on' | 'off';
|
|
2582
|
-
'data-hover-index': number;
|
|
2583
|
-
'data-row-index': number;
|
|
2584
|
-
'data-row-id': string;
|
|
2585
|
-
ref: RefCallback<HTMLElement | null>;
|
|
2586
|
-
} & any;
|
|
2587
|
-
export function useRowDOMProps<T>(props: InfiniteTableRowProps<T>, rowProps: InfiniteTableState<T>['rowProps'], rowStyle: InfiniteTableState<T>['rowStyle'], rowClassName: InfiniteTableState<T>['rowClassName'], groupRenderStrategy: InfiniteTableState<T>['groupRenderStrategy'], tableDOMRef: MutableRefObject<HTMLDivElement | null>): {
|
|
2588
|
-
domProps: TableRowHTMLAttributes;
|
|
2589
|
-
domRef: MutableRefObject<HTMLElement | null>;
|
|
2590
|
-
};
|
|
2591
|
-
}
|
|
2592
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRow" {
|
|
2593
|
-
import * as React from 'react';
|
|
2594
|
-
import { InfiniteTableRowClassName } from "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowClassName";
|
|
2595
|
-
import type { InfiniteTableRowProps } from "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowTypes";
|
|
2596
|
-
function InfiniteTableRowFn<T>(props: InfiniteTableRowProps<T> & React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
2597
|
-
export const InfiniteTableRow: typeof InfiniteTableRowFn;
|
|
2598
|
-
export { InfiniteTableRowClassName };
|
|
2599
|
-
}
|
|
2600
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/index" {
|
|
2601
|
-
export * from "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRow";
|
|
2602
|
-
}
|
|
2603
|
-
declare module "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowUnvirtualized" {
|
|
2604
|
-
import type { InfiniteTableRowProps } from "components/InfiniteTable/components/InfiniteTableRow/InfiniteTableRowTypes";
|
|
2605
|
-
import { VirtualBrain } from "components/VirtualBrain/index";
|
|
2606
|
-
function TableRowUnvirtualizedFn<T>(props: InfiniteTableRowProps<T> & {
|
|
2607
|
-
brain: VirtualBrain | null | undefined;
|
|
2608
|
-
verticalBrain: VirtualBrain;
|
|
2609
|
-
}): JSX.Element;
|
|
2610
|
-
export const TableRowUnvirtualized: typeof TableRowUnvirtualizedFn;
|
|
2611
|
-
}
|
|
2612
|
-
declare module "components/InfiniteTable/hooks/useUnpinnedRendering" {
|
|
2613
|
-
import type { VirtualBrain, VirtualBrainOptions } from "components/VirtualBrain/index";
|
|
2614
|
-
import type { Size } from "components/types/Size";
|
|
2615
|
-
import type { InfiniteTableComputedColumn, InfiniteTableRowInfo } from "components/InfiniteTable/types/index";
|
|
2616
|
-
import { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
2617
|
-
import { InfiniteTableToggleGroupRowFn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
2618
|
-
type UnpinnedRenderingParams<T> = {
|
|
2619
|
-
columnShifts: number[] | null;
|
|
2620
|
-
bodySize: Size;
|
|
2621
|
-
getData: () => InfiniteTableRowInfo<T>[];
|
|
2622
|
-
rowHeight: number;
|
|
2623
|
-
toggleGroupRow: InfiniteTableToggleGroupRowFn;
|
|
2624
|
-
repaintId: string | number;
|
|
2625
|
-
applyScrollHorizontal: ({ scrollLeft }: {
|
|
2626
|
-
scrollLeft: number;
|
|
2627
|
-
}) => void;
|
|
2628
|
-
verticalVirtualBrain: VirtualBrain;
|
|
2629
|
-
horizontalVirtualBrain: VirtualBrain;
|
|
2630
|
-
computedPinnedEndColumns: InfiniteTableComputedColumn<T>[];
|
|
2631
|
-
computedUnpinnedColumns: InfiniteTableComputedColumn<T>[];
|
|
2632
|
-
computedUnpinnedColumnsWidth: number;
|
|
2633
|
-
computedPinnedStartWidth: number;
|
|
2634
|
-
computedPinnedEndWidth: number;
|
|
2635
|
-
rowSpan?: VirtualBrainOptions['itemSpan'];
|
|
2636
|
-
getState: () => InfiniteTableState<T>;
|
|
2637
|
-
};
|
|
2638
|
-
export function useUnpinnedRendering<T>(params: UnpinnedRenderingParams<T>): JSX.Element | null;
|
|
2639
|
-
}
|
|
2640
|
-
declare module "components/InfiniteTable/hooks/useOnContainerScroll" {
|
|
2641
|
-
import { VirtualBrain } from "components/VirtualBrain/index";
|
|
2642
|
-
export const useOnContainerScroll: <T>({ verticalVirtualBrain, horizontalVirtualBrain, reservedContentHeight, }: {
|
|
2643
|
-
verticalVirtualBrain: VirtualBrain;
|
|
2644
|
-
horizontalVirtualBrain: VirtualBrain;
|
|
2645
|
-
reservedContentHeight: number;
|
|
2646
|
-
}) => {
|
|
2647
|
-
applyScrollHorizontal: ({ scrollLeft }: {
|
|
2648
|
-
scrollLeft: number;
|
|
2649
|
-
}) => void;
|
|
2650
|
-
applyScrollVertical: ({ scrollTop }: {
|
|
2651
|
-
scrollTop: number;
|
|
2652
|
-
}) => void;
|
|
2653
|
-
};
|
|
2654
|
-
}
|
|
2655
|
-
declare module "components/hooks/useOnMount" {
|
|
2656
|
-
import { RefObject } from 'react';
|
|
2657
|
-
export type OnMountProps = {
|
|
2658
|
-
onMount?: (node: HTMLElement) => void;
|
|
2659
|
-
onUnmount?: (node: HTMLElement) => void;
|
|
2660
|
-
};
|
|
2661
|
-
export function useOnMount(domRef: RefObject<HTMLElement>, props: OnMountProps): void;
|
|
2662
|
-
}
|
|
2663
|
-
declare module "components/VirtualList/InfiniteListRootClassName" {
|
|
2664
|
-
export const InfiniteListRootClassName = "InfiniteList";
|
|
2665
|
-
}
|
|
2666
|
-
declare module "components/VirtualList/RowListWithExternalScrolling" {
|
|
2667
|
-
import { CSSProperties } from 'react';
|
|
2668
|
-
import { VirtualBrain } from "components/VirtualBrain/index";
|
|
2669
|
-
import type { RenderRow } from "components/VirtualList/types";
|
|
2670
|
-
import type { ScrollPosition } from "components/types/ScrollPosition";
|
|
2671
|
-
import { OnMountProps } from "components/hooks/useOnMount";
|
|
2672
|
-
export type RowListWithExternalScrollingListProps = {
|
|
2673
|
-
brain: VirtualBrain;
|
|
2674
|
-
renderRow: RenderRow;
|
|
2675
|
-
repaintId?: number | string;
|
|
2676
|
-
updateScroll?: (node: HTMLElement, scrollPosition: ScrollPosition) => void;
|
|
2677
|
-
style?: CSSProperties;
|
|
2678
|
-
className?: string;
|
|
2679
|
-
} & OnMountProps;
|
|
2680
|
-
export const RowListWithExternalScrolling: (props: RowListWithExternalScrollingListProps) => JSX.Element;
|
|
2681
|
-
}
|
|
2682
|
-
declare module "components/InfiniteTable/hooks/usePinnedRendering" {
|
|
2683
|
-
import { VirtualBrain, VirtualBrainOptions } from "components/VirtualBrain/index";
|
|
2684
|
-
import type { InfiniteTableComputedColumn, InfiniteTableRowInfo, Scrollbars } from "components/InfiniteTable/types/index";
|
|
2685
|
-
import type { Size } from "components/types/Size";
|
|
2686
|
-
import type { RenderRow } from "components/VirtualList/types";
|
|
2687
|
-
import { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
2688
|
-
import { InfiniteTableToggleGroupRowFn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
2689
|
-
import { ScrollListener } from "components/VirtualBrain/ScrollListener";
|
|
2690
|
-
type UsePinnedParams<T> = {
|
|
2691
|
-
getState: () => InfiniteTableState<T>;
|
|
2692
|
-
getData: () => InfiniteTableRowInfo<T>[];
|
|
2693
|
-
bodySize: Size;
|
|
2694
|
-
pinnedStartScrollListener: ScrollListener;
|
|
2695
|
-
pinnedEndScrollListener: ScrollListener;
|
|
2696
|
-
repaintId: string | number;
|
|
2697
|
-
computedPinnedStartWidth: number;
|
|
2698
|
-
computedPinnedEndWidth: number;
|
|
2699
|
-
computedPinnedStartOverflow: boolean;
|
|
2700
|
-
computedPinnedEndOverflow: boolean;
|
|
2701
|
-
computedPinnedEndColumnsWidth: number;
|
|
2702
|
-
computedPinnedEndColumns: InfiniteTableComputedColumn<T>[];
|
|
2703
|
-
verticalVirtualBrain: VirtualBrain;
|
|
2704
|
-
scrollbars: Scrollbars;
|
|
2705
|
-
rowHeight: number;
|
|
2706
|
-
toggleGroupRow: InfiniteTableToggleGroupRowFn;
|
|
2707
|
-
computedPinnedStartColumnsWidth: number;
|
|
2708
|
-
computedPinnedStartColumns: InfiniteTableComputedColumn<T>[];
|
|
2709
|
-
rowSpan?: VirtualBrainOptions['itemSpan'];
|
|
2710
|
-
};
|
|
2711
|
-
export function usePinnedRenderingForSide<T>(side: 'start' | 'end', params: UsePinnedParams<T>): {
|
|
2712
|
-
renderRowPinned: RenderRow;
|
|
2713
|
-
pinnedList: JSX.Element | null;
|
|
2714
|
-
pinnedScrollbarPlaceholder: JSX.Element | null;
|
|
2715
|
-
};
|
|
2716
|
-
export function usePinnedEndRendering<T>(params: UsePinnedParams<T>): {
|
|
2717
|
-
renderRowPinnedEnd: RenderRow;
|
|
2718
|
-
pinnedEndList: JSX.Element | null;
|
|
2719
|
-
pinnedEndScrollbarPlaceholder: JSX.Element | null;
|
|
2720
|
-
};
|
|
2721
|
-
export function usePinnedStartRendering<T>(params: UsePinnedParams<T>): {
|
|
2722
|
-
renderRowPinnedStart: RenderRow;
|
|
2723
|
-
pinnedStartList: JSX.Element | null;
|
|
2724
|
-
pinnedStartScrollbarPlaceholder: JSX.Element | null;
|
|
2725
|
-
};
|
|
2726
|
-
}
|
|
2727
|
-
declare module "components/hooks/useOnce" {
|
|
2728
|
-
export function useOnce<ReturnType>(fn: () => ReturnType): ReturnType;
|
|
2729
|
-
}
|
|
2730
|
-
declare module "components/InfiniteTable/hooks/useColumnSizeFn" {
|
|
2731
|
-
import { InfiniteTableComputedColumn } from "components/InfiniteTable/types/index";
|
|
154
|
+
count: number;
|
|
155
|
+
name?: string;
|
|
156
|
+
};
|
|
157
|
+
declare type MainAxisSize = number | ((itemIndex: number) => number);
|
|
158
|
+
declare type OnRenderCountChangeFn = (renderCount: number) => void;
|
|
159
|
+
declare type OnSizeChangeFn = (size: number) => void;
|
|
160
|
+
declare type OnDestroyFn = () => void;
|
|
161
|
+
declare type RenderRange = {
|
|
162
|
+
renderStartIndex: number;
|
|
163
|
+
renderEndIndex: number;
|
|
164
|
+
};
|
|
165
|
+
declare type OnRenderRangeChangeFn = (renderRange: RenderRange) => void;
|
|
166
|
+
declare class VirtualBrain extends Logger {
|
|
167
|
+
private scrollPosition;
|
|
168
|
+
private scrollPositionOnMainAxis;
|
|
169
|
+
private itemSpanParent;
|
|
170
|
+
private itemSpanValue;
|
|
171
|
+
private itemSizeCache;
|
|
172
|
+
private itemOffsetCache;
|
|
173
|
+
private options;
|
|
174
|
+
private destroyed;
|
|
175
|
+
private totalSize;
|
|
176
|
+
private onScrollFns;
|
|
177
|
+
private onTotalSizeChangeFns;
|
|
178
|
+
private onRenderCountChangeFns;
|
|
179
|
+
private onRenderRangeChangeFns;
|
|
180
|
+
private onDestroyFns;
|
|
181
|
+
name: string | undefined;
|
|
182
|
+
private renderCount;
|
|
183
|
+
private renderRange;
|
|
184
|
+
private availableSize;
|
|
185
|
+
constructor(options: VirtualBrainOptions);
|
|
186
|
+
setAvailableSize: (size: Size) => void;
|
|
187
|
+
getOptions(): VirtualBrainOptions;
|
|
188
|
+
private updateRenderCount;
|
|
189
|
+
private computeRenderCount;
|
|
190
|
+
private setRenderCount;
|
|
191
|
+
private updateRenderRange;
|
|
192
|
+
getRenderStartIndex(): number;
|
|
193
|
+
getRenderCount: () => number;
|
|
194
|
+
setScrollPosition: (scrollPosition: ScrollPosition) => void;
|
|
195
|
+
private notifyScrollChange;
|
|
196
|
+
private notifyDestroy;
|
|
197
|
+
private notifyTotalSizeChange;
|
|
198
|
+
private notifyRenderCountChange;
|
|
199
|
+
private notifyRenderRangeChange;
|
|
200
|
+
getRenderRange: () => RenderRange;
|
|
201
|
+
private setRenderRange;
|
|
202
|
+
private computeRenderRange;
|
|
203
|
+
getScrollPosition: () => ScrollPosition;
|
|
204
|
+
onScroll: (fn: OnScrollFn) => () => void;
|
|
205
|
+
onTotalSizeChange: (fn: OnSizeChangeFn) => () => void;
|
|
206
|
+
onRenderCountChange: (fn: OnRenderCountChangeFn) => () => void;
|
|
207
|
+
onRenderRangeChange: (fn: OnRenderRangeChangeFn) => () => void;
|
|
208
|
+
onDestroy: (fn: OnDestroyFn) => () => void;
|
|
209
|
+
update: (newCount: VirtualBrainOptions['count'], newItemSize: VirtualBrainOptions['itemSize'], newItemSpan?: VirtualBrainOptions['itemSpan']) => void;
|
|
210
|
+
private reset;
|
|
211
|
+
private computeItemSpanUpTo;
|
|
212
|
+
private computeCacheFor;
|
|
213
|
+
private getItemSizeCacheFor;
|
|
214
|
+
getItemSpan: (itemIndex: number) => number;
|
|
215
|
+
getItemSpanParent: (itemIndex: number) => number;
|
|
216
|
+
getItemSizeWithSpan: (itemIndex: number, itemSpan: number) => number;
|
|
2732
217
|
/**
|
|
2733
|
-
*
|
|
218
|
+
* For now, this doesn't take into account the itemspan, and it's okay not to
|
|
219
|
+
* @param itemIndex
|
|
220
|
+
* @returns the size of the specified item
|
|
2734
221
|
*/
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
222
|
+
getItemSize: (itemIndex: number) => number;
|
|
223
|
+
getTotalSize: () => number;
|
|
224
|
+
getItemAt: (scrollPos: number) => number;
|
|
225
|
+
getItemOffsetFor: (itemIndex: number) => number;
|
|
226
|
+
destroy: () => void;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
interface DataSourceDataParams<T> {
|
|
230
|
+
originalDataArray: T[];
|
|
231
|
+
sortInfo?: DataSourceSortInfo<T>;
|
|
232
|
+
groupBy?: DataSourcePropGroupBy<T>;
|
|
233
|
+
pivotBy?: DataSourcePropPivotBy<T>;
|
|
234
|
+
lazyLoadBatchSize?: number;
|
|
235
|
+
lazyLoadStartIndex?: number;
|
|
236
|
+
groupKeys?: any[];
|
|
237
|
+
aggregationReducers?: DataSourcePropAggregationReducers<T>;
|
|
238
|
+
livePaginationCursor?: DataSourceLivePaginationCursorValue;
|
|
239
|
+
cursorId?: DataSourceSetupState<T>['cursorId'];
|
|
240
|
+
changes?: DataSourceDataParamsChanges<T>;
|
|
241
|
+
}
|
|
242
|
+
declare type DataSourceDataParamsChanges<T> = Partial<Record<keyof Omit<DataSourceDataParams<T>, 'originalDataArray' | 'changes'>, true>>;
|
|
243
|
+
declare type DataSourceSingleSortInfo<T> = MultisortInfo<T> & {
|
|
244
|
+
field?: keyof T;
|
|
245
|
+
id?: string;
|
|
246
|
+
};
|
|
247
|
+
declare type DataSourceGroupBy<T> = GroupBy<T, any>;
|
|
248
|
+
declare type DataSourcePivotBy<T> = PivotBy<T, any>;
|
|
249
|
+
declare type DataSourceSortInfo<T> = null | DataSourceSingleSortInfo<T> | DataSourceSingleSortInfo<T>[];
|
|
250
|
+
declare type DataSourceRemoteData<T> = {
|
|
251
|
+
data: T[];
|
|
252
|
+
mappings?: DataSourceMappings;
|
|
253
|
+
cache?: boolean;
|
|
254
|
+
totalCount?: number;
|
|
255
|
+
livePaginationCursor?: DataSourceLivePaginationCursorValue;
|
|
256
|
+
};
|
|
257
|
+
declare type DataSourceData<T> = T[] | DataSourceRemoteData<T> | Promise<T[] | DataSourceRemoteData<T>> | ((dataInfo: DataSourceDataParams<T>) => T[] | Promise<T[] | DataSourceRemoteData<T>>);
|
|
258
|
+
declare type DataSourceGroupRowsList<KeyType> = true | KeyType[][];
|
|
259
|
+
declare type DataSourceExpandedAndCollapsedGroupRows<KeyType> = {
|
|
260
|
+
expandedRows: DataSourceGroupRowsList<KeyType>;
|
|
261
|
+
collapsedRows: DataSourceGroupRowsList<KeyType>;
|
|
262
|
+
};
|
|
263
|
+
declare type DataSourcePropGroupBy<T> = DataSourceGroupBy<T>[];
|
|
264
|
+
declare type DataSourcePropPivotBy<T> = DataSourcePivotBy<T>[];
|
|
265
|
+
interface DataSourceMappedState<T> {
|
|
266
|
+
aggregationReducers?: DataSourceProps<T>['aggregationReducers'];
|
|
267
|
+
livePagination: DataSourceProps<T>['livePagination'];
|
|
268
|
+
lazyLoad: DataSourceProps<T>['lazyLoad'];
|
|
269
|
+
onDataParamsChange: DataSourceProps<T>['onDataParamsChange'];
|
|
270
|
+
data: DataSourceProps<T>['data'];
|
|
271
|
+
primaryKey: DataSourceProps<T>['primaryKey'];
|
|
272
|
+
groupBy: NonUndefined<DataSourceProps<T>['groupBy']>;
|
|
273
|
+
groupRowsState: NonUndefined<DataSourceProps<T>['groupRowsState']>;
|
|
274
|
+
pivotBy: DataSourceProps<T>['pivotBy'];
|
|
275
|
+
loading: NonUndefined<DataSourceProps<T>['loading']>;
|
|
276
|
+
collapseGroupRowsOnDataFunctionChange: NonUndefined<DataSourceProps<T>['collapseGroupRowsOnDataFunctionChange']>;
|
|
277
|
+
sortInfo: DataSourceSingleSortInfo<T>[] | null;
|
|
278
|
+
}
|
|
279
|
+
declare type DataSourceAggregationReducer<T, AggregationResultType> = {
|
|
280
|
+
name?: string;
|
|
281
|
+
field?: keyof T;
|
|
282
|
+
initialValue?: AggregationResultType;
|
|
283
|
+
getter?: (data: T) => any;
|
|
284
|
+
reducer: string | ((accumulator: any, value: any, data: T) => AggregationResultType | any);
|
|
285
|
+
done?: (accumulatedValue: AggregationResultType | any, array: T[]) => AggregationResultType;
|
|
286
|
+
};
|
|
287
|
+
declare type DataSourceMappings = Record<'totals' | 'values', string>;
|
|
288
|
+
declare type LazyGroupDataItem<DataType> = {
|
|
289
|
+
data: Partial<DataType>;
|
|
290
|
+
keys: any[];
|
|
291
|
+
aggregations?: Record<string, any>;
|
|
292
|
+
pivot?: {
|
|
293
|
+
values: Record<string, any>;
|
|
294
|
+
totals?: Record<string, any>;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
declare type LazyGroupRowInfo<DataType> = {
|
|
298
|
+
items: LazyGroupDataItem<DataType>[];
|
|
299
|
+
totalCount: number;
|
|
300
|
+
cache?: boolean;
|
|
301
|
+
};
|
|
302
|
+
declare type LazyGroupDataDeepMap<DataType, KeyType = string> = DeepMap<KeyType, LazyGroupRowInfo<DataType>>;
|
|
303
|
+
interface DataSourceSetupState<T> {
|
|
304
|
+
pivotMappings?: DataSourceMappings;
|
|
305
|
+
propsCache: Map<keyof DataSourceProps<T>, WeakMap<any, any>>;
|
|
306
|
+
showSeparatePivotColumnForSingleAggregation: boolean;
|
|
307
|
+
dataParams?: DataSourceDataParams<T>;
|
|
308
|
+
originalLazyGroupData: LazyGroupDataDeepMap<T>;
|
|
309
|
+
originalLazyGroupDataChangeDetect: number | string;
|
|
310
|
+
scrollStopDelayUpdatedByTable: number;
|
|
311
|
+
notifyScrollbarsChange: SubscriptionCallback<Scrollbars>;
|
|
312
|
+
notifyScrollStop: SubscriptionCallback<ScrollStopInfo>;
|
|
313
|
+
notifyRenderRangeChange: SubscriptionCallback<RenderRange>;
|
|
314
|
+
originalDataArray: T[];
|
|
315
|
+
lastSortDataArray?: T[];
|
|
316
|
+
lastGroupDataArray?: InfiniteTableRowInfo<T>[];
|
|
317
|
+
dataArray: InfiniteTableRowInfo<T>[];
|
|
318
|
+
groupDeepMap?: DeepMap<GroupKeyType, DeepMapGroupValueType<T, any>>;
|
|
319
|
+
pivotTotalColumnPosition: InfiniteTablePropPivotTotalColumnPosition;
|
|
320
|
+
cursorId: number | Symbol | DataSourceLivePaginationCursorValue;
|
|
321
|
+
updatedAt: number;
|
|
322
|
+
reducedAt: number;
|
|
323
|
+
groupedAt: number;
|
|
324
|
+
sortedAt: number;
|
|
325
|
+
generateGroupRows: boolean;
|
|
326
|
+
postSortDataArray?: T[];
|
|
327
|
+
postGroupDataArray?: InfiniteTableRowInfo<T>[];
|
|
328
|
+
pivotColumns?: Map<string, InfiniteTableColumn<T>>;
|
|
329
|
+
pivotColumnGroups?: Map<string, InfiniteTableColumnGroup>;
|
|
330
|
+
}
|
|
331
|
+
declare type DataSourcePropAggregationReducers<T> = Record<string, DataSourceAggregationReducer<T, any>>;
|
|
332
|
+
declare type DataSourceProps<T> = {
|
|
333
|
+
children: React$1.ReactNode | ((contextData: DataSourceState<T>) => React$1.ReactNode);
|
|
334
|
+
primaryKey: keyof T;
|
|
335
|
+
fields?: (keyof T)[];
|
|
336
|
+
data: DataSourceData<T>;
|
|
337
|
+
lazyLoad?: boolean | {
|
|
338
|
+
batchSize?: number;
|
|
339
|
+
};
|
|
340
|
+
loading?: boolean;
|
|
341
|
+
defaultLoading?: boolean;
|
|
342
|
+
onLoadingChange?: (loading: boolean) => void;
|
|
343
|
+
pivotBy?: DataSourcePropPivotBy<T>;
|
|
344
|
+
defaultPivotBy?: DataSourcePropPivotBy<T>;
|
|
345
|
+
onPivotByChange?: (pivotBy: DataSourcePropPivotBy<T>) => void;
|
|
346
|
+
aggregationReducers?: DataSourcePropAggregationReducers<T>;
|
|
347
|
+
defaultAggregationReducers?: DataSourcePropAggregationReducers<T>;
|
|
348
|
+
groupBy?: DataSourcePropGroupBy<T>;
|
|
349
|
+
defaultGroupBy?: DataSourcePropGroupBy<T>;
|
|
350
|
+
onGroupByChange?: (groupBy: DataSourcePropGroupBy<T>) => void;
|
|
351
|
+
groupRowsState?: GroupRowsState;
|
|
352
|
+
defaultGroupRowsState?: GroupRowsState;
|
|
353
|
+
onGroupRowsStateChange?: (groupRowsState: GroupRowsState) => void;
|
|
354
|
+
collapseGroupRowsOnDataFunctionChange?: boolean;
|
|
355
|
+
sortInfo?: DataSourceSortInfo<T>;
|
|
356
|
+
defaultSortInfo?: DataSourceSortInfo<T>;
|
|
357
|
+
onSortInfoChange?: ((sortInfo: DataSourceSingleSortInfo<T> | null) => void) | ((sortInfo: DataSourceSingleSortInfo<T>[]) => void);
|
|
358
|
+
onDataParamsChange?: (dataParamsChange: DataSourceDataParams<T>) => void;
|
|
359
|
+
livePagination?: boolean;
|
|
360
|
+
livePaginationCursor?: DataSourcePropLivePaginationCursor<T>;
|
|
361
|
+
onLivePaginationCursorChange?: (livePaginationCursor: DataSourceLivePaginationCursorValue) => void;
|
|
362
|
+
};
|
|
363
|
+
declare type DataSourcePropLivePaginationCursor<T> = DataSourceLivePaginationCursorValue | DataSourceLivePaginationCursorFn<T>;
|
|
364
|
+
declare type DataSourceLivePaginationCursorFn<T> = (params: DataSourceLivePaginationCursorParams<T>) => DataSourceLivePaginationCursorValue;
|
|
365
|
+
declare type DataSourceLivePaginationCursorParams<T> = {
|
|
366
|
+
array: T[];
|
|
367
|
+
lastItem: T | Partial<T> | null;
|
|
368
|
+
length: number;
|
|
369
|
+
};
|
|
370
|
+
declare type DataSourceLivePaginationCursorValue = string | number | null;
|
|
371
|
+
interface DataSourceState<T> extends DataSourceSetupState<T>, DataSourceDerivedState<T>, DataSourceMappedState<T> {
|
|
372
|
+
}
|
|
373
|
+
interface DataSourceDerivedState<_T> {
|
|
374
|
+
multiSort: boolean;
|
|
375
|
+
controlledSort: boolean;
|
|
376
|
+
livePaginationCursor?: DataSourceLivePaginationCursorValue;
|
|
377
|
+
lazyLoadBatchSize?: number;
|
|
378
|
+
}
|
|
379
|
+
declare type DataSourceComponentActions<T> = ComponentStateActions<DataSourceState<T>>;
|
|
380
|
+
interface DataSourceContextValue<T> {
|
|
381
|
+
getState: () => DataSourceState<T>;
|
|
382
|
+
componentState: DataSourceState<T>;
|
|
383
|
+
componentActions: DataSourceComponentActions<T>;
|
|
384
|
+
}
|
|
385
|
+
declare enum DataSourceActionType {
|
|
386
|
+
INIT = "INIT"
|
|
387
|
+
}
|
|
388
|
+
interface DataSourceAction<T> {
|
|
389
|
+
type: DataSourceActionType;
|
|
390
|
+
payload: T;
|
|
391
|
+
}
|
|
392
|
+
interface DataSourceReducer<T> {
|
|
393
|
+
(state: DataSourceState<T>, action: DataSourceAction<any>): DataSourceState<T>;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
declare function useDataSource<T>(): DataSourceState<T>;
|
|
397
|
+
|
|
398
|
+
declare function DataSource<T>(props: DataSourceProps<T>): JSX.Element;
|
|
399
|
+
|
|
400
|
+
declare class GroupRowsState<KeyType extends any = any> {
|
|
401
|
+
private expandedMap?;
|
|
402
|
+
private collapsedMap?;
|
|
403
|
+
private collapsedAll;
|
|
404
|
+
private expandedAll;
|
|
405
|
+
private initialState;
|
|
406
|
+
constructor(state: DataSourceExpandedAndCollapsedGroupRows<KeyType> | GroupRowsState<KeyType>);
|
|
407
|
+
getState(): DataSourceExpandedAndCollapsedGroupRows<KeyType>;
|
|
408
|
+
destroy(): void;
|
|
409
|
+
private update;
|
|
410
|
+
areAllCollapsed(): boolean;
|
|
411
|
+
areAllExpanded(): boolean;
|
|
412
|
+
collapseAll(): void;
|
|
413
|
+
expandAll(): void;
|
|
414
|
+
isGroupRowExpanded(keys: KeyType[]): boolean | undefined;
|
|
415
|
+
isGroupRowCollapsed(keys: KeyType[]): boolean;
|
|
416
|
+
setGroupRowExpanded(keys: KeyType[], shouldExpand: boolean): void;
|
|
417
|
+
collapseGroupRow(keys: KeyType[]): void;
|
|
418
|
+
expandGroupRow(keys: KeyType[]): void;
|
|
419
|
+
toggleGroupRow(keys: KeyType[]): void;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
declare type Renderable = React$1.ReactNode;
|
|
423
|
+
|
|
424
|
+
declare type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
|
|
425
|
+
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
|
|
426
|
+
}[Keys];
|
|
427
|
+
|
|
428
|
+
declare type InfiniteTableToggleGroupRowFn = (groupKeys: any[]) => void;
|
|
429
|
+
declare type InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
|
|
430
|
+
value: string | number | Renderable;
|
|
431
|
+
groupRowInfo: InfiniteTableRowInfo<DATA_TYPE> | null;
|
|
432
|
+
rowIndex: number;
|
|
433
|
+
column: COL_TYPE;
|
|
434
|
+
toggleCurrentGroupRow: () => void;
|
|
435
|
+
toggleGroupRow: InfiniteTableToggleGroupRowFn;
|
|
436
|
+
groupBy: DataSourceState<DATA_TYPE>['groupBy'];
|
|
437
|
+
pivotBy?: DataSourceState<DATA_TYPE>['pivotBy'];
|
|
438
|
+
} & ({
|
|
439
|
+
rowInfo: InfiniteTableRowInfoNormal<DATA_TYPE>;
|
|
440
|
+
data: DATA_TYPE;
|
|
441
|
+
} | {
|
|
442
|
+
rowInfo: InfiniteTableRowInfoGroup<DATA_TYPE>;
|
|
443
|
+
data: Partial<DATA_TYPE> | null;
|
|
444
|
+
});
|
|
445
|
+
declare type InfiniteTableGroupColumnRenderIconParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE> & {
|
|
446
|
+
collapsed: boolean;
|
|
447
|
+
groupIcon: Renderable;
|
|
448
|
+
};
|
|
449
|
+
declare type InfiniteTableColumnRenderValueParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>;
|
|
450
|
+
declare type InfiniteTableColumnRowspanParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
|
|
451
|
+
rowInfo: InfiniteTableRowInfo<DATA_TYPE>;
|
|
452
|
+
data: DATA_TYPE | Partial<DATA_TYPE> | null;
|
|
453
|
+
dataArray: InfiniteTableRowInfo<DATA_TYPE>[];
|
|
454
|
+
rowIndex: number;
|
|
455
|
+
column: COL_TYPE;
|
|
456
|
+
};
|
|
457
|
+
interface InfiniteTableColumnHeaderRenderParams<T> {
|
|
458
|
+
column: InfiniteTableComputedColumn<T>;
|
|
459
|
+
columnSortInfo: DataSourceSingleSortInfo<T> | null | undefined;
|
|
460
|
+
}
|
|
461
|
+
declare type InfiniteTableColumnRenderFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = ({ value, rowIndex, column, data, toggleGroupRow, toggleCurrentGroupRow, rowInfo, groupBy, pivotBy, }: InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>) => Renderable | null;
|
|
462
|
+
declare type InfiniteTableGroupColumnRenderIconFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = (param: InfiniteTableGroupColumnRenderIconParam<DATA_TYPE, COL_TYPE>) => Renderable | null;
|
|
463
|
+
declare type InfiniteTableColumnHeaderRenderFunction<T> = ({ columnSortInfo, column, }: InfiniteTableColumnHeaderRenderParams<T>) => Renderable;
|
|
464
|
+
declare type InfiniteTableColumnAlign = 'start' | 'center' | 'end';
|
|
465
|
+
declare type InfiniteTableColumnVerticalAlign = 'start' | 'center' | 'end';
|
|
466
|
+
declare type InfiniteTableColumnHeader<T> = Renderable | InfiniteTableColumnHeaderRenderFunction<T>;
|
|
467
|
+
declare type InfiniteTableColumnTypeNames = 'string' | 'number' | 'date' | string;
|
|
468
|
+
declare type InfiniteTableColumnWithRenderOrRenderValueOrFieldOrValueGetter<T> = RequireAtLeastOne<{
|
|
469
|
+
field?: keyof T;
|
|
470
|
+
render?: InfiniteTableColumnRenderFunction<T>;
|
|
471
|
+
renderValue?: InfiniteTableColumnRenderFunction<T>;
|
|
472
|
+
valueGetter?: InfiniteTableColumnValueGetter<T>;
|
|
473
|
+
}, 'render' | 'renderValue' | 'field' | 'valueGetter'>;
|
|
474
|
+
declare type InfiniteTableColumnStyleFnParams<T> = {
|
|
475
|
+
value: Renderable;
|
|
476
|
+
column: InfiniteTableColumn<T>;
|
|
477
|
+
} & ({
|
|
478
|
+
data: T;
|
|
479
|
+
rowInfo: InfiniteTableRowInfoNormal<T>;
|
|
480
|
+
} | {
|
|
481
|
+
data: Partial<T> | null;
|
|
482
|
+
rowInfo: InfiniteTableRowInfoGroup<T>;
|
|
483
|
+
});
|
|
484
|
+
declare type InfiniteTableColumnStyleFn<T> = (params: InfiniteTableColumnStyleFnParams<T>) => undefined | React.CSSProperties;
|
|
485
|
+
declare type InfiniteTableColumnClassNameFn<T> = (params: InfiniteTableColumnStyleFnParams<T>) => undefined | string;
|
|
486
|
+
declare type InfiniteTableColumnStyle<T> = CSSProperties | InfiniteTableColumnStyleFn<T>;
|
|
487
|
+
declare type InfiniteTableColumnClassName<T> = string | InfiniteTableColumnClassNameFn<T>;
|
|
488
|
+
declare type InfiniteTableColumnValueGetterParams<T> = {
|
|
489
|
+
data: T;
|
|
490
|
+
rowInfo: InfiniteTableRowInfoNormal<T>;
|
|
491
|
+
} | {
|
|
492
|
+
data: Partial<T> | null;
|
|
493
|
+
rowInfo: InfiniteTableRowInfoGroup<T>;
|
|
494
|
+
};
|
|
495
|
+
declare type InfiniteTableColumnValueGetter<T, VALUE_GETTER_TYPE = Renderable> = (params: InfiniteTableColumnValueGetterParams<T>) => VALUE_GETTER_TYPE;
|
|
496
|
+
declare type InfiniteTableColumnRowspanFn<T> = (params: InfiniteTableColumnRowspanParam<T>) => number;
|
|
497
|
+
declare type InfiniteTableColumnComparer<T> = (a: T, b: T) => number;
|
|
498
|
+
declare type InfiniteTableBaseColumn<T> = {
|
|
499
|
+
sortable?: boolean;
|
|
500
|
+
draggable?: boolean;
|
|
501
|
+
resizable?: boolean;
|
|
502
|
+
comparer?: InfiniteTableColumnComparer<T>;
|
|
503
|
+
defaultHiddenWhenGroupedBy?: '*' | keyof T | {
|
|
504
|
+
[k in keyof Partial<T>]: true;
|
|
505
|
+
};
|
|
506
|
+
align?: InfiniteTableColumnAlign;
|
|
507
|
+
verticalAlign?: InfiniteTableColumnVerticalAlign;
|
|
508
|
+
columnGroup?: string;
|
|
509
|
+
header?: InfiniteTableColumnHeader<T>;
|
|
510
|
+
name?: Renderable;
|
|
511
|
+
cssEllipsis?: boolean;
|
|
512
|
+
headerCssEllipsis?: boolean;
|
|
513
|
+
type?: InfiniteTableColumnTypeNames | InfiniteTableColumnTypeNames[] | null;
|
|
514
|
+
style?: InfiniteTableColumnStyle<T>;
|
|
515
|
+
className?: InfiniteTableColumnClassName<T>;
|
|
516
|
+
rowspan?: InfiniteTableColumnRowspanFn<T>;
|
|
517
|
+
valueGetter?: InfiniteTableColumnValueGetter<T>;
|
|
518
|
+
defaultWidth?: number;
|
|
519
|
+
defaultFlex?: number;
|
|
520
|
+
minWidth?: number;
|
|
521
|
+
maxWidth?: number;
|
|
522
|
+
};
|
|
523
|
+
declare type InfiniteTableColumn<T> = {} & InfiniteTableBaseColumn<T> & InfiniteTableColumnWithRenderOrRenderValueOrFieldOrValueGetter<T>;
|
|
524
|
+
declare type InfiniteTableGeneratedGroupColumn<T> = InfiniteTableColumn<T> & {
|
|
525
|
+
groupByField: string | string[];
|
|
526
|
+
id?: string;
|
|
527
|
+
};
|
|
528
|
+
declare type InfiniteTablePivotColumn<T> = InfiniteTableColumn<T> & Partial<InfiniteTablePivotFinalColumnVariant<T, any>>;
|
|
529
|
+
declare type InfiniteTablePivotFinalColumnGroup<DataType, KeyType extends any = any> = InfiniteTableColumnGroup & {
|
|
530
|
+
pivotBy: DataSourcePivotBy<DataType>[];
|
|
531
|
+
pivotTotalColumnGroup?: true;
|
|
532
|
+
pivotGroupKeys: KeyType[];
|
|
533
|
+
pivotByAtIndex: PivotBy<DataType, KeyType>;
|
|
534
|
+
pivotGroupKey: KeyType;
|
|
535
|
+
pivotIndex: number;
|
|
536
|
+
};
|
|
537
|
+
declare type InfiniteTablePivotFinalColumn<DataType, KeyType extends any = any> = InfiniteTableColumn<DataType> & {
|
|
538
|
+
pivotBy: DataSourcePivotBy<DataType>[];
|
|
539
|
+
pivotColumn: true;
|
|
540
|
+
pivotTotalColumn: boolean;
|
|
541
|
+
pivotAggregator: AggregationReducer<DataType, any>;
|
|
542
|
+
pivotAggregatorIndex: number;
|
|
543
|
+
pivotGroupKeys: KeyType[];
|
|
544
|
+
pivotByAtIndex?: PivotBy<DataType, KeyType>;
|
|
545
|
+
pivotIndex: number;
|
|
546
|
+
pivotGroupKey: KeyType;
|
|
547
|
+
};
|
|
548
|
+
declare type InfiniteTablePivotFinalColumnVariant<DataType, KeyType extends any = any> = InfiniteTablePivotFinalColumn<DataType, KeyType>;
|
|
549
|
+
declare type InfiniteTableComputedColumnBase<T> = {
|
|
550
|
+
computedWidth: number;
|
|
551
|
+
computedOffset: number;
|
|
552
|
+
computedPinningOffset: number;
|
|
553
|
+
computedAbsoluteOffset: number;
|
|
554
|
+
computedSortable: boolean;
|
|
555
|
+
computedSortInfo: DataSourceSingleSortInfo<T> | null;
|
|
556
|
+
computedSorted: boolean;
|
|
557
|
+
computedSortedAsc: boolean;
|
|
558
|
+
computedSortedDesc: boolean;
|
|
559
|
+
computedSortIndex: number;
|
|
560
|
+
computedVisibleIndex: number;
|
|
561
|
+
computedMultiSort: boolean;
|
|
562
|
+
computedPinned: InfiniteTableColumnPinnedValues;
|
|
563
|
+
computedDraggable: boolean;
|
|
564
|
+
computedFirstInCategory: boolean;
|
|
565
|
+
computedLastInCategory: boolean;
|
|
566
|
+
computedFirst: boolean;
|
|
567
|
+
computedLast: boolean;
|
|
568
|
+
toggleSort: () => void;
|
|
569
|
+
id: string;
|
|
570
|
+
};
|
|
571
|
+
declare type InfiniteTableComputedColumn<T> = InfiniteTableColumn<T> & InfiniteTableComputedColumnBase<T> & Partial<InfiniteTablePivotFinalColumn<T>> & Partial<InfiniteTableGeneratedGroupColumn<T>>;
|
|
572
|
+
declare type InfiniteTableComputedPivotFinalColumn<T> = InfiniteTableComputedColumn<T> & InfiniteTablePivotFinalColumn<T>;
|
|
573
|
+
|
|
574
|
+
declare type AggregationReducer<T, AggregationResultType = any> = DataSourceAggregationReducer<T, AggregationResultType> & {
|
|
575
|
+
id: string;
|
|
576
|
+
};
|
|
577
|
+
declare type AggregationReducerResult<AggregationResultType extends any = any> = {
|
|
578
|
+
value: AggregationResultType;
|
|
579
|
+
id: string;
|
|
580
|
+
};
|
|
581
|
+
declare type InfiniteTableRowInfoNormalType<DataType> = {
|
|
582
|
+
data: DataType;
|
|
583
|
+
isGroupRow: false;
|
|
584
|
+
};
|
|
585
|
+
declare type InfiniteTableRowInfoGroupType<DataType> = {
|
|
586
|
+
data: Partial<DataType> | null;
|
|
587
|
+
isGroupRow: true;
|
|
588
|
+
};
|
|
589
|
+
declare type InfiniteTableRowInfoNormal<T> = InfiniteTableRowInfoBase<T> & InfiniteTableRowInfoNormalType<T>;
|
|
590
|
+
declare type InfiniteTableRowInfoGroup<T> = InfiniteTableRowInfoBase<T> & InfiniteTableRowInfoGroupType<T>;
|
|
591
|
+
declare type InfiniteTableRowInfo<T> = InfiniteTableRowInfoNormal<T> | InfiniteTableRowInfoGroup<T>;
|
|
592
|
+
declare type InfiniteTableRowInfoBase<T> = {
|
|
593
|
+
id: any;
|
|
594
|
+
value?: any;
|
|
595
|
+
groupData?: T[];
|
|
596
|
+
collapsed: boolean;
|
|
597
|
+
collapsedChildrenCount?: number;
|
|
598
|
+
collapsedGroupsCount?: number;
|
|
599
|
+
groupNesting?: number;
|
|
600
|
+
groupKeys?: any[];
|
|
601
|
+
flatRowInfoList?: (InfiniteTableRowInfo<T> | InfiniteTableEnhancedGroupInfo<T>)[];
|
|
602
|
+
parents?: InfiniteTableEnhancedGroupInfo<T>[];
|
|
603
|
+
indexInParentGroups?: number[];
|
|
604
|
+
indexInGroup: number;
|
|
605
|
+
indexInAll: number;
|
|
606
|
+
groupCount?: number;
|
|
607
|
+
groupBy?: (keyof T)[];
|
|
608
|
+
rootGroupBy?: (keyof T)[];
|
|
609
|
+
pivotValuesMap?: PivotValuesDeepMap<T, any>;
|
|
610
|
+
reducerResults?: Record<string, AggregationReducerResult>;
|
|
611
|
+
};
|
|
612
|
+
declare type InfiniteTableEnhancedGroupInfo<T> = InfiniteTableRowInfo<T> & {
|
|
613
|
+
data: Partial<T> | null;
|
|
614
|
+
groupData: T[];
|
|
615
|
+
flatRowInfoList: (InfiniteTableRowInfo<T> | InfiniteTableEnhancedGroupInfo<T>)[];
|
|
616
|
+
value: any;
|
|
617
|
+
isGroupRow: true;
|
|
618
|
+
collapsedChildrenCount: number;
|
|
619
|
+
collapsedGroupsCount: number;
|
|
620
|
+
groupNesting: number;
|
|
621
|
+
groupKeys?: any[];
|
|
622
|
+
groupCount: number;
|
|
623
|
+
groupBy: (keyof T)[];
|
|
624
|
+
rootGroupBy: (keyof T)[];
|
|
625
|
+
pivotValuesMap?: PivotValuesDeepMap<T, any>;
|
|
626
|
+
};
|
|
627
|
+
declare type GroupKeyType<T extends any = any> = T;
|
|
628
|
+
declare type PivotReducerResults<T = any> = Record<string, AggregationReducerResult<T>>;
|
|
629
|
+
declare type PivotGroupValueType<DataType, KeyType> = {
|
|
630
|
+
reducerResults: PivotReducerResults<KeyType>;
|
|
631
|
+
items: DataType[];
|
|
632
|
+
};
|
|
633
|
+
declare type PivotValuesDeepMap<DataType, KeyType> = DeepMap<GroupKeyType<KeyType>, PivotGroupValueType<DataType, KeyType>>;
|
|
634
|
+
declare type DeepMapGroupValueType<DataType, KeyType> = {
|
|
635
|
+
items: DataType[];
|
|
636
|
+
commonData?: Partial<DataType>;
|
|
637
|
+
reducerResults: Record<string, AggregationReducerResult>;
|
|
638
|
+
pivotDeepMap?: DeepMap<GroupKeyType<KeyType>, PivotGroupValueType<DataType, KeyType>>;
|
|
639
|
+
};
|
|
640
|
+
declare type GroupBy<DataType, KeyType> = {
|
|
641
|
+
field: keyof DataType;
|
|
642
|
+
toKey?: (value: any, data: DataType) => GroupKeyType<KeyType>;
|
|
643
|
+
column?: Partial<InfiniteTableGroupColumnBase<DataType>>;
|
|
644
|
+
};
|
|
645
|
+
declare type PivotBy<DataType, KeyType> = Omit<GroupBy<DataType, KeyType>, 'column'> & {
|
|
646
|
+
column?: InfiniteTableColumn<DataType> | (({ column, }: {
|
|
647
|
+
column: InfiniteTablePivotFinalColumnVariant<DataType, KeyType>;
|
|
648
|
+
}) => Partial<InfiniteTablePivotColumn<DataType>>);
|
|
649
|
+
columnGroup?: InfiniteTableColumnGroup | (({ columnGroup, }: {
|
|
650
|
+
columnGroup: InfiniteTablePivotFinalColumnGroup<DataType, KeyType>;
|
|
651
|
+
}) => Partial<InfiniteTablePivotFinalColumnGroup<DataType>>);
|
|
652
|
+
};
|
|
653
|
+
declare type GroupParams<DataType, KeyType> = {
|
|
654
|
+
groupBy: GroupBy<DataType, KeyType>[];
|
|
655
|
+
defaultToKey?: (value: any, item: DataType) => GroupKeyType<KeyType>;
|
|
656
|
+
pivot?: PivotBy<DataType, KeyType>[];
|
|
657
|
+
reducers?: Record<string, DataSourceAggregationReducer<DataType, any>>;
|
|
658
|
+
};
|
|
659
|
+
declare type DataGroupResult<DataType, KeyType extends any> = {
|
|
660
|
+
deepMap: DeepMap<GroupKeyType<KeyType>, DeepMapGroupValueType<DataType, KeyType>>;
|
|
661
|
+
groupParams: GroupParams<DataType, KeyType>;
|
|
662
|
+
initialData: DataType[];
|
|
663
|
+
reducerResults?: Record<string, AggregationReducerResult>;
|
|
664
|
+
topLevelPivotColumns?: DeepMap<GroupKeyType<KeyType>, boolean>;
|
|
665
|
+
pivot?: PivotBy<DataType, KeyType>[];
|
|
666
|
+
};
|
|
667
|
+
declare function group<DataType, KeyType = any>(groupParams: GroupParams<DataType, KeyType>, data: DataType[]): DataGroupResult<DataType, KeyType>;
|
|
668
|
+
declare function flatten<DataType, KeyType extends any>(groupResult: DataGroupResult<DataType, KeyType>): DataType[];
|
|
669
|
+
|
|
670
|
+
declare type LoadMaskProps = {
|
|
671
|
+
visible: boolean;
|
|
672
|
+
children: Renderable;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
declare type InfiniteTablePropColumnOrderNormalized = string[];
|
|
676
|
+
declare type InfiniteTablePropColumnOrder = InfiniteTablePropColumnOrderNormalized | true;
|
|
677
|
+
declare type InfiniteTablePropColumnVisibility = Record<string, false>;
|
|
678
|
+
declare type InfiniteTablePropColumnPinningMap = Map<string, true | 'start' | 'end'>;
|
|
679
|
+
declare type InfiniteTableColumnPinnedValues = false | 'start' | 'end';
|
|
680
|
+
declare type InfiniteTablePropColumnPinningRecord = Record<string, true | 'start' | 'end'>;
|
|
681
|
+
declare type InfiniteTablePropColumnPinning = InfiniteTablePropColumnPinningRecord | InfiniteTablePropColumnPinningMap;
|
|
682
|
+
declare type InfiniteTableRowStyleFnParams<T> = {
|
|
683
|
+
rowIndex: number;
|
|
684
|
+
groupBy?: (keyof T)[];
|
|
685
|
+
} & ({
|
|
686
|
+
data: T;
|
|
687
|
+
rowInfo: InfiniteTableRowInfoNormal<T>;
|
|
688
|
+
} | {
|
|
689
|
+
data: Partial<T> | null;
|
|
690
|
+
rowInfo: InfiniteTableRowInfoGroup<T>;
|
|
691
|
+
});
|
|
692
|
+
declare type InfiniteTableRowStyleFn<T> = (params: InfiniteTableRowStyleFnParams<T>) => undefined | React$1.CSSProperties;
|
|
693
|
+
declare type InfiniteTableRowClassNameFn<T> = (params: InfiniteTableRowStyleFnParams<T>) => string | undefined;
|
|
694
|
+
declare type InfiniteTablePropRowStyle<T> = React$1.CSSProperties | InfiniteTableRowStyleFn<T>;
|
|
695
|
+
declare type InfiniteTablePropRowClassName<T> = string | InfiniteTableRowClassNameFn<T>;
|
|
696
|
+
declare type InfiniteTableColumnAggregator<T, AggregationResultType> = Omit<AggregationReducer<T, AggregationResultType>, 'getter' | 'id'> & {
|
|
697
|
+
getter?: AggregationReducer<T, AggregationResultType>['getter'];
|
|
698
|
+
field?: keyof T;
|
|
699
|
+
};
|
|
700
|
+
declare type InfiniteTableColumnType<T> = {
|
|
701
|
+
minWidth?: number;
|
|
702
|
+
maxWidth?: number;
|
|
703
|
+
defaultWidth?: number;
|
|
704
|
+
defaultFlex?: number;
|
|
705
|
+
defaultPinned?: InfiniteTableColumnPinnedValues;
|
|
706
|
+
defaultHiddenWhenGroupedBy?: InfiniteTableColumn<T>['defaultHiddenWhenGroupedBy'];
|
|
707
|
+
header?: InfiniteTableColumn<T>['header'];
|
|
708
|
+
comparer?: InfiniteTableColumn<T>['comparer'];
|
|
709
|
+
draggable?: InfiniteTableColumn<T>['draggable'];
|
|
710
|
+
sortable?: InfiniteTableColumn<T>['sortable'];
|
|
711
|
+
resizable?: InfiniteTableColumn<T>['resizable'];
|
|
712
|
+
align?: InfiniteTableColumn<T>['align'];
|
|
713
|
+
verticalAlign?: InfiniteTableColumn<T>['verticalAlign'];
|
|
714
|
+
cssEllipsis?: boolean;
|
|
715
|
+
headerCssEllipsis?: boolean;
|
|
716
|
+
renderValue?: InfiniteTableColumn<T>['renderValue'];
|
|
717
|
+
render?: InfiniteTableColumn<T>['render'];
|
|
718
|
+
valueGetter?: InfiniteTableColumn<T>['valueGetter'];
|
|
719
|
+
style?: InfiniteTableColumn<T>['style'];
|
|
720
|
+
};
|
|
721
|
+
declare type InfiniteTablePropColumnTypes<T> = Record<'default' | string, InfiniteTableColumnType<T>>;
|
|
722
|
+
declare type InfiniteTableColumnSizingOptions = {
|
|
723
|
+
flex?: number;
|
|
724
|
+
width?: number;
|
|
725
|
+
minWidth?: number;
|
|
726
|
+
maxWidth?: number;
|
|
727
|
+
};
|
|
728
|
+
declare type InfiniteTablePropColumnSizing = Record<string, InfiniteTableColumnSizingOptions>;
|
|
729
|
+
declare type InfiniteTableImperativeApi<T> = {
|
|
730
|
+
setColumnOrder: (columnOrder: InfiniteTablePropColumnOrder) => void;
|
|
731
|
+
setColumnVisibility: (columnVisibility: InfiniteTablePropColumnVisibility) => void;
|
|
732
|
+
x?: T;
|
|
733
|
+
getState: () => InfiniteTableState<T>;
|
|
734
|
+
getDataSourceState: () => DataSourceState<T>;
|
|
735
|
+
};
|
|
736
|
+
declare type InfiniteTablePropVirtualizeColumns<T> = boolean | ((columns: InfiniteTableComputedColumn<T>[]) => boolean);
|
|
737
|
+
declare type InfiniteTablePropColumnsMap<T, ColumnType = InfiniteTableColumn<T>> = Map<string, ColumnType>;
|
|
738
|
+
declare type InfiniteTablePropColumns<T, ColumnType = InfiniteTableColumn<T>> = InfiniteTablePropColumnsMap<T, ColumnType> | Record<string, ColumnType>;
|
|
739
|
+
declare type InfiniteTablePropColumnGroupsMap = Map<string, InfiniteTableColumnGroup>;
|
|
740
|
+
declare type InfiniteTablePropColumnGroupsRecord = Record<string, InfiniteTableColumnGroup>;
|
|
741
|
+
declare type InfiniteTablePropColumnGroups = InfiniteTablePropColumnGroupsRecord | InfiniteTablePropColumnGroupsMap;
|
|
742
|
+
declare type InfiniteTablePropCollapsedColumnGroups = Map<string[], string>;
|
|
743
|
+
declare type InfiniteTableColumnGroupHeaderRenderParams = {
|
|
744
|
+
columnGroup: InfiniteTableComputedColumnGroup;
|
|
745
|
+
};
|
|
746
|
+
declare type InfiniteTableColumnGroupHeaderRenderFunction = (params: InfiniteTableColumnGroupHeaderRenderParams) => Renderable;
|
|
747
|
+
declare type InfiniteTableColumnGroup = {
|
|
748
|
+
columnGroup?: string;
|
|
749
|
+
header?: Renderable | InfiniteTableColumnGroupHeaderRenderFunction;
|
|
750
|
+
};
|
|
751
|
+
declare type InfiniteTableComputedColumnGroup = InfiniteTableColumnGroup & {
|
|
752
|
+
id: string;
|
|
753
|
+
groupOffset: number;
|
|
754
|
+
computedWidth: number;
|
|
755
|
+
uniqueGroupId: string[];
|
|
756
|
+
columns: string[];
|
|
757
|
+
depth: number;
|
|
758
|
+
};
|
|
759
|
+
declare type InfiniteTableGroupColumnGetterOptions<T> = {
|
|
760
|
+
groupIndexForColumn?: number;
|
|
761
|
+
groupByForColumn?: DataSourceGroupBy<T>;
|
|
762
|
+
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
763
|
+
groupCount: number;
|
|
764
|
+
groupBy: DataSourceGroupBy<T>[];
|
|
765
|
+
pivotBy?: DataSourcePivotBy<T>[];
|
|
766
|
+
};
|
|
767
|
+
declare type InfiniteTablePivotColumnGetterOptions<T, COL_TYPE = InfiniteTableColumn<T>> = {
|
|
768
|
+
column: COL_TYPE;
|
|
769
|
+
groupBy: DataSourcePropGroupBy<T>;
|
|
770
|
+
pivotBy: DataSourcePropPivotBy<T>;
|
|
771
|
+
};
|
|
772
|
+
declare type InfiniteTablePropGroupRenderStrategy = 'single-column' | 'multi-column' | 'inline';
|
|
773
|
+
declare type InfiniteTableGroupColumnBase<T> = Partial<InfiniteTableColumn<T>> & {
|
|
774
|
+
renderValue?: InfiniteTableColumnRenderFunction<T>;
|
|
775
|
+
renderGroupIcon?: InfiniteTableGroupColumnRenderIconFunction<T>;
|
|
776
|
+
id?: string;
|
|
777
|
+
};
|
|
778
|
+
declare type InfiniteTablePivotColumnBase<T> = InfiniteTableColumn<T> & {
|
|
779
|
+
renderValue?: InfiniteTableColumnRenderFunction<T, InfiniteTableComputedPivotFinalColumn<T>>;
|
|
780
|
+
};
|
|
781
|
+
declare type InfiniteTablePropGroupColumn<T> = InfiniteTableGroupColumnBase<T> | InfiniteTableGroupColumnFunction<T>;
|
|
782
|
+
declare type InfiniteTableGroupColumnFunction<T> = (options: InfiniteTableGroupColumnGetterOptions<T>, toggleGroupRow: (groupKeys: any[]) => void) => Partial<InfiniteTableGroupColumnBase<T>>;
|
|
783
|
+
declare type InfiniteTablePropPivotColumn<T, COL_TYPE = InfiniteTableColumn<T>> = Partial<InfiniteTablePivotColumnBase<T>> | ((options: InfiniteTablePivotColumnGetterOptions<T, COL_TYPE>) => InfiniteTablePivotColumnBase<T>);
|
|
784
|
+
declare type InfiniteTablePropComponents = {
|
|
785
|
+
LoadMask?: React$1.FC<LoadMaskProps>;
|
|
786
|
+
};
|
|
787
|
+
declare type ScrollStopInfo = {
|
|
788
|
+
scrollTop: number;
|
|
789
|
+
firstVisibleRowIndex: number;
|
|
790
|
+
lastVisibleRowIndex: number;
|
|
791
|
+
};
|
|
792
|
+
interface InfiniteTableProps<T> {
|
|
793
|
+
columns: InfiniteTablePropColumns<T>;
|
|
794
|
+
pivotColumns?: InfiniteTablePropColumnsMap<T, InfiniteTablePivotColumn<T>>;
|
|
795
|
+
loadingText?: Renderable;
|
|
796
|
+
components?: InfiniteTablePropComponents;
|
|
797
|
+
viewportReservedWidth?: number;
|
|
798
|
+
pivotColumn?: InfiniteTablePropPivotColumn<T, InfiniteTableColumn<T> & InfiniteTablePivotFinalColumn<T>>;
|
|
799
|
+
pivotTotalColumnPosition?: InfiniteTablePropPivotTotalColumnPosition;
|
|
800
|
+
groupColumn?: Partial<InfiniteTablePropGroupColumn<T>>;
|
|
801
|
+
groupRenderStrategy?: InfiniteTablePropGroupRenderStrategy;
|
|
802
|
+
hideEmptyGroupColumns?: boolean;
|
|
803
|
+
columnVisibility?: InfiniteTablePropColumnVisibility;
|
|
804
|
+
defaultColumnVisibility?: InfiniteTablePropColumnVisibility;
|
|
805
|
+
pinnedStartMaxWidth?: number;
|
|
806
|
+
pinnedEndMaxWidth?: number;
|
|
807
|
+
columnPinning?: InfiniteTablePropColumnPinning;
|
|
808
|
+
defaultColumnPinning?: InfiniteTablePropColumnPinning;
|
|
809
|
+
columnSizing?: InfiniteTablePropColumnSizing;
|
|
810
|
+
defaultColumnSizing?: InfiniteTablePropColumnSizing;
|
|
811
|
+
onColumnSizingChange?: (columnSizing: InfiniteTablePropColumnSizing) => void;
|
|
812
|
+
pivotColumnGroups?: InfiniteTablePropColumnGroups;
|
|
813
|
+
columnGroups?: InfiniteTablePropColumnGroups;
|
|
814
|
+
defaultColumnGroups?: InfiniteTablePropColumnGroups;
|
|
815
|
+
defaultCollapsedColumnGroups?: InfiniteTablePropCollapsedColumnGroups;
|
|
816
|
+
collapsedColumnGroups?: InfiniteTablePropCollapsedColumnGroups;
|
|
817
|
+
onScrollbarsChange?: (scrollbars: Scrollbars) => void;
|
|
818
|
+
onColumnVisibilityChange?: (columnVisibility: InfiniteTablePropColumnVisibility) => void;
|
|
819
|
+
columnTypes?: InfiniteTablePropColumnTypes<T>;
|
|
820
|
+
showSeparatePivotColumnForSingleAggregation?: boolean;
|
|
821
|
+
rowHeight: number | string;
|
|
822
|
+
rowStyle?: InfiniteTablePropRowStyle<T>;
|
|
823
|
+
rowClassName?: InfiniteTablePropRowClassName<T>;
|
|
824
|
+
headerHeight: number | string;
|
|
825
|
+
domProps?: React$1.HTMLProps<HTMLDivElement>;
|
|
826
|
+
showZebraRows?: boolean;
|
|
827
|
+
showHoverRows?: boolean;
|
|
828
|
+
sortable?: boolean;
|
|
829
|
+
draggableColumns?: boolean;
|
|
830
|
+
header?: boolean;
|
|
831
|
+
focusedClassName?: string;
|
|
832
|
+
focusedWithinClassName?: string;
|
|
833
|
+
focusedStyle?: React$1.CSSProperties;
|
|
834
|
+
focusedWithinStyle?: React$1.CSSProperties;
|
|
835
|
+
columnCssEllipsis?: boolean;
|
|
836
|
+
columnHeaderCssEllipsis?: boolean;
|
|
837
|
+
columnDefaultWidth?: number;
|
|
838
|
+
columnMinWidth?: number;
|
|
839
|
+
columnMaxWidth?: number;
|
|
840
|
+
resizableColumns?: boolean;
|
|
841
|
+
virtualizeColumns?: InfiniteTablePropVirtualizeColumns<T>;
|
|
842
|
+
virtualizeRows?: boolean;
|
|
843
|
+
defaultActiveIndex?: number;
|
|
844
|
+
activeIndex?: number;
|
|
845
|
+
onSelfFocus?: (event: React$1.FocusEvent<HTMLDivElement>) => void;
|
|
846
|
+
onSelfBlur?: (event: React$1.FocusEvent<HTMLDivElement>) => void;
|
|
847
|
+
onFocusWithin?: (event: React$1.FocusEvent<HTMLDivElement>) => void;
|
|
848
|
+
onBlurWithin?: (event: React$1.FocusEvent<HTMLDivElement>) => void;
|
|
849
|
+
onScrollToTop?: () => void;
|
|
850
|
+
onScrollToBottom?: () => void;
|
|
851
|
+
scrollStopDelay?: number;
|
|
852
|
+
onScrollStop?: (param: ScrollStopInfo) => void;
|
|
853
|
+
scrollToBottomOffset?: number;
|
|
854
|
+
defaultColumnOrder?: InfiniteTablePropColumnOrder;
|
|
855
|
+
columnOrder?: InfiniteTablePropColumnOrder;
|
|
856
|
+
onColumnOrderChange?: (columnOrder: InfiniteTablePropColumnOrder) => void;
|
|
857
|
+
onRowHeightChange?: (rowHeight: number) => void;
|
|
858
|
+
onReady?: (api: InfiniteTableImperativeApi<T>) => void;
|
|
859
|
+
rowProps?: React$1.HTMLProps<HTMLDivElement> | ((rowArgs: InfiniteTableRowStyleFnParams<T>) => React$1.HTMLProps<HTMLDivElement>);
|
|
860
|
+
licenseKey?: string;
|
|
861
|
+
scrollTopKey?: string | number;
|
|
862
|
+
autoSizeColumnsKey?: InfiniteTablePropAutoSizeColumnsKey;
|
|
863
|
+
}
|
|
864
|
+
declare type InfiniteTablePropAutoSizeColumnsKey = string | number | {
|
|
865
|
+
key: string | number;
|
|
866
|
+
columnsToSkip?: string[];
|
|
867
|
+
columnsToResize?: string[];
|
|
868
|
+
includeHeader?: boolean;
|
|
869
|
+
};
|
|
870
|
+
declare type Scrollbars = {
|
|
871
|
+
vertical: boolean;
|
|
872
|
+
horizontal: boolean;
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
declare class ScrollListener {
|
|
876
|
+
private scrollPosition;
|
|
877
|
+
private onScrollFns;
|
|
878
|
+
getScrollPosition: () => ScrollPosition;
|
|
879
|
+
onScroll: (fn: OnScrollFn) => () => void;
|
|
880
|
+
setScrollPosition: (scrollPosition: ScrollPosition) => void;
|
|
881
|
+
private notifyScrollChange;
|
|
882
|
+
destroy: () => void;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
interface InfiniteTableSetupState<T> {
|
|
886
|
+
propsCache: Map<keyof InfiniteTableProps<T>, WeakMap<any, any>>;
|
|
887
|
+
columnsWhenInlineGroupRenderStrategy?: Map<string, InfiniteTableColumn<T>>;
|
|
888
|
+
domRef: MutableRefObject<HTMLDivElement | null>;
|
|
889
|
+
scrollerDOMRef: MutableRefObject<HTMLDivElement | null>;
|
|
890
|
+
portalDOMRef: MutableRefObject<HTMLDivElement | null>;
|
|
891
|
+
onRowHeightCSSVarChange: SubscriptionCallback<number>;
|
|
892
|
+
onHeaderHeightCSSVarChange: SubscriptionCallback<number>;
|
|
893
|
+
columnsWhenGrouping?: InfiniteTablePropColumnsMap<T>;
|
|
894
|
+
bodySize: Size;
|
|
895
|
+
verticalVirtualBrain: VirtualBrain;
|
|
896
|
+
horizontalVirtualBrain: VirtualBrain;
|
|
897
|
+
focused: boolean;
|
|
898
|
+
ready: boolean;
|
|
899
|
+
focusedWithin: boolean;
|
|
900
|
+
scrollPosition: ScrollPosition;
|
|
901
|
+
draggingColumnId: null | string;
|
|
902
|
+
pinnedStartScrollListener: ScrollListener;
|
|
903
|
+
pinnedEndScrollListener: ScrollListener;
|
|
904
|
+
columnShifts: number[] | null;
|
|
905
|
+
}
|
|
906
|
+
declare type InfiniteTableColumnGroupsDepthsMap = Map<string, number>;
|
|
907
|
+
declare type InfiniteTablePropPivotTotalColumnPosition = false | 'start' | 'end';
|
|
908
|
+
interface InfiniteTableMappedState<T> {
|
|
909
|
+
scrollTopKey: InfiniteTableProps<T>['scrollTopKey'];
|
|
910
|
+
viewportReservedWidth: InfiniteTableProps<T>['viewportReservedWidth'];
|
|
911
|
+
groupColumn: InfiniteTableProps<T>['groupColumn'];
|
|
912
|
+
onScrollbarsChange: InfiniteTableProps<T>['onScrollbarsChange'];
|
|
913
|
+
loadingText: InfiniteTableProps<T>['loadingText'];
|
|
914
|
+
components: InfiniteTableProps<T>['components'];
|
|
915
|
+
columns: InfiniteTablePropColumnsMap<T>;
|
|
916
|
+
pivotColumns: InfiniteTableProps<T>['pivotColumns'];
|
|
917
|
+
onReady: InfiniteTableProps<T>['onReady'];
|
|
918
|
+
onSelfFocus: InfiniteTableProps<T>['onSelfFocus'];
|
|
919
|
+
onSelfBlur: InfiniteTableProps<T>['onSelfBlur'];
|
|
920
|
+
onFocusWithin: InfiniteTableProps<T>['onFocusWithin'];
|
|
921
|
+
onBlurWithin: InfiniteTableProps<T>['onBlurWithin'];
|
|
922
|
+
autoSizeColumnsKey: InfiniteTableProps<T>['autoSizeColumnsKey'];
|
|
923
|
+
scrollStopDelay: NonUndefined<InfiniteTableProps<T>['scrollStopDelay']>;
|
|
924
|
+
onScrollToTop: InfiniteTableProps<T>['onScrollToTop'];
|
|
925
|
+
onScrollToBottom: InfiniteTableProps<T>['onScrollToBottom'];
|
|
926
|
+
onScrollStop: InfiniteTableProps<T>['onScrollStop'];
|
|
927
|
+
scrollToBottomOffset: InfiniteTableProps<T>['scrollToBottomOffset'];
|
|
928
|
+
focusedClassName: InfiniteTableProps<T>['focusedClassName'];
|
|
929
|
+
focusedWithinClassName: InfiniteTableProps<T>['focusedWithinClassName'];
|
|
930
|
+
focusedStyle: InfiniteTableProps<T>['focusedStyle'];
|
|
931
|
+
focusedWithinStyle: InfiniteTableProps<T>['focusedWithinStyle'];
|
|
932
|
+
showSeparatePivotColumnForSingleAggregation: NonUndefined<InfiniteTableProps<T>['showSeparatePivotColumnForSingleAggregation']>;
|
|
933
|
+
domProps: InfiniteTableProps<T>['domProps'];
|
|
934
|
+
rowStyle: InfiniteTableProps<T>['rowStyle'];
|
|
935
|
+
rowProps: InfiniteTableProps<T>['rowProps'];
|
|
936
|
+
rowClassName: InfiniteTableProps<T>['rowClassName'];
|
|
937
|
+
pinnedStartMaxWidth: InfiniteTableProps<T>['pinnedStartMaxWidth'];
|
|
938
|
+
pinnedEndMaxWidth: InfiniteTableProps<T>['pinnedEndMaxWidth'];
|
|
939
|
+
pivotColumn: InfiniteTableProps<T>['pivotColumn'];
|
|
940
|
+
pivotColumnGroups: InfiniteTablePropColumnGroupsMap;
|
|
941
|
+
activeIndex: NonUndefined<InfiniteTableProps<T>['activeIndex']>;
|
|
942
|
+
columnMinWidth: NonUndefined<InfiniteTableProps<T>['columnMinWidth']>;
|
|
943
|
+
columnMaxWidth: NonUndefined<InfiniteTableProps<T>['columnMaxWidth']>;
|
|
944
|
+
columnDefaultWidth: NonUndefined<InfiniteTableProps<T>['columnDefaultWidth']>;
|
|
945
|
+
columnCssEllipsis: NonUndefined<InfiniteTableProps<T>['columnCssEllipsis']>;
|
|
946
|
+
draggableColumns: NonUndefined<InfiniteTableProps<T>['draggableColumns']>;
|
|
947
|
+
sortable: NonUndefined<InfiniteTableProps<T>['sortable']>;
|
|
948
|
+
hideEmptyGroupColumns: NonUndefined<InfiniteTableProps<T>['hideEmptyGroupColumns']>;
|
|
949
|
+
columnOrder: NonUndefined<InfiniteTableProps<T>['columnOrder']>;
|
|
950
|
+
showZebraRows: NonUndefined<InfiniteTableProps<T>['showZebraRows']>;
|
|
951
|
+
showHoverRows: NonUndefined<InfiniteTableProps<T>['showHoverRows']>;
|
|
952
|
+
header: NonUndefined<InfiniteTableProps<T>['header']>;
|
|
953
|
+
virtualizeColumns: NonUndefined<InfiniteTableProps<T>['virtualizeColumns']>;
|
|
954
|
+
rowHeight: number;
|
|
955
|
+
headerHeight: number;
|
|
956
|
+
licenseKey: NonUndefined<InfiniteTableProps<T>['licenseKey']>;
|
|
957
|
+
columnVisibility: InfiniteTablePropColumnVisibility;
|
|
958
|
+
columnPinning: InfiniteTablePropColumnPinningMap;
|
|
959
|
+
columnSizing: InfiniteTablePropColumnSizing;
|
|
960
|
+
columnTypes: InfiniteTablePropColumnTypes<T>;
|
|
961
|
+
columnGroups: InfiniteTablePropColumnGroupsMap;
|
|
962
|
+
collapsedColumnGroups: NonUndefined<InfiniteTableProps<T>['collapsedColumnGroups']>;
|
|
963
|
+
pivotTotalColumnPosition: NonUndefined<InfiniteTableProps<T>['pivotTotalColumnPosition']>;
|
|
964
|
+
}
|
|
965
|
+
interface InfiniteTableDerivedState<T> {
|
|
966
|
+
groupBy: DataSourceProps<T>['groupBy'];
|
|
967
|
+
computedColumns: Map<string, InfiniteTableColumn<T>>;
|
|
968
|
+
virtualizeHeader: boolean;
|
|
969
|
+
groupRenderStrategy: NonUndefined<InfiniteTableProps<T>['groupRenderStrategy']>;
|
|
970
|
+
columnHeaderCssEllipsis: NonUndefined<InfiniteTableProps<T>['columnHeaderCssEllipsis']>;
|
|
971
|
+
columnGroupsDepthsMap: InfiniteTableColumnGroupsDepthsMap;
|
|
972
|
+
columnGroupsMaxDepth: number;
|
|
973
|
+
computedColumnGroups: InfiniteTablePropColumnGroupsMap;
|
|
974
|
+
rowHeightCSSVar: string;
|
|
975
|
+
headerHeightCSSVar: string;
|
|
976
|
+
controlledColumnVisibility: boolean;
|
|
977
|
+
}
|
|
978
|
+
declare type InfiniteTableActions<T> = ComponentStateActions<InfiniteTableState<T>>;
|
|
979
|
+
interface InfiniteTableState<T> extends InfiniteTableMappedState<T>, InfiniteTableDerivedState<T>, InfiniteTableSetupState<T> {
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
declare enum InfiniteTableActionType {
|
|
983
|
+
SET_COLUMN_SIZE = 0,
|
|
984
|
+
SET_SCROLL_POSITION = 1,
|
|
985
|
+
SET_BODY_SIZE = 2,
|
|
986
|
+
SET_COLUMN_ORDER = 3,
|
|
987
|
+
SET_COLUMN_VISIBILITY = 4,
|
|
988
|
+
SET_COLUMN_SHIFTS = 5,
|
|
989
|
+
SET_COLUMN_PINNING = 6,
|
|
990
|
+
SET_COLUMN_AGGREGATIONS = 7,
|
|
991
|
+
SET_DRAGGING_COLUMN_ID = 8
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
declare type InfiniteTableAction = {
|
|
995
|
+
type: InfiniteTableActionType;
|
|
996
|
+
payload?: any;
|
|
997
|
+
};
|
|
998
|
+
|
|
999
|
+
interface InfiniteTableComputedValues<T> {
|
|
1000
|
+
rowSpan?: VirtualBrainOptions['itemSpan'];
|
|
1001
|
+
computedPinnedStartOverflow: boolean;
|
|
1002
|
+
computedPinnedEndOverflow: boolean;
|
|
1003
|
+
computedPinnedStartColumns: InfiniteTableComputedColumn<T>[];
|
|
1004
|
+
computedPinnedEndColumns: InfiniteTableComputedColumn<T>[];
|
|
1005
|
+
computedUnpinnedColumns: InfiniteTableComputedColumn<T>[];
|
|
1006
|
+
computedVisibleColumns: InfiniteTableComputedColumn<T>[];
|
|
1007
|
+
computedVisibleColumnsMap: Map<string, InfiniteTableComputedColumn<T>>;
|
|
1008
|
+
computedColumnVisibility: InfiniteTablePropColumnVisibility;
|
|
1009
|
+
computedColumnOrder: InfiniteTablePropColumnOrderNormalized;
|
|
1010
|
+
computedPinnedStartColumnsWidth: number;
|
|
1011
|
+
computedPinnedStartWidth: number;
|
|
1012
|
+
computedPinnedEndColumnsWidth: number;
|
|
1013
|
+
computedPinnedEndWidth: number;
|
|
1014
|
+
computedUnpinnedColumnsWidth: number;
|
|
1015
|
+
computedUnpinnedOffset: number;
|
|
1016
|
+
computedPinnedEndOffset: number;
|
|
1017
|
+
computedRemainingSpace: number;
|
|
1018
|
+
unpinnedColumnRenderCount: number;
|
|
1019
|
+
columnRenderStartIndex: number;
|
|
1020
|
+
toggleGroupRow: (groupKeys: any[]) => void;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
interface InfiniteTableContextValue<T> {
|
|
1024
|
+
componentState: InfiniteTableState<T>;
|
|
1025
|
+
componentActions: InfiniteTableActions<T>;
|
|
1026
|
+
computed: InfiniteTableComputedValues<T>;
|
|
1027
|
+
getComputed: () => InfiniteTableComputedValues<T>;
|
|
1028
|
+
getState: () => InfiniteTableState<T>;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
declare const InfiniteTableClassName: string;
|
|
1032
|
+
declare const InfiniteTableComponent: React$1.MemoExoticComponent<(<T>() => JSX.Element)>;
|
|
1033
|
+
declare function InfiniteTable<T>(props: InfiniteTableProps<T>): JSX.Element;
|
|
1034
|
+
declare namespace InfiniteTable {
|
|
1035
|
+
var defaultProps: {
|
|
2746
1036
|
rowHeight: number;
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
type ListRenderingResult = {
|
|
2769
|
-
scrollbars: Scrollbars;
|
|
2770
|
-
horizontalVirtualBrain: VirtualBrain;
|
|
2771
|
-
verticalVirtualBrain: VirtualBrain;
|
|
2772
|
-
applyScrollHorizontal: ({ scrollLeft }: {
|
|
2773
|
-
scrollLeft: number;
|
|
2774
|
-
}) => void;
|
|
2775
|
-
applyScrollVertical: ({ scrollTop }: {
|
|
2776
|
-
scrollTop: number;
|
|
2777
|
-
}) => void;
|
|
2778
|
-
pinnedStartList: JSX.Element | null;
|
|
2779
|
-
pinnedEndList: JSX.Element | null;
|
|
2780
|
-
pinnedStartScrollbarPlaceholder: JSX.Element | null;
|
|
2781
|
-
pinnedEndScrollbarPlaceholder: JSX.Element | null;
|
|
2782
|
-
centerList: JSX.Element | null;
|
|
2783
|
-
repaintId: number;
|
|
2784
|
-
reservedContentHeight: number;
|
|
2785
|
-
};
|
|
2786
|
-
export function useListRendering<T>(param: ListRenderingParam<T>): ListRenderingResult;
|
|
2787
|
-
}
|
|
2788
|
-
declare module "components/utils/decamelize" {
|
|
2789
|
-
export function decamelize(str: string, options?: {
|
|
2790
|
-
separator: string;
|
|
2791
|
-
}): string;
|
|
2792
|
-
}
|
|
2793
|
-
declare module "components/InfiniteTable/components/InfiniteTableLicenseFooter/index" {
|
|
2794
|
-
import * as React from 'react';
|
|
2795
|
-
export const InfiniteTableLicenseFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
2796
|
-
}
|
|
2797
|
-
declare module "components/InfiniteTable/hooks/useLicense/crc32" {
|
|
2798
|
-
export function crc32_compute_string(str: string, reversedPolynomial?: number): string;
|
|
2799
|
-
}
|
|
2800
|
-
declare module "components/InfiniteTable/hooks/useLicense/LicenseDetails" {
|
|
2801
|
-
export type LicenseDetails = {
|
|
2802
|
-
start: Date;
|
|
2803
|
-
end: Date;
|
|
2804
|
-
owner: string;
|
|
2805
|
-
distribution: boolean;
|
|
2806
|
-
trial: boolean;
|
|
2807
|
-
skipAirtable?: boolean;
|
|
2808
|
-
count?: number;
|
|
2809
|
-
timestamp?: number;
|
|
2810
|
-
ref: string;
|
|
2811
|
-
};
|
|
2812
|
-
}
|
|
2813
|
-
declare module "components/InfiniteTable/hooks/useLicense/decode" {
|
|
2814
|
-
import { LicenseDetails } from "components/InfiniteTable/hooks/useLicense/LicenseDetails";
|
|
2815
|
-
export const fieldsToLicenseDetails: (fields: {
|
|
2816
|
-
name: string;
|
|
2817
|
-
value: string;
|
|
2818
|
-
}[]) => LicenseDetails;
|
|
2819
|
-
export const logLicenseError: (lines: string[], fn?: (...line: string[]) => void) => void;
|
|
2820
|
-
export const isValidLicense: (licenseKey: string | undefined, packageInfo: {
|
|
2821
|
-
publishedAt: number;
|
|
2822
|
-
version: string;
|
|
2823
|
-
}, fn?: ((...args: string[]) => void) | undefined) => boolean;
|
|
2824
|
-
export const decode: (licenseKey: string) => LicenseDetails;
|
|
2825
|
-
}
|
|
2826
|
-
declare module "components/InfiniteTable/hooks/useLicense/useLicense" {
|
|
2827
|
-
export const useLicense: (licenseKey?: string) => boolean;
|
|
2828
|
-
}
|
|
2829
|
-
declare module "components/CSSVariableWatch" {
|
|
2830
|
-
import * as React from 'react';
|
|
2831
|
-
type CSSVariableWatcherProps = {
|
|
2832
|
-
varName: string;
|
|
2833
|
-
onChange: (value: number) => void;
|
|
2834
|
-
};
|
|
2835
|
-
export const useCSSVariableWatch: (params: CSSVariableWatcherProps & {
|
|
2836
|
-
ref: React.MutableRefObject<HTMLElement | null>;
|
|
2837
|
-
}) => void;
|
|
2838
|
-
export const CSSVariableWatch: (props: CSSVariableWatcherProps) => JSX.Element;
|
|
2839
|
-
}
|
|
2840
|
-
declare module "components/InfiniteTable/hooks/useDOMProps" {
|
|
2841
|
-
import { FocusEvent } from 'react';
|
|
2842
|
-
export function useDOMProps<T>(initialDOMProps?: React.HTMLProps<HTMLDivElement>): {
|
|
2843
|
-
onFocus: (event: FocusEvent<HTMLDivElement>) => void;
|
|
2844
|
-
onBlur: (event: FocusEvent<HTMLDivElement>) => void;
|
|
2845
|
-
accept?: string | undefined;
|
|
2846
|
-
acceptCharset?: string | undefined;
|
|
2847
|
-
action?: string | undefined;
|
|
2848
|
-
allowFullScreen?: boolean | undefined;
|
|
2849
|
-
allowTransparency?: boolean | undefined;
|
|
2850
|
-
alt?: string | undefined;
|
|
2851
|
-
as?: string | undefined;
|
|
2852
|
-
async?: boolean | undefined;
|
|
2853
|
-
autoComplete?: string | undefined;
|
|
2854
|
-
autoFocus?: boolean | undefined;
|
|
2855
|
-
autoPlay?: boolean | undefined;
|
|
2856
|
-
capture?: string | boolean | undefined;
|
|
2857
|
-
cellPadding?: string | number | undefined;
|
|
2858
|
-
cellSpacing?: string | number | undefined;
|
|
2859
|
-
charSet?: string | undefined;
|
|
2860
|
-
challenge?: string | undefined;
|
|
2861
|
-
checked?: boolean | undefined;
|
|
2862
|
-
cite?: string | undefined;
|
|
2863
|
-
classID?: string | undefined;
|
|
2864
|
-
cols?: number | undefined;
|
|
2865
|
-
colSpan?: number | undefined;
|
|
2866
|
-
content?: string | undefined;
|
|
2867
|
-
controls?: boolean | undefined;
|
|
2868
|
-
coords?: string | undefined;
|
|
2869
|
-
crossOrigin?: string | undefined;
|
|
2870
|
-
data?: string | undefined;
|
|
2871
|
-
dateTime?: string | undefined;
|
|
2872
|
-
default?: boolean | undefined;
|
|
2873
|
-
defer?: boolean | undefined;
|
|
2874
|
-
disabled?: boolean | undefined;
|
|
2875
|
-
download?: any;
|
|
2876
|
-
encType?: string | undefined;
|
|
2877
|
-
form?: string | undefined;
|
|
2878
|
-
formAction?: string | undefined;
|
|
2879
|
-
formEncType?: string | undefined;
|
|
2880
|
-
formMethod?: string | undefined;
|
|
2881
|
-
formNoValidate?: boolean | undefined;
|
|
2882
|
-
formTarget?: string | undefined;
|
|
2883
|
-
frameBorder?: string | number | undefined;
|
|
2884
|
-
headers?: string | undefined;
|
|
2885
|
-
height?: string | number | undefined;
|
|
2886
|
-
high?: number | undefined;
|
|
2887
|
-
href?: string | undefined;
|
|
2888
|
-
hrefLang?: string | undefined;
|
|
2889
|
-
htmlFor?: string | undefined;
|
|
2890
|
-
httpEquiv?: string | undefined;
|
|
2891
|
-
integrity?: string | undefined;
|
|
2892
|
-
keyParams?: string | undefined;
|
|
2893
|
-
keyType?: string | undefined;
|
|
2894
|
-
kind?: string | undefined;
|
|
2895
|
-
label?: string | undefined;
|
|
2896
|
-
list?: string | undefined;
|
|
2897
|
-
loop?: boolean | undefined;
|
|
2898
|
-
low?: number | undefined;
|
|
2899
|
-
manifest?: string | undefined;
|
|
2900
|
-
marginHeight?: number | undefined;
|
|
2901
|
-
marginWidth?: number | undefined;
|
|
2902
|
-
max?: string | number | undefined;
|
|
2903
|
-
maxLength?: number | undefined;
|
|
2904
|
-
media?: string | undefined;
|
|
2905
|
-
mediaGroup?: string | undefined;
|
|
2906
|
-
method?: string | undefined;
|
|
2907
|
-
min?: string | number | undefined;
|
|
2908
|
-
minLength?: number | undefined;
|
|
2909
|
-
multiple?: boolean | undefined;
|
|
2910
|
-
muted?: boolean | undefined;
|
|
2911
|
-
name?: string | undefined;
|
|
2912
|
-
nonce?: string | undefined;
|
|
2913
|
-
noValidate?: boolean | undefined;
|
|
2914
|
-
open?: boolean | undefined;
|
|
2915
|
-
optimum?: number | undefined;
|
|
2916
|
-
pattern?: string | undefined;
|
|
2917
|
-
placeholder?: string | undefined;
|
|
2918
|
-
playsInline?: boolean | undefined;
|
|
2919
|
-
poster?: string | undefined;
|
|
2920
|
-
preload?: string | undefined;
|
|
2921
|
-
readOnly?: boolean | undefined;
|
|
2922
|
-
rel?: string | undefined;
|
|
2923
|
-
required?: boolean | undefined;
|
|
2924
|
-
reversed?: boolean | undefined;
|
|
2925
|
-
rows?: number | undefined;
|
|
2926
|
-
rowSpan?: number | undefined;
|
|
2927
|
-
sandbox?: string | undefined;
|
|
2928
|
-
scope?: string | undefined;
|
|
2929
|
-
scoped?: boolean | undefined;
|
|
2930
|
-
scrolling?: string | undefined;
|
|
2931
|
-
seamless?: boolean | undefined;
|
|
2932
|
-
selected?: boolean | undefined;
|
|
2933
|
-
shape?: string | undefined;
|
|
2934
|
-
size?: number | undefined;
|
|
2935
|
-
sizes?: string | undefined;
|
|
2936
|
-
span?: number | undefined;
|
|
2937
|
-
src?: string | undefined;
|
|
2938
|
-
srcDoc?: string | undefined;
|
|
2939
|
-
srcLang?: string | undefined;
|
|
2940
|
-
srcSet?: string | undefined;
|
|
2941
|
-
start?: number | undefined;
|
|
2942
|
-
step?: string | number | undefined;
|
|
2943
|
-
summary?: string | undefined;
|
|
2944
|
-
target?: string | undefined;
|
|
2945
|
-
type?: string | undefined;
|
|
2946
|
-
useMap?: string | undefined;
|
|
2947
|
-
value?: string | number | readonly string[] | undefined;
|
|
2948
|
-
width?: string | number | undefined;
|
|
2949
|
-
wmode?: string | undefined;
|
|
2950
|
-
wrap?: string | undefined;
|
|
2951
|
-
defaultChecked?: boolean | undefined;
|
|
2952
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
2953
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
2954
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
2955
|
-
accessKey?: string | undefined;
|
|
2956
|
-
className?: string | undefined;
|
|
2957
|
-
contentEditable?: "inherit" | (boolean | "false" | "true") | undefined;
|
|
2958
|
-
contextMenu?: string | undefined;
|
|
2959
|
-
dir?: string | undefined;
|
|
2960
|
-
draggable?: (boolean | "false" | "true") | undefined;
|
|
2961
|
-
hidden?: boolean | undefined;
|
|
2962
|
-
id?: string | undefined;
|
|
2963
|
-
lang?: string | undefined;
|
|
2964
|
-
slot?: string | undefined;
|
|
2965
|
-
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
2966
|
-
style?: import("react").CSSProperties | undefined;
|
|
2967
|
-
tabIndex: number;
|
|
2968
|
-
title?: string | undefined;
|
|
2969
|
-
translate?: "yes" | "no" | undefined;
|
|
2970
|
-
radioGroup?: string | undefined;
|
|
2971
|
-
role?: import("react").AriaRole | undefined;
|
|
2972
|
-
about?: string | undefined;
|
|
2973
|
-
datatype?: string | undefined;
|
|
2974
|
-
inlist?: any;
|
|
2975
|
-
prefix?: string | undefined;
|
|
2976
|
-
property?: string | undefined;
|
|
2977
|
-
resource?: string | undefined;
|
|
2978
|
-
typeof?: string | undefined;
|
|
2979
|
-
vocab?: string | undefined;
|
|
2980
|
-
autoCapitalize?: string | undefined;
|
|
2981
|
-
autoCorrect?: string | undefined;
|
|
2982
|
-
autoSave?: string | undefined;
|
|
2983
|
-
color?: string | undefined;
|
|
2984
|
-
itemProp?: string | undefined;
|
|
2985
|
-
itemScope?: boolean | undefined;
|
|
2986
|
-
itemType?: string | undefined;
|
|
2987
|
-
itemID?: string | undefined;
|
|
2988
|
-
itemRef?: string | undefined;
|
|
2989
|
-
results?: number | undefined;
|
|
2990
|
-
security?: string | undefined;
|
|
2991
|
-
unselectable?: "on" | "off" | undefined;
|
|
2992
|
-
inputMode?: "search" | "numeric" | "none" | "url" | "text" | "decimal" | "tel" | "email" | undefined;
|
|
2993
|
-
is?: string | undefined;
|
|
2994
|
-
'aria-activedescendant'?: string | undefined;
|
|
2995
|
-
'aria-atomic'?: boolean | "false" | "true" | undefined;
|
|
2996
|
-
'aria-autocomplete'?: "inline" | "both" | "none" | "list" | undefined;
|
|
2997
|
-
'aria-busy'?: boolean | "false" | "true" | undefined;
|
|
2998
|
-
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
2999
|
-
'aria-colcount'?: number | undefined;
|
|
3000
|
-
'aria-colindex'?: number | undefined;
|
|
3001
|
-
'aria-colspan'?: number | undefined;
|
|
3002
|
-
'aria-controls'?: string | undefined;
|
|
3003
|
-
'aria-current'?: boolean | "location" | "time" | "false" | "page" | "true" | "step" | "date" | undefined;
|
|
3004
|
-
'aria-describedby'?: string | undefined;
|
|
3005
|
-
'aria-details'?: string | undefined;
|
|
3006
|
-
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
|
3007
|
-
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
3008
|
-
'aria-errormessage'?: string | undefined;
|
|
3009
|
-
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
|
3010
|
-
'aria-flowto'?: string | undefined;
|
|
3011
|
-
'aria-grabbed'?: boolean | "false" | "true" | undefined;
|
|
3012
|
-
'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "false" | "listbox" | "true" | "tree" | undefined;
|
|
3013
|
-
'aria-hidden'?: boolean | "false" | "true" | undefined;
|
|
3014
|
-
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
3015
|
-
'aria-keyshortcuts'?: string | undefined;
|
|
3016
|
-
'aria-label'?: string | undefined;
|
|
3017
|
-
'aria-labelledby'?: string | undefined;
|
|
3018
|
-
'aria-level'?: number | undefined;
|
|
3019
|
-
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
3020
|
-
'aria-modal'?: boolean | "false" | "true" | undefined;
|
|
3021
|
-
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
|
3022
|
-
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
|
3023
|
-
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
3024
|
-
'aria-owns'?: string | undefined;
|
|
3025
|
-
'aria-placeholder'?: string | undefined;
|
|
3026
|
-
'aria-posinset'?: number | undefined;
|
|
3027
|
-
'aria-pressed'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
3028
|
-
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
|
3029
|
-
'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
3030
|
-
'aria-required'?: boolean | "false" | "true" | undefined;
|
|
3031
|
-
'aria-roledescription'?: string | undefined;
|
|
3032
|
-
'aria-rowcount'?: number | undefined;
|
|
3033
|
-
'aria-rowindex'?: number | undefined;
|
|
3034
|
-
'aria-rowspan'?: number | undefined;
|
|
3035
|
-
'aria-selected'?: boolean | "false" | "true" | undefined;
|
|
3036
|
-
'aria-setsize'?: number | undefined;
|
|
3037
|
-
'aria-sort'?: "none" | "other" | "ascending" | "descending" | undefined;
|
|
3038
|
-
'aria-valuemax'?: number | undefined;
|
|
3039
|
-
'aria-valuemin'?: number | undefined;
|
|
3040
|
-
'aria-valuenow'?: number | undefined;
|
|
3041
|
-
'aria-valuetext'?: string | undefined;
|
|
3042
|
-
children?: import("react").ReactNode;
|
|
3043
|
-
dangerouslySetInnerHTML?: {
|
|
3044
|
-
__html: string;
|
|
3045
|
-
} | undefined;
|
|
3046
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
3047
|
-
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
3048
|
-
onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
3049
|
-
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
3050
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
3051
|
-
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
3052
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
3053
|
-
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
3054
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
3055
|
-
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
3056
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
3057
|
-
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
3058
|
-
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
3059
|
-
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
3060
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3061
|
-
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3062
|
-
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3063
|
-
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3064
|
-
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3065
|
-
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3066
|
-
onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3067
|
-
onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3068
|
-
onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3069
|
-
onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3070
|
-
onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3071
|
-
onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
3072
|
-
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3073
|
-
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3074
|
-
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3075
|
-
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3076
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
3077
|
-
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
3078
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
3079
|
-
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
3080
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
3081
|
-
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
3082
|
-
onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3083
|
-
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3084
|
-
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3085
|
-
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3086
|
-
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3087
|
-
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3088
|
-
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3089
|
-
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3090
|
-
onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3091
|
-
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3092
|
-
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3093
|
-
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3094
|
-
onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3095
|
-
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3096
|
-
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3097
|
-
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3098
|
-
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3099
|
-
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3100
|
-
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3101
|
-
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3102
|
-
onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3103
|
-
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3104
|
-
onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3105
|
-
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3106
|
-
onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3107
|
-
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3108
|
-
onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3109
|
-
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3110
|
-
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3111
|
-
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3112
|
-
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3113
|
-
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3114
|
-
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3115
|
-
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3116
|
-
onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3117
|
-
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3118
|
-
onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3119
|
-
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3120
|
-
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3121
|
-
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3122
|
-
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3123
|
-
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3124
|
-
onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3125
|
-
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3126
|
-
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3127
|
-
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3128
|
-
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3129
|
-
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3130
|
-
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3131
|
-
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3132
|
-
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3133
|
-
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3134
|
-
onDrag?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3135
|
-
onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3136
|
-
onDragEnd?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3137
|
-
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3138
|
-
onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3139
|
-
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3140
|
-
onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3141
|
-
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3142
|
-
onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3143
|
-
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3144
|
-
onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3145
|
-
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3146
|
-
onDragStart?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3147
|
-
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3148
|
-
onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3149
|
-
onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
3150
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3151
|
-
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3152
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3153
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3154
|
-
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3155
|
-
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3156
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3157
|
-
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3158
|
-
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3159
|
-
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3160
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3161
|
-
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
3162
|
-
onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3163
|
-
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
3164
|
-
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
3165
|
-
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
3166
|
-
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
3167
|
-
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
3168
|
-
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
3169
|
-
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
3170
|
-
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
3171
|
-
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
3172
|
-
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3173
|
-
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3174
|
-
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3175
|
-
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3176
|
-
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3177
|
-
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3178
|
-
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3179
|
-
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3180
|
-
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3181
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3182
|
-
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3183
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3184
|
-
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3185
|
-
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3186
|
-
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3187
|
-
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3188
|
-
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3189
|
-
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3190
|
-
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3191
|
-
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
3192
|
-
onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
3193
|
-
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
3194
|
-
onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
3195
|
-
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
3196
|
-
onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
3197
|
-
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
3198
|
-
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
3199
|
-
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
3200
|
-
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
3201
|
-
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
3202
|
-
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
3203
|
-
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
3204
|
-
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
3205
|
-
key?: import("react").Key | null | undefined;
|
|
3206
|
-
};
|
|
3207
|
-
}
|
|
3208
|
-
declare module "components/InfiniteTable/index" {
|
|
3209
|
-
import * as React from 'react';
|
|
3210
|
-
import type { InfiniteTableProps } from "components/InfiniteTable/types/index";
|
|
3211
|
-
export const InfiniteTableClassName: string;
|
|
3212
|
-
export const InfiniteTableComponent: React.MemoExoticComponent<(<T>() => JSX.Element)>;
|
|
3213
|
-
export function InfiniteTable<T>(props: InfiniteTableProps<T>): JSX.Element;
|
|
3214
|
-
export namespace InfiniteTable {
|
|
3215
|
-
var defaultProps: {
|
|
3216
|
-
rowHeight: number;
|
|
3217
|
-
headerHeight: import("@vanilla-extract/private").CSSVarFunction;
|
|
3218
|
-
};
|
|
3219
|
-
}
|
|
3220
|
-
export * from "components/InfiniteTable/types/index";
|
|
3221
|
-
}
|
|
3222
|
-
declare module "@infinite-table/infinite-react" {
|
|
3223
|
-
export * from "components/InfiniteTable/index";
|
|
3224
|
-
export * from "components/DataSource/index";
|
|
3225
|
-
export { group, flatten } from "utils/groupAndPivot/index";
|
|
3226
|
-
export { useComponentState, getComponentStateRoot, } from "components/hooks/useComponentState";
|
|
3227
|
-
export { interceptMap } from "components/hooks/useInterceptedMap";
|
|
3228
|
-
export { useEffectWithChanges } from "components/hooks/useEffectWithChanges";
|
|
3229
|
-
}
|
|
1037
|
+
headerHeight: _vanilla_extract_private.CSSVarFunction;
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
declare type InterceptedMapFns<K, V> = {
|
|
1042
|
+
set?: (k: K, v: V) => void;
|
|
1043
|
+
beforeClear?: (map: Map<K, V>) => void;
|
|
1044
|
+
clear?: () => void;
|
|
1045
|
+
delete?: (k: K) => void;
|
|
1046
|
+
};
|
|
1047
|
+
/**
|
|
1048
|
+
*
|
|
1049
|
+
* @param map Map to intercept
|
|
1050
|
+
* @param fns fns to inject
|
|
1051
|
+
* @returns a function to restore the map to initial methods
|
|
1052
|
+
*/
|
|
1053
|
+
declare function interceptMap<K, V>(map: Map<K, V>, fns: InterceptedMapFns<K, V>): () => void;
|
|
1054
|
+
|
|
1055
|
+
declare function useEffectWithChanges(fn: (changes: Record<string, any>, prevValues: Record<string, any>) => void | (() => void), deps: Record<string, any>): void;
|
|
1056
|
+
|
|
1057
|
+
export { DataSource, DataSourceAction, DataSourceActionType, DataSourceAggregationReducer, DataSourceComponentActions, DataSourceContextValue, DataSourceData, DataSourceDataParams, DataSourceDataParamsChanges, DataSourceDerivedState, DataSourceExpandedAndCollapsedGroupRows, DataSourceGroupBy, DataSourceGroupRowsList, DataSourceLivePaginationCursorFn, DataSourceLivePaginationCursorParams, DataSourceLivePaginationCursorValue, DataSourceMappedState, DataSourceMappings, DataSourcePivotBy, DataSourcePropAggregationReducers, DataSourcePropGroupBy, DataSourcePropLivePaginationCursor, DataSourcePropPivotBy, DataSourceProps, DataSourceReducer, DataSourceRemoteData, DataSourceSetupState, DataSourceSingleSortInfo, DataSourceSortInfo, DataSourceState, GroupRowsState, InfiniteTable, InfiniteTableAction, InfiniteTableActionType, InfiniteTableClassName, InfiniteTableColumn, InfiniteTableColumnAggregator, InfiniteTableColumnComparer, InfiniteTableColumnGroup, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableColumnRowspanParam, InfiniteTableColumnSizingOptions, InfiniteTableComponent, InfiniteTableComputedColumn, InfiniteTableComputedValues, InfiniteTableContextValue, InfiniteTableGroupColumnBase, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnGetterOptions, InfiniteTableImperativeApi, InfiniteTablePropAutoSizeColumnsKey, InfiniteTablePropColumnGroups, InfiniteTablePropColumnOrder, InfiniteTablePropColumnPinning, InfiniteTablePropColumnSizing, InfiniteTablePropColumnTypes, InfiniteTablePropColumnVisibility, InfiniteTablePropColumns, InfiniteTablePropColumnsMap, InfiniteTablePropComponents, InfiniteTablePropGroupColumn, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropRowClassName, InfiniteTablePropRowStyle, InfiniteTableProps, InfiniteTableRowClassNameFn, InfiniteTableRowInfo, InfiniteTableRowStyleFn, InfiniteTableState, LazyGroupDataDeepMap, LazyGroupDataItem, LazyGroupRowInfo, Scrollbars, flatten, getComponentStateRoot, group, interceptMap, multisort, useComponentState, useDataSource, useEffectWithChanges };
|