vue-data-ui 3.22.9 → 3.22.11

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 (216) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
  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 +1 -1
  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-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/exposedLib-Ciw6TGtP.js +25 -0
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
  94. package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/types/vue-data-ui.d.ts +1 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  104. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  105. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  106. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
  107. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  108. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
  109. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  110. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  111. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  112. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  113. package/dist/utils.js +26 -24
  114. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
  115. package/dist/vue-data-ui.js +77 -77
  116. package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
  117. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
  119. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
  120. package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
  121. package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
  122. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
  123. package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
  124. package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
  125. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
  126. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
  127. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
  128. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
  129. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  130. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  131. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
  132. package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
  133. package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
  134. package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
  135. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
  136. package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
  137. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
  138. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
  139. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
  140. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
  141. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
  142. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
  143. package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
  144. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  146. package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
  147. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
  148. package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
  149. package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
  150. package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
  151. package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
  152. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
  153. package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
  154. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
  155. package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
  156. package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
  157. package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
  158. package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
  159. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
  160. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
  161. package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
  162. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
  163. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
  164. package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
  165. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
  166. package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
  167. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
  168. package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
  169. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
  170. package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
  171. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
  172. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
  173. package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
  174. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  175. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
  176. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
  177. package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
  178. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
  179. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
  180. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
  181. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
  182. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
  183. package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
  184. package/package.json +2 -2
  185. package/dist/Slicer-CW_XPIKL.js +0 -1150
  186. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  187. package/dist/useResponsive-BfnK0KxU.js +0 -19
  188. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  189. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  190. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  191. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  192. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  193. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  194. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  195. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  196. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  197. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  198. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  199. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  200. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  201. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  202. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  203. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  204. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  205. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  206. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  207. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  208. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  209. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  210. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  211. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  212. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  213. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  214. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  215. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  216. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,709 @@
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-1MNr72Bz.js").then((e) => e.t)), Xe = m(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Ze = m(() => import("./UserOptions-B69xBEVP.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 };