@progress/kendo-angular-dialog 18.2.1-develop.1 → 18.2.1-develop.2
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/common/util.d.ts +4 -0
- package/esm2022/common/util.mjs +4 -0
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/window/navigation.service.mjs +13 -8
- package/esm2022/window/window.component.mjs +2 -4
- package/fesm2022/progress-kendo-angular-dialog.mjs +19 -12
- package/package.json +7 -7
- package/schematics/ngAdd/index.js +1 -1
package/common/util.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ export declare const DIALOG_ELEMENTS_HANDLING_ARROWS = "k-actions";
|
|
|
38
38
|
* @hidden
|
|
39
39
|
*/
|
|
40
40
|
export declare const WINDOW_CLASSES = "k-window";
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
export declare const WINDOW_ELEMENTS_HANDLING_ESC_KEY = "k-window k-window-titlebar-action";
|
|
41
45
|
/**
|
|
42
46
|
* @hidden
|
|
43
47
|
*/
|
package/esm2022/common/util.mjs
CHANGED
|
@@ -42,6 +42,10 @@ export const DIALOG_ELEMENTS_HANDLING_ARROWS = 'k-actions';
|
|
|
42
42
|
* @hidden
|
|
43
43
|
*/
|
|
44
44
|
export const WINDOW_CLASSES = 'k-window';
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
export const WINDOW_ELEMENTS_HANDLING_ESC_KEY = 'k-window k-window-titlebar-action';
|
|
45
49
|
/**
|
|
46
50
|
* @hidden
|
|
47
51
|
*/
|
|
@@ -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: '18.2.1-develop.
|
|
13
|
+
publishDate: 1742972274,
|
|
14
|
+
version: '18.2.1-develop.2',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Injectable, NgZone } from "@angular/core";
|
|
6
6
|
import { DragResizeService } from './drag-resize.service';
|
|
7
|
-
import { isPresent, OFFSET_STYLES, Keys } from '../common/util';
|
|
7
|
+
import { isPresent, OFFSET_STYLES, Keys, WINDOW_CLASSES, hasClasses, WINDOW_ELEMENTS_HANDLING_ESC_KEY } from '../common/util';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "./drag-resize.service";
|
|
10
10
|
/**
|
|
@@ -19,21 +19,26 @@ export class NavigationService {
|
|
|
19
19
|
}
|
|
20
20
|
process(ev) {
|
|
21
21
|
const key = ev.keyCode;
|
|
22
|
+
const target = ev.target;
|
|
22
23
|
switch (key) {
|
|
23
24
|
case Keys.up:
|
|
24
25
|
case Keys.down:
|
|
25
26
|
case Keys.left:
|
|
26
27
|
case Keys.right: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.
|
|
30
|
-
|
|
28
|
+
if (hasClasses(target, WINDOW_CLASSES)) {
|
|
29
|
+
ev.preventDefault();
|
|
30
|
+
this.ngZone.run(() => {
|
|
31
|
+
this.handleArrow(key, ev);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
31
34
|
break;
|
|
32
35
|
}
|
|
33
36
|
case Keys.esc:
|
|
34
|
-
|
|
35
|
-
this.
|
|
36
|
-
|
|
37
|
+
if (hasClasses(target, WINDOW_ELEMENTS_HANDLING_ESC_KEY)) {
|
|
38
|
+
this.ngZone.run(() => {
|
|
39
|
+
this.handleEscape();
|
|
40
|
+
});
|
|
41
|
+
}
|
|
37
42
|
break;
|
|
38
43
|
default:
|
|
39
44
|
break;
|
|
@@ -10,7 +10,7 @@ import { Subscription } from 'rxjs';
|
|
|
10
10
|
import { take } from 'rxjs/operators';
|
|
11
11
|
import { packageMetadata } from '../package-metadata';
|
|
12
12
|
import { DragResizeService } from './drag-resize.service';
|
|
13
|
-
import { OFFSET_STYLES, isPresent, isTruthy,
|
|
13
|
+
import { OFFSET_STYLES, isPresent, isTruthy, parseCSSClassNames } from '../common/util';
|
|
14
14
|
import { RESIZE_DIRECTIONS } from "../common/util";
|
|
15
15
|
import { ResizeHandleDirective } from './window-resize-handle.directive';
|
|
16
16
|
import { WindowTitleBarComponent } from './window-titlebar.component';
|
|
@@ -511,9 +511,7 @@ export class WindowComponent {
|
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
onKeyDown(event) {
|
|
514
|
-
|
|
515
|
-
this.navigation.process(event);
|
|
516
|
-
}
|
|
514
|
+
this.navigation.process(event);
|
|
517
515
|
}
|
|
518
516
|
setServiceClasses(prevValue, value) {
|
|
519
517
|
const el = this.el.nativeElement;
|
|
@@ -57,6 +57,10 @@ const DIALOG_ELEMENTS_HANDLING_ARROWS = 'k-actions';
|
|
|
57
57
|
* @hidden
|
|
58
58
|
*/
|
|
59
59
|
const WINDOW_CLASSES = 'k-window';
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
const WINDOW_ELEMENTS_HANDLING_ESC_KEY = 'k-window k-window-titlebar-action';
|
|
60
64
|
/**
|
|
61
65
|
* @hidden
|
|
62
66
|
*/
|
|
@@ -650,8 +654,8 @@ const packageMetadata = {
|
|
|
650
654
|
productName: 'Kendo UI for Angular',
|
|
651
655
|
productCode: 'KENDOUIANGULAR',
|
|
652
656
|
productCodes: ['KENDOUIANGULAR'],
|
|
653
|
-
publishDate:
|
|
654
|
-
version: '18.2.1-develop.
|
|
657
|
+
publishDate: 1742972274,
|
|
658
|
+
version: '18.2.1-develop.2',
|
|
655
659
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
656
660
|
};
|
|
657
661
|
|
|
@@ -2323,21 +2327,26 @@ class NavigationService {
|
|
|
2323
2327
|
}
|
|
2324
2328
|
process(ev) {
|
|
2325
2329
|
const key = ev.keyCode;
|
|
2330
|
+
const target = ev.target;
|
|
2326
2331
|
switch (key) {
|
|
2327
2332
|
case Keys.up:
|
|
2328
2333
|
case Keys.down:
|
|
2329
2334
|
case Keys.left:
|
|
2330
2335
|
case Keys.right: {
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
this.
|
|
2334
|
-
|
|
2336
|
+
if (hasClasses(target, WINDOW_CLASSES)) {
|
|
2337
|
+
ev.preventDefault();
|
|
2338
|
+
this.ngZone.run(() => {
|
|
2339
|
+
this.handleArrow(key, ev);
|
|
2340
|
+
});
|
|
2341
|
+
}
|
|
2335
2342
|
break;
|
|
2336
2343
|
}
|
|
2337
2344
|
case Keys.esc:
|
|
2338
|
-
|
|
2339
|
-
this.
|
|
2340
|
-
|
|
2345
|
+
if (hasClasses(target, WINDOW_ELEMENTS_HANDLING_ESC_KEY)) {
|
|
2346
|
+
this.ngZone.run(() => {
|
|
2347
|
+
this.handleEscape();
|
|
2348
|
+
});
|
|
2349
|
+
}
|
|
2341
2350
|
break;
|
|
2342
2351
|
default:
|
|
2343
2352
|
break;
|
|
@@ -3316,9 +3325,7 @@ class WindowComponent {
|
|
|
3316
3325
|
});
|
|
3317
3326
|
}
|
|
3318
3327
|
onKeyDown(event) {
|
|
3319
|
-
|
|
3320
|
-
this.navigation.process(event);
|
|
3321
|
-
}
|
|
3328
|
+
this.navigation.process(event);
|
|
3322
3329
|
}
|
|
3323
3330
|
setServiceClasses(prevValue, value) {
|
|
3324
3331
|
const el = this.el.nativeElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dialog",
|
|
3
|
-
"version": "18.2.1-develop.
|
|
3
|
+
"version": "18.2.1-develop.2",
|
|
4
4
|
"description": "Dialog Package for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"package": {
|
|
24
24
|
"productName": "Kendo UI for Angular",
|
|
25
25
|
"productCode": "KENDOUIANGULAR",
|
|
26
|
-
"publishDate":
|
|
26
|
+
"publishDate": 1742972274,
|
|
27
27
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"@angular/core": "16 - 19",
|
|
34
34
|
"@angular/platform-browser": "16 - 19",
|
|
35
35
|
"@progress/kendo-licensing": "^1.5.0",
|
|
36
|
-
"@progress/kendo-angular-buttons": "18.2.1-develop.
|
|
37
|
-
"@progress/kendo-angular-common": "18.2.1-develop.
|
|
38
|
-
"@progress/kendo-angular-icons": "18.2.1-develop.
|
|
39
|
-
"@progress/kendo-angular-l10n": "18.2.1-develop.
|
|
36
|
+
"@progress/kendo-angular-buttons": "18.2.1-develop.2",
|
|
37
|
+
"@progress/kendo-angular-common": "18.2.1-develop.2",
|
|
38
|
+
"@progress/kendo-angular-icons": "18.2.1-develop.2",
|
|
39
|
+
"@progress/kendo-angular-l10n": "18.2.1-develop.2",
|
|
40
40
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"tslib": "^2.3.1",
|
|
44
|
-
"@progress/kendo-angular-schematics": "18.2.1-develop.
|
|
44
|
+
"@progress/kendo-angular-schematics": "18.2.1-develop.2",
|
|
45
45
|
"@progress/kendo-popup-common": "^1.7.0"
|
|
46
46
|
},
|
|
47
47
|
"schematics": "./schematics/collection.json",
|
|
@@ -4,7 +4,7 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DialogsModule', package: 'dialog', peerDependencies: {
|
|
6
6
|
// Peer dependency of buttons
|
|
7
|
-
'@progress/kendo-angular-popup': '18.2.1-develop.
|
|
7
|
+
'@progress/kendo-angular-popup': '18.2.1-develop.2',
|
|
8
8
|
// Peer dependency of icons
|
|
9
9
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
10
10
|
} });
|