vue-data-ui 2.3.90 → 2.3.92

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 (188) hide show
  1. package/README.md +3 -2
  2. package/dist/{Arrow-C_Fnn6al.js → Arrow-16rQhq4i.js} +1 -1
  3. package/dist/{Arrow-D1pymKl6.cjs → Arrow-CdJD01md.cjs} +1 -1
  4. package/dist/{BaseIcon-BMfi5PnL.js → BaseIcon-CAmYNoaf.js} +1 -1
  5. package/dist/{BaseIcon-CnFXP_n9.cjs → BaseIcon-dYWMubrH.cjs} +1 -1
  6. package/dist/{DataTable-Cmbf3abv.js → DataTable-BXnbua0J.js} +2 -2
  7. package/dist/{DataTable-cOEA6Z37.cjs → DataTable-oa0Srfuc.cjs} +1 -1
  8. package/dist/{Legend-CCq0mNRg.js → Legend-Cr1hulgT.js} +1 -1
  9. package/dist/{Legend-XqP6-7Ac.cjs → Legend-Dhm9_peB.cjs} +1 -1
  10. package/dist/PackageVersion-BVZfgDqm.js +10 -0
  11. package/dist/PackageVersion-BkgJVmj1.cjs +1 -0
  12. package/dist/{Shape-BNocET8E.js → Shape-D75m5xWM.js} +1 -1
  13. package/dist/{Shape-B51JGReT.cjs → Shape-hGbEoQOv.cjs} +1 -1
  14. package/dist/{Slicer-Bc7OWCcl.cjs → Slicer-B7ya0m2Q.cjs} +1 -1
  15. package/dist/{Slicer-BKszZXjM.js → Slicer-Bx8AozB8.js} +2 -2
  16. package/dist/{Title-DlBwa3-X.js → Title-1Sw6EmHy.js} +1 -1
  17. package/dist/{Title-BaR4XyXa.cjs → Title-Bjrh7khe.cjs} +1 -1
  18. package/dist/{Tooltip-CX57w9Q9.cjs → Tooltip-CPATjuur.cjs} +1 -1
  19. package/dist/{Tooltip-w32n-8sY.js → Tooltip-EJf3VBPR.js} +1 -1
  20. package/dist/documentation/installation.md +1 -1
  21. package/dist/index-D09qCApg.cjs +4 -0
  22. package/dist/{index-DQl1TFXa.js → index-DhJby8wL.js} +8 -3
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +16 -0
  25. package/dist/types/vue-data-ui.d.ts +16 -0
  26. package/dist/{useNestedProp-DlCe_zZz.cjs → useNestedProp-Bwd7mK1Z.cjs} +1 -1
  27. package/dist/{useNestedProp-lmeFt-ev.js → useNestedProp-CrHvyupb.js} +1 -1
  28. package/dist/{usePrinter-DgKGVvJC.js → usePrinter-Bwm8J3RQ.js} +1 -1
  29. package/dist/{usePrinter-BmXrEJ99.cjs → usePrinter-DdsPm5a4.cjs} +1 -1
  30. package/dist/{vue-data-ui-Byrb_Y3k.js → vue-data-ui-CLxne31S.js} +57 -57
  31. package/dist/{vue-data-ui-DQurgvN8.cjs → vue-data-ui-ZitCqVgG.cjs} +1 -1
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/vue-ui-3d-bar-DAv5cYGJ.cjs +19 -0
  35. package/dist/{vue-ui-3d-bar-CM_usP2U.js → vue-ui-3d-bar-Dg87_AAm.js} +148 -146
  36. package/dist/{vue-ui-accordion-DRI-fN6I.cjs → vue-ui-accordion-BAHX7KzB.cjs} +1 -1
  37. package/dist/{vue-ui-accordion-CroZrm7T.js → vue-ui-accordion-Cn5Jbplg.js} +3 -3
  38. package/dist/vue-ui-age-pyramid-GzHwQzsH.cjs +1 -0
  39. package/dist/{vue-ui-age-pyramid-BZU-WI_a.js → vue-ui-age-pyramid-PlamQWqC.js} +83 -81
  40. package/dist/{vue-ui-annotator-BpzM25VY.cjs → vue-ui-annotator-DGgQwl-K.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-CsfYgmrC.js → vue-ui-annotator-Dd5KF_cy.js} +1 -1
  42. package/dist/vue-ui-candlestick-BIEB2J1w.cjs +2 -0
  43. package/dist/{vue-ui-candlestick-BPi7aBEf.js → vue-ui-candlestick-DTzwPhV5.js} +113 -111
  44. package/dist/{vue-ui-carousel-table-CpodLcgX.cjs → vue-ui-carousel-table-HNTf5AYY.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-tbviS8Fo.js → vue-ui-carousel-table-YEfvPESA.js} +4 -4
  46. package/dist/vue-ui-chestnut-DzjdAYsT.cjs +6 -0
  47. package/dist/{vue-ui-chestnut-ql9yEs6j.js → vue-ui-chestnut-PzMOM7mp.js} +161 -159
  48. package/dist/{vue-ui-cursor-B3w0SgJP.cjs → vue-ui-cursor-C5rsiCdn.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-Dw7_R_Pd.js → vue-ui-cursor-DWea2yXV.js} +2 -2
  50. package/dist/{vue-ui-dashboard-enrB5B3P.cjs → vue-ui-dashboard-BqXhoS8m.cjs} +1 -1
  51. package/dist/{vue-ui-dashboard-DAY0cdat.js → vue-ui-dashboard-CVespiTo.js} +2 -2
  52. package/dist/{vue-ui-digits-DN6CRpXc.js → vue-ui-digits-gNKgZqYU.js} +2 -2
  53. package/dist/{vue-ui-digits-3Q6uZCzD.cjs → vue-ui-digits-wmDN7Vkf.cjs} +1 -1
  54. package/dist/{vue-ui-donut-evolution-CzBvVRKG.js → vue-ui-donut-evolution-Ch6HH0ja.js} +102 -100
  55. package/dist/vue-ui-donut-evolution-DhDxLZ1J.cjs +1 -0
  56. package/dist/vue-ui-donut-n37BZPxr.cjs +1 -0
  57. package/dist/{vue-ui-donut-B3yDJvZI.js → vue-ui-donut-sQunZI1L.js} +118 -116
  58. package/dist/vue-ui-dumbbell-B9Z_pjnG.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-vQ5YRGwJ.js → vue-ui-dumbbell-lFlZX8Yi.js} +88 -86
  60. package/dist/vue-ui-flow-BaFpUJg-.cjs +1 -0
  61. package/dist/{vue-ui-flow-DAOKURA6.js → vue-ui-flow-CSIOC-JR.js} +65 -63
  62. package/dist/vue-ui-galaxy-BIR5GxIc.cjs +1 -0
  63. package/dist/{vue-ui-galaxy-B86BK1JM.js → vue-ui-galaxy-DL2mnel_.js} +82 -80
  64. package/dist/{vue-ui-gauge-n8TilFo9.js → vue-ui-gauge-BMq7KT3t.js} +56 -54
  65. package/dist/vue-ui-gauge-r_qvpwE7.cjs +1 -0
  66. package/dist/vue-ui-gizmo-DBas_Sw_.cjs +1 -0
  67. package/dist/{vue-ui-gizmo-CFIBlG4V.js → vue-ui-gizmo-Dj7zvNI1.js} +32 -30
  68. package/dist/{vue-ui-heatmap-ZkmD9EAg.js → vue-ui-heatmap-pqBYIrxm.js} +99 -97
  69. package/dist/vue-ui-heatmap-qPgEhAzc.cjs +1 -0
  70. package/dist/{vue-ui-kpi-D6Myg0y1.cjs → vue-ui-kpi-Cmo9J7wp.cjs} +1 -1
  71. package/dist/{vue-ui-kpi-CtJ3t6GX.js → vue-ui-kpi-ZPBinMiF.js} +3 -3
  72. package/dist/{vue-ui-mini-loader-BjJ_YYZj.cjs → vue-ui-mini-loader-Ce-jbgMT.cjs} +1 -1
  73. package/dist/{vue-ui-mini-loader-Cosy9XjR.js → vue-ui-mini-loader-DOTWhLi9.js} +2 -2
  74. package/dist/vue-ui-molecule-D429iwPP.cjs +1 -0
  75. package/dist/{vue-ui-molecule-DTFOBjgC.js → vue-ui-molecule-RDpgNrHQ.js} +77 -75
  76. package/dist/{vue-ui-mood-radar-J_dI9m_i.js → vue-ui-mood-radar-CD5L8WCU.js} +76 -74
  77. package/dist/vue-ui-mood-radar-CdLJxrkT.cjs +1 -0
  78. package/dist/{vue-ui-nested-donuts-CtqU4xxu.js → vue-ui-nested-donuts-A-tid5cQ.js} +112 -110
  79. package/dist/vue-ui-nested-donuts-DyM3uc7x.cjs +17 -0
  80. package/dist/vue-ui-onion-BKql8oal.cjs +5 -0
  81. package/dist/{vue-ui-onion-BMo0Ye54.js → vue-ui-onion-Cap01Ehu.js} +82 -80
  82. package/dist/vue-ui-parallel-coordinate-plot-B0zMgtnq.cjs +8 -0
  83. package/dist/{vue-ui-parallel-coordinate-plot-yKLZbDS5.js → vue-ui-parallel-coordinate-plot-CcDKe4L0.js} +91 -89
  84. package/dist/{vue-ui-quadrant-BrRasVaj.js → vue-ui-quadrant-BDEfAeyJ.js} +141 -139
  85. package/dist/vue-ui-quadrant-CZzdpeQ2.cjs +1 -0
  86. package/dist/{vue-ui-quick-chart-uH33UIjX.js → vue-ui-quick-chart-DlAUYg5u.js} +166 -164
  87. package/dist/vue-ui-quick-chart-DpGYUyhq.cjs +15 -0
  88. package/dist/{vue-ui-radar-BJ3qMHP4.js → vue-ui-radar-CbTln7gs.js} +89 -87
  89. package/dist/vue-ui-radar-oBeaHlpT.cjs +1 -0
  90. package/dist/{vue-ui-rating-BEWaQMBR.cjs → vue-ui-rating-BU7-F3_e.cjs} +1 -1
  91. package/dist/{vue-ui-rating-BFskhiyh.js → vue-ui-rating-BkDncqow.js} +2 -2
  92. package/dist/{vue-ui-relation-circle-DdK4qk0P.js → vue-ui-relation-circle-C5B6UNGd.js} +54 -52
  93. package/dist/vue-ui-relation-circle-IWiJWgcB.cjs +1 -0
  94. package/dist/{vue-ui-rings-BqHSq6Wt.js → vue-ui-rings-BujVUJ90.js} +97 -93
  95. package/dist/{vue-ui-rings-D_T_D6AS.cjs → vue-ui-rings-Df2cRgD8.cjs} +2 -2
  96. package/dist/{vue-ui-scatter-C0gfF6NJ.js → vue-ui-scatter-D6yqZJ7s.js} +132 -130
  97. package/dist/vue-ui-scatter-jFTeM2hW.cjs +1 -0
  98. package/dist/{vue-ui-screenshot-6tOLntj9.js → vue-ui-screenshot-CHAySwpv.js} +1 -1
  99. package/dist/{vue-ui-screenshot-CbvIYfYU.cjs → vue-ui-screenshot-CVu8IM33.cjs} +1 -1
  100. package/dist/{vue-ui-skeleton-BVJGmYjj.js → vue-ui-skeleton-ASX40MGk.js} +423 -388
  101. package/dist/vue-ui-skeleton-CAlTn_Cg.cjs +41 -0
  102. package/dist/{vue-ui-smiley-2EoxEmXW.js → vue-ui-smiley-DGVzhza2.js} +2 -2
  103. package/dist/{vue-ui-smiley-CUgH2tnV.cjs → vue-ui-smiley-dwCqhB0r.cjs} +1 -1
  104. package/dist/vue-ui-spark-trend-A1EHFK_r.cjs +1 -0
  105. package/dist/{vue-ui-spark-trend-DjNPMOkN.js → vue-ui-spark-trend-B7XhDvTj.js} +42 -40
  106. package/dist/{vue-ui-sparkbar-BBm3DE1P.js → vue-ui-sparkbar-BuNcvi66.js} +53 -51
  107. package/dist/vue-ui-sparkbar-CwNjHOjD.cjs +1 -0
  108. package/dist/vue-ui-sparkgauge-ISu154lS.cjs +1 -0
  109. package/dist/{vue-ui-sparkgauge-IIW24eJQ.js → vue-ui-sparkgauge-JY2kB9WX.js} +31 -29
  110. package/dist/vue-ui-sparkhistogram-C8zyC-ii.cjs +1 -0
  111. package/dist/{vue-ui-sparkhistogram-DVXxA6ji.js → vue-ui-sparkhistogram-DyEPWxkP.js} +69 -67
  112. package/dist/vue-ui-sparkline-DL3Thtc4.cjs +1 -0
  113. package/dist/{vue-ui-sparkline-CH89kcaa.js → vue-ui-sparkline-DYC3sdvQ.js} +65 -63
  114. package/dist/{vue-ui-sparkstackbar-Bcod5yu_.js → vue-ui-sparkstackbar-7TmtP3WR.js} +46 -44
  115. package/dist/vue-ui-sparkstackbar-ChIM9bn2.cjs +1 -0
  116. package/dist/{vue-ui-stackbar-Djjcgtyg.js → vue-ui-stackbar-CP5C6Gb_.js} +128 -126
  117. package/dist/vue-ui-stackbar-DrtiSaNc.cjs +6 -0
  118. package/dist/vue-ui-strip-plot-BMYMIHGu.cjs +1 -0
  119. package/dist/{vue-ui-strip-plot-ByPCQ4xk.js → vue-ui-strip-plot-DJQCq_KE.js} +78 -76
  120. package/dist/{vue-ui-table-B6Kpda3o.cjs → vue-ui-table-D6hvgMif.cjs} +1 -1
  121. package/dist/{vue-ui-table-D8Sm2fzX.js → vue-ui-table-IJi0xaVg.js} +1 -1
  122. package/dist/{vue-ui-table-heatmap-DjEN0l12.cjs → vue-ui-table-heatmap-BZNKXZNs.cjs} +1 -1
  123. package/dist/{vue-ui-table-heatmap-mlq_J56h.js → vue-ui-table-heatmap-Ls8_xq0D.js} +4 -4
  124. package/dist/{vue-ui-table-sparkline-DByva7rj.cjs → vue-ui-table-sparkline-BQFK30H1.cjs} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DF29_qZk.js → vue-ui-table-sparkline-BeuvdssX.js} +5 -5
  126. package/dist/vue-ui-thermometer-DKm8SXlE.cjs +1 -0
  127. package/dist/{vue-ui-thermometer-BKf-rGuS.js → vue-ui-thermometer-DPWIvG92.js} +80 -78
  128. package/dist/{vue-ui-timer-B8jW8M60.js → vue-ui-timer-CEzDvZf7.js} +62 -60
  129. package/dist/vue-ui-timer-n6lv7oTx.cjs +64 -0
  130. package/dist/vue-ui-tiremarks-B33mHXZN.cjs +1 -0
  131. package/dist/{vue-ui-tiremarks-riEfve5q.js → vue-ui-tiremarks-BUGoY22W.js} +51 -49
  132. package/dist/vue-ui-treemap-DPxBZUUr.cjs +1 -0
  133. package/dist/{vue-ui-treemap-5F0ynBnb.js → vue-ui-treemap-DmOYjJ_F.js} +93 -91
  134. package/dist/vue-ui-vertical-bar-BJMYX8t4.cjs +4 -0
  135. package/dist/{vue-ui-vertical-bar-CxRBvHZy.js → vue-ui-vertical-bar-BpVKdSY5.js} +110 -108
  136. package/dist/vue-ui-waffle-DGcueccy.cjs +1 -0
  137. package/dist/{vue-ui-waffle-B8G4i5WH.js → vue-ui-waffle-ULg6SwPx.js} +72 -70
  138. package/dist/vue-ui-wheel-CWKq-CFW.cjs +1 -0
  139. package/dist/{vue-ui-wheel-DmzkGeCY.js → vue-ui-wheel-DlmgZd-_.js} +43 -41
  140. package/dist/vue-ui-word-cloud-BhHWdmqP.cjs +1 -0
  141. package/dist/vue-ui-word-cloud-DWyboczt.js +574 -0
  142. package/dist/vue-ui-xy-Cz81fw_E.cjs +3 -0
  143. package/dist/{vue-ui-xy-iUQyB_PL.js → vue-ui-xy-V13Ns1gv.js} +507 -504
  144. package/dist/{vue-ui-xy-canvas-nraUv13Y.js → vue-ui-xy-canvas-B9cRe5gT.js} +10 -10
  145. package/dist/{vue-ui-xy-canvas-CCwtKYgd.cjs → vue-ui-xy-canvas-GiuHOyj5.cjs} +1 -1
  146. package/package.json +1 -1
  147. package/dist/index-B8EMsnjU.cjs +0 -4
  148. package/dist/vue-ui-3d-bar-Ce-Re50D.cjs +0 -19
  149. package/dist/vue-ui-age-pyramid-C08rTXJn.cjs +0 -1
  150. package/dist/vue-ui-candlestick-m8fjxbj-.cjs +0 -2
  151. package/dist/vue-ui-chestnut-Y0gQvbbf.cjs +0 -6
  152. package/dist/vue-ui-donut-CCm7GJsm.cjs +0 -1
  153. package/dist/vue-ui-donut-evolution-DiN8Jm0n.cjs +0 -1
  154. package/dist/vue-ui-dumbbell-lb72j7bY.cjs +0 -9
  155. package/dist/vue-ui-flow-B5Gxaqvl.cjs +0 -1
  156. package/dist/vue-ui-galaxy-Ck5cPkrh.cjs +0 -1
  157. package/dist/vue-ui-gauge-BwIhwSUw.cjs +0 -1
  158. package/dist/vue-ui-gizmo-DrGaoiM_.cjs +0 -1
  159. package/dist/vue-ui-heatmap-BLc6thGZ.cjs +0 -1
  160. package/dist/vue-ui-molecule-CAj1HFit.cjs +0 -1
  161. package/dist/vue-ui-mood-radar-CV2in2wO.cjs +0 -1
  162. package/dist/vue-ui-nested-donuts-4vO23n9z.cjs +0 -17
  163. package/dist/vue-ui-onion-B3mtn6xf.cjs +0 -5
  164. package/dist/vue-ui-parallel-coordinate-plot-DFMbhLY9.cjs +0 -8
  165. package/dist/vue-ui-quadrant-CpJX1Jwa.cjs +0 -1
  166. package/dist/vue-ui-quick-chart-CTxsI2tk.cjs +0 -15
  167. package/dist/vue-ui-radar-DFjsXmJ3.cjs +0 -1
  168. package/dist/vue-ui-relation-circle-DXuKdCih.cjs +0 -1
  169. package/dist/vue-ui-scatter-DPByFMNL.cjs +0 -1
  170. package/dist/vue-ui-skeleton-Bli7jLZ7.cjs +0 -41
  171. package/dist/vue-ui-spark-trend-sfgUJ32Q.cjs +0 -1
  172. package/dist/vue-ui-sparkbar-CKWYzriN.cjs +0 -1
  173. package/dist/vue-ui-sparkgauge-D0q9F9Nz.cjs +0 -1
  174. package/dist/vue-ui-sparkhistogram-CywhBkm2.cjs +0 -1
  175. package/dist/vue-ui-sparkline-Besp8Ffy.cjs +0 -1
  176. package/dist/vue-ui-sparkstackbar-qXm8Ozzm.cjs +0 -1
  177. package/dist/vue-ui-stackbar-D0fGVkCR.cjs +0 -6
  178. package/dist/vue-ui-strip-plot-XDj8rL9m.cjs +0 -1
  179. package/dist/vue-ui-thermometer-C3T56ras.cjs +0 -1
  180. package/dist/vue-ui-timer-B_ZvV1ON.cjs +0 -64
  181. package/dist/vue-ui-tiremarks-DRbSpTgq.cjs +0 -1
  182. package/dist/vue-ui-treemap-CtKUTs2G.cjs +0 -1
  183. package/dist/vue-ui-vertical-bar-BBIWdeXH.cjs +0 -4
  184. package/dist/vue-ui-waffle-9a3C4Nj-.cjs +0 -1
  185. package/dist/vue-ui-wheel-CErxlmqw.cjs +0 -1
  186. package/dist/vue-ui-word-cloud-dMBTVGVk.js +0 -513
  187. package/dist/vue-ui-word-cloud-nmx846H2.cjs +0 -1
  188. package/dist/vue-ui-xy-CLYgZk3Y.cjs +0 -3
