@progress/kendo-vue-gauges 3.6.4 → 3.7.0-dev.202210250731

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.
@@ -2,19 +2,15 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
5
  for (var p in s) {
7
6
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
7
  }
9
8
  }
10
-
11
9
  return t;
12
10
  };
13
-
14
11
  return __assign.apply(this, arguments);
15
- }; // @ts-ignore
16
-
17
-
12
+ };
13
+ // @ts-ignore
18
14
  import * as Vue from 'vue';
19
15
  var allVue = Vue;
20
16
  var gh = allVue.h;
@@ -23,7 +19,6 @@ import { getTemplate } from '@progress/kendo-vue-common';
23
19
  /**
24
20
  * @hidden
25
21
  */
26
-
27
22
  var ArcCenterVue2 = {
28
23
  name: 'KendoArcCenter',
29
24
  props: {
@@ -51,13 +46,10 @@ var ArcCenterVue2 = {
51
46
  render: function render(createElement) {
52
47
  var h = gh || createElement;
53
48
  var center = this.$props.center;
54
-
55
49
  var divStyle = __assign({
56
50
  zIndex: -1
57
51
  }, this.centerStyles);
58
-
59
52
  var renderer = null;
60
-
61
53
  if (center) {
62
54
  var centerDefaultRendering = '';
63
55
  renderer = getTemplate.call(this, {
@@ -74,13 +66,11 @@ var ArcCenterVue2 = {
74
66
  style: divStyle
75
67
  }, [renderer]);
76
68
  }
77
-
78
69
  return renderer;
79
70
  }
80
71
  };
81
72
  /**
82
73
  * @hidden
83
74
  */
84
-
85
75
  var ArcCenter = ArcCenterVue2;
86
76
  export { ArcCenter, ArcCenterVue2 };
@@ -11,7 +11,6 @@ import { classNames, getDefaultSlots, templateRendering, getListeners } from '@p
11
11
  /**
12
12
  * @hidden
13
13
  */
14
-
15
14
  var ArcGaugeVue2 = {
16
15
  name: 'KendoArcGauge',
17
16
  props: {
@@ -92,19 +91,18 @@ var ArcGaugeVue2 = {
92
91
  // @ts-ignore
93
92
  render: function render(createElement) {
94
93
  var _this2 = this;
95
-
96
94
  var _this = this;
97
-
98
95
  var h = gh || createElement;
99
96
  var defaultSlots = getDefaultSlots(this);
100
97
  var _a = this.$props,
101
- centerRender = _a.centerRender,
102
- className = _a.className,
103
- value = _a.value,
104
- transitions = _a.transitions,
105
- scale = _a.scale;
98
+ centerRender = _a.centerRender,
99
+ className = _a.className,
100
+ value = _a.value,
101
+ transitions = _a.transitions,
102
+ scale = _a.scale;
106
103
  var center = centerRender ? templateRendering.call(this, centerRender, getListeners.call(this)) : undefined;
107
- return (// @ts-ignore function children
104
+ return (
105
+ // @ts-ignore function children
108
106
  h(BaseGauge, {
109
107
  value: value,
110
108
  attrs: this.v3 ? undefined : {
@@ -129,7 +127,8 @@ var ArcGaugeVue2 = {
129
127
  "render": this.positionCenter
130
128
  }
131
129
  }, this.v3 ? function () {
132
- return [defaultSlots, // @ts-ignore
130
+ return [defaultSlots,
131
+ // @ts-ignore
133
132
  h(ArcCenter, {
134
133
  center: center,
135
134
  attrs: _this2.v3 ? undefined : {
@@ -165,28 +164,24 @@ var ArcGaugeVue2 = {
165
164
  if (this._baseGauge) {
166
165
  return this._baseGauge.gaugeInstance;
167
166
  }
168
-
169
167
  return null;
170
168
  },
171
169
  surface: function surface() {
172
170
  if (this._baseGauge) {
173
171
  return this._baseGauge.surface;
174
172
  }
175
-
176
173
  return null;
177
174
  },
178
175
  element: function element() {
179
176
  if (this._baseGauge) {
180
177
  return this._baseGauge.element;
181
178
  }
182
-
183
179
  return null;
184
180
  },
185
181
  exportVisual: function exportVisual(options) {
186
182
  if (this.gaugeInstance !== null && this.$el) {
187
183
  return drawDOM(this.$el, options);
188
184
  }
189
-
190
185
  return Promise.resolve(new Group());
191
186
  },
192
187
  getTarget: function getTarget() {
@@ -194,11 +189,11 @@ var ArcGaugeVue2 = {
194
189
  },
195
190
  deriveOptionsFromParent: function deriveOptionsFromParent(options) {
196
191
  var _a = this.$props,
197
- value = _a.value,
198
- color = _a.color,
199
- colors = _a.colors,
200
- opacity = _a.opacity,
201
- scale = _a.scale;
192
+ value = _a.value,
193
+ color = _a.color,
194
+ colors = _a.colors,
195
+ opacity = _a.opacity,
196
+ scale = _a.scale;
202
197
  return Object.assign({}, options, {
203
198
  value: value,
204
199
  color: color,
@@ -212,6 +207,5 @@ var ArcGaugeVue2 = {
212
207
  /**
213
208
  * @hidden
214
209
  */
215
-
216
210
  var ArcGauge = ArcGaugeVue2;
217
211
  export { ArcGauge, ArcGaugeVue2 };
@@ -1,17 +1,14 @@
1
1
  var __rest = this && this.__rest || function (s, e) {
2
2
  var t = {};
3
-
4
3
  for (var p in s) {
5
4
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
6
5
  }
7
-
8
6
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
9
7
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
10
8
  }
11
9
  return t;
12
- }; // @ts-ignore
13
-
14
-
10
+ };
11
+ // @ts-ignore
15
12
  import * as Vue from 'vue';
16
13
  var allVue = Vue;
17
14
  var gh = allVue.h;
@@ -27,7 +24,6 @@ import { packageMetadata } from './package-metadata';
27
24
  /**
28
25
  * @hidden
29
26
  */
30
-
31
27
  var BaseGaugeVue2 = {
32
28
  name: 'KendoBaseGauge',
33
29
  props: {
@@ -86,28 +82,24 @@ var BaseGaugeVue2 = {
86
82
  },
87
83
  updated: function updated() {
88
84
  var _a = this.$props,
89
- dir = _a.dir,
90
- getTarget = _a.getTarget,
91
- gaugeConstructor = _a.gaugeConstructor,
92
- className = _a.className,
93
- renderAs = _a.renderAs,
94
- scale = _a.scale,
95
- currentOthers = __rest(_a, ["dir", "getTarget", "gaugeConstructor", "className", "renderAs", "scale"]);
96
-
85
+ dir = _a.dir,
86
+ getTarget = _a.getTarget,
87
+ gaugeConstructor = _a.gaugeConstructor,
88
+ className = _a.className,
89
+ renderAs = _a.renderAs,
90
+ scale = _a.scale,
91
+ currentOthers = __rest(_a, ["dir", "getTarget", "gaugeConstructor", "className", "renderAs", "scale"]);
97
92
  if (this.gaugeInstance !== null) {
98
93
  var optionsChanged = this._prevDir !== dir || this._prevRenderAs !== renderAs || this._prevScale !== scale;
99
94
  var typedCurrentOthers = currentOthers;
100
-
101
95
  if (!optionsChanged) {
102
96
  this.gaugeInstance.noTransitionsRedraw();
103
97
  }
104
-
105
98
  if (optionsChanged || (renderAs || 'svg') !== (this._prevRenderAs || 'svg')) {
106
99
  this.refresh();
107
100
  } else {
108
101
  if (Object.keys(currentOthers).indexOf('pointer') > -1 && currentOthers.pointer) {
109
102
  var isPointerArray = Array.isArray(typedCurrentOthers.pointer);
110
-
111
103
  if (isPointerArray) {
112
104
  this.refreshAllValues(typedCurrentOthers.pointer.map(function (item) {
113
105
  return item.value;
@@ -119,11 +111,9 @@ var BaseGaugeVue2 = {
119
111
  this.refreshValue(typedCurrentOthers.value);
120
112
  }
121
113
  }
122
-
123
114
  if (this._prevDir !== dir) {
124
115
  this.gaugeInstance.setDirection(this.getDirection(dir));
125
116
  }
126
-
127
117
  this.$emit('render', {
128
118
  sender: this
129
119
  });
@@ -131,12 +121,10 @@ var BaseGaugeVue2 = {
131
121
  },
132
122
  destroyed: function destroyed() {
133
123
  this.themeUnsubscriber();
134
-
135
124
  if (this.gaugeInstance !== null) {
136
125
  this.gaugeInstance.destroy();
137
126
  this.gaugeInstance = null;
138
127
  }
139
-
140
128
  window.removeEventListener('resize', this.onWindowResize);
141
129
  },
142
130
  // @ts-ignore
@@ -163,8 +151,8 @@ var BaseGaugeVue2 = {
163
151
  methods: {
164
152
  instantiateCoreGauge: function instantiateCoreGauge() {
165
153
  var _a = this.$props,
166
- dir = _a.dir,
167
- gaugeConstructor = _a.gaugeConstructor;
154
+ dir = _a.dir,
155
+ gaugeConstructor = _a.gaugeConstructor;
168
156
  var gaugeOptions = this.getGaugeOptions();
169
157
  this.gaugeInstance = new gaugeConstructor(this.$el, gaugeOptions, this.themeStore.getState(), {
170
158
  rtl: this.getDirection(dir),
@@ -187,29 +175,25 @@ var BaseGaugeVue2 = {
187
175
  },
188
176
  getDirection: function getDirection(dir) {
189
177
  var _this = this;
190
-
191
178
  var directionFromWindow = function directionFromWindow() {
192
179
  return canUseDOM && window.getComputedStyle(_this.$el).direction;
193
180
  };
194
-
195
181
  var direction = dir !== undefined ? dir : directionFromWindow() || 'ltr';
196
182
  return direction === 'rtl';
197
183
  },
198
184
  getGaugeOptions: function getGaugeOptions() {
199
185
  var _a = this.$props,
200
- renderAs = _a.renderAs,
201
- transitions = _a.transitions,
202
- deriveOptionsFromParent = _a.deriveOptionsFromParent;
186
+ renderAs = _a.renderAs,
187
+ transitions = _a.transitions,
188
+ deriveOptionsFromParent = _a.deriveOptionsFromParent;
203
189
  var gaugeOptions = Object.assign({
204
190
  renderAs: renderAs,
205
191
  transitions: transitions
206
192
  });
207
-
208
193
  if (deriveOptionsFromParent) {
209
194
  // Add options from parent - required by TS
210
195
  gaugeOptions = deriveOptionsFromParent(gaugeOptions);
211
196
  }
212
-
213
197
  return gaugeOptions;
214
198
  },
215
199
  onWindowResize: function onWindowResize() {
@@ -225,6 +209,5 @@ var BaseGaugeVue2 = {
225
209
  /**
226
210
  * @hidden
227
211
  */
228
-
229
212
  var BaseGauge = BaseGaugeVue2;
230
213
  export { BaseGauge, BaseGaugeVue2 };
@@ -1 +1,2 @@
1
- export {}; // tslint:enable:max-line-length
1
+ export {};
2
+ // tslint:enable:max-line-length
@@ -2,19 +2,15 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
5
  for (var p in s) {
7
6
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
7
  }
9
8
  }
10
-
11
9
  return t;
12
10
  };
13
-
14
11
  return __assign.apply(this, arguments);
15
- }; // @ts-ignore
16
-
17
-
12
+ };
13
+ // @ts-ignore
18
14
  import * as Vue from 'vue';
19
15
  var allVue = Vue;
20
16
  var gh = allVue.h;
@@ -24,7 +20,6 @@ import { CircularGauge as KendoCircularGauge } from '@progress/kendo-charts';
24
20
  /**
25
21
  * @hidden
26
22
  */
27
-
28
23
  var CircularGaugeVue2 = __assign(__assign({}, ArcGauge), {
29
24
  name: 'KendoCircularGauge',
30
25
  created: function created() {
@@ -35,7 +30,5 @@ var CircularGaugeVue2 = __assign(__assign({}, ArcGauge), {
35
30
  /**
36
31
  * @hidden
37
32
  */
38
-
39
-
40
33
  var CircularGauge = CircularGaugeVue2;
41
34
  export { CircularGauge, CircularGaugeVue2 };
@@ -10,7 +10,6 @@ import { getDefaultSlots } from '@progress/kendo-vue-common';
10
10
  /**
11
11
  * @hidden
12
12
  */
13
-
14
13
  var LinearGaugeVue2 = {
15
14
  name: 'KendoLinearGauge',
16
15
  props: {
@@ -52,10 +51,10 @@ var LinearGaugeVue2 = {
52
51
  // @ts-ignore
53
52
  render: function render(createElement) {
54
53
  var _this = this;
55
-
56
54
  var h = gh || createElement;
57
55
  var defaultSlots = getDefaultSlots(this);
58
- return (// @ts-ignore function children
56
+ return (
57
+ // @ts-ignore function children
59
58
  h(BaseGauge, {
60
59
  transitions: this.$props.transitions,
61
60
  attrs: this.v3 ? undefined : {
@@ -85,28 +84,24 @@ var LinearGaugeVue2 = {
85
84
  if (this._baseGauge !== null) {
86
85
  return this._baseGauge.gaugeInstance;
87
86
  }
88
-
89
87
  return null;
90
88
  },
91
89
  surface: function surface() {
92
90
  if (this._baseGauge !== null) {
93
91
  return this._baseGauge.surface;
94
92
  }
95
-
96
93
  return null;
97
94
  },
98
95
  element: function element() {
99
96
  if (this._baseGauge !== null) {
100
97
  return this._baseGauge.element;
101
98
  }
102
-
103
99
  return null;
104
100
  },
105
101
  exportVisual: function exportVisual(options) {
106
102
  if (this.gaugeInstance() !== null) {
107
103
  return Promise.resolve(this.gaugeInstance().exportVisual(options));
108
104
  }
109
-
110
105
  return Promise.resolve(new Group());
111
106
  },
112
107
  getTarget: function getTarget() {
@@ -114,8 +109,8 @@ var LinearGaugeVue2 = {
114
109
  },
115
110
  deriveOptionsFromParent: function deriveOptionsFromParent(options) {
116
111
  var _a = this.$props,
117
- pointer = _a.pointer,
118
- scale = _a.scale;
112
+ pointer = _a.pointer,
113
+ scale = _a.scale;
119
114
  return Object.assign({}, options, {
120
115
  pointer: pointer,
121
116
  scale: scale
@@ -126,6 +121,5 @@ var LinearGaugeVue2 = {
126
121
  /**
127
122
  * @hidden
128
123
  */
129
-
130
124
  var LinearGauge = LinearGaugeVue2;
131
125
  export { LinearGauge, LinearGaugeVue2 };
@@ -10,7 +10,6 @@ import { getDefaultSlots } from '@progress/kendo-vue-common';
10
10
  /**
11
11
  * @hidden
12
12
  */
13
-
14
13
  var RadialGaugeVue2 = {
15
14
  name: 'KendoRadialGauge',
16
15
  props: {
@@ -52,14 +51,14 @@ var RadialGaugeVue2 = {
52
51
  // @ts-ignore
53
52
  render: function render(createElement) {
54
53
  var _this = this;
55
-
56
54
  var h = gh || createElement;
57
55
  var defaultSlots = getDefaultSlots(this);
58
56
  var _a = this.$props,
59
- pointer = _a.pointer,
60
- scale = _a.scale,
61
- transitions = _a.transitions;
62
- return (// @ts-ignore function children
57
+ pointer = _a.pointer,
58
+ scale = _a.scale,
59
+ transitions = _a.transitions;
60
+ return (
61
+ // @ts-ignore function children
63
62
  h(BaseGauge, {
64
63
  transitions: transitions,
65
64
  attrs: this.v3 ? undefined : {
@@ -89,28 +88,24 @@ var RadialGaugeVue2 = {
89
88
  if (this._baseGauge !== null) {
90
89
  return this._baseGauge.gaugeInstance;
91
90
  }
92
-
93
91
  return null;
94
92
  },
95
93
  surface: function surface() {
96
94
  if (this._baseGauge !== null) {
97
95
  return this._baseGauge.surface;
98
96
  }
99
-
100
97
  return null;
101
98
  },
102
99
  element: function element() {
103
100
  if (this._baseGauge !== null) {
104
101
  return this._baseGauge.element;
105
102
  }
106
-
107
103
  return null;
108
104
  },
109
105
  exportVisual: function exportVisual(options) {
110
106
  if (this.gaugeInstance() !== null) {
111
107
  return Promise.resolve(this.gaugeInstance().exportVisual(options));
112
108
  }
113
-
114
109
  return Promise.resolve(new Group());
115
110
  },
116
111
  getTarget: function getTarget() {
@@ -118,8 +113,8 @@ var RadialGaugeVue2 = {
118
113
  },
119
114
  deriveOptionsFromParent: function deriveOptionsFromParent(options) {
120
115
  var _a = this.$props,
121
- pointer = _a.pointer,
122
- scale = _a.scale;
116
+ pointer = _a.pointer,
117
+ scale = _a.scale;
123
118
  return Object.assign({}, options, {
124
119
  pointer: pointer,
125
120
  scale: scale
@@ -130,6 +125,5 @@ var RadialGaugeVue2 = {
130
125
  /**
131
126
  * @hidden
132
127
  */
133
-
134
128
  var RadialGauge = RadialGaugeVue2;
135
129
  export { 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: 1665151411,
8
+ publishDate: 1666682517,
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
  };
@@ -2,19 +2,15 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
5
  for (var p in s) {
7
6
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
7
  }
9
8
  }
10
-
11
9
  return t;
12
10
  };
13
-
14
11
  return __assign.apply(this, arguments);
15
- }; // @ts-ignore
16
-
17
-
12
+ };
13
+ // @ts-ignore
18
14
  import * as Vue from 'vue';
19
15
  var allVue = Vue;
20
16
  var gh = allVue.h;
@@ -23,7 +19,6 @@ import { getTemplate } from '@progress/kendo-vue-common';
23
19
  /**
24
20
  * @hidden
25
21
  */
26
-
27
22
  var ArcCenterVue2 = {
28
23
  name: 'KendoArcCenter',
29
24
  props: {
@@ -51,13 +46,10 @@ var ArcCenterVue2 = {
51
46
  render: function render(createElement) {
52
47
  var h = gh || createElement;
53
48
  var center = this.$props.center;
54
-
55
49
  var divStyle = __assign({
56
50
  zIndex: -1
57
51
  }, this.centerStyles);
58
-
59
52
  var renderer = null;
60
-
61
53
  if (center) {
62
54
  var centerDefaultRendering = '';
63
55
  renderer = getTemplate.call(this, {
@@ -74,13 +66,11 @@ var ArcCenterVue2 = {
74
66
  style: divStyle
75
67
  }, [renderer]);
76
68
  }
77
-
78
69
  return renderer;
79
70
  }
80
71
  };
81
72
  /**
82
73
  * @hidden
83
74
  */
84
-
85
75
  var ArcCenter = ArcCenterVue2;
86
76
  export { ArcCenter, ArcCenterVue2 };
@@ -11,7 +11,6 @@ import { classNames, getDefaultSlots, templateRendering, getListeners } from '@p
11
11
  /**
12
12
  * @hidden
13
13
  */
14
-
15
14
  var ArcGaugeVue2 = {
16
15
  name: 'KendoArcGauge',
17
16
  props: {
@@ -92,19 +91,18 @@ var ArcGaugeVue2 = {
92
91
  // @ts-ignore
93
92
  render: function render(createElement) {
94
93
  var _this2 = this;
95
-
96
94
  var _this = this;
97
-
98
95
  var h = gh || createElement;
99
96
  var defaultSlots = getDefaultSlots(this);
100
97
  var _a = this.$props,
101
- centerRender = _a.centerRender,
102
- className = _a.className,
103
- value = _a.value,
104
- transitions = _a.transitions,
105
- scale = _a.scale;
98
+ centerRender = _a.centerRender,
99
+ className = _a.className,
100
+ value = _a.value,
101
+ transitions = _a.transitions,
102
+ scale = _a.scale;
106
103
  var center = centerRender ? templateRendering.call(this, centerRender, getListeners.call(this)) : undefined;
107
- return (// @ts-ignore function children
104
+ return (
105
+ // @ts-ignore function children
108
106
  h(BaseGauge, {
109
107
  value: value,
110
108
  attrs: this.v3 ? undefined : {
@@ -129,7 +127,8 @@ var ArcGaugeVue2 = {
129
127
  "render": this.positionCenter
130
128
  }
131
129
  }, this.v3 ? function () {
132
- return [defaultSlots, // @ts-ignore
130
+ return [defaultSlots,
131
+ // @ts-ignore
133
132
  h(ArcCenter, {
134
133
  center: center,
135
134
  attrs: _this2.v3 ? undefined : {
@@ -165,28 +164,24 @@ var ArcGaugeVue2 = {
165
164
  if (this._baseGauge) {
166
165
  return this._baseGauge.gaugeInstance;
167
166
  }
168
-
169
167
  return null;
170
168
  },
171
169
  surface: function surface() {
172
170
  if (this._baseGauge) {
173
171
  return this._baseGauge.surface;
174
172
  }
175
-
176
173
  return null;
177
174
  },
178
175
  element: function element() {
179
176
  if (this._baseGauge) {
180
177
  return this._baseGauge.element;
181
178
  }
182
-
183
179
  return null;
184
180
  },
185
181
  exportVisual: function exportVisual(options) {
186
182
  if (this.gaugeInstance !== null && this.$el) {
187
183
  return drawDOM(this.$el, options);
188
184
  }
189
-
190
185
  return Promise.resolve(new Group());
191
186
  },
192
187
  getTarget: function getTarget() {
@@ -194,11 +189,11 @@ var ArcGaugeVue2 = {
194
189
  },
195
190
  deriveOptionsFromParent: function deriveOptionsFromParent(options) {
196
191
  var _a = this.$props,
197
- value = _a.value,
198
- color = _a.color,
199
- colors = _a.colors,
200
- opacity = _a.opacity,
201
- scale = _a.scale;
192
+ value = _a.value,
193
+ color = _a.color,
194
+ colors = _a.colors,
195
+ opacity = _a.opacity,
196
+ scale = _a.scale;
202
197
  return Object.assign({}, options, {
203
198
  value: value,
204
199
  color: color,
@@ -212,6 +207,5 @@ var ArcGaugeVue2 = {
212
207
  /**
213
208
  * @hidden
214
209
  */
215
-
216
210
  var ArcGauge = ArcGaugeVue2;
217
211
  export { ArcGauge, ArcGaugeVue2 };