vue-data-ui 2.4.43 → 2.4.44
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.
- package/dist/{Arrow-DGDnIooM.cjs → Arrow-D7FfpPjv.cjs} +1 -1
- package/dist/{Arrow-BB6bdwAh.js → Arrow-DabU4Tq7.js} +1 -1
- package/dist/{BaseIcon-Cg6tqk_d.js → BaseIcon-DgOZGFA6.js} +1 -1
- package/dist/{BaseIcon-Cj2lO-KJ.cjs → BaseIcon-vmPfwVXS.cjs} +1 -1
- package/dist/{DataTable-YQ5lDRtX.js → DataTable-ByILXTgq.js} +2 -2
- package/dist/{DataTable-DnaY4y8p.cjs → DataTable-WzoXT7XP.cjs} +1 -1
- package/dist/{Legend-3DteuHjj.js → Legend-CJAbBncx.js} +1 -1
- package/dist/{Legend-BPogA3ac.cjs → Legend-eRHr8IFu.cjs} +1 -1
- package/dist/{PackageVersion-CS8EAteX.js → PackageVersion-2fR7Awu1.js} +1 -1
- package/dist/{PackageVersion-CQ9hp4g5.cjs → PackageVersion-DylCZJMA.cjs} +1 -1
- package/dist/{PenAndPaper-B1DxKWdn.cjs → PenAndPaper-2aIJsXNH.cjs} +1 -1
- package/dist/{PenAndPaper-D22t_fD9.js → PenAndPaper-wVL9QD9U.js} +3 -3
- package/dist/{Shape-7VxscoGH.js → Shape-JMJZs7By.js} +1 -1
- package/dist/{Shape-BIoU-M2b.cjs → Shape-nGoGILeB.cjs} +1 -1
- package/dist/{Slicer-C_1pd_Kh.cjs → Slicer-BLuFaL8r.cjs} +1 -1
- package/dist/{Slicer-BcXvtaNe.js → Slicer-Ce0VzdTY.js} +2 -2
- package/dist/{Title-DoxrpVfD.cjs → Title-CtfsoH8U.cjs} +1 -1
- package/dist/{Title-DQcop8gI.js → Title-Dj5wajqV.js} +1 -1
- package/dist/{Tooltip-t5_yWU6c.cjs → Tooltip-6D9aABEX.cjs} +1 -1
- package/dist/{Tooltip-Dx07vASW.js → Tooltip-Zrcwpy3T.js} +6 -6
- package/dist/{index-CvhiHStv.js → index-D3_dyp9t.js} +1 -1
- package/dist/{index-Ce0TFqvS.cjs → index-ZAR4YEAn.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Dv81zO0o.cjs → useNestedProp-C8Y0yWDq.cjs} +1 -1
- package/dist/{useNestedProp-Ccre6tXM.js → useNestedProp-qwG6HgrL.js} +1 -1
- package/dist/{usePrinter-BVA2_kNp.js → usePrinter-41NUZdgl.js} +1 -1
- package/dist/{usePrinter-Dq9TRqqU.cjs → usePrinter-Cw4E_LYe.cjs} +1 -1
- package/dist/{vue-data-ui-CXGGUSE5.js → vue-data-ui-CKlgRX2w.js} +60 -60
- package/dist/{vue-data-ui-DBaa-Zm-.cjs → vue-data-ui-DPujYnT2.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-B0eWYShT.cjs → vue-ui-3d-bar-CURLeBAg.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-Bvyn0JAH.js → vue-ui-3d-bar-DFqYSjKF.js} +9 -9
- package/dist/{vue-ui-accordion-CzsbGsxC.js → vue-ui-accordion-DbKFz7vP.js} +3 -3
- package/dist/{vue-ui-accordion-2oBs8M8G.cjs → vue-ui-accordion-zOz2K8wY.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-8dnWY_2V.cjs → vue-ui-age-pyramid-BzwQxubx.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-gy4b8534.js → vue-ui-age-pyramid-DVjZHG-c.js} +10 -10
- package/dist/{vue-ui-annotator-D4AFe-ds.cjs → vue-ui-annotator-CU8bDkP0.cjs} +1 -1
- package/dist/{vue-ui-annotator-BOxVmY-t.js → vue-ui-annotator-ZDqHg-kV.js} +1 -1
- package/dist/{vue-ui-bullet-CYRzrrdq.js → vue-ui-bullet-BaQJ3acV.js} +8 -8
- package/dist/{vue-ui-bullet-DS61aLmi.cjs → vue-ui-bullet-Dt0Ki37L.cjs} +1 -1
- package/dist/{vue-ui-candlestick-z1XCCmjs.js → vue-ui-candlestick-C5Pzu7U1.js} +11 -11
- package/dist/{vue-ui-candlestick-CnMW4VI7.cjs → vue-ui-candlestick-CMubhqre.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-STfjKv04.cjs → vue-ui-carousel-table-CL6njZH4.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Dusdq9C-.js → vue-ui-carousel-table-CPE1nggj.js} +4 -4
- package/dist/{vue-ui-chestnut-xOUxz__4.js → vue-ui-chestnut-B7zSDFfA.js} +8 -8
- package/dist/{vue-ui-chestnut-CiOs7_Mn.cjs → vue-ui-chestnut-DHF2jlte.cjs} +1 -1
- package/dist/{vue-ui-cursor-BAZcn7gS.js → vue-ui-cursor-GKguDqwJ.js} +2 -2
- package/dist/{vue-ui-cursor-CgulNaZF.cjs → vue-ui-cursor-PG2njvGA.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B-e6E048.cjs → vue-ui-dashboard-D2w_aK31.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CM5h0sJK.js → vue-ui-dashboard-u_haUFHY.js} +2 -2
- package/dist/{vue-ui-digits-DE-VUfnq.cjs → vue-ui-digits-DQetGFnZ.cjs} +1 -1
- package/dist/{vue-ui-digits-DFYtiFpE.js → vue-ui-digits-DjMZxTuZ.js} +2 -2
- package/dist/{vue-ui-donut-B7WCvZ9X.js → vue-ui-donut-CmRH-JB2.js} +243 -243
- package/dist/vue-ui-donut-DQcISN6U.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-E8YRIlka.cjs → vue-ui-donut-evolution-XrPuyr-U.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-tseD-zkG.js → vue-ui-donut-evolution-YntzBUIL.js} +11 -11
- package/dist/{vue-ui-dumbbell-DoajPALb.cjs → vue-ui-dumbbell-CCwYiUwP.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CB-nTGSr.js → vue-ui-dumbbell-DmgUkc9m.js} +10 -10
- package/dist/{vue-ui-flow-DgM7D7Kz.js → vue-ui-flow-CZkXzt4D.js} +9 -9
- package/dist/{vue-ui-flow-DZo1e2BI.cjs → vue-ui-flow-Ca2cA45D.cjs} +1 -1
- package/dist/{vue-ui-funnel-FwQya4Js.cjs → vue-ui-funnel-CJAT8_1R.cjs} +1 -1
- package/dist/{vue-ui-funnel-Bae7zmv7.js → vue-ui-funnel-z2OgL3Q1.js} +8 -8
- package/dist/{vue-ui-galaxy-C1hMuu_6.js → vue-ui-galaxy-CGhDJ3tA.js} +11 -11
- package/dist/{vue-ui-galaxy-BmQPNy0t.cjs → vue-ui-galaxy-bgA3s7VZ.cjs} +1 -1
- package/dist/{vue-ui-gauge-4Gy_NFvq.cjs → vue-ui-gauge-F-bvIFfG.cjs} +1 -1
- package/dist/{vue-ui-gauge-CvUdCkBJ.js → vue-ui-gauge-NtnSEvX5.js} +7 -7
- package/dist/{vue-ui-gizmo-B6t4exHM.js → vue-ui-gizmo-Bq56LDKo.js} +3 -3
- package/dist/{vue-ui-gizmo-F0ACp4Ym.cjs → vue-ui-gizmo-DBIefin8.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DeLrr3m8.cjs → vue-ui-heatmap-C0NUwPN7.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CNptUmPc.js → vue-ui-heatmap-Dbrlismo.js} +10 -10
- package/dist/{vue-ui-history-plot-DnVFjg0P.js → vue-ui-history-plot-CMAu0w0K.js} +11 -11
- package/dist/{vue-ui-history-plot-iK6KKQTl.cjs → vue-ui-history-plot-Cd0Qgkox.cjs} +1 -1
- package/dist/{vue-ui-kpi-BOLWEQ7j.cjs → vue-ui-kpi-C1a3ONse.cjs} +1 -1
- package/dist/{vue-ui-kpi-BIb8GWpr.js → vue-ui-kpi-CkRUVNcg.js} +3 -3
- package/dist/{vue-ui-mini-loader-vn8l58Co.js → vue-ui-mini-loader-BVvBbruK.js} +2 -2
- package/dist/{vue-ui-mini-loader-dzvCTPe_.cjs → vue-ui-mini-loader-DZ1q-GO6.cjs} +1 -1
- package/dist/{vue-ui-molecule-CztdOxnV.cjs → vue-ui-molecule-C-tmrnHA.cjs} +1 -1
- package/dist/{vue-ui-molecule-BXVfvrYp.js → vue-ui-molecule-DlXNe42L.js} +11 -11
- package/dist/{vue-ui-mood-radar-COiSqYpY.cjs → vue-ui-mood-radar-DYXE1dDD.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-FyUqJ_WI.js → vue-ui-mood-radar-DzHvFqno.js} +11 -11
- package/dist/{vue-ui-nested-donuts-CyzGIcRn.cjs → vue-ui-nested-donuts-BpcKwKFO.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-C3mVKHnx.js → vue-ui-nested-donuts-DDpYr89I.js} +11 -11
- package/dist/{vue-ui-onion-C3uZpdTX.js → vue-ui-onion-B9CAGc1E.js} +11 -11
- package/dist/{vue-ui-onion-PCbFeTBq.cjs → vue-ui-onion-_WXwSygI.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-_nN05_KZ.js → vue-ui-parallel-coordinate-plot-CdvYxx2S.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-BbyG3T_L.cjs → vue-ui-parallel-coordinate-plot-DL5vZwuT.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CqcqhOTk.js → vue-ui-quadrant-CILC-e-o.js} +12 -12
- package/dist/{vue-ui-quadrant-D48AnGwm.cjs → vue-ui-quadrant-ivKVYVXn.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CUG-kf3L.cjs → vue-ui-quick-chart-DW3XlvkG.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CvhtEA16.js → vue-ui-quick-chart-NIE0zUjt.js} +9 -9
- package/dist/{vue-ui-radar-o4cmO82a.js → vue-ui-radar-BonXp2ML.js} +12 -12
- package/dist/{vue-ui-radar-CKq_4-3B.cjs → vue-ui-radar-D9WtkmKW.cjs} +1 -1
- package/dist/{vue-ui-rating-DG1svxO9.cjs → vue-ui-rating-3akEkZ0G.cjs} +1 -1
- package/dist/{vue-ui-rating-CuBodH3C.js → vue-ui-rating-DblWs0Ay.js} +2 -2
- package/dist/{vue-ui-relation-circle-C--j7Q0q.js → vue-ui-relation-circle-BaPqJcbF.js} +7 -7
- package/dist/{vue-ui-relation-circle-AXwyCjxM.cjs → vue-ui-relation-circle-Bv5QA1FA.cjs} +1 -1
- package/dist/{vue-ui-rings-DpVKPZCb.js → vue-ui-rings-DHa-dc3s.js} +11 -11
- package/dist/{vue-ui-rings-fAvuiSZU.cjs → vue-ui-rings-KRi0yCa1.cjs} +1 -1
- package/dist/{vue-ui-scatter-CHY2sxci.cjs → vue-ui-scatter-C-0G6tO_.cjs} +1 -1
- package/dist/{vue-ui-scatter-D_KsmIg_.js → vue-ui-scatter-CKnKyeDJ.js} +12 -12
- package/dist/{vue-ui-screenshot-Baj16IKL.cjs → vue-ui-screenshot-BIvS3Dva.cjs} +1 -1
- package/dist/{vue-ui-screenshot-C21qDF26.js → vue-ui-screenshot-BnQlv1n0.js} +1 -1
- package/dist/{vue-ui-skeleton-p82n8dLi.js → vue-ui-skeleton-CaV7JuCg.js} +3 -3
- package/dist/{vue-ui-skeleton-BdbO4Bxt.cjs → vue-ui-skeleton-urNi7er0.cjs} +1 -1
- package/dist/{vue-ui-smiley-DGdo7pOJ.cjs → vue-ui-smiley-BDJWFNUb.cjs} +1 -1
- package/dist/{vue-ui-smiley-DDBn_kg-.js → vue-ui-smiley-BkKHZRcE.js} +2 -2
- package/dist/{vue-ui-spark-trend-CM-XDvvj.js → vue-ui-spark-trend-C6B6URVX.js} +5 -5
- package/dist/{vue-ui-spark-trend-CyiYuOb3.cjs → vue-ui-spark-trend-Jrg-tgH_.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bi952P46.cjs → vue-ui-sparkbar-CcPXRX01.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BRWlzT5P.js → vue-ui-sparkbar-D7A9EKVi.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BPcFMY0I.js → vue-ui-sparkgauge-C1kcwrm9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-bhzDdT-A.cjs → vue-ui-sparkgauge-ZQOdaaF1.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BdiA32Fs.cjs → vue-ui-sparkhistogram-CZQzNQHQ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DAtbloqL.js → vue-ui-sparkhistogram-DkMaK9FC.js} +5 -5
- package/dist/{vue-ui-sparkline-BXa0bOgm.cjs → vue-ui-sparkline-DuJlR_56.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CbnPVyxs.js → vue-ui-sparkline-JNv27Q7M.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-BdjWWadM.js → vue-ui-sparkstackbar-4YKk6S2y.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BDupdTEm.cjs → vue-ui-sparkstackbar-BStYMSiJ.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DvIG4zyP.cjs → vue-ui-stackbar-BKhScZJ4.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CUXctt_2.js → vue-ui-stackbar-BrBToOgd.js} +12 -12
- package/dist/{vue-ui-strip-plot-lb-y68Hd.js → vue-ui-strip-plot-BB9AjuXc.js} +11 -11
- package/dist/{vue-ui-strip-plot-C5r83jmv.cjs → vue-ui-strip-plot-BSbIVJLB.cjs} +1 -1
- package/dist/{vue-ui-table-DFfsqpZU.js → vue-ui-table-BkfBNufP.js} +1 -1
- package/dist/{vue-ui-table-DgCMMvSx.cjs → vue-ui-table-CTwEo09l.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-jp5xDCCO.cjs → vue-ui-table-heatmap-BRa-idSR.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BiSTfmrM.js → vue-ui-table-heatmap-t6NXIulS.js} +4 -4
- package/dist/{vue-ui-table-sparkline-B7sNio6G.js → vue-ui-table-sparkline-CtVdHOeS.js} +5 -5
- package/dist/{vue-ui-table-sparkline-8itAuNdX.cjs → vue-ui-table-sparkline-LRvAe8DG.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CsY6PZxF.cjs → vue-ui-thermometer-Bkj9olK0.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Cvoq-NoB.js → vue-ui-thermometer-Dqy_A9Ka.js} +7 -7
- package/dist/{vue-ui-timer-CKkmEEyh.js → vue-ui-timer-BkWR-FS3.js} +5 -5
- package/dist/{vue-ui-timer-BBYru0Q7.cjs → vue-ui-timer-C2WYUfS1.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CJyRAXGr.cjs → vue-ui-tiremarks-BXumbUyZ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CVDQcr2f.js → vue-ui-tiremarks-Dl881FpL.js} +7 -7
- package/dist/{vue-ui-treemap-BKA7MrUz.cjs → vue-ui-treemap-CvNWsOoE.cjs} +1 -1
- package/dist/{vue-ui-treemap-BLDOoQdk.js → vue-ui-treemap-Vl47y-4n.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DgluCuy7.js → vue-ui-vertical-bar-BzkqxE45.js} +11 -11
- package/dist/{vue-ui-vertical-bar-BNZ-jiBi.cjs → vue-ui-vertical-bar-D1EoKlII.cjs} +1 -1
- package/dist/{vue-ui-waffle-DOZ8DM_y.js → vue-ui-waffle-Bd4Wn4LE.js} +11 -11
- package/dist/{vue-ui-waffle-COGvHmU8.cjs → vue-ui-waffle-C6cN0uw8.cjs} +1 -1
- package/dist/{vue-ui-wheel-BiHGxIWR.js → vue-ui-wheel-D1SsLAru.js} +7 -7
- package/dist/{vue-ui-wheel-DrhwR-Z-.cjs → vue-ui-wheel-OGoTipOg.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CEfsjt8Y.js → vue-ui-word-cloud-C6vq-XKZ.js} +10 -10
- package/dist/{vue-ui-word-cloud-ClzpBDxZ.cjs → vue-ui-word-cloud-Da4dHp_U.cjs} +1 -1
- package/dist/{vue-ui-xy-BU03SArU.js → vue-ui-xy-Bbih4XkZ.js} +69 -68
- package/dist/vue-ui-xy-DXLSyett.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-D6xrOdYB.js → vue-ui-xy-canvas-Dtv9a_jF.js} +11 -11
- package/dist/{vue-ui-xy-canvas-lOb9PCZm.cjs → vue-ui-xy-canvas-GffgFKCU.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-donut-Dh1MEQSX.cjs +0 -1
- package/dist/vue-ui-xy-CO99Ia72.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Ce0TFqvS.cjs"),ke=require("./Title-DoxrpVfD.cjs"),ae=require("./usePrinter-Dq9TRqqU.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-2oBs8M8G.cjs"),xe=require("./DataTable-DnaY4y8p.cjs"),Se=require("./BaseIcon-Cj2lO-KJ.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-Dv81zO0o.cjs"),$e=require("./PackageVersion-CQ9hp4g5.cjs"),Te=require("./Tooltip-t5_yWU6c.cjs"),Ne=require("./PenAndPaper-B1DxKWdn.cjs"),Pe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Be={"data-html2canvas-ignore":""},Fe={key:0,class:"reset-wrapper"},ze={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ae=Pe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ve=["min","max","value"],Ee={__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(c,{emit:P}){const r=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Be,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Fe,[c.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(Se.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ze)),e.createElementVNode("div",_e,[Ae,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Ve)])]))}},Ie=re._export_sfc(Ee,[["__scopeId","data-v-3fd7d274"]]),Oe=["id"],Me=["xmlns","viewBox"],Re=["transform"],qe=["fill","font-weight","x","y","font-size","transform","onMouseover"],We={key:4,class:"vue-data-ui-watermark"},De=["innerHTML"],Ue={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:E}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=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),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),L=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>j(),set:o=>o});function j(){const o=ne.useNestedProp({userConfig:r.config,defaultConfig:E});return o.theme?{...ne.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=j(),H(),b.value+=1,L.value+=1,O()},{deep:!0});const X=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}),se=G.throttle(()=>{const{width:o,height:a}=G.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&X.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ue()});const ue=G.debounce(()=>{M()},10);function O(){C.value=Z.value}const B=e.ref(null);e.onMounted(()=>{H(),O()});function H(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.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&&(B.value=new ResizeObserver(se),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ae.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 ie(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 ce(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 de(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let U=0;U<360&&!D;U+=t.value.style.chart.words.packingWeight){const le=U*Math.PI/180,fe=v+V*Math.cos(le)-x.width/2,ge=w+V*Math.sin(le)-x.height/2,m={...x,x:fe,y:ge},ye=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,be=i.some(Ce=>ce(m,Ce));ye&&!be&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const Z=e.computed(()=>Math.min(...f.value.map(o=>o.value))),ve=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function M(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.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=ie(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=de(i,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=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 ee(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.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=F.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:F.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 he(o){_.value=o,$.value+=1}function pe(){return T.value}function te(){d.value.showTable=!d.value.showTable}function oe(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}P({getData:pe,generateCsv:ee,generatePdf:K,generateImage:Q,toggleTable:te,toggleTooltip:oe,toggleAnnotator:R});const k=e.ref(null),N=e.ref(!1),q=e.ref(""),W=e.ref(null);function me(o){if(!d.value.showTooltip)return;k.value=o.id,W.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"&&(q.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>`;q.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:h,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.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${b.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(ae.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(J),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:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:he,onGeneratePdf:e.unref(K),onGenerateCsv:ee,onGenerateImage:e.unref(Q),onToggleTable:te,onToggleTooltip:oe,onToggleAnnotator:R},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:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,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($e._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,i)=>(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:i,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":"central",onMouseover:n=>me(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,qe))]))),256))],8,Re),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Te._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:h.value,content:q.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.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:X,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Ie,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:Z.value,max:ve.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),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(we.default,{key:6,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(xe.DataTable,{key:`table_${L.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,De)]),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,Oe))}},Ge=re._export_sfc(Ue,[["__scopeId","data-v-13d267e2"]]);exports.default=Ge;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-ZAR4YEAn.cjs"),ke=require("./Title-CtfsoH8U.cjs"),ae=require("./usePrinter-Cw4E_LYe.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),we=require("./vue-ui-accordion-zOz2K8wY.cjs"),xe=require("./DataTable-WzoXT7XP.cjs"),Se=require("./BaseIcon-vmPfwVXS.cjs"),re=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ne=require("./useNestedProp-C8Y0yWDq.cjs"),$e=require("./PackageVersion-DylCZJMA.cjs"),Te=require("./Tooltip-6D9aABEX.cjs"),Ne=require("./PenAndPaper-2aIJsXNH.cjs"),Pe=c=>(e.pushScopeId("data-v-3fd7d274"),c=c(),e.popScopeId(),c),Be={"data-html2canvas-ignore":""},Fe={key:0,class:"reset-wrapper"},ze={key:1,class:"reset-wrapper"},_e={class:"mono-slicer"},Ae=Pe(()=>e.createElementVNode("div",{class:"slider-track"},null,-1)),Ve=["min","max","value"],Ee={__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(c,{emit:P}){const r=c;e.useCssVars(g=>({"90ad3208":E.value,"4f9eef70":S.value,"6e07ae3e":f.value,"2fd430a0":c.selectColor,"6b8169a4":y.value}));const E=e.computed(()=>r.inputColor),y=e.computed(()=>r.background),f=e.computed(()=>`${r.selectColor}33`),S=e.computed(()=>r.borderColor);function $(){P("reset")}const h=e.computed(()=>{const g=r.max-r.min,p=0,b=(r.value-r.min)/g*100;return{left:`${p}%`,width:`${b-p}%`,background:r.selectColor}});return(g,p)=>(e.openBlock(),e.createElementBlock("div",Be,[c.value!==c.source?(e.openBlock(),e.createElementBlock("div",Fe,[c.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(Se.default,{name:"refresh",stroke:c.textColor},null,8,["stroke"])]))])):(e.openBlock(),e.createElementBlock("div",ze)),e.createElementVNode("div",_e,[Ae,e.createElementVNode("div",{class:"range-highlight",style:e.normalizeStyle(h.value)},null,4),e.createElementVNode("input",{type:"range",min:c.min,max:c.max,value:Number(c.value),onInput:p[0]||(p[0]=b=>P("update:value",Number(b.target.value)))},null,40,Ve)])]))}},Ie=re._export_sfc(Ee,[["__scopeId","data-v-3fd7d274"]]),Oe=["id"],Me=["xmlns","viewBox"],Re=["transform"],qe=["fill","font-weight","x","y","font-size","transform","onMouseover"],We={key:4,class:"vue-data-ui-watermark"},De=["innerHTML"],Ue={__name:"vue-ui-word-cloud",props:{config:{type:Object,default(){return{}}},dataset:{type:[Array,String],default(){return[]}}},setup(c,{expose:P}){const r=c,{vue_ui_word_cloud:E}=s.useConfig(),y=e.computed({get(){return!!r.dataset&&r.dataset.length},set(o){return o}}),f=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),h=e.ref(null),g=e.ref(null),p=e.ref(null),b=e.ref(0),L=e.ref(0),I=e.ref(!1),t=e.computed({get:()=>j(),set:o=>o});function j(){const o=ne.useNestedProp({userConfig:r.config,defaultConfig:E});return o.theme?{...ne.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=j(),H(),b.value+=1,L.value+=1,O()},{deep:!0});const X=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}),se=G.throttle(()=>{const{width:o,height:a}=G.useResponsive({chart:h.value,title:t.value.style.chart.title.text?g.value:null,slicer:t.value.style.chart.zoom.show&&X.value,source:p.value});u.value.width=o,u.value.height=a,e.nextTick(M)});e.watch(()=>C.value,()=>{ue()});const ue=G.debounce(()=>{M()},10);function O(){C.value=Z.value}const B=e.ref(null);e.onMounted(()=>{H(),O()});function H(){s.objectIsEmpty(r.dataset)?s.error({componentName:"VueUiWordCloud",type:"dataset"}):f.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&&(B.value=new ResizeObserver(se),B.value.observe(h.value.parentNode))}e.onBeforeUnmount(()=>{B.value&&B.value.disconnect()});const{isPrinting:Y,isImaging:J,generatePdf:K,generateImage:Q}=ae.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 ie(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 ce(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 de(o,a,l){const i=[],n={x:-a/2,y:-l/2,width:a,height:l},v=0,w=0;return o.forEach(x=>{let D=!1;for(let V=0;V<Math.max(a,l)/2&&!D;V+=t.value.style.chart.words.packingWeight)for(let U=0;U<360&&!D;U+=t.value.style.chart.words.packingWeight){const le=U*Math.PI/180,fe=v+V*Math.cos(le)-x.width/2,ge=w+V*Math.sin(le)-x.height/2,m={...x,x:fe,y:ge},ye=m.x>=n.x&&m.y>=n.y&&m.x+m.width<=n.x+n.width&&m.y+m.height<=n.y+n.height,be=i.some(Ce=>ce(m,Ce));ye&&!be&&(i.push(m),D=!0)}}),i}const T=e.ref([]);e.watch(()=>r.dataset,M,{immediate:!0});const Z=e.computed(()=>Math.min(...f.value.map(o=>o.value))),ve=e.computed(()=>Math.max(...f.value.map(o=>o.value)));function M(){const o=[...f.value].filter(n=>n.value>=C.value).map(n=>n.value),a=Math.max(...o),l=Math.min(...o),i=[...f.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=ie(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=de(i,u.value.width,u.value.height).sort((n,v)=>v.fontSize-n.fontSize)}const F=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 ee(){e.nextTick(()=>{const o=F.value.head.map((i,n)=>[[i.name],[F.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=F.value.head.map((n,v)=>{const w=s.dataLabel({p:t.value.table.td.prefix,v:F.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 he(o){_.value=o,$.value+=1}function pe(){return T.value}function te(){d.value.showTable=!d.value.showTable}function oe(){d.value.showTooltip=!d.value.showTooltip}const A=e.ref(!1);function R(){A.value=!A.value}P({getData:pe,generateCsv:ee,generatePdf:K,generateImage:Q,toggleTable:te,toggleTooltip:oe,toggleAnnotator:R});const k=e.ref(null),N=e.ref(!1),q=e.ref(""),W=e.ref(null);function me(o){if(!d.value.showTooltip)return;k.value=o.id,W.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"&&(q.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>`;q.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:h,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.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ne.PenAndPaper,{key:0,parent:h.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:A.value,onClose:R},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"chartTitle",ref:g,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ke._sfc_main,{key:`title_${b.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(ae.UserOptions,{ref:"details",key:`user_option_${$.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(Y),isImaging:e.unref(J),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:h.value,position:t.value.userOptions.position,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,isTooltip:d.value.showTooltip,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:A.value,onToggleFullscreen:he,onGeneratePdf:e.unref(K),onGenerateCsv:ee,onGenerateImage:e.unref(Q),onToggleTable:te,onToggleTooltip:oe,onToggleAnnotator:R},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:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"4"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasTooltip","isTooltip","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:3,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($e._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,i)=>(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:i,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":"central",onMouseover:n=>me(l),onMouseleave:a[0]||(a[0]=n=>{k.value=null,I.value=!1}),style:e.normalizeStyle(`animation-delay:${i*t.value.animationDelayMs}ms !important;`)},e.toDisplayString(l.name),47,qe))]))),256))],8,Re),e.renderSlot(o.$slots,"svg",{svg:{height:u.value.height,width:u.value.width}},void 0,!0)],10,Me)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(Y)||e.unref(J)})),void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(Te._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:h.value,content:q.value,isCustom:N.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...W.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...W.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:X,style:"width:100%;background:transparent","data-html2canvas-ignore":""},[t.value.style.chart.zoom.show?(e.openBlock(),e.createBlock(Ie,{key:0,value:C.value,"onUpdate:value":a[1]||(a[1]=l=>C.value=l),min:Z.value,max:ve.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),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:5,ref_key:"source",ref:p,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createBlock(we.default,{key:6,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(xe.DataTable,{key:`table_${L.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,De)]),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,Oe))}},Ge=re._export_sfc(Ue,[["__scopeId","data-v-13d267e2"]]);exports.default=Ge;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U, L as ee, G as te, i as ae, a2 as ie, a0 as re, a3 as le, v as se, a4 as ne, d as he, B as oe, b as ce, q as de, R as ue, a5 as ge, r as fe, e as Ie, y as Ne, C as me, x as xe, a6 as
|
|
2
|
-
import { D as ke } from "./DataTable-
|
|
3
|
-
import { _ as we } from "./Title-
|
|
4
|
-
import { _ as Oe, u as Ge } from "./Tooltip-
|
|
5
|
-
import { U as ve } from "./usePrinter-
|
|
6
|
-
import { _ as pe } from "./Shape-
|
|
7
|
-
import ze from "./BaseIcon-
|
|
8
|
-
import Me from "./vue-ui-table-sparkline-
|
|
9
|
-
import Te from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Pe } from "./Slicer-
|
|
11
|
-
import Ve from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as Re } from "./PackageVersion-
|
|
14
|
-
import { P as De } from "./PenAndPaper-
|
|
1
|
+
import { c as J, a as K, t as Q, z as j, p as $, V as q, O as R, f as U, L as ee, G as te, i as ae, a2 as ie, a0 as re, a3 as le, v as se, a4 as ne, d as he, B as oe, b as ce, q as de, R as ue, a5 as ge, r as fe, e as Ie, y as Ne, C as me, x as xe, a6 as Fe, Y as be, o as _e, s as Ae, w as ye, F as Le, A as Ce, u as Se } from "./index-D3_dyp9t.js";
|
|
2
|
+
import { D as ke } from "./DataTable-ByILXTgq.js";
|
|
3
|
+
import { _ as we } from "./Title-Dj5wajqV.js";
|
|
4
|
+
import { _ as Oe, u as Ge } from "./Tooltip-Zrcwpy3T.js";
|
|
5
|
+
import { U as ve } from "./usePrinter-41NUZdgl.js";
|
|
6
|
+
import { _ as pe } from "./Shape-JMJZs7By.js";
|
|
7
|
+
import ze from "./BaseIcon-DgOZGFA6.js";
|
|
8
|
+
import Me from "./vue-ui-table-sparkline-CtVdHOeS.js";
|
|
9
|
+
import Te from "./vue-ui-skeleton-CaV7JuCg.js";
|
|
10
|
+
import { S as Pe } from "./Slicer-Ce0VzdTY.js";
|
|
11
|
+
import Ve from "./vue-ui-accordion-DbKFz7vP.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-qwG6HgrL.js";
|
|
13
|
+
import { _ as Re } from "./PackageVersion-2fR7Awu1.js";
|
|
14
|
+
import { P as De } from "./PenAndPaper-wVL9QD9U.js";
|
|
15
15
|
import { resolveComponent as P, openBlock as r, createElementBlock as l, normalizeClass as V, normalizeStyle as L, createBlock as D, createCommentVNode as c, createSlots as Be, withCtx as M, renderSlot as w, normalizeProps as B, guardReactiveProps as E, createVNode as X, createElementVNode as f, Fragment as I, renderList as m, toDisplayString as S, withDirectives as Ee, vModelCheckbox as He, createTextVNode as We } from "vue";
|
|
16
16
|
import { _ as Ye } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Xe = J(), qe = {
|
|
@@ -340,29 +340,29 @@ const Xe = J(), qe = {
|
|
|
340
340
|
}, x = {
|
|
341
341
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
342
342
|
min: a.scaleMin || Math.min(...a.absoluteValues.filter((g) => ![void 0, null].includes(g))) > 0 ? 0 : Math.min(...a.absoluteValues.filter((g) => ![null, void 0].includes(g)))
|
|
343
|
-
}, A = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * k : x.max, A),
|
|
344
|
-
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[
|
|
343
|
+
}, A = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, N = this.calculateNiceScaleWithExactExtremes(x.min, x.max === x.min ? x.max * k : x.max, A), F = this.calculateNiceScaleWithExactExtremes(e.valueMin, e.valueMax === e.valueMin ? e.valueMax * k : e.valueMax, A), T = N.min >= 0 ? 0 : Math.abs(N.min), v = 0, p = N.max + T, O = F.max + Math.abs(v), _ = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, C = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, z = this.drawingArea.bottom - _ - C * T / p, i = this.drawingArea.bottom - _ - C * v / O, h = this.absoluteDataset.filter((g) => g.type === "bar").filter((g) => !this.segregatedSeries.includes(g.id)).length, n = a.series.map((g, b) => {
|
|
344
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[b] + T) / p : this.ratioToMax(g), Y = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * b : this.drawingArea.left + this.slot.bar * s + this.slot.bar * b * h - this.barSlot / 2 - s * this.barPeriodGap;
|
|
345
345
|
return {
|
|
346
346
|
yOffset: this.checkNaN(_),
|
|
347
347
|
individualHeight: this.checkNaN(C),
|
|
348
348
|
x: this.checkNaN(Y),
|
|
349
349
|
y: this.drawingArea.bottom - _ - C * W,
|
|
350
|
-
value: a.absoluteValues[
|
|
350
|
+
value: a.absoluteValues[b],
|
|
351
351
|
zeroPosition: this.checkNaN(z),
|
|
352
352
|
individualMax: this.checkNaN(p),
|
|
353
|
-
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[
|
|
353
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
354
354
|
};
|
|
355
|
-
}), d = a.absoluteValues.map((g) =>
|
|
356
|
-
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries *
|
|
355
|
+
}), d = a.absoluteValues.map((g) => F.min >= 0 ? (g - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (g + Math.abs(F.min)) / (F.max + Math.abs(F.min))), H = a.series.map((g, b) => {
|
|
356
|
+
const W = this.mutableConfig.useIndividualScale && this.mutableConfig.isStacked ? this.drawingArea.left + this.drawingArea.width / this.maxSeries * b : this.drawingArea.left - this.slot.bar / 2 + this.slot.bar * s + this.slot.bar * b * this.absoluteDataset.filter((Y) => Y.type === "bar").filter((Y) => !this.segregatedSeries.includes(Y.id)).length;
|
|
357
357
|
return {
|
|
358
358
|
yOffset: this.checkNaN(_),
|
|
359
359
|
individualHeight: this.checkNaN(C),
|
|
360
360
|
x: this.checkNaN(W),
|
|
361
|
-
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(C) * d[
|
|
362
|
-
value: a.absoluteValues[
|
|
361
|
+
y: this.checkNaN(this.drawingArea.bottom - this.checkNaN(_) - (this.checkNaN(C) * d[b] || 0)),
|
|
362
|
+
value: a.absoluteValues[b],
|
|
363
363
|
zeroPosition: this.checkNaN(z),
|
|
364
364
|
individualMax: this.checkNaN(p),
|
|
365
|
-
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[
|
|
365
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
366
366
|
};
|
|
367
367
|
}), y = N.ticks.map((g) => ({
|
|
368
368
|
y: g >= 0 ? z - C * (g / p) : z + C * Math.abs(g) / p,
|
|
@@ -370,10 +370,10 @@ const Xe = J(), qe = {
|
|
|
370
370
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
371
371
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
372
372
|
datapoint: a
|
|
373
|
-
})), G =
|
|
374
|
-
const
|
|
373
|
+
})), G = F.ticks.map((g) => {
|
|
374
|
+
const b = (g - F.min) / (F.max - F.min);
|
|
375
375
|
return {
|
|
376
|
-
y: g >= 0 ? i - C *
|
|
376
|
+
y: g >= 0 ? i - C * b : i + C * b,
|
|
377
377
|
value: g,
|
|
378
378
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
379
379
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -386,7 +386,7 @@ const Xe = J(), qe = {
|
|
|
386
386
|
autoScaleYLabels: G,
|
|
387
387
|
individualHeight: C,
|
|
388
388
|
scaleYLabels: a.autoScaling ? G : y,
|
|
389
|
-
individualScale: a.autoScaling ?
|
|
389
|
+
individualScale: a.autoScaling ? F : N,
|
|
390
390
|
individualMax: a.autoScaling ? O : p,
|
|
391
391
|
zeroPosition: a.autoScaling ? i : z,
|
|
392
392
|
plots: a.autoScaling ? H : n
|
|
@@ -409,24 +409,24 @@ const Xe = J(), qe = {
|
|
|
409
409
|
}, e = {
|
|
410
410
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
411
411
|
min: a.scaleMin || (Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues))
|
|
412
|
-
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x),
|
|
413
|
-
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[
|
|
412
|
+
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), F = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + Math.abs(F), p = N.max + Math.abs(T), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * F / v, z = this.drawingArea.bottom - O - _ * T / p, i = a.series.map((g, b) => {
|
|
413
|
+
const W = this.mutableConfig.useIndividualScale ? (a.absoluteValues[b] + Math.abs(F)) / v : this.ratioToMax(g);
|
|
414
414
|
return {
|
|
415
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
415
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
416
416
|
y: this.checkNaN(this.drawingArea.bottom - O - _ * W),
|
|
417
|
-
value: a.absoluteValues[
|
|
418
|
-
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[
|
|
417
|
+
value: a.absoluteValues[b],
|
|
418
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
419
419
|
};
|
|
420
|
-
}), h = a.absoluteValues.map((g) => N.min >= 0 ? (g - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (g + Math.abs(N.min)) / (N.max + Math.abs(N.min))), n = a.series.map((g,
|
|
421
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
420
|
+
}), h = a.absoluteValues.map((g) => N.min >= 0 ? (g - Math.abs(N.min)) / (N.max - Math.abs(N.min)) : (g + Math.abs(N.min)) / (N.max + Math.abs(N.min))), n = a.series.map((g, b) => [void 0, null].includes(a.absoluteValues[b]) ? {
|
|
421
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
422
422
|
y: C,
|
|
423
|
-
value: a.absoluteValues[
|
|
424
|
-
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[
|
|
423
|
+
value: a.absoluteValues[b],
|
|
424
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
425
425
|
} : {
|
|
426
|
-
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line *
|
|
427
|
-
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[
|
|
428
|
-
value: a.absoluteValues[
|
|
429
|
-
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[
|
|
426
|
+
x: this.checkNaN(this.drawingArea.left + this.slot.line / 2 + this.slot.line * b),
|
|
427
|
+
y: this.checkNaN(this.drawingArea.bottom - O - (_ * h[b] || 0)),
|
|
428
|
+
value: a.absoluteValues[b],
|
|
429
|
+
comment: a.comments && a.comments.slice(this.slicer.start, this.slicer.end)[b] || ""
|
|
430
430
|
}), d = this.createSmoothPath(i), H = this.createSmoothPath(n), y = k.ticks.map((g) => ({
|
|
431
431
|
y: g >= 0 ? C - _ * (g / v) : C + _ * Math.abs(g) / v,
|
|
432
432
|
value: g,
|
|
@@ -434,9 +434,9 @@ const Xe = J(), qe = {
|
|
|
434
434
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
435
435
|
datapoint: a
|
|
436
436
|
})), G = N.ticks.map((g) => {
|
|
437
|
-
const
|
|
437
|
+
const b = (g - N.min) / (N.max - N.min);
|
|
438
438
|
return {
|
|
439
|
-
y: g >= 0 ? z - _ *
|
|
439
|
+
y: g >= 0 ? z - _ * b : z + _ * b,
|
|
440
440
|
value: g,
|
|
441
441
|
prefix: a.prefix || this.FINAL_CONFIG.chart.labels.prefix,
|
|
442
442
|
suffix: a.suffix || this.FINAL_CONFIG.chart.labels.suffix,
|
|
@@ -468,8 +468,8 @@ const Xe = J(), qe = {
|
|
|
468
468
|
}, e = {
|
|
469
469
|
max: a.scaleMax || Math.max(...a.absoluteValues) || 1,
|
|
470
470
|
min: a.scaleMin || Math.min(...a.absoluteValues) > 0 ? 0 : Math.min(...a.absoluteValues)
|
|
471
|
-
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x),
|
|
472
|
-
const g = this.mutableConfig.useIndividualScale ? (a.absoluteValues[G] + Math.abs(
|
|
471
|
+
}, x = a.scaleSteps || this.FINAL_CONFIG.chart.grid.labels.yAxis.commonScaleSteps, A = 1.0000001, k = this.calculateNiceScaleWithExactExtremes(e.min, e.max === e.min ? e.max * A : e.max, x), N = this.calculateNiceScaleWithExactExtremes(t.valueMin, t.valueMax === t.valueMin ? t.valueMax * A : t.valueMax, x), F = k.min >= 0 ? 0 : Math.abs(k.min), T = 0, v = k.max + F, p = N.max + Math.abs(T), O = this.mutableConfig.isStacked ? this.drawingArea.height * (1 - a.cumulatedStackRatio) : 0, _ = this.mutableConfig.isStacked ? this.drawingArea.height * a.stackRatio - this.FINAL_CONFIG.chart.grid.labels.yAxis.gap : this.drawingArea.height, C = this.drawingArea.bottom - O - _ * F / v, z = this.drawingArea.bottom - O - _ * T / p, i = a.series.map((y, G) => {
|
|
472
|
+
const g = this.mutableConfig.useIndividualScale ? (a.absoluteValues[G] + Math.abs(F)) / v : this.ratioToMax(y);
|
|
473
473
|
return {
|
|
474
474
|
x: this.checkNaN(this.drawingArea.left + this.slot.plot / 2 + this.slot.plot * G),
|
|
475
475
|
y: this.checkNaN(this.drawingArea.bottom - O - _ * g),
|
|
@@ -665,7 +665,7 @@ const Xe = J(), qe = {
|
|
|
665
665
|
e = `<svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" rx="1" stroke="none" height="12" width="12" fill="${t.color}" /></svg>`;
|
|
666
666
|
break;
|
|
667
667
|
case "line":
|
|
668
|
-
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="
|
|
668
|
+
!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape) ? x = `<circle cx="10" cy="8" r="4" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" />` : t.shape === "triangle" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "square" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "diamond" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "pentagon" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "hexagon" ? x = `<path d="${R({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${t.color}" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : t.shape === "star" && (x = `<polygon stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${t.color}" points="${q({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), e = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${this.FINAL_CONFIG.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${t.color}" />${x}</svg>`;
|
|
669
669
|
break;
|
|
670
670
|
case "plot":
|
|
671
671
|
if (!t.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(t.shape)) {
|
|
@@ -762,8 +762,8 @@ const Xe = J(), qe = {
|
|
|
762
762
|
functionReturnsString: Ne,
|
|
763
763
|
hasDeepProperty: me,
|
|
764
764
|
isFunction: xe,
|
|
765
|
-
isSafeValue:
|
|
766
|
-
largestTriangleThreeBucketsArray:
|
|
765
|
+
isSafeValue: Fe,
|
|
766
|
+
largestTriangleThreeBucketsArray: be,
|
|
767
767
|
objectIsEmpty: _e,
|
|
768
768
|
setOpacity: Ae,
|
|
769
769
|
shiftHue: ye,
|
|
@@ -847,12 +847,12 @@ const Xe = J(), qe = {
|
|
|
847
847
|
this.FINAL_CONFIG.chart.zoom.show && this.maxX > 6 && this.isDataset && (x = this.$refs.chartSlicer.$el, A = x.getBoundingClientRect().height);
|
|
848
848
|
let k = null, N = 0;
|
|
849
849
|
this.FINAL_CONFIG.chart.legend.show && (k = this.$refs.chartLegend, N = k.getBoundingClientRect().height);
|
|
850
|
-
let
|
|
851
|
-
this.$refs.source && (
|
|
850
|
+
let F = 0;
|
|
851
|
+
this.$refs.source && (F = this.$refs.source.getBoundingClientRect().height);
|
|
852
852
|
let T = 0;
|
|
853
|
-
this.$refs.noTitle && (T = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - N - A -
|
|
853
|
+
this.$refs.noTitle && (T = this.$refs.noTitle.getBoundingClientRect().height), this.height = o - e - N - A - F - T, this.width = u, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes(), new ResizeObserver((p) => {
|
|
854
854
|
for (const O of p)
|
|
855
|
-
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (A = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (
|
|
855
|
+
this.$refs.chartTitle && (e = this.$refs.chartTitle.getBoundingClientRect().height), this.$refs.chartSlicer && this.$refs.chartSlicer.$el && (A = this.$refs.chartSlicer.$el.getBoundingClientRect().height), this.$refs.chartLegend && (N = this.$refs.chartLegend.getBoundingClientRect().height), this.$refs.source && (F = this.$refs.source.getBoundingClientRect().height), this.height = O.contentBoxSize[0].blockSize - e - N - A - F - 24, this.width = O.contentBoxSize[0].inlineSize, this.viewBox = `0 0 ${this.width < 0 ? 10 : this.width} ${this.height < 0 ? 10 : this.height}`, this.convertSizes();
|
|
856
856
|
}).observe(s);
|
|
857
857
|
} else
|
|
858
858
|
this.height = this.FINAL_CONFIG.chart.height, this.width = this.FINAL_CONFIG.chart.width, this.viewBox = `0 0 ${this.width} ${this.height}`, this.fontSizes.dataLabels = this.FINAL_CONFIG.chart.grid.labels.fontSize, this.fontSizes.yAxis = this.FINAL_CONFIG.chart.grid.labels.axis.fontSize, this.fontSizes.xAxis = this.FINAL_CONFIG.chart.grid.labels.xAxisLabels.fontSize, this.fontSizes.plotLabels = this.FINAL_CONFIG.chart.labels.fontSize, this.plotRadii.plot = this.FINAL_CONFIG.plot.radius, this.plotRadii.line = this.FINAL_CONFIG.line.radius;
|
|
@@ -1071,7 +1071,7 @@ const Xe = J(), qe = {
|
|
|
1071
1071
|
ref: "noTitle",
|
|
1072
1072
|
class: "vue-data-ui-no-title-space",
|
|
1073
1073
|
style: "height:36px; width: 100%; background:transparent"
|
|
1074
|
-
}, Je = ["viewBox"], Ke = { key: 0 }, Qe = { class: "vue-ui-xy-grid" }, je = ["stroke", "x1", "x2", "y1", "y2"], $e = ["stroke", "x1", "x2", "y1", "y2"], et = { key: 1 }, tt = ["x1", "x2", "y1", "y2", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke"], rt = { key: 3 }, lt = ["x1", "x2", "y1", "y2", "stroke"], st = ["id"], nt = ["stop-color"], ht = ["stop-color"], ot = ["stop-color"], ct = ["id"], dt = ["stop-color"], ut = ["stop-color"], gt = ["stop-color"], ft = ["id"], It = ["stop-color"], Nt = ["stop-color"], mt = ["id"], xt = ["stop-color"],
|
|
1074
|
+
}, Je = ["viewBox"], Ke = { key: 0 }, Qe = { class: "vue-ui-xy-grid" }, je = ["stroke", "x1", "x2", "y1", "y2"], $e = ["stroke", "x1", "x2", "y1", "y2"], et = { key: 1 }, tt = ["x1", "x2", "y1", "y2", "stroke"], at = ["x1", "x2", "y1", "y2", "stroke"], it = ["x1", "x2", "y1", "y2", "stroke"], rt = { key: 3 }, lt = ["x1", "x2", "y1", "y2", "stroke"], st = ["id"], nt = ["stop-color"], ht = ["stop-color"], ot = ["stop-color"], ct = ["id"], dt = ["stop-color"], ut = ["stop-color"], gt = ["stop-color"], ft = ["id"], It = ["stop-color"], Nt = ["stop-color"], mt = ["id"], xt = ["stop-color"], Ft = ["stop-color"], bt = ["id"], _t = ["stop-color"], At = ["stop-color"], yt = ["x", "y", "height", "width", "fill"], Lt = ["x", "y", "width"], Ct = ["x", "y", "height", "width", "fill"], St = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], kt = ["width", "x", "y"], wt = { key: 0 }, Ot = ["id"], Gt = ["fill"], vt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], pt = ["x", "y", "font-size", "fill"], zt = ["stroke", "x1", "x2", "y1", "y2"], Mt = { key: 2 }, Tt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Pt = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Vt = { key: 4 }, Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dt = ["fill", "font-size", "transform"], Bt = ["x1", "x2", "y1", "y2", "stroke"], Et = ["x", "y", "font-size", "fill"], Ht = ["x1", "x2", "y1", "y2", "stroke"], Wt = ["x", "y", "font-size", "fill"], Yt = ["width", "x", "y"], Xt = { style: { width: "100%" } }, qt = { key: 0 }, Ut = ["id"], Zt = ["fill"], Jt = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Kt = ["x", "y", "font-size", "fill"], Qt = ["d", "stroke", "stroke-width", "stroke-dasharray"], jt = { key: 1 }, $t = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ea = { key: 0 }, ta = ["d", "fill"], aa = ["d", "fill"], ia = ["d", "stroke", "stroke-width", "stroke-dasharray"], ra = { key: 2 }, la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], sa = ["width", "x", "y"], na = { style: { width: "100%" } }, ha = { key: 3 }, oa = ["id"], ca = ["fill"], da = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ua = ["x", "y", "font-size", "fill"], ga = { key: 5 }, fa = ["x", "y", "font-size", "fill"], Ia = ["x", "y", "font-size", "fill", "font-weight"], Na = { key: 6 }, ma = ["x", "y", "font-size", "fill"], xa = ["x", "y"], Fa = ["x", "y"], ba = { key: 7 }, _a = ["x", "y", "font-size", "fill"], Aa = ["x", "y"], ya = ["x", "y"], La = ["x", "y", "font-size", "fill", "innerHTML"], Ca = ["x", "y", "font-size", "fill", "innerHTML"], Sa = ["x", "y", "font-size", "fill", "innerHTML"], ka = ["x", "y", "font-size", "fill", "innerHTML"], wa = ["x", "y", "width", "height", "fill", "onMouseenter"], Oa = ["font-size", "fill", "transform"], Ga = ["x", "y", "font-size", "fill"], va = { key: 9 }, pa = ["text-anchor", "font-size", "fill", "transform", "onClick"], za = ["x", "y", "height", "width", "onMouseenter", "onClick"], Ma = { key: 10 }, Ta = ["x", "y"], Pa = ["cx", "cy", "r", "fill"], Va = {
|
|
1075
1075
|
key: 5,
|
|
1076
1076
|
class: "vue-data-ui-watermark"
|
|
1077
1077
|
}, Ra = ["onClick"], Da = {
|
|
@@ -1079,7 +1079,7 @@ const Xe = J(), qe = {
|
|
|
1079
1079
|
viewBox: "0 0 20 12",
|
|
1080
1080
|
height: "14",
|
|
1081
1081
|
width: "20"
|
|
1082
|
-
}, Ba = ["fill"], Ea = {
|
|
1082
|
+
}, Ba = ["stroke", "fill"], Ea = {
|
|
1083
1083
|
key: 1,
|
|
1084
1084
|
viewBox: "0 0 12 12",
|
|
1085
1085
|
height: "14",
|
|
@@ -1096,7 +1096,7 @@ const Xe = J(), qe = {
|
|
|
1096
1096
|
"data-html2canvas-ignore": ""
|
|
1097
1097
|
}, qa = ["innerHTML"];
|
|
1098
1098
|
function Ua(a, s, o, u, t, e) {
|
|
1099
|
-
const x = P("PenAndPaper"), A = P("Title"), k = P("UserOptions"), N = P("PackageVersion"),
|
|
1099
|
+
const x = P("PenAndPaper"), A = P("Title"), k = P("UserOptions"), N = P("PackageVersion"), F = P("Shape"), T = P("Skeleton"), v = P("Slicer"), p = P("Tooltip"), O = P("BaseIcon"), _ = P("TableSparkline"), C = P("DataTable"), z = P("Accordion");
|
|
1100
1100
|
return r(), l("div", {
|
|
1101
1101
|
id: `vue-ui-xy_${t.uniqueId}`,
|
|
1102
1102
|
class: V(`vue-ui-xy ${t.isFullscreen ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.FINAL_CONFIG.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -1383,7 +1383,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1383
1383
|
f("stop", {
|
|
1384
1384
|
offset: "100%",
|
|
1385
1385
|
"stop-color": i.color
|
|
1386
|
-
}, null, 8,
|
|
1386
|
+
}, null, 8, Ft)
|
|
1387
1387
|
], 8, mt),
|
|
1388
1388
|
f("linearGradient", {
|
|
1389
1389
|
id: `areaGradient_${h}_${t.uniqueId}`,
|
|
@@ -1400,7 +1400,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1400
1400
|
offset: "100%",
|
|
1401
1401
|
"stop-color": `${e.setOpacity(i.color, e.FINAL_CONFIG.line.area.opacity)}`
|
|
1402
1402
|
}, null, 8, At)
|
|
1403
|
-
], 8,
|
|
1403
|
+
], 8, bt)
|
|
1404
1404
|
]))), 128)),
|
|
1405
1405
|
(r(!0), l(I, null, m(e.highlightAreas, (i) => (r(), l("g", null, [
|
|
1406
1406
|
i.show ? (r(!0), l(I, { key: 0 }, m(i.span, (h, n) => (r(), l("g", null, [
|
|
@@ -1645,7 +1645,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1645
1645
|
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1646
1646
|
key: `circle_plot_${h}_${d}`
|
|
1647
1647
|
}, [
|
|
1648
|
-
n && e.canShowValue(n.value) ? (r(), D(
|
|
1648
|
+
n && e.canShowValue(n.value) ? (r(), D(F, {
|
|
1649
1649
|
key: 0,
|
|
1650
1650
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
1651
1651
|
color: e.FINAL_CONFIG.plot.useGradient ? `url(#plotGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.plot.dot.useSerieColor ? i.color : e.FINAL_CONFIG.plot.dot.fill,
|
|
@@ -1785,7 +1785,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1785
1785
|
(r(!0), l(I, null, m(i.plots, (n, d) => (r(), l("g", {
|
|
1786
1786
|
key: `circle_line_${h}_${d}`
|
|
1787
1787
|
}, [
|
|
1788
|
-
n && e.canShowValue(n.value) ? (r(), D(
|
|
1788
|
+
n && e.canShowValue(n.value) ? (r(), D(F, {
|
|
1789
1789
|
key: 0,
|
|
1790
1790
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
1791
1791
|
color: e.FINAL_CONFIG.line.useGradient ? `url(#lineGradient_${h}_${t.uniqueId})` : e.FINAL_CONFIG.line.dot.useSerieColor ? i.color : e.FINAL_CONFIG.line.dot.fill,
|
|
@@ -1945,11 +1945,11 @@ function Ua(a, s, o, u, t, e) {
|
|
|
1945
1945
|
f("div", {
|
|
1946
1946
|
style: L(`padding: 3px; background:${e.setOpacity(i.color, 80)};color:${e.adaptColorToBackground(i.color)};width:fit-content;font-size:${t.fontSizes.plotLabels}px;border-radius: 2px;`)
|
|
1947
1947
|
}, S(i.name), 5)
|
|
1948
|
-
], 8,
|
|
1948
|
+
], 8, Fa)) : c("", !0)
|
|
1949
1949
|
]))), 128))
|
|
1950
1950
|
], 6))), 128))
|
|
1951
1951
|
])) : c("", !0),
|
|
1952
|
-
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (r(), l("g",
|
|
1952
|
+
e.FINAL_CONFIG.line.labels.show && t.mutableConfig.dataLabels.show ? (r(), l("g", ba, [
|
|
1953
1953
|
(r(!0), l(I, null, m(e.lineSet, (i, h) => (r(), l("g", {
|
|
1954
1954
|
key: `xLabel_line_${h}`,
|
|
1955
1955
|
class: V(`xLabel_line_${h}`),
|
|
@@ -2261,20 +2261,21 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2261
2261
|
t.icons[i.type] === "line" ? (r(), l("svg", Da, [
|
|
2262
2262
|
f("rect", {
|
|
2263
2263
|
x: "0",
|
|
2264
|
-
y: "7",
|
|
2265
|
-
rx: "
|
|
2266
|
-
stroke:
|
|
2267
|
-
|
|
2264
|
+
y: "7.5",
|
|
2265
|
+
rx: "1.5",
|
|
2266
|
+
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2267
|
+
"stroke-width": 0.5,
|
|
2268
|
+
height: "3",
|
|
2268
2269
|
width: "20",
|
|
2269
2270
|
fill: i.color
|
|
2270
2271
|
}, null, 8, Ba),
|
|
2271
|
-
X(
|
|
2272
|
+
X(F, {
|
|
2272
2273
|
plot: { x: 10, y: 9 },
|
|
2273
2274
|
radius: 4,
|
|
2274
2275
|
color: i.color,
|
|
2275
2276
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(i.shape) ? i.shape : "circle",
|
|
2276
2277
|
stroke: e.FINAL_CONFIG.chart.backgroundColor,
|
|
2277
|
-
strokeWidth:
|
|
2278
|
+
strokeWidth: 0.5
|
|
2278
2279
|
}, null, 8, ["color", "shape", "stroke"])
|
|
2279
2280
|
])) : (r(), l("svg", Ea, [
|
|
2280
2281
|
t.icons[i.type] === "bar" ? (r(), l("rect", {
|
|
@@ -2286,7 +2287,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2286
2287
|
width: "12",
|
|
2287
2288
|
stroke: "none",
|
|
2288
2289
|
fill: i.color
|
|
2289
|
-
}, null, 8, Ha)) : (r(), D(
|
|
2290
|
+
}, null, 8, Ha)) : (r(), D(F, {
|
|
2290
2291
|
key: 1,
|
|
2291
2292
|
plot: { x: 6, y: 6 },
|
|
2292
2293
|
radius: 5,
|
|
@@ -2398,7 +2399,7 @@ function Ua(a, s, o, u, t, e) {
|
|
|
2398
2399
|
}, 8, ["config"])) : c("", !0)
|
|
2399
2400
|
], 14, Ue);
|
|
2400
2401
|
}
|
|
2401
|
-
const ci = /* @__PURE__ */ Ye(qe, [["render", Ua], ["__scopeId", "data-v-
|
|
2402
|
+
const ci = /* @__PURE__ */ Ye(qe, [["render", Ua], ["__scopeId", "data-v-c43c1c59"]]);
|
|
2402
2403
|
export {
|
|
2403
2404
|
ci as default
|
|
2404
2405
|
};
|