@progress/kendo-vue-gauges 2.7.3 → 3.0.0-dev.202201141128
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/dist/cdn/js/kendo-vue-gauges.js +1 -1
- package/dist/es/ArcCenter.d.ts +5 -6
- package/dist/es/ArcCenter.js +33 -8
- package/dist/es/ArcGauge.d.ts +5 -6
- package/dist/es/ArcGauge.js +30 -26
- package/dist/es/BaseGauge.d.ts +5 -6
- package/dist/es/BaseGauge.js +24 -27
- package/dist/es/BaseGaugeProps.d.ts +1 -0
- package/dist/es/CircularGauge.d.ts +5 -6
- package/dist/es/CircularGauge.js +3 -3
- package/dist/es/LinearGauge.d.ts +5 -6
- package/dist/es/LinearGauge.js +8 -6
- package/dist/es/RadialGauge.d.ts +5 -6
- package/dist/es/RadialGauge.js +9 -7
- package/dist/es/additionalTypes.ts +7 -1
- package/dist/es/main.d.ts +5 -5
- package/dist/es/main.js +5 -6
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/ArcCenter.d.ts +5 -6
- package/dist/npm/ArcCenter.js +34 -9
- package/dist/npm/ArcGauge.d.ts +5 -6
- package/dist/npm/ArcGauge.js +32 -28
- package/dist/npm/BaseGauge.d.ts +5 -6
- package/dist/npm/BaseGauge.js +25 -28
- package/dist/npm/BaseGaugeProps.d.ts +1 -0
- package/dist/npm/CircularGauge.d.ts +5 -6
- package/dist/npm/CircularGauge.js +5 -5
- package/dist/npm/LinearGauge.d.ts +5 -6
- package/dist/npm/LinearGauge.js +10 -8
- package/dist/npm/RadialGauge.d.ts +5 -6
- package/dist/npm/RadialGauge.js +11 -9
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/main.d.ts +5 -5
- package/dist/npm/main.js +5 -2
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +6 -6
- package/dist/es/GaugeContext.d.ts +0 -1
- package/dist/es/GaugeContext.js +0 -12
- package/dist/es/common/gauges.d.ts +0 -1
- package/dist/es/common/gauges.js +0 -5
- package/dist/npm/GaugeContext.d.ts +0 -1
- package/dist/npm/GaugeContext.js +0 -13
- package/dist/npm/common/gauges.d.ts +0 -1
- package/dist/npm/common/gauges.js +0 -5
package/dist/npm/ArcCenter.js
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
4
|
+
__assign = Object.assign || function (t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
|
|
8
|
+
for (var p in s) {
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
return __assign.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
|
|
3
19
|
Object.defineProperty(exports, "__esModule", {
|
|
4
20
|
value: true
|
|
5
21
|
});
|
|
6
|
-
exports.
|
|
22
|
+
exports.ArcCenterVue2 = exports.ArcCenter = void 0; // @ts-ignore
|
|
7
23
|
|
|
8
24
|
var Vue = require("vue");
|
|
9
25
|
|
|
@@ -13,11 +29,18 @@ var gh = allVue.h;
|
|
|
13
29
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common"); // tslint:enable:max-line-length
|
|
14
30
|
|
|
15
31
|
|
|
16
|
-
var
|
|
32
|
+
var ArcCenterVue2 = {
|
|
17
33
|
name: 'KendoArcCenter',
|
|
18
34
|
props: {
|
|
19
|
-
center: [String, Function, Object]
|
|
20
|
-
|
|
35
|
+
center: [String, Function, Object]
|
|
36
|
+
},
|
|
37
|
+
inject: {
|
|
38
|
+
arcCenterValue: {
|
|
39
|
+
default: null
|
|
40
|
+
},
|
|
41
|
+
centerStyles: {
|
|
42
|
+
default: null
|
|
43
|
+
}
|
|
21
44
|
},
|
|
22
45
|
created: function created() {
|
|
23
46
|
this.element = null;
|
|
@@ -33,9 +56,11 @@ var ArcCenter = {
|
|
|
33
56
|
render: function render(createElement) {
|
|
34
57
|
var h = gh || createElement;
|
|
35
58
|
var center = this.$props.center;
|
|
36
|
-
|
|
59
|
+
|
|
60
|
+
var divStyle = __assign({
|
|
37
61
|
zIndex: -1
|
|
38
|
-
};
|
|
62
|
+
}, this.centerStyles);
|
|
63
|
+
|
|
39
64
|
var renderer = null;
|
|
40
65
|
|
|
41
66
|
if (center) {
|
|
@@ -58,6 +83,6 @@ var ArcCenter = {
|
|
|
58
83
|
return renderer;
|
|
59
84
|
}
|
|
60
85
|
};
|
|
61
|
-
exports.
|
|
62
|
-
var
|
|
63
|
-
exports.
|
|
86
|
+
exports.ArcCenterVue2 = ArcCenterVue2;
|
|
87
|
+
var ArcCenter = ArcCenterVue2;
|
|
88
|
+
exports.ArcCenter = ArcCenter;
|
package/dist/npm/ArcGauge.d.ts
CHANGED
|
@@ -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;
|
|
@@ -36,8 +35,8 @@ export interface ArcGaugeData {
|
|
|
36
35
|
/**
|
|
37
36
|
* @hidden
|
|
38
37
|
*/
|
|
39
|
-
export interface ArcGaugeAll extends
|
|
38
|
+
export interface ArcGaugeAll extends Vue2type, ArcGaugeMethods, ArcGaugeData, ArcGaugeComputed, ArcGaugeState {
|
|
40
39
|
}
|
|
41
|
-
declare let
|
|
42
|
-
declare const
|
|
43
|
-
export { ArcGauge,
|
|
40
|
+
declare let ArcGaugeVue2: ComponentOptions<ArcGaugeAll, DefaultData<ArcGaugeData>, DefaultMethods<ArcGaugeAll>, ArcGaugeComputed, RecordPropsDefinition<ArcGaugeProps>>;
|
|
41
|
+
declare const ArcGauge: DefineComponent<ArcGaugeProps, any, ArcGaugeData, ArcGaugeComputed, ArcGaugeMethods, {}, {}, {}, string, ArcGaugeProps, ArcGaugeProps, {}>;
|
|
42
|
+
export { ArcGauge, ArcGaugeVue2 };
|
package/dist/npm/ArcGauge.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ArcGaugeVue2 = exports.ArcGauge = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -21,7 +21,7 @@ var kendo_drawing_1 = require("@progress/kendo-drawing");
|
|
|
21
21
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common"); // tslint:enable:max-line-length
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var ArcGaugeVue2 = {
|
|
25
25
|
name: 'KendoArcGauge',
|
|
26
26
|
props: {
|
|
27
27
|
dir: String,
|
|
@@ -57,8 +57,20 @@ var ArcGauge = {
|
|
|
57
57
|
},
|
|
58
58
|
data: function data() {
|
|
59
59
|
return {
|
|
60
|
-
centerStyles: {
|
|
61
|
-
|
|
60
|
+
centerStyles: {
|
|
61
|
+
top: null,
|
|
62
|
+
left: null
|
|
63
|
+
},
|
|
64
|
+
arcCenterValue: {
|
|
65
|
+
value: '',
|
|
66
|
+
color: ''
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
provide: function provide() {
|
|
71
|
+
return {
|
|
72
|
+
centerStyles: this.$data.centerStyles,
|
|
73
|
+
arcCenterValue: this.$data.arcCenterValue
|
|
62
74
|
};
|
|
63
75
|
},
|
|
64
76
|
mounted: function mounted() {
|
|
@@ -101,29 +113,28 @@ var ArcGauge = {
|
|
|
101
113
|
value: value,
|
|
102
114
|
attrs: this.v3 ? undefined : {
|
|
103
115
|
value: value,
|
|
104
|
-
color: color,
|
|
105
116
|
deriveOptionsFromParent: this.deriveOptionsFromParent,
|
|
106
117
|
gaugeConstructor: this.gaugeType,
|
|
107
118
|
getTarget: this.getTarget
|
|
108
119
|
},
|
|
109
|
-
color: color,
|
|
110
120
|
deriveOptionsFromParent: this.deriveOptionsFromParent,
|
|
111
121
|
ref: this.v3 ? function (el) {
|
|
112
122
|
_this.baseGaugeRef = el;
|
|
113
123
|
} : 'baseGauge',
|
|
114
124
|
gaugeConstructor: this.gaugeType,
|
|
115
125
|
getTarget: this.getTarget,
|
|
116
|
-
"class": kendo_vue_common_1.classNames('k-gauge k-arcgauge', className)
|
|
126
|
+
"class": kendo_vue_common_1.classNames('k-gauge k-arcgauge', className),
|
|
127
|
+
onRender: this.positionCenter,
|
|
128
|
+
on: this.v3 ? undefined : {
|
|
129
|
+
"render": this.positionCenter
|
|
130
|
+
}
|
|
117
131
|
}, this.v3 ? function () {
|
|
118
132
|
return [defaultSlots, // @ts-ignore
|
|
119
133
|
h(ArcCenter_1.ArcCenter, {
|
|
120
134
|
center: center,
|
|
121
135
|
attrs: _this2.v3 ? undefined : {
|
|
122
|
-
center: center
|
|
123
|
-
arcCenterValue: _this2.arcCenterValue
|
|
136
|
+
center: center
|
|
124
137
|
},
|
|
125
|
-
style: _this2.centerStyles,
|
|
126
|
-
arcCenterValue: _this2.arcCenterValue,
|
|
127
138
|
ref: _this2.v3 ? function (el) {
|
|
128
139
|
_this.centerRef = el;
|
|
129
140
|
} : 'center'
|
|
@@ -131,11 +142,8 @@ var ArcGauge = {
|
|
|
131
142
|
} : [defaultSlots, h(ArcCenter_1.ArcCenter, {
|
|
132
143
|
center: center,
|
|
133
144
|
attrs: _this2.v3 ? undefined : {
|
|
134
|
-
center: center
|
|
135
|
-
arcCenterValue: _this2.arcCenterValue
|
|
145
|
+
center: center
|
|
136
146
|
},
|
|
137
|
-
style: _this2.centerStyles,
|
|
138
|
-
arcCenterValue: _this2.arcCenterValue,
|
|
139
147
|
ref: _this2.v3 ? function (el) {
|
|
140
148
|
_this.centerRef = el;
|
|
141
149
|
} : 'center'
|
|
@@ -148,14 +156,10 @@ var ArcGauge = {
|
|
|
148
156
|
var height = this.center.$el.offsetHeight;
|
|
149
157
|
var gaugeInstance = this.gaugeInstance();
|
|
150
158
|
var position = gaugeInstance.centerLabelPosition(width, height);
|
|
151
|
-
this.centerStyles =
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
this.arcCenterValue = {
|
|
156
|
-
value: gaugeInstance.value(),
|
|
157
|
-
color: gaugeInstance.currentColor()
|
|
158
|
-
};
|
|
159
|
+
this.centerStyles.left = position.left + 'px';
|
|
160
|
+
this.centerStyles.top = position.top + 'px';
|
|
161
|
+
this.arcCenterValue.value = gaugeInstance.value();
|
|
162
|
+
this.arcCenterValue.color = gaugeInstance.currentColor();
|
|
159
163
|
},
|
|
160
164
|
gaugeInstance: function gaugeInstance() {
|
|
161
165
|
if (this._baseGauge) {
|
|
@@ -179,8 +183,8 @@ var ArcGauge = {
|
|
|
179
183
|
return null;
|
|
180
184
|
},
|
|
181
185
|
exportVisual: function exportVisual(options) {
|
|
182
|
-
if (this.gaugeInstance !== null && this
|
|
183
|
-
return kendo_drawing_1.drawDOM(this
|
|
186
|
+
if (this.gaugeInstance !== null && this.$el) {
|
|
187
|
+
return kendo_drawing_1.drawDOM(this.$el, options);
|
|
184
188
|
}
|
|
185
189
|
|
|
186
190
|
return Promise.resolve(new kendo_drawing_1.Group());
|
|
@@ -205,6 +209,6 @@ var ArcGauge = {
|
|
|
205
209
|
}
|
|
206
210
|
}
|
|
207
211
|
};
|
|
208
|
-
exports.
|
|
209
|
-
var
|
|
210
|
-
exports.
|
|
212
|
+
exports.ArcGaugeVue2 = ArcGaugeVue2;
|
|
213
|
+
var ArcGauge = ArcGaugeVue2;
|
|
214
|
+
exports.ArcGauge = ArcGauge;
|
package/dist/npm/BaseGauge.d.ts
CHANGED
|
@@ -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;
|
|
@@ -35,8 +34,8 @@ export interface BaseGaugeData {
|
|
|
35
34
|
/**
|
|
36
35
|
* @hidden
|
|
37
36
|
*/
|
|
38
|
-
export interface BaseGaugeAll extends
|
|
37
|
+
export interface BaseGaugeAll extends Vue2type, BaseGaugeMethods, BaseGaugeData, BaseGaugeComputed, BaseGaugeState {
|
|
39
38
|
}
|
|
40
|
-
declare let
|
|
41
|
-
declare const
|
|
42
|
-
export { BaseGauge,
|
|
39
|
+
declare let BaseGaugeVue2: ComponentOptions<BaseGaugeAll, DefaultData<BaseGaugeData>, DefaultMethods<BaseGaugeAll>, BaseGaugeComputed, RecordPropsDefinition<BaseGaugeProps>>;
|
|
40
|
+
declare const BaseGauge: DefineComponent<BaseGaugeProps, any, BaseGaugeData, BaseGaugeComputed, BaseGaugeMethods, {}, {}, {}, string, BaseGaugeProps, BaseGaugeProps, {}>;
|
|
41
|
+
export { BaseGauge, BaseGaugeVue2 };
|
package/dist/npm/BaseGauge.js
CHANGED
|
@@ -16,7 +16,7 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", {
|
|
17
17
|
value: true
|
|
18
18
|
});
|
|
19
|
-
exports.
|
|
19
|
+
exports.BaseGaugeVue2 = exports.BaseGauge = void 0; // @ts-ignore
|
|
20
20
|
|
|
21
21
|
var Vue = require("vue");
|
|
22
22
|
|
|
@@ -39,7 +39,7 @@ var kendo_vue_common_2 = require("@progress/kendo-vue-common");
|
|
|
39
39
|
var package_metadata_1 = require("./package-metadata"); // tslint:enable:max-line-length
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var BaseGaugeVue2 = {
|
|
43
43
|
name: 'KendoBaseGauge',
|
|
44
44
|
props: {
|
|
45
45
|
dir: String,
|
|
@@ -51,31 +51,32 @@ var BaseGauge = {
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
value: Number,
|
|
54
|
+
pointer: {
|
|
55
|
+
type: [Object, Array],
|
|
56
|
+
default: function _default() {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
54
60
|
gaugeConstructor: [Object, Function],
|
|
55
61
|
deriveOptionsFromParent: Function
|
|
56
62
|
},
|
|
63
|
+
inject: {
|
|
64
|
+
kendoIntlService: {
|
|
65
|
+
default: null
|
|
66
|
+
}
|
|
67
|
+
},
|
|
57
68
|
created: function created() {
|
|
58
69
|
kendo_vue_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
59
70
|
this.gaugeInstance = null;
|
|
60
71
|
this.themeStore = {};
|
|
61
|
-
this._prevRenderAs =
|
|
62
|
-
this._prevDir =
|
|
63
|
-
// protected contextValue: GaugeContextType;
|
|
64
|
-
// protected observersStore: any = {};
|
|
65
|
-
|
|
72
|
+
this._prevRenderAs = this.renderAs;
|
|
73
|
+
this._prevDir = this.dir;
|
|
66
74
|
this.themeStore = store_1.default(reducer_1.themeReducer);
|
|
67
|
-
this.observersStore = store_1.default(reducer_1.observersReducer);
|
|
68
|
-
this.contextValue = {
|
|
69
|
-
observersStore: this.observersStore
|
|
70
|
-
};
|
|
71
75
|
},
|
|
72
76
|
mounted: function mounted() {
|
|
73
77
|
theme_service_1.loadTheme(this.themeStore, this.instantiateCoreGauge.bind(this));
|
|
74
78
|
this.themeUnsubscriber = this.themeStore.subscribe(this.refresh.bind(this));
|
|
75
79
|
window.addEventListener('resize', this.onWindowResize);
|
|
76
|
-
this.trigger('render', {
|
|
77
|
-
sender: this
|
|
78
|
-
});
|
|
79
80
|
},
|
|
80
81
|
watch: {
|
|
81
82
|
dir: function dir(_newDir, oldDir) {
|
|
@@ -100,7 +101,7 @@ var BaseGauge = {
|
|
|
100
101
|
var currentIntlService = kendo_vue_intl_1.provideIntlService(this);
|
|
101
102
|
var gaugeService = this.gaugeInstance.contextService;
|
|
102
103
|
var localeChanged = currentIntlService.locale !== gaugeService._intlService.locale;
|
|
103
|
-
var optionsChanged =
|
|
104
|
+
var optionsChanged = this._prevDir !== dir || this._prevRenderAs !== renderAs;
|
|
104
105
|
var typedCurrentOthers = currentOthers;
|
|
105
106
|
|
|
106
107
|
if (localeChanged) {
|
|
@@ -115,7 +116,7 @@ var BaseGauge = {
|
|
|
115
116
|
if (optionsChanged || (renderAs || 'svg') !== (this._prevRenderAs || 'svg')) {
|
|
116
117
|
this.refresh();
|
|
117
118
|
} else {
|
|
118
|
-
if (Object.keys(currentOthers).indexOf('pointer') > -1) {
|
|
119
|
+
if (Object.keys(currentOthers).indexOf('pointer') > -1 && currentOthers.pointer) {
|
|
119
120
|
var isPointerArray = Array.isArray(typedCurrentOthers.pointer);
|
|
120
121
|
|
|
121
122
|
if (isPointerArray) {
|
|
@@ -132,8 +133,11 @@ var BaseGauge = {
|
|
|
132
133
|
|
|
133
134
|
if (this._prevDir !== dir) {
|
|
134
135
|
this.gaugeInstance.setDirection(this.getDirection(dir));
|
|
135
|
-
}
|
|
136
|
+
}
|
|
136
137
|
|
|
138
|
+
this.$emit('render', {
|
|
139
|
+
sender: this
|
|
140
|
+
});
|
|
137
141
|
}
|
|
138
142
|
},
|
|
139
143
|
destroyed: function destroyed() {
|
|
@@ -216,23 +220,16 @@ var BaseGauge = {
|
|
|
216
220
|
|
|
217
221
|
return gaugeOptions;
|
|
218
222
|
},
|
|
219
|
-
trigger: function trigger(name, e) {
|
|
220
|
-
var observers = this.observersStore.getState();
|
|
221
|
-
|
|
222
|
-
for (var idx = 0; idx < observers.length; idx++) {
|
|
223
|
-
observers[idx].trigger(name, e);
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
223
|
onWindowResize: function onWindowResize() {
|
|
227
224
|
if (this.gaugeInstance !== null) {
|
|
228
225
|
this.gaugeInstance.resize();
|
|
229
|
-
this
|
|
226
|
+
this.$emit('render', {
|
|
230
227
|
sender: this
|
|
231
228
|
});
|
|
232
229
|
}
|
|
233
230
|
}
|
|
234
231
|
}
|
|
235
232
|
};
|
|
236
|
-
exports.
|
|
237
|
-
var
|
|
238
|
-
exports.
|
|
233
|
+
exports.BaseGaugeVue2 = BaseGaugeVue2;
|
|
234
|
+
var BaseGauge = BaseGaugeVue2;
|
|
235
|
+
exports.BaseGauge = BaseGauge;
|
|
@@ -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;
|
|
@@ -31,8 +30,8 @@ export interface CircularGaugeData extends ArcGaugeData {
|
|
|
31
30
|
/**
|
|
32
31
|
* @hidden
|
|
33
32
|
*/
|
|
34
|
-
export interface CircularGaugeAll extends
|
|
33
|
+
export interface CircularGaugeAll extends Vue2type, CircularGaugeMethods, CircularGaugeData, CircularGaugeComputed, CircularGaugeState {
|
|
35
34
|
}
|
|
36
|
-
declare let
|
|
37
|
-
declare const
|
|
38
|
-
export { CircularGauge,
|
|
35
|
+
declare let CircularGaugeVue2: ComponentOptions<CircularGaugeAll, DefaultData<CircularGaugeData>, DefaultMethods<CircularGaugeAll>, CircularGaugeComputed, RecordPropsDefinition<CircularGaugeProps>>;
|
|
36
|
+
declare const CircularGauge: DefineComponent<CircularGaugeProps, any, CircularGaugeData, CircularGaugeComputed, CircularGaugeMethods, {}, {}, {}, string, CircularGaugeProps, CircularGaugeProps, {}>;
|
|
37
|
+
export { CircularGauge, CircularGaugeVue2 };
|
|
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", {
|
|
20
20
|
value: true
|
|
21
21
|
});
|
|
22
|
-
exports.
|
|
22
|
+
exports.CircularGaugeVue2 = exports.CircularGauge = void 0; // @ts-ignore
|
|
23
23
|
|
|
24
24
|
var Vue = require("vue");
|
|
25
25
|
|
|
@@ -31,7 +31,7 @@ var ArcGauge_1 = require("./ArcGauge");
|
|
|
31
31
|
var kendo_charts_1 = require("@progress/kendo-charts"); // tslint:enable:max-line-length
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var CircularGaugeVue2 = __assign(__assign({}, ArcGauge_1.ArcGauge), {
|
|
35
35
|
name: 'KendoCircularGauge',
|
|
36
36
|
created: function created() {
|
|
37
37
|
this.gaugeType = kendo_charts_1.CircularGauge;
|
|
@@ -39,6 +39,6 @@ var CircularGauge = __assign(__assign({}, ArcGauge_1.ArcGauge), {
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
exports.
|
|
43
|
-
var
|
|
44
|
-
exports.
|
|
42
|
+
exports.CircularGaugeVue2 = CircularGaugeVue2;
|
|
43
|
+
var CircularGauge = CircularGaugeVue2;
|
|
44
|
+
exports.CircularGauge = CircularGauge;
|
|
@@ -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;
|
|
@@ -31,8 +30,8 @@ export interface LinearGaugeData {
|
|
|
31
30
|
/**
|
|
32
31
|
* @hidden
|
|
33
32
|
*/
|
|
34
|
-
export interface LinearGaugeAll extends
|
|
33
|
+
export interface LinearGaugeAll extends Vue2type, LinearGaugeMethods, LinearGaugeData, LinearGaugeComputed, LinearGaugeState {
|
|
35
34
|
}
|
|
36
|
-
declare let
|
|
37
|
-
declare const
|
|
38
|
-
export { LinearGauge,
|
|
35
|
+
declare let LinearGaugeVue2: ComponentOptions<LinearGaugeAll, DefaultData<LinearGaugeData>, DefaultMethods<LinearGaugeAll>, LinearGaugeComputed, RecordPropsDefinition<LinearGaugeProps>>;
|
|
36
|
+
declare const LinearGauge: DefineComponent<LinearGaugeProps, any, LinearGaugeData, LinearGaugeComputed, LinearGaugeMethods, {}, {}, {}, string, LinearGaugeProps, LinearGaugeProps, {}>;
|
|
37
|
+
export { LinearGauge, LinearGaugeVue2 };
|
package/dist/npm/LinearGauge.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.LinearGaugeVue2 = exports.LinearGauge = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -19,7 +19,7 @@ var kendo_drawing_1 = require("@progress/kendo-drawing");
|
|
|
19
19
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common"); // tslint:enable:max-line-length
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var LinearGaugeVue2 = {
|
|
23
23
|
name: 'KendoLinearGauge',
|
|
24
24
|
props: {
|
|
25
25
|
dir: String,
|
|
@@ -61,12 +61,14 @@ var LinearGauge = {
|
|
|
61
61
|
var defaultSlots = kendo_vue_common_1.getDefaultSlots(this);
|
|
62
62
|
return (// @ts-ignore function children
|
|
63
63
|
h(BaseGauge_1.BaseGauge, {
|
|
64
|
-
|
|
64
|
+
pointer: this.$props.pointer,
|
|
65
65
|
attrs: this.v3 ? undefined : {
|
|
66
|
+
pointer: this.$props.pointer,
|
|
66
67
|
deriveOptionsFromParent: this.deriveOptionsFromParent,
|
|
67
68
|
gaugeConstructor: kendo_charts_1.LinearGauge,
|
|
68
69
|
getTarget: this.getTarget
|
|
69
70
|
},
|
|
71
|
+
deriveOptionsFromParent: this.deriveOptionsFromParent,
|
|
70
72
|
ref: this.v3 ? function (el) {
|
|
71
73
|
_this.baseGaugeRef = el;
|
|
72
74
|
} : 'baseGauge',
|
|
@@ -101,8 +103,8 @@ var LinearGauge = {
|
|
|
101
103
|
return null;
|
|
102
104
|
},
|
|
103
105
|
exportVisual: function exportVisual(options) {
|
|
104
|
-
if (this.gaugeInstance !== null) {
|
|
105
|
-
return Promise.resolve(this.gaugeInstance.exportVisual(options));
|
|
106
|
+
if (this.gaugeInstance() !== null) {
|
|
107
|
+
return Promise.resolve(this.gaugeInstance().exportVisual(options));
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
return Promise.resolve(new kendo_drawing_1.Group());
|
|
@@ -121,6 +123,6 @@ var LinearGauge = {
|
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
125
|
};
|
|
124
|
-
exports.
|
|
125
|
-
var
|
|
126
|
-
exports.
|
|
126
|
+
exports.LinearGaugeVue2 = LinearGaugeVue2;
|
|
127
|
+
var LinearGauge = LinearGaugeVue2;
|
|
128
|
+
exports.LinearGauge = LinearGauge;
|
|
@@ -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;
|
|
@@ -31,8 +30,8 @@ export interface RadialGaugeData {
|
|
|
31
30
|
/**
|
|
32
31
|
* @hidden
|
|
33
32
|
*/
|
|
34
|
-
export interface RadialGaugeAll extends
|
|
33
|
+
export interface RadialGaugeAll extends Vue2type, RadialGaugeMethods, RadialGaugeData, RadialGaugeComputed, RadialGaugeState {
|
|
35
34
|
}
|
|
36
|
-
declare let
|
|
37
|
-
declare const
|
|
38
|
-
export { RadialGauge,
|
|
35
|
+
declare let RadialGaugeVue2: ComponentOptions<RadialGaugeAll, DefaultData<RadialGaugeData>, DefaultMethods<RadialGaugeAll>, RadialGaugeComputed, RecordPropsDefinition<RadialGaugeProps>>;
|
|
36
|
+
declare const RadialGauge: DefineComponent<RadialGaugeProps, any, RadialGaugeData, RadialGaugeComputed, RadialGaugeMethods, {}, {}, {}, string, RadialGaugeProps, RadialGaugeProps, {}>;
|
|
37
|
+
export { RadialGauge, RadialGaugeVue2 };
|
package/dist/npm/RadialGauge.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.RadialGaugeVue2 = exports.RadialGauge = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -19,7 +19,7 @@ var kendo_drawing_1 = require("@progress/kendo-drawing");
|
|
|
19
19
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common"); // tslint:enable:max-line-length
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var RadialGaugeVue2 = {
|
|
23
23
|
name: 'KendoRadialGauge',
|
|
24
24
|
props: {
|
|
25
25
|
dir: String,
|
|
@@ -59,15 +59,17 @@ var RadialGauge = {
|
|
|
59
59
|
|
|
60
60
|
var h = gh || createElement;
|
|
61
61
|
var defaultSlots = kendo_vue_common_1.getDefaultSlots(this);
|
|
62
|
-
var
|
|
62
|
+
var pointer = this.$props.pointer;
|
|
63
63
|
return (// @ts-ignore function children
|
|
64
64
|
h(BaseGauge_1.BaseGauge, {
|
|
65
|
-
|
|
65
|
+
pointer: pointer,
|
|
66
66
|
attrs: this.v3 ? undefined : {
|
|
67
|
+
pointer: pointer,
|
|
67
68
|
deriveOptionsFromParent: this.deriveOptionsFromParent,
|
|
68
69
|
gaugeConstructor: kendo_charts_1.RadialGauge,
|
|
69
70
|
getTarget: this.getTarget
|
|
70
71
|
},
|
|
72
|
+
deriveOptionsFromParent: this.deriveOptionsFromParent,
|
|
71
73
|
ref: this.v3 ? function (el) {
|
|
72
74
|
_this.baseGaugeRef = el;
|
|
73
75
|
} : 'baseGauge',
|
|
@@ -102,8 +104,8 @@ var RadialGauge = {
|
|
|
102
104
|
return null;
|
|
103
105
|
},
|
|
104
106
|
exportVisual: function exportVisual(options) {
|
|
105
|
-
if (this.gaugeInstance !== null) {
|
|
106
|
-
return Promise.resolve(this.gaugeInstance.exportVisual(options));
|
|
107
|
+
if (this.gaugeInstance() !== null) {
|
|
108
|
+
return Promise.resolve(this.gaugeInstance().exportVisual(options));
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
return Promise.resolve(new kendo_drawing_1.Group());
|
|
@@ -122,6 +124,6 @@ var RadialGauge = {
|
|
|
122
124
|
}
|
|
123
125
|
}
|
|
124
126
|
};
|
|
125
|
-
exports.
|
|
126
|
-
var
|
|
127
|
-
exports.
|
|
127
|
+
exports.RadialGaugeVue2 = RadialGaugeVue2;
|
|
128
|
+
var RadialGauge = RadialGaugeVue2;
|
|
129
|
+
exports.RadialGauge = RadialGauge;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import { DefineComponent } from 'vue';
|
|
3
|
-
|
|
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 };
|
package/dist/npm/main.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ArcGauge } from './ArcGauge';
|
|
1
|
+
import { ArcGauge, ArcGaugeVue2 } from './ArcGauge';
|
|
2
2
|
import { ArcGaugeProps } from './ArcGaugeProps';
|
|
3
|
-
import { CircularGauge } from './CircularGauge';
|
|
3
|
+
import { CircularGauge, CircularGaugeVue2 } from './CircularGauge';
|
|
4
4
|
import { CircularGaugeProps } from './CircularGaugeProps';
|
|
5
|
-
import { LinearGauge } from './LinearGauge';
|
|
5
|
+
import { LinearGauge, LinearGaugeVue2 } from './LinearGauge';
|
|
6
6
|
import { LinearGaugeProps } from './LinearGaugeProps';
|
|
7
|
-
import { RadialGauge } from './RadialGauge';
|
|
7
|
+
import { RadialGauge, RadialGaugeVue2 } from './RadialGauge';
|
|
8
8
|
import { RadialGaugeProps } from './RadialGaugeProps';
|
|
9
9
|
export * from './types';
|
|
10
|
-
export { ArcGauge, ArcGaugeProps, CircularGauge, CircularGaugeProps, LinearGauge, LinearGaugeProps, RadialGauge, RadialGaugeProps };
|
|
10
|
+
export { ArcGauge, ArcGaugeVue2, ArcGaugeProps, CircularGauge, CircularGaugeVue2, CircularGaugeProps, LinearGauge, LinearGaugeVue2, LinearGaugeProps, RadialGauge, RadialGaugeVue2, RadialGaugeProps };
|
package/dist/npm/main.js
CHANGED
|
@@ -10,14 +10,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.RadialGauge = exports.LinearGauge = exports.CircularGauge = exports.ArcGauge = void 0;
|
|
13
|
+
exports.RadialGaugeVue2 = exports.RadialGauge = exports.LinearGaugeVue2 = exports.LinearGauge = exports.CircularGaugeVue2 = exports.CircularGauge = exports.ArcGaugeVue2 = exports.ArcGauge = void 0;
|
|
14
14
|
var ArcGauge_1 = require("./ArcGauge");
|
|
15
15
|
Object.defineProperty(exports, "ArcGauge", { enumerable: true, get: function () { return ArcGauge_1.ArcGauge; } });
|
|
16
|
+
Object.defineProperty(exports, "ArcGaugeVue2", { enumerable: true, get: function () { return ArcGauge_1.ArcGaugeVue2; } });
|
|
16
17
|
var CircularGauge_1 = require("./CircularGauge");
|
|
17
18
|
Object.defineProperty(exports, "CircularGauge", { enumerable: true, get: function () { return CircularGauge_1.CircularGauge; } });
|
|
19
|
+
Object.defineProperty(exports, "CircularGaugeVue2", { enumerable: true, get: function () { return CircularGauge_1.CircularGaugeVue2; } });
|
|
18
20
|
var LinearGauge_1 = require("./LinearGauge");
|
|
19
21
|
Object.defineProperty(exports, "LinearGauge", { enumerable: true, get: function () { return LinearGauge_1.LinearGauge; } });
|
|
22
|
+
Object.defineProperty(exports, "LinearGaugeVue2", { enumerable: true, get: function () { return LinearGauge_1.LinearGaugeVue2; } });
|
|
20
23
|
var RadialGauge_1 = require("./RadialGauge");
|
|
21
24
|
Object.defineProperty(exports, "RadialGauge", { enumerable: true, get: function () { return RadialGauge_1.RadialGauge; } });
|
|
22
|
-
|
|
25
|
+
Object.defineProperty(exports, "RadialGaugeVue2", { enumerable: true, get: function () { return RadialGauge_1.RadialGaugeVue2; } });
|
|
23
26
|
__exportStar(require("./types"), exports);
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-vue-gauges',
|
|
9
9
|
productName: 'Kendo UI for Vue',
|
|
10
10
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1642159203,
|
|
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
|
};
|