@progress/kendo-angular-treeview 19.3.0-develop.9 → 19.3.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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Injectable } from '@angular/core';
|
|
6
|
-
import { Keys } from '@progress/kendo-angular-common';
|
|
6
|
+
import { Keys, normalizeNumpadKeys } from '@progress/kendo-angular-common';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { Subject } from 'rxjs';
|
|
9
9
|
import { NavigationModel } from './navigation-model';
|
|
@@ -44,6 +44,7 @@ export class NavigationService {
|
|
|
44
44
|
[Keys.Home]: () => this.activate(this.model.firstVisibleNode(), true),
|
|
45
45
|
[Keys.End]: () => this.activate(this.model.lastVisibleNode(), true),
|
|
46
46
|
[Keys.Enter]: (e) => this.handleEnter(e),
|
|
47
|
+
[Keys.NumpadEnter]: (e) => this.handleEnter(e),
|
|
47
48
|
[Keys.Space]: () => this.handleSpace()
|
|
48
49
|
};
|
|
49
50
|
activeItem;
|
|
@@ -167,7 +168,9 @@ export class NavigationService {
|
|
|
167
168
|
if (!this.navigable) {
|
|
168
169
|
return;
|
|
169
170
|
}
|
|
170
|
-
|
|
171
|
+
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
172
|
+
const code = normalizeNumpadKeys(e);
|
|
173
|
+
const moveAction = this.actions[code];
|
|
171
174
|
if (!moveAction) {
|
|
172
175
|
return;
|
|
173
176
|
}
|
|
@@ -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: '19.3.0
|
|
13
|
+
publishDate: 1755030455,
|
|
14
|
+
version: '19.3.0',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { EventEmitter, Injectable, Directive, Optional, Input, HostBinding, Component, forwardRef, isDevMode, ViewContainerRef, ChangeDetectionStrategy, ViewChild, Output, ContentChild, Host, NgModule } from '@angular/core';
|
|
7
|
-
import { isDocumentAvailable, Keys, anyChanged, hasObservers, isChanged, guid, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
7
|
+
import { isDocumentAvailable, Keys, normalizeNumpadKeys, anyChanged, hasObservers, isChanged, guid, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
8
8
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
10
10
|
import { Subject, Subscription, of, EMPTY, BehaviorSubject, merge } from 'rxjs';
|
|
@@ -28,8 +28,8 @@ const packageMetadata = {
|
|
|
28
28
|
productName: 'Kendo UI for Angular',
|
|
29
29
|
productCode: 'KENDOUIANGULAR',
|
|
30
30
|
productCodes: ['KENDOUIANGULAR'],
|
|
31
|
-
publishDate:
|
|
32
|
-
version: '19.3.0
|
|
31
|
+
publishDate: 1755030455,
|
|
32
|
+
version: '19.3.0',
|
|
33
33
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -614,6 +614,7 @@ class NavigationService {
|
|
|
614
614
|
[Keys.Home]: () => this.activate(this.model.firstVisibleNode(), true),
|
|
615
615
|
[Keys.End]: () => this.activate(this.model.lastVisibleNode(), true),
|
|
616
616
|
[Keys.Enter]: (e) => this.handleEnter(e),
|
|
617
|
+
[Keys.NumpadEnter]: (e) => this.handleEnter(e),
|
|
617
618
|
[Keys.Space]: () => this.handleSpace()
|
|
618
619
|
};
|
|
619
620
|
activeItem;
|
|
@@ -737,7 +738,9 @@ class NavigationService {
|
|
|
737
738
|
if (!this.navigable) {
|
|
738
739
|
return;
|
|
739
740
|
}
|
|
740
|
-
|
|
741
|
+
// on some keyboards arrow keys, PageUp/Down, and Home/End are mapped to Numpad keys
|
|
742
|
+
const code = normalizeNumpadKeys(e);
|
|
743
|
+
const moveAction = this.actions[code];
|
|
741
744
|
if (!moveAction) {
|
|
742
745
|
return;
|
|
743
746
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-treeview",
|
|
3
|
-
"version": "19.3.0
|
|
3
|
+
"version": "19.3.0",
|
|
4
4
|
"description": "Kendo UI TreeView for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"package": {
|
|
20
20
|
"productName": "Kendo UI for Angular",
|
|
21
21
|
"productCode": "KENDOUIANGULAR",
|
|
22
|
-
"publishDate":
|
|
22
|
+
"publishDate": 1755030455,
|
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"@angular/common": "16 - 20",
|
|
29
29
|
"@angular/core": "16 - 20",
|
|
30
30
|
"@angular/platform-browser": "16 - 20",
|
|
31
|
-
"@progress/kendo-licensing": "^1.
|
|
32
|
-
"@progress/kendo-angular-common": "19.3.0
|
|
33
|
-
"@progress/kendo-angular-inputs": "19.3.0
|
|
34
|
-
"@progress/kendo-angular-icons": "19.3.0
|
|
35
|
-
"@progress/kendo-angular-l10n": "19.3.0
|
|
31
|
+
"@progress/kendo-licensing": "^1.7.0",
|
|
32
|
+
"@progress/kendo-angular-common": "19.3.0",
|
|
33
|
+
"@progress/kendo-angular-inputs": "19.3.0",
|
|
34
|
+
"@progress/kendo-angular-icons": "19.3.0",
|
|
35
|
+
"@progress/kendo-angular-l10n": "19.3.0",
|
|
36
36
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"tslib": "^2.3.1",
|
|
40
|
-
"@progress/kendo-angular-schematics": "19.3.0
|
|
40
|
+
"@progress/kendo-angular-schematics": "19.3.0",
|
|
41
41
|
"@progress/kendo-common": "^1.0.1",
|
|
42
42
|
"@progress/kendo-draggable": "^3.0.2"
|
|
43
43
|
},
|
|
@@ -4,10 +4,10 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeViewModule', package: 'treeview', peerDependencies: {
|
|
6
6
|
// Peers of kendo-angular-inputs
|
|
7
|
-
'@progress/kendo-angular-buttons': '19.3.0
|
|
8
|
-
'@progress/kendo-angular-dialog': '19.3.0
|
|
9
|
-
'@progress/kendo-angular-intl': '19.3.0
|
|
10
|
-
'@progress/kendo-angular-popup': '19.3.0
|
|
7
|
+
'@progress/kendo-angular-buttons': '19.3.0',
|
|
8
|
+
'@progress/kendo-angular-dialog': '19.3.0',
|
|
9
|
+
'@progress/kendo-angular-intl': '19.3.0',
|
|
10
|
+
'@progress/kendo-angular-popup': '19.3.0',
|
|
11
11
|
'@progress/kendo-drawing': '^1.9.3',
|
|
12
12
|
// Peer dependency of icons
|
|
13
13
|
'@progress/kendo-svg-icons': '^4.0.0'
|