@infinite-table/infinite-react 0.0.2-canary.6 → 0.0.5
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 +43 -37
- package/index.d.ts +157 -87
- package/index.esm.css +43 -37
- package/index.esm.js +270 -239
- package/index.js +268 -237
- package/package.json +3 -3
package/index.css
CHANGED
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/utilities.css.ts.vanilla.css?source=
|
|
194
|
+
/* vanilla-extract-css-ns:@infinite-table/infinite-react/src/components/InfiniteTable/utilities.css.ts.vanilla.css?source=Ll8xNmxtMWl3MCB7CiAgYm94LXNpemluZzogYm9yZGVyLWJveDsKfQouXzE2bG0xaXcwOmJlZm9yZSB7CiAgYm94LXNpemluZzogYm9yZGVyLWJveDsKfQouXzE2bG0xaXcwOmFmdGVyIHsKICBib3gtc2l6aW5nOiBib3JkZXItYm94Owp9Ci5fMTZsbTFpdzAgKiB7CiAgYm94LXNpemluZzogYm9yZGVyLWJveDsKfQouXzE2bG0xaXcwICo6YmVmb3JlIHsKICBib3gtc2l6aW5nOiBib3JkZXItYm94Owp9Ci5fMTZsbTFpdzAgKjphZnRlciB7CiAgYm94LXNpemluZzogYm9yZGVyLWJveDsKfQouXzE2bG0xaXcxIHsKICBwb3NpdGlvbjogcmVsYXRpdmU7Cn0KLl8xNmxtMWl3MiB7CiAgcG9zaXRpb246IGFic29sdXRlOwp9Ci5fMTZsbTFpdzMgewogIHBvc2l0aW9uOiBzdGlja3k7Cn0KLl8xNmxtMWl3NCB7CiAgcG9zaXRpb246IGZpeGVkOwp9Ci5fMTZsbTFpdzUgewogIGZpbGw6IGN1cnJlbnRDb2xvcjsKfQouXzE2bG0xaXc2IHsKICBmaWxsOiB2YXIoLS1pbmZpbml0ZS1hY2NlbnQtY29sb3IpOwp9Ci5fMTZsbTFpdzcgewogIGJhY2tncm91bmQ6IGluaGVyaXQ7Cn0KLl8xNmxtMWl3OCB7CiAgdHJhbnNmb3JtOiB0cmFuc2xhdGUzZCgwLDAsMCk7Cn0KLl8xNmxtMWl3OSB7CiAgdHJhbnNmb3JtOiB0cmFuc2xhdGUzZCgwLDAsMCk7Cn0KLl8xNmxtMWl3YSB7CiAgdHJhbnNmb3JtOiByb3RhdGUoOTBkZWcpOwp9Ci5fMTZsbTFpd2IgewogIGN1cnNvcjogcG9pbnRlcjsKfQouXzE2bG0xaXdjIHsKICBmbGV4OiAxOwp9Ci5fMTZsbTFpd2QgewogIGZsZXg6IG5vbmU7Cn0KLl8xNmxtMWl3ZSB7CiAgei1pbmRleDogMTsKfQouXzE2bG0xaXdmIHsKICB6LWluZGV4OiAxMDsKfQouXzE2bG0xaXdnIHsKICB6LWluZGV4OiAxMDAwOwp9Ci5fMTZsbTFpd2ggewogIHotaW5kZXg6IDEwMDAwOwp9Ci5fMTZsbTFpd2kgewogIHotaW5kZXg6IDEwMDAwMDsKfQouXzE2bG0xaXdqIHsKICBkaXNwbGF5OiBmbGV4Owp9Ci5fMTZsbTFpd2sgewogIGRpc3BsYXk6IGJsb2NrOwp9Ci5fMTZsbTFpd2wgewogIGRpc3BsYXk6IGlubGluZS1ibG9jazsKfQouXzE2bG0xaXdtIHsKICB1c2VyLXNlbGVjdDogbm9uZTsKfQouXzE2bG0xaXduIHsKICBoZWlnaHQ6IDA7Cn0KLl8xNmxtMWl3byB7CiAgaGVpZ2h0OiAxMDAlOwp9Ci5fMTZsbTFpd3AgewogIHdpZHRoOiAwOwp9Ci5fMTZsbTFpd3EgewogIHdpZHRoOiAxMDAlOwp9Ci5fMTZsbTFpd3IgewogIHRvcDogMDsKfQouXzE2bG0xaXdzIHsKICB0b3A6IDEwMCU7Cn0KLl8xNmxtMWl3dCB7CiAgbGVmdDogMDsKfQouXzE2bG0xaXd1IHsKICBsZWZ0OiAxMDAlOwp9Ci5fMTZsbTFpd3YgewogIGJvdHRvbTogMDsKfQouXzE2bG0xaXd3IHsKICBib3R0b206IDEwMCU7Cn0KLl8xNmxtMWl3eCB7CiAgcmlnaHQ6IDA7Cn0KLl8xNmxtMWl3eSB7CiAgcmlnaHQ6IDEwMCU7Cn0KLl8xNmxtMWl3eiB7CiAgZmxleC1mbG93OiBjb2x1bW47Cn0KLl8xNmxtMWl3MTAgewogIGZsZXgtZmxvdzogcm93Owp9Ci5fMTZsbTFpdzExIHsKICBhbGlnbi1pdGVtczogY2VudGVyOwp9Ci5fMTZsbTFpdzEyIHsKICBhbGlnbi1pdGVtczogc3RyZXRjaDsKfQouXzE2bG0xaXcxMyB7CiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7Cn0KLl8xNmxtMWl3MTQgewogIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDsKfQouXzE2bG0xaXcxNSB7CiAganVzdGlmeS1jb250ZW50OiBmbGV4LWVuZDsKfQouXzE2bG0xaXcxNiB7CiAgb3ZlcmZsb3c6IGhpZGRlbjsKfQouXzE2bG0xaXcxNyB7CiAgb3ZlcmZsb3c6IGF1dG87Cn0KLl8xNmxtMWl3MTggewogIG92ZXJmbG93OiB2aXNpYmxlOwp9Ci5fMTZsbTFpdzE5IHsKICB3aWxsLWNoYW5nZTogdHJhbnNmb3JtOwp9Ci5fMTZsbTFpdzFhIHsKICB3aGl0ZS1zcGFjZTogbm93cmFwOwp9Ci5fMTZsbTFpdzFiIHsKICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpczsKfQ== */
|
|
195
195
|
._16lm1iw0 {
|
|
196
196
|
box-sizing: border-box;
|
|
197
197
|
}
|
|
@@ -236,117 +236,123 @@
|
|
|
236
236
|
transform: translate3d(0, 0, 0);
|
|
237
237
|
}
|
|
238
238
|
._16lm1iw9 {
|
|
239
|
-
|
|
239
|
+
transform: translate3d(0, 0, 0);
|
|
240
240
|
}
|
|
241
241
|
._16lm1iwa {
|
|
242
|
-
|
|
242
|
+
transform: rotate(90deg);
|
|
243
243
|
}
|
|
244
244
|
._16lm1iwb {
|
|
245
|
-
|
|
245
|
+
cursor: pointer;
|
|
246
246
|
}
|
|
247
247
|
._16lm1iwc {
|
|
248
|
-
|
|
248
|
+
flex: 1;
|
|
249
249
|
}
|
|
250
250
|
._16lm1iwd {
|
|
251
|
-
|
|
251
|
+
flex: none;
|
|
252
252
|
}
|
|
253
253
|
._16lm1iwe {
|
|
254
|
-
z-index:
|
|
254
|
+
z-index: 1;
|
|
255
255
|
}
|
|
256
256
|
._16lm1iwf {
|
|
257
|
-
z-index:
|
|
257
|
+
z-index: 10;
|
|
258
258
|
}
|
|
259
259
|
._16lm1iwg {
|
|
260
|
-
z-index:
|
|
260
|
+
z-index: 1000;
|
|
261
261
|
}
|
|
262
262
|
._16lm1iwh {
|
|
263
|
-
|
|
263
|
+
z-index: 10000;
|
|
264
264
|
}
|
|
265
265
|
._16lm1iwi {
|
|
266
|
-
|
|
266
|
+
z-index: 100000;
|
|
267
267
|
}
|
|
268
268
|
._16lm1iwj {
|
|
269
|
-
display:
|
|
269
|
+
display: flex;
|
|
270
270
|
}
|
|
271
271
|
._16lm1iwk {
|
|
272
|
+
display: block;
|
|
273
|
+
}
|
|
274
|
+
._16lm1iwl {
|
|
275
|
+
display: inline-block;
|
|
276
|
+
}
|
|
277
|
+
._16lm1iwm {
|
|
272
278
|
-webkit-user-select: none;
|
|
273
279
|
-moz-user-select: none;
|
|
274
280
|
-ms-user-select: none;
|
|
275
281
|
user-select: none;
|
|
276
282
|
}
|
|
277
|
-
.
|
|
283
|
+
._16lm1iwn {
|
|
278
284
|
height: 0;
|
|
279
285
|
}
|
|
280
|
-
.
|
|
286
|
+
._16lm1iwo {
|
|
281
287
|
height: 100%;
|
|
282
288
|
}
|
|
283
|
-
.
|
|
289
|
+
._16lm1iwp {
|
|
284
290
|
width: 0;
|
|
285
291
|
}
|
|
286
|
-
.
|
|
292
|
+
._16lm1iwq {
|
|
287
293
|
width: 100%;
|
|
288
294
|
}
|
|
289
|
-
.
|
|
295
|
+
._16lm1iwr {
|
|
290
296
|
top: 0;
|
|
291
297
|
}
|
|
292
|
-
.
|
|
298
|
+
._16lm1iws {
|
|
293
299
|
top: 100%;
|
|
294
300
|
}
|
|
295
|
-
.
|
|
301
|
+
._16lm1iwt {
|
|
296
302
|
left: 0;
|
|
297
303
|
}
|
|
298
|
-
.
|
|
304
|
+
._16lm1iwu {
|
|
299
305
|
left: 100%;
|
|
300
306
|
}
|
|
301
|
-
.
|
|
307
|
+
._16lm1iwv {
|
|
302
308
|
bottom: 0;
|
|
303
309
|
}
|
|
304
|
-
.
|
|
310
|
+
._16lm1iww {
|
|
305
311
|
bottom: 100%;
|
|
306
312
|
}
|
|
307
|
-
.
|
|
313
|
+
._16lm1iwx {
|
|
308
314
|
right: 0;
|
|
309
315
|
}
|
|
310
|
-
.
|
|
316
|
+
._16lm1iwy {
|
|
311
317
|
right: 100%;
|
|
312
318
|
}
|
|
313
|
-
.
|
|
319
|
+
._16lm1iwz {
|
|
314
320
|
flex-flow: column;
|
|
315
321
|
}
|
|
316
|
-
.
|
|
322
|
+
._16lm1iw10 {
|
|
317
323
|
flex-flow: row;
|
|
318
324
|
}
|
|
319
|
-
.
|
|
325
|
+
._16lm1iw11 {
|
|
320
326
|
align-items: center;
|
|
321
327
|
}
|
|
322
|
-
.
|
|
328
|
+
._16lm1iw12 {
|
|
323
329
|
align-items: stretch;
|
|
324
330
|
}
|
|
325
|
-
.
|
|
331
|
+
._16lm1iw13 {
|
|
326
332
|
justify-content: center;
|
|
327
333
|
}
|
|
328
|
-
.
|
|
334
|
+
._16lm1iw14 {
|
|
329
335
|
justify-content: flex-start;
|
|
330
336
|
}
|
|
331
|
-
.
|
|
337
|
+
._16lm1iw15 {
|
|
332
338
|
justify-content: flex-end;
|
|
333
339
|
}
|
|
334
|
-
.
|
|
340
|
+
._16lm1iw16 {
|
|
335
341
|
overflow: hidden;
|
|
336
342
|
}
|
|
337
|
-
.
|
|
343
|
+
._16lm1iw17 {
|
|
338
344
|
overflow: auto;
|
|
339
345
|
}
|
|
340
|
-
.
|
|
346
|
+
._16lm1iw18 {
|
|
341
347
|
overflow: visible;
|
|
342
348
|
}
|
|
343
|
-
.
|
|
349
|
+
._16lm1iw19 {
|
|
344
350
|
will-change: transform;
|
|
345
351
|
}
|
|
346
|
-
.
|
|
352
|
+
._16lm1iw1a {
|
|
347
353
|
white-space: nowrap;
|
|
348
354
|
}
|
|
349
|
-
.
|
|
355
|
+
._16lm1iw1b {
|
|
350
356
|
text-overflow: ellipsis;
|
|
351
357
|
}
|
|
352
358
|
|
package/index.d.ts
CHANGED
|
@@ -147,6 +147,7 @@ declare module "components/hooks/useComponentState" {
|
|
|
147
147
|
[propName in keyof TYPE_PROPS & keyof TYPE_RESULT]: 1 | ((value: TYPE_PROPS[propName]) => TYPE_RESULT[propName]);
|
|
148
148
|
}>;
|
|
149
149
|
type ComponentStateRootConfig<T_PROPS, COMPONENT_MAPPED_STATE, COMPONENT_SETUP_STATE = {}, COMPONENT_DERIVED_STATE = {}, T_ACTIONS = {}, T_PARENT_STATE = {}> = {
|
|
150
|
+
debugName?: string;
|
|
150
151
|
initSetupState?: () => COMPONENT_SETUP_STATE;
|
|
151
152
|
forwardProps?: () => ForwardPropsToStateFnResult<T_PROPS, COMPONENT_MAPPED_STATE>;
|
|
152
153
|
allowedControlledPropOverrides?: Record<keyof T_PROPS, true>;
|
|
@@ -326,48 +327,9 @@ declare module "components/DataSource/state/getInitialState" {
|
|
|
326
327
|
state: DataSourceState<T>;
|
|
327
328
|
}): DataSourceDerivedState<T>;
|
|
328
329
|
}
|
|
329
|
-
declare module "components/DataSource/state/reducer" {
|
|
330
|
-
import type { DataSourceState, DataSourceDerivedState } from "components/DataSource/types";
|
|
331
|
-
export function concludeReducer<T>(params: {
|
|
332
|
-
previousState: DataSourceState<T> & DataSourceDerivedState<T>;
|
|
333
|
-
state: DataSourceState<T> & DataSourceDerivedState<T>;
|
|
334
|
-
}): DataSourceState<T> & DataSourceDerivedState<T>;
|
|
335
|
-
}
|
|
336
|
-
declare module "components/DataSource/index" {
|
|
337
|
-
import { DataSourceProps } from "components/DataSource/types";
|
|
338
|
-
import { useDataSource } from "components/DataSource/publicHooks/useDataSource";
|
|
339
|
-
import { GroupRowsState } from "components/DataSource/GroupRowsState";
|
|
340
|
-
function DataSource<T>(props: DataSourceProps<T>): JSX.Element;
|
|
341
|
-
export { useDataSource, DataSource, GroupRowsState };
|
|
342
|
-
export * from "components/DataSource/types";
|
|
343
|
-
}
|
|
344
|
-
declare module "components/DataSource/GroupRowsState" {
|
|
345
|
-
import { DataSourceExpandedAndCollapsedGroupRows } from "components/DataSource/index";
|
|
346
|
-
export class GroupRowsState<KeyType extends any = any> {
|
|
347
|
-
private expandedMap?;
|
|
348
|
-
private collapsedMap?;
|
|
349
|
-
private collapsedAll;
|
|
350
|
-
private expandedAll;
|
|
351
|
-
private initialState;
|
|
352
|
-
constructor(state: DataSourceExpandedAndCollapsedGroupRows<KeyType> | GroupRowsState<KeyType>);
|
|
353
|
-
getState(): DataSourceExpandedAndCollapsedGroupRows<KeyType>;
|
|
354
|
-
destroy(): void;
|
|
355
|
-
private update;
|
|
356
|
-
areAllCollapsed(): boolean;
|
|
357
|
-
areAllExpanded(): boolean;
|
|
358
|
-
collapseAll(): void;
|
|
359
|
-
expandAll(): void;
|
|
360
|
-
isGroupRowExpanded(keys: KeyType[]): boolean | undefined;
|
|
361
|
-
isGroupRowCollapsed(keys: KeyType[]): boolean;
|
|
362
|
-
setGroupRowExpanded(keys: KeyType[], shouldExpand: boolean): void;
|
|
363
|
-
collapseGroupRow(keys: KeyType[]): void;
|
|
364
|
-
expandGroupRow(keys: KeyType[]): void;
|
|
365
|
-
toggleGroupRow(keys: KeyType[]): void;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
330
|
declare module "components/types/Renderable" {
|
|
369
331
|
import * as React from 'react';
|
|
370
|
-
export type Renderable = React.ReactNode
|
|
332
|
+
export type Renderable = React.ReactNode;
|
|
371
333
|
}
|
|
372
334
|
declare module "components/InfiniteTable/types/Utility" {
|
|
373
335
|
export type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
|
|
@@ -392,6 +354,7 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
392
354
|
import type { DiscriminatedUnion, RequireAtLeastOne } from "components/InfiniteTable/types/Utility";
|
|
393
355
|
import type { InfiniteTableRowInfo } from "components/InfiniteTable/types/index";
|
|
394
356
|
import { CSSProperties } from 'react';
|
|
357
|
+
import { PivotBy } from "utils/groupAndPivot/index";
|
|
395
358
|
export type { DiscriminatedUnion, RequireAtLeastOne };
|
|
396
359
|
export type InfiniteTableToggleGroupRowFn = (groupKeys: any[]) => void;
|
|
397
360
|
export interface InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> {
|
|
@@ -405,6 +368,7 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
405
368
|
toggleGroupRow: InfiniteTableToggleGroupRowFn;
|
|
406
369
|
groupRowsBy: DataSourceState<DATA_TYPE>['groupRowsBy'];
|
|
407
370
|
}
|
|
371
|
+
export type InfiniteTableColumnRenderValueParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>;
|
|
408
372
|
export type InfiniteTableColumnRowspanFnParams<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
|
|
409
373
|
data: DATA_TYPE | null;
|
|
410
374
|
rowInfo: InfiniteTableRowInfo<DATA_TYPE>;
|
|
@@ -419,6 +383,7 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
419
383
|
}
|
|
420
384
|
export type InfiniteTableColumnPinned = 'start' | 'end' | false;
|
|
421
385
|
export type InfiniteTableColumnRenderFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = ({ value, rowIndex, column, data, toggleGroupRow, toggleCurrentGroupRow, rowInfo, groupRowsBy, }: InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>) => Renderable | null;
|
|
386
|
+
export type InfiniteTableColumnRenderValueFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderFunction<DATA_TYPE, COL_TYPE>;
|
|
422
387
|
export type InfiniteTableColumnHeaderRenderFunction<T> = ({ columnSortInfo, column, }: InfiniteTableColumnHeaderRenderParams<T>) => Renderable;
|
|
423
388
|
export type InfiniteTableColumnWithField<T> = {
|
|
424
389
|
field: keyof T;
|
|
@@ -492,7 +457,16 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
492
457
|
pivotColumn?: true;
|
|
493
458
|
pivotTotalColumn?: true;
|
|
494
459
|
pivotGroupKeys?: any[];
|
|
495
|
-
|
|
460
|
+
pivotByForColumn?: DataSourcePivotBy<T>;
|
|
461
|
+
pivotIndexForColumn?: number;
|
|
462
|
+
pivotGroupKeyForColumn?: any;
|
|
463
|
+
};
|
|
464
|
+
export type InfiniteTablePivotFinalColumn<DataType, KeyType extends any = any> = InfiniteTablePivotColumn<DataType> & {
|
|
465
|
+
pivotBy: DataSourcePivotBy<DataType>[];
|
|
466
|
+
pivotGroupKeys: KeyType[];
|
|
467
|
+
pivotByForColumn: PivotBy<DataType, KeyType>;
|
|
468
|
+
pivotIndexForColumn: number;
|
|
469
|
+
pivotGroupKeyForColumn: KeyType;
|
|
496
470
|
};
|
|
497
471
|
type InfiniteTableComputedColumnBase<T> = {
|
|
498
472
|
computedWidth: number;
|
|
@@ -518,12 +492,61 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
518
492
|
};
|
|
519
493
|
export type InfiniteTableComputedColumn<T> = InfiniteTableColumn<T> & InfiniteTableComputedColumnBase<T> & InfiniteTablePivotColumn<T> & InfiniteTableGeneratedGroupColumn<T>;
|
|
520
494
|
}
|
|
495
|
+
declare module "utils/groupAndPivot/getPivotColumnsAndColumnGroups" {
|
|
496
|
+
import type { DataSourcePivotBy } from "components/DataSource/index";
|
|
497
|
+
import type { InfiniteTablePropColumnGroups, InfiniteTablePropColumns } from "components/InfiniteTable/index";
|
|
498
|
+
import type { InfiniteTablePivotColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
499
|
+
import type { InfiniteTablePropPivotTotalColumnPosition } from "components/InfiniteTable/types/InfiniteTableState";
|
|
500
|
+
import { DeepMap } from "utils/DeepMap";
|
|
501
|
+
export type ComputedColumnsAndGroups<DataType> = {
|
|
502
|
+
columns: InfiniteTablePropColumns<DataType, InfiniteTablePivotColumn<DataType>>;
|
|
503
|
+
columnGroups: InfiniteTablePropColumnGroups;
|
|
504
|
+
};
|
|
505
|
+
export function getPivotColumnsAndColumnGroups<DataType, KeyType = any>(deepMap: DeepMap<KeyType, boolean>, pivotBy: DataSourcePivotBy<DataType>[], pivotTotalColumnPosition: InfiniteTablePropPivotTotalColumnPosition): ComputedColumnsAndGroups<DataType>;
|
|
506
|
+
}
|
|
507
|
+
declare module "components/DataSource/state/reducer" {
|
|
508
|
+
import type { DataSourceState, DataSourceDerivedState } from "components/DataSource/types";
|
|
509
|
+
export function concludeReducer<T>(params: {
|
|
510
|
+
previousState: DataSourceState<T> & DataSourceDerivedState<T>;
|
|
511
|
+
state: DataSourceState<T> & DataSourceDerivedState<T>;
|
|
512
|
+
}): DataSourceState<T> & DataSourceDerivedState<T>;
|
|
513
|
+
}
|
|
514
|
+
declare module "components/DataSource/index" {
|
|
515
|
+
import { DataSourceProps } from "components/DataSource/types";
|
|
516
|
+
import { useDataSource } from "components/DataSource/publicHooks/useDataSource";
|
|
517
|
+
import { GroupRowsState } from "components/DataSource/GroupRowsState";
|
|
518
|
+
function DataSource<T>(props: DataSourceProps<T>): JSX.Element;
|
|
519
|
+
export { useDataSource, DataSource, GroupRowsState };
|
|
520
|
+
export * from "components/DataSource/types";
|
|
521
|
+
}
|
|
522
|
+
declare module "components/DataSource/GroupRowsState" {
|
|
523
|
+
import { DataSourceExpandedAndCollapsedGroupRows } from "components/DataSource/index";
|
|
524
|
+
export class GroupRowsState<KeyType extends any = any> {
|
|
525
|
+
private expandedMap?;
|
|
526
|
+
private collapsedMap?;
|
|
527
|
+
private collapsedAll;
|
|
528
|
+
private expandedAll;
|
|
529
|
+
private initialState;
|
|
530
|
+
constructor(state: DataSourceExpandedAndCollapsedGroupRows<KeyType> | GroupRowsState<KeyType>);
|
|
531
|
+
getState(): DataSourceExpandedAndCollapsedGroupRows<KeyType>;
|
|
532
|
+
destroy(): void;
|
|
533
|
+
private update;
|
|
534
|
+
areAllCollapsed(): boolean;
|
|
535
|
+
areAllExpanded(): boolean;
|
|
536
|
+
collapseAll(): void;
|
|
537
|
+
expandAll(): void;
|
|
538
|
+
isGroupRowExpanded(keys: KeyType[]): boolean | undefined;
|
|
539
|
+
isGroupRowCollapsed(keys: KeyType[]): boolean;
|
|
540
|
+
setGroupRowExpanded(keys: KeyType[], shouldExpand: boolean): void;
|
|
541
|
+
collapseGroupRow(keys: KeyType[]): void;
|
|
542
|
+
expandGroupRow(keys: KeyType[]): void;
|
|
543
|
+
toggleGroupRow(keys: KeyType[]): void;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
521
546
|
declare module "utils/groupAndPivot/index" {
|
|
522
|
-
import { DataSourcePivotBy } from "@infinite-table/infinite-react";
|
|
523
547
|
import { GroupRowsState } from "components/DataSource/GroupRowsState";
|
|
524
|
-
import { InfiniteTablePivotColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
525
|
-
import { InfiniteTableGroupColumnBase
|
|
526
|
-
import { InfiniteTablePropPivotTotalColumnPosition } from "components/InfiniteTable/types/InfiniteTableState";
|
|
548
|
+
import { InfiniteTablePivotColumn, InfiniteTablePivotFinalColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
549
|
+
import { InfiniteTableGroupColumnBase } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
527
550
|
import { DeepMap } from "utils/DeepMap";
|
|
528
551
|
export type AggregationReducer<T, AggregationResultType> = {
|
|
529
552
|
initialValue: AggregationResultType;
|
|
@@ -581,7 +604,11 @@ declare module "utils/groupAndPivot/index" {
|
|
|
581
604
|
toKey?: (value: any, data: DataType) => GroupKeyType<KeyType>;
|
|
582
605
|
column?: InfiniteTableGroupColumnBase<DataType>;
|
|
583
606
|
};
|
|
584
|
-
export type PivotBy<DataType, KeyType> = GroupBy<DataType, KeyType
|
|
607
|
+
export type PivotBy<DataType, KeyType> = Omit<GroupBy<DataType, KeyType>, 'column'> & {
|
|
608
|
+
column?: InfiniteTablePivotColumn<DataType> | (({ column, }: {
|
|
609
|
+
column: InfiniteTablePivotFinalColumn<DataType, KeyType>;
|
|
610
|
+
}) => Partial<InfiniteTablePivotColumn<DataType>>);
|
|
611
|
+
};
|
|
585
612
|
type GroupParams<DataType, KeyType> = {
|
|
586
613
|
groupBy: GroupBy<DataType, KeyType>[];
|
|
587
614
|
defaultToKey?: (value: any, item: DataType) => GroupKeyType<KeyType>;
|
|
@@ -607,11 +634,6 @@ declare module "utils/groupAndPivot/index" {
|
|
|
607
634
|
export function enhancedFlatten<DataType, KeyType = any>(param: EnhancedFlattenParam<DataType, KeyType>): {
|
|
608
635
|
data: InfiniteTableRowInfo<DataType>[];
|
|
609
636
|
};
|
|
610
|
-
export type ComputedColumnsAndGroups<DataType> = {
|
|
611
|
-
columns: InfiniteTablePropColumns<DataType, InfiniteTablePivotColumn<DataType>>;
|
|
612
|
-
columnGroups: InfiniteTablePropColumnGroups;
|
|
613
|
-
};
|
|
614
|
-
export function getPivotColumnsAndColumnGroups<DataType, KeyType = any>(deepMap: DeepMap<KeyType, boolean>, pivotBy: DataSourcePivotBy<DataType>[], pivotTotalColumnPosition: InfiniteTablePropPivotTotalColumnPosition): ComputedColumnsAndGroups<DataType>;
|
|
615
637
|
}
|
|
616
638
|
declare module "components/InfiniteTable/theme.css" {
|
|
617
639
|
export const ThemeVars: import("@vanilla-extract/private").MapLeafNodes<{
|
|
@@ -651,6 +673,11 @@ declare module "components/InfiniteTable/theme.css" {
|
|
|
651
673
|
fontFamily: string;
|
|
652
674
|
minHeight: string;
|
|
653
675
|
borderRadius: string;
|
|
676
|
+
/**
|
|
677
|
+
* The background color for the whole component.
|
|
678
|
+
*
|
|
679
|
+
* Overriden in the `dark` theme.
|
|
680
|
+
*/
|
|
654
681
|
background: string;
|
|
655
682
|
components: {
|
|
656
683
|
LoadMask: {
|
|
@@ -665,12 +692,27 @@ declare module "components/InfiniteTable/theme.css" {
|
|
|
665
692
|
borderRadius: string;
|
|
666
693
|
};
|
|
667
694
|
Header: {
|
|
695
|
+
/**
|
|
696
|
+
* Background color for the header. Defaults to [`--infinie-header-cell-background`](#header-cell-background).
|
|
697
|
+
*
|
|
698
|
+
* Overriden in the `dark` theme.
|
|
699
|
+
*/
|
|
668
700
|
background: string;
|
|
701
|
+
/**
|
|
702
|
+
* The text color inside the header.
|
|
703
|
+
*
|
|
704
|
+
* Overriden in the `dark` theme.
|
|
705
|
+
*/
|
|
669
706
|
color: string;
|
|
670
707
|
height: string;
|
|
671
708
|
};
|
|
672
709
|
HeaderCell: {
|
|
673
710
|
draggingBackground: string;
|
|
711
|
+
/**
|
|
712
|
+
* Background for header cells.
|
|
713
|
+
*
|
|
714
|
+
* Overriden in the `dark` theme.
|
|
715
|
+
*/
|
|
674
716
|
background: string;
|
|
675
717
|
padding: string;
|
|
676
718
|
iconSize: string;
|
|
@@ -678,14 +720,39 @@ declare module "components/InfiniteTable/theme.css" {
|
|
|
678
720
|
Cell: {
|
|
679
721
|
padding: string;
|
|
680
722
|
borderWidth: string;
|
|
723
|
+
/**
|
|
724
|
+
* Specifies the border for cells.
|
|
725
|
+
*
|
|
726
|
+
* Overriden in the `dark` theme - eg: `1px solid #2a323d`
|
|
727
|
+
*/
|
|
681
728
|
border: string;
|
|
682
729
|
borderInvisible: string;
|
|
683
730
|
borderRadius: string;
|
|
684
731
|
};
|
|
685
732
|
Row: {
|
|
733
|
+
/**
|
|
734
|
+
* Text color inside rows. Defaults to `currentColor`
|
|
735
|
+
*
|
|
736
|
+
* Overriden in `dark` theme.
|
|
737
|
+
*/
|
|
686
738
|
color: string;
|
|
739
|
+
/**
|
|
740
|
+
* Background color for rows. Defaults to [`--infinite-background`](#background).
|
|
741
|
+
*
|
|
742
|
+
* Overriden in `dark` theme.
|
|
743
|
+
*/
|
|
687
744
|
background: string;
|
|
745
|
+
/**
|
|
746
|
+
* Background color for odd rows. Even rows will use [`--infinite-row-background`](#row-background).
|
|
747
|
+
*
|
|
748
|
+
* Overriden in `dark` theme.
|
|
749
|
+
*/
|
|
688
750
|
oddBackground: string;
|
|
751
|
+
/**
|
|
752
|
+
* Background color for rows, on hover.
|
|
753
|
+
*
|
|
754
|
+
* Overriden in the `dark` theme.
|
|
755
|
+
*/
|
|
689
756
|
hoverBackground: string;
|
|
690
757
|
groupRowBackground: string;
|
|
691
758
|
groupRowColumnNesting: string;
|
|
@@ -704,6 +771,7 @@ declare module "components/InfiniteTable/utilities.css" {
|
|
|
704
771
|
export const fill: Record<"accentColor" | "currentColor", string>;
|
|
705
772
|
export const background: Record<"inherit", string>;
|
|
706
773
|
export const transformTranslateZero: string;
|
|
774
|
+
export const transform: Record<"translateZero" | "rotate90", string>;
|
|
707
775
|
export const cursor: Record<"pointer", string>;
|
|
708
776
|
export const flex: Record<"none" | 1, string>;
|
|
709
777
|
export const zIndex: Record<1 | 10 | 1000 | 10000 | 100000, string>;
|
|
@@ -809,13 +877,14 @@ declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
|
809
877
|
columns: string[];
|
|
810
878
|
depth: number;
|
|
811
879
|
};
|
|
812
|
-
export type
|
|
813
|
-
|
|
880
|
+
export type InfiniteTableGroupColumnGetterOptions<T> = {
|
|
881
|
+
groupIndexForColumn?: number;
|
|
882
|
+
groupByForColumn?: DataSourceGroupRowsBy<T>;
|
|
883
|
+
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
814
884
|
groupCount: number;
|
|
815
|
-
groupBy?: DataSourceGroupRowsBy<T>;
|
|
816
885
|
groupRowsBy: DataSourceGroupRowsBy<T>[];
|
|
817
886
|
};
|
|
818
|
-
export type
|
|
887
|
+
export type InfiniteTablePivotColumnGetterOptions<T> = {
|
|
819
888
|
column: InfiniteTablePivotColumn<T>;
|
|
820
889
|
groupRowsBy: DataSourcePropGroupRowsBy<T>;
|
|
821
890
|
pivotBy: DataSourcePropPivotBy<T>;
|
|
@@ -827,8 +896,9 @@ declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
|
827
896
|
export type InfiniteTablePivotColumnBase<T> = InfiniteTableColumn<T> & InfiniteTableColumnWithSize & {
|
|
828
897
|
renderValue?: InfiniteTableColumnRenderFunction<T>;
|
|
829
898
|
};
|
|
830
|
-
export type InfiniteTablePropGroupColumn<T> = InfiniteTableGroupColumnBase<T> |
|
|
831
|
-
export type
|
|
899
|
+
export type InfiniteTablePropGroupColumn<T> = InfiniteTableGroupColumnBase<T> | InfiniteTableGroupColumnFunction<T>;
|
|
900
|
+
export type InfiniteTableGroupColumnFunction<T> = (options: InfiniteTableGroupColumnGetterOptions<T>, toggleGroupRow: (groupKeys: any[]) => void) => InfiniteTableGroupColumnBase<T>;
|
|
901
|
+
export type InfiniteTablePropPivotColumn<T> = InfiniteTablePivotColumnBase<T> | ((options: InfiniteTablePivotColumnGetterOptions<T>) => InfiniteTablePivotColumnBase<T>);
|
|
832
902
|
export type InfiniteTablePropPivotRowLabelsColumn<T> = InfiniteTablePropPivotColumn<T>;
|
|
833
903
|
export type InfiniteTablePropComponents = {
|
|
834
904
|
LoadMask?: React.FC<LoadMaskProps>;
|
|
@@ -1089,12 +1159,12 @@ declare module "components/InfiniteTable/types/index" {
|
|
|
1089
1159
|
import type { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1090
1160
|
import type { InfiniteTableAction } from "components/InfiniteTable/types/InfiniteTableAction";
|
|
1091
1161
|
import type { InfiniteTableActionType } from "components/InfiniteTable/types/InfiniteTableActionType";
|
|
1092
|
-
import type { InfiniteTableProps, InfiniteTableImperativeApi, InfiniteTablePropColumnOrder, InfiniteTablePropColumnVisibility, InfiniteTablePropColumnPinning, InfiniteTableColumnAggregator, InfiniteTableColumnGroup, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropColumnAggregations, InfiniteTablePropColumnGroups, InfiniteTablePropRowStyle, InfiniteTableRowStyleFn, InfiniteTableRowClassNameFn, InfiniteTablePropRowClassName, InfiniteTablePropColumns, InfiniteTablePropComponents } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1093
|
-
import type { InfiniteTableColumn, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1162
|
+
import type { InfiniteTableProps, InfiniteTableImperativeApi, InfiniteTablePropColumnOrder, InfiniteTablePropColumnVisibility, InfiniteTablePropColumnPinning, InfiniteTableColumnAggregator, InfiniteTableColumnGroup, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropColumnAggregations, InfiniteTablePropColumnGroups, InfiniteTablePropRowStyle, InfiniteTableRowStyleFn, InfiniteTableRowClassNameFn, InfiniteTablePropRowClassName, InfiniteTablePropColumns, InfiniteTablePropComponents, InfiniteTableGroupColumnFunction, InfiniteTableGroupColumnGetterOptions } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1163
|
+
import type { InfiniteTableColumn, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1094
1164
|
import type { InfiniteTableComputedValues } from "components/InfiniteTable/types/InfiniteTableComputedValues";
|
|
1095
1165
|
import type { InfiniteTableContextValue } from "components/InfiniteTable/types/InfiniteTableContextValue";
|
|
1096
1166
|
import type { InfiniteTableRowInfo } from "utils/groupAndPivot/index";
|
|
1097
|
-
export type { InfiniteTableColumnAggregator, InfiniteTableComputedValues, InfiniteTablePropColumns, InfiniteTableRowInfo, InfiniteTablePropColumnOrder, InfiniteTablePropComponents, InfiniteTablePropColumnVisibility, InfiniteTablePropColumnPinning, InfiniteTableColumnGroup, InfiniteTableColumn, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam, InfiniteTableContextValue, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropColumnAggregations, InfiniteTablePropColumnGroups, InfiniteTableState, InfiniteTableAction, InfiniteTableProps, InfiniteTableImperativeApi, InfiniteTableActionType, InfiniteTablePropRowStyle, InfiniteTablePropRowClassName, InfiniteTableRowStyleFn, InfiniteTableRowClassNameFn, };
|
|
1167
|
+
export type { InfiniteTableColumnAggregator, InfiniteTableComputedValues, InfiniteTablePropColumns, InfiniteTableRowInfo, InfiniteTableGroupColumnFunction, InfiniteTablePropColumnOrder, InfiniteTablePropComponents, InfiniteTablePropColumnVisibility, InfiniteTablePropColumnPinning, InfiniteTableColumnGroup, InfiniteTableColumn, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam, InfiniteTableContextValue, InfiniteTablePropGroupRenderStrategy, InfiniteTablePropColumnAggregations, InfiniteTablePropColumnGroups, InfiniteTableState, InfiniteTableAction, InfiniteTableProps, InfiniteTableImperativeApi, InfiniteTableActionType, InfiniteTablePropRowStyle, InfiniteTablePropRowClassName, InfiniteTableRowStyleFn, InfiniteTableRowClassNameFn, InfiniteTableGroupColumnGetterOptions, };
|
|
1098
1168
|
}
|
|
1099
1169
|
declare module "components/InfiniteTable/InfiniteTableContext" {
|
|
1100
1170
|
import { InfiniteTableContextValue } from "components/InfiniteTable/types/InfiniteTableContextValue";
|
|
@@ -1126,11 +1196,11 @@ declare module "components/InfiniteTable/state/getInitialState" {
|
|
|
1126
1196
|
pivotTotalColumnPosition: 1 | ((value: import("components/InfiniteTable/types/InfiniteTableState").InfiniteTablePropPivotTotalColumnPosition | undefined) => import("components/InfiniteTable/types/InfiniteTableState").InfiniteTablePropPivotTotalColumnPosition);
|
|
1127
1197
|
pivotColumns: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumns<T, import("components/InfiniteTable/types/InfiniteTableColumn").InfiniteTablePivotColumn<T>> | undefined) => import("components/InfiniteTable/types").InfiniteTablePropColumns<T, import("components/InfiniteTable/types/InfiniteTableColumn").InfiniteTablePivotColumn<T>> | undefined);
|
|
1128
1198
|
pivotColumnGroups: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnGroups | undefined) => import("components/InfiniteTable/types").InfiniteTablePropColumnGroups | undefined);
|
|
1129
|
-
sortable: 1 | ((value: boolean | undefined) => boolean);
|
|
1130
1199
|
pivotColumn: 1 | ((value: Partial<import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropPivotColumn<T>> | undefined) => Partial<import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropPivotColumn<T>> | undefined);
|
|
1200
|
+
sortable: 1 | ((value: boolean | undefined) => boolean);
|
|
1131
1201
|
components: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropComponents | undefined) => import("components/InfiniteTable/types").InfiniteTablePropComponents | undefined);
|
|
1132
1202
|
groupColumn: 1 | ((value: Partial<InfiniteTablePropGroupColumn<T>> | undefined) => Partial<InfiniteTablePropGroupColumn<T>> | undefined);
|
|
1133
|
-
loadingText: 1 | ((value: import("
|
|
1203
|
+
loadingText: 1 | ((value: import("react").ReactNode) => import("react").ReactNode);
|
|
1134
1204
|
onReady: 1 | ((value: ((api: import("components/InfiniteTable/types").InfiniteTableImperativeApi<T>) => void) | undefined) => ((api: import("components/InfiniteTable/types").InfiniteTableImperativeApi<T>) => void) | undefined);
|
|
1135
1205
|
onSelfFocus: 1 | ((value: ((event: import("react").FocusEvent<HTMLDivElement>) => void) | undefined) => ((event: import("react").FocusEvent<HTMLDivElement>) => void) | undefined);
|
|
1136
1206
|
onSelfBlur: 1 | ((value: ((event: import("react").FocusEvent<HTMLDivElement>) => void) | undefined) => ((event: import("react").FocusEvent<HTMLDivElement>) => void) | undefined);
|
|
@@ -1393,19 +1463,6 @@ declare module "components/InfiniteTable/components/icons/ExpanderIcon" {
|
|
|
1393
1463
|
};
|
|
1394
1464
|
export function ExpanderIcon(props: ExpanderIconProps): JSX.Element;
|
|
1395
1465
|
}
|
|
1396
|
-
declare module "components/InfiniteTable/state/getComputedPivotColumnsFromDataSourcePivotColumns" {
|
|
1397
|
-
import { DataSourcePropGroupRowsBy, DataSourcePropPivotBy } from "components/DataSource/index";
|
|
1398
|
-
import { InfiniteTableProps } from "components/InfiniteTable/types/index";
|
|
1399
|
-
import { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1400
|
-
export function getComputedPivotColumnsFromDataSourcePivotColumns<T>(pivotColumns: InfiniteTableProps<T>['pivotColumns'], params: {
|
|
1401
|
-
toggleGroupRow: (groupKeys: any[]) => void;
|
|
1402
|
-
pivotColumn: InfiniteTableProps<T>['pivotColumn'];
|
|
1403
|
-
pivotRowLabelsColumn: InfiniteTableProps<T>['pivotRowLabelsColumn'];
|
|
1404
|
-
pivotTotalColumnPosition: InfiniteTableState<T>['pivotTotalColumnPosition'];
|
|
1405
|
-
pivotBy: DataSourcePropPivotBy<T>;
|
|
1406
|
-
groupRowsBy: DataSourcePropGroupRowsBy<T>;
|
|
1407
|
-
}): InfiniteTableProps<T>['pivotColumns'];
|
|
1408
|
-
}
|
|
1409
1466
|
declare module "components/InfiniteTable/components/InfiniteTableRow/row.css" {
|
|
1410
1467
|
export const RowHoverCls: string;
|
|
1411
1468
|
export const RowClsRecipe: import("@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<{
|
|
@@ -1437,31 +1494,44 @@ declare module "components/InfiniteTable/components/InfiniteTableRow/row.css" {
|
|
|
1437
1494
|
}>;
|
|
1438
1495
|
export const GroupRowExpanderCls: string;
|
|
1439
1496
|
}
|
|
1497
|
+
declare module "components/InfiniteTable/state/getComputedPivotColumnsFromDataSourcePivotColumns" {
|
|
1498
|
+
import { DataSourcePropGroupRowsBy, DataSourcePropPivotBy } from "components/DataSource/index";
|
|
1499
|
+
import { InfiniteTableProps } from "components/InfiniteTable/types/index";
|
|
1500
|
+
import { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1501
|
+
export function getComputedPivotColumnsFromDataSourcePivotColumns<T>(pivotColumns: InfiniteTableProps<T>['pivotColumns'], params: {
|
|
1502
|
+
toggleGroupRow: (groupKeys: any[]) => void;
|
|
1503
|
+
pivotColumn: InfiniteTableProps<T>['pivotColumn'];
|
|
1504
|
+
pivotRowLabelsColumn: InfiniteTableProps<T>['pivotRowLabelsColumn'];
|
|
1505
|
+
pivotTotalColumnPosition: InfiniteTableState<T>['pivotTotalColumnPosition'];
|
|
1506
|
+
pivotBy: DataSourcePropPivotBy<T>;
|
|
1507
|
+
groupRowsBy: DataSourcePropGroupRowsBy<T>;
|
|
1508
|
+
}): InfiniteTableProps<T>['pivotColumns'];
|
|
1509
|
+
}
|
|
1440
1510
|
declare module "components/InfiniteTable/utils/getColumnForGroupBy" {
|
|
1511
|
+
import * as React from 'react';
|
|
1441
1512
|
import { InfiniteTableColumnRenderParam } from "components/InfiniteTable/index";
|
|
1442
1513
|
import { DataSourceGroupRowsBy } from "components/DataSource/index";
|
|
1443
1514
|
import { InfiniteTableGeneratedGroupColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1444
|
-
import {
|
|
1445
|
-
export function getGroupColumnRender<T>({
|
|
1515
|
+
import { InfiniteTableGroupColumnGetterOptions, InfiniteTablePropGroupColumn, InfiniteTablePropGroupRenderStrategy } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1516
|
+
export function getGroupColumnRender<T>({ groupIndexForColumn, groupRenderStrategy, toggleGroupRow, }: {
|
|
1446
1517
|
toggleGroupRow: (groupRowKeys: any[]) => void;
|
|
1447
1518
|
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
1448
|
-
|
|
1449
|
-
}): (renderOptions: InfiniteTableColumnRenderParam<T>) =>
|
|
1450
|
-
export function getColumnForGroupBy<T>(options:
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
1519
|
+
groupIndexForColumn: number;
|
|
1520
|
+
}): (renderOptions: InfiniteTableColumnRenderParam<T>) => React.ReactNode;
|
|
1521
|
+
export function getColumnForGroupBy<T>(options: InfiniteTableGroupColumnGetterOptions<T> & {
|
|
1522
|
+
groupIndexForColumn: number;
|
|
1523
|
+
groupByForColumn: DataSourceGroupRowsBy<T>;
|
|
1454
1524
|
}, toggleGroupRow: (groupRowKeys: any[]) => void, groupColumnFromProps?: InfiniteTablePropGroupColumn<T>): InfiniteTableGeneratedGroupColumn<T>;
|
|
1455
|
-
export function getSingleGroupColumn<T>(options:
|
|
1525
|
+
export function getSingleGroupColumn<T>(options: InfiniteTableGroupColumnGetterOptions<T>, toggleGroupRow: (groupRowKeys: any[]) => void, groupColumnFromProps?: InfiniteTablePropGroupColumn<T>): InfiniteTableGeneratedGroupColumn<T>;
|
|
1456
1526
|
}
|
|
1457
1527
|
declare module "components/InfiniteTable/hooks/useToggleGroupRow" {
|
|
1458
1528
|
export type ToggleGrouRowFn = (groupKeys: any[]) => void;
|
|
1459
1529
|
export function useToggleGroupRow<T>(): ToggleGrouRowFn;
|
|
1460
1530
|
}
|
|
1461
1531
|
declare module "components/InfiniteTable/hooks/useColumnsWhen" {
|
|
1462
|
-
import { InfiniteTableColumn } from "components/InfiniteTable/index";
|
|
1463
|
-
import { DataSourceGroupRowsBy } from "components/DataSource/index";
|
|
1464
|
-
import { InfiniteTablePropGroupRenderStrategy, InfiniteTableProps } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1532
|
+
import type { InfiniteTableColumn } from "components/InfiniteTable/index";
|
|
1533
|
+
import type { DataSourceGroupRowsBy } from "components/DataSource/index";
|
|
1534
|
+
import type { InfiniteTablePropGroupRenderStrategy, InfiniteTableProps } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1465
1535
|
export function useColumnsWhen<T>(): void;
|
|
1466
1536
|
export function getColumnsWhenGrouping<T>(params: {
|
|
1467
1537
|
columns: Map<string, InfiniteTableColumn<T>>;
|