@progress/kendo-react-gauges 13.3.0-develop.9 → 13.4.0-develop.1
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.
- package/ArcCenter.d.ts +58 -0
- package/ArcGauge.d.ts +39 -0
- package/ArcGaugeProps.d.ts +46 -0
- package/BaseGauge.d.ts +98 -0
- package/BaseGaugeProps.d.ts +58 -0
- package/CircularGauge.d.ts +13 -0
- package/CircularGaugeProps.d.ts +24 -0
- package/GaugeContext.d.ts +19 -0
- package/LinearGauge.d.ts +38 -0
- package/LinearGaugeProps.d.ts +32 -0
- package/RadialGauge.d.ts +38 -0
- package/RadialGaugeProps.d.ts +32 -0
- package/common/gauges.d.ts +12 -0
- package/dist/cdn/js/kendo-react-gauges.js +1 -1
- package/index.d.mts +11 -685
- package/index.d.ts +11 -685
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +4 -4
- package/store/reducer.d.ts +21 -0
- package/store/store.d.ts +32 -0
- package/types/arc-scale.interface.d.ts +35 -0
- package/types/border.interface.d.ts +25 -0
- package/types/cap.interface.d.ts +20 -0
- package/types/circular-scale.interface.d.ts +17 -0
- package/types/color-range.interface.d.ts +28 -0
- package/types/dash-type.interface.d.ts +11 -0
- package/types/gauge-area.interface.d.ts +34 -0
- package/types/labels.interface.d.ts +54 -0
- package/types/line-cap.d.ts +11 -0
- package/types/line.interface.d.ts +29 -0
- package/types/linear-pointer-shape.d.ts +11 -0
- package/types/linear-pointer.interface.d.ts +43 -0
- package/types/linear-scale.interface.d.ts +33 -0
- package/types/margin.interface.d.ts +28 -0
- package/types/padding.interface.d.ts +28 -0
- package/types/radial-label-position.d.ts +11 -0
- package/types/radial-labels.interface.d.ts +15 -0
- package/types/radial-pointer.interface.d.ts +29 -0
- package/types/radial-scale.interface.d.ts +35 -0
- package/types/range.interface.d.ts +28 -0
- package/types/scale.interface.d.ts +54 -0
- package/types/ticks.interface.d.ts +28 -0
- package/types.d.ts +28 -0
- package/utils/common.d.ts +8 -0
- package/utils/css-variables.d.ts +72 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Labels } from './labels.interface.js';
|
|
9
|
+
import { Ticks } from './ticks.interface.js';
|
|
10
|
+
/**
|
|
11
|
+
* The scale options of the Gauge.
|
|
12
|
+
*/
|
|
13
|
+
export interface Scale {
|
|
14
|
+
/**
|
|
15
|
+
* Configures the scale labels.
|
|
16
|
+
*/
|
|
17
|
+
labels?: Labels;
|
|
18
|
+
/**
|
|
19
|
+
* Configures the major scale ticks.
|
|
20
|
+
*/
|
|
21
|
+
majorTicks?: Ticks;
|
|
22
|
+
/**
|
|
23
|
+
* Configures the minor scale ticks.
|
|
24
|
+
*/
|
|
25
|
+
minorTicks?: Ticks;
|
|
26
|
+
/**
|
|
27
|
+
* The minimum value of the scale.
|
|
28
|
+
*/
|
|
29
|
+
min?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The maximum value of the scale.
|
|
32
|
+
*/
|
|
33
|
+
max?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The interval between minor divisions.
|
|
36
|
+
*/
|
|
37
|
+
minorUnit?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The interval between major divisions.
|
|
40
|
+
*/
|
|
41
|
+
majorUnit?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Reverses the scale direction.
|
|
44
|
+
*/
|
|
45
|
+
reverse?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The width of the range indicators.
|
|
48
|
+
*/
|
|
49
|
+
rangeSize?: number;
|
|
50
|
+
/**
|
|
51
|
+
* The default color of the ranges.
|
|
52
|
+
*/
|
|
53
|
+
rangePlaceholderColor?: string;
|
|
54
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The options for the scale ticks.
|
|
10
|
+
*/
|
|
11
|
+
export interface Ticks {
|
|
12
|
+
/**
|
|
13
|
+
* The color of the ticks. Accepts a valid CSS color string, including hex and rgb.
|
|
14
|
+
*/
|
|
15
|
+
color?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The size of the ticks. Represents the length of the line (in pixels) that is drawn to indicate the tick on the scale.
|
|
18
|
+
*/
|
|
19
|
+
size?: number;
|
|
20
|
+
/**
|
|
21
|
+
* The visibility of the ticks.
|
|
22
|
+
*/
|
|
23
|
+
visible?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The ticks width (in pixels).
|
|
26
|
+
*/
|
|
27
|
+
width?: number;
|
|
28
|
+
}
|
package/types.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
export type { ArcScale } from './types/arc-scale.interface.js';
|
|
9
|
+
export type { ColorRange } from './types/color-range.interface.js';
|
|
10
|
+
export type { Scale } from './types/scale.interface.js';
|
|
11
|
+
export type { LineCap } from './types/line-cap.js';
|
|
12
|
+
export type { RadialLabelPosition } from './types/radial-label-position.js';
|
|
13
|
+
export type { RadialLabels } from './types/radial-labels.interface.js';
|
|
14
|
+
export type { Labels } from './types/labels.interface.js';
|
|
15
|
+
export type { Margin } from './types/margin.interface.js';
|
|
16
|
+
export type { Padding } from './types/padding.interface.js';
|
|
17
|
+
export type { Border } from './types/border.interface.js';
|
|
18
|
+
export type { Ticks } from './types/ticks.interface.js';
|
|
19
|
+
export type { DashType } from './types/dash-type.interface.js';
|
|
20
|
+
export type { Cap } from './types/cap.interface.js';
|
|
21
|
+
export type { GaugeArea } from './types/gauge-area.interface.js';
|
|
22
|
+
export type { Line } from './types/line.interface.js';
|
|
23
|
+
export type { LinearPointer } from './types/linear-pointer.interface.js';
|
|
24
|
+
export type { LinearPointerShape } from './types/linear-pointer-shape.js';
|
|
25
|
+
export type { LinearScale } from './types/linear-scale.interface.js';
|
|
26
|
+
export type { RadialPointer } from './types/radial-pointer.interface.js';
|
|
27
|
+
export type { RadialScale } from './types/radial-scale.interface.js';
|
|
28
|
+
export type { Range } from './types/range.interface.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
export declare const isOptionsChanged: (original: any, current: any) => boolean;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Utility functions for resolving CSS custom properties (variables) in gauge colors
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Checks if a color string is a CSS custom property (variable)
|
|
13
|
+
*
|
|
14
|
+
* @param color - The color string to check
|
|
15
|
+
* @returns True if the color is a CSS variable, false otherwise
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export declare const isCssVariable: (color: string) => boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Resolves a CSS custom property to its computed value
|
|
21
|
+
*
|
|
22
|
+
* @param color - The CSS custom property to resolve
|
|
23
|
+
* @param element - The DOM element to use for context (defaults to document.documentElement)
|
|
24
|
+
* @returns The resolved color value or the original color if it can't be resolved
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare const resolveCssVariable: (color: string, element?: HTMLElement) => string;
|
|
28
|
+
/**
|
|
29
|
+
* Resolves CSS custom properties in a ColorRange object
|
|
30
|
+
*
|
|
31
|
+
* @param colorRange - The ColorRange object that may contain CSS variables
|
|
32
|
+
* @param element - The DOM element to use for context
|
|
33
|
+
* @returns A new ColorRange object with resolved colors
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
export declare const resolveColorRangeVariables: (colorRange: any, element?: HTMLElement) => any;
|
|
37
|
+
/**
|
|
38
|
+
* Resolves CSS custom properties in an array of ColorRange objects
|
|
39
|
+
*
|
|
40
|
+
* @param colors - Array of ColorRange objects that may contain CSS variables
|
|
41
|
+
* @param element - The DOM element to use for context
|
|
42
|
+
* @returns A new array with resolved colors
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
export declare const resolveColorsArray: (colors: any[], element?: HTMLElement) => any[];
|
|
46
|
+
/**
|
|
47
|
+
* Resolves CSS custom properties in a pointer object (LinearPointer or RadialPointer)
|
|
48
|
+
*
|
|
49
|
+
* @param pointer - The pointer object that may contain CSS variables
|
|
50
|
+
* @param element - The DOM element to use for context
|
|
51
|
+
* @returns A new pointer object with resolved colors
|
|
52
|
+
* @hidden
|
|
53
|
+
*/
|
|
54
|
+
export declare const resolvePointerVariables: (pointer: any, element?: HTMLElement) => any;
|
|
55
|
+
/**
|
|
56
|
+
* Resolves CSS custom properties in pointer configuration (single pointer or array of pointers)
|
|
57
|
+
*
|
|
58
|
+
* @param pointer - The pointer configuration that may contain CSS variables
|
|
59
|
+
* @param element - The DOM element to use for context
|
|
60
|
+
* @returns A new pointer configuration with resolved colors
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare const resolvePointerColorsVariables: (pointer: any, element?: HTMLElement) => any;
|
|
64
|
+
/**
|
|
65
|
+
* Resolves CSS custom properties in gauge options
|
|
66
|
+
*
|
|
67
|
+
* @param options - The gauge options object that may contain CSS variables in colors
|
|
68
|
+
* @param element - The DOM element to use for context
|
|
69
|
+
* @returns A new options object with resolved colors
|
|
70
|
+
* @hidden
|
|
71
|
+
*/
|
|
72
|
+
export declare const resolveGaugeColorsVariables: (options: any, element?: HTMLElement) => any;
|