@smartbit4all/ng-client 7.3.40 → 7.3.41
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 +14 -0
- package/fesm2022/smartbit4all-ng-client.mjs +572 -94
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-7.3.41.tgz +0 -0
- package/types/smartbit4all-ng-client.d.ts +99 -3
- package/smartbit4all-ng-client-7.3.40.tgz +0 -0
package/WIDGETS.md
CHANGED
|
@@ -241,6 +241,20 @@ 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 the webcam panel (with record and stop for video). A captured file is checked against
|
|
250
|
+
`formats` and `maxSize` like a picked one. `thumbnail` `FULL` shows the stored file on the card
|
|
251
|
+
(`<img>`, `<video controls>` or `<audio controls>` by mime type, in view mode too; a play tile that
|
|
252
|
+
expands in a multi row): the editor fetches the file with the view's authenticated download of the
|
|
253
|
+
preview key the server registered, never with an `<img src>` to the API. The zone's texts come from
|
|
254
|
+
the upload descriptor's `texts`: a descriptor field (`title`, `description`, `uploadButtonTitle`)
|
|
255
|
+
wins over `texts.addFile` / `browseOrDrag` / `upload`, then `texts[key]`, then the client's own
|
|
256
|
+
text; a widget without an upload descriptor keeps the client's defaults.
|
|
257
|
+
|
|
244
258
|
## The executable version
|
|
245
259
|
|
|
246
260
|
Two specs in the library are written to be read as examples, and they travel with the source:
|