@progress/kendo-vue-gauges 11.0.0-develop.1 → 11.0.1-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/ArcGauge.d.ts +34 -1
- package/ArcGauge.mjs +28 -0
- package/ArcGaugeProps.d.ts +37 -8
- package/BaseGaugeProps.d.ts +21 -4
- package/CircularGauge.d.ts +6 -1
- package/CircularGaugeProps.d.ts +14 -4
- package/LinearGauge.d.ts +31 -1
- package/LinearGauge.mjs +25 -0
- package/LinearGaugeProps.d.ts +13 -3
- package/NOTICE.txt +17 -17
- package/RadialGauge.d.ts +31 -1
- package/RadialGauge.mjs +25 -0
- package/RadialGaugeProps.d.ts +13 -3
- package/dist/cdn/js/kendo-vue-gauges.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +5 -5
- package/types/labels.interface.d.ts +1 -1
- package/types/linear-scale.interface.d.ts +1 -1
package/ArcGauge.d.ts
CHANGED
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
import { Surface, Group } from '@progress/kendo-drawing';
|
|
9
9
|
import { PropType } from 'vue';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the [KendoVue ArcGauge component](slug:overview_arcgauge_gauges).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```vue
|
|
15
|
+
* <ArcGauge :value="40" />
|
|
16
|
+
* ```
|
|
12
17
|
*/
|
|
13
18
|
declare const ArcGauge: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
19
|
dir: PropType<string>;
|
|
@@ -50,12 +55,40 @@ declare const ArcGauge: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
50
55
|
color: string;
|
|
51
56
|
};
|
|
52
57
|
}, {}, {
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
53
61
|
positionCenter(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the internal gauge instance of the ArcGauge.
|
|
64
|
+
* If the ArcGauge is not rendered yet, the method returns `null`.
|
|
65
|
+
*/
|
|
54
66
|
gaugeInstance(): any;
|
|
67
|
+
/**
|
|
68
|
+
* Returns the Drawing `Surface` of the ArcGauge.
|
|
69
|
+
* If the ArcGauge is not rendered yet, the method returns `null`.
|
|
70
|
+
*/
|
|
55
71
|
surface(): Surface | null;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the DOM element of the ArcGauge.
|
|
74
|
+
* If the ArcGauge is not rendered yet, the method returns `null`.
|
|
75
|
+
*/
|
|
56
76
|
element(): HTMLDivElement | null;
|
|
77
|
+
/**
|
|
78
|
+
* Exports the ArcGauge as a Drawing `Group`.
|
|
79
|
+
* Pass the result to the `exportImage`, `exportSVG`, or `exportPDF` methods of the Drawing library.
|
|
80
|
+
*
|
|
81
|
+
* @param options The export options that the method passes to the Drawing `drawDOM` function.
|
|
82
|
+
* @returns A `Promise` that resolves with the exported `Group`.
|
|
83
|
+
*/
|
|
57
84
|
exportVisual(options?: any): Promise<Group>;
|
|
85
|
+
/**
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
58
88
|
getTarget(): any;
|
|
89
|
+
/**
|
|
90
|
+
* @hidden
|
|
91
|
+
*/
|
|
59
92
|
deriveOptionsFromParent(options: any): any;
|
|
60
93
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
61
94
|
dir: PropType<string>;
|
package/ArcGauge.mjs
CHANGED
|
@@ -108,25 +108,53 @@ const $ = /* @__PURE__ */ l({
|
|
|
108
108
|
});
|
|
109
109
|
},
|
|
110
110
|
methods: {
|
|
111
|
+
/**
|
|
112
|
+
* @hidden
|
|
113
|
+
*/
|
|
111
114
|
positionCenter() {
|
|
112
115
|
const e = this.center.$el.offsetWidth, t = this.center.$el.offsetHeight, r = this.gaugeInstance(), n = r.centerLabelPosition(e, t);
|
|
113
116
|
this.centerStyles.left = n.left + "px", this.centerStyles.top = n.top + "px", this.arcCenterValue.value = r.value(), this.arcCenterValue.color = r.currentColor();
|
|
114
117
|
},
|
|
118
|
+
/**
|
|
119
|
+
* Returns the internal gauge instance of the ArcGauge.
|
|
120
|
+
* If the ArcGauge is not rendered yet, the method returns `null`.
|
|
121
|
+
*/
|
|
115
122
|
gaugeInstance() {
|
|
116
123
|
return this._baseGauge ? this._baseGauge.gaugeInstance : null;
|
|
117
124
|
},
|
|
125
|
+
/**
|
|
126
|
+
* Returns the Drawing `Surface` of the ArcGauge.
|
|
127
|
+
* If the ArcGauge is not rendered yet, the method returns `null`.
|
|
128
|
+
*/
|
|
118
129
|
surface() {
|
|
119
130
|
return this._baseGauge ? this._baseGauge.surface : null;
|
|
120
131
|
},
|
|
132
|
+
/**
|
|
133
|
+
* Returns the DOM element of the ArcGauge.
|
|
134
|
+
* If the ArcGauge is not rendered yet, the method returns `null`.
|
|
135
|
+
*/
|
|
121
136
|
element() {
|
|
122
137
|
return this._baseGauge ? this._baseGauge.element : null;
|
|
123
138
|
},
|
|
139
|
+
/**
|
|
140
|
+
* Exports the ArcGauge as a Drawing `Group`.
|
|
141
|
+
* Pass the result to the `exportImage`, `exportSVG`, or `exportPDF` methods of the Drawing library.
|
|
142
|
+
*
|
|
143
|
+
* @param options The export options that the method passes to the Drawing `drawDOM` function.
|
|
144
|
+
* @returns A `Promise` that resolves with the exported `Group`.
|
|
145
|
+
*/
|
|
124
146
|
exportVisual(e) {
|
|
125
147
|
return this.gaugeInstance !== null && this.$el ? d(this.$el, e) : Promise.resolve(new f());
|
|
126
148
|
},
|
|
149
|
+
/**
|
|
150
|
+
* @hidden
|
|
151
|
+
*/
|
|
127
152
|
getTarget() {
|
|
128
153
|
return this;
|
|
129
154
|
},
|
|
155
|
+
/**
|
|
156
|
+
* @hidden
|
|
157
|
+
*/
|
|
130
158
|
deriveOptionsFromParent(e) {
|
|
131
159
|
const {
|
|
132
160
|
value: t,
|
package/ArcGaugeProps.d.ts
CHANGED
|
@@ -8,33 +8,62 @@
|
|
|
8
8
|
import { BaseGaugeProps } from './BaseGaugeProps';
|
|
9
9
|
import { ArcScale, ColorRange } from './types';
|
|
10
10
|
/**
|
|
11
|
-
* Represents the props of the [Kendo UI for Vue ArcGauge component](
|
|
11
|
+
* Represents the props of the [Kendo UI for Vue ArcGauge component](slug:overview_arcgauge_gauges).
|
|
12
12
|
*/
|
|
13
13
|
export interface ArcGaugeProps extends BaseGaugeProps {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets the value of the Gauge.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```vue
|
|
19
|
+
* <ArcGauge :value="65" />
|
|
20
|
+
* ```
|
|
16
21
|
*/
|
|
17
22
|
value: number;
|
|
18
23
|
/**
|
|
19
|
-
*
|
|
24
|
+
* Sets the color of the value pointer. Accepts a valid CSS color string, including hex and rgb.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```vue
|
|
28
|
+
* <ArcGauge :value="65" :color="'#28b4c8'" />
|
|
29
|
+
* ```
|
|
20
30
|
*/
|
|
21
31
|
color?: string;
|
|
22
32
|
/**
|
|
23
|
-
*
|
|
24
|
-
* ([see example](
|
|
33
|
+
* Sets the color ranges of the value pointer
|
|
34
|
+
* ([see example](slug:colorranges_arcgauge)).
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```vue
|
|
38
|
+
* <ArcGauge :value="65" :colors="[{ to: 50, color: 'green' }, { from: 50, color: 'red' }]" />
|
|
39
|
+
* ```
|
|
25
40
|
*/
|
|
26
41
|
colors?: ColorRange[];
|
|
27
42
|
/**
|
|
28
|
-
*
|
|
43
|
+
* Sets the opacity of the value pointer.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```vue
|
|
47
|
+
* <ArcGauge :value="65" :opacity="0.7" />
|
|
48
|
+
* ```
|
|
29
49
|
*/
|
|
30
50
|
opacity?: number;
|
|
31
51
|
/**
|
|
32
|
-
*
|
|
52
|
+
* Sets the scale options of the ArcGauge.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```vue
|
|
56
|
+
* <ArcGauge :value="65" :scale="{ min: 0, max: 200 }" />
|
|
57
|
+
* ```
|
|
33
58
|
*/
|
|
34
59
|
scale?: ArcScale;
|
|
35
60
|
/**
|
|
61
|
+
* Sets a template that renders the center of the Gauge.
|
|
36
62
|
*
|
|
37
|
-
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```vue
|
|
65
|
+
* <ArcGauge :value="65" :center-render="'centerTemplate'" />
|
|
66
|
+
* ```
|
|
38
67
|
*/
|
|
39
68
|
centerRender?: any;
|
|
40
69
|
}
|
package/BaseGaugeProps.d.ts
CHANGED
|
@@ -27,7 +27,12 @@ export interface BaseGaugePrivateProps {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface BaseGaugeProps extends BaseGaugePrivateProps {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Sets the `dir` HTML attribute of the Gauge.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```vue
|
|
34
|
+
* <RadialGauge :pointer="{ value: 40 }" :dir="'rtl'" />
|
|
35
|
+
* ```
|
|
31
36
|
*/
|
|
32
37
|
dir?: string;
|
|
33
38
|
value?: number;
|
|
@@ -37,19 +42,31 @@ export interface BaseGaugeProps extends BaseGaugePrivateProps {
|
|
|
37
42
|
colors?: any[];
|
|
38
43
|
opacity?: any;
|
|
39
44
|
/**
|
|
40
|
-
* Sets the preferred rendering engine. If
|
|
45
|
+
* Sets the preferred rendering engine. If the browser does not support it, the Gauge switches to the first available mode.
|
|
41
46
|
*
|
|
42
47
|
* The supported values are:
|
|
43
48
|
* - `"svg"`—If available, renders the component as an inline `.svg` file.
|
|
44
49
|
* - `"canvas"`—If available, renders the component as a `canvas` element.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```vue
|
|
53
|
+
* <RadialGauge :pointer="{ value: 40 }" :render-as="'canvas'" />
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @default 'svg'
|
|
45
57
|
*/
|
|
46
58
|
renderAs?: 'svg' | 'canvas' | string;
|
|
47
59
|
/**
|
|
48
|
-
*
|
|
60
|
+
* When set to `true`, the Gauge plays animations when it shows the series. By default, the Gauge plays animations.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```vue
|
|
64
|
+
* <RadialGauge :pointer="{ value: 40 }" :transitions="false" />
|
|
65
|
+
* ```
|
|
49
66
|
*/
|
|
50
67
|
transitions?: boolean;
|
|
51
68
|
/**
|
|
52
|
-
*
|
|
69
|
+
* Fires when the Gauge renders.
|
|
53
70
|
*/
|
|
54
71
|
onRender?: (event: any) => void;
|
|
55
72
|
}
|
package/CircularGauge.d.ts
CHANGED
|
@@ -6,7 +6,12 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Represents the [KendoVue CircularGauge component](slug:overview_circulargauge_gauges).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```vue
|
|
13
|
+
* <CircularGauge :value="40" />
|
|
14
|
+
* ```
|
|
10
15
|
*/
|
|
11
16
|
declare const CircularGauge: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
17
|
dir: import('vue').PropType<string>;
|
package/CircularGaugeProps.d.ts
CHANGED
|
@@ -9,16 +9,26 @@ import { ArcGaugeProps } from './ArcGaugeProps';
|
|
|
9
9
|
import { CircularScale } from './types/circular-scale.interface';
|
|
10
10
|
import { ColorRange } from './types/color-range.interface';
|
|
11
11
|
/**
|
|
12
|
-
* Represents the props of the [Kendo UI for Vue CircularGauge component](
|
|
12
|
+
* Represents the props of the [Kendo UI for Vue CircularGauge component](slug:overview_circulargauge_gauges).
|
|
13
13
|
*/
|
|
14
14
|
export interface CircularGaugeProps extends ArcGaugeProps {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* ([see example](
|
|
16
|
+
* Sets the color ranges of the value pointer
|
|
17
|
+
* ([see example](slug:colorranges_circulargauge)).
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```vue
|
|
21
|
+
* <CircularGauge :value="65" :colors="[{ to: 50, color: 'green' }, { from: 50, color: 'red' }]" />
|
|
22
|
+
* ```
|
|
18
23
|
*/
|
|
19
24
|
colors?: ColorRange[];
|
|
20
25
|
/**
|
|
21
|
-
*
|
|
26
|
+
* Sets the scale options of the CircularGauge.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```vue
|
|
30
|
+
* <CircularGauge :value="65" :scale="{ min: 0, max: 200 }" />
|
|
31
|
+
* ```
|
|
22
32
|
*/
|
|
23
33
|
scale?: CircularScale;
|
|
24
34
|
}
|
package/LinearGauge.d.ts
CHANGED
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
import { Surface, Group } from '@progress/kendo-drawing';
|
|
9
9
|
import { PropType } from 'vue';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the [KendoVue LinearGauge component](slug:overview_lineargauge_gauges).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```vue
|
|
15
|
+
* <LinearGauge :pointer="{ value: 40 }" />
|
|
16
|
+
* ```
|
|
12
17
|
*/
|
|
13
18
|
declare const LinearGauge: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
19
|
dir: PropType<string>;
|
|
@@ -31,11 +36,36 @@ declare const LinearGauge: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
31
36
|
default: any;
|
|
32
37
|
};
|
|
33
38
|
}>, {}, {}, {}, {
|
|
39
|
+
/**
|
|
40
|
+
* Returns the internal gauge instance of the LinearGauge.
|
|
41
|
+
* If the LinearGauge is not rendered yet, the method returns `null`.
|
|
42
|
+
*/
|
|
34
43
|
gaugeInstance(): any;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the Drawing `Surface` of the LinearGauge.
|
|
46
|
+
* If the LinearGauge is not rendered yet, the method returns `null`.
|
|
47
|
+
*/
|
|
35
48
|
surface(): Surface | null;
|
|
49
|
+
/**
|
|
50
|
+
* Returns the DOM element of the LinearGauge.
|
|
51
|
+
* If the LinearGauge is not rendered yet, the method returns `null`.
|
|
52
|
+
*/
|
|
36
53
|
element(): HTMLDivElement | null;
|
|
54
|
+
/**
|
|
55
|
+
* Exports the LinearGauge as a Drawing `Group`.
|
|
56
|
+
* Pass the result to the `exportImage`, `exportSVG`, or `exportPDF` methods of the Drawing library.
|
|
57
|
+
*
|
|
58
|
+
* @param options The export options that the method passes to the gauge.
|
|
59
|
+
* @returns A `Promise` that resolves with the exported `Group`.
|
|
60
|
+
*/
|
|
37
61
|
exportVisual(options?: any): Promise<Group>;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
38
65
|
getTarget(): any;
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
39
69
|
deriveOptionsFromParent(options: any): any;
|
|
40
70
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
71
|
dir: PropType<string>;
|
package/LinearGauge.mjs
CHANGED
|
@@ -62,21 +62,46 @@ const m = /* @__PURE__ */ n({
|
|
|
62
62
|
});
|
|
63
63
|
},
|
|
64
64
|
methods: {
|
|
65
|
+
/**
|
|
66
|
+
* Returns the internal gauge instance of the LinearGauge.
|
|
67
|
+
* If the LinearGauge is not rendered yet, the method returns `null`.
|
|
68
|
+
*/
|
|
65
69
|
gaugeInstance() {
|
|
66
70
|
return this._baseGauge !== null ? this._baseGauge.gaugeInstance : null;
|
|
67
71
|
},
|
|
72
|
+
/**
|
|
73
|
+
* Returns the Drawing `Surface` of the LinearGauge.
|
|
74
|
+
* If the LinearGauge is not rendered yet, the method returns `null`.
|
|
75
|
+
*/
|
|
68
76
|
surface() {
|
|
69
77
|
return this._baseGauge !== null ? this._baseGauge.surface : null;
|
|
70
78
|
},
|
|
79
|
+
/**
|
|
80
|
+
* Returns the DOM element of the LinearGauge.
|
|
81
|
+
* If the LinearGauge is not rendered yet, the method returns `null`.
|
|
82
|
+
*/
|
|
71
83
|
element() {
|
|
72
84
|
return this._baseGauge !== null ? this._baseGauge.element : null;
|
|
73
85
|
},
|
|
86
|
+
/**
|
|
87
|
+
* Exports the LinearGauge as a Drawing `Group`.
|
|
88
|
+
* Pass the result to the `exportImage`, `exportSVG`, or `exportPDF` methods of the Drawing library.
|
|
89
|
+
*
|
|
90
|
+
* @param options The export options that the method passes to the gauge.
|
|
91
|
+
* @returns A `Promise` that resolves with the exported `Group`.
|
|
92
|
+
*/
|
|
74
93
|
exportVisual(e) {
|
|
75
94
|
return this.gaugeInstance() !== null ? Promise.resolve(this.gaugeInstance().exportVisual(e)) : Promise.resolve(new o());
|
|
76
95
|
},
|
|
96
|
+
/**
|
|
97
|
+
* @hidden
|
|
98
|
+
*/
|
|
77
99
|
getTarget() {
|
|
78
100
|
return this;
|
|
79
101
|
},
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
80
105
|
deriveOptionsFromParent(e) {
|
|
81
106
|
const {
|
|
82
107
|
pointer: t,
|
package/LinearGaugeProps.d.ts
CHANGED
|
@@ -8,15 +8,25 @@
|
|
|
8
8
|
import { BaseGaugeProps } from './BaseGaugeProps';
|
|
9
9
|
import { LinearPointer, LinearScale } from './types';
|
|
10
10
|
/**
|
|
11
|
-
* Represents the props of the [Kendo UI for Vue LinearGauge component](
|
|
11
|
+
* Represents the props of the [Kendo UI for Vue LinearGauge component](slug:overview_lineargauge_gauges).
|
|
12
12
|
*/
|
|
13
13
|
export interface LinearGaugeProps extends BaseGaugeProps {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets the configuration of the pointers ([see example](slug:multiplepointers_lineargauge)).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```vue
|
|
19
|
+
* <LinearGauge :pointer="{ value: 40, color: '#28b4c8' }" />
|
|
20
|
+
* ```
|
|
16
21
|
*/
|
|
17
22
|
pointer: LinearPointer | LinearPointer[];
|
|
18
23
|
/**
|
|
19
|
-
*
|
|
24
|
+
* Sets the configuration of the scale.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```vue
|
|
28
|
+
* <LinearGauge :pointer="{ value: 40 }" :scale="{ min: 0, max: 100, vertical: false }" />
|
|
29
|
+
* ```
|
|
20
30
|
*/
|
|
21
31
|
scale?: LinearScale;
|
|
22
32
|
}
|
package/NOTICE.txt
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
Progress Kendo UI for Vue 2026
|
|
2
|
+
Progress Kendo UI for Vue 2026 Updated November 2026
|
|
3
3
|
|
|
4
4
|
----------------------------------------------------------------------------------------------------------------------------
|
|
5
5
|
NOTICES REPORT
|
|
6
6
|
----------------------------------------------------------------------------------------------------------------------------
|
|
7
7
|
|
|
8
8
|
Portions of the Products include certain open source and commercial third-party components listed below ("Third-Party
|
|
9
|
-
Components"). The authors of the Third-Party Components require Progress Software Corporation ("PSC") to include
|
|
10
|
-
following notices and additional licensing terms as a condition of PSC's use of such Third-Party Components. You
|
|
11
|
-
acknowledge that the authors of the Third-Party Components have no obligation to provide support to you for the Third-
|
|
12
|
-
Components or the Product. You hereby undertake to comply with all licenses related to the applicable Third-Party
|
|
9
|
+
Components"). The authors of the Third-Party Components require Progress Software Corporation ("PSC") to include
|
|
10
|
+
the following notices and additional licensing terms as a condition of PSC's use of such Third-Party Components. You
|
|
11
|
+
acknowledge that the authors of the Third-Party Components have no obligation to provide support to you for the Third-
|
|
12
|
+
Party Components or the Product. You hereby undertake to comply with all licenses related to the applicable Third-Party
|
|
13
13
|
Components. Notwithstanding anything to the contrary, to the extent that any of the terms and conditions of the Progress
|
|
14
|
-
Agreement conflict, vary, or are in addition to the terms and conditions of the aforementioned third-party licenses for
|
|
15
|
-
technologies, such terms and conditions are offered by PSC alone and not by any other party.
|
|
14
|
+
Agreement conflict, vary, or are in addition to the terms and conditions of the aforementioned third-party licenses for
|
|
15
|
+
these technologies, such terms and conditions are offered by PSC alone and not by any other party.
|
|
16
16
|
|
|
17
17
|
----------------------------------------------------------------------------------------------------------------------------
|
|
18
18
|
Report Content
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
GENERATIVE ARTIFICIAL INTELLIGENCE INTEGRATION
|
|
29
29
|
If the Software documentation specifies integration with some form of generative artificial intelligence (AI), then the
|
|
30
30
|
Software will include a configuration to connect to AI. You acknowledge that a separate license or subscription access
|
|
31
|
-
to AI governed by the terms and conditions of a license agreement from AI licensor will be required for use and access
|
|
32
|
-
AI capabilities integrated with the Software. You will be responsible to comply with the terms of such license agreement
|
|
31
|
+
to AI governed by the terms and conditions of a license agreement from AI licensor will be required for use and access
|
|
32
|
+
of AI capabilities integrated with the Software. You will be responsible to comply with the terms of such license agreement
|
|
33
33
|
for a valid use of AI. You acknowledge and accept that Progress is not a party to the license agreement between You
|
|
34
34
|
and AI licensor for AI use, and as a result Progress does not have any control over AI and its availability, and Progress
|
|
35
35
|
disclaims any and all liabilities for any output, error, damages, loss, etc., or any other result of Your use of AI
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
|
|
38
38
|
----------------------------------------------------------------------------------------------------------------------------
|
|
39
39
|
|
|
40
|
-
NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in the release notes or
|
|
41
|
-
documentation that accompanies updates received in connection with support of the Product.
|
|
40
|
+
NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in the release notes or
|
|
41
|
+
other documentation that accompanies updates received in connection with support of the Product.
|
|
42
42
|
|
|
43
43
|
----------------------------------------------------------------------------------------------------------------------------
|
|
44
44
|
|
|
@@ -52,9 +52,9 @@ Components:
|
|
|
52
52
|
| | readme | |
|
|
53
53
|
| @progress/pako-esm 1.0.1 | https://github.com/telerik/pako-esm#r | MIT License |
|
|
54
54
|
| | eadme | |
|
|
55
|
-
| prosemirror-commands 1.7.
|
|
55
|
+
| prosemirror-commands 1.7.2 | https://github.com/prosemirror/prosem | MIT License |
|
|
56
56
|
| | irror-commands#readme | |
|
|
57
|
-
| prosemirror-dropcursor 1.8.
|
|
57
|
+
| prosemirror-dropcursor 1.8.3 | https://github.com/prosemirror/prosem | MIT License |
|
|
58
58
|
| | irror-dropcursor#readme | |
|
|
59
59
|
| prosemirror-gapcursor 1.4.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
60
60
|
| | irror-gapcursor#readme | |
|
|
@@ -64,7 +64,7 @@ Components:
|
|
|
64
64
|
| | irror-inputrules#readme | |
|
|
65
65
|
| prosemirror-keymap 1.2.3 | https://github.com/prosemirror/prosem | MIT License |
|
|
66
66
|
| | irror-keymap#readme | |
|
|
67
|
-
| prosemirror-model 1.25.
|
|
67
|
+
| prosemirror-model 1.25.12 | https://github.com/prosemirror/prosem | MIT License |
|
|
68
68
|
| | irror-model#readme | |
|
|
69
69
|
| prosemirror-schema-list 1.5.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
70
70
|
| | irror-schema-list#readme | |
|
|
@@ -72,9 +72,9 @@ Components:
|
|
|
72
72
|
| | irror-state#readme | |
|
|
73
73
|
| prosemirror-tables 1.8.5 | https://github.com/prosemirror/prosem | MIT License |
|
|
74
74
|
| | irror-tables#readme | |
|
|
75
|
-
| prosemirror-transform 1.
|
|
75
|
+
| prosemirror-transform 1.12.1 | https://github.com/prosemirror/prosem | MIT License |
|
|
76
76
|
| | irror-transform#readme | |
|
|
77
|
-
| prosemirror-view 1.
|
|
77
|
+
| prosemirror-view 1.42.5 | https://github.com/prosemirror/prosem | MIT License |
|
|
78
78
|
| | irror-view#readme | |
|
|
79
79
|
| -------------------------------------- | ------------------------------------- | ---------------------------------------- |
|
|
80
80
|
|
|
@@ -269,7 +269,7 @@ third-party archives.
|
|
|
269
269
|
---
|
|
270
270
|
|
|
271
271
|
MIT License
|
|
272
|
-
(@progress/jszip-esm 1.0.4, @progress/pako-esm 1.0.1, prosemirror-commands 1.7.
|
|
272
|
+
(@progress/jszip-esm 1.0.4, @progress/pako-esm 1.0.1, prosemirror-commands 1.7.2, prosemirror-dropcursor 1.8.3, prosemirror-gapcursor 1.4.1, prosemirror-history 1.5.0, prosemirror-inputrules 1.5.1, prosemirror-keymap 1.2.3, prosemirror-model 1.25.12, prosemirror-schema-list 1.5.1, prosemirror-state 1.4.4, prosemirror-tables 1.8.5, prosemirror-transform 1.12.1, prosemirror-view 1.42.5)
|
|
273
273
|
|
|
274
274
|
The MIT License
|
|
275
275
|
===============
|
package/RadialGauge.d.ts
CHANGED
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
import { Surface, Group } from '@progress/kendo-drawing';
|
|
9
9
|
import { PropType } from 'vue';
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Represents the [KendoVue RadialGauge component](slug:overview_radialgauge_gauges).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```vue
|
|
15
|
+
* <RadialGauge :pointer="{ value: 40 }" />
|
|
16
|
+
* ```
|
|
12
17
|
*/
|
|
13
18
|
declare const RadialGauge: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
19
|
dir: PropType<string>;
|
|
@@ -31,11 +36,36 @@ declare const RadialGauge: import('vue').DefineComponent<import('vue').ExtractPr
|
|
|
31
36
|
default: any;
|
|
32
37
|
};
|
|
33
38
|
}>, {}, {}, {}, {
|
|
39
|
+
/**
|
|
40
|
+
* Returns the internal gauge instance of the RadialGauge.
|
|
41
|
+
* If the RadialGauge is not rendered yet, the method returns `null`.
|
|
42
|
+
*/
|
|
34
43
|
gaugeInstance(): any;
|
|
44
|
+
/**
|
|
45
|
+
* Returns the Drawing `Surface` of the RadialGauge.
|
|
46
|
+
* If the RadialGauge is not rendered yet, the method returns `null`.
|
|
47
|
+
*/
|
|
35
48
|
surface(): Surface | null;
|
|
49
|
+
/**
|
|
50
|
+
* Returns the DOM element of the RadialGauge.
|
|
51
|
+
* If the RadialGauge is not rendered yet, the method returns `null`.
|
|
52
|
+
*/
|
|
36
53
|
element(): HTMLDivElement | null;
|
|
54
|
+
/**
|
|
55
|
+
* Exports the RadialGauge as a Drawing `Group`.
|
|
56
|
+
* Pass the result to the `exportImage`, `exportSVG`, or `exportPDF` methods of the Drawing library.
|
|
57
|
+
*
|
|
58
|
+
* @param options The export options that the method passes to the gauge.
|
|
59
|
+
* @returns A `Promise` that resolves with the exported `Group`.
|
|
60
|
+
*/
|
|
37
61
|
exportVisual(options?: any): Promise<Group>;
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
38
65
|
getTarget(): any;
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
39
69
|
deriveOptionsFromParent(options: any): any;
|
|
40
70
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
41
71
|
dir: PropType<string>;
|
package/RadialGauge.mjs
CHANGED
|
@@ -66,21 +66,46 @@ const G = /* @__PURE__ */ s({
|
|
|
66
66
|
});
|
|
67
67
|
},
|
|
68
68
|
methods: {
|
|
69
|
+
/**
|
|
70
|
+
* Returns the internal gauge instance of the RadialGauge.
|
|
71
|
+
* If the RadialGauge is not rendered yet, the method returns `null`.
|
|
72
|
+
*/
|
|
69
73
|
gaugeInstance() {
|
|
70
74
|
return this._baseGauge !== null ? this._baseGauge.gaugeInstance : null;
|
|
71
75
|
},
|
|
76
|
+
/**
|
|
77
|
+
* Returns the Drawing `Surface` of the RadialGauge.
|
|
78
|
+
* If the RadialGauge is not rendered yet, the method returns `null`.
|
|
79
|
+
*/
|
|
72
80
|
surface() {
|
|
73
81
|
return this._baseGauge !== null ? this._baseGauge.surface : null;
|
|
74
82
|
},
|
|
83
|
+
/**
|
|
84
|
+
* Returns the DOM element of the RadialGauge.
|
|
85
|
+
* If the RadialGauge is not rendered yet, the method returns `null`.
|
|
86
|
+
*/
|
|
75
87
|
element() {
|
|
76
88
|
return this._baseGauge !== null ? this._baseGauge.element : null;
|
|
77
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* Exports the RadialGauge as a Drawing `Group`.
|
|
92
|
+
* Pass the result to the `exportImage`, `exportSVG`, or `exportPDF` methods of the Drawing library.
|
|
93
|
+
*
|
|
94
|
+
* @param options The export options that the method passes to the gauge.
|
|
95
|
+
* @returns A `Promise` that resolves with the exported `Group`.
|
|
96
|
+
*/
|
|
78
97
|
exportVisual(e) {
|
|
79
98
|
return this.gaugeInstance() !== null ? Promise.resolve(this.gaugeInstance().exportVisual(e)) : Promise.resolve(new g());
|
|
80
99
|
},
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
81
103
|
getTarget() {
|
|
82
104
|
return this;
|
|
83
105
|
},
|
|
106
|
+
/**
|
|
107
|
+
* @hidden
|
|
108
|
+
*/
|
|
84
109
|
deriveOptionsFromParent(e) {
|
|
85
110
|
const {
|
|
86
111
|
pointer: t,
|
package/RadialGaugeProps.d.ts
CHANGED
|
@@ -8,15 +8,25 @@
|
|
|
8
8
|
import { BaseGaugeProps } from './BaseGaugeProps';
|
|
9
9
|
import { RadialPointer, RadialScale } from './types';
|
|
10
10
|
/**
|
|
11
|
-
* Represents the props of the [Kendo UI for Vue RadialGauge component](
|
|
11
|
+
* Represents the props of the [Kendo UI for Vue RadialGauge component](slug:overview_radialgauge_gauges).
|
|
12
12
|
*/
|
|
13
13
|
export interface RadialGaugeProps extends BaseGaugeProps {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Sets the configuration of the pointers ([see example](slug:multiplepointers_radialgauge)).
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```vue
|
|
19
|
+
* <RadialGauge :pointer="{ value: 40, color: '#28b4c8' }" />
|
|
20
|
+
* ```
|
|
16
21
|
*/
|
|
17
22
|
pointer: RadialPointer | RadialPointer[];
|
|
18
23
|
/**
|
|
19
|
-
*
|
|
24
|
+
* Sets the configuration of the scale.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```vue
|
|
28
|
+
* <RadialGauge :pointer="{ value: 40 }" :scale="{ min: 0, max: 180 }" />
|
|
29
|
+
* ```
|
|
20
30
|
*/
|
|
21
31
|
scale?: RadialScale;
|
|
22
32
|
}
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
13
13
|
*-------------------------------------------------------------------------------------------
|
|
14
14
|
*/
|
|
15
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-intl"),require("@progress/kendo-charts"),require("@progress/kendo-vue-common"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-intl","@progress/kendo-charts","@progress/kendo-vue-common","@progress/kendo-drawing"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueGauges={},e.Vue,e.KendoVueIntl,e.KendoCharts,e.KendoVueCommon,e.KendoDrawing)}(this,function(e,t,s,n,r,i){"use strict";const a=1e3/60,o=(e,t)=>{if(!t.type)return{};switch(t.type){case"set":return u.themeItem(e,t);case"push":return Object.assign(e,t.payload);default:return e}},u={configurationItem:(e,t)=>Object.assign(e,{[t.gaugeKey]:t.payload}),collectionConfigurationItem(e,t){let s=!1;const[n,r]=t.gaugeCollectionIdxKey.split("_"),i=e[n].map((e,n)=>parseInt(r,10)===n?(s=!0,t.payload):e);return!1===s&&i.splice(parseInt(r,10),0,t.payload),Object.assign(e,{[n]:i})},themeItem(e,t){const s={...e},{field:n,value:i}=t.payload;return r.setter(n)(s,i),s}},l={name:"@progress/kendo-vue-gauges",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1639640368,version:"11.0.0-develop.1",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"},c=t.defineComponent({name:"KendoBaseGauge",props:{dir:String,renderAs:{type:String,default:"svg",validator:function(e){return["svg","canvas"].includes(e)}},scale:Object,value:Number,pointer:{type:[Object,Array],default:function(){}},gaugeConstructor:[Object,Function],deriveOptionsFromParent:Function,transitions:{type:Boolean,default:void 0},getTarget:Function,onRender:Function},created(){r.validatePackage(l),this.gaugeInstance=null,this.themeStore={},this._prevRenderAs=this.renderAs,this._prevDir=this.dir,this._prevScale=this.scale,this.themeStore=(e=>{let t,s,n=[];const i=i=>{t=e(t,i),r.canUseDOM&&(window.clearTimeout(s),s=window.setTimeout(()=>n.forEach(e=>e()),a))};return i({}),{getState:()=>t,dispatch:i,subscribe:e=>(n.push(e),()=>n=n.filter(t=>t!==e))}})(o)},mounted(){((e,t,s)=>{let r={};if("undefined"!=typeof document)try{r=n.gaugeTheme(s)}finally{e.dispatch({type:"push",payload:r}),t()}else e.dispatch({type:"push",payload:r})})(this.themeStore,this.instantiateCoreGauge.bind(this),this.$el),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize)},watch:{dir:function(e,t){this._prevDir=t},renderAs:function(e,t){this._prevRenderAs=t},scale:function(e,t){this._prevScale=t}},updated(){const{dir:e,getTarget:t,gaugeConstructor:s,className:n,renderAs:r,scale:i,...a}=this.$props;if(null!==this.gaugeInstance){const t=this._prevDir!==e||this._prevRenderAs!==r||this._prevScale!==i,s=a;t||this.gaugeInstance.noTransitionsRedraw(),t||(r||"svg")!==(this._prevRenderAs||"svg")?this.refresh():Object.keys(a).indexOf("pointer")>-1&&a.pointer?Array.isArray(s.pointer)?this.refreshAllValues(s.pointer.map(e=>e.value)):this.refreshValue((s.pointer||{}).value):this.refreshValue(s.value),this._prevDir!==e&&this.gaugeInstance.setDirection(this.getDirection(e)),this.$emit("render",{sender:this})}},destroyed(){this.themeUnsubscriber(),null!==this.gaugeInstance&&(this.gaugeInstance.destroy(),this.gaugeInstance=null),window.removeEventListener("resize",this.onWindowResize)},setup:function(){return{kendoIntlService:t.inject("kendoIntlService",{})}},render(){const e=r.getDefaultSlots(this),n=Object.assign({},{position:"relative"});return this._intl=s.provideIntlService(this),t.createVNode("div",{style:n},[e])},methods:{instantiateCoreGauge(){const{dir:e,gaugeConstructor:t}=this.$props,s=this.getGaugeOptions();this.gaugeInstance=new t(this.$el,s,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:this._intl,sender:this})},refresh(){if(null!==this.gaugeInstance){const e=this.themeStore.getState(),t=this.getGaugeOptions();this.gaugeInstance.setOptions(t,e)}},refreshValue(e){this.gaugeInstance.value(e)},refreshAllValues(e){this.gaugeInstance.allValues(e)},getDirection(e){return"rtl"===(void 0!==e?e:r.canUseDOM&&window.getComputedStyle(this.$el).direction||"ltr")},getGaugeOptions(){const{renderAs:e,transitions:t,deriveOptionsFromParent:s}=this.$props;let n=Object.assign({renderAs:e,transitions:t});return s&&(n=s(n)),n},onWindowResize(){null!==this.gaugeInstance&&(this.gaugeInstance.resize(),this.$emit("render",{sender:this}))}}}),g=t.defineComponent({name:"KendoArcCenter",props:{center:[String,Function,Object]},inject:{arcCenterValue:{default:null},centerStyles:{default:null}},created(){this.element=null},render(){const{center:e}=this.$props,s={zIndex:-1,...this.centerStyles};let n=null;return e?(n=r.getTemplate.call(this,{h:t.h,template:e,defaultRendering:"",additionalProps:{value:this.arcCenterValue.value,color:this.arcCenterValue.color}}),t.createVNode("div",{class:"k-arcgauge-label",style:s},[n])):n}}),d=t.defineComponent({name:"KendoArcGauge",props:{dir:String,renderAs:{type:String,default:"svg",validator:function(e){return["svg","canvas"].includes(e)}},gaugeConstructor:[Object,Function],value:{type:Number,default:void 0},color:String,colors:{type:Array,default:void 0},opacity:{type:Number,default:void 0},scale:{type:Object,default:void 0},centerRender:[String,Function,Object],transitions:{type:Boolean,default:void 0}},created(){this.gaugeType=n.ArcGauge},data:()=>({centerStyles:{top:null,left:null},arcCenterValue:{value:"",color:""}}),provide(){return{centerStyles:this.$data.centerStyles,arcCenterValue:this.$data.arcCenterValue}},mounted(){this._baseGauge=this.baseGaugeRef,this.center=this.centerRef,this.positionCenter()},watch:{colors:function(e,t){this.prevColors=t}},updated(){this._baseGauge=this.baseGaugeRef,this.center=this.centerRef},render(){const e=r.getDefaultSlots(this),{centerRender:s,className:n,value:i,transitions:a,scale:o}=this.$props,u=s?r.templateRendering.call(this,s,r.getListeners.call(this)):void 0;return t.createVNode(c,{value:i,scale:o,transitions:a,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:e=>{this.baseGaugeRef=e},gaugeConstructor:this.gaugeType,getTarget:this.getTarget,class:r.classNames("k-gauge k-arcgauge",n),onRender:this.positionCenter},{default:()=>[e,t.createVNode(g,{center:u,ref:e=>{this.centerRef=e}},null)]})},methods:{positionCenter(){const e=this.center.$el.offsetWidth,t=this.center.$el.offsetHeight,s=this.gaugeInstance(),n=s.centerLabelPosition(e,t);this.centerStyles.left=n.left+"px",this.centerStyles.top=n.top+"px",this.arcCenterValue.value=s.value(),this.arcCenterValue.color=s.currentColor()},gaugeInstance(){return this._baseGauge?this._baseGauge.gaugeInstance:null},surface(){return this._baseGauge?this._baseGauge.surface:null},element(){return this._baseGauge?this._baseGauge.element:null},exportVisual(e){return null!==this.gaugeInstance&&this.$el?i.drawDOM(this.$el,e):Promise.resolve(new i.Group)},getTarget(){return this},deriveOptionsFromParent(e){const{value:t,color:s,colors:n,opacity:r,scale:i}=this.$props;return Object.assign({},e,{value:t,color:s,colors:n,opacity:r,scale:i})}}}),h=t.defineComponent({name:"KendoCircularGauge",extends:d,created(){this.gaugeType=n.CircularGauge,this.arcCenterStyles={}}});const p=t.defineComponent({name:"KendoLinearGauge",props:{dir:String,renderAs:{type:String,default:"svg",validator:function(e){return["svg","canvas"].includes(e)}},gaugeConstructor:[Object,Function],pointer:{type:[Object,Array],default:void 0},scale:{type:Object,default:void 0},transitions:{type:Boolean,default:void 0}},mounted(){this._baseGauge=this.baseGaugeRef},updated(){this._baseGauge=this.baseGaugeRef},render(){const e=r.getDefaultSlots(this);return t.createVNode(c,{transitions:this.$props.transitions,scale:this.$props.scale,pointer:this.$props.pointer,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:e=>{this.baseGaugeRef=e},gaugeConstructor:n.LinearGauge,getTarget:this.getTarget,class:"k-gauge"},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}(e)?e:{default:()=>[e]})},methods:{gaugeInstance(){return null!==this._baseGauge?this._baseGauge.gaugeInstance:null},surface(){return null!==this._baseGauge?this._baseGauge.surface:null},element(){return null!==this._baseGauge?this._baseGauge.element:null},exportVisual(e){return null!==this.gaugeInstance()?Promise.resolve(this.gaugeInstance().exportVisual(e)):Promise.resolve(new i.Group)},getTarget(){return this},deriveOptionsFromParent(e){const{pointer:t,scale:s}=this.$props;return Object.assign({},e,{pointer:t,scale:s})}}});const f=t.defineComponent({name:"KendoRadialGauge",props:{dir:String,renderAs:{type:String,default:"svg",validator:function(e){return["svg","canvas"].includes(e)}},gaugeConstructor:[Object,Function],pointer:{type:[Object,Array],default:void 0},scale:{type:Object,default:void 0},transitions:{type:Boolean,default:void 0}},mounted(){this._baseGauge=this.baseGaugeRef},updated(){this._baseGauge=this.baseGaugeRef},render(){const e=r.getDefaultSlots(this),{pointer:s,scale:i,transitions:a}=this.$props;return t.createVNode(c,{transitions:a,scale:i,pointer:s,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:e=>{this.baseGaugeRef=e},gaugeConstructor:n.RadialGauge,getTarget:this.getTarget,class:"k-gauge"},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}(e)?e:{default:()=>[e]})},methods:{gaugeInstance(){return null!==this._baseGauge?this._baseGauge.gaugeInstance:null},surface(){return null!==this._baseGauge?this._baseGauge.surface:null},element(){return null!==this._baseGauge?this._baseGauge.element:null},exportVisual(e){return null!==this.gaugeInstance()?Promise.resolve(this.gaugeInstance().exportVisual(e)):Promise.resolve(new i.Group)},getTarget(){return this},deriveOptionsFromParent(e){const{pointer:t,scale:s}=this.$props;return Object.assign({},e,{pointer:t,scale:s})}}});e.ArcGauge=d,e.CircularGauge=h,e.LinearGauge=p,e.RadialGauge=f});
|
|
15
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-intl"),require("@progress/kendo-charts"),require("@progress/kendo-vue-common"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-intl","@progress/kendo-charts","@progress/kendo-vue-common","@progress/kendo-drawing"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueGauges={},e.Vue,e.KendoVueIntl,e.KendoCharts,e.KendoVueCommon,e.KendoDrawing)}(this,function(e,t,s,n,r,i){"use strict";const a=1e3/60,o=(e,t)=>{if(!t.type)return{};switch(t.type){case"set":return u.themeItem(e,t);case"push":return Object.assign(e,t.payload);default:return e}},u={configurationItem:(e,t)=>Object.assign(e,{[t.gaugeKey]:t.payload}),collectionConfigurationItem(e,t){let s=!1;const[n,r]=t.gaugeCollectionIdxKey.split("_"),i=e[n].map((e,n)=>parseInt(r,10)===n?(s=!0,t.payload):e);return!1===s&&i.splice(parseInt(r,10),0,t.payload),Object.assign(e,{[n]:i})},themeItem(e,t){const s={...e},{field:n,value:i}=t.payload;return r.setter(n)(s,i),s}},l={name:"@progress/kendo-vue-gauges",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:1639640368,version:"11.0.1-develop.1",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"},c=t.defineComponent({name:"KendoBaseGauge",props:{dir:String,renderAs:{type:String,default:"svg",validator:function(e){return["svg","canvas"].includes(e)}},scale:Object,value:Number,pointer:{type:[Object,Array],default:function(){}},gaugeConstructor:[Object,Function],deriveOptionsFromParent:Function,transitions:{type:Boolean,default:void 0},getTarget:Function,onRender:Function},created(){r.validatePackage(l),this.gaugeInstance=null,this.themeStore={},this._prevRenderAs=this.renderAs,this._prevDir=this.dir,this._prevScale=this.scale,this.themeStore=(e=>{let t,s,n=[];const i=i=>{t=e(t,i),r.canUseDOM&&(window.clearTimeout(s),s=window.setTimeout(()=>n.forEach(e=>e()),a))};return i({}),{getState:()=>t,dispatch:i,subscribe:e=>(n.push(e),()=>n=n.filter(t=>t!==e))}})(o)},mounted(){((e,t,s)=>{let r={};if("undefined"!=typeof document)try{r=n.gaugeTheme(s)}finally{e.dispatch({type:"push",payload:r}),t()}else e.dispatch({type:"push",payload:r})})(this.themeStore,this.instantiateCoreGauge.bind(this),this.$el),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize)},watch:{dir:function(e,t){this._prevDir=t},renderAs:function(e,t){this._prevRenderAs=t},scale:function(e,t){this._prevScale=t}},updated(){const{dir:e,getTarget:t,gaugeConstructor:s,className:n,renderAs:r,scale:i,...a}=this.$props;if(null!==this.gaugeInstance){const t=this._prevDir!==e||this._prevRenderAs!==r||this._prevScale!==i,s=a;t||this.gaugeInstance.noTransitionsRedraw(),t||(r||"svg")!==(this._prevRenderAs||"svg")?this.refresh():Object.keys(a).indexOf("pointer")>-1&&a.pointer?Array.isArray(s.pointer)?this.refreshAllValues(s.pointer.map(e=>e.value)):this.refreshValue((s.pointer||{}).value):this.refreshValue(s.value),this._prevDir!==e&&this.gaugeInstance.setDirection(this.getDirection(e)),this.$emit("render",{sender:this})}},destroyed(){this.themeUnsubscriber(),null!==this.gaugeInstance&&(this.gaugeInstance.destroy(),this.gaugeInstance=null),window.removeEventListener("resize",this.onWindowResize)},setup:function(){return{kendoIntlService:t.inject("kendoIntlService",{})}},render(){const e=r.getDefaultSlots(this),n=Object.assign({},{position:"relative"});return this._intl=s.provideIntlService(this),t.createVNode("div",{style:n},[e])},methods:{instantiateCoreGauge(){const{dir:e,gaugeConstructor:t}=this.$props,s=this.getGaugeOptions();this.gaugeInstance=new t(this.$el,s,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:this._intl,sender:this})},refresh(){if(null!==this.gaugeInstance){const e=this.themeStore.getState(),t=this.getGaugeOptions();this.gaugeInstance.setOptions(t,e)}},refreshValue(e){this.gaugeInstance.value(e)},refreshAllValues(e){this.gaugeInstance.allValues(e)},getDirection(e){return"rtl"===(void 0!==e?e:r.canUseDOM&&window.getComputedStyle(this.$el).direction||"ltr")},getGaugeOptions(){const{renderAs:e,transitions:t,deriveOptionsFromParent:s}=this.$props;let n=Object.assign({renderAs:e,transitions:t});return s&&(n=s(n)),n},onWindowResize(){null!==this.gaugeInstance&&(this.gaugeInstance.resize(),this.$emit("render",{sender:this}))}}}),g=t.defineComponent({name:"KendoArcCenter",props:{center:[String,Function,Object]},inject:{arcCenterValue:{default:null},centerStyles:{default:null}},created(){this.element=null},render(){const{center:e}=this.$props,s={zIndex:-1,...this.centerStyles};let n=null;return e?(n=r.getTemplate.call(this,{h:t.h,template:e,defaultRendering:"",additionalProps:{value:this.arcCenterValue.value,color:this.arcCenterValue.color}}),t.createVNode("div",{class:"k-arcgauge-label",style:s},[n])):n}}),d=t.defineComponent({name:"KendoArcGauge",props:{dir:String,renderAs:{type:String,default:"svg",validator:function(e){return["svg","canvas"].includes(e)}},gaugeConstructor:[Object,Function],value:{type:Number,default:void 0},color:String,colors:{type:Array,default:void 0},opacity:{type:Number,default:void 0},scale:{type:Object,default:void 0},centerRender:[String,Function,Object],transitions:{type:Boolean,default:void 0}},created(){this.gaugeType=n.ArcGauge},data:()=>({centerStyles:{top:null,left:null},arcCenterValue:{value:"",color:""}}),provide(){return{centerStyles:this.$data.centerStyles,arcCenterValue:this.$data.arcCenterValue}},mounted(){this._baseGauge=this.baseGaugeRef,this.center=this.centerRef,this.positionCenter()},watch:{colors:function(e,t){this.prevColors=t}},updated(){this._baseGauge=this.baseGaugeRef,this.center=this.centerRef},render(){const e=r.getDefaultSlots(this),{centerRender:s,className:n,value:i,transitions:a,scale:o}=this.$props,u=s?r.templateRendering.call(this,s,r.getListeners.call(this)):void 0;return t.createVNode(c,{value:i,scale:o,transitions:a,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:e=>{this.baseGaugeRef=e},gaugeConstructor:this.gaugeType,getTarget:this.getTarget,class:r.classNames("k-gauge k-arcgauge",n),onRender:this.positionCenter},{default:()=>[e,t.createVNode(g,{center:u,ref:e=>{this.centerRef=e}},null)]})},methods:{positionCenter(){const e=this.center.$el.offsetWidth,t=this.center.$el.offsetHeight,s=this.gaugeInstance(),n=s.centerLabelPosition(e,t);this.centerStyles.left=n.left+"px",this.centerStyles.top=n.top+"px",this.arcCenterValue.value=s.value(),this.arcCenterValue.color=s.currentColor()},gaugeInstance(){return this._baseGauge?this._baseGauge.gaugeInstance:null},surface(){return this._baseGauge?this._baseGauge.surface:null},element(){return this._baseGauge?this._baseGauge.element:null},exportVisual(e){return null!==this.gaugeInstance&&this.$el?i.drawDOM(this.$el,e):Promise.resolve(new i.Group)},getTarget(){return this},deriveOptionsFromParent(e){const{value:t,color:s,colors:n,opacity:r,scale:i}=this.$props;return Object.assign({},e,{value:t,color:s,colors:n,opacity:r,scale:i})}}}),h=t.defineComponent({name:"KendoCircularGauge",extends:d,created(){this.gaugeType=n.CircularGauge,this.arcCenterStyles={}}});const p=t.defineComponent({name:"KendoLinearGauge",props:{dir:String,renderAs:{type:String,default:"svg",validator:function(e){return["svg","canvas"].includes(e)}},gaugeConstructor:[Object,Function],pointer:{type:[Object,Array],default:void 0},scale:{type:Object,default:void 0},transitions:{type:Boolean,default:void 0}},mounted(){this._baseGauge=this.baseGaugeRef},updated(){this._baseGauge=this.baseGaugeRef},render(){const e=r.getDefaultSlots(this);return t.createVNode(c,{transitions:this.$props.transitions,scale:this.$props.scale,pointer:this.$props.pointer,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:e=>{this.baseGaugeRef=e},gaugeConstructor:n.LinearGauge,getTarget:this.getTarget,class:"k-gauge"},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}(e)?e:{default:()=>[e]})},methods:{gaugeInstance(){return null!==this._baseGauge?this._baseGauge.gaugeInstance:null},surface(){return null!==this._baseGauge?this._baseGauge.surface:null},element(){return null!==this._baseGauge?this._baseGauge.element:null},exportVisual(e){return null!==this.gaugeInstance()?Promise.resolve(this.gaugeInstance().exportVisual(e)):Promise.resolve(new i.Group)},getTarget(){return this},deriveOptionsFromParent(e){const{pointer:t,scale:s}=this.$props;return Object.assign({},e,{pointer:t,scale:s})}}});const f=t.defineComponent({name:"KendoRadialGauge",props:{dir:String,renderAs:{type:String,default:"svg",validator:function(e){return["svg","canvas"].includes(e)}},gaugeConstructor:[Object,Function],pointer:{type:[Object,Array],default:void 0},scale:{type:Object,default:void 0},transitions:{type:Boolean,default:void 0}},mounted(){this._baseGauge=this.baseGaugeRef},updated(){this._baseGauge=this.baseGaugeRef},render(){const e=r.getDefaultSlots(this),{pointer:s,scale:i,transitions:a}=this.$props;return t.createVNode(c,{transitions:a,scale:i,pointer:s,deriveOptionsFromParent:this.deriveOptionsFromParent,ref:e=>{this.baseGaugeRef=e},gaugeConstructor:n.RadialGauge,getTarget:this.getTarget,class:"k-gauge"},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)}(e)?e:{default:()=>[e]})},methods:{gaugeInstance(){return null!==this._baseGauge?this._baseGauge.gaugeInstance:null},surface(){return null!==this._baseGauge?this._baseGauge.surface:null},element(){return null!==this._baseGauge?this._baseGauge.element:null},exportVisual(e){return null!==this.gaugeInstance()?Promise.resolve(this.gaugeInstance().exportVisual(e)):Promise.resolve(new i.Group)},getTarget(){return this},deriveOptionsFromParent(e){const{pointer:t,scale:s}=this.$props;return Object.assign({},e,{pointer:t,scale:s})}}});e.ArcGauge=d,e.CircularGauge=h,e.LinearGauge=p,e.RadialGauge=f});
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-gauges",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-gauges",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1794913780,version:"11.0.1-develop.1",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"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "11.0.
|
|
13
|
+
publishDate: 1794913780,
|
|
14
|
+
version: "11.0.1-develop.1",
|
|
15
15
|
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"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-gauges",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.1-develop.1",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@progress/kendo-drawing": "^1.21.1",
|
|
28
|
-
"@progress/kendo-licensing": "^1.13.
|
|
29
|
-
"@progress/kendo-vue-common": "11.0.
|
|
30
|
-
"@progress/kendo-vue-intl": "11.0.
|
|
28
|
+
"@progress/kendo-licensing": "^1.13.1",
|
|
29
|
+
"@progress/kendo-vue-common": "11.0.1-develop.1",
|
|
30
|
+
"@progress/kendo-vue-intl": "11.0.1-develop.1",
|
|
31
31
|
"vue": "^3.0.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"package": {
|
|
50
50
|
"productName": "Kendo UI for Vue",
|
|
51
51
|
"productCode": "KENDOUIVUE",
|
|
52
|
-
"publishDate":
|
|
52
|
+
"publishDate": 1794913780,
|
|
53
53
|
"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"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
@@ -29,7 +29,7 @@ export interface Labels {
|
|
|
29
29
|
*/
|
|
30
30
|
font?: string;
|
|
31
31
|
/**
|
|
32
|
-
* The format that is used to display the labels. Uses the IntlService [`format`](
|
|
32
|
+
* The format that is used to display the labels. Uses the IntlService [`format`](slug:api_intl_intlservice#toc-format) method.
|
|
33
33
|
*/
|
|
34
34
|
format?: string;
|
|
35
35
|
/**
|
|
@@ -25,7 +25,7 @@ export interface LinearScale extends Scale {
|
|
|
25
25
|
*/
|
|
26
26
|
mirror?: boolean;
|
|
27
27
|
/**
|
|
28
|
-
* Specifies if the scale will be vertical ([see example](
|
|
28
|
+
* Specifies if the scale will be vertical ([see example](slug:orientation_lineargauge)).
|
|
29
29
|
*
|
|
30
30
|
* @default true
|
|
31
31
|
*/
|