@progress/kendo-angular-upload 19.3.0-develop.32 → 19.3.0-develop.34
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/fileselect.component.mjs +1 -1
- package/esm2022/navigation.service.mjs +3 -2
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/rendering/file-list.component.mjs +1 -1
- package/esm2022/upload.component.mjs +1 -1
- package/fesm2022/progress-kendo-angular-upload.mjs +8 -7
- package/navigation.service.d.ts +2 -2
- package/package.json +8 -8
- package/rendering/file-list.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +3 -3
@@ -233,7 +233,7 @@ export class FileSelectComponent extends UploadFileSelectBase {
|
|
233
233
|
if (this.disabled) {
|
234
234
|
return;
|
235
235
|
}
|
236
|
-
if (event.target === this.fileSelectButton.nativeElement && (event.
|
236
|
+
if (event.target === this.fileSelectButton.nativeElement && (event.code === Keys.Enter || event.code === Keys.NumpadEnter || event.code === Keys.Space)) {
|
237
237
|
event.preventDefault();
|
238
238
|
this.fileSelectInput.nativeElement.click();
|
239
239
|
return;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { Injectable, EventEmitter, NgZone } from '@angular/core';
|
6
6
|
import { UploadService } from './upload.service';
|
7
|
-
import { Keys } from '@progress/kendo-angular-common';
|
7
|
+
import { Keys, normalizeNumpadKeys } from '@progress/kendo-angular-common';
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
import * as i1 from "./upload.service";
|
10
10
|
/**
|
@@ -30,7 +30,7 @@ export class NavigationService {
|
|
30
30
|
this.zone = zone;
|
31
31
|
}
|
32
32
|
action(event) {
|
33
|
-
const key = event
|
33
|
+
const key = normalizeNumpadKeys(event);
|
34
34
|
return this.keyBindings[key];
|
35
35
|
}
|
36
36
|
process(event, component) {
|
@@ -43,6 +43,7 @@ export class NavigationService {
|
|
43
43
|
this.keyBindings = {
|
44
44
|
[Keys.Space]: () => this.handleSpace(),
|
45
45
|
[Keys.Enter]: () => this.handleEnter(),
|
46
|
+
[Keys.NumpadEnter]: () => this.handleEnter(),
|
46
47
|
[Keys.Escape]: () => this.handleEscape(),
|
47
48
|
[Keys.Delete]: () => this.handleDelete(),
|
48
49
|
[Keys.Tab]: (event, component) => this.handleTab(event, component),
|
@@ -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-develop.
|
13
|
+
publishDate: 1754894770,
|
14
|
+
version: '19.3.0-develop.34',
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
16
16
|
};
|
@@ -59,7 +59,7 @@ export class FileListComponent {
|
|
59
59
|
this.navigation.focusSelectButton();
|
60
60
|
return;
|
61
61
|
}
|
62
|
-
if (key === Keys.Enter && files[0].state === FileState.Failed) {
|
62
|
+
if ((key === Keys.Enter || key === Keys.NumpadEnter) && files[0].state === FileState.Failed) {
|
63
63
|
this.uploadService.retryFiles(uid);
|
64
64
|
return;
|
65
65
|
}
|
@@ -508,7 +508,7 @@ export class UploadComponent extends UploadFileSelectBase {
|
|
508
508
|
if (this.disabled) {
|
509
509
|
return;
|
510
510
|
}
|
511
|
-
if (event.target === this.fileSelectButton.nativeElement && (event.
|
511
|
+
if (event.target === this.fileSelectButton.nativeElement && (event.code === Keys.Enter || event.code === Keys.Space)) {
|
512
512
|
event.preventDefault();
|
513
513
|
this.fileSelectInput.nativeElement.click();
|
514
514
|
return;
|
@@ -6,7 +6,7 @@ import * as i1 from '@angular/common/http';
|
|
6
6
|
import { HttpHeaders, HttpRequest, HttpEventType, HttpResponse } from '@angular/common/http';
|
7
7
|
import * as i0 from '@angular/core';
|
8
8
|
import { EventEmitter, Injectable, Directive, ElementRef, ContentChild, ViewChild, Input, HostBinding, Output, Component, HostListener, ViewChildren, Inject, forwardRef, isDevMode, NgModule } from '@angular/core';
|
9
|
-
import { guid, Keys, isControlRequired, isChanged, isDocumentAvailable, KendoInput, ResizeBatchService } from '@progress/kendo-angular-common';
|
9
|
+
import { guid, normalizeNumpadKeys, Keys, isControlRequired, isChanged, isDocumentAvailable, KendoInput, ResizeBatchService } from '@progress/kendo-angular-common';
|
10
10
|
import { fileAudioIcon, fileVideoIcon, fileImageIcon, fileTxtIcon, filePresentationIcon, fileDataIcon, fileProgrammingIcon, filePdfIcon, fileConfigIcon, fileZipIcon, fileDiscImageIcon, arrowRotateCwSmallIcon, playSmIcon, pauseSmIcon, cancelIcon, xIcon, copyIcon, fileIcon, checkIcon, exclamationCircleIcon, uploadIcon } from '@progress/kendo-svg-icons';
|
11
11
|
import { NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
12
12
|
import * as i1$1 from '@progress/kendo-angular-l10n';
|
@@ -1345,7 +1345,7 @@ class NavigationService {
|
|
1345
1345
|
this.zone = zone;
|
1346
1346
|
}
|
1347
1347
|
action(event) {
|
1348
|
-
const key = event
|
1348
|
+
const key = normalizeNumpadKeys(event);
|
1349
1349
|
return this.keyBindings[key];
|
1350
1350
|
}
|
1351
1351
|
process(event, component) {
|
@@ -1358,6 +1358,7 @@ class NavigationService {
|
|
1358
1358
|
this.keyBindings = {
|
1359
1359
|
[Keys.Space]: () => this.handleSpace(),
|
1360
1360
|
[Keys.Enter]: () => this.handleEnter(),
|
1361
|
+
[Keys.NumpadEnter]: () => this.handleEnter(),
|
1361
1362
|
[Keys.Escape]: () => this.handleEscape(),
|
1362
1363
|
[Keys.Delete]: () => this.handleDelete(),
|
1363
1364
|
[Keys.Tab]: (event, component) => this.handleTab(event, component),
|
@@ -1561,8 +1562,8 @@ const packageMetadata = {
|
|
1561
1562
|
productName: 'Kendo UI for Angular',
|
1562
1563
|
productCode: 'KENDOUIANGULAR',
|
1563
1564
|
productCodes: ['KENDOUIANGULAR'],
|
1564
|
-
publishDate:
|
1565
|
-
version: '19.3.0-develop.
|
1565
|
+
publishDate: 1754894770,
|
1566
|
+
version: '19.3.0-develop.34',
|
1566
1567
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
1567
1568
|
};
|
1568
1569
|
|
@@ -2757,7 +2758,7 @@ class FileListComponent {
|
|
2757
2758
|
this.navigation.focusSelectButton();
|
2758
2759
|
return;
|
2759
2760
|
}
|
2760
|
-
if (key === Keys.Enter && files[0].state === FileState.Failed) {
|
2761
|
+
if ((key === Keys.Enter || key === Keys.NumpadEnter) && files[0].state === FileState.Failed) {
|
2761
2762
|
this.uploadService.retryFiles(uid);
|
2762
2763
|
return;
|
2763
2764
|
}
|
@@ -3942,7 +3943,7 @@ class UploadComponent extends UploadFileSelectBase {
|
|
3942
3943
|
if (this.disabled) {
|
3943
3944
|
return;
|
3944
3945
|
}
|
3945
|
-
if (event.target === this.fileSelectButton.nativeElement && (event.
|
3946
|
+
if (event.target === this.fileSelectButton.nativeElement && (event.code === Keys.Enter || event.code === Keys.Space)) {
|
3946
3947
|
event.preventDefault();
|
3947
3948
|
this.fileSelectInput.nativeElement.click();
|
3948
3949
|
return;
|
@@ -4789,7 +4790,7 @@ class FileSelectComponent extends UploadFileSelectBase {
|
|
4789
4790
|
if (this.disabled) {
|
4790
4791
|
return;
|
4791
4792
|
}
|
4792
|
-
if (event.target === this.fileSelectButton.nativeElement && (event.
|
4793
|
+
if (event.target === this.fileSelectButton.nativeElement && (event.code === Keys.Enter || event.code === Keys.NumpadEnter || event.code === Keys.Space)) {
|
4793
4794
|
event.preventDefault();
|
4794
4795
|
this.fileSelectInput.nativeElement.click();
|
4795
4796
|
return;
|
package/navigation.service.d.ts
CHANGED
@@ -12,7 +12,7 @@ export declare class NavigationService {
|
|
12
12
|
private uploadService;
|
13
13
|
private zone;
|
14
14
|
onActionButtonFocus: EventEmitter<string>;
|
15
|
-
onFileAction: EventEmitter<
|
15
|
+
onFileAction: EventEmitter<string>;
|
16
16
|
onFileFocus: EventEmitter<number>;
|
17
17
|
onTabOut: EventEmitter<any>;
|
18
18
|
onWrapperFocus: EventEmitter<any>;
|
@@ -24,7 +24,7 @@ export declare class NavigationService {
|
|
24
24
|
focusedFileIndex: number;
|
25
25
|
private _focusedIndex;
|
26
26
|
constructor(uploadService: UploadService, zone: NgZone);
|
27
|
-
action(event:
|
27
|
+
action(event: KeyboardEvent): Function;
|
28
28
|
process(event: KeyboardEvent, component?: string): void;
|
29
29
|
computeKeys(): void;
|
30
30
|
focusSelectButton(): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@progress/kendo-angular-upload",
|
3
|
-
"version": "19.3.0-develop.
|
3
|
+
"version": "19.3.0-develop.34",
|
4
4
|
"description": "Kendo UI Angular Upload Component",
|
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": 1754894770,
|
23
23
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
24
24
|
}
|
25
25
|
},
|
@@ -30,16 +30,16 @@
|
|
30
30
|
"@angular/forms": "16 - 20",
|
31
31
|
"@angular/platform-browser": "16 - 20",
|
32
32
|
"@progress/kendo-licensing": "^1.7.0",
|
33
|
-
"@progress/kendo-angular-common": "19.3.0-develop.
|
34
|
-
"@progress/kendo-angular-l10n": "19.3.0-develop.
|
35
|
-
"@progress/kendo-angular-icons": "19.3.0-develop.
|
36
|
-
"@progress/kendo-angular-buttons": "19.3.0-develop.
|
37
|
-
"@progress/kendo-angular-progressbar": "19.3.0-develop.
|
33
|
+
"@progress/kendo-angular-common": "19.3.0-develop.34",
|
34
|
+
"@progress/kendo-angular-l10n": "19.3.0-develop.34",
|
35
|
+
"@progress/kendo-angular-icons": "19.3.0-develop.34",
|
36
|
+
"@progress/kendo-angular-buttons": "19.3.0-develop.34",
|
37
|
+
"@progress/kendo-angular-progressbar": "19.3.0-develop.34",
|
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": "19.3.0-develop.
|
42
|
+
"@progress/kendo-angular-schematics": "19.3.0-develop.34"
|
43
43
|
},
|
44
44
|
"schematics": "./schematics/collection.json",
|
45
45
|
"module": "fesm2022/progress-kendo-angular-upload.mjs",
|
@@ -27,7 +27,7 @@ export declare class FileListComponent implements OnDestroy {
|
|
27
27
|
constructor(uploadService: UploadService, navigation: NavigationService);
|
28
28
|
onItemFocus(): void;
|
29
29
|
onItemAction(): void;
|
30
|
-
itemActionHandler(key:
|
30
|
+
itemActionHandler(key: string): void;
|
31
31
|
hasDelete(item: FileListItemDirective): boolean;
|
32
32
|
ngOnDestroy(): void;
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileListComponent, never>;
|
@@ -10,9 +10,9 @@ function default_1(options) {
|
|
10
10
|
], peerDependencies: {
|
11
11
|
// peer dep of the icons
|
12
12
|
'@progress/kendo-svg-icons': '^4.0.0',
|
13
|
-
'@progress/kendo-angular-buttons': '19.3.0-develop.
|
14
|
-
'@progress/kendo-angular-progressbar': '19.3.0-develop.
|
15
|
-
'@progress/kendo-angular-popup': '19.3.0-develop.
|
13
|
+
'@progress/kendo-angular-buttons': '19.3.0-develop.34',
|
14
|
+
'@progress/kendo-angular-progressbar': '19.3.0-develop.34',
|
15
|
+
'@progress/kendo-angular-popup': '19.3.0-develop.34',
|
16
16
|
} });
|
17
17
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
18
18
|
}
|