cats-ui-lib 2.0.16 → 2.0.17
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/cats-ui-lib.mjs +6 -1
- package/fesm2022/cats-ui-lib.mjs.map +1 -1
- package/index.d.ts +2 -1
- package/package.json +1 -1
package/fesm2022/cats-ui-lib.mjs
CHANGED
|
@@ -3791,6 +3791,7 @@ class FileUploadComponent {
|
|
|
3791
3791
|
minSize = null;
|
|
3792
3792
|
helperText = '';
|
|
3793
3793
|
onfileChange = new EventEmitter();
|
|
3794
|
+
onfileRemove = new EventEmitter();
|
|
3794
3795
|
/**
|
|
3795
3796
|
* Accepted MIME types or extensions, comma-separated.
|
|
3796
3797
|
* e.g. 'image/png,image/jpeg' or '.png,.jpg,.pdf'
|
|
@@ -3896,6 +3897,7 @@ class FileUploadComponent {
|
|
|
3896
3897
|
this.value = valid;
|
|
3897
3898
|
this.onChange(this.value);
|
|
3898
3899
|
}
|
|
3900
|
+
this.onfileChange.emit(this.value);
|
|
3899
3901
|
this.onTouched();
|
|
3900
3902
|
this.isFocused = false;
|
|
3901
3903
|
}
|
|
@@ -3907,6 +3909,7 @@ class FileUploadComponent {
|
|
|
3907
3909
|
this.value = this.value.filter((_, i) => i !== index);
|
|
3908
3910
|
this.validationError = '';
|
|
3909
3911
|
this.onChange(this.value);
|
|
3912
|
+
this.onfileRemove.emit(this.value);
|
|
3910
3913
|
if (input)
|
|
3911
3914
|
input.value = '';
|
|
3912
3915
|
}
|
|
@@ -3954,7 +3957,7 @@ class FileUploadComponent {
|
|
|
3954
3957
|
return !!this.displayError;
|
|
3955
3958
|
}
|
|
3956
3959
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.14", ngImport: i0, type: FileUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3957
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: FileUploadComponent, isStandalone: true, selector: "cats-ui-file-upload", inputs: { placeholder: "placeholder", errorMessage: "errorMessage", disabled: "disabled", multiple: "multiple", buttonPosition: "buttonPosition", maxSize: "maxSize", minSize: "minSize", helperText: "helperText", accept: "accept" }, outputs: { onfileChange: "onfileChange" }, providers: [
|
|
3960
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.14", type: FileUploadComponent, isStandalone: true, selector: "cats-ui-file-upload", inputs: { placeholder: "placeholder", errorMessage: "errorMessage", disabled: "disabled", multiple: "multiple", buttonPosition: "buttonPosition", maxSize: "maxSize", minSize: "minSize", helperText: "helperText", accept: "accept" }, outputs: { onfileChange: "onfileChange", onfileRemove: "onfileRemove" }, providers: [
|
|
3958
3961
|
{
|
|
3959
3962
|
provide: NG_VALUE_ACCESSOR,
|
|
3960
3963
|
useExisting: forwardRef(() => FileUploadComponent),
|
|
@@ -3989,6 +3992,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
3989
3992
|
type: Input
|
|
3990
3993
|
}], onfileChange: [{
|
|
3991
3994
|
type: Output
|
|
3995
|
+
}], onfileRemove: [{
|
|
3996
|
+
type: Output
|
|
3992
3997
|
}], accept: [{
|
|
3993
3998
|
type: Input
|
|
3994
3999
|
}] } });
|