@@ -0,0 +1,574 @@
1
+ import { useCssVars as Ae, computed as p, openBlock as u, createElementBlock as f, createVNode as Z, renderSlot as m, createElementVNode as x, normalizeStyle as ee, pushScopeId as We, popScopeId as Re, ref as n, watch as Q, onMounted as Be, onBeforeUnmount as De, createBlock as A, createCommentVNode as z, unref as $, createSlots as Ve, withCtx as h, normalizeProps as W, guardReactiveProps as R, normalizeClass as me, Fragment as Ee, renderList as Ue, toDisplayString as fe, createTextVNode as Ge, nextTick as pe } from "vue";
2
+ import { u as Le, Y as Xe, v as Ye, c as ge, t as je, a as qe, p as L, o as He, e as ye, g as Je, f as Ke, X as Qe, q as Ze, r as et, x as tt } from "./index-DhJby8wL.js";
3
+ import { _ as ot } from "./Title-1Sw6EmHy.js";
4
+ import { u as at, U as lt } from "./usePrinter-Bwm8J3RQ.js";
5
+ import { d as st, t as nt, u as rt } from "./useResponsive-NZB-WLRF.js";
6
+ import ut from "./vue-ui-accordion-Cn5Jbplg.js";
7
+ import { D as it } from "./DataTable-BXnbua0J.js";
8
+ import ct from "./BaseIcon-CAmYNoaf.js";
9
+ import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ import { u as be } from "./useNestedProp-CrHvyupb.js";
11
+ import { _ as dt } from "./PackageVersion-BVZfgDqm.js";
12
+ import { _ as vt } from "./Tooltip-EJf3VBPR.js";
13
+ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2canvas-ignore": "" }, ft = {
14
+ key: 0,
15
+ class: "reset-wrapper"
16
+ }, pt = {
17
+ key: 1,
18
+ class: "reset-wrapper"
19
+ }, gt = { class: "mono-slicer" }, yt = /* @__PURE__ */ ht(() => /* @__PURE__ */ x("div", { class: "slider-track" }, null, -1)), bt = ["min", "max", "value"], Ct = {
20
+ __name: "MonoSlicer",
21
+ props: {
22
+ min: {
23
+ type: Number,
24
+ default: 0
25
+ },
26
+ max: {
27
+ type: Number,
28
+ default: 0
29
+ },
30
+ inputColor: {
31
+ type: String,
32
+ default: "#1A1A1A"
33
+ },
34
+ background: {
35
+ type: String,
36
+ default: "#FFFFFF"
37
+ },
38
+ borderColor: {
39
+ type: String,
40
+ default: "#FFFFFF"
41
+ },
42
+ selectColor: {
43
+ type: String,
44
+ default: "#4A4A4A"
45
+ },
46
+ textColor: {
47
+ type: String,
48
+ default: "#1A1A1A"
49
+ },
50
+ useResetSlot: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
54
+ value: {
55
+ type: Number,
56
+ default: 0
57
+ },
58
+ source: {
59
+ type: Number,
60
+ default: 0
61
+ }
62
+ },
63
+ emits: ["update:value", "reset"],
64
+ setup(i, { emit: B }) {
65
+ const s = i;
66
+ Ae((w) => ({
67
+ "90ad3208": X.value,
68
+ "4f9eef70": P.value,
69
+ "6e07ae3e": b.value,
70
+ "2fd430a0": i.selectColor,
71
+ "6b8169a4": S.value
72
+ }));
73
+ const X = p(() => s.inputColor), S = p(() => s.background), b = p(() => `${s.selectColor}33`), P = p(() => s.borderColor);
74
+ function I() {
75
+ B("reset");
76
+ }
77
+ const C = p(() => {
78
+ const w = s.max - s.min, g = 0, T = (s.value - s.min) / w * 100;
79
+ return {
80
+ left: `${g}%`,
81
+ width: `${T - g}%`,
82
+ background: s.selectColor
83
+ };
84
+ });
85
+ return (w, g) => (u(), f("div", mt, [
86
+ i.value !== i.source ? (u(), f("div", ft, [
87
+ i.useResetSlot ? m(w.$slots, "reset-action", {
88
+ key: 1,
89
+ reset: I
90
+ }, void 0, !0) : (u(), f("button", {
91
+ key: 0,
92
+ "data-cy-reset": "",
93
+ tabindex: "0",
94
+ role: "button",
95
+ class: "vue-data-ui-refresh-button",
96
+ onClick: I
97
+ }, [
98
+ Z(ct, {
99
+ name: "refresh",
100
+ stroke: i.textColor
101
+ }, null, 8, ["stroke"])
102
+ ]))
103
+ ])) : (u(), f("div", pt)),
104
+ x("div", gt, [
105
+ yt,
106
+ x("div", {
107
+ class: "range-highlight",
108
+ style: ee(C.value)
109
+ }, null, 4),
110
+ x("input", {
111
+ type: "range",
112
+ min: i.min,
113
+ max: i.max,
114
+ value: Number(i.value),
115
+ onInput: g[0] || (g[0] = (T) => B("update:value", Number(T.target.value)))
116
+ }, null, 40, bt)
117
+ ])
118
+ ]));
119
+ }
120
+ }, wt = /* @__PURE__ */ Ce(Ct, [["__scopeId", "data-v-3fd7d274"]]), kt = ["id"], $t = ["xmlns", "viewBox"], xt = ["transform"], St = ["fill", "font-weight", "x", "y", "font-size", "transform", "onMouseover"], Tt = {
121
+ key: 3,
122
+ class: "vue-data-ui-watermark"
123
+ }, Ft = ["innerHTML"], _t = {
124
+ __name: "vue-ui-word-cloud",
125
+ props: {
126
+ config: {
127
+ type: Object,
128
+ default() {
129
+ return {};
130
+ }
131
+ },
132
+ dataset: {
133
+ type: [Array, String],
134
+ default() {
135
+ return [];
136
+ }
137
+ }
138
+ },
139
+ setup(i, { expose: B }) {
140
+ const s = i, { vue_ui_word_cloud: X } = Le(), S = p({
141
+ get() {
142
+ return !!s.dataset && s.dataset.length;
143
+ },
144
+ set(t) {
145
+ return t;
146
+ }
147
+ }), b = n(typeof s.dataset == "string" ? Xe(s.dataset) : s.dataset.map((t) => ({
148
+ ...t,
149
+ value: Ye(t.value)
150
+ }))), P = n(ge()), I = n(0), C = n(null), w = n(null), g = n(0), T = n(0), Y = n(!1), e = p({
151
+ get: () => te(),
152
+ set: (t) => t
153
+ });
154
+ function te() {
155
+ const t = be({
156
+ userConfig: s.config,
157
+ defaultConfig: X
158
+ });
159
+ return t.theme ? {
160
+ ...be({
161
+ userConfig: je.vue_ui_word_cloud[t.theme] || s.config,
162
+ defaultConfig: t
163
+ }),
164
+ customPalette: qe[t.theme] || L
165
+ } : t;
166
+ }
167
+ Q(() => s.config, (t) => {
168
+ e.value = te(), le(), g.value += 1, T.value += 1, k.value = e.value.style.chart.width;
169
+ }, { deep: !0 });
170
+ const oe = n(null), k = n(0), r = n({
171
+ width: e.value.style.chart.width,
172
+ height: e.value.style.chart.height,
173
+ maxFontSize: e.value.style.chart.words.maxFontSize,
174
+ minFontSize: e.value.style.chart.words.minFontSize
175
+ }), we = nt(() => {
176
+ const { width: t, height: a } = rt({
177
+ chart: C.value,
178
+ title: e.value.style.chart.title.text ? w.value : null,
179
+ slicer: e.value.style.chart.zoom.show && oe.value
180
+ });
181
+ r.value.width = t, r.value.height = a, pe(j);
182
+ });
183
+ Q(() => k.value, () => {
184
+ ke();
185
+ });
186
+ const ke = st(() => {
187
+ j();
188
+ }, 10);
189
+ function ae() {
190
+ k.value = ie.value;
191
+ }
192
+ const D = n(null);
193
+ Be(() => {
194
+ le(), ae();
195
+ });
196
+ function le() {
197
+ He(s.dataset) ? ye({
198
+ componentName: "VueUiWordCloud",
199
+ type: "dataset"
200
+ }) : b.value.forEach((t, a) => {
201
+ Je({
202
+ datasetObject: t,
203
+ requiredAttributes: ["name", "value"]
204
+ }).forEach((o) => {
205
+ S.value = !1, ye({
206
+ componentName: "VueUiWordCloud",
207
+ type: "datasetSerieAttribute",
208
+ property: o,
209
+ index: a
210
+ });
211
+ });
212
+ }), e.value.responsive && (D.value = new ResizeObserver(we), D.value.observe(C.value.parentNode));
213
+ }
214
+ De(() => {
215
+ D.value && D.value.disconnect();
216
+ });
217
+ const { isPrinting: se, isImaging: ne, generatePdf: re, generateImage: ue } = at({
218
+ elementId: `wordCloud_${P.value}`,
219
+ fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
220
+ }), d = n({
221
+ showTable: e.value.table.show,
222
+ showTooltip: e.value.style.chart.tooltip.show
223
+ });
224
+ function $e(t, a, o = "Arial") {
225
+ const l = document.createElement("canvas").getContext("2d");
226
+ return l.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
227
+ width: l.measureText(t).width + e.value.style.chart.words.proximity,
228
+ height: a
229
+ };
230
+ }
231
+ function xe(t, a) {
232
+ return t.x < a.x + a.width && t.x + t.width > a.x && t.y < a.y + a.height && t.y + t.height > a.y;
233
+ }
234
+ function Se(t, a, o) {
235
+ const c = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, v = 0, _ = 0;
236
+ return t.forEach((N) => {
237
+ let J = !1;
238
+ for (let G = 0; G < Math.max(a, o) / 2 && !J; G += e.value.style.chart.words.packingWeight)
239
+ for (let K = 0; K < 360 && !J; K += e.value.style.chart.words.packingWeight) {
240
+ const he = K * Math.PI / 180, ze = v + G * Math.cos(he) - N.width / 2, Pe = _ + G * Math.sin(he) - N.height / 2, y = { ...N, x: ze, y: Pe }, Ie = y.x >= l.x && y.y >= l.y && y.x + y.width <= l.x + l.width && y.y + y.height <= l.y + l.height, Oe = c.some((Me) => xe(y, Me));
241
+ Ie && !Oe && (c.push(y), J = !0);
242
+ }
243
+ }), c;
244
+ }
245
+ const O = n([]);
246
+ Q(() => s.dataset, j, { immediate: !0 });
247
+ const ie = p(() => Math.min(...b.value.map((t) => t.value))), Te = p(() => Math.max(...b.value.map((t) => t.value)));
248
+ function j() {
249
+ const t = [...b.value].filter((l) => l.value >= k.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), c = [...b.value].filter((l) => l.value >= k.value).map((l, v) => {
250
+ const _ = (l.value - o) / (a - o) * (r.value.maxFontSize - r.value.minFontSize) + r.value.minFontSize, N = $e(l.name, _);
251
+ return {
252
+ ...l,
253
+ id: ge(),
254
+ fontSize: _,
255
+ width: N.width,
256
+ height: N.height,
257
+ color: e.value.style.chart.words.usePalette ? e.value.customPalette[v] || e.value.customPalette[v % e.value.customPalette.length] || L[v] || L[v % L.length] : e.value.style.chart.words.color
258
+ };
259
+ });
260
+ O.value = Se(c, r.value.width, r.value.height).sort((l, v) => v.fontSize - l.fontSize);
261
+ }
262
+ const V = p(() => {
263
+ const t = O.value.map((o) => ({
264
+ name: o.name,
265
+ color: o.color
266
+ })), a = O.value.map((o) => o.value);
267
+ return { head: t, body: a };
268
+ });
269
+ function ce() {
270
+ pe(() => {
271
+ const t = V.value.head.map((c, l) => [[
272
+ c.name
273
+ ], [V.value.body[l]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), o = Ze(a);
274
+ et({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
275
+ });
276
+ }
277
+ const E = p(() => {
278
+ const t = [
279
+ e.value.table.columnNames.series,
280
+ e.value.table.columnNames.value
281
+ ], a = V.value.head.map((l, v) => {
282
+ const _ = Ke({ p: e.value.table.td.prefix, v: V.value.body[v], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
283
+ return [
284
+ {
285
+ color: l.color,
286
+ name: l.name
287
+ },
288
+ _
289
+ ];
290
+ }), o = {
291
+ th: {
292
+ backgroundColor: e.value.table.th.backgroundColor,
293
+ color: e.value.table.th.color,
294
+ outline: e.value.table.th.outline
295
+ },
296
+ td: {
297
+ backgroundColor: e.value.table.td.backgroundColor,
298
+ color: e.value.table.td.color,
299
+ outline: e.value.table.td.outline
300
+ },
301
+ breakpoint: e.value.table.responsiveBreakpoint
302
+ };
303
+ return {
304
+ colNames: [
305
+ e.value.table.columnNames.series,
306
+ e.value.table.columnNames.value
307
+ ],
308
+ head: t,
309
+ body: a,
310
+ config: o
311
+ };
312
+ }), U = n(!1);
313
+ function Fe(t) {
314
+ U.value = t, I.value += 1;
315
+ }
316
+ function _e() {
317
+ return O.value;
318
+ }
319
+ function de() {
320
+ d.value.showTable = !d.value.showTable;
321
+ }
322
+ function ve() {
323
+ d.value.showTooltip = !d.value.showTooltip;
324
+ }
325
+ B({
326
+ getData: _e,
327
+ generateCsv: ce,
328
+ generatePdf: re,
329
+ generateImage: ue,
330
+ toggleTable: de,
331
+ toggleTooltip: ve
332
+ });
333
+ const F = n(null), M = n(!1), q = n(""), H = n(null);
334
+ function Ne(t) {
335
+ if (!d.value.showTooltip) return;
336
+ F.value = t.id, H.value = { datapoint: t, config: e.value };
337
+ const a = e.value.style.chart.tooltip.customFormat;
338
+ if (M.value = !1, tt(a))
339
+ try {
340
+ const o = a({
341
+ datapoint: t,
342
+ config: e.value
343
+ });
344
+ typeof o == "string" && (q.value = o, M.value = !0);
345
+ } catch {
346
+ console.warn("Custom format cannot be applied."), M.value = !1;
347
+ }
348
+ if (!M.value) {
349
+ let o = `<svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${t.color}"/></svg><span>${t.name}:</span><b>${(t.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}</b>`;
350
+ q.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
351
+ }
352
+ Y.value = !0;
353
+ }
354
+ return (t, a) => (u(), f("div", {
355
+ class: "vue-ui-word-cloud",
356
+ ref_key: "wordCloudChart",
357
+ ref: C,
358
+ id: `wordCloud_${P.value}`,
359
+ style: ee(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
360
+ }, [
361
+ e.value.style.chart.title.text ? (u(), f("div", {
362
+ key: 0,
363
+ ref_key: "chartTitle",
364
+ ref: w,
365
+ style: "width:100%;background:transparent;padding-bottom:24px"
366
+ }, [
367
+ (u(), A(ot, {
368
+ key: `title_${g.value}`,
369
+ config: {
370
+ title: {
371
+ ...e.value.style.chart.title
372
+ },
373
+ subtitle: {
374
+ ...e.value.style.chart.title.subtitle
375
+ }
376
+ }
377
+ }, null, 8, ["config"]))
378
+ ], 512)) : z("", !0),
379
+ e.value.userOptions.show && S.value ? (u(), A(lt, {
380
+ ref: "details",
381
+ key: `user_option_${I.value}`,
382
+ backgroundColor: e.value.style.chart.backgroundColor,
383
+ color: e.value.style.chart.color,
384
+ isPrinting: $(se),
385
+ isImaging: $(ne),
386
+ uid: P.value,
387
+ hasPdf: e.value.userOptions.buttons.pdf,
388
+ hasXls: e.value.userOptions.buttons.csv,
389
+ hasImg: e.value.userOptions.buttons.img,
390
+ hasTable: e.value.userOptions.buttons.table,
391
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
392
+ isFullscreen: U.value,
393
+ titles: { ...e.value.userOptions.buttonTitles },
394
+ chartElement: C.value,
395
+ position: e.value.userOptions.position,
396
+ hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
397
+ isTooltip: d.value.showTooltip,
398
+ onToggleFullscreen: Fe,
399
+ onGeneratePdf: $(re),
400
+ onGenerateCsv: ce,
401
+ onGenerateImage: $(ue),
402
+ onToggleTable: de,
403
+ onToggleTooltip: ve
404
+ }, Ve({ _: 2 }, [
405
+ t.$slots.optionPdf ? {
406
+ name: "optionPdf",
407
+ fn: h(() => [
408
+ m(t.$slots, "optionPdf", {}, void 0, !0)
409
+ ]),
410
+ key: "0"
411
+ } : void 0,
412
+ t.$slots.optionCsv ? {
413
+ name: "optionCsv",
414
+ fn: h(() => [
415
+ m(t.$slots, "optionCsv", {}, void 0, !0)
416
+ ]),
417
+ key: "1"
418
+ } : void 0,
419
+ t.$slots.optionImg ? {
420
+ name: "optionImg",
421
+ fn: h(() => [
422
+ m(t.$slots, "optionImg", {}, void 0, !0)
423
+ ]),
424
+ key: "2"
425
+ } : void 0,
426
+ t.$slots.optionTable ? {
427
+ name: "optionTable",
428
+ fn: h(() => [
429
+ m(t.$slots, "optionTable", {}, void 0, !0)
430
+ ]),
431
+ key: "3"
432
+ } : void 0,
433
+ t.$slots.optionFullscreen ? {
434
+ name: "optionFullscreen",
435
+ fn: h(({ toggleFullscreen: o, isFullscreen: c }) => [
436
+ m(t.$slots, "optionFullscreen", W(R({ toggleFullscreen: o, isFullscreen: c })), void 0, !0)
437
+ ]),
438
+ key: "4"
439
+ } : void 0
440
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "onGeneratePdf", "onGenerateImage"])) : z("", !0),
441
+ S.value ? (u(), f("svg", {
442
+ key: 2,
443
+ class: me({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
444
+ xmlns: $(Qe),
445
+ viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
446
+ style: "overflow:visible;background:transparent;"
447
+ }, [
448
+ Z(dt),
449
+ x("g", {
450
+ transform: `translate(${(r.value.width <= 0 ? 10 : r.value.width) / 2}, ${(r.value.height <= 0 ? 10 : r.value.height) / 2})`
451
+ }, [
452
+ (u(!0), f(Ee, null, Ue(O.value, (o, c) => (u(), f("g", null, [
453
+ (u(), f("text", {
454
+ fill: o.color,
455
+ "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
456
+ key: c,
457
+ x: o.x,
458
+ y: o.y,
459
+ "font-size": o.fontSize,
460
+ transform: `translate(${o.width / 2}, ${o.height / 2})`,
461
+ class: me({ animated: e.value.useCssAnimation, "word-selected": F.value && F.value === o.id && d.value.showTooltip, "word-not-selected": F.value && F.value !== o.id && d.value.showTooltip }),
462
+ "text-anchor": "middle",
463
+ "dominant-baseline": "middle",
464
+ onMouseover: (l) => Ne(o),
465
+ onMouseleave: a[0] || (a[0] = (l) => {
466
+ F.value = null, Y.value = !1;
467
+ }),
468
+ style: ee(`animation-delay:${c * e.value.animationDelayMs}ms !important;`)
469
+ }, fe(o.name), 47, St))
470
+ ]))), 256))
471
+ ], 8, xt),
472
+ m(t.$slots, "svg", {
473
+ svg: { height: r.value.height, width: r.value.width }
474
+ }, void 0, !0)
475
+ ], 10, $t)) : z("", !0),
476
+ t.$slots.watermark ? (u(), f("div", Tt, [
477
+ m(t.$slots, "watermark", W(R({ isPrinting: $(se) || $(ne) })), void 0, !0)
478
+ ])) : z("", !0),
479
+ Z(vt, {
480
+ show: d.value.showTooltip && Y.value,
481
+ backgroundColor: e.value.style.chart.tooltip.backgroundColor,
482
+ color: e.value.style.chart.tooltip.color,
483
+ fontSize: e.value.style.chart.tooltip.fontSize,
484
+ borderRadius: e.value.style.chart.tooltip.borderRadius,
485
+ borderColor: e.value.style.chart.tooltip.borderColor,
486
+ borderWidth: e.value.style.chart.tooltip.borderWidth,
487
+ backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
488
+ position: e.value.style.chart.tooltip.position,
489
+ offsetY: e.value.style.chart.tooltip.offsetY,
490
+ parent: C.value,
491
+ content: q.value,
492
+ isCustom: M.value
493
+ }, {
494
+ "tooltip-before": h(() => [
495
+ m(t.$slots, "tooltip-before", W(R({ ...H.value })), void 0, !0)
496
+ ]),
497
+ "tooltip-after": h(() => [
498
+ m(t.$slots, "tooltip-after", W(R({ ...H.value })), void 0, !0)
499
+ ]),
500
+ _: 3
501
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
502
+ x("div", {
503
+ ref_key: "chartSlicer",
504
+ ref: oe,
505
+ style: "width:100%;background:transparent",
506
+ "data-html2canvas-ignore": ""
507
+ }, [
508
+ e.value.style.chart.zoom.show ? (u(), A(wt, {
509
+ key: 0,
510
+ value: k.value,
511
+ "onUpdate:value": a[1] || (a[1] = (o) => k.value = o),
512
+ min: ie.value,
513
+ max: Te.value,
514
+ textColor: e.value.style.chart.color,
515
+ inputColor: e.value.style.chart.zoom.color,
516
+ selectColor: e.value.style.chart.zoom.highlightColor,
517
+ useResetSlot: e.value.style.chart.zoom.useResetSlot,
518
+ background: e.value.style.chart.zoom.color,
519
+ borderColor: e.value.style.chart.backgroundColor,
520
+ source: e.value.style.chart.width,
521
+ onReset: ae
522
+ }, {
523
+ "reset-action": h(({ reset: o }) => [
524
+ m(t.$slots, "reset-action", W(R({ reset: o })), void 0, !0)
525
+ ]),
526
+ _: 3
527
+ }, 8, ["value", "min", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : z("", !0)
528
+ ], 512),
529
+ S.value ? (u(), A(ut, {
530
+ key: 4,
531
+ hideDetails: "",
532
+ config: {
533
+ open: d.value.showTable,
534
+ maxHeight: 1e4,
535
+ body: {
536
+ backgroundColor: e.value.style.chart.backgroundColor,
537
+ color: e.value.style.chart.color
538
+ },
539
+ head: {
540
+ backgroundColor: e.value.style.chart.backgroundColor,
541
+ color: e.value.style.chart.color
542
+ }
543
+ }
544
+ }, {
545
+ content: h(() => [
546
+ (u(), A(it, {
547
+ key: `table_${T.value}`,
548
+ colNames: E.value.colNames,
549
+ head: E.value.head,
550
+ body: E.value.body,
551
+ config: E.value.config,
552
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
553
+ onClose: a[2] || (a[2] = (o) => d.value.showTable = !1)
554
+ }, {
555
+ th: h(({ th: o }) => [
556
+ x("div", {
557
+ innerHTML: o,
558
+ style: { display: "flex", "align-items": "center" }
559
+ }, null, 8, Ft)
560
+ ]),
561
+ td: h(({ td: o }) => [
562
+ Ge(fe(o.name || o), 1)
563
+ ]),
564
+ _: 1
565
+ }, 8, ["colNames", "head", "body", "config", "title"]))
566
+ ]),
567
+ _: 1
568
+ }, 8, ["config"])) : z("", !0)
569
+ ], 12, kt));
570
+ }
571
+ }, Et = /* @__PURE__ */ Ce(_t, [["__scopeId", "data-v-d7a4b90d"]]);
572
+ export {
573
+ Et as default
574
+ };