dap-design-system 0.61.6 → 0.61.7
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/dist/components/file-input/file-input.component.d.ts +29 -1
- package/dist/components/file-input/file-input.component.js +226 -173
- package/dist/components/file-input/file-input.component.js.map +1 -1
- package/dist/manifest/types/vue/index.d.ts +1245 -1245
- package/dist/manifest/vscode.html-custom-data.json +664 -664
- package/dist/manifest/web-types.json +2383 -2383
- package/dist/react/index.d.ts +47 -47
- package/dist/react-types.ts +48 -48
- package/dist/react.js +264 -264
- package/package.json +1 -1
|
@@ -211,7 +211,35 @@ export default class DapDSFileInput extends GenericFormElement {
|
|
|
211
211
|
* Validates a file list against all constraints (count, size, type)
|
|
212
212
|
*/
|
|
213
213
|
private validateFiles;
|
|
214
|
-
|
|
214
|
+
/**
|
|
215
|
+
* Removes a single file from the file input and frees up a slot in the
|
|
216
|
+
* `maxFiles` budget.
|
|
217
|
+
*
|
|
218
|
+
* @param fileData The file to remove. It is matched against the selected files
|
|
219
|
+
* by name, size, type and lastModified, so a structurally equal file also works.
|
|
220
|
+
* @param options.skipConfirm Skips the built-in confirmation dialog for this
|
|
221
|
+
* call only, without having to change the `confirmRemove` property. Useful when
|
|
222
|
+
* the host application renders its own file list and already confirmed removal.
|
|
223
|
+
*/
|
|
224
|
+
removeFile(fileData: FileListElement | File, options?: {
|
|
225
|
+
skipConfirm?: boolean;
|
|
226
|
+
}): Promise<void> | void;
|
|
227
|
+
/**
|
|
228
|
+
* Removes every selected file, so the whole `maxFiles` budget becomes
|
|
229
|
+
* available again.
|
|
230
|
+
*
|
|
231
|
+
* This is a programmatic API, so it never shows the confirmation dialog.
|
|
232
|
+
* Files already uploaded are deleted from the server when `deleteUrl` is set,
|
|
233
|
+
* and in-flight uploads are aborted.
|
|
234
|
+
*/
|
|
235
|
+
clearFiles(): Promise<void>;
|
|
236
|
+
/**
|
|
237
|
+
* Deletes an already uploaded file from the server when a deleteUrl is set.
|
|
238
|
+
* Delete failures are reported but never block the local removal.
|
|
239
|
+
*/
|
|
240
|
+
private deleteUploadedFileFromServer;
|
|
241
|
+
/** Keeps the native input element in sync with the current file list */
|
|
242
|
+
private syncNativeInput;
|
|
215
243
|
private performFileRemoval;
|
|
216
244
|
private languageChangeHandler;
|
|
217
245
|
connectedCallback(): void;
|