@dooherceg/material-react-table 3.2.2-alpha.6 → 3.2.2-alpha.7

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/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
+ import * as _tanstack_react_table from '@tanstack/react-table';
2
+ import { Row, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowSelectionState, SortingState, Updater, VisibilityState, AccessorFn, DeepKeys, DeepValue, Table, TableState, Column, Header, HeaderGroup, Cell, AggregationFn, SortingFn, FilterFn, TableOptions, OnChangeFn, ColumnDef, RowData, Renderable, RowPinningPosition } from '@tanstack/react-table';
1
3
  import * as React from 'react';
2
4
  import React__default, { ReactNode, RefObject, Dispatch, SetStateAction, ChangeEvent, MouseEvent, JSX, Ref, ReactElement, DragEventHandler, HTMLAttributes, FormEventHandler } from 'react';
3
5
  import { RegisterOptions, UseFormReturn } from 'react-hook-form';
4
- import * as _tanstack_react_table from '@tanstack/react-table';
5
- import { Row, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, RowSelectionState, SortingState, Updater, VisibilityState, AccessorFn, DeepKeys, DeepValue, Table, TableState, Column, Header, HeaderGroup, Cell, AggregationFn, SortingFn, FilterFn, TableOptions, OnChangeFn, ColumnDef, Renderable, RowPinningPosition } from '@tanstack/react-table';
6
6
  import { VirtualItem, VirtualizerOptions, Virtualizer } from '@tanstack/react-virtual';
7
7
  import { AlertProps } from '@mui/material/Alert';
8
8
  import { AutocompleteProps } from '@mui/material/Autocomplete';
@@ -1571,6 +1571,19 @@ interface MRT_DimensionsDef {
1571
1571
  fieldsPerRow?: number;
1572
1572
  }
1573
1573
 
1574
+ type MRT_ColumnMetaExtraFieldFilters<TData extends RowData> = TData extends MRT_RowData ? MRT_ColumnDef<TData>[] : never;
1575
+ declare module '@tanstack/react-table' {
1576
+ interface ColumnMeta<TData extends RowData, TValue> {
1577
+ enumValues?: Array<{
1578
+ value: string;
1579
+ label: string;
1580
+ }>;
1581
+ availableIcons?: MRT_AvailableIconOption[];
1582
+ dimensions?: MRT_DimensionsDef;
1583
+ extraFieldFilters?: MRT_ColumnMetaExtraFieldFilters<TData>;
1584
+ }
1585
+ }
1586
+
1574
1587
  declare const isCellEditable: <TData extends MRT_RowData>({ cell, table, }: {
1575
1588
  cell: MRT_Cell<TData>;
1576
1589
  table: MRT_TableInstance<TData>;
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { compareItems, rankItem, rankings } from '@tanstack/match-sorter-utils';
2
1
  import { sortingFns, flexRender as flexRender$1, createRow as createRow$1, aggregationFns, filterFns, getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, functionalUpdate } from '@tanstack/react-table';
2
+ import { compareItems, rankItem, rankings } from '@tanstack/match-sorter-utils';
3
3
  import { useMemo, useState, useCallback, useId, useReducer, useRef, useEffect, forwardRef, Fragment as Fragment$1, createContext, useContext, memo, useImperativeHandle } from 'react';
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
  import IconButton from '@mui/material/IconButton';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var matchSorterUtils = require('@tanstack/match-sorter-utils');
4
3
  var reactTable = require('@tanstack/react-table');
4
+ var matchSorterUtils = require('@tanstack/match-sorter-utils');
5
5
  var react = require('react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
7
  var IconButton = require('@mui/material/IconButton');
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.2.2-alpha.6",
2
+ "version": "3.2.2-alpha.7",
3
3
  "license": "MIT",
4
4
  "name": "@dooherceg/material-react-table",
5
5
  "description": "A fully featured Material UI V6 implementation of TanStack React Table V8, written from the ground up in TypeScript.",