vue-data-ui 2.9.5 → 2.9.7-beta.0
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/README.md +12 -6
- package/dist/{Arrow-DxFFCBPM.cjs → Arrow-BU7SuiI0.cjs} +1 -1
- package/dist/{Arrow-CJMMd0OS.js → Arrow-IRx8mAUZ.js} +1 -1
- package/dist/{BaseIcon-DU8qgy6L.cjs → BaseIcon-CN6BxTf_.cjs} +1 -1
- package/dist/{BaseIcon-hA0_6Cl-.js → BaseIcon-NVebWEmm.js} +5 -3
- package/dist/{ColorPicker-C2hq5iIZ.js → ColorPicker-D6INbuzz.js} +3 -3
- package/dist/{ColorPicker-t6z7vah6.cjs → ColorPicker-DzF9vdB7.cjs} +1 -1
- package/dist/{DataTable-BPnqR1qF.cjs → DataTable-Bc-sIk3H.cjs} +1 -1
- package/dist/{DataTable-BbXCe5s5.js → DataTable-LLs37Na_.js} +2 -2
- package/dist/{Legend-BQHuBdpT.cjs → Legend-DbGQCXU-.cjs} +1 -1
- package/dist/{Legend-D9ki4JJ3.js → Legend-Vkc-EKNB.js} +2 -2
- package/dist/{PackageVersion-mZLomJm-.cjs → PackageVersion-nHr3qHGs.cjs} +1 -1
- package/dist/{PackageVersion-Bq98eXon.js → PackageVersion-smHUcsQE.js} +1 -1
- package/dist/{PenAndPaper-CvkDs-Gh.cjs → PenAndPaper-30BhAniw.cjs} +1 -1
- package/dist/{PenAndPaper-CUUyQzLR.js → PenAndPaper-k0VaawVj.js} +3 -3
- package/dist/{Shape-D6lPonNm.js → Shape-Bfm8x-8P.js} +1 -1
- package/dist/{Shape-BeAQjfne.cjs → Shape-PzPPg5iH.cjs} +1 -1
- package/dist/{Slicer-C97ZQ2j3.cjs → Slicer-BU0fj2AI.cjs} +1 -1
- package/dist/{Slicer-5j6e3Y_A.js → Slicer-DhTMXF53.js} +2 -2
- package/dist/{Title-Cjpkoa1d.cjs → Title-58EtyYdb.cjs} +1 -1
- package/dist/{Title-CwPVIBWP.js → Title-IOaA-ppU.js} +1 -1
- package/dist/{Tooltip-T-m_CEIA.js → Tooltip-D8cBDDkn.js} +1 -1
- package/dist/{Tooltip-DPgFOV_5.cjs → Tooltip-e9KUqiQA.cjs} +1 -1
- package/dist/documentation/installation.md +2 -1
- package/dist/{dom-to-png-CYjAAVu3.cjs → dom-to-png-CorDkTqE.cjs} +1 -1
- package/dist/{dom-to-png-CGtn1Am2.js → dom-to-png-DWnOZNsr.js} +1 -1
- package/dist/{img-Duw2r72a.cjs → img-D3Du_oTb.cjs} +1 -1
- package/dist/{img-s3DffGWH.js → img-DTb9GqRw.js} +1 -1
- package/dist/index-BqL3-yPQ.cjs +9 -0
- package/dist/{index-BDGf85YF.js → index-DwNTTJ28.js} +1034 -872
- package/dist/{pdf-CRgxb46R.cjs → pdf-BcORych6.cjs} +1 -1
- package/dist/{pdf-BnBP0Jg-.js → pdf-EYBy6RJJ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +139 -7
- package/dist/types/vue-data-ui.d.ts +139 -7
- package/dist/{useNestedProp-D24_JklN.cjs → useNestedProp-BVy9-3EJ.cjs} +1 -1
- package/dist/{useNestedProp-BsN3TOQ0.js → useNestedProp-DLKXTEny.js} +1 -1
- package/dist/{usePrinter-CKjQQldf.js → usePrinter-CDE1F-XN.js} +3 -3
- package/dist/{usePrinter-Bs-Uo-8x.cjs → usePrinter-vjB2nrFW.cjs} +1 -1
- package/dist/{vue-data-ui-IWpvfdMh.js → vue-data-ui-Dxn5phSx.js} +64 -62
- package/dist/vue-data-ui-NKaL_RZ1.cjs +9 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +37 -36
- package/dist/{vue-ui-3d-bar-slYknMyR.cjs → vue-ui-3d-bar-C6p9aV9v.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-DVNn8pu-.js → vue-ui-3d-bar-CHHe_J_D.js} +9 -9
- package/dist/{vue-ui-accordion-CYKk4uk8.js → vue-ui-accordion-BqCwiS7D.js} +3 -3
- package/dist/{vue-ui-accordion-BMK6-xDm.cjs → vue-ui-accordion-CELgYjnV.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-1zM8QRQl.js → vue-ui-age-pyramid-CeahoaHi.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BCQsnc8c.cjs → vue-ui-age-pyramid-S8hYFKDI.cjs} +1 -1
- package/dist/{vue-ui-annotator-5O4hWWvi.cjs → vue-ui-annotator-BoOPk1NW.cjs} +1 -1
- package/dist/{vue-ui-annotator-_U6PEy_s.js → vue-ui-annotator-Dt280Dbw.js} +2 -2
- package/dist/{vue-ui-bullet-BAaTrfRK.cjs → vue-ui-bullet-C_ouoJoz.cjs} +1 -1
- package/dist/{vue-ui-bullet-DuI83w0_.js → vue-ui-bullet-DoyResGB.js} +8 -8
- package/dist/{vue-ui-candlestick-CoxKe0hi.cjs → vue-ui-candlestick-BSrwISIN.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Caume8Cr.js → vue-ui-candlestick-Ckb5JZAY.js} +11 -11
- package/dist/{vue-ui-carousel-table-C3oLoBhV.cjs → vue-ui-carousel-table-BnfnugZ8.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Dpj6uzaw.js → vue-ui-carousel-table-pyTSfa3R.js} +4 -4
- package/dist/{vue-ui-chestnut-CRiCk9LN.cjs → vue-ui-chestnut-D2DRAw3Z.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DC57Y0fm.js → vue-ui-chestnut-DEmzGhAV.js} +8 -8
- package/dist/{vue-ui-circle-pack-Dtaz0QCf.cjs → vue-ui-circle-pack-D58AOk8y.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-Bx8ATqeJ.js → vue-ui-circle-pack-W44HsVVY.js} +9 -9
- package/dist/{vue-ui-cursor-Dae_RvTj.cjs → vue-ui-cursor-D1ZEe_2B.cjs} +1 -1
- package/dist/{vue-ui-cursor-D2_6cGWO.js → vue-ui-cursor-Dnkh_phA.js} +2 -2
- package/dist/{vue-ui-dashboard-Cia2p6jc.cjs → vue-ui-dashboard-BbcppsFn.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CqEaxTGo.js → vue-ui-dashboard-mDnIJx3M.js} +62 -62
- package/dist/{vue-ui-digits-TcCd1Ayj.cjs → vue-ui-digits-C_za0nmt.cjs} +1 -1
- package/dist/{vue-ui-digits-BBh4FaLt.js → vue-ui-digits-Dr3tklAr.js} +2 -2
- package/dist/{vue-ui-donut-DlvFHlJB.js → vue-ui-donut-CRBp5BFP.js} +12 -12
- package/dist/{vue-ui-donut-CXI85ZJW.cjs → vue-ui-donut-CxCNCSyO.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BXEmubwy.cjs → vue-ui-donut-evolution-D4s8zLwf.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Ba4GIJg3.js → vue-ui-donut-evolution-abrnOe55.js} +11 -11
- package/dist/{vue-ui-dumbbell-C1y6x8kv.cjs → vue-ui-dumbbell-BDinWM7R.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-2xYiPFix.js → vue-ui-dumbbell-Bj_SUn-j.js} +10 -10
- package/dist/{vue-ui-flow-BBFoxXRy.js → vue-ui-flow-CtAP5n05.js} +9 -9
- package/dist/{vue-ui-flow-Cn0WD8c1.cjs → vue-ui-flow-DCQVOrgy.cjs} +1 -1
- package/dist/{vue-ui-funnel-BW0E2--M.cjs → vue-ui-funnel-0TWVP6z9.cjs} +1 -1
- package/dist/{vue-ui-funnel-DzcoJC-S.js → vue-ui-funnel-DymsYFW0.js} +9 -9
- package/dist/{vue-ui-galaxy-D88zMUzb.js → vue-ui-galaxy-Dn-E22Sq.js} +11 -11
- package/dist/{vue-ui-galaxy-C7S_aK4E.cjs → vue-ui-galaxy-DoJcvc2z.cjs} +1 -1
- package/dist/{vue-ui-gauge-BNMnbzT6.cjs → vue-ui-gauge-BPOh-LHr.cjs} +1 -1
- package/dist/{vue-ui-gauge-DU5uLDka.js → vue-ui-gauge-DqbsP-05.js} +7 -7
- package/dist/{vue-ui-gizmo-Cgqr5OQC.js → vue-ui-gizmo-BohTVUAE.js} +3 -3
- package/dist/{vue-ui-gizmo-CdjyPQN0.cjs → vue-ui-gizmo-CW9LAAdu.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DhJtkLrS.js → vue-ui-heatmap-1FWBcMxC.js} +10 -10
- package/dist/{vue-ui-heatmap-B26GMl3N.cjs → vue-ui-heatmap-CYCOMJEp.cjs} +1 -1
- package/dist/{vue-ui-history-plot-VwHC74EA.cjs → vue-ui-history-plot-BUIqHRPg.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DBegFcxp.js → vue-ui-history-plot-CSIf1_96.js} +11 -11
- package/dist/{vue-ui-kpi-CfzNgybX.js → vue-ui-kpi-BrhY5fFX.js} +3 -3
- package/dist/{vue-ui-kpi-C1i0iWrh.cjs → vue-ui-kpi-Cf6eEcYm.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-Djlgqhvu.cjs → vue-ui-mini-loader-CURulq-0.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DvYHhqWT.js → vue-ui-mini-loader-CgkVj3jx.js} +2 -2
- package/dist/{vue-ui-molecule-Cr6KJ5eZ.js → vue-ui-molecule-Bd-W2FcU.js} +11 -11
- package/dist/{vue-ui-molecule-C4Z2E7uD.cjs → vue-ui-molecule-DBlY5wdo.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DHTNv7wD.js → vue-ui-mood-radar-Bzl98p3C.js} +11 -11
- package/dist/{vue-ui-mood-radar-DhLF09v7.cjs → vue-ui-mood-radar-D9yvKEMp.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-vMeonmHR.cjs → vue-ui-nested-donuts-BZ5JA8Q0.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-Dm0rc5ct.js → vue-ui-nested-donuts-DyTI4ydr.js} +11 -11
- package/dist/{vue-ui-onion-boKXIe-r.cjs → vue-ui-onion-DLm1PYJW.cjs} +1 -1
- package/dist/{vue-ui-onion-CssSqL8q.js → vue-ui-onion-ueQgXseI.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-DxKTqBB8.cjs → vue-ui-parallel-coordinate-plot-C2IpU_Zn.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-DBzBW-Vn.js → vue-ui-parallel-coordinate-plot-CE7Apuxp.js} +12 -12
- package/dist/{vue-ui-quadrant-CSuEenz4.js → vue-ui-quadrant-CjLaANbC.js} +12 -12
- package/dist/{vue-ui-quadrant-BkaXchAn.cjs → vue-ui-quadrant-R1yAxzva.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DJpBpFM4.cjs → vue-ui-quick-chart-BdqHueUa.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BLTVHmn2.js → vue-ui-quick-chart-CVDLl6ro.js} +9 -9
- package/dist/{vue-ui-radar-CrxciP8t.cjs → vue-ui-radar-B6u_29cN.cjs} +1 -1
- package/dist/{vue-ui-radar-BKM9hhMO.js → vue-ui-radar-CoJY69Qe.js} +12 -12
- package/dist/{vue-ui-rating-BWMgiGmm.cjs → vue-ui-rating-inneqZuS.cjs} +1 -1
- package/dist/{vue-ui-rating-7uT1-yDP.js → vue-ui-rating-tqvCl4qR.js} +2 -2
- package/dist/{vue-ui-relation-circle-Bk2mNJDz.js → vue-ui-relation-circle-B_2RZE3S.js} +7 -7
- package/dist/{vue-ui-relation-circle-BFvsOsjM.cjs → vue-ui-relation-circle-D_eh1BEp.cjs} +1 -1
- package/dist/vue-ui-ridgeline-BN4YoLPn.cjs +1 -0
- package/dist/vue-ui-ridgeline-BZqkRymO.js +1040 -0
- package/dist/{vue-ui-rings-azmWz0Sn.js → vue-ui-rings-5cvD-A8P.js} +12 -12
- package/dist/{vue-ui-rings-FzLeValL.cjs → vue-ui-rings-CDBPSu7C.cjs} +1 -1
- package/dist/{vue-ui-scatter-CgHGWxEM.js → vue-ui-scatter-D6gIKljC.js} +12 -12
- package/dist/{vue-ui-scatter-D_3855LX.cjs → vue-ui-scatter-DSd4R2Yi.cjs} +1 -1
- package/dist/{vue-ui-skeleton-hrplR5wa.js → vue-ui-skeleton-kS_CJIiv.js} +411 -332
- package/dist/vue-ui-skeleton-ovmMp5bh.cjs +41 -0
- package/dist/{vue-ui-smiley-B02R516m.cjs → vue-ui-smiley-DJnJpvqE.cjs} +1 -1
- package/dist/{vue-ui-smiley-B6DAFeS1.js → vue-ui-smiley-DzoxVoms.js} +2 -2
- package/dist/{vue-ui-spark-trend-CVU8ZId2.cjs → vue-ui-spark-trend-CFS3QbYY.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Cvw68YCa.js → vue-ui-spark-trend-oIWCpuK4.js} +5 -5
- package/dist/{vue-ui-sparkbar-BVAmpd2c.cjs → vue-ui-sparkbar-CcF0AVSW.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CLtobIKI.js → vue-ui-sparkbar-zp12sOeT.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DV7_YpFv.js → vue-ui-sparkgauge-Ch5sucF4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-PfjN8EtA.cjs → vue-ui-sparkgauge-DTflH_xZ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BgGs2Ge0.js → vue-ui-sparkhistogram-BkTOZLzM.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B3bXOOfB.cjs → vue-ui-sparkhistogram-DZt0HNIE.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BpRBXQMZ.cjs → vue-ui-sparkline-CBSJXHQs.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CgtP1kxm.js → vue-ui-sparkline-C_xiHNZV.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DNjIcyBK.js → vue-ui-sparkstackbar-C_OFfnx-.js} +5 -5
- package/dist/{vue-ui-sparkstackbar--pn0EIYM.cjs → vue-ui-sparkstackbar-CflXoafD.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CqQ5RMAB.cjs → vue-ui-stackbar-Bxk0RKI0.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CjRAckRq.js → vue-ui-stackbar-qXKMKlND.js} +13 -13
- package/dist/{vue-ui-strip-plot-CW_RftRT.js → vue-ui-strip-plot-C0JI5Ypz.js} +11 -11
- package/dist/{vue-ui-strip-plot-DxfM92am.cjs → vue-ui-strip-plot-CXQN3ICY.cjs} +1 -1
- package/dist/{vue-ui-table-z1l0Vin6.cjs → vue-ui-table-Cl3Li8f9.cjs} +1 -1
- package/dist/{vue-ui-table-D9K1kDv5.js → vue-ui-table-DyFNHVoi.js} +3 -3
- package/dist/{vue-ui-table-heatmap-B_iJQCJL.js → vue-ui-table-heatmap-BcCULm0Y.js} +4 -4
- package/dist/{vue-ui-table-heatmap-D2Ikfd7A.cjs → vue-ui-table-heatmap-DGLCYPo5.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Bu-b38cW.js → vue-ui-table-sparkline-B-dNVmMr.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CYWYfG5M.cjs → vue-ui-table-sparkline-BgkRYmur.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CgYedLZ5.cjs → vue-ui-thermometer-BCH7KJhP.cjs} +1 -1
- package/dist/{vue-ui-thermometer--XuyMCZI.js → vue-ui-thermometer-Cuw5r53c.js} +7 -7
- package/dist/{vue-ui-timer-BiTGijvm.cjs → vue-ui-timer-CyopDf_K.cjs} +1 -1
- package/dist/{vue-ui-timer-GrhFEUcz.js → vue-ui-timer-DdGJsPoJ.js} +5 -5
- package/dist/{vue-ui-tiremarks-CHd1kBCw.js → vue-ui-tiremarks-BPxnwI8b.js} +7 -7
- package/dist/{vue-ui-tiremarks-LAdsMqyP.cjs → vue-ui-tiremarks-C8AqJweQ.cjs} +1 -1
- package/dist/{vue-ui-treemap-4BGOXoCD.cjs → vue-ui-treemap-BFu-MBkV.cjs} +1 -1
- package/dist/{vue-ui-treemap-CIGl0OBe.js → vue-ui-treemap-CeuVNdos.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Btv32rCQ.js → vue-ui-vertical-bar-Ba6oWXzE.js} +12 -12
- package/dist/{vue-ui-vertical-bar-Bc3d2SCI.cjs → vue-ui-vertical-bar-CqE10O2F.cjs} +1 -1
- package/dist/{vue-ui-waffle-BfgS6Gkw.cjs → vue-ui-waffle-Dj664Zvg.cjs} +1 -1
- package/dist/{vue-ui-waffle-qZHJoGgD.js → vue-ui-waffle-lMRTNFla.js} +12 -12
- package/dist/{vue-ui-wheel-CkqHG4gC.cjs → vue-ui-wheel-BWMzvmcA.cjs} +1 -1
- package/dist/{vue-ui-wheel-CFf56O9Y.js → vue-ui-wheel-aaqRzfsy.js} +7 -7
- package/dist/{vue-ui-word-cloud-Cgtt4v0g.js → vue-ui-word-cloud-D2UL2Oye.js} +10 -10
- package/dist/{vue-ui-word-cloud-DU1a_f2O.cjs → vue-ui-word-cloud-Z7WvU8XI.cjs} +1 -1
- package/dist/{vue-ui-world-2gnEByN3.js → vue-ui-world-B61PIrw8.js} +101 -96
- package/dist/{vue-ui-world-w-oAd8TZ.cjs → vue-ui-world-JoZxd7Uu.cjs} +3 -3
- package/dist/{vue-ui-xy-Dy4M6VtE.cjs → vue-ui-xy-Bil87p79.cjs} +2 -2
- package/dist/{vue-ui-xy-DhTZvuRq.js → vue-ui-xy-F8eArZNJ.js} +16 -16
- package/dist/{vue-ui-xy-canvas-B4jIg9Zl.js → vue-ui-xy-canvas-BlQyx-BL.js} +12 -12
- package/dist/{vue-ui-xy-canvas-CTwc8DS0.cjs → vue-ui-xy-canvas-Qb5pkWBq.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BS7ybKs5.cjs +0 -9
- package/dist/vue-data-ui-BMJWddQg.cjs +0 -9
- package/dist/vue-ui-skeleton-BznhCw4p.cjs +0 -41
|
@@ -0,0 +1,1040 @@
|
|
|
1
|
+
import { useCssVars as xt, ref as v, reactive as bt, computed as k, onUnmounted as kt, createBlock as T, openBlock as i, Teleport as wt, createElementBlock as u, createCommentVNode as y, withModifiers as W, normalizeStyle as P, createElementVNode as h, unref as g, renderSlot as b, createVNode as qe, nextTick as Je, onMounted as Ct, onBeforeUnmount as $t, watch as He, normalizeClass as Re, createSlots as Be, withCtx as w, normalizeProps as de, guardReactiveProps as ve, Fragment as $, renderList as _, mergeProps as We, toDisplayString as G, createTextVNode as Ye } from "vue";
|
|
2
|
+
import { X as Ke, u as At, c as Ve, o as St, e as $e, g as Ue, b as zt, d as Mt, p as he, ak as Ge, a7 as Lt, R as _t, G as Tt, i as fe, f as ge, t as Ot, a as Et, q as Pt, r as Dt } from "./index-DwNTTJ28.js";
|
|
3
|
+
import { u as Nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
4
|
+
import { u as Xt } from "./useChartAccessibility-BWojgys7.js";
|
|
5
|
+
import { u as It, U as Ft } from "./usePrinter-CDE1F-XN.js";
|
|
6
|
+
import { t as Ht, u as Rt } from "./useResponsive-Cw4oZ8sQ.js";
|
|
7
|
+
import { u as je } from "./useNestedProp-DLKXTEny.js";
|
|
8
|
+
import Bt from "./vue-ui-accordion-BqCwiS7D.js";
|
|
9
|
+
import Wt from "./BaseIcon-NVebWEmm.js";
|
|
10
|
+
import { _ as Qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
import { D as Yt } from "./DataTable-LLs37Na_.js";
|
|
12
|
+
import { L as Vt } from "./Legend-Vkc-EKNB.js";
|
|
13
|
+
import { _ as Ut } from "./PenAndPaper-k0VaawVj.js";
|
|
14
|
+
import { _ as Gt } from "./Shape-Bfm8x-8P.js";
|
|
15
|
+
import jt from "./vue-ui-skeleton-kS_CJIiv.js";
|
|
16
|
+
import { _ as qt } from "./Title-IOaA-ppU.js";
|
|
17
|
+
import Jt from "./vue-ui-xy-F8eArZNJ.js";
|
|
18
|
+
const Kt = ["xmlns"], Qt = { class: "modal-title" }, Zt = { class: "modal-body" }, ea = {
|
|
19
|
+
__name: "BaseDraggableDialog",
|
|
20
|
+
props: {
|
|
21
|
+
backgroundColor: { type: String },
|
|
22
|
+
color: { type: String },
|
|
23
|
+
headerBg: { type: String },
|
|
24
|
+
headerColor: { type: String }
|
|
25
|
+
},
|
|
26
|
+
emits: ["close"],
|
|
27
|
+
setup(X, { expose: ye, emit: pe }) {
|
|
28
|
+
xt((r) => ({
|
|
29
|
+
19616867: X.color
|
|
30
|
+
}));
|
|
31
|
+
const me = X, C = pe, L = v(!1), Y = v(!1), l = bt({
|
|
32
|
+
left: window.innerWidth / 2 - 200,
|
|
33
|
+
top: window.innerHeight / 2 - 120,
|
|
34
|
+
width: 400,
|
|
35
|
+
height: 400,
|
|
36
|
+
dragging: !1,
|
|
37
|
+
resizing: !1,
|
|
38
|
+
dragOffsetX: 0,
|
|
39
|
+
dragOffsetY: 0,
|
|
40
|
+
pointerStartX: 0,
|
|
41
|
+
pointerStartY: 0,
|
|
42
|
+
resizeStartW: 0,
|
|
43
|
+
resizeStartH: 0
|
|
44
|
+
});
|
|
45
|
+
function se() {
|
|
46
|
+
L.value = !0, Je(() => {
|
|
47
|
+
Y.value || (l.left = Math.max(0, window.innerWidth / 2 - l.width / 2), l.top = Math.max(0, window.innerHeight / 2 - l.height / 2), Y.value = !0);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function j() {
|
|
51
|
+
L.value = !1, C("close");
|
|
52
|
+
}
|
|
53
|
+
ye({ open: se, close: j });
|
|
54
|
+
const V = k(() => ({
|
|
55
|
+
position: "fixed",
|
|
56
|
+
left: `${l.left}px`,
|
|
57
|
+
top: `${l.top}px`,
|
|
58
|
+
width: `${l.width}px`,
|
|
59
|
+
height: `${l.height}px`,
|
|
60
|
+
padding: 0,
|
|
61
|
+
border: "none",
|
|
62
|
+
background: me.backgroundColor,
|
|
63
|
+
boxShadow: "0 4px 24px rgba(0,0,0,0.15)",
|
|
64
|
+
zIndex: 9999,
|
|
65
|
+
overflow: "visible",
|
|
66
|
+
borderRadius: "2px"
|
|
67
|
+
}));
|
|
68
|
+
function O(r) {
|
|
69
|
+
return r.touches && r.touches.length ? { x: r.touches[0].clientX, y: r.touches[0].clientY } : { x: r.clientX, y: r.clientY };
|
|
70
|
+
}
|
|
71
|
+
function q(r) {
|
|
72
|
+
var p;
|
|
73
|
+
(p = r.preventDefault) == null || p.call(r), l.dragging = !0;
|
|
74
|
+
const d = O(r);
|
|
75
|
+
l.dragOffsetX = d.x - l.left, l.dragOffsetY = d.y - l.top, document.addEventListener("mousemove", I), document.addEventListener("mouseup", F), document.addEventListener("touchmove", I, { passive: !1 }), document.addEventListener("touchend", F);
|
|
76
|
+
}
|
|
77
|
+
function I(r) {
|
|
78
|
+
var m;
|
|
79
|
+
if (!l.dragging) return;
|
|
80
|
+
(m = r.preventDefault) == null || m.call(r);
|
|
81
|
+
const d = O(r);
|
|
82
|
+
let p = d.x - l.dragOffsetX, e = d.y - l.dragOffsetY;
|
|
83
|
+
p = Math.max(0, Math.min(p, window.innerWidth - l.width)), e = Math.max(0, Math.min(e, window.innerHeight - l.height)), l.left = p, l.top = e;
|
|
84
|
+
}
|
|
85
|
+
function F() {
|
|
86
|
+
l.dragging = !1, document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", F), document.removeEventListener("touchmove", I), document.removeEventListener("touchend", F);
|
|
87
|
+
}
|
|
88
|
+
function J(r) {
|
|
89
|
+
var p;
|
|
90
|
+
(p = r.preventDefault) == null || p.call(r), l.resizing = !0;
|
|
91
|
+
const d = O(r);
|
|
92
|
+
l.pointerStartX = d.x, l.pointerStartY = d.y, l.resizeStartW = l.width, l.resizeStartH = l.height, document.addEventListener("mousemove", S), document.addEventListener("mouseup", D), document.addEventListener("touchmove", S, { passive: !1 }), document.addEventListener("touchend", D);
|
|
93
|
+
}
|
|
94
|
+
function S(r) {
|
|
95
|
+
var m;
|
|
96
|
+
if (!l.resizing) return;
|
|
97
|
+
(m = r.preventDefault) == null || m.call(r);
|
|
98
|
+
const d = O(r);
|
|
99
|
+
let p = d.x - l.pointerStartX, e = d.y - l.pointerStartY;
|
|
100
|
+
l.width = Math.max(240, l.resizeStartW + p), l.height = Math.max(400, l.resizeStartH + e);
|
|
101
|
+
}
|
|
102
|
+
function D() {
|
|
103
|
+
l.resizing = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", D), document.removeEventListener("touchmove", S), document.removeEventListener("touchend", D);
|
|
104
|
+
}
|
|
105
|
+
function ne(r) {
|
|
106
|
+
var p;
|
|
107
|
+
(p = r.preventDefault) == null || p.call(r), l.resizing = !0;
|
|
108
|
+
const d = O(r);
|
|
109
|
+
l.pointerStartX = d.x, l.pointerStartY = d.y, l.resizeStartW = l.width, l.resizeStartH = l.height, l.resizeStartLeft = l.left, l.resizeStartTop = l.top, document.addEventListener("mousemove", H), document.addEventListener("mouseup", f), document.addEventListener("touchmove", H, { passive: !1 }), document.addEventListener("touchend", f);
|
|
110
|
+
}
|
|
111
|
+
function H(r) {
|
|
112
|
+
var Q;
|
|
113
|
+
if (!l.resizing) return;
|
|
114
|
+
(Q = r.preventDefault) == null || Q.call(r);
|
|
115
|
+
const d = O(r);
|
|
116
|
+
let p = d.x - l.pointerStartX, e = Math.min(
|
|
117
|
+
Math.max(0, l.resizeStartLeft + p),
|
|
118
|
+
l.resizeStartLeft + l.resizeStartW - 240
|
|
119
|
+
// min width
|
|
120
|
+
), m = l.resizeStartW - (e - l.resizeStartLeft), K = d.y - l.pointerStartY, re = Math.max(400, l.resizeStartH + K);
|
|
121
|
+
l.left = e, l.width = m, l.height = re;
|
|
122
|
+
}
|
|
123
|
+
function f() {
|
|
124
|
+
l.resizing = !1, document.removeEventListener("mousemove", H), document.removeEventListener("mouseup", f), document.removeEventListener("touchmove", H), document.removeEventListener("touchend", f);
|
|
125
|
+
}
|
|
126
|
+
return kt(() => {
|
|
127
|
+
F(), D(), f();
|
|
128
|
+
}), (r, d) => (i(), T(wt, { to: "body" }, [
|
|
129
|
+
L.value ? (i(), u("div", {
|
|
130
|
+
key: 0,
|
|
131
|
+
class: "modal vue-ui-draggable-dialog",
|
|
132
|
+
style: P(V.value),
|
|
133
|
+
onClick: d[0] || (d[0] = W(() => {
|
|
134
|
+
}, ["stop"]))
|
|
135
|
+
}, [
|
|
136
|
+
h("div", {
|
|
137
|
+
class: "modal-header",
|
|
138
|
+
style: P({
|
|
139
|
+
backgroundColor: X.headerBg,
|
|
140
|
+
color: X.headerColor
|
|
141
|
+
})
|
|
142
|
+
}, [
|
|
143
|
+
h("span", {
|
|
144
|
+
class: "drag-handle",
|
|
145
|
+
onMousedown: W(q, ["stop", "prevent"]),
|
|
146
|
+
onTouchstart: W(q, ["stop", "prevent"])
|
|
147
|
+
}, [
|
|
148
|
+
(i(), u("svg", {
|
|
149
|
+
xmlns: g(Ke),
|
|
150
|
+
width: "20",
|
|
151
|
+
height: "20",
|
|
152
|
+
viewBox: "0 0 24 24",
|
|
153
|
+
fill: "none",
|
|
154
|
+
stroke: "currentColor",
|
|
155
|
+
"stroke-width": "1",
|
|
156
|
+
"stroke-linecap": "round",
|
|
157
|
+
"stroke-linejoin": "round"
|
|
158
|
+
}, d[1] || (d[1] = [
|
|
159
|
+
h("path", { d: "M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
160
|
+
h("path", { d: "M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
161
|
+
h("path", { d: "M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
162
|
+
h("path", { d: "M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
163
|
+
h("path", { d: "M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1),
|
|
164
|
+
h("path", { d: "M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }, null, -1)
|
|
165
|
+
]), 8, Kt))
|
|
166
|
+
], 32),
|
|
167
|
+
h("span", Qt, [
|
|
168
|
+
b(r.$slots, "title", {}, void 0, !0)
|
|
169
|
+
]),
|
|
170
|
+
h("button", {
|
|
171
|
+
class: "close",
|
|
172
|
+
onClick: j
|
|
173
|
+
}, [
|
|
174
|
+
qe(Wt, {
|
|
175
|
+
name: "close",
|
|
176
|
+
stroke: X.headerColor
|
|
177
|
+
}, null, 8, ["stroke"])
|
|
178
|
+
])
|
|
179
|
+
], 4),
|
|
180
|
+
h("div", Zt, [
|
|
181
|
+
b(r.$slots, "default", {}, void 0, !0)
|
|
182
|
+
]),
|
|
183
|
+
h("div", {
|
|
184
|
+
class: "resize-handle",
|
|
185
|
+
onMousedown: W(J, ["stop", "prevent"]),
|
|
186
|
+
onTouchstart: W(J, ["stop", "prevent"])
|
|
187
|
+
}, null, 32),
|
|
188
|
+
h("div", {
|
|
189
|
+
class: "resize-handle resize-handle-left",
|
|
190
|
+
onMousedown: W(ne, ["stop", "prevent"]),
|
|
191
|
+
onTouchstart: W(ne, ["stop", "prevent"])
|
|
192
|
+
}, null, 32)
|
|
193
|
+
], 4)) : y("", !0)
|
|
194
|
+
]));
|
|
195
|
+
}
|
|
196
|
+
}, ta = /* @__PURE__ */ Qe(ea, [["__scopeId", "data-v-f854cee8"]]), aa = ["id"], la = ["xmlns", "viewBox"], oa = ["id"], sa = ["stop-color"], na = ["stop-color"], ra = ["stop-color"], ia = ["stop-color"], ua = { key: 0 }, ca = ["fill", "d"], da = ["fill", "stroke", "stroke-width", "d"], va = ["stroke", "stroke-dasharray", "stroke-width", "d"], ha = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], fa = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], ga = ["x", "y", "font-size", "font-weight", "fill", "text-decoration", "onMouseenter", "onClick"], ya = { key: 1 }, pa = ["font-size", "fill", "font-weight", "transform", "text-anchor"], ma = ["x", "y", "width", "height", "onMouseenter", "onClick"], xa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ba = ["cx", "cy", "stroke", "stroke-width", "r", "fill"], ka = ["x", "y", "text-anchor", "font-size", "fill"], wa = {
|
|
197
|
+
key: 5,
|
|
198
|
+
class: "vue-data-ui-watermark"
|
|
199
|
+
}, Ca = ["onClick"], $a = ["innerHTML"], Aa = {
|
|
200
|
+
__name: "vue-ui-ridgeline",
|
|
201
|
+
props: {
|
|
202
|
+
config: {
|
|
203
|
+
type: Object,
|
|
204
|
+
default() {
|
|
205
|
+
return {};
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
dataset: {
|
|
209
|
+
type: Array,
|
|
210
|
+
default() {
|
|
211
|
+
return [];
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
emits: ["selectLegend", "selectDatapoint", "selectX"],
|
|
216
|
+
setup(X, { expose: ye, emit: pe }) {
|
|
217
|
+
const { vue_ui_ridgeline: me } = At(), C = X, L = k({
|
|
218
|
+
get() {
|
|
219
|
+
return !!C.dataset && C.dataset.length;
|
|
220
|
+
},
|
|
221
|
+
set(a) {
|
|
222
|
+
return a;
|
|
223
|
+
}
|
|
224
|
+
}), Y = pe, l = v(null), se = v(null), j = v(null), V = v(null), O = v(null), q = v(null), I = v(0), F = v(0), J = v(0), S = v(Ve()), D = v(0), ne = v(0), H = v(512), f = v(null), r = v(null), d = v(null);
|
|
225
|
+
function p() {
|
|
226
|
+
const a = je({
|
|
227
|
+
userConfig: C.config,
|
|
228
|
+
defaultConfig: me
|
|
229
|
+
});
|
|
230
|
+
return a.theme ? {
|
|
231
|
+
...je({
|
|
232
|
+
userConfig: Et.vue_ui_ridgeline[a.theme] || C.config,
|
|
233
|
+
defaultConfig: a
|
|
234
|
+
}),
|
|
235
|
+
customPalette: Ot[a.theme] || he
|
|
236
|
+
} : a;
|
|
237
|
+
}
|
|
238
|
+
const e = k({
|
|
239
|
+
get: () => p(),
|
|
240
|
+
set: (a) => a
|
|
241
|
+
}), m = v(Math.min(
|
|
242
|
+
e.value.style.chart.areas.height,
|
|
243
|
+
e.value.style.chart.areas.rowHeight
|
|
244
|
+
)), {
|
|
245
|
+
userOptionsVisible: K,
|
|
246
|
+
setUserOptionsVisibility: re,
|
|
247
|
+
keepUserOptionState: Q
|
|
248
|
+
} = Nt({ config: e.value }), { svgRef: xe } = Xt({ config: e.value.style.chart.title });
|
|
249
|
+
Ct(be), $t(() => {
|
|
250
|
+
V.value && V.value.disconnect();
|
|
251
|
+
});
|
|
252
|
+
function be() {
|
|
253
|
+
if (St(C.dataset) ? $e({
|
|
254
|
+
componentName: "VueUiRidgeline",
|
|
255
|
+
type: "dataset"
|
|
256
|
+
}) : C.dataset.forEach((a, n) => {
|
|
257
|
+
Ue({
|
|
258
|
+
datasetObject: a,
|
|
259
|
+
requiredAttributes: ["name", "datapoints"]
|
|
260
|
+
}).forEach((t) => {
|
|
261
|
+
L.value = !1, $e({
|
|
262
|
+
componentName: "VueUiRidgeline",
|
|
263
|
+
type: "datasetSerieAttribute",
|
|
264
|
+
property: t,
|
|
265
|
+
index: n
|
|
266
|
+
});
|
|
267
|
+
}), a.datapoints.length && a.datapoints.forEach((t, o) => {
|
|
268
|
+
Ue({
|
|
269
|
+
datasetObject: t,
|
|
270
|
+
requiredAttributes: ["name", "values"]
|
|
271
|
+
}).forEach((s) => {
|
|
272
|
+
L.value = !1, $e({
|
|
273
|
+
componentName: "VueUiRidgeline",
|
|
274
|
+
type: "datasetSerieAttribute",
|
|
275
|
+
property: `datapoint.${s}`,
|
|
276
|
+
index: `${n}-${o}`
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
});
|
|
280
|
+
}), ne.value = C.dataset.length, m.value = Math.min(
|
|
281
|
+
e.value.style.chart.areas.height,
|
|
282
|
+
e.value.style.chart.areas.rowHeight
|
|
283
|
+
), e.value.responsive) {
|
|
284
|
+
const a = Ht(() => {
|
|
285
|
+
const { width: n, height: t } = Rt({
|
|
286
|
+
chart: l.value,
|
|
287
|
+
title: e.value.style.chart.title.text ? se.value : null,
|
|
288
|
+
legend: e.value.style.chart.legend.show ? j.value : null,
|
|
289
|
+
source: O.value,
|
|
290
|
+
noTitle: q.value
|
|
291
|
+
});
|
|
292
|
+
requestAnimationFrame(() => {
|
|
293
|
+
H.value = n, m.value = t / C.dataset.length;
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
V.value = new ResizeObserver(a), V.value.observe(l.value.parentNode);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
const { isPrinting: Ae, isImaging: Se, generatePdf: ze, generateImage: Me } = It({
|
|
300
|
+
elementId: `vue-ui-ridgeline_${S.value}`,
|
|
301
|
+
fileName: e.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
302
|
+
options: e.value.userOptions.print
|
|
303
|
+
}), Ze = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), et = k(() => zt(e.value.customPalette)), Z = v({
|
|
304
|
+
showTable: e.value.table.show
|
|
305
|
+
});
|
|
306
|
+
He(() => C.config, (a) => {
|
|
307
|
+
e.value = p(), K.value = !e.value.userOptions.showOnChartHover, be(), I.value += 1, J.value += 1, m.value = Math.min(
|
|
308
|
+
e.value.style.chart.areas.height,
|
|
309
|
+
e.value.style.chart.areas.rowHeight
|
|
310
|
+
), Z.value.showTable = e.value.table.show;
|
|
311
|
+
}, { deep: !0 }), He(() => C.dataset, be, { deep: !0 });
|
|
312
|
+
const ke = k(() => e.value.style.chart.areas.height / e.value.style.chart.areas.rowHeight);
|
|
313
|
+
function Le(a) {
|
|
314
|
+
N.value.includes(a) ? N.value = N.value.filter((n) => n !== a) : N.value.push(a), Y("selectLegend", ee.value);
|
|
315
|
+
}
|
|
316
|
+
const E = k(() => L.value ? C.dataset.map((a, n) => ({
|
|
317
|
+
...a,
|
|
318
|
+
labelLen: lt(a.name, e.value.style.chart.yAxis.labels.fontSize),
|
|
319
|
+
uid: Ve(),
|
|
320
|
+
datapoints: a.datapoints.map((t, o) => {
|
|
321
|
+
const s = t.color ? Mt(t.color) : et.value[o] || he[o] || he[o % he.length], c = Ge(t.name);
|
|
322
|
+
return {
|
|
323
|
+
...t,
|
|
324
|
+
color: s,
|
|
325
|
+
id: c
|
|
326
|
+
};
|
|
327
|
+
})
|
|
328
|
+
})) : []), _e = k(() => e.value.style.chart.padding.top + m.value * C.dataset.length + m.value * ke.value), z = k(() => ({
|
|
329
|
+
fullHeight: x.value.padding.top + x.value.padding.bottom + x.value.height,
|
|
330
|
+
top: x.value.padding.top,
|
|
331
|
+
left: x.value.padding.left,
|
|
332
|
+
right: x.value.width - x.value.padding.right,
|
|
333
|
+
bottom: x.value.padding.top + x.value.height,
|
|
334
|
+
width: x.value.width - (x.value.padding.left + x.value.padding.right)
|
|
335
|
+
})), x = k(() => {
|
|
336
|
+
const a = e.value.style.chart.padding;
|
|
337
|
+
return {
|
|
338
|
+
width: H.value,
|
|
339
|
+
height: _e.value,
|
|
340
|
+
padding: a
|
|
341
|
+
};
|
|
342
|
+
}), U = k(() => {
|
|
343
|
+
const a = Math.max(...E.value.map((c) => c.labelLen)), n = Math.max(...E.value.flatMap((c) => c.datapoints.map((M) => M.values.length))), t = x.value.padding.left + a + 16 + e.value.style.chart.yAxis.labels.offsetX, o = (z.value.width - t) / n, s = [];
|
|
344
|
+
for (let c = 0; c < n; c += 1)
|
|
345
|
+
s.push({
|
|
346
|
+
selectorX: t + o * c,
|
|
347
|
+
x: t + o * c - o / 2,
|
|
348
|
+
y: z.value.top,
|
|
349
|
+
label: e.value.style.chart.xAxis.labels.values[c] || "",
|
|
350
|
+
index: c,
|
|
351
|
+
width: o,
|
|
352
|
+
height: _e.value
|
|
353
|
+
});
|
|
354
|
+
return s;
|
|
355
|
+
});
|
|
356
|
+
function tt(a) {
|
|
357
|
+
Y("selectX", E.value.map((n) => n.datapoints.map((t) => ({
|
|
358
|
+
dp: t,
|
|
359
|
+
selected: t.values[a.index]
|
|
360
|
+
}))));
|
|
361
|
+
}
|
|
362
|
+
function at(a, n) {
|
|
363
|
+
return a.length * n / 2 + n;
|
|
364
|
+
}
|
|
365
|
+
function Te(a, n, t) {
|
|
366
|
+
const o = at(n, t);
|
|
367
|
+
return a + o > z.value.right;
|
|
368
|
+
}
|
|
369
|
+
function lt(a, n, t = "sans-serif") {
|
|
370
|
+
const s = document.createElement("canvas").getContext("2d"), c = typeof n == "number" ? `${n}px` : n;
|
|
371
|
+
return s.font = `${c} ${t}`, s.measureText(a).width;
|
|
372
|
+
}
|
|
373
|
+
const ee = k(() => {
|
|
374
|
+
m.value;
|
|
375
|
+
const a = Math.max(...E.value.map((A) => A.labelLen)), n = Math.max(...E.value.flatMap((A) => A.datapoints.map((R) => R.values.length))), t = Math.max(...E.value.flatMap((A) => A.datapoints.flatMap((R) => R.values))), o = Math.min(...E.value.flatMap((A) => A.datapoints.flatMap((R) => R.values))), s = x.value.padding.left + a + 16 + e.value.style.chart.yAxis.labels.offsetX, c = (z.value.width - s) / n, M = Math.abs(Math.min(o, 0)), Xe = t + M;
|
|
376
|
+
function Ie(A) {
|
|
377
|
+
return isNaN(A / Xe) ? 0 : A / Xe;
|
|
378
|
+
}
|
|
379
|
+
return E.value.map((A, R) => {
|
|
380
|
+
const Fe = z.value.top + m.value * R, B = z.value.top + Fe + m.value * ke.value * (1 - Ie(M));
|
|
381
|
+
return {
|
|
382
|
+
...A,
|
|
383
|
+
label: {
|
|
384
|
+
x: s - e.value.style.chart.yAxis.labels.fontSize,
|
|
385
|
+
y: B
|
|
386
|
+
},
|
|
387
|
+
datapoints: A.datapoints.map((ae) => {
|
|
388
|
+
const le = ae.values.map((oe, ft) => {
|
|
389
|
+
const gt = isNaN(oe) || [void 0, null, "NaN", NaN, 1 / 0, -1 / 0].includes(oe) ? 0 : oe || 0, yt = s + c * ft, pt = z.value.top + Fe + m.value * ke.value * (1 - Ie(gt + M)), mt = oe === Math.max(...ae.values);
|
|
390
|
+
return {
|
|
391
|
+
x: yt,
|
|
392
|
+
y: pt,
|
|
393
|
+
value: oe,
|
|
394
|
+
isMaxPoint: mt,
|
|
395
|
+
zero: B
|
|
396
|
+
};
|
|
397
|
+
}), dt = `${Lt(le, B, !1, !1)}`, vt = `M ${s},${B} ${_t(le)} ${le.at(-1).x},${B}`, ht = `M ${s},${B} ${le.at(-1).x},${B}`;
|
|
398
|
+
return {
|
|
399
|
+
...ae,
|
|
400
|
+
plots: le,
|
|
401
|
+
smoothPath: dt,
|
|
402
|
+
straightPath: vt,
|
|
403
|
+
zeroPath: ht
|
|
404
|
+
};
|
|
405
|
+
}).filter((ae) => !N.value.includes(ae.id))
|
|
406
|
+
};
|
|
407
|
+
});
|
|
408
|
+
}), N = v([]);
|
|
409
|
+
function ot(a) {
|
|
410
|
+
const n = /* @__PURE__ */ new Map();
|
|
411
|
+
return a.forEach((t) => {
|
|
412
|
+
t.datapoints.forEach((o, s) => {
|
|
413
|
+
const c = Ge(o.name);
|
|
414
|
+
n.has(c) || n.set(c, {
|
|
415
|
+
id: c,
|
|
416
|
+
name: o.name,
|
|
417
|
+
color: o.color,
|
|
418
|
+
shape: "circle",
|
|
419
|
+
segregate: () => Le(c),
|
|
420
|
+
isSegregated: N.value.includes(c),
|
|
421
|
+
opacity: N.value.includes(c) ? 0.5 : 1
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
}), Array.from(n.values());
|
|
425
|
+
}
|
|
426
|
+
const ie = k(() => ot(E.value)), st = k(() => ({
|
|
427
|
+
cy: "donut-div-legend",
|
|
428
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
429
|
+
color: e.value.style.chart.legend.color,
|
|
430
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
431
|
+
paddingBottom: 12,
|
|
432
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
433
|
+
})), te = v(!1);
|
|
434
|
+
function nt(a) {
|
|
435
|
+
te.value = a, D.value += 1;
|
|
436
|
+
}
|
|
437
|
+
const Oe = v({}), Ee = v([]);
|
|
438
|
+
function rt(a) {
|
|
439
|
+
Y("selectDatapoint", a), e.value.style.chart.dialog.show && (Ee.value = a.datapoints.map((n) => ({
|
|
440
|
+
name: n.name,
|
|
441
|
+
color: n.color,
|
|
442
|
+
type: "line",
|
|
443
|
+
useArea: !0,
|
|
444
|
+
smooth: e.value.style.chart.areas.smooth,
|
|
445
|
+
series: n.values
|
|
446
|
+
})), r.value = a, Oe.value = {
|
|
447
|
+
...e.value.style.chart.dialog.xyChart,
|
|
448
|
+
responsive: !0,
|
|
449
|
+
// Overriding
|
|
450
|
+
chart: {
|
|
451
|
+
...e.value.style.chart.dialog.xyChart.chart,
|
|
452
|
+
grid: {
|
|
453
|
+
...e.value.style.chart.dialog.xyChart.chart.grid,
|
|
454
|
+
labels: {
|
|
455
|
+
...e.value.style.chart.dialog.xyChart.chart.grid.labels,
|
|
456
|
+
xAxisLabels: {
|
|
457
|
+
...e.value.style.chart.dialog.xyChart.chart.grid.labels.xAxisLabels,
|
|
458
|
+
values: e.value.style.chart.xAxis.labels.values
|
|
459
|
+
// Overriding
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
tooltip: {
|
|
464
|
+
...e.value.style.chart.dialog.xyChart.chart.tooltip,
|
|
465
|
+
showTimeLabel: e.value.style.chart.xAxis.labels.values.length > 0
|
|
466
|
+
// Overriding
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}, d.value && d.value.open());
|
|
470
|
+
}
|
|
471
|
+
const we = v(null);
|
|
472
|
+
function it(a) {
|
|
473
|
+
we.value = a;
|
|
474
|
+
}
|
|
475
|
+
function ut() {
|
|
476
|
+
we.value = null;
|
|
477
|
+
}
|
|
478
|
+
const ue = v(!1);
|
|
479
|
+
function Ce() {
|
|
480
|
+
ue.value = !ue.value;
|
|
481
|
+
}
|
|
482
|
+
function Pe() {
|
|
483
|
+
Z.value.showTable = !Z.value.showTable;
|
|
484
|
+
}
|
|
485
|
+
const De = k(() => ({ body: ee.value.flatMap((t) => t.datapoints.flatMap((o) => ({
|
|
486
|
+
...o,
|
|
487
|
+
rowName: `${t.name}: ${o.name}`
|
|
488
|
+
}))).map((t) => [
|
|
489
|
+
{
|
|
490
|
+
name: t.rowName,
|
|
491
|
+
color: t.color
|
|
492
|
+
},
|
|
493
|
+
...t.values
|
|
494
|
+
]) })), ce = k(() => {
|
|
495
|
+
const a = [
|
|
496
|
+
e.value.table.columnNames.series,
|
|
497
|
+
...e.value.style.chart.xAxis.labels.values
|
|
498
|
+
], n = {
|
|
499
|
+
th: {
|
|
500
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
501
|
+
color: e.value.table.th.color,
|
|
502
|
+
outline: e.value.table.th.outline
|
|
503
|
+
},
|
|
504
|
+
td: {
|
|
505
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
506
|
+
color: e.value.table.td.color,
|
|
507
|
+
outline: e.value.table.td.outline
|
|
508
|
+
},
|
|
509
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
510
|
+
};
|
|
511
|
+
return {
|
|
512
|
+
colNames: [
|
|
513
|
+
e.value.table.columnNames.series,
|
|
514
|
+
...e.value.style.chart.xAxis.labels.values
|
|
515
|
+
],
|
|
516
|
+
head: a,
|
|
517
|
+
body: De.value.body,
|
|
518
|
+
config: n
|
|
519
|
+
};
|
|
520
|
+
});
|
|
521
|
+
function Ne() {
|
|
522
|
+
Je(() => {
|
|
523
|
+
const a = [
|
|
524
|
+
[e.value.table.columnNames.series, ...e.value.style.chart.xAxis.labels.values.map((o) => [o])],
|
|
525
|
+
...De.value.body.map((o, s) => [o[0].name, ...o.slice(1)])
|
|
526
|
+
], n = [
|
|
527
|
+
[e.value.style.chart.title.text],
|
|
528
|
+
[e.value.style.chart.title.subtitle.text]
|
|
529
|
+
].concat(a), t = Pt(n);
|
|
530
|
+
Dt({
|
|
531
|
+
csvContent: t,
|
|
532
|
+
title: e.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
function ct() {
|
|
537
|
+
return ee.value;
|
|
538
|
+
}
|
|
539
|
+
return ye({
|
|
540
|
+
getData: ct,
|
|
541
|
+
generateImage: Me,
|
|
542
|
+
generatePdf: ze,
|
|
543
|
+
generateCsv: Ne,
|
|
544
|
+
toggleAnnotator: Ce,
|
|
545
|
+
toggleTable: Pe
|
|
546
|
+
}), (a, n) => (i(), u("div", {
|
|
547
|
+
ref_key: "ridgelineChart",
|
|
548
|
+
ref: l,
|
|
549
|
+
class: Re(`vue-ui-ridgeline ${te.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
550
|
+
id: `vue-ui-ridgeline_${S.value}`,
|
|
551
|
+
style: P({
|
|
552
|
+
fontFamily: e.value.style.fontFamily,
|
|
553
|
+
width: "100%",
|
|
554
|
+
textAlign: "center",
|
|
555
|
+
background: e.value.style.chart.backgroundColor,
|
|
556
|
+
height: e.value.responsive ? "100%" : void 0
|
|
557
|
+
}),
|
|
558
|
+
onMouseenter: n[4] || (n[4] = () => g(re)(!0)),
|
|
559
|
+
onMouseleave: n[5] || (n[5] = () => g(re)(!1))
|
|
560
|
+
}, [
|
|
561
|
+
e.value.userOptions.buttons.annotator && g(xe) ? (i(), T(Ut, {
|
|
562
|
+
key: 0,
|
|
563
|
+
color: e.value.style.chart.color,
|
|
564
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
565
|
+
active: ue.value,
|
|
566
|
+
svgRef: g(xe),
|
|
567
|
+
onClose: Ce
|
|
568
|
+
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : y("", !0),
|
|
569
|
+
b(a.$slots, "userConfig", {}, void 0, !0),
|
|
570
|
+
Ze.value ? (i(), u("div", {
|
|
571
|
+
key: 1,
|
|
572
|
+
ref_key: "noTitle",
|
|
573
|
+
ref: q,
|
|
574
|
+
class: "vue-data-ui-no-title-space",
|
|
575
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
576
|
+
}, null, 512)) : y("", !0),
|
|
577
|
+
e.value.style.chart.title.text ? (i(), u("div", {
|
|
578
|
+
key: 2,
|
|
579
|
+
ref_key: "chartTitle",
|
|
580
|
+
ref: se,
|
|
581
|
+
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
582
|
+
}, [
|
|
583
|
+
(i(), T(qt, {
|
|
584
|
+
key: `title_${I.value}`,
|
|
585
|
+
config: {
|
|
586
|
+
title: {
|
|
587
|
+
cy: "ridgeline-div-title",
|
|
588
|
+
...e.value.style.chart.title
|
|
589
|
+
},
|
|
590
|
+
subtitle: {
|
|
591
|
+
cy: "ridgeline-div-subtitle",
|
|
592
|
+
...e.value.style.chart.title.subtitle
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}, null, 8, ["config"]))
|
|
596
|
+
], 512)) : y("", !0),
|
|
597
|
+
e.value.userOptions.show && L.value && (g(Q) || g(K)) ? (i(), T(Ft, {
|
|
598
|
+
ref: "details",
|
|
599
|
+
key: `user_option_${D.value}`,
|
|
600
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
601
|
+
color: e.value.style.chart.color,
|
|
602
|
+
isPrinting: g(Ae),
|
|
603
|
+
isImaging: g(Se),
|
|
604
|
+
uid: S.value,
|
|
605
|
+
hasTooltip: !1,
|
|
606
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
607
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
608
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
609
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
610
|
+
hasLabel: !1,
|
|
611
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
612
|
+
isFullscreen: te.value,
|
|
613
|
+
chartElement: l.value,
|
|
614
|
+
position: e.value.userOptions.position,
|
|
615
|
+
isTooltip: !1,
|
|
616
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
617
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
618
|
+
isAnnotation: ue.value,
|
|
619
|
+
style: P({
|
|
620
|
+
visibility: g(Q) ? g(K) ? "visible" : "hidden" : "visible"
|
|
621
|
+
}),
|
|
622
|
+
onToggleFullscreen: nt,
|
|
623
|
+
onGeneratePdf: g(ze),
|
|
624
|
+
onGenerateCsv: Ne,
|
|
625
|
+
onGenerateImage: g(Me),
|
|
626
|
+
onToggleTable: Pe,
|
|
627
|
+
onToggleAnnotator: Ce
|
|
628
|
+
}, Be({ _: 2 }, [
|
|
629
|
+
a.$slots.menuIcon ? {
|
|
630
|
+
name: "menuIcon",
|
|
631
|
+
fn: w(({ isOpen: t, color: o }) => [
|
|
632
|
+
b(a.$slots, "menuIcon", de(ve({ isOpen: t, color: o })), void 0, !0)
|
|
633
|
+
]),
|
|
634
|
+
key: "0"
|
|
635
|
+
} : void 0,
|
|
636
|
+
a.$slots.optionTooltip ? {
|
|
637
|
+
name: "optionTooltip",
|
|
638
|
+
fn: w(() => [
|
|
639
|
+
b(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
640
|
+
]),
|
|
641
|
+
key: "1"
|
|
642
|
+
} : void 0,
|
|
643
|
+
a.$slots.optionPdf ? {
|
|
644
|
+
name: "optionPdf",
|
|
645
|
+
fn: w(() => [
|
|
646
|
+
b(a.$slots, "optionPdf", {}, void 0, !0)
|
|
647
|
+
]),
|
|
648
|
+
key: "2"
|
|
649
|
+
} : void 0,
|
|
650
|
+
a.$slots.optionCsv ? {
|
|
651
|
+
name: "optionCsv",
|
|
652
|
+
fn: w(() => [
|
|
653
|
+
b(a.$slots, "optionCsv", {}, void 0, !0)
|
|
654
|
+
]),
|
|
655
|
+
key: "3"
|
|
656
|
+
} : void 0,
|
|
657
|
+
a.$slots.optionImg ? {
|
|
658
|
+
name: "optionImg",
|
|
659
|
+
fn: w(() => [
|
|
660
|
+
b(a.$slots, "optionImg", {}, void 0, !0)
|
|
661
|
+
]),
|
|
662
|
+
key: "4"
|
|
663
|
+
} : void 0,
|
|
664
|
+
a.$slots.optionTable ? {
|
|
665
|
+
name: "optionTable",
|
|
666
|
+
fn: w(() => [
|
|
667
|
+
b(a.$slots, "optionTable", {}, void 0, !0)
|
|
668
|
+
]),
|
|
669
|
+
key: "5"
|
|
670
|
+
} : void 0,
|
|
671
|
+
a.$slots.optionFullscreen ? {
|
|
672
|
+
name: "optionFullscreen",
|
|
673
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
674
|
+
b(a.$slots, "optionFullscreen", de(ve({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
675
|
+
]),
|
|
676
|
+
key: "6"
|
|
677
|
+
} : void 0,
|
|
678
|
+
a.$slots.optionAnnotator ? {
|
|
679
|
+
name: "optionAnnotator",
|
|
680
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
681
|
+
b(a.$slots, "optionAnnotator", de(ve({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
682
|
+
]),
|
|
683
|
+
key: "7"
|
|
684
|
+
} : void 0
|
|
685
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "style", "onGeneratePdf", "onGenerateImage"])) : y("", !0),
|
|
686
|
+
L.value ? (i(), u("svg", {
|
|
687
|
+
key: 4,
|
|
688
|
+
ref_key: "svgRef",
|
|
689
|
+
ref: xe,
|
|
690
|
+
xmlns: g(Ke),
|
|
691
|
+
class: Re({ "vue-data-ui-fullscreen--on": te.value, "vue-data-ui-fulscreen--off": !te.value }),
|
|
692
|
+
viewBox: `0 0 ${x.value.width <= 0 ? 10 : x.value.width} ${z.value.fullHeight <= 0 ? 10 : z.value.fullHeight}`,
|
|
693
|
+
style: P(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};${e.value.responsive ? "height: 100%; width: 100%;" : ""}`)
|
|
694
|
+
}, [
|
|
695
|
+
h("defs", null, [
|
|
696
|
+
(i(!0), u($, null, _(ie.value, (t, o) => (i(), u("linearGradient", {
|
|
697
|
+
id: `gradient-${t.id}-${S.value}`,
|
|
698
|
+
x1: "50%",
|
|
699
|
+
y1: "0%",
|
|
700
|
+
x2: "50%",
|
|
701
|
+
y2: "100%"
|
|
702
|
+
}, [
|
|
703
|
+
h("stop", {
|
|
704
|
+
offset: "0%",
|
|
705
|
+
"stop-color": t.color,
|
|
706
|
+
"stop-opacity": "1"
|
|
707
|
+
}, null, 8, sa),
|
|
708
|
+
h("stop", {
|
|
709
|
+
offset: "30%",
|
|
710
|
+
"stop-color": t.color,
|
|
711
|
+
"stop-opacity": "0.7"
|
|
712
|
+
}, null, 8, na),
|
|
713
|
+
h("stop", {
|
|
714
|
+
offset: "70%",
|
|
715
|
+
"stop-color": t.color,
|
|
716
|
+
"stop-opacity": "0.3"
|
|
717
|
+
}, null, 8, ra),
|
|
718
|
+
h("stop", {
|
|
719
|
+
offset: "100%",
|
|
720
|
+
"stop-color": t.color,
|
|
721
|
+
"stop-opacity": "0.1"
|
|
722
|
+
}, null, 8, ia)
|
|
723
|
+
], 8, oa))), 256))
|
|
724
|
+
]),
|
|
725
|
+
a.$slots.pattern ? (i(), u("g", ua, [
|
|
726
|
+
(i(!0), u($, null, _(ie.value, (t, o) => (i(), u("defs", null, [
|
|
727
|
+
b(a.$slots, "pattern", We({ ref_for: !0 }, { variable: t, patternId: `pattern_${S.value}_${o}` }), void 0, !0)
|
|
728
|
+
]))), 256))
|
|
729
|
+
])) : y("", !0),
|
|
730
|
+
(i(!0), u($, null, _(ee.value, (t, o) => (i(), u("g", null, [
|
|
731
|
+
(i(!0), u($, null, _(t.datapoints, (s, c) => (i(), u("g", null, [
|
|
732
|
+
h("path", {
|
|
733
|
+
fill: e.value.style.chart.backgroundColor,
|
|
734
|
+
stroke: "none",
|
|
735
|
+
"stroke-linecap": "round",
|
|
736
|
+
d: e.value.style.chart.areas.smooth ? s.smoothPath : s.straightPath,
|
|
737
|
+
style: P({ opacity: e.value.style.chart.areas.opacity })
|
|
738
|
+
}, null, 12, ca),
|
|
739
|
+
h("path", {
|
|
740
|
+
fill: `url(#gradient-${s.id}-${S.value})`,
|
|
741
|
+
stroke: e.value.style.chart.areas.stroke.useSerieColor ? s.color : e.value.style.chart.areas.stroke.color,
|
|
742
|
+
"stroke-width": e.value.style.chart.areas.strokeWidth,
|
|
743
|
+
d: e.value.style.chart.areas.smooth ? s.smoothPath : s.straightPath,
|
|
744
|
+
"stroke-linecap": "round",
|
|
745
|
+
"stroke-linejoin": "round"
|
|
746
|
+
}, null, 8, da),
|
|
747
|
+
h("path", {
|
|
748
|
+
stroke: e.value.style.chart.zeroLine.useSerieColor ? s.color : e.value.style.chart.zeroLine.stroke,
|
|
749
|
+
"stroke-dasharray": e.value.style.chart.zeroLine.strokeDasharray,
|
|
750
|
+
"stroke-width": e.value.style.chart.zeroLine.strokeWidth,
|
|
751
|
+
d: s.zeroPath,
|
|
752
|
+
"stroke-linecap": "round"
|
|
753
|
+
}, null, 8, va),
|
|
754
|
+
e.value.style.chart.areas.maxPoint.show && s.plots.length > 1 ? (i(!0), u($, { key: 0 }, _(s.plots, (M) => (i(), u($, null, [
|
|
755
|
+
M.isMaxPoint ? (i(), u("line", {
|
|
756
|
+
key: 0,
|
|
757
|
+
x1: M.x,
|
|
758
|
+
y1: M.y,
|
|
759
|
+
x2: M.x,
|
|
760
|
+
y2: M.zero,
|
|
761
|
+
stroke: e.value.style.chart.areas.maxPoint.adaptStrokeToBackground ? g(Tt)(s.color) : e.value.style.chart.areas.maxPoint.stroke,
|
|
762
|
+
"stroke-width": e.value.style.chart.areas.maxPoint.strokeWidth,
|
|
763
|
+
"stroke-linecap": "round",
|
|
764
|
+
"stroke-dasharray": e.value.style.chart.areas.maxPoint.strokeDasharray
|
|
765
|
+
}, null, 8, ha)) : y("", !0)
|
|
766
|
+
], 64))), 256)) : y("", !0),
|
|
767
|
+
s.plots.length === 1 ? (i(), u("circle", {
|
|
768
|
+
key: 1,
|
|
769
|
+
cx: s.plots[0].x,
|
|
770
|
+
cy: s.plots[0].y,
|
|
771
|
+
stroke: e.value.style.chart.selector.dot.stroke,
|
|
772
|
+
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
773
|
+
r: e.value.style.chart.selector.dot.radius,
|
|
774
|
+
fill: e.value.style.chart.selector.dot.useDatapointColor ? s.color : e.value.style.chart.selector.dot.fill,
|
|
775
|
+
style: {
|
|
776
|
+
pointerEvents: "none"
|
|
777
|
+
}
|
|
778
|
+
}, null, 8, fa)) : y("", !0)
|
|
779
|
+
]))), 256)),
|
|
780
|
+
h("text", {
|
|
781
|
+
x: t.label.x,
|
|
782
|
+
y: t.label.y,
|
|
783
|
+
"text-anchor": "end",
|
|
784
|
+
"font-size": e.value.style.chart.yAxis.labels.fontSize,
|
|
785
|
+
"font-weight": e.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
786
|
+
fill: e.value.style.chart.yAxis.labels.color,
|
|
787
|
+
style: P({
|
|
788
|
+
cursor: e.value.style.chart.dialog.show ? "pointer" : "default"
|
|
789
|
+
}),
|
|
790
|
+
"text-decoration": e.value.style.chart.dialog.show && (we.value === o || r.value && t.uid === r.value.uid) ? "underline" : "",
|
|
791
|
+
onMouseenter: (s) => it(o),
|
|
792
|
+
onMouseleave: ut,
|
|
793
|
+
onClick: (s) => rt(t)
|
|
794
|
+
}, G(t.name), 45, ga)
|
|
795
|
+
]))), 256)),
|
|
796
|
+
e.value.style.chart.xAxis.labels.values.length ? (i(), u("g", ya, [
|
|
797
|
+
(i(!0), u($, null, _(U.value, (t, o) => b(a.$slots, "time-label", We({ ref_for: !0 }, {
|
|
798
|
+
show: t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o === U.value.length - 1) || t && f.value && f.value.index === o || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && o % Math.floor(U.value.length / e.value.style.chart.xAxis.labels.modulo) === 0,
|
|
799
|
+
fontSize: e.value.style.chart.xAxis.labels.fontSize,
|
|
800
|
+
content: t.label,
|
|
801
|
+
textAnchor: e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
802
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
803
|
+
transform: `translate(${t.selectorX}, ${z.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
804
|
+
x: t.selectorX,
|
|
805
|
+
y: z.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY
|
|
806
|
+
}), () => [
|
|
807
|
+
t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !e.value.style.chart.xAxis.labels.showOnlyAtModulo || t && e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (o === 0 || o === U.value.length - 1) || t && f.value && f.value.index === o || t && !e.value.style.chart.xAxis.labels.showOnlyFirstAndLast && e.value.style.chart.xAxis.labels.showOnlyAtModulo && o % Math.floor(U.value.length / e.value.style.chart.xAxis.labels.modulo) === 0 ? (i(), u("text", {
|
|
808
|
+
key: 0,
|
|
809
|
+
"font-size": e.value.style.chart.xAxis.labels.fontSize,
|
|
810
|
+
fill: e.value.style.chart.xAxis.labels.color,
|
|
811
|
+
"font-weight": e.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
812
|
+
transform: `translate(${t.selectorX}, ${z.value.top + t.height + e.value.style.chart.xAxis.labels.offsetY}), rotate(${e.value.style.chart.xAxis.labels.rotation})`,
|
|
813
|
+
"text-anchor": e.value.style.chart.xAxis.labels.rotation > 0 ? "start" : e.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
814
|
+
style: P({
|
|
815
|
+
opacity: f.value ? f.value.index === o ? 1 : 0.2 : 1
|
|
816
|
+
})
|
|
817
|
+
}, G(t.label), 13, pa)) : y("", !0)
|
|
818
|
+
], !0)), 256))
|
|
819
|
+
])) : y("", !0),
|
|
820
|
+
h("g", null, [
|
|
821
|
+
(i(!0), u($, null, _(U.value, (t, o) => (i(), u("rect", {
|
|
822
|
+
x: t.x,
|
|
823
|
+
y: t.y,
|
|
824
|
+
width: t.width < 0 ? 0.1 : t.width,
|
|
825
|
+
height: t.height < 0 ? 0.1 : t.height,
|
|
826
|
+
fill: "transparent",
|
|
827
|
+
onMouseenter: (s) => f.value = t,
|
|
828
|
+
onMouseleave: n[0] || (n[0] = (s) => f.value = null),
|
|
829
|
+
onClick: () => tt(t)
|
|
830
|
+
}, null, 40, ma))), 256)),
|
|
831
|
+
e.value.style.chart.selector.show && f.value ? (i(), u("line", {
|
|
832
|
+
key: 0,
|
|
833
|
+
x1: f.value.selectorX,
|
|
834
|
+
x2: f.value.selectorX,
|
|
835
|
+
y1: f.value.y,
|
|
836
|
+
y2: f.value.y + f.value.height - m.value / 2,
|
|
837
|
+
stroke: e.value.style.chart.selector.stroke,
|
|
838
|
+
"stroke-width": e.value.style.chart.selector.strokeWidth,
|
|
839
|
+
"stroke-dasharray": e.value.style.chart.selector.strokeDasharray,
|
|
840
|
+
"stroke-linecap": "round",
|
|
841
|
+
style: { pointerEvents: "none" }
|
|
842
|
+
}, null, 8, xa)) : y("", !0),
|
|
843
|
+
f.value ? (i(!0), u($, { key: 1 }, _(ee.value, (t) => (i(), u($, null, [
|
|
844
|
+
(i(!0), u($, null, _(t.datapoints, (o) => (i(), u($, null, [
|
|
845
|
+
(i(!0), u($, null, _(o.plots, (s, c) => (i(), u($, null, [
|
|
846
|
+
f.value && f.value.index === c ? (i(), u("circle", {
|
|
847
|
+
key: 0,
|
|
848
|
+
cx: s.x,
|
|
849
|
+
cy: s.y,
|
|
850
|
+
stroke: e.value.style.chart.selector.dot.stroke,
|
|
851
|
+
"stroke-width": e.value.style.chart.selector.dot.strokeWidth,
|
|
852
|
+
r: e.value.style.chart.selector.dot.radius,
|
|
853
|
+
fill: e.value.style.chart.selector.dot.useDatapointColor ? o.color : e.value.style.chart.selector.dot.fill,
|
|
854
|
+
style: {
|
|
855
|
+
pointerEvents: "none"
|
|
856
|
+
}
|
|
857
|
+
}, null, 8, ba)) : y("", !0),
|
|
858
|
+
f.value && f.value.index === c ? (i(), u("text", {
|
|
859
|
+
key: 1,
|
|
860
|
+
x: Te(
|
|
861
|
+
s.x,
|
|
862
|
+
g(fe)(
|
|
863
|
+
e.value.style.chart.selector.labels.formatter,
|
|
864
|
+
s.value,
|
|
865
|
+
g(ge)({
|
|
866
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
867
|
+
v: s.value,
|
|
868
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
869
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
870
|
+
})
|
|
871
|
+
),
|
|
872
|
+
e.value.style.chart.selector.labels.fontSize
|
|
873
|
+
) ? s.x - e.value.style.chart.selector.labels.fontSize / 2 : s.x + e.value.style.chart.selector.labels.fontSize / 2,
|
|
874
|
+
y: s.y + e.value.style.chart.selector.labels.fontSize / 3,
|
|
875
|
+
"text-anchor": Te(
|
|
876
|
+
s.x,
|
|
877
|
+
g(fe)(
|
|
878
|
+
e.value.style.chart.selector.labels.formatter,
|
|
879
|
+
s.value,
|
|
880
|
+
g(ge)({
|
|
881
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
882
|
+
v: s.value,
|
|
883
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
884
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
885
|
+
})
|
|
886
|
+
),
|
|
887
|
+
e.value.style.chart.selector.labels.fontSize
|
|
888
|
+
) ? "end" : "start",
|
|
889
|
+
"font-size": e.value.style.chart.selector.labels.fontSize,
|
|
890
|
+
fill: e.value.style.chart.selector.labels.color,
|
|
891
|
+
style: {
|
|
892
|
+
pointerEvents: "none"
|
|
893
|
+
}
|
|
894
|
+
}, G(g(fe)(
|
|
895
|
+
e.value.style.chart.selector.labels.formatter,
|
|
896
|
+
s.value,
|
|
897
|
+
g(ge)({
|
|
898
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
899
|
+
v: s.value,
|
|
900
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
901
|
+
r: e.value.style.chart.selector.labels.rounding
|
|
902
|
+
})
|
|
903
|
+
)), 9, ka)) : y("", !0)
|
|
904
|
+
], 64))), 256))
|
|
905
|
+
], 64))), 256))
|
|
906
|
+
], 64))), 256)) : y("", !0)
|
|
907
|
+
]),
|
|
908
|
+
b(a.$slots, "svg", { svg: x.value }, void 0, !0)
|
|
909
|
+
], 14, la)) : y("", !0),
|
|
910
|
+
a.$slots.watermark ? (i(), u("div", wa, [
|
|
911
|
+
b(a.$slots, "watermark", de(ve({ isPrinting: g(Ae) || g(Se) })), void 0, !0)
|
|
912
|
+
])) : y("", !0),
|
|
913
|
+
L.value ? y("", !0) : (i(), T(jt, {
|
|
914
|
+
key: 6,
|
|
915
|
+
config: {
|
|
916
|
+
type: "ridgeline",
|
|
917
|
+
style: {
|
|
918
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
919
|
+
ridgeline: {
|
|
920
|
+
color: "#CCCCCC"
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}, null, 8, ["config"])),
|
|
925
|
+
h("div", {
|
|
926
|
+
ref_key: "chartLegend",
|
|
927
|
+
ref: j
|
|
928
|
+
}, [
|
|
929
|
+
e.value.style.chart.legend.show ? (i(), T(Vt, {
|
|
930
|
+
key: `legend_${J.value}`,
|
|
931
|
+
legendSet: ie.value,
|
|
932
|
+
config: st.value,
|
|
933
|
+
onClickMarker: n[1] || (n[1] = ({ legend: t }) => Le(t.id))
|
|
934
|
+
}, Be({
|
|
935
|
+
item: w(({ legend: t }) => [
|
|
936
|
+
h("div", {
|
|
937
|
+
style: P(`opacity:${N.value.includes(t.id) ? 0.5 : 1}`),
|
|
938
|
+
onClick: (o) => t.segregate()
|
|
939
|
+
}, G(t.name), 13, Ca)
|
|
940
|
+
]),
|
|
941
|
+
_: 2
|
|
942
|
+
}, [
|
|
943
|
+
a.$slots.pattern ? {
|
|
944
|
+
name: "legend-pattern",
|
|
945
|
+
fn: w(({ legend: t, index: o }) => [
|
|
946
|
+
qe(Gt, {
|
|
947
|
+
shape: t.shape,
|
|
948
|
+
radius: 30,
|
|
949
|
+
stroke: "none",
|
|
950
|
+
plot: { x: 30, y: 30 },
|
|
951
|
+
fill: `url(#pattern_${S.value}_${o})`
|
|
952
|
+
}, null, 8, ["shape", "fill"])
|
|
953
|
+
]),
|
|
954
|
+
key: "0"
|
|
955
|
+
} : void 0
|
|
956
|
+
]), 1032, ["legendSet", "config"])) : y("", !0),
|
|
957
|
+
b(a.$slots, "legend", { legend: ie.value }, void 0, !0)
|
|
958
|
+
], 512),
|
|
959
|
+
a.$slots.source ? (i(), u("div", {
|
|
960
|
+
key: 7,
|
|
961
|
+
ref_key: "source",
|
|
962
|
+
ref: O,
|
|
963
|
+
dir: "auto"
|
|
964
|
+
}, [
|
|
965
|
+
b(a.$slots, "source", {}, void 0, !0)
|
|
966
|
+
], 512)) : y("", !0),
|
|
967
|
+
L.value ? (i(), T(Bt, {
|
|
968
|
+
key: 8,
|
|
969
|
+
hideDetails: "",
|
|
970
|
+
config: {
|
|
971
|
+
open: Z.value.showTable,
|
|
972
|
+
maxHeight: 1e4,
|
|
973
|
+
body: {
|
|
974
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
975
|
+
color: e.value.style.chart.color
|
|
976
|
+
},
|
|
977
|
+
head: {
|
|
978
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
979
|
+
color: e.value.style.chart.color
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}, {
|
|
983
|
+
content: w(() => [
|
|
984
|
+
(i(), T(Yt, {
|
|
985
|
+
key: `table_${F.value}`,
|
|
986
|
+
colNames: ce.value.colNames,
|
|
987
|
+
head: ce.value.head,
|
|
988
|
+
body: ce.value.body,
|
|
989
|
+
config: ce.value.config,
|
|
990
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` :${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
991
|
+
onClose: n[2] || (n[2] = (t) => Z.value.showTable = !1)
|
|
992
|
+
}, {
|
|
993
|
+
th: w(({ th: t }) => [
|
|
994
|
+
h("div", { innerHTML: t }, null, 8, $a)
|
|
995
|
+
]),
|
|
996
|
+
td: w(({ td: t }) => [
|
|
997
|
+
Ye(G(t.name ? t.name : g(fe)(
|
|
998
|
+
e.value.style.chart.selector.labels.formatter,
|
|
999
|
+
t,
|
|
1000
|
+
g(ge)({
|
|
1001
|
+
p: e.value.style.chart.xAxis.labels.prefix,
|
|
1002
|
+
v: t,
|
|
1003
|
+
s: e.value.style.chart.xAxis.labels.suffix,
|
|
1004
|
+
r: e.value.table.td.roundingValue
|
|
1005
|
+
})
|
|
1006
|
+
)), 1)
|
|
1007
|
+
]),
|
|
1008
|
+
_: 1
|
|
1009
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1010
|
+
]),
|
|
1011
|
+
_: 1
|
|
1012
|
+
}, 8, ["config"])) : y("", !0),
|
|
1013
|
+
e.value.style.chart.dialog.show ? (i(), T(ta, {
|
|
1014
|
+
key: 9,
|
|
1015
|
+
ref_key: "dialog",
|
|
1016
|
+
ref: d,
|
|
1017
|
+
onClose: n[3] || (n[3] = (t) => r.value = null),
|
|
1018
|
+
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1019
|
+
color: e.value.style.chart.dialog.color,
|
|
1020
|
+
headerBg: e.value.style.chart.dialog.header.backgroundColor,
|
|
1021
|
+
headerColor: e.value.style.chart.dialog.header.color
|
|
1022
|
+
}, {
|
|
1023
|
+
title: w(() => [
|
|
1024
|
+
Ye(G(r.value.name), 1)
|
|
1025
|
+
]),
|
|
1026
|
+
default: w(() => [
|
|
1027
|
+
r.value ? (i(), T(Jt, {
|
|
1028
|
+
key: 0,
|
|
1029
|
+
config: Oe.value,
|
|
1030
|
+
dataset: Ee.value
|
|
1031
|
+
}, null, 8, ["config", "dataset"])) : y("", !0)
|
|
1032
|
+
]),
|
|
1033
|
+
_: 1
|
|
1034
|
+
}, 8, ["backgroundColor", "color", "headerBg", "headerColor"])) : y("", !0)
|
|
1035
|
+
], 46, aa));
|
|
1036
|
+
}
|
|
1037
|
+
}, Wa = /* @__PURE__ */ Qe(Aa, [["__scopeId", "data-v-2685d149"]]);
|
|
1038
|
+
export {
|
|
1039
|
+
Wa as default
|
|
1040
|
+
};
|