@progress/kendo-angular-buttons 21.2.0-develop.1 → 21.2.0-develop.11
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/buttongroup/buttongroup.component.mjs +2 -2
- package/esm2022/chip/chip-list.component.mjs +2 -2
- package/esm2022/chip/chip.component.mjs +2 -2
- package/esm2022/dropdownbutton/dropdownbutton.component.mjs +2 -2
- package/esm2022/floatingactionbutton/floatingactionbutton.component.mjs +2 -2
- package/esm2022/listbutton/list-button.mjs +2 -2
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-buttons.mjs +9 -9
- package/package.json +7 -7
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { ButtonComponent } from '../button/button.component';
|
|
6
6
|
import { Component, EventEmitter, Output, Input, ContentChildren, QueryList, HostBinding, isDevMode, ElementRef, Renderer2 } from '@angular/core';
|
|
7
7
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { isChanged, Keys,
|
|
8
|
+
import { isChanged, Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
9
9
|
import { KendoButtonService } from '../button/button.service';
|
|
10
10
|
import { fromEvent, Subscription } from 'rxjs';
|
|
11
11
|
import { filter } from 'rxjs/operators';
|
|
@@ -193,7 +193,7 @@ export class ButtonGroupComponent {
|
|
|
193
193
|
const firstIndex = 0;
|
|
194
194
|
const lastIndex = navigationButtons.length - 1;
|
|
195
195
|
const eventArgs = new PreventableEvent();
|
|
196
|
-
const code =
|
|
196
|
+
const code = normalizeKeys(event);
|
|
197
197
|
if (code === Keys.ArrowRight && focusedIndex < lastIndex) {
|
|
198
198
|
this.navigate.emit(eventArgs);
|
|
199
199
|
if (!eventArgs.isDefaultPrevented()) {
|
|
@@ -9,7 +9,7 @@ import { ChipComponent } from './chip.component';
|
|
|
9
9
|
import { closest, getStylingClasses } from '../util';
|
|
10
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
11
|
import { packageMetadata } from '../package-metadata';
|
|
12
|
-
import { isDocumentAvailable, Keys,
|
|
12
|
+
import { isDocumentAvailable, Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
15
15
|
/**
|
|
@@ -194,7 +194,7 @@ export class ChipListComponent {
|
|
|
194
194
|
}
|
|
195
195
|
keyDownHandler(e) {
|
|
196
196
|
// on some keyboards, arrow keys, page up/down, home/end, Enter are mapped to numpad keys
|
|
197
|
-
const code =
|
|
197
|
+
const code = normalizeKeys(e);
|
|
198
198
|
const isEnterOrSpace = code === Keys.Enter || code === Keys.Space;
|
|
199
199
|
const isDeleteOrBackspace = code === Keys.Delete || code === Keys.Backspace;
|
|
200
200
|
const isLeftArrow = code === Keys.ArrowLeft;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, HostBinding, Input, Output, EventEmitter, ElementRef, Renderer2, NgZone, isDevMode } from '@angular/core';
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
|
-
import { isDocumentAvailable, Keys,
|
|
7
|
+
import { isDocumentAvailable, Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
8
8
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
10
10
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -347,7 +347,7 @@ export class ChipComponent {
|
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
keyDownHandler(e) {
|
|
350
|
-
const code =
|
|
350
|
+
const code = normalizeKeys(e);
|
|
351
351
|
const isEnterOrSpace = code === Keys.Enter || code === Keys.Space;
|
|
352
352
|
const isDeleteOrBackspace = code === Keys.Delete || code === Keys.Backspace;
|
|
353
353
|
if (this.disabled) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Component, ContentChild, ElementRef, EventEmitter, HostBinding, HostListener, Input, Output, NgZone, ChangeDetectorRef, Renderer2 } from '@angular/core';
|
|
6
6
|
import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
8
|
-
import { isDocumentAvailable, Keys, isPresent,
|
|
8
|
+
import { isDocumentAvailable, Keys, isPresent, normalizeKeys } from '@progress/kendo-angular-common';
|
|
9
9
|
import { ButtonItemTemplateDirective } from '../listbutton/button-item-template.directive';
|
|
10
10
|
import { closest } from '../util';
|
|
11
11
|
import { ListButton } from '../listbutton/list-button';
|
|
@@ -165,7 +165,7 @@ export class DropDownButtonComponent extends ListButton {
|
|
|
165
165
|
*/
|
|
166
166
|
keydown(event) {
|
|
167
167
|
this.keyDownHandler(event, true);
|
|
168
|
-
const code =
|
|
168
|
+
const code = normalizeKeys(event);
|
|
169
169
|
if (code === Keys.Space) {
|
|
170
170
|
this._active = true;
|
|
171
171
|
}
|
|
@@ -9,7 +9,7 @@ import { take } from 'rxjs/operators';
|
|
|
9
9
|
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
10
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
11
11
|
import { packageMetadata } from '../package-metadata';
|
|
12
|
-
import { guid, isDocumentAvailable,
|
|
12
|
+
import { guid, isDocumentAvailable, normalizeKeys } from '@progress/kendo-angular-common';
|
|
13
13
|
import { PopupService } from '@progress/kendo-angular-popup';
|
|
14
14
|
import { FocusService } from '../focusable/focus.service';
|
|
15
15
|
import { NavigationAction } from '../navigation/navigation-action';
|
|
@@ -389,7 +389,7 @@ export class FloatingActionButtonComponent {
|
|
|
389
389
|
return;
|
|
390
390
|
}
|
|
391
391
|
const focused = this.focusService.focused || 0;
|
|
392
|
-
const code =
|
|
392
|
+
const code = normalizeKeys(event);
|
|
393
393
|
const action = this.navigationService.process({
|
|
394
394
|
altKey: event.altKey,
|
|
395
395
|
current: focused,
|
|
@@ -9,7 +9,7 @@ import { FocusService } from './../focusable/focus.service';
|
|
|
9
9
|
import { KeyEvents } from './../navigation/key-events';
|
|
10
10
|
import { NavigationService } from './../navigation/navigation.service';
|
|
11
11
|
import { NavigationAction } from './../navigation/navigation-action';
|
|
12
|
-
import { isDocumentAvailable, guid, Keys, isChanged, hasObservers,
|
|
12
|
+
import { isDocumentAvailable, guid, Keys, isChanged, hasObservers, normalizeKeys } from '@progress/kendo-angular-common';
|
|
13
13
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
14
14
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
15
15
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -283,7 +283,7 @@ export class ListButton extends MultiTabStop {
|
|
|
283
283
|
eventData.stopImmediatePropagation();
|
|
284
284
|
}
|
|
285
285
|
const focused = this.focusService.focused || 0;
|
|
286
|
-
const code =
|
|
286
|
+
const code = normalizeKeys(eventData);
|
|
287
287
|
const action = this.navigationService.process({
|
|
288
288
|
altKey: eventData.altKey,
|
|
289
289
|
current: focused,
|
|
@@ -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-develop.
|
|
13
|
+
publishDate: 1764684836,
|
|
14
|
+
version: '21.2.0-develop.11',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -6,7 +6,7 @@ import * as i0 from '@angular/core';
|
|
|
6
6
|
import { Injectable, isDevMode, EventEmitter, Component, Optional, Input, Output, HostBinding, HostListener, ContentChildren, Directive, InjectionToken, Inject, ElementRef, ViewContainerRef, ViewChild, ContentChild, forwardRef, NgModule } from '@angular/core';
|
|
7
7
|
import { Subject, Subscription, fromEvent, merge, of, Observable, from } from 'rxjs';
|
|
8
8
|
import * as i12 from '@progress/kendo-angular-common';
|
|
9
|
-
import { isDocumentAvailable, isFirefox, isSafari, isChanged, hasObservers,
|
|
9
|
+
import { isDocumentAvailable, isFirefox, isSafari, isChanged, hasObservers, normalizeKeys, Keys, TemplateContextDirective, MultiTabStop, guid, isPresent as isPresent$1, EventsOutsideAngularDirective, replaceMessagePlaceholder, anyChanged, ToggleButtonTabStopDirective, ResizeBatchService, KENDO_TOGGLEBUTTONTABSTOP } from '@progress/kendo-angular-common';
|
|
10
10
|
export { ToggleButtonTabStopDirective } from '@progress/kendo-angular-common';
|
|
11
11
|
import { caretAltDownIcon, xCircleIcon, moreVerticalIcon, microphoneOutlineIcon, stopSmIcon } from '@progress/kendo-svg-icons';
|
|
12
12
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
@@ -45,8 +45,8 @@ const packageMetadata = {
|
|
|
45
45
|
productName: 'Kendo UI for Angular',
|
|
46
46
|
productCode: 'KENDOUIANGULAR',
|
|
47
47
|
productCodes: ['KENDOUIANGULAR'],
|
|
48
|
-
publishDate:
|
|
49
|
-
version: '21.2.0-develop.
|
|
48
|
+
publishDate: 1764684836,
|
|
49
|
+
version: '21.2.0-develop.11',
|
|
50
50
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -895,7 +895,7 @@ class ButtonGroupComponent {
|
|
|
895
895
|
const firstIndex = 0;
|
|
896
896
|
const lastIndex = navigationButtons.length - 1;
|
|
897
897
|
const eventArgs = new PreventableEvent();
|
|
898
|
-
const code =
|
|
898
|
+
const code = normalizeKeys(event);
|
|
899
899
|
if (code === Keys.ArrowRight && focusedIndex < lastIndex) {
|
|
900
900
|
this.navigate.emit(eventArgs);
|
|
901
901
|
if (!eventArgs.isDefaultPrevented()) {
|
|
@@ -1374,7 +1374,7 @@ class ChipComponent {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
1376
|
keyDownHandler(e) {
|
|
1377
|
-
const code =
|
|
1377
|
+
const code = normalizeKeys(e);
|
|
1378
1378
|
const isEnterOrSpace = code === Keys.Enter || code === Keys.Space;
|
|
1379
1379
|
const isDeleteOrBackspace = code === Keys.Delete || code === Keys.Backspace;
|
|
1380
1380
|
if (this.disabled) {
|
|
@@ -1793,7 +1793,7 @@ class ChipListComponent {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
keyDownHandler(e) {
|
|
1795
1795
|
// on some keyboards, arrow keys, page up/down, home/end, Enter are mapped to numpad keys
|
|
1796
|
-
const code =
|
|
1796
|
+
const code = normalizeKeys(e);
|
|
1797
1797
|
const isEnterOrSpace = code === Keys.Enter || code === Keys.Space;
|
|
1798
1798
|
const isDeleteOrBackspace = code === Keys.Delete || code === Keys.Backspace;
|
|
1799
1799
|
const isLeftArrow = code === Keys.ArrowLeft;
|
|
@@ -2659,7 +2659,7 @@ class ListButton extends MultiTabStop {
|
|
|
2659
2659
|
eventData.stopImmediatePropagation();
|
|
2660
2660
|
}
|
|
2661
2661
|
const focused = this.focusService.focused || 0;
|
|
2662
|
-
const code =
|
|
2662
|
+
const code = normalizeKeys(eventData);
|
|
2663
2663
|
const action = this.navigationService.process({
|
|
2664
2664
|
altKey: eventData.altKey,
|
|
2665
2665
|
current: focused,
|
|
@@ -2975,7 +2975,7 @@ class DropDownButtonComponent extends ListButton {
|
|
|
2975
2975
|
*/
|
|
2976
2976
|
keydown(event) {
|
|
2977
2977
|
this.keyDownHandler(event, true);
|
|
2978
|
-
const code =
|
|
2978
|
+
const code = normalizeKeys(event);
|
|
2979
2979
|
if (code === Keys.Space) {
|
|
2980
2980
|
this._active = true;
|
|
2981
2981
|
}
|
|
@@ -4017,7 +4017,7 @@ class FloatingActionButtonComponent {
|
|
|
4017
4017
|
return;
|
|
4018
4018
|
}
|
|
4019
4019
|
const focused = this.focusService.focused || 0;
|
|
4020
|
-
const code =
|
|
4020
|
+
const code = normalizeKeys(event);
|
|
4021
4021
|
const action = this.navigationService.process({
|
|
4022
4022
|
altKey: event.altKey,
|
|
4023
4023
|
current: focused,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-buttons",
|
|
3
|
-
"version": "21.2.0-develop.
|
|
3
|
+
"version": "21.2.0-develop.11",
|
|
4
4
|
"description": "Buttons Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"package": {
|
|
22
22
|
"productName": "Kendo UI for Angular",
|
|
23
23
|
"productCode": "KENDOUIANGULAR",
|
|
24
|
-
"publishDate":
|
|
24
|
+
"publishDate": 1764684836,
|
|
25
25
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"@angular/core": "18 - 21",
|
|
32
32
|
"@angular/platform-browser": "18 - 21",
|
|
33
33
|
"@progress/kendo-licensing": "^1.7.0",
|
|
34
|
-
"@progress/kendo-angular-common": "21.2.0-develop.
|
|
35
|
-
"@progress/kendo-angular-l10n": "21.2.0-develop.
|
|
36
|
-
"@progress/kendo-angular-popup": "21.2.0-develop.
|
|
37
|
-
"@progress/kendo-angular-icons": "21.2.0-develop.
|
|
34
|
+
"@progress/kendo-angular-common": "21.2.0-develop.11",
|
|
35
|
+
"@progress/kendo-angular-l10n": "21.2.0-develop.11",
|
|
36
|
+
"@progress/kendo-angular-popup": "21.2.0-develop.11",
|
|
37
|
+
"@progress/kendo-angular-icons": "21.2.0-develop.11",
|
|
38
38
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"tslib": "^2.3.1",
|
|
42
|
-
"@progress/kendo-angular-schematics": "21.2.0-develop.
|
|
42
|
+
"@progress/kendo-angular-schematics": "21.2.0-develop.11",
|
|
43
43
|
"@progress/kendo-common": "^1.0.1",
|
|
44
44
|
"@progress/kendo-webspeech-common": "1.0.1"
|
|
45
45
|
},
|