@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.
Files changed (44) hide show
  1. package/dist/cdn/js/kendo-vue-gauges.js +1 -1
  2. package/dist/es/ArcCenter.d.ts +5 -6
  3. package/dist/es/ArcCenter.js +33 -8
  4. package/dist/es/ArcGauge.d.ts +5 -6
  5. package/dist/es/ArcGauge.js +30 -26
  6. package/dist/es/BaseGauge.d.ts +5 -6
  7. package/dist/es/BaseGauge.js +24 -27
  8. package/dist/es/BaseGaugeProps.d.ts +1 -0
  9. package/dist/es/CircularGauge.d.ts +5 -6
  10. package/dist/es/CircularGauge.js +3 -3
  11. package/dist/es/LinearGauge.d.ts +5 -6
  12. package/dist/es/LinearGauge.js +8 -6
  13. package/dist/es/RadialGauge.d.ts +5 -6
  14. package/dist/es/RadialGauge.js +9 -7
  15. package/dist/es/additionalTypes.ts +7 -1
  16. package/dist/es/main.d.ts +5 -5
  17. package/dist/es/main.js +5 -6
  18. package/dist/es/package-metadata.js +1 -1
  19. package/dist/npm/ArcCenter.d.ts +5 -6
  20. package/dist/npm/ArcCenter.js +34 -9
  21. package/dist/npm/ArcGauge.d.ts +5 -6
  22. package/dist/npm/ArcGauge.js +32 -28
  23. package/dist/npm/BaseGauge.d.ts +5 -6
  24. package/dist/npm/BaseGauge.js +25 -28
  25. package/dist/npm/BaseGaugeProps.d.ts +1 -0
  26. package/dist/npm/CircularGauge.d.ts +5 -6
  27. package/dist/npm/CircularGauge.js +5 -5
  28. package/dist/npm/LinearGauge.d.ts +5 -6
  29. package/dist/npm/LinearGauge.js +10 -8
  30. package/dist/npm/RadialGauge.d.ts +5 -6
  31. package/dist/npm/RadialGauge.js +11 -9
  32. package/dist/npm/additionalTypes.ts +7 -1
  33. package/dist/npm/main.d.ts +5 -5
  34. package/dist/npm/main.js +5 -2
  35. package/dist/npm/package-metadata.js +1 -1
  36. package/package.json +6 -6
  37. package/dist/es/GaugeContext.d.ts +0 -1
  38. package/dist/es/GaugeContext.js +0 -12
  39. package/dist/es/common/gauges.d.ts +0 -1
  40. package/dist/es/common/gauges.js +0 -5
  41. package/dist/npm/GaugeContext.d.ts +0 -1
  42. package/dist/npm/GaugeContext.js +0 -13
  43. package/dist/npm/common/gauges.d.ts +0 -1
  44. package/dist/npm/common/gauges.js +0 -5
