@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.
@@ -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.js';
10
10
  import { dialogsWindowCloseButton, dialogsWindowMaximizeButton, dialogsWindowMinimizeButton, dialogsWindowRestoreButton, messages } from './messages/main.js';
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
@@ -36,7 +36,14 @@ var DialogVue2 = {
36
36
  },
37
37
  width: [String, Number],
38
38
  height: [String, Number],
39
- minWidth: [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
+ }
40
47
  },
41
48
  provide: function provide() {
42
49
  return {
@@ -54,6 +61,18 @@ var DialogVue2 = {
54
61
  v3: v3
55
62
  };
56
63
  },
64
+ computed: {
65
+ dialogElementClass: function dialogElementClass() {
66
+ var _a;
67
+ var _b = this.$props,
68
+ dialogClass = _b.dialogClass,
69
+ themeColor = _b.themeColor;
70
+ return _a = {
71
+ 'k-window': true,
72
+ 'k-dialog': true
73
+ }, _a[dialogClass] = dialogClass, _a["k-window-".concat(themeColor)] = themeColor, _a;
74
+ }
75
+ },
57
76
  mounted: function mounted() {
58
77
  if (this.$props.appendTo) {
59
78
  var body = document.querySelector(this.$props.appendTo);
@@ -154,7 +173,7 @@ var DialogVue2 = {
154
173
  "aria-labelledby": title || titleRender ? id : undefined,
155
174
  role: "dialog"
156
175
  },
157
- "class": "k-widget k-window k-dialog",
176
+ "class": "k-window k-dialog",
158
177
  role: "dialog",
159
178
  style: {
160
179
  width: width,
@@ -179,7 +198,7 @@ var DialogVue2 = {
179
198
  title: title,
180
199
  titleRender: titleRender
181
200
  }), h("div", {
182
- "class": "k-content k-window-content k-dialog-content",
201
+ "class": "k-window-content k-dialog-content",
183
202
  style: contentStyle
184
203
  }, [content]), actions])]);
185
204
  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
@@ -18,11 +18,17 @@ var DialogActionsBarVue2 = {
18
18
  props: {
19
19
  layout: {
20
20
  type: String,
21
- default: 'stretched'
21
+ default: 'stretched',
22
+ validator: function validator(value) {
23
+ return ['stretched', 'start', 'center', 'end'].includes(value);
24
+ }
22
25
  },
23
- buttonGroupClass: {
24
- type: Boolean,
25
- default: true
26
+ orientation: {
27
+ type: String,
28
+ default: 'horizontal',
29
+ validator: function validator(value) {
30
+ return ['horizontal', 'vertical'].includes(value);
31
+ }
26
32
  }
27
33
  },
28
34
  // @ts-ignore
@@ -35,11 +41,14 @@ var DialogActionsBarVue2 = {
35
41
  computed: {
36
42
  wrapperClasses: function wrapperClasses() {
37
43
  var _a;
38
- var layout = this.$props.layout;
44
+ var _b = this.$props,
45
+ layout = _b.layout,
46
+ orientation = _b.orientation;
39
47
  return _a = {
40
- 'k-dialog-buttongroup': this.buttonGroupClass,
41
- 'k-actions': true
42
- }, _a["k-actions-".concat(layout)] = layout, _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;
43
52
  }
44
53
  },
45
54
  // @ts-ignore
@@ -11,6 +11,7 @@ var gh = allVue.h;
11
11
  var isV3 = allVue.version && allVue.version[0] === '3';
12
12
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
13
13
  var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
14
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
14
15
  /**
15
16
  * @hidden
16
17
  */
@@ -59,7 +60,7 @@ var DialogTitleBarVue2 = {
59
60
  }, [h("div", {
60
61
  "class": "k-window-title k-dialog-title"
61
62
  }, [titleElement]), h("div", {
62
- "class": "k-window-actions k-dialog-actions"
63
+ "class": "k-window-titlebar-actions k-dialog-titlebar-actions"
63
64
  }, [closeIcon &&
64
65
  // @ts-ignore
65
66
  h(kendo_vue_buttons_1.Button, {
@@ -68,16 +69,18 @@ var DialogTitleBarVue2 = {
68
69
  type: "button",
69
70
  fillMode: 'flat',
70
71
  "aria-label": "Close",
71
- icon: 'x'
72
+ icon: 'x',
73
+ svgIcon: kendo_svg_icons_1.xIcon
72
74
  },
73
75
  fillMode: 'flat',
74
76
  "aria-label": "Close",
75
77
  icon: 'x',
78
+ svgIcon: kendo_svg_icons_1.xIcon,
76
79
  onClick: this.onCloseButtonClick,
77
80
  on: this.v3 ? undefined : {
78
81
  "click": this.onCloseButtonClick
79
82
  },
80
- "class": "k-window-action k-dialog-action"
83
+ "class": "k-window-titlebar-action k-dialog-titlebar-action"
81
84
  })])]);
82
85
  }
83
86
  };
