@progress/kendo-react-gauges 7.2.4-develop.2 → 7.2.4-develop.4

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 (71) hide show
  1. package/ArcCenter.js +8 -0
  2. package/ArcCenter.mjs +60 -0
  3. package/ArcGauge.js +8 -0
  4. package/ArcGauge.mjs +77 -0
  5. package/BaseGauge.js +8 -0
  6. package/BaseGauge.mjs +171 -0
  7. package/CircularGauge.js +8 -0
  8. package/CircularGauge.mjs +18 -0
  9. package/GaugeContext.js +8 -0
  10. package/GaugeContext.mjs +14 -0
  11. package/LinearGauge.js +8 -0
  12. package/LinearGauge.mjs +72 -0
  13. package/RadialGauge.js +8 -0
  14. package/RadialGauge.mjs +72 -0
  15. package/dist/cdn/js/kendo-react-gauges.js +8 -9
  16. package/index.d.mts +672 -5
  17. package/index.d.ts +672 -15
  18. package/index.js +8 -9
  19. package/index.mjs +15 -500
  20. package/package-metadata.js +8 -0
  21. package/package-metadata.mjs +19 -0
  22. package/package.json +3 -3
  23. package/store/reducer.js +8 -0
  24. package/store/reducer.mjs +58 -0
  25. package/store/store.js +8 -0
  26. package/store/store.mjs +20 -0
  27. package/theming/theme-service.js +12 -0
  28. package/theming/theme-service.mjs +49 -0
  29. package/utils/common.js +8 -0
  30. package/utils/common.mjs +29 -0
  31. package/ArcCenter.d.ts +0 -40
  32. package/ArcGauge.d.ts +0 -37
  33. package/ArcGaugeProps.d.ts +0 -43
  34. package/BaseGauge.d.ts +0 -93
  35. package/BaseGaugeProps.d.ts +0 -55
  36. package/CircularGauge.d.ts +0 -10
  37. package/CircularGaugeProps.d.ts +0 -21
  38. package/GaugeContext.d.ts +0 -16
  39. package/LinearGauge.d.ts +0 -36
  40. package/LinearGaugeProps.d.ts +0 -19
  41. package/RadialGauge.d.ts +0 -36
  42. package/RadialGaugeProps.d.ts +0 -19
  43. package/common/gauges.d.ts +0 -9
  44. package/package-metadata.d.ts +0 -9
  45. package/store/reducer.d.ts +0 -18
  46. package/store/store.d.ts +0 -30
  47. package/theming/theme-service.d.ts +0 -10
  48. package/types/arc-scale.interface.d.ts +0 -32
  49. package/types/border.interface.d.ts +0 -22
  50. package/types/cap.interface.d.ts +0 -17
  51. package/types/circular-scale.interface.d.ts +0 -14
  52. package/types/color-range.interface.d.ts +0 -25
  53. package/types/dash-type.interface.d.ts +0 -8
  54. package/types/gauge-area.interface.d.ts +0 -31
  55. package/types/labels.interface.d.ts +0 -51
  56. package/types/line-cap.d.ts +0 -8
  57. package/types/line.interface.d.ts +0 -26
  58. package/types/linear-pointer-shape.d.ts +0 -8
  59. package/types/linear-pointer.interface.d.ts +0 -40
  60. package/types/linear-scale.interface.d.ts +0 -30
  61. package/types/margin.interface.d.ts +0 -25
  62. package/types/padding.interface.d.ts +0 -25
  63. package/types/radial-label-position.d.ts +0 -8
  64. package/types/radial-labels.interface.d.ts +0 -12
  65. package/types/radial-pointer.interface.d.ts +0 -26
  66. package/types/radial-scale.interface.d.ts +0 -32
  67. package/types/range.interface.d.ts +0 -25
  68. package/types/scale.interface.d.ts +0 -51
  69. package/types/ticks.interface.d.ts +0 -25
  70. package/types.d.ts +0 -25
  71. package/utils/common.d.ts +0 -5
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import { canUseDOM as u } from "@progress/kendo-react-common";
10
+ const l = 1e3 / 60, f = (i) => {
11
+ let s, r, t = [];
12
+ const n = () => s, c = (e) => {
13
+ s = i(s, e), u && (window.clearTimeout(r), r = window.setTimeout(() => t.forEach((o) => o()), l));
14
+ }, a = (e) => (t.push(e), () => t = t.filter((o) => o !== e));
15
+ return c({}), { getState: n, dispatch: c, subscribe: a };
16
+ };
17
+ export {
18
+ l as THROTTLE_MS,
19
+ f as default
20
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@progress/kendo-charts"),s=`
9
+ <div class="k-var--gauge-pointer"></div>
10
+ <div class="k-var--gauge-track"></div>
11
+ <div class="k-var--normal-text-color"></div>
12
+ `;class i{constructor(t){this.store=t}setStyle(t,e){this.store.dispatch({type:"set",payload:{field:t,value:e}})}setColors(){this.mapColor("pointer.color","gauge-pointer"),this.mapColor("scale.rangePlaceholderColor","gauge-track"),this.mapColor("scale.labels.color","normal-text-color"),this.mapColor("scale.minorTicks.color","normal-text-color"),this.mapColor("scale.majorTicks.color","normal-text-color"),this.mapColor("scale.line.color","normal-text-color")}mapColor(t,e){this.setStyle(t,this.queryStyle(e).backgroundColor)}queryStyle(t){const e=this.element;return window.getComputedStyle(e.querySelector(`.k-var--${t}`))}}const c=(o,t,e)=>{const l=new i(o);if(typeof e=="undefined"){o.dispatch({type:"push",payload:a.chartBaseTheme()});return}const r=l.element=e.createElement("div");r.style.display="none",r.innerHTML=s,e.body.appendChild(r);try{o.dispatch({type:"push",payload:a.chartBaseTheme()}),l.setColors()}finally{e.body.removeChild(l.element),delete l.element,t()}};exports.loadTheme=c;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ import { chartBaseTheme as a } from "@progress/kendo-charts";
10
+ const s = `
11
+ <div class="k-var--gauge-pointer"></div>
12
+ <div class="k-var--gauge-track"></div>
13
+ <div class="k-var--normal-text-color"></div>
14
+ `;
15
+ class i {
16
+ constructor(o) {
17
+ this.store = o;
18
+ }
19
+ setStyle(o, e) {
20
+ this.store.dispatch({ type: "set", payload: { field: o, value: e } });
21
+ }
22
+ setColors() {
23
+ this.mapColor("pointer.color", "gauge-pointer"), this.mapColor("scale.rangePlaceholderColor", "gauge-track"), this.mapColor("scale.labels.color", "normal-text-color"), this.mapColor("scale.minorTicks.color", "normal-text-color"), this.mapColor("scale.majorTicks.color", "normal-text-color"), this.mapColor("scale.line.color", "normal-text-color");
24
+ }
25
+ mapColor(o, e) {
26
+ this.setStyle(o, this.queryStyle(e).backgroundColor);
27
+ }
28
+ queryStyle(o) {
29
+ const e = this.element;
30
+ return window.getComputedStyle(e.querySelector(`.k-var--${o}`));
31
+ }
32
+ }
33
+ const n = (t, o, e) => {
34
+ const l = new i(t);
35
+ if (typeof e == "undefined") {
36
+ t.dispatch({ type: "push", payload: a() });
37
+ return;
38
+ }
39
+ const r = l.element = e.createElement("div");
40
+ r.style.display = "none", r.innerHTML = s, e.body.appendChild(r);
41
+ try {
42
+ t.dispatch({ type: "push", payload: a() }), l.setColors();
43
+ } finally {
44
+ e.body.removeChild(l.element), delete l.element, o();
45
+ }
46
+ };
47
+ export {
48
+ n as loadTheme
49
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=e=>typeof e=="object",r=(e,n)=>{if(Object.keys(e).length!==Object.keys(n).length)return!0;for(let t in e)if(t!=="value"&&e.hasOwnProperty(t)){const s=e[t],f=n[t];if(u(s)&&u(f)?r(s,f):s!==f)return!0}return!1},c=(e,n)=>{if(!e||!n||(e=[].concat(e),n=[].concat(n),e.length!==n.length))return!0;for(let t=0;t<e.length;t++)if(r(e[t],n[t]))return!0;return!1};exports.isOptionsChanged=c;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use client";
9
+ const u = (e) => typeof e == "object", c = (e, f) => {
10
+ if (Object.keys(e).length !== Object.keys(f).length)
11
+ return !0;
12
+ for (let t in e)
13
+ if (t !== "value" && e.hasOwnProperty(t)) {
14
+ const n = e[t], s = f[t];
15
+ if (u(n) && u(s) ? c(n, s) : n !== s)
16
+ return !0;
17
+ }
18
+ return !1;
19
+ }, o = (e, f) => {
20
+ if (!e || !f || (e = [].concat(e), f = [].concat(f), e.length !== f.length))
21
+ return !0;
22
+ for (let t = 0; t < e.length; t++)
23
+ if (c(e[t], f[t]))
24
+ return !0;
25
+ return !1;
26
+ };
27
+ export {
28
+ o as isOptionsChanged
29
+ };
package/ArcCenter.d.ts DELETED
@@ -1,40 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { InstanceObserver } from '@progress/kendo-charts';
7
- export interface ArcCenterStyle {
8
- left: number;
9
- top: number;
10
- }
11
- export interface ArcCenterValue {
12
- value: number;
13
- color: string;
14
- }
15
- /**
16
- * @hidden
17
- */
18
- export interface ArcCenterState {
19
- arcCenterStyles: ArcCenterStyle | null;
20
- arcCenterValue: ArcCenterValue;
21
- }
22
- /**
23
- * @hidden
24
- */
25
- export interface ArcCenterProps {
26
- render?: (value: number, color: string) => React.ReactNode;
27
- }
28
- /**
29
- * @hidden
30
- */
31
- declare class ArcCenter extends React.Component<ArcCenterProps, ArcCenterState> {
32
- static contextType: React.Context<import("./GaugeContext").GaugeContextType | null>;
33
- readonly state: ArcCenterState;
34
- gaugeObserver: InstanceObserver;
35
- protected _element: HTMLDivElement | null;
36
- constructor(props: ArcCenterProps, context: any);
37
- render(): any;
38
- onRender(e: any): void;
39
- }
40
- export { ArcCenter };
package/ArcGauge.d.ts DELETED
@@ -1,37 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { ArcGaugeProps } from './ArcGaugeProps';
7
- import { Surface } from '@progress/kendo-drawing';
8
- import { Group } from '@progress/kendo-drawing';
9
- export declare class ArcGauge extends React.Component<ArcGaugeProps, {}> {
10
- private _baseGauge;
11
- protected gaugeType: any;
12
- /**
13
- * @hidden
14
- */
15
- get gaugeInstance(): any;
16
- /**
17
- * The Drawing `Surface` of the Gauge.
18
- */
19
- get surface(): Surface | null;
20
- /**
21
- * The DOM element of the Gauge.
22
- */
23
- get element(): HTMLDivElement | null;
24
- /**
25
- * @hidden
26
- */
27
- render(): any;
28
- /**
29
- * Exports a Gauge component as a Drawing `Scene`.
30
- *
31
- * @param {any} options - The parameters for the export operation.
32
- * @returns {Promise<Group>} - A promise that returns the root `Group` of the scene.
33
- */
34
- exportVisual(options?: any): Promise<Group>;
35
- private getTarget;
36
- private deriveOptionsFromParent;
37
- }
@@ -1,43 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseGaugeProps } from './BaseGaugeProps';
6
- import { ArcScale, ColorRange } from './types';
7
- /**
8
- * Represents the props of the [KendoReact ArcGauge component]({% slug overview_arcgauge_gauges %}).
9
- */
10
- export interface ArcGaugeProps extends BaseGaugeProps {
11
- /**
12
- * The value of the Gauge.
13
- */
14
- value: number;
15
- /**
16
- * The color of the value pointer. Accepts a valid CSS color string, including hex and rgb.
17
- */
18
- color?: string;
19
- /**
20
- * The color ranges of the value pointer
21
- * ([see example]({% slug colorranges_arcgauge %})).
22
- */
23
- colors?: ColorRange[];
24
- /**
25
- * The opacity of the value pointer.
26
- */
27
- opacity?: number;
28
- /**
29
- * The scale options of the ArcGauge.
30
- */
31
- scale?: ArcScale;
32
- /**
33
- * @hidden
34
- *
35
- * Alias for backwards compatbility.
36
- */
37
- arcCenterRender?: (value: number, color: string) => React.ReactElement<any>;
38
- /**
39
- *
40
- * A function that renders the center template of the Gauge.
41
- */
42
- centerRender?: (value: number, color: string) => React.ReactElement<any>;
43
- }
package/BaseGauge.d.ts DELETED
@@ -1,93 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import PropTypes from 'prop-types';
7
- import { Surface } from '@progress/kendo-drawing';
8
- import { BaseGaugePrivateProps } from './BaseGaugeProps';
9
- import { GaugeContextType } from './GaugeContext';
10
- /**
11
- * @hidden
12
- */
13
- export declare class BaseGauge extends React.Component<BaseGaugePrivateProps, {}> {
14
- /**
15
- * @hidden
16
- */
17
- static propTypes: {
18
- dir: PropTypes.Requireable<string>;
19
- renderAs: PropTypes.Requireable<string>;
20
- };
21
- /**
22
- * @hidden
23
- */
24
- static defaultProps: {
25
- renderAs: string;
26
- };
27
- /**
28
- * @hidden
29
- */
30
- gaugeInstance: any | null;
31
- /**
32
- * @hidden
33
- */
34
- surface: Surface | null;
35
- /**
36
- * @hidden
37
- */
38
- get element(): HTMLDivElement;
39
- protected _element: HTMLDivElement | null;
40
- protected themeStore: any;
41
- protected themeUnsubscriber: Function;
42
- protected contextValue: GaugeContextType;
43
- protected observersStore: any;
44
- constructor(props: BaseGaugePrivateProps);
45
- /**
46
- * @hidden
47
- */
48
- componentDidMount(): void;
49
- /**
50
- * @hidden
51
- */
52
- componentDidUpdate(prevProps: any): void;
53
- /**
54
- * @hidden
55
- */
56
- componentWillUnmount(): void;
57
- /**
58
- * @hidden
59
- */
60
- render(): any;
61
- /**
62
- * @hidden
63
- */
64
- instantiateCoreGauge(): void;
65
- /**
66
- * @hidden
67
- */
68
- refresh(): void;
69
- /**
70
- * @hidden
71
- */
72
- refreshValue(value: number): void;
73
- /**
74
- * @hidden
75
- */
76
- refreshAllValues(values: Array<number>): void;
77
- /**
78
- * @hidden
79
- */
80
- getDirection(dir?: string): boolean;
81
- /**
82
- * @hidden
83
- */
84
- getGaugeOptions(): any;
85
- /**
86
- * @hidden
87
- */
88
- trigger(name: string, e: any): void;
89
- /**
90
- * @hidden
91
- */
92
- onWindowResize: () => void;
93
- }
@@ -1,55 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Gauges } from './common/gauges';
6
- /**
7
- * @hidden
8
- */
9
- export interface BaseGaugePrivateProps extends BaseGaugeProps {
10
- /**
11
- * @hidden
12
- */
13
- deriveOptionsFromParent?: (options: any) => any;
14
- /**
15
- * @hidden
16
- */
17
- gaugeConstructor: any;
18
- /**
19
- * @hidden
20
- */
21
- getTarget: () => Gauges;
22
- }
23
- /**
24
- * @hidden
25
- */
26
- export interface BaseGaugeProps {
27
- /**
28
- * Determines the children nodes.
29
- */
30
- children?: React.ReactNode;
31
- /**
32
- * Represents the `dir` HTML attribute.
33
- */
34
- dir?: string;
35
- /**
36
- * The styles that are applied to the component.
37
- */
38
- style?: React.CSSProperties;
39
- /**
40
- * Sets additional CSS classes to the component.
41
- */
42
- className?: string;
43
- /**
44
- * Sets the preferred rendering engine. If not supported by the browser, the Gauge switches to the first available mode.
45
- *
46
- * The supported values are:
47
- * - `"svg"`&mdash;If available, renders the component as an inline `.svg` file.
48
- * - `"canvas"`&mdash;If available, renders the component as a `canvas` element.
49
- */
50
- renderAs?: 'svg' | 'canvas';
51
- /**
52
- * If set to `true`, the Gauge plays animations when it displays the series. By default, animations are enabled.
53
- */
54
- transitions?: boolean;
55
- }
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { CircularGaugeProps } from './CircularGaugeProps';
7
- import { ArcGauge } from './ArcGauge';
8
- export declare class CircularGauge extends ArcGauge implements React.Component<CircularGaugeProps, {}> {
9
- protected gaugeType: any;
10
- }
@@ -1,21 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ArcGaugeProps } from './ArcGaugeProps';
6
- import { CircularScale } from './types/circular-scale.interface';
7
- import { ColorRange } from './types/color-range.interface';
8
- /**
9
- * Represents the props of the [KendoReact CircularGauge component]({% slug overview_circulargauge_gauges %}).
10
- */
11
- export interface CircularGaugeProps extends ArcGaugeProps {
12
- /**
13
- * The color ranges of the value pointer
14
- * ([see example]({% slug colorranges_circulargauge %})).
15
- */
16
- colors?: ColorRange[];
17
- /**
18
- * The scale options of the CircularGauge.
19
- */
20
- scale?: CircularScale;
21
- }
package/GaugeContext.d.ts DELETED
@@ -1,16 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { Store } from './store/store';
7
- /**
8
- * @hidden
9
- */
10
- export interface GaugeContextType {
11
- observersStore: Store;
12
- }
13
- /**
14
- * @hidden
15
- */
16
- export declare const GaugeContext: React.Context<GaugeContextType | null>;
package/LinearGauge.d.ts DELETED
@@ -1,36 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { LinearGaugeProps } from './LinearGaugeProps';
7
- import { Surface } from '@progress/kendo-drawing';
8
- import { Group } from '@progress/kendo-drawing';
9
- export declare class LinearGauge extends React.Component<LinearGaugeProps, {}> {
10
- private _baseGauge;
11
- /**
12
- * @hidden
13
- */
14
- get gaugeInstance(): any;
15
- /**
16
- * The Drawing `Surface` of the Gauge.
17
- */
18
- get surface(): Surface | null;
19
- /**
20
- * The DOM element of the Gauge.
21
- */
22
- get element(): HTMLDivElement | null;
23
- /**
24
- * @hidden
25
- */
26
- render(): any;
27
- /**
28
- * Exports a Gauge component as a Drawing `Scene`.
29
- *
30
- * @param {any} options - The parameters for the export operation.
31
- * @returns {Promise<Group>} - A promise that returns the root `Group` of the scene.
32
- */
33
- exportVisual(options?: any): Promise<Group>;
34
- private getTarget;
35
- private deriveOptionsFromParent;
36
- }
@@ -1,19 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseGaugeProps } from './BaseGaugeProps';
6
- import { LinearPointer, LinearScale } from './types';
7
- /**
8
- * Represents the props of the [KendoReact LinearGauge component]({% slug overview_lineargauge_gauges %}).
9
- */
10
- export interface LinearGaugeProps extends BaseGaugeProps {
11
- /**
12
- * The configuration of the pointers ([see example]({% slug multiplepointers_lineargauge %})).
13
- */
14
- pointer: LinearPointer | LinearPointer[];
15
- /**
16
- * The configuration of the scale.
17
- */
18
- scale?: LinearScale;
19
- }
package/RadialGauge.d.ts DELETED
@@ -1,36 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { RadialGaugeProps } from './RadialGaugeProps';
7
- import { Surface } from '@progress/kendo-drawing';
8
- import { Group } from '@progress/kendo-drawing';
9
- export declare class RadialGauge extends React.Component<RadialGaugeProps, {}> {
10
- private _baseGauge;
11
- /**
12
- * @hidden
13
- */
14
- get gaugeInstance(): any;
15
- /**
16
- * The Drawing `Surface` of the Gauge.
17
- */
18
- get surface(): Surface | null;
19
- /**
20
- * The DOM element of the Gauge.
21
- */
22
- get element(): HTMLDivElement | null;
23
- /**
24
- * @hidden
25
- */
26
- render(): any;
27
- /**
28
- * Exports a Gauge component as a Drawing `Scene`.
29
- *
30
- * @param {any} options - The parameters for the export operation.
31
- * @returns {Promise<Group>} - A promise that returns the root `Group` of the scene.
32
- */
33
- exportVisual(options?: any): Promise<Group>;
34
- private getTarget;
35
- private deriveOptionsFromParent;
36
- }
@@ -1,19 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseGaugeProps } from './BaseGaugeProps';
6
- import { RadialPointer, RadialScale } from './types';
7
- /**
8
- * Represents the props of the [KendoReact RadialGauge component]({% slug overview_radialgauge_gauges %}).
9
- */
10
- export interface RadialGaugeProps extends BaseGaugeProps {
11
- /**
12
- * The configuration of the pointers ([see example]({% slug multiplepointers_radialgauge %})).
13
- */
14
- pointer: RadialPointer | RadialPointer[];
15
- /**
16
- * The configuration of the scale.
17
- */
18
- scale?: RadialScale;
19
- }
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ArcGauge } from './../ArcGauge';
6
- import { LinearGauge } from './../LinearGauge';
7
- import { RadialGauge } from './../RadialGauge';
8
- type Gauges = ArcGauge | LinearGauge | RadialGauge;
9
- export { Gauges };
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { StoreAction } from './store';
6
- /**
7
- * @hidden
8
- */
9
- declare const optionsReducer: (currentState: any, action: StoreAction) => object;
10
- /**
11
- * @hidden
12
- */
13
- declare const themeReducer: (currentState: any, action: StoreAction) => any;
14
- /**
15
- * @hidden
16
- */
17
- declare const observersReducer: (currentState: any, action: StoreAction) => any;
18
- export { optionsReducer, themeReducer, observersReducer };
package/store/store.d.ts DELETED
@@ -1,30 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const THROTTLE_MS: number;
9
- /**
10
- * @hidden
11
- */
12
- export interface StoreAction {
13
- gaugeKey?: string;
14
- gaugeCollectionIdxKey?: string;
15
- type?: string;
16
- payload: any;
17
- }
18
- /**
19
- * @hidden
20
- */
21
- export interface Store {
22
- getState(): any;
23
- dispatch(action: StoreAction | object): void;
24
- subscribe(f: Function): Function;
25
- }
26
- /**
27
- * @hidden
28
- */
29
- declare const createStore: (reducer: any) => Store;
30
- export default createStore;
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Store } from './../store/store';
6
- /**
7
- * @hidden
8
- */
9
- declare const loadTheme: (store: Store, done: any, doc: Document) => void;
10
- export { loadTheme };