vue-data-ui 3.9.22 → 3.10.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.
Files changed (169) hide show
  1. package/README.md +76 -57
  2. package/dist/{Arrow-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
  3. package/dist/{BaseDraggableDialog-BHlNyA0A.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
  4. package/dist/{BaseIcon-DtXe9QC_.js → BaseIcon-4uOct8re.js} +29 -22
  5. package/dist/{BaseZoomControls-Dp7lD8dn.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
  6. package/dist/{ColorPicker-CnWVxKGw.js → ColorPicker-Culsjrcr.js} +2 -2
  7. package/dist/{DataTable-BriHstj2.js → DataTable-DyoDzNNY.js} +16 -16
  8. package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-C7GKy0EX.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
  10. package/dist/{PackageVersion-DS0AcLc9.js → PackageVersion-D6MO5wwI.js} +1 -1
  11. package/dist/{PenAndPaper-DBbQVgYt.js → PenAndPaper-LTuSTmWE.js} +3 -3
  12. package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
  13. package/dist/{Slicer-CdBkrOVw.js → Slicer-DckZxvyx.js} +2 -2
  14. package/dist/{SlicerPreview-DAWQCjXt.js → SlicerPreview-CSc_cazO.js} +2 -2
  15. package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
  16. package/dist/{Title-B7pkWzTi.js → Title-NgeRXqRA.js} +1 -1
  17. package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
  18. package/dist/{UserOptions-CEsHe7Td.js → UserOptions-CX7Xsusk.js} +7 -7
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +5 -0
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
  89. package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
  90. package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
  91. package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
  92. package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
  93. package/dist/style.css +1 -1
  94. package/dist/types/vue-data-ui.d.ts +218 -6
  95. package/dist/types/vue-ui-bump.d.ts +16 -0
  96. package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
  97. package/dist/{useNestedProp-gqRzbKJy.js → useNestedProp-Ckf_2P_V.js} +271 -163
  98. package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
  99. package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
  100. package/dist/{vue-data-ui-nqF_cACH.js → vue-data-ui-BzP8Tvow.js} +79 -77
  101. package/dist/vue-data-ui.js +90 -88
  102. package/dist/{vue-ui-3d-bar-DmrhwUsA.js → vue-ui-3d-bar-CHeF8XHm.js} +222 -218
  103. package/dist/{vue-ui-accordion-CDvNAvXX.js → vue-ui-accordion-DFKaB_05.js} +3 -3
  104. package/dist/{vue-ui-age-pyramid-C0hgxDIF.js → vue-ui-age-pyramid-CJSA_Lp7.js} +177 -173
  105. package/dist/{vue-ui-annotator-koqMAb87.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
  106. package/dist/{vue-ui-bullet-BXJCZyhh.js → vue-ui-bullet-BGO-5x4w.js} +135 -131
  107. package/dist/vue-ui-bump-Ds8aQyR-.js +1006 -0
  108. package/dist/{vue-ui-candlestick-3YdnfK3I.js → vue-ui-candlestick-Chk1Rxwa.js} +304 -300
  109. package/dist/{vue-ui-carousel-table-5pBU7CnX.js → vue-ui-carousel-table-BX4wS5vL.js} +4 -4
  110. package/dist/{vue-ui-chestnut-BmjwbHgq.js → vue-ui-chestnut-DRGQVzIZ.js} +326 -322
  111. package/dist/{vue-ui-chord-C_2QTHYi.js → vue-ui-chord-CzS4uqvo.js} +171 -167
  112. package/dist/{vue-ui-circle-pack-BeHZwuM4.js → vue-ui-circle-pack-CTo8Eihw.js} +162 -158
  113. package/dist/{vue-ui-cursor-YR7_jEcG.js → vue-ui-cursor-DQ1eQR4G.js} +3 -3
  114. package/dist/{vue-ui-dag-h6p8aZFf.js → vue-ui-dag-Vw67oxw7.js} +451 -447
  115. package/dist/{vue-ui-dashboard-Cl6Jnf6s.js → vue-ui-dashboard-CBX0gXdp.js} +68 -68
  116. package/dist/{vue-ui-digits-bUDar5q1.js → vue-ui-digits-DnsDASGD.js} +2 -2
  117. package/dist/{vue-ui-donut-n-wyE9bw.js → vue-ui-donut-8T6Nmsxq.js} +467 -463
  118. package/dist/{vue-ui-donut-evolution-DoQwbNv4.js → vue-ui-donut-evolution-C2QW-9s6.js} +354 -350
  119. package/dist/{vue-ui-dumbbell-BWEAHSG8.js → vue-ui-dumbbell-Bn9pd4ij.js} +240 -236
  120. package/dist/{vue-ui-flow-CRgC7Mlx.js → vue-ui-flow-LxJoqDKq.js} +171 -167
  121. package/dist/{vue-ui-funnel-CfIPZ_zB.js → vue-ui-funnel-Dijfg4TW.js} +133 -129
  122. package/dist/{vue-ui-galaxy-Cp_rz8IL.js → vue-ui-galaxy-J7ABN21x.js} +146 -142
  123. package/dist/{vue-ui-gauge-DjJ8LiGL.js → vue-ui-gauge-DAUj4HG5.js} +175 -171
  124. package/dist/{vue-ui-geo-DUa0LJdd.js → vue-ui-geo-DZIQ7n5z.js} +123 -119
  125. package/dist/{vue-ui-gizmo-DDMnc-mn.js → vue-ui-gizmo-iP8kliCe.js} +3 -3
  126. package/dist/{vue-ui-heatmap-Bu78wjql.js → vue-ui-heatmap-BzJ9NhwA.js} +231 -227
  127. package/dist/{vue-ui-history-plot-I7RFpR4m.js → vue-ui-history-plot-CiKEQ6JR.js} +252 -248
  128. package/dist/{vue-ui-horizontal-bar-B76RcVtC.js → vue-ui-horizontal-bar-HXGUUZ4g.js} +325 -321
  129. package/dist/{vue-ui-kpi-CnmyYRvK.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
  130. package/dist/{vue-ui-mini-loader-DVEVYQd5.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
  131. package/dist/{vue-ui-molecule-B0EQor9C.js → vue-ui-molecule-BOOgtokk.js} +183 -179
  132. package/dist/{vue-ui-mood-radar-BXHszrJ5.js → vue-ui-mood-radar-DZzGx5Dp.js} +162 -158
  133. package/dist/{vue-ui-nested-donuts-Cs09jqNS.js → vue-ui-nested-donuts-BA1-O-gB.js} +178 -174
  134. package/dist/{vue-ui-onion-Cd4M3NhO.js → vue-ui-onion-thpUoiBE.js} +185 -181
  135. package/dist/{vue-ui-parallel-coordinate-plot-B3jKFKQp.js → vue-ui-parallel-coordinate-plot-DR3Ipc9q.js} +195 -191
  136. package/dist/{vue-ui-quadrant-BGdcyL_G.js → vue-ui-quadrant-CmCVv7Io.js} +243 -239
  137. package/dist/{vue-ui-quick-chart-RISnAtAO.js → vue-ui-quick-chart-D7CQqjbb.js} +295 -291
  138. package/dist/{vue-ui-radar-CiyUH5vY.js → vue-ui-radar-C5BYiNeE.js} +168 -164
  139. package/dist/{vue-ui-rating-CTN4-Xx3.js → vue-ui-rating-W6I6pacT.js} +2 -2
  140. package/dist/{vue-ui-relation-circle-GJ2m1KJi.js → vue-ui-relation-circle-BkWUI7cy.js} +185 -181
  141. package/dist/vue-ui-ridgeline-CokXNDQ5.js +1306 -0
  142. package/dist/{vue-ui-rings-DStX7GN9.js → vue-ui-rings-COs-uwPW.js} +299 -295
  143. package/dist/{vue-ui-scatter-C06XR1wk.js → vue-ui-scatter-od9j3nbg.js} +354 -350
  144. package/dist/{vue-ui-skeleton-BhhCaDDt.js → vue-ui-skeleton-199nlzz-.js} +3 -3
  145. package/dist/{vue-ui-smiley-CxVaJpm8.js → vue-ui-smiley-B23r7AWp.js} +2 -2
  146. package/dist/{vue-ui-spark-trend-D0C6wQaQ.js → vue-ui-spark-trend-CCh-2vX7.js} +120 -116
  147. package/dist/{vue-ui-sparkbar-BdiOrr_4.js → vue-ui-sparkbar-TotwU9iC.js} +84 -80
  148. package/dist/{vue-ui-sparkgauge-Bn69Wf48.js → vue-ui-sparkgauge-ma4q7p0M.js} +81 -77
  149. package/dist/{vue-ui-sparkhistogram-B2igFeIs.js → vue-ui-sparkhistogram-DkkFMKuS.js} +109 -105
  150. package/dist/{vue-ui-sparkline-0VCC5bBB.js → vue-ui-sparkline-B9SwcngG.js} +184 -174
  151. package/dist/{vue-ui-sparkstackbar-DXNNFyVU.js → vue-ui-sparkstackbar-DYz-Vson.js} +99 -95
  152. package/dist/{vue-ui-stackbar-O6Qnmp0y.js → vue-ui-stackbar-C_Tl2URC.js} +376 -372
  153. package/dist/{vue-ui-stackline-DXR5bwam.js → vue-ui-stackline-CXpElu5C.js} +347 -343
  154. package/dist/{vue-ui-strip-plot-Dbkd9HLL.js → vue-ui-strip-plot-DzcjpnIg.js} +248 -244
  155. package/dist/{vue-ui-table-CY9ofQw5.js → vue-ui-table-D_TQyQhl.js} +5 -5
  156. package/dist/{vue-ui-table-heatmap-Cl927pNj.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
  157. package/dist/{vue-ui-table-sparkline-JdC2NOYh.js → vue-ui-table-sparkline-CF5BnI-6.js} +174 -170
  158. package/dist/{vue-ui-thermometer-9e1IkvL9.js → vue-ui-thermometer-BmmwTeyy.js} +133 -129
  159. package/dist/{vue-ui-timer-C85qvi3A.js → vue-ui-timer-Bffy4n-P.js} +5 -5
  160. package/dist/{vue-ui-tiremarks-Dvynr7Ca.js → vue-ui-tiremarks-pMFoFCHr.js} +156 -152
  161. package/dist/{vue-ui-treemap-B2d4oGJZ.js → vue-ui-treemap-DSaqUKWM.js} +161 -157
  162. package/dist/{vue-ui-waffle-B3NfAP3B.js → vue-ui-waffle-BavDRJin.js} +185 -181
  163. package/dist/{vue-ui-wheel-Cti5RCaK.js → vue-ui-wheel-toELK-fC.js} +125 -121
  164. package/dist/{vue-ui-word-cloud-BGyunVJT.js → vue-ui-word-cloud-DCTGuXdW.js} +179 -175
  165. package/dist/{vue-ui-world-BjGu6FvN.js → vue-ui-world-7QFSvpGk.js} +6 -6
  166. package/dist/{vue-ui-xy-BC1zUOGw.js → vue-ui-xy-CTJtVYBG.js} +697 -693
  167. package/dist/{vue-ui-xy-canvas-ks3CRcLY.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
  168. package/package.json +1 -1
  169. package/dist/vue-ui-ridgeline-BAukx7WE.js +0 -1302
@@ -1,1302 +0,0 @@
1
- import { defineAsyncComponent as L, computed as c, ref as u, shallowRef as ut, toRefs as Cl, onBeforeUnmount as ct, watch as te, nextTick as De, watchEffect as yl, createElementBlock as n, openBlock as s, unref as i, normalizeStyle as F, normalizeClass as ne, createBlock as _, createCommentVNode as v, renderSlot as g, createElementVNode as b, withCtx as d, normalizeProps as B, guardReactiveProps as E, createSlots as $e, createVNode as _e, Fragment as y, renderList as p, mergeProps as Be, toDisplayString as H, resolveDynamicComponent as Al, createTextVNode as Ee } from "vue";
2
- import { c as Te, t as ml, k as pl, m as kl, j as ie, at as dt, V as xl, C as ht, A as wl, ah as Fl, X as Dl, x as $l, $ as _l, a as ue, d as ce, i as Bl, g as Se, l as vt, o as El, v as Tl, r as Sl, aa as Ll } from "./lib-2iaAPQ_c.js";
3
- import { t as gt, u as zl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ol, a as Le } from "./useNestedProp-gqRzbKJy.js";
5
- import { u as Ml, B as Pl } from "./BaseScanner-BMpwQAfz.js";
6
- import { u as Nl } from "./usePrinter-ChVMpU2f.js";
7
- import { u as Rl } from "./useSvgExport-ByUukOZt.js";
8
- import { u as Il } from "./useTimeLabels-DKoynYae.js";
9
- import { u as Hl } from "./useThemeCheck-DGJ31Vi5.js";
10
- import { u as Vl } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as Xl } from "./useChartAccessibility-9icAAmYg.js";
12
- import { u as Ul } from "./useTimeLabelCollider-CIsgDrl9.js";
13
- import jl from "./Legend-D2xmnFPH.js";
14
- import Gl from "./Title-B7pkWzTi.js";
15
- import { _ as Wl } from "./Shape-12_eh8zD.js";
16
- import Yl from "./img-CqYIrJ8I.js";
17
- import { _ as ql } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const ft = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, areas: { stroke: { color: "#1A1A1A" } }, dialog: { backgroundColor: "#1A1A1A", color: "#CCCCCC", header: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, xyChart: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A", minimap: { selectedColor: "#8A8A8A", lineColor: "#424242", indicatorColor: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" }, timeTag: { backgroundColor: "#2A2A2A", color: "#CCCCCC", circleMarker: { color: "#2A2A2A" } }, grid: { stroke: "#5A5A5A", showVerticalLines: !1, labels: { color: "#CCCCCC", xAxisLabels: { color: "#CCCCCC" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, bar: { border: { stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" }, serieName: { color: "#CCCCCC" } }, line: { labels: { color: "#CCCCCC" } }, plot: { labels: { color: "#CCCCCC" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, selector: { stroke: "#CCCCCC", dot: { fill: "#CCCCCC", stroke: "#1A1A1A" }, labels: { color: "#CCCCCC" } }, xAxis: { labels: { color: "#CCCCCC" } }, yAxis: { labels: { color: "#CCCCCC" } }, zeroLine: { stroke: "#5A5A5A" } } } }, bt = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, areas: { stroke: { color: "#8F837A" } }, dialog: { backgroundColor: "#FFF8E1", color: "#424242", header: { backgroundColor: "#FFF8E1", color: "#424242" }, xyChart: { chart: { backgroundColor: "#FFF8E1", color: "#424242", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#424242", indicatorColor: "#FF8A65" } }, highlighter: { color: "#424242" }, timeTag: { backgroundColor: "#424242", color: "#FFF8E1", circleMarker: { color: "#424242" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#424242", xAxisLabels: { color: "#424242" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#FFF8E1" }, labels: { color: "#424242" }, serieName: { color: "#424242" } }, line: { labels: { color: "#424242" } }, plot: { labels: { color: "#424242" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, selector: { stroke: "#FF8A65", dot: { fill: "#424242", stroke: "#FFF8E1" }, labels: { color: "#424242" } }, xAxis: { labels: { color: "#424242" } }, yAxis: { labels: { color: "#424242" } }, zeroLine: { stroke: "#5D4037" } } } }, Ct = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, areas: { stroke: { color: "#8F837A" } }, dialog: { backgroundColor: "#1E1E1E", color: "#BDBDBD", header: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, xyChart: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", zoom: { color: "#5D4037", highlightColor: "#FF8A65", minimap: { selectedColor: "#FF8A65", lineColor: "#FF6B6B", indicatorColor: "#FF8A65" } }, highlighter: { color: "#FFF8E1" }, timeTag: { backgroundColor: "#5D4037", color: "#FFF8E1", circleMarker: { color: "#5D4037" } }, grid: { stroke: "#5D4037", showVerticalLines: !1, labels: { color: "#BDBDBD", xAxisLabels: { color: "#BDBDBD" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } }, bar: { borderRadius: 2, border: { stroke: "#1E1E1E" }, labels: { color: "#BDBDBD" }, serieName: { color: "#BDBDBD" } }, line: { labels: { color: "#BDBDBD" } }, plot: { labels: { color: "#BDBDBD" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, selector: { stroke: "#FF8A65", dot: { fill: "#424242", stroke: "#1E1E1E" }, labels: { color: "#BDBDBD" } }, xAxis: { labels: { color: "#BDBDBD" } }, yAxis: { labels: { color: "#BDBDBD" } }, zeroLine: { stroke: "#5D4037" } } } }, yt = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, areas: { stroke: { color: "#66CC66" } }, dialog: { backgroundColor: "#1A1A1A", color: "#99AA99", header: { backgroundColor: "#1A1A1A", color: "#99AA99" }, xyChart: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, highlighter: { color: "#66CC66" }, timeTag: { backgroundColor: "#1A1A1A", color: "#66CC66", circleMarker: { color: "#66CC66" } }, grid: { stroke: "#5F6A5F", showVerticalLines: !1, labels: { color: "#99AA99", xAxisLabels: { color: "#99AA99" }, xAxis: { showBaseline: !1 } } }, legend: { color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } }, bar: { borderRadius: 0, border: { stroke: "#66CC66" }, labels: { color: "#AACCAA" }, serieName: { color: "#99CC99" } }, line: { labels: { color: "#AACCAA" } }, plot: { labels: { color: "#AACCAA" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, selector: { stroke: "#99AA99", dot: { fill: "#4A4A4A", stroke: "#1A1A1A" }, labels: { color: "#99AA99" } }, xAxis: { labels: { color: "#99AA99" } }, yAxis: { labels: { color: "#99AA99" } }, zeroLine: { stroke: "#2A2A2A" } } } }, At = { table: { th: { backgroundColor: "#fbfafa", color: "#8A9892" }, td: { backgroundColor: "#fbfafa", color: "#8A9892" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, areas: { stroke: { color: "#8F837A" } }, dialog: { backgroundColor: "#fbfafa", color: "#8A9892", header: { backgroundColor: "#fbfafa", color: "#8A9892" }, xyChart: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, highlighter: { color: "#8F837A" }, timeTag: { backgroundColor: "#fbfafa", color: "#8A9892", circleMarker: { color: "#8A9892" } }, grid: { stroke: "transparent", labels: { show: !1, color: "#99AA99", xAxisLabels: { show: !1, color: "#99AA99" }, zeroLine: { show: !1 }, yAxis: { showBaseline: !1 } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, bar: { borderRadius: 4, border: { stroke: "#D7E0D2" }, labels: { color: "#8F837A" }, serieName: { color: "#858480" } }, line: { labels: { color: "#8F837A" } }, plot: { labels: { color: "#8F837A" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } } }, legend: { backgroundColor: "#fbfafa", color: "#8A9892" }, selector: { stroke: "#8F837A", dot: { fill: "#8F837A", stroke: "#fbfafa" }, labels: { color: "#8F837A" } }, xAxis: { labels: { color: "#8F837A" } }, yAxis: { labels: { color: "#8F837A" } }, zeroLine: { stroke: "#8F837A" } } } }, mt = { table: { th: { backgroundColor: "#fbfafa", color: "#8A9892" }, td: { backgroundColor: "#fbfafa", color: "#8A9892" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, areas: { stroke: { color: "#829C98" } }, dialog: { backgroundColor: "#f6f6fb", color: "#50606C", header: { backgroundColor: "#f6f6fb", color: "#50606C" }, xyChart: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", zoom: { color: "#92B0AB", highlightColor: "#50606C" }, highlighter: { color: "#7DA9B5" }, timeTag: { backgroundColor: "#f6f6fb", color: "#50606C", circleMarker: { color: "#50606C" } }, grid: { stroke: "#829C98", showVerticalLines: !0, showHorizontalLines: !0, labels: { color: "#50606C", xAxisLabels: { color: "#50606C" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, bar: { borderRadius: 2, border: { stroke: "#404C4D" }, labels: { color: "#50606C" }, serieName: { color: "#61747E" } }, line: { labels: { color: "#50606C" } }, plot: { labels: { color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } } }, legend: { backgroundColor: "#f6f6fb", color: "#50606C" }, selector: { stroke: "#7DA9B5", dot: { fill: "#7DA9B5", stroke: "#f6f6fb" }, labels: { color: "#50606C" } }, xAxis: { labels: { color: "#50606C" } }, yAxis: { labels: { color: "#50606C" } }, zeroLine: { stroke: "#829C98" } } } }, pt = {
19
- default: {},
20
- dark: ft,
21
- celebration: bt,
22
- celebrationNight: Ct,
23
- hack: yt,
24
- zen: At,
25
- concrete: mt
26
- }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27
- __proto__: null,
28
- celebration: bt,
29
- celebrationNight: Ct,
30
- concrete: mt,
31
- dark: ft,
32
- default: pt,
33
- hack: yt,
34
- zen: At
35
- }, Symbol.toStringTag, { value: "Module" })), Jl = ["id"], Kl = ["xmlns", "viewBox"], Ql = ["id"], Zl = ["stop-color"], eo = ["stop-color"], to = ["stop-color"], lo = ["stop-color"], oo = ["id"], ao = ["stop-color"], ro = ["stop-color"], so = ["stop-color"], no = ["stop-color"], io = { key: 0 }, uo = ["fill", "d"], co = ["stroke", "stroke-width", "d"], ho = ["fill", "d"], vo = ["stroke", "stroke-dasharray", "stroke-width", "d"], go = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], fo = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], bo = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], Co = { key: 0 }, yo = ["font-size", "fill", "font-weight", "transform", "text-anchor"], Ao = ["font-size", "fill", "font-weight", "transform", "text-anchor", "innerHTML"], mo = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], po = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ko = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], xo = ["x", "y", "text-anchor", "font-size", "fill"], wo = {
36
- key: 4,
37
- class: "vue-data-ui-watermark"
38
- }, Fo = ["onClick"], Do = ["innerHTML"], $o = {
39
- __name: "vue-ui-ridgeline",
40
- props: {
41
- config: {
42
- type: Object,
43
- default() {
44
- return {};
45
- }
46
- },
47
- dataset: {
48
- type: Array,
49
- default() {
50
- return [];
51
- }
52
- }
53
- },
54
- emits: ["selectLegend", "selectDatapoint", "selectX"],
55
- setup(kt, { expose: xt, emit: wt }) {
56
- const Ft = L(() => import("./vue-ui-xy-BC1zUOGw.js").then((t) => t.a)), Dt = L(() => import("./BaseIcon-DtXe9QC_.js")), $t = L(() => import("./vue-ui-accordion-CDvNAvXX.js")), _t = L(() => import("./DataTable-BriHstj2.js")), Bt = L(() => import("./PenAndPaper-DBbQVgYt.js")), Et = L(() => import("./UserOptions-CEsHe7Td.js")), Tt = L(() => import("./PackageVersion-DS0AcLc9.js")), ze = L(() => import("./BaseDraggableDialog-BHlNyA0A.js")), { vue_ui_ridgeline: St } = Ol(), { isThemeValid: Lt, warnInvalidTheme: zt } = Hl(), z = kt, G = c({
57
- get() {
58
- return Array.isArray(M.value) && M.value.length > 0;
59
- },
60
- set(t) {
61
- return t;
62
- }
63
- }), de = wt, D = u(null), Oe = u(null), Me = u(null), T = ut(null), O = ut(null), Pe = u(null), Ne = u(null), he = u(0), Ot = u(0), ve = u(0), k = u(Te()), Re = u(0), Mt = u(0), Ie = u(512), f = u(null), V = u(null), ge = u(null), He = u(0), fe = u(null), W = u(null), be = u(null);
64
- function Ce() {
65
- const t = Le({
66
- userConfig: z.config,
67
- defaultConfig: St
68
- }), o = t.theme;
69
- if (!o) return t;
70
- if (!Lt.value(t))
71
- return zt(t), t;
72
- const l = Le({
73
- userConfig: pt[o] || z.config,
74
- defaultConfig: t
75
- }), r = Le({
76
- userConfig: z.config,
77
- defaultConfig: l
78
- });
79
- return {
80
- ...r,
81
- customPalette: r.customPalette.length ? r.customPalette : Bl[o] || ie
82
- };
83
- }
84
- const e = u(Ce()), { loading: Y, FINAL_DATASET: M, manualLoading: ye } = Ml({
85
- ...Cl(z),
86
- FINAL_CONFIG: e,
87
- prepareConfig: Ce,
88
- skeletonDataset: [
89
- {
90
- name: "_",
91
- datapoints: [
92
- {
93
- name: "__",
94
- color: "#999999",
95
- values: [28.639, 32.04, 41.134, 44.525, 21.151, 2.436, 0.218, 0.024, 2e-3, 0, 0, 0]
96
- },
97
- {
98
- name: "_",
99
- color: "#CACACA",
100
- values: [13.253, 15.621, 23.36, 33.698, 29.935, 10.874, 2.364, 0.561, 0.107, 0.02, 6e-3, 4e-3]
101
- }
102
- ]
103
- },
104
- {
105
- name: "_",
106
- datapoints: [
107
- {
108
- name: "_",
109
- color: "#999999",
110
- values: [10.851, 13.195, 21.617, 36.556, 42.292, 21.006, 3.398, 0.223, 0.013, 1e-3, 0, 0]
111
- },
112
- {
113
- name: "_",
114
- color: "#CACACA",
115
- values: [3.171, 4.115, 8.108, 18.248, 31.641, 29.063, 12.031, 2.742, 0.504, 0.102, 0.032, 0.021]
116
- }
117
- ]
118
- },
119
- {
120
- name: "_",
121
- datapoints: [
122
- {
123
- name: "_",
124
- color: "#999999",
125
- values: [1.731, 2.334, 5.125, 13.626, 29.911, 38.524, 24.168, 7.646, 1.575, 0.317, 0.097, 0.063]
126
- },
127
- {
128
- name: "_",
129
- color: "#CACACA",
130
- values: [0.25, 0.367, 1.026, 3.944, 13.635, 28.891, 30.149, 15.419, 4.714, 1.246, 0.442, 0.299]
131
- }
132
- ]
133
- },
134
- {
135
- name: "_",
136
- datapoints: [
137
- {
138
- name: "_",
139
- color: "#999999",
140
- values: [0.034, 0.054, 0.194, 1.065, 5.747, 20.735, 38.306, 32.899, 15.318, 5.566, 2.422, 1.76]
141
- },
142
- {
143
- name: "_",
144
- color: "#CACACA",
145
- values: [1e-3, 2e-3, 9e-3, 0.095, 1.124, 8.342, 27.115, 35.08, 21.449, 9.093, 4.243, 3.143]
146
- }
147
- ]
148
- },
149
- {
150
- name: "_",
151
- datapoints: [
152
- {
153
- name: "_",
154
- color: "#999999",
155
- values: [0, 1e-3, 4e-3, 0.051, 0.567, 3.322, 14.215, 44.783, 40.351, 20.377, 9.866, 7.378]
156
- },
157
- {
158
- name: "_",
159
- color: "#CACACA",
160
- values: [0, 0, 0, 0, 1e-3, 0.11, 4.136, 27.498, 43.24, 29.807, 17.345, 13.678]
161
- }
162
- ]
163
- },
164
- {
165
- name: "_",
166
- datapoints: [
167
- {
168
- name: "_",
169
- color: "#999999",
170
- values: [0, 0, 0, 0, 0.025, 0.598, 3.886, 10.645, 54.479, 45.953, 30.814, 24.55]
171
- },
172
- {
173
- name: "_",
174
- color: "#CACACA",
175
- values: [0, 0, 0, 0, 0, 0, 7e-3, 1.655, 26.63, 52.017, 45.192, 39.651]
176
- }
177
- ]
178
- }
179
- ],
180
- skeletonConfig: ml({
181
- defaultConfig: e.value,
182
- userConfig: {
183
- userOptions: { show: !1 },
184
- table: { show: !1 },
185
- style: {
186
- chart: {
187
- backgroundColor: "#99999930",
188
- areas: {
189
- maxPoint: {
190
- show: !1
191
- },
192
- opacity: 0.9,
193
- stroke: {
194
- useSerieColor: !0
195
- }
196
- },
197
- legend: {
198
- backgroundColor: "transparent"
199
- },
200
- padding: {
201
- right: -24,
202
- left: 0
203
- },
204
- xAxis: {
205
- labels: {
206
- values: []
207
- }
208
- },
209
- yAxis: {
210
- labels: {
211
- fontSize: 0
212
- }
213
- },
214
- zeroLine: { show: !1 }
215
- }
216
- }
217
- }
218
- })
219
- }), x = u(Math.min(
220
- e.value.style.chart.areas.height,
221
- e.value.style.chart.areas.rowHeight
222
- )), {
223
- userOptionsVisible: le,
224
- setUserOptionsVisibility: Ve,
225
- keepUserOptionState: Xe
226
- } = Vl({ config: e.value }), { svgRef: oe } = Xl({ config: e.value.style.chart.title }), Ae = c(() => !!e.value.debug);
227
- function Ue() {
228
- const t = M.value || [];
229
- if (!Array.isArray(t) || t.length === 0) {
230
- Se({ componentName: "VueUiRidgeline", type: "dataset", debug: Ae.value }), ye.value = !0;
231
- return;
232
- }
233
- if (t.forEach((o, l) => {
234
- vt({
235
- datasetObject: o,
236
- requiredAttributes: ["name", "datapoints"]
237
- }).forEach((r) => {
238
- G.value = !1, Se({
239
- componentName: "VueUiRidgeline",
240
- type: "datasetSerieAttribute",
241
- property: r,
242
- index: l,
243
- debug: Ae.value
244
- });
245
- }), Array.isArray(o.datapoints) && o.datapoints.length && o.datapoints.forEach((r, a) => {
246
- vt({
247
- datasetObject: r,
248
- requiredAttributes: ["name", "values"]
249
- }).forEach((h) => {
250
- G.value = !1, Se({
251
- componentName: "VueUiRidgeline",
252
- type: "datasetSerieAttribute",
253
- property: `datapoint.${h}`,
254
- index: `${l}-${a}`,
255
- debug: Ae.value
256
- });
257
- });
258
- });
259
- }), Mt.value = t.length, x.value = Math.min(
260
- e.value.style.chart.areas.height,
261
- e.value.style.chart.areas.rowHeight
262
- ), El(z.dataset) || (ye.value = e.value.loading), e.value.responsive) {
263
- const o = gt(() => {
264
- const { width: l, height: r } = zl({
265
- chart: D.value,
266
- title: e.value.style.chart.title.text ? Oe.value : null,
267
- legend: e.value.style.chart.legend.show ? Me.value : null,
268
- source: Pe.value,
269
- noTitle: Ne.value,
270
- padding: e.value.style.chart.padding
271
- });
272
- requestAnimationFrame(() => {
273
- Ie.value = l, x.value = t.length ? r / t.length : 0, He.value = r - 12;
274
- });
275
- });
276
- T.value && (O.value && T.value.unobserve(O.value), T.value.disconnect()), T.value = new ResizeObserver(o), O.value = D.value?.parentNode || null, O.value && T.value.observe(O.value);
277
- }
278
- }
279
- ct(() => {
280
- T.value && (O.value && T.value.unobserve(O.value), T.value.disconnect());
281
- });
282
- const { isPrinting: je, isImaging: Ge, generatePdf: We, generateImage: Ye } = Nl({
283
- elementId: `vue-ui-ridgeline_${k.value}`,
284
- fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
285
- options: e.value.userOptions.print
286
- }), Pt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Nt = c(() => pl(e.value.customPalette)), P = u({
287
- showTable: e.value.table.show
288
- });
289
- te(
290
- () => M.value,
291
- async (t) => {
292
- Array.isArray(t) && t.length && (le.value = !e.value.userOptions.showOnChartHover, await De(), Ue(), he.value += 1, ve.value += 1, P.value.showTable = e.value.table.show);
293
- },
294
- { deep: !0, immediate: !0 }
295
- ), te(() => z.dataset, (t) => {
296
- Array.isArray(t) && t.length > 0 && (ye.value = !1);
297
- }, { deep: !0 }), te(
298
- () => Y.value,
299
- async (t) => {
300
- t || (await De(), Ue());
301
- },
302
- { immediate: !0 }
303
- ), te(
304
- () => z.config,
305
- () => {
306
- e.value = Ce(M.value || null), le.value = !e.value.userOptions.showOnChartHover, x.value = Math.min(e.value.style.chart.areas.height, e.value.style.chart.areas.rowHeight), P.value.showTable = e.value.table.show, he.value += 1, ve.value += 1;
307
- },
308
- { deep: !0 }
309
- );
310
- const me = c(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
311
- function ae(t) {
312
- w.value.includes(t) ? w.value = w.value.filter((o) => o !== t) : w.value.push(t), de("selectLegend", U.value);
313
- }
314
- function qe(t) {
315
- if (!j.value.length)
316
- return e.value.debug && console.warn("VueUiRidgeline - There are no series to show."), null;
317
- const o = j.value.find((l) => l.name === t);
318
- return o || (e.value.debug && console.warn(`VueUiRidgeline - Series name not found "${t}"`), null);
319
- }
320
- function Rt(t) {
321
- const o = qe(t);
322
- o !== null && w.value.includes(o.id) && ae(o.id);
323
- }
324
- function It(t) {
325
- const o = qe(t);
326
- o !== null && (w.value.includes(o.id) || ae(o.id));
327
- }
328
- const S = c(() => G.value ? (M.value || []).map((t) => ({
329
- ...t,
330
- labelLen: Yt(t.name, e.value.style.chart.yAxis.labels.fontSize),
331
- uid: Te(),
332
- datapoints: t.datapoints.map((o, l) => {
333
- const r = o.color ? kl(o.color) : Nt.value[l] || ie[l] || ie[l % ie.length], a = dt(o.name);
334
- return { ...o, color: r, id: a };
335
- })
336
- })) : []), Je = c(() => e.value.style.chart.padding.top + x.value * (M.value || []).length + x.value * me.value + e.value.style.chart.padding.bottom), C = c(() => {
337
- const t = e.value.style.chart.padding;
338
- return {
339
- width: Ie.value,
340
- height: Je.value,
341
- padding: t
342
- };
343
- }), Ht = c(() => C.value.width), Vt = c(() => C.value.height), pe = u(0), Xt = gt((t) => {
344
- pe.value = t;
345
- }, 100);
346
- yl((t) => {
347
- const o = fe.value;
348
- if (!o) return;
349
- const l = new ResizeObserver((r) => {
350
- Xt(r[0].contentRect.height);
351
- });
352
- l.observe(o), t(() => l.disconnect());
353
- }), ct(() => {
354
- pe.value = 0;
355
- });
356
- const A = c(() => ({
357
- fullHeight: C.value.height + pe.value,
358
- top: C.value.padding.top,
359
- left: C.value.padding.left,
360
- right: C.value.width - C.value.padding.right,
361
- bottom: C.value.height - e.value.style.chart.padding.bottom,
362
- width: C.value.width - (C.value.padding.left + C.value.padding.right)
363
- })), q = c(() => Math.max(...S.value.flatMap((t) => t.datapoints.map((o) => o.values.length)))), J = c(() => Il({
364
- values: e.value.style.chart.xAxis.labels.values,
365
- maxDatapoints: q.value,
366
- formatter: e.value.style.chart.xAxis.labels.datetimeFormatter,
367
- start: 0,
368
- end: e.value.style.chart.xAxis.labels.values.length
369
- })), X = c(() => {
370
- const t = Math.max(...S.value.map((a) => a.labelLen)), o = C.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, l = (A.value.width - o) / q.value, r = [];
371
- for (let a = 0; a < q.value; a += 1)
372
- r.push({
373
- selectorX: o + l * a,
374
- x: o + l * a - l / 2,
375
- y: A.value.top,
376
- label: e.value.style.chart.xAxis.labels.values[a] ? J.value[a].text : "",
377
- index: a,
378
- width: l,
379
- height: Je.value
380
- });
381
- return r;
382
- });
383
- function ke(t) {
384
- return S.value.map((o) => o.datapoints.map((l) => ({
385
- dp: l,
386
- selected: l.values[t.index]
387
- })));
388
- }
389
- function Ut(t) {
390
- f.value = t;
391
- const o = ke(t);
392
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: t.index });
393
- }
394
- function jt(t) {
395
- f.value = null;
396
- const o = ke(t);
397
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: o, seriesIndex: t.index });
398
- }
399
- function Gt(t) {
400
- const o = ke(t);
401
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: t.index }), de("selectX", o);
402
- }
403
- function Wt(t, o) {
404
- return t.length * o / 2 + o;
405
- }
406
- function Ke(t, o, l) {
407
- const r = Wt(o, l);
408
- return t + r > A.value.right;
409
- }
410
- function Yt(t, o, l = "sans-serif") {
411
- const a = document.createElement("canvas").getContext("2d"), h = typeof o == "number" ? `${o}px` : o;
412
- return a.font = `${h} ${l}`, a.measureText(t).width;
413
- }
414
- const U = c(() => {
415
- x.value;
416
- const t = Math.max(...S.value.map((m) => m.labelLen)), o = Math.max(...S.value.flatMap((m) => m.datapoints.flatMap((Q) => Q.values))), l = Math.min(...S.value.flatMap((m) => m.datapoints.flatMap((Q) => Q.values))), r = C.value.padding.left + t + 16 + e.value.style.chart.yAxis.labels.offsetX, a = (A.value.width - r) / q.value, h = Math.abs(Math.min(l, 0)), $ = o + h;
417
- function rt(m) {
418
- return isNaN(m / $) ? 0 : m / $;
419
- }
420
- return S.value.map((m, Q) => {
421
- const st = A.value.top + x.value * Q, R = A.value.top + st + x.value * me.value * (1 - rt(h));
422
- return {
423
- ...m,
424
- label: {
425
- x: r - e.value.style.chart.yAxis.labels.fontSize,
426
- y: R
427
- },
428
- datapoints: m.datapoints.map((Z) => {
429
- const I = Z.values.map((ee, hl) => {
430
- const vl = isNaN(ee) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(ee) ? 0 : ee || 0, gl = r + a * hl, fl = A.value.top + st + x.value * me.value * (1 - rt(vl + h)), bl = ee === Math.max(...Z.values);
431
- return {
432
- x: gl,
433
- y: fl,
434
- value: ee,
435
- isMaxPoint: bl,
436
- zero: R
437
- };
438
- }), il = `${xl(I, R, !1, !1)}`, ul = `M ${r},${R} ${ht(I)} ${I.at(-1).x},${R}`, cl = `M ${r},${R} ${I.at(-1).x},${R}`, nt = `M ${wl(I)}`, it = `M ${ht(I)}`, dl = Fl(
439
- e.value.style.chart.areas.smooth ? nt : it
440
- );
441
- return {
442
- ...Z,
443
- uid: Te(),
444
- plots: I,
445
- smoothPath: il,
446
- straightPath: ul,
447
- zeroPath: cl,
448
- pathLength: dl,
449
- smoothPathRidge: nt,
450
- straightPathRidge: it
451
- };
452
- }).filter((Z) => !w.value.includes(Z.id))
453
- };
454
- });
455
- }), w = u([]);
456
- function qt(t) {
457
- const o = /* @__PURE__ */ new Map();
458
- return t.forEach((l) => {
459
- l.datapoints.forEach((r, a) => {
460
- const h = dt(r.name);
461
- o.has(h) || o.set(h, {
462
- id: h,
463
- name: r.name,
464
- color: r.color,
465
- shape: "circle",
466
- segregate: () => ae(h),
467
- isSegregated: w.value.includes(h),
468
- opacity: w.value.includes(h) ? 0.5 : 1
469
- });
470
- });
471
- }), Array.from(o.values());
472
- }
473
- const j = c(() => qt(S.value)), Jt = c(() => ({
474
- cy: "donut-div-legend",
475
- backgroundColor: e.value.style.chart.legend.backgroundColor,
476
- color: e.value.style.chart.legend.color,
477
- fontSize: e.value.style.chart.legend.fontSize,
478
- paddingBottom: 12,
479
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
480
- })), N = u(!1);
481
- function Qe(t) {
482
- N.value = t, Re.value += 1;
483
- }
484
- const Ze = u({}), et = u([]);
485
- function Kt(t) {
486
- de("selectDatapoint", t), e.value.style.chart.dialog.show && (et.value = t.datapoints.map((o) => ({
487
- name: o.name,
488
- color: o.color,
489
- type: "line",
490
- useArea: !0,
491
- smooth: e.value.style.chart.areas.smooth,
492
- series: o.values
493
- })), V.value = t, Ze.value = Ll({
494
- ...e.value.style.chart.dialog.xyChart,
495
- responsive: !0,
496
- // Overriding
497
- chart: {
498
- ...e.value.style.chart.dialog.xyChart.chart,
499
- grid: {
500
- ...e.value.style.chart.dialog.xyChart.chart.grid,
501
- labels: {
502
- ...e.value.style.chart.dialog.xyChart.chart.grid.labels,
503
- xAxisLabels: {
504
- ...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
505
- values: e.value.style.chart.xAxis.labels.values,
506
- // Overriding
507
- autoRotate: {
508
- enable: !0,
509
- angle: e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels.autoRotate.angle
510
- },
511
- // overriding
512
- datetimeFormatter: e.value.style.chart.xAxis.labels.datetimeFormatter
513
- // Overriding
514
- }
515
- }
516
- },
517
- tooltip: {
518
- ...e.value.style.chart.dialog.xyChart.chart.tooltip,
519
- showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
520
- // Overriding
521
- }
522
- }
523
- }), ge.value && ge.value.open());
524
- }
525
- const xe = u(null);
526
- function Qt(t) {
527
- xe.value = t;
528
- }
529
- function Zt() {
530
- xe.value = null;
531
- }
532
- const re = u(!1);
533
- function we() {
534
- re.value = !re.value;
535
- }
536
- function tt() {
537
- P.value.showTable = !P.value.showTable;
538
- }
539
- const lt = c(() => ({ body: U.value.flatMap((l) => l.datapoints.flatMap((r) => ({
540
- ...r,
541
- rowName: `${l.name}: ${r.name}`
542
- }))).map((l) => [
543
- {
544
- name: l.rowName,
545
- color: l.color
546
- },
547
- ...l.values
548
- ]) })), se = c(() => {
549
- const t = [
550
- e.value.table.columnNames.series,
551
- ...J.value.map((r) => r.text)
552
- ], o = {
553
- th: {
554
- backgroundColor: e.value.table.th.backgroundColor,
555
- color: e.value.table.th.color,
556
- outline: e.value.table.th.outline
557
- },
558
- td: {
559
- backgroundColor: e.value.table.td.backgroundColor,
560
- color: e.value.table.td.color,
561
- outline: e.value.table.td.outline
562
- },
563
- breakpoint: e.value.table.responsiveBreakpoint
564
- };
565
- return {
566
- colNames: [
567
- e.value.table.columnNames.series,
568
- ...J.value.map((r) => r.text)
569
- ],
570
- head: t,
571
- body: lt.value.body,
572
- config: o
573
- };
574
- });
575
- function Fe(t = null) {
576
- De(() => {
577
- const o = [
578
- [e.value.table.columnNames.series, ...J.map((a) => [a.text])],
579
- ...lt.value.body.map((a, h) => [a[0].name, ...a.slice(1)])
580
- ], l = [
581
- [e.value.style.chart.title.text],
582
- [e.value.style.chart.title.subtitle.text]
583
- ].concat(o), r = Tl(l);
584
- t ? t(r) : Sl({
585
- csvContent: r,
586
- title: e.value.style.chart.title.text || "vue-ui-ridgeline"
587
- });
588
- });
589
- }
590
- function el() {
591
- return U.value;
592
- }
593
- async function tl({ scale: t = 2 } = {}) {
594
- if (!D.value) return;
595
- const { width: o, height: l } = D.value.getBoundingClientRect(), r = o / l, { imageUri: a, base64: h } = await Yl({ domElement: D.value, base64: !0, img: !0, scale: t });
596
- return {
597
- imageUri: a,
598
- base64: h,
599
- title: e.value.style.chart.title.text,
600
- width: o,
601
- height: l,
602
- aspectRatio: r
603
- };
604
- }
605
- const ll = c(() => ({ min: 0, max: q.value }));
606
- Ul({
607
- timeLabelsEls: fe,
608
- timeLabels: J,
609
- slicer: ll,
610
- configRef: e,
611
- rotationPath: ["style", "chart", "xAxis", "labels", "rotation"],
612
- autoRotatePath: ["style", "chart", "xAxis", "labels", "autoRotate", "enable"],
613
- isAutoSize: !1,
614
- width: Ht,
615
- height: Vt,
616
- targetClass: ".vue-ui-ridgeline-x-axis-label",
617
- angle: e.value.style.chart.xAxis.labels.autoRotate.angle
618
- });
619
- const K = c(() => {
620
- const t = e.value.table.useDialog && !e.value.table.show, o = P.value.showTable;
621
- return {
622
- component: t ? ze : $t,
623
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
624
- props: t ? {
625
- backgroundColor: e.value.table.th.backgroundColor,
626
- color: e.value.table.th.color,
627
- headerColor: e.value.table.th.color,
628
- headerBg: e.value.table.th.backgroundColor,
629
- isFullscreen: N.value,
630
- fullscreenParent: D.value,
631
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
632
- } : {
633
- hideDetails: !0,
634
- config: {
635
- open: o,
636
- maxHeight: 1e4,
637
- body: {
638
- backgroundColor: e.value.style.chart.backgroundColor,
639
- color: e.value.style.chart.color
640
- },
641
- head: {
642
- backgroundColor: e.value.style.chart.backgroundColor,
643
- color: e.value.style.chart.color
644
- }
645
- }
646
- }
647
- };
648
- });
649
- te(() => P.value.showTable, (t) => {
650
- e.value.table.show || (t && e.value.table.useDialog && W.value ? W.value.open() : "close" in W.value && W.value.close());
651
- });
652
- function ot() {
653
- P.value.showTable = !1, be.value && be.value.setTableIconState(!1);
654
- }
655
- const ol = c(() => e.value.style.chart.backgroundColor), al = c(() => ({
656
- ...e.value.style.chart.legend,
657
- position: "bottom"
658
- })), rl = c(() => e.value.style.chart.title), { exportSvg: sl, getSvg: nl } = Rl({
659
- svg: oe,
660
- title: rl,
661
- legend: al,
662
- legendItems: j,
663
- backgroundColor: ol
664
- });
665
- async function at({ isCb: t }) {
666
- if (t) {
667
- const { blob: o, url: l, text: r, dataUrl: a } = await nl();
668
- e.value.userOptions.callbacks.svg({ blob: o, url: l, text: r, dataUrl: a });
669
- } else
670
- sl();
671
- }
672
- return xt({
673
- getData: el,
674
- getImage: tl,
675
- generateImage: Ye,
676
- generateSvg: at,
677
- generatePdf: We,
678
- generateCsv: Fe,
679
- hideSeries: It,
680
- showSeries: Rt,
681
- toggleAnnotator: we,
682
- toggleTable: tt,
683
- toggleFullscreen: Qe
684
- }), (t, o) => (s(), n("div", {
685
- ref_key: "ridgelineChart",
686
- ref: D,
687
- class: ne(`vue-data-ui-component vue-ui-ridgeline ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
688
- id: `vue-ui-ridgeline_${k.value}`,
689
- style: F({
690
- fontFamily: e.value.style.fontFamily,
691
- width: "100%",
692
- textAlign: "center",
693
- background: e.value.style.chart.backgroundColor,
694
- height: e.value.responsive ? "100%" : void 0
695
- }),
696
- onMouseenter: o[3] || (o[3] = () => i(Ve)(!0)),
697
- onMouseleave: o[4] || (o[4] = () => i(Ve)(!1))
698
- }, [
699
- e.value.userOptions.buttons.annotator && i(oe) ? (s(), _(i(Bt), {
700
- key: 0,
701
- color: e.value.style.chart.color,
702
- backgroundColor: e.value.style.chart.backgroundColor,
703
- active: re.value,
704
- svgRef: i(oe),
705
- onClose: we
706
- }, {
707
- "annotator-action-close": d(() => [
708
- g(t.$slots, "annotator-action-close", {}, void 0, !0)
709
- ]),
710
- "annotator-action-color": d(({ color: l }) => [
711
- g(t.$slots, "annotator-action-color", B(E({ color: l })), void 0, !0)
712
- ]),
713
- "annotator-action-draw": d(({ mode: l }) => [
714
- g(t.$slots, "annotator-action-draw", B(E({ mode: l })), void 0, !0)
715
- ]),
716
- "annotator-action-undo": d(({ disabled: l }) => [
717
- g(t.$slots, "annotator-action-undo", B(E({ disabled: l })), void 0, !0)
718
- ]),
719
- "annotator-action-redo": d(({ disabled: l }) => [
720
- g(t.$slots, "annotator-action-redo", B(E({ disabled: l })), void 0, !0)
721
- ]),
722
- "annotator-action-delete": d(({ disabled: l }) => [
723
- g(t.$slots, "annotator-action-delete", B(E({ disabled: l })), void 0, !0)
724
- ]),
725
- _: 3
726
- }, 8, ["color", "backgroundColor", "active", "svgRef"])) : v("", !0),
727
- g(t.$slots, "userConfig", {}, void 0, !0),
728
- Pt.value ? (s(), n("div", {
729
- key: 1,
730
- ref_key: "noTitle",
731
- ref: Ne,
732
- class: "vue-data-ui-no-title-space",
733
- style: "height:36px; width: 100%;background:transparent"
734
- }, null, 512)) : v("", !0),
735
- e.value.style.chart.title.text ? (s(), n("div", {
736
- key: 2,
737
- ref_key: "chartTitle",
738
- ref: Oe,
739
- style: "width:100%;background:transparent;padding-bottom:24px"
740
- }, [
741
- (s(), _(Gl, {
742
- key: `title_${he.value}`,
743
- config: {
744
- title: {
745
- cy: "ridgeline-div-title",
746
- ...e.value.style.chart.title
747
- },
748
- subtitle: {
749
- cy: "ridgeline-div-subtitle",
750
- ...e.value.style.chart.title.subtitle
751
- }
752
- }
753
- }, null, 8, ["config"]))
754
- ], 512)) : v("", !0),
755
- e.value.userOptions.show && G.value && (i(Xe) || i(le)) ? (s(), _(i(Et), {
756
- ref_key: "userOptionsRef",
757
- ref: be,
758
- key: `user_option_${Re.value}`,
759
- backgroundColor: e.value.style.chart.backgroundColor,
760
- color: e.value.style.chart.color,
761
- isPrinting: i(je),
762
- isImaging: i(Ge),
763
- uid: k.value,
764
- hasTooltip: !1,
765
- callbacks: e.value.userOptions.callbacks,
766
- hasPdf: e.value.userOptions.buttons.pdf,
767
- hasImg: e.value.userOptions.buttons.img,
768
- hasSvg: e.value.userOptions.buttons.svg,
769
- hasXls: e.value.userOptions.buttons.csv,
770
- hasTable: e.value.userOptions.buttons.table,
771
- hasLabel: !1,
772
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
773
- isFullscreen: N.value,
774
- printScale: e.value.userOptions.print.scale,
775
- chartElement: D.value,
776
- position: e.value.userOptions.position,
777
- isTooltip: !1,
778
- titles: { ...e.value.userOptions.buttonTitles },
779
- hasAnnotator: e.value.userOptions.buttons.annotator,
780
- isAnnotation: re.value,
781
- tableDialog: e.value.table.useDialog,
782
- style: F({ visibility: i(Xe) ? i(le) ? "visible" : "hidden" : "visible" }),
783
- onToggleFullscreen: Qe,
784
- onGeneratePdf: i(We),
785
- onGenerateCsv: Fe,
786
- onGenerateImage: i(Ye),
787
- onGenerateSvg: at,
788
- onToggleTable: tt,
789
- onToggleAnnotator: we
790
- }, $e({ _: 2 }, [
791
- t.$slots.menuIcon ? {
792
- name: "menuIcon",
793
- fn: d(({ isOpen: l, color: r }) => [
794
- g(t.$slots, "menuIcon", B(E({ isOpen: l, color: r })), void 0, !0)
795
- ]),
796
- key: "0"
797
- } : void 0,
798
- t.$slots.optionTooltip ? {
799
- name: "optionTooltip",
800
- fn: d(() => [
801
- g(t.$slots, "optionTooltip", {}, void 0, !0)
802
- ]),
803
- key: "1"
804
- } : void 0,
805
- t.$slots.optionPdf ? {
806
- name: "optionPdf",
807
- fn: d(() => [
808
- g(t.$slots, "optionPdf", {}, void 0, !0)
809
- ]),
810
- key: "2"
811
- } : void 0,
812
- t.$slots.optionCsv ? {
813
- name: "optionCsv",
814
- fn: d(() => [
815
- g(t.$slots, "optionCsv", {}, void 0, !0)
816
- ]),
817
- key: "3"
818
- } : void 0,
819
- t.$slots.optionImg ? {
820
- name: "optionImg",
821
- fn: d(() => [
822
- g(t.$slots, "optionImg", {}, void 0, !0)
823
- ]),
824
- key: "4"
825
- } : void 0,
826
- t.$slots.optionSvg ? {
827
- name: "optionSvg",
828
- fn: d(() => [
829
- g(t.$slots, "optionSvg", {}, void 0, !0)
830
- ]),
831
- key: "5"
832
- } : void 0,
833
- t.$slots.optionTable ? {
834
- name: "optionTable",
835
- fn: d(() => [
836
- g(t.$slots, "optionTable", {}, void 0, !0)
837
- ]),
838
- key: "6"
839
- } : void 0,
840
- t.$slots.optionFullscreen ? {
841
- name: "optionFullscreen",
842
- fn: d(({ toggleFullscreen: l, isFullscreen: r }) => [
843
- g(t.$slots, "optionFullscreen", B(E({ toggleFullscreen: l, isFullscreen: r })), void 0, !0)
844
- ]),
845
- key: "7"
846
- } : void 0,
847
- t.$slots.optionAnnotator ? {
848
- name: "optionAnnotator",
849
- fn: d(({ toggleAnnotator: l, isAnnotator: r }) => [
850
- g(t.$slots, "optionAnnotator", B(E({ toggleAnnotator: l, isAnnotator: r })), void 0, !0)
851
- ]),
852
- key: "8"
853
- } : void 0
854
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "callbacks", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "printScale", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "style", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
855
- (s(), n("svg", {
856
- ref_key: "svgRef",
857
- ref: oe,
858
- xmlns: i(Dl),
859
- class: ne({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
860
- viewBox: `0 0 ${C.value.width <= 0 ? 10 : C.value.width} ${A.value.fullHeight <= 0 ? 10 : A.value.fullHeight}`,
861
- style: F(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? `height: ${He.value}px; width: 100%;` : ""}`)
862
- }, [
863
- _e(i(Tt)),
864
- b("defs", null, [
865
- (s(!0), n(y, null, p(j.value, (l, r) => (s(), n("linearGradient", {
866
- id: `gradient-${l.id}-${k.value}`,
867
- x1: "50%",
868
- y1: "0%",
869
- x2: "50%",
870
- y2: "100%"
871
- }, [
872
- b("stop", {
873
- offset: "0%",
874
- "stop-color": l.color,
875
- "stop-opacity": "1"
876
- }, null, 8, Zl),
877
- b("stop", {
878
- offset: "30%",
879
- "stop-color": l.color,
880
- "stop-opacity": "0.7"
881
- }, null, 8, eo),
882
- b("stop", {
883
- offset: "70%",
884
- "stop-color": l.color,
885
- "stop-opacity": "0.3"
886
- }, null, 8, to),
887
- b("stop", {
888
- offset: "100%",
889
- "stop-color": l.color,
890
- "stop-opacity": "0.1"
891
- }, null, 8, lo)
892
- ], 8, Ql))), 256)),
893
- (s(!0), n(y, null, p(U.value, (l, r) => (s(), n(y, null, [
894
- (s(!0), n(y, null, p(l.datapoints, (a, h) => (s(), n("linearGradient", {
895
- key: `grad${a.id}`,
896
- id: `gradient-single-${k.value}-${a.uid}`,
897
- x1: "50%",
898
- y1: "0%",
899
- x2: "50%",
900
- y2: "100%"
901
- }, [
902
- b("stop", {
903
- offset: "0%",
904
- "stop-color": a.color,
905
- "stop-opacity": "1"
906
- }, null, 8, ao),
907
- b("stop", {
908
- offset: "30%",
909
- "stop-color": a.color,
910
- "stop-opacity": "0.7"
911
- }, null, 8, ro),
912
- b("stop", {
913
- offset: "70%",
914
- "stop-color": a.color,
915
- "stop-opacity": "0.3"
916
- }, null, 8, so),
917
- b("stop", {
918
- offset: "100%",
919
- "stop-color": a.color,
920
- "stop-opacity": "0.1"
921
- }, null, 8, no)
922
- ], 8, oo))), 128))
923
- ], 64))), 256))
924
- ]),
925
- (s(!0), n(y, null, p(U.value, (l, r) => (s(), n("g", {
926
- key: `ds-${r}`
927
- }, [
928
- (s(!0), n(y, null, p(l.datapoints, (a, h) => (s(), n("g", {
929
- key: a.id
930
- }, [
931
- t.$slots.pattern ? (s(), n("g", io, [
932
- b("defs", null, [
933
- g(t.$slots, "pattern", Be({ ref_for: !0 }, { datapointIndex: r, seriesIndex: h, patternId: `pattern_${k.value}_${a.uid}` }), void 0, !0)
934
- ])
935
- ])) : v("", !0),
936
- b("path", {
937
- fill: t.$slots.pattern ? `url(#pattern_${k.value}_${a.uid})` : e.value.style.chart.backgroundColor,
938
- stroke: "none",
939
- "stroke-linecap": "round",
940
- d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
941
- style: F({
942
- opacity: e.value.style.chart.areas.opacity
943
- })
944
- }, null, 12, uo),
945
- b("path", {
946
- fill: "none",
947
- stroke: e.value.style.chart.areas.stroke.useSerieColor ? a.color : e.value.style.chart.areas.stroke.color,
948
- "stroke-width": e.value.style.chart.areas.strokeWidth,
949
- d: e.value.style.chart.areas.smooth ? a.smoothPathRidge : a.straightPathRidge,
950
- "stroke-linecap": "round",
951
- "stroke-linejoin": "round",
952
- class: ne({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !i(Y) }),
953
- style: F({
954
- strokeDasharray: a.pathLength,
955
- strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
956
- })
957
- }, null, 14, co),
958
- b("path", {
959
- fill: e.value.style.chart.areas.useGradient ? e.value.style.chart.areas.useCommonColor ? `url(#gradient-${a.id}-${k.value})` : `url(#gradient-single-${k.value}-${a.uid})` : a.color,
960
- stroke: "none",
961
- d: e.value.style.chart.areas.smooth ? a.smoothPath : a.straightPath,
962
- "stroke-linecap": "round",
963
- "stroke-linejoin": "round",
964
- class: ne({ "vue-ui-ridgeline-animate": e.value.useCssAnimation && !i(Y) }),
965
- style: F({
966
- strokeDasharray: a.pathLength,
967
- strokeDashoffset: e.value.useCssAnimation ? a.pathLength : 0
968
- })
969
- }, null, 14, ho),
970
- e.value.style.chart.zeroLine.show ? (s(), n("path", {
971
- key: 1,
972
- stroke: e.value.style.chart.zeroLine.useSerieColor ? a.color : e.value.style.chart.zeroLine.stroke,
973
- "stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
974
- "stroke-width": e.value.style.chart.zeroLine.strokeWidth,
975
- d: a.zeroPath,
976
- "stroke-linecap": "round"
977
- }, null, 8, vo)) : v("", !0),
978
- e.value.style.chart.areas.maxPoint.show && a.plots.length > 1 ? (s(!0), n(y, { key: 2 }, p(a.plots, ($) => (s(), n(y, null, [
979
- $.isMaxPoint ? (s(), n("line", {
980
- key: 0,
981
- x1: $.x,
982
- y1: $.y,
983
- x2: $.x,
984
- y2: $.zero,
985
- stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? i($l)(a.color) : e.value.style.chart.areas.maxPoint.stroke,
986
- "stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
987
- "stroke-linecap": "round",
988
- "stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
989
- }, null, 8, go)) : v("", !0)
990
- ], 64))), 256)) : v("", !0),
991
- a.plots.length === 1 ? (s(), n("circle", {
992
- key: 3,
993
- cx: a.plots[0].x,
994
- cy: a.plots[0].y,
995
- stroke: e.value.style.chart.selector.dot.stroke,
996
- "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
997
- r: e.value.style.chart.selector.dot.radius,
998
- fill: e.value.style.chart.selector.dot.useDatapointColor ? a.color : e.value.style.chart.selector.dot.fill,
999
- style: {
1000
- pointerEvents: "none"
1001
- }
1002
- }, null, 8, fo)) : v("", !0)
1003
- ]))), 128)),
1004
- b("text", {
1005
- x: l.label.x,
1006
- y: l.label.y,
1007
- "text-anchor": "end",
1008
- "font-size": e.value.style.chart.yAxis.labels.fontSize,
1009
- "font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
1010
- fill: e.value.style.chart.yAxis.labels.color,
1011
- style: F({
1012
- cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
1013
- }),
1014
- "text-decoration": e.value.style.chart.dialog.show && (xe.value === r || V.value && l.uid === V.value.uid) ? "underline" : "",
1015
- onMouseenter: (a) => Qt(r),
1016
- onMouseleave: Zt,
1017
- onClick: (a) => Kt(l)
1018
- }, H(l.name), 45, bo)
1019
- ]))), 128)),
1020
- e.value.style.chart.xAxis.labels.values.length ? (s(), n("g", {
1021
- key: 0,
1022
- ref_key: "timeLabelsEls",
1023
- ref: fe
1024
- }, [
1025
- (s(!0), n(y, null, p(X.value, (l, r) => g(t.$slots, "time-label", Be({ ref_for: !0 }, {
1026
- show: l && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || l && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === X.value.length - 1) || l && f.value && f.value.index === r || l && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
1027
- fontSize: e.value.style.chart.xAxis.labels.fontSize,
1028
- content: l.label,
1029
- textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1030
- fill: e.value.style.chart.xAxis.labels.color,
1031
- transform: `translate(${l.selectorX}, ${A.value.top + l.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1032
- x: l.selectorX,
1033
- y: A.value.bottom + e.value.style.chart.xAxis.labels.offsetY
1034
- }), () => [
1035
- l && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || l && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (r === 0 || r === X.value.length - 1) || l && f.value && f.value.index === r || l && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && r % Math.floor(X.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (s(), n("g", Co, [
1036
- String(l.label).includes(`
1037
- `) ? (s(), n("text", {
1038
- key: 1,
1039
- class: "vue-ui-ridgeline-x-axis-label",
1040
- "font-size": e.value.style.chart.xAxis.labels.fontSize,
1041
- fill: e.value.style.chart.xAxis.labels.color,
1042
- "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1043
- transform: `translate(${l.selectorX}, ${A.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1044
- "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1045
- style: F({
1046
- opacity: f.value ? f.value.index === r ? 1 : 0.2 : 1
1047
- }),
1048
- innerHTML: i(_l)({
1049
- content: String(l.label),
1050
- fontSize: e.value.style.chart.xAxis.labels.fontSize,
1051
- fill: e.value.style.chart.xAxis.labels.color,
1052
- x: 0,
1053
- y: 0
1054
- })
1055
- }, null, 12, Ao)) : (s(), n("text", {
1056
- key: 0,
1057
- class: "vue-ui-ridgeline-x-axis-label",
1058
- "font-size": e.value.style.chart.xAxis.labels.fontSize,
1059
- fill: e.value.style.chart.xAxis.labels.color,
1060
- "font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
1061
- transform: `translate(${l.selectorX}, ${A.value.bottom + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
1062
- "text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
1063
- style: F({
1064
- opacity: f.value ? f.value.index === r ? 1 : 0.2 : 1
1065
- })
1066
- }, H(l.label), 13, yo))
1067
- ])) : v("", !0)
1068
- ], !0)), 256))
1069
- ], 512)) : v("", !0),
1070
- b("g", null, [
1071
- (s(!0), n(y, null, p(X.value, (l, r) => (s(), n("rect", {
1072
- x: l.x,
1073
- y: l.y,
1074
- width: l.width < 0 ? 0.1 : l.width,
1075
- height: l.height < 0 ? 0.1 : l.height,
1076
- fill: "transparent",
1077
- onMouseenter: (a) => Ut(l),
1078
- onMouseleave: (a) => jt(l),
1079
- onClick: () => Gt(l)
1080
- }, null, 40, mo))), 256)),
1081
- e.value.style.chart.selector.show && f.value ? (s(), n("line", {
1082
- key: 0,
1083
- x1: f.value.selectorX,
1084
- x2: f.value.selectorX,
1085
- y1: f.value.y,
1086
- y2: f.value.y + f.value.height - x.value / 2,
1087
- stroke: e.value.style.chart.selector.stroke,
1088
- "stroke-width": e.value.style.chart.selector.strokeWidth,
1089
- "stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
1090
- "stroke-linecap": "round",
1091
- style: { pointerEvents: "none" }
1092
- }, null, 8, po)) : v("", !0),
1093
- f.value ? (s(!0), n(y, { key: 1 }, p(U.value, (l) => (s(), n(y, null, [
1094
- (s(!0), n(y, null, p(l.datapoints, (r) => (s(), n(y, null, [
1095
- (s(!0), n(y, null, p(r.plots, (a, h) => (s(), n(y, null, [
1096
- f.value && f.value.index === h ? (s(), n("circle", {
1097
- key: 0,
1098
- cx: a.x,
1099
- cy: a.y,
1100
- stroke: e.value.style.chart.selector.dot.stroke,
1101
- "stroke-width": e.value.style.chart.selector.dot.strokeWidth,
1102
- r: e.value.style.chart.selector.dot.radius,
1103
- fill: e.value.style.chart.selector.dot.useDatapointColor ? r.color : e.value.style.chart.selector.dot.fill,
1104
- style: {
1105
- pointerEvents: "none"
1106
- }
1107
- }, null, 8, ko)) : v("", !0),
1108
- f.value && f.value.index === h ? (s(), n("text", {
1109
- key: 1,
1110
- x: Ke(
1111
- a.x,
1112
- i(ue)(
1113
- e.value.style.chart.selector.labels.formatter,
1114
- a.value,
1115
- i(ce)({
1116
- p: e.value.style.chart.xAxis.labels.prefix,
1117
- v: a.value,
1118
- s: e.value.style.chart.xAxis.labels.suffix,
1119
- r: e.value.style.chart.selector.labels.rounding
1120
- })
1121
- ),
1122
- e.value.style.chart.selector.labels.fontSize
1123
- ) ? a.x - e.value.style.chart.selector.labels.fontSize / 2 : a.x + e.value.style.chart.selector.labels.fontSize / 2,
1124
- y: a.y + e.value.style.chart.selector.labels.fontSize / 3,
1125
- "text-anchor": Ke(
1126
- a.x,
1127
- i(ue)(
1128
- e.value.style.chart.selector.labels.formatter,
1129
- a.value,
1130
- i(ce)({
1131
- p: e.value.style.chart.xAxis.labels.prefix,
1132
- v: a.value,
1133
- s: e.value.style.chart.xAxis.labels.suffix,
1134
- r: e.value.style.chart.selector.labels.rounding
1135
- })
1136
- ),
1137
- e.value.style.chart.selector.labels.fontSize
1138
- ) ? "end" : "start",
1139
- "font-size": e.value.style.chart.selector.labels.fontSize,
1140
- fill: e.value.style.chart.selector.labels.color,
1141
- style: {
1142
- pointerEvents: "none"
1143
- }
1144
- }, H(i(ue)(
1145
- e.value.style.chart.selector.labels.formatter,
1146
- a.value,
1147
- i(ce)({
1148
- p: e.value.style.chart.xAxis.labels.prefix,
1149
- v: a.value,
1150
- s: e.value.style.chart.xAxis.labels.suffix,
1151
- r: e.value.style.chart.selector.labels.rounding
1152
- })
1153
- )), 9, xo)) : v("", !0)
1154
- ], 64))), 256))
1155
- ], 64))), 256))
1156
- ], 64))), 256)) : v("", !0)
1157
- ]),
1158
- g(t.$slots, "svg", { svg: C.value }, void 0, !0)
1159
- ], 14, Kl)),
1160
- t.$slots.watermark ? (s(), n("div", wo, [
1161
- g(t.$slots, "watermark", B(E({ isPrinting: i(je) || i(Ge) })), void 0, !0)
1162
- ])) : v("", !0),
1163
- b("div", {
1164
- ref_key: "chartLegend",
1165
- ref: Me
1166
- }, [
1167
- e.value.style.chart.legend.show ? (s(), _(jl, {
1168
- key: `legend_${ve.value}`,
1169
- legendSet: j.value,
1170
- config: Jt.value,
1171
- onClickMarker: o[0] || (o[0] = ({ legend: l }) => ae(l.id))
1172
- }, $e({
1173
- item: d(({ legend: l }) => [
1174
- i(Y) ? v("", !0) : (s(), n("div", {
1175
- key: 0,
1176
- style: F(`opacity:${w.value.includes(l.id) ? 0.5 : 1}`),
1177
- onClick: (r) => l.segregate()
1178
- }, H(l.name), 13, Fo))
1179
- ]),
1180
- _: 2
1181
- }, [
1182
- t.$slots.pattern ? {
1183
- name: "legend-pattern",
1184
- fn: d(({ legend: l, index: r }) => [
1185
- _e(Wl, {
1186
- shape: l.shape,
1187
- radius: 30,
1188
- stroke: "none",
1189
- plot: { x: 30, y: 30 },
1190
- fill: `url(#pattern_${k.value}_${r})`
1191
- }, null, 8, ["shape", "fill"])
1192
- ]),
1193
- key: "0"
1194
- } : void 0
1195
- ]), 1032, ["legendSet", "config"])) : v("", !0),
1196
- g(t.$slots, "legend", { legend: j.value }, void 0, !0)
1197
- ], 512),
1198
- t.$slots.source ? (s(), n("div", {
1199
- key: 5,
1200
- ref_key: "source",
1201
- ref: Pe,
1202
- dir: "auto"
1203
- }, [
1204
- g(t.$slots, "source", {}, void 0, !0)
1205
- ], 512)) : v("", !0),
1206
- G.value && e.value.userOptions.buttons.table ? (s(), _(Al(K.value.component), Be({ key: 6 }, K.value.props, {
1207
- ref_key: "tableUnit",
1208
- ref: W,
1209
- onClose: ot
1210
- }), $e({
1211
- content: d(() => [
1212
- (s(), _(i(_t), {
1213
- key: `table_${Ot.value}`,
1214
- colNames: se.value.colNames,
1215
- head: se.value.head,
1216
- body: se.value.body,
1217
- config: se.value.config,
1218
- title: e.value.table.useDialog ? "" : K.value.title,
1219
- withCloseButton: !e.value.table.useDialog,
1220
- onClose: ot
1221
- }, {
1222
- th: d(({ th: l }) => [
1223
- b("div", { innerHTML: l }, null, 8, Do)
1224
- ]),
1225
- td: d(({ td: l }) => [
1226
- Ee(H(l.name ? l.name : i(ue)(
1227
- e.value.style.chart.selector.labels.formatter,
1228
- l,
1229
- i(ce)({
1230
- p: e.value.style.chart.xAxis.labels.prefix,
1231
- v: l,
1232
- s: e.value.style.chart.xAxis.labels.suffix,
1233
- r: e.value.table.td.roundingValue
1234
- })
1235
- )), 1)
1236
- ]),
1237
- _: 1
1238
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1239
- ]),
1240
- _: 2
1241
- }, [
1242
- e.value.table.useDialog ? {
1243
- name: "title",
1244
- fn: d(() => [
1245
- Ee(H(K.value.title), 1)
1246
- ]),
1247
- key: "0"
1248
- } : void 0,
1249
- e.value.table.useDialog ? {
1250
- name: "actions",
1251
- fn: d(() => [
1252
- b("button", {
1253
- tabindex: "0",
1254
- class: "vue-ui-user-options-button",
1255
- onClick: o[1] || (o[1] = (l) => Fe(e.value.userOptions.callbacks.csv))
1256
- }, [
1257
- _e(i(Dt), {
1258
- name: "excel",
1259
- stroke: K.value.props.color
1260
- }, null, 8, ["stroke"])
1261
- ])
1262
- ]),
1263
- key: "1"
1264
- } : void 0
1265
- ]), 1040)) : v("", !0),
1266
- e.value.style.chart.dialog.show ? (s(), _(i(ze), {
1267
- key: 7,
1268
- ref_key: "dialog",
1269
- ref: ge,
1270
- onClose: o[2] || (o[2] = (l) => V.value = null),
1271
- backgroundColor: e.value.style.chart.dialog.backgroundColor,
1272
- color: e.value.style.chart.dialog.color,
1273
- headerBg: e.value.style.chart.dialog.header.backgroundColor,
1274
- headerColor: e.value.style.chart.dialog.header.color,
1275
- isFullscreen: N.value,
1276
- fullscreenParent: D.value,
1277
- withPadding: ""
1278
- }, {
1279
- title: d(() => [
1280
- Ee(H(V.value.name), 1)
1281
- ]),
1282
- content: d(() => [
1283
- V.value ? (s(), _(i(Ft), {
1284
- key: 0,
1285
- config: Ze.value,
1286
- dataset: et.value
1287
- }, null, 8, ["config", "dataset"])) : v("", !0)
1288
- ]),
1289
- _: 1
1290
- }, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : v("", !0),
1291
- i(Y) ? (s(), _(Pl, { key: 8 })) : v("", !0)
1292
- ], 46, Jl));
1293
- }
1294
- }, _o = /* @__PURE__ */ ql($o, [["__scopeId", "data-v-e547ab5e"]]), Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1295
- __proto__: null,
1296
- default: _o
1297
- }, Symbol.toStringTag, { value: "Module" }));
1298
- export {
1299
- Go as a,
1300
- Wo as b,
1301
- _o as v
1302
- };