vue-data-ui 2.3.73 → 2.3.75

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 (193) hide show
  1. package/dist/{Arrow-B9ZuNkP-.js → Arrow-BTG7M25z.js} +1 -1
  2. package/dist/{Arrow-B8nZeqNJ.cjs → Arrow-CZK77NmC.cjs} +1 -1
  3. package/dist/{BaseIcon-CXbZK6D-.cjs → BaseIcon--PMhZ3f-.cjs} +1 -1
  4. package/dist/{BaseIcon-_V_BEdy8.js → BaseIcon-BAOfPaXs.js} +1 -1
  5. package/dist/{DataTable-BOdJVZzF.js → DataTable-CQANRZju.js} +2 -2
  6. package/dist/{DataTable-wmKwMbsJ.cjs → DataTable-DjQzrklZ.cjs} +1 -1
  7. package/dist/{Legend-DdndVhHV.cjs → Legend-CtbPB0Bo.cjs} +1 -1
  8. package/dist/{Legend-CHd5QFPM.js → Legend-DX1kv21U.js} +1 -1
  9. package/dist/{Shape-CLRxBhyM.cjs → Shape-CadGs1Am.cjs} +1 -1
  10. package/dist/{Shape-DNbJlwSU.js → Shape-kqcyauhC.js} +1 -1
  11. package/dist/{Slicer-Dts-BToH.cjs → Slicer-i_oECHxH.cjs} +1 -1
  12. package/dist/{Slicer-8Gg45iGX.js → Slicer-yaJs-izT.js} +2 -2
  13. package/dist/{Title-Ngy9HNqO.js → Title-C26I_HC3.js} +1 -1
  14. package/dist/{Title-CujodUjt.cjs → Title-XBiDFYKD.cjs} +1 -1
  15. package/dist/{Tooltip-BCtg7xYX.js → Tooltip-CH8GmDCG.js} +1 -1
  16. package/dist/{Tooltip-DsmWz8gF.cjs → Tooltip-DxtWkIt5.cjs} +1 -1
  17. package/dist/{index-Dvs5Ra-u.js → index-Cm4Iry5c.js} +1 -1
  18. package/dist/{index-sFjJ2dIj.cjs → index-DYUBiaGS.cjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{useNestedProp-UohhCyBz.js → useNestedProp-CurQIHTa.js} +1 -1
  21. package/dist/{useNestedProp-ir0jEo5M.cjs → useNestedProp-w7AMWWmz.cjs} +1 -1
  22. package/dist/{usePrinter-B8-keRMa.js → usePrinter-B8RnF8_q.js} +1 -1
  23. package/dist/{usePrinter-DSMMs1w9.cjs → usePrinter-ZlHxdaEz.cjs} +1 -1
  24. package/dist/{vue-data-ui-NvV5qa--.cjs → vue-data-ui-B7amrpT-.cjs} +1 -1
  25. package/dist/{vue-data-ui-Bgo6YUhl.js → vue-data-ui-Bj6kEIpq.js} +57 -57
  26. package/dist/vue-data-ui.cjs +1 -1
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/vue-ui-3d-bar-BAz41kL7.cjs +19 -0
  29. package/dist/{vue-ui-3d-bar-DckNIYgA.js → vue-ui-3d-bar-Bg9IgVVc.js} +499 -486
  30. package/dist/{vue-ui-accordion-RuCkf_li.cjs → vue-ui-accordion-1WxrfiCH.cjs} +1 -1
  31. package/dist/{vue-ui-accordion-C-qAry7P.js → vue-ui-accordion-Cb6XBCbu.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CamjaXUw.js → vue-ui-age-pyramid-BhwmnQru.js} +182 -169
  33. package/dist/vue-ui-age-pyramid-CHNvRXx8.cjs +1 -0
  34. package/dist/{vue-ui-annotator-D0kYZ56C.cjs → vue-ui-annotator-B22cdlhA.cjs} +1 -1
  35. package/dist/{vue-ui-annotator-DMmdqorj.js → vue-ui-annotator-BiHQvMdW.js} +1 -1
  36. package/dist/{vue-ui-candlestick-DRi8lDTn.js → vue-ui-candlestick-Cl9dyh4l.js} +295 -279
  37. package/dist/vue-ui-candlestick-D7DjdYyw.cjs +2 -0
  38. package/dist/vue-ui-carousel-table-Do5cYRqN.cjs +1 -0
  39. package/dist/{vue-ui-carousel-table-u5OoOMr1.js → vue-ui-carousel-table-QsONwqNz.js} +106 -91
  40. package/dist/vue-ui-chestnut-CyE8MafY.cjs +6 -0
  41. package/dist/{vue-ui-chestnut-D5a4OH1D.js → vue-ui-chestnut-Drb01WMC.js} +215 -204
  42. package/dist/{vue-ui-cursor-Bp_PHbz4.js → vue-ui-cursor-BP04_XbB.js} +2 -2
  43. package/dist/{vue-ui-cursor-DpBsZNEE.cjs → vue-ui-cursor-DZeTQBKz.cjs} +1 -1
  44. package/dist/{vue-ui-dashboard-BwBYH8V_.js → vue-ui-dashboard-BWdx5gjZ.js} +2 -2
  45. package/dist/{vue-ui-dashboard--kjU0uMc.cjs → vue-ui-dashboard-Z63RE1XS.cjs} +1 -1
  46. package/dist/{vue-ui-digits-CIV9J3SW.cjs → vue-ui-digits-CBQaHW6a.cjs} +1 -1
  47. package/dist/{vue-ui-digits-t2G4B6uD.js → vue-ui-digits-DUhkLcmd.js} +2 -2
  48. package/dist/vue-ui-donut-D2YJYgOB.cjs +1 -0
  49. package/dist/{vue-ui-donut-BTug2gsP.js → vue-ui-donut-DRPSwmGr.js} +376 -362
  50. package/dist/{vue-ui-donut-evolution-DTD0Hfgh.js → vue-ui-donut-evolution-gRXAyxq8.js} +270 -255
  51. package/dist/vue-ui-donut-evolution-jAMVgNHQ.cjs +1 -0
  52. package/dist/{vue-ui-dumbbell-BZw7lntE.js → vue-ui-dumbbell-CQo5jqSK.js} +232 -213
  53. package/dist/vue-ui-dumbbell-DLfZcrXq.cjs +9 -0
  54. package/dist/vue-ui-flow-BQ3UbMUb.js +481 -0
  55. package/dist/vue-ui-flow-BlX2-eEC.cjs +1 -0
  56. package/dist/{vue-ui-galaxy-Bjlm3WtB.js → vue-ui-galaxy-BHWugUKG.js} +175 -162
  57. package/dist/vue-ui-galaxy-Cax5o6Yl.cjs +1 -0
  58. package/dist/vue-ui-gauge-DG6_kvKh.js +500 -0
  59. package/dist/vue-ui-gauge-DpGcv_00.cjs +1 -0
  60. package/dist/vue-ui-gizmo-D9Vh9Rmr.cjs +1 -0
  61. package/dist/{vue-ui-gizmo-CiutQM-A.js → vue-ui-gizmo-bV148qAf.js} +66 -53
  62. package/dist/{vue-ui-heatmap-C933pQPU.js → vue-ui-heatmap-BZZUvnMa.js} +157 -143
  63. package/dist/vue-ui-heatmap-B_ELXKKV.cjs +1 -0
  64. package/dist/vue-ui-kpi-C5v7qQvZ.js +98 -0
  65. package/dist/vue-ui-kpi-CwVAvTB2.cjs +1 -0
  66. package/dist/{vue-ui-mini-loader-B5XG2gKd.js → vue-ui-mini-loader-BdKizX_J.js} +2 -2
  67. package/dist/{vue-ui-mini-loader-C67Z1C6r.cjs → vue-ui-mini-loader-DZNY-3rr.cjs} +1 -1
  68. package/dist/{vue-ui-molecule-DzIeuL8t.js → vue-ui-molecule-MKyrhqqm.js} +177 -167
  69. package/dist/vue-ui-molecule-bva6OvPc.cjs +1 -0
  70. package/dist/{vue-ui-mood-radar-02L4M-n_.js → vue-ui-mood-radar-BNIFFvq0.js} +172 -161
  71. package/dist/vue-ui-mood-radar-CzQOAyNI.cjs +1 -0
  72. package/dist/{vue-ui-nested-donuts-BY50trfJ.js → vue-ui-nested-donuts-BDAlZrMF.js} +377 -364
  73. package/dist/vue-ui-nested-donuts-CxdZC6JF.cjs +17 -0
  74. package/dist/{vue-ui-onion-BmQ7B9xY.js → vue-ui-onion-CFa4VD-w.js} +191 -177
  75. package/dist/vue-ui-onion-Df7YcsVR.cjs +5 -0
  76. package/dist/vue-ui-parallel-coordinate-plot-D7Q2zfcR.cjs +8 -0
  77. package/dist/{vue-ui-parallel-coordinate-plot-BdfcqlfT.js → vue-ui-parallel-coordinate-plot-DmqYXT-U.js} +298 -284
  78. package/dist/{vue-ui-quadrant-CLimyRoA.js → vue-ui-quadrant-D5jHkq9g.js} +347 -334
  79. package/dist/vue-ui-quadrant-ZqhcVYf5.cjs +1 -0
  80. package/dist/{vue-ui-quick-chart-CX8Kas-o.js → vue-ui-quick-chart-BjXXSx7V.js} +483 -469
  81. package/dist/vue-ui-quick-chart-Dt9AsEU6.cjs +15 -0
  82. package/dist/vue-ui-radar-2EuZr7i2.cjs +1 -0
  83. package/dist/{vue-ui-radar-CK0PB5oY.js → vue-ui-radar-CW8EKW4o.js} +202 -189
  84. package/dist/{vue-ui-rating-Ceu3pXmF.cjs → vue-ui-rating-DrtLvVA0.cjs} +1 -1
  85. package/dist/{vue-ui-rating-BnqWN2ui.js → vue-ui-rating-eSWsmJUU.js} +2 -2
  86. package/dist/vue-ui-relation-circle-C60OTe88.cjs +1 -0
  87. package/dist/vue-ui-relation-circle-DiUCpEqa.js +322 -0
  88. package/dist/{vue-ui-rings-CYthauSM.js → vue-ui-rings-BxhLbyG0.js} +203 -189
  89. package/dist/vue-ui-rings-CHq-a5ZS.cjs +2 -0
  90. package/dist/{vue-ui-scatter-Cxr9eymz.js → vue-ui-scatter-DQchX_mM.js} +284 -270
  91. package/dist/vue-ui-scatter-DZUZUbnk.cjs +1 -0
  92. package/dist/{vue-ui-screenshot-CVWC5rbJ.js → vue-ui-screenshot-CLa9vMzM.js} +1 -1
  93. package/dist/{vue-ui-screenshot-sBd8-Oyh.cjs → vue-ui-screenshot-SLSIpqx2.cjs} +1 -1
  94. package/dist/{vue-ui-skeleton-CAvlIcgk.js → vue-ui-skeleton-C1oUnz7R.js} +2 -2
  95. package/dist/{vue-ui-skeleton-CqF0NJ4g.cjs → vue-ui-skeleton-ClpTCY1x.cjs} +1 -1
  96. package/dist/{vue-ui-smiley-CXbipVsb.js → vue-ui-smiley-CmWHSt1S.js} +2 -2
  97. package/dist/{vue-ui-smiley-c_I60YOy.cjs → vue-ui-smiley-Daw8fPDy.cjs} +1 -1
  98. package/dist/vue-ui-spark-trend-CO69Dg31.js +263 -0
  99. package/dist/vue-ui-spark-trend-DmDlv8ie.cjs +1 -0
  100. package/dist/{vue-ui-sparkbar-Dm-2_5Ef.js → vue-ui-sparkbar-BRlqpe4e.js} +95 -87
  101. package/dist/vue-ui-sparkbar-BUGdi0BY.cjs +1 -0
  102. package/dist/vue-ui-sparkgauge-CCxKzDjT.cjs +1 -0
  103. package/dist/vue-ui-sparkgauge-CbuFESsM.js +178 -0
  104. package/dist/{vue-ui-sparkhistogram-qf87TXA-.js → vue-ui-sparkhistogram-B4-hrDHz.js} +79 -68
  105. package/dist/vue-ui-sparkhistogram-XtqX10_t.cjs +1 -0
  106. package/dist/vue-ui-sparkline-BZTEi9YC.cjs +1 -0
  107. package/dist/{vue-ui-sparkline-CZBgvY1A.js → vue-ui-sparkline-DlXNmG6M.js} +142 -123
  108. package/dist/vue-ui-sparkstackbar-CDmZeXnq.cjs +1 -0
  109. package/dist/{vue-ui-sparkstackbar-GtkDZDXZ.js → vue-ui-sparkstackbar-J1YowQmP.js} +120 -104
  110. package/dist/{vue-ui-stackbar-D_Ui7xec.js → vue-ui-stackbar-CKIDqkkY.js} +235 -222
  111. package/dist/vue-ui-stackbar-CXGWukoJ.cjs +6 -0
  112. package/dist/vue-ui-strip-plot-CvmoRcYN.cjs +1 -0
  113. package/dist/{vue-ui-strip-plot--VJ3f5UV.js → vue-ui-strip-plot-JVLwIy0j.js} +246 -232
  114. package/dist/{vue-ui-table-BCQ7voEV.js → vue-ui-table-BSi_cHh7.js} +1 -1
  115. package/dist/{vue-ui-table-B_6N0VOD.cjs → vue-ui-table-Dqi64VE7.cjs} +1 -1
  116. package/dist/vue-ui-table-heatmap-BwghEh5t.cjs +1 -0
  117. package/dist/{vue-ui-table-heatmap-UwpQQMHB.js → vue-ui-table-heatmap-CfvW3rcm.js} +106 -95
  118. package/dist/{vue-ui-table-sparkline-Bzqs2Hcp.js → vue-ui-table-sparkline-Y6Lrrzxy.js} +151 -138
  119. package/dist/vue-ui-table-sparkline-bIy3kkHB.cjs +1 -0
  120. package/dist/{vue-ui-thermometer-BQbYzsSV.js → vue-ui-thermometer-BPTs7Nxc.js} +116 -104
  121. package/dist/vue-ui-thermometer-DDtxYr7w.cjs +1 -0
  122. package/dist/{vue-ui-timer-KGEswANF.js → vue-ui-timer-CkB7eZaE.js} +191 -176
  123. package/dist/vue-ui-timer-DRSSYxOX.cjs +64 -0
  124. package/dist/{vue-ui-tiremarks-BSkMCIu1.js → vue-ui-tiremarks-BbOaoY8S.js} +115 -103
  125. package/dist/vue-ui-tiremarks-Bttwg3-p.cjs +1 -0
  126. package/dist/vue-ui-treemap-Chq0WQPe.cjs +1 -0
  127. package/dist/{vue-ui-treemap-DIWveOrq.js → vue-ui-treemap-CoaK3wBl.js} +251 -237
  128. package/dist/{vue-ui-vertical-bar-Dx6wReOw.js → vue-ui-vertical-bar-BA43_uHV.js} +374 -358
  129. package/dist/vue-ui-vertical-bar-BLIUt-HT.cjs +4 -0
  130. package/dist/{vue-ui-waffle-D3jMPOd3.js → vue-ui-waffle-BoEf8CcG.js} +285 -265
  131. package/dist/vue-ui-waffle-NBjY0mko.cjs +1 -0
  132. package/dist/vue-ui-wheel-Bgo2jpj0.js +255 -0
  133. package/dist/vue-ui-wheel-t5bI4a-P.cjs +1 -0
  134. package/dist/vue-ui-word-cloud-DPW_-Hzz.cjs +1 -0
  135. package/dist/vue-ui-word-cloud-Jd9_JUyi.js +512 -0
  136. package/dist/{vue-ui-xy-9_2IHEOX.js → vue-ui-xy-BMBYAC4z.js} +300 -274
  137. package/dist/vue-ui-xy-CBHEBcZK.cjs +3 -0
  138. package/dist/vue-ui-xy-canvas-D5FqRF4p.cjs +9 -0
  139. package/dist/{vue-ui-xy-canvas-DGuGy69l.js → vue-ui-xy-canvas-LOsQ_DM-.js} +345 -327
  140. package/package.json +1 -1
  141. package/dist/vue-ui-3d-bar-DhzN0gd4.cjs +0 -19
  142. package/dist/vue-ui-age-pyramid-CfUUEeKt.cjs +0 -1
  143. package/dist/vue-ui-candlestick-DJIJnnI_.cjs +0 -2
  144. package/dist/vue-ui-carousel-table-uYt1zVjx.cjs +0 -1
  145. package/dist/vue-ui-chestnut-CG5krVO-.cjs +0 -6
  146. package/dist/vue-ui-donut-D6SrEIEJ.cjs +0 -1
  147. package/dist/vue-ui-donut-evolution-Cb45erSA.cjs +0 -1
  148. package/dist/vue-ui-dumbbell-DVabaAYH.cjs +0 -9
  149. package/dist/vue-ui-flow-Bn1EP9Z1.cjs +0 -1
  150. package/dist/vue-ui-flow-Cz_xaLAs.js +0 -469
  151. package/dist/vue-ui-galaxy-Drnhlmmw.cjs +0 -1
  152. package/dist/vue-ui-gauge-CxIVYnG2.js +0 -488
  153. package/dist/vue-ui-gauge-D2reVZ-b.cjs +0 -1
  154. package/dist/vue-ui-gizmo-B6ZwXwFY.cjs +0 -1
  155. package/dist/vue-ui-heatmap-ClFm7qUu.cjs +0 -1
  156. package/dist/vue-ui-kpi-CdPFWSHA.cjs +0 -1
  157. package/dist/vue-ui-kpi-ClreiT4V.js +0 -84
  158. package/dist/vue-ui-molecule-JJQ3af-R.cjs +0 -1
  159. package/dist/vue-ui-mood-radar-DT4JU_6B.cjs +0 -1
  160. package/dist/vue-ui-nested-donuts-D6Dihmne.cjs +0 -17
  161. package/dist/vue-ui-onion-DoNDCpth.cjs +0 -5
  162. package/dist/vue-ui-parallel-coordinate-plot-CJMjEDXR.cjs +0 -8
  163. package/dist/vue-ui-quadrant-DWqmU3-5.cjs +0 -1
  164. package/dist/vue-ui-quick-chart-CB5VelG0.cjs +0 -15
  165. package/dist/vue-ui-radar-aTceo-HQ.cjs +0 -1
  166. package/dist/vue-ui-relation-circle-D1z8MBVH.js +0 -310
  167. package/dist/vue-ui-relation-circle-DWGtziD_.cjs +0 -1
  168. package/dist/vue-ui-rings-gp0sEMy6.cjs +0 -2
  169. package/dist/vue-ui-scatter-BKl2fUIR.cjs +0 -1
  170. package/dist/vue-ui-spark-trend-C3sBXu8D.js +0 -251
  171. package/dist/vue-ui-spark-trend-CXkkMK6N.cjs +0 -1
  172. package/dist/vue-ui-sparkbar-BkN5iTUq.cjs +0 -1
  173. package/dist/vue-ui-sparkgauge-D4EqU3x3.cjs +0 -1
  174. package/dist/vue-ui-sparkgauge-FKTXvE7e.js +0 -167
  175. package/dist/vue-ui-sparkhistogram-BkJz2dBD.cjs +0 -1
  176. package/dist/vue-ui-sparkline-TPkuvKtA.cjs +0 -1
  177. package/dist/vue-ui-sparkstackbar-CzzfnPDS.cjs +0 -1
  178. package/dist/vue-ui-stackbar-NHgsl2-Z.cjs +0 -6
  179. package/dist/vue-ui-strip-plot-CU6OtKt7.cjs +0 -1
  180. package/dist/vue-ui-table-heatmap-DFMF1RZ0.cjs +0 -1
  181. package/dist/vue-ui-table-sparkline-DWvOKdPb.cjs +0 -1
  182. package/dist/vue-ui-thermometer-BOuuVWuf.cjs +0 -1
  183. package/dist/vue-ui-timer-BCiMjXdm.cjs +0 -64
  184. package/dist/vue-ui-tiremarks-DuEz8cO5.cjs +0 -1
  185. package/dist/vue-ui-treemap-BO8gKQ4O.cjs +0 -1
  186. package/dist/vue-ui-vertical-bar-Dpzyha_P.cjs +0 -4
  187. package/dist/vue-ui-waffle-C0-IVDjk.cjs +0 -1
  188. package/dist/vue-ui-wheel-B10kCoLD.js +0 -242
  189. package/dist/vue-ui-wheel-mWdIHlXV.cjs +0 -1
  190. package/dist/vue-ui-word-cloud-CYtRxpdV.cjs +0 -1
  191. package/dist/vue-ui-word-cloud-rhrsHes4.js +0 -498
  192. package/dist/vue-ui-xy-CFqs5rtd.cjs +0 -3
  193. package/dist/vue-ui-xy-canvas-sLH0pM-i.cjs +0 -9
@@ -0,0 +1,512 @@
1
+ import { useCssVars as Se, computed as g, openBlock as r, createElementBlock as v, createVNode as Fe, renderSlot as f, createElementVNode as k, normalizeStyle as _, pushScopeId as Ne, popScopeId as _e, ref as c, watch as j, onMounted as Pe, onBeforeUnmount as Te, createBlock as A, createCommentVNode as N, unref as C, createSlots as ze, withCtx as m, normalizeProps as q, guardReactiveProps as H, normalizeClass as se, Fragment as Ie, renderList as Ae, toDisplayString as ne, createTextVNode as Oe, nextTick as re } from "vue";
2
+ import { u as Me, W as We, s as De, c as ue, t as Be, a as Ee, p as U, o as Re, e as ie, g as Ue, f as Ve, X as Ge, q as Le, r as Xe } from "./index-Cm4Iry5c.js";
3
+ import { _ as je } from "./Title-C26I_HC3.js";
4
+ import { u as qe, U as He } from "./usePrinter-B8RnF8_q.js";
5
+ import { d as Ye, t as Je, u as Ke } from "./useResponsive-NZB-WLRF.js";
6
+ import Qe from "./vue-ui-accordion-Cb6XBCbu.js";
7
+ import { D as Ze } from "./DataTable-CQANRZju.js";
8
+ import et from "./BaseIcon-BAOfPaXs.js";
9
+ import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ import { u as ce } from "./useNestedProp-CurQIHTa.js";
11
+ const tt = (u) => (Ne("data-v-3fd7d274"), u = u(), _e(), u), at = { "data-html2canvas-ignore": "" }, ot = {
12
+ key: 0,
13
+ class: "reset-wrapper"
14
+ }, lt = {
15
+ key: 1,
16
+ class: "reset-wrapper"
17
+ }, st = { class: "mono-slicer" }, nt = /* @__PURE__ */ tt(() => /* @__PURE__ */ k("div", { class: "slider-track" }, null, -1)), rt = ["min", "max", "value"], ut = {
18
+ __name: "MonoSlicer",
19
+ props: {
20
+ min: {
21
+ type: Number,
22
+ default: 0
23
+ },
24
+ max: {
25
+ type: Number,
26
+ default: 0
27
+ },
28
+ inputColor: {
29
+ type: String,
30
+ default: "#1A1A1A"
31
+ },
32
+ background: {
33
+ type: String,
34
+ default: "#FFFFFF"
35
+ },
36
+ borderColor: {
37
+ type: String,
38
+ default: "#FFFFFF"
39
+ },
40
+ selectColor: {
41
+ type: String,
42
+ default: "#4A4A4A"
43
+ },
44
+ textColor: {
45
+ type: String,
46
+ default: "#1A1A1A"
47
+ },
48
+ useResetSlot: {
49
+ type: Boolean,
50
+ default: !1
51
+ },
52
+ value: {
53
+ type: Number,
54
+ default: 0
55
+ },
56
+ source: {
57
+ type: Number,
58
+ default: 0
59
+ }
60
+ },
61
+ emits: ["update:value", "reset"],
62
+ setup(u, { emit: O }) {
63
+ const s = u;
64
+ Se((b) => ({
65
+ "90ad3208": V.value,
66
+ "4f9eef70": T.value,
67
+ "6e07ae3e": P.value,
68
+ "2fd430a0": u.selectColor,
69
+ "6b8169a4": w.value
70
+ }));
71
+ const V = g(() => s.inputColor), w = g(() => s.background), P = g(() => `${s.selectColor}33`), T = g(() => s.borderColor);
72
+ function z() {
73
+ O("reset");
74
+ }
75
+ const x = g(() => {
76
+ const b = s.max - s.min, y = 0, $ = (s.value - s.min) / b * 100;
77
+ return {
78
+ left: `${y}%`,
79
+ width: `${$ - y}%`,
80
+ background: s.selectColor
81
+ };
82
+ });
83
+ return (b, y) => (r(), v("div", at, [
84
+ u.value !== u.source ? (r(), v("div", ot, [
85
+ u.useResetSlot ? f(b.$slots, "reset-action", {
86
+ key: 1,
87
+ reset: z
88
+ }, void 0, !0) : (r(), v("button", {
89
+ key: 0,
90
+ "data-cy-reset": "",
91
+ tabindex: "0",
92
+ role: "button",
93
+ class: "vue-data-ui-refresh-button",
94
+ onClick: z
95
+ }, [
96
+ Fe(et, {
97
+ name: "refresh",
98
+ stroke: u.textColor
99
+ }, null, 8, ["stroke"])
100
+ ]))
101
+ ])) : (r(), v("div", lt)),
102
+ k("div", st, [
103
+ nt,
104
+ k("div", {
105
+ class: "range-highlight",
106
+ style: _(x.value)
107
+ }, null, 4),
108
+ k("input", {
109
+ type: "range",
110
+ min: u.min,
111
+ max: u.max,
112
+ value: Number(u.value),
113
+ onInput: y[0] || (y[0] = ($) => O("update:value", Number($.target.value)))
114
+ }, null, 40, rt)
115
+ ])
116
+ ]));
117
+ }
118
+ }, it = /* @__PURE__ */ de(ut, [["__scopeId", "data-v-3fd7d274"]]), ct = ["id"], dt = ["xmlns", "viewBox"], vt = ["transform"], ht = ["fill", "font-weight", "x", "y", "font-size", "transform"], mt = {
119
+ key: 3,
120
+ class: "vue-data-ui-watermark"
121
+ }, ft = ["innerHTML"], gt = {
122
+ __name: "vue-ui-word-cloud",
123
+ props: {
124
+ config: {
125
+ type: Object,
126
+ default() {
127
+ return {};
128
+ }
129
+ },
130
+ dataset: {
131
+ type: [Array, String],
132
+ default() {
133
+ return [];
134
+ }
135
+ }
136
+ },
137
+ setup(u, { expose: O }) {
138
+ const s = u, { vue_ui_word_cloud: V } = Me(), w = g({
139
+ get() {
140
+ return !!s.dataset && s.dataset.length;
141
+ },
142
+ set(t) {
143
+ return t;
144
+ }
145
+ }), P = c(typeof s.dataset == "string" ? We(s.dataset) : s.dataset.map((t) => ({
146
+ ...t,
147
+ value: De(t.value)
148
+ }))), T = c(ue()), z = c(0), x = c(null), b = c(null), y = c(0), $ = c(0), e = g({
149
+ get: () => Y(),
150
+ set: (t) => t
151
+ });
152
+ function Y() {
153
+ const t = ce({
154
+ userConfig: s.config,
155
+ defaultConfig: V
156
+ });
157
+ return t.theme ? {
158
+ ...ce({
159
+ userConfig: Be.vue_ui_word_cloud[t.theme] || s.config,
160
+ defaultConfig: t
161
+ }),
162
+ customPalette: Ee[t.theme] || U
163
+ } : t;
164
+ }
165
+ j(() => s.config, (t) => {
166
+ e.value = Y(), K(), y.value += 1, $.value += 1, h.value = e.value.style.chart.width;
167
+ }, { deep: !0 });
168
+ const J = c(null), h = c(e.value.style.chart.width), n = c({
169
+ width: h.value,
170
+ height: e.value.style.chart.height / e.value.style.chart.height * h.value,
171
+ maxFontSize: e.value.style.chart.words.maxFontSize,
172
+ minFontSize: e.value.style.chart.words.minFontSize
173
+ }), ve = Je(() => {
174
+ const { width: t, height: o } = Ke({
175
+ chart: x.value,
176
+ title: e.value.style.chart.title.text ? b.value : null,
177
+ slicer: e.value.style.chart.zoom.show && J.value
178
+ });
179
+ n.value.width = t, n.value.height = o, re(G);
180
+ });
181
+ j(() => h.value, () => {
182
+ he();
183
+ });
184
+ const he = Ye(() => {
185
+ n.value.width = Number(h.value), n.value.height = e.value.style.chart.height / e.value.style.chart.height * Number(h.value), G();
186
+ }, 10);
187
+ function me() {
188
+ h.value = e.value.style.chart.width;
189
+ }
190
+ const M = c(null);
191
+ Pe(() => {
192
+ K();
193
+ });
194
+ function K() {
195
+ Re(s.dataset) ? ie({
196
+ componentName: "VueUiWordCloud",
197
+ type: "dataset"
198
+ }) : P.value.forEach((t, o) => {
199
+ Ue({
200
+ datasetObject: t,
201
+ requiredAttributes: ["name", "value"]
202
+ }).forEach((a) => {
203
+ w.value = !1, ie({
204
+ componentName: "VueUiWordCloud",
205
+ type: "datasetSerieAttribute",
206
+ property: a,
207
+ index: o
208
+ });
209
+ });
210
+ }), e.value.responsive && (M.value = new ResizeObserver(ve), M.value.observe(x.value.parentNode));
211
+ }
212
+ Te(() => {
213
+ M.value && M.value.disconnect();
214
+ });
215
+ const { isPrinting: Q, isImaging: Z, generatePdf: ee, generateImage: te } = qe({
216
+ elementId: `wordCloud_${T.value}`,
217
+ fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
218
+ }), W = c({
219
+ showTable: e.value.table.show
220
+ });
221
+ function fe(t, o, a = "Arial") {
222
+ const l = document.createElement("canvas").getContext("2d");
223
+ return l.font = `${o}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${a}`, {
224
+ width: l.measureText(t).width + e.value.style.chart.words.proximity,
225
+ height: o
226
+ };
227
+ }
228
+ function ge(t, o) {
229
+ return t.x < o.x + o.width && t.x + t.width > o.x && t.y < o.y + o.height && t.y + t.height > o.y;
230
+ }
231
+ function ye(t, o, a) {
232
+ const i = [], l = { x: -o / 2, y: -a / 2, width: o, height: a }, d = 0, S = 0;
233
+ return t.forEach((F) => {
234
+ let L = !1;
235
+ for (let R = 0; R < Math.max(o, a) / 2 && !L; R += e.value.style.chart.words.packingWeight)
236
+ for (let X = 0; X < 360 && !L; X += e.value.style.chart.words.packingWeight) {
237
+ const le = X * Math.PI / 180, Ce = d + R * Math.cos(le) - F.width / 2, ke = S + R * Math.sin(le) - F.height / 2, p = { ...F, x: Ce, y: ke }, we = p.x >= l.x && p.y >= l.y && p.x + p.width <= l.x + l.width && p.y + p.height <= l.y + l.height, xe = i.some(($e) => ge(p, $e));
238
+ we && !xe && (i.push(p), L = !0);
239
+ }
240
+ }), i;
241
+ }
242
+ const I = c([]);
243
+ j(() => s.dataset, G, { immediate: !0 });
244
+ function G() {
245
+ const t = P.value.map((l) => l.value), o = Math.max(...t), a = Math.min(...t), i = P.value.map((l, d) => {
246
+ const S = (l.value - a) / (o - a) * (n.value.maxFontSize - n.value.minFontSize) + n.value.minFontSize, F = fe(l.name, S);
247
+ return {
248
+ ...l,
249
+ id: ue(),
250
+ fontSize: S,
251
+ width: F.width,
252
+ height: F.height,
253
+ color: e.value.style.chart.words.usePalette ? e.value.customPalette[d] || e.value.customPalette[d % e.value.customPalette.length] || U[d] || U[d % U.length] : e.value.style.chart.words.color
254
+ };
255
+ });
256
+ I.value = ye(i, n.value.width, n.value.height).sort((l, d) => d.fontSize - l.fontSize);
257
+ }
258
+ const D = g(() => {
259
+ const t = I.value.map((a) => ({
260
+ name: a.name,
261
+ color: a.color
262
+ })), o = I.value.map((a) => a.value);
263
+ return { head: t, body: o };
264
+ });
265
+ function ae() {
266
+ re(() => {
267
+ const t = D.value.head.map((i, l) => [[
268
+ i.name
269
+ ], [D.value.body[l]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(t), a = Le(o);
270
+ Xe({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
271
+ });
272
+ }
273
+ const B = g(() => {
274
+ const t = [
275
+ e.value.table.columnNames.series,
276
+ e.value.table.columnNames.value
277
+ ], o = D.value.head.map((l, d) => {
278
+ const S = Ve({ p: e.value.table.td.prefix, v: D.value.body[d], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
279
+ return [
280
+ {
281
+ color: l.color,
282
+ name: l.name
283
+ },
284
+ S
285
+ ];
286
+ }), a = {
287
+ th: {
288
+ backgroundColor: e.value.table.th.backgroundColor,
289
+ color: e.value.table.th.color,
290
+ outline: e.value.table.th.outline
291
+ },
292
+ td: {
293
+ backgroundColor: e.value.table.td.backgroundColor,
294
+ color: e.value.table.td.color,
295
+ outline: e.value.table.td.outline
296
+ },
297
+ breakpoint: e.value.table.responsiveBreakpoint
298
+ };
299
+ return {
300
+ colNames: [
301
+ e.value.table.columnNames.series,
302
+ e.value.table.columnNames.value
303
+ ],
304
+ head: t,
305
+ body: o,
306
+ config: a
307
+ };
308
+ }), E = c(!1);
309
+ function pe(t) {
310
+ E.value = t, z.value += 1;
311
+ }
312
+ function be() {
313
+ return I.value;
314
+ }
315
+ function oe() {
316
+ W.value.showTable = !W.value.showTable;
317
+ }
318
+ return O({
319
+ getData: be,
320
+ generateCsv: ae,
321
+ generatePdf: ee,
322
+ generateImage: te,
323
+ toggleTable: oe
324
+ }), (t, o) => (r(), v("div", {
325
+ class: "vue-ui-word-cloud",
326
+ ref_key: "wordCloudChart",
327
+ ref: x,
328
+ id: `wordCloud_${T.value}`,
329
+ style: _(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
330
+ }, [
331
+ e.value.style.chart.title.text ? (r(), v("div", {
332
+ key: 0,
333
+ ref_key: "chartTitle",
334
+ ref: b,
335
+ style: _(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
336
+ }, [
337
+ (r(), A(je, {
338
+ key: `title_${y.value}`,
339
+ config: {
340
+ title: {
341
+ ...e.value.style.chart.title
342
+ },
343
+ subtitle: {
344
+ ...e.value.style.chart.title.subtitle
345
+ }
346
+ }
347
+ }, null, 8, ["config"]))
348
+ ], 4)) : N("", !0),
349
+ e.value.userOptions.show && w.value ? (r(), A(He, {
350
+ ref: "details",
351
+ key: `user_option_${z.value}`,
352
+ backgroundColor: e.value.style.chart.backgroundColor,
353
+ color: e.value.style.chart.color,
354
+ isPrinting: C(Q),
355
+ isImaging: C(Z),
356
+ uid: T.value,
357
+ hasPdf: e.value.userOptions.buttons.pdf,
358
+ hasXls: e.value.userOptions.buttons.csv,
359
+ hasImg: e.value.userOptions.buttons.img,
360
+ hasTable: e.value.userOptions.buttons.table,
361
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
362
+ isFullscreen: E.value,
363
+ titles: { ...e.value.userOptions.buttonTitles },
364
+ chartElement: x.value,
365
+ onToggleFullscreen: pe,
366
+ onGeneratePdf: C(ee),
367
+ onGenerateCsv: ae,
368
+ onGenerateImage: C(te),
369
+ onToggleTable: oe
370
+ }, ze({ _: 2 }, [
371
+ t.$slots.optionPdf ? {
372
+ name: "optionPdf",
373
+ fn: m(() => [
374
+ f(t.$slots, "optionPdf", {}, void 0, !0)
375
+ ]),
376
+ key: "0"
377
+ } : void 0,
378
+ t.$slots.optionCsv ? {
379
+ name: "optionCsv",
380
+ fn: m(() => [
381
+ f(t.$slots, "optionCsv", {}, void 0, !0)
382
+ ]),
383
+ key: "1"
384
+ } : void 0,
385
+ t.$slots.optionImg ? {
386
+ name: "optionImg",
387
+ fn: m(() => [
388
+ f(t.$slots, "optionImg", {}, void 0, !0)
389
+ ]),
390
+ key: "2"
391
+ } : void 0,
392
+ t.$slots.optionTable ? {
393
+ name: "optionTable",
394
+ fn: m(() => [
395
+ f(t.$slots, "optionTable", {}, void 0, !0)
396
+ ]),
397
+ key: "3"
398
+ } : void 0,
399
+ t.$slots.optionFullscreen ? {
400
+ name: "optionFullscreen",
401
+ fn: m(({ toggleFullscreen: a, isFullscreen: i }) => [
402
+ f(t.$slots, "optionFullscreen", q(H({ toggleFullscreen: a, isFullscreen: i })), void 0, !0)
403
+ ]),
404
+ key: "4"
405
+ } : void 0
406
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : N("", !0),
407
+ w.value ? (r(), v("svg", {
408
+ key: 2,
409
+ class: se({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
410
+ xmlns: C(Ge),
411
+ viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
412
+ style: _(`overflow:visible;background:${e.value.style.chart.backgroundColor};`)
413
+ }, [
414
+ k("g", {
415
+ transform: `translate(${(n.value.width <= 0 ? 10 : n.value.width) / 2}, ${(n.value.height <= 0 ? 10 : n.value.height) / 2})`
416
+ }, [
417
+ (r(!0), v(Ie, null, Ae(I.value, (a, i) => (r(), v("g", null, [
418
+ (r(), v("text", {
419
+ fill: a.color,
420
+ "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
421
+ key: i,
422
+ x: a.x,
423
+ y: a.y,
424
+ "font-size": a.fontSize,
425
+ transform: `translate(${a.width / 2}, ${a.height / 2})`,
426
+ style: _(`animation-delay:${i * e.value.animationDelayMs}ms !important`),
427
+ class: se({ animated: e.value.useCssAnimation }),
428
+ "text-anchor": "middle",
429
+ "dominant-baseline": "middle"
430
+ }, ne(a.name), 15, ht))
431
+ ]))), 256))
432
+ ], 8, vt),
433
+ f(t.$slots, "svg", {
434
+ svg: { height: n.value.height, width: n.value.width }
435
+ }, void 0, !0)
436
+ ], 14, dt)) : N("", !0),
437
+ t.$slots.watermark ? (r(), v("div", mt, [
438
+ f(t.$slots, "watermark", q(H({ isPrinting: C(Q) || C(Z) })), void 0, !0)
439
+ ])) : N("", !0),
440
+ k("div", {
441
+ ref_key: "chartSlicer",
442
+ ref: J,
443
+ style: _(`width:100%;background:${e.value.style.chart.backgroundColor}`),
444
+ "data-html2canvas-ignore": ""
445
+ }, [
446
+ e.value.style.chart.zoom.show ? (r(), A(it, {
447
+ key: 0,
448
+ value: h.value,
449
+ "onUpdate:value": o[0] || (o[0] = (a) => h.value = a),
450
+ min: 100,
451
+ max: e.value.style.chart.width * 3,
452
+ textColor: e.value.style.chart.color,
453
+ inputColor: e.value.style.chart.zoom.color,
454
+ selectColor: e.value.style.chart.zoom.highlightColor,
455
+ useResetSlot: e.value.style.chart.zoom.useResetSlot,
456
+ background: e.value.style.chart.zoom.color,
457
+ borderColor: e.value.style.chart.backgroundColor,
458
+ source: e.value.style.chart.width,
459
+ onReset: me
460
+ }, {
461
+ "reset-action": m(({ reset: a }) => [
462
+ f(t.$slots, "reset-action", q(H({ reset: a })), void 0, !0)
463
+ ]),
464
+ _: 3
465
+ }, 8, ["value", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : N("", !0)
466
+ ], 4),
467
+ w.value ? (r(), A(Qe, {
468
+ key: 4,
469
+ hideDetails: "",
470
+ config: {
471
+ open: W.value.showTable,
472
+ maxHeight: 1e4,
473
+ body: {
474
+ backgroundColor: e.value.style.chart.backgroundColor,
475
+ color: e.value.style.chart.color
476
+ },
477
+ head: {
478
+ backgroundColor: e.value.style.chart.backgroundColor,
479
+ color: e.value.style.chart.color
480
+ }
481
+ }
482
+ }, {
483
+ content: m(() => [
484
+ (r(), A(Ze, {
485
+ key: `table_${$.value}`,
486
+ colNames: B.value.colNames,
487
+ head: B.value.head,
488
+ body: B.value.body,
489
+ config: B.value.config,
490
+ title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
491
+ onClose: o[1] || (o[1] = (a) => W.value.showTable = !1)
492
+ }, {
493
+ th: m(({ th: a }) => [
494
+ k("div", {
495
+ innerHTML: a,
496
+ style: { display: "flex", "align-items": "center" }
497
+ }, null, 8, ft)
498
+ ]),
499
+ td: m(({ td: a }) => [
500
+ Oe(ne(a.name || a), 1)
501
+ ]),
502
+ _: 1
503
+ }, 8, ["colNames", "head", "body", "config", "title"]))
504
+ ]),
505
+ _: 1
506
+ }, 8, ["config"])) : N("", !0)
507
+ ], 12, ct));
508
+ }
509
+ }, Nt = /* @__PURE__ */ de(gt, [["__scopeId", "data-v-99140d4f"]]);
510
+ export {
511
+ Nt as default
512
+ };