material-react-table 0.7.0-alpha.4 → 0.7.0-alpha.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.7.0-alpha.4",
2
+ "version": "0.7.0-alpha.5",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI implementation of react-table, inspired by material-table and the MUI X DataGrid, written from the ground up in TypeScript.",
@@ -46,6 +46,11 @@ import { MRT_Default_Icons, MRT_Icons } from './icons';
46
46
  import { MRT_FILTER_TYPE } from './enums';
47
47
  import { MRT_TableRoot } from './table/MRT_TableRoot';
48
48
 
49
+ //@ts-ignore
50
+ window.performance = window.performance || {
51
+ now: () => new Date().getTime(),
52
+ };
53
+
49
54
  export type MRT_TableOptions<D extends Record<string, any> = {}> = Partial<
50
55
  Omit<
51
56
  Options<D>,
@@ -195,16 +195,16 @@ export const MRT_TableRoot = <D extends Record<string, any> = {}>(
195
195
  //@ts-ignore
196
196
  const tableInstance: MRT_TableInstance<{}> = useTable(table, {
197
197
  ...props,
198
- //@ts-ignore
199
- filterTypes: defaultFilterFNs,
200
- debugAll: false,
201
- globalFilterType: currentGlobalFilterType,
202
198
  columnFilterRowsFn: columnFilterRowsFn,
203
199
  columns,
204
200
  data,
201
+ debugAll: false,
205
202
  expandRowsFn: expandRowsFn,
203
+ //@ts-ignore
204
+ filterTypes: defaultFilterFNs,
206
205
  getSubRows: props.getSubRows ?? ((originalRow: D) => originalRow.subRows),
207
206
  globalFilterRowsFn: globalFilterRowsFn,
207
+ globalFilterType: currentGlobalFilterType,
208
208
  groupRowsFn: groupRowsFn,
209
209
  idPrefix,
210
210
  onPaginationChange: (updater: any) =>