@ai-matrx/design-system 0.19.2 → 0.19.4
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/content-transfer.cjs +2 -0
- package/dist/content-transfer.cjs.map +1 -1
- package/dist/content-transfer.js +2 -0
- package/dist/content-transfer.js.map +1 -1
- package/dist/data-table/data-row-inspector.cjs +2 -0
- package/dist/data-table/data-row-inspector.cjs.map +1 -1
- package/dist/data-table/data-row-inspector.js +2 -0
- package/dist/data-table/data-row-inspector.js.map +1 -1
- package/dist/data-table/data-row-window.cjs +2 -0
- package/dist/data-table/data-row-window.cjs.map +1 -1
- package/dist/data-table/data-row-window.js +2 -0
- package/dist/data-table/data-row-window.js.map +1 -1
- package/dist/data-table/index.cjs +41 -37
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +41 -37
- 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/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/tap-target.cjs +2 -0
- package/dist/tap-target.cjs.map +1 -1
- package/dist/tap-target.js +2 -0
- package/dist/tap-target.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
]
|
|
@@ -2222,6 +2222,8 @@ function IconContent({
|
|
|
2222
2222
|
viewBox: "0 0 24 24",
|
|
2223
2223
|
stroke: "currentColor",
|
|
2224
2224
|
strokeWidth,
|
|
2225
|
+
strokeLinecap: "round",
|
|
2226
|
+
strokeLinejoin: "round",
|
|
2225
2227
|
children
|
|
2226
2228
|
}
|
|
2227
2229
|
);
|
|
@@ -7896,7 +7898,7 @@ function TableToolbarAction({
|
|
|
7896
7898
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(HostAction, { ariaLabel, tooltip, disabled, busy, onClick, children });
|
|
7897
7899
|
}
|
|
7898
7900
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Tooltip, { children: [
|
|
7899
|
-
/* @__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 }) }) }),
|
|
7900
7902
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: tooltip ?? ariaLabel })
|
|
7901
7903
|
] });
|
|
7902
7904
|
}
|
|
@@ -9438,7 +9440,7 @@ function MatrxDataTableCore({
|
|
|
9438
9440
|
),
|
|
9439
9441
|
children: [
|
|
9440
9442
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "relative min-w-0 flex-1", children: [
|
|
9441
|
-
/* @__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" }),
|
|
9442
9444
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
9443
9445
|
Input,
|
|
9444
9446
|
{
|
|
@@ -9460,7 +9462,7 @@ function MatrxDataTableCore({
|
|
|
9460
9462
|
"aria-label": "Clear search",
|
|
9461
9463
|
className: "absolute right-1.5 top-1/2 -translate-y-1/2 rounded p-0.5 text-muted-foreground hover:text-foreground",
|
|
9462
9464
|
onClick: () => setSearchValue(""),
|
|
9463
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(X, { className: "h-
|
|
9465
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(X, { className: "h-5 w-5" })
|
|
9464
9466
|
}
|
|
9465
9467
|
) }),
|
|
9466
9468
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: "Clear search" })
|
|
@@ -9480,7 +9482,7 @@ function MatrxDataTableCore({
|
|
|
9480
9482
|
searchMatchMode === "whole_words" ? "contains" : "whole_words"
|
|
9481
9483
|
),
|
|
9482
9484
|
children: [
|
|
9483
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WholeWord, { className: "h-
|
|
9485
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WholeWord, { className: "h-5 w-5" }),
|
|
9484
9486
|
searchMatchMode === "whole_words" ? "Whole words" : "Contains"
|
|
9485
9487
|
]
|
|
9486
9488
|
}
|
|
@@ -9502,7 +9504,7 @@ function MatrxDataTableCore({
|
|
|
9502
9504
|
}
|
|
9503
9505
|
) : null,
|
|
9504
9506
|
toolbar?.anyOf ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "relative w-full max-w-xs", children: [
|
|
9505
|
-
/* @__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" }),
|
|
9506
9508
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
9507
9509
|
Input,
|
|
9508
9510
|
{
|
|
@@ -9521,7 +9523,7 @@ function MatrxDataTableCore({
|
|
|
9521
9523
|
"aria-label": "Clear match-any search",
|
|
9522
9524
|
className: "absolute right-1.5 top-1/2 -translate-y-1/2 rounded p-0.5 text-muted-foreground hover:text-foreground",
|
|
9523
9525
|
onClick: () => setAnyOfValue(""),
|
|
9524
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(X, { className: "h-
|
|
9526
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(X, { className: "h-5 w-5" })
|
|
9525
9527
|
}
|
|
9526
9528
|
) }),
|
|
9527
9529
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: "Clear match-any search" })
|
|
@@ -10183,7 +10185,7 @@ function MatrxDataTableCore({
|
|
|
10183
10185
|
type: "button",
|
|
10184
10186
|
variant: "ghost",
|
|
10185
10187
|
size: "icon",
|
|
10186
|
-
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",
|
|
10187
10189
|
"aria-label": opensWindowOnRowClick ? "Open in side panel" : "Open in window",
|
|
10188
10190
|
onClick: (e) => {
|
|
10189
10191
|
e.stopPropagation();
|
|
@@ -10193,7 +10195,7 @@ function MatrxDataTableCore({
|
|
|
10193
10195
|
openWindow(row);
|
|
10194
10196
|
}
|
|
10195
10197
|
},
|
|
10196
|
-
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" })
|
|
10197
10199
|
}
|
|
10198
10200
|
) }),
|
|
10199
10201
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: opensWindowOnRowClick ? "Open in side panel" : "Open in window" })
|
|
@@ -10311,14 +10313,14 @@ function MatrxDataTableCore({
|
|
|
10311
10313
|
"div",
|
|
10312
10314
|
{
|
|
10313
10315
|
"data-matrx-table-footer": true,
|
|
10314
|
-
className: "flex min-h-
|
|
10316
|
+
className: "flex min-h-11 shrink-0 flex-wrap items-center gap-0 border-t border-border",
|
|
10315
10317
|
"aria-busy": isLoading || isFetching,
|
|
10316
10318
|
children: [
|
|
10317
10319
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
10318
10320
|
"div",
|
|
10319
10321
|
{
|
|
10320
10322
|
...isFetching && !isLoading ? {} : { role: "status", "aria-live": "polite" },
|
|
10321
|
-
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",
|
|
10322
10324
|
children: [
|
|
10323
10325
|
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10324
10326
|
Loader2,
|
|
@@ -10328,17 +10330,17 @@ function MatrxDataTableCore({
|
|
|
10328
10330
|
className: "h-5 w-5 shrink-0 animate-spin text-primary motion-reduce:animate-none"
|
|
10329
10331
|
}
|
|
10330
10332
|
) : null,
|
|
10331
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "min-w-0", children: [
|
|
10332
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "
|
|
10333
|
-
appendQuery.pagination.sourceUntil ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { children: [
|
|
10333
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
10334
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "truncate font-medium text-foreground", children: isLoading ? "Loading rows\u2026" : `${data.length.toLocaleString()} loaded${appendQuery.pagination.totalItems === void 0 ? "" : ` of ${appendQuery.pagination.totalItems.toLocaleString()}`}` }),
|
|
10335
|
+
appendQuery.pagination.sourceUntil ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { className: "hidden truncate sm:block", children: [
|
|
10334
10336
|
"Source fixed through",
|
|
10335
10337
|
" ",
|
|
10336
10338
|
new Date(appendQuery.pagination.sourceUntil).toLocaleString(),
|
|
10337
10339
|
"."
|
|
10338
10340
|
] }) : null,
|
|
10339
|
-
!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,
|
|
10340
|
-
scrollPagination.error ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { role: "alert", className: "
|
|
10341
|
-
appendScrollPolicy?.mode === "suspended" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { role: "status", className: "
|
|
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", { className: "hidden truncate sm:block", children: "All source rows are loaded." }) : appendUsesLocalProcessing ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "hidden truncate sm:block", children: "Local search and filters cover loaded rows." }) : null,
|
|
10342
|
+
scrollPagination.error ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { role: "alert", className: "truncate text-destructive", children: scrollPagination.error.message }) : null,
|
|
10343
|
+
appendScrollPolicy?.mode === "suspended" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("p", { role: "status", className: "truncate", children: [
|
|
10342
10344
|
appendScrollPolicy.reason,
|
|
10343
10345
|
" Load more remains available."
|
|
10344
10346
|
] }) : null
|
|
@@ -10356,7 +10358,7 @@ function MatrxDataTableCore({
|
|
|
10356
10358
|
SelectTrigger,
|
|
10357
10359
|
{
|
|
10358
10360
|
"aria-label": "Rows per load",
|
|
10359
|
-
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",
|
|
10360
10362
|
disabled: isLoading || isFetching || appendQuery.pagination.loadAll?.isLoading,
|
|
10361
10363
|
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectValue, {})
|
|
10362
10364
|
}
|
|
@@ -10370,6 +10372,7 @@ function MatrxDataTableCore({
|
|
|
10370
10372
|
{
|
|
10371
10373
|
type: "button",
|
|
10372
10374
|
variant: "outline",
|
|
10375
|
+
className: "h-11 shrink-0 px-3 text-sm",
|
|
10373
10376
|
onClick: appendQuery.pagination.loadAll.stop,
|
|
10374
10377
|
children: "Stop loading"
|
|
10375
10378
|
}
|
|
@@ -10378,16 +10381,17 @@ function MatrxDataTableCore({
|
|
|
10378
10381
|
{
|
|
10379
10382
|
type: "button",
|
|
10380
10383
|
variant: "outline",
|
|
10384
|
+
className: "h-11 shrink-0 px-3 text-sm",
|
|
10381
10385
|
onClick: appendQuery.pagination.retrySource ?? (appendQuery.pagination.hasNextPage ? appendQuery.pagination.loadNextPage : appendQuery.pagination.refresh),
|
|
10382
10386
|
children: appendQuery.pagination.retrySource ? "Retry source" : appendQuery.pagination.hasNextPage ? "Retry" : "Reload rows"
|
|
10383
10387
|
}
|
|
10384
|
-
) : 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: [
|
|
10385
10389
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
10386
10390
|
Button,
|
|
10387
10391
|
{
|
|
10388
10392
|
type: "button",
|
|
10389
|
-
size: "sm",
|
|
10390
10393
|
variant: "outline",
|
|
10394
|
+
className: "h-11 px-3 text-sm",
|
|
10391
10395
|
disabled: isLoading || isFetching,
|
|
10392
10396
|
onClick: () => void scrollPagination.requestNextPage(),
|
|
10393
10397
|
children: "Load more"
|
|
@@ -10397,14 +10401,14 @@ function MatrxDataTableCore({
|
|
|
10397
10401
|
Button,
|
|
10398
10402
|
{
|
|
10399
10403
|
type: "button",
|
|
10400
|
-
size: "sm",
|
|
10401
10404
|
variant: "ghost",
|
|
10405
|
+
className: "h-11 px-3 text-sm",
|
|
10402
10406
|
disabled: isLoading || isFetching,
|
|
10403
10407
|
onClick: appendQuery.pagination.loadAll.request,
|
|
10404
10408
|
children: "Load all"
|
|
10405
10409
|
}
|
|
10406
10410
|
) : null
|
|
10407
|
-
] }) : !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: "shrink-0 truncate px-3 text-xs text-muted-foreground sm:text-sm", children: "All rows loaded" }) : null
|
|
10408
10412
|
]
|
|
10409
10413
|
}
|
|
10410
10414
|
) : !hidePagination && totalItems > 0 ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
@@ -10476,7 +10480,7 @@ function MatrxDataTableCore({
|
|
|
10476
10480
|
className: "h-7 w-7",
|
|
10477
10481
|
"aria-label": "Open in window",
|
|
10478
10482
|
onClick: () => openWindow(selectedRow),
|
|
10479
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRight, { className: "h-
|
|
10483
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRight, { className: "h-5 w-5" })
|
|
10480
10484
|
}
|
|
10481
10485
|
) }),
|
|
10482
10486
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: "Open in window" })
|
|
@@ -10535,7 +10539,7 @@ function MatrxDataTableCore({
|
|
|
10535
10539
|
closeWindow();
|
|
10536
10540
|
openDetail(windowRow);
|
|
10537
10541
|
},
|
|
10538
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRightOpen, { className: "h-
|
|
10542
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(PanelRightOpen, { className: "h-5 w-5" })
|
|
10539
10543
|
}
|
|
10540
10544
|
) }),
|
|
10541
10545
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(TooltipContent, { children: "Open in side panel" })
|