@infinite-table/infinite-react 7.3.6 → 7.4.0

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 CHANGED
@@ -1078,6 +1078,19 @@ type GroupBy<DataType, KeyType = any> = {
1078
1078
  }
1079
1079
  ]>;
1080
1080
 
1081
+ type PerfMarkerDetails = {
1082
+ name: string;
1083
+ value: string | number | boolean;
1084
+ }[];
1085
+ interface PerfMarker {
1086
+ start(options?: {
1087
+ details?: PerfMarkerDetails;
1088
+ }): PerfMarker;
1089
+ end(options?: {
1090
+ details?: PerfMarkerDetails;
1091
+ }): PerfMarker;
1092
+ }
1093
+
1081
1094
  type SortDir = 1 | -1;
1082
1095
  type MultisortInfo<T> = {
1083
1096
  /**
@@ -1104,6 +1117,7 @@ type MultisortInfoAllowMultipleFields<T> = Omit<MultisortInfo<T>, 'field'> & {
1104
1117
  };
1105
1118
  declare const multisort: {
1106
1119
  <T>(sortInfo: MultisortInfoAllowMultipleFields<T>[], array: T[], options?: {
1120
+ marker?: PerfMarker;
1107
1121
  get?: (item: any) => T;
1108
1122
  } | ((item: any) => T)): T[];
1109
1123
  knownTypes: {
@@ -1118,6 +1132,7 @@ type NestedMultiSortOptions<T> = {
1118
1132
  toKey: (item: T) => any;
1119
1133
  depthFirst?: boolean;
1120
1134
  inplace?: boolean;
1135
+ marker?: PerfMarker;
1121
1136
  };
1122
1137
  declare const multisortNested: <T>(sortInfo: MultisortInfoAllowMultipleFields<T>[], array: T[], options: NestedMultiSortOptions<T>) => T[];
1123
1138
 
@@ -3367,6 +3382,7 @@ declare const defaultFilterTypes: Record<string, DataSourceFilterType<any>>;
3367
3382
  declare function useDataSourceState<T>(): DataSourceState<T>;
3368
3383
 
3369
3384
  type FilterDataSourceParams<T> = {
3385
+ marker?: PerfMarker;
3370
3386
  dataArray: T[];
3371
3387
  operatorsByFilterType: DataSourceDerivedState<T>['operatorsByFilterType'];
3372
3388
  filterTypes: DataSourcePropFilterTypes<T>;
@@ -6724,12 +6740,14 @@ type PivotBy<DataType, KeyType> = Omit<GroupBy<DataType, KeyType>, 'column'> & {
6724
6740
  }) => ColumnTypeWithInherit<Partial<InfiniteTablePivotFinalColumnGroup<DataType>>>);
6725
6741
  };
6726
6742
  type TreeParams<DataType, _KeyType> = {
6743
+ marker?: PerfMarker;
6727
6744
  isLeafNode: (item: DataType) => boolean;
6728
6745
  getNodeChildren: (item: DataType) => null | DataType[];
6729
6746
  toKey: (item: DataType) => any;
6730
6747
  reducers?: Record<string, DataSourceAggregationReducer<DataType, any>>;
6731
6748
  };
6732
6749
  type GroupParams<DataType, KeyType> = {
6750
+ marker?: PerfMarker;
6733
6751
  groupBy: GroupBy<DataType, KeyType>[];
6734
6752
  defaultToKey?: (value: any, item: DataType) => GroupKeyType<KeyType>;
6735
6753
  pivot?: PivotBy<DataType, KeyType>[];
@@ -7230,7 +7248,7 @@ type RowDetailComponentProps<T = any> = {
7230
7248
  rowInfo: InfiniteTableRowInfo<T>;
7231
7249
  cache: RowDetailCacheStorageForCurrentRow<RowDetailCacheEntry>;
7232
7250
  };
7233
- type InfiniteTablePropComponents<T = any> = {
7251
+ interface InfiniteTablePropComponents<T = any> {
7234
7252
  LoadMask?: (props: LoadMaskProps & {
7235
7253
  children?: React$1.ReactNode | undefined;
7236
7254
  }) => React$1.JSX.Element | null;
@@ -7240,7 +7258,7 @@ type InfiniteTablePropComponents<T = any> = {
7240
7258
  }) => React$1.JSX.Element | null;
7241
7259
  MenuIcon?: (props: MenuIconProps) => React$1.JSX.Element | null;
7242
7260
  RowDetail?: (props: RowDetailComponentProps<T>) => React$1.JSX.Element | null;
7243
- };
7261
+ }
7244
7262
  type ScrollStopInfo = {
7245
7263
  scrollTop: number;
7246
7264
  scrollLeft: number;