@smartbit4all/ng-client 7.3.40 → 7.3.42

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/WIDGETS.md CHANGED
@@ -241,6 +241,24 @@ widget type `HTML` places server-sent html with client placeholders, toolbar slo
241
241
  triggers — `HTML-WIDGET.md` is its reference. The table in
242
242
  `src/lib/smart-component-layout/README.md` lists what each identifier means.
243
243
 
244
+ The file widgets (`fileUploader`, `multiFileUploader`, in a `FORM` node) take their behaviour from
245
+ the widget properties the server sends. `sources` (`FILE`, `CAMERA_PHOTO`, `CAMERA_VIDEO`,
246
+ `MICROPHONE`, default `[FILE]`) is passed to the upload zone, which draws one capture button per
247
+ source in a row at the top and hides the picker without `FILE`; a capture-only zone uploads a
248
+ captured file at once. On a mobile device the photo and video buttons open the native camera; on a
249
+ desktop they open the live camera (with record and stop for video), and the microphone button
250
+ the recorder, in a Capture Dialog by default. The optional `capture` property (`mode` `DIALOG` /
251
+ `INLINE`, `deviceStart` `AUTO` / `MANUAL`, `handover` `CONFIRM` / `IMMEDIATE`, `openDirection`
252
+ `RIGHT` / `LEFT` for the inline recorder's strip; absent = `DIALOG`, `AUTO`, `CONFIRM`, `RIGHT`)
253
+ is resolved in the upload zone only. A captured file is checked against
254
+ `formats` and `maxSize` like a picked one. `thumbnail` `FULL` shows the stored file on the card
255
+ (`<img>`, `<video controls>` or `<audio controls>` by mime type, in view mode too; a play tile that
256
+ expands in a multi row): the editor fetches the file with the view's authenticated download of the
257
+ preview key the server registered, never with an `<img src>` to the API. The zone's texts come from
258
+ the upload descriptor's `texts`: a descriptor field (`title`, `description`, `uploadButtonTitle`)
259
+ wins over `texts.addFile` / `browseOrDrag` / `upload`, then `texts[key]`, then the client's own
260
+ text; a widget without an upload descriptor keeps the client's defaults.
261
+
244
262
  ## The executable version
245
263
 
246
264
  Two specs in the library are written to be read as examples, and they travel with the source: