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,22 +1,22 @@
|
|
|
1
|
-
import { ref as i, computed as
|
|
2
|
-
import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as
|
|
3
|
-
import { d as il, t as
|
|
4
|
-
import { _ as hl } from "./Tooltip-
|
|
5
|
-
import { L as fl } from "./Legend-
|
|
6
|
-
import { _ as yl } from "./Title-
|
|
7
|
-
import { S as gl } from "./Slicer-
|
|
8
|
-
import { u as pl, U as ml } from "./usePrinter-
|
|
9
|
-
import bl from "./vue-ui-accordion-
|
|
10
|
-
import { D as xl } from "./DataTable-
|
|
11
|
-
import kl from "./vue-ui-skeleton-
|
|
12
|
-
import { u as mt } from "./useNestedProp-
|
|
13
|
-
import Ye from "./BaseIcon-
|
|
1
|
+
import { ref as i, computed as T, onMounted as _e, nextTick as Ie, onBeforeUnmount as bt, watch as te, createElementBlock as X, openBlock as C, Fragment as We, createCommentVNode as le, normalizeClass as fe, createElementVNode as U, withDirectives as Ut, normalizeStyle as W, createVNode as ke, vModelText as Wt, withModifiers as dt, unref as D, renderList as Vt, useSlots as Zt, createBlock as ue, createSlots as _t, withCtx as z, renderSlot as M, normalizeProps as ve, guardReactiveProps as de, toDisplayString as ht, createTextVNode as Gt } from "vue";
|
|
2
|
+
import { l as xt, X as jt, u as qt, c as Qt, t as Jt, p as he, a as Kt, C as Ne, b as el, D as Ve, i as be, f as xe, d as ft, _ as tl, J as ll, aa as al, o as ol, e as rl, x as yt, q as nl, r as sl, y as ul, s as Me } from "./index-DUnEDLbc.js";
|
|
3
|
+
import { d as il, t as cl, u as vl, c as dl, a as gt, l as I, r as Ze, b as ee, p as pt } from "./useResponsive-vZgZwV-S.js";
|
|
4
|
+
import { _ as hl } from "./Tooltip-BTO5NGkn.js";
|
|
5
|
+
import { L as fl } from "./Legend-PL8rU0J1.js";
|
|
6
|
+
import { _ as yl } from "./Title-1PWD04Gh.js";
|
|
7
|
+
import { S as gl } from "./Slicer-6F4tHrZR.js";
|
|
8
|
+
import { u as pl, U as ml } from "./usePrinter-Undaynpo.js";
|
|
9
|
+
import bl from "./vue-ui-accordion-C8Couc_G.js";
|
|
10
|
+
import { D as xl } from "./DataTable-DfMqgTjL.js";
|
|
11
|
+
import kl from "./vue-ui-skeleton-DieABKlo.js";
|
|
12
|
+
import { u as mt } from "./useNestedProp-CEMeoM-f.js";
|
|
13
|
+
import Ye from "./BaseIcon-DH34CAFx.js";
|
|
14
14
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import { C as Ll } from "./PenAndPaper.
|
|
15
|
+
import { C as Ll } from "./PenAndPaper.vue_vue_type_style_index_0_scoped_3cea7589_lang-AmNwJZI7.js";
|
|
16
16
|
import { u as Cl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
17
17
|
import { u as wl } from "./useChartAccessibility-BWojgys7.js";
|
|
18
18
|
const $l = {
|
|
19
|
-
class: /* @__PURE__ */
|
|
19
|
+
class: /* @__PURE__ */ fe({
|
|
20
20
|
"vue-ui-pen-and-paper-action": !0
|
|
21
21
|
}),
|
|
22
22
|
style: { padding: "0 !important" }
|
|
@@ -41,22 +41,22 @@ const $l = {
|
|
|
41
41
|
},
|
|
42
42
|
emits: ["close"],
|
|
43
43
|
setup($, { emit: Xe }) {
|
|
44
|
-
const q = $, Be = Xe, m = i([]), V = i([]), ae = i("0 0 0 0"),
|
|
45
|
-
function B({ width: d, height:
|
|
46
|
-
ae.value = `0 0 ${d} ${
|
|
44
|
+
const q = $, Be = Xe, m = i([]), V = i([]), ae = i("0 0 0 0"), Z = i(q.color), u = i(1), b = T(() => xt(q.color, 0.6));
|
|
45
|
+
function B({ width: d, height: c }) {
|
|
46
|
+
ae.value = `0 0 ${d} ${c}`;
|
|
47
47
|
}
|
|
48
48
|
const Q = i(null);
|
|
49
|
-
|
|
49
|
+
_e(() => {
|
|
50
50
|
Ie(() => {
|
|
51
51
|
if (q.parent) {
|
|
52
52
|
Q.value = new ResizeObserver((n) => {
|
|
53
|
-
for (const
|
|
54
|
-
const { width: y, height: k } =
|
|
53
|
+
for (const v of n) {
|
|
54
|
+
const { width: y, height: k } = v.contentRect;
|
|
55
55
|
B({ width: y, height: k });
|
|
56
56
|
}
|
|
57
57
|
}), Q.value.observe(q.parent);
|
|
58
|
-
const { width: d, height:
|
|
59
|
-
B({ width: d, height:
|
|
58
|
+
const { width: d, height: c } = q.parent.getBoundingClientRect();
|
|
59
|
+
B({ width: d, height: c });
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
}), bt(() => {
|
|
@@ -65,89 +65,89 @@ const $l = {
|
|
|
65
65
|
() => q.parent,
|
|
66
66
|
(d) => {
|
|
67
67
|
if (!d) return;
|
|
68
|
-
const { width:
|
|
69
|
-
B({ width:
|
|
68
|
+
const { width: c, height: n } = q.parent.getBoundingClientRect();
|
|
69
|
+
B({ width: c, height: n });
|
|
70
70
|
},
|
|
71
71
|
{ immediate: !0 }
|
|
72
72
|
);
|
|
73
|
-
const h = i(!1),
|
|
73
|
+
const h = i(!1), _ = i(""), oe = i(null);
|
|
74
74
|
function E(d) {
|
|
75
75
|
if (!oe.value) return;
|
|
76
76
|
h.value = !0;
|
|
77
|
-
const { x:
|
|
78
|
-
|
|
77
|
+
const { x: c, y: n } = Ce(d);
|
|
78
|
+
_.value = `M ${c} ${n}`;
|
|
79
79
|
}
|
|
80
80
|
function J(d) {
|
|
81
81
|
if (!h.value || !oe.value) return;
|
|
82
|
-
const { x:
|
|
83
|
-
|
|
82
|
+
const { x: c, y: n } = Ce(d);
|
|
83
|
+
_.value += ` ${c} ${n}`;
|
|
84
84
|
}
|
|
85
85
|
function G(d) {
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
86
|
+
const c = d.trim().split(/\s+/);
|
|
87
|
+
if (c.length < 4)
|
|
88
88
|
return d;
|
|
89
|
-
const n =
|
|
89
|
+
const n = c.slice(1).map(Number);
|
|
90
90
|
if (n.length % 2 !== 0)
|
|
91
91
|
return d;
|
|
92
|
-
const
|
|
93
|
-
for (let A = 2; A <
|
|
94
|
-
const t =
|
|
95
|
-
y.push(`Q ${t} ${
|
|
92
|
+
const v = re(n), y = [`M ${v[0]} ${v[1]}`];
|
|
93
|
+
for (let A = 2; A < v.length - 2; A += 2) {
|
|
94
|
+
const t = v[A - 2], F = v[A - 1], P = v[A], R = v[A + 1], O = (t + P) / 2, ne = (F + R) / 2;
|
|
95
|
+
y.push(`Q ${t} ${F} ${O} ${ne}`);
|
|
96
96
|
}
|
|
97
|
-
const k =
|
|
97
|
+
const k = v[v.length - 2], w = v[v.length - 1];
|
|
98
98
|
return y.push(`L ${k} ${w}`), y.join(" ");
|
|
99
99
|
}
|
|
100
|
-
function re(d,
|
|
100
|
+
function re(d, c = 1) {
|
|
101
101
|
const n = [...d];
|
|
102
|
-
for (let
|
|
103
|
-
const y = d[
|
|
104
|
-
n[
|
|
102
|
+
for (let v = 2; v < d.length - 2; v += 2) {
|
|
103
|
+
const y = d[v], k = d[v + 1], w = d[v - 2], A = d[v - 1], t = d[v + 2], F = d[v + 3];
|
|
104
|
+
n[v] = y + c * ((w + t) / 2 - y), n[v + 1] = k + c * ((A + F) / 2 - k);
|
|
105
105
|
}
|
|
106
106
|
return n;
|
|
107
107
|
}
|
|
108
108
|
function Le(d) {
|
|
109
|
-
const
|
|
110
|
-
let n = "",
|
|
111
|
-
for (let w = 0; w <
|
|
112
|
-
const A =
|
|
109
|
+
const c = d.trim().split(/\s+/);
|
|
110
|
+
let n = "", v = "", y = null, k = null;
|
|
111
|
+
for (let w = 0; w < c.length; w += 1) {
|
|
112
|
+
const A = c[w];
|
|
113
113
|
if (isNaN(A)) {
|
|
114
|
-
if (
|
|
115
|
-
y = parseFloat(
|
|
116
|
-
else if (
|
|
117
|
-
const t = parseFloat(
|
|
118
|
-
t === y &&
|
|
114
|
+
if (v = A, v === "M" || v === "L")
|
|
115
|
+
y = parseFloat(c[++w]), k = parseFloat(c[++w]), n += `${v}${y} ${k}`;
|
|
116
|
+
else if (v === "Q") {
|
|
117
|
+
const t = parseFloat(c[++w]), F = parseFloat(c[++w]), P = parseFloat(c[++w]), R = parseFloat(c[++w]);
|
|
118
|
+
t === y && F === k ? n += `t${P - y} ${R - k}` : n += `q${t - y} ${F - k} ${P - y} ${R - k}`, y = P, k = R;
|
|
119
119
|
}
|
|
120
120
|
} else {
|
|
121
|
-
const t = parseFloat(A),
|
|
122
|
-
if (
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
} else if (
|
|
126
|
-
const
|
|
127
|
-
|
|
121
|
+
const t = parseFloat(A), F = parseFloat(c[++w]);
|
|
122
|
+
if (v === "L") {
|
|
123
|
+
const P = t - y, R = F - k;
|
|
124
|
+
P === 0 ? n += `v${R}` : R === 0 ? n += `h${P}` : n += `l${P} ${R}`, y = t, k = F;
|
|
125
|
+
} else if (v === "Q") {
|
|
126
|
+
const P = t, R = F, O = parseFloat(c[++w]), ne = parseFloat(c[++w]);
|
|
127
|
+
P === y && R === k ? n += `t${O - y} ${ne - k}` : n += `q${P - y} ${R - k} ${O - y} ${ne - k}`, y = O, k = ne;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
return n;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function ye() {
|
|
134
134
|
h.value && (m.value.push({
|
|
135
135
|
strokeWidth: u.value,
|
|
136
|
-
path: Le(G(
|
|
137
|
-
color:
|
|
138
|
-
}), V.value = [],
|
|
136
|
+
path: Le(G(_.value)),
|
|
137
|
+
color: Z.value
|
|
138
|
+
}), V.value = [], _.value = ""), h.value = !1;
|
|
139
139
|
}
|
|
140
140
|
function Ce(d) {
|
|
141
141
|
if (!oe.value) return { x: 0, y: 0 };
|
|
142
|
-
const
|
|
143
|
-
let n,
|
|
144
|
-
return d.touches && d.touches.length ? (n = d.touches[0].clientX,
|
|
145
|
-
x: n -
|
|
146
|
-
y:
|
|
142
|
+
const c = oe.value.getBoundingClientRect();
|
|
143
|
+
let n, v;
|
|
144
|
+
return d.touches && d.touches.length ? (n = d.touches[0].clientX, v = d.touches[0].clientY) : (n = d.clientX, v = d.clientY), {
|
|
145
|
+
x: n - c.left,
|
|
146
|
+
y: v - c.top
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
i(!1);
|
|
150
|
-
function
|
|
150
|
+
function ge() {
|
|
151
151
|
if (m.value.length > 0) {
|
|
152
152
|
const d = m.value.pop();
|
|
153
153
|
V.value.push(d);
|
|
@@ -163,11 +163,11 @@ const $l = {
|
|
|
163
163
|
m.value = [], V.value = [];
|
|
164
164
|
}
|
|
165
165
|
const Pe = i(null);
|
|
166
|
-
return (d,
|
|
166
|
+
return (d, c) => (C(), X(We, null, [
|
|
167
167
|
$.active ? (C(), X("div", {
|
|
168
168
|
key: 0,
|
|
169
169
|
"data-html2canvas-ignore": "",
|
|
170
|
-
class:
|
|
170
|
+
class: fe({
|
|
171
171
|
"vue-ui-pen-and-paper-actions": !0,
|
|
172
172
|
visible: $.active
|
|
173
173
|
})
|
|
@@ -178,7 +178,7 @@ const $l = {
|
|
|
178
178
|
backgroundColor: $.backgroundColor,
|
|
179
179
|
border: `1px solid ${b.value}`
|
|
180
180
|
}),
|
|
181
|
-
onClick:
|
|
181
|
+
onClick: c[0] || (c[0] = (n) => Be("close"))
|
|
182
182
|
}, [
|
|
183
183
|
ke(Ye, {
|
|
184
184
|
name: "close",
|
|
@@ -187,14 +187,14 @@ const $l = {
|
|
|
187
187
|
], 4),
|
|
188
188
|
U("button", $l, [
|
|
189
189
|
ke(Ll, {
|
|
190
|
-
value:
|
|
191
|
-
"onUpdate:value":
|
|
190
|
+
value: Z.value,
|
|
191
|
+
"onUpdate:value": c[1] || (c[1] = (n) => Z.value = n),
|
|
192
192
|
backgroundColor: $.backgroundColor,
|
|
193
193
|
buttonBorderColor: b.value
|
|
194
194
|
}, null, 8, ["value", "backgroundColor", "buttonBorderColor"])
|
|
195
195
|
]),
|
|
196
196
|
U("button", {
|
|
197
|
-
class:
|
|
197
|
+
class: fe({
|
|
198
198
|
"vue-ui-pen-and-paper-action": !0,
|
|
199
199
|
"vue-ui-pen-and-paper-action-disabled": !m.value.length
|
|
200
200
|
}),
|
|
@@ -203,7 +203,7 @@ const $l = {
|
|
|
203
203
|
backgroundColor: $.backgroundColor,
|
|
204
204
|
border: `1px solid ${b.value}`
|
|
205
205
|
}),
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: ge
|
|
207
207
|
}, [
|
|
208
208
|
ke(Ye, {
|
|
209
209
|
name: "restart",
|
|
@@ -211,7 +211,7 @@ const $l = {
|
|
|
211
211
|
}, null, 8, ["stroke"])
|
|
212
212
|
], 14, Sl),
|
|
213
213
|
U("button", {
|
|
214
|
-
class:
|
|
214
|
+
class: fe({
|
|
215
215
|
"vue-ui-pen-and-paper-action": !0,
|
|
216
216
|
"vue-ui-pen-and-paper-action-disabled": !V.value.length
|
|
217
217
|
}),
|
|
@@ -228,7 +228,7 @@ const $l = {
|
|
|
228
228
|
}, null, 8, ["stroke"])
|
|
229
229
|
], 6),
|
|
230
230
|
U("button", {
|
|
231
|
-
class:
|
|
231
|
+
class: fe([{
|
|
232
232
|
"vue-ui-pen-and-paper-action": !0,
|
|
233
233
|
"vue-ui-pen-and-paper-action-disabled": !m.value.length
|
|
234
234
|
}, "vue-ui-pen-and-paper-action"]),
|
|
@@ -251,7 +251,7 @@ const $l = {
|
|
|
251
251
|
min: 0.5,
|
|
252
252
|
max: 12,
|
|
253
253
|
step: 0.1,
|
|
254
|
-
"onUpdate:modelValue":
|
|
254
|
+
"onUpdate:modelValue": c[2] || (c[2] = (n) => u.value = n),
|
|
255
255
|
style: W({
|
|
256
256
|
accentColor: $.color
|
|
257
257
|
})
|
|
@@ -264,17 +264,17 @@ const $l = {
|
|
|
264
264
|
ref: oe,
|
|
265
265
|
xmlns: D(jt),
|
|
266
266
|
viewBox: ae.value,
|
|
267
|
-
class:
|
|
267
|
+
class: fe({
|
|
268
268
|
"vue-ui-pen-and-paper": !0,
|
|
269
269
|
inactive: !$.active
|
|
270
270
|
}),
|
|
271
271
|
onMousedown: E,
|
|
272
272
|
onMousemove: J,
|
|
273
|
-
onMouseup:
|
|
274
|
-
onMouseleave:
|
|
273
|
+
onMouseup: ye,
|
|
274
|
+
onMouseleave: ye,
|
|
275
275
|
onTouchstart: dt(E, ["prevent"]),
|
|
276
276
|
onTouchmove: dt(J, ["prevent"]),
|
|
277
|
-
onTouchend:
|
|
277
|
+
onTouchend: ye
|
|
278
278
|
}, [
|
|
279
279
|
(C(!0), X(We, null, Vt(m.value, (n) => (C(), X(We, { key: n }, [
|
|
280
280
|
n.path.replace("M", "").split(" ").length === 2 ? (C(), X("circle", {
|
|
@@ -295,8 +295,8 @@ const $l = {
|
|
|
295
295
|
h.value ? (C(), X("path", {
|
|
296
296
|
key: 0,
|
|
297
297
|
class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
|
|
298
|
-
d: G(
|
|
299
|
-
stroke:
|
|
298
|
+
d: G(_.value),
|
|
299
|
+
stroke: Z.value,
|
|
300
300
|
"stroke-width": u.value * 1.1,
|
|
301
301
|
fill: "none"
|
|
302
302
|
}, null, 8, Tl)) : le("", !0)
|
|
@@ -324,14 +324,14 @@ const $l = {
|
|
|
324
324
|
},
|
|
325
325
|
emits: ["selectLegend"],
|
|
326
326
|
setup($, { expose: Xe, emit: q }) {
|
|
327
|
-
const { vue_ui_xy_canvas: Be } = qt(), m = $, V = i(Qt()), ae = i(null),
|
|
328
|
-
|
|
327
|
+
const { vue_ui_xy_canvas: Be } = qt(), m = $, V = i(Qt()), ae = i(null), Z = i(null), u = i(null), b = i(1), B = i(1), Q = i(!1), h = i(null), _ = i(""), oe = i(null), E = i([]), J = i(1), G = i(!0), re = i(!0), Le = i(null), ye = i(0), Ce = i(0), ge = i(!1), Te = i(null), Fe = i(null), Pe = i(null), d = i(null), c = i(0), n = i(0), v = i(0), y = i(null), k = T(() => !!m.dataset && m.dataset.length), w = q, A = Zt();
|
|
328
|
+
_e(() => {
|
|
329
329
|
A["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
330
330
|
});
|
|
331
|
-
const t =
|
|
331
|
+
const t = T({
|
|
332
332
|
get: () => ne(),
|
|
333
333
|
set: (e) => e
|
|
334
|
-
}), { userOptionsVisible:
|
|
334
|
+
}), { userOptionsVisible: F, setUserOptionsVisibility: P, keepUserOptionState: R } = Cl({ config: t.value }), { svgRef: O } = wl({ config: t.value.style.chart.title });
|
|
335
335
|
function ne() {
|
|
336
336
|
const e = mt({
|
|
337
337
|
userConfig: m.config,
|
|
@@ -343,13 +343,13 @@ const $l = {
|
|
|
343
343
|
userConfig: Kt.vue_ui_xy_canvas[e.theme] || m.config,
|
|
344
344
|
defaultConfig: e
|
|
345
345
|
}),
|
|
346
|
-
customPalette: Jt[e.theme] ||
|
|
346
|
+
customPalette: Jt[e.theme] || he
|
|
347
347
|
} : a = e, m.config && Ne(m.config, "style.chart.scale.min") ? a.style.chart.scale.min = m.config.style.chart.scale.min : a.style.chart.scale.min = null, m.config && Ne(m.config, "style.chart.scale.max") ? a.style.chart.scale.max = m.config.style.chart.scale.max : a.style.chart.scale.max = null, m.config && Ne(m.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = m.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, m.config && Ne(m.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = m.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
|
|
348
348
|
}
|
|
349
349
|
te(() => m.config, (e) => {
|
|
350
|
-
t.value = ne(),
|
|
350
|
+
t.value = ne(), F.value = !t.value.userOptions.showOnChartHover, He(), c.value += 1, n.value += 1, v.value += 1, s.value.showTable = t.value.table.show, s.value.showDataLabels = t.value.style.chart.dataLabels.show, s.value.stacked = t.value.style.chart.stacked, s.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
351
351
|
}, { deep: !0 }), te(() => m.dataset, () => {
|
|
352
|
-
He(),
|
|
352
|
+
He(), c.value += 1, n.value += 1, v.value += 1;
|
|
353
353
|
}, { deep: !0 });
|
|
354
354
|
const Ge = i(t.value.style.chart.aspectRatio), { isPrinting: je, isImaging: qe, generatePdf: Qe, generateImage: Je } = pl({
|
|
355
355
|
elementId: `xy_canvas_${V.value}`,
|
|
@@ -361,9 +361,9 @@ const $l = {
|
|
|
361
361
|
showTooltip: t.value.style.chart.tooltip.show
|
|
362
362
|
});
|
|
363
363
|
function Lt(e) {
|
|
364
|
-
|
|
364
|
+
ge.value = e, Ce.value += 1;
|
|
365
365
|
}
|
|
366
|
-
const Ke =
|
|
366
|
+
const Ke = T(() => el(t.value.customPalette)), j = T(() => pe.value ? Math.max(...pe.value.filter((e, a) => !E.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = T(() => {
|
|
367
367
|
const e = b.value - b.value * (t.value.style.chart.paddingProportions.left + t.value.style.chart.paddingProportions.right);
|
|
368
368
|
return {
|
|
369
369
|
canvasWidth: b.value,
|
|
@@ -382,19 +382,19 @@ const $l = {
|
|
|
382
382
|
}
|
|
383
383
|
function Ct({ hasAutoScale: e, series: a, min: o, max: f, scale: p, yOffset: Y, individualHeight: g, stackIndex: L = null }) {
|
|
384
384
|
return a.map((ie, H) => {
|
|
385
|
-
const se = p.min < 0 ? Math.abs(p.min) : 0,
|
|
385
|
+
const se = p.min < 0 ? Math.abs(p.min) : 0, ce = et(ie + se, se + p.max);
|
|
386
386
|
let Se, ze;
|
|
387
387
|
e && (Se = p.min, ze = et(ie - Se, p.max - Se));
|
|
388
388
|
let K = 0;
|
|
389
|
-
return L === null ? K = l.value.bottom - l.value.height * (e ? ze :
|
|
389
|
+
return L === null ? K = l.value.bottom - l.value.height * (e ? ze : ce) : K = l.value.bottom - Y - g * (e ? ze : ce), {
|
|
390
390
|
x: l.value.left + l.value.slot * H + l.value.slot / 2,
|
|
391
391
|
y: K,
|
|
392
392
|
value: ie
|
|
393
393
|
};
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
const S =
|
|
397
|
-
const e = t.value.style.chart.scale.min !== null ? t.value.style.chart.scale.min : Math.min(...
|
|
396
|
+
const S = T(() => {
|
|
397
|
+
const e = t.value.style.chart.scale.min !== null ? t.value.style.chart.scale.min : Math.min(...pe.value.filter((g, L) => !E.value.includes(g.absoluteIndex)).flatMap((g) => g.series.slice(r.value.start, r.value.end))), a = t.value.style.chart.scale.max !== null ? t.value.style.chart.scale.max : Math.max(...pe.value.filter((g, L) => !E.value.includes(g.absoluteIndex)).flatMap((g) => g.series.slice(r.value.start, r.value.end))), o = Ve(e < 0 ? e : 0, a === e ? e + 1 < 0 ? 0 : e + 1 : a < 0 ? 0 : a, t.value.style.chart.scale.ticks), f = o.min < 0 ? Math.abs(o.min) : 0, p = l.value.bottom - l.value.height * (f / (o.max + f)), Y = o.ticks.map((g) => ({
|
|
398
398
|
y: l.value.bottom - l.value.height * ((g + f) / (o.max + f)),
|
|
399
399
|
x: l.value.left - 8,
|
|
400
400
|
value: g
|
|
@@ -407,7 +407,7 @@ const $l = {
|
|
|
407
407
|
yLabels: Y,
|
|
408
408
|
zero: p
|
|
409
409
|
};
|
|
410
|
-
}), wt =
|
|
410
|
+
}), wt = T(() => x.value.map((e) => `
|
|
411
411
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
412
412
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
413
413
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -425,19 +425,19 @@ const $l = {
|
|
|
425
425
|
{ datapoint: e, seriesIndex: h.value }
|
|
426
426
|
)}</span>
|
|
427
427
|
</div>
|
|
428
|
-
`)),
|
|
428
|
+
`)), pe = T(() => m.dataset.map((e, a) => ({
|
|
429
429
|
...e,
|
|
430
430
|
series: tl({
|
|
431
431
|
data: ll(e.series),
|
|
432
432
|
threshold: t.value.downsample.threshold
|
|
433
433
|
}),
|
|
434
434
|
absoluteIndex: a,
|
|
435
|
-
color: ft(e.color || Ke.value[a] ||
|
|
435
|
+
color: ft(e.color || Ke.value[a] || he[a] || he[a % he.length])
|
|
436
436
|
})));
|
|
437
437
|
te(j, (e) => {
|
|
438
438
|
e && tt();
|
|
439
439
|
});
|
|
440
|
-
const x =
|
|
440
|
+
const x = T(() => al(pe.value.filter((e, a) => !E.value.includes(e.absoluteIndex))).map((e, a) => ({
|
|
441
441
|
...e,
|
|
442
442
|
series: e.series.slice(r.value.start, r.value.end)
|
|
443
443
|
})).map((e, a) => {
|
|
@@ -450,8 +450,8 @@ const $l = {
|
|
|
450
450
|
let g;
|
|
451
451
|
e.autoScaling ? g = Ve(p.valueMin, p.valueMax, Y) : g = Ve(p.valueMin < 0 ? p.valueMin : 0, p.valueMax <= 0 ? 0 : p.valueMax, Y);
|
|
452
452
|
const L = s.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, ie = s.value.stacked ? l.value.height / t.value.style.chart.stackGap : 0, H = s.value.stacked ? l.value.height * e.stackRatio - ie : l.value.height, se = g.min < 0 ? Math.abs(g.min) : 0;
|
|
453
|
-
let
|
|
454
|
-
e.autoScaling && s.value.stacked && f <= 0 ?
|
|
453
|
+
let ce;
|
|
454
|
+
e.autoScaling && s.value.stacked && f <= 0 ? ce = l.value.bottom - L - H : ce = l.value.bottom - L - H * (se / (g.max + se));
|
|
455
455
|
const Se = g.ticks.map((K, Ht) => ({
|
|
456
456
|
y: l.value.bottom - L - H * (Ht / (g.ticks.length - 1)),
|
|
457
457
|
x: l.value.left - 8,
|
|
@@ -472,7 +472,7 @@ const $l = {
|
|
|
472
472
|
min: o,
|
|
473
473
|
max: f,
|
|
474
474
|
localScale: g,
|
|
475
|
-
localZero:
|
|
475
|
+
localZero: ce,
|
|
476
476
|
localMin: se,
|
|
477
477
|
localYLabels: Se,
|
|
478
478
|
yOffset: L,
|
|
@@ -485,29 +485,29 @@ const $l = {
|
|
|
485
485
|
function tt() {
|
|
486
486
|
lt();
|
|
487
487
|
}
|
|
488
|
-
const
|
|
488
|
+
const me = i(null);
|
|
489
489
|
async function lt() {
|
|
490
|
-
(t.value.style.chart.zoom.startIndex !== null || t.value.style.chart.zoom.endIndex !== null) &&
|
|
490
|
+
(t.value.style.chart.zoom.startIndex !== null || t.value.style.chart.zoom.endIndex !== null) && me.value ? (t.value.style.chart.zoom.startIndex !== null && (await Ie(), await Ie(), me.value && me.value.setStartValue(t.value.style.chart.zoom.startIndex)), t.value.style.chart.zoom.endIndex !== null && (await Ie(), await Ie(), me.value && me.value.setEndValue($t(t.value.style.chart.zoom.endIndex + 1)))) : (r.value = {
|
|
491
491
|
start: 0,
|
|
492
492
|
end: j.value
|
|
493
|
-
},
|
|
493
|
+
}, ye.value += 1);
|
|
494
494
|
}
|
|
495
495
|
function $t(e) {
|
|
496
496
|
const a = j.value;
|
|
497
497
|
return e > a ? a : e < 0 || t.value.style.chart.zoom.startIndex !== null && e < t.value.style.chart.zoom.startIndex ? t.value.style.chart.zoom.startIndex !== null ? t.value.style.chart.zoom.startIndex + 1 : 1 : e;
|
|
498
498
|
}
|
|
499
|
-
const St =
|
|
499
|
+
const St = T(() => x.value.filter((e) => ["line", "plot", void 0].includes(e.type))), N = T(() => x.value.filter((e) => e.type === "bar"));
|
|
500
500
|
function zt() {
|
|
501
|
-
if (!
|
|
501
|
+
if (!O.value)
|
|
502
502
|
return;
|
|
503
|
-
const e =
|
|
504
|
-
|
|
503
|
+
const e = Z.value.offsetWidth, a = Z.value.offsetHeight;
|
|
504
|
+
O.value.width = e * J.value * 2, O.value.height = a * J.value * 2, b.value = e * J.value * 2, B.value = a * J.value * 2, u.value.scale(J.value, J.value), we();
|
|
505
505
|
}
|
|
506
506
|
function Mt() {
|
|
507
507
|
if (u.value.clearRect(0, 0, 1e4, 1e4), u.value.fillStyle = t.value.style.chart.backgroundColor, u.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), s.value.stacked)
|
|
508
508
|
t.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < t.value.style.chart.grid.y.verticalLines.hideUnderXLength ? x.value.forEach((e) => {
|
|
509
509
|
for (let a = 0; a < r.value.end - r.value.start + 1; a += 1)
|
|
510
|
-
|
|
510
|
+
I(
|
|
511
511
|
u.value,
|
|
512
512
|
[
|
|
513
513
|
{
|
|
@@ -525,7 +525,7 @@ const $l = {
|
|
|
525
525
|
);
|
|
526
526
|
}) : t.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= t.value.style.chart.grid.y.verticalLines.hideUnderXLength && x.value.forEach((e) => {
|
|
527
527
|
for (let a = r.value.start; a < r.value.end; a += 1)
|
|
528
|
-
a % Math.floor((r.value.end - r.value.start) / t.value.style.chart.grid.y.timeLabels.modulo) === 0 &&
|
|
528
|
+
a % Math.floor((r.value.end - r.value.start) / t.value.style.chart.grid.y.timeLabels.modulo) === 0 && I(
|
|
529
529
|
u.value,
|
|
530
530
|
[
|
|
531
531
|
{
|
|
@@ -543,7 +543,7 @@ const $l = {
|
|
|
543
543
|
);
|
|
544
544
|
}), t.value.style.chart.grid.x.horizontalLines.show && (t.value.style.chart.grid.x.horizontalLines.alternate ? x.value.forEach((e) => {
|
|
545
545
|
e.localYLabels.forEach((a, o) => {
|
|
546
|
-
o < e.localYLabels.length - 1 &&
|
|
546
|
+
o < e.localYLabels.length - 1 && Ze(
|
|
547
547
|
u.value,
|
|
548
548
|
[
|
|
549
549
|
{ x: l.value.left, y: a.y },
|
|
@@ -559,7 +559,7 @@ const $l = {
|
|
|
559
559
|
});
|
|
560
560
|
}) : x.value.forEach((e) => {
|
|
561
561
|
e.localYLabels.slice(r.value.start, r.value.end).forEach((a) => {
|
|
562
|
-
|
|
562
|
+
I(
|
|
563
563
|
u.value,
|
|
564
564
|
[
|
|
565
565
|
{ x: l.value.left, y: a.y },
|
|
@@ -571,7 +571,7 @@ const $l = {
|
|
|
571
571
|
);
|
|
572
572
|
});
|
|
573
573
|
})), t.value.style.chart.grid.zeroLine.show && x.value.forEach((e) => {
|
|
574
|
-
|
|
574
|
+
I(
|
|
575
575
|
u.value,
|
|
576
576
|
[
|
|
577
577
|
{ x: l.value.left, y: e.localZero },
|
|
@@ -583,7 +583,7 @@ const $l = {
|
|
|
583
583
|
}
|
|
584
584
|
);
|
|
585
585
|
}), t.value.style.chart.grid.y.axisLabels.show && x.value.forEach((e) => {
|
|
586
|
-
|
|
586
|
+
I(
|
|
587
587
|
u.value,
|
|
588
588
|
[
|
|
589
589
|
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
@@ -592,7 +592,7 @@ const $l = {
|
|
|
592
592
|
{
|
|
593
593
|
color: e.color
|
|
594
594
|
}
|
|
595
|
-
),
|
|
595
|
+
), I(
|
|
596
596
|
u.value,
|
|
597
597
|
[
|
|
598
598
|
{ x: l.value.right, y: l.value.bottom - e.yOffset },
|
|
@@ -619,7 +619,7 @@ const $l = {
|
|
|
619
619
|
else {
|
|
620
620
|
if (t.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < t.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
621
621
|
for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
|
|
622
|
-
|
|
622
|
+
I(
|
|
623
623
|
u.value,
|
|
624
624
|
[
|
|
625
625
|
{ x: l.value.left + l.value.slot * e, y: l.value.top },
|
|
@@ -631,7 +631,7 @@ const $l = {
|
|
|
631
631
|
);
|
|
632
632
|
else if (t.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= t.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
633
633
|
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
634
|
-
e % Math.floor((r.value.end - r.value.start) / t.value.style.chart.grid.y.timeLabels.modulo) === 0 &&
|
|
634
|
+
e % Math.floor((r.value.end - r.value.start) / t.value.style.chart.grid.y.timeLabels.modulo) === 0 && I(
|
|
635
635
|
u.value,
|
|
636
636
|
[
|
|
637
637
|
{ x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.top },
|
|
@@ -642,7 +642,7 @@ const $l = {
|
|
|
642
642
|
}
|
|
643
643
|
);
|
|
644
644
|
t.value.style.chart.grid.x.horizontalLines.show && (t.value.style.chart.grid.x.horizontalLines.alternate ? S.value.yLabels.forEach((e, a) => {
|
|
645
|
-
a < S.value.yLabels.length - 1 &&
|
|
645
|
+
a < S.value.yLabels.length - 1 && Ze(
|
|
646
646
|
u.value,
|
|
647
647
|
[
|
|
648
648
|
{ x: l.value.left, y: e.y },
|
|
@@ -656,7 +656,7 @@ const $l = {
|
|
|
656
656
|
}
|
|
657
657
|
);
|
|
658
658
|
}) : S.value.yLabels.forEach((e) => {
|
|
659
|
-
|
|
659
|
+
I(
|
|
660
660
|
u.value,
|
|
661
661
|
[
|
|
662
662
|
{ x: l.value.left, y: e.y },
|
|
@@ -666,7 +666,7 @@ const $l = {
|
|
|
666
666
|
color: t.value.style.chart.grid.x.horizontalLines.color
|
|
667
667
|
}
|
|
668
668
|
);
|
|
669
|
-
})), t.value.style.chart.grid.y.showAxis &&
|
|
669
|
+
})), t.value.style.chart.grid.y.showAxis && I(
|
|
670
670
|
u.value,
|
|
671
671
|
[
|
|
672
672
|
{ x: l.value.left, y: l.value.top },
|
|
@@ -676,7 +676,7 @@ const $l = {
|
|
|
676
676
|
color: t.value.style.chart.grid.y.axisColor,
|
|
677
677
|
lineWidth: t.value.style.chart.grid.y.axisThickness
|
|
678
678
|
}
|
|
679
|
-
), t.value.style.chart.grid.x.showAxis &&
|
|
679
|
+
), t.value.style.chart.grid.x.showAxis && I(
|
|
680
680
|
u.value,
|
|
681
681
|
[
|
|
682
682
|
{ x: l.value.left, y: l.value.bottom },
|
|
@@ -686,7 +686,7 @@ const $l = {
|
|
|
686
686
|
color: t.value.style.chart.grid.x.axisColor,
|
|
687
687
|
lineWidth: t.value.style.chart.grid.x.axisThickness
|
|
688
688
|
}
|
|
689
|
-
), t.value.style.chart.grid.zeroLine.show &&
|
|
689
|
+
), t.value.style.chart.grid.zeroLine.show && I(
|
|
690
690
|
u.value,
|
|
691
691
|
[
|
|
692
692
|
{ x: l.value.left, y: S.value.zero },
|
|
@@ -851,7 +851,7 @@ const $l = {
|
|
|
851
851
|
);
|
|
852
852
|
}
|
|
853
853
|
function at() {
|
|
854
|
-
|
|
854
|
+
I(
|
|
855
855
|
u.value,
|
|
856
856
|
[
|
|
857
857
|
{ x: l.value.left + l.value.slot * h.value + l.value.slot / 2, y: l.value.top },
|
|
@@ -865,7 +865,7 @@ const $l = {
|
|
|
865
865
|
);
|
|
866
866
|
}
|
|
867
867
|
function Ot() {
|
|
868
|
-
y.value &&
|
|
868
|
+
y.value && I(
|
|
869
869
|
u.value,
|
|
870
870
|
[
|
|
871
871
|
{ x: l.value.left, y: y.value },
|
|
@@ -881,7 +881,7 @@ const $l = {
|
|
|
881
881
|
function Dt() {
|
|
882
882
|
N.value.forEach((e, a) => {
|
|
883
883
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
884
|
-
|
|
884
|
+
Ze(
|
|
885
885
|
u.value,
|
|
886
886
|
[
|
|
887
887
|
{
|
|
@@ -959,14 +959,14 @@ const $l = {
|
|
|
959
959
|
fillColor: Me(e.color, t.value.style.chart.area.opacity),
|
|
960
960
|
strokeColor: "transparent"
|
|
961
961
|
}
|
|
962
|
-
) :
|
|
962
|
+
) : I(u.value, e.coordinatesLine, {
|
|
963
963
|
color: e.color,
|
|
964
964
|
lineWidth: 3
|
|
965
965
|
});
|
|
966
966
|
}
|
|
967
967
|
function At() {
|
|
968
968
|
x.value.forEach((e, a) => {
|
|
969
|
-
|
|
969
|
+
I(
|
|
970
970
|
u.value,
|
|
971
971
|
[
|
|
972
972
|
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
@@ -982,7 +982,7 @@ const $l = {
|
|
|
982
982
|
function we() {
|
|
983
983
|
Mt(), G.value ? (h.value !== null && t.value.style.chart.selector.show && at(), Dt(), s.value.stacked && t.value.style.chart.grid.x.showAxis && At(), St.value.forEach((e) => {
|
|
984
984
|
(e.type === "line" || !e.type) && Et(e), re.value && (It(e), s.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Pt(e));
|
|
985
|
-
}), Le.value = dl(
|
|
985
|
+
}), Le.value = dl(O.value)) : (Le.value && (u.value.clearRect(0, 0, 1e4, 1e4), u.value.drawImage(Le.value, 0, 0)), h.value !== null && t.value.style.chart.selector.show && at(), h.value !== null && x.value.forEach((e) => {
|
|
986
986
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
987
987
|
if (!e.coordinatesLine[h.value]) return;
|
|
988
988
|
e.coordinatesLine[h.value].x !== void 0 && e.coordinatesLine[h.value].y !== void 0 && gt(
|
|
@@ -1009,7 +1009,7 @@ const $l = {
|
|
|
1009
1009
|
return { y: a, value: o };
|
|
1010
1010
|
}
|
|
1011
1011
|
function Nt(e) {
|
|
1012
|
-
const { left: a, top: o } =
|
|
1012
|
+
const { left: a, top: o } = O.value.getBoundingClientRect(), f = e.clientX - a;
|
|
1013
1013
|
if (y.value = (e.clientY - o) * 2, (y.value < l.value.top || y.value > l.value.bottom) && (y.value = null), f * 2 < l.value.left || f * 2 > l.value.right) {
|
|
1014
1014
|
Q.value = !1, h.value = null;
|
|
1015
1015
|
return;
|
|
@@ -1029,7 +1029,7 @@ const $l = {
|
|
|
1029
1029
|
})),
|
|
1030
1030
|
series: x.value,
|
|
1031
1031
|
config: t.value
|
|
1032
|
-
})) ?
|
|
1032
|
+
})) ? _.value = g({
|
|
1033
1033
|
seriesIndex: h.value,
|
|
1034
1034
|
datapoint: x.value.map((L) => ({
|
|
1035
1035
|
shape: L.shape || null,
|
|
@@ -1040,7 +1040,7 @@ const $l = {
|
|
|
1040
1040
|
})),
|
|
1041
1041
|
series: x.value,
|
|
1042
1042
|
config: t.value
|
|
1043
|
-
}) : (t.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[h.value] && (Y += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${t.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[h.value]}</div>`), Y += wt.value.join(""),
|
|
1043
|
+
}) : (t.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[h.value] && (Y += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${t.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[h.value]}</div>`), Y += wt.value.join(""), _.value = Y), re.value = !1;
|
|
1044
1044
|
}
|
|
1045
1045
|
te(() => h.value, (e) => {
|
|
1046
1046
|
Re();
|
|
@@ -1056,19 +1056,19 @@ const $l = {
|
|
|
1056
1056
|
G.value = !0, re.value = !0, Re();
|
|
1057
1057
|
});
|
|
1058
1058
|
function Yt() {
|
|
1059
|
-
Q.value = !1, h.value = null,
|
|
1059
|
+
Q.value = !1, h.value = null, _.value = "", y.value = null, we();
|
|
1060
1060
|
}
|
|
1061
1061
|
const Oe = i(null), De = i(null);
|
|
1062
|
-
|
|
1062
|
+
_e(() => {
|
|
1063
1063
|
He();
|
|
1064
1064
|
});
|
|
1065
1065
|
function He() {
|
|
1066
1066
|
if (ol(m.dataset) ? rl({
|
|
1067
1067
|
componentName: "VueUiXyCanvas",
|
|
1068
1068
|
type: "dataset"
|
|
1069
|
-
}) :
|
|
1070
|
-
const e =
|
|
1071
|
-
const { width: a, height: o } =
|
|
1069
|
+
}) : O.value && (u.value = O.value.getContext("2d", { willReadFrequently: !0 })), t.value.responsive) {
|
|
1070
|
+
const e = cl(() => {
|
|
1071
|
+
const { width: a, height: o } = vl({
|
|
1072
1072
|
chart: ae.value,
|
|
1073
1073
|
title: t.value.style.chart.title.text ? Te.value : null,
|
|
1074
1074
|
legend: t.value.style.chart.legend.show ? Fe.value : null,
|
|
@@ -1083,8 +1083,8 @@ const $l = {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
De.value = new ResizeObserver((e) => {
|
|
1085
1085
|
for (const a of e)
|
|
1086
|
-
a.contentBoxSize &&
|
|
1087
|
-
}), De.value.observe(
|
|
1086
|
+
a.contentBoxSize && Z.value && (G.value = !0, Re());
|
|
1087
|
+
}), De.value.observe(Z.value), lt();
|
|
1088
1088
|
}
|
|
1089
1089
|
bt(() => {
|
|
1090
1090
|
De.value && De.value.disconnect(), Oe.value && Oe.value.disconnect();
|
|
@@ -1092,10 +1092,10 @@ const $l = {
|
|
|
1092
1092
|
function ot(e) {
|
|
1093
1093
|
w("selectLegend", x.value.find((a) => a.absoluteIndex === e)), E.value.includes(e) ? E.value = E.value.filter((a) => a !== e) : E.value.push(e), G.value = !0, Re();
|
|
1094
1094
|
}
|
|
1095
|
-
const rt =
|
|
1095
|
+
const rt = T(() => pe.value.map((e, a) => ({
|
|
1096
1096
|
...e,
|
|
1097
1097
|
name: e.name,
|
|
1098
|
-
color: ft(e.color) || Ke.value[a] ||
|
|
1098
|
+
color: ft(e.color) || Ke.value[a] || he[a] || he[a % he.length],
|
|
1099
1099
|
shape: e.shape || "circle",
|
|
1100
1100
|
prefix: e.prefix || "",
|
|
1101
1101
|
suffix: e.suffix || "",
|
|
@@ -1105,14 +1105,14 @@ const $l = {
|
|
|
1105
1105
|
opacity: E.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
1106
1106
|
segregate: () => ot(e.absoluteIndex),
|
|
1107
1107
|
isSegregated: E.value.includes(e.absoluteIndex)
|
|
1108
|
-
}))), Xt =
|
|
1108
|
+
}))), Xt = T(() => ({
|
|
1109
1109
|
cy: "donut-div-legend",
|
|
1110
1110
|
backgroundColor: t.value.style.chart.legend.backgroundColor,
|
|
1111
1111
|
color: t.value.style.chart.legend.color,
|
|
1112
1112
|
fontSize: t.value.style.chart.legend.fontSize,
|
|
1113
1113
|
paddingBottom: 12,
|
|
1114
1114
|
fontWeight: t.value.style.chart.legend.bold ? "bold" : ""
|
|
1115
|
-
})), Ee =
|
|
1115
|
+
})), Ee = T(() => {
|
|
1116
1116
|
const e = [""].concat(x.value.map((p) => p.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
1117
1117
|
let a = [];
|
|
1118
1118
|
for (let p = 0; p < j.value; p += 1) {
|
|
@@ -1133,7 +1133,7 @@ const $l = {
|
|
|
1133
1133
|
breakpoint: t.value.table.responsiveBreakpoint
|
|
1134
1134
|
}, f = [t.value.table.columnNames.period].concat(x.value.map((p) => p.name)).concat(t.value.table.columnNames.total);
|
|
1135
1135
|
return { head: e, body: a.slice(0, r.value.end - r.value.start), config: o, colNames: f };
|
|
1136
|
-
}), nt =
|
|
1136
|
+
}), nt = T(() => {
|
|
1137
1137
|
if (x.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1138
1138
|
const e = x.value.map((o) => ({
|
|
1139
1139
|
label: o.name,
|
|
@@ -1161,10 +1161,10 @@ const $l = {
|
|
|
1161
1161
|
function it() {
|
|
1162
1162
|
s.value.showDataLabels = !s.value.showDataLabels;
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function ct() {
|
|
1165
1165
|
s.value.stacked = !s.value.stacked;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function vt() {
|
|
1168
1168
|
s.value.showTooltip = !s.value.showTooltip;
|
|
1169
1169
|
}
|
|
1170
1170
|
const Ae = i(!1);
|
|
@@ -1178,17 +1178,17 @@ const $l = {
|
|
|
1178
1178
|
generateImage: Je,
|
|
1179
1179
|
toggleTable: ut,
|
|
1180
1180
|
toggleLabels: it,
|
|
1181
|
-
toggleStack:
|
|
1182
|
-
toggleTooltip:
|
|
1181
|
+
toggleStack: ct,
|
|
1182
|
+
toggleTooltip: vt,
|
|
1183
1183
|
toggleAnnotator: Ue
|
|
1184
1184
|
}), (e, a) => (C(), X("div", {
|
|
1185
1185
|
style: W(`width:100%; position:relative; ${t.value.responsive ? "height: 100%" : ""}`),
|
|
1186
1186
|
ref_key: "xy",
|
|
1187
1187
|
ref: ae,
|
|
1188
1188
|
id: `xy_canvas_${V.value}`,
|
|
1189
|
-
class:
|
|
1190
|
-
onMouseenter: a[5] || (a[5] = () => D(
|
|
1191
|
-
onMouseleave: a[6] || (a[6] = () => D(
|
|
1189
|
+
class: fe(`vue-ui-donut ${ge.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1190
|
+
onMouseenter: a[5] || (a[5] = () => D(P)(!0)),
|
|
1191
|
+
onMouseleave: a[6] || (a[6] = () => D(P)(!1))
|
|
1192
1192
|
}, [
|
|
1193
1193
|
t.value.style.chart.title.text ? (C(), X("div", {
|
|
1194
1194
|
key: 0,
|
|
@@ -1197,7 +1197,7 @@ const $l = {
|
|
|
1197
1197
|
style: W(`width:100%;background:${t.value.style.chart.backgroundColor};`)
|
|
1198
1198
|
}, [
|
|
1199
1199
|
(C(), ue(yl, {
|
|
1200
|
-
key: `title_${
|
|
1200
|
+
key: `title_${c.value}`,
|
|
1201
1201
|
config: {
|
|
1202
1202
|
title: {
|
|
1203
1203
|
cy: "xy-canvas-title",
|
|
@@ -1210,7 +1210,7 @@ const $l = {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
}, null, 8, ["config"]))
|
|
1212
1212
|
], 4)) : le("", !0),
|
|
1213
|
-
t.value.userOptions.show && k.value && (D(
|
|
1213
|
+
t.value.userOptions.show && k.value && (D(R) || D(F)) ? (C(), ue(ml, {
|
|
1214
1214
|
ref: "details",
|
|
1215
1215
|
key: `user_option_${Ce.value}`,
|
|
1216
1216
|
backgroundColor: t.value.style.chart.backgroundColor,
|
|
@@ -1226,7 +1226,7 @@ const $l = {
|
|
|
1226
1226
|
hasStack: $.dataset.length > 1 && t.value.userOptions.buttons.stack,
|
|
1227
1227
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
1228
1228
|
hasTable: r.value.end - r.value.start < 200 && t.value.userOptions.buttons.table,
|
|
1229
|
-
isFullscreen:
|
|
1229
|
+
isFullscreen: ge.value,
|
|
1230
1230
|
isTooltip: s.value.showTooltip,
|
|
1231
1231
|
isStacked: s.value.stacked,
|
|
1232
1232
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
@@ -1240,87 +1240,94 @@ const $l = {
|
|
|
1240
1240
|
onGenerateImage: D(Je),
|
|
1241
1241
|
onToggleTable: ut,
|
|
1242
1242
|
onToggleLabels: it,
|
|
1243
|
-
onToggleStack:
|
|
1244
|
-
onToggleTooltip:
|
|
1243
|
+
onToggleStack: ct,
|
|
1244
|
+
onToggleTooltip: vt,
|
|
1245
1245
|
onToggleAnnotator: Ue,
|
|
1246
1246
|
style: W({
|
|
1247
|
-
visibility: D(
|
|
1247
|
+
visibility: D(R) ? D(F) ? "visible" : "hidden" : "visible"
|
|
1248
1248
|
})
|
|
1249
|
-
},
|
|
1249
|
+
}, _t({ _: 2 }, [
|
|
1250
|
+
e.$slots.menuIcon ? {
|
|
1251
|
+
name: "menuIcon",
|
|
1252
|
+
fn: z(({ isOpen: o, color: f }) => [
|
|
1253
|
+
M(e.$slots, "menuIcon", ve(de({ isOpen: o, color: f })), void 0, !0)
|
|
1254
|
+
]),
|
|
1255
|
+
key: "0"
|
|
1256
|
+
} : void 0,
|
|
1250
1257
|
e.$slots.optionTooltip ? {
|
|
1251
1258
|
name: "optionTooltip",
|
|
1252
1259
|
fn: z(() => [
|
|
1253
|
-
|
|
1260
|
+
M(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
1254
1261
|
]),
|
|
1255
|
-
key: "
|
|
1262
|
+
key: "1"
|
|
1256
1263
|
} : void 0,
|
|
1257
1264
|
e.$slots.optionPdf ? {
|
|
1258
1265
|
name: "optionPdf",
|
|
1259
1266
|
fn: z(() => [
|
|
1260
|
-
|
|
1267
|
+
M(e.$slots, "optionPdf", {}, void 0, !0)
|
|
1261
1268
|
]),
|
|
1262
|
-
key: "
|
|
1269
|
+
key: "2"
|
|
1263
1270
|
} : void 0,
|
|
1264
1271
|
e.$slots.optionCsv ? {
|
|
1265
1272
|
name: "optionCsv",
|
|
1266
1273
|
fn: z(() => [
|
|
1267
|
-
|
|
1274
|
+
M(e.$slots, "optionCsv", {}, void 0, !0)
|
|
1268
1275
|
]),
|
|
1269
|
-
key: "
|
|
1276
|
+
key: "3"
|
|
1270
1277
|
} : void 0,
|
|
1271
1278
|
e.$slots.optionImg ? {
|
|
1272
1279
|
name: "optionImg",
|
|
1273
1280
|
fn: z(() => [
|
|
1274
|
-
|
|
1281
|
+
M(e.$slots, "optionImg", {}, void 0, !0)
|
|
1275
1282
|
]),
|
|
1276
|
-
key: "
|
|
1283
|
+
key: "4"
|
|
1277
1284
|
} : void 0,
|
|
1278
1285
|
e.$slots.optionTable ? {
|
|
1279
1286
|
name: "optionTable",
|
|
1280
1287
|
fn: z(() => [
|
|
1281
|
-
|
|
1288
|
+
M(e.$slots, "optionTable", {}, void 0, !0)
|
|
1282
1289
|
]),
|
|
1283
|
-
key: "
|
|
1290
|
+
key: "5"
|
|
1284
1291
|
} : void 0,
|
|
1285
1292
|
e.$slots.optionLabels ? {
|
|
1286
1293
|
name: "optionLabels",
|
|
1287
1294
|
fn: z(() => [
|
|
1288
|
-
|
|
1295
|
+
M(e.$slots, "optionLabels", {}, void 0, !0)
|
|
1289
1296
|
]),
|
|
1290
|
-
key: "
|
|
1297
|
+
key: "6"
|
|
1291
1298
|
} : void 0,
|
|
1292
1299
|
e.$slots.optionStack ? {
|
|
1293
1300
|
name: "optionStack",
|
|
1294
1301
|
fn: z(() => [
|
|
1295
|
-
|
|
1302
|
+
M(e.$slots, "optionStack", {}, void 0, !0)
|
|
1296
1303
|
]),
|
|
1297
|
-
key: "
|
|
1304
|
+
key: "7"
|
|
1298
1305
|
} : void 0,
|
|
1299
1306
|
e.$slots.optionFullscreen ? {
|
|
1300
1307
|
name: "optionFullscreen",
|
|
1301
1308
|
fn: z(({ toggleFullscreen: o, isFullscreen: f }) => [
|
|
1302
|
-
|
|
1309
|
+
M(e.$slots, "optionFullscreen", ve(de({ toggleFullscreen: o, isFullscreen: f })), void 0, !0)
|
|
1303
1310
|
]),
|
|
1304
|
-
key: "
|
|
1311
|
+
key: "8"
|
|
1305
1312
|
} : void 0,
|
|
1306
1313
|
e.$slots.optionAnnotator ? {
|
|
1307
1314
|
name: "optionAnnotator",
|
|
1308
1315
|
fn: z(({ toggleAnnotator: o, isAnnotator: f }) => [
|
|
1309
|
-
|
|
1316
|
+
M(e.$slots, "optionAnnotator", ve(de({ toggleAnnotator: o, isAnnotator: f })), void 0, !0)
|
|
1310
1317
|
]),
|
|
1311
|
-
key: "
|
|
1318
|
+
key: "9"
|
|
1312
1319
|
} : void 0
|
|
1313
1320
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : le("", !0),
|
|
1314
1321
|
U("div", {
|
|
1315
1322
|
class: "vue-ui-xy-canvas",
|
|
1316
1323
|
style: W(`position: relative; aspect-ratio: ${Ge.value}`),
|
|
1317
1324
|
ref_key: "container",
|
|
1318
|
-
ref:
|
|
1325
|
+
ref: Z
|
|
1319
1326
|
}, [
|
|
1320
1327
|
k.value ? (C(), X("canvas", {
|
|
1321
1328
|
key: 0,
|
|
1322
1329
|
ref_key: "canvas",
|
|
1323
|
-
ref:
|
|
1330
|
+
ref: O,
|
|
1324
1331
|
style: { width: "100%", height: "100%" },
|
|
1325
1332
|
onMousemove: a[0] || (a[0] = (o) => Nt(o)),
|
|
1326
1333
|
onMouseleave: Yt
|
|
@@ -1352,17 +1359,17 @@ const $l = {
|
|
|
1352
1359
|
borderWidth: t.value.style.chart.tooltip.borderWidth,
|
|
1353
1360
|
position: t.value.style.chart.tooltip.position,
|
|
1354
1361
|
offsetY: t.value.style.chart.tooltip.offsetY,
|
|
1355
|
-
parent: D(
|
|
1356
|
-
content:
|
|
1357
|
-
isFullscreen:
|
|
1362
|
+
parent: D(O),
|
|
1363
|
+
content: _.value,
|
|
1364
|
+
isFullscreen: ge.value,
|
|
1358
1365
|
backgroundOpacity: t.value.style.chart.tooltip.backgroundOpacity,
|
|
1359
1366
|
isCustom: D(yt)(t.value.style.chart.tooltip.customFormat)
|
|
1360
1367
|
}, {
|
|
1361
1368
|
"tooltip-before": z(() => [
|
|
1362
|
-
|
|
1369
|
+
M(e.$slots, "tooltip-before", ve(de({ ...oe.value })), void 0, !0)
|
|
1363
1370
|
]),
|
|
1364
1371
|
"tooltip-after": z(() => [
|
|
1365
|
-
|
|
1372
|
+
M(e.$slots, "tooltip-after", ve(de({ ...oe.value })), void 0, !0)
|
|
1366
1373
|
]),
|
|
1367
1374
|
_: 3
|
|
1368
1375
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
|
|
@@ -1375,8 +1382,8 @@ const $l = {
|
|
|
1375
1382
|
}, [
|
|
1376
1383
|
t.value.style.chart.zoom.show && j.value > 1 ? (C(), ue(gl, {
|
|
1377
1384
|
ref_key: "slicerComponent",
|
|
1378
|
-
ref:
|
|
1379
|
-
key: `slicer_${
|
|
1385
|
+
ref: me,
|
|
1386
|
+
key: `slicer_${ye.value}`,
|
|
1380
1387
|
background: t.value.style.chart.zoom.color,
|
|
1381
1388
|
borderColor: t.value.style.chart.backgroundColor,
|
|
1382
1389
|
fontSize: t.value.style.chart.zoom.fontSize,
|
|
@@ -1401,7 +1408,7 @@ const $l = {
|
|
|
1401
1408
|
onReset: tt
|
|
1402
1409
|
}, {
|
|
1403
1410
|
"reset-action": z(({ reset: o }) => [
|
|
1404
|
-
|
|
1411
|
+
M(e.$slots, "reset-action", ve(de({ reset: o })), void 0, !0)
|
|
1405
1412
|
]),
|
|
1406
1413
|
_: 3
|
|
1407
1414
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : le("", !0)
|
|
@@ -1413,7 +1420,7 @@ const $l = {
|
|
|
1413
1420
|
t.value.style.chart.legend.show && k.value ? (C(), ue(fl, {
|
|
1414
1421
|
legendSet: rt.value,
|
|
1415
1422
|
config: Xt.value,
|
|
1416
|
-
key: `legend_${
|
|
1423
|
+
key: `legend_${v.value}`,
|
|
1417
1424
|
onClickMarker: a[3] || (a[3] = ({ i: o }) => ot(o))
|
|
1418
1425
|
}, {
|
|
1419
1426
|
item: z(({ legend: o, index: f }) => [
|
|
@@ -1423,13 +1430,13 @@ const $l = {
|
|
|
1423
1430
|
}, ht(o.name), 13, Ol)
|
|
1424
1431
|
]),
|
|
1425
1432
|
_: 1
|
|
1426
|
-
}, 8, ["legendSet", "config"])) :
|
|
1433
|
+
}, 8, ["legendSet", "config"])) : M(e.$slots, "legend", {
|
|
1427
1434
|
key: 1,
|
|
1428
1435
|
legend: rt.value
|
|
1429
1436
|
}, void 0, !0)
|
|
1430
1437
|
], 512),
|
|
1431
1438
|
e.$slots.watermark ? (C(), X("div", Dl, [
|
|
1432
|
-
|
|
1439
|
+
M(e.$slots, "watermark", ve(de({ isPrinting: D(je) || D(qe) })), void 0, !0)
|
|
1433
1440
|
])) : le("", !0),
|
|
1434
1441
|
e.$slots.source ? (C(), X("div", {
|
|
1435
1442
|
key: 3,
|
|
@@ -1437,7 +1444,7 @@ const $l = {
|
|
|
1437
1444
|
ref: d,
|
|
1438
1445
|
dir: "auto"
|
|
1439
1446
|
}, [
|
|
1440
|
-
|
|
1447
|
+
M(e.$slots, "source", {}, void 0, !0)
|
|
1441
1448
|
], 512)) : le("", !0),
|
|
1442
1449
|
r.value.end - r.value.start < 200 ? (C(), ue(bl, {
|
|
1443
1450
|
key: 4,
|
|
@@ -1486,7 +1493,7 @@ const $l = {
|
|
|
1486
1493
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : le("", !0)
|
|
1487
1494
|
], 46, Rl));
|
|
1488
1495
|
}
|
|
1489
|
-
}, ta = /* @__PURE__ */ kt(Al, [["__scopeId", "data-v-
|
|
1496
|
+
}, ta = /* @__PURE__ */ kt(Al, [["__scopeId", "data-v-73b06dd8"]]);
|
|
1490
1497
|
export {
|
|
1491
1498
|
ta as default
|
|
1492
1499
|
};
|