@axinom/mosaic-ui 0.62.0-rc.0 → 0.62.0-rc.2
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/components/Explorer/Explorer.d.ts.map +1 -1
- package/dist/components/Explorer/QuickEdit/useQuickEdit.d.ts.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Explorer/Explorer.tsx +7 -0
- package/src/components/Explorer/QuickEdit/useQuickEdit.tsx +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-ui",
|
|
3
|
-
"version": "0.62.0-rc.
|
|
3
|
+
"version": "0.62.0-rc.2",
|
|
4
4
|
"description": "UI components for building Axinom Mosaic applications",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"publishConfig": {
|
|
113
113
|
"access": "public"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "e9eb90f8af7162c2a58d09980fe3f5f08186d301"
|
|
116
116
|
}
|
|
@@ -420,6 +420,13 @@ export const Explorer = React.forwardRef(function Explorer<T extends Data>(
|
|
|
420
420
|
closeBulkEdit,
|
|
421
421
|
});
|
|
422
422
|
|
|
423
|
+
useEffect(() => {
|
|
424
|
+
if (listSelectionMode !== ListSelectMode.Multi) {
|
|
425
|
+
setItemSelection({ mode: 'SINGLE_ITEMS', items: [] });
|
|
426
|
+
listRef.current?.resetSelection();
|
|
427
|
+
}
|
|
428
|
+
}, [listSelectionMode]);
|
|
429
|
+
|
|
423
430
|
return (
|
|
424
431
|
<ConditionalSplit
|
|
425
432
|
shouldSplit={isQuickEditMode || isBulkEditMode}
|
|
@@ -127,7 +127,9 @@ export const useQuickEdit = <T extends Data>({
|
|
|
127
127
|
setIsQuickEditMode(isOpen);
|
|
128
128
|
setCurrentRegistration(isOpen ? registrations[0] : undefined);
|
|
129
129
|
collapseFilters();
|
|
130
|
-
|
|
130
|
+
if (isOpen) {
|
|
131
|
+
listRef.current?.selectIndex(0);
|
|
132
|
+
}
|
|
131
133
|
}
|
|
132
134
|
},
|
|
133
135
|
actions: registrations.map((registration) => ({
|