vue-data-ui 2.4.84 → 2.4.86
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-DCfmf5dA.cjs → Arrow-Bh7Ezbzf.cjs} +1 -1
- package/dist/{Arrow-CExa0Dz7.js → Arrow-DpgbndsU.js} +1 -1
- package/dist/{BaseIcon-64qWZUaJ.cjs → BaseIcon-CaKclr1e.cjs} +1 -1
- package/dist/{BaseIcon-I6DfuN0D.js → BaseIcon-CdPe2CAc.js} +1 -1
- package/dist/{DataTable-DYhXzoFM.js → DataTable-BfiPjHpN.js} +2 -2
- package/dist/{DataTable-C_6KWwfC.cjs → DataTable-DuosyZ6d.cjs} +1 -1
- package/dist/{Legend-BkolTSZc.cjs → Legend-BnKYc6ZY.cjs} +1 -1
- package/dist/{Legend-D8VMKZ6f.js → Legend-DiFDWEo2.js} +2 -2
- package/dist/{PackageVersion-BV362f3w.cjs → PackageVersion-B5rBHZEb.cjs} +1 -1
- package/dist/{PackageVersion-CO2IMTO9.js → PackageVersion-qom4AEUr.js} +1 -1
- package/dist/{PenAndPaper-DvN8ocWC.cjs → PenAndPaper-5OV7IAca.cjs} +1 -1
- package/dist/{PenAndPaper-CnW2eqXw.js → PenAndPaper-C-1AU46J.js} +3 -3
- package/dist/{Shape-VkiqMBJb.cjs → Shape-CmsIulaS.cjs} +1 -1
- package/dist/{Shape-Bit--n_P.js → Shape-Dmv7nCLC.js} +1 -1
- package/dist/{Slicer-D8EYKe1g.cjs → Slicer-CmBt4xoj.cjs} +1 -1
- package/dist/{Slicer-BIRZ38gw.js → Slicer-D4ugcR39.js} +2 -2
- package/dist/{Title-C_gOJvlv.js → Title-ClQ27HaB.js} +1 -1
- package/dist/{Title-BVwrrnjn.cjs → Title-D3kX1BVl.cjs} +1 -1
- package/dist/{Tooltip-CfsfUzgu.cjs → Tooltip-CARCyQNT.cjs} +1 -1
- package/dist/{Tooltip-Czv48jTt.js → Tooltip-CGYgJoPR.js} +1 -1
- package/dist/{index-CFW17vb1.js → index-CXx0JV8R.js} +1 -1
- package/dist/{index-DtU3BvTq.cjs → index-DqxDpUy0.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-HPB1YHuD.js → useNestedProp-B-WAbP7E.js} +1 -1
- package/dist/{useNestedProp-Bwqm-3kz.cjs → useNestedProp-DNWKDmdP.cjs} +1 -1
- package/dist/{usePrinter-CdEwyYTo.cjs → usePrinter-BC7U4s0U.cjs} +1 -1
- package/dist/{usePrinter-19frcFuH.js → usePrinter-Ctor1UK0.js} +1 -1
- package/dist/{vue-data-ui-Cwa_3CUx.js → vue-data-ui-BpAZx3Va.js} +60 -60
- package/dist/{vue-data-ui-Do7J2TPn.cjs → vue-data-ui-DkgWwqtw.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-DFyAJ8Js.js → vue-ui-3d-bar-1A6t1biQ.js} +9 -9
- package/dist/{vue-ui-3d-bar-BHQnk6JC.cjs → vue-ui-3d-bar-ngD35pLb.cjs} +1 -1
- package/dist/{vue-ui-accordion-B8vShfXi.js → vue-ui-accordion-BljYKOXR.js} +3 -3
- package/dist/{vue-ui-accordion-DP9u_TW0.cjs → vue-ui-accordion-XAEm2rxj.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BgsDYe37.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Dmve7QfH.js → vue-ui-age-pyramid-qfVpUr52.js} +14 -12
- package/dist/{vue-ui-annotator-BlXk3QBH.js → vue-ui-annotator-CH9QWqAv.js} +1 -1
- package/dist/{vue-ui-annotator-D9EQpzhs.cjs → vue-ui-annotator-pFybuGix.cjs} +1 -1
- package/dist/{vue-ui-bullet-C_689DzY.js → vue-ui-bullet-BH7zmX0E.js} +8 -8
- package/dist/{vue-ui-bullet-HVCVCTLU.cjs → vue-ui-bullet-C6y7Ddg-.cjs} +1 -1
- package/dist/{vue-ui-candlestick-jaQCvTyL.cjs → vue-ui-candlestick-DtCmxeo5.cjs} +2 -2
- package/dist/{vue-ui-candlestick-BeoPugFC.js → vue-ui-candlestick-RCtFAjEU.js} +72 -70
- package/dist/{vue-ui-carousel-table-DSJth2mn.js → vue-ui-carousel-table-BUL063mi.js} +4 -4
- package/dist/{vue-ui-carousel-table-C6TjkSgb.cjs → vue-ui-carousel-table-BeDenKJo.cjs} +1 -1
- package/dist/{vue-ui-chestnut-B2ufyy3m.cjs → vue-ui-chestnut-B6EalNLT.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DYFaL9sS.js → vue-ui-chestnut-xDD_4bz2.js} +8 -8
- package/dist/{vue-ui-cursor-0SZiJ6tf.js → vue-ui-cursor-D6Qndjnn.js} +2 -2
- package/dist/{vue-ui-cursor-B8ne66iS.cjs → vue-ui-cursor-DbV0HXHB.cjs} +1 -1
- package/dist/{vue-ui-dashboard-9JNDS8H_.js → vue-ui-dashboard-B_4ot4bz.js} +2 -2
- package/dist/{vue-ui-dashboard-Cc6YeOue.cjs → vue-ui-dashboard-B_kj8L_A.cjs} +1 -1
- package/dist/{vue-ui-digits-DNyhJL4P.js → vue-ui-digits-BLI4lCZC.js} +2 -2
- package/dist/{vue-ui-digits-lJ7p7zK0.cjs → vue-ui-digits-DKs2fTGz.cjs} +1 -1
- package/dist/vue-ui-donut-B1Cg4vpI.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-CNUN-Ibl.cjs → vue-ui-donut-evolution-CgB_aexh.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BZgaPkPQ.js → vue-ui-donut-evolution-ClOGDHiK.js} +11 -11
- package/dist/{vue-ui-donut-rUTpcnu6.js → vue-ui-donut-wBZoPkru.js} +17 -15
- package/dist/vue-ui-dumbbell-Cm5O6D4x.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dt0y6iAc.js → vue-ui-dumbbell-PR9tHMvD.js} +48 -46
- package/dist/{vue-ui-flow-DoDnRTz2.cjs → vue-ui-flow-CIkXePxd.cjs} +1 -1
- package/dist/{vue-ui-flow-CNJvuCPl.js → vue-ui-flow-CxW8g0NW.js} +9 -9
- package/dist/{vue-ui-funnel-CzxjqsPW.js → vue-ui-funnel-BJNlWIq5.js} +37 -35
- package/dist/vue-ui-funnel-BLXk1z5r.cjs +1 -0
- package/dist/{vue-ui-galaxy-Bd3A40CM.cjs → vue-ui-galaxy-C01Apc4E.cjs} +1 -1
- package/dist/{vue-ui-galaxy-4lQvAV3d.js → vue-ui-galaxy-DuGLDGzf.js} +11 -11
- package/dist/{vue-ui-gauge-C-VzxGad.js → vue-ui-gauge-CBx84KCt.js} +28 -26
- package/dist/vue-ui-gauge-Dpcxdegh.cjs +1 -0
- package/dist/{vue-ui-gizmo-CE_RL3QC.js → vue-ui-gizmo-BPIyNNkI.js} +3 -3
- package/dist/{vue-ui-gizmo-C_H8YGW3.cjs → vue-ui-gizmo-Djw5T_Vr.cjs} +1 -1
- package/dist/{vue-ui-heatmap-GRSinjd8.js → vue-ui-heatmap-DI8gVwfM.js} +10 -10
- package/dist/{vue-ui-heatmap-9F3jF9Ph.cjs → vue-ui-heatmap-DYPE1Efx.cjs} +1 -1
- package/dist/vue-ui-history-plot-BeYYrq5_.cjs +1 -0
- package/dist/{vue-ui-history-plot-DmGaPsqO.js → vue-ui-history-plot-CWfWMwqw.js} +56 -54
- package/dist/{vue-ui-kpi-Ce45VFCW.cjs → vue-ui-kpi-BjGIj-IQ.cjs} +1 -1
- package/dist/{vue-ui-kpi-BeGj6WIY.js → vue-ui-kpi-CBJZp-nE.js} +3 -3
- package/dist/{vue-ui-mini-loader-D3edtEz_.cjs → vue-ui-mini-loader-Cafts_cp.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DE8S92Sq.js → vue-ui-mini-loader-DfeNWsJk.js} +2 -2
- package/dist/{vue-ui-molecule-B3DvbGKk.js → vue-ui-molecule-BTO5WRuL.js} +11 -11
- package/dist/{vue-ui-molecule-CBXx1n83.cjs → vue-ui-molecule-Ckh2JsOJ.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-D86fg_ce.js → vue-ui-mood-radar-CKGwiCsd.js} +11 -11
- package/dist/{vue-ui-mood-radar-LiiA0Dc-.cjs → vue-ui-mood-radar-WHFk1KC1.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BXKM6dJG.cjs → vue-ui-nested-donuts-BvkJoiOT.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-jk4b-l4R.js → vue-ui-nested-donuts-JGie_log.js} +16 -14
- package/dist/{vue-ui-onion-DMDU5CNx.cjs → vue-ui-onion-BWoVr0FT.cjs} +2 -2
- package/dist/{vue-ui-onion-0OpNltFd.js → vue-ui-onion-BXauNEVz.js} +31 -29
- package/dist/{vue-ui-parallel-coordinate-plot-C6z7ZrZv.cjs → vue-ui-parallel-coordinate-plot-BrvB0jer.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-CK1Npqa-.js → vue-ui-parallel-coordinate-plot-njogPtYo.js} +62 -60
- package/dist/vue-ui-quadrant-D8krEYWV.cjs +1 -0
- package/dist/{vue-ui-quadrant-BTXxbgGe.js → vue-ui-quadrant-DnaOzxMc.js} +16 -14
- package/dist/{vue-ui-quick-chart-C648x_Ta.cjs → vue-ui-quick-chart-DTiell5S.cjs} +2 -2
- package/dist/{vue-ui-quick-chart-DxTYh43Q.js → vue-ui-quick-chart-kAG9Eaxb.js} +55 -53
- package/dist/vue-ui-radar-DKB9rVav.cjs +1 -0
- package/dist/{vue-ui-radar-ogrYz2LM.js → vue-ui-radar-DRmP5yb4.js} +100 -98
- package/dist/{vue-ui-rating-BA3qzlLU.cjs → vue-ui-rating-BtLDJSwm.cjs} +1 -1
- package/dist/{vue-ui-rating-BDOw91i1.js → vue-ui-rating-De5IfgHJ.js} +2 -2
- package/dist/vue-ui-relation-circle-B2l-2KnH.cjs +1 -0
- package/dist/{vue-ui-relation-circle-DzIUtPsI.js → vue-ui-relation-circle-DKQl7eWX.js} +56 -54
- package/dist/{vue-ui-rings-ZT5FspBJ.js → vue-ui-rings-Dwyz2fEm.js} +39 -37
- package/dist/{vue-ui-rings-CC2lRhXV.cjs → vue-ui-rings-KQoMkv4v.cjs} +2 -2
- package/dist/vue-ui-scatter-CDT3zyXP.cjs +1 -0
- package/dist/{vue-ui-scatter-DWrEQi8R.js → vue-ui-scatter-DeOrkD2Y.js} +52 -50
- package/dist/{vue-ui-screenshot-C5qnoqpN.cjs → vue-ui-screenshot-BLp1_Q6K.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Cu9IDDlN.js → vue-ui-screenshot-D1Ekbb27.js} +1 -1
- package/dist/{vue-ui-skeleton-RRyod9qq.js → vue-ui-skeleton-Cw0-Ac_0.js} +3 -3
- package/dist/{vue-ui-skeleton-BJjc2poJ.cjs → vue-ui-skeleton-qIxxRRaX.cjs} +1 -1
- package/dist/{vue-ui-smiley-y9nTUBhA.cjs → vue-ui-smiley-D3WgXFhb.cjs} +1 -1
- package/dist/{vue-ui-smiley-Ph-v2-Ai.js → vue-ui-smiley-D3oqt6Rg.js} +2 -2
- package/dist/{vue-ui-spark-trend-CLToG1xM.cjs → vue-ui-spark-trend-CVyPm6ms.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Bny5SJnu.js → vue-ui-spark-trend-DyhcWMWz.js} +5 -5
- package/dist/{vue-ui-sparkbar-Cte6J2j-.js → vue-ui-sparkbar-C0av7SAn.js} +4 -4
- package/dist/{vue-ui-sparkbar-XuIl0I-2.cjs → vue-ui-sparkbar-CRMMOv0T.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-NGpDEiOA.js → vue-ui-sparkgauge-B3K4si6u.js} +4 -4
- package/dist/{vue-ui-sparkgauge-85UuRRgo.cjs → vue-ui-sparkgauge-BQnxP_8u.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-DC6GQfGG.js → vue-ui-sparkhistogram-Bo3pkA-I.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-g9PwZ66_.cjs → vue-ui-sparkhistogram-DVAas7L7.cjs} +1 -1
- package/dist/vue-ui-sparkline-CDqFBaPU.cjs +1 -0
- package/dist/{vue-ui-sparkline-Cv0OStNn.js → vue-ui-sparkline-DIHKGu0H.js} +37 -35
- package/dist/{vue-ui-sparkstackbar-Dvi0gC4_.cjs → vue-ui-sparkstackbar-CC-OaMTb.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-lUSVcaQd.js → vue-ui-sparkstackbar-DG87wFd5.js} +5 -5
- package/dist/{vue-ui-stackbar-DjJtIsdz.cjs → vue-ui-stackbar-CVHKHNom.cjs} +2 -2
- package/dist/{vue-ui-stackbar-CqbbJfYt.js → vue-ui-stackbar-fZKaRitE.js} +55 -53
- package/dist/vue-ui-strip-plot-C1pjZ1AT.cjs +1 -0
- package/dist/{vue-ui-strip-plot-BCg5ReEr.js → vue-ui-strip-plot-WOMaN28I.js} +77 -75
- package/dist/{vue-ui-table-BLtxfmhY.cjs → vue-ui-table-CTtYDZPd.cjs} +1 -1
- package/dist/{vue-ui-table-C0gtq240.js → vue-ui-table-a4m3lpRq.js} +1 -1
- package/dist/{vue-ui-table-heatmap-QuqCtJWs.js → vue-ui-table-heatmap-0vDMKYpV.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Df4MQoU-.cjs → vue-ui-table-heatmap-i00aBLPq.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-Cgt7aEwb.js → vue-ui-table-sparkline-D5lngzCM.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CUD-P2XB.cjs → vue-ui-table-sparkline-DW7t3xfB.cjs} +1 -1
- package/dist/{vue-ui-thermometer-Dmba_BQM.js → vue-ui-thermometer-3aeRI-SM.js} +7 -7
- package/dist/{vue-ui-thermometer-DwFIhO9V.cjs → vue-ui-thermometer-QtlVD4-S.cjs} +1 -1
- package/dist/vue-ui-timer-B1nkj0WG.cjs +64 -0
- package/dist/{vue-ui-timer-C7B7kC_T.js → vue-ui-timer-mRaLpRHZ.js} +35 -33
- package/dist/{vue-ui-tiremarks-D5xKuhfo.js → vue-ui-tiremarks-Dv2O6FpS.js} +7 -7
- package/dist/{vue-ui-tiremarks-Cbu6E711.cjs → vue-ui-tiremarks-xMuvEsN7.cjs} +1 -1
- package/dist/vue-ui-treemap-BupfwSFa.cjs +1 -0
- package/dist/{vue-ui-treemap-4MV0XnQk.js → vue-ui-treemap-D89aQanB.js} +37 -35
- package/dist/{vue-ui-vertical-bar-CXyj54xk.js → vue-ui-vertical-bar-BpLIp4qR.js} +53 -51
- package/dist/{vue-ui-vertical-bar-CoReGxcB.cjs → vue-ui-vertical-bar-CwHag6jq.cjs} +2 -2
- package/dist/vue-ui-waffle-DuPI0NV4.cjs +1 -0
- package/dist/{vue-ui-waffle-DEs7x_2T.js → vue-ui-waffle-sr2mWvpN.js} +50 -48
- package/dist/{vue-ui-wheel-g8X99gKX.js → vue-ui-wheel-B7DOHXW8.js} +22 -20
- package/dist/vue-ui-wheel-C0KYRHGC.cjs +1 -0
- package/dist/vue-ui-word-cloud-BCPMmXhU.cjs +1 -0
- package/dist/{vue-ui-word-cloud-CVa0GWD2.js → vue-ui-word-cloud-BxMb7oCr.js} +47 -45
- package/dist/vue-ui-xy-D5ROTNHD.cjs +3 -0
- package/dist/{vue-ui-xy-BGlQK1KX.js → vue-ui-xy-DlyUTKB5.js} +809 -818
- package/dist/{vue-ui-xy-canvas-B8lWHhig.cjs → vue-ui-xy-canvas-BDMk6XVE.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-C5WvLq7x.js → vue-ui-xy-canvas-DHvkJKQH.js} +36 -34
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-DZM35V2u.cjs +0 -1
- package/dist/vue-ui-donut-B1pUA9f9.cjs +0 -1
- package/dist/vue-ui-dumbbell-Cvsoh0T7.cjs +0 -9
- package/dist/vue-ui-funnel-BuMkpJAC.cjs +0 -1
- package/dist/vue-ui-gauge-BE_j4sWG.cjs +0 -1
- package/dist/vue-ui-history-plot-CCRPcG-q.cjs +0 -1
- package/dist/vue-ui-quadrant-BseIxY55.cjs +0 -1
- package/dist/vue-ui-radar-BRL3W3Na.cjs +0 -1
- package/dist/vue-ui-relation-circle-lh7NE0h5.cjs +0 -1
- package/dist/vue-ui-scatter-ebuihNvY.cjs +0 -1
- package/dist/vue-ui-sparkline-BiqTIIb1.cjs +0 -1
- package/dist/vue-ui-strip-plot-y7iID0n4.cjs +0 -1
- package/dist/vue-ui-timer-mYvuMMWA.cjs +0 -64
- package/dist/vue-ui-treemap-CE67vTLK.cjs +0 -1
- package/dist/vue-ui-waffle-8nA0-Wb6.cjs +0 -1
- package/dist/vue-ui-wheel-CJr7fA0P.cjs +0 -1
- package/dist/vue-ui-word-cloud-B6swJJCN.cjs +0 -1
- package/dist/vue-ui-xy-lkMHpHRs.cjs +0 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { useSlots as It, computed as w, ref as g, onMounted as et, watch as tt, nextTick as he, openBlock as o, createElementBlock as s, normalizeClass as te, normalizeStyle as U, unref as m, createBlock as Z, createCommentVNode as v, renderSlot as x, createVNode as ae, createSlots as at, withCtx as z, normalizeProps as I, guardReactiveProps as O, Fragment as h, renderList as y, createElementVNode as Y, toDisplayString as $, createTextVNode as Ot } from "vue";
|
|
2
|
-
import { u as Pt, c as lt, t as Rt, a as At, p as ve, C as de, b as Vt, o as
|
|
3
|
-
import { u as ct } from "./useNestedProp-
|
|
2
|
+
import { u as Pt, c as lt, t as Rt, a as At, p as ve, C as de, b as Vt, o as Ft, e as rt, g as Dt, d as Et, a9 as ye, a5 as ot, D as st, X as Ht, l as Wt, a2 as ge, G as it, f as X, x as nt, i as ut, y as Bt, q as Ut, r as Yt } from "./index-CXx0JV8R.js";
|
|
3
|
+
import { u as ct } from "./useNestedProp-B-WAbP7E.js";
|
|
4
4
|
import { t as Xt, u as Gt } from "./useResponsive-CoxXLe23.js";
|
|
5
|
-
import { u as Jt, U as qt } from "./usePrinter-
|
|
6
|
-
import { S as Zt } from "./Slicer-
|
|
7
|
-
import { _ as Kt } from "./Tooltip-
|
|
8
|
-
import { _ as Qt } from "./Title-
|
|
9
|
-
import { L as jt } from "./Legend-
|
|
10
|
-
import ea from "./vue-ui-accordion-
|
|
11
|
-
import { D as ta } from "./DataTable-
|
|
12
|
-
import aa from "./vue-ui-skeleton-
|
|
13
|
-
import { _ as la } from "./PackageVersion-
|
|
14
|
-
import { P as ra } from "./PenAndPaper-
|
|
5
|
+
import { u as Jt, U as qt } from "./usePrinter-Ctor1UK0.js";
|
|
6
|
+
import { S as Zt } from "./Slicer-D4ugcR39.js";
|
|
7
|
+
import { _ as Kt } from "./Tooltip-CGYgJoPR.js";
|
|
8
|
+
import { _ as Qt } from "./Title-ClQ27HaB.js";
|
|
9
|
+
import { L as jt } from "./Legend-DiFDWEo2.js";
|
|
10
|
+
import ea from "./vue-ui-accordion-BljYKOXR.js";
|
|
11
|
+
import { D as ta } from "./DataTable-BfiPjHpN.js";
|
|
12
|
+
import aa from "./vue-ui-skeleton-Cw0-Ac_0.js";
|
|
13
|
+
import { _ as la } from "./PackageVersion-qom4AEUr.js";
|
|
14
|
+
import { P as ra } from "./PenAndPaper-C-1AU46J.js";
|
|
15
15
|
import { u as oa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
16
|
-
import { _ as sa } from "./Shape-
|
|
16
|
+
import { _ as sa } from "./Shape-Dmv7nCLC.js";
|
|
17
17
|
import { _ as ia } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
-
const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"], ha = { key: 1 }, va = ["id"], da = ["stop-color"], ya = ["stop-color"], ga = ["stop-color"], ba = ["x1", "x2", "y1", "y2", "stroke"], fa = ["x1", "x2", "y1", "y2", "stroke"], ma = ["x1", "x2", "y1", "y2", "stroke"], pa = ["x1", "x2", "y1", "y2", "stroke"], xa = { key: 0 }, ka = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], wa = { key: 0 }, za = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], _a = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ca = { key: 0 }, La = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ma = ["x", "y", "font-size", "fill", "font-weight"], Ta = ["transform", "font-size", "fill", "font-weight"], Na = ["x", "y", "font-size", "fill", "font-weight"], Ia = { key: 0 }, Oa = ["x", "y", "font-size", "font-weight", "fill"], Pa = ["x", "y", "font-size", "fill", "font-weight"], Ra = { key: 0 }, Aa = ["x", "y", "font-size", "font-weight", "fill"], Va = ["x1", "x2", "y1", "y2", "stroke"],
|
|
18
|
+
const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"], ha = { key: 1 }, va = ["id"], da = ["stop-color"], ya = ["stop-color"], ga = ["stop-color"], ba = ["x1", "x2", "y1", "y2", "stroke"], fa = ["x1", "x2", "y1", "y2", "stroke"], ma = ["x1", "x2", "y1", "y2", "stroke"], pa = ["x1", "x2", "y1", "y2", "stroke"], xa = { key: 0 }, ka = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], wa = { key: 0 }, za = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], _a = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ca = { key: 0 }, La = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ma = ["x", "y", "font-size", "fill", "font-weight"], Ta = ["transform", "font-size", "fill", "font-weight"], Na = ["x", "y", "font-size", "fill", "font-weight"], Ia = { key: 0 }, Oa = ["x", "y", "font-size", "font-weight", "fill"], Pa = ["x", "y", "font-size", "fill", "font-weight"], Ra = { key: 0 }, Aa = ["x", "y", "font-size", "font-weight", "fill"], Va = ["x1", "x2", "y1", "y2", "stroke"], Fa = ["x", "y", "font-size", "font-weight", "fill"], Da = ["x1", "x2", "y1", "y2", "stroke"], Ea = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Ha = { key: 0 }, Wa = { key: 1 }, Ba = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Ua = { key: 0 }, Ya = { key: 1 }, Xa = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Ga = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], Ja = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], qa = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
21
|
}, Za = ["onClick"], Ka = ["innerHTML"], Qa = {
|
|
@@ -43,7 +43,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
43
43
|
set(a) {
|
|
44
44
|
return a;
|
|
45
45
|
}
|
|
46
|
-
}), J = g(null), R = g(lt()), le = g(!1), we = g(null), me = g(""), L = g([]), ze = g(0), _e = g(null), Ce = g(null), Le = g(null), Se = g(null), $e = g(0), re = g(!1), K = g(null),
|
|
46
|
+
}), J = g(null), R = g(lt()), le = g(!1), we = g(null), me = g(""), L = g([]), ze = g(0), _e = g(null), Ce = g(null), Le = g(null), Se = g(null), $e = g(0), re = g(!1), K = g(null), D = g(!1), yt = g(0), gt = g(0), bt = g(0), q = g(null);
|
|
47
47
|
et(() => {
|
|
48
48
|
xe();
|
|
49
49
|
});
|
|
@@ -68,7 +68,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
68
68
|
tt(() => b.config, (a) => {
|
|
69
69
|
e.value = Ne(), pe.value = !e.value.showOnChartHover, xe(), yt.value += 1, gt.value += 1, bt.value += 1;
|
|
70
70
|
}, { deep: !0 }), tt(() => b.dataset, (a) => {
|
|
71
|
-
|
|
71
|
+
Fe();
|
|
72
72
|
}, { deep: !0 });
|
|
73
73
|
const C = g({
|
|
74
74
|
dataLabels: {
|
|
@@ -93,11 +93,11 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
93
93
|
xe();
|
|
94
94
|
});
|
|
95
95
|
function xe() {
|
|
96
|
-
if (
|
|
96
|
+
if (Ft(b.dataset) ? rt({
|
|
97
97
|
componentName: "VueUiStackbar",
|
|
98
98
|
type: "dataset"
|
|
99
99
|
}) : b.dataset.forEach((a, l) => {
|
|
100
|
-
|
|
100
|
+
Dt({
|
|
101
101
|
datasetObject: a,
|
|
102
102
|
requiredAttributes: ["name", "series"]
|
|
103
103
|
}).forEach((t) => {
|
|
@@ -109,10 +109,10 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
111
|
}), setTimeout(() => {
|
|
112
|
-
|
|
112
|
+
D.value = !0;
|
|
113
113
|
}, 10), e.value.responsive) {
|
|
114
114
|
const a = Xt(() => {
|
|
115
|
-
|
|
115
|
+
D.value = !1;
|
|
116
116
|
const { width: l, height: t } = Gt({
|
|
117
117
|
chart: J.value,
|
|
118
118
|
title: e.value.style.chart.title.text ? _e.value : null,
|
|
@@ -120,16 +120,18 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
120
120
|
slicer: e.value.style.chart.zoom.show && V.value > 1 ? Le.value : null,
|
|
121
121
|
source: Se.value
|
|
122
122
|
});
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
requestAnimationFrame(() => {
|
|
124
|
+
oe.value.width = l, oe.value.height = t, clearTimeout(Ve.value), Ve.value = setTimeout(() => {
|
|
125
|
+
D.value = !0;
|
|
126
|
+
}, 10);
|
|
127
|
+
});
|
|
126
128
|
});
|
|
127
129
|
Ae.value = new ResizeObserver(a), Ae.value.observe(J.value.parentNode);
|
|
128
130
|
}
|
|
129
|
-
|
|
131
|
+
De();
|
|
130
132
|
}
|
|
131
133
|
const i = w(() => {
|
|
132
|
-
const { height: a, width: l } = oe.value, { right: t } = oe.value.paddingRatio, r = e.value.style.chart.padding.top, u = l - l * t, n = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left,
|
|
134
|
+
const { height: a, width: l } = oe.value, { right: t } = oe.value.paddingRatio, r = e.value.style.chart.padding.top, u = l - l * t, n = a - e.value.style.chart.padding.bottom, _ = e.value.style.chart.padding.left, E = l - _ - l * t, H = a - r - e.value.style.chart.padding.bottom;
|
|
133
135
|
return {
|
|
134
136
|
chartHeight: a,
|
|
135
137
|
chartWidth: l,
|
|
@@ -137,11 +139,11 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
137
139
|
right: u,
|
|
138
140
|
bottom: n,
|
|
139
141
|
left: _,
|
|
140
|
-
width:
|
|
142
|
+
width: E,
|
|
141
143
|
height: H < 0 ? 0 : H
|
|
142
144
|
};
|
|
143
145
|
}), A = w(() => b.dataset.map((a, l) => {
|
|
144
|
-
const t =
|
|
146
|
+
const t = Et(a.color) || ft.value[l] || ve[l] || ve[l % ve.length];
|
|
145
147
|
return {
|
|
146
148
|
...a,
|
|
147
149
|
// In distributed mode, all values are converted to positive
|
|
@@ -156,10 +158,10 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
156
158
|
start: 0,
|
|
157
159
|
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
158
160
|
});
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
+
function Fe() {
|
|
162
|
+
De();
|
|
161
163
|
}
|
|
162
|
-
async function
|
|
164
|
+
async function De() {
|
|
163
165
|
(e.value.style.chart.zoom.startIndex !== null || e.value.style.chart.zoom.endIndex !== null) && q.value ? (e.value.style.chart.zoom.startIndex !== null && (await he(), await he(), q.value && q.value.setStartValue(e.value.style.chart.zoom.startIndex)), e.value.style.chart.zoom.endIndex !== null && (await he(), await he(), q.value && q.value.setEndValue(mt(e.value.style.chart.zoom.endIndex + 1)))) : (c.value = {
|
|
164
166
|
start: 0,
|
|
165
167
|
end: Math.max(...b.dataset.map((a) => a.series.length))
|
|
@@ -198,7 +200,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
198
200
|
horizontal_y: i.value.bottom - 8,
|
|
199
201
|
value: u
|
|
200
202
|
}));
|
|
201
|
-
}),
|
|
203
|
+
}), F = w(() => {
|
|
202
204
|
const a = [];
|
|
203
205
|
for (let l = 0; l < V.value; l += 1)
|
|
204
206
|
a.push({
|
|
@@ -209,7 +211,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
209
211
|
}), k = w(() => {
|
|
210
212
|
if (!G.value) return [];
|
|
211
213
|
let a = Array(V.value).fill(0), l = Array(V.value).fill(0), t = Array(V.value).fill(0), r = Array(V.value).fill(0);
|
|
212
|
-
const u = Math.max(...se.value.positive) || 0, n = Math.min(...se.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n,
|
|
214
|
+
const u = Math.max(...se.value.positive) || 0, n = Math.min(...se.value.negative), _ = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, E = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? ot(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks) : st(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : _ > 0 ? 0 : _, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : u < 0 ? 0 : u, e.value.style.chart.grid.scale.ticks), { min: H, max: j } = E, W = j + (H >= 0 ? 0 : Math.abs(H)) || 1, S = i.value.height, ce = i.value.width, Qe = N.value[0] ? N.value[0].zero : i.value.bottom, je = N.value[0] ? N.value[0].horizontal_zero : i.value.left;
|
|
213
215
|
return A.value.filter((ee) => !L.value.includes(ee.id)).map((ee) => {
|
|
214
216
|
const P = ee.series.slice(c.value.start, c.value.end), _t = ee.signedSeries.slice(c.value.start, c.value.end), Ct = P.map((f, p) => i.value.left + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), Lt = P.map((f, p) => i.value.top + d.value * p + d.value * e.value.style.chart.bars.gapRatio / 4), St = P.map((f, p) => {
|
|
215
217
|
const M = e.value.style.chart.bars.distributed ? (f || 0) / Q.value[p] : (f || 0) / W;
|
|
@@ -239,7 +241,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
239
241
|
horizontal_x: $t
|
|
240
242
|
};
|
|
241
243
|
});
|
|
242
|
-
}),
|
|
244
|
+
}), Ee = w(() => pt.value.map((a, l) => ({
|
|
243
245
|
value: a,
|
|
244
246
|
sign: a >= 0 ? 1 : -1
|
|
245
247
|
})));
|
|
@@ -277,7 +279,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
277
279
|
color: t.color,
|
|
278
280
|
id: t.id
|
|
279
281
|
}));
|
|
280
|
-
fe("selectDatapoint", { datapoint: l, period:
|
|
282
|
+
fe("selectDatapoint", { datapoint: l, period: F.value[a] });
|
|
281
283
|
}
|
|
282
284
|
function Be(a) {
|
|
283
285
|
K.value = a, le.value = !0;
|
|
@@ -306,11 +308,11 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
306
308
|
showValue: u,
|
|
307
309
|
showPercentage: n,
|
|
308
310
|
borderColor: _,
|
|
309
|
-
roundingValue:
|
|
311
|
+
roundingValue: E,
|
|
310
312
|
roundingPercentage: H
|
|
311
313
|
} = e.value.style.chart.tooltip;
|
|
312
314
|
let j = "";
|
|
313
|
-
|
|
315
|
+
F.value[a] && F.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (j += `<div style="width:100%;text-align:center;border-bottom:1px solid ${_};padding-bottom:6px;margin-bottom:3px;">${F.value[a].text}</div>`);
|
|
314
316
|
const W = [
|
|
315
317
|
u && n ? "(" : "",
|
|
316
318
|
u && n ? ")" : ""
|
|
@@ -323,7 +325,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
323
325
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
324
326
|
v: S.value,
|
|
325
327
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
326
|
-
r:
|
|
328
|
+
r: E
|
|
327
329
|
}) : ""} ${W[0]}${n ? X({
|
|
328
330
|
v: isNaN(S.value / r) ? 0 : Math.abs(S.value) / r * 100,
|
|
329
331
|
// Negs are absed to show relative proportion to absolute total. It's opinionated.
|
|
@@ -372,7 +374,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
372
374
|
const a = [""].concat(k.value.map((u) => u.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>');
|
|
373
375
|
let l = [];
|
|
374
376
|
for (let u = 0; u < V.value; u += 1) {
|
|
375
|
-
const n = k.value.map((_) => _.series[u] ?? 0).reduce((_,
|
|
377
|
+
const n = k.value.map((_) => _.series[u] ?? 0).reduce((_, E) => _ + E, 0);
|
|
376
378
|
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)[u] ?? u + 1].concat(k.value.map((_) => (_.series[u] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((n ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
377
379
|
}
|
|
378
380
|
const t = {
|
|
@@ -664,7 +666,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
664
666
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
665
667
|
"stroke-linecap": "round",
|
|
666
668
|
"stroke-linejoin": "round",
|
|
667
|
-
class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
669
|
+
class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
|
|
668
670
|
}, null, 10, ka))), 256)),
|
|
669
671
|
a.$slots.pattern ? (o(), s("g", wa, [
|
|
670
672
|
(o(!0), s(h, null, y(t.x, (u, n) => (o(), s("rect", {
|
|
@@ -678,7 +680,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
678
680
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
679
681
|
"stroke-linecap": "round",
|
|
680
682
|
"stroke-linejoin": "round",
|
|
681
|
-
class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
683
|
+
class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
|
|
682
684
|
}, null, 10, za))), 256))
|
|
683
685
|
])) : v("", !0)
|
|
684
686
|
], 64)) : (o(), s(h, { key: 2 }, [
|
|
@@ -693,7 +695,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
693
695
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
694
696
|
"stroke-linecap": "round",
|
|
695
697
|
"stroke-linejoin": "round",
|
|
696
|
-
class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
698
|
+
class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
|
|
697
699
|
}, null, 10, _a))), 256)),
|
|
698
700
|
a.$slots.pattern ? (o(), s("g", Ca, [
|
|
699
701
|
(o(!0), s(h, null, y(t.horizontal_x, (u, n) => (o(), s("rect", {
|
|
@@ -707,7 +709,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
707
709
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
708
710
|
"stroke-linecap": "round",
|
|
709
711
|
"stroke-linejoin": "round",
|
|
710
|
-
class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition":
|
|
712
|
+
class: te({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": D.value })
|
|
711
713
|
}, null, 10, La))), 256))
|
|
712
714
|
])) : v("", !0)
|
|
713
715
|
], 64))
|
|
@@ -766,7 +768,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
766
768
|
], 64))), 256))
|
|
767
769
|
]))), 256)),
|
|
768
770
|
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Ia, [
|
|
769
|
-
(o(!0), s(h, null, y(
|
|
771
|
+
(o(!0), s(h, null, y(Ee.value, (t, r) => (o(), s(h, null, [
|
|
770
772
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
|
|
771
773
|
key: 0,
|
|
772
774
|
x: i.value.left + d.value * r + d.value / 2,
|
|
@@ -794,7 +796,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
794
796
|
], 64))), 256))
|
|
795
797
|
]))), 256)),
|
|
796
798
|
e.value.style.chart.bars.totalValues.show && k.value.length > 1 ? (o(), s("g", Ra, [
|
|
797
|
-
(o(!0), s(h, null, y(
|
|
799
|
+
(o(!0), s(h, null, y(Ee.value, (t, r) => (o(), s(h, null, [
|
|
798
800
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (o(), s("text", {
|
|
799
801
|
key: 0,
|
|
800
802
|
x: i.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
@@ -828,7 +830,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
828
830
|
v: t.value,
|
|
829
831
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
830
832
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
831
|
-
})), 9,
|
|
833
|
+
})), 9, Fa))), 256))
|
|
832
834
|
], 64)) : v("", !0),
|
|
833
835
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (o(), s(h, { key: 13 }, [
|
|
834
836
|
(o(!0), s(h, null, y(N.value, (t, r) => (o(), s("line", {
|
|
@@ -839,7 +841,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
839
841
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
840
842
|
"stroke-width": 1,
|
|
841
843
|
"stroke-linecap": "round"
|
|
842
|
-
}, null, 8,
|
|
844
|
+
}, null, 8, Da))), 256)),
|
|
843
845
|
(o(!0), s(h, null, y(N.value, (t, r) => (o(), s("text", {
|
|
844
846
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
845
847
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
@@ -851,11 +853,11 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
851
853
|
v: t.value,
|
|
852
854
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
853
855
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
854
|
-
})), 9,
|
|
856
|
+
})), 9, Ea))), 256))
|
|
855
857
|
], 64)) : v("", !0),
|
|
856
858
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (o(), s(h, { key: 14 }, [
|
|
857
859
|
a.$slots["time-label"] ? (o(), s("g", Ha, [
|
|
858
|
-
(o(!0), s(h, null, y(
|
|
860
|
+
(o(!0), s(h, null, y(F.value, (t, r) => (o(), s("g", null, [
|
|
859
861
|
x(a.$slots, "time-label", I(O({
|
|
860
862
|
x: i.value.left + d.value * r + d.value / 2,
|
|
861
863
|
y: i.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
@@ -869,7 +871,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
869
871
|
})), void 0, !0)
|
|
870
872
|
]))), 256))
|
|
871
873
|
])) : (o(), s("g", Wa, [
|
|
872
|
-
(o(!0), s(h, null, y(
|
|
874
|
+
(o(!0), s(h, null, y(F.value, (t, r) => (o(), s("text", {
|
|
873
875
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
874
876
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
875
877
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
@@ -884,7 +886,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
884
886
|
], 64)) : v("", !0),
|
|
885
887
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (o(), s(h, { key: 15 }, [
|
|
886
888
|
a.$slots["time-label"] ? (o(), s("g", Ua, [
|
|
887
|
-
(o(!0), s(h, null, y(
|
|
889
|
+
(o(!0), s(h, null, y(F.value, (t, r) => (o(), s("g", null, [
|
|
888
890
|
x(a.$slots, "time-label", I(O({
|
|
889
891
|
x: i.value.left - 8,
|
|
890
892
|
y: i.value.top + d.value * r + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
@@ -898,7 +900,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
898
900
|
})), void 0, !0)
|
|
899
901
|
]))), 256))
|
|
900
902
|
])) : (o(), s("g", Ya, [
|
|
901
|
-
(o(!0), s(h, null, y(
|
|
903
|
+
(o(!0), s(h, null, y(F.value, (t, r) => (o(), s("text", {
|
|
902
904
|
"text-anchor": "end",
|
|
903
905
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
904
906
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
@@ -989,7 +991,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
989
991
|
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...be.dataset.map((t) => t.series.length)),
|
|
990
992
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
991
993
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
992
|
-
onReset:
|
|
994
|
+
onReset: Fe
|
|
993
995
|
}, {
|
|
994
996
|
"reset-action": z(({ reset: t }) => [
|
|
995
997
|
x(a.$slots, "reset-action", I(O({ reset: t })), void 0, !0)
|
|
@@ -1108,7 +1110,7 @@ const na = ["id"], ua = ["xmlns", "viewBox"], ca = ["x", "y", "width", "height"]
|
|
|
1108
1110
|
}, 8, ["config"])) : v("", !0)
|
|
1109
1111
|
], 46, na));
|
|
1110
1112
|
}
|
|
1111
|
-
}, bl = /* @__PURE__ */ ia(Qa, [["__scopeId", "data-v-
|
|
1113
|
+
}, bl = /* @__PURE__ */ ia(Qa, [["__scopeId", "data-v-8a416fa2"]]);
|
|
1112
1114
|
export {
|
|
1113
1115
|
bl as default
|
|
1114
1116
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DqxDpUy0.cjs"),ae=require("./useResponsive-BJ7DTGpm.cjs"),ye=require("./Title-D3kX1BVl.cjs"),re=require("./usePrinter-BC7U4s0U.cjs"),be=require("./Tooltip-CARCyQNT.cjs"),ge=require("./DataTable-DuosyZ6d.cjs"),ke=require("./vue-ui-skeleton-qIxxRRaX.cjs"),xe=require("./Shape-CmsIulaS.cjs"),Ce=require("./vue-ui-accordion-XAEm2rxj.cjs"),se=require("./useNestedProp-DNWKDmdP.cjs"),we=require("./PackageVersion-B5rBHZEb.cjs"),Be=require("./PenAndPaper-5OV7IAca.cjs"),Se=require("./useUserOptionState-BgepsfED.cjs"),Ne=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$e=["id"],_e=["xmlns","viewBox"],Te=["x","y","width","height"],Le={key:1},Pe={key:0},Ee=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ae={key:1},ze=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Oe=["x1","x2","y1","y2","stroke","stroke-width"],Fe=["x","y","fill","font-size"],De=["x","y","font-size","fill"],Me=["fill","font-size","transform"],We=["fill","font-size","x","y"],Ie=["x1","x2","y1","y2","stroke"],qe=["cx","cy","fill"],Ge=["cx","cy","fill"],Ue=["id"],Re=["stop-color"],He=["stop-color"],je=["stop-color"],Xe={key:0},Ye=["x","y","font-size","fill"],Je={key:5,class:"vue-data-ui-watermark"},Ke=["innerHTML"],Qe={__name:"vue-ui-strip-plot",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(ne,{expose:ue,emit:ie}){const v=ne,{vue_ui_strip_plot:ce}=r.useConfig(),p=e.computed({get(){return!!v.dataset&&v.dataset.length},set(l){return l}}),L=e.ref(r.createUid()),F=e.ref(0),P=e.ref(!1),E=e.ref(""),y=e.ref(null),D=e.ref(null),M=e.ref(null),W=e.ref(null),I=e.ref(!1),q=e.ref(0),G=e.ref(0),t=e.computed({get:()=>H(),set:l=>l}),{userOptionsVisible:A,setUserOptionsVisibility:U,keepUserOptionState:R}=Se.useUserOptionState({config:t.value});function H(){const l=se.useNestedProp({userConfig:v.config,defaultConfig:ce});return l.theme?{...se.useNestedProp({userConfig:r.themes.vue_ui_strip_plot[l.theme]||v.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}e.watch(()=>v.config,l=>{t.value=H(),A.value=!t.value.showOnChartHover,j(),q.value+=1,G.value+=1},{deep:!0});const C=e.ref(null);e.onMounted(()=>{j()});function j(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiStripPlot",type:"dataset"}):v.dataset.forEach((l,s)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","plots"]}).forEach(o=>{p.value=!1,r.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:o,index:s})}),l.plots&&l.plots.forEach((o,n)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","value"]}).forEach(u=>{p.value=!1,r.error({componentName:"VueUiStripPlot",type:"datasetSerieAttribute",property:u,index:`${s},${n}`})})})}),t.value.responsive){const l=ae.throttle(()=>{const{width:s,height:o}=ae.useResponsive({chart:y.value,title:t.value.style.chart.title.text?D.value:null,source:M.value,noTitle:W.value});requestAnimationFrame(()=>{w.value=o,b.value.width=s,b.value.height=o,x.value=(s-d.value.left-d.value.right)/v.dataset.length,B.value=r.translateSize({relator:Math.min(o,s),adjuster:600,source:t.value.style.chart.plots.radius,threshold:6,fallback:6})})});C.value=new ResizeObserver(l),C.value.observe(y.value.parentNode)}I.value=!0,setTimeout(()=>{k.value=!1},de.value*50)}e.onBeforeUnmount(()=>{C.value&&C.value.disconnect()});const{isPrinting:X,isImaging:Y,generatePdf:J,generateImage:K}=re.usePrinter({elementId:`strip-plot_${L.value}`,fileName:t.value.style.chart.title.text||"vue-ui-strip-plot"}),ve=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Q=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),k=e.ref(t.value.useCssAnimation),c=e.ref({showTable:t.value.table.show,dataLabels:{show:t.value.style.chart.labels.bestPlotLabel.show},showTooltip:t.value.style.chart.tooltip.show}),d=e.ref({top:t.value.style.chart.padding.top,bottom:t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:t.value.style.chart.padding.right}),x=e.ref(t.value.style.chart.stripWidth),w=e.ref(t.value.style.chart.height),B=e.ref(t.value.style.chart.plots.radius),b=e.ref({width:x.value*v.dataset.length+d.value.left+d.value.right,height:t.value.style.chart.height}),a=e.computed(()=>{const l=x.value*v.dataset.length+d.value.left+d.value.right;return{left:d.value.left,right:l-d.value.right,top:d.value.top,bottom:w.value-d.value.bottom,width:x.value*v.dataset.length,height:w.value-d.value.top-d.value.bottom,stripWidth:x.value,absoluteHeight:w.value,absoluteWidth:l}}),S=e.computed(()=>p.value?v.dataset.map((l,s)=>{const o=r.createUid();return{...l,id:o,color:l.color?r.convertColorToHex(l.color):Q.value[s]||r.palette[s]||r.palette[s%r.palette.length],plots:l.plots.map(n=>({...n,value:r.checkNaN(n.value),parentId:o,color:l.color?r.convertColorToHex(l.color):Q.value[s]||r.palette[s]||r.palette[s%r.palette.length],id:r.createUid()})).sort((n,u)=>n.value-u.value)}}):null),h=e.computed(()=>(S.value||[]).map((l,s)=>({...l,plots:l.plots.map(o=>({...o,x:a.value.left+(s+1)*a.value.stripWidth-a.value.stripWidth/2}))}))),de=e.computed(()=>Math.max(...h.value.map(l=>l.plots.length))),z=e.computed(()=>{const l=h.value.flatMap(s=>s.plots.map(o=>o.value));return{max:Math.max(...l),min:Math.min(...l)}}),m=e.computed(()=>r.calculateNiceScale(z.value.min<0?z.value.min:0,z.value.max,t.value.style.chart.grid.scaleSteps)),he=e.computed(()=>(h.value||[]).map((l,s)=>({...l,plots:l.plots.map(o=>({...o,y:a.value.bottom-(o.value+Math.abs(m.value.min))/(m.value.max+Math.abs(m.value.min))*a.value.height}))}))),Z=e.computed(()=>m.value.ticks.map(l=>({y:a.value.bottom-a.value.height*((l+Math.abs(m.value.min))/(m.value.max+Math.abs(m.value.min))),x1:a.value.left,x2:a.value.right,value:l}))),V=e.ref(null),i=e.ref(null);function pe({datapoint:l,seriesIndex:s}){V.value={datapoint:l,seriesIndex:s,config:t.value,series:S.value},P.value=!0,i.value=l;const o=t.value.style.chart.tooltip.customFormat;if(r.isFunction(o)&&r.functionReturnsString(()=>o({seriesIndex:s,datapoint:l,series:S.value,config:t.value})))E.value=o({seriesIndex:s,datapoint:l,series:S.value,config:t.value});else{let n="";n+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.value.style.chart.plots.gradient.show?`url(#${l.parentId})`:l.color}"/></svg>${l.name}</div>`,n+=`<div>${r.applyDataLabel(t.value.style.chart.labels.formatter,l.value,r.dataLabel({p:t.value.style.chart.labels.prefix,v:l.value,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:l,seriesIndex:s})}</div>`,E.value=`<div>${n}</div>`}}const N=e.computed(()=>{const l=h.value.flatMap(o=>JSON.parse(JSON.stringify(o.plots)).sort((n,u)=>u.value-n.value).map(n=>({name:`${o.name} - ${n.name}`,color:n.color}))),s=h.value.flatMap(o=>JSON.parse(JSON.stringify(o.plots)).sort((n,u)=>u.value-n.value).map(n=>n.value));return{head:l,body:s}});function ee(){e.nextTick(()=>{const l=N.value.head.map((n,u)=>[[n.name],[N.value.body[u]]]),s=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.value]]].concat(l),o=r.createCsvContent(s);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-strip-plot"})})}const $=e.computed(()=>{const l=[t.value.table.columnNames.series,t.value.table.columnNames.value],s=N.value.head.map((u,f)=>{const T=r.dataLabel({p:t.value.style.chart.labels.prefix,v:N.value.body[f],s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue});return[{color:u.color,name:u.name},T]}),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:l,body:s,config:o}}),g=e.ref(!1);function me(l){g.value=l,F.value+=1}function fe(){return h.value}function te(){c.value.showTable=!c.value.showTable}function le(){c.value.dataLabels.show=!c.value.dataLabels.show}function oe(){c.value.showTooltip=!c.value.showTooltip}const _=e.ref(!1);function O(){_.value=!_.value}return ue({getData:fe,generatePdf:J,generateCsv:ee,generateImage:K,toggleTable:te,toggleLabels:le,toggleTooltip:oe,toggleAnnotator:O}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"stripPlotChart",ref:y,class:e.normalizeClass(`vue-ui-strip-plot ${g.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`strip-plot_${L.value}`,onMouseenter:s[2]||(s[2]=()=>e.unref(U)(!0)),onMouseleave:s[3]||(s[3]=()=>e.unref(U)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Be.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:_.value,onClose:O},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ve.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:W,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:D,style:"width:100%;background:transparent;padding-bottom:24px"},[(e.openBlock(),e.createBlock(ye._sfc_main,{key:`title_${q.value}`,config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&p.value&&(e.unref(R)||e.unref(A))?(e.openBlock(),e.createBlock(re.UserOptions,{ref:"details",key:`user_option_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(X),isImaging:e.unref(Y),uid:L.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasLabel:t.value.userOptions.buttons.labels,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:c.value.showTooltip,isFullscreen:g.value,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:_.value,onToggleFullscreen:me,onGeneratePdf:e.unref(J),onGenerateCsv:ee,onGenerateImage:e.unref(K),onToggleTable:te,onToggleLabels:le,onToggleTooltip:oe,onToggleAnnotator:O,style:e.normalizeStyle({visibility:e.unref(R)?e.unref(A)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionLabels?{name:"optionLabels",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionLabels",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:o,isAnnotator:n})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:o,isAnnotator:n})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasLabel","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${b.value.width<=0?10:b.value.width} ${b.value.height<=0?10:b.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:transparent;color:${t.value.style.chart.color};`)},[e.createVNode(we._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:a.value.left,y:a.value.top,width:a.value.width,height:a.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Te)):e.createCommentVNode("",!0),t.value.style.chart.grid.show?(e.openBlock(),e.createElementBlock("g",Le,[t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.value,o=>(e.openBlock(),e.createElementBlock("line",{x1:o.x1,x2:o.x2,y1:o.y,y2:o.y,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray,"stroke-linecap":"round"},null,8,Ee))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(o,n)=>(e.openBlock(),e.createElementBlock("line",{x1:a.value.left+(n+1)*a.value.stripWidth,x2:a.value.left+(n+1)*a.value.stripWidth,y1:a.value.top,y2:a.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray,"stroke-linecap":"round"},null,8,ze))),256))])):e.createCommentVNode("",!0),e.createElementVNode("line",{x1:a.value.left,x2:a.value.left,y1:a.value.top,y2:a.value.bottom,stroke:t.value.style.chart.grid.stroke,"stroke-width":t.value.style.chart.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ve),e.createElementVNode("line",{x1:a.value.left,x2:a.value.right,y1:a.value.bottom,y2:a.value.bottom,stroke:t.value.style.chart.grid.stroke,"stroke-width":t.value.style.chart.grid.strokeWidth,"stroke-linecap":"round"},null,8,Oe)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(Z.value,(o,n)=>(e.openBlock(),e.createElementBlock("text",{x:o.x1-t.value.style.chart.labels.yAxisLabels.fontSize/2+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.y+t.value.style.chart.labels.yAxisLabels.fontSize/3,fill:t.value.style.chart.labels.yAxisLabels.color,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,"text-anchor":"end"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.labels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.labels.prefix,v:o.value,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.yAxisLabels.rounding}),{datapoint:o,seriesIndex:n})),9,Fe))),256)):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:3},e.renderList(h.value,(o,n)=>(e.openBlock(),e.createElementBlock("text",{x:a.value.left+(n+1)*a.value.stripWidth-a.value.stripWidth/2,y:a.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize*2+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"text-anchor":"middle"},e.toDisplayString(o.name),9,De))),256)):e.createCommentVNode("",!0),t.value.style.chart.labels.axis.yLabel?(e.openBlock(),e.createElementBlock("text",{key:4,fill:t.value.style.chart.labels.axis.color,"font-size":t.value.style.chart.labels.axis.fontSize,transform:`translate(${t.value.style.chart.labels.axis.fontSize+t.value.style.chart.labels.axis.yLabelOffsetX}, ${a.value.top+a.value.height/2}) rotate(-90)`,"text-anchor":"middle"},e.toDisplayString(t.value.style.chart.labels.axis.yLabel),9,Me)):e.createCommentVNode("",!0),t.value.style.chart.labels.axis.xLabel?(e.openBlock(),e.createElementBlock("text",{key:5,fill:t.value.style.chart.labels.axis.color,"font-size":t.value.style.chart.labels.axis.fontSize,x:a.value.left+a.value.width/2,y:a.value.absoluteHeight,"text-anchor":"middle"},e.toDisplayString(t.value.style.chart.labels.axis.xLabel),9,We)):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[e.createElementVNode("line",{x1:a.value.left,x2:a.value.right,y1:i.value.y,y2:i.value.y,stroke:i.value.color,"stroke-width":1,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,Ie),e.createElementVNode("circle",{cx:a.value.left,cy:i.value.y,r:3,fill:i.value.color,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,qe),e.createElementVNode("circle",{cx:a.value.right,cy:i.value.y,r:3,fill:i.value.color,class:e.normalizeClass({"select-circle":t.value.useCssAnimation})},null,10,Ge)],64)):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,o=>(e.openBlock(),e.createElementBlock("radialGradient",{id:o.id,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(r.lightenHexColor)(o.color,t.value.style.chart.plots.gradient.intensity/100)},null,8,Re),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(r.darkenHexColor)(o.color,.1)},null,8,He),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,je)],8,Ue))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(he.value,(o,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.plots,(u,f)=>(e.openBlock(),e.createBlock(xe._sfc_main,e.mergeProps({plot:{x:u.x,y:I.value?u.y:a.value.top},radius:i.value&&i.value.id===u.id?B.value*1.5:B.value,shape:t.value.style.chart.plots.shape,stroke:t.value.style.chart.plots.stroke,strokeWidth:t.value.style.chart.plots.strokeWidth,color:t.value.style.chart.plots.gradient.show?`url(#${o.id})`:o.color,onMouseenter:T=>pe({datapoint:u,seriesIndex:f}),onMouseleave:s[0]||(s[0]=T=>{P.value=!1,i.value=null}),onClick:T=>ie("selectDatapoint",u),style:`transition: all 0.2s ease-in-out; opacity:${i.value?i.value.id===u.id?1:.2:t.value.style.chart.plots.opacity};${k.value?`transition-delay:${f*50}ms`:""}`,class:{"vue-ui-strip-plot-animated":t.value.useCssAnimation&&k.value,"vue-ui-strip-plot-select-circle":t.value.useCssAnimation&&!k.value}},l.$attrs),null,16,["plot","radius","shape","stroke","strokeWidth","color","onMouseenter","onClick","style","class"]))),256)),c.value.dataLabels.show?(e.openBlock(),e.createElementBlock("g",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.plots,(u,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[f===o.plots.length-1||i.value&&i.value.id===u.id&&!c.value.showTooltip?(e.openBlock(),e.createElementBlock("text",{key:0,x:u.x,y:u.y+t.value.style.chart.labels.bestPlotLabel.offsetY-B.value*(i.value&&i.value.id===u.id&&!c.value.showTooltip?2:1.5),"font-size":t.value.style.chart.labels.bestPlotLabel.fontSize,fill:t.value.style.chart.labels.bestPlotLabel.color,"text-anchor":"middle",style:e.normalizeStyle(`opacity:${t.value.useCssAnimation&&k.value?0:1};transition:opacity 0.2s ease-in;`)},e.toDisplayString(u.name)+" "+e.toDisplayString(t.value.style.chart.labels.bestPlotLabel.showValue?e.unref(r.applyDataLabel)(t.value.style.chart.labels.formatter,u.value,e.unref(r.dataLabel)({p:`(${t.value.style.chart.labels.prefix}`,v:u.value,s:`${t.value.style.chart.labels.suffix})`,r:t.value.style.chart.labels.bestPlotLabel.rounding}),{datapoint:u,seriesIndex:f}):""),13,Ye)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0)],64))),256)),e.renderSlot(l.$slots,"svg",{svg:a.value},void 0,!0)],14,_e)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Je,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(X)||e.unref(Y)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ke.default,{key:6,config:{type:"stripPlot",style:{backgroundColor:t.value.style.chart.backgroundColor,stripPlot:{color:"#CCCCCC"}}}},null,8,["config"])),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:M,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(be._sfc_main,{show:c.value.showTooltip&&P.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:y.value,content:E.value,isFullscreen:g.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...V.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...V.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),p.value?(e.openBlock(),e.createBlock(Ce.default,{key:8,hideDetails:"",config:{open:c.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(ge.DataTable,{key:`table_${G.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:s[1]||(s[1]=o=>c.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Ke)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,$e))}},Ze=Ne._export_sfc(Qe,[["__scopeId","data-v-fa6178f3"]]);exports.default=Ze;
|