@coldsmirk/ledger-mantine 0.10.0 → 0.10.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.cjs CHANGED
@@ -2265,12 +2265,64 @@ function useColumnWindow({ enabled, overscan, viewport, centerColumnIds, widths,
2265
2265
  ]);
2266
2266
  }
2267
2267
  /**
2268
- * Rendered column count including the spacer cols — what a full-width cell (detail panel,
2269
- * loader row) spans.
2268
+ * What each rendered col holds, in colgroup order: a column, a spacer standing for the columns a
2269
+ * window left out, or the filler (docs/sizing.md#the-filler). Its length is what a full-width
2270
+ * cell (detail panel, loader row) spans; a row with no cells of its own (the skeleton) draws one
2271
+ * cell per entry.
2272
+ */
2273
+ function renderedCols(view, leafColumnCount, pinnedEndCount, filler) {
2274
+ const columns = (count) => Array.from({ length: count }, () => "column");
2275
+ const fillerCol = filler ? ["filler"] : [];
2276
+ if (view === null) return [
2277
+ ...columns(leafColumnCount - pinnedEndCount),
2278
+ ...fillerCol,
2279
+ ...columns(pinnedEndCount)
2280
+ ];
2281
+ return [
2282
+ ...columns(view.pinnedStartCount),
2283
+ ...view.start > 0 ? ["spacer"] : [],
2284
+ ...columns(view.end - view.start),
2285
+ ...view.end < view.centerCount ? ["spacer"] : [],
2286
+ ...fillerCol,
2287
+ ...columns(view.pinnedEndCount)
2288
+ ];
2289
+ }
2290
+ /**
2291
+ * Where the filler's cell stands in a row (docs/sizing.md#the-filler): before the first cell of
2292
+ * the end-pinned zone — so after the scrolling columns and a trailing spacer — or last where no
2293
+ * column is pinned to the end. The same index in every row, since every row tiles one colgroup.
2294
+ */
2295
+ function fillerIndex(cells, inEndZone) {
2296
+ const index = cells.findIndex((cell) => inEndZone(cell));
2297
+ return index === -1 ? cells.length : index;
2298
+ }
2299
+ /**
2300
+ * A row's rendered cells with the filler's cell put in its place (`fillerIndex`) — a `td`, or a
2301
+ * `th` in the header — or as they are where the row carries none. The cell is empty and, like a
2302
+ * spacer's, out of the accessibility tree: no cell of the ARIA table.
2303
+ */
2304
+ function withFillerCell(cells, filler) {
2305
+ const nodes = cells.map((cell) => cell.node);
2306
+ if (filler === null) return nodes;
2307
+ const at = fillerIndex(cells, (cell) => cell.endZone);
2308
+ const fillerCell = (0, react.createElement)(filler, {
2309
+ key: "ledger:filler",
2310
+ "aria-hidden": true,
2311
+ "data-ledger-filler": true
2312
+ });
2313
+ return [
2314
+ ...nodes.slice(0, at),
2315
+ fillerCell,
2316
+ ...nodes.slice(at)
2317
+ ];
2318
+ }
2319
+ /**
2320
+ * A header or footer cell's zone is its own leaves': v9 splits a group at every pinning
2321
+ * boundary, so each instance covers one zone — while the group column's `getIsPinned()` answers
2322
+ * for all its leaves at once, and would put a group's scrolling half in the end zone.
2270
2323
  */