@@ -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;
@@ -41,8 +40,8 @@ export interface ArcCenterData {
41
40
  /**
42
41
  * @hidden
43
42
  */
44
- export interface ArcCenterAll extends Vue, ArcCenterMethods, ArcCenterData, ArcCenterComputed, ArcCenterState {
43
+ export interface ArcCenterAll extends Vue2type, ArcCenterMethods, ArcCenterData, ArcCenterComputed, ArcCenterState {
45
44
  }
46
- declare let ArcCenter: ComponentOptions<ArcCenterAll, DefaultData<ArcCenterData>, DefaultMethods<ArcCenterAll>, ArcCenterComputed, RecordPropsDefinition<ArcCenterProps>>;
47
- declare const ArcCenterVue3: DefineComponent<ArcCenterProps, any, ArcCenterData, ArcCenterComputed, ArcCenterMethods, {}, {}, {}, string, ArcCenterProps, ArcCenterProps, {}>;
48
- export { ArcCenter, ArcCenterVue3 };
45
+ declare let ArcCenterVue2: ComponentOptions<ArcCenterAll, DefaultData<ArcCenterData>, DefaultMethods<ArcCenterAll>, ArcCenterComputed, RecordPropsDefinition<ArcCenterProps>>;
46
+ declare const ArcCenter: DefineComponent<ArcCenterProps, any, ArcCenterData, ArcCenterComputed, ArcCenterMethods, {}, {}, {}, string, ArcCenterProps, ArcCenterProps, {}>;
47
+ export { ArcCenter, ArcCenterVue2 };
@@ -1,14 +1,37 @@
1
- // @ts-ignore
1
+ var __assign = this && this.__assign || function () {
2
+ __assign = Object.assign || function (t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+
6
+ for (var p in s) {
7
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ }; // @ts-ignore
16
+
17
+
2
18
  import * as Vue from 'vue';
3
19
  var allVue = Vue;
4
20
  var gh = allVue.h;
5
21
  import { getTemplate } from '@progress/kendo-vue-common'; // tslint:enable:max-line-length
6
22
 
7
- var ArcCenter = {
23
+ var ArcCenterVue2 = {
8
24
  name: 'KendoArcCenter',
9
25
  props: {
10
- center: [String, Function, Object],
11
- arcCenterValue: Object
26
+ center: [String, Function, Object]
27
+ },
28
+ inject: {
29
+ arcCenterValue: {
30
+ default: null
31
+ },
32
+ centerStyles: {
33
+ default: null
34
+ }
12
35
  },
13
36
  created: function created() {
14
37
  this.element = null;
@@ -24,9 +47,11 @@ var ArcCenter = {
24
47
  render: function render(createElement) {
25
48
  var h = gh || createElement;
26
49
  var center = this.$props.center;
27
- var divStyle = {
50
+
51
+ var divStyle = __assign({
28
52
  zIndex: -1
29
- };
53
+ }, this.centerStyles);
54
+
30
55
  var renderer = null;
31
56
 
32
57
  if (center) {
@@ -49,5 +74,5 @@ var ArcCenter = {
49
74
  return renderer;
50
75
  }
51
76
  };
52
- var ArcCenterVue3 = ArcCenter;
53
- export { ArcCenter, ArcCenterVue3 };
77
+ var ArcCenter = ArcCenterVue2;
78
+ export { ArcCenter, ArcCenterVue2 };
@@ -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 Vue, ArcGaugeMethods, ArcGaugeData, ArcGaugeComputed, ArcGaugeState {
38
+ export interface ArcGaugeAll extends Vue2type, ArcGaugeMethods, ArcGaugeData, ArcGaugeComputed, ArcGaugeState {
40
39
  }
41
- declare let ArcGauge: ComponentOptions<ArcGaugeAll, DefaultData<ArcGaugeData>, DefaultMethods<ArcGaugeAll>, ArcGaugeComputed, RecordPropsDefinition<ArcGaugeProps>>;
42
- declare const ArcGaugeVue3: DefineComponent<ArcGaugeProps, any, ArcGaugeData, ArcGaugeComputed, ArcGaugeMethods, {}, {}, {}, string, ArcGaugeProps, ArcGaugeProps, {}>;
43
- export { ArcGauge, ArcGaugeVue3 };
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 };
@@ -8,7 +8,7 @@ import { ArcCenter } from './ArcCenter';
8
8
  import { Group, drawDOM } from '@progress/kendo-drawing';
9
9
  import { classNames, getDefaultSlots, templateRendering, getListeners } from '@progress/kendo-vue-common'; // tslint:enable:max-line-length
10
10
 
11
- var ArcGauge = {
11
+ var ArcGaugeVue2 = {
12
12
  name: 'KendoArcGauge',
13
13
  props: {
14
14
  dir: String,
@@ -44,8 +44,20 @@ var ArcGauge = {
44
44
  },
45
45
  data: function data() {
46
46
  return {
47
- centerStyles: {},
48
- arcCenterValue: {}
47
+ centerStyles: {
48
+ top: null,
49
+ left: null
50
+ },
51
+ arcCenterValue: {
52
+ value: '',
53
+ color: ''
54
+ }
55
+ };
56
+ },
57
+ provide: function provide() {
58
+ return {
59
+ centerStyles: this.$data.centerStyles,
60
+ arcCenterValue: this.$data.arcCenterValue
49
61
  };
50
62
  },
51
63
  mounted: function mounted() {
@@ -88,29 +100,28 @@ var ArcGauge = {
88
100
  value: value,
89
101
  attrs: this.v3 ? undefined : {
90
102
  value: value,
91
- color: color,
92
103
  deriveOptionsFromParent: this.deriveOptionsFromParent,
93
104
  gaugeConstructor: this.gaugeType,
94
105
  getTarget: this.getTarget
95
106
  },
96
- color: color,
97
107
  deriveOptionsFromParent: this.deriveOptionsFromParent,
98
108
  ref: this.v3 ? function (el) {
99
109
  _this.baseGaugeRef = el;
100
110
  } : 'baseGauge',
101
111
  gaugeConstructor: this.gaugeType,
102
112
  getTarget: this.getTarget,
103
- "class": classNames('k-gauge k-arcgauge', className)
113
+ "class": classNames('k-gauge k-arcgauge', className),
114
+ onRender: this.positionCenter,
115
+ on: this.v3 ? undefined : {
116
+ "render": this.positionCenter
117
+ }
104
118
  }, this.v3 ? function () {
105
119
  return [defaultSlots, // @ts-ignore
106
120
  h(ArcCenter, {
107
121
  center: center,
108
122
  attrs: _this2.v3 ? undefined : {
109
- center: center,
110
- arcCenterValue: _this2.arcCenterValue
123
+ center: center
111
124
  },
112
- style: _this2.centerStyles,
113
- arcCenterValue: _this2.arcCenterValue,
114
125
  ref: _this2.v3 ? function (el) {
115
126
  _this.centerRef = el;
116
127
  } : 'center'
@@ -118,11 +129,8 @@ var ArcGauge = {
118
129
  } : [defaultSlots, h(ArcCenter, {
119
130
  center: center,
120
131
  attrs: _this2.v3 ? undefined : {
121
- center: center,
122
- arcCenterValue: _this2.arcCenterValue
132
+ center: center
123
133
  },
124
- style: _this2.centerStyles,
125
- arcCenterValue: _this2.arcCenterValue,
126
134
  ref: _this2.v3 ? function (el) {
127
135
  _this.centerRef = el;
128
136
  } : 'center'
@@ -135,14 +143,10 @@ var ArcGauge = {
135
143
  var height = this.center.$el.offsetHeight;
136
144
  var gaugeInstance = this.gaugeInstance();
137
145
  var position = gaugeInstance.centerLabelPosition(width, height);
138
- this.centerStyles = {
139
- left: position.left + 'px',
140
- top: position.top + 'px'
141
- };
142
- this.arcCenterValue = {
143
- value: gaugeInstance.value(),
144
- color: gaugeInstance.currentColor()
145
- };
146
+ this.centerStyles.left = position.left + 'px';
147
+ this.centerStyles.top = position.top + 'px';
148
+ this.arcCenterValue.value = gaugeInstance.value();
149
+ this.arcCenterValue.color = gaugeInstance.currentColor();
146
150
  },
147
151
  gaugeInstance: function gaugeInstance() {
148
152
  if (this._baseGauge) {
@@ -166,8 +170,8 @@ var ArcGauge = {
166
170
  return null;
167
171
  },
168
172
  exportVisual: function exportVisual(options) {
169
- if (this.gaugeInstance !== null && this.element) {
170
- return drawDOM(this.element, options);
173
+ if (this.gaugeInstance !== null && this.$el) {
174
+ return drawDOM(this.$el, options);
171
175
  }
172
176
 
173
177
  return Promise.resolve(new Group());
@@ -192,5 +196,5 @@ var ArcGauge = {
192
196
  }
193
197
  }
194
198
  };
195
- var ArcGaugeVue3 = ArcGauge;
196
- export { ArcGauge, ArcGaugeVue3 };
199
+ var ArcGauge = ArcGaugeVue2;
200
+ export { ArcGauge, ArcGaugeVue2 };
@@ -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 Vue, BaseGaugeMethods, BaseGaugeData, BaseGaugeComputed, BaseGaugeState {
37
+ export interface BaseGaugeAll extends Vue2type, BaseGaugeMethods, BaseGaugeData, BaseGaugeComputed, BaseGaugeState {
39
38
  }
40
- declare let BaseGauge: ComponentOptions<BaseGaugeAll, DefaultData<BaseGaugeData>, DefaultMethods<BaseGaugeAll>, BaseGaugeComputed, RecordPropsDefinition<BaseGaugeProps>>;
41
- declare const BaseGaugeVue3: DefineComponent<BaseGaugeProps, any, BaseGaugeData, BaseGaugeComputed, BaseGaugeMethods, {}, {}, {}, string, BaseGaugeProps, BaseGaugeProps, {}>;
42
- export { BaseGauge, BaseGaugeVue3 };
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 };
@@ -18,13 +18,13 @@ var gh = allVue.h;
18
18
  import { provideIntlService } from '@progress/kendo-vue-intl';
19
19
  import { loadTheme } from './theming/theme-service';
20
20
  import createStore from './store/store';
21
- import { themeReducer, observersReducer } from './store/reducer';
21
+ import { themeReducer } from './store/reducer';
22
22
  import { canUseDOM } from '@progress/kendo-vue-common'; // import { GaugeContextType, GaugeContext } from './GaugeContext';
23
23
 
24
24
  import { validatePackage, getDefaultSlots } from '@progress/kendo-vue-common';
25
25
  import { packageMetadata } from './package-metadata'; // tslint:enable:max-line-length
26
26
 
27
- var BaseGauge = {
27
+ var BaseGaugeVue2 = {
28
28
  name: 'KendoBaseGauge',
29
29
  props: {
30
30
  dir: String,
@@ -36,31 +36,32 @@ var BaseGauge = {
36
36
  }
37
37
  },
38
38
  value: Number,
39
+ pointer: {
40
+ type: [Object, Array],
41
+ default: function _default() {
42
+ return undefined;
43
+ }
44
+ },
39
45
  gaugeConstructor: [Object, Function],
40
46
  deriveOptionsFromParent: Function
41
47
  },
48
+ inject: {
49
+ kendoIntlService: {
50
+ default: null
51
+ }
52
+ },
42
53
  created: function created() {
43
54
  validatePackage(packageMetadata);
44
55
  this.gaugeInstance = null;
45
56
  this.themeStore = {};
46
- this._prevRenderAs = undefined;
47
- this._prevDir = undefined; // protected themeUnsubscriber: Function = Function.prototype;
48
- // protected contextValue: GaugeContextType;
49
- // protected observersStore: any = {};
50
-
57
+ this._prevRenderAs = this.renderAs;
58
+ this._prevDir = this.dir;
51
59
  this.themeStore = createStore(themeReducer);
52
- this.observersStore = createStore(observersReducer);
53
- this.contextValue = {
54
- observersStore: this.observersStore
55
- };
56
60
  },
57
61
  mounted: function mounted() {
58
62
  loadTheme(this.themeStore, this.instantiateCoreGauge.bind(this));
59
63
  this.themeUnsubscriber = this.themeStore.subscribe(this.refresh.bind(this));
60
64
  window.addEventListener('resize', this.onWindowResize);
61
- this.trigger('render', {
62
- sender: this
63
- });
64
65
  },
65
66
  watch: {
66
67
  dir: function dir(_newDir, oldDir) {
@@ -85,7 +86,7 @@ var BaseGauge = {
85
86
  var currentIntlService = provideIntlService(this);
86
87
  var gaugeService = this.gaugeInstance.contextService;
87
88
  var localeChanged = currentIntlService.locale !== gaugeService._intlService.locale;
88
- var optionsChanged = true;
89
+ var optionsChanged = this._prevDir !== dir || this._prevRenderAs !== renderAs;
89
90
  var typedCurrentOthers = currentOthers;
90
91
 
91
92
  if (localeChanged) {
@@ -100,7 +101,7 @@ var BaseGauge = {
100
101
  if (optionsChanged || (renderAs || 'svg') !== (this._prevRenderAs || 'svg')) {
101
102
  this.refresh();
102
103
  } else {
103
- if (Object.keys(currentOthers).indexOf('pointer') > -1) {
104
+ if (Object.keys(currentOthers).indexOf('pointer') > -1 && currentOthers.pointer) {
104
105
  var isPointerArray = Array.isArray(typedCurrentOthers.pointer);
105
106
 
106
107
  if (isPointerArray) {
@@ -117,8 +118,11 @@ var BaseGauge = {
117
118
 
118
119
  if (this._prevDir !== dir) {
119
120
  this.gaugeInstance.setDirection(this.getDirection(dir));
120
- } // this.$emit('render', { sender: this });
121
+ }
121
122
 
123
+ this.$emit('render', {
124
+ sender: this
125
+ });
122
126
  }
123
127
  },
124
128
  destroyed: function destroyed() {
@@ -201,22 +205,15 @@ var BaseGauge = {
201
205
 
202
206
  return gaugeOptions;
203
207
  },
204
- trigger: function trigger(name, e) {
205
- var observers = this.observersStore.getState();
206
-
207
- for (var idx = 0; idx < observers.length; idx++) {
208
- observers[idx].trigger(name, e);
209
- }
210
- },
211
208
  onWindowResize: function onWindowResize() {
212
209
  if (this.gaugeInstance !== null) {
213
210
  this.gaugeInstance.resize();
214
- this.trigger('render', {
211
+ this.$emit('render', {
215
212
  sender: this
216
213
  });
217
214
  }
218
215
  }
219
216
  }
220
217
  };
221
- var BaseGaugeVue3 = BaseGauge;
222
- export { BaseGauge, BaseGaugeVue3 };
218
+ var BaseGauge = BaseGaugeVue2;
219
+ export { BaseGauge, BaseGaugeVue2 };
@@ -24,6 +24,7 @@ export interface BaseGaugeProps extends BaseGaugePrivateProps {
24
24
  */
25
25
  dir?: string;
26
26
  value?: number;
27
+ pointer?: object;
27
28
  color?: any;
28
29
  colors?: any[];
29
30
  opacity?: any;
@@ -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 Vue, CircularGaugeMethods, CircularGaugeData, CircularGaugeComputed, CircularGaugeState {
33
+ export interface CircularGaugeAll extends Vue2type, CircularGaugeMethods, CircularGaugeData, CircularGaugeComputed, CircularGaugeState {
35
34
  }
36
- declare let CircularGauge: ComponentOptions<CircularGaugeAll, DefaultData<CircularGaugeData>, DefaultMethods<CircularGaugeAll>, CircularGaugeComputed, RecordPropsDefinition<CircularGaugeProps>>;
37
- declare const CircularGaugeVue3: DefineComponent<CircularGaugeProps, any, CircularGaugeData, CircularGaugeComputed, CircularGaugeMethods, {}, {}, {}, string, CircularGaugeProps, CircularGaugeProps, {}>;
38
- export { CircularGauge, CircularGaugeVue3 };
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 };
@@ -21,7 +21,7 @@ var gh = allVue.h;
21
21
  import { ArcGauge } from './ArcGauge';
22
22
  import { CircularGauge as KendoCircularGauge } from '@progress/kendo-charts'; // tslint:enable:max-line-length
23
23
 
24
- var CircularGauge = __assign(__assign({}, ArcGauge), {
24
+ var CircularGaugeVue2 = __assign(__assign({}, ArcGauge), {
25
25
  name: 'KendoCircularGauge',
26
26
  created: function created() {
27
27
  this.gaugeType = KendoCircularGauge;
@@ -29,5 +29,5 @@ var CircularGauge = __assign(__assign({}, ArcGauge), {
29
29
  }
30
30
  });
31
31
 
32
- var CircularGaugeVue3 = CircularGauge;
33
- export { CircularGauge, CircularGaugeVue3 };
32
+ var CircularGauge = CircularGaugeVue2;
33
+ export { CircularGauge, CircularGaugeVue2 };
@@ -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 Vue, LinearGaugeMethods, LinearGaugeData, LinearGaugeComputed, LinearGaugeState {
33
+ export interface LinearGaugeAll extends Vue2type, LinearGaugeMethods, LinearGaugeData, LinearGaugeComputed, LinearGaugeState {
35
34
  }
36
- declare let LinearGauge: ComponentOptions<LinearGaugeAll, DefaultData<LinearGaugeData>, DefaultMethods<LinearGaugeAll>, LinearGaugeComputed, RecordPropsDefinition<LinearGaugeProps>>;
37
- declare const LinearGaugeVue3: DefineComponent<LinearGaugeProps, any, LinearGaugeData, LinearGaugeComputed, LinearGaugeMethods, {}, {}, {}, string, LinearGaugeProps, LinearGaugeProps, {}>;
38
- export { LinearGauge, LinearGaugeVue3 };
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 };
@@ -7,7 +7,7 @@ import { LinearGauge as KendoLinearGauge } from '@progress/kendo-charts';
7
7
  import { Group } from '@progress/kendo-drawing';
8
8
  import { getDefaultSlots } from '@progress/kendo-vue-common'; // tslint:enable:max-line-length
9
9
 
10
- var LinearGauge = {
10
+ var LinearGaugeVue2 = {
11
11
  name: 'KendoLinearGauge',
12
12
  props: {
13
13
  dir: String,
@@ -49,12 +49,14 @@ var LinearGauge = {
49
49
  var defaultSlots = getDefaultSlots(this);
50
50
  return (// @ts-ignore function children
51
51
  h(BaseGauge, {
52
- deriveOptionsFromParent: this.deriveOptionsFromParent,
52
+ pointer: this.$props.pointer,
53
53
  attrs: this.v3 ? undefined : {
54
+ pointer: this.$props.pointer,
54
55
  deriveOptionsFromParent: this.deriveOptionsFromParent,
55
56
  gaugeConstructor: KendoLinearGauge,
56
57
  getTarget: this.getTarget
57
58
  },
59
+ deriveOptionsFromParent: this.deriveOptionsFromParent,
58
60
  ref: this.v3 ? function (el) {
59
61
  _this.baseGaugeRef = el;
60
62
  } : 'baseGauge',
@@ -89,8 +91,8 @@ var LinearGauge = {
89
91
  return null;
90
92
  },
91
93
  exportVisual: function exportVisual(options) {
92
- if (this.gaugeInstance !== null) {
93
- return Promise.resolve(this.gaugeInstance.exportVisual(options));
94
+ if (this.gaugeInstance() !== null) {
95
+ return Promise.resolve(this.gaugeInstance().exportVisual(options));
94
96
  }
95
97
 
96
98
  return Promise.resolve(new Group());
@@ -109,5 +111,5 @@ var LinearGauge = {
109
111
  }
110
112
  }
111
113
  };
112
- var LinearGaugeVue3 = LinearGauge;
113
- export { LinearGauge, LinearGaugeVue3 };
114
+ var LinearGauge = LinearGaugeVue2;
115
+ export { LinearGauge, LinearGaugeVue2 };
@@ -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 Vue, RadialGaugeMethods, RadialGaugeData, RadialGaugeComputed, RadialGaugeState {
33
+ export interface RadialGaugeAll extends Vue2type, RadialGaugeMethods, RadialGaugeData, RadialGaugeComputed, RadialGaugeState {
35
34
  }
36
- declare let RadialGauge: ComponentOptions<RadialGaugeAll, DefaultData<RadialGaugeData>, DefaultMethods<RadialGaugeAll>, RadialGaugeComputed, RecordPropsDefinition<RadialGaugeProps>>;
37
- declare const RadialGaugeVue3: DefineComponent<RadialGaugeProps, any, RadialGaugeData, RadialGaugeComputed, RadialGaugeMethods, {}, {}, {}, string, RadialGaugeProps, RadialGaugeProps, {}>;
38
- export { RadialGauge, RadialGaugeVue3 };
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 };
@@ -7,7 +7,7 @@ import { RadialGauge as KendoRadialGauge } from '@progress/kendo-charts';
7
7
  import { Group } from '@progress/kendo-drawing';
8
8
  import { getDefaultSlots } from '@progress/kendo-vue-common'; // tslint:enable:max-line-length
9
9
 
10
- var RadialGauge = {
10
+ var RadialGaugeVue2 = {
11
11
  name: 'KendoRadialGauge',
12
12
  props: {
13
13
  dir: String,
@@ -47,15 +47,17 @@ var RadialGauge = {
47
47
 
48
48
  var h = gh || createElement;
49
49
  var defaultSlots = getDefaultSlots(this);
50
- var className = this.$props.className;
50
+ var pointer = this.$props.pointer;
51
51
  return (// @ts-ignore function children
52
52
  h(BaseGauge, {
53
- deriveOptionsFromParent: this.deriveOptionsFromParent,
53
+ pointer: pointer,
54
54
  attrs: this.v3 ? undefined : {
55
+ pointer: pointer,
55
56
  deriveOptionsFromParent: this.deriveOptionsFromParent,
56
57
  gaugeConstructor: KendoRadialGauge,
57
58
  getTarget: this.getTarget
58
59
  },
60
+ deriveOptionsFromParent: this.deriveOptionsFromParent,
59
61
  ref: this.v3 ? function (el) {
60
62
  _this.baseGaugeRef = el;
61
63
  } : 'baseGauge',
@@ -90,8 +92,8 @@ var RadialGauge = {
90
92
  return null;
91
93
  },
92
94
  exportVisual: function exportVisual(options) {
93
- if (this.gaugeInstance !== null) {
94
- return Promise.resolve(this.gaugeInstance.exportVisual(options));
95
+ if (this.gaugeInstance() !== null) {
96
+ return Promise.resolve(this.gaugeInstance().exportVisual(options));
95
97
  }
96
98
 
97
99
  return Promise.resolve(new Group());
@@ -110,5 +112,5 @@ var RadialGauge = {
110
112
  }
111
113
  }
112
114
  };
113
- var RadialGaugeVue3 = RadialGauge;
114
- export { RadialGauge, RadialGaugeVue3 };
115
+ var RadialGauge = RadialGaugeVue2;
116
+ export { RadialGauge, RadialGaugeVue2 };
@@ -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 };
package/dist/es/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/es/main.js CHANGED
@@ -1,7 +1,6 @@
1
- import { ArcGauge } from './ArcGauge';
2
- import { CircularGauge } from './CircularGauge';
3
- import { LinearGauge } from './LinearGauge';
4
- import { RadialGauge } from './RadialGauge';
5
- // export * from './common/gauges';
1
+ import { ArcGauge, ArcGaugeVue2 } from './ArcGauge';
2
+ import { CircularGauge, CircularGaugeVue2 } from './CircularGauge';
3
+ import { LinearGauge, LinearGaugeVue2 } from './LinearGauge';
4
+ import { RadialGauge, RadialGaugeVue2 } from './RadialGauge';
6
5
  export * from './types';
7
- export { ArcGauge, CircularGauge, LinearGauge, RadialGauge };
6
+ export { ArcGauge, ArcGaugeVue2, CircularGauge, CircularGaugeVue2, LinearGauge, LinearGaugeVue2, RadialGauge, RadialGaugeVue2 };
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-gauges',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1641561416,
8
+ publishDate: 1642159203,
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
  };
@@ -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;
@@ -41,8 +40,8 @@ export interface ArcCenterData {
41
40
  /**
42
41
  * @hidden
43
42
  */
44
- export interface ArcCenterAll extends Vue, ArcCenterMethods, ArcCenterData, ArcCenterComputed, ArcCenterState {
43
+ export interface ArcCenterAll extends Vue2type, ArcCenterMethods, ArcCenterData, ArcCenterComputed, ArcCenterState {
45
44
  }
46
- declare let ArcCenter: ComponentOptions<ArcCenterAll, DefaultData<ArcCenterData>, DefaultMethods<ArcCenterAll>, ArcCenterComputed, RecordPropsDefinition<ArcCenterProps>>;
47
- declare const ArcCenterVue3: DefineComponent<ArcCenterProps, any, ArcCenterData, ArcCenterComputed, ArcCenterMethods, {}, {}, {}, string, ArcCenterProps, ArcCenterProps, {}>;
48
- export { ArcCenter, ArcCenterVue3 };
45
+ declare let ArcCenterVue2: ComponentOptions<ArcCenterAll, DefaultData<ArcCenterData>, DefaultMethods<ArcCenterAll>, ArcCenterComputed, RecordPropsDefinition<ArcCenterProps>>;
46
+ declare const ArcCenter: DefineComponent<ArcCenterProps, any, ArcCenterData, ArcCenterComputed, ArcCenterMethods, {}, {}, {}, string, ArcCenterProps, ArcCenterProps, {}>;
47
+ export { ArcCenter, ArcCenterVue2 };