@ai-matrx/design-system 0.60.6 → 0.60.7
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 +6 -0
- package/dist/data-table/index.cjs +16 -10
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +16 -10
- package/dist/data-table/index.js.map +1 -1
- package/dist/data-table/pagination.cjs +16 -10
- package/dist/data-table/pagination.cjs.map +1 -1
- package/dist/data-table/pagination.js +16 -10
- package/dist/data-table/pagination.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.60.7
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/design-system/v0.60.6..npm/design-system/v0.60.7 -- apps/shared/design-system`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
3
9
|
## 0.60.6
|
|
4
10
|
|
|
5
11
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
@@ -37278,7 +37278,7 @@ function GenericTablePagination({
|
|
|
37278
37278
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChevronLeft, { className: "h-5 w-5" })
|
|
37279
37279
|
}
|
|
37280
37280
|
),
|
|
37281
|
-
|
|
37281
|
+
(unknownTotal ? [currentPage] : getPageNumbers(3)).map((page) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
37282
37282
|
PaginationAction,
|
|
37283
37283
|
{
|
|
37284
37284
|
HostAction: host.ToolbarAction,
|
|
@@ -37288,13 +37288,15 @@ function GenericTablePagination({
|
|
|
37288
37288
|
disabledHint: isFetching ? "Loading source page" : `Already on page ${page}`,
|
|
37289
37289
|
visibilityClassName: "hidden",
|
|
37290
37290
|
fallbackClassName: page === currentPage ? pageActiveButtonClassName : pageButtonClassName,
|
|
37291
|
-
onClick: () =>
|
|
37292
|
-
|
|
37291
|
+
onClick: () => {
|
|
37292
|
+
if (!unknownTotal) onPageChange(page);
|
|
37293
|
+
},
|
|
37294
|
+
disabled: Boolean(unknownTotal) || isFetching || totalPages <= 1,
|
|
37293
37295
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: page })
|
|
37294
37296
|
},
|
|
37295
37297
|
`mobile-${page}`
|
|
37296
37298
|
)),
|
|
37297
|
-
|
|
37299
|
+
(unknownTotal ? [currentPage] : getPageNumbers()).map((page) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
37298
37300
|
PaginationAction,
|
|
37299
37301
|
{
|
|
37300
37302
|
HostAction: host.ToolbarAction,
|
|
@@ -37304,8 +37306,10 @@ function GenericTablePagination({
|
|
|
37304
37306
|
disabledHint: isFetching ? "Loading source page" : `Already on page ${page}`,
|
|
37305
37307
|
visibilityClassName: "hidden sm:inline-flex",
|
|
37306
37308
|
fallbackClassName: currentPage === page ? pageActiveButtonClassName : pageButtonClassName,
|
|
37307
|
-
onClick: () =>
|
|
37308
|
-
|
|
37309
|
+
onClick: () => {
|
|
37310
|
+
if (!unknownTotal) onPageChange(page);
|
|
37311
|
+
},
|
|
37312
|
+
disabled: Boolean(unknownTotal) || isFetching || totalPages <= 1,
|
|
37309
37313
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { children: page })
|
|
37310
37314
|
},
|
|
37311
37315
|
`desktop-${page}`
|
|
@@ -37323,17 +37327,19 @@ function GenericTablePagination({
|
|
|
37323
37327
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChevronRight, { className: "h-5 w-5" })
|
|
37324
37328
|
}
|
|
37325
37329
|
),
|
|
37326
|
-
|
|
37330
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
37327
37331
|
PaginationAction,
|
|
37328
37332
|
{
|
|
37329
37333
|
HostAction: host.ToolbarAction,
|
|
37330
37334
|
compact,
|
|
37331
37335
|
ariaLabel: "Last page",
|
|
37332
|
-
disabledHint: isFetching ? "Loading source page" : "Already on the last page",
|
|
37336
|
+
disabledHint: unknownTotal ? "Last page is unknown" : isFetching ? "Loading source page" : "Already on the last page",
|
|
37333
37337
|
visibilityClassName: "hidden sm:inline-flex",
|
|
37334
37338
|
fallbackClassName: navButtonClassName,
|
|
37335
|
-
onClick: () =>
|
|
37336
|
-
|
|
37339
|
+
onClick: () => {
|
|
37340
|
+
if (!unknownTotal) onPageChange(totalPages);
|
|
37341
|
+
},
|
|
37342
|
+
disabled: Boolean(unknownTotal) || isLastPageDisabled,
|
|
37337
37343
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ChevronsRight, { className: "h-5 w-5" })
|
|
37338
37344
|
}
|
|
37339
37345
|
)
|