@servicemind.tis/tis-image-and-file-upload-and-view 1.2.36 → 1.2.38
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/fesm2022/servicemind.tis-tis-image-and-file-upload-and-view.mjs +22 -6
- package/fesm2022/servicemind.tis-tis-image-and-file-upload-and-view.mjs.map +1 -1
- package/lib/interfaces/socket-adapter.interface.d.ts +15 -3
- package/lib/services/tis-remote-upload.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -104,9 +104,21 @@ export interface TisRemoteUploadConfig {
|
|
|
104
104
|
*/
|
|
105
105
|
pairing?: TisPairingConfig;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
107
|
+
* Auto-accept files from mobile without manual confirmation
|
|
108
|
+
* When true: Files are automatically shown in the component UI and attached to the form.
|
|
109
|
+
* The onFileAccept callback is also called for additional processing.
|
|
110
|
+
* When false: Files are NOT shown in the component UI or attached to the form.
|
|
111
|
+
* Only the onFileAccept callback is called, allowing the host app to
|
|
112
|
+
* handle the file display and processing in a custom way.
|
|
113
|
+
* Default: false
|
|
114
|
+
*/
|
|
115
|
+
autoAcceptFiles?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Callback when a file is uploaded from mobile device
|
|
118
|
+
* - If autoAcceptFiles=true: Called after file is added to component UI and form
|
|
119
|
+
* - If autoAcceptFiles=false: Called immediately (only way to access the file)
|
|
120
|
+
* This allows the host app to handle the file (e.g., patch a form control, custom display)
|
|
121
|
+
* @param file - The uploaded file data
|
|
110
122
|
*/
|
|
111
123
|
onFileAccept?: (file: TisRemoteUploadedFile) => void;
|
|
112
124
|
}
|
|
@@ -242,7 +242,7 @@ export declare class TisRemoteUploadService implements OnDestroy {
|
|
|
242
242
|
private handleConnectionState;
|
|
243
243
|
/**
|
|
244
244
|
* Handle upload complete from mobile
|
|
245
|
-
* Files are added to pending queue
|
|
245
|
+
* Files are either auto-accepted or added to pending queue based on config
|
|
246
246
|
*/
|
|
247
247
|
private handleUploadComplete;
|
|
248
248
|
/**
|