@ai-matrx/design-system 0.49.4 → 0.49.6
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
|
@@ -49224,8 +49224,9 @@ function MatrxDataTableCore(coreProps) {
|
|
|
49224
49224
|
},
|
|
49225
49225
|
[effectiveColumnWindow, effectiveColumnWidths, frozenColumns, columnWindowWidth, fittedWidths]
|
|
49226
49226
|
);
|
|
49227
|
+
const coverageUnanswered = readView.failure || read?.status === "loading" && data.length === 0;
|
|
49227
49228
|
const coverageResult = useMemo11(() => {
|
|
49228
|
-
if (!coverage) return null;
|
|
49229
|
+
if (!coverage || coverageUnanswered) return null;
|
|
49229
49230
|
return describeCoverage({
|
|
49230
49231
|
loaded: coverage.loaded ?? data.length,
|
|
49231
49232
|
...coverage.matched === void 0 ? {} : { matched: coverage.matched },
|
|
@@ -49234,7 +49235,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
49234
49235
|
answeredBy: coverage.answeredBy ?? "client",
|
|
49235
49236
|
...coverage.noun === void 0 ? {} : { noun: coverage.noun }
|
|
49236
49237
|
});
|
|
49237
|
-
}, [coverage, data.length]);
|
|
49238
|
+
}, [coverage, coverageUnanswered, data.length]);
|
|
49238
49239
|
const bodyEntries = useMemo11(() => {
|
|
49239
49240
|
const from = effectiveRowWindow ? effectiveRowWindow.start : 0;
|
|
49240
49241
|
const to = effectiveRowWindow ? effectiveRowWindow.end : void 0;
|