@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.
Files changed (109) hide show
  1. package/Dialog.js +8 -0
  2. package/Dialog.mjs +157 -0
  3. package/DialogActionsBar.js +8 -0
  4. package/DialogActionsBar.mjs +52 -0
  5. package/DialogTitleBar.js +8 -0
  6. package/DialogTitleBar.mjs +59 -0
  7. package/README.md +27 -36
  8. package/StageEnum.js +8 -0
  9. package/StageEnum.mjs +11 -0
  10. package/Window.js +8 -0
  11. package/Window.mjs +381 -0
  12. package/WindowResizeHandlers.js +8 -0
  13. package/WindowResizeHandlers.mjs +49 -0
  14. package/WindowTitlebar.js +8 -0
  15. package/WindowTitlebar.mjs +135 -0
  16. package/constants.js +8 -0
  17. package/constants.mjs +11 -0
  18. package/dist/cdn/js/kendo-vue-dialogs.js +8 -1
  19. package/index.d.mts +595 -0
  20. package/index.d.ts +595 -0
  21. package/index.js +8 -0
  22. package/index.mjs +15 -0
  23. package/messages/main.js +8 -0
  24. package/messages/main.mjs +20 -0
  25. package/package-metadata.js +8 -0
  26. package/package-metadata.mjs +18 -0
  27. package/package.json +22 -39
  28. package/dist/es/Dialog.d.ts +0 -109
  29. package/dist/es/Dialog.js +0 -225
  30. package/dist/es/DialogActionsBar.d.ts +0 -50
  31. package/dist/es/DialogActionsBar.js +0 -61
  32. package/dist/es/DialogTitleBar.d.ts +0 -46
  33. package/dist/es/DialogTitleBar.js +0 -85
  34. package/dist/es/StageEnum.d.ts +0 -5
  35. package/dist/es/StageEnum.js +0 -6
  36. package/dist/es/Window.d.ts +0 -75
  37. package/dist/es/Window.js +0 -663
  38. package/dist/es/WindowProps.d.ts +0 -138
  39. package/dist/es/WindowProps.js +0 -2
  40. package/dist/es/WindowResizeHandlers.d.ts +0 -30
  41. package/dist/es/WindowResizeHandlers.js +0 -89
  42. package/dist/es/WindowTitlebar.d.ts +0 -86
  43. package/dist/es/WindowTitlebar.js +0 -202
  44. package/dist/es/additionalTypes.ts +0 -21
  45. package/dist/es/constants.d.ts +0 -2
  46. package/dist/es/constants.js +0 -2
  47. package/dist/es/events.d.ts +0 -34
  48. package/dist/es/events.js +0 -2
  49. package/dist/es/main.d.ts +0 -6
  50. package/dist/es/main.js +0 -4
  51. package/dist/es/messages/main.d.ts +0 -25
  52. package/dist/es/messages/main.js +0 -26
  53. package/dist/es/package-metadata.d.ts +0 -5
  54. package/dist/es/package-metadata.js +0 -11
  55. package/dist/esm/Dialog.d.ts +0 -109
  56. package/dist/esm/Dialog.js +0 -225
  57. package/dist/esm/DialogActionsBar.d.ts +0 -50
  58. package/dist/esm/DialogActionsBar.js +0 -61
  59. package/dist/esm/DialogTitleBar.d.ts +0 -46
  60. package/dist/esm/DialogTitleBar.js +0 -85
  61. package/dist/esm/StageEnum.d.ts +0 -5
  62. package/dist/esm/StageEnum.js +0 -6
  63. package/dist/esm/Window.d.ts +0 -75
  64. package/dist/esm/Window.js +0 -663
  65. package/dist/esm/WindowProps.d.ts +0 -138
  66. package/dist/esm/WindowProps.js +0 -2
  67. package/dist/esm/WindowResizeHandlers.d.ts +0 -30
  68. package/dist/esm/WindowResizeHandlers.js +0 -89
  69. package/dist/esm/WindowTitlebar.d.ts +0 -86
  70. package/dist/esm/WindowTitlebar.js +0 -202
  71. package/dist/esm/additionalTypes.ts +0 -21
  72. package/dist/esm/constants.d.ts +0 -2
  73. package/dist/esm/constants.js +0 -2
  74. package/dist/esm/events.d.ts +0 -34
  75. package/dist/esm/events.js +0 -2
  76. package/dist/esm/main.d.ts +0 -6
  77. package/dist/esm/main.js +0 -4
  78. package/dist/esm/messages/main.d.ts +0 -25
  79. package/dist/esm/messages/main.js +0 -26
  80. package/dist/esm/package-metadata.d.ts +0 -5
  81. package/dist/esm/package-metadata.js +0 -11
  82. package/dist/esm/package.json +0 -3
  83. package/dist/npm/Dialog.d.ts +0 -109
  84. package/dist/npm/Dialog.js +0 -232
  85. package/dist/npm/DialogActionsBar.d.ts +0 -50
  86. package/dist/npm/DialogActionsBar.js +0 -68
  87. package/dist/npm/DialogTitleBar.d.ts +0 -46
  88. package/dist/npm/DialogTitleBar.js +0 -92
  89. package/dist/npm/StageEnum.d.ts +0 -5
  90. package/dist/npm/StageEnum.js +0 -9
  91. package/dist/npm/Window.d.ts +0 -75
  92. package/dist/npm/Window.js +0 -670
  93. package/dist/npm/WindowProps.d.ts +0 -138
  94. package/dist/npm/WindowProps.js +0 -6
  95. package/dist/npm/WindowResizeHandlers.d.ts +0 -30
  96. package/dist/npm/WindowResizeHandlers.js +0 -96
  97. package/dist/npm/WindowTitlebar.d.ts +0 -86
  98. package/dist/npm/WindowTitlebar.js +0 -209
  99. package/dist/npm/additionalTypes.ts +0 -21
  100. package/dist/npm/constants.d.ts +0 -2
  101. package/dist/npm/constants.js +0 -5
  102. package/dist/npm/events.d.ts +0 -34
  103. package/dist/npm/events.js +0 -3
  104. package/dist/npm/main.d.ts +0 -6
  105. package/dist/npm/main.js +0 -12
  106. package/dist/npm/messages/main.d.ts +0 -25
  107. package/dist/npm/messages/main.js +0 -29
  108. package/dist/npm/package-metadata.d.ts +0 -5
  109. package/dist/npm/package-metadata.js +0 -14
