vue-data-ui 2.7.4 → 2.7.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-Kbu7LT-f.js → Arrow-BPxXpODN.js} +1 -1
- package/dist/{Arrow-Bslu6In_.cjs → Arrow-DMoDyTYq.cjs} +1 -1
- package/dist/{BaseIcon-BLhJaEYy.js → BaseIcon-BRjEohPB.js} +1 -1
- package/dist/{BaseIcon-WIhlX3LN.cjs → BaseIcon-Csib-bFs.cjs} +1 -1
- package/dist/{ColorPicker-mXlj2N11.cjs → ColorPicker--FQTMlj_.cjs} +1 -1
- package/dist/{ColorPicker-Dlg-p-yo.js → ColorPicker-DKHOITuH.js} +3 -3
- package/dist/{DataTable-c3nDhwbO.cjs → DataTable-Bg1jcIr-.cjs} +1 -1
- package/dist/{DataTable-DOKlm7k4.js → DataTable-DXHBxZCy.js} +2 -2
- package/dist/{Legend-CIjMjfNk.js → Legend-DMevrWiD.js} +2 -2
- package/dist/{Legend-Bhl2d6oj.cjs → Legend-UfmoJ4KO.cjs} +1 -1
- package/dist/{PackageVersion-BCLALL_i.js → PackageVersion-C7x2IWLM.js} +1 -1
- package/dist/{PackageVersion-DFYAej2o.cjs → PackageVersion-DgyGLNuh.cjs} +1 -1
- package/dist/{PenAndPaper-CZs431Nx.js → PenAndPaper-8UX21OWr.js} +54 -53
- package/dist/PenAndPaper-Cvmkcq22.cjs +1 -0
- package/dist/{Shape-D9MuIPm8.js → Shape-CTmzdRqd.js} +1 -1
- package/dist/{Shape-wMij_bxG.cjs → Shape-fqF-okzT.cjs} +1 -1
- package/dist/{Slicer-CqYLlNlU.js → Slicer-BXhvESja.js} +2 -2
- package/dist/{Slicer-Duh-nBCD.cjs → Slicer-DmdYZrGS.cjs} +1 -1
- package/dist/{Title-C5w8bVlo.cjs → Title-DUa01RoU.cjs} +1 -1
- package/dist/{Title-UjBqdYyD.js → Title-L3SvCQfU.js} +1 -1
- package/dist/{Tooltip-Dbe23pmt.cjs → Tooltip-DxTkpBZU.cjs} +1 -1
- package/dist/{Tooltip-3NNIdJ6N.js → Tooltip-DzsG-nM2.js} +1 -1
- package/dist/{dom-to-png-C-_IolaZ.cjs → dom-to-png-_Yw7_Zl2.cjs} +1 -1
- package/dist/{dom-to-png-6NoDv4_U.js → dom-to-png-pcDdsfUp.js} +1 -1
- package/dist/{img-BxGd_UqS.js → img-C_46LUlu.js} +1 -1
- package/dist/{img-DCkGlbCr.cjs → img-D4mtuxkz.cjs} +1 -1
- package/dist/index-Be2lbQel.cjs +9 -0
- package/dist/{index-D3VntmA9.js → index-CFNGWoG-.js} +2 -1
- package/dist/{pdf-BpVckOt1.js → pdf-BTE2gw1u.js} +1 -1
- package/dist/{pdf-BGp1xMhT.cjs → pdf-C4WYgi8l.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-DwR4JSzw.cjs → useNestedProp-BVcjidN0.cjs} +1 -1
- package/dist/{useNestedProp-DTlOqz2P.js → useNestedProp-DHVUTEIl.js} +1 -1
- package/dist/{usePrinter-H3tAjGXs.js → usePrinter-DlDdG5QU.js} +3 -3
- package/dist/{usePrinter-U1x-RAEA.cjs → usePrinter-uMLnqx4N.cjs} +1 -1
- package/dist/{vue-data-ui-DFwVHeO8.js → vue-data-ui-DWxtv62P.js} +60 -60
- package/dist/{vue-data-ui-BuY9ggUz.cjs → vue-data-ui-hYMPv0Dd.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-DeTBYGV_.cjs → vue-ui-3d-bar-D82lrIe4.cjs} +1 -1
- package/dist/{vue-ui-3d-bar-NNib9NTc.js → vue-ui-3d-bar-DjK5p4-V.js} +9 -9
- package/dist/{vue-ui-accordion-cBSqrYy3.cjs → vue-ui-accordion-BL55ml0w.cjs} +1 -1
- package/dist/{vue-ui-accordion-DGJQIcdB.js → vue-ui-accordion-BVInR1D8.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DWG7C-nA.js → vue-ui-age-pyramid-CN9pUGnI.js} +10 -10
- package/dist/{vue-ui-age-pyramid-DfGSS3SE.cjs → vue-ui-age-pyramid-D5EOO0iJ.cjs} +1 -1
- package/dist/{vue-ui-annotator-D21j4NL0.js → vue-ui-annotator-CAkIFmY8.js} +2 -2
- package/dist/{vue-ui-annotator-Bpy0V7AA.cjs → vue-ui-annotator-CCXZE86s.cjs} +1 -1
- package/dist/{vue-ui-bullet-MrNlqcTX.js → vue-ui-bullet-DAtNfo12.js} +8 -8
- package/dist/{vue-ui-bullet-CrgeKJBE.cjs → vue-ui-bullet-DbVipNyo.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dgwjzuq0.js → vue-ui-candlestick-C4o7KNEQ.js} +11 -11
- package/dist/{vue-ui-candlestick-DfEQ057F.cjs → vue-ui-candlestick-DZ8Zu1G0.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-B9AHiJLA.cjs → vue-ui-carousel-table-C2fTCZSu.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-TOSDOJ0J.js → vue-ui-carousel-table-GVqoqsHj.js} +4 -4
- package/dist/{vue-ui-chestnut-DAlxKIqD.js → vue-ui-chestnut-DkcYjcFC.js} +8 -8
- package/dist/{vue-ui-chestnut-BQwGKI2l.cjs → vue-ui-chestnut-E6-YshUN.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-B9HW-E4V.cjs → vue-ui-circle-pack-Cydk-l4Z.cjs} +1 -1
- package/dist/{vue-ui-circle-pack-BjD7UG4l.js → vue-ui-circle-pack-bYWkKSmF.js} +9 -9
- package/dist/{vue-ui-cursor-Bv_hn_5f.cjs → vue-ui-cursor-BV90fevc.cjs} +1 -1
- package/dist/{vue-ui-cursor-CS0L4MjH.js → vue-ui-cursor-DJqRywjF.js} +2 -2
- package/dist/{vue-ui-dashboard-DGJjS8TM.cjs → vue-ui-dashboard-Awb0TFLb.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Cu4QabFb.js → vue-ui-dashboard-CBNKG2IX.js} +3 -3
- package/dist/{vue-ui-digits-CrqD5QXP.js → vue-ui-digits--BlLcrsp.js} +2 -2
- package/dist/{vue-ui-digits-BusMzORo.cjs → vue-ui-digits-Bdyd5itD.cjs} +1 -1
- package/dist/{vue-ui-donut-CbDkvk9s.js → vue-ui-donut-BFaZnu4E.js} +12 -12
- package/dist/{vue-ui-donut-vqs5auMD.cjs → vue-ui-donut-DhyuQfTc.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Dul--Pi_.cjs → vue-ui-donut-evolution-BlTz3cM6.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DKD_efmP.js → vue-ui-donut-evolution-u_DgynBq.js} +11 -11
- package/dist/{vue-ui-dumbbell-CB6lYwMc.cjs → vue-ui-dumbbell-BPY5ecEW.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-BGN-Rshy.js → vue-ui-dumbbell-FTQMksov.js} +10 -10
- package/dist/{vue-ui-flow-g93Xo1mO.js → vue-ui-flow-CZZbTaKg.js} +9 -9
- package/dist/{vue-ui-flow-CDPkL02l.cjs → vue-ui-flow-CiOLP4Bc.cjs} +1 -1
- package/dist/{vue-ui-funnel-r_WI2IRS.js → vue-ui-funnel-C7emWYtP.js} +9 -9
- package/dist/{vue-ui-funnel-D1PhFKgP.cjs → vue-ui-funnel-CeKd8ZiW.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DSXcoM3k.cjs → vue-ui-galaxy-C0LvpwYA.cjs} +1 -1
- package/dist/{vue-ui-galaxy-B4JnwjLW.js → vue-ui-galaxy-CbQn6Tai.js} +11 -11
- package/dist/{vue-ui-gauge-BPz7mbOb.js → vue-ui-gauge-B5t9OOfc.js} +7 -7
- package/dist/{vue-ui-gauge-Ct1Knstr.cjs → vue-ui-gauge-BlIKJvVf.cjs} +1 -1
- package/dist/{vue-ui-gizmo-tet3qRDX.cjs → vue-ui-gizmo--2ZtBKsI.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BbUqDkQz.js → vue-ui-gizmo-REPSaOFz.js} +3 -3
- package/dist/{vue-ui-heatmap-RHN_eSK2.cjs → vue-ui-heatmap-4GiW6lpZ.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BbmFxESu.js → vue-ui-heatmap-MgVipAHX.js} +10 -10
- package/dist/{vue-ui-history-plot-B8_Kig_-.cjs → vue-ui-history-plot-BPBubZyO.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CJFtY1Rm.js → vue-ui-history-plot-Be7z_N9m.js} +11 -11
- package/dist/{vue-ui-kpi-CQo8VsEv.js → vue-ui-kpi-CIMqIIHx.js} +3 -3
- package/dist/{vue-ui-kpi-C0IWPkaZ.cjs → vue-ui-kpi-liKRIunp.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DoOFKxep.cjs → vue-ui-mini-loader-BLlakDY7.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-8wZYNxLC.js → vue-ui-mini-loader-BzA198rf.js} +2 -2
- package/dist/{vue-ui-molecule-HnReqNMq.cjs → vue-ui-molecule-BVJoEq_L.cjs} +1 -1
- package/dist/{vue-ui-molecule-DHb8Roml.js → vue-ui-molecule-BjxKkqRH.js} +11 -11
- package/dist/{vue-ui-mood-radar-CdBmESCg.js → vue-ui-mood-radar-DmnVvP9o.js} +11 -11
- package/dist/{vue-ui-mood-radar-BjmCUY0q.cjs → vue-ui-mood-radar-W0giMhIf.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-CO7sSeR-.js → vue-ui-nested-donuts-Bjg4j4if.js} +11 -11
- package/dist/{vue-ui-nested-donuts-SBaCzHQP.cjs → vue-ui-nested-donuts-qdTmCQvc.cjs} +1 -1
- package/dist/{vue-ui-onion-BehdICTa.cjs → vue-ui-onion-6SSfocfE.cjs} +1 -1
- package/dist/{vue-ui-onion-Ci15BQ0y.js → vue-ui-onion-D64W0CBD.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BLLONfts.cjs → vue-ui-parallel-coordinate-plot-BjYktxod.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BJbrb-Mp.js → vue-ui-parallel-coordinate-plot-CkZXOICk.js} +12 -12
- package/dist/{vue-ui-quadrant-BZTZY3LG.js → vue-ui-quadrant-D-jEAMCQ.js} +12 -12
- package/dist/{vue-ui-quadrant-ntmlYIVx.cjs → vue-ui-quadrant-DjLnWBnh.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BCdm0tx2.cjs → vue-ui-quick-chart-BcOY7AIN.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-B2OUF1Pk.js → vue-ui-quick-chart-yNuTyEgo.js} +9 -9
- package/dist/{vue-ui-radar-D8DHrSPP.js → vue-ui-radar-CZlEONeD.js} +12 -12
- package/dist/{vue-ui-radar-CUoLdojY.cjs → vue-ui-radar-DpHLHWci.cjs} +1 -1
- package/dist/{vue-ui-rating-D4H6cT0d.js → vue-ui-rating-C1gRL1R3.js} +2 -2
- package/dist/{vue-ui-rating-BWlmz08s.cjs → vue-ui-rating-Cs3NEmEg.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DighSxmd.cjs → vue-ui-relation-circle-CB-YW73a.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CWvX8cvJ.js → vue-ui-relation-circle-C_FsWiuH.js} +7 -7
- package/dist/{vue-ui-rings-CPIzjzdm.cjs → vue-ui-rings-CIYZbHzK.cjs} +1 -1
- package/dist/{vue-ui-rings-Dq5YT7h-.js → vue-ui-rings-syJFoH6E.js} +12 -12
- package/dist/{vue-ui-scatter-BSgMQLjw.cjs → vue-ui-scatter-1jT9ddo6.cjs} +1 -1
- package/dist/{vue-ui-scatter-BMuJyp6q.js → vue-ui-scatter-Y-bJ5R0J.js} +12 -12
- package/dist/{vue-ui-skeleton-DOE444ST.cjs → vue-ui-skeleton-ByGfybu8.cjs} +1 -1
- package/dist/{vue-ui-skeleton-pHcbvN3-.js → vue-ui-skeleton-Dexat5oZ.js} +3 -3
- package/dist/{vue-ui-smiley-bHv8hVve.cjs → vue-ui-smiley-Cp1Yo8gM.cjs} +1 -1
- package/dist/{vue-ui-smiley-BsPExuQ7.js → vue-ui-smiley-DPP-2K8T.js} +2 -2
- package/dist/{vue-ui-spark-trend-S0FbKqDW.cjs → vue-ui-spark-trend-DXo1Lafk.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-eJ5IZSRQ.js → vue-ui-spark-trend-DkM426ut.js} +5 -5
- package/dist/{vue-ui-sparkbar-B1pwFeeg.cjs → vue-ui-sparkbar-D7-pjVIk.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-B9E03kBf.js → vue-ui-sparkbar-F5OoZgjl.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BpAFpJN9.cjs → vue-ui-sparkgauge-BV03AxIl.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CbtRwF8H.js → vue-ui-sparkgauge-LNWcvJQm.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-4gAnz36n.cjs → vue-ui-sparkhistogram-CPLjuhd0.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BJfFPQ-X.js → vue-ui-sparkhistogram-Dp4JmEjl.js} +5 -5
- package/dist/{vue-ui-sparkline-CLz-PMi0.js → vue-ui-sparkline-CUJeIh8E.js} +4 -4
- package/dist/{vue-ui-sparkline-CJ8rlJiI.cjs → vue-ui-sparkline-CzaaWz1O.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-C5ZzOhRM.js → vue-ui-sparkstackbar-BTmAuDED.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-ja3t34Mt.cjs → vue-ui-sparkstackbar-Byy98s7i.cjs} +1 -1
- package/dist/{vue-ui-stackbar-DSWEq3Pa.cjs → vue-ui-stackbar-CApy6xE-.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BnuJOk6L.js → vue-ui-stackbar-HfGn8Itj.js} +13 -13
- package/dist/{vue-ui-strip-plot-CyiaXAxw.cjs → vue-ui-strip-plot-D8bN2jOd.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-Cbr3Dkmd.js → vue-ui-strip-plot-Db5fY9l0.js} +11 -11
- package/dist/{vue-ui-table-CPJeRMDV.cjs → vue-ui-table-3Pr_BJOn.cjs} +1 -1
- package/dist/{vue-ui-table-Cr6jEi4z.js → vue-ui-table-BiEEXfmz.js} +1 -1
- package/dist/{vue-ui-table-heatmap-BfKruH6W.cjs → vue-ui-table-heatmap-Dzmilz_6.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-C0J52xWN.js → vue-ui-table-heatmap-tT43AVN1.js} +4 -4
- package/dist/{vue-ui-table-sparkline-C9PHXjbW.js → vue-ui-table-sparkline-CuG3P8Se.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CGUs_6Ij.cjs → vue-ui-table-sparkline-r9JbPWm1.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DWC--OtD.cjs → vue-ui-thermometer-BWakJYXX.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Cs8Xt7tQ.js → vue-ui-thermometer-BypApwQR.js} +7 -7
- package/dist/{vue-ui-timer-DD0VvMEs.cjs → vue-ui-timer-BY89-D5q.cjs} +1 -1
- package/dist/{vue-ui-timer-DDZHmPLV.js → vue-ui-timer-QTTOX3XU.js} +5 -5
- package/dist/{vue-ui-tiremarks-B_koqVkj.cjs → vue-ui-tiremarks-C6_AVUY8.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-DHAdNbAA.js → vue-ui-tiremarks-DhubQXE9.js} +7 -7
- package/dist/{vue-ui-treemap-C_yhbpyF.cjs → vue-ui-treemap-ByFdbyS7.cjs} +1 -1
- package/dist/{vue-ui-treemap-CfH-P5Oh.js → vue-ui-treemap-HL5rG7hw.js} +12 -12
- package/dist/{vue-ui-vertical-bar-BRplGFjj.cjs → vue-ui-vertical-bar-BP4MwH-K.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-oBdc4YQS.js → vue-ui-vertical-bar-__GfqF0O.js} +12 -12
- package/dist/{vue-ui-waffle-Bg5T7RVn.cjs → vue-ui-waffle-D9gfi78g.cjs} +1 -1
- package/dist/{vue-ui-waffle-DZ2zIujl.js → vue-ui-waffle-DF34x9Wg.js} +12 -12
- package/dist/{vue-ui-wheel-Bj3Z92nh.cjs → vue-ui-wheel-B41qdqzo.cjs} +1 -1
- package/dist/{vue-ui-wheel-BerXCO4A.js → vue-ui-wheel-DSofgaQ1.js} +7 -7
- package/dist/{vue-ui-word-cloud-BWQ1ogz9.cjs → vue-ui-word-cloud-CXCBnEZ8.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-U5KISxTe.js → vue-ui-word-cloud-fFYlm6K2.js} +10 -10
- package/dist/vue-ui-xy-BXfgH7v9.cjs +3 -0
- package/dist/{vue-ui-xy-y9zEQYMK.js → vue-ui-xy-CxNv4m9O.js} +399 -398
- package/dist/{vue-ui-xy-canvas-BpblELcE.js → vue-ui-xy-canvas-DHn7SPRK.js} +126 -125
- package/dist/{vue-ui-xy-canvas-C76OoGNJ.cjs → vue-ui-xy-canvas-DggddiWo.cjs} +2 -2
- package/package.json +1 -1
- package/dist/PenAndPaper-CAqWCUZx.cjs +0 -1
- package/dist/index-MIJJ8liG.cjs +0 -9
- package/dist/vue-ui-xy-C078AHoi.cjs +0 -3
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ref as c, computed as R, onMounted as ot, nextTick as Oe, onBeforeUnmount as $t, watch as
|
|
2
|
-
import { l as St, f as be, X as jt, u as
|
|
1
|
+
import { ref as c, computed as R, onMounted as ot, nextTick as Oe, onBeforeUnmount as $t, watch as _, createElementBlock as M, openBlock as w, Fragment as je, createCommentVNode as Z, normalizeStyle as N, normalizeClass as ve, createElementVNode as W, withDirectives as gt, createVNode as me, toDisplayString as Qe, unref as D, vModelText as pt, withModifiers as mt, renderList as bt, useSlots as Gt, createBlock as ie, createSlots as Zt, withCtx as A, renderSlot as P, normalizeProps as ye, guardReactiveProps as ge, createTextVNode as qt } from "vue";
|
|
2
|
+
import { l as St, f as be, X as jt, u as Kt, c as Qt, t as _t, p as pe, a as Jt, C as Ke, b as el, D as lt, i as Le, d as xt, $ as tl, J as ll, ai as al, o as ol, e as nl, x as kt, q as rl, r as ul, y as sl, s as Re } from "./index-CFNGWoG-.js";
|
|
3
3
|
import { d as il, t as vl, u as cl, c as dl, a as Lt, l as F, r as at, b as ne, p as wt } 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 Ct } from "./useNestedProp-
|
|
4
|
+
import { _ as hl } from "./Tooltip-DzsG-nM2.js";
|
|
5
|
+
import { L as fl } from "./Legend-DMevrWiD.js";
|
|
6
|
+
import { _ as yl } from "./Title-L3SvCQfU.js";
|
|
7
|
+
import { S as gl } from "./Slicer-BXhvESja.js";
|
|
8
|
+
import { u as pl, U as ml } from "./usePrinter-DlDdG5QU.js";
|
|
9
|
+
import bl from "./vue-ui-accordion-BVInR1D8.js";
|
|
10
|
+
import { D as xl } from "./DataTable-DXHBxZCy.js";
|
|
11
|
+
import kl from "./vue-ui-skeleton-Dexat5oZ.js";
|
|
12
|
+
import { u as Ct } from "./useNestedProp-DHVUTEIl.js";
|
|
13
13
|
import { u as Ll } from "./useUserOptionState-BIvW1Kz7.js";
|
|
14
14
|
import { u as wl } from "./useChartAccessibility-BWojgys7.js";
|
|
15
|
-
import De from "./BaseIcon-
|
|
16
|
-
import { C as Cl } from "./ColorPicker-
|
|
15
|
+
import De from "./BaseIcon-BRjEohPB.js";
|
|
16
|
+
import { C as Cl } from "./ColorPicker-DKHOITuH.js";
|
|
17
17
|
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const $l = {
|
|
19
19
|
class: /* @__PURE__ */ ve({
|
|
@@ -40,8 +40,8 @@ const $l = {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
emits: ["close"],
|
|
43
|
-
setup(
|
|
44
|
-
const J =
|
|
43
|
+
setup($, { emit: _e }) {
|
|
44
|
+
const J = $, Je = _e, k = c([]), q = c([]), re = c("0 0 0 0"), H = c(J.color), f = c(1), p = c("draw"), L = c(null), ee = c(!1), d = c(null), j = c({ x: 0, y: 0 }), K = c([""]), T = c({ row: 0, col: 0 }), B = c(16);
|
|
45
45
|
let te = 1;
|
|
46
46
|
function le() {
|
|
47
47
|
return te++;
|
|
@@ -59,15 +59,15 @@ const $l = {
|
|
|
59
59
|
function Ce(s) {
|
|
60
60
|
if (!L.value || p.value !== "text" || ee.value) return;
|
|
61
61
|
const { x: n, y: a } = we(s);
|
|
62
|
-
j.value = { x: n, y: a },
|
|
62
|
+
j.value = { x: n, y: a }, K.value = [""], T.value = { row: 0, col: 0 };
|
|
63
63
|
const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
64
|
-
r.setAttribute("x", n), r.setAttribute("y", a), r.setAttribute("fill", H.value), r.setAttribute("font-size",
|
|
64
|
+
r.setAttribute("x", n), r.setAttribute("y", a), r.setAttribute("fill", H.value), r.setAttribute("font-size", B.value), r.setAttribute("font-family", "sans-serif"), r.setAttribute("class", "vue-data-ui-doodle"), r.setAttribute("dominant-baseline", "hanging"), r.setAttribute("pointer-events", "all");
|
|
65
65
|
const v = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
66
|
-
v.setAttribute("x", n), v.setAttribute("dy", "0"), v.textContent = "", r.appendChild(v), r.style.pointerEvents = "none", L.value.appendChild(r), d.value = r, ee.value = !0, window.addEventListener("keydown", $e), window.addEventListener("mousedown", ze, !0), ce(), Se();
|
|
66
|
+
v.setAttribute("x", n), v.setAttribute("dy", "0"), v.textContent = "", r.appendChild(v), r.style.pointerEvents = "none", r.style.userSelect = "none", L.value.appendChild(r), d.value = r, ee.value = !0, window.addEventListener("keydown", $e), window.addEventListener("mousedown", ze, !0), ce(), Se();
|
|
67
67
|
}
|
|
68
68
|
function $e(s) {
|
|
69
69
|
if (!ee.value) return;
|
|
70
|
-
let { row: n, col: a } = T.value, r =
|
|
70
|
+
let { row: n, col: a } = T.value, r = K.value.slice(), v = !1;
|
|
71
71
|
if (s.key === "Enter") {
|
|
72
72
|
const h = r[n], l = h.slice(0, a), z = h.slice(a);
|
|
73
73
|
r.splice(n, 1, l, z), n += 1, a = 0, v = !0, s.preventDefault();
|
|
@@ -95,14 +95,14 @@ const $l = {
|
|
|
95
95
|
Me(!0);
|
|
96
96
|
return;
|
|
97
97
|
} else s.key === "Tab" && s.preventDefault();
|
|
98
|
-
v && (
|
|
98
|
+
v && (K.value = r, T.value = { row: n, col: a }, ce(), Se());
|
|
99
99
|
}
|
|
100
100
|
function ce() {
|
|
101
101
|
const s = d.value, { x: n, y: a } = j.value;
|
|
102
102
|
for (; s.firstChild; ) s.removeChild(s.firstChild);
|
|
103
|
-
|
|
103
|
+
K.value.forEach((r, v) => {
|
|
104
104
|
const h = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
105
|
-
h.setAttribute("x", n), h.setAttribute("dy", v === 0 ? "0" : `${
|
|
105
|
+
h.setAttribute("x", n), h.setAttribute("dy", v === 0 ? "0" : `${B.value * 1.2}`), h.textContent = r.length ? r : "", s.appendChild(h);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
function Se() {
|
|
@@ -110,7 +110,7 @@ const $l = {
|
|
|
110
110
|
s && L.value.removeChild(s);
|
|
111
111
|
const n = d.value;
|
|
112
112
|
if (!n) return;
|
|
113
|
-
const { x: a, y: r } = j.value, { row: v, col: h } = T.value, l =
|
|
113
|
+
const { x: a, y: r } = j.value, { row: v, col: h } = T.value, l = B.value, z = n.childNodes[v];
|
|
114
114
|
if (!z) return;
|
|
115
115
|
let I = z.textContent.slice(0, h);
|
|
116
116
|
I.endsWith(" ") && (I += " ");
|
|
@@ -118,9 +118,9 @@ const $l = {
|
|
|
118
118
|
y.setAttribute("x", a), y.setAttribute("y", r), y.setAttribute("font-size", l), y.setAttribute("font-family", "sans-serif"), y.textContent = I || "", L.value.appendChild(y);
|
|
119
119
|
const E = y.getBBox();
|
|
120
120
|
L.value.removeChild(y);
|
|
121
|
-
let
|
|
121
|
+
let S = r + v * l * 1.2, g = a + E.width;
|
|
122
122
|
const i = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
123
|
-
i.setAttribute("x", g), i.setAttribute("y",
|
|
123
|
+
i.setAttribute("x", g), i.setAttribute("y", S), i.setAttribute("width", 1), i.setAttribute("height", l), i.setAttribute("fill", H.value), i.setAttribute("class", "vue-data-ui-svg-caret"), L.value.appendChild(i);
|
|
124
124
|
}
|
|
125
125
|
function ze(s) {
|
|
126
126
|
if (d.value && !d.value.contains(s.target)) {
|
|
@@ -133,7 +133,7 @@ const $l = {
|
|
|
133
133
|
window.removeEventListener("keydown", $e), window.removeEventListener("mousedown", ze, !0);
|
|
134
134
|
const n = (r = L.value) == null ? void 0 : r.querySelector(".vue-data-ui-svg-caret");
|
|
135
135
|
n && L.value.removeChild(n);
|
|
136
|
-
const a =
|
|
136
|
+
const a = K.value.every(
|
|
137
137
|
(v) => !v || v === ""
|
|
138
138
|
);
|
|
139
139
|
s || a || k.value.push({
|
|
@@ -142,11 +142,11 @@ const $l = {
|
|
|
142
142
|
x: j.value.x,
|
|
143
143
|
y: j.value.y,
|
|
144
144
|
color: H.value,
|
|
145
|
-
fontSize:
|
|
146
|
-
lines:
|
|
147
|
-
}), d.value && L.value && L.value.contains(d.value) && L.value.removeChild(d.value), ee.value = !1, d.value = null,
|
|
145
|
+
fontSize: B.value,
|
|
146
|
+
lines: K.value.map((v) => v)
|
|
147
|
+
}), d.value && L.value && L.value.contains(d.value) && L.value.removeChild(d.value), ee.value = !1, d.value = null, K.value = [""], T.value = { row: 0, col: 0 };
|
|
148
148
|
}
|
|
149
|
-
const
|
|
149
|
+
const Q = R(() => St(J.color, 0.6));
|
|
150
150
|
function de({ width: s, height: n }) {
|
|
151
151
|
re.value = `0 0 ${s} ${n}`;
|
|
152
152
|
}
|
|
@@ -166,7 +166,7 @@ const $l = {
|
|
|
166
166
|
}), L.value = U.value.querySelector("g");
|
|
167
167
|
}), $t(() => {
|
|
168
168
|
ue.value && ue.value.disconnect();
|
|
169
|
-
}),
|
|
169
|
+
}), _(
|
|
170
170
|
() => J.parent,
|
|
171
171
|
(s) => {
|
|
172
172
|
if (!s) return;
|
|
@@ -174,7 +174,7 @@ const $l = {
|
|
|
174
174
|
de({ width: n, height: a });
|
|
175
175
|
},
|
|
176
176
|
{ immediate: !0 }
|
|
177
|
-
),
|
|
177
|
+
), _(p, (s) => {
|
|
178
178
|
var n, a;
|
|
179
179
|
s === "text" ? (n = U.value) == null || n.addEventListener("mousedown", Ce) : (a = U.value) == null || a.removeEventListener("mousedown", Ce);
|
|
180
180
|
});
|
|
@@ -199,7 +199,7 @@ const $l = {
|
|
|
199
199
|
return s;
|
|
200
200
|
const r = Te(a), v = [`M ${r[0]} ${r[1]}`];
|
|
201
201
|
for (let z = 2; z < r.length - 2; z += 2) {
|
|
202
|
-
const I = r[z - 2], y = r[z - 1], E = r[z],
|
|
202
|
+
const I = r[z - 2], y = r[z - 1], E = r[z], S = r[z + 1], g = (I + E) / 2, i = (y + S) / 2;
|
|
203
203
|
v.push(`Q ${I} ${y} ${g} ${i}`);
|
|
204
204
|
}
|
|
205
205
|
const h = r[r.length - 2], l = r[r.length - 1];
|
|
@@ -222,17 +222,17 @@ const $l = {
|
|
|
222
222
|
if (r = z, r === "M" || r === "L")
|
|
223
223
|
v = parseFloat(n[++l]), h = parseFloat(n[++l]), a += `${r}${v} ${h}`;
|
|
224
224
|
else if (r === "Q") {
|
|
225
|
-
const I = parseFloat(n[++l]), y = parseFloat(n[++l]), E = parseFloat(n[++l]),
|
|
226
|
-
I === v && y === h ? a += `t${E - v} ${
|
|
225
|
+
const I = parseFloat(n[++l]), y = parseFloat(n[++l]), E = parseFloat(n[++l]), S = parseFloat(n[++l]);
|
|
226
|
+
I === v && y === h ? a += `t${E - v} ${S - h}` : a += `q${I - v} ${y - h} ${E - v} ${S - h}`, v = E, h = S;
|
|
227
227
|
}
|
|
228
228
|
} else {
|
|
229
229
|
const I = parseFloat(z), y = parseFloat(n[++l]);
|
|
230
230
|
if (r === "L") {
|
|
231
|
-
const E = I - v,
|
|
232
|
-
E === 0 ? a += `v${
|
|
231
|
+
const E = I - v, S = y - h;
|
|
232
|
+
E === 0 ? a += `v${S}` : S === 0 ? a += `h${E}` : a += `l${E} ${S}`, v = I, h = y;
|
|
233
233
|
} else if (r === "Q") {
|
|
234
|
-
const E = I,
|
|
235
|
-
E === v &&
|
|
234
|
+
const E = I, S = y, g = parseFloat(n[++l]), i = parseFloat(n[++l]);
|
|
235
|
+
E === v && S === h ? a += `t${g - v} ${i - h}` : a += `q${E - v} ${S - h} ${g - v} ${i - h}`, v = g, h = i;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
}
|
|
@@ -272,58 +272,59 @@ const $l = {
|
|
|
272
272
|
}
|
|
273
273
|
const Ie = c(null);
|
|
274
274
|
return (s, n) => (w(), M(je, null, [
|
|
275
|
-
|
|
275
|
+
$.active ? (w(), M("div", {
|
|
276
276
|
key: 0,
|
|
277
277
|
"data-dom-to-png-ignore": "",
|
|
278
278
|
class: ve({
|
|
279
279
|
"vue-ui-pen-and-paper-actions": !0,
|
|
280
|
-
visible:
|
|
281
|
-
})
|
|
280
|
+
visible: $.active
|
|
281
|
+
}),
|
|
282
|
+
style: N({ backgroundColor: $.backgroundColor })
|
|
282
283
|
}, [
|
|
283
284
|
W("button", {
|
|
284
285
|
class: "vue-ui-pen-and-paper-action",
|
|
285
|
-
style:
|
|
286
|
-
backgroundColor:
|
|
287
|
-
border: `1px solid ${
|
|
286
|
+
style: N({
|
|
287
|
+
backgroundColor: $.backgroundColor,
|
|
288
|
+
border: `1px solid ${Q.value}`
|
|
288
289
|
}),
|
|
289
290
|
onClick: n[0] || (n[0] = (a) => Je("close"))
|
|
290
291
|
}, [
|
|
291
292
|
me(De, {
|
|
292
293
|
name: "close",
|
|
293
|
-
stroke:
|
|
294
|
+
stroke: $.color
|
|
294
295
|
}, null, 8, ["stroke"])
|
|
295
296
|
], 4),
|
|
296
297
|
W("button", $l, [
|
|
297
298
|
me(Cl, {
|
|
298
299
|
value: H.value,
|
|
299
300
|
"onUpdate:value": n[1] || (n[1] = (a) => H.value = a),
|
|
300
|
-
backgroundColor:
|
|
301
|
-
buttonBorderColor:
|
|
301
|
+
backgroundColor: $.backgroundColor,
|
|
302
|
+
buttonBorderColor: Q.value
|
|
302
303
|
}, null, 8, ["value", "backgroundColor", "buttonBorderColor"])
|
|
303
304
|
]),
|
|
304
305
|
W("button", {
|
|
305
306
|
class: ve(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": p.value === "text" }]),
|
|
306
307
|
onClick: n[2] || (n[2] = (a) => p.value = p.value === "text" ? "draw" : "text"),
|
|
307
|
-
style:
|
|
308
|
-
backgroundColor:
|
|
309
|
-
border: `1px solid ${
|
|
308
|
+
style: N({
|
|
309
|
+
backgroundColor: $.backgroundColor,
|
|
310
|
+
border: `1px solid ${Q.value}`
|
|
310
311
|
})
|
|
311
312
|
}, [
|
|
312
313
|
me(De, {
|
|
313
314
|
name: p.value === "draw" ? "annotator" : "text",
|
|
314
|
-
stroke:
|
|
315
|
+
stroke: $.color
|
|
315
316
|
}, null, 8, ["name", "stroke"]),
|
|
316
317
|
W("div", {
|
|
317
|
-
style:
|
|
318
|
+
style: N({
|
|
318
319
|
position: "absolute",
|
|
319
320
|
bottom: "-20px",
|
|
320
|
-
color:
|
|
321
|
+
color: Q.value,
|
|
321
322
|
width: "100%",
|
|
322
323
|
textAlign: "center",
|
|
323
324
|
fontSize: "12px"
|
|
324
325
|
})
|
|
325
|
-
},
|
|
326
|
-
v: p.value === "draw" ? f.value :
|
|
326
|
+
}, Qe(D(be)({
|
|
327
|
+
v: p.value === "draw" ? f.value : B.value,
|
|
327
328
|
s: "px",
|
|
328
329
|
r: 1
|
|
329
330
|
})), 5)
|
|
@@ -334,16 +335,16 @@ const $l = {
|
|
|
334
335
|
"vue-ui-pen-and-paper-action-disabled": !k.value.length
|
|
335
336
|
}),
|
|
336
337
|
disabled: !k.value.length,
|
|
337
|
-
style:
|
|
338
|
-
backgroundColor:
|
|
339
|
-
border: `1px solid ${
|
|
338
|
+
style: N({
|
|
339
|
+
backgroundColor: $.backgroundColor,
|
|
340
|
+
border: `1px solid ${Q.value}`,
|
|
340
341
|
marginTop: "20px"
|
|
341
342
|
}),
|
|
342
343
|
onClick: Xe
|
|
343
344
|
}, [
|
|
344
345
|
me(De, {
|
|
345
346
|
name: "restart",
|
|
346
|
-
stroke:
|
|
347
|
+
stroke: $.color
|
|
347
348
|
}, null, 8, ["stroke"])
|
|
348
349
|
], 14, Sl),
|
|
349
350
|
W("button", {
|
|
@@ -351,15 +352,15 @@ const $l = {
|
|
|
351
352
|
"vue-ui-pen-and-paper-action": !0,
|
|
352
353
|
"vue-ui-pen-and-paper-action-disabled": !q.value.length
|
|
353
354
|
}),
|
|
354
|
-
style:
|
|
355
|
-
backgroundColor:
|
|
356
|
-
border: `1px solid ${
|
|
355
|
+
style: N({
|
|
356
|
+
backgroundColor: $.backgroundColor,
|
|
357
|
+
border: `1px solid ${Q.value}`
|
|
357
358
|
}),
|
|
358
359
|
onClick: He
|
|
359
360
|
}, [
|
|
360
361
|
me(De, {
|
|
361
362
|
name: "restart",
|
|
362
|
-
stroke:
|
|
363
|
+
stroke: $.color,
|
|
363
364
|
style: { transform: "scaleX(-1)" }
|
|
364
365
|
}, null, 8, ["stroke"])
|
|
365
366
|
], 6),
|
|
@@ -368,15 +369,15 @@ const $l = {
|
|
|
368
369
|
"vue-ui-pen-and-paper-action": !0,
|
|
369
370
|
"vue-ui-pen-and-paper-action-disabled": !k.value.length
|
|
370
371
|
}, "vue-ui-pen-and-paper-action"]),
|
|
371
|
-
style:
|
|
372
|
-
backgroundColor:
|
|
373
|
-
border: `1px solid ${
|
|
372
|
+
style: N({
|
|
373
|
+
backgroundColor: $.backgroundColor,
|
|
374
|
+
border: `1px solid ${Q.value}`
|
|
374
375
|
}),
|
|
375
376
|
onClick: Ue
|
|
376
377
|
}, [
|
|
377
378
|
me(De, {
|
|
378
379
|
name: "trash",
|
|
379
|
-
stroke:
|
|
380
|
+
stroke: $.color
|
|
380
381
|
}, null, 8, ["stroke"])
|
|
381
382
|
], 6),
|
|
382
383
|
p.value === "draw" ? gt((w(), M("input", {
|
|
@@ -389,7 +390,7 @@ const $l = {
|
|
|
389
390
|
max: 12,
|
|
390
391
|
step: 0.1,
|
|
391
392
|
"onUpdate:modelValue": n[3] || (n[3] = (a) => f.value = a),
|
|
392
|
-
style:
|
|
393
|
+
style: N({ accentColor: $.color })
|
|
393
394
|
}, null, 4)), [
|
|
394
395
|
[pt, f.value]
|
|
395
396
|
]) : Z("", !0),
|
|
@@ -402,12 +403,12 @@ const $l = {
|
|
|
402
403
|
min: 3,
|
|
403
404
|
max: 48,
|
|
404
405
|
step: 0.1,
|
|
405
|
-
"onUpdate:modelValue": n[4] || (n[4] = (a) =>
|
|
406
|
-
style:
|
|
406
|
+
"onUpdate:modelValue": n[4] || (n[4] = (a) => B.value = a),
|
|
407
|
+
style: N({ accentColor: $.color })
|
|
407
408
|
}, null, 4)), [
|
|
408
|
-
[pt,
|
|
409
|
+
[pt, B.value]
|
|
409
410
|
]) : Z("", !0)
|
|
410
|
-
],
|
|
411
|
+
], 6)) : Z("", !0),
|
|
411
412
|
(w(), M("svg", {
|
|
412
413
|
"data-mode": p.value,
|
|
413
414
|
ref_key: "svgElement",
|
|
@@ -416,7 +417,7 @@ const $l = {
|
|
|
416
417
|
viewBox: re.value,
|
|
417
418
|
class: ve({
|
|
418
419
|
"vue-ui-pen-and-paper": !0,
|
|
419
|
-
inactive:
|
|
420
|
+
inactive: !$.active
|
|
420
421
|
}),
|
|
421
422
|
onMousedown: Ne,
|
|
422
423
|
onMousemove: Be,
|
|
@@ -460,7 +461,7 @@ const $l = {
|
|
|
460
461
|
key: v,
|
|
461
462
|
x: a.x,
|
|
462
463
|
dy: v === 0 ? "0" : a.fontSize * 1.2
|
|
463
|
-
},
|
|
464
|
+
}, Qe(r.length ? r : ""), 9, Al))), 128))
|
|
464
465
|
], 8, Il)) : Z("", !0)
|
|
465
466
|
], 64))), 128))
|
|
466
467
|
], 512),
|
|
@@ -475,7 +476,7 @@ const $l = {
|
|
|
475
476
|
], 42, zl))
|
|
476
477
|
], 64));
|
|
477
478
|
}
|
|
478
|
-
}, Fl = /* @__PURE__ */ zt(Pl, [["__scopeId", "data-v-
|
|
479
|
+
}, Fl = /* @__PURE__ */ zt(Pl, [["__scopeId", "data-v-14478ba4"]]), Rl = ["id"], Dl = ["onClick"], Ol = {
|
|
479
480
|
key: 2,
|
|
480
481
|
class: "vue-data-ui-watermark"
|
|
481
482
|
}, Nl = ["innerHTML"], Bl = {
|
|
@@ -495,8 +496,8 @@ const $l = {
|
|
|
495
496
|
}
|
|
496
497
|
},
|
|
497
498
|
emits: ["selectLegend"],
|
|
498
|
-
setup(
|
|
499
|
-
const { vue_ui_xy_canvas: Je } =
|
|
499
|
+
setup($, { expose: _e, emit: J }) {
|
|
500
|
+
const { vue_ui_xy_canvas: Je } = Kt(), k = $, q = c(Qt()), re = c(null), H = c(null), f = c(null), p = c(1), L = c(1), ee = c(!1), d = c(null), j = c(""), K = c(null), T = c([]), B = c(1), te = c(!0), le = c(!0), we = c(null), Ce = c(0), $e = c(0), ce = c(!1), Se = c(null), ze = c(null), Me = c(null), Q = c(null), de = c(0), ue = c(0), ae = c(0), O = c(null), U = R(() => !!k.dataset && k.dataset.length), Ne = J, Be = Gt();
|
|
500
501
|
ot(() => {
|
|
501
502
|
Be["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
502
503
|
});
|
|
@@ -515,12 +516,12 @@ const $l = {
|
|
|
515
516
|
userConfig: Jt.vue_ui_xy_canvas[e.theme] || k.config,
|
|
516
517
|
defaultConfig: e
|
|
517
518
|
}),
|
|
518
|
-
customPalette:
|
|
519
|
-
} : o = e, k.config &&
|
|
519
|
+
customPalette: _t[e.theme] || pe
|
|
520
|
+
} : o = e, k.config && Ke(k.config, "style.chart.scale.min") ? o.style.chart.scale.min = k.config.style.chart.scale.min : o.style.chart.scale.min = null, k.config && Ke(k.config, "style.chart.scale.max") ? o.style.chart.scale.max = k.config.style.chart.scale.max : o.style.chart.scale.max = null, k.config && Ke(k.config, "style.chart.zoom.startIndex") ? o.style.chart.zoom.startIndex = k.config.style.chart.zoom.startIndex : o.style.chart.zoom.startIndex = null, k.config && Ke(k.config, "style.chart.zoom.endIndex") ? o.style.chart.zoom.endIndex = k.config.style.chart.zoom.endIndex : o.style.chart.zoom.endIndex = null, o;
|
|
520
521
|
}
|
|
521
|
-
|
|
522
|
+
_(() => k.config, (e) => {
|
|
522
523
|
t.value = Xe(), Te.value = !t.value.userOptions.showOnChartHover, et(), de.value += 1, ue.value += 1, ae.value += 1, a.value.showTable = t.value.table.show, a.value.showDataLabels = t.value.style.chart.dataLabels.show, a.value.stacked = t.value.style.chart.stacked, a.value.showTooltip = t.value.style.chart.tooltip.show;
|
|
523
|
-
}, { deep: !0 }),
|
|
524
|
+
}, { deep: !0 }), _(() => k.dataset, () => {
|
|
524
525
|
et(), de.value += 1, ue.value += 1, ae.value += 1;
|
|
525
526
|
}, { deep: !0 });
|
|
526
527
|
const He = c(t.value.style.chart.aspectRatio), { isPrinting: Ue, isImaging: Ie, generatePdf: s, generateImage: n } = pl({
|
|
@@ -536,7 +537,7 @@ const $l = {
|
|
|
536
537
|
function r(e) {
|
|
537
538
|
ce.value = e, $e.value += 1;
|
|
538
539
|
}
|
|
539
|
-
const v = R(() => el(t.value.customPalette)), h = R(() =>
|
|
540
|
+
const v = R(() => el(t.value.customPalette)), h = R(() => S.value ? Math.max(...S.value.filter((e, o) => !T.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = R(() => {
|
|
540
541
|
const e = p.value - p.value * (t.value.style.chart.paddingProportions.left + t.value.style.chart.paddingProportions.right);
|
|
541
542
|
return {
|
|
542
543
|
canvasWidth: p.value,
|
|
@@ -553,13 +554,13 @@ const $l = {
|
|
|
553
554
|
function z(e, o) {
|
|
554
555
|
return e / o;
|
|
555
556
|
}
|
|
556
|
-
function I({ hasAutoScale: e, series: o, min: u, max: m, scale: x, yOffset:
|
|
557
|
+
function I({ hasAutoScale: e, series: o, min: u, max: m, scale: x, yOffset: X, individualHeight: b, stackIndex: C = null }) {
|
|
557
558
|
return o.map((he, G) => {
|
|
558
559
|
const se = x.min < 0 ? Math.abs(x.min) : 0, fe = z(he + se, se + x.max);
|
|
559
560
|
let Pe, Fe;
|
|
560
561
|
e && (Pe = x.min, Fe = z(he - Pe, x.max - Pe));
|
|
561
562
|
let oe = 0;
|
|
562
|
-
return C === null ? oe = l.value.bottom - l.value.height * (e ? Fe : fe) : oe = l.value.bottom -
|
|
563
|
+
return C === null ? oe = l.value.bottom - l.value.height * (e ? Fe : fe) : oe = l.value.bottom - X - b * (e ? Fe : fe), {
|
|
563
564
|
x: l.value.left + l.value.slot * G + l.value.slot / 2,
|
|
564
565
|
y: oe,
|
|
565
566
|
value: he
|
|
@@ -567,7 +568,7 @@ const $l = {
|
|
|
567
568
|
});
|
|
568
569
|
}
|
|
569
570
|
const y = R(() => {
|
|
570
|
-
const e = t.value.style.chart.scale.min !== null ? t.value.style.chart.scale.min : Math.min(
|
|
571
|
+
const e = t.value.style.chart.scale.min !== null ? t.value.style.chart.scale.min : Math.min(...S.value.filter((b, C) => !T.value.includes(b.absoluteIndex)).flatMap((b) => b.series.slice(i.value.start, i.value.end))), o = t.value.style.chart.scale.max !== null ? t.value.style.chart.scale.max : Math.max(...S.value.filter((b, C) => !T.value.includes(b.absoluteIndex)).flatMap((b) => b.series.slice(i.value.start, i.value.end))), u = lt(e < 0 ? e : 0, o === e ? e + 1 < 0 ? 0 : e + 1 : o < 0 ? 0 : o, t.value.style.chart.scale.ticks), m = u.min < 0 ? Math.abs(u.min) : 0, x = l.value.bottom - l.value.height * (m / (u.max + m)), X = u.ticks.map((b) => ({
|
|
571
572
|
y: l.value.bottom - l.value.height * ((b + m) / (u.max + m)),
|
|
572
573
|
x: l.value.left - 8,
|
|
573
574
|
value: b
|
|
@@ -577,7 +578,7 @@ const $l = {
|
|
|
577
578
|
max: o,
|
|
578
579
|
min: e,
|
|
579
580
|
scale: u,
|
|
580
|
-
yLabels:
|
|
581
|
+
yLabels: X,
|
|
581
582
|
zero: x
|
|
582
583
|
};
|
|
583
584
|
}), E = R(() => g.value.map((e) => `
|
|
@@ -598,7 +599,7 @@ const $l = {
|
|
|
598
599
|
{ datapoint: e, seriesIndex: d.value }
|
|
599
600
|
)}</span>
|
|
600
601
|
</div>
|
|
601
|
-
`)),
|
|
602
|
+
`)), S = R(() => k.dataset.map((e, o) => ({
|
|
602
603
|
...e,
|
|
603
604
|
series: tl({
|
|
604
605
|
data: ll(e.series),
|
|
@@ -607,10 +608,10 @@ const $l = {
|
|
|
607
608
|
absoluteIndex: o,
|
|
608
609
|
color: xt(e.color || v.value[o] || pe[o] || pe[o % pe.length])
|
|
609
610
|
})));
|
|
610
|
-
|
|
611
|
+
_(h, (e) => {
|
|
611
612
|
e && nt();
|
|
612
613
|
});
|
|
613
|
-
const g = R(() => al(
|
|
614
|
+
const g = R(() => al(S.value.filter((e, o) => !T.value.includes(e.absoluteIndex))).map((e, o) => ({
|
|
614
615
|
...e,
|
|
615
616
|
series: e.series.slice(i.value.start, i.value.end)
|
|
616
617
|
})).map((e, o) => {
|
|
@@ -619,9 +620,9 @@ const $l = {
|
|
|
619
620
|
const x = {
|
|
620
621
|
valueMin: u,
|
|
621
622
|
valueMax: m
|
|
622
|
-
},
|
|
623
|
+
}, X = e.scaleSteps || t.value.style.chart.scale.ticks;
|
|
623
624
|
let b;
|
|
624
|
-
e.autoScaling ? b = lt(x.valueMin, x.valueMax,
|
|
625
|
+
e.autoScaling ? b = lt(x.valueMin, x.valueMax, X) : b = lt(x.valueMin < 0 ? x.valueMin : 0, x.valueMax <= 0 ? 0 : x.valueMax, X);
|
|
625
626
|
const C = a.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, he = a.value.stacked ? l.value.height / t.value.style.chart.stackGap : 0, G = a.value.stacked ? l.value.height * e.stackRatio - he : l.value.height, se = b.min < 0 ? Math.abs(b.min) : 0;
|
|
626
627
|
let fe;
|
|
627
628
|
e.autoScaling && a.value.stacked && m <= 0 ? fe = l.value.bottom - C - G : fe = l.value.bottom - C - G * (se / (b.max + se));
|
|
@@ -669,12 +670,12 @@ const $l = {
|
|
|
669
670
|
const o = h.value;
|
|
670
671
|
return e > o ? o : e < 0 || t.value.style.chart.zoom.startIndex !== null && e < t.value.style.chart.zoom.startIndex ? t.value.style.chart.zoom.startIndex !== null ? t.value.style.chart.zoom.startIndex + 1 : 1 : e;
|
|
671
672
|
}
|
|
672
|
-
const Tt = R(() => g.value.filter((e) => ["line", "plot", void 0].includes(e.type))),
|
|
673
|
+
const Tt = R(() => g.value.filter((e) => ["line", "plot", void 0].includes(e.type))), Y = R(() => g.value.filter((e) => e.type === "bar"));
|
|
673
674
|
function It() {
|
|
674
675
|
if (!V.value)
|
|
675
676
|
return;
|
|
676
677
|
const e = H.value.offsetWidth, o = H.value.offsetHeight;
|
|
677
|
-
V.value.width = e *
|
|
678
|
+
V.value.width = e * B.value * 2, V.value.height = o * B.value * 2, p.value = e * B.value * 2, L.value = o * B.value * 2, f.value.scale(B.value, B.value), Ae();
|
|
678
679
|
}
|
|
679
680
|
function At() {
|
|
680
681
|
if (f.value.clearRect(0, 0, 1e4, 1e4), f.value.fillStyle = t.value.style.chart.backgroundColor, f.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), a.value.stacked)
|
|
@@ -1052,25 +1053,25 @@ const $l = {
|
|
|
1052
1053
|
);
|
|
1053
1054
|
}
|
|
1054
1055
|
function Nt() {
|
|
1055
|
-
|
|
1056
|
+
Y.value.forEach((e, o) => {
|
|
1056
1057
|
for (let u = 0; u < e.coordinatesLine.length; u += 1)
|
|
1057
1058
|
at(
|
|
1058
1059
|
f.value,
|
|
1059
1060
|
[
|
|
1060
1061
|
{
|
|
1061
|
-
x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot /
|
|
1062
|
+
x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / Y.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * Y.value.length) * o)),
|
|
1062
1063
|
y: a.value.stacked ? e.localZero : y.value.zero
|
|
1063
1064
|
},
|
|
1064
1065
|
{
|
|
1065
|
-
x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot /
|
|
1066
|
+
x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / Y.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * Y.value.length) * o)) + l.value.slot * 0.8 / (a.value.stacked ? 1 : Y.value.length),
|
|
1066
1067
|
y: a.value.stacked ? e.localZero : y.value.zero
|
|
1067
1068
|
},
|
|
1068
1069
|
{
|
|
1069
|
-
x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot /
|
|
1070
|
+
x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / Y.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * Y.value.length) * o)) + l.value.slot * 0.8 / (a.value.stacked ? 1 : Y.value.length),
|
|
1070
1071
|
y: e.coordinatesLine[u].y
|
|
1071
1072
|
},
|
|
1072
1073
|
{
|
|
1073
|
-
x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot /
|
|
1074
|
+
x: l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / Y.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * Y.value.length) * o)),
|
|
1074
1075
|
y: e.coordinatesLine[u].y
|
|
1075
1076
|
}
|
|
1076
1077
|
],
|
|
@@ -1105,7 +1106,7 @@ const $l = {
|
|
|
1105
1106
|
}),
|
|
1106
1107
|
{ datapoint: e.coordinatesLine[u], seriesIndex: u }
|
|
1107
1108
|
),
|
|
1108
|
-
l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot /
|
|
1109
|
+
l.value.left + l.value.slot * u + l.value.slot / 10 + (a.value.stacked ? 0 : l.value.slot / Y.value.length * o - (o === 0 ? 0 : l.value.slot / (5 * Y.value.length) * o)) + l.value.slot * 0.4 / (a.value.stacked ? 1 : Y.value.length),
|
|
1109
1110
|
(e.coordinatesLine[u].value < 0 ? a.value.stacked ? e.localZero : y.value.zero : e.coordinatesLine[u].y) + t.value.style.chart.dataLabels.offsetY,
|
|
1110
1111
|
{
|
|
1111
1112
|
align: "center",
|
|
@@ -1189,7 +1190,7 @@ const $l = {
|
|
|
1189
1190
|
}
|
|
1190
1191
|
const x = m * 2 - l.value.left;
|
|
1191
1192
|
if (d.value = Math.floor(x / l.value.slot), ee.value = !0, !le.value) return;
|
|
1192
|
-
let
|
|
1193
|
+
let X = "";
|
|
1193
1194
|
const b = t.value.style.chart.tooltip.customFormat;
|
|
1194
1195
|
kt(b) && sl(() => b({
|
|
1195
1196
|
seriesIndex: d.value,
|
|
@@ -1213,19 +1214,19 @@ const $l = {
|
|
|
1213
1214
|
})),
|
|
1214
1215
|
series: g.value,
|
|
1215
1216
|
config: t.value
|
|
1216
|
-
}) : (t.value.style.chart.grid.y.timeLabels.values.slice(i.value.start, i.value.end)[d.value] && (
|
|
1217
|
+
}) : (t.value.style.chart.grid.y.timeLabels.values.slice(i.value.start, i.value.end)[d.value] && (X += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.style.chart.tooltip.borderColor}; width:100%">${t.value.style.chart.grid.y.timeLabels.values.slice(i.value.start, i.value.end)[d.value]}</div>`), X += E.value.join(""), j.value = X), le.value = !1;
|
|
1217
1218
|
}
|
|
1218
|
-
|
|
1219
|
+
_(() => d.value, (e) => {
|
|
1219
1220
|
We();
|
|
1220
|
-
}),
|
|
1221
|
+
}), _(() => i.value, (e) => {
|
|
1221
1222
|
te.value = !0, Ae();
|
|
1222
1223
|
}, {
|
|
1223
1224
|
deep: !0
|
|
1224
|
-
}),
|
|
1225
|
+
}), _(() => a.value.showDataLabels, (e) => {
|
|
1225
1226
|
te.value = !0, Ae();
|
|
1226
|
-
}),
|
|
1227
|
+
}), _(() => O.value, (e) => {
|
|
1227
1228
|
e && Ae();
|
|
1228
|
-
}),
|
|
1229
|
+
}), _(() => a.value.stacked, (e) => {
|
|
1229
1230
|
te.value = !0, le.value = !0, We();
|
|
1230
1231
|
});
|
|
1231
1232
|
function Ht() {
|
|
@@ -1246,7 +1247,7 @@ const $l = {
|
|
|
1246
1247
|
title: t.value.style.chart.title.text ? Se.value : null,
|
|
1247
1248
|
legend: t.value.style.chart.legend.show ? ze.value : null,
|
|
1248
1249
|
slicer: t.value.style.chart.zoom.show && h.value > 1 ? Me.value : null,
|
|
1249
|
-
source:
|
|
1250
|
+
source: Q.value
|
|
1250
1251
|
});
|
|
1251
1252
|
requestAnimationFrame(() => {
|
|
1252
1253
|
He.value = `${o} / ${u}`;
|
|
@@ -1265,7 +1266,7 @@ const $l = {
|
|
|
1265
1266
|
function st(e) {
|
|
1266
1267
|
Ne("selectLegend", g.value.find((o) => o.absoluteIndex === e)), T.value.includes(e) ? T.value = T.value.filter((o) => o !== e) : T.value.push(e), te.value = !0, We();
|
|
1267
1268
|
}
|
|
1268
|
-
const it = R(() =>
|
|
1269
|
+
const it = R(() => S.value.map((e, o) => ({
|
|
1269
1270
|
...e,
|
|
1270
1271
|
name: e.name,
|
|
1271
1272
|
color: xt(e.color) || v.value[o] || pe[o] || pe[o % pe.length],
|
|
@@ -1289,8 +1290,8 @@ const $l = {
|
|
|
1289
1290
|
const e = [""].concat(g.value.map((x) => x.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
1290
1291
|
let o = [];
|
|
1291
1292
|
for (let x = 0; x < h.value; x += 1) {
|
|
1292
|
-
const
|
|
1293
|
-
o.push([t.value.style.chart.grid.y.timeLabels.values.slice(i.value.start, i.value.end)[x] ?? x + 1].concat(g.value.map((b) => (b.series[x] ?? 0).toFixed(t.value.table.rounding))).concat((
|
|
1293
|
+
const X = g.value.map((b) => b.series[x] ?? 0).reduce((b, C) => b + C, 0);
|
|
1294
|
+
o.push([t.value.style.chart.grid.y.timeLabels.values.slice(i.value.start, i.value.end)[x] ?? x + 1].concat(g.value.map((b) => (b.series[x] ?? 0).toFixed(t.value.table.rounding))).concat((X ?? 0).toFixed(t.value.table.rounding)));
|
|
1294
1295
|
}
|
|
1295
1296
|
const u = {
|
|
1296
1297
|
th: {
|
|
@@ -1322,7 +1323,7 @@ const $l = {
|
|
|
1322
1323
|
return { head: e, body: o };
|
|
1323
1324
|
});
|
|
1324
1325
|
function ct() {
|
|
1325
|
-
const e = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], o = ["", ...vt.value.head.map((
|
|
1326
|
+
const e = [[t.value.style.chart.title.text], [t.value.style.chart.title.subtitle.text], [""]], o = ["", ...vt.value.head.map((X) => X.label)], u = vt.value.body, m = e.concat([o]).concat(u), x = rl(m);
|
|
1326
1327
|
ul({ csvContent: x, title: t.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
1327
1328
|
}
|
|
1328
1329
|
function Wt() {
|
|
@@ -1344,7 +1345,7 @@ const $l = {
|
|
|
1344
1345
|
function tt() {
|
|
1345
1346
|
qe.value = !qe.value;
|
|
1346
1347
|
}
|
|
1347
|
-
return
|
|
1348
|
+
return _e({
|
|
1348
1349
|
getData: Wt,
|
|
1349
1350
|
generateCsv: ct,
|
|
1350
1351
|
generatePdf: s,
|
|
@@ -1355,7 +1356,7 @@ const $l = {
|
|
|
1355
1356
|
toggleTooltip: yt,
|
|
1356
1357
|
toggleAnnotator: tt
|
|
1357
1358
|
}), (e, o) => (w(), M("div", {
|
|
1358
|
-
style:
|
|
1359
|
+
style: N(`width:100%; position:relative; ${t.value.responsive ? "height: 100%" : ""}`),
|
|
1359
1360
|
ref_key: "xy",
|
|
1360
1361
|
ref: re,
|
|
1361
1362
|
id: `xy_canvas_${q.value}`,
|
|
@@ -1367,7 +1368,7 @@ const $l = {
|
|
|
1367
1368
|
key: 0,
|
|
1368
1369
|
ref_key: "chartTitle",
|
|
1369
1370
|
ref: Se,
|
|
1370
|
-
style:
|
|
1371
|
+
style: N(`width:100%;background:${t.value.style.chart.backgroundColor};`)
|
|
1371
1372
|
}, [
|
|
1372
1373
|
(w(), ie(yl, {
|
|
1373
1374
|
key: `title_${de.value}`,
|
|
@@ -1396,7 +1397,7 @@ const $l = {
|
|
|
1396
1397
|
hasImg: t.value.userOptions.buttons.img,
|
|
1397
1398
|
hasXls: t.value.userOptions.buttons.csv,
|
|
1398
1399
|
hasLabel: t.value.userOptions.buttons.labels,
|
|
1399
|
-
hasStack:
|
|
1400
|
+
hasStack: $.dataset.length > 1 && t.value.userOptions.buttons.stack,
|
|
1400
1401
|
hasFullscreen: t.value.userOptions.buttons.fullscreen,
|
|
1401
1402
|
hasTable: i.value.end - i.value.start < 200 && t.value.userOptions.buttons.table,
|
|
1402
1403
|
isFullscreen: ce.value,
|
|
@@ -1416,7 +1417,7 @@ const $l = {
|
|
|
1416
1417
|
onToggleStack: ft,
|
|
1417
1418
|
onToggleTooltip: yt,
|
|
1418
1419
|
onToggleAnnotator: tt,
|
|
1419
|
-
style:
|
|
1420
|
+
style: N({
|
|
1420
1421
|
visibility: D(xe) ? D(Te) ? "visible" : "hidden" : "visible"
|
|
1421
1422
|
})
|
|
1422
1423
|
}, Zt({ _: 2 }, [
|
|
@@ -1493,7 +1494,7 @@ const $l = {
|
|
|
1493
1494
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : Z("", !0),
|
|
1494
1495
|
W("div", {
|
|
1495
1496
|
class: "vue-ui-xy-canvas",
|
|
1496
|
-
style:
|
|
1497
|
+
style: N(`position: relative; aspect-ratio: ${He.value}`),
|
|
1497
1498
|
ref_key: "container",
|
|
1498
1499
|
ref: H
|
|
1499
1500
|
}, [
|
|
@@ -1539,10 +1540,10 @@ const $l = {
|
|
|
1539
1540
|
isCustom: D(kt)(t.value.style.chart.tooltip.customFormat)
|
|
1540
1541
|
}, {
|
|
1541
1542
|
"tooltip-before": A(() => [
|
|
1542
|
-
P(e.$slots, "tooltip-before", ye(ge({ ...
|
|
1543
|
+
P(e.$slots, "tooltip-before", ye(ge({ ...K.value })), void 0, !0)
|
|
1543
1544
|
]),
|
|
1544
1545
|
"tooltip-after": A(() => [
|
|
1545
|
-
P(e.$slots, "tooltip-after", ye(ge({ ...
|
|
1546
|
+
P(e.$slots, "tooltip-after", ye(ge({ ...K.value })), void 0, !0)
|
|
1546
1547
|
]),
|
|
1547
1548
|
_: 3
|
|
1548
1549
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
|
|
@@ -1550,7 +1551,7 @@ const $l = {
|
|
|
1550
1551
|
W("div", {
|
|
1551
1552
|
ref_key: "chartSlicer",
|
|
1552
1553
|
ref: Me,
|
|
1553
|
-
style:
|
|
1554
|
+
style: N(`width:100%;background:${t.value.style.chart.backgroundColor}`),
|
|
1554
1555
|
"data-dom-to-png-ignore": ""
|
|
1555
1556
|
}, [
|
|
1556
1557
|
t.value.style.chart.zoom.show && h.value > 1 ? (w(), ie(gl, {
|
|
@@ -1599,8 +1600,8 @@ const $l = {
|
|
|
1599
1600
|
item: A(({ legend: u, index: m }) => [
|
|
1600
1601
|
W("div", {
|
|
1601
1602
|
onClick: (x) => u.segregate(),
|
|
1602
|
-
style:
|
|
1603
|
-
},
|
|
1603
|
+
style: N(`opacity:${T.value.includes(m) ? 0.5 : 1}`)
|
|
1604
|
+
}, Qe(u.name), 13, Dl)
|
|
1604
1605
|
]),
|
|
1605
1606
|
_: 1
|
|
1606
1607
|
}, 8, ["legendSet", "config"])) : P(e.$slots, "legend", {
|
|
@@ -1614,7 +1615,7 @@ const $l = {
|
|
|
1614
1615
|
e.$slots.source ? (w(), M("div", {
|
|
1615
1616
|
key: 3,
|
|
1616
1617
|
ref_key: "source",
|
|
1617
|
-
ref:
|
|
1618
|
+
ref: Q,
|
|
1618
1619
|
dir: "auto"
|
|
1619
1620
|
}, [
|
|
1620
1621
|
P(e.$slots, "source", {}, void 0, !0)
|
|
@@ -1649,7 +1650,7 @@ const $l = {
|
|
|
1649
1650
|
W("div", { innerHTML: u }, null, 8, Nl)
|
|
1650
1651
|
]),
|
|
1651
1652
|
td: A(({ td: u }) => [
|
|
1652
|
-
qt(
|
|
1653
|
+
qt(Qe(u), 1)
|
|
1653
1654
|
]),
|
|
1654
1655
|
_: 1
|
|
1655
1656
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|