@progress/kendo-vue-dialogs 3.7.4-dev.202212020747 → 3.7.4-dev.202212300853
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/README.md +1 -1
- package/dist/cdn/js/kendo-vue-dialogs.js +1 -1
- package/dist/es/Dialog.d.ts +4 -0
- package/dist/es/Dialog.js +13 -1
- package/dist/es/Window.js +26 -5
- package/dist/es/WindowProps.d.ts +4 -0
- package/dist/es/WindowTitlebar.d.ts +4 -0
- package/dist/es/WindowTitlebar.js +6 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/Dialog.d.ts +4 -0
- package/dist/esm/Dialog.js +13 -1
- package/dist/esm/Window.js +26 -5
- package/dist/esm/WindowProps.d.ts +4 -0
- package/dist/esm/WindowTitlebar.d.ts +4 -0
- package/dist/esm/WindowTitlebar.js +6 -1
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/Dialog.d.ts +4 -0
- package/dist/npm/Dialog.js +13 -1
- package/dist/npm/Window.js +25 -4
- package/dist/npm/WindowProps.d.ts +4 -0
- package/dist/npm/WindowTitlebar.d.ts +4 -0
- package/dist/npm/WindowTitlebar.js +6 -1
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +4 -4
package/dist/es/Dialog.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ export interface DialogProps {
|
|
|
44
44
|
* Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
|
|
45
45
|
*/
|
|
46
46
|
onClose?: (event: DialogCloseEvent) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Fires when modal overlay of the Window is clicked.
|
|
49
|
+
*/
|
|
50
|
+
onOverlayclick?: (event: any) => void;
|
|
47
51
|
/**
|
|
48
52
|
* Sets the `aria-labelledby` value.
|
|
49
53
|
*/
|
package/dist/es/Dialog.js
CHANGED
|
@@ -12,6 +12,11 @@ import { DEFAULT_DIALOGS_ZINDEX } from './constants';
|
|
|
12
12
|
*/
|
|
13
13
|
var DialogVue2 = {
|
|
14
14
|
name: 'KendoDialog',
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
emits: {
|
|
17
|
+
close: null,
|
|
18
|
+
overlayclick: null
|
|
19
|
+
},
|
|
15
20
|
props: {
|
|
16
21
|
appendTo: String,
|
|
17
22
|
title: String,
|
|
@@ -86,6 +91,9 @@ var DialogVue2 = {
|
|
|
86
91
|
},
|
|
87
92
|
generateTitleId: function generateTitleId() {
|
|
88
93
|
return 'dialog-title' + guid();
|
|
94
|
+
},
|
|
95
|
+
handleClick: function handleClick(e) {
|
|
96
|
+
this.$emit('overlayclick', e);
|
|
89
97
|
}
|
|
90
98
|
},
|
|
91
99
|
// @ts-ignore
|
|
@@ -129,7 +137,11 @@ var DialogVue2 = {
|
|
|
129
137
|
id: wrapperId,
|
|
130
138
|
dir: dir
|
|
131
139
|
}, [h("div", {
|
|
132
|
-
"class": "k-overlay"
|
|
140
|
+
"class": "k-overlay",
|
|
141
|
+
onClick: this.handleClick,
|
|
142
|
+
on: this.v3 ? undefined : {
|
|
143
|
+
"click": this.handleClick
|
|
144
|
+
}
|
|
133
145
|
}), h("div", {
|
|
134
146
|
"aria-labelledby": title || titleRender ? id : undefined,
|
|
135
147
|
attrs: this.v3 ? undefined : {
|
package/dist/es/Window.js
CHANGED
|
@@ -16,7 +16,7 @@ var allVue = Vue;
|
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
import { WindowTitleBar } from './WindowTitlebar';
|
|
19
|
-
import { Keys, classNames, Draggable, templateDefinition, getDefaultSlots, templateRendering, getListeners, validatePackage } from '@progress/kendo-vue-common';
|
|
19
|
+
import { Keys, classNames, guid, Draggable, templateDefinition, getDefaultSlots, templateRendering, getListeners, validatePackage } from '@progress/kendo-vue-common';
|
|
20
20
|
import { ResizeHandlers } from './WindowResizeHandlers';
|
|
21
21
|
import { windowStage } from './StageEnum';
|
|
22
22
|
import { packageMetadata } from './package-metadata';
|
|
@@ -36,7 +36,8 @@ var WindowVue2 = {
|
|
|
36
36
|
'resize': null,
|
|
37
37
|
'move': null,
|
|
38
38
|
'close': null,
|
|
39
|
-
'stagechange': null
|
|
39
|
+
'stagechange': null,
|
|
40
|
+
'overlayclick': null
|
|
40
41
|
},
|
|
41
42
|
provide: function provide() {
|
|
42
43
|
return {
|
|
@@ -139,7 +140,9 @@ var WindowVue2 = {
|
|
|
139
140
|
currentTop: this.getInitialTop(),
|
|
140
141
|
currentLeft: this.getInitialLeft(),
|
|
141
142
|
currentWidth: this.getInitialWidth(),
|
|
142
|
-
currentHeight: this.getInitialHeight()
|
|
143
|
+
currentHeight: this.getInitialHeight(),
|
|
144
|
+
_id: guid(),
|
|
145
|
+
titleId: this.generateTitleId()
|
|
143
146
|
};
|
|
144
147
|
},
|
|
145
148
|
mounted: function mounted() {
|
|
@@ -362,6 +365,9 @@ var WindowVue2 = {
|
|
|
362
365
|
}
|
|
363
366
|
return height;
|
|
364
367
|
},
|
|
368
|
+
generateTitleId: function generateTitleId() {
|
|
369
|
+
return 'window-title-' + this._id;
|
|
370
|
+
},
|
|
365
371
|
handleMinimize: function handleMinimize(event) {
|
|
366
372
|
event.preventDefault();
|
|
367
373
|
this.windowCoordinatesState.leftBeforeAction = this.computedLeft;
|
|
@@ -464,6 +470,9 @@ var WindowVue2 = {
|
|
|
464
470
|
this.currentWidth = window.innerWidth;
|
|
465
471
|
this.currentHeight = window.innerHeight;
|
|
466
472
|
}
|
|
473
|
+
},
|
|
474
|
+
handleClick: function handleClick(e) {
|
|
475
|
+
this.$emit('overlayclick', e);
|
|
467
476
|
}
|
|
468
477
|
},
|
|
469
478
|
// @ts-ignore
|
|
@@ -482,11 +491,17 @@ var WindowVue2 = {
|
|
|
482
491
|
var windowElement = h("div", {
|
|
483
492
|
ref: 'wrapper'
|
|
484
493
|
}, [this.$props.modal && h("div", {
|
|
485
|
-
"class": "k-overlay"
|
|
494
|
+
"class": "k-overlay",
|
|
495
|
+
onClick: this.handleClick,
|
|
496
|
+
on: this.v3 ? undefined : {
|
|
497
|
+
"click": this.handleClick
|
|
498
|
+
}
|
|
486
499
|
}), h("div", {
|
|
487
500
|
tabindex: 0,
|
|
488
501
|
attrs: this.v3 ? undefined : {
|
|
489
|
-
tabindex: 0
|
|
502
|
+
tabindex: 0,
|
|
503
|
+
role: 'dialog',
|
|
504
|
+
"aria-labelledby": this.titleId
|
|
490
505
|
},
|
|
491
506
|
onFocus: function onFocus(e) {
|
|
492
507
|
return e.target.classList.add('k-focus');
|
|
@@ -506,6 +521,8 @@ var WindowVue2 = {
|
|
|
506
521
|
onKeydown: this.handleKeyDown,
|
|
507
522
|
ref: 'windowElement',
|
|
508
523
|
"class": classNamesWindow,
|
|
524
|
+
role: 'dialog',
|
|
525
|
+
"aria-labelledby": this.titleId,
|
|
509
526
|
style: __assign({
|
|
510
527
|
top: this.computedTop + 'px',
|
|
511
528
|
left: this.computedLeft + 'px',
|
|
@@ -532,6 +549,7 @@ var WindowVue2 = {
|
|
|
532
549
|
attrs: _this.v3 ? undefined : {
|
|
533
550
|
stage: _this.windowStage,
|
|
534
551
|
title: _this.$props.title,
|
|
552
|
+
titleId: _this.titleId,
|
|
535
553
|
titleRender: titleRender,
|
|
536
554
|
closeButton: closeButton,
|
|
537
555
|
minimizeButton: minimizeButton,
|
|
@@ -539,6 +557,7 @@ var WindowVue2 = {
|
|
|
539
557
|
restoreButton: restoreButton
|
|
540
558
|
},
|
|
541
559
|
title: _this.$props.title,
|
|
560
|
+
titleId: _this.titleId,
|
|
542
561
|
titleRender: titleRender,
|
|
543
562
|
onDoubleclick: _this.handleDoubleClick,
|
|
544
563
|
on: _this.v3 ? undefined : {
|
|
@@ -562,6 +581,7 @@ var WindowVue2 = {
|
|
|
562
581
|
attrs: _this.v3 ? undefined : {
|
|
563
582
|
stage: _this.windowStage,
|
|
564
583
|
title: _this.$props.title,
|
|
584
|
+
titleId: _this.titleId,
|
|
565
585
|
titleRender: titleRender,
|
|
566
586
|
closeButton: closeButton,
|
|
567
587
|
minimizeButton: minimizeButton,
|
|
@@ -569,6 +589,7 @@ var WindowVue2 = {
|
|
|
569
589
|
restoreButton: restoreButton
|
|
570
590
|
},
|
|
571
591
|
title: _this.$props.title,
|
|
592
|
+
titleId: _this.titleId,
|
|
572
593
|
titleRender: titleRender,
|
|
573
594
|
onDoubleclick: _this.handleDoubleClick,
|
|
574
595
|
on: _this.v3 ? undefined : {
|
package/dist/es/WindowProps.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ var WindowTitleBarVue2 = {
|
|
|
21
21
|
maximizeButton: [String, Function, Object, Boolean],
|
|
22
22
|
restoreButton: [String, Function, Object, Boolean],
|
|
23
23
|
title: String,
|
|
24
|
+
titleId: String,
|
|
24
25
|
titleRender: [String, Function, Object, Boolean]
|
|
25
26
|
},
|
|
26
27
|
inject: {
|
|
@@ -175,7 +176,11 @@ var WindowTitleBarVue2 = {
|
|
|
175
176
|
"dblclick": this.onDoubleClick
|
|
176
177
|
}
|
|
177
178
|
}, [h("div", {
|
|
178
|
-
"class": "k-window-title"
|
|
179
|
+
"class": "k-window-title",
|
|
180
|
+
id: this.$props.titleId,
|
|
181
|
+
attrs: this.v3 ? undefined : {
|
|
182
|
+
id: this.$props.titleId
|
|
183
|
+
}
|
|
179
184
|
}, [titleElement]), h("div", {
|
|
180
185
|
"class": "k-window-actions"
|
|
181
186
|
}, [stage === windowStage.DEFAULT && minimizeButtonRender, stage === windowStage.DEFAULT && maximizeButtonRender, stage !== windowStage.DEFAULT && restoreButtonRender, closeButtonRender])]);
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-dialogs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1672389550,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/esm/Dialog.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ export interface DialogProps {
|
|
|
44
44
|
* Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
|
|
45
45
|
*/
|
|
46
46
|
onClose?: (event: DialogCloseEvent) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Fires when modal overlay of the Window is clicked.
|
|
49
|
+
*/
|
|
50
|
+
onOverlayclick?: (event: any) => void;
|
|
47
51
|
/**
|
|
48
52
|
* Sets the `aria-labelledby` value.
|
|
49
53
|
*/
|
package/dist/esm/Dialog.js
CHANGED
|
@@ -12,6 +12,11 @@ import { DEFAULT_DIALOGS_ZINDEX } from './constants.js';
|
|
|
12
12
|
*/
|
|
13
13
|
var DialogVue2 = {
|
|
14
14
|
name: 'KendoDialog',
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
emits: {
|
|
17
|
+
close: null,
|
|
18
|
+
overlayclick: null
|
|
19
|
+
},
|
|
15
20
|
props: {
|
|
16
21
|
appendTo: String,
|
|
17
22
|
title: String,
|
|
@@ -86,6 +91,9 @@ var DialogVue2 = {
|
|
|
86
91
|
},
|
|
87
92
|
generateTitleId: function generateTitleId() {
|
|
88
93
|
return 'dialog-title' + guid();
|
|
94
|
+
},
|
|
95
|
+
handleClick: function handleClick(e) {
|
|
96
|
+
this.$emit('overlayclick', e);
|
|
89
97
|
}
|
|
90
98
|
},
|
|
91
99
|
// @ts-ignore
|
|
@@ -129,7 +137,11 @@ var DialogVue2 = {
|
|
|
129
137
|
id: wrapperId,
|
|
130
138
|
dir: dir
|
|
131
139
|
}, [h("div", {
|
|
132
|
-
"class": "k-overlay"
|
|
140
|
+
"class": "k-overlay",
|
|
141
|
+
onClick: this.handleClick,
|
|
142
|
+
on: this.v3 ? undefined : {
|
|
143
|
+
"click": this.handleClick
|
|
144
|
+
}
|
|
133
145
|
}), h("div", {
|
|
134
146
|
"aria-labelledby": title || titleRender ? id : undefined,
|
|
135
147
|
attrs: this.v3 ? undefined : {
|
package/dist/esm/Window.js
CHANGED
|
@@ -16,7 +16,7 @@ var allVue = Vue;
|
|
|
16
16
|
var gh = allVue.h;
|
|
17
17
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
18
18
|
import { WindowTitleBar } from './WindowTitlebar.js';
|
|
19
|
-
import { Keys, classNames, Draggable, templateDefinition, getDefaultSlots, templateRendering, getListeners, validatePackage } from '@progress/kendo-vue-common';
|
|
19
|
+
import { Keys, classNames, guid, Draggable, templateDefinition, getDefaultSlots, templateRendering, getListeners, validatePackage } from '@progress/kendo-vue-common';
|
|
20
20
|
import { ResizeHandlers } from './WindowResizeHandlers.js';
|
|
21
21
|
import { windowStage } from './StageEnum.js';
|
|
22
22
|
import { packageMetadata } from './package-metadata.js';
|
|
@@ -36,7 +36,8 @@ var WindowVue2 = {
|
|
|
36
36
|
'resize': null,
|
|
37
37
|
'move': null,
|
|
38
38
|
'close': null,
|
|
39
|
-
'stagechange': null
|
|
39
|
+
'stagechange': null,
|
|
40
|
+
'overlayclick': null
|
|
40
41
|
},
|
|
41
42
|
provide: function provide() {
|
|
42
43
|
return {
|
|
@@ -139,7 +140,9 @@ var WindowVue2 = {
|
|
|
139
140
|
currentTop: this.getInitialTop(),
|
|
140
141
|
currentLeft: this.getInitialLeft(),
|
|
141
142
|
currentWidth: this.getInitialWidth(),
|
|
142
|
-
currentHeight: this.getInitialHeight()
|
|
143
|
+
currentHeight: this.getInitialHeight(),
|
|
144
|
+
_id: guid(),
|
|
145
|
+
titleId: this.generateTitleId()
|
|
143
146
|
};
|
|
144
147
|
},
|
|
145
148
|
mounted: function mounted() {
|
|
@@ -362,6 +365,9 @@ var WindowVue2 = {
|
|
|
362
365
|
}
|
|
363
366
|
return height;
|
|
364
367
|
},
|
|
368
|
+
generateTitleId: function generateTitleId() {
|
|
369
|
+
return 'window-title-' + this._id;
|
|
370
|
+
},
|
|
365
371
|
handleMinimize: function handleMinimize(event) {
|
|
366
372
|
event.preventDefault();
|
|
367
373
|
this.windowCoordinatesState.leftBeforeAction = this.computedLeft;
|
|
@@ -464,6 +470,9 @@ var WindowVue2 = {
|
|
|
464
470
|
this.currentWidth = window.innerWidth;
|
|
465
471
|
this.currentHeight = window.innerHeight;
|
|
466
472
|
}
|
|
473
|
+
},
|
|
474
|
+
handleClick: function handleClick(e) {
|
|
475
|
+
this.$emit('overlayclick', e);
|
|
467
476
|
}
|
|
468
477
|
},
|
|
469
478
|
// @ts-ignore
|
|
@@ -482,11 +491,17 @@ var WindowVue2 = {
|
|
|
482
491
|
var windowElement = h("div", {
|
|
483
492
|
ref: 'wrapper'
|
|
484
493
|
}, [this.$props.modal && h("div", {
|
|
485
|
-
"class": "k-overlay"
|
|
494
|
+
"class": "k-overlay",
|
|
495
|
+
onClick: this.handleClick,
|
|
496
|
+
on: this.v3 ? undefined : {
|
|
497
|
+
"click": this.handleClick
|
|
498
|
+
}
|
|
486
499
|
}), h("div", {
|
|
487
500
|
tabindex: 0,
|
|
488
501
|
attrs: this.v3 ? undefined : {
|
|
489
|
-
tabindex: 0
|
|
502
|
+
tabindex: 0,
|
|
503
|
+
role: 'dialog',
|
|
504
|
+
"aria-labelledby": this.titleId
|
|
490
505
|
},
|
|
491
506
|
onFocus: function onFocus(e) {
|
|
492
507
|
return e.target.classList.add('k-focus');
|
|
@@ -506,6 +521,8 @@ var WindowVue2 = {
|
|
|
506
521
|
onKeydown: this.handleKeyDown,
|
|
507
522
|
ref: 'windowElement',
|
|
508
523
|
"class": classNamesWindow,
|
|
524
|
+
role: 'dialog',
|
|
525
|
+
"aria-labelledby": this.titleId,
|
|
509
526
|
style: __assign({
|
|
510
527
|
top: this.computedTop + 'px',
|
|
511
528
|
left: this.computedLeft + 'px',
|
|
@@ -532,6 +549,7 @@ var WindowVue2 = {
|
|
|
532
549
|
attrs: _this.v3 ? undefined : {
|
|
533
550
|
stage: _this.windowStage,
|
|
534
551
|
title: _this.$props.title,
|
|
552
|
+
titleId: _this.titleId,
|
|
535
553
|
titleRender: titleRender,
|
|
536
554
|
closeButton: closeButton,
|
|
537
555
|
minimizeButton: minimizeButton,
|
|
@@ -539,6 +557,7 @@ var WindowVue2 = {
|
|
|
539
557
|
restoreButton: restoreButton
|
|
540
558
|
},
|
|
541
559
|
title: _this.$props.title,
|
|
560
|
+
titleId: _this.titleId,
|
|
542
561
|
titleRender: titleRender,
|
|
543
562
|
onDoubleclick: _this.handleDoubleClick,
|
|
544
563
|
on: _this.v3 ? undefined : {
|
|
@@ -562,6 +581,7 @@ var WindowVue2 = {
|
|
|
562
581
|
attrs: _this.v3 ? undefined : {
|
|
563
582
|
stage: _this.windowStage,
|
|
564
583
|
title: _this.$props.title,
|
|
584
|
+
titleId: _this.titleId,
|
|
565
585
|
titleRender: titleRender,
|
|
566
586
|
closeButton: closeButton,
|
|
567
587
|
minimizeButton: minimizeButton,
|
|
@@ -569,6 +589,7 @@ var WindowVue2 = {
|
|
|
569
589
|
restoreButton: restoreButton
|
|
570
590
|
},
|
|
571
591
|
title: _this.$props.title,
|
|
592
|
+
titleId: _this.titleId,
|
|
572
593
|
titleRender: titleRender,
|
|
573
594
|
onDoubleclick: _this.handleDoubleClick,
|
|
574
595
|
on: _this.v3 ? undefined : {
|
|
@@ -21,6 +21,7 @@ var WindowTitleBarVue2 = {
|
|
|
21
21
|
maximizeButton: [String, Function, Object, Boolean],
|
|
22
22
|
restoreButton: [String, Function, Object, Boolean],
|
|
23
23
|
title: String,
|
|
24
|
+
titleId: String,
|
|
24
25
|
titleRender: [String, Function, Object, Boolean]
|
|
25
26
|
},
|
|
26
27
|
inject: {
|
|
@@ -175,7 +176,11 @@ var WindowTitleBarVue2 = {
|
|
|
175
176
|
"dblclick": this.onDoubleClick
|
|
176
177
|
}
|
|
177
178
|
}, [h("div", {
|
|
178
|
-
"class": "k-window-title"
|
|
179
|
+
"class": "k-window-title",
|
|
180
|
+
id: this.$props.titleId,
|
|
181
|
+
attrs: this.v3 ? undefined : {
|
|
182
|
+
id: this.$props.titleId
|
|
183
|
+
}
|
|
179
184
|
}, [titleElement]), h("div", {
|
|
180
185
|
"class": "k-window-actions"
|
|
181
186
|
}, [stage === windowStage.DEFAULT && minimizeButtonRender, stage === windowStage.DEFAULT && maximizeButtonRender, stage !== windowStage.DEFAULT && restoreButtonRender, closeButtonRender])]);
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-dialogs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1672389550,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
package/dist/npm/Dialog.d.ts
CHANGED
|
@@ -44,6 +44,10 @@ export interface DialogProps {
|
|
|
44
44
|
* Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
|
|
45
45
|
*/
|
|
46
46
|
onClose?: (event: DialogCloseEvent) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Fires when modal overlay of the Window is clicked.
|
|
49
|
+
*/
|
|
50
|
+
onOverlayclick?: (event: any) => void;
|
|
47
51
|
/**
|
|
48
52
|
* Sets the `aria-labelledby` value.
|
|
49
53
|
*/
|
package/dist/npm/Dialog.js
CHANGED
|
@@ -18,6 +18,11 @@ var constants_1 = require("./constants");
|
|
|
18
18
|
*/
|
|
19
19
|
var DialogVue2 = {
|
|
20
20
|
name: 'KendoDialog',
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
emits: {
|
|
23
|
+
close: null,
|
|
24
|
+
overlayclick: null
|
|
25
|
+
},
|
|
21
26
|
props: {
|
|
22
27
|
appendTo: String,
|
|
23
28
|
title: String,
|
|
@@ -92,6 +97,9 @@ var DialogVue2 = {
|
|
|
92
97
|
},
|
|
93
98
|
generateTitleId: function generateTitleId() {
|
|
94
99
|
return 'dialog-title' + (0, kendo_vue_common_1.guid)();
|
|
100
|
+
},
|
|
101
|
+
handleClick: function handleClick(e) {
|
|
102
|
+
this.$emit('overlayclick', e);
|
|
95
103
|
}
|
|
96
104
|
},
|
|
97
105
|
// @ts-ignore
|
|
@@ -135,7 +143,11 @@ var DialogVue2 = {
|
|
|
135
143
|
id: wrapperId,
|
|
136
144
|
dir: dir
|
|
137
145
|
}, [h("div", {
|
|
138
|
-
"class": "k-overlay"
|
|
146
|
+
"class": "k-overlay",
|
|
147
|
+
onClick: this.handleClick,
|
|
148
|
+
on: this.v3 ? undefined : {
|
|
149
|
+
"click": this.handleClick
|
|
150
|
+
}
|
|
139
151
|
}), h("div", {
|
|
140
152
|
"aria-labelledby": title || titleRender ? id : undefined,
|
|
141
153
|
attrs: this.v3 ? undefined : {
|
package/dist/npm/Window.js
CHANGED
|
@@ -42,7 +42,8 @@ var WindowVue2 = {
|
|
|
42
42
|
'resize': null,
|
|
43
43
|
'move': null,
|
|
44
44
|
'close': null,
|
|
45
|
-
'stagechange': null
|
|
45
|
+
'stagechange': null,
|
|
46
|
+
'overlayclick': null
|
|
46
47
|
},
|
|
47
48
|
provide: function provide() {
|
|
48
49
|
return {
|
|
@@ -145,7 +146,9 @@ var WindowVue2 = {
|
|
|
145
146
|
currentTop: this.getInitialTop(),
|
|
146
147
|
currentLeft: this.getInitialLeft(),
|
|
147
148
|
currentWidth: this.getInitialWidth(),
|
|
148
|
-
currentHeight: this.getInitialHeight()
|
|
149
|
+
currentHeight: this.getInitialHeight(),
|
|
150
|
+
_id: (0, kendo_vue_common_1.guid)(),
|
|
151
|
+
titleId: this.generateTitleId()
|
|
149
152
|
};
|
|
150
153
|
},
|
|
151
154
|
mounted: function mounted() {
|
|
@@ -368,6 +371,9 @@ var WindowVue2 = {
|
|
|
368
371
|
}
|
|
369
372
|
return height;
|
|
370
373
|
},
|
|
374
|
+
generateTitleId: function generateTitleId() {
|
|
375
|
+
return 'window-title-' + this._id;
|
|
376
|
+
},
|
|
371
377
|
handleMinimize: function handleMinimize(event) {
|
|
372
378
|
event.preventDefault();
|
|
373
379
|
this.windowCoordinatesState.leftBeforeAction = this.computedLeft;
|
|
@@ -470,6 +476,9 @@ var WindowVue2 = {
|
|
|
470
476
|
this.currentWidth = window.innerWidth;
|
|
471
477
|
this.currentHeight = window.innerHeight;
|
|
472
478
|
}
|
|
479
|
+
},
|
|
480
|
+
handleClick: function handleClick(e) {
|
|
481
|
+
this.$emit('overlayclick', e);
|
|
473
482
|
}
|
|
474
483
|
},
|
|
475
484
|
// @ts-ignore
|
|
@@ -488,11 +497,17 @@ var WindowVue2 = {
|
|
|
488
497
|
var windowElement = h("div", {
|
|
489
498
|
ref: 'wrapper'
|
|
490
499
|
}, [this.$props.modal && h("div", {
|
|
491
|
-
"class": "k-overlay"
|
|
500
|
+
"class": "k-overlay",
|
|
501
|
+
onClick: this.handleClick,
|
|
502
|
+
on: this.v3 ? undefined : {
|
|
503
|
+
"click": this.handleClick
|
|
504
|
+
}
|
|
492
505
|
}), h("div", {
|
|
493
506
|
tabindex: 0,
|
|
494
507
|
attrs: this.v3 ? undefined : {
|
|
495
|
-
tabindex: 0
|
|
508
|
+
tabindex: 0,
|
|
509
|
+
role: 'dialog',
|
|
510
|
+
"aria-labelledby": this.titleId
|
|
496
511
|
},
|
|
497
512
|
onFocus: function onFocus(e) {
|
|
498
513
|
return e.target.classList.add('k-focus');
|
|
@@ -512,6 +527,8 @@ var WindowVue2 = {
|
|
|
512
527
|
onKeydown: this.handleKeyDown,
|
|
513
528
|
ref: 'windowElement',
|
|
514
529
|
"class": classNamesWindow,
|
|
530
|
+
role: 'dialog',
|
|
531
|
+
"aria-labelledby": this.titleId,
|
|
515
532
|
style: __assign({
|
|
516
533
|
top: this.computedTop + 'px',
|
|
517
534
|
left: this.computedLeft + 'px',
|
|
@@ -538,6 +555,7 @@ var WindowVue2 = {
|
|
|
538
555
|
attrs: _this.v3 ? undefined : {
|
|
539
556
|
stage: _this.windowStage,
|
|
540
557
|
title: _this.$props.title,
|
|
558
|
+
titleId: _this.titleId,
|
|
541
559
|
titleRender: titleRender,
|
|
542
560
|
closeButton: closeButton,
|
|
543
561
|
minimizeButton: minimizeButton,
|
|
@@ -545,6 +563,7 @@ var WindowVue2 = {
|
|
|
545
563
|
restoreButton: restoreButton
|
|
546
564
|
},
|
|
547
565
|
title: _this.$props.title,
|
|
566
|
+
titleId: _this.titleId,
|
|
548
567
|
titleRender: titleRender,
|
|
549
568
|
onDoubleclick: _this.handleDoubleClick,
|
|
550
569
|
on: _this.v3 ? undefined : {
|
|
@@ -568,6 +587,7 @@ var WindowVue2 = {
|
|
|
568
587
|
attrs: _this.v3 ? undefined : {
|
|
569
588
|
stage: _this.windowStage,
|
|
570
589
|
title: _this.$props.title,
|
|
590
|
+
titleId: _this.titleId,
|
|
571
591
|
titleRender: titleRender,
|
|
572
592
|
closeButton: closeButton,
|
|
573
593
|
minimizeButton: minimizeButton,
|
|
@@ -575,6 +595,7 @@ var WindowVue2 = {
|
|
|
575
595
|
restoreButton: restoreButton
|
|
576
596
|
},
|
|
577
597
|
title: _this.$props.title,
|
|
598
|
+
titleId: _this.titleId,
|
|
578
599
|
titleRender: titleRender,
|
|
579
600
|
onDoubleclick: _this.handleDoubleClick,
|
|
580
601
|
on: _this.v3 ? undefined : {
|
|
@@ -27,6 +27,7 @@ var WindowTitleBarVue2 = {
|
|
|
27
27
|
maximizeButton: [String, Function, Object, Boolean],
|
|
28
28
|
restoreButton: [String, Function, Object, Boolean],
|
|
29
29
|
title: String,
|
|
30
|
+
titleId: String,
|
|
30
31
|
titleRender: [String, Function, Object, Boolean]
|
|
31
32
|
},
|
|
32
33
|
inject: {
|
|
@@ -181,7 +182,11 @@ var WindowTitleBarVue2 = {
|
|
|
181
182
|
"dblclick": this.onDoubleClick
|
|
182
183
|
}
|
|
183
184
|
}, [h("div", {
|
|
184
|
-
"class": "k-window-title"
|
|
185
|
+
"class": "k-window-title",
|
|
186
|
+
id: this.$props.titleId,
|
|
187
|
+
attrs: this.v3 ? undefined : {
|
|
188
|
+
id: this.$props.titleId
|
|
189
|
+
}
|
|
185
190
|
}, [titleElement]), h("div", {
|
|
186
191
|
"class": "k-window-actions"
|
|
187
192
|
}, [stage === StageEnum_1.windowStage.DEFAULT && minimizeButtonRender, stage === StageEnum_1.windowStage.DEFAULT && maximizeButtonRender, stage !== StageEnum_1.windowStage.DEFAULT && restoreButtonRender, closeButtonRender])]);
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-dialogs',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1672389550,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
14
14
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-dialogs",
|
|
3
3
|
"description": "Kendo UI for Vue Dialogs package",
|
|
4
|
-
"version": "3.7.4-dev.
|
|
4
|
+
"version": "3.7.4-dev.202212300853",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"vue": "^2.6.12 || ^3.0.2"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@progress/kendo-vue-buttons": "3.7.4-dev.
|
|
47
|
-
"@progress/kendo-vue-common": "3.7.4-dev.
|
|
46
|
+
"@progress/kendo-vue-buttons": "3.7.4-dev.202212300853",
|
|
47
|
+
"@progress/kendo-vue-common": "3.7.4-dev.202212300853"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@progress/kendo-licensing": "^1.1.0",
|
|
51
|
-
"@progress/kendo-vue-intl": "3.7.4-dev.
|
|
51
|
+
"@progress/kendo-vue-intl": "3.7.4-dev.202212300853"
|
|
52
52
|
},
|
|
53
53
|
"author": "Progress",
|
|
54
54
|
"license": "SEE LICENSE IN LICENSE.md",
|