@ai-matrx/design-system 0.49.24 → 0.49.25
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
|
@@ -51450,6 +51450,7 @@ function MatrxDataTableCore(coreProps) {
|
|
|
51450
51450
|
sort
|
|
51451
51451
|
]
|
|
51452
51452
|
);
|
|
51453
|
+
const declaredDefaultSort = urlState ? urlState.defaultSort ?? null : defaultSort;
|
|
51453
51454
|
const declaredDefaultViewSnapshot = useMemo11(
|
|
51454
51455
|
() => defaultViewSnapshot ?? {
|
|
51455
51456
|
__kind: "matrx-table-view",
|
|
@@ -51459,14 +51460,14 @@ function MatrxDataTableCore(coreProps) {
|
|
|
51459
51460
|
search: "",
|
|
51460
51461
|
anyOf: "",
|
|
51461
51462
|
columnFilters: {},
|
|
51462
|
-
sort:
|
|
51463
|
+
sort: declaredDefaultSort
|
|
51463
51464
|
},
|
|
51464
51465
|
columns: {
|
|
51465
51466
|
order: columns.map(columnId),
|
|
51466
51467
|
hidden: columns.filter((column) => column.hidden).map(columnId)
|
|
51467
51468
|
}
|
|
51468
51469
|
},
|
|
51469
|
-
[columns, defaultPageSize,
|
|
51470
|
+
[columns, defaultPageSize, declaredDefaultSort, defaultViewSnapshot]
|
|
51470
51471
|
);
|
|
51471
51472
|
const applySavedView = useCallback10(
|
|
51472
51473
|
(rawSnapshot) => {
|