vue-data-ui 2.3.93 → 2.3.95

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 (147) hide show
  1. package/dist/{Arrow-tI6NQ7Cn.js → Arrow-ClB1PHpS.js} +1 -1
  2. package/dist/{Arrow-DvOpIAlY.cjs → Arrow-OPbsbOoM.cjs} +1 -1
  3. package/dist/{BaseIcon-CNOWc7Xz.cjs → BaseIcon-CGKu0qTV.cjs} +1 -1
  4. package/dist/{BaseIcon-4CP9SAhe.js → BaseIcon-ZChy8GeS.js} +1 -1
  5. package/dist/{DataTable-BUgJSK3f.js → DataTable-B9SSwFM2.js} +2 -2
  6. package/dist/{DataTable-DhUk55WP.cjs → DataTable-CUi5w5e6.cjs} +1 -1
  7. package/dist/{Legend-C2KtRxbi.js → Legend-D4PxDNTf.js} +1 -1
  8. package/dist/{Legend-WO0bF0ud.cjs → Legend-DP-Tm5Kr.cjs} +1 -1
  9. package/dist/{PackageVersion-B_T5VqI7.cjs → PackageVersion-DdGAD2ox.cjs} +1 -1
  10. package/dist/{PackageVersion-Cy2QrPIN.js → PackageVersion-I1_4jcn_.js} +1 -1
  11. package/dist/{Shape-CvvlB7a8.cjs → Shape-DRb45Knl.cjs} +1 -1
  12. package/dist/{Shape-ovEGVZTS.js → Shape-DVc7K58k.js} +1 -1
  13. package/dist/{Slicer-C4yPLRzp.js → Slicer-Bk9LTQad.js} +15 -15
  14. package/dist/{Slicer-ChxIxUKY.cjs → Slicer-D7S48Lno.cjs} +1 -1
  15. package/dist/{Title-CczWCvrd.js → Title-Cxlu3Etv.js} +1 -1
  16. package/dist/{Title-BRktfjVS.cjs → Title-DcXqsD3c.cjs} +1 -1
  17. package/dist/{Tooltip-CLelGHFy.js → Tooltip-Bt9pHzBM.js} +1 -1
  18. package/dist/{Tooltip-iisamh_I.cjs → Tooltip-onlvaIFL.cjs} +1 -1
  19. package/dist/index-BwtKB_oG.cjs +9 -0
  20. package/dist/{index-B9ExL-Ae.js → index-DK7qqHGP.js} +725 -705
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1 -0
  23. package/dist/types/vue-data-ui.d.ts +1 -0
  24. package/dist/{useNestedProp-BI1wvb44.js → useNestedProp-0nRX_rTi.js} +1 -1
  25. package/dist/{useNestedProp-CQjoDc6x.cjs → useNestedProp-CE6ustAp.cjs} +1 -1
  26. package/dist/{usePrinter-BYx8odJu.cjs → usePrinter-BMJj8aqh.cjs} +1 -1
  27. package/dist/{usePrinter-CUStN20z.js → usePrinter-Cza87yNE.js} +1 -1
  28. package/dist/{vue-data-ui-CUhpUmv_.js → vue-data-ui-C_TmwtMr.js} +57 -57
  29. package/dist/{vue-data-ui-Bn0hx7hG.cjs → vue-data-ui-Hk08-jMu.cjs} +1 -1
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +5 -5
  32. package/dist/{vue-ui-3d-bar-CxlYseaq.js → vue-ui-3d-bar-C7dVjCP4.js} +8 -8
  33. package/dist/{vue-ui-3d-bar-BL-ZhuNx.cjs → vue-ui-3d-bar-DLpRGWHF.cjs} +1 -1
  34. package/dist/{vue-ui-accordion-SZPrlCJb.js → vue-ui-accordion-5C4CP3gA.js} +3 -3
  35. package/dist/{vue-ui-accordion-DzbFctbI.cjs → vue-ui-accordion-CM2NnUan.cjs} +1 -1
  36. package/dist/{vue-ui-age-pyramid-vnFYLLSN.cjs → vue-ui-age-pyramid-CTvGXHzp.cjs} +1 -1
  37. package/dist/{vue-ui-age-pyramid-B1IVehHW.js → vue-ui-age-pyramid-mLYneMWu.js} +9 -9
  38. package/dist/{vue-ui-annotator-DGedspml.js → vue-ui-annotator-BB0EN1X8.js} +1 -1
  39. package/dist/{vue-ui-annotator-Cv6XubR6.cjs → vue-ui-annotator-CPZoIz9j.cjs} +1 -1
  40. package/dist/{vue-ui-candlestick-DGN9u4Fc.js → vue-ui-candlestick-91SHWtIZ.js} +10 -10
  41. package/dist/{vue-ui-candlestick-CIJdWFvp.cjs → vue-ui-candlestick-BqH7QdhN.cjs} +1 -1
  42. package/dist/{vue-ui-carousel-table-kawG2Va2.cjs → vue-ui-carousel-table-Cj9K0i-8.cjs} +1 -1
  43. package/dist/{vue-ui-carousel-table-BgDKAsLu.js → vue-ui-carousel-table-Dvr8K0wL.js} +4 -4
  44. package/dist/{vue-ui-chestnut-mz-4OECX.cjs → vue-ui-chestnut-BMbO3LQx.cjs} +1 -1
  45. package/dist/{vue-ui-chestnut-CtFOgJmT.js → vue-ui-chestnut-C8-hqYVj.js} +7 -7
  46. package/dist/{vue-ui-cursor-BVS2YR2w.cjs → vue-ui-cursor-CiNq70Vh.cjs} +1 -1
  47. package/dist/{vue-ui-cursor-BJ2nafdy.js → vue-ui-cursor-fOFRnGWg.js} +2 -2
  48. package/dist/{vue-ui-dashboard-D93KqjL8.js → vue-ui-dashboard-XROIeMZs.js} +2 -2
  49. package/dist/{vue-ui-dashboard-wvzwXNCc.cjs → vue-ui-dashboard-emcX9lzJ.cjs} +1 -1
  50. package/dist/{vue-ui-digits-CTpbhzau.js → vue-ui-digits-Dao_RHVG.js} +2 -2
  51. package/dist/{vue-ui-digits-2e8Z2Ynp.cjs → vue-ui-digits-Fx6hf8lh.cjs} +1 -1
  52. package/dist/vue-ui-donut-Bf7irbZr.cjs +1 -0
  53. package/dist/vue-ui-donut-D5q_f9RX.js +1032 -0
  54. package/dist/{vue-ui-donut-evolution-DJpu3Zul.cjs → vue-ui-donut-evolution-Dnx-o2Ok.cjs} +1 -1
  55. package/dist/{vue-ui-donut-evolution-Cj4VUlYA.js → vue-ui-donut-evolution-ciU7PKzb.js} +53 -53
  56. package/dist/{vue-ui-dumbbell-DW9hFZTK.cjs → vue-ui-dumbbell-DkX4VmBe.cjs} +1 -1
  57. package/dist/{vue-ui-dumbbell-B5K8A6JO.js → vue-ui-dumbbell-nLr7lvcv.js} +9 -9
  58. package/dist/{vue-ui-flow-D7G8pT5u.js → vue-ui-flow-B6HJtYfr.js} +20 -20
  59. package/dist/{vue-ui-flow-BPZIx63s.cjs → vue-ui-flow-smeC886u.cjs} +1 -1
  60. package/dist/{vue-ui-galaxy-CJwQngRy.cjs → vue-ui-galaxy-Buek4k31.cjs} +1 -1
  61. package/dist/{vue-ui-galaxy-zxi6Dh6-.js → vue-ui-galaxy-Ts-pIaqK.js} +23 -23
  62. package/dist/{vue-ui-gauge-BCOp8MfJ.cjs → vue-ui-gauge-CB1FXw50.cjs} +1 -1
  63. package/dist/{vue-ui-gauge-Dl84wBq2.js → vue-ui-gauge-CokjkUw7.js} +19 -19
  64. package/dist/{vue-ui-gizmo-PUYvN73T.cjs → vue-ui-gizmo-CQzBf-wG.cjs} +1 -1
  65. package/dist/{vue-ui-gizmo-BGeEyNk4.js → vue-ui-gizmo-DcGemMpp.js} +3 -3
  66. package/dist/{vue-ui-heatmap-9Upu_lU9.cjs → vue-ui-heatmap-B3eEfpF_.cjs} +1 -1
  67. package/dist/{vue-ui-heatmap-B98p2zoa.js → vue-ui-heatmap-BBVeSW2b.js} +9 -9
  68. package/dist/{vue-ui-kpi-BjucxBZ5.cjs → vue-ui-kpi-0FoMbSuC.cjs} +1 -1
  69. package/dist/{vue-ui-kpi-1_lGwzeP.js → vue-ui-kpi-CPMnrH0b.js} +3 -3
  70. package/dist/{vue-ui-mini-loader-OY5XrOYB.cjs → vue-ui-mini-loader-DNrvLX3D.cjs} +1 -1
  71. package/dist/{vue-ui-mini-loader-B6595FMr.js → vue-ui-mini-loader-Dpn4tXn2.js} +2 -2
  72. package/dist/{vue-ui-molecule-DaJsYbo1.js → vue-ui-molecule-C98VGiyq.js} +29 -29
  73. package/dist/{vue-ui-molecule-xmP8sBoH.cjs → vue-ui-molecule-CKFgcQYg.cjs} +1 -1
  74. package/dist/{vue-ui-mood-radar-CdGd-5lQ.js → vue-ui-mood-radar-CD3cjrDN.js} +21 -21
  75. package/dist/{vue-ui-mood-radar-CB1zZjs3.cjs → vue-ui-mood-radar-DN0allOW.cjs} +1 -1
  76. package/dist/{vue-ui-nested-donuts-CYmpCetP.js → vue-ui-nested-donuts-B__WecmQ.js} +46 -46
  77. package/dist/{vue-ui-nested-donuts-BkKTALZ7.cjs → vue-ui-nested-donuts-Bdl_tUXJ.cjs} +1 -1
  78. package/dist/{vue-ui-onion-BuimOxUF.cjs → vue-ui-onion-4g5ewsye.cjs} +1 -1
  79. package/dist/{vue-ui-onion-BOi0j3dJ.js → vue-ui-onion-U8VRuYjQ.js} +10 -10
  80. package/dist/{vue-ui-parallel-coordinate-plot-DfRYipb8.js → vue-ui-parallel-coordinate-plot-9WvsfJtY.js} +11 -11
  81. package/dist/{vue-ui-parallel-coordinate-plot-Bah-cYZ5.cjs → vue-ui-parallel-coordinate-plot-CdegwDSr.cjs} +1 -1
  82. package/dist/{vue-ui-quadrant-CVUZ1p2G.cjs → vue-ui-quadrant-D2SDPxFH.cjs} +1 -1
  83. package/dist/{vue-ui-quadrant-39hB1-rW.js → vue-ui-quadrant-DMto8r-E.js} +11 -11
  84. package/dist/{vue-ui-quick-chart-DJET2y_F.cjs → vue-ui-quick-chart-BLom9Z1d.cjs} +1 -1
  85. package/dist/{vue-ui-quick-chart-8aeQmszL.js → vue-ui-quick-chart-YlkEojCz.js} +8 -8
  86. package/dist/{vue-ui-radar-mk61hrfQ.cjs → vue-ui-radar-DdPAZvLB.cjs} +1 -1
  87. package/dist/{vue-ui-radar-BHV5OcIH.js → vue-ui-radar-lg4R0yio.js} +11 -11
  88. package/dist/{vue-ui-rating-Dt46yKur.cjs → vue-ui-rating-B7erplTm.cjs} +1 -1
  89. package/dist/{vue-ui-rating-D0eIeFuP.js → vue-ui-rating-BxV1W8_t.js} +7 -7
  90. package/dist/{vue-ui-relation-circle-CLWjo7gq.js → vue-ui-relation-circle-BviKM7qW.js} +6 -6
  91. package/dist/{vue-ui-relation-circle-D8tlElyL.cjs → vue-ui-relation-circle-RHy8p_Rq.cjs} +1 -1
  92. package/dist/{vue-ui-rings-BrcZ1Q6y.js → vue-ui-rings-Bn-nQaV1.js} +37 -37
  93. package/dist/{vue-ui-rings-CjOr2fTq.cjs → vue-ui-rings-DMksrRmV.cjs} +1 -1
  94. package/dist/{vue-ui-scatter-wq1Ygozo.js → vue-ui-scatter-BdTMgLFD.js} +34 -34
  95. package/dist/{vue-ui-scatter-DElf7q_o.cjs → vue-ui-scatter-DJ0wpNbL.cjs} +1 -1
  96. package/dist/{vue-ui-screenshot-WpUmWa8T.cjs → vue-ui-screenshot-D0XIDX5K.cjs} +1 -1
  97. package/dist/{vue-ui-screenshot-BD6eevS2.js → vue-ui-screenshot-beg_Jx2O.js} +1 -1
  98. package/dist/{vue-ui-skeleton-DokgyuHD.js → vue-ui-skeleton-CQnYuosp.js} +49 -49
  99. package/dist/{vue-ui-skeleton-7g5Z7tL8.cjs → vue-ui-skeleton-snFRuZgs.cjs} +1 -1
  100. package/dist/{vue-ui-smiley-BTzWzbXj.js → vue-ui-smiley-3x3w-9Zh.js} +2 -2
  101. package/dist/{vue-ui-smiley-M433_VGc.cjs → vue-ui-smiley-BUlMGmlz.cjs} +1 -1
  102. package/dist/{vue-ui-spark-trend-CVY2563q.cjs → vue-ui-spark-trend-Ds7Vnwpb.cjs} +1 -1
  103. package/dist/{vue-ui-spark-trend-DVYSjWgR.js → vue-ui-spark-trend-LsojHGxX.js} +20 -20
  104. package/dist/{vue-ui-sparkbar-CW6U_9yF.js → vue-ui-sparkbar-45yFHmFN.js} +4 -4
  105. package/dist/{vue-ui-sparkbar-B5bm048m.cjs → vue-ui-sparkbar-DJAZa23-.cjs} +1 -1
  106. package/dist/{vue-ui-sparkgauge-P6vT35bq.cjs → vue-ui-sparkgauge-CnMl3jNc.cjs} +1 -1
  107. package/dist/{vue-ui-sparkgauge-Da2vhyRe.js → vue-ui-sparkgauge-D-hauinY.js} +11 -11
  108. package/dist/{vue-ui-sparkhistogram-DgyNNNYs.js → vue-ui-sparkhistogram-DaeMxgM8.js} +5 -5
  109. package/dist/{vue-ui-sparkhistogram-BRE4BZ1r.cjs → vue-ui-sparkhistogram-vLsGWKZe.cjs} +1 -1
  110. package/dist/{vue-ui-sparkline-BNzFzh6O.cjs → vue-ui-sparkline-DDwGkMVO.cjs} +1 -1
  111. package/dist/{vue-ui-sparkline-B6F6GG5I.js → vue-ui-sparkline-Ddi4Jz8I.js} +21 -21
  112. package/dist/{vue-ui-sparkstackbar-DAZsawIt.js → vue-ui-sparkstackbar-1_EPRHfC.js} +4 -4
  113. package/dist/{vue-ui-sparkstackbar-uWzUzXeY.cjs → vue-ui-sparkstackbar-wbl8ZH9S.cjs} +1 -1
  114. package/dist/{vue-ui-stackbar-Dm2aCHhH.js → vue-ui-stackbar-0cKpezVg.js} +11 -11
  115. package/dist/{vue-ui-stackbar-DuvFbd8S.cjs → vue-ui-stackbar-BKojs76u.cjs} +1 -1
  116. package/dist/{vue-ui-strip-plot-XYPsVx2s.cjs → vue-ui-strip-plot-BPICqL2j.cjs} +1 -1
  117. package/dist/{vue-ui-strip-plot-B_j6rXqf.js → vue-ui-strip-plot-D_7VbcMM.js} +10 -10
  118. package/dist/{vue-ui-table-BZjBiutU.cjs → vue-ui-table-B1kfbP6Q.cjs} +1 -1
  119. package/dist/{vue-ui-table-Ba8yWxlH.js → vue-ui-table-BTdufdp5.js} +10 -10
  120. package/dist/{vue-ui-table-heatmap-ChZ4LL-2.cjs → vue-ui-table-heatmap-CrXS3ruF.cjs} +1 -1
  121. package/dist/{vue-ui-table-heatmap-B72rWSp8.js → vue-ui-table-heatmap-UKF0bVRc.js} +23 -23
  122. package/dist/{vue-ui-table-sparkline-g1tiRXu-.js → vue-ui-table-sparkline-CbhcBl__.js} +15 -15
  123. package/dist/{vue-ui-table-sparkline-D9KYyLun.cjs → vue-ui-table-sparkline-DnViPd7H.cjs} +1 -1
  124. package/dist/{vue-ui-thermometer-BUj-EXSI.js → vue-ui-thermometer-BTb0KKkD.js} +6 -6
  125. package/dist/{vue-ui-thermometer-Bx9kCvPP.cjs → vue-ui-thermometer-CGlN3EdJ.cjs} +1 -1
  126. package/dist/{vue-ui-timer-DgVg5v8D.cjs → vue-ui-timer-Ca8z8fpL.cjs} +1 -1
  127. package/dist/{vue-ui-timer-BMi1tOzP.js → vue-ui-timer-DsXON-oQ.js} +5 -5
  128. package/dist/{vue-ui-tiremarks-B8E61MPf.js → vue-ui-tiremarks-C2FsHymJ.js} +6 -6
  129. package/dist/{vue-ui-tiremarks-gGC8LSGo.cjs → vue-ui-tiremarks-DfQgIZ-v.cjs} +1 -1
  130. package/dist/{vue-ui-treemap-D5QTDSSq.js → vue-ui-treemap-COGNksGL.js} +10 -10
  131. package/dist/{vue-ui-treemap-Cha1rQBU.cjs → vue-ui-treemap-Ijgu5Uxo.cjs} +1 -1
  132. package/dist/{vue-ui-vertical-bar-BSzFwrWa.cjs → vue-ui-vertical-bar-C8q8aSVA.cjs} +1 -1
  133. package/dist/{vue-ui-vertical-bar-BL5Issc0.js → vue-ui-vertical-bar-CSk11lJL.js} +10 -10
  134. package/dist/{vue-ui-waffle-DxTyNZYn.cjs → vue-ui-waffle-BAFi3Ix0.cjs} +1 -1
  135. package/dist/{vue-ui-waffle-Dh08N5SM.js → vue-ui-waffle-nhWigJK4.js} +23 -23
  136. package/dist/{vue-ui-wheel-DyjcbZnB.cjs → vue-ui-wheel-CDcGk_zm.cjs} +1 -1
  137. package/dist/{vue-ui-wheel-DpywOj9b.js → vue-ui-wheel-DjPcnznT.js} +6 -6
  138. package/dist/{vue-ui-word-cloud-C7cBuLEd.cjs → vue-ui-word-cloud-BwgErpI2.cjs} +1 -1
  139. package/dist/{vue-ui-word-cloud-CEtvW8ZU.js → vue-ui-word-cloud-DFGYfQfb.js} +36 -36
  140. package/dist/{vue-ui-xy-C1EbGmWi.js → vue-ui-xy-BT3XcRoD.js} +28 -28
  141. package/dist/{vue-ui-xy-WnaajCFT.cjs → vue-ui-xy-CTxjevvM.cjs} +1 -1
  142. package/dist/{vue-ui-xy-canvas-nbhxY42M.js → vue-ui-xy-canvas-AgaDG8-s.js} +34 -34
  143. package/dist/{vue-ui-xy-canvas-7YaG0Huj.cjs → vue-ui-xy-canvas-BPRpgAOu.cjs} +1 -1
  144. package/package.json +1 -1
  145. package/dist/index-CYdWUfPi.cjs +0 -4
  146. package/dist/vue-ui-donut-CJ4HeqiO.cjs +0 -1
  147. package/dist/vue-ui-donut-CjkJB0CP.js +0 -871
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CYdWUfPi.cjs"),ye=require("./Title-BRktfjVS.cjs"),te=require("./usePrinter-BYx8odJu.cjs"),D=require("./useResponsive-B3TrDDIG.cjs"),be=require("./vue-ui-accordion-DzbFctbI.cjs"),Ce=require("./DataTable-DhUk55WP.cjs"),ke=require("./BaseIcon-CNOWc7Xz.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),oe=require("./useNestedProp-CQjoDc6x.cjs"),we=require("./PackageVersion-B_T5VqI7.cjs"),xe=require("./Tooltip-iisamh_I.cjs"),Se=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),$e={"data-html2canvas-ignore":""},Te={key:0,class:"reset-wrapper"},Ne={key:1,class:"reset-wrapper"},Fe={class:"mono-slicer"},Pe=Se(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Be=["min","max","value"],ze={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(i,{emit:F}){const r=i;e.useCssVars(g=>({"90ad3208":V.value,"4f9eef70":S.value,"6e07ae3e":p.value,"2fd430a0":i.selectColor,"6b8169a4":y.value}));const V=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),p=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){F("reset")}const f=e.computed(()=>{const g=r.max-r.min,h=0,b=(r.value-r.min)/g*100;return{left:`${h}%`,width:`${b-h}%`,background:r.selectColor}});return(g,h)=>(e.openBlock(),e.createElementBlock("div",$e,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",Te,[i.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(ke.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ne)),e.createElementVNode("div",Fe,[Pe,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(f.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:h[0]||(h[0]=b=>F("update:value",Number(b.target.value)))},null,40,Be)])]))}},_e=le._export_sfc(ze,[["__scopeId","data-v-3fd7d274"]]),Ee=["id"],Ve=["xmlns","viewBox"],Ie=["transform"],Oe=["fill","font-weight","x","y","font-size","transform","onMouseover"],Me={key:3,class:"vue-data-ui-watermark"},Ae=["innerHTML"],Re={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:F}){const r=i,{vue_ui_word_cloud:V}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),p=e.ref(typeof r.dataset=="string"?s.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:s.checkNaN(o.value)}))),S=e.ref(s.createUid()),$=e.ref(0),f=e.ref(null),g=e.ref(null),h=e.ref(0),b=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>U(),set:o=>o});function U(){const o=oe.useNestedProp({userConfig:r.config,defaultConfig:V});return o.theme?{...oe.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>r.config,o=>{t.value=U(),L(),h.value+=1,b.value+=1,O()},{deep:!0});const G=e.ref(null),C=e.ref(0),u=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),ae=D.throttle(()=>{const{width:o,height:a}=D.useResponsive({chart:f.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&G.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ne()});const ne=D.debounce(()=>{M()},10);function O(){C.value=J.value}const P=e.ref(null);e.onMounted(()=>{L(),O()});function L(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):p.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(P.value=new ResizeObserver(ae),P.value.observe(f.value.parentNode))}e.onBeforeUnmount(()=>{P.value&&P.value.disconnect()});const{isPrinting:j,isImaging:X,generatePdf:H,generateImage:Y}=te.usePrinter({elementId:`wordCloud_${S.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function re(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function se(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function ue(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let W=!1;for(let E=0;E<Math.max(a,l)/2&&!W;E+=t.value.style.chart.words.packingWeight)for(let q=0;q<360&&!W;q+=t.value.style.chart.words.packingWeight){const ee=q*Math.PI/180,he=v+E*Math.cos(ee)-x.width/2,me=w+E*Math.sin(ee)-x.height/2,m={...x,x:he,y:me},pe=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,fe=c.some(ge=>se(m,ge));pe&&!fe&&(c.push(m),W=!0)}}),c}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const J=e.computed(()=>Math.min(...p.value.map(o=>o.value))),ie=e.computed(()=>Math.max(...p.value.map(o=>o.value)));function M(){const o=[...p.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=[...p.value].filter(n=>n.value>=C.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(u.value.maxFontSize-u.value.minFontSize)+u.value.minFontSize,x=re(n.name,w);return{...n,id:s.createUid(),fontSize:w,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||s.palette[v]||s.palette[v%s.palette.length]:t.value.style.chart.words.color}});T.value=ue(c,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const B=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function K(){e.nextTick(()=>{const o=B.value.head.map((c,n)=>[[c.name],[B.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=B.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:B.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),_=e.ref(!1);function ce(o){_.value=o,$.value+=1}function de(){return T.value}function Q(){d.value.showTable=!d.value.showTable}function Z(){d.value.showTooltip=!d.value.showTooltip}F({getData:de,generateCsv:K,generatePdf:H,generateImage:Y,toggleTable:Q,toggleTooltip:Z});const k=e.ref(null),N=e.ref(!1),A=e.ref(""),R=e.ref(null);function ve(o){if(!d.value.showTooltip)return;k.value=o.id,R.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(A.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;A.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}I.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:f,id:`wordCloud_${S.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${h.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value?(e.openBlock(),e.createBlock(te.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(j),isImaging:e.unref(X),uid:S.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:f.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,onToggleFullscreen:ce,onGeneratePdf:e.unref(H),onGenerateCsv:K,onGenerateImage:e.unref(Y),onToggleTable:Q,onToggleTooltip:Z},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(we._sfc_main),e.createElementVNode("g",{transform:`translate(${(u.value.width<=0?10:u.value.width)/2}, ${(u.value.height<=0?10:u.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,c)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:c,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":k.value&&k.value===l.id&&d.value.showTooltip,"word-not-selected":k.value&&k.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"middle",onMouseover:n=>ve(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Oe))]))),256))],8,Ie),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Ve)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(X)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(xe._sfc_main,{show:d.value.showTooltip&&I.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:f.value,content:A.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:G,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(_e,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:J.value,max:ie.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:O},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),y.value?(e.openBlock(),e.createBlock(be.default,{key:4,hideDetails:"",config:{open:d.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ce.DataTable,{key:`table_${b.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ae)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,Ee))}},We=le._export_sfc(Re,[["__scopeId","data-v-7f4cd511"]]);exports.default=We;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-BwtKB_oG.cjs"),ye=require("./Title-DcXqsD3c.cjs"),te=require("./usePrinter-BMJj8aqh.cjs"),D=require("./useResponsive-B3TrDDIG.cjs"),be=require("./vue-ui-accordion-CM2NnUan.cjs"),Ce=require("./DataTable-CUi5w5e6.cjs"),ke=require("./BaseIcon-CGKu0qTV.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),oe=require("./useNestedProp-CE6ustAp.cjs"),we=require("./PackageVersion-DdGAD2ox.cjs"),xe=require("./Tooltip-onlvaIFL.cjs"),Se=i=>(e.pushScopeId("data-v-3fd7d274"),i=i(),e.popScopeId(),i),$e={"data-html2canvas-ignore":""},Te={key:0,class:"reset-wrapper"},Ne={key:1,class:"reset-wrapper"},Fe={class:"mono-slicer"},Pe=Se(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Be=["min","max","value"],ze={__name:"MonoSlicer",props:{min:{type:Number,default:0},max:{type:Number,default:0},inputColor:{type:String,default:"#1A1A1A"},background:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},selectColor:{type:String,default:"#4A4A4A"},textColor:{type:String,default:"#1A1A1A"},useResetSlot:{type:Boolean,default:!1},value:{type:Number,default:0},source:{type:Number,default:0}},emits:["update:value","reset"],setup(i,{emit:F}){const r=i;e.useCssVars(g=>({"90ad3208":V.value,"4f9eef70":S.value,"6e07ae3e":p.value,"2fd430a0":i.selectColor,"6b8169a4":y.value}));const V=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),p=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){F("reset")}const f=e.computed(()=>{const g=r.max-r.min,h=0,b=(r.value-r.min)/g*100;return{left:`${h}%`,width:`${b-h}%`,background:r.selectColor}});return(g,h)=>(e.openBlock(),e.createElementBlock("div",$e,[i.value!==i.source?(e.openBlock(),e.createElementBlock("div",Te,[i.useResetSlot?e.renderSlot(g.$slots,"reset-action",{key:1,reset:$},void 0,!0):(e.openBlock(),e.createElementBlock("button",{key:0,"data-cy-reset":"",tabindex:"0",role:"button",class:"vue-data-ui-refresh-button",onClick:$},[e.createVNode(ke.default,{name:"refresh",stroke:i.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",Ne)),e.createElementVNode("div",Fe,[Pe,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(f.value)},null,4),e.createElementVNode("input",{type:"range",min:i.min,max:i.max,value:Number(i.value),onInput:h[0]||(h[0]=b=>F("update:value",Number(b.target.value)))},null,40,Be)])]))}},_e=le._export_sfc(ze,[["__scopeId","data-v-3fd7d274"]]),Ee=["id"],Ve=["xmlns","viewBox"],Ie=["transform"],Oe=["fill","font-weight","x","y","font-size","transform","onMouseover"],Me={key:3,class:"vue-data-ui-watermark"},Ae=["innerHTML"],Re={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(i,{expose:F}){const r=i,{vue_ui_word_cloud:V}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),p=e.ref(typeof r.dataset=="string"?s.createWordCloudDatasetFromPlainText(r.dataset):r.dataset.map(o=>({...o,value:s.checkNaN(o.value)}))),S=e.ref(s.createUid()),$=e.ref(0),f=e.ref(null),g=e.ref(null),h=e.ref(0),b=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>U(),set:o=>o});function U(){const o=oe.useNestedProp({userConfig:r.config,defaultConfig:V});return o.theme?{...oe.useNestedProp({userConfig:s.themes.vue_ui_word_cloud[o.theme]||r.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}e.watch(()=>r.config,o=>{t.value=U(),L(),h.value+=1,b.value+=1,O()},{deep:!0});const G=e.ref(null),C=e.ref(0),u=e.ref({width:t.value.style.chart.width,height:t.value.style.chart.height,maxFontSize:t.value.style.chart.words.maxFontSize,minFontSize:t.value.style.chart.words.minFontSize}),ae=D.throttle(()=>{const{width:o,height:a}=D.useResponsive({chart:f.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&G.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ne()});const ne=D.debounce(()=>{M()},10);function O(){C.value=J.value}const P=e.ref(null);e.onMounted(()=>{L(),O()});function L(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):p.value.forEach((o,a)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(l=>{y.value=!1,s.error({componentName:"VueUiWordCloud",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive&&(P.value=new ResizeObserver(ae),P.value.observe(f.value.parentNode))}e.onBeforeUnmount(()=>{P.value&&P.value.disconnect()});const{isPrinting:j,isImaging:X,generatePdf:H,generateImage:Y}=te.usePrinter({elementId:`wordCloud_${S.value}`,fileName:t.value.style.chart.title.text||"vue-ui-word-cloud"}),d=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show});function re(o,a,l="Arial"){const n=document.createElement("canvas").getContext("2d");return n.font=`${a}px ${t.value.style.chart.words.bold?"bold":"normal"} ${l}`,{width:n.measureText(o).width+t.value.style.chart.words.proximity,height:a}}function se(o,a){return o.x<a.x+a.width&&o.x+o.width>a.x&&o.y<a.y+a.height&&o.y+o.height>a.y}function ue(o,a,l){const c=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let W=!1;for(let E=0;E<Math.max(a,l)/2&&!W;E+=t.value.style.chart.words.packingWeight)for(let q=0;q<360&&!W;q+=t.value.style.chart.words.packingWeight){const ee=q*Math.PI/180,he=v+E*Math.cos(ee)-x.width/2,me=w+E*Math.sin(ee)-x.height/2,m={...x,x:he,y:me},pe=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,fe=c.some(ge=>se(m,ge));pe&&!fe&&(c.push(m),W=!0)}}),c}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const J=e.computed(()=>Math.min(...p.value.map(o=>o.value))),ie=e.computed(()=>Math.max(...p.value.map(o=>o.value)));function M(){const o=[...p.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),c=[...p.value].filter(n=>n.value>=C.value).map((n,v)=>{const w=(n.value-l)/(a-l)*(u.value.maxFontSize-u.value.minFontSize)+u.value.minFontSize,x=re(n.name,w);return{...n,id:s.createUid(),fontSize:w,width:x.width,height:x.height,color:t.value.style.chart.words.usePalette?t.value.customPalette[v]||t.value.customPalette[v%t.value.customPalette.length]||s.palette[v]||s.palette[v%s.palette.length]:t.value.style.chart.words.color}});T.value=ue(c,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const B=e.computed(()=>{const o=T.value.map(l=>({name:l.name,color:l.color})),a=T.value.map(l=>l.value);return{head:o,body:a}});function K(){e.nextTick(()=>{const o=B.value.head.map((c,n)=>[[c.name],[B.value.body[n]]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(a);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-word-cloud"})})}const z=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value],a=B.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:B.value.body[v],s:t.value.table.td.suffix,r:t.value.table.td.roundingValue});return[{color:n.color,name:n.name},w]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}}),_=e.ref(!1);function ce(o){_.value=o,$.value+=1}function de(){return T.value}function Q(){d.value.showTable=!d.value.showTable}function Z(){d.value.showTooltip=!d.value.showTooltip}F({getData:de,generateCsv:K,generatePdf:H,generateImage:Y,toggleTable:Q,toggleTooltip:Z});const k=e.ref(null),N=e.ref(!1),A=e.ref(""),R=e.ref(null);function ve(o){if(!d.value.showTooltip)return;k.value=o.id,R.value={datapoint:o,config:t.value};const a=t.value.style.chart.tooltip.customFormat;if(N.value=!1,s.isFunction(a))try{const l=a({datapoint:o,config:t.value});typeof l=="string"&&(A.value=l,N.value=!0)}catch{console.warn("Custom format cannot be applied."),N.value=!1}if(!N.value){let l=`<svg viewBox="0 0 10 10" height="${t.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${o.color}"/></svg><span>${o.name}:</span><b>${(o.value||0).toFixed(t.value.style.chart.tooltip.roundingValue)}</b>`;A.value=`<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${l}</div>`}I.value=!0}return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-word-cloud",ref_key:"wordCloudChart",ref:f,id:`wordCloud_${S.value}`,style:e.normalizeStyle(`width: 100%; font-family:${t.value.style.fontFamily};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${h.value}`,config:{title:{...t.value.style.chart.title},subtitle:{...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value?(e.openBlock(),e.createBlock(te.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(j),isImaging:e.unref(X),uid:S.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:f.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,onToggleFullscreen:ce,onGeneratePdf:e.unref(H),onGenerateCsv:K,onGenerateImage:e.unref(Y),onToggleTable:Q,onToggleTooltip:Z},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:c})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:c})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:2,class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${u.value.width<=0?10:u.value.width} ${u.value.height<=0?10:u.value.height}`,style:"overflow:visible;background:transparent;"},[e.createVNode(we._sfc_main),e.createElementVNode("g",{transform:`translate(${(u.value.width<=0?10:u.value.width)/2}, ${(u.value.height<=0?10:u.value.height)/2})`},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.value,(l,c)=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(),e.createElementBlock("text",{fill:l.color,"font-weight":t.value.style.chart.words.bold?"bold":"normal",key:c,x:l.x,y:l.y,"font-size":l.fontSize,transform:`translate(${l.width/2}, ${l.height/2})`,class:e.normalizeClass({animated:t.value.useCssAnimation,"word-selected":k.value&&k.value===l.id&&d.value.showTooltip,"word-not-selected":k.value&&k.value!==l.id&&d.value.showTooltip}),"text-anchor":"middle","dominant-baseline":"middle",onMouseover:n=>ve(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${c*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,Oe))]))),256))],8,Ie),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Ve)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(j)||e.unref(X)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(xe._sfc_main,{show:d.value.showTooltip&&I.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:f.value,content:A.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom"]),e.createElementVNode("div",{ref_key:"chartSlicer",ref:G,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(_e,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:J.value,max:ie.value,textColor:t.value.style.chart.color,inputColor:t.value.style.chart.zoom.color,selectColor:t.value.style.chart.zoom.highlightColor,useResetSlot:t.value.style.chart.zoom.useResetSlot,background:t.value.style.chart.zoom.color,borderColor:t.value.style.chart.backgroundColor,source:t.value.style.chart.width,onReset:O},{"reset-action":e.withCtx(({reset:l})=>[e.renderSlot(o.$slots,"reset-action",e.normalizeProps(e.guardReactiveProps({reset:l})),void 0,!0)]),_:3},8,["value","min","max","textColor","inputColor","selectColor","useResetSlot","background","borderColor","source"])):e.createCommentVNode("",!0)],512),y.value?(e.openBlock(),e.createBlock(be.default,{key:4,hideDetails:"",config:{open:d.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ce.DataTable,{key:`table_${b.value}`,colNames:z.value.colNames,head:z.value.head,body:z.value.body,config:z.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>d.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ae)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],12,Ee))}},We=le._export_sfc(Re,[["__scopeId","data-v-7f4cd511"]]);exports.default=We;
@@ -1,15 +1,15 @@
1
- import { useCssVars as Ae, computed as p, openBlock as u, createElementBlock as f, createVNode as ee, renderSlot as m, createElementVNode as $, normalizeStyle as te, pushScopeId as We, popScopeId as Re, ref as n, watch as Z, onMounted as Be, onBeforeUnmount as De, createBlock as A, createCommentVNode as z, unref as k, 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-B9ExL-Ae.js";
3
- import { _ as ot } from "./Title-CczWCvrd.js";
4
- import { u as at, U as lt } from "./usePrinter-CUStN20z.js";
1
+ import { useCssVars as Ae, computed as p, openBlock as u, createElementBlock as f, createVNode as ee, renderSlot as m, createElementVNode as $, normalizeStyle as te, 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 k, 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, Z as Xe, v as je, c as ge, t as Ye, a as qe, p as L, o as He, e as ye, g as Ze, f as Je, X as Ke, q as Qe, r as et, x as tt } from "./index-DK7qqHGP.js";
3
+ import { _ as ot } from "./Title-Cxlu3Etv.js";
4
+ import { u as at, U as lt } from "./usePrinter-Cza87yNE.js";
5
5
  import { d as st, t as nt, u as rt } from "./useResponsive-NZB-WLRF.js";
6
- import ut from "./vue-ui-accordion-SZPrlCJb.js";
7
- import { D as it } from "./DataTable-BUgJSK3f.js";
8
- import ct from "./BaseIcon-4CP9SAhe.js";
6
+ import ut from "./vue-ui-accordion-5C4CP3gA.js";
7
+ import { D as it } from "./DataTable-B9SSwFM2.js";
8
+ import ct from "./BaseIcon-ZChy8GeS.js";
9
9
  import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { u as be } from "./useNestedProp-BI1wvb44.js";
11
- import { _ as dt } from "./PackageVersion-Cy2QrPIN.js";
12
- import { _ as vt } from "./Tooltip-CLelGHFy.js";
10
+ import { u as be } from "./useNestedProp-0nRX_rTi.js";
11
+ import { _ as dt } from "./PackageVersion-I1_4jcn_.js";
12
+ import { _ as vt } from "./Tooltip-Bt9pHzBM.js";
13
13
  const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2canvas-ignore": "" }, ft = {
14
14
  key: 0,
15
15
  class: "reset-wrapper"
@@ -146,8 +146,8 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
146
146
  }
147
147
  }), b = n(typeof s.dataset == "string" ? Xe(s.dataset) : s.dataset.map((t) => ({
148
148
  ...t,
149
- value: Ye(t.value)
150
- }))), P = n(ge()), I = n(0), C = n(null), w = n(null), g = n(0), S = n(0), Y = n(!1), e = p({
149
+ value: je(t.value)
150
+ }))), P = n(ge()), I = n(0), C = n(null), w = n(null), g = n(0), S = n(0), j = n(!1), e = p({
151
151
  get: () => oe(),
152
152
  set: (t) => t
153
153
  });
