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
@@ -0,0 +1,1006 @@
1
+ import { defineAsyncComponent as F, computed as y, ref as d, toRefs as Vt, onMounted as Wt, watch as Z, shallowRef as Re, onBeforeUnmount as Ne, watchEffect as Ut, createElementBlock as c, openBlock as u, normalizeStyle as L, normalizeClass as Ve, createBlock as N, createCommentVNode as g, renderSlot as b, unref as h, withCtx as p, normalizeProps as x, guardReactiveProps as $, createSlots as We, createVNode as ye, Fragment as k, renderList as S, createElementVNode as ee, toDisplayString as V, mergeProps as be, resolveDynamicComponent as Xt, createTextVNode as Ue } from "vue";
2
+ import { c as Xe, t as jt, i as Yt, j as te, k as Gt, o as je, g as Ye, l as qt, m as Ge, a as Jt, d as Kt, x as qe, E as W, A as Qt, C as Zt, S as el, X as tl, $ as me, v as ll, r as ol } from "./lib-CVHM9FhP.js";
3
+ import { t as Je, u as al } from "./useResponsive-DfdjqQps.js";
4
+ import { u as nl, a as pe } from "./useNestedProp-Ckf_2P_V.js";
5
+ import { u as sl, B as ul } from "./BaseScanner-BMpwQAfz.js";
6
+ import { u as rl } from "./usePrinter-1NmjuP-i.js";
7
+ import { u as il } from "./useThemeCheck-D1ZYXUwG.js";
8
+ import { u as cl } from "./useTimeLabels-DKoynYae.js";
9
+ import { u as vl } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
11
+ import { u as dl } from "./useTimeLabelCollider-CIsgDrl9.js";
12
+ import fl from "./Title-NgeRXqRA.js";
13
+ import yl from "./BaseDraggableDialog-BQYfVNu8.js";
14
+ import { u as bl } from "./useSvgExport-ByUukOZt.js";
15
+ import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const Ke = { userOptions: { show: !1 } }, Qe = { userOptions: { show: !1 }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { lines: { coatingColor: "#1A1A1A" }, nameLabels: { color: "#CCCCCC" }, plots: { stroke: "#1A1A1A" }, timeLabels: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, Ze = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { lines: { coatingColor: "#1A1A1A" }, nameLabels: { color: "#CCCCCC" }, plots: { stroke: "#1A1A1A" }, timeLabels: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, et = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { lines: { coatingColor: "#FFF8E1" }, nameLabels: { color: "#424242" }, plots: { stroke: "#FFF8E1" }, timeLabels: { color: "#424242" } }, title: { color: "#424242", subtitle: { color: "#757575" } } } } }, tt = { table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { lines: { coatingColor: "#1E1E1E" }, nameLabels: { color: "#BDBDBD" }, plots: { stroke: "#1E1E1E" }, timeLabels: { color: "#BDBDBD" } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } } }, lt = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { lines: { coatingColor: "#1A1A1A" }, nameLabels: { color: "#99AA99" }, plots: { stroke: "#1A1A1A" }, timeLabels: { color: "#99AA99" } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, ot = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { lines: { coatingColor: "#fbfafa" }, nameLabels: { color: "#8A9892" }, plots: { stroke: "#fbfafa" }, timeLabels: { color: "#8A9892" } }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, at = { table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { lines: { coatingColor: "#f6f6fb" }, nameLabels: { color: "#50606C" }, plots: { stroke: "#f6f6fb" }, timeLabels: { color: "#50606C" } }, title: { color: "#50606C", subtitle: { color: "#718890" } } } } }, nt = {
17
+ default: {},
18
+ minimal: Ke,
19
+ minimalDark: Qe,
20
+ dark: Ze,
21
+ celebration: et,
22
+ celebrationNight: tt,
23
+ hack: lt,
24
+ zen: ot,
25
+ concrete: at
26
+ }, Ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27
+ __proto__: null,
28
+ celebration: et,
29
+ celebrationNight: tt,
30
+ concrete: at,
31
+ dark: Ze,
32
+ default: nt,
33
+ hack: lt,
34
+ minimal: Ke,
35
+ minimalDark: Qe,
36
+ zen: ot
37
+ }, Symbol.toStringTag, { value: "Module" })), pl = ["id"], gl = ["xmlns", "viewBox"], Cl = ["x", "y", "width", "height"], kl = ["d", "stroke", "stroke-width", "onMouseenter"], Al = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Ll = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], wl = ["x", "y", "fill", "font-size"], xl = ["onMouseenter", "onMouseleave", "onClick"], $l = ["x", "y", "fill", "font-size"], Sl = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Tl = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Ml = { key: 0 }, zl = { key: 1 }, Dl = ["text-anchor", "font-size", "font-weight", "fill", "transform"], El = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], Ol = {
38
+ key: 4,
39
+ class: "vue-data-ui-watermark"
40
+ }, Il = ["innerHTML"], Pl = {
41
+ __name: "vue-ui-bump",
42
+ props: {
43
+ config: {
44
+ type: Object,
45
+ default() {
46
+ return {};
47
+ }
48
+ },
49
+ dataset: {
50
+ type: Array,
51
+ default() {
52
+ return [];
53
+ }
54
+ }
55
+ },
56
+ setup(st, { expose: ut }) {
57
+ const rt = F(() => import("./BaseIcon-4uOct8re.js")), it = F(() => import("./vue-ui-accordion-DFKaB_05.js")), ct = F(() => import("./DataTable-DyoDzNNY.js")), vt = F(() => import("./PenAndPaper-LTuSTmWE.js")), ht = F(() => import("./UserOptions-CX7Xsusk.js")), dt = F(() => import("./PackageVersion-D6MO5wwI.js")), { vue_ui_bump: ft } = nl(), { isThemeValid: yt, warnInvalidTheme: bt } = il(), A = st, U = y({
58
+ get() {
59
+ return !!A.dataset && A.dataset.length;
60
+ },
61
+ set(l) {
62
+ return l;
63
+ }
64
+ }), T = d(null), le = d(Xe()), ge = d(0), Ce = d(null), ke = d(null), Ae = d(null), X = d(!1), oe = d(!1), Le = d(0), mt = d(0), _ = d(null), ae = d(null), we = d(!1), ne = d(null), se = d(null), j = d(null), f = d(null), e = d(ue()), { loading: Y, FINAL_DATASET: pt, manualLoading: G } = sl({
65
+ ...Vt(A),
66
+ FINAL_CONFIG: e,
67
+ prepareConfig: ue,
68
+ skeletonDataset: [
69
+ { name: "————", values: [1, 1, 1, 2, 2, 2, 3, 3, 2, 2], color: "#4A4A4A" },
70
+ { name: "————", values: [2, 2, 2, 1, 3, 3, 2, 2, 3, 3], color: "#6A6A6A" },
71
+ { name: "————", values: [3, 3, 3, 3, 1, 1, 1, 1, 1, 1], color: "#8A8A8A" }
72
+ ],
73
+ skeletonConfig: jt({
74
+ defaultConfig: e.value,
75
+ userConfig: {
76
+ userOptions: { show: !1 },
77
+ style: {
78
+ chart: {
79
+ backgroundColor: "#99999930",
80
+ layout: {
81
+ timeLabels: { show: !1 },
82
+ lines: {
83
+ coatingColor: "#4A4A4A"
84
+ },
85
+ plots: {
86
+ stroke: "#4A4A4A",
87
+ labels: {
88
+ show: !1,
89
+ displayedValue: "rank"
90
+ }
91
+ },
92
+ nameLabels: {
93
+ useSerieColor: !0
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ })
100
+ });
101
+ Wt(Oe);
102
+ function ue() {
103
+ const l = pe({
104
+ userConfig: A.config,
105
+ defaultConfig: ft
106
+ });
107
+ let o = {};
108
+ const t = l.theme;
109
+ if (t)
110
+ if (!yt.value(l))
111
+ bt(l), o = l;
112
+ else {
113
+ const a = pe({
114
+ userConfig: nt[t] || A.config,
115
+ defaultConfig: l
116
+ });
117
+ o = {
118
+ ...pe({
119
+ userConfig: A.config,
120
+ defaultConfig: a
121
+ }),
122
+ customPalette: l.customPalette.length ? l.customPalette : Yt[t] || te
123
+ };
124
+ }
125
+ else
126
+ o = l;
127
+ return o;
128
+ }
129
+ const { userOptionsVisible: re, setUserOptionsVisibility: xe, keepUserOptionState: $e } = vl({ config: e.value }), { svgRef: ie } = hl({ config: e.value.style.chart.title });
130
+ function gt() {
131
+ we.value = !0, xe(!0);
132
+ }
133
+ function Ct() {
134
+ xe(!1), we.value = !1;
135
+ }
136
+ const D = d({
137
+ showTable: e.value.table.show
138
+ });
139
+ Z(e, () => {
140
+ D.value = {
141
+ showTable: e.value.table.show
142
+ };
143
+ }, { immediate: !0 }), Z(() => A.config, (l) => {
144
+ Y.value || (e.value = ue()), re.value = !e.value.userOptions.showOnChartHover, Oe(), Le.value += 1, mt.value += 1, D.value.showTable = e.value.table.show, w.value.width = e.value.style.chart.width, w.value.height = e.value.style.chart.height, w.value.paddingRatio = {
145
+ top: e.value.style.chart.padding.top / e.value.style.chart.height,
146
+ right: e.value.style.chart.padding.right / e.value.style.chart.width,
147
+ bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
148
+ left: e.value.style.chart.padding.left / e.value.style.chart.width
149
+ };
150
+ }), Z(() => A.dataset, (l) => {
151
+ Array.isArray(l) && l.length > 0 && (G.value = !1);
152
+ }, { deep: !0 });
153
+ const { isPrinting: Se, isImaging: Te, generatePdf: Me, generateImage: ze } = rl({
154
+ elementId: `bump_${le.value}`,
155
+ fileName: e.value.style.chart.title.text || "vue-ui-bump",
156
+ options: e.value.userOptions.print
157
+ }), kt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), w = d({
158
+ width: e.value.style.chart.width,
159
+ height: e.value.style.chart.height,
160
+ paddingRatio: {
161
+ top: e.value.style.chart.padding.top / e.value.style.chart.height,
162
+ right: e.value.style.chart.padding.right / e.value.style.chart.width,
163
+ bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
164
+ left: e.value.style.chart.padding.left / e.value.style.chart.width
165
+ }
166
+ }), At = y(() => Gt(e.value.customPalette)), M = Re(null), I = Re(null), De = d(null), Ee = y(() => !!e.value.debug);
167
+ function Oe() {
168
+ if (je(A.dataset) ? (Ye({
169
+ componentName: "VueUiBump",
170
+ type: "dataset",
171
+ debug: Ee.value
172
+ }), G.value = !0) : A.dataset.forEach((l, o) => {
173
+ qt({
174
+ datasetObject: l,
175
+ requiredAttributes: ["name", "values"]
176
+ }).forEach((t) => {
177
+ U.value = !1, Ye({
178
+ componentName: "VueUiBump",
179
+ type: "datasetSerieAttribute",
180
+ property: t,
181
+ index: o,
182
+ debug: Ee.value
183
+ }), G.value = !0;
184
+ });
185
+ }), je(A.dataset) || (G.value = e.value.loading), setTimeout(() => {
186
+ oe.value = !0;
187
+ }, 10), e.value.responsive) {
188
+ const l = Je(() => {
189
+ oe.value = !1;
190
+ const { width: o, height: t } = al({
191
+ chart: T.value,
192
+ noTitle: ke.value,
193
+ title: e.value.style.chart.title.text ? Ce.value : null,
194
+ legend: null,
195
+ slicer: null,
196
+ source: Ae.value
197
+ });
198
+ requestAnimationFrame(() => {
199
+ w.value.width = o, w.value.height = t - 12, clearTimeout(De.value), De.value = setTimeout(() => {
200
+ oe.value = !0;
201
+ }, 10);
202
+ });
203
+ });
204
+ M.value && (I.value && M.value.unobserve(I.value), M.value.disconnect()), M.value = new ResizeObserver(l), I.value = T.value.parentNode, M.value.observe(I.value);
205
+ }
206
+ }
207
+ Ne(() => {
208
+ M.value && (I.value && M.value.unobserve(I.value), M.value.disconnect());
209
+ });
210
+ const q = y(() => pt.value.map((l, o) => {
211
+ const t = Ge(l.color) || At.value[o] || te[o] || te[o % te.length];
212
+ return {
213
+ ...l,
214
+ absoluteIndex: o,
215
+ id: Xe(),
216
+ color: t
217
+ };
218
+ })), E = y(() => Math.max(...q.value.map((l) => l.values.length)));
219
+ function Lt(l) {
220
+ const o = l.map(() => Array(E.value).fill(null));
221
+ for (let t = 0; t < E.value; t += 1) {
222
+ const a = l.map((n, i) => ({
223
+ seriesIndex: i,
224
+ value: n.values?.[t],
225
+ previousPosition: t > 0 ? o[i][t - 1] : i
226
+ })).filter((n) => Number.isFinite(n.value));
227
+ a.sort((n, i) => i.value !== n.value ? i.value - n.value : n.previousPosition - i.previousPosition);
228
+ for (let n = 0; n < a.length; n += 1) {
229
+ const i = a[n];
230
+ o[i.seriesIndex][t] = n;
231
+ }
232
+ }
233
+ return o;
234
+ }
235
+ function wt() {
236
+ let l = 0;
237
+ return ne.value && (l = Array.from(ne.value.querySelectorAll("tspan")).reduce((t, a) => {
238
+ const n = a.getComputedTextLength();
239
+ return n > t ? n : t;
240
+ }, 0)), l;
241
+ }
242
+ function xt() {
243
+ let l = 0;
244
+ return se.value && (l = Array.from(se.value.querySelectorAll("tspan")).reduce((t, a) => {
245
+ const n = a.getComputedTextLength();
246
+ return n > t ? n : t;
247
+ }, 0)), l;
248
+ }
249
+ const ce = d(0), $t = Je((l) => {
250
+ ce.value = l;
251
+ }, 100);
252
+ Ut((l) => {
253
+ const o = j.value;
254
+ if (!o) return;
255
+ const t = new ResizeObserver((a) => {
256
+ $t(a[0].contentRect.height);
257
+ });
258
+ t.observe(o), l(() => t.disconnect());
259
+ }), Ne(() => {
260
+ ce.value = 0;
261
+ });
262
+ const St = y(() => {
263
+ let l = 0;
264
+ return j.value && (l = ce.value), l;
265
+ }), s = y(() => {
266
+ const { height: l, width: o } = w.value, { right: t, left: a } = w.value.paddingRatio;
267
+ let n = wt(), i = xt();
268
+ const r = e.value.style.chart.padding.top, v = o - o * t - i, m = o * a + n, C = o - o * t - o * a - n - i, P = l - r - e.value.style.chart.padding.bottom - St.value, fe = r + P, Ht = r + P, Rt = Math.max(0, l), Nt = Math.max(0, o);
269
+ return {
270
+ chartHeight: Ht,
271
+ chartWidth: Nt,
272
+ top: r,
273
+ right: Math.max(0, v),
274
+ bottom: Math.max(0, fe),
275
+ left: Math.max(0, m),
276
+ width: Math.max(0, C),
277
+ height: Math.max(0, P),
278
+ unitH: Math.max(0, P) / q.value.length,
279
+ unitW: Math.max(0, C) / E.value,
280
+ svgHeight: Rt
281
+ };
282
+ }), z = y(() => {
283
+ if (!U.value && !Y.value) return [];
284
+ const l = Lt(q.value);
285
+ return q.value.map((o, t) => ({
286
+ ...o,
287
+ positions: l[t]
288
+ })).map((o) => {
289
+ const t = o.positions.map((i, r) => {
290
+ const v = Jt(
291
+ e.value.style.chart.layout.plots.labels.formatter,
292
+ o.values[r],
293
+ Kt({
294
+ p: e.value.style.chart.layout.plots.labels.prefix,
295
+ v: o.values[r],
296
+ s: e.value.style.chart.layout.plots.labels.suffix,
297
+ r: e.value.style.chart.layout.plots.labels.rounding
298
+ })
299
+ );
300
+ return {
301
+ name: o.name,
302
+ id: o.id,
303
+ x: s.value.left + r * s.value.unitW + s.value.unitW / 2,
304
+ y: s.value.top + i * s.value.unitH + s.value.unitH / 2,
305
+ value: o.values[r],
306
+ displayValue: v,
307
+ rank: o.positions[r] + 1,
308
+ color: o.color,
309
+ labelColor: e.value.style.chart.layout.plots.labels.color === "auto" ? qe(o.color) : Ge(e.value.style.chart.layout.plots.labels.color) ?? qe(o.color)
310
+ };
311
+ }), a = t.filter((i) => W(i.value)), n = e.value.style.chart.layout.lines.smooth ? Qt(a) : Zt(a);
312
+ return {
313
+ ...o,
314
+ coordinates: t,
315
+ path: n
316
+ };
317
+ });
318
+ });
319
+ function Ie(l, o, t, a) {
320
+ const n = l.toSorted((r, v) => r.y - v.y);
321
+ for (let r = 1; r < n.length; r += 1) {
322
+ const v = n[r - 1], m = n[r];
323
+ m.y < v.y + o && (m.y = v.y + o);
324
+ }
325
+ const i = n.length - 1;
326
+ if (i >= 0 && n[i].y > a) {
327
+ n[i].y = a;
328
+ for (let r = i - 1; r >= 0; r -= 1) {
329
+ const v = n[r + 1], m = n[r];
330
+ m.y > v.y - o && (m.y = v.y - o);
331
+ }
332
+ }
333
+ if (n.length && n[0].y < t) {
334
+ const r = t - n[0].y;
335
+ for (let v = 0; v < n.length; v += 1)
336
+ n[v].y += r;
337
+ }
338
+ return n;
339
+ }
340
+ const Pe = y(() => {
341
+ const l = [], o = [];
342
+ z.value.forEach((m) => {
343
+ const C = m.coordinates.filter((fe) => Number.isFinite(fe.rank));
344
+ if (!C.length) return;
345
+ l.push({ ...C[0] });
346
+ const P = C[C.length - 1];
347
+ o.push({ ...P });
348
+ });
349
+ const t = e.value.style.chart.layout.nameLabels.fontSize, a = t * 1.4, n = s.value.top + t, i = s.value.bottom - t, r = Ie(
350
+ o,
351
+ a,
352
+ n,
353
+ i
354
+ );
355
+ return {
356
+ left: Ie(
357
+ l,
358
+ a,
359
+ n,
360
+ i
361
+ ),
362
+ right: r
363
+ };
364
+ });
365
+ function Tt(l) {
366
+ const o = e.value.style.chart.layout.plots.labels.fontSize * 0.4, t = l.displayValue, a = t.length * (e.value.style.chart.layout.plots.labels.fontSize * (t.length === 1 ? 1 : 0.6)), n = e.value.style.chart.layout.plots.labels.fontSize, i = a + o * 2, r = n + o * 2, v = l.x - i / 2, m = l.y - r / 2, C = e.value.style.chart.layout.plots.strokeWidth;
367
+ return {
368
+ x: v - C / 2,
369
+ y: m - C / 2,
370
+ width: i + C,
371
+ height: r + C,
372
+ fill: l.color,
373
+ stroke: e.value.style.chart.layout.plots.stroke,
374
+ "stroke-width": C,
375
+ rx: r / 2
376
+ };
377
+ }
378
+ const B = y(() => cl({
379
+ values: e.value.style.chart.layout.timeLabels.values,
380
+ maxDatapoints: E.value,
381
+ formatter: e.value.style.chart.layout.timeLabels.datetimeFormatter,
382
+ start: 0,
383
+ end: E.value
384
+ })), Mt = y(() => {
385
+ const l = e.value.style.chart.layout.timeLabels.modulo;
386
+ return B.value.length ? Math.min(l, [...new Set(B.value.map((o) => o.text))].length) : l;
387
+ }), J = y(() => {
388
+ const l = e.value.style.chart.layout.timeLabels, o = B.value || [], t = B.value || [], a = 0, n = null, i = E.value, r = o.map((m) => m?.text ?? ""), v = t.map((m) => m?.text ?? "");
389
+ return el(
390
+ !!l.showOnlyFirstAndLast,
391
+ !!l.showOnlyAtModulo,
392
+ Math.max(1, Mt.value || 1),
393
+ r,
394
+ v,
395
+ a,
396
+ n,
397
+ i
398
+ );
399
+ }), zt = y(() => w.value.width), Dt = y(() => w.value.height), Et = y(() => ({
400
+ start: 0,
401
+ end: E.value
402
+ }));
403
+ dl({
404
+ timeLabelsEls: j,
405
+ timeLabels: B,
406
+ slicer: Et,
407
+ configRef: e,
408
+ rotationPath: ["style", "chart", "layout", "timeLabels", "rotation"],
409
+ autoRotatePath: ["style", "chart", "layout", "timeLabels", "autoRotate", "enable"],
410
+ isAutoSize: !1,
411
+ width: zt,
412
+ height: Dt,
413
+ rotation: e.value.style.chart.layout.timeLabels.autoRotate.angle
414
+ });
415
+ const K = d(!1);
416
+ function ve() {
417
+ K.value = !K.value;
418
+ }
419
+ function Fe(l) {
420
+ X.value = l, ge.value += 1;
421
+ }
422
+ function _e() {
423
+ D.value.showTable = !D.value.showTable;
424
+ }
425
+ Z(() => D.value.showTable, (l) => {
426
+ e.value.table.show || (l && e.value.table.useDialog && _.value ? _.value.open() : "close" in _.value && _.value.close());
427
+ });
428
+ function Be() {
429
+ D.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
430
+ }
431
+ function Ot() {
432
+ return z.value;
433
+ }
434
+ function he(l = null) {
435
+ const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...J.value.map((v) => v?.text ?? "")], a = z.value.map((v) => [
436
+ v.name,
437
+ ...v.coordinates.map((m) => `${m.displayValue}`)
438
+ ]), n = z.value.map((v) => [
439
+ v.name,
440
+ ...v.coordinates.map((m) => `${m.rank}`)
441
+ ]), i = o.concat([[e.value.table.columnNames.values]]).concat([t]).concat(a).concat([[""], [e.value.table.columnNames.ranking], [t]]).concat(n), r = ll(i);
442
+ l ? l(r) : ol({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-bump" });
443
+ }
444
+ const H = y(() => {
445
+ const l = e.value.table.useDialog && !e.value.table.show, o = D.value.showTable;
446
+ return {
447
+ component: l ? yl : it,
448
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
449
+ props: l ? {
450
+ backgroundColor: e.value.table.th.backgroundColor,
451
+ color: e.value.table.th.color,
452
+ headerColor: e.value.table.th.color,
453
+ headerBg: e.value.table.th.backgroundColor,
454
+ isFullscreen: X.value,
455
+ fullscreenParent: T.value,
456
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
457
+ } : {
458
+ hideDetails: !0,
459
+ config: {
460
+ open: o,
461
+ maxHeight: 1e4,
462
+ body: {
463
+ backgroundColor: e.value.style.chart.backgroundColor,
464
+ color: e.value.style.chart.color
465
+ },
466
+ head: {
467
+ backgroundColor: e.value.style.chart.backgroundColor,
468
+ color: e.value.style.chart.color
469
+ }
470
+ }
471
+ }
472
+ };
473
+ }), Q = y(() => {
474
+ const l = [""].concat(J.value.map((n) => n.text)), o = z.value.map((n, i) => [
475
+ n.name,
476
+ ...n.coordinates.map((r) => `${r.displayValue} (${r.rank})`)
477
+ ]), t = {
478
+ th: {
479
+ backgroundColor: e.value.table.th.backgroundColor,
480
+ color: e.value.table.th.color,
481
+ outline: e.value.table.th.outline
482
+ },
483
+ td: {
484
+ backgroundColor: e.value.table.td.backgroundColor,
485
+ color: e.value.table.td.color,
486
+ outline: e.value.table.td.outline
487
+ },
488
+ breakpoint: e.value.table.responsiveBreakpoint
489
+ }, a = [e.value.table.columnNames.series];
490
+ return { head: l, body: o, config: t, colNames: a };
491
+ }), It = y(() => e.value.style.chart.backgroundColor), Pt = y(() => e.value.style.chart.title), { exportSvg: Ft, getSvg: _t } = bl({
492
+ svg: ie,
493
+ title: Pt,
494
+ legend: null,
495
+ legendItems: null,
496
+ backgroundColor: It
497
+ });
498
+ async function He({ isCb: l }) {
499
+ if (l) {
500
+ const { blob: o, url: t, text: a, dataUrl: n } = await _t();
501
+ e.value.userOptions.callbacks.svg({ blob: o, url: t, text: a, dataUrl: n });
502
+ } else
503
+ Ft();
504
+ }
505
+ async function Bt({ scale: l = 2 } = {}) {
506
+ if (!T.value) return;
507
+ const { width: o, height: t } = T.value.getBoundingClientRect(), a = o / t, { imageUri: n, base64: i } = await img({ domElement: T.value, base64: !0, img: !0, scale: l });
508
+ return {
509
+ imageUri: n,
510
+ base64: i,
511
+ title: e.value.style.chart.title.text,
512
+ width: o,
513
+ height: t,
514
+ aspectRatio: a
515
+ };
516
+ }
517
+ function O(l, o) {
518
+ f.value = o.id, e.value.events.datapointEnter && e.value.events.datapointEnter({
519
+ datapoint: l,
520
+ seriesIndex: l?.pointIndex ?? null
521
+ });
522
+ }
523
+ function R(l, o) {
524
+ f.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({
525
+ datapoint: l,
526
+ seriesIndex: l?.pointIndex ?? null
527
+ });
528
+ }
529
+ function de(l, o) {
530
+ e.value.events.datapointClick && e.value.events.datapointClick({
531
+ datapoint: l,
532
+ seriesIndex: l?.pointIndex ?? null
533
+ });
534
+ }
535
+ return ut({
536
+ getData: Ot,
537
+ getImage: Bt,
538
+ generatePdf: Me,
539
+ generateCsv: he,
540
+ generateImage: ze,
541
+ generateSvg: He,
542
+ toggleTable: _e,
543
+ toggleAnnotator: ve,
544
+ toggleFullscreen: Fe
545
+ }), (l, o) => (u(), c("div", {
546
+ id: `bump_${le.value}`,
547
+ ref_key: "bumpChart",
548
+ ref: T,
549
+ class: Ve({ "vue-data-ui-component": !0, "vue-ui-bump": !0, "vue-data-ui-wrapper-fullscreen": X.value }),
550
+ style: L(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
551
+ onMouseenter: gt,
552
+ onMouseleave: Ct
553
+ }, [
554
+ e.value.userOptions.buttons.annotator ? (u(), N(h(vt), {
555
+ key: 0,
556
+ svgRef: h(ie),
557
+ backgroundColor: e.value.style.chart.backgroundColor,
558
+ color: e.value.style.chart.color,
559
+ active: K.value,
560
+ onClose: ve
561
+ }, {
562
+ "annotator-action-close": p(() => [
563
+ b(l.$slots, "annotator-action-close", {}, void 0, !0)
564
+ ]),
565
+ "annotator-action-color": p(({ color: t }) => [
566
+ b(l.$slots, "annotator-action-color", x($({ color: t })), void 0, !0)
567
+ ]),
568
+ "annotator-action-draw": p(({ mode: t }) => [
569
+ b(l.$slots, "annotator-action-draw", x($({ mode: t })), void 0, !0)
570
+ ]),
571
+ "annotator-action-undo": p(({ disabled: t }) => [
572
+ b(l.$slots, "annotator-action-undo", x($({ disabled: t })), void 0, !0)
573
+ ]),
574
+ "annotator-action-redo": p(({ disabled: t }) => [
575
+ b(l.$slots, "annotator-action-redo", x($({ disabled: t })), void 0, !0)
576
+ ]),
577
+ "annotator-action-delete": p(({ disabled: t }) => [
578
+ b(l.$slots, "annotator-action-delete", x($({ disabled: t })), void 0, !0)
579
+ ]),
580
+ _: 3
581
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
582
+ b(l.$slots, "userConfig", {}, void 0, !0),
583
+ kt.value ? (u(), c("div", {
584
+ key: 1,
585
+ ref_key: "noTitle",
586
+ ref: ke,
587
+ class: "vue-data-ui-no-title-space",
588
+ style: "height:36px; width: 100%;background:transparent"
589
+ }, null, 512)) : g("", !0),
590
+ e.value.style.chart.title.text ? (u(), c("div", {
591
+ key: 2,
592
+ ref_key: "chartTitle",
593
+ ref: Ce,
594
+ style: "width:100%;background:transparent;"
595
+ }, [
596
+ (u(), N(fl, {
597
+ key: `title_${Le.value}`,
598
+ config: {
599
+ title: {
600
+ cy: "bump-title",
601
+ ...e.value.style.chart.title
602
+ },
603
+ subtitle: {
604
+ cy: "bump-subtitle",
605
+ ...e.value.style.chart.title.subtitle
606
+ }
607
+ }
608
+ }, null, 8, ["config"]))
609
+ ], 512)) : g("", !0),
610
+ e.value.userOptions.show && U.value && (h($e) || h(re)) ? (u(), N(h(ht), {
611
+ ref_key: "userOptionsRef",
612
+ ref: ae,
613
+ key: `user_option_${ge.value}`,
614
+ backgroundColor: e.value.style.chart.backgroundColor,
615
+ color: e.value.style.chart.color,
616
+ isPrinting: h(Se),
617
+ isImaging: h(Te),
618
+ uid: le.value,
619
+ hasTooltip: !1,
620
+ hasPdf: e.value.userOptions.buttons.pdf,
621
+ hasImg: e.value.userOptions.buttons.img,
622
+ hasSvg: e.value.userOptions.buttons.svg,
623
+ hasXls: e.value.userOptions.buttons.csv,
624
+ hasTable: e.value.userOptions.buttons.table,
625
+ hasLabel: !1,
626
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
627
+ isFullcreen: X.value,
628
+ chartElement: T.value,
629
+ position: e.value.userOptions.position,
630
+ titles: { ...e.value.userOptions.buttonTitles },
631
+ hasAnnotator: e.value.userOptions.buttons.annotator,
632
+ isAnnotation: K.value,
633
+ callbacks: e.value.userOptions.callbacks,
634
+ printScale: e.value.userOptions.print.scale,
635
+ tableDialog: e.value.table.useDialog,
636
+ onToggleFullscreen: Fe,
637
+ onGeneratePdf: h(Me),
638
+ onGenerateCsv: he,
639
+ onGenerateImage: h(ze),
640
+ onGenerateSvg: He,
641
+ onToggleTable: _e,
642
+ onToggleAnnotator: ve,
643
+ style: L({
644
+ visibility: h($e) ? h(re) ? "visible" : "hidden" : "visible"
645
+ })
646
+ }, We({ _: 2 }, [
647
+ l.$slots.menuIcon ? {
648
+ name: "menuIcon",
649
+ fn: p(({ isOpen: t, color: a }) => [
650
+ b(l.$slots, "menuIcon", x($({ isOpen: t, color: a })), void 0, !0)
651
+ ]),
652
+ key: "0"
653
+ } : void 0,
654
+ l.$slots.optionPdf ? {
655
+ name: "optionPdf",
656
+ fn: p(() => [
657
+ b(l.$slots, "optionPdf", {}, void 0, !0)
658
+ ]),
659
+ key: "1"
660
+ } : void 0,
661
+ l.$slots.optionCsv ? {
662
+ name: "optionCsv",
663
+ fn: p(() => [
664
+ b(l.$slots, "optionCsv", {}, void 0, !0)
665
+ ]),
666
+ key: "2"
667
+ } : void 0,
668
+ l.$slots.optionImg ? {
669
+ name: "optionImg",
670
+ fn: p(() => [
671
+ b(l.$slots, "optionImg", {}, void 0, !0)
672
+ ]),
673
+ key: "3"
674
+ } : void 0,
675
+ l.$slots.optionSvg ? {
676
+ name: "optionSvg",
677
+ fn: p(() => [
678
+ b(l.$slots, "optionSvg", {}, void 0, !0)
679
+ ]),
680
+ key: "4"
681
+ } : void 0,
682
+ l.$slots.optionTable ? {
683
+ name: "optionTable",
684
+ fn: p(() => [
685
+ b(l.$slots, "optionTable", {}, void 0, !0)
686
+ ]),
687
+ key: "5"
688
+ } : void 0,
689
+ l.$slots.optionFullscreen ? {
690
+ name: "optionFullscreen",
691
+ fn: p(({ toggleFullscreen: t, isFullscreen: a }) => [
692
+ b(l.$slots, "optionFullscreen", x($({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
693
+ ]),
694
+ key: "6"
695
+ } : void 0,
696
+ l.$slots.optionAnnotator ? {
697
+ name: "optionAnnotator",
698
+ fn: p(({ toggleAnnotator: t, isAnnotator: a }) => [
699
+ b(l.$slots, "optionAnnotator", x($({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
700
+ ]),
701
+ key: "7"
702
+ } : void 0
703
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullcreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
704
+ (u(), c("svg", {
705
+ ref_key: "svgRef",
706
+ ref: ie,
707
+ xmlns: h(tl),
708
+ viewBox: `0 0 ${s.value.chartWidth <= 0 ? 10 : s.value.chartWidth} ${s.value.svgHeight <= 0 ? 10 : s.value.svgHeight}`,
709
+ class: Ve({ "vue-data-ui-loading": h(Y), "no-transition": !e.value.useCssAnimation, "with-transition": e.value.useCssAnimation }),
710
+ style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
711
+ role: "img",
712
+ "aria-live": "polite",
713
+ preserveAspectRatio: "xMidYMid"
714
+ }, [
715
+ ye(h(dt)),
716
+ l.$slots["chart-background"] ? (u(), c("foreignObject", {
717
+ key: 0,
718
+ x: s.value.left,
719
+ y: s.value.top,
720
+ width: s.value.width <= 0 ? 10 : s.value.width,
721
+ height: s.value.height <= 0 ? 10 : s.value.height,
722
+ style: {
723
+ pointerEvents: "none"
724
+ }
725
+ }, [
726
+ b(l.$slots, "chart-background", {}, void 0, !0)
727
+ ], 8, Cl)) : g("", !0),
728
+ (u(!0), c(k, null, S(z.value, (t) => (u(), c(k, null, [
729
+ ee("path", {
730
+ class: "transition-opacity",
731
+ d: `M${t.path}`,
732
+ stroke: e.value.style.chart.layout.lines.coatingColor,
733
+ "stroke-width": e.value.style.chart.layout.lines.strokeWidth + 2,
734
+ "stroke-linecap": "round",
735
+ "stroke-linejoin": "round",
736
+ fill: "none",
737
+ style: L({
738
+ opacity: f.value == null || f.value === t.id ? 1 : 0.1
739
+ }),
740
+ onMouseenter: (a) => f.value = t.id,
741
+ onMouseleave: o[0] || (o[0] = (a) => f.value = null)
742
+ }, null, 44, kl),
743
+ ee("path", {
744
+ class: "transition-opacity",
745
+ d: `M${t.path}`,
746
+ stroke: t.color,
747
+ "stroke-width": e.value.style.chart.layout.lines.strokeWidth,
748
+ "stroke-linecap": "round",
749
+ "stroke-linejoin": "round",
750
+ fill: "none",
751
+ style: L({
752
+ opacity: f.value == null || f.value === t.id ? 1 : 0.1
753
+ }),
754
+ onMouseenter: (a) => O(t, t),
755
+ onMouseleave: (a) => R(t),
756
+ onClick: (a) => de(t)
757
+ }, null, 44, Al)
758
+ ], 64))), 256)),
759
+ (u(!0), c(k, null, S(z.value, (t) => (u(), c(k, null, [
760
+ e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (u(!0), c(k, { key: 0 }, S(t.coordinates, (a, n) => (u(), c("circle", {
761
+ class: "transition-opacity",
762
+ cx: a.x,
763
+ cy: a.y,
764
+ r: e.value.style.chart.layout.plots.radius,
765
+ fill: t.color,
766
+ stroke: e.value.style.chart.layout.plots.stroke,
767
+ "stroke-width": e.value.style.chart.layout.plots.strokeWidth,
768
+ style: L({
769
+ opacity: f.value == null || f.value === t.id ? 1 : 0.1
770
+ }),
771
+ onMouseenter: (i) => O({ ...a, pointIndex: n }, t),
772
+ onMouseleave: (i) => R({ ...a, pointIndex: n }),
773
+ onClick: (i) => O({ ...a, pointIndex: n }, t)
774
+ }, null, 44, Ll))), 256)) : g("", !0),
775
+ e.value.style.chart.layout.plots.labels.show && e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (u(!0), c(k, { key: 1 }, S(t.coordinates, (a) => (u(), c("text", {
776
+ class: "transition-opacity",
777
+ x: a.x,
778
+ y: a.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
779
+ fill: a.labelColor,
780
+ "font-size": e.value.style.chart.layout.plots.labels.fontSize,
781
+ "text-anchor": "middle",
782
+ style: L({
783
+ userSelect: "none",
784
+ pointerEvents: "none",
785
+ opacity: f.value == null || f.value === t.id ? 1 : 0.1
786
+ })
787
+ }, V(a.rank), 13, wl))), 256)) : g("", !0),
788
+ e.value.style.chart.layout.plots.labels.displayedValue === "value" ? (u(!0), c(k, { key: 2 }, S(t.coordinates, (a) => (u(), c(k, null, [
789
+ h(W)(a.value) ? (u(), c("rect", be({
790
+ key: 0,
791
+ class: "transition-opacity"
792
+ }, { ref_for: !0 }, Tt(a), {
793
+ style: {
794
+ opacity: f.value == null || f.value === t.id ? 1 : 0.1
795
+ },
796
+ onMouseenter: (n) => O({ ...l.point, pointIndex: l.i }, t),
797
+ onMouseleave: (n) => R({ ...l.point, pointIndex: l.i }),
798
+ onClick: (n) => O({ ...l.point, pointIndex: l.i }, t)
799
+ }), null, 16, xl)) : g("", !0),
800
+ h(W)(a.value) && e.value.style.chart.layout.plots.labels.show ? (u(), c("text", {
801
+ key: 1,
802
+ class: "transition-opacity",
803
+ x: a.x,
804
+ y: a.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
805
+ fill: a.labelColor,
806
+ "font-size": e.value.style.chart.layout.plots.labels.fontSize,
807
+ "text-anchor": "middle",
808
+ style: L({
809
+ userSelect: "none",
810
+ pointerEvents: "none",
811
+ opacity: f.value == null || f.value === t.id ? 1 : 0.1
812
+ })
813
+ }, V(a.displayValue), 13, $l)) : g("", !0)
814
+ ], 64))), 256)) : g("", !0)
815
+ ], 64))), 256)),
816
+ e.value.style.chart.layout.nameLabels.leftLabels.show ? (u(), c("g", {
817
+ key: 1,
818
+ ref_key: "labelsLeft",
819
+ ref: ne
820
+ }, [
821
+ (u(!0), c(k, null, S(Pe.value.left.filter((t) => h(W)(t.value)), (t, a) => (u(), c("text", {
822
+ class: "transition-opacity",
823
+ x: s.value.left,
824
+ y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
825
+ fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
826
+ "font-size": e.value.style.chart.layout.nameLabels.fontSize,
827
+ "font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
828
+ "text-anchor": "end",
829
+ innerHTML: h(me)({
830
+ content: t.name,
831
+ fontSize: e.value.style.chart.layout.nameLabels.fontSize,
832
+ fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
833
+ x: s.value.left - e.value.style.chart.layout.nameLabels.offsetX,
834
+ y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
835
+ translateY: !0
836
+ }),
837
+ style: L({
838
+ opacity: f.value == null || f.value === t.id ? 1 : 0.1
839
+ }),
840
+ onMouseenter: (n) => O(t, t),
841
+ onMouseleave: (n) => R(t),
842
+ onClick: (n) => de(t)
843
+ }, null, 44, Sl))), 256))
844
+ ], 512)) : g("", !0),
845
+ e.value.style.chart.layout.nameLabels.rightLabels.show ? (u(), c("g", {
846
+ key: 2,
847
+ ref_key: "labelsRight",
848
+ ref: se
849
+ }, [
850
+ (u(!0), c(k, null, S(Pe.value.right.filter((t) => h(W)(t.value)), (t, a) => (u(), c("text", {
851
+ class: "transition-opacity",
852
+ x: s.value.right,
853
+ y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
854
+ fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
855
+ "font-size": e.value.style.chart.layout.nameLabels.fontSize,
856
+ "font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
857
+ "text-anchor": "start",
858
+ innerHTML: h(me)({
859
+ content: t.name,
860
+ fontSize: e.value.style.chart.layout.nameLabels.fontSize,
861
+ fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
862
+ x: s.value.right + e.value.style.chart.layout.nameLabels.offsetX,
863
+ y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
864
+ translateY: !0
865
+ }),
866
+ style: L({
867
+ opacity: f.value == null || f.value === t.id ? 1 : 0.1
868
+ }),
869
+ onMouseenter: (n) => O(t, t),
870
+ onMouseleave: (n) => R(t),
871
+ onClick: (n) => de(t)
872
+ }, null, 44, Tl))), 256))
873
+ ], 512)) : g("", !0),
874
+ e.value.style.chart.layout.timeLabels.show ? (u(), c("g", {
875
+ key: 3,
876
+ ref_key: "timeLabelsEls",
877
+ ref: j
878
+ }, [
879
+ l.$slots["time-label"] ? (u(), c("g", Ml, [
880
+ (u(!0), c(k, null, S(J.value, (t, a) => (u(), c("g", null, [
881
+ b(l.$slots, "time-label", be({ ref_for: !0 }, {
882
+ x: s.value.unitW * a + s.value.unitW / 2 + s.value.left,
883
+ y: s.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY,
884
+ fontSize: e.value.style.chart.layout.timeLabels.fontSize,
885
+ fill: e.value.style.chart.layout.timeLabels.color,
886
+ transform: `translate(${s.value.unitW * a + s.value.unitW / 2 + s.value.left}, ${s.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`,
887
+ absoluteIndex: t.absoluteIndex,
888
+ content: t.text,
889
+ textAnchor: e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
890
+ show: !0
891
+ }), void 0, !0)
892
+ ]))), 256))
893
+ ])) : (u(), c("g", zl, [
894
+ (u(!0), c(k, null, S(J.value, (t, a) => (u(), c("g", null, [
895
+ String(t.text).includes(`
896
+ `) ? (u(), c("text", {
897
+ key: a + "-multi",
898
+ "text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
899
+ "font-size": e.value.style.chart.layout.timeLabels.fontSize,
900
+ fill: e.value.style.chart.layout.timeLabels.color,
901
+ transform: `
902
+ translate(
903
+ ${s.value.unitW * a + s.value.unitW / 2 + s.value.left},
904
+ ${s.value.chartHeight + e.value.style.chart.layout.timeLabels.fontSize * 1.3 + e.value.style.chart.layout.timeLabels.offsetY}
905
+ ),
906
+ rotate(${e.value.style.chart.layout.timeLabels.rotation})
907
+ `,
908
+ innerHTML: h(me)({
909
+ content: String(t.text),
910
+ fontSize: e.value.style.chart.layout.timeLabels.fontSize,
911
+ fill: e.value.style.chart.layout.timeLabels.color,
912
+ x: 0,
913
+ y: 0
914
+ })
915
+ }, null, 8, El)) : (u(), c("text", {
916
+ class: "vue-data-ui-time-label",
917
+ key: a,
918
+ "text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
919
+ "font-size": e.value.style.chart.layout.timeLabels.fontSize,
920
+ "font-weight": e.value.style.chart.layout.timeLabels.bold ? "bold" : "normal",
921
+ fill: e.value.style.chart.layout.timeLabels.color,
922
+ transform: `translate(${s.value.unitW * a + s.value.unitW / 2 + s.value.left}, ${s.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`
923
+ }, V(t.text), 9, Dl))
924
+ ]))), 256))
925
+ ]))
926
+ ], 512)) : g("", !0),
927
+ b(l.$slots, "svg", {
928
+ svg: {
929
+ drawingArea: s.value,
930
+ data: z.value
931
+ }
932
+ }, void 0, !0)
933
+ ], 14, gl)),
934
+ l.$slots.watermark ? (u(), c("div", Ol, [
935
+ b(l.$slots, "watermark", x($({ isPrinting: h(Se) || h(Te) })), void 0, !0)
936
+ ])) : g("", !0),
937
+ U.value && e.value.userOptions.buttons.table ? (u(), N(Xt(H.value.component), be({ key: 5 }, H.value.props, {
938
+ ref_key: "tableUnit",
939
+ ref: _,
940
+ onClose: Be
941
+ }), We({
942
+ content: p(() => [
943
+ ye(h(ct), {
944
+ colNames: Q.value.colNames,
945
+ head: Q.value.head,
946
+ body: Q.value.body,
947
+ config: Q.value.config,
948
+ title: e.value.table.useDialog ? "" : H.value.title,
949
+ withCloseButton: !e.value.table.useDialog,
950
+ onClose: Be
951
+ }, {
952
+ th: p(({ th: t }) => [
953
+ ee("div", { innerHTML: t }, null, 8, Il)
954
+ ]),
955
+ td: p(({ td: t }) => [
956
+ Ue(V(t), 1)
957
+ ]),
958
+ _: 1
959
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
960
+ ]),
961
+ _: 2
962
+ }, [
963
+ e.value.table.useDialog ? {
964
+ name: "title",
965
+ fn: p(() => [
966
+ Ue(V(H.value.title), 1)
967
+ ]),
968
+ key: "0"
969
+ } : void 0,
970
+ e.value.table.useDialog ? {
971
+ name: "actions",
972
+ fn: p(() => [
973
+ ee("button", {
974
+ tabindex: "0",
975
+ class: "vue-ui-user-options-button",
976
+ onClick: o[1] || (o[1] = (t) => he(e.value.userOptions.callbacks.csv))
977
+ }, [
978
+ ye(h(rt), {
979
+ name: "excel",
980
+ stroke: H.value.props.color
981
+ }, null, 8, ["stroke"])
982
+ ])
983
+ ]),
984
+ key: "1"
985
+ } : void 0
986
+ ]), 1040)) : g("", !0),
987
+ l.$slots.source ? (u(), c("div", {
988
+ key: 6,
989
+ ref_key: "source",
990
+ ref: Ae,
991
+ dir: "auto"
992
+ }, [
993
+ b(l.$slots, "source", {}, void 0, !0)
994
+ ], 512)) : g("", !0),
995
+ h(Y) ? (u(), N(ul, { key: 7 })) : g("", !0)
996
+ ], 46, pl));
997
+ }
998
+ }, Fl = /* @__PURE__ */ ml(Pl, [["__scopeId", "data-v-94c30780"]]), Zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
999
+ __proto__: null,
1000
+ default: Fl
1001
+ }, Symbol.toStringTag, { value: "Module" }));
1002
+ export {
1003
+ Ql as a,
1004
+ Zl as b,
1005
+ Fl as v
1006
+ };