@progress/kendo-angular-inputs 24.2.0-develop.8 → 24.2.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.
|
@@ -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.0
|
|
586
|
+
publishDate: 1782828884,
|
|
587
|
+
version: '24.2.0',
|
|
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);
|
|
@@ -5315,9 +5315,8 @@ const mask = ({ prompt, promptPlaceholder }) => rule => new Parser(stream => {
|
|
|
5315
5315
|
* @hidden
|
|
5316
5316
|
*/
|
|
5317
5317
|
const literal = _token => new Parser(stream => {
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
if (char === _token) {
|
|
5318
|
+
const { char, control } = stream.peek();
|
|
5319
|
+
if (char === _token && control === _token) {
|
|
5321
5320
|
stream.eat();
|
|
5322
5321
|
return new Result(_token, stream, ResultType.Literal);
|
|
5323
5322
|
}
|
|
@@ -5851,6 +5850,7 @@ class MaskedTextBoxComponent {
|
|
|
5851
5850
|
_fillMode = undefined;
|
|
5852
5851
|
_inputAttributes;
|
|
5853
5852
|
parsedAttributes = {};
|
|
5853
|
+
pendingValueUpdate = false;
|
|
5854
5854
|
constructor(service, renderer, hostElement, ngZone, injector, changeDetector, rtl) {
|
|
5855
5855
|
this.service = service;
|
|
5856
5856
|
this.renderer = renderer;
|
|
@@ -6030,8 +6030,14 @@ class MaskedTextBoxComponent {
|
|
|
6030
6030
|
else {
|
|
6031
6031
|
result = this.service.maskInput(value, this.maskedValue || '', e.target.selectionStart);
|
|
6032
6032
|
}
|
|
6033
|
+
const maskedValueChanged = result.value !== this.maskedValue;
|
|
6033
6034
|
this.updateInput(result.value, result.selection);
|
|
6034
|
-
|
|
6035
|
+
if (maskedValueChanged) {
|
|
6036
|
+
this.updateValueWithEvents(result.value);
|
|
6037
|
+
}
|
|
6038
|
+
else {
|
|
6039
|
+
this.updateValue(result.value, true);
|
|
6040
|
+
}
|
|
6035
6041
|
}
|
|
6036
6042
|
/**
|
|
6037
6043
|
* @hidden
|
|
@@ -6049,7 +6055,12 @@ class MaskedTextBoxComponent {
|
|
|
6049
6055
|
const maskedValue = this.service.maskRaw(this.value);
|
|
6050
6056
|
this.updateInput(maskedValue, null, true);
|
|
6051
6057
|
if (changes['includeLiterals'] || isChanged('promptPlaceholder', changes)) {
|
|
6058
|
+
this.pendingValueUpdate = true;
|
|
6052
6059
|
resolvedPromise.then(() => {
|
|
6060
|
+
if (!this.pendingValueUpdate) {
|
|
6061
|
+
return;
|
|
6062
|
+
}
|
|
6063
|
+
this.pendingValueUpdate = false;
|
|
6053
6064
|
this.updateValueWithEvents(this.maskedValue, false);
|
|
6054
6065
|
});
|
|
6055
6066
|
}
|
|
@@ -6060,10 +6071,8 @@ class MaskedTextBoxComponent {
|
|
|
6060
6071
|
*/
|
|
6061
6072
|
writeValue(value) {
|
|
6062
6073
|
this.value = this.normalizeValue(value);
|
|
6074
|
+
this.pendingValueUpdate = false;
|
|
6063
6075
|
this.updateInput(this.service.maskRaw(this.value));
|
|
6064
|
-
if (this.includeLiterals) {
|
|
6065
|
-
this.updateValue(this.maskedValue, false);
|
|
6066
|
-
}
|
|
6067
6076
|
this.changeDetector.markForCheck();
|
|
6068
6077
|
}
|
|
6069
6078
|
/**
|
|
@@ -12095,11 +12104,11 @@ class FlatColorPickerComponent {
|
|
|
12095
12104
|
}
|
|
12096
12105
|
event.stopImmediatePropagation();
|
|
12097
12106
|
const gradient = this.gradientElement?.nativeElement;
|
|
12098
|
-
const palette = this.palette?.host
|
|
12099
|
-
if (this.activeView === 'gradient') {
|
|
12107
|
+
const palette = this.palette?.host?.nativeElement;
|
|
12108
|
+
if (this.activeView === 'gradient' && gradient) {
|
|
12100
12109
|
gradient.focus();
|
|
12101
12110
|
}
|
|
12102
|
-
else {
|
|
12111
|
+
else if (palette) {
|
|
12103
12112
|
palette.focus();
|
|
12104
12113
|
}
|
|
12105
12114
|
}
|
|
@@ -13698,7 +13707,9 @@ class ColorPickerComponent {
|
|
|
13698
13707
|
const gradientDragHandle = this.flatColorPicker.gradient?.gradientDragHandle;
|
|
13699
13708
|
const palette = this.flatColorPicker.palette?.host;
|
|
13700
13709
|
const elementToFocus = gradientDragHandle ? gradientDragHandle : palette;
|
|
13701
|
-
elementToFocus
|
|
13710
|
+
if (elementToFocus) {
|
|
13711
|
+
elementToFocus.nativeElement.focus({ preventScroll: true });
|
|
13712
|
+
}
|
|
13702
13713
|
}
|
|
13703
13714
|
});
|
|
13704
13715
|
}
|
|
@@ -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.0
|
|
10
|
+
"publishDate": 1782828884,
|
|
11
|
+
"version": "24.2.0",
|
|
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.0
|
|
3
|
+
"version": "24.2.0",
|
|
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": 1782828884,
|
|
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.0
|
|
71
|
-
"@progress/kendo-angular-common": "24.2.0
|
|
72
|
-
"@progress/kendo-angular-utils": "24.2.0
|
|
73
|
-
"@progress/kendo-angular-navigation": "24.2.0
|
|
74
|
-
"@progress/kendo-angular-dialog": "24.2.0
|
|
75
|
-
"@progress/kendo-angular-intl": "24.2.0
|
|
76
|
-
"@progress/kendo-angular-l10n": "24.2.0
|
|
77
|
-
"@progress/kendo-angular-popup": "24.2.0
|
|
78
|
-
"@progress/kendo-angular-icons": "24.2.0
|
|
70
|
+
"@progress/kendo-angular-buttons": "24.2.0",
|
|
71
|
+
"@progress/kendo-angular-common": "24.2.0",
|
|
72
|
+
"@progress/kendo-angular-utils": "24.2.0",
|
|
73
|
+
"@progress/kendo-angular-navigation": "24.2.0",
|
|
74
|
+
"@progress/kendo-angular-dialog": "24.2.0",
|
|
75
|
+
"@progress/kendo-angular-intl": "24.2.0",
|
|
76
|
+
"@progress/kendo-angular-l10n": "24.2.0",
|
|
77
|
+
"@progress/kendo-angular-popup": "24.2.0",
|
|
78
|
+
"@progress/kendo-angular-icons": "24.2.0",
|
|
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.0
|
|
83
|
+
"@progress/kendo-angular-schematics": "24.2.0",
|
|
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"
|