@clr/angular 17.12.3 → 17.13.0
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/forms/file-input/file-input-container.mjs +2 -2
- package/esm2020/forms/file-input/file-input-value-accessor.mjs +4 -1
- package/esm2020/forms/file-input/file-input.mjs +4 -10
- package/fesm2015/clr-angular.mjs +6 -9
- package/fesm2015/clr-angular.mjs.map +1 -1
- package/fesm2020/clr-angular.mjs +6 -9
- package/fesm2020/clr-angular.mjs.map +1 -1
- package/forms/file-input/file-input-value-accessor.d.ts +1 -0
- package/forms/file-input/file-input.d.ts +0 -1
- package/package.json +2 -2
package/fesm2020/clr-angular.mjs
CHANGED
|
@@ -15668,7 +15668,7 @@ class ClrFileInputContainer extends ClrAbstractContainer {
|
|
|
15668
15668
|
return this.fileInput.elementRef.nativeElement.multiple;
|
|
15669
15669
|
}
|
|
15670
15670
|
get disabled() {
|
|
15671
|
-
return this.
|
|
15671
|
+
return this.control ? this.control.disabled : this.fileInput.elementRef.nativeElement.disabled;
|
|
15672
15672
|
}
|
|
15673
15673
|
get browseButtonText() {
|
|
15674
15674
|
const selectionButtonLabel = this.fileList ? undefined : this.fileInput?.selection?.buttonLabel;
|
|
@@ -15894,9 +15894,6 @@ class ClrFileInput extends WrappedFormControl {
|
|
|
15894
15894
|
this.commonStrings = commonStrings;
|
|
15895
15895
|
this.selection = undefined;
|
|
15896
15896
|
}
|
|
15897
|
-
get disabled() {
|
|
15898
|
-
return this.elementRef.nativeElement.disabled || (this.control && this.control.disabled);
|
|
15899
|
-
}
|
|
15900
15897
|
handleChange() {
|
|
15901
15898
|
this.updateSelection();
|
|
15902
15899
|
}
|
|
@@ -15928,7 +15925,7 @@ class ClrFileInput extends WrappedFormControl {
|
|
|
15928
15925
|
}
|
|
15929
15926
|
}
|
|
15930
15927
|
ClrFileInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ClrFileInput, deps: [{ token: i0.Injector }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }, { token: i1.NgControl, optional: true, self: true }, { token: ClrCommonStringsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
15931
|
-
ClrFileInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ClrFileInput, selector: "input[type=\"file\"][clrFileInput]", host: { attributes: { "tabindex": "-1", "aria-hidden": "true" }, listeners: { "change": "handleChange()" }, properties: { "class.clr-file-input": "true"
|
|
15928
|
+
ClrFileInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ClrFileInput, selector: "input[type=\"file\"][clrFileInput]", host: { attributes: { "tabindex": "-1", "aria-hidden": "true" }, listeners: { "change": "handleChange()" }, properties: { "class.clr-file-input": "true" } }, usesInheritance: true, ngImport: i0 });
|
|
15932
15929
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ClrFileInput, decorators: [{
|
|
15933
15930
|
type: Directive,
|
|
15934
15931
|
args: [{
|
|
@@ -15943,10 +15940,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
15943
15940
|
type: Self
|
|
15944
15941
|
}, {
|
|
15945
15942
|
type: Optional
|
|
15946
|
-
}] }, { type: ClrCommonStringsService }]; }, propDecorators: {
|
|
15947
|
-
type: HostBinding,
|
|
15948
|
-
args: ['disabled']
|
|
15949
|
-
}], handleChange: [{
|
|
15943
|
+
}] }, { type: ClrCommonStringsService }]; }, propDecorators: { handleChange: [{
|
|
15950
15944
|
type: HostListener,
|
|
15951
15945
|
args: ['change']
|
|
15952
15946
|
}] } });
|
|
@@ -16087,6 +16081,9 @@ class ClrFileInputValueAccessor {
|
|
|
16087
16081
|
registerOnTouched(fn) {
|
|
16088
16082
|
this.onTouched = fn;
|
|
16089
16083
|
}
|
|
16084
|
+
setDisabledState(isDisabled) {
|
|
16085
|
+
this.elementRef.nativeElement.disabled = isDisabled;
|
|
16086
|
+
}
|
|
16090
16087
|
handleChange() {
|
|
16091
16088
|
this.onTouched();
|
|
16092
16089
|
this.onChange(this.elementRef.nativeElement.files);
|