vue-data-ui 2.3.74 → 2.3.76
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-DK6F5Fq3.cjs → Arrow-D7M4-bW7.cjs} +1 -1
- package/dist/{Arrow-CYCrAySW.js → Arrow-DY9RKUmG.js} +1 -1
- package/dist/{BaseIcon-DBHVtm3A.cjs → BaseIcon-DB7Apwv_.cjs} +1 -1
- package/dist/{BaseIcon-kBIAYqUO.js → BaseIcon-rwm-10Hu.js} +1 -1
- package/dist/{DataTable-BNFSPjhv.cjs → DataTable-CsNozyz7.cjs} +1 -1
- package/dist/{DataTable-CKdV-L0e.js → DataTable-e2fnfjXV.js} +2 -2
- package/dist/{Legend-Cj7T-DqJ.js → Legend-5cQ0xZjK.js} +1 -1
- package/dist/{Legend-Do2kcWFT.cjs → Legend-DgFd-O0m.cjs} +1 -1
- package/dist/{Shape-Bo8ZjViG.js → Shape-CiTElr_0.js} +1 -1
- package/dist/{Shape-DRDUAe_o.cjs → Shape-yPECDLiP.cjs} +1 -1
- package/dist/{Slicer-D8jHSP7U.cjs → Slicer-DaZgCKV7.cjs} +1 -1
- package/dist/{Slicer-4nGKvUYF.js → Slicer-DwBBu3kB.js} +2 -2
- package/dist/{Title-D5cATWsL.cjs → Title-3EduyW4p.cjs} +1 -1
- package/dist/{Title-DZjnxQdN.js → Title-gUz6GDA3.js} +1 -1
- package/dist/{Tooltip-B8yLaegk.cjs → Tooltip-DScSrYXJ.cjs} +1 -1
- package/dist/{Tooltip--kgFEVZs.js → Tooltip-DfSM1mNP.js} +1 -1
- package/dist/{index-D_32ZGWd.cjs → index-BTgtr0F8.cjs} +1 -1
- package/dist/{index-C8SH0f2u.js → index-CaV1s-yZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BvvH633N.cjs → useNestedProp-CisbRRo_.cjs} +1 -1
- package/dist/{useNestedProp-lS_T5lM3.js → useNestedProp-tWCzZrLx.js} +1 -1
- package/dist/{usePrinter-BouFNHWR.cjs → usePrinter-DzTaA1eh.cjs} +1 -1
- package/dist/{usePrinter-Dj50NAxo.js → usePrinter-rvJyT65A.js} +1 -1
- package/dist/{vue-data-ui-v_BbbLtJ.cjs → vue-data-ui-BGkWRPUY.cjs} +1 -1
- package/dist/{vue-data-ui-DoXqU7xC.js → vue-data-ui-BO89gTtq.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CnoPOJHm.js → vue-ui-3d-bar-CcTMIHiB.js} +499 -486
- package/dist/vue-ui-3d-bar-DzmcGuqh.cjs +19 -0
- package/dist/{vue-ui-accordion-Cka6b_Up.cjs → vue-ui-accordion-7e4Myhcg.cjs} +1 -1
- package/dist/{vue-ui-accordion-YHleIgkV.js → vue-ui-accordion-CpzGQ63y.js} +3 -3
- package/dist/vue-ui-age-pyramid-C7qr9EwB.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CENg8fDg.js → vue-ui-age-pyramid-D71ZLkVV.js} +182 -169
- package/dist/{vue-ui-annotator-VJOLUkqJ.js → vue-ui-annotator-B8Iu6cYt.js} +1 -1
- package/dist/{vue-ui-annotator-ByYg6QMs.cjs → vue-ui-annotator-BKQrweqm.cjs} +1 -1
- package/dist/{vue-ui-candlestick-CHsGD3bx.js → vue-ui-candlestick-Bx4QVkY0.js} +295 -279
- package/dist/vue-ui-candlestick-DAc1FQ-i.cjs +2 -0
- package/dist/vue-ui-carousel-table-uFRqkghO.cjs +1 -0
- package/dist/{vue-ui-carousel-table-RAtX3VBu.js → vue-ui-carousel-table-xuQG6bcH.js} +146 -129
- package/dist/{vue-ui-chestnut-B5GQX0J_.js → vue-ui-chestnut-Bo6rDcU7.js} +215 -204
- package/dist/vue-ui-chestnut-DJkm72oD.cjs +6 -0
- package/dist/{vue-ui-cursor-DnZqLj21.cjs → vue-ui-cursor-BQbeuW-k.cjs} +1 -1
- package/dist/{vue-ui-cursor-CMm7XSSG.js → vue-ui-cursor-C0KOqEOq.js} +2 -2
- package/dist/{vue-ui-dashboard-DgEQJnLr.cjs → vue-ui-dashboard-0Hsjx-bO.cjs} +1 -1
- package/dist/{vue-ui-dashboard-Ck_5L3eu.js → vue-ui-dashboard-BT71xS7P.js} +2 -2
- package/dist/{vue-ui-digits--ULH35um.js → vue-ui-digits-BRqpKYvD.js} +2 -2
- package/dist/{vue-ui-digits-UvwUdi6U.cjs → vue-ui-digits-C2ReH6w0.cjs} +1 -1
- package/dist/{vue-ui-donut-QQ1fWWvc.js → vue-ui-donut-NQW-3prf.js} +376 -362
- package/dist/vue-ui-donut-evolution-DOe-cwLi.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Cx8kBB_7.js → vue-ui-donut-evolution-jbXQQGTc.js} +270 -255
- package/dist/vue-ui-donut-v81suIOX.cjs +1 -0
- package/dist/vue-ui-dumbbell-DXQSg6wa.cjs +9 -0
- package/dist/{vue-ui-dumbbell-BYvwHpU8.js → vue-ui-dumbbell-Dyz8xdtC.js} +232 -213
- package/dist/vue-ui-flow-BL3JWW1m.js +481 -0
- package/dist/vue-ui-flow-UqSNwH9d.cjs +1 -0
- package/dist/vue-ui-galaxy-DTQWGvRH.cjs +1 -0
- package/dist/{vue-ui-galaxy-B0L57aec.js → vue-ui-galaxy-Dx9nsOuM.js} +175 -162
- package/dist/vue-ui-gauge-BUB7H0qA.cjs +1 -0
- package/dist/vue-ui-gauge-CLaKGi0-.js +500 -0
- package/dist/vue-ui-gizmo-Kitfqu0J.cjs +1 -0
- package/dist/{vue-ui-gizmo-D2RfM55X.js → vue-ui-gizmo-of-4s5HG.js} +66 -53
- package/dist/{vue-ui-heatmap-DKM0DH41.js → vue-ui-heatmap-BIzjOMXO.js} +157 -143
- package/dist/vue-ui-heatmap-DUw2350O.cjs +1 -0
- package/dist/vue-ui-kpi-By3YPwgo.js +98 -0
- package/dist/vue-ui-kpi-DyL2Hcz-.cjs +1 -0
- package/dist/{vue-ui-mini-loader-CLP19Txv.cjs → vue-ui-mini-loader-C048-8Kd.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-MywnWlYI.js → vue-ui-mini-loader-DnK3V2z2.js} +2 -2
- package/dist/{vue-ui-molecule-CLI9iTRE.js → vue-ui-molecule-BfhbIqa5.js} +177 -167
- package/dist/vue-ui-molecule-D-ahly6R.cjs +1 -0
- package/dist/vue-ui-mood-radar-DD8R9BpJ.cjs +1 -0
- package/dist/{vue-ui-mood-radar-O30wZo9a.js → vue-ui-mood-radar-DXxEKr3x.js} +172 -161
- package/dist/{vue-ui-nested-donuts-D8o4TqTt.js → vue-ui-nested-donuts-BdUdHFd-.js} +377 -364
- package/dist/vue-ui-nested-donuts-C7qM_FRw.cjs +17 -0
- package/dist/{vue-ui-onion-Hmcke6xB.js → vue-ui-onion-D0vF5jBt.js} +191 -177
- package/dist/vue-ui-onion-DX3gofXZ.cjs +5 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CyChE3NP.js → vue-ui-parallel-coordinate-plot-CTZY-pY8.js} +298 -284
- package/dist/vue-ui-parallel-coordinate-plot-DEx5kFYd.cjs +8 -0
- package/dist/{vue-ui-quadrant-DimTQdAj.js → vue-ui-quadrant-ByY8GP3y.js} +347 -334
- package/dist/vue-ui-quadrant-CgApzie6.cjs +1 -0
- package/dist/{vue-ui-quick-chart-DxJvENid.js → vue-ui-quick-chart-DTxJ__7j.js} +483 -469
- package/dist/vue-ui-quick-chart-DWZEgUJF.cjs +15 -0
- package/dist/{vue-ui-radar-D_FieunT.js → vue-ui-radar-5UBmAU6W.js} +202 -189
- package/dist/vue-ui-radar-DEED0rTz.cjs +1 -0
- package/dist/{vue-ui-rating-BHW2Onru.cjs → vue-ui-rating-Ce_Ewqtl.cjs} +1 -1
- package/dist/{vue-ui-rating-DF1BpH4E.js → vue-ui-rating-Dr6jquxh.js} +2 -2
- package/dist/vue-ui-relation-circle-BU8i2miI.js +322 -0
- package/dist/vue-ui-relation-circle-CRcQ6Zcy.cjs +1 -0
- package/dist/{vue-ui-rings-BqS-iece.js → vue-ui-rings-Ctl3Jywh.js} +203 -189
- package/dist/vue-ui-rings-OQ8a1Ruw.cjs +2 -0
- package/dist/vue-ui-scatter-B8StSjt8.cjs +1 -0
- package/dist/{vue-ui-scatter-Dns49Nht.js → vue-ui-scatter-BwJ_koWT.js} +284 -270
- package/dist/{vue-ui-screenshot-5Gsnd0Wr.js → vue-ui-screenshot-BS3L5vhN.js} +1 -1
- package/dist/{vue-ui-screenshot---q062Kd.cjs → vue-ui-screenshot-bAVk3EPl.cjs} +1 -1
- package/dist/{vue-ui-skeleton-fVPw-oIR.cjs → vue-ui-skeleton-CMQzFTs9.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B4eWLjH3.js → vue-ui-skeleton-CvFX_ExX.js} +2 -2
- package/dist/{vue-ui-smiley-B8Tyunn3.js → vue-ui-smiley-CGYZpNt9.js} +2 -2
- package/dist/{vue-ui-smiley-YfHmv0rQ.cjs → vue-ui-smiley-sF8QIso1.cjs} +1 -1
- package/dist/vue-ui-spark-trend-B4XSSKl9.js +263 -0
- package/dist/vue-ui-spark-trend-CdIoxaqb.cjs +1 -0
- package/dist/{vue-ui-sparkbar-9DBvdYn7.js → vue-ui-sparkbar-BbsJGDMZ.js} +95 -87
- package/dist/vue-ui-sparkbar-C3i1K7hi.cjs +1 -0
- package/dist/vue-ui-sparkgauge-BKyQoI7C.cjs +1 -0
- package/dist/vue-ui-sparkgauge-D4w_i_QJ.js +178 -0
- package/dist/{vue-ui-sparkhistogram-BBUVmco4.js → vue-ui-sparkhistogram-CYybrW-6.js} +79 -68
- package/dist/vue-ui-sparkhistogram-CvTYEmbz.cjs +1 -0
- package/dist/vue-ui-sparkline-CDowaDRS.cjs +1 -0
- package/dist/{vue-ui-sparkline-CeqNV6Re.js → vue-ui-sparkline-DjN1SVdO.js} +142 -123
- package/dist/{vue-ui-sparkstackbar-C3GMC1eW.js → vue-ui-sparkstackbar-BLMhJxaN.js} +120 -104
- package/dist/vue-ui-sparkstackbar-BZ2bESBi.cjs +1 -0
- package/dist/{vue-ui-stackbar-DyGPrFxi.js → vue-ui-stackbar-BTKOHUYc.js} +235 -222
- package/dist/vue-ui-stackbar-DRHaJFR8.cjs +6 -0
- package/dist/vue-ui-strip-plot-DxQxFbWg.cjs +1 -0
- package/dist/{vue-ui-strip-plot-y1AnVJmq.js → vue-ui-strip-plot-o6GTsGAT.js} +246 -232
- package/dist/{vue-ui-table-xWvAQS-s.cjs → vue-ui-table-BFIj1Rgh.cjs} +1 -1
- package/dist/{vue-ui-table-B4kfykAO.js → vue-ui-table-CnquiTpr.js} +1 -1
- package/dist/vue-ui-table-heatmap-CCGK12Fa.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-YZRSzwRM.js → vue-ui-table-heatmap-CZRIwv-Q.js} +106 -95
- package/dist/{vue-ui-table-sparkline-C0v2r4Kf.js → vue-ui-table-sparkline-B3zEeq6Z.js} +151 -138
- package/dist/vue-ui-table-sparkline-DYmgfHz4.cjs +1 -0
- package/dist/{vue-ui-thermometer-D5qurIy7.js → vue-ui-thermometer-BopiohUh.js} +116 -104
- package/dist/vue-ui-thermometer-CzPRBt6c.cjs +1 -0
- package/dist/vue-ui-timer-Bonw69Lt.cjs +64 -0
- package/dist/{vue-ui-timer-VWjovnKL.js → vue-ui-timer-C7WkW8hK.js} +191 -176
- package/dist/{vue-ui-tiremarks-jH6cdQOJ.js → vue-ui-tiremarks-BurRtFv4.js} +115 -103
- package/dist/vue-ui-tiremarks-DkIGfq8t.cjs +1 -0
- package/dist/vue-ui-treemap-CalhJmnp.cjs +1 -0
- package/dist/{vue-ui-treemap-BCc5sQLB.js → vue-ui-treemap-DWy4voIr.js} +251 -237
- package/dist/{vue-ui-vertical-bar-2In_g5iC.js → vue-ui-vertical-bar-CJW1YhtY.js} +314 -299
- package/dist/vue-ui-vertical-bar-rwWp-sai.cjs +4 -0
- package/dist/{vue-ui-waffle-OzU830VX.js → vue-ui-waffle-DB7X6nTS.js} +285 -265
- package/dist/vue-ui-waffle-faQMBYNx.cjs +1 -0
- package/dist/vue-ui-wheel-BzjbGP6a.cjs +1 -0
- package/dist/vue-ui-wheel-CryKap2E.js +255 -0
- package/dist/vue-ui-word-cloud-COqUkvei.js +512 -0
- package/dist/vue-ui-word-cloud-DJN9I4q4.cjs +1 -0
- package/dist/vue-ui-xy-BmA0tspd.cjs +3 -0
- package/dist/{vue-ui-xy-DuJtYXKl.js → vue-ui-xy-b1Z_HPsx.js} +300 -274
- package/dist/{vue-ui-xy-canvas-CKibMJHh.js → vue-ui-xy-canvas-BgbLnY5B.js} +345 -327
- package/dist/vue-ui-xy-canvas-DOM2Kq_s.cjs +9 -0
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-CwCEoPX-.cjs +0 -19
- package/dist/vue-ui-age-pyramid-GqCNpd_h.cjs +0 -1
- package/dist/vue-ui-candlestick-TdNVq_FX.cjs +0 -2
- package/dist/vue-ui-carousel-table-yXUSFk2u.cjs +0 -1
- package/dist/vue-ui-chestnut-EJj-dQSY.cjs +0 -6
- package/dist/vue-ui-donut-BqUBysA_.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BXtEnop4.cjs +0 -1
- package/dist/vue-ui-dumbbell-CjIh7KTm.cjs +0 -9
- package/dist/vue-ui-flow-hp0Hpuhn.js +0 -469
- package/dist/vue-ui-flow-u29zqSQj.cjs +0 -1
- package/dist/vue-ui-galaxy-DE1HbBi-.cjs +0 -1
- package/dist/vue-ui-gauge-B_IZrsfj.cjs +0 -1
- package/dist/vue-ui-gauge-CPyyn7cL.js +0 -488
- package/dist/vue-ui-gizmo-DR4gacOL.cjs +0 -1
- package/dist/vue-ui-heatmap-DMB_eUpA.cjs +0 -1
- package/dist/vue-ui-kpi-BAxAY13T.js +0 -84
- package/dist/vue-ui-kpi-BD21xshi.cjs +0 -1
- package/dist/vue-ui-molecule-BNsWckH-.cjs +0 -1
- package/dist/vue-ui-mood-radar-BsWE1f8R.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CYyUtXs2.cjs +0 -17
- package/dist/vue-ui-onion-D7TXJu5w.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-BqZB7xKn.cjs +0 -8
- package/dist/vue-ui-quadrant-BPDTvxlT.cjs +0 -1
- package/dist/vue-ui-quick-chart-C_-ut0if.cjs +0 -15
- package/dist/vue-ui-radar-C5Kq19hg.cjs +0 -1
- package/dist/vue-ui-relation-circle-4kIYttRI.js +0 -310
- package/dist/vue-ui-relation-circle-DHMHHsqY.cjs +0 -1
- package/dist/vue-ui-rings-BqPS8NKl.cjs +0 -2
- package/dist/vue-ui-scatter-BLVcdf3d.cjs +0 -1
- package/dist/vue-ui-spark-trend-Dpv6am0Z.cjs +0 -1
- package/dist/vue-ui-spark-trend-Em9OqYyG.js +0 -251
- package/dist/vue-ui-sparkbar-BuSuwQYl.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BN5feBzp.js +0 -167
- package/dist/vue-ui-sparkgauge-DKtUZMv1.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-BmuusW02.cjs +0 -1
- package/dist/vue-ui-sparkline-Blzv-tIQ.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-D__WDEMv.cjs +0 -1
- package/dist/vue-ui-stackbar-DFqJ5K_q.cjs +0 -6
- package/dist/vue-ui-strip-plot-z9fjJ6Dj.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CGKecjtm.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CHFZG3Tg.cjs +0 -1
- package/dist/vue-ui-thermometer-DoOxxVW1.cjs +0 -1
- package/dist/vue-ui-timer-D63zHe-I.cjs +0 -64
- package/dist/vue-ui-tiremarks-Cp8YEmXh.cjs +0 -1
- package/dist/vue-ui-treemap-DJrdEFW5.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BfJJqN_z.cjs +0 -4
- package/dist/vue-ui-waffle-A2gmRbq0.cjs +0 -1
- package/dist/vue-ui-wheel-C9QXzWu1.js +0 -242
- package/dist/vue-ui-wheel-DGSh9VKq.cjs +0 -1
- package/dist/vue-ui-word-cloud-C2ZaVlfO.js +0 -498
- package/dist/vue-ui-word-cloud-DPFB1MYk.cjs +0 -1
- package/dist/vue-ui-xy-C-2-aijE.cjs +0 -3
- package/dist/vue-ui-xy-canvas-D7wf3xab.cjs +0 -9
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { computed as p, ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { S as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { L as
|
|
10
|
-
import
|
|
11
|
-
import { D as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { computed as p, ref as b, onMounted as He, watch as Be, openBlock as s, createElementBlock as u, normalizeClass as ve, normalizeStyle as K, renderSlot as _, createVNode as he, createCommentVNode as v, createBlock as Q, unref as k, createSlots as mt, withCtx as z, normalizeProps as B, guardReactiveProps as W, Fragment as h, renderList as f, createElementVNode as D, toDisplayString as S, createTextVNode as pt } from "vue";
|
|
2
|
+
import { u as xt, c as We, t as kt, a as wt, p as oe, K as Xe, b as Ct, o as _t, e as Ue, g as zt, d as Lt, a1 as se, Z as Ye, B as Ge, X as St, l as $t, E as Je, f as E, w as Ze, x as qe, i as Ke, y as Mt, q as Tt, r as Nt } from "./index-CaV1s-yZ.js";
|
|
3
|
+
import { u as Qe } from "./useNestedProp-tWCzZrLx.js";
|
|
4
|
+
import { t as Ot, u as Pt } from "./useResponsive-NZB-WLRF.js";
|
|
5
|
+
import { u as Rt, U as It } from "./usePrinter-rvJyT65A.js";
|
|
6
|
+
import { S as Vt } from "./Slicer-DwBBu3kB.js";
|
|
7
|
+
import { _ as Ft } from "./Tooltip-DfSM1mNP.js";
|
|
8
|
+
import { _ as At } from "./Title-gUz6GDA3.js";
|
|
9
|
+
import { L as Dt } from "./Legend-5cQ0xZjK.js";
|
|
10
|
+
import Et from "./vue-ui-accordion-CpzGQ63y.js";
|
|
11
|
+
import { D as Ht } from "./DataTable-e2fnfjXV.js";
|
|
12
|
+
import Bt from "./vue-ui-skeleton-CvFX_ExX.js";
|
|
13
|
+
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Xt = ["id"], Ut = ["xmlns", "viewBox"], Yt = { key: 0 }, Gt = ["id"], Jt = ["stop-color"], Zt = ["stop-color"], qt = ["stop-color"], Kt = ["x1", "x2", "y1", "y2", "stroke"], Qt = ["x1", "x2", "y1", "y2", "stroke"], jt = ["x1", "x2", "y1", "y2", "stroke"], ea = ["x1", "x2", "y1", "y2", "stroke"], ta = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], aa = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], la = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ra = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oa = ["x", "y", "font-size", "fill", "font-weight"], sa = ["transform", "font-size", "fill", "font-weight"], ia = ["x", "y", "font-size", "fill", "font-weight"], ua = { key: 0 }, na = ["x", "y", "font-size", "font-weight", "fill"], ca = ["x", "y", "font-size", "fill", "font-weight"], va = { key: 0 }, ha = ["x", "y", "font-size", "font-weight", "fill"], da = ["x1", "x2", "y1", "y2", "stroke"], ya = ["x", "y", "font-size", "font-weight", "fill"], ga = ["x1", "x2", "y1", "y2", "stroke"], ba = ["font-size", "font-weight", "fill", "text-anchor", "transform"], fa = ["text-anchor", "font-size", "font-weight", "fill", "transform"], ma = ["font-size", "font-weight", "fill", "x", "y"], pa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], xa = ["x", "y", "width", "height", "onClick", "onMouseenter", "fill"], ka = {
|
|
15
15
|
key: 3,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, wa = ["onClick"], Ca = ["innerHTML"], _a = {
|
|
18
18
|
__name: "vue-ui-stackbar",
|
|
19
19
|
props: {
|
|
20
20
|
config: {
|
|
@@ -31,58 +31,51 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectDatapoint", "selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
34
|
+
setup(de, { expose: je, emit: ye }) {
|
|
35
|
+
const x = de, { vue_ui_stackbar: et } = xt(), H = p({
|
|
36
36
|
get() {
|
|
37
|
-
return !!
|
|
37
|
+
return !!x.dataset && x.dataset.length;
|
|
38
38
|
},
|
|
39
39
|
set(a) {
|
|
40
40
|
return a;
|
|
41
41
|
}
|
|
42
|
-
}), X =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
componentName: "VueUiStackbar",
|
|
46
|
-
type: "dataset"
|
|
47
|
-
}) : k.dataset.forEach((a, r) => {
|
|
48
|
-
bt({
|
|
49
|
-
datasetObject: a,
|
|
50
|
-
requiredAttributes: ["name", "series"]
|
|
51
|
-
}).forEach((t) => {
|
|
52
|
-
H.value = !1, Ee({
|
|
53
|
-
componentName: "VueUiStackbar",
|
|
54
|
-
type: "datasetSerieAttribute",
|
|
55
|
-
property: t,
|
|
56
|
-
index: r
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
}), setTimeout(() => {
|
|
60
|
-
Y.value = !0;
|
|
61
|
-
}, 10);
|
|
42
|
+
}), X = b(null), ie = b(We()), j = b(!1), ge = b(null), ue = b(""), L = b([]), be = b(0), fe = b(null), me = b(null), pe = b(null), xe = b(0), ne = b(!1), U = b(null), Y = b(!1), tt = b(0), at = b(0), lt = b(0);
|
|
43
|
+
He(() => {
|
|
44
|
+
ce();
|
|
62
45
|
});
|
|
63
|
-
const e = p(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
46
|
+
const e = p({
|
|
47
|
+
get: () => ke(),
|
|
48
|
+
set: (a) => a
|
|
49
|
+
});
|
|
50
|
+
function ke() {
|
|
51
|
+
const a = Qe({
|
|
52
|
+
userConfig: x.config,
|
|
53
|
+
defaultConfig: et
|
|
67
54
|
});
|
|
68
55
|
let r = {};
|
|
69
56
|
return a.theme ? r = {
|
|
70
|
-
...
|
|
71
|
-
userConfig:
|
|
57
|
+
...Qe({
|
|
58
|
+
userConfig: kt.vue_ui_stackbar[a.theme] || x.config,
|
|
72
59
|
defaultConfig: a
|
|
73
60
|
}),
|
|
74
|
-
customPalette:
|
|
75
|
-
} : r = a,
|
|
76
|
-
}
|
|
61
|
+
customPalette: wt[a.theme] || oe
|
|
62
|
+
} : r = a, x.config && Xe(x.config, "style.chart.grid.scale.scaleMin") ? r.style.chart.grid.scale.scaleMin = x.config.style.chart.grid.scale.scaleMin : r.style.chart.grid.scale.scaleMin = null, x.config && Xe(x.config, "style.chart.grid.scale.scaleMax") ? r.style.chart.grid.scale.scaleMax = x.config.style.chart.grid.scale.scaleMax : r.style.chart.grid.scale.scaleMax = null, r;
|
|
63
|
+
}
|
|
64
|
+
Be(() => x.config, (a) => {
|
|
65
|
+
e.value = ke(), ce(), tt.value += 1, at.value += 1, lt.value += 1;
|
|
66
|
+
}, { deep: !0 }), Be(() => x.dataset, (a) => {
|
|
67
|
+
$e();
|
|
68
|
+
}, { deep: !0 });
|
|
69
|
+
const C = b({
|
|
77
70
|
dataLabels: {
|
|
78
71
|
show: e.value.style.chart.bars.dataLabels.show
|
|
79
72
|
},
|
|
80
73
|
showTable: e.value.table.show,
|
|
81
74
|
showTooltip: e.value.style.chart.tooltip.show
|
|
82
|
-
}), { isPrinting:
|
|
75
|
+
}), { isPrinting: we, isImaging: Ce, generatePdf: _e, generateImage: ze } = Rt({
|
|
83
76
|
elementId: `stackbar_${ie.value}`,
|
|
84
77
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar"
|
|
85
|
-
}), ee =
|
|
78
|
+
}), ee = b({
|
|
86
79
|
width: e.value.style.chart.width,
|
|
87
80
|
height: e.value.style.chart.height,
|
|
88
81
|
paddingRatio: {
|
|
@@ -91,24 +84,44 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
91
84
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
92
85
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
93
86
|
}
|
|
94
|
-
}),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
87
|
+
}), rt = p(() => Ct(e.value.customPalette)), Le = b(null), Se = b(null);
|
|
88
|
+
He(() => {
|
|
89
|
+
ce();
|
|
90
|
+
});
|
|
91
|
+
function ce() {
|
|
92
|
+
if (_t(x.dataset) ? Ue({
|
|
93
|
+
componentName: "VueUiStackbar",
|
|
94
|
+
type: "dataset"
|
|
95
|
+
}) : x.dataset.forEach((a, r) => {
|
|
96
|
+
zt({
|
|
97
|
+
datasetObject: a,
|
|
98
|
+
requiredAttributes: ["name", "series"]
|
|
99
|
+
}).forEach((t) => {
|
|
100
|
+
H.value = !1, Ue({
|
|
101
|
+
componentName: "VueUiStackbar",
|
|
102
|
+
type: "datasetSerieAttribute",
|
|
103
|
+
property: t,
|
|
104
|
+
index: r
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}), setTimeout(() => {
|
|
108
|
+
Y.value = !0;
|
|
109
|
+
}, 10), e.value.responsive) {
|
|
110
|
+
const a = Ot(() => {
|
|
98
111
|
Y.value = !1;
|
|
99
|
-
const { width: r, height: t } =
|
|
112
|
+
const { width: r, height: t } = Pt({
|
|
100
113
|
chart: X.value,
|
|
101
|
-
title: e.value.style.chart.title.text ?
|
|
102
|
-
legend: e.value.style.chart.legend.show ?
|
|
103
|
-
slicer: e.value.style.chart.zoom.show && R.value > 1 ?
|
|
114
|
+
title: e.value.style.chart.title.text ? fe.value : null,
|
|
115
|
+
legend: e.value.style.chart.legend.show ? me.value : null,
|
|
116
|
+
slicer: e.value.style.chart.zoom.show && R.value > 1 ? pe.value : null
|
|
104
117
|
});
|
|
105
|
-
ee.value.width = r, ee.value.height = t, clearTimeout(
|
|
118
|
+
ee.value.width = r, ee.value.height = t, clearTimeout(Se.value), Se.value = setTimeout(() => {
|
|
106
119
|
Y.value = !0;
|
|
107
120
|
}, 10);
|
|
108
121
|
});
|
|
109
|
-
|
|
122
|
+
Le.value = new ResizeObserver(a), Le.value.observe(X.value.parentNode);
|
|
110
123
|
}
|
|
111
|
-
}
|
|
124
|
+
}
|
|
112
125
|
const o = p(() => {
|
|
113
126
|
const { height: a, width: r } = ee.value, { right: t } = ee.value.paddingRatio, l = e.value.style.chart.padding.top, i = r - r * t, n = a - e.value.style.chart.padding.bottom, w = e.value.style.chart.padding.left, I = r - w - r * t, V = a - l - e.value.style.chart.padding.bottom;
|
|
114
127
|
return {
|
|
@@ -121,8 +134,8 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
121
134
|
width: I,
|
|
122
135
|
height: V < 0 ? 0 : V
|
|
123
136
|
};
|
|
124
|
-
}), P = p(() =>
|
|
125
|
-
const t =
|
|
137
|
+
}), P = p(() => x.dataset.map((a, r) => {
|
|
138
|
+
const t = Lt(a.color) || rt.value[r] || oe[r] || oe[r % oe.length];
|
|
126
139
|
return {
|
|
127
140
|
...a,
|
|
128
141
|
// In distributed mode, all values are converted to positive
|
|
@@ -130,23 +143,23 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
130
143
|
// Store signs to manage display of neg values in distributed mode
|
|
131
144
|
signedSeries: a.series.map((l) => l >= 0 ? 1 : -1),
|
|
132
145
|
absoluteIndex: r,
|
|
133
|
-
id:
|
|
146
|
+
id: We(),
|
|
134
147
|
color: t
|
|
135
148
|
};
|
|
136
|
-
})), R = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c =
|
|
149
|
+
})), R = p(() => Math.max(...P.value.filter((a) => !L.value.includes(a.id)).map((a) => a.series.length))), c = b({
|
|
137
150
|
start: 0,
|
|
138
|
-
end: Math.max(...
|
|
151
|
+
end: Math.max(...x.dataset.map((a) => a.series.length))
|
|
139
152
|
});
|
|
140
|
-
function
|
|
153
|
+
function $e() {
|
|
141
154
|
c.value = {
|
|
142
155
|
start: 0,
|
|
143
|
-
end: Math.max(...
|
|
144
|
-
},
|
|
156
|
+
end: Math.max(...x.dataset.map((a) => a.series.length))
|
|
157
|
+
}, xe.value += 1;
|
|
145
158
|
}
|
|
146
159
|
const d = p(() => {
|
|
147
160
|
let a;
|
|
148
161
|
return e.value.orientation === "vertical" ? a = o.value.width / (c.value.end - c.value.start) : a = o.value.height / (c.value.end - c.value.start), a <= 0 ? 0 : a;
|
|
149
|
-
}), G = p(() => se(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)),
|
|
162
|
+
}), G = p(() => se(P.value.filter((a) => !L.value.includes(a.id))).slice(c.value.start, c.value.end)), ot = p(() => se(P.value.filter((a) => !L.value.includes(a.id)).map((a) => ({
|
|
150
163
|
...a,
|
|
151
164
|
series: a.series.map((r, t) => a.signedSeries[t] === -1 && r >= 0 ? -r : r)
|
|
152
165
|
}))).slice(c.value.start, c.value.end)), te = p(() => {
|
|
@@ -162,7 +175,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
162
175
|
})))
|
|
163
176
|
};
|
|
164
177
|
}), N = p(() => {
|
|
165
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...te.value.positive), r = Math.min(...te.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
178
|
+
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...te.value.positive), r = Math.min(...te.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(r) ? 0 : r, l = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ye(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Ge(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
166
179
|
return l.ticks.map((i) => ({
|
|
167
180
|
zero: o.value.bottom - o.value.height * (Math.abs(l.min) / (l.max + Math.abs(l.min))),
|
|
168
181
|
y: o.value.bottom - o.value.height * ((i + Math.abs(l.min)) / (l.max + Math.abs(l.min))),
|
|
@@ -175,43 +188,43 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
175
188
|
}), J = p(() => e.value.style.chart.grid.x.timeLabels.values.slice(c.value.start, c.value.end)), m = p(() => {
|
|
176
189
|
if (!H.value) return [];
|
|
177
190
|
let a = Array(R.value).fill(0), r = Array(R.value).fill(0), t = Array(R.value).fill(0), l = Array(R.value).fill(0);
|
|
178
|
-
const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, I = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
191
|
+
const i = Math.max(...te.value.positive) || 0, n = Math.min(...te.value.negative), w = [-1 / 0, 1 / 0, NaN, void 0, null].includes(n) ? 0 : n, I = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ye(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks) : Ge(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : w > 0 ? 0 : w, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : i < 0 ? 0 : i, e.value.style.chart.grid.scale.ticks), { min: V, max: Z } = I, F = Z + (V >= 0 ? 0 : Math.abs(V)) || 1, $ = o.value.height, re = o.value.width, De = N.value[0] ? N.value[0].zero : o.value.bottom, Ee = N.value[0] ? N.value[0].horizontal_zero : o.value.left;
|
|
179
192
|
return P.value.filter((q) => !L.value.includes(q.id)).map((q) => {
|
|
180
|
-
const O = q.series.slice(c.value.start, c.value.end),
|
|
193
|
+
const O = q.series.slice(c.value.start, c.value.end), ct = q.signedSeries.slice(c.value.start, c.value.end), vt = O.map((y, g) => o.value.left + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), ht = O.map((y, g) => o.value.top + d.value * g + d.value * e.value.style.chart.bars.gapRatio / 4), dt = O.map((y, g) => {
|
|
181
194
|
const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
182
195
|
let A, T;
|
|
183
|
-
return y > 0 ? (T = $ * M, A =
|
|
184
|
-
}),
|
|
196
|
+
return y > 0 ? (T = $ * M, A = De - T - a[g], a[g] += T) : (T = $ * M, A = De + t[g], t[g] += Math.abs(T)), A;
|
|
197
|
+
}), yt = O.map((y, g) => {
|
|
185
198
|
const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
186
199
|
let A, T;
|
|
187
|
-
return y > 0 ? (T = re * M, A =
|
|
188
|
-
}),
|
|
200
|
+
return y > 0 ? (T = re * M, A = Ee + r[g], r[g] += T) : (T = re * M, A = Ee - Math.abs(T) - l[g], l[g] += Math.abs(T)), A;
|
|
201
|
+
}), gt = O.map((y, g) => {
|
|
189
202
|
const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
190
203
|
return y > 0 ? $ * M : $ * Math.abs(M);
|
|
191
|
-
}),
|
|
204
|
+
}), bt = O.map((y, g) => {
|
|
192
205
|
const M = e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / F;
|
|
193
206
|
return y > 0 ? re * M : re * Math.abs(M);
|
|
194
|
-
}),
|
|
207
|
+
}), ft = O.map((y) => Math.abs(y)).reduce((y, g) => y + g, 0);
|
|
195
208
|
return {
|
|
196
209
|
...q,
|
|
197
|
-
proportions: O.map((y, g) => e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) /
|
|
210
|
+
proportions: O.map((y, g) => e.value.style.chart.bars.distributed ? (y || 0) / G.value[g] : (y || 0) / ft),
|
|
198
211
|
series: O,
|
|
199
|
-
signedSeries:
|
|
200
|
-
x:
|
|
201
|
-
y:
|
|
202
|
-
height:
|
|
203
|
-
horizontal_width:
|
|
204
|
-
horizontal_y:
|
|
205
|
-
horizontal_x:
|
|
212
|
+
signedSeries: ct,
|
|
213
|
+
x: vt,
|
|
214
|
+
y: dt,
|
|
215
|
+
height: gt,
|
|
216
|
+
horizontal_width: bt,
|
|
217
|
+
horizontal_y: ht,
|
|
218
|
+
horizontal_x: yt
|
|
206
219
|
};
|
|
207
220
|
});
|
|
208
|
-
}),
|
|
221
|
+
}), Me = p(() => ot.value.map((a, r) => ({
|
|
209
222
|
value: a,
|
|
210
223
|
sign: a >= 0 ? 1 : -1
|
|
211
224
|
})));
|
|
212
225
|
function ae(a, r, t, l, i) {
|
|
213
226
|
const n = i === -1 && a >= 0 ? -a : a;
|
|
214
|
-
return
|
|
227
|
+
return Ke(
|
|
215
228
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
216
229
|
n,
|
|
217
230
|
E({
|
|
@@ -223,8 +236,8 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
223
236
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
224
237
|
);
|
|
225
238
|
}
|
|
226
|
-
function
|
|
227
|
-
return
|
|
239
|
+
function Te(a, r, t, l) {
|
|
240
|
+
return Ke(
|
|
228
241
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
229
242
|
a,
|
|
230
243
|
E({
|
|
@@ -235,7 +248,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
235
248
|
{ datapoint: r, seriesIndex: t, datapointIndex: l }
|
|
236
249
|
);
|
|
237
250
|
}
|
|
238
|
-
function
|
|
251
|
+
function Ne(a) {
|
|
239
252
|
const r = JSON.parse(JSON.stringify(m.value)).map((t) => ({
|
|
240
253
|
name: t.name,
|
|
241
254
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -243,9 +256,9 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
243
256
|
color: t.color,
|
|
244
257
|
id: t.id
|
|
245
258
|
}));
|
|
246
|
-
|
|
259
|
+
ye("selectDatapoint", { datapoint: r, period: J.value[a] });
|
|
247
260
|
}
|
|
248
|
-
function
|
|
261
|
+
function Oe(a) {
|
|
249
262
|
U.value = a, j.value = !0;
|
|
250
263
|
const r = e.value.style.chart.tooltip.customFormat, t = JSON.parse(JSON.stringify(m.value)).map((i) => ({
|
|
251
264
|
name: i.name,
|
|
@@ -254,7 +267,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
254
267
|
color: i.color,
|
|
255
268
|
id: i.id
|
|
256
269
|
})), l = t.map((i) => Math.abs(i.value)).reduce((i, n) => i + n, 0);
|
|
257
|
-
if (
|
|
270
|
+
if (qe(r) && Mt(() => r({
|
|
258
271
|
seriesIndex: a,
|
|
259
272
|
datapoint: t,
|
|
260
273
|
series: m.value,
|
|
@@ -300,22 +313,22 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
300
313
|
}), ue.value = `<div>${Z}</div>`;
|
|
301
314
|
}
|
|
302
315
|
}
|
|
303
|
-
function
|
|
304
|
-
ne.value = a,
|
|
316
|
+
function st(a) {
|
|
317
|
+
ne.value = a, be.value += 1;
|
|
305
318
|
}
|
|
306
|
-
function
|
|
319
|
+
function Pe() {
|
|
307
320
|
C.value.showTable = !C.value.showTable;
|
|
308
321
|
}
|
|
309
|
-
function
|
|
322
|
+
function Re() {
|
|
310
323
|
C.value.dataLabels.show = !C.value.dataLabels.show;
|
|
311
324
|
}
|
|
312
|
-
function
|
|
325
|
+
function Ie() {
|
|
313
326
|
C.value.showTooltip = !C.value.showTooltip;
|
|
314
327
|
}
|
|
315
|
-
function
|
|
328
|
+
function it() {
|
|
316
329
|
return m.value;
|
|
317
330
|
}
|
|
318
|
-
const
|
|
331
|
+
const Ve = p(() => {
|
|
319
332
|
if (m.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
320
333
|
const a = m.value.map(({ name: t, color: l }) => ({
|
|
321
334
|
label: t,
|
|
@@ -329,9 +342,9 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
329
342
|
}
|
|
330
343
|
return { head: a, body: r };
|
|
331
344
|
});
|
|
332
|
-
function
|
|
333
|
-
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...
|
|
334
|
-
|
|
345
|
+
function Fe() {
|
|
346
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], r = ["", ...Ve.value.head.map((n) => n.label)], t = Ve.value.body, l = a.concat([r]).concat(t), i = Tt(l);
|
|
347
|
+
Nt({ csvContent: i, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
335
348
|
}
|
|
336
349
|
const le = p(() => {
|
|
337
350
|
const a = [""].concat(m.value.map((i) => i.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>');
|
|
@@ -355,23 +368,23 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
355
368
|
}, l = [e.value.table.columnNames.period].concat(m.value.map((i) => i.name)).concat(e.value.table.columnNames.total);
|
|
356
369
|
return { head: a, body: r.slice(0, c.value.end - c.value.start), config: t, colNames: l };
|
|
357
370
|
});
|
|
358
|
-
function
|
|
359
|
-
if (
|
|
371
|
+
function ut(a, r) {
|
|
372
|
+
if (ye("selectLegend", m.value.find((t) => t.absoluteIndex === a)), L.value.includes(r.id))
|
|
360
373
|
L.value = L.value.filter((t) => t !== r.id);
|
|
361
374
|
else {
|
|
362
375
|
if (L.value.length === P.value.length - 1) return;
|
|
363
376
|
L.value.push(r.id);
|
|
364
377
|
}
|
|
365
378
|
}
|
|
366
|
-
const
|
|
379
|
+
const Ae = p(() => P.value.map((a, r) => ({
|
|
367
380
|
...a,
|
|
368
381
|
shape: "square"
|
|
369
382
|
})).map((a) => ({
|
|
370
383
|
...a,
|
|
371
384
|
opacity: L.value.includes(a.id) ? 0.5 : 1,
|
|
372
|
-
segregate: () =>
|
|
385
|
+
segregate: () => ut(a.absoluteIndex, a),
|
|
373
386
|
isSegregated: L.value.includes(a.id)
|
|
374
|
-
}))),
|
|
387
|
+
}))), nt = p(() => ({
|
|
375
388
|
cy: "stackbar-legend",
|
|
376
389
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
377
390
|
color: e.value.style.chart.legend.color,
|
|
@@ -379,29 +392,29 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
379
392
|
paddingBottom: 12,
|
|
380
393
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
381
394
|
}));
|
|
382
|
-
return
|
|
383
|
-
getData:
|
|
384
|
-
generatePdf:
|
|
385
|
-
generateCsv:
|
|
386
|
-
generateImage:
|
|
387
|
-
toggleTable:
|
|
388
|
-
toggleLabels:
|
|
389
|
-
toggleTooltip:
|
|
395
|
+
return je({
|
|
396
|
+
getData: it,
|
|
397
|
+
generatePdf: _e,
|
|
398
|
+
generateCsv: Fe,
|
|
399
|
+
generateImage: ze,
|
|
400
|
+
toggleTable: Pe,
|
|
401
|
+
toggleLabels: Re,
|
|
402
|
+
toggleTooltip: Ie
|
|
390
403
|
}), (a, r) => (s(), u("div", {
|
|
391
404
|
id: `stackbar_${ie.value}`,
|
|
392
405
|
ref_key: "stackbarChart",
|
|
393
406
|
ref: X,
|
|
394
|
-
class:
|
|
407
|
+
class: ve({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": ne.value }),
|
|
395
408
|
style: K(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`)
|
|
396
409
|
}, [
|
|
397
410
|
_(a.$slots, "userConfig", {}, void 0, !0),
|
|
398
411
|
e.value.style.chart.title.text ? (s(), u("div", {
|
|
399
412
|
key: 0,
|
|
400
413
|
ref_key: "chartTitle",
|
|
401
|
-
ref:
|
|
414
|
+
ref: fe,
|
|
402
415
|
style: K(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
403
416
|
}, [
|
|
404
|
-
|
|
417
|
+
he(At, {
|
|
405
418
|
config: {
|
|
406
419
|
title: {
|
|
407
420
|
cy: "stackbar-title",
|
|
@@ -414,13 +427,13 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
414
427
|
}
|
|
415
428
|
}, null, 8, ["config"])
|
|
416
429
|
], 4)) : v("", !0),
|
|
417
|
-
e.value.userOptions.show && H.value ? (s(), Q(
|
|
430
|
+
e.value.userOptions.show && H.value ? (s(), Q(It, {
|
|
418
431
|
ref: "details",
|
|
419
|
-
key: `user_option_${
|
|
432
|
+
key: `user_option_${be.value}`,
|
|
420
433
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
421
434
|
color: e.value.style.chart.color,
|
|
422
|
-
isPrinting:
|
|
423
|
-
isImaging:
|
|
435
|
+
isPrinting: k(we),
|
|
436
|
+
isImaging: k(Ce),
|
|
424
437
|
uid: ie.value,
|
|
425
438
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
426
439
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -433,14 +446,14 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
433
446
|
chartElement: X.value,
|
|
434
447
|
isTooltip: C.value.showTooltip,
|
|
435
448
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
436
|
-
onToggleFullscreen:
|
|
437
|
-
onGeneratePdf:
|
|
438
|
-
onGenerateCsv:
|
|
439
|
-
onGenerateImage:
|
|
440
|
-
onToggleTable:
|
|
441
|
-
onToggleLabels:
|
|
442
|
-
onToggleTooltip:
|
|
443
|
-
},
|
|
449
|
+
onToggleFullscreen: st,
|
|
450
|
+
onGeneratePdf: k(_e),
|
|
451
|
+
onGenerateCsv: Fe,
|
|
452
|
+
onGenerateImage: k(ze),
|
|
453
|
+
onToggleTable: Pe,
|
|
454
|
+
onToggleLabels: Re,
|
|
455
|
+
onToggleTooltip: Ie
|
|
456
|
+
}, mt({ _: 2 }, [
|
|
444
457
|
a.$slots.optionTooltip ? {
|
|
445
458
|
name: "optionTooltip",
|
|
446
459
|
fn: z(() => [
|
|
@@ -493,12 +506,12 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
493
506
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "isTooltip", "titles", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
494
507
|
H.value ? (s(), u("svg", {
|
|
495
508
|
key: 2,
|
|
496
|
-
xmlns:
|
|
509
|
+
xmlns: k(St),
|
|
497
510
|
viewBox: `0 0 ${o.value.chartWidth <= 0 ? 10 : o.value.chartWidth} ${o.value.chartHeight <= 0 ? 10 : o.value.chartHeight}`,
|
|
498
511
|
style: K(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
499
512
|
}, [
|
|
500
|
-
e.value.style.chart.bars.gradient.show ? (s(), u("defs",
|
|
501
|
-
(s(!0), u(h, null,
|
|
513
|
+
e.value.style.chart.bars.gradient.show ? (s(), u("defs", Yt, [
|
|
514
|
+
(s(!0), u(h, null, f(m.value, (t, l) => (s(), u("linearGradient", {
|
|
502
515
|
id: `gradient_${t.id}`,
|
|
503
516
|
x1: "0%",
|
|
504
517
|
y1: "0%",
|
|
@@ -508,18 +521,18 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
508
521
|
D("stop", {
|
|
509
522
|
offset: "0%",
|
|
510
523
|
"stop-color": t.color
|
|
511
|
-
}, null, 8,
|
|
524
|
+
}, null, 8, Jt),
|
|
512
525
|
D("stop", {
|
|
513
526
|
offset: "61.8%",
|
|
514
|
-
"stop-color":
|
|
515
|
-
}, null, 8,
|
|
527
|
+
"stop-color": k($t)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
528
|
+
}, null, 8, Zt),
|
|
516
529
|
D("stop", {
|
|
517
530
|
offset: "100%",
|
|
518
531
|
"stop-color": t.color
|
|
519
|
-
}, null, 8,
|
|
520
|
-
], 8,
|
|
532
|
+
}, null, 8, qt)
|
|
533
|
+
], 8, Gt))), 256))
|
|
521
534
|
])) : v("", !0),
|
|
522
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 1 },
|
|
535
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 1 }, f(N.value, (t, l) => (s(), u("line", {
|
|
523
536
|
x1: o.value.left,
|
|
524
537
|
x2: o.value.right,
|
|
525
538
|
y1: t.y,
|
|
@@ -527,8 +540,8 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
527
540
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
528
541
|
"stroke-width": 1,
|
|
529
542
|
"stroke-linecap": "round"
|
|
530
|
-
}, null, 8,
|
|
531
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 2 },
|
|
543
|
+
}, null, 8, Kt))), 256)) : v("", !0),
|
|
544
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 2 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
|
|
532
545
|
x1: o.value.left,
|
|
533
546
|
x2: o.value.right,
|
|
534
547
|
y1: o.value.top + d.value * l,
|
|
@@ -536,8 +549,8 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
536
549
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
537
550
|
"stroke-width": 1,
|
|
538
551
|
"stroke-linecap": "round"
|
|
539
|
-
}, null, 8,
|
|
540
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 3 },
|
|
552
|
+
}, null, 8, Qt))), 256)) : v("", !0),
|
|
553
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 3 }, f(c.value.end - c.value.start + 1, (t, l) => (s(), u("line", {
|
|
541
554
|
x1: o.value.left + d.value * l,
|
|
542
555
|
x2: o.value.left + d.value * l,
|
|
543
556
|
y1: o.value.top,
|
|
@@ -545,8 +558,8 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
545
558
|
stroke: e.value.style.chart.grid.y.axisColor,
|
|
546
559
|
"stroke-width": 1,
|
|
547
560
|
"stroke-linecap": "round"
|
|
548
|
-
}, null, 8,
|
|
549
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 4 },
|
|
561
|
+
}, null, 8, jt))), 256)) : v("", !0),
|
|
562
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 4 }, f(N.value, (t, l) => (s(), u("line", {
|
|
550
563
|
x1: t.horizontal_x,
|
|
551
564
|
x2: t.horizontal_x,
|
|
552
565
|
y1: o.value.top,
|
|
@@ -554,9 +567,9 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
554
567
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
555
568
|
"stroke-width": 1,
|
|
556
569
|
"stroke-linecap": "round"
|
|
557
|
-
}, null, 8,
|
|
558
|
-
(s(!0), u(h, null,
|
|
559
|
-
e.value.orientation === "vertical" ? (s(!0), u(h, { key: 0 },
|
|
570
|
+
}, null, 8, ea))), 256)) : v("", !0),
|
|
571
|
+
(s(!0), u(h, null, f(m.value, (t, l) => (s(), u("g", null, [
|
|
572
|
+
e.value.orientation === "vertical" ? (s(!0), u(h, { key: 0 }, f(t.x, (i, n) => (s(), u("rect", {
|
|
560
573
|
x: i,
|
|
561
574
|
y: t.y[n] < 0 ? 0 : t.y[n],
|
|
562
575
|
height: t.height[n] < 0 ? 1e-4 : t.height[n],
|
|
@@ -567,8 +580,8 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
567
580
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
568
581
|
"stroke-linecap": "round",
|
|
569
582
|
"stroke-linejoin": "round",
|
|
570
|
-
class:
|
|
571
|
-
}, null, 10,
|
|
583
|
+
class: ve({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
584
|
+
}, null, 10, ta))), 256)) : (s(!0), u(h, { key: 1 }, f(t.horizontal_x, (i, n) => (s(), u("rect", {
|
|
572
585
|
x: i,
|
|
573
586
|
y: t.horizontal_y[n] < 0 ? 0 : t.horizontal_y[n],
|
|
574
587
|
width: t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n],
|
|
@@ -579,8 +592,8 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
579
592
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
580
593
|
"stroke-linecap": "round",
|
|
581
594
|
"stroke-linejoin": "round",
|
|
582
|
-
class:
|
|
583
|
-
}, null, 10,
|
|
595
|
+
class: ve({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": Y.value })
|
|
596
|
+
}, null, 10, aa))), 256))
|
|
584
597
|
]))), 256)),
|
|
585
598
|
e.value.style.chart.grid.x.showAxis ? (s(), u("line", {
|
|
586
599
|
key: 5,
|
|
@@ -592,7 +605,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
592
605
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
593
606
|
"stroke-linecap": "round",
|
|
594
607
|
"stroke-linejoin": "round"
|
|
595
|
-
}, null, 8,
|
|
608
|
+
}, null, 8, la)) : v("", !0),
|
|
596
609
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (s(), u("line", {
|
|
597
610
|
key: 6,
|
|
598
611
|
x1: o.value.left,
|
|
@@ -603,7 +616,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
603
616
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
604
617
|
"stroke-linecap": "round",
|
|
605
618
|
"stroke-linejoin": "round"
|
|
606
|
-
}, null, 8,
|
|
619
|
+
}, null, 8, ra)) : v("", !0),
|
|
607
620
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (s(), u("text", {
|
|
608
621
|
key: 7,
|
|
609
622
|
x: o.value.left + o.value.width / 2,
|
|
@@ -612,7 +625,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
612
625
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
613
626
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
614
627
|
"text-anchor": "middle"
|
|
615
|
-
}, S(e.value.style.chart.grid.x.axisName.text), 9,
|
|
628
|
+
}, S(e.value.style.chart.grid.x.axisName.text), 9, oa)) : v("", !0),
|
|
616
629
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (s(), u("text", {
|
|
617
630
|
key: 8,
|
|
618
631
|
transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize + e.value.style.chart.grid.y.axisName.offsetX}, ${o.value.top + o.value.height / 2}) rotate(-90)`,
|
|
@@ -620,76 +633,76 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
620
633
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
621
634
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
622
635
|
"text-anchor": "middle"
|
|
623
|
-
}, S(e.value.style.chart.grid.y.axisName.text), 9,
|
|
636
|
+
}, S(e.value.style.chart.grid.y.axisName.text), 9, sa)) : v("", !0),
|
|
624
637
|
C.value.dataLabels.show && e.value.orientation === "vertical" ? (s(), u(h, { key: 9 }, [
|
|
625
|
-
(s(!0), u(h, null,
|
|
626
|
-
(s(!0), u(h, null,
|
|
638
|
+
(s(!0), u(h, null, f(m.value, (t, l) => (s(), u("g", null, [
|
|
639
|
+
(s(!0), u(h, null, f(t.x, (i, n) => (s(), u("text", {
|
|
627
640
|
x: i + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
628
641
|
y: t.y[n] + t.height[n] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
629
642
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
630
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
643
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? k(Je)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
631
644
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
632
645
|
"text-anchor": "middle"
|
|
633
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
646
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Te(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ia))), 256))
|
|
634
647
|
]))), 256)),
|
|
635
|
-
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g",
|
|
636
|
-
(s(!0), u(h, null,
|
|
648
|
+
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", ua, [
|
|
649
|
+
(s(!0), u(h, null, f(Me.value, (t, l) => (s(), u("text", {
|
|
637
650
|
x: o.value.left + d.value * l + d.value / 2,
|
|
638
651
|
y: o.value.top - e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
639
652
|
"text-anchor": "middle",
|
|
640
653
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
641
654
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
642
655
|
fill: e.value.style.chart.bars.totalValues.color
|
|
643
|
-
}, S(ae(t.value, t, l, t.sign)), 9,
|
|
656
|
+
}, S(ae(t.value, t, l, t.sign)), 9, na))), 256))
|
|
644
657
|
])) : v("", !0)
|
|
645
658
|
], 64)) : v("", !0),
|
|
646
659
|
C.value.dataLabels.show && e.value.orientation === "horizontal" ? (s(), u(h, { key: 10 }, [
|
|
647
|
-
(s(!0), u(h, null,
|
|
648
|
-
(s(!0), u(h, null,
|
|
660
|
+
(s(!0), u(h, null, f(m.value, (t, l) => (s(), u("g", null, [
|
|
661
|
+
(s(!0), u(h, null, f(t.horizontal_x, (i, n) => (s(), u("text", {
|
|
649
662
|
x: i + (t.horizontal_width[n] < 0 ? 1e-4 : t.horizontal_width[n]) / 2,
|
|
650
663
|
y: t.horizontal_y[n] + d.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
651
664
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
652
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ?
|
|
665
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? k(Je)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
653
666
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
654
667
|
"text-anchor": "middle"
|
|
655
|
-
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
668
|
+
}, S(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? Te(t.proportions[n] * 100, t, l, n) : ae(t.series[n], t, l, n, t.signedSeries[n])), 9, ca))), 256))
|
|
656
669
|
]))), 256)),
|
|
657
|
-
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g",
|
|
658
|
-
(s(!0), u(h, null,
|
|
670
|
+
e.value.style.chart.bars.totalValues.show && m.value.length > 1 ? (s(), u("g", va, [
|
|
671
|
+
(s(!0), u(h, null, f(Me.value, (t, l) => (s(), u("text", {
|
|
659
672
|
x: o.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
660
673
|
y: o.value.top + d.value * l + d.value / 2,
|
|
661
674
|
"text-anchor": "start",
|
|
662
675
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
663
676
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
664
677
|
fill: e.value.style.chart.bars.totalValues.color
|
|
665
|
-
}, S(ae(t.value, t, l, t.sign)), 9,
|
|
678
|
+
}, S(ae(t.value, t, l, t.sign)), 9, ha))), 256))
|
|
666
679
|
])) : v("", !0)
|
|
667
680
|
], 64)) : v("", !0),
|
|
668
681
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "vertical" ? (s(), u(h, { key: 11 }, [
|
|
669
|
-
(s(!0), u(h, null,
|
|
682
|
+
(s(!0), u(h, null, f(N.value, (t, l) => (s(), u("line", {
|
|
670
683
|
x1: o.value.left,
|
|
671
684
|
x2: o.value.left - 6,
|
|
672
685
|
y1: t.y,
|
|
673
686
|
y2: t.y,
|
|
674
687
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
675
688
|
"stroke-width": 1
|
|
676
|
-
}, null, 8,
|
|
677
|
-
(s(!0), u(h, null,
|
|
689
|
+
}, null, 8, da))), 256)),
|
|
690
|
+
(s(!0), u(h, null, f(N.value, (t, l) => (s(), u("text", {
|
|
678
691
|
x: t.x,
|
|
679
692
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
680
693
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
681
694
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
682
695
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
683
696
|
"text-anchor": "end"
|
|
684
|
-
}, S(
|
|
697
|
+
}, S(k(E)({
|
|
685
698
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
686
699
|
v: t.value,
|
|
687
700
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
688
701
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
689
|
-
})), 9,
|
|
702
|
+
})), 9, ya))), 256))
|
|
690
703
|
], 64)) : v("", !0),
|
|
691
704
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (s(), u(h, { key: 12 }, [
|
|
692
|
-
(s(!0), u(h, null,
|
|
705
|
+
(s(!0), u(h, null, f(N.value, (t, l) => (s(), u("line", {
|
|
693
706
|
x1: t.horizontal_x,
|
|
694
707
|
x2: t.horizontal_x,
|
|
695
708
|
y1: o.value.bottom,
|
|
@@ -697,65 +710,65 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
697
710
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
698
711
|
"stroke-width": 1,
|
|
699
712
|
"stroke-linecap": "round"
|
|
700
|
-
}, null, 8,
|
|
701
|
-
(s(!0), u(h, null,
|
|
713
|
+
}, null, 8, ga))), 256)),
|
|
714
|
+
(s(!0), u(h, null, f(N.value, (t, l) => (s(), u("text", {
|
|
702
715
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
703
716
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
704
717
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
705
718
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
706
719
|
transform: `translate(${t.horizontal_x}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
707
|
-
}, S(
|
|
720
|
+
}, S(k(E)({
|
|
708
721
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
709
722
|
v: t.value,
|
|
710
723
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
711
724
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
712
|
-
})), 9,
|
|
725
|
+
})), 9, ba))), 256))
|
|
713
726
|
], 64)) : v("", !0),
|
|
714
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 13 },
|
|
727
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 13 }, f(J.value, (t, l) => (s(), u("text", {
|
|
715
728
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
716
729
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
717
730
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
718
731
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
719
732
|
transform: `translate(${o.value.left + d.value * l + d.value / 2}, ${o.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`
|
|
720
|
-
}, S(t), 9,
|
|
721
|
-
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 14 },
|
|
733
|
+
}, S(t), 9, fa))), 256)) : v("", !0),
|
|
734
|
+
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 14 }, f(J.value, (t, l) => (s(), u("text", {
|
|
722
735
|
"text-anchor": "end",
|
|
723
736
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
724
737
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
725
738
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
726
739
|
x: o.value.left - 8,
|
|
727
740
|
y: o.value.top + d.value * l + d.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3
|
|
728
|
-
}, S(t), 9,
|
|
729
|
-
C.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 15 },
|
|
741
|
+
}, S(t), 9, ma))), 256)) : v("", !0),
|
|
742
|
+
C.value.showTooltip && e.value.orientation === "vertical" ? (s(!0), u(h, { key: 15 }, f(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
|
|
730
743
|
x: o.value.left + l * d.value,
|
|
731
744
|
y: o.value.top,
|
|
732
745
|
width: d.value,
|
|
733
746
|
height: o.value.height < 0 ? 0 : o.value.height,
|
|
734
|
-
onClick: (i) =>
|
|
735
|
-
onMouseenter: (i) =>
|
|
747
|
+
onClick: (i) => Ne(l),
|
|
748
|
+
onMouseenter: (i) => Oe(l),
|
|
736
749
|
onMouseleave: r[0] || (r[0] = (i) => {
|
|
737
750
|
U.value = null, j.value = !1;
|
|
738
751
|
}),
|
|
739
|
-
fill: l === U.value ? e.value.style.chart.highlighter.color +
|
|
740
|
-
}, null, 40,
|
|
741
|
-
C.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 16 },
|
|
752
|
+
fill: l === U.value ? e.value.style.chart.highlighter.color + k(Ze)[e.value.style.chart.highlighter.opacity] : "transparent"
|
|
753
|
+
}, null, 40, pa))), 256)) : v("", !0),
|
|
754
|
+
C.value.showTooltip && e.value.orientation === "horizontal" ? (s(!0), u(h, { key: 16 }, f(c.value.end - c.value.start, (t, l) => (s(), u("rect", {
|
|
742
755
|
x: o.value.left,
|
|
743
756
|
y: o.value.top + l * d.value,
|
|
744
757
|
width: o.value.width < 0 ? 0 : o.value.width,
|
|
745
758
|
height: d.value,
|
|
746
|
-
onClick: (i) =>
|
|
747
|
-
onMouseenter: (i) =>
|
|
759
|
+
onClick: (i) => Ne(l),
|
|
760
|
+
onMouseenter: (i) => Oe(l),
|
|
748
761
|
onMouseleave: r[1] || (r[1] = (i) => {
|
|
749
762
|
U.value = null, j.value = !1;
|
|
750
763
|
}),
|
|
751
|
-
fill: l === U.value ? e.value.style.chart.highlighter.color +
|
|
752
|
-
}, null, 40,
|
|
764
|
+
fill: l === U.value ? e.value.style.chart.highlighter.color + k(Ze)[e.value.style.chart.highlighter.opacity] : "transparent"
|
|
765
|
+
}, null, 40, xa))), 256)) : v("", !0),
|
|
753
766
|
_(a.$slots, "svg", B(W({ ...o.value })), void 0, !0)
|
|
754
|
-
], 12,
|
|
755
|
-
a.$slots.watermark ? (s(), u("div",
|
|
756
|
-
_(a.$slots, "watermark", B(W({ isPrinting:
|
|
767
|
+
], 12, Ut)) : v("", !0),
|
|
768
|
+
a.$slots.watermark ? (s(), u("div", ka, [
|
|
769
|
+
_(a.$slots, "watermark", B(W({ isPrinting: k(we) || k(Ce) })), void 0, !0)
|
|
757
770
|
])) : v("", !0),
|
|
758
|
-
H.value ? v("", !0) : (s(), Q(
|
|
771
|
+
H.value ? v("", !0) : (s(), Q(Bt, {
|
|
759
772
|
key: 4,
|
|
760
773
|
config: {
|
|
761
774
|
type: "bar",
|
|
@@ -772,12 +785,12 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
772
785
|
}, null, 8, ["config"])),
|
|
773
786
|
D("div", {
|
|
774
787
|
ref_key: "chartSlicer",
|
|
775
|
-
ref:
|
|
788
|
+
ref: pe,
|
|
776
789
|
style: K(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
777
790
|
"data-html2canvas-ignore": ""
|
|
778
791
|
}, [
|
|
779
|
-
e.value.style.chart.zoom.show && R.value > 1 ? (s(), Q(
|
|
780
|
-
key: `slicer_${
|
|
792
|
+
e.value.style.chart.zoom.show && R.value > 1 ? (s(), Q(Vt, {
|
|
793
|
+
key: `slicer_${xe.value}`,
|
|
781
794
|
background: e.value.style.chart.zoom.color,
|
|
782
795
|
borderColor: e.value.style.chart.backgroundColor,
|
|
783
796
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -787,7 +800,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
787
800
|
textColor: e.value.style.chart.color,
|
|
788
801
|
inputColor: e.value.style.chart.zoom.color,
|
|
789
802
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
790
|
-
max: Math.max(...
|
|
803
|
+
max: Math.max(...de.dataset.map((t) => t.series.length)),
|
|
791
804
|
min: 0,
|
|
792
805
|
valueStart: c.value.start,
|
|
793
806
|
valueEnd: c.value.end,
|
|
@@ -795,7 +808,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
795
808
|
"onUpdate:start": r[2] || (r[2] = (t) => c.value.start = t),
|
|
796
809
|
end: c.value.end,
|
|
797
810
|
"onUpdate:end": r[3] || (r[3] = (t) => c.value.end = t),
|
|
798
|
-
onReset:
|
|
811
|
+
onReset: $e
|
|
799
812
|
}, {
|
|
800
813
|
"reset-action": z(({ reset: t }) => [
|
|
801
814
|
_(a.$slots, "reset-action", B(W({ reset: t })), void 0, !0)
|
|
@@ -803,7 +816,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
803
816
|
_: 3
|
|
804
817
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : v("", !0)
|
|
805
818
|
], 4),
|
|
806
|
-
|
|
819
|
+
he(Ft, {
|
|
807
820
|
show: C.value.showTooltip && j.value,
|
|
808
821
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
809
822
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -816,39 +829,39 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
816
829
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
817
830
|
parent: X.value,
|
|
818
831
|
content: ue.value,
|
|
819
|
-
isCustom:
|
|
832
|
+
isCustom: k(qe)(e.value.style.chart.tooltip.customFormat)
|
|
820
833
|
}, {
|
|
821
834
|
"tooltip-before": z(() => [
|
|
822
|
-
_(a.$slots, "tooltip-before", B(W({ ...
|
|
835
|
+
_(a.$slots, "tooltip-before", B(W({ ...ge.value })), void 0, !0)
|
|
823
836
|
]),
|
|
824
837
|
"tooltip-after": z(() => [
|
|
825
|
-
_(a.$slots, "tooltip-after", B(W({ ...
|
|
838
|
+
_(a.$slots, "tooltip-after", B(W({ ...ge.value })), void 0, !0)
|
|
826
839
|
]),
|
|
827
840
|
_: 3
|
|
828
841
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
829
842
|
D("div", {
|
|
830
843
|
ref_key: "chartLegend",
|
|
831
|
-
ref:
|
|
844
|
+
ref: me
|
|
832
845
|
}, [
|
|
833
|
-
e.value.style.chart.legend.show && H.value ? (s(), Q(
|
|
846
|
+
e.value.style.chart.legend.show && H.value ? (s(), Q(Dt, {
|
|
834
847
|
key: 0,
|
|
835
|
-
legendSet:
|
|
836
|
-
config:
|
|
848
|
+
legendSet: Ae.value,
|
|
849
|
+
config: nt.value,
|
|
837
850
|
onClickMarker: r[4] || (r[4] = ({ legend: t }) => t.segregate())
|
|
838
851
|
}, {
|
|
839
852
|
item: z(({ legend: t }) => [
|
|
840
853
|
D("div", {
|
|
841
854
|
onClick: (l) => t.segregate(),
|
|
842
855
|
style: K(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
843
|
-
}, S(t.name), 13,
|
|
856
|
+
}, S(t.name), 13, wa)
|
|
844
857
|
]),
|
|
845
858
|
_: 1
|
|
846
859
|
}, 8, ["legendSet", "config"])) : _(a.$slots, "legend", {
|
|
847
860
|
key: 1,
|
|
848
|
-
legend:
|
|
861
|
+
legend: Ae.value
|
|
849
862
|
}, void 0, !0)
|
|
850
863
|
], 512),
|
|
851
|
-
c.value.end - c.value.start < 200 ? (s(), Q(
|
|
864
|
+
c.value.end - c.value.start < 200 ? (s(), Q(Et, {
|
|
852
865
|
key: 5,
|
|
853
866
|
hideDetails: "",
|
|
854
867
|
config: {
|
|
@@ -865,7 +878,7 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
865
878
|
}
|
|
866
879
|
}, {
|
|
867
880
|
content: z(() => [
|
|
868
|
-
|
|
881
|
+
he(Ht, {
|
|
869
882
|
colNames: le.value.colNames,
|
|
870
883
|
head: le.value.head,
|
|
871
884
|
body: le.value.body,
|
|
@@ -874,10 +887,10 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
874
887
|
onClose: r[5] || (r[5] = (t) => C.value.showTable = !1)
|
|
875
888
|
}, {
|
|
876
889
|
th: z(({ th: t }) => [
|
|
877
|
-
D("div", { innerHTML: t }, null, 8,
|
|
890
|
+
D("div", { innerHTML: t }, null, 8, Ca)
|
|
878
891
|
]),
|
|
879
892
|
td: z(({ td: t }) => [
|
|
880
|
-
|
|
893
|
+
pt(S(isNaN(Number(t)) ? t : k(E)({
|
|
881
894
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
882
895
|
v: t,
|
|
883
896
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -889,9 +902,9 @@ const At = ["id"], Dt = ["xmlns", "viewBox"], Et = { key: 0 }, Ht = ["id"], Bt =
|
|
|
889
902
|
]),
|
|
890
903
|
_: 1
|
|
891
904
|
}, 8, ["config"])) : v("", !0)
|
|
892
|
-
], 14,
|
|
905
|
+
], 14, Xt));
|
|
893
906
|
}
|
|
894
|
-
},
|
|
907
|
+
}, Aa = /* @__PURE__ */ Wt(_a, [["__scopeId", "data-v-b4b2047a"]]);
|
|
895
908
|
export {
|
|
896
|
-
|
|
909
|
+
Aa as default
|
|
897
910
|
};
|