vue-data-ui 2.10.10 → 2.10.11
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-CkVAj2ex.js → Arrow-B0YRTzCj.js} +1 -1
- package/dist/{Arrow-CjydbHaJ.cjs → Arrow-C6ETniRR.cjs} +1 -1
- package/dist/{BaseIcon-DvVvIgek.cjs → BaseIcon-CObkWSlF.cjs} +1 -1
- package/dist/{BaseIcon-CeAuvfV6.js → BaseIcon-V0HD2AAD.js} +1 -1
- package/dist/{ColorPicker-DcVKrz_V.js → ColorPicker-BMSFl1XZ.js} +3 -3
- package/dist/{ColorPicker-Bc4l4E7Z.cjs → ColorPicker-Czm9Mx_k.cjs} +1 -1
- package/dist/{DataTable-Dz3uePkM.js → DataTable-CVSajw4G.js} +2 -2
- package/dist/{DataTable-CJVWuZQ7.cjs → DataTable-DypMcnH2.cjs} +1 -1
- package/dist/{Legend-DRjI7VTS.js → Legend-B61dtd8W.js} +2 -2
- package/dist/{Legend-BVXdf95S.cjs → Legend-DUZ-tBhF.cjs} +1 -1
- package/dist/{PackageVersion-NIHFWeLx.cjs → PackageVersion-BS7Jybcw.cjs} +1 -1
- package/dist/{PackageVersion-BNm7stW7.js → PackageVersion-DqsC6J9R.js} +1 -1
- package/dist/{PenAndPaper-Ba1SBNDw.js → PenAndPaper-Bqjmruhh.js} +3 -3
- package/dist/{PenAndPaper-dU138eET.cjs → PenAndPaper-CU0ABvzv.cjs} +1 -1
- package/dist/{Shape-DqWzVzjZ.js → Shape-CWSam3QO.js} +1 -1
- package/dist/{Shape-CwHZ-sW6.cjs → Shape-x9QWqySR.cjs} +1 -1
- package/dist/{Slicer-9CXQSz7y.js → Slicer-BbMNT2AI.js} +2 -2
- package/dist/{Slicer-DLFjRDKI.cjs → Slicer-VF0Mi4Gp.cjs} +1 -1
- package/dist/{Title-CiymPFBZ.js → Title-CxubvuEh.js} +1 -1
- package/dist/{Title-CcJuov8a.cjs → Title-LLvOAGEi.cjs} +1 -1
- package/dist/{Tooltip-DolT-Egr.cjs → Tooltip-B1xW8AQT.cjs} +1 -1
- package/dist/{Tooltip-BXojuEca.js → Tooltip-C0W6IWVK.js} +1 -1
- package/dist/{dom-to-png-BACUnvWN.cjs → dom-to-png-CNF-s1oi.cjs} +1 -1
- package/dist/{dom-to-png-BbzDwc8c.js → dom-to-png-D2P_vWEM.js} +1 -1
- package/dist/{img-BCxvOZEr.cjs → img-BDamDFQb.cjs} +1 -1
- package/dist/{img-O1YZMZE1.js → img-DacIcr83.js} +1 -1
- package/dist/index-B7zOq_yO.cjs +9 -0
- package/dist/{index-DvXHhwi7.js → index-CO-5OgQA.js} +2 -2
- package/dist/{pdf-Bq_WJR-q.cjs → pdf-D6wHFpvv.cjs} +1 -1
- package/dist/{pdf-CG4EnFNu.js → pdf-DflC6mtT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-Bw2_FZ80.js → useNestedProp-D8sa_wYF.js} +1 -1
- package/dist/{useNestedProp-dCmM2zfv.cjs → useNestedProp-DUH233CH.cjs} +1 -1
- package/dist/{usePrinter-D0Njbrwg.js → usePrinter-DldU0tBx.js} +3 -3
- package/dist/{usePrinter-Cr-rXufG.cjs → usePrinter-u4erwqXt.cjs} +1 -1
- package/dist/{vue-data-ui-BXsbflWH.cjs → vue-data-ui-C3o_PUJM.cjs} +1 -1
- package/dist/{vue-data-ui-ukeuQLYG.js → vue-data-ui-DaG_fJyV.js} +62 -62
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C3-VA6Iq.cjs → vue-ui-3d-bar-1L_FJakQ.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-CaoKpu9l.js → vue-ui-3d-bar-CKaPvMis.js} +9 -9
- package/dist/{vue-ui-accordion-BvbhG2QO.cjs → vue-ui-accordion-DkOSgEPp.cjs} +1 -1
- package/dist/{vue-ui-accordion-rd6DBLB5.js → vue-ui-accordion-RRHvINsj.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Cle-IO4l.cjs → vue-ui-age-pyramid-BX5nAmcR.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Cjr5nyxr.js → vue-ui-age-pyramid-BsfpBP5o.js} +10 -10
- package/dist/{vue-ui-annotator-Rvcr7Sf7.cjs → vue-ui-annotator-BCfRHpTL.cjs} +1 -1
- package/dist/{vue-ui-annotator-DxegikPh.js → vue-ui-annotator-CSSRY4KB.js} +2 -2
- package/dist/{vue-ui-bullet-BLYaTFAz.cjs → vue-ui-bullet-BuoFM_Qt.cjs} +1 -1
- package/dist/{vue-ui-bullet-CmuRRP70.js → vue-ui-bullet-wcXiBQsu.js} +8 -8
- package/dist/{vue-ui-candlestick-DmA7Uqy4.js → vue-ui-candlestick-DLPBk-z0.js} +11 -11
- package/dist/{vue-ui-candlestick-BieBlp2c.cjs → vue-ui-candlestick-D_UWn-gv.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CP0CJfcG.js → vue-ui-carousel-table-B-FxYow7.js} +4 -4
- package/dist/{vue-ui-carousel-table-9SZvnl9Q.cjs → vue-ui-carousel-table-DZWUAetO.cjs} +1 -1
- package/dist/{vue-ui-chestnut-rna7-x5E.js → vue-ui-chestnut-D_GtQRUL.js} +8 -8
- package/dist/{vue-ui-chestnut-CPF5eohd.cjs → vue-ui-chestnut-Ds2IXobn.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-CwtKnUdV.cjs → vue-ui-circle-pack-DZjwCJfn.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-COHe6gAY.js → vue-ui-circle-pack-IFKy_EXs.js} +9 -9
- package/dist/{vue-ui-cursor-B0CTU0OJ.cjs → vue-ui-cursor-CFcWzQ_a.cjs} +1 -1
- package/dist/{vue-ui-cursor-Bnz6m5UN.js → vue-ui-cursor-CpXWkh96.js} +2 -2
- package/dist/{vue-ui-dashboard-DZUi9h4u.cjs → vue-ui-dashboard-BMVLKe5Z.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DumW8xZp.js → vue-ui-dashboard-CLULzCgo.js} +62 -62
- package/dist/{vue-ui-digits-AvU7LQwA.js → vue-ui-digits-B3J16TA3.js} +2 -2
- package/dist/{vue-ui-digits-C9Lc2vf6.cjs → vue-ui-digits-VMbRXMfP.cjs} +1 -1
- package/dist/{vue-ui-donut-CFadUVCm.cjs → vue-ui-donut-BjGbzLsC.cjs} +1 -1
- package/dist/{vue-ui-donut-CF8KPH2H.js → vue-ui-donut-DUAbkhZV.js} +12 -12
- package/dist/{vue-ui-donut-evolution-CF3yvm9u.cjs → vue-ui-donut-evolution-B2MMB7lY.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-D_eA5afL.js → vue-ui-donut-evolution-BlMjAI3c.js} +11 -11
- package/dist/{vue-ui-dumbbell-CwvokBZU.js → vue-ui-dumbbell-B_88Pzkq.js} +10 -10
- package/dist/{vue-ui-dumbbell-CWZNqHum.cjs → vue-ui-dumbbell-DgizrVYM.cjs} +1 -1
- package/dist/{vue-ui-flow-DH4I9526.js → vue-ui-flow-CGYd2Iko.js} +208 -219
- package/dist/vue-ui-flow-v5zjc5i3.cjs +3 -0
- package/dist/{vue-ui-funnel-Cj0ZTNhc.cjs → vue-ui-funnel-AOnxjmTY.cjs} +1 -1
- package/dist/{vue-ui-funnel-BYQyM9Qy.js → vue-ui-funnel-D8Ql3Fu9.js} +9 -9
- package/dist/{vue-ui-galaxy-CKXBzmN1.js → vue-ui-galaxy-C5XKP863.js} +11 -11
- package/dist/{vue-ui-galaxy-BviAjFrA.cjs → vue-ui-galaxy-qIl1Sp2I.cjs} +1 -1
- package/dist/{vue-ui-gauge-Cy31bXmf.cjs → vue-ui-gauge-BzmlwkZO.cjs} +1 -1
- package/dist/{vue-ui-gauge-DG6gMQYv.js → vue-ui-gauge-CnS0ZVac.js} +7 -7
- package/dist/{vue-ui-gizmo-17lmQTkY.cjs → vue-ui-gizmo-oMF4Uxgv.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DFndi5tZ.js → vue-ui-gizmo-w7f-RuqD.js} +3 -3
- package/dist/{vue-ui-heatmap-BqjWfqcB.cjs → vue-ui-heatmap-CjUYm6Y8.cjs} +1 -1
- package/dist/{vue-ui-heatmap-D0qsMawE.js → vue-ui-heatmap-DdbtuK1j.js} +10 -10
- package/dist/{vue-ui-history-plot-Dgfl_nqu.cjs → vue-ui-history-plot-CPEbWJv-.cjs} +1 -1
- package/dist/{vue-ui-history-plot-Cekgkdnm.js → vue-ui-history-plot-DJ5eSSra.js} +11 -11
- package/dist/{vue-ui-kpi-D_1edGUC.cjs → vue-ui-kpi-BBpWvss7.cjs} +1 -1
- package/dist/{vue-ui-kpi-DVJmaGJs.js → vue-ui-kpi-T-hxtGRX.js} +3 -3
- package/dist/{vue-ui-mini-loader-DeZTsVLO.js → vue-ui-mini-loader-BUdcns7l.js} +2 -2
- package/dist/{vue-ui-mini-loader-Ba-YuHH3.cjs → vue-ui-mini-loader-CnEXcdzr.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bl3QO6ap.js → vue-ui-molecule-9zI34I22.js} +11 -11
- package/dist/{vue-ui-molecule-OfRmGbBu.cjs → vue-ui-molecule-CXda1TRy.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DMAnLGTo.js → vue-ui-mood-radar-3FsJtJ1q.js} +11 -11
- package/dist/{vue-ui-mood-radar-C5m5P61q.cjs → vue-ui-mood-radar-DCz7WxHl.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-DfECvthA.cjs → vue-ui-nested-donuts-CQHTFClA.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-pcIPwSEN.js → vue-ui-nested-donuts-D5-RAGOC.js} +11 -11
- package/dist/{vue-ui-onion-BERoTmw5.cjs → vue-ui-onion-C3tsgeYq.cjs} +1 -1
- package/dist/{vue-ui-onion-BJQrXERJ.js → vue-ui-onion-DyNY3aLe.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-V5yjq2qt.js → vue-ui-parallel-coordinate-plot-D3C5xDkx.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CcxszfT5.cjs → vue-ui-parallel-coordinate-plot-tnKZr6bC.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BjTSploz.cjs → vue-ui-quadrant-CF7YSzrp.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DmBXoM1K.js → vue-ui-quadrant-Oyf18Bj4.js} +12 -12
- package/dist/{vue-ui-quick-chart-8JQHu8_6.js → vue-ui-quick-chart-TbLTi-d3.js} +9 -9
- package/dist/{vue-ui-quick-chart-Vg51F_fv.cjs → vue-ui-quick-chart-Y8-adLxE.cjs} +1 -1
- package/dist/{vue-ui-radar-B59hKBs9.js → vue-ui-radar-BfHQxjpG.js} +12 -12
- package/dist/{vue-ui-radar-DM6Sp8pR.cjs → vue-ui-radar-BvNWx4a8.cjs} +1 -1
- package/dist/{vue-ui-rating-BOpo_dKd.js → vue-ui-rating-BDM0NHP6.js} +2 -2
- package/dist/{vue-ui-rating-DoWnn_wH.cjs → vue-ui-rating-DitReQ9n.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Dw3E2cQS.cjs → vue-ui-relation-circle-DcZyVpqG.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BNSUjYth.js → vue-ui-relation-circle-DpwaksSx.js} +7 -7
- package/dist/{vue-ui-ridgeline-DNLWxIOo.js → vue-ui-ridgeline-BXEg60Vj.js} +12 -12
- package/dist/{vue-ui-ridgeline-CfgyyLHT.cjs → vue-ui-ridgeline-DgzMstgJ.cjs} +1 -1
- package/dist/{vue-ui-rings-Dz1eSPrm.js → vue-ui-rings-Bsvdt8jo.js} +12 -12
- package/dist/{vue-ui-rings-waaeEddc.cjs → vue-ui-rings-DqF707hp.cjs} +1 -1
- package/dist/{vue-ui-scatter-D66nsMM5.cjs → vue-ui-scatter-D9sIS4Dp.cjs} +1 -1
- package/dist/{vue-ui-scatter-CBfydDzi.js → vue-ui-scatter-qQ-795VY.js} +12 -12
- package/dist/{vue-ui-skeleton-CJ9j8gHc.js → vue-ui-skeleton-BeEBd4CC.js} +3 -3
- package/dist/{vue-ui-skeleton-DcQQl9nv.cjs → vue-ui-skeleton-Br6xw2QW.cjs} +1 -1
- package/dist/{vue-ui-smiley-CKgBpYEI.cjs → vue-ui-smiley-B3JFedE5.cjs} +1 -1
- package/dist/{vue-ui-smiley-B62ZaIXL.js → vue-ui-smiley-Bba04Gln.js} +2 -2
- package/dist/{vue-ui-spark-trend-DS6c__u7.js → vue-ui-spark-trend-DB2vKJ0m.js} +5 -5
- package/dist/{vue-ui-spark-trend-CcHJtofv.cjs → vue-ui-spark-trend-DiZvQzSb.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-ZAyG8tz6.cjs → vue-ui-sparkbar-B1pBe2b4.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-oQceGXzy.js → vue-ui-sparkbar-DjsNBWGs.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Nqea8uqi.js → vue-ui-sparkgauge-BJ0vTnKL.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DK08SKBD.cjs → vue-ui-sparkgauge-ByMA0D5w.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-D53Fp0iI.js → vue-ui-sparkhistogram-Cv-hyUbF.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CRXHUkEG.cjs → vue-ui-sparkhistogram-WxGpd0TA.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CcN5BzJC.cjs → vue-ui-sparkline-DPlkEVV6.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BGytINYe.js → vue-ui-sparkline-tnMT43CD.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-j7zxJEwR.js → vue-ui-sparkstackbar-8WSy0M8S.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BzN70G0w.cjs → vue-ui-sparkstackbar-BFkweUWm.cjs} +1 -1
- package/dist/{vue-ui-stackbar-_Rbe0zcH.cjs → vue-ui-stackbar-BFgWt2oG.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DG1zFQ6I.js → vue-ui-stackbar-BfkOVox7.js} +13 -13
- package/dist/{vue-ui-strip-plot-DfLu7xBj.cjs → vue-ui-strip-plot-BKsixkUU.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BXBF0O7V.js → vue-ui-strip-plot-CN06Oh8m.js} +11 -11
- package/dist/{vue-ui-table-CQkGKA38.js → vue-ui-table-B-sy0kOZ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-D6q9ISlX.cjs → vue-ui-table-heatmap-BidbeObz.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Be3sBs1v.js → vue-ui-table-heatmap-Dur8rhk6.js} +4 -4
- package/dist/{vue-ui-table-jufn4CSz.cjs → vue-ui-table-o_zUZsUz.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DXn5vFtK.cjs → vue-ui-table-sparkline-BeWSYBle.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BGA_BtKK.js → vue-ui-table-sparkline-Ccw_ekS8.js} +5 -5
- package/dist/{vue-ui-thermometer-D0ajQG3p.js → vue-ui-thermometer-BOw4FvGD.js} +7 -7
- package/dist/{vue-ui-thermometer-C2QTnZLg.cjs → vue-ui-thermometer-Ds9lWEE_.cjs} +1 -1
- package/dist/{vue-ui-timer-D8pO4CRs.js → vue-ui-timer-B2gMYwCj.js} +5 -5
- package/dist/{vue-ui-timer-BUgMA6gQ.cjs → vue-ui-timer-OAHpNcTb.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Cz1hC6e6.cjs → vue-ui-tiremarks-B8dltsA4.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BBeVDMLy.js → vue-ui-tiremarks-BlfDeAAZ.js} +7 -7
- package/dist/{vue-ui-treemap-BNuJbnXL.cjs → vue-ui-treemap-BjWTRcbW.cjs} +1 -1
- package/dist/{vue-ui-treemap-DUoEwGF0.js → vue-ui-treemap-meoOt_AQ.js} +12 -12
- package/dist/{vue-ui-vertical-bar-j-ZfufVH.js → vue-ui-vertical-bar-8EaYa2I2.js} +12 -12
- package/dist/{vue-ui-vertical-bar-ASDnRvkD.cjs → vue-ui-vertical-bar-kRBUbvs6.cjs} +1 -1
- package/dist/{vue-ui-waffle-Dev3qUVT.js → vue-ui-waffle-ThNptuVQ.js} +12 -12
- package/dist/{vue-ui-waffle-CHV-QmJq.cjs → vue-ui-waffle-XM92kEwZ.cjs} +1 -1
- package/dist/{vue-ui-wheel-JMze39OW.js → vue-ui-wheel-B_DSO7Ko.js} +7 -7
- package/dist/{vue-ui-wheel-Drcpu-bo.cjs → vue-ui-wheel-DMiRno4r.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-B_8TgWf5.cjs → vue-ui-word-cloud-8-CU7ACz.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-Bywulitd.js → vue-ui-word-cloud-tsIW_o0M.js} +10 -10
- package/dist/{vue-ui-world-BPpDQcP7.cjs → vue-ui-world-C-TO7n_r.cjs} +1 -1
- package/dist/{vue-ui-world-BSDboMw1.js → vue-ui-world-DizUMTdP.js} +11 -11
- package/dist/{vue-ui-xy-Do294mp4.cjs → vue-ui-xy-CHcCU9pB.cjs} +2 -2
- package/dist/{vue-ui-xy-_RG7ZoSc.js → vue-ui-xy-CKNq6i3B.js} +16 -16
- package/dist/{vue-ui-xy-canvas-BHznnIA0.cjs → vue-ui-xy-canvas-Cmax9zNa.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-Cs3pXcFe.js → vue-ui-xy-canvas-DgLV6VWJ.js} +12 -12
- package/package.json +1 -1
- package/dist/index-CFHk7XOI.cjs +0 -9
- package/dist/vue-ui-flow-D8XUyGoY.cjs +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CFHk7XOI.cjs"),Q=require("./useResponsive-DQmBAoBf.cjs"),de=require("./Title-CcJuov8a.cjs"),ee=require("./usePrinter-Cr-rXufG.cjs"),ve=require("./DataTable-CJVWuZQ7.cjs"),he=require("./vue-ui-skeleton-DcQQl9nv.cjs"),ye=require("./Legend-BVXdf95S.cjs"),fe=require("./vue-ui-accordion-BvbhG2QO.cjs"),te=require("./useNestedProp-dCmM2zfv.cjs"),me=require("./PackageVersion-NIHFWeLx.cjs"),be=require("./PenAndPaper-dU138eET.cjs"),pe=require("./useUserOptionState-BgepsfED.cjs"),ge=require("./useChartAccessibility-Cm7nkzTG.cjs"),ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_e=["id"],xe=["xmlns","viewBox"],Ce=["x","y","width","height"],we={key:1},Be=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ne={key:2},Ee=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],$e=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Le={key:3},Se=["x","y","font-size","fill","font-weight"],Ve=["x","y","font-size","fill"],ze={key:4},Ae=["x","y","font-size","fill","font-weight"],Pe=["id"],Te=["stop-color"],Xe=["stop-color"],Oe=["stop-color"],De=["id"],Fe=["stop-color"],Me=["stop-color"],Ie=["stop-color"],Ge=["id"],qe=["stop-color"],Re=["stop-color"],He=["id"],Ue=["stop-color"],We=["stop-color"],je={key:0},Ye=["d","fill"],Ze={key:1},Je=["x","y","height","width","fill"],Ke=["cx","cy","r","fill","stroke","stroke-width"],Qe=["cx","cy","r","fill","stroke","stroke-width"],et={key:5},tt=["x","y","fill","font-size"],lt={key:6},at=["x","y","fill","font-size"],ot={key:5,class:"vue-data-ui-watermark"},rt=["xmlns","height","width"],st=["fill"],nt=["innerHTML"],ut={__name:"vue-ui-dumbbell",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(le,{expose:ae,emit:ct}){const{vue_ui_dumbbell:oe}=s.useConfig(),v=le,b=e.computed({get(){return!!v.dataset&&v.dataset.length},set(a){return a}}),c=e.ref(s.createUid()),V=e.ref(0),_=e.ref(null),z=e.ref(null),A=e.ref(null),P=e.ref(null),T=e.ref(null),X=e.ref(0),O=e.ref(0),D=e.ref(0),t=e.computed({get:()=>G(),set:a=>a}),{userOptionsVisible:E,setUserOptionsVisibility:F,keepUserOptionState:M}=pe.useUserOptionState({config:t.value}),{svgRef:I}=ge.useChartAccessibility({config:t.value.style.chart.title});function G(){const a=te.useNestedProp({userConfig:v.config,defaultConfig:oe});return a.theme?{...te.useNestedProp({userConfig:s.themes.vue_ui_dumbbell[a.theme]||v.config,defaultConfig:a})}:a}e.watch(()=>v.config,a=>{t.value=G(),E.value=!t.value.userOptions.showOnChartHover,q(),X.value+=1,O.value+=1,D.value+=1,i.value=t.value.style.chart.rowHeight,g.value=t.value.style.chart.width,p.value.showTable=t.value.table.show},{deep:!0}),e.watch(()=>v.dataset,a=>{Y()},{deep:!0});const x=e.ref(null);e.onMounted(()=>{q()});function q(){if(s.objectIsEmpty(v.dataset)?s.error({componentName:"VueUiDumbbell",type:"dataset"}):v.dataset.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","start","end"]}).forEach(l=>{b.value=!1,s.error({componentName:"VueUiDumbbell",type:"datasetSerieAttribute",property:l,index:n})})}),t.value.responsive){const a=Q.throttle(()=>{const{width:n,height:l}=Q.useResponsive({chart:_.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?A.value:null,source:P.value,noTitle:T.value});requestAnimationFrame(()=>{g.value=n,i.value=l/v.dataset.length,d.value=C()})});x.value=new ResizeObserver(a),x.value.observe(_.value.parentNode)}}e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const{isPrinting:R,isImaging:H,generatePdf:U,generateImage:W}=ee.usePrinter({elementId:`dumbbell_${c.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell",options:t.value.userOptions.print}),re=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),p=e.ref({showTable:t.value.table.show}),y=e.computed(()=>v.dataset.map((a,n)=>({...a,start:s.checkNaN(a.start),end:s.checkNaN(a.end),id:s.createUid()}))),$=e.computed(()=>({max:Math.max(...y.value.flatMap(a=>[a.start,a.end])),min:Math.min(...y.value.flatMap(a=>[a.start,a.end]))})),u=e.computed(()=>s.calculateNiceScale($.value.min<0?$.value.min:0,$.value.max,t.value.style.chart.grid.scaleSteps)),i=e.ref(t.value.style.chart.rowHeight),g=e.ref(t.value.style.chart.width),r=e.computed(()=>{const a=i.value,n=t.value.style.chart.padding.left+t.value.style.chart.padding.right+g.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*v.dataset.length,o=u.value.ticks.length*(g.value/u.value.ticks.length);return{left:t.value.style.chart.padding.left,right:n-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,bottom:l-t.value.style.chart.padding.bottom,width:g.value,height:a*v.dataset.length,rowHeight:a,absoluteHeight:l,absoluteWidth:n,widthPlotReference:o}});function C(){return y.value.map((a,n)=>{const l=r.value.left+(a.start+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,o=r.value.left+(a.end+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,h=l+(o-l)/2;return{...a,startX:l,endX:o,centerX:h,y:r.value.top+n*i.value+i.value/2,endVal:a.start}})}const d=e.ref([]),j=e.ref(null),se=e.computed(()=>y.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{Y()});function Y(){d.value=C();let a=d.value.map(l=>l.start).reduce((l,o)=>l+o,0);function n(){const l=y.value.map(o=>o.end-o.start);a>=se.value?(cancelAnimationFrame(j.value),d.value=C()):(d.value=d.value.map((o,h)=>{o.endVal+=l[h]*(t.value.animationSpeed/100);const m=r.value.left+(o.start+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,N=r.value.left+(o.endVal+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,S=m+(N-m)/2;return{...o,startX:m,endX:N,centerX:S,y:r.value.top+h*i.value+i.value/2,endVal:o.endVal}}),a=d.value.map(o=>o.endVal).reduce((o,h)=>o+h,0),j.value=requestAnimationFrame(n))}t.value.useAnimation?n():d.value=C()}const Z=e.computed(()=>[{name:t.value.style.chart.legend.labelStart,color:t.value.style.chart.plots.gradient.show?`url(#start_grad_${c.value})`:t.value.style.chart.plots.startColor},{name:t.value.style.chart.legend.labelEnd,color:t.value.style.chart.plots.gradient.show?`url(#end_grad_${c.value})`:t.value.style.chart.plots.endColor}]),ne=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,paddingTop:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),f=e.computed(()=>{const a=d.value.map(l=>({name:l.name})),n=d.value.map(l=>({start:l.start,end:l.end}));return{head:a,body:n}}),w=e.computed(()=>{const a=[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],n=f.value.head.map((h,m)=>{const N=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[m].start,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),S=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[m].end,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),ce=s.dataLabel({v:100*(f.value.body[m].end/f.value.body[m].start-1),s:"%",r:t.value.table.td.roundingPercentage});return[{name:h.name},N,S,ce]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],head:a,body:n,config:l}});function J(){e.nextTick(()=>{const a=f.value.head.map((o,h)=>[[o.name],[f.value.body[h].start],[f.value.body[h].end]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.start],[t.value.table.columnNames.end]]].concat(a),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-dumbbell"})})}const k=e.ref(!1);function ue(a){k.value=a,V.value+=1}function ie(){return d.value}function K(){p.value.showTable=!p.value.showTable}const B=e.ref(!1);function L(){B.value=!B.value}return ae({getData:ie,generatePdf:U,generateCsv:J,generateImage:W,toggleTable:K,toggleAnnotator:L}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:_,class:e.normalizeClass(`vue-ui-dumbbell ${k.value?"vue-data-ui-wrapper-fullscreen":""}`),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%":""}`),id:`dumbbell_${c.value}`,onMouseenter:n[1]||(n[1]=()=>e.unref(F)(!0)),onMouseleave:n[2]||(n[2]=()=>e.unref(F)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(be._sfc_main,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:L},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),re.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:T,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:z,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${X.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(M)||e.unref(E))?(e.openBlock(),e.createBlock(ee.UserOptions,{ref:"details",key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(R),isImaging:e.unref(H),uid:c.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:k.value,titles:{...t.value.userOptions.buttonTitles},chartElement:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(W),onToggleTable:K,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(E)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:o})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:o})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:o})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:o})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:I,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${r.value.absoluteWidth<=0?10:r.value.absoluteWidth} ${r.value.absoluteHeight<=0?10:r.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(me._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:r.value.left,y:r.value.top,width:r.value.width,height:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ce)):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",we,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.ticks,(l,o)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left+o*r.value.width/(u.value.ticks.length-1),x2:r.value.left+o*r.value.width/(u.value.ticks.length-1),y1:r.value.top,y2:r.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray},null,8,Be))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,o)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left,x2:r.value.right,y1:r.value.top+o*i.value,y2:r.value.top+o*i.value,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,Ee))),256)),e.createElementVNode("line",{x1:r.value.left,x2:r.value.right,y1:r.value.bottom,y2:r.value.bottom,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,$e)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:r.value.top+o*i.value+(t.value.style.chart.labels.yAxisLabels.showProgression?i.value/3:i.value/2)+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"font-weight":t.value.style.chart.labels.yAxisLabels.bold?"bold":"normal","text-anchor":"end"},e.toDisplayString(l.name),9,Se))),256)),t.value.style.chart.labels.yAxisLabels.showProgression?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(y.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:r.value.top+o*i.value+i.value/1.3+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(s.dataLabel)({v:100*(l.end/l.start-1),s:"%",r:t.value.style.chart.labels.yAxisLabels.rounding})),9,Ve))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.ticks,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left+o*(r.value.width/(u.value.ticks.length-1)),y:r.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"font-weight":t.value.style.chart.labels.xAxisLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.xAxisLabels.rounding}),{datapoint:l,seriesIndex:o})),9,Ae))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`start_grad_${c.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.startColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Te),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.startColor,.1)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,Oe)],8,Pe),e.createElementVNode("radialGradient",{id:`end_grad_${c.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.endColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Fe),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.endColor,.1)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Ie)],8,De)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`grad_positive_${c.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.startColor},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Re)],8,Ge),e.createElementVNode("linearGradient",{id:`grad_negative_${c.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.endColor},null,8,Ue),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,We)],8,He)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("path",{d:`M
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-B7zOq_yO.cjs"),Q=require("./useResponsive-DQmBAoBf.cjs"),de=require("./Title-LLvOAGEi.cjs"),ee=require("./usePrinter-u4erwqXt.cjs"),ve=require("./DataTable-DypMcnH2.cjs"),he=require("./vue-ui-skeleton-Br6xw2QW.cjs"),ye=require("./Legend-DUZ-tBhF.cjs"),fe=require("./vue-ui-accordion-DkOSgEPp.cjs"),te=require("./useNestedProp-DUH233CH.cjs"),me=require("./PackageVersion-BS7Jybcw.cjs"),be=require("./PenAndPaper-CU0ABvzv.cjs"),pe=require("./useUserOptionState-BgepsfED.cjs"),ge=require("./useChartAccessibility-Cm7nkzTG.cjs"),ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_e=["id"],xe=["xmlns","viewBox"],Ce=["x","y","width","height"],we={key:1},Be=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ne={key:2},Ee=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],$e=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Le={key:3},Se=["x","y","font-size","fill","font-weight"],Ve=["x","y","font-size","fill"],ze={key:4},Ae=["x","y","font-size","fill","font-weight"],Pe=["id"],Te=["stop-color"],Xe=["stop-color"],Oe=["stop-color"],De=["id"],Fe=["stop-color"],Me=["stop-color"],Ie=["stop-color"],Ge=["id"],qe=["stop-color"],Re=["stop-color"],He=["id"],Ue=["stop-color"],We=["stop-color"],je={key:0},Ye=["d","fill"],Ze={key:1},Je=["x","y","height","width","fill"],Ke=["cx","cy","r","fill","stroke","stroke-width"],Qe=["cx","cy","r","fill","stroke","stroke-width"],et={key:5},tt=["x","y","fill","font-size"],lt={key:6},at=["x","y","fill","font-size"],ot={key:5,class:"vue-data-ui-watermark"},rt=["xmlns","height","width"],st=["fill"],nt=["innerHTML"],ut={__name:"vue-ui-dumbbell",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(le,{expose:ae,emit:ct}){const{vue_ui_dumbbell:oe}=s.useConfig(),v=le,b=e.computed({get(){return!!v.dataset&&v.dataset.length},set(a){return a}}),c=e.ref(s.createUid()),V=e.ref(0),_=e.ref(null),z=e.ref(null),A=e.ref(null),P=e.ref(null),T=e.ref(null),X=e.ref(0),O=e.ref(0),D=e.ref(0),t=e.computed({get:()=>G(),set:a=>a}),{userOptionsVisible:E,setUserOptionsVisibility:F,keepUserOptionState:M}=pe.useUserOptionState({config:t.value}),{svgRef:I}=ge.useChartAccessibility({config:t.value.style.chart.title});function G(){const a=te.useNestedProp({userConfig:v.config,defaultConfig:oe});return a.theme?{...te.useNestedProp({userConfig:s.themes.vue_ui_dumbbell[a.theme]||v.config,defaultConfig:a})}:a}e.watch(()=>v.config,a=>{t.value=G(),E.value=!t.value.userOptions.showOnChartHover,q(),X.value+=1,O.value+=1,D.value+=1,i.value=t.value.style.chart.rowHeight,g.value=t.value.style.chart.width,p.value.showTable=t.value.table.show},{deep:!0}),e.watch(()=>v.dataset,a=>{Y()},{deep:!0});const x=e.ref(null);e.onMounted(()=>{q()});function q(){if(s.objectIsEmpty(v.dataset)?s.error({componentName:"VueUiDumbbell",type:"dataset"}):v.dataset.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","start","end"]}).forEach(l=>{b.value=!1,s.error({componentName:"VueUiDumbbell",type:"datasetSerieAttribute",property:l,index:n})})}),t.value.responsive){const a=Q.throttle(()=>{const{width:n,height:l}=Q.useResponsive({chart:_.value,title:t.value.style.chart.title.text?z.value:null,legend:t.value.style.chart.legend.show?A.value:null,source:P.value,noTitle:T.value});requestAnimationFrame(()=>{g.value=n,i.value=l/v.dataset.length,d.value=C()})});x.value=new ResizeObserver(a),x.value.observe(_.value.parentNode)}}e.onBeforeUnmount(()=>{x.value&&x.value.disconnect()});const{isPrinting:R,isImaging:H,generatePdf:U,generateImage:W}=ee.usePrinter({elementId:`dumbbell_${c.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell",options:t.value.userOptions.print}),re=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),p=e.ref({showTable:t.value.table.show}),y=e.computed(()=>v.dataset.map((a,n)=>({...a,start:s.checkNaN(a.start),end:s.checkNaN(a.end),id:s.createUid()}))),$=e.computed(()=>({max:Math.max(...y.value.flatMap(a=>[a.start,a.end])),min:Math.min(...y.value.flatMap(a=>[a.start,a.end]))})),u=e.computed(()=>s.calculateNiceScale($.value.min<0?$.value.min:0,$.value.max,t.value.style.chart.grid.scaleSteps)),i=e.ref(t.value.style.chart.rowHeight),g=e.ref(t.value.style.chart.width),r=e.computed(()=>{const a=i.value,n=t.value.style.chart.padding.left+t.value.style.chart.padding.right+g.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*v.dataset.length,o=u.value.ticks.length*(g.value/u.value.ticks.length);return{left:t.value.style.chart.padding.left,right:n-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,bottom:l-t.value.style.chart.padding.bottom,width:g.value,height:a*v.dataset.length,rowHeight:a,absoluteHeight:l,absoluteWidth:n,widthPlotReference:o}});function C(){return y.value.map((a,n)=>{const l=r.value.left+(a.start+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,o=r.value.left+(a.end+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,h=l+(o-l)/2;return{...a,startX:l,endX:o,centerX:h,y:r.value.top+n*i.value+i.value/2,endVal:a.start}})}const d=e.ref([]),j=e.ref(null),se=e.computed(()=>y.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{Y()});function Y(){d.value=C();let a=d.value.map(l=>l.start).reduce((l,o)=>l+o,0);function n(){const l=y.value.map(o=>o.end-o.start);a>=se.value?(cancelAnimationFrame(j.value),d.value=C()):(d.value=d.value.map((o,h)=>{o.endVal+=l[h]*(t.value.animationSpeed/100);const m=r.value.left+(o.start+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,N=r.value.left+(o.endVal+Math.abs(u.value.min))/(u.value.max+Math.abs(u.value.min))*r.value.widthPlotReference,S=m+(N-m)/2;return{...o,startX:m,endX:N,centerX:S,y:r.value.top+h*i.value+i.value/2,endVal:o.endVal}}),a=d.value.map(o=>o.endVal).reduce((o,h)=>o+h,0),j.value=requestAnimationFrame(n))}t.value.useAnimation?n():d.value=C()}const Z=e.computed(()=>[{name:t.value.style.chart.legend.labelStart,color:t.value.style.chart.plots.gradient.show?`url(#start_grad_${c.value})`:t.value.style.chart.plots.startColor},{name:t.value.style.chart.legend.labelEnd,color:t.value.style.chart.plots.gradient.show?`url(#end_grad_${c.value})`:t.value.style.chart.plots.endColor}]),ne=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,paddingTop:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),f=e.computed(()=>{const a=d.value.map(l=>({name:l.name})),n=d.value.map(l=>({start:l.start,end:l.end}));return{head:a,body:n}}),w=e.computed(()=>{const a=[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],n=f.value.head.map((h,m)=>{const N=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[m].start,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),S=s.dataLabel({p:t.value.style.chart.labels.prefix,v:f.value.body[m].end,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),ce=s.dataLabel({v:100*(f.value.body[m].end/f.value.body[m].start-1),s:"%",r:t.value.table.td.roundingPercentage});return[{name:h.name},N,S,ce]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],head:a,body:n,config:l}});function J(){e.nextTick(()=>{const a=f.value.head.map((o,h)=>[[o.name],[f.value.body[h].start],[f.value.body[h].end]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.start],[t.value.table.columnNames.end]]].concat(a),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-dumbbell"})})}const k=e.ref(!1);function ue(a){k.value=a,V.value+=1}function ie(){return d.value}function K(){p.value.showTable=!p.value.showTable}const B=e.ref(!1);function L(){B.value=!B.value}return ae({getData:ie,generatePdf:U,generateCsv:J,generateImage:W,toggleTable:K,toggleAnnotator:L}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:_,class:e.normalizeClass(`vue-ui-dumbbell ${k.value?"vue-data-ui-wrapper-fullscreen":""}`),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%":""}`),id:`dumbbell_${c.value}`,onMouseenter:n[1]||(n[1]=()=>e.unref(F)(!0)),onMouseleave:n[2]||(n[2]=()=>e.unref(F)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(be._sfc_main,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:L},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),re.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:T,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:z,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${X.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&b.value&&(e.unref(M)||e.unref(E))?(e.openBlock(),e.createBlock(ee.UserOptions,{ref:"details",key:`user_option_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(R),isImaging:e.unref(H),uid:c.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:k.value,titles:{...t.value.userOptions.buttonTitles},chartElement:_.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:ue,onGeneratePdf:e.unref(U),onGenerateCsv:J,onGenerateImage:e.unref(W),onToggleTable:K,onToggleAnnotator:L,style:e.normalizeStyle({visibility:e.unref(M)?e.unref(E)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:o})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:o})),void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:o})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:o})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:o})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:I,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value}),viewBox:`0 0 ${r.value.absoluteWidth<=0?10:r.value.absoluteWidth} ${r.value.absoluteHeight<=0?10:r.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(me._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:r.value.left,y:r.value.top,width:r.value.width,height:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ce)):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",we,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.ticks,(l,o)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left+o*r.value.width/(u.value.ticks.length-1),x2:r.value.left+o*r.value.width/(u.value.ticks.length-1),y1:r.value.top,y2:r.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray},null,8,Be))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,o)=>(e.openBlock(),e.createElementBlock("line",{x1:r.value.left,x2:r.value.right,y1:r.value.top+o*i.value,y2:r.value.top+o*i.value,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,Ee))),256)),e.createElementVNode("line",{x1:r.value.left,x2:r.value.right,y1:r.value.bottom,y2:r.value.bottom,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,$e)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:r.value.top+o*i.value+(t.value.style.chart.labels.yAxisLabels.showProgression?i.value/3:i.value/2)+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"font-weight":t.value.style.chart.labels.yAxisLabels.bold?"bold":"normal","text-anchor":"end"},e.toDisplayString(l.name),9,Se))),256)),t.value.style.chart.labels.yAxisLabels.showProgression?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(y.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:r.value.top+o*i.value+i.value/1.3+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(s.dataLabel)({v:100*(l.end/l.start-1),s:"%",r:t.value.style.chart.labels.yAxisLabels.rounding})),9,Ve))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value.ticks,(l,o)=>(e.openBlock(),e.createElementBlock("text",{x:r.value.left+o*(r.value.width/(u.value.ticks.length-1)),y:r.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"font-weight":t.value.style.chart.labels.xAxisLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.xAxisLabels.rounding}),{datapoint:l,seriesIndex:o})),9,Ae))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`start_grad_${c.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.startColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Te),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.startColor,.1)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,Oe)],8,Pe),e.createElementVNode("radialGradient",{id:`end_grad_${c.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.endColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,Fe),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.endColor,.1)},null,8,Me),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Ie)],8,De)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`grad_positive_${c.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.startColor},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,Re)],8,Ge),e.createElementVNode("linearGradient",{id:`grad_negative_${c.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.endColor},null,8,Ue),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,We)],8,He)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("path",{d:`M
|
|
2
2
|
${l.startX},${l.y+t.value.style.chart.plots.radius/2}
|
|
3
3
|
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
4
4
|
${l.endX},${l.y+t.value.style.chart.plots.radius/2}
|