@progress/kendo-react-gauges 8.3.0-develop.10 → 8.3.0-develop.12
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.mjs +1 -9
- package/BaseGauge.mjs +10 -29
- package/package-metadata.mjs +1 -1
- package/package.json +3 -3
package/ArcCenter.mjs
CHANGED
|
@@ -27,15 +27,7 @@ const o = class o extends a.Component {
|
|
|
27
27
|
render() {
|
|
28
28
|
const { render: t } = this.props, { arcCenterStyles: e, arcCenterValue: s } = this.state, n = e || { zIndex: -1 };
|
|
29
29
|
let r = null;
|
|
30
|
-
return t && (r = /* @__PURE__ */ a.createElement(
|
|
31
|
-
"div",
|
|
32
|
-
{
|
|
33
|
-
className: "k-arcgauge-label",
|
|
34
|
-
ref: (i) => this._element = i,
|
|
35
|
-
style: n
|
|
36
|
-
},
|
|
37
|
-
t(s.value, s.color)
|
|
38
|
-
)), r;
|
|
30
|
+
return t && (r = /* @__PURE__ */ a.createElement("div", { className: "k-arcgauge-label", ref: (i) => this._element = i, style: n }, t(s.value, s.color))), r;
|
|
39
31
|
}
|
|
40
32
|
onRender(t) {
|
|
41
33
|
if (!this._element)
|
package/BaseGauge.mjs
CHANGED
|
@@ -79,31 +79,18 @@ const n = class n extends c.Component {
|
|
|
79
79
|
*/
|
|
80
80
|
render() {
|
|
81
81
|
const { style: e = {}, className: t, children: r } = this.props, s = Object.assign({}, e, { position: "relative" });
|
|
82
|
-
return /* @__PURE__ */ c.createElement(P.Provider, { value: this.contextValue }, /* @__PURE__ */ c.createElement(
|
|
83
|
-
"div",
|
|
84
|
-
{
|
|
85
|
-
style: s,
|
|
86
|
-
ref: (g) => this._element = g,
|
|
87
|
-
className: t
|
|
88
|
-
},
|
|
89
|
-
r
|
|
90
|
-
));
|
|
82
|
+
return /* @__PURE__ */ c.createElement(P.Provider, { value: this.contextValue }, /* @__PURE__ */ c.createElement("div", { style: s, ref: (g) => this._element = g, className: t }, r));
|
|
91
83
|
}
|
|
92
84
|
/**
|
|
93
85
|
* @hidden
|
|
94
86
|
*/
|
|
95
87
|
instantiateCoreGauge() {
|
|
96
88
|
const { dir: e, gaugeConstructor: t } = this.props, r = this.getGaugeOptions();
|
|
97
|
-
this.gaugeInstance = new t(
|
|
98
|
-
this.
|
|
99
|
-
|
|
100
|
-
this
|
|
101
|
-
|
|
102
|
-
rtl: this.getDirection(e),
|
|
103
|
-
intlService: d(this),
|
|
104
|
-
sender: this
|
|
105
|
-
}
|
|
106
|
-
);
|
|
89
|
+
this.gaugeInstance = new t(this.element, r, this.themeStore.getState(), {
|
|
90
|
+
rtl: this.getDirection(e),
|
|
91
|
+
intlService: d(this),
|
|
92
|
+
sender: this
|
|
93
|
+
});
|
|
107
94
|
}
|
|
108
95
|
/**
|
|
109
96
|
* @hidden
|
|
@@ -136,17 +123,11 @@ const n = class n extends c.Component {
|
|
|
136
123
|
* @hidden
|
|
137
124
|
*/
|
|
138
125
|
getGaugeOptions() {
|
|
139
|
-
const {
|
|
126
|
+
const { renderAs: e, transitions: t, deriveOptionsFromParent: r } = this.props;
|
|
127
|
+
let s = Object.assign({
|
|
140
128
|
renderAs: e,
|
|
141
|
-
transitions: t
|
|
142
|
-
|
|
143
|
-
} = this.props;
|
|
144
|
-
let s = Object.assign(
|
|
145
|
-
{
|
|
146
|
-
renderAs: e,
|
|
147
|
-
transitions: t
|
|
148
|
-
}
|
|
149
|
-
);
|
|
129
|
+
transitions: t
|
|
130
|
+
});
|
|
150
131
|
return r && (s = r(s)), s;
|
|
151
132
|
}
|
|
152
133
|
/**
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-gauges",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1725519170,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-gauges",
|
|
3
|
-
"version": "8.3.0-develop.
|
|
3
|
+
"version": "8.3.0-develop.12",
|
|
4
4
|
"description": "React Gauges provide a set of React components for building beautiful and customizable gauges. KendoReact Gauges package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-drawing": "^1.20.1",
|
|
26
26
|
"@progress/kendo-licensing": "^1.3.4",
|
|
27
|
-
"@progress/kendo-react-common": "8.3.0-develop.
|
|
28
|
-
"@progress/kendo-react-intl": "8.3.0-develop.
|
|
27
|
+
"@progress/kendo-react-common": "8.3.0-develop.12",
|
|
28
|
+
"@progress/kendo-react-intl": "8.3.0-develop.12",
|
|
29
29
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
30
30
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
31
31
|
},
|