@dooherceg/material-react-table 4.0.5 → 4.1.1

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
@@ -1202,6 +1202,13 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
1202
1202
  positionActionsColumn?: 'first' | 'last';
1203
1203
  positionExpandColumn?: 'first' | 'last';
1204
1204
  positionPagination?: 'both' | 'bottom' | 'none' | 'top';
1205
+ /**
1206
+ * Where the loading progress bar is shown.
1207
+ * - `'both'` (default): bottom edge of the top toolbar and top edge of the bottom toolbar.
1208
+ * - `'header'`: a single thin bar on the bottom edge of the column header, shown after a
1209
+ * short delay so fast responses don't flash it.
1210
+ */
1211
+ positionProgressBars?: 'both' | 'bottom' | 'header' | 'none' | 'top';
1205
1212
  positionToolbarAlertBanner?: 'bottom' | 'head-overlay' | 'none' | 'top';
1206
1213
  positionToolbarDropZone?: 'both' | 'bottom' | 'none' | 'top';
1207
1214
  renderBottomToolbar?: ((props: {
@@ -1269,6 +1276,14 @@ interface MRT_TableOptions<TData extends MRT_RowData> extends Omit<Partial<Table
1269
1276
  table: MRT_TableInstance<TData>;
1270
1277
  }) => Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>) | Partial<VirtualizerOptions<HTMLDivElement, HTMLTableRowElement>>;
1271
1278
  selectAllMode?: 'all' | 'page';
1279
+ /**
1280
+ * How the body looks while loading with no rows yet (`isLoading`/`showSkeletons`).
1281
+ * - `'cells'` (default): placeholder rows with a MUI Skeleton in every cell.
1282
+ * - `'placeholder'`: lightweight pulsing ghost rows aligned to the real columns (plain
1283
+ * elements, no MRT cell logic), shown after a short delay. No throwaway rows to unmount
1284
+ * when data arrives.
1285
+ */
1286
+ skeletonMode?: 'cells' | 'placeholder';
1272
1287
  /**
1273
1288
  * Manage state externally any way you want, then pass it back into MRT.
1274
1289
  */
@@ -1686,6 +1701,8 @@ declare const Memo_MRT_TableBody: typeof MRT_TableBody;
1686
1701
 
1687
1702
  interface MRT_TableBodyCellProps<TData extends MRT_RowData> extends TableCellProps {
1688
1703
  cell: MRT_Cell<TData>;
1704
+ columnPinningKey?: string;
1705
+ isSkeleton?: boolean;
1689
1706
  numRows?: number;
1690
1707
  rowRef: RefObject<HTMLTableRowElement | null>;
1691
1708
  staticColumnIndex?: number;
@@ -1693,7 +1710,7 @@ interface MRT_TableBodyCellProps<TData extends MRT_RowData> extends TableCellPro
1693
1710
  table: MRT_TableInstance<TData>;
1694
1711
  theme: Theme;
1695
1712
  }
1696
- declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, numRows, rowRef, staticColumnIndex, staticRowIndex, table, theme, ...rest }: MRT_TableBodyCellProps<TData>) => react.JSX.Element;
1713
+ declare const MRT_TableBodyCell: <TData extends MRT_RowData>({ cell, columnPinningKey: _columnPinningKey, isSkeleton: _isSkeleton, numRows, rowRef, staticColumnIndex, staticRowIndex, table, theme, ...rest }: MRT_TableBodyCellProps<TData>) => react.JSX.Element;
1697
1714
  declare const Memo_MRT_TableBodyCell: typeof MRT_TableBodyCell;
1698
1715
 
1699
1716
  interface MRT_TableBodyCellValueProps<TData extends MRT_RowData> {