@infinite-table/infinite-react 0.2.1 → 0.2.2
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.d.ts +29 -29
- package/index.esm.js +252 -286
- package/index.js +277 -309
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -333,6 +333,7 @@ declare module "components/DataSource/types" {
|
|
|
333
333
|
export type DataSourceRemoteData<T> = {
|
|
334
334
|
data: T[];
|
|
335
335
|
mappings?: DataSourceMappings;
|
|
336
|
+
cache?: boolean;
|
|
336
337
|
totalCount?: number;
|
|
337
338
|
livePaginationCursor?: DataSourceLivePaginationCursorValue;
|
|
338
339
|
};
|
|
@@ -380,6 +381,7 @@ declare module "components/DataSource/types" {
|
|
|
380
381
|
export type LazyGroupRowInfo<DataType> = {
|
|
381
382
|
items: LazyGroupDataItem<DataType>[];
|
|
382
383
|
totalCount: number;
|
|
384
|
+
cache?: boolean;
|
|
383
385
|
};
|
|
384
386
|
export type LazyGroupDataDeepMap<DataType, KeyType = string> = DeepMap<KeyType, LazyGroupRowInfo<DataType>>;
|
|
385
387
|
export interface DataSourceSetupState<T> {
|
|
@@ -501,7 +503,7 @@ declare module "components/DataSource/privateHooks/useLoadData" {
|
|
|
501
503
|
import { ComponentStateGeneratedActions } from "components/hooks/useComponentState";
|
|
502
504
|
import { DataSourceDataParams, DataSourceData, DataSourceState } from "components/DataSource/types";
|
|
503
505
|
export function buildDataSourceDataParams<T>(componentState: DataSourceState<T>, overrides?: Partial<DataSourceDataParams<T>>): DataSourceDataParams<T>;
|
|
504
|
-
export function loadData<T>(data: DataSourceData<T>, componentState: DataSourceState<T>, actions: ComponentStateGeneratedActions<DataSourceState<T>>, overrides?: Partial<DataSourceDataParams<T>>): Promise<
|
|
506
|
+
export function loadData<T>(data: DataSourceData<T>, componentState: DataSourceState<T>, actions: ComponentStateGeneratedActions<DataSourceState<T>>, overrides?: Partial<DataSourceDataParams<T>>): Promise<any>;
|
|
505
507
|
export function useLoadData<T>(): void;
|
|
506
508
|
}
|
|
507
509
|
declare module "components/DataSource/state/normalizeSortInfo" {
|
|
@@ -591,6 +593,7 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
591
593
|
toggleCurrentGroupRow: () => void;
|
|
592
594
|
toggleGroupRow: InfiniteTableToggleGroupRowFn;
|
|
593
595
|
groupBy: DataSourceState<DATA_TYPE>['groupBy'];
|
|
596
|
+
pivotBy?: DataSourceState<DATA_TYPE>['pivotBy'];
|
|
594
597
|
} & ({
|
|
595
598
|
rowInfo: InfiniteTableRowInfoNormal<DATA_TYPE>;
|
|
596
599
|
data: DATA_TYPE;
|
|
@@ -598,6 +601,10 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
598
601
|
rowInfo: InfiniteTableRowInfoGroup<DATA_TYPE>;
|
|
599
602
|
data: Partial<DATA_TYPE> | null;
|
|
600
603
|
});
|
|
604
|
+
export type InfiniteTableGroupColumnRenderIconParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE> & {
|
|
605
|
+
collapsed: boolean;
|
|
606
|
+
groupIcon: Renderable;
|
|
607
|
+
};
|
|
601
608
|
export type InfiniteTableColumnRenderValueParam<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>;
|
|
602
609
|
export type InfiniteTableColumnRowspanFnParams<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = {
|
|
603
610
|
rowInfo: InfiniteTableRowInfo<DATA_TYPE>;
|
|
@@ -611,7 +618,8 @@ declare module "components/InfiniteTable/types/InfiniteTableColumn" {
|
|
|
611
618
|
column: InfiniteTableComputedColumn<T>;
|
|
612
619
|
columnSortInfo: DataSourceSingleSortInfo<T> | null | undefined;
|
|
613
620
|
}
|
|
614
|
-
export type InfiniteTableColumnRenderFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = ({ value, rowIndex, column, data, toggleGroupRow, toggleCurrentGroupRow, rowInfo, groupBy, }: InfiniteTableColumnRenderParam<DATA_TYPE, COL_TYPE>) => Renderable | null;
|
|
621
|
+
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;
|
|
622
|
+
export type InfiniteTableGroupColumnRenderIconFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = (param: InfiniteTableGroupColumnRenderIconParam<DATA_TYPE, COL_TYPE>) => Renderable | null;
|
|
615
623
|
export type InfiniteTableColumnRenderValueFunction<DATA_TYPE, COL_TYPE = InfiniteTableComputedColumn<DATA_TYPE>> = InfiniteTableColumnRenderFunction<DATA_TYPE, COL_TYPE>;
|
|
616
624
|
export type InfiniteTableColumnHeaderRenderFunction<T> = ({ columnSortInfo, column, }: InfiniteTableColumnHeaderRenderParams<T>) => Renderable;
|
|
617
625
|
export type InfiniteTableColumnWithField<T> = {
|
|
@@ -796,6 +804,7 @@ declare module "utils/groupAndPivot/index" {
|
|
|
796
804
|
import { InfiniteTableColumnGroup, InfiniteTableGroupColumnBase } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
797
805
|
import { DeepMap } from "utils/DeepMap/index";
|
|
798
806
|
export const LAZY_ROOT_KEY_FOR_GROUPS: string;
|
|
807
|
+
export const NOT_LOADED_YET_KEY_PREFIX = "____not_loaded_yet____";
|
|
799
808
|
export type AggregationReducer<T, AggregationResultType = any> = DataSourceAggregationReducer<T, AggregationResultType> & {
|
|
800
809
|
id: string;
|
|
801
810
|
};
|
|
@@ -1085,10 +1094,10 @@ declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
|
1085
1094
|
import * as React from 'react';
|
|
1086
1095
|
import { InfiniteTableState } from "components/InfiniteTable/types/index";
|
|
1087
1096
|
import { AggregationReducer, InfiniteTableRowInfoGroup, InfiniteTableRowInfoNormal } from "utils/groupAndPivot/index";
|
|
1088
|
-
import { DataSourceGroupBy, DataSourcePropGroupBy, DataSourcePropPivotBy, DataSourceState } from "components/DataSource/index";
|
|
1097
|
+
import { DataSourceGroupBy, DataSourcePivotBy, DataSourcePropGroupBy, DataSourcePropPivotBy, DataSourceState } from "components/DataSource/index";
|
|
1089
1098
|
import { Renderable } from "components/types/Renderable";
|
|
1090
1099
|
import { LoadMaskProps } from "components/InfiniteTable/components/LoadMask";
|
|
1091
|
-
import type { InfiniteTableColumn, InfiniteTableColumnRenderFunction, InfiniteTableComputedColumn, InfiniteTableComputedPivotFinalColumn, InfiniteTablePivotColumn, InfiniteTablePivotFinalColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1100
|
+
import type { InfiniteTableColumn, InfiniteTableColumnRenderFunction, InfiniteTableComputedColumn, InfiniteTableComputedPivotFinalColumn, InfiniteTableGroupColumnRenderIconFunction, InfiniteTablePivotColumn, InfiniteTablePivotFinalColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1092
1101
|
import { InfiniteTablePropPivotTotalColumnPosition } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1093
1102
|
export type InfiniteTablePropColumnOrderNormalized = string[];
|
|
1094
1103
|
export type InfiniteTablePropColumnOrder = InfiniteTablePropColumnOrderNormalized | true;
|
|
@@ -1189,6 +1198,7 @@ declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
|
1189
1198
|
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
1190
1199
|
groupCount: number;
|
|
1191
1200
|
groupBy: DataSourceGroupBy<T>[];
|
|
1201
|
+
pivotBy?: DataSourcePivotBy<T>[];
|
|
1192
1202
|
};
|
|
1193
1203
|
export type InfiniteTablePivotColumnGetterOptions<T, COL_TYPE = InfiniteTableColumn<T>> = {
|
|
1194
1204
|
column: COL_TYPE;
|
|
@@ -1196,8 +1206,9 @@ declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
|
1196
1206
|
pivotBy: DataSourcePropPivotBy<T>;
|
|
1197
1207
|
};
|
|
1198
1208
|
export type InfiniteTablePropGroupRenderStrategy = 'single-column' | 'multi-column' | 'inline';
|
|
1199
|
-
export type InfiniteTableGroupColumnBase<T> = InfiniteTableColumn<T
|
|
1209
|
+
export type InfiniteTableGroupColumnBase<T> = Partial<InfiniteTableColumn<T>> & {
|
|
1200
1210
|
renderValue?: InfiniteTableColumnRenderFunction<T>;
|
|
1211
|
+
renderGroupIcon?: InfiniteTableGroupColumnRenderIconFunction<T>;
|
|
1201
1212
|
id?: string;
|
|
1202
1213
|
};
|
|
1203
1214
|
export type InfiniteTablePivotColumnBase<T> = InfiniteTableColumn<T> & {
|
|
@@ -1206,7 +1217,6 @@ declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
|
1206
1217
|
export type InfiniteTablePropGroupColumn<T> = InfiniteTableGroupColumnBase<T> | InfiniteTableGroupColumnFunction<T>;
|
|
1207
1218
|
export type InfiniteTableGroupColumnFunction<T> = (options: InfiniteTableGroupColumnGetterOptions<T>, toggleGroupRow: (groupKeys: any[]) => void) => Partial<InfiniteTableGroupColumnBase<T>>;
|
|
1208
1219
|
export type InfiniteTablePropPivotColumn<T, COL_TYPE = InfiniteTableColumn<T>> = Partial<InfiniteTablePivotColumnBase<T>> | ((options: InfiniteTablePivotColumnGetterOptions<T, COL_TYPE>) => InfiniteTablePivotColumnBase<T>);
|
|
1209
|
-
export type InfiniteTablePropPivotRowLabelsColumn<T> = InfiniteTablePropPivotColumn<T>;
|
|
1210
1220
|
export type InfiniteTablePropComponents = {
|
|
1211
1221
|
LoadMask?: React.FC<LoadMaskProps>;
|
|
1212
1222
|
};
|
|
@@ -1222,7 +1232,6 @@ declare module "components/InfiniteTable/types/InfiniteTableProps" {
|
|
|
1222
1232
|
components?: InfiniteTablePropComponents;
|
|
1223
1233
|
viewportReservedWidth?: number;
|
|
1224
1234
|
pivotColumn?: InfiniteTablePropPivotColumn<T, InfiniteTableColumn<T> & InfiniteTablePivotFinalColumn<T>>;
|
|
1225
|
-
pivotRowLabelsColumn?: InfiniteTablePropPivotRowLabelsColumn<T>;
|
|
1226
1235
|
pivotTotalColumnPosition?: InfiniteTablePropPivotTotalColumnPosition;
|
|
1227
1236
|
groupColumn?: Partial<InfiniteTablePropGroupColumn<T>>;
|
|
1228
1237
|
groupRenderStrategy?: InfiniteTablePropGroupRenderStrategy;
|
|
@@ -1308,7 +1317,7 @@ declare module "components/InfiniteTable/types/InfiniteTableState" {
|
|
|
1308
1317
|
import { SubscriptionCallback } from "components/types/SubscriptionCallback";
|
|
1309
1318
|
import { ScrollListener } from "components/VirtualBrain/ScrollListener";
|
|
1310
1319
|
import { NonUndefined } from "components/types/NonUndefined";
|
|
1311
|
-
import { InfiniteTableColumn
|
|
1320
|
+
import { InfiniteTableColumn } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1312
1321
|
import { ComponentStateActions } from "components/hooks/useComponentState";
|
|
1313
1322
|
import { DataSourceGroupBy, DataSourceProps } from "components/DataSource/types";
|
|
1314
1323
|
export type GroupByMap<T> = Map<keyof T, {
|
|
@@ -1331,7 +1340,6 @@ declare module "components/InfiniteTable/types/InfiniteTableState" {
|
|
|
1331
1340
|
draggingColumnId: null | string;
|
|
1332
1341
|
pinnedStartScrollListener: ScrollListener;
|
|
1333
1342
|
pinnedEndScrollListener: ScrollListener;
|
|
1334
|
-
computedPivotColumns?: Map<string, InfiniteTablePivotColumn<T>>;
|
|
1335
1343
|
columnShifts: number[] | null;
|
|
1336
1344
|
}
|
|
1337
1345
|
export type InfiniteTableComputedColumnGroup = InfiniteTableColumnGroup & {
|
|
@@ -1370,7 +1378,6 @@ declare module "components/InfiniteTable/types/InfiniteTableState" {
|
|
|
1370
1378
|
pinnedStartMaxWidth: InfiniteTableProps<T>['pinnedStartMaxWidth'];
|
|
1371
1379
|
pinnedEndMaxWidth: InfiniteTableProps<T>['pinnedEndMaxWidth'];
|
|
1372
1380
|
pivotColumn: InfiniteTableProps<T>['pivotColumn'];
|
|
1373
|
-
pivotRowLabelsColumn: InfiniteTableProps<T>['pivotRowLabelsColumn'];
|
|
1374
1381
|
pivotColumnGroups: InfiniteTablePropColumnGroupsMap;
|
|
1375
1382
|
activeIndex: NonUndefined<InfiniteTableProps<T>['activeIndex']>;
|
|
1376
1383
|
columnMinWidth: NonUndefined<InfiniteTableProps<T>['columnMinWidth']>;
|
|
@@ -1453,6 +1460,7 @@ declare module "components/InfiniteTable/types/InfiniteTableComputedValues" {
|
|
|
1453
1460
|
computedRemainingSpace: number;
|
|
1454
1461
|
unpinnedColumnRenderCount: number;
|
|
1455
1462
|
columnRenderStartIndex: number;
|
|
1463
|
+
toggleGroupRow: (groupKeys: any[]) => void;
|
|
1456
1464
|
}
|
|
1457
1465
|
}
|
|
1458
1466
|
declare module "components/InfiniteTable/types/InfiniteTableContextValue" {
|
|
@@ -1470,12 +1478,12 @@ declare module "components/InfiniteTable/types/index" {
|
|
|
1470
1478
|
import type { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1471
1479
|
import type { InfiniteTableAction } from "components/InfiniteTable/types/InfiniteTableAction";
|
|
1472
1480
|
import type { InfiniteTableActionType } from "components/InfiniteTable/types/InfiniteTableActionType";
|
|
1473
|
-
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 } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1481
|
+
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";
|
|
1474
1482
|
import type { InfiniteTableColumn, InfiniteTableColumnComparer, InfiniteTableComputedColumn, InfiniteTableColumnRenderParam, InfiniteTableColumnRenderValueParam } from "components/InfiniteTable/types/InfiniteTableColumn";
|
|
1475
1483
|
import type { InfiniteTableComputedValues } from "components/InfiniteTable/types/InfiniteTableComputedValues";
|
|
1476
1484
|
import type { InfiniteTableContextValue } from "components/InfiniteTable/types/InfiniteTableContextValue";
|
|
1477
1485
|
import type { InfiniteTableRowInfo } from "utils/groupAndPivot/index";
|
|
1478
|
-
export type { Scrollbars, InfiniteTableColumnAggregator, InfiniteTableComputedValues, InfiniteTablePropColumns, 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, };
|
|
1486
|
+
export type { Scrollbars, InfiniteTableColumnAggregator, InfiniteTableComputedValues, 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, };
|
|
1479
1487
|
}
|
|
1480
1488
|
declare module "components/InfiniteTable/InfiniteTableContext" {
|
|
1481
1489
|
import { InfiniteTableContextValue } from "components/InfiniteTable/types/InfiniteTableContextValue";
|
|
@@ -1512,7 +1520,6 @@ declare module "components/InfiniteTable/state/getInitialState" {
|
|
|
1512
1520
|
components: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropComponents | undefined) => import("components/InfiniteTable/types").InfiniteTablePropComponents | undefined);
|
|
1513
1521
|
loadingText: 1 | ((value: import("react").ReactNode) => import("react").ReactNode);
|
|
1514
1522
|
viewportReservedWidth: 1 | ((value: number | undefined) => number | undefined);
|
|
1515
|
-
pivotRowLabelsColumn: 1 | ((value: import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropPivotRowLabelsColumn<T> | undefined) => import("components/InfiniteTable/types/InfiniteTableProps").InfiniteTablePropPivotRowLabelsColumn<T> | undefined);
|
|
1516
1523
|
groupColumn: 1 | ((value: Partial<InfiniteTablePropGroupColumn<T>> | undefined) => Partial<InfiniteTablePropGroupColumn<T>> | undefined);
|
|
1517
1524
|
hideEmptyGroupColumns: 1 | ((value: boolean | undefined) => boolean);
|
|
1518
1525
|
columnVisibility: 1 | ((value: import("components/InfiniteTable/types").InfiniteTablePropColumnVisibility | undefined) => import("components/InfiniteTable/types").InfiniteTablePropColumnVisibility);
|
|
@@ -1826,19 +1833,6 @@ declare module "components/InfiniteTable/components/InfiniteTableRow/row.css" {
|
|
|
1826
1833
|
}>;
|
|
1827
1834
|
export const GroupRowExpanderCls: string;
|
|
1828
1835
|
}
|
|
1829
|
-
declare module "components/InfiniteTable/state/getComputedPivotColumnsFromDataSourcePivotColumns" {
|
|
1830
|
-
import { DataSourcePropGroupBy, DataSourcePropPivotBy } from "components/DataSource/index";
|
|
1831
|
-
import { InfiniteTableProps } from "components/InfiniteTable/types/index";
|
|
1832
|
-
import { InfiniteTableState } from "components/InfiniteTable/types/InfiniteTableState";
|
|
1833
|
-
export function getComputedPivotColumnsFromDataSourcePivotColumns<T>(pivotColumns: InfiniteTableProps<T>['pivotColumns'], params: {
|
|
1834
|
-
toggleGroupRow: (groupKeys: any[]) => void;
|
|
1835
|
-
pivotColumn: InfiniteTableProps<T>['pivotColumn'];
|
|
1836
|
-
pivotRowLabelsColumn: InfiniteTableProps<T>['pivotRowLabelsColumn'];
|
|
1837
|
-
pivotTotalColumnPosition: InfiniteTableState<T>['pivotTotalColumnPosition'];
|
|
1838
|
-
pivotBy: DataSourcePropPivotBy<T>;
|
|
1839
|
-
groupBy: DataSourcePropGroupBy<T>;
|
|
1840
|
-
}): InfiniteTableProps<T>['pivotColumns'];
|
|
1841
|
-
}
|
|
1842
1836
|
declare module "components/InfiniteTable/utils/getColumnForGroupBy" {
|
|
1843
1837
|
import * as React from 'react';
|
|
1844
1838
|
import { InfiniteTableColumnRenderParam } from "components/InfiniteTable/index";
|
|
@@ -1861,17 +1855,23 @@ declare module "components/InfiniteTable/hooks/useToggleGroupRow" {
|
|
|
1861
1855
|
export function useToggleGroupRow<T>(): ToggleGrouRowFn;
|
|
1862
1856
|
}
|
|
1863
1857
|
declare module "components/InfiniteTable/hooks/useColumnsWhen" {
|
|
1864
|
-
import type { InfiniteTableColumn } from "components/InfiniteTable/index";
|
|
1865
|
-
import type { DataSourceGroupBy } from "components/DataSource/index";
|
|
1858
|
+
import type { InfiniteTableColumn, InfiniteTableState } from "components/InfiniteTable/index";
|
|
1859
|
+
import type { DataSourceGroupBy, DataSourcePivotBy } from "components/DataSource/index";
|
|
1866
1860
|
import type { InfiniteTablePropGroupRenderStrategy, InfiniteTableProps } from "components/InfiniteTable/types/InfiniteTableProps";
|
|
1867
|
-
|
|
1861
|
+
import { ToggleGrouRowFn } from "components/InfiniteTable/hooks/useToggleGroupRow";
|
|
1862
|
+
export function useColumnsWhen<T>(): {
|
|
1863
|
+
toggleGroupRow: ToggleGrouRowFn;
|
|
1864
|
+
};
|
|
1868
1865
|
export function getColumnsWhenGrouping<T>(params: {
|
|
1869
1866
|
columns: Map<string, InfiniteTableColumn<T>>;
|
|
1870
1867
|
groupBy: DataSourceGroupBy<T>[];
|
|
1868
|
+
pivotBy?: DataSourcePivotBy<T>[];
|
|
1871
1869
|
toggleGroupRow: (groupKeys: any[]) => void;
|
|
1870
|
+
pivotTotalColumnPosition: InfiniteTableState<T>['pivotTotalColumnPosition'];
|
|
1872
1871
|
groupColumn: InfiniteTableProps<T>['groupColumn'];
|
|
1873
1872
|
groupRenderStrategy: InfiniteTablePropGroupRenderStrategy;
|
|
1874
1873
|
pivotColumns: InfiniteTableProps<T>['pivotColumns'];
|
|
1874
|
+
pivotColumn: InfiniteTableProps<T>['pivotColumn'];
|
|
1875
1875
|
}): Map<string, InfiniteTableColumn<T>> | undefined;
|
|
1876
1876
|
}
|
|
1877
1877
|
declare module "components/InfiniteTable/hooks/useComputed" {
|