vue-data-ui 2.4.85 → 2.4.87
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-Ajt3NMEa.cjs → Arrow-B6C-c2DT.cjs} +1 -1
- package/dist/{Arrow-Qayb_B0s.js → Arrow-C8PrFeHS.js} +1 -1
- package/dist/{BaseIcon-BVrsMbvi.cjs → BaseIcon-CdOKZmHr.cjs} +1 -1
- package/dist/{BaseIcon-B8U62FEj.js → BaseIcon-plElWres.js} +1 -1
- package/dist/{DataTable-1PQD-SFb.cjs → DataTable-BmKl4AAb.cjs} +1 -1
- package/dist/{DataTable-C0tCPQ9i.js → DataTable-CKke7C6w.js} +2 -2
- package/dist/{Legend-BJ2Wbqut.cjs → Legend-CY6wjCYY.cjs} +1 -1
- package/dist/{Legend-BTpe6qQB.js → Legend-DMeEvZOT.js} +2 -2
- package/dist/{PackageVersion-BjfedMsH.cjs → PackageVersion-DvDNPRrJ.cjs} +1 -1
- package/dist/{PackageVersion-CENy3Lm2.js → PackageVersion-Rh3rgo6A.js} +1 -1
- package/dist/{PenAndPaper-nqRtAh6J.cjs → PenAndPaper--xHLJRME.cjs} +1 -1
- package/dist/{PenAndPaper-Dr7ndoP_.js → PenAndPaper-DqVsdeLc.js} +3 -3
- package/dist/{Shape-zFv85Gc2.js → Shape-CL3HglYL.js} +1 -1
- package/dist/{Shape-Boa32JEn.cjs → Shape-DEwnzwRB.cjs} +1 -1
- package/dist/{Slicer-D6QLMg5N.cjs → Slicer-CnNbe-dl.cjs} +1 -1
- package/dist/{Slicer-BUYuk07t.js → Slicer-ZryQKOl5.js} +2 -2
- package/dist/{Title-CaET2xuF.js → Title-BU5Aq1_x.js} +1 -1
- package/dist/{Title-DJUxOiaO.cjs → Title-C10173bN.cjs} +1 -1
- package/dist/{Tooltip-C5QuW94e.cjs → Tooltip-CL7aSMgq.cjs} +1 -1
- package/dist/{Tooltip-Bkc4233T.js → Tooltip-Dm-obTbx.js} +1 -1
- package/dist/{index-COIn1phv.cjs → index-1HOIfTy2.cjs} +1 -1
- package/dist/{index-B7nCQFK0.js → index-BG5J_ybN.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CbMuGGl3.cjs → useNestedProp-BFNnjpX-.cjs} +1 -1
- package/dist/{useNestedProp-C9rlBRTT.js → useNestedProp-BN1ZmAKT.js} +1 -1
- package/dist/{usePrinter-CQMn1b4E.js → usePrinter-CWeJt84b.js} +1 -1
- package/dist/{usePrinter-CXXfgFFN.cjs → usePrinter-i-j4CdEi.cjs} +1 -1
- package/dist/{vue-data-ui-Bu_VIHgr.cjs → vue-data-ui-549nX1yu.cjs} +1 -1
- package/dist/{vue-data-ui-BnsKGbqb.js → vue-data-ui-B5u9V9lC.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-V5FBS9MA.js → vue-ui-3d-bar-DBtozgXL.js} +38 -38
- package/dist/{vue-ui-3d-bar-D39F2dKF.cjs → vue-ui-3d-bar-J7LkJgTZ.cjs} +11 -11
- package/dist/{vue-ui-accordion-CGlnNTr8.cjs → vue-ui-accordion-Cd6GaDwU.cjs} +1 -1
- package/dist/{vue-ui-accordion-B8ptB5BQ.js → vue-ui-accordion-JBOceVq2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bjp1R8Ku.js → vue-ui-age-pyramid-BIkYjL8e.js} +29 -29
- package/dist/vue-ui-age-pyramid-DeryBRqg.cjs +1 -0
- package/dist/{vue-ui-annotator-V9m5fTGG.js → vue-ui-annotator-Bt90Iec6.js} +1 -1
- package/dist/{vue-ui-annotator-BoWZZRPg.cjs → vue-ui-annotator-Dw8cVACs.cjs} +1 -1
- package/dist/{vue-ui-bullet-DLIxlhFF.cjs → vue-ui-bullet-BMAYQESQ.cjs} +1 -1
- package/dist/{vue-ui-bullet-Bqvb5PV-.js → vue-ui-bullet-DzosZUYl.js} +8 -8
- package/dist/{vue-ui-candlestick-D4BD8LyJ.cjs → vue-ui-candlestick-BaLnAKB9.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DHCtmsh3.js → vue-ui-candlestick-dTATEFOU.js} +48 -48
- package/dist/{vue-ui-carousel-table-VIuoh2QI.cjs → vue-ui-carousel-table-CWNI7Ri5.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cn2RJkSb.js → vue-ui-carousel-table-rMcj65Bo.js} +4 -4
- package/dist/{vue-ui-chestnut-C5qUO1uK.js → vue-ui-chestnut-B_NLFSaY.js} +29 -29
- package/dist/{vue-ui-chestnut-ClG9HZoC.cjs → vue-ui-chestnut-DjOEVM3w.cjs} +2 -2
- package/dist/{vue-ui-cursor-Bo8et-dD.cjs → vue-ui-cursor-CBUwAZd1.cjs} +1 -1
- package/dist/{vue-ui-cursor-eJau3iyr.js → vue-ui-cursor-CTvVj3YO.js} +2 -2
- package/dist/{vue-ui-dashboard-DnaH9bCw.js → vue-ui-dashboard-CG9J3DLT.js} +2 -2
- package/dist/{vue-ui-dashboard-WJqGQ8iR.cjs → vue-ui-dashboard-DcfhPFVi.cjs} +1 -1
- package/dist/{vue-ui-digits-qIckO4-r.cjs → vue-ui-digits-B8lUQcKK.cjs} +1 -1
- package/dist/{vue-ui-digits-Cqjts2eq.js → vue-ui-digits-CF6qbsmO.js} +2 -2
- package/dist/{vue-ui-donut-pprcnbIw.js → vue-ui-donut-Bbkz0M-R.js} +76 -76
- package/dist/vue-ui-donut-CzmOCuxn.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-EzYvP11F.js → vue-ui-donut-evolution-BkE-sAyn.js} +66 -66
- package/dist/vue-ui-donut-evolution-CjFUAKXU.cjs +1 -0
- package/dist/vue-ui-dumbbell-BiHzKPGP.cjs +9 -0
- package/dist/{vue-ui-dumbbell-DaxcxmnU.js → vue-ui-dumbbell-D8JuHhzi.js} +28 -28
- package/dist/vue-ui-flow-CR1Qo5Rt.cjs +1 -0
- package/dist/{vue-ui-flow-DbRgaKBu.js → vue-ui-flow-Cie8iHDK.js} +31 -31
- package/dist/vue-ui-funnel-B8uRuzDx.cjs +1 -0
- package/dist/{vue-ui-funnel-B2del8KB.js → vue-ui-funnel-tW6PGqcE.js} +32 -32
- package/dist/vue-ui-galaxy-BfbYEvnO.cjs +1 -0
- package/dist/{vue-ui-galaxy-pUYeASJf.js → vue-ui-galaxy-p4j0h3ZX.js} +81 -81
- package/dist/{vue-ui-gauge-DpsXpEaW.js → vue-ui-gauge-CtVmazzP.js} +7 -7
- package/dist/{vue-ui-gauge-BOXoAgWk.cjs → vue-ui-gauge-DnTOvr4T.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Bq9uAmqd.cjs → vue-ui-gizmo-BdlVxVqD.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BpYrhkon.js → vue-ui-gizmo-wjZJgWPe.js} +3 -3
- package/dist/{vue-ui-heatmap-Cz6_9Veh.js → vue-ui-heatmap-DJXLmzGL.js} +63 -63
- package/dist/vue-ui-heatmap-Gd3nkwzC.cjs +1 -0
- package/dist/vue-ui-history-plot-CevSrT7E.cjs +1 -0
- package/dist/{vue-ui-history-plot-DAotUjSF.js → vue-ui-history-plot-DJQck-9N.js} +69 -69
- package/dist/{vue-ui-kpi-D6mp6EQ2.cjs → vue-ui-kpi-D8NVXEfO.cjs} +1 -1
- package/dist/{vue-ui-kpi-Ch2p7m-i.js → vue-ui-kpi-MK6JH8yi.js} +3 -3
- package/dist/{vue-ui-mini-loader-E13lmwfO.js → vue-ui-mini-loader-UiC0NYsO.js} +2 -2
- package/dist/{vue-ui-mini-loader-CO-KGVlC.cjs → vue-ui-mini-loader-a8JZaxIy.cjs} +1 -1
- package/dist/vue-ui-molecule-CXgKUNCL.cjs +1 -0
- package/dist/{vue-ui-molecule-C69K6EPO.js → vue-ui-molecule-Cz9zZQ95.js} +155 -155
- package/dist/vue-ui-mood-radar-B-PSds5c.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DDtky572.js → vue-ui-mood-radar-BMMCFkEk.js} +33 -33
- package/dist/{vue-ui-nested-donuts-DMCd6DqT.cjs → vue-ui-nested-donuts-Cdx6UQwF.cjs} +5 -5
- package/dist/{vue-ui-nested-donuts-AYPYIRrE.js → vue-ui-nested-donuts-Da9c-H0Y.js} +147 -147
- package/dist/{vue-ui-onion-Bsa88sKK.js → vue-ui-onion-D1wExDGP.js} +44 -44
- package/dist/{vue-ui-onion-BedLvfFe.cjs → vue-ui-onion-HAS4P8nS.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-KCEb4iRs.js → vue-ui-parallel-coordinate-plot-BH0xKZAE.js} +79 -79
- package/dist/{vue-ui-parallel-coordinate-plot-CSOMIABF.cjs → vue-ui-parallel-coordinate-plot-BYeyzJnE.cjs} +3 -3
- package/dist/{vue-ui-quadrant-Bd_88Eht.js → vue-ui-quadrant-BDkbMaNf.js} +108 -108
- package/dist/vue-ui-quadrant-DbWSZWfP.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CXAYKYHa.js → vue-ui-quick-chart-D3b2YwMY.js} +212 -212
- package/dist/vue-ui-quick-chart-qnbmA75J.cjs +15 -0
- package/dist/{vue-ui-radar-De397oTB.js → vue-ui-radar--Bt67L0i.js} +107 -107
- package/dist/vue-ui-radar-DSZpmaIZ.cjs +1 -0
- package/dist/{vue-ui-rating-wK3_ZWE5.js → vue-ui-rating-Bgr7tvIq.js} +2 -2
- package/dist/{vue-ui-rating-BjiMVoyX.cjs → vue-ui-rating-Z_ANkBeZ.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BEGyr1h-.cjs → vue-ui-relation-circle-3cgv8yC-.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BxlK8MVs.js → vue-ui-relation-circle-B22VP_p1.js} +7 -7
- package/dist/{vue-ui-rings-BcNMBXxq.cjs → vue-ui-rings-DZEwaUv5.cjs} +2 -2
- package/dist/{vue-ui-rings-BXrtMSML.js → vue-ui-rings-DgzfAEvJ.js} +66 -66
- package/dist/{vue-ui-scatter-BWZfLJ9P.js → vue-ui-scatter-BwlbShJE.js} +85 -85
- package/dist/vue-ui-scatter-CSI15Dgp.cjs +1 -0
- package/dist/{vue-ui-screenshot-BJgOwFMW.cjs → vue-ui-screenshot-DK2xyINC.cjs} +1 -1
- package/dist/{vue-ui-screenshot-hw4PC9Uu.js → vue-ui-screenshot-Dk0TqQpi.js} +1 -1
- package/dist/{vue-ui-skeleton-BIqMxXV7.cjs → vue-ui-skeleton-CLiDRcQX.cjs} +1 -1
- package/dist/{vue-ui-skeleton-D66ZIUln.js → vue-ui-skeleton-c211TxZ8.js} +3 -3
- package/dist/{vue-ui-smiley-Duy5Xo-j.cjs → vue-ui-smiley-Kr6bQ-7L.cjs} +1 -1
- package/dist/{vue-ui-smiley-DWPYdcDB.js → vue-ui-smiley-hIooew3m.js} +2 -2
- package/dist/{vue-ui-spark-trend-Ce4IaqPz.js → vue-ui-spark-trend-CgpDYM8f.js} +5 -5
- package/dist/{vue-ui-spark-trend-DP5foaNi.cjs → vue-ui-spark-trend-SVqMwS1X.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bbns4V16.cjs → vue-ui-sparkbar-DY1J0X8K.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Fa-Kc9Fr.js → vue-ui-sparkbar-D_HgtfBM.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BrLrvNLH.cjs → vue-ui-sparkgauge-C4p0nAHp.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DUWcJ7cM.js → vue-ui-sparkgauge-jO5jKAyz.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-PgC-c-5a.js → vue-ui-sparkhistogram-BpQfz14e.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B0rhs_UN.cjs → vue-ui-sparkhistogram-gSNvSVcP.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BqNlrKjb.js → vue-ui-sparkline-BTgaJjMj.js} +4 -4
- package/dist/{vue-ui-sparkline-c5Awoj8J.cjs → vue-ui-sparkline-D53BDGCi.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DyJIUulr.js → vue-ui-sparkstackbar-COm1EqFN.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BmYIcpVZ.cjs → vue-ui-sparkstackbar-DcEhBuvP.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BebRtOYL.js → vue-ui-stackbar-BHyysJyj.js} +51 -51
- package/dist/{vue-ui-stackbar-DJ9NH_l1.cjs → vue-ui-stackbar-D4-vrvMz.cjs} +3 -3
- package/dist/{vue-ui-strip-plot-BGHj1BHd.js → vue-ui-strip-plot-BOLWDlTl.js} +118 -118
- package/dist/vue-ui-strip-plot-iUjpocRA.cjs +1 -0
- package/dist/{vue-ui-table-BFdGppRF.cjs → vue-ui-table-DG3-RAEv.cjs} +1 -1
- package/dist/{vue-ui-table-ClPMKcMn.js → vue-ui-table-XThR7HtD.js} +1 -1
- package/dist/{vue-ui-table-heatmap-B7wTjM-H.cjs → vue-ui-table-heatmap-B82Dmfv2.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DVQtPt-M.js → vue-ui-table-heatmap-DxWQ3cdf.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DjxKXWQm.js → vue-ui-table-sparkline-BIQAc-eX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DaKODjfM.cjs → vue-ui-table-sparkline-C3JrSwmi.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CV_9k37V.js → vue-ui-thermometer-Ci0OBAEN.js} +7 -7
- package/dist/{vue-ui-thermometer-DE9r0emf.cjs → vue-ui-thermometer-t1cul6jD.cjs} +1 -1
- package/dist/{vue-ui-timer-Ct-KYWSX.cjs → vue-ui-timer-BLqulQx5.cjs} +1 -1
- package/dist/{vue-ui-timer-2w5Ayq7G.js → vue-ui-timer-CwJoQApu.js} +5 -5
- package/dist/{vue-ui-tiremarks-BJnh0GBj.js → vue-ui-tiremarks-CFVl_w7d.js} +7 -7
- package/dist/{vue-ui-tiremarks-Cf04zARl.cjs → vue-ui-tiremarks-_d9WOe-N.cjs} +1 -1
- package/dist/vue-ui-treemap-BaQFfbqL.cjs +1 -0
- package/dist/{vue-ui-treemap-BD546LBi.js → vue-ui-treemap-BtjPxOzu.js} +108 -108
- package/dist/{vue-ui-vertical-bar-D3QKHHnS.cjs → vue-ui-vertical-bar-BcjM9qCI.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-E5CTb1Bd.js → vue-ui-vertical-bar-xnQDjCLE.js} +54 -54
- package/dist/{vue-ui-waffle-BAJIMbZK.js → vue-ui-waffle-BMFtG4mh.js} +99 -99
- package/dist/vue-ui-waffle-DGarEDP5.cjs +1 -0
- package/dist/{vue-ui-wheel-CPPLUSFq.js → vue-ui-wheel-DIr8JQt0.js} +7 -7
- package/dist/{vue-ui-wheel-Dy_B7BTG.cjs → vue-ui-wheel-DLFWUmdm.cjs} +1 -1
- package/dist/vue-ui-word-cloud-CDQ4rkP-.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BVZcDY7m.js → vue-ui-word-cloud-CrSkUMkN.js} +81 -81
- package/dist/{vue-ui-xy-tB-6IP2y.js → vue-ui-xy-DPT3SYuU.js} +815 -818
- package/dist/vue-ui-xy-DfnDyl8o.cjs +3 -0
- package/dist/{vue-ui-xy-canvas-DFUfTZwz.js → vue-ui-xy-canvas-C3iMSkvP.js} +35 -35
- package/dist/{vue-ui-xy-canvas-BSZTrqci.cjs → vue-ui-xy-canvas-DEyhDtC-.cjs} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-BdseHKUc.cjs +0 -1
- package/dist/vue-ui-donut-BP7yj2DU.cjs +0 -1
- package/dist/vue-ui-donut-evolution-Cz8uFJp8.cjs +0 -1
- package/dist/vue-ui-dumbbell-CYqHCr2S.cjs +0 -9
- package/dist/vue-ui-flow-HeRCplGL.cjs +0 -1
- package/dist/vue-ui-funnel-DxniWNkD.cjs +0 -1
- package/dist/vue-ui-galaxy-BDA64dud.cjs +0 -1
- package/dist/vue-ui-heatmap-CbKgGLtN.cjs +0 -1
- package/dist/vue-ui-history-plot-BoMdvItE.cjs +0 -1
- package/dist/vue-ui-molecule-CeoDnPXB.cjs +0 -1
- package/dist/vue-ui-mood-radar-BwOqQUuT.cjs +0 -1
- package/dist/vue-ui-quadrant-BXQVOvpY.cjs +0 -1
- package/dist/vue-ui-quick-chart-dLItYwM_.cjs +0 -15
- package/dist/vue-ui-radar-BuNtocmn.cjs +0 -1
- package/dist/vue-ui-scatter-DTy3yPVu.cjs +0 -1
- package/dist/vue-ui-strip-plot-f7vejZht.cjs +0 -1
- package/dist/vue-ui-treemap-D0vi4bv4.cjs +0 -1
- package/dist/vue-ui-waffle-BL0e3Yeq.cjs +0 -1
- package/dist/vue-ui-word-cloud-BPoAoeWZ.cjs +0 -1
- package/dist/vue-ui-xy-D4hRtHAi.cjs +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-COIn1phv.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),H=require("./usePrinter-CXXfgFFN.cjs"),ve=require("./vue-ui-skeleton-BIqMxXV7.cjs"),de=require("./Title-DJUxOiaO.cjs"),Z=require("./useNestedProp-CbMuGGl3.cjs"),he=require("./PackageVersion-BjfedMsH.cjs"),me=require("./PenAndPaper-nqRtAh6J.cjs"),fe=require("./useUserOptionState-BgepsfED.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),pe=["id"],ke={key:0},ge=["xmlns","viewBox"],be=["width","height"],Se=["id"],Be=["stop-color"],_e=["stop-color"],xe=["stop-color"],we=["id"],Ce=["stdDeviation"],Ne={key:1},Fe=["d","fill","stroke"],Ee=["d","fill","stroke"],ze=["id","d"],$e=["fill","font-size","font-weight"],Pe=["href","startOffset"],Oe=["x","y","text-anchor","fill","font-size","font-weight"],Me=["d","filter"],Ve=["stroke","stroke-width"],Xe=["stroke","stroke-width"],Ie=["stroke","stroke-width"],Ye=["stroke","stroke-width"],Ae={key:7},Re=["x","y","text-anchor","font-size","font-weight","fill"],Le=["x","y","font-size","font-weight","fill"],De={key:9},Ge=["x1","y1","x2","y2","stroke","stroke-width"],qe=["x1","y1","x2","y2","stroke","stroke-width"],je=["x1","y1","x2","y2","stroke-width","filter"],Te={key:10},Ue=["d","fill","stroke","stroke-width"],We=["cx","cy","fill","r","stroke-width","stroke"],He=["x","y","font-size","fill"],Ze={key:5,class:"vue-data-ui-watermark"},Je={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C,{expose:J}){const c=C,{vue_ui_gauge:K}=s.useConfig(),_=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),m=e.ref(s.createUid()),Q=e.ref(null),z=e.ref(0),g=e.ref(null),$=e.ref(null),P=e.ref(null),O=e.ref(null),M=e.ref(null),V=e.ref(0),t=e.computed({get:()=>Y(),set:a=>a}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:I}=fe.useUserOptionState({config:t.value});e.watch(()=>c.config,a=>{t.value=Y(),N.value=!t.value.showOnChartHover,q(),V.value+=1},{deep:!0});function Y(){const a=Z.useNestedProp({userConfig:c.config,defaultConfig:K});return a.theme?{...Z.useNestedProp({userConfig:s.themes.vue_ui_gauge[a.theme]||c.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}const{isPrinting:A,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!_.value||s.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const a=[];(c.dataset.series||[]).forEach(o=>{a.push(o.from||1e-7),a.push(o.to||1e-7)});const n=Math.max(...a);return{...c.dataset,series:(c.dataset.series||[]).map((o,r)=>({...o,color:s.convertColorToHex(o.color)||te.value[r]||s.palette[r],value:((o.to||0)-(o.from||0))/n*100}))}}),h=e.ref(512),l=e.ref({height:358.4,width:h.value,top:0,bottom:358.4,centerX:179.2,centerY:h.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),S=e.ref(0),d=e.ref(t.value.style.chart.animation.use?Math.min(...c.dataset.series.map(a=>a.from)):c.dataset.value);e.watch(()=>c.dataset.value,()=>{j(c.dataset.value)});const u=e.computed(()=>{const a=l.value.width/2,n=i.value.base,o=Math.PI*((d.value+0-S.value)/(b.value-S.value))+Math.PI;return{x1:a,y1:n,x2:a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),y2:n+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o)}}),G=e.computed(()=>{const a=l.value.width/2,n=i.value.base,o=Math.PI*((d.value+0-S.value)/(b.value-S.value))+Math.PI,r=a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),f=n+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o),y=l.value.pointerRadius,se=a+y*Math.cos(o+Math.PI/2),ue=n+y*Math.sin(o+Math.PI/2),ie=a+y*Math.cos(o-Math.PI/2),ce=n+y*Math.sin(o-Math.PI/2);return isNaN(r)?null:`M ${r},${f} ${se},${ue} ${ie},${ce} Z`}),F=e.computed(()=>{for(let a=0;a<p.value.series.length;a+=1){const{color:n,from:o,to:r}=p.value.series[a];if(d.value>=o&&d.value<=r)return n}return"#2D353C"}),x=e.ref(null);function q(){if(s.objectIsEmpty(c.dataset)?s.error({componentName:"VueUiGauge",type:"dataset"}):(s.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(a=>{s.error({componentName:"VueUiGauge",type:"datasetAttribute",property:a})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["from","to"]}).forEach(o=>{s.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:o,index:n})})}):s.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),j(c.dataset.value||0),t.value.responsive){const a=W.throttle(()=>{const{width:n,height:o}=W.useResponsive({chart:g.value,title:t.value.style.chart.title.text?$.value:null,legend:P.value,source:O.value,noTitle:M.value});requestAnimationFrame(()=>{l.value.width=n,l.value.height=o,l.value.centerX=n/2,l.value.centerY=h.value/2/358.4*o,l.value.bottom=o,l.value.labelFontSize=18/h.value*Math.min(o,n)<10?10:18/h.value*Math.min(o,n),l.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(o,n)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(o,n),l.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(o,n),l.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(o,n),l.value.pointerStrokeWidth=s.translateSize({relator:Math.min(n,o),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),l.value.markerOffset=s.translateSize({relator:Math.max(n,o),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),l.value.segmentFontSize=s.translateSize({relator:Math.min(n,o),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})})});x.value=new ResizeObserver(a),x.value.observe(g.value.parentNode)}}e.onMounted(()=>{q()}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});function j(a){const n=[];(p.value.series||[]).forEach(y=>{n.push(y.from||0),n.push(y.to||0)}),b.value=Math.max(...n),S.value=Math.min(...n);let o=t.value.style.chart.animation.speed;const r=Math.abs(a-d.value)/(o*60);function f(){d.value<a?d.value=Math.min(d.value+r,a):d.value>a&&(d.value=Math.max(d.value-r,a)),d.value!==a&&requestAnimationFrame(f)}f()}const i=e.computed(()=>{const a=t.value.responsive?Math.min(l.value.width,l.value.height):l.value.width,n=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:a/n,gradients:a/(n*1.1),base:t.value.responsive?l.value.height/2:l.value.height*.7,ratingBase:t.value.responsive?l.value.height/2+l.value.height/4:l.value.height*.9,pointerSize:t.value.responsive?Math.min(l.value.width,l.value.height)/3:l.value.width/3.2}}),v=e.computed(()=>s.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*l.value.trackSize)),ae=e.computed(()=>s.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*l.value.trackSize)),k=e.computed(()=>v.value.map(a=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(a.nameOffsetRatio||1))),T=e.computed(()=>{const{x:a,y:n}=s.offsetFromCenterPoint({initX:v.value[0].firstSeparator.x,initY:v.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:o,y:r}=s.offsetFromCenterPoint({initX:v.value[0].startX,initY:v.value[0].startY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:a,y1:n,x2:o,y2:r}}),U=e.computed(()=>v.value.map(a=>{const{x:n,y:o}=s.offsetFromCenterPoint({initX:a.separator.x,initY:a.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:r,y:f}=s.offsetFromCenterPoint({initX:a.endX,initY:a.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:n,y1:o,x2:r,y2:f}}));function oe(a){if(a.reduce((f,y)=>f+y,0)>100)throw new Error("Total % must not exceed 100");const o=50;let r=0;return a.map(f=>(r+=f,`${r/100*o-f/4}%`))}const le=e.computed(()=>oe(v.value.map(a=>a.proportion*100))),re=e.computed(()=>s.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*l.value.trackSize)),B=e.ref(!1);function ne(a){B.value=a,z.value+=1}const w=e.ref(!1);function E(){w.value=!w.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:E}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${B.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:g,id:`vue-ui-gauge_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[0]||(n[0]=()=>e.unref(X)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(me.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:$,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&C.dataset.base?(e.openBlock(),e.createElementBlock("span",ke,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(C.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value&&(e.unref(I)||e.unref(N))?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:Q,key:`user_options_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(A),uid:m.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:ne,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(I)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width<=0?10:l.value.width,height:l.value.height<=0?10:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,be)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${m.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,Be),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(s.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,xe)],8,Se)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${m.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,Ce)],8,we)]),a.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(a.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:r,patternId:`pattern_${m.value}_${r}`})),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:o.arcSlice,fill:o.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Fe))),128)),a.$slots.pattern?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:o.arcSlice,fill:`url(#pattern_${m.value}_${r})`,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Ee))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${m.value}_${r}`,d:`M ${u.value.x1},${u.value.y1} m -${k.value[r]},0 a ${k.value[r]},${k.value[r]} 0 1,1 ${2*k.value[r]},0 a ${k.value[r]},${k.value[r]} 0 1,1 -${2*k.value[r]},0`,fill:"transparent"},null,8,ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${m.value}_${r}`,startOffset:le.value[r]},e.toDisplayString(o.name||""),9,Pe)],8,$e))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(ae.value,(o,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.center.endX,y:o.center.endY,"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(o.name||""),9,Oe))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:5},e.renderList(re.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:o.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${m.value})`},null,8,Me))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ve),e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Xe),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ie))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Ye))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).y,"text-anchor":o.center.startX<u.value.x1-5?"end":o.center.startX>u.value.x1+5?"start":"middle","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,o.from,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:o.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Re))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:8,x:e.unref(s.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:v.value.at(-1).endX,initY:v.value.at(-1).endY,offset:l.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:v.value.at(-1).endX,initY:v.value.at(-1).endY,offset:l.value.markerOffset}).y,"text-anchor":"start","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Le)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",De,[isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":l.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Ge)),isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.7},null,8,qe)),!isNaN(u.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.3,filter:`url(#blur_${m.value})`},null,8,je)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Te,[G.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:G.value,fill:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,Ue)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:l.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:l.value.pointerRadius<=0?1e-4:l.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,We),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:11,x:l.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":l.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.legend.formatter,d.value,e.unref(s.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&d.value>0?"+":""),v:d.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,He)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:l.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ze,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:P},[e.renderSlot(a.$slots,"legend",{legend:p.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,pe))}},Ke=ye._export_sfc(Je,[["__scopeId","data-v-09fea607"]]);exports.default=Ke;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-1HOIfTy2.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),H=require("./usePrinter-i-j4CdEi.cjs"),ve=require("./vue-ui-skeleton-CLiDRcQX.cjs"),de=require("./Title-C10173bN.cjs"),Z=require("./useNestedProp-BFNnjpX-.cjs"),he=require("./PackageVersion-DvDNPRrJ.cjs"),me=require("./PenAndPaper--xHLJRME.cjs"),fe=require("./useUserOptionState-BgepsfED.cjs"),ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),pe=["id"],ke={key:0},ge=["xmlns","viewBox"],be=["width","height"],Se=["id"],Be=["stop-color"],_e=["stop-color"],xe=["stop-color"],we=["id"],Ce=["stdDeviation"],Ne={key:1},Fe=["d","fill","stroke"],Ee=["d","fill","stroke"],ze=["id","d"],$e=["fill","font-size","font-weight"],Pe=["href","startOffset"],Oe=["x","y","text-anchor","fill","font-size","font-weight"],Me=["d","filter"],Ve=["stroke","stroke-width"],Xe=["stroke","stroke-width"],Ie=["stroke","stroke-width"],Ye=["stroke","stroke-width"],Ae={key:7},Re=["x","y","text-anchor","font-size","font-weight","fill"],Le=["x","y","font-size","font-weight","fill"],De={key:9},Ge=["x1","y1","x2","y2","stroke","stroke-width"],qe=["x1","y1","x2","y2","stroke","stroke-width"],je=["x1","y1","x2","y2","stroke-width","filter"],Te={key:10},Ue=["d","fill","stroke","stroke-width"],We=["cx","cy","fill","r","stroke-width","stroke"],He=["x","y","font-size","fill"],Ze={key:5,class:"vue-data-ui-watermark"},Je={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(C,{expose:J}){const c=C,{vue_ui_gauge:K}=s.useConfig(),_=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length>0&&c.dataset.series&&c.dataset.series.length),m=e.ref(s.createUid()),Q=e.ref(null),z=e.ref(0),g=e.ref(null),$=e.ref(null),P=e.ref(null),O=e.ref(null),M=e.ref(null),V=e.ref(0),t=e.computed({get:()=>Y(),set:a=>a}),{userOptionsVisible:N,setUserOptionsVisibility:X,keepUserOptionState:I}=fe.useUserOptionState({config:t.value});e.watch(()=>c.config,a=>{t.value=Y(),N.value=!t.value.showOnChartHover,q(),V.value+=1},{deep:!0});function Y(){const a=Z.useNestedProp({userConfig:c.config,defaultConfig:K});return a.theme?{...Z.useNestedProp({userConfig:s.themes.vue_ui_gauge[a.theme]||c.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}const{isPrinting:A,isImaging:R,generatePdf:L,generateImage:D}=H.usePrinter({elementId:`vue-ui-gauge_${m.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),te=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!_.value||s.objectIsEmpty(c.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const a=[];(c.dataset.series||[]).forEach(o=>{a.push(o.from||1e-7),a.push(o.to||1e-7)});const n=Math.max(...a);return{...c.dataset,series:(c.dataset.series||[]).map((o,r)=>({...o,color:s.convertColorToHex(o.color)||te.value[r]||s.palette[r],value:((o.to||0)-(o.from||0))/n*100}))}}),h=e.ref(512),l=e.ref({height:358.4,width:h.value,top:0,bottom:358.4,centerX:179.2,centerY:h.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),S=e.ref(0),d=e.ref(t.value.style.chart.animation.use?Math.min(...c.dataset.series.map(a=>a.from)):c.dataset.value);e.watch(()=>c.dataset.value,()=>{j(c.dataset.value)});const u=e.computed(()=>{const a=l.value.width/2,n=i.value.base,o=Math.PI*((d.value+0-S.value)/(b.value-S.value))+Math.PI;return{x1:a,y1:n,x2:a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),y2:n+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o)}}),G=e.computed(()=>{const a=l.value.width/2,n=i.value.base,o=Math.PI*((d.value+0-S.value)/(b.value-S.value))+Math.PI,r=a+i.value.pointerSize*l.value.pointerSize*.9*Math.cos(o),f=n+i.value.pointerSize*l.value.pointerSize*.9*Math.sin(o),y=l.value.pointerRadius,se=a+y*Math.cos(o+Math.PI/2),ue=n+y*Math.sin(o+Math.PI/2),ie=a+y*Math.cos(o-Math.PI/2),ce=n+y*Math.sin(o-Math.PI/2);return isNaN(r)?null:`M ${r},${f} ${se},${ue} ${ie},${ce} Z`}),F=e.computed(()=>{for(let a=0;a<p.value.series.length;a+=1){const{color:n,from:o,to:r}=p.value.series[a];if(d.value>=o&&d.value<=r)return n}return"#2D353C"}),x=e.ref(null);function q(){if(s.objectIsEmpty(c.dataset)?s.error({componentName:"VueUiGauge",type:"dataset"}):(s.getMissingDatasetAttributes({datasetObject:c.dataset,requiredAttributes:["value","series"]}).forEach(a=>{s.error({componentName:"VueUiGauge",type:"datasetAttribute",property:a})}),Object.hasOwn(c.dataset,"series")&&(c.dataset.series.length?c.dataset.series.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["from","to"]}).forEach(o=>{s.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:o,index:n})})}):s.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),j(c.dataset.value||0),t.value.responsive){const a=W.throttle(()=>{const{width:n,height:o}=W.useResponsive({chart:g.value,title:t.value.style.chart.title.text?$.value:null,legend:P.value,source:O.value,noTitle:M.value});requestAnimationFrame(()=>{l.value.width=n,l.value.height=o,l.value.centerX=n/2,l.value.centerY=h.value/2/358.4*o,l.value.bottom=o,l.value.labelFontSize=18/h.value*Math.min(o,n)<10?10:18/h.value*Math.min(o,n),l.value.legendFontSize=t.value.style.chart.legend.fontSize/h.value*Math.min(o,n)<14?14:t.value.style.chart.legend.fontSize/h.value*Math.min(o,n),l.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/h.value*Math.min(o,n),l.value.trackSize=t.value.style.chart.layout.track.size/h.value*Math.min(o,n),l.value.pointerStrokeWidth=s.translateSize({relator:Math.min(n,o),adjuster:h.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),l.value.markerOffset=s.translateSize({relator:Math.max(n,o),adjuster:h.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),l.value.segmentFontSize=s.translateSize({relator:Math.min(n,o),adjuster:h.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})})});x.value=new ResizeObserver(a),x.value.observe(g.value.parentNode)}}e.onMounted(()=>{q()}),e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});function j(a){const n=[];(p.value.series||[]).forEach(y=>{n.push(y.from||0),n.push(y.to||0)}),b.value=Math.max(...n),S.value=Math.min(...n);let o=t.value.style.chart.animation.speed;const r=Math.abs(a-d.value)/(o*60);function f(){d.value<a?d.value=Math.min(d.value+r,a):d.value>a&&(d.value=Math.max(d.value-r,a)),d.value!==a&&requestAnimationFrame(f)}f()}const i=e.computed(()=>{const a=t.value.responsive?Math.min(l.value.width,l.value.height):l.value.width,n=2.5/t.value.style.chart.layout.radiusRatio;return{arcs:a/n,gradients:a/(n*1.1),base:t.value.responsive?l.value.height/2:l.value.height*.7,ratingBase:t.value.responsive?l.value.height/2+l.value.height/4:l.value.height*.9,pointerSize:t.value.responsive?Math.min(l.value.width,l.value.height)/3:l.value.width/3.2}}),v=e.computed(()=>s.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs,i.value.arcs,1,1,1,180,109.9495,40*l.value.trackSize)),ae=e.computed(()=>s.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*l.value.trackSize)),k=e.computed(()=>v.value.map(a=>i.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio*(a.nameOffsetRatio||1))),T=e.computed(()=>{const{x:a,y:n}=s.offsetFromCenterPoint({initX:v.value[0].firstSeparator.x,initY:v.value[0].firstSeparator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:o,y:r}=s.offsetFromCenterPoint({initX:v.value[0].startX,initY:v.value[0].startY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:a,y1:n,x2:o,y2:r}}),U=e.computed(()=>v.value.map(a=>{const{x:n,y:o}=s.offsetFromCenterPoint({initX:a.separator.x,initY:a.separator.y,centerX:u.value.x1,centerY:u.value.y1,offset:-t.value.style.chart.layout.segmentSeparators.offsetIn}),{x:r,y:f}=s.offsetFromCenterPoint({initX:a.endX,initY:a.endY,centerX:u.value.x1,centerY:u.value.y1,offset:t.value.style.chart.layout.segmentSeparators.offsetOut});return{x1:n,y1:o,x2:r,y2:f}}));function oe(a){if(a.reduce((f,y)=>f+y,0)>100)throw new Error("Total % must not exceed 100");const o=50;let r=0;return a.map(f=>(r+=f,`${r/100*o-f/4}%`))}const le=e.computed(()=>oe(v.value.map(a=>a.proportion*100))),re=e.computed(()=>s.makeDonut({series:p.value.series},l.value.width/2,i.value.base,i.value.gradients,i.value.gradients,.95,1,1,180,110.02,2*l.value.trackSize)),B=e.ref(!1);function ne(a){B.value=a,z.value+=1}const w=e.ref(!1);function E(){w.value=!w.value}return J({generatePdf:L,generateImage:D,toggleAnnotator:E}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${B.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:g,id:`vue-ui-gauge_${m.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[0]||(n[0]=()=>e.unref(X)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(X)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(me.PenAndPaper,{key:0,parent:g.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:E},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:$,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${V.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&C.dataset.base?(e.openBlock(),e.createElementBlock("span",ke,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(C.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&_.value&&(e.unref(I)||e.unref(N))?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:Q,key:`user_options_${z.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(R),isPrinting:e.unref(A),uid:m.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,titles:{...t.value.userOptions.buttonTitles},chartElement:g.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:ne,onGeneratePdf:e.unref(L),onGenerateImage:e.unref(D),onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(I)?e.unref(N)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:r})),void 0,!0)]),key:"2"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:r})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:r})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":B.value,"vue-data-ui-fulscreen--off":!B.value}),viewBox:`0 0 ${l.value.width<=0?10:l.value.width} ${l.value.height<=0?10:l.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(he._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width<=0?10:l.value.width,height:l.value.height<=0?10:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,be)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${m.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,Be),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(s.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,_e),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(s.setOpacity)("#FFFFFF",1)},null,8,xe)],8,Se)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${m.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,Ce)],8,we)]),a.$slots.pattern?(e.openBlock(),e.createElementBlock("g",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("defs",null,[e.renderSlot(a.$slots,"pattern",e.normalizeProps(e.guardReactiveProps({seriesIndex:r,patternId:`pattern_${m.value}_${r}`})),void 0,!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:o.arcSlice,fill:o.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Fe))),128)),a.$slots.pattern?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:o.arcSlice,fill:`url(#pattern_${m.value}_${r})`,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,Ee))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{id:`curve_${m.value}_${r}`,d:`M ${u.value.x1},${u.value.y1} m -${k.value[r]},0 a ${k.value[r]},${k.value[r]} 0 1,1 ${2*k.value[r]},0 a ${k.value[r]},${k.value[r]} 0 1,1 -${2*k.value[r]},0`,fill:"transparent"},null,8,ze))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${m.value}_${r}`,startOffset:le.value[r]},e.toDisplayString(o.name||""),9,Pe)],8,$e))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:4},e.renderList(ae.value,(o,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.center.endX,y:o.center.endY,"text-anchor":e.unref(s.calcMarkerOffsetX)(o,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?o.color:t.value.style.chart.layout.segmentNames.color,"font-size":l.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(o.name||""),9,Oe))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:5},e.renderList(re.value,(o,r)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${r}`,d:o.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${m.value})`},null,8,Me))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentSeparators.show?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ve),e.createElementVNode("line",e.mergeProps(T.value,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Xe),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth+2,"stroke-linecap":"round"}),null,16,Ie))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,o=>(e.openBlock(),e.createElementBlock("line",e.mergeProps(o,{stroke:t.value.style.chart.layout.segmentSeparators.stroke,"stroke-width":t.value.style.chart.layout.segmentSeparators.strokeWidth,"stroke-linecap":"round"}),null,16,Ye))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(o,r)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:u.value.x1,centerY:i.value.base,initX:o.center.startX,initY:o.center.startY,offset:l.value.markerOffset}).y,"text-anchor":o.center.startX<u.value.x1-5?"end":o.center.startX>u.value.x1+5?"start":"middle","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,o.from,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:o.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Re))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:8,x:e.unref(s.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:v.value.at(-1).endX,initY:v.value.at(-1).endY,offset:l.value.markerOffset}).x,y:e.unref(s.offsetFromCenterPoint)({centerX:l.value.width/2,centerY:i.value.base,initX:v.value.at(-1).endX,initY:v.value.at(-1).endY,offset:l.value.markerOffset}).y,"text-anchor":"start","font-size":l.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(s.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Le)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",De,[isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":l.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Ge)),isNaN(u.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.7},null,8,qe)),!isNaN(u.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:u.value.x1,y1:u.value.y1,x2:u.value.x2,y2:u.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":l.value.pointerStrokeWidth*.3,filter:`url(#blur_${m.value})`},null,8,je)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Te,[G.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:G.value,fill:t.value.style.chart.layout.pointer.useRatingColor?F.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,Ue)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:l.value.width/2,cy:i.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:l.value.pointerRadius<=0?1e-4:l.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,We),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:11,x:l.value.width/2,y:i.value.ratingBase,"text-anchor":"middle","font-size":l.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?F.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.legend.formatter,d.value,e.unref(s.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&d.value>0?"+":""),v:d.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,He)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:l.value},void 0,!0)],14,ge)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ze,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(A)||e.unref(R)})),void 0,!0)])):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:P},[e.renderSlot(a.$slots,"legend",{legend:p.value},void 0,!0)],512),a.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:O,dir:"auto"},[e.renderSlot(a.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],46,pe))}},Ke=ye._export_sfc(Je,[["__scopeId","data-v-09fea607"]]);exports.default=Ke;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-1HOIfTy2.cjs"),k=require("./useNestedProp-BFNnjpX-.cjs"),_=require("./PackageVersion-DvDNPRrJ.cjs"),p=["viewBox","width"],g={key:0},v=["id"],y=["stop-color"],N=["stop-color"],C=["stroke"],V=["stroke"],w=["width","fill"],x=["fill"],B={key:0},E=["id"],b=e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:1},null,-1),L=[b],z=["stroke"],G=["stroke","stroke-dasharray","stroke-dashoffset"],F=["filter"],P=["stroke","stroke-dasharray","stroke-dashoffset"],$=["fill"],S={__name:"vue-ui-gizmo",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(c){const o=c,{vue_ui_gizmo:f}=r.useConfig(),n=e.ref(r.createUid()),h=e.useSlots();e.onMounted(()=>{i()}),e.onMounted(()=>{h["chart-background"]&&console.warn("VueUiGizmo does not support the #chart-background slot.")});function i(){!o.dataset&&o.dataset!==0&&r.error({componentName:"VueUiGizmo",type:"dataset"}),o.dataset<0&&console.warn("VueUiGizmo: dataset cannot be negative.")}const t=e.computed({get:()=>d(),set:a=>a});function d(){return k.useNestedProp({userConfig:o.config,defaultConfig:f})}e.watch(()=>o.config,a=>{t.value=d(),i()},{deep:!0});const u=e.computed(()=>({battery:{width:t.value.showPercentage?140:80,height:50},gauge:{width:80,height:80}})[t.value.type]),l=e.computed(()=>{const s=2*Math.PI*35,m=s-o.dataset/100*s;return{dasharray:`${s} ${s}`,dashoffset:m}});return(a,s)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-gizmo",viewBox:`0 0 ${u.value.width} ${u.value.height}`,width:t.value.size,style:e.normalizeStyle({background:"transparent",fontFamily:t.value.fontFamily})},[e.createVNode(_._sfc_main),t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",g,[e.createElementVNode("linearGradient",{id:`gizmo_gradient_${n.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.gradientColor},null,8,y),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.color},null,8,N)],8,v)])):e.createCommentVNode("",!0),t.value.type==="battery"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("path",{d:"M 5 10 L 5 40 C 5 43 7 45 9 45 L 65 45 C 68 45 70 43 70 40 L 70 38 C 73 38 75 38 75 33 L 75 17 C 75 12 73 12 70 12 L 70 10 C 70 7 68 5 65 5 L 10 5 C 7 5 5 7 5 10",stroke:t.value.stroke,"stroke-width":2,fill:"none"},null,8,C),e.createElementVNode("path",{d:"M 70 16 L 70 34",stroke:t.value.stroke,"stroke-width":2,fill:"none",style:{opacity:"0.5"}},null,8,V),e.createElementVNode("rect",{x:10,y:10,height:30,width:55*(c.dataset/100),fill:t.value.useGradient?`url(#gizmo_gradient_${n.value})`:t.value.color,rx:2},null,8,w),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:0,x:85,y:32,"text-anchor":"start","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.formatter,o.dataset,e.unref(r.dataLabel)({v:o.dataset,s:"%"}))),9,x)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.type==="gauge"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[t.value.useGradient?(e.openBlock(),e.createElementBlock("defs",B,[e.createElementVNode("filter",{id:`blur_${n.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},L,8,E)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.stroke,"stroke-width":2*4,fill:"none"},null,8,z),e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.color,"stroke-width":2*4,"stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,"stroke-linecap":"round",fill:"none",style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,G),t.value.useGradient?(e.openBlock(),e.createElementBlock("g",{key:1,filter:`url(#blur_${n.value})`},[e.createElementVNode("circle",{cx:40,cy:40,r:35,stroke:t.value.gradientColor,"stroke-width":1,fill:"none","stroke-dasharray":l.value.dasharray,"stroke-dashoffset":l.value.dashoffset,style:{transform:"rotate(-90deg)","transform-origin":"50% 50%"}},null,8,P)],8,F)):e.createCommentVNode("",!0),t.value.showPercentage?(e.openBlock(),e.createElementBlock("text",{key:2,x:40,y:47,"text-anchor":"middle","font-size":"20",fill:t.value.textColor},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.formatter,o.dataset,e.unref(r.dataLabel)({v:o.dataset,s:"%"}))),9,$)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],12,p))}};exports.default=S;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as b, useSlots as z, onMounted as g, computed as c, watch as G, openBlock as s, createElementBlock as a, normalizeStyle as L, createVNode as N, createElementVNode as t, createCommentVNode as r, Fragment as p, toDisplayString as y, unref as d } from "vue";
|
|
2
|
-
import { u as $, c as F, e as B, i as k, f as m } from "./index-
|
|
3
|
-
import { u as V } from "./useNestedProp-
|
|
4
|
-
import { _ as P } from "./PackageVersion-
|
|
2
|
+
import { u as $, c as F, e as B, i as k, f as m } from "./index-BG5J_ybN.js";
|
|
3
|
+
import { u as V } from "./useNestedProp-BN1ZmAKT.js";
|
|
4
|
+
import { _ as P } from "./PackageVersion-Rh3rgo6A.js";
|
|
5
5
|
const U = ["viewBox", "width"], D = { key: 0 }, I = ["id"], M = ["stop-color"], S = ["stop-color"], E = ["stroke"], O = ["stroke"], A = ["width", "fill"], j = ["fill"], T = { key: 0 }, q = ["id"], H = /* @__PURE__ */ t("feGaussianBlur", {
|
|
6
6
|
in: "SourceGraphic",
|
|
7
7
|
stdDeviation: 1
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useCssVars as Ie, computed as h, ref as p, watch as $e, onMounted as Be, openBlock as o, createElementBlock as n, normalizeClass as K, normalizeStyle as
|
|
2
|
-
import { u as He, o as Xe, e as Ce, c as ue, t as De, C as je, g as We, N as ne, X as Ye, G as ie, i as V, f as S, v as T, x as qe, y as Ke, q as Je, r as Qe } from "./index-
|
|
3
|
-
import { _ as Ze } from "./Title-
|
|
4
|
-
import { u as et, U as tt } from "./usePrinter-
|
|
5
|
-
import { _ as lt } from "./Tooltip-
|
|
6
|
-
import at from "./vue-ui-skeleton-
|
|
7
|
-
import ot from "./BaseIcon-
|
|
8
|
-
import st from "./vue-ui-accordion-
|
|
9
|
-
import { u as Le } from "./useNestedProp-
|
|
10
|
-
import { _ as ut } from "./PackageVersion-
|
|
11
|
-
import { P as nt } from "./PenAndPaper-
|
|
1
|
+
import { useCssVars as Ie, computed as h, ref as p, watch as $e, onMounted as Be, openBlock as o, createElementBlock as n, normalizeClass as K, normalizeStyle as k, unref as u, createBlock as G, createCommentVNode as c, createSlots as Re, withCtx as _, renderSlot as f, normalizeProps as U, guardReactiveProps as H, createVNode as se, Fragment as A, renderList as O, createElementVNode as i, toDisplayString as b, withKeys as Ee, createTextVNode as Ge, nextTick as Ue } from "vue";
|
|
2
|
+
import { u as He, o as Xe, e as Ce, c as ue, t as De, C as je, g as We, N as ne, X as Ye, G as ie, i as V, f as S, v as T, x as qe, y as Ke, q as Je, r as Qe } from "./index-BG5J_ybN.js";
|
|
3
|
+
import { _ as Ze } from "./Title-BU5Aq1_x.js";
|
|
4
|
+
import { u as et, U as tt } from "./usePrinter-CWeJt84b.js";
|
|
5
|
+
import { _ as lt } from "./Tooltip-Dm-obTbx.js";
|
|
6
|
+
import at from "./vue-ui-skeleton-c211TxZ8.js";
|
|
7
|
+
import ot from "./BaseIcon-plElWres.js";
|
|
8
|
+
import st from "./vue-ui-accordion-JBOceVq2.js";
|
|
9
|
+
import { u as Le } from "./useNestedProp-BN1ZmAKT.js";
|
|
10
|
+
import { _ as ut } from "./PackageVersion-Rh3rgo6A.js";
|
|
11
|
+
import { P as nt } from "./PenAndPaper-DqVsdeLc.js";
|
|
12
12
|
import { u as it } from "./useUserOptionState-BIvW1Kz7.js";
|
|
13
13
|
import { _ as rt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const vt = ["id"], dt = {
|
|
@@ -46,7 +46,7 @@ const vt = ["id"], dt = {
|
|
|
46
46
|
setup(X, { expose: Ae }) {
|
|
47
47
|
const r = X;
|
|
48
48
|
Ie((t) => ({
|
|
49
|
-
"
|
|
49
|
+
"2479ec5e": t.tdo
|
|
50
50
|
}));
|
|
51
51
|
const { vue_ui_heatmap: Te } = He(), D = h(() => !!r.dataset && r.dataset.length);
|
|
52
52
|
Xe(r.dataset) && Ce({
|
|
@@ -71,14 +71,14 @@ const vt = ["id"], dt = {
|
|
|
71
71
|
} : l = t, r.config && je(r.config, "style.layout.dataLabels.xAxis.showOnlyAtModulo") ? l.style.layout.dataLabels.xAxis.showOnlyAtModulo = r.config.style.layout.dataLabels.xAxis.showOnlyAtModulo : l.style.layout.dataLabels.xAxis.showOnlyAtModulo = null, l;
|
|
72
72
|
}
|
|
73
73
|
$e(() => r.config, (t) => {
|
|
74
|
-
e.value = ge(), Z.value = !e.value.showOnChartHover, ee(), ce.value += 1;
|
|
74
|
+
e.value = ge(), Z.value = !e.value.showOnChartHover, ee(), ce.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.tooltip.show;
|
|
75
75
|
}, { deep: !0 }), $e(() => r.dataset, () => {
|
|
76
76
|
ee();
|
|
77
77
|
}, { deep: !0 });
|
|
78
78
|
const { isPrinting: fe, isImaging: be, generatePdf: me, generateImage: xe } = et({
|
|
79
79
|
elementId: `heatmap__${P.value}`,
|
|
80
80
|
fileName: e.value.style.title.text || "vue-ui-heatmap"
|
|
81
|
-
}), Oe = h(() => e.value.userOptions.show && !e.value.style.title.text),
|
|
81
|
+
}), Oe = h(() => e.value.userOptions.show && !e.value.style.title.text), m = p({
|
|
82
82
|
showTable: e.value.table.show,
|
|
83
83
|
showTooltip: e.value.style.tooltip.show
|
|
84
84
|
}), Se = h(() => e.value.table.responsiveBreakpoint);
|
|
@@ -93,7 +93,7 @@ const vt = ["id"], dt = {
|
|
|
93
93
|
function ee() {
|
|
94
94
|
Ne();
|
|
95
95
|
}
|
|
96
|
-
const N = h(() => Math.max(...r.dataset.flatMap((t) => (t.values || []).length))),
|
|
96
|
+
const N = h(() => Math.max(...r.dataset.flatMap((t) => (t.values || []).length))), x = h(() => {
|
|
97
97
|
const t = e.value.style.layout.padding.top + e.value.style.layout.padding.bottom + r.dataset.length * e.value.style.layout.cells.height, l = e.value.style.layout.padding.left + e.value.style.layout.padding.right + (N.value < r.dataset.length ? r.dataset.length : N.value) * e.value.style.layout.cells.height, s = t + (e.value.style.legend.show ? e.value.style.legend.position === "right" ? 0 : e.value.style.layout.cells.height * 2 : 0);
|
|
98
98
|
return {
|
|
99
99
|
height: t,
|
|
@@ -103,11 +103,11 @@ const vt = ["id"], dt = {
|
|
|
103
103
|
}), W = h(() => e.value.style.legend.position), a = h(() => ({
|
|
104
104
|
top: e.value.style.layout.padding.top,
|
|
105
105
|
left: e.value.style.layout.padding.left,
|
|
106
|
-
right:
|
|
107
|
-
bottom:
|
|
108
|
-
height:
|
|
109
|
-
width:
|
|
110
|
-
})), te = h(() => d.value.height * r.dataset.length),
|
|
106
|
+
right: x.value.width - e.value.style.layout.padding.right - (W.value === "right" && e.value.style.legend.show ? 92 : 0),
|
|
107
|
+
bottom: x.value.height - e.value.style.layout.padding.bottom,
|
|
108
|
+
height: x.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
109
|
+
width: x.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left - (W.value === "right" && e.value.style.legend.show ? 92 : 0)
|
|
110
|
+
})), te = h(() => d.value.height * r.dataset.length), w = h(() => Math.max(...r.dataset.flatMap((t) => t.values))), z = h(() => Math.min(...r.dataset.flatMap((t) => t.values))), M = h(() => {
|
|
111
111
|
const t = r.dataset.flatMap((s) => s.values);
|
|
112
112
|
return t.reduce((s, v) => s + v, 0) / t.length;
|
|
113
113
|
}), d = h(() => ({
|
|
@@ -135,8 +135,8 @@ const vt = ["id"], dt = {
|
|
|
135
135
|
...t,
|
|
136
136
|
temperatures: (t.values || []).map((l, s) => l >= M.value ? {
|
|
137
137
|
side: "up",
|
|
138
|
-
color: ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value,
|
|
139
|
-
ratio: Math.abs(Math.abs(l - M.value) / Math.abs(
|
|
138
|
+
color: ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value, w.value, l),
|
|
139
|
+
ratio: Math.abs(Math.abs(l - M.value) / Math.abs(w.value - M.value)) > 1 ? 1 : Math.abs(Math.abs(l - M.value) / Math.abs(w.value - M.value)),
|
|
140
140
|
value: l,
|
|
141
141
|
yAxisName: t.name,
|
|
142
142
|
xAxisName: $.value.xLabels[s],
|
|
@@ -144,7 +144,7 @@ const vt = ["id"], dt = {
|
|
|
144
144
|
} : {
|
|
145
145
|
side: "down",
|
|
146
146
|
ratio: Math.abs(1 - Math.abs(l) / Math.abs(M.value)) > 1 ? 1 : Math.abs(1 - Math.abs(l) / Math.abs(M.value)),
|
|
147
|
-
color: ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value,
|
|
147
|
+
color: ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value, w.value, l),
|
|
148
148
|
value: l,
|
|
149
149
|
yAxisName: t.name,
|
|
150
150
|
xAxisName: $.value.xLabels[s],
|
|
@@ -172,7 +172,7 @@ const vt = ["id"], dt = {
|
|
|
172
172
|
seriesIndex: l,
|
|
173
173
|
series: Y.value,
|
|
174
174
|
config: e.value
|
|
175
|
-
}) : (ae += `<div>${g} ${L ? `${L}` : ""}</div>`, ae += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value,
|
|
175
|
+
}) : (ae += `<div>${g} ${L ? `${L}` : ""}</div>`, ae += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor};font-weight:bold;display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:center"><span style="color:${ne(e.value.style.layout.cells.colors.cold, e.value.style.layout.cells.colors.hot, z.value, w.value, y)}">⬤</span><span>${isNaN(y) ? "-" : V(
|
|
176
176
|
e.value.style.layout.cells.value.formatter,
|
|
177
177
|
y,
|
|
178
178
|
S({
|
|
@@ -184,7 +184,7 @@ const vt = ["id"], dt = {
|
|
|
184
184
|
{ datapoint: t, seriesIndex: l }
|
|
185
185
|
)}</span></div>`, Q.value = `<div style="font-size:${e.value.style.tooltip.fontSize}px">${ae}</div>`);
|
|
186
186
|
}
|
|
187
|
-
const R = h(() => a.value.top + te.value * (1 - C.value /
|
|
187
|
+
const R = h(() => a.value.top + te.value * (1 - C.value / w.value)), E = h(() => a.value.left + (x.value.width - a.value.left - e.value.style.layout.padding.right) * (C.value / w.value));
|
|
188
188
|
h(() => {
|
|
189
189
|
const t = r.dataset.map((s) => ({
|
|
190
190
|
name: s.name
|
|
@@ -209,10 +209,10 @@ const vt = ["id"], dt = {
|
|
|
209
209
|
F.value = t, ve.value += 1;
|
|
210
210
|
}
|
|
211
211
|
function ke() {
|
|
212
|
-
|
|
212
|
+
m.value.showTable = !m.value.showTable;
|
|
213
213
|
}
|
|
214
214
|
function _e() {
|
|
215
|
-
|
|
215
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
216
216
|
}
|
|
217
217
|
const q = p(!1);
|
|
218
218
|
function le() {
|
|
@@ -229,7 +229,7 @@ const vt = ["id"], dt = {
|
|
|
229
229
|
ref_key: "heatmapChart",
|
|
230
230
|
ref: j,
|
|
231
231
|
class: K(`vue-ui-heatmap ${F.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
232
|
-
style:
|
|
232
|
+
style: k(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor}`),
|
|
233
233
|
id: `heatmap__${P.value}`,
|
|
234
234
|
onMouseenter: l[3] || (l[3] = () => u(he)(!0)),
|
|
235
235
|
onMouseleave: l[4] || (l[4] = () => u(he)(!1))
|
|
@@ -280,7 +280,7 @@ const vt = ["id"], dt = {
|
|
|
280
280
|
hasTable: e.value.userOptions.buttons.table,
|
|
281
281
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
282
282
|
isFullscreen: F.value,
|
|
283
|
-
isTooltip:
|
|
283
|
+
isTooltip: m.value.showTooltip,
|
|
284
284
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
285
285
|
chartElement: j.value,
|
|
286
286
|
position: e.value.userOptions.position,
|
|
@@ -293,55 +293,55 @@ const vt = ["id"], dt = {
|
|
|
293
293
|
onToggleTable: ke,
|
|
294
294
|
onToggleTooltip: _e,
|
|
295
295
|
onToggleAnnotator: le,
|
|
296
|
-
style:
|
|
296
|
+
style: k({
|
|
297
297
|
visibility: u(pe) ? u(Z) ? "visible" : "hidden" : "visible"
|
|
298
298
|
})
|
|
299
299
|
}, Re({ _: 2 }, [
|
|
300
300
|
t.$slots.optionTooltip ? {
|
|
301
301
|
name: "optionTooltip",
|
|
302
|
-
fn:
|
|
302
|
+
fn: _(() => [
|
|
303
303
|
f(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
304
304
|
]),
|
|
305
305
|
key: "0"
|
|
306
306
|
} : void 0,
|
|
307
307
|
t.$slots.optionPdf ? {
|
|
308
308
|
name: "optionPdf",
|
|
309
|
-
fn:
|
|
309
|
+
fn: _(() => [
|
|
310
310
|
f(t.$slots, "optionPdf", {}, void 0, !0)
|
|
311
311
|
]),
|
|
312
312
|
key: "1"
|
|
313
313
|
} : void 0,
|
|
314
314
|
t.$slots.optionCsv ? {
|
|
315
315
|
name: "optionCsv",
|
|
316
|
-
fn:
|
|
316
|
+
fn: _(() => [
|
|
317
317
|
f(t.$slots, "optionCsv", {}, void 0, !0)
|
|
318
318
|
]),
|
|
319
319
|
key: "2"
|
|
320
320
|
} : void 0,
|
|
321
321
|
t.$slots.optionImg ? {
|
|
322
322
|
name: "optionImg",
|
|
323
|
-
fn:
|
|
323
|
+
fn: _(() => [
|
|
324
324
|
f(t.$slots, "optionImg", {}, void 0, !0)
|
|
325
325
|
]),
|
|
326
326
|
key: "3"
|
|
327
327
|
} : void 0,
|
|
328
328
|
t.$slots.optionTable ? {
|
|
329
329
|
name: "optionTable",
|
|
330
|
-
fn:
|
|
330
|
+
fn: _(() => [
|
|
331
331
|
f(t.$slots, "optionTable", {}, void 0, !0)
|
|
332
332
|
]),
|
|
333
333
|
key: "4"
|
|
334
334
|
} : void 0,
|
|
335
335
|
t.$slots.optionFullscreen ? {
|
|
336
336
|
name: "optionFullscreen",
|
|
337
|
-
fn:
|
|
337
|
+
fn: _(({ toggleFullscreen: s, isFullscreen: v }) => [
|
|
338
338
|
f(t.$slots, "optionFullscreen", U(H({ toggleFullscreen: s, isFullscreen: v })), void 0, !0)
|
|
339
339
|
]),
|
|
340
340
|
key: "5"
|
|
341
341
|
} : void 0,
|
|
342
342
|
t.$slots.optionAnnotator ? {
|
|
343
343
|
name: "optionAnnotator",
|
|
344
|
-
fn:
|
|
344
|
+
fn: _(({ toggleAnnotator: s, isAnnotator: v }) => [
|
|
345
345
|
f(t.$slots, "optionAnnotator", U(H({ toggleAnnotator: s, isAnnotator: v })), void 0, !0)
|
|
346
346
|
]),
|
|
347
347
|
key: "6"
|
|
@@ -351,16 +351,16 @@ const vt = ["id"], dt = {
|
|
|
351
351
|
key: 4,
|
|
352
352
|
xmlns: u(Ye),
|
|
353
353
|
class: K({ "vue-data-ui-fullscreen--on": F.value, "vue-data-ui-fulscreen--off": !F.value }),
|
|
354
|
-
viewBox: `0 0 ${
|
|
355
|
-
style:
|
|
354
|
+
viewBox: `0 0 ${x.value.width} ${x.value.heightWithLegend}`,
|
|
355
|
+
style: k(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
356
356
|
}, [
|
|
357
357
|
se(ut),
|
|
358
358
|
t.$slots["chart-background"] ? (o(), n("foreignObject", {
|
|
359
359
|
key: 0,
|
|
360
360
|
x: 0,
|
|
361
361
|
y: 0,
|
|
362
|
-
width:
|
|
363
|
-
height:
|
|
362
|
+
width: x.value.width,
|
|
363
|
+
height: x.value.heightWithLegend,
|
|
364
364
|
style: {
|
|
365
365
|
pointerEvents: "none"
|
|
366
366
|
}
|
|
@@ -482,10 +482,10 @@ const vt = ["id"], dt = {
|
|
|
482
482
|
fill: e.value.style.legend.color
|
|
483
483
|
}, b(u(V)(
|
|
484
484
|
e.value.style.layout.cells.value.formatter,
|
|
485
|
-
u(T)(
|
|
485
|
+
u(T)(w.value),
|
|
486
486
|
u(S)({
|
|
487
487
|
p: e.value.style.layout.dataLabels.prefix,
|
|
488
|
-
v: u(T)(
|
|
488
|
+
v: u(T)(w.value),
|
|
489
489
|
s: e.value.style.layout.dataLabels.suffix,
|
|
490
490
|
r: e.value.style.legend.roundingValue
|
|
491
491
|
})
|
|
@@ -546,7 +546,7 @@ const vt = ["id"], dt = {
|
|
|
546
546
|
i("rect", {
|
|
547
547
|
x: a.value.left,
|
|
548
548
|
y: a.value.bottom + e.value.style.layout.cells.height,
|
|
549
|
-
width:
|
|
549
|
+
width: x.value.width - a.value.left - e.value.style.layout.padding.right,
|
|
550
550
|
height: e.value.style.layout.cells.height,
|
|
551
551
|
rx: e.value.style.legend.scaleBorderRadius > e.value.style.layout.cells.height / 2 ? e.value.style.layout.cells.height / 2 : e.value.style.legend.scaleBorderRadius,
|
|
552
552
|
fill: "url(#colorScaleHorizontal)"
|
|
@@ -575,10 +575,10 @@ const vt = ["id"], dt = {
|
|
|
575
575
|
fill: e.value.style.legend.color
|
|
576
576
|
}, b(u(V)(
|
|
577
577
|
e.value.style.layout.cells.value.formatter,
|
|
578
|
-
u(T)(
|
|
578
|
+
u(T)(w.value),
|
|
579
579
|
u(S)({
|
|
580
580
|
p: e.value.style.layout.dataLabels.prefix,
|
|
581
|
-
v: u(T)(
|
|
581
|
+
v: u(T)(w.value),
|
|
582
582
|
s: e.value.style.layout.dataLabels.suffix,
|
|
583
583
|
r: e.value.style.legend.roundingValue
|
|
584
584
|
})
|
|
@@ -599,7 +599,7 @@ const vt = ["id"], dt = {
|
|
|
599
599
|
d: `M ${E.value},${a.value.bottom + e.value.style.layout.cells.height} ${E.value - 12},${a.value.bottom + e.value.style.layout.cells.height - 20} ${E.value + 12},${a.value.bottom + e.value.style.layout.cells.height - 20}z`
|
|
600
600
|
}, null, 8, Gt)) : c("", !0)
|
|
601
601
|
])) : c("", !0),
|
|
602
|
-
f(t.$slots, "svg", { svg:
|
|
602
|
+
f(t.$slots, "svg", { svg: x.value }, void 0, !0)
|
|
603
603
|
], 14, yt)) : c("", !0),
|
|
604
604
|
t.$slots.watermark ? (o(), n("div", Ut, [
|
|
605
605
|
f(t.$slots, "watermark", U(H({ isPrinting: u(fe) || u(be) })), void 0, !0)
|
|
@@ -620,7 +620,7 @@ const vt = ["id"], dt = {
|
|
|
620
620
|
}
|
|
621
621
|
}, null, 8, ["config"])),
|
|
622
622
|
se(lt, {
|
|
623
|
-
show:
|
|
623
|
+
show: m.value.showTooltip && J.value,
|
|
624
624
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
625
625
|
color: e.value.style.tooltip.color,
|
|
626
626
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -635,10 +635,10 @@ const vt = ["id"], dt = {
|
|
|
635
635
|
isFullscreen: F.value,
|
|
636
636
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
637
637
|
}, {
|
|
638
|
-
"tooltip-before":
|
|
638
|
+
"tooltip-before": _(() => [
|
|
639
639
|
f(t.$slots, "tooltip-before", U(H({ ...B.value })), void 0, !0)
|
|
640
640
|
]),
|
|
641
|
-
"tooltip-after":
|
|
641
|
+
"tooltip-after": _(() => [
|
|
642
642
|
f(t.$slots, "tooltip-after", U(H({ ...B.value })), void 0, !0)
|
|
643
643
|
]),
|
|
644
644
|
_: 3
|
|
@@ -647,7 +647,7 @@ const vt = ["id"], dt = {
|
|
|
647
647
|
key: 8,
|
|
648
648
|
hideDetails: "",
|
|
649
649
|
config: {
|
|
650
|
-
open:
|
|
650
|
+
open: m.value.showTable,
|
|
651
651
|
maxHeight: 1e4,
|
|
652
652
|
body: {
|
|
653
653
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -659,7 +659,7 @@ const vt = ["id"], dt = {
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
}, {
|
|
662
|
-
content:
|
|
662
|
+
content: _(() => [
|
|
663
663
|
i("div", {
|
|
664
664
|
ref_key: "tableContainer",
|
|
665
665
|
ref: de,
|
|
@@ -672,9 +672,9 @@ const vt = ["id"], dt = {
|
|
|
672
672
|
i("div", {
|
|
673
673
|
role: "button",
|
|
674
674
|
tabindex: "0",
|
|
675
|
-
style:
|
|
676
|
-
onClick: l[1] || (l[1] = (s) =>
|
|
677
|
-
onKeypress: l[2] || (l[2] = Ee((s) =>
|
|
675
|
+
style: k(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
676
|
+
onClick: l[1] || (l[1] = (s) => m.value.showTable = !1),
|
|
677
|
+
onKeypress: l[2] || (l[2] = Ee((s) => m.value.showTable = !1, ["enter"]))
|
|
678
678
|
}, [
|
|
679
679
|
se(ot, {
|
|
680
680
|
name: "close",
|
|
@@ -684,7 +684,7 @@ const vt = ["id"], dt = {
|
|
|
684
684
|
], 36),
|
|
685
685
|
i("table", Xt, [
|
|
686
686
|
i("caption", {
|
|
687
|
-
style:
|
|
687
|
+
style: k(`backgroundColor:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
688
688
|
}, [
|
|
689
689
|
Ge(b(e.value.style.title.text) + " ", 1),
|
|
690
690
|
e.value.style.title.subtitle.text ? (o(), n("span", Dt, b(e.value.style.title.subtitle.text), 1)) : c("", !0)
|
|
@@ -692,14 +692,14 @@ const vt = ["id"], dt = {
|
|
|
692
692
|
i("thead", null, [
|
|
693
693
|
i("tr", {
|
|
694
694
|
role: "row",
|
|
695
|
-
style:
|
|
695
|
+
style: k(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
696
696
|
}, [
|
|
697
697
|
i("th", {
|
|
698
|
-
style:
|
|
698
|
+
style: k(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
699
699
|
}, null, 4),
|
|
700
700
|
(o(!0), n(A, null, O(X.dataset, (s, v) => (o(), n("th", {
|
|
701
701
|
align: "right",
|
|
702
|
-
style:
|
|
702
|
+
style: k(`outline:${e.value.table.th.outline};padding-right:6px`)
|
|
703
703
|
}, b(s.name), 5))), 256))
|
|
704
704
|
], 4)
|
|
705
705
|
]),
|
|
@@ -707,19 +707,19 @@ const vt = ["id"], dt = {
|
|
|
707
707
|
(o(!0), n(A, null, O($.value.xLabels, (s, v) => (o(), n("tr", {
|
|
708
708
|
role: "row",
|
|
709
709
|
class: K({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": v % 2 === 0, "vue-ui-data-table__tbody__row-odd": v % 2 !== 0 }),
|
|
710
|
-
style:
|
|
710
|
+
style: k(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
711
711
|
}, [
|
|
712
712
|
i("td", {
|
|
713
713
|
"data-cell": e.value.table.colNames.xAxis,
|
|
714
714
|
class: "vue-ui-data-table__tbody__td",
|
|
715
|
-
style:
|
|
715
|
+
style: k(`outline:${e.value.table.td.outline}`)
|
|
716
716
|
}, [
|
|
717
717
|
i("div", Wt, b(s), 1)
|
|
718
718
|
], 12, jt),
|
|
719
719
|
(o(!0), n(A, null, O(X.dataset, (y, g) => (o(), n("td", {
|
|
720
720
|
class: "vue-ui-data-table__tbody__td",
|
|
721
721
|
"data-cell": X.dataset[g].name,
|
|
722
|
-
style:
|
|
722
|
+
style: k(`outline:${e.value.table.td.outline}`)
|
|
723
723
|
}, [
|
|
724
724
|
i("div", qt, b(isNaN(y.values[v]) ? "-" : u(S)({ p: e.value.style.layout.dataLabels.prefix, v: y.values[v], s: e.value.style.layout.dataLabels.suffix, r: e.value.table.td.roundingValue })), 1)
|
|
725
725
|
], 12, Yt))), 256))
|
|
@@ -733,7 +733,7 @@ const vt = ["id"], dt = {
|
|
|
733
733
|
}, 8, ["config"])) : c("", !0)
|
|
734
734
|
], 46, vt));
|
|
735
735
|
}
|
|
736
|
-
}, vl = /* @__PURE__ */ rt(Kt, [["__scopeId", "data-v-
|
|
736
|
+
}, vl = /* @__PURE__ */ rt(Kt, [["__scopeId", "data-v-6a9876b1"]]);
|
|
737
737
|
export {
|
|
738
738
|
vl as default
|
|
739
739
|
};
|