2271
- function renderedColCount(view, leafColumnCount) {
2272
- if (view === null) return leafColumnCount;
2273
- return view.pinnedStartCount + (view.end - view.start) + view.pinnedEndCount + (view.start > 0 ? 1 : 0) + (view.end < view.centerCount ? 1 : 0);
2324
+ function headerInEndZone(header) {
2325
+ return header.getLeafHeaders()[0]?.column.getIsPinned() === "end";
2274
2326
  }
2275
2327
  /**
2276
2328
  * A leaf-level row's cells against the window. `cells` is the full display-ordered list, so a
@@ -2676,7 +2728,7 @@ function DataCell({ cell, editing, rowEditing, isFirstDataCell, depth, rowSpan,
2676
2728
  children: content
2677
2729
  });
2678
2730
  }
2679
- function DataRowImpl({ row, dataIndex, last, rowsBelow, editingColumnId, editingRow, dragging, dropSide, selected, active, activatable, expanded, depth, spanning, columnWindow, pinnedPosition, pinnedOffset, virtualIndex, measureRef, ariaRowIndex }) {
2731
+ function DataRowImpl({ row, dataIndex, last, rowsBelow, editingColumnId, editingRow, dragging, dropSide, selected, active, activatable, expanded, depth, spanning, columnWindow, filler, pinnedPosition, pinnedOffset, virtualIndex, measureRef, ariaRowIndex }) {
2680
2732
  const { getStyles, onRowClick, onRowActivate, onRowDoubleClick, onRowContextMenu, rowProps, activeRowEnabled, setActiveRow } = useDataTableContext();
2681
2733
  const cells = row.getVisibleCells();
2682
2734
  const firstDataCellIndex = cells.findIndex((cell) => !isInternalColumn(cell.column.id));
@@ -2731,26 +2783,40 @@ function DataRowImpl({ row, dataIndex, last, rowsBelow, editingColumnId, editing
2731
2783
  rowSpan: spanning ? cell.getRowSpan() : 1
2732
2784
  }, cell.id);
2733
2785
  };
2734
- if (columnWindow === null) return cells.map((cell, index) => renderCell(cell, index));
2786
+ const placed = (cell, displayIndex) => {
2787
+ return {
2788
+ node: renderCell(cell, displayIndex),
2789
+ endZone: cell.column.getIsPinned() === "end"
2790
+ };
2791
+ };
2792
+ const fillerCell = filler ? "td" : null;
2793
+ if (columnWindow === null) return withFillerCell(cells.map((cell, index) => placed(cell, index)), fillerCell);
2735
2794
  const segments = windowRowCells(cells, columnWindow);
2736
2795
  const windowedStart = columnWindow.pinnedStartCount + columnWindow.start;
2737
2796
  const trailingStart = cells.length - columnWindow.pinnedEndCount;
2738
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
2739
- segments.leading.map((cell, index) => renderCell(cell, index)),
2740
- columnWindow.start > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
2741
- "aria-hidden": true,
2742
- "data-ledger-spacer": true
2743
- }),
2744
- segments.windowed.map((cell, index) => renderCell(cell, windowedStart + index)),
2745
- columnWindow.end < columnWindow.centerCount && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
2746
- "aria-hidden": true,
2747
- "data-ledger-spacer": true
2748
- }),
2749
- segments.trailing.map((cell, index) => renderCell(cell, trailingStart + index))
2750
- ] });
2797
+ return withFillerCell([
2798
+ ...segments.leading.map((cell, index) => placed(cell, index)),
2799
+ ...columnWindow.start > 0 ? [spacerCell("leading")] : [],
2800
+ ...segments.windowed.map((cell, index) => placed(cell, windowedStart + index)),
2801
+ ...columnWindow.end < columnWindow.centerCount ? [spacerCell("trailing")] : [],
2802
+ ...segments.trailing.map((cell, index) => placed(cell, trailingStart + index))
2803
+ ], fillerCell);
2751
2804
  }
2752
2805
  }
2753
2806
  const DataRow = (0, react.memo)(DataRowImpl);
2807
+ /**
2808
+ * A spacer's cell over a spacer col (docs/virtualization.md#column-virtualization), placed in its
2809
+ * row as the scrolling columns' — never the end zone's.
2810
+ */
2811
+ function spacerCell(edge) {
2812
+ return {
2813
+ node: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
2814
+ "aria-hidden": true,
2815
+ "data-ledger-spacer": true
2816
+ }, `ledger:spacer-${edge}`),
2817
+ endZone: false
2818
+ };
2819
+ }
2754
2820
  function DetailRow({ row, renderDetailPanel, colSpan, dragging, dropSide, last, pinnedPosition, pinnedOffset, virtualIndex, measureRef, ariaRowIndex }) {
2755
2821
  const { getStyles } = useDataTableContext();
2756
2822
  const pinnedStyle = pinnedPosition === "top" ? { top: `${pinnedOffset ?? 0}px` } : pinnedPosition === "bottom" ? { bottom: `${pinnedOffset ?? 0}px` } : void 0;
@@ -2774,15 +2840,15 @@ function DetailRow({ row, renderDetailPanel, colSpan, dragging, dropSide, last,
2774
2840
  })
2775
2841
  });