@@ -111,6 +111,12 @@ var WindowVue2 = {
111
111
  validator: function validator(value) {
112
112
  return ['DEFAULT', 'MINIMIZED', 'FULLSCREEN'].indexOf(value) !== -1;
113
113
  }
114
+ },
115
+ themeColor: {
116
+ type: String,
117
+ validator: function validator(value) {
118
+ return [undefined, 'primary', 'dark', 'light'].includes(value);
119
+ }
114
120
  }
115
121
  },
116
122
  // @ts-ignore
@@ -177,6 +183,15 @@ var WindowVue2 = {
177
183
  }
178
184
  },
179
185
  computed: {
186
+ windowElementClass: function windowElementClass() {
187
+ var _a;
188
+ var _b = this.$props,
189
+ windowClass = _b.windowClass,
190
+ themeColor = _b.themeColor;
191
+ return _a = {
192
+ 'k-window': true
193
+ }, _a[windowClass] = windowClass, _a["k-window-".concat(themeColor)] = themeColor, _a['k-window-minimized'] = this.currentStage === 'MINIMIZED', _a;
194
+ },
180
195
  computedTop: function computedTop() {
181
196
  if (this.windowStage !== StageEnum_1.windowStage.FULLSCREEN) {
182
197
  return Math.max(this.$props.top || this.currentTop, 0);
@@ -485,9 +500,6 @@ var WindowVue2 = {
485
500
  render: function render(createElement) {
486
501
  var _this = this;
487
502
  var h = gh || createElement;
488
- var classNamesWindow = (0, kendo_vue_common_1.classNames)('k-widget', 'k-window', this.$props.windowClass, {
489
- 'k-window-minimized': this.currentStage === 'MINIMIZED'
490
- });
491
503
  var titleRender = kendo_vue_common_1.templateRendering.call(this, this.$props.titleRender, kendo_vue_common_1.getListeners.call(this));
492
504
  var closeButton = kendo_vue_common_1.templateRendering.call(this, this.$props.closeButton, kendo_vue_common_1.getListeners.call(this));
493
505
  var minimizeButton = kendo_vue_common_1.templateRendering.call(this, this.$props.minimizeButton, kendo_vue_common_1.getListeners.call(this));
@@ -526,7 +538,7 @@ var WindowVue2 = {
526
538
  },
527
539
  onKeydown: this.handleKeyDown,
528
540
  ref: 'windowElement',
529
- "class": classNamesWindow,
541
+ "class": this.windowElementClass,
530
542
  role: 'dialog',
531
543
  "aria-labelledby": this.titleId,
532
544
  style: __assign({
@@ -614,7 +626,7 @@ var WindowVue2 = {
614
626
  maximizeButton: maximizeButton,
615
627
  restoreButton: restoreButton
616
628
  })]), this.windowStage !== StageEnum_1.windowStage.MINIMIZED ? h("div", {
617
- "class": "k-content k-window-content"
629
+ "class": "k-window-content"
618
630
  }, [defaultSlot]) : null, this.windowStage === StageEnum_1.windowStage.DEFAULT && this.$props.resizable
619
631
  // @ts-ignore function children
620
632
  ? h(WindowResizeHandlers_1.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
@@ -14,6 +14,7 @@ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
14
14
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
15
15
  var StageEnum_1 = require("./StageEnum");
16
16
  var main_1 = require("./messages/main");
17
+ var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
17
18
  /**
18
19
  * @hidden
19
20
  */
@@ -83,11 +84,13 @@ var WindowTitleBarVue2 = {
83
84
  attrs: this.v3 ? undefined : {
84
85
  type: "button",
85
86
  icon: 'window-minimize',
87
+ svgIcon: kendo_svg_icons_1.windowMinimizeIcon,
86
88
  fillMode: 'flat',
87
89
  "aria-label": ls.toLanguageString(main_1.dialogsWindowMinimizeButton, main_1.messages[main_1.dialogsWindowMinimizeButton])
88
90
  },
89
- "class": "k-window-action",
91
+ "class": "k-window-titlebar-action",
90
92
  icon: 'window-minimize',
93
+ svgIcon: kendo_svg_icons_1.windowMinimizeIcon,
91
94
  fillMode: 'flat',
92
95
  onClick: this.onMinimizeClick,
93
96
  on: this.v3 ? undefined : {
@@ -106,12 +109,14 @@ var WindowTitleBarVue2 = {
106
109
  type: "button",
107
110
  attrs: this.v3 ? undefined : {
108
111
  type: "button",
109
- icon: 'window-maximize',
112
+ icon: 'window',
113
+ svgIcon: kendo_svg_icons_1.windowIcon,
110
114
  fillMode: 'flat',
111
115
  "aria-label": ls.toLanguageString(main_1.dialogsWindowMaximizeButton, main_1.messages[main_1.dialogsWindowMaximizeButton])
112
116
  },
113
- "class": "k-window-action",
114
- icon: 'window-maximize',
117
+ "class": "k-window-titlebar-action",
118
+ icon: 'window',
119
+ svgIcon: kendo_svg_icons_1.windowIcon,
115
120
  fillMode: 'flat',
116
121
  onClick: this.onFullScreenClick,
117
122
  on: this.v3 ? undefined : {
@@ -131,11 +136,13 @@ var WindowTitleBarVue2 = {
131
136
  attrs: this.v3 ? undefined : {
132
137
  type: "button",
133
138
  icon: 'window-restore',
139
+ svgIcon: kendo_svg_icons_1.windowRestoreIcon,
134
140
  fillMode: 'flat',
135
141
  "aria-label": ls.toLanguageString(main_1.dialogsWindowRestoreButton, main_1.messages[main_1.dialogsWindowRestoreButton])
136
142
  },
137
- "class": "k-window-action",
143
+ "class": "k-window-titlebar-action",
138
144
  icon: 'window-restore',
145
+ svgIcon: kendo_svg_icons_1.windowRestoreIcon,
139
146
  fillMode: 'flat',
140
147
  onClick: this.onRestoreClick,
141
148
  on: this.v3 ? undefined : {
@@ -155,11 +162,13 @@ var WindowTitleBarVue2 = {
155
162
  attrs: this.v3 ? undefined : {
156
163
  type: "button",
157
164
  icon: 'x',
165
+ svgIcon: kendo_svg_icons_1.xIcon,
158
166
  fillMode: 'flat',
159
167
  "aria-label": ls.toLanguageString(main_1.dialogsWindowCloseButton, main_1.messages[main_1.dialogsWindowCloseButton])
160
168
  },
161
- "class": "k-window-action",
169
+ "class": "k-window-titlebar-action",
162
170
  icon: 'x',
171
+ svgIcon: kendo_svg_icons_1.xIcon,
163
172
  fillMode: 'flat',
164
173
  onClick: this.onCloseClick,
165
174
  on: this.v3 ? undefined : {
@@ -173,7 +182,7 @@ var WindowTitleBarVue2 = {
173
182
  defaultRendering: closeButtonDefault
174
183
  });
175
184
  return h("div", {
176
- "class": "k-window-titlebar k-dialog-titlebar",
185
+ "class": "k-window-titlebar",
177
186
  style: {
178
187
  touchAction: 'none'
179
188
  },
@@ -188,7 +197,7 @@ var WindowTitleBarVue2 = {
188
197
  id: this.$props.titleId
189
198
  }
190
199
  }, [titleElement]), h("div", {
191
- "class": "k-window-actions"
200
+ "class": "k-window-titlebar-actions"
192
201
  }, [stage === StageEnum_1.windowStage.DEFAULT && minimizeButtonRender, stage === StageEnum_1.windowStage.DEFAULT && maximizeButtonRender, stage !== StageEnum_1.windowStage.DEFAULT && restoreButtonRender, closeButtonRender])]);
193
202
  }
194
203
  };
@@ -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: 1672389550,
11
+ publishDate: 1673273393,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
14
14
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-dialogs",
3
3
  "description": "Kendo UI for Vue Dialogs package",
4
- "version": "3.7.4-dev.202212300853",
4
+ "version": "3.7.4-dev.202301091431",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -38,17 +38,19 @@
38
38
  "framework": "Kendo UI for Vue"
39
39
  },
40
40
  "peerDependencies": {
41
- "@progress/kendo-licensing": "^1.1.0",
41
+ "@progress/kendo-licensing": "^1.3.0",
42
+ "@progress/kendo-svg-icons": "^1.0.0",
42
43
  "@progress/kendo-vue-intl": "^3.6.0",
43
44
  "vue": "^2.6.12 || ^3.0.2"
44
45
  },
45
46
  "dependencies": {
46
- "@progress/kendo-vue-buttons": "3.7.4-dev.202212300853",
47
- "@progress/kendo-vue-common": "3.7.4-dev.202212300853"
47
+ "@progress/kendo-vue-buttons": "3.7.4-dev.202301091431",
48
+ "@progress/kendo-vue-common": "3.7.4-dev.202301091431"
48
49
  },
49
50
  "devDependencies": {
50
- "@progress/kendo-licensing": "^1.1.0",
51
- "@progress/kendo-vue-intl": "3.7.4-dev.202212300853"
51
+ "@progress/kendo-licensing": "^1.3.0",
52
+ "@progress/kendo-svg-icons": "^1.0.0",
53
+ "@progress/kendo-vue-intl": "3.7.4-dev.202301091431"
52
54
  },
53
55
  "author": "Progress",
54
56
  "license": "SEE LICENSE IN LICENSE.md",