@progress/kendo-react-gauges 6.1.1 → 7.0.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 (194) hide show
  1. package/{dist/npm/ArcCenter.d.ts → ArcCenter.d.ts} +4 -0
  2. package/{dist/npm/ArcGauge.d.ts → ArcGauge.d.ts} +4 -0
  3. package/{dist/es/ArcGaugeProps.d.ts → ArcGaugeProps.d.ts} +4 -1
  4. package/{dist/npm/BaseGauge.d.ts → BaseGauge.d.ts} +4 -0
  5. package/{dist/es/BaseGaugeProps.d.ts → BaseGaugeProps.d.ts} +4 -1
  6. package/CircularGauge.d.ts +10 -0
  7. package/{dist/es/CircularGaugeProps.d.ts → CircularGaugeProps.d.ts} +4 -0
  8. package/GaugeContext.d.ts +16 -0
  9. package/LICENSE.md +1 -1
  10. package/{dist/es/LinearGauge.d.ts → LinearGauge.d.ts} +4 -0
  11. package/{dist/npm/LinearGaugeProps.d.ts → LinearGaugeProps.d.ts} +4 -0
  12. package/{dist/es/RadialGauge.d.ts → RadialGauge.d.ts} +4 -0
  13. package/{dist/npm/RadialGaugeProps.d.ts → RadialGaugeProps.d.ts} +4 -0
  14. package/common/gauges.d.ts +9 -0
  15. package/dist/cdn/js/kendo-react-gauges.js +9 -1
  16. package/index.d.ts +15 -0
  17. package/index.js +9 -0
  18. package/index.mjs +502 -0
  19. package/package-metadata.d.ts +9 -0
  20. package/package.json +30 -44
  21. package/{dist/npm/store → store}/reducer.d.ts +4 -0
  22. package/{dist/es/store → store}/store.d.ts +4 -0
  23. package/theming/theme-service.d.ts +10 -0
  24. package/{dist/npm/types → types}/arc-scale.interface.d.ts +4 -0
  25. package/{dist/es/types → types}/border.interface.d.ts +4 -0
  26. package/types/cap.interface.d.ts +17 -0
  27. package/types/circular-scale.interface.d.ts +14 -0
  28. package/{dist/npm/types → types}/color-range.interface.d.ts +4 -0
  29. package/types/dash-type.interface.d.ts +8 -0
  30. package/{dist/npm/types → types}/gauge-area.interface.d.ts +4 -0
  31. package/{dist/npm/types → types}/labels.interface.d.ts +4 -0
  32. package/types/line-cap.d.ts +8 -0
  33. package/{dist/npm/types → types}/line.interface.d.ts +4 -0
  34. package/types/linear-pointer-shape.d.ts +8 -0
  35. package/{dist/es/types → types}/linear-pointer.interface.d.ts +4 -0
  36. package/{dist/npm/types → types}/linear-scale.interface.d.ts +4 -0
  37. package/{dist/es/types → types}/margin.interface.d.ts +4 -0
  38. package/{dist/es/types → types}/padding.interface.d.ts +4 -0
  39. package/types/radial-label-position.d.ts +8 -0
  40. package/types/radial-labels.interface.d.ts +12 -0
  41. package/{dist/es/types → types}/radial-pointer.interface.d.ts +4 -0
  42. package/{dist/npm/types → types}/radial-scale.interface.d.ts +4 -0
  43. package/{dist/es/types → types}/range.interface.d.ts +4 -0
  44. package/{dist/npm/types → types}/scale.interface.d.ts +4 -0
  45. package/{dist/es/types → types}/ticks.interface.d.ts +4 -0
  46. package/types.d.ts +25 -0
  47. package/utils/common.d.ts +5 -0
  48. package/about.md +0 -3
  49. package/dist/es/ArcCenter.d.ts +0 -36
  50. package/dist/es/ArcCenter.js +0 -76
  51. package/dist/es/ArcGauge.d.ts +0 -33
  52. package/dist/es/ArcGauge.js +0 -128
  53. package/dist/es/ArcGaugeProps.js +0 -1
  54. package/dist/es/BaseGauge.d.ts +0 -89
  55. package/dist/es/BaseGauge.js +0 -247
  56. package/dist/es/BaseGaugeProps.js +0 -2
  57. package/dist/es/CircularGauge.d.ts +0 -6
  58. package/dist/es/CircularGauge.js +0 -27
  59. package/dist/es/CircularGaugeProps.js +0 -1
  60. package/dist/es/GaugeContext.d.ts +0 -12
  61. package/dist/es/GaugeContext.js +0 -6
  62. package/dist/es/LinearGauge.js +0 -121
  63. package/dist/es/LinearGaugeProps.d.ts +0 -15
  64. package/dist/es/LinearGaugeProps.js +0 -1
  65. package/dist/es/RadialGauge.js +0 -121
  66. package/dist/es/RadialGaugeProps.d.ts +0 -15
  67. package/dist/es/RadialGaugeProps.js +0 -1
  68. package/dist/es/common/gauges.d.ts +0 -5
  69. package/dist/es/common/gauges.js +0 -1
  70. package/dist/es/main.d.ts +0 -11
  71. package/dist/es/main.js +0 -7
  72. package/dist/es/package-metadata.d.ts +0 -5
  73. package/dist/es/package-metadata.js +0 -11
  74. package/dist/es/store/reducer.d.ts +0 -14
  75. package/dist/es/store/reducer.js +0 -102
  76. package/dist/es/store/store.js +0 -28
  77. package/dist/es/theming/theme-service.d.ts +0 -6
  78. package/dist/es/theming/theme-service.js +0 -53
  79. package/dist/es/types/arc-scale.interface.d.ts +0 -28
  80. package/dist/es/types/arc-scale.interface.js +0 -2
  81. package/dist/es/types/border.interface.js +0 -1
  82. package/dist/es/types/cap.interface.d.ts +0 -13
  83. package/dist/es/types/cap.interface.js +0 -1
  84. package/dist/es/types/circular-scale.interface.d.ts +0 -10
  85. package/dist/es/types/circular-scale.interface.js +0 -1
  86. package/dist/es/types/color-range.interface.d.ts +0 -21
  87. package/dist/es/types/color-range.interface.js +0 -1
  88. package/dist/es/types/dash-type.interface.d.ts +0 -4
  89. package/dist/es/types/dash-type.interface.js +0 -1
  90. package/dist/es/types/gauge-area.interface.d.ts +0 -27
  91. package/dist/es/types/gauge-area.interface.js +0 -1
  92. package/dist/es/types/labels.interface.d.ts +0 -47
  93. package/dist/es/types/labels.interface.js +0 -2
  94. package/dist/es/types/line-cap.d.ts +0 -4
  95. package/dist/es/types/line-cap.js +0 -1
  96. package/dist/es/types/line.interface.d.ts +0 -22
  97. package/dist/es/types/line.interface.js +0 -1
  98. package/dist/es/types/linear-pointer-shape.d.ts +0 -4
  99. package/dist/es/types/linear-pointer-shape.js +0 -1
  100. package/dist/es/types/linear-pointer.interface.js +0 -1
  101. package/dist/es/types/linear-scale.interface.d.ts +0 -26
  102. package/dist/es/types/linear-scale.interface.js +0 -2
  103. package/dist/es/types/margin.interface.js +0 -1
  104. package/dist/es/types/padding.interface.js +0 -1
  105. package/dist/es/types/radial-label-position.d.ts +0 -4
  106. package/dist/es/types/radial-label-position.js +0 -1
  107. package/dist/es/types/radial-labels.interface.d.ts +0 -8
  108. package/dist/es/types/radial-labels.interface.js +0 -1
  109. package/dist/es/types/radial-pointer.interface.js +0 -2
  110. package/dist/es/types/radial-scale.interface.d.ts +0 -28
  111. package/dist/es/types/radial-scale.interface.js +0 -2
  112. package/dist/es/types/range.interface.js +0 -1
  113. package/dist/es/types/scale.interface.d.ts +0 -47
  114. package/dist/es/types/scale.interface.js +0 -1
  115. package/dist/es/types/ticks.interface.js +0 -2
  116. package/dist/es/types.d.ts +0 -21
  117. package/dist/es/types.js +0 -1
  118. package/dist/es/utils/common.d.ts +0 -1
  119. package/dist/es/utils/common.js +0 -36
  120. package/dist/npm/ArcCenter.js +0 -79
  121. package/dist/npm/ArcGauge.js +0 -131
  122. package/dist/npm/ArcGaugeProps.d.ts +0 -40
  123. package/dist/npm/ArcGaugeProps.js +0 -2
  124. package/dist/npm/BaseGauge.js +0 -250
  125. package/dist/npm/BaseGaugeProps.d.ts +0 -52
  126. package/dist/npm/BaseGaugeProps.js +0 -3
  127. package/dist/npm/CircularGauge.d.ts +0 -6
  128. package/dist/npm/CircularGauge.js +0 -30
  129. package/dist/npm/CircularGaugeProps.d.ts +0 -17
  130. package/dist/npm/CircularGaugeProps.js +0 -2
  131. package/dist/npm/GaugeContext.d.ts +0 -12
  132. package/dist/npm/GaugeContext.js +0 -9
  133. package/dist/npm/LinearGauge.d.ts +0 -32
  134. package/dist/npm/LinearGauge.js +0 -124
  135. package/dist/npm/LinearGaugeProps.js +0 -2
  136. package/dist/npm/RadialGauge.d.ts +0 -32
  137. package/dist/npm/RadialGauge.js +0 -124
  138. package/dist/npm/RadialGaugeProps.js +0 -2
  139. package/dist/npm/common/gauges.d.ts +0 -5
  140. package/dist/npm/common/gauges.js +0 -2
  141. package/dist/npm/main.d.ts +0 -11
  142. package/dist/npm/main.js +0 -27
  143. package/dist/npm/package-metadata.d.ts +0 -5
  144. package/dist/npm/package-metadata.js +0 -14
  145. package/dist/npm/store/reducer.js +0 -107
  146. package/dist/npm/store/store.d.ts +0 -26
  147. package/dist/npm/store/store.js +0 -31
  148. package/dist/npm/theming/theme-service.d.ts +0 -6
  149. package/dist/npm/theming/theme-service.js +0 -56
  150. package/dist/npm/types/arc-scale.interface.js +0 -3
  151. package/dist/npm/types/border.interface.d.ts +0 -18
  152. package/dist/npm/types/border.interface.js +0 -2
  153. package/dist/npm/types/cap.interface.d.ts +0 -13
  154. package/dist/npm/types/cap.interface.js +0 -2
  155. package/dist/npm/types/circular-scale.interface.d.ts +0 -10
  156. package/dist/npm/types/circular-scale.interface.js +0 -2
  157. package/dist/npm/types/color-range.interface.js +0 -2
  158. package/dist/npm/types/dash-type.interface.d.ts +0 -4
  159. package/dist/npm/types/dash-type.interface.js +0 -2
  160. package/dist/npm/types/gauge-area.interface.js +0 -2
  161. package/dist/npm/types/labels.interface.js +0 -3
  162. package/dist/npm/types/line-cap.d.ts +0 -4
  163. package/dist/npm/types/line-cap.js +0 -2
  164. package/dist/npm/types/line.interface.js +0 -2
  165. package/dist/npm/types/linear-pointer-shape.d.ts +0 -4
  166. package/dist/npm/types/linear-pointer-shape.js +0 -2
  167. package/dist/npm/types/linear-pointer.interface.d.ts +0 -36
  168. package/dist/npm/types/linear-pointer.interface.js +0 -2
  169. package/dist/npm/types/linear-scale.interface.js +0 -3
  170. package/dist/npm/types/margin.interface.d.ts +0 -21
  171. package/dist/npm/types/margin.interface.js +0 -2
  172. package/dist/npm/types/padding.interface.d.ts +0 -21
  173. package/dist/npm/types/padding.interface.js +0 -2
  174. package/dist/npm/types/radial-label-position.d.ts +0 -4
  175. package/dist/npm/types/radial-label-position.js +0 -2
  176. package/dist/npm/types/radial-labels.interface.d.ts +0 -8
  177. package/dist/npm/types/radial-labels.interface.js +0 -2
  178. package/dist/npm/types/radial-pointer.interface.d.ts +0 -22
  179. package/dist/npm/types/radial-pointer.interface.js +0 -3
  180. package/dist/npm/types/radial-scale.interface.js +0 -3
  181. package/dist/npm/types/range.interface.d.ts +0 -21
  182. package/dist/npm/types/range.interface.js +0 -2
  183. package/dist/npm/types/scale.interface.js +0 -2
  184. package/dist/npm/types/ticks.interface.d.ts +0 -21
  185. package/dist/npm/types/ticks.interface.js +0 -3
  186. package/dist/npm/types.d.ts +0 -21
  187. package/dist/npm/types.js +0 -2
  188. package/dist/npm/utils/common.d.ts +0 -1
  189. package/dist/npm/utils/common.js +0 -40
  190. package/dist/systemjs/kendo-react-gauges.js +0 -1
  191. package/e2e-next/arcgauge.basic.tests.ts +0 -24
  192. package/e2e-next/circulargauge.basic.tests.ts +0 -24
  193. package/e2e-next/lineargauge.basic.tests.ts +0 -24
  194. package/e2e-next/radialgauge.basic.tests.ts +0 -24
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import { DashType } from './dash-type.interface';
2
6
  /**
3
7
  * The appearance settings for the border lines.
@@ -0,0 +1,17 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * The configuration options for the RadialGauge pointer cap.
7
+ */
8
+ export interface Cap {
9
+ /**
10
+ * The color of the cap. Accepts valid CSS color strings, including hex and rgb.
11
+ */
12
+ color?: string;
13
+ /**
14
+ * The size of the cap in percent (from 0 to 1).
15
+ */
16
+ size?: number;
17
+ }
@@ -0,0 +1,14 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ArcScale } from './arc-scale.interface';
6
+ /**
7
+ * The scale options of the Gauge.
8
+ */
9
+ export interface CircularScale extends ArcScale {
10
+ /**
11
+ * @hidden
12
+ */
13
+ endAngle?: number;
14
+ }
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  /**
2
6
  * The color range configuration.
3
7
  */
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * The dash type of a line.
7
+ */
8
+ export type DashType = 'dash' | 'dashDot' | 'dot' | 'longDash' | 'longDashDot' | 'longDashDotDot' | 'solid';
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import { Border } from './border.interface';
2
6
  import { Margin } from './margin.interface';
