vue-data-ui 2.7.0 → 2.7.1
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-Tcvy-1tf.js → Arrow-BTKw6r9B.js} +1 -1
- package/dist/{Arrow-q4elsfyi.cjs → Arrow-sEenfS8R.cjs} +1 -1
- package/dist/{BaseIcon-BSkS89RT.js → BaseIcon-DnLYMp6l.js} +1 -1
- package/dist/{BaseIcon-wuetMnRj.cjs → BaseIcon-DnyvDfd_.cjs} +1 -1
- package/dist/{ColorPicker-BsF6StNh.cjs → ColorPicker-9DFhTw_f.cjs} +1 -1
- package/dist/{ColorPicker-B-UF8Xdm.js → ColorPicker-C6lNE5YG.js} +3 -3
- package/dist/{DataTable-CxPPog04.cjs → DataTable-CngiZztx.cjs} +1 -1
- package/dist/{DataTable-DRB6Rt3T.js → DataTable-CqmM6dKK.js} +2 -2
- package/dist/{Legend-DACz926s.js → Legend-2egPeIm_.js} +2 -2
- package/dist/{Legend-BiZSIl_8.cjs → Legend-CYRB328N.cjs} +1 -1
- package/dist/{PackageVersion-iM0N7imM.js → PackageVersion-CwdFBcJ8.js} +3 -3
- package/dist/PackageVersion-yffL-jfv.cjs +1 -0
- package/dist/{PenAndPaper-Cnh7VAnd.js → PenAndPaper--UiqgX9J.js} +3 -3
- package/dist/{PenAndPaper-D4YVLZC3.cjs → PenAndPaper-CN2oty-x.cjs} +1 -1
- package/dist/{Shape-BlqLhJkb.js → Shape-BpeBdbVN.js} +1 -1
- package/dist/{Shape-fiDmogTF.cjs → Shape-CUqYvf42.cjs} +1 -1
- package/dist/{Slicer-BxsQavxP.cjs → Slicer-BgcqkoSq.cjs} +1 -1
- package/dist/{Slicer-B6gtffPg.js → Slicer-D1W5yNMr.js} +2 -2
- package/dist/{Title-BnbtlZuQ.js → Title-D-MrSzZ9.js} +1 -1
- package/dist/{Title-ftVcKm8j.cjs → Title-DIthuQxK.cjs} +1 -1
- package/dist/{Tooltip-BaCjRGR8.js → Tooltip-CB3FSZI5.js} +1 -1
- package/dist/{Tooltip-Dvq8qMfG.cjs → Tooltip-D43-t32P.cjs} +1 -1
- package/dist/{dom-to-png-DkmDo75x.js → dom-to-png-5VOUqviC.js} +1 -1
- package/dist/{dom-to-png-DBqUgTmu.cjs → dom-to-png-BJwSQsyy.cjs} +1 -1
- package/dist/{img-DQpd_5yO.cjs → img-BfzPdY_5.cjs} +1 -1
- package/dist/{img-U95ptFho.js → img-DuSrtdjC.js} +1 -1
- package/dist/{index-D-HIb4Mn.js → index-A6avPZLy.js} +1 -1
- package/dist/{index-D5k9fip1.cjs → index-BkB2NdNK.cjs} +1 -1
- package/dist/{pdf-XZ9tIX1c.cjs → pdf-BgE_moLQ.cjs} +1 -1
- package/dist/{pdf-D2ouSvO-.js → pdf-DjL_T4XI.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CpW5Z_Ke.cjs → useNestedProp-BPS6WHYi.cjs} +1 -1
- package/dist/{useNestedProp-qC6DmhPQ.js → useNestedProp-CcohWUPI.js} +1 -1
- package/dist/{usePrinter-Dur-51db.js → usePrinter-B6swu4OY.js} +3 -3
- package/dist/{usePrinter-DCjcVk63.cjs → usePrinter-Bn2DXY9B.cjs} +1 -1
- package/dist/{vue-data-ui-fow8gtsn.js → vue-data-ui-B80lDfFi.js} +60 -60
- package/dist/{vue-data-ui-ozZctcYD.cjs → vue-data-ui-BsseA1is.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C_JTgO_-.js → vue-ui-3d-bar-CcFHL1qI.js} +106 -106
- package/dist/{vue-ui-3d-bar-DTlVayO8.cjs → vue-ui-3d-bar-DcrMP_O7.cjs} +2 -2
- package/dist/{vue-ui-accordion-qmHz6V_f.js → vue-ui-accordion-B_xjSc0r.js} +3 -3
- package/dist/{vue-ui-accordion-BiVdHPDv.cjs → vue-ui-accordion-CGoz8eg6.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-BtqOmeDs.js → vue-ui-age-pyramid-AXVyoK6L.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DbCnCy8z.cjs → vue-ui-age-pyramid-BCNi5bGZ.cjs} +1 -1
- package/dist/{vue-ui-annotator-CsZ_WLwo.js → vue-ui-annotator-BXvnhWt_.js} +2 -2
- package/dist/{vue-ui-annotator-DX-Zq2VD.cjs → vue-ui-annotator-BtNdaDFA.cjs} +1 -1
- package/dist/{vue-ui-bullet-BqOvmlj_.cjs → vue-ui-bullet-CQxs2TaZ.cjs} +1 -1
- package/dist/{vue-ui-bullet-DtYQOm8x.js → vue-ui-bullet-DRXo5EpT.js} +8 -8
- package/dist/{vue-ui-candlestick-CY0LcjNv.cjs → vue-ui-candlestick-3nGxvy8S.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Bpd4Brzf.js → vue-ui-candlestick-BpqYCJVJ.js} +11 -11
- package/dist/{vue-ui-carousel-table-CddMetKf.cjs → vue-ui-carousel-table-BYXPK4gh.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-C8_Ps2Zt.js → vue-ui-carousel-table-YrKkEqX7.js} +4 -4
- package/dist/{vue-ui-chestnut-BpSKsoin.js → vue-ui-chestnut-C25jWRRE.js} +8 -8
- package/dist/{vue-ui-chestnut-BwXukm4F.cjs → vue-ui-chestnut-FQoFMnGd.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-BUlUJ_wP.cjs → vue-ui-circle-pack-CD8-rMNk.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-CfED_zMB.js → vue-ui-circle-pack-PLHydEfP.js} +9 -9
- package/dist/{vue-ui-cursor-B5oQgTgE.js → vue-ui-cursor-CRb53VBn.js} +2 -2
- package/dist/{vue-ui-cursor-wiDFjlo1.cjs → vue-ui-cursor-nwZ7x8lx.cjs} +1 -1
- package/dist/{vue-ui-dashboard-By0Ava-e.js → vue-ui-dashboard-5frkuD5u.js} +3 -3
- package/dist/{vue-ui-dashboard-tFgwPorT.cjs → vue-ui-dashboard-Bh3_EFPN.cjs} +1 -1
- package/dist/{vue-ui-digits-DVhsYo-l.js → vue-ui-digits-CDviNXaL.js} +2 -2
- package/dist/{vue-ui-digits-C8E4WW3j.cjs → vue-ui-digits-DoTiNrVN.cjs} +1 -1
- package/dist/{vue-ui-donut-DuJGngc8.cjs → vue-ui-donut-BcszyS6r.cjs} +1 -1
- package/dist/{vue-ui-donut-D03p4xQ2.js → vue-ui-donut-CNNRNtzQ.js} +12 -12
- package/dist/{vue-ui-donut-evolution-Ck8bjo-j.js → vue-ui-donut-evolution-CHik7Z_g.js} +11 -11
- package/dist/{vue-ui-donut-evolution-jBUX8vo1.cjs → vue-ui-donut-evolution-DfPyKT8R.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-B1jv_9OG.js → vue-ui-dumbbell-CgwlIofy.js} +10 -10
- package/dist/{vue-ui-dumbbell-DDDCgty2.cjs → vue-ui-dumbbell-D2UJtygq.cjs} +1 -1
- package/dist/{vue-ui-flow-CjlFZAXS.cjs → vue-ui-flow-D6JFBrIX.cjs} +1 -1
- package/dist/{vue-ui-flow-DW_Yxbmf.js → vue-ui-flow-rDb1-sH0.js} +9 -9
- package/dist/{vue-ui-funnel-rUNRbe1S.js → vue-ui-funnel-B6bLvPa_.js} +9 -9
- package/dist/{vue-ui-funnel-CdXskLpT.cjs → vue-ui-funnel-BY0tWmrS.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DZRdJjEL.cjs → vue-ui-galaxy-B_52sAx2.cjs} +1 -1
- package/dist/{vue-ui-galaxy-D-d6BrEQ.js → vue-ui-galaxy-DckvTL3q.js} +11 -11
- package/dist/{vue-ui-gauge-CJqfHd1V.js → vue-ui-gauge-C2LiUQBN.js} +7 -7
- package/dist/{vue-ui-gauge-utVziwmC.cjs → vue-ui-gauge-Cs7mUhqe.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BSYmNV2r.cjs → vue-ui-gizmo-BpzuY03-.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BJeFSq_h.js → vue-ui-gizmo-WAsThdrY.js} +3 -3
- package/dist/{vue-ui-heatmap-AOtOaNf0.cjs → vue-ui-heatmap-CGK5-uSo.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BYWReIi3.js → vue-ui-heatmap-DJB3RODU.js} +10 -10
- package/dist/{vue-ui-history-plot-BORIs9Ia.cjs → vue-ui-history-plot-CZCGVMtm.cjs} +1 -1
- package/dist/{vue-ui-history-plot-OJbA6a9W.js → vue-ui-history-plot-UwqNF7IY.js} +11 -11
- package/dist/{vue-ui-kpi-mzJ2Wwsd.cjs → vue-ui-kpi-COSK1X00.cjs} +1 -1
- package/dist/{vue-ui-kpi-ZRPbK9Xb.js → vue-ui-kpi-DGwMrY-1.js} +3 -3
- package/dist/{vue-ui-mini-loader-BDpn3tU3.cjs → vue-ui-mini-loader-CiDr-Ata.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BpF3Gk95.js → vue-ui-mini-loader-wC1Se-5k.js} +2 -2
- package/dist/{vue-ui-molecule-BNKBlCuv.js → vue-ui-molecule-DB8vn7Ud.js} +11 -11
- package/dist/{vue-ui-molecule-n2XcQwWm.cjs → vue-ui-molecule-R-yZGvaP.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D7i4XkJ7.cjs → vue-ui-mood-radar-B4V2v62P.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DkDCTTGe.js → vue-ui-mood-radar-DeLXvSPU.js} +11 -11
- package/dist/{vue-ui-nested-donuts-COztgojn.cjs → vue-ui-nested-donuts-CsvNzTz6.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-B10sUIYh.js → vue-ui-nested-donuts-PgGg2Jah.js} +11 -11
- package/dist/{vue-ui-onion-DS8IMdbv.cjs → vue-ui-onion-DCHNA84o.cjs} +1 -1
- package/dist/{vue-ui-onion-Dm0gIaEo.js → vue-ui-onion-DZAkMkto.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BARHF8if.js → vue-ui-parallel-coordinate-plot-Bxjxz4LI.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-DxyZ61ji.cjs → vue-ui-parallel-coordinate-plot-Drm4BFOT.cjs} +1 -1
- package/dist/{vue-ui-quadrant-CwRmXD1e.cjs → vue-ui-quadrant-D5anVEqh.cjs} +1 -1
- package/dist/{vue-ui-quadrant-DEy0EDw0.js → vue-ui-quadrant-nheekDou.js} +12 -12
- package/dist/{vue-ui-quick-chart-cQQXRntN.cjs → vue-ui-quick-chart-2-oPKc1z.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-CIukip1j.js → vue-ui-quick-chart-BpQr6koy.js} +9 -9
- package/dist/{vue-ui-radar-bY3aBAJt.js → vue-ui-radar-BH3cHleE.js} +12 -12
- package/dist/{vue-ui-radar-BBW5S8Yt.cjs → vue-ui-radar-Crx4uENB.cjs} +1 -1
- package/dist/{vue-ui-rating-BrcdA_Ez.cjs → vue-ui-rating-CHbI6v-k.cjs} +1 -1
- package/dist/{vue-ui-rating-oiBRruzk.js → vue-ui-rating-lZe0UltX.js} +2 -2
- package/dist/{vue-ui-relation-circle-Cz4V-P4-.js → vue-ui-relation-circle-D3dCS2lC.js} +7 -7
- package/dist/{vue-ui-relation-circle-BIwMG6fK.cjs → vue-ui-relation-circle-DMuA1Jqp.cjs} +1 -1
- package/dist/{vue-ui-rings-D2Xkr-UM.cjs → vue-ui-rings-CCePZEmj.cjs} +1 -1
- package/dist/{vue-ui-rings-B9v-QBUD.js → vue-ui-rings-CL5eq_lr.js} +12 -12
- package/dist/{vue-ui-scatter-B8njCxdy.js → vue-ui-scatter-DhWpisoX.js} +12 -12
- package/dist/{vue-ui-scatter-Dax4tsln.cjs → vue-ui-scatter-DrWHtQ7A.cjs} +1 -1
- package/dist/{vue-ui-skeleton-WO50lQWb.js → vue-ui-skeleton-CDtUy7-2.js} +3 -3
- package/dist/{vue-ui-skeleton-Cxg_LxBB.cjs → vue-ui-skeleton-CyD0WfiB.cjs} +1 -1
- package/dist/{vue-ui-smiley-CZc9x6AH.cjs → vue-ui-smiley-CYAJ1Yz6.cjs} +1 -1
- package/dist/{vue-ui-smiley-CydE1BoA.js → vue-ui-smiley-CxC_mXgi.js} +2 -2
- package/dist/{vue-ui-spark-trend-CW8LzMy4.cjs → vue-ui-spark-trend-DqJoZswk.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-sNLwMXHr.js → vue-ui-spark-trend-W6ET0LN0.js} +5 -5
- package/dist/{vue-ui-sparkbar-CdEIQGlO.cjs → vue-ui-sparkbar-BaL4aiR2.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-BIw5YHYN.js → vue-ui-sparkbar-DFk4vX4T.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BGv31zUU.cjs → vue-ui-sparkgauge-C0XL80YM.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-BY1Db4u6.js → vue-ui-sparkgauge-DaCbYvsy.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B2qXSmE6.js → vue-ui-sparkhistogram-DO4EtsIl.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-C5aVsaeV.cjs → vue-ui-sparkhistogram-yHLpPhmY.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B-ROydCI.js → vue-ui-sparkline-BT2uzkRB.js} +4 -4
- package/dist/{vue-ui-sparkline-nv_hBl_Q.cjs → vue-ui-sparkline-_3p0ZMii.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B_fyArxJ.js → vue-ui-sparkstackbar-CvPROcMS.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-Dc7akbeI.cjs → vue-ui-sparkstackbar-D87hGVto.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CR-D8XTf.js → vue-ui-stackbar-CF1ZciKz.js} +13 -13
- package/dist/{vue-ui-stackbar-DPheM1P1.cjs → vue-ui-stackbar-pZS4uclE.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-BP_ZBS7j.js → vue-ui-strip-plot-DbJmyFzD.js} +11 -11
- package/dist/{vue-ui-strip-plot-Bqcuuu2h.cjs → vue-ui-strip-plot-DqPSiGXm.cjs} +1 -1
- package/dist/{vue-ui-table-C_ARRjn7.js → vue-ui-table-BvlGS9xl.js} +1 -1
- package/dist/{vue-ui-table-D6zyqYhW.cjs → vue-ui-table-_lP4IT01.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-B1wpFAy-.cjs → vue-ui-table-heatmap-DVZ4FKcO.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-5kssrpIQ.js → vue-ui-table-heatmap-I3d1FZkm.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DqiWxSfS.cjs → vue-ui-table-sparkline-DxgxuYn1.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DQb6dKDF.js → vue-ui-table-sparkline-KTwO8xf0.js} +5 -5
- package/dist/{vue-ui-thermometer-CzAL7se5.js → vue-ui-thermometer-CacmwD1Y.js} +7 -7
- package/dist/{vue-ui-thermometer-CmktvEk5.cjs → vue-ui-thermometer-DbOYeE4L.cjs} +1 -1
- package/dist/{vue-ui-timer-CoxSVJEi.cjs → vue-ui-timer-CE_E850f.cjs} +1 -1
- package/dist/{vue-ui-timer-CN4LNkYi.js → vue-ui-timer-CPDwkxN8.js} +5 -5
- package/dist/{vue-ui-tiremarks-CcHbgSJS.js → vue-ui-tiremarks-C0_iMDa_.js} +7 -7
- package/dist/{vue-ui-tiremarks-G4phSmYS.cjs → vue-ui-tiremarks-CjEVWJs3.cjs} +1 -1
- package/dist/{vue-ui-treemap-X6ai1vvz.cjs → vue-ui-treemap-Cz8zJOFx.cjs} +1 -1
- package/dist/{vue-ui-treemap-Cd0QURmy.js → vue-ui-treemap-DwXyhU2O.js} +12 -12
- package/dist/{vue-ui-vertical-bar-DkkUwBFF.cjs → vue-ui-vertical-bar-CElDAKiI.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-Bwb6qh-e.js → vue-ui-vertical-bar-RbZ1m7aH.js} +12 -12
- package/dist/{vue-ui-waffle-CuqNVHpO.cjs → vue-ui-waffle-CqnW-IzI.cjs} +1 -1
- package/dist/{vue-ui-waffle-BLFwSujO.js → vue-ui-waffle-D2Olsiof.js} +12 -12
- package/dist/{vue-ui-wheel-BF8y9DBh.cjs → vue-ui-wheel-DDllncND.cjs} +1 -1
- package/dist/{vue-ui-wheel-BMKwq-xH.js → vue-ui-wheel-DJbSOnmZ.js} +7 -7
- package/dist/{vue-ui-word-cloud-2YUfi3uy.js → vue-ui-word-cloud-BVjlvTWA.js} +10 -10
- package/dist/{vue-ui-word-cloud-B4OWtLLG.cjs → vue-ui-word-cloud-Cw03GidN.cjs} +1 -1
- package/dist/{vue-ui-xy-CC8PUupn.cjs → vue-ui-xy-CpTEJDag.cjs} +2 -2
- package/dist/{vue-ui-xy-B_rfc8IL.js → vue-ui-xy-CvM6YBcJ.js} +16 -16
- package/dist/{vue-ui-xy-canvas-CQhMzfiO.cjs → vue-ui-xy-canvas-BwtGqNbz.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-ta12fbOW.js → vue-ui-xy-canvas-CPwKMu2P.js} +12 -12
- package/package.json +1 -1
- package/dist/PackageVersion-K_dIfu_1.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Q as H, Y as q, a7 as j, c as X, A as $, F as ee, w as te, s as le, o as ae, $ as re, a8 as ie, x as se, C as ne, y as ce, a5 as oe, e as he, r as ue, f as U, a9 as de, S as ge, T as fe, q as Ie, b as me, z as Ne, d as xe, aa as be, v as Fe, ab as _e, a3 as ye, ac as Ae, i as Le, G as Ce, L as Se, u as ke, p as we, B as Oe, a as Ge, t as ve } from "./index-
|
|
2
|
-
import { D as pe } from "./DataTable-
|
|
3
|
-
import { _ as Me } from "./Title-
|
|
4
|
-
import { u as ze, _ as Te } from "./Tooltip-
|
|
5
|
-
import { U as Pe } from "./usePrinter-
|
|
6
|
-
import { _ as Ve } from "./Shape-
|
|
7
|
-
import Re from "./BaseIcon-
|
|
8
|
-
import He from "./vue-ui-table-sparkline-
|
|
9
|
-
import De from "./vue-ui-skeleton-
|
|
10
|
-
import { S as Be } from "./Slicer-
|
|
11
|
-
import Ee from "./vue-ui-accordion-
|
|
12
|
-
import { u as Z } from "./useNestedProp-
|
|
13
|
-
import { _ as Ye } from "./PackageVersion-
|
|
14
|
-
import { P as We } from "./PenAndPaper
|
|
1
|
+
import { Q as H, Y as q, a7 as j, c as X, A as $, F as ee, w as te, s as le, o as ae, $ as re, a8 as ie, x as se, C as ne, y as ce, a5 as oe, e as he, r as ue, f as U, a9 as de, S as ge, T as fe, q as Ie, b as me, z as Ne, d as xe, aa as be, v as Fe, ab as _e, a3 as ye, ac as Ae, i as Le, G as Ce, L as Se, u as ke, p as we, B as Oe, a as Ge, t as ve } from "./index-A6avPZLy.js";
|
|
2
|
+
import { D as pe } from "./DataTable-CqmM6dKK.js";
|
|
3
|
+
import { _ as Me } from "./Title-D-MrSzZ9.js";
|
|
4
|
+
import { u as ze, _ as Te } from "./Tooltip-CB3FSZI5.js";
|
|
5
|
+
import { U as Pe } from "./usePrinter-B6swu4OY.js";
|
|
6
|
+
import { _ as Ve } from "./Shape-BpeBdbVN.js";
|
|
7
|
+
import Re from "./BaseIcon-DnLYMp6l.js";
|
|
8
|
+
import He from "./vue-ui-table-sparkline-KTwO8xf0.js";
|
|
9
|
+
import De from "./vue-ui-skeleton-CDtUy7-2.js";
|
|
10
|
+
import { S as Be } from "./Slicer-D1W5yNMr.js";
|
|
11
|
+
import Ee from "./vue-ui-accordion-B_xjSc0r.js";
|
|
12
|
+
import { u as Z } from "./useNestedProp-CcohWUPI.js";
|
|
13
|
+
import { _ as Ye } from "./PackageVersion-CwdFBcJ8.js";
|
|
14
|
+
import { P as We } from "./PenAndPaper--UiqgX9J.js";
|
|
15
15
|
import { resolveComponent as R, createElementBlock as i, openBlock as r, normalizeStyle as x, normalizeClass as B, createBlock as D, createCommentVNode as u, createVNode as W, createSlots as qe, withCtx as P, renderSlot as S, normalizeProps as E, guardReactiveProps as Y, createElementVNode as f, createTextVNode as J, Fragment as d, renderList as I, toDisplayString as T, mergeProps as Q, withDirectives as Xe, vModelCheckbox as Ue } from "vue";
|
|
16
16
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
17
|
const Je = X(), Qe = {
|
|
@@ -1103,7 +1103,7 @@ const Je = X(), Qe = {
|
|
|
1103
1103
|
async generatePdf() {
|
|
1104
1104
|
this.showSpinnerPdf(), clearTimeout(this.__to__), this.isPrinting = !0, this.__to__ = setTimeout(async () => {
|
|
1105
1105
|
try {
|
|
1106
|
-
const { default: t } = await import("./pdf-
|
|
1106
|
+
const { default: t } = await import("./pdf-DjL_T4XI.js");
|
|
1107
1107
|
await t({
|
|
1108
1108
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1109
1109
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1126,7 +1126,7 @@ const Je = X(), Qe = {
|
|
|
1126
1126
|
async generateImage() {
|
|
1127
1127
|
this.showSpinnerImage(), clearTimeout(this.__to__), this.isImaging = !0, this.__to__ = setTimeout(async () => {
|
|
1128
1128
|
try {
|
|
1129
|
-
const { default: t } = await import("./img-
|
|
1129
|
+
const { default: t } = await import("./img-DuSrtdjC.js");
|
|
1130
1130
|
await t({
|
|
1131
1131
|
domElement: document.getElementById(`vue-ui-xy_${this.uniqueId}`),
|
|
1132
1132
|
fileName: this.FINAL_CONFIG.chart.title.text || "vue-ui-xy",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-D5k9fip1.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-Dvq8qMfG.cjs"),dt=require("./Legend-BiZSIl_8.cjs"),ht=require("./Title-ftVcKm8j.cjs"),ft=require("./Slicer-BxsQavxP.cjs"),Ye=require("./usePrinter-DCjcVk63.cjs"),yt=require("./vue-ui-accordion-BiVdHPDv.cjs"),pt=require("./DataTable-CxPPog04.cjs"),gt=require("./vue-ui-skeleton-Cxg_LxBB.cjs"),He=require("./useNestedProp-CpW5Z_Ke.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-wuetMnRj.cjs"),xt=require("./ColorPicker-BsF6StNh.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-BkB2NdNK.cjs"),p=require("./useResponsive-DQmBAoBf.cjs"),vt=require("./Tooltip-D43-t32P.cjs"),dt=require("./Legend-CYRB328N.cjs"),ht=require("./Title-DIthuQxK.cjs"),ft=require("./Slicer-BgcqkoSq.cjs"),Ye=require("./usePrinter-Bn2DXY9B.cjs"),yt=require("./vue-ui-accordion-CGoz8eg6.cjs"),pt=require("./DataTable-CngiZztx.cjs"),gt=require("./vue-ui-skeleton-CyD0WfiB.cjs"),He=require("./useNestedProp-BPS6WHYi.cjs"),mt=require("./useUserOptionState-BgepsfED.cjs"),bt=require("./useChartAccessibility-Cm7nkzTG.cjs"),me=require("./BaseIcon-DnyvDfd_.cjs"),xt=require("./ColorPicker-9DFhTw_f.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}"/>
|
|
@@ -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-A6avPZLy.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-CB3FSZI5.js";
|
|
5
|
+
import { L as fl } from "./Legend-2egPeIm_.js";
|
|
6
|
+
import { _ as yl } from "./Title-D-MrSzZ9.js";
|
|
7
|
+
import { S as gl } from "./Slicer-D1W5yNMr.js";
|
|
8
|
+
import { u as pl, U as ml } from "./usePrinter-B6swu4OY.js";
|
|
9
|
+
import bl from "./vue-ui-accordion-B_xjSc0r.js";
|
|
10
|
+
import { D as xl } from "./DataTable-CqmM6dKK.js";
|
|
11
|
+
import kl from "./vue-ui-skeleton-CDtUy7-2.js";
|
|
12
|
+
import { u as mt } from "./useNestedProp-CcohWUPI.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-DnLYMp6l.js";
|
|
16
|
+
import { C as wl } from "./ColorPicker-C6lNE5YG.js";
|
|
17
17
|
import { _ as kt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const $l = {
|
|
19
19
|
class: /* @__PURE__ */ fe({
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),t="2.6.52-beta.10",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;
|