vue-data-ui 3.9.11 → 3.9.13

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 (164) hide show
  1. package/dist/{Arrow-Cbn8f8m4.js → Arrow-f1dKmuRH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-C167SnU0.js → BaseDraggableDialog-CAJxIF6g.js} +2 -2
  3. package/dist/{BaseIcon-r3_sTK1A.js → BaseIcon-4i3dd7Ty.js} +1 -1
  4. package/dist/{BaseZoomControls-D8N7fb-c.js → BaseZoomControls-C0H509ZF.js} +6 -6
  5. package/dist/{ColorPicker-Bq2C5Dll.js → ColorPicker-B9oF4-O6.js} +8 -8
  6. package/dist/{DataTable-DNeCys3I.js → DataTable-WrXCJkfE.js} +2 -2
  7. package/dist/{Legend-Dxz13z4E.js → Legend-D6z73edh.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-ZnkWbBri.js → NonSvgPenAndPaper-7clRuQVF.js} +11 -11
  9. package/dist/{PackageVersion-DPLuuWzw.js → PackageVersion-D3cMhAlf.js} +1 -1
  10. package/dist/{PenAndPaper-CsqBamFZ.js → PenAndPaper-DxIUvoQ8.js} +17 -17
  11. package/dist/{Shape-_iTOIp3x.js → Shape-DAHhCEdg.js} +1 -1
  12. package/dist/{Slicer-DBYna_by.js → Slicer-Bn8azYkD.js} +70 -70
  13. package/dist/{SlicerPreview-pHjYklxh.js → SlicerPreview-oV3dMuV1.js} +2 -2
  14. package/dist/{SparkTooltip-BaSHhfes.js → SparkTooltip-D7iYVquk.js} +3 -3
  15. package/dist/{Title-DFtCaCah.js → Title-BhURirpm.js} +1 -1
  16. package/dist/{Tooltip-B79qvriT.js → Tooltip-TDyKgLB6.js} +1 -1
  17. package/dist/{UserOptions-B-2A_KRb.js → UserOptions-CzJWRC4s.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +1 -1
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +1 -1
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +1 -1
  24. package/dist/components/vue-ui-candlestick.js +1 -1
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +1 -1
  27. package/dist/components/vue-ui-chord.js +1 -1
  28. package/dist/components/vue-ui-circle-pack.js +1 -1
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dag.js +1 -1
  31. package/dist/components/vue-ui-dashboard.js +1 -1
  32. package/dist/components/vue-ui-digits.js +1 -1
  33. package/dist/components/vue-ui-donut-evolution.js +1 -1
  34. package/dist/components/vue-ui-donut.js +1 -1
  35. package/dist/components/vue-ui-dumbbell.js +1 -1
  36. package/dist/components/vue-ui-flow.js +1 -1
  37. package/dist/components/vue-ui-funnel.js +1 -1
  38. package/dist/components/vue-ui-galaxy.js +1 -1
  39. package/dist/components/vue-ui-gauge.js +1 -1
  40. package/dist/components/vue-ui-geo.js +1 -1
  41. package/dist/components/vue-ui-gizmo.js +1 -1
  42. package/dist/components/vue-ui-heatmap.js +1 -1
  43. package/dist/components/vue-ui-history-plot.js +1 -1
  44. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  45. package/dist/components/vue-ui-icon.js +1 -1
  46. package/dist/components/vue-ui-kpi.js +1 -1
  47. package/dist/components/vue-ui-mini-loader.js +1 -1
  48. package/dist/components/vue-ui-molecule.js +1 -1
  49. package/dist/components/vue-ui-mood-radar.js +1 -1
  50. package/dist/components/vue-ui-nested-donuts.js +1 -1
  51. package/dist/components/vue-ui-onion.js +1 -1
  52. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  53. package/dist/components/vue-ui-quadrant.js +1 -1
  54. package/dist/components/vue-ui-quick-chart.js +1 -1
  55. package/dist/components/vue-ui-radar.js +1 -1
  56. package/dist/components/vue-ui-rating.js +1 -1
  57. package/dist/components/vue-ui-relation-circle.js +1 -1
  58. package/dist/components/vue-ui-ridgeline.js +1 -1
  59. package/dist/components/vue-ui-rings.js +1 -1
  60. package/dist/components/vue-ui-scatter.js +1 -1
  61. package/dist/components/vue-ui-skeleton.js +1 -1
  62. package/dist/components/vue-ui-smiley.js +1 -1
  63. package/dist/components/vue-ui-spark-trend.js +1 -1
  64. package/dist/components/vue-ui-sparkbar.js +1 -1
  65. package/dist/components/vue-ui-sparkgauge.js +1 -1
  66. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  67. package/dist/components/vue-ui-sparkline.js +1 -1
  68. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  69. package/dist/components/vue-ui-stackbar.js +1 -1
  70. package/dist/components/vue-ui-stackline.js +1 -1
  71. package/dist/components/vue-ui-strip-plot.js +1 -1
  72. package/dist/components/vue-ui-table-heatmap.js +1 -1
  73. package/dist/components/vue-ui-table-sparkline.js +1 -1
  74. package/dist/components/vue-ui-table.js +1 -1
  75. package/dist/components/vue-ui-thermometer.js +1 -1
  76. package/dist/components/vue-ui-timer.js +1 -1
  77. package/dist/components/vue-ui-tiremarks.js +1 -1
  78. package/dist/components/vue-ui-treemap.js +1 -1
  79. package/dist/components/vue-ui-vertical-bar.js +1 -1
  80. package/dist/components/vue-ui-waffle.js +1 -1
  81. package/dist/components/vue-ui-wheel.js +1 -1
  82. package/dist/components/vue-ui-word-cloud.js +1 -1
  83. package/dist/components/vue-ui-world.js +1 -1
  84. package/dist/components/vue-ui-xy-canvas.js +1 -1
  85. package/dist/components/vue-ui-xy.js +1 -1
  86. package/dist/{dom-to-png-Cm7R2Zu2.js → dom-to-png-C2K57N1M.js} +1 -1
  87. package/dist/{img-BJzUSmkm.js → img-DKigoPDs.js} +1 -1
  88. package/dist/labelUtils-PMU3ZGCb.js +30 -0
  89. package/dist/{lib-W9waxHL3.js → lib-BwysEpWI.js} +81 -77
  90. package/dist/{pdf-BJR-8Moh.js → pdf-BHGnVnBG.js} +1 -1
  91. package/dist/style.css +1 -1
  92. package/dist/types/vue-data-ui.d.ts +20 -0
  93. package/dist/{useAutoSizeLabelsInsideViewbox-DAdqpHf1.js → useAutoSizeLabelsInsideViewbox-DO2dxQ78.js} +1 -1
  94. package/dist/{useNestedProp-D-jUHecl.js → useNestedProp--5lL-kf1.js} +209 -197
  95. package/dist/{usePrinter-DhoMn87n.js → usePrinter-BJzHDpYF.js} +2 -2
  96. package/dist/{vue-data-ui-B2w3blNC.js → vue-data-ui-DE3O1T8n.js} +67 -67
  97. package/dist/vue-data-ui.js +83 -83
  98. package/dist/{vue-ui-3d-bar-Cpp-5jo0.js → vue-ui-3d-bar-CVvhPzdH.js} +6 -6
  99. package/dist/{vue-ui-accordion-B6BX2vhq.js → vue-ui-accordion-tQNKwbVi.js} +3 -3
  100. package/dist/{vue-ui-age-pyramid-BH8z1r48.js → vue-ui-age-pyramid-DxTHqM7w.js} +25 -25
  101. package/dist/{vue-ui-annotator-DB6dpuUU.js → vue-ui-annotator-Da5aL57a.js} +7 -7
  102. package/dist/{vue-ui-bullet-CmLA4Lxs.js → vue-ui-bullet-DhpTML7L.js} +22 -22
  103. package/dist/{vue-ui-candlestick-IspjAN-a.js → vue-ui-candlestick-BDOKQqMm.js} +85 -85
  104. package/dist/{vue-ui-carousel-table-9mdO6mvP.js → vue-ui-carousel-table-BW6bKPsX.js} +13 -13
  105. package/dist/{vue-ui-chestnut-CC1bTcaA.js → vue-ui-chestnut-Cc-lke6P.js} +31 -31
  106. package/dist/{vue-ui-chord-B0pp0mDm.js → vue-ui-chord-CB6w31Ex.js} +8 -8
  107. package/dist/{vue-ui-circle-pack-CWhq37at.js → vue-ui-circle-pack-CfihOmNV.js} +6 -6
  108. package/dist/{vue-ui-cursor-DOWNTk2K.js → vue-ui-cursor-Dnpe76BQ.js} +3 -3
  109. package/dist/{vue-ui-dag-DlLdvPIA.js → vue-ui-dag-Dq3hKon7.js} +7 -7
  110. package/dist/{vue-ui-dashboard-BRAyn8IO.js → vue-ui-dashboard-eMwyGsuD.js} +68 -68
  111. package/dist/{vue-ui-digits-DQz1eJc-.js → vue-ui-digits-B5QhIbFD.js} +2 -2
  112. package/dist/vue-ui-donut-D3---CiY.js +2082 -0
  113. package/dist/{vue-ui-donut-evolution-C95OcKhs.js → vue-ui-donut-evolution-C6H1Vr6m.js} +8 -8
  114. package/dist/{vue-ui-dumbbell-L8fXdkQm.js → vue-ui-dumbbell-L1p0npq4.js} +33 -33
  115. package/dist/{vue-ui-flow-CPnYumnP.js → vue-ui-flow-CgAIlvZF.js} +38 -38
  116. package/dist/{vue-ui-funnel-BPnUog47.js → vue-ui-funnel-CpgqO34n.js} +6 -6
  117. package/dist/{vue-ui-galaxy-BjtDkIAw.js → vue-ui-galaxy-DAi1I2Cr.js} +316 -291
  118. package/dist/{vue-ui-gauge-CHqgIzG0.js → vue-ui-gauge-DY78U-uO.js} +7 -7
  119. package/dist/{vue-ui-geo-C3O4GHZF.js → vue-ui-geo-Befu6fkT.js} +20 -20
  120. package/dist/{vue-ui-gizmo-Dr0gsAOM.js → vue-ui-gizmo-BM_oOeYY.js} +3 -3
  121. package/dist/{vue-ui-heatmap-BBshmoO7.js → vue-ui-heatmap-C_ze3bzX.js} +80 -80
  122. package/dist/{vue-ui-history-plot-BiUyd40D.js → vue-ui-history-plot-C-_zpLPH.js} +50 -50
  123. package/dist/{vue-ui-horizontal-bar-BDtke67D.js → vue-ui-horizontal-bar-DvLMeP44.js} +47 -47
  124. package/dist/{vue-ui-kpi-BnCqocoi.js → vue-ui-kpi-IcOqABQz.js} +3 -3
  125. package/dist/{vue-ui-mini-loader-Dzqusv9i.js → vue-ui-mini-loader-DxlOXn6v.js} +2 -2
  126. package/dist/{vue-ui-molecule-DH-sHfQ-.js → vue-ui-molecule-N938wMMB.js} +5 -5
  127. package/dist/{vue-ui-mood-radar-BWASgbMe.js → vue-ui-mood-radar-D1hHnpLB.js} +7 -7
  128. package/dist/{vue-ui-nested-donuts-4ey-UxN-.js → vue-ui-nested-donuts-DeTGEb4T.js} +597 -595
  129. package/dist/{vue-ui-onion-40DoblSj.js → vue-ui-onion-BwY998zT.js} +376 -332
  130. package/dist/{vue-ui-parallel-coordinate-plot-BIV0-SLG.js → vue-ui-parallel-coordinate-plot-B4v3AheY.js} +43 -43
  131. package/dist/{vue-ui-quadrant-Dvuwg4h7.js → vue-ui-quadrant-4f1p9gSO.js} +8 -8
  132. package/dist/{vue-ui-quick-chart-CZgZOWsW.js → vue-ui-quick-chart-CGbEBTS1.js} +52 -52
  133. package/dist/{vue-ui-radar-BfoE3AZN.js → vue-ui-radar-B15r4HoM.js} +57 -57
  134. package/dist/{vue-ui-rating-BciQHmzs.js → vue-ui-rating-CaRZVE71.js} +2 -2
  135. package/dist/{vue-ui-relation-circle-EVMDQTCn.js → vue-ui-relation-circle-CFEL1uYt.js} +7 -7
  136. package/dist/{vue-ui-ridgeline-BO-JV7Qz.js → vue-ui-ridgeline-LGH61-xE.js} +8 -8
  137. package/dist/{vue-ui-rings-B0wMY8Cu.js → vue-ui-rings-DNdUdKax.js} +270 -246
  138. package/dist/{vue-ui-scatter-CyjpTjlf.js → vue-ui-scatter-Duxs0Ie_.js} +8 -8
  139. package/dist/{vue-ui-skeleton-C8Aq8dTp.js → vue-ui-skeleton-UoBAzUyN.js} +3 -3
  140. package/dist/{vue-ui-smiley-C0Bqip2_.js → vue-ui-smiley-BhpJbcM8.js} +2 -2
  141. package/dist/{vue-ui-spark-trend-B1pD2N9Z.js → vue-ui-spark-trend-2c75iF9Y.js} +96 -96
  142. package/dist/{vue-ui-sparkbar-DFlGdgrX.js → vue-ui-sparkbar-B2E5nzBF.js} +3 -3
  143. package/dist/{vue-ui-sparkgauge-BMRbWZ_X.js → vue-ui-sparkgauge-DFkpaMkk.js} +13 -13
  144. package/dist/{vue-ui-sparkhistogram-jI9-0GyS.js → vue-ui-sparkhistogram-K6lo-KnY.js} +4 -4
  145. package/dist/{vue-ui-sparkline-DLB7uHga.js → vue-ui-sparkline-CsByZZt4.js} +11 -11
  146. package/dist/{vue-ui-sparkstackbar-E8mYJ8eg.js → vue-ui-sparkstackbar-ByUb6nk-.js} +3 -3
  147. package/dist/{vue-ui-stackbar-zhHYnvVo.js → vue-ui-stackbar-D7SnQvr4.js} +41 -41
  148. package/dist/{vue-ui-stackline-rFr4hLbc.js → vue-ui-stackline-BnRxf3k_.js} +130 -130
  149. package/dist/{vue-ui-strip-plot-DA8uwUaL.js → vue-ui-strip-plot-CJWXdisu.js} +28 -28
  150. package/dist/{vue-ui-table-CldDVgkf.js → vue-ui-table-BHWwypkc.js} +27 -27
  151. package/dist/{vue-ui-table-heatmap-CDnzIKGy.js → vue-ui-table-heatmap-DvHKKwJA.js} +12 -12
  152. package/dist/{vue-ui-table-sparkline-D3XfL4kK.js → vue-ui-table-sparkline-uK0q-dO9.js} +11 -11
  153. package/dist/{vue-ui-thermometer-CU86DLRC.js → vue-ui-thermometer-Bxn0JNeJ.js} +31 -31
  154. package/dist/{vue-ui-timer-CPZBXUbs.js → vue-ui-timer-7o5Jrxf3.js} +5 -5
  155. package/dist/{vue-ui-tiremarks-CLiEtCKe.js → vue-ui-tiremarks-DHoUaHOe.js} +6 -6
  156. package/dist/{vue-ui-treemap-Dht5s1nE.js → vue-ui-treemap-B_4cIAAI.js} +51 -51
  157. package/dist/{vue-ui-waffle-BQM8XJln.js → vue-ui-waffle-CddfqNWD.js} +381 -352
  158. package/dist/{vue-ui-wheel-CX-gWpDL.js → vue-ui-wheel-CGYJA-33.js} +6 -6
  159. package/dist/{vue-ui-word-cloud-dolAsuyP.js → vue-ui-word-cloud-oszTieHn.js} +32 -32
  160. package/dist/{vue-ui-world-su4gjhTo.js → vue-ui-world-DQjHEyKe.js} +31 -31
  161. package/dist/{vue-ui-xy-BSBAegJ1.js → vue-ui-xy-D5A8tR-O.js} +9 -9
  162. package/dist/{vue-ui-xy-canvas-9tgX_s2v.js → vue-ui-xy-canvas-Bzd8pZdH.js} +100 -100
  163. package/package.json +1 -1
  164. package/dist/vue-ui-donut-BjSuCwQE.js +0 -2078
@@ -1,39 +1,40 @@
1
- import { defineAsyncComponent as E, useSlots as Yt, computed as v, ref as i, toRefs as Zt, watch as Z, shallowRef as tt, onMounted as Jt, onBeforeUnmount as Kt, createElementBlock as c, openBlock as n, unref as h, normalizeStyle as ae, normalizeClass as lt, createBlock as L, createCommentVNode as C, createElementVNode as k, createVNode as oe, withCtx as f, renderSlot as p, normalizeProps as $, guardReactiveProps as x, createSlots as we, Fragment as T, renderList as z, mergeProps as Ae, toDisplayString as ue, Teleport as Qt, resolveDynamicComponent as el, createTextVNode as at, nextTick as tl } from "vue";
2
- import { c as ll, t as al, i as ol, p as R, o as ot, g as $e, k as ul, j as rl, a as J, d as D, X as nl, s as sl, h as il, w as cl, l as vl, u as dl, q as hl, F as fl, x as pl, Z as gl } from "./lib-W9waxHL3.js";
3
- import { t as yl, u as bl } from "./useResponsive-DfdjqQps.js";
4
- import { u as ml, a as xe } from "./useNestedProp-D-jUHecl.js";
5
- import { u as Cl, B as kl } from "./BaseScanner-BMpwQAfz.js";
6
- import { u as wl } from "./usePrinter-DhoMn87n.js";
7
- import { u as Al } from "./useSvgExport-ByUukOZt.js";
8
- import { u as $l } from "./useThemeCheck-DGJ31Vi5.js";
9
- import { u as xl } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as Tl } from "./useChartAccessibility-9icAAmYg.js";
11
- import Fl from "./img-BJzUSmkm.js";
12
- import { _ as Il } from "./Shape-_iTOIp3x.js";
13
- import Sl from "./Title-DFtCaCah.js";
14
- import _l from "./Legend-Dxz13z4E.js";
15
- import { _ as Bl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rect: { rounded: !1, stroke: "#1A1A1A" } }, 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" } } }, rt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { rect: { rounded: !1, stroke: "#FFF8E1", useGradient: !1 } }, legend: { color: "#424242", backgroundColor: "#FFF8E1" }, 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" } } }, nt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { rect: { rounded: !1, stroke: "#1E1E1E", useGradient: !1 } }, legend: { color: "#BDBDBD", backgroundColor: "#1E1E1E" }, 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" } } }, st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { rect: { rounded: !1, stroke: "#66CC66", useGradient: !1 } }, legend: { color: "#99AA99", backgroundColor: "#1A1A1A" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, it = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { rect: { rounding: 4, stroke: "#fbfafa" } }, 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" } } }, ct = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { rect: { rounded: !1, stroke: "#404C5A", useGradient: !1 } }, 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" } } }, vt = {
1
+ import { defineAsyncComponent as L, useSlots as Jt, computed as v, ref as i, toRefs as Kt, watch as J, shallowRef as lt, onMounted as Qt, onBeforeUnmount as Zt, createElementBlock as c, openBlock as r, unref as d, normalizeStyle as ae, normalizeClass as at, createBlock as E, createCommentVNode as C, createElementVNode as k, createVNode as oe, withCtx as f, renderSlot as h, normalizeProps as x, guardReactiveProps as $, createSlots as Ae, Fragment as T, renderList as z, mergeProps as xe, toDisplayString as ne, Teleport as el, resolveDynamicComponent as tl, createTextVNode as ot, nextTick as ll } from "vue";
2
+ import { c as al, t as ol, i as nl, j as R, o as nt, g as $e, l as ul, k as rl, a as K, d as D, X as sl, s as il, h as cl, x as vl, m as dl, v as fl, r as hl, G as pl, y as gl, _ as yl } from "./lib-BwysEpWI.js";
3
+ import { b as bl } from "./labelUtils-PMU3ZGCb.js";
4
+ import { t as ml, u as Cl } from "./useResponsive-DfdjqQps.js";
5
+ import { u as kl, a as Te } from "./useNestedProp--5lL-kf1.js";
6
+ import { u as wl, B as Al } from "./BaseScanner-BMpwQAfz.js";
7
+ import { u as xl } from "./usePrinter-BJzHDpYF.js";
8
+ import { u as $l } from "./useSvgExport-ByUukOZt.js";
9
+ import { u as Tl } from "./useThemeCheck-DGJ31Vi5.js";
10
+ import { u as Fl } from "./useUserOptionState-BIvW1Kz7.js";
11
+ import { u as Il } from "./useChartAccessibility-9icAAmYg.js";
12
+ import Sl from "./img-DKigoPDs.js";
13
+ import { _ as _l } from "./Shape-DAHhCEdg.js";
14
+ import Bl from "./Title-BhURirpm.js";
15
+ import Ol from "./Legend-D6z73edh.js";
16
+ import { _ as Dl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
+ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rect: { rounded: !1, stroke: "#1A1A1A" } }, 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" } } }, rt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { rect: { rounded: !1, stroke: "#FFF8E1", useGradient: !1 } }, legend: { color: "#424242", backgroundColor: "#FFF8E1" }, 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: { rect: { rounded: !1, stroke: "#1E1E1E", useGradient: !1 } }, legend: { color: "#BDBDBD", backgroundColor: "#1E1E1E" }, 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" } } }, it = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { rect: { rounded: !1, stroke: "#66CC66", useGradient: !1 } }, legend: { color: "#99AA99", backgroundColor: "#1A1A1A" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, ct = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { rect: { rounding: 4, stroke: "#fbfafa" } }, 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" } } }, vt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { rect: { rounded: !1, stroke: "#404C5A", useGradient: !1 } }, 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" } } }, dt = {
17
18
  default: {},