3
7
  /**
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import { Border } from './border.interface';
2
6
  import { Margin } from './margin.interface';
3
7
  import { Padding } from './padding.interface';
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * The cap style of a line.
7
+ */
8
+ export type LineCap = 'butt' | 'round' | 'square';
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import { DashType } from './dash-type.interface';
2
6
  /**
3
7
  * The scale line options.
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * The shape of the pointer.
7
+ */
8
+ export type LinearPointerShape = 'barIndicator' | 'arrow';
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import { Border } from './border.interface';
2
6
  import { Margin } from './margin.interface';
3
7
  import { LinearPointerShape } from './linear-pointer-shape';
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import { Scale } from './scale.interface';
2
6
  import { Line } from './line.interface';
3
7
  import { Range } from './range.interface';
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  /**
2
6
  * The margin configuration for each side.
3
7
  */
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  /**
2
6
  * The padding configuration for each side.
3
7
  */
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * The position of the RadialGauge labels.
7
+ */
8
+ export type RadialLabelPosition = 'inside' | 'outside';
@@ -0,0 +1,12 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Labels } from './labels.interface';
6
+ import { RadialLabelPosition } from './radial-label-position';
7
+ export interface RadialLabels extends Labels {
8
+ /**
9
+ * The position of the labels.
10
+ */
11
+ position?: RadialLabelPosition;
12
+ }
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import { Cap } from './cap.interface';
2
6
  /**
3
7
  * The configuration options for the RadialGauge pointer.
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import { RadialLabels } from './radial-labels.interface';
2
6
  import { Scale } from './scale.interface';
3
7
  import { Range } from './range.interface';
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  /**
2
6
  * The configuration for the scale ranges.
3
7
  */
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  import { Labels } from './labels.interface';
2
6
  import { Ticks } from './ticks.interface';