2776
2842
  }
2777
- function SkeletonRows({ rowCount, columnCount, ariaRowIndexStart }) {
2843
+ function SkeletonRows({ rowCount, cols, ariaRowIndexStart }) {
2778
2844
  const { getStyles } = useDataTableContext();
2779
2845
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: Array.from({ length: rowCount }, (_, rowIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Table.Tr, {
2780
2846
  "aria-rowindex": ariaRowIndexStart === void 0 ? void 0 : ariaRowIndexStart + rowIndex,
2781
2847
  "data-last": rowIndex === rowCount - 1 || void 0,
2782
2848
  role: "row",
2783
2849
  ...getStyles("row"),
2784
- children: Array.from({ length: columnCount }, (_, columnIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Table.Td, {
2785
- "data-leading": columnIndex === 0 || void 0,
2850
+ children: cols.map((col, colIndex) => col === "column" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Table.Td, {
2851
+ "data-leading": colIndex === 0 || void 0,
2786
2852
  role: "cell",
2787
2853
  ...getStyles("cell"),
2788
2854
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Skeleton, {
@@ -2790,7 +2856,13 @@ function SkeletonRows({ rowCount, columnCount, ariaRowIndexStart }) {
2790
2856
  my: "calc((1lh - 10px) / 2)",
2791
2857
  radius: "sm"
2792
2858
  })
2793
- }, columnIndex))
2859
+ }, colIndex) : col === "spacer" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
2860
+ "aria-hidden": true,
2861
+ "data-ledger-spacer": true
2862
+ }, colIndex) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
2863
+ "aria-hidden": true,
2864
+ "data-ledger-filler": true
2865
+ }, colIndex))
2794
2866
  }, rowIndex)) });
2795
2867
  }
2796
2868
  function LoaderRow({ colSpan, ariaRowIndex }) {
@@ -2841,7 +2913,7 @@ function LoadMoreErrorRow({ colSpan, message, ariaRowIndex, onRetry }) {
2841
2913
  })
2842
2914
  });
2843
2915
  }
