vue-data-ui 2.3.27 → 2.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -1
- package/dist/{Arrow-HROOtfWV.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-O38M_J_k.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-D8FXGup9.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-CiO8gP9x.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-EqeVt-K-.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-C_lBCmBu.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-8eVERYMn.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-DvcgW6uK.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-D8RdmYWq.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-BvYL7yVK.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-CH_5wnFM.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-B9iq63n1.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-C3Ez1ceq.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-7SRMoiu-.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DcDEanxk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/documentation/installation.md +1 -1
- package/dist/{index-DiWO-_ca.js → index-BlXzlBwZ.js} +447 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-DNX5EefQ.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-BtqgWTf9.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-BD40aUzH.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-Q1J--baX.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-GHpxkf8a.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-yd5q4Ura.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-CAmoj5dT.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-ogVvFfQy.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CiNdgRO9.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-BrTpbEha.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-B9IqZ-Hy.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-QbetAXoj.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-BvRwlc3d.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-XjjwFaDO.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-DtxcnSEp.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-KYENY5gp.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-DfIcguJd.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-C4pJe90O.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-COS_MXr8.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DNOjWStr.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_NUnxEF.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-uufqLbRt.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-Vx5prxaT.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-z_Ck4W33.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-KvrVLLw6.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-Dg4dkrcd.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BjMikE9b.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-BdgveN18.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-D8pokfoA.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-D01FLnNz.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-Cp-EftjP.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-D6rVKouk.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-PWurAGxE.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-YV68i0nk.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-BsypWozL.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-Bx3fXHnw.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BWYCf3Km.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-DsZozq6x.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-qaViBhR3.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-0iFsjuLM.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BkZOKTIS.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-DxDFs1Lb.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-Tw7SKMbQ.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-D5FV2IDm.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DTWIh_CV.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Dds9tjxd.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-B2p8F7-L.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-Cu9lKkX3.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-BKzCFSx-.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CwV9l1P7.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-CnPWz57l.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Bo6i-aRF.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-CeNL0kH-.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-CcrGR_Vh.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-BBcmwq4z.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-BGMzw-SW.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DlvTlA9z.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CSC9zmt7.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-B5g5nxUh.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DJPt0cLe.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-DpvQcFls.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-Bw3y-88R.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-CDSg9rhl.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Ckcir2dk.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DveNwcVx.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-CZUsUeZ_.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-lVVqtsNc.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-qtBWpg0m.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-8hNkBy1z.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-HgHQKSax.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BAPA4nvf.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CcH1qmLq.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-C52mSn4m.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DJfYr02u.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CcLcd5oA.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-dNuNMt_R.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-BOz94BVK.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-BVjbh4oM.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-DMRiVkhu.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/vue-ui-word-cloud-DBxVNlJ3.js +495 -0
- package/dist/vue-ui-word-cloud-Dmcelg3z.cjs +1 -0
- package/dist/{vue-ui-xy-CsFr8tix.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-Bb2Z3E-7.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-C6HTLT7L.cjs +0 -1
- package/dist/index-BQOxn6SH.cjs +0 -4
- package/dist/vue-ui-3d-bar-DkJ4c3HQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CkKVbbl8.cjs +0 -1
- package/dist/vue-ui-chestnut-C7gFvKLJ.cjs +0 -6
- package/dist/vue-ui-donut-C33U3e8H.js +0 -751
- package/dist/vue-ui-donut-CeHnjIGu.cjs +0 -1
- package/dist/vue-ui-donut-evolution-IzfAVo5I.js +0 -805
- package/dist/vue-ui-donut-evolution-hHfvz1Yd.cjs +0 -1
- package/dist/vue-ui-galaxy-B8EoId23.cjs +0 -1
- package/dist/vue-ui-gizmo-8lKc8m8b.cjs +0 -1
- package/dist/vue-ui-heatmap-BEsvmj5R.js +0 -606
- package/dist/vue-ui-heatmap-DvpvKq3Q.cjs +0 -1
- package/dist/vue-ui-mood-radar-C6devC4e.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BtT3VsSf.cjs +0 -16
- package/dist/vue-ui-onion-9ATTDUpw.cjs +0 -1
- package/dist/vue-ui-quadrant-DD4H_Dhk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CpFHKtpm.js +0 -1318
- package/dist/vue-ui-quick-chart-D1udOl47.cjs +0 -13
- package/dist/vue-ui-radar-CZmJDj3q.cjs +0 -1
- package/dist/vue-ui-rings-DN7XmhKZ.cjs +0 -1
- package/dist/vue-ui-scatter-DJlC5mz4.cjs +0 -1
- package/dist/vue-ui-sparkbar-0CNZluKs.js +0 -257
- package/dist/vue-ui-sparkbar-Di-BPkJ0.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BhkYmR4U.cjs +0 -1
- package/dist/vue-ui-stackbar-jNWFgXiA.cjs +0 -15
- package/dist/vue-ui-strip-plot-CzHFNhr3.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZY_23mg.js +0 -420
- package/dist/vue-ui-table-sparkline-Q8y6tloS.cjs +0 -1
- package/dist/vue-ui-thermometer-Cbu9jVvC.cjs +0 -1
- package/dist/vue-ui-treemap-orjA7Y0U.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BHIt5cjc.cjs +0 -4
- package/dist/vue-ui-vertical-bar-BquCm_UG.js +0 -745
- package/dist/vue-ui-waffle-CNlp7RTS.js +0 -650
- package/dist/vue-ui-waffle-Dv8pXiYm.cjs +0 -1
- package/dist/vue-ui-word-cloud-CHRE8f_k.js +0 -352
- package/dist/vue-ui-word-cloud-CZum_IjT.cjs +0 -1
- package/dist/vue-ui-xy-BOoG4xg8.cjs +0 -3
- package/dist/vue-ui-xy-canvas-BHa3-phi.cjs +0 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { L as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { D as
|
|
11
|
-
import
|
|
12
|
-
import { u as
|
|
13
|
-
import { _ as
|
|
14
|
-
const Xa = ["id"],
|
|
1
|
+
import { ref as d, computed as m, watch as re, onMounted as ha, onBeforeUnmount as ya, openBlock as T, createElementBlock as se, normalizeStyle as X, normalizeClass as fa, createVNode as ye, createCommentVNode as A, createBlock as Z, unref as E, createSlots as ga, withCtx as b, renderSlot as k, normalizeProps as G, guardReactiveProps as V, createElementVNode as j, toDisplayString as We, createTextVNode as pa } from "vue";
|
|
2
|
+
import { u as ma, c as ba, t as xa, a as La, p as N, b as ka, A as fe, i as q, f as J, d as Ye, U as Ca, o as wa, e as Sa, w as Be, x as $a, q as za, r as Ta, v as K, l as Ma } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { d as Ra, c as Ia, a as Ue, t as Oa, l as C, r as ge, b as O, p as Xe, u as Pa } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Fa } from "./Tooltip-B11OahTD.js";
|
|
5
|
+
import { L as Ea } from "./Legend-CkQ_zypV.js";
|
|
6
|
+
import { _ as Na } from "./Title-eBTH8iGJ.js";
|
|
7
|
+
import { S as _a } from "./Slicer-DaEfxscP.js";
|
|
8
|
+
import { u as Da, U as Ha } from "./usePrinter-CZ8F5Cth.js";
|
|
9
|
+
import Wa from "./vue-ui-accordion-wHRG3nXl.js";
|
|
10
|
+
import { D as Ya } from "./DataTable-CsPidn0_.js";
|
|
11
|
+
import Ba from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
12
|
+
import { u as Ae } from "./useNestedProp-BoNl5H_z.js";
|
|
13
|
+
import { _ as Ua } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Xa = ["id"], Aa = ["onClick"], Za = {
|
|
15
15
|
key: 2,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Ga = ["innerHTML"], Va = {
|
|
18
18
|
__name: "vue-ui-xy-canvas",
|
|
19
19
|
props: {
|
|
20
20
|
dataset: {
|
|
@@ -31,32 +31,32 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const _ =
|
|
36
|
-
const e =
|
|
34
|
+
setup(pe, { expose: Ze, emit: Ge }) {
|
|
35
|
+
const _ = pe, { vue_ui_xy_canvas: Ve } = ma(), ne = d(ba()), Q = d(null), S = d(null), H = d(null), s = d(null), y = d(1), M = d(1), ee = d(!1), c = d(null), ae = d(""), me = d(null), w = d([]), D = d(1), P = d(!0), $ = d(!0), ie = d(null), be = d(0), xe = d(0), ve = d(!1), Le = d(null), ke = d(null), Ce = d(null), ce = m(() => !!_.dataset && _.dataset.length), a = m(() => {
|
|
36
|
+
const e = Ae({
|
|
37
37
|
userConfig: _.config,
|
|
38
|
-
defaultConfig:
|
|
38
|
+
defaultConfig: Ve
|
|
39
39
|
});
|
|
40
40
|
return e.theme ? {
|
|
41
|
-
...
|
|
42
|
-
userConfig:
|
|
41
|
+
...Ae({
|
|
42
|
+
userConfig: xa.vue_ui_xy_canvas[e.theme] || _.config,
|
|
43
43
|
defaultConfig: e
|
|
44
44
|
}),
|
|
45
|
-
customPalette:
|
|
45
|
+
customPalette: La[e.theme] || N
|
|
46
46
|
} : e;
|
|
47
|
-
}),
|
|
48
|
-
elementId: `xy_canvas_${
|
|
47
|
+
}), we = d(a.value.style.chart.aspectRatio), { isPrinting: Se, isImaging: $e, generatePdf: ze, generateImage: Te } = Da({
|
|
48
|
+
elementId: `xy_canvas_${ne.value}`,
|
|
49
49
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
50
|
-
}), r =
|
|
50
|
+
}), r = d({
|
|
51
51
|
showTable: a.value.table.show,
|
|
52
52
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
53
53
|
stacked: a.value.style.chart.stacked,
|
|
54
54
|
showTooltip: a.value.style.chart.tooltip.show
|
|
55
55
|
});
|
|
56
|
-
function
|
|
57
|
-
|
|
56
|
+
function je(e) {
|
|
57
|
+
ve.value = e, xe.value += 1;
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const Me = m(() => ka(a.value.customPalette)), F = m(() => Math.max(...W.value.filter((e, t) => !w.value.includes(e.absoluteIndex)).map((e) => e.series.length))), l = m(() => {
|
|
60
60
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
61
61
|
return {
|
|
62
62
|
canvasWidth: y.value,
|
|
@@ -70,24 +70,24 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
70
70
|
slot: e / (u.value.end - u.value.start)
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
|
-
function
|
|
73
|
+
function Re(e, t) {
|
|
74
74
|
return e / t;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return t.map((L,
|
|
78
|
-
const
|
|
79
|
-
let
|
|
80
|
-
e && (
|
|
76
|
+
function qe({ hasAutoScale: e, series: t, min: o, max: i, scale: v, yOffset: f, individualHeight: n, stackIndex: g = null }) {
|
|
77
|
+
return t.map((L, he) => {
|
|
78
|
+
const z = v.min < 0 ? Math.abs(v.min) : 0, R = Re(L + z, z + v.max);
|
|
79
|
+
let I, Y;
|
|
80
|
+
e && (I = Math.abs(v.min), Y = Re(L + I, v.max + I));
|
|
81
81
|
let B = 0;
|
|
82
82
|
return g === null ? B = l.value.bottom - l.value.height * (e ? Y : R) : B = l.value.bottom - f - n * (e ? Y : R), {
|
|
83
|
-
x: l.value.left + l.value.slot *
|
|
83
|
+
x: l.value.left + l.value.slot * he + l.value.slot / 2,
|
|
84
84
|
y: B,
|
|
85
85
|
value: L
|
|
86
86
|
};
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
const p =
|
|
90
|
-
const e = Math.min(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), t = Math.max(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), o =
|
|
89
|
+
const p = m(() => {
|
|
90
|
+
const e = Math.min(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), t = Math.max(...W.value.filter((n, g) => !w.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), o = fe(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, v = l.value.bottom - l.value.height * (i / (o.max + i)), f = o.ticks.map((n) => ({
|
|
91
91
|
y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
|
|
92
92
|
x: l.value.left - 8,
|
|
93
93
|
value: n
|
|
@@ -100,51 +100,56 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
100
100
|
yLabels: f,
|
|
101
101
|
zero: v
|
|
102
102
|
};
|
|
103
|
-
}),
|
|
103
|
+
}), Je = m(() => h.value.map((e) => `
|
|
104
104
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
105
105
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
106
106
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
107
107
|
</svg>
|
|
108
108
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
109
|
-
<span>${q(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
<span>${q(
|
|
110
|
+
a.value.style.chart.dataLabels.formatter,
|
|
111
|
+
e.series[c.value],
|
|
112
|
+
J({
|
|
113
|
+
p: e.prefix || "",
|
|
114
|
+
v: e.series[c.value],
|
|
115
|
+
s: e.suffix || "",
|
|
116
|
+
r: e.rounding || 0
|
|
117
|
+
}),
|
|
118
|
+
{ datapoint: e, seriesIndex: c.value }
|
|
119
|
+
)}</span>
|
|
115
120
|
</div>
|
|
116
|
-
`)), W =
|
|
121
|
+
`)), W = m(() => _.dataset.map((e, t) => ({
|
|
117
122
|
...e,
|
|
118
123
|
absoluteIndex: t,
|
|
119
|
-
color:
|
|
120
|
-
}))), h =
|
|
124
|
+
color: Ye(e.color || Me.value[t] || N[t] || N[t % N.length])
|
|
125
|
+
}))), h = m(() => Ca(W.value.filter((e, t) => !w.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
121
126
|
...e,
|
|
122
127
|
series: e.series.slice(u.value.start, u.value.end)
|
|
123
128
|
})).map((e, t) => {
|
|
124
129
|
let o = Math.min(...e.series) || 0, i = Math.max(...e.series) || 1;
|
|
125
130
|
o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
|
|
126
131
|
const f = {
|
|
127
|
-
ratios: e.series.filter((
|
|
132
|
+
ratios: e.series.filter((U) => ![null, void 0].includes(U)).map((U) => (U - o) / (i - o)),
|
|
128
133
|
valueMin: o,
|
|
129
134
|
valueMax: i
|
|
130
135
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
131
136
|
let g;
|
|
132
|
-
e.autoScaling ? g =
|
|
133
|
-
const L = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0,
|
|
134
|
-
let
|
|
135
|
-
e.autoScaling && r.value.stacked && i <= 0 ?
|
|
136
|
-
const Y = g.ticks.map((
|
|
137
|
-
y: l.value.bottom - L -
|
|
137
|
+
e.autoScaling ? g = fe(f.valueMin, f.valueMax, n) : g = fe(f.valueMin < 0 ? f.valueMin : 0, f.valueMax <= 0 ? 0 : f.valueMax, n);
|
|
138
|
+
const L = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, he = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, z = r.value.stacked ? l.value.height * e.stackRatio - he : l.value.height, R = g.min < 0 ? Math.abs(g.min) : 0;
|
|
139
|
+
let I;
|
|
140
|
+
e.autoScaling && r.value.stacked && i <= 0 ? I = l.value.bottom - L - z : I = l.value.bottom - L - z * (R / (g.max + R));
|
|
141
|
+
const Y = g.ticks.map((U, da) => ({
|
|
142
|
+
y: l.value.bottom - L - z * (da / (g.ticks.length - 1)),
|
|
138
143
|
x: l.value.left - 8,
|
|
139
|
-
value:
|
|
140
|
-
})), B =
|
|
144
|
+
value: U
|
|
145
|
+
})), B = qe({
|
|
141
146
|
hasAutoScale: r.value.stacked && e.autoScaling,
|
|
142
147
|
series: e.series,
|
|
143
148
|
min: r.value.stacked ? o : p.value.min,
|
|
144
149
|
max: r.value.stacked ? i : p.value.max,
|
|
145
150
|
scale: r.value.stacked ? g : p.value.scale,
|
|
146
151
|
yOffset: L,
|
|
147
|
-
individualHeight:
|
|
152
|
+
individualHeight: z,
|
|
148
153
|
stackIndex: r.value.stacked ? t : null
|
|
149
154
|
});
|
|
150
155
|
return {
|
|
@@ -153,30 +158,30 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
153
158
|
min: o,
|
|
154
159
|
max: i,
|
|
155
160
|
localScale: g,
|
|
156
|
-
localZero:
|
|
161
|
+
localZero: I,
|
|
157
162
|
localMin: R,
|
|
158
163
|
localYLabels: Y,
|
|
159
164
|
yOffset: L,
|
|
160
|
-
individualHeight:
|
|
165
|
+
individualHeight: z
|
|
161
166
|
};
|
|
162
|
-
})), u =
|
|
167
|
+
})), u = d({
|
|
163
168
|
start: 0,
|
|
164
169
|
end: F.value
|
|
165
170
|
});
|
|
166
|
-
function
|
|
171
|
+
function Ke() {
|
|
167
172
|
u.value = {
|
|
168
173
|
start: 0,
|
|
169
174
|
end: F.value
|
|
170
175
|
}, be.value += 1;
|
|
171
176
|
}
|
|
172
|
-
const
|
|
173
|
-
function
|
|
177
|
+
const Qe = m(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), x = m(() => h.value.filter((e) => e.type === "bar"));
|
|
178
|
+
function ea() {
|
|
174
179
|
if (!S.value)
|
|
175
180
|
return;
|
|
176
181
|
const e = H.value.offsetWidth, t = H.value.offsetHeight;
|
|
177
|
-
S.value.width = e * D.value * 2, S.value.height = t * D.value * 2, y.value = e * D.value * 2, M.value = t * D.value * 2, s.value.scale(D.value, D.value),
|
|
182
|
+
S.value.width = e * D.value * 2, S.value.height = t * D.value * 2, y.value = e * D.value * 2, M.value = t * D.value * 2, s.value.scale(D.value, D.value), de();
|
|
178
183
|
}
|
|
179
|
-
function
|
|
184
|
+
function aa() {
|
|
180
185
|
if (s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), r.value.stacked)
|
|
181
186
|
a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
|
|
182
187
|
for (let t = 0; t < u.value.end - u.value.start + 1; t += 1)
|
|
@@ -198,7 +203,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
198
203
|
);
|
|
199
204
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
200
205
|
e.localYLabels.forEach((t, o) => {
|
|
201
|
-
o < e.localYLabels.length - 1 &&
|
|
206
|
+
o < e.localYLabels.length - 1 && ge(
|
|
202
207
|
s.value,
|
|
203
208
|
[
|
|
204
209
|
{ x: l.value.left, y: t.y },
|
|
@@ -207,7 +212,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
207
212
|
{ x: l.value.left, y: e.localYLabels[o + 1].y }
|
|
208
213
|
],
|
|
209
214
|
{
|
|
210
|
-
fillColor: o % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color +
|
|
215
|
+
fillColor: o % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color + K[a.value.style.chart.grid.x.horizontalLines.opacity],
|
|
211
216
|
strokeColor: "transparent"
|
|
212
217
|
}
|
|
213
218
|
);
|
|
@@ -256,15 +261,20 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
256
261
|
{
|
|
257
262
|
color: e.color
|
|
258
263
|
}
|
|
259
|
-
), e.localYLabels.forEach((t) => {
|
|
260
|
-
|
|
264
|
+
), e.localYLabels.forEach((t, o) => {
|
|
265
|
+
O(
|
|
261
266
|
s.value,
|
|
262
|
-
q(
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
267
|
+
q(
|
|
268
|
+
a.value.style.chart.dataLabels.formatter,
|
|
269
|
+
t.value,
|
|
270
|
+
J({
|
|
271
|
+
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
272
|
+
v: t.value,
|
|
273
|
+
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
274
|
+
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
275
|
+
}),
|
|
276
|
+
{ datapoint: t, seriesIndex: o }
|
|
277
|
+
),
|
|
268
278
|
t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
269
279
|
t.y,
|
|
270
280
|
{
|
|
@@ -275,7 +285,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
275
285
|
);
|
|
276
286
|
});
|
|
277
287
|
}), h.value.forEach((e) => {
|
|
278
|
-
|
|
288
|
+
O(
|
|
279
289
|
s.value,
|
|
280
290
|
e.name,
|
|
281
291
|
y.value / 35,
|
|
@@ -302,7 +312,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
302
312
|
}
|
|
303
313
|
);
|
|
304
314
|
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, t) => {
|
|
305
|
-
t < p.value.yLabels.length - 1 &&
|
|
315
|
+
t < p.value.yLabels.length - 1 && ge(
|
|
306
316
|
s.value,
|
|
307
317
|
[
|
|
308
318
|
{ x: l.value.left, y: e.y },
|
|
@@ -311,7 +321,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
311
321
|
{ x: l.value.left, y: p.value.yLabels[t + 1].y }
|
|
312
322
|
],
|
|
313
323
|
{
|
|
314
|
-
fillColor: t % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color +
|
|
324
|
+
fillColor: t % 2 === 0 ? "transparent" : a.value.style.chart.grid.x.horizontalLines.color + K[a.value.style.chart.grid.x.horizontalLines.opacity],
|
|
315
325
|
strokeColor: "transparent"
|
|
316
326
|
}
|
|
317
327
|
);
|
|
@@ -356,15 +366,20 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
356
366
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
357
367
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
358
368
|
}
|
|
359
|
-
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e) => {
|
|
360
|
-
|
|
369
|
+
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, t) => {
|
|
370
|
+
O(
|
|
361
371
|
s.value,
|
|
362
|
-
q(
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
372
|
+
q(
|
|
373
|
+
a.value.style.chart.dataLabels.formatter,
|
|
374
|
+
e.value,
|
|
375
|
+
J({
|
|
376
|
+
p: a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
377
|
+
v: e.value,
|
|
378
|
+
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
379
|
+
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
380
|
+
}),
|
|
381
|
+
{ datapoint: e, seriesIndex: t }
|
|
382
|
+
),
|
|
368
383
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
369
384
|
e.y,
|
|
370
385
|
{
|
|
@@ -375,7 +390,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
375
390
|
);
|
|
376
391
|
});
|
|
377
392
|
}
|
|
378
|
-
a.value.style.chart.grid.y.axisName &&
|
|
393
|
+
a.value.style.chart.grid.y.axisName && O(
|
|
379
394
|
s.value,
|
|
380
395
|
a.value.style.chart.grid.y.axisName,
|
|
381
396
|
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
@@ -386,7 +401,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
386
401
|
align: "center",
|
|
387
402
|
rotation: 90
|
|
388
403
|
}
|
|
389
|
-
), a.value.style.chart.grid.x.axisName &&
|
|
404
|
+
), a.value.style.chart.grid.x.axisName && O(
|
|
390
405
|
s.value,
|
|
391
406
|
a.value.style.chart.grid.x.axisName,
|
|
392
407
|
y.value / 2,
|
|
@@ -398,10 +413,10 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
398
413
|
}
|
|
399
414
|
);
|
|
400
415
|
}
|
|
401
|
-
function
|
|
416
|
+
function la(e) {
|
|
402
417
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
403
|
-
const o = (
|
|
404
|
-
|
|
418
|
+
const o = (c.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
419
|
+
Ue(
|
|
405
420
|
s.value,
|
|
406
421
|
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
407
422
|
o,
|
|
@@ -413,16 +428,21 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
413
428
|
);
|
|
414
429
|
}
|
|
415
430
|
}
|
|
416
|
-
function
|
|
431
|
+
function ta(e) {
|
|
417
432
|
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
418
|
-
|
|
433
|
+
O(
|
|
419
434
|
s.value,
|
|
420
|
-
q(
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
435
|
+
q(
|
|
436
|
+
a.value.style.chart.dataLabels.formatter,
|
|
437
|
+
e.coordinatesLine[t].value,
|
|
438
|
+
J({
|
|
439
|
+
p: e.prefix || "",
|
|
440
|
+
v: e.coordinatesLine[t].value,
|
|
441
|
+
s: e.suffix || "",
|
|
442
|
+
r: e.rounding || 0
|
|
443
|
+
}),
|
|
444
|
+
{ datapoint: e.coordinatesLine[t], seriesIndex: t }
|
|
445
|
+
),
|
|
426
446
|
e.coordinatesLine[t].x,
|
|
427
447
|
e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
|
|
428
448
|
{
|
|
@@ -434,9 +454,9 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
434
454
|
}
|
|
435
455
|
);
|
|
436
456
|
}
|
|
437
|
-
function
|
|
457
|
+
function oa() {
|
|
438
458
|
for (let e = u.value.start; e < u.value.end; e += 1)
|
|
439
|
-
(u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e ===
|
|
459
|
+
(u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + u.value.start)) && O(
|
|
440
460
|
s.value,
|
|
441
461
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
442
462
|
l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
|
|
@@ -444,17 +464,17 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
444
464
|
{
|
|
445
465
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
446
466
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
447
|
-
color: a.value.style.chart.grid.y.timeLabels.color +
|
|
467
|
+
color: a.value.style.chart.grid.y.timeLabels.color + K[c.value !== null ? c.value + u.value.start === e ? 100 : 20 : 100],
|
|
448
468
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
449
469
|
}
|
|
450
470
|
);
|
|
451
471
|
}
|
|
452
|
-
function
|
|
472
|
+
function Ie() {
|
|
453
473
|
C(
|
|
454
474
|
s.value,
|
|
455
475
|
[
|
|
456
|
-
{ x: l.value.left + l.value.slot *
|
|
457
|
-
{ x: l.value.left + l.value.slot *
|
|
476
|
+
{ x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.top },
|
|
477
|
+
{ x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.bottom }
|
|
458
478
|
],
|
|
459
479
|
{
|
|
460
480
|
color: a.value.style.chart.selector.color,
|
|
@@ -464,10 +484,10 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
464
484
|
}
|
|
465
485
|
);
|
|
466
486
|
}
|
|
467
|
-
function
|
|
487
|
+
function ua() {
|
|
468
488
|
x.value.forEach((e, t) => {
|
|
469
489
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
470
|
-
|
|
490
|
+
ge(
|
|
471
491
|
s.value,
|
|
472
492
|
[
|
|
473
493
|
{
|
|
@@ -501,18 +521,23 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
501
521
|
},
|
|
502
522
|
stops: [
|
|
503
523
|
{ offset: 0, color: e.color },
|
|
504
|
-
{ offset: 1, color:
|
|
524
|
+
{ offset: 1, color: Ma(e.color, 0.5) }
|
|
505
525
|
]
|
|
506
526
|
}
|
|
507
527
|
}
|
|
508
|
-
), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) &&
|
|
528
|
+
), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && O(
|
|
509
529
|
s.value,
|
|
510
|
-
q(
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
530
|
+
q(
|
|
531
|
+
a.value.style.chart.dataLabels.formatter,
|
|
532
|
+
e.coordinatesLine[o].value,
|
|
533
|
+
J({
|
|
534
|
+
p: e.prefix || "",
|
|
535
|
+
v: e.coordinatesLine[o].value,
|
|
536
|
+
s: e.suffix || "",
|
|
537
|
+
r: e.rounding || 0
|
|
538
|
+
}),
|
|
539
|
+
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
540
|
+
),
|
|
516
541
|
l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / x.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * x.value.length) * t)) + l.value.slot * 0.4 / (r.value.stacked ? 1 : x.value.length),
|
|
517
542
|
(e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
518
543
|
{
|
|
@@ -525,19 +550,19 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
525
550
|
);
|
|
526
551
|
});
|
|
527
552
|
}
|
|
528
|
-
function
|
|
553
|
+
function ra(e) {
|
|
529
554
|
e.useArea ? r.value.stacked ? Xe(
|
|
530
555
|
s.value,
|
|
531
556
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
532
557
|
{
|
|
533
|
-
fillColor: e.color +
|
|
558
|
+
fillColor: e.color + K[a.value.style.chart.area.opacity],
|
|
534
559
|
strokeColor: "transparent"
|
|
535
560
|
}
|
|
536
561
|
) : Xe(
|
|
537
562
|
s.value,
|
|
538
563
|
[{ x: e.coordinatesLine[0].x, y: p.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: p.value.zero }],
|
|
539
564
|
{
|
|
540
|
-
fillColor: e.color +
|
|
565
|
+
fillColor: e.color + K[a.value.style.chart.area.opacity],
|
|
541
566
|
strokeColor: "transparent"
|
|
542
567
|
}
|
|
543
568
|
) : C(s.value, e.coordinatesLine, {
|
|
@@ -545,7 +570,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
545
570
|
lineWidth: 3
|
|
546
571
|
});
|
|
547
572
|
}
|
|
548
|
-
function
|
|
573
|
+
function sa() {
|
|
549
574
|
h.value.forEach((e, t) => {
|
|
550
575
|
C(
|
|
551
576
|
s.value,
|
|
@@ -560,17 +585,17 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
560
585
|
);
|
|
561
586
|
});
|
|
562
587
|
}
|
|
563
|
-
function
|
|
564
|
-
|
|
565
|
-
(e.type === "line" || !e.type) &&
|
|
566
|
-
}),
|
|
588
|
+
function de() {
|
|
589
|
+
aa(), P.value ? ($.value && c.value !== null && a.value.style.chart.selector.show && Ie(), ua(), r.value.stacked && a.value.style.chart.grid.x.showAxis && sa(), Qe.value.forEach((e) => {
|
|
590
|
+
(e.type === "line" || !e.type) && ra(e), $.value && (la(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ta(e));
|
|
591
|
+
}), ie.value = Ia(S.value)) : (ie.value && s.value.drawImage(ie.value, 0, 0), $.value && c.value !== null && a.value.style.chart.selector.show && Ie(), $.value && c.value !== null && h.value.forEach((e) => {
|
|
567
592
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
568
|
-
if (!e.coordinatesLine[
|
|
569
|
-
e.coordinatesLine[
|
|
593
|
+
if (!e.coordinatesLine[c.value]) return;
|
|
594
|
+
e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && Ue(
|
|
570
595
|
s.value,
|
|
571
596
|
{
|
|
572
|
-
x: e.coordinatesLine[
|
|
573
|
-
y: e.coordinatesLine[
|
|
597
|
+
x: e.coordinatesLine[c.value].x,
|
|
598
|
+
y: e.coordinatesLine[c.value].y
|
|
574
599
|
},
|
|
575
600
|
y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
|
|
576
601
|
{
|
|
@@ -580,90 +605,90 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
580
605
|
}
|
|
581
606
|
);
|
|
582
607
|
}
|
|
583
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
608
|
+
})), a.value.style.chart.grid.y.timeLabels.show && oa(), P.value = !1;
|
|
584
609
|
}
|
|
585
|
-
const
|
|
586
|
-
|
|
587
|
-
}, F.value > 200 ? 10 : 1,
|
|
588
|
-
function
|
|
610
|
+
const le = Ra(() => {
|
|
611
|
+
$.value = !0, ea();
|
|
612
|
+
}, F.value > 200 ? 10 : 1, !$.value);
|
|
613
|
+
function na(e) {
|
|
589
614
|
const { left: t } = S.value.getBoundingClientRect(), o = e.clientX - t;
|
|
590
615
|
if (o * 2 < l.value.left || o * 2 > l.value.right) {
|
|
591
|
-
|
|
616
|
+
ee.value = !1, c.value = null;
|
|
592
617
|
return;
|
|
593
618
|
}
|
|
594
619
|
const i = o * 2 - l.value.left;
|
|
595
|
-
if (
|
|
620
|
+
if (c.value = Math.floor(i / l.value.slot), ee.value = !0, !$.value) return;
|
|
596
621
|
let v = "";
|
|
597
622
|
const f = a.value.style.chart.tooltip.customFormat;
|
|
598
|
-
|
|
599
|
-
seriesIndex:
|
|
623
|
+
Be(f) && $a(() => f({
|
|
624
|
+
seriesIndex: c.value,
|
|
600
625
|
datapoint: h.value.map((n) => ({
|
|
601
626
|
shape: n.shape || null,
|
|
602
627
|
name: n.name,
|
|
603
628
|
color: n.color,
|
|
604
629
|
type: n.type || "line",
|
|
605
|
-
value: n.series.find((g, L) => L ===
|
|
630
|
+
value: n.series.find((g, L) => L === c.value)
|
|
606
631
|
})),
|
|
607
632
|
series: h.value,
|
|
608
633
|
config: a.value
|
|
609
|
-
})) ?
|
|
610
|
-
seriesIndex:
|
|
634
|
+
})) ? ae.value = f({
|
|
635
|
+
seriesIndex: c.value,
|
|
611
636
|
datapoint: h.value.map((n) => ({
|
|
612
637
|
shape: n.shape || null,
|
|
613
638
|
name: n.name,
|
|
614
639
|
color: n.color,
|
|
615
640
|
type: n.type || "line",
|
|
616
|
-
value: n.series.find((g, L) => L ===
|
|
641
|
+
value: n.series.find((g, L) => L === c.value)
|
|
617
642
|
})),
|
|
618
643
|
series: h.value,
|
|
619
644
|
config: a.value
|
|
620
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[
|
|
645
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c.value] && (v += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c.value]}</div>`), v += Je.value.join(""), ae.value = v), $.value = !1;
|
|
621
646
|
}
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
}),
|
|
625
|
-
|
|
647
|
+
re(() => c.value, (e) => {
|
|
648
|
+
le();
|
|
649
|
+
}), re(() => u.value, (e) => {
|
|
650
|
+
P.value = !0, de();
|
|
626
651
|
}, {
|
|
627
652
|
deep: !0
|
|
628
|
-
}),
|
|
629
|
-
|
|
630
|
-
}),
|
|
631
|
-
|
|
653
|
+
}), re(() => r.value.showDataLabels, (e) => {
|
|
654
|
+
P.value = !0, de();
|
|
655
|
+
}), re(() => r.value.stacked, (e) => {
|
|
656
|
+
P.value = !0, $.value = !0, le();
|
|
632
657
|
});
|
|
633
|
-
function
|
|
634
|
-
|
|
658
|
+
function ia() {
|
|
659
|
+
ee.value = !1, c.value = null, ae.value = "";
|
|
635
660
|
}
|
|
636
|
-
const
|
|
637
|
-
|
|
638
|
-
if (
|
|
661
|
+
const te = d(null), oe = d(null);
|
|
662
|
+
ha(() => {
|
|
663
|
+
if (wa(_.dataset) ? Sa({
|
|
639
664
|
componentName: "VueUiXyCanvas",
|
|
640
665
|
type: "dataset"
|
|
641
666
|
}) : S.value && (s.value = S.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
642
667
|
const e = Oa(() => {
|
|
643
668
|
const { width: t, height: o } = Pa({
|
|
644
|
-
chart:
|
|
645
|
-
title: a.value.style.chart.title.text ?
|
|
646
|
-
legend: a.value.style.chart.legend.show ?
|
|
647
|
-
slicer: a.value.style.chart.zoom.show && F.value > 1 ?
|
|
669
|
+
chart: Q.value,
|
|
670
|
+
title: a.value.style.chart.title.text ? Le.value : null,
|
|
671
|
+
legend: a.value.style.chart.legend.show ? ke.value : null,
|
|
672
|
+
slicer: a.value.style.chart.zoom.show && F.value > 1 ? Ce.value : null
|
|
648
673
|
});
|
|
649
|
-
|
|
674
|
+
we.value = `${t} / ${o}`;
|
|
650
675
|
});
|
|
651
|
-
|
|
676
|
+
te.value = new ResizeObserver(e), te.value.observe(Q.value.parentNode);
|
|
652
677
|
}
|
|
653
|
-
|
|
678
|
+
oe.value = new ResizeObserver((e) => {
|
|
654
679
|
for (const t of e)
|
|
655
|
-
t.contentBoxSize && H.value && (
|
|
656
|
-
}),
|
|
657
|
-
}),
|
|
658
|
-
|
|
680
|
+
t.contentBoxSize && H.value && (P.value = !0, le());
|
|
681
|
+
}), oe.value.observe(H.value);
|
|
682
|
+
}), ya(() => {
|
|
683
|
+
oe.value && oe.value.disconnect(), te.value && te.value.disconnect();
|
|
659
684
|
});
|
|
660
685
|
function Oe(e) {
|
|
661
|
-
|
|
686
|
+
Ge("selectLegend", h.value.find((t) => t.absoluteIndex === e)), w.value.includes(e) ? w.value = w.value.filter((t) => t !== e) : w.value.push(e), P.value = !0, le();
|
|
662
687
|
}
|
|
663
|
-
const Pe =
|
|
688
|
+
const Pe = m(() => W.value.map((e, t) => ({
|
|
664
689
|
...e,
|
|
665
690
|
name: e.name,
|
|
666
|
-
color:
|
|
691
|
+
color: Ye(e.color) || Me.value[t] || N[t] || N[t % N.length],
|
|
667
692
|
shape: e.shape || "circle",
|
|
668
693
|
prefix: e.prefix || "",
|
|
669
694
|
suffix: e.suffix || "",
|
|
@@ -673,14 +698,14 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
673
698
|
opacity: w.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
674
699
|
segregate: () => Oe(e.absoluteIndex),
|
|
675
700
|
isSegregated: w.value.includes(e.absoluteIndex)
|
|
676
|
-
}))),
|
|
701
|
+
}))), va = m(() => ({
|
|
677
702
|
cy: "donut-div-legend",
|
|
678
703
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
679
704
|
color: a.value.style.chart.legend.color,
|
|
680
705
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
681
706
|
paddingBottom: 12,
|
|
682
707
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
683
|
-
})),
|
|
708
|
+
})), ue = m(() => {
|
|
684
709
|
const e = [""].concat(h.value.map((v) => v.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>');
|
|
685
710
|
let t = [];
|
|
686
711
|
for (let v = 0; v < F.value; v += 1) {
|
|
@@ -701,7 +726,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
701
726
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
702
727
|
}, i = [a.value.table.columnNames.period].concat(h.value.map((v) => v.name)).concat(a.value.table.columnNames.total);
|
|
703
728
|
return { head: e, body: t.slice(0, u.value.end - u.value.start), config: o, colNames: i };
|
|
704
|
-
}),
|
|
729
|
+
}), Fe = m(() => {
|
|
705
730
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
706
731
|
const e = h.value.map((o) => ({
|
|
707
732
|
label: o.name,
|
|
@@ -716,48 +741,48 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
716
741
|
}
|
|
717
742
|
return { head: e, body: t };
|
|
718
743
|
});
|
|
719
|
-
function
|
|
720
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
721
|
-
|
|
744
|
+
function Ee() {
|
|
745
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Fe.value.head.map((f) => f.label)], o = Fe.value.body, i = e.concat([t]).concat(o), v = za(i);
|
|
746
|
+
Ta({ csvContent: v, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
722
747
|
}
|
|
723
|
-
function
|
|
748
|
+
function ca() {
|
|
724
749
|
return h.value;
|
|
725
750
|
}
|
|
726
|
-
function
|
|
751
|
+
function Ne() {
|
|
727
752
|
r.value.showTable = !r.value.showTable;
|
|
728
753
|
}
|
|
729
|
-
function
|
|
754
|
+
function _e() {
|
|
730
755
|
r.value.showDataLabels = !r.value.showDataLabels;
|
|
731
756
|
}
|
|
732
|
-
function
|
|
757
|
+
function De() {
|
|
733
758
|
r.value.stacked = !r.value.stacked;
|
|
734
759
|
}
|
|
735
|
-
function
|
|
760
|
+
function He() {
|
|
736
761
|
r.value.showTooltip = !r.value.showTooltip;
|
|
737
762
|
}
|
|
738
|
-
return
|
|
739
|
-
getData:
|
|
740
|
-
generateCsv:
|
|
763
|
+
return Ze({
|
|
764
|
+
getData: ca,
|
|
765
|
+
generateCsv: Ee,
|
|
741
766
|
generatePdf: ze,
|
|
742
|
-
generateImage:
|
|
743
|
-
toggleTable:
|
|
744
|
-
toggleLabels:
|
|
745
|
-
toggleStack:
|
|
746
|
-
toggleTooltip:
|
|
747
|
-
}), (e, t) => (T(),
|
|
748
|
-
style:
|
|
767
|
+
generateImage: Te,
|
|
768
|
+
toggleTable: Ne,
|
|
769
|
+
toggleLabels: _e,
|
|
770
|
+
toggleStack: De,
|
|
771
|
+
toggleTooltip: He
|
|
772
|
+
}), (e, t) => (T(), se("div", {
|
|
773
|
+
style: X(`width:100%; position: relative;${a.value.responsive ? "height: 100%" : ""}`),
|
|
749
774
|
ref_key: "xy",
|
|
750
|
-
ref:
|
|
751
|
-
id: `xy_canvas_${
|
|
752
|
-
class:
|
|
775
|
+
ref: Q,
|
|
776
|
+
id: `xy_canvas_${ne.value}`,
|
|
777
|
+
class: fa(`vue-ui-donut ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
|
|
753
778
|
}, [
|
|
754
|
-
a.value.style.chart.title.text ? (T(),
|
|
779
|
+
a.value.style.chart.title.text ? (T(), se("div", {
|
|
755
780
|
key: 0,
|
|
756
781
|
ref_key: "chartTitle",
|
|
757
|
-
ref:
|
|
758
|
-
style:
|
|
782
|
+
ref: Le,
|
|
783
|
+
style: X(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
759
784
|
}, [
|
|
760
|
-
|
|
785
|
+
ye(Na, {
|
|
761
786
|
config: {
|
|
762
787
|
title: {
|
|
763
788
|
cy: "xy-canvas-title",
|
|
@@ -770,88 +795,88 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
770
795
|
}
|
|
771
796
|
}, null, 8, ["config"])
|
|
772
797
|
], 4)) : A("", !0),
|
|
773
|
-
a.value.userOptions.show &&
|
|
798
|
+
a.value.userOptions.show && ce.value ? (T(), Z(Ha, {
|
|
774
799
|
ref: "details",
|
|
775
|
-
key: `user_option_${
|
|
800
|
+
key: `user_option_${xe.value}`,
|
|
776
801
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
777
802
|
color: a.value.style.chart.color,
|
|
778
|
-
isPrinting: E(
|
|
779
|
-
isImaging: E(
|
|
780
|
-
uid:
|
|
803
|
+
isPrinting: E(Se),
|
|
804
|
+
isImaging: E($e),
|
|
805
|
+
uid: ne.value,
|
|
781
806
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
782
807
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
783
808
|
hasImg: a.value.userOptions.buttons.img,
|
|
784
809
|
hasXls: a.value.userOptions.buttons.csv,
|
|
785
810
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
786
|
-
hasStack:
|
|
811
|
+
hasStack: pe.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
787
812
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
788
813
|
hasTable: u.value.end - u.value.start < 200 && a.value.userOptions.buttons.table,
|
|
789
|
-
isFullscreen:
|
|
814
|
+
isFullscreen: ve.value,
|
|
790
815
|
isTooltip: r.value.showTooltip,
|
|
791
816
|
isStacked: r.value.stacked,
|
|
792
817
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
793
|
-
chartElement:
|
|
794
|
-
onToggleFullscreen:
|
|
818
|
+
chartElement: Q.value,
|
|
819
|
+
onToggleFullscreen: je,
|
|
795
820
|
onGeneratePdf: E(ze),
|
|
796
|
-
onGenerateCsv:
|
|
797
|
-
onGenerateImage: E(
|
|
798
|
-
onToggleTable:
|
|
799
|
-
onToggleLabels:
|
|
800
|
-
onToggleStack:
|
|
801
|
-
onToggleTooltip:
|
|
802
|
-
},
|
|
821
|
+
onGenerateCsv: Ee,
|
|
822
|
+
onGenerateImage: E(Te),
|
|
823
|
+
onToggleTable: Ne,
|
|
824
|
+
onToggleLabels: _e,
|
|
825
|
+
onToggleStack: De,
|
|
826
|
+
onToggleTooltip: He
|
|
827
|
+
}, ga({ _: 2 }, [
|
|
803
828
|
e.$slots.optionTooltip ? {
|
|
804
829
|
name: "optionTooltip",
|
|
805
|
-
fn:
|
|
830
|
+
fn: b(() => [
|
|
806
831
|
k(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
807
832
|
]),
|
|
808
833
|
key: "0"
|
|
809
834
|
} : void 0,
|
|
810
835
|
e.$slots.optionPdf ? {
|
|
811
836
|
name: "optionPdf",
|
|
812
|
-
fn:
|
|
837
|
+
fn: b(() => [
|
|
813
838
|
k(e.$slots, "optionPdf", {}, void 0, !0)
|
|
814
839
|
]),
|
|
815
840
|
key: "1"
|
|
816
841
|
} : void 0,
|
|
817
842
|
e.$slots.optionCsv ? {
|
|
818
843
|
name: "optionCsv",
|
|
819
|
-
fn:
|
|
844
|
+
fn: b(() => [
|
|
820
845
|
k(e.$slots, "optionCsv", {}, void 0, !0)
|
|
821
846
|
]),
|
|
822
847
|
key: "2"
|
|
823
848
|
} : void 0,
|
|
824
849
|
e.$slots.optionImg ? {
|
|
825
850
|
name: "optionImg",
|
|
826
|
-
fn:
|
|
851
|
+
fn: b(() => [
|
|
827
852
|
k(e.$slots, "optionImg", {}, void 0, !0)
|
|
828
853
|
]),
|
|
829
854
|
key: "3"
|
|
830
855
|
} : void 0,
|
|
831
856
|
e.$slots.optionTable ? {
|
|
832
857
|
name: "optionTable",
|
|
833
|
-
fn:
|
|
858
|
+
fn: b(() => [
|
|
834
859
|
k(e.$slots, "optionTable", {}, void 0, !0)
|
|
835
860
|
]),
|
|
836
861
|
key: "4"
|
|
837
862
|
} : void 0,
|
|
838
863
|
e.$slots.optionLabels ? {
|
|
839
864
|
name: "optionLabels",
|
|
840
|
-
fn:
|
|
865
|
+
fn: b(() => [
|
|
841
866
|
k(e.$slots, "optionLabels", {}, void 0, !0)
|
|
842
867
|
]),
|
|
843
868
|
key: "5"
|
|
844
869
|
} : void 0,
|
|
845
870
|
e.$slots.optionStack ? {
|
|
846
871
|
name: "optionStack",
|
|
847
|
-
fn:
|
|
872
|
+
fn: b(() => [
|
|
848
873
|
k(e.$slots, "optionStack", {}, void 0, !0)
|
|
849
874
|
]),
|
|
850
875
|
key: "6"
|
|
851
876
|
} : void 0,
|
|
852
877
|
e.$slots.optionFullscreen ? {
|
|
853
878
|
name: "optionFullscreen",
|
|
854
|
-
fn:
|
|
879
|
+
fn: b(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
855
880
|
k(e.$slots, "optionFullscreen", G(V({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
856
881
|
]),
|
|
857
882
|
key: "7"
|
|
@@ -859,18 +884,18 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
859
884
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : A("", !0),
|
|
860
885
|
j("div", {
|
|
861
886
|
class: "vue-ui-xy-canvas",
|
|
862
|
-
style:
|
|
887
|
+
style: X(`position: relative; aspect-ratio: ${we.value}`),
|
|
863
888
|
ref_key: "container",
|
|
864
889
|
ref: H
|
|
865
890
|
}, [
|
|
866
|
-
|
|
891
|
+
ce.value ? (T(), se("canvas", {
|
|
867
892
|
key: 0,
|
|
868
893
|
ref_key: "canvas",
|
|
869
894
|
ref: S,
|
|
870
895
|
style: { width: "100%", height: "100%" },
|
|
871
|
-
onMousemove: t[0] || (t[0] = (o) =>
|
|
872
|
-
onMouseleave:
|
|
873
|
-
}, null, 544)) : (T(), Z(
|
|
896
|
+
onMousemove: t[0] || (t[0] = (o) => na(o)),
|
|
897
|
+
onMouseleave: ia
|
|
898
|
+
}, null, 544)) : (T(), Z(Ba, {
|
|
874
899
|
key: 1,
|
|
875
900
|
config: {
|
|
876
901
|
type: "line",
|
|
@@ -888,8 +913,8 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
888
913
|
}
|
|
889
914
|
}
|
|
890
915
|
}, null, 8, ["config"])),
|
|
891
|
-
|
|
892
|
-
show: r.value.showTooltip &&
|
|
916
|
+
ye(Fa, {
|
|
917
|
+
show: r.value.showTooltip && ee.value,
|
|
893
918
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
894
919
|
color: a.value.style.chart.tooltip.color,
|
|
895
920
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -899,26 +924,26 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
899
924
|
position: a.value.style.chart.tooltip.position,
|
|
900
925
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
901
926
|
parent: S.value,
|
|
902
|
-
content:
|
|
927
|
+
content: ae.value,
|
|
903
928
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
904
|
-
isCustom: E(
|
|
929
|
+
isCustom: E(Be)(a.value.style.chart.tooltip.customFormat)
|
|
905
930
|
}, {
|
|
906
|
-
"tooltip-before":
|
|
907
|
-
k(e.$slots, "tooltip-before", G(V({ ...
|
|
931
|
+
"tooltip-before": b(() => [
|
|
932
|
+
k(e.$slots, "tooltip-before", G(V({ ...me.value })), void 0, !0)
|
|
908
933
|
]),
|
|
909
|
-
"tooltip-after":
|
|
910
|
-
k(e.$slots, "tooltip-after", G(V({ ...
|
|
934
|
+
"tooltip-after": b(() => [
|
|
935
|
+
k(e.$slots, "tooltip-after", G(V({ ...me.value })), void 0, !0)
|
|
911
936
|
]),
|
|
912
937
|
_: 3
|
|
913
938
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
|
|
914
939
|
], 4),
|
|
915
940
|
j("div", {
|
|
916
941
|
ref_key: "chartSlicer",
|
|
917
|
-
ref:
|
|
918
|
-
style:
|
|
942
|
+
ref: Ce,
|
|
943
|
+
style: X(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
919
944
|
"data-html2canvas-ignore": ""
|
|
920
945
|
}, [
|
|
921
|
-
a.value.style.chart.zoom.show && F.value > 1 ? (T(), Z(
|
|
946
|
+
a.value.style.chart.zoom.show && F.value > 1 ? (T(), Z(_a, {
|
|
922
947
|
key: `slicer_${be.value}`,
|
|
923
948
|
background: a.value.style.chart.zoom.color,
|
|
924
949
|
borderColor: a.value.style.chart.backgroundColor,
|
|
@@ -937,9 +962,9 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
937
962
|
"onUpdate:start": t[1] || (t[1] = (o) => u.value.start = o),
|
|
938
963
|
end: u.value.end,
|
|
939
964
|
"onUpdate:end": t[2] || (t[2] = (o) => u.value.end = o),
|
|
940
|
-
onReset:
|
|
965
|
+
onReset: Ke
|
|
941
966
|
}, {
|
|
942
|
-
"reset-action":
|
|
967
|
+
"reset-action": b(({ reset: o }) => [
|
|
943
968
|
k(e.$slots, "reset-action", G(V({ reset: o })), void 0, !0)
|
|
944
969
|
]),
|
|
945
970
|
_: 3
|
|
@@ -947,19 +972,19 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
947
972
|
], 4),
|
|
948
973
|
j("div", {
|
|
949
974
|
ref_key: "chartLegend",
|
|
950
|
-
ref:
|
|
975
|
+
ref: ke
|
|
951
976
|
}, [
|
|
952
|
-
a.value.style.chart.legend.show &&
|
|
977
|
+
a.value.style.chart.legend.show && ce.value ? (T(), Z(Ea, {
|
|
953
978
|
key: 0,
|
|
954
979
|
legendSet: Pe.value,
|
|
955
|
-
config:
|
|
980
|
+
config: va.value,
|
|
956
981
|
onClickMarker: t[3] || (t[3] = ({ i: o }) => Oe(o))
|
|
957
982
|
}, {
|
|
958
|
-
item:
|
|
983
|
+
item: b(({ legend: o, index: i }) => [
|
|
959
984
|
j("div", {
|
|
960
985
|
onClick: (v) => o.segregate(),
|
|
961
|
-
style:
|
|
962
|
-
},
|
|
986
|
+
style: X(`opacity:${w.value.includes(i) ? 0.5 : 1}`)
|
|
987
|
+
}, We(o.name), 13, Aa)
|
|
963
988
|
]),
|
|
964
989
|
_: 1
|
|
965
990
|
}, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
|
|
@@ -967,10 +992,10 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
967
992
|
legend: Pe.value
|
|
968
993
|
}, void 0, !0)
|
|
969
994
|
], 512),
|
|
970
|
-
e.$slots.watermark ? (T(),
|
|
971
|
-
k(e.$slots, "watermark", G(V({ isPrinting: E(
|
|
995
|
+
e.$slots.watermark ? (T(), se("div", Za, [
|
|
996
|
+
k(e.$slots, "watermark", G(V({ isPrinting: E(Se) || E($e) })), void 0, !0)
|
|
972
997
|
])) : A("", !0),
|
|
973
|
-
u.value.end - u.value.start < 200 ? (T(), Z(
|
|
998
|
+
u.value.end - u.value.start < 200 ? (T(), Z(Wa, {
|
|
974
999
|
key: 3,
|
|
975
1000
|
hideDetails: "",
|
|
976
1001
|
config: {
|
|
@@ -986,20 +1011,20 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
986
1011
|
}
|
|
987
1012
|
}
|
|
988
1013
|
}, {
|
|
989
|
-
content:
|
|
990
|
-
|
|
991
|
-
colNames:
|
|
992
|
-
head:
|
|
993
|
-
body:
|
|
994
|
-
config:
|
|
1014
|
+
content: b(() => [
|
|
1015
|
+
ye(Ya, {
|
|
1016
|
+
colNames: ue.value.colNames,
|
|
1017
|
+
head: ue.value.head,
|
|
1018
|
+
body: ue.value.body,
|
|
1019
|
+
config: ue.value.config,
|
|
995
1020
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
996
1021
|
onClose: t[4] || (t[4] = (o) => r.value.showTable = !1)
|
|
997
1022
|
}, {
|
|
998
|
-
th:
|
|
999
|
-
j("div", { innerHTML: o }, null, 8,
|
|
1023
|
+
th: b(({ th: o }) => [
|
|
1024
|
+
j("div", { innerHTML: o }, null, 8, Ga)
|
|
1000
1025
|
]),
|
|
1001
|
-
td:
|
|
1002
|
-
|
|
1026
|
+
td: b(({ td: o }) => [
|
|
1027
|
+
pa(We(o), 1)
|
|
1003
1028
|
]),
|
|
1004
1029
|
_: 1
|
|
1005
1030
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
@@ -1008,7 +1033,7 @@ const Xa = ["id"], Ua = ["onClick"], Aa = {
|
|
|
1008
1033
|
}, 8, ["config"])) : A("", !0)
|
|
1009
1034
|
], 14, Xa));
|
|
1010
1035
|
}
|
|
1011
|
-
},
|
|
1036
|
+
}, nl = /* @__PURE__ */ Ua(Va, [["__scopeId", "data-v-903000c8"]]);
|
|
1012
1037
|
export {
|
|
1013
|
-
|
|
1038
|
+
nl as default
|
|
1014
1039
|
};
|