@axinom/mosaic-ui 0.36.0-rc.1 → 0.36.0-rc.10
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 +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/DynamicDataList/DynamicDataList.tsx +2 -1
- package/src/components/FormElements/DynamicDataListControl/DynamicDataListControl.stories.tsx +2 -0
- package/src/components/List/List.scss +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-ui",
|
|
3
|
-
"version": "0.36.0-rc.
|
|
3
|
+
"version": "0.36.0-rc.10",
|
|
4
4
|
"description": "UI components for building Axinom Mosaic applications",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build-storybook": "storybook build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@axinom/mosaic-core": "^0.4.9-rc.
|
|
35
|
+
"@axinom/mosaic-core": "^0.4.9-rc.10",
|
|
36
36
|
"@faker-js/faker": "^7.4.0",
|
|
37
37
|
"@popperjs/core": "^2.9.2",
|
|
38
38
|
"clsx": "^1.1.0",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "b3c60d5d725c084f7cf36981f5a0a923a934ded5"
|
|
108
108
|
}
|
|
@@ -183,7 +183,8 @@ export const DynamicDataList = <T extends Data>({
|
|
|
183
183
|
if (result.destination && positionPropertyName) {
|
|
184
184
|
const oldItem = items[result.source.index];
|
|
185
185
|
|
|
186
|
-
const nextPosition =
|
|
186
|
+
const nextPosition =
|
|
187
|
+
items[result.destination.index][positionPropertyName];
|
|
187
188
|
|
|
188
189
|
const newItem = {
|
|
189
190
|
...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
|
};
|