@@ -158,14 +158,14 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
158
158
  });
159
159
  return t.theme ? {
160
160
  ...be({
161
- userConfig: je.vue_ui_word_cloud[t.theme] || s.config,
161
+ userConfig: Ye.vue_ui_word_cloud[t.theme] || s.config,
162
162
  defaultConfig: t
163
163
  }),
164
164
  customPalette: qe[t.theme] || L
165
165
  } : t;
166
166
  }
167
- Z(() => s.config, (t) => {
168
- e.value = oe(), le(), g.value += 1, S.value += 1, j();
167
+ Q(() => s.config, (t) => {
168
+ e.value = oe(), le(), g.value += 1, S.value += 1, Y();
169
169
  }, { deep: !0 });
170
170
  const ae = n(null), T = n(0), r = n({
171
171
  width: e.value.style.chart.width,
@@ -180,25 +180,25 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
180
180
  });
181
181
  r.value.width = t, r.value.height = a, pe(q);
182
182
  });
183
- Z(() => T.value, () => {
183
+ Q(() => T.value, () => {
184
184
  ke();
185
185
  });
186
186
  const ke = st(() => {
187
187
  q();
188
188
  }, 10);
189
- function j() {
189
+ function Y() {
190
190
  T.value = ie.value;
191
191
  }
192
192
  const D = n(null);
193
193
  Be(() => {
194
- le(), j();
194
+ le(), Y();
195
195
  });
196
196
  function le() {
197
197
  He(s.dataset) ? ye({
198
198
  componentName: "VueUiWordCloud",
199
199
  type: "dataset"
200
200
  }) : b.value.forEach((t, a) => {
201
- Je({
201
+ Ze({
202
202
  datasetObject: t,
203
203
  requiredAttributes: ["name", "value"]
204
204
  }).forEach((o) => {
@@ -234,16 +234,16 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
234
234
  function Se(t, a, o) {
235
235
  const c = [], l = { x: -a / 2, y: -o / 2, width: a, height: o }, v = 0, _ = 0;
236
236
  return t.forEach((N) => {
237
- let K = !1;
238
- for (let G = 0; G < Math.max(a, o) / 2 && !K; G += e.value.style.chart.words.packingWeight)
239
- for (let Q = 0; Q < 360 && !K; Q += e.value.style.chart.words.packingWeight) {
240
- const he = Q * 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), K = !0);
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
242
  }
243
243
  }), c;
244
244
  }
245
245
  const O = n([]);
246
- Z(() => s.dataset, q, { immediate: !0 });
246
+ Q(() => s.dataset, q, { immediate: !0 });
247
247
  const ie = p(() => Math.min(...b.value.map((t) => t.value))), Te = p(() => Math.max(...b.value.map((t) => t.value)));
248
248
  function q() {
249
249
  const t = [...b.value].filter((l) => l.value >= T.value).map((l) => l.value), a = Math.max(...t), o = Math.min(...t), c = [...b.value].filter((l) => l.value >= T.value).map((l, v) => {
@@ -270,7 +270,7 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
270
270
  pe(() => {
271
271
  const t = V.value.head.map((c, l) => [[
272
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);
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 = Qe(a);
274
274
  et({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
275
275
  });
276
276
  }
@@ -279,7 +279,7 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
279
279
  e.value.table.columnNames.series,
280
280
  e.value.table.columnNames.value
281
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 });
282
+ const _ = Je({ p: e.value.table.td.prefix, v: V.value.body[v], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
283
283
  return [
284
284
  {
285
285
  color: l.color,
@@ -330,10 +330,10 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
330
330
  toggleTable: de,
331
331
  toggleTooltip: ve
332
332
  });
333
- const F = n(null), M = n(!1), H = n(""), J = n(null);
333
+ const F = n(null), M = n(!1), H = n(""), Z = n(null);
334
334
  function Ne(t) {
335
335
  if (!d.value.showTooltip) return;
336
- F.value = t.id, J.value = { datapoint: t, config: e.value };
336
+ F.value = t.id, Z.value = { datapoint: t, config: e.value };
337
337
  const a = e.value.style.chart.tooltip.customFormat;
338
338
  if (M.value = !1, tt(a))
339
339
  try {
@@ -349,7 +349,7 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
349
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
350
  H.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${o}</div>`;
351
351
  }
352
- Y.value = !0;
352
+ j.value = !0;
353
353
  }
354
354
  return (t, a) => (u(), f("div", {
355
355
  class: "vue-ui-word-cloud",
@@ -441,7 +441,7 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
441
441
  x.value ? (u(), f("svg", {
442
442
  key: 2,
443
443
  class: me({ "vue-data-ui-fullscreen--on": U.value, "vue-data-ui-fulscreen--off": !U.value }),
444
- xmlns: k(Qe),
444
+ xmlns: k(Ke),
445
445
  viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
446
446
  style: "overflow:visible;background:transparent;"
447
447
  }, [
@@ -463,7 +463,7 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
463
463
  "dominant-baseline": "middle",
464
464
  onMouseover: (l) => Ne(o),
465
465
  onMouseleave: a[0] || (a[0] = (l) => {
466
- F.value = null, Y.value = !1;
466
+ F.value = null, j.value = !1;
467
467
  }),
468
468
  style: te(`animation-delay:${c * e.value.animationDelayMs}ms !important;`)
469
469
  }, fe(o.name), 47, St))
@@ -477,7 +477,7 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
477
477
  m(t.$slots, "watermark", W(R({ isPrinting: k(se) || k(ne) })), void 0, !0)
478
478
  ])) : z("", !0),
479
479
  ee(vt, {
480
- show: d.value.showTooltip && Y.value,
480
+ show: d.value.showTooltip && j.value,
481
481
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
482
482
  color: e.value.style.chart.tooltip.color,
483
483
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -492,10 +492,10 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
492
492
  isCustom: M.value
493
493
  }, {
494
494
  "tooltip-before": h(() => [
495
- m(t.$slots, "tooltip-before", W(R({ ...J.value })), void 0, !0)
495
+ m(t.$slots, "tooltip-before", W(R({ ...Z.value })), void 0, !0)
496
496
  ]),
497
497
  "tooltip-after": h(() => [
498
- m(t.$slots, "tooltip-after", W(R({ ...J.value })), void 0, !0)
498
+ m(t.$slots, "tooltip-after", W(R({ ...Z.value })), void 0, !0)
499
499
  ]),
500
500
  _: 3
501
501
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
@@ -518,7 +518,7 @@ const ht = (i) => (We("data-v-3fd7d274"), i = i(), Re(), i), mt = { "data-html2c
518
518
  background: e.value.style.chart.zoom.color,
519
519
  borderColor: e.value.style.chart.backgroundColor,
520
520
  source: e.value.style.chart.width,
521
- onReset: j
521
+ onReset: Y
522
522
  }, {
523
523
  "reset-action": h(({ reset: o }) => [
524
524
  m(t.$slots, "reset-action", W(R({ reset: o })), void 0, !0)
@@ -1,16 +1,16 @@
1
- import { c as J, a as Q, t as K, z as j, p as $, T as q, N as T, f as Z, I as ee, F as te, i as ae, Z as ie, W as re, _ as le, v as se, $ as ne, d as ce, B as oe, b as he, q as de, Q as ue, a0 as ge, r as fe, e as Ne, y as me, L as Ie, x as xe, a1 as be, o as Fe, s as _e, w as ye, E as Ae, A as Le, u as Ce } from "./index-B9ExL-Ae.js";
2
- import { D as Se } from "./DataTable-BUgJSK3f.js";
3
- import { _ as ke } from "./Title-CczWCvrd.js";
4
- import { _ as we, u as Oe } from "./Tooltip-CLelGHFy.js";
5
- import { U as Ge } from "./usePrinter-CUStN20z.js";
6
- import { _ as ve } from "./Shape-ovEGVZTS.js";
7
- import pe from "./BaseIcon-4CP9SAhe.js";
8
- import ze from "./vue-ui-table-sparkline-g1tiRXu-.js";
9
- import Me from "./vue-ui-skeleton-DokgyuHD.js";
10
- import { S as Pe } from "./Slicer-C4yPLRzp.js";
11
- import Te from "./vue-ui-accordion-SZPrlCJb.js";
12
- import { u as U } from "./useNestedProp-BI1wvb44.js";
13
- import { _ as Ve } from "./PackageVersion-Cy2QrPIN.js";
1
+ import { c as J, a as K, t as Q, z as j, p as $, U as q, O as T, f as U, K as ee, F as te, i as ae, _ as ie, Y as re, $ as le, v as se, a0 as ne, d as ce, B as oe, b as he, q as de, R as ue, a1 as ge, r as fe, e as Ne, y as me, M as Ie, x as xe, a2 as be, o as Fe, s as _e, w as ye, E as Ae, A as Le, u as Ce } from "./index-DK7qqHGP.js";
2
+ import { D as Se } from "./DataTable-B9SSwFM2.js";
3
+ import { _ as ke } from "./Title-Cxlu3Etv.js";
4
+ import { _ as we, u as Oe } from "./Tooltip-Bt9pHzBM.js";
5
+ import { U as Ge } from "./usePrinter-Cza87yNE.js";
6
+ import { _ as ve } from "./Shape-DVc7K58k.js";
7
+ import pe from "./BaseIcon-ZChy8GeS.js";
8
+ import ze from "./vue-ui-table-sparkline-CbhcBl__.js";
9
+ import Me from "./vue-ui-skeleton-CQnYuosp.js";
10
+ import { S as Pe } from "./Slicer-Bk9LTQad.js";
11
+ import Te from "./vue-ui-accordion-5C4CP3gA.js";
12
+ import { u as Z } from "./useNestedProp-0nRX_rTi.js";
13
+ import { _ as Ve } from "./PackageVersion-I1_4jcn_.js";
14
14
  import { resolveComponent as V, openBlock as r, createElementBlock as l, normalizeClass as P, normalizeStyle as A, createBlock as R, createCommentVNode as h, createSlots as Re, withCtx as z, renderSlot as G, normalizeProps as B, guardReactiveProps as Y, createVNode as X, createElementVNode as u, Fragment as m, renderList as I, toDisplayString as S, withDirectives as De, vModelCheckbox as We, createTextVNode as He } from "vue";
15
15
  import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  const Be = J(), Ye = {
@@ -56,8 +56,8 @@ const Be = J(), Ye = {
56
56
  end: t
57
57
  };
58
58
  return {
59
- themePalettes: Q,
60
- themes: K,
59
+ themePalettes: K,
60
+ themes: Q,
61
61
  slicerStep: 0,
62
62
  selectedScale: null,
63
63
  CTX: null,
@@ -682,7 +682,7 @@ const Be = J(), Ye = {
682
682
  r: this.FINAL_CONFIG.chart.tooltip.roundingValue
683
683
  }),
684
684
  { datapoint: i }
685
- ) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${Z({
685
+ ) : ""}</b> ${this.FINAL_CONFIG.chart.tooltip.showPercentage ? `(${U({
686
686
  v: this.checkNaN(Math.abs(i.value) / s * 100),
687
687
  s: "%",
688
688
  r: this.FINAL_CONFIG.chart.tooltip.roundingPercentage
@@ -731,7 +731,7 @@ const Be = J(), Ye = {
731
731
  createCsvContent: de,
732
732
  createSmoothPath: ue,
733
733
  createTSpans: ge,
734
- dataLabel: Z,
734
+ dataLabel: U,
735
735
  downloadCsv: fe,
736
736
  error: Ne,
737
737
  functionReturnsString: me,
@@ -744,7 +744,7 @@ const Be = J(), Ye = {
744
744
  translateSize: Ae,
745
745
  treeShake: Le,
746
746
  useMouse: Oe,
747
- useNestedProp: U,
747
+ useNestedProp: Z,
748
748
  getHighlightAreaPosition(t) {
749
749
  const s = this.drawingArea.left + this.drawingArea.width / this.maxSeries * (t.from - this.slicer.start), o = this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span < 0 ? 1e-5 : this.drawingArea.width / (this.slicer.end - this.slicer.start) * t.span;
750
750
  return {
@@ -761,7 +761,7 @@ const Be = J(), Ye = {
761
761
  defaultConfig: t
762
762
  });
763
763
  return this.config && this.hasDeepProperty(this.config, "chart.highlightArea") && (Array.isArray(this.config.chart.highlightArea) ? s.chart.highlightArea = this.config.chart.highlightArea : s.chart.highlightArea = [this.config.chart.highlightArea]), this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMin") ? s.chart.grid.labels.yAxis.scaleMin = this.config.chart.grid.labels.yAxis.scaleMin : s.chart.grid.labels.yAxis.scaleMin = null, this.config && this.hasDeepProperty(this.config, "chart.grid.labels.yAxis.scaleMax") ? s.chart.grid.labels.yAxis.scaleMax = this.config.chart.grid.labels.yAxis.scaleMax : s.chart.grid.labels.yAxis.scaleMax = null, s.theme ? {
764
- ...U({
764
+ ...Z({
765
765
  userConfig: this.themes.vue_ui_xy[s.theme] || this.config,
766
766
  defaultConfig: s
767
767
  }),
@@ -1009,7 +1009,7 @@ const Be = J(), Ye = {
1009
1009
  }, 100);
1010
1010
  }
1011
1011
  }
1012
- }, Xe = ["id"], qe = ["viewBox"], Ze = { key: 0 }, Ue = { class: "vue-ui-xy-grid" }, Je = ["stroke", "x1", "x2", "y1", "y2"], Qe = ["stroke", "x1", "x2", "y1", "y2"], Ke = { key: 1 }, je = ["x1", "x2", "y1", "y2", "stroke"], $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = { key: 3 }, at = ["x1", "x2", "y1", "y2", "stroke"], it = ["id"], rt = ["stop-color"], lt = ["stop-color"], st = ["stop-color"], nt = ["id"], ct = ["stop-color"], ot = ["stop-color"], ht = ["stop-color"], dt = ["id"], ut = ["stop-color"], gt = ["stop-color"], ft = ["id"], Nt = ["stop-color"], mt = ["stop-color"], It = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["x", "y", "height", "width", "fill"], _t = ["x", "y", "width"], yt = ["x", "y", "height", "width", "fill"], At = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Lt = ["width", "x", "y"], Ct = { key: 0 }, St = ["id"], kt = ["fill"], wt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ot = ["x", "y", "font-size", "fill"], Gt = ["stroke", "x1", "x2", "y1", "y2"], vt = { key: 2 }, pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], zt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Mt = { key: 4 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["fill", "font-size", "transform"], Vt = ["x1", "x2", "y1", "y2", "stroke"], Rt = ["x", "y", "font-size", "fill"], Dt = ["x1", "x2", "y1", "y2", "stroke"], Wt = ["x", "y", "font-size", "fill"], Ht = ["width", "x", "y"], Et = { style: { width: "100%" } }, Bt = { key: 0 }, Yt = ["id"], Xt = ["fill"], qt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Zt = ["x", "y", "font-size", "fill"], Ut = ["d", "stroke", "stroke-width", "stroke-dasharray"], Jt = { key: 1 }, Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Kt = { key: 0 }, jt = ["d", "fill"], $t = ["d", "fill"], ea = ["d", "stroke", "stroke-width", "stroke-dasharray"], ta = { key: 2 }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ia = ["width", "x", "y"], ra = { style: { width: "100%" } }, la = { key: 3 }, sa = ["id"], na = ["fill"], ca = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], oa = ["x", "y", "font-size", "fill"], ha = { key: 5 }, da = ["x", "y", "font-size", "fill"], ua = ["x", "y", "font-size", "fill", "font-weight"], ga = { key: 6 }, fa = ["x", "y", "font-size", "fill"], Na = ["x", "y"], ma = ["x", "y"], Ia = { key: 7 }, xa = ["x", "y", "font-size", "fill"], ba = ["x", "y"], Fa = ["x", "y"], _a = ["x", "y", "font-size", "fill", "innerHTML"], ya = ["x", "y", "font-size", "fill", "innerHTML"], Aa = ["x", "y", "font-size", "fill", "innerHTML"], La = ["x", "y", "font-size", "fill", "innerHTML"], Ca = ["x", "y", "width", "height", "fill", "onMouseenter"], Sa = ["font-size", "fill", "transform"], ka = ["x", "y", "font-size", "fill"], wa = { key: 9 }, Oa = ["text-anchor", "font-size", "fill", "transform"], Ga = ["x", "y", "height", "width", "onMouseenter", "onClick"], va = { key: 10 }, pa = ["x", "y"], za = ["cx", "cy", "r", "fill"], Ma = {
1012
+ }, Xe = ["id"], qe = ["viewBox"], Ue = { key: 0 }, Ze = { class: "vue-ui-xy-grid" }, Je = ["stroke", "x1", "x2", "y1", "y2"], Ke = ["stroke", "x1", "x2", "y1", "y2"], Qe = { key: 1 }, je = ["x1", "x2", "y1", "y2", "stroke"], $e = ["x1", "x2", "y1", "y2", "stroke"], et = ["x1", "x2", "y1", "y2", "stroke"], tt = { key: 3 }, at = ["x1", "x2", "y1", "y2", "stroke"], it = ["id"], rt = ["stop-color"], lt = ["stop-color"], st = ["stop-color"], nt = ["id"], ct = ["stop-color"], ot = ["stop-color"], ht = ["stop-color"], dt = ["id"], ut = ["stop-color"], gt = ["stop-color"], ft = ["id"], Nt = ["stop-color"], mt = ["stop-color"], It = ["id"], xt = ["stop-color"], bt = ["stop-color"], Ft = ["x", "y", "height", "width", "fill"], _t = ["x", "y", "width"], yt = ["x", "y", "height", "width", "fill"], At = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Lt = ["width", "x", "y"], Ct = { key: 0 }, St = ["id"], kt = ["fill"], wt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ot = ["x", "y", "font-size", "fill"], Gt = ["stroke", "x1", "x2", "y1", "y2"], vt = { key: 2 }, pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], zt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Mt = { key: 4 }, Pt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Tt = ["fill", "font-size", "transform"], Vt = ["x1", "x2", "y1", "y2", "stroke"], Rt = ["x", "y", "font-size", "fill"], Dt = ["x1", "x2", "y1", "y2", "stroke"], Wt = ["x", "y", "font-size", "fill"], Ht = ["width", "x", "y"], Et = { style: { width: "100%" } }, Bt = { key: 0 }, Yt = ["id"], Xt = ["fill"], qt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ut = ["x", "y", "font-size", "fill"], Zt = ["d", "stroke", "stroke-width", "stroke-dasharray"], Jt = { key: 1 }, Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Qt = { key: 0 }, jt = ["d", "fill"], $t = ["d", "fill"], ea = ["d", "stroke", "stroke-width", "stroke-dasharray"], ta = { key: 2 }, aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ia = ["width", "x", "y"], ra = { style: { width: "100%" } }, la = { key: 3 }, sa = ["id"], na = ["fill"], ca = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], oa = ["x", "y", "font-size", "fill"], ha = { key: 5 }, da = ["x", "y", "font-size", "fill"], ua = ["x", "y", "font-size", "fill", "font-weight"], ga = { key: 6 }, fa = ["x", "y", "font-size", "fill"], Na = ["x", "y"], ma = ["x", "y"], Ia = { key: 7 }, xa = ["x", "y", "font-size", "fill"], ba = ["x", "y"], Fa = ["x", "y"], _a = ["x", "y", "font-size", "fill", "innerHTML"], ya = ["x", "y", "font-size", "fill", "innerHTML"], Aa = ["x", "y", "font-size", "fill", "innerHTML"], La = ["x", "y", "font-size", "fill", "innerHTML"], Ca = ["x", "y", "width", "height", "fill", "onMouseenter"], Sa = ["font-size", "fill", "transform"], ka = ["x", "y", "font-size", "fill"], wa = { key: 9 }, Oa = ["text-anchor", "font-size", "fill", "transform"], Ga = ["x", "y", "height", "width", "onMouseenter", "onClick"], va = { key: 10 }, pa = ["x", "y"], za = ["cx", "cy", "r", "fill"], Ma = {
1013
1013
  key: 3,
1014
1014
  class: "vue-data-ui-watermark"
1015
1015
  }, Pa = ["onClick"], Ta = {
@@ -1154,8 +1154,8 @@ function Ba(t, s, o, N, i, e) {
1154
1154
  style: A(`background: transparent; color:${e.FINAL_CONFIG.chart.color}; font-family:${e.FINAL_CONFIG.chart.fontFamily}`)
1155
1155
  }, [
1156
1156
  X(k),
1157
- e.maxSeries > 0 ? (r(), l("g", Ze, [
1158
- u("g", Ue, [
1157
+ e.maxSeries > 0 ? (r(), l("g", Ue, [
1158
+ u("g", Ze, [
1159
1159
  e.FINAL_CONFIG.chart.grid.labels.xAxis.showBaseline ? (r(), l("line", {
1160
1160
  key: 0,
1161
1161
  stroke: e.FINAL_CONFIG.chart.grid.stroke,
@@ -1194,8 +1194,8 @@ function Ba(t, s, o, N, i, e) {
1194
1194
  y1: e.drawingArea.top,
1195
1195
  y2: e.drawingArea.bottom,
1196
1196
  "stroke-linecap": "round"
1197
- }, null, 8, Qe)) : h("", !0),
1198
- e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), l("g", Ke, [
1197
+ }, null, 8, Ke)) : h("", !0),
1198
+ e.FINAL_CONFIG.chart.grid.showHorizontalLines ? (r(), l("g", Qe, [
1199
1199
  (r(!0), l(m, null, I(e.yLabels, (a) => (r(), l("line", {
1200
1200
  x1: e.drawingArea.left + e.xPadding,
1201
1201
  x2: e.drawingArea.right - e.xPadding,
@@ -1622,7 +1622,7 @@ function Ba(t, s, o, N, i, e) {
1622
1622
  v: e.calcLinearProgression(a.plots).trend * 100,
1623
1623
  s: "%",
1624
1624
  r: 2
1625
- })), 9, Zt)) : h("", !0)
1625
+ })), 9, Ut)) : h("", !0)
1626
1626
  ])) : h("", !0)
1627
1627
  ], 6))), 128)),
1628
1628
  (r(!0), l(m, null, I(e.lineSet, (a, c) => (r(), l("g", {
@@ -1637,7 +1637,7 @@ function Ba(t, s, o, N, i, e) {
1637
1637
  "stroke-width": e.FINAL_CONFIG.line.strokeWidth + 1,
1638
1638
  "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1639
1639
  fill: "none"
1640
- }, null, 8, Ut)) : a.plots.length > 1 ? (r(), l("g", Jt, [
1640
+ }, null, 8, Zt)) : a.plots.length > 1 ? (r(), l("g", Jt, [
1641
1641
  (r(!0), l(m, null, I(a.plots, (n, g) => (r(), l("g", {
1642
1642
  key: `line_${c}_${g}`
1643
1643
  }, [
@@ -1652,7 +1652,7 @@ function Ba(t, s, o, N, i, e) {
1652
1652
  "stroke-dasharray": a.dashed ? e.FINAL_CONFIG.line.strokeWidth * 2 : 0,
1653
1653
  "stroke-linejoin": "round",
1654
1654
  "stroke-linecap": "round"
1655
- }, null, 8, Qt)) : h("", !0)
1655
+ }, null, 8, Kt)) : h("", !0)
1656
1656
  ]))), 128))
1657
1657
  ])) : h("", !0)
1658
1658
  ], 6))), 128)),
@@ -1661,7 +1661,7 @@ function Ba(t, s, o, N, i, e) {
1661
1661
  class: P(`serie_line_${c}`),
1662
1662
  style: A(`opacity:${i.selectedScale ? i.selectedScale === a.id ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
1663
1663
  }, [
1664
- a.useArea && a.plots.length > 1 ? (r(), l("g", Kt, [
1664
+ a.useArea && a.plots.length > 1 ? (r(), l("g", Qt, [
1665
1665
  a.smooth ? (r(), l("path", {
1666
1666
  key: 0,
1667
1667
  d: `M ${a.plots[0] ? a.plots[0].x : Math.min(...a.plots.filter((n) => !!n).map((n) => n.x))},${i.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} ${a.curve} L ${a.plots.at(-1) ? a.plots.at(-1).x : e.drawingArea.left + e.slot.line * c + e.slot.line / 2},${i.mutableConfig.isStacked ? e.drawingArea.bottom - a.yOffset : e.drawingArea.bottom} Z`,