@progress/kendo-vue-dialogs 3.5.4 → 3.6.0-dev.202209130634
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/dist/cdn/js/kendo-vue-dialogs.js +1 -1
- package/dist/es/Dialog.d.ts +4 -3
- package/dist/es/WindowTitlebar.js +25 -8
- package/dist/es/messages/main.d.ts +25 -0
- package/dist/es/messages/main.js +26 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/esm/Dialog.d.ts +4 -3
- package/dist/esm/WindowTitlebar.js +25 -8
- package/dist/esm/messages/main.d.ts +25 -0
- package/dist/esm/messages/main.js +26 -0
- package/dist/esm/package-metadata.js +1 -1
- package/dist/npm/Dialog.d.ts +4 -3
- package/dist/npm/WindowTitlebar.js +27 -8
- package/dist/npm/messages/main.d.ts +25 -0
- package/dist/npm/messages/main.js +29 -0
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +6 -4
package/dist/es/Dialog.d.ts
CHANGED
|
@@ -68,7 +68,8 @@ export interface DialogProps {
|
|
|
68
68
|
/**
|
|
69
69
|
* @hidden
|
|
70
70
|
*/
|
|
71
|
-
export interface DialogMethods
|
|
71
|
+
export interface DialogMethods {
|
|
72
|
+
[key: string]: any;
|
|
72
73
|
handleCloseDialog: (event: any) => void;
|
|
73
74
|
handleKeyDown: (event: any) => void;
|
|
74
75
|
transformDimesion: (initialValue: string | number | undefined) => string;
|
|
@@ -86,12 +87,12 @@ export interface DialogState {
|
|
|
86
87
|
/**
|
|
87
88
|
* @hidden
|
|
88
89
|
*/
|
|
89
|
-
export interface DialogAll extends DialogMethods, DialogState
|
|
90
|
+
export interface DialogAll extends Vue2type, DialogMethods, DialogState {
|
|
90
91
|
}
|
|
91
92
|
/**
|
|
92
93
|
* @hidden
|
|
93
94
|
*/
|
|
94
|
-
declare let DialogVue2: ComponentOptions<
|
|
95
|
+
declare let DialogVue2: ComponentOptions<DialogAll, DefaultData<{}>, DefaultMethods<DialogAll>, {}, RecordPropsDefinition<DialogProps>>;
|
|
95
96
|
/**
|
|
96
97
|
* @hidden
|
|
97
98
|
*/
|
|
@@ -5,12 +5,15 @@ var allVue = Vue;
|
|
|
5
5
|
var gh = allVue.h;
|
|
6
6
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
7
7
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
8
|
+
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
8
9
|
import { windowStage } from './StageEnum';
|
|
10
|
+
import { dialogsWindowCloseButton, dialogsWindowMaximizeButton, dialogsWindowMinimizeButton, dialogsWindowRestoreButton, messages } from './messages/main';
|
|
9
11
|
/**
|
|
10
12
|
* @hidden
|
|
11
13
|
*/
|
|
12
14
|
|
|
13
15
|
var WindowTitleBarVue2 = {
|
|
16
|
+
name: 'KendoWindowTitleBar',
|
|
14
17
|
props: {
|
|
15
18
|
id: String,
|
|
16
19
|
stage: String,
|
|
@@ -21,6 +24,11 @@ var WindowTitleBarVue2 = {
|
|
|
21
24
|
title: String,
|
|
22
25
|
titleRender: [String, Function, Object, Boolean]
|
|
23
26
|
},
|
|
27
|
+
inject: {
|
|
28
|
+
kendoLocalizationService: {
|
|
29
|
+
default: null
|
|
30
|
+
}
|
|
31
|
+
},
|
|
24
32
|
// @ts-ignore
|
|
25
33
|
setup: !isV3 ? undefined : function () {
|
|
26
34
|
var v3 = !!isV3;
|
|
@@ -56,6 +64,7 @@ var WindowTitleBarVue2 = {
|
|
|
56
64
|
maximizeButton = props.maximizeButton,
|
|
57
65
|
restoreButton = props.restoreButton,
|
|
58
66
|
closeButton = props.closeButton;
|
|
67
|
+
var ls = provideLocalizationService(this);
|
|
59
68
|
var titleElement = getTemplate.call(this, {
|
|
60
69
|
h: h,
|
|
61
70
|
template: titleRender,
|
|
@@ -67,7 +76,8 @@ var WindowTitleBarVue2 = {
|
|
|
67
76
|
attrs: this.v3 ? undefined : {
|
|
68
77
|
type: "button",
|
|
69
78
|
icon: 'window-minimize',
|
|
70
|
-
fillMode: 'flat'
|
|
79
|
+
fillMode: 'flat',
|
|
80
|
+
"aria-label": ls.toLanguageString(dialogsWindowMinimizeButton, messages[dialogsWindowMinimizeButton])
|
|
71
81
|
},
|
|
72
82
|
"class": "k-window-action",
|
|
73
83
|
icon: 'window-minimize',
|
|
@@ -75,7 +85,8 @@ var WindowTitleBarVue2 = {
|
|
|
75
85
|
onClick: this.onMinimizeClick,
|
|
76
86
|
on: this.v3 ? undefined : {
|
|
77
87
|
"click": this.onMinimizeClick
|
|
78
|
-
}
|
|
88
|
+
},
|
|
89
|
+
"aria-label": ls.toLanguageString(dialogsWindowMinimizeButton, messages[dialogsWindowMinimizeButton])
|
|
79
90
|
});
|
|
80
91
|
var minimizeButtonRender = getTemplate.call(this, {
|
|
81
92
|
h: h,
|
|
@@ -88,7 +99,8 @@ var WindowTitleBarVue2 = {
|
|
|
88
99
|
attrs: this.v3 ? undefined : {
|
|
89
100
|
type: "button",
|
|
90
101
|
icon: 'window-maximize',
|
|
91
|
-
fillMode: 'flat'
|
|
102
|
+
fillMode: 'flat',
|
|
103
|
+
"aria-label": ls.toLanguageString(dialogsWindowMaximizeButton, messages[dialogsWindowMaximizeButton])
|
|
92
104
|
},
|
|
93
105
|
"class": "k-window-action",
|
|
94
106
|
icon: 'window-maximize',
|
|
@@ -96,7 +108,8 @@ var WindowTitleBarVue2 = {
|
|
|
96
108
|
onClick: this.onFullScreenClick,
|
|
97
109
|
on: this.v3 ? undefined : {
|
|
98
110
|
"click": this.onFullScreenClick
|
|
99
|
-
}
|
|
111
|
+
},
|
|
112
|
+
"aria-label": ls.toLanguageString(dialogsWindowMaximizeButton, messages[dialogsWindowMaximizeButton])
|
|
100
113
|
});
|
|
101
114
|
var maximizeButtonRender = getTemplate.call(this, {
|
|
102
115
|
h: h,
|
|
@@ -109,7 +122,8 @@ var WindowTitleBarVue2 = {
|
|
|
109
122
|
attrs: this.v3 ? undefined : {
|
|
110
123
|
type: "button",
|
|
111
124
|
icon: 'window-restore',
|
|
112
|
-
fillMode: 'flat'
|
|
125
|
+
fillMode: 'flat',
|
|
126
|
+
"aria-label": ls.toLanguageString(dialogsWindowRestoreButton, messages[dialogsWindowRestoreButton])
|
|
113
127
|
},
|
|
114
128
|
"class": "k-window-action",
|
|
115
129
|
icon: 'window-restore',
|
|
@@ -117,7 +131,8 @@ var WindowTitleBarVue2 = {
|
|
|
117
131
|
onClick: this.onRestoreClick,
|
|
118
132
|
on: this.v3 ? undefined : {
|
|
119
133
|
"click": this.onRestoreClick
|
|
120
|
-
}
|
|
134
|
+
},
|
|
135
|
+
"aria-label": ls.toLanguageString(dialogsWindowRestoreButton, messages[dialogsWindowRestoreButton])
|
|
121
136
|
});
|
|
122
137
|
var restoreButtonRender = getTemplate.call(this, {
|
|
123
138
|
h: h,
|
|
@@ -130,7 +145,8 @@ var WindowTitleBarVue2 = {
|
|
|
130
145
|
attrs: this.v3 ? undefined : {
|
|
131
146
|
type: "button",
|
|
132
147
|
icon: 'x',
|
|
133
|
-
fillMode: 'flat'
|
|
148
|
+
fillMode: 'flat',
|
|
149
|
+
"aria-label": ls.toLanguageString(dialogsWindowCloseButton, messages[dialogsWindowCloseButton])
|
|
134
150
|
},
|
|
135
151
|
"class": "k-window-action",
|
|
136
152
|
icon: 'x',
|
|
@@ -138,7 +154,8 @@ var WindowTitleBarVue2 = {
|
|
|
138
154
|
onClick: this.onCloseClick,
|
|
139
155
|
on: this.v3 ? undefined : {
|
|
140
156
|
"click": this.onCloseClick
|
|
141
|
-
}
|
|
157
|
+
},
|
|
158
|
+
"aria-label": ls.toLanguageString(dialogsWindowCloseButton, messages[dialogsWindowCloseButton])
|
|
142
159
|
});
|
|
143
160
|
var closeButtonRender = getTemplate.call(this, {
|
|
144
161
|
h: h,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export declare const dialogsWindowMaximizeButton = "dialogs.windowMaximizeButton";
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare const dialogsWindowMinimizeButton = "dialogs.windowMinimizeButton";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const dialogsWindowRestoreButton = "dialogs.windowRestoreButton";
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const dialogsWindowCloseButton = "dialogs.windowCloseButton";
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const messages: {
|
|
21
|
+
"dialogs.windowMaximizeButton": string;
|
|
22
|
+
"dialogs.windowMinimizeButton": string;
|
|
23
|
+
"dialogs.windowRestoreButton": string;
|
|
24
|
+
"dialogs.windowCloseButton": string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export var dialogsWindowMaximizeButton = 'dialogs.windowMaximizeButton';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export var dialogsWindowMinimizeButton = 'dialogs.windowMinimizeButton';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export var dialogsWindowRestoreButton = 'dialogs.windowRestoreButton';
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export var dialogsWindowCloseButton = 'dialogs.windowCloseButton';
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export var messages = (_a = {},
|
|
22
|
+
_a[dialogsWindowMaximizeButton] = 'maximize',
|
|
23
|
+
_a[dialogsWindowMinimizeButton] = 'minimize',
|
|
24
|
+
_a[dialogsWindowRestoreButton] = 'restore',
|
|
25
|
+
_a[dialogsWindowCloseButton] = 'close',
|
|
26
|
+
_a);
|
|
@@ -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: 1663050088,
|
|
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
|
@@ -68,7 +68,8 @@ export interface DialogProps {
|
|
|
68
68
|
/**
|
|
69
69
|
* @hidden
|
|
70
70
|
*/
|
|
71
|
-
export interface DialogMethods
|
|
71
|
+
export interface DialogMethods {
|
|
72
|
+
[key: string]: any;
|
|
72
73
|
handleCloseDialog: (event: any) => void;
|
|
73
74
|
handleKeyDown: (event: any) => void;
|
|
74
75
|
transformDimesion: (initialValue: string | number | undefined) => string;
|
|
@@ -86,12 +87,12 @@ export interface DialogState {
|
|
|
86
87
|
/**
|
|
87
88
|
* @hidden
|
|
88
89
|
*/
|
|
89
|
-
export interface DialogAll extends DialogMethods, DialogState
|
|
90
|
+
export interface DialogAll extends Vue2type, DialogMethods, DialogState {
|
|
90
91
|
}
|
|
91
92
|
/**
|
|
92
93
|
* @hidden
|
|
93
94
|
*/
|
|
94
|
-
declare let DialogVue2: ComponentOptions<
|
|
95
|
+
declare let DialogVue2: ComponentOptions<DialogAll, DefaultData<{}>, DefaultMethods<DialogAll>, {}, RecordPropsDefinition<DialogProps>>;
|
|
95
96
|
/**
|
|
96
97
|
* @hidden
|
|
97
98
|
*/
|
|
@@ -5,12 +5,15 @@ var allVue = Vue;
|
|
|
5
5
|
var gh = allVue.h;
|
|
6
6
|
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
7
7
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
8
|
+
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
8
9
|
import { windowStage } from './StageEnum.js';
|
|
10
|
+
import { dialogsWindowCloseButton, dialogsWindowMaximizeButton, dialogsWindowMinimizeButton, dialogsWindowRestoreButton, messages } from './messages/main.js';
|
|
9
11
|
/**
|
|
10
12
|
* @hidden
|
|
11
13
|
*/
|
|
12
14
|
|
|
13
15
|
var WindowTitleBarVue2 = {
|
|
16
|
+
name: 'KendoWindowTitleBar',
|
|
14
17
|
props: {
|
|
15
18
|
id: String,
|
|
16
19
|
stage: String,
|
|
@@ -21,6 +24,11 @@ var WindowTitleBarVue2 = {
|
|
|
21
24
|
title: String,
|
|
22
25
|
titleRender: [String, Function, Object, Boolean]
|
|
23
26
|
},
|
|
27
|
+
inject: {
|
|
28
|
+
kendoLocalizationService: {
|
|
29
|
+
default: null
|
|
30
|
+
}
|
|
31
|
+
},
|
|
24
32
|
// @ts-ignore
|
|
25
33
|
setup: !isV3 ? undefined : function () {
|
|
26
34
|
var v3 = !!isV3;
|
|
@@ -56,6 +64,7 @@ var WindowTitleBarVue2 = {
|
|
|
56
64
|
maximizeButton = props.maximizeButton,
|
|
57
65
|
restoreButton = props.restoreButton,
|
|
58
66
|
closeButton = props.closeButton;
|
|
67
|
+
var ls = provideLocalizationService(this);
|
|
59
68
|
var titleElement = getTemplate.call(this, {
|
|
60
69
|
h: h,
|
|
61
70
|
template: titleRender,
|
|
@@ -67,7 +76,8 @@ var WindowTitleBarVue2 = {
|
|
|
67
76
|
attrs: this.v3 ? undefined : {
|
|
68
77
|
type: "button",
|
|
69
78
|
icon: 'window-minimize',
|
|
70
|
-
fillMode: 'flat'
|
|
79
|
+
fillMode: 'flat',
|
|
80
|
+
"aria-label": ls.toLanguageString(dialogsWindowMinimizeButton, messages[dialogsWindowMinimizeButton])
|
|
71
81
|
},
|
|
72
82
|
"class": "k-window-action",
|
|
73
83
|
icon: 'window-minimize',
|
|
@@ -75,7 +85,8 @@ var WindowTitleBarVue2 = {
|
|
|
75
85
|
onClick: this.onMinimizeClick,
|
|
76
86
|
on: this.v3 ? undefined : {
|
|
77
87
|
"click": this.onMinimizeClick
|
|
78
|
-
}
|
|
88
|
+
},
|
|
89
|
+
"aria-label": ls.toLanguageString(dialogsWindowMinimizeButton, messages[dialogsWindowMinimizeButton])
|
|
79
90
|
});
|
|
80
91
|
var minimizeButtonRender = getTemplate.call(this, {
|
|
81
92
|
h: h,
|
|
@@ -88,7 +99,8 @@ var WindowTitleBarVue2 = {
|
|
|
88
99
|
attrs: this.v3 ? undefined : {
|
|
89
100
|
type: "button",
|
|
90
101
|
icon: 'window-maximize',
|
|
91
|
-
fillMode: 'flat'
|
|
102
|
+
fillMode: 'flat',
|
|
103
|
+
"aria-label": ls.toLanguageString(dialogsWindowMaximizeButton, messages[dialogsWindowMaximizeButton])
|
|
92
104
|
},
|
|
93
105
|
"class": "k-window-action",
|
|
94
106
|
icon: 'window-maximize',
|
|
@@ -96,7 +108,8 @@ var WindowTitleBarVue2 = {
|
|
|
96
108
|
onClick: this.onFullScreenClick,
|
|
97
109
|
on: this.v3 ? undefined : {
|
|
98
110
|
"click": this.onFullScreenClick
|
|
99
|
-
}
|
|
111
|
+
},
|
|
112
|
+
"aria-label": ls.toLanguageString(dialogsWindowMaximizeButton, messages[dialogsWindowMaximizeButton])
|
|
100
113
|
});
|
|
101
114
|
var maximizeButtonRender = getTemplate.call(this, {
|
|
102
115
|
h: h,
|
|
@@ -109,7 +122,8 @@ var WindowTitleBarVue2 = {
|
|
|
109
122
|
attrs: this.v3 ? undefined : {
|
|
110
123
|
type: "button",
|
|
111
124
|
icon: 'window-restore',
|
|
112
|
-
fillMode: 'flat'
|
|
125
|
+
fillMode: 'flat',
|
|
126
|
+
"aria-label": ls.toLanguageString(dialogsWindowRestoreButton, messages[dialogsWindowRestoreButton])
|
|
113
127
|
},
|
|
114
128
|
"class": "k-window-action",
|
|
115
129
|
icon: 'window-restore',
|
|
@@ -117,7 +131,8 @@ var WindowTitleBarVue2 = {
|
|
|
117
131
|
onClick: this.onRestoreClick,
|
|
118
132
|
on: this.v3 ? undefined : {
|
|
119
133
|
"click": this.onRestoreClick
|
|
120
|
-
}
|
|
134
|
+
},
|
|
135
|
+
"aria-label": ls.toLanguageString(dialogsWindowRestoreButton, messages[dialogsWindowRestoreButton])
|
|
121
136
|
});
|
|
122
137
|
var restoreButtonRender = getTemplate.call(this, {
|
|
123
138
|
h: h,
|
|
@@ -130,7 +145,8 @@ var WindowTitleBarVue2 = {
|
|
|
130
145
|
attrs: this.v3 ? undefined : {
|
|
131
146
|
type: "button",
|
|
132
147
|
icon: 'x',
|
|
133
|
-
fillMode: 'flat'
|
|
148
|
+
fillMode: 'flat',
|
|
149
|
+
"aria-label": ls.toLanguageString(dialogsWindowCloseButton, messages[dialogsWindowCloseButton])
|
|
134
150
|
},
|
|
135
151
|
"class": "k-window-action",
|
|
136
152
|
icon: 'x',
|
|
@@ -138,7 +154,8 @@ var WindowTitleBarVue2 = {
|
|
|
138
154
|
onClick: this.onCloseClick,
|
|
139
155
|
on: this.v3 ? undefined : {
|
|
140
156
|
"click": this.onCloseClick
|
|
141
|
-
}
|
|
157
|
+
},
|
|
158
|
+
"aria-label": ls.toLanguageString(dialogsWindowCloseButton, messages[dialogsWindowCloseButton])
|
|
142
159
|
});
|
|
143
160
|
var closeButtonRender = getTemplate.call(this, {
|
|
144
161
|
h: h,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export declare const dialogsWindowMaximizeButton = "dialogs.windowMaximizeButton";
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare const dialogsWindowMinimizeButton = "dialogs.windowMinimizeButton";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const dialogsWindowRestoreButton = "dialogs.windowRestoreButton";
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const dialogsWindowCloseButton = "dialogs.windowCloseButton";
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const messages: {
|
|
21
|
+
"dialogs.windowMaximizeButton": string;
|
|
22
|
+
"dialogs.windowMinimizeButton": string;
|
|
23
|
+
"dialogs.windowRestoreButton": string;
|
|
24
|
+
"dialogs.windowCloseButton": string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
/**
|
|
3
|
+
* @hidden
|
|
4
|
+
*/
|
|
5
|
+
export var dialogsWindowMaximizeButton = 'dialogs.windowMaximizeButton';
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
export var dialogsWindowMinimizeButton = 'dialogs.windowMinimizeButton';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export var dialogsWindowRestoreButton = 'dialogs.windowRestoreButton';
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export var dialogsWindowCloseButton = 'dialogs.windowCloseButton';
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export var messages = (_a = {},
|
|
22
|
+
_a[dialogsWindowMaximizeButton] = 'maximize',
|
|
23
|
+
_a[dialogsWindowMinimizeButton] = 'minimize',
|
|
24
|
+
_a[dialogsWindowRestoreButton] = 'restore',
|
|
25
|
+
_a[dialogsWindowCloseButton] = 'close',
|
|
26
|
+
_a);
|
|
@@ -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: 1663050088,
|
|
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
|
@@ -68,7 +68,8 @@ export interface DialogProps {
|
|
|
68
68
|
/**
|
|
69
69
|
* @hidden
|
|
70
70
|
*/
|
|
71
|
-
export interface DialogMethods
|
|
71
|
+
export interface DialogMethods {
|
|
72
|
+
[key: string]: any;
|
|
72
73
|
handleCloseDialog: (event: any) => void;
|
|
73
74
|
handleKeyDown: (event: any) => void;
|
|
74
75
|
transformDimesion: (initialValue: string | number | undefined) => string;
|
|
@@ -86,12 +87,12 @@ export interface DialogState {
|
|
|
86
87
|
/**
|
|
87
88
|
* @hidden
|
|
88
89
|
*/
|
|
89
|
-
export interface DialogAll extends DialogMethods, DialogState
|
|
90
|
+
export interface DialogAll extends Vue2type, DialogMethods, DialogState {
|
|
90
91
|
}
|
|
91
92
|
/**
|
|
92
93
|
* @hidden
|
|
93
94
|
*/
|
|
94
|
-
declare let DialogVue2: ComponentOptions<
|
|
95
|
+
declare let DialogVue2: ComponentOptions<DialogAll, DefaultData<{}>, DefaultMethods<DialogAll>, {}, RecordPropsDefinition<DialogProps>>;
|
|
95
96
|
/**
|
|
96
97
|
* @hidden
|
|
97
98
|
*/
|
|
@@ -15,13 +15,18 @@ var isV3 = allVue.version && allVue.version[0] === '3';
|
|
|
15
15
|
|
|
16
16
|
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
17
17
|
|
|
18
|
+
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
19
|
+
|
|
18
20
|
var StageEnum_1 = require("./StageEnum");
|
|
21
|
+
|
|
22
|
+
var main_1 = require("./messages/main");
|
|
19
23
|
/**
|
|
20
24
|
* @hidden
|
|
21
25
|
*/
|
|
22
26
|
|
|
23
27
|
|
|
24
28
|
var WindowTitleBarVue2 = {
|
|
29
|
+
name: 'KendoWindowTitleBar',
|
|
25
30
|
props: {
|
|
26
31
|
id: String,
|
|
27
32
|
stage: String,
|
|
@@ -32,6 +37,11 @@ var WindowTitleBarVue2 = {
|
|
|
32
37
|
title: String,
|
|
33
38
|
titleRender: [String, Function, Object, Boolean]
|
|
34
39
|
},
|
|
40
|
+
inject: {
|
|
41
|
+
kendoLocalizationService: {
|
|
42
|
+
default: null
|
|
43
|
+
}
|
|
44
|
+
},
|
|
35
45
|
// @ts-ignore
|
|
36
46
|
setup: !isV3 ? undefined : function () {
|
|
37
47
|
var v3 = !!isV3;
|
|
@@ -67,6 +77,7 @@ var WindowTitleBarVue2 = {
|
|
|
67
77
|
maximizeButton = props.maximizeButton,
|
|
68
78
|
restoreButton = props.restoreButton,
|
|
69
79
|
closeButton = props.closeButton;
|
|
80
|
+
var ls = (0, kendo_vue_intl_1.provideLocalizationService)(this);
|
|
70
81
|
var titleElement = kendo_vue_common_1.getTemplate.call(this, {
|
|
71
82
|
h: h,
|
|
72
83
|
template: titleRender,
|
|
@@ -78,7 +89,8 @@ var WindowTitleBarVue2 = {
|
|
|
78
89
|
attrs: this.v3 ? undefined : {
|
|
79
90
|
type: "button",
|
|
80
91
|
icon: 'window-minimize',
|
|
81
|
-
fillMode: 'flat'
|
|
92
|
+
fillMode: 'flat',
|
|
93
|
+
"aria-label": ls.toLanguageString(main_1.dialogsWindowMinimizeButton, main_1.messages[main_1.dialogsWindowMinimizeButton])
|
|
82
94
|
},
|
|
83
95
|
"class": "k-window-action",
|
|
84
96
|
icon: 'window-minimize',
|
|
@@ -86,7 +98,8 @@ var WindowTitleBarVue2 = {
|
|
|
86
98
|
onClick: this.onMinimizeClick,
|
|
87
99
|
on: this.v3 ? undefined : {
|
|
88
100
|
"click": this.onMinimizeClick
|
|
89
|
-
}
|
|
101
|
+
},
|
|
102
|
+
"aria-label": ls.toLanguageString(main_1.dialogsWindowMinimizeButton, main_1.messages[main_1.dialogsWindowMinimizeButton])
|
|
90
103
|
});
|
|
91
104
|
var minimizeButtonRender = kendo_vue_common_1.getTemplate.call(this, {
|
|
92
105
|
h: h,
|
|
@@ -99,7 +112,8 @@ var WindowTitleBarVue2 = {
|
|
|
99
112
|
attrs: this.v3 ? undefined : {
|
|
100
113
|
type: "button",
|
|
101
114
|
icon: 'window-maximize',
|
|
102
|
-
fillMode: 'flat'
|
|
115
|
+
fillMode: 'flat',
|
|
116
|
+
"aria-label": ls.toLanguageString(main_1.dialogsWindowMaximizeButton, main_1.messages[main_1.dialogsWindowMaximizeButton])
|
|
103
117
|
},
|
|
104
118
|
"class": "k-window-action",
|
|
105
119
|
icon: 'window-maximize',
|
|
@@ -107,7 +121,8 @@ var WindowTitleBarVue2 = {
|
|
|
107
121
|
onClick: this.onFullScreenClick,
|
|
108
122
|
on: this.v3 ? undefined : {
|
|
109
123
|
"click": this.onFullScreenClick
|
|
110
|
-
}
|
|
124
|
+
},
|
|
125
|
+
"aria-label": ls.toLanguageString(main_1.dialogsWindowMaximizeButton, main_1.messages[main_1.dialogsWindowMaximizeButton])
|
|
111
126
|
});
|
|
112
127
|
var maximizeButtonRender = kendo_vue_common_1.getTemplate.call(this, {
|
|
113
128
|
h: h,
|
|
@@ -120,7 +135,8 @@ var WindowTitleBarVue2 = {
|
|
|
120
135
|
attrs: this.v3 ? undefined : {
|
|
121
136
|
type: "button",
|
|
122
137
|
icon: 'window-restore',
|
|
123
|
-
fillMode: 'flat'
|
|
138
|
+
fillMode: 'flat',
|
|
139
|
+
"aria-label": ls.toLanguageString(main_1.dialogsWindowRestoreButton, main_1.messages[main_1.dialogsWindowRestoreButton])
|
|
124
140
|
},
|
|
125
141
|
"class": "k-window-action",
|
|
126
142
|
icon: 'window-restore',
|
|
@@ -128,7 +144,8 @@ var WindowTitleBarVue2 = {
|
|
|
128
144
|
onClick: this.onRestoreClick,
|
|
129
145
|
on: this.v3 ? undefined : {
|
|
130
146
|
"click": this.onRestoreClick
|
|
131
|
-
}
|
|
147
|
+
},
|
|
148
|
+
"aria-label": ls.toLanguageString(main_1.dialogsWindowRestoreButton, main_1.messages[main_1.dialogsWindowRestoreButton])
|
|
132
149
|
});
|
|
133
150
|
var restoreButtonRender = kendo_vue_common_1.getTemplate.call(this, {
|
|
134
151
|
h: h,
|
|
@@ -141,7 +158,8 @@ var WindowTitleBarVue2 = {
|
|
|
141
158
|
attrs: this.v3 ? undefined : {
|
|
142
159
|
type: "button",
|
|
143
160
|
icon: 'x',
|
|
144
|
-
fillMode: 'flat'
|
|
161
|
+
fillMode: 'flat',
|
|
162
|
+
"aria-label": ls.toLanguageString(main_1.dialogsWindowCloseButton, main_1.messages[main_1.dialogsWindowCloseButton])
|
|
145
163
|
},
|
|
146
164
|
"class": "k-window-action",
|
|
147
165
|
icon: 'x',
|
|
@@ -149,7 +167,8 @@ var WindowTitleBarVue2 = {
|
|
|
149
167
|
onClick: this.onCloseClick,
|
|
150
168
|
on: this.v3 ? undefined : {
|
|
151
169
|
"click": this.onCloseClick
|
|
152
|
-
}
|
|
170
|
+
},
|
|
171
|
+
"aria-label": ls.toLanguageString(main_1.dialogsWindowCloseButton, main_1.messages[main_1.dialogsWindowCloseButton])
|
|
153
172
|
});
|
|
154
173
|
var closeButtonRender = kendo_vue_common_1.getTemplate.call(this, {
|
|
155
174
|
h: h,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @hidden
|
|
3
|
+
*/
|
|
4
|
+
export declare const dialogsWindowMaximizeButton = "dialogs.windowMaximizeButton";
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare const dialogsWindowMinimizeButton = "dialogs.windowMinimizeButton";
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const dialogsWindowRestoreButton = "dialogs.windowRestoreButton";
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const dialogsWindowCloseButton = "dialogs.windowCloseButton";
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare const messages: {
|
|
21
|
+
"dialogs.windowMaximizeButton": string;
|
|
22
|
+
"dialogs.windowMinimizeButton": string;
|
|
23
|
+
"dialogs.windowRestoreButton": string;
|
|
24
|
+
"dialogs.windowCloseButton": string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.messages = exports.dialogsWindowCloseButton = exports.dialogsWindowRestoreButton = exports.dialogsWindowMinimizeButton = exports.dialogsWindowMaximizeButton = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
exports.dialogsWindowMaximizeButton = 'dialogs.windowMaximizeButton';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
exports.dialogsWindowMinimizeButton = 'dialogs.windowMinimizeButton';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
exports.dialogsWindowRestoreButton = 'dialogs.windowRestoreButton';
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
exports.dialogsWindowCloseButton = 'dialogs.windowCloseButton';
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
exports.messages = (_a = {},
|
|
25
|
+
_a[exports.dialogsWindowMaximizeButton] = 'maximize',
|
|
26
|
+
_a[exports.dialogsWindowMinimizeButton] = 'minimize',
|
|
27
|
+
_a[exports.dialogsWindowRestoreButton] = 'restore',
|
|
28
|
+
_a[exports.dialogsWindowCloseButton] = 'close',
|
|
29
|
+
_a);
|
|
@@ -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: 1663050088,
|
|
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.
|
|
4
|
+
"version": "3.6.0-dev.202209130634",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -39,14 +39,16 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@progress/kendo-licensing": "^1.1.0",
|
|
42
|
+
"@progress/kendo-vue-intl": "^3.5.3",
|
|
42
43
|
"vue": "^2.6.12 || ^3.0.2"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@progress/kendo-vue-buttons": "3.
|
|
46
|
-
"@progress/kendo-vue-common": "3.
|
|
46
|
+
"@progress/kendo-vue-buttons": "3.6.0-dev.202209130634",
|
|
47
|
+
"@progress/kendo-vue-common": "3.6.0-dev.202209130634"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@progress/kendo-licensing": "^1.1.0"
|
|
50
|
+
"@progress/kendo-licensing": "^1.1.0",
|
|
51
|
+
"@progress/kendo-vue-intl": "3.6.0-dev.202209130634"
|
|
50
52
|
},
|
|
51
53
|
"author": "Progress",
|
|
52
54
|
"license": "SEE LICENSE IN LICENSE.md",
|