vue-data-ui 2.6.20 → 2.6.22
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-C9wt_iwE.js → Arrow-Cf2BhlTz.js} +1 -1
- package/dist/{Arrow-mU42Peiq.cjs → Arrow-Dkww_cPT.cjs} +1 -1
- package/dist/{BaseIcon-DMhDupLt.cjs → BaseIcon-CMg_B1n7.cjs} +1 -1
- package/dist/{BaseIcon-CR8s5lLC.js → BaseIcon-sQ0Yl3WG.js} +1 -1
- package/dist/{DataTable-CMUyDj6S.js → DataTable-2Igu4lk9.js} +2 -2
- package/dist/{DataTable-Qba16zLZ.cjs → DataTable-CdAOPHJa.cjs} +1 -1
- package/dist/{Legend-CaMKYW-V.js → Legend-BSuEi9g7.js} +2 -2
- package/dist/{Legend-EauKcdAx.cjs → Legend-CWcXXd69.cjs} +1 -1
- package/dist/{PackageVersion-Vv7wNIAl.cjs → PackageVersion-D9dPTMdO.cjs} +1 -1
- package/dist/{PackageVersion-CURzw4q1.js → PackageVersion-V-_CbVlt.js} +1 -1
- package/dist/PenAndPaper-Cpwa77pt.cjs +1 -0
- package/dist/{PenAndPaper-CjiJra09.js → PenAndPaper-Dq-ECAue.js} +20 -16
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-DB_DsgPX.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-ByFB8slT.cjs} +1 -1
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-BzSorLrT.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-DKbZbPIn.js} +3 -3
- package/dist/{Shape-F5v4f45p.js → Shape-BPvU0s7x.js} +1 -1
- package/dist/{Shape-gLknKTb6.cjs → Shape-Ca9CTckg.cjs} +1 -1
- package/dist/{Slicer-DQp19cm1.js → Slicer-CATr5IB9.js} +3 -3
- package/dist/{Slicer-CVVRixhP.cjs → Slicer-DXEJzT3U.cjs} +1 -1
- package/dist/{Title-CUHNtIyE.js → Title-CUbvh4nY.js} +1 -1
- package/dist/{Title-m1x23s4w.cjs → Title-Vp8RX2Nj.cjs} +1 -1
- package/dist/{Tooltip-BuAQ8HVL.js → Tooltip-CYcP5JH9.js} +1 -1
- package/dist/{Tooltip-BXY2gKbA.cjs → Tooltip-D6K610_p.cjs} +1 -1
- package/dist/{index-CmhvuQro.cjs → index-BCAY_TBF.cjs} +1 -1
- package/dist/{index-Cq7-va_5.js → index-BVM1Hjat.js} +1 -1
- package/dist/index.es-DvaaoatM.cjs +18 -0
- package/dist/index.es-RWt7DWPC.js +6645 -0
- package/dist/{jspdf.es.min-C5v1xtPn.cjs → jspdf.es.min-Rw70uifz.cjs} +23 -23
- package/dist/{jspdf.es.min-DKXYalZb.js → jspdf.es.min-eTA26cmm.js} +476 -470
- package/dist/{pdf-CHXlEvWj.cjs → pdf-DSkQT5iH.cjs} +1 -1
- package/dist/{pdf-70oZh5Jp.js → pdf-DVWl3Adn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BEyJNlaO.js → useNestedProp-B7524T_I.js} +1 -1
- package/dist/{useNestedProp-CnH-XcZU.cjs → useNestedProp-Ces_ZEmq.cjs} +1 -1
- package/dist/{usePrinter-jRjc8Naz.js → usePrinter-BuEZ1Mqw.js} +2 -2
- package/dist/{usePrinter-DhZH4pcR.cjs → usePrinter-CMRlY9rc.cjs} +1 -1
- package/dist/useResponsive-N8jl0-aC.cjs +1 -0
- package/dist/{useResponsive-BWapHhVH.js → useResponsive-vZgZwV-S.js} +65 -64
- package/dist/{vue-data-ui-BPSCRfcK.js → vue-data-ui-CMHydJ3z.js} +61 -61
- package/dist/{vue-data-ui-DD5SV4SW.cjs → vue-data-ui-Cl21-Qn-.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BlCSdagh.cjs → vue-ui-3d-bar-BB9IHMFV.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-TB1XdncJ.js → vue-ui-3d-bar-CiVt8Lvp.js} +9 -9
- package/dist/{vue-ui-accordion-C3Ljak65.cjs → vue-ui-accordion-D86VhQnK.cjs} +1 -1
- package/dist/{vue-ui-accordion-vAQ_LLoP.js → vue-ui-accordion-Zeu2qcSI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BUWoRp_B.js → vue-ui-age-pyramid-CaZSG2fN.js} +11 -11
- package/dist/{vue-ui-age-pyramid-CrDKpPil.cjs → vue-ui-age-pyramid-t5v8gG7E.cjs} +1 -1
- package/dist/{vue-ui-annotator-wjsB7Ihy.cjs → vue-ui-annotator-DPQRwLra.cjs} +1 -1
- package/dist/{vue-ui-annotator-BVE-xqSy.js → vue-ui-annotator-DqMnXHaK.js} +2 -2
- package/dist/{vue-ui-bullet-BcU0lGMw.cjs → vue-ui-bullet-DfJ9YR2-.cjs} +1 -1
- package/dist/{vue-ui-bullet-Cj4GC_-F.js → vue-ui-bullet-oN99bgSq.js} +8 -8
- package/dist/{vue-ui-candlestick-C2hAp3Fi.js → vue-ui-candlestick-BIznNizW.js} +12 -12
- package/dist/{vue-ui-candlestick-n--kSbN7.cjs → vue-ui-candlestick-CbvO_6uK.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CU96d16y.cjs → vue-ui-carousel-table-DKQSfGt-.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Do1uzI_G.js → vue-ui-carousel-table-DjWEv7sx.js} +4 -4
- package/dist/{vue-ui-chestnut-DJq8IWIL.cjs → vue-ui-chestnut-DJsFMi3a.cjs} +1 -1
- package/dist/{vue-ui-chestnut-fb3ioT4a.js → vue-ui-chestnut-DtC70R0X.js} +8 -8
- package/dist/vue-ui-circle-pack-Bi3Usmkl.js +648 -0
- package/dist/vue-ui-circle-pack-KCMKYM9w.cjs +1 -0
- package/dist/{vue-ui-cursor-scYLETJY.js → vue-ui-cursor-BbrupWFh.js} +2 -2
- package/dist/{vue-ui-cursor-DSCiOK2l.cjs → vue-ui-cursor-Bh3F6uU7.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BBDfkeCW.cjs → vue-ui-dashboard-CR09TdSL.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DjxJGI1j.js → vue-ui-dashboard-he9hja0v.js} +3 -3
- package/dist/{vue-ui-digits-Cmn1NNzQ.cjs → vue-ui-digits-CrQuYkCF.cjs} +1 -1
- package/dist/{vue-ui-digits-7bQAdMhs.js → vue-ui-digits-eow8_8IF.js} +2 -2
- package/dist/{vue-ui-donut-RJQUTfyW.js → vue-ui-donut-C2Ab0qsE.js} +13 -13
- package/dist/{vue-ui-donut-C291KoIU.cjs → vue-ui-donut-Dh75AMUR.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DPW_ITH8.js → vue-ui-donut-evolution-C4ZSty9k.js} +11 -11
- package/dist/{vue-ui-donut-evolution-Dp15D88c.cjs → vue-ui-donut-evolution-CwPKiglD.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B8Zm8EVd.js → vue-ui-dumbbell-BN8fJSvG.js} +11 -11
- package/dist/{vue-ui-dumbbell-BdEUvUV7.cjs → vue-ui-dumbbell-CafiAGaw.cjs} +1 -1
- package/dist/{vue-ui-flow-BukV6_Zl.cjs → vue-ui-flow-BWm4K97n.cjs} +1 -1
- package/dist/{vue-ui-flow-BNIgPNGy.js → vue-ui-flow-DKpHc3FI.js} +9 -9
- package/dist/{vue-ui-funnel-CIgZpg3T.cjs → vue-ui-funnel-C25z-XuU.cjs} +1 -1
- package/dist/{vue-ui-funnel-BrPqtGct.js → vue-ui-funnel-DkmKmnNf.js} +10 -10
- package/dist/{vue-ui-galaxy-D1IYOUwX.js → vue-ui-galaxy-oV4efmeX.js} +11 -11
- package/dist/{vue-ui-galaxy-FGqZ4tWB.cjs → vue-ui-galaxy-wgZKEqln.cjs} +1 -1
- package/dist/{vue-ui-gauge-B00JvBFF.cjs → vue-ui-gauge-CzA2PhpW.cjs} +1 -1
- package/dist/{vue-ui-gauge-BsOXy5MV.js → vue-ui-gauge-DEKM0_3Q.js} +8 -8
- package/dist/{vue-ui-gizmo-D_uv6qkV.cjs → vue-ui-gizmo-DlNuWEmn.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Cyl89etd.js → vue-ui-gizmo-UO3Zkeme.js} +3 -3
- package/dist/{vue-ui-heatmap-CgF4n8Bh.js → vue-ui-heatmap-E_CcRS7D.js} +10 -10
- package/dist/{vue-ui-heatmap-CGg2_xWH.cjs → vue-ui-heatmap-dnvzPPoV.cjs} +1 -1
- package/dist/{vue-ui-history-plot-Rdjb-yOk.js → vue-ui-history-plot-DRbZ8X1X.js} +12 -12
- package/dist/{vue-ui-history-plot-DR11Ips0.cjs → vue-ui-history-plot-EWyGCjPe.cjs} +1 -1
- package/dist/{vue-ui-kpi-COfnJm-X.js → vue-ui-kpi-BZxftzEv.js} +3 -3
- package/dist/{vue-ui-kpi-CbAgFb-9.cjs → vue-ui-kpi-DWJbsdvG.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CizZv79e.cjs → vue-ui-mini-loader-BvWPS_gQ.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DNM7jU2W.js → vue-ui-mini-loader-DsCVKpe9.js} +2 -2
- package/dist/{vue-ui-molecule-CiOIVjFk.cjs → vue-ui-molecule-BdANdT7O.cjs} +1 -1
- package/dist/{vue-ui-molecule-Cv6jp9D_.js → vue-ui-molecule-BnYkqFk0.js} +10 -10
- package/dist/{vue-ui-mood-radar-B-VE2pVS.js → vue-ui-mood-radar-Cgn-5GqE.js} +11 -11
- package/dist/{vue-ui-mood-radar-CoHouhrl.cjs → vue-ui-mood-radar-D_uLYLXE.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-D-7tn_Qe.js → vue-ui-nested-donuts-BP9UnBkw.js} +12 -12
- package/dist/{vue-ui-nested-donuts-ITcu4gJW.cjs → vue-ui-nested-donuts-BzOUk2Kz.cjs} +1 -1
- package/dist/{vue-ui-onion-fzXsWjjI.cjs → vue-ui-onion-DGw3Ce3f.cjs} +1 -1
- package/dist/{vue-ui-onion-B4SgCj8L.js → vue-ui-onion-vu27Cwcx.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CTFOY5xi.cjs → vue-ui-parallel-coordinate-plot-Bo-yxxDH.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CpQOyh-W.js → vue-ui-parallel-coordinate-plot-Dy3yQFd1.js} +13 -13
- package/dist/{vue-ui-quadrant-ByRNr-XD.cjs → vue-ui-quadrant-B9GkwB5l.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DhODDM5V.js → vue-ui-quadrant-DgQqkCxk.js} +13 -13
- package/dist/{vue-ui-quick-chart-BsQAMw9M.cjs → vue-ui-quick-chart-CMQFeKWK.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DpeGH277.js → vue-ui-quick-chart-DcpVDq8t.js} +10 -10
- package/dist/{vue-ui-radar-D-qttZKw.cjs → vue-ui-radar-CnqMJrEU.cjs} +1 -1
- package/dist/{vue-ui-radar-CWkrni4Y.js → vue-ui-radar-cwhwGVar.js} +13 -13
- package/dist/{vue-ui-rating-DB4nQsuM.js → vue-ui-rating-BmtemUqF.js} +2 -2
- package/dist/{vue-ui-rating-CY25IY75.cjs → vue-ui-rating-Bub3mYba.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-B_PxY9ZN.js → vue-ui-relation-circle-BerdR_4-.js} +8 -8
- package/dist/{vue-ui-relation-circle-KDFaFqqu.cjs → vue-ui-relation-circle-D0py_PRH.cjs} +1 -1
- package/dist/{vue-ui-rings-D5-sTr38.js → vue-ui-rings-BSm_KC-r.js} +13 -13
- package/dist/{vue-ui-rings-C1Upd5ja.cjs → vue-ui-rings-zQ-4JnNS.cjs} +1 -1
- package/dist/{vue-ui-scatter-C8cn3MR5.js → vue-ui-scatter-D0dIO0lS.js} +13 -13
- package/dist/{vue-ui-scatter-B-aqlIcn.cjs → vue-ui-scatter-DXAm7w2U.cjs} +1 -1
- package/dist/{vue-ui-screenshot-D9EV_KXZ.cjs → vue-ui-screenshot-BdJzHzn9.cjs} +1 -1
- package/dist/{vue-ui-screenshot-kQRZJHLO.js → vue-ui-screenshot-_KsufqYT.js} +1 -1
- package/dist/{vue-ui-skeleton-DyJu1ibj.cjs → vue-ui-skeleton-CNtHe3B_.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DIrE1OTF.js → vue-ui-skeleton-CjC_RR5C.js} +3 -3
- package/dist/{vue-ui-smiley-B7dNRQyO.cjs → vue-ui-smiley-C-dKXMYz.cjs} +1 -1
- package/dist/{vue-ui-smiley-DVjsjIa4.js → vue-ui-smiley-CdYhD3n7.js} +2 -2
- package/dist/{vue-ui-spark-trend-DsUy3aw-.js → vue-ui-spark-trend-DT0q7zha.js} +5 -5
- package/dist/{vue-ui-spark-trend-DRtaXADG.cjs → vue-ui-spark-trend-ZSffEbvM.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-x0F1llCZ.cjs → vue-ui-sparkbar-Ca8RoM26.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Dm8xksUj.js → vue-ui-sparkbar-hm3wy78R.js} +4 -4
- package/dist/{vue-ui-sparkgauge-_gF53YgV.js → vue-ui-sparkgauge-Dsy3BtE1.js} +4 -4
- package/dist/{vue-ui-sparkgauge-B4DRMVOW.cjs → vue-ui-sparkgauge-Wzb-9Nec.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CIMJUDlb.cjs → vue-ui-sparkhistogram-CcyyqdgC.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CD_0ihS9.js → vue-ui-sparkhistogram-DIccfqcP.js} +5 -5
- package/dist/{vue-ui-sparkline-DzOL1IDW.cjs → vue-ui-sparkline-CJfM9R-P.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Cs0h6tKI.js → vue-ui-sparkline-edCpjS99.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BBz1lDg0.cjs → vue-ui-sparkstackbar-BCkwH7OH.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Dhula5ka.js → vue-ui-sparkstackbar-UzWOXV8T.js} +5 -5
- package/dist/{vue-ui-stackbar-BuUtwfyC.cjs → vue-ui-stackbar-DLw1lhqT.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DanAQnBd.js → vue-ui-stackbar-DtxiLdkG.js} +14 -14
- package/dist/{vue-ui-strip-plot-95uUJ2fc.cjs → vue-ui-strip-plot-Bot6lWVZ.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DIlGTBzG.js → vue-ui-strip-plot-DZBPceJC.js} +12 -12
- package/dist/{vue-ui-table-CDS7xlZS.cjs → vue-ui-table-CyT0sQtg.cjs} +1 -1
- package/dist/{vue-ui-table-FKZF6cxI.js → vue-ui-table-DR-vUv2U.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BcGX_vpU.js → vue-ui-table-heatmap-D4JBAEBg.js} +4 -4
- package/dist/{vue-ui-table-heatmap-qVmiG576.cjs → vue-ui-table-heatmap-IsfxseMB.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CVY9EZ7Q.js → vue-ui-table-sparkline-ClYyMljO.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnVFXbUB.cjs → vue-ui-table-sparkline-Do9vWT7v.cjs} +1 -1
- package/dist/{vue-ui-thermometer-tcTgQiAu.js → vue-ui-thermometer-CY0Gi2uj.js} +7 -7
- package/dist/{vue-ui-thermometer-BTer1qaq.cjs → vue-ui-thermometer-CkN0NXuR.cjs} +1 -1
- package/dist/{vue-ui-timer-CmLGKRcK.cjs → vue-ui-timer-Zx3zQyAq.cjs} +1 -1
- package/dist/{vue-ui-timer-DO_VKZHm.js → vue-ui-timer-t0fSn-_9.js} +6 -6
- package/dist/{vue-ui-tiremarks-BPxAgMQx.cjs → vue-ui-tiremarks-0JbzmUh6.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BKnAiR_H.js → vue-ui-tiremarks-5YPN_NoO.js} +7 -7
- package/dist/{vue-ui-treemap-BnKYnm8A.cjs → vue-ui-treemap-B4BUhmni.cjs} +1 -1
- package/dist/{vue-ui-treemap-oE2QDc_9.js → vue-ui-treemap-kwbjdy0P.js} +12 -12
- package/dist/{vue-ui-vertical-bar-CHUZAnfv.cjs → vue-ui-vertical-bar-CCNvuAMI.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-BfFnXSO5.js → vue-ui-vertical-bar-DRuH5f-B.js} +13 -13
- package/dist/{vue-ui-waffle-YwQAGMlZ.js → vue-ui-waffle-B9zlDgeL.js} +13 -13
- package/dist/{vue-ui-waffle-DxL_bhhX.cjs → vue-ui-waffle-CqVwTFrC.cjs} +1 -1
- package/dist/{vue-ui-wheel-gZQIZUx1.js → vue-ui-wheel-CAS9hnki.js} +8 -8
- package/dist/{vue-ui-wheel-CbEf5uhL.cjs → vue-ui-wheel-CGWDNbH-.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CXpfOcDf.js → vue-ui-word-cloud-BKRBPyWR.js} +11 -11
- package/dist/{vue-ui-word-cloud-Ddmhs5i-.cjs → vue-ui-word-cloud-CxbTioTG.cjs} +1 -1
- package/dist/{vue-ui-xy-BFdih9uG.cjs → vue-ui-xy-DRn-1RsC.cjs} +2 -2
- package/dist/{vue-ui-xy-BHGNHgRk.js → vue-ui-xy-D_OI_ry8.js} +15 -15
- package/dist/{vue-ui-xy-canvas-BFZjHXBj.js → vue-ui-xy-canvas-DXDh8Vzd.js} +13 -13
- package/dist/{vue-ui-xy-canvas-hM1oa-dn.cjs → vue-ui-xy-canvas-DrjjMaQM.cjs} +1 -1
- package/package.json +2 -7
- package/dist/PenAndPaper-DSEAEpTs.cjs +0 -1
- package/dist/index-Dwoe0gcF.cjs +0 -15
- package/dist/index-Fl-W8YeZ.js +0 -3971
- package/dist/useResponsive-YQYQrAZ_.cjs +0 -1
- package/dist/vue-ui-circle-pack-DByIHOMA.js +0 -670
- package/dist/vue-ui-circle-pack-DnwKX38S.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CmhvuQro.cjs"),ee=require("./usePrinter-DhZH4pcR.cjs"),ge=require("./vue-ui-skeleton-DyJu1ibj.cjs"),ke=require("./BaseIcon-DMhDupLt.cjs"),_e=require("./vue-ui-accordion-C3Ljak65.cjs"),te=require("./useNestedProp-CnH-XcZU.cjs"),xe=require("./PackageVersion-Vv7wNIAl.cjs"),Be=require("./PenAndPaper-DSEAEpTs.cjs"),Ee=require("./useUserOptionState-BgepsfED.cjs"),Ne=require("./useChartAccessibility-Cm7nkzTG.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ce=["id"],we={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ze=["xmlns","viewBox"],Ve=["width","height"],$e={key:1},Te=["fill","font-weight","font-size","x","y"],Fe=["fill","font-weight","font-size","x","y"],Le=["id"],De=["stop-color"],Oe=["stop-color"],Pe=["id"],Ie=["stop-color"],Me=["stop-color"],Re=["id"],Ae=["stop-color"],Xe=["stop-color"],je=["stop-color"],Ge=["id"],Ue=["stop-color"],qe=["stop-color"],Ye=["stop-color"],He=["id"],We=["stop-color"],Ke=["stop-color"],Je=["stop-color"],Qe={key:2},Ze=["x","y","font-size","font-weight","fill"],et=["x","y","font-size","font-weight","fill"],tt=["d","stroke"],lt=["cx","cy","r","fill"],at=["cx","cy","r","fill","stroke","stroke-width","onClick"],ot={key:3},nt=["x","y","font-size","fill","onClick"],rt={key:0},st=["x","y","fill","font-size","font-weight"],ut=["x","y","height","width","fill","rx","onClick"],ct=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],it={key:4},dt=["x","y","fill","font-size","onClick"],yt=["d","stroke"],vt=["fill","cx","cy","r","onClick"],ht={key:5},ft=["x","y","font-size","font-weight","fill"],pt=["x1","x2","y1","y2","stroke","stroke-width"],mt=["y","height","width"],bt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},gt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},kt={viewBox:"0 0 20 20",height:"16",width:"16"},_t=["fill"],xt={key:7},Bt=["y","height","width"],Et={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},Nt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},St={viewBox:"0 0 20 20",height:"16",width:"16"},Ct=["fill"],wt=["cx","cy","fill"],zt=["d","stroke"],Vt=["cx","cy","fill"],$t=["d","stroke"],Tt=["cx","cy","fill"],Ft=["cx","cy","fill"],Lt=["x","y","fill","font-size","font-weight"],Dt=["x","y","fill","font-size","font-weight"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","text-anchor","y","fill","font-size"],It=["x","text-anchor","y","fill","font-size"],Mt=["x","text-anchor","y","fill","font-size"],Rt=["x","text-anchor","y","fill","font-size"],At=["x","y","font-size","fill"],Xt=["x","y","font-size","fill"],jt=["x","y","font-size","fill"],Gt={key:4,class:"vue-data-ui-watermark"},Ut={key:6,ref:"source",dir:"auto"},qt={style:{"padding-top":"36px",position:"relative"}},Yt={class:"vue-ui-data-table"},Ht={key:0},Wt=["data-cell"],Kt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Jt={key:0},Qt={key:1},Zt=["data-cell"],el={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},tl={key:0},ll={key:1},al=["data-cell"],ol={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},nl={key:0},rl={key:1},sl=["data-cell"],ul={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},cl={key:0},il={key:1},dl=["data-cell"],yl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},vl={key:0},hl={key:1},fl=["data-cell"],pl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ml={key:0},bl={key:1},gl=["data-cell"],kl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},_l={key:0},xl={key:1},Bl=["data-cell"],El={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nl=["data-cell"],Sl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Cl=["data-cell"],wl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},zl=["data-cell"],Vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},$l=["data-cell"],Tl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Fl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(le,{expose:ae,emit:oe}){e.useCssVars(a=>({"4c4794f5":a.tdo}));const{vue_ui_chestnut:ne}=o.useConfig(),k=le,z=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),I=e.ref(null),re=e.ref(null),M=e.ref(0),t=e.computed({get:()=>j(),set:a=>a}),{userOptionsVisible:T,setUserOptionsVisibility:R,keepUserOptionState:A}=Ee.useUserOptionState({config:t.value}),{svgRef:X}=Ne.useChartAccessibility({config:t.value.style.chart.layout.title});function j(){const a=te.useNestedProp({userConfig:k.config,defaultConfig:ne});return a.theme?{...te.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=j(),T.value=!t.value.userOptions.showOnChartHover,S.value.showTable=t.value.table.show,J()},{deep:!0});const{isPrinting:G,isImaging:U,generatePdf:q,generateImage:Y}=ee.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),se=e.computed(()=>t.value.userOptions.show),F=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),S=e.ref({showTable:t.value.table.show}),L=e.ref(null),H=e.ref(!1),ue=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),p=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>z.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||F.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||F.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||F.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function ce(){return m.value}const C=oe,ie=e.computed(()=>m.value.flatMap(a=>a.branches).length),de=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ye=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),W=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=p.value.height/m.value.length/2,n=a.total/de.value*(l>64?64:l);return{...a,x:p.value.seedX,y:p.value.top+p.value.height/m.value.length*(s+1)-(p.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),ve=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),he=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>he.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+p.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:W.value,x2:384*a.value/ye.value*ve.value+W.value})));function D(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function f(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function fe(a){f(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),C("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,C("selectNut",null)}function O(a){v.value&&v.value.id===a.id?(v.value=null,f(),C("selectBranch",null)):(f(),v.value=a,C("selectBranch",a))}function K(a){b.value&&b.value.id===a.id?(f(),C("selectRoot",null)):(f(),b.value=a,C("selectRoot",a))}function pe(){return p.value.bottom-(u.value.y1+180)<0?0:p.value.bottom}function w(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function me(){const a=new ResizeObserver(s=>{s.forEach(l=>{H.value=l.contentRect.width<ue.value})});L.value&&a.observe(L.value)}e.onMounted(()=>{J()});function J(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ie.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,me()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,Dl)=>y.table)));return{head:a,body:s}});function Q(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function be(a){V.value=a,M.value+=1}function Z(){S.value.showTable=!S.value.showTable}const $=e.ref(!1);function P(){$.value=!$.value}return ae({getData:ce,generatePdf:q,generateCsv:Q,generateImage:Y,toggleTable:Z,toggleAnnotator:P}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:I,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,svgRef:e.unref(X),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:P},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",we,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(A)||e.unref(T))?(e.openBlock(),e.createBlock(ee.UserOptions,{ref_key:"details",ref:re,key:`user_options_${M.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(U),isPrinting:e.unref(G),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:I.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:be,onGeneratePdf:e.unref(q),onGenerateCsv:Q,onGenerateImage:e.unref(Y),onToggleTable:Z,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(A)?e.unref(T)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),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:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&z.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:X,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(xe._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ve)):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",$e,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:f},e.toDisplayString(t.value.style.chart.layout.title.text),9,Te)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:f},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,Fe)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Oe)],8,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,Me)],8,Pe))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ae),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,je)],8,Re),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ue),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ye)],8,Ge),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,We),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,Ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,Je)],8,He)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",Qe,[e.createElementVNode("text",{x:p.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:f},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ze),e.createElementVNode("text",{x:p.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:f},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,et)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-BCAY_TBF.cjs"),ee=require("./usePrinter-CMRlY9rc.cjs"),ge=require("./vue-ui-skeleton-CNtHe3B_.cjs"),ke=require("./BaseIcon-CMg_B1n7.cjs"),_e=require("./vue-ui-accordion-D86VhQnK.cjs"),te=require("./useNestedProp-Ces_ZEmq.cjs"),xe=require("./PackageVersion-D9dPTMdO.cjs"),Be=require("./PenAndPaper-Cpwa77pt.cjs"),Ee=require("./useUserOptionState-BgepsfED.cjs"),Ne=require("./useChartAccessibility-Cm7nkzTG.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ce=["id"],we={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},ze=["xmlns","viewBox"],Ve=["width","height"],$e={key:1},Te=["fill","font-weight","font-size","x","y"],Fe=["fill","font-weight","font-size","x","y"],Le=["id"],De=["stop-color"],Oe=["stop-color"],Pe=["id"],Ie=["stop-color"],Me=["stop-color"],Re=["id"],Ae=["stop-color"],Xe=["stop-color"],je=["stop-color"],Ge=["id"],Ue=["stop-color"],qe=["stop-color"],Ye=["stop-color"],He=["id"],We=["stop-color"],Ke=["stop-color"],Je=["stop-color"],Qe={key:2},Ze=["x","y","font-size","font-weight","fill"],et=["x","y","font-size","font-weight","fill"],tt=["d","stroke"],lt=["cx","cy","r","fill"],at=["cx","cy","r","fill","stroke","stroke-width","onClick"],ot={key:3},nt=["x","y","font-size","fill","onClick"],rt={key:0},st=["x","y","fill","font-size","font-weight"],ut=["x","y","height","width","fill","rx","onClick"],ct=["x","y","height","width","fill","rx","stroke","stroke-width","onClick"],it={key:4},dt=["x","y","fill","font-size","onClick"],yt=["d","stroke"],vt=["fill","cx","cy","r","onClick"],ht={key:5},ft=["x","y","font-size","font-weight","fill"],pt=["x1","x2","y1","y2","stroke","stroke-width"],mt=["y","height","width"],bt={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},gt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},kt={viewBox:"0 0 20 20",height:"16",width:"16"},_t=["fill"],xt={key:7},Bt=["y","height","width"],Et={style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center","flex-direction":"column"}},Nt={style:{display:"flex","align-items":"center","justify-content":"center",gap:"12px","flex-wrap":"wrap","flex-direction":"row"}},St={viewBox:"0 0 20 20",height:"16",width:"16"},Ct=["fill"],wt=["cx","cy","fill"],zt=["d","stroke"],Vt=["cx","cy","fill"],$t=["d","stroke"],Tt=["cx","cy","fill"],Ft=["cx","cy","fill"],Lt=["x","y","fill","font-size","font-weight"],Dt=["x","y","fill","font-size","font-weight"],Ot=["x","text-anchor","y","fill","font-size"],Pt=["x","text-anchor","y","fill","font-size"],It=["x","text-anchor","y","fill","font-size"],Mt=["x","text-anchor","y","fill","font-size"],Rt=["x","text-anchor","y","fill","font-size"],At=["x","y","font-size","fill"],Xt=["x","y","font-size","fill"],jt=["x","y","font-size","fill"],Gt={key:4,class:"vue-data-ui-watermark"},Ut={key:6,ref:"source",dir:"auto"},qt={style:{"padding-top":"36px",position:"relative"}},Yt={class:"vue-ui-data-table"},Ht={key:0},Wt=["data-cell"],Kt={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Jt={key:0},Qt={key:1},Zt=["data-cell"],el={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},tl={key:0},ll={key:1},al=["data-cell"],ol={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},nl={key:0},rl={key:1},sl=["data-cell"],ul={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},cl={key:0},il={key:1},dl=["data-cell"],yl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},vl={key:0},hl={key:1},fl=["data-cell"],pl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},ml={key:0},bl={key:1},gl=["data-cell"],kl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},_l={key:0},xl={key:1},Bl=["data-cell"],El={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Nl=["data-cell"],Sl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Cl=["data-cell"],wl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},zl=["data-cell"],Vl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},$l=["data-cell"],Tl={style:{display:"flex","align-items":"center",gap:"5px","justify-content":"flex-end",width:"100%","padding-right":"3px"}},Fl={__name:"vue-ui-chestnut",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectRoot","selectBranch","selectNut"],setup(le,{expose:ae,emit:oe}){e.useCssVars(a=>({"4c4794f5":a.tdo}));const{vue_ui_chestnut:ne}=o.useConfig(),k=le,z=e.computed(()=>!!k.dataset&&k.dataset.length),h=e.ref(o.createUid()),I=e.ref(null),re=e.ref(null),M=e.ref(0),t=e.computed({get:()=>j(),set:a=>a}),{userOptionsVisible:T,setUserOptionsVisibility:R,keepUserOptionState:A}=Ee.useUserOptionState({config:t.value}),{svgRef:X}=Ne.useChartAccessibility({config:t.value.style.chart.layout.title});function j(){const a=te.useNestedProp({userConfig:k.config,defaultConfig:ne});return a.theme?{...te.useNestedProp({userConfig:o.themes.vue_ui_chestnut[a.theme]||k.config,defaultConfig:a}),customPalette:o.themePalettes[a.theme]||o.palette}:a}e.watch(()=>k.config,a=>{t.value=j(),T.value=!t.value.userOptions.showOnChartHover,S.value.showTable=t.value.table.show,J()},{deep:!0});const{isPrinting:G,isImaging:U,generatePdf:q,generateImage:Y}=ee.usePrinter({elementId:`vue-ui-chestnut_${h.value}`,fileName:t.value.style.chart.layout.title.text||"vue-ui-chestnut"}),se=e.computed(()=>t.value.userOptions.show),F=e.computed(()=>o.convertCustomPalette(t.value.customPalette)),S=e.ref({showTable:t.value.table.show}),L=e.ref(null),H=e.ref(!1),ue=e.computed(()=>t.value.table.responsiveBreakpoint),r=e.ref({gap:6,padding:{top:102,left:12,right:12,bottom:96},width:1024,height:0,branchSize:32,branchStart:128}),p=e.computed(()=>({left:r.value.padding.left,top:r.value.padding.top,right:r.value.width-r.value.padding.right,bottom:r.value.height-r.value.padding.bottom,width:r.value.width-(r.value.padding.left+r.value.padding.right),height:r.value.height-(r.value.padding.top+r.value.padding.bottom),seedX:r.value.padding.left+64})),_=e.computed(()=>z.value?k.dataset.flatMap(a=>(a.branches||[]).map(s=>s.value||0)).reduce((a,s)=>a+s,0):0),m=e.computed(()=>(k.dataset.forEach((a,s)=>{o.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","branches"]}).forEach(l=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:l,index:s})}),a.branches&&a.branches.forEach((l,n)=>{o.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","value"]}).forEach(d=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:d,index:`${s} - ${n}`})}),l.breakdown&&l.breakdown.forEach((d,i)=>{o.getMissingDatasetAttributes({datasetObject:d,requiredAttributes:["name","value"]}).forEach(y=>{o.error({componentName:"VueUiChestnut",type:"datasetSerieAttribute",property:y,index:`${s} - ${n} - ${i}`})})})})}),k.dataset.map((a,s)=>{const l=(a.branches||[]).map(n=>n.value||0).reduce((n,d)=>n+d,0);return{...a,color:o.convertColorToHex(a.color)||F.value[s]||o.palette[s]||o.palette[s%o.palette.length],id:a.id||`root_${s}_${h.value}`,type:"root",total:l,rootIndex:s,branches:(a.branches||[]).map((n,d)=>({...n,rootName:a.name,rootIndex:s,color:o.convertColorToHex(a.color)||F.value[s]||o.palette[s]||o.palette[s%o.palette.length],value:n.value>=0?n.value:0,id:n.id||`branch_${s}_${d}_${h.value}`,proportionToRoot:n.value/l,type:"branch",breakdown:(n.breakdown||[]).map((i,y)=>({table:{rootName:a.name,rootValue:l,rootToTotal:l/_.value,branchName:n.name,branchValue:n.value,branchToTotal:n.value/_.value,branchToRoot:n.value/l,nutName:i.name,nutValue:i.value,nutToTotal:i.value/_.value,nutToRoot:i.value/l,nutToBranch:i.value/n.value},...i,type:"nut",branchName:n.name,rootName:a.name,branchTotal:n.value>=0?n.value:0,proportionToBranch:i.value/n.value,proportionToRoot:i.value/l,proportionToTree:i.value/_.value,rootIndex:s,id:i.id||`nut_${s}_${d}_${y}_${h.value}`,color:o.convertColorToHex(i.color)||F.value[y]||o.palette[y]||o.palette[y%o.palette.length],value:i.value>=0?i.value:0}))}))}})));function ce(){return m.value}const C=oe,ie=e.computed(()=>m.value.flatMap(a=>a.branches).length),de=e.computed(()=>Math.max(...m.value.map(a=>a.branches.map(s=>s.value).reduce((s,l)=>s+l,0)))),ye=e.computed(()=>Math.max(...m.value.flatMap(a=>a.branches.map(s=>s.value)))),W=e.computed(()=>256+r.value.padding.left),B=e.computed(()=>m.value.sort((a,s)=>s.total-a.total).map((a,s)=>{const l=p.value.height/m.value.length/2,n=a.total/de.value*(l>64?64:l);return{...a,x:p.value.seedX,y:p.value.top+p.value.height/m.value.length*(s+1)-(p.value.height/m.value.length/2+r.value.gap/2),r:n<r.value.branchSize/2?r.value.branchSize/2:n}})),ve=e.computed(()=>t.value.style.chart.layout.branches.widthRatio<=0?.1:t.value.style.chart.layout.branches.widthRatio>1.8?1.8:t.value.style.chart.layout.branches.widthRatio),he=e.computed(()=>B.value.flatMap(a=>a.branches)),E=e.computed(()=>he.value.sort((a,s)=>s.value-a.value).map((a,s)=>({...a,y1:s*r.value.branchSize+p.value.top+s*r.value.gap,y2:s*r.value.branchSize+r.value.branchSize,x1:W.value,x2:384*a.value/ye.value*ve.value+W.value})));function D(a){const s=B.value.find(l=>l.rootIndex===a.rootIndex);return{x:s.x,y:s.y,r:s.r}}const u=e.ref(null),x=e.ref(null),v=e.ref(null),b=e.ref(null);function f(){u.value=null,v.value=null,b.value=null}function g(a){return b.value?b.value===null?!0:a.type==="root"?a.id===b.value.id:a.rootIndex===b.value.rootIndex:u.value===null&&v.value===null?!0:a.type==="nut"?u.value.id===a.id:a.type==="branch"?v.value.id===a.id:a.type==="root"?v.value&&v.value.rootIndex===a.rootIndex||u.value&&u.value.rootIndex===a.rootIndex:!1}function fe(a){f(),e.nextTick(()=>{u.value=a,v.value=a,x.value=o.makeDonut({series:a.breakdown,base:1},a.x2+24+t.value.style.chart.layout.nuts.offsetX,a.y1+r.value.branchSize/2,80,80),C("selectNut",a.breakdown)})}function N(){u.value=null,x.value=null,C("selectNut",null)}function O(a){v.value&&v.value.id===a.id?(v.value=null,f(),C("selectBranch",null)):(f(),v.value=a,C("selectBranch",a))}function K(a){b.value&&b.value.id===a.id?(f(),C("selectRoot",null)):(f(),b.value=a,C("selectRoot",a))}function pe(){return p.value.bottom-(u.value.y1+180)<0?0:p.value.bottom}function w(a){return a.proportion*100>t.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue}function me(){const a=new ResizeObserver(s=>{s.forEach(l=>{H.value=l.contentRect.width<ue.value})});L.value&&a.observe(L.value)}e.onMounted(()=>{J()});function J(){o.objectIsEmpty(k.dataset)&&o.error({componentName:"VueUiChestnut",type:"dataset"});const a=ie.value*(r.value.branchSize+r.value.gap)+r.value.padding.top+r.value.padding.bottom;r.value.height=a,me()}const c=e.computed(()=>{const a=[t.value.table.th.translations.rootName,t.value.table.th.translations.rootValue,t.value.table.th.translations.rootToTotal,t.value.table.th.translations.branchName,t.value.table.th.translations.branchValue,t.value.table.th.translations.branchToRoot,t.value.table.th.translations.branchToTotal,t.value.table.th.translations.nutName,t.value.table.th.translations.nutValue,t.value.table.th.translations.nutToBranch,t.value.table.th.translations.nutToRoot,t.value.table.th.translations.nutToTotal],s=m.value.flatMap((l,n)=>l.branches.flatMap((d,i)=>d.breakdown.flatMap((y,Dl)=>y.table)));return{head:a,body:s}});function Q(){e.nextTick(()=>{const a=[[t.value.style.chart.layout.title.text],[t.value.style.chart.layout.title.subtitle.text],[""],["Grand total",_.value],[""]],s=c.value.head,l=c.value.body.map((i,y)=>[c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootName,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootValue,c.value.body[y-1]&&c.value.body[y-1].rootName===i.rootName?"":i.rootToTotal,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchName,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchValue,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToRoot,c.value.body[y-1]&&c.value.body[y-1].branchName===i.branchName?"":i.branchToTotal,i.nutName,i.nutValue,i.nutToBranch,i.nutToRoot,i.nutToTotal]),n=a.concat([s]).concat(l),d=o.createCsvContent(n);o.downloadCsv({csvContent:d,title:t.value.style.chart.layout.title.text||"vue-ui-chestnut"})})}const V=e.ref(!1);function be(a){V.value=a,M.value+=1}function Z(){S.value.showTable=!S.value.showTable}const $=e.ref(!1);function P(){$.value=!$.value}return ae({getData:ce,generatePdf:q,generateCsv:Q,generateImage:Y,toggleTable:Z,toggleAnnotator:P}),(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-chestnut ${V.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"chestnutChart",ref:I,id:`vue-ui-chestnut_${h.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),onMouseenter:s[2]||(s[2]=()=>e.unref(R)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(R)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,svgRef:e.unref(X),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:$.value,onClose:P},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",we,null,512)):e.createCommentVNode("",!0),t.value.userOptions.show&&z.value&&(e.unref(A)||e.unref(T))?(e.openBlock(),e.createBlock(ee.UserOptions,{ref_key:"details",ref:re,key:`user_options_${M.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(U),isPrinting:e.unref(G),uid:h.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:I.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:$.value,onToggleFullscreen:be,onGeneratePdf:e.unref(q),onGenerateCsv:Q,onGenerateImage:e.unref(Y),onToggleTable:Z,onToggleAnnotator:P,style:e.normalizeStyle({visibility:e.unref(A)?e.unref(T)?"visible":"hidden":"visible"})},e.createSlots({_:2},[a.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:n})=>[e.renderSlot(a.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:n})),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:n})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,a.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(a.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),r.value.height>0&&z.value?(e.openBlock(),e.createElementBlock("svg",{key:3,ref_key:"svgRef",ref:X,xmlns:e.unref(o.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${r.value.width<=0?10:r.value.width} ${r.value.height<=0?10:r.value.height}`,style:e.normalizeStyle(`overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(xe._sfc_main),a.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:r.value.width<=0?10:r.value.width,height:r.value.height<=0?10:r.value.height,style:{pointerEvents:"none"}},[e.renderSlot(a.$slots,"chart-background",{},void 0,!0)],8,Ve)):e.createCommentVNode("",!0),u.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("g",$e,[t.value.style.chart.layout.title.text?(e.openBlock(),e.createElementBlock("text",{key:0,"text-anchor":"middle",fill:t.value.style.chart.layout.title.color,"font-weight":t.value.style.chart.layout.title.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.fontSize,x:r.value.width/2,y:12+t.value.style.chart.layout.title.fontSize+t.value.style.chart.layout.title.offsetY,onClick:f},e.toDisplayString(t.value.style.chart.layout.title.text),9,Te)):e.createCommentVNode("",!0),t.value.style.chart.layout.title.subtitle.text?(e.openBlock(),e.createElementBlock("text",{key:1,"text-anchor":"middle",fill:t.value.style.chart.layout.title.subtitle.color,"font-weight":t.value.style.chart.layout.title.subtitle.bold?"bold":"normal","font-size":t.value.style.chart.layout.title.subtitle.fontSize,x:r.value.width/2,y:48+t.value.style.chart.layout.title.subtitle.fontSize+t.value.style.chart.layout.title.subtitle.offsetY,onClick:f},e.toDisplayString(t.value.style.chart.layout.title.subtitle.text),9,Fe)):e.createCommentVNode("",!0)])),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`root_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.05),100-t.value.style.chart.layout.roots.gradientIntensity)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Oe)],8,Le))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,l=>(e.openBlock(),e.createElementBlock("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"0%",id:`branch_gradient_${h.value}_${l.rootIndex}`},[e.createElementVNode("stop",{offset:"0%","stop-color":l.color},null,8,Ie),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(e.unref(o.shiftHue)(l.color,.02),100-t.value.style.chart.layout.branches.gradientIntensity)},null,8,Me)],8,Pe))),256)),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nutpick_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ae),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.selected.gradientIntensity)},null,8,Xe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,je)],8,Re),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ue),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)("#FFFFFF",t.value.style.chart.layout.nuts.gradientIntensity)},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)("#FFFFFF",0)},null,8,Ye)],8,Ge),e.createElementVNode("radialGradient",{cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%",id:`nut_underlayer_${h.value}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,100)},null,8,We),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,60)},null,8,Ke),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(o.setOpacity)(t.value.style.chart.backgroundColor,0)},null,8,Je)],8,He)]),t.value.style.chart.layout.grandTotal.show?(e.openBlock(),e.createElementBlock("g",Qe,[e.createElementVNode("text",{x:p.value.seedX,y:32+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:f},e.toDisplayString(t.value.style.chart.layout.grandTotal.text),9,Ze),e.createElementVNode("text",{x:p.value.seedX,y:38+t.value.style.chart.layout.grandTotal.fontSize+t.value.style.chart.layout.grandTotal.offsetY,"font-size":t.value.style.chart.layout.grandTotal.fontSize,"font-weight":t.value.style.chart.layout.grandTotal.bold?"bold":"normal",fill:t.value.style.chart.layout.grandTotal.color,"text-anchor":"middle",onClick:f},e.toDisplayString(e.unref(o.applyDataLabel)(t.value.style.chart.layout.grandTotal.formatter,_.value,e.unref(o.dataLabel)({p:t.value.style.chart.layout.grandTotal.prefix,v:_.value,s:t.value.style.chart.layout.grandTotal.suffix,r:t.value.style.chart.layout.grandTotal.roundingValue}))),9,et)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,l=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.branchSize,(n,d)=>(e.openBlock(),e.createElementBlock("path",{d:`M
|
|
2
2
|
${l.x1},${l.y1+d}
|
|
3
3
|
C${l.x1-20},${l.y1+d}
|
|
4
4
|
${l.x1-80},${l.y1+d}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useCssVars as He, computed as m, ref as T, watch as We, onMounted as Ke, createElementBlock as o, openBlock as a, unref as n, normalizeStyle as h, normalizeClass as k, createBlock as K, createCommentVNode as f, renderSlot as S, createSlots as Je, withCtx as B, normalizeProps as J, guardReactiveProps as Q, createVNode as Ce, createElementVNode as s, toDisplayString as c, Fragment as g, renderList as _, createTextVNode as Z, withKeys as Qe, nextTick as Te } from "vue";
|
|
2
|
-
import { u as Ze, c as et, t as tt, p as P, a as lt, b as at, g as ne, e as ee, d as re, o as ot, X as st, s as F, w as ze, i as G, f as z, G as Ne, m as Se, j as ut, k as H, n as V, q as nt, r as rt } from "./index-
|
|
3
|
-
import { u as it, U as ct } from "./usePrinter-
|
|
4
|
-
import dt from "./vue-ui-skeleton-
|
|
5
|
-
import vt from "./BaseIcon-
|
|
6
|
-
import yt from "./vue-ui-accordion-
|
|
7
|
-
import { u as Fe } from "./useNestedProp-
|
|
8
|
-
import { _ as ht } from "./PackageVersion-
|
|
9
|
-
import { P as ft } from "./PenAndPaper-
|
|
2
|
+
import { u as Ze, c as et, t as tt, p as P, a as lt, b as at, g as ne, e as ee, d as re, o as ot, X as st, s as F, w as ze, i as G, f as z, G as Ne, m as Se, j as ut, k as H, n as V, q as nt, r as rt } from "./index-BVM1Hjat.js";
|
|
3
|
+
import { u as it, U as ct } from "./usePrinter-BuEZ1Mqw.js";
|
|
4
|
+
import dt from "./vue-ui-skeleton-CjC_RR5C.js";
|
|
5
|
+
import vt from "./BaseIcon-sQ0Yl3WG.js";
|
|
6
|
+
import yt from "./vue-ui-accordion-Zeu2qcSI.js";
|
|
7
|
+
import { u as Fe } from "./useNestedProp-B7524T_I.js";
|
|
8
|
+
import { _ as ht } from "./PackageVersion-V-_CbVlt.js";
|
|
9
|
+
import { P as ft } from "./PenAndPaper-Dq-ECAue.js";
|
|
10
10
|
import { u as bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
11
|
import { u as pt } from "./useChartAccessibility-BWojgys7.js";
|
|
12
12
|
import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|