vue-data-ui 3.22.13 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,709 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, Dt as n, K as r, Y as i, et as a, ft as ee, g as te, i as o, qt as ne, t as re, x as ie } from "./lib-CFm_J26b.js";
3
- import { t as ae } from "./useConfig-C0V0eG7L.js";
4
- import { t as oe } from "./usePrinter-BH-xle1O.js";
5
- import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as le } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as s } from "./useNestedProp-BY6DNN3i.js";
8
- import { t as ue } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as de } from "./img-Bikk1dGb.js";
10
- import { n as fe } from "./Title-BuPs74IB.js";
11
- import { t as pe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as me, t as he } from "./useResponsive-ZtArZtUf.js";
13
- import { t as ge } from "./useUserOptionState-DK-_1ddE.js";
14
- import { t as _e } from "./useChartAccessibility-DYqac8yF.js";
15
- import { t as ve } from "./Legend-C0xAnJdO.js";
16
- import { t as ye } from "./vue_ui_bullet-ClzdLoOv.js";
17
- import { Fragment as c, Teleport as be, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as xe, createVNode as Se, defineAsyncComponent as m, guardReactiveProps as h, nextTick as Ce, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as we, onMounted as Te, openBlock as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, toRefs as Ee, unref as w, watch as De, withCtx as T } from "vue";
18
- //#region src/components/vue-ui-bullet.vue
19
- var Oe = /* @__PURE__ */ e({ default: () => E }), ke = ["id"], Ae = {
20
- key: 1,
21
- ref: "noTitle",
22
- class: "vue-data-ui-no-title-space",
23
- style: "height:36px; width: 100%;background:transparent"
24
- }, je = ["id"], Me = [
25
- "xmlns",
26
- "viewBox",
27
- "aria-labelledby",
28
- "aria-describedby"
29
- ], Ne = ["id"], Pe = ["id"], Fe = ["width", "height"], Ie = { key: 1 }, Le = [
30
- "x",
31
- "y",
32
- "height",
33
- "width",
34
- "fill",
35
- "stroke"
36
- ], Re = [
37
- "x",
38
- "y",
39
- "height",
40
- "width",
41
- "rx",
42
- "fill",
43
- "stroke",
44
- "stroke-width"
45
- ], ze = [
46
- "x",
47
- "y",
48
- "height",
49
- "width",
50
- "fill",
51
- "stroke",
52
- "stroke-width"
53
- ], Be = [
54
- "x",
55
- "y",
56
- "font-size",
57
- "font-weight",
58
- "fill"
59
- ], Ve = [
60
- "x",
61
- "y",
62
- "height",
63
- "width",
64
- "rx",
65
- "fill",
66
- "stroke",
67
- "stroke-width"
68
- ], He = { key: 3 }, Ue = [
69
- "x",
70
- "y",
71
- "fill",
72
- "font-size",
73
- "font-weight"
74
- ], We = { key: 4 }, Ge = [
75
- "x1",
76
- "x2",
77
- "y1",
78
- "y2",
79
- "stroke"
80
- ], Ke = {
81
- key: 4,
82
- class: "vue-data-ui-watermark"
83
- }, qe = ["id"], Je = {
84
- key: 0,
85
- class: "vue-ui-bullet-legend-item",
86
- dir: "auto"
87
- }, Ye = { style: { "margin-right": "2px" } }, E = /*#__PURE__*/ pe({
88
- __name: "vue-ui-bullet",
89
- props: {
90
- config: {
91
- type: Object,
92
- default() {
93
- return {};
94
- }
95
- },
96
- dataset: {
97
- type: Object,
98
- default() {
99
- return {};
100
- }
101
- }
102
- },
103
- emits: ["copyAlt"],
104
- setup(e, { expose: pe, emit: Oe }) {
105
- let E = m(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), Xe = m(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Ze = m(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), { vue_ui_bullet: Qe } = ae(), { isThemeValid: $e, warnInvalidTheme: et } = ue(), D = e, tt = Oe, O = b(null), nt = b(null), rt = b(0), it = b(null), at = b(null), ot = b(0), k = b(null), A = b(null), st = b(!1), j = b(!1), M = b(!1), N = l({
106
- get: () => z.value.hasOwnProperty("value"),
107
- set: (e) => e
108
- }), P = l(() => z.value.segments ? Array.isArray(z.value.segments) ? z.value.segments.length ? !0 : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), N.value = !1, !1) : (console.warn("VueUiBullet: dataset segments must be an array of objects with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n] \n "), N.value = !1, !1) : (console.warn("VueUiBullet: dataset segments is empty. Provide segments with this datastructure:\n\nsegments: [\n {\n name: string;\n from: number;\n to: number;\n color?: string;\n },\n {...}\n]\n "), N.value = !1, !1)), ct = l(() => !!L.value.debug), lt = l(() => {
109
- let { top: e, right: t, bottom: n, left: r } = L.value.style.chart.padding;
110
- return {
111
- top: e,
112
- right: t,
113
- bottom: n,
114
- left: r
115
- };
116
- });
117
- function ut() {
118
- if (t(z.value) ? (a({
119
- componentName: "VueUiBullet",
120
- type: "dataset",
121
- debug: ct.value
122
- }), B.value = !0) : P.value ? z.value.segments.forEach((e, t) => {
123
- ee({
124
- datasetObject: e,
125
- requiredAttributes: [
126
- "name",
127
- "from",
128
- "to"
129
- ]
130
- }).forEach((e) => {
131
- N.value = !1, a({
132
- componentName: "VueUiBullet segment",
133
- type: "datasetSerieAttribute",
134
- property: e,
135
- index: t,
136
- debug: ct.value
137
- });
138
- });
139
- }) : (N.value = !1, B.value = !0), t(z.value) || (B.value = L.value.loading), L.value.responsive) {
140
- let e = me(() => {
141
- let { width: e, height: t } = he({
142
- chart: O.value,
143
- title: L.value.style.chart.title.text ? nt.value : null,
144
- legend: L.value.style.chart.legend.show ? it.value : null,
145
- source: at.value,
146
- padding: lt.value
147
- }), n = (L.value.style.chart.legend.show ? 24 : 0) || 12;
148
- requestAnimationFrame(() => {
149
- U.value.width = e, U.value.height = t - n;
150
- });
151
- });
152
- k.value && (A.value && k.value.unobserve(A.value), k.value.disconnect()), k.value = new ResizeObserver(e), A.value = O.value.parentNode, k.value.observe(A.value);
153
- }
154
- L.value.style.chart.animation.show && !R.value && bt(z.value.value || 0);
155
- }
156
- Te(() => {
157
- st.value = !0, ut();
158
- });
159
- let F = b(r());
160
- function I() {
161
- let e = s({
162
- userConfig: D.config,
163
- defaultConfig: Qe
164
- }), t = e.theme;
165
- if (!t) return e;
166
- if (!$e.value(e)) return et(e), e;
167
- let n = s({
168
- userConfig: ye[t] || D.config,
169
- defaultConfig: e
170
- });
171
- return s({
172
- userConfig: D.config,
173
- defaultConfig: n
174
- });
175
- }
176
- let L = b(I()), dt = l(() => L.value.userOptions.useCursorPointer), ft = l(() => ne({
177
- defaultConfig: {
178
- userOptions: { show: !1 },
179
- style: { chart: {
180
- backgroundColor: "#99999930",
181
- segments: {
182
- dataLabels: { show: !1 },
183
- ticks: { stroke: "#8A8A8A" }
184
- },
185
- valueBar: { label: { show: !1 } }
186
- } }
187
- },
188
- userConfig: L.value.skeletonConfig ?? {}
189
- })), { loading: R, FINAL_DATASET: z, manualLoading: B } = se({
190
- ...Ee(D),
191
- FINAL_CONFIG: L,
192
- prepareConfig: I,
193
- skeletonDataset: D.config?.skeletonDataset ?? {
194
- value: 100,
195
- target: 100,
196
- segments: [
197
- {
198
- name: "",
199
- from: 0,
200
- to: 33,
201
- color: "#AAAAAA"
202
- },
203
- {
204
- name: "",
205
- from: 33,
206
- to: 66,
207
- color: "#BABABA"
208
- },
209
- {
210
- name: "",
211
- from: 66,
212
- to: 100,
213
- color: "#CACACA"
214
- }
215
- ]
216
- },
217
- skeletonConfig: ne({
218
- defaultConfig: L.value,
219
- userConfig: ft.value
220
- })
221
- }), { userOptionsVisible: V, setUserOptionsVisibility: pt, keepUserOptionState: mt } = ge({ config: L.value }), { svgRef: H } = _e({ config: L.value.style.chart.title }), U = b({
222
- width: L.value.style.chart.width,
223
- height: L.value.style.chart.height
224
- }), ht = l(() => U.value.width), gt = l(() => U.value.height);
225
- De(() => D.config, (e) => {
226
- R.value || (L.value = I()), V.value = !L.value.userOptions.showOnChartHover, U.value.width = L.value.style.chart.width, U.value.height = L.value.style.chart.height, ut(), rt.value += 1;
227
- }, { deep: !0 });
228
- let W = l(() => {
229
- let e = gt.value, t = ht.value, n = L.value.style.chart.padding.left, r = t - L.value.style.chart.padding.right, i = L.value.style.chart.padding.top, a = e - L.value.style.chart.padding.bottom;
230
- return {
231
- height: Math.max(.001, e),
232
- width: Math.max(.001, t),
233
- left: n,
234
- right: r,
235
- top: i,
236
- bottom: a,
237
- chartWidth: Math.max(.001, r - n),
238
- chartHeight: Math.max(.001, a - i)
239
- };
240
- }), _t = l(() => {
241
- if (!P.value) return [];
242
- let e = [];
243
- for (let t = 0; t < z.value.segments.length; t += 1) e.push(n(L.value.style.chart.segments.baseColor, t / z.value.segments.length));
244
- return e;
245
- }), G = l(() => P.value ? {
246
- min: Math.min(...z.value.segments.map((e) => e.from)),
247
- max: Math.max(...z.value.segments.map((e) => e.to))
248
- } : {
249
- min: 0,
250
- max: 1
251
- }), K = b(vt());
252
- De(() => z.value, (e) => {
253
- e.hasOwnProperty("value") && (B.value = !1), L.value.style.chart.animation.show && !R.value ? bt(e.value || 0) : K.value = e.value || 0;
254
- }, { deep: !0 });
255
- function vt() {
256
- return L.value.style.chart.animation.show && !R.value ? G.value.min : z.value.value || 0;
257
- }
258
- let yt = b(null);
259
- function bt(e) {
260
- let t = Math.abs(e - K.value) / L.value.style.chart.animation.animationFrames;
261
- function n() {
262
- K.value < e ? K.value = Math.min(K.value + t, e) : K.value > e && (K.value = Math.max(K.value - t, e)), K.value !== e && (yt.value = requestAnimationFrame(n));
263
- }
264
- n();
265
- }
266
- we(() => {
267
- cancelAnimationFrame(yt.value);
268
- });
269
- let q = l(() => {
270
- if (!P.value) return [];
271
- let e = te(G.value.min, G.value.max, L.value.style.chart.segments.ticks.divisions), t = e.min >= 0 ? 0 : Math.abs(e.min);
272
- return {
273
- scale: e,
274
- target: { x: W.value.left + (z.value.target + t) / (e.max + t) * W.value.chartWidth - L.value.style.chart.target.width / 2 },
275
- value: { width: (K.value + t) / (e.max + t) * W.value.chartWidth },
276
- ticks: e.ticks.map((n) => ({
277
- value: n,
278
- y: W.value.bottom + L.value.style.chart.segments.dataLabels.fontSize + 3 + L.value.style.chart.segments.dataLabels.offsetY,
279
- x: W.value.left + (n + t) / (e.max + t) * W.value.chartWidth
280
- })),
281
- chunks: z.value.segments.map((n, r) => ({
282
- ...n,
283
- color: n.color ? ie(n.color) : _t.value[r],
284
- x: W.value.left + W.value.chartWidth * ((n.from + t) / (e.max + t)),
285
- y: W.value.top,
286
- height: W.value.chartHeight,
287
- width: W.value.chartWidth * (Math.abs(n.to - n.from) / (e.max + t))
288
- }))
289
- };
290
- }), J = l(() => !q.value || !q.value.chunks || !q.value.chunks.length ? [] : q.value.chunks.map((e) => {
291
- let t = `${o(L.value.style.chart.segments.dataLabels.formatter, e.from, i({
292
- p: L.value.style.chart.segments.dataLabels.prefix,
293
- v: e.from,
294
- s: L.value.style.chart.segments.dataLabels.suffix,
295
- r: L.value.style.chart.segments.dataLabels.rounding
296
- }))} — ${o(L.value.style.chart.segments.dataLabels.formatter, e.to, i({
297
- p: L.value.style.chart.segments.dataLabels.prefix,
298
- v: e.to,
299
- s: L.value.style.chart.segments.dataLabels.suffix,
300
- r: L.value.style.chart.segments.dataLabels.rounding
301
- }))}`;
302
- return {
303
- ...e,
304
- shape: "square",
305
- value: t,
306
- display: `${e.name}: ${t}`
307
- };
308
- })), xt = l(() => ({
309
- cy: "bullet-div-legend",
310
- backgroundColor: "transparent",
311
- color: L.value.style.chart.legend.color,
312
- fontSize: L.value.style.chart.legend.fontSize,
313
- paddingBottom: 6,
314
- fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
315
- })), { isPrinting: Y, isImaging: X, generatePdf: St, generateImage: Ct } = oe({
316
- elementId: `bullet_${F.value}`,
317
- fileName: L.value.style.chart.title.text || "vue-ui-bullet",
318
- options: L.value.userOptions.print
319
- }), wt = l(() => L.value.userOptions.show && !L.value.style.chart.title.text), Z = b(!1);
320
- function Tt(e) {
321
- Z.value = e, ot.value += 1;
322
- }
323
- function Et() {
324
- return q.value;
325
- }
326
- let Q = b(!1);
327
- function $() {
328
- Q.value = !Q.value;
329
- }
330
- async function Dt({ scale: e = 2 } = {}) {
331
- if (!O.value) return;
332
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await de({
333
- domElement: O.value,
334
- base64: !0,
335
- img: !0,
336
- scale: e
337
- });
338
- return {
339
- imageUri: i,
340
- base64: a,
341
- title: L.value.style.chart.title.text,
342
- width: t,
343
- height: n,
344
- aspectRatio: r
345
- };
346
- }
347
- let Ot = l(() => J.value.map((e) => ({
348
- ...e,
349
- name: e.display
350
- }))), kt = l(() => L.value.style.chart.backgroundColor), At = l(() => L.value.style.chart.legend), { exportSvg: jt, getSvg: Mt } = le({
351
- svg: H,
352
- title: l(() => L.value.style.chart.title),
353
- legend: At,
354
- legendItems: Ot,
355
- backgroundColor: kt
356
- });
357
- async function Nt({ isCb: e }) {
358
- M.value = !0, await Ce();
359
- try {
360
- if (e) {
361
- let { blob: e, url: t, text: n, dataUrl: r } = await Mt();
362
- await Promise.resolve(L.value.userOptions.callbacks.svg({
363
- blob: e,
364
- url: t,
365
- text: n,
366
- dataUrl: r
367
- }));
368
- } else await Promise.resolve(jt());
369
- } finally {
370
- M.value = !1;
371
- }
372
- }
373
- function Pt(e) {
374
- if (e?.stage === "start") {
375
- j.value = !0;
376
- return;
377
- }
378
- if (e?.stage === "end") {
379
- j.value = !1;
380
- return;
381
- }
382
- Ct();
383
- }
384
- async function Ft() {
385
- if (tt("copyAlt", {
386
- config: L.value,
387
- dataset: z.value
388
- }), !L.value.userOptions.callbacks.altCopy) {
389
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
390
- return;
391
- }
392
- await Promise.resolve(L.value.userOptions.callbacks.altCopy({
393
- config: L.value,
394
- dataset: z.value
395
- }));
396
- }
397
- return pe({
398
- getData: Et,
399
- getImage: Dt,
400
- generatePdf: St,
401
- generateImage: Ct,
402
- generateSvg: Nt,
403
- toggleAnnotator: $,
404
- toggleFullscreen: Tt,
405
- copyAlt: Ft
406
- }), (e, t) => (y(), f("div", {
407
- ref_key: "bulletChart",
408
- ref: O,
409
- class: g(`vue-data-ui-component vue-ui-bullet ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
410
- style: v(`font-family:${L.value.style.fontFamily};width:100%;background:${L.value.style.chart.backgroundColor};${L.value.responsive ? "height:100%" : ""}`),
411
- id: `bullet_${F.value}`,
412
- onMouseenter: t[0] ||= () => w(pt)(!0),
413
- onMouseleave: t[1] ||= () => w(pt)(!1)
414
- }, [
415
- L.value.userOptions.buttons.annotator ? (y(), u(w(Xe), {
416
- key: 0,
417
- svgRef: w(H),
418
- backgroundColor: L.value.style.chart.backgroundColor,
419
- color: L.value.style.chart.color,
420
- active: Q.value,
421
- isCursorPointer: dt.value,
422
- onClose: $
423
- }, {
424
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
425
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
426
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
427
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
428
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
429
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
430
- _: 3
431
- }, 8, [
432
- "svgRef",
433
- "backgroundColor",
434
- "color",
435
- "active",
436
- "isCursorPointer"
437
- ])) : d("", !0),
438
- wt.value ? (y(), f("div", Ae, null, 512)) : d("", !0),
439
- L.value.style.chart.title.text ? (y(), f("div", {
440
- key: 2,
441
- ref_key: "chartTitle",
442
- ref: nt,
443
- style: "width:100%;background:transparent;"
444
- }, [(y(), u(fe, {
445
- lineHeight: "1.3rem",
446
- key: `title_${rt.value}`,
447
- config: {
448
- title: {
449
- cy: "bullet-div-title",
450
- ...L.value.style.chart.title
451
- },
452
- subtitle: {
453
- cy: "bullet-div-subtitle",
454
- ...L.value.style.chart.title.subtitle
455
- }
456
- }
457
- }, null, 8, ["config"]))], 512)) : d("", !0),
458
- p("div", { id: `legend-top-${F.value}` }, null, 8, je),
459
- L.value.userOptions.show && N.value && (w(mt) || w(V)) ? (y(), u(w(Ze), {
460
- key: 3,
461
- ref: "details",
462
- backgroundColor: L.value.style.chart.backgroundColor,
463
- color: L.value.style.chart.color,
464
- isPrinting: w(Y),
465
- isImaging: w(X),
466
- uid: F.value,
467
- hasTooltip: !1,
468
- hasPdf: L.value.userOptions.buttons.pdf,
469
- hasImg: L.value.userOptions.buttons.img,
470
- hasSvg: L.value.userOptions.buttons.svg,
471
- hasXls: !1,
472
- hasTable: !1,
473
- hasLabel: !1,
474
- hasFullscreen: L.value.userOptions.buttons.fullscreen,
475
- hasAltCopy: L.value.userOptions.buttons.altCopy,
476
- isFullscreen: Z.value,
477
- chartElement: O.value,
478
- position: L.value.userOptions.position,
479
- titles: { ...L.value.userOptions.buttonTitles },
480
- hasAnnotator: L.value.userOptions.buttons.annotator,
481
- isAnnotation: Q.value,
482
- callbacks: L.value.userOptions.callbacks,
483
- printScale: L.value.userOptions.print.scale,
484
- isCursorPointer: dt.value,
485
- onToggleFullscreen: Tt,
486
- onGeneratePdf: w(St),
487
- onGenerateImage: Pt,
488
- onGenerateSvg: Nt,
489
- onToggleAnnotator: $,
490
- onCopyAlt: Ft,
491
- style: v({ visibility: w(mt) ? w(V) ? "visible" : "hidden" : "visible" })
492
- }, xe({ _: 2 }, [
493
- e.$slots.menuIcon ? {
494
- name: "menuIcon",
495
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", _(h({
496
- isOpen: t,
497
- color: n
498
- })), void 0, !0)]),
499
- key: "0"
500
- } : void 0,
501
- e.$slots.optionPdf ? {
502
- name: "optionPdf",
503
- fn: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
504
- key: "1"
505
- } : void 0,
506
- e.$slots.optionImg ? {
507
- name: "optionImg",
508
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
509
- key: "2"
510
- } : void 0,
511
- e.$slots.optionSvg ? {
512
- name: "optionSvg",
513
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
514
- key: "3"
515
- } : void 0,
516
- e.$slots.optionFullscreen ? {
517
- name: "optionFullscreen",
518
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", _(h({
519
- toggleFullscreen: t,
520
- isFullscreen: n
521
- })), void 0, !0)]),
522
- key: "4"
523
- } : void 0,
524
- e.$slots.optionAnnotator ? {
525
- name: "optionAnnotator",
526
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", _(h({
527
- toggleAnnotator: t,
528
- isAnnotator: n
529
- })), void 0, !0)]),
530
- key: "5"
531
- } : void 0,
532
- e.$slots.optionAltCopy ? {
533
- name: "optionAltCopy",
534
- fn: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
535
- key: "6"
536
- } : void 0,
537
- e.$slots["custom-menu-before"] ? {
538
- name: "custom-menu-before",
539
- fn: T(() => [S(e.$slots, "custom-menu-before", {}, void 0, !0)]),
540
- key: "7"
541
- } : void 0,
542
- e.$slots["custom-menu-after"] ? {
543
- name: "custom-menu-after",
544
- fn: T(() => [S(e.$slots, "custom-menu-after", {}, void 0, !0)]),
545
- key: "8"
546
- } : void 0
547
- ]), 1032, [
548
- "backgroundColor",
549
- "color",
550
- "isPrinting",
551
- "isImaging",
552
- "uid",
553
- "hasPdf",
554
- "hasImg",
555
- "hasSvg",
556
- "hasFullscreen",
557
- "hasAltCopy",
558
- "isFullscreen",
559
- "chartElement",
560
- "position",
561
- "titles",
562
- "hasAnnotator",
563
- "isAnnotation",
564
- "callbacks",
565
- "printScale",
566
- "isCursorPointer",
567
- "onGeneratePdf",
568
- "style"
569
- ])) : d("", !0),
570
- (y(), f("svg", {
571
- ref_key: "svgRef",
572
- ref: H,
573
- xmlns: w(re),
574
- class: g({
575
- "vue-data-ui-fullscreen--on": Z.value,
576
- "vue-data-ui-fulscreen--off": !Z.value,
577
- "vue-ui-bullet-svg": !0
578
- }),
579
- viewBox: `0 0 ${W.value.width} ${W.value.height}`,
580
- style: v(`width: 100%; overflow: visible; background:transparent;color:${L.value.style.chart.color}`),
581
- "aria-labelledby": `bullet-svg-title-${F.value}`,
582
- "aria-describedby": `bullet-svg-desc-${F.value}`
583
- }, [
584
- Se(w(E)),
585
- p("title", { id: `bullet-svg-title-${F.value}` }, C(L.value.style.chart.title.text || "Bullet chart"), 9, Ne),
586
- p("desc", { id: `bullet-svg-desc-${F.value}` }, " Value: " + C(K.value) + ", Target: " + C(q.value.target?.value), 9, Pe),
587
- e.$slots["chart-background"] ? (y(), f("foreignObject", {
588
- key: 0,
589
- x: 0,
590
- y: 0,
591
- width: W.value.width,
592
- height: W.value.height,
593
- style: { pointerEvents: "none" }
594
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Fe)) : d("", !0),
595
- P.value ? (y(), f("g", Ie, [
596
- (y(!0), f(c, null, x(q.value.chunks, (e) => (y(), f("rect", {
597
- x: e.x,
598
- y: e.y,
599
- height: e.height,
600
- width: e.width,
601
- fill: e.color,
602
- "stroke-width": 1,
603
- stroke: L.value.style.chart.backgroundColor,
604
- style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
605
- }, null, 8, Le))), 256)),
606
- !L.value.style.chart.target.onTop && L.value.style.chart.target.show ? (y(), f("rect", {
607
- key: 0,
608
- x: q.value.target.x,
609
- y: W.value.top + (W.value.chartHeight - W.value.chartHeight * L.value.style.chart.target.heightRatio) / 2,
610
- height: W.value.chartHeight * L.value.style.chart.target.heightRatio,
611
- width: L.value.style.chart.target.width,
612
- rx: L.value.style.chart.target.rounded ? L.value.style.chart.target.width / 2 : 0,
613
- fill: L.value.style.chart.target.color,
614
- stroke: L.value.style.chart.target.stroke,
615
- "stroke-width": L.value.style.chart.target.strokeWidth
616
- }, null, 8, Re)) : d("", !0),
617
- p("rect", {
618
- x: W.value.left,
619
- y: W.value.top + (W.value.chartHeight - W.value.chartHeight * L.value.style.chart.valueBar.heightRatio) / 2,
620
- height: W.value.chartHeight * L.value.style.chart.valueBar.heightRatio,
621
- width: q.value.value.width,
622
- fill: L.value.style.chart.valueBar.color,
623
- stroke: L.value.style.chart.valueBar.stroke,
624
- "stroke-width": L.value.style.chart.valueBar.strokeWidth
625
- }, null, 8, ze),
626
- L.value.style.chart.valueBar.label.show ? (y(), f("text", {
627
- key: 1,
628
- x: W.value.left + q.value.value.width,
629
- y: W.value.top - 6 + L.value.style.chart.valueBar.label.offsetY,
630
- "font-size": L.value.style.chart.valueBar.label.fontSize,
631
- "font-weight": L.value.style.chart.valueBar.label.bold ? "bold" : "normal",
632
- fill: L.value.style.chart.valueBar.label.color,
633
- "text-anchor": "middle"
634
- }, C(w(o)(L.value.style.chart.segments.dataLabels.formatter, K.value, w(i)({
635
- p: L.value.style.chart.segments.dataLabels.prefix,
636
- v: K.value,
637
- s: L.value.style.chart.segments.dataLabels.suffix,
638
- r: L.value.style.chart.segments.dataLabels.rounding
639
- }))), 9, Be)) : d("", !0),
640
- L.value.style.chart.target.onTop && L.value.style.chart.target.show ? (y(), f("rect", {
641
- key: 2,
642
- x: q.value.target.x,
643
- y: W.value.top + (W.value.chartHeight - W.value.chartHeight * L.value.style.chart.target.heightRatio) / 2,
644
- height: W.value.chartHeight * L.value.style.chart.target.heightRatio,
645
- width: L.value.style.chart.target.width,
646
- rx: L.value.style.chart.target.rounded ? L.value.style.chart.target.width / 2 : 0,
647
- fill: L.value.style.chart.target.color,
648
- stroke: L.value.style.chart.target.stroke,
649
- "stroke-width": L.value.style.chart.target.strokeWidth,
650
- style: { transition: "x 0.3s ease-in-out" }
651
- }, null, 8, Ve)) : d("", !0),
652
- L.value.style.chart.segments.dataLabels.show ? (y(), f("g", He, [(y(!0), f(c, null, x(q.value.ticks, (e) => (y(), f("text", {
653
- x: e.x,
654
- y: e.y,
655
- "text-anchor": "middle",
656
- fill: L.value.style.chart.segments.dataLabels.color,
657
- "font-size": L.value.style.chart.segments.dataLabels.fontSize + "px",
658
- "font-weight": L.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
659
- }, C(w(o)(L.value.style.chart.segments.dataLabels.formatter, e.value, w(i)({
660
- p: L.value.style.chart.segments.dataLabels.prefix,
661
- v: e.value,
662
- s: L.value.style.chart.segments.dataLabels.suffix,
663
- r: L.value.style.chart.segments.dataLabels.rounding
664
- }))), 9, Ue))), 256))])) : d("", !0),
665
- L.value.style.chart.segments.dataLabels.show && L.value.style.chart.segments.ticks.show ? (y(), f("g", We, [(y(!0), f(c, null, x(q.value.ticks, (e) => (y(), f("line", {
666
- x1: e.x,
667
- x2: e.x,
668
- y1: W.value.bottom,
669
- y2: W.value.bottom + 3,
670
- stroke: L.value.style.chart.segments.ticks.stroke,
671
- "stroke-width": 1,
672
- "stroke-linecap": "round"
673
- }, null, 8, Ge))), 256))])) : d("", !0)
674
- ])) : d("", !0),
675
- S(e.$slots, "svg", { svg: {
676
- ...W.value,
677
- isPrintingImg: w(Y) || w(X) || j.value,
678
- isPrintingSvg: M.value
679
- } }, void 0, !0)
680
- ], 14, Me)),
681
- e.$slots.watermark ? (y(), f("div", Ke, [S(e.$slots, "watermark", _(h({ isPrinting: w(Y) || w(X) || j.value || M.value })), void 0, !0)])) : d("", !0),
682
- p("div", { id: `legend-bottom-${F.value}` }, null, 8, qe),
683
- st.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (y(), u(be, {
684
- key: 5,
685
- to: L.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
686
- }, [p("div", {
687
- ref_key: "chartLegend",
688
- ref: it
689
- }, [S(e.$slots, "legend", { legend: J.value }, () => [L.value.style.chart.legend.show ? (y(), u(ve, {
690
- key: 0,
691
- clickable: !1,
692
- legendSet: J.value,
693
- config: xt.value
694
- }, {
695
- item: T(({ legend: e }) => [w(R) ? d("", !0) : (y(), f("div", Je, [p("span", Ye, C(e.name) + ":", 1), p("span", null, C(e.value), 1)]))]),
696
- _: 1
697
- }, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
698
- e.$slots.source ? (y(), f("div", {
699
- key: 6,
700
- ref_key: "source",
701
- ref: at,
702
- dir: "auto"
703
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
704
- S(e.$slots, "skeleton", {}, () => [w(R) ? (y(), u(ce, { key: 0 })) : d("", !0)], !0)
705
- ], 46, ke));
706
- }
707
- }, [["__scopeId", "data-v-2040c43b"]]);
708
- //#endregion
709
- export { Oe as n, E as t };