@axinom/mosaic-ui 0.35.0 → 0.35.1
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/DynamicDataList/DynamicDataList.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/DynamicDataList/DynamicDataList.tsx +2 -1
- package/src/components/FormElements/DynamicDataListControl/DynamicDataListControl.stories.tsx +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-ui",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.1",
|
|
4
4
|
"description": "UI components for building Axinom Mosaic applications",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "083beeb2297dbc4336eaaf8b21ba587614b506df"
|
|
108
108
|
}
|
|
@@ -173,7 +173,8 @@ export const DynamicDataList = <T extends Data>({
|
|
|
173
173
|
if (result.destination && positionPropertyName) {
|
|
174
174
|
const oldItem = items[result.source.index];
|
|
175
175
|
|
|
176
|
-
const nextPosition =
|
|
176
|
+
const nextPosition =
|
|
177
|
+
items[result.destination.index][positionPropertyName];
|
|
177
178
|
|
|
178
179
|
const newItem = {
|
|
179
180
|
...oldItem,
|
package/src/components/FormElements/DynamicDataListControl/DynamicDataListControl.stories.tsx
CHANGED
|
@@ -101,5 +101,7 @@ export const Main: StoryObj<DynamicDataListStoryType> = {
|
|
|
101
101
|
positionPropertyName: 'position',
|
|
102
102
|
value: generateData(5),
|
|
103
103
|
columns: defaultColumns,
|
|
104
|
+
//TODO: investigate why this is needed - looks like it gets mocked out somehow
|
|
105
|
+
onAddTransformData: undefined,
|
|
104
106
|
},
|
|
105
107
|
};
|