@progress/kendo-vue-dialogs 2.7.2 → 2.8.0-dev.202201121019

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.
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from './additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from './additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -65,7 +64,7 @@ export interface WindowTitleBarProps {
65
64
  /**
66
65
  * @hidden
67
66
  */
68
- export interface WindowTitleBarMethods extends Vue {
67
+ export interface WindowTitleBarMethods extends Vue2type {
69
68
  onDoubleClick: (e: any) => void;
70
69
  onMinimizeClick: (e: any) => void;
71
70
  onFullScreenClick: (e: any) => void;
@@ -75,6 +74,6 @@ export interface WindowTitleBarMethods extends Vue {
75
74
  /**
76
75
  * Represents the default `WindowTitleBar` component.
77
76
  */
78
- declare let WindowTitleBar: ComponentOptions<Vue, DefaultData<{}>, DefaultMethods<WindowTitleBarMethods>, {}, RecordPropsDefinition<WindowTitleBarProps>>;
79
- declare const WindowTitleBarVue3: DefineComponent<WindowTitleBarProps, any, {}, {}, WindowTitleBarMethods, {}, {}, {}, string, WindowTitleBarProps, WindowTitleBarProps, {}>;
80
- export { WindowTitleBar, WindowTitleBarVue3 };
77
+ declare let WindowTitleBarVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<WindowTitleBarMethods>, {}, RecordPropsDefinition<WindowTitleBarProps>>;
78
+ declare const WindowTitleBar: DefineComponent<WindowTitleBarProps, any, {}, {}, WindowTitleBarMethods, {}, {}, {}, string, WindowTitleBarProps, WindowTitleBarProps, {}>;
79
+ export { WindowTitleBar, WindowTitleBarVue2 };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.WindowTitleBarVue3 = exports.WindowTitleBar = void 0; // @ts-ignore
6
+ exports.WindowTitleBarVue2 = exports.WindowTitleBar = void 0; // @ts-ignore
7
7
 
8
8
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
9
9
 
@@ -12,13 +12,15 @@ var Vue = require("vue");
12
12
  var allVue = Vue;
13
13
  var gh = allVue.h;
14
14
 
15
+ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
16
+
15
17
  var StageEnum_1 = require("./StageEnum");
16
18
  /**
17
19
  * Represents the default `WindowTitleBar` component.
18
20
  */
19
21
 
20
22
 
21
- var WindowTitleBar = {
23
+ var WindowTitleBarVue2 = {
22
24
  props: {
23
25
  id: String,
24
26
  stage: String,
@@ -69,73 +71,73 @@ var WindowTitleBar = {
69
71
  template: titleRender,
70
72
  defaultRendering: title
71
73
  });
72
- var minimizeButtonDefault = h("button", {
73
- "class": "k-button-icon k-button k-flat",
74
+ var minimizeButtonDefault = // @ts-ignore
75
+ h(kendo_vue_buttons_1.Button, {
76
+ icon: 'window-minimize',
77
+ attrs: this.v3 ? undefined : {
78
+ icon: 'window-minimize',
79
+ fillMode: 'flat'
80
+ },
81
+ fillMode: 'flat',
74
82
  onClick: this.onMinimizeClick,
75
83
  on: this.v3 ? undefined : {
76
84
  "click": this.onMinimizeClick
77
85
  }
78
- }, [h("span", {
79
- "class": "k-icon k-i-window-minimize",
80
- role: "presentation",
81
- attrs: this.v3 ? undefined : {
82
- role: "presentation"
83
- }
84
- })]);
86
+ });
85
87
  var minimizeButtonRender = kendo_vue_common_1.getTemplate.call(this, {
86
88
  h: h,
87
89
  template: minimizeButton,
88
90
  defaultRendering: minimizeButtonDefault
89
91
  });
90
- var maximizeButtonDefault = h("button", {
91
- "class": "k-button-icon k-button k-flat",
92
+ var maximizeButtonDefault = // @ts-ignore
93
+ h(kendo_vue_buttons_1.Button, {
94
+ icon: 'window-maximize',
95
+ attrs: this.v3 ? undefined : {
96
+ icon: 'window-maximize',
97
+ fillMode: 'flat'
98
+ },
99
+ fillMode: 'flat',
92
100
  onClick: this.onFullScreenClick,
93
101
  on: this.v3 ? undefined : {
94
102
  "click": this.onFullScreenClick
95
103
  }
96
- }, [h("span", {
97
- "class": "k-icon k-i-window-maximize",
98
- role: "presentation",
99
- attrs: this.v3 ? undefined : {
100
- role: "presentation"
101
- }
102
- })]);
104
+ });
103
105
  var maximizeButtonRender = kendo_vue_common_1.getTemplate.call(this, {
104
106
  h: h,
105
107
  template: maximizeButton,
106
108
  defaultRendering: maximizeButtonDefault
107
109
  });
108
- var restoreButtonDefault = h("button", {
109
- "class": "k-button-icon k-button k-flat",
110
+ var restoreButtonDefault = // @ts-ignore
111
+ h(kendo_vue_buttons_1.Button, {
112
+ icon: 'window-restore',
113
+ attrs: this.v3 ? undefined : {
114
+ icon: 'window-restore',
115
+ fillMode: 'flat'
116
+ },
117
+ fillMode: 'flat',
110
118
  onClick: this.onRestoreClick,
111
119
  on: this.v3 ? undefined : {
112
120
  "click": this.onRestoreClick
113
121
  }
114
- }, [h("span", {
115
- "class": "k-icon k-i-window-restore",
116
- role: "presentation",
117
- attrs: this.v3 ? undefined : {
118
- role: "presentation"
119
- }
120
- })]);
122
+ });
121
123
  var restoreButtonRender = kendo_vue_common_1.getTemplate.call(this, {
122
124
  h: h,
123
125
  template: restoreButton,
124
126
  defaultRendering: restoreButtonDefault
125
127
  });
126
- var closeButtonDefault = h("button", {
127
- "class": "k-button-icon k-button k-flat",
128
+ var closeButtonDefault = // @ts-ignore
129
+ h(kendo_vue_buttons_1.Button, {
130
+ icon: 'x',
131
+ attrs: this.v3 ? undefined : {
132
+ icon: 'x',
133
+ fillMode: 'flat'
134
+ },
135
+ fillMode: 'flat',
128
136
  onClick: this.onCloseClick,
129
137
  on: this.v3 ? undefined : {
130
138
  "click": this.onCloseClick
131
139
  }
132
- }, [h("span", {
133
- "class": "k-icon k-i-close",
134
- role: "presentation",
135
- attrs: this.v3 ? undefined : {
136
- role: "presentation"
137
- }
138
- })]);
140
+ });
139
141
  var closeButtonRender = kendo_vue_common_1.getTemplate.call(this, {
140
142
  h: h,
141
143
  template: closeButton,
@@ -157,6 +159,6 @@ var WindowTitleBar = {
157
159
  }, [stage === StageEnum_1.windowStage.DEFAULT && minimizeButtonRender, stage === StageEnum_1.windowStage.DEFAULT && maximizeButtonRender, stage !== StageEnum_1.windowStage.DEFAULT && restoreButtonRender]), closeButtonRender]);
158
160
  }
159
161
  };
160
- exports.WindowTitleBar = WindowTitleBar;
161
- var WindowTitleBarVue3 = WindowTitleBar;
162
- exports.WindowTitleBarVue3 = WindowTitleBarVue3;
162
+ exports.WindowTitleBarVue2 = WindowTitleBarVue2;
163
+ var WindowTitleBar = WindowTitleBarVue2;
164
+ exports.WindowTitleBar = WindowTitleBar;
@@ -1,3 +1,9 @@
1
1
  // @ts-ignore
2
2
  import { DefineComponent } from 'vue';
3
- export { DefineComponent };
3
+ // @ts-ignore
4
+ import * as Vue from 'vue';
5
+ // @ts-ignore
6
+ type Vue2type = Vue.default;
7
+ // @ts-ignore
8
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
9
+ export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -1,6 +1,6 @@
1
- import { Dialog, DialogProps } from './Dialog';
2
- import { DialogActionsBar } from './DialogActionsBar';
3
- import { Window } from './Window';
1
+ import { Dialog, DialogVue2, DialogProps } from './Dialog';
2
+ import { DialogActionsBar, DialogActionsBarVue2 } from './DialogActionsBar';
3
+ import { Window, WindowVue2 } from './Window';
4
4
  import { WindowProps } from './WindowProps';
5
5
  import { DialogCloseEvent, WindowActionsEvent, WindowMoveEvent } from './events';
6
- export { Dialog, DialogProps, DialogActionsBar, DialogCloseEvent, Window, WindowProps, WindowActionsEvent, WindowMoveEvent };
6
+ export { Dialog, DialogVue2, DialogProps, DialogActionsBar, DialogActionsBarVue2, DialogCloseEvent, Window, WindowVue2, WindowProps, WindowActionsEvent, WindowMoveEvent };
package/dist/npm/main.js CHANGED
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Window = exports.DialogActionsBar = exports.Dialog = void 0;
3
+ exports.WindowVue2 = exports.Window = exports.DialogActionsBarVue2 = exports.DialogActionsBar = exports.DialogVue2 = exports.Dialog = void 0;
4
4
  var Dialog_1 = require("./Dialog");
5
5
  Object.defineProperty(exports, "Dialog", { enumerable: true, get: function () { return Dialog_1.Dialog; } });
6
+ Object.defineProperty(exports, "DialogVue2", { enumerable: true, get: function () { return Dialog_1.DialogVue2; } });
6
7
  var DialogActionsBar_1 = require("./DialogActionsBar");
7
8
  Object.defineProperty(exports, "DialogActionsBar", { enumerable: true, get: function () { return DialogActionsBar_1.DialogActionsBar; } });
9
+ Object.defineProperty(exports, "DialogActionsBarVue2", { enumerable: true, get: function () { return DialogActionsBar_1.DialogActionsBarVue2; } });
8
10
  var Window_1 = require("./Window");
9
11
  Object.defineProperty(exports, "Window", { enumerable: true, get: function () { return Window_1.Window; } });
12
+ Object.defineProperty(exports, "WindowVue2", { enumerable: true, get: function () { return Window_1.WindowVue2; } });
@@ -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: 1641396622,
11
+ publishDate: 1641981982,
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": "2.7.2",
4
+ "version": "2.8.0-dev.202201121019",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -36,7 +36,8 @@
36
36
  "vue": "^2.6.12 || ^3.0.2"
37
37
  },
38
38
  "dependencies": {
39
- "@progress/kendo-vue-common": "2.7.2"
39
+ "@progress/kendo-vue-buttons": "2.8.0-dev.202201121019",
40
+ "@progress/kendo-vue-common": "2.8.0-dev.202201121019"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@progress/kendo-licensing": "^1.1.0"