@infinite-table/infinite-react 7.3.5 → 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
 
@@ -2852,6 +2867,7 @@ interface InfiniteTableMappedState<T> {
2852
2867
  cellStyle: InfiniteTableProps<T>['cellStyle'];
2853
2868
  rowProps: InfiniteTableProps<T>['rowProps'];
2854
2869
  rowClassName: InfiniteTableProps<T>['rowClassName'];
2870
+ rowHoverClassName: InfiniteTableProps<T>['rowHoverClassName'];
2855
2871
  cellClassName: InfiniteTableProps<T>['cellClassName'];
2856
2872
  pinnedStartMaxWidth: InfiniteTableProps<T>['pinnedStartMaxWidth'];
2857
2873
  pinnedEndMaxWidth: InfiniteTableProps<T>['pinnedEndMaxWidth'];
@@ -3320,12 +3336,12 @@ type InfiniteTableHeaderProps<_T> = {
3320
3336
  };
3321
3337
 
3322
3338
  type InfiniteTableBodyProps<_T> = {
3323
- rowHoverClassNames?: string | string[];
3339
+ rowHoverClassName?: string | string[];
3324
3340
  };
3325
3341
 
3326
3342
  declare function InfiniteTableBody<T>(props: InfiniteTableBodyProps<T>): React$1.JSX.Element;
3327
3343
  declare namespace InfiniteTableBody {
3328
- var rowHoverClassNames: string[];
3344
+ var rowHoverClassName: string[];
3329
3345
  }
3330
3346
 
3331
3347
  declare const InfiniteTableClassName: string;
@@ -3366,6 +3382,7 @@ declare const defaultFilterTypes: Record<string, DataSourceFilterType<any>>;
3366
3382
  declare function useDataSourceState<T>(): DataSourceState<T>;
3367
3383
 
3368
3384
  type FilterDataSourceParams<T> = {
3385
+ marker?: PerfMarker;
3369
3386
  dataArray: T[];
3370
3387
  operatorsByFilterType: DataSourceDerivedState<T>['operatorsByFilterType'];
3371
3388
  filterTypes: DataSourcePropFilterTypes<T>;
@@ -6723,12 +6740,14 @@ type PivotBy<DataType, KeyType> = Omit<GroupBy<DataType, KeyType>, 'column'> & {
6723
6740
  }) => ColumnTypeWithInherit<Partial<InfiniteTablePivotFinalColumnGroup<DataType>>>);
6724
6741
  };
6725
6742
  type TreeParams<DataType, _KeyType> = {
6743
+ marker?: PerfMarker;
6726
6744
  isLeafNode: (item: DataType) => boolean;
6727
6745
  getNodeChildren: (item: DataType) => null | DataType[];
6728
6746
  toKey: (item: DataType) => any;
6729
6747
  reducers?: Record<string, DataSourceAggregationReducer<DataType, any>>;
6730
6748
  };
6731
6749
  type GroupParams<DataType, KeyType> = {
6750
+ marker?: PerfMarker;
6732
6751
  groupBy: GroupBy<DataType, KeyType>[];
6733
6752
  defaultToKey?: (value: any, item: DataType) => GroupKeyType<KeyType>;
6734
6753
  pivot?: PivotBy<DataType, KeyType>[];
@@ -7229,7 +7248,7 @@ type RowDetailComponentProps<T = any> = {
7229
7248
  rowInfo: InfiniteTableRowInfo<T>;
7230
7249
  cache: RowDetailCacheStorageForCurrentRow<RowDetailCacheEntry>;
7231
7250
  };
7232
- type InfiniteTablePropComponents<T = any> = {
7251
+ interface InfiniteTablePropComponents<T = any> {
7233
7252
  LoadMask?: (props: LoadMaskProps & {
7234
7253
  children?: React$1.ReactNode | undefined;
7235
7254
  }) => React$1.JSX.Element | null;
@@ -7239,7 +7258,7 @@ type InfiniteTablePropComponents<T = any> = {
7239
7258
  }) => React$1.JSX.Element | null;
7240
7259
  MenuIcon?: (props: MenuIconProps) => React$1.JSX.Element | null;
7241
7260
  RowDetail?: (props: RowDetailComponentProps<T>) => React$1.JSX.Element | null;
7242
- };
7261
+ }
7243
7262
  type ScrollStopInfo = {
7244
7263
  scrollTop: number;
7245
7264
  scrollLeft: number;
@@ -7371,6 +7390,7 @@ interface InfiniteTableProps<T> {
7371
7390
  cellStyle?: InfiniteTablePropCellStyle<T>;
7372
7391
  cellClassName?: InfiniteTablePropCellClassName<T>;
7373
7392
  rowClassName?: InfiniteTablePropRowClassName<T>;
7393
+ rowHoverClassName?: string;
7374
7394
  columnHeaderHeight?: number | string;
7375
7395
  onKeyDown?: (context: InfiniteTablePublicContext<T> & {
7376
7396
  actions: InfiniteTableEventHandlerContext<T>['actions'];