@solcre-org/core-ui 2.11.40 → 2.11.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/index.d.ts
CHANGED
|
@@ -341,7 +341,12 @@ interface FileFieldConfig<T extends DataBaseModelInterface> extends ModalFieldCo
|
|
|
341
341
|
showPreview?: boolean;
|
|
342
342
|
acceptString: string;
|
|
343
343
|
previewUrls?: PreviewFileUrl[] | ((row: T) => PreviewFileUrl[]);
|
|
344
|
-
onFileRemoved?: (
|
|
344
|
+
onFileRemoved?: (data: {
|
|
345
|
+
file: any;
|
|
346
|
+
index: number;
|
|
347
|
+
fileType: 'existing' | 'selected' | 'preview';
|
|
348
|
+
previewFile?: PreviewFileUrl;
|
|
349
|
+
}) => void;
|
|
345
350
|
onFilesAdded?: (data: {
|
|
346
351
|
previewUrls: PreviewFileUrl[];
|
|
347
352
|
newFiles: File[];
|
|
@@ -359,6 +364,9 @@ interface FileFieldConfig<T extends DataBaseModelInterface> extends ModalFieldCo
|
|
|
359
364
|
icon: string;
|
|
360
365
|
action: (value: any) => void;
|
|
361
366
|
}[];
|
|
367
|
+
forceRefresh?: boolean;
|
|
368
|
+
syncWithValue?: boolean;
|
|
369
|
+
refreshTrigger?: any;
|
|
362
370
|
}
|
|
363
371
|
|
|
364
372
|
interface ServerFile {
|
|
@@ -391,6 +399,8 @@ declare class FileFieldComponent<T extends DataBaseModelInterface> extends BaseF
|
|
|
391
399
|
ModalMode: typeof ModalMode;
|
|
392
400
|
allFiles: _angular_core.Signal<(File | ServerFile)[]>;
|
|
393
401
|
private previewUrlsEffect;
|
|
402
|
+
private valueChangeEffect;
|
|
403
|
+
private refreshTriggerEffect;
|
|
394
404
|
private getPreviewUrls;
|
|
395
405
|
private createBlobsFromUrls;
|
|
396
406
|
private extractFilenameFromUrl;
|
|
@@ -398,7 +408,9 @@ declare class FileFieldComponent<T extends DataBaseModelInterface> extends BaseF
|
|
|
398
408
|
protected initializeFormControl(): void;
|
|
399
409
|
private filesCountValidator;
|
|
400
410
|
private initializeFiles;
|
|
411
|
+
private reinitializeFilesFromValue;
|
|
401
412
|
isServerFile(value: any): value is ServerFile;
|
|
413
|
+
forceRefresh(): void;
|
|
402
414
|
private generatePreviews;
|
|
403
415
|
onFileSelected(event: Event): void;
|
|
404
416
|
private setLocalError;
|