@htmlbricks/hb-input-file 0.68.1 → 0.68.2

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.
Files changed (2) hide show
  1. package/manifest.json +40 -1
  2. package/package.json +1 -1
package/manifest.json CHANGED
@@ -207,6 +207,45 @@
207
207
  }
208
208
  }
209
209
  }
210
+ },
211
+ {
212
+ "name": "italian",
213
+ "description": "Built-in Italian strings for the file control chrome.",
214
+ "data": {
215
+ "i18nlang": "it",
216
+ "schemaentry": {
217
+ "id": "allegato",
218
+ "required": true,
219
+ "label": "Allegato",
220
+ "validationTip": "Seleziona un file."
221
+ }
222
+ }
223
+ },
224
+ {
225
+ "name": "pdfOnly",
226
+ "description": "Accept attribute restricted to PDF documents.",
227
+ "data": {
228
+ "schemaentry": {
229
+ "id": "contractPdf",
230
+ "required": true,
231
+ "label": "Contract (PDF)",
232
+ "validationTip": "Upload a PDF file.",
233
+ "params": {
234
+ "accept": "application/pdf,.pdf"
235
+ }
236
+ }
237
+ }
238
+ },
239
+ {
240
+ "name": "optional",
241
+ "description": "File input not required; user may skip attachment.",
242
+ "data": {
243
+ "schemaentry": {
244
+ "id": "attachmentOptional",
245
+ "required": false,
246
+ "label": "Attachment (optional)"
247
+ }
248
+ }
210
249
  }
211
250
  ],
212
251
  "iifeIntegrity": "sha384-/GKYndYZbLWOX0BA9Y45q26cBiiuMpBOeOBdg4CLxEScbvbUxXiI029LCNsut/Ut",
@@ -229,5 +268,5 @@
229
268
  "size": {},
230
269
  "iifePath": "main.iife.js",
231
270
  "repoName": "@htmlbricks/hb-input-file",
232
- "version": "0.68.1"
271
+ "version": "0.68.2"
233
272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-input-file",
3
- "version": "0.68.1",
3
+ "version": "0.68.2",
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": [