@xcelsior/ui-spreadsheets 1.1.16 → 1.1.18

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.mjs CHANGED
@@ -3625,6 +3625,7 @@ function Spreadsheet({
3625
3625
  onSelectionChange,
3626
3626
  onSortChange,
3627
3627
  onFilterChange,
3628
+ afterFiltered,
3628
3629
  onRowClick,
3629
3630
  onRowDoubleClick,
3630
3631
  onAddCellComment,
@@ -4004,6 +4005,11 @@ function Spreadsheet({
4004
4005
  setInternalCurrentPage(1);
4005
4006
  }
4006
4007
  }, [totalPages, currentPage, serverSide]);
4008
+ const afterFilteredRef = useRef5(afterFiltered);
4009
+ afterFilteredRef.current = afterFiltered;
4010
+ useEffect6(() => {
4011
+ afterFilteredRef.current?.(filteredData.toArray());
4012
+ }, [filteredData]);
4007
4013
  const handleRowSelect = useCallback7(
4008
4014
  (rowId, event) => {
4009
4015
  if (!enableRowSelection) return;
@@ -4367,7 +4373,10 @@ function Spreadsheet({
4367
4373
  {
4368
4374
  column,
4369
4375
  filter: filters[column.id],
4370
- onFilterChange: (filter) => handleFilterChangeWithReset(column.id, filter),
4376
+ onFilterChange: (filter) => handleFilterChangeWithReset(
4377
+ column.id,
4378
+ filter
4379
+ ),
4371
4380
  onClose: () => setActiveFilterColumn(null)
4372
4381
  }
4373
4382
  )
@@ -4433,7 +4442,7 @@ function Spreadsheet({
4433
4442
  },
4434
4443
  children: /* @__PURE__ */ jsxs13("div", { className: "relative flex items-center justify-center w-full h-full", children: [
4435
4444
  /* @__PURE__ */ jsx13("span", { children: displayIndex }),
4436
- /* @__PURE__ */ jsxs13("div", { className: "absolute inset-0 flex items-center justify-evenly", children: [
4445
+ /* @__PURE__ */ jsxs13("div", { className: "absolute inset-0 flex items-center justify-between", children: [
4437
4446
  rowContextMenuItems && rowContextMenuItems.length > 0 && /* @__PURE__ */ jsx13(
4438
4447
  RowContextMenu,
4439
4448
  {