@htmlbricks/hb-input-file 0.70.2 → 0.71.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/manifest.json CHANGED
@@ -71,6 +71,10 @@
71
71
  "FormSchemaEntry": {
72
72
  "additionalProperties": false,
73
73
  "properties": {
74
+ "disabled": {
75
+ "description": "When true, the native control is disabled and non-interactive.",
76
+ "type": "boolean"
77
+ },
74
78
  "id": {
75
79
  "description": "This will be both the key of the object when submitting the form's data, and also the id in the DOM.",
76
80
  "type": "string"
@@ -246,9 +250,20 @@
246
250
  "label": "Attachment (optional)"
247
251
  }
248
252
  }
253
+ },
254
+ {
255
+ "name": "disabled",
256
+ "description": "File input is fully disabled and non-interactive.",
257
+ "data": {
258
+ "schemaentry": {
259
+ "id": "fileDisabled",
260
+ "label": "Document (locked)",
261
+ "disabled": true
262
+ }
263
+ }
249
264
  }
250
265
  ],
251
- "iifeIntegrity": "sha384-/GKYndYZbLWOX0BA9Y45q26cBiiuMpBOeOBdg4CLxEScbvbUxXiI029LCNsut/Ut",
266
+ "iifeIntegrity": "sha384-0J/j5Ja3ImA+t+Aj125oKleaTtIbgRYREZagwWjmFpLHUUtnxlt0fWxQt+TPatRo",
252
267
  "dependencies": [],
253
268
  "screenshots": [],
254
269
  "licenses": [
@@ -268,5 +283,5 @@
268
283
  "size": {},
269
284
  "iifePath": "main.iife.js",
270
285
  "repoName": "@htmlbricks/hb-input-file",
271
- "version": "0.70.2"
286
+ "version": "0.71.0"
272
287
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-file",
3
- "version": "0.70.2",
3
+ "version": "0.71.0",
4
4
  "contributors": [],
5
5
  "description": "File picker with `accept` from `schemaentry.params.accept` (defaults to any file). Standard layout uses Bulma `file has-name` plus a MIME Bootstrap Icons glyph when a file is selected, and a text × clear control. With `placeHolderImage`, a clickable placeholder opens the hidden input; after selection, preview / MIME icon, filename, and clear. When `accept` includes `image` and the chosen file is a raster/SVG image, the placeholder preview shows the filename on a semi-transparent bar over the image and an outlined clear button at the top-right. `File.type` from the browser is preferred over extension mapping. Strings come from `i18nlang` (`en` / `it`). Dispatches `setVal` with `{ value, valid, id }`.",
6
6
  "licenses": [
@@ -34,6 +34,10 @@
34
34
  "FormSchemaEntry": {
35
35
  "additionalProperties": false,
36
36
  "properties": {
37
+ "disabled": {
38
+ "description": "When true, the native control is disabled and non-interactive.",
39
+ "type": "boolean"
40
+ },
37
41
  "id": {
38
42
  "description": "This will be both the key of the object when submitting the form's data, and also the id in the DOM.",
39
43
  "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
  */