@progress/kendo-vue-gauges 5.3.0-dev.202410141143 → 5.3.0-develop.2

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 (271) hide show
  1. package/ArcCenter.js +8 -0
  2. package/ArcCenter.mjs +50 -0
  3. package/ArcGauge.js +8 -0
  4. package/ArcGauge.mjs +150 -0
  5. package/BaseGauge.js +8 -0
  6. package/BaseGauge.mjs +140 -0
  7. package/CircularGauge.js +8 -0
  8. package/CircularGauge.mjs +20 -0
  9. package/LinearGauge.js +8 -0
  10. package/LinearGauge.mjs +94 -0
  11. package/README.md +24 -53
  12. package/RadialGauge.js +8 -0
  13. package/RadialGauge.mjs +98 -0
  14. package/dist/cdn/js/kendo-vue-gauges.js +8 -1
  15. package/index.d.mts +891 -0
  16. package/index.d.ts +891 -0
  17. package/index.js +8 -0
  18. package/index.mjs +17 -0
  19. package/package-metadata.js +8 -0
  20. package/package-metadata.mjs +18 -0
  21. package/package.json +23 -49
  22. package/store/reducer.js +8 -0
  23. package/store/reducer.mjs +44 -0
  24. package/store/store.js +8 -0
  25. package/store/store.mjs +19 -0
  26. package/theming/theme-service.js +12 -0
  27. package/theming/theme-service.mjs +48 -0
  28. package/dist/es/ArcCenter.d.ts +0 -53
  29. package/dist/es/ArcCenter.js +0 -76
  30. package/dist/es/ArcGauge.d.ts +0 -48
  31. package/dist/es/ArcGauge.js +0 -211
  32. package/dist/es/ArcGaugeProps.d.ts +0 -33
  33. package/dist/es/ArcGaugeProps.js +0 -1
  34. package/dist/es/BaseGauge.d.ts +0 -47
  35. package/dist/es/BaseGauge.js +0 -213
  36. package/dist/es/BaseGaugeProps.d.ts +0 -44
  37. package/dist/es/BaseGaugeProps.js +0 -2
  38. package/dist/es/CircularGauge.d.ts +0 -43
  39. package/dist/es/CircularGauge.js +0 -34
  40. package/dist/es/CircularGaugeProps.d.ts +0 -17
  41. package/dist/es/CircularGaugeProps.js +0 -1
  42. package/dist/es/LinearGauge.d.ts +0 -43
  43. package/dist/es/LinearGauge.js +0 -125
  44. package/dist/es/LinearGaugeProps.d.ts +0 -15
  45. package/dist/es/LinearGaugeProps.js +0 -1
  46. package/dist/es/RadialGauge.d.ts +0 -43
  47. package/dist/es/RadialGauge.js +0 -129
  48. package/dist/es/RadialGaugeProps.d.ts +0 -15
  49. package/dist/es/RadialGaugeProps.js +0 -1
  50. package/dist/es/additionalTypes.ts +0 -21
  51. package/dist/es/main.d.ts +0 -10
  52. package/dist/es/main.js +0 -6
  53. package/dist/es/package-metadata.d.ts +0 -5
  54. package/dist/es/package-metadata.js +0 -11
  55. package/dist/es/store/reducer.d.ts +0 -14
  56. package/dist/es/store/reducer.js +0 -102
  57. package/dist/es/store/store.d.ts +0 -26
  58. package/dist/es/store/store.js +0 -28
  59. package/dist/es/theming/theme-service.d.ts +0 -6
  60. package/dist/es/theming/theme-service.js +0 -53
  61. package/dist/es/types/arc-scale.interface.d.ts +0 -28
  62. package/dist/es/types/arc-scale.interface.js +0 -2
  63. package/dist/es/types/border.interface.d.ts +0 -18
  64. package/dist/es/types/border.interface.js +0 -1
  65. package/dist/es/types/cap.interface.d.ts +0 -13
  66. package/dist/es/types/cap.interface.js +0 -1
  67. package/dist/es/types/circular-scale.interface.d.ts +0 -10
  68. package/dist/es/types/circular-scale.interface.js +0 -1
  69. package/dist/es/types/color-range.interface.d.ts +0 -21
  70. package/dist/es/types/color-range.interface.js +0 -1
  71. package/dist/es/types/dash-type.interface.d.ts +0 -4
  72. package/dist/es/types/dash-type.interface.js +0 -1
  73. package/dist/es/types/gauge-area.interface.d.ts +0 -27
  74. package/dist/es/types/gauge-area.interface.js +0 -1
  75. package/dist/es/types/labels.interface.d.ts +0 -47
  76. package/dist/es/types/labels.interface.js +0 -2
  77. package/dist/es/types/line-cap.d.ts +0 -4
  78. package/dist/es/types/line-cap.js +0 -1
  79. package/dist/es/types/line.interface.d.ts +0 -22
  80. package/dist/es/types/line.interface.js +0 -1
  81. package/dist/es/types/linear-pointer-shape.d.ts +0 -4
  82. package/dist/es/types/linear-pointer-shape.js +0 -1
  83. package/dist/es/types/linear-pointer.interface.d.ts +0 -36
  84. package/dist/es/types/linear-pointer.interface.js +0 -1
  85. package/dist/es/types/linear-scale.interface.d.ts +0 -26
  86. package/dist/es/types/linear-scale.interface.js +0 -2
  87. package/dist/es/types/margin.interface.d.ts +0 -21
  88. package/dist/es/types/margin.interface.js +0 -1
  89. package/dist/es/types/padding.interface.d.ts +0 -21
  90. package/dist/es/types/padding.interface.js +0 -1
  91. package/dist/es/types/radial-label-position.d.ts +0 -4
  92. package/dist/es/types/radial-label-position.js +0 -1
  93. package/dist/es/types/radial-labels.interface.d.ts +0 -8
  94. package/dist/es/types/radial-labels.interface.js +0 -1
  95. package/dist/es/types/radial-pointer.interface.d.ts +0 -22
  96. package/dist/es/types/radial-pointer.interface.js +0 -2
  97. package/dist/es/types/radial-scale.interface.d.ts +0 -28
  98. package/dist/es/types/radial-scale.interface.js +0 -2
  99. package/dist/es/types/range.interface.d.ts +0 -21
  100. package/dist/es/types/range.interface.js +0 -1
  101. package/dist/es/types/scale.interface.d.ts +0 -47
  102. package/dist/es/types/scale.interface.js +0 -1
  103. package/dist/es/types/ticks.interface.d.ts +0 -21
  104. package/dist/es/types/ticks.interface.js +0 -2
  105. package/dist/es/types.d.ts +0 -21
  106. package/dist/es/types.js +0 -1
  107. package/dist/es/utils/common.d.ts +0 -4
  108. package/dist/es/utils/common.js +0 -39
  109. package/dist/esm/ArcCenter.d.ts +0 -53
  110. package/dist/esm/ArcCenter.js +0 -76
  111. package/dist/esm/ArcGauge.d.ts +0 -48
  112. package/dist/esm/ArcGauge.js +0 -211
  113. package/dist/esm/ArcGaugeProps.d.ts +0 -33
  114. package/dist/esm/ArcGaugeProps.js +0 -1
  115. package/dist/esm/BaseGauge.d.ts +0 -47
  116. package/dist/esm/BaseGauge.js +0 -213
  117. package/dist/esm/BaseGaugeProps.d.ts +0 -44
  118. package/dist/esm/BaseGaugeProps.js +0 -2
  119. package/dist/esm/CircularGauge.d.ts +0 -43
  120. package/dist/esm/CircularGauge.js +0 -34
  121. package/dist/esm/CircularGaugeProps.d.ts +0 -17
  122. package/dist/esm/CircularGaugeProps.js +0 -1
  123. package/dist/esm/LinearGauge.d.ts +0 -43
  124. package/dist/esm/LinearGauge.js +0 -125
  125. package/dist/esm/LinearGaugeProps.d.ts +0 -15
  126. package/dist/esm/LinearGaugeProps.js +0 -1
  127. package/dist/esm/RadialGauge.d.ts +0 -43
  128. package/dist/esm/RadialGauge.js +0 -129
  129. package/dist/esm/RadialGaugeProps.d.ts +0 -15
  130. package/dist/esm/RadialGaugeProps.js +0 -1
  131. package/dist/esm/additionalTypes.ts +0 -21
  132. package/dist/esm/main.d.ts +0 -10
  133. package/dist/esm/main.js +0 -6
  134. package/dist/esm/package-metadata.d.ts +0 -5
  135. package/dist/esm/package-metadata.js +0 -11
  136. package/dist/esm/package.json +0 -3
  137. package/dist/esm/store/reducer.d.ts +0 -14
  138. package/dist/esm/store/reducer.js +0 -102
  139. package/dist/esm/store/store.d.ts +0 -26
  140. package/dist/esm/store/store.js +0 -28
  141. package/dist/esm/theming/theme-service.d.ts +0 -6
  142. package/dist/esm/theming/theme-service.js +0 -53
  143. package/dist/esm/types/arc-scale.interface.d.ts +0 -28
  144. package/dist/esm/types/arc-scale.interface.js +0 -2
  145. package/dist/esm/types/border.interface.d.ts +0 -18
  146. package/dist/esm/types/border.interface.js +0 -1
  147. package/dist/esm/types/cap.interface.d.ts +0 -13
  148. package/dist/esm/types/cap.interface.js +0 -1
  149. package/dist/esm/types/circular-scale.interface.d.ts +0 -10
  150. package/dist/esm/types/circular-scale.interface.js +0 -1
  151. package/dist/esm/types/color-range.interface.d.ts +0 -21
  152. package/dist/esm/types/color-range.interface.js +0 -1
  153. package/dist/esm/types/dash-type.interface.d.ts +0 -4
  154. package/dist/esm/types/dash-type.interface.js +0 -1
  155. package/dist/esm/types/gauge-area.interface.d.ts +0 -27
  156. package/dist/esm/types/gauge-area.interface.js +0 -1
  157. package/dist/esm/types/labels.interface.d.ts +0 -47
  158. package/dist/esm/types/labels.interface.js +0 -2
  159. package/dist/esm/types/line-cap.d.ts +0 -4
  160. package/dist/esm/types/line-cap.js +0 -1
  161. package/dist/esm/types/line.interface.d.ts +0 -22
  162. package/dist/esm/types/line.interface.js +0 -1
  163. package/dist/esm/types/linear-pointer-shape.d.ts +0 -4
  164. package/dist/esm/types/linear-pointer-shape.js +0 -1
  165. package/dist/esm/types/linear-pointer.interface.d.ts +0 -36
  166. package/dist/esm/types/linear-pointer.interface.js +0 -1
  167. package/dist/esm/types/linear-scale.interface.d.ts +0 -26
  168. package/dist/esm/types/linear-scale.interface.js +0 -2
  169. package/dist/esm/types/margin.interface.d.ts +0 -21
  170. package/dist/esm/types/margin.interface.js +0 -1
  171. package/dist/esm/types/padding.interface.d.ts +0 -21
  172. package/dist/esm/types/padding.interface.js +0 -1
  173. package/dist/esm/types/radial-label-position.d.ts +0 -4
  174. package/dist/esm/types/radial-label-position.js +0 -1
  175. package/dist/esm/types/radial-labels.interface.d.ts +0 -8
  176. package/dist/esm/types/radial-labels.interface.js +0 -1
  177. package/dist/esm/types/radial-pointer.interface.d.ts +0 -22
  178. package/dist/esm/types/radial-pointer.interface.js +0 -2
  179. package/dist/esm/types/radial-scale.interface.d.ts +0 -28
  180. package/dist/esm/types/radial-scale.interface.js +0 -2
  181. package/dist/esm/types/range.interface.d.ts +0 -21
  182. package/dist/esm/types/range.interface.js +0 -1
  183. package/dist/esm/types/scale.interface.d.ts +0 -47
  184. package/dist/esm/types/scale.interface.js +0 -1
  185. package/dist/esm/types/ticks.interface.d.ts +0 -21
  186. package/dist/esm/types/ticks.interface.js +0 -2
  187. package/dist/esm/types.d.ts +0 -21
  188. package/dist/esm/types.js +0 -1
  189. package/dist/esm/utils/common.d.ts +0 -4
  190. package/dist/esm/utils/common.js +0 -39
  191. package/dist/npm/ArcCenter.d.ts +0 -53
  192. package/dist/npm/ArcCenter.js +0 -83
  193. package/dist/npm/ArcGauge.d.ts +0 -48
  194. package/dist/npm/ArcGauge.js +0 -218
  195. package/dist/npm/ArcGaugeProps.d.ts +0 -33
  196. package/dist/npm/ArcGaugeProps.js +0 -5
  197. package/dist/npm/BaseGauge.d.ts +0 -47
  198. package/dist/npm/BaseGauge.js +0 -220
  199. package/dist/npm/BaseGaugeProps.d.ts +0 -44
  200. package/dist/npm/BaseGaugeProps.js +0 -6
  201. package/dist/npm/CircularGauge.d.ts +0 -43
  202. package/dist/npm/CircularGauge.js +0 -41
  203. package/dist/npm/CircularGaugeProps.d.ts +0 -17
  204. package/dist/npm/CircularGaugeProps.js +0 -5
  205. package/dist/npm/LinearGauge.d.ts +0 -43
  206. package/dist/npm/LinearGauge.js +0 -132
  207. package/dist/npm/LinearGaugeProps.d.ts +0 -15
  208. package/dist/npm/LinearGaugeProps.js +0 -5
  209. package/dist/npm/RadialGauge.d.ts +0 -43
  210. package/dist/npm/RadialGauge.js +0 -136
  211. package/dist/npm/RadialGaugeProps.d.ts +0 -15
  212. package/dist/npm/RadialGaugeProps.js +0 -5
  213. package/dist/npm/additionalTypes.ts +0 -21
  214. package/dist/npm/main.d.ts +0 -10
  215. package/dist/npm/main.js +0 -30
  216. package/dist/npm/package-metadata.d.ts +0 -5
  217. package/dist/npm/package-metadata.js +0 -14
  218. package/dist/npm/store/reducer.d.ts +0 -14
  219. package/dist/npm/store/reducer.js +0 -107
  220. package/dist/npm/store/store.d.ts +0 -26
  221. package/dist/npm/store/store.js +0 -31
  222. package/dist/npm/theming/theme-service.d.ts +0 -6
  223. package/dist/npm/theming/theme-service.js +0 -56
  224. package/dist/npm/types/arc-scale.interface.d.ts +0 -28
  225. package/dist/npm/types/arc-scale.interface.js +0 -3
  226. package/dist/npm/types/border.interface.d.ts +0 -18
  227. package/dist/npm/types/border.interface.js +0 -2
  228. package/dist/npm/types/cap.interface.d.ts +0 -13
  229. package/dist/npm/types/cap.interface.js +0 -2
  230. package/dist/npm/types/circular-scale.interface.d.ts +0 -10
  231. package/dist/npm/types/circular-scale.interface.js +0 -2
  232. package/dist/npm/types/color-range.interface.d.ts +0 -21
  233. package/dist/npm/types/color-range.interface.js +0 -2
  234. package/dist/npm/types/dash-type.interface.d.ts +0 -4
  235. package/dist/npm/types/dash-type.interface.js +0 -2
  236. package/dist/npm/types/gauge-area.interface.d.ts +0 -27
  237. package/dist/npm/types/gauge-area.interface.js +0 -2
  238. package/dist/npm/types/labels.interface.d.ts +0 -47
  239. package/dist/npm/types/labels.interface.js +0 -3
  240. package/dist/npm/types/line-cap.d.ts +0 -4
  241. package/dist/npm/types/line-cap.js +0 -2
  242. package/dist/npm/types/line.interface.d.ts +0 -22
  243. package/dist/npm/types/line.interface.js +0 -2
  244. package/dist/npm/types/linear-pointer-shape.d.ts +0 -4
  245. package/dist/npm/types/linear-pointer-shape.js +0 -2
  246. package/dist/npm/types/linear-pointer.interface.d.ts +0 -36
  247. package/dist/npm/types/linear-pointer.interface.js +0 -2
  248. package/dist/npm/types/linear-scale.interface.d.ts +0 -26
  249. package/dist/npm/types/linear-scale.interface.js +0 -3
  250. package/dist/npm/types/margin.interface.d.ts +0 -21
  251. package/dist/npm/types/margin.interface.js +0 -2
  252. package/dist/npm/types/padding.interface.d.ts +0 -21
  253. package/dist/npm/types/padding.interface.js +0 -2
  254. package/dist/npm/types/radial-label-position.d.ts +0 -4
  255. package/dist/npm/types/radial-label-position.js +0 -2
  256. package/dist/npm/types/radial-labels.interface.d.ts +0 -8
  257. package/dist/npm/types/radial-labels.interface.js +0 -2
  258. package/dist/npm/types/radial-pointer.interface.d.ts +0 -22
  259. package/dist/npm/types/radial-pointer.interface.js +0 -3
  260. package/dist/npm/types/radial-scale.interface.d.ts +0 -28
  261. package/dist/npm/types/radial-scale.interface.js +0 -3
  262. package/dist/npm/types/range.interface.d.ts +0 -21
  263. package/dist/npm/types/range.interface.js +0 -2
  264. package/dist/npm/types/scale.interface.d.ts +0 -47
  265. package/dist/npm/types/scale.interface.js +0 -2
  266. package/dist/npm/types/ticks.interface.d.ts +0 -21
  267. package/dist/npm/types/ticks.interface.js +0 -3
  268. package/dist/npm/types.d.ts +0 -21
  269. package/dist/npm/types.js +0 -2
  270. package/dist/npm/utils/common.d.ts +0 -4
  271. package/dist/npm/utils/common.js +0 -43
