vue-data-ui 2.3.61 → 2.3.63
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-B5nYwPUt.js → Arrow-CBx1Hj4I.js} +1 -1
- package/dist/{Arrow-Dv_tprAO.cjs → Arrow-fP0md3L3.cjs} +1 -1
- package/dist/{BaseIcon-DUPLRuLO.js → BaseIcon-CS18qRiy.js} +1 -1
- package/dist/{BaseIcon-aPcCSO_Z.cjs → BaseIcon-O8jJvy48.cjs} +1 -1
- package/dist/{DataTable-NUzEZXWt.js → DataTable-BGJ2mVxG.js} +2 -2
- package/dist/{DataTable-B6xCb-DR.cjs → DataTable-CSEiZDAb.cjs} +1 -1
- package/dist/{Legend-ePmJ_YIA.cjs → Legend-DuuSl2rJ.cjs} +1 -1
- package/dist/{Legend-C3tseguI.js → Legend-UWyvC57K.js} +1 -1
- package/dist/{Shape-DAe5uqIA.cjs → Shape-Dsx4SQVn.cjs} +1 -1
- package/dist/{Shape-BPcWPP9D.js → Shape-HfEpP-Tk.js} +1 -1
- package/dist/{Slicer-CmHwU6if.js → Slicer-Bk3Rt85L.js} +9 -9
- package/dist/{Slicer-BJs52Jle.cjs → Slicer-Cf74aFVz.cjs} +1 -1
- package/dist/{Title-BAQrVaNA.js → Title-CPZstF2C.js} +1 -1
- package/dist/{Title-B_p983os.cjs → Title-PZ6S96pU.cjs} +1 -1
- package/dist/{Tooltip-C2dhDgoh.cjs → Tooltip-BoIYPSX3.cjs} +1 -1
- package/dist/{Tooltip-B73tTE2v.js → Tooltip-CBmmiqKr.js} +5 -5
- package/dist/{index-CwG--L4Z.js → index-C_05i_JG.js} +578 -526
- package/dist/{index-nPEJmXmf.cjs → index-NNZeHOBS.cjs} +4 -4
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-TbnnNrH2.cjs → useNestedProp-CPsbJAGj.cjs} +1 -1
- package/dist/{useNestedProp-BqwYEJGM.js → useNestedProp-DLnT0Wtg.js} +1 -1
- package/dist/{usePrinter-D012Olnq.cjs → usePrinter-BLbY8qGZ.cjs} +1 -1
- package/dist/{usePrinter-Do9tGYem.js → usePrinter-DOhlzlnx.js} +1 -1
- package/dist/{vue-data-ui-DQAJDvpX.cjs → vue-data-ui-D5aG0WkE.cjs} +1 -1
- package/dist/{vue-data-ui-ORLyt-v3.js → vue-data-ui-vqnxkVKv.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +7 -7
- package/dist/{vue-ui-3d-bar-BRbooRg3.cjs → vue-ui-3d-bar-Cez69HMH.cjs} +1 -1
- package/dist/{vue-ui-3d-bar--ztApFzW.js → vue-ui-3d-bar-b7Pu7sfL.js} +7 -7
- package/dist/{vue-ui-accordion-CHL4xuW4.cjs → vue-ui-accordion-CcdyvXrp.cjs} +1 -1
- package/dist/{vue-ui-accordion-Be_wWB1T.js → vue-ui-accordion-rGJVvi_V.js} +3 -3
- package/dist/vue-ui-age-pyramid-B6LKyKjc.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-DLIladXC.js → vue-ui-age-pyramid-CH1Vj2R6.js} +226 -226
- package/dist/{vue-ui-annotator-CS2d8F8x.cjs → vue-ui-annotator-BfmMNM_X.cjs} +1 -1
- package/dist/{vue-ui-annotator-Bxrjl1nz.js → vue-ui-annotator-CTio5IiK.js} +1 -1
- package/dist/{vue-ui-candlestick-BppLVU6c.js → vue-ui-candlestick-C4kT9W0j.js} +158 -158
- package/dist/{vue-ui-candlestick-tumv-lhv.cjs → vue-ui-candlestick-DvX9Jxoi.cjs} +2 -2
- package/dist/{vue-ui-carousel-table-BsFNypM6.cjs → vue-ui-carousel-table-CMs7scX3.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BnOsmGVc.js → vue-ui-carousel-table-Df2HHk0v.js} +4 -4
- package/dist/{vue-ui-chestnut-DFb7M_SC.js → vue-ui-chestnut-BKTnDElg.js} +65 -64
- package/dist/{vue-ui-chestnut-tK8ebPQM.cjs → vue-ui-chestnut-CCw8h0_m.cjs} +3 -3
- package/dist/{vue-ui-cursor-D-eRMlWI.cjs → vue-ui-cursor-C-8bpiuy.cjs} +1 -1
- package/dist/{vue-ui-cursor-CYk61ZVK.js → vue-ui-cursor-DOOlFN5D.js} +2 -2
- package/dist/{vue-ui-dashboard-Cbk74q7K.cjs → vue-ui-dashboard-B_h8KxOx.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BomFWtsP.js → vue-ui-dashboard-D7U1UkAh.js} +2 -2
- package/dist/{vue-ui-digits-Ch9quA4D.js → vue-ui-digits-DmxQgABv.js} +2 -2
- package/dist/{vue-ui-digits-DWJOvgi2.cjs → vue-ui-digits-DoQoNGGx.cjs} +1 -1
- package/dist/{vue-ui-donut-BIMgi_Qw.cjs → vue-ui-donut-DdnwGXq6.cjs} +1 -1
- package/dist/vue-ui-donut-evolution-DsRAZLMN.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-ClNciLi2.js → vue-ui-donut-evolution-uPCTV6E6.js} +95 -95
- package/dist/{vue-ui-donut-Ctzc7e6_.js → vue-ui-donut-t5zf9Lm5.js} +42 -42
- package/dist/{vue-ui-dumbbell-IBrAHdlc.js → vue-ui-dumbbell-BCdxqHVR.js} +109 -107
- package/dist/vue-ui-dumbbell-D1Ak2pEE.cjs +9 -0
- package/dist/vue-ui-flow-CLqm5nkx.cjs +1 -0
- package/dist/vue-ui-flow-J1SmdKkh.js +469 -0
- package/dist/vue-ui-galaxy-CSXbhXBe.cjs +1 -0
- package/dist/{vue-ui-galaxy-BBKU6WqV.js → vue-ui-galaxy-DNMbyKNg.js} +91 -91
- package/dist/{vue-ui-gauge-CDpN6D_X.js → vue-ui-gauge-CC_9cSwj.js} +84 -84
- package/dist/vue-ui-gauge-O3ntKI31.cjs +1 -0
- package/dist/{vue-ui-gizmo-BS-olrbu.js → vue-ui-gizmo-C5vGMHUU.js} +2 -2
- package/dist/{vue-ui-gizmo-Dyi4DWSA.cjs → vue-ui-gizmo-qrJt0nH6.cjs} +1 -1
- package/dist/vue-ui-heatmap-BjimHnMb.cjs +1 -0
- package/dist/{vue-ui-heatmap-Bonl3GBj.js → vue-ui-heatmap-ByxLZuR5.js} +257 -239
- package/dist/{vue-ui-kpi-MeC195T8.js → vue-ui-kpi-DdNQlVCe.js} +3 -3
- package/dist/{vue-ui-kpi-ChD3Gh4P.cjs → vue-ui-kpi-eyxMedig.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-NiTij5XQ.cjs → vue-ui-mini-loader-B5ykH9BF.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-l2G4D7lJ.js → vue-ui-mini-loader-C05VGcNr.js} +2 -2
- package/dist/{vue-ui-molecule-C1dO-Ony.js → vue-ui-molecule-DI0oHPT5.js} +20 -20
- package/dist/{vue-ui-molecule-pXZ3aWlr.cjs → vue-ui-molecule-LZ1SRkgK.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-C3Gv4iYr.cjs → vue-ui-mood-radar-BJqk2oK_.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BVpJ3O4m.js → vue-ui-mood-radar-DIDqiVMf.js} +9 -9
- package/dist/{vue-ui-nested-donuts-Dmeqsml8.js → vue-ui-nested-donuts-BkSiryoB.js} +120 -120
- package/dist/{vue-ui-nested-donuts-Cwk0M7SE.cjs → vue-ui-nested-donuts-Nggnu_iK.cjs} +2 -2
- package/dist/{vue-ui-onion-BmJO696O.cjs → vue-ui-onion-B29Cxru2.cjs} +1 -1
- package/dist/{vue-ui-onion-Ogj_rMlX.js → vue-ui-onion-xiubSG3j.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-BBBuJdGN.js → vue-ui-parallel-coordinate-plot-DjmOGHVx.js} +69 -69
- package/dist/{vue-ui-parallel-coordinate-plot-Cqm7uMBs.cjs → vue-ui-parallel-coordinate-plot-DqrkSOo6.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BJtgJ_lu.js → vue-ui-quadrant-Cc79ggIy.js} +36 -36
- package/dist/{vue-ui-quadrant-DcqQwIsD.cjs → vue-ui-quadrant-Df_2X-ca.cjs} +1 -1
- package/dist/vue-ui-quick-chart-BnBGXd4d.cjs +15 -0
- package/dist/{vue-ui-quick-chart-D7dCfDSL.js → vue-ui-quick-chart-t_cPx4OT.js} +549 -515
- package/dist/{vue-ui-radar-BMxzhMFJ.js → vue-ui-radar-C3qEonKT.js} +59 -59
- package/dist/vue-ui-radar-D3W9B9JE.cjs +1 -0
- package/dist/{vue-ui-rating-DSgHml7s.js → vue-ui-rating-DffL7w-I.js} +9 -9
- package/dist/{vue-ui-rating-buop0ul0.cjs → vue-ui-rating-aOa6zIr5.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BACMnvv8.cjs → vue-ui-relation-circle-BZ7r7Unx.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CdHbZK0u.js → vue-ui-relation-circle-D0zUfd3f.js} +5 -5
- package/dist/vue-ui-rings-BjWAtE4x.cjs +2 -0
- package/dist/{vue-ui-rings-BBnzxfo2.js → vue-ui-rings-PHbuqfoT.js} +188 -185
- package/dist/{vue-ui-scatter-sF3c5eqM.cjs → vue-ui-scatter-DMJ77QYr.cjs} +1 -1
- package/dist/{vue-ui-scatter-DYXhTzch.js → vue-ui-scatter-DuCnr2yB.js} +378 -375
- package/dist/{vue-ui-screenshot-D-6YvKkW.cjs → vue-ui-screenshot-DBuA631a.cjs} +1 -1
- package/dist/{vue-ui-screenshot-B4WOalT6.js → vue-ui-screenshot-DbwRrmHv.js} +6 -6
- package/dist/{vue-ui-skeleton-D6wHGzmu.cjs → vue-ui-skeleton-CI4t8LHn.cjs} +1 -1
- package/dist/{vue-ui-skeleton-ClzVF3vm.js → vue-ui-skeleton-CcJR2m18.js} +23 -23
- package/dist/{vue-ui-smiley-B1cqwAN5.js → vue-ui-smiley-2rJFSSZS.js} +2 -2
- package/dist/{vue-ui-smiley-CoVnFdkD.cjs → vue-ui-smiley-C7KBm0fz.cjs} +1 -1
- package/dist/vue-ui-spark-trend-DY_sfo6o.js +251 -0
- package/dist/vue-ui-spark-trend-VH2nwGJf.cjs +1 -0
- package/dist/{vue-ui-sparkbar-BOzSGZak.js → vue-ui-sparkbar-B0O77PcV.js} +3 -3
- package/dist/{vue-ui-sparkbar-CpIfPtyd.cjs → vue-ui-sparkbar-Bs8ZQem1.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-4hk6ZJwJ.js → vue-ui-sparkgauge-B5KqrHQZ.js} +64 -64
- package/dist/vue-ui-sparkgauge-Cd7b4u0z.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-VCAQZfgG.cjs → vue-ui-sparkhistogram-CEWCLohQ.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-8degKlMU.js → vue-ui-sparkhistogram-DwRPeG7H.js} +4 -4
- package/dist/{vue-ui-sparkline-DsUwWV4z.cjs → vue-ui-sparkline-CuFtIMpq.cjs} +1 -1
- package/dist/{vue-ui-sparkline-uBkd9kR2.js → vue-ui-sparkline-W5bZnpQo.js} +25 -25
- package/dist/{vue-ui-sparkstackbar-Cpq2lHcl.js → vue-ui-sparkstackbar-9hBQZ0lZ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DyNfMGkM.cjs → vue-ui-sparkstackbar-TyVFUMtT.cjs} +1 -1
- package/dist/{vue-ui-stackbar-lr_qudpY.js → vue-ui-stackbar-BlkgM0nD.js} +35 -35
- package/dist/{vue-ui-stackbar-jQe7BneA.cjs → vue-ui-stackbar-CwVcupxt.cjs} +1 -1
- package/dist/vue-ui-strip-plot-C1GfRjXJ.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DwvlcnHB.js → vue-ui-strip-plot-CBfqkkY6.js} +76 -75
- package/dist/{vue-ui-table-Dhj4_z9d.js → vue-ui-table-B8cvvLk8.js} +1 -1
- package/dist/{vue-ui-table-D5ybohqp.cjs → vue-ui-table-CmguTt4I.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CChLZdxj.cjs → vue-ui-table-heatmap-DMnh8-b1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BY65DeiH.js → vue-ui-table-heatmap-wVWltZ2x.js} +26 -26
- package/dist/{vue-ui-table-sparkline-CvMETVJ1.js → vue-ui-table-sparkline-_POawNEL.js} +13 -13
- package/dist/{vue-ui-table-sparkline-Cmy6PcPI.cjs → vue-ui-table-sparkline-wtIFAc20.cjs} +1 -1
- package/dist/{vue-ui-thermometer-BIN2ofrh.js → vue-ui-thermometer-CFJqd-VY.js} +116 -116
- package/dist/vue-ui-thermometer-D6SnFJb1.cjs +1 -0
- package/dist/{vue-ui-timer-DBcOT10h.cjs → vue-ui-timer-194y0LUC.cjs} +1 -1
- package/dist/{vue-ui-timer-DoSqphvk.js → vue-ui-timer-D8dgDAfe.js} +4 -4
- package/dist/vue-ui-tiremarks-BM28JsxE.cjs +1 -0
- package/dist/{vue-ui-tiremarks-DRTLsMWt.js → vue-ui-tiremarks-CH1BFqbO.js} +71 -71
- package/dist/vue-ui-treemap-BIpIg3Qa.cjs +1 -0
- package/dist/{vue-ui-treemap-D8-D_wfq.js → vue-ui-treemap-DHsoVY5n.js} +89 -82
- package/dist/{vue-ui-vertical-bar-zUaXmUpB.js → vue-ui-vertical-bar-DNODBoSo.js} +246 -242
- package/dist/vue-ui-vertical-bar-Du8ikoWM.cjs +4 -0
- package/dist/{vue-ui-waffle-CztGir7e.js → vue-ui-waffle-C8hMAeMl.js} +44 -44
- package/dist/{vue-ui-waffle-RCqpPcSF.cjs → vue-ui-waffle-_Bi9MRx8.cjs} +1 -1
- package/dist/{vue-ui-wheel-CBqL8FKG.cjs → vue-ui-wheel-BZxcRGJX.cjs} +1 -1
- package/dist/{vue-ui-wheel-BQ2a-ZyV.js → vue-ui-wheel-CmZKsfKj.js} +5 -5
- package/dist/{vue-ui-word-cloud-CKUGIGnW.js → vue-ui-word-cloud-fLf-x06l.js} +68 -65
- package/dist/vue-ui-word-cloud-nHVG2yid.cjs +1 -0
- package/dist/{vue-ui-xy-Dsa2tfKS.js → vue-ui-xy-CPln5bGQ.js} +82 -82
- package/dist/vue-ui-xy-canvas-Z1tJJV5-.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-JeNqaB_p.js → vue-ui-xy-canvas-k30CEsKi.js} +122 -121
- package/dist/vue-ui-xy-qxQy2sOl.cjs +3 -0
- package/package.json +1 -1
- package/dist/vue-ui-age-pyramid-BILMRRi1.cjs +0 -1
- package/dist/vue-ui-donut-evolution-K7LUkN6q.cjs +0 -1
- package/dist/vue-ui-dumbbell-HVpK20XO.cjs +0 -9
- package/dist/vue-ui-flow-CiXnGdNb.js +0 -465
- package/dist/vue-ui-flow-ClV2yd8Y.cjs +0 -1
- package/dist/vue-ui-galaxy-CMCXCWDA.cjs +0 -1
- package/dist/vue-ui-gauge-DwCGaX1h.cjs +0 -1
- package/dist/vue-ui-heatmap-WFNo-GFX.cjs +0 -1
- package/dist/vue-ui-quick-chart-D9zFHA0L.cjs +0 -15
- package/dist/vue-ui-radar-D8ik0Fqr.cjs +0 -1
- package/dist/vue-ui-rings-Dn5opKNy.cjs +0 -2
- package/dist/vue-ui-spark-trend-DnO4DW0n.cjs +0 -1
- package/dist/vue-ui-spark-trend-HioE2zeC.js +0 -251
- package/dist/vue-ui-sparkgauge-C2_I0tyO.cjs +0 -1
- package/dist/vue-ui-strip-plot-BMKaWqD4.cjs +0 -1
- package/dist/vue-ui-thermometer-Bfp-FwRE.cjs +0 -1
- package/dist/vue-ui-tiremarks-BeBJHz2R.cjs +0 -1
- package/dist/vue-ui-treemap-DqBukSj6.cjs +0 -1
- package/dist/vue-ui-vertical-bar-BM3aaSuB.cjs +0 -4
- package/dist/vue-ui-word-cloud-BbnU0d3E.cjs +0 -1
- package/dist/vue-ui-xy-BU0fCkSk.cjs +0 -3
- package/dist/vue-ui-xy-canvas-IaIARWWS.cjs +0 -9
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as m, ref as g, onMounted as Q, onBeforeUnmount as
|
|
2
|
-
import { u as
|
|
1
|
+
import { computed as m, ref as g, onMounted as Q, onBeforeUnmount as _e, openBlock as o, createElementBlock as r, normalizeClass as ee, normalizeStyle as D, createVNode as te, createCommentVNode as f, createBlock as F, unref as d, createSlots as xe, withCtx as _, renderSlot as C, normalizeProps as le, guardReactiveProps as ae, Fragment as w, renderList as $, createElementVNode as n, toDisplayString as L, createTextVNode as se, nextTick as ke } from "vue";
|
|
2
|
+
import { u as Ce, c as oe, t as we, o as $e, e as re, g as Le, s as ne, B as ze, f as z, X as ue, i as E, l as ie, h as ce, q as Xe, r as Ne } from "./index-C_05i_JG.js";
|
|
3
3
|
import { t as Ae, u as Se } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
4
|
+
import { _ as Te } from "./Title-CPZstF2C.js";
|
|
5
|
+
import { u as Pe, U as Ge } from "./usePrinter-DOhlzlnx.js";
|
|
6
|
+
import { D as Ie } from "./DataTable-BGJ2mVxG.js";
|
|
7
|
+
import Me from "./vue-ui-skeleton-CcJR2m18.js";
|
|
8
|
+
import { L as De } from "./Legend-UWyvC57K.js";
|
|
9
|
+
import Fe from "./vue-ui-accordion-rGJVvi_V.js";
|
|
10
|
+
import { u as de } from "./useNestedProp-DLnT0Wtg.js";
|
|
11
|
+
import { _ as Oe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Ve = ["id"], Ee = ["xmlns", "viewBox"], We = { key: 0 }, He = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Be = { key: 1 }, Re = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ue = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], je = { key: 2 }, qe = ["x", "y", "font-size", "fill", "font-weight"], Ye = ["x", "y", "font-size", "fill"], Ze = { key: 3 }, Je = ["x", "y", "font-size", "fill", "font-weight"], Ke = ["id"], Qe = ["stop-color"], et = ["stop-color"], tt = ["stop-color"], lt = ["id"], at = ["stop-color"], st = ["stop-color"], ot = ["stop-color"], rt = ["id"], nt = ["stop-color"], ut = ["stop-color"], it = ["id"], ct = ["stop-color"], dt = ["stop-color"], vt = { key: 0 }, ht = ["d", "fill"], yt = { key: 1 }, bt = ["x", "y", "height", "width", "fill"], ft = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], mt = { key: 2 }, pt = ["x", "y", "fill", "font-size"], _t = { key: 3 }, xt = ["x", "y", "fill", "font-size"], kt = {
|
|
13
13
|
key: 3,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, Ct = ["xmlns", "height", "width"], wt = ["fill"], $t = ["innerHTML"], Lt = {
|
|
16
16
|
__name: "vue-ui-dumbbell",
|
|
17
17
|
props: {
|
|
18
18
|
config: {
|
|
@@ -29,32 +29,32 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectDatapoint"],
|
|
32
|
-
setup(
|
|
33
|
-
const p =
|
|
32
|
+
setup(ve, { expose: he, emit: zt }) {
|
|
33
|
+
const p = ve, { vue_ui_dumbbell: ye } = Ce(), X = m({
|
|
34
34
|
get() {
|
|
35
35
|
return !!p.dataset && p.dataset.length;
|
|
36
36
|
},
|
|
37
37
|
set(l) {
|
|
38
38
|
return l;
|
|
39
39
|
}
|
|
40
|
-
}), v = g(oe()), W = g(0),
|
|
41
|
-
const l =
|
|
40
|
+
}), v = g(oe()), W = g(0), A = g(null), H = g(null), B = g(null), e = m(() => {
|
|
41
|
+
const l = de({
|
|
42
42
|
userConfig: p.config,
|
|
43
|
-
defaultConfig:
|
|
43
|
+
defaultConfig: ye
|
|
44
44
|
});
|
|
45
45
|
return l.theme ? {
|
|
46
|
-
...
|
|
47
|
-
userConfig:
|
|
46
|
+
...de({
|
|
47
|
+
userConfig: we.vue_ui_dumbbell[l.theme] || p.config,
|
|
48
48
|
defaultConfig: l
|
|
49
49
|
})
|
|
50
50
|
} : l;
|
|
51
|
-
}),
|
|
51
|
+
}), S = g(null);
|
|
52
52
|
Q(() => {
|
|
53
|
-
if (
|
|
53
|
+
if ($e(p.dataset) ? re({
|
|
54
54
|
componentName: "VueUiDumbbell",
|
|
55
55
|
type: "dataset"
|
|
56
56
|
}) : p.dataset.forEach((l, u) => {
|
|
57
|
-
|
|
57
|
+
Le({
|
|
58
58
|
datasetObject: l,
|
|
59
59
|
requiredAttributes: ["name", "start", "end"]
|
|
60
60
|
}).forEach((t) => {
|
|
@@ -68,29 +68,31 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
68
68
|
}), e.value.responsive) {
|
|
69
69
|
const l = Ae(() => {
|
|
70
70
|
const { width: u, height: t } = Se({
|
|
71
|
-
chart:
|
|
71
|
+
chart: A.value,
|
|
72
72
|
title: e.value.style.chart.title.text ? H.value : null,
|
|
73
|
-
legend: e.value.style.chart.legend.show ?
|
|
73
|
+
legend: e.value.style.chart.legend.show ? B.value : null
|
|
74
74
|
});
|
|
75
75
|
P.value = u, h.value = t / p.dataset.length, y.value = G();
|
|
76
76
|
});
|
|
77
|
-
|
|
77
|
+
S.value = new ResizeObserver(l), S.value.observe(A.value.parentNode);
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
80
|
-
|
|
79
|
+
}), _e(() => {
|
|
80
|
+
S.value && S.value.disconnect();
|
|
81
81
|
});
|
|
82
|
-
const { isPrinting:
|
|
82
|
+
const { isPrinting: R, isImaging: U, generatePdf: j, generateImage: q } = Pe({
|
|
83
83
|
elementId: `dumbbell_${v.value}`,
|
|
84
84
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell"
|
|
85
85
|
}), T = g({
|
|
86
86
|
showTable: e.value.table.show
|
|
87
87
|
}), x = m(() => p.dataset.map((l, u) => ({
|
|
88
88
|
...l,
|
|
89
|
+
start: ne(l.start),
|
|
90
|
+
end: ne(l.end),
|
|
89
91
|
id: oe()
|
|
90
92
|
}))), O = m(() => ({
|
|
91
93
|
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
92
94
|
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
93
|
-
})), c = m(() =>
|
|
95
|
+
})), c = m(() => ze(O.value.min < 0 ? O.value.min : 0, O.value.max, e.value.style.chart.grid.scaleSteps)), h = g(e.value.style.chart.rowHeight), P = g(e.value.style.chart.width), a = m(() => {
|
|
94
96
|
const l = h.value, u = e.value.style.chart.padding.left + e.value.style.chart.padding.right + P.value, t = e.value.style.chart.padding.top + e.value.style.chart.padding.bottom + l * p.dataset.length, s = c.value.ticks.length * (P.value / c.value.ticks.length);
|
|
95
97
|
return {
|
|
96
98
|
left: e.value.style.chart.padding.left,
|
|
@@ -118,13 +120,13 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
118
120
|
};
|
|
119
121
|
});
|
|
120
122
|
}
|
|
121
|
-
const y = g([]), Y = g(null),
|
|
123
|
+
const y = g([]), Y = g(null), be = m(() => x.value.map((l) => l.end).reduce((l, u) => l + u, 0));
|
|
122
124
|
Q(() => {
|
|
123
125
|
y.value = G();
|
|
124
126
|
let l = y.value.map((t) => t.start).reduce((t, s) => t + s, 0);
|
|
125
127
|
function u() {
|
|
126
128
|
const t = x.value.map((s) => s.end - s.start);
|
|
127
|
-
l >=
|
|
129
|
+
l >= be.value ? (cancelAnimationFrame(Y.value), y.value = G()) : (y.value = y.value.map((s, i) => {
|
|
128
130
|
s.endVal += t[i] * (e.value.animationSpeed / 100);
|
|
129
131
|
const b = a.value.left + (s.start + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * a.value.widthPlotReference, M = a.value.left + (s.endVal + Math.abs(c.value.min)) / (c.value.max + Math.abs(c.value.min)) * a.value.widthPlotReference, V = b + (M - b) / 2;
|
|
130
132
|
return {
|
|
@@ -142,7 +144,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
142
144
|
const Z = m(() => [
|
|
143
145
|
{ name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${v.value})` : e.value.style.chart.plots.startColor },
|
|
144
146
|
{ name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${v.value})` : e.value.style.chart.plots.endColor }
|
|
145
|
-
]),
|
|
147
|
+
]), fe = m(() => ({
|
|
146
148
|
cy: "donut-div-legend",
|
|
147
149
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
148
150
|
color: e.value.style.chart.legend.color,
|
|
@@ -175,7 +177,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
175
177
|
v: k.value.body[b].end,
|
|
176
178
|
s: e.value.style.chart.labels.suffix,
|
|
177
179
|
r: e.value.table.td.roundingValue
|
|
178
|
-
}),
|
|
180
|
+
}), pe = z({
|
|
179
181
|
v: 100 * (k.value.body[b].end / k.value.body[b].start - 1),
|
|
180
182
|
s: "%",
|
|
181
183
|
r: e.value.table.td.roundingPercentage
|
|
@@ -184,7 +186,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
184
186
|
{ name: i.name },
|
|
185
187
|
M,
|
|
186
188
|
V,
|
|
187
|
-
|
|
189
|
+
pe
|
|
188
190
|
];
|
|
189
191
|
}), t = {
|
|
190
192
|
th: {
|
|
@@ -212,33 +214,33 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
212
214
|
};
|
|
213
215
|
});
|
|
214
216
|
function J() {
|
|
215
|
-
|
|
217
|
+
ke(() => {
|
|
216
218
|
const l = k.value.head.map((s, i) => [[
|
|
217
219
|
s.name
|
|
218
|
-
], [k.value.body[i].start], [k.value.body[i].end]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t =
|
|
219
|
-
|
|
220
|
+
], [k.value.body[i].start], [k.value.body[i].end]]), u = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(l), t = Xe(u);
|
|
221
|
+
Ne({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
220
222
|
});
|
|
221
223
|
}
|
|
222
|
-
const
|
|
223
|
-
function
|
|
224
|
-
|
|
224
|
+
const N = g(!1);
|
|
225
|
+
function ge(l) {
|
|
226
|
+
N.value = l, W.value += 1;
|
|
225
227
|
}
|
|
226
|
-
function
|
|
228
|
+
function me() {
|
|
227
229
|
return y.value;
|
|
228
230
|
}
|
|
229
231
|
function K() {
|
|
230
232
|
T.value.showTable = !T.value.showTable;
|
|
231
233
|
}
|
|
232
|
-
return
|
|
233
|
-
getData:
|
|
234
|
+
return he({
|
|
235
|
+
getData: me,
|
|
234
236
|
generatePdf: j,
|
|
235
237
|
generateCsv: J,
|
|
236
238
|
generateImage: q,
|
|
237
239
|
toggleTable: K
|
|
238
240
|
}), (l, u) => (o(), r("div", {
|
|
239
241
|
ref_key: "dumbbellChart",
|
|
240
|
-
ref:
|
|
241
|
-
class: ee(`vue-ui-dumbbell ${
|
|
242
|
+
ref: A,
|
|
243
|
+
class: ee(`vue-ui-dumbbell ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
242
244
|
style: D(`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%" : ""}`),
|
|
243
245
|
id: `dumbbell_${v.value}`
|
|
244
246
|
}, [
|
|
@@ -248,7 +250,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
248
250
|
ref: H,
|
|
249
251
|
style: D(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
250
252
|
}, [
|
|
251
|
-
te(
|
|
253
|
+
te(Te, {
|
|
252
254
|
config: {
|
|
253
255
|
title: {
|
|
254
256
|
cy: "donut-div-title",
|
|
@@ -261,12 +263,12 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
261
263
|
}
|
|
262
264
|
}, null, 8, ["config"])
|
|
263
265
|
], 4)) : f("", !0),
|
|
264
|
-
e.value.userOptions.show && X.value ? (o(), F(
|
|
266
|
+
e.value.userOptions.show && X.value ? (o(), F(Ge, {
|
|
265
267
|
ref: "details",
|
|
266
268
|
key: `user_option_${W.value}`,
|
|
267
269
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
268
270
|
color: e.value.style.chart.color,
|
|
269
|
-
isPrinting: d(
|
|
271
|
+
isPrinting: d(R),
|
|
270
272
|
isImaging: d(U),
|
|
271
273
|
uid: v.value,
|
|
272
274
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -274,15 +276,15 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
274
276
|
hasImg: e.value.userOptions.buttons.img,
|
|
275
277
|
hasTable: e.value.userOptions.buttons.table,
|
|
276
278
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
277
|
-
isFullscreen:
|
|
279
|
+
isFullscreen: N.value,
|
|
278
280
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
279
|
-
chartElement:
|
|
280
|
-
onToggleFullscreen:
|
|
281
|
+
chartElement: A.value,
|
|
282
|
+
onToggleFullscreen: ge,
|
|
281
283
|
onGeneratePdf: d(j),
|
|
282
284
|
onGenerateCsv: J,
|
|
283
285
|
onGenerateImage: d(q),
|
|
284
286
|
onToggleTable: K
|
|
285
|
-
},
|
|
287
|
+
}, xe({ _: 2 }, [
|
|
286
288
|
l.$slots.optionPdf ? {
|
|
287
289
|
name: "optionPdf",
|
|
288
290
|
fn: _(() => [
|
|
@@ -321,12 +323,12 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
321
323
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
322
324
|
X.value ? (o(), r("svg", {
|
|
323
325
|
key: 2,
|
|
324
|
-
xmlns: d(
|
|
325
|
-
class: ee({ "vue-data-ui-fullscreen--on":
|
|
326
|
+
xmlns: d(ue),
|
|
327
|
+
class: ee({ "vue-data-ui-fullscreen--on": N.value, "vue-data-ui-fulscreen--off": !N.value }),
|
|
326
328
|
viewBox: `0 0 ${a.value.absoluteWidth <= 0 ? 10 : a.value.absoluteWidth} ${a.value.absoluteHeight <= 0 ? 10 : a.value.absoluteHeight}`,
|
|
327
329
|
style: D(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
328
330
|
}, [
|
|
329
|
-
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g",
|
|
331
|
+
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", We, [
|
|
330
332
|
(o(!0), r(w, null, $(c.value.ticks, (t, s) => (o(), r("line", {
|
|
331
333
|
x1: a.value.left + s * a.value.width / (c.value.ticks.length - 1),
|
|
332
334
|
x2: a.value.left + s * a.value.width / (c.value.ticks.length - 1),
|
|
@@ -335,9 +337,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
335
337
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
336
338
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
337
339
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
338
|
-
}, null, 8,
|
|
340
|
+
}, null, 8, He))), 256))
|
|
339
341
|
])) : f("", !0),
|
|
340
|
-
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g",
|
|
342
|
+
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", Be, [
|
|
341
343
|
(o(!0), r(w, null, $(x.value, (t, s) => (o(), r("line", {
|
|
342
344
|
x1: a.value.left,
|
|
343
345
|
x2: a.value.right,
|
|
@@ -355,9 +357,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
355
357
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
356
358
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
357
359
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
358
|
-
}, null, 8,
|
|
360
|
+
}, null, 8, Ue)
|
|
359
361
|
])) : f("", !0),
|
|
360
|
-
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g",
|
|
362
|
+
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", je, [
|
|
361
363
|
(o(!0), r(w, null, $(x.value, (t, s) => (o(), r("text", {
|
|
362
364
|
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
363
365
|
y: a.value.top + s * h.value + (e.value.style.chart.labels.yAxisLabels.showProgression ? h.value / 3 : h.value / 2) + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
@@ -365,7 +367,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
365
367
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
366
368
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
367
369
|
"text-anchor": "end"
|
|
368
|
-
}, L(t.name), 9,
|
|
370
|
+
}, L(t.name), 9, qe))), 256)),
|
|
369
371
|
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r(w, { key: 0 }, $(x.value, (t, s) => (o(), r("text", {
|
|
370
372
|
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
371
373
|
y: a.value.top + s * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
@@ -376,9 +378,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
376
378
|
v: 100 * (t.end / t.start - 1),
|
|
377
379
|
s: "%",
|
|
378
380
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
379
|
-
})), 9,
|
|
381
|
+
})), 9, Ye))), 256)) : f("", !0)
|
|
380
382
|
])) : f("", !0),
|
|
381
|
-
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g",
|
|
383
|
+
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", Ze, [
|
|
382
384
|
(o(!0), r(w, null, $(c.value.ticks, (t, s) => (o(), r("text", {
|
|
383
385
|
x: a.value.left + s * (a.value.width / (c.value.ticks.length - 1)),
|
|
384
386
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
@@ -396,7 +398,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
396
398
|
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
397
399
|
}),
|
|
398
400
|
{ datapoint: t, seriesIndex: s }
|
|
399
|
-
)), 9,
|
|
401
|
+
)), 9, Je))), 256))
|
|
400
402
|
])) : f("", !0),
|
|
401
403
|
n("defs", null, [
|
|
402
404
|
n("radialGradient", {
|
|
@@ -405,34 +407,34 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
405
407
|
}, [
|
|
406
408
|
n("stop", {
|
|
407
409
|
offset: "10%",
|
|
408
|
-
"stop-color": d(
|
|
409
|
-
}, null, 8,
|
|
410
|
+
"stop-color": d(ie)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
411
|
+
}, null, 8, Qe),
|
|
410
412
|
n("stop", {
|
|
411
413
|
offset: "90%",
|
|
412
|
-
"stop-color": d(
|
|
413
|
-
}, null, 8,
|
|
414
|
+
"stop-color": d(ce)(e.value.style.chart.plots.startColor, 0.1)
|
|
415
|
+
}, null, 8, et),
|
|
414
416
|
n("stop", {
|
|
415
417
|
offset: "100%",
|
|
416
418
|
"stop-color": e.value.style.chart.plots.startColor
|
|
417
|
-
}, null, 8,
|
|
418
|
-
], 8,
|
|
419
|
+
}, null, 8, tt)
|
|
420
|
+
], 8, Ke),
|
|
419
421
|
n("radialGradient", {
|
|
420
422
|
id: `end_grad_${v.value}`,
|
|
421
423
|
fy: "30%"
|
|
422
424
|
}, [
|
|
423
425
|
n("stop", {
|
|
424
426
|
offset: "10%",
|
|
425
|
-
"stop-color": d(
|
|
426
|
-
}, null, 8,
|
|
427
|
+
"stop-color": d(ie)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
428
|
+
}, null, 8, at),
|
|
427
429
|
n("stop", {
|
|
428
430
|
offset: "90%",
|
|
429
|
-
"stop-color": d(
|
|
430
|
-
}, null, 8,
|
|
431
|
+
"stop-color": d(ce)(e.value.style.chart.plots.endColor, 0.1)
|
|
432
|
+
}, null, 8, st),
|
|
431
433
|
n("stop", {
|
|
432
434
|
offset: "100%",
|
|
433
435
|
"stop-color": e.value.style.chart.plots.endColor
|
|
434
|
-
}, null, 8,
|
|
435
|
-
], 8,
|
|
436
|
+
}, null, 8, ot)
|
|
437
|
+
], 8, lt)
|
|
436
438
|
]),
|
|
437
439
|
(o(!0), r(w, null, $(y.value, (t, s) => (o(), r("g", null, [
|
|
438
440
|
n("defs", null, [
|
|
@@ -446,12 +448,12 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
446
448
|
n("stop", {
|
|
447
449
|
offset: "0%",
|
|
448
450
|
"stop-color": e.value.style.chart.plots.startColor
|
|
449
|
-
}, null, 8,
|
|
451
|
+
}, null, 8, nt),
|
|
450
452
|
n("stop", {
|
|
451
453
|
offset: "100%",
|
|
452
454
|
"stop-color": e.value.style.chart.plots.endColor
|
|
453
|
-
}, null, 8,
|
|
454
|
-
], 8,
|
|
455
|
+
}, null, 8, ut)
|
|
456
|
+
], 8, rt),
|
|
455
457
|
n("linearGradient", {
|
|
456
458
|
id: `grad_negative_${v.value}`,
|
|
457
459
|
x1: "0%",
|
|
@@ -462,14 +464,14 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
462
464
|
n("stop", {
|
|
463
465
|
offset: "0%",
|
|
464
466
|
"stop-color": e.value.style.chart.plots.endColor
|
|
465
|
-
}, null, 8,
|
|
467
|
+
}, null, 8, ct),
|
|
466
468
|
n("stop", {
|
|
467
469
|
offset: "100%",
|
|
468
470
|
"stop-color": e.value.style.chart.plots.startColor
|
|
469
|
-
}, null, 8,
|
|
470
|
-
], 8,
|
|
471
|
+
}, null, 8, dt)
|
|
472
|
+
], 8, it)
|
|
471
473
|
]),
|
|
472
|
-
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g",
|
|
474
|
+
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", vt, [
|
|
473
475
|
n("path", {
|
|
474
476
|
d: `M
|
|
475
477
|
${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
|
|
@@ -481,15 +483,15 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
481
483
|
Z
|
|
482
484
|
`,
|
|
483
485
|
fill: t.endX > t.startX ? `url(#grad_positive_${v.value})` : `url(#grad_negative_${v.value})`
|
|
484
|
-
}, null, 8,
|
|
485
|
-
])) : (o(), r("g",
|
|
486
|
+
}, null, 8, ht)
|
|
487
|
+
])) : (o(), r("g", yt, [
|
|
486
488
|
n("rect", {
|
|
487
489
|
x: t.endX > t.startX ? t.startX : t.endX,
|
|
488
490
|
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
489
491
|
height: e.value.style.chart.plots.link.strokeWidth,
|
|
490
492
|
width: Math.abs(t.endX - t.startX),
|
|
491
493
|
fill: t.endX > t.startX ? `url(#grad_positive_${v.value})` : `url(#grad_negative_${v.value})`
|
|
492
|
-
}, null, 8,
|
|
494
|
+
}, null, 8, bt)
|
|
493
495
|
])),
|
|
494
496
|
n("circle", {
|
|
495
497
|
cx: t.startX,
|
|
@@ -498,7 +500,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
498
500
|
fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${v.value})` : e.value.style.chart.plots.startColor,
|
|
499
501
|
stroke: e.value.style.chart.plots.stroke,
|
|
500
502
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
501
|
-
}, null, 8,
|
|
503
|
+
}, null, 8, ft),
|
|
502
504
|
n("circle", {
|
|
503
505
|
cx: t.endX,
|
|
504
506
|
cy: t.y,
|
|
@@ -506,8 +508,8 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
506
508
|
fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${v.value})` : e.value.style.chart.plots.endColor,
|
|
507
509
|
stroke: e.value.style.chart.plots.stroke,
|
|
508
510
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
509
|
-
}, null, 8,
|
|
510
|
-
e.value.style.chart.labels.startLabels.show ? (o(), r("g",
|
|
511
|
+
}, null, 8, gt),
|
|
512
|
+
e.value.style.chart.labels.startLabels.show ? (o(), r("g", mt, [
|
|
511
513
|
(o(!0), r(w, null, $(y.value, (i, b) => (o(), r("text", {
|
|
512
514
|
x: i.startX,
|
|
513
515
|
y: a.value.top + (b + 1) * h.value - e.value.style.chart.labels.startLabels.fontSize / 3 + e.value.style.chart.labels.startLabels.offsetY,
|
|
@@ -524,9 +526,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
524
526
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
525
527
|
}),
|
|
526
528
|
{ datapoint: i, seriesIndex: b }
|
|
527
|
-
)), 9,
|
|
529
|
+
)), 9, pt))), 256))
|
|
528
530
|
])) : f("", !0),
|
|
529
|
-
e.value.style.chart.labels.endLabels.show ? (o(), r("g",
|
|
531
|
+
e.value.style.chart.labels.endLabels.show ? (o(), r("g", _t, [
|
|
530
532
|
(o(!0), r(w, null, $(y.value, (i, b) => (o(), r("text", {
|
|
531
533
|
x: i.endX,
|
|
532
534
|
y: a.value.top + b * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
|
|
@@ -543,15 +545,15 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
543
545
|
r: e.value.style.chart.labels.endLabels.rounding
|
|
544
546
|
}),
|
|
545
547
|
{ datapoint: i, seriesIndex: b }
|
|
546
|
-
)), 9,
|
|
548
|
+
)), 9, xt))), 256))
|
|
547
549
|
])) : f("", !0)
|
|
548
550
|
]))), 256)),
|
|
549
551
|
C(l.$slots, "svg", { svg: a.value }, void 0, !0)
|
|
550
|
-
], 14,
|
|
551
|
-
l.$slots.watermark ? (o(), r("div",
|
|
552
|
-
C(l.$slots, "watermark", le(ae({ isPrinting: d(
|
|
552
|
+
], 14, Ee)) : f("", !0),
|
|
553
|
+
l.$slots.watermark ? (o(), r("div", kt, [
|
|
554
|
+
C(l.$slots, "watermark", le(ae({ isPrinting: d(R) || d(U) })), void 0, !0)
|
|
553
555
|
])) : f("", !0),
|
|
554
|
-
X.value ? f("", !0) : (o(), F(
|
|
556
|
+
X.value ? f("", !0) : (o(), F(Me, {
|
|
555
557
|
key: 4,
|
|
556
558
|
config: {
|
|
557
559
|
type: "dumbbell",
|
|
@@ -565,19 +567,19 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
565
567
|
}, null, 8, ["config"])),
|
|
566
568
|
n("div", {
|
|
567
569
|
ref_key: "chartLegend",
|
|
568
|
-
ref:
|
|
570
|
+
ref: B
|
|
569
571
|
}, [
|
|
570
|
-
e.value.style.chart.legend.show && X.value ? (o(), F(
|
|
572
|
+
e.value.style.chart.legend.show && X.value ? (o(), F(De, {
|
|
571
573
|
key: 0,
|
|
572
574
|
legendSet: Z.value,
|
|
573
|
-
config:
|
|
575
|
+
config: fe.value
|
|
574
576
|
}, {
|
|
575
577
|
item: _(({ legend: t }) => [
|
|
576
578
|
n("div", {
|
|
577
579
|
style: D(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
578
580
|
}, [
|
|
579
581
|
(o(), r("svg", {
|
|
580
|
-
xmlns: d(
|
|
582
|
+
xmlns: d(ue),
|
|
581
583
|
viewBox: "0 0 20 20",
|
|
582
584
|
height: e.value.style.chart.legend.fontSize,
|
|
583
585
|
width: e.value.style.chart.legend.fontSize
|
|
@@ -587,8 +589,8 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
587
589
|
cy: 10,
|
|
588
590
|
r: 9,
|
|
589
591
|
fill: t.color
|
|
590
|
-
}, null, 8,
|
|
591
|
-
], 8,
|
|
592
|
+
}, null, 8, wt)
|
|
593
|
+
], 8, Ct)),
|
|
592
594
|
se(" " + L(t.name), 1)
|
|
593
595
|
], 4)
|
|
594
596
|
]),
|
|
@@ -598,7 +600,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
598
600
|
legend: Z.value
|
|
599
601
|
}, void 0, !0)
|
|
600
602
|
], 512),
|
|
601
|
-
X.value ? (o(), F(
|
|
603
|
+
X.value ? (o(), F(Fe, {
|
|
602
604
|
key: 5,
|
|
603
605
|
hideDetails: "",
|
|
604
606
|
config: {
|
|
@@ -615,7 +617,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
615
617
|
}
|
|
616
618
|
}, {
|
|
617
619
|
content: _(() => [
|
|
618
|
-
te(
|
|
620
|
+
te(Ie, {
|
|
619
621
|
colNames: I.value.colNames,
|
|
620
622
|
head: I.value.head,
|
|
621
623
|
body: I.value.body,
|
|
@@ -627,7 +629,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
627
629
|
n("div", {
|
|
628
630
|
innerHTML: t,
|
|
629
631
|
style: { display: "flex", "align-items": "center" }
|
|
630
|
-
}, null, 8,
|
|
632
|
+
}, null, 8, $t)
|
|
631
633
|
]),
|
|
632
634
|
td: _(({ td: t }) => [
|
|
633
635
|
se(L(t.name || t), 1)
|
|
@@ -637,9 +639,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
637
639
|
]),
|
|
638
640
|
_: 1
|
|
639
641
|
}, 8, ["config"])) : f("", !0)
|
|
640
|
-
], 14,
|
|
642
|
+
], 14, Ve));
|
|
641
643
|
}
|
|
642
|
-
},
|
|
644
|
+
}, Ot = /* @__PURE__ */ Oe(Lt, [["__scopeId", "data-v-b32c06a0"]]);
|
|
643
645
|
export {
|
|
644
|
-
|
|
646
|
+
Ot as default
|
|
645
647
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-NNZeHOBS.cjs"),M=require("./useResponsive-B3TrDDIG.cjs"),Z=require("./Title-PZ6S96pU.cjs"),G=require("./usePrinter-BLbY8qGZ.cjs"),J=require("./DataTable-CSEiZDAb.cjs"),K=require("./vue-ui-skeleton-CI4t8LHn.cjs"),Q=require("./Legend-DuuSl2rJ.cjs"),ee=require("./vue-ui-accordion-CcdyvXrp.cjs"),I=require("./useNestedProp-CPsbJAGj.cjs"),te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),le=["id"],ae=["xmlns","viewBox"],oe={key:0},re=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],se={key:1},ne=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ue=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ce={key:2},ie=["x","y","font-size","fill","font-weight"],de=["x","y","font-size","fill"],ve={key:3},he=["x","y","font-size","fill","font-weight"],ye=["id"],me=["stop-color"],be=["stop-color"],fe=["stop-color"],ge=["id"],pe=["stop-color"],ke=["stop-color"],xe=["stop-color"],_e=["id"],Ce=["stop-color"],we=["stop-color"],Ne=["id"],Be=["stop-color"],Ee=["stop-color"],Le={key:0},$e=["d","fill"],Ve={key:1},Se=["x","y","height","width","fill"],ze=["cx","cy","r","fill","stroke","stroke-width"],Xe=["cx","cy","r","fill","stroke","stroke-width"],Ae={key:2},Pe=["x","y","fill","font-size"],Te={key:3},De=["x","y","fill","font-size"],Fe={key:3,class:"vue-data-ui-watermark"},Me=["xmlns","height","width"],Ge=["fill"],Ie=["innerHTML"],Oe={__name:"vue-ui-dumbbell",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectDatapoint"],setup(O,{expose:H,emit:qe}){const y=O,{vue_ui_dumbbell:q}=s.useConfig(),f=e.computed({get(){return!!y.dataset&&y.dataset.length},set(a){return a}}),i=e.ref(s.createUid()),L=e.ref(0),p=e.ref(null),$=e.ref(null),V=e.ref(null),t=e.computed(()=>{const a=I.useNestedProp({userConfig:y.config,defaultConfig:q});return a.theme?{...I.useNestedProp({userConfig:s.themes.vue_ui_dumbbell[a.theme]||y.config,defaultConfig:a})}:a}),k=e.ref(null);e.onMounted(()=>{if(s.objectIsEmpty(y.dataset)?s.error({componentName:"VueUiDumbbell",type:"dataset"}):y.dataset.forEach((a,n)=>{s.getMissingDatasetAttributes({datasetObject:a,requiredAttributes:["name","start","end"]}).forEach(l=>{f.value=!1,s.error({componentName:"VueUiDumbbell",type:"datasetSerieAttribute",property:l,index:n})})}),t.value.responsive){const a=M.throttle(()=>{const{width:n,height:l}=M.useResponsive({chart:p.value,title:t.value.style.chart.title.text?$.value:null,legend:t.value.style.chart.legend.show?V.value:null});_.value=n,d.value=l/y.dataset.length,v.value=C()});k.value=new ResizeObserver(a),k.value.observe(p.value.parentNode)}}),e.onBeforeUnmount(()=>{k.value&&k.value.disconnect()});const{isPrinting:S,isImaging:z,generatePdf:X,generateImage:A}=G.usePrinter({elementId:`dumbbell_${i.value}`,fileName:t.value.style.chart.title.text||"vue-ui-dumbbell"}),x=e.ref({showTable:t.value.table.show}),m=e.computed(()=>y.dataset.map((a,n)=>({...a,start:s.checkNaN(a.start),end:s.checkNaN(a.end),id:s.createUid()}))),B=e.computed(()=>({max:Math.max(...m.value.flatMap(a=>[a.start,a.end])),min:Math.min(...m.value.flatMap(a=>[a.start,a.end]))})),c=e.computed(()=>s.calculateNiceScale(B.value.min<0?B.value.min:0,B.value.max,t.value.style.chart.grid.scaleSteps)),d=e.ref(t.value.style.chart.rowHeight),_=e.ref(t.value.style.chart.width),o=e.computed(()=>{const a=d.value,n=t.value.style.chart.padding.left+t.value.style.chart.padding.right+_.value,l=t.value.style.chart.padding.top+t.value.style.chart.padding.bottom+a*y.dataset.length,r=c.value.ticks.length*(_.value/c.value.ticks.length);return{left:t.value.style.chart.padding.left,right:n-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,bottom:l-t.value.style.chart.padding.bottom,width:_.value,height:a*y.dataset.length,rowHeight:a,absoluteHeight:l,absoluteWidth:n,widthPlotReference:r}});function C(){return m.value.map((a,n)=>{const l=o.value.left+(a.start+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,r=o.value.left+(a.end+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,u=l+(r-l)/2;return{...a,startX:l,endX:r,centerX:u,y:o.value.top+n*d.value+d.value/2,endVal:a.start}})}const v=e.ref([]),P=e.ref(null),R=e.computed(()=>m.value.map(a=>a.end).reduce((a,n)=>a+n,0));e.onMounted(()=>{v.value=C();let a=v.value.map(l=>l.start).reduce((l,r)=>l+r,0);function n(){const l=m.value.map(r=>r.end-r.start);a>=R.value?(cancelAnimationFrame(P.value),v.value=C()):(v.value=v.value.map((r,u)=>{r.endVal+=l[u]*(t.value.animationSpeed/100);const h=o.value.left+(r.start+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,N=o.value.left+(r.endVal+Math.abs(c.value.min))/(c.value.max+Math.abs(c.value.min))*o.value.widthPlotReference,E=h+(N-h)/2;return{...r,startX:h,endX:N,centerX:E,y:o.value.top+u*d.value+d.value/2,endVal:r.endVal}}),a=v.value.map(r=>r.endVal).reduce((r,u)=>r+u,0),P.value=requestAnimationFrame(n))}t.value.useAnimation?n():v.value=C()});const T=e.computed(()=>[{name:t.value.style.chart.legend.labelStart,color:t.value.style.chart.plots.gradient.show?`url(#start_grad_${i.value})`:t.value.style.chart.plots.startColor},{name:t.value.style.chart.legend.labelEnd,color:t.value.style.chart.plots.gradient.show?`url(#end_grad_${i.value})`:t.value.style.chart.plots.endColor}]),W=e.computed(()=>({cy:"donut-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,paddingTop:12,fontWeight:t.value.style.chart.legend.bold?"bold":""})),b=e.computed(()=>{const a=v.value.map(l=>({name:l.name})),n=v.value.map(l=>({start:l.start,end:l.end}));return{head:a,body:n}}),w=e.computed(()=>{const a=[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],n=b.value.head.map((u,h)=>{const N=s.dataLabel({p:t.value.style.chart.labels.prefix,v:b.value.body[h].start,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),E=s.dataLabel({p:t.value.style.chart.labels.prefix,v:b.value.body[h].end,s:t.value.style.chart.labels.suffix,r:t.value.table.td.roundingValue}),Y=s.dataLabel({v:100*(b.value.body[h].end/b.value.body[h].start-1),s:"%",r:t.value.table.td.roundingPercentage});return[{name:u.name},N,E,Y]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.start,t.value.table.columnNames.end,t.value.table.columnNames.progression],head:a,body:n,config:l}});function D(){e.nextTick(()=>{const a=b.value.head.map((r,u)=>[[r.name],[b.value.body[u].start],[b.value.body[u].end]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.series],[t.value.table.columnNames.start],[t.value.table.columnNames.end]]].concat(a),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-dumbbell"})})}const g=e.ref(!1);function U(a){g.value=a,L.value+=1}function j(){return v.value}function F(){x.value.showTable=!x.value.showTable}return H({getData:j,generatePdf:X,generateCsv:D,generateImage:A,toggleTable:F}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dumbbellChart",ref:p,class:e.normalizeClass(`vue-ui-dumbbell ${g.value?"vue-data-ui-wrapper-fullscreen":""}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.chart.title.text?"":"padding-top:36px"};background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height:100%":""}`),id:`dumbbell_${i.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:$,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(Z._sfc_main,{config:{title:{cy:"donut-div-title",...t.value.style.chart.title},subtitle:{cy:"donut-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&f.value?(e.openBlock(),e.createBlock(G.UserOptions,{ref:"details",key:`user_option_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(S),isImaging:e.unref(z),uid:i.value,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:g.value,titles:{...t.value.userOptions.buttonTitles},chartElement:p.value,onToggleFullscreen:U,onGeneratePdf:e.unref(X),onGenerateCsv:D,onGenerateImage:e.unref(A),onToggleTable:F},e.createSlots({_:2},[a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"4"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":g.value,"vue-data-ui-fulscreen--off":!g.value}),viewBox:`0 0 ${o.value.absoluteWidth<=0?10:o.value.absoluteWidth} ${o.value.absoluteHeight<=0?10:o.value.absoluteHeight}`,style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[t.value.style.chart.grid.verticalGrid.show?(e.openBlock(),e.createElementBlock("g",oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.ticks,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.value.left+r*o.value.width/(c.value.ticks.length-1),x2:o.value.left+r*o.value.width/(c.value.ticks.length-1),y1:o.value.top,y2:o.value.bottom,stroke:t.value.style.chart.grid.verticalGrid.stroke,"stroke-width":t.value.style.chart.grid.verticalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.verticalGrid.strokeDasharray},null,8,re))),256))])):e.createCommentVNode("",!0),t.value.style.chart.grid.horizontalGrid.show?(e.openBlock(),e.createElementBlock("g",se,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:o.value.left,x2:o.value.right,y1:o.value.top+r*d.value,y2:o.value.top+r*d.value,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,ne))),256)),e.createElementVNode("line",{x1:o.value.left,x2:o.value.right,y1:o.value.bottom,y2:o.value.bottom,stroke:t.value.style.chart.grid.horizontalGrid.stroke,"stroke-width":t.value.style.chart.grid.horizontalGrid.strokeWidth,"stroke-dasharray":t.value.style.chart.grid.horizontalGrid.strokeDasharray},null,8,ue)])):e.createCommentVNode("",!0),t.value.style.chart.labels.yAxisLabels.show?(e.openBlock(),e.createElementBlock("g",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.value.top+r*d.value+(t.value.style.chart.labels.yAxisLabels.showProgression?d.value/3:d.value/2)+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"font-weight":t.value.style.chart.labels.yAxisLabels.bold?"bold":"normal","text-anchor":"end"},e.toDisplayString(l.name),9,ie))),256)),t.value.style.chart.labels.yAxisLabels.showProgression?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(m.value,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left-6+t.value.style.chart.labels.yAxisLabels.offsetX,y:o.value.top+r*d.value+d.value/1.3+t.value.style.chart.labels.yAxisLabels.fontSize/3,"font-size":t.value.style.chart.labels.yAxisLabels.fontSize,fill:t.value.style.chart.labels.yAxisLabels.color,"text-anchor":"end"},e.toDisplayString(e.unref(s.dataLabel)({v:100*(l.end/l.start-1),s:"%",r:t.value.style.chart.labels.yAxisLabels.rounding})),9,de))),256)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.chart.labels.xAxisLabels.show?(e.openBlock(),e.createElementBlock("g",ve,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.ticks,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:o.value.left+r*(o.value.width/(c.value.ticks.length-1)),y:o.value.bottom+t.value.style.chart.labels.xAxisLabels.fontSize+t.value.style.chart.labels.xAxisLabels.offsetY,"font-size":t.value.style.chart.labels.xAxisLabels.fontSize,fill:t.value.style.chart.labels.xAxisLabels.color,"font-weight":t.value.style.chart.labels.xAxisLabels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,l,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:l,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.xAxisLabels.rounding}),{datapoint:l,seriesIndex:r})),9,he))),256))])):e.createCommentVNode("",!0),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`start_grad_${i.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.startColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,me),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.startColor,.1)},null,8,be),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,fe)],8,ye),e.createElementVNode("radialGradient",{id:`end_grad_${i.value}`,fy:"30%"},[e.createElementVNode("stop",{offset:"10%","stop-color":e.unref(s.lightenHexColor)(t.value.style.chart.plots.endColor,t.value.style.chart.plots.gradient.intensity/100)},null,8,pe),e.createElementVNode("stop",{offset:"90%","stop-color":e.unref(s.darkenHexColor)(t.value.style.chart.plots.endColor,.1)},null,8,ke),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,xe)],8,ge)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`grad_positive_${i.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.startColor},null,8,Ce),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.endColor},null,8,we)],8,_e),e.createElementVNode("linearGradient",{id:`grad_negative_${i.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.chart.plots.endColor},null,8,Be),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.chart.plots.startColor},null,8,Ee)],8,Ne)]),t.value.style.chart.plots.link.type==="curved"?(e.openBlock(),e.createElementBlock("g",Le,[e.createElementVNode("path",{d:`M
|
|
2
|
+
${l.startX},${l.y+t.value.style.chart.plots.radius/2}
|
|
3
|
+
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
4
|
+
${l.endX},${l.y+t.value.style.chart.plots.radius/2}
|
|
5
|
+
L ${l.endX},${l.y-t.value.style.chart.plots.radius/2}
|
|
6
|
+
C ${l.centerX},${l.y} ${l.centerX},${l.y}
|
|
7
|
+
${l.startX},${l.y-t.value.style.chart.plots.radius/2}
|
|
8
|
+
Z
|
|
9
|
+
`,fill:l.endX>l.startX?`url(#grad_positive_${i.value})`:`url(#grad_negative_${i.value})`},null,8,$e)])):(e.openBlock(),e.createElementBlock("g",Ve,[e.createElementVNode("rect",{x:l.endX>l.startX?l.startX:l.endX,y:l.y-t.value.style.chart.plots.link.strokeWidth/2,height:t.value.style.chart.plots.link.strokeWidth,width:Math.abs(l.endX-l.startX),fill:l.endX>l.startX?`url(#grad_positive_${i.value})`:`url(#grad_negative_${i.value})`},null,8,Se)])),e.createElementVNode("circle",{cx:l.startX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#start_grad_${i.value})`:t.value.style.chart.plots.startColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,ze),e.createElementVNode("circle",{cx:l.endX,cy:l.y,r:t.value.style.chart.plots.radius,fill:t.value.style.chart.plots.gradient.show?`url(#end_grad_${i.value})`:t.value.style.chart.plots.endColor,stroke:t.value.style.chart.plots.stroke,"stroke-width":t.value.style.chart.plots.strokeWidth},null,8,Xe),t.value.style.chart.labels.startLabels.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.startX,y:o.value.top+(h+1)*d.value-t.value.style.chart.labels.startLabels.fontSize/3+t.value.style.chart.labels.startLabels.offsetY,fill:t.value.style.chart.labels.startLabels.useStartColor?t.value.style.chart.plots.startColor:t.value.style.chart.labels.startLabels.color,"font-size":t.value.style.chart.labels.startLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.start,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.start,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.startLabels.rounding}),{datapoint:u,seriesIndex:h})),9,Pe))),256))])):e.createCommentVNode("",!0),t.value.style.chart.labels.endLabels.show?(e.openBlock(),e.createElementBlock("g",Te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(u,h)=>(e.openBlock(),e.createElementBlock("text",{x:u.endX,y:o.value.top+h*d.value+t.value.style.chart.labels.endLabels.fontSize+t.value.style.chart.labels.endLabels.offsetY,fill:t.value.style.chart.labels.endLabels.useEndColor?t.value.style.chart.plots.endColor:t.value.style.chart.labels.endLabels.color,"font-size":t.value.style.chart.labels.endLabels.fontSize,"text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.labels.formatter,u.end,e.unref(s.dataLabel)({p:t.value.style.chart.labels.prefix,v:u.end,s:t.value.style.chart.labels.suffix,r:t.value.style.chart.labels.endLabels.rounding}),{datapoint:u,seriesIndex:h})),9,De))),256))])):e.createCommentVNode("",!0)]))),256)),e.renderSlot(a.$slots,"svg",{svg:o.value},void 0,!0)],14,ae)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(S)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),f.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(K.default,{key:4,config:{type:"dumbbell",style:{backgroundColor:t.value.style.chart.backgroundColor,dumbbell:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:V},[t.value.style.chart.legend.show&&f.value?(e.openBlock(),e.createBlock(Q.Legend,{key:0,legendSet:T.value,config:W.value},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{style:e.normalizeStyle(`display:flex;align-items:center;gap:4px;font-size:${t.value.style.chart.legend.fontSize}px`)},[(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:"0 0 20 20",height:t.value.style.chart.legend.fontSize,width:t.value.style.chart.legend.fontSize},[e.createElementVNode("circle",{cx:10,cy:10,r:9,fill:l.color},null,8,Ge)],8,Me)),e.createTextVNode(" "+e.toDisplayString(l.name),1)],4)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:T.value},void 0,!0)],512),f.value?(e.openBlock(),e.createBlock(ee.default,{key:5,hideDetails:"",config:{open:x.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[e.createVNode(J.DataTable,{colNames:w.value.colNames,head:w.value.head,body:w.value.body,config:w.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:n[0]||(n[0]=l=>x.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,Ie)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,le))}},He=te._export_sfc(Oe,[["__scopeId","data-v-b32c06a0"]]);exports.default=He;
|