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
@@ -1,498 +0,0 @@
1
- import { useCssVars as we, computed as f, openBlock as i, createElementBlock as v, createVNode as q, renderSlot as m, createElementVNode as C, normalizeStyle as N, pushScopeId as xe, popScopeId as $e, ref as c, watch as te, onMounted as Se, onBeforeUnmount as Fe, createCommentVNode as F, createBlock as L, unref as p, createSlots as Ne, withCtx as h, normalizeProps as X, guardReactiveProps as j, normalizeClass as ae, Fragment as _e, renderList as Pe, toDisplayString as oe, createTextVNode as Te, nextTick as le } from "vue";
2
- import { u as ze, W as Ie, s as Ae, c as se, t as Oe, a as Me, p as E, o as We, e as ne, g as De, f as Be, X as Ee, q as Re, r as Ue } from "./index-Dvs5Ra-u.js";
3
- import { _ as Ve } from "./Title-Ngy9HNqO.js";
4
- import { u as Ge, U as Le } from "./usePrinter-B8-keRMa.js";
5
- import { d as Xe, t as je, u as qe } from "./useResponsive-NZB-WLRF.js";
6
- import He from "./vue-ui-accordion-C-qAry7P.js";
7
- import { D as Ye } from "./DataTable-BOdJVZzF.js";
8
- import Je from "./BaseIcon-_V_BEdy8.js";
9
- import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { u as re } from "./useNestedProp-UohhCyBz.js";
11
- const Ke = (r) => (xe("data-v-3fd7d274"), r = r(), $e(), r), Qe = { "data-html2canvas-ignore": "" }, Ze = {
12
- key: 0,
13
- class: "reset-wrapper"
14
- }, et = {
15
- key: 1,
16
- class: "reset-wrapper"
17
- }, tt = { class: "mono-slicer" }, at = /* @__PURE__ */ Ke(() => /* @__PURE__ */ C("div", { class: "slider-track" }, null, -1)), ot = ["min", "max", "value"], lt = {
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(r, { emit: I }) {
63
- const s = r;
64
- we((b) => ({
65
- "90ad3208": R.value,
66
- "4f9eef70": P.value,
67
- "6e07ae3e": _.value,
68
- "2fd430a0": r.selectColor,
69
- "6b8169a4": k.value
70
- }));
71
- const R = f(() => s.inputColor), k = f(() => s.background), _ = f(() => `${s.selectColor}33`), P = f(() => s.borderColor);
72
- function T() {
73
- I("reset");
74
- }
75
- const w = f(() => {
76
- const b = s.max - s.min, e = 0, x = (s.value - s.min) / b * 100;
77
- return {
78
- left: `${e}%`,
79
- width: `${x - e}%`,
80
- background: s.selectColor
81
- };
82
- });
83
- return (b, e) => (i(), v("div", Qe, [
84
- r.value !== r.source ? (i(), v("div", Ze, [
85
- r.useResetSlot ? m(b.$slots, "reset-action", {
86
- key: 1,
87
- reset: T
88
- }, void 0, !0) : (i(), v("button", {
89
- key: 0,
90
- "data-cy-reset": "",
91
- tabindex: "0",
92
- role: "button",
93
- class: "vue-data-ui-refresh-button",
94
- onClick: T
95
- }, [
96
- q(Je, {
97
- name: "refresh",
98
- stroke: r.textColor
99
- }, null, 8, ["stroke"])
100
- ]))
101
- ])) : (i(), v("div", et)),
102
- C("div", tt, [
103
- at,
104
- C("div", {
105
- class: "range-highlight",
106
- style: N(w.value)
107
- }, null, 4),
108
- C("input", {
109
- type: "range",
110
- min: r.min,
111
- max: r.max,
112
- value: Number(r.value),
113
- onInput: e[0] || (e[0] = (x) => I("update:value", Number(x.target.value)))
114
- }, null, 40, ot)
115
- ])
116
- ]));
117
- }
118
- }, st = /* @__PURE__ */ ue(lt, [["__scopeId", "data-v-3fd7d274"]]), nt = ["id"], rt = ["xmlns", "viewBox"], ut = ["transform"], it = ["fill", "font-weight", "x", "y", "font-size", "transform"], ct = {
119
- key: 3,
120
- class: "vue-data-ui-watermark"
121
- }, dt = ["innerHTML"], vt = {
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(r, { expose: I }) {
138
- const s = r, { vue_ui_word_cloud: R } = ze(), k = f({
139
- get() {
140
- return !!s.dataset && s.dataset.length;
141
- },
142
- set(t) {
143
- return t;
144
- }
145
- }), _ = c(typeof s.dataset == "string" ? Ie(s.dataset) : s.dataset.map((t) => ({
146
- ...t,
147
- value: Ae(t.value)
148
- }))), P = c(se()), T = c(0), w = c(null), b = c(null), e = f(() => {
149
- const t = re({
150
- userConfig: s.config,
151
- defaultConfig: R
152
- });
153
- return t.theme ? {
154
- ...re({
155
- userConfig: Oe.vue_ui_word_cloud[t.theme] || s.config,
156
- defaultConfig: t
157
- }),
158
- customPalette: Me[t.theme] || E
159
- } : t;
160
- }), x = c(null), g = c(e.value.style.chart.width), n = c({
161
- width: g.value,
162
- height: e.value.style.chart.height / e.value.style.chart.height * g.value,
163
- maxFontSize: e.value.style.chart.words.maxFontSize,
164
- minFontSize: e.value.style.chart.words.minFontSize
165
- }), ie = je(() => {
166
- const { width: t, height: o } = qe({
167
- chart: w.value,
168
- title: e.value.style.chart.title.text ? b.value : null,
169
- slicer: e.value.style.chart.zoom.show && x.value
170
- });
171
- n.value.width = t, n.value.height = o, le(U);
172
- });
173
- te(() => g.value, () => {
174
- ce();
175
- });
176
- const ce = Xe(() => {
177
- n.value.width = Number(g.value), n.value.height = e.value.style.chart.height / e.value.style.chart.height * Number(g.value), U();
178
- }, 10);
179
- function de() {
180
- g.value = e.value.style.chart.width;
181
- }
182
- const A = c(null);
183
- Se(() => {
184
- We(s.dataset) ? ne({
185
- componentName: "VueUiWordCloud",
186
- type: "dataset"
187
- }) : _.value.forEach((t, o) => {
188
- De({
189
- datasetObject: t,
190
- requiredAttributes: ["name", "value"]
191
- }).forEach((a) => {
192
- k.value = !1, ne({
193
- componentName: "VueUiWordCloud",
194
- type: "datasetSerieAttribute",
195
- property: a,
196
- index: o
197
- });
198
- });
199
- }), e.value.responsive && (A.value = new ResizeObserver(ie), A.value.observe(w.value.parentNode));
200
- }), Fe(() => {
201
- A.value && A.value.disconnect();
202
- });
203
- const { isPrinting: H, isImaging: Y, generatePdf: J, generateImage: K } = Ge({
204
- elementId: `wordCloud_${P.value}`,
205
- fileName: e.value.style.chart.title.text || "vue-ui-word-cloud"
206
- }), O = c({
207
- showTable: e.value.table.show
208
- });
209
- function ve(t, o, a = "Arial") {
210
- const l = document.createElement("canvas").getContext("2d");
211
- return l.font = `${o}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${a}`, {
212
- width: l.measureText(t).width + e.value.style.chart.words.proximity,
213
- height: o
214
- };
215
- }
216
- function he(t, o) {
217
- 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;
218
- }
219
- function me(t, o, a) {
220
- const u = [], l = { x: -o / 2, y: -a / 2, width: o, height: a }, d = 0, $ = 0;
221
- return t.forEach((S) => {
222
- let V = !1;
223
- for (let B = 0; B < Math.max(o, a) / 2 && !V; B += e.value.style.chart.words.packingWeight)
224
- for (let G = 0; G < 360 && !V; G += e.value.style.chart.words.packingWeight) {
225
- const ee = G * Math.PI / 180, ye = d + B * Math.cos(ee) - S.width / 2, be = $ + B * Math.sin(ee) - S.height / 2, y = { ...S, x: ye, y: be }, pe = y.x >= l.x && y.y >= l.y && y.x + y.width <= l.x + l.width && y.y + y.height <= l.y + l.height, Ce = u.some((ke) => he(y, ke));
226
- pe && !Ce && (u.push(y), V = !0);
227
- }
228
- }), u;
229
- }
230
- const z = c([]);
231
- te(() => s.dataset, U, { immediate: !0 });
232
- function U() {
233
- const t = _.value.map((l) => l.value), o = Math.max(...t), a = Math.min(...t), u = _.value.map((l, d) => {
234
- const $ = (l.value - a) / (o - a) * (n.value.maxFontSize - n.value.minFontSize) + n.value.minFontSize, S = ve(l.name, $);
235
- return {
236
- ...l,
237
- id: se(),
238
- fontSize: $,
239
- width: S.width,
240
- height: S.height,
241
- color: e.value.style.chart.words.usePalette ? e.value.customPalette[d] || e.value.customPalette[d % e.value.customPalette.length] || E[d] || E[d % E.length] : e.value.style.chart.words.color
242
- };
243
- });
244
- z.value = me(u, n.value.width, n.value.height).sort((l, d) => d.fontSize - l.fontSize);
245
- }
246
- const M = f(() => {
247
- const t = z.value.map((a) => ({
248
- name: a.name,
249
- color: a.color
250
- })), o = z.value.map((a) => a.value);
251
- return { head: t, body: o };
252
- });
253
- function Q() {
254
- le(() => {
255
- const t = M.value.head.map((u, l) => [[
256
- u.name
257
- ], [M.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 = Re(o);
258
- Ue({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
259
- });
260
- }
261
- const W = f(() => {
262
- const t = [
263
- e.value.table.columnNames.series,
264
- e.value.table.columnNames.value
265
- ], o = M.value.head.map((l, d) => {
266
- const $ = Be({ p: e.value.table.td.prefix, v: M.value.body[d], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
267
- return [
268
- {
269
- color: l.color,
270
- name: l.name
271
- },
272
- $
273
- ];
274
- }), a = {
275
- th: {
276
- backgroundColor: e.value.table.th.backgroundColor,
277
- color: e.value.table.th.color,
278
- outline: e.value.table.th.outline
279
- },
280
- td: {
281
- backgroundColor: e.value.table.td.backgroundColor,
282
- color: e.value.table.td.color,
283
- outline: e.value.table.td.outline
284
- },
285
- breakpoint: e.value.table.responsiveBreakpoint
286
- };
287
- return {
288
- colNames: [
289
- e.value.table.columnNames.series,
290
- e.value.table.columnNames.value
291
- ],
292
- head: t,
293
- body: o,
294
- config: a
295
- };
296
- }), D = c(!1);
297
- function fe(t) {
298
- D.value = t, T.value += 1;
299
- }
300
- function ge() {
301
- return z.value;
302
- }
303
- function Z() {
304
- O.value.showTable = !O.value.showTable;
305
- }
306
- return I({
307
- getData: ge,
308
- generateCsv: Q,
309
- generatePdf: J,
310
- generateImage: K,
311
- toggleTable: Z
312
- }), (t, o) => (i(), v("div", {
313
- class: "vue-ui-word-cloud",
314
- ref_key: "wordCloudChart",
315
- ref: w,
316
- id: `wordCloud_${P.value}`,
317
- style: N(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
318
- }, [
319
- e.value.style.chart.title.text ? (i(), v("div", {
320
- key: 0,
321
- ref_key: "chartTitle",
322
- ref: b,
323
- style: N(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
324
- }, [
325
- q(Ve, {
326
- config: {
327
- title: {
328
- ...e.value.style.chart.title
329
- },
330
- subtitle: {
331
- ...e.value.style.chart.title.subtitle
332
- }
333
- }
334
- }, null, 8, ["config"])
335
- ], 4)) : F("", !0),
336
- e.value.userOptions.show && k.value ? (i(), L(Le, {
337
- ref: "details",
338
- key: `user_option_${T.value}`,
339
- backgroundColor: e.value.style.chart.backgroundColor,
340
- color: e.value.style.chart.color,
341
- isPrinting: p(H),
342
- isImaging: p(Y),
343
- uid: P.value,
344
- hasPdf: e.value.userOptions.buttons.pdf,
345
- hasXls: e.value.userOptions.buttons.csv,
346
- hasImg: e.value.userOptions.buttons.img,
347
- hasTable: e.value.userOptions.buttons.table,
348
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
349
- isFullscreen: D.value,
350
- titles: { ...e.value.userOptions.buttonTitles },
351
- chartElement: w.value,
352
- onToggleFullscreen: fe,
353
- onGeneratePdf: p(J),
354
- onGenerateCsv: Q,
355
- onGenerateImage: p(K),
356
- onToggleTable: Z
357
- }, Ne({ _: 2 }, [
358
- t.$slots.optionPdf ? {
359
- name: "optionPdf",
360
- fn: h(() => [
361
- m(t.$slots, "optionPdf", {}, void 0, !0)
362
- ]),
363
- key: "0"
364
- } : void 0,
365
- t.$slots.optionCsv ? {
366
- name: "optionCsv",
367
- fn: h(() => [
368
- m(t.$slots, "optionCsv", {}, void 0, !0)
369
- ]),
370
- key: "1"
371
- } : void 0,
372
- t.$slots.optionImg ? {
373
- name: "optionImg",
374
- fn: h(() => [
375
- m(t.$slots, "optionImg", {}, void 0, !0)
376
- ]),
377
- key: "2"
378
- } : void 0,
379
- t.$slots.optionTable ? {
380
- name: "optionTable",
381
- fn: h(() => [
382
- m(t.$slots, "optionTable", {}, void 0, !0)
383
- ]),
384
- key: "3"
385
- } : void 0,
386
- t.$slots.optionFullscreen ? {
387
- name: "optionFullscreen",
388
- fn: h(({ toggleFullscreen: a, isFullscreen: u }) => [
389
- m(t.$slots, "optionFullscreen", X(j({ toggleFullscreen: a, isFullscreen: u })), void 0, !0)
390
- ]),
391
- key: "4"
392
- } : void 0
393
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : F("", !0),
394
- k.value ? (i(), v("svg", {
395
- key: 2,
396
- class: ae({ "vue-data-ui-fullscreen--on": D.value, "vue-data-ui-fulscreen--off": !D.value }),
397
- xmlns: p(Ee),
398
- viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
399
- style: N(`overflow:visible;background:${e.value.style.chart.backgroundColor};`)
400
- }, [
401
- C("g", {
402
- transform: `translate(${(n.value.width <= 0 ? 10 : n.value.width) / 2}, ${(n.value.height <= 0 ? 10 : n.value.height) / 2})`
403
- }, [
404
- (i(!0), v(_e, null, Pe(z.value, (a, u) => (i(), v("g", null, [
405
- (i(), v("text", {
406
- fill: a.color,
407
- "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
408
- key: u,
409
- x: a.x,
410
- y: a.y,
411
- "font-size": a.fontSize,
412
- transform: `translate(${a.width / 2}, ${a.height / 2})`,
413
- style: N(`animation-delay:${u * e.value.animationDelayMs}ms !important`),
414
- class: ae({ animated: e.value.useCssAnimation }),
415
- "text-anchor": "middle",
416
- "dominant-baseline": "middle"
417
- }, oe(a.name), 15, it))
418
- ]))), 256))
419
- ], 8, ut),
420
- m(t.$slots, "svg", {
421
- svg: { height: n.value.height, width: n.value.width }
422
- }, void 0, !0)
423
- ], 14, rt)) : F("", !0),
424
- t.$slots.watermark ? (i(), v("div", ct, [
425
- m(t.$slots, "watermark", X(j({ isPrinting: p(H) || p(Y) })), void 0, !0)
426
- ])) : F("", !0),
427
- C("div", {
428
- ref_key: "chartSlicer",
429
- ref: x,
430
- style: N(`width:100%;background:${e.value.style.chart.backgroundColor}`),
431
- "data-html2canvas-ignore": ""
432
- }, [
433
- e.value.style.chart.zoom.show ? (i(), L(st, {
434
- key: 0,
435
- value: g.value,
436
- "onUpdate:value": o[0] || (o[0] = (a) => g.value = a),
437
- min: 100,
438
- max: e.value.style.chart.width * 3,
439
- textColor: e.value.style.chart.color,
440
- inputColor: e.value.style.chart.zoom.color,
441
- selectColor: e.value.style.chart.zoom.highlightColor,
442
- useResetSlot: e.value.style.chart.zoom.useResetSlot,
443
- background: e.value.style.chart.zoom.color,
444
- borderColor: e.value.style.chart.backgroundColor,
445
- source: e.value.style.chart.width,
446
- onReset: de
447
- }, {
448
- "reset-action": h(({ reset: a }) => [
449
- m(t.$slots, "reset-action", X(j({ reset: a })), void 0, !0)
450
- ]),
451
- _: 3
452
- }, 8, ["value", "max", "textColor", "inputColor", "selectColor", "useResetSlot", "background", "borderColor", "source"])) : F("", !0)
453
- ], 4),
454
- k.value ? (i(), L(He, {
455
- key: 4,
456
- hideDetails: "",
457
- config: {
458
- open: O.value.showTable,
459
- maxHeight: 1e4,
460
- body: {
461
- backgroundColor: e.value.style.chart.backgroundColor,
462
- color: e.value.style.chart.color
463
- },
464
- head: {
465
- backgroundColor: e.value.style.chart.backgroundColor,
466
- color: e.value.style.chart.color
467
- }
468
- }
469
- }, {
470
- content: h(() => [
471
- q(Ye, {
472
- colNames: W.value.colNames,
473
- head: W.value.head,
474
- body: W.value.body,
475
- config: W.value.config,
476
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
477
- onClose: o[1] || (o[1] = (a) => O.value.showTable = !1)
478
- }, {
479
- th: h(({ th: a }) => [
480
- C("div", {
481
- innerHTML: a,
482
- style: { display: "flex", "align-items": "center" }
483
- }, null, 8, dt)
484
- ]),
485
- td: h(({ td: a }) => [
486
- Te(oe(a.name || a), 1)
487
- ]),
488
- _: 1
489
- }, 8, ["colNames", "head", "body", "config", "title"])
490
- ]),
491
- _: 1
492
- }, 8, ["config"])) : F("", !0)
493
- ], 12, nt));
494
- }
495
- }, xt = /* @__PURE__ */ ue(vt, [["__scopeId", "data-v-4e5216cf"]]);
496
- export {
497
- xt as default
498
- };