@@ -1,125 +0,0 @@
1
- // @ts-ignore
2
- import * as Vue from 'vue';
3
- var allVue = Vue;
4
- var gh = allVue.h;
5
- var isV3 = allVue.version && allVue.version[0] === '3';
6
- import { BaseGauge } from './BaseGauge';
7
- import { LinearGauge as KendoLinearGauge } from '@progress/kendo-charts';
8
- import { Group } from '@progress/kendo-drawing';
9
- import { getDefaultSlots } from '@progress/kendo-vue-common';
10
- /**
11
- * @hidden
12
- */
13
- var LinearGaugeVue2 = {
14
- name: 'KendoLinearGauge',
15
- props: {
16
- dir: String,
17
- renderAs: {
18
- type: String,
19
- default: 'svg',
20
- validator: function validator(value) {
21
- return ['svg', 'canvas'].includes(value);
22
- }
23
- },
24
- gaugeConstructor: [Object, Function],
25
- pointer: {
26
- type: [Object, Array],
27
- default: undefined
28
- },
29
- scale: {
30
- type: Object,
31
- default: undefined
32
- },
33
- transitions: {
34
- type: Boolean,
35
- default: undefined
36
- }
37
- },
38
- mounted: function mounted() {
39
- this._baseGauge = this.v3 ? this.baseGaugeRef : this.$refs.baseGauge;
40
- },
41
- updated: function updated() {
42
- this._baseGauge = this.v3 ? this.baseGaugeRef : this.$refs.baseGauge;
43
- },
44
- // @ts-ignore
45
- setup: !isV3 ? undefined : function () {
46
- var v3 = !!isV3;
47
- return {
48
- v3: v3
49
- };
50
- },
51
- // @ts-ignore
52
- render: function render(createElement) {
53
- var _this = this;
54
- var h = gh || createElement;
55
- var defaultSlots = getDefaultSlots(this);
56
- return (
57
- // @ts-ignore function children
58
- h(BaseGauge, {
59
- transitions: this.$props.transitions,
60
- attrs: this.v3 ? undefined : {
61
- transitions: this.$props.transitions,
62
- scale: this.$props.scale,
63
- pointer: this.$props.pointer,
64
- deriveOptionsFromParent: this.deriveOptionsFromParent,
65
- gaugeConstructor: KendoLinearGauge,
66
- getTarget: this.getTarget
67
- },
68
- scale: this.$props.scale,
69
- pointer: this.$props.pointer,
70
- deriveOptionsFromParent: this.deriveOptionsFromParent,
71
- ref: this.v3 ? function (el) {
72
- _this.baseGaugeRef = el;
73
- } : 'baseGauge',
74
- gaugeConstructor: KendoLinearGauge,
75
- getTarget: this.getTarget,
76
- "class": 'k-gauge'
77
- }, this.v3 ? function () {
78
- return [defaultSlots];
79
- } : [defaultSlots])
80
- );
81
- },
82
- methods: {
83
- gaugeInstance: function gaugeInstance() {
84
- if (this._baseGauge !== null) {
85
- return this._baseGauge.gaugeInstance;
86
- }
87
- return null;
88
- },
89
- surface: function surface() {
90
- if (this._baseGauge !== null) {
91
- return this._baseGauge.surface;
92
- }
93
- return null;
94
- },
95
- element: function element() {
96
- if (this._baseGauge !== null) {
97
- return this._baseGauge.element;
98
- }
99
- return null;
100
- },
101
- exportVisual: function exportVisual(options) {
102
- if (this.gaugeInstance() !== null) {
103
- return Promise.resolve(this.gaugeInstance().exportVisual(options));
104
- }
105
- return Promise.resolve(new Group());
106
- },
107
- getTarget: function getTarget() {
108
- return this;
109
- },
110
- deriveOptionsFromParent: function deriveOptionsFromParent(options) {
111
- var _a = this.$props,
112
- pointer = _a.pointer,
113
- scale = _a.scale;
114
- return Object.assign({}, options, {
115
- pointer: pointer,
116
- scale: scale
117
- });
118
- }
119
- }
120
- };
121
- /**
122
- * @hidden
123
- */
124
- var LinearGauge = LinearGaugeVue2;
125
- export { LinearGauge, LinearGaugeVue2 };
@@ -1,15 +0,0 @@
1
- import { BaseGaugeProps } from './BaseGaugeProps';
2
- import { LinearPointer, LinearScale } from './types';
3
- /**
4
- * Represents the props of the [Kendo UI for Vue LinearGauge component]({% slug overview_lineargauge_gauges %}).
5
- */
6
- export interface LinearGaugeProps extends BaseGaugeProps {
7
- /**
8
- * The configuration of the pointers ([see example]({% slug multiplepointers_lineargauge %})).
9
- */
10
- pointer: LinearPointer | LinearPointer[];
11
- /**
12
- * The configuration of the scale.
13
- */
14
- scale?: LinearScale;
15
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,43 +0,0 @@
1
- import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from './additionalTypes';
2
- declare type DefaultData<V> = object | ((this: V) => {});
3
- declare type DefaultMethods<V> = {
4
- [key: string]: (this: V, ...args: any[]) => any;
5
- };
6
- import { RadialGaugeProps } from './RadialGaugeProps';
7
- /**
8
- * @hidden
9
- */
10
- export interface RadialGaugeState {
11
- baseGauge: any;
12
- }
13
- /**
14
- * @hidden
15
- */
16
- export interface RadialGaugeComputed {
17
- [key: string]: any;
18
- }
19
- /**
20
- * @hidden
21
- */
22
- export interface RadialGaugeMethods {
23
- [key: string]: any;
24
- }
25
- /**
26
- * @hidden
27
- */
28
- export interface RadialGaugeData {
29
- }
30
- /**
31
- * @hidden
32
- */
33
- export interface RadialGaugeAll extends Vue2type, RadialGaugeMethods, RadialGaugeData, RadialGaugeComputed, RadialGaugeState {
34
- }
35
- /**
36
- * @hidden
37
- */
38
- declare let RadialGaugeVue2: ComponentOptions<RadialGaugeAll, DefaultData<RadialGaugeData>, DefaultMethods<RadialGaugeAll>, RadialGaugeComputed, RecordPropsDefinition<RadialGaugeProps>>;
39
- /**
40
- * @hidden
41
- */
42
- declare const RadialGauge: DefineComponent<RadialGaugeProps, any, RadialGaugeData, RadialGaugeComputed, RadialGaugeMethods, {}, {}, {}, string, RadialGaugeProps, RadialGaugeProps, {}>;
43
- export { RadialGauge, RadialGaugeVue2 };
@@ -1,129 +0,0 @@
1
- // @ts-ignore
2
- import * as Vue from 'vue';
3
- var allVue = Vue;
4
- var gh = allVue.h;
5
- var isV3 = allVue.version && allVue.version[0] === '3';
6
- import { BaseGauge } from './BaseGauge';
7
- import { RadialGauge as KendoRadialGauge } from '@progress/kendo-charts';
8
- import { Group } from '@progress/kendo-drawing';
9
- import { getDefaultSlots } from '@progress/kendo-vue-common';
10
- /**
11
- * @hidden
12
- */
13
- var RadialGaugeVue2 = {
14
- name: 'KendoRadialGauge',
15
- props: {
16
- dir: String,
17
- renderAs: {
18
- type: String,
19
- default: 'svg',
20
- validator: function validator(value) {
21
- return ['svg', 'canvas'].includes(value);
22
- }
23
- },
24
- gaugeConstructor: [Object, Function],
25
- pointer: {
26
- type: [Object, Array],
27
- default: undefined
28
- },
29
- scale: {
30
- type: Object,
31
- default: undefined
32
- },
33
- transitions: {
34
- type: Boolean,
35
- default: undefined
36
- }
37
- },
38
- mounted: function mounted() {
39
- this._baseGauge = this.v3 ? this.baseGaugeRef : this.$refs.baseGauge;
40
- },
41
- updated: function updated() {
42
- this._baseGauge = this.v3 ? this.baseGaugeRef : this.$refs.baseGauge;
43
- },
44
- // @ts-ignore
45
- setup: !isV3 ? undefined : function () {
46
- var v3 = !!isV3;
47
- return {
48
- v3: v3
49
- };
50
- },
51
- // @ts-ignore
52
- render: function render(createElement) {
53
- var _this = this;
54
- var h = gh || createElement;
55
- var defaultSlots = getDefaultSlots(this);
56
- var _a = this.$props,
57
- pointer = _a.pointer,
58
- scale = _a.scale,
59
- transitions = _a.transitions;
60
- return (
61
- // @ts-ignore function children
62
- h(BaseGauge, {
63
- transitions: transitions,
64
- attrs: this.v3 ? undefined : {
65
- transitions: transitions,
66
- scale: scale,
67
- pointer: pointer,
68
- deriveOptionsFromParent: this.deriveOptionsFromParent,
69
- gaugeConstructor: KendoRadialGauge,
70
- getTarget: this.getTarget
71
- },
72
- scale: scale,
73
- pointer: pointer,
74
- deriveOptionsFromParent: this.deriveOptionsFromParent,
75
- ref: this.v3 ? function (el) {
76
- _this.baseGaugeRef = el;
77
- } : 'baseGauge',
78
- gaugeConstructor: KendoRadialGauge,
79
- getTarget: this.getTarget,
80
- "class": 'k-gauge'
81
- }, this.v3 ? function () {
82
- return [defaultSlots];
83
- } : [defaultSlots])
84
- );
85
- },
86
- methods: {
87
- gaugeInstance: function gaugeInstance() {
88
- if (this._baseGauge !== null) {
89
- return this._baseGauge.gaugeInstance;
90
- }
91
- return null;
92
- },
93
- surface: function surface() {
94
- if (this._baseGauge !== null) {
95
- return this._baseGauge.surface;
96
- }
97
- return null;
98
- },
99
- element: function element() {
100
- if (this._baseGauge !== null) {
101
- return this._baseGauge.element;
102
- }
103
- return null;
104
- },
105
- exportVisual: function exportVisual(options) {
106
- if (this.gaugeInstance() !== null) {
107
- return Promise.resolve(this.gaugeInstance().exportVisual(options));
108
- }
109
- return Promise.resolve(new Group());
110
- },
111
- getTarget: function getTarget() {
112
- return this;
113
- },
114
- deriveOptionsFromParent: function deriveOptionsFromParent(options) {
115
- var _a = this.$props,
116
- pointer = _a.pointer,
117
- scale = _a.scale;
118
- return Object.assign({}, options, {
119
- pointer: pointer,
120
- scale: scale
121
- });
122
- }
123
- }
124
- };
125
- /**
126
- * @hidden
127
- */
128
- var RadialGauge = RadialGaugeVue2;
129
- export { RadialGauge, RadialGaugeVue2 };
@@ -1,15 +0,0 @@
1
- import { BaseGaugeProps } from './BaseGaugeProps';
2
- import { RadialPointer, RadialScale } from './types';
3
- /**
4
- * Represents the props of the [Kendo UI for Vue RadialGauge component]({% slug overview_radialgauge_gauges %}).
5
- */
6
- export interface RadialGaugeProps extends BaseGaugeProps {
7
- /**
8
- * The configuration of the pointers ([see example]({% slug multiplepointers_radialgauge %})).
9
- */
10
- pointer: RadialPointer | RadialPointer[];
11
- /**
12
- * The configuration of the scale.
13
- */
14
- scale?: RadialScale;
15
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,21 +0,0 @@
1
- // @ts-ignore
2
- import { DefineComponent } from 'vue';
3
- // @ts-ignore
4
- import * as Vue from 'vue';
5
-
6
- /**
7
- * @hidden
8
- */
9
- // @ts-ignore
10
- type Vue2type = Vue.default;
11
-
12
- /**
13
- * @hidden
14
- */
15
- // @ts-ignore
16
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
17
- /**
18
- * @hidden
19
- */
20
- // @ts-ignore
21
- export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
package/dist/es/main.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { ArcGauge, ArcGaugeVue2 } from './ArcGauge';
2
- import { ArcGaugeProps } from './ArcGaugeProps';
3
- import { CircularGauge, CircularGaugeVue2 } from './CircularGauge';
4
- import { CircularGaugeProps } from './CircularGaugeProps';
5
- import { LinearGauge, LinearGaugeVue2 } from './LinearGauge';
6
- import { LinearGaugeProps } from './LinearGaugeProps';
7
- import { RadialGauge, RadialGaugeVue2 } from './RadialGauge';
8
- import { RadialGaugeProps } from './RadialGaugeProps';
9
- export * from './types';
10
- export { ArcGauge, ArcGaugeVue2, ArcGaugeProps, CircularGauge, CircularGaugeVue2, CircularGaugeProps, LinearGauge, LinearGaugeVue2, LinearGaugeProps, RadialGauge, RadialGaugeVue2, RadialGaugeProps };
package/dist/es/main.js DELETED
@@ -1,6 +0,0 @@
1
- import { ArcGauge, ArcGaugeVue2 } from './ArcGauge';
2
- import { CircularGauge, CircularGaugeVue2 } from './CircularGauge';
3
- import { LinearGauge, LinearGaugeVue2 } from './LinearGauge';
4
- import { RadialGauge, RadialGaugeVue2 } from './RadialGauge';
5
- export * from './types';
6
- export { ArcGauge, ArcGaugeVue2, CircularGauge, CircularGaugeVue2, LinearGauge, LinearGaugeVue2, RadialGauge, RadialGaugeVue2 };
@@ -1,5 +0,0 @@
1
- import { PackageMetadata } from '@progress/kendo-licensing';
2
- /**
3
- * @hidden
4
- */
5
- export declare const packageMetadata: PackageMetadata;
@@ -1,11 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export var packageMetadata = {
5
- name: '@progress/kendo-vue-gauges',
6
- productName: 'Kendo UI for Vue',
7
- productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1728905825,
9
- version: '',
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
- };
@@ -1,14 +0,0 @@
1
- import { StoreAction } from './store';
2
- /**
3
- * @hidden
4
- */
5
- declare const optionsReducer: (currentState: any, action: StoreAction) => object;
6
- /**
7
- * @hidden
8
- */
9
- declare const themeReducer: (currentState: any, action: StoreAction) => any;
10
- /**
11
- * @hidden
12
- */
13
- declare const observersReducer: (currentState: any, action: StoreAction) => any;
14
- export { optionsReducer, themeReducer, observersReducer };
@@ -1,102 +0,0 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
10
- /**
11
- * @hidden
12
- */
13
- var optionsReducer = function (currentState, action) {
14
- if (action.gaugeCollectionIdxKey) {
15
- return reducers.collectionConfigurationItem(currentState, action);
16
- }
17
- else if (action.gaugeKey) {
18
- return reducers.configurationItem(currentState, action);
19
- }
20
- else {
21
- return {};
22
- }
23
- };
24
- /**
25
- * @hidden
26
- */
27
- var themeReducer = function (currentState, action) {
28
- if (action.type) {
29
- switch (action.type) {
30
- case 'set':
31
- return reducers.themeItem(currentState, action);
32
- case 'push':
33
- return Object.assign(currentState, action.payload);
34
- default:
35
- return currentState;
36
- }
37
- }
38
- else {
39
- return {};
40
- }
41
- };
42
- /**
43
- * @hidden
44
- */
45
- var observersReducer = function (currentState, action) {
46
- if (action.type) {
47
- switch (action.type) {
48
- case 'add':
49
- return __spreadArray(__spreadArray([], currentState, true), [action.payload], false);
50
- case 'remove':
51
- return currentState.filter(function (element) { return element !== action.payload; });
52
- default:
53
- return currentState;
54
- }
55
- }
56
- else {
57
- return [];
58
- }
59
- };
60
- /**
61
- * @hidden
62
- */
63
- var reducers = {
64
- configurationItem: function (currentState, action) {
65
- var _a;
66
- return Object.assign(currentState, (_a = {},
67
- _a[action.gaugeKey] = action.payload,
68
- _a));
69
- },
70
- collectionConfigurationItem: function (currentState, action) {
71
- var _a;
72
- var inCollection = false;
73
- var _b = action.gaugeCollectionIdxKey.split('_'), collectionName = _b[0], collectionIdx = _b[1];
74
- var collection = currentState[collectionName].map(function (item, index) {
75
- if (parseInt(collectionIdx, 10) === index) {
76
- inCollection = true;
77
- return action.payload;
78
- }
79
- return item;
80
- });
81
- if (inCollection === false) {
82
- collection.splice(parseInt(collectionIdx, 10), 0, action.payload);
83
- }
84
- return Object.assign(currentState, (_a = {},
85
- _a[collectionName] = collection,
86
- _a));
87
- },
88
- themeItem: function (currentState, action) {
89
- var store = {};
90
- var nextStore = Object.assign(store, currentState);
91
- var _a = action.payload, field = _a.field, value = _a.value;
92
- var parts = field.split('.');
93
- var key = parts.shift();
94
- while (parts.length > 0) {
95
- store = store[key] = store[key] || {};
96
- key = parts.shift();
97
- }
98
- store[key] = value;
99
- return nextStore;
100
- }
101
- };
102
- export { optionsReducer, themeReducer, observersReducer };
@@ -1,26 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export declare const THROTTLE_MS: number;
5
- /**
6
- * @hidden
7
- */
8
- export interface StoreAction {
9
- gaugeKey?: string;
10
- gaugeCollectionIdxKey?: string;
11
- type?: string;
12
- payload: any;
13
- }
14
- /**
15
- * @hidden
16
- */
17
- export interface Store {
18
- getState(): any;
19
- dispatch(action: StoreAction | object): void;
20
- subscribe(f: Function): Function;
21
- }
22
- /**
23
- * @hidden
24
- */
25
- declare const createStore: (reducer: any) => Store;
26
- export default createStore;
@@ -1,28 +0,0 @@
1
- import { canUseDOM } from '@progress/kendo-vue-common';
2
- /**
3
- * @hidden
4
- */
5
- export var THROTTLE_MS = 1000 / 60;
6
- /**
7
- * @hidden
8
- */
9
- var createStore = function (reducer) {
10
- var state;
11
- var timerId;
12
- var listeners = [];
13
- var getState = function () { return state; };
14
- var dispatch = function (action) {
15
- state = reducer(state, action);
16
- if (canUseDOM) {
17
- window.clearTimeout(timerId);
18
- timerId = window.setTimeout(function () { return listeners.forEach(function (l) { return l(); }); }, THROTTLE_MS);
19
- }
20
- };
21
- var subscribe = function (listener) {
22
- listeners.push(listener);
23
- return function () { return listeners = listeners.filter(function (l) { return l !== listener; }); };
24
- };
25
- dispatch({});
26
- return { getState: getState, dispatch: dispatch, subscribe: subscribe };
27
- };
28
- export default createStore;
@@ -1,6 +0,0 @@
1
- import { Store } from './../store/store';
2
- /**
3
- * @hidden
4
- */
5
- declare const loadTheme: (store: Store, done: any) => void;
6
- export { loadTheme };
@@ -1,53 +0,0 @@
1
- import { chartBaseTheme } from '@progress/kendo-charts';
2
- var template = "\n <div class=\"k-var--gauge-pointer\"></div>\n <div class=\"k-var--gauge-track\"></div>\n <div class=\"k-var--normal-text-color\"></div>\n";
3
- /**
4
- * @hidden
5
- */
6
- var ThemeService = /** @class */ (function () {
7
- function ThemeService(store) {
8
- this.store = store;
9
- }
10
- ThemeService.prototype.setStyle = function (field, value) {
11
- this.store.dispatch({ type: 'set', payload: { field: field, value: value } });
12
- };
13
- ThemeService.prototype.setColors = function () {
14
- this.mapColor('pointer.color', 'gauge-pointer');
15
- this.mapColor('scale.rangePlaceholderColor', 'gauge-track');
16
- this.mapColor('scale.labels.color', 'normal-text-color');
17
- this.mapColor('scale.minorTicks.color', 'normal-text-color');
18
- this.mapColor('scale.majorTicks.color', 'normal-text-color');
19
- this.mapColor('scale.line.color', 'normal-text-color');
20
- };
21
- ThemeService.prototype.mapColor = function (key, varName) {
22
- this.setStyle(key, this.queryStyle(varName).backgroundColor);
23
- };
24
- ThemeService.prototype.queryStyle = function (varName) {
25
- var element = this.element;
26
- return window.getComputedStyle(element === null || element === void 0 ? void 0 : element.querySelector(".k-var--".concat(varName)));
27
- };
28
- return ThemeService;
29
- }());
30
- /**
31
- * @hidden
32
- */
33
- var loadTheme = function (store, done) {
34
- var service = new ThemeService(store);
35
- if (typeof document === 'undefined') {
36
- store.dispatch({ type: 'push', payload: chartBaseTheme() });
37
- return;
38
- }
39
- var container = service.element = document.createElement('div');
40
- container.style.display = 'none';
41
- container.innerHTML = template;
42
- document.body.appendChild(container);
43
- try {
44
- store.dispatch({ type: 'push', payload: chartBaseTheme() });
45
- service.setColors();
46
- }
47
- finally {
48
- document.body.removeChild(service.element);
49
- delete service.element;
50
- done();
51
- }
52
- };
53
- export { loadTheme };
@@ -1,28 +0,0 @@
1
- import { RadialLabels } from './radial-labels.interface';
2
- import { Scale } from './scale.interface';
3
- import { LineCap } from './line-cap';
4
- /**
5
- * The scale options of the Gauge.
6
- */
7
- export interface ArcScale extends Scale {
8
- /**
9
- * Configures the scale labels.
10
- */
11
- labels?: RadialLabels;
12
- /**
13
- * The distance between the range indicators and the ticks.
14
- */
15
- rangeDistance?: number;
16
- /**
17
- * The `lineCap` style of the ranges.
18
- */
19
- rangeLineCap?: LineCap;
20
- /**
21
- * The starting angle of the Gauge. The Gauge is rendered clockwise (0 degrees equal 180 degrees in the polar coordinate system).
22
- */
23
- startAngle?: number;
24
- /**
25
- * The ending angle of the Gauge. The Gauge is rendered clockwise (0 degrees equals 180 degrees in the polar coordinate system).
26
- */
27
- endAngle?: number;
28
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- // tslint:enable:max-line-length
@@ -1,18 +0,0 @@
1
- import { DashType } from './dash-type.interface';
2
- /**
3
- * The appearance settings for the border lines.
4
- */
5
- export interface Border {
6
- /**
7
- * The color of the border line. Accepts valid CSS color strings, including hex and rgb.
8
- */
9
- color?: string;
10
- /**
11
- * The dash type of the border line.
12
- */
13
- dashType?: DashType;
14
- /**
15
- * The width of the border line in pixels.
16
- */
17
- width?: number;
18
- }
@@ -1 +0,0 @@
1
- export {};