@htmlbricks/hb-input-area 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,37 @@
1
+ ## `hb-input-area` — input-area
2
+
3
+ **Category:** inputs
4
+ **Tags:** inputs
5
+
6
+ ### What it does
7
+
8
+ Multi-line `<textarea>` controlled by `schemaentry` with the same validation ideas as text: optional `validationRegex` and `params` min/max length, required handling, and `show_validation` / `validationTip`. Dispatches `setVal` with `{ value, valid, id }` and `clickEnter` when Enter is pressed without Shift (Shift+Enter still inserts a newline).
9
+
10
+ ### Custom element
11
+
12
+ `hb-input-area`
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?`, `placeholder?`, `required?`, `value?`, `validationTip?`, `validationRegex?`, `params?`)
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 parts: `invalid-feedback`, `input`. Nested `schemaentry` fields follow the shared form-schema shape used by `hb-form`.
29
+
30
+ ### Minimal HTML example
31
+
32
+ ```html
33
+ <hb-input-area
34
+ schemaentry="{&quot;id&quot;:&quot;notes&quot;,&quot;label&quot;:&quot;Notes&quot;,&quot;placeholder&quot;:&quot;Type here…&quot;}"
35
+ show_validation="no"
36
+ ></hb-input-area>
37
+ ```
package/manifest.json CHANGED
@@ -212,5 +212,5 @@
212
212
  "size": {},
213
213
  "iifePath": "main.iife.js",
214
214
  "repoName": "@htmlbricks/hb-input-area",
215
- "version": "0.66.7"
215
+ "version": "0.66.9"
216
216
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-area",
3
- "version": "0.66.7",
3
+ "version": "0.66.9",
4
4
  "contributors": [],
5
5
  "description": "Multi-line `<textarea>` controlled by `schemaentry` with the same validation ideas as text: optional `validationRegex` and `params` min/max length, required handling, and `show_validation` / `validationTip`. Dispatches `setVal` with `{ value, valid, id }` and `clickEnter` when Enter is pressed without Shift (Shift+Enter still inserts a newline).",
6
6
  "licenses": [