18
19
  dark: ut,
19
20
  celebration: rt,
20
- celebrationNight: nt,
21
- hack: st,
22
- zen: it,
23
- concrete: ct
24
- }, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21
+ celebrationNight: st,
22
+ hack: it,
23
+ zen: ct,
24
+ concrete: vt
25
+ }, ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
26
  __proto__: null,
26
27
  celebration: rt,
27
- celebrationNight: nt,
28
- concrete: ct,
28
+ celebrationNight: st,
29
+ concrete: vt,
29
30
  dark: ut,
30
- default: vt,
31
- hack: st,
32
- zen: it
33
- }, Symbol.toStringTag, { value: "Module" })), Ol = ["id"], Dl = ["id"], Pl = ["xmlns", "viewBox"], El = ["id"], Ll = ["stop-color"], zl = ["stop-color"], Vl = ["id"], Nl = ["x", "y", "height", "width"], Ml = ["height", "width"], Rl = { key: 0 }, Ul = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Gl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Wl = { key: 1 }, jl = ["rx", "x", "y", "height", "width", "fill", "filter"], ql = ["textContent", "x", "y", "font-size", "fill", "filter"], Hl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Xl = {
31
+ default: dt,
32
+ hack: it,
33
+ zen: ct
34
+ }, Symbol.toStringTag, { value: "Module" })), Pl = ["id"], Ll = ["id"], El = ["xmlns", "viewBox"], zl = ["id"], Nl = ["stop-color"], Vl = ["stop-color"], Ml = ["id"], Rl = ["x", "y", "height", "width"], Ul = ["height", "width"], Gl = { key: 0 }, Wl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], jl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], ql = { key: 1 }, Hl = ["rx", "x", "y", "height", "width", "fill", "filter"], Xl = ["textContent", "x", "y", "font-size", "fill", "filter"], Yl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Jl = {
34
35
  key: 4,
35
36
  class: "vue-data-ui-watermark"
36
- }, Yl = ["id"], Zl = ["onClick"], Jl = ["innerHTML"], Kl = {
37
+ }, Kl = ["id"], Ql = ["onClick"], Zl = ["innerHTML"], ea = {
37
38
  __name: "vue-ui-waffle",
38
39
  props: {
39
40
  config: {
@@ -50,14 +51,14 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
50
51
  }
51
52
  },
52
53
  emits: ["selectLegend"],
53
- setup(dt, { expose: ht, emit: ft }) {
54
- const pt = E(() => import("./Tooltip-B79qvriT.js")), gt = E(() => import("./BaseIcon-r3_sTK1A.js")), yt = E(() => import("./DataTable-DNeCys3I.js")), bt = E(() => import("./vue-ui-accordion-B6BX2vhq.js")), mt = E(() => import("./UserOptions-B-2A_KRb.js")), Ct = E(() => import("./PenAndPaper-CsqBamFZ.js")), kt = E(() => import("./PackageVersion-DPLuuWzw.js")), wt = E(() => import("./BaseDraggableDialog-C167SnU0.js")), { vue_ui_waffle: At } = ml(), { isThemeValid: $t, warnInvalidTheme: xt } = $l(), m = dt, Tt = Yt(), re = v(() => !!m.dataset && m.dataset.length), b = i(ll()), ne = i(!1), se = i(""), U = i(null), Te = i(0), F = i(null), Fe = i(null), Ie = i(null), Se = i(null), _e = i(null), Be = i(0), Oe = i(0), De = i(0), Pe = i(!1), j = i(null), ie = i(null), e = i(he()), { loading: Ee, FINAL_DATASET: K, manualLoading: ce } = Cl({
55
- ...Zt(m),
54
+ setup(ft, { expose: ht, emit: pt }) {
55
+ const gt = L(() => import("./Tooltip-TDyKgLB6.js")), yt = L(() => import("./BaseIcon-4i3dd7Ty.js")), bt = L(() => import("./DataTable-WrXCJkfE.js")), mt = L(() => import("./vue-ui-accordion-tQNKwbVi.js")), Ct = L(() => import("./UserOptions-CzJWRC4s.js")), kt = L(() => import("./PenAndPaper-DxIUvoQ8.js")), wt = L(() => import("./PackageVersion-D3cMhAlf.js")), At = L(() => import("./BaseDraggableDialog-CAJxIF6g.js")), { vue_ui_waffle: xt } = kl(), { isThemeValid: $t, warnInvalidTheme: Tt } = Tl(), m = ft, Ft = Jt(), ue = v(() => !!m.dataset && m.dataset.length), b = i(al()), re = i(!1), se = i(""), U = i(null), Fe = i(0), F = i(null), Ie = i(null), Se = i(null), _e = i(null), Be = i(null), Oe = i(0), De = i(0), Pe = i(0), Le = i(!1), j = i(null), ie = i(null), e = i(fe()), { loading: Ee, FINAL_DATASET: Q, manualLoading: ce } = wl({
56
+ ...Kt(m),
56
57
  FINAL_CONFIG: e,
57
- prepareConfig: he,
58
+ prepareConfig: fe,
58
59
  callback: () => {
59
60
  Promise.resolve().then(async () => {
60
- g.value = fe();
61
+ p.value = he();
61
62
  });
62
63
  },
63
64
  skeletonDataset: [
@@ -77,7 +78,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
77
78
  color: "#CACACA"
78
79
  }
79
80
  ],
80
- skeletonConfig: al({
81
+ skeletonConfig: ol({
81
82
  defaultConfig: e.value,
82
83
  userConfig: {
83
84
  useCustomCells: !1,
@@ -103,37 +104,37 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
103
104
  }
104
105
  }
105
106
  })
106
- }), { userOptionsVisible: ve, setUserOptionsVisibility: Le, keepUserOptionState: ze } = xl({ config: e.value }), { svgRef: de } = Tl({ config: e.value.style.chart.title });
107
- function he() {
108
- const t = xe({
107
+ }), { userOptionsVisible: ve, setUserOptionsVisibility: ze, keepUserOptionState: Ne } = Fl({ config: e.value }), { svgRef: de } = Il({ config: e.value.style.chart.title });
108
+ function fe() {
109
+ const t = Te({
109
110
  userConfig: m.config,
110
- defaultConfig: At
111
+ defaultConfig: xt
111
112
  }), l = t.theme;
112
113
  if (!l) return t;
113
114
  if (!$t.value(t))
114
- return xt(t), t;
115
- const a = xe({
116
- userConfig: vt[l] || m.config,
115
+ return Tt(t), t;
116
+ const a = Te({
117
+ userConfig: dt[l] || m.config,
117
118
  defaultConfig: t
118
- }), o = xe({
119
+ }), o = Te({
119
120
  userConfig: m.config,
120
121
  defaultConfig: a
121
122
  });
122
123
  return {
123
124
  ...o,
124
- customPalette: o.customPalette.length ? o.customPalette : ol[l] || R
125
+ customPalette: o.customPalette.length ? o.customPalette : nl[l] || R
125
126
  };
126
127
  }
127
- Z(() => m.config, (t) => {
128
- Ee.value || (e.value = he()), ve.value = !e.value.userOptions.showOnChartHover, Ne(), Be.value += 1, Oe.value += 1, De.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
128
+ J(() => m.config, (t) => {
129
+ Ee.value || (e.value = fe()), ve.value = !e.value.userOptions.showOnChartHover, Me(), Oe.value += 1, De.value += 1, Pe.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
129
130
  }, { deep: !0 });
130
- const P = tt(null), G = tt(null), Ve = v(() => !!e.value.debug);
131
- function Ne() {
132
- if (ot(m.dataset) ? ($e({
131
+ const P = lt(null), G = lt(null), Ve = v(() => !!e.value.debug);
132
+ function Me() {
133
+ if (nt(m.dataset) ? ($e({
133
134
  componentName: "VueUiWaffle",
134
135
  type: "dataset",
135
136
  debug: Ve.value
136
- }), re.value = !1, ce.value = !0) : m.dataset.forEach((t, l) => {
137
+ }), ue.value = !1, ce.value = !0) : m.dataset.forEach((t, l) => {
137
138
  ul({
138
139
  datasetObject: t,
139
140
  requiredAttributes: ["name", "values"]
@@ -146,42 +147,42 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
146
147
  debug: Ve.value
147
148
  });
148
149
  });
149
- }), ot(m.dataset) || (ce.value = e.value.loading), e.value.responsive) {
150
- const t = yl(() => {
151
- const { width: l, height: a } = bl({
150
+ }), nt(m.dataset) || (ce.value = e.value.loading), e.value.responsive) {
151
+ const t = ml(() => {
152
+ const { width: l, height: a } = Cl({
152
153
  chart: F.value,
153
- title: e.value.style.chart.title.text ? Fe.value : null,
154
- legend: e.value.style.chart.legend.show ? Ie.value : null,
155
- source: Se.value,
156
- noTitle: _e.value
154
+ title: e.value.style.chart.title.text ? Ie.value : null,
155
+ legend: e.value.style.chart.legend.show ? Se.value : null,
156
+ source: _e.value,
157
+ noTitle: Be.value
157
158
  });
158
159
  requestAnimationFrame(() => {
159
- V.value.width = l, V.value.height = a, I.value.width = l, I.value.height = a;
160
+ N.value.width = l, N.value.height = a, I.value.width = l, I.value.height = a;
160
161
  });
161
162
  });
162
163
  P.value && (G.value && P.value.unobserve(G.value), P.value.disconnect()), P.value = new ResizeObserver(t), G.value = F.value.parentNode, P.value.observe(G.value);
163
164
  }
164
165
  }
165
- Jt(() => {
166
- Pe.value = !0, Ne();
167
- }), Kt(() => {
166
+ Qt(() => {
167
+ Le.value = !0, Me();
168
+ }), Zt(() => {
168
169
  P.value && (G.value && P.value.unobserve(G.value), P.value.disconnect());
169
170
  });
170
- const { isPrinting: Me, isImaging: Re, generatePdf: Ue, generateImage: Ge } = wl({
171
+ const { isPrinting: Re, isImaging: Ue, generatePdf: Ge, generateImage: We } = xl({
171
172
  elementId: `vue-ui-waffle_${b.value}`,
172
173
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
173
174
  options: e.value.userOptions.print
174
- }), Ft = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), We = v(() => rl(e.value.customPalette)), w = i({
175
+ }), It = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), je = v(() => rl(e.value.customPalette)), w = i({
175
176
  showTable: e.value.table.show,
176
177
  showTooltip: e.value.style.chart.tooltip.show
177
178
  });
178
- Z(e, () => {
179
+ J(e, () => {
179
180
  w.value = {
180
181
  showTable: e.value.table.show,
181
182
  showTooltip: e.value.style.chart.tooltip.show
182
183
  };
183
184
  }, { immediate: !0 });
184
- const V = i({
185
+ const N = i({
185
186
  height: 512,
186
187
  width: 512
187
188
  }), I = i({
@@ -189,62 +190,62 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
189
190
  left: 0,
190
191
  height: 512,
191
192
  width: 512
192
- }), S = v(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), _ = v(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), It = v(() => Math.max(1e-4, I.value.width / e.value.style.chart.layout.grid.size)), je = v(() => Math.max(1e-4, I.value.height / e.value.style.chart.layout.grid.size));
193
- function qe(t) {
194
- const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((A, ke) => A + ke, 0), o = t.map((A) => A / a * l), u = o.map(Math.floor), r = o.map((A) => A % 1);
195
- let d = l - u.reduce((A, ke) => A + ke, 0);
196
- for (; d > 0; ) {
197
- let A = r.indexOf(Math.max(...r));
198
- u[A] += 1, r[A] = 0, d -= 1;
193
+ }), S = v(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), _ = v(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), St = v(() => Math.max(1e-4, I.value.width / e.value.style.chart.layout.grid.size)), qe = v(() => Math.max(1e-4, I.value.height / e.value.style.chart.layout.grid.size));
194
+ function He(t) {
195
+ const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((A, we) => A + we, 0), o = t.map((A) => A / a * l), n = o.map(Math.floor), u = o.map((A) => A % 1);
196
+ let g = l - n.reduce((A, we) => A + we, 0);
197
+ for (; g > 0; ) {
198
+ let A = u.indexOf(Math.max(...u));
199
+ n[A] += 1, u[A] = 0, g -= 1;
199
200
  }
200
- return u;
201
+ return n;
201
202
  }
202
203
  const q = i(!1);
203
- function fe() {
204
- return q.value = K.value.flatMap((t) => t.values.reduce((l, a) => l + a, 0)).reduce((t, l) => t + l, 0) === 0, K.value.map((t, l) => ({
204
+ function he() {
205
+ return q.value = Q.value.flatMap((t) => t.values.reduce((l, a) => l + a, 0)).reduce((t, l) => t + l, 0) === 0, Q.value.map((t, l) => ({
205
206
  ...t,
206
- color: vl(t.color) || We.value[l] || R[l] || R[l % R.length],
207
+ color: dl(t.color) || je.value[l] || R[l] || R[l % R.length],
207
208
  uid: `serie_${l}`,
208
209
  absoluteIndex: l
209
210
  }));
210
211
  }
211
- const pe = v(() => fe()), g = i(pe.value);
212
- Z(() => m.dataset, (t) => {
212
+ const pe = v(() => he()), p = i(pe.value);
213
+ J(() => m.dataset, (t) => {
213
214
  Array.isArray(t) && t.length > 0 && (ce.value = !1);
214
- }, { immediate: !0 }), Z(() => m.dataset, (t) => {
215
- g.value = fe();
215
+ }, { immediate: !0 }), J(() => m.dataset, (t) => {
216
+ p.value = he();
216
217
  }, { deep: !0 });
217
- const St = v(() => {
218
- const t = g.value.filter((l, a) => !y.value.includes(l.uid)).map((l, a) => q.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
219
- return qe(t);
220
- }), _t = v(() => {
221
- const t = g.value.map((l, a) => q.value ? 1 : (l.values || []).reduce((o, u) => o + u));
222
- return qe(t);
223
- }), H = v(() => (K.value.forEach((t, l) => {
218
+ const _t = v(() => {
219
+ const t = p.value.filter((l, a) => !y.value.includes(l.uid)).map((l, a) => q.value ? 1 : (l.values || []).reduce((o, n) => o + n, 0));
220
+ return He(t);
221
+ }), Bt = v(() => {
222
+ const t = p.value.map((l, a) => q.value ? 1 : (l.values || []).reduce((o, n) => o + n));
223
+ return He(t);
224
+ }), H = v(() => (Q.value.forEach((t, l) => {
224
225
  [null, void 0].includes(t.values) && $e({
225
226
  componentName: "VueUiWaffle",
226
227
  type: "datasetSerieAttribute",
227
228
  property: "values (number[])",
228
229
  index: l
229
230
  });
230
- }), g.value.filter((t, l) => !y.value.includes(t.uid)).map((t, l) => ({
231
+ }), p.value.filter((t, l) => !y.value.includes(t.uid)).map((t, l) => ({
231
232
  absoluteIndex: t.absoluteIndex,
232
233
  uid: t.uid,
233
234
  name: t.name,
234
235
  color: t.color,
235
236
  value: (t.values || []).reduce((a, o) => a + o, 0),
236
237
  absoluteValues: t.values || [],
237
- proportion: St.value[l]
238
- })))), ge = v(() => g.value.map((t, l) => ({
238
+ proportion: _t.value[l]
239
+ })))), ge = v(() => p.value.map((t, l) => ({
239
240
  absoluteIndex: t.absoluteIndex,
240
241
  uid: t.uid,
241
242
  name: t.name,
242
243
  color: t.color,
243
244
  value: (t.values || []).reduce((a, o) => a + o, 0),
244
245
  absoluteValues: t.values || [],
245
- proportion: _t.value[l]
246
+ proportion: Bt.value[l]
246
247
  })));
247
- function Bt() {
248
+ function Ot() {
248
249
  return ge.value.map((t) => ({
249
250
  name: t.name,
250
251
  color: t.color,
@@ -252,19 +253,19 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
252
253
  proportion: t.proportion
253
254
  }));
254
255
  }
255
- const Ot = v(() => {
256
+ const Dt = v(() => {
256
257
  let t = 0;
257
258
  return H.value.map((l, a) => {
258
- const o = t, u = o + l.proportion, r = [];
259
- for (let d = Math.floor(o); d < Math.floor(u); d += 1)
260
- r.push(d);
261
- return t = u, {
259
+ const o = t, n = o + l.proportion, u = [];
260
+ for (let g = Math.floor(o); g < Math.floor(n); g += 1)
261
+ u.push(g);
262
+ return t = n, {
262
263
  ...l,
263
264
  start: o,
264
- rects: r
265
+ rects: u
265
266
  };
266
267
  });
267
- }), s = v(() => Ot.value.flatMap((t, l) => t.rects.map((a, o) => ({
268
+ }), s = v(() => Dt.value.flatMap((t, l) => t.rects.map((a, o) => ({
268
269
  isFirst: o === 0,
269
270
  isLongEnough: a.length > 2,
270
271
  name: t.name,
@@ -288,150 +289,174 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
288
289
  y: (e.value.style.chart.layout.grid.vertical ? a : l) * (_.value + e.value.style.chart.layout.grid.spaceBetween) + I.value.top
289
290
  });
290
291
  return t;
291
- }), y = i([]), X = i(!1), He = i(null), Xe = i(null);
292
- function Q(t) {
292
+ }), y = i([]), X = i(!1), Xe = i(null), Ye = i(null);
293
+ function Z(t) {
293
294
  if (q.value) return;
294
295
  if (!e.value.useAnimation) {
295
- y.value.includes(t) ? y.value = y.value.filter((u) => u !== t) : y.value.length < N.value.length - 1 && N.value.length > 1 && y.value.push(t);
296
+ y.value.includes(t) ? y.value = y.value.filter((n) => n !== t) : y.value.length < V.value.length - 1 && V.value.length > 1 && y.value.push(t);
296
297
  return;
297
298
  }
298
- const l = pe.value.find((u) => u.uid === t).values.reduce((u, r) => u + r, 0), a = g.value.find((u) => u.uid === t).values.reduce((u, r) => u + r, 0);
299
+ const l = pe.value.find((n) => n.uid === t).values.reduce((n, u) => n + u, 0), a = p.value.find((n) => n.uid === t).values.reduce((n, u) => n + u, 0);
299
300
  let o = a;
300
301
  if (!(a === 0 && l === 0)) {
301
302
  if (y.value.includes(t)) {
302
- let r = function() {
303
- o > u ? (cancelAnimationFrame(He.value), g.value = g.value.map((d, A) => d.uid === t ? {
304
- ...d,
305
- values: [u]
306
- } : d), X.value = !1) : (X.value = !0, o += u * 0.025, g.value = g.value.map((d, A) => d.uid === t ? {
307
- ...d,
303
+ let u = function() {
304
+ o > n ? (cancelAnimationFrame(Xe.value), p.value = p.value.map((g, A) => g.uid === t ? {
305
+ ...g,
306
+ values: [n]
307
+ } : g), X.value = !1) : (X.value = !0, o += n * 0.025, p.value = p.value.map((g, A) => g.uid === t ? {
308
+ ...g,
308
309
  values: [o]
309
- } : d), He.value = requestAnimationFrame(r));
310
+ } : g), Xe.value = requestAnimationFrame(u));
310
311
  };
311
- y.value = y.value.filter((d) => d !== t);
312
- const u = l;
313
- r();
314
- } else if (y.value.length < N.value.length - 1 && N.value.length > 1) {
315
- let u = function() {
316
- o < a / 100 ? (cancelAnimationFrame(Xe.value), y.value.push(t), g.value = g.value.map((r, d) => r.uid === t ? {
317
- ...r,
312
+ y.value = y.value.filter((g) => g !== t);
313
+ const n = l;
314
+ u();
315
+ } else if (y.value.length < V.value.length - 1 && V.value.length > 1) {
316
+ let n = function() {
317
+ o < a / 100 ? (cancelAnimationFrame(Ye.value), y.value.push(t), p.value = p.value.map((u, g) => u.uid === t ? {
318
+ ...u,
318
319
  values: [0]
319
- } : r), X.value = !1) : (X.value = !0, o /= 1.15, g.value = g.value.map((r) => r.uid === t ? {
320
- ...r,
320
+ } : u), X.value = !1) : (X.value = !0, o /= 1.15, p.value = p.value.map((u) => u.uid === t ? {
321
+ ...u,
321
322
  values: [o]
322
- } : r), Xe.value = requestAnimationFrame(u));
323
+ } : u), Ye.value = requestAnimationFrame(n));
323
324
  };
324
- u();
325
+ n();
325
326
  }
326
- Nt("selectLegend", H.value.map((u) => ({
327
- name: u.name,
328
- color: u.color,
329
- value: u.value,
330
- proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
327
+ Mt("selectLegend", H.value.map((n) => ({
328
+ name: n.name,
329
+ color: n.color,
330
+ value: n.value,
331
+ proportion: n.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
331
332
  })));
332
333
  }
333
334
  }
334
- function Ye(t) {
335
+ function Je(t) {
335
336
  if (!ge.value.length)
336
337
  return e.value.debug && console.warn("VueUiWaffle - There are no series to show."), null;
337
338
  const l = ge.value.find((a) => a.name === t);
338
339
  return l || (e.value.debug && console.warn(`VueUiWaffle - Series name not found "${t}"`), null);
339
340
  }
340
- function Dt(t) {
341
- const l = Ye(t);
342
- l !== null && y.value.includes(l.uid) && Q(l.uid);
343
- }
344
341
  function Pt(t) {
345
- const l = Ye(t);
346
- l !== null && (y.value.includes(l.uid) || Q(l.uid));
342
+ const l = Je(t);
343
+ l !== null && y.value.includes(l.uid) && Z(l.uid);
347
344
  }
348
- const N = v(() => g.value.map((t, l) => {
349
- const a = (t.values || []).reduce((u, r) => u + r, 0), o = a / g.value.map((u) => (u.values || []).reduce((r, d) => r + d, 0)).reduce((u, r) => u + r, 0);
345
+ function Lt(t) {
346
+ const l = Je(t);
347
+ l !== null && (y.value.includes(l.uid) || Z(l.uid));
348
+ }
349
+ function ye({
350
+ val: t,
351
+ percentage: l,
352
+ showVal: a,
353
+ showPercentage: o
354
+ }) {
355
+ const n = e.value.style.chart.layout.labels.dataLabels;
356
+ return bl({
357
+ config: n,
358
+ val: t,
359
+ percentage: l,
360
+ showVal: a,
361
+ showPercentage: o
362
+ });
363
+ }
364
+ const V = v(() => p.value.map((t, l) => {
365
+ const a = (t.values || []).reduce((n, u) => n + u, 0), o = a / p.value.map((n) => (n.values || []).reduce((u, g) => u + g, 0)).reduce((n, u) => n + u, 0);
350
366
  return {
351
367
  name: t.name,
352
- color: t.color || We[l] || R[l] || R[l % R.length],
368
+ color: t.color || je[l] || R[l] || R[l % R.length],
353
369
  value: a,
354
370
  proportion: o,
355
371
  uid: t.uid,
356
372
  shape: "square"
357
373
  };
358
- }).map((t, l) => ({
359
- ...t,
360
- opacity: y.value.includes(t.uid) ? 0.5 : 1,
361
- segregate: () => Q(t.uid),
362
- isSegregated: y.value.includes(t.uid),
363
- display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? J(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, D({
374
+ }).map((t, l) => {
375
+ const a = K(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, D({
364
376
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
365
377
  v: t.value,
366
378
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
367
379
  r: e.value.style.chart.legend.roundingValue
368
- }), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? y.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / B.value) ? "-" : D({ v: t.value / B.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
369
- }))), Et = v(() => ({
380
+ }), { datapoint: t, index: l }), o = isNaN(t.value / B.value) ? "-" : D({ v: t.value / B.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage }), n = ye({
381
+ val: a,
382
+ percentage: o,
383
+ showVal: e.value.style.chart.legend.showValue,
384
+ showPercentage: e.value.style.chart.legend.showPercentage
385
+ });
386
+ return console.log({ display: n, percentageDisplay: o }), {
387
+ ...t,
388
+ opacity: y.value.includes(t.uid) ? 0.5 : 1,
389
+ segregate: () => Z(t.uid),
390
+ isSegregated: y.value.includes(t.uid),
391
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${n}`
392
+ };
393
+ })), Et = v(() => ({
370
394
  cy: "waffle-div-legend",
371
395
  backgroundColor: e.value.style.chart.legend.backgroundColor,
372
396
  color: e.value.style.chart.legend.color,
373
397
  fontSize: e.value.style.chart.legend.fontSize,
374
398
  paddingBottom: 12,
375
399
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
376
- })), B = v(() => H.value.map((t) => t.value).reduce((t, l) => t + l, 0)), ye = i(null), be = i(null);
377
- function Lt(t) {
400
+ })), B = v(() => H.value.map((t) => t.value).reduce((t, l) => t + l, 0)), be = i(null), me = i(null);
401
+ function zt(t) {
378
402
  const l = s.value[t];
379
403
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.serieIndex });
380
404
  }
381
- function zt(t) {
405
+ function Nt(t) {
382
406
  const l = s.value[t];
383
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), be.value = null, ne.value = !1, U.value = null;
407
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), me.value = null, re.value = !1, U.value = null;
384
408
  }
385
409
  function Vt(t) {
386
410
  if (y.value.length === m.dataset.length) return;
387
411
  const l = s.value[t];
388
- ye.value = {
412
+ be.value = {
389
413
  datapoint: l,
390
414
  seriesIndex: l.absoluteIndex,
391
- series: g.value,
415
+ series: p.value,
392
416
  config: e.value
393
- }, e.value.events.datapointEnter && be.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), be.value = l.serieIndex, ne.value = !0, U.value = s.value[t].serieIndex;
417
+ }, e.value.events.datapointEnter && me.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), me.value = l.serieIndex, re.value = !0, U.value = s.value[t].serieIndex;
394
418
  const a = e.value.style.chart.tooltip.customFormat;
395
- if (pl(a) && gl(() => a({
419
+ if (gl(a) && yl(() => a({
396
420
  seriesIndex: s.value[t].absoluteIndex,
397
421
  datapoint: l,
398
- series: g.value,
422
+ series: p.value,
399
423
  config: e.value
400
424
  })))
401
425
  se.value = a({
402
426
  seriesIndex: s.value[t].absoluteIndex,
403
427
  datapoint: l,
404
- series: g.value,
428
+ series: p.value,
405
429
  config: e.value
406
430
  });
407
431
  else {
408
432
  let o = "";
409
- if (o += `<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>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${l.color}" />${Tt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${J(
410
- e.value.style.chart.layout.labels.dataLabels.formatter,
411
- l.value,
412
- D({
413
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
414
- v: l.value,
415
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
416
- r: e.value.style.chart.tooltip.roundingValue
417
- }),
418
- {
419
- datapoint: l,
420
- seriesIndex: s.value[t].absoluteIndex,
421
- series: g.value
422
- }
423
- )}</b>`), e.value.style.chart.tooltip.showPercentage) {
424
- const u = D({
425
- v: q.value ? 1 / K.value.length * 100 : l.value / B.value * 100,
433
+ o += `<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>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${l.color}" />${Ft.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, o += `<b>${ye({
434
+ showVal: e.value.style.chart.tooltip.showValue,
435
+ showPercentage: e.value.style.chart.tooltip.showPercentage,
436
+ val: `<span>${K(
437
+ e.value.style.chart.layout.labels.dataLabels.formatter,
438
+ l.value,
439
+ D({
440
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
441
+ v: l.value,
442
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
443
+ r: e.value.style.chart.tooltip.roundingValue
444
+ }),
445
+ {
446
+ datapoint: l,
447
+ seriesIndex: s.value[t].absoluteIndex,
448
+ series: p.value
449
+ }
450
+ )}</span>`,
451
+ percentage: `<span>${D({
452
+ v: q.value ? 1 / Q.value.length * 100 : l.value / B.value * 100,
426
453
  s: "%",
427
454
  r: e.value.style.chart.tooltip.roundingPercentage
428
- });
429
- e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
430
- }
431
- se.value = o;
455
+ })}</span>`
456
+ })}</b></div>`, se.value = o;
432
457
  }
433
458
  }
434
- const Nt = ft, O = v(() => {
459
+ const Mt = pt, O = v(() => {
435
460
  const t = H.value.map((a) => ({
436
461
  name: a.name,
437
462
  color: a.color
@@ -441,11 +466,11 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
441
466
  function ee(t) {
442
467
  return e.value.useBlurOnHover && ![null, void 0].includes(U.value) && U.value !== t ? `url(#blur_${b.value})` : "";
443
468
  }
444
- function Mt(t, l) {
469
+ function Rt(t, l) {
445
470
  return e.value.style.chart.layout.labels.captions.show ? s.value.length && !X.value && !e.value.style.chart.layout.grid.vertical && (s.value[t].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || s.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && s.value[t].absoluteStartIndex) : !1;
446
471
  }
447
- function Rt(t, l = null) {
448
- const a = J(
472
+ function Ut(t, l = null) {
473
+ const a = K(
449
474
  e.value.style.chart.layout.labels.dataLabels.formatter,
450
475
  s.value[t].value,
451
476
  D({
@@ -455,22 +480,26 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
455
480
  r: e.value.style.chart.layout.labels.captions.roundingValue
456
481
  }),
457
482
  { datapoint: s.value[t], position: l }
458
- ), o = D({ v: s.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? fl({ source: s.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : s.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), r = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
459
- let d = "";
460
- return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = a), `${r}${d}`;
483
+ ), o = D({ v: s.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), n = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? pl({ source: s.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : s.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), u = e.value.style.chart.layout.labels.captions.showSerieName ? n : "", g = ye({
484
+ val: a,
485
+ percentage: o,
486
+ showVal: e.value.style.chart.layout.labels.captions.showValue,
487
+ showPercentage: e.value.style.chart.layout.labels.captions.showPercentage
488
+ });
489
+ return `${u} ${g}`;
461
490
  }
462
- function me(t = null) {
463
- tl(() => {
464
- const l = O.value.head.map((u, r) => [[
465
- u.name
466
- ], [O.value.body[r]], [isNaN(O.value.body[r] / B.value) ? "-" : O.value.body[r] / B.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = dl(a);
491
+ function Ce(t = null) {
492
+ ll(() => {
493
+ const l = O.value.head.map((n, u) => [[
494
+ n.name
495
+ ], [O.value.body[u]], [isNaN(O.value.body[u] / B.value) ? "-" : O.value.body[u] / B.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = fl(a);
467
496
  t ? t(o) : hl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
468
497
  });
469
498
  }
470
499
  const te = v(() => {
471
500
  const t = [
472
501
  ' <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>',
473
- J(
502
+ K(
474
503
  e.value.style.chart.layout.labels.dataLabels.formatter,
475
504
  B.value,
476
505
  D({
@@ -481,23 +510,23 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
481
510
  })
482
511
  ),
483
512
  "100%"
484
- ], l = O.value.head.map((u, r) => [
513
+ ], l = O.value.head.map((n, u) => [
485
514
  {
486
- color: u.color,
487
- name: u.name
515
+ color: n.color,
516
+ name: n.name
488
517
  },
489
- J(
518
+ K(
490
519
  e.value.style.chart.layout.labels.dataLabels.formatter,
491
- O.value.body[r],
520
+ O.value.body[u],
492
521
  D({
493
522
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
494
- v: O.value.body[r],
523
+ v: O.value.body[u],
495
524
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
496
525
  r: e.value.table.td.roundingValue
497
526
  })
498
527
  ),
499
- isNaN(O.value.body[r] / B.value) ? "-" : D({
500
- v: O.value.body[r] / B.value * 100,
528
+ isNaN(O.value.body[u] / B.value) ? "-" : D({
529
+ v: O.value.body[u] / B.value * 100,
501
530
  s: "%",
502
531
  r: e.value.table.td.roundingPercentage
503
532
  })
@@ -526,25 +555,25 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
526
555
  colNames: o
527
556
  };
528
557
  }), M = i(!1);
529
- function Ze(t) {
530
- M.value = t, Te.value += 1;
558
+ function Ke(t) {
559
+ M.value = t, Fe.value += 1;
531
560
  }
532
- function Je() {
561
+ function Qe() {
533
562
  w.value.showTable = !w.value.showTable;
534
563
  }
535
- function Ke() {
564
+ function Ze() {
536
565
  w.value.showTooltip = !w.value.showTooltip;
537
566
  }
538
567
  const le = i(!1);
539
- function Ce() {
568
+ function ke() {
540
569
  le.value = !le.value;
541
570
  }
542
- async function Ut({ scale: t = 2 } = {}) {
571
+ async function Gt({ scale: t = 2 } = {}) {
543
572
  if (!F.value) return;
544
- const { width: l, height: a } = F.value.getBoundingClientRect(), o = l / a, { imageUri: u, base64: r } = await Fl({ domElement: F.value, base64: !0, img: !0, scale: t });
573
+ const { width: l, height: a } = F.value.getBoundingClientRect(), o = l / a, { imageUri: n, base64: u } = await Sl({ domElement: F.value, base64: !0, img: !0, scale: t });
545
574
  return {
546
- imageUri: u,
547
- base64: r,
575
+ imageUri: n,
576
+ base64: u,
548
577
  title: e.value.style.chart.title.text,
549
578
  width: l,
550
579
  height: a,
@@ -554,7 +583,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
554
583
  const Y = v(() => {
555
584
  const t = e.value.table.useDialog && !e.value.table.show, l = w.value.showTable;
556
585
  return {
557
- component: t ? wt : bt,
586
+ component: t ? At : mt,
558
587
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
559
588
  props: t ? {
560
589
  backgroundColor: e.value.table.th.backgroundColor,
@@ -581,94 +610,94 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
581
610
  }
582
611
  };
583
612
  });
584
- Z(() => w.value.showTable, (t) => {
613
+ J(() => w.value.showTable, (t) => {
585
614
  e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
586
615
  });
587
- function Qe() {
616
+ function et() {
588
617
  w.value.showTable = !1, ie.value && ie.value.setTableIconState(!1);
589
618
  }
590
- const Gt = v(() => N.value.map((t) => ({
619
+ const Wt = v(() => V.value.map((t) => ({
591
620
  ...t,
592
621
  name: t.display
593
- }))), Wt = v(() => e.value.style.chart.backgroundColor), jt = v(() => e.value.style.chart.legend), qt = v(() => e.value.style.chart.title), { exportSvg: Ht, getSvg: Xt } = Al({
622
+ }))), jt = v(() => e.value.style.chart.backgroundColor), qt = v(() => e.value.style.chart.legend), Ht = v(() => e.value.style.chart.title), { exportSvg: Xt, getSvg: Yt } = $l({
594
623
  svg: de,
595
- title: qt,
596
- legend: jt,
597
- legendItems: Gt,
598
- backgroundColor: Wt
624
+ title: Ht,
625
+ legend: qt,
626
+ legendItems: Wt,
627
+ backgroundColor: jt
599
628
  });
600
- async function et({ isCb: t }) {
629
+ async function tt({ isCb: t }) {
601
630
  if (t) {
602
- const { blob: l, url: a, text: o, dataUrl: u } = await Xt();
603
- e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: u });
631
+ const { blob: l, url: a, text: o, dataUrl: n } = await Yt();
632
+ e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: n });
604
633
  } else
605
- Ht();
634
+ Xt();
606
635
  }
607
636
  return ht({
608
- getData: Bt,
609
- getImage: Ut,
610
- generatePdf: Ue,
611
- generateCsv: me,
612
- generateImage: Ge,
613
- generateSvg: et,
614
- hideSeries: Pt,
615
- showSeries: Dt,
616
- toggleTable: Je,
617
- toggleTooltip: Ke,
618
- toggleAnnotator: Ce,
619
- toggleFullscreen: Ze
620
- }), (t, l) => (n(), c("div", {
621
- class: lt(`vue-data-ui-component vue-ui-waffle ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
637
+ getData: Ot,
638
+ getImage: Gt,
639
+ generatePdf: Ge,
640
+ generateCsv: Ce,
641
+ generateImage: We,
642
+ generateSvg: tt,
643
+ hideSeries: Lt,
644
+ showSeries: Pt,
645
+ toggleTable: Qe,
646
+ toggleTooltip: Ze,
647
+ toggleAnnotator: ke,
648
+ toggleFullscreen: Ke
649
+ }), (t, l) => (r(), c("div", {
650
+ class: at(`vue-data-ui-component vue-ui-waffle ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
622
651
  ref_key: "waffleChart",
623
652
  ref: F,
624
653
  id: `vue-ui-waffle_${b.value}`,
625
654
  style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
626
- onMouseenter: l[2] || (l[2] = () => h(Le)(!0)),
627
- onMouseleave: l[3] || (l[3] = () => h(Le)(!1))
655
+ onMouseenter: l[2] || (l[2] = () => d(ze)(!0)),
656
+ onMouseleave: l[3] || (l[3] = () => d(ze)(!1))
628
657
  }, [
629
- e.value.userOptions.buttons.annotator ? (n(), L(h(Ct), {
658
+ e.value.userOptions.buttons.annotator ? (r(), E(d(kt), {
630
659
  key: 0,
631
- svgRef: h(de),
660
+ svgRef: d(de),
632
661
  backgroundColor: e.value.style.chart.backgroundColor,
633
662
  color: e.value.style.chart.color,
634
663
  active: le.value,
635
- onClose: Ce
664
+ onClose: ke
636
665
  }, {
637
666
  "annotator-action-close": f(() => [
638
- p(t.$slots, "annotator-action-close", {}, void 0, !0)
667
+ h(t.$slots, "annotator-action-close", {}, void 0, !0)
639
668
  ]),
640
669
  "annotator-action-color": f(({ color: a }) => [
641
- p(t.$slots, "annotator-action-color", $(x({ color: a })), void 0, !0)
670
+ h(t.$slots, "annotator-action-color", x($({ color: a })), void 0, !0)
642
671
  ]),
643
672
  "annotator-action-draw": f(({ mode: a }) => [
644
- p(t.$slots, "annotator-action-draw", $(x({ mode: a })), void 0, !0)
673
+ h(t.$slots, "annotator-action-draw", x($({ mode: a })), void 0, !0)
645
674
  ]),
646
675
  "annotator-action-undo": f(({ disabled: a }) => [
647
- p(t.$slots, "annotator-action-undo", $(x({ disabled: a })), void 0, !0)
676
+ h(t.$slots, "annotator-action-undo", x($({ disabled: a })), void 0, !0)
648
677
  ]),
649
678
  "annotator-action-redo": f(({ disabled: a }) => [
650
- p(t.$slots, "annotator-action-redo", $(x({ disabled: a })), void 0, !0)
679
+ h(t.$slots, "annotator-action-redo", x($({ disabled: a })), void 0, !0)
651
680
  ]),
652
681
  "annotator-action-delete": f(({ disabled: a }) => [
653
- p(t.$slots, "annotator-action-delete", $(x({ disabled: a })), void 0, !0)
682
+ h(t.$slots, "annotator-action-delete", x($({ disabled: a })), void 0, !0)
654
683
  ]),
655
684
  _: 3
656
685
  }, 8, ["svgRef", "backgroundColor", "color", "active"])) : C("", !0),
657
- Ft.value ? (n(), c("div", {
686
+ It.value ? (r(), c("div", {
658
687
  key: 1,
659
688
  ref_key: "noTitle",
660
- ref: _e,
689
+ ref: Be,
661
690
  class: "vue-data-ui-no-title-space",
662
691
  style: "height:36px; width: 100%;background:transparent"
663
692
  }, null, 512)) : C("", !0),
664
- e.value.style.chart.title.text ? (n(), c("div", {
693
+ e.value.style.chart.title.text ? (r(), c("div", {
665
694
  key: 2,
666
695
  ref_key: "chartTitle",
667
- ref: Fe,
696
+ ref: Ie,
668
697
  style: "width:100%;background:transparent;padding-bottom:12px"
669
698
  }, [
670
- (n(), L(Sl, {
671
- key: `title_${Be.value}`,
699
+ (r(), E(Bl, {
700
+ key: `title_${Oe.value}`,
672
701
  config: {
673
702
  title: {
674
703
  cy: "waffle-title",
@@ -683,15 +712,15 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
683
712
  ], 512)) : C("", !0),
684
713
  k("div", {
685
714
  id: `legend-top-${b.value}`
686
- }, null, 8, Dl),
687
- e.value.userOptions.show && re.value && (h(ze) || h(ve)) ? (n(), L(h(mt), {
715
+ }, null, 8, Ll),
716
+ e.value.userOptions.show && ue.value && (d(Ne) || d(ve)) ? (r(), E(d(Ct), {
688
717
  ref_key: "userOptionsRef",
689
718
  ref: ie,
690
- key: `user_options_${Te.value}`,
719
+ key: `user_options_${Fe.value}`,
691
720
  backgroundColor: e.value.style.chart.backgroundColor,
692
721
  color: e.value.style.chart.color,
693
- isPrinting: h(Me),
694
- isImaging: h(Re),
722
+ isPrinting: d(Re),
723
+ isImaging: d(Ue),
695
724
  uid: b.value,
696
725
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
697
726
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -710,93 +739,93 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
710
739
  callbacks: e.value.userOptions.callbacks,
711
740
  printScale: e.value.userOptions.print.scale,
712
741
  tableDialog: e.value.table.useDialog,
713
- onToggleFullscreen: Ze,
714
- onGeneratePdf: h(Ue),
715
- onGenerateCsv: me,
716
- onGenerateImage: h(Ge),
717
- onGenerateSvg: et,
718
- onToggleTable: Je,
719
- onToggleTooltip: Ke,
720
- onToggleAnnotator: Ce,
742
+ onToggleFullscreen: Ke,
743
+ onGeneratePdf: d(Ge),
744
+ onGenerateCsv: Ce,
745
+ onGenerateImage: d(We),
746
+ onGenerateSvg: tt,
747
+ onToggleTable: Qe,
748
+ onToggleTooltip: Ze,
749
+ onToggleAnnotator: ke,
721
750
  style: ae({
722
- visibility: h(ze) ? h(ve) ? "visible" : "hidden" : "visible"
751
+ visibility: d(Ne) ? d(ve) ? "visible" : "hidden" : "visible"
723
752
  })
724
- }, we({ _: 2 }, [
753
+ }, Ae({ _: 2 }, [
725
754
  t.$slots.menuIcon ? {
726
755
  name: "menuIcon",
727
756
  fn: f(({ isOpen: a, color: o }) => [
728
- p(t.$slots, "menuIcon", $(x({ isOpen: a, color: o })), void 0, !0)
757
+ h(t.$slots, "menuIcon", x($({ isOpen: a, color: o })), void 0, !0)
729
758
  ]),
730
759
  key: "0"
731
760
  } : void 0,
732
761
  t.$slots.optionTooltip ? {
733
762
  name: "optionTooltip",
734
763
  fn: f(() => [
735
- p(t.$slots, "optionTooltip", {}, void 0, !0)
764
+ h(t.$slots, "optionTooltip", {}, void 0, !0)
736
765
  ]),
737
766
  key: "1"
738
767
  } : void 0,
739
768
  t.$slots.optionPdf ? {
740
769
  name: "optionPdf",
741
770
  fn: f(() => [
742
- p(t.$slots, "optionPdf", {}, void 0, !0)
771
+ h(t.$slots, "optionPdf", {}, void 0, !0)
743
772
  ]),
744
773
  key: "2"
745
774
  } : void 0,
746
775
  t.$slots.optionCsv ? {
747
776
  name: "optionCsv",
748
777
  fn: f(() => [
749
- p(t.$slots, "optionCsv", {}, void 0, !0)
778
+ h(t.$slots, "optionCsv", {}, void 0, !0)
750
779
  ]),
751
780
  key: "3"
752
781
  } : void 0,
753
782
  t.$slots.optionImg ? {
754
783
  name: "optionImg",
755
784
  fn: f(() => [
756
- p(t.$slots, "optionImg", {}, void 0, !0)
785
+ h(t.$slots, "optionImg", {}, void 0, !0)
757
786
  ]),
758
787
  key: "4"
759
788
  } : void 0,
760
789
  t.$slots.optionSvg ? {
761
790
  name: "optionSvg",
762
791
  fn: f(() => [
763
- p(t.$slots, "optionSvg", {}, void 0, !0)
792
+ h(t.$slots, "optionSvg", {}, void 0, !0)
764
793
  ]),
765
794
  key: "5"
766
795
  } : void 0,
767
796
  t.$slots.optionTable ? {
768
797
  name: "optionTable",
769
798
  fn: f(() => [
770
- p(t.$slots, "optionTable", {}, void 0, !0)
799
+ h(t.$slots, "optionTable", {}, void 0, !0)
771
800
  ]),
772
801
  key: "6"
773
802
  } : void 0,
774
803
  t.$slots.optionFullscreen ? {
775
804
  name: "optionFullscreen",
776
805
  fn: f(({ toggleFullscreen: a, isFullscreen: o }) => [
777
- p(t.$slots, "optionFullscreen", $(x({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
806
+ h(t.$slots, "optionFullscreen", x($({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
778
807
  ]),
779
808
  key: "7"
780
809
  } : void 0,
781
810
  t.$slots.optionAnnotator ? {
782
811
  name: "optionAnnotator",
783
812
  fn: f(({ toggleAnnotator: a, isAnnotator: o }) => [
784
- p(t.$slots, "optionAnnotator", $(x({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
813
+ h(t.$slots, "optionAnnotator", x($({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
785
814
  ]),
786
815
  key: "8"
787
816
  } : void 0
788
817
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : C("", !0),
789
- (n(), c("svg", {
818
+ (r(), c("svg", {
790
819
  ref_key: "svgRef",
791
820
  ref: de,
792
- xmlns: h(nl),
793
- class: lt({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
794
- viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
821
+ xmlns: d(sl),
822
+ class: at({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
823
+ viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
795
824
  style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
796
825
  }, [
797
- oe(h(kt)),
826
+ oe(d(wt)),
798
827
  k("defs", null, [
799
- (n(!0), c(T, null, z(s.value, (a, o) => (n(), c("radialGradient", {
828
+ (r(!0), c(T, null, z(s.value, (a, o) => (r(), c("radialGradient", {
800
829
  cx: "50%",
801
830
  cy: "50%",
802
831
  r: "50%",
@@ -806,13 +835,13 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
806
835
  }, [
807
836
  k("stop", {
808
837
  offset: "0%",
809
- "stop-color": h(sl)(h(il)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
810
- }, null, 8, Ll),
838
+ "stop-color": d(il)(d(cl)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
839
+ }, null, 8, Nl),
811
840
  k("stop", {
812
841
  offset: "100%",
813
842
  "stop-color": a.color
814
- }, null, 8, zl)
815
- ], 8, El))), 256))
843
+ }, null, 8, Vl)
844
+ ], 8, zl))), 256))
816
845
  ]),
817
846
  k("defs", null, [
818
847
  k("filter", {
@@ -830,18 +859,18 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
830
859
  type: "saturate",
831
860
  values: "0"
832
861
  }, null, -1)
833
- ])], 8, Vl)
862
+ ])], 8, Ml)
834
863
  ]),
835
- e.value.useCustomCells && s.value.length ? (n(!0), c(T, { key: 0 }, z(W.value, (a, o) => (n(), c("foreignObject", {
864
+ e.value.useCustomCells && s.value.length ? (r(!0), c(T, { key: 0 }, z(W.value, (a, o) => (r(), c("foreignObject", {
836
865
  x: a.x,
837
866
  y: a.y,
838
867
  height: _.value <= 0 ? 1e-4 : _.value,
839
868
  width: S.value <= 0 ? 1e-4 : S.value,
840
869
  class: "vue-ui-waffle-custom-cell-foreignObject"
841
870
  }, [
842
- p(t.$slots, "cell", Ae({ ref_for: !0 }, { cell: { ...a, color: s.value[o].color, ...s.value[o] }, isSelected: [null, void 0].includes(U.value) ? !0 : s.value[o].serieIndex === U.value }), void 0, !0)
843
- ], 8, Nl))), 256)) : C("", !0),
844
- !s.value.length && !e.value.useCustomCells ? (n(), c("rect", {
871
+ h(t.$slots, "cell", xe({ ref_for: !0 }, { cell: { ...a, color: s.value[o].color, ...s.value[o] }, isSelected: [null, void 0].includes(U.value) ? !0 : s.value[o].serieIndex === U.value }), void 0, !0)
872
+ ], 8, Rl))), 256)) : C("", !0),
873
+ !s.value.length && !e.value.useCustomCells ? (r(), c("rect", {
845
874
  key: 1,
846
875
  x: 12,
847
876
  y: 12,
@@ -850,13 +879,13 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
850
879
  rx: 3,
851
880
  fill: "none",
852
881
  stroke: "black"
853
- }, null, 8, Ml)) : s.value.length && !e.value.useCustomCells ? (n(), c(T, { key: 2 }, [
854
- t.$slots.pattern ? (n(), c("g", Rl, [
855
- (n(!0), c(T, null, z(pe.value, (a) => (n(), c("defs", null, [
856
- p(t.$slots, "pattern", Ae({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
882
+ }, null, 8, Ul)) : s.value.length && !e.value.useCustomCells ? (r(), c(T, { key: 2 }, [
883
+ t.$slots.pattern ? (r(), c("g", Gl, [
884
+ (r(!0), c(T, null, z(pe.value, (a) => (r(), c("defs", null, [
885
+ h(t.$slots, "pattern", xe({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
857
886
  ]))), 256))
858
887
  ])) : C("", !0),
859
- (n(!0), c(T, null, z(W.value, (a, o) => (n(), c("rect", {
888
+ (r(!0), c(T, null, z(W.value, (a, o) => (r(), c("rect", {
860
889
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
861
890
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
862
891
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -866,8 +895,8 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
866
895
  stroke: e.value.style.chart.layout.rect.stroke,
867
896
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
868
897
  filter: ee(s.value[o].serieIndex)
869
- }, null, 8, Ul))), 256)),
870
- (n(!0), c(T, null, z(W.value, (a, o) => (n(), c("rect", {
898
+ }, null, 8, Wl))), 256)),
899
+ (r(!0), c(T, null, z(W.value, (a, o) => (r(), c("rect", {
871
900
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
872
901
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
873
902
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -877,9 +906,9 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
877
906
  stroke: e.value.style.chart.layout.rect.stroke,
878
907
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
879
908
  filter: ee(s.value[o].serieIndex)
880
- }, null, 8, Gl))), 256)),
881
- t.$slots.pattern ? (n(), c("g", Wl, [
882
- (n(!0), c(T, null, z(W.value, (a, o) => (n(), c("rect", {
909
+ }, null, 8, jl))), 256)),
910
+ t.$slots.pattern ? (r(), c("g", ql, [
911
+ (r(!0), c(T, null, z(W.value, (a, o) => (r(), c("rect", {
883
912
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
884
913
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
885
914
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
@@ -888,65 +917,65 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
888
917
  fill: `url(#pattern_${b.value}_${s.value[o].absoluteIndex})`,
889
918
  stroke: "none",
890
919
  filter: ee(s.value[o].serieIndex)
891
- }, null, 8, jl))), 256))
920
+ }, null, 8, Hl))), 256))
892
921
  ])) : C("", !0)
893
922
  ], 64)) : C("", !0),
894
- (n(!0), c(T, null, z(W.value, (a, o) => (n(), c(T, null, [
895
- Mt(o, a) ? (n(), c("text", {
923
+ (r(!0), c(T, null, z(W.value, (a, o) => (r(), c(T, null, [
924
+ Rt(o, a) ? (r(), c("text", {
896
925
  key: `datalabel_${o}`,
897
- textContent: ue(Rt(o, a)),
926
+ textContent: ne(Ut(o, a)),
898
927
  x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
899
- y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + je.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
928
+ y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + qe.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
900
929
  "font-size": e.value.style.chart.layout.labels.captions.fontSize,
901
- fill: h(cl)(s.value[o].color),
930
+ fill: d(vl)(s.value[o].color),
902
931
  filter: ee(s.value[o].serieIndex)
903
- }, null, 8, ql)) : C("", !0)
932
+ }, null, 8, Xl)) : C("", !0)
904
933
  ], 64))), 256)),
905
- (n(!0), c(T, null, z(W.value, (a, o) => (n(), c("rect", {
934
+ (r(!0), c(T, null, z(W.value, (a, o) => (r(), c("rect", {
906
935
  x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
907
936
  y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
908
- height: je.value,
909
- width: It.value,
937
+ height: qe.value,
938
+ width: St.value,
910
939
  fill: "transparent",
911
940
  stroke: "none",
912
- onMouseover: (u) => Vt(o),
913
- onMouseleave: (u) => zt(o),
914
- onClick: (u) => Lt(o)
915
- }, null, 40, Hl))), 256)),
916
- p(t.$slots, "svg", { svg: V.value }, void 0, !0)
917
- ], 14, Pl)),
918
- t.$slots.watermark ? (n(), c("div", Xl, [
919
- p(t.$slots, "watermark", $(x({ isPrinting: h(Me) || h(Re) })), void 0, !0)
941
+ onMouseover: (n) => Vt(o),
942
+ onMouseleave: (n) => Nt(o),
943
+ onClick: (n) => zt(o)
944
+ }, null, 40, Yl))), 256)),
945
+ h(t.$slots, "svg", { svg: N.value }, void 0, !0)
946
+ ], 14, El)),
947
+ t.$slots.watermark ? (r(), c("div", Jl, [
948
+ h(t.$slots, "watermark", x($({ isPrinting: d(Re) || d(Ue) })), void 0, !0)
920
949
  ])) : C("", !0),
921
950
  k("div", {
922
951
  id: `legend-bottom-${b.value}`
923
- }, null, 8, Yl),
924
- Pe.value ? (n(), L(Qt, {
952
+ }, null, 8, Kl),
953
+ Le.value ? (r(), E(el, {
925
954
  key: 5,
926
955
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
927
956
  }, [
928
957
  k("div", {
929
958
  ref_key: "chartLegend",
930
- ref: Ie
959
+ ref: Se
931
960
  }, [
932
- e.value.style.chart.legend.show ? (n(), L(_l, {
933
- key: `legend_${De.value}`,
934
- legendSet: N.value,
961
+ e.value.style.chart.legend.show ? (r(), E(Ol, {
962
+ key: `legend_${Pe.value}`,
963
+ legendSet: V.value,
935
964
  config: Et.value,
936
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => Q(a.uid))
937
- }, we({
965
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => Z(a.uid))
966
+ }, Ae({
938
967
  item: f(({ legend: a }) => [
939
968
  k("div", {
940
969
  onClick: (o) => a.segregate(),
941
970
  style: ae(`opacity:${y.value.includes(a.uid) ? 0.5 : 1}`)
942
- }, ue(a.display), 13, Zl)
971
+ }, ne(a.display), 13, Ql)
943
972
  ]),
944
973
  _: 2
945
974
  }, [
946
975
  t.$slots.pattern ? {
947
976
  name: "legend-pattern",
948
977
  fn: f(({ legend: a, index: o }) => [
949
- oe(Il, {
978
+ oe(_l, {
950
979
  shape: a.shape,
951
980
  radius: 30,
952
981
  stroke: "none",
@@ -956,22 +985,22 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
956
985
  ]),
957
986
  key: "0"
958
987
  } : void 0
959
- ]), 1032, ["legendSet", "config"])) : p(t.$slots, "legend", {
988
+ ]), 1032, ["legendSet", "config"])) : h(t.$slots, "legend", {
960
989
  key: 1,
961
- legend: N.value
990
+ legend: V.value
962
991
  }, void 0, !0)
963
992
  ], 512)
964
993
  ], 8, ["to"])) : C("", !0),
965
- t.$slots.source ? (n(), c("div", {
994
+ t.$slots.source ? (r(), c("div", {
966
995
  key: 6,
967
996
  ref_key: "source",
968
- ref: Se,
997
+ ref: _e,
969
998
  dir: "auto"
970
999
  }, [
971
- p(t.$slots, "source", {}, void 0, !0)
1000
+ h(t.$slots, "source", {}, void 0, !0)
972
1001
  ], 512)) : C("", !0),
973
- oe(h(pt), {
974
- show: w.value.showTooltip && ne.value && y.value.length < m.dataset.length,
1002
+ oe(d(gt), {
1003
+ show: w.value.showTooltip && re.value && y.value.length < m.dataset.length,
975
1004
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
976
1005
  color: e.value.style.chart.tooltip.color,
977
1006
  borderRadius: e.value.style.chart.tooltip.borderRadius,
@@ -991,37 +1020,37 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
991
1020
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
992
1021
  }, {
993
1022
  "tooltip-before": f(() => [
994
- p(t.$slots, "tooltip-before", $(x({ ...ye.value })), void 0, !0)
1023
+ h(t.$slots, "tooltip-before", x($({ ...be.value })), void 0, !0)
995
1024
  ]),
996
1025
  "tooltip-after": f(() => [
997
- p(t.$slots, "tooltip-after", $(x({ ...ye.value })), void 0, !0)
1026
+ h(t.$slots, "tooltip-after", x($({ ...be.value })), void 0, !0)
998
1027
  ]),
999
1028
  _: 3
1000
1029
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1001
- re.value && e.value.userOptions.buttons.table ? (n(), L(el(Y.value.component), Ae({ key: 7 }, Y.value.props, {
1030
+ ue.value && e.value.userOptions.buttons.table ? (r(), E(tl(Y.value.component), xe({ key: 7 }, Y.value.props, {
1002
1031
  ref_key: "tableUnit",
1003
1032
  ref: j,
1004
- onClose: Qe
1005
- }), we({
1033
+ onClose: et
1034
+ }), Ae({
1006
1035
  content: f(() => [
1007
- (n(), L(h(yt), {
1008
- key: `table_${Oe.value}`,
1036
+ (r(), E(d(bt), {
1037
+ key: `table_${De.value}`,
1009
1038
  colNames: te.value.colNames,
1010
1039
  head: te.value.head,
1011
1040
  body: te.value.body,
1012
1041
  config: te.value.config,
1013
1042
  title: e.value.table.useDialog ? "" : Y.value.title,
1014
1043
  withCloseButton: !e.value.table.useDialog,
1015
- onClose: Qe
1044
+ onClose: et
1016
1045
  }, {
1017
1046
  th: f(({ th: a }) => [
1018
1047
  k("div", {
1019
1048
  innerHTML: a,
1020
1049
  style: { display: "flex", "align-items": "center" }
1021
- }, null, 8, Jl)
1050
+ }, null, 8, Zl)
1022
1051
  ]),
1023
1052
  td: f(({ td: a }) => [
1024
- at(ue(a.name || a), 1)
1053
+ ot(ne(a.name || a), 1)
1025
1054
  ]),
1026
1055
  _: 1
1027
1056
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -1031,7 +1060,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1031
1060
  e.value.table.useDialog ? {
1032
1061
  name: "title",
1033
1062
  fn: f(() => [
1034
- at(ue(Y.value.title), 1)
1063
+ ot(ne(Y.value.title), 1)
1035
1064
  ]),
1036
1065
  key: "0"
1037
1066
  } : void 0,
@@ -1041,9 +1070,9 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1041
1070
  k("button", {
1042
1071
  tabindex: "0",
1043
1072
  class: "vue-ui-user-options-button",
1044
- onClick: l[1] || (l[1] = (a) => me(e.value.userOptions.callbacks.csv))
1073
+ onClick: l[1] || (l[1] = (a) => Ce(e.value.userOptions.callbacks.csv))
1045
1074
  }, [
1046
- oe(h(gt), {
1075
+ oe(d(yt), {
1047
1076
  name: "excel",
1048
1077
  stroke: Y.value.props.color
1049
1078
  }, null, 8, ["stroke"])
@@ -1052,15 +1081,15 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1052
1081
  key: "1"
1053
1082
  } : void 0
1054
1083
  ]), 1040)) : C("", !0),
1055
- h(Ee) ? (n(), L(kl, { key: 8 })) : C("", !0)
1056
- ], 46, Ol));
1084
+ d(Ee) ? (r(), E(Al, { key: 8 })) : C("", !0)
1085
+ ], 46, Pl));
1057
1086
  }
1058
- }, Ql = /* @__PURE__ */ Bl(Kl, [["__scopeId", "data-v-0db27d8d"]]), ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1087
+ }, ta = /* @__PURE__ */ Dl(ea, [["__scopeId", "data-v-075d5318"]]), ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1059
1088
  __proto__: null,
1060
- default: Ql
1089
+ default: ta
1061
1090
  }, Symbol.toStringTag, { value: "Module" }));
1062
1091
  export {
1063
- pa as a,
1064
- ga as b,
1065
- Ql as v
1092
+ ba as a,
1093
+ ma as b,
1094
+ ta as v
1066
1095
  };