vue-data-ui 3.23.0 → 3.23.2

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 (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  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-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,724 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Jt as t, Ot as n, S as r, X as i, _ as a, i as o, jt as ee, pt as te, q as ne, t as re, tt as ie } from "./lib-BuMGJ_a0.js";
3
- import { n as ae } from "./useHints-Dq_w2E8B.js";
4
- import { t as oe } from "./useConfig-BilxnBNr.js";
5
- import { t as se } from "./usePrinter-BFvi4jVy.js";
6
- import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as ue } from "./useSvgExport-Ba9qBr9M.js";
8
- import { t as s } from "./useNestedProp--NSEmhOH.js";
9
- import { t as de } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as fe } from "./img-DIQG5q8T.js";
11
- import { n as pe } from "./Title-BODtwViI.js";
12
- import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as he, t as ge } from "./useResponsive-ZtArZtUf.js";
14
- import { t as _e } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as ve } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as ye } from "./Legend-CQTRlzK-.js";
17
- import { t as be } from "./vue_ui_bullet-ClzdLoOv.js";
18
- import { Fragment as c, Teleport as xe, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Se, createVNode as Ce, defineAsyncComponent as m, guardReactiveProps as h, nextTick as we, normalizeClass as Te, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Ee, onMounted as De, openBlock as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, toRefs as Oe, unref as C, watch as ke, withCtx as w } from "vue";
19
- //#region src/components/vue-ui-bullet.vue
20
- var Ae = /* @__PURE__ */ e({ default: () => T }), je = ["id"], Me = {
21
- key: 1,
22
- ref: "noTitle",
23
- class: "vue-data-ui-no-title-space",
24
- style: "height:36px; width: 100%;background:transparent"
25
- }, Ne = ["id"], Pe = [
26
- "xmlns",
27
- "viewBox",
28
- "aria-labelledby",
29
- "aria-describedby"
30
- ], Fe = ["id"], Ie = ["id"], Le = ["width", "height"], Re = { key: 1 }, ze = [
31
- "x",
32
- "y",
33
- "height",
34
- "width",
35
- "fill",
36
- "stroke"
37
- ], Be = [
38
- "x",
39
- "y",
40
- "height",
41
- "width",
42
- "rx",
43
- "fill",
44
- "stroke",
45
- "stroke-width"
46
- ], Ve = [
47
- "x",
48
- "y",
49
- "height",
50
- "width",
51
- "fill",
52
- "stroke",
53
- "stroke-width"
54
- ], He = [
55
- "x",
56
- "y",
57
- "font-size",
58
- "font-weight",
59
- "fill"
60
- ], Ue = [
61
- "x",
62
- "y",
63
- "height",
64
- "width",
65
- "rx",
66
- "fill",
67
- "stroke",
68
- "stroke-width"
69
- ], We = { key: 3 }, Ge = [
70
- "x",
71
- "y",
72
- "fill",
73
- "font-size",
74
- "font-weight"
75
- ], Ke = { key: 4 }, qe = [
76
- "x1",
77
- "x2",
78
- "y1",
79
- "y2",
80
- "stroke"
81
- ], Je = {
82
- key: 4,
83
- class: "vue-data-ui-watermark"
84
- }, Ye = ["id"], Xe = {
85
- key: 0,
86
- class: "vue-ui-bullet-legend-item",
87
- dir: "auto"
88
- }, Ze = { style: { "margin-right": "2px" } }, T = /*#__PURE__*/ me({
89
- __name: "vue-ui-bullet",
90
- props: {
91
- config: {
92
- type: Object,
93
- default() {
94
- return {};
95
- }
96
- },
97
- dataset: {
98
- type: Object,
99
- default() {
100
- return {};
101
- }
102
- }
103
- },
104
- emits: ["copyAlt"],
105
- setup(e, { expose: me, emit: Ae }) {
106
- let T = m(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Qe = m(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), $e = m(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), { vue_ui_bullet: et } = oe(), { isThemeValid: tt, warnInvalidTheme: nt } = de(), E = e, rt = Ae, D = y(null), it = y(null), at = y(0), ot = y(null), st = y(null), ct = y(0), O = y(null), k = y(null), lt = y(!1), A = y(!1), j = y(!1), M = l({
107
- get: () => R.value.hasOwnProperty("value"),
108
- set: (e) => e
109
- }), N = l(() => R.value.segments ? Array.isArray(R.value.segments) ? R.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 "), M.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 "), M.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 "), M.value = !1, !1)), ut = l(() => !!I.value.debug), dt = l(() => {
110
- let { top: e, right: t, bottom: n, left: r } = I.value.style.chart.padding;
111
- return {
112
- top: e,
113
- right: t,
114
- bottom: n,
115
- left: r
116
- };
117
- });
118
- function ft() {
119
- if (ee(R.value) ? (ie({
120
- componentName: "VueUiBullet",
121
- type: "dataset",
122
- debug: ut.value
123
- }), z.value = !0) : N.value ? R.value.segments.forEach((e, t) => {
124
- te({
125
- datasetObject: e,
126
- requiredAttributes: [
127
- "name",
128
- "from",
129
- "to"
130
- ]
131
- }).forEach((e) => {
132
- M.value = !1, ie({
133
- componentName: "VueUiBullet segment",
134
- type: "datasetSerieAttribute",
135
- property: e,
136
- index: t,
137
- debug: ut.value
138
- });
139
- });
140
- }) : (M.value = !1, z.value = !0), ee(R.value) || (z.value = I.value.loading), I.value.responsive) {
141
- let e = he(() => {
142
- let { width: e, height: t } = ge({
143
- chart: D.value,
144
- title: I.value.style.chart.title.text ? it.value : null,
145
- legend: I.value.style.chart.legend.show ? ot.value : null,
146
- source: st.value,
147
- padding: dt.value
148
- }), n = (I.value.style.chart.legend.show ? 24 : 0) || 12;
149
- requestAnimationFrame(() => {
150
- U.value.width = e, U.value.height = t - n;
151
- });
152
- });
153
- O.value && (k.value && O.value.unobserve(k.value), O.value.disconnect()), O.value = new ResizeObserver(e), k.value = D.value.parentNode, O.value.observe(k.value);
154
- }
155
- I.value.style.chart.animation.show && !L.value && xt(R.value.value || 0);
156
- }
157
- De(() => {
158
- lt.value = !0, ft();
159
- });
160
- let P = y(ne());
161
- function F() {
162
- let e = s({
163
- userConfig: E.config,
164
- defaultConfig: et
165
- }), t = e.theme;
166
- if (!t) return e;
167
- if (!tt.value(e)) return nt(e), e;
168
- let n = s({
169
- userConfig: be[t] || E.config,
170
- defaultConfig: e
171
- });
172
- return s({
173
- userConfig: E.config,
174
- defaultConfig: n
175
- });
176
- }
177
- let I = y(F());
178
- ae({
179
- config: () => I.value,
180
- dataset: () => E.dataset,
181
- component: "VueUiBullet",
182
- rules: [{
183
- test: (e) => e?.segments && e?.segments.length > 8,
184
- message: [
185
- "👀 The number of target segments is > 8, which can make the chart hard to read and a large legend. Consider:",
186
- "",
187
- "▶️ Using broader segments."
188
- ]
189
- }]
190
- });
191
- let pt = l(() => I.value.userOptions.useCursorPointer), mt = l(() => t({
192
- defaultConfig: {
193
- userOptions: { show: !1 },
194
- style: { chart: {
195
- backgroundColor: "#99999930",
196
- segments: {
197
- dataLabels: { show: !1 },
198
- ticks: { stroke: "#8A8A8A" }
199
- },
200
- valueBar: { label: { show: !1 } }
201
- } }
202
- },
203
- userConfig: I.value.skeletonConfig ?? {}
204
- })), { loading: L, FINAL_DATASET: R, manualLoading: z } = ce({
205
- ...Oe(E),
206
- FINAL_CONFIG: I,
207
- prepareConfig: F,
208
- skeletonDataset: E.config?.skeletonDataset ?? {
209
- value: 100,
210
- target: 100,
211
- segments: [
212
- {
213
- name: "",
214
- from: 0,
215
- to: 33,
216
- color: "#AAAAAA"
217
- },
218
- {
219
- name: "",
220
- from: 33,
221
- to: 66,
222
- color: "#BABABA"
223
- },
224
- {
225
- name: "",
226
- from: 66,
227
- to: 100,
228
- color: "#CACACA"
229
- }
230
- ]
231
- },
232
- skeletonConfig: t({
233
- defaultConfig: I.value,
234
- userConfig: mt.value
235
- })
236
- }), { userOptionsVisible: B, setUserOptionsVisibility: ht, keepUserOptionState: V } = _e({ config: I.value }), { svgRef: H } = ve({ config: I.value.style.chart.title }), U = y({
237
- width: I.value.style.chart.width,
238
- height: I.value.style.chart.height
239
- }), gt = l(() => U.value.width), _t = l(() => U.value.height);
240
- ke(() => E.config, (e) => {
241
- L.value || (I.value = F()), B.value = !I.value.userOptions.showOnChartHover, U.value.width = I.value.style.chart.width, U.value.height = I.value.style.chart.height, ft(), at.value += 1;
242
- }, { deep: !0 });
243
- let W = l(() => {
244
- let e = _t.value, t = gt.value, n = I.value.style.chart.padding.left, r = t - I.value.style.chart.padding.right, i = I.value.style.chart.padding.top, a = e - I.value.style.chart.padding.bottom;
245
- return {
246
- height: Math.max(.001, e),
247
- width: Math.max(.001, t),
248
- left: n,
249
- right: r,
250
- top: i,
251
- bottom: a,
252
- chartWidth: Math.max(.001, r - n),
253
- chartHeight: Math.max(.001, a - i)
254
- };
255
- }), vt = l(() => {
256
- if (!N.value) return [];
257
- let e = [];
258
- for (let t = 0; t < R.value.segments.length; t += 1) e.push(n(I.value.style.chart.segments.baseColor, t / R.value.segments.length));
259
- return e;
260
- }), G = l(() => N.value ? {
261
- min: Math.min(...R.value.segments.map((e) => e.from)),
262
- max: Math.max(...R.value.segments.map((e) => e.to))
263
- } : {
264
- min: 0,
265
- max: 1
266
- }), K = y(yt());
267
- ke(() => R.value, (e) => {
268
- e.hasOwnProperty("value") && (z.value = !1), I.value.style.chart.animation.show && !L.value ? xt(e.value || 0) : K.value = e.value || 0;
269
- }, { deep: !0 });
270
- function yt() {
271
- return I.value.style.chart.animation.show && !L.value ? G.value.min : R.value.value || 0;
272
- }
273
- let bt = y(null);
274
- function xt(e) {
275
- let t = Math.abs(e - K.value) / I.value.style.chart.animation.animationFrames;
276
- function n() {
277
- 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 && (bt.value = requestAnimationFrame(n));
278
- }
279
- n();
280
- }
281
- Ee(() => {
282
- cancelAnimationFrame(bt.value);
283
- });
284
- let q = l(() => {
285
- if (!N.value) return [];
286
- let e = a(G.value.min, G.value.max, I.value.style.chart.segments.ticks.divisions), t = e.min >= 0 ? 0 : Math.abs(e.min);
287
- return {
288
- scale: e,
289
- target: { x: W.value.left + (R.value.target + t) / (e.max + t) * W.value.chartWidth - I.value.style.chart.target.width / 2 },
290
- value: { width: (K.value + t) / (e.max + t) * W.value.chartWidth },
291
- ticks: e.ticks.map((n) => ({
292
- value: n,
293
- y: W.value.bottom + I.value.style.chart.segments.dataLabels.fontSize + 3 + I.value.style.chart.segments.dataLabels.offsetY,
294
- x: W.value.left + (n + t) / (e.max + t) * W.value.chartWidth
295
- })),
296
- chunks: R.value.segments.map((n, i) => ({
297
- ...n,
298
- color: n.color ? r(n.color) : vt.value[i],
299
- x: W.value.left + W.value.chartWidth * ((n.from + t) / (e.max + t)),
300
- y: W.value.top,
301
- height: W.value.chartHeight,
302
- width: W.value.chartWidth * (Math.abs(n.to - n.from) / (e.max + t))
303
- }))
304
- };
305
- }), J = l(() => !q.value || !q.value.chunks || !q.value.chunks.length ? [] : q.value.chunks.map((e) => {
306
- let t = `${o(I.value.style.chart.segments.dataLabels.formatter, e.from, i({
307
- p: I.value.style.chart.segments.dataLabels.prefix,
308
- v: e.from,
309
- s: I.value.style.chart.segments.dataLabels.suffix,
310
- r: I.value.style.chart.segments.dataLabels.rounding
311
- }))} — ${o(I.value.style.chart.segments.dataLabels.formatter, e.to, i({
312
- p: I.value.style.chart.segments.dataLabels.prefix,
313
- v: e.to,
314
- s: I.value.style.chart.segments.dataLabels.suffix,
315
- r: I.value.style.chart.segments.dataLabels.rounding
316
- }))}`;
317
- return {
318
- ...e,
319
- shape: "square",
320
- value: t,
321
- display: `${e.name}: ${t}`
322
- };
323
- })), St = l(() => ({
324
- cy: "bullet-div-legend",
325
- backgroundColor: "transparent",
326
- color: I.value.style.chart.legend.color,
327
- fontSize: I.value.style.chart.legend.fontSize,
328
- paddingBottom: 6,
329
- fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
330
- })), { isPrinting: Y, isImaging: X, generatePdf: Ct, generateImage: wt } = se({
331
- elementId: `bullet_${P.value}`,
332
- fileName: I.value.style.chart.title.text || "vue-ui-bullet",
333
- options: I.value.userOptions.print
334
- }), Tt = l(() => I.value.userOptions.show && !I.value.style.chart.title.text), Z = y(!1);
335
- function Et(e) {
336
- Z.value = e, ct.value += 1;
337
- }
338
- function Dt() {
339
- return q.value;
340
- }
341
- let Q = y(!1);
342
- function $() {
343
- Q.value = !Q.value;
344
- }
345
- async function Ot({ scale: e = 2 } = {}) {
346
- if (!D.value) return;
347
- let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
348
- domElement: D.value,
349
- base64: !0,
350
- img: !0,
351
- scale: e
352
- });
353
- return {
354
- imageUri: i,
355
- base64: a,
356
- title: I.value.style.chart.title.text,
357
- width: t,
358
- height: n,
359
- aspectRatio: r
360
- };
361
- }
362
- let kt = l(() => J.value.map((e) => ({
363
- ...e,
364
- name: e.display
365
- }))), At = l(() => I.value.style.chart.backgroundColor), jt = l(() => I.value.style.chart.legend), { exportSvg: Mt, getSvg: Nt } = ue({
366
- svg: H,
367
- title: l(() => I.value.style.chart.title),
368
- legend: jt,
369
- legendItems: kt,
370
- backgroundColor: At
371
- });
372
- async function Pt({ isCb: e }) {
373
- j.value = !0, await we();
374
- try {
375
- if (e) {
376
- let { blob: e, url: t, text: n, dataUrl: r } = await Nt();
377
- await Promise.resolve(I.value.userOptions.callbacks.svg({
378
- blob: e,
379
- url: t,
380
- text: n,
381
- dataUrl: r
382
- }));
383
- } else await Promise.resolve(Mt());
384
- } finally {
385
- j.value = !1;
386
- }
387
- }
388
- function Ft(e) {
389
- if (e?.stage === "start") {
390
- A.value = !0;
391
- return;
392
- }
393
- if (e?.stage === "end") {
394
- A.value = !1;
395
- return;
396
- }
397
- wt();
398
- }
399
- async function It() {
400
- if (rt("copyAlt", {
401
- config: I.value,
402
- dataset: R.value
403
- }), !I.value.userOptions.callbacks.altCopy) {
404
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
405
- return;
406
- }
407
- await Promise.resolve(I.value.userOptions.callbacks.altCopy({
408
- config: I.value,
409
- dataset: R.value
410
- }));
411
- }
412
- return me({
413
- getData: Dt,
414
- getImage: Ot,
415
- generatePdf: Ct,
416
- generateImage: wt,
417
- generateSvg: Pt,
418
- toggleAnnotator: $,
419
- toggleFullscreen: Et,
420
- copyAlt: It
421
- }), (e, t) => (v(), f("div", {
422
- ref_key: "bulletChart",
423
- ref: D,
424
- class: Te(`vue-data-ui-component vue-ui-bullet ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
425
- style: _(`font-family:${I.value.style.fontFamily};width:100%;background:${I.value.style.chart.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
426
- id: `bullet_${P.value}`,
427
- onMouseenter: t[0] ||= () => C(ht)(!0),
428
- onMouseleave: t[1] ||= () => C(ht)(!1)
429
- }, [
430
- I.value.userOptions.buttons.annotator ? (v(), u(C(Qe), {
431
- key: 0,
432
- svgRef: C(H),
433
- backgroundColor: I.value.style.chart.backgroundColor,
434
- color: I.value.style.chart.color,
435
- active: Q.value,
436
- isCursorPointer: pt.value,
437
- onClose: $
438
- }, {
439
- "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
440
- "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
441
- "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
442
- "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
443
- "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
444
- "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
445
- _: 3
446
- }, 8, [
447
- "svgRef",
448
- "backgroundColor",
449
- "color",
450
- "active",
451
- "isCursorPointer"
452
- ])) : d("", !0),
453
- Tt.value ? (v(), f("div", Me, null, 512)) : d("", !0),
454
- I.value.style.chart.title.text ? (v(), f("div", {
455
- key: 2,
456
- ref_key: "chartTitle",
457
- ref: it,
458
- style: "width:100%;background:transparent;"
459
- }, [(v(), u(pe, {
460
- lineHeight: "1.3rem",
461
- key: `title_${at.value}`,
462
- config: {
463
- title: {
464
- cy: "bullet-div-title",
465
- ...I.value.style.chart.title
466
- },
467
- subtitle: {
468
- cy: "bullet-div-subtitle",
469
- ...I.value.style.chart.title.subtitle
470
- }
471
- }
472
- }, null, 8, ["config"]))], 512)) : d("", !0),
473
- p("div", { id: `legend-top-${P.value}` }, null, 8, Ne),
474
- I.value.userOptions.show && M.value && (C(V) || C(B)) ? (v(), u(C($e), {
475
- key: 3,
476
- ref: "details",
477
- backgroundColor: I.value.style.chart.backgroundColor,
478
- color: I.value.style.chart.color,
479
- isPrinting: C(Y),
480
- isImaging: C(X),
481
- uid: P.value,
482
- hasTooltip: !1,
483
- hasPdf: I.value.userOptions.buttons.pdf,
484
- hasImg: I.value.userOptions.buttons.img,
485
- hasSvg: I.value.userOptions.buttons.svg,
486
- hasXls: !1,
487
- hasTable: !1,
488
- hasLabel: !1,
489
- hasFullscreen: I.value.userOptions.buttons.fullscreen,
490
- hasAltCopy: I.value.userOptions.buttons.altCopy,
491
- isFullscreen: Z.value,
492
- chartElement: D.value,
493
- position: I.value.userOptions.position,
494
- titles: { ...I.value.userOptions.buttonTitles },
495
- hasAnnotator: I.value.userOptions.buttons.annotator,
496
- isAnnotation: Q.value,
497
- callbacks: I.value.userOptions.callbacks,
498
- printScale: I.value.userOptions.print.scale,
499
- isCursorPointer: pt.value,
500
- onToggleFullscreen: Et,
501
- onGeneratePdf: C(Ct),
502
- onGenerateImage: Ft,
503
- onGenerateSvg: Pt,
504
- onToggleAnnotator: $,
505
- onCopyAlt: It,
506
- style: _({ visibility: C(V) ? C(B) ? "visible" : "hidden" : "visible" })
507
- }, Se({ _: 2 }, [
508
- e.$slots.menuIcon ? {
509
- name: "menuIcon",
510
- fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
511
- isOpen: t,
512
- color: n
513
- })), void 0, !0)]),
514
- key: "0"
515
- } : void 0,
516
- e.$slots.optionPdf ? {
517
- name: "optionPdf",
518
- fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
519
- key: "1"
520
- } : void 0,
521
- e.$slots.optionImg ? {
522
- name: "optionImg",
523
- fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
524
- key: "2"
525
- } : void 0,
526
- e.$slots.optionSvg ? {
527
- name: "optionSvg",
528
- fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
529
- key: "3"
530
- } : void 0,
531
- e.$slots.optionFullscreen ? {
532
- name: "optionFullscreen",
533
- fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
534
- toggleFullscreen: t,
535
- isFullscreen: n
536
- })), void 0, !0)]),
537
- key: "4"
538
- } : void 0,
539
- e.$slots.optionAnnotator ? {
540
- name: "optionAnnotator",
541
- fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
542
- toggleAnnotator: t,
543
- isAnnotator: n
544
- })), void 0, !0)]),
545
- key: "5"
546
- } : void 0,
547
- e.$slots.optionAltCopy ? {
548
- name: "optionAltCopy",
549
- fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
550
- key: "6"
551
- } : void 0,
552
- e.$slots["custom-menu-before"] ? {
553
- name: "custom-menu-before",
554
- fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
555
- key: "7"
556
- } : void 0,
557
- e.$slots["custom-menu-after"] ? {
558
- name: "custom-menu-after",
559
- fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
560
- key: "8"
561
- } : void 0
562
- ]), 1032, [
563
- "backgroundColor",
564
- "color",
565
- "isPrinting",
566
- "isImaging",
567
- "uid",
568
- "hasPdf",
569
- "hasImg",
570
- "hasSvg",
571
- "hasFullscreen",
572
- "hasAltCopy",
573
- "isFullscreen",
574
- "chartElement",
575
- "position",
576
- "titles",
577
- "hasAnnotator",
578
- "isAnnotation",
579
- "callbacks",
580
- "printScale",
581
- "isCursorPointer",
582
- "onGeneratePdf",
583
- "style"
584
- ])) : d("", !0),
585
- (v(), f("svg", {
586
- ref_key: "svgRef",
587
- ref: H,
588
- xmlns: C(re),
589
- class: Te({
590
- "vue-data-ui-fullscreen--on": Z.value,
591
- "vue-data-ui-fulscreen--off": !Z.value,
592
- "vue-ui-bullet-svg": !0
593
- }),
594
- viewBox: `0 0 ${W.value.width} ${W.value.height}`,
595
- style: _(`width: 100%; overflow: visible; background:transparent;color:${I.value.style.chart.color}`),
596
- "aria-labelledby": `bullet-svg-title-${P.value}`,
597
- "aria-describedby": `bullet-svg-desc-${P.value}`
598
- }, [
599
- Ce(C(T)),
600
- p("title", { id: `bullet-svg-title-${P.value}` }, S(I.value.style.chart.title.text || "Bullet chart"), 9, Fe),
601
- p("desc", { id: `bullet-svg-desc-${P.value}` }, " Value: " + S(K.value) + ", Target: " + S(q.value.target?.value), 9, Ie),
602
- e.$slots["chart-background"] ? (v(), f("foreignObject", {
603
- key: 0,
604
- x: 0,
605
- y: 0,
606
- width: W.value.width,
607
- height: W.value.height,
608
- style: { pointerEvents: "none" }
609
- }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Le)) : d("", !0),
610
- N.value ? (v(), f("g", Re, [
611
- (v(!0), f(c, null, b(q.value.chunks, (e) => (v(), f("rect", {
612
- x: e.x,
613
- y: e.y,
614
- height: e.height,
615
- width: e.width,
616
- fill: e.color,
617
- "stroke-width": 1,
618
- stroke: I.value.style.chart.backgroundColor,
619
- style: { transition: "x 0.3s ease-in-out, width 0.3s ease-in-out" }
620
- }, null, 8, ze))), 256)),
621
- !I.value.style.chart.target.onTop && I.value.style.chart.target.show ? (v(), f("rect", {
622
- key: 0,
623
- x: q.value.target.x,
624
- y: W.value.top + (W.value.chartHeight - W.value.chartHeight * I.value.style.chart.target.heightRatio) / 2,
625
- height: W.value.chartHeight * I.value.style.chart.target.heightRatio,
626
- width: I.value.style.chart.target.width,
627
- rx: I.value.style.chart.target.rounded ? I.value.style.chart.target.width / 2 : 0,
628
- fill: I.value.style.chart.target.color,
629
- stroke: I.value.style.chart.target.stroke,
630
- "stroke-width": I.value.style.chart.target.strokeWidth
631
- }, null, 8, Be)) : d("", !0),
632
- p("rect", {
633
- x: W.value.left,
634
- y: W.value.top + (W.value.chartHeight - W.value.chartHeight * I.value.style.chart.valueBar.heightRatio) / 2,
635
- height: W.value.chartHeight * I.value.style.chart.valueBar.heightRatio,
636
- width: q.value.value.width,
637
- fill: I.value.style.chart.valueBar.color,
638
- stroke: I.value.style.chart.valueBar.stroke,
639
- "stroke-width": I.value.style.chart.valueBar.strokeWidth
640
- }, null, 8, Ve),
641
- I.value.style.chart.valueBar.label.show ? (v(), f("text", {
642
- key: 1,
643
- x: W.value.left + q.value.value.width,
644
- y: W.value.top - 6 + I.value.style.chart.valueBar.label.offsetY,
645
- "font-size": I.value.style.chart.valueBar.label.fontSize,
646
- "font-weight": I.value.style.chart.valueBar.label.bold ? "bold" : "normal",
647
- fill: I.value.style.chart.valueBar.label.color,
648
- "text-anchor": "middle"
649
- }, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, K.value, C(i)({
650
- p: I.value.style.chart.segments.dataLabels.prefix,
651
- v: K.value,
652
- s: I.value.style.chart.segments.dataLabels.suffix,
653
- r: I.value.style.chart.segments.dataLabels.rounding
654
- }))), 9, He)) : d("", !0),
655
- I.value.style.chart.target.onTop && I.value.style.chart.target.show ? (v(), f("rect", {
656
- key: 2,
657
- x: q.value.target.x,
658
- y: W.value.top + (W.value.chartHeight - W.value.chartHeight * I.value.style.chart.target.heightRatio) / 2,
659
- height: W.value.chartHeight * I.value.style.chart.target.heightRatio,
660
- width: I.value.style.chart.target.width,
661
- rx: I.value.style.chart.target.rounded ? I.value.style.chart.target.width / 2 : 0,
662
- fill: I.value.style.chart.target.color,
663
- stroke: I.value.style.chart.target.stroke,
664
- "stroke-width": I.value.style.chart.target.strokeWidth,
665
- style: { transition: "x 0.3s ease-in-out" }
666
- }, null, 8, Ue)) : d("", !0),
667
- I.value.style.chart.segments.dataLabels.show ? (v(), f("g", We, [(v(!0), f(c, null, b(q.value.ticks, (e) => (v(), f("text", {
668
- x: e.x,
669
- y: e.y,
670
- "text-anchor": "middle",
671
- fill: I.value.style.chart.segments.dataLabels.color,
672
- "font-size": I.value.style.chart.segments.dataLabels.fontSize + "px",
673
- "font-weight": I.value.style.chart.segments.dataLabels.bold ? "bold" : "normal"
674
- }, S(C(o)(I.value.style.chart.segments.dataLabels.formatter, e.value, C(i)({
675
- p: I.value.style.chart.segments.dataLabels.prefix,
676
- v: e.value,
677
- s: I.value.style.chart.segments.dataLabels.suffix,
678
- r: I.value.style.chart.segments.dataLabels.rounding
679
- }))), 9, Ge))), 256))])) : d("", !0),
680
- I.value.style.chart.segments.dataLabels.show && I.value.style.chart.segments.ticks.show ? (v(), f("g", Ke, [(v(!0), f(c, null, b(q.value.ticks, (e) => (v(), f("line", {
681
- x1: e.x,
682
- x2: e.x,
683
- y1: W.value.bottom,
684
- y2: W.value.bottom + 3,
685
- stroke: I.value.style.chart.segments.ticks.stroke,
686
- "stroke-width": 1,
687
- "stroke-linecap": "round"
688
- }, null, 8, qe))), 256))])) : d("", !0)
689
- ])) : d("", !0),
690
- x(e.$slots, "svg", { svg: {
691
- ...W.value,
692
- isPrintingImg: C(Y) || C(X) || A.value,
693
- isPrintingSvg: j.value
694
- } }, void 0, !0)
695
- ], 14, Pe)),
696
- e.$slots.watermark ? (v(), f("div", Je, [x(e.$slots, "watermark", g(h({ isPrinting: C(Y) || C(X) || A.value || j.value })), void 0, !0)])) : d("", !0),
697
- p("div", { id: `legend-bottom-${P.value}` }, null, 8, Ye),
698
- lt.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(xe, {
699
- key: 5,
700
- to: I.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
701
- }, [p("div", {
702
- ref_key: "chartLegend",
703
- ref: ot
704
- }, [x(e.$slots, "legend", { legend: J.value }, () => [I.value.style.chart.legend.show ? (v(), u(ye, {
705
- key: 0,
706
- clickable: !1,
707
- legendSet: J.value,
708
- config: St.value
709
- }, {
710
- item: w(({ legend: e }) => [C(L) ? d("", !0) : (v(), f("div", Xe, [p("span", Ze, S(e.name) + ":", 1), p("span", null, S(e.value), 1)]))]),
711
- _: 1
712
- }, 8, ["legendSet", "config"])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
713
- e.$slots.source ? (v(), f("div", {
714
- key: 6,
715
- ref_key: "source",
716
- ref: st,
717
- dir: "auto"
718
- }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
719
- x(e.$slots, "skeleton", {}, () => [C(L) ? (v(), u(le, { key: 0 })) : d("", !0)], !0)
720
- ], 46, je));
721
- }
722
- }, [["__scopeId", "data-v-c7fbc385"]]);
723
- //#endregion
724
- export { Ae as n, T as t };