@ai-matrx/design-system 0.20.10 → 0.20.11

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.
@@ -1995,7 +1995,7 @@ function GenericTablePagination({
1995
1995
  const startItem = totalItems === 0 ? 0 : progressive ? 1 : (currentPage - 1) * effectiveItemsPerPage + 1;
1996
1996
  const endItem = Math.min(progressive?.shownCount ?? currentPage * effectiveItemsPerPage, totalItems);
1997
1997
  const defaultLabelFormat = (start, end, total) => {
1998
- if (progressive) return `${end} shown / ${total} loaded`;
1998
+ if (progressive) return progressive.loadedCount !== void 0 && progressive.loadedCount !== total ? `${end} shown / ${total} matching \xB7 ${progressive.loadedCount} loaded` : `${end} shown / ${total} loaded`;
1999
1999
  return compact ? `${start}-${end} of ${total}` : `Showing ${start} to ${end} of ${total} entries`;
2000
2000
  };
2001
2001
  const formatLabel = labelFormat || defaultLabelFormat;
@@ -2047,7 +2047,7 @@ function GenericTablePagination({
2047
2047
  {
2048
2048
  className: cn("flex min-w-0 justify-center", infoContainerClassName),
2049
2049
  children: showPageInfo && !hideEntriesInfo && /* @__PURE__ */ jsxs13(Fragment, { children: [
2050
- /* @__PURE__ */ jsx20("span", { className: "truncate text-xs tabular-nums text-muted-foreground sm:hidden", children: progressive ? `${endItem}/${totalItems} loaded` : `${startItem}-${endItem} / ${totalItems}` }),
2050
+ /* @__PURE__ */ jsx20("span", { className: "truncate text-xs tabular-nums text-muted-foreground sm:hidden", children: progressive ? `${endItem}/${totalItems} ${progressive.loadedCount !== void 0 && progressive.loadedCount !== totalItems ? "matching" : "loaded"}` : `${startItem}-${endItem} / ${totalItems}` }),
2051
2051
  /* @__PURE__ */ jsx20(
2052
2052
  "span",
2053
2053
  {
@@ -10774,6 +10774,7 @@ function MatrxDataTableCore({
10774
10774
  totalItems,
10775
10775
  ...localProgressiveEnabled ? { progressive: {
10776
10776
  shownCount: progressiveRows.shownCount,
10777
+ loadedCount: data.length,
10777
10778
  hasMore: progressiveRows.hasMore,
10778
10779
  onShowMore: () => void progressiveRows.showMore()
10779
10780
  } } : {},