3
7
  /**
@@ -1,3 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  /**
2
6
  * The options for the scale ticks.
3
7
  */
package/types.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export type { ArcScale } from './types/arc-scale.interface';
6
+ export type { ColorRange } from './types/color-range.interface';
7
+ export type { Scale } from './types/scale.interface';
8
+ export type { LineCap } from './types/line-cap';
9
+ export type { RadialLabelPosition } from './types/radial-label-position';
10
+ export type { RadialLabels } from './types/radial-labels.interface';
11
+ export type { Labels } from './types/labels.interface';
12
+ export type { Margin } from './types/margin.interface';
13
+ export type { Padding } from './types/padding.interface';
14
+ export type { Border } from './types/border.interface';
15
+ export type { Ticks } from './types/ticks.interface';
16
+ export type { DashType } from './types/dash-type.interface';
17
+ export type { Cap } from './types/cap.interface';
18
+ export type { GaugeArea } from './types/gauge-area.interface';
19
+ export type { Line } from './types/line.interface';
20
+ export type { LinearPointer } from './types/linear-pointer.interface';
21
+ export type { LinearPointerShape } from './types/linear-pointer-shape';
22
+ export type { LinearScale } from './types/linear-scale.interface';
23
+ export type { RadialPointer } from './types/radial-pointer.interface';
24
+ export type { RadialScale } from './types/radial-scale.interface';
25
+ export type { Range } from './types/range.interface';
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export declare const isOptionsChanged: (original: any, current: any) => boolean;
package/about.md DELETED
@@ -1,3 +0,0 @@
1
- <a href="https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-gauges&utm_content=banner" target="_blank">
2
- <img src="https://www.telerik.com/kendo-react-ui/components/npm-banner.svg" alt="KendoReact NPM Banner">
3
- </a>
@@ -1,36 +0,0 @@
1
- import * as React from 'react';
2
- import { InstanceObserver } from '@progress/kendo-charts';
3
- export interface ArcCenterStyle {
4
- left: number;
5
- top: number;
6
- }
7
- export interface ArcCenterValue {
8
- value: number;
9
- color: string;
10
- }
11
- /**
12
- * @hidden
13
- */
14
- export interface ArcCenterState {
15
- arcCenterStyles: ArcCenterStyle | null;
16
- arcCenterValue: ArcCenterValue;
17
- }
18
- /**
19
- * @hidden
20
- */
21
- export interface ArcCenterProps {
22
- render?: (value: number, color: string) => React.ReactNode;
23
- }
24
- /**
25
- * @hidden
26
- */
27
- declare class ArcCenter extends React.Component<ArcCenterProps, ArcCenterState> {
28
- static contextType: React.Context<import("./GaugeContext").GaugeContextType | null>;
29
- readonly state: ArcCenterState;
30
- gaugeObserver: InstanceObserver;
31
- protected _element: HTMLDivElement | null;
32
- constructor(props: ArcCenterProps, context: any);
33
- render(): any;
34
- onRender(e: any): void;
35
- }
36
- export { ArcCenter };
@@ -1,76 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import * as React from 'react';
17
- import { InstanceObserver } from '@progress/kendo-charts';
18
- import { GaugeContext } from './GaugeContext';
19
- /**
20
- * @hidden
21
- */
22
- var ArcCenter = /** @class */ (function (_super) {
23
- __extends(ArcCenter, _super);
24
- function ArcCenter(props, context) {
25
- var _this = _super.call(this, props, context) || this;
26
- _this.state = {
27
- arcCenterStyles: null,
28
- arcCenterValue: {
29
- value: 0,
30
- color: ''
31
- }
32
- };
33
- _this._element = null;
34
- _this.gaugeObserver = new InstanceObserver(_this, {
35
- render: 'onRender'
36
- });
37
- context.observersStore.dispatch({
38
- type: 'add',
39
- payload: _this.gaugeObserver
40
- });
41
- return _this;
42
- }
43
- ArcCenter.prototype.render = function () {
44
- var _this = this;
45
- var render = this.props.render;
46
- var _a = this.state, arcCenterStyles = _a.arcCenterStyles, arcCenterValue = _a.arcCenterValue;
47
- var divStyle = arcCenterStyles ? arcCenterStyles : { zIndex: -1 };
48
- var renderer = null;
49
- if (render) {
50
- renderer = (React.createElement("div", { className: "k-arcgauge-label", ref: function (element) { return _this._element = element; }, style: divStyle }, render(arcCenterValue.value, arcCenterValue.color)));
51
- }
52
- return renderer;
53
- };
54
- ArcCenter.prototype.onRender = function (e) {
55
- if (!this._element) {
56
- return;
57
- }
58
- var gaugeInstance = e.sender.gaugeInstance;
59
- var width = this._element.offsetWidth;
60
- var height = this._element.offsetHeight;
61
- var position = gaugeInstance.centerLabelPosition(width, height);
62
- this.setState({
63
- arcCenterStyles: {
64
- left: position.left,
65
- top: position.top
66
- },
67
- arcCenterValue: {
68
- value: gaugeInstance.value(),
69
- color: gaugeInstance.currentColor()
70
- }
71
- });
72
- };
73
- ArcCenter.contextType = GaugeContext;
74
- return ArcCenter;
75
- }(React.Component));
76
- export { ArcCenter };
@@ -1,33 +0,0 @@
1
- import * as React from 'react';
2
- import { ArcGaugeProps } from './ArcGaugeProps';
3
- import { Surface } from '@progress/kendo-drawing';
4
- import { Group } from '@progress/kendo-drawing';
5
- export declare class ArcGauge extends React.Component<ArcGaugeProps, {}> {
6
- private _baseGauge;
7
- protected gaugeType: any;
8
- /**
9
- * @hidden
10
- */
11
- get gaugeInstance(): any;
12
- /**
13
- * The Drawing `Surface` of the Gauge.
14
- */
15
- get surface(): Surface | null;
16
- /**
17
- * The DOM element of the Gauge.
18
- */
19
- get element(): HTMLDivElement | null;
20
- /**
21
- * @hidden
22
- */
23
- render(): any;
24
- /**
25
- * Exports a Gauge component as a Drawing `Scene`.
26
- *
27
- * @param {any} options - The parameters for the export operation.
28
- * @returns {Promise<Group>} - A promise that returns the root `Group` of the scene.
29
- */
30
- exportVisual(options?: any): Promise<Group>;
31
- private getTarget;
32
- private deriveOptionsFromParent;
33
- }
@@ -1,128 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __assign = (this && this.__assign) || function () {
17
- __assign = Object.assign || function(t) {
18
- for (var s, i = 1, n = arguments.length; i < n; i++) {
19
- s = arguments[i];
20
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
- t[p] = s[p];
22
- }
23
- return t;
24
- };
25
- return __assign.apply(this, arguments);
26
- };
27
- var __rest = (this && this.__rest) || function (s, e) {
28
- var t = {};
29
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
30
- t[p] = s[p];
31
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
32
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
34
- t[p[i]] = s[p[i]];
35
- }
36
- return t;
37
- };
38
- import * as React from 'react';
39
- import { BaseGauge } from './BaseGauge';
40
- import { ArcGauge as KendoArcGauge } from '@progress/kendo-charts';
41
- import { ArcCenter } from './ArcCenter';
42
- import { Group, drawDOM } from '@progress/kendo-drawing';
43
- import { classNames } from '@progress/kendo-react-common';
44
- var ArcGauge = /** @class */ (function (_super) {
45
- __extends(ArcGauge, _super);
46
- function ArcGauge() {
47
- var _this = _super !== null && _super.apply(this, arguments) || this;
48
- _this._baseGauge = null;
49
- _this.gaugeType = KendoArcGauge;
50
- _this.getTarget = function () {
51
- return _this;
52
- };
53
- _this.deriveOptionsFromParent = function (options) {
54
- var _a = _this.props, value = _a.value, color = _a.color, colors = _a.colors, opacity = _a.opacity, scale = _a.scale;
55
- return Object.assign({}, options, {
56
- value: value,
57
- color: color,
58
- colors: colors,
59
- opacity: opacity,
60
- scale: scale
61
- });
62
- };
63
- return _this;
64
- }
65
- Object.defineProperty(ArcGauge.prototype, "gaugeInstance", {
66
- /**
67
- * @hidden
68
- */
69
- get: function () {
70
- if (this._baseGauge) {
71
- return this._baseGauge.gaugeInstance;
72
- }
73
- return null;
74
- },
75
- enumerable: false,
76
- configurable: true
77
- });
78
- Object.defineProperty(ArcGauge.prototype, "surface", {
79
- /**
80
- * The Drawing `Surface` of the Gauge.
81
- */
82
- get: function () {
83
- if (this._baseGauge) {
84
- return this._baseGauge.surface;
85
- }
86
- return null;
87
- },
88
- enumerable: false,
89
- configurable: true
90
- });
91
- Object.defineProperty(ArcGauge.prototype, "element", {
92
- /**
93
- * The DOM element of the Gauge.
94
- */
95
- get: function () {
96
- if (this._baseGauge) {
97
- return this._baseGauge.element;
98
- }
99
- return null;
100
- },
101
- enumerable: false,
102
- configurable: true
103
- });
104
- /**
105
- * @hidden
106
- */
107
- ArcGauge.prototype.render = function () {
108
- var _this = this;
109
- var _a = this.props, children = _a.children, arcCenterRender = _a.arcCenterRender, centerRender = _a.centerRender, className = _a.className, baseGaugeProps = __rest(_a, ["children", "arcCenterRender", "centerRender", "className"]);
110
- return (React.createElement(BaseGauge, __assign({}, baseGaugeProps, { deriveOptionsFromParent: this.deriveOptionsFromParent, ref: function (baseGauge) { return _this._baseGauge = baseGauge; }, gaugeConstructor: this.gaugeType, getTarget: this.getTarget, className: classNames('k-gauge k-arcgauge', className) }),
111
- children,
112
- React.createElement(ArcCenter, { render: centerRender || arcCenterRender })));
113
- };
114
- /**
115
- * Exports a Gauge component as a Drawing `Scene`.
116
- *
117
- * @param {any} options - The parameters for the export operation.
118
- * @returns {Promise<Group>} - A promise that returns the root `Group` of the scene.
119
- */
120
- ArcGauge.prototype.exportVisual = function (options) {
121
- if (this.gaugeInstance !== null && this.element) {
122
- return drawDOM(this.element, options);
123
- }
124
- return Promise.resolve(new Group());
125
- };
126
- return ArcGauge;
127
- }(React.Component));
128
- export { ArcGauge };
@@ -1 +0,0 @@
1
- export {};
@@ -1,89 +0,0 @@
1
- import * as React from 'react';
2
- import * as PropTypes from 'prop-types';
3
- import { Surface } from '@progress/kendo-drawing';
4
- import { BaseGaugePrivateProps } from './BaseGaugeProps';
5
- import { GaugeContextType } from './GaugeContext';
6
- /**
7
- * @hidden
8
- */
9
- export declare class BaseGauge extends React.Component<BaseGaugePrivateProps, {}> {
10
- /**
11
- * @hidden
12
- */
13
- static propTypes: {
14
- dir: PropTypes.Requireable<string>;
15
- renderAs: PropTypes.Requireable<string>;
16
- };
17
- /**
18
- * @hidden
19
- */
20
- static defaultProps: {
21
- renderAs: string;
22
- };
23
- /**
24
- * @hidden
25
- */
26
- gaugeInstance: any | null;
27
- /**
28
- * @hidden
29
- */
30
- surface: Surface | null;
31
- /**
32
- * @hidden
33
- */
34
- get element(): HTMLDivElement;
35
- protected _element: HTMLDivElement | null;
36
- protected themeStore: any;
37
- protected themeUnsubscriber: Function;
38
- protected contextValue: GaugeContextType;
39
- protected observersStore: any;
40
- constructor(props: BaseGaugePrivateProps);
41
- /**
42
- * @hidden
43
- */
44
- componentDidMount(): void;
45
- /**
46
- * @hidden
47
- */
48
- componentDidUpdate(prevProps: any): void;
49
- /**
50
- * @hidden
51
- */
52
- componentWillUnmount(): void;
53
- /**
54
- * @hidden
55
- */
56
- render(): any;
57
- /**
58
- * @hidden
59
- */
60
- instantiateCoreGauge(): void;
61
- /**
62
- * @hidden
63
- */
64
- refresh(): void;
65
- /**
66
- * @hidden
67
- */
68
- refreshValue(value: number): void;
69
- /**
70
- * @hidden
71
- */
72
- refreshAllValues(values: Array<number>): void;
73
- /**
74
- * @hidden
75
- */
76
- getDirection(dir?: string): boolean;
77
- /**
78
- * @hidden
79
- */
80
- getGaugeOptions(): any;
81
- /**
82
- * @hidden
83
- */
84
- trigger(name: string, e: any): void;
85
- /**
86
- * @hidden
87
- */
88
- onWindowResize: () => void;
89
- }