@ai-matrx/design-system 0.50.9 → 0.50.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/dist/data-table/index.js
CHANGED
|
@@ -53682,7 +53682,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
53682
53682
|
});
|
|
53683
53683
|
}, []);
|
|
53684
53684
|
useEffect26(() => {
|
|
53685
|
-
setFacetState({});
|
|
53685
|
+
setFacetState((current) => Object.keys(current).length === 0 ? current : {});
|
|
53686
53686
|
for (const [colId, ticket] of facetRequestRef.current) {
|
|
53687
53687
|
facetRequestRef.current.set(colId, ticket + 1);
|
|
53688
53688
|
}
|
|
@@ -54768,8 +54768,11 @@ function MatrxDataTableCore(coreProps) {
|
|
|
54768
54768
|
hasSummaryTotals ? summaryUsesSource : null,
|
|
54769
54769
|
...summaryTotals.flatMap((total) => [total.id, total.value, total.unavailable])
|
|
54770
54770
|
]);
|
|
54771
|
+
const locallyFilteredSourcePage = remoteQuery?.mode === "controlled" && processed.length !== data.length;
|
|
54771
54772
|
const paginationEpoch = useRenderEpoch([
|
|
54772
54773
|
totalItems,
|
|
54774
|
+
locallyFilteredSourcePage,
|
|
54775
|
+
locallyFilteredSourcePage ? processed.length : null,
|
|
54773
54776
|
sourceTotal,
|
|
54774
54777
|
paginationLabelFormat,
|
|
54775
54778
|
sourceTotal === void 0 ? null : data.length,
|
|
@@ -56014,7 +56017,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
56014
56017
|
label: col.header,
|
|
56015
56018
|
...embedded ? { plainLabel: true } : {},
|
|
56016
56019
|
labelText: headerLabel,
|
|
56017
|
-
...facetsEnabled || meta?.kind !== void 0 && meta.kind !== null && coreSuggestionsEnabled ? {
|
|
56020
|
+
...facetsEnabled || meta?.kind !== void 0 && meta.kind !== null && coreSuggestionsEnabled && !col.filterOptions?.length ? {
|
|
56018
56021
|
facets: facetState[id]?.data ?? null,
|
|
56019
56022
|
facetsLoading: facetState[id]?.loading ?? false,
|
|
56020
56023
|
...facetState[id]?.error === void 0 ? {} : { facetsError: facetState[id]?.error },
|
|
@@ -56531,7 +56534,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
56531
56534
|
{
|
|
56532
56535
|
totalItems,
|
|
56533
56536
|
...readView.failure ? { countUnavailable: "failed" } : read?.status === "loading" && data.length === 0 ? { countUnavailable: "loading" } : {},
|
|
56534
|
-
...paginationLabelFormat ? { labelFormat: paginationLabelFormat } : sourceTotal === void 0 ? {} : { labelFormat: (start, end, total) => `${formatCount12(start)}\u2013${formatCount12(end)} of ${formatCount12(total)} matching \xB7 ${formatCount12(data.length)} / ${formatCount12(sourceTotal)} loaded` },
|
|
56537
|
+
...locallyFilteredSourcePage ? { labelFormat: (start, end, total) => `${formatCount12(processed.length)} matching on this source page \xB7 source ${paginationLabelFormat ? paginationLabelFormat(start, end, total) : `${formatCount12(start)}\u2013${formatCount12(end)} of ${formatCount12(total)}`}` } : paginationLabelFormat ? { labelFormat: paginationLabelFormat } : sourceTotal === void 0 ? {} : { labelFormat: (start, end, total) => `${formatCount12(start)}\u2013${formatCount12(end)} of ${formatCount12(total)} matching \xB7 ${formatCount12(data.length)} / ${formatCount12(sourceTotal)} loaded` },
|
|
56535
56538
|
...localProgressiveEnabled ? { progressive: {
|
|
56536
56539
|
shownCount: progressiveRows.shownCount,
|
|
56537
56540
|
loadedCount: data.length,
|
|
@@ -56585,7 +56588,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
56585
56588
|
]
|
|
56586
56589
|
}
|
|
56587
56590
|
),
|
|
56588
|
-
/* @__PURE__ */ jsxs47("div", { className: "
|
|
56591
|
+
/* @__PURE__ */ jsxs47("div", { className: "flex flex-1 flex-wrap items-center justify-end gap-0", children: [
|
|
56589
56592
|
effectiveCopy && selectedRows.length > 0 ? /* @__PURE__ */ jsx58(
|
|
56590
56593
|
CopyButtons,
|
|
56591
56594
|
{
|