@ai-matrx/design-system 0.53.3 → 0.53.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 +7 -0
- package/dist/data-table/index.cjs +23 -22
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +23 -22
- package/dist/data-table/index.js.map +1 -1
- package/package.json +1 -1
package/dist/data-table/index.js
CHANGED
|
@@ -56529,32 +56529,14 @@ function MatrxDataTableCore(coreProps) {
|
|
|
56529
56529
|
]
|
|
56530
56530
|
}
|
|
56531
56531
|
) : null,
|
|
56532
|
-
|
|
56533
|
-
Button,
|
|
56534
|
-
{
|
|
56535
|
-
type: "button",
|
|
56536
|
-
variant: "outline",
|
|
56537
|
-
className: "h-8 shrink-0 px-3 text-sm",
|
|
56538
|
-
onClick: appendQuery.pagination.loadAll.stop,
|
|
56539
|
-
children: "Stop loading"
|
|
56540
|
-
}
|
|
56541
|
-
) : scrollPagination.error ? /* @__PURE__ */ jsx58(
|
|
56542
|
-
Button,
|
|
56543
|
-
{
|
|
56544
|
-
type: "button",
|
|
56545
|
-
variant: "outline",
|
|
56546
|
-
className: "h-8 shrink-0 px-3 text-sm",
|
|
56547
|
-
onClick: appendQuery.pagination.retrySource ?? (appendQuery.pagination.hasNextPage ? appendQuery.pagination.loadNextPage : appendQuery.pagination.refresh),
|
|
56548
|
-
children: appendQuery.pagination.retrySource ? "Retry source" : appendQuery.pagination.hasNextPage ? "Retry" : "Reload rows"
|
|
56549
|
-
}
|
|
56550
|
-
) : appendQuery.pagination.hasNextPage || scrollPagination.error ? /* @__PURE__ */ jsxs47("div", { className: "flex min-w-0 max-w-full flex-wrap gap-0", children: [
|
|
56532
|
+
/* @__PURE__ */ jsxs47("div", { className: "flex min-w-0 max-w-full flex-wrap gap-0", children: [
|
|
56551
56533
|
/* @__PURE__ */ jsx58(
|
|
56552
56534
|
Button,
|
|
56553
56535
|
{
|
|
56554
56536
|
type: "button",
|
|
56555
56537
|
variant: "outline",
|
|
56556
56538
|
className: "h-8 px-3 text-sm",
|
|
56557
|
-
disabled: isLoading || isFetching,
|
|
56539
|
+
disabled: isLoading || isFetching || Boolean(appendQuery.pagination.loadAll?.isLoading) || Boolean(scrollPagination.error) || !appendQuery.pagination.hasNextPage,
|
|
56558
56540
|
onClick: () => void scrollPagination.requestNextPage(),
|
|
56559
56541
|
children: "Load more"
|
|
56560
56542
|
}
|
|
@@ -56565,12 +56547,31 @@ function MatrxDataTableCore(coreProps) {
|
|
|
56565
56547
|
type: "button",
|
|
56566
56548
|
variant: "ghost",
|
|
56567
56549
|
className: "h-8 px-3 text-sm",
|
|
56568
|
-
disabled: isLoading || isFetching,
|
|
56550
|
+
disabled: isLoading || isFetching || Boolean(appendQuery.pagination.loadAll?.isLoading) || Boolean(scrollPagination.error) || !appendQuery.pagination.hasNextPage,
|
|
56569
56551
|
onClick: appendQuery.pagination.loadAll.request,
|
|
56570
56552
|
children: "Load all"
|
|
56571
56553
|
}
|
|
56572
56554
|
) : null
|
|
56573
|
-
] })
|
|
56555
|
+
] }),
|
|
56556
|
+
appendQuery.pagination.loadAll?.isLoading ? /* @__PURE__ */ jsx58(
|
|
56557
|
+
Button,
|
|
56558
|
+
{
|
|
56559
|
+
type: "button",
|
|
56560
|
+
variant: "outline",
|
|
56561
|
+
className: "h-8 shrink-0 px-3 text-sm",
|
|
56562
|
+
onClick: appendQuery.pagination.loadAll.stop,
|
|
56563
|
+
children: "Stop loading"
|
|
56564
|
+
}
|
|
56565
|
+
) : scrollPagination.error ? /* @__PURE__ */ jsx58(
|
|
56566
|
+
Button,
|
|
56567
|
+
{
|
|
56568
|
+
type: "button",
|
|
56569
|
+
variant: "outline",
|
|
56570
|
+
className: "h-8 shrink-0 px-3 text-sm",
|
|
56571
|
+
onClick: appendQuery.pagination.retrySource ?? (appendQuery.pagination.hasNextPage ? appendQuery.pagination.loadNextPage : appendQuery.pagination.refresh),
|
|
56572
|
+
children: appendQuery.pagination.retrySource ? "Retry source" : appendQuery.pagination.hasNextPage ? "Retry" : "Reload rows"
|
|
56573
|
+
}
|
|
56574
|
+
) : !isLoading && appendQuery.pagination.totalItems !== void 0 && data.length === appendQuery.pagination.totalItems ? /* @__PURE__ */ jsx58("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
|
|
56574
56575
|
]
|
|
56575
56576
|
}
|
|
56576
56577
|
) : embedded && !hidePagination && !drillGrouped && (localProgressiveEnabled || pageCount <= 1 || remoteQuery?.mode === "controlled") ? (
|