2844
- function TableBody({ table, virtualization, columnWindow, viewportRef, loading, loadingMore, loadMoreError, onLoadMoreRetry, reorderSourceId, reorderTarget, skeletonRowCount, onVirtualizerChange }) {
2916
+ function TableBody({ table, virtualization, columnWindow, filler, viewportRef, loading, loadingMore, loadMoreError, onLoadMoreRetry, reorderSourceId, reorderTarget, skeletonRowCount, onVirtualizerChange }) {
2845
2917
  const { getStyles, withColumnHeaders } = useDataTableContext();
2846
2918
  const ledger = table.options.meta?.ledger;
2847
2919
  const withDetailPanels = Boolean(ledger?.renderDetailPanel);
@@ -2888,8 +2960,8 @@ function TableBody({ table, virtualization, columnWindow, viewportRef, loading,
2888
2960
  virtualizer,
2889
2961
  onVirtualizerChange
2890
2962
  ]);
2891
- const leafColumnCount = table.getVisibleLeafColumns().length;
2892
- const fullWidthColSpan = renderedColCount(columnWindow, leafColumnCount);
2963
+ const cols = renderedCols(columnWindow, table.getVisibleLeafColumns().length, table.getEndVisibleLeafColumns().length, filler);
2964
+ const fullWidthColSpan = cols.length;
2893
2965
  const totalDisplayRowCount = topDisplayRows.length + centerDisplayRows.length + bottomDisplayRows.length;
2894
2966
  const canCommitCell = Boolean(ledger?.onEditCommit);
2895
2967
  const canCommitRow = Boolean(ledger?.onRowEditCommit);
@@ -2917,7 +2989,7 @@ function TableBody({ table, virtualization, columnWindow, viewportRef, loading,
2917
2989
  ...getStyles("tbody"),
2918
2990
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SkeletonRows, {
2919
2991
  ariaRowIndexStart: virtualEnabled ? headerRowCount + 1 : void 0,
2920
- columnCount: fullWidthColSpan,
2992
+ cols,
2921
2993
  rowCount: skeletonRowCount
2922
2994
  })
2923
2995
  });
@@ -2970,6 +3042,7 @@ function TableBody({ table, virtualization, columnWindow, viewportRef, loading,
2970
3042
  dropSide,
2971
3043
  editingRow: editingRowId === row.id && (ledger?.editing.row.active(row.id) ?? false),
2972
3044
  expanded: row.getIsExpanded(),
3045
+ filler,
2973
3046
  last,
2974
3047
  measureRef: options.measureRef,
2975
3048
  pinKey,
@@ -3061,7 +3134,7 @@ function visibleFooterGroups(table) {
3061
3134
  function tableHasFooter(table) {
3062
3135
  return visibleFooterGroups(table).length > 0;
3063
3136
  }
3064
- function TableFooter({ table, ariaRowIndexStart, columnWindow }) {
3137
+ function TableFooter({ table, ariaRowIndexStart, columnWindow, filler }) {
3065
3138
  const { getStyles, footerRowProps } = useDataTableContext();
3066
3139
  const renderCell = (footer, colSpan, ariaColIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_mantine_core.Table.Td, {
3067
3140
  ...mergeElementProps(resolveElementProps(footer.column.columnDef.meta?.footerCellProps, footer), {
@@ -3084,10 +3157,21 @@ function TableFooter({ table, ariaRowIndexStart, columnWindow }) {
3084
3157
  role: "row",
3085
3158
  ...getStyles("footerRow")
3086
3159
  }),
3087
- children: columnWindow === null ? footerGroup.headers.map((footer) => renderCell(footer, void 0, void 0)) : windowHeaderCells(footerGroup.headers, columnWindow).map((cell) => cell.kind === "spacer" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
3088
- "aria-hidden": true,
3089
- "data-ledger-spacer": true
3090
- }, `ledger:spacer-${cell.edge}`) : renderCell(cell.header, cell.colSpan, cell.ariaColIndex))
3160
+ children: withFillerCell(columnWindow === null ? footerGroup.headers.map((footer) => {
3161
+ return {
3162
+ node: renderCell(footer, void 0, void 0),
3163
+ endZone: headerInEndZone(footer)
3164
+ };
3165
+ }) : windowHeaderCells(footerGroup.headers, columnWindow).map((cell) => cell.kind === "spacer" ? {
3166
+ node: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
3167
+ "aria-hidden": true,
3168
+ "data-ledger-spacer": true
3169
+ }, `ledger:spacer-${cell.edge}`),
3170
+ endZone: false
3171
+ } : {
3172
+ node: renderCell(cell.header, cell.colSpan, cell.ariaColIndex),
3173
+ endZone: headerInEndZone(cell.header)
3174
+ }), filler ? "td" : null)
3091
3175
  }, footerGroup.id))
3092
3176
  });
3093
3177
  }
