@formisch/vue 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -633,10 +633,10 @@ function move(form, config) {
633
633
  internalArrayStore.items.value = newItems;
634
634
  const tempInternalFieldStore = {};
635
635
  initializeFieldStore(tempInternalFieldStore, internalArrayStore.schema.item, void 0, []);
636
- copyItemState(internalArrayStore.children[config.from < config.to ? config.from : config.to], tempInternalFieldStore);
636
+ copyItemState(internalArrayStore.children[config.from], tempInternalFieldStore);
637
637
  if (config.from < config.to) for (let index = config.from; index < config.to; index++) copyItemState(internalArrayStore.children[index + 1], internalArrayStore.children[index]);
638
638
  else for (let index = config.from; index > config.to; index--) copyItemState(internalArrayStore.children[index - 1], internalArrayStore.children[index]);
639
- copyItemState(tempInternalFieldStore, internalArrayStore.children[config.from < config.to ? config.to : config.from]);
639
+ copyItemState(tempInternalFieldStore, internalArrayStore.children[config.to]);
640
640
  internalArrayStore.isTouched.value = true;
641
641
  internalArrayStore.isDirty.value = internalArrayStore.startItems.value.join() !== newItems.join();
642
642
  validateIfRequired(internalFormStore, internalArrayStore, "input");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formisch/vue",
3
3
  "description": "The modular and type-safe form library for Vue",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "license": "MIT",
6
6
  "author": "Fabian Hiller",
7
7
  "homepage": "https://formisch.dev",
@@ -43,8 +43,8 @@
43
43
  "valibot": "^1.1.0",
44
44
  "vue": "^3.5.18",
45
45
  "vue-tsc": "^3.0.4",
46
- "@formisch/methods": "0.4.0",
47
- "@formisch/core": "0.4.1"
46
+ "@formisch/core": "0.4.1",
47
+ "@formisch/methods": "0.4.1"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "typescript": ">=5",