vue-data-ui 3.2.8 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
  8. package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.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/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
  84. package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
  90. package/dist/useSvgExport-B7-Vrjtu.js +732 -0
  91. package/dist/vue-data-ui-DLU1snC3.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
  94. package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
  96. package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
  97. package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
  98. package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
  99. package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
  100. package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
  101. package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
  102. package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
  104. package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
  105. package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
  106. package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
  107. package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
  108. package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
  109. package/dist/vue-ui-flow--kiGWaq4.js +931 -0
  110. package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
  111. package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
  112. package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
  113. package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
  114. package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
  115. package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
  116. package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
  118. package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
  119. package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
  121. package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
  123. package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
  124. package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
  125. package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
  126. package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
  128. package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
  129. package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
  130. package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
  131. package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
  132. package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
  137. package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
  139. package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
  140. package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
  141. package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
  144. package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
  145. package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
  146. package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
  147. package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
  149. package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
  150. package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
  151. package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
  152. package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
  153. package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
  154. package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-BcRg499t.js +0 -325
  157. package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
  158. package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
  159. package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
@@ -1,21 +1,22 @@
1
- import { defineAsyncComponent as L, useSlots as Ot, computed as h, ref as i, toRefs as Pt, watch as K, shallowRef as Ke, onMounted as Ft, onBeforeUnmount as Lt, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as ae, normalizeClass as Qe, createBlock as B, createCommentVNode as m, createElementVNode as k, createVNode as oe, createSlots as me, withCtx as y, renderSlot as g, normalizeProps as j, guardReactiveProps as q, Fragment as $, renderList as D, mergeProps as we, toDisplayString as M, Teleport as Bt, resolveDynamicComponent as Dt, createTextVNode as Ze, nextTick as zt } from "vue";
2
- import { c as Nt, t as Vt, b as Mt, p as R, o as et, f as ke, g as Rt, e as Et, a as Q, d as P, X as Ut, s as Wt, i as Gt, E as jt, h as qt, x as Ht, y as Xt, O as Yt, z as Jt, A as Kt } from "./lib-BEpWEyMm.js";
3
- import { t as Qt, u as Zt } from "./useResponsive-DfdjqQps.js";
4
- import { u as el, a as tt } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as tl, B as ll } from "./BaseScanner-BgWxam9d.js";
6
- import { u as al } from "./usePrinter-w23K-ezx.js";
7
- import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
9
- import sl from "./img-DjWwQXVS.js";
10
- import { _ as nl } from "./Shape-C_C_OmqR.js";
11
- import rl from "./Title-DG2nloSB.js";
12
- import { t as il } from "./themes-Dw-dDudK.js";
13
- import vl from "./Legend-BpoFJ8fc.js";
14
- import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["stop-color"], gl = ["stop-color"], bl = ["id"], ml = ["x", "y", "height", "width"], wl = ["height", "width"], kl = { key: 0 }, xl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Cl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], $l = { key: 1 }, Il = ["rx", "x", "y", "height", "width", "fill", "filter"], Tl = ["textContent", "x", "y", "font-size", "fill", "filter"], _l = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Al = {
1
+ import { defineAsyncComponent as F, useSlots as Nt, computed as c, ref as i, toRefs as Vt, watch as J, shallowRef as Qe, onMounted as Mt, onBeforeUnmount as Rt, createElementBlock as v, openBlock as n, unref as h, normalizeStyle as le, normalizeClass as Ze, createBlock as B, createCommentVNode as m, createElementVNode as k, createVNode as ae, createSlots as we, withCtx as g, renderSlot as y, normalizeProps as G, guardReactiveProps as W, Fragment as $, renderList as D, mergeProps as ke, toDisplayString as oe, Teleport as Et, resolveDynamicComponent as Ut, createTextVNode as et, nextTick as Gt } from "vue";
2
+ import { c as Wt, t as jt, b as qt, p as M, o as tt, f as xe, g as Ht, e as Xt, a as K, d as P, X as Yt, s as Jt, i as Kt, E as Qt, h as Zt, x as el, y as tl, O as ll, z as al, A as ol } from "./lib-GIYcnm0E.js";
3
+ import { t as ul, u as sl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as nl, a as lt } from "./useNestedProp-mxyyqd0B.js";
5
+ import { u as rl, B as il } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as vl } from "./usePrinter-DYRFiw7X.js";
7
+ import { u as cl } from "./useSvgExport-B7-Vrjtu.js";
8
+ import { u as dl } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
10
+ import pl from "./img-6wPuVVtk.js";
11
+ import { _ as fl } from "./Shape-DJG2zW7b.js";
12
+ import gl from "./Title-D17CJXko.js";
13
+ import { t as yl } from "./themes-Dw-dDudK.js";
14
+ import bl from "./Legend-DsogCeTb.js";
15
+ import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["stop-color"], Il = ["stop-color"], Tl = ["id"], _l = ["x", "y", "height", "width"], Sl = ["height", "width"], Al = { key: 0 }, Ol = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Pl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Ll = { key: 1 }, Fl = ["rx", "x", "y", "height", "width", "fill", "filter"], Bl = ["textContent", "x", "y", "font-size", "fill", "filter"], Dl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], zl = {
16
17
  key: 4,
17
18
  class: "vue-data-ui-watermark"
18
- }, Sl = ["id"], Ol = ["onClick"], Pl = ["innerHTML"], Fl = {
19
+ }, Nl = ["id"], Vl = ["onClick"], Ml = ["innerHTML"], Rl = {
19
20
  __name: "vue-ui-waffle",
20
21
  props: {
21
22
  config: {
@@ -32,14 +33,14 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
32
33
  }
33
34
  },
34
35
  emits: ["selectLegend"],
35
- setup(lt, { expose: at, emit: ot }) {
36
- const ut = L(() => import("./Tooltip-BOXz8skU.js")), st = L(() => import("./BaseIcon-Bz-1GQhu.js")), nt = L(() => import("./DataTable-BvjacRbw.js")), rt = L(() => import("./vue-ui-accordion-CDIzGCG1.js")), it = L(() => import("./UserOptions-DsTgvAok.js")), vt = L(() => import("./PenAndPaper-CR8q353D.js")), ct = L(() => import("./PackageVersion-C40g0Rfc.js")), dt = L(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_waffle: ht } = el(), w = lt, pt = Ot(), ue = h(() => !!w.dataset && w.dataset.length), b = i(Nt()), se = i(!1), ne = i(""), E = i(null), xe = i(0), I = i(null), Ce = i(null), $e = i(null), Ie = i(null), Te = i(null), _e = i(0), Ae = i(0), Se = i(0), Oe = i(!1), H = i(null), re = i(null), e = i(ce()), { loading: Pe, FINAL_DATASET: Z, manualLoading: ie } = tl({
37
- ...Pt(w),
36
+ setup(at, { expose: ot, emit: ut }) {
37
+ const st = F(() => import("./Tooltip-CtVdvbZi.js")), nt = F(() => import("./BaseIcon-CtqN7W_g.js")), rt = F(() => import("./DataTable-BeI6gYJX.js")), it = F(() => import("./vue-ui-accordion-Dch9YrCi.js")), vt = F(() => import("./UserOptions-B3vCIe-u.js")), ct = F(() => import("./PenAndPaper-BxbYiPy4.js")), dt = F(() => import("./PackageVersion-C9oklnuy.js")), ht = F(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_waffle: pt } = nl(), w = at, ft = Nt(), ue = c(() => !!w.dataset && w.dataset.length), b = i(Wt()), se = i(!1), ne = i(""), R = i(null), Ce = i(0), I = i(null), $e = i(null), Ie = i(null), Te = i(null), _e = i(null), Se = i(0), Ae = i(0), Oe = i(0), Pe = i(!1), j = i(null), re = i(null), e = i(de()), { loading: Le, FINAL_DATASET: Q, manualLoading: ie } = rl({
38
+ ...Vt(w),
38
39
  FINAL_CONFIG: e,
39
- prepareConfig: ce,
40
+ prepareConfig: de,
40
41
  callback: () => {
41
42
  Promise.resolve().then(async () => {
42
- p.value = de();
43
+ p.value = he();
43
44
  });
44
45
  },
45
46
  skeletonDataset: [
@@ -59,7 +60,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
59
60
  color: "#CACACA"
60
61
  }
61
62
  ],
62
- skeletonConfig: Vt({
63
+ skeletonConfig: jt({
63
64
  defaultConfig: e.value,
64
65
  userConfig: {
65
66
  useCustomCells: !1,
@@ -85,72 +86,72 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
85
86
  }
86
87
  }
87
88
  })
88
- }), { userOptionsVisible: ve, setUserOptionsVisibility: Fe, keepUserOptionState: Le } = ol({ config: e.value }), { svgRef: Be } = ul({ config: e.value.style.chart.title });
89
- function ce() {
90
- const t = tt({
89
+ }), { userOptionsVisible: ve, setUserOptionsVisibility: Fe, keepUserOptionState: Be } = dl({ config: e.value }), { svgRef: ce } = hl({ config: e.value.style.chart.title });
90
+ function de() {
91
+ const t = lt({
91
92
  userConfig: w.config,
92
- defaultConfig: ht
93
+ defaultConfig: pt
93
94
  });
94
95
  return t.theme ? {
95
- ...tt({
96
- userConfig: il.vue_ui_waffle[t.theme] || w.config,
96
+ ...lt({
97
+ userConfig: yl.vue_ui_waffle[t.theme] || w.config,
97
98
  defaultConfig: t
98
99
  }),
99
- customPalette: Mt[t.theme] || R
100
+ customPalette: qt[t.theme] || M
100
101
  } : t;
101
102
  }
102
- K(() => w.config, (t) => {
103
- Pe.value || (e.value = ce()), ve.value = !e.value.userOptions.showOnChartHover, ze(), _e.value += 1, Ae.value += 1, Se.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show;
103
+ J(() => w.config, (t) => {
104
+ Le.value || (e.value = de()), ve.value = !e.value.userOptions.showOnChartHover, ze(), Se.value += 1, Ae.value += 1, Oe.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show;
104
105
  }, { deep: !0 });
105
- const F = Ke(null), U = Ke(null), De = h(() => !!e.value.debug);
106
+ const L = Qe(null), E = Qe(null), De = c(() => !!e.value.debug);
106
107
  function ze() {
107
- if (et(w.dataset) ? (ke({
108
+ if (tt(w.dataset) ? (xe({
108
109
  componentName: "VueUiWaffle",
109
110
  type: "dataset",
110
111
  debug: De.value
111
- }), ue.value = !1, ie.value = !0) : w.dataset.forEach((t, a) => {
112
- Rt({
112
+ }), ue.value = !1, ie.value = !0) : w.dataset.forEach((t, l) => {
113
+ Ht({
113
114
  datasetObject: t,
114
115
  requiredAttributes: ["name", "values"]
115
- }).forEach((l) => {
116
- ke({
116
+ }).forEach((a) => {
117
+ xe({
117
118
  componentName: "VueUiWaffle",
118
119
  type: "datasetSerieAttribute",
119
- property: l,
120
- index: a,
120
+ property: a,
121
+ index: l,
121
122
  debug: De.value
122
123
  });
123
124
  });
124
- }), et(w.dataset) || (ie.value = e.value.loading), e.value.responsive) {
125
- const t = Qt(() => {
126
- const { width: a, height: l } = Zt({
125
+ }), tt(w.dataset) || (ie.value = e.value.loading), e.value.responsive) {
126
+ const t = ul(() => {
127
+ const { width: l, height: a } = sl({
127
128
  chart: I.value,
128
- title: e.value.style.chart.title.text ? Ce.value : null,
129
- legend: e.value.style.chart.legend.show ? $e.value : null,
130
- source: Ie.value,
131
- noTitle: Te.value
129
+ title: e.value.style.chart.title.text ? $e.value : null,
130
+ legend: e.value.style.chart.legend.show ? Ie.value : null,
131
+ source: Te.value,
132
+ noTitle: _e.value
132
133
  });
133
134
  requestAnimationFrame(() => {
134
- z.value.width = a, z.value.height = l, T.value.width = a, T.value.height = l;
135
+ z.value.width = l, z.value.height = a, T.value.width = l, T.value.height = a;
135
136
  });
136
137
  });
137
- F.value && (U.value && F.value.unobserve(U.value), F.value.disconnect()), F.value = new ResizeObserver(t), U.value = I.value.parentNode, F.value.observe(U.value);
138
+ L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect()), L.value = new ResizeObserver(t), E.value = I.value.parentNode, L.value.observe(E.value);
138
139
  }
139
140
  }
140
- Ft(() => {
141
- Oe.value = !0, ze();
142
- }), Lt(() => {
143
- F.value && (U.value && F.value.unobserve(U.value), F.value.disconnect());
141
+ Mt(() => {
142
+ Pe.value = !0, ze();
143
+ }), Rt(() => {
144
+ L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect());
144
145
  });
145
- const { isPrinting: Ne, isImaging: Ve, generatePdf: Me, generateImage: Re } = al({
146
+ const { isPrinting: Ne, isImaging: Ve, generatePdf: Me, generateImage: Re } = vl({
146
147
  elementId: `vue-ui-waffle_${b.value}`,
147
148
  fileName: e.value.style.chart.title.text || "vue-ui-waffle",
148
149
  options: e.value.userOptions.print
149
- }), ft = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = h(() => Et(e.value.customPalette)), x = i({
150
+ }), gt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = c(() => Xt(e.value.customPalette)), x = i({
150
151
  showTable: e.value.table.show,
151
152
  showTooltip: e.value.style.chart.tooltip.show
152
153
  });
153
- K(e, () => {
154
+ J(e, () => {
154
155
  x.value = {
155
156
  showTable: e.value.table.show,
156
157
  showTooltip: e.value.style.chart.tooltip.show
@@ -164,141 +165,141 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
164
165
  left: 0,
165
166
  height: 512,
166
167
  width: 512
167
- }), _ = h(() => (T.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), A = h(() => (T.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), yt = h(() => Math.max(1e-4, T.value.width / e.value.style.chart.layout.grid.size)), Ue = h(() => Math.max(1e-4, T.value.height / e.value.style.chart.layout.grid.size));
168
- function We(t) {
169
- const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((C, be) => C + be, 0), o = t.map((C) => C / l * a), u = o.map(Math.floor), n = o.map((C) => C % 1);
170
- let d = a - u.reduce((C, be) => C + be, 0);
168
+ }), _ = c(() => (T.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = c(() => (T.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), yt = c(() => Math.max(1e-4, T.value.width / e.value.style.chart.layout.grid.size)), Ue = c(() => Math.max(1e-4, T.value.height / e.value.style.chart.layout.grid.size));
169
+ function Ge(t) {
170
+ const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((C, me) => C + me, 0), o = t.map((C) => C / a * l), u = o.map(Math.floor), s = o.map((C) => C % 1);
171
+ let d = l - u.reduce((C, me) => C + me, 0);
171
172
  for (; d > 0; ) {
172
- let C = n.indexOf(Math.max(...n));
173
- u[C] += 1, n[C] = 0, d -= 1;
173
+ let C = s.indexOf(Math.max(...s));
174
+ u[C] += 1, s[C] = 0, d -= 1;
174
175
  }
175
176
  return u;
176
177
  }
177
- const X = i(!1);
178
- function de() {
179
- return X.value = Z.value.flatMap((t) => t.values.reduce((a, l) => a + l, 0)).reduce((t, a) => t + a, 0) === 0, Z.value.map((t, a) => ({
178
+ const q = i(!1);
179
+ function he() {
180
+ 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) => ({
180
181
  ...t,
181
- color: qt(t.color) || Ee.value[a] || R[a] || R[a % R.length],
182
- uid: `serie_${a}`,
183
- absoluteIndex: a
182
+ color: Zt(t.color) || Ee.value[l] || M[l] || M[l % M.length],
183
+ uid: `serie_${l}`,
184
+ absoluteIndex: l
184
185
  }));
185
186
  }
186
- const he = h(() => de()), p = i(he.value);
187
- K(() => w.dataset, (t) => {
187
+ const pe = c(() => he()), p = i(pe.value);
188
+ J(() => w.dataset, (t) => {
188
189
  Array.isArray(t) && t.length > 0 && (ie.value = !1);
189
- }, { immediate: !0 }), K(() => w.dataset, (t) => {
190
- p.value = de();
190
+ }, { immediate: !0 }), J(() => w.dataset, (t) => {
191
+ p.value = he();
191
192
  }, { deep: !0 });
192
- const gt = h(() => {
193
- const t = p.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
194
- return We(t);
195
- }), bt = h(() => {
196
- const t = p.value.map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u));
197
- return We(t);
198
- }), Y = h(() => (Z.value.forEach((t, a) => {
199
- [null, void 0].includes(t.values) && ke({
193
+ const bt = c(() => {
194
+ const t = p.value.filter((l, a) => !f.value.includes(l.uid)).map((l, a) => q.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
195
+ return Ge(t);
196
+ }), mt = c(() => {
197
+ const t = p.value.map((l, a) => q.value ? 1 : (l.values || []).reduce((o, u) => o + u));
198
+ return Ge(t);
199
+ }), H = c(() => (Q.value.forEach((t, l) => {
200
+ [null, void 0].includes(t.values) && xe({
200
201
  componentName: "VueUiWaffle",
201
202
  type: "datasetSerieAttribute",
202
203
  property: "values (number[])",
203
- index: a
204
+ index: l
204
205
  });
205
- }), p.value.filter((t, a) => !f.value.includes(t.uid)).map((t, a) => ({
206
+ }), p.value.filter((t, l) => !f.value.includes(t.uid)).map((t, l) => ({
206
207
  absoluteIndex: t.absoluteIndex,
207
208
  uid: t.uid,
208
209
  name: t.name,
209
210
  color: t.color,
210
- value: (t.values || []).reduce((l, o) => l + o, 0),
211
+ value: (t.values || []).reduce((a, o) => a + o, 0),
211
212
  absoluteValues: t.values || [],
212
- proportion: gt.value[a]
213
- })))), mt = h(() => p.value.map((t, a) => ({
213
+ proportion: bt.value[l]
214
+ })))), wt = c(() => p.value.map((t, l) => ({
214
215
  absoluteIndex: t.absoluteIndex,
215
216
  uid: t.uid,
216
217
  name: t.name,
217
218
  color: t.color,
218
- value: (t.values || []).reduce((l, o) => l + o, 0),
219
+ value: (t.values || []).reduce((a, o) => a + o, 0),
219
220
  absoluteValues: t.values || [],
220
- proportion: bt.value[a]
221
+ proportion: mt.value[l]
221
222
  })));
222
- function wt() {
223
- return mt.value.map((t) => ({
223
+ function kt() {
224
+ return wt.value.map((t) => ({
224
225
  name: t.name,
225
226
  color: t.color,
226
227
  value: t.value,
227
228
  proportion: t.proportion
228
229
  }));
229
230
  }
230
- const kt = h(() => {
231
+ const xt = c(() => {
231
232
  let t = 0;
232
- return Y.value.map((a, l) => {
233
- const o = t, u = o + a.proportion, n = [];
233
+ return H.value.map((l, a) => {
234
+ const o = t, u = o + l.proportion, s = [];
234
235
  for (let d = Math.floor(o); d < Math.floor(u); d += 1)
235
- n.push(d);
236
+ s.push(d);
236
237
  return t = u, {
237
- ...a,
238
+ ...l,
238
239
  start: o,
239
- rects: n
240
+ rects: s
240
241
  };
241
242
  });
242
- }), r = h(() => kt.value.flatMap((t, a) => t.rects.map((l, o) => ({
243
+ }), r = c(() => xt.value.flatMap((t, l) => t.rects.map((a, o) => ({
243
244
  isFirst: o === 0,
244
- isLongEnough: l.length > 2,
245
+ isLongEnough: a.length > 2,
245
246
  name: t.name,
246
247
  color: t.color,
247
248
  value: t.value,
248
- serieIndex: a,
249
+ serieIndex: l,
249
250
  absoluteStartIndex: o < 3,
250
251
  serieId: t.uid,
251
252
  ...t
252
- }))).map((t, a) => ({
253
+ }))).map((t, l) => ({
253
254
  ...t,
254
- isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
255
- }))), W = h(() => {
255
+ isAbsoluteFirst: l % e.value.style.chart.layout.grid.size === 0
256
+ }))), U = c(() => {
256
257
  const t = [];
257
- for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
258
- for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
258
+ for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
259
+ for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
259
260
  t.push({
260
- isStartOfLine: l === 0,
261
- position: e.value.style.chart.layout.grid.vertical ? a : l,
262
- x: (e.value.style.chart.layout.grid.vertical ? a : l) * (_.value + e.value.style.chart.layout.grid.spaceBetween),
263
- y: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween) + T.value.top
261
+ isStartOfLine: a === 0,
262
+ position: e.value.style.chart.layout.grid.vertical ? l : a,
263
+ x: (e.value.style.chart.layout.grid.vertical ? l : a) * (_.value + e.value.style.chart.layout.grid.spaceBetween),
264
+ y: (e.value.style.chart.layout.grid.vertical ? a : l) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + T.value.top
264
265
  });
265
266
  return t;
266
- }), f = i([]), N = i(!1), Ge = i(null), je = i(null);
267
+ }), f = i([]), X = i(!1), We = i(null), je = i(null);
267
268
  function qe(t) {
268
- if (X.value) return;
269
+ if (q.value) return;
269
270
  if (!e.value.useAnimation) {
270
- f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < G.value.length - 1 && G.value.length > 1 && f.value.push(t);
271
+ f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < N.value.length - 1 && N.value.length > 1 && f.value.push(t);
271
272
  return;
272
273
  }
273
- const a = he.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), l = p.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
274
- let o = l;
275
- if (!(l === 0 && a === 0)) {
274
+ const l = pe.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0), a = p.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0);
275
+ let o = a;
276
+ if (!(a === 0 && l === 0)) {
276
277
  if (f.value.includes(t)) {
277
- let n = function() {
278
- o > u ? (cancelAnimationFrame(Ge.value), p.value = p.value.map((d, C) => d.uid === t ? {
278
+ let s = function() {
279
+ o > u ? (cancelAnimationFrame(We.value), p.value = p.value.map((d, C) => d.uid === t ? {
279
280
  ...d,
280
281
  values: [u]
281
- } : d), N.value = !1) : (N.value = !0, o += u * 0.025, p.value = p.value.map((d, C) => d.uid === t ? {
282
+ } : d), X.value = !1) : (X.value = !0, o += u * 0.025, p.value = p.value.map((d, C) => d.uid === t ? {
282
283
  ...d,
283
284
  values: [o]
284
- } : d), Ge.value = requestAnimationFrame(n));
285
+ } : d), We.value = requestAnimationFrame(s));
285
286
  };
286
287
  f.value = f.value.filter((d) => d !== t);
287
- const u = a;
288
- n();
289
- } else if (f.value.length < G.value.length - 1 && G.value.length > 1) {
288
+ const u = l;
289
+ s();
290
+ } else if (f.value.length < N.value.length - 1 && N.value.length > 1) {
290
291
  let u = function() {
291
- o < l / 100 ? (cancelAnimationFrame(je.value), f.value.push(t), p.value = p.value.map((n, d) => n.uid === t ? {
292
- ...n,
292
+ o < a / 100 ? (cancelAnimationFrame(je.value), f.value.push(t), p.value = p.value.map((s, d) => s.uid === t ? {
293
+ ...s,
293
294
  values: [0]
294
- } : n), N.value = !1) : (N.value = !0, o /= 1.15, p.value = p.value.map((n) => n.uid === t ? {
295
- ...n,
295
+ } : s), X.value = !1) : (X.value = !0, o /= 1.15, p.value = p.value.map((s) => s.uid === t ? {
296
+ ...s,
296
297
  values: [o]
297
- } : n), je.value = requestAnimationFrame(u));
298
+ } : s), je.value = requestAnimationFrame(u));
298
299
  };
299
300
  u();
300
301
  }
301
- Tt("selectLegend", Y.value.map((u) => ({
302
+ _t("selectLegend", H.value.map((u) => ({
302
303
  name: u.name,
303
304
  color: u.color,
304
305
  value: u.value,
@@ -306,75 +307,84 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
306
307
  })));
307
308
  }
308
309
  }
309
- const G = h(() => p.value.map((t, a) => ({
310
- name: t.name,
311
- color: t.color || Ee[a] || R[a] || R[a % R.length],
312
- value: (t.values || []).reduce((l, o) => l + o, 0),
313
- uid: t.uid,
314
- shape: "square"
315
- })).map((t) => ({
310
+ const N = c(() => p.value.map((t, l) => {
311
+ const a = (t.values || []).reduce((u, s) => u + s, 0), o = a / p.value.map((u) => (u.values || []).reduce((s, d) => s + d, 0)).reduce((u, s) => u + s, 0);
312
+ return {
313
+ name: t.name,
314
+ color: t.color || Ee[l] || M[l] || M[l % M.length],
315
+ value: a,
316
+ proportion: o,
317
+ uid: t.uid,
318
+ shape: "square"
319
+ };
320
+ }).map((t, l) => ({
316
321
  ...t,
317
- proportion: t.value / p.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
318
322
  opacity: f.value.includes(t.uid) ? 0.5 : 1,
319
323
  segregate: () => qe(t.uid),
320
- isSegregated: f.value.includes(t.uid)
321
- }))), xt = h(() => ({
324
+ isSegregated: f.value.includes(t.uid),
325
+ display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? K(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, P({
326
+ p: e.value.style.chart.layout.labels.dataLabels.prefix,
327
+ v: t.value,
328
+ s: e.value.style.chart.layout.labels.dataLabels.suffix,
329
+ r: e.value.style.chart.legend.roundingValue
330
+ }), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? f.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 / A.value) ? "-" : P({ v: t.value / A.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
331
+ }))), Ct = c(() => ({
322
332
  cy: "waffle-div-legend",
323
333
  backgroundColor: e.value.style.chart.legend.backgroundColor,
324
334
  color: e.value.style.chart.legend.color,
325
335
  fontSize: e.value.style.chart.legend.fontSize,
326
336
  paddingBottom: 12,
327
337
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
328
- })), S = h(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), pe = i(null), fe = i(null);
329
- function Ct(t) {
330
- const a = r.value[t];
331
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.serieIndex });
332
- }
338
+ })), A = c(() => H.value.map((t) => t.value).reduce((t, l) => t + l, 0)), fe = i(null), ge = i(null);
333
339
  function $t(t) {
334
- const a = r.value[t];
335
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: a, seriesIndex: a.serieIndex }), fe.value = null, se.value = !1, E.value = null;
340
+ const l = r.value[t];
341
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.serieIndex });
336
342
  }
337
343
  function It(t) {
344
+ const l = r.value[t];
345
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), ge.value = null, se.value = !1, R.value = null;
346
+ }
347
+ function Tt(t) {
338
348
  if (f.value.length === w.dataset.length) return;
339
- const a = r.value[t];
340
- pe.value = {
341
- datapoint: a,
342
- seriesIndex: a.absoluteIndex,
349
+ const l = r.value[t];
350
+ fe.value = {
351
+ datapoint: l,
352
+ seriesIndex: l.absoluteIndex,
343
353
  series: p.value,
344
354
  config: e.value
345
- }, e.value.events.datapointEnter && fe.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), fe.value = a.serieIndex, se.value = !0, E.value = r.value[t].serieIndex;
346
- const l = e.value.style.chart.tooltip.customFormat;
347
- if (Jt(l) && Kt(() => l({
355
+ }, e.value.events.datapointEnter && ge.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), ge.value = l.serieIndex, se.value = !0, R.value = r.value[t].serieIndex;
356
+ const a = e.value.style.chart.tooltip.customFormat;
357
+ if (al(a) && ol(() => a({
348
358
  seriesIndex: r.value[t].absoluteIndex,
349
- datapoint: a,
359
+ datapoint: l,
350
360
  series: p.value,
351
361
  config: e.value
352
362
  })))
353
- ne.value = l({
363
+ ne.value = a({
354
364
  seriesIndex: r.value[t].absoluteIndex,
355
- datapoint: a,
365
+ datapoint: l,
356
366
  series: p.value,
357
367
  config: e.value
358
368
  });
359
369
  else {
360
370
  let o = "";
361
- 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;">${a.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="${a.color}" />${pt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
371
+ 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}" />${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>`, e.value.style.chart.tooltip.showValue && (o += `<b>${K(
362
372
  e.value.style.chart.layout.labels.dataLabels.formatter,
363
- a.value,
373
+ l.value,
364
374
  P({
365
375
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
366
- v: a.value,
376
+ v: l.value,
367
377
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
368
378
  r: e.value.style.chart.tooltip.roundingValue
369
379
  }),
370
380
  {
371
- datapoint: a,
381
+ datapoint: l,
372
382
  seriesIndex: r.value[t].absoluteIndex,
373
383
  series: p.value
374
384
  }
375
385
  )}</b>`), e.value.style.chart.tooltip.showPercentage) {
376
386
  const u = P({
377
- v: X.value ? 1 / Z.value.length * 100 : a.value / S.value * 100,
387
+ v: q.value ? 1 / Q.value.length * 100 : l.value / A.value * 100,
378
388
  s: "%",
379
389
  r: e.value.style.chart.tooltip.roundingPercentage
380
390
  });
@@ -383,21 +393,21 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
383
393
  ne.value = o;
384
394
  }
385
395
  }
386
- const Tt = ot, O = h(() => {
387
- const t = Y.value.map((l) => ({
388
- name: l.name,
389
- color: l.color
390
- })), a = Y.value.map((l) => l.value);
391
- return { head: t, body: a };
396
+ const _t = ut, O = c(() => {
397
+ const t = H.value.map((a) => ({
398
+ name: a.name,
399
+ color: a.color
400
+ })), l = H.value.map((a) => a.value);
401
+ return { head: t, body: l };
392
402
  });
393
- function ee(t) {
394
- return e.value.useBlurOnHover && ![null, void 0].includes(E.value) && E.value !== t ? `url(#blur_${b.value})` : "";
403
+ function Z(t) {
404
+ return e.value.useBlurOnHover && ![null, void 0].includes(R.value) && R.value !== t ? `url(#blur_${b.value})` : "";
395
405
  }
396
- function _t(t, a) {
397
- return e.value.style.chart.layout.labels.captions.show ? r.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && a.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
406
+ function St(t, l) {
407
+ return e.value.style.chart.layout.labels.captions.show ? r.value.length && !X.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
398
408
  }
399
- function At(t, a = null) {
400
- const l = Q(
409
+ function At(t, l = null) {
410
+ const a = K(
401
411
  e.value.style.chart.layout.labels.dataLabels.formatter,
402
412
  r.value[t].value,
403
413
  P({
@@ -406,54 +416,54 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
406
416
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
407
417
  r: e.value.style.chart.layout.labels.captions.roundingValue
408
418
  }),
409
- { datapoint: r.value[t], position: a }
410
- ), o = P({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? Yt({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), n = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
419
+ { datapoint: r.value[t], position: l }
420
+ ), o = P({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ll({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), s = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
411
421
  let d = "";
412
- return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${l})` : 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 = l), `${n}${d}`;
422
+ 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), `${s}${d}`;
413
423
  }
414
424
  function ye(t = null) {
415
- zt(() => {
416
- const a = O.value.head.map((u, n) => [[
425
+ Gt(() => {
426
+ const l = O.value.head.map((u, s) => [[
417
427
  u.name
418
- ], [O.value.body[n]], [isNaN(O.value.body[n] / S.value) ? "-" : O.value.body[n] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Ht(l);
419
- t ? t(o) : Xt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
428
+ ], [O.value.body[s]], [isNaN(O.value.body[s] / A.value) ? "-" : O.value.body[s] / A.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = el(a);
429
+ t ? t(o) : tl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
420
430
  });
421
431
  }
422
- const te = h(() => {
432
+ const ee = c(() => {
423
433
  const t = [
424
434
  ' <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>',
425
- Q(
435
+ K(
426
436
  e.value.style.chart.layout.labels.dataLabels.formatter,
427
- S.value,
437
+ A.value,
428
438
  P({
429
439
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
430
- v: S.value,
440
+ v: A.value,
431
441
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
432
442
  r: e.value.table.td.roundingValue
433
443
  })
434
444
  ),
435
445
  "100%"
436
- ], a = O.value.head.map((u, n) => [
446
+ ], l = O.value.head.map((u, s) => [
437
447
  {
438
448
  color: u.color,
439
449
  name: u.name
440
450
  },
441
- Q(
451
+ K(
442
452
  e.value.style.chart.layout.labels.dataLabels.formatter,
443
- O.value.body[n],
453
+ O.value.body[s],
444
454
  P({
445
455
  p: e.value.style.chart.layout.labels.dataLabels.prefix,
446
- v: O.value.body[n],
456
+ v: O.value.body[s],
447
457
  s: e.value.style.chart.layout.labels.dataLabels.suffix,
448
458
  r: e.value.table.td.roundingValue
449
459
  })
450
460
  ),
451
- isNaN(O.value.body[n] / S.value) ? "-" : P({
452
- v: O.value.body[n] / S.value * 100,
461
+ isNaN(O.value.body[s] / A.value) ? "-" : P({
462
+ v: O.value.body[s] / A.value * 100,
453
463
  s: "%",
454
464
  r: e.value.table.td.roundingPercentage
455
465
  })
456
- ]), l = {
466
+ ]), a = {
457
467
  th: {
458
468
  backgroundColor: e.value.table.th.backgroundColor,
459
469
  color: e.value.table.th.color,
@@ -473,13 +483,13 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
473
483
  ];
474
484
  return {
475
485
  head: t,
476
- body: a,
477
- config: l,
486
+ body: l,
487
+ config: a,
478
488
  colNames: o
479
489
  };
480
490
  }), V = i(!1);
481
491
  function He(t) {
482
- V.value = t, xe.value += 1;
492
+ V.value = t, Ce.value += 1;
483
493
  }
484
494
  function Xe() {
485
495
  x.value.showTable = !x.value.showTable;
@@ -487,26 +497,26 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
487
497
  function Ye() {
488
498
  x.value.showTooltip = !x.value.showTooltip;
489
499
  }
490
- const le = i(!1);
491
- function ge() {
492
- le.value = !le.value;
500
+ const te = i(!1);
501
+ function be() {
502
+ te.value = !te.value;
493
503
  }
494
- async function St({ scale: t = 2 } = {}) {
504
+ async function Ot({ scale: t = 2 } = {}) {
495
505
  if (!I.value) return;
496
- const { width: a, height: l } = I.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: n } = await sl({ domElement: I.value, base64: !0, img: !0, scale: t });
506
+ const { width: l, height: a } = I.value.getBoundingClientRect(), o = l / a, { imageUri: u, base64: s } = await pl({ domElement: I.value, base64: !0, img: !0, scale: t });
497
507
  return {
498
508
  imageUri: u,
499
- base64: n,
509
+ base64: s,
500
510
  title: e.value.style.chart.title.text,
501
- width: a,
502
- height: l,
511
+ width: l,
512
+ height: a,
503
513
  aspectRatio: o
504
514
  };
505
515
  }
506
- const J = h(() => {
507
- const t = e.value.table.useDialog && !e.value.table.show, a = x.value.showTable;
516
+ const Y = c(() => {
517
+ const t = e.value.table.useDialog && !e.value.table.show, l = x.value.showTable;
508
518
  return {
509
- component: t ? dt : rt,
519
+ component: t ? ht : it,
510
520
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
511
521
  props: t ? {
512
522
  backgroundColor: e.value.table.th.backgroundColor,
@@ -519,7 +529,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
519
529
  } : {
520
530
  hideDetails: !0,
521
531
  config: {
522
- open: a,
532
+ open: l,
523
533
  maxHeight: 1e4,
524
534
  body: {
525
535
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -533,54 +543,72 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
533
543
  }
534
544
  };
535
545
  });
536
- K(() => x.value.showTable, (t) => {
537
- e.value.table.show || (t && e.value.table.useDialog && H.value ? H.value.open() : "close" in H.value && H.value.close());
546
+ J(() => x.value.showTable, (t) => {
547
+ e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
538
548
  });
539
549
  function Je() {
540
550
  x.value.showTable = !1, re.value && re.value.setTableIconState(!1);
541
551
  }
542
- return at({
543
- getData: wt,
544
- getImage: St,
552
+ const Pt = c(() => N.value.map((t) => ({
553
+ ...t,
554
+ name: t.display
555
+ }))), Lt = c(() => e.value.style.chart.backgroundColor), Ft = c(() => e.value.style.chart.legend), Bt = c(() => e.value.style.chart.title), { exportSvg: Dt, getSvg: zt } = cl({
556
+ svg: ce,
557
+ title: Bt,
558
+ legend: Ft,
559
+ legendItems: Pt,
560
+ backgroundColor: Lt
561
+ });
562
+ async function Ke({ isCb: t }) {
563
+ if (t) {
564
+ const { blob: l, url: a, text: o, dataUrl: u } = await zt();
565
+ e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: u });
566
+ } else
567
+ Dt();
568
+ }
569
+ return ot({
570
+ getData: kt,
571
+ getImage: Ot,
545
572
  generatePdf: Me,
546
573
  generateCsv: ye,
547
574
  generateImage: Re,
575
+ generateSvg: Ke,
548
576
  toggleTable: Xe,
549
577
  toggleTooltip: Ye,
550
- toggleAnnotator: ge,
578
+ toggleAnnotator: be,
551
579
  toggleFullscreen: He
552
- }), (t, a) => (s(), v("div", {
553
- class: Qe(`vue-data-ui-component vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
580
+ }), (t, l) => (n(), v("div", {
581
+ class: Ze(`vue-data-ui-component vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
554
582
  ref_key: "waffleChart",
555
583
  ref: I,
556
584
  id: `vue-ui-waffle_${b.value}`,
557
- style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
558
- onMouseenter: a[2] || (a[2] = () => c(Fe)(!0)),
559
- onMouseleave: a[3] || (a[3] = () => c(Fe)(!1))
585
+ style: le(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
586
+ onMouseenter: l[2] || (l[2] = () => h(Fe)(!0)),
587
+ onMouseleave: l[3] || (l[3] = () => h(Fe)(!1))
560
588
  }, [
561
- e.value.userOptions.buttons.annotator ? (s(), B(c(vt), {
589
+ e.value.userOptions.buttons.annotator ? (n(), B(h(ct), {
562
590
  key: 0,
563
- svgRef: c(Be),
591
+ svgRef: h(ce),
564
592
  backgroundColor: e.value.style.chart.backgroundColor,
565
593
  color: e.value.style.chart.color,
566
- active: le.value,
567
- onClose: ge
594
+ active: te.value,
595
+ onClose: be
568
596
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
569
- ft.value ? (s(), v("div", {
597
+ gt.value ? (n(), v("div", {
570
598
  key: 1,
571
599
  ref_key: "noTitle",
572
- ref: Te,
600
+ ref: _e,
573
601
  class: "vue-data-ui-no-title-space",
574
602
  style: "height:36px; width: 100%;background:transparent"
575
603
  }, null, 512)) : m("", !0),
576
- e.value.style.chart.title.text ? (s(), v("div", {
604
+ e.value.style.chart.title.text ? (n(), v("div", {
577
605
  key: 2,
578
606
  ref_key: "chartTitle",
579
- ref: Ce,
607
+ ref: $e,
580
608
  style: "width:100%;background:transparent;padding-bottom:12px"
581
609
  }, [
582
- (s(), B(rl, {
583
- key: `title_${_e.value}`,
610
+ (n(), B(gl, {
611
+ key: `title_${Se.value}`,
584
612
  config: {
585
613
  title: {
586
614
  cy: "waffle-title",
@@ -595,19 +623,20 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
595
623
  ], 512)) : m("", !0),
596
624
  k("div", {
597
625
  id: `legend-top-${b.value}`
598
- }, null, 8, hl),
599
- e.value.userOptions.show && ue.value && (c(Le) || c(ve)) ? (s(), B(c(it), {
626
+ }, null, 8, kl),
627
+ e.value.userOptions.show && ue.value && (h(Be) || h(ve)) ? (n(), B(h(vt), {
600
628
  ref_key: "userOptionsRef",
601
629
  ref: re,
602
- key: `user_options_${xe.value}`,
630
+ key: `user_options_${Ce.value}`,
603
631
  backgroundColor: e.value.style.chart.backgroundColor,
604
632
  color: e.value.style.chart.color,
605
- isPrinting: c(Ne),
606
- isImaging: c(Ve),
633
+ isPrinting: h(Ne),
634
+ isImaging: h(Ve),
607
635
  uid: b.value,
608
636
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
609
637
  hasPdf: e.value.userOptions.buttons.pdf,
610
638
  hasImg: e.value.userOptions.buttons.img,
639
+ hasSvg: e.value.userOptions.buttons.svg,
611
640
  hasXls: e.value.userOptions.buttons.csv,
612
641
  hasTable: e.value.userOptions.buttons.table,
613
642
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
@@ -617,89 +646,90 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
617
646
  chartElement: I.value,
618
647
  position: e.value.userOptions.position,
619
648
  hasAnnotator: e.value.userOptions.buttons.annotator,
620
- isAnnotation: le.value,
649
+ isAnnotation: te.value,
621
650
  callbacks: e.value.userOptions.callbacks,
622
651
  printScale: e.value.userOptions.print.scale,
623
652
  tableDialog: e.value.table.useDialog,
624
653
  onToggleFullscreen: He,
625
- onGeneratePdf: c(Me),
654
+ onGeneratePdf: h(Me),
626
655
  onGenerateCsv: ye,
627
- onGenerateImage: c(Re),
656
+ onGenerateImage: h(Re),
657
+ onGenerateSvg: Ke,
628
658
  onToggleTable: Xe,
629
659
  onToggleTooltip: Ye,
630
- onToggleAnnotator: ge,
631
- style: ae({
632
- visibility: c(Le) ? c(ve) ? "visible" : "hidden" : "visible"
660
+ onToggleAnnotator: be,
661
+ style: le({
662
+ visibility: h(Be) ? h(ve) ? "visible" : "hidden" : "visible"
633
663
  })
634
- }, me({ _: 2 }, [
664
+ }, we({ _: 2 }, [
635
665
  t.$slots.menuIcon ? {
636
666
  name: "menuIcon",
637
- fn: y(({ isOpen: l, color: o }) => [
638
- g(t.$slots, "menuIcon", j(q({ isOpen: l, color: o })), void 0, !0)
667
+ fn: g(({ isOpen: a, color: o }) => [
668
+ y(t.$slots, "menuIcon", G(W({ isOpen: a, color: o })), void 0, !0)
639
669
  ]),
640
670
  key: "0"
641
671
  } : void 0,
642
672
  t.$slots.optionTooltip ? {
643
673
  name: "optionTooltip",
644
- fn: y(() => [
645
- g(t.$slots, "optionTooltip", {}, void 0, !0)
674
+ fn: g(() => [
675
+ y(t.$slots, "optionTooltip", {}, void 0, !0)
646
676
  ]),
647
677
  key: "1"
648
678
  } : void 0,
649
679
  t.$slots.optionPdf ? {
650
680
  name: "optionPdf",
651
- fn: y(() => [
652
- g(t.$slots, "optionPdf", {}, void 0, !0)
681
+ fn: g(() => [
682
+ y(t.$slots, "optionPdf", {}, void 0, !0)
653
683
  ]),
654
684
  key: "2"
655
685
  } : void 0,
656
686
  t.$slots.optionCsv ? {
657
687
  name: "optionCsv",
658
- fn: y(() => [
659
- g(t.$slots, "optionCsv", {}, void 0, !0)
688
+ fn: g(() => [
689
+ y(t.$slots, "optionCsv", {}, void 0, !0)
660
690
  ]),
661
691
  key: "3"
662
692
  } : void 0,
663
693
  t.$slots.optionImg ? {
664
694
  name: "optionImg",
665
- fn: y(() => [
666
- g(t.$slots, "optionImg", {}, void 0, !0)
695
+ fn: g(() => [
696
+ y(t.$slots, "optionImg", {}, void 0, !0)
667
697
  ]),
668
698
  key: "4"
669
699
  } : void 0,
670
700
  t.$slots.optionTable ? {
671
701
  name: "optionTable",
672
- fn: y(() => [
673
- g(t.$slots, "optionTable", {}, void 0, !0)
702
+ fn: g(() => [
703
+ y(t.$slots, "optionTable", {}, void 0, !0)
674
704
  ]),
675
705
  key: "5"
676
706
  } : void 0,
677
707
  t.$slots.optionFullscreen ? {
678
708
  name: "optionFullscreen",
679
- fn: y(({ toggleFullscreen: l, isFullscreen: o }) => [
680
- g(t.$slots, "optionFullscreen", j(q({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
709
+ fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
710
+ y(t.$slots, "optionFullscreen", G(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
681
711
  ]),
682
712
  key: "6"
683
713
  } : void 0,
684
714
  t.$slots.optionAnnotator ? {
685
715
  name: "optionAnnotator",
686
- fn: y(({ toggleAnnotator: l, isAnnotator: o }) => [
687
- g(t.$slots, "optionAnnotator", j(q({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
716
+ fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
717
+ y(t.$slots, "optionAnnotator", G(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
688
718
  ]),
689
719
  key: "7"
690
720
  } : void 0
691
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
692
- (s(), v("svg", {
721
+ ]), 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"])) : m("", !0),
722
+ (n(), v("svg", {
693
723
  ref_key: "svgRef",
694
- ref: Be,
695
- xmlns: c(Ut),
696
- class: Qe({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
724
+ ref: ce,
725
+ xmlns: h(Yt),
726
+ class: Ze({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
697
727
  viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
698
- style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
728
+ style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
699
729
  }, [
700
- oe(c(ct)),
730
+ ae(h(dt)),
701
731
  k("defs", null, [
702
- (s(!0), v($, null, D(r.value, (l, o) => (s(), v("radialGradient", {
732
+ (n(!0), v($, null, D(r.value, (a, o) => (n(), v("radialGradient", {
703
733
  cx: "50%",
704
734
  cy: "50%",
705
735
  r: "50%",
@@ -709,13 +739,13 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
709
739
  }, [
710
740
  k("stop", {
711
741
  offset: "0%",
712
- "stop-color": c(Wt)(c(Gt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
713
- }, null, 8, yl),
742
+ "stop-color": h(Jt)(h(Kt)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
743
+ }, null, 8, $l),
714
744
  k("stop", {
715
745
  offset: "100%",
716
- "stop-color": l.color
717
- }, null, 8, gl)
718
- ], 8, fl))), 256))
746
+ "stop-color": a.color
747
+ }, null, 8, Il)
748
+ ], 8, Cl))), 256))
719
749
  ]),
720
750
  k("defs", null, [
721
751
  k("filter", {
@@ -724,7 +754,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
724
754
  y: "-50%",
725
755
  width: "200%",
726
756
  height: "200%"
727
- }, [...a[4] || (a[4] = [
757
+ }, [...l[4] || (l[4] = [
728
758
  k("feGaussianBlur", {
729
759
  in: "SourceGraphic",
730
760
  stdDeviation: 2
@@ -733,18 +763,18 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
733
763
  type: "saturate",
734
764
  values: "0"
735
765
  }, null, -1)
736
- ])], 8, bl)
766
+ ])], 8, Tl)
737
767
  ]),
738
- e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, D(W.value, (l, o) => (s(), v("foreignObject", {
739
- x: l.x,
740
- y: l.y,
741
- height: A.value <= 0 ? 1e-4 : A.value,
768
+ e.value.useCustomCells && r.value.length ? (n(!0), v($, { key: 0 }, D(U.value, (a, o) => (n(), v("foreignObject", {
769
+ x: a.x,
770
+ y: a.y,
771
+ height: S.value <= 0 ? 1e-4 : S.value,
742
772
  width: _.value <= 0 ? 1e-4 : _.value,
743
773
  class: "vue-ui-waffle-custom-cell-foreignObject"
744
774
  }, [
745
- g(t.$slots, "cell", we({ ref_for: !0 }, { cell: { ...l, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(E.value) ? !0 : r.value[o].serieIndex === E.value }), void 0, !0)
746
- ], 8, ml))), 256)) : m("", !0),
747
- !r.value.length && !e.value.useCustomCells ? (s(), v("rect", {
775
+ y(t.$slots, "cell", ke({ ref_for: !0 }, { cell: { ...a, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(R.value) ? !0 : r.value[o].serieIndex === R.value }), void 0, !0)
776
+ ], 8, _l))), 256)) : m("", !0),
777
+ !r.value.length && !e.value.useCustomCells ? (n(), v("rect", {
748
778
  key: 1,
749
779
  x: 12,
750
780
  y: 12,
@@ -753,115 +783,104 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
753
783
  rx: 3,
754
784
  fill: "none",
755
785
  stroke: "black"
756
- }, null, 8, wl)) : r.value.length && !e.value.useCustomCells ? (s(), v($, { key: 2 }, [
757
- t.$slots.pattern ? (s(), v("g", kl, [
758
- (s(!0), v($, null, D(he.value, (l) => (s(), v("defs", null, [
759
- g(t.$slots, "pattern", we({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${b.value}_${l.absoluteIndex}` }), void 0, !0)
786
+ }, null, 8, Sl)) : r.value.length && !e.value.useCustomCells ? (n(), v($, { key: 2 }, [
787
+ t.$slots.pattern ? (n(), v("g", Al, [
788
+ (n(!0), v($, null, D(pe.value, (a) => (n(), v("defs", null, [
789
+ y(t.$slots, "pattern", ke({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
760
790
  ]))), 256))
761
791
  ])) : m("", !0),
762
- (s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
792
+ (n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
763
793
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
764
- x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
765
- y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
766
- height: A.value <= 0 ? 1e-4 : A.value,
794
+ x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
795
+ y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
796
+ height: S.value <= 0 ? 1e-4 : S.value,
767
797
  width: _.value <= 0 ? 1e-4 : _.value,
768
798
  fill: "white",
769
799
  stroke: e.value.style.chart.layout.rect.stroke,
770
800
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
771
- filter: ee(r.value[o].serieIndex)
772
- }, null, 8, xl))), 256)),
773
- (s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
801
+ filter: Z(r.value[o].serieIndex)
802
+ }, null, 8, Ol))), 256)),
803
+ (n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
774
804
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
775
- x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
776
- y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
777
- height: A.value <= 0 ? 1e-4 : A.value,
805
+ x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
806
+ y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
807
+ height: S.value <= 0 ? 1e-4 : S.value,
778
808
  width: _.value <= 0 ? 1e-4 : _.value,
779
809
  fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${b.value}_${o})` : r.value[o].color,
780
810
  stroke: e.value.style.chart.layout.rect.stroke,
781
811
  "stroke-width": e.value.style.chart.layout.rect.strokeWidth,
782
- filter: ee(r.value[o].serieIndex)
783
- }, null, 8, Cl))), 256)),
784
- t.$slots.pattern ? (s(), v("g", $l, [
785
- (s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
812
+ filter: Z(r.value[o].serieIndex)
813
+ }, null, 8, Pl))), 256)),
814
+ t.$slots.pattern ? (n(), v("g", Ll, [
815
+ (n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
786
816
  rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
787
- x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
788
- y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
789
- height: A.value <= 0 ? 1e-4 : A.value,
817
+ x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
818
+ y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
819
+ height: S.value <= 0 ? 1e-4 : S.value,
790
820
  width: _.value <= 0 ? 1e-4 : _.value,
791
821
  fill: `url(#pattern_${b.value}_${r.value[o].absoluteIndex})`,
792
822
  stroke: "none",
793
- filter: ee(r.value[o].serieIndex)
794
- }, null, 8, Il))), 256))
823
+ filter: Z(r.value[o].serieIndex)
824
+ }, null, 8, Fl))), 256))
795
825
  ])) : m("", !0)
796
826
  ], 64)) : m("", !0),
797
- (s(!0), v($, null, D(W.value, (l, o) => (s(), v($, null, [
798
- _t(o, l) ? (s(), v("text", {
827
+ (n(!0), v($, null, D(U.value, (a, o) => (n(), v($, null, [
828
+ St(o, a) ? (n(), v("text", {
799
829
  key: `datalabel_${o}`,
800
- textContent: M(At(o, l)),
801
- x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
802
- y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ue.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
830
+ textContent: oe(At(o, a)),
831
+ x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
832
+ y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ue.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
803
833
  "font-size": e.value.style.chart.layout.labels.captions.fontSize,
804
- fill: c(jt)(r.value[o].color),
805
- filter: ee(r.value[o].serieIndex)
806
- }, null, 8, Tl)) : m("", !0)
834
+ fill: h(Qt)(r.value[o].color),
835
+ filter: Z(r.value[o].serieIndex)
836
+ }, null, 8, Bl)) : m("", !0)
807
837
  ], 64))), 256)),
808
- (s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
809
- x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
810
- y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
838
+ (n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
839
+ x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
840
+ y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
811
841
  height: Ue.value,
812
842
  width: yt.value,
813
843
  fill: "transparent",
814
844
  stroke: "none",
815
- onMouseover: (u) => It(o),
816
- onMouseleave: (u) => $t(o),
817
- onClick: (u) => Ct(o)
818
- }, null, 40, _l))), 256)),
819
- g(t.$slots, "svg", { svg: z.value }, void 0, !0)
820
- ], 14, pl)),
821
- t.$slots.watermark ? (s(), v("div", Al, [
822
- g(t.$slots, "watermark", j(q({ isPrinting: c(Ne) || c(Ve) })), void 0, !0)
845
+ onMouseover: (u) => Tt(o),
846
+ onMouseleave: (u) => It(o),
847
+ onClick: (u) => $t(o)
848
+ }, null, 40, Dl))), 256)),
849
+ y(t.$slots, "svg", { svg: z.value }, void 0, !0)
850
+ ], 14, xl)),
851
+ t.$slots.watermark ? (n(), v("div", zl, [
852
+ y(t.$slots, "watermark", G(W({ isPrinting: h(Ne) || h(Ve) })), void 0, !0)
823
853
  ])) : m("", !0),
824
854
  k("div", {
825
855
  id: `legend-bottom-${b.value}`
826
- }, null, 8, Sl),
827
- Oe.value ? (s(), B(Bt, {
856
+ }, null, 8, Nl),
857
+ Pe.value ? (n(), B(Et, {
828
858
  key: 5,
829
859
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
830
860
  }, [
831
861
  k("div", {
832
862
  ref_key: "chartLegend",
833
- ref: $e
863
+ ref: Ie
834
864
  }, [
835
- e.value.style.chart.legend.show ? (s(), B(vl, {
836
- key: `legend_${Se.value}`,
837
- legendSet: G.value,
838
- config: xt.value,
839
- onClickMarker: a[0] || (a[0] = ({ legend: l }) => qe(l.uid))
840
- }, me({
841
- item: y(({ legend: l }) => [
865
+ e.value.style.chart.legend.show ? (n(), B(bl, {
866
+ key: `legend_${Oe.value}`,
867
+ legendSet: N.value,
868
+ config: Ct.value,
869
+ onClickMarker: l[0] || (l[0] = ({ legend: a }) => qe(a.uid))
870
+ }, we({
871
+ item: g(({ legend: a }) => [
842
872
  k("div", {
843
- onClick: (o) => l.segregate(),
844
- style: ae(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
845
- }, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? c(Q)(
846
- e.value.style.chart.layout.labels.dataLabels.formatter,
847
- l.value,
848
- c(P)({
849
- p: e.value.style.chart.layout.labels.dataLabels.prefix,
850
- v: l.value,
851
- s: e.value.style.chart.layout.labels.dataLabels.suffix,
852
- r: e.value.style.chart.legend.roundingValue,
853
- isAnimating: N.value
854
- }),
855
- { datapoint: l }
856
- ) : "") + " " + M(e.value.style.chart.legend.showPercentage ? f.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / S.value) ? "-" : c(P)({ v: l.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ol)
873
+ onClick: (o) => a.segregate(),
874
+ style: le(`opacity:${f.value.includes(a.uid) ? 0.5 : 1}`)
875
+ }, oe(a.display), 13, Vl)
857
876
  ]),
858
877
  _: 2
859
878
  }, [
860
879
  t.$slots.pattern ? {
861
880
  name: "legend-pattern",
862
- fn: y(({ legend: l, index: o }) => [
863
- oe(nl, {
864
- shape: l.shape,
881
+ fn: g(({ legend: a, index: o }) => [
882
+ ae(fl, {
883
+ shape: a.shape,
865
884
  radius: 30,
866
885
  stroke: "none",
867
886
  plot: { x: 30, y: 30 },
@@ -870,21 +889,21 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
870
889
  ]),
871
890
  key: "0"
872
891
  } : void 0
873
- ]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
892
+ ]), 1032, ["legendSet", "config"])) : y(t.$slots, "legend", {
874
893
  key: 1,
875
- legend: G.value
894
+ legend: N.value
876
895
  }, void 0, !0)
877
896
  ], 512)
878
897
  ], 8, ["to"])) : m("", !0),
879
- t.$slots.source ? (s(), v("div", {
898
+ t.$slots.source ? (n(), v("div", {
880
899
  key: 6,
881
900
  ref_key: "source",
882
- ref: Ie,
901
+ ref: Te,
883
902
  dir: "auto"
884
903
  }, [
885
- g(t.$slots, "source", {}, void 0, !0)
904
+ y(t.$slots, "source", {}, void 0, !0)
886
905
  ], 512)) : m("", !0),
887
- oe(c(ut), {
906
+ ae(h(st), {
888
907
  show: x.value.showTooltip && se.value && f.value.length < w.dataset.length,
889
908
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
890
909
  color: e.value.style.chart.tooltip.color,
@@ -904,38 +923,38 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
904
923
  smoothForce: e.value.style.chart.tooltip.smoothForce,
905
924
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
906
925
  }, {
907
- "tooltip-before": y(() => [
908
- g(t.$slots, "tooltip-before", j(q({ ...pe.value })), void 0, !0)
926
+ "tooltip-before": g(() => [
927
+ y(t.$slots, "tooltip-before", G(W({ ...fe.value })), void 0, !0)
909
928
  ]),
910
- "tooltip-after": y(() => [
911
- g(t.$slots, "tooltip-after", j(q({ ...pe.value })), void 0, !0)
929
+ "tooltip-after": g(() => [
930
+ y(t.$slots, "tooltip-after", G(W({ ...fe.value })), void 0, !0)
912
931
  ]),
913
932
  _: 3
914
933
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
915
- ue.value && e.value.userOptions.buttons.table ? (s(), B(Dt(J.value.component), we({ key: 7 }, J.value.props, {
934
+ ue.value && e.value.userOptions.buttons.table ? (n(), B(Ut(Y.value.component), ke({ key: 7 }, Y.value.props, {
916
935
  ref_key: "tableUnit",
917
- ref: H,
936
+ ref: j,
918
937
  onClose: Je
919
- }), me({
920
- content: y(() => [
921
- (s(), B(c(nt), {
938
+ }), we({
939
+ content: g(() => [
940
+ (n(), B(h(rt), {
922
941
  key: `table_${Ae.value}`,
923
- colNames: te.value.colNames,
924
- head: te.value.head,
925
- body: te.value.body,
926
- config: te.value.config,
927
- title: e.value.table.useDialog ? "" : J.value.title,
942
+ colNames: ee.value.colNames,
943
+ head: ee.value.head,
944
+ body: ee.value.body,
945
+ config: ee.value.config,
946
+ title: e.value.table.useDialog ? "" : Y.value.title,
928
947
  withCloseButton: !e.value.table.useDialog,
929
948
  onClose: Je
930
949
  }, {
931
- th: y(({ th: l }) => [
950
+ th: g(({ th: a }) => [
932
951
  k("div", {
933
- innerHTML: l,
952
+ innerHTML: a,
934
953
  style: { display: "flex", "align-items": "center" }
935
- }, null, 8, Pl)
954
+ }, null, 8, Ml)
936
955
  ]),
937
- td: y(({ td: l }) => [
938
- Ze(M(l.name || l), 1)
956
+ td: g(({ td: a }) => [
957
+ et(oe(a.name || a), 1)
939
958
  ]),
940
959
  _: 1
941
960
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -944,32 +963,32 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
944
963
  }, [
945
964
  e.value.table.useDialog ? {
946
965
  name: "title",
947
- fn: y(() => [
948
- Ze(M(J.value.title), 1)
966
+ fn: g(() => [
967
+ et(oe(Y.value.title), 1)
949
968
  ]),
950
969
  key: "0"
951
970
  } : void 0,
952
971
  e.value.table.useDialog ? {
953
972
  name: "actions",
954
- fn: y(() => [
973
+ fn: g(() => [
955
974
  k("button", {
956
975
  tabindex: "0",
957
976
  class: "vue-ui-user-options-button",
958
- onClick: a[1] || (a[1] = (l) => ye(e.value.userOptions.callbacks.csv))
977
+ onClick: l[1] || (l[1] = (a) => ye(e.value.userOptions.callbacks.csv))
959
978
  }, [
960
- oe(c(st), {
979
+ ae(h(nt), {
961
980
  name: "excel",
962
- stroke: J.value.props.color
981
+ stroke: Y.value.props.color
963
982
  }, null, 8, ["stroke"])
964
983
  ])
965
984
  ]),
966
985
  key: "1"
967
986
  } : void 0
968
987
  ]), 1040)) : m("", !0),
969
- c(Pe) ? (s(), B(ll, { key: 8 })) : m("", !0)
970
- ], 46, dl));
988
+ h(Le) ? (n(), B(il, { key: 8 })) : m("", !0)
989
+ ], 46, wl));
971
990
  }
972
- }, Hl = /* @__PURE__ */ cl(Fl, [["__scopeId", "data-v-96bcc115"]]);
991
+ }, la = /* @__PURE__ */ ml(Rl, [["__scopeId", "data-v-78e01575"]]);
973
992
  export {
974
- Hl as default
993
+ la as default
975
994
  };