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,19 +1,19 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { L as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { u as
|
|
12
|
-
import { _ as
|
|
13
|
-
const
|
|
1
|
+
import { useCssVars as Ye, computed as b, ref as d, watch as Pe, onMounted as qe, onBeforeUnmount as Ke, openBlock as n, createElementBlock as c, normalizeClass as D, normalizeStyle as r, createBlock as R, createCommentVNode as m, unref as h, createSlots as Je, withCtx as k, renderSlot as x, normalizeProps as K, guardReactiveProps as J, createElementVNode as u, toDisplayString as i, Fragment as U, renderList as H, createVNode as Se, withKeys as Qe, createTextVNode as Ze } from "vue";
|
|
2
|
+
import { u as et, c as tt, t as at, a as lt, p as M, b as ot, o as Ve, e as Q, s as S, d as ne, i as Z, f as I, X as ut, v as nt, w as se, x as st, y as rt, q as it, r as dt } from "./index-CaV1s-yZ.js";
|
|
3
|
+
import { t as ct, u as vt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as ht } from "./Title-gUz6GDA3.js";
|
|
5
|
+
import { u as pt, U as gt } from "./usePrinter-rvJyT65A.js";
|
|
6
|
+
import { _ as yt } from "./Tooltip-DfSM1mNP.js";
|
|
7
|
+
import { L as ze } from "./Legend-5cQ0xZjK.js";
|
|
8
|
+
import ft from "./vue-ui-skeleton-CvFX_ExX.js";
|
|
9
|
+
import bt from "./BaseIcon-rwm-10Hu.js";
|
|
10
|
+
import mt from "./vue-ui-accordion-CpzGQ63y.js";
|
|
11
|
+
import { u as Fe } from "./useNestedProp-tWCzZrLx.js";
|
|
12
|
+
import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const kt = ["id"], xt = ["onClick"], $t = ["xmlns", "viewBox"], Ct = ["id"], wt = ["stop-color"], Tt = ["stop-color"], Lt = ["x", "y", "width", "height", "fill", "rx"], Nt = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Pt = ["x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = ["x", "y", "font-size", "fill", "font-weight"], It = ["y", "width", "height", "fill", "onMouseenter"], Bt = {
|
|
14
14
|
key: 4,
|
|
15
15
|
class: "vue-data-ui-watermark"
|
|
16
|
-
},
|
|
16
|
+
}, Ot = ["onClick"], Dt = { style: "width:100%;padding-top: 36px;position:relative" }, Rt = { class: "vue-ui-data-table" }, Xt = { key: 0 }, At = { style: { width: "100%" } }, Et = ["data-cell"], Gt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Ut = ["data-cell"], Ht = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Wt = ["data-cell"], jt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Yt = ["data-cell"], qt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Kt = ["data-cell"], Jt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, Qt = ["data-cell"], Zt = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ea = ["data-cell"], ta = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, aa = {
|
|
17
17
|
__name: "vue-ui-vertical-bar",
|
|
18
18
|
props: {
|
|
19
19
|
config: {
|
|
@@ -30,67 +30,79 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
|
-
setup(
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
setup(Me, { expose: Ie, emit: Be }) {
|
|
34
|
+
const C = Me;
|
|
35
|
+
Ye((a) => ({
|
|
36
|
+
f13b9132: a.tdo
|
|
37
37
|
}));
|
|
38
|
-
const { vue_ui_vertical_bar:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
const { vue_ui_vertical_bar: Oe } = et(), W = b(() => !!C.dataset && C.dataset.length), V = d(tt()), De = d(null), ee = d(!1), te = d(""), j = d(0), Re = d(null), re = d(0), X = d(null), ie = d(null), ae = d(null), de = d(0), le = d(0), e = b({
|
|
39
|
+
get: () => ce(),
|
|
40
|
+
set: (a) => a
|
|
41
|
+
});
|
|
42
|
+
function ce() {
|
|
43
|
+
const a = Fe({
|
|
44
|
+
userConfig: C.config,
|
|
45
|
+
defaultConfig: Oe
|
|
42
46
|
});
|
|
43
47
|
return a.theme ? {
|
|
44
|
-
...
|
|
45
|
-
userConfig:
|
|
48
|
+
...Fe({
|
|
49
|
+
userConfig: at.vue_ui_vertical_bar[a.theme] || C.config,
|
|
46
50
|
defaultConfig: a
|
|
47
51
|
}),
|
|
48
|
-
customPalette:
|
|
52
|
+
customPalette: lt[a.theme] || M
|
|
49
53
|
} : a;
|
|
50
|
-
}
|
|
54
|
+
}
|
|
55
|
+
Pe(() => C.config, (a) => {
|
|
56
|
+
e.value = ce(), me(), de.value += 1, le.value += 1, v.value = e.value.style.chart.layout.bars.height, g.value = e.value.style.chart.layout.bars.gap;
|
|
57
|
+
}, { deep: !0 }), Pe(() => C.dataset, q, { deep: !0 });
|
|
58
|
+
const { isPrinting: ve, isImaging: he, generatePdf: pe, generateImage: ge } = pt({
|
|
51
59
|
elementId: `vue-ui-vertical-bar_${V.value}`,
|
|
52
60
|
fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar"
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
61
|
+
}), ye = b(() => ot(e.value.customPalette)), fe = d(null), be = d(!1), Xe = b(() => e.value.table.responsiveBreakpoint), Y = d(null);
|
|
62
|
+
qe(() => {
|
|
63
|
+
me();
|
|
64
|
+
});
|
|
65
|
+
function me() {
|
|
66
|
+
if (Ve(C.dataset) && Q({
|
|
56
67
|
componentName: "VueUiVerticalBar",
|
|
57
68
|
type: "dataset"
|
|
58
|
-
}), j.value =
|
|
59
|
-
const a =
|
|
60
|
-
const { width: l, height: t } =
|
|
61
|
-
chart:
|
|
69
|
+
}), j.value = C.dataset.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0), Ae(), e.value.responsive) {
|
|
70
|
+
const a = ct(() => {
|
|
71
|
+
const { width: l, height: t } = vt({
|
|
72
|
+
chart: X.value,
|
|
62
73
|
title: e.value.style.chart.title.text ? ie.value : null,
|
|
63
|
-
legend: e.value.style.chart.legend.show ?
|
|
74
|
+
legend: e.value.style.chart.legend.show ? ae.value : null
|
|
64
75
|
});
|
|
65
|
-
|
|
76
|
+
xe.value = l, v.value = t / j.value - g.value * 2;
|
|
66
77
|
});
|
|
67
|
-
Y.value = new ResizeObserver(a), Y.value.observe(
|
|
78
|
+
Y.value = new ResizeObserver(a), Y.value.observe(X.value.parentNode);
|
|
68
79
|
}
|
|
69
|
-
}
|
|
80
|
+
}
|
|
81
|
+
Ke(() => {
|
|
70
82
|
Y.value && Y.value.disconnect();
|
|
71
83
|
});
|
|
72
|
-
function
|
|
84
|
+
function Ae() {
|
|
73
85
|
new ResizeObserver((l) => {
|
|
74
86
|
l.forEach((t) => {
|
|
75
|
-
|
|
87
|
+
be.value = t.contentRect.width < Xe.value;
|
|
76
88
|
});
|
|
77
|
-
}).observe(
|
|
89
|
+
}).observe(fe.value);
|
|
78
90
|
}
|
|
79
|
-
const $ =
|
|
91
|
+
const $ = d({
|
|
80
92
|
showTable: e.value.table.show,
|
|
81
93
|
sortDesc: e.value.style.chart.layout.bars.sort === "desc",
|
|
82
94
|
showTooltip: e.value.style.chart.tooltip.show
|
|
83
|
-
}),
|
|
84
|
-
!a.value && !a.children &&
|
|
95
|
+
}), _e = b(() => $.value.sortDesc), z = b(() => (C.dataset.forEach((a, l) => {
|
|
96
|
+
!a.value && !a.children && Q({
|
|
85
97
|
componentName: "VueUiVerticalBar",
|
|
86
98
|
type: "datasetAttributeEmpty",
|
|
87
99
|
property: `value (index ${l})`
|
|
88
|
-
}), a.children && (
|
|
100
|
+
}), a.children && (Ve(a.children) ? Q({
|
|
89
101
|
componentName: "VueUiVerticalBar",
|
|
90
102
|
type: "datasetAttributeEmpty",
|
|
91
103
|
property: `children (index ${l})`
|
|
92
104
|
}) : a.children.forEach((t, o) => {
|
|
93
|
-
[null, void 0].includes(t.name) &&
|
|
105
|
+
[null, void 0].includes(t.name) && Q({
|
|
94
106
|
componentName: "VueUiVerticalBar",
|
|
95
107
|
type: "datasetSerieAttribute",
|
|
96
108
|
property: "name",
|
|
@@ -98,21 +110,21 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
98
110
|
index: o
|
|
99
111
|
});
|
|
100
112
|
}));
|
|
101
|
-
}),
|
|
102
|
-
const t = `vertical_parent_${l}_${V.value}`, o = a.children && a.children.length > 0, f = S(a.value ? a.value : o ? a.children.map((_) => _.value || 0).reduce((_,
|
|
113
|
+
}), C.dataset.map((a, l) => {
|
|
114
|
+
const t = `vertical_parent_${l}_${V.value}`, o = a.children && a.children.length > 0, f = S(a.value ? a.value : o ? a.children.map((_) => _.value || 0).reduce((_, N) => _ + N, 0) : 0), p = f >= 0 ? 1 : -1;
|
|
103
115
|
return {
|
|
104
116
|
...a,
|
|
105
117
|
id: t,
|
|
106
118
|
shape: "square",
|
|
107
|
-
opacity:
|
|
119
|
+
opacity: T.value.includes(t) ? 0.5 : 1,
|
|
108
120
|
value: Math.abs(f),
|
|
109
121
|
sign: p,
|
|
110
122
|
hasChildren: o,
|
|
111
123
|
isChild: !1,
|
|
112
|
-
segregate: () =>
|
|
113
|
-
isSegregated:
|
|
114
|
-
color:
|
|
115
|
-
children: !a.children || !a.children.length ? [] : a.children.toSorted((_,
|
|
124
|
+
segregate: () => A(t),
|
|
125
|
+
isSegregated: T.value.includes(t),
|
|
126
|
+
color: ne(a.color) || ye.value[l] || M[l] || M[l % M.length],
|
|
127
|
+
children: !a.children || !a.children.length ? [] : a.children.toSorted((_, N) => _e.value ? N.value - _.value : _.value - N.value).map((_, N) => ({
|
|
116
128
|
..._,
|
|
117
129
|
value: S(Math.abs(_.value)),
|
|
118
130
|
sign: _.value >= 0 ? 1 : -1,
|
|
@@ -121,32 +133,32 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
121
133
|
parentName: a.name,
|
|
122
134
|
parentValue: f,
|
|
123
135
|
parentSign: p,
|
|
124
|
-
id: `vertical_child_${l}_${
|
|
125
|
-
childIndex:
|
|
126
|
-
color:
|
|
127
|
-
})).map((_,
|
|
136
|
+
id: `vertical_child_${l}_${N}_${V.value}`,
|
|
137
|
+
childIndex: N,
|
|
138
|
+
color: ne(_.color) || ne(a.color) || ye.value[l] || M[l] || M[l % M.length]
|
|
139
|
+
})).map((_, N) => ({
|
|
128
140
|
..._,
|
|
129
|
-
isFirstChild:
|
|
130
|
-
isLastChild:
|
|
141
|
+
isFirstChild: N === 0,
|
|
142
|
+
isLastChild: N === a.children.length - 1
|
|
131
143
|
}))
|
|
132
144
|
};
|
|
133
|
-
}).toSorted((a, l) =>
|
|
145
|
+
}).toSorted((a, l) => _e.value ? l.value - a.value : a.value - l.value))), ke = b(() => ({
|
|
134
146
|
cy: "vertical-bar-div-legend",
|
|
135
147
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
136
148
|
color: e.value.style.chart.legend.color,
|
|
137
149
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
138
150
|
paddingBottom: 12,
|
|
139
151
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
140
|
-
})),
|
|
141
|
-
width:
|
|
142
|
-
height:
|
|
152
|
+
})), v = d(e.value.style.chart.layout.bars.height), g = d(e.value.style.chart.layout.bars.gap), Ee = b(() => (v.value + g.value) * j.value), xe = d(512), y = b(() => ({
|
|
153
|
+
width: xe.value,
|
|
154
|
+
height: Ee.value,
|
|
143
155
|
padding: {
|
|
144
156
|
top: 12,
|
|
145
157
|
left: 128 + e.value.style.chart.layout.bars.offsetX,
|
|
146
158
|
right: 64 + e.value.style.chart.layout.bars.paddingRight,
|
|
147
159
|
bottom: 12
|
|
148
160
|
}
|
|
149
|
-
})),
|
|
161
|
+
})), s = b(() => ({
|
|
150
162
|
fullHeight: y.value.padding.top + y.value.padding.bottom + y.value.height,
|
|
151
163
|
top: y.value.padding.top,
|
|
152
164
|
left: y.value.padding.left,
|
|
@@ -154,58 +166,58 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
154
166
|
bottom: y.value.padding.top + y.value.height,
|
|
155
167
|
width: y.value.width - (y.value.padding.left + y.value.padding.right)
|
|
156
168
|
}));
|
|
157
|
-
function
|
|
169
|
+
function q() {
|
|
158
170
|
j.value = F.value.flatMap((a) => a.children && a.children.length > 0 ? a.children.length : 1).reduce((a, l) => a + l, 0);
|
|
159
171
|
}
|
|
160
|
-
const
|
|
161
|
-
function
|
|
162
|
-
|
|
172
|
+
const T = d([]);
|
|
173
|
+
function A(a) {
|
|
174
|
+
T.value.includes(a) ? T.value = T.value.filter((l) => l !== a) : T.value.push(a), q(), Be("selectLegend", F.value);
|
|
163
175
|
}
|
|
164
|
-
const F = b(() => z.value.filter((a) => !
|
|
165
|
-
function
|
|
176
|
+
const F = b(() => z.value.filter((a) => !T.value.includes(a.id))), L = b(() => F.value.map((a) => Math.abs(a.value)).reduce((a, l) => a + l, 0));
|
|
177
|
+
function $e(a, l = !1, t = 0) {
|
|
166
178
|
return l ? I({
|
|
167
|
-
v: S(Math.abs(a) /
|
|
179
|
+
v: S(Math.abs(a) / L.value * 100),
|
|
168
180
|
s: "%",
|
|
169
181
|
r: t
|
|
170
|
-
}) : Math.abs(a) /
|
|
182
|
+
}) : Math.abs(a) / L.value;
|
|
171
183
|
}
|
|
172
|
-
const B = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), O = b(() => B.value.map((a) => a.sign).includes(-1)),
|
|
184
|
+
const B = b(() => F.value.flatMap((a) => a.hasChildren ? a.children : a)), O = b(() => B.value.map((a) => a.sign).includes(-1)), Ge = b(() => Math.max(...F.value.flatMap((a) => a.children && a.children.length ? Math.max(...a.children.map((l) => l.value)) : a.value)));
|
|
173
185
|
function P(a) {
|
|
174
|
-
const l = a /
|
|
175
|
-
return
|
|
186
|
+
const l = a / Ge.value;
|
|
187
|
+
return s.value.width / (O.value ? 2 : 1) * l;
|
|
176
188
|
}
|
|
177
|
-
function
|
|
178
|
-
return P(a) +
|
|
189
|
+
function Ue(a) {
|
|
190
|
+
return P(a) + s.value.left;
|
|
179
191
|
}
|
|
180
|
-
function
|
|
181
|
-
const t = F.value.find((p) => p.id === a.parentId), o =
|
|
192
|
+
function E(a, l) {
|
|
193
|
+
const t = F.value.find((p) => p.id === a.parentId), o = s.value.top + (g.value + v.value) * l, f = t.children.length * (g.value + v.value);
|
|
182
194
|
return {
|
|
183
195
|
y: o + f / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
184
196
|
name: t.name,
|
|
185
197
|
value: [void 0, NaN, null].includes(t.value) ? "" : t.sign === 1 ? t.value : -t.value,
|
|
186
|
-
percentageToTotal: isNaN(t.value /
|
|
198
|
+
percentageToTotal: isNaN(t.value / L.value) ? "" : $e(t.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
|
|
187
199
|
sign: t.sign
|
|
188
200
|
};
|
|
189
201
|
}
|
|
190
|
-
function
|
|
202
|
+
function He() {
|
|
191
203
|
return F.value;
|
|
192
204
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
|
|
205
|
+
const oe = d(null), ue = d(null);
|
|
206
|
+
function We(a, l) {
|
|
207
|
+
ue.value = {
|
|
196
208
|
datapoint: a,
|
|
197
209
|
seriesIndex: l,
|
|
198
210
|
series: z.value,
|
|
199
211
|
config: e.value
|
|
200
|
-
},
|
|
212
|
+
}, ee.value = !0, oe.value = a.id;
|
|
201
213
|
let t = "";
|
|
202
214
|
const o = a.isChild ? a.parentName : a.name, f = a.isChild ? a.name : "", p = e.value.style.chart.tooltip.customFormat;
|
|
203
|
-
|
|
215
|
+
st(p) && rt(() => p({
|
|
204
216
|
datapoint: a,
|
|
205
217
|
series: z.value,
|
|
206
218
|
config: e.value,
|
|
207
219
|
seriesIndex: l
|
|
208
|
-
})) ?
|
|
220
|
+
})) ? te.value = p({
|
|
209
221
|
datapoint: a,
|
|
210
222
|
series: z.value,
|
|
211
223
|
config: e.value,
|
|
@@ -213,7 +225,7 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
213
225
|
}) : (t += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
|
|
214
226
|
<div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" rx="2" stroke="none" fill="${a.color}"/></svg> ${o}</div>
|
|
215
227
|
${f ? `<div>${f}</div>` : ""}
|
|
216
|
-
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${
|
|
228
|
+
</div>`, e.value.style.chart.tooltip.showValue && (t += `<div>${e.value.translations.value}: <b>${Z(
|
|
217
229
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
218
230
|
a.sign === 1 ? a.value : -a.value,
|
|
219
231
|
I({
|
|
@@ -224,19 +236,19 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
224
236
|
}),
|
|
225
237
|
{ datapoint: a, seriesIndex: l }
|
|
226
238
|
)}</b></div>`), e.value.style.chart.tooltip.showPercentage && (t += `<div>${e.value.translations.percentageToTotal} : <b>${I({
|
|
227
|
-
v: Math.abs(a.value) /
|
|
239
|
+
v: Math.abs(a.value) / L.value * 100,
|
|
228
240
|
s: "%",
|
|
229
241
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
230
242
|
})}</b></div>`, a.isChild && (t += `<div>${e.value.translations.percentageToSerie}: <b>${I({
|
|
231
243
|
v: Math.abs(a.value) / Math.abs(a.parentValue) * 100,
|
|
232
244
|
s: "%",
|
|
233
245
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
234
|
-
})}</b></div>`)),
|
|
246
|
+
})}</b></div>`)), te.value = `<div style="text-align:left">${t}</div>`);
|
|
235
247
|
}
|
|
236
|
-
function
|
|
248
|
+
function Ce(a, l, t, o) {
|
|
237
249
|
if (!e.value.style.chart.layout.bars.dataLabels.value.show)
|
|
238
250
|
return "";
|
|
239
|
-
const f =
|
|
251
|
+
const f = Z(
|
|
240
252
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
241
253
|
S(o === -1 && a >= 0 ? -a : a),
|
|
242
254
|
I({
|
|
@@ -246,7 +258,7 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
246
258
|
r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
|
|
247
259
|
}),
|
|
248
260
|
{ datapoint: l, seriesIndex: t }
|
|
249
|
-
), p = `(${
|
|
261
|
+
), p = `(${$e(a, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
|
|
250
262
|
return `${f}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${p}` : ""}`;
|
|
251
263
|
}
|
|
252
264
|
const w = b(() => {
|
|
@@ -262,11 +274,11 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
262
274
|
color: t.color,
|
|
263
275
|
parentName: t.parentName,
|
|
264
276
|
parentValue: t.parentValue,
|
|
265
|
-
percentageToTotal: t.parentValue /
|
|
277
|
+
percentageToTotal: t.parentValue / L.value,
|
|
266
278
|
childName: t.name,
|
|
267
279
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
268
280
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
269
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
281
|
+
childPercentageToTotal: Math.abs(t.value) / L.value
|
|
270
282
|
} : {
|
|
271
283
|
color: "",
|
|
272
284
|
parentName: "",
|
|
@@ -275,12 +287,12 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
275
287
|
childName: t.name,
|
|
276
288
|
childValue: t.sign === 1 ? t.value : -t.value,
|
|
277
289
|
childPercentageToParent: Math.abs(t.value) / Math.abs(t.parentValue),
|
|
278
|
-
childPercentageToTotal: Math.abs(t.value) /
|
|
290
|
+
childPercentageToTotal: Math.abs(t.value) / L.value
|
|
279
291
|
} : {
|
|
280
292
|
color: t.color,
|
|
281
293
|
parentName: t.name,
|
|
282
294
|
parentValue: t.sign === 1 ? t.value : -t.value,
|
|
283
|
-
percentageToTotal: Math.abs(t.value) /
|
|
295
|
+
percentageToTotal: Math.abs(t.value) / L.value,
|
|
284
296
|
childName: "",
|
|
285
297
|
childValue: "",
|
|
286
298
|
childPercentageToParent: "",
|
|
@@ -288,7 +300,7 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
288
300
|
});
|
|
289
301
|
return { head: a, body: l };
|
|
290
302
|
});
|
|
291
|
-
function
|
|
303
|
+
function we() {
|
|
292
304
|
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = w.value.head, t = w.value.body.map((p) => [
|
|
293
305
|
p.parentName,
|
|
294
306
|
p.parentValue,
|
|
@@ -297,45 +309,46 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
297
309
|
p.childValue,
|
|
298
310
|
p.childPercentageToParent,
|
|
299
311
|
p.childPercentageToTotal
|
|
300
|
-
]), o = a.concat([l]).concat(t), f =
|
|
301
|
-
|
|
312
|
+
]), o = a.concat([l]).concat(t), f = it(o);
|
|
313
|
+
dt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
|
|
302
314
|
}
|
|
303
|
-
const
|
|
304
|
-
function
|
|
305
|
-
|
|
315
|
+
const G = d(!1);
|
|
316
|
+
function je(a) {
|
|
317
|
+
G.value = a, re.value += 1;
|
|
306
318
|
}
|
|
307
|
-
function
|
|
319
|
+
function Te() {
|
|
308
320
|
$.value.showTable = !$.value.showTable;
|
|
309
321
|
}
|
|
310
|
-
function
|
|
311
|
-
$.value.sortDesc = !$.value.sortDesc,
|
|
322
|
+
function Le() {
|
|
323
|
+
$.value.sortDesc = !$.value.sortDesc, q();
|
|
312
324
|
}
|
|
313
|
-
function
|
|
325
|
+
function Ne() {
|
|
314
326
|
$.value.showTooltip = !$.value.showTooltip;
|
|
315
327
|
}
|
|
316
|
-
return
|
|
317
|
-
getData:
|
|
318
|
-
recalculateHeight:
|
|
319
|
-
generatePdf:
|
|
320
|
-
generateCsv:
|
|
321
|
-
generateImage:
|
|
322
|
-
toggleTable:
|
|
323
|
-
toggleSort:
|
|
324
|
-
toggleTooltip:
|
|
325
|
-
}), (a, l) => (
|
|
326
|
-
class: D(`vue-ui-vertical-bar ${
|
|
328
|
+
return Ie({
|
|
329
|
+
getData: He,
|
|
330
|
+
recalculateHeight: q,
|
|
331
|
+
generatePdf: pe,
|
|
332
|
+
generateCsv: we,
|
|
333
|
+
generateImage: ge,
|
|
334
|
+
toggleTable: Te,
|
|
335
|
+
toggleSort: Le,
|
|
336
|
+
toggleTooltip: Ne
|
|
337
|
+
}), (a, l) => (n(), c("div", {
|
|
338
|
+
class: D(`vue-ui-vertical-bar ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
327
339
|
ref_key: "verticalBarChart",
|
|
328
|
-
ref:
|
|
340
|
+
ref: X,
|
|
329
341
|
id: `vue-ui-vertical-bar_${V.value}`,
|
|
330
342
|
style: r(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
331
343
|
}, [
|
|
332
|
-
e.value.style.chart.title.text ? (
|
|
344
|
+
e.value.style.chart.title.text ? (n(), c("div", {
|
|
333
345
|
key: 0,
|
|
334
346
|
ref_key: "chartTitle",
|
|
335
347
|
ref: ie,
|
|
336
348
|
style: r(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
337
349
|
}, [
|
|
338
|
-
|
|
350
|
+
(n(), R(ht, {
|
|
351
|
+
key: `title_${de.value}`,
|
|
339
352
|
config: {
|
|
340
353
|
title: {
|
|
341
354
|
cy: "vertical-bar-div-title",
|
|
@@ -346,16 +359,16 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
346
359
|
...e.value.style.chart.title.subtitle
|
|
347
360
|
}
|
|
348
361
|
}
|
|
349
|
-
}, null, 8, ["config"])
|
|
362
|
+
}, null, 8, ["config"]))
|
|
350
363
|
], 4)) : m("", !0),
|
|
351
|
-
e.value.userOptions.show && W.value ? (
|
|
364
|
+
e.value.userOptions.show && W.value ? (n(), R(gt, {
|
|
352
365
|
ref_key: "details",
|
|
353
|
-
ref:
|
|
366
|
+
ref: De,
|
|
354
367
|
key: `user_options_${re.value}`,
|
|
355
368
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
356
369
|
color: e.value.style.chart.color,
|
|
357
|
-
isImaging: h(
|
|
358
|
-
isPrinting: h(
|
|
370
|
+
isImaging: h(he),
|
|
371
|
+
isPrinting: h(ve),
|
|
359
372
|
uid: V.value,
|
|
360
373
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
361
374
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -364,91 +377,92 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
364
377
|
hasTable: e.value.userOptions.buttons.table,
|
|
365
378
|
hasSort: e.value.userOptions.buttons.sort,
|
|
366
379
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
367
|
-
isFullscreen:
|
|
380
|
+
isFullscreen: G.value,
|
|
368
381
|
isTooltip: $.value.showTooltip,
|
|
369
382
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
370
|
-
chartElement:
|
|
371
|
-
onToggleFullscreen:
|
|
372
|
-
onGeneratePdf: h(
|
|
373
|
-
onGenerateCsv:
|
|
374
|
-
onGenerateImage: h(
|
|
375
|
-
onToggleTable:
|
|
376
|
-
onToggleSort:
|
|
377
|
-
onToggleTooltip:
|
|
378
|
-
},
|
|
383
|
+
chartElement: X.value,
|
|
384
|
+
onToggleFullscreen: je,
|
|
385
|
+
onGeneratePdf: h(pe),
|
|
386
|
+
onGenerateCsv: we,
|
|
387
|
+
onGenerateImage: h(ge),
|
|
388
|
+
onToggleTable: Te,
|
|
389
|
+
onToggleSort: Le,
|
|
390
|
+
onToggleTooltip: Ne
|
|
391
|
+
}, Je({ _: 2 }, [
|
|
379
392
|
a.$slots.optionTooltip ? {
|
|
380
393
|
name: "optionTooltip",
|
|
381
|
-
fn:
|
|
382
|
-
|
|
394
|
+
fn: k(() => [
|
|
395
|
+
x(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
383
396
|
]),
|
|
384
397
|
key: "0"
|
|
385
398
|
} : void 0,
|
|
386
399
|
a.$slots.optionPdf ? {
|
|
387
400
|
name: "optionPdf",
|
|
388
|
-
fn:
|
|
389
|
-
|
|
401
|
+
fn: k(() => [
|
|
402
|
+
x(a.$slots, "optionPdf", {}, void 0, !0)
|
|
390
403
|
]),
|
|
391
404
|
key: "1"
|
|
392
405
|
} : void 0,
|
|
393
406
|
a.$slots.optionCsv ? {
|
|
394
407
|
name: "optionCsv",
|
|
395
|
-
fn:
|
|
396
|
-
|
|
408
|
+
fn: k(() => [
|
|
409
|
+
x(a.$slots, "optionCsv", {}, void 0, !0)
|
|
397
410
|
]),
|
|
398
411
|
key: "2"
|
|
399
412
|
} : void 0,
|
|
400
413
|
a.$slots.optionImg ? {
|
|
401
414
|
name: "optionImg",
|
|
402
|
-
fn:
|
|
403
|
-
|
|
415
|
+
fn: k(() => [
|
|
416
|
+
x(a.$slots, "optionImg", {}, void 0, !0)
|
|
404
417
|
]),
|
|
405
418
|
key: "3"
|
|
406
419
|
} : void 0,
|
|
407
420
|
a.$slots.optionTable ? {
|
|
408
421
|
name: "optionTable",
|
|
409
|
-
fn:
|
|
410
|
-
|
|
422
|
+
fn: k(() => [
|
|
423
|
+
x(a.$slots, "optionTable", {}, void 0, !0)
|
|
411
424
|
]),
|
|
412
425
|
key: "4"
|
|
413
426
|
} : void 0,
|
|
414
427
|
a.$slots.optionLabels ? {
|
|
415
428
|
name: "optionLabels",
|
|
416
|
-
fn:
|
|
417
|
-
|
|
429
|
+
fn: k(() => [
|
|
430
|
+
x(a.$slots, "optionLabels", {}, void 0, !0)
|
|
418
431
|
]),
|
|
419
432
|
key: "5"
|
|
420
433
|
} : void 0,
|
|
421
434
|
a.$slots.optionSort ? {
|
|
422
435
|
name: "optionSort",
|
|
423
|
-
fn:
|
|
424
|
-
|
|
436
|
+
fn: k(() => [
|
|
437
|
+
x(a.$slots, "optionSort", {}, void 0, !0)
|
|
425
438
|
]),
|
|
426
439
|
key: "6"
|
|
427
440
|
} : void 0,
|
|
428
441
|
a.$slots.optionFullscreen ? {
|
|
429
442
|
name: "optionFullscreen",
|
|
430
|
-
fn:
|
|
431
|
-
|
|
443
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
444
|
+
x(a.$slots, "optionFullscreen", K(J({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
432
445
|
]),
|
|
433
446
|
key: "7"
|
|
434
447
|
} : void 0
|
|
435
448
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : m("", !0),
|
|
436
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (
|
|
449
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (n(), c("div", {
|
|
437
450
|
key: 2,
|
|
438
451
|
ref_key: "chartLegend",
|
|
439
|
-
ref:
|
|
452
|
+
ref: ae
|
|
440
453
|
}, [
|
|
441
|
-
|
|
454
|
+
(n(), R(ze, {
|
|
455
|
+
key: `legend_top_${le.value}`,
|
|
442
456
|
legendSet: z.value,
|
|
443
|
-
config:
|
|
444
|
-
onClickMarker: l[0] || (l[0] = ({ legend: t }) =>
|
|
457
|
+
config: ke.value,
|
|
458
|
+
onClickMarker: l[0] || (l[0] = ({ legend: t }) => A(t.id))
|
|
445
459
|
}, {
|
|
446
|
-
item:
|
|
447
|
-
|
|
460
|
+
item: k(({ legend: t, index: o }) => [
|
|
461
|
+
u("div", {
|
|
448
462
|
"data-cy-legend-item": "",
|
|
449
|
-
onClick: (f) =>
|
|
450
|
-
style: r(`opacity:${
|
|
451
|
-
}, i(t.name) + ": " + i(h(
|
|
463
|
+
onClick: (f) => A(t.id),
|
|
464
|
+
style: r(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
|
|
465
|
+
}, i(t.name) + ": " + i(h(Z)(
|
|
452
466
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
453
467
|
t.value,
|
|
454
468
|
h(I)({
|
|
@@ -458,131 +472,131 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
458
472
|
r: e.value.style.chart.legend.roundingValue
|
|
459
473
|
}),
|
|
460
474
|
{ datapoint: t, seriesIndex: o }
|
|
461
|
-
)), 13,
|
|
475
|
+
)), 13, xt)
|
|
462
476
|
]),
|
|
463
477
|
_: 1
|
|
464
|
-
}, 8, ["legendSet", "config"])
|
|
478
|
+
}, 8, ["legendSet", "config"]))
|
|
465
479
|
], 512)) : m("", !0),
|
|
466
|
-
W.value ? (
|
|
480
|
+
W.value ? (n(), c("svg", {
|
|
467
481
|
key: 3,
|
|
468
|
-
xmlns: h(
|
|
469
|
-
class: D({ "vue-data-ui-fullscreen--on":
|
|
470
|
-
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${
|
|
482
|
+
xmlns: h(ut),
|
|
483
|
+
class: D({ "vue-data-ui-fullscreen--on": G.value, "vue-data-ui-fulscreen--off": !G.value }),
|
|
484
|
+
viewBox: `0 0 ${y.value.width <= 0 ? 10 : y.value.width} ${s.value.fullHeight <= 0 ? 10 : s.value.fullHeight}`,
|
|
471
485
|
style: r(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
472
486
|
}, [
|
|
473
|
-
(
|
|
487
|
+
(n(!0), c(U, null, H(B.value, (t, o) => (n(), c("linearGradient", {
|
|
474
488
|
x1: "0%",
|
|
475
489
|
y1: "0%",
|
|
476
490
|
x2: "100%",
|
|
477
491
|
y2: "0%",
|
|
478
492
|
id: `vertical_bar_gradient_${V.value}_${o}`
|
|
479
493
|
}, [
|
|
480
|
-
|
|
494
|
+
u("stop", {
|
|
481
495
|
offset: "0%",
|
|
482
496
|
"stop-color": t.color
|
|
483
|
-
}, null, 8,
|
|
484
|
-
|
|
497
|
+
}, null, 8, wt),
|
|
498
|
+
u("stop", {
|
|
485
499
|
offset: "100%",
|
|
486
|
-
"stop-color": `${h(
|
|
487
|
-
}, null, 8,
|
|
488
|
-
], 8,
|
|
489
|
-
(
|
|
490
|
-
|
|
491
|
-
x: h(S)(O.value ?
|
|
492
|
-
y:
|
|
500
|
+
"stop-color": `${h(nt)(t.color, 0.03)}${h(se)[100 - e.value.style.chart.layout.bars.gradientIntensity]}`
|
|
501
|
+
}, null, 8, Tt)
|
|
502
|
+
], 8, Ct))), 256)),
|
|
503
|
+
(n(!0), c(U, null, H(B.value, (t, o) => (n(), c("g", null, [
|
|
504
|
+
u("rect", {
|
|
505
|
+
x: h(S)(O.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : P(t.value) <= 0 ? 1e-4 : P(t.value)) : s.value.left),
|
|
506
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
493
507
|
width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
|
|
494
|
-
height:
|
|
508
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
495
509
|
fill: e.value.style.chart.layout.bars.underlayerColor,
|
|
496
510
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
497
511
|
class: D({ animated: e.value.useCssAnimation })
|
|
498
|
-
}, null, 10,
|
|
512
|
+
}, null, 10, Lt)
|
|
499
513
|
]))), 256)),
|
|
500
|
-
(
|
|
501
|
-
|
|
502
|
-
x: h(S)(O.value ?
|
|
503
|
-
y:
|
|
514
|
+
(n(!0), c(U, null, H(B.value, (t, o) => (n(), c("g", null, [
|
|
515
|
+
u("rect", {
|
|
516
|
+
x: h(S)(O.value ? s.value.left + s.value.width / 2 - (t.sign === 1 ? 0 : P(t.value) <= 0 ? 1e-4 : P(t.value)) : s.value.left),
|
|
517
|
+
y: s.value.top + (g.value + v.value) * o,
|
|
504
518
|
width: h(S)(P(t.value) <= 0 ? 1e-4 : P(t.value)),
|
|
505
|
-
height:
|
|
519
|
+
height: v.value <= 0 ? 1e-4 : v.value,
|
|
506
520
|
fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${V.value}_${o})` : `${t.color}${h(se)[e.value.style.chart.layout.bars.fillOpacity]}`,
|
|
507
521
|
rx: e.value.style.chart.layout.bars.borderRadius,
|
|
508
522
|
stroke: e.value.style.chart.layout.bars.useStroke ? t.color : "none",
|
|
509
523
|
"stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
|
|
510
524
|
class: D({ animated: e.value.useCssAnimation })
|
|
511
|
-
}, null, 10,
|
|
512
|
-
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (
|
|
525
|
+
}, null, 10, Nt),
|
|
526
|
+
(!t.isChild || t.isLastChild) && e.value.style.chart.layout.separators.show && o !== B.value.length - 1 ? (n(), c("line", {
|
|
513
527
|
key: 0,
|
|
514
528
|
x1: 0,
|
|
515
|
-
x2:
|
|
516
|
-
y1:
|
|
517
|
-
y2:
|
|
529
|
+
x2: s.value.left,
|
|
530
|
+
y1: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
|
|
531
|
+
y2: v.value + g.value / 2 + s.value.top + (g.value + v.value) * o,
|
|
518
532
|
stroke: e.value.style.chart.layout.separators.color,
|
|
519
533
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
520
534
|
"stroke-linecap": "round"
|
|
521
|
-
}, null, 8,
|
|
522
|
-
O.value && e.value.style.chart.layout.separators.show ? (
|
|
535
|
+
}, null, 8, Pt)) : m("", !0),
|
|
536
|
+
O.value && e.value.style.chart.layout.separators.show ? (n(), c("line", {
|
|
523
537
|
key: 1,
|
|
524
|
-
x1:
|
|
525
|
-
x2:
|
|
526
|
-
y1:
|
|
527
|
-
y2:
|
|
538
|
+
x1: s.value.left + s.value.width / 2,
|
|
539
|
+
x2: s.value.left + s.value.width / 2,
|
|
540
|
+
y1: s.value.top,
|
|
541
|
+
y2: s.value.bottom,
|
|
528
542
|
stroke: e.value.style.chart.layout.separators.color,
|
|
529
543
|
"stroke-width": e.value.style.chart.layout.separators.strokeWidth,
|
|
530
544
|
"stroke-linecap": "round"
|
|
531
|
-
}, null, 8,
|
|
532
|
-
|
|
533
|
-
x: O.value ?
|
|
534
|
-
y:
|
|
545
|
+
}, null, 8, St)) : m("", !0),
|
|
546
|
+
u("text", {
|
|
547
|
+
x: O.value ? s.value.left + s.value.width / 2 + (t.sign === 1 ? -12 : 12) + (t.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : Ue(t.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
|
|
548
|
+
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
|
|
535
549
|
"text-anchor": !O.value || t.sign === -1 ? "start" : "end",
|
|
536
550
|
"font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
|
|
537
551
|
fill: e.value.style.chart.layout.bars.dataLabels.color,
|
|
538
552
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
|
|
539
|
-
}, i(
|
|
540
|
-
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (
|
|
553
|
+
}, i(Ce(t.value, t, o, t.sign)), 9, Vt),
|
|
554
|
+
(t.isChild || !t.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (n(), c("text", {
|
|
541
555
|
key: 2,
|
|
542
556
|
"text-anchor": "end",
|
|
543
|
-
x:
|
|
544
|
-
y:
|
|
557
|
+
x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
|
|
558
|
+
y: s.value.top + (g.value + v.value) * o + v.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
|
|
545
559
|
"font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
|
|
546
560
|
fill: e.value.style.chart.layout.bars.nameLabels.color,
|
|
547
561
|
"font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
|
|
548
|
-
}, i(t.name), 9,
|
|
549
|
-
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (
|
|
562
|
+
}, i(t.name), 9, zt)) : m("", !0),
|
|
563
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), c("text", {
|
|
550
564
|
key: 3,
|
|
551
565
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
552
|
-
y:
|
|
566
|
+
y: E(t, o).y,
|
|
553
567
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
554
568
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
555
569
|
"font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
|
|
556
570
|
"text-anchor": "start"
|
|
557
|
-
}, i(
|
|
558
|
-
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (
|
|
571
|
+
}, i(E(t, o).name), 9, Ft)) : m("", !0),
|
|
572
|
+
t.isChild && t.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (n(), c("text", {
|
|
559
573
|
key: 4,
|
|
560
574
|
x: 3 + e.value.style.chart.layout.bars.parentLabels.offsetX,
|
|
561
|
-
y:
|
|
575
|
+
y: E(t, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
|
|
562
576
|
"font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
|
|
563
577
|
fill: e.value.style.chart.layout.bars.parentLabels.color,
|
|
564
578
|
"font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
|
|
565
579
|
"text-anchor": "start"
|
|
566
|
-
}, i(
|
|
567
|
-
|
|
580
|
+
}, i(Ce(E(t, o).value), E(t, o), o, t.parentSign || t.sign), 9, Mt)) : m("", !0),
|
|
581
|
+
u("rect", {
|
|
568
582
|
"data-cy-trap": "",
|
|
569
583
|
x: 0,
|
|
570
|
-
y:
|
|
584
|
+
y: s.value.top + (g.value + v.value) * o - g.value / 2,
|
|
571
585
|
width: y.value.width <= 0 ? 1e-4 : y.value.width,
|
|
572
|
-
height:
|
|
573
|
-
fill:
|
|
574
|
-
onMouseenter: (f) =>
|
|
586
|
+
height: v.value + g.value <= 0 ? 1e-4 : v.value + g.value,
|
|
587
|
+
fill: oe.value === t.id ? `${e.value.style.chart.layout.highlighter.color}${h(se)[e.value.style.chart.layout.highlighter.opacity]}` : "transparent",
|
|
588
|
+
onMouseenter: (f) => We(t, o),
|
|
575
589
|
onMouseleave: l[1] || (l[1] = (f) => {
|
|
576
|
-
|
|
590
|
+
Re.value = null, ee.value = !1, oe.value = null;
|
|
577
591
|
})
|
|
578
|
-
}, null, 40,
|
|
592
|
+
}, null, 40, It)
|
|
579
593
|
]))), 256)),
|
|
580
|
-
|
|
581
|
-
], 14,
|
|
582
|
-
a.$slots.watermark ? (
|
|
583
|
-
|
|
594
|
+
x(a.$slots, "svg", { svg: y.value }, void 0, !0)
|
|
595
|
+
], 14, $t)) : m("", !0),
|
|
596
|
+
a.$slots.watermark ? (n(), c("div", Bt, [
|
|
597
|
+
x(a.$slots, "watermark", K(J({ isPrinting: h(ve) || h(he) })), void 0, !0)
|
|
584
598
|
])) : m("", !0),
|
|
585
|
-
W.value ? m("", !0) : (
|
|
599
|
+
W.value ? m("", !0) : (n(), R(ft, {
|
|
586
600
|
key: 5,
|
|
587
601
|
config: {
|
|
588
602
|
type: "verticalBar",
|
|
@@ -597,21 +611,22 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
597
611
|
}
|
|
598
612
|
}
|
|
599
613
|
}, null, 8, ["config"])),
|
|
600
|
-
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (
|
|
614
|
+
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (n(), c("div", {
|
|
601
615
|
key: 6,
|
|
602
616
|
ref_key: "chartLegend",
|
|
603
|
-
ref:
|
|
617
|
+
ref: ae
|
|
604
618
|
}, [
|
|
605
|
-
|
|
619
|
+
(n(), R(ze, {
|
|
620
|
+
key: `legend_bottom_${le.value}`,
|
|
606
621
|
legendSet: z.value,
|
|
607
|
-
config:
|
|
608
|
-
onClickMarker: l[2] || (l[2] = ({ legend: t }) =>
|
|
622
|
+
config: ke.value,
|
|
623
|
+
onClickMarker: l[2] || (l[2] = ({ legend: t }) => A(t.id))
|
|
609
624
|
}, {
|
|
610
|
-
item:
|
|
611
|
-
|
|
612
|
-
onClick: (f) =>
|
|
613
|
-
style: r(`opacity:${
|
|
614
|
-
}, i(t.name) + ": " + i(h(
|
|
625
|
+
item: k(({ legend: t, index: o }) => [
|
|
626
|
+
u("div", {
|
|
627
|
+
onClick: (f) => A(t.id),
|
|
628
|
+
style: r(`opacity:${T.value.includes(t.id) ? 0.5 : 1}`)
|
|
629
|
+
}, i(t.name) + ": " + i(h(Z)(
|
|
615
630
|
e.value.style.chart.layout.bars.dataLabels.value.formatter,
|
|
616
631
|
t.value,
|
|
617
632
|
h(I)({
|
|
@@ -621,14 +636,14 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
621
636
|
r: e.value.style.chart.legend.roundingValue
|
|
622
637
|
}),
|
|
623
638
|
{ datapoint: t, seriesIndex: o }
|
|
624
|
-
)), 13,
|
|
639
|
+
)), 13, Ot)
|
|
625
640
|
]),
|
|
626
641
|
_: 1
|
|
627
|
-
}, 8, ["legendSet", "config"])
|
|
642
|
+
}, 8, ["legendSet", "config"]))
|
|
628
643
|
], 512)) : m("", !0),
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
show: $.value.showTooltip &&
|
|
644
|
+
x(a.$slots, "legend", { legend: z.value }, void 0, !0),
|
|
645
|
+
Se(yt, {
|
|
646
|
+
show: $.value.showTooltip && ee.value && T.value.length < C.dataset.length,
|
|
632
647
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
633
648
|
color: e.value.style.chart.tooltip.color,
|
|
634
649
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -638,19 +653,19 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
638
653
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
639
654
|
position: e.value.style.chart.tooltip.position,
|
|
640
655
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
641
|
-
parent:
|
|
642
|
-
content:
|
|
656
|
+
parent: X.value,
|
|
657
|
+
content: te.value,
|
|
643
658
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function"
|
|
644
659
|
}, {
|
|
645
|
-
"tooltip-before":
|
|
646
|
-
|
|
660
|
+
"tooltip-before": k(() => [
|
|
661
|
+
x(a.$slots, "tooltip-before", K(J({ ...ue.value })), void 0, !0)
|
|
647
662
|
]),
|
|
648
|
-
"tooltip-after":
|
|
649
|
-
|
|
663
|
+
"tooltip-after": k(() => [
|
|
664
|
+
x(a.$slots, "tooltip-after", K(J({ ...ue.value })), void 0, !0)
|
|
650
665
|
]),
|
|
651
666
|
_: 3
|
|
652
667
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
653
|
-
W.value ? (
|
|
668
|
+
W.value ? (n(), R(mt, {
|
|
654
669
|
key: 7,
|
|
655
670
|
hideDetails: "",
|
|
656
671
|
config: {
|
|
@@ -666,133 +681,133 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
666
681
|
}
|
|
667
682
|
}
|
|
668
683
|
}, {
|
|
669
|
-
content:
|
|
670
|
-
|
|
684
|
+
content: k(() => [
|
|
685
|
+
u("div", {
|
|
671
686
|
ref_key: "tableContainer",
|
|
672
|
-
ref:
|
|
687
|
+
ref: fe,
|
|
673
688
|
class: "vue-ui-vertical-bar-table"
|
|
674
689
|
}, [
|
|
675
|
-
|
|
676
|
-
|
|
690
|
+
u("div", Dt, [
|
|
691
|
+
u("div", {
|
|
677
692
|
role: "button",
|
|
678
693
|
tabindex: "0",
|
|
679
694
|
style: r(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
|
|
680
695
|
onClick: l[3] || (l[3] = (t) => $.value.showTable = !1),
|
|
681
|
-
onKeypress: l[4] || (l[4] =
|
|
696
|
+
onKeypress: l[4] || (l[4] = Qe((t) => $.value.showTable = !1, ["enter"]))
|
|
682
697
|
}, [
|
|
683
|
-
|
|
698
|
+
Se(bt, {
|
|
684
699
|
name: "close",
|
|
685
700
|
stroke: e.value.table.th.color,
|
|
686
701
|
"stroke-width": 2
|
|
687
702
|
}, null, 8, ["stroke"])
|
|
688
703
|
], 36),
|
|
689
|
-
|
|
704
|
+
u("div", {
|
|
690
705
|
style: { width: "100%", "container-type": "inline-size" },
|
|
691
|
-
class: D({ "vue-ui-responsive":
|
|
706
|
+
class: D({ "vue-ui-responsive": be.value })
|
|
692
707
|
}, [
|
|
693
|
-
|
|
694
|
-
|
|
708
|
+
u("table", Rt, [
|
|
709
|
+
u("caption", {
|
|
695
710
|
style: r({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
|
|
696
711
|
class: "vue-ui-data-table__caption"
|
|
697
712
|
}, [
|
|
698
|
-
|
|
699
|
-
e.value.style.chart.title.subtitle.text ? (
|
|
713
|
+
Ze(i(e.value.style.chart.title.text) + " ", 1),
|
|
714
|
+
e.value.style.chart.title.subtitle.text ? (n(), c("span", Xt, i(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
|
|
700
715
|
], 4),
|
|
701
|
-
|
|
702
|
-
|
|
716
|
+
u("thead", null, [
|
|
717
|
+
u("tr", {
|
|
703
718
|
role: "row",
|
|
704
719
|
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
|
|
705
720
|
}, [
|
|
706
|
-
(
|
|
721
|
+
(n(!0), c(U, null, H(w.value.head, (t) => (n(), c("th", {
|
|
707
722
|
style: r(`outline:${e.value.table.th.outline}`)
|
|
708
723
|
}, [
|
|
709
|
-
|
|
724
|
+
u("div", At, i(t), 1)
|
|
710
725
|
], 4))), 256))
|
|
711
726
|
], 4),
|
|
712
|
-
|
|
713
|
-
|
|
727
|
+
u("tr", null, [
|
|
728
|
+
u("th", {
|
|
714
729
|
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
715
730
|
}, null, 4),
|
|
716
|
-
|
|
731
|
+
u("th", {
|
|
717
732
|
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
718
|
-
}, "∑ " + i(e.value.table.td.prefix) + i(isNaN(
|
|
719
|
-
|
|
733
|
+
}, "∑ " + i(e.value.table.td.prefix) + i(isNaN(L.value) ? "" : L.value.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 5),
|
|
734
|
+
u("th", {
|
|
720
735
|
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
|
|
721
736
|
}, "100%", 4),
|
|
722
|
-
|
|
737
|
+
u("th", {
|
|
723
738
|
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
724
739
|
}, null, 4),
|
|
725
|
-
|
|
740
|
+
u("th", {
|
|
726
741
|
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
727
742
|
}, null, 4),
|
|
728
|
-
|
|
743
|
+
u("th", {
|
|
729
744
|
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
730
745
|
}, null, 4),
|
|
731
|
-
|
|
746
|
+
u("th", {
|
|
732
747
|
style: r(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
|
|
733
748
|
}, null, 4)
|
|
734
749
|
])
|
|
735
750
|
]),
|
|
736
|
-
|
|
737
|
-
(
|
|
751
|
+
u("tbody", null, [
|
|
752
|
+
(n(!0), c(U, null, H(w.value.body, (t, o) => (n(), c("tr", {
|
|
738
753
|
class: D({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
|
|
739
754
|
style: r(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
|
|
740
755
|
}, [
|
|
741
|
-
|
|
756
|
+
u("td", {
|
|
742
757
|
class: "vue-ui-data-table__tbody__td",
|
|
743
758
|
style: r(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
|
|
744
759
|
"data-cell": w.value.head[0] ?? ""
|
|
745
760
|
}, [
|
|
746
|
-
|
|
747
|
-
t.color ? (
|
|
761
|
+
u("div", Gt, [
|
|
762
|
+
t.color ? (n(), c("span", {
|
|
748
763
|
key: 0,
|
|
749
764
|
style: r(`color:${t.color};margin-right:3px`)
|
|
750
765
|
}, "⬤", 4)) : m("", !0),
|
|
751
|
-
|
|
766
|
+
u("span", null, i(t.parentName), 1)
|
|
752
767
|
])
|
|
753
|
-
], 12,
|
|
754
|
-
|
|
768
|
+
], 12, Et),
|
|
769
|
+
u("td", {
|
|
755
770
|
class: "vue-ui-data-table__tbody__td",
|
|
756
771
|
style: r(`outline:${e.value.table.td.outline}`),
|
|
757
772
|
"data-cell": w.value.head[1] ?? ""
|
|
758
773
|
}, [
|
|
759
|
-
|
|
760
|
-
], 12,
|
|
761
|
-
|
|
774
|
+
u("div", Ht, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(t.parentValue) ? "" : t.parentValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
|
|
775
|
+
], 12, Ut),
|
|
776
|
+
u("td", {
|
|
762
777
|
class: "vue-ui-data-table__tbody__td",
|
|
763
778
|
style: r(`outline:${e.value.table.td.outline}`),
|
|
764
779
|
"data-cell": w.value.head[2] ?? ""
|
|
765
780
|
}, [
|
|
766
|
-
|
|
767
|
-
], 12,
|
|
768
|
-
|
|
781
|
+
u("div", jt, i(["", NaN, void 0].includes(t.percentageToTotal) ? "" : `${(t.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
782
|
+
], 12, Wt),
|
|
783
|
+
u("td", {
|
|
769
784
|
class: "vue-ui-data-table__tbody__td",
|
|
770
785
|
style: r(`outline:${e.value.table.td.outline}`),
|
|
771
786
|
"data-cell": w.value.head[3] ?? ""
|
|
772
787
|
}, [
|
|
773
|
-
|
|
774
|
-
], 12,
|
|
775
|
-
|
|
788
|
+
u("div", qt, i(t.childName), 1)
|
|
789
|
+
], 12, Yt),
|
|
790
|
+
u("td", {
|
|
776
791
|
class: "vue-ui-data-table__tbody__td",
|
|
777
792
|
style: r(`outline:${e.value.table.td.outline}`),
|
|
778
793
|
"data-cell": w.value.head[4] ?? ""
|
|
779
794
|
}, [
|
|
780
|
-
|
|
781
|
-
], 12,
|
|
782
|
-
|
|
795
|
+
u("div", Jt, i(e.value.table.td.prefix) + i(["", NaN, void 0].includes(t.childValue) ? "" : t.childValue.toFixed(e.value.table.td.roundingValue)) + i(e.value.table.td.suffix), 1)
|
|
796
|
+
], 12, Kt),
|
|
797
|
+
u("td", {
|
|
783
798
|
class: "vue-ui-data-table__tbody__td",
|
|
784
799
|
style: r(`outline:${e.value.table.td.outline}`),
|
|
785
800
|
"data-cell": w.value.head[5] ?? ""
|
|
786
801
|
}, [
|
|
787
|
-
|
|
788
|
-
], 12,
|
|
789
|
-
|
|
802
|
+
u("div", Zt, i(["", NaN, void 0].includes(t.childPercentageToParent) ? "" : `${(t.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
803
|
+
], 12, Qt),
|
|
804
|
+
u("td", {
|
|
790
805
|
class: "vue-ui-data-table__tbody__td",
|
|
791
806
|
style: r(`outline:${e.value.table.td.outline}`),
|
|
792
807
|
"data-cell": w.value.head[6] ?? ""
|
|
793
808
|
}, [
|
|
794
|
-
|
|
795
|
-
], 12,
|
|
809
|
+
u("div", ta, i(["", NaN, void 0].includes(t.childPercentageToTotal) ? "" : `${(t.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
|
|
810
|
+
], 12, ea)
|
|
796
811
|
], 6))), 256))
|
|
797
812
|
])
|
|
798
813
|
])
|
|
@@ -802,9 +817,9 @@ const gt = ["id"], ft = ["onClick"], bt = ["xmlns", "viewBox"], mt = ["id"], _t
|
|
|
802
817
|
]),
|
|
803
818
|
_: 1
|
|
804
819
|
}, 8, ["config"])) : m("", !0)
|
|
805
|
-
], 14,
|
|
820
|
+
], 14, kt));
|
|
806
821
|
}
|
|
807
|
-
},
|
|
822
|
+
}, ga = /* @__PURE__ */ _t(aa, [["__scopeId", "data-v-d4a13ad8"]]);
|
|
808
823
|
export {
|
|
809
|
-
|
|
824
|
+
ga as default
|
|
810
825
|
};
|