@progress/kendo-angular-inputs 21.2.0-develop.8 → 21.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.
- package/esm2022/colorpicker/color-palette.component.mjs +2 -2
- package/esm2022/colorpicker/colorpicker.component.mjs +2 -2
- package/esm2022/numerictextbox/numerictextbox.component.mjs +2 -2
- package/esm2022/otpinput/otpinput.component.mjs +2 -2
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rangeslider/rangeslider.component.mjs +2 -2
- package/esm2022/rating/rating.component.mjs +2 -2
- package/esm2022/slider/slider.component.mjs +2 -2
- package/fesm2022/progress-kendo-angular-inputs.mjs +10 -10
- package/package.json +12 -12
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
import { Component, Input, EventEmitter, Output, HostBinding, forwardRef, ChangeDetectorRef, Renderer2, ElementRef, NgZone } from '@angular/core';
|
|
7
7
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
8
|
-
import { Keys, KendoInput, guid,
|
|
8
|
+
import { Keys, KendoInput, guid, normalizeKeys } from '@progress/kendo-angular-common';
|
|
9
9
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
10
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
11
|
import { Subscription } from 'rxjs';
|
|
@@ -282,7 +282,7 @@ export class ColorPaletteComponent {
|
|
|
282
282
|
* @hidden
|
|
283
283
|
*/
|
|
284
284
|
handleKeydown(event) {
|
|
285
|
-
const code =
|
|
285
|
+
const code = normalizeKeys(event);
|
|
286
286
|
const isRTL = this.direction === 'rtl';
|
|
287
287
|
switch (code) {
|
|
288
288
|
case Keys.ArrowDown:
|
|
@@ -12,7 +12,7 @@ import { PopupService } from '@progress/kendo-angular-popup';
|
|
|
12
12
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
13
13
|
import { AdaptiveService } from '@progress/kendo-angular-utils';
|
|
14
14
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
|
-
import { Keys, KendoInput, isChanged, closest, guid, ResizeSensorComponent, isDocumentAvailable,
|
|
15
|
+
import { Keys, KendoInput, isChanged, closest, guid, ResizeSensorComponent, isDocumentAvailable, normalizeKeys } from '@progress/kendo-angular-common';
|
|
16
16
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
17
17
|
import { packageMetadata } from '../package-metadata';
|
|
18
18
|
import { PALETTEPRESETS } from './models';
|
|
@@ -665,7 +665,7 @@ export class ColorPickerComponent {
|
|
|
665
665
|
* @hidden
|
|
666
666
|
*/
|
|
667
667
|
handleWrapperKeyDown(event) {
|
|
668
|
-
const code =
|
|
668
|
+
const code = normalizeKeys(event);
|
|
669
669
|
if (code === Keys.ArrowDown || code === Keys.Enter) {
|
|
670
670
|
event.preventDefault();
|
|
671
671
|
this.ngZone.run(() => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
6
6
|
import { Component, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2, ViewChild, forwardRef, isDevMode, NgZone, ChangeDetectorRef, Injector, ContentChild } from '@angular/core';
|
|
7
|
-
import { anyChanged, hasObservers, Keys, guid, KendoInput, SuffixTemplateDirective, PrefixTemplateDirective, setHTMLAttributes, isControlRequired, isObjectPresent, removeHTMLAttributes, parseAttributes, EventsOutsideAngularDirective,
|
|
7
|
+
import { anyChanged, hasObservers, Keys, guid, KendoInput, SuffixTemplateDirective, PrefixTemplateDirective, setHTMLAttributes, isControlRequired, isObjectPresent, removeHTMLAttributes, parseAttributes, EventsOutsideAngularDirective, normalizeKeys } from '@progress/kendo-angular-common';
|
|
8
8
|
import { areSame, getStylingClasses, requiresZoneOnBlur } from '../common/utils';
|
|
9
9
|
import { invokeElementMethod } from '../common/dom-utils';
|
|
10
10
|
import { add, toFixedPrecision, limitPrecision } from '../common/math';
|
|
@@ -616,7 +616,7 @@ export class NumericTextBoxComponent {
|
|
|
616
616
|
return;
|
|
617
617
|
}
|
|
618
618
|
let step;
|
|
619
|
-
const code =
|
|
619
|
+
const code = normalizeKeys(e);
|
|
620
620
|
if (code === Keys.ArrowDown) {
|
|
621
621
|
step = -1;
|
|
622
622
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, Injector, Input, NgZone, Output, QueryList, Renderer2, ViewChildren, forwardRef } from "@angular/core";
|
|
6
6
|
import { SharedInputEventsDirective } from "../shared/shared-events.directive";
|
|
7
|
-
import { KendoInput, Keys, hasObservers, isPresent,
|
|
7
|
+
import { KendoInput, Keys, hasObservers, isPresent, normalizeKeys, replaceMessagePlaceholder } from "@progress/kendo-angular-common";
|
|
8
8
|
import { TextBoxComponent } from "../textbox/textbox.component";
|
|
9
9
|
import { NG_VALUE_ACCESSOR, NgControl } from "@angular/forms";
|
|
10
10
|
import { SIZE_MAP, areSame } from "../common/utils";
|
|
@@ -573,7 +573,7 @@ export class OTPInputComponent {
|
|
|
573
573
|
this.inputFields.get(this.focusedInput).focus();
|
|
574
574
|
}
|
|
575
575
|
handleKeydown(event) {
|
|
576
|
-
const code =
|
|
576
|
+
const code = normalizeKeys(event);
|
|
577
577
|
if (this.readonly) {
|
|
578
578
|
const isCopyCommand = (event.ctrlKey || event.metaKey) && code === Keys.KeyC;
|
|
579
579
|
if (!(code === Keys.Tab || isCopyCommand)) {
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '21.2.0
|
|
13
|
+
publishDate: 1764751440,
|
|
14
|
+
version: '21.2.0',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -10,7 +10,7 @@ import { RangeSliderModel } from './rangeslider-model';
|
|
|
10
10
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
11
|
import { eventValue, isStartHandle } from '../sliders-common/sliders-util';
|
|
12
12
|
import { invokeElementMethod } from '../common/dom-utils';
|
|
13
|
-
import { guid, isDocumentAvailable, Keys, KendoInput, anyChanged, hasObservers, EventsOutsideAngularDirective, DraggableDirective, ResizeSensorComponent,
|
|
13
|
+
import { guid, isDocumentAvailable, Keys, KendoInput, anyChanged, hasObservers, EventsOutsideAngularDirective, DraggableDirective, ResizeSensorComponent, normalizeKeys } from '@progress/kendo-angular-common';
|
|
14
14
|
import { requiresZoneOnBlur } from '../common/utils';
|
|
15
15
|
import { SliderBase } from '../sliders-common/slider-base';
|
|
16
16
|
import { SliderTicksComponent } from '../sliders-common/slider-ticks.component';
|
|
@@ -230,7 +230,7 @@ export class RangeSliderComponent extends SliderBase {
|
|
|
230
230
|
const options = this.getProps();
|
|
231
231
|
const { max, min } = options;
|
|
232
232
|
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
233
|
-
const code =
|
|
233
|
+
const code = normalizeKeys(e);
|
|
234
234
|
const handler = this.keyBinding[code];
|
|
235
235
|
if (this.isDisabled || !handler) {
|
|
236
236
|
return;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { ChangeDetectorRef, Component, ContentChild, ElementRef, EventEmitter, forwardRef, HostBinding, Input, NgZone, Output, Renderer2 } from '@angular/core';
|
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
7
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { isDocumentAvailable, KendoInput, Keys,
|
|
8
|
+
import { isDocumentAvailable, KendoInput, Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
9
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
10
10
|
import { packageMetadata } from '../package-metadata';
|
|
11
11
|
import { starIcon, starOutlineIcon } from '@progress/kendo-svg-icons';
|
|
@@ -335,7 +335,7 @@ export class RatingComponent {
|
|
|
335
335
|
this.cdr.markForCheck();
|
|
336
336
|
}
|
|
337
337
|
};
|
|
338
|
-
const code =
|
|
338
|
+
const code = normalizeKeys(event);
|
|
339
339
|
switch (code) {
|
|
340
340
|
case Keys.ArrowDown:
|
|
341
341
|
decreaseValue();
|
|
@@ -13,7 +13,7 @@ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
|
13
13
|
import { areSame, isPresent, requiresZoneOnBlur } from '../common/utils';
|
|
14
14
|
import { eventValue, decreaseValueToStep, increaseValueToStep } from '../sliders-common/sliders-util';
|
|
15
15
|
import { invokeElementMethod } from '../common/dom-utils';
|
|
16
|
-
import { guid, isDocumentAvailable, hasObservers, KendoInput, anyChanged, Keys, EventsOutsideAngularDirective, DraggableDirective, ResizeSensorComponent,
|
|
16
|
+
import { guid, isDocumentAvailable, hasObservers, KendoInput, anyChanged, Keys, EventsOutsideAngularDirective, DraggableDirective, ResizeSensorComponent, normalizeKeys } from '@progress/kendo-angular-common';
|
|
17
17
|
import { SliderBase } from '../sliders-common/slider-base';
|
|
18
18
|
import { caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon, caretAltUpIcon } from '@progress/kendo-svg-icons';
|
|
19
19
|
import { SliderTicksComponent } from '../sliders-common/slider-ticks.component';
|
|
@@ -219,7 +219,7 @@ export class SliderComponent extends SliderBase {
|
|
|
219
219
|
const options = this.getProps();
|
|
220
220
|
const { max, min } = options;
|
|
221
221
|
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
222
|
-
const code =
|
|
222
|
+
const code = normalizeKeys(e);
|
|
223
223
|
const handler = this.keyBinding[code];
|
|
224
224
|
if (this.isDisabled || !handler) {
|
|
225
225
|
return;
|
|
@@ -8,7 +8,7 @@ import { NgControl, NG_VALUE_ACCESSOR, NG_VALIDATORS, RadioControlValueAccessor
|
|
|
8
8
|
import { Subscription, fromEvent, interval, merge, BehaviorSubject, Subject } from 'rxjs';
|
|
9
9
|
import { take, tap, filter, concatMap, startWith, takeUntil, skip, debounceTime, throttleTime } from 'rxjs/operators';
|
|
10
10
|
import * as i8 from '@progress/kendo-angular-common';
|
|
11
|
-
import { isDocumentAvailable, Keys, guid, anyChanged,
|
|
11
|
+
import { isDocumentAvailable, Keys, guid, anyChanged, normalizeKeys, hasObservers, KendoInput, EventsOutsideAngularDirective, DraggableDirective, ResizeSensorComponent, isObjectPresent, removeHTMLAttributes, parseAttributes, isControlRequired, setHTMLAttributes, SuffixTemplateDirective, PrefixTemplateDirective, isChanged, isPresent as isPresent$1, isSafari, PreventableEvent, findFocusableChild, parseCSSClassNames, closest as closest$1, processCssValue, replaceMessagePlaceholder, getLicenseMessage, shouldShowValidationUI, WatermarkOverlayComponent, SeparatorComponent, ResizeBatchService, KENDO_ADORNMENTS } from '@progress/kendo-angular-common';
|
|
12
12
|
export { PrefixTemplateDirective, SeparatorComponent, SuffixTemplateDirective } from '@progress/kendo-angular-common';
|
|
13
13
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
14
14
|
import { ComponentMessages, LocalizationService, L10N_PREFIX, RTL } from '@progress/kendo-angular-l10n';
|
|
@@ -553,8 +553,8 @@ const packageMetadata = {
|
|
|
553
553
|
productName: 'Kendo UI for Angular',
|
|
554
554
|
productCode: 'KENDOUIANGULAR',
|
|
555
555
|
productCodes: ['KENDOUIANGULAR'],
|
|
556
|
-
publishDate:
|
|
557
|
-
version: '21.2.0
|
|
556
|
+
publishDate: 1764751440,
|
|
557
|
+
version: '21.2.0',
|
|
558
558
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
559
559
|
};
|
|
560
560
|
|
|
@@ -1279,7 +1279,7 @@ class SliderComponent extends SliderBase {
|
|
|
1279
1279
|
const options = this.getProps();
|
|
1280
1280
|
const { max, min } = options;
|
|
1281
1281
|
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
1282
|
-
const code =
|
|
1282
|
+
const code = normalizeKeys(e);
|
|
1283
1283
|
const handler = this.keyBinding[code];
|
|
1284
1284
|
if (this.isDisabled || !handler) {
|
|
1285
1285
|
return;
|
|
@@ -2046,7 +2046,7 @@ class RangeSliderComponent extends SliderBase {
|
|
|
2046
2046
|
const options = this.getProps();
|
|
2047
2047
|
const { max, min } = options;
|
|
2048
2048
|
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
2049
|
-
const code =
|
|
2049
|
+
const code = normalizeKeys(e);
|
|
2050
2050
|
const handler = this.keyBinding[code];
|
|
2051
2051
|
if (this.isDisabled || !handler) {
|
|
2052
2052
|
return;
|
|
@@ -4412,7 +4412,7 @@ class NumericTextBoxComponent {
|
|
|
4412
4412
|
return;
|
|
4413
4413
|
}
|
|
4414
4414
|
let step;
|
|
4415
|
-
const code =
|
|
4415
|
+
const code = normalizeKeys(e);
|
|
4416
4416
|
if (code === Keys.ArrowDown) {
|
|
4417
4417
|
step = -1;
|
|
4418
4418
|
}
|
|
@@ -11008,7 +11008,7 @@ class ColorPaletteComponent {
|
|
|
11008
11008
|
* @hidden
|
|
11009
11009
|
*/
|
|
11010
11010
|
handleKeydown(event) {
|
|
11011
|
-
const code =
|
|
11011
|
+
const code = normalizeKeys(event);
|
|
11012
11012
|
const isRTL = this.direction === 'rtl';
|
|
11013
11013
|
switch (code) {
|
|
11014
11014
|
case Keys.ArrowDown:
|
|
@@ -13615,7 +13615,7 @@ class ColorPickerComponent {
|
|
|
13615
13615
|
* @hidden
|
|
13616
13616
|
*/
|
|
13617
13617
|
handleWrapperKeyDown(event) {
|
|
13618
|
-
const code =
|
|
13618
|
+
const code = normalizeKeys(event);
|
|
13619
13619
|
if (code === Keys.ArrowDown || code === Keys.Enter) {
|
|
13620
13620
|
event.preventDefault();
|
|
13621
13621
|
this.ngZone.run(() => {
|
|
@@ -15646,7 +15646,7 @@ class RatingComponent {
|
|
|
15646
15646
|
this.cdr.markForCheck();
|
|
15647
15647
|
}
|
|
15648
15648
|
};
|
|
15649
|
-
const code =
|
|
15649
|
+
const code = normalizeKeys(event);
|
|
15650
15650
|
switch (code) {
|
|
15651
15651
|
case Keys.ArrowDown:
|
|
15652
15652
|
decreaseValue();
|
|
@@ -18983,7 +18983,7 @@ class OTPInputComponent {
|
|
|
18983
18983
|
this.inputFields.get(this.focusedInput).focus();
|
|
18984
18984
|
}
|
|
18985
18985
|
handleKeydown(event) {
|
|
18986
|
-
const code =
|
|
18986
|
+
const code = normalizeKeys(event);
|
|
18987
18987
|
if (this.readonly) {
|
|
18988
18988
|
const isCopyCommand = (event.ctrlKey || event.metaKey) && code === Keys.KeyC;
|
|
18989
18989
|
if (!(code === Keys.Tab || isCopyCommand)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-inputs",
|
|
3
|
-
"version": "21.2.0
|
|
3
|
+
"version": "21.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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"package": {
|
|
29
29
|
"productName": "Kendo UI for Angular",
|
|
30
30
|
"productCode": "KENDOUIANGULAR",
|
|
31
|
-
"publishDate":
|
|
31
|
+
"publishDate": 1764751440,
|
|
32
32
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
"@angular/platform-browser": "18 - 21",
|
|
41
41
|
"@progress/kendo-drawing": "^1.21.0",
|
|
42
42
|
"@progress/kendo-licensing": "^1.7.0",
|
|
43
|
-
"@progress/kendo-angular-buttons": "21.2.0
|
|
44
|
-
"@progress/kendo-angular-common": "21.2.0
|
|
45
|
-
"@progress/kendo-angular-utils": "21.2.0
|
|
46
|
-
"@progress/kendo-angular-navigation": "21.2.0
|
|
47
|
-
"@progress/kendo-angular-dialog": "21.2.0
|
|
48
|
-
"@progress/kendo-angular-intl": "21.2.0
|
|
49
|
-
"@progress/kendo-angular-l10n": "21.2.0
|
|
50
|
-
"@progress/kendo-angular-popup": "21.2.0
|
|
51
|
-
"@progress/kendo-angular-icons": "21.2.0
|
|
43
|
+
"@progress/kendo-angular-buttons": "21.2.0",
|
|
44
|
+
"@progress/kendo-angular-common": "21.2.0",
|
|
45
|
+
"@progress/kendo-angular-utils": "21.2.0",
|
|
46
|
+
"@progress/kendo-angular-navigation": "21.2.0",
|
|
47
|
+
"@progress/kendo-angular-dialog": "21.2.0",
|
|
48
|
+
"@progress/kendo-angular-intl": "21.2.0",
|
|
49
|
+
"@progress/kendo-angular-l10n": "21.2.0",
|
|
50
|
+
"@progress/kendo-angular-popup": "21.2.0",
|
|
51
|
+
"@progress/kendo-angular-icons": "21.2.0",
|
|
52
52
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
|
-
"@progress/kendo-angular-schematics": "21.2.0
|
|
56
|
+
"@progress/kendo-angular-schematics": "21.2.0",
|
|
57
57
|
"@progress/kendo-common": "^1.0.1",
|
|
58
58
|
"@progress/kendo-draggable": "^3.0.0",
|
|
59
59
|
"@progress/kendo-inputs-common": "^3.1.0"
|