@tft/crispr-forms 13.0.3 → 13.0.4
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/esm2020/lib/material/image-upload-field/image-upload-field.component.mjs +37 -20
- package/esm2020/lib/models/image-upload-field.config.mjs +1 -1
- package/fesm2015/tft-crispr-forms.mjs +37 -19
- package/fesm2015/tft-crispr-forms.mjs.map +1 -1
- package/fesm2020/tft-crispr-forms.mjs +36 -19
- package/fesm2020/tft-crispr-forms.mjs.map +1 -1
- package/lib/material/image-upload-field/image-upload-field.component.d.ts +8 -2
- package/lib/models/image-upload-field.config.d.ts +6 -0
- package/package.json +1 -1
- package/tft-crispr-forms-13.0.4.tgz +0 -0
- package/tft-crispr-forms-13.0.3.tgz +0 -0
|
@@ -33,9 +33,15 @@ export declare class ImageUploadFieldComponent extends ImageUploadFieldMixin imp
|
|
|
33
33
|
private cdr;
|
|
34
34
|
onChange: () => void;
|
|
35
35
|
defaultConfig: Partial<ImageUploadFieldConfig>;
|
|
36
|
-
|
|
36
|
+
/**
|
|
37
|
+
* The url mapped from initial input value, consumers can us mapInputValueToUrl in config to transform their input value into a src url for the image element
|
|
38
|
+
*/
|
|
37
39
|
private inputImageFileSubject;
|
|
38
|
-
inputImageFile$: Observable<
|
|
40
|
+
inputImageFile$: Observable<File>;
|
|
41
|
+
/**
|
|
42
|
+
* the compression progress
|
|
43
|
+
*/
|
|
44
|
+
progress: number | undefined;
|
|
39
45
|
compressedFile$: Observable<File>;
|
|
40
46
|
compressedImageUrlString$: Observable<string | null>;
|
|
41
47
|
imageSrcUrl$: Observable<string | null>;
|
|
@@ -16,6 +16,12 @@ export declare type ImageUploadFieldConfig = CrisprControlConfig & MatFieldPrope
|
|
|
16
16
|
clearFilesButtonText?: string;
|
|
17
17
|
resetFilesButtonText?: string;
|
|
18
18
|
dropZoneText?: string;
|
|
19
|
+
/**
|
|
20
|
+
* If the input value of the control is not a string of the src
|
|
21
|
+
* url to the image, this function allows consumers to map their
|
|
22
|
+
* input value into one
|
|
23
|
+
*/
|
|
24
|
+
mapInputValueToUrl?: (inputValue: unknown) => string;
|
|
19
25
|
/**
|
|
20
26
|
* Should the field compress the image after loading it
|
|
21
27
|
* @default false
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|