cx 25.9.0 → 25.10.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cx",
3
- "version": "25.9.0",
3
+ "version": "25.10.0",
4
4
  "description": "Advanced JavaScript UI framework for admin and dashboard applications with ready to use grid, form and chart components.",
5
5
  "main": "index.js",
6
6
  "jsnext:main": "src/index.js",
@@ -220,6 +220,13 @@ export class Axis extends BoundedObject {
220
220
  }
221
221
 
222
222
  lines.forEach((p, i) => {
223
+ let data =
224
+ p.data != null
225
+ ? Object.entries(p.data).reduce((acc, [key, val]) => {
226
+ acc[`data-${key}`] = val;
227
+ return acc;
228
+ }, {})
229
+ : null;
223
230
  result.push(
224
231
  <tspan
225
232
  key={i}
@@ -228,6 +235,7 @@ export class Axis extends BoundedObject {
228
235
  style={p.style}
229
236
  className={p.className}
230
237
  dx={dx}
238
+ {...data}
231
239
  >
232
240
  {p.text}
233
241
  </tspan>,