@progress/kendo-vue-dialogs 5.3.0-dev.202409130647 → 5.3.0-develop.1
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/Dialog.js +8 -0
- package/Dialog.mjs +157 -0
- package/DialogActionsBar.js +8 -0
- package/DialogActionsBar.mjs +52 -0
- package/DialogTitleBar.js +8 -0
- package/DialogTitleBar.mjs +59 -0
- package/README.md +27 -36
- package/StageEnum.js +8 -0
- package/StageEnum.mjs +11 -0
- package/Window.js +8 -0
- package/Window.mjs +381 -0
- package/WindowResizeHandlers.js +8 -0
- package/WindowResizeHandlers.mjs +49 -0
- package/WindowTitlebar.js +8 -0
- package/WindowTitlebar.mjs +135 -0
- package/constants.js +8 -0
- package/constants.mjs +11 -0
- package/dist/cdn/js/kendo-vue-dialogs.js +8 -1
- package/index.d.mts +595 -0
- package/index.d.ts +595 -0
- package/index.js +8 -0
- package/index.mjs +15 -0
- package/messages/main.js +8 -0
- package/messages/main.mjs +20 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +18 -0
- package/package.json +22 -39
- package/dist/es/Dialog.d.ts +0 -109
- package/dist/es/Dialog.js +0 -225
- package/dist/es/DialogActionsBar.d.ts +0 -50
- package/dist/es/DialogActionsBar.js +0 -61
- package/dist/es/DialogTitleBar.d.ts +0 -46
- package/dist/es/DialogTitleBar.js +0 -85
- package/dist/es/StageEnum.d.ts +0 -5
- package/dist/es/StageEnum.js +0 -6
- package/dist/es/Window.d.ts +0 -75
- package/dist/es/Window.js +0 -663
- package/dist/es/WindowProps.d.ts +0 -138
- package/dist/es/WindowProps.js +0 -2
- package/dist/es/WindowResizeHandlers.d.ts +0 -30
- package/dist/es/WindowResizeHandlers.js +0 -89
- package/dist/es/WindowTitlebar.d.ts +0 -86
- package/dist/es/WindowTitlebar.js +0 -202
- package/dist/es/additionalTypes.ts +0 -21
- package/dist/es/constants.d.ts +0 -2
- package/dist/es/constants.js +0 -2
- package/dist/es/events.d.ts +0 -34
- package/dist/es/events.js +0 -2
- package/dist/es/main.d.ts +0 -6
- package/dist/es/main.js +0 -4
- package/dist/es/messages/main.d.ts +0 -25
- package/dist/es/messages/main.js +0 -26
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/esm/Dialog.d.ts +0 -109
- package/dist/esm/Dialog.js +0 -225
- package/dist/esm/DialogActionsBar.d.ts +0 -50
- package/dist/esm/DialogActionsBar.js +0 -61
- package/dist/esm/DialogTitleBar.d.ts +0 -46
- package/dist/esm/DialogTitleBar.js +0 -85
- package/dist/esm/StageEnum.d.ts +0 -5
- package/dist/esm/StageEnum.js +0 -6
- package/dist/esm/Window.d.ts +0 -75
- package/dist/esm/Window.js +0 -663
- package/dist/esm/WindowProps.d.ts +0 -138
- package/dist/esm/WindowProps.js +0 -2
- package/dist/esm/WindowResizeHandlers.d.ts +0 -30
- package/dist/esm/WindowResizeHandlers.js +0 -89
- package/dist/esm/WindowTitlebar.d.ts +0 -86
- package/dist/esm/WindowTitlebar.js +0 -202
- package/dist/esm/additionalTypes.ts +0 -21
- package/dist/esm/constants.d.ts +0 -2
- package/dist/esm/constants.js +0 -2
- package/dist/esm/events.d.ts +0 -34
- package/dist/esm/events.js +0 -2
- package/dist/esm/main.d.ts +0 -6
- package/dist/esm/main.js +0 -4
- package/dist/esm/messages/main.d.ts +0 -25
- package/dist/esm/messages/main.js +0 -26
- package/dist/esm/package-metadata.d.ts +0 -5
- package/dist/esm/package-metadata.js +0 -11
- package/dist/esm/package.json +0 -3
- package/dist/npm/Dialog.d.ts +0 -109
- package/dist/npm/Dialog.js +0 -232
- package/dist/npm/DialogActionsBar.d.ts +0 -50
- package/dist/npm/DialogActionsBar.js +0 -68
- package/dist/npm/DialogTitleBar.d.ts +0 -46
- package/dist/npm/DialogTitleBar.js +0 -92
- package/dist/npm/StageEnum.d.ts +0 -5
- package/dist/npm/StageEnum.js +0 -9
- package/dist/npm/Window.d.ts +0 -75
- package/dist/npm/Window.js +0 -670
- package/dist/npm/WindowProps.d.ts +0 -138
- package/dist/npm/WindowProps.js +0 -6
- package/dist/npm/WindowResizeHandlers.d.ts +0 -30
- package/dist/npm/WindowResizeHandlers.js +0 -96
- package/dist/npm/WindowTitlebar.d.ts +0 -86
- package/dist/npm/WindowTitlebar.js +0 -209
- package/dist/npm/additionalTypes.ts +0 -21
- package/dist/npm/constants.d.ts +0 -2
- package/dist/npm/constants.js +0 -5
- package/dist/npm/events.d.ts +0 -34
- package/dist/npm/events.js +0 -3
- package/dist/npm/main.d.ts +0 -6
- package/dist/npm/main.js +0 -12
- package/dist/npm/messages/main.d.ts +0 -25
- package/dist/npm/messages/main.js +0 -29
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
package/dist/es/WindowProps.d.ts
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { WindowActionsEvent, WindowMoveEvent } from './events';
|
|
2
|
-
import { windowStage } from './StageEnum';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the props of the [Window component]({% slug overview_window %}).
|
|
5
|
-
*/
|
|
6
|
-
export interface WindowProps {
|
|
7
|
-
/**
|
|
8
|
-
* The id of the window.
|
|
9
|
-
*/
|
|
10
|
-
id?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Defines the string selector to the element to which the Window will be appended. Defaults to its parent element.
|
|
13
|
-
*/
|
|
14
|
-
appendTo?: String;
|
|
15
|
-
/**
|
|
16
|
-
* Acccepts a named slot `string`, functional or class component for the close button. If set to `false` the button is not rendered.
|
|
17
|
-
* @default true
|
|
18
|
-
*/
|
|
19
|
-
closeButton?: string | Function | object | boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies if the Window stage will change on title double click. The this is on by default.
|
|
22
|
-
*/
|
|
23
|
-
doubleClickStageChange?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Specifies if the Window will be draggable ([see example]({% slug positioningdragging_window %}#toc-dragging)).
|
|
26
|
-
*/
|
|
27
|
-
draggable?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Specifies the height of the Window ([see example]({% slug dimensionsresizing_window %}#toc-dimensions)).
|
|
30
|
-
*/
|
|
31
|
-
height?: number;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies the initial `left` value ([see example]({% slug positioningdragging_window %}#toc-positioning)). The Window will be in an uncontrolled mode.
|
|
34
|
-
*/
|
|
35
|
-
initialLeft?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Specifies the initial `top` value ([see example]({% slug positioningdragging_window %}#toc-positioning)). The component will be in an uncontrolled mode.
|
|
38
|
-
*/
|
|
39
|
-
initialTop?: number;
|
|
40
|
-
/**
|
|
41
|
-
* Specifies the initial width of the Window ([see example]({% slug dimensionsresizing_window %}#toc-dimensions)). The component will be in an uncontrolled mode.
|
|
42
|
-
*/
|
|
43
|
-
initialWidth?: number;
|
|
44
|
-
/**
|
|
45
|
-
* Specifies the initial height of the Window ([see example]({% slug dimensionsresizing_window %}#toc-dimensions)). The component will be in an uncontrolled mode.
|
|
46
|
-
*/
|
|
47
|
-
initialHeight?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Specifies the left coordinates of the Window.
|
|
50
|
-
*/
|
|
51
|
-
left?: number;
|
|
52
|
-
windowStyle?: object;
|
|
53
|
-
windowClass?: string;
|
|
54
|
-
/**
|
|
55
|
-
* Acccepts a named slot `string`, functional or class component for the maximize button. If set to `false` the button is not rendered.
|
|
56
|
-
* @default true
|
|
57
|
-
*/
|
|
58
|
-
maximizeButton?: string | Function | object | boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Specifies the minimum height of the Window ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
|
|
61
|
-
*/
|
|
62
|
-
minHeight?: number;
|
|
63
|
-
/**
|
|
64
|
-
* Specifies the minimum width of the Window ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
|
|
65
|
-
*/
|
|
66
|
-
minWidth?: number;
|
|
67
|
-
/**
|
|
68
|
-
* Acccepts a named slot `string`, functional or class component for the minimize button. If set to `false` the button is not rendered.
|
|
69
|
-
* @default true
|
|
70
|
-
*/
|
|
71
|
-
minimizeButton?: string | Function | object | boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Specifies if the Window will be modal by rendering an overlay under the component.
|
|
74
|
-
*/
|
|
75
|
-
modal?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Specifies if the Window will be resizable ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
|
|
78
|
-
*/
|
|
79
|
-
resizable?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Specifies the theme color of the Dialog.
|
|
82
|
-
*/
|
|
83
|
-
themeColor?: 'promary' | 'dark' | 'light' | string;
|
|
84
|
-
/**
|
|
85
|
-
* Acccepts a named slot `string`, functional or class component for the restore button. If set to `false` the button is not rendered.
|
|
86
|
-
* @default true
|
|
87
|
-
*/
|
|
88
|
-
restoreButton?: string | Function | object | boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Specifies if the Window content will update during resizing.
|
|
91
|
-
*/
|
|
92
|
-
shouldUpdateOnDrag?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Specifies the title of the Window ([see example]({% slug title_window %})).
|
|
95
|
-
*/
|
|
96
|
-
title?: string | any;
|
|
97
|
-
/**
|
|
98
|
-
* Acccepts a named slot `string`, functional or class component for the title render.
|
|
99
|
-
*/
|
|
100
|
-
titleRender?: string | Function | object;
|
|
101
|
-
/**
|
|
102
|
-
* Specifies the top coordinates of the Window.
|
|
103
|
-
*/
|
|
104
|
-
top?: number;
|
|
105
|
-
/**
|
|
106
|
-
* Specifies the width of the Window.
|
|
107
|
-
*/
|
|
108
|
-
width?: number;
|
|
109
|
-
/**
|
|
110
|
-
* Controls the state of the Window ([see example]({% slug windowstage_window %})).
|
|
111
|
-
*
|
|
112
|
-
* The supported values are:
|
|
113
|
-
* * `DEFAULT`
|
|
114
|
-
* * `MINIMIZED`
|
|
115
|
-
* * `FULLSCREEN`
|
|
116
|
-
*/
|
|
117
|
-
stage?: windowStage | string;
|
|
118
|
-
/**
|
|
119
|
-
* Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
|
|
120
|
-
*/
|
|
121
|
-
onClose?: (event: WindowActionsEvent) => void;
|
|
122
|
-
/**
|
|
123
|
-
* Fires when the Window is dragged.
|
|
124
|
-
*/
|
|
125
|
-
onMove?: (event: WindowMoveEvent) => void;
|
|
126
|
-
/**
|
|
127
|
-
* Fires when the `DEFAULT`, `FULLSCREEN`, or `MINIMIZED` state of the Window is changed.
|
|
128
|
-
*/
|
|
129
|
-
onStagechange?: (event: WindowActionsEvent) => void;
|
|
130
|
-
/**
|
|
131
|
-
* Fires when the Window resizes.
|
|
132
|
-
*/
|
|
133
|
-
onResize?: (event: WindowMoveEvent) => void;
|
|
134
|
-
/**
|
|
135
|
-
* Fires when modal overlay of the Window is clicked.
|
|
136
|
-
*/
|
|
137
|
-
onOverlayclick?: (event: any) => void;
|
|
138
|
-
}
|
package/dist/es/WindowProps.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from './additionalTypes';
|
|
2
|
-
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
-
declare type DefaultMethods<V> = {
|
|
4
|
-
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export interface ResizeHandlersProps {
|
|
10
|
-
onResize: (e: any, args: {
|
|
11
|
-
end: boolean;
|
|
12
|
-
direction: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export interface ResizeHandlersMethods extends Vue2type {
|
|
19
|
-
onDrag: (data: any, key: string) => void;
|
|
20
|
-
onRelease: (data: any, key: string) => void;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
declare let ResizeHandlersVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ResizeHandlersMethods>, {}, RecordPropsDefinition<ResizeHandlersProps>>;
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
declare const ResizeHandlers: DefineComponent<ResizeHandlersProps, any, {}, {}, ResizeHandlersMethods, {}, {}, {}, string, ResizeHandlersProps, ResizeHandlersProps, {}>;
|
|
30
|
-
export { ResizeHandlers, ResizeHandlersVue2 };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import * as Vue from 'vue';
|
|
3
|
-
var allVue = Vue;
|
|
4
|
-
var gh = allVue.h;
|
|
5
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
6
|
-
import { Draggable } from '@progress/kendo-vue-common';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
var keys = ['n', 'e', 's', 'w', 'se', 'sw', 'ne', 'nw'];
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
var ResizeHandlersVue2 = {
|
|
15
|
-
name: 'ResizeHandlers',
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
emits: {
|
|
18
|
-
'resize': null
|
|
19
|
-
},
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
setup: !isV3 ? undefined : function () {
|
|
22
|
-
var v3 = !!isV3;
|
|
23
|
-
return {
|
|
24
|
-
v3: v3
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
methods: {
|
|
28
|
-
onDrag: function onDrag(event, key) {
|
|
29
|
-
event.originalEvent.preventDefault();
|
|
30
|
-
this.$emit('resize', event, {
|
|
31
|
-
end: false,
|
|
32
|
-
direction: key
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
onRelease: function onRelease(event, key) {
|
|
36
|
-
event.originalEvent.preventDefault();
|
|
37
|
-
this.$emit('resize', event, {
|
|
38
|
-
end: true,
|
|
39
|
-
direction: key
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
render: function render(createElement) {
|
|
45
|
-
var h = gh || createElement;
|
|
46
|
-
return h("div", [keys.map(function (key, index) {
|
|
47
|
-
var _this = this;
|
|
48
|
-
return (
|
|
49
|
-
// @ts-ignore function children
|
|
50
|
-
h(Draggable, {
|
|
51
|
-
key: index,
|
|
52
|
-
onDrag: function onDrag(e) {
|
|
53
|
-
return _this.onDrag(e, key);
|
|
54
|
-
},
|
|
55
|
-
on: this.v3 ? undefined : {
|
|
56
|
-
"drag": function onDrag(e) {
|
|
57
|
-
return _this.onDrag(e, key);
|
|
58
|
-
},
|
|
59
|
-
"release": function release(e) {
|
|
60
|
-
return _this.onRelease(e, key);
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
onRelease: function release(e) {
|
|
64
|
-
return _this.onRelease(e, key);
|
|
65
|
-
}
|
|
66
|
-
}, this.v3 ? function () {
|
|
67
|
-
return [h("div", {
|
|
68
|
-
"class": 'k-resize-handle k-resize-' + key,
|
|
69
|
-
style: {
|
|
70
|
-
display: 'block',
|
|
71
|
-
touchAction: 'none'
|
|
72
|
-
}
|
|
73
|
-
})];
|
|
74
|
-
} : [h("div", {
|
|
75
|
-
"class": 'k-resize-handle k-resize-' + key,
|
|
76
|
-
style: {
|
|
77
|
-
display: 'block',
|
|
78
|
-
touchAction: 'none'
|
|
79
|
-
}
|
|
80
|
-
})])
|
|
81
|
-
);
|
|
82
|
-
}, this)]);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* @hidden
|
|
87
|
-
*/
|
|
88
|
-
var ResizeHandlers = ResizeHandlersVue2;
|
|
89
|
-
export { ResizeHandlers, ResizeHandlersVue2 };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from './additionalTypes';
|
|
2
|
-
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
-
declare type DefaultMethods<V> = {
|
|
4
|
-
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
-
};
|
|
6
|
-
import { windowStage } from './StageEnum';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export interface WindowTitleBarProps {
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
onClosebuttonclick?: (event: any) => void;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
onDblclick?: (event: any) => void;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
onMinimizeclick?: (event: any) => void;
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
onFullscreenclick?: (event: any) => void;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
onRestoreclick?: (event: any) => void;
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
id?: string;
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
title?: string;
|
|
39
|
-
/**
|
|
40
|
-
* @hidden
|
|
41
|
-
*/
|
|
42
|
-
titleId?: string;
|
|
43
|
-
/**
|
|
44
|
-
* @hidden
|
|
45
|
-
*/
|
|
46
|
-
titleRender?: any;
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
stage?: windowStage | string;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
closeButton?: any;
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
minimizeButton?: any;
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
maximizeButton?: any;
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
restoreButton?: any;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* @hidden
|
|
70
|
-
*/
|
|
71
|
-
export interface WindowTitleBarMethods extends Vue2type {
|
|
72
|
-
onDoubleClick: (e: any) => void;
|
|
73
|
-
onMinimizeClick: (e: any) => void;
|
|
74
|
-
onFullScreenClick: (e: any) => void;
|
|
75
|
-
onRestoreClick: (e: any) => void;
|
|
76
|
-
onCloseClick: (e: any) => void;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
declare let WindowTitleBarVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<WindowTitleBarMethods>, {}, RecordPropsDefinition<WindowTitleBarProps>>;
|
|
82
|
-
/**
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
declare const WindowTitleBar: DefineComponent<WindowTitleBarProps, any, {}, {}, WindowTitleBarMethods, {}, {}, {}, string, WindowTitleBarProps, WindowTitleBarProps, {}>;
|
|
86
|
-
export { WindowTitleBar, WindowTitleBarVue2 };
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import { getTemplate } from '@progress/kendo-vue-common';
|
|
3
|
-
import * as Vue from 'vue';
|
|
4
|
-
var allVue = Vue;
|
|
5
|
-
var gh = allVue.h;
|
|
6
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
7
|
-
import { Button } from '@progress/kendo-vue-buttons';
|
|
8
|
-
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
9
|
-
import { windowStage } from './StageEnum';
|
|
10
|
-
import { dialogsWindowCloseButton, dialogsWindowMaximizeButton, dialogsWindowMinimizeButton, dialogsWindowRestoreButton, messages } from './messages/main';
|
|
11
|
-
import { windowIcon, windowMinimizeIcon, windowRestoreIcon, xIcon } from '@progress/kendo-svg-icons';
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
var WindowTitleBarVue2 = {
|
|
16
|
-
name: 'KendoWindowTitleBar',
|
|
17
|
-
props: {
|
|
18
|
-
id: String,
|
|
19
|
-
stage: String,
|
|
20
|
-
closeButton: [String, Function, Object, Boolean],
|
|
21
|
-
minimizeButton: [String, Function, Object, Boolean],
|
|
22
|
-
maximizeButton: [String, Function, Object, Boolean],
|
|
23
|
-
restoreButton: [String, Function, Object, Boolean],
|
|
24
|
-
title: String,
|
|
25
|
-
titleId: String,
|
|
26
|
-
titleRender: [String, Function, Object, Boolean]
|
|
27
|
-
},
|
|
28
|
-
inject: {
|
|
29
|
-
kendoLocalizationService: {
|
|
30
|
-
default: null
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
setup: !isV3 ? undefined : function () {
|
|
35
|
-
var v3 = !!isV3;
|
|
36
|
-
return {
|
|
37
|
-
v3: v3
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
methods: {
|
|
41
|
-
onDoubleClick: function onDoubleClick(e) {
|
|
42
|
-
this.$emit('doubleclick', e);
|
|
43
|
-
},
|
|
44
|
-
onMinimizeClick: function onMinimizeClick(e) {
|
|
45
|
-
this.$emit('minimizeclick', e);
|
|
46
|
-
},
|
|
47
|
-
onFullScreenClick: function onFullScreenClick(e) {
|
|
48
|
-
this.$emit('fullscreenclick', e);
|
|
49
|
-
},
|
|
50
|
-
onRestoreClick: function onRestoreClick(e) {
|
|
51
|
-
this.$emit('restoreclick', e);
|
|
52
|
-
},
|
|
53
|
-
onCloseClick: function onCloseClick(e) {
|
|
54
|
-
this.$emit('closeclick', e);
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
render: function render(createElement) {
|
|
59
|
-
var h = gh || createElement;
|
|
60
|
-
var props = this.$props;
|
|
61
|
-
var stage = props.stage,
|
|
62
|
-
title = props.title,
|
|
63
|
-
titleRender = props.titleRender,
|
|
64
|
-
minimizeButton = props.minimizeButton,
|
|
65
|
-
maximizeButton = props.maximizeButton,
|
|
66
|
-
restoreButton = props.restoreButton,
|
|
67
|
-
closeButton = props.closeButton;
|
|
68
|
-
var ls = provideLocalizationService(this);
|
|
69
|
-
var titleElement = getTemplate.call(this, {
|
|
70
|
-
h: h,
|
|
71
|
-
template: titleRender,
|
|
72
|
-
defaultRendering: title
|
|
73
|
-
});
|
|
74
|
-
var minimizeButtonDefault =
|
|
75
|
-
// @ts-ignore
|
|
76
|
-
h(Button, {
|
|
77
|
-
type: "button",
|
|
78
|
-
attrs: this.v3 ? undefined : {
|
|
79
|
-
type: "button",
|
|
80
|
-
icon: 'window-minimize',
|
|
81
|
-
svgIcon: windowMinimizeIcon,
|
|
82
|
-
fillMode: 'flat',
|
|
83
|
-
"aria-label": ls.toLanguageString(dialogsWindowMinimizeButton, messages[dialogsWindowMinimizeButton])
|
|
84
|
-
},
|
|
85
|
-
"class": "k-window-titlebar-action",
|
|
86
|
-
icon: 'window-minimize',
|
|
87
|
-
svgIcon: windowMinimizeIcon,
|
|
88
|
-
fillMode: 'flat',
|
|
89
|
-
onClick: this.onMinimizeClick,
|
|
90
|
-
on: this.v3 ? undefined : {
|
|
91
|
-
"click": this.onMinimizeClick
|
|
92
|
-
},
|
|
93
|
-
"aria-label": ls.toLanguageString(dialogsWindowMinimizeButton, messages[dialogsWindowMinimizeButton])
|
|
94
|
-
});
|
|
95
|
-
var minimizeButtonRender = getTemplate.call(this, {
|
|
96
|
-
h: h,
|
|
97
|
-
template: minimizeButton,
|
|
98
|
-
defaultRendering: minimizeButtonDefault
|
|
99
|
-
});
|
|
100
|
-
var maximizeButtonDefault =
|
|
101
|
-
// @ts-ignore
|
|
102
|
-
h(Button, {
|
|
103
|
-
type: "button",
|
|
104
|
-
attrs: this.v3 ? undefined : {
|
|
105
|
-
type: "button",
|
|
106
|
-
icon: 'window',
|
|
107
|
-
svgIcon: windowIcon,
|
|
108
|
-
fillMode: 'flat',
|
|
109
|
-
"aria-label": ls.toLanguageString(dialogsWindowMaximizeButton, messages[dialogsWindowMaximizeButton])
|
|
110
|
-
},
|
|
111
|
-
"class": "k-window-titlebar-action",
|
|
112
|
-
icon: 'window',
|
|
113
|
-
svgIcon: windowIcon,
|
|
114
|
-
fillMode: 'flat',
|
|
115
|
-
onClick: this.onFullScreenClick,
|
|
116
|
-
on: this.v3 ? undefined : {
|
|
117
|
-
"click": this.onFullScreenClick
|
|
118
|
-
},
|
|
119
|
-
"aria-label": ls.toLanguageString(dialogsWindowMaximizeButton, messages[dialogsWindowMaximizeButton])
|
|
120
|
-
});
|
|
121
|
-
var maximizeButtonRender = getTemplate.call(this, {
|
|
122
|
-
h: h,
|
|
123
|
-
template: maximizeButton,
|
|
124
|
-
defaultRendering: maximizeButtonDefault
|
|
125
|
-
});
|
|
126
|
-
var restoreButtonDefault =
|
|
127
|
-
// @ts-ignore
|
|
128
|
-
h(Button, {
|
|
129
|
-
type: "button",
|
|
130
|
-
attrs: this.v3 ? undefined : {
|
|
131
|
-
type: "button",
|
|
132
|
-
icon: 'window-restore',
|
|
133
|
-
svgIcon: windowRestoreIcon,
|
|
134
|
-
fillMode: 'flat',
|
|
135
|
-
"aria-label": ls.toLanguageString(dialogsWindowRestoreButton, messages[dialogsWindowRestoreButton])
|
|
136
|
-
},
|
|
137
|
-
"class": "k-window-titlebar-action",
|
|
138
|
-
icon: 'window-restore',
|
|
139
|
-
svgIcon: windowRestoreIcon,
|
|
140
|
-
fillMode: 'flat',
|
|
141
|
-
onClick: this.onRestoreClick,
|
|
142
|
-
on: this.v3 ? undefined : {
|
|
143
|
-
"click": this.onRestoreClick
|
|
144
|
-
},
|
|
145
|
-
"aria-label": ls.toLanguageString(dialogsWindowRestoreButton, messages[dialogsWindowRestoreButton])
|
|
146
|
-
});
|
|
147
|
-
var restoreButtonRender = getTemplate.call(this, {
|
|
148
|
-
h: h,
|
|
149
|
-
template: restoreButton,
|
|
150
|
-
defaultRendering: restoreButtonDefault
|
|
151
|
-
});
|
|
152
|
-
var closeButtonDefault =
|
|
153
|
-
// @ts-ignore
|
|
154
|
-
h(Button, {
|
|
155
|
-
type: "button",
|
|
156
|
-
attrs: this.v3 ? undefined : {
|
|
157
|
-
type: "button",
|
|
158
|
-
icon: 'x',
|
|
159
|
-
svgIcon: xIcon,
|
|
160
|
-
fillMode: 'flat',
|
|
161
|
-
"aria-label": ls.toLanguageString(dialogsWindowCloseButton, messages[dialogsWindowCloseButton])
|
|
162
|
-
},
|
|
163
|
-
"class": "k-window-titlebar-action",
|
|
164
|
-
icon: 'x',
|
|
165
|
-
svgIcon: xIcon,
|
|
166
|
-
fillMode: 'flat',
|
|
167
|
-
onClick: this.onCloseClick,
|
|
168
|
-
on: this.v3 ? undefined : {
|
|
169
|
-
"click": this.onCloseClick
|
|
170
|
-
},
|
|
171
|
-
"aria-label": ls.toLanguageString(dialogsWindowCloseButton, messages[dialogsWindowCloseButton])
|
|
172
|
-
});
|
|
173
|
-
var closeButtonRender = getTemplate.call(this, {
|
|
174
|
-
h: h,
|
|
175
|
-
template: closeButton,
|
|
176
|
-
defaultRendering: closeButtonDefault
|
|
177
|
-
});
|
|
178
|
-
return h("div", {
|
|
179
|
-
"class": "k-window-titlebar",
|
|
180
|
-
style: {
|
|
181
|
-
touchAction: 'none'
|
|
182
|
-
},
|
|
183
|
-
onDblclick: this.onDoubleClick,
|
|
184
|
-
on: this.v3 ? undefined : {
|
|
185
|
-
"dblclick": this.onDoubleClick
|
|
186
|
-
}
|
|
187
|
-
}, [h("span", {
|
|
188
|
-
"class": "k-window-title",
|
|
189
|
-
id: this.$props.titleId,
|
|
190
|
-
attrs: this.v3 ? undefined : {
|
|
191
|
-
id: this.$props.titleId
|
|
192
|
-
}
|
|
193
|
-
}, [titleElement]), h("div", {
|
|
194
|
-
"class": "k-window-titlebar-actions"
|
|
195
|
-
}, [stage === windowStage.DEFAULT && minimizeButtonRender, stage === windowStage.DEFAULT && maximizeButtonRender, stage !== windowStage.DEFAULT && restoreButtonRender, closeButtonRender])]);
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* @hidden
|
|
200
|
-
*/
|
|
201
|
-
var WindowTitleBar = WindowTitleBarVue2;
|
|
202
|
-
export { WindowTitleBar, WindowTitleBarVue2 };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import { DefineComponent } from 'vue';
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import * as Vue from 'vue';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
type Vue2type = Vue.default;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
|
package/dist/es/constants.d.ts
DELETED
package/dist/es/constants.js
DELETED
package/dist/es/events.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export interface DialogCloseEvent {
|
|
5
|
-
/**
|
|
6
|
-
* An event target.
|
|
7
|
-
*/
|
|
8
|
-
target: any;
|
|
9
|
-
/**
|
|
10
|
-
* A native DOM event.
|
|
11
|
-
*/
|
|
12
|
-
event: any;
|
|
13
|
-
}
|
|
14
|
-
export interface WindowActionsEvent {
|
|
15
|
-
state?: 'DEFAULT' | 'FULLSCREEN' | 'MINIMIZED';
|
|
16
|
-
}
|
|
17
|
-
export interface WindowMoveEvent {
|
|
18
|
-
/**
|
|
19
|
-
* An event target.
|
|
20
|
-
*/
|
|
21
|
-
target: Window;
|
|
22
|
-
/**
|
|
23
|
-
* A native DOM event.
|
|
24
|
-
*/
|
|
25
|
-
event: any;
|
|
26
|
-
/**
|
|
27
|
-
* Indicates that dragging is completed and that the user dropped the resize handler.
|
|
28
|
-
*/
|
|
29
|
-
end: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Indicates that the move operation was initialized through dragging. If the Window is moved through the keyboard, the value will be `false`.
|
|
32
|
-
*/
|
|
33
|
-
drag: boolean;
|
|
34
|
-
}
|
package/dist/es/events.js
DELETED
package/dist/es/main.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Dialog, DialogVue2, DialogProps } from './Dialog';
|
|
2
|
-
import { DialogActionsBar, DialogActionsBarVue2 } from './DialogActionsBar';
|
|
3
|
-
import { Window, WindowVue2 } from './Window';
|
|
4
|
-
import { WindowProps } from './WindowProps';
|
|
5
|
-
import { DialogCloseEvent, WindowActionsEvent, WindowMoveEvent } from './events';
|
|
6
|
-
export { Dialog, DialogVue2, DialogProps, DialogActionsBar, DialogActionsBarVue2, DialogCloseEvent, Window, WindowVue2, WindowProps, WindowActionsEvent, WindowMoveEvent };
|
package/dist/es/main.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/es/messages/main.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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);
|