@progress/kendo-vue-dialogs 3.7.4-dev.202212300853 → 3.7.4-dev.202301091431

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.
@@ -40,6 +40,10 @@ export interface DialogProps {
40
40
  * Specifies the minimum width of the Dialog.
41
41
  */
42
42
  minWidth?: number | string;
43
+ /**
44
+ * Specifies the theme color of the Dialog.
45
+ */
46
+ themeColor?: 'promary' | 'dark' | 'light' | string;
43
47
  /**
44
48
  * Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
45
49
  */
@@ -68,6 +72,7 @@ export interface DialogProps {
68
72
  * The styles that are applied to the content of the Dialog.
69
73
  */
70
74
  contentStyle?: any;
75
+ dialogClass?: string;
71
76
  }
72
77
  /**
73
78
  * @hidden
package/dist/es/Dialog.js CHANGED
@@ -30,7 +30,14 @@ var DialogVue2 = {
30
30
  },
31
31
  width: [String, Number],
32
32
  height: [String, Number],
33
- minWidth: [String, Number]
33
+ minWidth: [String, Number],
34
+ dialogClass: String,
35
+ themeColor: {
36
+ type: String,
37
+ validator: function validator(value) {
38
+ return ['primary', 'dark', 'light'].includes(value);
39
+ }
40
+ }
34
41
  },
35
42
  provide: function provide() {
36
43
  return {
@@ -48,6 +55,18 @@ var DialogVue2 = {
48
55
  v3: v3
49
56
  };
50
57
  },
58
+ computed: {
59
+ dialogElementClass: function dialogElementClass() {
60
+ var _a;
61
+ var _b = this.$props,
62
+ dialogClass = _b.dialogClass,
63
+ themeColor = _b.themeColor;
64
+ return _a = {
65
+ 'k-window': true,
66
+ 'k-dialog': true
67
+ }, _a[dialogClass] = dialogClass, _a["k-window-".concat(themeColor)] = themeColor, _a;
68
+ }
69
+ },
51
70
  mounted: function mounted() {
52
71
  if (this.$props.appendTo) {
53
72
  var body = document.querySelector(this.$props.appendTo);
@@ -148,7 +167,7 @@ var DialogVue2 = {
148
167
  "aria-labelledby": title || titleRender ? id : undefined,
149
168
  role: "dialog"
150
169
  },
151
- "class": "k-widget k-window k-dialog",
170
+ "class": "k-window k-dialog",
152
171
  role: "dialog",
153
172
  style: {
154
173
  width: width,
@@ -173,7 +192,7 @@ var DialogVue2 = {
173
192
  title: title,
174
193
  titleRender: titleRender
175
194
  }), h("div", {
176
- "class": "k-content k-window-content k-dialog-content",
195
+ "class": "k-window-content k-dialog-content",
177
196
  style: contentStyle
178
197
  }, [content]), actions])]);
179
198
  return this.$props.appendTo ? h("div", [dialog]) : dialog;
@@ -7,8 +7,25 @@ declare type DefaultMethods<V> = {
7
7
  * @hidden
8
8
  */
9
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
+ */
10
19
  layout: string;
11
- buttonGroupClass?: boolean;
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;
12
29
  }
