@ai-matrx/design-system 0.50.6 → 0.50.9
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 +18 -0
- package/dist/data-table/index.cjs +14 -4
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +14 -4
- package/dist/data-table/index.js.map +1 -1
- package/dist/index.cjs +11 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -3
- package/dist/index.d.ts +19 -3
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.50.9
|
|
4
|
+
|
|
5
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
6
|
+
`git diff npm/design-system/v0.50.7..npm/design-system/v0.50.9 -- apps/shared/design-system`).
|
|
7
|
+
No source changes intended and no consumer action required.
|
|
8
|
+
|
|
9
|
+
## 0.50.8
|
|
10
|
+
|
|
11
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
12
|
+
`git diff npm/design-system/v0.50.7..npm/design-system/v0.50.8 -- apps/shared/design-system`).
|
|
13
|
+
No source changes intended and no consumer action required.
|
|
14
|
+
|
|
15
|
+
## 0.50.7
|
|
16
|
+
|
|
17
|
+
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
18
|
+
`git diff npm/design-system/v0.50.6..npm/design-system/v0.50.7 -- apps/shared/design-system`).
|
|
19
|
+
No source changes intended and no consumer action required.
|
|
20
|
+
|
|
3
21
|
## 0.50.6
|
|
4
22
|
|
|
5
23
|
Automatic changed-only republish (docs/metadata drift since the last tag — see
|
|
@@ -53711,7 +53711,9 @@ function MatrxDataTableCore(coreProps) {
|
|
|
53711
53711
|
const facetInputsRef = (0, import_react28.useRef)({ data, facets, facetReadCell, coreFacetTotal, coreFacetLoaded });
|
|
53712
53712
|
facetInputsRef.current = { data, facets, facetReadCell, coreFacetTotal, coreFacetLoaded };
|
|
53713
53713
|
const facetRequestRef = (0, import_react28.useRef)(/* @__PURE__ */ new Map());
|
|
53714
|
+
const requestedFacetColumns = (0, import_react28.useRef)(/* @__PURE__ */ new Set());
|
|
53714
53715
|
const requestFacets = (0, import_react28.useCallback)((colId) => {
|
|
53716
|
+
requestedFacetColumns.current.add(colId);
|
|
53715
53717
|
const { data: rows, facets: config, facetReadCell: readCell, coreFacetTotal: total, coreFacetLoaded: loaded } = facetInputsRef.current;
|
|
53716
53718
|
if (!config || config.enabled === false) {
|
|
53717
53719
|
const complete2 = localFacetsAreComplete(loaded ?? rows.length, total ?? rows.length);
|
|
@@ -53795,8 +53797,13 @@ function MatrxDataTableCore(coreProps) {
|
|
|
53795
53797
|
}, []);
|
|
53796
53798
|
(0, import_react28.useEffect)(() => {
|
|
53797
53799
|
setFacetState({});
|
|
53798
|
-
|
|
53799
|
-
|
|
53800
|
+
for (const [colId, ticket] of facetRequestRef.current) {
|
|
53801
|
+
facetRequestRef.current.set(colId, ticket + 1);
|
|
53802
|
+
}
|
|
53803
|
+
if (facetsEnabled || coreSuggestionsEnabled) {
|
|
53804
|
+
for (const colId of requestedFacetColumns.current) requestFacets(colId);
|
|
53805
|
+
}
|
|
53806
|
+
}, [facetsEnabled, coreSuggestionsEnabled, data, searchValue, coreFacetTotal, coreFacetLoaded, requestFacets]);
|
|
53800
53807
|
const totalIsKnown = !isLoading && !readView.failure;
|
|
53801
53808
|
(0, import_react28.useEffect)(() => {
|
|
53802
53809
|
if (!controlledQuery || !totalIsKnown || controlledQuery.state.page === safePage) return;
|
|
@@ -54849,8 +54856,11 @@ function MatrxDataTableCore(coreProps) {
|
|
|
54849
54856
|
columnDragPreview,
|
|
54850
54857
|
reorderableColumns,
|
|
54851
54858
|
facetsEnabled,
|
|
54852
|
-
|
|
54853
|
-
|
|
54859
|
+
coreSuggestionsEnabled,
|
|
54860
|
+
// Automatic known-value choices update the same header as configured facets.
|
|
54861
|
+
// Otherwise a settled, memoised header keeps the menu's initial empty list.
|
|
54862
|
+
facetsEnabled || coreSuggestionsEnabled ? facetState : null,
|
|
54863
|
+
facetsEnabled || coreSuggestionsEnabled ? requestFacets : null,
|
|
54854
54864
|
filterUi,
|
|
54855
54865
|
host,
|
|
54856
54866
|
captureResizeGestureSnapshot,
|