@htmlbricks/hb-input-checkbox 0.70.2 → 0.71.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/main.iife.js +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +18 -2
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +4 -0
- package/types/webcomponent.type.d.ts +4 -1
package/manifest.json
CHANGED
|
@@ -66,6 +66,10 @@
|
|
|
66
66
|
"FormSchemaEntry": {
|
|
67
67
|
"additionalProperties": false,
|
|
68
68
|
"properties": {
|
|
69
|
+
"disabled": {
|
|
70
|
+
"description": "When true, the native control is disabled and non-interactive.",
|
|
71
|
+
"type": "boolean"
|
|
72
|
+
},
|
|
69
73
|
"id": {
|
|
70
74
|
"description": "This will be both the key of the object when submitting the form's data, and also the id in the DOM.",
|
|
71
75
|
"type": "string"
|
|
@@ -197,9 +201,21 @@
|
|
|
197
201
|
"value": false
|
|
198
202
|
}
|
|
199
203
|
}
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "disabled",
|
|
207
|
+
"description": "Checkbox is fully disabled and non-interactive.",
|
|
208
|
+
"data": {
|
|
209
|
+
"schemaentry": {
|
|
210
|
+
"id": "termsDisabled",
|
|
211
|
+
"label": "Terms accepted (locked)",
|
|
212
|
+
"value": true,
|
|
213
|
+
"disabled": true
|
|
214
|
+
}
|
|
215
|
+
}
|
|
200
216
|
}
|
|
201
217
|
],
|
|
202
|
-
"iifeIntegrity": "sha384-
|
|
218
|
+
"iifeIntegrity": "sha384-MVHJ1D71Dbmp/9+2pph4Qyn0142MaKQOu1pNA9lh8STEHytgq7fQm5SXzyoO+jjL",
|
|
203
219
|
"dependencies": [],
|
|
204
220
|
"screenshots": [],
|
|
205
221
|
"licenses": [
|
|
@@ -219,5 +235,5 @@
|
|
|
219
235
|
"size": {},
|
|
220
236
|
"iifePath": "main.iife.js",
|
|
221
237
|
"repoName": "@htmlbricks/hb-input-checkbox",
|
|
222
|
-
"version": "0.
|
|
238
|
+
"version": "0.71.1"
|
|
223
239
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-input-checkbox",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.1",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Checkbox or, when `schemaentry.params.type` is `switch`, a switch styled with Bulma theme variables on `:host`. Labeled from `schemaentry.label` with a required asterisk when needed. Boolean `value` is parsed from stringified `schemaentry`; required fields must be checked to be valid. Dispatches `setVal` with `{ value, valid, id }` and shows `validationTip` as Bulma `help is-danger` when `show_validation` is enabled and invalid.",
|
|
6
6
|
"licenses": [
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
"FormSchemaEntry": {
|
|
31
31
|
"additionalProperties": false,
|
|
32
32
|
"properties": {
|
|
33
|
+
"disabled": {
|
|
34
|
+
"description": "When true, the native control is disabled and non-interactive.",
|
|
35
|
+
"type": "boolean"
|
|
36
|
+
},
|
|
33
37
|
"id": {
|
|
34
38
|
"description": "This will be both the key of the object when submitting the form's data, and also the id in the DOM.",
|
|
35
39
|
"type": "string"
|
|
@@ -17,6 +17,9 @@ export type FormSchemaEntry = {
|
|
|
17
17
|
|
|
18
18
|
readonly?: boolean;
|
|
19
19
|
|
|
20
|
+
/** When true, the native control is disabled and non-interactive. */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
|
|
20
23
|
/**
|
|
21
24
|
* This doesn't matter if the dependencies requirements aren't met.
|
|
22
25
|
*/
|
|
@@ -44,5 +47,5 @@ export type Component = {
|
|
|
44
47
|
};
|
|
45
48
|
|
|
46
49
|
export type Events = {
|
|
47
|
-
|
|
50
|
+
setVal: { value: boolean; valid: boolean; id: string | undefined };
|
|
48
51
|
};
|