vue-data-ui 3.9.16 → 3.9.18

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 (154) hide show
  1. package/README.md +16 -4
  2. package/dist/{BaseDraggableDialog-Z5LfhW87.js → BaseDraggableDialog-8UqNlf3w.js} +1 -1
  3. package/dist/BaseIcon-BncZ4WRx.js +392 -0
  4. package/dist/{BaseZoomControls-e4hnaBoq.js → BaseZoomControls-DMSmw-kf.js} +1 -1
  5. package/dist/{ColorPicker-B2OcIXIs.js → ColorPicker-CqfJnNHq.js} +1 -1
  6. package/dist/{DataTable-BT_IeqPe.js → DataTable-CK9yaC9w.js} +1 -1
  7. package/dist/{NonSvgPenAndPaper-Dgnix4B_.js → NonSvgPenAndPaper-DVkY2uxn.js} +2 -2
  8. package/dist/{PackageVersion-Br3DrrFh.js → PackageVersion-Dzikj3hZ.js} +1 -1
  9. package/dist/{PenAndPaper-CvyKWfNl.js → PenAndPaper-BOWKtVcI.js} +2 -2
  10. package/dist/{Slicer-BCPOPoP2.js → Slicer-vI2YxXu8.js} +1 -1
  11. package/dist/{SlicerPreview-CgKqSG-h.js → SlicerPreview-Cnk2x352.js} +1 -1
  12. package/dist/{Title-DSOZzIrU.js → Title-D0nD-PMs.js} +1 -1
  13. package/dist/{UserOptions-BQO4YFrn.js → UserOptions-dQg0xjBj.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-history-plot.js +1 -1
  39. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  40. package/dist/components/vue-ui-icon.js +1 -1
  41. package/dist/components/vue-ui-kpi.js +1 -1
  42. package/dist/components/vue-ui-mini-loader.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/style.css +1 -1
  82. package/dist/types/vue-data-ui.d.ts +17 -0
  83. package/dist/types/vue-ui-icon.d.ts +1 -0
  84. package/dist/{useNestedProp-2p4Tjzc8.js → useNestedProp-DaR1dBmj.js} +29 -11
  85. package/dist/{vue-data-ui-BWmTki6E.js → vue-data-ui-B1X5-ykN.js} +67 -67
  86. package/dist/vue-data-ui.js +70 -70
  87. package/dist/{vue-ui-3d-bar-HXoQbs8d.js → vue-ui-3d-bar-DmvQV8PV.js} +3 -3
  88. package/dist/{vue-ui-accordion-Dm0mNNKQ.js → vue-ui-accordion-ljh5kfIe.js} +2 -2
  89. package/dist/{vue-ui-age-pyramid-CGsJUmDL.js → vue-ui-age-pyramid-CSG_1rJ1.js} +3 -3
  90. package/dist/{vue-ui-annotator-BorYyD6t.js → vue-ui-annotator-Bh_ga3Bp.js} +4 -4
  91. package/dist/{vue-ui-bullet-B5H4sazy.js → vue-ui-bullet-CkKUBL3O.js} +3 -3
  92. package/dist/{vue-ui-candlestick-COYxFrX8.js → vue-ui-candlestick-BVtA53AK.js} +4 -4
  93. package/dist/{vue-ui-carousel-table-BsGu8u47.js → vue-ui-carousel-table-psdAj1fY.js} +2 -2
  94. package/dist/{vue-ui-chestnut-CPleio5s.js → vue-ui-chestnut-CTJZ0inC.js} +2 -2
  95. package/dist/{vue-ui-chord-BL2kiRYa.js → vue-ui-chord-2dmjwWLN.js} +3 -3
  96. package/dist/{vue-ui-circle-pack-Ctax0o8l.js → vue-ui-circle-pack-CZSzUKwS.js} +3 -3
  97. package/dist/{vue-ui-cursor-CcGTsKr9.js → vue-ui-cursor-CrM4nhFu.js} +2 -2
  98. package/dist/{vue-ui-dag-BZeJu8RB.js → vue-ui-dag-L-rXpTen.js} +4 -4
  99. package/dist/{vue-ui-dashboard-DU95z4Iw.js → vue-ui-dashboard-Dt3Z3r-J.js} +66 -66
  100. package/dist/{vue-ui-digits-DsKNaw_K.js → vue-ui-digits-DXXegZ9T.js} +1 -1
  101. package/dist/{vue-ui-donut-CN7x4Wrm.js → vue-ui-donut-BKMlg6dF.js} +3 -3
  102. package/dist/{vue-ui-donut-evolution-D4zNv3y3.js → vue-ui-donut-evolution-_g_YnBOH.js} +4 -4
  103. package/dist/{vue-ui-dumbbell-CWi8sl8t.js → vue-ui-dumbbell-B3RWqHxL.js} +3 -3
  104. package/dist/{vue-ui-flow-BydA9ef6.js → vue-ui-flow-D7sHBRZO.js} +3 -3
  105. package/dist/{vue-ui-funnel-C83WaW6R.js → vue-ui-funnel-6X1BPUck.js} +3 -3
  106. package/dist/{vue-ui-galaxy-BnY90Ga4.js → vue-ui-galaxy-Bpmbx6hh.js} +3 -3
  107. package/dist/{vue-ui-gauge-HqwbKAiY.js → vue-ui-gauge-DW1-iCbx.js} +3 -3
  108. package/dist/{vue-ui-geo-wW6nP6hV.js → vue-ui-geo-4OM0G7_H.js} +4 -4
  109. package/dist/{vue-ui-gizmo-B_MBb1r3.js → vue-ui-gizmo-_BEV8PJZ.js} +2 -2
  110. package/dist/{vue-ui-heatmap-Ctb6By74.js → vue-ui-heatmap-ULLzlslY.js} +4 -4
  111. package/dist/{vue-ui-history-plot-ptSYfBrS.js → vue-ui-history-plot-BMqriuZi.js} +3 -3
  112. package/dist/{vue-ui-horizontal-bar-Oj8JxE1o.js → vue-ui-horizontal-bar-Dex9iCdq.js} +8 -8
  113. package/dist/{vue-ui-kpi-CyQCcR37.js → vue-ui-kpi-Ct5HZzxS.js} +2 -2
  114. package/dist/{vue-ui-mini-loader-CXB5jl9q.js → vue-ui-mini-loader-DdzurIs7.js} +1 -1
  115. package/dist/{vue-ui-molecule-B3f4D6xs.js → vue-ui-molecule-DiB3hhpp.js} +2 -2
  116. package/dist/{vue-ui-mood-radar-BymSOzbZ.js → vue-ui-mood-radar-CeB_1XXR.js} +3 -3
  117. package/dist/{vue-ui-nested-donuts-Bm75G0c4.js → vue-ui-nested-donuts-BfQ5i4Dk.js} +3 -3
  118. package/dist/{vue-ui-onion-BPPHtjJs.js → vue-ui-onion-HITeSjBi.js} +3 -3
  119. package/dist/{vue-ui-parallel-coordinate-plot-CesySg69.js → vue-ui-parallel-coordinate-plot-Y8qZ5BXo.js} +3 -3
  120. package/dist/{vue-ui-quadrant-Dxhvwzha.js → vue-ui-quadrant-UE3hv2RZ.js} +3 -3
  121. package/dist/{vue-ui-quick-chart-CmfR2FF6.js → vue-ui-quick-chart-juzntY-l.js} +3 -3
  122. package/dist/{vue-ui-radar-9TUuj49-.js → vue-ui-radar-DqhMgd1S.js} +3 -3
  123. package/dist/{vue-ui-rating-C-sJPTB9.js → vue-ui-rating-CDkXzEGU.js} +1 -1
  124. package/dist/{vue-ui-relation-circle-CSw8wygj.js → vue-ui-relation-circle-p0fVe9wd.js} +3 -3
  125. package/dist/{vue-ui-ridgeline-pwJ8hRsj.js → vue-ui-ridgeline-DH36TkJ3.js} +3 -3
  126. package/dist/vue-ui-rings-GBOb-k_0.js +1029 -0
  127. package/dist/{vue-ui-scatter-DqGnrGmi.js → vue-ui-scatter-aON5jo-X.js} +3 -3
  128. package/dist/{vue-ui-skeleton-CprmuWSV.js → vue-ui-skeleton-BoQQLo2L.js} +2 -2
  129. package/dist/{vue-ui-smiley-TGFkjkro.js → vue-ui-smiley-BckMTu5I.js} +1 -1
  130. package/dist/{vue-ui-spark-trend-BMgbFhyC.js → vue-ui-spark-trend-zyu6M7wl.js} +2 -2
  131. package/dist/{vue-ui-sparkbar-BR9c9pzQ.js → vue-ui-sparkbar-BiPTwBnh.js} +2 -2
  132. package/dist/{vue-ui-sparkgauge-QR8NMM76.js → vue-ui-sparkgauge-B0VTHDrB.js} +2 -2
  133. package/dist/{vue-ui-sparkhistogram-BZPWjy4g.js → vue-ui-sparkhistogram-DSU-WHi2.js} +2 -2
  134. package/dist/{vue-ui-sparkline-B7DUXyD7.js → vue-ui-sparkline-K8TocD93.js} +2 -2
  135. package/dist/{vue-ui-sparkstackbar-CBURF9DG.js → vue-ui-sparkstackbar-Bc5YaGQf.js} +2 -2
  136. package/dist/{vue-ui-stackbar-8wfpQv75.js → vue-ui-stackbar-BZR6Vk2T.js} +4 -4
  137. package/dist/{vue-ui-stackline-KEkKIgeE.js → vue-ui-stackline-DfEQERd6.js} +4 -4
  138. package/dist/{vue-ui-strip-plot-tBq-1HEl.js → vue-ui-strip-plot-VqjAd4ge.js} +3 -3
  139. package/dist/{vue-ui-table-DQtQ5vth.js → vue-ui-table-LcIJ_L6N.js} +4 -4
  140. package/dist/{vue-ui-table-heatmap-CUOXC4JX.js → vue-ui-table-heatmap-B2_EhkHE.js} +2 -2
  141. package/dist/{vue-ui-table-sparkline-B-fJpPuE.js → vue-ui-table-sparkline-B7b73r_a.js} +2 -2
  142. package/dist/{vue-ui-thermometer-BjWvhObo.js → vue-ui-thermometer-Bv7Nlhbo.js} +3 -3
  143. package/dist/{vue-ui-timer-KHzMsLix.js → vue-ui-timer-B3hOumBW.js} +4 -4
  144. package/dist/{vue-ui-tiremarks-DHTm-0Rk.js → vue-ui-tiremarks-CqiqOHza.js} +3 -3
  145. package/dist/{vue-ui-treemap-BUskEYhL.js → vue-ui-treemap-DqliirQY.js} +4 -4
  146. package/dist/{vue-ui-waffle-DB2x0hkH.js → vue-ui-waffle-DQFdzYhf.js} +3 -3
  147. package/dist/{vue-ui-wheel-CIF3OMNS.js → vue-ui-wheel-BMmC57eW.js} +3 -3
  148. package/dist/{vue-ui-word-cloud-DA2S9vUS.js → vue-ui-word-cloud-CMy__euy.js} +4 -4
  149. package/dist/{vue-ui-world-GYXka5Ap.js → vue-ui-world-D-IA4mSy.js} +2 -2
  150. package/dist/{vue-ui-xy-GG6jRpRS.js → vue-ui-xy-CqKeB2O8.js} +5 -5
  151. package/dist/{vue-ui-xy-canvas-s7QCO2Kv.js → vue-ui-xy-canvas-sIZXQodQ.js} +6 -6
  152. package/package.json +1 -1
  153. package/dist/BaseIcon-CbVDYv89.js +0 -265
  154. package/dist/vue-ui-rings-BQK3rKYv.js +0 -908
@@ -0,0 +1,1029 @@
1
+ import { defineAsyncComponent as E, useSlots as Wt, ref as r, computed as v, toRefs as Ut, watch as Z, shallowRef as Ke, onMounted as jt, onBeforeUnmount as Ht, createElementBlock as b, openBlock as u, unref as n, normalizeStyle as M, normalizeClass as B, createBlock as P, createCommentVNode as y, createElementVNode as m, createVNode as ee, withCtx as i, renderSlot as c, normalizeProps as $, guardReactiveProps as L, createSlots as ge, Fragment as te, renderList as be, mergeProps as Qe, Teleport as Xt, toDisplayString as fe, resolveDynamicComponent as Gt, createTextVNode as Ze, nextTick as Yt } from "vue";
2
+ import { c as et, t as qt, i as Jt, j as V, o as tt, g as pe, l as Kt, k as Qt, a7 as Zt, m as lt, a as ye, d as I, X as el, s as tl, h as ll, $ as al, v as ol, r as sl, U as nl, y as rl, _ as ul } from "./lib-2iaAPQ_c.js";
3
+ import { b as il } from "./labelUtils-B3mOOEke.js";
4
+ import { t as cl, u as vl } from "./useResponsive-DfdjqQps.js";
5
+ import { u as dl, a as me } from "./useNestedProp-DaR1dBmj.js";
6
+ import { u as hl } from "./usePrinter-ChVMpU2f.js";
7
+ import { u as gl, B as bl } from "./BaseScanner-BMpwQAfz.js";
8
+ import { u as fl } from "./useSvgExport-ByUukOZt.js";
9
+ import { u as pl } from "./useThemeCheck-DGJ31Vi5.js";
10
+ import { u as yl } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
12
+ import kl from "./img-CqYIrJ8I.js";
13
+ import { _ as Cl } from "./Shape-12_eh8zD.js";
14
+ import wl from "./Title-D0nD-PMs.js";
15
+ import Al from "./Legend-D2xmnFPH.js";
16
+ import { _ as $l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rings: { stroke: "#3A3A3A" }, labels: { dataLabels: { color: "#CCCCCC", markers: { stroke: "#4A4A4A" } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, ot = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { rings: { stroke: "#5D4037", strokeWidth: 10 }, labels: { dataLabels: { color: "#424242", markers: { stroke: "#5D4037" } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, st = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { rings: { stroke: "#2E2E2E", strokeWidth: 10 }, labels: { dataLabels: { color: "#BDBDBD", markers: { stroke: "#2E2E2E" } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, nt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { rings: { stroke: "#1A1A1A", strokeWidth: 10 }, labels: { dataLabels: { color: "#BDBDBD", markers: { stroke: "#3A3A3A" } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, rt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { rings: { stroke: "#fbfafa", strokeWidth: 10 }, labels: { dataLabels: { color: "#8A9892", markers: { stroke: "#FFFFFF" } } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, ut = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { rings: { stroke: "#fbfafa", strokeWidth: 10 }, labels: { dataLabels: { color: "#50606C", markers: { stroke: "#50606C" } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, it = {
18
+ default: {},
19
+ dark: at,
20
+ celebration: ot,
21
+ celebrationNight: st,
22
+ hack: nt,
23
+ zen: rt,
24
+ concrete: ut
25
+ }, ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
+ __proto__: null,
27
+ celebration: ot,
28
+ celebrationNight: st,
29
+ concrete: ut,
30
+ dark: at,
31
+ default: it,
32
+ hack: nt,
33
+ zen: rt
34
+ }, Symbol.toStringTag, { value: "Module" })), Ll = ["id"], Tl = ["id"], Fl = ["xmlns", "viewBox"], xl = ["width", "height"], Sl = ["id"], _l = ["stop-color"], Dl = ["stop-color"], Ol = { key: 1 }, El = ["stroke", "cx", "cy", "r", "fill"], Bl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Pl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Il = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Nl = ["x", "y", "width", "height", "fill", "rx"], zl = ["cx", "cy", "r", "fill", "stroke"], Rl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight", "onMouseenter", "onMouseleave", "onClick", "innerHTML"], Ml = {
35
+ key: 4,
36
+ class: "vue-data-ui-watermark"
37
+ }, Vl = ["id"], Wl = ["onClick"], Ul = ["innerHTML"], jl = {
38
+ __name: "vue-ui-rings",
39
+ props: {
40
+ config: {
41
+ type: Object,
42
+ default() {
43
+ return {};
44
+ }
45
+ },
46
+ dataset: {
47
+ type: Array,
48
+ default() {
49
+ return [];
50
+ }
51
+ }
52
+ },
53
+ emits: ["selectLegend"],
54
+ setup(ct, { expose: vt, emit: dt }) {
55
+ const ht = E(() => import("./Tooltip-D0pGX8qz.js")), gt = E(() => import("./BaseIcon-BncZ4WRx.js")), bt = E(() => import("./vue-ui-accordion-ljh5kfIe.js")), ft = E(() => import("./DataTable-CK9yaC9w.js")), pt = E(() => import("./PenAndPaper-BOWKtVcI.js")), yt = E(() => import("./UserOptions-dQg0xjBj.js")), mt = E(() => import("./PackageVersion-Dzikj3hZ.js")), kt = E(() => import("./BaseDraggableDialog-8UqNlf3w.js")), { vue_ui_rings: Ct } = dl(), { isThemeValid: wt, warnInvalidTheme: At } = pl(), $t = Wt(), k = ct, C = r(!1), ke = v(() => !!k.dataset && k.dataset.length), w = r(et()), q = r(!1), le = r(""), p = r(null), Ce = r(0), F = r(null), we = r(null), Ae = r(null), $e = r(null), Le = r(null), Te = r(0), Fe = r(0), xe = r(0), ae = r(!1), Se = r(!1), U = r(null), oe = r(null), e = r(re()), { loading: T, FINAL_DATASET: _e, manualLoading: J } = gl({
56
+ ...Ut(k),
57
+ FINAL_CONFIG: e,
58
+ prepareConfig: re,
59
+ skeletonDataset: [
60
+ { name: "_", values: [13], color: "#808080" },
61
+ { name: "_", values: [8], color: "#969696" },
62
+ { name: "_", values: [5], color: "#ADADAD" },
63
+ { name: "_", values: [3], color: "#C4C4C4" },
64
+ { name: "_", values: [2], color: "#DBDBDB" }
65
+ ],
66
+ skeletonConfig: qt({
67
+ defaultConfig: e.value,
68
+ userConfig: {
69
+ userOptions: { show: !1 },
70
+ table: { show: !1 },
71
+ style: {
72
+ chart: {
73
+ backgroundColor: "#99999930",
74
+ layout: {
75
+ rings: {
76
+ stroke: "#6A6A6A",
77
+ gradient: {
78
+ underlayerColor: "#FFFFFF"
79
+ }
80
+ },
81
+ labels: {
82
+ dataLabels: {
83
+ show: !1
84
+ }
85
+ }
86
+ },
87
+ legend: {
88
+ backgroundColor: "transparent"
89
+ }
90
+ }
91
+ }
92
+ }
93
+ })
94
+ }), { userOptionsVisible: se, setUserOptionsVisibility: De, keepUserOptionState: Oe } = yl({ config: e.value }), { svgRef: ne } = ml({ config: e.value.style.chart.title });
95
+ function re() {
96
+ const t = me({
97
+ userConfig: k.config,
98
+ defaultConfig: Ct
99
+ }), a = t.theme;
100
+ if (!a) return t;
101
+ if (!wt.value(t))
102
+ return At(t), t;
103
+ const l = me({
104
+ userConfig: it[a] || k.config,
105
+ defaultConfig: t
106
+ });
107
+ return {
108
+ ...me({
109
+ userConfig: k.config,
110
+ defaultConfig: l
111
+ }),
112
+ customPalette: t.customPalette.length ? t.customPalette : Jt[t.theme] || V
113
+ };
114
+ }
115
+ Z(() => k.config, (t) => {
116
+ T.value || (e.value = re()), se.value = !e.value.userOptions.showOnChartHover, Be(), Te.value += 1, Fe.value += 1, xe.value += 1, g.value.showTable = e.value.table.show, g.value.showTooltip = e.value.style.chart.tooltip.show, g.value.showLabels = e.value.style.chart.layout.labels.dataLabels.show, d.value.width = e.value.style.chart.size, d.value.height = e.value.style.chart.size;
117
+ }, { deep: !0 });
118
+ const Ee = v(() => {
119
+ const { markers: t } = e.value.style.chart.layout.labels.dataLabels, a = z.value / 2, l = g.value.showLabels ? t.position === "left" ? a : -a : 0, o = g.value.showLabels ? d.value.width / 2 - a : 0, s = t.position === "left" ? o : -o;
120
+ return {
121
+ x: e.value.responsive ? s : l / e.value.style.chart.size * d.value.width,
122
+ y: 0 / e.value.style.chart.size * d.value.height
123
+ };
124
+ }), x = v(() => ({
125
+ x: d.value.width / 2 + Ee.value.x,
126
+ y: d.value.height / 2 + Ee.value.y
127
+ }));
128
+ Z(() => k.dataset, (t) => {
129
+ Array.isArray(t) && t.length > 0 && (J.value = !1);
130
+ }, { deep: !0 });
131
+ const D = Ke(null), W = Ke(null);
132
+ jt(() => {
133
+ Se.value = !0, Be();
134
+ });
135
+ const ue = v(() => !!e.value.debug);
136
+ function Be() {
137
+ if (tt(k.dataset) ? (pe({
138
+ componentName: "VueUiRings",
139
+ type: "dataset",
140
+ debug: ue.value
141
+ }), J.value = !0) : k.dataset.forEach((t, a) => {
142
+ t.values.length || (pe({
143
+ componentName: "VueUiRings",
144
+ type: "dataset",
145
+ debug: ue.value
146
+ }), J.value = !0), Kt({
147
+ datasetObject: t,
148
+ requiredAttributes: ["name", "values"]
149
+ }).forEach((l) => {
150
+ pe({
151
+ componentName: "VueUiRings",
152
+ type: "datasetSerieAttribute",
153
+ property: l,
154
+ index: a,
155
+ debug: ue.value
156
+ });
157
+ });
158
+ }), tt(k.dataset) || (J.value = e.value.loading), e.value.responsive) {
159
+ const t = cl(() => {
160
+ ae.value = !0;
161
+ const { width: a, height: l } = vl({
162
+ chart: F.value,
163
+ title: e.value.style.chart.title.text ? we.value : null,
164
+ legend: e.value.style.chart.legend.show ? Ae.value : null,
165
+ source: $e.value,
166
+ noTitle: Le.value
167
+ });
168
+ requestAnimationFrame(() => {
169
+ d.value.width = a, d.value.height = l - 12, ae.value = !1;
170
+ });
171
+ });
172
+ D.value && (W.value && D.value.unobserve(W.value), D.value.disconnect()), D.value = new ResizeObserver(t), W.value = F.value.parentNode, D.value.observe(W.value);
173
+ }
174
+ setTimeout(() => {
175
+ C.value = !0;
176
+ }, 600);
177
+ }
178
+ Ht(() => {
179
+ D.value && (W.value && D.value.unobserve(W.value), D.value.disconnect());
180
+ });
181
+ const { isPrinting: Pe, isImaging: Ie, generatePdf: Ne, generateImage: ze } = hl({
182
+ elementId: `rings_${w.value}`,
183
+ fileName: e.value.style.chart.title.text || "vue-ui-rings",
184
+ options: e.value.userOptions.print
185
+ }), Lt = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = v(() => Qt(e.value.customPalette)), g = r({
186
+ showTable: e.value.table.show,
187
+ showTooltip: e.value.style.chart.tooltip.show,
188
+ showLabels: e.value.style.chart.layout.labels.dataLabels.show
189
+ });
190
+ Z(e, () => {
191
+ g.value = {
192
+ showTable: e.value.table.show,
193
+ showTooltip: e.value.style.chart.tooltip.show,
194
+ showLabels: e.value.style.chart.layout.labels.dataLabels.show
195
+ };
196
+ }, { immediate: !0 });
197
+ const d = r({
198
+ height: e.value.style.chart.size,
199
+ width: e.value.style.chart.size
200
+ }), Tt = v(() => Math.min(d.value.height, d.value.width)), Ft = dt, f = r([]);
201
+ function j(t) {
202
+ if (f.value.includes(t))
203
+ f.value = f.value.filter((a) => a !== t);
204
+ else {
205
+ if (f.value.length === N.value.length - 1) return;
206
+ f.value.push(t);
207
+ }
208
+ Ft("selectLegend", A.value.map((a) => ({
209
+ name: a.name,
210
+ color: a.color,
211
+ value: a.value
212
+ })));
213
+ }
214
+ function Me(t) {
215
+ if (!N.value.length)
216
+ return e.value.debug && console.warn("VueUiRings - There are no series to show."), null;
217
+ const a = N.value.find((l) => l.name === t);
218
+ return a || (e.value.debug && console.warn(`VueUiRings - Series name not found "${t}"`), null);
219
+ }
220
+ function xt(t) {
221
+ const a = Me(t);
222
+ a !== null && f.value.includes(a.uid) && j(a.uid);
223
+ }
224
+ function St(t) {
225
+ const a = Me(t);
226
+ a !== null && (f.value.includes(a.uid) || j(a.uid));
227
+ }
228
+ const _t = v(() => Math.max(
229
+ ...N.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t)
230
+ ));
231
+ function Ve(t) {
232
+ return t / _t.value;
233
+ }
234
+ const N = v(() => _e.value.map(({ values: t, name: a, color: l = null }, o) => {
235
+ const s = Zt(t).reduce((h, Y) => h + Y, 0);
236
+ return {
237
+ name: a,
238
+ color: l || lt(l) || Re.value[o] || V[o] || V[o % V.length],
239
+ value: s,
240
+ proportion: s / _e.value.map((h) => (h.values || []).reduce((Y, Vt) => Y + Vt, 0)).reduce((h, Y) => h + Y, 0),
241
+ uid: et(),
242
+ absoluteIndex: o
243
+ };
244
+ })), ie = v(() => N.value.map((t, a) => {
245
+ const l = ye(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, I({
246
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
247
+ v: t.value,
248
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
249
+ r: e.value.style.chart.legend.roundingValue
250
+ }), { datapoint: t, index: a }), o = isNaN(t.value / S.value) ? "-" : I({ v: t.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage }), s = ce({
251
+ showVal: e.value.style.chart.legend.showValue,
252
+ showPercentage: e.value.style.chart.legend.showPercentage,
253
+ val: l,
254
+ percentage: f.value.includes(t.uid) ? "-%" : o
255
+ });
256
+ return {
257
+ ...t,
258
+ shape: "circle",
259
+ opacity: f.value.includes(t.uid) ? 0.5 : 1,
260
+ segregate: () => j(t.uid),
261
+ isSegregated: f.value.includes(t.uid),
262
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${s}`
263
+ };
264
+ }).toSorted((t, a) => a.value - t.value)), Dt = v(() => ({
265
+ cy: "rings-div-legend",
266
+ backgroundColor: e.value.style.chart.legend.backgroundColor,
267
+ color: e.value.style.chart.legend.color,
268
+ fontSize: e.value.style.chart.legend.fontSize,
269
+ paddingBottom: 12,
270
+ fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
271
+ })), S = v(() => N.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, a) => t + a, 0)), A = v(() => N.value.filter((t) => !f.value.includes(t.uid)).map(({ name: t, value: a, color: l = null, uid: o, absoluteIndex: s }, h) => ({
272
+ absoluteIndex: s,
273
+ uid: o,
274
+ name: t,
275
+ color: l || lt(l) || Re.value[h] || V[h] || V[h % V.length],
276
+ value: a,
277
+ proportion: Ve(a),
278
+ percentage: a / S.value * 100,
279
+ strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Ve(a)
280
+ })).toSorted((t, a) => a.value - t.value));
281
+ function Ot() {
282
+ return A.value.map(
283
+ ({ name: t, color: a, value: l, absoluteValues: o, percentage: s }) => ({
284
+ name: t,
285
+ color: a,
286
+ value: l,
287
+ absoluteValues: o,
288
+ percentage: s
289
+ })
290
+ );
291
+ }
292
+ const z = v(() => Tt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
293
+ function We(t, a) {
294
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
295
+ }
296
+ function Ue(t, a) {
297
+ p.value = null, q.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
298
+ }
299
+ function ce({
300
+ val: t,
301
+ percentage: a,
302
+ showVal: l,
303
+ showPercentage: o
304
+ }) {
305
+ const s = e.value.style.chart.layout.labels.dataLabels;
306
+ return il({
307
+ config: s,
308
+ val: t,
309
+ percentage: a,
310
+ showVal: l,
311
+ showPercentage: o
312
+ });
313
+ }
314
+ function Et(t) {
315
+ const a = e.value.style.chart.layout.labels.dataLabels, l = ye(
316
+ a.formatter,
317
+ t.value,
318
+ I({
319
+ p: a.prefix,
320
+ v: t.value,
321
+ s: a.suffix,
322
+ r: a.roundingValue
323
+ })
324
+ ), o = I({
325
+ v: t.percentage,
326
+ s: "%",
327
+ r: a.roundingPercentage
328
+ });
329
+ return `${t.name}
330
+ ${ce({
331
+ val: l,
332
+ percentage: o,
333
+ showVal: a.showValue,
334
+ showPercentage: a.showPercentage
335
+ })}`;
336
+ }
337
+ function H(t) {
338
+ return nl(z.value * t.proportion / 2 * 0.9 <= 0 ? 1e-4 : z.value * t.proportion / 2 * 0.9);
339
+ }
340
+ function X(t, a) {
341
+ return a === 0 ? x.value.y : x.value.y + z.value * A.value[0].proportion / 2 - z.value * t.proportion / 2 - 2 * (a + 1);
342
+ }
343
+ function _(t, a) {
344
+ const o = e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(z.value / 2) : z.value / 2;
345
+ return {
346
+ x: x.value.x + o,
347
+ y: X(t, a) - H(t)
348
+ };
349
+ }
350
+ const ve = r(null);
351
+ function je(t, a) {
352
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), f.value.length === k.dataset.length) return;
353
+ ve.value = {
354
+ datapoint: t,
355
+ seriesIndex: a,
356
+ series: A.value,
357
+ config: e.value
358
+ }, p.value = a;
359
+ const l = A.value[a], o = e.value.style.chart.tooltip.customFormat;
360
+ if (rl(o) && ul(() => o({
361
+ seriesIndex: a,
362
+ datapoint: t,
363
+ series: A.value,
364
+ config: e.value
365
+ })))
366
+ le.value = o({
367
+ seriesIndex: a,
368
+ datapoint: t,
369
+ series: A.value,
370
+ config: e.value
371
+ });
372
+ else {
373
+ let s = "";
374
+ s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${$t.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${w.value}_${t.absoluteIndex})" />` : ""}</svg>`, s += `<b>${ce({
375
+ showVal: e.value.style.chart.tooltip.showValue,
376
+ showPercentage: e.value.style.chart.tooltip.showPercentage,
377
+ val: `<span>${ye(
378
+ e.value.style.chart.layout.labels.dataLabels.formatter,
379
+ l.value,
380
+ I({
381
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
382
+ v: l.value,
383
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
384
+ r: e.value.style.chart.tooltip.roundingValue
385
+ }),
386
+ { datapoint: t, seriesIndex: a }
387
+ )}</span>`,
388
+ percentage: I({
389
+ v: l.value / S.value * 100,
390
+ s: "%",
391
+ r: e.value.style.chart.tooltip.roundingPercentage
392
+ })
393
+ })}</b></div>`, le.value = s;
394
+ }
395
+ q.value = !0;
396
+ }
397
+ const O = v(() => {
398
+ const t = A.value.map((l) => ({
399
+ name: l.name,
400
+ color: l.color
401
+ })), a = A.value.map((l) => l.value);
402
+ return { head: t, body: a };
403
+ }), K = v(() => {
404
+ const t = [
405
+ ' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
406
+ I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
407
+ "100%"
408
+ ], a = O.value.head.map((s, h) => [
409
+ {
410
+ color: s.color,
411
+ name: s.name
412
+ },
413
+ I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: O.value.body[h], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
414
+ isNaN(O.value.body[h] / S.value) ? "-" : (O.value.body[h] / S.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
415
+ ]), l = {
416
+ th: {
417
+ backgroundColor: e.value.table.th.backgroundColor,
418
+ color: e.value.table.th.color,
419
+ outline: e.value.table.th.outline
420
+ },
421
+ td: {
422
+ backgroundColor: e.value.table.td.backgroundColor,
423
+ color: e.value.table.td.color,
424
+ outline: e.value.table.td.outline
425
+ },
426
+ breakpoint: e.value.table.responsiveBreakpoint
427
+ }, o = [
428
+ e.value.table.columnNames.series,
429
+ e.value.table.columnNames.value,
430
+ e.value.table.columnNames.percentage
431
+ ];
432
+ return {
433
+ head: t,
434
+ body: a,
435
+ config: l,
436
+ colNames: o
437
+ };
438
+ });
439
+ function de(t = null) {
440
+ Yt(() => {
441
+ const a = O.value.head.map((s, h) => [[
442
+ s.name
443
+ ], [O.value.body[h]], [isNaN(O.value.body[h] / S.value) ? "-" : O.value.body[h] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = ol(l);
444
+ t ? t(o) : sl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-rings" });
445
+ });
446
+ }
447
+ const R = r(!1);
448
+ function He(t) {
449
+ R.value = t, Ce.value += 1;
450
+ }
451
+ function Xe() {
452
+ g.value.showTable = !g.value.showTable;
453
+ }
454
+ function Ge() {
455
+ g.value.showTooltip = !g.value.showTooltip;
456
+ }
457
+ function Ye() {
458
+ g.value.showLabels = !g.value.showLabels;
459
+ }
460
+ const Q = r(!1);
461
+ function he() {
462
+ Q.value = !Q.value;
463
+ }
464
+ async function Bt({ scale: t = 2 } = {}) {
465
+ if (!F.value) return;
466
+ const { width: a, height: l } = F.value.getBoundingClientRect(), o = a / l, { imageUri: s, base64: h } = await kl({ domElement: F.value, base64: !0, img: !0, scale: t });
467
+ return {
468
+ imageUri: s,
469
+ base64: h,
470
+ title: e.value.style.chart.title.text,
471
+ width: a,
472
+ height: l,
473
+ aspectRatio: o
474
+ };
475
+ }
476
+ const G = v(() => {
477
+ const t = e.value.table.useDialog && !e.value.table.show, a = g.value.showTable;
478
+ return {
479
+ component: t ? kt : bt,
480
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
481
+ props: t ? {
482
+ backgroundColor: e.value.table.th.backgroundColor,
483
+ color: e.value.table.th.color,
484
+ headerColor: e.value.table.th.color,
485
+ headerBg: e.value.table.th.backgroundColor,
486
+ isFullscreen: R.value,
487
+ fullscreenParent: F.value,
488
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
489
+ } : {
490
+ hideDetails: !0,
491
+ config: {
492
+ open: a,
493
+ maxHeight: 1e4,
494
+ body: {
495
+ backgroundColor: e.value.style.chart.backgroundColor,
496
+ color: e.value.style.chart.color
497
+ },
498
+ head: {
499
+ backgroundColor: e.value.style.chart.backgroundColor,
500
+ color: e.value.style.chart.color
501
+ }
502
+ }
503
+ }
504
+ };
505
+ });
506
+ Z(() => g.value.showTable, (t) => {
507
+ e.value.table.show || (t && e.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
508
+ });
509
+ function qe() {
510
+ g.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
511
+ }
512
+ const Pt = v(() => ie.value.map((t) => ({
513
+ ...t,
514
+ name: t.display
515
+ }))), It = v(() => e.value.style.chart.backgroundColor), Nt = v(() => e.value.style.chart.legend), zt = v(() => e.value.style.chart.title), { exportSvg: Rt, getSvg: Mt } = fl({
516
+ svg: ne,
517
+ title: zt,
518
+ legend: Nt,
519
+ legendItems: Pt,
520
+ backgroundColor: It
521
+ });
522
+ async function Je({ isCb: t }) {
523
+ if (t) {
524
+ const { blob: a, url: l, text: o, dataUrl: s } = await Mt();
525
+ e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: s });
526
+ } else
527
+ Rt();
528
+ }
529
+ return vt({
530
+ getData: Ot,
531
+ getImage: Bt,
532
+ generatePdf: Ne,
533
+ generateCsv: de,
534
+ generateImage: ze,
535
+ generateSvg: Je,
536
+ hideSeries: St,
537
+ showSeries: xt,
538
+ toggleTable: Xe,
539
+ toggleTooltip: Ge,
540
+ toggleAnnotator: he,
541
+ toggleFullscreen: He,
542
+ toggleLabels: Ye
543
+ }), (t, a) => (u(), b("div", {
544
+ ref_key: "ringsChart",
545
+ ref: F,
546
+ class: B(`vue-data-ui-component vue-ui-rings ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
547
+ style: M(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
548
+ id: `rings_${w.value}`,
549
+ onMouseleave: a[2] || (a[2] = (l) => {
550
+ p.value = null, q.value = !1, n(De)(!1);
551
+ }),
552
+ onMouseenter: a[3] || (a[3] = () => n(De)(!0))
553
+ }, [
554
+ e.value.userOptions.buttons.annotator ? (u(), P(n(pt), {
555
+ key: 0,
556
+ svgRef: n(ne),
557
+ backgroundColor: e.value.style.chart.backgroundColor,
558
+ color: e.value.style.chart.color,
559
+ active: Q.value,
560
+ onClose: he
561
+ }, {
562
+ "annotator-action-close": i(() => [
563
+ c(t.$slots, "annotator-action-close", {}, void 0, !0)
564
+ ]),
565
+ "annotator-action-color": i(({ color: l }) => [
566
+ c(t.$slots, "annotator-action-color", $(L({ color: l })), void 0, !0)
567
+ ]),
568
+ "annotator-action-draw": i(({ mode: l }) => [
569
+ c(t.$slots, "annotator-action-draw", $(L({ mode: l })), void 0, !0)
570
+ ]),
571
+ "annotator-action-undo": i(({ disabled: l }) => [
572
+ c(t.$slots, "annotator-action-undo", $(L({ disabled: l })), void 0, !0)
573
+ ]),
574
+ "annotator-action-redo": i(({ disabled: l }) => [
575
+ c(t.$slots, "annotator-action-redo", $(L({ disabled: l })), void 0, !0)
576
+ ]),
577
+ "annotator-action-delete": i(({ disabled: l }) => [
578
+ c(t.$slots, "annotator-action-delete", $(L({ disabled: l })), void 0, !0)
579
+ ]),
580
+ _: 3
581
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
582
+ Lt.value ? (u(), b("div", {
583
+ key: 1,
584
+ ref_key: "noTitle",
585
+ ref: Le,
586
+ class: "vue-data-ui-no-title-space",
587
+ style: "height:36px; width: 100%;background:transparent"
588
+ }, null, 512)) : y("", !0),
589
+ e.value.style.chart.title.text ? (u(), b("div", {
590
+ key: 2,
591
+ ref_key: "chartTitle",
592
+ ref: we,
593
+ style: "width:100%;background:transparent"
594
+ }, [
595
+ (u(), P(wl, {
596
+ key: `title_${Te.value}`,
597
+ config: {
598
+ title: {
599
+ cy: "rings-div-title",
600
+ ...e.value.style.chart.title
601
+ },
602
+ subtitle: {
603
+ cy: "rings-div-subtitle",
604
+ ...e.value.style.chart.title.subtitle
605
+ }
606
+ }
607
+ }, null, 8, ["config"]))
608
+ ], 512)) : y("", !0),
609
+ m("div", {
610
+ id: `legend-top-${w.value}`
611
+ }, null, 8, Tl),
612
+ e.value.userOptions.show && ke.value && (n(Oe) || n(se)) ? (u(), P(n(yt), {
613
+ ref_key: "userOptionsRef",
614
+ ref: oe,
615
+ key: `user_options_${Ce.value}`,
616
+ backgroundColor: e.value.style.chart.backgroundColor,
617
+ color: e.value.style.chart.color,
618
+ isPrinting: n(Pe),
619
+ isImaging: n(Ie),
620
+ uid: w.value,
621
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
622
+ hasPdf: e.value.userOptions.buttons.pdf,
623
+ hasXls: e.value.userOptions.buttons.csv,
624
+ hasImg: e.value.userOptions.buttons.img,
625
+ hasSvg: e.value.userOptions.buttons.svg,
626
+ hasTable: e.value.userOptions.buttons.table,
627
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
628
+ hasLabel: e.value.userOptions.buttons.labels,
629
+ isTooltip: g.value.showTooltip,
630
+ isFullscreen: R.value,
631
+ titles: { ...e.value.userOptions.buttonTitles },
632
+ chartElement: F.value,
633
+ position: e.value.userOptions.position,
634
+ hasAnnotator: e.value.userOptions.buttons.annotator,
635
+ isAnnotation: Q.value,
636
+ callbacks: e.value.userOptions.callbacks,
637
+ printScale: e.value.userOptions.print.scale,
638
+ tableDialog: e.value.table.useDialog,
639
+ onToggleFullscreen: He,
640
+ onGeneratePdf: n(Ne),
641
+ onGenerateCsv: de,
642
+ onGenerateImage: n(ze),
643
+ onGenerateSvg: Je,
644
+ onToggleTable: Xe,
645
+ onToggleTooltip: Ge,
646
+ onToggleAnnotator: he,
647
+ onToggleLabels: Ye,
648
+ style: M({
649
+ visibility: n(Oe) ? n(se) ? "visible" : "hidden" : "visible"
650
+ })
651
+ }, ge({ _: 2 }, [
652
+ t.$slots.menuIcon ? {
653
+ name: "menuIcon",
654
+ fn: i(({ isOpen: l, color: o }) => [
655
+ c(t.$slots, "menuIcon", $(L({ isOpen: l, color: o })), void 0, !0)
656
+ ]),
657
+ key: "0"
658
+ } : void 0,
659
+ t.$slots.optionTooltip ? {
660
+ name: "optionTooltip",
661
+ fn: i(() => [
662
+ c(t.$slots, "optionTooltip", {}, void 0, !0)
663
+ ]),
664
+ key: "1"
665
+ } : void 0,
666
+ t.$slots.optionPdf ? {
667
+ name: "optionPdf",
668
+ fn: i(() => [
669
+ c(t.$slots, "optionPdf", {}, void 0, !0)
670
+ ]),
671
+ key: "2"
672
+ } : void 0,
673
+ t.$slots.optionCsv ? {
674
+ name: "optionCsv",
675
+ fn: i(() => [
676
+ c(t.$slots, "optionCsv", {}, void 0, !0)
677
+ ]),
678
+ key: "3"
679
+ } : void 0,
680
+ t.$slots.optionImg ? {
681
+ name: "optionImg",
682
+ fn: i(() => [
683
+ c(t.$slots, "optionImg", {}, void 0, !0)
684
+ ]),
685
+ key: "4"
686
+ } : void 0,
687
+ t.$slots.optionSvg ? {
688
+ name: "optionSvg",
689
+ fn: i(() => [
690
+ c(t.$slots, "optionSvg", {}, void 0, !0)
691
+ ]),
692
+ key: "5"
693
+ } : void 0,
694
+ t.$slots.optionTable ? {
695
+ name: "optionTable",
696
+ fn: i(() => [
697
+ c(t.$slots, "optionTable", {}, void 0, !0)
698
+ ]),
699
+ key: "6"
700
+ } : void 0,
701
+ t.$slots.optionLabels ? {
702
+ name: "optionLabels",
703
+ fn: i(() => [
704
+ c(t.$slots, "optionLabels", {}, void 0, !0)
705
+ ]),
706
+ key: "7"
707
+ } : void 0,
708
+ t.$slots.optionFullscreen ? {
709
+ name: "optionFullscreen",
710
+ fn: i(({ toggleFullscreen: l, isFullscreen: o }) => [
711
+ c(t.$slots, "optionFullscreen", $(L({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
712
+ ]),
713
+ key: "8"
714
+ } : void 0,
715
+ t.$slots.optionAnnotator ? {
716
+ name: "optionAnnotator",
717
+ fn: i(({ toggleAnnotator: l, isAnnotator: o }) => [
718
+ c(t.$slots, "optionAnnotator", $(L({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
719
+ ]),
720
+ key: "9"
721
+ } : void 0
722
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasLabel", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
723
+ (u(), b("svg", {
724
+ ref_key: "svgRef",
725
+ ref: ne,
726
+ xmlns: n(el),
727
+ class: B({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value, resizing: ae.value || n(T) }),
728
+ viewBox: `0 0 ${d.value.width <= 0 ? 10 : d.value.width} ${d.value.height <= 0 ? 10 : d.value.height}`,
729
+ style: M(`max-width:100%;overflow:hidden;background:transparent;color:${e.value.style.chart.color}`)
730
+ }, [
731
+ ee(n(mt)),
732
+ t.$slots["chart-background"] ? (u(), b("foreignObject", {
733
+ key: 0,
734
+ x: 0,
735
+ y: 0,
736
+ width: d.value.width <= 0 ? 10 : d.value.width,
737
+ height: d.value.height <= 0 ? 10 : d.value.height,
738
+ style: {
739
+ pointerEvents: "none"
740
+ }
741
+ }, [
742
+ c(t.$slots, "chart-background", {}, void 0, !0)
743
+ ], 8, xl)) : y("", !0),
744
+ m("defs", null, [
745
+ (u(!0), b(te, null, be(A.value, (l, o) => (u(), b("radialGradient", {
746
+ cx: "50%",
747
+ cy: "30%",
748
+ r: "50%",
749
+ fx: "50%",
750
+ fy: "50%",
751
+ id: `gradient_${w.value}_${o}`
752
+ }, [
753
+ m("stop", {
754
+ offset: "0%",
755
+ "stop-color": n(tl)(n(ll)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
756
+ }, null, 8, _l),
757
+ m("stop", {
758
+ offset: "100%",
759
+ "stop-color": l.color
760
+ }, null, 8, Dl)
761
+ ], 8, Sl))), 256))
762
+ ]),
763
+ t.$slots.pattern ? (u(), b("g", Ol, [
764
+ (u(!0), b(te, null, be(A.value, (l) => (u(), b("defs", null, [
765
+ c(t.$slots, "pattern", Qe({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${w.value}_${l.absoluteIndex}` }), void 0, !0)
766
+ ]))), 256))
767
+ ])) : y("", !0),
768
+ (u(!0), b(te, null, be(A.value, (l, o) => (u(), b("g", null, [
769
+ m("circle", {
770
+ class: B({
771
+ "vue-ui-rings-item": C.value && e.value.useCssAnimation,
772
+ "vue-rings-item-onload": !C.value && e.value.useCssAnimation && !n(T),
773
+ "vue-ui-rings-opacity": p.value !== null && p.value !== o
774
+ }),
775
+ style: M(`animation-delay:${o * 100}ms`),
776
+ stroke: e.value.style.chart.layout.rings.stroke,
777
+ cx: x.value.x,
778
+ cy: X(l, o),
779
+ r: H(l),
780
+ fill: e.value.style.chart.layout.rings.gradient.underlayerColor
781
+ }, null, 14, El),
782
+ m("circle", {
783
+ class: B({
784
+ "vue-ui-rings-item": C.value && e.value.useCssAnimation,
785
+ "vue-rings-item-onload": !C.value && e.value.useCssAnimation && !n(T),
786
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
787
+ "vue-ui-rings-blur": p.value !== null && p.value !== o
788
+ }),
789
+ style: M(`animation-delay:${o * 100}ms`),
790
+ stroke: e.value.style.chart.layout.rings.stroke,
791
+ "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
792
+ cx: x.value.x,
793
+ cy: X(l, o),
794
+ r: H(l),
795
+ fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${w.value}_${o})` : l.color
796
+ }, null, 14, Bl),
797
+ t.$slots.pattern ? (u(), b("circle", {
798
+ key: 0,
799
+ class: B({
800
+ "vue-ui-rings-item": C.value && e.value.useCssAnimation,
801
+ "vue-rings-item-onload": !C.value && e.value.useCssAnimation && !n(T),
802
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
803
+ "vue-ui-rings-blur": p.value !== null && p.value !== o
804
+ }),
805
+ style: M(`animation-delay:${o * 100}ms`),
806
+ stroke: e.value.style.chart.layout.rings.stroke,
807
+ "stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
808
+ cx: x.value.x,
809
+ cy: X(l, o),
810
+ r: H(l),
811
+ fill: `url(#pattern_${w.value}_${l.absoluteIndex})`
812
+ }, null, 14, Pl)) : y("", !0),
813
+ m("circle", {
814
+ stroke: "none",
815
+ cx: x.value.x,
816
+ cy: X(l, o),
817
+ r: H(l),
818
+ fill: "transparent",
819
+ onMouseenter: (s) => je(l, o),
820
+ onMouseleave: (s) => Ue(l, o),
821
+ onClick: (s) => We(l, o)
822
+ }, null, 40, Il),
823
+ g.value.showLabels ? (u(), b(te, { key: 1 }, [
824
+ m("rect", {
825
+ x: e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? _(l, o).x : x.value.x,
826
+ y: _(l, o).y - e.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
827
+ width: Math.abs(x.value.x - _(l, o).x),
828
+ height: e.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
829
+ fill: e.value.style.chart.layout.labels.dataLabels.markers.stroke,
830
+ rx: e.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
831
+ class: B({
832
+ "vue-ui-rings-item": C.value && e.value.useCssAnimation,
833
+ "vue-rings-item-onload": !C.value && e.value.useCssAnimation && !n(T),
834
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
835
+ "vue-ui-rings-blur": p.value !== null && p.value !== o
836
+ })
837
+ }, null, 10, Nl),
838
+ m("circle", {
839
+ cx: _(l, o).x,
840
+ cy: _(l, o).y,
841
+ r: e.value.style.chart.layout.labels.dataLabels.markers.radius,
842
+ fill: l.color,
843
+ stroke: e.value.style.chart.backgroundColor,
844
+ class: B({
845
+ "vue-ui-rings-item": C.value && e.value.useCssAnimation,
846
+ "vue-rings-item-onload": !C.value && e.value.useCssAnimation && !n(T),
847
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
848
+ "vue-ui-rings-blur": p.value !== null && p.value !== o
849
+ })
850
+ }, null, 10, zl),
851
+ m("text", {
852
+ x: _(l, o).x + (e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -e.value.style.chart.layout.labels.dataLabels.offsetX : e.value.style.chart.layout.labels.dataLabels.offsetX),
853
+ y: _(l, o).y + e.value.style.chart.layout.labels.dataLabels.fontSize / 3,
854
+ "text-anchor": e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
855
+ "font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
856
+ fill: e.value.style.chart.layout.labels.dataLabels.color,
857
+ "font-weight": e.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
858
+ class: B({
859
+ "vue-ui-rings-item": C.value && e.value.useCssAnimation,
860
+ "vue-rings-item-onload": !C.value && e.value.useCssAnimation && !n(T),
861
+ "vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
862
+ "vue-ui-rings-blur": p.value !== null && p.value !== o
863
+ }),
864
+ onMouseenter: (s) => je(l, o),
865
+ onMouseleave: (s) => Ue(l, o),
866
+ onClick: (s) => We(l, o),
867
+ innerHTML: n(al)({
868
+ content: Et(l),
869
+ fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
870
+ fill: e.value.style.chart.layout.labels.dataLabels.color,
871
+ x: _(l, o).x + (e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -e.value.style.chart.layout.labels.dataLabels.offsetX - 6 - e.value.style.chart.layout.labels.dataLabels.markers.radius : e.value.style.chart.layout.labels.dataLabels.offsetX + 6 + e.value.style.chart.layout.labels.dataLabels.markers.radius),
872
+ y: _(l, o).y + e.value.style.chart.layout.labels.dataLabels.fontSize / 3,
873
+ translateY: !0
874
+ })
875
+ }, null, 42, Rl)
876
+ ], 64)) : y("", !0)
877
+ ]))), 256)),
878
+ c(t.$slots, "svg", { svg: d.value }, void 0, !0)
879
+ ], 14, Fl)),
880
+ t.$slots.watermark ? (u(), b("div", Ml, [
881
+ c(t.$slots, "watermark", $(L({ isPrinting: n(Pe) || n(Ie) })), void 0, !0)
882
+ ])) : y("", !0),
883
+ m("div", {
884
+ id: `legend-bottom-${w.value}`
885
+ }, null, 8, Vl),
886
+ Se.value ? (u(), P(Xt, {
887
+ key: 5,
888
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${w.value}` : `#legend-bottom-${w.value}`
889
+ }, [
890
+ m("div", {
891
+ ref_key: "chartLegend",
892
+ ref: Ae
893
+ }, [
894
+ e.value.style.chart.legend.show ? (u(), P(Al, {
895
+ key: `legend_${xe.value}`,
896
+ legendSet: ie.value,
897
+ config: Dt.value,
898
+ onClickMarker: a[0] || (a[0] = ({ legend: l }) => j(l.uid))
899
+ }, ge({
900
+ item: i(({ legend: l, index: o }) => [
901
+ n(T) ? y("", !0) : (u(), b("div", {
902
+ key: 0,
903
+ onClick: (s) => j(l.uid),
904
+ style: M(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
905
+ }, fe(l.display), 13, Wl))
906
+ ]),
907
+ _: 2
908
+ }, [
909
+ t.$slots.pattern ? {
910
+ name: "legend-pattern",
911
+ fn: i(({ legend: l, index: o }) => [
912
+ ee(Cl, {
913
+ shape: l.shape,
914
+ radius: 30,
915
+ stroke: "none",
916
+ plot: { x: 30, y: 30 },
917
+ fill: `url(#pattern_${w.value}_${o})`
918
+ }, null, 8, ["shape", "fill"])
919
+ ]),
920
+ key: "0"
921
+ } : void 0
922
+ ]), 1032, ["legendSet", "config"])) : c(t.$slots, "legend", {
923
+ key: 1,
924
+ legend: ie.value
925
+ }, void 0, !0)
926
+ ], 512)
927
+ ], 8, ["to"])) : y("", !0),
928
+ t.$slots.source ? (u(), b("div", {
929
+ key: 6,
930
+ ref_key: "source",
931
+ ref: $e,
932
+ dir: "auto"
933
+ }, [
934
+ c(t.$slots, "source", {}, void 0, !0)
935
+ ], 512)) : y("", !0),
936
+ ee(n(ht), {
937
+ show: g.value.showTooltip && q.value && f.value.length < k.dataset.length,
938
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
939
+ color: e.value.style.chart.tooltip.color,
940
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
941
+ borderColor: e.value.style.chart.tooltip.borderColor,
942
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
943
+ fontSize: e.value.style.chart.tooltip.fontSize,
944
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
945
+ position: e.value.style.chart.tooltip.position,
946
+ offsetY: e.value.style.chart.tooltip.offsetY,
947
+ parent: F.value,
948
+ content: le.value,
949
+ isFullscreen: R.value,
950
+ isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
951
+ smooth: e.value.style.chart.tooltip.smooth,
952
+ backdropFilter: e.value.style.chart.tooltip.backdropFilter,
953
+ smoothForce: e.value.style.chart.tooltip.smoothForce,
954
+ smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
955
+ }, {
956
+ "tooltip-before": i(() => [
957
+ c(t.$slots, "tooltip-before", $(L({ ...ve.value })), void 0, !0)
958
+ ]),
959
+ "tooltip-after": i(() => [
960
+ c(t.$slots, "tooltip-after", $(L({ ...ve.value })), void 0, !0)
961
+ ]),
962
+ _: 3
963
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
964
+ ke.value && e.value.userOptions.buttons.table ? (u(), P(Gt(G.value.component), Qe({ key: 7 }, G.value.props, {
965
+ ref_key: "tableUnit",
966
+ ref: U,
967
+ onClose: qe
968
+ }), ge({
969
+ content: i(() => [
970
+ (u(), P(n(ft), {
971
+ key: `table_${Fe.value}`,
972
+ colNames: K.value.colNames,
973
+ head: K.value.head,
974
+ body: K.value.body,
975
+ config: K.value.config,
976
+ title: e.value.table.useDialog ? "" : G.value.title,
977
+ withCloseButton: !e.value.table.useDialog,
978
+ onClose: qe
979
+ }, {
980
+ th: i(({ th: l }) => [
981
+ m("div", {
982
+ innerHTML: l,
983
+ style: { display: "flex", "align-items": "center" }
984
+ }, null, 8, Ul)
985
+ ]),
986
+ td: i(({ td: l }) => [
987
+ Ze(fe(l.name || l), 1)
988
+ ]),
989
+ _: 1
990
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
991
+ ]),
992
+ _: 2
993
+ }, [
994
+ e.value.table.useDialog ? {
995
+ name: "title",
996
+ fn: i(() => [
997
+ Ze(fe(G.value.title), 1)
998
+ ]),
999
+ key: "0"
1000
+ } : void 0,
1001
+ e.value.table.useDialog ? {
1002
+ name: "actions",
1003
+ fn: i(() => [
1004
+ m("button", {
1005
+ tabindex: "0",
1006
+ class: "vue-ui-user-options-button",
1007
+ onClick: a[1] || (a[1] = (l) => de(e.value.userOptions.callbacks.csv))
1008
+ }, [
1009
+ ee(n(gt), {
1010
+ name: "excel",
1011
+ stroke: G.value.props.color
1012
+ }, null, 8, ["stroke"])
1013
+ ])
1014
+ ]),
1015
+ key: "1"
1016
+ } : void 0
1017
+ ]), 1040)) : y("", !0),
1018
+ n(T) ? (u(), P(bl, { key: 8 })) : y("", !0)
1019
+ ], 46, Ll));
1020
+ }
1021
+ }, Hl = /* @__PURE__ */ $l(jl, [["__scopeId", "data-v-b1f96184"]]), ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1022
+ __proto__: null,
1023
+ default: Hl
1024
+ }, Symbol.toStringTag, { value: "Module" }));
1025
+ export {
1026
+ ua as a,
1027
+ ia as b,
1028
+ Hl as v
1029
+ };