@@ -3693,7 +3777,7 @@ function useColumnResize(setColumnSizing) {
3693
3777
  * which carries whatever render pass ran last — a discarded one included
3694
3778
  * (docs/architecture.md).
3695
3779
  */
3696
- function TableHeader({ table, columnWidths, columnSizing, columnWindow }) {
3780
+ function TableHeader({ table, columnWidths, columnSizing, columnWindow, filler }) {
3697
3781
  const { getStyles, virtualizedRows, headerRowProps } = useDataTableContext();
3698
3782
  const reorder = useColumnReorder(table);
3699
3783
  const resize = useColumnResize(table.setColumnSizing);
@@ -3715,10 +3799,21 @@ function TableHeader({ table, columnWidths, columnSizing, columnWindow }) {
3715
3799
  role: "row",
3716
3800
  ...getStyles("headerRow")
3717
3801
  }),
3718
- children: columnWindow === null ? headerGroup.headers.map((header) => renderCell(header, void 0, void 0)) : windowHeaderCells(headerGroup.headers, columnWindow).map((cell) => cell.kind === "spacer" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
3719
- "aria-hidden": true,
3720
- "data-ledger-spacer": true
3721
- }, `ledger:spacer-${cell.edge}`) : renderCell(cell.header, cell.colSpan, cell.ariaColIndex))
3802
+ children: withFillerCell(columnWindow === null ? headerGroup.headers.map((header) => {
3803
+ return {
3804
+ node: renderCell(header, void 0, void 0),
3805
+ endZone: headerInEndZone(header)
3806
+ };
3807
+ }) : windowHeaderCells(headerGroup.headers, columnWindow).map((cell) => cell.kind === "spacer" ? {
3808
+ node: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
3809
+ "aria-hidden": true,
3810
+ "data-ledger-spacer": true
3811
+ }, `ledger:spacer-${cell.edge}`),
3812
+ endZone: false
3813
+ } : {
3814
+ node: renderCell(cell.header, cell.colSpan, cell.ariaColIndex),
3815
+ endZone: headerInEndZone(cell.header)
3816
+ }), filler ? "th" : null)
3722
3817
  }, headerGroup.id))
3723
3818
  });
3724
3819
  }
