vue-data-ui 3.23.0 → 3.23.2

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 (206) hide show
  1. package/dist/{Arrow-o2qHNvrC.js → Arrow-CF0VFcBH.js} +1 -1
  2. package/dist/{BaseDraggableDialog-qTnfhLBz.js → BaseDraggableDialog-LoqqwRtV.js} +2 -2
  3. package/dist/{BaseIcon-91MZoczJ.js → BaseIcon-BfndwIWE.js} +1 -1
  4. package/dist/{BaseLegendToggle-CtAPwzr2.js → BaseLegendToggle-DZVucLnv.js} +1 -1
  5. package/dist/{BaseZoomControls-rdzlicuz.js → BaseZoomControls-BZvCnZEi.js} +2 -2
  6. package/dist/{ColorPicker-CIAkdPrj.js → ColorPicker--ayG2YHf.js} +2 -2
  7. package/dist/{DataTable-D4tM9s5Y.js → DataTable-BbKgJ5UI.js} +2 -2
  8. package/dist/{HillActions-BWhxHlrj.js → HillActions-BD9j_sOU.js} +1 -1
  9. package/dist/{Legend-CQTRlzK-.js → Legend-CQxUgOd-.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-Cawacw1W.js → NonSvgPenAndPaper-4ypecDg1.js} +6 -6
  11. package/dist/{PackageVersion--QCMh5k_.js → PackageVersion-DXU7nRr9.js} +1 -1
  12. package/dist/{PenAndPaper-cE4J8-rA.js → PenAndPaper-DAE-tnEQ.js} +6 -6
  13. package/dist/{Shape-BPMV94Ij.js → Shape-C21CMlWS.js} +1 -1
  14. package/dist/SlicerPreview-wUw1hFwe.js +1703 -0
  15. package/dist/{SparkTooltip-BaYtEKS6.js → SparkTooltip-CjsbIhzi.js} +1 -1
  16. package/dist/{Title-BODtwViI.js → Title-BE3qg9xl.js} +1 -1
  17. package/dist/{Tooltip-CMTGxeYO.js → Tooltip-DhjyfHwz.js} +2 -2
  18. package/dist/{UserOptions-3ujTo3LD.js → UserOptions-Dt98of5H.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-mini-loader.js +1 -1
  51. package/dist/components/vue-ui-molecule.js +1 -1
  52. package/dist/components/vue-ui-mood-radar.js +1 -1
  53. package/dist/components/vue-ui-nested-donuts.js +1 -1
  54. package/dist/components/vue-ui-onion.js +1 -1
  55. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  56. package/dist/components/vue-ui-quadrant.js +1 -1
  57. package/dist/components/vue-ui-quick-chart.js +1 -1
  58. package/dist/components/vue-ui-radar.js +1 -1
  59. package/dist/components/vue-ui-rating.js +1 -1
  60. package/dist/components/vue-ui-relation-circle.js +1 -1
  61. package/dist/components/vue-ui-ridgeline.js +1 -1
  62. package/dist/components/vue-ui-rings.js +1 -1
  63. package/dist/components/vue-ui-scatter.js +1 -1
  64. package/dist/components/vue-ui-skeleton.js +1 -1
  65. package/dist/components/vue-ui-smiley.js +1 -1
  66. package/dist/components/vue-ui-spark-trend.js +1 -1
  67. package/dist/components/vue-ui-sparkbar.js +1 -1
  68. package/dist/components/vue-ui-sparkgauge.js +1 -1
  69. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  70. package/dist/components/vue-ui-sparkline.js +1 -1
  71. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  72. package/dist/components/vue-ui-stackbar.js +1 -1
  73. package/dist/components/vue-ui-stackline.js +1 -1
  74. package/dist/components/vue-ui-strip-plot.js +1 -1
  75. package/dist/components/vue-ui-table-heatmap.js +1 -1
  76. package/dist/components/vue-ui-table-sparkline.js +1 -1
  77. package/dist/components/vue-ui-table.js +1 -1
  78. package/dist/components/vue-ui-thermometer.js +1 -1
  79. package/dist/components/vue-ui-timer.js +1 -1
  80. package/dist/components/vue-ui-tiremarks.js +1 -1
  81. package/dist/components/vue-ui-treemap.js +1 -1
  82. package/dist/components/vue-ui-vertical-bar.js +1 -1
  83. package/dist/components/vue-ui-waffle.js +1 -1
  84. package/dist/components/vue-ui-wheel.js +1 -1
  85. package/dist/components/vue-ui-word-cloud.js +1 -1
  86. package/dist/components/vue-ui-world.js +1 -1
  87. package/dist/components/vue-ui-xy-canvas.js +1 -1
  88. package/dist/components/vue-ui-xy.js +1 -1
  89. package/dist/composables.js +1 -1
  90. package/dist/{dom-to-png-4tdMNGPX.js → dom-to-png-BYIvdTe8.js} +1 -1
  91. package/dist/{exposedLib-DWLRqRhv.js → exposedLib-C0DPCgFj.js} +7 -4
  92. package/dist/{geoProjections-BCP_PoiB.js → geoProjections-CEo3dVaL.js} +1 -1
  93. package/dist/{img-DIQG5q8T.js → img-Bnokohej.js} +1 -1
  94. package/dist/{labelUtils-C5lnc_xc.js → labelUtils-BeVpDvTJ.js} +1 -1
  95. package/dist/{lib-BuMGJ_a0.js → lib-Bttd6u5E.js} +21 -11
  96. package/dist/{package-BMc_ZieJ.js → package-bsfpO6y3.js} +1 -1
  97. package/dist/{pdf-Cnz4NKM9.js → pdf-CVIDfCrS.js} +1 -1
  98. package/dist/{render-common-Ktg2LZFG.js → render-common-C0PEe9so.js} +2 -2
  99. package/dist/ssr/vue-ui-donut.js +1 -1
  100. package/dist/ssr/vue-ui-xy.js +1 -1
  101. package/dist/ssr.js +2 -2
  102. package/dist/style.css +1 -1
  103. package/dist/types/vue-data-ui.d.ts +9 -0
  104. package/dist/{useSvgExport-Ba9qBr9M.js → useChartExport-DNiwdPmb.js} +48 -2
  105. package/dist/{useConfig-BilxnBNr.js → useConfig-DlNpz6P8.js} +13 -1
  106. package/dist/{useNestedProp--NSEmhOH.js → useNestedProp-vPNvh7rV.js} +5 -3
  107. package/dist/{useObjectBindings-Cwq7NcQz.js → useObjectBindings-BeWS5v0i.js} +1 -1
  108. package/dist/{usePrinter-BFvi4jVy.js → usePrinter-DN5bYhTG.js} +2 -2
  109. package/dist/{useTimeLabels-B9CEuiLZ.js → useTimeLabels-d2f-W1L4.js} +2 -4
  110. package/dist/{useTooltipPosition-BsRysTrw.js → useTooltipPosition-DifeoeQW.js} +13 -13
  111. package/dist/utils.js +3 -3
  112. package/dist/{vue-data-ui-EsawKe_W.js → vue-data-ui-BNxtW8pK.js} +69 -69
  113. package/dist/vue-data-ui.js +74 -74
  114. package/dist/{vue-ui-3d-bar-RSUS2xpL.js → vue-ui-3d-bar-BYumVxZG.js} +147 -165
  115. package/dist/{vue-ui-accordion-61MlW-Ge.js → vue-ui-accordion-DegI2lzR.js} +4 -4
  116. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  117. package/dist/{vue-ui-annotator-DBRT85HG.js → vue-ui-annotator-DfG79D4r.js} +41 -68
  118. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  119. package/dist/{vue-ui-bump-Dvv3iSKr.js → vue-ui-bump-mKysp0KO.js} +222 -272
  120. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  121. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  122. package/dist/{vue-ui-chestnut-ArloORzP.js → vue-ui-chestnut-Dpklo-VE.js} +311 -365
  123. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  124. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  125. package/dist/{vue-ui-cursor-CxgE6Phh.js → vue-ui-cursor-DIt7vOwc.js} +4 -4
  126. package/dist/{vue-ui-dag-C9Sf9vH7.js → vue-ui-dag-Cl0WdSLb.js} +812 -840
  127. package/dist/{vue-ui-dashboard-bGmaglAj.js → vue-ui-dashboard-BwxRLR4E.js} +70 -70
  128. package/dist/{vue-ui-digits-DgDE-_Fn.js → vue-ui-digits-Bp1OH_t1.js} +5 -5
  129. package/dist/{vue-ui-donut-B_n6wF6B.js → vue-ui-donut-BZUT7QYt.js} +352 -377
  130. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  131. package/dist/{vue-ui-donut-Bmo149AR.js → vue-ui-donut-y6tOAVyY.js} +18 -17
  132. package/dist/{vue-ui-dumbbell-BX4Ao_wR.js → vue-ui-dumbbell-BtKZcAOV.js} +370 -420
  133. package/dist/{vue-ui-flow-Bshw8pT_.js → vue-ui-flow-BF_cndsv.js} +191 -216
  134. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  135. package/dist/{vue-ui-galaxy-CvXgy-dy.js → vue-ui-galaxy-ClWaSOmM.js} +276 -302
  136. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  137. package/dist/{vue-ui-geo-C-gSZL2q.js → vue-ui-geo-B1tOD3HC.js} +398 -449
  138. package/dist/{vue-ui-gizmo-CJdxyPID.js → vue-ui-gizmo-foatosAv.js} +4 -4
  139. package/dist/{vue-ui-heatmap-DEEKv8ip.js → vue-ui-heatmap-By33A9dZ.js} +479 -502
  140. package/dist/{vue-ui-hill-D7LYAgAL.js → vue-ui-hill-ewqkK9s5.js} +570 -593
  141. package/dist/vue-ui-history-plot-FEIwXlsz.js +1698 -0
  142. package/dist/{vue-ui-horizontal-bar-CfFye5tL.js → vue-ui-horizontal-bar-D51sAeVu.js} +307 -332
  143. package/dist/{vue-ui-kpi-DCBnNfTb.js → vue-ui-kpi-y3EkgqJQ.js} +4 -4
  144. package/dist/{vue-ui-mini-loader-CtWpqnLW.js → vue-ui-mini-loader-CtTewZJG.js} +3 -3
  145. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  146. package/dist/{vue-ui-mood-radar-sl6DMxqR.js → vue-ui-mood-radar-wBRTZI5k.js} +341 -390
  147. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  148. package/dist/vue-ui-onion-B2Q2n55x.js +1233 -0
  149. package/dist/{vue-ui-parallel-coordinate-plot-DE9wTmQQ.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +189 -214
  150. package/dist/{vue-ui-quadrant-SaY_RPSE.js → vue-ui-quadrant-DOPuejDE.js} +254 -284
  151. package/dist/{vue-ui-quick-chart-CJ9rejnj.js → vue-ui-quick-chart-CgHX9njq.js} +108 -109
  152. package/dist/{vue-ui-radar-CaNen5Fj.js → vue-ui-radar-BLvG-_zE.js} +407 -434
  153. package/dist/{vue-ui-rating--K7rX2an.js → vue-ui-rating-BDVSVFA0.js} +10 -11
  154. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  155. package/dist/vue-ui-ridgeline-BbrnXvBo.js +1614 -0
  156. package/dist/{vue-ui-rings-BevKD8P-.js → vue-ui-rings-B3cKfMWy.js} +419 -444
  157. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  158. package/dist/{vue-ui-skeleton-B9ZP1w-i.js → vue-ui-skeleton-DwKxd7fk.js} +4 -4
  159. package/dist/{vue-ui-smiley-DYnqqk6u.js → vue-ui-smiley-5iHJeTPc.js} +64 -65
  160. package/dist/{vue-ui-spark-trend-R0ebpg-G.js → vue-ui-spark-trend-MpvrV5Wd.js} +11 -11
  161. package/dist/{vue-ui-sparkbar-DYC3By0v.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  162. package/dist/{vue-ui-sparkgauge-Bw6no-In.js → vue-ui-sparkgauge-B-BYVv4p.js} +4 -4
  163. package/dist/{vue-ui-sparkhistogram-DvRKy8rq.js → vue-ui-sparkhistogram-D7D4NHdi.js} +18 -19
  164. package/dist/{vue-ui-sparkline-Dz1uzBos.js → vue-ui-sparkline-RbeYtLWp.js} +11 -11
  165. package/dist/{vue-ui-sparkstackbar-DlnPdZih.js → vue-ui-sparkstackbar-ohN7mtbg.js} +194 -198
  166. package/dist/{vue-ui-stackbar-B-THcavY.js → vue-ui-stackbar-D2bpvQYt.js} +530 -552
  167. package/dist/{vue-ui-stackline-3dBPoI0h.js → vue-ui-stackline-Bo1oE8yq.js} +592 -614
  168. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  169. package/dist/vue-ui-table-3PPiJPV6.js +1352 -0
  170. package/dist/{vue-ui-table-heatmap-DVwMqzje.js → vue-ui-table-heatmap-D1bbPXKG.js} +56 -57
  171. package/dist/{vue-ui-table-sparkline-CABJzK8p.js → vue-ui-table-sparkline-l1cUX3ny.js} +13 -15
  172. package/dist/{vue-ui-thermometer-CVQ-H69Q.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  173. package/dist/{vue-ui-timer-Bm8LpsnI.js → vue-ui-timer-DWNdx47q.js} +6 -6
  174. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  175. package/dist/{vue-ui-treemap-DP0Sx8Y8.js → vue-ui-treemap-DjNlnOG5.js} +521 -547
  176. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  177. package/dist/vue-ui-wheel-DrefGLos.js +871 -0
  178. package/dist/{vue-ui-word-cloud-B2sxtel9.js → vue-ui-word-cloud-CQZ8AyOi.js} +382 -405
  179. package/dist/{vue-ui-world-BBQZLnzm.js → vue-ui-world-Y7a3VEjq.js} +426 -451
  180. package/dist/{vue-ui-xy-DZj5DT-q.js → vue-ui-xy-CJcdttNL.js} +879 -905
  181. package/dist/{vue-ui-xy-ChZg7AtI.js → vue-ui-xy-DPxtkYGc.js} +329 -326
  182. package/dist/{vue-ui-xy-canvas-BN2u0bOJ.js → vue-ui-xy-canvas-1rbwMA1m.js} +30 -27
  183. package/package.json +4 -4
  184. package/dist/Slicer-5yIrdoJv.js +0 -1149
  185. package/dist/SlicerPreview-DvjLV2TW.js +0 -1689
  186. package/dist/vue-ui-age-pyramid-CgnPWA93.js +0 -1263
  187. package/dist/vue-ui-bullet-Bc3-WaN1.js +0 -724
  188. package/dist/vue-ui-candlestick-DvvsrIdp.js +0 -1864
  189. package/dist/vue-ui-carousel-table-DtsNVim8.js +0 -463
  190. package/dist/vue-ui-chord-xX5gWZy8.js +0 -1396
  191. package/dist/vue-ui-circle-pack-D8wykmqg.js +0 -1638
  192. package/dist/vue-ui-donut-evolution-D6vH_hfx.js +0 -1598
  193. package/dist/vue-ui-funnel-CjYosIik.js +0 -797
  194. package/dist/vue-ui-gauge-CByT0_vF.js +0 -953
  195. package/dist/vue-ui-history-plot-BhcU94Pt.js +0 -1722
  196. package/dist/vue-ui-molecule-D3igGyOy.js +0 -958
  197. package/dist/vue-ui-nested-donuts-aS4YzaB3.js +0 -1528
  198. package/dist/vue-ui-onion-EhPTZpW_.js +0 -1258
  199. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +0 -925
  200. package/dist/vue-ui-ridgeline-Beg5hshN.js +0 -1663
  201. package/dist/vue-ui-scatter-CNA7jF-o.js +0 -2428
  202. package/dist/vue-ui-strip-plot-ACeYOoHj.js +0 -1757
  203. package/dist/vue-ui-table-rFy16bp0.js +0 -1347
  204. package/dist/vue-ui-tiremarks-DB3f5qiz.js +0 -559
  205. package/dist/vue-ui-waffle-iPpdk1Bm.js +0 -1412
  206. package/dist/vue-ui-wheel-BJkEYfLj.js +0 -892
@@ -1,14 +1,14 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, J as r, Jt as i, Kt as a, Pt as o, S as s, X as c, b as l, jt as u, pt as d, q as f, t as p, tt as m, xt as h } from "./lib-BuMGJ_a0.js";
2
+ import { $ as t, D as n, J as r, Jt as i, Kt as a, Pt as o, S as s, X as c, b as l, jt as u, pt as d, q as f, t as p, tt as m, xt as h } from "./lib-Bttd6u5E.js";
3
3
  import { n as g, t as _ } from "./useHints-Dq_w2E8B.js";
4
- import { t as v } from "./useConfig-BilxnBNr.js";
5
- import { t as y } from "./usePrinter-BFvi4jVy.js";
4
+ import { t as v } from "./useConfig-DlNpz6P8.js";
5
+ import { t as y } from "./usePrinter-DN5bYhTG.js";
6
6
  import { n as ee, t as te } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as b } from "./useSvgExport-Ba9qBr9M.js";
8
- import { t as x } from "./useNestedProp--NSEmhOH.js";
9
- import { t as S } from "./useThemeCheck-C43Tcqmk.js";
10
- import { t as C } from "./img-DIQG5q8T.js";
11
- import { n as w } from "./Title-BODtwViI.js";
7
+ import { t as b } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as x } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as S } from "./useChartExport-DNiwdPmb.js";
10
+ import { t as C } from "./img-Bnokohej.js";
11
+ import { n as w } from "./Title-BE3qg9xl.js";
12
12
  import { t as T } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
