@thi.ng/rdom-forms 1.1.6 → 1.1.8
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/README.md +2 -2
- package/compile.js +3 -2
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 215 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -133,7 +133,7 @@ Browser ESM import:
|
|
|
133
133
|
|
|
134
134
|
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
135
135
|
|
|
136
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 2.
|
|
136
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 2.35 KB
|
|
137
137
|
|
|
138
138
|
## Dependencies
|
|
139
139
|
|
package/compile.js
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
button,
|
|
10
10
|
checkbox,
|
|
11
11
|
fieldset,
|
|
12
|
+
hidden as $hidden,
|
|
12
13
|
inputColor,
|
|
13
14
|
inputFile,
|
|
14
15
|
inputNumber,
|
|
@@ -208,8 +209,8 @@ const compileForm = defmulti(
|
|
|
208
209
|
},
|
|
209
210
|
custom: (val) => val.body,
|
|
210
211
|
hidden: ($val) => {
|
|
211
|
-
const {
|
|
212
|
-
return
|
|
212
|
+
const { name, id = name, value } = $val;
|
|
213
|
+
return $hidden({ id, name, value });
|
|
213
214
|
},
|
|
214
215
|
toggle: ($val, opts) => {
|
|
215
216
|
const val = $val;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rdom-forms",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Data-driven declarative & extensible HTML form generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/checks": "^3.
|
|
45
|
-
"@thi.ng/defmulti": "^3.0.
|
|
46
|
-
"@thi.ng/hiccup-html": "^2.
|
|
47
|
-
"@thi.ng/rdom": "^1.7.
|
|
48
|
-
"@thi.ng/rstream": "^9.5.
|
|
43
|
+
"@thi.ng/api": "^8.12.20",
|
|
44
|
+
"@thi.ng/checks": "^3.9.0",
|
|
45
|
+
"@thi.ng/defmulti": "^3.0.97",
|
|
46
|
+
"@thi.ng/hiccup-html": "^2.8.1",
|
|
47
|
+
"@thi.ng/rdom": "^1.7.89",
|
|
48
|
+
"@thi.ng/rstream": "^9.5.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"esbuild": "^0.28.0",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"status": "alpha",
|
|
100
100
|
"year": 2023
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "92be63f24030506f09d6d156804da2798c381dc4"
|
|
103
103
|
}
|