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,953 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Bt as t, G as n, Jt as r, Kt as i, Mt as a, O as ee, Pt as te, S as ne, X as o, b as re, f as ie, i as ae, jt as oe, kt as s, pt as se, q as ce, qt as le, t as ue, tt as c, w as de } from "./lib-BuMGJ_a0.js";
3
- import { n as fe } from "./useHints-Dq_w2E8B.js";
4
- import { t as pe } from "./useConfig-BilxnBNr.js";
5
- import { t as me } from "./usePrinter-BFvi4jVy.js";
6
- import { n as he, t as ge } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as _e } from "./useSvgExport-Ba9qBr9M.js";
8
- import { t as ve } from "./useNestedProp--NSEmhOH.js";
9
- import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as be } from "./img-DIQG5q8T.js";
11
- import { n as xe } from "./Title-BODtwViI.js";
12
- import { t as Se } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as Ce, t as we } from "./useResponsive-ZtArZtUf.js";
14
- import { t as Te } from "./DefGrad-DVBqDjhO.js";
15
- import { t as Ee } from "./useUserOptionState-DK-_1ddE.js";
16
- import { t as De } from "./useChartAccessibility-DYqac8yF.js";
17
- import { t as Oe } from "./usePrefersMotion-BC-CsqR1.js";
18
- import { t as ke } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
19
- import { t as Ae } from "./vue_ui_gauge-Cf1RZc9q.js";
20
- import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as je, createVNode as Me, defineAsyncComponent as Ne, guardReactiveProps as h, mergeProps as g, nextTick as Pe, normalizeClass as Fe, normalizeProps as _, normalizeStyle as Ie, onBeforeUnmount as Le, onMounted as Re, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as ze, toDisplayString as S, toRefs as Be, unref as C, watch as w, withCtx as T } from "vue";
21
- //#region src/components/vue-ui-gauge.vue
22
- var Ve = /* @__PURE__ */ e({ default: () => yt }), He = ["id"], Ue = { key: 0 }, We = ["xmlns", "viewBox"], Ge = ["width", "height"], Ke = ["id"], qe = ["stdDeviation"], Je = { key: 1 }, Ye = [
23
- "d",
24
- "fill",
25
- "stroke"
26
- ], Xe = [
27
- "d",
28
- "fill",
29
- "stroke"
30
- ], Ze = ["d", "fill"], Qe = ["id", "d"], $e = [
31
- "fill",
32
- "font-size",
33
- "font-weight"
34
- ], et = ["href", "startOffset"], tt = [
35
- "text-anchor",
36
- "fill",
37
- "font-size",
38
- "font-weight",
39
- "innerHTML"
40
- ], nt = ["d", "filter"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = ["stroke", "stroke-width"], ot = ["stroke", "stroke-width"], st = { key: 8 }, ct = [
41
- "x",
42
- "y",
43
- "text-anchor",
44
- "font-size",
45
- "font-weight",
46
- "fill"
47
- ], lt = [
48
- "x",
49
- "y",
50
- "font-size",
51
- "font-weight",
52
- "fill"
53
- ], ut = { key: 0 }, dt = [
54
- "x1",
55
- "y1",
56
- "x2",
57
- "y2",
58
- "stroke",
59
- "stroke-width"
60
- ], ft = [
61
- "x1",
62
- "y1",
63
- "x2",
64
- "y2",
65
- "stroke",
66
- "stroke-width"
67
- ], pt = [
68
- "x1",
69
- "y1",
70
- "x2",
71
- "y2",
72
- "stroke-width",
73
- "filter"
74
- ], mt = { key: 1 }, ht = [
75
- "d",
76
- "fill",
77
- "stroke",
78
- "stroke-width"
79
- ], gt = [
80
- "cx",
81
- "cy",
82
- "fill",
83
- "r",
84
- "stroke-width",
85
- "stroke"
86
- ], _t = [
87
- "x",
88
- "y",
89
- "font-size",
90
- "fill"
91
- ], vt = {
92
- key: 4,
93
- class: "vue-data-ui-watermark"
94
- }, yt = /*#__PURE__*/ Se({
95
- __name: "vue-ui-gauge",
96
- props: {
97
- config: {
98
- type: Object,
99
- default() {
100
- return {};
101
- }
102
- },
103
- dataset: {
104
- type: Object,
105
- default() {
106
- return {};
107
- }
108
- }
109
- },
110
- emits: ["copyAlt"],
111
- setup(e, { expose: Se, emit: Ve }) {
112
- let yt = Ne(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), bt = Ne(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), xt = Ne(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), { vue_ui_gauge: St } = pe(), { isThemeValid: Ct, warnInvalidTheme: wt } = ye(), Tt = Oe(), E = e, Et = Ve, Dt = u(() => !!E.dataset && Object.keys(E.dataset).length > 0 && E.dataset.series && E.dataset.series.length), D = y(ce()), Ot = y(null), kt = y(0), O = y(null), At = y(null), jt = y(null), Mt = y(null), Nt = y(null), Pt = y(0), k = y(!1), A = y(!1), j = y(Vt());
113
- fe({
114
- config: () => j.value,
115
- dataset: () => E.dataset,
116
- component: "VueUiGauge",
117
- rules: [{
118
- test: (e) => e?.series && e.series?.length > 6,
119
- message: [
120
- "👀 The number of steps is > 6, which can make the chart hard to read and labels overlap. Consider:",
121
- "",
122
- "▶️ Using broader steps."
123
- ]
124
- }]
125
- });
126
- let Ft = u(() => j.value.userOptions.useCursorPointer), It = u(() => r({
127
- defaultConfig: {
128
- userOptions: { show: !1 },
129
- style: { chart: {
130
- backgroundColor: "#99999930",
131
- animation: { use: !1 },
132
- layout: {
133
- markers: { show: !1 },
134
- segmentSeparators: { stroke: "#6A6A6A" },
135
- segmentNames: { show: !1 },
136
- indicatorArc: { fill: "#6A6A6A50" },
137
- pointer: {
138
- stroke: "#6A6A6A",
139
- useRatingColor: !0,
140
- circle: {
141
- stroke: "#6A6A6A",
142
- color: "#6A6A6A"
143
- }
144
- }
145
- },
146
- legend: { show: !1 }
147
- } }
148
- },
149
- userConfig: j.value.skeletonConfig ?? {}
150
- })), { loading: Lt, FINAL_DATASET: M, manualLoading: N } = he({
151
- ...Be(E),
152
- FINAL_CONFIG: j,
153
- prepareConfig: Vt,
154
- callback: () => {
155
- Promise.resolve().then(async () => {
156
- await Pe();
157
- });
158
- },
159
- skeletonDataset: E.config?.skeletonDataset ?? {
160
- value: 0,
161
- series: [{
162
- from: -1,
163
- to: 0,
164
- name: "_",
165
- color: "#A1A1A1"
166
- }, {
167
- from: 0,
168
- to: 1,
169
- name: "__",
170
- color: "#CACACA"
171
- }]
172
- },
173
- skeletonConfig: r({
174
- defaultConfig: j.value,
175
- userConfig: It.value
176
- })
177
- }), { userOptionsVisible: Rt, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = Ee({ config: j.value }), { svgRef: P } = De({ config: j.value.style.chart.title });
178
- w(() => E.config, (e) => {
179
- Lt.value || (j.value = Vt()), Rt.value = !j.value.userOptions.showOnChartHover, Qt(), Pt.value += 1;
180
- }, { deep: !0 }), w(() => E.dataset, (e) => {
181
- Qt(), e && Object.keys(e).length > 0 && (N.value = j.value?.loading ?? !1);
182
- }, {
183
- deep: !0,
184
- immediate: !1
185
- });
186
- function Vt() {
187
- let e = ve({
188
- userConfig: E.config,
189
- defaultConfig: St
190
- }), t = e.theme;
191
- if (!t) return e;
192
- if (!Ct.value(e)) return wt(e), e;
193
- let n = ve({
194
- userConfig: Ae[t] || E.config,
195
- defaultConfig: e
196
- }), r = ve({
197
- userConfig: E.config,
198
- defaultConfig: n
199
- });
200
- return {
201
- ...r,
202
- customPalette: r.customPalette.length ? r.customPalette : i[t] || te
203
- };
204
- }
205
- let { isPrinting: Ht, isImaging: Ut, generatePdf: Wt, generateImage: Gt } = me({
206
- elementId: `vue-ui-gauge_${D.value}`,
207
- fileName: j.value.style.chart.title.text || "vue-ui-gauge",
208
- options: j.value.userOptions.print
209
- }), Kt = u(() => j.value.userOptions.show && !j.value.style.chart.title.text), qt = u(() => de(j.value.customPalette)), F = u(() => {
210
- if (oe(M.value.series || {})) return {
211
- value: 0,
212
- series: [{
213
- from: 0,
214
- to: 0
215
- }]
216
- };
217
- let e = [];
218
- (M.value.series || []).forEach((t) => {
219
- e.push(t.from || 1e-7), e.push(t.to || 1e-7);
220
- });
221
- let t = Math.max(...e);
222
- return {
223
- ...M.value,
224
- series: (M.value.series || []).map((e, n) => ({
225
- ...e,
226
- color: ne(e.color) || qt.value[n] || te[n],
227
- value: ((e.to || 0) - (e.from || 0)) / t * 100
228
- }))
229
- };
230
- }), I = y(512), L = y({
231
- height: 358.4,
232
- width: I.value,
233
- top: 0,
234
- bottom: 358.4,
235
- centerX: 179.2,
236
- centerY: I.value / 2,
237
- labelFontSize: 18,
238
- legendFontSize: j.value.style.chart.legend.fontSize,
239
- pointerRadius: j.value.style.chart.layout.pointer.circle.radius,
240
- trackSize: j.value.style.chart.layout.track.size,
241
- pointerSize: j.value.style.chart.layout.pointer.size,
242
- pointerStrokeWidth: j.value.style.chart.layout.pointer.strokeWidth,
243
- markerOffset: j.value.style.chart.layout.markers.offsetY + 3,
244
- segmentFontSize: j.value.style.chart.layout.segmentNames.fontSize
245
- }), R = y(0), z = y(0), B = u(() => j.value.style.chart.animation.use && !Tt.value), V = y(B.value ? Math.min(...M.value.series.map((e) => e.from)) : M.value.value), H = null;
246
- function Jt() {
247
- H !== null && (cancelAnimationFrame(H), H = null);
248
- }
249
- w(B, (e) => {
250
- e || (Jt(), V.value = M.value.value);
251
- }), w(() => M.value.value, () => {
252
- $t(M.value.value);
253
- });
254
- let U = u(() => {
255
- let e = L.value.width / 2, t = J.value.base, n = Math.PI * ((V.value + 0 - z.value) / (R.value - z.value)) + Math.PI;
256
- return {
257
- x1: e,
258
- y1: t,
259
- x2: e + J.value.pointerSize * L.value.pointerSize * .9 * Math.cos(n),
260
- y2: t + J.value.pointerSize * L.value.pointerSize * .9 * Math.sin(n)
261
- };
262
- }), Yt = u(() => {
263
- let e = L.value.width / 2, t = J.value.base, n = Math.PI * ((V.value + 0 - z.value) / (R.value - z.value)) + Math.PI, r = e + J.value.pointerSize * L.value.pointerSize * .9 * Math.cos(n), i = t + J.value.pointerSize * L.value.pointerSize * .9 * Math.sin(n), a = L.value.pointerRadius, ee = e + a * Math.cos(n + Math.PI / 2), te = t + a * Math.sin(n + Math.PI / 2), ne = e + a * Math.cos(n - Math.PI / 2), o = t + a * Math.sin(n - Math.PI / 2);
264
- return isNaN(r) ? null : `M ${r},${i} ${ee},${te} ${ne},${o} Z`;
265
- }), Xt = u(() => {
266
- for (let e = 0; e < F.value.series.length; e += 1) {
267
- let { color: t, from: n, to: r } = F.value.series[e];
268
- if (V.value >= n && V.value <= r) return t;
269
- }
270
- return "#2D353C";
271
- }), W = ze(null), G = ze(null), K = u({
272
- get: () => L.value.segmentFontSize,
273
- set: (e) => e
274
- }), { autoSizeLabels: Zt } = ke({
275
- svgRef: P,
276
- fontSize: L.value.segmentFontSize,
277
- minFontSize: j.value.style.chart.layout.segmentNames.minFontSize,
278
- sizeRef: K,
279
- labelClass: ".vue-ui-gauge-label-flat"
280
- }), q = u(() => !!j.value.debug);
281
- function Qt() {
282
- let e = !1;
283
- if (oe(E.dataset) ? (c({
284
- componentName: "VueUiGauge",
285
- type: "dataset",
286
- debug: q.value
287
- }), N.value = !0, e = !0) : (se({
288
- datasetObject: E.dataset,
289
- requiredAttributes: ["value", "series"]
290
- }).forEach((t) => {
291
- c({
292
- componentName: "VueUiGauge",
293
- type: "datasetAttribute",
294
- property: t,
295
- debug: q.value
296
- }), N.value = !0, e = !0;
297
- }), Object.hasOwn(E.dataset, "series") && (E.dataset.series.length ? E.dataset.series.forEach((t, n) => {
298
- se({
299
- datasetObject: t,
300
- requiredAttributes: ["from", "to"]
301
- }).forEach((t) => {
302
- c({
303
- componentName: "VueUiGauge",
304
- type: "datasetSerieAttribute",
305
- property: t,
306
- index: n,
307
- debug: q.value
308
- }), N.value = !0, e = !0;
309
- });
310
- }) : (c({
311
- componentName: "VueUiGauge",
312
- type: "datasetAttributeEmpty",
313
- property: "series",
314
- debug: q.value
315
- }), N.value = !0, e = !0))), N.value = e, $t(M.value.value || 0), j.value.responsive) {
316
- let e = Ce(() => {
317
- let { width: e, height: t } = we({
318
- chart: O.value,
319
- title: j.value.style.chart.title.text ? At.value : null,
320
- legend: jt.value,
321
- source: Mt.value,
322
- noTitle: Nt.value
323
- });
324
- t -= 12, requestAnimationFrame(() => {
325
- L.value.width = e, L.value.height = t, L.value.centerX = e / 2, L.value.centerY = I.value / 2 / 358.4 * t, L.value.bottom = t, L.value.labelFontSize = 18 / I.value * Math.min(t, e) < 10 ? 10 : 18 / I.value * Math.min(t, e), L.value.legendFontSize = j.value.style.chart.legend.fontSize / I.value * Math.min(t, e) < 14 ? 14 : j.value.style.chart.legend.fontSize / I.value * Math.min(t, e), L.value.pointerRadius = j.value.style.chart.layout.pointer.circle.radius / I.value * Math.min(t, e), L.value.trackSize = j.value.style.chart.layout.track.size / I.value * Math.min(t, e), L.value.pointerStrokeWidth = le({
326
- relator: Math.min(e, t),
327
- adjuster: I.value,
328
- source: j.value.style.chart.layout.pointer.strokeWidth,
329
- threshold: 2,
330
- fallback: 2
331
- }), L.value.markerOffset = le({
332
- relator: Math.max(e, t),
333
- adjuster: I.value,
334
- source: j.value.style.chart.layout.markers.offsetY + 3,
335
- threshold: 2,
336
- fallback: 2
337
- }), L.value.segmentFontSize = le({
338
- relator: Math.min(e, t),
339
- adjuster: I.value,
340
- source: j.value.style.chart.layout.segmentNames.fontSize,
341
- threshold: 8,
342
- fallback: 8
343
- });
344
- }), Zt();
345
- });
346
- W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(e), G.value = O.value.parentNode, W.value.observe(G.value);
347
- }
348
- Zt();
349
- }
350
- Re(() => {
351
- Qt();
352
- }), Le(() => {
353
- Jt(), W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect());
354
- });
355
- function $t(e) {
356
- let t = [];
357
- if ((F.value.series || []).forEach((e) => {
358
- t.push(e.from || 0), t.push(e.to || 0);
359
- }), R.value = Math.max(...t), z.value = Math.min(...t), Jt(), !B.value) {
360
- V.value = e;
361
- return;
362
- }
363
- let n = j.value.style.chart.animation.speed, r = Math.abs(e - V.value) / (n * 60);
364
- function i() {
365
- if (!B.value) {
366
- V.value = e, H = null;
367
- return;
368
- }
369
- V.value < e ? V.value = Math.min(V.value + r, e) : V.value > e && (V.value = Math.max(V.value - r, e)), H = V.value === e ? null : requestAnimationFrame(i);
370
- }
371
- i();
372
- }
373
- let J = u(() => {
374
- let e = j.value.responsive ? Math.min(L.value.width, L.value.height) : L.value.width, t = 2.5 / j.value.style.chart.layout.radiusRatio;
375
- return {
376
- arcs: e / t,
377
- gradients: e / (t * 1.1),
378
- base: j.value.responsive ? L.value.height / 1.618 : L.value.height * .7,
379
- ratingBase: j.value.responsive ? L.value.height / 2 + L.value.height / 4 : L.value.height * .9,
380
- pointerSize: j.value.responsive ? Math.min(L.value.width, L.value.height) / 3 : L.value.width / 3.2
381
- };
382
- }), Y = u(() => s({ series: F.value.series }, L.value.width / 2, J.value.base, J.value.arcs, J.value.arcs, 1, 1, 1, 180, 109.9495, 40 * L.value.trackSize)), en = u(() => s({ series: F.value.series }, L.value.width / 2, J.value.base, J.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, J.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * L.value.trackSize)), X = u(() => Y.value.map((e) => J.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), tn = u(() => {
383
- let { x: e, y: t } = a({
384
- initX: Y.value[0].firstSeparator.x,
385
- initY: Y.value[0].firstSeparator.y,
386
- centerX: U.value.x1,
387
- centerY: U.value.y1,
388
- offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
389
- }), { x: n, y: r } = a({
390
- initX: Y.value[0].startX,
391
- initY: Y.value[0].startY,
392
- centerX: U.value.x1,
393
- centerY: U.value.y1,
394
- offset: j.value.style.chart.layout.segmentSeparators.offsetOut
395
- });
396
- return {
397
- x1: e,
398
- y1: t,
399
- x2: n,
400
- y2: r
401
- };
402
- }), nn = u(() => Y.value.map((e) => {
403
- let { x: t, y: n } = a({
404
- initX: e.separator.x,
405
- initY: e.separator.y,
406
- centerX: U.value.x1,
407
- centerY: U.value.y1,
408
- offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
409
- }), { x: r, y: i } = a({
410
- initX: e.endX,
411
- initY: e.endY,
412
- centerX: U.value.x1,
413
- centerY: U.value.y1,
414
- offset: j.value.style.chart.layout.segmentSeparators.offsetOut
415
- });
416
- return {
417
- x1: t,
418
- y1: n,
419
- x2: r,
420
- y2: i
421
- };
422
- }));
423
- function rn(e) {
424
- if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
425
- let t = 0;
426
- return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
427
- }
428
- let an = u(() => rn(Y.value.map((e) => e.proportion * 100))), on = u(() => s({ series: F.value.series }, L.value.width / 2, J.value.base, J.value.gradients, J.value.gradients, .95, 1, 1, 180, 110.02, 2 * L.value.trackSize)), sn = u(() => {
429
- let e = z.value >= 0 ? -z.value : Math.abs(z.value);
430
- return ee({
431
- radius: j.value.style.chart.layout.indicatorArc.radius * L.value.trackSize,
432
- centerX: L.value.width / 2,
433
- centerY: J.value.base,
434
- percentage: re((V.value + e) / (R.value + e))
435
- });
436
- }), Z = y(!1);
437
- function cn(e) {
438
- Z.value = e, kt.value += 1;
439
- }
440
- let Q = y(!1);
441
- function $() {
442
- Q.value = !Q.value;
443
- }
444
- async function ln({ scale: e = 2 } = {}) {
445
- if (!O.value) return;
446
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
447
- domElement: O.value,
448
- base64: !0,
449
- img: !0,
450
- scale: e
451
- });
452
- return {
453
- imageUri: i,
454
- base64: a,
455
- title: j.value.style.chart.title.text,
456
- width: t,
457
- height: n,
458
- aspectRatio: r
459
- };
460
- }
461
- let un = u(() => j.value.style.chart.backgroundColor), { exportSvg: dn, getSvg: fn } = _e({
462
- svg: P,
463
- title: u(() => j.value.style.chart.title),
464
- backgroundColor: un
465
- });
466
- async function pn({ isCb: e }) {
467
- A.value = !0, await Pe();
468
- try {
469
- if (e) {
470
- let { blob: e, url: t, text: n, dataUrl: r } = await fn();
471
- await Promise.resolve(j.value.userOptions.callbacks.svg({
472
- blob: e,
473
- url: t,
474
- text: n,
475
- dataUrl: r
476
- }));
477
- } else await Promise.resolve(dn());
478
- } finally {
479
- A.value = !1;
480
- }
481
- }
482
- function mn(e) {
483
- if (e?.stage === "start") {
484
- k.value = !0;
485
- return;
486
- }
487
- if (e?.stage === "end") {
488
- k.value = !1;
489
- return;
490
- }
491
- Gt();
492
- }
493
- async function hn() {
494
- if (Et("copyAlt", {
495
- config: j.value,
496
- dataset: F.value
497
- }), !j.value.userOptions.callbacks.altCopy) {
498
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
499
- return;
500
- }
501
- await Promise.resolve(j.value.userOptions.callbacks.altCopy({
502
- config: j.value,
503
- dataset: F.value
504
- }));
505
- }
506
- return Se({
507
- getImage: ln,
508
- generatePdf: Wt,
509
- generateImage: Gt,
510
- generateSvg: pn,
511
- toggleAnnotator: $,
512
- toggleFullscreen: cn,
513
- copyAlt: hn
514
- }), (e, r) => (v(), p("div", {
515
- class: Fe(`vue-data-ui-component vue-ui-gauge ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
516
- ref_key: "gaugeChart",
517
- ref: O,
518
- id: `vue-ui-gauge_${D.value}`,
519
- style: Ie(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
520
- onMouseenter: r[0] ||= () => C(zt)(!0),
521
- onMouseleave: r[1] ||= () => C(zt)(!1)
522
- }, [
523
- j.value.userOptions.buttons.annotator ? (v(), d(C(yt), {
524
- key: 0,
525
- svgRef: C(P),
526
- backgroundColor: j.value.style.chart.backgroundColor,
527
- color: j.value.style.chart.color,
528
- active: Q.value,
529
- isCursorPointer: Ft.value,
530
- onClose: $
531
- }, {
532
- "annotator-action-close": T(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
533
- "annotator-action-color": T(({ color: t }) => [x(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
534
- "annotator-action-draw": T(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
535
- "annotator-action-undo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
536
- "annotator-action-redo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
537
- "annotator-action-delete": T(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
538
- _: 3
539
- }, 8, [
540
- "svgRef",
541
- "backgroundColor",
542
- "color",
543
- "active",
544
- "isCursorPointer"
545
- ])) : f("", !0),
546
- Kt.value ? (v(), p("div", {
547
- key: 1,
548
- ref_key: "noTitle",
549
- ref: Nt,
550
- class: "vue-data-ui-no-title-space",
551
- style: "height:36px; width: 100%;background:transparent"
552
- }, null, 512)) : f("", !0),
553
- j.value.style.chart.title.text ? (v(), p("div", {
554
- key: 2,
555
- ref_key: "chartTitle",
556
- ref: At,
557
- style: "width:100%;background:transparent;padding-bottom:12px"
558
- }, [(v(), d(xe, {
559
- key: `title_${Pt.value}`,
560
- config: {
561
- title: {
562
- cy: "gauge-div-title",
563
- ...j.value.style.chart.title
564
- },
565
- subtitle: {
566
- cy: "gauge-div-subtitle",
567
- ...j.value.style.chart.title.subtitle
568
- }
569
- }
570
- }, {
571
- default: T(() => [j.value.translations.base && C(M).base ? (v(), p("span", Ue, S(j.value.translations.base) + ": " + S(C(M).base), 1)) : f("", !0)]),
572
- _: 1
573
- }, 8, ["config"]))], 512)) : f("", !0),
574
- j.value.userOptions.show && Dt.value && (C(Bt) || C(Rt)) ? (v(), d(C(bt), {
575
- ref_key: "details",
576
- ref: Ot,
577
- key: `user_options_${kt.value}`,
578
- backgroundColor: j.value.style.chart.backgroundColor,
579
- color: j.value.style.chart.color,
580
- isImaging: C(Ut),
581
- isPrinting: C(Ht),
582
- uid: D.value,
583
- hasXls: !1,
584
- hasPdf: j.value.userOptions.buttons.pdf,
585
- hasImg: j.value.userOptions.buttons.img,
586
- hasSvg: j.value.userOptions.buttons.svg,
587
- hasFullscreen: j.value.userOptions.buttons.fullscreen,
588
- hasAltCopy: j.value.userOptions.buttons.altCopy,
589
- isFullscreen: Z.value,
590
- titles: { ...j.value.userOptions.buttonTitles },
591
- chartElement: O.value,
592
- callbacks: j.value.userOptions.callbacks,
593
- printScale: j.value.userOptions.print.scale,
594
- position: j.value.userOptions.position,
595
- hasAnnotator: j.value.userOptions.buttons.annotator,
596
- isAnnotation: Q.value,
597
- isCursorPointer: Ft.value,
598
- onToggleFullscreen: cn,
599
- onGeneratePdf: C(Wt),
600
- onGenerateImage: mn,
601
- onGenerateSvg: pn,
602
- onToggleAnnotator: $,
603
- onCopyAlt: hn,
604
- style: Ie({ visibility: C(Bt) ? C(Rt) ? "visible" : "hidden" : "visible" })
605
- }, je({ _: 2 }, [
606
- e.$slots.menuIcon ? {
607
- name: "menuIcon",
608
- fn: T(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
609
- isOpen: t,
610
- color: n
611
- })), void 0, !0)]),
612
- key: "0"
613
- } : void 0,
614
- e.$slots.optionPdf ? {
615
- name: "optionPdf",
616
- fn: T(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
617
- key: "1"
618
- } : void 0,
619
- e.$slots.optionImg ? {
620
- name: "optionImg",
621
- fn: T(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
622
- key: "2"
623
- } : void 0,
624
- e.$slots.optionSvg ? {
625
- name: "optionSvg",
626
- fn: T(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
627
- key: "3"
628
- } : void 0,
629
- e.$slots.optionFullscreen ? {
630
- name: "optionFullscreen",
631
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
632
- toggleFullscreen: t,
633
- isFullscreen: n
634
- })), void 0, !0)]),
635
- key: "4"
636
- } : void 0,
637
- e.$slots.optionAnnotator ? {
638
- name: "optionAnnotator",
639
- fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
640
- toggleAnnotator: t,
641
- isAnnotator: n
642
- })), void 0, !0)]),
643
- key: "5"
644
- } : void 0,
645
- e.$slots.optionAltCopy ? {
646
- name: "optionAltCopy",
647
- fn: T(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
648
- key: "6"
649
- } : void 0,
650
- e.$slots["custom-menu-before"] ? {
651
- name: "custom-menu-before",
652
- fn: T(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
653
- key: "7"
654
- } : void 0,
655
- e.$slots["custom-menu-after"] ? {
656
- name: "custom-menu-after",
657
- fn: T(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
658
- key: "8"
659
- } : void 0
660
- ]), 1032, [
661
- "backgroundColor",
662
- "color",
663
- "isImaging",
664
- "isPrinting",
665
- "uid",
666
- "hasPdf",
667
- "hasImg",
668
- "hasSvg",
669
- "hasFullscreen",
670
- "hasAltCopy",
671
- "isFullscreen",
672
- "titles",
673
- "chartElement",
674
- "callbacks",
675
- "printScale",
676
- "position",
677
- "hasAnnotator",
678
- "isAnnotation",
679
- "isCursorPointer",
680
- "onGeneratePdf",
681
- "style"
682
- ])) : f("", !0),
683
- (v(), p("svg", {
684
- ref_key: "svgRef",
685
- ref: P,
686
- xmlns: C(ue),
687
- class: Fe({
688
- "vue-data-ui-fullscreen--on": Z.value,
689
- "vue-data-ui-fulscreen--off": !Z.value
690
- }),
691
- viewBox: `0 0 ${L.value.width <= 0 ? 10 : L.value.width} ${L.value.height <= 0 ? 10 : L.value.height}`,
692
- style: Ie(`max-width:100%;overflow:hidden !important;background:transparent;color:${j.value.style.chart.color}`)
693
- }, [
694
- Me(C(xt)),
695
- e.$slots["chart-background"] ? (v(), p("foreignObject", {
696
- key: 0,
697
- x: 0,
698
- y: 0,
699
- width: L.value.width <= 0 ? 10 : L.value.width,
700
- height: L.value.height <= 0 ? 10 : L.value.height,
701
- style: { pointerEvents: "none" }
702
- }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : f("", !0),
703
- m("defs", null, [Me(Te, {
704
- t: "radial",
705
- id: `gradient_${D.value}`,
706
- cx: "50%",
707
- cy: "50%",
708
- r: "50%",
709
- fx: "50%",
710
- fy: "50%",
711
- stops: [
712
- [
713
- "0%",
714
- C(t)("#FFFFFF", 1),
715
- 1
716
- ],
717
- [
718
- "80%",
719
- C(t)("#FFFFFF", j.value.style.chart.layout.track.gradientIntensity),
720
- 1
721
- ],
722
- [
723
- "100%",
724
- C(t)("#FFFFFF", 1),
725
- 1
726
- ]
727
- ]
728
- }, null, 8, ["id", "stops"])]),
729
- m("defs", null, [m("filter", {
730
- id: `blur_${D.value}`,
731
- x: "-50%",
732
- y: "-50%",
733
- width: "200%",
734
- height: "200%"
735
- }, [m("feGaussianBlur", {
736
- in: "SourceGraphic",
737
- stdDeviation: 100 / j.value.style.chart.layout.track.gradientIntensity
738
- }, null, 8, qe)], 8, Ke)]),
739
- e.$slots.pattern ? (v(), p("g", Je, [(v(!0), p(l, null, b(Y.value, (t, n) => (v(), p("defs", null, [x(e.$slots, "pattern", g({ ref_for: !0 }, {
740
- seriesIndex: n,
741
- patternId: `pattern_${D.value}_${n}`
742
- }), void 0, !0)]))), 256))])) : f("", !0),
743
- (v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("path", {
744
- key: `arc_${t}`,
745
- d: e.arcSlice,
746
- fill: e.color,
747
- stroke: j.value.style.chart.backgroundColor,
748
- "stroke-linecap": "round"
749
- }, null, 8, Ye))), 128)),
750
- e.$slots.pattern ? (v(!0), p(l, { key: 2 }, b(Y.value, (e, t) => (v(), p("path", {
751
- key: `arc_${t}`,
752
- d: e.arcSlice,
753
- fill: `url(#pattern_${D.value}_${t})`,
754
- stroke: j.value.style.chart.backgroundColor,
755
- "stroke-linecap": "round"
756
- }, null, 8, Xe))), 128)) : f("", !0),
757
- j.value.style.chart.layout.indicatorArc.show ? (v(), p("path", {
758
- key: 3,
759
- d: sn.value,
760
- fill: j.value.style.chart.layout.indicatorArc.fill
761
- }, null, 8, Ze)) : f("", !0),
762
- j.value.style.chart.layout.segmentNames.show && j.value.style.chart.layout.segmentNames.curved ? (v(), p(l, { key: 4 }, [(v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("path", {
763
- id: `curve_${D.value}_${t}`,
764
- d: `M ${U.value.x1},${U.value.y1} m -${X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 ${2 * X.value[t]},0 a ${X.value[t]},${X.value[t]} 0 1,1 -${2 * X.value[t]},0`,
765
- fill: "transparent"
766
- }, null, 8, Qe))), 256)), (v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("text", {
767
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
768
- "font-size": K.value,
769
- "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
770
- "text-anchor": "middle"
771
- }, [m("textPath", {
772
- href: `#curve_${D.value}_${t}`,
773
- startOffset: an.value[t]
774
- }, S(e.name || ""), 9, et)], 8, $e))), 256))], 64)) : f("", !0),
775
- j.value.style.chart.layout.segmentNames.show && !j.value.style.chart.layout.segmentNames.curved ? (v(!0), p(l, { key: 5 }, b(en.value, (e, t) => (v(), p("text", {
776
- class: "vue-ui-gauge-label-flat",
777
- "text-anchor": C(ie)(e, !1, 12).anchor,
778
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
779
- "font-size": K.value,
780
- "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
781
- innerHTML: C(n)({
782
- content: String(e.name ?? ""),
783
- fontSize: K.value,
784
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
785
- x: e.center.endX,
786
- y: e.center.endY
787
- })
788
- }, null, 8, tt))), 256)) : f("", !0),
789
- j.value.style.chart.layout.track.useGradient ? (v(!0), p(l, { key: 6 }, b(on.value, (e, t) => (v(), p("path", {
790
- key: `arc_${t}`,
791
- d: e.arcSlice,
792
- fill: "#FFFFFF",
793
- stroke: "none",
794
- "stroke-linecap": "round",
795
- filter: `url(#blur_${D.value})`
796
- }, null, 8, nt))), 128)) : f("", !0),
797
- j.value.style.chart.layout.segmentSeparators.show ? (v(), p(l, { key: 7 }, [
798
- m("line", g(tn.value, {
799
- stroke: j.value.style.chart.backgroundColor,
800
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
801
- "stroke-linecap": "round"
802
- }), null, 16, rt),
803
- m("line", g(tn.value, {
804
- stroke: j.value.style.chart.layout.segmentSeparators.stroke,
805
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
806
- "stroke-linecap": "round"
807
- }), null, 16, it),
808
- (v(!0), p(l, null, b(nn.value, (e) => (v(), p("line", g({ ref_for: !0 }, e, {
809
- stroke: j.value.style.chart.backgroundColor,
810
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
811
- "stroke-linecap": "round"
812
- }), null, 16, at))), 256)),
813
- (v(!0), p(l, null, b(nn.value, (e) => (v(), p("line", g({ ref_for: !0 }, e, {
814
- stroke: j.value.style.chart.layout.segmentSeparators.stroke,
815
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
816
- "stroke-linecap": "round"
817
- }), null, 16, ot))), 256))
818
- ], 64)) : f("", !0),
819
- j.value.style.chart.layout.markers.show ? (v(), p("g", st, [(v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("text", {
820
- x: C(a)({
821
- centerX: U.value.x1,
822
- centerY: J.value.base,
823
- initX: e.center.startX,
824
- initY: e.center.startY,
825
- offset: L.value.markerOffset
826
- }).x,
827
- y: C(a)({
828
- centerX: U.value.x1,
829
- centerY: J.value.base,
830
- initX: e.center.startX,
831
- initY: e.center.startY,
832
- offset: L.value.markerOffset
833
- }).y,
834
- "text-anchor": e.center.startX < U.value.x1 - 5 ? "end" : e.center.startX > U.value.x1 + 5 ? "start" : "middle",
835
- "font-size": L.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
836
- "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
837
- fill: j.value.style.chart.layout.markers.color
838
- }, S(C(ae)(j.value.style.chart.layout.markers.formatter, e.from, C(o)({
839
- p: j.value.style.chart.layout.markers.prefix,
840
- v: e.from,
841
- s: j.value.style.chart.layout.markers.suffix,
842
- r: j.value.style.chart.layout.markers.roundingValue
843
- }))), 9, ct))), 256))])) : f("", !0),
844
- j.value.style.chart.layout.markers.show ? (v(), p("text", {
845
- key: 9,
846
- x: C(a)({
847
- centerX: L.value.width / 2,
848
- centerY: J.value.base,
849
- initX: Y.value.at(-1).endX,
850
- initY: Y.value.at(-1).endY,
851
- offset: L.value.markerOffset
852
- }).x,
853
- y: C(a)({
854
- centerX: L.value.width / 2,
855
- centerY: J.value.base,
856
- initX: Y.value.at(-1).endX,
857
- initY: Y.value.at(-1).endY,
858
- offset: L.value.markerOffset
859
- }).y,
860
- "text-anchor": "start",
861
- "font-size": L.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
862
- "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
863
- fill: j.value.style.chart.layout.markers.color
864
- }, S(C(ae)(j.value.style.chart.layout.markers.formatter, R.value, C(o)({
865
- p: j.value.style.chart.layout.markers.prefix,
866
- v: R.value,
867
- s: j.value.style.chart.layout.markers.suffix,
868
- r: j.value.style.chart.layout.markers.roundingValue
869
- }))), 9, lt)) : f("", !0),
870
- j.value.style.chart.layout.pointer.show ? (v(), p(l, { key: 10 }, [j.value.style.chart.layout.pointer.type === "rounded" ? (v(), p("g", ut, [
871
- isNaN(U.value.x2) ? f("", !0) : (v(), p("line", {
872
- key: 0,
873
- x1: U.value.x1,
874
- y1: U.value.y1,
875
- x2: U.value.x2,
876
- y2: U.value.y2,
877
- stroke: j.value.style.chart.layout.pointer.stroke,
878
- "stroke-width": L.value.pointerStrokeWidth,
879
- "stroke-linecap": "round"
880
- }, null, 8, dt)),
881
- isNaN(U.value.x2) ? f("", !0) : (v(), p("line", {
882
- key: 1,
883
- x1: U.value.x1,
884
- y1: U.value.y1,
885
- x2: U.value.x2,
886
- y2: U.value.y2,
887
- stroke: j.value.style.chart.layout.pointer.useRatingColor ? Xt.value : j.value.style.chart.layout.pointer.color,
888
- "stroke-linecap": "round",
889
- "stroke-width": L.value.pointerStrokeWidth * .7
890
- }, null, 8, ft)),
891
- !isNaN(U.value.x2) && j.value.style.chart.layout.track.useGradient ? (v(), p("line", {
892
- key: 2,
893
- x1: U.value.x1,
894
- y1: U.value.y1,
895
- x2: U.value.x2,
896
- y2: U.value.y2,
897
- stroke: "white",
898
- "stroke-linecap": "round",
899
- "stroke-width": L.value.pointerStrokeWidth * .3,
900
- filter: `url(#blur_${D.value})`
901
- }, null, 8, pt)) : f("", !0)
902
- ])) : (v(), p("g", mt, [Yt.value ? (v(), p("path", {
903
- key: 0,
904
- d: Yt.value,
905
- fill: j.value.style.chart.layout.pointer.useRatingColor ? Xt.value : j.value.style.chart.layout.pointer.color,
906
- stroke: j.value.style.chart.layout.pointer.stroke,
907
- "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
908
- "stroke-linejoin": "round"
909
- }, null, 8, ht)) : f("", !0)])), m("circle", {
910
- cx: L.value.width / 2,
911
- cy: J.value.base,
912
- fill: j.value.style.chart.layout.pointer.circle.color,
913
- r: L.value.pointerRadius <= 0 ? 1e-4 : L.value.pointerRadius,
914
- "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
915
- stroke: j.value.style.chart.layout.pointer.circle.stroke
916
- }, null, 8, gt)], 64)) : f("", !0),
917
- j.value.style.chart.legend.show ? (v(), p("text", {
918
- key: 11,
919
- x: L.value.width / 2,
920
- y: J.value.ratingBase,
921
- "text-anchor": "middle",
922
- "font-size": L.value.legendFontSize,
923
- "font-weight": "bold",
924
- fill: j.value.style.chart.legend.useRatingColor ? Xt.value : j.value.style.chart.legend.color
925
- }, S(C(ae)(j.value.style.chart.legend.formatter, V.value, C(o)({
926
- p: j.value.style.chart.legend.prefix + (j.value.style.chart.legend.showPlusSymbol && V.value > 0 ? "+" : ""),
927
- v: V.value,
928
- s: j.value.style.chart.legend.suffix,
929
- r: j.value.style.chart.legend.roundingValue
930
- }))), 9, _t)) : f("", !0),
931
- x(e.$slots, "svg", { svg: {
932
- ...L.value,
933
- isPrintingImg: C(Ht) || C(Ut) || k.value,
934
- isPrintingSvg: A.value
935
- } }, void 0, !0)
936
- ], 14, We)),
937
- e.$slots.watermark ? (v(), p("div", vt, [x(e.$slots, "watermark", _(h({ isPrinting: C(Ht) || C(Ut) || k.value || A.value })), void 0, !0)])) : f("", !0),
938
- m("div", {
939
- ref_key: "chartLegend",
940
- ref: jt
941
- }, [x(e.$slots, "legend", { legend: F.value }, void 0, !0)], 512),
942
- e.$slots.source ? (v(), p("div", {
943
- key: 5,
944
- ref_key: "source",
945
- ref: Mt,
946
- dir: "auto"
947
- }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
948
- x(e.$slots, "skeleton", {}, () => [C(Lt) ? (v(), d(ge, { key: 0 })) : f("", !0)], !0)
949
- ], 46, He));
950
- }
951
- }, [["__scopeId", "data-v-ac56d34e"]]);
952
- //#endregion
953
- export { Ve as n, yt as t };