@ai-matrx/design-system 0.20.10 → 0.20.12
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/CHANGELOG.md +12 -0
- package/dist/data-table/index.cjs +4 -3
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +4 -3
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/pagination.cjs +2 -2
- package/dist/data-table/pagination.cjs.map +1 -1
- package/dist/data-table/pagination.d.cts +1 -0
- package/dist/data-table/pagination.d.ts +1 -0
- package/dist/data-table/pagination.js +2 -2
- package/dist/data-table/pagination.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.20.12
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/design-system/v0.20.11..npm/design-system/v0.20.12 -- apps/shared/design-system`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.20.11
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/design-system/v0.20.10..npm/design-system/v0.20.11 -- apps/shared/design-system`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
3
15
|
## 0.20.10
|
|
4
16
|
|
|
5
17
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
@@ -1075,7 +1075,7 @@ function TableSearch({ value, onChange, scope, onScopeChange, scopes, placeholde
|
|
|
1075
1075
|
}, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(X, { "aria-hidden": "true", className: "h-3.5 w-3.5" }) }) }),
|
|
1076
1076
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(TooltipContent, { children: "Clear search" })
|
|
1077
1077
|
] }) : null,
|
|
1078
|
-
expanded ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { role: "group", "aria-label": "Search fields", className: "flex
|
|
1078
|
+
expanded ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { role: "group", "aria-label": "Search fields", className: "flex shrink-0 items-center overflow-x-auto", style: { maxWidth: "min(60%, max(0px, calc(100% - 12rem)))" }, children: scopes.map((option) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("button", { type: "button", "aria-pressed": scope === option.id, className: "flex h-11 shrink-0 items-center justify-center px-1 text-xs", onClick: () => onScopeChange(option.id), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: scope === option.id ? "rounded-full bg-primary px-2 py-1 text-primary-foreground" : "rounded-full px-2 py-1 text-muted-foreground hover:bg-muted", children: option.label }) }, option.id)) }) : null
|
|
1079
1079
|
]
|
|
1080
1080
|
}
|
|
1081
1081
|
) });
|
|
@@ -2031,7 +2031,7 @@ function GenericTablePagination({
|
|
|
2031
2031
|
const startItem = totalItems === 0 ? 0 : progressive ? 1 : (currentPage - 1) * effectiveItemsPerPage + 1;
|
|
2032
2032
|
const endItem = Math.min(progressive?.shownCount ?? currentPage * effectiveItemsPerPage, totalItems);
|
|
2033
2033
|
const defaultLabelFormat = (start, end, total) => {
|
|
2034
|
-
if (progressive) return `${end} shown / ${total} loaded`;
|
|
2034
|
+
if (progressive) return progressive.loadedCount !== void 0 && progressive.loadedCount !== total ? `${end} shown / ${total} matching \xB7 ${progressive.loadedCount} loaded` : `${end} shown / ${total} loaded`;
|
|
2035
2035
|
return compact ? `${start}-${end} of ${total}` : `Showing ${start} to ${end} of ${total} entries`;
|
|
2036
2036
|
};
|
|
2037
2037
|
const formatLabel = labelFormat || defaultLabelFormat;
|
|
@@ -2083,7 +2083,7 @@ function GenericTablePagination({
|
|
|
2083
2083
|
{
|
|
2084
2084
|
className: cn("flex min-w-0 justify-center", infoContainerClassName),
|
|
2085
2085
|
children: showPageInfo && !hideEntriesInfo && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
2086
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "truncate text-xs tabular-nums text-muted-foreground sm:hidden", children: progressive ? `${endItem}/${totalItems} loaded` : `${startItem}-${endItem} / ${totalItems}` }),
|
|
2086
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("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}` }),
|
|
2087
2087
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2088
2088
|
"span",
|
|
2089
2089
|
{
|
|
@@ -10753,6 +10753,7 @@ function MatrxDataTableCore({
|
|
|
10753
10753
|
totalItems,
|
|
10754
10754
|
...localProgressiveEnabled ? { progressive: {
|
|
10755
10755
|
shownCount: progressiveRows.shownCount,
|
|
10756
|
+
loadedCount: data.length,
|
|
10756
10757
|
hasMore: progressiveRows.hasMore,
|
|
10757
10758
|
onShowMore: () => void progressiveRows.showMore()
|
|
10758
10759
|
} } : {},
|