vue-data-ui 3.4.8 → 3.5.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.
Files changed (114) hide show
  1. package/README.md +88 -37
  2. package/dist/{PackageVersion-D-auaEEJ.js → PackageVersion-Cyx_s25h.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-dashboard.js +1 -1
  12. package/dist/components/vue-ui-donut-evolution.js +1 -1
  13. package/dist/components/vue-ui-donut.js +1 -1
  14. package/dist/components/vue-ui-dumbbell.js +1 -1
  15. package/dist/components/vue-ui-flow.js +1 -1
  16. package/dist/components/vue-ui-funnel.js +1 -1
  17. package/dist/components/vue-ui-galaxy.js +1 -1
  18. package/dist/components/vue-ui-gauge.js +1 -1
  19. package/dist/components/vue-ui-gizmo.js +1 -1
  20. package/dist/components/vue-ui-heatmap.js +1 -1
  21. package/dist/components/vue-ui-history-plot.js +1 -1
  22. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  23. package/dist/components/vue-ui-molecule.js +1 -1
  24. package/dist/components/vue-ui-mood-radar.js +1 -1
  25. package/dist/components/vue-ui-nested-donuts.js +1 -1
  26. package/dist/components/vue-ui-onion.js +1 -1
  27. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  28. package/dist/components/vue-ui-quadrant.js +1 -1
  29. package/dist/components/vue-ui-quick-chart.js +1 -1
  30. package/dist/components/vue-ui-radar.js +1 -1
  31. package/dist/components/vue-ui-relation-circle.js +1 -1
  32. package/dist/components/vue-ui-ridgeline.js +1 -1
  33. package/dist/components/vue-ui-rings.js +1 -1
  34. package/dist/components/vue-ui-scatter.js +1 -1
  35. package/dist/components/vue-ui-skeleton.js +1 -1
  36. package/dist/components/vue-ui-spark-trend.js +1 -1
  37. package/dist/components/vue-ui-sparkbar.js +1 -1
  38. package/dist/components/vue-ui-sparkgauge.js +1 -1
  39. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  40. package/dist/components/vue-ui-sparkline.js +1 -1
  41. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  42. package/dist/components/vue-ui-stackbar.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-sparkline.js +1 -1
  45. package/dist/components/vue-ui-table.js +1 -1
  46. package/dist/components/vue-ui-thermometer.js +1 -1
  47. package/dist/components/vue-ui-timer.js +1 -1
  48. package/dist/components/vue-ui-tiremarks.js +1 -1
  49. package/dist/components/vue-ui-treemap.js +1 -1
  50. package/dist/components/vue-ui-vertical-bar.js +1 -1
  51. package/dist/components/vue-ui-waffle.js +1 -1
  52. package/dist/components/vue-ui-wheel.js +1 -1
  53. package/dist/components/vue-ui-word-cloud.js +1 -1
  54. package/dist/components/vue-ui-world.js +1 -1
  55. package/dist/components/vue-ui-xy-canvas.js +1 -1
  56. package/dist/components/vue-ui-xy.js +1 -1
  57. package/dist/style.css +1 -1
  58. package/dist/{vue-data-ui-CzqHcPqG.js → vue-data-ui-DxgRqCAo.js} +104 -98
  59. package/dist/vue-data-ui.js +54 -54
  60. package/dist/{vue-ui-3d-bar-CwXiD8zD.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
  61. package/dist/{vue-ui-age-pyramid-DlEPlWmV.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
  62. package/dist/{vue-ui-bullet-DtzpeIu4.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
  63. package/dist/{vue-ui-candlestick-DzoiyaeB.js → vue-ui-candlestick-DewevWV_.js} +1 -1
  64. package/dist/{vue-ui-carousel-table-BqRERrjs.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
  65. package/dist/{vue-ui-chestnut-CzBGckif.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
  66. package/dist/{vue-ui-chord-B4waG93A.js → vue-ui-chord-BG4dxKNA.js} +1 -1
  67. package/dist/{vue-ui-circle-pack-DiTw_p5r.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
  68. package/dist/{vue-ui-dashboard-Bt-MUKqy.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
  69. package/dist/{vue-ui-donut-Bc492JeS.js → vue-ui-donut-BRGFcgxS.js} +542 -526
  70. package/dist/{vue-ui-donut-evolution-D6TaZK2x.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
  71. package/dist/{vue-ui-dumbbell-BlZr68Sq.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
  72. package/dist/{vue-ui-flow-ByEP18dA.js → vue-ui-flow-CTYFoib3.js} +1 -1
  73. package/dist/{vue-ui-funnel-BU7d_U6T.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
  74. package/dist/{vue-ui-galaxy-CpVrxaTr.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
  75. package/dist/{vue-ui-gauge-B9Z4EXoj.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
  76. package/dist/{vue-ui-gizmo-T1paJEJ3.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
  77. package/dist/{vue-ui-heatmap-Uw83eEMz.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
  78. package/dist/{vue-ui-history-plot-C93VwVCY.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
  79. package/dist/{vue-ui-molecule-CFMWwXFN.js → vue-ui-molecule-BALqwB8c.js} +1 -1
  80. package/dist/{vue-ui-mood-radar-FkVaaOVG.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
  81. package/dist/{vue-ui-nested-donuts-Cyi98NXq.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
  82. package/dist/{vue-ui-onion-BCENNhsY.js → vue-ui-onion-DAOCf3f8.js} +331 -309
  83. package/dist/{vue-ui-parallel-coordinate-plot-Dca9wkD0.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
  84. package/dist/{vue-ui-quadrant-CEtFEZT3.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
  85. package/dist/{vue-ui-quick-chart-bqcp6BIl.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
  86. package/dist/{vue-ui-radar-lgRCmyNP.js → vue-ui-radar-C5V4hhbW.js} +393 -374
  87. package/dist/{vue-ui-relation-circle-cRRrbaIT.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
  88. package/dist/{vue-ui-ridgeline-CaeFJq9a.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
  89. package/dist/{vue-ui-rings-DbsYfGjx.js → vue-ui-rings-BpUcyqo7.js} +285 -263
  90. package/dist/{vue-ui-scatter-DcMnoNrY.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
  91. package/dist/{vue-ui-skeleton-b5fdgyHv.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
  92. package/dist/{vue-ui-spark-trend-DrQ26BzL.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
  93. package/dist/{vue-ui-sparkbar-BlvXLcfO.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
  94. package/dist/{vue-ui-sparkgauge-CQmNePxu.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
  95. package/dist/{vue-ui-sparkhistogram-CJatqy8x.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
  96. package/dist/{vue-ui-sparkline-5m7hFiMq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
  97. package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
  98. package/dist/{vue-ui-stackbar-WrexTg8_.js → vue-ui-stackbar-CkBOjryQ.js} +438 -421
  99. package/dist/{vue-ui-strip-plot-DqX7yya9.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
  100. package/dist/{vue-ui-table-BhrP9BCp.js → vue-ui-table-7r02N9R9.js} +2 -2
  101. package/dist/{vue-ui-table-sparkline-BECa8n5_.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
  102. package/dist/{vue-ui-thermometer-BxBGrsSR.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
  103. package/dist/{vue-ui-timer-BbHY5Ed5.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
  104. package/dist/{vue-ui-tiremarks-DzL3Sc1f.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
  105. package/dist/{vue-ui-treemap-DoHoS5NK.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
  106. package/dist/{vue-ui-vertical-bar-D0N5btU-.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
  107. package/dist/{vue-ui-waffle-CTt7dxCY.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
  108. package/dist/{vue-ui-wheel--TIPvQ9I.js → vue-ui-wheel-BpirIgAG.js} +1 -1
  109. package/dist/{vue-ui-word-cloud-D5pZq4Jq.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
  110. package/dist/{vue-ui-world-BERHgePa.js → vue-ui-world-CdP4g_3_.js} +1 -1
  111. package/dist/{vue-ui-xy-BI5stV8f.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
  112. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
  113. package/package.json +1 -1
  114. package/dist/vue-ui-sparkstackbar-Z5g6L2Hj.js +0 -424
@@ -1,24 +1,24 @@
1
- import { defineAsyncComponent as M, computed as c, ref as i, shallowRef as rt, toRefs as sa, onBeforeUnmount as ut, watch as K, nextTick as $e, watchEffect as na, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as w, normalizeClass as oe, createBlock as S, createCommentVNode as h, renderSlot as p, createElementVNode as y, createSlots as _e, withCtx as g, normalizeProps as se, guardReactiveProps as ne, createVNode as Se, Fragment as m, renderList as k, mergeProps as Te, toDisplayString as R, resolveDynamicComponent as ra, createTextVNode as Pe } from "vue";
2
- import { c as Oe, t as ua, e as ia, h as ca, p as re, ak as it, C as va, B as ct, z as ha, a9 as da, X as ya, J as ga, M as fa, a as ue, d as ie, b as pa, f as Me, g as vt, o as ma, P as ba, Q as xa, a4 as ka } from "./lib-C_mNZmhD.js";
3
- import { t as ht, u as Aa } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ca, a as dt } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as wa, B as $a } from "./BaseScanner-BgWxam9d.js";
6
- import { u as _a } from "./usePrinter-DTzqpYKF.js";
7
- import { u as Sa } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Ta } from "./useTimeLabels-BGFjWgrv.js";
9
- import { u as Pa } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as Oa } from "./useChartAccessibility-9icAAmYg.js";
11
- import { u as Ma } from "./useTimeLabelCollider-CIsgDrl9.js";
12
- import { t as La } from "./themes-AUNCOb2G.js";
13
- import za from "./Legend-G6GMcdAc.js";
14
- import Da from "./Title-l36lOBMx.js";
15
- import { _ as Ia } from "./Shape-CNXKB8O0.js";
16
- import Na from "./img-BecE5qXd.js";
17
- import { _ as Fa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"], Xa = ["stop-color"], Ua = ["stop-color"], Va = ["stop-color"], Ga = ["id"], Wa = ["stop-color"], Ya = ["stop-color"], ja = ["stop-color"], qa = ["stop-color"], Ja = { key: 0 }, Qa = ["fill", "d"], Ka = ["stroke", "stroke-width", "d"], Za = ["fill", "d"], el = ["stroke", "stroke-dasharray", "stroke-width", "d"], tl = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], al = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], ll = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], ol = { key: 0 }, sl = ["font-size", "fill", "font-weight", "transform", "text-anchor"], nl = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], rl = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], il = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], cl = ["x", "y", "text-anchor", "font-size", "fill"], vl = {
1
+ import { defineAsyncComponent as M, computed as c, ref as i, shallowRef as ut, toRefs as ua, onBeforeUnmount as it, watch as Z, nextTick as _e, watchEffect as ia, createElementBlock as r, openBlock as n, unref as u, normalizeStyle as $, normalizeClass as se, createBlock as T, createCommentVNode as h, renderSlot as p, createElementVNode as f, createSlots as Se, withCtx as g, normalizeProps as ne, guardReactiveProps as re, createVNode as Te, Fragment as m, renderList as k, mergeProps as Pe, toDisplayString as F, resolveDynamicComponent as ca, createTextVNode as Oe } from "vue";
2
+ import { c as Me, t as va, e as ha, h as da, p as ue, ak as ct, C as fa, B as vt, z as ga, a9 as ya, X as pa, J as ma, M as ba, a as ie, d as ce, b as xa, f as Le, g as ht, o as ka, P as Aa, Q as Ca, a4 as wa } from "./lib-C_mNZmhD.js";
3
+ import { t as dt, u as $a } from "./useResponsive-DfdjqQps.js";
4
+ import { u as _a, a as ft } from "./useNestedProp-BjZe1Y85.js";
5
+ import { u as Sa, B as Ta } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Pa } from "./usePrinter-DTzqpYKF.js";
7
+ import { u as Oa } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Ma } from "./useTimeLabels-BGFjWgrv.js";
9
+ import { u as La } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as za } from "./useChartAccessibility-9icAAmYg.js";
11
+ import { u as Da } from "./useTimeLabelCollider-CIsgDrl9.js";
12
+ import { t as Ia } from "./themes-AUNCOb2G.js";
13
+ import Ra from "./Legend-G6GMcdAc.js";
14
+ import Na from "./Title-l36lOBMx.js";
15
+ import { _ as Fa } from "./Shape-CNXKB8O0.js";
16
+ import Ea from "./img-BecE5qXd.js";
17
+ import { _ as Ba } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
+ const Ha = ["id"], Xa = ["xmlns", "viewBox"], Ua = ["id"], Va = ["stop-color"], Ga = ["stop-color"], Wa = ["stop-color"], Ya = ["stop-color"], ja = ["id"], qa = ["stop-color"], Ja = ["stop-color"], Qa = ["stop-color"], Ka = ["stop-color"], Za = { key: 0 }, el = ["fill", "d"], tl = ["stroke", "stroke-width", "d"], al = ["fill", "d"], ll = ["stroke", "stroke-dasharray", "stroke-width", "d"], ol = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], sl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], nl = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], rl = { key: 0 }, ul = ["font-size", "fill", "font-weight", "transform", "text-anchor"], il = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], cl = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], hl = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], dl = ["x", "y", "text-anchor", "font-size", "fill"], fl = {
19
19
  key: 4,
20
20
  class: "vue-data-ui-watermark"
21
- }, hl = ["onClick"], dl = ["innerHTML"], yl = {
21
+ }, gl = ["onClick"], yl = ["innerHTML"], pl = {
22
22
  __name: "vue-ui-ridgeline",
23
23
  props: {
24
24
  config: {
@@ -35,32 +35,32 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
35
35
  }
36
36
  },
37
37
  emits: ["selectLegend", "selectDatapoint", "selectX"],
38
- setup(yt, { expose: gt, emit: ft }) {
39
- const pt = M(() => import("./vue-ui-xy-BI5stV8f.js")), mt = M(() => import("./BaseIcon-BmMbm4d0.js")), bt = M(() => import("./vue-ui-accordion-CZ0thhxa.js")), xt = M(() => import("./DataTable-BT7VF2ua.js")), kt = M(() => import("./PenAndPaper-DSvu9dwa.js")), At = M(() => import("./UserOptions-CGnQt6Fd.js")), Ct = M(() => import("./PackageVersion-D-auaEEJ.js")), Le = M(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_ridgeline: wt } = Ca(), E = yt, U = c({
38
+ setup(gt, { expose: yt, emit: pt }) {
39
+ const mt = M(() => import("./vue-ui-xy-B68qQ-gX.js")), bt = M(() => import("./BaseIcon-BmMbm4d0.js")), xt = M(() => import("./vue-ui-accordion-CZ0thhxa.js")), kt = M(() => import("./DataTable-BT7VF2ua.js")), At = M(() => import("./PenAndPaper-DSvu9dwa.js")), Ct = M(() => import("./UserOptions-CGnQt6Fd.js")), wt = M(() => import("./PackageVersion-Cyx_s25h.js")), ze = M(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_ridgeline: $t } = _a(), E = gt, V = c({
40
40
  get() {
41
41
  return Array.isArray(z.value) && z.value.length > 0;
42
42
  },
43
43
  set(t) {
44
44
  return t;
45
45
  }
46
- }), ce = ft, $ = i(null), ze = i(null), De = i(null), T = rt(null), L = rt(null), Ie = i(null), Ne = i(null), ve = i(0), $t = i(0), he = i(0), A = i(Oe()), Fe = i(0), _t = i(0), Re = i(512), d = i(null), B = i(null), de = i(null), Ee = i(0), ye = i(null), V = i(null), ge = i(null);
47
- function fe() {
48
- const t = dt({
46
+ }), ve = pt, _ = i(null), De = i(null), Ie = i(null), P = ut(null), L = ut(null), Re = i(null), Ne = i(null), he = i(0), _t = i(0), de = i(0), A = i(Me()), Fe = i(0), St = i(0), Ee = i(512), d = i(null), B = i(null), fe = i(null), Be = i(0), ge = i(null), G = i(null), ye = i(null);
47
+ function pe() {
48
+ const t = ft({
49
49
  userConfig: E.config,
50
- defaultConfig: wt
50
+ defaultConfig: $t
51
51
  });
52
52
  return t.theme ? {
53
- ...dt({
54
- userConfig: La.vue_ui_ridgeline[t.theme] || E.config,
53
+ ...ft({
54
+ userConfig: Ia.vue_ui_ridgeline[t.theme] || E.config,
55
55
  defaultConfig: t
56
56
  }),
57
- customPalette: pa[t.theme] || re
57
+ customPalette: xa[t.theme] || ue
58
58
  } : t;
59
59
  }
60
- const e = i(fe()), { loading: G, FINAL_DATASET: z, manualLoading: pe } = wa({
61
- ...sa(E),
60
+ const e = i(pe()), { loading: W, FINAL_DATASET: z, manualLoading: me } = Sa({
61
+ ...ua(E),
62
62
  FINAL_CONFIG: e,
63
- prepareConfig: fe,
63
+ prepareConfig: pe,
64
64
  skeletonDataset: [
65
65
  {
66
66
  name: "_",
@@ -153,7 +153,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
153
153
  ]
154
154
  }
155
155
  ],
156
- skeletonConfig: ua({
156
+ skeletonConfig: va({
157
157
  defaultConfig: e.value,
158
158
  userConfig: {
159
159
  userOptions: { show: !1 },
@@ -196,243 +196,257 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
196
196
  e.value.style.chart.areas.height,
197
197
  e.value.style.chart.areas.rowHeight
198
198
  )), {
199
- userOptionsVisible: Z,
200
- setUserOptionsVisibility: Be,
201
- keepUserOptionState: He
202
- } = Pa({ config: e.value }), { svgRef: ee } = Oa({ config: e.value.style.chart.title }), me = c(() => !!e.value.debug);
203
- function Xe() {
199
+ userOptionsVisible: ee,
200
+ setUserOptionsVisibility: He,
201
+ keepUserOptionState: Xe
202
+ } = La({ config: e.value }), { svgRef: te } = za({ config: e.value.style.chart.title }), be = c(() => !!e.value.debug);
203
+ function Ue() {
204
204
  const t = z.value || [];
205
205
  if (!Array.isArray(t) || t.length === 0) {
206
- Me({ componentName: "VueUiRidgeline", type: "dataset", debug: me.value }), pe.value = !0;
206
+ Le({ componentName: "VueUiRidgeline", type: "dataset", debug: be.value }), me.value = !0;
207
207
  return;
208
208
  }
209
- if (t.forEach((o, a) => {
210
- vt({
211
- datasetObject: o,
209
+ if (t.forEach((l, a) => {
210
+ ht({
211
+ datasetObject: l,
212
212
  requiredAttributes: ["name", "datapoints"]
213
213
  }).forEach((s) => {
214
- U.value = !1, Me({
214
+ V.value = !1, Le({
215
215
  componentName: "VueUiRidgeline",
216
216
  type: "datasetSerieAttribute",
217
217
  property: s,
218
218
  index: a,
219
- debug: me.value
219
+ debug: be.value
220
220
  });
221
- }), Array.isArray(o.datapoints) && o.datapoints.length && o.datapoints.forEach((s, l) => {
222
- vt({
221
+ }), Array.isArray(l.datapoints) && l.datapoints.length && l.datapoints.forEach((s, o) => {
222
+ ht({
223
223
  datasetObject: s,
224
224
  requiredAttributes: ["name", "values"]
225
225
  }).forEach((v) => {
226
- U.value = !1, Me({
226
+ V.value = !1, Le({
227
227
  componentName: "VueUiRidgeline",
228
228
  type: "datasetSerieAttribute",
229
229
  property: `datapoint.${v}`,
230
- index: `${a}-${l}`,
231
- debug: me.value
230
+ index: `${a}-${o}`,
231
+ debug: be.value
232
232
  });
233
233
  });
234
234
  });
235
- }), _t.value = t.length, C.value = Math.min(
235
+ }), St.value = t.length, C.value = Math.min(
236
236
  e.value.style.chart.areas.height,
237
237
  e.value.style.chart.areas.rowHeight
238
- ), ma(E.dataset) || (pe.value = e.value.loading), e.value.responsive) {
239
- const o = ht(() => {
240
- const { width: a, height: s } = Aa({
241
- chart: $.value,
242
- title: e.value.style.chart.title.text ? ze.value : null,
243
- legend: e.value.style.chart.legend.show ? De.value : null,
244
- source: Ie.value,
238
+ ), ka(E.dataset) || (me.value = e.value.loading), e.value.responsive) {
239
+ const l = dt(() => {
240
+ const { width: a, height: s } = $a({
241
+ chart: _.value,
242
+ title: e.value.style.chart.title.text ? De.value : null,
243
+ legend: e.value.style.chart.legend.show ? Ie.value : null,
244
+ source: Re.value,
245
245
  noTitle: Ne.value,
246
246
  padding: e.value.style.chart.padding
247
247
  });
248
248
  requestAnimationFrame(() => {
249
- Re.value = a, C.value = t.length ? s / t.length : 0, Ee.value = s - 12;
249
+ Ee.value = a, C.value = t.length ? s / t.length : 0, Be.value = s - 12;
250
250
  });
251
251
  });
252
- T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect()), T.value = new ResizeObserver(o), L.value = $.value?.parentNode || null, L.value && T.value.observe(L.value);
252
+ P.value && (L.value && P.value.unobserve(L.value), P.value.disconnect()), P.value = new ResizeObserver(l), L.value = _.value?.parentNode || null, L.value && P.value.observe(L.value);
253
253
  }
254
254
  }
255
- ut(() => {
256
- T.value && (L.value && T.value.unobserve(L.value), T.value.disconnect());
255
+ it(() => {
256
+ P.value && (L.value && P.value.unobserve(L.value), P.value.disconnect());
257
257
  });
258
- const { isPrinting: Ue, isImaging: Ve, generatePdf: Ge, generateImage: We } = _a({
258
+ const { isPrinting: Ve, isImaging: Ge, generatePdf: We, generateImage: Ye } = Pa({
259
259
  elementId: `vue-ui-ridgeline_${A.value}`,
260
260
  fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
261
261
  options: e.value.userOptions.print
262
- }), St = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Tt = c(() => ia(e.value.customPalette)), D = i({
262
+ }), Tt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pt = c(() => ha(e.value.customPalette)), D = i({
263
263
  showTable: e.value.table.show
264
264
  });
265
- K(
265
+ Z(
266
266
  () => z.value,
267
267
  async (t) => {
268
- Array.isArray(t) && t.length && (Z.value = !e.value.userOptions.showOnChartHover, await $e(), Xe(), ve.value += 1, he.value += 1, D.value.showTable = e.value.table.show);
268
+ Array.isArray(t) && t.length && (ee.value = !e.value.userOptions.showOnChartHover, await _e(), Ue(), he.value += 1, de.value += 1, D.value.showTable = e.value.table.show);
269
269
  },
270
270
  { deep: !0, immediate: !0 }
271
- ), K(() => E.dataset, (t) => {
272
- Array.isArray(t) && t.length > 0 && (pe.value = !1);
273
- }, { deep: !0 }), K(
274
- () => G.value,
271
+ ), Z(() => E.dataset, (t) => {
272
+ Array.isArray(t) && t.length > 0 && (me.value = !1);
273
+ }, { deep: !0 }), Z(
274
+ () => W.value,
275
275
  async (t) => {
276
- t || (await $e(), Xe());
276
+ t || (await _e(), Ue());
277
277
  },
278
278
  { immediate: !0 }
279
- ), K(
279
+ ), Z(
280
280
  () => E.config,
281
281
  () => {
282
- e.value = fe(z.value || null), Z.value = !e.value.userOptions.showOnChartHover, C.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), D.value.showTable = e.value.table.show, ve.value += 1, he.value += 1;
282
+ e.value = pe(z.value || null), ee.value = !e.value.userOptions.showOnChartHover, C.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), D.value.showTable = e.value.table.show, he.value += 1, de.value += 1;
283
283
  },
284
284
  { deep: !0 }
285
285
  );
286
- const be = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
287
- function Ye(t) {
288
- O.value.includes(t) ? O.value = O.value.filter((o) => o !== t) : O.value.push(t), ce("selectLegend", X.value);
286
+ const xe = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
287
+ function ae(t) {
288
+ w.value.includes(t) ? w.value = w.value.filter((l) => l !== t) : w.value.push(t), ve("selectLegend", X.value);
289
289
  }
290
- const P = c(() => U.value ? (z.value || []).map((t) => ({
290
+ function je(t) {
291
+ if (!U.value.length)
292
+ return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
293
+ const l = U.value.find((a) => a.name === t);
294
+ return l || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${t}"`), null);
295
+ }
296
+ function Ot(t) {
297
+ const l = je(t);
298
+ l !== null && w.value.includes(l.id) && ae(l.id);
299
+ }
300
+ function Mt(t) {
301
+ const l = je(t);
302
+ l !== null && (w.value.includes(l.id) || ae(l.id));
303
+ }
304
+ const O = c(() => V.value ? (z.value || []).map((t) => ({
291
305
  ...t,
292
- labelLen: Nt(t.name, e.value.style.chart.yAxis.labels.fontSize),
293
- uid: Oe(),
294
- datapoints: t.datapoints.map((o, a) => {
295
- const s = o.color ? ca(o.color) : Tt.value[a] || re[a] || re[a % re.length], l = it(o.name);
296
- return { ...o, color: s, id: l };
306
+ labelLen: Et(t.name, e.value.style.chart.yAxis.labels.fontSize),
307
+ uid: Me(),
308
+ datapoints: t.datapoints.map((l, a) => {
309
+ const s = l.color ? da(l.color) : Pt.value[a] || ue[a] || ue[a % ue.length], o = ct(l.name);
310
+ return { ...l, color: s, id: o };
297
311
  })
298
- })) : []), je = c(() => e.value.style.chart.padding.top + C.value * (z.value || []).length + C.value * be.value + e.value.style.chart.padding.bottom), f = c(() => {
312
+ })) : []), qe = c(() => e.value.style.chart.padding.top + C.value * (z.value || []).length + C.value * xe.value + e.value.style.chart.padding.bottom), y = c(() => {
299
313
  const t = e.value.style.chart.padding;
300
314
  return {
301
- width: Re.value,
302
- height: je.value,
315
+ width: Ee.value,
316
+ height: qe.value,
303
317
  padding: t
304
318
  };
305
- }), Pt = c(() => f.value.width), Ot = c(() => f.value.height), xe = i(0), Mt = ht((t) => {
306
- xe.value = t;
319
+ }), Lt = c(() => y.value.width), zt = c(() => y.value.height), ke = i(0), Dt = dt((t) => {
320
+ ke.value = t;
307
321
  }, 100);
308
- na((t) => {
309
- const o = ye.value;
310
- if (!o) return;
322
+ ia((t) => {
323
+ const l = ge.value;
324
+ if (!l) return;
311
325
  const a = new ResizeObserver((s) => {
312
- Mt(s[0].contentRect.height);
326
+ Dt(s[0].contentRect.height);
313
327
  });
314
- a.observe(o), t(() => a.disconnect());
315
- }), ut(() => {
316
- xe.value = 0;
328
+ a.observe(l), t(() => a.disconnect());
329
+ }), it(() => {
330
+ ke.value = 0;
317
331
  });
318
332
  const b = c(() => ({
319
- fullHeight: f.value.height + xe.value,
320
- top: f.value.padding.top,
321
- left: f.value.padding.left,
322
- right: f.value.width - f.value.padding.right,
323
- bottom: f.value.height - e.value.style.chart.padding.bottom,
324
- width: f.value.width - (f.value.padding.left + f.value.padding.right)
325
- })), W = c(() => Math.max(...P.value.flatMap((t) => t.datapoints.map((o) => o.values.length)))), Y = c(() => Ta({
333
+ fullHeight: y.value.height + ke.value,
334
+ top: y.value.padding.top,
335
+ left: y.value.padding.left,
336
+ right: y.value.width - y.value.padding.right,
337
+ bottom: y.value.height - e.value.style.chart.padding.bottom,
338
+ width: y.value.width - (y.value.padding.left + y.value.padding.right)
339
+ })), Y = c(() => Math.max(...O.value.flatMap((t) => t.datapoints.map((l) => l.values.length)))), j = c(() => Ma({
326
340
  values: e.value.style.chart.xAxis.labels.values,
327
- maxDatapoints: W.value,
341
+ maxDatapoints: Y.value,
328
342
  formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
329
343
  start: 0,
330
344
  end: e.value.style.chart.xAxis.labels.values.length
331
345
  })), H = c(() => {
332
- const t = Math.max(...P.value.map((l) => l.labelLen)), o = f.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (b.value.width - o) / W.value, s = [];
333
- for (let l = 0; l < W.value; l += 1)
346
+ const t = Math.max(...O.value.map((o) => o.labelLen)), l = y.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (b.value.width - l) / Y.value, s = [];
347
+ for (let o = 0; o < Y.value; o += 1)
334
348
  s.push({
335
- selectorX: o + a * l,
336
- x: o + a * l - a / 2,
349
+ selectorX: l + a * o,
350
+ x: l + a * o - a / 2,
337
351
  y: b.value.top,
338
- label: e.value.style.chart.xAxis.labels.values[l] ? Y.value[l].text : "",
339
- index: l,
352
+ label: e.value.style.chart.xAxis.labels.values[o] ? j.value[o].text : "",
353
+ index: o,
340
354
  width: a,
341
- height: je.value
355
+ height: qe.value
342
356
  });
343
357
  return s;
344
358
  });
345
- function ke(t) {
346
- return P.value.map((o) => o.datapoints.map((a) => ({
359
+ function Ae(t) {
360
+ return O.value.map((l) => l.datapoints.map((a) => ({
347
361
  dp: a,
348
362
  selected: a.values[t.index]
349
363
  })));
350
364
  }
351
- function Lt(t) {
365
+ function It(t) {
352
366
  d.value = t;
353
- const o = ke(t);
354
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t.index });
367
+ const l = Ae(t);
368
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t.index });
355
369
  }
356
- function zt(t) {
370
+ function Rt(t) {
357
371
  d.value = null;
358
- const o = ke(t);
359
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: o, seriesIndex: t.index });
372
+ const l = Ae(t);
373
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t.index });
360
374
  }
361
- function Dt(t) {
362
- const o = ke(t);
363
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: t.index }), ce("selectX", o);
375
+ function Nt(t) {
376
+ const l = Ae(t);
377
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t.index }), ve("selectX", l);
364
378
  }
365
- function It(t, o) {
366
- return t.length * o / 2 + o;
379
+ function Ft(t, l) {
380
+ return t.length * l / 2 + l;
367
381
  }
368
- function qe(t, o, a) {
369
- const s = It(o, a);
382
+ function Je(t, l, a) {
383
+ const s = Ft(l, a);
370
384
  return t + s > b.value.right;
371
385
  }
372
- function Nt(t, o, a = "sans-serif") {
373
- const l = document.createElement("canvas").getContext("2d"), v = typeof o == "number" ? `${o}px` : o;
374
- return l.font = `${v} ${a}`, l.measureText(t).width;
386
+ function Et(t, l, a = "sans-serif") {
387
+ const o = document.createElement("canvas").getContext("2d"), v = typeof l == "number" ? `${l}px` : l;
388
+ return o.font = `${v} ${a}`, o.measureText(t).width;
375
389
  }
376
390
  const X = c(() => {
377
391
  C.value;
378
- const t = Math.max(...P.value.map((x) => x.labelLen)), o = Math.max(...P.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), a = Math.min(...P.value.flatMap((x) => x.datapoints.flatMap((q) => q.values))), s = f.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, l = (b.value.width - s) / W.value, v = Math.abs(Math.min(a, 0)), _ = o + v;
379
- function lt(x) {
380
- return isNaN(x / _) ? 0 : x / _;
392
+ const t = Math.max(...O.value.map((x) => x.labelLen)), l = Math.max(...O.value.flatMap((x) => x.datapoints.flatMap((J) => J.values))), a = Math.min(...O.value.flatMap((x) => x.datapoints.flatMap((J) => J.values))), s = y.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, o = (b.value.width - s) / Y.value, v = Math.abs(Math.min(a, 0)), S = l + v;
393
+ function ot(x) {
394
+ return isNaN(x / S) ? 0 : x / S;
381
395
  }
382
- return P.value.map((x, q) => {
383
- const ot = b.value.top + C.value * q, N = b.value.top + ot + C.value * be.value * (1 - lt(v));
396
+ return O.value.map((x, J) => {
397
+ const st = b.value.top + C.value * J, R = b.value.top + st + C.value * xe.value * (1 - ot(v));
384
398
  return {
385
399
  ...x,
386
400
  label: {
387
401
  x: s - e.value.style.chart.yAxis.labels.fontSize,
388
- y: N
402
+ y: R
389
403
  },
390
- datapoints: x.datapoints.map((J) => {
391
- const F = J.values.map((Q, ea) => {
392
- const ta = isNaN(Q) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(Q) ? 0 : Q || 0, aa = s + l * ea, la = b.value.top + ot + C.value * be.value * (1 - lt(ta + v)), oa = Q === Math.max(...J.values);
404
+ datapoints: x.datapoints.map((Q) => {
405
+ const N = Q.values.map((K, la) => {
406
+ const oa = isNaN(K) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(K) ? 0 : K || 0, sa = s + o * la, na = b.value.top + st + C.value * xe.value * (1 - ot(oa + v)), ra = K === Math.max(...Q.values);
393
407
  return {
394
- x: aa,
395
- y: la,
396
- value: Q,
397
- isMaxPoint: oa,
398
- zero: N
408
+ x: sa,
409
+ y: na,
410
+ value: K,
411
+ isMaxPoint: ra,
412
+ zero: R
399
413
  };
400
- }), Jt = `${va(F, N, !1, !1)}`, Qt = `M ${s},${N} ${ct(F)} ${F.at(-1).x},${N}`, Kt = `M ${s},${N} ${F.at(-1).x},${N}`, st = `M ${ha(F)}`, nt = `M ${ct(F)}`, Zt = da(
401
- e.value.style.chart.areas.smooth ? st : nt
414
+ }), Zt = `${fa(N, R, !1, !1)}`, ea = `M ${s},${R} ${vt(N)} ${N.at(-1).x},${R}`, ta = `M ${s},${R} ${N.at(-1).x},${R}`, nt = `M ${ga(N)}`, rt = `M ${vt(N)}`, aa = ya(
415
+ e.value.style.chart.areas.smooth ? nt : rt
402
416
  );
403
417
  return {
404
- ...J,
405
- uid: Oe(),
406
- plots: F,
407
- smoothPath: Jt,
408
- straightPath: Qt,
409
- zeroPath: Kt,
410
- pathLength: Zt,
411
- smoothPathRidge: st,
412
- straightPathRidge: nt
418
+ ...Q,
419
+ uid: Me(),
420
+ plots: N,
421
+ smoothPath: Zt,
422
+ straightPath: ea,
423
+ zeroPath: ta,
424
+ pathLength: aa,
425
+ smoothPathRidge: nt,
426
+ straightPathRidge: rt
413
427
  };
414
- }).filter((J) => !O.value.includes(J.id))
428
+ }).filter((Q) => !w.value.includes(Q.id))
415
429
  };
416
430
  });
417
- }), O = i([]);
418
- function Ft(t) {
419
- const o = /* @__PURE__ */ new Map();
431
+ }), w = i([]);
432
+ function Bt(t) {
433
+ const l = /* @__PURE__ */ new Map();
420
434
  return t.forEach((a) => {
421
- a.datapoints.forEach((s, l) => {
422
- const v = it(s.name);
423
- o.has(v) || o.set(v, {
435
+ a.datapoints.forEach((s, o) => {
436
+ const v = ct(s.name);
437
+ l.has(v) || l.set(v, {
424
438
  id: v,
425
439
  name: s.name,
426
440
  color: s.color,
427
441
  shape: "circle",
428
- segregate: () => Ye(v),
429
- isSegregated: O.value.includes(v),
430
- opacity: O.value.includes(v) ? 0.5 : 1
442
+ segregate: () => ae(v),
443
+ isSegregated: w.value.includes(v),
444
+ opacity: w.value.includes(v) ? 0.5 : 1
431
445
  });
432
446
  });
433
- }), Array.from(o.values());
447
+ }), Array.from(l.values());
434
448
  }
435
- const te = c(() => Ft(P.value)), Rt = c(() => ({
449
+ const U = c(() => Bt(O.value)), Ht = c(() => ({
436
450
  cy: "donut-div-legend",
437
451
  backgroundColor: e.value.style.chart.legend.backgroundColor,
438
452
  color: e.value.style.chart.legend.color,
@@ -440,19 +454,19 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
440
454
  paddingBottom: 12,
441
455
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
442
456
  })), I = i(!1);
443
- function Je(t) {
457
+ function Qe(t) {
444
458
  I.value = t, Fe.value += 1;
445
459
  }
446
- const Qe = i({}), Ke = i([]);
447
- function Et(t) {
448
- ce("selectDatapoint", t), e.value.style.chart.dialog.show && (Ke.value = t.datapoints.map((o) => ({
449
- name: o.name,
450
- color: o.color,
460
+ const Ke = i({}), Ze = i([]);
461
+ function Xt(t) {
462
+ ve("selectDatapoint", t), e.value.style.chart.dialog.show && (Ze.value = t.datapoints.map((l) => ({
463
+ name: l.name,
464
+ color: l.color,
451
465
  type: "line",
452
466
  useArea: !0,
453
467
  smooth: e.value.style.chart.areas.smooth,
454
- series: o.values
455
- })), B.value = t, Qe.value = ka({
468
+ series: l.values
469
+ })), B.value = t, Ke.value = wa({
456
470
  ...e.value.style.chart.dialog.xyChart,
457
471
  responsive: !0,
458
472
  // Overriding
@@ -482,23 +496,23 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
482
496
  // Overriding
483
497
  }
484
498
  }
485
- }), de.value && de.value.open());
499
+ }), fe.value && fe.value.open());
486
500
  }
487
- const Ae = i(null);
488
- function Bt(t) {
489
- Ae.value = t;
501
+ const Ce = i(null);
502
+ function Ut(t) {
503
+ Ce.value = t;
490
504
  }
491
- function Ht() {
492
- Ae.value = null;
505
+ function Vt() {
506
+ Ce.value = null;
493
507
  }
494
- const ae = i(!1);
495
- function Ce() {
496
- ae.value = !ae.value;
508
+ const le = i(!1);
509
+ function we() {
510
+ le.value = !le.value;
497
511
  }
498
- function Ze() {
512
+ function et() {
499
513
  D.value.showTable = !D.value.showTable;
500
514
  }
501
- const et = c(() => ({ body: X.value.flatMap((a) => a.datapoints.flatMap((s) => ({
515
+ const tt = c(() => ({ body: X.value.flatMap((a) => a.datapoints.flatMap((s) => ({
502
516
  ...s,
503
517
  rowName: `${a.name}: ${s.name}`
504
518
  }))).map((a) => [
@@ -507,11 +521,11 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
507
521
  color: a.color
508
522
  },
509
523
  ...a.values
510
- ]) })), le = c(() => {
524
+ ]) })), oe = c(() => {
511
525
  const t = [
512
526
  e.value.table.columnNames.series,
513
- ...Y.value.map((s) => s.text)
514
- ], o = {
527
+ ...j.value.map((s) => s.text)
528
+ ], l = {
515
529
  th: {
516
530
  backgroundColor: e.value.table.th.backgroundColor,
517
531
  color: e.value.table.th.color,
@@ -527,61 +541,61 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
527
541
  return {
528
542
  colNames: [
529
543
  e.value.table.columnNames.series,
530
- ...Y.value.map((s) => s.text)
544
+ ...j.value.map((s) => s.text)
531
545
  ],
532
546
  head: t,
533
- body: et.value.body,
534
- config: o
547
+ body: tt.value.body,
548
+ config: l
535
549
  };
536
550
  });
537
- function we(t = null) {
538
- $e(() => {
539
- const o = [
540
- [e.value.table.columnNames.series, ...Y.map((l) => [l.text])],
541
- ...et.value.body.map((l, v) => [l[0].name, ...l.slice(1)])
551
+ function $e(t = null) {
552
+ _e(() => {
553
+ const l = [
554
+ [e.value.table.columnNames.series, ...j.map((o) => [o.text])],
555
+ ...tt.value.body.map((o, v) => [o[0].name, ...o.slice(1)])
542
556
  ], a = [
543
557
  [e.value.style.chart.title.text],
544
558
  [e.value.style.chart.title.subtitle.text]
545
- ].concat(o), s = ba(a);
546
- t ? t(s) : xa({
559
+ ].concat(l), s = Aa(a);
560
+ t ? t(s) : Ca({
547
561
  csvContent: s,
548
562
  title: e.value.style.chart.title.text || "vue-ui-ridgeline"
549
563
  });
550
564
  });
551
565
  }
552
- function Xt() {
566
+ function Gt() {
553
567
  return X.value;
554
568
  }
555
- async function Ut({ scale: t = 2 } = {}) {
556
- if (!$.value) return;
557
- const { width: o, height: a } = $.value.getBoundingClientRect(), s = o / a, { imageUri: l, base64: v } = await Na({ domElement: $.value, base64: !0, img: !0, scale: t });
569
+ async function Wt({ scale: t = 2 } = {}) {
570
+ if (!_.value) return;
571
+ const { width: l, height: a } = _.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64: v } = await Ea({ domElement: _.value, base64: !0, img: !0, scale: t });
558
572
  return {
559
- imageUri: l,
573
+ imageUri: o,
560
574
  base64: v,
561
575
  title: e.value.style.chart.title.text,
562
- width: o,
576
+ width: l,
563
577
  height: a,
564
578
  aspectRatio: s
565
579
  };
566
580
  }
567
- const Vt = c(() => ({ min: 0, max: W.value }));
568
- Ma({
569
- timeLabelsEls: ye,
570
- timeLabels: Y,
571
- slicer: Vt,
581
+ const Yt = c(() => ({ min: 0, max: Y.value }));
582
+ Da({
583
+ timeLabelsEls: ge,
584
+ timeLabels: j,
585
+ slicer: Yt,
572
586
  configRef: e,
573
587
  rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
574
588
  autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
575
589
  isAutoSize: !1,
576
- width: Pt,
577
- height: Ot,
590
+ width: Lt,
591
+ height: zt,
578
592
  targetClass: ".vue-ui-ridgeline-x-axis-label",
579
593
  angle: e.value.style.chart.xAxis.labels.autoRotate.angle
580
594
  });
581
- const j = c(() => {
582
- const t = e.value.table.useDialog && !e.value.table.show, o = D.value.showTable;
595
+ const q = c(() => {
596
+ const t = e.value.table.useDialog && !e.value.table.show, l = D.value.showTable;
583
597
  return {
584
- component: t ? Le : bt,
598
+ component: t ? ze : xt,
585
599
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
586
600
  props: t ? {
587
601
  backgroundColor: e.value.table.th.backgroundColor,
@@ -589,12 +603,12 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
589
603
  headerColor: e.value.table.th.color,
590
604
  headerBg: e.value.table.th.backgroundColor,
591
605
  isFullscreen: I.value,
592
- fullscreenParent: $.value,
606
+ fullscreenParent: _.value,
593
607
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
594
608
  } : {
595
609
  hideDetails: !0,
596
610
  config: {
597
- open: o,
611
+ open: l,
598
612
  maxHeight: 1e4,
599
613
  body: {
600
614
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -608,64 +622,66 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
608
622
  }
609
623
  };
610
624
  });
611
- K(() => D.value.showTable, (t) => {
612
- e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
625
+ Z(() => D.value.showTable, (t) => {
626
+ e.value.table.show || (t && e.value.table.useDialog && G.value ? G.value.open() : "close" in G.value && G.value.close());
613
627
  });
614
- function tt() {
615
- D.value.showTable = !1, ge.value && ge.value.setTableIconState(!1);
628
+ function at() {
629
+ D.value.showTable = !1, ye.value && ye.value.setTableIconState(!1);
616
630
  }
617
- const Gt = c(() => e.value.style.chart.backgroundColor), Wt = c(() => ({
631
+ const jt = c(() => e.value.style.chart.backgroundColor), qt = c(() => ({
618
632
  ...e.value.style.chart.legend,
619
633
  position: "bottom"
620
- })), Yt = c(() => e.value.style.chart.title), { exportSvg: jt, getSvg: qt } = Sa({
621
- svg: ee,
622
- title: Yt,
623
- legend: Wt,
624
- legendItems: te,
625
- backgroundColor: Gt
634
+ })), Jt = c(() => e.value.style.chart.title), { exportSvg: Qt, getSvg: Kt } = Oa({
635
+ svg: te,
636
+ title: Jt,
637
+ legend: qt,
638
+ legendItems: U,
639
+ backgroundColor: jt
626
640
  });
627
- async function at({ isCb: t }) {
641
+ async function lt({ isCb: t }) {
628
642
  if (t) {
629
- const { blob: o, url: a, text: s, dataUrl: l } = await qt();
630
- e.value.userOptions.callbacks.svg({ blob: o, url: a, text: s, dataUrl: l });
643
+ const { blob: l, url: a, text: s, dataUrl: o } = await Kt();
644
+ e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: o });
631
645
  } else
632
- jt();
646
+ Qt();
633
647
  }
634
- return gt({
635
- getData: Xt,
636
- getImage: Ut,
637
- generateImage: We,
638
- generateSvg: at,
639
- generatePdf: Ge,
640
- generateCsv: we,
641
- toggleAnnotator: Ce,
642
- toggleTable: Ze,
643
- toggleFullscreen: Je
644
- }), (t, o) => (n(), r("div", {
648
+ return yt({
649
+ getData: Gt,
650
+ getImage: Wt,
651
+ generateImage: Ye,
652
+ generateSvg: lt,
653
+ generatePdf: We,
654
+ generateCsv: $e,
655
+ hideSeries: Mt,
656
+ showSeries: Ot,
657
+ toggleAnnotator: we,
658
+ toggleTable: et,
659
+ toggleFullscreen: Qe
660
+ }), (t, l) => (n(), r("div", {
645
661
  ref_key: "ridgelineChart",
646
- ref: $,
647
- class: oe(`vue-data-ui-component vue-ui-ridgeline ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
662
+ ref: _,
663
+ class: se(`vue-data-ui-component vue-ui-ridgeline ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
648
664
  id: `vue-ui-ridgeline_${A.value}`,
649
- style: w({
665
+ style: $({
650
666
  fontFamily: e.value.style.fontFamily,
651
667
  width: "100%",
652
668
  textAlign: "center",
653
669
  background: e.value.style.chart.backgroundColor,
654
670
  height: e.value.responsive ? "100%" : void 0
655
671
  }),
656
- onMouseenter: o[3] || (o[3] = () => u(Be)(!0)),
657
- onMouseleave: o[4] || (o[4] = () => u(Be)(!1))
672
+ onMouseenter: l[3] || (l[3] = () => u(He)(!0)),
673
+ onMouseleave: l[4] || (l[4] = () => u(He)(!1))
658
674
  }, [
659
- e.value.userOptions.buttons.annotator && u(ee) ? (n(), S(u(kt), {
675
+ e.value.userOptions.buttons.annotator && u(te) ? (n(), T(u(At), {
660
676
  key: 0,
661
677
  color: e.value.style.chart.color,
662
678
  backgroundColor: e.value.style.chart.backgroundColor,
663
- active: ae.value,
664
- svgRef: u(ee),
665
- onClose: Ce
679
+ active: le.value,
680
+ svgRef: u(te),
681
+ onClose: we
666
682
  }, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : h("", !0),
667
683
  p(t.$slots, "userConfig", {}, void 0, !0),
668
- St.value ? (n(), r("div", {
684
+ Tt.value ? (n(), r("div", {
669
685
  key: 1,
670
686
  ref_key: "noTitle",
671
687
  ref: Ne,
@@ -675,11 +691,11 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
675
691
  e.value.style.chart.title.text ? (n(), r("div", {
676
692
  key: 2,
677
693
  ref_key: "chartTitle",
678
- ref: ze,
694
+ ref: De,
679
695
  style: "width:100%;background:transparent;padding-bottom:24px"
680
696
  }, [
681
- (n(), S(Da, {
682
- key: `title_${ve.value}`,
697
+ (n(), T(Na, {
698
+ key: `title_${he.value}`,
683
699
  config: {
684
700
  title: {
685
701
  cy: "ridgeline-div-title",
@@ -692,14 +708,14 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
692
708
  }
693
709
  }, null, 8, ["config"]))
694
710
  ], 512)) : h("", !0),
695
- e.value.userOptions.show && U.value && (u(He) || u(Z)) ? (n(), S(u(At), {
711
+ e.value.userOptions.show && V.value && (u(Xe) || u(ee)) ? (n(), T(u(Ct), {
696
712
  ref_key: "userOptionsRef",
697
- ref: ge,
713
+ ref: ye,
698
714
  key: `user_option_${Fe.value}`,
699
715
  backgroundColor: e.value.style.chart.backgroundColor,
700
716
  color: e.value.style.chart.color,
701
- isPrinting: u(Ue),
702
- isImaging: u(Ve),
717
+ isPrinting: u(Ve),
718
+ isImaging: u(Ge),
703
719
  uid: A.value,
704
720
  hasTooltip: !1,
705
721
  callbacks: e.value.userOptions.callbacks,
@@ -712,26 +728,26 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
712
728
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
713
729
  isFullscreen: I.value,
714
730
  printScale: e.value.userOptions.print.scale,
715
- chartElement: $.value,
731
+ chartElement: _.value,
716
732
  position: e.value.userOptions.position,
717
733
  isTooltip: !1,
718
734
  titles: { ...e.value.userOptions.buttonTitles },
719
735
  hasAnnotator: e.value.userOptions.buttons.annotator,
720
- isAnnotation: ae.value,
736
+ isAnnotation: le.value,
721
737
  tableDialog: e.value.table.useDialog,
722
- style: w({ visibility: u(He) ? u(Z) ? "visible" : "hidden" : "visible" }),
723
- onToggleFullscreen: Je,
724
- onGeneratePdf: u(Ge),
725
- onGenerateCsv: we,
726
- onGenerateImage: u(We),
727
- onGenerateSvg: at,
728
- onToggleTable: Ze,
729
- onToggleAnnotator: Ce
730
- }, _e({ _: 2 }, [
738
+ style: $({ visibility: u(Xe) ? u(ee) ? "visible" : "hidden" : "visible" }),
739
+ onToggleFullscreen: Qe,
740
+ onGeneratePdf: u(We),
741
+ onGenerateCsv: $e,
742
+ onGenerateImage: u(Ye),
743
+ onGenerateSvg: lt,
744
+ onToggleTable: et,
745
+ onToggleAnnotator: we
746
+ }, Se({ _: 2 }, [
731
747
  t.$slots.menuIcon ? {
732
748
  name: "menuIcon",
733
749
  fn: g(({ isOpen: a, color: s }) => [
734
- p(t.$slots, "menuIcon", se(ne({ isOpen: a, color: s })), void 0, !0)
750
+ p(t.$slots, "menuIcon", ne(re({ isOpen: a, color: s })), void 0, !0)
735
751
  ]),
736
752
  key: "0"
737
753
  } : void 0,
@@ -780,189 +796,189 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
780
796
  t.$slots.optionFullscreen ? {
781
797
  name: "optionFullscreen",
782
798
  fn: g(({ toggleFullscreen: a, isFullscreen: s }) => [
783
- p(t.$slots, "optionFullscreen", se(ne({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
799
+ p(t.$slots, "optionFullscreen", ne(re({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
784
800
  ]),
785
801
  key: "7"
786
802
  } : void 0,
787
803
  t.$slots.optionAnnotator ? {
788
804
  name: "optionAnnotator",
789
805
  fn: g(({ toggleAnnotator: a, isAnnotator: s }) => [
790
- p(t.$slots, "optionAnnotator", se(ne({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
806
+ p(t.$slots, "optionAnnotator", ne(re({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
791
807
  ]),
792
808
  key: "8"
793
809
  } : void 0
794
810
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
795
811
  (n(), r("svg", {
796
812
  ref_key: "svgRef",
797
- ref: ee,
798
- xmlns: u(ya),
799
- class: oe({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
800
- viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
801
- style: w(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Ee.value}px; width: 100%;` : ""}`)
813
+ ref: te,
814
+ xmlns: u(pa),
815
+ class: se({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
816
+ viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${b.value.fullHeight <= 0 ? 10 : b.value.fullHeight}`,
817
+ style: $(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${Be.value}px; width: 100%;` : ""}`)
802
818
  }, [
803
- Se(u(Ct)),
804
- y("defs", null, [
805
- (n(!0), r(m, null, k(te.value, (a, s) => (n(), r("linearGradient", {
819
+ Te(u(wt)),
820
+ f("defs", null, [
821
+ (n(!0), r(m, null, k(U.value, (a, s) => (n(), r("linearGradient", {
806
822
  id: `gradient-${a.id}-${A.value}`,
807
823
  x1: "50%",
808
824
  y1: "0%",
809
825
  x2: "50%",
810
826
  y2: "100%"
811
827
  }, [
812
- y("stop", {
828
+ f("stop", {
813
829
  offset: "0%",
814
830
  "stop-color": a.color,
815
831
  "stop-opacity": "1"
816
- }, null, 8, Ha),
817
- y("stop", {
832
+ }, null, 8, Va),
833
+ f("stop", {
818
834
  offset: "30%",
819
835
  "stop-color": a.color,
820
836
  "stop-opacity": "0.7"
821
- }, null, 8, Xa),
822
- y("stop", {
837
+ }, null, 8, Ga),
838
+ f("stop", {
823
839
  offset: "70%",
824
840
  "stop-color": a.color,
825
841
  "stop-opacity": "0.3"
826
- }, null, 8, Ua),
827
- y("stop", {
842
+ }, null, 8, Wa),
843
+ f("stop", {
828
844
  offset: "100%",
829
845
  "stop-color": a.color,
830
846
  "stop-opacity": "0.1"
831
- }, null, 8, Va)
832
- ], 8, Ba))), 256)),
847
+ }, null, 8, Ya)
848
+ ], 8, Ua))), 256)),
833
849
  (n(!0), r(m, null, k(X.value, (a, s) => (n(), r(m, null, [
834
- (n(!0), r(m, null, k(a.datapoints, (l, v) => (n(), r("linearGradient", {
835
- key: `grad${l.id}`,
836
- id: `gradient-single-${A.value}-${l.uid}`,
850
+ (n(!0), r(m, null, k(a.datapoints, (o, v) => (n(), r("linearGradient", {
851
+ key: `grad${o.id}`,
852
+ id: `gradient-single-${A.value}-${o.uid}`,
837
853
  x1: "50%",
838
854
  y1: "0%",
839
855
  x2: "50%",
840
856
  y2: "100%"
841
857
  }, [
842
- y("stop", {
858
+ f("stop", {
843
859
  offset: "0%",
844
- "stop-color": l.color,
860
+ "stop-color": o.color,
845
861
  "stop-opacity": "1"
846
- }, null, 8, Wa),
847
- y("stop", {
862
+ }, null, 8, qa),
863
+ f("stop", {
848
864
  offset: "30%",
849
- "stop-color": l.color,
865
+ "stop-color": o.color,
850
866
  "stop-opacity": "0.7"
851
- }, null, 8, Ya),
852
- y("stop", {
867
+ }, null, 8, Ja),
868
+ f("stop", {
853
869
  offset: "70%",
854
- "stop-color": l.color,
870
+ "stop-color": o.color,
855
871
  "stop-opacity": "0.3"
856
- }, null, 8, ja),
857
- y("stop", {
872
+ }, null, 8, Qa),
873
+ f("stop", {
858
874
  offset: "100%",
859
- "stop-color": l.color,
875
+ "stop-color": o.color,
860
876
  "stop-opacity": "0.1"
861
- }, null, 8, qa)
862
- ], 8, Ga))), 128))
877
+ }, null, 8, Ka)
878
+ ], 8, ja))), 128))
863
879
  ], 64))), 256))
864
880
  ]),
865
881
  (n(!0), r(m, null, k(X.value, (a, s) => (n(), r("g", {
866
882
  key: `ds-${s}`
867
883
  }, [
868
- (n(!0), r(m, null, k(a.datapoints, (l, v) => (n(), r("g", {
869
- key: l.id
884
+ (n(!0), r(m, null, k(a.datapoints, (o, v) => (n(), r("g", {
885
+ key: o.id
870
886
  }, [
871
- t.$slots.pattern ? (n(), r("g", Ja, [
872
- y("defs", null, [
873
- p(t.$slots, "pattern", Te({ ref_for: !0 }, { datapointIndex: s, seriesIndex: v, patternId: `pattern_${A.value}_${l.uid}` }), void 0, !0)
887
+ t.$slots.pattern ? (n(), r("g", Za, [
888
+ f("defs", null, [
889
+ p(t.$slots, "pattern", Pe({ ref_for: !0 }, { datapointIndex: s, seriesIndex: v, patternId: `pattern_${A.value}_${o.uid}` }), void 0, !0)
874
890
  ])
875
891
  ])) : h("", !0),
876
- y("path", {
877
- fill: t.$slots.pattern ? `url(#pattern_${A.value}_${l.uid})` : e.value.style.chart.backgroundColor,
892
+ f("path", {
893
+ fill: t.$slots.pattern ? `url(#pattern_${A.value}_${o.uid})` : e.value.style.chart.backgroundColor,
878
894
  stroke: "none",
879
895
  "stroke-linecap": "round",
880
- d: e.value.style.chart.areas.smooth ? l.smoothPath : l.straightPath,
881
- style: w({
896
+ d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
897
+ style: $({
882
898
  opacity: e.value.style.chart.areas.opacity
883
899
  })
884
- }, null, 12, Qa),
885
- y("path", {
900
+ }, null, 12, el),
901
+ f("path", {
886
902
  fill: "none",
887
- stroke: e.value.style.chart.areas.stroke.useSerieColor ? l.color : e.value.style.chart.areas.stroke.color,
903
+ stroke: e.value.style.chart.areas.stroke.useSerieColor ? o.color : e.value.style.chart.areas.stroke.color,
888
904
  "stroke-width": e.value.style.chart.areas.strokeWidth,
889
- d: e.value.style.chart.areas.smooth ? l.smoothPathRidge : l.straightPathRidge,
905
+ d: e.value.style.chart.areas.smooth ? o.smoothPathRidge : o.straightPathRidge,
890
906
  "stroke-linecap": "round",
891
907
  "stroke-linejoin": "round",
892
- class: oe({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(G) }),
893
- style: w({
894
- strokeDasharray: l.pathLength,
895
- strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
908
+ class: se({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(W) }),
909
+ style: $({
910
+ strokeDasharray: o.pathLength,
911
+ strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
896
912
  })
897
- }, null, 14, Ka),
898
- y("path", {
899
- fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${l.id}-${A.value})` : `url(#gradient-single-${A.value}-${l.uid})` : l.color,
913
+ }, null, 14, tl),
914
+ f("path", {
915
+ fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${o.id}-${A.value})` : `url(#gradient-single-${A.value}-${o.uid})` : o.color,
900
916
  stroke: "none",
901
- d: e.value.style.chart.areas.smooth ? l.smoothPath : l.straightPath,
917
+ d: e.value.style.chart.areas.smooth ? o.smoothPath : o.straightPath,
902
918
  "stroke-linecap": "round",
903
919
  "stroke-linejoin": "round",
904
- class: oe({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(G) }),
905
- style: w({
906
- strokeDasharray: l.pathLength,
907
- strokeDashoffset: e.value.useCssAnimation ? l.pathLength : 0
920
+ class: se({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !u(W) }),
921
+ style: $({
922
+ strokeDasharray: o.pathLength,
923
+ strokeDashoffset: e.value.useCssAnimation ? o.pathLength : 0
908
924
  })
909
- }, null, 14, Za),
925
+ }, null, 14, al),
910
926
  e.value.style.chart.zeroLine.show ? (n(), r("path", {
911
927
  key: 1,
912
- stroke: e.value.style.chart.zeroLine.useSerieColor ? l.color : e.value.style.chart.zeroLine.stroke,
928
+ stroke: e.value.style.chart.zeroLine.useSerieColor ? o.color : e.value.style.chart.zeroLine.stroke,
913
929
  "stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
914
930
  "stroke-width": e.value.style.chart.zeroLine.strokeWidth,
915
- d: l.zeroPath,
931
+ d: o.zeroPath,
916
932
  "stroke-linecap": "round"
917
- }, null, 8, el)) : h("", !0),
918
- e.value.style.chart.areas.maxPoint.show && l.plots.length > 1 ? (n(!0), r(m, { key: 2 }, k(l.plots, (_) => (n(), r(m, null, [
919
- _.isMaxPoint ? (n(), r("line", {
933
+ }, null, 8, ll)) : h("", !0),
934
+ e.value.style.chart.areas.maxPoint.show && o.plots.length > 1 ? (n(!0), r(m, { key: 2 }, k(o.plots, (S) => (n(), r(m, null, [
935
+ S.isMaxPoint ? (n(), r("line", {
920
936
  key: 0,
921
- x1: _.x,
922
- y1: _.y,
923
- x2: _.x,
924
- y2: _.zero,
925
- stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(ga)(l.color) : e.value.style.chart.areas.maxPoint.stroke,
937
+ x1: S.x,
938
+ y1: S.y,
939
+ x2: S.x,
940
+ y2: S.zero,
941
+ stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? u(ma)(o.color) : e.value.style.chart.areas.maxPoint.stroke,
926
942
  "stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
927
943
  "stroke-linecap": "round",
928
944
  "stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
929
- }, null, 8, tl)) : h("", !0)
945
+ }, null, 8, ol)) : h("", !0)
930
946
  ], 64))), 256)) : h("", !0),
931
- l.plots.length === 1 ? (n(), r("circle", {
947
+ o.plots.length === 1 ? (n(), r("circle", {
932
948
  key: 3,
933
- cx: l.plots[0].x,
934
- cy: l.plots[0].y,
949
+ cx: o.plots[0].x,
950
+ cy: o.plots[0].y,
935
951
  stroke: e.value.style.chart.selector.dot.stroke,
936
952
  "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
937
953
  r: e.value.style.chart.selector.dot.radius,
938
- fill: e.value.style.chart.selector.dot.useDatapointColor ? l.color : e.value.style.chart.selector.dot.fill,
954
+ fill: e.value.style.chart.selector.dot.useDatapointColor ? o.color : e.value.style.chart.selector.dot.fill,
939
955
  style: {
940
956
  pointerEvents: "none"
941
957
  }
942
- }, null, 8, al)) : h("", !0)
958
+ }, null, 8, sl)) : h("", !0)
943
959
  ]))), 128)),
944
- y("text", {
960
+ f("text", {
945
961
  x: a.label.x,
946
962
  y: a.label.y,
947
963
  "text-anchor": "end",
948
964
  "font-size": e.value.style.chart.yAxis.labels.fontSize,
949
965
  "font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
950
966
  fill: e.value.style.chart.yAxis.labels.color,
951
- style: w({
967
+ style: $({
952
968
  cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
953
969
  }),
954
- "text-decoration": e.value.style.chart.dialog.show && (Ae.value === s || B.value && a.uid === B.value.uid) ? "underline" : "",
955
- onMouseenter: (l) => Bt(s),
956
- onMouseleave: Ht,
957
- onClick: (l) => Et(a)
958
- }, R(a.name), 45, ll)
970
+ "text-decoration": e.value.style.chart.dialog.show && (Ce.value === s || B.value && a.uid === B.value.uid) ? "underline" : "",
971
+ onMouseenter: (o) => Ut(s),
972
+ onMouseleave: Vt,
973
+ onClick: (o) => Xt(a)
974
+ }, F(a.name), 45, nl)
959
975
  ]))), 128)),
960
976
  e.value.style.chart.xAxis.labels.values.length ? (n(), r("g", {
961
977
  key: 0,
962
978
  ref_key: "timeLabelsEls",
963
- ref: ye
979
+ ref: ge
964
980
  }, [
965
- (n(!0), r(m, null, k(H.value, (a, s) => p(t.$slots, "time-label", Te({ ref_for: !0 }, {
981
+ (n(!0), r(m, null, k(H.value, (a, s) => p(t.$slots, "time-label", Pe({ ref_for: !0 }, {
966
982
  show: a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === H.value.length - 1) || a && d.value && d.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(H.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
967
983
  fontSize: e.value.style.chart.xAxis.labels.fontSize,
968
984
  content: a.label,
@@ -972,7 +988,7 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
972
988
  x: a.selectorX,
973
989
  y: b.value.bottom + e.value.style.chart.xAxis.labels.offsetY
974
990
  }), () => [
975
- a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === H.value.length - 1) || a && d.value && d.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(H.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", ol, [
991
+ a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || a && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (s === 0 || s === H.value.length - 1) || a && d.value && d.value.index === s || a && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && s % Math.floor(H.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (n(), r("g", rl, [
976
992
  String(a.label).includes(`
977
993
  `) ? (n(), r("text", {
978
994
  key: 1,
@@ -982,17 +998,17 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
982
998
  "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
983
999
  transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
984
1000
  "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
985
- style: w({
1001
+ style: $({
986
1002
  opacity: d.value ? d.value.index === s ? 1 : 0.2 : 1
987
1003
  }),
988
- innerHTML: u(fa)({
1004
+ innerHTML: u(ba)({
989
1005
  content: String(a.label),
990
1006
  fontSize: e.value.style.chart.xAxis.labels.fontSize,
991
1007
  fill: e.value.style.chart.xAxis.labels.color,
992
1008
  x: 0,
993
1009
  y: 0
994
1010
  })
995
- }, null, 12, nl)) : (n(), r("text", {
1011
+ }, null, 12, il)) : (n(), r("text", {
996
1012
  key: 0,
997
1013
  class: "vue-ui-ridgeline-x-axis-label",
998
1014
  "font-size": e.value.style.chart.xAxis.labels.fontSize,
@@ -1000,24 +1016,24 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
1000
1016
  "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1001
1017
  transform: `translate(${a.selectorX}, ${b.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1002
1018
  "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1003
- style: w({
1019
+ style: $({
1004
1020
  opacity: d.value ? d.value.index === s ? 1 : 0.2 : 1
1005
1021
  })
1006
- }, R(a.label), 13, sl))
1022
+ }, F(a.label), 13, ul))
1007
1023
  ])) : h("", !0)
1008
1024
  ], !0)), 256))
1009
1025
  ], 512)) : h("", !0),
1010
- y("g", null, [
1026
+ f("g", null, [
1011
1027
  (n(!0), r(m, null, k(H.value, (a, s) => (n(), r("rect", {
1012
1028
  x: a.x,
1013
1029
  y: a.y,
1014
1030
  width: a.width < 0 ? 0.1 : a.width,
1015
1031
  height: a.height < 0 ? 0.1 : a.height,
1016
1032
  fill: "transparent",
1017
- onMouseenter: (l) => Lt(a),
1018
- onMouseleave: (l) => zt(a),
1019
- onClick: () => Dt(a)
1020
- }, null, 40, rl))), 256)),
1033
+ onMouseenter: (o) => It(a),
1034
+ onMouseleave: (o) => Rt(a),
1035
+ onClick: () => Nt(a)
1036
+ }, null, 40, cl))), 256)),
1021
1037
  e.value.style.chart.selector.show && d.value ? (n(), r("line", {
1022
1038
  key: 0,
1023
1039
  x1: d.value.selectorX,
@@ -1029,14 +1045,14 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
1029
1045
  "stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
1030
1046
  "stroke-linecap": "round",
1031
1047
  style: { pointerEvents: "none" }
1032
- }, null, 8, ul)) : h("", !0),
1048
+ }, null, 8, vl)) : h("", !0),
1033
1049
  d.value ? (n(!0), r(m, { key: 1 }, k(X.value, (a) => (n(), r(m, null, [
1034
1050
  (n(!0), r(m, null, k(a.datapoints, (s) => (n(), r(m, null, [
1035
- (n(!0), r(m, null, k(s.plots, (l, v) => (n(), r(m, null, [
1051
+ (n(!0), r(m, null, k(s.plots, (o, v) => (n(), r(m, null, [
1036
1052
  d.value && d.value.index === v ? (n(), r("circle", {
1037
1053
  key: 0,
1038
- cx: l.x,
1039
- cy: l.y,
1054
+ cx: o.x,
1055
+ cy: o.y,
1040
1056
  stroke: e.value.style.chart.selector.dot.stroke,
1041
1057
  "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
1042
1058
  r: e.value.style.chart.selector.dot.radius,
@@ -1044,32 +1060,32 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
1044
1060
  style: {
1045
1061
  pointerEvents: "none"
1046
1062
  }
1047
- }, null, 8, il)) : h("", !0),
1063
+ }, null, 8, hl)) : h("", !0),
1048
1064
  d.value && d.value.index === v ? (n(), r("text", {
1049
1065
  key: 1,
1050
- x: qe(
1051
- l.x,
1052
- u(ue)(
1066
+ x: Je(
1067
+ o.x,
1068
+ u(ie)(
1053
1069
  e.value.style.chart.selector.labels.formatter,
1054
- l.value,
1055
- u(ie)({
1070
+ o.value,
1071
+ u(ce)({
1056
1072
  p: e.value.style.chart.xAxis.labels.prefix,
1057
- v: l.value,
1073
+ v: o.value,
1058
1074
  s: e.value.style.chart.xAxis.labels.suffix,
1059
1075
  r: e.value.style.chart.selector.labels.rounding
1060
1076
  })
1061
1077
  ),
1062
1078
  e.value.style.chart.selector.labels.fontSize
1063
- ) ? l.x - e.value.style.chart.selector.labels.fontSize / 2 : l.x + e.value.style.chart.selector.labels.fontSize / 2,
1064
- y: l.y + e.value.style.chart.selector.labels.fontSize / 3,
1065
- "text-anchor": qe(
1066
- l.x,
1067
- u(ue)(
1079
+ ) ? o.x - e.value.style.chart.selector.labels.fontSize / 2 : o.x + e.value.style.chart.selector.labels.fontSize / 2,
1080
+ y: o.y + e.value.style.chart.selector.labels.fontSize / 3,
1081
+ "text-anchor": Je(
1082
+ o.x,
1083
+ u(ie)(
1068
1084
  e.value.style.chart.selector.labels.formatter,
1069
- l.value,
1070
- u(ie)({
1085
+ o.value,
1086
+ u(ce)({
1071
1087
  p: e.value.style.chart.xAxis.labels.prefix,
1072
- v: l.value,
1088
+ v: o.value,
1073
1089
  s: e.value.style.chart.xAxis.labels.suffix,
1074
1090
  r: e.value.style.chart.selector.labels.rounding
1075
1091
  })
@@ -1081,48 +1097,48 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
1081
1097
  style: {
1082
1098
  pointerEvents: "none"
1083
1099
  }
1084
- }, R(u(ue)(
1100
+ }, F(u(ie)(
1085
1101
  e.value.style.chart.selector.labels.formatter,
1086
- l.value,
1087
- u(ie)({
1102
+ o.value,
1103
+ u(ce)({
1088
1104
  p: e.value.style.chart.xAxis.labels.prefix,
1089
- v: l.value,
1105
+ v: o.value,
1090
1106
  s: e.value.style.chart.xAxis.labels.suffix,
1091
1107
  r: e.value.style.chart.selector.labels.rounding
1092
1108
  })
1093
- )), 9, cl)) : h("", !0)
1109
+ )), 9, dl)) : h("", !0)
1094
1110
  ], 64))), 256))
1095
1111
  ], 64))), 256))
1096
1112
  ], 64))), 256)) : h("", !0)
1097
1113
  ]),
1098
- p(t.$slots, "svg", { svg: f.value }, void 0, !0)
1099
- ], 14, Ea)),
1100
- t.$slots.watermark ? (n(), r("div", vl, [
1101
- p(t.$slots, "watermark", se(ne({ isPrinting: u(Ue) || u(Ve) })), void 0, !0)
1114
+ p(t.$slots, "svg", { svg: y.value }, void 0, !0)
1115
+ ], 14, Xa)),
1116
+ t.$slots.watermark ? (n(), r("div", fl, [
1117
+ p(t.$slots, "watermark", ne(re({ isPrinting: u(Ve) || u(Ge) })), void 0, !0)
1102
1118
  ])) : h("", !0),
1103
- y("div", {
1119
+ f("div", {
1104
1120
  ref_key: "chartLegend",
1105
- ref: De
1121
+ ref: Ie
1106
1122
  }, [
1107
- e.value.style.chart.legend.show ? (n(), S(za, {
1108
- key: `legend_${he.value}`,
1109
- legendSet: te.value,
1110
- config: Rt.value,
1111
- onClickMarker: o[0] || (o[0] = ({ legend: a }) => Ye(a.id))
1112
- }, _e({
1123
+ e.value.style.chart.legend.show ? (n(), T(Ra, {
1124
+ key: `legend_${de.value}`,
1125
+ legendSet: U.value,
1126
+ config: Ht.value,
1127
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => ae(a.id))
1128
+ }, Se({
1113
1129
  item: g(({ legend: a }) => [
1114
- u(G) ? h("", !0) : (n(), r("div", {
1130
+ u(W) ? h("", !0) : (n(), r("div", {
1115
1131
  key: 0,
1116
- style: w(`opacity:${O.value.includes(a.id) ? 0.5 : 1}`),
1132
+ style: $(`opacity:${w.value.includes(a.id) ? 0.5 : 1}`),
1117
1133
  onClick: (s) => a.segregate()
1118
- }, R(a.name), 13, hl))
1134
+ }, F(a.name), 13, gl))
1119
1135
  ]),
1120
1136
  _: 2
1121
1137
  }, [
1122
1138
  t.$slots.pattern ? {
1123
1139
  name: "legend-pattern",
1124
1140
  fn: g(({ legend: a, index: s }) => [
1125
- Se(Ia, {
1141
+ Te(Fa, {
1126
1142
  shape: a.shape,
1127
1143
  radius: 30,
1128
1144
  stroke: "none",
@@ -1133,40 +1149,40 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
1133
1149
  key: "0"
1134
1150
  } : void 0
1135
1151
  ]), 1032, ["legendSet", "config"])) : h("", !0),
1136
- p(t.$slots, "legend", { legend: te.value }, void 0, !0)
1152
+ p(t.$slots, "legend", { legend: U.value }, void 0, !0)
1137
1153
  ], 512),
1138
1154
  t.$slots.source ? (n(), r("div", {
1139
1155
  key: 5,
1140
1156
  ref_key: "source",
1141
- ref: Ie,
1157
+ ref: Re,
1142
1158
  dir: "auto"
1143
1159
  }, [
1144
1160
  p(t.$slots, "source", {}, void 0, !0)
1145
1161
  ], 512)) : h("", !0),
1146
- U.value && e.value.userOptions.buttons.table ? (n(), S(ra(j.value.component), Te({ key: 6 }, j.value.props, {
1162
+ V.value && e.value.userOptions.buttons.table ? (n(), T(ca(q.value.component), Pe({ key: 6 }, q.value.props, {
1147
1163
  ref_key: "tableUnit",
1148
- ref: V,
1149
- onClose: tt
1150
- }), _e({
1164
+ ref: G,
1165
+ onClose: at
1166
+ }), Se({
1151
1167
  content: g(() => [
1152
- (n(), S(u(xt), {
1153
- key: `table_${$t.value}`,
1154
- colNames: le.value.colNames,
1155
- head: le.value.head,
1156
- body: le.value.body,
1157
- config: le.value.config,
1158
- title: e.value.table.useDialog ? "" : j.value.title,
1168
+ (n(), T(u(kt), {
1169
+ key: `table_${_t.value}`,
1170
+ colNames: oe.value.colNames,
1171
+ head: oe.value.head,
1172
+ body: oe.value.body,
1173
+ config: oe.value.config,
1174
+ title: e.value.table.useDialog ? "" : q.value.title,
1159
1175
  withCloseButton: !e.value.table.useDialog,
1160
- onClose: tt
1176
+ onClose: at
1161
1177
  }, {
1162
1178
  th: g(({ th: a }) => [
1163
- y("div", { innerHTML: a }, null, 8, dl)
1179
+ f("div", { innerHTML: a }, null, 8, yl)
1164
1180
  ]),
1165
1181
  td: g(({ td: a }) => [
1166
- Pe(R(a.name ? a.name : u(ue)(
1182
+ Oe(F(a.name ? a.name : u(ie)(
1167
1183
  e.value.style.chart.selector.labels.formatter,
1168
1184
  a,
1169
- u(ie)({
1185
+ u(ce)({
1170
1186
  p: e.value.style.chart.xAxis.labels.prefix,
1171
1187
  v: a,
1172
1188
  s: e.value.style.chart.xAxis.labels.suffix,
@@ -1182,56 +1198,56 @@ const Ra = ["id"], Ea = ["xmlns", "viewBox"], Ba = ["id"], Ha = ["stop-color"],
1182
1198
  e.value.table.useDialog ? {
1183
1199
  name: "title",
1184
1200
  fn: g(() => [
1185
- Pe(R(j.value.title), 1)
1201
+ Oe(F(q.value.title), 1)
1186
1202
  ]),
1187
1203
  key: "0"
1188
1204
  } : void 0,
1189
1205
  e.value.table.useDialog ? {
1190
1206
  name: "actions",
1191
1207
  fn: g(() => [
1192
- y("button", {
1208
+ f("button", {
1193
1209
  tabindex: "0",
1194
1210
  class: "vue-ui-user-options-button",
1195
- onClick: o[1] || (o[1] = (a) => we(e.value.userOptions.callbacks.csv))
1211
+ onClick: l[1] || (l[1] = (a) => $e(e.value.userOptions.callbacks.csv))
1196
1212
  }, [
1197
- Se(u(mt), {
1213
+ Te(u(bt), {
1198
1214
  name: "excel",
1199
- stroke: j.value.props.color
1215
+ stroke: q.value.props.color
1200
1216
  }, null, 8, ["stroke"])
1201
1217
  ])
1202
1218
  ]),
1203
1219
  key: "1"
1204
1220
  } : void 0
1205
1221
  ]), 1040)) : h("", !0),
1206
- e.value.style.chart.dialog.show ? (n(), S(u(Le), {
1222
+ e.value.style.chart.dialog.show ? (n(), T(u(ze), {
1207
1223
  key: 7,
1208
1224
  ref_key: "dialog",
1209
- ref: de,
1210
- onClose: o[2] || (o[2] = (a) => B.value = null),
1225
+ ref: fe,
1226
+ onClose: l[2] || (l[2] = (a) => B.value = null),
1211
1227
  backgroundColor: e.value.style.chart.dialog.backgroundColor,
1212
1228
  color: e.value.style.chart.dialog.color,
1213
1229
  headerBg: e.value.style.chart.dialog.header.backgroundColor,
1214
1230
  headerColor: e.value.style.chart.dialog.header.color,
1215
1231
  isFullscreen: I.value,
1216
- fullscreenParent: $.value,
1232
+ fullscreenParent: _.value,
1217
1233
  withPadding: ""
1218
1234
  }, {
1219
1235
  title: g(() => [
1220
- Pe(R(B.value.name), 1)
1236
+ Oe(F(B.value.name), 1)
1221
1237
  ]),
1222
1238
  content: g(() => [
1223
- B.value ? (n(), S(u(pt), {
1239
+ B.value ? (n(), T(u(mt), {
1224
1240
  key: 0,
1225
- config: Qe.value,
1226
- dataset: Ke.value
1241
+ config: Ke.value,
1242
+ dataset: Ze.value
1227
1243
  }, null, 8, ["config", "dataset"])) : h("", !0)
1228
1244
  ]),
1229
1245
  _: 1
1230
1246
  }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : h("", !0),
1231
- u(G) ? (n(), S($a, { key: 8 })) : h("", !0)
1232
- ], 46, Ra));
1247
+ u(W) ? (n(), T(Ta, { key: 8 })) : h("", !0)
1248
+ ], 46, Ha));
1233
1249
  }
1234
- }, Ll = /* @__PURE__ */ Fa(yl, [["__scopeId", "data-v-36456620"]]);
1250
+ }, Il = /* @__PURE__ */ Ba(pl, [["__scopeId", "data-v-eeccc8ad"]]);
1235
1251
  export {
1236
- Ll as default
1252
+ Il as default
1237
1253
  };