@infinite-table/infinite-react 0.2.15 → 0.2.18
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 +7 -2
- package/index.esm.js +310 -269
- package/index.js +378 -334
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -342,8 +342,8 @@ declare type InfiniteTableBaseColumn<T> = {
|
|
|
342
342
|
minWidth?: number;
|
|
343
343
|
maxWidth?: number;
|
|
344
344
|
components?: {
|
|
345
|
-
ColumnCell?: React.
|
|
346
|
-
HeaderCell?: React.
|
|
345
|
+
ColumnCell?: React.FunctionComponent<HTMLProps<HTMLDivElement>>;
|
|
346
|
+
HeaderCell?: React.FunctionComponent<HTMLProps<HTMLDivElement>>;
|
|
347
347
|
};
|
|
348
348
|
};
|
|
349
349
|
/**
|
|
@@ -501,6 +501,7 @@ interface DataSourceSetupState<T> {
|
|
|
501
501
|
dataArray: InfiniteTableRowInfo<T>[];
|
|
502
502
|
groupDeepMap?: DeepMap<GroupKeyType, DeepMapGroupValueType<T, any>>;
|
|
503
503
|
pivotTotalColumnPosition: InfiniteTablePropPivotTotalColumnPosition;
|
|
504
|
+
pivotGrandTotalColumnPosition: InfiniteTablePropPivotGrandTotalColumnPosition;
|
|
504
505
|
cursorId: number | Symbol | DataSourceLivePaginationCursorValue;
|
|
505
506
|
updatedAt: number;
|
|
506
507
|
reducedAt: number;
|
|
@@ -719,6 +720,7 @@ declare type InfiniteTableColumnType<T> = {
|
|
|
719
720
|
verticalAlign?: InfiniteTableColumn<T>['verticalAlign'];
|
|
720
721
|
cssEllipsis?: boolean;
|
|
721
722
|
headerCssEllipsis?: boolean;
|
|
723
|
+
components?: InfiniteTableColumn<T>['components'];
|
|
722
724
|
renderValue?: InfiniteTableColumn<T>['renderValue'];
|
|
723
725
|
render?: InfiniteTableColumn<T>['render'];
|
|
724
726
|
valueGetter?: InfiniteTableColumn<T>['valueGetter'];
|
|
@@ -803,6 +805,7 @@ interface InfiniteTableProps<T> {
|
|
|
803
805
|
viewportReservedWidth?: number;
|
|
804
806
|
pivotColumn?: InfiniteTablePropPivotColumn<T, InfiniteTableColumn<T> & InfiniteTablePivotFinalColumn<T>>;
|
|
805
807
|
pivotTotalColumnPosition?: InfiniteTablePropPivotTotalColumnPosition;
|
|
808
|
+
pivotGrandTotalColumnPosition?: InfiniteTablePropPivotGrandTotalColumnPosition;
|
|
806
809
|
groupColumn?: Partial<InfiniteTablePropGroupColumn<T>>;
|
|
807
810
|
groupRenderStrategy?: InfiniteTablePropGroupRenderStrategy;
|
|
808
811
|
hideEmptyGroupColumns?: boolean;
|
|
@@ -911,6 +914,7 @@ interface InfiniteTableSetupState<T> {
|
|
|
911
914
|
}
|
|
912
915
|
declare type InfiniteTableColumnGroupsDepthsMap = Map<string, number>;
|
|
913
916
|
declare type InfiniteTablePropPivotTotalColumnPosition = false | 'start' | 'end';
|
|
917
|
+
declare type InfiniteTablePropPivotGrandTotalColumnPosition = InfiniteTablePropPivotTotalColumnPosition;
|
|
914
918
|
interface InfiniteTableMappedState<T> {
|
|
915
919
|
scrollTopKey: InfiniteTableProps<T>['scrollTopKey'];
|
|
916
920
|
viewportReservedWidth: InfiniteTableProps<T>['viewportReservedWidth'];
|
|
@@ -967,6 +971,7 @@ interface InfiniteTableMappedState<T> {
|
|
|
967
971
|
columnGroups: InfiniteTablePropColumnGroupsMap;
|
|
968
972
|
collapsedColumnGroups: NonUndefined<InfiniteTableProps<T>['collapsedColumnGroups']>;
|
|
969
973
|
pivotTotalColumnPosition: NonUndefined<InfiniteTableProps<T>['pivotTotalColumnPosition']>;
|
|
974
|
+
pivotGrandTotalColumnPosition: InfiniteTableProps<T>['pivotGrandTotalColumnPosition'];
|
|
970
975
|
}
|
|
971
976
|
interface InfiniteTableDerivedState<T> {
|
|
972
977
|
groupBy: DataSourceProps<T>['groupBy'];
|