@formisch/solid 0.6.0 → 0.6.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/dev.js +2 -2
- package/dist/dev.jsx +2 -2
- package/dist/index.js +2 -2
- package/dist/index.jsx +2 -2
- package/package.json +3 -3
package/dist/dev.js
CHANGED
|
@@ -463,10 +463,10 @@ function move(form, config) {
|
|
|
463
463
|
internalArrayStore.items.value = newItems;
|
|
464
464
|
const tempInternalFieldStore = {};
|
|
465
465
|
initializeFieldStore(tempInternalFieldStore, internalArrayStore.schema.item, void 0, []);
|
|
466
|
-
copyItemState(internalArrayStore.children[config.from
|
|
466
|
+
copyItemState(internalArrayStore.children[config.from], tempInternalFieldStore);
|
|
467
467
|
if (config.from < config.to) for (let index = config.from; index < config.to; index++) copyItemState(internalArrayStore.children[index + 1], internalArrayStore.children[index]);
|
|
468
468
|
else for (let index = config.from; index > config.to; index--) copyItemState(internalArrayStore.children[index - 1], internalArrayStore.children[index]);
|
|
469
|
-
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.
|
|
469
|
+
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.to]);
|
|
470
470
|
internalArrayStore.isTouched.value = true;
|
|
471
471
|
internalArrayStore.isDirty.value = internalArrayStore.startItems.value.join() !== newItems.join();
|
|
472
472
|
validateIfRequired(internalFormStore, internalArrayStore, "input");
|
package/dist/dev.jsx
CHANGED
|
@@ -461,10 +461,10 @@ function move(form, config) {
|
|
|
461
461
|
internalArrayStore.items.value = newItems;
|
|
462
462
|
const tempInternalFieldStore = {};
|
|
463
463
|
initializeFieldStore(tempInternalFieldStore, internalArrayStore.schema.item, void 0, []);
|
|
464
|
-
copyItemState(internalArrayStore.children[config.from
|
|
464
|
+
copyItemState(internalArrayStore.children[config.from], tempInternalFieldStore);
|
|
465
465
|
if (config.from < config.to) for (let index = config.from; index < config.to; index++) copyItemState(internalArrayStore.children[index + 1], internalArrayStore.children[index]);
|
|
466
466
|
else for (let index = config.from; index > config.to; index--) copyItemState(internalArrayStore.children[index - 1], internalArrayStore.children[index]);
|
|
467
|
-
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.
|
|
467
|
+
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.to]);
|
|
468
468
|
internalArrayStore.isTouched.value = true;
|
|
469
469
|
internalArrayStore.isDirty.value = internalArrayStore.startItems.value.join() !== newItems.join();
|
|
470
470
|
validateIfRequired(internalFormStore, internalArrayStore, "input");
|
package/dist/index.js
CHANGED
|
@@ -463,10 +463,10 @@ function move(form, config) {
|
|
|
463
463
|
internalArrayStore.items.value = newItems;
|
|
464
464
|
const tempInternalFieldStore = {};
|
|
465
465
|
initializeFieldStore(tempInternalFieldStore, internalArrayStore.schema.item, void 0, []);
|
|
466
|
-
copyItemState(internalArrayStore.children[config.from
|
|
466
|
+
copyItemState(internalArrayStore.children[config.from], tempInternalFieldStore);
|
|
467
467
|
if (config.from < config.to) for (let index = config.from; index < config.to; index++) copyItemState(internalArrayStore.children[index + 1], internalArrayStore.children[index]);
|
|
468
468
|
else for (let index = config.from; index > config.to; index--) copyItemState(internalArrayStore.children[index - 1], internalArrayStore.children[index]);
|
|
469
|
-
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.
|
|
469
|
+
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.to]);
|
|
470
470
|
internalArrayStore.isTouched.value = true;
|
|
471
471
|
internalArrayStore.isDirty.value = internalArrayStore.startItems.value.join() !== newItems.join();
|
|
472
472
|
validateIfRequired(internalFormStore, internalArrayStore, "input");
|
package/dist/index.jsx
CHANGED
|
@@ -461,10 +461,10 @@ function move(form, config) {
|
|
|
461
461
|
internalArrayStore.items.value = newItems;
|
|
462
462
|
const tempInternalFieldStore = {};
|
|
463
463
|
initializeFieldStore(tempInternalFieldStore, internalArrayStore.schema.item, void 0, []);
|
|
464
|
-
copyItemState(internalArrayStore.children[config.from
|
|
464
|
+
copyItemState(internalArrayStore.children[config.from], tempInternalFieldStore);
|
|
465
465
|
if (config.from < config.to) for (let index = config.from; index < config.to; index++) copyItemState(internalArrayStore.children[index + 1], internalArrayStore.children[index]);
|
|
466
466
|
else for (let index = config.from; index > config.to; index--) copyItemState(internalArrayStore.children[index - 1], internalArrayStore.children[index]);
|
|
467
|
-
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.
|
|
467
|
+
copyItemState(tempInternalFieldStore, internalArrayStore.children[config.to]);
|
|
468
468
|
internalArrayStore.isTouched.value = true;
|
|
469
469
|
internalArrayStore.isDirty.value = internalArrayStore.startItems.value.join() !== newItems.join();
|
|
470
470
|
validateIfRequired(internalFormStore, internalArrayStore, "input");
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formisch/solid",
|
|
3
3
|
"description": "The modular and type-safe form library for SolidJS",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Fabian Hiller",
|
|
7
7
|
"homepage": "https://formisch.dev",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"typescript-eslint": "^8.36.0",
|
|
63
63
|
"valibot": "^1.1.0",
|
|
64
64
|
"vitest": "3.2.4",
|
|
65
|
-
"@formisch/
|
|
66
|
-
"@formisch/
|
|
65
|
+
"@formisch/methods": "0.4.1",
|
|
66
|
+
"@formisch/core": "0.4.1"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"solid-js": "^1.6.0",
|