@progress/kendo-angular-inputs 24.2.0-develop.9 → 24.2.1-develop.1
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.
|
@@ -583,8 +583,8 @@ const packageMetadata = {
|
|
|
583
583
|
productName: 'Kendo UI for Angular',
|
|
584
584
|
productCode: 'KENDOUIANGULAR',
|
|
585
585
|
productCodes: ['KENDOUIANGULAR'],
|
|
586
|
-
publishDate:
|
|
587
|
-
version: '24.2.
|
|
586
|
+
publishDate: 1782832518,
|
|
587
|
+
version: '24.2.1-develop.1',
|
|
588
588
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
589
589
|
};
|
|
590
590
|
|
|
@@ -3717,7 +3717,7 @@ class SharedInputEventsDirective {
|
|
|
3717
3717
|
tabbing = false;
|
|
3718
3718
|
}
|
|
3719
3719
|
else {
|
|
3720
|
-
if (!cursorInsideWrapper && !this
|
|
3720
|
+
if (!cursorInsideWrapper && !this.clearButtonClicked) {
|
|
3721
3721
|
this.ngZone.run(() => {
|
|
3722
3722
|
this.isFocused = false;
|
|
3723
3723
|
this.isFocusedChange.emit(this.isFocused);
|
|
@@ -5850,6 +5850,7 @@ class MaskedTextBoxComponent {
|
|
|
5850
5850
|
_fillMode = undefined;
|
|
5851
5851
|
_inputAttributes;
|
|
5852
5852
|
parsedAttributes = {};
|
|
5853
|
+
pendingValueUpdate = false;
|
|
5853
5854
|
constructor(service, renderer, hostElement, ngZone, injector, changeDetector, rtl) {
|
|
5854
5855
|
this.service = service;
|
|
5855
5856
|
this.renderer = renderer;
|
|
@@ -5941,22 +5942,23 @@ class MaskedTextBoxComponent {
|
|
|
5941
5942
|
this.onBlur.emit();
|
|
5942
5943
|
});
|
|
5943
5944
|
}
|
|
5944
|
-
this.ngZone.run(() => {
|
|
5945
|
-
if (this.control && !this.control.touched) {
|
|
5946
|
-
this.onTouched();
|
|
5947
|
-
}
|
|
5948
|
-
});
|
|
5949
5945
|
};
|
|
5950
5946
|
/**
|
|
5951
5947
|
* @hidden
|
|
5952
5948
|
*/
|
|
5953
5949
|
handleInputBlur = () => {
|
|
5954
5950
|
this.changeDetector.markForCheck();
|
|
5955
|
-
|
|
5951
|
+
const requiresZone = requiresZoneOnBlur(this.control);
|
|
5952
|
+
if (hasObservers(this.inputBlur) || requiresZone) {
|
|
5956
5953
|
this.ngZone.run(() => {
|
|
5957
5954
|
this.inputBlur.emit();
|
|
5958
5955
|
});
|
|
5959
5956
|
}
|
|
5957
|
+
if (requiresZone) {
|
|
5958
|
+
this.ngZone.run(() => {
|
|
5959
|
+
this.onTouched();
|
|
5960
|
+
});
|
|
5961
|
+
}
|
|
5960
5962
|
};
|
|
5961
5963
|
/**
|
|
5962
5964
|
* @hidden
|
|
@@ -6029,8 +6031,14 @@ class MaskedTextBoxComponent {
|
|
|
6029
6031
|
else {
|
|
6030
6032
|
result = this.service.maskInput(value, this.maskedValue || '', e.target.selectionStart);
|
|
6031
6033
|
}
|
|
6034
|
+
const maskedValueChanged = result.value !== this.maskedValue;
|
|
6032
6035
|
this.updateInput(result.value, result.selection);
|
|
6033
|
-
|
|
6036
|
+
if (maskedValueChanged) {
|
|
6037
|
+
this.updateValueWithEvents(result.value);
|
|
6038
|
+
}
|
|
6039
|
+
else {
|
|
6040
|
+
this.updateValue(result.value, true);
|
|
6041
|
+
}
|
|
6034
6042
|
}
|
|
6035
6043
|
/**
|
|
6036
6044
|
* @hidden
|
|
@@ -6048,7 +6056,12 @@ class MaskedTextBoxComponent {
|
|
|
6048
6056
|
const maskedValue = this.service.maskRaw(this.value);
|
|
6049
6057
|
this.updateInput(maskedValue, null, true);
|
|
6050
6058
|
if (changes['includeLiterals'] || isChanged('promptPlaceholder', changes)) {
|
|
6059
|
+
this.pendingValueUpdate = true;
|
|
6051
6060
|
resolvedPromise.then(() => {
|
|
6061
|
+
if (!this.pendingValueUpdate) {
|
|
6062
|
+
return;
|
|
6063
|
+
}
|
|
6064
|
+
this.pendingValueUpdate = false;
|
|
6052
6065
|
this.updateValueWithEvents(this.maskedValue, false);
|
|
6053
6066
|
});
|
|
6054
6067
|
}
|
|
@@ -6059,10 +6072,8 @@ class MaskedTextBoxComponent {
|
|
|
6059
6072
|
*/
|
|
6060
6073
|
writeValue(value) {
|
|
6061
6074
|
this.value = this.normalizeValue(value);
|
|
6075
|
+
this.pendingValueUpdate = false;
|
|
6062
6076
|
this.updateInput(this.service.maskRaw(this.value));
|
|
6063
|
-
if (this.includeLiterals) {
|
|
6064
|
-
this.updateValue(this.maskedValue, false);
|
|
6065
|
-
}
|
|
6066
6077
|
this.changeDetector.markForCheck();
|
|
6067
6078
|
}
|
|
6068
6079
|
/**
|
|
@@ -197,6 +197,7 @@ export declare class MaskedTextBoxComponent implements ControlValueAccessor, OnC
|
|
|
197
197
|
private _fillMode;
|
|
198
198
|
private _inputAttributes;
|
|
199
199
|
private parsedAttributes;
|
|
200
|
+
private pendingValueUpdate;
|
|
200
201
|
constructor(service: MaskingService, renderer: Renderer2, hostElement: ElementRef, ngZone: NgZone, injector: Injector, changeDetector: ChangeDetectorRef, rtl: boolean);
|
|
201
202
|
ngOnInit(): void;
|
|
202
203
|
ngAfterViewInit(): void;
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.2.
|
|
10
|
+
"publishDate": 1782832518,
|
|
11
|
+
"version": "24.2.1-develop.1",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-inputs",
|
|
3
|
-
"version": "24.2.
|
|
3
|
+
"version": "24.2.1-develop.1",
|
|
4
4
|
"description": "Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, TextArea, and TextBox Components)",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"package": {
|
|
56
56
|
"productName": "Kendo UI for Angular",
|
|
57
57
|
"productCode": "KENDOUIANGULAR",
|
|
58
|
-
"publishDate":
|
|
58
|
+
"publishDate": 1782832518,
|
|
59
59
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
@@ -67,20 +67,20 @@
|
|
|
67
67
|
"@angular/platform-browser": "19 - 22",
|
|
68
68
|
"@progress/kendo-drawing": "^1.25.0",
|
|
69
69
|
"@progress/kendo-licensing": "^1.11.0",
|
|
70
|
-
"@progress/kendo-angular-buttons": "24.2.
|
|
71
|
-
"@progress/kendo-angular-common": "24.2.
|
|
72
|
-
"@progress/kendo-angular-utils": "24.2.
|
|
73
|
-
"@progress/kendo-angular-navigation": "24.2.
|
|
74
|
-
"@progress/kendo-angular-dialog": "24.2.
|
|
75
|
-
"@progress/kendo-angular-intl": "24.2.
|
|
76
|
-
"@progress/kendo-angular-l10n": "24.2.
|
|
77
|
-
"@progress/kendo-angular-popup": "24.2.
|
|
78
|
-
"@progress/kendo-angular-icons": "24.2.
|
|
70
|
+
"@progress/kendo-angular-buttons": "24.2.1-develop.1",
|
|
71
|
+
"@progress/kendo-angular-common": "24.2.1-develop.1",
|
|
72
|
+
"@progress/kendo-angular-utils": "24.2.1-develop.1",
|
|
73
|
+
"@progress/kendo-angular-navigation": "24.2.1-develop.1",
|
|
74
|
+
"@progress/kendo-angular-dialog": "24.2.1-develop.1",
|
|
75
|
+
"@progress/kendo-angular-intl": "24.2.1-develop.1",
|
|
76
|
+
"@progress/kendo-angular-l10n": "24.2.1-develop.1",
|
|
77
|
+
"@progress/kendo-angular-popup": "24.2.1-develop.1",
|
|
78
|
+
"@progress/kendo-angular-icons": "24.2.1-develop.1",
|
|
79
79
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"tslib": "^2.3.1",
|
|
83
|
-
"@progress/kendo-angular-schematics": "24.2.
|
|
83
|
+
"@progress/kendo-angular-schematics": "24.2.1-develop.1",
|
|
84
84
|
"@progress/kendo-common": "^1.0.1",
|
|
85
85
|
"@progress/kendo-draggable": "^3.0.0",
|
|
86
86
|
"@progress/kendo-inputs-common": "^3.1.0"
|