@htmlbricks/hb-input-date 0.66.8 → 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,37 @@
1
+ ## `hb-input-date` — input-date
2
+
3
+ **Category:** inputs
4
+ **Tags:** inputs
5
+
6
+ ### What it does
7
+
8
+ Native date input bound to `schemaentry` (string JSON or object), with optional `params.min` / `max` compared as `Date` values when the field is required. Shows Bootstrap validation and `validationTip` when `show_validation` is on. Dispatches `setVal` with the string date `value`, `valid`, and `id`, and `clickEnter` if the user presses Enter.
9
+
10
+ ### Custom element
11
+
12
+ `hb-input-date`
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?` as ISO date string, `validationTip?`, `params.min` / `params.max` as ISO strings, …)
19
+ - `show_validation` — optional `"yes"` | `"no"`
20
+
21
+ ### Events
22
+
23
+ - `setVal` — `{ value: string; valid: boolean; id: string }`
24
+ - `clickEnter` — `{ value: string; valid: boolean; id?: string }`
25
+
26
+ ### Usage notes
27
+
28
+ CSS part: `invalid-feedback`.
29
+
30
+ ### Minimal HTML example
31
+
32
+ ```html
33
+ <hb-input-date
34
+ schemaentry="{&quot;id&quot;:&quot;birth&quot;,&quot;label&quot;:&quot;Birth date&quot;,&quot;required&quot;:true}"
35
+ show_validation="no"
36
+ ></hb-input-date>
37
+ ```
package/manifest.json CHANGED
@@ -256,5 +256,5 @@
256
256
  "size": {},
257
257
  "iifePath": "main.iife.js",
258
258
  "repoName": "@htmlbricks/hb-input-date",
259
- "version": "0.66.8"
259
+ "version": "0.66.9"
260
260
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-date",
3
- "version": "0.66.8",
3
+ "version": "0.66.9",
4
4
  "contributors": [],
5
5
  "description": "Native date input bound to `schemaentry` (string JSON or object), with optional `params.min` / `max` compared as `Date` values when the field is required. Shows Bootstrap validation and `validationTip` when `show_validation` is on. Dispatches `setVal` with the string date `value`, `valid`, and `id`, and `clickEnter` if the user presses Enter.",
6
6
  "licenses": [