@ai-matrx/design-system 0.19.3 → 0.19.5
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 +14 -0
- package/dist/data-table/index.cjs +37 -35
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +37 -35
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/pagination.cjs +14 -14
- package/dist/data-table/pagination.cjs.map +1 -1
- package/dist/data-table/pagination.js +14 -14
- package/dist/data-table/pagination.js.map +1 -1
- package/dist/styles.css +12 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.19.5 — 2026-09-13
|
|
4
|
+
|
|
5
|
+
Data-table append receipts remain visible after terminal loads and across remote response or error states. Footer containment now keeps the 44px action controls and 20px action glyphs visible without mobile clipping.
|
|
6
|
+
|
|
7
|
+
### Consumer action
|
|
8
|
+
|
|
9
|
+
Update `@ai-matrx/design-system`; no host API change is required.
|
|
10
|
+
|
|
11
|
+
## 0.19.4
|
|
12
|
+
|
|
13
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
14
|
+
`git diff npm/design-system/v0.19.3..npm/design-system/v0.19.4 -- apps/shared/design-system`).
|
|
15
|
+
No source changes intended and no consumer action required.
|
|
16
|
+
|
|
3
17
|
## 0.19.3 — 2026-09-13
|
|
4
18
|
|
|
5
19
|
Tap-target buttons built from inline paths now render rounded stroke caps and joins, matching the shared table icons and passed Lucide glyphs. Explicit stroke settings on a caller-supplied SVG are preserved.
|
|
@@ -1855,7 +1855,7 @@ function PageNavigationControl({
|
|
|
1855
1855
|
...props,
|
|
1856
1856
|
disabled,
|
|
1857
1857
|
"aria-label": label,
|
|
1858
|
-
className: cn(visibilityClassName, className, "[&_svg]:size-
|
|
1858
|
+
className: cn(visibilityClassName, className, "[&_svg]:size-5")
|
|
1859
1859
|
}
|
|
1860
1860
|
);
|
|
1861
1861
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Tooltip, { children: [
|
|
@@ -1909,8 +1909,8 @@ function PaginationAction({
|
|
|
1909
1909
|
}
|
|
1910
1910
|
);
|
|
1911
1911
|
}
|
|
1912
|
-
var PAGINATION_ACTION_CLASS = "
|
|
1913
|
-
var PAGINATION_ACTIVE_CLASS = "
|
|
1912
|
+
var PAGINATION_ACTION_CLASS = "h-11 w-11 min-h-11 min-w-11 rounded-md border border-border bg-card p-0 text-sm shadow-none hover:bg-accent disabled:opacity-40 [&_svg]:size-5";
|
|
1913
|
+
var PAGINATION_ACTIVE_CLASS = "border-primary bg-primary text-primary-foreground hover:bg-primary/90";
|
|
1914
1914
|
function GenericTablePagination({
|
|
1915
1915
|
totalItems,
|
|
1916
1916
|
itemsPerPage,
|
|
@@ -1964,8 +1964,8 @@ function GenericTablePagination({
|
|
|
1964
1964
|
const containerClass = cn(
|
|
1965
1965
|
"w-full items-center",
|
|
1966
1966
|
!compact && "border-t border-border",
|
|
1967
|
-
layoutType === "grid" ? "grid grid-cols-[auto_minmax(0,1fr)_auto]" : "flex flex-nowrap justify-between",
|
|
1968
|
-
compact ? "box-border h-11 gap-0 px-0 py-0" : "gap-1 px-2 py-1 sm:gap-4 sm:px-3",
|
|
1967
|
+
layoutType === "grid" ? progressive ? "grid grid-cols-[auto_minmax(0,1fr)_auto]" : "grid grid-cols-[auto_minmax(0,1fr)] sm:grid-cols-[auto_minmax(0,1fr)_auto]" : "flex flex-nowrap justify-between",
|
|
1968
|
+
compact ? "box-border min-h-11 gap-0 px-0 py-0" : "gap-1 px-2 py-1 sm:gap-4 sm:px-3",
|
|
1969
1969
|
className,
|
|
1970
1970
|
containerClassName
|
|
1971
1971
|
);
|
|
@@ -1990,7 +1990,7 @@ function GenericTablePagination({
|
|
|
1990
1990
|
"aria-label": "Rows per page",
|
|
1991
1991
|
className: cn(
|
|
1992
1992
|
"focus:ring-0",
|
|
1993
|
-
compact ? "
|
|
1993
|
+
compact ? "h-11 min-w-20 rounded-md border border-border bg-card px-3 text-sm hover:bg-accent [&_svg]:size-5" : "h-8 w-[3.75rem] text-xs sm:w-36 sm:text-sm"
|
|
1994
1994
|
),
|
|
1995
1995
|
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SelectValue, { placeholder: itemsPerPage.toString() })
|
|
1996
1996
|
}
|
|
@@ -2009,7 +2009,7 @@ function GenericTablePagination({
|
|
|
2009
2009
|
{
|
|
2010
2010
|
className: cn("flex min-w-0 justify-center", infoContainerClassName),
|
|
2011
2011
|
children: showPageInfo && !hideEntriesInfo && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
|
|
2012
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "truncate text-
|
|
2012
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "truncate text-xs tabular-nums text-muted-foreground sm:hidden", children: [
|
|
2013
2013
|
startItem,
|
|
2014
2014
|
"-",
|
|
2015
2015
|
endItem,
|
|
@@ -2019,7 +2019,7 @@ function GenericTablePagination({
|
|
|
2019
2019
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
2020
2020
|
"span",
|
|
2021
2021
|
{
|
|
2022
|
-
className: `hidden whitespace-nowrap ${compact ? "text-
|
|
2022
|
+
className: `hidden whitespace-nowrap ${compact ? "text-sm" : "text-sm"} min-w-0 truncate text-muted-foreground sm:inline`,
|
|
2023
2023
|
children: formatLabel(startItem, endItem, totalItems)
|
|
2024
2024
|
}
|
|
2025
2025
|
)
|
|
@@ -2034,13 +2034,13 @@ function GenericTablePagination({
|
|
|
2034
2034
|
disabledHint: "All rows shown",
|
|
2035
2035
|
disabled: !progressive.hasMore,
|
|
2036
2036
|
onClick: progressive.onShowMore,
|
|
2037
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "h-
|
|
2037
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "h-5 w-5 rotate-90" })
|
|
2038
2038
|
}
|
|
2039
2039
|
) : showPageControls && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
2040
2040
|
"div",
|
|
2041
2041
|
{
|
|
2042
2042
|
className: cn(
|
|
2043
|
-
"flex min-w-0 items-center justify-end",
|
|
2043
|
+
"col-span-2 flex min-w-0 items-center justify-end sm:col-span-1",
|
|
2044
2044
|
compact ? "gap-0" : "gap-0.5 sm:gap-1",
|
|
2045
2045
|
controlsContainerClassName
|
|
2046
2046
|
),
|
|
@@ -2055,7 +2055,7 @@ function GenericTablePagination({
|
|
|
2055
2055
|
fallbackClassName: navButtonClassName,
|
|
2056
2056
|
onClick: () => onPageChange(1),
|
|
2057
2057
|
disabled: isFirstPageDisabled,
|
|
2058
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronsLeft, { className: "h-
|
|
2058
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronsLeft, { className: "h-5 w-5" })
|
|
2059
2059
|
}
|
|
2060
2060
|
),
|
|
2061
2061
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
@@ -2067,7 +2067,7 @@ function GenericTablePagination({
|
|
|
2067
2067
|
fallbackClassName: navButtonClassName,
|
|
2068
2068
|
onClick: () => onPageChange(currentPage - 1),
|
|
2069
2069
|
disabled: isFirstPageDisabled,
|
|
2070
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronLeft, { className: "h-
|
|
2070
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronLeft, { className: "h-5 w-5" })
|
|
2071
2071
|
}
|
|
2072
2072
|
),
|
|
2073
2073
|
getPageNumbers(3).map((page) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
@@ -2110,7 +2110,7 @@ function GenericTablePagination({
|
|
|
2110
2110
|
fallbackClassName: navButtonClassName,
|
|
2111
2111
|
onClick: () => onPageChange(currentPage + 1),
|
|
2112
2112
|
disabled: isLastPageDisabled,
|
|
2113
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "h-
|
|
2113
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronRight, { className: "h-5 w-5" })
|
|
2114
2114
|
}
|
|
2115
2115
|
),
|
|
2116
2116
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
@@ -2123,7 +2123,7 @@ function GenericTablePagination({
|
|
|
2123
2123
|
fallbackClassName: navButtonClassName,
|
|
2124
2124
|
onClick: () => onPageChange(totalPages),
|
|
2125
2125
|
disabled: isLastPageDisabled,
|
|
2126
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronsRight, { className: "h-
|
|
2126
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ChevronsRight, { className: "h-5 w-5" })
|
|
2127
2127
|
}
|
|
2128
2128
|
)
|
|
2129
2129
|
]
|
|
@@ -7898,7 +7898,7 @@ function TableToolbarAction({
|
|
|
7898
7898
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(HostAction, { ariaLabel, tooltip, disabled, busy, onClick, children });
|
|
7899
7899
|
}
|
|
7900
7900
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Tooltip, { children: [
|
|
7901
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { type: "button", variant: "ghost", size: "icon", className: "h-11 w-11 [&_svg]:size-
|
|
7901
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "inline-flex", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Button, { type: "button", variant: "ghost", size: "icon", className: "h-11 w-11 [&_svg]:size-5", "aria-label": ariaLabel, "aria-busy": busy || void 0, disabled, onClick, children: (0, import_react17.isValidElement)(children) ? (0, import_react17.cloneElement)(children, { className: cn("h-5 w-5", children.props.className) }) : children }) }) }),
|
|
7902
7902
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: tooltip ?? ariaLabel })
|
|
7903
7903
|
] });
|
|
7904
7904
|
}
|
|
@@ -9440,7 +9440,7 @@ function MatrxDataTableCore({
|
|
|
9440
9440
|
),
|
|
9441
9441
|
children: [
|
|
9442
9442
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "relative min-w-0 flex-1", children: [
|
|
9443
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Search, { className: "absolute left-2 top-1/2 h-
|
|
9443
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Search, { className: "absolute left-2 top-1/2 h-5 w-5 -translate-y-1/2 text-muted-foreground" }),
|
|
9444
9444
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
9445
9445
|
Input,
|
|
9446
9446
|
{
|
|
@@ -9462,7 +9462,7 @@ function MatrxDataTableCore({
|
|
|
9462
9462
|
"aria-label": "Clear search",
|
|
9463
9463
|
className: "absolute right-1.5 top-1/2 -translate-y-1/2 rounded p-0.5 text-muted-foreground hover:text-foreground",
|
|
9464
9464
|
onClick: () => setSearchValue(""),
|
|
9465
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(X, { className: "h-
|
|
9465
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(X, { className: "h-5 w-5" })
|
|
9466
9466
|
}
|
|
9467
9467
|
) }),
|
|
9468
9468
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: "Clear search" })
|
|
@@ -9482,7 +9482,7 @@ function MatrxDataTableCore({
|
|
|
9482
9482
|
searchMatchMode === "whole_words" ? "contains" : "whole_words"
|
|
9483
9483
|
),
|
|
9484
9484
|
children: [
|
|
9485
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WholeWord, { className: "h-
|
|
9485
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WholeWord, { className: "h-5 w-5" }),
|
|
9486
9486
|
searchMatchMode === "whole_words" ? "Whole words" : "Contains"
|
|
9487
9487
|
]
|
|
9488
9488
|
}
|
|
@@ -9504,7 +9504,7 @@ function MatrxDataTableCore({
|
|
|
9504
9504
|
}
|
|
9505
9505
|
) : null,
|
|
9506
9506
|
toolbar?.anyOf ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "relative w-full max-w-xs", children: [
|
|
9507
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Search, { className: "absolute left-2 top-1/2 h-
|
|
9507
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Search, { className: "absolute left-2 top-1/2 h-5 w-5 -translate-y-1/2 text-muted-foreground" }),
|
|
9508
9508
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
9509
9509
|
Input,
|
|
9510
9510
|
{
|
|
@@ -9523,7 +9523,7 @@ function MatrxDataTableCore({
|
|
|
9523
9523
|
"aria-label": "Clear match-any search",
|
|
9524
9524
|
className: "absolute right-1.5 top-1/2 -translate-y-1/2 rounded p-0.5 text-muted-foreground hover:text-foreground",
|
|
9525
9525
|
onClick: () => setAnyOfValue(""),
|
|
9526
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(X, { className: "h-
|
|
9526
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(X, { className: "h-5 w-5" })
|
|
9527
9527
|
}
|
|
9528
9528
|
) }),
|
|
9529
9529
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: "Clear match-any search" })
|
|
@@ -10185,7 +10185,7 @@ function MatrxDataTableCore({
|
|
|
10185
10185
|
type: "button",
|
|
10186
10186
|
variant: "ghost",
|
|
10187
10187
|
size: "icon",
|
|
10188
|
-
className: "h-11 w-11 text-muted-foreground hover:text-foreground [&_svg]:size-
|
|
10188
|
+
className: "h-11 w-11 text-muted-foreground hover:text-foreground [&_svg]:size-5",
|
|
10189
10189
|
"aria-label": opensWindowOnRowClick ? "Open in side panel" : "Open in window",
|
|
10190
10190
|
onClick: (e) => {
|
|
10191
10191
|
e.stopPropagation();
|
|
@@ -10195,7 +10195,7 @@ function MatrxDataTableCore({
|
|
|
10195
10195
|
openWindow(row);
|
|
10196
10196
|
}
|
|
10197
10197
|
},
|
|
10198
|
-
children: opensWindowOnRowClick ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRightOpen, { className: "h-
|
|
10198
|
+
children: opensWindowOnRowClick ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRightOpen, { className: "h-5 w-5" }) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRight, { className: "h-5 w-5" })
|
|
10199
10199
|
}
|
|
10200
10200
|
) }),
|
|
10201
10201
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: opensWindowOnRowClick ? "Open in side panel" : "Open in window" })
|
|
@@ -10313,14 +10313,14 @@ function MatrxDataTableCore({
|
|
|
10313
10313
|
"div",
|
|
10314
10314
|
{
|
|
10315
10315
|
"data-matrx-table-footer": true,
|
|
10316
|
-
className: "flex min-h-
|
|
10316
|
+
className: "flex min-h-11 shrink-0 flex-wrap items-center gap-0 border-t border-border",
|
|
10317
10317
|
"aria-busy": isLoading || isFetching,
|
|
10318
10318
|
children: [
|
|
10319
10319
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
10320
10320
|
"div",
|
|
10321
10321
|
{
|
|
10322
10322
|
...isFetching && !isLoading ? {} : { role: "status", "aria-live": "polite" },
|
|
10323
|
-
className: "flex w-full min-w-0
|
|
10323
|
+
className: "flex w-full min-w-0 items-center gap-2 text-xs text-muted-foreground sm:w-auto sm:flex-1 sm:text-sm",
|
|
10324
10324
|
children: [
|
|
10325
10325
|
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10326
10326
|
Loader2,
|
|
@@ -10330,8 +10330,8 @@ function MatrxDataTableCore({
|
|
|
10330
10330
|
className: "h-5 w-5 shrink-0 animate-spin text-primary motion-reduce:animate-none"
|
|
10331
10331
|
}
|
|
10332
10332
|
) : null,
|
|
10333
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "min-w-0", children: [
|
|
10334
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "
|
|
10333
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
10334
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${data.length.toLocaleString()} loaded${appendQuery.pagination.totalItems === void 0 ? "" : ` of ${appendQuery.pagination.totalItems.toLocaleString()}`}` }),
|
|
10335
10335
|
appendQuery.pagination.sourceUntil ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { children: [
|
|
10336
10336
|
"Source fixed through",
|
|
10337
10337
|
" ",
|
|
@@ -10339,8 +10339,8 @@ function MatrxDataTableCore({
|
|
|
10339
10339
|
"."
|
|
10340
10340
|
] }) : null,
|
|
10341
10341
|
!isLoading && !isFetching && !appendQuery.pagination.loadAll?.isLoading && !scrollPagination.error && !appendQuery.pagination.hasNextPage && appendQuery.pagination.totalItems !== void 0 && data.length === appendQuery.pagination.totalItems ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { children: "All source rows are loaded." }) : appendUsesLocalProcessing ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { children: "Local search and filters cover loaded rows." }) : null,
|
|
10342
|
-
scrollPagination.error ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { role: "alert", className: "
|
|
10343
|
-
appendScrollPolicy?.mode === "suspended" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { role: "status",
|
|
10342
|
+
scrollPagination.error ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { role: "alert", className: "text-destructive", children: scrollPagination.error.message }) : null,
|
|
10343
|
+
appendScrollPolicy?.mode === "suspended" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { role: "status", children: [
|
|
10344
10344
|
appendScrollPolicy.reason,
|
|
10345
10345
|
" Load more remains available."
|
|
10346
10346
|
] }) : null
|
|
@@ -10358,7 +10358,7 @@ function MatrxDataTableCore({
|
|
|
10358
10358
|
SelectTrigger,
|
|
10359
10359
|
{
|
|
10360
10360
|
"aria-label": "Rows per load",
|
|
10361
|
-
className: "h-
|
|
10361
|
+
className: "h-11 min-w-20 shrink-0 rounded-md border border-border bg-card px-3 text-sm [&_svg]:size-5",
|
|
10362
10362
|
disabled: isLoading || isFetching || appendQuery.pagination.loadAll?.isLoading,
|
|
10363
10363
|
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectValue, {})
|
|
10364
10364
|
}
|
|
@@ -10372,6 +10372,7 @@ function MatrxDataTableCore({
|
|
|
10372
10372
|
{
|
|
10373
10373
|
type: "button",
|
|
10374
10374
|
variant: "outline",
|
|
10375
|
+
className: "h-11 shrink-0 px-3 text-sm",
|
|
10375
10376
|
onClick: appendQuery.pagination.loadAll.stop,
|
|
10376
10377
|
children: "Stop loading"
|
|
10377
10378
|
}
|
|
@@ -10380,16 +10381,17 @@ function MatrxDataTableCore({
|
|
|
10380
10381
|
{
|
|
10381
10382
|
type: "button",
|
|
10382
10383
|
variant: "outline",
|
|
10384
|
+
className: "h-11 shrink-0 px-3 text-sm",
|
|
10383
10385
|
onClick: appendQuery.pagination.retrySource ?? (appendQuery.pagination.hasNextPage ? appendQuery.pagination.loadNextPage : appendQuery.pagination.refresh),
|
|
10384
10386
|
children: appendQuery.pagination.retrySource ? "Retry source" : appendQuery.pagination.hasNextPage ? "Retry" : "Reload rows"
|
|
10385
10387
|
}
|
|
10386
|
-
) : appendQuery.pagination.hasNextPage || scrollPagination.error ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex
|
|
10388
|
+
) : appendQuery.pagination.hasNextPage || scrollPagination.error ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex shrink-0 gap-0", children: [
|
|
10387
10389
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10388
10390
|
Button,
|
|
10389
10391
|
{
|
|
10390
10392
|
type: "button",
|
|
10391
|
-
size: "sm",
|
|
10392
10393
|
variant: "outline",
|
|
10394
|
+
className: "h-11 px-3 text-sm",
|
|
10393
10395
|
disabled: isLoading || isFetching,
|
|
10394
10396
|
onClick: () => void scrollPagination.requestNextPage(),
|
|
10395
10397
|
children: "Load more"
|
|
@@ -10399,14 +10401,14 @@ function MatrxDataTableCore({
|
|
|
10399
10401
|
Button,
|
|
10400
10402
|
{
|
|
10401
10403
|
type: "button",
|
|
10402
|
-
size: "sm",
|
|
10403
10404
|
variant: "ghost",
|
|
10405
|
+
className: "h-11 px-3 text-sm",
|
|
10404
10406
|
disabled: isLoading || isFetching,
|
|
10405
10407
|
onClick: appendQuery.pagination.loadAll.request,
|
|
10406
10408
|
children: "Load all"
|
|
10407
10409
|
}
|
|
10408
10410
|
) : null
|
|
10409
|
-
] }) : !isLoading && appendQuery.pagination.totalItems !== void 0 && data.length === appendQuery.pagination.totalItems ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "text-xs text-muted-foreground", children: "All rows loaded" }) : null
|
|
10411
|
+
] }) : !isLoading && appendQuery.pagination.totalItems !== void 0 && data.length === appendQuery.pagination.totalItems ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "min-w-0 max-w-full break-words whitespace-normal px-3 text-xs text-muted-foreground sm:text-sm", children: "All rows loaded" }) : null
|
|
10410
10412
|
]
|
|
10411
10413
|
}
|
|
10412
10414
|
) : !hidePagination && totalItems > 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
@@ -10478,7 +10480,7 @@ function MatrxDataTableCore({
|
|
|
10478
10480
|
className: "h-7 w-7",
|
|
10479
10481
|
"aria-label": "Open in window",
|
|
10480
10482
|
onClick: () => openWindow(selectedRow),
|
|
10481
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRight, { className: "h-
|
|
10483
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRight, { className: "h-5 w-5" })
|
|
10482
10484
|
}
|
|
10483
10485
|
) }),
|
|
10484
10486
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: "Open in window" })
|
|
@@ -10537,7 +10539,7 @@ function MatrxDataTableCore({
|
|
|
10537
10539
|
closeWindow();
|
|
10538
10540
|
openDetail(windowRow);
|
|
10539
10541
|
},
|
|
10540
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRightOpen, { className: "h-
|
|
10542
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRightOpen, { className: "h-5 w-5" })
|
|
10541
10543
|
}
|
|
10542
10544
|
) }),
|
|
10543
10545
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: "Open in side panel" })
|