13
  import { i as ne, t as re } from "./useResponsive-ZtArZtUf.js";
14
14
  import { t as ie } from "./A11yDataTable-DdRsVULz.js";
@@ -16,7 +16,7 @@ import { t as E } from "./useUserOptionState-DK-_1ddE.js";
16
16
  import { t as ae } from "./useChartAccessibility-DYqac8yF.js";
17
17
  import { t as oe } from "./usePanZoom-CYU3B4T3.js";
18
18
  import { t as se } from "./vue_ui_word_cloud-C-qIMNLu.js";
19
- import { t as ce } from "./BaseZoomControls-rdzlicuz.js";
19
+ import { t as ce } from "./BaseZoomControls-BZvCnZEi.js";
20
20
  import { Fragment as le, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as ue, createTextVNode as de, createVNode as fe, defineAsyncComponent as M, guardReactiveProps as N, mergeProps as pe, nextTick as me, normalizeClass as he, normalizeProps as P, normalizeStyle as ge, onBeforeUnmount as _e, onMounted as ve, openBlock as F, ref as I, renderList as ye, renderSlot as L, resolveDynamicComponent as be, shallowRef as xe, toDisplayString as Se, toRefs as Ce, unref as R, watch as we, withCtx as z } from "vue";
21
21
  //#region src/wordcloud.js
