vue-data-ui 2.6.52-beta.0 → 2.6.52-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-i892KlJJ.cjs → Arrow-BF7F6sto.cjs} +1 -1
- package/dist/{Arrow-BrgzjEu9.js → Arrow-HvSX06YB.js} +1 -1
- package/dist/{BaseIcon-OIGwOnCM.cjs → BaseIcon-BHV6_9f0.cjs} +1 -1
- package/dist/{BaseIcon-1Kh1hniD.js → BaseIcon-CGPQ9ViT.js} +1 -1
- package/dist/{ColorPicker-Cxeiob9V.js → ColorPicker-B0cLcUYT.js} +3 -3
- package/dist/{ColorPicker-C5fe9E7-.cjs → ColorPicker-CxZjwrPN.cjs} +1 -1
- package/dist/{DataTable-DJyyRRlW.cjs → DataTable-BSLuvTjd.cjs} +1 -1
- package/dist/{DataTable-C4Zf4XLF.js → DataTable-Cx-aIyRB.js} +2 -2
- package/dist/{Legend-Dx4tku_Q.cjs → Legend-BTkrJ6Mw.cjs} +1 -1
- package/dist/{Legend-1pyX_J1z.js → Legend-CozCBin3.js} +2 -2
- package/dist/PackageVersion-Bq8twEq5.cjs +1 -0
- package/dist/{PackageVersion-BPpaTwrM.js → PackageVersion-ERAn-NEr.js} +3 -3
- package/dist/{PenAndPaper-C0I2pjPq.cjs → PenAndPaper-B_SziTIt.cjs} +1 -1
- package/dist/{PenAndPaper-B21RAf9P.js → PenAndPaper-DoJYupkg.js} +3 -3
- package/dist/{Shape-BrtnGizi.js → Shape-DAkdLd-S.js} +1 -1
- package/dist/{Shape-Bn0OAR4-.cjs → Shape-hGwgAhmk.cjs} +1 -1
- package/dist/{Slicer-BeRcAG--.js → Slicer-Dnk2U8OE.js} +2 -2
- package/dist/{Slicer-BrIoq1c-.cjs → Slicer-w7s3nDJD.cjs} +1 -1
- package/dist/{Title-CcW9kRtT.cjs → Title-Bu85KXaH.cjs} +1 -1
- package/dist/{Title-rbJs8Cs3.js → Title-CXHmtQWr.js} +1 -1
- package/dist/{Tooltip-DZGBhn8l.js → Tooltip-CZmJRZuC.js} +1 -1
- package/dist/{Tooltip-BzDUupFB.cjs → Tooltip-CxcoM80o.cjs} +1 -1
- package/dist/dom-to-png-BR6qEUVi.cjs +3 -0
- package/dist/dom-to-png-Cn-sHkKZ.js +243 -0
- package/dist/{img-DN4K4BLQ.cjs → img-BGXxJyOt.cjs} +1 -1
- package/dist/{img-hntVQbmL.js → img-aj1j4szA.js} +1 -1
- package/dist/{index-CuIvJLJx.cjs → index-BbZ_Gs6B.cjs} +1 -1
- package/dist/{index-DYjLUPYr.js → index-C5jV0gYP.js} +1 -1
- package/dist/{pdf-ClzzT4YP.cjs → pdf-Bus_4WFl.cjs} +1 -1
- package/dist/{pdf-BwewXrne.js → pdf-CunTbc4Y.js} +1 -1
- package/dist/{useNestedProp-DPpLpUNG.js → useNestedProp-B53RNxmR.js} +1 -1
- package/dist/{useNestedProp-B3OcLUMU.cjs → useNestedProp-BrQviw1a.cjs} +1 -1
- package/dist/{usePrinter-BwwdT1Uh.cjs → usePrinter-ciX_b-Gk.cjs} +1 -1
- package/dist/{usePrinter-GOjH1UQd.js → usePrinter-x51389gT.js} +3 -3
- package/dist/{vue-data-ui-XSn3UFqP.cjs → vue-data-ui-BNvFY_cI.cjs} +1 -1
- package/dist/{vue-data-ui-CgYIT4l6.js → vue-data-ui-DVDZGCHq.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BFA4GviN.js → vue-ui-3d-bar-BnGS-vmj.js} +9 -9
- package/dist/{vue-ui-3d-bar-d2lzwwD0.cjs → vue-ui-3d-bar-CbLlsCW5.cjs} +1 -1
- package/dist/{vue-ui-accordion-zFcofzrb.js → vue-ui-accordion-B433S6HR.js} +3 -3
- package/dist/{vue-ui-accordion-ZlcsLKVn.cjs → vue-ui-accordion-Dt2wYRuB.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-HYnV6m7j.js → vue-ui-age-pyramid-CxIRwIBU.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BrS-QXEl.cjs → vue-ui-age-pyramid-DcDB5IVy.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bnl6xoGx.js → vue-ui-annotator-Bq8yxdQW.js} +2 -2
- package/dist/{vue-ui-annotator-DpcBNv4G.cjs → vue-ui-annotator-CuHL3DP9.cjs} +1 -1
- package/dist/{vue-ui-bullet-BMAoQg9X.js → vue-ui-bullet-Cs-IBFz8.js} +8 -8
- package/dist/{vue-ui-bullet-CUg-Tqm5.cjs → vue-ui-bullet-Diq5OTR-.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BB_TlvHs.cjs → vue-ui-candlestick-CgiABTZF.cjs} +1 -1
- package/dist/{vue-ui-candlestick-D99-OMzs.js → vue-ui-candlestick-DZ_TLJUx.js} +11 -11
- package/dist/{vue-ui-carousel-table-BLMby8AI.cjs → vue-ui-carousel-table-DM4GDdXv.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Cj28UhyG.js → vue-ui-carousel-table-eDCn4QFp.js} +4 -4
- package/dist/{vue-ui-chestnut-CK_b_ta8.cjs → vue-ui-chestnut-BEIOt4Qn.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BcHI2rpx.js → vue-ui-chestnut-muWJ3Phb.js} +8 -8
- package/dist/{vue-ui-circle-pack-BYhg53UE.js → vue-ui-circle-pack-C0OmTKDq.js} +9 -9
- package/dist/{vue-ui-circle-pack-ClzkEDGg.cjs → vue-ui-circle-pack-D6c-xeXj.cjs} +1 -1
- package/dist/{vue-ui-cursor-DkcChdeb.js → vue-ui-cursor-BGY7FwoD.js} +2 -2
- package/dist/{vue-ui-cursor-B3u3ldcD.cjs → vue-ui-cursor-Dm3YpEud.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BdnlFgl5.js → vue-ui-dashboard-BrbwOfLG.js} +3 -3
- package/dist/{vue-ui-dashboard-Nt0DdH9L.cjs → vue-ui-dashboard-Cqnb6JRd.cjs} +1 -1
- package/dist/{vue-ui-digits-D_BKH_j3.js → vue-ui-digits-CKm1tHRX.js} +2 -2
- package/dist/{vue-ui-digits-LJ5NoBDi.cjs → vue-ui-digits-DSSnOiDt.cjs} +1 -1
- package/dist/{vue-ui-donut-kRhrhvjt.cjs → vue-ui-donut-DgY2Pv2G.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BtnTa4le.cjs → vue-ui-donut-evolution-WGgUBksT.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-B_aFgOze.js → vue-ui-donut-evolution-zUS8c8Gx.js} +11 -11
- package/dist/{vue-ui-donut-DKIAm-ME.js → vue-ui-donut-o-xvWQzi.js} +12 -12
- package/dist/{vue-ui-dumbbell-jzYimGnw.js → vue-ui-dumbbell-CT4xQTlK.js} +10 -10
- package/dist/{vue-ui-dumbbell-BFYVlYa4.cjs → vue-ui-dumbbell-D84XXy5-.cjs} +1 -1
- package/dist/{vue-ui-flow-BuXSGu-i.cjs → vue-ui-flow-C78BToPY.cjs} +1 -1
- package/dist/{vue-ui-flow-CqihZo8O.js → vue-ui-flow-DpysIdWd.js} +9 -9
- package/dist/{vue-ui-funnel-CpaBBSbU.cjs → vue-ui-funnel-CSAA4T_f.cjs} +1 -1
- package/dist/{vue-ui-funnel-B9OFgkeR.js → vue-ui-funnel-C_yHlBiT.js} +9 -9
- package/dist/{vue-ui-galaxy-FOIZdAZe.js → vue-ui-galaxy-3J22f_Rx.js} +11 -11
- package/dist/{vue-ui-galaxy-BCQr-U2u.cjs → vue-ui-galaxy-C-lYFE_y.cjs} +1 -1
- package/dist/{vue-ui-gauge-B42XWwB2.js → vue-ui-gauge-BXm3eIq7.js} +7 -7
- package/dist/{vue-ui-gauge-kZxueLp8.cjs → vue-ui-gauge-CU5NSvgB.cjs} +1 -1
- package/dist/{vue-ui-gizmo-DNzFp5mg.js → vue-ui-gizmo-Bwn4YdMS.js} +3 -3
- package/dist/{vue-ui-gizmo-DtQnmFnB.cjs → vue-ui-gizmo-Dmt0cSwV.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DwTkeSCE.cjs → vue-ui-heatmap-BFPqfv1H.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CBahWBfm.js → vue-ui-heatmap-DYanwv8_.js} +10 -10
- package/dist/{vue-ui-history-plot-BLZfokqh.cjs → vue-ui-history-plot-BzalfAFA.cjs} +1 -1
- package/dist/{vue-ui-history-plot-JF7Cxj70.js → vue-ui-history-plot-D44RcSl2.js} +11 -11
- package/dist/{vue-ui-kpi-Dd7_MpTH.js → vue-ui-kpi-CR2ySPUj.js} +3 -3
- package/dist/{vue-ui-kpi-DgYNzLPE.cjs → vue-ui-kpi-xO9lAXBq.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-AnEvVAeN.cjs → vue-ui-mini-loader-CWdVmp1u.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CYlUH9YB.js → vue-ui-mini-loader-CbhDUqn7.js} +2 -2
- package/dist/{vue-ui-molecule-DenzPBhZ.cjs → vue-ui-molecule-Cdz9srGt.cjs} +1 -1
- package/dist/{vue-ui-molecule-CwjSX0qp.js → vue-ui-molecule-DXAaN0Y_.js} +11 -11
- package/dist/{vue-ui-mood-radar-B_ZdNRq7.js → vue-ui-mood-radar-C6qccprB.js} +11 -11
- package/dist/{vue-ui-mood-radar-oZi1r3t2.cjs → vue-ui-mood-radar-CSp8uyiA.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-1iw0Uhgn.cjs → vue-ui-nested-donuts-CaFuizwL.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-u6o7Mo5w.js → vue-ui-nested-donuts-D-q6YCD9.js} +11 -11
- package/dist/{vue-ui-onion-BIgB8q-o.js → vue-ui-onion-BgUADm12.js} +11 -11
- package/dist/{vue-ui-onion-nSs841wa.cjs → vue-ui-onion-BiKYsY4y.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CLZbLwv6.cjs → vue-ui-parallel-coordinate-plot-CNMs8FBC.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CzdztQbb.js → vue-ui-parallel-coordinate-plot-ChhO9dQJ.js} +12 -12
- package/dist/{vue-ui-quadrant-Dqj0kKDK.js → vue-ui-quadrant-BQ17QNJj.js} +12 -12
- package/dist/{vue-ui-quadrant-DVJk4jVY.cjs → vue-ui-quadrant-BfhfJdZn.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-DseczpPU.cjs → vue-ui-quick-chart-D_EGfxq4.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-C16V9Aae.js → vue-ui-quick-chart-lzn0laC5.js} +9 -9
- package/dist/{vue-ui-radar-Db7iB_Qj.js → vue-ui-radar-DRVVurh5.js} +12 -12
- package/dist/{vue-ui-radar-BAeIHJpy.cjs → vue-ui-radar-KZwIZmD8.cjs} +1 -1
- package/dist/{vue-ui-rating-D0Dx6ZXa.cjs → vue-ui-rating-BJ-SQsdy.cjs} +1 -1
- package/dist/{vue-ui-rating-JEdFnT3W.js → vue-ui-rating-CU4yEQC0.js} +2 -2
- package/dist/{vue-ui-relation-circle-gakSZ4S6.js → vue-ui-relation-circle-A8PkHtMG.js} +7 -7
- package/dist/{vue-ui-relation-circle-DQna8U5y.cjs → vue-ui-relation-circle-BtLAIDto.cjs} +1 -1
- package/dist/{vue-ui-rings-D5n6DT_A.js → vue-ui-rings-CSujN_-4.js} +12 -12
- package/dist/{vue-ui-rings-DtRyfbLl.cjs → vue-ui-rings-H9HD-T0W.cjs} +1 -1
- package/dist/{vue-ui-scatter-Bi6D12HK.cjs → vue-ui-scatter-D-9iV0G4.cjs} +1 -1
- package/dist/{vue-ui-scatter-PREHAey0.js → vue-ui-scatter-DgWirC6j.js} +12 -12
- package/dist/{vue-ui-skeleton-Bvgys0sE.js → vue-ui-skeleton-1y1C_7i4.js} +3 -3
- package/dist/{vue-ui-skeleton-B3iHjtI-.cjs → vue-ui-skeleton-BqA3NAD5.cjs} +1 -1
- package/dist/{vue-ui-smiley-CPZZHQxU.cjs → vue-ui-smiley-46XBb_YQ.cjs} +1 -1
- package/dist/{vue-ui-smiley-Bbz2pMRt.js → vue-ui-smiley-CNuvG0ml.js} +2 -2
- package/dist/{vue-ui-spark-trend-OSzSYi-e.js → vue-ui-spark-trend-BGbAi0RV.js} +5 -5
- package/dist/{vue-ui-spark-trend-BQJgJLH1.cjs → vue-ui-spark-trend-CmuBx-Fl.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CTBKE2AF.js → vue-ui-sparkbar-BcHzYifK.js} +4 -4
- package/dist/{vue-ui-sparkbar-CMXau9-B.cjs → vue-ui-sparkbar-Bf3_a-v1.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Cut-q8bg.js → vue-ui-sparkgauge-BIUFQmLZ.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DXGiSj1v.cjs → vue-ui-sparkgauge-dnKYtnfB.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-D0JFcRmB.cjs → vue-ui-sparkhistogram-D9C2kZI1.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bc9284wI.js → vue-ui-sparkhistogram-Xob-4nnY.js} +5 -5
- package/dist/{vue-ui-sparkline-BjuntN3v.cjs → vue-ui-sparkline-C5s188At.cjs} +1 -1
- package/dist/{vue-ui-sparkline-JtLdV2lv.js → vue-ui-sparkline-PNuFvKck.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-Dnb7y-aL.js → vue-ui-sparkstackbar-Ba5Te6j0.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-UHMiNIcM.cjs → vue-ui-sparkstackbar-LrdIy7AF.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Do4pbvT_.js → vue-ui-stackbar-BvmqqRia.js} +13 -13
- package/dist/{vue-ui-stackbar-B3tfGGNG.cjs → vue-ui-stackbar-C6o-lO4T.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BL_QIbRg.cjs → vue-ui-strip-plot-BbgEmw7C.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DpEyBQVy.js → vue-ui-strip-plot-CwTJ_BN7.js} +11 -11
- package/dist/{vue-ui-table-DOy0Vino.js → vue-ui-table-B4UOgUQ2.js} +1 -1
- package/dist/{vue-ui-table-Bo6YTb5z.cjs → vue-ui-table-D2u0UsOH.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BBtNwXmc.js → vue-ui-table-heatmap-BxmNfoZq.js} +4 -4
- package/dist/{vue-ui-table-heatmap-BEyXNXkX.cjs → vue-ui-table-heatmap-grIziv8w.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CjOt6yUn.cjs → vue-ui-table-sparkline-DnNsqAhi.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-CgMtPPVk.js → vue-ui-table-sparkline-mrQ_96SU.js} +5 -5
- package/dist/{vue-ui-thermometer-mxQsDV23.js → vue-ui-thermometer-BMZVt9HQ.js} +7 -7
- package/dist/{vue-ui-thermometer-DDzJGu-3.cjs → vue-ui-thermometer-CRJSkPXD.cjs} +1 -1
- package/dist/{vue-ui-timer-py5C5kre.js → vue-ui-timer-CeF7em99.js} +5 -5
- package/dist/{vue-ui-timer-BoHc9W-g.cjs → vue-ui-timer-nPr6WNXl.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DfzjVsQy.cjs → vue-ui-tiremarks-Dxh3bRbx.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-cOumsgMp.js → vue-ui-tiremarks-tm7tFU8g.js} +7 -7
- package/dist/{vue-ui-treemap-D52gL3aO.js → vue-ui-treemap-17OeMN4n.js} +12 -12
- package/dist/{vue-ui-treemap-BapuAvm_.cjs → vue-ui-treemap-Cy0nHCA2.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-B7xGhcol.js → vue-ui-vertical-bar-Cap7q3aM.js} +12 -12
- package/dist/{vue-ui-vertical-bar-tUOVTrhe.cjs → vue-ui-vertical-bar-DX6rIx5A.cjs} +1 -1
- package/dist/{vue-ui-waffle-Dl3103a6.js → vue-ui-waffle-DaPd7PtG.js} +12 -12
- package/dist/{vue-ui-waffle-D_eTTi3G.cjs → vue-ui-waffle-Jx_XF8Mj.cjs} +1 -1
- package/dist/{vue-ui-wheel-j5qr7c2B.js → vue-ui-wheel-DELdofLl.js} +7 -7
- package/dist/{vue-ui-wheel-BF-ixbP0.cjs → vue-ui-wheel-DjPG-sek.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-DzhX3V-T.cjs → vue-ui-word-cloud-4fHg5p47.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CDCHlEtX.js → vue-ui-word-cloud-BBiq9IZd.js} +10 -10
- package/dist/{vue-ui-xy-Cqd9LwBJ.js → vue-ui-xy-B7W-TmIH.js} +16 -16
- package/dist/{vue-ui-xy-DXp678aj.cjs → vue-ui-xy-DJUxdAN3.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-byW5VmrH.js → vue-ui-xy-canvas-BPzEieK6.js} +12 -12
- package/dist/{vue-ui-xy-canvas-DfYwxC06.cjs → vue-ui-xy-canvas-Ch0zwtyb.cjs} +1 -1
- package/package.json +1 -2
- package/dist/PackageVersion-Di08b2vs.cjs +0 -1
- package/dist/dom-to-png-BpstRczV.cjs +0 -1
- package/dist/dom-to-png-DFDQ3B5I.js +0 -119
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as i, computed as T, onMounted as Ge, 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 Gt, withCtx as z, renderSlot as M, normalizeProps as ve, guardReactiveProps as de, toDisplayString as ht, createTextVNode as _t } 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, ac as al, o as ol, e as nl, x as yt, q as rl, r as sl, y as ul, s as Me } from "./index-
|
|
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, ac as al, o as ol, e as nl, x as yt, q as rl, r as sl, y as ul, s as Me } from "./index-C5jV0gYP.js";
|
|
3
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-Cw4oZ8sQ.js";
|
|
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-
|
|
4
|
+
import { _ as hl } from "./Tooltip-CZmJRZuC.js";
|
|
5
|
+
import { L as fl } from "./Legend-CozCBin3.js";
|
|
6
|
+
import { _ as yl } from "./Title-CXHmtQWr.js";
|
|
7
|
+
import { S as gl } from "./Slicer-Dnk2U8OE.js";
|
|
8
|
+
import { u as pl, U as ml } from "./usePrinter-x51389gT.js";
|
|
9
|
+
import bl from "./vue-ui-accordion-B433S6HR.js";
|
|
10
|
+
import { D as xl } from "./DataTable-Cx-aIyRB.js";
|
|
11
|
+
import kl from "./vue-ui-skeleton-1y1C_7i4.js";
|
|
12
|
+
import { u as mt } from "./useNestedProp-B53RNxmR.js";
|
|
13
13
|
import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { u as Cl } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
-
import Ye from "./BaseIcon-
|
|
16
|
-
import { C as wl } from "./ColorPicker-
|
|
15
|
+
import Ye from "./BaseIcon-CGPQ9ViT.js";
|
|
16
|
+
import { C as wl } from "./ColorPicker-B0cLcUYT.js";
|
|
17
17
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const $l = {
|
|
19
19
|
class: /* @__PURE__ */ fe({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-CuIvJLJx.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-BzDUupFB.cjs"),dt=require("./Legend-Dx4tku_Q.cjs"),ht=require("./Title-CcW9kRtT.cjs"),ft=require("./Slicer-BrIoq1c-.cjs"),Ye=require("./usePrinter-BwwdT1Uh.cjs"),yt=require("./vue-ui-accordion-ZlcsLKVn.cjs"),pt=require("./DataTable-DJyyRRlW.cjs"),gt=require("./vue-ui-skeleton-B3iHjtI-.cjs"),He=require("./useNestedProp-B3OcLUMU.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-OIGwOnCM.cjs"),xt=require("./ColorPicker-C5fe9E7-.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),Z=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){Z.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),_=l.ref(null);function I(h){if(!_.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!_.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!_.value)return{x:0,y:0};const v=_.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(xt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:_,xmlns:l.unref(u.XMLNS),viewBox:Z.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-6e690e62"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),Z=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),_=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=mt.useUserOptionState({config:t.value}),{svgRef:B}=bt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas",options:t.value.userOptions.print}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-BbZ_Gs6B.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-CxcoM80o.cjs"),dt=require("./Legend-BTkrJ6Mw.cjs"),ht=require("./Title-Bu85KXaH.cjs"),ft=require("./Slicer-w7s3nDJD.cjs"),Ye=require("./usePrinter-ciX_b-Gk.cjs"),yt=require("./vue-ui-accordion-Dt2wYRuB.cjs"),pt=require("./DataTable-BSLuvTjd.cjs"),gt=require("./vue-ui-skeleton-BqA3NAD5.cjs"),He=require("./useNestedProp-BrQviw1a.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-BHV6_9f0.cjs"),xt=require("./ColorPicker-CxZjwrPN.cjs"),Xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),kt={class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0}),style:{padding:"0 !important"}},Lt=["disabled"],Ct=["xmlns","viewBox"],wt=["cx","cy","r","fill"],St=["d","stroke","stroke-width"],$t=["d","stroke","stroke-width"],zt={__name:"NonSvgPenAndPaper",props:{parent:{type:HTMLElement},backgroundColor:{type:String,default:"#FFFFFF"},color:{type:String,default:"#2D353C"},active:{type:Boolean,default:!1}},emits:["close"],setup($,{emit:be}){const X=$,xe=be,x=l.ref([]),D=l.ref([]),Z=l.ref("0 0 0 0"),V=l.ref(X.color),c=l.ref(1),k=l.computed(()=>u.lightenHexColor(X.color,.6));function F({width:h,height:v}){Z.value=`0 0 ${h} ${v}`}const U=l.ref(null);l.onMounted(()=>{l.nextTick(()=>{if(X.parent){U.value=new ResizeObserver(s=>{for(const d of s){const{width:g,height:C}=d.contentRect;F({width:g,height:C})}}),U.value.observe(X.parent);const{width:h,height:v}=X.parent.getBoundingClientRect();F({width:h,height:v})}})}),l.onBeforeUnmount(()=>{U.value&&U.value.disconnect()}),l.watch(()=>X.parent,h=>{if(!h)return;const{width:v,height:s}=X.parent.getBoundingClientRect();F({width:v,height:s})},{immediate:!0});const f=l.ref(!1),A=l.ref(""),_=l.ref(null);function I(h){if(!_.value)return;f.value=!0;const{x:v,y:s}=re(h);A.value=`M ${v} ${s}`}function q(h){if(!f.value||!_.value)return;const{x:v,y:s}=re(h);A.value+=` ${v} ${s}`}function Y(h){const v=h.trim().split(/\s+/);if(v.length<4)return h;const s=v.slice(1).map(Number);if(s.length%2!==0)return h;const d=G(s),g=[`M ${d[0]} ${d[1]}`];for(let E=2;E<d.length-2;E+=2){const t=d[E-2],M=d[E-1],P=d[E],T=d[E+1],B=(t+P)/2,j=(M+T)/2;g.push(`Q ${t} ${M} ${B} ${j}`)}const C=d[d.length-2],S=d[d.length-1];return g.push(`L ${C} ${S}`),g.join(" ")}function G(h,v=1){const s=[...h];for(let d=2;d<h.length-2;d+=2){const g=h[d],C=h[d+1],S=h[d-2],E=h[d-1],t=h[d+2],M=h[d+3];s[d]=g+v*((S+t)/2-g),s[d+1]=C+v*((E+M)/2-C)}return s}function oe(h){const v=h.trim().split(/\s+/);let s="",d="",g=null,C=null;for(let S=0;S<v.length;S+=1){const E=v[S];if(isNaN(E)){if(d=E,d==="M"||d==="L")g=parseFloat(v[++S]),C=parseFloat(v[++S]),s+=`${d}${g} ${C}`;else if(d==="Q"){const t=parseFloat(v[++S]),M=parseFloat(v[++S]),P=parseFloat(v[++S]),T=parseFloat(v[++S]);t===g&&M===C?s+=`t${P-g} ${T-C}`:s+=`q${t-g} ${M-C} ${P-g} ${T-C}`,g=P,C=T}}else{const t=parseFloat(E),M=parseFloat(v[++S]);if(d==="L"){const P=t-g,T=M-C;P===0?s+=`v${T}`:T===0?s+=`h${P}`:s+=`l${P} ${T}`,g=t,C=M}else if(d==="Q"){const P=t,T=M,B=parseFloat(v[++S]),j=parseFloat(v[++S]);P===g&&T===C?s+=`t${B-g} ${j-C}`:s+=`q${P-g} ${T-C} ${B-g} ${j-C}`,g=B,C=j}}}return s}function ee(){f.value&&(x.value.push({strokeWidth:c.value,path:oe(Y(A.value)),color:V.value}),D.value=[],A.value=""),f.value=!1}function re(h){if(!_.value)return{x:0,y:0};const v=_.value.getBoundingClientRect();let s,d;return h.touches&&h.touches.length?(s=h.touches[0].clientX,d=h.touches[0].clientY):(s=h.clientX,d=h.clientY),{x:s-v.left,y:d-v.top}}l.ref(!1);function te(){if(x.value.length>0){const h=x.value.pop();D.value.push(h)}}function ce(){if(D.value.length>0){const h=D.value.pop();x.value.push(h)}}function ve(){x.value=[],D.value=[]}const de=l.ref(null);return(h,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[$.active?(l.openBlock(),l.createElementBlock("div",{key:0,"data-dom-to-png-ignore":"",class:l.normalizeClass({"vue-ui-pen-and-paper-actions":!0,visible:$.active})},[l.createElementVNode("button",{class:"vue-ui-pen-and-paper-action",style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:v[0]||(v[0]=s=>xe("close"))},[l.createVNode(me.default,{name:"close",stroke:$.color},null,8,["stroke"])],4),l.createElementVNode("button",kt,[l.createVNode(xt.ColorPicker,{value:V.value,"onUpdate:value":v[1]||(v[1]=s=>V.value=s),backgroundColor:$.backgroundColor,buttonBorderColor:k.value},null,8,["value","backgroundColor","buttonBorderColor"])]),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length}),disabled:!x.value.length,style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:te},[l.createVNode(me.default,{name:"restart",stroke:$.color},null,8,["stroke"])],14,Lt),l.createElementVNode("button",{class:l.normalizeClass({"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!D.value.length}),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ce},[l.createVNode(me.default,{name:"restart",stroke:$.color,style:{transform:"scaleX(-1)"}},null,8,["stroke"])],6),l.createElementVNode("button",{class:l.normalizeClass([{"vue-ui-pen-and-paper-action":!0,"vue-ui-pen-and-paper-action-disabled":!x.value.length},"vue-ui-pen-and-paper-action"]),style:l.normalizeStyle({backgroundColor:$.backgroundColor,border:`1px solid ${k.value}`}),onClick:ve},[l.createVNode(me.default,{name:"trash",stroke:$.color},null,8,["stroke"])],6),l.withDirectives(l.createElementVNode("input",{ref_key:"range",ref:de,type:"range",class:"vertical-range",min:.5,max:12,step:.1,"onUpdate:modelValue":v[2]||(v[2]=s=>c.value=s),style:l.normalizeStyle({accentColor:$.color})},null,4),[[l.vModelText,c.value]])],2)):l.createCommentVNode("",!0),(l.openBlock(),l.createElementBlock("svg",{ref_key:"svgElement",ref:_,xmlns:l.unref(u.XMLNS),viewBox:Z.value,class:l.normalizeClass({"vue-ui-pen-and-paper":!0,inactive:!$.active}),onMousedown:I,onMousemove:q,onMouseup:ee,onMouseleave:ee,onTouchstart:l.withModifiers(I,["prevent"]),onTouchmove:l.withModifiers(q,["prevent"]),onTouchend:ee},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(x.value,s=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:s},[s.path.replace("M","").split(" ").length===2?(l.openBlock(),l.createElementBlock("circle",{key:0,cx:s.path.replace("M","").split(" ")[0],cy:s.path.replace("M","").split(" ")[1],r:s.strokeWidth/2,fill:s.color},null,8,wt)):(l.openBlock(),l.createElementBlock("path",{key:1,class:"vue-ui-pen-and-paper-path",d:s.path,stroke:s.color,"stroke-width":s.strokeWidth,fill:"none"},null,8,St))],64))),128)),f.value?(l.openBlock(),l.createElementBlock("path",{key:0,class:"vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",d:Y(A.value),stroke:V.value,"stroke-width":c.value*1.1,fill:"none"},null,8,$t)):l.createCommentVNode("",!0)],42,Ct))],64))}},Mt=Xe._export_sfc(zt,[["__scopeId","data-v-6e690e62"]]),Pt=["id"],Tt=["onClick"],Bt={key:2,class:"vue-data-ui-watermark"},It=["innerHTML"],Et={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup($,{expose:be,emit:X}){const{vue_ui_xy_canvas:xe}=u.useConfig(),x=$,D=l.ref(u.createUid()),Z=l.ref(null),V=l.ref(null),c=l.ref(null),k=l.ref(1),F=l.ref(1),U=l.ref(!1),f=l.ref(null),A=l.ref(""),_=l.ref(null),I=l.ref([]),q=l.ref(1),Y=l.ref(!0),G=l.ref(!0),oe=l.ref(null),ee=l.ref(0),re=l.ref(0),te=l.ref(!1),ce=l.ref(null),ve=l.ref(null),de=l.ref(null),h=l.ref(null),v=l.ref(0),s=l.ref(0),d=l.ref(0),g=l.ref(null),C=l.computed(()=>!!x.dataset&&x.dataset.length),S=X,E=l.useSlots();l.onMounted(()=>{E["chart-background"]&&console.warn("VueUiXyCanvas does not support the #chart-background slot.")});const t=l.computed({get:()=>j(),set:e=>e}),{userOptionsVisible:M,setUserOptionsVisibility:P,keepUserOptionState:T}=mt.useUserOptionState({config:t.value}),{svgRef:B}=bt.useChartAccessibility({config:t.value.style.chart.title});function j(){const e=He.useNestedProp({userConfig:x.config,defaultConfig:xe});let o={};return e.theme?o={...He.useNestedProp({userConfig:u.themes.vue_ui_xy_canvas[e.theme]||x.config,defaultConfig:e}),customPalette:u.themePalettes[e.theme]||u.palette}:o=e,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.min")?o.style.chart.scale.min=x.config.style.chart.scale.min:o.style.chart.scale.min=null,x.config&&u.hasDeepProperty(x.config,"style.chart.scale.max")?o.style.chart.scale.max=x.config.style.chart.scale.max:o.style.chart.scale.max=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.startIndex")?o.style.chart.zoom.startIndex=x.config.style.chart.zoom.startIndex:o.style.chart.zoom.startIndex=null,x.config&&u.hasDeepProperty(x.config,"style.chart.zoom.endIndex")?o.style.chart.zoom.endIndex=x.config.style.chart.zoom.endIndex:o.style.chart.zoom.endIndex=null,o}l.watch(()=>x.config,e=>{t.value=j(),M.value=!t.value.userOptions.showOnChartHover,ke(),v.value+=1,s.value+=1,d.value+=1,i.value.showTable=t.value.table.show,i.value.showDataLabels=t.value.style.chart.dataLabels.show,i.value.stacked=t.value.style.chart.stacked,i.value.showTooltip=t.value.style.chart.tooltip.show},{deep:!0}),l.watch(()=>x.dataset,()=>{ke(),v.value+=1,s.value+=1,d.value+=1},{deep:!0});const Ce=l.ref(t.value.style.chart.aspectRatio),{isPrinting:we,isImaging:Se,generatePdf:$e,generateImage:ze}=Ye.usePrinter({elementId:`xy_canvas_${D.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas",options:t.value.userOptions.print}),i=l.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Ue(e){te.value=e,re.value+=1}const Me=l.computed(()=>u.convertCustomPalette(t.value.customPalette)),H=l.computed(()=>le.value?Math.max(...le.value.filter((e,o)=>!I.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),a=l.computed(()=>{const e=k.value-k.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:k.value,canvasHeight:F.value,left:k.value*t.value.style.chart.paddingProportions.left,top:F.value*t.value.style.chart.paddingProportions.top,right:k.value-k.value*t.value.style.chart.paddingProportions.right,bottom:F.value-F.value*t.value.style.chart.paddingProportions.bottom,width:e,height:F.value-F.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(n.value.end-n.value.start)}});function Pe(e,o){return e/o}function qe({hasAutoScale:e,series:o,min:r,max:y,scale:b,yOffset:R,individualHeight:m,stackIndex:w=null}){return o.map((J,O)=>{const Q=b.min<0?Math.abs(b.min):0,K=Pe(J+Q,Q+b.max);let se,ie;e&&(se=b.min,ie=Pe(J-se,b.max-se));let W=0;return w===null?W=a.value.bottom-a.value.height*(e?ie:K):W=a.value.bottom-R-m*(e?ie:K),{x:a.value.left+a.value.slot*O+a.value.slot/2,y:W,value:J}})}const z=l.computed(()=>{const e=t.value.style.chart.scale.min!==null?t.value.style.chart.scale.min:Math.min(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),o=t.value.style.chart.scale.max!==null?t.value.style.chart.scale.max:Math.max(...le.value.filter((m,w)=>!I.value.includes(m.absoluteIndex)).flatMap(m=>m.series.slice(n.value.start,n.value.end))),r=u.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),y=r.min<0?Math.abs(r.min):0,b=a.value.bottom-a.value.height*(y/(r.max+y)),R=r.ticks.map(m=>({y:a.value.bottom-a.value.height*((m+y)/(r.max+y)),x:a.value.left-8,value:m}));return{absoluteMin:y,max:o,min:e,scale:r,yLabels:R,zero:b}}),We=l.computed(()=>L.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-data-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.6.52-beta.
|
|
4
|
+
"version": "2.6.52-beta.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
|
|
7
7
|
"keywords": [
|
|
@@ -96,7 +96,6 @@
|
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
99
|
-
"canvg": "^4.0.3",
|
|
100
99
|
"cypress": "^14.0.3",
|
|
101
100
|
"jspdf": "^3.0.1",
|
|
102
101
|
"remove-attr": "^0.0.13",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t="2.6.51",n={"aria-hidden":"true"},s={__name:"PackageVersion",setup(c){return(r,o)=>(e.openBlock(),e.createElementBlock("desc",n,"Composed with Vue Data UI "+e.toDisplayString(e.unref(t)),1))}};exports._sfc_main=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const v=require("./index-CuIvJLJx.cjs");async function A(e){const o=e.querySelectorAll("img"),t=[];o.forEach(n=>{n.src&&!n.src.startsWith("data:")&&t.push(new Promise(i=>{const l=new window.Image;l.crossOrigin="anonymous",l.onload=function(){try{const r=document.createElement("canvas");r.width=l.naturalWidth,r.height=l.naturalHeight,r.getContext("2d").drawImage(l,0,0),n.src=r.toDataURL()}catch{}i()},l.onerror=function(){i()},l.src=n.src}))}),await Promise.all(t)}function M(e){e.querySelectorAll("[data-dom-to-png-ignore]").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)})}function S(e,o,t){const n=window.getComputedStyle(o);let i={},l=e.getAttribute("style");typeof l!="string"&&(l=""),l.split(";").forEach(s=>{if(typeof s=="string"&&s.trim()){const[c,m]=s.split(":");c&&m!==void 0&&(i[c.trim()]=m.trim())}});for(let s=0;s<n.length;s+=1){const c=n[s],m=n.getPropertyValue(c);i[c]=m}i.overflow="visible",i["overflow-x"]="visible",i["overflow-y"]="visible";const r=o.getBoundingClientRect();r.width>0&&(i.width=r.width+"px");const g=Math.max(o.scrollHeight,r.height);g>0&&(i.height=g+"px"),t&&(i["font-family"]=t);let h="";for(const s in i)h+=`${s}:${i[s]};`;e.setAttribute("style",h);const a=e.children||[],f=o.children||[];for(let s=0;s<a.length;s++)a[s].nodeType===1&&f[s]&&S(a[s],f[s],t)}function E(e,o){e.querySelectorAll("text").forEach(n=>{n.setAttribute("font-family",o),n.style.fontFamily=o})}function I(e){const o=new TextEncoder().encode(e);let t="";return o.forEach(n=>t+=String.fromCharCode(n)),btoa(t)}function $(e,o,t){let i=new XMLSerializer().serializeToString(e);i.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)||(i=i.replace(/^<svg/,'<svg xmlns="http://www.w3.org/2000/svg"'));const l=window.btoa(unescape(encodeURIComponent(i))),r=new window.Image;return r.src=`data:image/svg+xml;base64,${l}`,new Promise((g,h)=>{r.onload=function(){const a=document.createElement("canvas");a.width=o,a.height=t,a.getContext("2d").drawImage(r,0,0,o,t),g(a.toDataURL("image/png",1))},r.onerror=a=>h(a)})}function x(e){if(e.nodeType!==1)return;const o=window.getComputedStyle(e);let t="";for(let n=0;n<o.length;n++){const i=o[n];t+=`${i}:${o.getPropertyValue(i)};`}e.setAttribute("style",t);for(let n=0;n<e.children.length;n++)x(e.children[n])}async function N({container:e,scale:o=2}){if(!e)throw new Error("No container provided");const t=e.cloneNode(!0),n=e.querySelector("svg[aria-label]");if(n){const m=n.getBoundingClientRect(),u=m.width,d=m.height;x(n),E(n,window.getComputedStyle(e).fontFamily);const y=Math.round(u*o),b=Math.round(d*o),C=await $(n,y,b),w=t.querySelector("svg[aria-label]");if(w){const p=document.createElement("img");p.src=C,p.width=u,p.height=d,p.style.width=u+"px",p.style.height=d+"px",w.parentNode.replaceChild(p,w)}}S(t,e,window.getComputedStyle(e).fontFamily),M(t),await A(t);const{width:i,height:l}=e.getBoundingClientRect(),r=Math.round(Math.max(t.scrollWidth,i)*o),g=Math.round(Math.max(t.scrollHeight,l)*1.01*o),h=document.createElementNS(v.XMLNS,"svg");h.setAttribute("viewBox",`0 0 ${r} ${g}`),h.setAttribute("width",r),h.setAttribute("height",g);const a=document.createElementNS(v.XMLNS,"foreignObject");a.setAttribute("x",0),a.setAttribute("y",0),a.setAttribute("width",r),a.setAttribute("height",g),a.setAttribute("style",`font-family:${window.getComputedStyle(e).fontFamily};`),t.style.transform=`scale(${o})`,t.style.transformOrigin="top left",t.style.width=i+"px",t.style.height=l+"px",a.appendChild(t),h.appendChild(a);const f=new XMLSerializer().serializeToString(h),s=I(f),c=new window.Image;return c.crossOrigin="anonymous",c.src=`data:image/svg+xml;base64,${s}`,new Promise((m,u)=>{c.onload=function(){try{const d=document.createElement("canvas");d.width=r,d.height=g,d.getContext("2d").drawImage(c,0,0,r,g),m(d.toDataURL("image/png",1))}catch(d){u("Failed to draw SVG on canvas: "+d)}},c.onerror=function(d){u("Failed to load SVG image for conversion")}})}exports.domToPng=N;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { X as v } from "./index-DYjLUPYr.js";
|
|
2
|
-
async function A(e) {
|
|
3
|
-
const n = e.querySelectorAll("img"), t = [];
|
|
4
|
-
n.forEach((o) => {
|
|
5
|
-
o.src && !o.src.startsWith("data:") && t.push(
|
|
6
|
-
new Promise((i) => {
|
|
7
|
-
const l = new window.Image();
|
|
8
|
-
l.crossOrigin = "anonymous", l.onload = function() {
|
|
9
|
-
try {
|
|
10
|
-
const r = document.createElement("canvas");
|
|
11
|
-
r.width = l.naturalWidth, r.height = l.naturalHeight, r.getContext("2d").drawImage(l, 0, 0), o.src = r.toDataURL();
|
|
12
|
-
} catch {
|
|
13
|
-
}
|
|
14
|
-
i();
|
|
15
|
-
}, l.onerror = function() {
|
|
16
|
-
i();
|
|
17
|
-
}, l.src = o.src;
|
|
18
|
-
})
|
|
19
|
-
);
|
|
20
|
-
}), await Promise.all(t);
|
|
21
|
-
}
|
|
22
|
-
function E(e) {
|
|
23
|
-
e.querySelectorAll("[data-dom-to-png-ignore]").forEach((t) => {
|
|
24
|
-
t.parentNode && t.parentNode.removeChild(t);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function S(e, n, t) {
|
|
28
|
-
const o = window.getComputedStyle(n);
|
|
29
|
-
let i = {}, l = e.getAttribute("style");
|
|
30
|
-
typeof l != "string" && (l = ""), l.split(";").forEach((s) => {
|
|
31
|
-
if (typeof s == "string" && s.trim()) {
|
|
32
|
-
const [c, m] = s.split(":");
|
|
33
|
-
c && m !== void 0 && (i[c.trim()] = m.trim());
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
for (let s = 0; s < o.length; s += 1) {
|
|
37
|
-
const c = o[s], m = o.getPropertyValue(c);
|
|
38
|
-
i[c] = m;
|
|
39
|
-
}
|
|
40
|
-
i.overflow = "visible", i["overflow-x"] = "visible", i["overflow-y"] = "visible";
|
|
41
|
-
const r = n.getBoundingClientRect();
|
|
42
|
-
r.width > 0 && (i.width = r.width + "px");
|
|
43
|
-
const g = Math.max(n.scrollHeight, r.height);
|
|
44
|
-
g > 0 && (i.height = g + "px"), t && (i["font-family"] = t);
|
|
45
|
-
let h = "";
|
|
46
|
-
for (const s in i)
|
|
47
|
-
h += `${s}:${i[s]};`;
|
|
48
|
-
e.setAttribute("style", h);
|
|
49
|
-
const a = e.children || [], f = n.children || [];
|
|
50
|
-
for (let s = 0; s < a.length; s++)
|
|
51
|
-
a[s].nodeType === 1 && f[s] && S(a[s], f[s], t);
|
|
52
|
-
}
|
|
53
|
-
function M(e, n) {
|
|
54
|
-
e.querySelectorAll("text").forEach((o) => {
|
|
55
|
-
o.setAttribute("font-family", n), o.style.fontFamily = n;
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function I(e) {
|
|
59
|
-
const n = new TextEncoder().encode(e);
|
|
60
|
-
let t = "";
|
|
61
|
-
return n.forEach((o) => t += String.fromCharCode(o)), btoa(t);
|
|
62
|
-
}
|
|
63
|
-
function $(e, n, t) {
|
|
64
|
-
let i = new XMLSerializer().serializeToString(e);
|
|
65
|
-
i.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/) || (i = i.replace(/^<svg/, '<svg xmlns="http://www.w3.org/2000/svg"'));
|
|
66
|
-
const l = window.btoa(unescape(encodeURIComponent(i))), r = new window.Image();
|
|
67
|
-
return r.src = `data:image/svg+xml;base64,${l}`, new Promise((g, h) => {
|
|
68
|
-
r.onload = function() {
|
|
69
|
-
const a = document.createElement("canvas");
|
|
70
|
-
a.width = n, a.height = t, a.getContext("2d").drawImage(r, 0, 0, n, t), g(a.toDataURL("image/png", 1));
|
|
71
|
-
}, r.onerror = (a) => h(a);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function x(e) {
|
|
75
|
-
if (e.nodeType !== 1) return;
|
|
76
|
-
const n = window.getComputedStyle(e);
|
|
77
|
-
let t = "";
|
|
78
|
-
for (let o = 0; o < n.length; o++) {
|
|
79
|
-
const i = n[o];
|
|
80
|
-
t += `${i}:${n.getPropertyValue(i)};`;
|
|
81
|
-
}
|
|
82
|
-
e.setAttribute("style", t);
|
|
83
|
-
for (let o = 0; o < e.children.length; o++)
|
|
84
|
-
x(e.children[o]);
|
|
85
|
-
}
|
|
86
|
-
async function P({ container: e, scale: n = 2 }) {
|
|
87
|
-
if (!e) throw new Error("No container provided");
|
|
88
|
-
const t = e.cloneNode(!0), o = e.querySelector("svg[aria-label]");
|
|
89
|
-
if (o) {
|
|
90
|
-
const m = o.getBoundingClientRect(), u = m.width, d = m.height;
|
|
91
|
-
x(o), M(o, window.getComputedStyle(e).fontFamily);
|
|
92
|
-
const y = Math.round(u * n), b = Math.round(d * n), C = await $(o, y, b), w = t.querySelector("svg[aria-label]");
|
|
93
|
-
if (w) {
|
|
94
|
-
const p = document.createElement("img");
|
|
95
|
-
p.src = C, p.width = u, p.height = d, p.style.width = u + "px", p.style.height = d + "px", w.parentNode.replaceChild(p, w);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
S(t, e, window.getComputedStyle(e).fontFamily), E(t), await A(t);
|
|
99
|
-
const { width: i, height: l } = e.getBoundingClientRect(), r = Math.round(Math.max(t.scrollWidth, i) * n), g = Math.round(Math.max(t.scrollHeight, l) * 1.01 * n), h = document.createElementNS(v, "svg");
|
|
100
|
-
h.setAttribute("viewBox", `0 0 ${r} ${g}`), h.setAttribute("width", r), h.setAttribute("height", g);
|
|
101
|
-
const a = document.createElementNS(v, "foreignObject");
|
|
102
|
-
a.setAttribute("x", 0), a.setAttribute("y", 0), a.setAttribute("width", r), a.setAttribute("height", g), a.setAttribute("style", `font-family:${window.getComputedStyle(e).fontFamily};`), t.style.transform = `scale(${n})`, t.style.transformOrigin = "top left", t.style.width = i + "px", t.style.height = l + "px", a.appendChild(t), h.appendChild(a);
|
|
103
|
-
const f = new XMLSerializer().serializeToString(h), s = I(f), c = new window.Image();
|
|
104
|
-
return c.crossOrigin = "anonymous", c.src = `data:image/svg+xml;base64,${s}`, new Promise((m, u) => {
|
|
105
|
-
c.onload = function() {
|
|
106
|
-
try {
|
|
107
|
-
const d = document.createElement("canvas");
|
|
108
|
-
d.width = r, d.height = g, d.getContext("2d").drawImage(c, 0, 0, r, g), m(d.toDataURL("image/png", 1));
|
|
109
|
-
} catch (d) {
|
|
110
|
-
u("Failed to draw SVG on canvas: " + d);
|
|
111
|
-
}
|
|
112
|
-
}, c.onerror = function(d) {
|
|
113
|
-
u("Failed to load SVG image for conversion");
|
|
114
|
-
};
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
export {
|
|
118
|
-
P as d
|
|
119
|
-
};
|