vue-data-ui 2.6.19 → 2.6.21
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 +8 -0
- package/dist/{Arrow-QMACp9z-.cjs → Arrow-C1pcd-am.cjs} +1 -1
- package/dist/{Arrow-DTtLZwne.js → Arrow-DQaZQgi6.js} +1 -1
- package/dist/{BaseIcon-BpRuwiFD.cjs → BaseIcon-BQwivF_K.cjs} +1 -1
- package/dist/{BaseIcon-nz-vbP7I.js → BaseIcon-DH34CAFx.js} +1 -1
- package/dist/{DataTable-Dr-djTUz.cjs → DataTable-D5572vAU.cjs} +1 -1
- package/dist/{DataTable-pNLWbeCL.js → DataTable-DfMqgTjL.js} +2 -2
- package/dist/{Legend-BHbX2C8f.cjs → Legend-CoREnR30.cjs} +1 -1
- package/dist/{Legend-s9DRKvJo.js → Legend-PL8rU0J1.js} +2 -2
- package/dist/{PackageVersion-hltZM-fb.js → PackageVersion-1Y7SXTrk.js} +1 -1
- package/dist/{PackageVersion-DsoqDgVf.cjs → PackageVersion-JsuXjgR_.cjs} +1 -1
- package/dist/PenAndPaper-7lGhxIH8.cjs +1 -0
- package/dist/{PenAndPaper-qmkn1GhB.js → PenAndPaper-BYhUvcy4.js} +20 -16
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-z17A_S1M.js → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-AmNwJZI7.js} +3 -3
- package/dist/{PenAndPaper.vue_vue_type_style_index_0_scoped_c968a401_lang-lH7bkq1z.cjs → PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-NplvneD1.cjs} +1 -1
- package/dist/{Shape-YhMDtuHk.cjs → Shape-HtDeeGqp.cjs} +1 -1
- package/dist/{Shape-C3y6rj0O.js → Shape-Ov27sl2L.js} +1 -1
- package/dist/{Slicer-BIW17-XH.js → Slicer-6F4tHrZR.js} +3 -3
- package/dist/{Slicer-BA8XF-Ak.cjs → Slicer-COXIFuZ-.cjs} +1 -1
- package/dist/{Title-dsg3PqUg.js → Title-1PWD04Gh.js} +1 -1
- package/dist/{Title-DWqgN4Kv.cjs → Title-Pgt1Ixvo.cjs} +1 -1
- package/dist/{Tooltip-DRFQIslg.js → Tooltip-BTO5NGkn.js} +1 -1
- package/dist/{Tooltip-B6T_qzJD.cjs → Tooltip-te_h24w6.cjs} +1 -1
- package/dist/{index-3OrObUP-.cjs → index-DM-Bs-Ua.cjs} +1 -1
- package/dist/{index-DvAaY6OP.js → index-DUnEDLbc.js} +1 -1
- package/dist/index.es-DvaaoatM.cjs +18 -0
- package/dist/index.es-RWt7DWPC.js +6645 -0
- package/dist/{jspdf.es.min-C5v1xtPn.cjs → jspdf.es.min-Rw70uifz.cjs} +23 -23
- package/dist/{jspdf.es.min-DKXYalZb.js → jspdf.es.min-eTA26cmm.js} +476 -470
- package/dist/{pdf-CHXlEvWj.cjs → pdf-DSkQT5iH.cjs} +1 -1
- package/dist/{pdf-70oZh5Jp.js → pdf-DVWl3Adn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CGzX7c5Q.js → useNestedProp-CEMeoM-f.js} +1 -1
- package/dist/{useNestedProp-B53Yi1Rk.cjs → useNestedProp-CYy5g-mh.cjs} +1 -1
- package/dist/usePrinter-DbpIk44f.cjs +1 -0
- package/dist/{usePrinter-D_2jA4x8.js → usePrinter-Undaynpo.js} +73 -71
- package/dist/useResponsive-N8jl0-aC.cjs +1 -0
- package/dist/{useResponsive-BWapHhVH.js → useResponsive-vZgZwV-S.js} +65 -64
- package/dist/{vue-data-ui-CTjgYwlW.cjs → vue-data-ui-BapofDyJ.cjs} +1 -1
- package/dist/{vue-data-ui-DMl9rAwQ.js → vue-data-ui-DnaIYz0z.js} +61 -61
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DBVRoMwv.js → vue-ui-3d-bar-DLYaW0-y.js} +105 -98
- package/dist/{vue-ui-3d-bar-OwVsZokU.cjs → vue-ui-3d-bar-DansBM76.cjs} +2 -2
- package/dist/{vue-ui-accordion-LbUarYuf.js → vue-ui-accordion-C8Couc_G.js} +3 -3
- package/dist/{vue-ui-accordion-BmScSwW2.cjs → vue-ui-accordion-ZIsT4At8.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DQ5dL4yb.cjs → vue-ui-age-pyramid-BSXnW9GF.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-rmfEfmj7.js → vue-ui-age-pyramid-BdruKMmo.js} +76 -69
- package/dist/{vue-ui-annotator-nS_RSspz.cjs → vue-ui-annotator-B7Go0M7W.cjs} +1 -1
- package/dist/{vue-ui-annotator-FlMkU7Kj.js → vue-ui-annotator-DVfdPMa7.js} +2 -2
- package/dist/{vue-ui-bullet-esfPgi-9.js → vue-ui-bullet-CkCJgmoJ.js} +145 -138
- package/dist/{vue-ui-bullet-BGTTcXBJ.cjs → vue-ui-bullet-N9ud2cQ7.cjs} +4 -4
- package/dist/{vue-ui-candlestick-RHrlnUqs.js → vue-ui-candlestick-C9B13qeU.js} +116 -109
- package/dist/{vue-ui-candlestick-BUEGFHg_.cjs → vue-ui-candlestick-DPIs9tEW.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-6uP-Kk9U.js → vue-ui-carousel-table-BLo52Rqu.js} +130 -123
- package/dist/{vue-ui-carousel-table-DCcPnWRU.cjs → vue-ui-carousel-table-DgcY4j9y.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B7Ep4Lho.cjs → vue-ui-chestnut-C9Zw_bey.cjs} +2 -2
- package/dist/{vue-ui-chestnut-Dh4y5s_v.js → vue-ui-chestnut-D8oXG8Tf.js} +131 -124
- package/dist/vue-ui-circle-pack-CrEdkNM7.js +648 -0
- package/dist/vue-ui-circle-pack-DYW-e2E5.cjs +1 -0
- package/dist/{vue-ui-cursor-D-IzE_jd.cjs → vue-ui-cursor-CtSijliN.cjs} +1 -1
- package/dist/{vue-ui-cursor-C21WgpGu.js → vue-ui-cursor-DkW4pJcP.js} +2 -2
- package/dist/{vue-ui-dashboard-T0LqYCqM.js → vue-ui-dashboard-5_Du0Yr2.js} +3 -3
- package/dist/{vue-ui-dashboard-DQ_wht4B.cjs → vue-ui-dashboard-Dh5vRbdI.cjs} +1 -1
- package/dist/{vue-ui-digits-CwV6mhHZ.cjs → vue-ui-digits-DEmYk7sS.cjs} +1 -1
- package/dist/{vue-ui-digits-CLFrlUIW.js → vue-ui-digits-DhA1bHdz.js} +2 -2
- package/dist/{vue-ui-donut-dVplEheX.js → vue-ui-donut-B-G7gRdV.js} +118 -111
- package/dist/{vue-ui-donut-b_UXDeKJ.cjs → vue-ui-donut-BrZxaijU.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Bl50EWBG.js → vue-ui-donut-evolution-B4almlBq.js} +164 -157
- package/dist/{vue-ui-donut-evolution-VxNtQWGH.cjs → vue-ui-donut-evolution-CTbXi7wk.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B-7s7x7a.cjs → vue-ui-dumbbell-CAIlnhsM.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-Bp685TTG.js → vue-ui-dumbbell-kZGa__IU.js} +75 -68
- package/dist/{vue-ui-flow-CHbfoU97.js → vue-ui-flow-Bc31ZN1W.js} +177 -170
- package/dist/{vue-ui-flow-DJqOVlD7.cjs → vue-ui-flow-D2UNbwlp.cjs} +1 -1
- package/dist/{vue-ui-funnel-B77giO54.cjs → vue-ui-funnel-DfCz1GNN.cjs} +1 -1
- package/dist/{vue-ui-funnel-Bhv0XRzJ.js → vue-ui-funnel-V7hu2Iib.js} +129 -122
- package/dist/{vue-ui-galaxy-Dt4dx9bS.cjs → vue-ui-galaxy-CNBC7IbU.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DMA8AX8h.js → vue-ui-galaxy-DLCcy7Kq.js} +77 -70
- package/dist/{vue-ui-gauge-CBlurlZk.js → vue-ui-gauge-CZMHtEcr.js} +153 -146
- package/dist/{vue-ui-gauge-Bh3iSbSd.cjs → vue-ui-gauge-D8IglqIF.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CHhJKge-.js → vue-ui-gizmo-BuAVBMBp.js} +3 -3
- package/dist/{vue-ui-gizmo-BMrnNfYR.cjs → vue-ui-gizmo-fyC414Iv.cjs} +1 -1
- package/dist/vue-ui-heatmap-CDOry_F1.cjs +1 -0
- package/dist/{vue-ui-heatmap-CB4852rp.js → vue-ui-heatmap-hUfFzGck.js} +139 -132
- package/dist/{vue-ui-history-plot-AwmdEhYL.js → vue-ui-history-plot-C79l8rPm.js} +122 -115
- package/dist/{vue-ui-history-plot-BG7r0ZF7.cjs → vue-ui-history-plot-CIXgvWpk.cjs} +1 -1
- package/dist/{vue-ui-kpi-DcxE4Vv7.js → vue-ui-kpi-C3tHthXH.js} +3 -3
- package/dist/{vue-ui-kpi-BYCMEzBt.cjs → vue-ui-kpi-yiWxNLJ-.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CdDRH8Rb.js → vue-ui-mini-loader-1p1jAKx_.js} +2 -2
- package/dist/{vue-ui-mini-loader-DOqUfxRJ.cjs → vue-ui-mini-loader-26yCYjxn.cjs} +1 -1
- package/dist/{vue-ui-molecule-C-Z0Ywq1.cjs → vue-ui-molecule-Bw0dYLfu.cjs} +1 -1
- package/dist/{vue-ui-molecule-BskBKGbQ.js → vue-ui-molecule-COQ-yrBr.js} +249 -242
- package/dist/{vue-ui-mood-radar-BAPZ1LyF.js → vue-ui-mood-radar-CwfGiQ43.js} +111 -104
- package/dist/{vue-ui-mood-radar-BIrQKfVf.cjs → vue-ui-mood-radar-Cyde9hnR.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BB2Kgb5F.js → vue-ui-nested-donuts-BVaW7w1U.js} +117 -110
- package/dist/{vue-ui-nested-donuts-7YjtP-jC.cjs → vue-ui-nested-donuts-Y07lLGRa.cjs} +2 -2
- package/dist/{vue-ui-onion-BWb18zcN.cjs → vue-ui-onion-DkXss-B_.cjs} +2 -2
- package/dist/{vue-ui-onion-BjMfXAZK.js → vue-ui-onion-h6DP9kOi.js} +143 -136
- package/dist/{vue-ui-parallel-coordinate-plot-D6Vs-5Vh.cjs → vue-ui-parallel-coordinate-plot-CkI21cq2.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-ryqdfkHL.js → vue-ui-parallel-coordinate-plot-O5cwKbzH.js} +113 -106
- package/dist/{vue-ui-quadrant-Cr4ypLzT.js → vue-ui-quadrant-CfywvXnV.js} +112 -105
- package/dist/{vue-ui-quadrant-BmsHBpKo.cjs → vue-ui-quadrant-F6w-QJE_.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-45IEXHb0.cjs → vue-ui-quick-chart-BeMHD_Kz.cjs} +3 -3
- package/dist/{vue-ui-quick-chart-C9dIHRYi.js → vue-ui-quick-chart-C1AwFGSr.js} +195 -188
- package/dist/{vue-ui-radar-Nr5JmVlk.cjs → vue-ui-radar-BejYh3DW.cjs} +1 -1
- package/dist/{vue-ui-radar-T6xdl9ic.js → vue-ui-radar-DDKXLi5o.js} +101 -94
- package/dist/{vue-ui-rating-C5AaiBqZ.js → vue-ui-rating-BrGbM0Op.js} +2 -2
- package/dist/{vue-ui-rating-CFIhZlG-.cjs → vue-ui-rating-C40ktvn7.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-Cw-DcsRY.cjs → vue-ui-relation-circle-C4qT13SI.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BktS594K.js → vue-ui-relation-circle-DrtdiTMX.js} +103 -96
- package/dist/{vue-ui-rings-_evAK3j7.js → vue-ui-rings-C4IdhEUE.js} +169 -162
- package/dist/{vue-ui-rings-2j5fsO_o.cjs → vue-ui-rings-Cd8WyeDZ.cjs} +2 -2
- package/dist/{vue-ui-scatter-C5ePnByD.js → vue-ui-scatter-BS8sgyMi.js} +85 -78
- package/dist/{vue-ui-scatter-W1_ChsfO.cjs → vue-ui-scatter-MmvIeu4D.cjs} +1 -1
- package/dist/{vue-ui-screenshot-B6ASKPJf.cjs → vue-ui-screenshot-BB51-eRL.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DM-PQM2g.js → vue-ui-screenshot-tnFPT1vi.js} +1 -1
- package/dist/{vue-ui-skeleton-WoggMoff.js → vue-ui-skeleton-DieABKlo.js} +3 -3
- package/dist/{vue-ui-skeleton-DaowWOKJ.cjs → vue-ui-skeleton-DlC-U64G.cjs} +1 -1
- package/dist/{vue-ui-smiley-gulDZ8i7.js → vue-ui-smiley-C32wVXgu.js} +2 -2
- package/dist/{vue-ui-smiley-hlaNlq2y.cjs → vue-ui-smiley-DSxKw3ud.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-LbApLsdt.js → vue-ui-spark-trend-B_x1dX38.js} +5 -5
- package/dist/{vue-ui-spark-trend-BcrMflk6.cjs → vue-ui-spark-trend-vexkCCy9.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BdfaDBkw.cjs → vue-ui-sparkbar-CsOEiHDQ.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CnL6FbaE.js → vue-ui-sparkbar-ZSbB6Llo.js} +4 -4
- package/dist/{vue-ui-sparkgauge-CHv1q1cO.cjs → vue-ui-sparkgauge-Bdh7X--h.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Du7PRJyB.js → vue-ui-sparkgauge-Cf3bDk98.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CyEyZvbD.js → vue-ui-sparkhistogram-CrZy1xf0.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CBqKXnvX.cjs → vue-ui-sparkhistogram-fALwb3uK.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DRHE0kK8.cjs → vue-ui-sparkline-D4WDvcZR.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BMNXPHhB.js → vue-ui-sparkline-DTW_lXgp.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-D6wuDd8h.cjs → vue-ui-sparkstackbar-DBPLhUoi.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-D33lwh8d.js → vue-ui-sparkstackbar-Db2Ndf0k.js} +5 -5
- package/dist/{vue-ui-stackbar-CnxGAca-.cjs → vue-ui-stackbar-B3eaSIoO.cjs} +3 -3
- package/dist/{vue-ui-stackbar-C5yoqQAY.js → vue-ui-stackbar-DbF3ZJTD.js} +211 -204
- package/dist/{vue-ui-strip-plot-Cg1B7i3X.js → vue-ui-strip-plot-CpkH2Gfd.js} +83 -76
- package/dist/{vue-ui-strip-plot-DDTTc2jA.cjs → vue-ui-strip-plot-DiCVf5u-.cjs} +1 -1
- package/dist/{vue-ui-table-BGfZl0wF.js → vue-ui-table-D6zWwikN.js} +1 -1
- package/dist/{vue-ui-table-TV5Coa0A.cjs → vue-ui-table-K13fqkDI.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Jjx8L8St.cjs → vue-ui-table-heatmap-BgenCoVa.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D0j2OFv0.js → vue-ui-table-heatmap-EAevgnzN.js} +63 -56
- package/dist/{vue-ui-table-sparkline-D0_FhhN5.cjs → vue-ui-table-sparkline-3JMqr89P.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-C2sUG_7S.js → vue-ui-table-sparkline-s_oWe6MG.js} +90 -83
- package/dist/{vue-ui-thermometer-Bw35Fw8v.cjs → vue-ui-thermometer--mYRly4x.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CdLZ8te2.js → vue-ui-thermometer-Bo3l_0Kf.js} +113 -106
- package/dist/{vue-ui-timer-1-kXQ5_q.js → vue-ui-timer-C9EuUurN.js} +6 -6
- package/dist/{vue-ui-timer-Deg5YPx0.cjs → vue-ui-timer-Djh-ZDNe.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-uSgVLSbo.cjs → vue-ui-tiremarks-CKv_KApZ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BHTSw0fa.js → vue-ui-tiremarks-DgdpEDJ1.js} +76 -69
- package/dist/{vue-ui-treemap-7W_lvbV0.cjs → vue-ui-treemap-AkNJjd2c.cjs} +1 -1
- package/dist/{vue-ui-treemap-C2u5sEzh.js → vue-ui-treemap-D13sISL0.js} +144 -137
- package/dist/{vue-ui-vertical-bar-BlzOi8LC.cjs → vue-ui-vertical-bar-CQlvpdJl.cjs} +3 -3
- package/dist/{vue-ui-vertical-bar-U3LQF-NS.js → vue-ui-vertical-bar-DfegzHj4.js} +120 -113
- package/dist/{vue-ui-waffle-DUXvINoC.cjs → vue-ui-waffle-Dve1LWVt.cjs} +1 -1
- package/dist/{vue-ui-waffle-qAheWwiI.js → vue-ui-waffle-f72Lq8_D.js} +78 -71
- package/dist/{vue-ui-wheel-DIoKCgCS.cjs → vue-ui-wheel-BG1GcVvN.cjs} +1 -1
- package/dist/{vue-ui-wheel-CuLQchDK.js → vue-ui-wheel-BxefMdit.js} +105 -98
- package/dist/{vue-ui-word-cloud-B-nFH7hZ.js → vue-ui-word-cloud-BYY4K2G4.js} +123 -116
- package/dist/{vue-ui-word-cloud-BSvmRQ5n.cjs → vue-ui-word-cloud-CRRR7H7h.cjs} +1 -1
- package/dist/{vue-ui-xy-DXMoSF2C.js → vue-ui-xy-BS0_aTIH.js} +73 -66
- package/dist/{vue-ui-xy-BGsFH9wE.cjs → vue-ui-xy-DGYZFgdd.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-CTymfSH6.js → vue-ui-xy-canvas-Bl2v7Z3U.js} +200 -193
- package/dist/{vue-ui-xy-canvas-i13v43UX.cjs → vue-ui-xy-canvas-R_pPaj0X.cjs} +2 -2
- package/package.json +2 -7
- package/dist/PenAndPaper-Dbw8Fph9.cjs +0 -1
- package/dist/index-Dwoe0gcF.cjs +0 -15
- package/dist/index-Fl-W8YeZ.js +0 -3971
- package/dist/usePrinter-bPnqqKha.cjs +0 -1
- package/dist/useResponsive-YQYQrAZ_.cjs +0 -1
- package/dist/vue-ui-circle-pack-Ce1oEvgz.cjs +0 -1
- package/dist/vue-ui-circle-pack-CrgnQ_jY.js +0 -663
- package/dist/vue-ui-heatmap-DvItO4xs.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ref as L, computed as B, watch as Fe, onMounted as wt, onBeforeUnmount as At, nextTick as Ie, createElementBlock as l, openBlock as a, normalizeStyle as N, normalizeClass as
|
|
2
|
-
import { u as zt, c as Lt, t as $t, p as q, a as Ct, C as it, b as It, J as Et, e as Tt, d as Ue, m as Pt, D as nt, X as Ot, j as Rt, k as Be, n as ke, i as
|
|
3
|
-
import { t as Nt, u as Ft } from "./useResponsive-
|
|
4
|
-
import Pe from "./BaseIcon-
|
|
5
|
-
import { _ as Mt } from "./Tooltip-
|
|
6
|
-
import { u as Ut, U as Bt } from "./usePrinter-
|
|
7
|
-
import { S as Dt } from "./Slicer-
|
|
8
|
-
import Vt from "./vue-ui-skeleton-
|
|
9
|
-
import { u as rt } from "./useNestedProp-
|
|
10
|
-
import { _ as qt } from "./PackageVersion-
|
|
11
|
-
import { P as Wt } from "./PenAndPaper-
|
|
1
|
+
import { ref as L, computed as B, watch as Fe, onMounted as wt, onBeforeUnmount as At, nextTick as Ie, createElementBlock as l, openBlock as a, normalizeStyle as N, normalizeClass as ve, createBlock as Ee, createCommentVNode as f, createVNode as de, unref as g, createSlots as _t, withCtx as G, renderSlot as F, normalizeProps as ae, guardReactiveProps as le, toDisplayString as P, createElementVNode as _, Fragment as m, renderList as $, mergeProps as Me } from "vue";
|
|
2
|
+
import { u as zt, c as Lt, t as $t, p as q, a as Ct, C as it, b as It, J as Et, e as Tt, d as Ue, m as Pt, D as nt, X as Ot, j as Rt, k as Be, n as ke, i as X, f as D, S as ut, v as Z, x as Te, y as De } from "./index-DUnEDLbc.js";
|
|
3
|
+
import { t as Nt, u as Ft } from "./useResponsive-vZgZwV-S.js";
|
|
4
|
+
import Pe from "./BaseIcon-DH34CAFx.js";
|
|
5
|
+
import { _ as Mt } from "./Tooltip-BTO5NGkn.js";
|
|
6
|
+
import { u as Ut, U as Bt } from "./usePrinter-Undaynpo.js";
|
|
7
|
+
import { S as Dt } from "./Slicer-6F4tHrZR.js";
|
|
8
|
+
import Vt from "./vue-ui-skeleton-DieABKlo.js";
|
|
9
|
+
import { u as rt } from "./useNestedProp-CEMeoM-f.js";
|
|
10
|
+
import { _ as qt } from "./PackageVersion-1Y7SXTrk.js";
|
|
11
|
+
import { P as Wt } from "./PenAndPaper-BYhUvcy4.js";
|
|
12
12
|
import { u as Ht } from "./useChartAccessibility-BWojgys7.js";
|
|
13
13
|
import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const A = {
|
|
@@ -18,18 +18,18 @@ const A = {
|
|
|
18
18
|
}, Gt = ["SERIE", "SERIES", "DATA", "VALUE", "VALUES", "NUM"];
|
|
19
19
|
function Xt({ dataset: c, barLineSwitch: C = 6 }) {
|
|
20
20
|
let p = null, M = null, O = 0;
|
|
21
|
-
if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`), be(c) && (
|
|
21
|
+
if ((typeof c == "number" || typeof c == "string") && console.warn(`The provided dataset (${c}) is not sufficient to build a chart`), be(c) && (Y(c) && (c.length < C ? p = A.BAR : p = A.LINE, M = c, O = c.length), Oe(c))) {
|
|
22
22
|
if (!Yt(c))
|
|
23
23
|
return console.warn("The objects in the dataset array have a different data structure. Either keys or value types are different."), !1;
|
|
24
|
-
const
|
|
25
|
-
if (!
|
|
24
|
+
const ie = Object.keys(c[0]), ce = Object.values(c[0]);
|
|
25
|
+
if (!ie.some((E) => Jt(E)))
|
|
26
26
|
return console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
|
|
27
|
-
st(ce, (E) => typeof E == "number") && (p = A.DONUT, M = c), st(ce, (E) => Array.isArray(E) &&
|
|
27
|
+
st(ce, (E) => typeof E == "number") && (p = A.DONUT, M = c), st(ce, (E) => Array.isArray(E) && Y(E)) && (vt(c) > C ? p = A.LINE : p = A.BAR, O = vt(c), M = c.map((E) => ({
|
|
28
28
|
...E,
|
|
29
|
-
data: Qt(E, (j) =>
|
|
29
|
+
data: Qt(E, (j) => Y(j))
|
|
30
30
|
}))), c = c.map((E) => dt(E)), M = M.map((E) => dt(E));
|
|
31
31
|
}
|
|
32
|
-
return be(c) && [...new Set(c.flatMap((
|
|
32
|
+
return be(c) && [...new Set(c.flatMap((ie) => Array.isArray(ie)))][0], {
|
|
33
33
|
dataset: c,
|
|
34
34
|
type: p,
|
|
35
35
|
usableDataset: M,
|
|
@@ -42,7 +42,7 @@ function ct(c) {
|
|
|
42
42
|
function be(c) {
|
|
43
43
|
return Array.isArray(c);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Y(c) {
|
|
46
46
|
if (!be(c) || ct(c)) return !1;
|
|
47
47
|
const C = c.map((p) => Number(p));
|
|
48
48
|
return ![...new Set(C.flatMap((p) => typeof p == "number" && !isNaN(p)))].includes(!1);
|
|
@@ -55,8 +55,8 @@ function Zt(c, C) {
|
|
|
55
55
|
if (p.length !== M.length)
|
|
56
56
|
return !1;
|
|
57
57
|
for (let O = 0; O < p.length; O += 1) {
|
|
58
|
-
const H = p[O],
|
|
59
|
-
if (H !==
|
|
58
|
+
const H = p[O], oe = M[O];
|
|
59
|
+
if (H !== oe || typeof c[H] != typeof C[oe])
|
|
60
60
|
return !1;
|
|
61
61
|
}
|
|
62
62
|
return !0;
|
|
@@ -79,7 +79,7 @@ function st(c, C) {
|
|
|
79
79
|
return p.includes(!0);
|
|
80
80
|
}
|
|
81
81
|
function vt(c) {
|
|
82
|
-
return Math.max(...[...c].flatMap((C) => Object.values(C).filter((p) =>
|
|
82
|
+
return Math.max(...[...c].flatMap((C) => Object.values(C).filter((p) => Y(p)).map((p) => p.length)));
|
|
83
83
|
}
|
|
84
84
|
function Qt(c, C) {
|
|
85
85
|
return Object.values(c).filter((p) => C(p))[0];
|
|
@@ -96,10 +96,10 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
96
96
|
}, sa = ["d", "stroke", "stroke-width", "filter"], va = ["cx", "cy", "r", "fill", "filter"], da = { class: "donut" }, ca = ["d", "fill", "stroke", "stroke-width", "filter"], ha = ["d", "onMouseenter", "onClick"], fa = {
|
|
97
97
|
key: 1,
|
|
98
98
|
class: "donut-labels quick-animation"
|
|
99
|
-
}, ga = ["cx", "cy", "fill", "stroke", "filter"], ma = ["text-anchor", "x", "y", "fill", "font-size", "filter"], pa = ["text-anchor", "x", "y", "fill", "font-size", "filter"],
|
|
99
|
+
}, ga = ["cx", "cy", "fill", "stroke", "filter"], ma = ["text-anchor", "x", "y", "fill", "font-size", "filter"], pa = ["text-anchor", "x", "y", "fill", "font-size", "filter"], ya = {
|
|
100
100
|
key: 2,
|
|
101
101
|
class: "donut-hollow quick-animation"
|
|
102
|
-
},
|
|
102
|
+
}, xa = ["x", "y", "font-size", "fill"], ka = ["x", "y", "font-size", "fill"], ba = {
|
|
103
103
|
key: 0,
|
|
104
104
|
class: "line-grid"
|
|
105
105
|
}, Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Aa = {
|
|
@@ -132,7 +132,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
132
132
|
}, ul = ["x", "y", "font-size", "fill"], rl = { class: "tooltip-traps" }, sl = ["x", "y", "height", "width", "fill", "onMouseenter", "onClick"], vl = {
|
|
133
133
|
key: 6,
|
|
134
134
|
class: "axis-labels"
|
|
135
|
-
}, dl = { key: 0 }, cl = ["font-size", "fill", "x", "y"], hl = { key: 1 }, fl = ["font-size", "fill", "x", "y"], gl = { key: 2 }, ml = ["font-size", "fill", "transform"], pl = { key: 3 },
|
|
135
|
+
}, dl = { key: 0 }, cl = ["font-size", "fill", "x", "y"], hl = { key: 1 }, fl = ["font-size", "fill", "x", "y"], gl = { key: 2 }, ml = ["font-size", "fill", "transform"], pl = { key: 3 }, yl = ["font-size", "fill", "transform"], xl = {
|
|
136
136
|
key: 6,
|
|
137
137
|
class: "vue-data-ui-watermark"
|
|
138
138
|
}, kl = ["onClick"], bl = ["onClick"], Sl = ["onClick"], wl = {
|
|
@@ -156,7 +156,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
156
156
|
},
|
|
157
157
|
emits: ["selectDatapoint", "selectLegend"],
|
|
158
158
|
setup(c, { expose: C, emit: p }) {
|
|
159
|
-
const { vue_ui_quick_chart: M } = zt(), O = c, H = L(null),
|
|
159
|
+
const { vue_ui_quick_chart: M } = zt(), O = c, H = L(null), oe = L(null), ie = L(null), ce = L(null), E = L(Lt()), j = L(!1), he = L(null), Q = L(""), W = L(null), Ve = L(null), qe = L(null), w = L([]), We = L(0), Se = L(0), e = B({
|
|
160
160
|
get: () => Xe(),
|
|
161
161
|
set: (o) => o
|
|
162
162
|
}), { svgRef: He } = Ht({ config: { text: e.value.title } }), ht = B(() => e.value.showUserOptionsOnChartHover), je = B(() => e.value.keepUserOptionsStateOnChartLeave), we = L(!e.value.showUserOptionsOnChartHover);
|
|
@@ -180,9 +180,9 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
180
180
|
Fe(() => O.config, (o) => {
|
|
181
181
|
e.value = Xe(), k.value.width = e.value.width, k.value.height = e.value.height, we.value = !e.value.showUserOptionsOnChartHover, Je(), me.value.showTooltip = e.value.showTooltip;
|
|
182
182
|
}, { deep: !0 }), Fe(() => O.dataset, (o) => {
|
|
183
|
-
|
|
183
|
+
y.value = ge.value, b.value.start = 0, b.value.end = y.value.maxSeriesLength, Se.value += 1;
|
|
184
184
|
}, { deep: !0 });
|
|
185
|
-
const fe = B(() => It(e.value.customPalette)),
|
|
185
|
+
const fe = B(() => It(e.value.customPalette)), ne = p, ge = B(() => {
|
|
186
186
|
const o = Xt({ dataset: Et(O.dataset, [
|
|
187
187
|
"serie",
|
|
188
188
|
"series",
|
|
@@ -192,7 +192,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
192
192
|
"num"
|
|
193
193
|
]), barLineSwitch: e.value.chartIsBarUnderDatasetLength });
|
|
194
194
|
return o || console.error("VueUiQuickChart : Dataset is not processable"), o;
|
|
195
|
-
}),
|
|
195
|
+
}), y = L(ge.value), ft = B(() => !!y.value), z = B(() => y.value ? y.value.type : null);
|
|
196
196
|
Fe(() => z.value, (o) => {
|
|
197
197
|
o || Tt({
|
|
198
198
|
componentName: "VueUiQuickChart",
|
|
@@ -216,9 +216,9 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
216
216
|
const o = Nt(() => {
|
|
217
217
|
const { width: s, height: t } = Ft({
|
|
218
218
|
chart: H.value,
|
|
219
|
-
title: e.value.title ?
|
|
220
|
-
legend: e.value.showLegend ?
|
|
221
|
-
slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy &&
|
|
219
|
+
title: e.value.title ? oe.value : null,
|
|
220
|
+
legend: e.value.showLegend ? ie.value : null,
|
|
221
|
+
slicer: [A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && y.value.maxSeriesLength > 1 ? ce.value : null,
|
|
222
222
|
source: Ve.value,
|
|
223
223
|
noTitle: qe.value
|
|
224
224
|
});
|
|
@@ -261,16 +261,16 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
261
261
|
const u = ge.value.dataset.find((r, h) => o.id === `donut_${h}`).VALUE;
|
|
262
262
|
if (w.value.includes(o.id)) {
|
|
263
263
|
let r = function() {
|
|
264
|
-
t > u ? (Le.value = !1, cancelAnimationFrame(tt.value),
|
|
265
|
-
...
|
|
266
|
-
dataset:
|
|
264
|
+
t > u ? (Le.value = !1, cancelAnimationFrame(tt.value), y.value = {
|
|
265
|
+
...y.value,
|
|
266
|
+
dataset: y.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
|
|
267
267
|
...h,
|
|
268
268
|
value: u,
|
|
269
269
|
VALUE: u
|
|
270
270
|
} : h)
|
|
271
|
-
}) : (t += u * 0.025,
|
|
272
|
-
...
|
|
273
|
-
dataset:
|
|
271
|
+
}) : (t += u * 0.025, y.value = {
|
|
272
|
+
...y.value,
|
|
273
|
+
dataset: y.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
|
|
274
274
|
...h,
|
|
275
275
|
value: t,
|
|
276
276
|
VALUE: t
|
|
@@ -280,16 +280,16 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
280
280
|
w.value = w.value.filter((h) => h !== o.id), r();
|
|
281
281
|
} else if (s.length > 1) {
|
|
282
282
|
let r = function() {
|
|
283
|
-
t < u / 100 ? (Le.value = !1, cancelAnimationFrame(et.value), w.value.push(o.id),
|
|
284
|
-
...
|
|
285
|
-
dataset:
|
|
283
|
+
t < u / 100 ? (Le.value = !1, cancelAnimationFrame(et.value), w.value.push(o.id), y.value = {
|
|
284
|
+
...y.value,
|
|
285
|
+
dataset: y.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
|
|
286
286
|
...h,
|
|
287
287
|
value: 0,
|
|
288
288
|
VALUE: 0
|
|
289
289
|
} : h)
|
|
290
|
-
}) : (t /= 1.1,
|
|
291
|
-
...
|
|
292
|
-
dataset:
|
|
290
|
+
}) : (t /= 1.1, y.value = {
|
|
291
|
+
...y.value,
|
|
292
|
+
dataset: y.value.dataset.map((h, R) => o.id === `donut_${R}` ? {
|
|
293
293
|
...h,
|
|
294
294
|
value: t,
|
|
295
295
|
VALUE: t
|
|
@@ -299,13 +299,13 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
299
299
|
r();
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
|
|
302
|
+
const J = L(null);
|
|
303
|
+
function yt(o) {
|
|
304
|
+
J.value = o;
|
|
305
305
|
}
|
|
306
306
|
const at = B(() => e.value.donutThicknessRatio < 0.15 ? 0.15 : e.value.donutThicknessRatio > 0.4 ? 0.4 : e.value.donutThicknessRatio), I = B(() => {
|
|
307
307
|
if (z.value !== A.DONUT) return null;
|
|
308
|
-
const o =
|
|
308
|
+
const o = y.value.dataset.map((i, n) => ({
|
|
309
309
|
...i,
|
|
310
310
|
value: i.VALUE || i.DATA || i.SERIE || i.VALUES || i.NUM || 0,
|
|
311
311
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${n}`,
|
|
@@ -345,8 +345,8 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
345
345
|
config: e.value
|
|
346
346
|
});
|
|
347
347
|
else {
|
|
348
|
-
let
|
|
349
|
-
|
|
348
|
+
let x = "";
|
|
349
|
+
x += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${i.name}</div>`, x += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${i.color}"/></svg>`, x += `<b>${X(
|
|
350
350
|
e.value.formatter,
|
|
351
351
|
i.value,
|
|
352
352
|
D({
|
|
@@ -356,25 +356,25 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
356
356
|
r: e.value.dataLabelRoundingValue
|
|
357
357
|
}),
|
|
358
358
|
{ datapoint: i, seriesIndex: n }
|
|
359
|
-
)}</b>`,
|
|
359
|
+
)}</b>`, x += `<span>(${D({ v: i.proportion * 100, s: "%", r: e.value.dataLabelRoundingPercentage })})</span></div>`, Q.value = `<div>${x}</div>`;
|
|
360
360
|
}
|
|
361
361
|
j.value = !0;
|
|
362
362
|
}
|
|
363
363
|
function h() {
|
|
364
|
-
j.value = !1, W.value = null,
|
|
364
|
+
j.value = !1, W.value = null, J.value = null;
|
|
365
365
|
}
|
|
366
366
|
const R = {
|
|
367
367
|
centerX: k.value.width / 2,
|
|
368
368
|
centerY: k.value.height / 2
|
|
369
|
-
}, V = o.filter((i) => !w.value.includes(i.id)).map((i) => i.value || 0).reduce((i, n) => i + n, 0),
|
|
369
|
+
}, V = o.filter((i) => !w.value.includes(i.id)).map((i) => i.value || 0).reduce((i, n) => i + n, 0), re = o.map((i, n) => ({
|
|
370
370
|
...i,
|
|
371
371
|
proportion: (i.value || 0) / V,
|
|
372
372
|
value: i.value || 0,
|
|
373
|
-
absoluteValue: ge.value.dataset.find((S,
|
|
374
|
-
})), K = k.value.width / 2,
|
|
373
|
+
absoluteValue: ge.value.dataset.find((S, x) => `donut_${x}` === i.id).VALUE
|
|
374
|
+
})), K = k.value.width / 2, se = k.value.height / 2, ee = k.value.height * e.value.donutRadiusRatio;
|
|
375
375
|
return {
|
|
376
|
-
dataset:
|
|
377
|
-
legend:
|
|
376
|
+
dataset: re.filter((i) => !w.value.includes(i.id)),
|
|
377
|
+
legend: re,
|
|
378
378
|
drawingArea: R,
|
|
379
379
|
displayArcPercentage: s,
|
|
380
380
|
isArcBigEnough: t,
|
|
@@ -383,12 +383,12 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
383
383
|
getSpaces: u,
|
|
384
384
|
total: V,
|
|
385
385
|
cx: K,
|
|
386
|
-
cy:
|
|
386
|
+
cy: se,
|
|
387
387
|
radius: ee,
|
|
388
388
|
chart: Pt(
|
|
389
389
|
{ series: o.filter((i) => !w.value.includes(i.id)) },
|
|
390
390
|
K,
|
|
391
|
-
|
|
391
|
+
se,
|
|
392
392
|
ee,
|
|
393
393
|
ee,
|
|
394
394
|
1.99999,
|
|
@@ -401,32 +401,32 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
401
401
|
};
|
|
402
402
|
}), b = L({
|
|
403
403
|
start: 0,
|
|
404
|
-
end:
|
|
404
|
+
end: y.value.maxSeriesLength
|
|
405
405
|
});
|
|
406
|
-
function
|
|
406
|
+
function xt() {
|
|
407
407
|
lt();
|
|
408
408
|
}
|
|
409
|
-
const
|
|
409
|
+
const ue = L(null);
|
|
410
410
|
async function lt() {
|
|
411
|
-
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) &&
|
|
411
|
+
(e.value.zoomStartIndex !== null || e.value.zoomEndIndex !== null) && ue.value ? (e.value.zoomStartIndex !== null && (await Ie(), await Ie(), ue.value && ue.value.setStartValue(e.value.zoomStartIndex)), e.value.zoomEndIndex !== null && (await Ie(), await Ie(), ue.value && ue.value.setEndValue(kt(e.value.zoomEndIndex + 1)))) : (b.value = {
|
|
412
412
|
start: 0,
|
|
413
|
-
end:
|
|
413
|
+
end: y.value.maxSeriesLength
|
|
414
414
|
}, Se.value += 1);
|
|
415
415
|
}
|
|
416
416
|
function kt(o) {
|
|
417
|
-
const s =
|
|
417
|
+
const s = y.value.maxSeriesLength;
|
|
418
418
|
return o > s ? s : o < 0 || e.value.zoomStartIndex !== null && o < e.value.zoomStartIndex ? e.value.zoomStartIndex !== null ? e.value.zoomStartIndex + 1 : 1 : o;
|
|
419
419
|
}
|
|
420
420
|
const bt = B(() => {
|
|
421
421
|
if (!e.value.zoomMinimap.show || z.value === A.DONUT) return [];
|
|
422
422
|
let o = [];
|
|
423
|
-
|
|
423
|
+
Y(y.value.dataset) && (o = y.value.dataset), Oe(y.value.dataset) && (o = y.value.dataset.map((r, h) => ({
|
|
424
424
|
values: r.VALUE || r.DATA || r.SERIE || r.SERIES || r.VALUES || r.NUM || 0,
|
|
425
425
|
id: z.value === A.LINE ? `line_${h}` : `bar_${h}`
|
|
426
426
|
})).filter((r) => !w.value.includes(r.id)));
|
|
427
|
-
const s =
|
|
427
|
+
const s = Y(o) ? o.length : Math.max(...o.map((r) => r.values.length));
|
|
428
428
|
let t = [];
|
|
429
|
-
if (
|
|
429
|
+
if (Y(o))
|
|
430
430
|
t = o;
|
|
431
431
|
else
|
|
432
432
|
for (let r = 0; r < s; r += 1)
|
|
@@ -447,15 +447,15 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
447
447
|
height: o.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
448
448
|
};
|
|
449
449
|
let t = [];
|
|
450
|
-
|
|
450
|
+
Y(y.value.dataset) && (t = [
|
|
451
451
|
{
|
|
452
|
-
values:
|
|
453
|
-
absoluteIndices:
|
|
452
|
+
values: y.value.dataset.slice(b.value.start, b.value.end),
|
|
453
|
+
absoluteIndices: y.value.dataset.map((i, n) => n).slice(b.value.start, b.value.end),
|
|
454
454
|
name: e.value.title,
|
|
455
455
|
color: fe.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
456
456
|
id: "line_0"
|
|
457
457
|
}
|
|
458
|
-
]), Oe(
|
|
458
|
+
]), Oe(y.value.dataset) && (t = y.value.dataset.map((i, n) => ({
|
|
459
459
|
...i,
|
|
460
460
|
values: i.VALUE || i.DATA || i.SERIE || i.SERIES || i.VALUES || i.NUM || 0,
|
|
461
461
|
name: i.NAME || i.DESCRIPTION || i.TITLE || i.LABEL || `Serie ${n}`,
|
|
@@ -464,20 +464,20 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
464
464
|
...i,
|
|
465
465
|
color: i.COLOR ? Ue(i.COLOR) : fe.value[n + e.value.paletteStartIndex] || q[n + e.value.paletteStartIndex] || q[(n + e.value.paletteStartIndex) % q.length],
|
|
466
466
|
values: i.values.slice(b.value.start, b.value.end),
|
|
467
|
-
absoluteIndices: i.values.map((S,
|
|
467
|
+
absoluteIndices: i.values.map((S, x) => x).slice(b.value.start, b.value.end)
|
|
468
468
|
})));
|
|
469
469
|
const u = {
|
|
470
470
|
max: Math.max(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
471
471
|
min: Math.min(...t.filter((i) => !w.value.includes(i.id)).flatMap((i) => i.values)),
|
|
472
472
|
maxSeries: Math.max(...t.map((i) => i.values.length))
|
|
473
|
-
}, r = nt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), h = u.min < 0 ? Math.abs(u.min) : 0, R = u.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries,
|
|
473
|
+
}, r = nt(u.min < 0 ? u.min : 0, u.max < 0 ? 0 : u.max, e.value.xyScaleSegments), h = u.min < 0 ? Math.abs(u.min) : 0, R = u.max < 0 ? s.top : s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries, re = r.ticks.map((i) => ({
|
|
474
474
|
y: s.bottom - s.height * ((i + h) / (r.max + h)),
|
|
475
475
|
x: s.left - 8,
|
|
476
476
|
value: i
|
|
477
477
|
})), K = t.map((i, n) => ({
|
|
478
478
|
...i,
|
|
479
|
-
coordinates: i.values.map((S,
|
|
480
|
-
x: s.left + V * (
|
|
479
|
+
coordinates: i.values.map((S, x) => ({
|
|
480
|
+
x: s.left + V * (x + 1) - V / 2,
|
|
481
481
|
y: s.bottom - (S + h) / (r.max + h) * s.height,
|
|
482
482
|
value: S
|
|
483
483
|
}))
|
|
@@ -490,13 +490,13 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
490
490
|
linePath: n.join(" ")
|
|
491
491
|
};
|
|
492
492
|
});
|
|
493
|
-
function
|
|
494
|
-
W.value = i,
|
|
495
|
-
const n = t.map((
|
|
496
|
-
...
|
|
497
|
-
value:
|
|
498
|
-
absoluteIndex:
|
|
499
|
-
})).filter((
|
|
493
|
+
function se(i) {
|
|
494
|
+
W.value = i, J.value = i;
|
|
495
|
+
const n = t.map((x) => ({
|
|
496
|
+
...x,
|
|
497
|
+
value: x.values[i],
|
|
498
|
+
absoluteIndex: x.absoluteIndices[i]
|
|
499
|
+
})).filter((x) => !w.value.includes(x.id));
|
|
500
500
|
he.value = { datapoint: n, seriesIndex: i, config: e.value, dataset: t };
|
|
501
501
|
const S = e.value.tooltipCustomFormat;
|
|
502
502
|
if (Te(S) && De(() => S({
|
|
@@ -512,13 +512,13 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
512
512
|
config: e.value
|
|
513
513
|
});
|
|
514
514
|
else {
|
|
515
|
-
let
|
|
516
|
-
e.value.xyPeriods[n[0].absoluteIndex] && (
|
|
517
|
-
|
|
515
|
+
let x = "";
|
|
516
|
+
e.value.xyPeriods[n[0].absoluteIndex] && (x += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[n[0].absoluteIndex]}</div>`), n.forEach((T, U) => {
|
|
517
|
+
x += `
|
|
518
518
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
519
519
|
<svg viewBox="0 0 12 12" height="14" width="12"><circle cx="6" cy="6" r="6" stroke="none" fill="${T.color}"/></svg>
|
|
520
520
|
<span>${T.name}:</span>
|
|
521
|
-
<b>${
|
|
521
|
+
<b>${X(
|
|
522
522
|
e.value.formatter,
|
|
523
523
|
T.value,
|
|
524
524
|
D({
|
|
@@ -532,7 +532,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
532
532
|
</b>
|
|
533
533
|
</div>
|
|
534
534
|
`;
|
|
535
|
-
}), Q.value =
|
|
535
|
+
}), Q.value = x;
|
|
536
536
|
}
|
|
537
537
|
j.value = !0;
|
|
538
538
|
}
|
|
@@ -546,8 +546,8 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
546
546
|
drawingArea: s,
|
|
547
547
|
extremes: u,
|
|
548
548
|
slotSize: V,
|
|
549
|
-
yLabels:
|
|
550
|
-
useTooltip:
|
|
549
|
+
yLabels: re,
|
|
550
|
+
useTooltip: se,
|
|
551
551
|
killTooltip: ee
|
|
552
552
|
};
|
|
553
553
|
}), v = B(() => {
|
|
@@ -564,15 +564,15 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
564
564
|
height: o.height - e.value.xyPaddingTop - e.value.xyPaddingBottom
|
|
565
565
|
};
|
|
566
566
|
let t = [];
|
|
567
|
-
|
|
567
|
+
Y(y.value.dataset) && (t = [
|
|
568
568
|
{
|
|
569
|
-
values:
|
|
570
|
-
absoluteIndices:
|
|
569
|
+
values: y.value.dataset.slice(b.value.start, b.value.end),
|
|
570
|
+
absoluteIndices: y.value.dataset.map((n, S) => S).slice(b.value.start, b.value.end),
|
|
571
571
|
name: e.value.title,
|
|
572
572
|
color: fe.value[e.value.paletteStartIndex] || q[e.value.paletteStartIndex],
|
|
573
573
|
id: "bar_0"
|
|
574
574
|
}
|
|
575
|
-
]), Oe(
|
|
575
|
+
]), Oe(y.value.dataset) && (t = y.value.dataset.map((n, S) => ({
|
|
576
576
|
...n,
|
|
577
577
|
values: n.VALUE || n.DATA || n.SERIE || n.SERIES || n.VALUES || n.NUM || 0,
|
|
578
578
|
name: n.NAME || n.DESCRIPTION || n.TITLE || n.LABEL || `Serie ${S}`,
|
|
@@ -581,57 +581,57 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
581
581
|
...n,
|
|
582
582
|
color: n.COLOR ? Ue(n.COLOR) : fe.value[S + e.value.paletteStartIndex] || q[S + e.value.paletteStartIndex] || q[(S + e.value.paletteStartIndex) % q.length],
|
|
583
583
|
values: n.values.slice(b.value.start, b.value.end),
|
|
584
|
-
absoluteIndices: n.values.map((
|
|
584
|
+
absoluteIndices: n.values.map((x, T) => T).slice(b.value.start, b.value.end)
|
|
585
585
|
})));
|
|
586
586
|
const u = {
|
|
587
587
|
max: Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)) < 0 ? 0 : Math.max(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
588
588
|
min: Math.min(...t.filter((n) => !w.value.includes(n.id)).flatMap((n) => n.values)),
|
|
589
589
|
maxSeries: Math.max(...t.filter((n) => !w.value.includes(n.id)).map((n) => n.values.length))
|
|
590
|
-
}, r = nt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, R = s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries,
|
|
590
|
+
}, r = nt(u.min < 0 ? u.min : 0, u.max, e.value.xyScaleSegments), h = r.min < 0 ? Math.abs(r.min) : 0, R = s.bottom - h / (r.max + h) * s.height, V = s.width / u.maxSeries, re = r.ticks.map((n) => ({
|
|
591
591
|
y: s.bottom - s.height * ((n + h) / (r.max + h)),
|
|
592
592
|
x: s.left - 8,
|
|
593
593
|
value: n
|
|
594
594
|
})), K = t.map((n, S) => ({
|
|
595
595
|
...n,
|
|
596
|
-
coordinates: n.values.map((
|
|
597
|
-
const U = (
|
|
596
|
+
coordinates: n.values.map((x, T) => {
|
|
597
|
+
const U = (x + h) / (u.max + h) * s.height, ye = Math.abs(x) / Math.abs(u.min) * (s.height - R), Ne = h / (u.max + h) * s.height, xe = V / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
|
|
598
598
|
return {
|
|
599
|
-
x: s.left + V * T +
|
|
600
|
-
y:
|
|
601
|
-
height:
|
|
602
|
-
value:
|
|
603
|
-
width:
|
|
599
|
+
x: s.left + V * T + xe * S + e.value.barGap / 2,
|
|
600
|
+
y: x > 0 ? s.bottom - U : R,
|
|
601
|
+
height: x > 0 ? U - Ne : ye,
|
|
602
|
+
value: x,
|
|
603
|
+
width: xe
|
|
604
604
|
};
|
|
605
605
|
})
|
|
606
|
-
})),
|
|
606
|
+
})), se = t.filter((n) => !w.value.includes(n.id)).map((n, S) => ({
|
|
607
607
|
...n,
|
|
608
|
-
coordinates: n.values.map((
|
|
609
|
-
const U = (
|
|
608
|
+
coordinates: n.values.map((x, T) => {
|
|
609
|
+
const U = (x + h) / (u.max + h) * s.height, ye = Math.abs(x) / (u.max + h) * s.height, Ne = h / (u.max + h) * s.height, xe = V / t.filter((te) => !w.value.includes(te.id)).length - e.value.barGap / t.filter((te) => !w.value.includes(te.id)).length;
|
|
610
610
|
return {
|
|
611
|
-
x: s.left + V * T +
|
|
612
|
-
y:
|
|
613
|
-
height:
|
|
614
|
-
value:
|
|
615
|
-
width:
|
|
611
|
+
x: s.left + V * T + xe * S + e.value.barGap / 2,
|
|
612
|
+
y: x > 0 ? s.bottom - U : R,
|
|
613
|
+
height: x > 0 ? U - Ne : ye,
|
|
614
|
+
value: x,
|
|
615
|
+
width: xe
|
|
616
616
|
};
|
|
617
617
|
})
|
|
618
618
|
}));
|
|
619
619
|
function ee(n) {
|
|
620
|
-
W.value = n,
|
|
620
|
+
W.value = n, J.value = n;
|
|
621
621
|
const S = t.map((T) => ({
|
|
622
622
|
...T,
|
|
623
623
|
value: T.values[n],
|
|
624
624
|
absoluteIndex: T.absoluteIndices[n]
|
|
625
625
|
})).filter((T) => !w.value.includes(T.id));
|
|
626
626
|
he.value = { datapoint: S, seriesIndex: n, config: e.value, dataset: t };
|
|
627
|
-
const
|
|
628
|
-
if (Te(
|
|
627
|
+
const x = e.value.tooltipCustomFormat;
|
|
628
|
+
if (Te(x) && De(() => x({
|
|
629
629
|
datapoint: S,
|
|
630
630
|
seriesIndex: n,
|
|
631
631
|
series: t,
|
|
632
632
|
config: e.value
|
|
633
633
|
})))
|
|
634
|
-
Q.value =
|
|
634
|
+
Q.value = x({
|
|
635
635
|
point: S,
|
|
636
636
|
seriesIndex: n,
|
|
637
637
|
series: t,
|
|
@@ -639,12 +639,12 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
639
639
|
});
|
|
640
640
|
else {
|
|
641
641
|
let T = "";
|
|
642
|
-
e.value.xyPeriods[S[0].absoluteIndex] && (T += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[S[0].absoluteIndex]}</div>`), S.forEach((U,
|
|
642
|
+
e.value.xyPeriods[S[0].absoluteIndex] && (T += `<div style="border-bottom:1px solid ${e.value.tooltipBorderColor};padding-bottom:6px;margin-bottom:3px;">${e.value.xyPeriods[S[0].absoluteIndex]}</div>`), S.forEach((U, ye) => {
|
|
643
643
|
T += `
|
|
644
644
|
<div style="display:flex; flex-wrap: wrap; align-items:center; gap:3px;">
|
|
645
645
|
<svg viewBox="0 0 12 12" height="14" width="12"><rect x=0 y="0" width="12" height="12" rx="1" stroke="none" fill="${U.color}"/></svg>
|
|
646
646
|
<span>${U.name}:</span>
|
|
647
|
-
<b>${
|
|
647
|
+
<b>${X(
|
|
648
648
|
e.value.formatter,
|
|
649
649
|
U.value,
|
|
650
650
|
D({
|
|
@@ -653,7 +653,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
653
653
|
s: e.value.valueSuffix,
|
|
654
654
|
r: e.value.dataLabelRoundingValue
|
|
655
655
|
}),
|
|
656
|
-
{ datapoint: U, seriesIndex:
|
|
656
|
+
{ datapoint: U, seriesIndex: ye }
|
|
657
657
|
)}
|
|
658
658
|
</b>
|
|
659
659
|
</div>
|
|
@@ -663,16 +663,16 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
663
663
|
j.value = !0;
|
|
664
664
|
}
|
|
665
665
|
function i() {
|
|
666
|
-
j.value = !1, W.value = null,
|
|
666
|
+
j.value = !1, W.value = null, J.value = null;
|
|
667
667
|
}
|
|
668
668
|
return {
|
|
669
669
|
absoluteZero: R,
|
|
670
|
-
dataset:
|
|
670
|
+
dataset: se.filter((n) => !w.value.includes(n.id)),
|
|
671
671
|
legend: K,
|
|
672
672
|
drawingArea: s,
|
|
673
673
|
extremes: u,
|
|
674
674
|
slotSize: V,
|
|
675
|
-
yLabels:
|
|
675
|
+
yLabels: re,
|
|
676
676
|
useTooltip: ee,
|
|
677
677
|
killTooltip: i
|
|
678
678
|
};
|
|
@@ -697,7 +697,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
697
697
|
id: `${z.value}_${E.value}`,
|
|
698
698
|
ref_key: "quickChart",
|
|
699
699
|
ref: H,
|
|
700
|
-
class:
|
|
700
|
+
class: ve({ "vue-ui-quick-chart": !0, "vue-data-ui-wrapper-fullscreen": $e.value }),
|
|
701
701
|
style: N(`background:${e.value.backgroundColor};color:${e.value.color};font-family:${e.value.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
702
702
|
onMouseenter: s[5] || (s[5] = () => Ge(!0)),
|
|
703
703
|
onMouseleave: s[6] || (s[6] = () => Ge(!1))
|
|
@@ -746,46 +746,53 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
746
746
|
visibility: je.value ? we.value ? "visible" : "hidden" : "visible"
|
|
747
747
|
})
|
|
748
748
|
}, _t({ _: 2 }, [
|
|
749
|
+
o.$slots.menuIcon ? {
|
|
750
|
+
name: "menuIcon",
|
|
751
|
+
fn: G(({ isOpen: t, color: u }) => [
|
|
752
|
+
F(o.$slots, "menuIcon", ae(le({ isOpen: t, color: u })), void 0, !0)
|
|
753
|
+
]),
|
|
754
|
+
key: "0"
|
|
755
|
+
} : void 0,
|
|
749
756
|
o.$slots.optionTooltip ? {
|
|
750
757
|
name: "optionTooltip",
|
|
751
|
-
fn:
|
|
758
|
+
fn: G(() => [
|
|
752
759
|
F(o.$slots, "optionTooltip", {}, void 0, !0)
|
|
753
760
|
]),
|
|
754
|
-
key: "
|
|
761
|
+
key: "1"
|
|
755
762
|
} : void 0,
|
|
756
763
|
o.$slots.optionPdf ? {
|
|
757
764
|
name: "optionPdf",
|
|
758
|
-
fn:
|
|
765
|
+
fn: G(() => [
|
|
759
766
|
F(o.$slots, "optionPdf", {}, void 0, !0)
|
|
760
767
|
]),
|
|
761
|
-
key: "
|
|
768
|
+
key: "2"
|
|
762
769
|
} : void 0,
|
|
763
770
|
o.$slots.optionImg ? {
|
|
764
771
|
name: "optionImg",
|
|
765
|
-
fn:
|
|
772
|
+
fn: G(() => [
|
|
766
773
|
F(o.$slots, "optionImg", {}, void 0, !0)
|
|
767
774
|
]),
|
|
768
|
-
key: "
|
|
775
|
+
key: "3"
|
|
769
776
|
} : void 0,
|
|
770
777
|
o.$slots.optionFullscreen ? {
|
|
771
778
|
name: "optionFullscreen",
|
|
772
|
-
fn:
|
|
773
|
-
F(o.$slots, "optionFullscreen",
|
|
779
|
+
fn: G(({ toggleFullscreen: t, isFullscreen: u }) => [
|
|
780
|
+
F(o.$slots, "optionFullscreen", ae(le({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
|
|
774
781
|
]),
|
|
775
|
-
key: "
|
|
782
|
+
key: "4"
|
|
776
783
|
} : void 0,
|
|
777
784
|
o.$slots.optionAnnotator ? {
|
|
778
785
|
name: "optionAnnotator",
|
|
779
|
-
fn:
|
|
780
|
-
F(o.$slots, "optionAnnotator",
|
|
786
|
+
fn: G(({ toggleAnnotator: t, isAnnotator: u }) => [
|
|
787
|
+
F(o.$slots, "optionAnnotator", ae(le({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
|
|
781
788
|
]),
|
|
782
|
-
key: "
|
|
789
|
+
key: "5"
|
|
783
790
|
} : void 0
|
|
784
791
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
785
792
|
e.value.title ? (a(), l("div", {
|
|
786
793
|
key: 3,
|
|
787
794
|
ref_key: "quickChartTitle",
|
|
788
|
-
ref:
|
|
795
|
+
ref: oe,
|
|
789
796
|
class: "vue-ui-quick-chart-title",
|
|
790
797
|
style: N(`background:transparent;color:${e.value.color};font-size:${e.value.titleFontSize}px;font-weight:${e.value.titleBold ? "bold" : "normal"};text-align:${e.value.titleTextAlign}`)
|
|
791
798
|
}, P(e.value.title), 5)) : f("", !0),
|
|
@@ -797,7 +804,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
797
804
|
viewBox: mt.value,
|
|
798
805
|
style: N(`max-width:100%;overflow:visible;background:transparent;color:${e.value.color}`)
|
|
799
806
|
}, [
|
|
800
|
-
|
|
807
|
+
de(qt),
|
|
801
808
|
o.$slots["chart-background"] && z.value === A.BAR ? (a(), l("foreignObject", {
|
|
802
809
|
key: 0,
|
|
803
810
|
x: v.value.drawingArea.left,
|
|
@@ -900,7 +907,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
900
907
|
fill: "transparent",
|
|
901
908
|
onMouseenter: (r) => I.value.useTooltip({ datapoint: t, seriesIndex: u }),
|
|
902
909
|
onMouseout: s[0] || (s[0] = (r) => I.value.killTooltip()),
|
|
903
|
-
onClick: (r) =>
|
|
910
|
+
onClick: (r) => ne("selectDatapoint", t)
|
|
904
911
|
}, null, 40, ha))), 256))
|
|
905
912
|
]),
|
|
906
913
|
e.value.showDataLabels ? (a(), l("g", fa, [
|
|
@@ -923,7 +930,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
923
930
|
fill: e.value.color,
|
|
924
931
|
"font-size": e.value.dataLabelFontSize,
|
|
925
932
|
filter: pe(t.id)
|
|
926
|
-
}, P(I.value.displayArcPercentage(t, I.value.chart)) + " (" + P(g(
|
|
933
|
+
}, P(I.value.displayArcPercentage(t, I.value.chart)) + " (" + P(g(X)(
|
|
927
934
|
e.value.formatter,
|
|
928
935
|
t.value,
|
|
929
936
|
g(D)({
|
|
@@ -945,14 +952,14 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
945
952
|
}, P(t.name), 9, pa)) : f("", !0)
|
|
946
953
|
], 64))), 256))
|
|
947
954
|
])) : f("", !0),
|
|
948
|
-
e.value.donutShowTotal ? (a(), l("g",
|
|
955
|
+
e.value.donutShowTotal ? (a(), l("g", ya, [
|
|
949
956
|
_("text", {
|
|
950
957
|
"text-anchor": "middle",
|
|
951
958
|
x: I.value.drawingArea.centerX,
|
|
952
959
|
y: I.value.drawingArea.centerY - e.value.donutTotalLabelFontSize / 2,
|
|
953
960
|
"font-size": e.value.donutTotalLabelFontSize,
|
|
954
961
|
fill: e.value.color
|
|
955
|
-
}, P(e.value.donutTotalLabelText), 9,
|
|
962
|
+
}, P(e.value.donutTotalLabelText), 9, xa),
|
|
956
963
|
_("text", {
|
|
957
964
|
"text-anchor": "middle",
|
|
958
965
|
x: I.value.drawingArea.centerX,
|
|
@@ -1030,7 +1037,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1030
1037
|
"text-anchor": "end",
|
|
1031
1038
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1032
1039
|
fill: e.value.color
|
|
1033
|
-
}, P(g(
|
|
1040
|
+
}, P(g(X)(
|
|
1034
1041
|
e.value.formatter,
|
|
1035
1042
|
t.value,
|
|
1036
1043
|
g(D)({
|
|
@@ -1069,7 +1076,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1069
1076
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1070
1077
|
"stroke-linecap": "round",
|
|
1071
1078
|
fill: "none",
|
|
1072
|
-
class:
|
|
1079
|
+
class: ve({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1073
1080
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1074
1081
|
}, null, 10, Ra),
|
|
1075
1082
|
_("path", {
|
|
@@ -1078,7 +1085,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1078
1085
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1079
1086
|
"stroke-linecap": "round",
|
|
1080
1087
|
fill: "none",
|
|
1081
|
-
class:
|
|
1088
|
+
class: ve({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1082
1089
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1083
1090
|
}, null, 10, Na)
|
|
1084
1091
|
], 64)) : (a(), l(m, { key: 1 }, [
|
|
@@ -1088,7 +1095,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1088
1095
|
"stroke-width": e.value.lineStrokeWidth + 1,
|
|
1089
1096
|
"stroke-linecap": "round",
|
|
1090
1097
|
fill: "none",
|
|
1091
|
-
class:
|
|
1098
|
+
class: ve({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1092
1099
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1093
1100
|
}, null, 10, Fa),
|
|
1094
1101
|
_("path", {
|
|
@@ -1097,13 +1104,13 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1097
1104
|
"stroke-width": e.value.lineStrokeWidth,
|
|
1098
1105
|
"stroke-linecap": "round",
|
|
1099
1106
|
fill: "none",
|
|
1100
|
-
class:
|
|
1107
|
+
class: ve({ "quick-animation": !0, "vue-data-ui-line-animated": e.value.lineAnimated }),
|
|
1101
1108
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1102
1109
|
}, null, 10, Ma)
|
|
1103
1110
|
], 64)),
|
|
1104
1111
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("circle", {
|
|
1105
1112
|
cx: r.x,
|
|
1106
|
-
cy: g(
|
|
1113
|
+
cy: g(Z)(r.y),
|
|
1107
1114
|
r: 3,
|
|
1108
1115
|
fill: t.color,
|
|
1109
1116
|
stroke: e.value.backgroundColor,
|
|
@@ -1120,15 +1127,15 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1120
1127
|
"font-size": e.value.dataLabelFontSize,
|
|
1121
1128
|
fill: t.color,
|
|
1122
1129
|
x: r.x,
|
|
1123
|
-
y: g(
|
|
1130
|
+
y: g(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1124
1131
|
class: "quick-animation",
|
|
1125
1132
|
style: { transition: "all 0.3s ease-in-out" }
|
|
1126
|
-
}, P(g(
|
|
1133
|
+
}, P(g(X)(
|
|
1127
1134
|
e.value.formatter,
|
|
1128
|
-
g(
|
|
1135
|
+
g(Z)(r.value),
|
|
1129
1136
|
g(D)({
|
|
1130
1137
|
p: e.value.valuePrefix,
|
|
1131
|
-
v: g(
|
|
1138
|
+
v: g(Z)(r.value),
|
|
1132
1139
|
s: e.value.valueSuffix,
|
|
1133
1140
|
r: e.value.dataLabelRoundingValue
|
|
1134
1141
|
}),
|
|
@@ -1142,11 +1149,11 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1142
1149
|
y: d.value.drawingArea.top,
|
|
1143
1150
|
height: d.value.drawingArea.height <= 0 ? 1e-5 : d.value.drawingArea.height,
|
|
1144
1151
|
width: d.value.slotSize <= 0 ? 1e-5 : d.value.slotSize,
|
|
1145
|
-
fill: [W.value,
|
|
1152
|
+
fill: [W.value, J.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
|
|
1146
1153
|
style: N(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1147
1154
|
onMouseenter: (r) => d.value.useTooltip(u),
|
|
1148
1155
|
onMouseleave: s[1] || (s[1] = (r) => d.value.killTooltip()),
|
|
1149
|
-
onClick: (r) =>
|
|
1156
|
+
onClick: (r) => ne("selectDatapoint", d.value.dataset.map((h) => ({
|
|
1150
1157
|
...h,
|
|
1151
1158
|
value: h.values[u]
|
|
1152
1159
|
})))
|
|
@@ -1216,7 +1223,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1216
1223
|
"text-anchor": "end",
|
|
1217
1224
|
"font-size": e.value.xyLabelsYFontSize,
|
|
1218
1225
|
fill: e.value.color
|
|
1219
|
-
}, P(g(
|
|
1226
|
+
}, P(g(X)(
|
|
1220
1227
|
e.value.formatter,
|
|
1221
1228
|
t.value,
|
|
1222
1229
|
g(D)({
|
|
@@ -1251,13 +1258,13 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1251
1258
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("rect", {
|
|
1252
1259
|
x: r.x,
|
|
1253
1260
|
width: r.width <= 0 ? 1e-5 : r.width,
|
|
1254
|
-
height: g(
|
|
1255
|
-
y: g(
|
|
1261
|
+
height: g(Z)(r.height <= 0 ? 1e-5 : r.height),
|
|
1262
|
+
y: g(Z)(r.y),
|
|
1256
1263
|
fill: t.color,
|
|
1257
1264
|
stroke: e.value.backgroundColor,
|
|
1258
1265
|
"stroke-width": e.value.barStrokeWidth,
|
|
1259
1266
|
"stroke-linecap": "round",
|
|
1260
|
-
class:
|
|
1267
|
+
class: ve({ "vue-data-ui-bar-animated": e.value.barAnimated && r.value < 0 })
|
|
1261
1268
|
}, [
|
|
1262
1269
|
e.value.barAnimated && r.value > 0 && !g(Ae) && !g(_e) ? (a(), l("animate", {
|
|
1263
1270
|
key: 0,
|
|
@@ -1280,17 +1287,17 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1280
1287
|
(a(!0), l(m, null, $(v.value.dataset, (t, u) => (a(), l(m, null, [
|
|
1281
1288
|
(a(!0), l(m, null, $(t.coordinates, (r, h) => (a(), l("text", {
|
|
1282
1289
|
x: r.x + r.width / 2,
|
|
1283
|
-
y: g(
|
|
1290
|
+
y: g(Z)(r.y) - e.value.dataLabelFontSize / 2,
|
|
1284
1291
|
"text-anchor": "middle",
|
|
1285
1292
|
"font-size": e.value.dataLabelFontSize,
|
|
1286
1293
|
fill: t.color,
|
|
1287
1294
|
class: "quick-animation"
|
|
1288
|
-
}, P(g(
|
|
1295
|
+
}, P(g(X)(
|
|
1289
1296
|
e.value.formatter,
|
|
1290
|
-
g(
|
|
1297
|
+
g(Z)(r.value),
|
|
1291
1298
|
g(D)({
|
|
1292
1299
|
p: e.value.valuePrefix,
|
|
1293
|
-
v: g(
|
|
1300
|
+
v: g(Z)(r.value),
|
|
1294
1301
|
s: e.value.valueSuffix,
|
|
1295
1302
|
r: e.value.dataLabelRoundingValue
|
|
1296
1303
|
}),
|
|
@@ -1304,11 +1311,11 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1304
1311
|
y: v.value.drawingArea.top,
|
|
1305
1312
|
height: v.value.drawingArea.height <= 0 ? 1e-5 : v.value.drawingArea.height,
|
|
1306
1313
|
width: v.value.slotSize <= 0 ? 1e-5 : v.value.slotSize,
|
|
1307
|
-
fill: [W.value,
|
|
1314
|
+
fill: [W.value, J.value].includes(u) ? e.value.xyHighlighterColor : "transparent",
|
|
1308
1315
|
style: N(`opacity:${e.value.xyHighlighterOpacity}`),
|
|
1309
1316
|
onMouseenter: (r) => v.value.useTooltip(u),
|
|
1310
1317
|
onMouseleave: s[2] || (s[2] = (r) => v.value.killTooltip()),
|
|
1311
|
-
onClick: (r) =>
|
|
1318
|
+
onClick: (r) => ne("selectDatapoint", v.value.dataset.map((h) => ({
|
|
1312
1319
|
...h,
|
|
1313
1320
|
value: h.values[u]
|
|
1314
1321
|
})))
|
|
@@ -1348,7 +1355,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1348
1355
|
fill: e.value.color,
|
|
1349
1356
|
transform: `translate(${e.value.axisLabelsFontSize}, ${v.value.drawingArea.top + v.value.drawingArea.height / 2}) rotate(-90)`,
|
|
1350
1357
|
"text-anchor": "middle"
|
|
1351
|
-
}, P(e.value.yAxisLabel), 9,
|
|
1358
|
+
}, P(e.value.yAxisLabel), 9, yl)
|
|
1352
1359
|
])) : f("", !0)
|
|
1353
1360
|
])) : f("", !0)
|
|
1354
1361
|
], 12, ea)) : f("", !0),
|
|
@@ -1370,17 +1377,17 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1370
1377
|
}
|
|
1371
1378
|
}
|
|
1372
1379
|
}, null, 8, ["config"])),
|
|
1373
|
-
o.$slots.watermark ? (a(), l("div",
|
|
1374
|
-
F(o.$slots, "watermark",
|
|
1380
|
+
o.$slots.watermark ? (a(), l("div", xl, [
|
|
1381
|
+
F(o.$slots, "watermark", ae(le({ isPrinting: g(Ae) || g(_e) })), void 0, !0)
|
|
1375
1382
|
])) : f("", !0),
|
|
1376
|
-
[A.BAR, A.LINE].includes(z.value) && e.value.zoomXy &&
|
|
1383
|
+
[A.BAR, A.LINE].includes(z.value) && e.value.zoomXy && y.value.maxSeriesLength > 1 ? (a(), l("div", {
|
|
1377
1384
|
key: `slicer_${Se.value}`,
|
|
1378
1385
|
ref_key: "quickChartSlicer",
|
|
1379
1386
|
ref: ce
|
|
1380
1387
|
}, [
|
|
1381
1388
|
(a(), Ee(Dt, {
|
|
1382
1389
|
ref_key: "slicerComponent",
|
|
1383
|
-
ref:
|
|
1390
|
+
ref: ue,
|
|
1384
1391
|
key: `slicer_${Se.value}`,
|
|
1385
1392
|
background: e.value.zoomColor,
|
|
1386
1393
|
borderColor: e.value.backgroundColor,
|
|
@@ -1391,7 +1398,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1391
1398
|
textColor: e.value.color,
|
|
1392
1399
|
inputColor: e.value.zoomColor,
|
|
1393
1400
|
selectColor: e.value.zoomHighlightColor,
|
|
1394
|
-
max:
|
|
1401
|
+
max: y.value.maxSeriesLength,
|
|
1395
1402
|
min: 0,
|
|
1396
1403
|
valueStart: b.value.start,
|
|
1397
1404
|
valueEnd: b.value.end,
|
|
@@ -1403,20 +1410,20 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1403
1410
|
minimap: bt.value,
|
|
1404
1411
|
minimapIndicatorColor: e.value.zoomMinimap.indicatorColor,
|
|
1405
1412
|
verticalHandles: e.value.zoomMinimap.verticalHandles,
|
|
1406
|
-
minimapSelectedIndex:
|
|
1413
|
+
minimapSelectedIndex: J.value,
|
|
1407
1414
|
start: b.value.start,
|
|
1408
1415
|
"onUpdate:start": s[3] || (s[3] = (t) => b.value.start = t),
|
|
1409
1416
|
end: b.value.end,
|
|
1410
1417
|
"onUpdate:end": s[4] || (s[4] = (t) => b.value.end = t),
|
|
1411
1418
|
refreshStartPoint: e.value.zoomStartIndex !== null ? e.value.zoomStartIndex : 0,
|
|
1412
|
-
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 :
|
|
1419
|
+
refreshEndPoint: e.value.zoomEndIndex !== null ? e.value.zoomEndIndex + 1 : y.value.maxSeriesLength,
|
|
1413
1420
|
enableRangeHandles: e.value.zoomEnableRangeHandles,
|
|
1414
1421
|
enableSelectionDrag: e.value.zoomEnableSelectionDrag,
|
|
1415
|
-
onReset:
|
|
1416
|
-
onTrapMouse:
|
|
1422
|
+
onReset: xt,
|
|
1423
|
+
onTrapMouse: yt
|
|
1417
1424
|
}, {
|
|
1418
|
-
"reset-action":
|
|
1419
|
-
F(o.$slots, "reset-action",
|
|
1425
|
+
"reset-action": G(({ reset: t }) => [
|
|
1426
|
+
F(o.$slots, "reset-action", ae(le({ reset: t })), void 0, !0)
|
|
1420
1427
|
]),
|
|
1421
1428
|
_: 3
|
|
1422
1429
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "smoothMinimap", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectionRadius", "minimapLineColor", "minimap", "minimapIndicatorColor", "verticalHandles", "minimapSelectedIndex", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"]))
|
|
@@ -1424,14 +1431,14 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1424
1431
|
e.value.showLegend ? (a(), l("div", {
|
|
1425
1432
|
key: 8,
|
|
1426
1433
|
ref_key: "quickChartLegend",
|
|
1427
|
-
ref:
|
|
1434
|
+
ref: ie,
|
|
1428
1435
|
class: "vue-ui-quick-chart-legend",
|
|
1429
1436
|
style: N(`background:transparent;color:${e.value.color}`)
|
|
1430
1437
|
}, [
|
|
1431
1438
|
z.value === A.DONUT ? (a(!0), l(m, { key: 0 }, $(I.value.legend, (t, u) => (a(), l("div", {
|
|
1432
1439
|
class: "vue-ui-quick-chart-legend-item",
|
|
1433
1440
|
onClick: (r) => {
|
|
1434
|
-
pt(t, I.value.dataset),
|
|
1441
|
+
pt(t, I.value.dataset), ne("selectLegend", t);
|
|
1435
1442
|
},
|
|
1436
1443
|
style: N(`cursor: ${I.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1437
1444
|
}, [
|
|
@@ -1439,7 +1446,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1439
1446
|
key: 0,
|
|
1440
1447
|
ref_for: !0
|
|
1441
1448
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1442
|
-
|
|
1449
|
+
de(Pe, {
|
|
1443
1450
|
name: e.value.legendIcon,
|
|
1444
1451
|
stroke: t.color,
|
|
1445
1452
|
size: e.value.legendIconSize
|
|
@@ -1449,7 +1456,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1449
1456
|
}, P(t.name), 5),
|
|
1450
1457
|
_("span", {
|
|
1451
1458
|
style: N(`font-size:${e.value.legendFontSize}px;font-variant-numeric:tabular-nums`)
|
|
1452
|
-
}, P(w.value.includes(t.id) ? "-" : g(
|
|
1459
|
+
}, P(w.value.includes(t.id) ? "-" : g(X)(
|
|
1453
1460
|
e.value.formatter,
|
|
1454
1461
|
t.absoluteValue,
|
|
1455
1462
|
g(D)({
|
|
@@ -1479,7 +1486,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1479
1486
|
z.value === A.LINE ? (a(!0), l(m, { key: 1 }, $(d.value.legend, (t, u) => (a(), l("div", {
|
|
1480
1487
|
class: "vue-ui-quick-chart-legend-item",
|
|
1481
1488
|
onClick: (r) => {
|
|
1482
|
-
Ke(t.id, d.value.legend.length - 1),
|
|
1489
|
+
Ke(t.id, d.value.legend.length - 1), ne("selectLegend", t);
|
|
1483
1490
|
},
|
|
1484
1491
|
style: N(`cursor: ${d.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1485
1492
|
}, [
|
|
@@ -1487,7 +1494,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1487
1494
|
key: 0,
|
|
1488
1495
|
ref_for: !0
|
|
1489
1496
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1490
|
-
|
|
1497
|
+
de(Pe, {
|
|
1491
1498
|
name: e.value.legendIcon,
|
|
1492
1499
|
stroke: t.color,
|
|
1493
1500
|
size: e.value.legendIconSize
|
|
@@ -1500,7 +1507,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1500
1507
|
z.value === A.BAR ? (a(!0), l(m, { key: 2 }, $(v.value.legend, (t, u) => (a(), l("div", {
|
|
1501
1508
|
class: "vue-ui-quick-chart-legend-item",
|
|
1502
1509
|
onClick: (r) => {
|
|
1503
|
-
Ke(t.id, v.value.legend.length - 1),
|
|
1510
|
+
Ke(t.id, v.value.legend.length - 1), ne("selectLegend", t);
|
|
1504
1511
|
},
|
|
1505
1512
|
style: N(`cursor: ${v.value.legend.length > 1 ? "pointer" : "default"}; opacity:${w.value.includes(t.id) ? "0.5" : "1"}`)
|
|
1506
1513
|
}, [
|
|
@@ -1508,7 +1515,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1508
1515
|
key: 0,
|
|
1509
1516
|
ref_for: !0
|
|
1510
1517
|
}, { legend: t }), void 0, !0) : (a(), l(m, { key: 1 }, [
|
|
1511
|
-
|
|
1518
|
+
de(Pe, {
|
|
1512
1519
|
name: e.value.legendIcon,
|
|
1513
1520
|
stroke: t.color,
|
|
1514
1521
|
size: e.value.legendIconSize
|
|
@@ -1527,7 +1534,7 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1527
1534
|
}, [
|
|
1528
1535
|
F(o.$slots, "source", {}, void 0, !0)
|
|
1529
1536
|
], 512)) : f("", !0),
|
|
1530
|
-
|
|
1537
|
+
de(Mt, {
|
|
1531
1538
|
show: me.value.showTooltip && j.value,
|
|
1532
1539
|
backgroundColor: e.value.backgroundColor,
|
|
1533
1540
|
color: e.value.color,
|
|
@@ -1543,23 +1550,23 @@ const Kt = ["id"], ea = ["xmlns", "viewBox"], ta = ["x", "y", "width", "height"]
|
|
|
1543
1550
|
isFullscreen: $e.value,
|
|
1544
1551
|
isCustom: g(Te)(e.value.tooltipCustomFormat)
|
|
1545
1552
|
}, {
|
|
1546
|
-
"tooltip-before":
|
|
1547
|
-
F(o.$slots, "tooltip-before",
|
|
1553
|
+
"tooltip-before": G(() => [
|
|
1554
|
+
F(o.$slots, "tooltip-before", ae(le({ ...he.value })), void 0, !0)
|
|
1548
1555
|
]),
|
|
1549
|
-
"tooltip-after":
|
|
1550
|
-
F(o.$slots, "tooltip-after",
|
|
1556
|
+
"tooltip-after": G(() => [
|
|
1557
|
+
F(o.$slots, "tooltip-after", ae(le({ ...he.value })), void 0, !0)
|
|
1551
1558
|
]),
|
|
1552
1559
|
_: 3
|
|
1553
1560
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"])
|
|
1554
1561
|
], 46, Kt)) : (a(), l("div", wl, [
|
|
1555
|
-
|
|
1562
|
+
de(Pe, {
|
|
1556
1563
|
name: "circleCancel",
|
|
1557
1564
|
stroke: "red"
|
|
1558
1565
|
}),
|
|
1559
1566
|
s[8] || (s[8] = _("span", null, "Dataset is not processable", -1))
|
|
1560
1567
|
]));
|
|
1561
1568
|
}
|
|
1562
|
-
}, Ml = /* @__PURE__ */ jt(Al, [["__scopeId", "data-v-
|
|
1569
|
+
}, Ml = /* @__PURE__ */ jt(Al, [["__scopeId", "data-v-f99e90ae"]]);
|
|
1563
1570
|
export {
|
|
1564
1571
|
Ml as default
|
|
1565
1572
|
};
|