22
22
  var Te = {
@@ -347,16 +347,16 @@ function Ue(e, t, n) {
347
347
  function We() {
348
348
  return typeof performance < "u" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
349
349
  }
350
- function U({ value: e, minimumValue: t, maximumValue: n, configuredMinimumFontSize: r, maximumFontSize: i }) {
350
+ function Ge({ value: e, minimumValue: t, maximumValue: n, configuredMinimumFontSize: r, maximumFontSize: i }) {
351
351
  if (n === t) return i;
352
352
  let a = (e - t) / (n - t) * (i - r) + r;
353
353
  return Math.max(r, Math.min(i, a));
354
354
  }
355
- function Ge({ bitmapHeight: e, proximity: t, strictPixelPadding: n, minimumVisualPadding: r }) {
355
+ function Ke({ bitmapHeight: e, proximity: t, strictPixelPadding: n, minimumVisualPadding: r }) {
356
356
  let i = Math.max(0, Math.round(t || 0)), a = Math.ceil(e * .035) + 2;
357
357
  return Math.max(i, a, n ? 3 : 0, r);
358
358
  }
359
- function Ke({ currentBitmap: e, strictPixelPadding: t, scaleFactor: n, baseBitmap: r, bitmapKey: i, proximity: a, minimumVisualPadding: o }) {
359
+ function qe({ currentBitmap: e, strictPixelPadding: t, scaleFactor: n, baseBitmap: r, bitmapKey: i, proximity: a, minimumVisualPadding: o }) {
360
360
  let s = e.runs, c = e.w, l = e.h, u = e.minX, d = e.minY, f = e.maxX, p = e.maxY;
361
361
  if (!s.length) return {
362
362
  runs: s,
@@ -367,7 +367,7 @@ function Ke({ currentBitmap: e, strictPixelPadding: t, scaleFactor: n, baseBitma
367
367
  bitmapMaximumX: f,
368
368
  bitmapMaximumY: p
369
369
  };
370
- let m = Ge({
370
+ let m = Ke({
371
371
  bitmapHeight: l,
372
372
  proximity: a,
373
373
  strictPixelPadding: t,
@@ -410,10 +410,10 @@ function Ke({ currentBitmap: e, strictPixelPadding: t, scaleFactor: n, baseBitma
410
410
  bitmapMaximumY: p
411
411
  };
412
412
  }
413
- async function qe({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, cosineArray: h, sineArray: g, radiusStep: _, maximumAttempts: v, maybeYield: y, proximity: ee, minimumVisualPadding: te }) {
413
+ async function Je({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, cosineArray: h, sineArray: g, radiusStep: _, maximumAttempts: v, maybeYield: y, proximity: ee, minimumVisualPadding: te }) {
414
414
  let b = 1;
415
415
  for (; b >= n;) {
416
- let { runs: n, bitmapWidth: x, bitmapHeight: S, bitmapMinimumX: C, bitmapMinimumY: w, bitmapMaximumX: T, bitmapMaximumY: ne } = Ke({
416
+ let { runs: n, bitmapWidth: x, bitmapHeight: S, bitmapMinimumX: C, bitmapMinimumY: w, bitmapMaximumX: T, bitmapMaximumY: ne } = qe({
417
417
  currentBitmap: b === 1 ? e : V(e, b),
418
418
  strictPixelPadding: d,
419
419
  scaleFactor: b,
@@ -465,8 +465,8 @@ async function qe({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskB
465
465
  }
466
466
  return null;
467
467
  }
468
- async function Je({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, maybeYield: h, proximity: g, qualityPreset: _, primarySpiral: v, fallbackSpiral: y }) {
469
- return await qe({
468
+ async function Ye({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskBits: r, maskRowStride: i, maskWidth: a, maskHeight: o, centerX: s, centerY: c, maximumRadius: l, scaleStep: u, strictPixelPadding: d, bitmapKey: f, minimumFontSize: p, rawWord: m, maybeYield: h, proximity: g, qualityPreset: _, primarySpiral: v, fallbackSpiral: y }) {
469
+ return await Je({
470
470
  baseBitmap: e,
471
471
  baseFontSize: t,
472
472
  minimumScaleFactor: n,
@@ -489,7 +489,7 @@ async function Je({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskB
489
489
  maybeYield: h,
490
490
  proximity: g,
491
491
  minimumVisualPadding: _.minimumVisualPadding
492
- }) || await qe({
492
+ }) || await Je({
493
493
  baseBitmap: e,
494
494
  baseFontSize: t,
495
495
  minimumScaleFactor: n,
@@ -514,7 +514,7 @@ async function Je({ baseBitmap: e, baseFontSize: t, minimumScaleFactor: n, maskB
514
514
  minimumVisualPadding: _.minimumVisualPadding
515
515
  });
516
516
  }
517
- async function Ye({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, quality: i = Ee, onProgress: a, debugTiming: o = !1 }) {
517
+ async function Xe({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, quality: i = Ee, onProgress: a, debugTiming: o = !1 }) {
518
518
  let s = We(), c = s(), l = c;
519
519
  async function u() {
520
520
  s() - l >= 12 && (await new Promise((e) => setTimeout(e, 0)), l = s());
@@ -529,7 +529,7 @@ async function Ye({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, q
529
529
  id: e.id == null ? `${e.name}__${t}` : e.id
530
530
  }))].sort((e, t) => t.value - e.value), E = [], ae = h.scaleStep;
531
531
  for (let e = 0; e < ie.length; e += 1) {
532
- let i = ie[e], o = E.length, s = U({
532
+ let i = ie[e], o = E.length, s = Ge({
533
533
  value: i.value,
534
534
  minimumValue: te,
535
535
  maximumValue: b,
@@ -547,7 +547,7 @@ async function Ye({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, q
547
547
  await u();
548
548
  continue;
549
549
  }
550
- let oe = await Je({
550
+ let oe = await Ye({
551
551
  baseBitmap: d,
552
552
  baseFontSize: s,
553
553
  minimumScaleFactor: Math.max(1 / s, .1),
@@ -585,7 +585,7 @@ async function Ye({ words: e, proximity: t = 0, svg: n, strictPixelPadding: r, q
585
585
  }
586
586
  //#endregion
587
587
  //#region src/components/vue-ui-word-cloud.vue
588
- var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
588
+ var U = /* @__PURE__ */ e({ default: () => ut }), Ze = [
589
589
  "id",
590
590
  "data-resizing",
591
591
  "data-relayout"
@@ -645,24 +645,24 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
645
645
  },
646
646
  emits: ["copyAlt"],
647
647
  setup(e, { expose: T, emit: Te }) {
648
- let Ee = M(() => import("./Tooltip-CMTGxeYO.js")), De = M(() => import("./BaseIcon-91MZoczJ.js").then((e) => e.n)), Oe = M(() => import("./vue-ui-accordion-61MlW-Ge.js").then((e) => e.n)), ke = M(() => import("./DataTable-D4tM9s5Y.js")), Ae = M(() => import("./PenAndPaper-cE4J8-rA.js").then((e) => e.t)), je = M(() => import("./UserOptions-3ujTo3LD.js").then((e) => e.n)), Me = M(() => import("./PackageVersion--QCMh5k_.js").then((e) => e.t)), Ne = M(() => import("./BaseDraggableDialog-qTnfhLBz.js").then((e) => e.n)), { vue_ui_word_cloud: Pe } = v(), { isThemeValid: Fe, warnInvalidTheme: Ie } = S(), B = e, Le = Te, Re = D({
648
+ let Ee = M(() => import("./Tooltip-DhjyfHwz.js")), De = M(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Oe = M(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), ke = M(() => import("./DataTable-BbKgJ5UI.js")), Ae = M(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), je = M(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Me = M(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), Ne = M(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_word_cloud: Pe } = v(), { isThemeValid: Fe, warnInvalidTheme: Ie } = x(), B = e, Le = Te, Re = D({
649
649
  get() {
650
650
  return !!B.dataset && B.dataset.length;
651
651
  },
652
652
  set(e) {
653
653
  return e;
654
654
  }
655
- }), V = I(f()), ze = I(0), H = I(null), Be = I(null), Ve = I(null), He = I(0), Ue = I(0), We = I(!1), U = I(null), Ge = I(null), Ke = I(!1), qe = I(!1), Je = I(null), Xe = I(!1), ut = I(!1), W = I(null), dt = I({
655
+ }), V = I(f()), ze = I(0), H = I(null), Be = I(null), Ve = I(null), He = I(0), Ue = I(0), We = I(!1), Ge = I(null), Ke = I(null), qe = I(!1), Je = I(!1), Ye = I(null), U = I(null), ut = I({
656
656
  x: 0,
657
657
  y: 0
658
- }), ft = I("pointer"), pt = I(!1), G = I(Ct());
658
+ }), dt = I("pointer"), ft = I(!1), W = I(St());
659
659
  g({
660
- config: () => G.value,
660
+ config: () => W.value,
661
661
  dataset: () => B.dataset,
662
662
  component: "VueUiWordCloud",
663
663
  rules: [_.noHint]
664
664
  });
665
- let K = D(() => G.value.userOptions.useCursorPointer), mt = D(() => i({
665
+ let G = D(() => W.value.userOptions.useCursorPointer), pt = D(() => i({
666
666
  defaultConfig: {
667
667
  userOptions: { show: !1 },
668
668
  table: { show: !1 },
@@ -679,14 +679,14 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
679
679
  }
680
680
  } }
681
681
  },
682
- userConfig: G.value.skeletonConfig ?? {}
683
- })), { loading: ht, FINAL_DATASET: gt, manualLoading: _t } = ee({
682
+ userConfig: W.value.skeletonConfig ?? {}
683
+ })), { loading: mt, FINAL_DATASET: ht, manualLoading: gt } = ee({
684
684
  ...Ce(B),
685
- FINAL_CONFIG: G,
686
- prepareConfig: Ct,
685
+ FINAL_CONFIG: W,
686
+ prepareConfig: St,
687
687
  callback: () => {
688
688
  Promise.resolve().then(() => {
689
- X.value.showTable = G.value.table.show, X.value.showTooltip = G.value.style.chart.tooltip.show, X.value.showZoom = G.value.style.chart.zoom.show;
689
+ Y.value.showTable = W.value.table.show, Y.value.showTooltip = W.value.style.chart.tooltip.show, Y.value.showZoom = W.value.style.chart.zoom.show;
690
690
  });
691
691
  },
692
692
  skeletonDataset: B.config?.skeletonDataset ?? [
@@ -884,28 +884,28 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
884
884
  }
885
885
  ],
886
886
  skeletonConfig: i({
887
- defaultConfig: G.value,
888
- userConfig: mt.value
887
+ defaultConfig: W.value,
888
+ userConfig: pt.value
889
889
  })
890
- }), vt = I(yt());
891
- function yt() {
892
- return typeof gt.value == "string" ? r(gt.value) : gt.value.map((e, t) => ({
890
+ }), _t = I(vt());
891
+ function vt() {
892
+ return typeof ht.value == "string" ? r(ht.value) : ht.value.map((e, t) => ({
893
893
  ...e,
894
894
  value: l(e.value)
895
895
  }));
896
896
  }
897
- let { userOptionsVisible: bt, setUserOptionsVisibility: xt, keepUserOptionState: St } = E({ config: G.value }), { svgRef: q } = ae({ config: G.value.style.chart.title });
898
- function Ct() {
899
- let e = x({
897
+ let { userOptionsVisible: yt, setUserOptionsVisibility: bt, keepUserOptionState: xt } = E({ config: W.value }), { svgRef: K } = ae({ config: W.value.style.chart.title });
898
+ function St() {
899
+ let e = b({
900
900
  userConfig: B.config,
901
901
  defaultConfig: Pe
902
902
  }), t = e.theme;
903
903
  if (!t) return e;
904
904
  if (!Fe.value(e)) return Ie(e), e;
905
- let n = x({
905
+ let n = b({
906
906
  userConfig: se[t] || B.config,
907
907
  defaultConfig: e
908
- }), r = x({
908
+ }), r = b({
909
909
  userConfig: B.config,
910
910
  defaultConfig: n
911
911
  });
@@ -914,57 +914,57 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
914
914
  customPalette: r.customPalette.length ? r.customPalette : a[t] || o
915
915
  };
916
916
  }
917
- let wt = I({
917
+ let Ct = I({
918
918
  x: 0,
919
919
  y: 0
920
920
  });
921
- function Tt() {
921
+ function wt() {
922
922
  let e = {
923
923
  x: 0,
924
924
  y: 0,
925
- width: Math.max(10, J.value.width),
926
- height: Math.max(10, J.value.height)
925
+ width: Math.max(10, q.value.width),
926
+ height: Math.max(10, q.value.height)
927
927
  };
928
- en(e), wt.value = {
928
+ Qt(e), Ct.value = {
929
929
  x: e.x + e.width / 2,
930
930
  y: e.y + e.height / 2
931
- }, Qt();
931
+ }, Xt();
932
932
  }
933
- let Et = ne(() => {
934
- zt();
935
- }, 100), Dt = I(!1);
936
- we(() => Dt.value, (e) => {
937
- e === !1 && (qe.value = !0, Et(), Tt());
933
+ let Tt = ne(() => {
934
+ Rt();
935
+ }, 100), Et = I(!1);
936
+ we(() => Et.value, (e) => {
937
+ e === !1 && (Je.value = !0, Tt(), wt());
938
938
  }), we(() => B.config, (e) => {
939
- G.value = Ct(), bt.value = !G.value.userOptions.showOnChartHover, Mt(), He.value += 1, Ue.value += 1, X.value.showTable = G.value.table.show, X.value.showTooltip = G.value.style.chart.tooltip.show, X.value.showZoom = G.value.style.chart.zoom.show;
939
+ W.value = St(), yt.value = !W.value.userOptions.showOnChartHover, jt(), He.value += 1, Ue.value += 1, Y.value.showTable = W.value.table.show, Y.value.showTooltip = W.value.style.chart.tooltip.show, Y.value.showZoom = W.value.style.chart.zoom.show;
940
940
  }, { deep: !0 });
941
- let J = I({
942
- width: G.value.style.chart.width,
943
- height: G.value.style.chart.height,
944
- maxFontSize: G.value.style.chart.words.maxFontSize,
945
- minFontSize: G.value.style.chart.words.minFontSize,
946
- bold: G.value.style.chart.words.bold
947
- }), Ot = ne(() => {
941
+ let q = I({
942
+ width: W.value.style.chart.width,
943
+ height: W.value.style.chart.height,
944
+ maxFontSize: W.value.style.chart.words.maxFontSize,
945
+ minFontSize: W.value.style.chart.words.minFontSize,
946
+ bold: W.value.style.chart.words.bold
947
+ }), Dt = ne(() => {
948
948
  let { width: e, height: t } = re({
949
949
  chart: H.value,
950
- title: G.value.style.chart.title.text ? Be.value : null,
951
- legend: G.value.style.chart.controls.show ? Je.value?.$el : null,
950
+ title: W.value.style.chart.title.text ? Be.value : null,
951
+ legend: W.value.style.chart.controls.show ? Ye.value?.$el : null,
952
952
  source: Ve.value
953
953
  });
954
954
  requestAnimationFrame(async () => {
955
- J.value.width = Math.max(10, e), J.value.height = Math.max(10, t - 12), await me(), Dt.value = !1;
955
+ q.value.width = Math.max(10, e), q.value.height = Math.max(10, t - 12), await me(), Et.value = !1;
956
956
  });
957
- }, 100), kt = () => {
958
- Dt.value = !0, Ot();
959
- }, Y = xe(null), At = xe(null);
960
- ve(Mt);
961
- let jt = D(() => !!G.value.debug);
962
- function Mt() {
957
+ }, 100), Ot = () => {
958
+ Et.value = !0, Dt();
959
+ }, J = xe(null), kt = xe(null);
960
+ ve(jt);
961
+ let At = D(() => W.value.debug);
962
+ function jt() {
963
963
  u(B.dataset) ? m({
964
964
  componentName: "VueUiWordCloud",
965
965
  type: "dataset",
966
- debug: jt.value
967
- }) : vt.value.forEach((e, t) => {
966
+ debug: At.value
967
+ }) : _t.value.forEach((e, t) => {
968
968
  d({
969
969
  datasetObject: e,
970
970
  requiredAttributes: ["name", "value"]
@@ -974,96 +974,96 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
974
974
  type: "datasetSerieAttribute",
975
975
  property: e,
976
976
  index: t,
977
- debug: jt.value
977
+ debug: At.value
978
978
  });
979
979
  });
980
- }), u(B.dataset) || (_t.value = G.value.loading), G.value.responsive && (Y.value && (At.value && Y.value.unobserve(At.value), Y.value.disconnect()), Y.value = new ResizeObserver(kt), At.value = H.value.parentNode, Y.value.observe(At.value)), Tt();
980
+ }), u(B.dataset) || (gt.value = W.value.loading), W.value.responsive && (J.value && (kt.value && J.value.unobserve(kt.value), J.value.disconnect()), J.value = new ResizeObserver(Ot), kt.value = H.value.parentNode, J.value.observe(kt.value)), wt();
981
981
  }
982
982
  _e(() => {
983
- Y.value && (At.value && Y.value.unobserve(At.value), Y.value.disconnect());
983
+ J.value && (kt.value && J.value.unobserve(kt.value), J.value.disconnect());
984
984
  });
985
- let { isPrinting: Nt, isImaging: Pt, generatePdf: Ft, generateImage: It } = y({
985
+ let { isPrinting: Mt, isImaging: Nt, generatePdf: Pt, generateImage: Ft } = y({
986
986
  elementId: `wordCloud_${V.value}`,
987
- fileName: G.value.style.chart.title.text || "vue-ui-word-cloud",
988
- options: G.value.userOptions.print
989
- }), X = I({
990
- showTable: G.value.table.show,
991
- showTooltip: G.value.style.chart.tooltip.show,
992
- showZoom: G.value.style.chart.zoom.show
987
+ fileName: W.value.style.chart.title.text || "vue-ui-word-cloud",
988
+ options: W.value.userOptions.print
989
+ }), Y = I({
990
+ showTable: W.value.table.show,
991
+ showTooltip: W.value.style.chart.tooltip.show,
992
+ showZoom: W.value.style.chart.zoom.show
993
993
  });
994
- we(G, () => {
995
- X.value.showTable = G.value.table.show, X.value.showTooltip = G.value.style.chart.tooltip.show, X.value.showZoom = G.value.style.chart.zoom.show;
994
+ we(W, () => {
995
+ Y.value.showTable = W.value.table.show, Y.value.showTooltip = W.value.style.chart.tooltip.show, Y.value.showZoom = W.value.style.chart.zoom.show;
996
996
  }, { immediate: !0 });
997
- function Lt(e, t, n = "Arial") {
997
+ function It(e, t, n = "Arial") {
998
998
  let r = document.createElement("canvas").getContext("2d");
999
- return r.font = `${t}px ${G.value.style.chart.words.bold ? "bold" : "normal"} ${n}`, {
1000
- width: r.measureText(e).width + G.value.style.chart.words.proximity,
999
+ return r.font = `${t}px ${W.value.style.chart.words.bold ? "bold" : "normal"} ${n}`, {
1000
+ width: r.measureText(e).width + W.value.style.chart.words.proximity,
1001
1001
  height: t
1002
1002
  };
1003
1003
  }
1004
- let Z = I([]), Rt = /* @__PURE__ */ new Map();
1005
- function zt() {
1006
- let e = [...vt.value].map((e) => e.value), t = Math.max(...e), n = Math.min(...e), r = [...vt.value].map((e, r) => {
1007
- let i = (e.value - n) / (t - n) * (J.value.maxFontSize - J.value.minFontSize) + J.value.minFontSize;
1008
- i = isNaN(i) ? J.value.minFontSize : i;
1009
- let a = Lt(e.name, i);
1004
+ let X = I([]), Lt = /* @__PURE__ */ new Map();
1005
+ function Rt() {
1006
+ let e = [..._t.value].map((e) => e.value), t = Math.max(...e), n = Math.min(...e), r = [..._t.value].map((e, r) => {
1007
+ let i = (e.value - n) / (t - n) * (q.value.maxFontSize - q.value.minFontSize) + q.value.minFontSize;
1008
+ i = isNaN(i) ? q.value.minFontSize : i;
1009
+ let a = It(e.name, i);
1010
1010
  return {
1011
1011
  ...e,
1012
1012
  id: e.id ?? `${e.name}__${r}`,
1013
1013
  fontSize: i,
1014
1014
  width: a.width,
1015
1015
  height: a.height,
1016
- color: e.color ? s(e.color) : G.value.style.chart.words.usePalette ? G.value.customPalette[r] || G.value.customPalette[r % G.value.customPalette.length] || o[r] || o[r % o.length] : G.value.style.chart.words.color
1016
+ color: e.color ? s(e.color) : W.value.style.chart.words.usePalette ? W.value.customPalette[r] || W.value.customPalette[r % W.value.customPalette.length] || o[r] || o[r % o.length] : W.value.style.chart.words.color
1017
1017
  };
1018
1018
  });
1019
- Z.value.length = 0, Rt.clear(), Ye({
1020
- debugTiming: jt.value,
1019
+ X.value.length = 0, Lt.clear(), Xe({
1020
+ debugTiming: At.value,
1021
1021
  words: r,
1022
- svg: J.value,
1023
- proximity: G.value.style.chart.words.proximity,
1024
- strictPixelPadding: G.value.strictPixelPadding,
1025
- quality: G.value.quality,
1022
+ svg: q.value,
1023
+ proximity: W.value.style.chart.words.proximity,
1024
+ strictPixelPadding: W.value.strictPixelPadding,
1025
+ quality: W.value.quality,
1026
1026
  onProgress: ({ all: e }) => {
1027
1027
  for (let t of e) {
1028
- let e = t.id, n = Rt.get(e);
1029
- if (n === void 0) n = Z.value.length, Rt.set(e, n), Z.value.push({ ...t });
1028
+ let e = t.id, n = Lt.get(e);
1029
+ if (n === void 0) n = X.value.length, Lt.set(e, n), X.value.push({ ...t });
1030
1030
  else {
1031
- let e = Z.value[n];
1031
+ let e = X.value[n];
1032
1032
  e.x = t.x, e.y = t.y, e.width = t.width, e.height = t.height, e.fontSize = t.fontSize, e.minX = t.minX, e.minY = t.minY, e.maxX = t.maxX, e.maxY = t.maxY;
1033
1033
  }
1034
1034
  }
1035
1035
  }
1036
- }), Z.value.sort((e, t) => t.fontSize - e.fontSize), Rt.clear(), Z.value.forEach((e, t) => {
1037
- Rt.set(e.id, t);
1038
- }), Ke.value = !0, qe.value = !1;
1036
+ }), X.value.sort((e, t) => t.fontSize - e.fontSize), Lt.clear(), X.value.forEach((e, t) => {
1037
+ Lt.set(e.id, t);
1038
+ }), qe.value = !0, Je.value = !1;
1039
1039
  }
1040
- let Bt = D(() => ({
1041
- head: Z.value.map((e) => ({
1040
+ let zt = D(() => ({
1041
+ head: X.value.map((e) => ({
1042
1042
  name: e.name,
1043
1043
  color: e.color
1044
1044
  })),
1045
- body: Z.value.map((e) => e.value)
1045
+ body: X.value.map((e) => e.value)
1046
1046
  }));
1047
- function Vt(e = null) {
1047
+ function Bt(e = null) {
1048
1048
  me(() => {
1049
- let r = Bt.value.head.map((e, t) => [[e.name], [Bt.value.body[t]]]), i = n([
1050
- [G.value.style.chart.title.text],
1051
- [G.value.style.chart.title.subtitle.text],
1052
- [[""], [G.value.table.columnNames.value]]
1053
- ].concat(r));
1054
- e ? e(i) : t({
1055
- csvContent: i,
1056
- title: G.value.style.chart.title.text || "vue-ui-word-cloud"
1049
+ let r = zt.value.head.map((e, t) => [[e.name], [zt.value.body[t]]]), i = [
1050
+ [W.value.style.chart.title.text],
1051
+ [W.value.style.chart.title.subtitle.text],
1052
+ [[""], [W.value.table.columnNames.value]]
1053
+ ].concat(r), a = n(i);
1054
+ e ? e(a) : t({
1055
+ csvContent: a,
1056
+ title: W.value.style.chart.title.text || "vue-ui-word-cloud"
1057
1057
  });
1058
1058
  });
1059
1059
  }
1060
- let Ht = D(() => {
1061
- let e = [G.value.table.columnNames.series, G.value.table.columnNames.value], t = Bt.value.head.map((e, t) => {
1060
+ let Z = D(() => {
1061
+ let e = [W.value.table.columnNames.series, W.value.table.columnNames.value], t = zt.value.head.map((e, t) => {
1062
1062
  let n = c({
1063
- p: G.value.table.td.prefix,
1064
- v: Bt.value.body[t],
1065
- s: G.value.table.td.suffix,
1066
- r: G.value.table.td.roundingValue
1063
+ p: W.value.table.td.prefix,
1064
+ v: zt.value.body[t],
1065
+ s: W.value.table.td.suffix,
1066
+ r: W.value.table.td.roundingValue
1067
1067
  });
1068
1068
  return [{
1069
1069
  color: e.color,
@@ -1071,54 +1071,54 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1071
1071
  }, n];
1072
1072
  }), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
1073
1073
  th: {
1074
- backgroundColor: G.value.table.th.backgroundColor,
1075
- color: G.value.table.th.color,
1076
- outline: G.value.table.th.outline
1074
+ backgroundColor: W.value.table.th.backgroundColor,
1075
+ color: W.value.table.th.color,
1076
+ outline: W.value.table.th.outline
1077
1077
  },
1078
1078
  td: {
1079
- backgroundColor: G.value.table.td.backgroundColor,
1080
- color: G.value.table.td.color,
1081
- outline: G.value.table.td.outline
1079
+ backgroundColor: W.value.table.td.backgroundColor,
1080
+ color: W.value.table.td.color,
1081
+ outline: W.value.table.td.outline
1082
1082
  },
1083
- breakpoint: G.value.table.responsiveBreakpoint
1083
+ breakpoint: W.value.table.responsiveBreakpoint
1084
1084
  };
1085
1085
  return {
1086
- colNames: [G.value.table.columnNames.series, G.value.table.columnNames.value],
1086
+ colNames: [W.value.table.columnNames.series, W.value.table.columnNames.value],
1087
1087
  head: e,
1088
1088
  body: t,
1089
1089
  a11yBody: n,
1090
1090
  config: r
1091
1091
  };
1092
1092
  }), Q = I(!1);
1093
- function Ut(e) {
1093
+ function Vt(e) {
1094
1094
  Q.value = e, ze.value += 1;
1095
1095
  }
1096
- function Wt() {
1097
- return Z.value;
1096
+ function Ht() {
1097
+ return X.value;
1098
1098
  }
1099
- function Gt() {
1100
- X.value.showTable = !X.value.showTable;
1099
+ function Ut() {
1100
+ Y.value.showTable = !Y.value.showTable;
1101
1101
  }
1102
- function Kt() {
1103
- X.value.showTooltip = !X.value.showTooltip;
1102
+ function Wt() {
1103
+ Y.value.showTooltip = !Y.value.showTooltip;
1104
1104
  }
1105
- let qt = I(!1);
1106
- function Jt() {
1107
- qt.value = !qt.value;
1105
+ let Gt = I(!1);
1106
+ function Kt() {
1107
+ Gt.value = !Gt.value;
1108
1108
  }
1109
- function Yt() {
1110
- X.value.showZoom = !X.value.showZoom;
1109
+ function qt() {
1110
+ Y.value.showZoom = !Y.value.showZoom;
1111
1111
  }
1112
- let Xt = D(() => !qt.value && X.value.showZoom), { viewBox: Zt, resetZoom: Qt, isZoom: $t, setInitialViewBox: en, zoomByFactor: tn, scale: nn } = oe(q, {
1112
+ let Jt = D(() => !Gt.value && Y.value.showZoom), { viewBox: Yt, resetZoom: Xt, isZoom: Zt, setInitialViewBox: Qt, zoomByFactor: $t, scale: en } = oe(K, {
1113
1113
  x: 0,
1114
1114
  y: 0,
1115
- width: J.value.width <= 0 ? 10 : J.value.width,
1116
- height: J.value.height <= 0 ? 10 : J.value.height
1117
- }, 1, Xt);
1115
+ width: q.value.width <= 0 ? 10 : q.value.width,
1116
+ height: q.value.height <= 0 ? 10 : q.value.height
1117
+ }, 1, Jt);
1118
1118
  we(() => B.dataset, () => {
1119
- vt.value = yt(), G.value.responsive || (zt(), Tt());
1119
+ _t.value = vt(), W.value.responsive || (Rt(), wt());
1120
1120
  }, { immediate: !0 });
1121
- async function rn({ scale: e = 2 } = {}) {
1121
+ async function tn({ scale: e = 2 } = {}) {
1122
1122
  if (!H.value) return;
1123
1123
  let { width: t, height: n } = H.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await C({
1124
1124
  domElement: H.value,
@@ -1129,222 +1129,199 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1129
1129
  return {
1130
1130
  imageUri: i,
1131
1131
  base64: a,
1132
- title: G.value.style.chart.title.text,
1132
+ title: W.value.style.chart.title.text,
1133
1133
  width: t,
1134
1134
  height: n,
1135
1135
  aspectRatio: r
1136
1136
  };
1137
1137
  }
1138
- let an = D(() => {
1139
- let e = G.value.table.useDialog && !G.value.table.show, t = X.value.showTable;
1138
+ let nn = D(() => {
1139
+ let e = W.value.table.useDialog && !W.value.table.show, t = Y.value.showTable;
1140
1140
  return {
1141
1141
  component: e ? Ne : Oe,
1142
- title: `${G.value.style.chart.title.text}${G.value.style.chart.title.subtitle.text ? `: ${G.value.style.chart.title.subtitle.text}` : ""}`,
1142
+ title: `${W.value.style.chart.title.text}${W.value.style.chart.title.subtitle.text ? `: ${W.value.style.chart.title.subtitle.text}` : ""}`,
1143
1143
  props: e ? {
1144
- backgroundColor: G.value.table.th.backgroundColor,
1145
- color: G.value.table.th.color,
1146
- headerColor: G.value.table.th.color,
1147
- headerBg: G.value.table.th.backgroundColor,
1144
+ backgroundColor: W.value.table.th.backgroundColor,
1145
+ color: W.value.table.th.color,
1146
+ headerColor: W.value.table.th.color,
1147
+ headerBg: W.value.table.th.backgroundColor,
1148
1148
  isFullscreen: Q.value,
1149
1149
  fullscreenParent: H.value,
1150
1150
  forcedWidth: Math.min(500, window.innerWidth * .8),
1151
- isCursorPointer: K.value
1151
+ isCursorPointer: G.value
1152
1152
  } : {
1153
1153
  hideDetails: !0,
1154
1154
  config: {
1155
1155
  open: t,
1156
1156
  maxHeight: 1e4,
1157
1157
  body: {
1158
- backgroundColor: G.value.style.chart.backgroundColor,
1159
- color: G.value.style.chart.color
1158
+ backgroundColor: W.value.style.chart.backgroundColor,
1159
+ color: W.value.style.chart.color
1160
1160
  },
1161
1161
  head: {
1162
- backgroundColor: G.value.style.chart.backgroundColor,
1163
- color: G.value.style.chart.color
1162
+ backgroundColor: W.value.style.chart.backgroundColor,
1163
+ color: W.value.style.chart.color
1164
1164
  }
1165
1165
  }
1166
1166
  }
1167
1167
  };
1168
1168
  });
1169
- we(() => X.value.showTable, (e) => {
1170
- G.value.table.show || (e && G.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
1169
+ we(() => Y.value.showTable, (e) => {
1170
+ W.value.table.show || (e && W.value.table.useDialog && Ge.value ? Ge.value.open() : "close" in Ge.value && Ge.value.close());
1171
1171
  });
1172
- function on() {
1173
- X.value.showTable = !1, Ge.value && Ge.value.setTableIconState(!1);
1172
+ function rn() {
1173
+ Y.value.showTable = !1, Ke.value && Ke.value.setTableIconState(!1);
1174
1174
  }
1175
- let sn = D(() => G.value.style.chart.backgroundColor), { exportSvg: cn, getSvg: ln } = b({
1176
- svg: q,
1177
- title: D(() => G.value.style.chart.title),
1178
- backgroundColor: sn
1175
+ let an = D(() => W.value.style.chart.backgroundColor), on = D(() => W.value.style.chart.title), { isCallbackImaging: sn, isCallbackSvg: cn, generateSvg: ln, onGenerateImage: un } = S({
1176
+ svg: K,
1177
+ title: on,
1178
+ legend: null,
1179
+ legendItems: null,
1180
+ backgroundColor: an,
1181
+ getSvgCallback: () => W.value.userOptions.callbacks.svg,
1182
+ generateImage: Ft
1179
1183
  });
1180
- async function un({ isCb: e }) {
1181
- ut.value = !0, await me();
1182
- try {
1183
- if (e) {
1184
- let { blob: e, url: t, text: n, dataUrl: r } = await ln();
1185
- await Promise.resolve(G.value.userOptions.callbacks.svg({
1186
- blob: e,
1187
- url: t,
1188
- text: n,
1189
- dataUrl: r
1190
- }));
1191
- } else await Promise.resolve(cn());
1192
- } finally {
1193
- ut.value = !1;
1194
- }
1195
- }
1196
- function dn(e) {
1197
- if (e?.stage === "start") {
1198
- Xe.value = !0;
1199
- return;
1200
- }
1201
- if (e?.stage === "end") {
1202
- Xe.value = !1;
1203
- return;
1204
- }
1205
- It();
1184
+ function dn() {
1185
+ $t(1.5, !0);
1206
1186
  }
1207
1187
  function fn() {
1208
- tn(1.5, !0);
1209
- }
1210
- function pn() {
1211
- tn(1 / 1.5, !0);
1188
+ $t(1 / 1.5, !0);
1212
1189
  }
1213
- let $ = I(null), mn = I(!1), hn = I(""), gn = I(null);
1214
- function _n() {
1215
- $.value = null, W.value = null, We.value = !1;
1190
+ let $ = I(null), pn = I(!1), mn = I(""), hn = I(null);
1191
+ function gn() {
1192
+ $.value = null, U.value = null, We.value = !1;
1216
1193
  }
1217
- function vn(e, t) {
1218
- G.value.events.datapointLeave && G.value.events.datapointLeave({
1194
+ function _n(e, t) {
1195
+ W.value.events.datapointLeave && W.value.events.datapointLeave({
1219
1196
  datapoint: e,
1220
1197
  seriesIndex: t
1221
- }), !(W.value === t && ft.value === "keyboard") && ($.value = null, We.value = !1);
1198
+ }), (U.value !== t || dt.value !== "keyboard") && ($.value = null, We.value = !1);
1222
1199
  }
1223
- function yn(e, t) {
1224
- G.value.events.datapointClick && G.value.events.datapointClick({
1200
+ function vn(e, t) {
1201
+ W.value.events.datapointClick && W.value.events.datapointClick({
1225
1202
  datapoint: e,
1226
1203
  seriesIndex: t
1227
1204
  });
1228
1205
  }
1229
- function bn(e) {
1230
- if (!q.value || e == null) return;
1231
- let t = q.value.querySelector(`[data-a11y-word-index="${e}-${V.value}"]`);
1206
+ function yn(e) {
1207
+ if (!K.value || e == null) return;
1208
+ let t = K.value.querySelector(`[data-a11y-word-index="${e}-${V.value}"]`);
1232
1209
  if (!t) return;
1233
1210
  let n = t.getBoundingClientRect();
1234
- dt.value = {
1211
+ ut.value = {
1235
1212
  x: n.left + n.width / 2,
1236
1213
  y: n.top + n.height / 2
1237
1214
  };
1238
1215
  }
1239
- function xn(e, t, n = "pointer") {
1240
- if (G.value.events.datapointEnter && G.value.events.datapointEnter({
1216
+ function bn(e, t, n = "pointer") {
1217
+ if (W.value.events.datapointEnter && W.value.events.datapointEnter({
1241
1218
  datapoint: e,
1242
1219
  seriesIndex: t
1243
- }), !X.value.showTooltip) return;
1244
- ft.value = n, W.value = t, $.value = e.id, gn.value = {
1220
+ }), !Y.value.showTooltip) return;
1221
+ dt.value = n, U.value = t, $.value = e.id, hn.value = {
1245
1222
  datapoint: e,
1246
- config: G.value,
1223
+ config: W.value,
1247
1224
  seriesIndex: t
1248
1225
  };
1249
- let r = G.value.style.chart.tooltip.customFormat;
1250
- if (mn.value = !1, h(r)) try {
1226
+ let r = W.value.style.chart.tooltip.customFormat;
1227
+ if (pn.value = !1, h(r)) try {
1251
1228
  let t = r({
1252
1229
  datapoint: e,
1253
- config: G.value
1230
+ config: W.value
1254
1231
  });
1255
- typeof t == "string" && (hn.value = t, mn.value = !0);
1232
+ typeof t == "string" && (mn.value = t, pn.value = !0);
1256
1233
  } catch {
1257
- console.warn("Custom format cannot be applied."), mn.value = !1;
1234
+ console.warn("Custom format cannot be applied."), pn.value = !1;
1258
1235
  }
1259
- if (!mn.value) {
1260
- let t = `<svg viewBox="0 0 10 10" height="${G.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${e.color}"/></svg><span>${e.name}:</span><b>${(e.value || 0).toFixed(G.value.style.chart.tooltip.roundingValue)}</b>`;
1261
- hn.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${t}</div>`;
1236
+ if (!pn.value) {
1237
+ let t = `<svg viewBox="0 0 10 10" height="${W.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${e.color}"/></svg><span>${e.name}:</span><b>${(e.value || 0).toFixed(W.value.style.chart.tooltip.roundingValue)}</b>`;
1238
+ mn.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${t}</div>`;
1262
1239
  }
1263
1240
  n === "keyboard" && me(() => {
1264
- bn(t);
1241
+ yn(t);
1265
1242
  }), We.value = !0;
1266
1243
  }
1267
- async function Sn() {
1244
+ async function xn() {
1268
1245
  if (Le("copyAlt", {
1269
- config: G.value,
1270
- dataset: Z.value
1271
- }), !G.value.userOptions.callbacks.altCopy) {
1246
+ config: W.value,
1247
+ dataset: X.value
1248
+ }), !W.value.userOptions.callbacks.altCopy) {
1272
1249
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1273
1250
  return;
1274
1251
  }
1275
- await Promise.resolve(G.value.userOptions.callbacks.altCopy({
1276
- config: G.value,
1277
- dataset: Z.value
1252
+ await Promise.resolve(W.value.userOptions.callbacks.altCopy({
1253
+ config: W.value,
1254
+ dataset: X.value
1278
1255
  }));
1279
1256
  }
1280
- function Cn() {
1281
- W.value = null, pt.value = !0;
1257
+ function Sn() {
1258
+ U.value = null, ft.value = !0;
1282
1259
  }
1283
- function wn() {
1284
- _n(), pt.value = !1;
1260
+ function Cn() {
1261
+ gn(), ft.value = !1;
1285
1262
  }
1286
- function Tn(e) {
1287
- if (!q.value || qt.value || document.activeElement !== q.value || !Z.value.length) return;
1263
+ function wn(e) {
1264
+ if (!K.value || Gt.value || document.activeElement !== K.value || !X.value.length) return;
1288
1265
  let t = e.key === "ArrowLeft" || e.key === "ArrowUp", n = e.key === "ArrowRight" || e.key === "ArrowDown", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1289
1266
  if (!t && !n && !r && !i) return;
1290
1267
  if (e.preventDefault(), e.stopPropagation(), i) {
1291
- _n();
1268
+ gn();
1292
1269
  return;
1293
1270
  }
1294
1271
  if (r) {
1295
- if (W.value === null) return;
1296
- let e = Z.value[W.value];
1272
+ if (U.value === null) return;
1273
+ let e = X.value[U.value];
1297
1274
  if (!e) return;
1298
- yn(e, W.value);
1275
+ vn(e, U.value);
1299
1276
  return;
1300
1277
  }
1301
- let a = W.value;
1302
- a === null || a < 0 || a >= Z.value.length ? a = n ? 0 : Z.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = Z.value.length - 1), a >= Z.value.length && (a = 0));
1303
- let o = Z.value[a];
1304
- o && xn(o, a, "keyboard");
1278
+ let a = U.value;
1279
+ a === null || a < 0 || a >= X.value.length ? a = n ? 0 : X.value.length - 1 : (a += n ? 1 : -1, a < 0 && (a = X.value.length - 1), a >= X.value.length && (a = 0));
1280
+ let o = X.value[a];
1281
+ o && bn(o, a, "keyboard");
1305
1282
  }
1306
- let En = D(() => ({
1307
- headers: Ht.value?.colNames ?? [],
1308
- rows: Ht.value?.a11yBody ?? []
1283
+ let Tn = D(() => ({
1284
+ headers: Z.value?.colNames ?? [],
1285
+ rows: Z.value?.a11yBody ?? []
1309
1286
  }));
1310
1287
  return T({
1311
- getData: Wt,
1312
- getImage: rn,
1313
- generateCsv: Vt,
1314
- generatePdf: Ft,
1315
- generateImage: It,
1316
- generateSvg: un,
1317
- resetZoom: Qt,
1318
- toggleTable: Gt,
1319
- toggleTooltip: Kt,
1320
- toggleAnnotator: Jt,
1321
- toggleFullscreen: Ut,
1322
- toggleZoom: Yt,
1323
- copyAlt: Sn
1288
+ getData: Ht,
1289
+ getImage: tn,
1290
+ generateCsv: Bt,
1291
+ generatePdf: Pt,
1292
+ generateImage: Ft,
1293
+ generateSvg: ln,
1294
+ resetZoom: Xt,
1295
+ toggleTable: Ut,
1296
+ toggleTooltip: Wt,
1297
+ toggleAnnotator: Kt,
1298
+ toggleFullscreen: Vt,
1299
+ toggleZoom: qt,
1300
+ copyAlt: xn
1324
1301
  }), (e, t) => (F(), A("div", {
1325
1302
  class: "vue-data-ui-component vue-ui-word-cloud",
1326
1303
  ref_key: "wordCloudChart",
1327
1304
  ref: H,
1328
1305
  id: `wordCloud_${V.value}`,
1329
- "data-resizing": Dt.value,
1330
- "data-relayout": qe.value,
1331
- style: ge(`width: 100%; font-family:${G.value.style.fontFamily};background:${G.value.style.chart.backgroundColor};${G.value.responsive ? "height:100%" : ""}`),
1332
- onMouseenter: t[3] ||= () => R(xt)(!0),
1306
+ "data-resizing": Et.value,
1307
+ "data-relayout": Je.value,
1308
+ style: ge(`width: 100%; font-family:${W.value.style.fontFamily};background:${W.value.style.chart.backgroundColor};${W.value.responsive ? "height:100%" : ""}`),
1309
+ onMouseenter: t[3] ||= () => R(bt)(!0),
1333
1310
  onMouseleave: t[4] ||= () => {
1334
- R(xt)(!1), pt.value || _n();
1311
+ R(bt)(!1), ft.value || gn();
1335
1312
  }
1336
1313
  }, [
1337
1314
  j("div", {
1338
1315
  id: `chart-instructions-${V.value}`,
1339
1316
  class: "sr-only"
1340
- }, [j("p", null, Se(G.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
1341
- En.value?.rows?.length ? (F(), O(ie, {
1317
+ }, [j("p", null, Se(W.value.a11y.translations.keyboardNavigation), 1)], 8, Qe),
1318
+ Tn.value?.rows?.length ? (F(), O(ie, {
1342
1319
  key: 0,
1343
1320
  uid: V.value,
1344
- head: En.value.headers,
1345
- body: En.value.rows,
1346
- notice: G.value.a11y.translations.tableAvailable,
1347
- caption: G.value.a11y.translations.tableCaption
1321
+ head: Tn.value.headers,
1322
+ body: Tn.value.rows,
1323
+ notice: W.value.a11y.translations.tableAvailable,
1324
+ caption: W.value.a11y.translations.tableCaption
1348
1325
  }, null, 8, [
1349
1326
  "uid",
1350
1327
  "head",
@@ -1352,14 +1329,14 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1352
1329
  "notice",
1353
1330
  "caption"
1354
1331
  ])) : k("", !0),
1355
- G.value.userOptions.buttons.annotator ? (F(), O(R(Ae), {
1332
+ W.value.userOptions.buttons.annotator ? (F(), O(R(Ae), {
1356
1333
  key: 1,
1357
- svgRef: R(q),
1358
- backgroundColor: G.value.style.chart.backgroundColor,
1359
- color: G.value.style.chart.color,
1360
- active: qt.value,
1361
- isCursorPointer: K.value,
1362
- onClose: Jt
1334
+ svgRef: R(K),
1335
+ backgroundColor: W.value.style.chart.backgroundColor,
1336
+ color: W.value.style.chart.color,
1337
+ active: Gt.value,
1338
+ isCursorPointer: G.value,
1339
+ onClose: Kt
1363
1340
  }, {
1364
1341
  "annotator-action-close": z(() => [L(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1365
1342
  "annotator-action-color": z(({ color: t }) => [L(e.$slots, "annotator-action-color", P(N({ color: t })), void 0, !0)]),
@@ -1375,7 +1352,7 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1375
1352
  "active",
1376
1353
  "isCursorPointer"
1377
1354
  ])) : k("", !0),
1378
- G.value.style.chart.title.text ? (F(), A("div", {
1355
+ W.value.style.chart.title.text ? (F(), A("div", {
1379
1356
  key: 2,
1380
1357
  ref_key: "chartTitle",
1381
1358
  ref: Be,
@@ -1383,51 +1360,51 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1383
1360
  }, [(F(), O(w, {
1384
1361
  key: `title_${He.value}`,
1385
1362
  config: {
1386
- title: { ...G.value.style.chart.title },
1387
- subtitle: { ...G.value.style.chart.title.subtitle }
1363
+ title: { ...W.value.style.chart.title },
1364
+ subtitle: { ...W.value.style.chart.title.subtitle }
1388
1365
  }
1389
1366
  }, null, 8, ["config"]))], 512)) : k("", !0),
1390
- G.value.userOptions.show && Re.value && (R(St) || R(bt)) ? (F(), O(R(je), {
1367
+ W.value.userOptions.show && Re.value && (R(xt) || R(yt)) ? (F(), O(R(je), {
1391
1368
  ref_key: "userOptionsRef",
1392
- ref: Ge,
1369
+ ref: Ke,
1393
1370
  key: `user_option_${ze.value}`,
1394
- backgroundColor: G.value.style.chart.backgroundColor,
1395
- color: G.value.style.chart.color,
1396
- isPrinting: R(Nt),
1397
- isImaging: R(Pt),
1371
+ backgroundColor: W.value.style.chart.backgroundColor,
1372
+ color: W.value.style.chart.color,
1373
+ isPrinting: R(Mt),
1374
+ isImaging: R(Nt),
1398
1375
  uid: V.value,
1399
- hasPdf: G.value.userOptions.buttons.pdf,
1400
- hasXls: G.value.userOptions.buttons.csv,
1401
- hasImg: G.value.userOptions.buttons.img,
1402
- hasSvg: G.value.userOptions.buttons.svg,
1403
- hasTable: G.value.userOptions.buttons.table,
1404
- hasFullscreen: G.value.userOptions.buttons.fullscreen,
1405
- hasAltCopy: G.value.userOptions.buttons.altCopy,
1376
+ hasPdf: W.value.userOptions.buttons.pdf,
1377
+ hasXls: W.value.userOptions.buttons.csv,
1378
+ hasImg: W.value.userOptions.buttons.img,
1379
+ hasSvg: W.value.userOptions.buttons.svg,
1380
+ hasTable: W.value.userOptions.buttons.table,
1381
+ hasFullscreen: W.value.userOptions.buttons.fullscreen,
1382
+ hasAltCopy: W.value.userOptions.buttons.altCopy,
1406
1383
  isFullscreen: Q.value,
1407
- titles: { ...G.value.userOptions.buttonTitles },
1384
+ titles: { ...W.value.userOptions.buttonTitles },
1408
1385
  chartElement: H.value,
1409
- position: G.value.userOptions.position,
1410
- hasTooltip: G.value.style.chart.tooltip.show && G.value.userOptions.buttons.tooltip,
1411
- isTooltip: X.value.showTooltip,
1412
- hasAnnotator: G.value.userOptions.buttons.annotator,
1413
- isAnnotation: qt.value,
1414
- callbacks: G.value.userOptions.callbacks,
1415
- printScale: G.value.userOptions.print.scale,
1416
- tableDialog: G.value.table.useDialog,
1417
- hasZoom: G.value.userOptions.buttons.zoom,
1418
- isZoom: X.value.showZoom,
1419
- isCursorPointer: K.value,
1420
- onToggleFullscreen: Ut,
1421
- onGeneratePdf: R(Ft),
1422
- onGenerateCsv: Vt,
1423
- onGenerateImage: dn,
1424
- onGenerateSvg: un,
1425
- onToggleTable: Gt,
1426
- onToggleTooltip: Kt,
1427
- onToggleAnnotator: Jt,
1428
- onToggleZoom: Yt,
1429
- onCopyAlt: Sn,
1430
- style: ge({ visibility: R(St) ? R(bt) ? "visible" : "hidden" : "visible" })
1386
+ position: W.value.userOptions.position,
1387
+ hasTooltip: W.value.style.chart.tooltip.show && W.value.userOptions.buttons.tooltip,
1388
+ isTooltip: Y.value.showTooltip,
1389
+ hasAnnotator: W.value.userOptions.buttons.annotator,
1390
+ isAnnotation: Gt.value,
1391
+ callbacks: W.value.userOptions.callbacks,
1392
+ printScale: W.value.userOptions.print.scale,
1393
+ tableDialog: W.value.table.useDialog,
1394
+ hasZoom: W.value.userOptions.buttons.zoom,
1395
+ isZoom: Y.value.showZoom,
1396
+ isCursorPointer: G.value,
1397
+ onToggleFullscreen: Vt,
1398
+ onGeneratePdf: R(Pt),
1399
+ onGenerateCsv: Bt,
1400
+ onGenerateImage: R(un),
1401
+ onGenerateSvg: R(ln),
1402
+ onToggleTable: Ut,
1403
+ onToggleTooltip: Wt,
1404
+ onToggleAnnotator: Kt,
1405
+ onToggleZoom: qt,
1406
+ onCopyAlt: xn,
1407
+ style: ge({ visibility: R(xt) ? R(yt) ? "visible" : "hidden" : "visible" })
1431
1408
  }, ue({ _: 2 }, [
1432
1409
  e.$slots.menuIcon ? {
1433
1410
  name: "menuIcon",
@@ -1506,18 +1483,18 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1506
1483
  fn: z(() => [L(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1507
1484
  key: "12"
1508
1485
  } : void 0
1509
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasTooltip.isTooltip.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.style".split("."))) : k("", !0),
1510
- G.value.style.chart.controls.position === "top" && G.value.style.chart.controls.show && !R(ht) ? (F(), O(ce, {
1486
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasTooltip.isTooltip.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.hasZoom.isZoom.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : k("", !0),
1487
+ W.value.style.chart.controls.position === "top" && W.value.style.chart.controls.show && !R(mt) ? (F(), O(ce, {
1511
1488
  key: 4,
1512
1489
  ref_key: "zoomControls",
1513
- ref: Je,
1514
- config: G.value,
1515
- scale: R(nn),
1490
+ ref: Ye,
1491
+ config: W.value,
1492
+ scale: R(en),
1516
1493
  isFullscreen: Q.value,
1517
- isCursorPointer: K.value,
1518
- onZoomIn: fn,
1519
- onZoomOut: pn,
1520
- onResetZoom: t[0] ||= (e) => R(Qt)(!0)
1494
+ isCursorPointer: G.value,
1495
+ onZoomIn: dn,
1496
+ onZoomOut: fn,
1497
+ onResetZoom: t[0] ||= (e) => R(Xt)(!0)
1521
1498
  }, null, 8, [
1522
1499
  "config",
1523
1500
  "scale",
@@ -1526,33 +1503,33 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1526
1503
  ])) : k("", !0),
1527
1504
  j("div", $e, [(F(), A("svg", {
1528
1505
  ref_key: "svgRef",
1529
- ref: q,
1506
+ ref: K,
1530
1507
  class: he({
1531
1508
  "vue-data-ui-fullscreen--on": Q.value,
1532
1509
  "vue-data-ui-fulscreen--off": !Q.value
1533
1510
  }),
1534
1511
  "aria-describedby": `chart-instructions-${V.value}`,
1535
1512
  xmlns: R(p),
1536
- viewBox: `${R(Zt).x} ${R(Zt).y} ${R(Zt).width} ${R(Zt).height}`,
1513
+ viewBox: `${R(Yt).x} ${R(Yt).y} ${R(Yt).width} ${R(Yt).height}`,
1537
1514
  style: "overflow:hidden;background:transparent;display:block",
1538
1515
  tabindex: "0",
1539
- onFocus: Cn,
1540
- onBlur: wn,
1541
- onKeydown: Tn
1516
+ onFocus: Sn,
1517
+ onBlur: Cn,
1518
+ onKeydown: wn
1542
1519
  }, [
1543
1520
  fe(R(Me)),
1544
1521
  e.$slots["chart-background"] ? (F(), A("foreignObject", {
1545
1522
  key: 0,
1546
1523
  x: 0,
1547
1524
  y: 0,
1548
- width: J.value.width <= 0 ? 10 : J.value.width,
1549
- height: J.value.height <= 0 ? 10 : J.value.height,
1525
+ width: q.value.width <= 0 ? 10 : q.value.width,
1526
+ height: q.value.height <= 0 ? 10 : q.value.height,
1550
1527
  style: { pointerEvents: "none" }
1551
1528
  }, [L(e.$slots, "chart-background", {}, void 0, !0)], 8, tt)) : k("", !0),
1552
1529
  j("g", {
1553
- transform: `translate(${wt.value.x}, ${wt.value.y})`,
1554
- class: he({ "wc-finalized": Ke.value })
1555
- }, [(F(!0), A(le, null, ye(Z.value, (e, t) => (F(), A("g", {
1530
+ transform: `translate(${Ct.value.x}, ${Ct.value.y})`,
1531
+ class: he({ "wc-finalized": qe.value })
1532
+ }, [(F(!0), A(le, null, ye(X.value, (e, t) => (F(), A("g", {
1556
1533
  key: e.id,
1557
1534
  class: "vue-ui-word-cloud-word",
1558
1535
  transform: `translate(${e.x}, ${e.y})`
@@ -1565,13 +1542,13 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1565
1542
  height: e.maxY - e.minY,
1566
1543
  fill: "transparent",
1567
1544
  "pointer-events": "visiblePainted",
1568
- "aria-label": `${e.name}: ${(e.value || 0).toFixed(G.value.style.chart.tooltip.roundingValue)}`,
1569
- onMouseover: (n) => xn(e, t),
1570
- onMouseleave: (n) => vn(e, t),
1571
- onClick: (n) => yn(e, t)
1545
+ "aria-label": `${e.name}: ${(e.value || 0).toFixed(W.value.style.chart.tooltip.roundingValue)}`,
1546
+ onMouseover: (n) => bn(e, t),
1547
+ onMouseleave: (n) => _n(e, t),
1548
+ onClick: (n) => vn(e, t)
1572
1549
  }, null, 40, it)), j("text", {
1573
1550
  fill: e.color,
1574
- "font-weight": G.value.style.chart.words.bold ? "bold" : "normal",
1551
+ "font-weight": W.value.style.chart.words.bold ? "bold" : "normal",
1575
1552
  x: 0,
1576
1553
  y: 0,
1577
1554
  "font-size": e.fontSize,
@@ -1579,37 +1556,37 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1579
1556
  "text-anchor": "middle",
1580
1557
  "dominant-baseline": "central",
1581
1558
  "paint-order": "stroke fill",
1582
- stroke: !$.value || $.value === e.id ? G.value.style.chart.words.selectedStroke : void 0,
1559
+ stroke: !$.value || $.value === e.id ? W.value.style.chart.words.selectedStroke : void 0,
1583
1560
  "stroke-width": e.height * .05,
1584
1561
  "stroke-linecap": "round",
1585
1562
  "stroke-linejoin": "round",
1586
1563
  style: ge(`
1587
1564
  pointer-events:none;
1588
- fill-opacity:${!$.value || $.value === e.id || !Ke.value ? 1 : G.value.style.chart.words.hoverOpacity} !important;
1565
+ fill-opacity:${!$.value || $.value === e.id || !qe.value ? 1 : W.value.style.chart.words.hoverOpacity} !important;
1589
1566
  `)
1590
1567
  }, Se(e.name), 13, at)], 8, rt))), 128))], 10, nt),
1591
1568
  L(e.$slots, "svg", { svg: {
1592
- ...J.value,
1593
- isPrintingImg: R(Nt) || R(Pt) || Xe.value,
1594
- isPrintingSvg: ut.value
1569
+ ...q.value,
1570
+ isPrintingImg: R(Mt) || R(Nt) || R(sn),
1571
+ isPrintingSvg: R(cn)
1595
1572
  } }, void 0, !0)
1596
1573
  ], 42, et)), e.$slots.hint ? (F(), A("div", ot, [L(e.$slots, "hint", P(N({
1597
- hint: G.value.a11y.translations.keyboardNavigation,
1598
- isVisible: pt.value
1574
+ hint: W.value.a11y.translations.keyboardNavigation,
1575
+ isVisible: ft.value
1599
1576
  })), void 0, !0)])) : k("", !0)]),
1600
- e.$slots.watermark ? (F(), A("div", st, [L(e.$slots, "watermark", P(N({ isPrinting: R(Nt) || R(Pt) || Xe.value || ut.value })), void 0, !0)])) : k("", !0),
1601
- R($t) ? (F(), A("div", ct, [L(e.$slots, "reset-action", { reset: R(Qt) }, void 0, !0)])) : k("", !0),
1602
- G.value.style.chart.controls.position === "bottom" && G.value.style.chart.controls.show && !R(ht) ? (F(), O(ce, {
1577
+ e.$slots.watermark ? (F(), A("div", st, [L(e.$slots, "watermark", P(N({ isPrinting: R(Mt) || R(Nt) || R(sn) || R(cn) })), void 0, !0)])) : k("", !0),
1578
+ R(Zt) ? (F(), A("div", ct, [L(e.$slots, "reset-action", { reset: R(Xt) }, void 0, !0)])) : k("", !0),
1579
+ W.value.style.chart.controls.position === "bottom" && W.value.style.chart.controls.show && !R(mt) ? (F(), O(ce, {
1603
1580
  key: 7,
1604
1581
  ref_key: "zoomControls",
1605
- ref: Je,
1606
- config: G.value,
1607
- scale: R(nn),
1582
+ ref: Ye,
1583
+ config: W.value,
1584
+ scale: R(en),
1608
1585
  isFullscreen: Q.value,
1609
- isCursorPointer: K.value,
1610
- onZoomIn: fn,
1611
- onZoomOut: pn,
1612
- onResetZoom: t[1] ||= (e) => R(Qt)(!0)
1586
+ isCursorPointer: G.value,
1587
+ onZoomIn: dn,
1588
+ onZoomOut: fn,
1589
+ onResetZoom: t[1] ||= (e) => R(Xt)(!0)
1613
1590
  }, null, 8, [
1614
1591
  "config",
1615
1592
  "scale",
@@ -1617,32 +1594,32 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1617
1594
  "isCursorPointer"
1618
1595
  ])) : k("", !0),
1619
1596
  fe(R(Ee), {
1620
- teleportTo: G.value.style.chart.tooltip.teleportTo,
1621
- show: X.value.showTooltip && We.value,
1622
- backgroundColor: G.value.style.chart.tooltip.backgroundColor,
1623
- color: G.value.style.chart.tooltip.color,
1624
- fontSize: G.value.style.chart.tooltip.fontSize,
1625
- borderRadius: G.value.style.chart.tooltip.borderRadius,
1626
- borderColor: G.value.style.chart.tooltip.borderColor,
1627
- borderWidth: G.value.style.chart.tooltip.borderWidth,
1628
- backgroundOpacity: G.value.style.chart.tooltip.backgroundOpacity,
1629
- position: G.value.style.chart.tooltip.position,
1630
- offsetX: G.value.style.chart.tooltip.offsetX,
1631
- offsetY: G.value.style.chart.tooltip.offsetY,
1597
+ teleportTo: W.value.style.chart.tooltip.teleportTo,
1598
+ show: Y.value.showTooltip && We.value,
1599
+ backgroundColor: W.value.style.chart.tooltip.backgroundColor,
1600
+ color: W.value.style.chart.tooltip.color,
1601
+ fontSize: W.value.style.chart.tooltip.fontSize,
1602
+ borderRadius: W.value.style.chart.tooltip.borderRadius,
1603
+ borderColor: W.value.style.chart.tooltip.borderColor,
1604
+ borderWidth: W.value.style.chart.tooltip.borderWidth,
1605
+ backgroundOpacity: W.value.style.chart.tooltip.backgroundOpacity,
1606
+ position: W.value.style.chart.tooltip.position,
1607
+ offsetX: W.value.style.chart.tooltip.offsetX,
1608
+ offsetY: W.value.style.chart.tooltip.offsetY,
1632
1609
  parent: H.value,
1633
- content: hn.value,
1634
- isCustom: mn.value,
1610
+ content: mn.value,
1611
+ isCustom: pn.value,
1635
1612
  isFullscreen: Q.value,
1636
- smooth: G.value.style.chart.tooltip.smooth,
1637
- backdropFilter: G.value.style.chart.tooltip.backdropFilter,
1638
- smoothForce: G.value.style.chart.tooltip.smoothForce,
1639
- smoothSnapThreshold: G.value.style.chart.tooltip.smoothSnapThreshold,
1640
- isA11yMode: ft.value === "keyboard",
1641
- a11yPosition: dt.value
1613
+ smooth: W.value.style.chart.tooltip.smooth,
1614
+ backdropFilter: W.value.style.chart.tooltip.backdropFilter,
1615
+ smoothForce: W.value.style.chart.tooltip.smoothForce,
1616
+ smoothSnapThreshold: W.value.style.chart.tooltip.smoothSnapThreshold,
1617
+ isA11yMode: dt.value === "keyboard",
1618
+ a11yPosition: ut.value
1642
1619
  }, {
1643
- "tooltip-before": z(() => [L(e.$slots, "tooltip-before", P(N({ ...gn.value })), void 0, !0)]),
1644
- tooltip: z(() => [L(e.$slots, "tooltip", P(N({ ...gn.value })), void 0, !0)]),
1645
- "tooltip-after": z(() => [L(e.$slots, "tooltip-after", P(N({ ...gn.value })), void 0, !0)]),
1620
+ "tooltip-before": z(() => [L(e.$slots, "tooltip-before", P(N({ ...hn.value })), void 0, !0)]),
1621
+ tooltip: z(() => [L(e.$slots, "tooltip", P(N({ ...hn.value })), void 0, !0)]),
1622
+ "tooltip-after": z(() => [L(e.$slots, "tooltip-after", P(N({ ...hn.value })), void 0, !0)]),
1646
1623
  _: 3
1647
1624
  }, 8, [
1648
1625
  "teleportTo",
@@ -1674,21 +1651,21 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1674
1651
  ref: Ve,
1675
1652
  dir: "auto"
1676
1653
  }, [L(e.$slots, "source", {}, void 0, !0)], 512)) : k("", !0),
1677
- Re.value && G.value.userOptions.buttons.table ? (F(), O(be(an.value.component), pe({ key: 9 }, an.value.props, {
1654
+ Re.value && W.value.userOptions.buttons.table ? (F(), O(be(nn.value.component), pe({ key: 9 }, nn.value.props, {
1678
1655
  ref_key: "tableUnit",
1679
- ref: U,
1680
- onClose: on
1656
+ ref: Ge,
1657
+ onClose: rn
1681
1658
  }), ue({
1682
1659
  content: z(() => [(F(), O(R(ke), {
1683
1660
  key: `table_${Ue.value}`,
1684
- colNames: Ht.value.colNames,
1685
- head: Ht.value.head,
1686
- body: Ht.value.body,
1687
- config: Ht.value.config,
1688
- title: G.value.table.useDialog ? "" : an.value.title,
1689
- withCloseButton: !G.value.table.useDialog,
1690
- isCursorPointer: K.value,
1691
- onClose: on
1661
+ colNames: Z.value.colNames,
1662
+ head: Z.value.head,
1663
+ body: Z.value.body,
1664
+ config: Z.value.config,
1665
+ title: W.value.table.useDialog ? "" : nn.value.title,
1666
+ withCloseButton: !W.value.table.useDialog,
1667
+ isCursorPointer: G.value,
1668
+ onClose: rn
1692
1669
  }, {
1693
1670
  th: z(({ th: e }) => [j("div", {
1694
1671
  innerHTML: e,
@@ -1709,26 +1686,26 @@ var Xe = /* @__PURE__ */ e({ default: () => ut }), Ze = [
1709
1686
  "isCursorPointer"
1710
1687
  ]))]),
1711
1688
  _: 2
1712
- }, [G.value.table.useDialog ? {
1689
+ }, [W.value.table.useDialog ? {
1713
1690
  name: "title",
1714
- fn: z(() => [de(Se(an.value.title), 1)]),
1691
+ fn: z(() => [de(Se(nn.value.title), 1)]),
1715
1692
  key: "0"
1716
- } : void 0, G.value.table.useDialog ? {
1693
+ } : void 0, W.value.table.useDialog ? {
1717
1694
  name: "actions",
1718
1695
  fn: z(() => [j("button", {
1719
1696
  tabindex: "0",
1720
1697
  class: "vue-ui-user-options-button",
1721
- onClick: t[2] ||= (e) => Vt(G.value.userOptions.callbacks.csv),
1722
- style: ge({ cursor: K.value ? "pointer" : "default" })
1698
+ onClick: t[2] ||= (e) => Bt(W.value.userOptions.callbacks.csv),
1699
+ style: ge({ cursor: G.value ? "pointer" : "default" })
1723
1700
  }, [fe(R(De), {
1724
1701
  name: "fileCsv",
1725
- stroke: an.value.props.color
1702
+ stroke: nn.value.props.color
1726
1703
  }, null, 8, ["stroke"])], 4)]),
1727
1704
  key: "1"
1728
1705
  } : void 0]), 1040)) : k("", !0),
1729
- L(e.$slots, "skeleton", {}, () => [R(ht) ? (F(), O(te, { key: 0 })) : k("", !0)], !0)
1706
+ L(e.$slots, "skeleton", {}, () => [R(mt) ? (F(), O(te, { key: 0 })) : k("", !0)], !0)
1730
1707
  ], 44, Ze));
1731
1708
  }
1732
- }, [["__scopeId", "data-v-67a99716"]]);
1709
+ }, [["__scopeId", "data-v-d55cdbfc"]]);
1733
1710
  //#endregion
1734
- export { Xe as n, ut as t };
1711
+ export { U as n, ut as t };