@steveesamson/microform 1.0.12 → 1.0.13
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.
|
@@ -54,7 +54,7 @@ export const formAction = (values, errors, unfits, onSanity, options, validation
|
|
|
54
54
|
start();
|
|
55
55
|
const nodeName = isField(node) ? node.name : '';
|
|
56
56
|
const { name: dsname = nodeName } = node.dataset || {};
|
|
57
|
-
const { name = dsname, validations = [], validateEvent =
|
|
57
|
+
const { name = dsname, validations = [], validateEvent = options.validateEvent, html = false } = eventProps || {};
|
|
58
58
|
validationMap[name] = { validations, html, nodeRef: node };
|
|
59
59
|
const storedValue = values[name] || '';
|
|
60
60
|
let defValue = storedValue;
|
package/dist/index.svelte.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { formAction } from './form-action.svelte.js';
|
|
2
1
|
import { formStore } from './internal.svelte.js';
|
|
2
|
+
import { formAction } from './form-action.svelte.js';
|
|
3
3
|
const microform = (props) => {
|
|
4
4
|
// form default values
|
|
5
|
-
// const data = props?.data || {};
|
|
6
5
|
const defaultOptions = {
|
|
7
6
|
validateEvent: 'blur',
|
|
8
7
|
validators: {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steveesamson/microform",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"postbuild": "touch ./docs/.nojekyll",
|
|
@@ -37,9 +37,6 @@
|
|
|
37
37
|
"**/*.css"
|
|
38
38
|
],
|
|
39
39
|
"type": "module",
|
|
40
|
-
"peerDependencies": {
|
|
41
|
-
"svelte": "^5.0.0"
|
|
42
|
-
},
|
|
43
40
|
"devDependencies": {
|
|
44
41
|
"@eslint/compat": "^1.2.5",
|
|
45
42
|
"@eslint/js": "^9.18.0",
|
|
@@ -59,7 +56,7 @@
|
|
|
59
56
|
"prettier-plugin-svelte": "^3.3.3",
|
|
60
57
|
"publint": "^0.3.2",
|
|
61
58
|
"shiki": "^0.14.7",
|
|
62
|
-
"svelte": "^5.
|
|
59
|
+
"svelte": "^5.46.1",
|
|
63
60
|
"svelte-check": "^4.0.0",
|
|
64
61
|
"typescript": "^5.0.0",
|
|
65
62
|
"typescript-eslint": "^8.20.0",
|