vue-data-ui 3.22.8 → 3.22.10

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 (209) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
  2. package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
  3. package/dist/BaseIcon-CDTIUIKV.js +483 -0
  4. package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
  5. package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
  6. package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
  7. package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
  8. package/dist/DefGrad-DVBqDjhO.js +48 -0
  9. package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
  11. package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
  12. package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
  13. package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
  14. package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
  15. package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
  16. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
  17. package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
  18. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
  19. package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.js} +2 -2
  20. package/dist/components/arrow.js +1 -1
  21. package/dist/components/vue-ui-3d-bar.js +1 -1
  22. package/dist/components/vue-ui-accordion.js +1 -1
  23. package/dist/components/vue-ui-age-pyramid.js +1 -1
  24. package/dist/components/vue-ui-annotator.js +1 -1
  25. package/dist/components/vue-ui-bullet.js +1 -1
  26. package/dist/components/vue-ui-bump.js +1 -1
  27. package/dist/components/vue-ui-candlestick.js +1 -1
  28. package/dist/components/vue-ui-carousel-table.js +1 -1
  29. package/dist/components/vue-ui-chestnut.js +1 -1
  30. package/dist/components/vue-ui-chord.js +1 -1
  31. package/dist/components/vue-ui-circle-pack.js +1 -1
  32. package/dist/components/vue-ui-cursor.js +1 -1
  33. package/dist/components/vue-ui-dag.js +1 -1
  34. package/dist/components/vue-ui-dashboard.js +1 -1
  35. package/dist/components/vue-ui-digits.js +1 -1
  36. package/dist/components/vue-ui-donut-evolution.js +1 -1
  37. package/dist/components/vue-ui-donut.js +1 -1
  38. package/dist/components/vue-ui-dumbbell.js +1 -1
  39. package/dist/components/vue-ui-flow.js +1 -1
  40. package/dist/components/vue-ui-funnel.js +1 -1
  41. package/dist/components/vue-ui-galaxy.js +1 -1
  42. package/dist/components/vue-ui-gauge.js +1 -1
  43. package/dist/components/vue-ui-geo.js +1 -1
  44. package/dist/components/vue-ui-gizmo.js +1 -1
  45. package/dist/components/vue-ui-heatmap.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/{dom-to-png-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
  90. package/dist/exposedLib-CZbtc2a6.js +25 -0
  91. package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
  94. package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
  96. package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.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/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
  103. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
  104. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
  105. package/dist/utils.js +26 -24
  106. package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
  107. package/dist/vue-data-ui.js +77 -77
  108. package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
  109. package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
  110. package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
  111. package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
  112. package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
  113. package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
  114. package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
  115. package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
  116. package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
  117. package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
  118. package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
  119. package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
  120. package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
  121. package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
  122. package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
  123. package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
  124. package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
  125. package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
  126. package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
  127. package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
  128. package/dist/vue-ui-funnel-DojI09FV.js +782 -0
  129. package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
  130. package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
  131. package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
  132. package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
  133. package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
  134. package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
  135. package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
  136. package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
  137. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
  138. package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
  139. package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
  140. package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
  141. package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
  142. package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
  143. package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
  144. package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
  145. package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
  146. package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
  147. package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
  148. package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
  149. package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
  150. package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
  151. package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
  152. package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
  153. package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
  154. package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
  155. package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
  156. package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
  157. package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
  158. package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
  159. package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
  160. package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
  161. package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
  162. package/dist/vue-ui-table-BAKkFXki.js +1338 -0
  163. package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
  164. package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
  165. package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
  166. package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
  167. package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
  168. package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
  169. package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
  170. package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
  171. package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
  172. package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
  173. package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
  174. package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
  175. package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
  176. package/package.json +1 -1
  177. package/dist/BaseIcon-C2qlyHc7.js +0 -502
  178. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  179. package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
  180. package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
  181. package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
  182. package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
  183. package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
  184. package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
  185. package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
  186. package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
  187. package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
  188. package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
  189. package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
  190. package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
  191. package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
  192. package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
  193. package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
  194. package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
  195. package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
  196. package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
  197. package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
  198. package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
  199. package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
  200. package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
  201. package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
  202. package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
  203. package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
  204. package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
  205. package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
  206. package/dist/vue-ui-table-Q3brrivC.js +0 -1338
  207. package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
  208. package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
  209. package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
@@ -1,920 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, At as n, Dt as r, E as i, G as a, Gt as o, J as s, Kt as ee, Mt as te, Rt as ne, S as re, U as ie, Wt as ae, b as oe, dt as se, i as c, kt as ce, t as le, u as ue, v as de } from "./lib-JqW18y5I.js";
3
- import { t as fe } from "./useConfig-DYM3f6EI.js";
4
- import { t as pe } from "./usePrinter-CqqHmnBI.js";
5
- import { n as me, t as he } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as ge } from "./useSvgExport-SVIsDot8.js";
7
- import { t as _e } from "./useNestedProp-DIuuzG1r.js";
8
- import { t as ve } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as ye } from "./img-DnP3eXuv.js";
10
- import { n as be } from "./Title-CcNiYzEo.js";
11
- import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { c as Se } from "./canvas-lib-BOP_HS11.js";
13
- import { t as Ce } from "./useResponsive-BfnK0KxU.js";
14
- import { t as we } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as Ee } from "./useAutoSizeLabelsInsideViewbox-BGnDfZdg.js";
17
- import { t as De } from "./vue_ui_gauge-Cf1RZc9q.js";
18
- import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Oe, createVNode as ke, defineAsyncComponent as Ae, guardReactiveProps as h, mergeProps as g, nextTick as je, normalizeClass as Me, normalizeProps as _, normalizeStyle as Ne, onBeforeUnmount as Pe, onMounted as Fe, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as Ie, toDisplayString as S, toRefs as Le, unref as C, watch as Re, withCtx as w } from "vue";
19
- //#region src/components/vue-ui-gauge.vue
20
- var ze = /* @__PURE__ */ e({ default: () => xt }), Be = ["id"], Ve = { key: 0 }, He = ["xmlns", "viewBox"], Ue = ["width", "height"], We = ["id"], Ge = ["stop-color"], Ke = ["stop-color"], qe = ["stop-color"], Je = ["id"], Ye = ["stdDeviation"], Xe = { key: 1 }, Ze = [
21
- "d",
22
- "fill",
23
- "stroke"
24
- ], Qe = [
25
- "d",
26
- "fill",
27
- "stroke"
28
- ], $e = ["d", "fill"], et = ["id", "d"], tt = [
29
- "fill",
30
- "font-size",
31
- "font-weight"
32
- ], nt = ["href", "startOffset"], rt = [
33
- "text-anchor",
34
- "fill",
35
- "font-size",
36
- "font-weight",
37
- "innerHTML"
38
- ], it = ["d", "filter"], at = ["stroke", "stroke-width"], ot = ["stroke", "stroke-width"], st = ["stroke", "stroke-width"], ct = ["stroke", "stroke-width"], lt = { key: 8 }, ut = [
39
- "x",
40
- "y",
41
- "text-anchor",
42
- "font-size",
43
- "font-weight",
44
- "fill"
45
- ], dt = [
46
- "x",
47
- "y",
48
- "font-size",
49
- "font-weight",
50
- "fill"
51
- ], ft = { key: 0 }, pt = [
52
- "x1",
53
- "y1",
54
- "x2",
55
- "y2",
56
- "stroke",
57
- "stroke-width"
58
- ], mt = [
59
- "x1",
60
- "y1",
61
- "x2",
62
- "y2",
63
- "stroke",
64
- "stroke-width"
65
- ], ht = [
66
- "x1",
67
- "y1",
68
- "x2",
69
- "y2",
70
- "stroke-width",
71
- "filter"
72
- ], gt = { key: 1 }, _t = [
73
- "d",
74
- "fill",
75
- "stroke",
76
- "stroke-width"
77
- ], vt = [
78
- "cx",
79
- "cy",
80
- "fill",
81
- "r",
82
- "stroke-width",
83
- "stroke"
84
- ], yt = [
85
- "x",
86
- "y",
87
- "font-size",
88
- "fill"
89
- ], bt = {
90
- key: 4,
91
- class: "vue-data-ui-watermark"
92
- }, xt = /*#__PURE__*/ xe({
93
- __name: "vue-ui-gauge",
94
- props: {
95
- config: {
96
- type: Object,
97
- default() {
98
- return {};
99
- }
100
- },
101
- dataset: {
102
- type: Object,
103
- default() {
104
- return {};
105
- }
106
- }
107
- },
108
- emits: ["copyAlt"],
109
- setup(e, { expose: xe, emit: ze }) {
110
- let xt = Ae(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), St = Ae(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), Ct = Ae(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), { vue_ui_gauge: wt } = fe(), { isThemeValid: Tt, warnInvalidTheme: Et } = ve(), T = e, Dt = ze, Ot = u(() => !!T.dataset && Object.keys(T.dataset).length > 0 && T.dataset.series && T.dataset.series.length), E = y(a()), kt = y(null), At = y(0), D = y(null), jt = y(null), Mt = y(null), Nt = y(null), Pt = y(null), Ft = y(0), O = y(!1), k = y(!1), A = y(F()), It = u(() => A.value.userOptions.useCursorPointer), Lt = u(() => ee({
111
- defaultConfig: {
112
- userOptions: { show: !1 },
113
- style: { chart: {
114
- backgroundColor: "#99999930",
115
- animation: { use: !1 },
116
- layout: {
117
- markers: { show: !1 },
118
- segmentSeparators: { stroke: "#6A6A6A" },
119
- segmentNames: { show: !1 },
120
- indicatorArc: { fill: "#6A6A6A50" },
121
- pointer: {
122
- stroke: "#6A6A6A",
123
- useRatingColor: !0,
124
- circle: {
125
- stroke: "#6A6A6A",
126
- color: "#6A6A6A"
127
- }
128
- }
129
- },
130
- legend: { show: !1 }
131
- } }
132
- },
133
- userConfig: A.value.skeletonConfig ?? {}
134
- })), { loading: Rt, FINAL_DATASET: j, manualLoading: M } = me({
135
- ...Le(T),
136
- FINAL_CONFIG: A,
137
- prepareConfig: F,
138
- callback: () => {
139
- Promise.resolve().then(async () => {
140
- await je();
141
- });
142
- },
143
- skeletonDataset: T.config?.skeletonDataset ?? {
144
- value: 0,
145
- series: [{
146
- from: -1,
147
- to: 0,
148
- name: "_",
149
- color: "#A1A1A1"
150
- }, {
151
- from: 0,
152
- to: 1,
153
- name: "__",
154
- color: "#CACACA"
155
- }]
156
- },
157
- skeletonConfig: ee({
158
- defaultConfig: A.value,
159
- userConfig: Lt.value
160
- })
161
- }), { userOptionsVisible: N, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = we({ config: A.value }), { svgRef: P } = Te({ config: A.value.style.chart.title });
162
- Re(() => T.config, (e) => {
163
- Rt.value || (A.value = F()), N.value = !A.value.userOptions.showOnChartHover, Yt(), Ft.value += 1;
164
- }, { deep: !0 }), Re(() => T.dataset, (e) => {
165
- Yt(), e && Object.keys(e).length > 0 && (M.value = A.value?.loading ?? !1);
166
- }, {
167
- deep: !0,
168
- immediate: !1
169
- });
170
- function F() {
171
- let e = _e({
172
- userConfig: T.config,
173
- defaultConfig: wt
174
- }), t = e.theme;
175
- if (!t) return e;
176
- if (!Tt.value(e)) return Et(e), e;
177
- let n = _e({
178
- userConfig: De[t] || T.config,
179
- defaultConfig: e
180
- }), r = _e({
181
- userConfig: T.config,
182
- defaultConfig: n
183
- });
184
- return {
185
- ...r,
186
- customPalette: r.customPalette.length ? r.customPalette : ae[t] || te
187
- };
188
- }
189
- let { isPrinting: I, isImaging: Vt, generatePdf: Ht, generateImage: Ut } = pe({
190
- elementId: `vue-ui-gauge_${E.value}`,
191
- fileName: A.value.style.chart.title.text || "vue-ui-gauge",
192
- options: A.value.userOptions.print
193
- }), Wt = u(() => A.value.userOptions.show && !A.value.style.chart.title.text), Gt = u(() => re(A.value.customPalette)), L = u(() => {
194
- if (ce(j.value.series || {})) return {
195
- value: 0,
196
- series: [{
197
- from: 0,
198
- to: 0
199
- }]
200
- };
201
- let e = [];
202
- (j.value.series || []).forEach((t) => {
203
- e.push(t.from || 1e-7), e.push(t.to || 1e-7);
204
- });
205
- let t = Math.max(...e);
206
- return {
207
- ...j.value,
208
- series: (j.value.series || []).map((e, n) => ({
209
- ...e,
210
- color: oe(e.color) || Gt.value[n] || te[n],
211
- value: ((e.to || 0) - (e.from || 0)) / t * 100
212
- }))
213
- };
214
- }), R = y(512), z = y({
215
- height: 358.4,
216
- width: R.value,
217
- top: 0,
218
- bottom: 358.4,
219
- centerX: 179.2,
220
- centerY: R.value / 2,
221
- labelFontSize: 18,
222
- legendFontSize: A.value.style.chart.legend.fontSize,
223
- pointerRadius: A.value.style.chart.layout.pointer.circle.radius,
224
- trackSize: A.value.style.chart.layout.track.size,
225
- pointerSize: A.value.style.chart.layout.pointer.size,
226
- pointerStrokeWidth: A.value.style.chart.layout.pointer.strokeWidth,
227
- markerOffset: A.value.style.chart.layout.markers.offsetY + 3,
228
- segmentFontSize: A.value.style.chart.layout.segmentNames.fontSize
229
- }), B = y(0), V = y(0), H = y(A.value.style.chart.animation.use ? Math.min(...j.value.series.map((e) => e.from)) : j.value.value);
230
- Re(() => j.value.value, () => {
231
- Xt(j.value.value);
232
- });
233
- let U = u(() => {
234
- let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI;
235
- return {
236
- x1: e,
237
- y1: t,
238
- x2: e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n),
239
- y2: t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n)
240
- };
241
- }), Kt = u(() => {
242
- let e = z.value.width / 2, t = J.value.base, n = Math.PI * ((H.value + 0 - V.value) / (B.value - V.value)) + Math.PI, r = e + J.value.pointerSize * z.value.pointerSize * .9 * Math.cos(n), i = t + J.value.pointerSize * z.value.pointerSize * .9 * Math.sin(n), a = z.value.pointerRadius, o = e + a * Math.cos(n + Math.PI / 2), s = t + a * Math.sin(n + Math.PI / 2), ee = e + a * Math.cos(n - Math.PI / 2), te = t + a * Math.sin(n - Math.PI / 2);
243
- return isNaN(r) ? null : `M ${r},${i} ${o},${s} ${ee},${te} Z`;
244
- }), qt = u(() => {
245
- for (let e = 0; e < L.value.series.length; e += 1) {
246
- let { color: t, from: n, to: r } = L.value.series[e];
247
- if (H.value >= n && H.value <= r) return t;
248
- }
249
- return "#2D353C";
250
- }), W = Ie(null), G = Ie(null), K = u({
251
- get: () => z.value.segmentFontSize,
252
- set: (e) => e
253
- }), { autoSizeLabels: Jt } = Ee({
254
- svgRef: P,
255
- fontSize: z.value.segmentFontSize,
256
- minFontSize: A.value.style.chart.layout.segmentNames.minFontSize,
257
- sizeRef: K,
258
- labelClass: ".vue-ui-gauge-label-flat"
259
- }), q = u(() => !!A.value.debug);
260
- function Yt() {
261
- let e = !1;
262
- if (ce(T.dataset) ? (t({
263
- componentName: "VueUiGauge",
264
- type: "dataset",
265
- debug: q.value
266
- }), M.value = !0, e = !0) : (se({
267
- datasetObject: T.dataset,
268
- requiredAttributes: ["value", "series"]
269
- }).forEach((n) => {
270
- t({
271
- componentName: "VueUiGauge",
272
- type: "datasetAttribute",
273
- property: n,
274
- debug: q.value
275
- }), M.value = !0, e = !0;
276
- }), Object.hasOwn(T.dataset, "series") && (T.dataset.series.length ? T.dataset.series.forEach((n, r) => {
277
- se({
278
- datasetObject: n,
279
- requiredAttributes: ["from", "to"]
280
- }).forEach((n) => {
281
- t({
282
- componentName: "VueUiGauge",
283
- type: "datasetSerieAttribute",
284
- property: n,
285
- index: r,
286
- debug: q.value
287
- }), M.value = !0, e = !0;
288
- });
289
- }) : (t({
290
- componentName: "VueUiGauge",
291
- type: "datasetAttributeEmpty",
292
- property: "series",
293
- debug: q.value
294
- }), M.value = !0, e = !0))), M.value = e, Xt(j.value.value || 0), A.value.responsive) {
295
- let e = Se(() => {
296
- let { width: e, height: t } = Ce({
297
- chart: D.value,
298
- title: A.value.style.chart.title.text ? jt.value : null,
299
- legend: Mt.value,
300
- source: Nt.value,
301
- noTitle: Pt.value
302
- });
303
- t -= 12, requestAnimationFrame(() => {
304
- z.value.width = e, z.value.height = t, z.value.centerX = e / 2, z.value.centerY = R.value / 2 / 358.4 * t, z.value.bottom = t, z.value.labelFontSize = 18 / R.value * Math.min(t, e) < 10 ? 10 : 18 / R.value * Math.min(t, e), z.value.legendFontSize = A.value.style.chart.legend.fontSize / R.value * Math.min(t, e) < 14 ? 14 : A.value.style.chart.legend.fontSize / R.value * Math.min(t, e), z.value.pointerRadius = A.value.style.chart.layout.pointer.circle.radius / R.value * Math.min(t, e), z.value.trackSize = A.value.style.chart.layout.track.size / R.value * Math.min(t, e), z.value.pointerStrokeWidth = o({
305
- relator: Math.min(e, t),
306
- adjuster: R.value,
307
- source: A.value.style.chart.layout.pointer.strokeWidth,
308
- threshold: 2,
309
- fallback: 2
310
- }), z.value.markerOffset = o({
311
- relator: Math.max(e, t),
312
- adjuster: R.value,
313
- source: A.value.style.chart.layout.markers.offsetY + 3,
314
- threshold: 2,
315
- fallback: 2
316
- }), z.value.segmentFontSize = o({
317
- relator: Math.min(e, t),
318
- adjuster: R.value,
319
- source: A.value.style.chart.layout.segmentNames.fontSize,
320
- threshold: 8,
321
- fallback: 8
322
- });
323
- }), Jt();
324
- });
325
- W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect()), W.value = new ResizeObserver(e), G.value = D.value.parentNode, W.value.observe(G.value);
326
- }
327
- Jt();
328
- }
329
- Fe(() => {
330
- Yt();
331
- }), Pe(() => {
332
- W.value && (G.value && W.value.unobserve(G.value), W.value.disconnect());
333
- });
334
- function Xt(e) {
335
- let t = [];
336
- (L.value.series || []).forEach((e) => {
337
- t.push(e.from || 0), t.push(e.to || 0);
338
- }), B.value = Math.max(...t), V.value = Math.min(...t);
339
- let n = A.value.style.chart.animation.speed, r = Math.abs(e - H.value) / (n * 60);
340
- function i() {
341
- H.value < e ? H.value = Math.min(H.value + r, e) : H.value > e && (H.value = Math.max(H.value - r, e)), H.value !== e && requestAnimationFrame(i);
342
- }
343
- i();
344
- }
345
- let J = u(() => {
346
- let e = A.value.responsive ? Math.min(z.value.width, z.value.height) : z.value.width, t = 2.5 / A.value.style.chart.layout.radiusRatio;
347
- return {
348
- arcs: e / t,
349
- gradients: e / (t * 1.1),
350
- base: A.value.responsive ? z.value.height / 1.618 : z.value.height * .7,
351
- ratingBase: A.value.responsive ? z.value.height / 2 + z.value.height / 4 : z.value.height * .9,
352
- pointerSize: A.value.responsive ? Math.min(z.value.width, z.value.height) / 3 : z.value.width / 3.2
353
- };
354
- }), Y = u(() => r({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs, J.value.arcs, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), Zt = u(() => r({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.arcs * A.value.style.chart.layout.segmentNames.offsetRatio, J.value.arcs * A.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * z.value.trackSize)), X = u(() => Y.value.map((e) => J.value.arcs * A.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Qt = u(() => {
355
- let { x: e, y: t } = n({
356
- initX: Y.value[0].firstSeparator.x,
357
- initY: Y.value[0].firstSeparator.y,
358
- centerX: U.value.x1,
359
- centerY: U.value.y1,
360
- offset: -A.value.style.chart.layout.segmentSeparators.offsetIn
361
- }), { x: r, y: i } = n({
362
- initX: Y.value[0].startX,
363
- initY: Y.value[0].startY,
364
- centerX: U.value.x1,
365
- centerY: U.value.y1,
366
- offset: A.value.style.chart.layout.segmentSeparators.offsetOut
367
- });
368
- return {
369
- x1: e,
370
- y1: t,
371
- x2: r,
372
- y2: i
373
- };
374
- }), $t = u(() => Y.value.map((e) => {
375
- let { x: t, y: r } = n({
376
- initX: e.separator.x,
377
- initY: e.separator.y,
378
- centerX: U.value.x1,
379
- centerY: U.value.y1,
380
- offset: -A.value.style.chart.layout.segmentSeparators.offsetIn
381
- }), { x: i, y: a } = n({
382
- initX: e.endX,
383
- initY: e.endY,
384
- centerX: U.value.x1,
385
- centerY: U.value.y1,
386
- offset: A.value.style.chart.layout.segmentSeparators.offsetOut
387
- });
388
- return {
389
- x1: t,
390
- y1: r,
391
- x2: i,
392
- y2: a
393
- };
394
- }));
395
- function en(e) {
396
- if (e.reduce((e, t) => e + t, 0) > 100) throw Error("Total % must not exceed 100");
397
- let t = 0;
398
- return e.map((e) => (t += e, `${t / 100 * 50 - e / 4}%`));
399
- }
400
- let tn = u(() => en(Y.value.map((e) => e.proportion * 100))), nn = u(() => r({ series: L.value.series }, z.value.width / 2, J.value.base, J.value.gradients, J.value.gradients, .95, 1, 1, 180, 110.02, 2 * z.value.trackSize)), rn = u(() => {
401
- let e = V.value >= 0 ? -V.value : Math.abs(V.value);
402
- return i({
403
- radius: A.value.style.chart.layout.indicatorArc.radius * z.value.trackSize,
404
- centerX: z.value.width / 2,
405
- centerY: J.value.base,
406
- percentage: de((H.value + e) / (B.value + e))
407
- });
408
- }), Z = y(!1);
409
- function an(e) {
410
- Z.value = e, At.value += 1;
411
- }
412
- let Q = y(!1);
413
- function $() {
414
- Q.value = !Q.value;
415
- }
416
- async function on({ scale: e = 2 } = {}) {
417
- if (!D.value) return;
418
- let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ye({
419
- domElement: D.value,
420
- base64: !0,
421
- img: !0,
422
- scale: e
423
- });
424
- return {
425
- imageUri: i,
426
- base64: a,
427
- title: A.value.style.chart.title.text,
428
- width: t,
429
- height: n,
430
- aspectRatio: r
431
- };
432
- }
433
- let sn = u(() => A.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = ge({
434
- svg: P,
435
- title: u(() => A.value.style.chart.title),
436
- backgroundColor: sn
437
- });
438
- async function un({ isCb: e }) {
439
- k.value = !0, await je();
440
- try {
441
- if (e) {
442
- let { blob: e, url: t, text: n, dataUrl: r } = await ln();
443
- await Promise.resolve(A.value.userOptions.callbacks.svg({
444
- blob: e,
445
- url: t,
446
- text: n,
447
- dataUrl: r
448
- }));
449
- } else await Promise.resolve(cn());
450
- } finally {
451
- k.value = !1;
452
- }
453
- }
454
- function dn(e) {
455
- if (e?.stage === "start") {
456
- O.value = !0;
457
- return;
458
- }
459
- if (e?.stage === "end") {
460
- O.value = !1;
461
- return;
462
- }
463
- Ut();
464
- }
465
- async function fn() {
466
- if (Dt("copyAlt", {
467
- config: A.value,
468
- dataset: L.value
469
- }), !A.value.userOptions.callbacks.altCopy) {
470
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
471
- return;
472
- }
473
- await Promise.resolve(A.value.userOptions.callbacks.altCopy({
474
- config: A.value,
475
- dataset: L.value
476
- }));
477
- }
478
- return xe({
479
- getImage: on,
480
- generatePdf: Ht,
481
- generateImage: Ut,
482
- generateSvg: un,
483
- toggleAnnotator: $,
484
- toggleFullscreen: an,
485
- copyAlt: fn
486
- }), (e, t) => (v(), p("div", {
487
- class: Me(`vue-data-ui-component vue-ui-gauge ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
488
- ref_key: "gaugeChart",
489
- ref: D,
490
- id: `vue-ui-gauge_${E.value}`,
491
- style: Ne(`font-family:${A.value.style.fontFamily};width:100%; text-align:center;background:${A.value.style.chart.backgroundColor};${A.value.responsive ? "height: 100%" : ""}`),
492
- onMouseenter: t[0] ||= () => C(zt)(!0),
493
- onMouseleave: t[1] ||= () => C(zt)(!1)
494
- }, [
495
- A.value.userOptions.buttons.annotator ? (v(), d(C(xt), {
496
- key: 0,
497
- svgRef: C(P),
498
- backgroundColor: A.value.style.chart.backgroundColor,
499
- color: A.value.style.chart.color,
500
- active: Q.value,
501
- isCursorPointer: It.value,
502
- onClose: $
503
- }, {
504
- "annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
505
- "annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", _(h({ color: t })), void 0, !0)]),
506
- "annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", _(h({ mode: t })), void 0, !0)]),
507
- "annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", _(h({ disabled: t })), void 0, !0)]),
508
- "annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", _(h({ disabled: t })), void 0, !0)]),
509
- "annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", _(h({ disabled: t })), void 0, !0)]),
510
- _: 3
511
- }, 8, [
512
- "svgRef",
513
- "backgroundColor",
514
- "color",
515
- "active",
516
- "isCursorPointer"
517
- ])) : f("", !0),
518
- Wt.value ? (v(), p("div", {
519
- key: 1,
520
- ref_key: "noTitle",
521
- ref: Pt,
522
- class: "vue-data-ui-no-title-space",
523
- style: "height:36px; width: 100%;background:transparent"
524
- }, null, 512)) : f("", !0),
525
- A.value.style.chart.title.text ? (v(), p("div", {
526
- key: 2,
527
- ref_key: "chartTitle",
528
- ref: jt,
529
- style: "width:100%;background:transparent;padding-bottom:12px"
530
- }, [(v(), d(be, {
531
- key: `title_${Ft.value}`,
532
- config: {
533
- title: {
534
- cy: "gauge-div-title",
535
- ...A.value.style.chart.title
536
- },
537
- subtitle: {
538
- cy: "gauge-div-subtitle",
539
- ...A.value.style.chart.title.subtitle
540
- }
541
- }
542
- }, {
543
- default: w(() => [A.value.translations.base && C(j).base ? (v(), p("span", Ve, S(A.value.translations.base) + ": " + S(C(j).base), 1)) : f("", !0)]),
544
- _: 1
545
- }, 8, ["config"]))], 512)) : f("", !0),
546
- A.value.userOptions.show && Ot.value && (C(Bt) || C(N)) ? (v(), d(C(St), {
547
- ref_key: "details",
548
- ref: kt,
549
- key: `user_options_${At.value}`,
550
- backgroundColor: A.value.style.chart.backgroundColor,
551
- color: A.value.style.chart.color,
552
- isImaging: C(Vt),
553
- isPrinting: C(I),
554
- uid: E.value,
555
- hasXls: !1,
556
- hasPdf: A.value.userOptions.buttons.pdf,
557
- hasImg: A.value.userOptions.buttons.img,
558
- hasSvg: A.value.userOptions.buttons.svg,
559
- hasFullscreen: A.value.userOptions.buttons.fullscreen,
560
- hasAltCopy: A.value.userOptions.buttons.altCopy,
561
- isFullscreen: Z.value,
562
- titles: { ...A.value.userOptions.buttonTitles },
563
- chartElement: D.value,
564
- callbacks: A.value.userOptions.callbacks,
565
- printScale: A.value.userOptions.print.scale,
566
- position: A.value.userOptions.position,
567
- hasAnnotator: A.value.userOptions.buttons.annotator,
568
- isAnnotation: Q.value,
569
- isCursorPointer: It.value,
570
- onToggleFullscreen: an,
571
- onGeneratePdf: C(Ht),
572
- onGenerateImage: dn,
573
- onGenerateSvg: un,
574
- onToggleAnnotator: $,
575
- onCopyAlt: fn,
576
- style: Ne({ visibility: C(Bt) ? C(N) ? "visible" : "hidden" : "visible" })
577
- }, Oe({ _: 2 }, [
578
- e.$slots.menuIcon ? {
579
- name: "menuIcon",
580
- fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", _(h({
581
- isOpen: t,
582
- color: n
583
- })), void 0, !0)]),
584
- key: "0"
585
- } : void 0,
586
- e.$slots.optionPdf ? {
587
- name: "optionPdf",
588
- fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
589
- key: "1"
590
- } : void 0,
591
- e.$slots.optionImg ? {
592
- name: "optionImg",
593
- fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
594
- key: "2"
595
- } : void 0,
596
- e.$slots.optionSvg ? {
597
- name: "optionSvg",
598
- fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
599
- key: "3"
600
- } : void 0,
601
- e.$slots.optionFullscreen ? {
602
- name: "optionFullscreen",
603
- fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", _(h({
604
- toggleFullscreen: t,
605
- isFullscreen: n
606
- })), void 0, !0)]),
607
- key: "4"
608
- } : void 0,
609
- e.$slots.optionAnnotator ? {
610
- name: "optionAnnotator",
611
- fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", _(h({
612
- toggleAnnotator: t,
613
- isAnnotator: n
614
- })), void 0, !0)]),
615
- key: "5"
616
- } : void 0,
617
- e.$slots.optionAltCopy ? {
618
- name: "optionAltCopy",
619
- fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", _(h({ altCopy: t })), void 0, !0)]),
620
- key: "6"
621
- } : void 0,
622
- e.$slots["custom-menu-before"] ? {
623
- name: "custom-menu-before",
624
- fn: w(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
625
- key: "7"
626
- } : void 0,
627
- e.$slots["custom-menu-after"] ? {
628
- name: "custom-menu-after",
629
- fn: w(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
630
- key: "8"
631
- } : void 0
632
- ]), 1032, [
633
- "backgroundColor",
634
- "color",
635
- "isImaging",
636
- "isPrinting",
637
- "uid",
638
- "hasPdf",
639
- "hasImg",
640
- "hasSvg",
641
- "hasFullscreen",
642
- "hasAltCopy",
643
- "isFullscreen",
644
- "titles",
645
- "chartElement",
646
- "callbacks",
647
- "printScale",
648
- "position",
649
- "hasAnnotator",
650
- "isAnnotation",
651
- "isCursorPointer",
652
- "onGeneratePdf",
653
- "style"
654
- ])) : f("", !0),
655
- (v(), p("svg", {
656
- ref_key: "svgRef",
657
- ref: P,
658
- xmlns: C(le),
659
- class: Me({
660
- "vue-data-ui-fullscreen--on": Z.value,
661
- "vue-data-ui-fulscreen--off": !Z.value
662
- }),
663
- viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
664
- style: Ne(`max-width:100%;overflow:hidden !important;background:transparent;color:${A.value.style.chart.color}`)
665
- }, [
666
- ke(C(Ct)),
667
- e.$slots["chart-background"] ? (v(), p("foreignObject", {
668
- key: 0,
669
- x: 0,
670
- y: 0,
671
- width: z.value.width <= 0 ? 10 : z.value.width,
672
- height: z.value.height <= 0 ? 10 : z.value.height,
673
- style: { pointerEvents: "none" }
674
- }, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Ue)) : f("", !0),
675
- m("defs", null, [m("radialGradient", {
676
- id: `gradient_${E.value}`,
677
- cx: "50%",
678
- cy: "50%",
679
- r: "50%",
680
- fx: "50%",
681
- fy: "50%"
682
- }, [
683
- m("stop", {
684
- offset: "0%",
685
- "stop-color": C(ne)("#FFFFFF", 1)
686
- }, null, 8, Ge),
687
- m("stop", {
688
- offset: "80%",
689
- "stop-color": C(ne)("#FFFFFF", A.value.style.chart.layout.track.gradientIntensity)
690
- }, null, 8, Ke),
691
- m("stop", {
692
- offset: "100%",
693
- "stop-color": C(ne)("#FFFFFF", 1)
694
- }, null, 8, qe)
695
- ], 8, We)]),
696
- m("defs", null, [m("filter", {
697
- id: `blur_${E.value}`,
698
- x: "-50%",
699
- y: "-50%",
700
- width: "200%",
701
- height: "200%"
702
- }, [m("feGaussianBlur", {
703
- in: "SourceGraphic",
704
- stdDeviation: 100 / A.value.style.chart.layout.track.gradientIntensity
705
- }, null, 8, Ye)], 8, Je)]),
706
- e.$slots.pattern ? (v(), p("g", Xe, [(v(!0), p(l, null, b(Y.value, (t, n) => (v(), p("defs", null, [x(e.$slots, "pattern", g({ ref_for: !0 }, {
707
- seriesIndex: n,
708
- patternId: `pattern_${E.value}_${n}`
709
- }), void 0, !0)]))), 256))])) : f("", !0),
710
- (v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("path", {
711
- key: `arc_${t}`,
712
- d: e.arcSlice,
713
- fill: e.color,
714
- stroke: A.value.style.chart.backgroundColor,
715
- "stroke-linecap": "round"
716
- }, null, 8, Ze))), 128)),
717
- e.$slots.pattern ? (v(!0), p(l, { key: 2 }, b(Y.value, (e, t) => (v(), p("path", {
718
- key: `arc_${t}`,
719
- d: e.arcSlice,
720
- fill: `url(#pattern_${E.value}_${t})`,
721
- stroke: A.value.style.chart.backgroundColor,
722
- "stroke-linecap": "round"
723
- }, null, 8, Qe))), 128)) : f("", !0),
724
- A.value.style.chart.layout.indicatorArc.show ? (v(), p("path", {
725
- key: 3,
726
- d: rn.value,
727
- fill: A.value.style.chart.layout.indicatorArc.fill
728
- }, null, 8, $e)) : f("", !0),
729
- A.value.style.chart.layout.segmentNames.show && A.value.style.chart.layout.segmentNames.curved ? (v(), p(l, { key: 4 }, [(v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("path", {
730
- id: `curve_${E.value}_${t}`,
731
- 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`,
732
- fill: "transparent"
733
- }, null, 8, et))), 256)), (v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("text", {
734
- fill: A.value.style.chart.layout.segmentNames.useSerieColor ? e.color : A.value.style.chart.layout.segmentNames.color,
735
- "font-size": K.value,
736
- "font-weight": A.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
737
- "text-anchor": "middle"
738
- }, [m("textPath", {
739
- href: `#curve_${E.value}_${t}`,
740
- startOffset: tn.value[t]
741
- }, S(e.name || ""), 9, nt)], 8, tt))), 256))], 64)) : f("", !0),
742
- A.value.style.chart.layout.segmentNames.show && !A.value.style.chart.layout.segmentNames.curved ? (v(!0), p(l, { key: 5 }, b(Zt.value, (e, t) => (v(), p("text", {
743
- class: "vue-ui-gauge-label-flat",
744
- "text-anchor": C(ue)(e, !1, 12).anchor,
745
- fill: A.value.style.chart.layout.segmentNames.useSerieColor ? e.color : A.value.style.chart.layout.segmentNames.color,
746
- "font-size": K.value,
747
- "font-weight": A.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
748
- innerHTML: C(ie)({
749
- content: String(e.name ?? ""),
750
- fontSize: K.value,
751
- fill: A.value.style.chart.layout.segmentNames.useSerieColor ? e.color : A.value.style.chart.layout.segmentNames.color,
752
- x: e.center.endX,
753
- y: e.center.endY
754
- })
755
- }, null, 8, rt))), 256)) : f("", !0),
756
- A.value.style.chart.layout.track.useGradient ? (v(!0), p(l, { key: 6 }, b(nn.value, (e, t) => (v(), p("path", {
757
- key: `arc_${t}`,
758
- d: e.arcSlice,
759
- fill: "#FFFFFF",
760
- stroke: "none",
761
- "stroke-linecap": "round",
762
- filter: `url(#blur_${E.value})`
763
- }, null, 8, it))), 128)) : f("", !0),
764
- A.value.style.chart.layout.segmentSeparators.show ? (v(), p(l, { key: 7 }, [
765
- m("line", g(Qt.value, {
766
- stroke: A.value.style.chart.backgroundColor,
767
- "stroke-width": A.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
768
- "stroke-linecap": "round"
769
- }), null, 16, at),
770
- m("line", g(Qt.value, {
771
- stroke: A.value.style.chart.layout.segmentSeparators.stroke,
772
- "stroke-width": A.value.style.chart.layout.segmentSeparators.strokeWidth,
773
- "stroke-linecap": "round"
774
- }), null, 16, ot),
775
- (v(!0), p(l, null, b($t.value, (e) => (v(), p("line", g({ ref_for: !0 }, e, {
776
- stroke: A.value.style.chart.backgroundColor,
777
- "stroke-width": A.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
778
- "stroke-linecap": "round"
779
- }), null, 16, st))), 256)),
780
- (v(!0), p(l, null, b($t.value, (e) => (v(), p("line", g({ ref_for: !0 }, e, {
781
- stroke: A.value.style.chart.layout.segmentSeparators.stroke,
782
- "stroke-width": A.value.style.chart.layout.segmentSeparators.strokeWidth,
783
- "stroke-linecap": "round"
784
- }), null, 16, ct))), 256))
785
- ], 64)) : f("", !0),
786
- A.value.style.chart.layout.markers.show ? (v(), p("g", lt, [(v(!0), p(l, null, b(Y.value, (e, t) => (v(), p("text", {
787
- x: C(n)({
788
- centerX: U.value.x1,
789
- centerY: J.value.base,
790
- initX: e.center.startX,
791
- initY: e.center.startY,
792
- offset: z.value.markerOffset
793
- }).x,
794
- y: C(n)({
795
- centerX: U.value.x1,
796
- centerY: J.value.base,
797
- initX: e.center.startX,
798
- initY: e.center.startY,
799
- offset: z.value.markerOffset
800
- }).y,
801
- "text-anchor": e.center.startX < U.value.x1 - 5 ? "end" : e.center.startX > U.value.x1 + 5 ? "start" : "middle",
802
- "font-size": z.value.labelFontSize * A.value.style.chart.layout.markers.fontSizeRatio,
803
- "font-weight": `${A.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
804
- fill: A.value.style.chart.layout.markers.color
805
- }, S(C(c)(A.value.style.chart.layout.markers.formatter, e.from, C(s)({
806
- p: A.value.style.chart.layout.markers.prefix,
807
- v: e.from,
808
- s: A.value.style.chart.layout.markers.suffix,
809
- r: A.value.style.chart.layout.markers.roundingValue
810
- }))), 9, ut))), 256))])) : f("", !0),
811
- A.value.style.chart.layout.markers.show ? (v(), p("text", {
812
- key: 9,
813
- x: C(n)({
814
- centerX: z.value.width / 2,
815
- centerY: J.value.base,
816
- initX: Y.value.at(-1).endX,
817
- initY: Y.value.at(-1).endY,
818
- offset: z.value.markerOffset
819
- }).x,
820
- y: C(n)({
821
- centerX: z.value.width / 2,
822
- centerY: J.value.base,
823
- initX: Y.value.at(-1).endX,
824
- initY: Y.value.at(-1).endY,
825
- offset: z.value.markerOffset
826
- }).y,
827
- "text-anchor": "start",
828
- "font-size": z.value.labelFontSize * A.value.style.chart.layout.markers.fontSizeRatio,
829
- "font-weight": `${A.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
830
- fill: A.value.style.chart.layout.markers.color
831
- }, S(C(c)(A.value.style.chart.layout.markers.formatter, B.value, C(s)({
832
- p: A.value.style.chart.layout.markers.prefix,
833
- v: B.value,
834
- s: A.value.style.chart.layout.markers.suffix,
835
- r: A.value.style.chart.layout.markers.roundingValue
836
- }))), 9, dt)) : f("", !0),
837
- A.value.style.chart.layout.pointer.show ? (v(), p(l, { key: 10 }, [A.value.style.chart.layout.pointer.type === "rounded" ? (v(), p("g", ft, [
838
- isNaN(U.value.x2) ? f("", !0) : (v(), p("line", {
839
- key: 0,
840
- x1: U.value.x1,
841
- y1: U.value.y1,
842
- x2: U.value.x2,
843
- y2: U.value.y2,
844
- stroke: A.value.style.chart.layout.pointer.stroke,
845
- "stroke-width": z.value.pointerStrokeWidth,
846
- "stroke-linecap": "round"
847
- }, null, 8, pt)),
848
- isNaN(U.value.x2) ? f("", !0) : (v(), p("line", {
849
- key: 1,
850
- x1: U.value.x1,
851
- y1: U.value.y1,
852
- x2: U.value.x2,
853
- y2: U.value.y2,
854
- stroke: A.value.style.chart.layout.pointer.useRatingColor ? qt.value : A.value.style.chart.layout.pointer.color,
855
- "stroke-linecap": "round",
856
- "stroke-width": z.value.pointerStrokeWidth * .7
857
- }, null, 8, mt)),
858
- !isNaN(U.value.x2) && A.value.style.chart.layout.track.useGradient ? (v(), p("line", {
859
- key: 2,
860
- x1: U.value.x1,
861
- y1: U.value.y1,
862
- x2: U.value.x2,
863
- y2: U.value.y2,
864
- stroke: "white",
865
- "stroke-linecap": "round",
866
- "stroke-width": z.value.pointerStrokeWidth * .3,
867
- filter: `url(#blur_${E.value})`
868
- }, null, 8, ht)) : f("", !0)
869
- ])) : (v(), p("g", gt, [Kt.value ? (v(), p("path", {
870
- key: 0,
871
- d: Kt.value,
872
- fill: A.value.style.chart.layout.pointer.useRatingColor ? qt.value : A.value.style.chart.layout.pointer.color,
873
- stroke: A.value.style.chart.layout.pointer.stroke,
874
- "stroke-width": A.value.style.chart.layout.pointer.circle.strokeWidth,
875
- "stroke-linejoin": "round"
876
- }, null, 8, _t)) : f("", !0)])), m("circle", {
877
- cx: z.value.width / 2,
878
- cy: J.value.base,
879
- fill: A.value.style.chart.layout.pointer.circle.color,
880
- r: z.value.pointerRadius <= 0 ? 1e-4 : z.value.pointerRadius,
881
- "stroke-width": A.value.style.chart.layout.pointer.circle.strokeWidth,
882
- stroke: A.value.style.chart.layout.pointer.circle.stroke
883
- }, null, 8, vt)], 64)) : f("", !0),
884
- A.value.style.chart.legend.show ? (v(), p("text", {
885
- key: 11,
886
- x: z.value.width / 2,
887
- y: J.value.ratingBase,
888
- "text-anchor": "middle",
889
- "font-size": z.value.legendFontSize,
890
- "font-weight": "bold",
891
- fill: A.value.style.chart.legend.useRatingColor ? qt.value : A.value.style.chart.legend.color
892
- }, S(C(c)(A.value.style.chart.legend.formatter, H.value, C(s)({
893
- p: A.value.style.chart.legend.prefix + (A.value.style.chart.legend.showPlusSymbol && H.value > 0 ? "+" : ""),
894
- v: H.value,
895
- s: A.value.style.chart.legend.suffix,
896
- r: A.value.style.chart.legend.roundingValue
897
- }))), 9, yt)) : f("", !0),
898
- x(e.$slots, "svg", { svg: {
899
- ...z.value,
900
- isPrintingImg: C(I) || C(Vt) || O.value,
901
- isPrintingSvg: k.value
902
- } }, void 0, !0)
903
- ], 14, He)),
904
- e.$slots.watermark ? (v(), p("div", bt, [x(e.$slots, "watermark", _(h({ isPrinting: C(I) || C(Vt) || O.value || k.value })), void 0, !0)])) : f("", !0),
905
- m("div", {
906
- ref_key: "chartLegend",
907
- ref: Mt
908
- }, [x(e.$slots, "legend", { legend: L.value }, void 0, !0)], 512),
909
- e.$slots.source ? (v(), p("div", {
910
- key: 5,
911
- ref_key: "source",
912
- ref: Nt,
913
- dir: "auto"
914
- }, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
915
- x(e.$slots, "skeleton", {}, () => [C(Rt) ? (v(), d(he, { key: 0 })) : f("", !0)], !0)
916
- ], 46, Be));
917
- }
918
- }, [["__scopeId", "data-v-a2cc058b"]]);
919
- //#endregion
920
- export { ze as n, xt as t };