13
30
  /**
14
31
  * @hidden
@@ -12,11 +12,17 @@ var DialogActionsBarVue2 = {
12
12
  props: {
13
13
  layout: {
14
14
  type: String,
15
- default: 'stretched'
15
+ default: 'stretched',
16
+ validator: function validator(value) {
17
+ return ['stretched', 'start', 'center', 'end'].includes(value);
18
+ }
16
19
  },
17
- buttonGroupClass: {
18
- type: Boolean,
19
- default: true
20
+ orientation: {
21
+ type: String,
22
+ default: 'horizontal',
23
+ validator: function validator(value) {
24
+ return ['horizontal', 'vertical'].includes(value);
25
+ }
20
26
  }
21
27
  },
22
28
  // @ts-ignore
@@ -29,11 +35,14 @@ var DialogActionsBarVue2 = {
29
35
  computed: {
30
36
  wrapperClasses: function wrapperClasses() {
31
37
  var _a;
32
- var layout = this.$props.layout;
38
+ var _b = this.$props,
39
+ layout = _b.layout,
40
+ orientation = _b.orientation;
33
41
  return _a = {
34
- 'k-dialog-buttongroup': this.buttonGroupClass,
35
- 'k-actions': true
36
- }, _a["k-actions-".concat(layout)] = layout, _a;
42
+ 'k-actions': true,
43
+ 'k-dialog-actions': true,
44
+ 'k-window-actions': true
45
+ }, _a["k-actions-".concat(orientation)] = orientation, _a["k-actions-".concat(layout)] = layout, _a;
37
46
  }
38
47
  },
39
48
  // @ts-ignore
@@ -5,6 +5,7 @@ var gh = allVue.h;
5
5
  var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { getTemplate } from '@progress/kendo-vue-common';
7
7
  import { Button } from '@progress/kendo-vue-buttons';
8
+ import { xIcon } from '@progress/kendo-svg-icons';
8
9
  /**
9
10
  * @hidden
10
11
  */
@@ -53,7 +54,7 @@ var DialogTitleBarVue2 = {
53
54
  }, [h("div", {
54
55
  "class": "k-window-title k-dialog-title"
55
56
  }, [titleElement]), h("div", {
56
- "class": "k-window-actions k-dialog-actions"
57
+ "class": "k-window-titlebar-actions k-dialog-titlebar-actions"
57
58
  }, [closeIcon &&
58
59
  // @ts-ignore
59
60
  h(Button, {
@@ -62,16 +63,18 @@ var DialogTitleBarVue2 = {
62
63
  type: "button",
63
64
  fillMode: 'flat',
64
65
  "aria-label": "Close",
65
- icon: 'x'
66
+ icon: 'x',
67
+ svgIcon: xIcon
66
68
  },
67
69
  fillMode: 'flat',
68
70
  "aria-label": "Close",
69
71
  icon: 'x',
72
+ svgIcon: xIcon,
70
73
  onClick: this.onCloseButtonClick,
71
74
  on: this.v3 ? undefined : {
72
75
  "click": this.onCloseButtonClick
73
76
  },
74
- "class": "k-window-action k-dialog-action"
77
+ "class": "k-window-titlebar-action k-dialog-titlebar-action"
75
78
  })])]);
76
79
  }
77
80
  };
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, guid, Draggable, templateDefinition, getDefaultSlots, templateRendering, getListeners, validatePackage } from '@progress/kendo-vue-common';
19
+ import { Keys, 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';
@@ -105,6 +105,12 @@ var WindowVue2 = {
105
105
  validator: function validator(value) {
106
106
  return ['DEFAULT', 'MINIMIZED', 'FULLSCREEN'].indexOf(value) !== -1;
107
107
  }
108
+ },
109
+ themeColor: {
110
+ type: String,
111
+ validator: function validator(value) {
112
+ return [undefined, 'primary', 'dark', 'light'].includes(value);
113
+ }
108
114
  }
109
115
  },
110
116
  // @ts-ignore
@@ -171,6 +177,15 @@ var WindowVue2 = {
171
177
  }
172
178
  },
