@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.
@@ -104,9 +104,21 @@ export interface TisRemoteUploadConfig {
104
104
  */
105
105
  pairing?: TisPairingConfig;
106
106
  /**
107
- * Callback when user accepts a file from mobile upload
108
- * This allows the host app to handle the accepted file (e.g., patch a form)
109
- * @param file - The accepted file data
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 for user to accept/reject
245
+ * Files are either auto-accepted or added to pending queue based on config
246
246
  */
247
247
  private handleUploadComplete;
248
248
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicemind.tis/tis-image-and-file-upload-and-view",
3
- "version": "1.2.36",
3
+ "version": "1.2.38",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0",