@htmlbricks/hb-input-checkbox 0.66.7 → 0.66.9

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 ADDED
@@ -0,0 +1,36 @@
1
+ ## `hb-input-checkbox` — input-checkbox
2
+
3
+ **Category:** inputs
4
+ **Tags:** inputs
5
+
6
+ ### What it does
7
+
8
+ Checkbox or, when `schemaentry.params.type` is `switch`, a Bootstrap switch, 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 can show `validationTip` under `show_validation`.
9
+
10
+ ### Custom element
11
+
12
+ `hb-input-checkbox`
13
+
14
+ ### Attributes (snake_case; use string values in HTML)
15
+
16
+ - `id` — optional string
17
+ - `style` — optional string
18
+ - `schemaentry` — required string (JSON: `id`, `label?`, `required?`, `value?`, `validationTip?`, `params.type` optional `"switch"`, …)
19
+ - `show_validation` — optional `"yes"` | `"no"`
20
+
21
+ ### Events
22
+
23
+ - `setVal` — `{ value: string; valid: boolean; id: string }`
24
+
25
+ ### Usage notes
26
+
27
+ CSS part: `invalid-feedback`.
28
+
29
+ ### Minimal HTML example
30
+
31
+ ```html
32
+ <hb-input-checkbox
33
+ schemaentry="{&quot;id&quot;:&quot;accept&quot;,&quot;label&quot;:&quot;I agree&quot;,&quot;required&quot;:true}"
34
+ show_validation="no"
35
+ ></hb-input-checkbox>
36
+ ```
package/manifest.json CHANGED
@@ -203,5 +203,5 @@
203
203
  "size": {},
204
204
  "iifePath": "main.iife.js",
205
205
  "repoName": "@htmlbricks/hb-input-checkbox",
206
- "version": "0.66.7"
206
+ "version": "0.66.9"
207
207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-checkbox",
3
- "version": "0.66.7",
3
+ "version": "0.66.9",
4
4
  "contributors": [],
5
5
  "description": "Checkbox or, when `schemaentry.params.type` is `switch`, a Bootstrap switch, 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 can show `validationTip` under `show_validation`.",
6
6
  "licenses": [