vue-data-ui 2.6.40 → 2.6.42
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-DczKng-K.cjs → Arrow-C6-3JiKs.cjs} +1 -1
- package/dist/{Arrow-CKYmYJHq.js → Arrow-i50QW7Eq.js} +1 -1
- package/dist/{BaseIcon-rw8rKNKS.js → BaseIcon-BYl8WVrn.js} +1 -1
- package/dist/{BaseIcon-Db1HIrAt.cjs → BaseIcon-CGjwy6WD.cjs} +1 -1
- package/dist/{ColorPicker-oA_W-jVk.cjs → ColorPicker-Cpi--TbY.cjs} +1 -1
- package/dist/{ColorPicker-DyZK3Mhl.js → ColorPicker-rv2BDrXO.js} +3 -3
- package/dist/{DataTable-DvwmNjb-.js → DataTable-B_PZ5EQ5.js} +2 -2
- package/dist/{DataTable-Be-eTBzq.cjs → DataTable-Dp7g_Ei4.cjs} +1 -1
- package/dist/{Legend-Be8mrJpb.js → Legend-BB51QBPV.js} +2 -2
- package/dist/{Legend-j3YoAtEf.cjs → Legend-BB6S3gBp.cjs} +1 -1
- package/dist/{PackageVersion-D9Lm1C1X.js → PackageVersion-Cz-oD7U6.js} +1 -1
- package/dist/{PackageVersion-D_gJvbGU.cjs → PackageVersion-Dj3KQ8Ax.cjs} +1 -1
- package/dist/{PenAndPaper-DR58HO_U.js → PenAndPaper-DOTH2X_u.js} +3 -3
- package/dist/{PenAndPaper-DWG9pfri.cjs → PenAndPaper-OCjAJH70.cjs} +1 -1
- package/dist/{Shape-BuwIrUMv.js → Shape-CGBgd_EH.js} +1 -1
- package/dist/{Shape-BF6K6die.cjs → Shape-DCTTj5cs.cjs} +1 -1
- package/dist/{Slicer-bY7XVDi5.cjs → Slicer-BHKFOTCG.cjs} +1 -1
- package/dist/{Slicer-CUm2ijlc.js → Slicer-Dhto2Wym.js} +2 -2
- package/dist/{Title-BP4K_GLE.cjs → Title-BkwZ_rBI.cjs} +1 -1
- package/dist/{Title-D_MGglyN.js → Title-y0r2c8bY.js} +1 -1
- package/dist/{Tooltip-HRgkF8HD.js → Tooltip-CbWEnMUw.js} +1 -1
- package/dist/{Tooltip-KXn1rQhr.cjs → Tooltip-DhhX9jKQ.cjs} +1 -1
- package/dist/{html2canvas.esm-D53btDlk.cjs → html2canvas.esm-BA_v9SIU.cjs} +2 -2
- package/dist/{html2canvas.esm-Dr4iCOK6.js → html2canvas.esm-DgdJBc_o.js} +196 -196
- package/dist/img-BIeSHu0f.js +15 -0
- package/dist/img-D6uvziU0.cjs +1 -0
- package/dist/index-Crz6y51C.cjs +9 -0
- package/dist/{index-BaaDnc4F.js → index-DWsIpwzs.js} +426 -384
- package/dist/{index.es-RWt7DWPC.js → index.es-BloWY6jv.js} +1285 -1285
- package/dist/{index.es-DvaaoatM.cjs → index.es-HygMioe_.cjs} +6 -6
- package/dist/{jspdf.es.min-Rw70uifz.cjs → jspdf.es.min-C518mmma.cjs} +57 -57
- package/dist/{jspdf.es.min-eTA26cmm.js → jspdf.es.min-t_OLULUR.js} +3038 -3038
- package/dist/pdf-BpXLKlRx.cjs +1 -0
- package/dist/{pdf-DVWl3Adn.js → pdf-H8Iw_Wax.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +16 -0
- package/dist/types/vue-data-ui.d.ts +16 -0
- package/dist/{useNestedProp-0jJvFRhK.cjs → useNestedProp-B8CE091o.cjs} +1 -1
- package/dist/{useNestedProp-D8vQcOps.js → useNestedProp-Bole8bsm.js} +1 -1
- package/dist/{usePrinter-y4-4tCWT.js → usePrinter-B8LELMkA.js} +125 -122
- package/dist/{usePrinter-C1Rlqzcj.cjs → usePrinter-Cqxw0sR7.cjs} +1 -1
- package/dist/{vue-data-ui-XwZHx4pB.js → vue-data-ui-BHNNKB7k.js} +61 -61
- package/dist/{vue-data-ui-CF4CU0e2.cjs → vue-data-ui-Dizs9qYs.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +8 -8
- package/dist/{vue-ui-3d-bar-BOMvMoht.cjs → vue-ui-3d-bar-D-jstByg.cjs} +8 -8
- package/dist/{vue-ui-3d-bar-BYV4-yM3.js → vue-ui-3d-bar-D1DTuPTJ.js} +55 -54
- package/dist/{vue-ui-accordion-C5C3XQ8f.cjs → vue-ui-accordion-10T9IdE-.cjs} +1 -1
- package/dist/{vue-ui-accordion-CF9kQTXq.js → vue-ui-accordion-WrimcQK1.js} +3 -3
- package/dist/vue-ui-age-pyramid-0uO95dEL.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-8KtaPkny.js → vue-ui-age-pyramid-vSOQxYMZ.js} +13 -12
- package/dist/{vue-ui-annotator-Dq1h3MZY.cjs → vue-ui-annotator-CzqmXArP.cjs} +1 -1
- package/dist/{vue-ui-annotator-KiLEzFIU.js → vue-ui-annotator-DuX2lvw8.js} +3 -3
- package/dist/vue-ui-bullet-hJsuFbdK.cjs +34 -0
- package/dist/{vue-ui-bullet-DBEuIuyH.js → vue-ui-bullet-ni1A0wmE.js} +11 -10
- package/dist/{vue-ui-candlestick-C13zgiOI.js → vue-ui-candlestick-CtFOtkuX.js} +14 -13
- package/dist/{vue-ui-candlestick-VazI0lag.cjs → vue-ui-candlestick-JSYKg3QU.cjs} +2 -2
- package/dist/vue-ui-carousel-table-BJsBlOAu.cjs +1 -0
- package/dist/{vue-ui-carousel-table-CoA9OyeC.js → vue-ui-carousel-table-Bc8SG-3_.js} +7 -6
- package/dist/{vue-ui-chestnut-V0eah1wF.cjs → vue-ui-chestnut-EPeVQvs_.cjs} +2 -2
- package/dist/{vue-ui-chestnut-kAdb7Jpi.js → vue-ui-chestnut-VR_UxBpO.js} +37 -36
- package/dist/{vue-ui-circle-pack-B0CreTV1.js → vue-ui-circle-pack-ECXVp4H4.js} +14 -13
- package/dist/vue-ui-circle-pack-NstojV4G.cjs +1 -0
- package/dist/{vue-ui-cursor-sHfZ-rR3.js → vue-ui-cursor-DRP_eOrg.js} +2 -2
- package/dist/{vue-ui-cursor-oLpASwAy.cjs → vue-ui-cursor-IZ28NWCv.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CB7KJEOi.cjs → vue-ui-dashboard-BVoasjGP.cjs} +1 -1
- package/dist/{vue-ui-dashboard-D2ZQBDuk.js → vue-ui-dashboard-Bg4eu3bx.js} +3 -3
- package/dist/{vue-ui-digits-CiV3V0ry.js → vue-ui-digits-B2qzXXO6.js} +2 -2
- package/dist/{vue-ui-digits-e7EBKTDv.cjs → vue-ui-digits-BKR62-KQ.cjs} +1 -1
- package/dist/{vue-ui-donut-CrjqZ1ji.js → vue-ui-donut-BWbLJHC5.js} +15 -14
- package/dist/vue-ui-donut-Bnc5n4vE.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-D_F3H8Oa.js → vue-ui-donut-evolution-Cpmdg9Na.js} +45 -44
- package/dist/vue-ui-donut-evolution-DyQPblkZ.cjs +1 -0
- package/dist/vue-ui-dumbbell-BjGLUyTB.cjs +9 -0
- package/dist/{vue-ui-dumbbell-POvEBmaZ.js → vue-ui-dumbbell-kOEJnUNy.js} +43 -42
- package/dist/vue-ui-flow-BxqHFumu.cjs +1 -0
- package/dist/{vue-ui-flow-BIfoibps.js → vue-ui-flow-DVvxwHKl.js} +53 -52
- package/dist/vue-ui-funnel-CPGQJsTE.cjs +1 -0
- package/dist/{vue-ui-funnel-DfF9uQGX.js → vue-ui-funnel-Dh9Zio3k.js} +13 -12
- package/dist/{vue-ui-galaxy-D6sV6X5K.js → vue-ui-galaxy-DBrUSx1b.js} +31 -30
- package/dist/vue-ui-galaxy-S4L3B76T.cjs +1 -0
- package/dist/vue-ui-gauge-Cs-ypQfN.cjs +1 -0
- package/dist/{vue-ui-gauge-CvbPkLM2.js → vue-ui-gauge-tZvlIU-S.js} +36 -35
- package/dist/{vue-ui-gizmo-DMsTB4ES.cjs → vue-ui-gizmo-CCSsG2_b.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DUi7lRRe.js → vue-ui-gizmo-Dci5soUk.js} +3 -3
- package/dist/vue-ui-heatmap-DJ7wdUPo.cjs +1 -0
- package/dist/{vue-ui-heatmap-Dg8XejgT.js → vue-ui-heatmap-DOcrZCVa.js} +73 -72
- package/dist/vue-ui-history-plot-Cdbru79N.cjs +1 -0
- package/dist/{vue-ui-history-plot-BSd5bL15.js → vue-ui-history-plot-qtdp25Sg.js} +33 -32
- package/dist/{vue-ui-kpi-BAMbt0nE.js → vue-ui-kpi-DTXy_HfT.js} +3 -3
- package/dist/{vue-ui-kpi-m4GUxnZu.cjs → vue-ui-kpi-vLsne_Vi.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DiBQaEPy.js → vue-ui-mini-loader-B1MEbk8x.js} +2 -2
- package/dist/{vue-ui-mini-loader-BqVkQxqo.cjs → vue-ui-mini-loader-CuWWrNo9.cjs} +1 -1
- package/dist/vue-ui-molecule-BwO_9sCz.js +830 -0
- package/dist/vue-ui-molecule-huq_1VnO.cjs +1 -0
- package/dist/vue-ui-mood-radar-B4k3k2q7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-INGk_0vz.js → vue-ui-mood-radar-CLiiGRyR.js} +14 -13
- package/dist/{vue-ui-nested-donuts-BABAXqTX.js → vue-ui-nested-donuts-CxAFaOns.js} +14 -13
- package/dist/{vue-ui-nested-donuts-COy2x2EF.cjs → vue-ui-nested-donuts-t_TWJrWV.cjs} +2 -2
- package/dist/{vue-ui-onion-B1NZLFqG.cjs → vue-ui-onion-DIQLewG_.cjs} +2 -2
- package/dist/{vue-ui-onion-CJkmj1Nh.js → vue-ui-onion-gweww1Nd.js} +14 -13
- package/dist/{vue-ui-parallel-coordinate-plot-CtpGIUKU.cjs → vue-ui-parallel-coordinate-plot-B48BZpEc.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DTUIv9ah.js → vue-ui-parallel-coordinate-plot-Dos2dhCW.js} +35 -34
- package/dist/vue-ui-quadrant-BYDJYypD.cjs +1 -0
- package/dist/{vue-ui-quadrant-CxNnHjD9.js → vue-ui-quadrant-fXKeOjn-.js} +43 -42
- package/dist/{vue-ui-quick-chart-BaHq9DyU.cjs → vue-ui-quick-chart-BVVVrJyc.cjs} +2 -2
- package/dist/{vue-ui-quick-chart-CJnwyWdJ.js → vue-ui-quick-chart-BojZdQHp.js} +12 -11
- package/dist/vue-ui-radar-C5mA8lGM.cjs +1 -0
- package/dist/{vue-ui-radar-CsvmcspN.js → vue-ui-radar-D4mB15zr.js} +15 -14
- package/dist/{vue-ui-rating-D7kDYc6s.js → vue-ui-rating-BG_CF73W.js} +10 -10
- package/dist/{vue-ui-rating-C-ef3ayK.cjs → vue-ui-rating-P9KkC2lE.cjs} +1 -1
- package/dist/vue-ui-relation-circle-CfNGeO3G.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CY8ZIPpL.js → vue-ui-relation-circle-xYqp0Vj9.js} +13 -12
- package/dist/{vue-ui-rings-DEuJ9t0h.cjs → vue-ui-rings-Ba7xV0bh.cjs} +2 -2
- package/dist/{vue-ui-rings-Cxf9NoYT.js → vue-ui-rings-CTw5Guq9.js} +15 -14
- package/dist/{vue-ui-scatter-CiO-B7Jh.js → vue-ui-scatter-CMhOzUfw.js} +45 -44
- package/dist/vue-ui-scatter-UeHQSMn_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BMuBV3BB.js → vue-ui-screenshot-DkB1LMw4.js} +2 -2
- package/dist/{vue-ui-screenshot--OYVY1cw.cjs → vue-ui-screenshot-Dqiqn0Tt.cjs} +1 -1
- package/dist/{vue-ui-skeleton-CM4wEsYA.cjs → vue-ui-skeleton-BZsFiqo5.cjs} +1 -1
- package/dist/{vue-ui-skeleton-6RiQNJSb.js → vue-ui-skeleton-DDZb9FFJ.js} +57 -57
- package/dist/{vue-ui-smiley-CUDVroKW.js → vue-ui-smiley-BgS5Przf.js} +2 -2
- package/dist/{vue-ui-smiley-DMzfsrun.cjs → vue-ui-smiley-CUmfLZx6.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-fnRrg8Jj.js → vue-ui-spark-trend-NRIFklnc.js} +5 -5
- package/dist/{vue-ui-spark-trend-CTI98gTQ.cjs → vue-ui-spark-trend-w10yXsJZ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-HhcSqSxf.cjs → vue-ui-sparkbar-aigBoTy2.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-msGI6wfO.js → vue-ui-sparkbar-ejr7X72c.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C3obUsLf.js → vue-ui-sparkgauge-BOf5aBj9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DRpIVDwy.cjs → vue-ui-sparkgauge-CkefH_Q3.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DOVSl-l-.js → vue-ui-sparkhistogram-C64SJzGD.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-OtRll6_F.cjs → vue-ui-sparkhistogram-Dtn7OLFq.cjs} +1 -1
- package/dist/{vue-ui-sparkline-Dyd6TPTP.cjs → vue-ui-sparkline-BKGLvlLw.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DkX9L35W.js → vue-ui-sparkline-POZCJkr9.js} +15 -15
- package/dist/{vue-ui-sparkstackbar-Cfn7LKpJ.cjs → vue-ui-sparkstackbar-BxeVbtHZ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Cq7MW3Jk.js → vue-ui-sparkstackbar-C7v5flng.js} +5 -5
- package/dist/{vue-ui-stackbar-BNy2XBmJ.js → vue-ui-stackbar-DUvKoTiT.js} +16 -15
- package/dist/{vue-ui-stackbar-DDbZ-_sO.cjs → vue-ui-stackbar-OS-G2tRA.cjs} +2 -2
- package/dist/{vue-ui-strip-plot-Cq9CqXxr.js → vue-ui-strip-plot-DvQPyqtk.js} +14 -13
- package/dist/vue-ui-strip-plot-IcTvmihM.cjs +1 -0
- package/dist/{vue-ui-table-js0Gdfqi.cjs → vue-ui-table-Bo5KWUa-.cjs} +2 -2
- package/dist/{vue-ui-table-BowZcUb5.js → vue-ui-table-C8zG8WTp.js} +1 -1
- package/dist/vue-ui-table-heatmap-DvRBb7Za.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-BmObY7ZK.js → vue-ui-table-heatmap-N2a-kKWJ.js} +9 -8
- package/dist/{vue-ui-table-sparkline-BKDgWukC.js → vue-ui-table-sparkline-DOYmxyiy.js} +9 -8
- package/dist/vue-ui-table-sparkline-DVhyXHjb.cjs +1 -0
- package/dist/vue-ui-thermometer-CshBwaty.cjs +1 -0
- package/dist/{vue-ui-thermometer-BOF4YYvE.js → vue-ui-thermometer-DsFTU7hy.js} +26 -25
- package/dist/{vue-ui-timer-D6WS06mW.js → vue-ui-timer-BazkEbRz.js} +5 -5
- package/dist/{vue-ui-timer-BVoMdC97.cjs → vue-ui-timer-b4eSKrHr.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BD81LT9b.js → vue-ui-tiremarks-LjeTpuwu.js} +20 -19
- package/dist/vue-ui-tiremarks-tCyisBN-.cjs +1 -0
- package/dist/{vue-ui-treemap-CKETyAhh.js → vue-ui-treemap-CkPWe6se.js} +14 -13
- package/dist/vue-ui-treemap-o4rsDy3h.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-nq74gMNu.cjs → vue-ui-vertical-bar-D3vjiqvq.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-D4RH4OTK.js → vue-ui-vertical-bar-ViFIMQc9.js} +16 -15
- package/dist/vue-ui-waffle-4Wpu2k9B.cjs +1 -0
- package/dist/{vue-ui-waffle-BHP27c7Q.js → vue-ui-waffle-D8uQiqvC.js} +15 -14
- package/dist/{vue-ui-wheel-BpEPqKp-.js → vue-ui-wheel-DgJ52HhJ.js} +10 -9
- package/dist/vue-ui-wheel-Wkp_TkAj.cjs +1 -0
- package/dist/{vue-ui-word-cloud-JH_eHxVf.js → vue-ui-word-cloud-BmX0SdIe.js} +39 -38
- package/dist/vue-ui-word-cloud-CtR6FmsK.cjs +1 -0
- package/dist/vue-ui-xy-B68466-C.cjs +3 -0
- package/dist/{vue-ui-xy-BGOtOn8w.js → vue-ui-xy-CnNugA_v.js} +52 -50
- package/dist/{vue-ui-xy-canvas-DLZANhlq.cjs → vue-ui-xy-canvas-D7IJkVz1.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-DVzzeUmj.js → vue-ui-xy-canvas-DRbFpLFp.js} +134 -133
- package/package.json +2 -2
- package/dist/img-BPGizWpM.cjs +0 -1
- package/dist/img-itj0Vdmx.js +0 -15
- package/dist/index-CBRI5uwl.cjs +0 -9
- package/dist/pdf-DSkQT5iH.cjs +0 -1
- package/dist/vue-ui-age-pyramid-Cm10v1iS.cjs +0 -1
- package/dist/vue-ui-bullet-yeUQYuwe.cjs +0 -34
- package/dist/vue-ui-carousel-table-Dkqumt0q.cjs +0 -1
- package/dist/vue-ui-circle-pack-CnYgigzx.cjs +0 -1
- package/dist/vue-ui-donut-DL51Fl9m.cjs +0 -1
- package/dist/vue-ui-donut-evolution-mCx3HfHW.cjs +0 -1
- package/dist/vue-ui-dumbbell-BIDzrdGX.cjs +0 -9
- package/dist/vue-ui-flow-D8CWkD2E.cjs +0 -1
- package/dist/vue-ui-funnel-DNQKb-CW.cjs +0 -1
- package/dist/vue-ui-galaxy-CXAhWSW2.cjs +0 -1
- package/dist/vue-ui-gauge-CODDDBdK.cjs +0 -1
- package/dist/vue-ui-heatmap-DDo0YoPA.cjs +0 -1
- package/dist/vue-ui-history-plot-Wb0vm3oN.cjs +0 -1
- package/dist/vue-ui-molecule-SgHDaN5w.cjs +0 -1
- package/dist/vue-ui-molecule-kryFDlxX.js +0 -826
- package/dist/vue-ui-mood-radar-p2yhGTuV.cjs +0 -1
- package/dist/vue-ui-quadrant-ZmF2s1_3.cjs +0 -1
- package/dist/vue-ui-radar-BgeUqzpX.cjs +0 -1
- package/dist/vue-ui-relation-circle-DRkjUqb1.cjs +0 -1
- package/dist/vue-ui-scatter-BlBNhmJ4.cjs +0 -1
- package/dist/vue-ui-strip-plot-t6_CVzQF.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BAczw65J.cjs +0 -1
- package/dist/vue-ui-table-sparkline-HE8HXlhe.cjs +0 -1
- package/dist/vue-ui-thermometer-2RqSKVQ8.cjs +0 -1
- package/dist/vue-ui-tiremarks-CiZUYcuP.cjs +0 -1
- package/dist/vue-ui-treemap-BQeFDdrJ.cjs +0 -1
- package/dist/vue-ui-waffle-atvdP-Pb.cjs +0 -1
- package/dist/vue-ui-wheel-Diad5HyF.cjs +0 -1
- package/dist/vue-ui-word-cloud-B_ykSDTr.cjs +0 -1
- package/dist/vue-ui-xy-Csz1n4M-.cjs +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-Crz6y51C.cjs"),oe=require("./Title-BkwZ_rBI.cjs"),Y=require("./usePrinter-Cqxw0sR7.cjs"),re=require("./vue-ui-skeleton-BZsFiqo5.cjs"),z=require("./useNestedProp-B8CE091o.cjs"),le=require("./PackageVersion-Dj3KQ8Ax.cjs"),ae=require("./PenAndPaper-OCjAJH70.cjs"),se=require("./useUserOptionState-BgepsfED.cjs"),ne=require("./useChartAccessibility-Cm7nkzTG.cjs"),ue=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=["id"],ce={key:1,ref:"noTitle",class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},de={key:2,style:"width:100%"},he=["xmlns","viewBox"],ve=["width","height"],me={id:"vueUiPill",clipPathUnits:"objectBoundingBox"},pe=["fill"],ye=["id"],fe=["stop-color"],ge=["stop-color"],ke=["stop-color"],be={"clip-path":"url(#vueUiPill)"},xe=["x","y","height","width"],Ce=["x","y","height","width","fill"],we=["x1","x2","y1","y2","stroke-width","stroke"],_e=["x1","x2","y1","y2","stroke-width","stroke"],Ne=["x1","x2","y1","y2","stroke-width","stroke"],Be=["x1","x2","y1","y2","stroke-width","stroke"],Pe=["x1","x2","y1","y2","stroke-width","stroke"],Ve=["x1","x2","y1","y2","stroke-width","stroke"],Ee=["x1","x2","y1","y2","stroke-width","stroke"],$e=["x1","x2","y1","y2","stroke-width","stroke"],Fe=["x","y","height","width"],Oe=["y","x","fill","font-size","font-weight"],Ie={key:5,class:"vue-data-ui-watermark"},Se={key:6,ref:"source",dir:"auto"},qe={__name:"vue-ui-thermometer",props:{dataset:{type:Object,default(){return{}}},config:{type:Object,default(){return{}}}},setup(m,{expose:L}){e.useCssVars(r=>({"3272b184":X.value,"0885078a":D.value,"09e2f6f7":j.value}));const{vue_ui_thermometer:G}=a.useConfig(),s=m,g=e.computed(()=>!!s.dataset&&Object.keys(s.dataset).length);e.onMounted(()=>{B()});function B(){a.objectIsEmpty(s.dataset)?a.error({componentName:"VueUiThermometer",type:"dataset"}):a.getMissingDatasetAttributes({datasetObject:s.dataset,requiredAttributes:["value","from","to"]}).forEach(r=>{a.error({componentName:"VueUiThermometer",type:"datasetAttribute",property:r})})}const d=e.ref(a.createUid()),P=e.ref(null),V=e.ref(0),E=e.ref(0),t=e.computed({get:()=>I(),set:r=>r}),{userOptionsVisible:k,setUserOptionsVisibility:$,keepUserOptionState:F}=se.useUserOptionState({config:t.value}),{svgRef:O}=ne.useChartAccessibility({config:t.value.style.title});function I(){const r=z.useNestedProp({userConfig:s.config,defaultConfig:G});return r.theme?{...z.useNestedProp({userConfig:a.themes.vue_ui_thermometer[r.theme]||s.config,defaultConfig:r}),customPalette:a.themePalettes[r.theme]||a.palette}:r}e.watch(()=>s.config,r=>{t.value=I(),k.value=!t.value.userOptions.showOnChartHover,B(),E.value+=1},{deep:!0});const{isPrinting:S,isImaging:q,generatePdf:A,generateImage:T}=Y.usePrinter({elementId:`thermometer__${d.value}`,fileName:t.value.style.title.text||"vue-ui-thermometer",options:t.value.userOptions.print}),H=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),p=e.computed(()=>a.convertCustomPalette(t.value.customPalette)),R=e.computed(()=>t.value.style.chart.thermometer.width),c=e.computed(()=>s.dataset.steps||10),i=e.ref({top:t.value.style.chart.padding.top,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right,bottom:t.value.style.chart.padding.bottom});function y(r,n,o){const u=[],_=M(r),N=M(n);for(let v=0;v<o;v++){const Q=b(_.red,N.red,v,o),Z=b(_.green,N.green,v,o),ee=b(_.blue,N.blue,v,o),te=`#${x(Q)}${x(Z)}${x(ee)}`;u.push(te)}return u}function M(r){const n=r.slice(1);return{red:parseInt(n.slice(0,2),16),green:parseInt(n.slice(2,4),16),blue:parseInt(n.slice(4,6),16)}}function b(r,n,o,u){return Math.round(r+(n-r)*o/u)}function x(r){return r.toString(16).padStart(2,"0")}const l=e.computed(()=>{const r=R.value+i.value.left+i.value.right,n=t.value.style.chart.height;return{width:r,left:i.value.left,right:r-i.value.right,top:i.value.top,bottom:n-i.value.bottom,height:n}}),W=e.computed(()=>l.value),C=e.computed(()=>{const r=a.checkNaN(s.dataset.from)<0?Math.abs(a.checkNaN(s.dataset.from)):a.checkNaN(s.dataset.from),n=a.checkNaN(s.dataset.to)<0?Math.abs(a.checkNaN(s.dataset.to)):a.checkNaN(s.dataset.to);let o=0;return a.checkNaN(s.dataset.to)>0?o=r+n:r>n?o=r-n:o=n-r,(1-(Math.abs(a.checkNaN(s.dataset.from))+a.checkNaN(s.dataset.value))/o)*(l.value.height-i.value.top-i.value.bottom)}),j=e.computed(()=>`${C.value}px`),D=e.computed(()=>`${l.value.height-t.value.style.chart.padding.bottom-i.value.top}px`),X=e.computed(()=>`${t.value.style.chart.animation.speedMs}ms`),J=e.computed(()=>{if(s.dataset.colors){if(!s.dataset.colors.from)return y(p.value[0]||a.palette[0],a.convertColorToHex(s.dataset.colors.to),c.value||10);if(!s.dataset.colors.to)return y(a.convertColorToHex(s.dataset.colors.from),p.value[1]||a.palette[1],c.value||10)}else return y(p.value[1]||a.palette[1],p.value[0]||a.palette[0],c.value||10);return y(a.convertColorToHex(s.dataset.colors.from),a.convertColorToHex(s.dataset.colors.to),c.value||10)}),U=e.computed(()=>{const r=[];let n=0;const o=l.value.height-i.value.top-i.value.bottom;for(let u=0;u<o-1;u+=o/c.value)r.push({x:l.value.left,y:l.value.top+u,qYLess:l.value.top+u+o/c.value/4,halfY:l.value.top+u+o/c.value/2,qYMore:l.value.top+u+o/c.value/4*3,color:J.value[n],height:o/c.value}),n+=1;return r}),h=e.ref(!1);function K(r){h.value=r,V.value+=1}const f=e.ref(!1);function w(){f.value=!f.value}return L({generatePdf:A,generateImage:T,toggleAnnotator:w}),(r,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"thermoChart",ref:P,class:e.normalizeClass(`vue-ui-thermometer ${h.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}`),id:`thermometer__${d.value}`,onMouseenter:n[0]||(n[0]=()=>e.unref($)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref($)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ae.PenAndPaper,{key:0,svgRef:e.unref(O),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:f.value,onClose:w},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),H.value?(e.openBlock(),e.createElementBlock("div",ce,null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",de,[(e.openBlock(),e.createBlock(oe._sfc_main,{key:`title_${E.value}`,config:{title:{cy:"thermometer-div-title",...t.value.style.title},subtitle:{cy:"thermometer-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&g.value&&(e.unref(F)||e.unref(k))?(e.openBlock(),e.createBlock(Y.UserOptions,{ref:"details",key:`user_options_${V.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(q),isPrinting:e.unref(S),uid:d.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:h.value,titles:{...t.value.userOptions.buttonTitles},chartElement:P.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:f.value,onToggleFullscreen:K,onGeneratePdf:e.unref(A),onGenerateImage:e.unref(T),onToggleAnnotator:w,style:e.normalizeStyle({visibility:e.unref(F)?e.unref(k)?"visible":"hidden":"visible"})},e.createSlots({_:2},[r.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:o,color:u})=>[e.renderSlot(r.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:o,color:u})),void 0,!0)]),key:"0"}:void 0,r.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,r.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,r.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:u})=>[e.renderSlot(r.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:u})),void 0,!0)]),key:"3"}:void 0,r.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:u})=>[e.renderSlot(r.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:u})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:O,xmlns:e.unref(a.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":h.value,"vue-data-ui-fulscreen--off":!h.value}),width:"100%",viewBox:`0 0 ${l.value.width} ${l.value.height}`,style:"background:transparent"},[e.createVNode(le._sfc_main),r.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width,height:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(r.$slots,"chart-background",{},void 0,!0)],8,ve)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",me,[e.createElementVNode("rect",{x:"0",y:"0",width:"1",height:"1",rx:"0.5",ry:"0.07",fill:t.value.style.chart.backgroundColor},null,8,pe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,(o,u)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:`vueUiThermometerGradient_${u}_${d.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":o.color},null,8,fe),e.createElementVNode("stop",{offset:"50%","stop-color":e.unref(a.setOpacity)(o.color,100-t.value.style.chart.graduations.gradient.intensity)},null,8,ge),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,ke)],8,ye))),256))]),e.createElementVNode("g",be,[e.createElementVNode("rect",{x:l.value.left,y:l.value.top,height:l.value.height-i.value.top-i.value.bottom,width:l.value.width-i.value.left-i.value.right,fill:"#FFFFFF"},null,8,xe),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(U.value,(o,u)=>(e.openBlock(),e.createElementBlock("g",{key:`graduation_${u}`},[e.createElementVNode("rect",{x:o.x,y:o.y,height:o.height,width:l.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:t.value.style.chart.graduations.gradient.show?`url(#vueUiThermometerGradient_${u}_${d.value})`:o.color,"shape-rendering":"crispEdges"},null,8,Ce),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,we)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x+5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,_e)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:o.x,x2:o.x+2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ne)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","left"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:o.x,x2:o.x+2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Be)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:l.value.right,x2:l.value.right-10,y1:o.y,y2:o.y,"stroke-width":t.value.style.chart.graduations.strokeWidth,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Pe)):e.createCommentVNode("",!0),t.value.style.chart.graduations.showIntermediate?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:0,x1:l.value.right,x2:l.value.right-5,y1:o.halfY,y2:o.halfY,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ve)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:1,x1:l.value.right,x2:l.value.right-2.5,y1:o.qYLess,y2:o.qYLess,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,Ee)):e.createCommentVNode("",!0),t.value.style.chart.graduations.show&&["both","right"].includes(t.value.style.chart.graduations.sides)?(e.openBlock(),e.createElementBlock("line",{key:2,x1:l.value.right,x2:l.value.right-2.5,y1:o.qYMore,y2:o.qYMore,"stroke-width":t.value.style.chart.graduations.strokeWidth/2,stroke:t.value.style.chart.graduations.stroke,"stroke-linecap":"round"},null,8,$e)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("rect",{class:e.normalizeClass({"vue-ui-thermometer-temperature":t.value.style.chart.animation.use}),x:l.value.left,y:l.value.top,height:C.value,width:l.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right,fill:"#FFFFFF66"},null,10,Fe)]),e.createElementVNode("text",{class:e.normalizeClass({"vue-ui-thermometer-temperature-value":t.value.style.chart.animation.use}),y:C.value+l.value.top+t.value.style.chart.label.fontSize/3,x:l.value.left-10,"text-anchor":"end",fill:t.value.style.chart.label.color,"font-size":t.value.style.chart.label.fontSize,"font-weight":t.value.style.chart.label.bold?"bold":"normal"},e.toDisplayString(e.unref(a.applyDataLabel)(t.value.style.chart.label.formatter,m.dataset.value,e.unref(a.dataLabel)({p:t.value.style.chart.label.prefix,v:m.dataset.value,s:t.value.style.chart.label.suffix,r:t.value.style.chart.label.rounding}),{datapoint:m.dataset})),11,Oe),e.renderSlot(r.$slots,"svg",{svg:W.value},void 0,!0)],10,he)):e.createCommentVNode("",!0),r.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ie,[e.renderSlot(r.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(S)||e.unref(q)})),void 0,!0)])):e.createCommentVNode("",!0),r.$slots.source?(e.openBlock(),e.createElementBlock("div",Se,[e.renderSlot(r.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),g.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(re.default,{key:7,config:{type:"thermometer",style:{backgroundColor:t.value.style.chart.backgroundColor,thermometer:{color:"#CCCCCC"}}}},null,8,["config"]))],46,ie))}},Ae=ue._export_sfc(qe,[["__scopeId","data-v-b0579fd1"]]);exports.default=Ae;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useCssVars as ke, computed as d, onMounted as be, ref as
|
|
2
|
-
import { u as $e, o as Pe, e as oe, g as Fe, c as Ie, t as Oe, p as _, a as Ae, b as Me, v as g, d as U, X as Ue, s as Ye, i as Ne, f as Se } from "./index-
|
|
3
|
-
import { _ as Te } from "./Title-
|
|
4
|
-
import { u as qe, U as Le } from "./usePrinter-
|
|
5
|
-
import Ve from "./vue-ui-skeleton-
|
|
6
|
-
import { u as le } from "./useNestedProp-
|
|
7
|
-
import { _ as Ee } from "./PackageVersion-
|
|
8
|
-
import { P as Ge } from "./PenAndPaper-
|
|
1
|
+
import { useCssVars as ke, computed as d, onMounted as be, ref as p, watch as xe, createElementBlock as u, openBlock as l, unref as h, normalizeStyle as te, normalizeClass as F, createBlock as I, createCommentVNode as i, createSlots as _e, withCtx as x, renderSlot as f, normalizeProps as O, guardReactiveProps as A, createVNode as we, createElementVNode as v, Fragment as M, renderList as se, toDisplayString as Ce } from "vue";
|
|
2
|
+
import { u as $e, o as Pe, e as oe, g as Fe, c as Ie, t as Oe, p as _, a as Ae, b as Me, v as g, d as U, X as Ue, s as Ye, i as Ne, f as Se } from "./index-DWsIpwzs.js";
|
|
3
|
+
import { _ as Te } from "./Title-y0r2c8bY.js";
|
|
4
|
+
import { u as qe, U as Le } from "./usePrinter-B8LELMkA.js";
|
|
5
|
+
import Ve from "./vue-ui-skeleton-DDZb9FFJ.js";
|
|
6
|
+
import { u as le } from "./useNestedProp-Bole8bsm.js";
|
|
7
|
+
import { _ as Ee } from "./PackageVersion-Cz-oD7U6.js";
|
|
8
|
+
import { P as Ge } from "./PenAndPaper-DOTH2X_u.js";
|
|
9
9
|
import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as je } from "./useChartAccessibility-BWojgys7.js";
|
|
11
11
|
import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -27,7 +27,7 @@ const Be = ["id"], Re = {
|
|
|
27
27
|
key: 6,
|
|
28
28
|
ref: "source",
|
|
29
29
|
dir: "auto"
|
|
30
|
-
},
|
|
30
|
+
}, pt = {
|
|
31
31
|
__name: "vue-ui-thermometer",
|
|
32
32
|
props: {
|
|
33
33
|
dataset: {
|
|
@@ -45,9 +45,9 @@ const Be = ["id"], Re = {
|
|
|
45
45
|
},
|
|
46
46
|
setup(w, { expose: ae }) {
|
|
47
47
|
ke((s) => ({
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
48
|
+
"3272b184": de.value,
|
|
49
|
+
"0885078a": ce.value,
|
|
50
|
+
"09e2f6f7": he.value
|
|
51
51
|
}));
|
|
52
52
|
const { vue_ui_thermometer: re } = $e(), a = w, Y = d(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
53
53
|
be(() => {
|
|
@@ -68,7 +68,7 @@ const Be = ["id"], Re = {
|
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const m = p(Ie()), W = p(null), j = p(0), z = p(0), e = d({
|
|
72
72
|
get: () => H(),
|
|
73
73
|
set: (s) => s
|
|
74
74
|
}), { userOptionsVisible: N, setUserOptionsVisibility: B, keepUserOptionState: R } = We({ config: e.value }), { svgRef: D } = je({ config: e.value.style.title });
|
|
@@ -89,9 +89,10 @@ const Be = ["id"], Re = {
|
|
|
89
89
|
e.value = H(), N.value = !e.value.userOptions.showOnChartHover, G(), z.value += 1;
|
|
90
90
|
}, { deep: !0 });
|
|
91
91
|
const { isPrinting: X, isImaging: J, generatePdf: K, generateImage: Q } = qe({
|
|
92
|
-
elementId: `thermometer__${
|
|
93
|
-
fileName: e.value.style.title.text || "vue-ui-thermometer"
|
|
94
|
-
|
|
92
|
+
elementId: `thermometer__${m.value}`,
|
|
93
|
+
fileName: e.value.style.title.text || "vue-ui-thermometer",
|
|
94
|
+
options: e.value.userOptions.print
|
|
95
|
+
}), ne = d(() => e.value.userOptions.show && !e.value.style.title.text), C = d(() => Me(e.value.customPalette)), ue = d(() => e.value.style.chart.thermometer.width), y = d(() => a.dataset.steps || 10), c = p({
|
|
95
96
|
top: e.value.style.chart.padding.top,
|
|
96
97
|
left: e.value.style.chart.padding.left,
|
|
97
98
|
right: e.value.style.chart.padding.right,
|
|
@@ -100,8 +101,8 @@ const Be = ["id"], Re = {
|
|
|
100
101
|
function $(s, r, t) {
|
|
101
102
|
const n = [], V = Z(s), E = Z(r);
|
|
102
103
|
for (let b = 0; b < t; b++) {
|
|
103
|
-
const fe = S(V.red, E.red, b, t), ge = S(V.green, E.green, b, t),
|
|
104
|
-
n.push(
|
|
104
|
+
const fe = S(V.red, E.red, b, t), ge = S(V.green, E.green, b, t), pe = S(V.blue, E.blue, b, t), me = `#${T(fe)}${T(ge)}${T(pe)}`;
|
|
105
|
+
n.push(me);
|
|
105
106
|
}
|
|
106
107
|
return n;
|
|
107
108
|
}
|
|
@@ -157,11 +158,11 @@ const Be = ["id"], Re = {
|
|
|
157
158
|
height: t / y.value
|
|
158
159
|
}), r += 1;
|
|
159
160
|
return s;
|
|
160
|
-
}), k =
|
|
161
|
+
}), k = p(!1);
|
|
161
162
|
function ye(s) {
|
|
162
163
|
k.value = s, j.value += 1;
|
|
163
164
|
}
|
|
164
|
-
const P =
|
|
165
|
+
const P = p(!1);
|
|
165
166
|
function L() {
|
|
166
167
|
P.value = !P.value;
|
|
167
168
|
}
|
|
@@ -174,7 +175,7 @@ const Be = ["id"], Re = {
|
|
|
174
175
|
ref: W,
|
|
175
176
|
class: F(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
176
177
|
style: te(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
|
|
177
|
-
id: `thermometer__${
|
|
178
|
+
id: `thermometer__${m.value}`,
|
|
178
179
|
onMouseenter: r[0] || (r[0] = () => h(B)(!0)),
|
|
179
180
|
onMouseleave: r[1] || (r[1] = () => h(B)(!1))
|
|
180
181
|
}, [
|
|
@@ -209,7 +210,7 @@ const Be = ["id"], Re = {
|
|
|
209
210
|
color: e.value.style.chart.color,
|
|
210
211
|
isImaging: h(J),
|
|
211
212
|
isPrinting: h(X),
|
|
212
|
-
uid:
|
|
213
|
+
uid: m.value,
|
|
213
214
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
214
215
|
hasImg: e.value.userOptions.buttons.img,
|
|
215
216
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
@@ -300,7 +301,7 @@ const Be = ["id"], Re = {
|
|
|
300
301
|
}, null, 8, Ke)
|
|
301
302
|
]),
|
|
302
303
|
(l(!0), u(M, null, se(ee.value, (t, n) => (l(), u("linearGradient", {
|
|
303
|
-
id: `vueUiThermometerGradient_${n}_${
|
|
304
|
+
id: `vueUiThermometerGradient_${n}_${m.value}`,
|
|
304
305
|
x1: "0%",
|
|
305
306
|
y1: "0%",
|
|
306
307
|
x2: "100%",
|
|
@@ -336,7 +337,7 @@ const Be = ["id"], Re = {
|
|
|
336
337
|
y: t.y,
|
|
337
338
|
height: t.height,
|
|
338
339
|
width: o.value.width - e.value.style.chart.padding.left - e.value.style.chart.padding.right,
|
|
339
|
-
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${
|
|
340
|
+
fill: e.value.style.chart.graduations.gradient.show ? `url(#vueUiThermometerGradient_${n}_${m.value})` : t.color,
|
|
340
341
|
"shape-rendering": "crispEdges"
|
|
341
342
|
}, null, 8, lt),
|
|
342
343
|
e.value.style.chart.graduations.show && ["both", "left"].includes(e.value.style.chart.graduations.sides) ? (l(), u("line", {
|
|
@@ -474,7 +475,7 @@ const Be = ["id"], Re = {
|
|
|
474
475
|
}, null, 8, ["config"]))
|
|
475
476
|
], 46, Be));
|
|
476
477
|
}
|
|
477
|
-
}, Ot = /* @__PURE__ */ ze(
|
|
478
|
+
}, Ot = /* @__PURE__ */ ze(pt, [["__scopeId", "data-v-b0579fd1"]]);
|
|
478
479
|
export {
|
|
479
480
|
Ot as default
|
|
480
481
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as i, onMounted as Z, computed as z, onBeforeUnmount as ee, watch as te, createElementBlock as o, openBlock as l, normalizeStyle as p, createCommentVNode as d, createElementVNode as _, createBlock as ae, unref as se, createVNode as C, renderSlot as H, mergeProps as q, normalizeProps as W, guardReactiveProps as G, toDisplayString as le } from "vue";
|
|
2
|
-
import { u as oe } from "./useNestedProp-
|
|
3
|
-
import { u as re, c as ue, X as ie, F as V } from "./index-
|
|
2
|
+
import { u as oe } from "./useNestedProp-Bole8bsm.js";
|
|
3
|
+
import { u as re, c as ue, X as ie, F as V } from "./index-DWsIpwzs.js";
|
|
4
4
|
import { t as ne, u as ce } from "./useResponsive-vZgZwV-S.js";
|
|
5
|
-
import R from "./BaseIcon-
|
|
6
|
-
import { _ as de } from "./Title-
|
|
7
|
-
import { _ as he } from "./PackageVersion-
|
|
5
|
+
import R from "./BaseIcon-BYl8WVrn.js";
|
|
6
|
+
import { _ as de } from "./Title-y0r2c8bY.js";
|
|
7
|
+
import { _ as he } from "./PackageVersion-Cz-oD7U6.js";
|
|
8
8
|
import { u as ve } from "./useChartAccessibility-BWojgys7.js";
|
|
9
9
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
class fe {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j=require("./useNestedProp-B8CE091o.cjs"),w=require("./index-Crz6y51C.cjs"),D=require("./useResponsive-N8jl0-aC.cjs"),B=require("./BaseIcon-CGjwy6WD.cjs"),O=require("./Title-BkwZ_rBI.cjs"),U=require("./PackageVersion-Dj3KQ8Ax.cjs"),W=require("./useChartAccessibility-Cm7nkzTG.cjs"),G=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");class X{constructor(T,V,S,M=!0,h=!0){this.interval=V,this.elapsed=0,this.isPaused=!1;const g=`
|
|
2
2
|
let interval;
|
|
3
3
|
let elapsed = 0;
|
|
4
4
|
let paused = false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as h, ref as b, watch as Z, onMounted as ce, createElementBlock as c, openBlock as s, unref as r, normalizeStyle as G, normalizeClass as L, createBlock as F, createCommentVNode as d, createSlots as ve, withCtx as x, renderSlot as y, normalizeProps as z, guardReactiveProps as S, createVNode as he, Fragment as ee, renderList as te, toDisplayString as de } from "vue";
|
|
2
|
-
import { u as ae } from "./useNestedProp-
|
|
3
|
-
import { u as fe, c as ge, a as ye, v as
|
|
4
|
-
import { _ as $e } from "./Title-
|
|
5
|
-
import { u as we, U as Pe } from "./usePrinter-
|
|
6
|
-
import xe from "./vue-ui-skeleton-
|
|
7
|
-
import { _ as Oe } from "./PackageVersion-
|
|
8
|
-
import { P as Ae } from "./PenAndPaper-
|
|
2
|
+
import { u as ae } from "./useNestedProp-Bole8bsm.js";
|
|
3
|
+
import { u as fe, c as ge, a as ye, v as pe, o as me, e as ke, w as oe, X as be, i as _e, f as Ce } from "./index-DWsIpwzs.js";
|
|
4
|
+
import { _ as $e } from "./Title-y0r2c8bY.js";
|
|
5
|
+
import { u as we, U as Pe } from "./usePrinter-B8LELMkA.js";
|
|
6
|
+
import xe from "./vue-ui-skeleton-DDZb9FFJ.js";
|
|
7
|
+
import { _ as Oe } from "./PackageVersion-Cz-oD7U6.js";
|
|
8
|
+
import { P as Ae } from "./PenAndPaper-DOTH2X_u.js";
|
|
9
9
|
import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as Fe } from "./useChartAccessibility-BWojgys7.js";
|
|
11
11
|
import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -57,8 +57,9 @@ const Se = ["id"], Ne = {
|
|
|
57
57
|
}, { deep: !0 });
|
|
58
58
|
const { isPrinting: V, isImaging: Y, generatePdf: q, generateImage: J } = we({
|
|
59
59
|
elementId: M.value,
|
|
60
|
-
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
|
|
61
|
-
|
|
60
|
+
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
|
|
61
|
+
options: e.value.userOptions.print
|
|
62
|
+
}), ue = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : pe(f.dataset.percentage));
|
|
62
63
|
Z(() => f.dataset, (t) => {
|
|
63
64
|
e.value.style.chart.animation.use ? K(t.percentage) : u.value = t.percentage || 0;
|
|
64
65
|
}, { deep: !0 }), ce(() => {
|
|
@@ -73,7 +74,7 @@ const Se = ["id"], Ne = {
|
|
|
73
74
|
l();
|
|
74
75
|
}
|
|
75
76
|
function Q() {
|
|
76
|
-
|
|
77
|
+
me(f.dataset) && ke({
|
|
77
78
|
componentName: "VueUiTiremarks",
|
|
78
79
|
type: "dataset"
|
|
79
80
|
}), K(f.dataset.percentage || 0);
|
|
@@ -110,23 +111,23 @@ const Se = ["id"], Ne = {
|
|
|
110
111
|
for (let a = 0; a < 100; a += 1) {
|
|
111
112
|
const l = e.value.style.chart.layout.ticks.gradient.show ? oe(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
112
113
|
if (_.value) {
|
|
113
|
-
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, g = i.value.left + 4 + $,
|
|
114
|
+
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, g = i.value.left + 4 + $, p = o.value.width - i.value.right - 4 - $, m = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (p - g) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
114
115
|
t.push({
|
|
115
116
|
x1: g,
|
|
116
|
-
x2:
|
|
117
|
-
y1:
|
|
117
|
+
x2: p,
|
|
118
|
+
y1: m,
|
|
118
119
|
y2: k,
|
|
119
|
-
curve: `M ${g} ${
|
|
120
|
+
curve: `M ${g} ${m} C ${g + w} ${m - P}, ${p - w} ${k - P}, ${p} ${k}`,
|
|
120
121
|
color: l
|
|
121
122
|
});
|
|
122
123
|
} else {
|
|
123
|
-
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, g = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark,
|
|
124
|
+
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, g = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, p = g, m = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - m) / e.value.style.chart.layout.curveAngleX;
|
|
124
125
|
t.push({
|
|
125
126
|
x1: g,
|
|
126
|
-
x2:
|
|
127
|
-
y1:
|
|
127
|
+
x2: p,
|
|
128
|
+
y1: m,
|
|
128
129
|
y2: k,
|
|
129
|
-
curve: `M ${g} ${
|
|
130
|
+
curve: `M ${g} ${m} C ${g + w} ${m + P}, ${p + w} ${k - P}, ${p} ${k}`,
|
|
130
131
|
color: l
|
|
131
132
|
});
|
|
132
133
|
}
|
|
@@ -337,7 +338,7 @@ const Se = ["id"], Ne = {
|
|
|
337
338
|
}, null, 8, ["config"]))
|
|
338
339
|
], 46, Se));
|
|
339
340
|
}
|
|
340
|
-
}, tt = /* @__PURE__ */ ze(Xe, [["__scopeId", "data-v-
|
|
341
|
+
}, tt = /* @__PURE__ */ ze(Xe, [["__scopeId", "data-v-fac4c918"]]);
|
|
341
342
|
export {
|
|
342
343
|
tt as default
|
|
343
344
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./useNestedProp-B8CE091o.cjs"),c=require("./index-Crz6y51C.cjs"),K=require("./Title-BkwZ_rBI.cjs"),j=require("./usePrinter-Cqxw0sR7.cjs"),Q=require("./vue-ui-skeleton-BZsFiqo5.cjs"),W=require("./PackageVersion-Dj3KQ8Ax.cjs"),Z=require("./PenAndPaper-OCjAJH70.cjs"),ee=require("./useUserOptionState-BgepsfED.cjs"),te=require("./useChartAccessibility-Cm7nkzTG.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],le={key:2,style:"width:100%;background:transparent;padding-bottom:12px"},re=["xmlns","viewBox"],ne=["width","height"],se={key:1},ue=["d","stroke-width","stroke"],ie={key:2},ce=["x1","y1","x2","y2","stroke-width","stroke"],ve=["x","y","font-size","fill","font-weight","text-anchor"],de={key:5,class:"vue-data-ui-watermark"},he={key:6,ref:"source",dir:"auto"},pe={__name:"vue-ui-tiremarks",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(G,{expose:H}){const{vue_ui_tiremarks:D}=c.useConfig(),v=G,$=e.computed(()=>!!v.dataset&&Object.keys(v.dataset).length),P=e.ref(c.createUid()),O=e.ref(null),X=e.ref(null),S=e.ref(0),A=e.ref(0),t=e.computed({get:()=>E(),set:o=>o}),{userOptionsVisible:B,setUserOptionsVisibility:z,keepUserOptionState:N}=ee.useUserOptionState({config:t.value}),{svgRef:I}=te.useChartAccessibility({config:t.value.style.chart.title});function E(){const o=L.useNestedProp({userConfig:v.config,defaultConfig:D});return o.theme?{...L.useNestedProp({userConfig:c.themes.vue_ui_tiremarks[o.theme]||v.config,defaultConfig:o})}:o}e.watch(()=>v.config,o=>{t.value=E(),B.value=!t.value.userOptions.showOnChartHover,U(),A.value+=1},{deep:!0});const{isPrinting:F,isImaging:V,generatePdf:q,generateImage:T}=j.usePrinter({elementId:P.value,fileName:t.value.style.chart.title.text||"vue-ui-tiremarks",options:t.value.userOptions.print}),Y=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),s=e.ref(t.value.style.chart.animation.use?0:c.checkNaN(v.dataset.percentage));e.watch(()=>v.dataset,o=>{t.value.style.chart.animation.use?M(o.percentage):s.value=o.percentage||0},{deep:!0}),e.onMounted(()=>{U()});function M(o){let n=t.value.style.chart.animation.speed;const a=Math.abs(o-s.value)/(n*120);function r(){s.value<o?s.value=Math.min(s.value+a,o):s.value>o&&(s.value=Math.max(s.value-a,o)),s.value!==o&&requestAnimationFrame(r)}r()}function U(){c.objectIsEmpty(v.dataset)&&c.error({componentName:"VueUiTiremarks",type:"dataset"}),M(v.dataset.percentage||0)}const m=e.computed(()=>t.value.style.chart.layout.display==="vertical"),u=e.computed(()=>{const o={top:48,left:64,right:64,bottom:48};return m.value?{top:t.value.style.chart.percentage.verticalPosition==="top"?o.top:3,left:3,right:3,bottom:t.value.style.chart.percentage.verticalPosition==="bottom"?o.bottom:3}:{top:0,bottom:0,left:t.value.style.chart.percentage.horizontalPosition==="left"?o.left:3,right:t.value.style.chart.percentage.horizontalPosition==="right"?o.right:10}}),C=e.computed(()=>Object.values(u.value).reduce((o,n)=>o+n,0)),l=e.computed(()=>({height:m.value?312:56,width:m.value?56:312})),i=e.computed(()=>m.value?{mark:(l.value.height-C.value)/100*.5,space:(l.value.height-C.value)/100*.5}:{mark:(l.value.width-C.value)/100*.5,space:(l.value.width-C.value)/100*.5}),R=e.computed(()=>{const o=[];for(let a=0;a<100;a+=1){const r=t.value.style.chart.layout.ticks.gradient.show?c.shiftHue(t.value.style.chart.layout.activeColor,a/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.layout.activeColor;if(m.value){const y=t.value.style.chart.layout.crescendo?(100-a)*(l.value.width-u.value.left-u.value.right)/100/3:0,d=u.value.left+4+y,h=l.value.width-u.value.right-4-y,p=l.value.height-u.value.bottom-a*i.value.mark-a*i.value.space-i.value.mark,f=l.value.height-u.value.bottom-a*i.value.mark-a*i.value.space-i.value.mark,k=(h-d)/t.value.style.chart.layout.curveAngleX,b=t.value.style.chart.layout.curveAngleY*((1+a)/100);o.push({x1:d,x2:h,y1:p,y2:f,curve:`M ${d} ${p} C ${d+k} ${p-b}, ${h-k} ${f-b}, ${h} ${f}`,color:r})}else{const y=t.value.style.chart.layout.crescendo?(100-a)*(l.value.height-u.value.top-u.value.bottom)/100/3:0,d=u.value.left+a*i.value.mark+a*i.value.space-i.value.mark,h=d,p=u.value.top+4+y,f=l.value.height-u.value.bottom-4-y,k=t.value.style.chart.layout.curveAngleY*((1+a)/100),b=(f-p)/t.value.style.chart.layout.curveAngleX;o.push({x1:d,x2:h,y1:p,y2:f,curve:`M ${d} ${p} C ${d+k} ${p+b}, ${h+k} ${f-b}, ${h} ${f}`,color:r})}}return o}),g=e.computed(()=>{let o,n,a;const r=t.value.style.chart.percentage.fontSize/3;return m.value?t.value.style.chart.percentage.verticalPosition==="top"?(o=l.value.width/2,n=u.value.top/2,a="middle"):t.value.style.chart.percentage.verticalPosition==="bottom"&&(o=l.value.width/2,n=l.value.height-u.value.bottom/2+r,a="middle"):t.value.style.chart.percentage.horizontalPosition==="left"?(o=4,n=l.value.height/2+r,a="start"):t.value.style.chart.percentage.horizontalPosition==="right"&&(o=l.value.width-u.value.right+8,n=l.value.height/2+r,a="start"),{x:o,y:n,textAnchor:a,bold:t.value.style.chart.percentage.bold,fontSize:t.value.style.chart.percentage.fontSize,fill:t.value.style.chart.percentage.color}}),_=e.ref(!1);function J(o){_.value=o,S.value+=1}const w=e.ref(!1);function x(){w.value=!w.value}return H({generatePdf:q,generateImage:T,toggleAnnotator:x}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tiremarksChart",ref:O,class:e.normalizeClass(`vue-ui-tiremarks ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor}`),id:P.value,onMouseenter:n[0]||(n[0]=()=>e.unref(z)(!0)),onMouseleave:n[1]||(n[1]=()=>e.unref(z)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Z.PenAndPaper,{key:0,svgRef:e.unref(I),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:w.value,onClose:x},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Y.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:X,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",le,[(e.openBlock(),e.createBlock(K._sfc_main,{key:`title_${A.value}`,config:{title:{cy:"wheel-title",...t.value.style.chart.title},subtitle:{cy:"wheel-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))])):e.createCommentVNode("",!0),t.value.userOptions.show&&$.value&&(e.unref(N)||e.unref(B))?(e.openBlock(),e.createBlock(j.UserOptions,{ref:"details",key:`user_options_${S.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(F),isImaging:e.unref(V),uid:P.value,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,hasXls:!1,isFullscreen:_.value,titles:{...t.value.userOptions.buttonTitles},chartElement:O.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:J,onGeneratePdf:e.unref(q),onGenerateImage:e.unref(T),onToggleAnnotator:x,style:e.normalizeStyle({visibility:e.unref(N)?e.unref(B)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:r})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:r})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"3"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),$.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:I,xmlns:e.unref(c.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":_.value,"vue-data-ui-fulscreen--off":!_.value}),viewBox:`0 0 ${l.value.width} ${l.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(W._sfc_main),o.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:l.value.width,height:l.value.height,style:{pointerEvents:"none"}},[e.renderSlot(o.$slots,"chart-background",{},void 0,!0)],8,ne)):e.createCommentVNode("",!0),t.value.style.chart.layout.curved?(e.openBlock(),e.createElementBlock("g",se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(a,r)=>(e.openBlock(),e.createElementBlock("path",{d:a.curve,"stroke-width":i.value.mark,stroke:s.value>=r?a.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round",fill:"none",class:e.normalizeClass({"vue-ui-tick-animated":t.value.style.chart.animation.use&&r<=s.value})},null,10,ue))),256))])):(e.openBlock(),e.createElementBlock("g",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2,"stroke-width":i.value.mark,stroke:s.value>=r?a.color:t.value.style.chart.layout.inactiveColor,"stroke-linecap":"round"},null,8,ce))),256))])),t.value.style.chart.percentage.show?(e.openBlock(),e.createElementBlock("text",{key:3,x:g.value.x,y:g.value.y,"font-size":g.value.fontSize,fill:t.value.style.chart.layout.ticks.gradient.show&&t.value.style.chart.percentage.useGradientColor?e.unref(c.shiftHue)(t.value.style.chart.layout.activeColor,s.value/100*(t.value.style.chart.layout.ticks.gradient.shiftHueIntensity/100)):t.value.style.chart.percentage.color,"font-weight":g.value.bold?"bold":"normal","text-anchor":g.value.textAnchor},e.toDisplayString(e.unref(c.applyDataLabel)(t.value.style.chart.percentage.formatter,s.value,e.unref(c.dataLabel)({v:s.value,s:"%",r:t.value.style.chart.percentage.rounding}))),9,ve)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"svg",{svg:l.value},void 0,!0)],14,re)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(F)||e.unref(V)})),void 0,!0)])):e.createCommentVNode("",!0),o.$slots.source?(e.openBlock(),e.createElementBlock("div",he,[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),$.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Q.default,{key:7,config:{type:"tiremarks",style:{backgroundColor:t.value.style.chart.backgroundColor,tiremarks:{color:"#CCCCCC"}}}},null,8,["config"]))],46,ae))}},fe=oe._export_sfc(pe,[["__scopeId","data-v-fac4c918"]]);exports.default=fe;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useSlots as st, onMounted as Le, computed as k, ref as f, watch as rt, onBeforeUnmount as ut, createElementBlock as C, openBlock as p, unref as g, normalizeStyle as D, normalizeClass as De, createBlock as E, createCommentVNode as P, createElementVNode as z, createVNode as Me, createSlots as it, withCtx as x, renderSlot as $, normalizeProps as G, guardReactiveProps as q, Fragment as Ve, renderList as Ue, toDisplayString as Y, mergeProps as ct, createTextVNode as Be, nextTick as dt } from "vue";
|
|
2
|
-
import { u as vt, c as He, t as ht, p as O, a as ft, b as pt, o as gt, e as yt, d as ae, i as ne, f as K, X as mt, l as We, G as Ee, x as Ge, q as bt, r as wt, y as kt } from "./index-
|
|
3
|
-
import { _ as Ct } from "./Title-
|
|
4
|
-
import { u as $t, U as xt } from "./usePrinter-
|
|
5
|
-
import { _ as Tt } from "./Tooltip-
|
|
6
|
-
import { L as Ot } from "./Legend-
|
|
7
|
-
import _t from "./vue-ui-skeleton-
|
|
8
|
-
import { D as St } from "./DataTable-
|
|
9
|
-
import Nt from "./vue-ui-accordion-
|
|
2
|
+
import { u as vt, c as He, t as ht, p as O, a as ft, b as pt, o as gt, e as yt, d as ae, i as ne, f as K, X as mt, l as We, G as Ee, x as Ge, q as bt, r as wt, y as kt } from "./index-DWsIpwzs.js";
|
|
3
|
+
import { _ as Ct } from "./Title-y0r2c8bY.js";
|
|
4
|
+
import { u as $t, U as xt } from "./usePrinter-B8LELMkA.js";
|
|
5
|
+
import { _ as Tt } from "./Tooltip-CbWEnMUw.js";
|
|
6
|
+
import { L as Ot } from "./Legend-BB51QBPV.js";
|
|
7
|
+
import _t from "./vue-ui-skeleton-DDZb9FFJ.js";
|
|
8
|
+
import { D as St } from "./DataTable-B_PZ5EQ5.js";
|
|
9
|
+
import Nt from "./vue-ui-accordion-WrimcQK1.js";
|
|
10
10
|
import { t as Pt, u as zt } from "./useResponsive-vZgZwV-S.js";
|
|
11
|
-
import { u as qe } from "./useNestedProp-
|
|
12
|
-
import { _ as At } from "./PackageVersion-
|
|
13
|
-
import { P as Ft } from "./PenAndPaper-
|
|
11
|
+
import { u as qe } from "./useNestedProp-Bole8bsm.js";
|
|
12
|
+
import { _ as At } from "./PackageVersion-Cz-oD7U6.js";
|
|
13
|
+
import { P as Ft } from "./PenAndPaper-DOTH2X_u.js";
|
|
14
14
|
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { u as Rt } from "./useChartAccessibility-BWojgys7.js";
|
|
16
16
|
import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -224,7 +224,8 @@ const Gt = ["id"], qt = ["xmlns", "viewBox"], Xt = { key: 0 }, jt = ["id"], Yt =
|
|
|
224
224
|
}, { deep: !0 });
|
|
225
225
|
const { isPrinting: ke, isImaging: Ce, generatePdf: $e, generateImage: xe } = $t({
|
|
226
226
|
elementId: `treemap_${S.value}`,
|
|
227
|
-
fileName: e.value.style.chart.title.text || "vue-ui-treemap"
|
|
227
|
+
fileName: e.value.style.chart.title.text || "vue-ui-treemap",
|
|
228
|
+
options: e.value.userOptions.print
|
|
228
229
|
}), Je = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Q = k(() => pt(e.value.customPalette)), F = f({
|
|
229
230
|
showTable: e.value.table.show,
|
|
230
231
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -850,7 +851,7 @@ const Gt = ["id"], qt = ["xmlns", "viewBox"], Xt = { key: 0 }, jt = ["id"], Yt =
|
|
|
850
851
|
}, 8, ["config"])) : P("", !0)
|
|
851
852
|
], 46, Gt));
|
|
852
853
|
}
|
|
853
|
-
}, $o = /* @__PURE__ */ Lt(no, [["__scopeId", "data-v-
|
|
854
|
+
}, $o = /* @__PURE__ */ Lt(no, [["__scopeId", "data-v-57b31c44"]]);
|
|
854
855
|
export {
|
|
855
856
|
$o as default
|
|
856
857
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Crz6y51C.cjs"),Ae=require("./Title-BkwZ_rBI.cjs"),ke=require("./usePrinter-Cqxw0sR7.cjs"),Le=require("./Tooltip-DhhX9jKQ.cjs"),Fe=require("./Legend-BB6S3gBp.cjs"),Ie=require("./vue-ui-skeleton-BZsFiqo5.cjs"),De=require("./DataTable-Dp7g_Ei4.cjs"),qe=require("./vue-ui-accordion-10T9IdE-.cjs"),Ce=require("./useResponsive-N8jl0-aC.cjs"),we=require("./useNestedProp-B8CE091o.cjs"),Me=require("./PackageVersion-Dj3KQ8Ax.cjs"),He=require("./PenAndPaper-OCjAJH70.cjs"),Ue=require("./useUserOptionState-BgepsfED.cjs"),We=require("./useChartAccessibility-Cm7nkzTG.cjs"),Ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function xe(n,c){const i=n.length;if(i===0)throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);{let d=1/0,s=-1/0,h=0;for(let p=0;p<i;p+=1){const f=n[p].normalizedValue;f<d&&(d=f),f>s&&(s=f),h+=f}return Math.max(c**2*s/h**2,h**2/(c**2*d))}}function Te(n){const{xOffset:c,yOffset:i,width:d,height:s}=n;return{x0:c,y0:i,x1:c+d,y1:i+s}}function je(n,c,i){if(n.length===0)return!0;{const d=n.concat(c),s=xe(n,i),h=xe(d,i);return s>=h}}function Xe(n){const c=[],i=n.length;for(let d=0;d<i;d+=1){const s=n[d],h=s.length;for(let v=0;v<h;v+=1)c.push(s[v])}return c}function Ye(n,c){const i={...c,children:n};return Se(i)}function Ze(n){return(n.x1-n.x0)*(n.y1-n.y0)}function $e(n,c){const{width:i,height:d,xOffset:s,yOffset:h}=Y(c),v=n.length,p=n.map(y=>y.normalizedValue||0).reduce((y,g)=>y+g,0),f=p/d,w=p/i;let C=s,x=h;const b=[];if(i>=d){for(let y=0;y<v;y+=1){const g=n[y],k=x+g.normalizedValue/f,O={x0:C,y0:x,x1:C+f,y1:k},T=Object.assign({},g,O);x=k,b.push(T)}return b}else{for(let y=0;y<v;y+=1){const g=n[y],k=C+g.normalizedValue/w,O={x0:C,y0:x,x1:k,y1:x+w},T=Object.assign({},g,O);C=k,b.push(T)}return b}}function Je(n){const c=Y(n),i=c.width,d=c.height;return Math.min(i,d)}function Ke(n,c){const i=n.length,d=n.map(f=>f.value??0).reduce((f,w)=>f+w,0),s=c/d,h=[];let v,p;for(let f=0;f<i;f+=1)p=n[f],v=Object.assign({},p,{normalizedValue:p.value*(s||0)}),h.push(v);return h}function Y(n){const{x0:c,y0:i,x1:d,y1:s}=n;return{xOffset:c,yOffset:i,width:d-c,height:s-i}}function Qe(n,c,i,d){let s=n,h=c,v=i,p=d;for(;;){const f=s.length;if(f===0){const b=$e(h,v);return p.concat(b)}const w=Je(v),C=s[0],x=s.slice(1,f);if(je(h,C,w)){const b=h.concat(C);s=x,h=b,v=v,p=p}else{const b=h.length;let y=0;for(let T=0;T<b;T+=1)y+=h[T].normalizedValue;const g=et(v,y),k=$e(h,v),O=p.concat(k);s=s,h=[],v=g,p=O}}}function Se(n){if(typeof n.children>"u"||!n.children.length)return[n];{const c=Ke(n.children,Ze(n)),i=Qe(c,[],n,[]),d=i.length,s=[];for(let v=0;v<d;v+=1)s.push(Se(i[v]));return Xe(s)}}function et(n,c){const{width:i,height:d,xOffset:s,yOffset:h}=Y(n);if(i>=d){const v=c/d,p=i-v,f={xOffset:s+v,yOffset:h,width:p,height:d};return Te(f)}else{const v=c/i,p=d-v,f={xOffset:s,yOffset:h+v,width:i,height:p};return Te(f)}}const tt=["id"],ot=["xmlns","viewBox"],lt={key:0},at=["id"],nt=["stop-color"],rt=["stop-color"],st=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],ut=["x","y","height","width"],it={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},ct={key:5,class:"vue-data-ui-watermark"},dt=["onClick"],vt={key:0},ht={key:1},pt=["innerHTML"],ft={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(n,{expose:c,emit:i}){const{vue_ui_treemap:d}=r.useConfig(),s=n,h=i,v=e.useSlots();e.onMounted(()=>{v["chart-background"]&&console.warn("VueUiTreemap does not support the #chart-background slot.")});const p=e.computed(()=>!!s.dataset&&s.dataset.length),f=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),w=e.ref(r.createUid()),C=e.ref(!1),x=e.ref(""),b=e.ref(!1),y=e.ref(0),g=e.ref([]),k=e.ref(null),O=e.ref(null),T=e.ref(null),Z=e.ref(null),J=e.ref(null),K=e.ref(0),Q=e.ref(0),ee=e.ref(0),t=e.computed({get:()=>ae(),set:o=>o}),{userOptionsVisible:U,setUserOptionsVisibility:te,keepUserOptionState:oe}=Ue.useUserOptionState({config:t.value}),{svgRef:le}=We.useChartAccessibility({config:t.value.style.chart.title});function ae(){const o=we.useNestedProp({userConfig:s.config,defaultConfig:d});return o.theme?{...we.useNestedProp({userConfig:r.themes.vue_ui_treemap[o.theme]||s.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}e.watch(()=>s.config,o=>{t.value=ae(),U.value=!t.value.userOptions.showOnChartHover,K.value+=1,Q.value+=1,ee.value+=1,$.value.showTable=t.value.table.show,$.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:ne,isImaging:re,generatePdf:se,generateImage:ue}=ke.usePrinter({elementId:`treemap_${w.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap",options:t.value.userOptions.print}),Ne=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),I=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),$=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),P=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),V=e.computed(()=>({bottom:P.value.height-t.value.style.chart.padding.bottom,height:P.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:P.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:P.value.height,vbWidth:P.value.width,width:P.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function ie(o){o.forEach((a,l)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||I.value[l]||r.palette[l]||r.palette[l%r.palette.length],a.children&&(a.children.forEach(u=>{u.parentId=a.id,u.color=a.color}),ie(a.children))})}const _=e.ref(s.dataset),D=e.ref(null);e.onMounted(()=>{Be()});function Be(){if(r.objectIsEmpty(s.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),ie(_.value),t.value.responsive){const o=Ce.throttle(()=>{const{width:a,height:l}=Ce.useResponsive({chart:k.value,title:t.value.style.chart.title.text?O.value:null,legend:t.value.style.chart.legend.show?T.value:null,source:Z.value,noTitle:J.value});requestAnimationFrame(()=>{P.value.width=a,P.value.height=l})});D.value=new ResizeObserver(o),D.value.observe(k.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const W=e.ref(_.value),L=e.computed(()=>W.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(o=>!g.value.includes(o.id))),R=e.computed(()=>_.value.filter(o=>!g.value.includes(o.id)).map(o=>o.value||0).reduce((o,a)=>o+a,0)),ce=e.computed({get(){let o=[...L.value];return t.value.style.chart.layout.sorted&&(o=[...L.value].sort((a,l)=>l.value-a.value)),o.map(a=>({...a}))},set(o){return o}});function de(o,a){return o.value/a}function Oe(o,a,l){const u=t.value.style.chart.layout.rects.colorRatio-de(a,l);return r.lightenHexColor(o,u<0?0:u)}function ve(o,a,l,u){return o.map((m,z)=>{const H=Oe(r.convertColorToHex(a)||I.value[z]||r.palette[z]||r.palette[z%r.palette.length],m,u),Re=de(m,u);return{...m,color:H,proportion:Re,parentName:l,children:m.children?ve(m.children,H,m.name,u):void 0}})}const F=e.computed(()=>Ye(ce.value.map((o,a)=>{const l=o.children?o.children.reduce((u,m)=>u+m.value,0):o.value;return{value:o.value,id:o.id,children:o.children?ve(o.children.sort((u,m)=>m.value-u.value),o.color,o.name,l):void 0,color:o.color,name:o.name}}),{x0:V.value.left*2,y0:V.value.top,x1:V.value.width,y1:V.value.height}));function he({y0:o,y1:a}){return a-o<=0?1e-4:a-o}function pe({x0:o,x1:a}){return a-o<=0?1e-4:a-o}function E(o){const a=t.value.style.chart.layout.labels.fontSize*(o.proportion*2>1?1:o.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function Pe(o){b.value=o,y.value+=1}const A=e.computed(()=>({startX:0,startY:0,width:V.value.vbWidth,height:V.value.vbHeight})),S=e.ref(!1);function G(o,a=_.value){for(const l of a){if(l.id===o)return l;if(l.children){const u=G(o,l.children);if(u)return u}}return null}function ze(o){if(S.value)h("selectDatapoint",void 0),W.value=_.value;else{if(h("selectDatapoint",o),!G(o.parentId))return;W.value=[G(o.parentId)]}S.value=!S.value}const N=e.ref(null),fe=e.computed(()=>_.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((o,a)=>a.value-o.value).map((o,a)=>({...o,proportion:o.value/_.value.map(l=>l.value).reduce((l,u)=>l+u,0),opacity:g.value.includes(o.id)?.5:1}))),Ve=e.computed(()=>({cy:"treemap-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,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function ge(o){S.value=!1,N.value=null,g.value.includes(o.id)?g.value=g.value.filter(a=>a!==o.id):g.value.length<s.dataset.length-1&&g.value.push(o.id),h("selectLegend",ce.value)}const j=e.ref(null);function _e({datapoint:o,seriesIndex:a}){N.value=o,j.value={datapoint:o,seriesIndex:a,config:t.value,series:L.value};const l=t.value.style.chart.tooltip.customFormat;if(r.isFunction(l)&&r.functionReturnsString(()=>l({seriesIndex:a,datapoint:o,series:L.value,config:t.value})))x.value=l({seriesIndex:a,datapoint:o,series:L.value,config:t.value});else{let u="";u+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,u+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${o.color}"/></svg>`,u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,o.value,r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,seriesIndex:a})}</b>`,x.value=`<div>${u}</div>`}C.value=!0}const B=e.computed(()=>{const o=F.value.map(l=>({name:l.name,color:l.color})),a=F.value.map(l=>l.value);return{head:o,body:a}});function me(){e.nextTick(()=>{const o=B.value.head.map((u,m)=>[[u.name],[B.value.body[m]],[isNaN(B.value.body[m]/R.value)?"-":B.value.body[m]/R.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const q=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=B.value.head.map((m,z)=>{const H=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,B.value.body[z],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:B.value.body[z],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:m.color,name:m.name,shape:"square"},H,isNaN(B.value.body[z]/R.value)?"-":r.dataLabel({v:B.value.body[z]/R.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}});function Ee(){return F.value}function ye(){$.value.showTable=!$.value.showTable}function be(){$.value.showTooltip=!$.value.showTooltip}const M=e.ref(!1);function X(){M.value=!M.value}return c({getData:Ee,generateCsv:me,generateImage:ue,generatePdf:se,toggleTable:ye,toggleTooltip:be,toggleAnnotator:X}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:k,class:e.normalizeClass(`vue-ui-treemap ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`treemap_${w.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(te)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(te)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(He.PenAndPaper,{key:0,svgRef:e.unref(le),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:M.value,onClose:X},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ne.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:J,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:O,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock(Ae._sfc_main,{key:`title_${K.value}`,config:{title:{cy:"treemap-div-title",...t.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(oe)||e.unref(U))?(e.openBlock(),e.createBlock(ke.UserOptions,{ref:"details",key:`user_option_${y.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(ne),isImaging:e.unref(re),uid:w.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,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:b.value,isTooltip:$.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:M.value,onToggleFullscreen:Pe,onGeneratePdf:e.unref(se),onGenerateCsv:me,onGenerateImage:e.unref(ue),onToggleTable:ye,onToggleTooltip:be,onToggleAnnotator:X,style:e.normalizeStyle({visibility:e.unref(oe)?e.unref(U)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:l,color:u})=>[e.renderSlot(o.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:l,color:u})),void 0,!0)]),key:"0"}:void 0,o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:u})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:u})),void 0,!0)]),key:"6"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:u})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:u})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:le,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!S.value,"vue-data-ui-zoom-minus":S.value}),viewBox:`${A.value.startX} ${A.value.startY} ${A.value.width<=0?10:A.value.width} ${A.value.height<=0?10:A.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Me._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",lt,[e.createElementVNode("radialGradient",{id:`tgrad_${l.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":l.color},null,8,nt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(l.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,rt)],8,at)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,u)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:he(l),width:pe(l),fill:f.value?l.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${l.id})`:l.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:N.value&&N.value.id===l.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":N.value&&N.value.id===l.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:m=>ze(l),onMouseenter:()=>_e({datapoint:l,seriesIndex:u}),onMouseleave:a[0]||(a[0]=m=>{N.value=null,C.value=!1}),style:e.normalizeStyle(`opacity:${N.value?N.value.id===l.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,st),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:he(l),width:pe(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",it,[t.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||S.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${E(l)/1.5}px);text-align:left;line-height:${E(l)<14?14:E(l)}px;padding:${E(l)/3}px; color:${e.unref(r.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(l.name),5),a[5]||(a[5]=e.createElementVNode("br",null,null,-1)),e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.layout.labels.rounding}),{datapoint:l})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"rect",e.mergeProps({ref_for:!0},{rect:l,shouldShow:l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||S.value,fontSize:E(l),isZoom:S.value,textColor:e.unref(r.adaptColorToBackground)(l.color)}),void 0,!0)])],8,ut))]))),256)),e.renderSlot(o.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:V.value,isZoom:S.value,rect:N.value,config:t.value})),void 0,!0)],14,ot)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ct,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ne)||e.unref(re)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ie.default,{key:6,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:T},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Fe.Legend,{key:`legend_${ee.value}`,legendSet:fe.value,config:Ve.value,id:`treemap_legend_${w.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>ge(l))},{item:e.withCtx(({legend:l,index:u})=>[e.createElementVNode("div",{onClick:m=>ge(l),style:e.normalizeStyle(`opacity:${g.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l}))+" ",1),g.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",ht," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",vt," ("+e.toDisplayString(isNaN(l.value/R.value)?"-":(l.value/R.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,dt)]),_:1},8,["legendSet","config","id"])):e.renderSlot(o.$slots,"legend",{key:1,legend:fe.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:Z,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Le._sfc_main,{show:$.value.showTooltip&&C.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:x.value,isFullscreen:b.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),p.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:$.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(De.DataTable,{key:`table_${Q.value}`,colNames:q.value.colNames,head:q.value.head,body:q.value.body,config:q.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>$.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,pt)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,tt))}},gt=Ge._export_sfc(ft,[["__scopeId","data-v-57b31c44"]]);exports.default=gt;
|