vue-data-ui 2.6.6 → 2.6.8
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-DFWjAvCY.js → Arrow-BHD3VBsD.js} +1 -1
- package/dist/{Arrow-BYqxz6UG.cjs → Arrow-YuEygGzC.cjs} +1 -1
- package/dist/{BaseIcon-COe_H-UB.cjs → BaseIcon-D326yPTV.cjs} +1 -1
- package/dist/{BaseIcon-t20JEZNG.js → BaseIcon-dThl5uNa.js} +1 -1
- package/dist/{DataTable-Du7nJ0TM.cjs → DataTable-CaD8j-SL.cjs} +1 -1
- package/dist/{DataTable-CJN0sipt.js → DataTable-D0-zzsJg.js} +2 -2
- package/dist/{Legend-CM7IGBC3.cjs → Legend-CEw2uq9s.cjs} +1 -1
- package/dist/{Legend-BDyPoYfp.js → Legend-Oaw0MY8Y.js} +2 -2
- package/dist/{PackageVersion-qeLvq6l8.cjs → PackageVersion-CCgJTyH9.cjs} +1 -1
- package/dist/{PackageVersion-DqmHcoqz.js → PackageVersion-J_USnljf.js} +1 -1
- package/dist/{PenAndPaper-6UYizrkQ.js → PenAndPaper-CoEXEMcN.js} +3 -3
- package/dist/{PenAndPaper-BYqaxOpk.cjs → PenAndPaper-DvNBHCpq.cjs} +1 -1
- package/dist/Shape-Cwx-wRaK.cjs +1 -0
- package/dist/{Shape-C_qIhG3J.js → Shape-Dtm6toQp.js} +26 -23
- package/dist/{Slicer-DPae3p1M.cjs → Slicer-7z_6bjyU.cjs} +1 -1
- package/dist/{Slicer-BQP3UIW-.js → Slicer-BAcq2vD0.js} +2 -2
- package/dist/{Title-BGiQdt7J.cjs → Title-BQSh4ukk.cjs} +1 -1
- package/dist/{Title-D6h1gTvZ.js → Title-DePxeqVl.js} +1 -1
- package/dist/{Tooltip-BonEVaob.js → Tooltip-DRw9RoFp.js} +23 -20
- package/dist/Tooltip-DtqrGu-Q.cjs +1 -0
- package/dist/{index-B9qF6XbP.js → index-CZlI7PiS.js} +1 -1
- package/dist/{index-kZKcQZM_.cjs → index-DD4PT0Pl.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/useChartAccessibility-BWojgys7.js +13 -0
- package/dist/useChartAccessibility-Cm7nkzTG.cjs +1 -0
- package/dist/{useNestedProp-g5oKzlVy.js → useNestedProp-Cg0NIwr6.js} +1 -1
- package/dist/{useNestedProp-D4Jn2Oxr.cjs → useNestedProp-DU7JFxpL.cjs} +1 -1
- package/dist/{usePrinter-DR42gTOS.cjs → usePrinter-BtJq2wwh.cjs} +1 -1
- package/dist/{usePrinter-DsiBLAy1.js → usePrinter-D-sSdR2l.js} +1 -1
- package/dist/{vue-data-ui-DB2kdhYH.js → vue-data-ui-Dh3BJvUF.js} +61 -61
- package/dist/{vue-data-ui-DbhVASfn.cjs → vue-data-ui-DzVmFW3P.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-DHeSFJ5z.js → vue-ui-3d-bar-Ckd-GTWY.js} +171 -168
- package/dist/vue-ui-3d-bar-llxfgI9N.cjs +19 -0
- package/dist/{vue-ui-accordion-BfDu7hTY.cjs → vue-ui-accordion-2He8z0Sy.cjs} +1 -1
- package/dist/{vue-ui-accordion-DBmchkva.js → vue-ui-accordion-DVtmOO3I.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CvUCPqxa.js → vue-ui-age-pyramid-BUGAES7K.js} +85 -82
- package/dist/vue-ui-age-pyramid-CxBb12yp.cjs +1 -0
- package/dist/{vue-ui-annotator-BV9t6ro7.cjs → vue-ui-annotator-BDUanFLb.cjs} +1 -1
- package/dist/{vue-ui-annotator-Dr5PLrJx.js → vue-ui-annotator-gIa7-tAI.js} +1 -1
- package/dist/vue-ui-bullet-Bg8f_RzX.cjs +34 -0
- package/dist/{vue-ui-bullet-D7Uw9tez.js → vue-ui-bullet-DNfzMdcg.js} +92 -89
- package/dist/vue-ui-candlestick-CnKPX6xB.cjs +2 -0
- package/dist/{vue-ui-candlestick-BFmh-zx1.js → vue-ui-candlestick-jErGIOZA.js} +155 -152
- package/dist/{vue-ui-carousel-table-CUhkylz_.js → vue-ui-carousel-table-DHyvpjWL.js} +4 -4
- package/dist/{vue-ui-carousel-table-C30Gvanv.cjs → vue-ui-carousel-table-DsY9Mrdg.cjs} +1 -1
- package/dist/vue-ui-chestnut-BTCxF3dU.cjs +6 -0
- package/dist/{vue-ui-chestnut-C53wdHmR.js → vue-ui-chestnut-kQjk4FqR.js} +186 -183
- package/dist/{vue-ui-circle-pack-Bj3sA7RV.js → vue-ui-circle-pack-BQbwIDRa.js} +99 -96
- package/dist/vue-ui-circle-pack-D-eMMNzU.cjs +1 -0
- package/dist/{vue-ui-cursor-ZBrt-jTo.cjs → vue-ui-cursor-Dd2eSMAz.cjs} +1 -1
- package/dist/{vue-ui-cursor-0GY46Ywr.js → vue-ui-cursor-xy62w2ep.js} +2 -2
- package/dist/{vue-ui-dashboard-BX787_or.js → vue-ui-dashboard-DPjU-kPn.js} +2 -2
- package/dist/{vue-ui-dashboard-pzZD8J2y.cjs → vue-ui-dashboard-nMODKstD.cjs} +1 -1
- package/dist/{vue-ui-digits-BvCMwL0L.js → vue-ui-digits-BNTE0Lsb.js} +2 -2
- package/dist/{vue-ui-digits-Blb8fghV.cjs → vue-ui-digits-Beuy8wvV.cjs} +1 -1
- package/dist/vue-ui-donut-DWKUDr7k.cjs +1 -0
- package/dist/vue-ui-donut-evolution-BICtQ8ke.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DRfJVMrP.js → vue-ui-donut-evolution-DfHfXqar.js} +133 -131
- package/dist/{vue-ui-donut-yBjSgsTz.js → vue-ui-donut-ipVF2Pk6.js} +158 -155
- package/dist/{vue-ui-dumbbell-4-hWZn-o.js → vue-ui-dumbbell-D04To0aO.js} +125 -122
- package/dist/vue-ui-dumbbell-DPZYa6RZ.cjs +9 -0
- package/dist/{vue-ui-flow-aH6xSdwn.js → vue-ui-flow-DYpBU4gG.js} +96 -93
- package/dist/vue-ui-flow-HFjfjzgX.cjs +1 -0
- package/dist/vue-ui-funnel-BwClLXO6.cjs +1 -0
- package/dist/{vue-ui-funnel-BZy4SvlW.js → vue-ui-funnel-CVQHETom.js} +88 -85
- package/dist/vue-ui-galaxy-B0W8yBZU.cjs +1 -0
- package/dist/{vue-ui-galaxy-GDXdZqjm.js → vue-ui-galaxy-DseGnRIL.js} +123 -120
- package/dist/vue-ui-gauge-0vhiDi19.cjs +1 -0
- package/dist/{vue-ui-gauge-CeyHdkuS.js → vue-ui-gauge-B7nCLtyI.js} +86 -83
- package/dist/{vue-ui-gizmo-veFxjktw.js → vue-ui-gizmo-C1fpqm2H.js} +3 -3
- package/dist/{vue-ui-gizmo-CRTzb1J_.cjs → vue-ui-gizmo-CTMnMH7C.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BizLgjJ8.js → vue-ui-heatmap-B0a6TegZ.js} +109 -106
- package/dist/vue-ui-heatmap-DjxXVFyU.cjs +1 -0
- package/dist/vue-ui-history-plot-CfjWg_3c.cjs +1 -0
- package/dist/{vue-ui-history-plot-gzx5uGyY.js → vue-ui-history-plot-DsLgXpZ8.js} +130 -127
- package/dist/{vue-ui-kpi-CP08PB51.cjs → vue-ui-kpi-CTsWQvCi.cjs} +1 -1
- package/dist/{vue-ui-kpi-MdyAQjdJ.js → vue-ui-kpi-be1EaVNS.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYVr1K6S.js → vue-ui-mini-loader-BHm2QQQF.js} +2 -2
- package/dist/{vue-ui-mini-loader-BRmtJ6az.cjs → vue-ui-mini-loader-DLdlPE48.cjs} +1 -1
- package/dist/{vue-ui-molecule-CJ05ddhf.js → vue-ui-molecule--G2QIMak.js} +147 -144
- package/dist/vue-ui-molecule-DQOP_2JN.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DG1pF6Ii.js → vue-ui-mood-radar-Bhr5Q9pC.js} +97 -94
- package/dist/vue-ui-mood-radar-HxyTIDLP.cjs +1 -0
- package/dist/vue-ui-nested-donuts-C0aK_Cmr.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-CDjZ6KfI.js → vue-ui-nested-donuts-Dtll0W-x.js} +99 -96
- package/dist/{vue-ui-onion-DsskQUiP.js → vue-ui-onion-CRRZ8ajr.js} +105 -102
- package/dist/vue-ui-onion-DJFv8ezH.cjs +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-BTkf3dkR.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-D7r71vdp.js → vue-ui-parallel-coordinate-plot-DMk3iobe.js} +97 -94
- package/dist/vue-ui-quadrant-B7iHGaqG.cjs +1 -0
- package/dist/{vue-ui-quadrant-DCHEhvMX.js → vue-ui-quadrant-EcGC8p0U.js} +155 -152
- package/dist/vue-ui-quick-chart-BOla8Yse.cjs +15 -0
- package/dist/{vue-ui-quick-chart-BB5b4AQ1.js → vue-ui-quick-chart-D6AS1YSx.js} +164 -161
- package/dist/vue-ui-radar-DmM3tCiY.cjs +1 -0
- package/dist/{vue-ui-radar-CNEXWSEx.js → vue-ui-radar-LzAasUWm.js} +105 -102
- package/dist/{vue-ui-rating-ClvF4LPg.cjs → vue-ui-rating-D9K7meNL.cjs} +1 -1
- package/dist/{vue-ui-rating-DJLSl0-4.js → vue-ui-rating-DK4hwg8z.js} +2 -2
- package/dist/{vue-ui-relation-circle-Hdzt7fOS.js → vue-ui-relation-circle-CbOCYAmF.js} +127 -124
- package/dist/vue-ui-relation-circle-DIJuJZrt.cjs +1 -0
- package/dist/vue-ui-rings-BWgF92GG.cjs +2 -0
- package/dist/{vue-ui-rings-BAFkqjcL.js → vue-ui-rings-Cqzy5T3m.js} +114 -111
- package/dist/{vue-ui-scatter-Ca67EOrI.js → vue-ui-scatter-DXvyWQYL.js} +157 -154
- package/dist/vue-ui-scatter-F-gNKXpp.cjs +1 -0
- package/dist/{vue-ui-screenshot-CsdnwhSO.js → vue-ui-screenshot-BL75IkNz.js} +1 -1
- package/dist/{vue-ui-screenshot-CFcvBOJm.cjs → vue-ui-screenshot-BXngAa8V.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CHEZlRpn.js → vue-ui-skeleton-D8r-yAkW.js} +3 -3
- package/dist/{vue-ui-skeleton-BBNX7lud.cjs → vue-ui-skeleton-Tk4j6G2D.cjs} +1 -1
- package/dist/{vue-ui-smiley-Dth6gRqg.js → vue-ui-smiley-BKWWVHh7.js} +2 -2
- package/dist/{vue-ui-smiley-EngC6Vc4.cjs → vue-ui-smiley-BLnMEG6Z.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-33sBlF-n.js → vue-ui-spark-trend-Bb7xpmpt.js} +5 -5
- package/dist/{vue-ui-spark-trend-DJ8yhFMx.cjs → vue-ui-spark-trend-CqG-PKFp.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-D9QLpB7G.cjs → vue-ui-sparkbar-0h661dcM.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-mJu95295.js → vue-ui-sparkbar-JIpGYhbq.js} +4 -4
- package/dist/vue-ui-sparkgauge-BLglWMCN.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-nFFf8h-x.js → vue-ui-sparkgauge-Cc-l_NLU.js} +56 -53
- package/dist/{vue-ui-sparkhistogram-Bh6R737O.js → vue-ui-sparkhistogram-BysifQmq.js} +93 -90
- package/dist/vue-ui-sparkhistogram-CCbcvIJ1.cjs +1 -0
- package/dist/vue-ui-sparkline-CDJX8K9i.cjs +1 -0
- package/dist/{vue-ui-sparkline-BfBiA1O5.js → vue-ui-sparkline-CV-N3Wio.js} +109 -106
- package/dist/vue-ui-sparkstackbar-Bo4JAlsR.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-BNTFNUIA.js → vue-ui-sparkstackbar-WOO_AbtI.js} +59 -56
- package/dist/{vue-ui-stackbar-BbFUifMU.js → vue-ui-stackbar-CP0igpri.js} +136 -133
- package/dist/vue-ui-stackbar-D7odU6jb.cjs +6 -0
- package/dist/vue-ui-strip-plot-CUqC58Ki.cjs +1 -0
- package/dist/{vue-ui-strip-plot-wsxpyqrw.js → vue-ui-strip-plot-_3AJWLnm.js} +127 -124
- package/dist/{vue-ui-table-DUokotBj.cjs → vue-ui-table-8O19epjz.cjs} +1 -1
- package/dist/{vue-ui-table-CQYM4uPf.js → vue-ui-table-WdE7p5Oy.js} +1 -1
- package/dist/{vue-ui-table-heatmap-OYQ9OOzo.js → vue-ui-table-heatmap-CXS6WfTi.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Brk58nK_.cjs → vue-ui-table-heatmap-DH5kHmxx.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUjDhg8A.js → vue-ui-table-sparkline-CWwjANqk.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C9dOsIAB.cjs → vue-ui-table-sparkline-DnvQfr2p.cjs} +1 -1
- package/dist/{vue-ui-thermometer-WSMSVcM_.js → vue-ui-thermometer-BxrDTquG.js} +84 -81
- package/dist/vue-ui-thermometer-COmtpPaq.cjs +1 -0
- package/dist/vue-ui-timer-Bx3W4oUc.cjs +64 -0
- package/dist/{vue-ui-timer-DBP_fRcm.js → vue-ui-timer-DjKCOw9A.js} +183 -180
- package/dist/vue-ui-tiremarks--XDyJeJg.cjs +1 -0
- package/dist/{vue-ui-tiremarks-WWgS2mqw.js → vue-ui-tiremarks-VWxcZxB-.js} +59 -56
- package/dist/{vue-ui-treemap-CXoXEuSA.js → vue-ui-treemap-BGFmZcII.js} +123 -120
- package/dist/vue-ui-treemap-DTwjydy8.cjs +1 -0
- package/dist/vue-ui-vertical-bar-Bpv8mXW2.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-COaAa4nz.js → vue-ui-vertical-bar-DC9czKCT.js} +108 -105
- package/dist/vue-ui-waffle-B_6ZAnKt.cjs +1 -0
- package/dist/{vue-ui-waffle-DD8pT7JN.js → vue-ui-waffle-Cu63K9Iy.js} +107 -104
- package/dist/{vue-ui-wheel-BLlKekiu.js → vue-ui-wheel-AOt-pfpa.js} +75 -72
- package/dist/vue-ui-wheel-BQM-dxTa.cjs +1 -0
- package/dist/vue-ui-word-cloud-Bam3-7P_.cjs +1 -0
- package/dist/{vue-ui-word-cloud-CcYtTXW6.js → vue-ui-word-cloud-CrILrx6m.js} +97 -94
- package/dist/{vue-ui-xy-DYzfiZnJ.js → vue-ui-xy-BuLymzS3.js} +179 -150
- package/dist/vue-ui-xy-CSmObuR7.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-CkB7VDhF.cjs → vue-ui-xy-canvas-BQ0Lbxbd.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DqnK_i0Q.js → vue-ui-xy-canvas-DPnb5mqS.js} +82 -81
- package/package.json +1 -1
- package/dist/Shape-BN3-_2DI.cjs +0 -1
- package/dist/Tooltip-DSPKrQcQ.cjs +0 -1
- package/dist/vue-ui-3d-bar-DEu24HHj.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CRYYDXFo.cjs +0 -1
- package/dist/vue-ui-bullet-Dy71N3Jf.cjs +0 -34
- package/dist/vue-ui-candlestick-aZ1YN4hh.cjs +0 -2
- package/dist/vue-ui-chestnut-DuycsDaB.cjs +0 -6
- package/dist/vue-ui-circle-pack-BFF5_9Sm.cjs +0 -1
- package/dist/vue-ui-donut-BO6RWqZ6.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BgJMw_a4.cjs +0 -1
- package/dist/vue-ui-dumbbell-BSXxNjyK.cjs +0 -9
- package/dist/vue-ui-flow-LNlNIRfb.cjs +0 -1
- package/dist/vue-ui-funnel-BhDmLkFj.cjs +0 -1
- package/dist/vue-ui-galaxy-BcwAAgUh.cjs +0 -1
- package/dist/vue-ui-gauge-BCf-2H4T.cjs +0 -1
- package/dist/vue-ui-heatmap-Bxhy4dCf.cjs +0 -1
- package/dist/vue-ui-history-plot-CTBCFIG0.cjs +0 -1
- package/dist/vue-ui-molecule-pTMJG_3k.cjs +0 -1
- package/dist/vue-ui-mood-radar-DXLYUXbX.cjs +0 -1
- package/dist/vue-ui-nested-donuts-yztsnsjM.cjs +0 -17
- package/dist/vue-ui-onion-BgbKMVNe.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-Cha1Em8k.cjs +0 -8
- package/dist/vue-ui-quadrant-BzYnR_Hc.cjs +0 -1
- package/dist/vue-ui-quick-chart-BcW7URue.cjs +0 -15
- package/dist/vue-ui-radar-D-XPVXa9.cjs +0 -1
- package/dist/vue-ui-relation-circle-DfxnHEqR.cjs +0 -1
- package/dist/vue-ui-rings-C9NFME3F.cjs +0 -2
- package/dist/vue-ui-scatter-D0UloS1C.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CBCbyOG2.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BstSpbti.cjs +0 -1
- package/dist/vue-ui-sparkline-DTRZ-_Qw.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-CuU8Vpcv.cjs +0 -1
- package/dist/vue-ui-stackbar-B5uNBkxp.cjs +0 -6
- package/dist/vue-ui-strip-plot-7G7BAGQM.cjs +0 -1
- package/dist/vue-ui-thermometer-VnlcJh4G.cjs +0 -1
- package/dist/vue-ui-timer-Bh8RpM2u.cjs +0 -64
- package/dist/vue-ui-tiremarks-Ct96o_fd.cjs +0 -1
- package/dist/vue-ui-treemap-BfDk53pM.cjs +0 -1
- package/dist/vue-ui-vertical-bar-EIy7A0dV.cjs +0 -4
- package/dist/vue-ui-waffle-BB3l0zZU.cjs +0 -1
- package/dist/vue-ui-wheel-DfpXZJ8A.cjs +0 -1
- package/dist/vue-ui-word-cloud-DdaMzF2e.cjs +0 -1
- package/dist/vue-ui-xy-B4Mzyy81.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-kZKcQZM_.cjs"),F=require("./useNestedProp-D4Jn2Oxr.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},j={key:0,style:{position:"relative"}},O={key:0,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}},X={key:1,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}},I=["src","height","width"],Y=["xmlns","height","width"],G=["id"],P=["stop-color"],U=["stop-color"],q=["points","fill","stroke","stroke-width"],H=["src","alt","height","width","id"],K=["xmlns","viewBox","height","id"],T=["id"],W=["stop-color"],J=["stop-color"],Q=["points","fill","stroke"],Z=["xmlns","height"],ee=["onClick","onMouseenter","onFocus","onKeyup"],te=["onMouseenter","onFocus"],le={__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(S,{expose:_,emit:z}){const{vue_ui_rating:w}=a.useConfig(),i=S,v=e.ref(a.createUid()),g=e.ref(!1),r=e.ref(void 0),y=e.ref(void 0),p=e.ref([]),B=e.useSlots();e.onMounted(()=>{B["chart-background"]&&console.warn("VueUiRating does not support the #chart-background slot.")});const V=z,t=e.computed({get:()=>m(),set:o=>o});function m(){return F.useNestedProp({userConfig:i.config,defaultConfig:w})}e.watch(()=>i.config,o=>{t.value=m(),k()},{deep:!0});const N=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)?E(i.dataset.rating):i.dataset.rating),C=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)),u=e.ref(N.value),h=e.computed(()=>t.value.type==="image"),c=e.computed(()=>t.value.readonly);function E(o){let n=0,l=0;for(const s in o){const D=parseInt(s),x=o[s];n+=D*x,l+=x}if(l===0)return 0;const d=n/l;return Math.min(t.value.to,Math.max(t.value.from,d))}e.onMounted(()=>{k()});function k(){(!Object.hasOwn(i.dataset,"rating")||a.objectIsEmpty(i.dataset))&&a.error({componentName:"VueUiRating",type:"datasetAttribute",property:"rating"}),p.value=[];for(let o=t.value.from;o<=t.value.to;o+=1)p.value.push(o)}function f(o,n=!1){return o>r.value||c.value?n?t.value.style.image.inactiveOpacity:t.value.style.star.inactiveColor:n?1:t.value.style.star.useGradient?`url(#star_gradient_under_${v.value})`:t.value.style.star.activeColor}function $(o,n=!1){const l=u.value-o,d=n?1:100;switch(!0){case l<=0:return .001;case l>1:return 1*d;default:return l*d}}function b(o){c.value||(u.value=o,V("rate",o))}function L(){return u.value}function M(o=!0){c.value=o}return _({getData:L,toggleReadonly:M}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%`),class:"vue-ui-rating",onMouseover:n[4]||(n[4]=l=>g.value=!0),onMouseleave:n[5]||(n[5]=l=>{g.value=!1,r.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-rating-wrapper",style:e.normalizeStyle(`height:${t.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-rating-unit-container",style:e.normalizeStyle(`position:relative;height:${t.value.style.itemSize}px;width:${t.value.style.itemSize}px`)},[o.$slots["layer-under"]||o.$slots["layer-above"]?(e.openBlock(),e.createElementBlock("div",j,[o.$slots["layer-under"]?(e.openBlock(),e.createElementBlock("div",O,[e.renderSlot(o.$slots,"layer-under",e.mergeProps({ref_for:!0},{value:l,size:t.value.style.itemSize,hoveredValue:r.value,focusedValue:y.value}),void 0,!0)])):e.createCommentVNode("",!0),o.$slots["layer-above"]?(e.openBlock(),e.createElementBlock("div",X,[e.renderSlot(o.$slots,"layer-above",e.mergeProps({ref_for:!0},{value:l,size:t.value.style.itemSize,hoveredValue:r.value,focusedValue:y.value}),void 0,!0)])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.value.style.image.src,height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;opacity:${isNaN(r.value)?t.value.style.image.inactiveOpacity:f(l,!0)}`)},null,12,I)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_under_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,P),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,U)],8,G)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:isNaN(r.value)?t.value.style.star.inactiveColor:f(l),stroke:t.value.style.star.borderColor?t.value.style.star.borderColor:r.value?f(l):t.value.style.star.inactiveColor,"stroke-width":t.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,q)],8,Y)),h.value?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.style.image.src,alt:`${t.value.style.image.alt} ${l}`,height:t.value.style.itemSize,width:t.value.style.itemSize,id:`active_${v.value}_${l}`,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;clip:rect(0px,${$(d,!0)*t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)},null,12,H)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${$(d)} 100`,height:t.value.style.itemSize,class:"vue-ui-rating-unit",id:`active_${v.value}_${l}`,style:{position:"absolute",top:"0",left:"0"}},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_over_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,W),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,J)],8,T)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:t.value.style.star.useGradient?`url(#star_gradient_over_${v.value})`:t.value.style.star.activeColor,stroke:t.value.style.star.activeColor},null,8,Q)],8,K))],64)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(a.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;${c.value?"":"cursor:pointer"}`)},[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onClick:s=>b(l),onMouseenter:s=>r.value=l,onMouseleave:n[0]||(n[0]=s=>r.value=void 0),onFocus:s=>y.value=l,onBlur:n[1]||(n[1]=s=>y.value=void 0),tabindex:"0",onKeyup:e.withKeys(s=>b(l),["enter"])},null,40,ee)),c.value?(e.openBlock(),e.createElementBlock("rect",{key:1,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onMouseenter:s=>r.value=l,onMouseleave:n[2]||(n[2]=s=>r.value=void 0),onFocus:s=>y.value=l,onBlur:n[3]||(n[3]=s=>y.value=void 0)},null,40,te)):e.createCommentVNode("",!0)],12,Z)),t.value.style.tooltip.show&&C.value&&c.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${r.value===l?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(l)+":",5),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.tooltip.formatter,i.dataset.rating[l],e.unref(a.dataLabel)({v:i.dataset.rating[l],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0)],4))),256)),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],36))}},oe=A._export_sfc(le,[["__scopeId","data-v-e9ed619f"]]);exports.default=oe;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-DD4PT0Pl.cjs"),F=require("./useNestedProp-DU7JFxpL.cjs"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),R={key:0,class:"vue-ui-rating-title",style:{width:"100%"}},j={key:0,style:{position:"relative"}},O={key:0,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}},X={key:1,style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}},I=["src","height","width"],Y=["xmlns","height","width"],G=["id"],P=["stop-color"],U=["stop-color"],q=["points","fill","stroke","stroke-width"],H=["src","alt","height","width","id"],K=["xmlns","viewBox","height","id"],T=["id"],W=["stop-color"],J=["stop-color"],Q=["points","fill","stroke"],Z=["xmlns","height"],ee=["onClick","onMouseenter","onFocus","onKeyup"],te=["onMouseenter","onFocus"],le={__name:"vue-ui-rating",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["rate"],setup(S,{expose:_,emit:z}){const{vue_ui_rating:w}=a.useConfig(),i=S,v=e.ref(a.createUid()),g=e.ref(!1),r=e.ref(void 0),y=e.ref(void 0),p=e.ref([]),B=e.useSlots();e.onMounted(()=>{B["chart-background"]&&console.warn("VueUiRating does not support the #chart-background slot.")});const V=z,t=e.computed({get:()=>m(),set:o=>o});function m(){return F.useNestedProp({userConfig:i.config,defaultConfig:w})}e.watch(()=>i.config,o=>{t.value=m(),k()},{deep:!0});const N=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)?E(i.dataset.rating):i.dataset.rating),C=e.computed(()=>typeof i.dataset.rating=="object"&&!Array.isArray(i.dataset.rating)),u=e.ref(N.value),h=e.computed(()=>t.value.type==="image"),c=e.computed(()=>t.value.readonly);function E(o){let n=0,l=0;for(const s in o){const D=parseInt(s),x=o[s];n+=D*x,l+=x}if(l===0)return 0;const d=n/l;return Math.min(t.value.to,Math.max(t.value.from,d))}e.onMounted(()=>{k()});function k(){(!Object.hasOwn(i.dataset,"rating")||a.objectIsEmpty(i.dataset))&&a.error({componentName:"VueUiRating",type:"datasetAttribute",property:"rating"}),p.value=[];for(let o=t.value.from;o<=t.value.to;o+=1)p.value.push(o)}function f(o,n=!1){return o>r.value||c.value?n?t.value.style.image.inactiveOpacity:t.value.style.star.inactiveColor:n?1:t.value.style.star.useGradient?`url(#star_gradient_under_${v.value})`:t.value.style.star.activeColor}function $(o,n=!1){const l=u.value-o,d=n?1:100;switch(!0){case l<=0:return .001;case l>1:return 1*d;default:return l*d}}function b(o){c.value||(u.value=o,V("rate",o))}function L(){return u.value}function M(o=!0){c.value=o}return _({getData:L,toggleReadonly:M}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(`background:${t.value.style.backgroundColor};font-family:${t.value.style.fontFamily};width:100%`),class:"vue-ui-rating",onMouseover:n[4]||(n[4]=l=>g.value=!0),onMouseleave:n[5]||(n[5]=l=>{g.value=!1,r.value=void 0})},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("div",{style:e.normalizeStyle(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold?"bold":"normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)},e.toDisplayString(t.value.style.title.text),5),t.value.style.title.subtitle.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`color:${t.value.style.title.subtitle.color};font-size:${t.value.style.title.subtitle.fontSize}px;text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.subtitle.offsetY}px;font-weight:${t.value.style.title.subtitle.bold?"bold":"normal"}`)},e.toDisplayString(t.value.style.title.subtitle.text),5)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.rating.show&&t.value.style.rating.position==="top"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:100%;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"vue-ui-rating-wrapper",style:e.normalizeStyle(`height:${t.value.style.itemSize}px;width:100%;display:flex;align-items:center;justify-content:center`)},[t.value.style.rating.show&&t.value.style.rating.position==="left"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-right:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,d)=>(e.openBlock(),e.createElementBlock("div",{class:"vue-ui-rating-unit-container",style:e.normalizeStyle(`position:relative;height:${t.value.style.itemSize}px;width:${t.value.style.itemSize}px`)},[o.$slots["layer-under"]||o.$slots["layer-above"]?(e.openBlock(),e.createElementBlock("div",j,[o.$slots["layer-under"]?(e.openBlock(),e.createElementBlock("div",O,[e.renderSlot(o.$slots,"layer-under",e.mergeProps({ref_for:!0},{value:l,size:t.value.style.itemSize,hoveredValue:r.value,focusedValue:y.value}),void 0,!0)])):e.createCommentVNode("",!0),o.$slots["layer-above"]?(e.openBlock(),e.createElementBlock("div",X,[e.renderSlot(o.$slots,"layer-above",e.mergeProps({ref_for:!0},{value:l,size:t.value.style.itemSize,hoveredValue:r.value,focusedValue:y.value}),void 0,!0)])):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[h.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.value.style.image.src,height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;opacity:${isNaN(r.value)?t.value.style.image.inactiveOpacity:f(l,!0)}`)},null,12,I)):(e.openBlock(),e.createElementBlock("svg",{key:1,xmlns:e.unref(a.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,width:t.value.style.itemSize,class:"vue-ui-rating-unit"},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_under_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,P),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,U)],8,G)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:isNaN(r.value)?t.value.style.star.inactiveColor:f(l),stroke:t.value.style.star.borderColor?t.value.style.star.borderColor:r.value?f(l):t.value.style.star.inactiveColor,"stroke-width":t.value.style.star.borderWidth,"stroke-linecap":"round","stroke-linejoin":"round"},null,8,q)],8,Y)),h.value?(e.openBlock(),e.createElementBlock("img",{key:2,src:t.value.style.image.src,alt:`${t.value.style.image.alt} ${l}`,height:t.value.style.itemSize,width:t.value.style.itemSize,id:`active_${v.value}_${l}`,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;clip:rect(0px,${$(d,!0)*t.value.style.itemSize}px,${t.value.style.itemSize}px,0px`)},null,12,H)):(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:e.unref(a.XMLNS),viewBox:`0 0 ${$(d)} 100`,height:t.value.style.itemSize,class:"vue-ui-rating-unit",id:`active_${v.value}_${l}`,style:{position:"absolute",top:"0",left:"0"}},[e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`star_gradient_over_${v.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(a.shiftHue)(t.value.style.star.activeColor,.05)}`},null,8,W),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.star.activeColor},null,8,J)],8,T)]),e.createElementVNode("polygon",{points:e.unref(a.createStar)({plot:{x:50,y:50},radius:30,apexes:t.value.style.star.apexes}),fill:t.value.style.star.useGradient?`url(#star_gradient_over_${v.value})`:t.value.style.star.activeColor,stroke:t.value.style.star.activeColor},null,8,Q)],8,K))],64)),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(a.XMLNS),viewBox:"0 0 100 100",height:t.value.style.itemSize,class:"vue-ui-rating-unit",style:e.normalizeStyle(`position:absolute;top:0;left:0;${c.value?"":"cursor:pointer"}`)},[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("rect",{key:0,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onClick:s=>b(l),onMouseenter:s=>r.value=l,onMouseleave:n[0]||(n[0]=s=>r.value=void 0),onFocus:s=>y.value=l,onBlur:n[1]||(n[1]=s=>y.value=void 0),tabindex:"0",onKeyup:e.withKeys(s=>b(l),["enter"])},null,40,ee)),c.value?(e.openBlock(),e.createElementBlock("rect",{key:1,class:"vue-ui-rating-mouse-trap",x:0,y:0,width:100,height:100,fill:"transparent",onMouseenter:s=>r.value=l,onMouseleave:n[2]||(n[2]=s=>r.value=void 0),onFocus:s=>y.value=l,onBlur:n[3]||(n[3]=s=>y.value=void 0)},null,40,te)):e.createCommentVNode("",!0)],12,Z)),t.value.style.tooltip.show&&C.value&&c.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:"vue-ui-rating-tooltip",style:e.normalizeStyle(`border:1px solid ${t.value.style.tooltip.borderColor};position:absolute;top:${-48+t.value.style.tooltip.offsetY}px;left:50%;transform:translateX(-50%);width:fit-content;text-align:center;background:${t.value.style.tooltip.backgroundColor};display:${r.value===l?"block":"none"};padding:2px 12px;border-radius:${t.value.style.tooltip.borderRadius}px;box-shadow:${t.value.style.tooltip.boxShadow}`)},[e.createElementVNode("div",{style:e.normalizeStyle(`width:100%;display:flex;flex-direction:row;gap:6px;position:relative;text-align:center;color:${t.value.style.tooltip.color}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(l)+":",5),e.createElementVNode("span",{style:e.normalizeStyle(`font-weight:${t.value.style.tooltip.bold?"bold":"normal"};font-size:${t.value.style.tooltip.fontSize}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.tooltip.formatter,i.dataset.rating[l],e.unref(a.dataLabel)({v:i.dataset.rating[l],r:t.value.style.tooltip.roundingValue}),t.value)),5),e.createElementVNode("div",{style:e.normalizeStyle(`font-family:Arial !important;position:absolute;top:calc(100% - 4px);left:50%;transform:translateX(-50%);color:${t.value.style.tooltip.borderColor}`)}," ▼ ",4)],4)],4)):e.createCommentVNode("",!0)],4))),256)),t.value.style.rating.show&&t.value.style.rating.position==="right"?(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(`width:fit-content;text-align:center;margin-bottom:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};padding-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],4),t.value.style.rating.show&&t.value.style.rating.position==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(`width:100%;text-align:center;margin-top:${t.value.style.rating.offsetY}px;font-size:${t.value.style.rating.fontSize}px;font-weight:${t.value.style.rating.bold?"bold":"normal"};margin-left:${t.value.style.rating.offsetX}px`)},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.rating.formatter,u.value,e.unref(a.dataLabel)({v:u.value,r:t.value.style.rating.roundingValue}),t.value)),5)):e.createCommentVNode("",!0)],36))}},oe=A._export_sfc(le,[["__scopeId","data-v-e9ed619f"]]);exports.default=oe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as f, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
|
|
2
|
-
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, W as I } from "./index-
|
|
3
|
-
import { u as ie } from "./useNestedProp-
|
|
2
|
+
import { u as te, c as le, o as oe, e as ae, i as b, f as _, X as z, w as X, W as I } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { u as ie } from "./useNestedProp-Cg0NIwr6.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const ne = {
|
|
6
6
|
key: 0,
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as nt, U as
|
|
6
|
-
import
|
|
7
|
-
import { u as we } from "./useNestedProp-
|
|
8
|
-
import { _ as
|
|
9
|
-
import { P as
|
|
10
|
-
import { u as
|
|
11
|
-
import {
|
|
12
|
-
|
|
1
|
+
import { useCssVars as Ve, computed as y, ref as o, watch as We, onMounted as De, onBeforeUnmount as Xe, createElementBlock as a, openBlock as i, unref as u, normalizeStyle as C, createBlock as S, createCommentVNode as v, createSlots as Ye, withCtx as F, renderSlot as h, normalizeProps as V, guardReactiveProps as W, normalizeClass as D, createVNode as qe, createElementVNode as He, Fragment as P, renderList as L, mergeProps as ge, toDisplayString as B } from "vue";
|
|
2
|
+
import { u as Je, c as Ke, t as Qe, p as me, a as Ze, b as et, o as tt, e as ke, g as lt, X as st, G as pe, i as X, f as Y, F as q } from "./index-CZlI7PiS.js";
|
|
3
|
+
import { t as it, u as at } from "./useResponsive-BWapHhVH.js";
|
|
4
|
+
import { _ as rt } from "./Title-DePxeqVl.js";
|
|
5
|
+
import { u as nt, U as ut } from "./usePrinter-D-sSdR2l.js";
|
|
6
|
+
import ot from "./vue-ui-skeleton-D8r-yAkW.js";
|
|
7
|
+
import { u as we } from "./useNestedProp-Cg0NIwr6.js";
|
|
8
|
+
import { _ as ct } from "./PackageVersion-J_USnljf.js";
|
|
9
|
+
import { P as dt } from "./PenAndPaper-CoEXEMcN.js";
|
|
10
|
+
import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as ft } from "./useChartAccessibility-BWojgys7.js";
|
|
12
|
+
import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const ht = ["id"], gt = ["xmlns", "viewBox"], mt = ["width", "height"], kt = ["cx", "cy", "r", "stroke", "stroke-width"], pt = { key: 1 }, wt = ["stroke", "d", "stroke-width"], xt = { style: { "pointer-events": "none" } }, bt = ["cx", "cy", "fill", "r", "stroke"], $t = ["x", "y", "fill", "font-size"], _t = { key: 2 }, Ct = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], Pt = { style: { "pointer-events": "none" } }, Lt = ["cx", "cy", "fill", "r", "stroke"], Ot = ["x", "y", "fill", "font-size"], zt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], At = ["cx", "cy", "fill", "stroke", "onClick", "r"], It = {
|
|
13
14
|
key: 5,
|
|
14
15
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
16
|
+
}, Mt = {
|
|
16
17
|
__name: "vue-ui-relation-circle",
|
|
17
18
|
props: {
|
|
18
19
|
dataset: {
|
|
@@ -29,15 +30,15 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
setup(xe, { expose: be }) {
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
33
|
+
Ve((e) => ({
|
|
34
|
+
"1fee7ef0": ze.value,
|
|
35
|
+
"394bce67": Oe.value,
|
|
36
|
+
"23e0d009": Ae.value
|
|
36
37
|
}));
|
|
37
|
-
const { vue_ui_relation_circle: $e } =
|
|
38
|
+
const { vue_ui_relation_circle: $e } = Je(), p = xe, E = y(() => !!p.dataset && Object.keys(p.dataset).length), O = o(Ke()), H = o(0), z = o(null), J = o(null), K = o(null), Q = o(null), Z = o(0), l = y({
|
|
38
39
|
get: () => le(),
|
|
39
40
|
set: (e) => e
|
|
40
|
-
}), { userOptionsVisible: T, setUserOptionsVisibility: ee, keepUserOptionState: te } =
|
|
41
|
+
}), { userOptionsVisible: T, setUserOptionsVisibility: ee, keepUserOptionState: te } = vt({ config: l.value }), { svgRef: _e } = ft({ config: l.value.style.title });
|
|
41
42
|
function le() {
|
|
42
43
|
const e = we({
|
|
43
44
|
userConfig: p.config,
|
|
@@ -45,38 +46,38 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
45
46
|
});
|
|
46
47
|
return e.theme ? {
|
|
47
48
|
...we({
|
|
48
|
-
userConfig:
|
|
49
|
+
userConfig: Ze.vue_ui_relation_circle[e.theme] || p.config,
|
|
49
50
|
defaultConfig: e
|
|
50
51
|
}),
|
|
51
|
-
customPalette:
|
|
52
|
+
customPalette: Qe[e.theme] || me
|
|
52
53
|
} : e;
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
We(() => p.config, (e) => {
|
|
55
56
|
l.value = le(), T.value = !l.value.userOptions.showOnChartHover, ce(), Z.value += 1;
|
|
56
57
|
}, { deep: !0 });
|
|
57
|
-
const { isPrinting: se, isImaging: ie, generatePdf: ae, generateImage:
|
|
58
|
+
const { isPrinting: se, isImaging: ie, generatePdf: ae, generateImage: re } = nt({
|
|
58
59
|
elementId: `relation_circle_${O.value}`,
|
|
59
60
|
fileName: l.value.style.title.text || "vue-ui-relation-circle"
|
|
60
|
-
}),
|
|
61
|
+
}), Ce = y(() => l.value.userOptions.show && !l.value.style.title.text), ne = y(() => et(l.value.customPalette)), x = o([]), g = o([]), c = o({}), m = o([]), Pe = o(0), R = y(() => p.dataset.slice(0, l.value.style.limit)), $ = o(l.value.style.size), k = o(l.value.style.weightLabels.size), ue = o(l.value.style.plot.radius), oe = o(l.value.style.labels.fontSize), n = o({
|
|
61
62
|
height: l.value.style.size,
|
|
62
63
|
width: l.value.style.size
|
|
63
|
-
}), b =
|
|
64
|
+
}), b = y({
|
|
64
65
|
get() {
|
|
65
66
|
return $.value * l.value.style.circle.radiusProportion;
|
|
66
67
|
},
|
|
67
68
|
set(e) {
|
|
68
69
|
return e;
|
|
69
70
|
}
|
|
70
|
-
}),
|
|
71
|
-
|
|
71
|
+
}), Le = y(() => l.value.style.links.curved), Oe = y(() => `${l.value.style.animation.speedMs}ms`), ze = y(() => b.value * 2), Ae = y(() => b.value * 4), A = o(null);
|
|
72
|
+
De(() => {
|
|
72
73
|
ce(), document.getElementById(`relation_circle_${O.value}`).addEventListener("click", de);
|
|
73
74
|
});
|
|
74
75
|
function ce() {
|
|
75
|
-
if (
|
|
76
|
+
if (tt(p.dataset) ? ke({
|
|
76
77
|
componentName: "VueUiRelationCircle",
|
|
77
78
|
type: "dataset"
|
|
78
79
|
}) : p.dataset.forEach((e, s) => {
|
|
79
|
-
|
|
80
|
+
lt({
|
|
80
81
|
datasetObject: e,
|
|
81
82
|
requiredAttributes: ["id", "label", "relations", "weights"]
|
|
82
83
|
}).forEach((t) => {
|
|
@@ -88,15 +89,15 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
88
89
|
});
|
|
89
90
|
});
|
|
90
91
|
}), l.value.responsive) {
|
|
91
|
-
const e =
|
|
92
|
-
const { width: s, height: t } =
|
|
92
|
+
const e = it(() => {
|
|
93
|
+
const { width: s, height: t } = at({
|
|
93
94
|
chart: z.value,
|
|
94
95
|
title: l.value.style.title.text ? J.value : null,
|
|
95
96
|
source: K.value,
|
|
96
97
|
noTitle: Q.value
|
|
97
98
|
});
|
|
98
99
|
requestAnimationFrame(() => {
|
|
99
|
-
$.value = Math.min(s, t),
|
|
100
|
+
$.value = Math.min(s, t), n.value.width = s, n.value.height = t, b.value = $.value * l.value.style.circle.radiusProportion, x.value = [], g.value = [], ve(), fe(), k.value = q({
|
|
100
101
|
relator: $.value,
|
|
101
102
|
adjuster: l.value.style.size,
|
|
102
103
|
source: l.value.style.weightLabels.size,
|
|
@@ -119,9 +120,9 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
119
120
|
});
|
|
120
121
|
A.value = new ResizeObserver(e), A.value.observe(z.value.parentNode);
|
|
121
122
|
} else
|
|
122
|
-
x.value = [], g.value = [], ve(),
|
|
123
|
+
x.value = [], g.value = [], ve(), fe();
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
+
Xe(() => {
|
|
125
126
|
document.getElementById(`relation_circle_${O.value}`).removeEventListener("click", de), A.value && A.value.disconnect();
|
|
126
127
|
});
|
|
127
128
|
function de(e) {
|
|
@@ -129,23 +130,23 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
129
130
|
s && Array.from(s.classList).includes("vue-ui-user-options") || s && Array.from(s.classList).includes("vue-ui-user-options-summary") || s && Array.from(s.classList).includes("vue-data-ui-button") || s && Array.from(s.classList).includes("vue-ui-relation-circle-legend") || (c.value = {}, m.value = []);
|
|
130
131
|
}
|
|
131
132
|
function ve() {
|
|
132
|
-
const e = 6.28319 /
|
|
133
|
-
let t = 0,
|
|
134
|
-
|
|
135
|
-
const U =
|
|
136
|
-
x.value.push({ x: G, y:
|
|
133
|
+
const e = 6.28319 / R.value.length, s = 360 / R.value.length;
|
|
134
|
+
let t = 0, r = 0;
|
|
135
|
+
R.value.forEach((f, d) => {
|
|
136
|
+
const U = f.weights.reduce((Ue, Ge) => Ue + Ge, 0), G = b.value * Math.cos(t) + n.value.width / 2, je = b.value * Math.sin(t) + n.value.height / 2 + l.value.style.circle.offsetY;
|
|
137
|
+
x.value.push({ x: G, y: je, ...f, color: f.color ? f.color : ne.value[d] ? ne.value[d] : me[d], regAngle: r, totalWeight: U }), t += e, r += s;
|
|
137
138
|
});
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
-
const t = (e.x + s.x) / 2,
|
|
141
|
-
return { x: t, y:
|
|
140
|
+
function Ie(e, s) {
|
|
141
|
+
const t = (e.x + s.x) / 2, r = (e.y + s.y) / 2;
|
|
142
|
+
return { x: t, y: r };
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function fe() {
|
|
144
145
|
g.value = [], x.value.forEach((e) => {
|
|
145
|
-
x.value.filter((t) => t.relations.includes(e.id)).forEach((t,
|
|
146
|
-
const
|
|
146
|
+
x.value.filter((t) => t.relations.includes(e.id)).forEach((t, r) => {
|
|
147
|
+
const f = t.relations.indexOf(e.id);
|
|
147
148
|
g.value.push({
|
|
148
|
-
weight: t.weights[
|
|
149
|
+
weight: t.weights[f] ? t.weights[f] : 0,
|
|
149
150
|
relationId: `${e.id}_${t.id}`,
|
|
150
151
|
x1: e.x,
|
|
151
152
|
y1: e.y,
|
|
@@ -153,8 +154,8 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
153
154
|
y2: t.y,
|
|
154
155
|
colorSource: e.color,
|
|
155
156
|
colorTarget: t.color,
|
|
156
|
-
midPointLine:
|
|
157
|
-
midPointBezier:
|
|
157
|
+
midPointLine: Ie({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
|
|
158
|
+
midPointBezier: Me({
|
|
158
159
|
x1: e.x,
|
|
159
160
|
x2: t.x,
|
|
160
161
|
y1: e.y,
|
|
@@ -165,43 +166,43 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
165
166
|
});
|
|
166
167
|
});
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
-
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 },
|
|
170
|
-
x:
|
|
171
|
-
y:
|
|
172
|
-
}, d = 0.5, U = Math.pow(1 - d, 3) * s.x + 3 * Math.pow(1 - d, 2) * d *
|
|
169
|
+
function Me(e) {
|
|
170
|
+
const s = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, r = { x: e.x1, y: e.y1 }, f = {
|
|
171
|
+
x: n.value.width / 2,
|
|
172
|
+
y: n.value.height / 2 + l.value.style.circle.offsetY
|
|
173
|
+
}, d = 0.5, U = Math.pow(1 - d, 3) * s.x + 3 * Math.pow(1 - d, 2) * d * r.x + 3 * (1 - d) * Math.pow(d, 2) * f.x + Math.pow(d, 3) * t.x, G = Math.pow(1 - d, 3) * s.y + 3 * Math.pow(1 - d, 2) * d * r.y + 3 * (1 - d) * Math.pow(d, 2) * f.y + Math.pow(d, 3) * t.y;
|
|
173
174
|
return { x: U, y: G };
|
|
174
175
|
}
|
|
175
|
-
const
|
|
176
|
-
function
|
|
176
|
+
const Se = y(() => Math.max(...g.value.map((e) => e.weight)));
|
|
177
|
+
function Fe(e) {
|
|
177
178
|
return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
178
179
|
}
|
|
179
180
|
function w(e) {
|
|
180
181
|
return e.colorSource;
|
|
181
182
|
}
|
|
182
|
-
function
|
|
183
|
-
return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}` ? `opacity:1;stroke-width:${
|
|
183
|
+
function ye(e) {
|
|
184
|
+
return Object.hasOwn(c.value, "x") ? m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}` ? `opacity:1;stroke-width:${N(e)}` : "opacity: 0" : "opacity: 1";
|
|
184
185
|
}
|
|
185
186
|
function _(e) {
|
|
186
187
|
return Object.hasOwn(c.value, "x") ? !!(m.value.includes(e.id) && e.relationId === `${e.id}_${c.value.id}` || e.relationId === `${c.value.id}_${e.id}`) : !1;
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
+
function Be(e) {
|
|
189
190
|
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
+
function Ee(e) {
|
|
192
193
|
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
193
194
|
}
|
|
194
|
-
function
|
|
195
|
+
function Te(e) {
|
|
195
196
|
return Object.hasOwn(c.value, "x") ? c.value.id === e.id || m.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
+
function Re(e) {
|
|
198
199
|
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
199
200
|
}
|
|
200
201
|
function he(e) {
|
|
201
|
-
|
|
202
|
+
Pe.value = 360 - e.regAngle, c.value.id && e.id === c.value.id ? (c.value = {}, m.value = []) : (c.value = e, m.value = [...e.relations]);
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
-
const s = e.weight /
|
|
204
|
+
function N(e) {
|
|
205
|
+
const s = e.weight / Se.value * l.value.style.links.maxWidth;
|
|
205
206
|
return Math.max(0.3, s);
|
|
206
207
|
}
|
|
207
208
|
const I = o(!1);
|
|
@@ -214,7 +215,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
214
215
|
}
|
|
215
216
|
return be({
|
|
216
217
|
generatePdf: ae,
|
|
217
|
-
generateImage:
|
|
218
|
+
generateImage: re,
|
|
218
219
|
toggleAnnotator: j
|
|
219
220
|
}), (e, s) => (i(), a("div", {
|
|
220
221
|
ref_key: "relationCircleChart",
|
|
@@ -225,7 +226,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
225
226
|
onMouseenter: s[0] || (s[0] = () => u(ee)(!0)),
|
|
226
227
|
onMouseleave: s[1] || (s[1] = () => u(ee)(!1))
|
|
227
228
|
}, [
|
|
228
|
-
l.value.userOptions.buttons.annotator ? (i(), S(
|
|
229
|
+
l.value.userOptions.buttons.annotator ? (i(), S(dt, {
|
|
229
230
|
key: 0,
|
|
230
231
|
parent: z.value,
|
|
231
232
|
backgroundColor: l.value.style.backgroundColor,
|
|
@@ -233,7 +234,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
233
234
|
active: M.value,
|
|
234
235
|
onClose: j
|
|
235
236
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
236
|
-
|
|
237
|
+
Ce.value ? (i(), a("div", {
|
|
237
238
|
key: 1,
|
|
238
239
|
ref_key: "noTitle",
|
|
239
240
|
ref: Q,
|
|
@@ -246,7 +247,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
246
247
|
ref: J,
|
|
247
248
|
style: "width:100%;background:transparent"
|
|
248
249
|
}, [
|
|
249
|
-
(i(), S(
|
|
250
|
+
(i(), S(rt, {
|
|
250
251
|
key: `title_${Z.value}`,
|
|
251
252
|
config: {
|
|
252
253
|
title: {
|
|
@@ -260,7 +261,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
260
261
|
}
|
|
261
262
|
}, null, 8, ["config"]))
|
|
262
263
|
], 512)) : v("", !0),
|
|
263
|
-
l.value.userOptions.show && E.value && (u(te) || u(T)) ? (i(), S(
|
|
264
|
+
l.value.userOptions.show && E.value && (u(te) || u(T)) ? (i(), S(ut, {
|
|
264
265
|
ref: "details",
|
|
265
266
|
key: `user_options_${H.value}`,
|
|
266
267
|
backgroundColor: l.value.style.backgroundColor,
|
|
@@ -280,12 +281,12 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
280
281
|
isAnnotation: M.value,
|
|
281
282
|
onToggleFullscreen: Ne,
|
|
282
283
|
onGeneratePdf: u(ae),
|
|
283
|
-
onGenerateImage: u(
|
|
284
|
+
onGenerateImage: u(re),
|
|
284
285
|
onToggleAnnotator: j,
|
|
285
286
|
style: C({
|
|
286
287
|
visibility: u(te) ? u(T) ? "visible" : "hidden" : "visible"
|
|
287
288
|
})
|
|
288
|
-
},
|
|
289
|
+
}, Ye({ _: 2 }, [
|
|
289
290
|
e.$slots.optionPdf ? {
|
|
290
291
|
name: "optionPdf",
|
|
291
292
|
fn: F(() => [
|
|
@@ -302,61 +303,63 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
302
303
|
} : void 0,
|
|
303
304
|
e.$slots.optionFullscreen ? {
|
|
304
305
|
name: "optionFullscreen",
|
|
305
|
-
fn: F(({ toggleFullscreen: t, isFullscreen:
|
|
306
|
-
h(e.$slots, "optionFullscreen", V(W({ toggleFullscreen: t, isFullscreen:
|
|
306
|
+
fn: F(({ toggleFullscreen: t, isFullscreen: r }) => [
|
|
307
|
+
h(e.$slots, "optionFullscreen", V(W({ toggleFullscreen: t, isFullscreen: r })), void 0, !0)
|
|
307
308
|
]),
|
|
308
309
|
key: "2"
|
|
309
310
|
} : void 0,
|
|
310
311
|
e.$slots.optionAnnotator ? {
|
|
311
312
|
name: "optionAnnotator",
|
|
312
|
-
fn: F(({ toggleAnnotator: t, isAnnotator:
|
|
313
|
-
h(e.$slots, "optionAnnotator", V(W({ toggleAnnotator: t, isAnnotator:
|
|
313
|
+
fn: F(({ toggleAnnotator: t, isAnnotator: r }) => [
|
|
314
|
+
h(e.$slots, "optionAnnotator", V(W({ toggleAnnotator: t, isAnnotator: r })), void 0, !0)
|
|
314
315
|
]),
|
|
315
316
|
key: "3"
|
|
316
317
|
} : void 0
|
|
317
318
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
318
319
|
E.value ? (i(), a("svg", {
|
|
319
320
|
key: 4,
|
|
320
|
-
|
|
321
|
+
ref_key: "svgRef",
|
|
322
|
+
ref: _e,
|
|
323
|
+
xmlns: u(st),
|
|
321
324
|
class: D([{ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }, "relation-circle"]),
|
|
322
|
-
viewBox: `0 0 ${
|
|
325
|
+
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
323
326
|
width: "100%",
|
|
324
327
|
style: "user-select:none; background:transparent"
|
|
325
328
|
}, [
|
|
326
|
-
|
|
329
|
+
qe(ct),
|
|
327
330
|
e.$slots["chart-background"] ? (i(), a("foreignObject", {
|
|
328
331
|
key: 0,
|
|
329
332
|
x: 0,
|
|
330
333
|
y: 0,
|
|
331
|
-
width:
|
|
332
|
-
height:
|
|
334
|
+
width: n.value.width <= 0 ? 10 : n.value.width,
|
|
335
|
+
height: n.value.height <= 0 ? 10 : n.value.height,
|
|
333
336
|
style: {
|
|
334
337
|
pointerEvents: "none"
|
|
335
338
|
}
|
|
336
339
|
}, [
|
|
337
340
|
h(e.$slots, "chart-background", {}, void 0, !0)
|
|
338
|
-
], 8,
|
|
339
|
-
|
|
340
|
-
cx: (
|
|
341
|
-
cy: (
|
|
341
|
+
], 8, mt)) : v("", !0),
|
|
342
|
+
He("circle", {
|
|
343
|
+
cx: (n.value.width <= 0 ? 1e-4 : n.value.width) / 2,
|
|
344
|
+
cy: (n.value.height <= 0 ? 1e-4 : n.value.height) / 2 + l.value.style.circle.offsetY,
|
|
342
345
|
r: b.value <= 0 ? 1e-4 : b.value,
|
|
343
346
|
stroke: l.value.style.circle.stroke,
|
|
344
347
|
"stroke-width": l.value.style.circle.strokeWidth,
|
|
345
348
|
fill: "transparent",
|
|
346
349
|
class: "main-circle"
|
|
347
|
-
}, null, 8,
|
|
348
|
-
|
|
349
|
-
(i(!0), a(P, null, L(g.value, (t,
|
|
350
|
-
key: `relation_${
|
|
351
|
-
style: C(
|
|
350
|
+
}, null, 8, kt),
|
|
351
|
+
Le.value ? (i(), a("g", pt, [
|
|
352
|
+
(i(!0), a(P, null, L(g.value, (t, r) => (i(), a("path", {
|
|
353
|
+
key: `relation_${r}`,
|
|
354
|
+
style: C(ye(t)),
|
|
352
355
|
stroke: w(t),
|
|
353
356
|
class: D(["relation", { "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && m.value.includes(t.id) }]),
|
|
354
|
-
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${
|
|
357
|
+
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${n.value.width / 2},${n.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
355
358
|
fill: "none",
|
|
356
|
-
"stroke-width":
|
|
359
|
+
"stroke-width": N(t),
|
|
357
360
|
"stroke-linecap": "round"
|
|
358
|
-
}, null, 14,
|
|
359
|
-
(i(!0), a(P, null, L(g.value, (t,
|
|
361
|
+
}, null, 14, wt))), 128)),
|
|
362
|
+
(i(!0), a(P, null, L(g.value, (t, r) => (i(), a("g", xt, [
|
|
360
363
|
_(t) ? h(e.$slots, "dataLabel", ge({
|
|
361
364
|
key: 0,
|
|
362
365
|
ref_for: !0
|
|
@@ -375,7 +378,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
375
378
|
r: k.value,
|
|
376
379
|
stroke: l.value.style.backgroundColor,
|
|
377
380
|
"stroke-width": "1"
|
|
378
|
-
}, null, 8,
|
|
381
|
+
}, null, 8, bt)) : v("", !0),
|
|
379
382
|
_(t) && !e.$slots.dataLabel ? (i(), a("text", {
|
|
380
383
|
key: 2,
|
|
381
384
|
x: t.midPointBezier.x,
|
|
@@ -393,22 +396,22 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
393
396
|
r: l.value.style.weightLabels.rounding
|
|
394
397
|
}),
|
|
395
398
|
{ ...t }
|
|
396
|
-
)), 9,
|
|
399
|
+
)), 9, $t)) : v("", !0)
|
|
397
400
|
]))), 256))
|
|
398
|
-
])) : (i(), a("g",
|
|
399
|
-
(i(!0), a(P, null, L(g.value, (t,
|
|
400
|
-
key: `relation_${
|
|
401
|
+
])) : (i(), a("g", _t, [
|
|
402
|
+
(i(!0), a(P, null, L(g.value, (t, r) => (i(), a("line", {
|
|
403
|
+
key: `relation_${r}`,
|
|
401
404
|
stroke: w(t),
|
|
402
|
-
"stroke-width":
|
|
403
|
-
style: C(
|
|
405
|
+
"stroke-width": N(t),
|
|
406
|
+
style: C(ye(t)),
|
|
404
407
|
x1: t.x1,
|
|
405
408
|
x2: t.x2,
|
|
406
409
|
y1: t.y1,
|
|
407
410
|
y2: t.y2,
|
|
408
411
|
class: D({ "vue-ui-relation-circle-selected": c.value.hasOwnProperty("id") && m.value.includes(t.id) }),
|
|
409
412
|
"stroke-linecap": "round"
|
|
410
|
-
}, null, 14,
|
|
411
|
-
(i(!0), a(P, null, L(g.value, (t,
|
|
413
|
+
}, null, 14, Ct))), 128)),
|
|
414
|
+
(i(!0), a(P, null, L(g.value, (t, r) => (i(), a("g", Pt, [
|
|
412
415
|
_(t) ? h(e.$slots, "dataLabel", ge({
|
|
413
416
|
key: 0,
|
|
414
417
|
ref_for: !0
|
|
@@ -427,7 +430,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
427
430
|
r: k.value,
|
|
428
431
|
stroke: l.value.style.backgroundColor,
|
|
429
432
|
"stroke-width": "1"
|
|
430
|
-
}, null, 8,
|
|
433
|
+
}, null, 8, Lt)) : v("", !0),
|
|
431
434
|
_(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (i(), a("text", {
|
|
432
435
|
key: 2,
|
|
433
436
|
x: t.midPointLine.x,
|
|
@@ -445,20 +448,20 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
445
448
|
r: l.value.style.weightLabels.rounding
|
|
446
449
|
}),
|
|
447
450
|
{ ...t }
|
|
448
|
-
)), 9,
|
|
451
|
+
)), 9, Ot)) : v("", !0)
|
|
449
452
|
]))), 256))
|
|
450
453
|
])),
|
|
451
|
-
(i(!0), a(P, null, L(x.value, (t,
|
|
452
|
-
key: `plot_text_${
|
|
453
|
-
"text-anchor":
|
|
454
|
-
transform:
|
|
455
|
-
x:
|
|
454
|
+
(i(!0), a(P, null, L(x.value, (t, r) => (i(), a("text", {
|
|
455
|
+
key: `plot_text_${r}`,
|
|
456
|
+
"text-anchor": Be(t),
|
|
457
|
+
transform: Re(t),
|
|
458
|
+
x: Ee(t),
|
|
456
459
|
y: t.y + 5,
|
|
457
|
-
onClick: (
|
|
460
|
+
onClick: (f) => he(t),
|
|
458
461
|
class: "vue-ui-relation-circle-legend",
|
|
459
462
|
"transform-origin": "start",
|
|
460
463
|
"font-weight": c.value.id === t.id ? "900" : "400",
|
|
461
|
-
style: C(`font-family:${l.value.style.fontFamily};${
|
|
464
|
+
style: C(`font-family:${l.value.style.fontFamily};${Te(t)}`),
|
|
462
465
|
"font-size": oe.value,
|
|
463
466
|
fill: l.value.style.labels.color
|
|
464
467
|
}, B(t.label) + " (" + B(u(X)(
|
|
@@ -471,22 +474,22 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
471
474
|
r: l.value.style.weightLabels.rounding
|
|
472
475
|
}),
|
|
473
476
|
{ ...t }
|
|
474
|
-
)) + ") ", 13,
|
|
475
|
-
(i(!0), a(P, null, L(x.value, (t,
|
|
477
|
+
)) + ") ", 13, zt))), 128)),
|
|
478
|
+
(i(!0), a(P, null, L(x.value, (t, r) => (i(), a("circle", {
|
|
476
479
|
cx: t.x,
|
|
477
480
|
cy: t.y,
|
|
478
|
-
key: `plot_${
|
|
479
|
-
style: C(
|
|
481
|
+
key: `plot_${r}`,
|
|
482
|
+
style: C(Fe(t)),
|
|
480
483
|
class: "vue-ui-relation-circle-plot",
|
|
481
484
|
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
482
485
|
stroke: l.value.style.backgroundColor,
|
|
483
486
|
"stroke-width": "1",
|
|
484
|
-
onClick: (
|
|
487
|
+
onClick: (f) => he(t),
|
|
485
488
|
r: ue.value
|
|
486
|
-
}, null, 12,
|
|
487
|
-
h(e.$slots, "svg", { svg:
|
|
488
|
-
], 10,
|
|
489
|
-
e.$slots.watermark ? (i(), a("div",
|
|
489
|
+
}, null, 12, At))), 128)),
|
|
490
|
+
h(e.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
491
|
+
], 10, gt)) : v("", !0),
|
|
492
|
+
e.$slots.watermark ? (i(), a("div", It, [
|
|
490
493
|
h(e.$slots, "watermark", V(W({ isPrinting: u(se) || u(ie) })), void 0, !0)
|
|
491
494
|
])) : v("", !0),
|
|
492
495
|
e.$slots.source ? (i(), a("div", {
|
|
@@ -497,7 +500,7 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
497
500
|
}, [
|
|
498
501
|
h(e.$slots, "source", {}, void 0, !0)
|
|
499
502
|
], 512)) : v("", !0),
|
|
500
|
-
E.value ? v("", !0) : (i(), S(
|
|
503
|
+
E.value ? v("", !0) : (i(), S(ot, {
|
|
501
504
|
key: 7,
|
|
502
505
|
config: {
|
|
503
506
|
type: "relationCircle",
|
|
@@ -509,9 +512,9 @@ const yt = ["id"], ft = ["xmlns", "viewBox"], ht = ["width", "height"], gt = ["c
|
|
|
509
512
|
}
|
|
510
513
|
}
|
|
511
514
|
}, null, 8, ["config"]))
|
|
512
|
-
], 44,
|
|
515
|
+
], 44, ht));
|
|
513
516
|
}
|
|
514
|
-
},
|
|
517
|
+
}, Dt = /* @__PURE__ */ yt(Mt, [["__scopeId", "data-v-61459281"]]);
|
|
515
518
|
export {
|
|
516
|
-
|
|
519
|
+
Dt as default
|
|
517
520
|
};
|