vue-data-ui 3.22.13 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,925 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, C as n, D as r, Gt as i, K as a, Kt as o, Nt as ee, Ot as s, W as te, Y as ne, d as re, et as c, ft as ie, i as ae, jt as l, qt as oe, t as se, x as ce, y as le, zt as ue } from "./lib-CFm_J26b.js";
3
- import { t as de } from "./useConfig-C0V0eG7L.js";
4
- import { t as fe } from "./usePrinter-BH-xle1O.js";
5
- import { n as pe, t as me } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as he } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as ge } from "./useNestedProp-BY6DNN3i.js";
8
- import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as ve } from "./img-Bikk1dGb.js";
10
- import { n as ye } from "./Title-BuPs74IB.js";
11
- import { t as be } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as xe, t as Se } from "./useResponsive-ZtArZtUf.js";
13
- import { t as Ce } from "./DefGrad-DVBqDjhO.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-C9RNjsGv.js";
17
- import { t as De } from "./vue_ui_gauge-Cf1RZc9q.js";
18
- import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Oe, createVNode as ke, defineAsyncComponent as Ae, guardReactiveProps as g, mergeProps as _, nextTick as je, normalizeClass as Me, normalizeProps as v, normalizeStyle as Ne, onBeforeUnmount as Pe, onMounted as Fe, openBlock as y, ref as b, renderList as x, renderSlot as S, shallowRef as Ie, toDisplayString as C, toRefs as Le, unref as w, watch as Re, withCtx as T } from "vue";
19
- //#region src/components/vue-ui-gauge.vue
20
- var ze = /* @__PURE__ */ e({ default: () => _t }), Be = ["id"], Ve = { key: 0 }, He = ["xmlns", "viewBox"], Ue = ["width", "height"], We = ["id"], Ge = ["stdDeviation"], Ke = { key: 1 }, qe = [
21
- "d",
22
- "fill",
23
- "stroke"
24
- ], Je = [
25
- "d",
26
- "fill",
27
- "stroke"
28
- ], Ye = ["d", "fill"], Xe = ["id", "d"], Ze = [
29
- "fill",
30
- "font-size",
31
- "font-weight"
32
- ], Qe = ["href", "startOffset"], $e = [
33
- "text-anchor",
34
- "fill",
35
- "font-size",
36
- "font-weight",
37
- "innerHTML"
38
- ], et = ["d", "filter"], tt = ["stroke", "stroke-width"], nt = ["stroke", "stroke-width"], rt = ["stroke", "stroke-width"], it = ["stroke", "stroke-width"], at = { key: 8 }, ot = [
39
- "x",
40
- "y",
41
- "text-anchor",
42
- "font-size",
43
- "font-weight",
44
- "fill"
45
- ], st = [
46
- "x",
47
- "y",
48
- "font-size",
49
- "font-weight",
50
- "fill"
51
- ], ct = { key: 0 }, lt = [
52
- "x1",
53
- "y1",
54
- "x2",
55
- "y2",
56
- "stroke",
57
- "stroke-width"
58
- ], ut = [
59
- "x1",
60
- "y1",
61
- "x2",
62
- "y2",
63
- "stroke",
64
- "stroke-width"
65
- ], dt = [
66
- "x1",
67
- "y1",
68
- "x2",
69
- "y2",
70
- "stroke-width",
71
- "filter"
72
- ], ft = { key: 1 }, pt = [
73
- "d",
74
- "fill",
75
- "stroke",
76
- "stroke-width"
77
- ], mt = [
78
- "cx",
79
- "cy",
80
- "fill",
81
- "r",
82
- "stroke-width",
83
- "stroke"
84
- ], ht = [
85
- "x",
86
- "y",
87
- "font-size",
88
- "fill"
89
- ], gt = {
90
- key: 4,
91
- class: "vue-data-ui-watermark"
92
- }, _t = /*#__PURE__*/ be({
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: be, emit: ze }) {
110
- let _t = Ae(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), vt = Ae(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), yt = Ae(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), { vue_ui_gauge: bt } = de(), { isThemeValid: xt, warnInvalidTheme: St } = _e(), E = e, Ct = ze, wt = d(() => !!E.dataset && Object.keys(E.dataset).length > 0 && E.dataset.series && E.dataset.series.length), D = b(a()), Tt = b(null), Et = b(0), O = b(null), Dt = b(null), Ot = b(null), kt = b(null), At = b(null), jt = b(0), k = b(!1), A = b(!1), j = b(F()), Mt = d(() => j.value.userOptions.useCursorPointer), Nt = d(() => oe({
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: j.value.skeletonConfig ?? {}
134
- })), { loading: Pt, FINAL_DATASET: M, manualLoading: N } = pe({
135
- ...Le(E),
136
- FINAL_CONFIG: j,
137
- prepareConfig: F,
138
- callback: () => {
139
- Promise.resolve().then(async () => {
140
- await je();
141
- });
142
- },
143
- skeletonDataset: E.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: oe({
158
- defaultConfig: j.value,
159
- userConfig: Nt.value
160
- })
161
- }), { userOptionsVisible: Ft, setUserOptionsVisibility: It, keepUserOptionState: Lt } = we({ config: j.value }), { svgRef: P } = Te({ config: j.value.style.chart.title });
162
- Re(() => E.config, (e) => {
163
- Pt.value || (j.value = F()), Ft.value = !j.value.userOptions.showOnChartHover, Gt(), jt.value += 1;
164
- }, { deep: !0 }), Re(() => E.dataset, (e) => {
165
- Gt(), e && Object.keys(e).length > 0 && (N.value = j.value?.loading ?? !1);
166
- }, {
167
- deep: !0,
168
- immediate: !1
169
- });
170
- function F() {
171
- let e = ge({
172
- userConfig: E.config,
173
- defaultConfig: bt
174
- }), t = e.theme;
175
- if (!t) return e;
176
- if (!xt.value(e)) return St(e), e;
177
- let n = ge({
178
- userConfig: De[t] || E.config,
179
- defaultConfig: e
180
- }), r = ge({
181
- userConfig: E.config,
182
- defaultConfig: n
183
- });
184
- return {
185
- ...r,
186
- customPalette: r.customPalette.length ? r.customPalette : i[t] || ee
187
- };
188
- }
189
- let { isPrinting: I, isImaging: L, generatePdf: Rt, generateImage: zt } = fe({
190
- elementId: `vue-ui-gauge_${D.value}`,
191
- fileName: j.value.style.chart.title.text || "vue-ui-gauge",
192
- options: j.value.userOptions.print
193
- }), Bt = d(() => j.value.userOptions.show && !j.value.style.chart.title.text), Vt = d(() => n(j.value.customPalette)), R = d(() => {
194
- if (t(M.value.series || {})) return {
195
- value: 0,
196
- series: [{
197
- from: 0,
198
- to: 0
199
- }]
200
- };
201
- let e = [];
202
- (M.value.series || []).forEach((t) => {
203
- e.push(t.from || 1e-7), e.push(t.to || 1e-7);
204
- });
205
- let n = Math.max(...e);
206
- return {
207
- ...M.value,
208
- series: (M.value.series || []).map((e, t) => ({
209
- ...e,
210
- color: ce(e.color) || Vt.value[t] || ee[t],
211
- value: ((e.to || 0) - (e.from || 0)) / n * 100
212
- }))
213
- };
214
- }), z = b(512), B = b({
215
- height: 358.4,
216
- width: z.value,
217
- top: 0,
218
- bottom: 358.4,
219
- centerX: 179.2,
220
- centerY: z.value / 2,
221
- labelFontSize: 18,
222
- legendFontSize: j.value.style.chart.legend.fontSize,
223
- pointerRadius: j.value.style.chart.layout.pointer.circle.radius,
224
- trackSize: j.value.style.chart.layout.track.size,
225
- pointerSize: j.value.style.chart.layout.pointer.size,
226
- pointerStrokeWidth: j.value.style.chart.layout.pointer.strokeWidth,
227
- markerOffset: j.value.style.chart.layout.markers.offsetY + 3,
228
- segmentFontSize: j.value.style.chart.layout.segmentNames.fontSize
229
- }), V = b(0), H = b(0), U = b(j.value.style.chart.animation.use ? Math.min(...M.value.series.map((e) => e.from)) : M.value.value);
230
- Re(() => M.value.value, () => {
231
- Kt(M.value.value);
232
- });
233
- let W = d(() => {
234
- let e = B.value.width / 2, t = Y.value.base, n = Math.PI * ((U.value + 0 - H.value) / (V.value - H.value)) + Math.PI;
235
- return {
236
- x1: e,
237
- y1: t,
238
- x2: e + Y.value.pointerSize * B.value.pointerSize * .9 * Math.cos(n),
239
- y2: t + Y.value.pointerSize * B.value.pointerSize * .9 * Math.sin(n)
240
- };
241
- }), Ht = d(() => {
242
- let e = B.value.width / 2, t = Y.value.base, n = Math.PI * ((U.value + 0 - H.value) / (V.value - H.value)) + Math.PI, r = e + Y.value.pointerSize * B.value.pointerSize * .9 * Math.cos(n), i = t + Y.value.pointerSize * B.value.pointerSize * .9 * Math.sin(n), a = B.value.pointerRadius, o = e + a * Math.cos(n + Math.PI / 2), ee = t + a * Math.sin(n + Math.PI / 2), s = 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},${ee} ${s},${te} Z`;
244
- }), Ut = d(() => {
245
- for (let e = 0; e < R.value.series.length; e += 1) {
246
- let { color: t, from: n, to: r } = R.value.series[e];
247
- if (U.value >= n && U.value <= r) return t;
248
- }
249
- return "#2D353C";
250
- }), G = Ie(null), K = Ie(null), q = d({
251
- get: () => B.value.segmentFontSize,
252
- set: (e) => e
253
- }), { autoSizeLabels: Wt } = Ee({
254
- svgRef: P,
255
- fontSize: B.value.segmentFontSize,
256
- minFontSize: j.value.style.chart.layout.segmentNames.minFontSize,
257
- sizeRef: q,
258
- labelClass: ".vue-ui-gauge-label-flat"
259
- }), J = d(() => !!j.value.debug);
260
- function Gt() {
261
- let e = !1;
262
- if (t(E.dataset) ? (c({
263
- componentName: "VueUiGauge",
264
- type: "dataset",
265
- debug: J.value
266
- }), N.value = !0, e = !0) : (ie({
267
- datasetObject: E.dataset,
268
- requiredAttributes: ["value", "series"]
269
- }).forEach((t) => {
270
- c({
271
- componentName: "VueUiGauge",
272
- type: "datasetAttribute",
273
- property: t,
274
- debug: J.value
275
- }), N.value = !0, e = !0;
276
- }), Object.hasOwn(E.dataset, "series") && (E.dataset.series.length ? E.dataset.series.forEach((t, n) => {
277
- ie({
278
- datasetObject: t,
279
- requiredAttributes: ["from", "to"]
280
- }).forEach((t) => {
281
- c({
282
- componentName: "VueUiGauge",
283
- type: "datasetSerieAttribute",
284
- property: t,
285
- index: n,
286
- debug: J.value
287
- }), N.value = !0, e = !0;
288
- });
289
- }) : (c({
290
- componentName: "VueUiGauge",
291
- type: "datasetAttributeEmpty",
292
- property: "series",
293
- debug: J.value
294
- }), N.value = !0, e = !0))), N.value = e, Kt(M.value.value || 0), j.value.responsive) {
295
- let e = xe(() => {
296
- let { width: e, height: t } = Se({
297
- chart: O.value,
298
- title: j.value.style.chart.title.text ? Dt.value : null,
299
- legend: Ot.value,
300
- source: kt.value,
301
- noTitle: At.value
302
- });
303
- t -= 12, requestAnimationFrame(() => {
304
- B.value.width = e, B.value.height = t, B.value.centerX = e / 2, B.value.centerY = z.value / 2 / 358.4 * t, B.value.bottom = t, B.value.labelFontSize = 18 / z.value * Math.min(t, e) < 10 ? 10 : 18 / z.value * Math.min(t, e), B.value.legendFontSize = j.value.style.chart.legend.fontSize / z.value * Math.min(t, e) < 14 ? 14 : j.value.style.chart.legend.fontSize / z.value * Math.min(t, e), B.value.pointerRadius = j.value.style.chart.layout.pointer.circle.radius / z.value * Math.min(t, e), B.value.trackSize = j.value.style.chart.layout.track.size / z.value * Math.min(t, e), B.value.pointerStrokeWidth = o({
305
- relator: Math.min(e, t),
306
- adjuster: z.value,
307
- source: j.value.style.chart.layout.pointer.strokeWidth,
308
- threshold: 2,
309
- fallback: 2
310
- }), B.value.markerOffset = o({
311
- relator: Math.max(e, t),
312
- adjuster: z.value,
313
- source: j.value.style.chart.layout.markers.offsetY + 3,
314
- threshold: 2,
315
- fallback: 2
316
- }), B.value.segmentFontSize = o({
317
- relator: Math.min(e, t),
318
- adjuster: z.value,
319
- source: j.value.style.chart.layout.segmentNames.fontSize,
320
- threshold: 8,
321
- fallback: 8
322
- });
323
- }), Wt();
324
- });
325
- G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect()), G.value = new ResizeObserver(e), K.value = O.value.parentNode, G.value.observe(K.value);
326
- }
327
- Wt();
328
- }
329
- Fe(() => {
330
- Gt();
331
- }), Pe(() => {
332
- G.value && (K.value && G.value.unobserve(K.value), G.value.disconnect());
333
- });
334
- function Kt(e) {
335
- let t = [];
336
- (R.value.series || []).forEach((e) => {
337
- t.push(e.from || 0), t.push(e.to || 0);
338
- }), V.value = Math.max(...t), H.value = Math.min(...t);
339
- let n = j.value.style.chart.animation.speed, r = Math.abs(e - U.value) / (n * 60);
340
- function i() {
341
- U.value < e ? U.value = Math.min(U.value + r, e) : U.value > e && (U.value = Math.max(U.value - r, e)), U.value !== e && requestAnimationFrame(i);
342
- }
343
- i();
344
- }
345
- let Y = d(() => {
346
- let e = j.value.responsive ? Math.min(B.value.width, B.value.height) : B.value.width, t = 2.5 / j.value.style.chart.layout.radiusRatio;
347
- return {
348
- arcs: e / t,
349
- gradients: e / (t * 1.1),
350
- base: j.value.responsive ? B.value.height / 1.618 : B.value.height * .7,
351
- ratingBase: j.value.responsive ? B.value.height / 2 + B.value.height / 4 : B.value.height * .9,
352
- pointerSize: j.value.responsive ? Math.min(B.value.width, B.value.height) / 3 : B.value.width / 3.2
353
- };
354
- }), X = d(() => s({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.arcs, Y.value.arcs, 1, 1, 1, 180, 109.9495, 40 * B.value.trackSize)), qt = d(() => s({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio, 1, 1, 1, 180, 109.9495, 40 * B.value.trackSize)), Z = d(() => X.value.map((e) => Y.value.arcs * j.value.style.chart.layout.segmentNames.offsetRatio * (e.nameOffsetRatio || 1))), Jt = d(() => {
355
- let { x: e, y: t } = l({
356
- initX: X.value[0].firstSeparator.x,
357
- initY: X.value[0].firstSeparator.y,
358
- centerX: W.value.x1,
359
- centerY: W.value.y1,
360
- offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
361
- }), { x: n, y: r } = l({
362
- initX: X.value[0].startX,
363
- initY: X.value[0].startY,
364
- centerX: W.value.x1,
365
- centerY: W.value.y1,
366
- offset: j.value.style.chart.layout.segmentSeparators.offsetOut
367
- });
368
- return {
369
- x1: e,
370
- y1: t,
371
- x2: n,
372
- y2: r
373
- };
374
- }), Yt = d(() => X.value.map((e) => {
375
- let { x: t, y: n } = l({
376
- initX: e.separator.x,
377
- initY: e.separator.y,
378
- centerX: W.value.x1,
379
- centerY: W.value.y1,
380
- offset: -j.value.style.chart.layout.segmentSeparators.offsetIn
381
- }), { x: r, y: i } = l({
382
- initX: e.endX,
383
- initY: e.endY,
384
- centerX: W.value.x1,
385
- centerY: W.value.y1,
386
- offset: j.value.style.chart.layout.segmentSeparators.offsetOut
387
- });
388
- return {
389
- x1: t,
390
- y1: n,
391
- x2: r,
392
- y2: i
393
- };
394
- }));
395
- function Xt(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 Zt = d(() => Xt(X.value.map((e) => e.proportion * 100))), Qt = d(() => s({ series: R.value.series }, B.value.width / 2, Y.value.base, Y.value.gradients, Y.value.gradients, .95, 1, 1, 180, 110.02, 2 * B.value.trackSize)), $t = d(() => {
401
- let e = H.value >= 0 ? -H.value : Math.abs(H.value);
402
- return r({
403
- radius: j.value.style.chart.layout.indicatorArc.radius * B.value.trackSize,
404
- centerX: B.value.width / 2,
405
- centerY: Y.value.base,
406
- percentage: le((U.value + e) / (V.value + e))
407
- });
408
- }), Q = b(!1);
409
- function en(e) {
410
- Q.value = e, Et.value += 1;
411
- }
412
- let $ = b(!1);
413
- function tn() {
414
- $.value = !$.value;
415
- }
416
- async function nn({ scale: e = 2 } = {}) {
417
- if (!O.value) return;
418
- let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
419
- domElement: O.value,
420
- base64: !0,
421
- img: !0,
422
- scale: e
423
- });
424
- return {
425
- imageUri: i,
426
- base64: a,
427
- title: j.value.style.chart.title.text,
428
- width: t,
429
- height: n,
430
- aspectRatio: r
431
- };
432
- }
433
- let rn = d(() => j.value.style.chart.backgroundColor), { exportSvg: an, getSvg: on } = he({
434
- svg: P,
435
- title: d(() => j.value.style.chart.title),
436
- backgroundColor: rn
437
- });
438
- async function sn({ isCb: e }) {
439
- A.value = !0, await je();
440
- try {
441
- if (e) {
442
- let { blob: e, url: t, text: n, dataUrl: r } = await on();
443
- await Promise.resolve(j.value.userOptions.callbacks.svg({
444
- blob: e,
445
- url: t,
446
- text: n,
447
- dataUrl: r
448
- }));
449
- } else await Promise.resolve(an());
450
- } finally {
451
- A.value = !1;
452
- }
453
- }
454
- function cn(e) {
455
- if (e?.stage === "start") {
456
- k.value = !0;
457
- return;
458
- }
459
- if (e?.stage === "end") {
460
- k.value = !1;
461
- return;
462
- }
463
- zt();
464
- }
465
- async function ln() {
466
- if (Ct("copyAlt", {
467
- config: j.value,
468
- dataset: R.value
469
- }), !j.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(j.value.userOptions.callbacks.altCopy({
474
- config: j.value,
475
- dataset: R.value
476
- }));
477
- }
478
- return be({
479
- getImage: nn,
480
- generatePdf: Rt,
481
- generateImage: zt,
482
- generateSvg: sn,
483
- toggleAnnotator: tn,
484
- toggleFullscreen: en,
485
- copyAlt: ln
486
- }), (e, t) => (y(), m("div", {
487
- class: Me(`vue-data-ui-component vue-ui-gauge ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
488
- ref_key: "gaugeChart",
489
- ref: O,
490
- id: `vue-ui-gauge_${D.value}`,
491
- style: Ne(`font-family:${j.value.style.fontFamily};width:100%; text-align:center;background:${j.value.style.chart.backgroundColor};${j.value.responsive ? "height: 100%" : ""}`),
492
- onMouseenter: t[0] ||= () => w(It)(!0),
493
- onMouseleave: t[1] ||= () => w(It)(!1)
494
- }, [
495
- j.value.userOptions.buttons.annotator ? (y(), f(w(_t), {
496
- key: 0,
497
- svgRef: w(P),
498
- backgroundColor: j.value.style.chart.backgroundColor,
499
- color: j.value.style.chart.color,
500
- active: $.value,
501
- isCursorPointer: Mt.value,
502
- onClose: tn
503
- }, {
504
- "annotator-action-close": T(() => [S(e.$slots, "annotator-action-close", {}, void 0, !0)]),
505
- "annotator-action-color": T(({ color: t }) => [S(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
506
- "annotator-action-draw": T(({ mode: t }) => [S(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
507
- "annotator-action-undo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
508
- "annotator-action-redo": T(({ disabled: t }) => [S(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
509
- "annotator-action-delete": T(({ disabled: t }) => [S(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
510
- _: 3
511
- }, 8, [
512
- "svgRef",
513
- "backgroundColor",
514
- "color",
515
- "active",
516
- "isCursorPointer"
517
- ])) : p("", !0),
518
- Bt.value ? (y(), m("div", {
519
- key: 1,
520
- ref_key: "noTitle",
521
- ref: At,
522
- class: "vue-data-ui-no-title-space",
523
- style: "height:36px; width: 100%;background:transparent"
524
- }, null, 512)) : p("", !0),
525
- j.value.style.chart.title.text ? (y(), m("div", {
526
- key: 2,
527
- ref_key: "chartTitle",
528
- ref: Dt,
529
- style: "width:100%;background:transparent;padding-bottom:12px"
530
- }, [(y(), f(ye, {
531
- key: `title_${jt.value}`,
532
- config: {
533
- title: {
534
- cy: "gauge-div-title",
535
- ...j.value.style.chart.title
536
- },
537
- subtitle: {
538
- cy: "gauge-div-subtitle",
539
- ...j.value.style.chart.title.subtitle
540
- }
541
- }
542
- }, {
543
- default: T(() => [j.value.translations.base && w(M).base ? (y(), m("span", Ve, C(j.value.translations.base) + ": " + C(w(M).base), 1)) : p("", !0)]),
544
- _: 1
545
- }, 8, ["config"]))], 512)) : p("", !0),
546
- j.value.userOptions.show && wt.value && (w(Lt) || w(Ft)) ? (y(), f(w(vt), {
547
- ref_key: "details",
548
- ref: Tt,
549
- key: `user_options_${Et.value}`,
550
- backgroundColor: j.value.style.chart.backgroundColor,
551
- color: j.value.style.chart.color,
552
- isImaging: w(L),
553
- isPrinting: w(I),
554
- uid: D.value,
555
- hasXls: !1,
556
- hasPdf: j.value.userOptions.buttons.pdf,
557
- hasImg: j.value.userOptions.buttons.img,
558
- hasSvg: j.value.userOptions.buttons.svg,
559
- hasFullscreen: j.value.userOptions.buttons.fullscreen,
560
- hasAltCopy: j.value.userOptions.buttons.altCopy,
561
- isFullscreen: Q.value,
562
- titles: { ...j.value.userOptions.buttonTitles },
563
- chartElement: O.value,
564
- callbacks: j.value.userOptions.callbacks,
565
- printScale: j.value.userOptions.print.scale,
566
- position: j.value.userOptions.position,
567
- hasAnnotator: j.value.userOptions.buttons.annotator,
568
- isAnnotation: $.value,
569
- isCursorPointer: Mt.value,
570
- onToggleFullscreen: en,
571
- onGeneratePdf: w(Rt),
572
- onGenerateImage: cn,
573
- onGenerateSvg: sn,
574
- onToggleAnnotator: tn,
575
- onCopyAlt: ln,
576
- style: Ne({ visibility: w(Lt) ? w(Ft) ? "visible" : "hidden" : "visible" })
577
- }, Oe({ _: 2 }, [
578
- e.$slots.menuIcon ? {
579
- name: "menuIcon",
580
- fn: T(({ isOpen: t, color: n }) => [S(e.$slots, "menuIcon", v(g({
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: T(() => [S(e.$slots, "optionPdf", {}, void 0, !0)]),
589
- key: "1"
590
- } : void 0,
591
- e.$slots.optionImg ? {
592
- name: "optionImg",
593
- fn: T(() => [S(e.$slots, "optionImg", {}, void 0, !0)]),
594
- key: "2"
595
- } : void 0,
596
- e.$slots.optionSvg ? {
597
- name: "optionSvg",
598
- fn: T(() => [S(e.$slots, "optionSvg", {}, void 0, !0)]),
599
- key: "3"
600
- } : void 0,
601
- e.$slots.optionFullscreen ? {
602
- name: "optionFullscreen",
603
- fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [S(e.$slots, "optionFullscreen", v(g({
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: T(({ toggleAnnotator: t, isAnnotator: n }) => [S(e.$slots, "optionAnnotator", v(g({
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: T(({ altCopy: t }) => [S(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
620
- key: "6"
621
- } : void 0,
622
- e.$slots["custom-menu-before"] ? {
623
- name: "custom-menu-before",
624
- fn: T(() => [S(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: T(() => [S(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
- ])) : p("", !0),
655
- (y(), m("svg", {
656
- ref_key: "svgRef",
657
- ref: P,
658
- xmlns: w(se),
659
- class: Me({
660
- "vue-data-ui-fullscreen--on": Q.value,
661
- "vue-data-ui-fulscreen--off": !Q.value
662
- }),
663
- viewBox: `0 0 ${B.value.width <= 0 ? 10 : B.value.width} ${B.value.height <= 0 ? 10 : B.value.height}`,
664
- style: Ne(`max-width:100%;overflow:hidden !important;background:transparent;color:${j.value.style.chart.color}`)
665
- }, [
666
- ke(w(yt)),
667
- e.$slots["chart-background"] ? (y(), m("foreignObject", {
668
- key: 0,
669
- x: 0,
670
- y: 0,
671
- width: B.value.width <= 0 ? 10 : B.value.width,
672
- height: B.value.height <= 0 ? 10 : B.value.height,
673
- style: { pointerEvents: "none" }
674
- }, [S(e.$slots, "chart-background", {}, void 0, !0)], 8, Ue)) : p("", !0),
675
- h("defs", null, [ke(Ce, {
676
- t: "radial",
677
- id: `gradient_${D.value}`,
678
- cx: "50%",
679
- cy: "50%",
680
- r: "50%",
681
- fx: "50%",
682
- fy: "50%",
683
- stops: [
684
- [
685
- "0%",
686
- w(ue)("#FFFFFF", 1),
687
- 1
688
- ],
689
- [
690
- "80%",
691
- w(ue)("#FFFFFF", j.value.style.chart.layout.track.gradientIntensity),
692
- 1
693
- ],
694
- [
695
- "100%",
696
- w(ue)("#FFFFFF", 1),
697
- 1
698
- ]
699
- ]
700
- }, null, 8, ["id", "stops"])]),
701
- h("defs", null, [h("filter", {
702
- id: `blur_${D.value}`,
703
- x: "-50%",
704
- y: "-50%",
705
- width: "200%",
706
- height: "200%"
707
- }, [h("feGaussianBlur", {
708
- in: "SourceGraphic",
709
- stdDeviation: 100 / j.value.style.chart.layout.track.gradientIntensity
710
- }, null, 8, Ge)], 8, We)]),
711
- e.$slots.pattern ? (y(), m("g", Ke, [(y(!0), m(u, null, x(X.value, (t, n) => (y(), m("defs", null, [S(e.$slots, "pattern", _({ ref_for: !0 }, {
712
- seriesIndex: n,
713
- patternId: `pattern_${D.value}_${n}`
714
- }), void 0, !0)]))), 256))])) : p("", !0),
715
- (y(!0), m(u, null, x(X.value, (e, t) => (y(), m("path", {
716
- key: `arc_${t}`,
717
- d: e.arcSlice,
718
- fill: e.color,
719
- stroke: j.value.style.chart.backgroundColor,
720
- "stroke-linecap": "round"
721
- }, null, 8, qe))), 128)),
722
- e.$slots.pattern ? (y(!0), m(u, { key: 2 }, x(X.value, (e, t) => (y(), m("path", {
723
- key: `arc_${t}`,
724
- d: e.arcSlice,
725
- fill: `url(#pattern_${D.value}_${t})`,
726
- stroke: j.value.style.chart.backgroundColor,
727
- "stroke-linecap": "round"
728
- }, null, 8, Je))), 128)) : p("", !0),
729
- j.value.style.chart.layout.indicatorArc.show ? (y(), m("path", {
730
- key: 3,
731
- d: $t.value,
732
- fill: j.value.style.chart.layout.indicatorArc.fill
733
- }, null, 8, Ye)) : p("", !0),
734
- j.value.style.chart.layout.segmentNames.show && j.value.style.chart.layout.segmentNames.curved ? (y(), m(u, { key: 4 }, [(y(!0), m(u, null, x(X.value, (e, t) => (y(), m("path", {
735
- id: `curve_${D.value}_${t}`,
736
- d: `M ${W.value.x1},${W.value.y1} m -${Z.value[t]},0 a ${Z.value[t]},${Z.value[t]} 0 1,1 ${2 * Z.value[t]},0 a ${Z.value[t]},${Z.value[t]} 0 1,1 -${2 * Z.value[t]},0`,
737
- fill: "transparent"
738
- }, null, 8, Xe))), 256)), (y(!0), m(u, null, x(X.value, (e, t) => (y(), m("text", {
739
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
740
- "font-size": q.value,
741
- "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
742
- "text-anchor": "middle"
743
- }, [h("textPath", {
744
- href: `#curve_${D.value}_${t}`,
745
- startOffset: Zt.value[t]
746
- }, C(e.name || ""), 9, Qe)], 8, Ze))), 256))], 64)) : p("", !0),
747
- j.value.style.chart.layout.segmentNames.show && !j.value.style.chart.layout.segmentNames.curved ? (y(!0), m(u, { key: 5 }, x(qt.value, (e, t) => (y(), m("text", {
748
- class: "vue-ui-gauge-label-flat",
749
- "text-anchor": w(re)(e, !1, 12).anchor,
750
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
751
- "font-size": q.value,
752
- "font-weight": j.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
753
- innerHTML: w(te)({
754
- content: String(e.name ?? ""),
755
- fontSize: q.value,
756
- fill: j.value.style.chart.layout.segmentNames.useSerieColor ? e.color : j.value.style.chart.layout.segmentNames.color,
757
- x: e.center.endX,
758
- y: e.center.endY
759
- })
760
- }, null, 8, $e))), 256)) : p("", !0),
761
- j.value.style.chart.layout.track.useGradient ? (y(!0), m(u, { key: 6 }, x(Qt.value, (e, t) => (y(), m("path", {
762
- key: `arc_${t}`,
763
- d: e.arcSlice,
764
- fill: "#FFFFFF",
765
- stroke: "none",
766
- "stroke-linecap": "round",
767
- filter: `url(#blur_${D.value})`
768
- }, null, 8, et))), 128)) : p("", !0),
769
- j.value.style.chart.layout.segmentSeparators.show ? (y(), m(u, { key: 7 }, [
770
- h("line", _(Jt.value, {
771
- stroke: j.value.style.chart.backgroundColor,
772
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
773
- "stroke-linecap": "round"
774
- }), null, 16, tt),
775
- h("line", _(Jt.value, {
776
- stroke: j.value.style.chart.layout.segmentSeparators.stroke,
777
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
778
- "stroke-linecap": "round"
779
- }), null, 16, nt),
780
- (y(!0), m(u, null, x(Yt.value, (e) => (y(), m("line", _({ ref_for: !0 }, e, {
781
- stroke: j.value.style.chart.backgroundColor,
782
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
783
- "stroke-linecap": "round"
784
- }), null, 16, rt))), 256)),
785
- (y(!0), m(u, null, x(Yt.value, (e) => (y(), m("line", _({ ref_for: !0 }, e, {
786
- stroke: j.value.style.chart.layout.segmentSeparators.stroke,
787
- "stroke-width": j.value.style.chart.layout.segmentSeparators.strokeWidth,
788
- "stroke-linecap": "round"
789
- }), null, 16, it))), 256))
790
- ], 64)) : p("", !0),
791
- j.value.style.chart.layout.markers.show ? (y(), m("g", at, [(y(!0), m(u, null, x(X.value, (e, t) => (y(), m("text", {
792
- x: w(l)({
793
- centerX: W.value.x1,
794
- centerY: Y.value.base,
795
- initX: e.center.startX,
796
- initY: e.center.startY,
797
- offset: B.value.markerOffset
798
- }).x,
799
- y: w(l)({
800
- centerX: W.value.x1,
801
- centerY: Y.value.base,
802
- initX: e.center.startX,
803
- initY: e.center.startY,
804
- offset: B.value.markerOffset
805
- }).y,
806
- "text-anchor": e.center.startX < W.value.x1 - 5 ? "end" : e.center.startX > W.value.x1 + 5 ? "start" : "middle",
807
- "font-size": B.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
808
- "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
809
- fill: j.value.style.chart.layout.markers.color
810
- }, C(w(ae)(j.value.style.chart.layout.markers.formatter, e.from, w(ne)({
811
- p: j.value.style.chart.layout.markers.prefix,
812
- v: e.from,
813
- s: j.value.style.chart.layout.markers.suffix,
814
- r: j.value.style.chart.layout.markers.roundingValue
815
- }))), 9, ot))), 256))])) : p("", !0),
816
- j.value.style.chart.layout.markers.show ? (y(), m("text", {
817
- key: 9,
818
- x: w(l)({
819
- centerX: B.value.width / 2,
820
- centerY: Y.value.base,
821
- initX: X.value.at(-1).endX,
822
- initY: X.value.at(-1).endY,
823
- offset: B.value.markerOffset
824
- }).x,
825
- y: w(l)({
826
- centerX: B.value.width / 2,
827
- centerY: Y.value.base,
828
- initX: X.value.at(-1).endX,
829
- initY: X.value.at(-1).endY,
830
- offset: B.value.markerOffset
831
- }).y,
832
- "text-anchor": "start",
833
- "font-size": B.value.labelFontSize * j.value.style.chart.layout.markers.fontSizeRatio,
834
- "font-weight": `${j.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
835
- fill: j.value.style.chart.layout.markers.color
836
- }, C(w(ae)(j.value.style.chart.layout.markers.formatter, V.value, w(ne)({
837
- p: j.value.style.chart.layout.markers.prefix,
838
- v: V.value,
839
- s: j.value.style.chart.layout.markers.suffix,
840
- r: j.value.style.chart.layout.markers.roundingValue
841
- }))), 9, st)) : p("", !0),
842
- j.value.style.chart.layout.pointer.show ? (y(), m(u, { key: 10 }, [j.value.style.chart.layout.pointer.type === "rounded" ? (y(), m("g", ct, [
843
- isNaN(W.value.x2) ? p("", !0) : (y(), m("line", {
844
- key: 0,
845
- x1: W.value.x1,
846
- y1: W.value.y1,
847
- x2: W.value.x2,
848
- y2: W.value.y2,
849
- stroke: j.value.style.chart.layout.pointer.stroke,
850
- "stroke-width": B.value.pointerStrokeWidth,
851
- "stroke-linecap": "round"
852
- }, null, 8, lt)),
853
- isNaN(W.value.x2) ? p("", !0) : (y(), m("line", {
854
- key: 1,
855
- x1: W.value.x1,
856
- y1: W.value.y1,
857
- x2: W.value.x2,
858
- y2: W.value.y2,
859
- stroke: j.value.style.chart.layout.pointer.useRatingColor ? Ut.value : j.value.style.chart.layout.pointer.color,
860
- "stroke-linecap": "round",
861
- "stroke-width": B.value.pointerStrokeWidth * .7
862
- }, null, 8, ut)),
863
- !isNaN(W.value.x2) && j.value.style.chart.layout.track.useGradient ? (y(), m("line", {
864
- key: 2,
865
- x1: W.value.x1,
866
- y1: W.value.y1,
867
- x2: W.value.x2,
868
- y2: W.value.y2,
869
- stroke: "white",
870
- "stroke-linecap": "round",
871
- "stroke-width": B.value.pointerStrokeWidth * .3,
872
- filter: `url(#blur_${D.value})`
873
- }, null, 8, dt)) : p("", !0)
874
- ])) : (y(), m("g", ft, [Ht.value ? (y(), m("path", {
875
- key: 0,
876
- d: Ht.value,
877
- fill: j.value.style.chart.layout.pointer.useRatingColor ? Ut.value : j.value.style.chart.layout.pointer.color,
878
- stroke: j.value.style.chart.layout.pointer.stroke,
879
- "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
880
- "stroke-linejoin": "round"
881
- }, null, 8, pt)) : p("", !0)])), h("circle", {
882
- cx: B.value.width / 2,
883
- cy: Y.value.base,
884
- fill: j.value.style.chart.layout.pointer.circle.color,
885
- r: B.value.pointerRadius <= 0 ? 1e-4 : B.value.pointerRadius,
886
- "stroke-width": j.value.style.chart.layout.pointer.circle.strokeWidth,
887
- stroke: j.value.style.chart.layout.pointer.circle.stroke
888
- }, null, 8, mt)], 64)) : p("", !0),
889
- j.value.style.chart.legend.show ? (y(), m("text", {
890
- key: 11,
891
- x: B.value.width / 2,
892
- y: Y.value.ratingBase,
893
- "text-anchor": "middle",
894
- "font-size": B.value.legendFontSize,
895
- "font-weight": "bold",
896
- fill: j.value.style.chart.legend.useRatingColor ? Ut.value : j.value.style.chart.legend.color
897
- }, C(w(ae)(j.value.style.chart.legend.formatter, U.value, w(ne)({
898
- p: j.value.style.chart.legend.prefix + (j.value.style.chart.legend.showPlusSymbol && U.value > 0 ? "+" : ""),
899
- v: U.value,
900
- s: j.value.style.chart.legend.suffix,
901
- r: j.value.style.chart.legend.roundingValue
902
- }))), 9, ht)) : p("", !0),
903
- S(e.$slots, "svg", { svg: {
904
- ...B.value,
905
- isPrintingImg: w(I) || w(L) || k.value,
906
- isPrintingSvg: A.value
907
- } }, void 0, !0)
908
- ], 14, He)),
909
- e.$slots.watermark ? (y(), m("div", gt, [S(e.$slots, "watermark", v(g({ isPrinting: w(I) || w(L) || k.value || A.value })), void 0, !0)])) : p("", !0),
910
- h("div", {
911
- ref_key: "chartLegend",
912
- ref: Ot
913
- }, [S(e.$slots, "legend", { legend: R.value }, void 0, !0)], 512),
914
- e.$slots.source ? (y(), m("div", {
915
- key: 5,
916
- ref_key: "source",
917
- ref: kt,
918
- dir: "auto"
919
- }, [S(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
920
- S(e.$slots, "skeleton", {}, () => [w(Pt) ? (y(), f(me, { key: 0 })) : p("", !0)], !0)
921
- ], 46, Be));
922
- }
923
- }, [["__scopeId", "data-v-e93a2d33"]]);
924
- //#endregion
925
- export { ze as n, _t as t };