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"),r=require("./index-Crz6y51C.cjs"),le=require("./useNestedProp-B8CE091o.cjs"),ae=require("./usePrinter-Cqxw0sR7.cjs"),Ce=require("./PackageVersion-Dj3KQ8Ax.cjs"),we=require("./Legend-BB6S3gBp.cjs"),Be=require("./Title-BkwZ_rBI.cjs"),Se=require("./Tooltip-DhhX9jKQ.cjs"),_e=require("./DataTable-Dp7g_Ei4.cjs"),Ne=require("./vue-ui-accordion-10T9IdE-.cjs"),ze=require("./PenAndPaper-OCjAJH70.cjs"),$e=require("./vue-ui-skeleton-BZsFiqo5.cjs"),oe=require("./useResponsive-N8jl0-aC.cjs"),Le=require("./useUserOptionState-BgepsfED.cjs"),Ee=require("./useChartAccessibility-Cm7nkzTG.cjs"),Me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Te=["id"],Ae=["xmlns","viewBox"],Pe=["x","y","width","height"],Ve={key:1},Fe=["id"],Oe=["stop-color"],De=["stop-color"],Ie=["stop-color"],Xe={key:2},qe=["x1","x2","y1","y2","stroke","stroke-width"],Ye={key:3},Re=["x","y","fill","font-size"],je=["transform","font-size","fill","font-weight"],Ue={key:5},He=["x1","x2","y1","y2","stroke","stroke-width"],We={key:6},Ge=["transform","fill","font-size","text-anchor"],Ze=["x","y","font-size","fill","font-weight"],Je=["x1","x2","y1","y2","stroke","stroke-width"],Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["d","stroke","stroke-width"],et=["d","stroke","stroke-width"],tt=["cx","cy","fill","r"],lt=["cx","cy","fill","r","stroke","stroke-width"],at={key:1},ot=["x","y","font-size","fill","font-weight"],st={key:2},rt=["x","y","font-size","font-weight","fill"],nt=["cx","cy","r","onMouseenter","onClick"],it={key:5,class:"vue-data-ui-watermark"},ut=["onClick"],ct=["innerHTML"],vt={__name:"vue-ui-history-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(se,{expose:re,emit:ne}){const{vue_ui_history_plot:ie}=r.useConfig(),c=se,k=e.ref(null),M=e.ref(null),T=e.ref(0),A=e.ref(null),P=e.ref(0),V=e.ref(0),F=e.ref(0),w=e.ref(null),O=e.ref(null),b=e.ref(r.createUid()),N=e.ref(!1),z=e.ref(""),h=e.ref([]),B=e.ref(!1),m=e.ref(null),C=e.ref(!1),D=e.ref(null),y=e.computed({get:()=>!!c.dataset&&c.dataset.length,set:l=>l}),I=ne;e.onMounted(X),e.onBeforeUnmount(()=>{w.value&&w.value.disconnect()});function X(){if(r.objectIsEmpty(c.dataset)?r.error({componentName:"VueUiHistoryPlot",type:"dataset"}):c.dataset.forEach((l,o)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(a=>{y.value=!1,r.error({componentName:"VueUiHistoryPlot",type:"datasetSerieAttribute",property:a,index:o})})}),t.value.responsive){const l=oe.throttle(()=>{const{width:o,height:a}=oe.useResponsive({chart:k.value,title:t.value.style.chart.title.text?M.value:null,noTitle:O.value,legend:t.value.style.chart.legend.show?A.value:null,source:D.value});requestAnimationFrame(()=>{v.value.width=o,v.value.height=a,i.value.plots=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.radius,threshold:3,fallback:3}),i.value.indexLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.indexLabels.fontSize,threshold:6,fallback:6}),i.value.labels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.plots.labels.fontSize,threshold:6,fallback:6}),i.value.xAxisLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.x.labels.fontSize,threshold:6,fallback:6}),i.value.xAxisName=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.x.name.fontSize,threshold:6,fallback:6}),i.value.yAxisLabels=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.y.labels.fontSize,threshold:6,fallback:6}),i.value.yAxisName=r.translateSize({relator:Math.min(o,a),adjuster:600,source:t.value.style.chart.axes.y.name.fontSize,threshold:6,fallback:6})})});w.value=new ResizeObserver(l),w.value.observe(k.value.parentNode)}}function q(){const l=le.useNestedProp({userConfig:c.config,defaultConfig:ie});let o={};return l.theme?o={...le.useNestedProp({userConfig:r.themes.vue_ui_history_plot[l.theme]||c.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:o=l,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.x.scaleMin")?o.style.chart.axes.x.scaleMin=c.config.style.chart.axes.x.scaleMin:o.style.chart.axes.x.scaleMin=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.x.scaleMax")?o.style.chart.axes.x.scaleMax=c.config.style.chart.axes.x.scaleMax:o.style.chart.axes.x.scaleMax=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.y.scaleMin")?o.style.chart.axes.y.scaleMin=c.config.style.chart.axes.y.scaleMin:o.style.chart.axes.y.scaleMin=null,c.config&&r.hasDeepProperty(c.config,"style.chart.axes.y.scaleMax")?o.style.chart.axes.y.scaleMax=c.config.style.chart.axes.y.scaleMax:o.style.chart.axes.y.scaleMax=null,o}const t=e.computed({get:()=>q(),set:l=>l}),{userOptionsVisible:$,setUserOptionsVisibility:Y,keepUserOptionState:R}=Le.useUserOptionState({config:t.value}),{svgRef:j}=Ee.useChartAccessibility({config:t.value.style.chart.title});e.watch(()=>c.config,l=>{t.value=q(),$.value=!t.value.userOptions.showOnChartHover,X(),T.value+=1,V.value+=1,P.value+=1,v.value.height=t.value.style.chart.height,v.value.width=t.value.style.chart.width,i.value.plots=t.value.style.chart.plots.radius,i.value.indexLabels=t.value.style.chart.plots.indexLabels.fontSize,i.value.labels=t.value.style.chart.plots.labels.fontSize,i.value.xAxisLabels=t.value.style.chart.axes.x.labels.fontSize,i.value.xAxisName=t.value.style.chart.axes.x.name.fontSize,i.value.yAxisLabels=t.value.style.chart.axes.y.labels.fontSize,i.value.yAxisName=t.value.style.chart.axes.y.name.fontSize,f.value.showTable=t.value.table.show,f.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0});const{isPrinting:U,isImaging:H,generatePdf:W,generateImage:G}=ae.usePrinter({elementId:`history_plot_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-history-plot",options:t.value.userOptions.print}),ue=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),ce=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),f=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),v=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),n=e.computed(()=>{const l=t.value.style.chart.padding.left,o=t.value.style.chart.padding.top;return{left:l,top:o,right:v.value.width-t.value.style.chart.padding.right,bottom:v.value.height-t.value.style.chart.padding.bottom,width:v.value.width-l-t.value.style.chart.padding.right,height:v.value.height-o-t.value.style.chart.padding.bottom}}),i=e.ref({plots:t.value.style.chart.plots.radius,indexLabels:t.value.style.chart.plots.indexLabels.fontSize,labels:t.value.style.chart.plots.labels.fontSize,xAxisLabels:t.value.style.chart.axes.x.labels.fontSize,xAxisName:t.value.style.chart.axes.x.name.fontSize,yAxisLabels:t.value.style.chart.axes.y.labels.fontSize,yAxisName:t.value.style.chart.axes.y.name.fontSize}),x=e.computed(()=>y.value?c.dataset.map((l,o)=>({...l,color:l.color?r.convertColorToHex(l.color):ce.value[o]||r.palette[o]||r.palette[o%r.palette.length],seriesIndex:o})):[]),ve=e.computed(()=>y.value?Math.max(...x.value.filter(l=>!h.value.includes(l.seriesIndex)).flatMap(l=>l.values.map(o=>o.x))):1),de=e.computed(()=>{if(!y.value)return 1;const l=Math.min(...x.value.filter(o=>!h.value.includes(o.seriesIndex)).flatMap(o=>o.values.map(a=>a.x)));return l<0?l:0}),he=e.computed(()=>y.value?Math.max(...x.value.filter(l=>!h.value.includes(l.seriesIndex)).flatMap(l=>l.values.map(o=>o.y))):1),ye=e.computed(()=>{if(!y.value)return 1;const l=Math.min(...x.value.filter(o=>!h.value.includes(o.seriesIndex)).flatMap(o=>o.values.map(a=>a.y)));return l<0?l:0}),d=e.computed(()=>{const l=r.calculateNiceScale(t.value.style.chart.axes.x.scaleMin===null?de.value:t.value.style.chart.axes.x.scaleMin,t.value.style.chart.axes.x.scaleMax===null?ve.value:t.value.style.chart.axes.x.scaleMax,t.value.style.chart.axes.x.ticks),o=r.calculateNiceScale(t.value.style.chart.axes.y.scaleMin===null?ye.value:t.value.style.chart.axes.y.scaleMin,t.value.style.chart.axes.y.scaleMax===null?he.value:t.value.style.chart.axes.y.scaleMax,t.value.style.chart.axes.y.ticks);return{x:l,y:o,tickX:l.ticks.map(a=>({x:n.value.left+(a-l.min)/(l.max-l.min)*n.value.width,y1:n.value.top,y2:n.value.bottom,value:a})),tickY:o.ticks.map(a=>({y:n.value.bottom-(a-o.min)/(o.max-o.min)*n.value.height,x1:n.value.left,x2:n.value.right,value:a}))}});function fe(l){const o=d.value.x.min<0?Math.abs(d.value.x.min):d.value.x.min>0?-d.value.x.min:0;return n.value.left+((l||0)+o)/(d.value.x.max+o)*n.value.width}function pe(l){const o=d.value.y.min<0?Math.abs(d.value.y.min):d.value.y.min>0?-d.value.y.min:0;return n.value.bottom-((l||0)+o)/(d.value.y.max+o)*n.value.height}const g=e.computed(()=>x.value.filter(l=>!h.value.includes(l.seriesIndex)).map((l,o)=>{const a=l.values.map((s,p)=>({valueX:s.x,valueY:s.y,label:s.label,x:fe(s.x),y:pe(s.y),color:l.color,seriesName:l.name,id:r.createUid()})),u=a.map(s=>`${s.x},${s.y} `).join("").trim();return{...l,plots:a,path:`M${u}`}}));function Z(l){h.value.includes(l)?h.value=h.value.filter(o=>o!==l):h.value.push(l)}const J=e.computed(()=>x.value.map(l=>({...l,opacity:h.value.includes(l.seriesIndex)?.5:1,segregate:()=>Z(l.seriesIndex),isSegregated:h.value.includes(l.seriesIndex),shape:"circle"}))),me=e.computed(()=>({cy:"history-plot-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 xe(l){I("selectDatapoint",l)}function K(l){I("selectLegend",{...l,isSegregated:!l.isSegregated,opacity:l.isSegregated?1:.5})}function ge(l){B.value=l,F.value+=1}const L=e.ref(null);function ke({datapoint:l,plotIndex:o,seriesIndex:a}){L.value={datapoint:l,seriesIndex:a,plotIndex:o,config:t.value,series:x.value},m.value=l;const u=t.value.style.chart.tooltip.customFormat;if(C.value=!1,r.isFunction(u))try{const s=u({seriesIndex:a,datapoint:l,plotIndex:o,series:x.value,config:t.value});typeof s=="string"&&(z.value=s,C.value=!0)}catch{console.warn("Custom format cannot be applied."),C.value=!1}if(!C.value){let s="";s+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${l.color}"/></svg><span>${l.seriesName}</span></div>`,s+=`<div>${l.label}</div>`,s+=`<div>${t.value.style.chart.axes.x.name.text||"x"}: ${r.applyDataLabel(t.value.style.chart.axes.x.labels.formatter,l.valueX,r.dataLabel({p:t.value.style.chart.axes.x.labels.prefix,v:l.valueX,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding}))}</div>`,s+=`<div>${t.value.style.chart.axes.y.name.text||"y"}: ${r.applyDataLabel(t.value.style.chart.axes.y.labels.formatter,l.valueY,r.dataLabel({p:t.value.style.chart.axes.y.labels.prefix,v:l.valueY,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))}</div>`,z.value=`<div>${s}</div>`}N.value=!0}e.computed(()=>({head:g.value.map(o=>({name:o.name,color:o.color}))}));const S=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.datapoint,t.value.table.columnNames.x,t.value.table.columnNames.y],o=g.value.flatMap(u=>u.plots.map(s=>[{color:s.color,name:s.seriesName},s.label,r.applyDataLabel(t.value.style.chart.axes.x.labels.formatter,s.valueX,r.dataLabel({p:t.value.style.chart.axes.x.labels.prefix,v:s.valueX,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding})),r.applyDataLabel(t.value.style.chart.axes.y.labels.formatter,s.valueY,r.dataLabel({p:t.value.style.chart.axes.y.labels.prefix,v:s.valueY,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))])),a={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{head:l,body:o,config:a,colNames:l}});function Q(){e.nextTick(()=>{const l=[[t.value.table.columnNames.series],[t.value.table.columnNames.datapoint],[t.value.table.columnNames.x],[t.value.table.columnNames.y]],o=g.value.flatMap(s=>s.plots.map(p=>[[p.seriesName],[p.label],[p.valueX],[p.valueY]])),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],l].concat(o),u=r.createCsvContent(a);r.downloadCsv({csvContent:u,title:t.value.style.chart.title.text||"vue-ui-history-plot"})})}const _=e.ref(!1);function E(){_.value=!_.value}function ee(){f.value.showTable=!f.value.showTable}function te(){f.value.showTooltip=!f.value.showTooltip}function be(){return g.value}return re({getData:be,generatePdf:W,generateCsv:Q,generateImage:G,toggleTable:ee,toggleTooltip:te,toggleAnnotator:E}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{id:`history_plot_${b.value}`,ref_key:"historyPlotChart",ref:k,class:e.normalizeClass({"vue-ui-history-plot":!0,"vue-data-ui-wrapper-fullscreen":B.value}),style:e.normalizeStyle(`background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color};font-family:${t.value.style.fontFamily}; position: relative; ${t.value.responsive?"height: 100%":""}`),onMouseenter:o[3]||(o[3]=()=>e.unref(Y)(!0)),onMouseleave:o[4]||(o[4]=()=>e.unref(Y)(!1))},[e.renderSlot(l.$slots,"userConfig",{},void 0,!0),t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ze.PenAndPaper,{key:0,svgRef:e.unref(j),backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:_.value,onClose:E},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ue.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:O,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:M,class:"vue-ui-xy-title",style:e.normalizeStyle(`font-family:${t.value.style.fontFamily}`)},[(e.openBlock(),e.createBlock(Be._sfc_main,{key:`title_${T.value}`,config:{title:{cy:"history-plot-div-title",...t.value.style.chart.title},subtitle:{cy:"history-plot-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&y.value&&(e.unref(R)||e.unref($))?(e.openBlock(),e.createBlock(ae.UserOptions,{ref:"details",key:`user_option_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(U),isImaging:e.unref(H),uid:b.value,hasTooltip:t.value.style.chart.tooltip.show&&t.value.userOptions.buttons.tooltip,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasLabel:!1,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:B.value,chartElement:k.value,position:t.value.userOptions.position,isTooltip:f.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:_.value,onToggleFullscreen:ge,onGeneratePdf:e.unref(W),onGenerateCsv:Q,onGenerateImage:e.unref(G),onToggleTable:ee,onToggleTooltip:te,onToggleAnnotator:E,style:e.normalizeStyle({visibility:e.unref(R)?e.unref($)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:u})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:u})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:u})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:u})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:u})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:u})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isFullscreen","chartElement","position","isTooltip","titles","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:j,xmlns:e.unref(r.XMLNS),viewBox:`0 0 ${v.value.width<0?.1:v.value.width} ${v.value.height<0?.1:v.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ce._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:n.value.left,y:n.value.top,width:n.value.width<=0?10:n.value.width,height:n.value.height<=0?10:n.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Pe)):e.createCommentVNode("",!0),t.value.style.chart.plots.gradient.show?(e.openBlock(),e.createElementBlock("defs",Ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,u)=>(e.openBlock(),e.createElementBlock("radialGradient",{id:`gradient_${u}_${b.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(a.color,t.value.style.chart.plots.gradient.intensity/100)},null,8,Oe),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(a.color,.1)},null,8,De),e.createElementVNode("stop",{offset:"100%","stop-color":a.color},null,8,Ie)],8,Fe))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalLines.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickX,a=>(e.openBlock(),e.createElementBlock("line",{x1:a.x,x2:a.x,y1:a.y1,y2:a.y2,stroke:t.value.style.chart.grid.verticalLines.stroke,"stroke-width":t.value.style.chart.grid.verticalLines.strokeWidth,"stroke-linecap":"round"},null,8,qe))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.y.labels.show?(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickY,a=>(e.openBlock(),e.createElementBlock("text",{x:n.value.left+t.value.style.chart.axes.y.labels.offsetX-4,y:a.y+i.value.yAxisLabels/3,fill:t.value.style.chart.axes.y.labels.color,"font-size":i.value.yAxisLabels,"text-anchor":"end"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.axes.y.labels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.axes.y.labels.prefix,v:a.value,s:t.value.style.chart.axes.y.labels.suffix,r:t.value.style.chart.axes.y.labels.rounding}))),9,Re))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.y.name.text?(e.openBlock(),e.createElementBlock("text",{key:4,transform:`translate(${t.value.style.chart.axes.y.name.offsetX+i.value.yAxisName}, ${v.value.height/2+t.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,"font-size":i.value.yAxisName,fill:t.value.style.chart.axes.y.name.color,"font-weight":t.value.style.chart.axes.y.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.axes.y.name.text),9,je)):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalLines.show?(e.openBlock(),e.createElementBlock("g",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickY,a=>(e.openBlock(),e.createElementBlock("line",{x1:a.x1,x2:a.x2,y1:a.y,y2:a.y,stroke:t.value.style.chart.grid.horizontalLines.stroke,"stroke-width":t.value.style.chart.grid.horizontalLines.strokeWidth,"stroke-linecap":"round"},null,8,He))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.x.labels.show?(e.openBlock(),e.createElementBlock("g",We,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value.tickX,a=>(e.openBlock(),e.createElementBlock("text",{transform:`translate(${a.x}, ${n.value.bottom+t.value.style.chart.axes.x.labels.offsetY+i.value.xAxisLabels}), rotate(${t.value.style.chart.axes.x.labels.rotation})`,fill:t.value.style.chart.axes.x.labels.color,"font-size":i.value.xAxisLabels,"text-anchor":t.value.style.chart.axes.x.labels.rotation>0?"start":t.value.style.chart.axes.x.labels.rotation<0?"end":"middle"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.axes.x.labels.formatter,a.value,e.unref(r.dataLabel)({p:t.value.style.chart.axes.x.labels.prefix,v:a.value,s:t.value.style.chart.axes.x.labels.suffix,r:t.value.style.chart.axes.x.labels.rounding}))),9,Ge))),256))])):e.createCommentVNode("",!0),t.value.style.chart.axes.x.name.text?(e.openBlock(),e.createElementBlock("text",{key:7,x:v.value.width/2+t.value.style.chart.axes.x.name.offsetX,y:v.value.height+t.value.style.chart.axes.x.name.offsetY,"font-size":i.value.xAxisName,fill:t.value.style.chart.axes.x.name.color,"font-weight":t.value.style.chart.axes.x.name.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(t.value.style.chart.axes.x.name.text),9,Ze)):e.createCommentVNode("",!0),t.value.style.chart.grid.xAxis.show?(e.openBlock(),e.createElementBlock("line",{key:8,x1:n.value.left,x2:n.value.left+n.value.width,y1:n.value.bottom,y2:n.value.bottom,stroke:t.value.style.chart.grid.xAxis.stroke,"stroke-width":t.value.style.chart.grid.xAxis.strokeWidth,"stroke-linecap":"round"},null,8,Je)):e.createCommentVNode("",!0),t.value.style.chart.grid.yAxis.show?(e.openBlock(),e.createElementBlock("line",{key:9,x1:n.value.left,x2:n.value.left,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.chart.grid.yAxis.stroke,"stroke-width":t.value.style.chart.grid.yAxis.strokeWidth,"stroke-linecap":"round"},null,8,Ke)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(a,u)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.paths.show?(e.openBlock(),e.createElementBlock("g",{key:0,style:e.normalizeStyle({opacity:m.value===null?1:.3})},[e.createElementVNode("path",{d:a.path,stroke:t.value.style.chart.backgroundColor,"stroke-width":t.value.style.chart.paths.strokeWidth+4,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,Qe),e.createElementVNode("path",{d:a.path,stroke:t.value.style.chart.paths.useSerieColor?a.color:t.value.style.chart.paths.stroke,"stroke-width":t.value.style.chart.paths.strokeWidth,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({animated:t.value.useCssAnimation})},null,10,et)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:t.value.style.chart.backgroundColor,r:i.value.plots,stroke:"none"},null,8,tt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("circle",{cx:s.x,cy:s.y,fill:t.value.style.chart.plots.gradient.show?`url(#gradient_${u}_${b.value})`:s.color,r:i.value.plots,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth,class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:m.value===null||m.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},null,14,lt))),256)),t.value.style.chart.plots.labels.show?(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,s=>(e.openBlock(),e.createElementBlock("text",{x:s.x+t.value.style.chart.plots.labels.offsetX,y:s.y+t.value.style.chart.plots.labels.offsetY+i.value.plots+i.value.labels,"font-size":i.value.labels,fill:t.value.style.chart.plots.labels.color,"font-weight":t.value.style.chart.plots.labels.bold?"bold":"normal","text-anchor":"middle",class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:m.value===null||m.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},e.toDisplayString(s.label),15,ot))),256))])):e.createCommentVNode("",!0),t.value.style.chart.plots.indexLabels.show?(e.openBlock(),e.createElementBlock("g",st,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(s,p)=>(e.openBlock(),e.createElementBlock("text",{x:s.x+t.value.style.chart.plots.indexLabels.offsetX,y:s.y+t.value.style.chart.plots.indexLabels.offsetY+i.value.indexLabels/3,"font-size":i.value.indexLabels,"font-weight":t.value.style.chart.plots.indexLabels.bold?"bold":"normal",fill:t.value.style.chart.plots.indexLabels.adaptColorToBackground?e.unref(r.adaptColorToBackground)(a.color):t.value.style.chart.plots.indexLabels.color,"text-anchor":"middle",class:e.normalizeClass({animated:t.value.useCssAnimation}),style:e.normalizeStyle({opacity:m.value===null||m.value.id===s.id?1:.3,transition:"opacity 0.2s ease-in-out"})},e.toDisplayString(t.value.style.chart.plots.indexLabels.startAtZero?p:p+1),15,rt))),256))])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,a=>(e.openBlock(),e.createElementBlock("g",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(u,s)=>(e.openBlock(),e.createElementBlock("circle",{cx:u.x,cy:u.y,fill:"transparent",r:i.value.plots,stroke:"none",onMouseenter:p=>ke({datapoint:u,plotIndex:s,seriesIndex:a.seriesIndex}),onMouseleave:o[0]||(o[0]=p=>{N.value=!1,m.value=null}),onClick:()=>xe(u)},null,40,nt))),256))]))),256)),e.renderSlot(l.$slots,"svg",{svg:v.value},void 0,!0)],12,Ae)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(U)||e.unref(H)})),void 0,!0)])):e.createCommentVNode("",!0),y.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($e.default,{key:6,config:{type:"historyPlot",style:{backgroundColor:t.value.style.chart.backgroundColor,historyPlot:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:A},[t.value.style.chart.legend.show&&y.value?(e.openBlock(),e.createBlock(we.Legend,{key:`legend_${P.value}`,legendSet:J.value,config:me.value,onClickMarker:o[1]||(o[1]=({legend:a})=>{Z(a.seriesIndex),K(a)})},{item:e.withCtx(({legend:a,index:u})=>[e.createElementVNode("div",{onClick:s=>{a.segregate(),K(a)},style:e.normalizeStyle(`opacity:${h.value.includes(a.seriesIndex)?.5:1}`)},e.toDisplayString(a.name),13,ut)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:J.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:D,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Se._sfc_main,{show:f.value.showTooltip&&N.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:z.value,isCustom:C.value,isFullscreen:B.value},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isCustom","isFullscreen"]),y.value?(e.openBlock(),e.createBlock(Ne.default,{key:8,hideDetails:"",config:{open:f.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(_e.DataTable,{key:`table_${V.value}`,colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:o[2]||(o[2]=a=>f.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createElementVNode("div",{innerHTML:a,style:{display:"flex","align-items":"center"}},null,8,ct)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a.name||a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Te))}},dt=Me._export_sfc(vt,[["__scopeId","data-v-56983f81"]]);exports.default=dt;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ref as c, computed as f, onMounted as We, onBeforeUnmount as He, watch as Ee, createElementBlock as r, openBlock as s, unref as h, normalizeStyle as M, normalizeClass as
|
|
2
|
-
import { u as Ze, c as Ce, o as Je, e as _e, g as Ke, b as Qe, d as et, p as H, D as $e, i as F, f as X, X as tt, l as lt, h as at, G as st, F as N, t as ot, a as rt, C as E, q as nt, r as ut, x as it } from "./index-
|
|
3
|
-
import { u as Me } from "./useNestedProp-
|
|
4
|
-
import { u as ct, U as vt } from "./usePrinter-
|
|
5
|
-
import { _ as ht } from "./PackageVersion-
|
|
6
|
-
import { L as yt } from "./Legend-
|
|
7
|
-
import { _ as dt } from "./Title-
|
|
8
|
-
import { _ as ft } from "./Tooltip-
|
|
9
|
-
import { D as xt } from "./DataTable-
|
|
10
|
-
import pt from "./vue-ui-accordion-
|
|
11
|
-
import { P as mt } from "./PenAndPaper-
|
|
12
|
-
import gt from "./vue-ui-skeleton-
|
|
1
|
+
import { ref as c, computed as f, onMounted as We, onBeforeUnmount as He, watch as Ee, createElementBlock as r, openBlock as s, unref as h, normalizeStyle as M, normalizeClass as O, renderSlot as x, createBlock as z, createCommentVNode as v, createElementVNode as T, createVNode as we, createSlots as Ge, withCtx as m, normalizeProps as I, guardReactiveProps as P, Fragment as b, renderList as k, toDisplayString as L, createTextVNode as Ve, nextTick as qe } from "vue";
|
|
2
|
+
import { u as Ze, c as Ce, o as Je, e as _e, g as Ke, b as Qe, d as et, p as H, D as $e, i as F, f as X, X as tt, l as lt, h as at, G as st, F as N, t as ot, a as rt, C as E, q as nt, r as ut, x as it } from "./index-DWsIpwzs.js";
|
|
3
|
+
import { u as Me } from "./useNestedProp-Bole8bsm.js";
|
|
4
|
+
import { u as ct, U as vt } from "./usePrinter-B8LELMkA.js";
|
|
5
|
+
import { _ as ht } from "./PackageVersion-Cz-oD7U6.js";
|
|
6
|
+
import { L as yt } from "./Legend-BB51QBPV.js";
|
|
7
|
+
import { _ as dt } from "./Title-y0r2c8bY.js";
|
|
8
|
+
import { _ as ft } from "./Tooltip-CbWEnMUw.js";
|
|
9
|
+
import { D as xt } from "./DataTable-B_PZ5EQ5.js";
|
|
10
|
+
import pt from "./vue-ui-accordion-WrimcQK1.js";
|
|
11
|
+
import { P as mt } from "./PenAndPaper-DOTH2X_u.js";
|
|
12
|
+
import gt from "./vue-ui-skeleton-DDZb9FFJ.js";
|
|
13
13
|
import { t as bt, u as kt } from "./useResponsive-vZgZwV-S.js";
|
|
14
14
|
import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
15
|
import { u as Ct } from "./useChartAccessibility-BWojgys7.js";
|
|
16
16
|
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"], Tt = { key: 1 }, Lt = ["id"], St = ["stop-color"], zt = ["stop-color"], Nt = ["stop-color"],
|
|
17
|
+
const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"], Tt = { key: 1 }, Lt = ["id"], St = ["stop-color"], zt = ["stop-color"], Nt = ["stop-color"], Ot = { key: 2 }, It = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pt = { key: 3 }, Ft = ["x", "y", "fill", "font-size"], Xt = ["transform", "font-size", "fill", "font-weight"], Dt = { key: 5 }, Yt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = { key: 6 }, Bt = ["transform", "fill", "font-size", "text-anchor"], Rt = ["x", "y", "font-size", "fill", "font-weight"], Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Wt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["d", "stroke", "stroke-width"], Et = ["d", "stroke", "stroke-width"], Gt = ["cx", "cy", "fill", "r"], Vt = ["cx", "cy", "fill", "r", "stroke", "stroke-width"], qt = { key: 1 }, Zt = ["x", "y", "font-size", "fill", "font-weight"], Jt = { key: 2 }, Kt = ["x", "y", "font-size", "font-weight", "fill"], Qt = ["cx", "cy", "r", "onMouseenter", "onClick"], el = {
|
|
18
18
|
key: 5,
|
|
19
19
|
class: "vue-data-ui-watermark"
|
|
20
20
|
}, tl = ["onClick"], ll = ["innerHTML"], al = {
|
|
@@ -139,7 +139,8 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
139
139
|
}, { deep: !0 });
|
|
140
140
|
const { isPrinting: he, isImaging: ye, generatePdf: de, generateImage: fe } = ct({
|
|
141
141
|
elementId: `history_plot_${Y.value}`,
|
|
142
|
-
fileName: e.value.style.chart.title.text || "vue-ui-history-plot"
|
|
142
|
+
fileName: e.value.style.chart.title.text || "vue-ui-history-plot",
|
|
143
|
+
options: e.value.userOptions.print
|
|
143
144
|
}), ze = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ne = f(() => Qe(e.value.customPalette)), C = c({
|
|
144
145
|
showTable: e.value.table.show,
|
|
145
146
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -168,7 +169,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
168
169
|
...t,
|
|
169
170
|
color: t.color ? et(t.color) : Ne.value[a] || H[a] || H[a % H.length],
|
|
170
171
|
seriesIndex: a
|
|
171
|
-
})) : []),
|
|
172
|
+
})) : []), Oe = f(() => w.value ? Math.max(...A.value.filter((t) => !g.value.includes(t.seriesIndex)).flatMap((t) => t.values.map((a) => a.x))) : 1), Ie = f(() => {
|
|
172
173
|
if (!w.value) return 1;
|
|
173
174
|
const t = Math.min(...A.value.filter((a) => !g.value.includes(a.seriesIndex)).flatMap((a) => a.values.map((l) => l.x)));
|
|
174
175
|
return t < 0 ? t : 0;
|
|
@@ -178,8 +179,8 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
178
179
|
return t < 0 ? t : 0;
|
|
179
180
|
}), p = f(() => {
|
|
180
181
|
const t = $e(
|
|
181
|
-
e.value.style.chart.axes.x.scaleMin === null ?
|
|
182
|
-
e.value.style.chart.axes.x.scaleMax === null ?
|
|
182
|
+
e.value.style.chart.axes.x.scaleMin === null ? Ie.value : e.value.style.chart.axes.x.scaleMin,
|
|
183
|
+
e.value.style.chart.axes.x.scaleMax === null ? Oe.value : e.value.style.chart.axes.x.scaleMax,
|
|
183
184
|
e.value.style.chart.axes.x.ticks
|
|
184
185
|
), a = $e(
|
|
185
186
|
e.value.style.chart.axes.y.scaleMin === null ? Fe.value : e.value.style.chart.axes.y.scaleMin,
|
|
@@ -403,7 +404,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
403
404
|
id: `history_plot_${Y.value}`,
|
|
404
405
|
ref_key: "historyPlotChart",
|
|
405
406
|
ref: D,
|
|
406
|
-
class:
|
|
407
|
+
class: O({ "vue-ui-history-plot": !0, "vue-data-ui-wrapper-fullscreen": R.value }),
|
|
407
408
|
style: M(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
408
409
|
onMouseenter: a[3] || (a[3] = () => h(ie)(!0)),
|
|
409
410
|
onMouseleave: a[4] || (a[4] = () => h(ie)(!1))
|
|
@@ -481,7 +482,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
481
482
|
t.$slots.menuIcon ? {
|
|
482
483
|
name: "menuIcon",
|
|
483
484
|
fn: m(({ isOpen: l, color: i }) => [
|
|
484
|
-
x(t.$slots, "menuIcon",
|
|
485
|
+
x(t.$slots, "menuIcon", I(P({ isOpen: l, color: i })), void 0, !0)
|
|
485
486
|
]),
|
|
486
487
|
key: "0"
|
|
487
488
|
} : void 0,
|
|
@@ -523,14 +524,14 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
523
524
|
t.$slots.optionFullscreen ? {
|
|
524
525
|
name: "optionFullscreen",
|
|
525
526
|
fn: m(({ toggleFullscreen: l, isFullscreen: i }) => [
|
|
526
|
-
x(t.$slots, "optionFullscreen",
|
|
527
|
+
x(t.$slots, "optionFullscreen", I(P({ toggleFullscreen: l, isFullscreen: i })), void 0, !0)
|
|
527
528
|
]),
|
|
528
529
|
key: "6"
|
|
529
530
|
} : void 0,
|
|
530
531
|
t.$slots.optionAnnotator ? {
|
|
531
532
|
name: "optionAnnotator",
|
|
532
533
|
fn: m(({ toggleAnnotator: l, isAnnotator: i }) => [
|
|
533
|
-
x(t.$slots, "optionAnnotator",
|
|
534
|
+
x(t.$slots, "optionAnnotator", I(P({ toggleAnnotator: l, isAnnotator: i })), void 0, !0)
|
|
534
535
|
]),
|
|
535
536
|
key: "7"
|
|
536
537
|
} : void 0
|
|
@@ -575,7 +576,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
575
576
|
}, null, 8, Nt)
|
|
576
577
|
], 8, Lt))), 256))
|
|
577
578
|
])) : v("", !0),
|
|
578
|
-
e.value.style.chart.grid.verticalLines.show ? (s(), r("g",
|
|
579
|
+
e.value.style.chart.grid.verticalLines.show ? (s(), r("g", Ot, [
|
|
579
580
|
(s(!0), r(b, null, k(p.value.tickX, (l) => (s(), r("line", {
|
|
580
581
|
x1: l.x,
|
|
581
582
|
x2: l.x,
|
|
@@ -584,7 +585,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
584
585
|
stroke: e.value.style.chart.grid.verticalLines.stroke,
|
|
585
586
|
"stroke-width": e.value.style.chart.grid.verticalLines.strokeWidth,
|
|
586
587
|
"stroke-linecap": "round"
|
|
587
|
-
}, null, 8,
|
|
588
|
+
}, null, 8, It))), 256))
|
|
588
589
|
])) : v("", !0),
|
|
589
590
|
e.value.style.chart.axes.y.labels.show ? (s(), r("g", Pt, [
|
|
590
591
|
(s(!0), r(b, null, k(p.value.tickY, (l) => (s(), r("text", {
|
|
@@ -683,7 +684,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
683
684
|
fill: "none",
|
|
684
685
|
"stroke-linecap": "round",
|
|
685
686
|
"stroke-linejoin": "round",
|
|
686
|
-
class:
|
|
687
|
+
class: O({ animated: e.value.useCssAnimation })
|
|
687
688
|
}, null, 10, Ht),
|
|
688
689
|
T("path", {
|
|
689
690
|
d: l.path,
|
|
@@ -692,7 +693,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
692
693
|
fill: "none",
|
|
693
694
|
"stroke-linecap": "round",
|
|
694
695
|
"stroke-linejoin": "round",
|
|
695
|
-
class:
|
|
696
|
+
class: O({ animated: e.value.useCssAnimation })
|
|
696
697
|
}, null, 10, Et)
|
|
697
698
|
], 4)) : v("", !0),
|
|
698
699
|
(s(!0), r(b, null, k(l.plots, (o) => (s(), r("circle", {
|
|
@@ -709,7 +710,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
709
710
|
r: u.value.plots,
|
|
710
711
|
stroke: e.value.style.chart.plots.stroke,
|
|
711
712
|
"stroke-width": e.value.style.chart.plots.strokeWidth,
|
|
712
|
-
class:
|
|
713
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
713
714
|
style: M({
|
|
714
715
|
opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
|
|
715
716
|
transition: "opacity 0.2s ease-in-out"
|
|
@@ -723,7 +724,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
723
724
|
fill: e.value.style.chart.plots.labels.color,
|
|
724
725
|
"font-weight": e.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
725
726
|
"text-anchor": "middle",
|
|
726
|
-
class:
|
|
727
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
727
728
|
style: M({
|
|
728
729
|
opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
|
|
729
730
|
transition: "opacity 0.2s ease-in-out"
|
|
@@ -738,7 +739,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
738
739
|
"font-weight": e.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
739
740
|
fill: e.value.style.chart.plots.indexLabels.adaptColorToBackground ? h(st)(l.color) : e.value.style.chart.plots.indexLabels.color,
|
|
740
741
|
"text-anchor": "middle",
|
|
741
|
-
class:
|
|
742
|
+
class: O({ animated: e.value.useCssAnimation }),
|
|
742
743
|
style: M({
|
|
743
744
|
opacity: $.value === null || $.value.id === o.id ? 1 : 0.3,
|
|
744
745
|
transition: "opacity 0.2s ease-in-out"
|
|
@@ -767,7 +768,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
767
768
|
x(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
768
769
|
], 12, Mt)) : v("", !0),
|
|
769
770
|
t.$slots.watermark ? (s(), r("div", el, [
|
|
770
|
-
x(t.$slots, "watermark",
|
|
771
|
+
x(t.$slots, "watermark", I(P({ isPrinting: h(he) || h(ye) })), void 0, !0)
|
|
771
772
|
])) : v("", !0),
|
|
772
773
|
w.value ? v("", !0) : (s(), z(gt, {
|
|
773
774
|
key: 6,
|
|
@@ -832,10 +833,10 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
832
833
|
isFullscreen: R.value
|
|
833
834
|
}, {
|
|
834
835
|
"tooltip-before": m(() => [
|
|
835
|
-
x(t.$slots, "tooltip-before",
|
|
836
|
+
x(t.$slots, "tooltip-before", I(P({ ...Z.value })), void 0, !0)
|
|
836
837
|
]),
|
|
837
838
|
"tooltip-after": m(() => [
|
|
838
|
-
x(t.$slots, "tooltip-after",
|
|
839
|
+
x(t.$slots, "tooltip-after", I(P({ ...Z.value })), void 0, !0)
|
|
839
840
|
]),
|
|
840
841
|
_: 3
|
|
841
842
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
@@ -881,7 +882,7 @@ const $t = ["id"], Mt = ["xmlns", "viewBox"], At = ["x", "y", "width", "height"]
|
|
|
881
882
|
}, 8, ["config"])) : v("", !0)
|
|
882
883
|
], 46, $t));
|
|
883
884
|
}
|
|
884
|
-
}, bl = /* @__PURE__ */ _t(al, [["__scopeId", "data-v-
|
|
885
|
+
}, bl = /* @__PURE__ */ _t(al, [["__scopeId", "data-v-56983f81"]]);
|
|
885
886
|
export {
|
|
886
887
|
bl as default
|
|
887
888
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as D, useSlots as x, onMounted as g, watch as C, ref as $, createElementBlock as i, openBlock as s, normalizeStyle as u, normalizeClass as r, createElementVNode as k, renderSlot as n, createTextVNode as y, toDisplayString as h, createVNode as z, Fragment as A, unref as b } from "vue";
|
|
2
|
-
import { u as w } from "./useNestedProp-
|
|
3
|
-
import { u as B, i as L, f as M } from "./index-
|
|
4
|
-
import E from "./vue-ui-digits-
|
|
2
|
+
import { u as w } from "./useNestedProp-Bole8bsm.js";
|
|
3
|
+
import { u as B, i as L, f as M } from "./index-DWsIpwzs.js";
|
|
4
|
+
import E from "./vue-ui-digits-B2qzXXO6.js";
|
|
5
5
|
const G = {
|
|
6
6
|
__name: "vue-ui-kpi",
|
|
7
7
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./useNestedProp-B8CE091o.cjs"),u=require("./index-Crz6y51C.cjs"),y=require("./vue-ui-digits-BKR62-KQ.cjs"),C={__name:"vue-ui-kpi",props:{config:{type:Object,default(){return{}}},dataset:{type:Number,default:0}},setup(n){const{vue_ui_kpi:m}=u.useConfig(),o=n,a=e.computed({get:()=>i(),set:t=>t}),f=e.useSlots();e.onMounted(()=>{f["chart-background"]&&console.warn("VueUiKpi does not support the #chart-background slot.")});function i(){return p.useNestedProp({userConfig:o.config,defaultConfig:m})}e.watch(()=>o.config,t=>{a.value=i(),r()},{deep:!0});const g=e.ref((typeof o.dataset=="number",o.dataset)),l=e.ref(a.value.useAnimation?a.value.animationValueStart:g.value),s=t=>{const v=a.value.animationFrames,c=Math.abs(t-l.value)/v;function d(){l.value<t?l.value=Math.min(l.value+c,t):l.value>t&&(l.value=Math.max(l.value-c,t)),l.value!==t&&requestAnimationFrame(d)}d()};e.onMounted(()=>{r()});function r(){a.value.useAnimation?(l.value=a.value.animationValueStart,s(o.dataset)):l.value=o.dataset}return e.watch(()=>o.dataset,t=>{a.value.useAnimation?s(t):l.value=t}),(t,v)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-kpi ${a.value.layoutClass}`),style:e.normalizeStyle(`background:${a.value.backgroundColor}; ${a.value.layoutCss}`)},[e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-title ${a.value.titleClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.titleFontSize}px; color:${a.value.titleColor}; font-weight:${a.value.titleBold?"bold":"normal"}; ${a.value.titleCss}`)},[e.renderSlot(t.$slots,"title",{comment:n.dataset}),e.createTextVNode(" "+e.toDisplayString(a.value.title),1)],6),e.renderSlot(t.$slots,"comment-before",{comment:n.dataset}),e.createElementVNode("div",{class:e.normalizeClass(`vue-ui-kpi-value ${a.value.valueClass}`),style:e.normalizeStyle(`font-family: ${a.value.fontFamily}; font-size:${a.value.valueFontSize}px; color:${a.value.valueColor}; font-weight:${a.value.valueBold?"bold":"normal"}; ${a.value.valueCss}`)},[e.renderSlot(t.$slots,"value",{comment:n.dataset}),a.value.analogDigits.show?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({height:a.value.analogDigits.height+"px"})},[e.createVNode(y.default,{dataset:Number(l.value.toFixed(a.value.valueRounding)),config:{backgroundColor:a.value.backgroundColor,digits:{color:a.value.analogDigits.color,skeletonColor:a.value.analogDigits.skeletonColor}}},null,8,["dataset","config"])],4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(u.applyDataLabel)(a.value.formatter,l.value,e.unref(u.dataLabel)({p:a.value.prefix,v:l.value,s:a.value.suffix,r:a.value.valueRounding}))),1)],64))],6),e.renderSlot(t.$slots,"comment-after",{comment:n.dataset})],6))}};exports.default=C;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCssVars as h, computed as r, ref as f, createElementBlock as n, openBlock as u, unref as M, createCommentVNode as a, createElementVNode as t, normalizeStyle as l } from "vue";
|
|
2
|
-
import { u as m } from "./useNestedProp-
|
|
3
|
-
import { u as y, X as L } from "./index-
|
|
2
|
+
import { u as m } from "./useNestedProp-Bole8bsm.js";
|
|
3
|
+
import { u as y, X as L } from "./index-DWsIpwzs.js";
|
|
4
4
|
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const b = ["xmlns", "viewBox"], x = { key: 0 }, $ = ["stroke"], w = ["stroke"], A = ["stroke"], N = { key: 1 }, O = ["stroke"], S = { key: 2 }, F = ["stroke"], I = {
|
|
6
6
|
__name: "vue-ui-mini-loader",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useNestedProp-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v=require("./useNestedProp-B8CE091o.cjs"),n=require("./index-Crz6y51C.cjs"),m=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=["xmlns","viewBox"],C={key:0},_=["stroke"],h=["stroke"],M=["stroke"],y={key:1},B=["stroke"],f={key:2},L=["stroke"],b={__name:"vue-ui-mini-loader",props:{config:{type:Object,default(){return{}}}},setup(u){e.useCssVars(k=>({"4430a3e6":c.value,"056a6732":d.value,"7f3540a4":p.value}));const{vue_ui_mini_loader:a}=n.useConfig(),i=u,t=e.computed(()=>v.useNestedProp({userConfig:i.config,defaultConfig:a})),s=e.ref({onion:"-10 -10 84 84",line:"-10 -10 112 84",bar:"-10 -10 106 84"}),r=e.computed(()=>({gutter:`stroke:${t.value.line.gutterColor};opacity:${t.value.line.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.line.gutterBlur}px);`})),l=e.computed(()=>({gutter:`stroke:${t.value.bar.gutterColor};opacity:${t.value.bar.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.bar.gutterBlur}px);`})),o=e.computed(()=>({gutter:`stroke:${t.value.onion.gutterColor};opacity:${t.value.onion.gutterOpacity};`,gutterBlur:`filter:blur(${t.value.onion.gutterBlur}px);`})),c=e.computed(()=>`blur(${t.value.onion.trackBlur}px) hue-rotate(${t.value.onion.trackHueRotate}deg)`),d=e.computed(()=>`blur(${t.value.line.trackBlur}px) hue-rotate(${t.value.line.trackHueRotate}deg)`),p=e.computed(()=>`blur(${t.value.bar.trackBlur}px) hue-rotate(${t.value.bar.trackHueRotate}deg)`);return(k,x)=>(e.openBlock(),e.createElementBlock("svg",{class:"vue-ui-mini-loader",xmlns:e.unref(n.XMLNS),viewBox:s.value[t.value.type],style:{background:"transparent"},width:"100%"},[t.value.type==="onion"?(e.openBlock(),e.createElementBlock("g",C,[e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(o.value.gutter+o.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 32 C 3 45 12 62 32 62 A 1 1 0 0 0 32 3",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,_),e.createElementVNode("path",{d:"M 13 32 C 13 39 19 52 32 52 A 1 1 0 0 0 32 13",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,h),e.createElementVNode("path",{d:"M 23 32 C 23 37 26.5 41 32 41 A 1 1 0 0 0 32 25",stroke:t.value.onion.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"onion-animated"},null,8,M)])):e.createCommentVNode("",!0),t.value.type==="line"?(e.openBlock(),e.createElementBlock("g",y,[e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(r.value.gutter+r.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 C 6 57 6 48 11 45 C 16 44 17 53 22 52 C 27 49 25 32 30 31 C 34 29 37 47 42 47 C 46 47 45 38 49 36 C 53 34 56 45 61 45 C 66 45 65 24 69 24 C 73 22 75 35 79 34 C 84 34 83 11 91 5",stroke:t.value.line.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"line-animated"},null,8,B)])):e.createCommentVNode("",!0),t.value.type==="bar"?(e.openBlock(),e.createElementBlock("g",f,[e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5","stroke-width":"4",fill:"none","stroke-linecap":"round",style:e.normalizeStyle(l.value.gutter+l.value.gutterBlur)},null,4),e.createElementVNode("path",{d:"M 3 62 L 3 44 M 12 62 L 12 49 M 21 62 L 21 37 M 30 62 L 30 29 M 39 62 L 39 43 M 48 62 L 48 16 M 57 62 L 57 24 M 66 62 L 66 35 M 75 62 L 75 20 M 84 62 L 84 5",stroke:t.value.bar.trackColor,"stroke-width":"4",fill:"none","stroke-linecap":"round",class:"bar-animated"},null,8,L)])):e.createCommentVNode("",!0)],8,g))}},N=m._export_sfc(b,[["__scopeId","data-v-3b670831"]]);exports.default=N;
|