@htmlbricks/hb-input-checkbox 0.66.26 → 0.67.0
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 +7 -3
- package/main.iife.js +39 -71
- package/main.iife.js.map +1 -1
- package/manifest.json +10 -6
- package/package.json +2 -2
- package/types/webcomponent.type.d.ts +3 -1
- package/types/webcomponent_events.type.d.json +2 -3
package/README.md
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
### What it does
|
|
7
7
|
|
|
8
|
-
Checkbox or, when `schemaentry.params.type` is `switch`, a
|
|
8
|
+
Checkbox or, when `schemaentry.params.type` is `switch`, a switch styled in the shadow tree (Bulma colors 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 `yes` and invalid.
|
|
9
|
+
|
|
10
|
+
### Styling (Bulma)
|
|
11
|
+
|
|
12
|
+
Shadow bundle: `form/shared`, `form/input-textarea`, `form/checkbox-radio`, `form/tools`. Switch uses host SCSS (`hb-input-checkbox-switch`).
|
|
9
13
|
|
|
10
14
|
### Custom element
|
|
11
15
|
|
|
@@ -20,11 +24,11 @@ Checkbox or, when `schemaentry.params.type` is `switch`, a Bootstrap switch, lab
|
|
|
20
24
|
|
|
21
25
|
### Events
|
|
22
26
|
|
|
23
|
-
- `setVal` — `{ value:
|
|
27
|
+
- `setVal` — `{ value: boolean; valid: boolean; id: string }`
|
|
24
28
|
|
|
25
29
|
### Usage notes
|
|
26
30
|
|
|
27
|
-
CSS
|
|
31
|
+
CSS parts: `input`, `invalid-feedback`.
|
|
28
32
|
|
|
29
33
|
### Minimal HTML example
|
|
30
34
|
|