@@ -1,11 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export var packageMetadata = {
5
- name: '@progress/kendo-vue-dialogs',
6
- productName: 'Kendo UI for Vue',
7
- productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1726209396,
9
- version: '',
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
- };
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,109 +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 { DialogCloseEvent } from './events';
7
- /**
8
- * Represents the props of the [KendoVue Dialog component]({% slug overview_dialog %}).
9
- */
10
- export interface DialogProps {
11
- /**
12
- * Defines the string selector to the element to which the Dialog will be appended. Defaults to its parent element.
13
- */
14
- appendTo?: String;
15
- /**
16
- * Sets the title of the Dialog ([see example]({% slug title_dialog %})). If `title` is not specified, the Dialog does not render a **Close** button.
17
- */
18
- title?: string | any;
19
- /**
20
- * Defines the custom rendering of the title. Accepts a Vue component, a `render` function, or a slot name.
21
- */
22
- titleRender?: ((h: any, defaultRendering: any | null, props: any, listeners: any) => any) | string | any;
23
- /**
24
- * Sets a class of the Dialog DOM element.
25
- */
26
- className?: string;
27
- /**
28
- * Specifies whether a close button should be rendered at the top corner of the dialog.
29
- */
30
- closeIcon?: boolean;
31
- /**
32
- * Specifies the width of the Dialog ([see example]({% slug dimensions_dialog %})).
33
- */
34
- width?: number | string;
35
- /**
36
- * Specifies the height of the Dialog ([see example]({% slug dimensions_dialog %})).
37
- */
38
- height?: number | string;
39
- /**
40
- * Specifies the minimum width of the Dialog.
41
- */
42
- minWidth?: number | string;
43
- /**
44
- * Specifies the theme color of the Dialog. The available options are `primary`, `dark`, and `light`.
45
- */
46
- themeColor?: 'primary' | 'dark' | 'light' | string;
47
- /**
48
- * Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
49
- */
50
- onClose?: (event: DialogCloseEvent) => void;
51
- /**
52
- * Fires when modal overlay of the Window is clicked.
53
- */
54
- onOverlayclick?: (event: any) => void;
55
- /**
56
- * Sets the `aria-labelledby` value.
57
- */
58
- id?: string;
59
- /**
60
- * Sets the `id` of the wrapper element.
61
- */
62
- wrapperId?: string;
63
- /**
64
- * Represents the `dir` HTML attribute.
65
- */
66
- dir?: string;
67
- /**
68
- * The styles that are applied to the Dialog.
69
- */
70
- style?: any;
71
- /**
72
- * The styles that are applied to the content of the Dialog.
73
- */
74
- contentStyle?: any;
75
- dialogClass?: string;
76
- }
77
- /**
78
- * @hidden
79
- */
80
- export interface DialogMethods {
81
- [key: string]: any;
82
- handleCloseDialog: (event: any) => void;
83
- handleKeyDown: (event: any) => void;
84
- transformDimesion: (initialValue: string | number | undefined) => string;
85
- getActionBarIndex: (children: any) => any;
86
- generateTitleId: () => string;
87
- }
88
- /**
89
- * @hidden
90
- */
91
- export interface DialogState {
92
- titleId?: string;
93
- v3: boolean;
94
- windowElement?: any;
95
- }
96
- /**
97
- * @hidden
98
- */
99
- export interface DialogAll extends Vue2type, DialogMethods, DialogState {
100
- }
101
- /**
102
- * @hidden
103
- */
104
- declare let DialogVue2: ComponentOptions<DialogAll, DefaultData<{}>, DefaultMethods<DialogAll>, {}, RecordPropsDefinition<DialogProps>>;
105
- /**
106
- * @hidden
107
- */
108
- declare const Dialog: DefineComponent<DialogProps, any, {}, {}, DialogMethods, {}, {}, {}, string, DialogProps, DialogProps, {}>;
109
- export { Dialog, DialogVue2 };
@@ -1,232 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DialogVue2 = exports.Dialog = void 0;
7
- // @ts-ignore
8
- var Vue = require("vue");
9
- var allVue = Vue;
10
- var gh = allVue.h;
11
- var isV3 = allVue.version && allVue.version[0] === '3';
12
- var DialogTitleBar_1 = require("./DialogTitleBar");
13
- var kendo_vue_common_1 = require("@progress/kendo-vue-common");
14
- var package_metadata_1 = require("./package-metadata");
15
- var constants_1 = require("./constants");
16
- /**
17
- * @hidden
18
- */
19
- var DialogVue2 = {
20
- name: 'KendoDialog',
21
- // @ts-ignore
22
- emits: {
23
- close: null,
24
- overlayclick: null
25
- },
26
- props: {
27
- appendTo: String,
28
- title: String,
29
- titleRender: kendo_vue_common_1.templateDefinition,
30
- id: String,
31
- wrapperId: String,
32
- dir: String,
33
- closeIcon: {
34
- type: Boolean,
35
- default: true
36
- },
37
- width: [String, Number],
38
- height: [String, Number],
39
- minWidth: [String, Number],
40
- dialogClass: String,
41
- themeColor: {
42
- type: String,
43
- validator: function validator(value) {
44
- return ['primary', 'dark', 'light'].includes(value);
45
- }
46
- },
47
- onClose: Function
48
- },
49
- provide: function provide() {
50
- return {
51
- kCurrentZIndex: constants_1.DEFAULT_DIALOGS_ZINDEX
52
- };
53
- },
54
- data: function data() {
55
- return {
56
- showLicenseWatermark: false
57
- };
58
- },
59
- created: function created() {
60
- (0, kendo_vue_common_1.validatePackage)(package_metadata_1.packageMetadata);
61
- this.showLicenseWatermark = (0, kendo_vue_common_1.shouldShowValidationUI)(package_metadata_1.packageMetadata);
62
- this.titleId = this.generateTitleId();
63
- this.contentId = this.generateContentId();
64
- },
65
- // @ts-ignore
66
- setup: !isV3 ? undefined : function () {
67
- var v3 = !!isV3;
68
- return {
69
- v3: v3
70
- };
71
- },
72
- computed: {
73
- dialogElementClass: function dialogElementClass() {
74
- var _a;
75
- var _b = this.$props,
76
- dialogClass = _b.dialogClass,
77
- themeColor = _b.themeColor;
78
- return _a = {
79
- 'k-window': true,
80
- 'k-dialog': true
81
- }, _a[dialogClass] = dialogClass, _a["k-window-".concat(themeColor)] = themeColor, _a;
82
- }
83
- },
84
- mounted: function mounted() {
85
- if (this.$props.appendTo) {
86
- var body = document.querySelector(this.$props.appendTo);
87
- this.windowElement = this.$refs.wrapper;
88
- body.append(this.windowElement);
89
- }
90
- },
91
- beforeDestroy: !!isV3 ? undefined : function () {
92
- if (this.$props.appendTo) {
93
- this.windowElement.remove();
94
- }
95
- },
96
- // @ts-ignore
97
- beforeUnmount: function beforeUnmount() {
98
- if (this.$props.appendTo) {
99
- this.windowElement.remove();
100
- }
101
- },
102
- methods: {
103
- handleCloseDialog: function handleCloseDialog(event) {
104
- event.preventDefault();
105
- this.$emit('close', {
106
- event: event,
107
- target: this
108
- });
109
- },
110
- handleKeyDown: function handleKeyDown(event) {
111
- if (event.keyCode === kendo_vue_common_1.Keys.esc && kendo_vue_common_1.hasListener.call(this, 'close')) {
112
- event.preventDefault();
113
- this.handleCloseDialog(event);
114
- }
115
- },
116
- transformDimesion: function transformDimesion(initialValue) {
117
- return typeof initialValue === 'string' ? initialValue.endsWith('px') || initialValue.endsWith('%') ? initialValue : initialValue + 'px' : initialValue + 'px';
118
- },
119
- getActionBarIndex: function getActionBarIndex(children) {
120
- var actionBarIndex = children.findIndex(function (child) {
121
- return child && child.tag && child.tag.toLowerCase().indexOf('dialogactionsbar') !== -1 || child.componentOptions && child.componentOptions.tag && child.componentOptions.tag.toLowerCase().indexOf('actions-bar') !== -1 || child.type && child.type.name && child.type.name.toLowerCase().indexOf('dialogactionsbar') !== -1;
122
- });
123
- return actionBarIndex;
124
- },
125
- generateTitleId: function generateTitleId() {
126
- return 'dialog-title' + (0, kendo_vue_common_1.guid)();
127
- },
128
- generateContentId: function generateContentId() {
129
- return 'dialog-content' + (0, kendo_vue_common_1.guid)();
130
- },
131
- handleClick: function handleClick(e) {
132
- this.$emit('overlayclick', e);
133
- }
134
- },
135
- // @ts-ignore
136
- render: function render(createElement) {
137
- var h = gh || createElement;
138
- var id = this.$props.id !== undefined ? this.$props.id : this.titleId;
139
- var _a = this.$props,
140
- title = _a.title,
141
- width = _a.width,
142
- height = _a.height,
143
- minWidth = _a.minWidth,
144
- dir = _a.dir,
145
- contentStyle = _a.contentStyle,
146
- wrapperId = _a.wrapperId;
147
- var titleRender = this.$props.titleRender ? kendo_vue_common_1.templateRendering.call(this, this.$props.titleRender, kendo_vue_common_1.getListeners.call(this)) : null;
148
- var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
149
- var content = defaultSlot || [];
150
- width = this.transformDimesion(width);
151
- height = this.transformDimesion(height);
152
- minWidth = this.transformDimesion(minWidth);
153
- var watermark = this.showLicenseWatermark ? h(kendo_vue_common_1.WatermarkOverlay) : null;
154
- var actionBarIndex = this.getActionBarIndex(content);
155
- var actions;
156
- if (actionBarIndex !== -1) {
157
- actions = content[actionBarIndex];
158
- content.splice(actionBarIndex, 1);
159
- }
160
- var closeIcon = this.$props.closeIcon !== undefined ? this.$props.closeIcon : true;
161
- var dialog = h("div", {
162
- ref: 'wrapper',
163
- "class": 'k-dialog-wrapper',
164
- onKeydown: this.handleKeyDown,
165
- on: this.v3 ? undefined : {
166
- "keydown": this.handleKeyDown
167
- },
168
- tabindex: 0,
169
- attrs: this.v3 ? undefined : {
170
- tabindex: 0,
171
- id: wrapperId,
172
- dir: dir
173
- },
174
- id: wrapperId,
175
- dir: dir
176
- }, [h("div", {
177
- "class": "k-overlay",
178
- onClick: this.handleClick,
179
- on: this.v3 ? undefined : {
180
- "click": this.handleClick
181
- }
182
- }), h("div", {
183
- "aria-labelledby": title || titleRender ? id : undefined,
184
- attrs: this.v3 ? undefined : {
185
- "aria-labelledby": title || titleRender ? id : undefined,
186
- "aria-describedby": this.contentId,
187
- "aria-modal": true,
188
- role: "dialog"
189
- },
190
- "aria-describedby": this.contentId,
191
- "aria-modal": true,
192
- "class": this.dialogElementClass,
193
- role: "dialog",
194
- style: {
195
- width: width,
196
- height: height,
197
- minWidth: minWidth
198
- }
199
- }, [(title || titleRender) &&
200
- // @ts-ignore
201
- h(DialogTitleBar_1.DialogTitleBar, {
202
- closeIcon: closeIcon,
203
- attrs: this.v3 ? undefined : {
204
- closeIcon: closeIcon,
205
- id: id,
206
- title: title,
207
- titleRender: titleRender
208
- },
209
- onClosebuttonclick: this.handleCloseDialog,
210
- on: this.v3 ? undefined : {
211
- "closebuttonclick": this.handleCloseDialog
212
- },
213
- id: id,
214
- title: title,
215
- titleRender: titleRender
216
- }), h("div", {
217
- "class": "k-window-content k-dialog-content",
218
- style: contentStyle,
219
- id: this.contentId,
220
- attrs: this.v3 ? undefined : {
221
- id: this.contentId
222
- }
223
- }, [content]), actions, watermark])]);
224
- return this.$props.appendTo ? h("div", [dialog]) : dialog;
225
- }
226
- };
227
- exports.DialogVue2 = DialogVue2;
228
- /**
229
- * @hidden
230
- */
231
- var Dialog = DialogVue2;
232
- exports.Dialog = Dialog;
@@ -1,50 +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 DialogActionsBarProps {
10
- /**
11
- * Set the layout of the actions.
12
- *
13
- * The supported values are:
14
- * * (Default) `start`
15
- * * `center`
16
- * * `end`
17
- * * `stretched`
18
- */
19
- layout: string;
20
- /**
21
- * Specifies the orientation of the Dialog action buttons.
22
- *
23
- * * The possible values are:
24
- * * (Default) `horizontal`
25
- * * `vertical`
26
- *
27
- */
28
- orientation?: 'horizontal' | 'vertical' | string;
29
- }
30
- /**
31
- * @hidden
32
- */
33
- export interface DialogActionsBarComputed {
34
- [key: string]: any;
35
- wrapperClasses: object;
36
- }
37
- /**
38
- * @hidden
39
- */
40
- export interface DialogActionsBarAll extends DialogActionsBarComputed, DialogActionsBarProps, Vue2type {
41
- }
42
- /**
43
- * @hidden
44
- */
45
- declare let DialogActionsBarVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<DialogActionsBarAll>, {}, RecordPropsDefinition<DialogActionsBarProps>>;
46
- /**
47
- * @hidden
48
- */
49
- declare const DialogActionsBar: DefineComponent<{}, any, {}, {}, {}, {}, {}, {}, string, {}, {}, {}>;
50
- export { DialogActionsBar, DialogActionsBarVue2 };
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DialogActionsBarVue2 = exports.DialogActionsBar = void 0;
7
- // @ts-ignore
8
- var Vue = require("vue");
9
- var allVue = Vue;
10
- var gh = allVue.h;
11
- var isV3 = allVue.version && allVue.version[0] === '3';
12
- var kendo_vue_common_1 = require("@progress/kendo-vue-common");
13
- /**
14
- * @hidden
15
- */
16
- var DialogActionsBarVue2 = {
17
- name: 'DialogActionsBar',
18
- props: {
19
- layout: {
20
- type: String,
21
- default: 'stretched',
22
- validator: function validator(value) {
23
- return ['stretched', 'start', 'center', 'end'].includes(value);
24
- }
25
- },
26
- orientation: {
27
- type: String,
28
- default: 'horizontal',
29
- validator: function validator(value) {
30
- return ['horizontal', 'vertical'].includes(value);
31
- }
32
- }
33
- },
34
- // @ts-ignore
35
- setup: !isV3 ? undefined : function () {
36
- var v3 = !!isV3;
37
- return {
38
- v3: v3
39
- };
40
- },
41
- computed: {
42
- wrapperClasses: function wrapperClasses() {
43
- var _a;
44
- var _b = this.$props,
45
- layout = _b.layout,
46
- orientation = _b.orientation;
47
- return _a = {
48
- 'k-actions': true,
49
- 'k-dialog-actions': true,
50
- 'k-window-actions': true
51
- }, _a["k-actions-".concat(orientation)] = orientation, _a["k-actions-".concat(layout)] = layout, _a;
52
- }
53
- },
54
- // @ts-ignore
55
- render: function render(createElement) {
56
- var h = gh || createElement;
57
- var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
58
- return h("div", {
59
- "class": this.wrapperClasses
60
- }, [defaultSlot]);
61
- }
62
- };
63
- exports.DialogActionsBarVue2 = DialogActionsBarVue2;
64
- /**
65
- * @hidden
66
- */
67
- var DialogActionsBar = DialogActionsBarVue2;
68
- exports.DialogActionsBar = DialogActionsBar;
@@ -1,46 +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 DialogTitleBarProps {
10
- /**
11
- * @hidden
12
- */
13
- onClosebuttonclick?: (event: any) => void;
14
- /**
15
- * @hidden
16
- */
17
- id?: string;
18
- /**
19
- * @hidden
20
- */
21
- closeIcon?: boolean;
22
- /**
23
- * Sets the title of the Dialog .
24
- * If `title` of 'titleRender' is not specified, the Dialog does not render a **Close** button.
25
- */
26
- title?: string | any;
27
- /**
28
- * Defines the custom rendering of the title. Accepts a Vue component, a `render` function, or a slot name.
29
- */
30
- titleRender?: ((h: any, defaultRendering: any | null, props: any, listeners: any) => any) | string | any;
31
- }
32
- /**
33
- * @hidden
34
- */
35
- export interface DialogTitleBarMethods extends Vue2type {
36
- onCloseButtonClick: (event: any) => void;
37
- }
38
- /**
39
- * @hidden
40
- */
41
- declare let DialogTitleBarVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<DialogTitleBarMethods>, {}, RecordPropsDefinition<DialogTitleBarProps>>;
42
- /**
43
- * @hidden
44
- */
45
- declare const DialogTitleBar: DefineComponent<DialogTitleBarProps, any, {}, {}, DialogTitleBarMethods, {}, {}, {}, string, DialogTitleBarProps, DialogTitleBarProps, {}>;
46
- export { DialogTitleBar, DialogTitleBarVue2 };
@@ -1,92 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DialogTitleBarVue2 = exports.DialogTitleBar = void 0;
7
- // @ts-ignore
8
- var Vue = require("vue");
9
- var allVue = Vue;
10
- var gh = allVue.h;
11
- var isV3 = allVue.version && allVue.version[0] === '3';
12
- var kendo_vue_common_1 = require("@progress/kendo-vue-common");
13
- var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
14
- var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
15
- /**
16
- * @hidden
17
- */
18
- var DialogTitleBarVue2 = {
19
- props: {
20
- id: String,
21
- closeIcon: {
22
- type: Boolean,
23
- default: true
24
- },
25
- title: String,
26
- titleRender: [String, Function, Object]
27
- },
28
- // @ts-ignore
29
- setup: !isV3 ? undefined : function () {
30
- var v3 = !!isV3;
31
- return {
32
- v3: v3
33
- };
34
- },
35
- methods: {
36
- onCloseButtonClick: function onCloseButtonClick(e) {
37
- this.$emit('closebuttonclick', e);
38
- }
39
- },
40
- // @ts-ignore
41
- render: function render(createElement) {
42
- var h = gh || createElement;
43
- var _a = this.$props,
44
- id = _a.id,
45
- closeIcon = _a.closeIcon,
46
- titleRender = _a.titleRender,
47
- title = _a.title;
48
- var titleElement;
49
- titleElement = kendo_vue_common_1.getTemplate.call(this, {
50
- h: h,
51
- template: titleRender,
52
- defaultRendering: title
53
- });
54
- return h("div", {
55
- "class": "k-window-titlebar k-dialog-titlebar",
56
- id: id,
57
- attrs: this.v3 ? undefined : {
58
- id: id
59
- }
60
- }, [h("span", {
61
- "class": "k-window-title k-dialog-title"
62
- }, [titleElement]), h("div", {
63
- "class": "k-window-titlebar-actions k-dialog-titlebar-actions"
64
- }, [closeIcon &&
65
- // @ts-ignore
66
- h(kendo_vue_buttons_1.Button, {
67
- type: "button",
68
- attrs: this.v3 ? undefined : {
69
- type: "button",
70
- fillMode: 'flat',
71
- "aria-label": "Close",
72
- icon: 'x',
73
- svgIcon: kendo_svg_icons_1.xIcon
74
- },
75
- fillMode: 'flat',
76
- "aria-label": "Close",
77
- icon: 'x',
78
- svgIcon: kendo_svg_icons_1.xIcon,
79
- onClick: this.onCloseButtonClick,
80
- on: this.v3 ? undefined : {
81
- "click": this.onCloseButtonClick
82
- },
83
- "class": "k-window-titlebar-action k-dialog-titlebar-action"
84
- })])]);
85
- }
86
- };
87
- exports.DialogTitleBarVue2 = DialogTitleBarVue2;
88
- /**
89
- * @hidden
90
- */
91
- var DialogTitleBar = DialogTitleBarVue2;
92
- exports.DialogTitleBar = DialogTitleBar;
@@ -1,5 +0,0 @@
1
- export declare enum windowStage {
2
- DEFAULT = "DEFAULT",
3
- FULLSCREEN = "FULLSCREEN",
4
- MINIMIZED = "MINIMIZED"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.windowStage = void 0;
4
- var windowStage;
5
- (function (windowStage) {
6
- windowStage["DEFAULT"] = "DEFAULT";
7
- windowStage["FULLSCREEN"] = "FULLSCREEN";
8
- windowStage["MINIMIZED"] = "MINIMIZED";
9
- })(windowStage = exports.windowStage || (exports.windowStage = {}));