@@ -4020,7 +4115,9 @@ function useAutosizeWidths({ columns, columnSizing, main, viewport, rows, appear
4020
4115
  * by maxSize; when the container is too small every grow column falls back to its basis and the
4021
4116
  * table overflows into horizontal scroll;
4022
4117
  * - with no grow columns at all, surplus distributes proportionally over every column up to each
4023
- * maxSize. Hard maximums win over filling the viewport.
4118
+ * maxSize. Hard maximums win over filling the viewport: what no column may take is the filler,
4119
+ * an empty col between the scrolling columns and the end-pinned ones that every row carries a
4120
+ * cell of, so the table still spans the viewport (docs/sizing.md#the-filler).
4024
4121
  *
4025
4122
  * Author sizing comes from the raw-definition registry (`rawColumnSizing`), never from
4026
4123
  * `column.columnDef` — TanStack merges `size: 150, minSize: 20` defaults into every resolved
@@ -4092,7 +4189,8 @@ function resolveColumnWidths(columns, columnSizing, availableWidth) {
4092
4189
  } else byId[column.id] = clampWidth(sized, column.minSize, column.maxSize);
4093
4190
  }
4094
4191
  const baseTotal = columns.reduce((total, column) => total + (byId[column.id] ?? 0), 0);
4095
- const surplus = (Number.isFinite(availableWidth) ? Math.max(0, Math.round(availableWidth)) : 0) - baseTotal;
4192
+ const targetWidth = Number.isFinite(availableWidth) ? Math.max(0, Math.round(availableWidth)) : 0;
4193
+ const surplus = targetWidth - baseTotal;
4096
4194
  if (surplus > 0) distributeSurplus(byId, growColumns.length > 0 ? growColumns : columns.map((column) => {
4097
4195
  return {
4098
4196
  id: column.id,
@@ -4100,9 +4198,11 @@ function resolveColumnWidths(columns, columnSizing, availableWidth) {
4100
4198
  max: normalizedBound(column.maxSize)
4101
4199
  };
4102
4200
  }), surplus);
4201
+ const total = columns.reduce((sum, column) => sum + (byId[column.id] ?? 0), 0);
4103
4202
  return {
4104
4203
  byId,
4105
- total: columns.reduce((sum, column) => sum + (byId[column.id] ?? 0), 0)
4204
+ total,
4205
+ filler: Math.max(0, targetWidth - total)
4106
4206
  };
4107
4207
  }
4108
4208
  /**
@@ -4158,7 +4258,11 @@ function useColumnWidths(table, { columns, viewport, tableMinWidth, injectedWidt
4158
4258
  injectedWidth,
4159
4259
  autosizeWidths
4160
4260
  ]);
4161
- const signature = JSON.stringify([resolved.total, Object.entries(resolved.byId)]);
4261
+ const signature = JSON.stringify([
4262
+ resolved.total,
4263
+ resolved.filler,
4264
+ Object.entries(resolved.byId)
4265
+ ]);
4162
4266
  return (0, react.useMemo)(() => resolved, [signature]);
4163
4267
  }
4164
4268
  //#endregion
@@ -7182,7 +7286,17 @@ function DataTableCore({ presentation, stylesProps, table }) {
7182
7286
  columnWidths,
7183
7287
  tableState.columnPinning
7184
7288
  ]);
7185
- const colElements = columnWindow === null ? visibleLeafColumns.map((column) => leafCol(column)) : [
7289
+ const filler = columnWidths.filler > 0;
7290
+ const fillerCol = filler && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("col", {
7291
+ "data-ledger-filler": true,
7292
+ style: { width: columnWidths.filler }
7293
+ }, "ledger:filler");
7294
+ const endCols = pinnedEndCount === 0 ? [] : visibleLeafColumns.slice(-pinnedEndCount).map((column) => leafCol(column));
7295
+ const colElements = columnWindow === null ? [
7296
+ ...visibleLeafColumns.slice(0, visibleLeafColumns.length - pinnedEndCount).map((column) => leafCol(column)),
7297
+ fillerCol,
7298
+ ...endCols
7299
+ ] : [
7186
7300
  ...visibleLeafColumns.slice(0, pinnedStartCount).map((column) => leafCol(column)),
7187
7301
  columnWindow.start > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("col", {
7188
7302
  "data-ledger-spacer": true,
@@ -7193,7 +7307,8 @@ function DataTableCore({ presentation, stylesProps, table }) {
7193
7307
  "data-ledger-spacer": true,
7194
7308
  style: { width: columnWindow.trailingSpace }
7195
7309
  }, "ledger:spacer-trailing"),
7196
- ...pinnedEndCount === 0 ? [] : visibleLeafColumns.slice(-pinnedEndCount).map((column) => leafCol(column))
7310
+ fillerCol,
7311
+ ...endCols
7197
7312
  ];
7198
7313
  const rowsLength = table.getRowModel().rows.length;
7199
7314
  const errorActive = Boolean(error) && !loading;
@@ -7538,8 +7653,9 @@ function DataTableCore({ presentation, stylesProps, table }) {
7538
7653
  tabularNums,
7539
7654
  verticalSpacing: verticalSpacing ?? scale.verticalSpacing
7540
7655
  };
7656
+ const tableWidth = columnWidths.total + columnWidths.filler;
7541
7657
  const tableStyleProps = () => getStyles("table", { style: {
7542
- width: columnWidths.total > 0 ? columnWidths.total : void 0,
7658
+ width: tableWidth > 0 ? tableWidth : void 0,
7543
7659
  minWidth: toPx(tableMinWidth),
7544
7660
  borderCollapse: "separate",
7545
7661
  borderSpacing: 0,
@@ -7663,6 +7779,7 @@ function DataTableCore({ presentation, stylesProps, table }) {
7663
7779
  columnSizing: tableState.columnSizing,
7664
7780
  columnWidths: columnWidths.byId,
7665
7781
  columnWindow,
7782
+ filler,
7666
7783
  table: erasedTable
7667
7784
  })]
7668
7785
  })
@@ -7694,6 +7811,7 @@ function DataTableCore({ presentation, stylesProps, table }) {
7694
7811
  ...tableStyleProps(),
7695
7812
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("colgroup", { children: colElements }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableBody, {
7696
7813
  columnWindow,
7814
+ filler,
7697
7815
  loading: loading === true,
7698
7816
  loadingMore: loadingMore === true,
7699
7817
  loadMoreError: loadMoreError ?? false,
@@ -7775,6 +7893,7 @@ function DataTableCore({ presentation, stylesProps, table }) {
7775
7893
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("colgroup", { children: colElements }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TableFooter, {
7776
7894
  ariaRowIndexStart: virtualEnabled ? footerAriaRowIndexStart : void 0,
7777
7895
  columnWindow,
7896
+ filler,
7778
7897
  table: erasedTable
7779
7898
  })]
7780
7899
  })