@formisch/qwik 0.7.1 → 0.7.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/index.d.ts +4 -11
- package/dist/index.qwik.js +2 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
import { JSXOutput, NoSerialize, PropsOf, QRL, ReadonlySignal } from "@qwik.dev/core";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _qwik_dev_core_internal1 from "@qwik.dev/core/internal";
|
|
4
4
|
|
|
5
5
|
//#region ../../packages/core/dist/index.qwik.d.ts
|
|
6
6
|
|
|
@@ -30,9 +30,6 @@ interface Signal<T> {
|
|
|
30
30
|
* Field element type.
|
|
31
31
|
*/
|
|
32
32
|
type FieldElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
33
|
-
/**
|
|
34
|
-
* Internal base store interface.
|
|
35
|
-
*/
|
|
36
33
|
//#endregion
|
|
37
34
|
//#region src/types/field.qwik.d.ts
|
|
38
35
|
/**
|
|
@@ -227,10 +224,6 @@ type PartialValues<TValue> = TValue extends readonly unknown[] ? number extends
|
|
|
227
224
|
* Validation mode type.
|
|
228
225
|
*/
|
|
229
226
|
type ValidationMode = "initial" | "touch" | "input" | "change" | "blur" | "submit";
|
|
230
|
-
/**
|
|
231
|
-
* Form config interface.
|
|
232
|
-
*/
|
|
233
|
-
|
|
234
227
|
/**
|
|
235
228
|
* Submit handler type.
|
|
236
229
|
*/
|
|
@@ -973,7 +966,7 @@ interface FieldProps<TSchema extends Schema = Schema, TFieldPath extends Require
|
|
|
973
966
|
*
|
|
974
967
|
* @returns The UI of the field to be rendered.
|
|
975
968
|
*/
|
|
976
|
-
declare const Field: <TSchema extends Schema, TFieldPath extends RequiredPath>(props:
|
|
969
|
+
declare const Field: <TSchema extends Schema, TFieldPath extends RequiredPath>(props: _qwik_dev_core_internal1.PublicProps<FieldProps<TSchema, TFieldPath>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal1.DevJSX) => JSXOutput;
|
|
977
970
|
//#endregion
|
|
978
971
|
//#region src/components/FieldArray/FieldArray.d.ts
|
|
979
972
|
/**
|
|
@@ -1001,7 +994,7 @@ interface FieldArrayProps<TSchema extends Schema = Schema, TFieldArrayPath exten
|
|
|
1001
994
|
*
|
|
1002
995
|
* @returns The UI of the field array to be rendered.
|
|
1003
996
|
*/
|
|
1004
|
-
declare const FieldArray: <TSchema extends Schema, TFieldArrayPath extends RequiredPath>(props:
|
|
997
|
+
declare const FieldArray: <TSchema extends Schema, TFieldArrayPath extends RequiredPath>(props: _qwik_dev_core_internal1.PublicProps<FieldArrayProps<TSchema, TFieldArrayPath>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal1.DevJSX) => JSXOutput;
|
|
1005
998
|
//#endregion
|
|
1006
999
|
//#region src/components/Form/Form.d.ts
|
|
1007
1000
|
/**
|
|
@@ -1023,7 +1016,7 @@ type FormProps<TSchema extends Schema = Schema> = Omit<PropsOf<'form'>, 'onSubmi
|
|
|
1023
1016
|
*
|
|
1024
1017
|
* @returns The a native form element.
|
|
1025
1018
|
*/
|
|
1026
|
-
declare const Form: <TSchema extends Schema>(props:
|
|
1019
|
+
declare const Form: <TSchema extends Schema>(props: _qwik_dev_core_internal1.PublicProps<FormProps<TSchema>>, key: string | null, flags: number, dev?: _qwik_dev_core_internal1.DevJSX) => JSXOutput;
|
|
1027
1020
|
//#endregion
|
|
1028
1021
|
//#region src/hooks/useField/useField.d.ts
|
|
1029
1022
|
/**
|
package/dist/index.qwik.js
CHANGED
|
@@ -288,9 +288,8 @@ function getElementInput(element, internalFieldStore) {
|
|
|
288
288
|
return element.checked;
|
|
289
289
|
}
|
|
290
290
|
if (element.type === "radio") {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
return prevValue.filter((value) => value !== element.value);
|
|
291
|
+
if (element.checked) return element.value;
|
|
292
|
+
return untrack(() => /* @__PURE__ */ getFieldInput(internalFieldStore));
|
|
294
293
|
}
|
|
295
294
|
if (element.type === "file") {
|
|
296
295
|
if (element.multiple) return [...element.files];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formisch/qwik",
|
|
3
3
|
"description": "The modular and type-safe form library for Qwik",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Fabian Hiller",
|
|
7
7
|
"homepage": "https://formisch.dev",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"eslint-plugin-qwik": "2.0.0-beta.5",
|
|
44
44
|
"globals": "16.3.0",
|
|
45
45
|
"prettier": "3.6.2",
|
|
46
|
-
"tsdown": "
|
|
46
|
+
"tsdown": "0.12.9",
|
|
47
47
|
"typescript": "5.8.3",
|
|
48
48
|
"typescript-eslint": "8.36.0",
|
|
49
49
|
"valibot": "^1.1.0",
|
|
50
50
|
"vite": "7.0.4",
|
|
51
51
|
"vite-tsconfig-paths": "^5.1.4",
|
|
52
|
-
"@formisch/core": "0.4.
|
|
52
|
+
"@formisch/core": "0.4.3",
|
|
53
53
|
"@formisch/methods": "0.5.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|