173
179
  computed: {
180
+ windowElementClass: function windowElementClass() {
181
+ var _a;
182
+ var _b = this.$props,
183
+ windowClass = _b.windowClass,
184
+ themeColor = _b.themeColor;
185
+ return _a = {
186
+ 'k-window': true
187
+ }, _a[windowClass] = windowClass, _a["k-window-".concat(themeColor)] = themeColor, _a['k-window-minimized'] = this.currentStage === 'MINIMIZED', _a;
188
+ },
174
189
  computedTop: function computedTop() {
175
190
  if (this.windowStage !== windowStage.FULLSCREEN) {
176
191
  return Math.max(this.$props.top || this.currentTop, 0);
@@ -479,9 +494,6 @@ var WindowVue2 = {
479
494
  render: function render(createElement) {
480
495
  var _this = this;
481
496
  var h = gh || createElement;
482
- var classNamesWindow = classNames('k-widget', 'k-window', this.$props.windowClass, {
483
- 'k-window-minimized': this.currentStage === 'MINIMIZED'
484
- });
485
497
  var titleRender = templateRendering.call(this, this.$props.titleRender, getListeners.call(this));
486
498
  var closeButton = templateRendering.call(this, this.$props.closeButton, getListeners.call(this));
487
499
  var minimizeButton = templateRendering.call(this, this.$props.minimizeButton, getListeners.call(this));
@@ -520,7 +532,7 @@ var WindowVue2 = {
520
532
  },
521
533
  onKeydown: this.handleKeyDown,
522
534
  ref: 'windowElement',
523
- "class": classNamesWindow,
535
+ "class": this.windowElementClass,
524
536
  role: 'dialog',
525
537
  "aria-labelledby": this.titleId,
526
538
  style: __assign({
@@ -608,7 +620,7 @@ var WindowVue2 = {
608
620
  maximizeButton: maximizeButton,
609
621
  restoreButton: restoreButton
610
622
  })]), this.windowStage !== windowStage.MINIMIZED ? h("div", {
611
- "class": "k-content k-window-content"
623
+ "class": "k-window-content"
612
624
  }, [defaultSlot]) : null, this.windowStage === windowStage.DEFAULT && this.$props.resizable
613
625
  // @ts-ignore function children
614
626
  ? h(ResizeHandlers, {
@@ -77,6 +77,10 @@ export interface WindowProps {
77
77
  * Specifies if the Window will be resizable ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
78
78
  */
79
79
  resizable?: boolean;
80
+ /**
81
+ * Specifies the theme color of the Dialog.
82
+ */
83
+ themeColor?: 'promary' | 'dark' | 'light' | string;
80
84
  /**
81
85
  * Acccepts a named slot `string`, functional or class component for the restore button. If set to `false` the button is not rendered.
82
86
  * @default true
@@ -8,6 +8,7 @@ import { Button } from '@progress/kendo-vue-buttons';
8
8
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
9
9
  import { windowStage } from './StageEnum';
10
10
  import { dialogsWindowCloseButton, dialogsWindowMaximizeButton, dialogsWindowMinimizeButton, dialogsWindowRestoreButton, messages } from './messages/main';
11
+ import { windowIcon, windowMinimizeIcon, windowRestoreIcon, xIcon } from '@progress/kendo-svg-icons';
11
12
  /**
12
13
  * @hidden
13
14
  */
@@ -77,11 +78,13 @@ var WindowTitleBarVue2 = {
77
78
  attrs: this.v3 ? undefined : {
78
79
  type: "button",
79
80
  icon: 'window-minimize',
81
+ svgIcon: windowMinimizeIcon,
80
82
  fillMode: 'flat',
81
83
  "aria-label": ls.toLanguageString(dialogsWindowMinimizeButton, messages[dialogsWindowMinimizeButton])
82
84
  },
83
- "class": "k-window-action",
85
+ "class": "k-window-titlebar-action",
84
86
  icon: 'window-minimize',
87
+ svgIcon: windowMinimizeIcon,
85
88
  fillMode: 'flat',
86
89
  onClick: this.onMinimizeClick,
87
90
  on: this.v3 ? undefined : {
@@ -100,12 +103,14 @@ var WindowTitleBarVue2 = {
100
103
  type: "button",
101
104
  attrs: this.v3 ? undefined : {
102
105
  type: "button",
103
- icon: 'window-maximize',
106
+ icon: 'window',
107
+ svgIcon: windowIcon,
104
108
  fillMode: 'flat',
105
109
  "aria-label": ls.toLanguageString(dialogsWindowMaximizeButton, messages[dialogsWindowMaximizeButton])
106
110
  },
107
- "class": "k-window-action",
108
- icon: 'window-maximize',
111
+ "class": "k-window-titlebar-action",
112
+ icon: 'window',
113
+ svgIcon: windowIcon,
109
114
  fillMode: 'flat',
110
115
  onClick: this.onFullScreenClick,
111
116
  on: this.v3 ? undefined : {
@@ -125,11 +130,13 @@ var WindowTitleBarVue2 = {
125
130
  attrs: this.v3 ? undefined : {
126
131
  type: "button",
127
132
  icon: 'window-restore',
133
+ svgIcon: windowRestoreIcon,
128
134
  fillMode: 'flat',
129
135
  "aria-label": ls.toLanguageString(dialogsWindowRestoreButton, messages[dialogsWindowRestoreButton])
130
136
  },
131
- "class": "k-window-action",
137
+ "class": "k-window-titlebar-action",
132
138
  icon: 'window-restore',
139
+ svgIcon: windowRestoreIcon,
133
140
  fillMode: 'flat',
134
141
  onClick: this.onRestoreClick,
135
142
  on: this.v3 ? undefined : {
@@ -149,11 +156,13 @@ var WindowTitleBarVue2 = {
149
156
  attrs: this.v3 ? undefined : {
150
157
  type: "button",
151
158
  icon: 'x',
159
+ svgIcon: xIcon,
152
160
  fillMode: 'flat',
153
161
  "aria-label": ls.toLanguageString(dialogsWindowCloseButton, messages[dialogsWindowCloseButton])
154
162
  },
155
- "class": "k-window-action",
163
+ "class": "k-window-titlebar-action",
156
164
  icon: 'x',
165
+ svgIcon: xIcon,
157
166
  fillMode: 'flat',
158
167
  onClick: this.onCloseClick,
159
168
  on: this.v3 ? undefined : {
@@ -167,7 +176,7 @@ var WindowTitleBarVue2 = {
167
176
  defaultRendering: closeButtonDefault
168
177
  });
169
178
  return h("div", {
170
- "class": "k-window-titlebar k-dialog-titlebar",
179
+ "class": "k-window-titlebar",
171
180
  style: {
172
181
  touchAction: 'none'
173
182
  },
@@ -182,7 +191,7 @@ var WindowTitleBarVue2 = {
182
191
  id: this.$props.titleId
183
192
  }
184
193
  }, [titleElement]), h("div", {
185
- "class": "k-window-actions"
194
+ "class": "k-window-titlebar-actions"
186
195
  }, [stage === windowStage.DEFAULT && minimizeButtonRender, stage === windowStage.DEFAULT && maximizeButtonRender, stage !== windowStage.DEFAULT && restoreButtonRender, closeButtonRender])]);
187
196
  }
188
197
  };
@@ -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: 1672389550,
8
+ publishDate: 1673273393,
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
  };
@@ -40,6 +40,10 @@ export interface DialogProps {
40
40
  * Specifies the minimum width of the Dialog.
41
41
  */
42
42
  minWidth?: number | string;
43
+ /**
44
+ * Specifies the theme color of the Dialog.
45
+ */
46
+ themeColor?: 'promary' | 'dark' | 'light' | string;
43
47
  /**
44
48
  * Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
45
49
  */
@@ -68,6 +72,7 @@ export interface DialogProps {
68
72
  * The styles that are applied to the content of the Dialog.
69
73
  */
70
74
  contentStyle?: any;
75
+ dialogClass?: string;
71
76
  }
72
77
  /**
73
78
  * @hidden
@@ -30,7 +30,14 @@ var DialogVue2 = {
30
30
  },
31
31
  width: [String, Number],
32
32
  height: [String, Number],
33
- minWidth: [String, Number]
33
+ minWidth: [String, Number],
34
+ dialogClass: String,
35
+ themeColor: {
36
+ type: String,
37
+ validator: function validator(value) {
38
+ return ['primary', 'dark', 'light'].includes(value);
39
+ }
40
+ }
34
41
  },
35
42
  provide: function provide() {
36
43
  return {
@@ -48,6 +55,18 @@ var DialogVue2 = {
48
55
  v3: v3
49
56
  };
50
57
  },
58
+ computed: {
59
+ dialogElementClass: function dialogElementClass() {
60
+ var _a;
61
+ var _b = this.$props,
62
+ dialogClass = _b.dialogClass,
63
+ themeColor = _b.themeColor;
64
+ return _a = {
65
+ 'k-window': true,
66
+ 'k-dialog': true
67
+ }, _a[dialogClass] = dialogClass, _a["k-window-".concat(themeColor)] = themeColor, _a;
68
+ }
69
+ },
51
70
  mounted: function mounted() {
52
71
  if (this.$props.appendTo) {
53
72
  var body = document.querySelector(this.$props.appendTo);
@@ -148,7 +167,7 @@ var DialogVue2 = {
148
167
  "aria-labelledby": title || titleRender ? id : undefined,
149
168
  role: "dialog"
150
169
  },
151
- "class": "k-widget k-window k-dialog",
170
+ "class": "k-window k-dialog",
152
171
  role: "dialog",
153
172
  style: {
154
173
  width: width,
@@ -173,7 +192,7 @@ var DialogVue2 = {
173
192
  title: title,
174
193
  titleRender: titleRender
175
194
  }), h("div", {
176
- "class": "k-content k-window-content k-dialog-content",
195
+ "class": "k-window-content k-dialog-content",
177
196
  style: contentStyle
178
197
  }, [content]), actions])]);
179
198
  return this.$props.appendTo ? h("div", [dialog]) : dialog;
@@ -7,8 +7,25 @@ declare type DefaultMethods<V> = {
7
7
  * @hidden
8
8
  */
9
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
+ */
10
19
  layout: string;
11
- buttonGroupClass?: boolean;
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;
12
29
  }
13
30
  /**
14
31
  * @hidden
@@ -12,11 +12,17 @@ var DialogActionsBarVue2 = {
12
12
  props: {
13
13
  layout: {
14
14
  type: String,
15
- default: 'stretched'
15
+ default: 'stretched',
16
+ validator: function validator(value) {
17
+ return ['stretched', 'start', 'center', 'end'].includes(value);
18
+ }
16
19
  },
17
- buttonGroupClass: {
18
- type: Boolean,
19
- default: true
20
+ orientation: {
21
+ type: String,
22
+ default: 'horizontal',
23
+ validator: function validator(value) {
24
+ return ['horizontal', 'vertical'].includes(value);
25
+ }
20
26
  }
21
27
  },
22
28
  // @ts-ignore
@@ -29,11 +35,14 @@ var DialogActionsBarVue2 = {
29
35
  computed: {
30
36
  wrapperClasses: function wrapperClasses() {
31
37
  var _a;
32
- var layout = this.$props.layout;
38
+ var _b = this.$props,
39
+ layout = _b.layout,
40
+ orientation = _b.orientation;
33
41
  return _a = {
34
- 'k-dialog-buttongroup': this.buttonGroupClass,
35
- 'k-actions': true
36
- }, _a["k-actions-".concat(layout)] = layout, _a;
42
+ 'k-actions': true,
43
+ 'k-dialog-actions': true,
44
+ 'k-window-actions': true
45
+ }, _a["k-actions-".concat(orientation)] = orientation, _a["k-actions-".concat(layout)] = layout, _a;
37
46
  }
38
47
  },
39
48
  // @ts-ignore
@@ -5,6 +5,7 @@ var gh = allVue.h;
5
5
  var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { getTemplate } from '@progress/kendo-vue-common';
7
7
  import { Button } from '@progress/kendo-vue-buttons';
8
+ import { xIcon } from '@progress/kendo-svg-icons';
8
9
  /**
9
10
  * @hidden
10
11
  */
@@ -53,7 +54,7 @@ var DialogTitleBarVue2 = {
53
54
  }, [h("div", {
54
55
  "class": "k-window-title k-dialog-title"
55
56
  }, [titleElement]), h("div", {
56
- "class": "k-window-actions k-dialog-actions"
57
+ "class": "k-window-titlebar-actions k-dialog-titlebar-actions"
57
58
  }, [closeIcon &&
58
59
  // @ts-ignore
59
60
  h(Button, {
@@ -62,16 +63,18 @@ var DialogTitleBarVue2 = {
62
63
  type: "button",
63
64
  fillMode: 'flat',
64
65
  "aria-label": "Close",
65
- icon: 'x'
66
+ icon: 'x',
67
+ svgIcon: xIcon
66
68
  },
67
69
  fillMode: 'flat',
68
70
  "aria-label": "Close",
69
71
  icon: 'x',
72
+ svgIcon: xIcon,
70
73
  onClick: this.onCloseButtonClick,
71
74
  on: this.v3 ? undefined : {
72
75
  "click": this.onCloseButtonClick
73
76
  },
74
- "class": "k-window-action k-dialog-action"
77
+ "class": "k-window-titlebar-action k-dialog-titlebar-action"
75
78
  })])]);
76
79
  }
77
80
  };
@@ -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, guid, Draggable, templateDefinition, getDefaultSlots, templateRendering, getListeners, validatePackage } from '@progress/kendo-vue-common';
19
+ import { Keys, 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';
@@ -105,6 +105,12 @@ var WindowVue2 = {
105
105
  validator: function validator(value) {
106
106
  return ['DEFAULT', 'MINIMIZED', 'FULLSCREEN'].indexOf(value) !== -1;
107
107
  }
108
+ },
109
+ themeColor: {
110
+ type: String,
111
+ validator: function validator(value) {
112
+ return [undefined, 'primary', 'dark', 'light'].includes(value);
113
+ }
108
114
  }
109
115
  },
110
116
  // @ts-ignore
@@ -171,6 +177,15 @@ var WindowVue2 = {
171
177
  }
172
178
  },
173
179
  computed: {
180
+ windowElementClass: function windowElementClass() {
181
+ var _a;
182
+ var _b = this.$props,
183
+ windowClass = _b.windowClass,
184
+ themeColor = _b.themeColor;
185
+ return _a = {
186
+ 'k-window': true
187
+ }, _a[windowClass] = windowClass, _a["k-window-".concat(themeColor)] = themeColor, _a['k-window-minimized'] = this.currentStage === 'MINIMIZED', _a;
188
+ },
174
189
  computedTop: function computedTop() {
175
190
  if (this.windowStage !== windowStage.FULLSCREEN) {
176
191
  return Math.max(this.$props.top || this.currentTop, 0);
@@ -479,9 +494,6 @@ var WindowVue2 = {
479
494
  render: function render(createElement) {
480
495
  var _this = this;
481
496
  var h = gh || createElement;
482
- var classNamesWindow = classNames('k-widget', 'k-window', this.$props.windowClass, {
483
- 'k-window-minimized': this.currentStage === 'MINIMIZED'
484
- });
485
497
  var titleRender = templateRendering.call(this, this.$props.titleRender, getListeners.call(this));
486
498
  var closeButton = templateRendering.call(this, this.$props.closeButton, getListeners.call(this));
487
499
  var minimizeButton = templateRendering.call(this, this.$props.minimizeButton, getListeners.call(this));
@@ -520,7 +532,7 @@ var WindowVue2 = {
520
532
  },
521
533
  onKeydown: this.handleKeyDown,
522
534
  ref: 'windowElement',
523
- "class": classNamesWindow,
535
+ "class": this.windowElementClass,
524
536
  role: 'dialog',
525
537
  "aria-labelledby": this.titleId,
526
538
  style: __assign({
@@ -608,7 +620,7 @@ var WindowVue2 = {
608
620
  maximizeButton: maximizeButton,
609
621
  restoreButton: restoreButton
610
622
  })]), this.windowStage !== windowStage.MINIMIZED ? h("div", {
611
- "class": "k-content k-window-content"
623
+ "class": "k-window-content"
612
624
  }, [defaultSlot]) : null, this.windowStage === windowStage.DEFAULT && this.$props.resizable
613
625
  // @ts-ignore function children
614
626
  ? h(ResizeHandlers, {
@@ -77,6 +77,10 @@ export interface WindowProps {
77
77
  * Specifies if the Window will be resizable ([see example]({% slug dimensionsresizing_window %}#toc-resizing)).
78
78
  */
79
79
  resizable?: boolean;
80
+ /**
81
+ * Specifies the theme color of the Dialog.
82
+ */
83
+ themeColor?: 'promary' | 'dark' | 'light' | string;
80
84
  /**
81
85
  * Acccepts a named slot `string`, functional or class component for the restore button. If set to `false` the button is not rendered.
82
86
  * @default true