vue-data-ui 2.3.60 → 2.3.62
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-BJ47KXjY.js → Arrow-Dho8ylDy.js} +1 -1
- package/dist/{Arrow-VxZlHkwt.cjs → Arrow-ov-EIAPu.cjs} +1 -1
- package/dist/{BaseIcon-Bv5uh10R.cjs → BaseIcon-B6v-Txn-.cjs} +1 -1
- package/dist/{BaseIcon-Fm7sUbd2.js → BaseIcon-BNStcP8c.js} +1 -1
- package/dist/{DataTable-1VV0us-8.js → DataTable-luIjNnne.js} +2 -2
- package/dist/{DataTable-CPAt686N.cjs → DataTable-yf_eyv8c.cjs} +1 -1
- package/dist/{Legend-BJ2Mynop.cjs → Legend-6JY5pUsT.cjs} +1 -1
- package/dist/{Legend-DB6v_LvZ.js → Legend-B9dawQa7.js} +1 -1
- package/dist/{Shape-DWZSJJ6-.cjs → Shape-BoXM3HKY.cjs} +1 -1
- package/dist/{Shape-B_f1_6Ob.js → Shape-BsAETTif.js} +1 -1
- package/dist/Slicer-DoMAeSUY.cjs +1 -0
- package/dist/{Slicer-CHiUxRAh.js → Slicer-iGmqxtRQ.js} +51 -54
- package/dist/{Title-CR-JDJwq.cjs → Title-CBcoQe02.cjs} +1 -1
- package/dist/{Title-xP0rAF4q.js → Title-fb3BzoXj.js} +1 -1
- package/dist/{Tooltip-B4DNihSF.cjs → Tooltip-BhuD1Kc5.cjs} +1 -1
- package/dist/{Tooltip-DfBa_7Ur.js → Tooltip-CBugtvWB.js} +5 -5
- package/dist/{index-CpHoINpJ.js → index-BshV7sX1.js} +538 -515
- package/dist/{index-CDK3omwG.cjs → index-D2ZScauW.cjs} +4 -4
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BOjw3Yqn.js → useNestedProp-B235bkr5.js} +1 -1
- package/dist/{useNestedProp-CaaW8JIS.cjs → useNestedProp-BU7yyXFA.cjs} +1 -1
- package/dist/{usePrinter-BHy-mfVg.js → usePrinter-Culo-aKo.js} +1 -1
- package/dist/{usePrinter-vQu-8tRD.cjs → usePrinter-eqT4IYET.cjs} +1 -1
- package/dist/{vue-data-ui-Ccdrn4OV.cjs → vue-data-ui-B7ebF4_E.cjs} +1 -1
- package/dist/{vue-data-ui-Dcg7DPMn.js → vue-data-ui-aJ6K70wA.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-BqtnNU7h.js → vue-ui-3d-bar-BYgxIW27.js} +7 -7
- package/dist/{vue-ui-3d-bar-DdBlV5AX.cjs → vue-ui-3d-bar-DFv8qpsI.cjs} +1 -1
- package/dist/{vue-ui-accordion-BZloYo0L.js → vue-ui-accordion-B6AxEnAr.js} +3 -3
- package/dist/{vue-ui-accordion-EVAolVkD.cjs → vue-ui-accordion-BhCJcWDd.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BBRjCRtS.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CTxkOn4v.js → vue-ui-age-pyramid-yZrvdnPP.js} +226 -226
- package/dist/{vue-ui-annotator-D_AK0JCi.cjs → vue-ui-annotator-CEVmAufb.cjs} +1 -1
- package/dist/{vue-ui-annotator-BDWKiQ6S.js → vue-ui-annotator-ZKUlOqUq.js} +1 -1
- package/dist/{vue-ui-candlestick-CIKgu0F2.cjs → vue-ui-candlestick-CUNLZRIM.cjs} +2 -2
- package/dist/{vue-ui-candlestick-ByA9FGZb.js → vue-ui-candlestick-De4WgpPk.js} +158 -158
- package/dist/{vue-ui-carousel-table-ez9gbOZ7.cjs → vue-ui-carousel-table-C968uL6J.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BnYxbq5A.js → vue-ui-carousel-table-DJ0AWPea.js} +4 -4
- package/dist/{vue-ui-chestnut-BumsSmCv.js → vue-ui-chestnut-Cl0UKWsI.js} +65 -64
- package/dist/{vue-ui-chestnut-CnYqa2Fx.cjs → vue-ui-chestnut-DmjmL02K.cjs} +3 -3
- package/dist/{vue-ui-cursor-D-4-MMw7.js → vue-ui-cursor-BWyE3tgm.js} +2 -2
- package/dist/{vue-ui-cursor-Drl8jibt.cjs → vue-ui-cursor-D5XEblLW.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CX0jA181.cjs → vue-ui-dashboard-BJLi81kg.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_iV-3hq.js → vue-ui-dashboard-D9dQIIti.js} +2 -2
- package/dist/{vue-ui-digits-DMhl9plv.js → vue-ui-digits-DkYpomD9.js} +2 -2
- package/dist/{vue-ui-digits-RAZl_4Kb.cjs → vue-ui-digits-IIiSTczs.cjs} +1 -1
- package/dist/{vue-ui-donut-BG28U01c.cjs → vue-ui-donut-Bq66xmG0.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DPU-Nd8y.js → vue-ui-donut-evolution-Bto1ZaWx.js} +95 -95
- package/dist/vue-ui-donut-evolution-CNVUtEEk.cjs +1 -0
- package/dist/{vue-ui-donut-BpQC9-Uz.js → vue-ui-donut-uujhj36t.js} +42 -42
- package/dist/vue-ui-dumbbell-CLNVYG0j.cjs +9 -0
- package/dist/{vue-ui-dumbbell-C4JnuC1b.js → vue-ui-dumbbell-D6Xyfvff.js} +72 -72
- package/dist/vue-ui-flow-BwrqexSU.cjs +1 -0
- package/dist/vue-ui-flow-Cg4oKZz8.js +469 -0
- package/dist/{vue-ui-galaxy-148JtEdK.js → vue-ui-galaxy-D_s9dfYN.js} +91 -91
- package/dist/vue-ui-galaxy-DixlciaO.cjs +1 -0
- package/dist/{vue-ui-gauge-DOJ98R_N.js → vue-ui-gauge-DGQVW6UO.js} +84 -84
- package/dist/vue-ui-gauge-Jse5ZYyj.cjs +1 -0
- package/dist/{vue-ui-gizmo-KeWvd226.js → vue-ui-gizmo-DDTaLaSI.js} +2 -2
- package/dist/{vue-ui-gizmo-a6WNWyf7.cjs → vue-ui-gizmo-sgq75uBG.cjs} +1 -1
- package/dist/vue-ui-heatmap-4-gnNgQ_.cjs +1 -0
- package/dist/{vue-ui-heatmap-BGsSOTPJ.js → vue-ui-heatmap-Dvd5ZGVw.js} +257 -239
- package/dist/{vue-ui-kpi-Dhah6Fgx.cjs → vue-ui-kpi-Co1WqN3k.cjs} +1 -1
- package/dist/{vue-ui-kpi-Leb1rK38.js → vue-ui-kpi-aLwUkIjv.js} +3 -3
- package/dist/{vue-ui-mini-loader-BLH4ncUB.js → vue-ui-mini-loader-Bm2xpTIh.js} +2 -2
- package/dist/{vue-ui-mini-loader-Dpa9uYkn.cjs → vue-ui-mini-loader-D98KCpoT.cjs} +1 -1
- package/dist/{vue-ui-molecule-DjvOvDUa.cjs → vue-ui-molecule-C3-9ojnv.cjs} +1 -1
- package/dist/{vue-ui-molecule-DuPAOQcj.js → vue-ui-molecule-Dv4hYPVd.js} +20 -20
- package/dist/{vue-ui-mood-radar-AOHK6R10.cjs → vue-ui-mood-radar-Dh3Q2NiI.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BmcIz0JR.js → vue-ui-mood-radar-DsIPsXTh.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CMmcmAd9.cjs → vue-ui-nested-donuts-CFC8tyGY.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-BYLc86qs.js → vue-ui-nested-donuts-CZ9vcclX.js} +120 -120
- package/dist/{vue-ui-onion-BjG8xbMh.cjs → vue-ui-onion-BLV33CBr.cjs} +1 -1
- package/dist/{vue-ui-onion-shZ4g9mJ.js → vue-ui-onion-CI9ARfRM.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-O7lS6u2q.cjs → vue-ui-parallel-coordinate-plot-CIhpHeCI.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-wv0O9t7U.js → vue-ui-parallel-coordinate-plot-CxzFJuza.js} +69 -69
- package/dist/{vue-ui-quadrant-CuB8sYgF.cjs → vue-ui-quadrant-CS3LAiCu.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BRF5Czj4.js → vue-ui-quadrant-DenUcNcS.js} +36 -36
- package/dist/{vue-ui-quick-chart-BQdUHrm2.js → vue-ui-quick-chart-BdpKv0ES.js} +549 -515
- package/dist/vue-ui-quick-chart-UxaO0jzI.cjs +15 -0
- package/dist/vue-ui-radar-CQ-LymAS.cjs +1 -0
- package/dist/{vue-ui-radar-CLUs0tD9.js → vue-ui-radar-Dd24aGwh.js} +59 -59
- package/dist/{vue-ui-rating-Dcy1l1PB.js → vue-ui-rating-CQWK2lk1.js} +9 -9
- package/dist/{vue-ui-rating-CA25nHJe.cjs → vue-ui-rating-DTuDjrt8.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DC-RFa9X.js → vue-ui-relation-circle-BcOzK8Iz.js} +5 -5
- package/dist/{vue-ui-relation-circle-Drr6Gdnq.cjs → vue-ui-relation-circle-DMhNCwpg.cjs} +1 -1
- package/dist/vue-ui-rings--pu1fIcl.cjs +2 -0
- package/dist/{vue-ui-rings-DbPbelCU.js → vue-ui-rings-yyFx2W1b.js} +188 -185
- package/dist/{vue-ui-scatter-D2jYZ4Wu.js → vue-ui-scatter-BV4sXNqz.js} +378 -375
- package/dist/{vue-ui-scatter-xyLvaw0d.cjs → vue-ui-scatter-CrmsJjjl.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DXCBzrPZ.js → vue-ui-screenshot-C6wYv3cc.js} +6 -6
- package/dist/{vue-ui-screenshot-DGqjaE1x.cjs → vue-ui-screenshot-eoAWixSo.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DuM6yey6.js → vue-ui-skeleton-7qakoAGH.js} +23 -23
- package/dist/{vue-ui-skeleton-DRDC3yxK.cjs → vue-ui-skeleton-BLhbQje-.cjs} +1 -1
- package/dist/{vue-ui-smiley-DQrvx_S9.js → vue-ui-smiley-DG3_ORXA.js} +2 -2
- package/dist/{vue-ui-smiley-BCmY1siL.cjs → vue-ui-smiley-sS92V85O.cjs} +1 -1
- package/dist/vue-ui-spark-trend-C9Ii4Ue5.cjs +1 -0
- package/dist/vue-ui-spark-trend-D8_rEspZ.js +251 -0
- package/dist/{vue-ui-sparkbar-C_vNsxM_.cjs → vue-ui-sparkbar-CQz9GWxh.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DiU5Yt-V.js → vue-ui-sparkbar-DuNNnbs9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BnF9Vbs0.js → vue-ui-sparkgauge-Buo2ms6b.js} +64 -64
- package/dist/vue-ui-sparkgauge-Dxsnkehz.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-BUBwn9A4.cjs → vue-ui-sparkhistogram-Cw-w_Rhv.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CsOfCo_3.js → vue-ui-sparkhistogram-edeeQ1HN.js} +4 -4
- package/dist/{vue-ui-sparkline-CoUeD8Np.cjs → vue-ui-sparkline-Cyddej9t.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B628G3Nl.js → vue-ui-sparkline-DGIqGoR2.js} +25 -25
- package/dist/{vue-ui-sparkstackbar-Cr-Q7uDo.cjs → vue-ui-sparkstackbar-DN0XiDpQ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DIHGbrF5.js → vue-ui-sparkstackbar-G7Ojd39B.js} +3 -3
- package/dist/{vue-ui-stackbar-DCbJhdZy.js → vue-ui-stackbar-CfK9lv_E.js} +35 -35
- package/dist/{vue-ui-stackbar-DMyP3IRK.cjs → vue-ui-stackbar-kiZ9J1eh.cjs} +1 -1
- package/dist/vue-ui-strip-plot-Bd4NwUia.cjs +1 -0
- package/dist/{vue-ui-strip-plot-CNb3VtYF.js → vue-ui-strip-plot-d-bNHZDG.js} +64 -64
- package/dist/{vue-ui-table-CjuXpy2d.cjs → vue-ui-table-ChORiy2h.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D6px_Z1a.cjs → vue-ui-table-heatmap-BcA1TmV1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-nbBDuSiw.js → vue-ui-table-heatmap-BcPqaYXz.js} +26 -26
- package/dist/{vue-ui-table-BqcI8E7E.js → vue-ui-table-ipCsGZPx.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Blbaz2zX.js → vue-ui-table-sparkline-BwwiWOX_.js} +13 -13
- package/dist/{vue-ui-table-sparkline-CqNPx5Zw.cjs → vue-ui-table-sparkline-dXyBTv6X.cjs} +1 -1
- package/dist/vue-ui-thermometer-DpWtOskJ.cjs +1 -0
- package/dist/{vue-ui-thermometer-BCGHbgj9.js → vue-ui-thermometer-U5IIot6j.js} +116 -116
- package/dist/{vue-ui-timer-BjqbxjQO.cjs → vue-ui-timer-DqVQjRdU.cjs} +1 -1
- package/dist/{vue-ui-timer-DhpBvc_5.js → vue-ui-timer-cCfNkOpe.js} +4 -4
- package/dist/{vue-ui-tiremarks-CNhB7Iqe.js → vue-ui-tiremarks-BcXrnO0N.js} +71 -71
- package/dist/vue-ui-tiremarks-C8pNPR_E.cjs +1 -0
- package/dist/vue-ui-treemap-24TuOX-H.cjs +1 -0
- package/dist/{vue-ui-treemap-C4memkYu.js → vue-ui-treemap-CVCaxcwW.js} +89 -82
- package/dist/{vue-ui-vertical-bar-LZ-GMZ2T.js → vue-ui-vertical-bar-Cuz2Qxi6.js} +246 -242
- package/dist/vue-ui-vertical-bar-kZxc3vG5.cjs +4 -0
- package/dist/{vue-ui-waffle-Cd4IU62n.js → vue-ui-waffle-BVFZf7mm.js} +44 -44
- package/dist/{vue-ui-waffle-CtY5CSX9.cjs → vue-ui-waffle-X-mNfs6F.cjs} +1 -1
- package/dist/{vue-ui-wheel-Do3pWPFB.cjs → vue-ui-wheel-CWOh-9CT.cjs} +1 -1
- package/dist/{vue-ui-wheel-CaEAQhJt.js → vue-ui-wheel-SUtbKs4l.js} +5 -5
- package/dist/vue-ui-word-cloud-BE_jkp2h.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BSalPYqO.js → vue-ui-word-cloud-DAa0far7.js} +68 -65
- package/dist/vue-ui-xy-BTocPMsA.cjs +3 -0
- package/dist/{vue-ui-xy-C7tpVpGu.js → vue-ui-xy-B_dmMYPU.js} +82 -82
- package/dist/vue-ui-xy-canvas-BtuD8xjy.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-rHcYmvec.js → vue-ui-xy-canvas-jq1j84oA.js} +122 -121
- package/package.json +1 -1
- package/dist/Slicer-PPS43jOo.cjs +0 -1
- package/dist/vue-ui-age-pyramid-Ce3DbeqC.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BWvrYKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-2Lsks-8o.cjs +0 -9
- package/dist/vue-ui-flow-DBhdVKxF.cjs +0 -1
- package/dist/vue-ui-flow-DSdWqWgh.js +0 -465
- package/dist/vue-ui-galaxy-BMsdd9Rh.cjs +0 -1
- package/dist/vue-ui-gauge-fVk9B_1W.cjs +0 -1
- package/dist/vue-ui-heatmap-DFpSo2gr.cjs +0 -1
- package/dist/vue-ui-quick-chart-DsVFRO68.cjs +0 -15
- package/dist/vue-ui-radar-lcS6n5TC.cjs +0 -1
- package/dist/vue-ui-rings-DxqSAs9h.cjs +0 -2
- package/dist/vue-ui-spark-trend-B9PR0wxN.js +0 -251
- package/dist/vue-ui-spark-trend-Kj1bJmBL.cjs +0 -1
- package/dist/vue-ui-sparkgauge-SlYA1lqc.cjs +0 -1
- package/dist/vue-ui-strip-plot-Da_TQpOq.cjs +0 -1
- package/dist/vue-ui-thermometer-coTC0T6k.cjs +0 -1
- package/dist/vue-ui-tiremarks-DgbTo_Cb.cjs +0 -1
- package/dist/vue-ui-treemap-B5moKzuO.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DtkGW5Tk.cjs +0 -4
- package/dist/vue-ui-word-cloud-pzaBe3Et.cjs +0 -1
- package/dist/vue-ui-xy-BgLF5ZNP.cjs +0 -3
- package/dist/vue-ui-xy-canvas-OuDGiOOW.cjs +0 -9
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { computed as m, ref as g, onMounted as Q, onBeforeUnmount as pe, 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 _e, 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 xe } from "vue";
|
|
2
|
-
import { u as ke, c as oe, t as Ce, o as we, e as re, g as $e,
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { D as
|
|
7
|
-
import
|
|
8
|
-
import { L as
|
|
9
|
-
import
|
|
10
|
-
import { u as ce } from "./useNestedProp-
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
2
|
+
import { u as ke, c as oe, t as Ce, o as we, e as re, g as $e, F as Le, B as ze, f as z, X as ne, i as E, l as ue, h as ie, q as Xe, r as Ae } from "./index-BshV7sX1.js";
|
|
3
|
+
import { t as Se, u as Ne } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Te } from "./Title-fb3BzoXj.js";
|
|
5
|
+
import { u as Pe, U as Ge } from "./usePrinter-Culo-aKo.js";
|
|
6
|
+
import { D as Ie } from "./DataTable-luIjNnne.js";
|
|
7
|
+
import Me from "./vue-ui-skeleton-7qakoAGH.js";
|
|
8
|
+
import { L as De } from "./Legend-B9dawQa7.js";
|
|
9
|
+
import Fe from "./vue-ui-accordion-B6AxEnAr.js";
|
|
10
|
+
import { u as ce } from "./useNestedProp-B235bkr5.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,7 +29,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectDatapoint"],
|
|
32
|
-
setup(de, { expose: ve, emit:
|
|
32
|
+
setup(de, { expose: ve, emit: zt }) {
|
|
33
33
|
const p = de, { vue_ui_dumbbell: he } = ke(), X = m({
|
|
34
34
|
get() {
|
|
35
35
|
return !!p.dataset && p.dataset.length;
|
|
@@ -37,7 +37,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
37
37
|
set(l) {
|
|
38
38
|
return l;
|
|
39
39
|
}
|
|
40
|
-
}), v = g(oe()), W = g(0), S = g(null), H = g(null),
|
|
40
|
+
}), v = g(oe()), W = g(0), S = g(null), H = g(null), B = g(null), e = m(() => {
|
|
41
41
|
const l = ce({
|
|
42
42
|
userConfig: p.config,
|
|
43
43
|
defaultConfig: he
|
|
@@ -66,11 +66,11 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
}), e.value.responsive) {
|
|
69
|
-
const l =
|
|
70
|
-
const { width: u, height: t } =
|
|
69
|
+
const l = Se(() => {
|
|
70
|
+
const { width: u, height: t } = Ne({
|
|
71
71
|
chart: S.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
|
});
|
|
@@ -79,18 +79,18 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
79
79
|
}), pe(() => {
|
|
80
80
|
N.value && N.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
|
-
}), x = m(() => p.dataset.map((l, u) => ({
|
|
87
|
+
}), x = m(() => Le(p.dataset, ["start", "end"]).map((l, u) => ({
|
|
88
88
|
...l,
|
|
89
89
|
id: oe()
|
|
90
90
|
}))), O = m(() => ({
|
|
91
91
|
max: Math.max(...x.value.flatMap((l) => [l.start, l.end])),
|
|
92
92
|
min: Math.min(...x.value.flatMap((l) => [l.start, l.end]))
|
|
93
|
-
})), c = m(() =>
|
|
93
|
+
})), 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
94
|
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
95
|
return {
|
|
96
96
|
left: e.value.style.chart.padding.left,
|
|
@@ -215,8 +215,8 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
215
215
|
xe(() => {
|
|
216
216
|
const l = k.value.head.map((s, i) => [[
|
|
217
217
|
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
|
-
|
|
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 = Xe(u);
|
|
219
|
+
Ae({ csvContent: t, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
const A = g(!1);
|
|
@@ -248,7 +248,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
248
248
|
ref: H,
|
|
249
249
|
style: D(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:24px`)
|
|
250
250
|
}, [
|
|
251
|
-
te(
|
|
251
|
+
te(Te, {
|
|
252
252
|
config: {
|
|
253
253
|
title: {
|
|
254
254
|
cy: "donut-div-title",
|
|
@@ -261,12 +261,12 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
261
261
|
}
|
|
262
262
|
}, null, 8, ["config"])
|
|
263
263
|
], 4)) : f("", !0),
|
|
264
|
-
e.value.userOptions.show && X.value ? (o(), F(
|
|
264
|
+
e.value.userOptions.show && X.value ? (o(), F(Ge, {
|
|
265
265
|
ref: "details",
|
|
266
266
|
key: `user_option_${W.value}`,
|
|
267
267
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
268
268
|
color: e.value.style.chart.color,
|
|
269
|
-
isPrinting: d(
|
|
269
|
+
isPrinting: d(R),
|
|
270
270
|
isImaging: d(U),
|
|
271
271
|
uid: v.value,
|
|
272
272
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -326,7 +326,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
326
326
|
viewBox: `0 0 ${a.value.absoluteWidth <= 0 ? 10 : a.value.absoluteWidth} ${a.value.absoluteHeight <= 0 ? 10 : a.value.absoluteHeight}`,
|
|
327
327
|
style: D(`max-width:100%; overflow: visible; background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
328
328
|
}, [
|
|
329
|
-
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g",
|
|
329
|
+
e.value.style.chart.grid.verticalGrid.show ? (o(), r("g", We, [
|
|
330
330
|
(o(!0), r(w, null, $(c.value.ticks, (t, s) => (o(), r("line", {
|
|
331
331
|
x1: a.value.left + s * a.value.width / (c.value.ticks.length - 1),
|
|
332
332
|
x2: a.value.left + s * a.value.width / (c.value.ticks.length - 1),
|
|
@@ -335,9 +335,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
335
335
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
336
336
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
337
337
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
338
|
-
}, null, 8,
|
|
338
|
+
}, null, 8, He))), 256))
|
|
339
339
|
])) : f("", !0),
|
|
340
|
-
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g",
|
|
340
|
+
e.value.style.chart.grid.horizontalGrid.show ? (o(), r("g", Be, [
|
|
341
341
|
(o(!0), r(w, null, $(x.value, (t, s) => (o(), r("line", {
|
|
342
342
|
x1: a.value.left,
|
|
343
343
|
x2: a.value.right,
|
|
@@ -355,9 +355,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
355
355
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
356
356
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
357
357
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
358
|
-
}, null, 8,
|
|
358
|
+
}, null, 8, Ue)
|
|
359
359
|
])) : f("", !0),
|
|
360
|
-
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g",
|
|
360
|
+
e.value.style.chart.labels.yAxisLabels.show ? (o(), r("g", je, [
|
|
361
361
|
(o(!0), r(w, null, $(x.value, (t, s) => (o(), r("text", {
|
|
362
362
|
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
363
363
|
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 +365,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
365
365
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
366
366
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
367
367
|
"text-anchor": "end"
|
|
368
|
-
}, L(t.name), 9,
|
|
368
|
+
}, L(t.name), 9, qe))), 256)),
|
|
369
369
|
e.value.style.chart.labels.yAxisLabels.showProgression ? (o(!0), r(w, { key: 0 }, $(x.value, (t, s) => (o(), r("text", {
|
|
370
370
|
x: a.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
371
371
|
y: a.value.top + s * h.value + h.value / 1.3 + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
@@ -376,9 +376,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
376
376
|
v: 100 * (t.end / t.start - 1),
|
|
377
377
|
s: "%",
|
|
378
378
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
379
|
-
})), 9,
|
|
379
|
+
})), 9, Ye))), 256)) : f("", !0)
|
|
380
380
|
])) : f("", !0),
|
|
381
|
-
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g",
|
|
381
|
+
e.value.style.chart.labels.xAxisLabels.show ? (o(), r("g", Ze, [
|
|
382
382
|
(o(!0), r(w, null, $(c.value.ticks, (t, s) => (o(), r("text", {
|
|
383
383
|
x: a.value.left + s * (a.value.width / (c.value.ticks.length - 1)),
|
|
384
384
|
y: a.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize + e.value.style.chart.labels.xAxisLabels.offsetY,
|
|
@@ -396,7 +396,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
396
396
|
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
397
397
|
}),
|
|
398
398
|
{ datapoint: t, seriesIndex: s }
|
|
399
|
-
)), 9,
|
|
399
|
+
)), 9, Je))), 256))
|
|
400
400
|
])) : f("", !0),
|
|
401
401
|
n("defs", null, [
|
|
402
402
|
n("radialGradient", {
|
|
@@ -406,16 +406,16 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
406
406
|
n("stop", {
|
|
407
407
|
offset: "10%",
|
|
408
408
|
"stop-color": d(ue)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
409
|
-
}, null, 8,
|
|
409
|
+
}, null, 8, Qe),
|
|
410
410
|
n("stop", {
|
|
411
411
|
offset: "90%",
|
|
412
412
|
"stop-color": d(ie)(e.value.style.chart.plots.startColor, 0.1)
|
|
413
|
-
}, null, 8,
|
|
413
|
+
}, null, 8, et),
|
|
414
414
|
n("stop", {
|
|
415
415
|
offset: "100%",
|
|
416
416
|
"stop-color": e.value.style.chart.plots.startColor
|
|
417
|
-
}, null, 8,
|
|
418
|
-
], 8,
|
|
417
|
+
}, null, 8, tt)
|
|
418
|
+
], 8, Ke),
|
|
419
419
|
n("radialGradient", {
|
|
420
420
|
id: `end_grad_${v.value}`,
|
|
421
421
|
fy: "30%"
|
|
@@ -423,16 +423,16 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
423
423
|
n("stop", {
|
|
424
424
|
offset: "10%",
|
|
425
425
|
"stop-color": d(ue)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
426
|
-
}, null, 8,
|
|
426
|
+
}, null, 8, at),
|
|
427
427
|
n("stop", {
|
|
428
428
|
offset: "90%",
|
|
429
429
|
"stop-color": d(ie)(e.value.style.chart.plots.endColor, 0.1)
|
|
430
|
-
}, null, 8,
|
|
430
|
+
}, null, 8, st),
|
|
431
431
|
n("stop", {
|
|
432
432
|
offset: "100%",
|
|
433
433
|
"stop-color": e.value.style.chart.plots.endColor
|
|
434
|
-
}, null, 8,
|
|
435
|
-
], 8,
|
|
434
|
+
}, null, 8, ot)
|
|
435
|
+
], 8, lt)
|
|
436
436
|
]),
|
|
437
437
|
(o(!0), r(w, null, $(y.value, (t, s) => (o(), r("g", null, [
|
|
438
438
|
n("defs", null, [
|
|
@@ -446,12 +446,12 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
446
446
|
n("stop", {
|
|
447
447
|
offset: "0%",
|
|
448
448
|
"stop-color": e.value.style.chart.plots.startColor
|
|
449
|
-
}, null, 8,
|
|
449
|
+
}, null, 8, nt),
|
|
450
450
|
n("stop", {
|
|
451
451
|
offset: "100%",
|
|
452
452
|
"stop-color": e.value.style.chart.plots.endColor
|
|
453
|
-
}, null, 8,
|
|
454
|
-
], 8,
|
|
453
|
+
}, null, 8, ut)
|
|
454
|
+
], 8, rt),
|
|
455
455
|
n("linearGradient", {
|
|
456
456
|
id: `grad_negative_${v.value}`,
|
|
457
457
|
x1: "0%",
|
|
@@ -462,14 +462,14 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
462
462
|
n("stop", {
|
|
463
463
|
offset: "0%",
|
|
464
464
|
"stop-color": e.value.style.chart.plots.endColor
|
|
465
|
-
}, null, 8,
|
|
465
|
+
}, null, 8, ct),
|
|
466
466
|
n("stop", {
|
|
467
467
|
offset: "100%",
|
|
468
468
|
"stop-color": e.value.style.chart.plots.startColor
|
|
469
|
-
}, null, 8,
|
|
470
|
-
], 8,
|
|
469
|
+
}, null, 8, dt)
|
|
470
|
+
], 8, it)
|
|
471
471
|
]),
|
|
472
|
-
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g",
|
|
472
|
+
e.value.style.chart.plots.link.type === "curved" ? (o(), r("g", vt, [
|
|
473
473
|
n("path", {
|
|
474
474
|
d: `M
|
|
475
475
|
${t.startX},${t.y + e.value.style.chart.plots.radius / 2}
|
|
@@ -481,15 +481,15 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
481
481
|
Z
|
|
482
482
|
`,
|
|
483
483
|
fill: t.endX > t.startX ? `url(#grad_positive_${v.value})` : `url(#grad_negative_${v.value})`
|
|
484
|
-
}, null, 8,
|
|
485
|
-
])) : (o(), r("g",
|
|
484
|
+
}, null, 8, ht)
|
|
485
|
+
])) : (o(), r("g", yt, [
|
|
486
486
|
n("rect", {
|
|
487
487
|
x: t.endX > t.startX ? t.startX : t.endX,
|
|
488
488
|
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
489
489
|
height: e.value.style.chart.plots.link.strokeWidth,
|
|
490
490
|
width: Math.abs(t.endX - t.startX),
|
|
491
491
|
fill: t.endX > t.startX ? `url(#grad_positive_${v.value})` : `url(#grad_negative_${v.value})`
|
|
492
|
-
}, null, 8,
|
|
492
|
+
}, null, 8, bt)
|
|
493
493
|
])),
|
|
494
494
|
n("circle", {
|
|
495
495
|
cx: t.startX,
|
|
@@ -498,7 +498,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
498
498
|
fill: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${v.value})` : e.value.style.chart.plots.startColor,
|
|
499
499
|
stroke: e.value.style.chart.plots.stroke,
|
|
500
500
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
501
|
-
}, null, 8,
|
|
501
|
+
}, null, 8, ft),
|
|
502
502
|
n("circle", {
|
|
503
503
|
cx: t.endX,
|
|
504
504
|
cy: t.y,
|
|
@@ -506,8 +506,8 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
506
506
|
fill: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${v.value})` : e.value.style.chart.plots.endColor,
|
|
507
507
|
stroke: e.value.style.chart.plots.stroke,
|
|
508
508
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
509
|
-
}, null, 8,
|
|
510
|
-
e.value.style.chart.labels.startLabels.show ? (o(), r("g",
|
|
509
|
+
}, null, 8, gt),
|
|
510
|
+
e.value.style.chart.labels.startLabels.show ? (o(), r("g", mt, [
|
|
511
511
|
(o(!0), r(w, null, $(y.value, (i, b) => (o(), r("text", {
|
|
512
512
|
x: i.startX,
|
|
513
513
|
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 +524,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
524
524
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
525
525
|
}),
|
|
526
526
|
{ datapoint: i, seriesIndex: b }
|
|
527
|
-
)), 9,
|
|
527
|
+
)), 9, pt))), 256))
|
|
528
528
|
])) : f("", !0),
|
|
529
|
-
e.value.style.chart.labels.endLabels.show ? (o(), r("g",
|
|
529
|
+
e.value.style.chart.labels.endLabels.show ? (o(), r("g", _t, [
|
|
530
530
|
(o(!0), r(w, null, $(y.value, (i, b) => (o(), r("text", {
|
|
531
531
|
x: i.endX,
|
|
532
532
|
y: a.value.top + b * h.value + e.value.style.chart.labels.endLabels.fontSize + e.value.style.chart.labels.endLabels.offsetY,
|
|
@@ -543,15 +543,15 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
543
543
|
r: e.value.style.chart.labels.endLabels.rounding
|
|
544
544
|
}),
|
|
545
545
|
{ datapoint: i, seriesIndex: b }
|
|
546
|
-
)), 9,
|
|
546
|
+
)), 9, xt))), 256))
|
|
547
547
|
])) : f("", !0)
|
|
548
548
|
]))), 256)),
|
|
549
549
|
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(
|
|
550
|
+
], 14, Ee)) : f("", !0),
|
|
551
|
+
l.$slots.watermark ? (o(), r("div", kt, [
|
|
552
|
+
C(l.$slots, "watermark", le(ae({ isPrinting: d(R) || d(U) })), void 0, !0)
|
|
553
553
|
])) : f("", !0),
|
|
554
|
-
X.value ? f("", !0) : (o(), F(
|
|
554
|
+
X.value ? f("", !0) : (o(), F(Me, {
|
|
555
555
|
key: 4,
|
|
556
556
|
config: {
|
|
557
557
|
type: "dumbbell",
|
|
@@ -565,9 +565,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
565
565
|
}, null, 8, ["config"])),
|
|
566
566
|
n("div", {
|
|
567
567
|
ref_key: "chartLegend",
|
|
568
|
-
ref:
|
|
568
|
+
ref: B
|
|
569
569
|
}, [
|
|
570
|
-
e.value.style.chart.legend.show && X.value ? (o(), F(
|
|
570
|
+
e.value.style.chart.legend.show && X.value ? (o(), F(De, {
|
|
571
571
|
key: 0,
|
|
572
572
|
legendSet: Z.value,
|
|
573
573
|
config: be.value
|
|
@@ -587,8 +587,8 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
587
587
|
cy: 10,
|
|
588
588
|
r: 9,
|
|
589
589
|
fill: t.color
|
|
590
|
-
}, null, 8,
|
|
591
|
-
], 8,
|
|
590
|
+
}, null, 8, wt)
|
|
591
|
+
], 8, Ct)),
|
|
592
592
|
se(" " + L(t.name), 1)
|
|
593
593
|
], 4)
|
|
594
594
|
]),
|
|
@@ -598,7 +598,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
598
598
|
legend: Z.value
|
|
599
599
|
}, void 0, !0)
|
|
600
600
|
], 512),
|
|
601
|
-
X.value ? (o(), F(
|
|
601
|
+
X.value ? (o(), F(Fe, {
|
|
602
602
|
key: 5,
|
|
603
603
|
hideDetails: "",
|
|
604
604
|
config: {
|
|
@@ -615,7 +615,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
615
615
|
}
|
|
616
616
|
}, {
|
|
617
617
|
content: _(() => [
|
|
618
|
-
te(
|
|
618
|
+
te(Ie, {
|
|
619
619
|
colNames: I.value.colNames,
|
|
620
620
|
head: I.value.head,
|
|
621
621
|
body: I.value.body,
|
|
@@ -627,7 +627,7 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
627
627
|
n("div", {
|
|
628
628
|
innerHTML: t,
|
|
629
629
|
style: { display: "flex", "align-items": "center" }
|
|
630
|
-
}, null, 8,
|
|
630
|
+
}, null, 8, $t)
|
|
631
631
|
]),
|
|
632
632
|
td: _(({ td: t }) => [
|
|
633
633
|
se(L(t.name || t), 1)
|
|
@@ -637,9 +637,9 @@ const Oe = ["id"], Ve = ["xmlns", "viewBox"], Ee = { key: 0 }, We = ["x1", "x2",
|
|
|
637
637
|
]),
|
|
638
638
|
_: 1
|
|
639
639
|
}, 8, ["config"])) : f("", !0)
|
|
640
|
-
], 14,
|
|
640
|
+
], 14, Ve));
|
|
641
641
|
}
|
|
642
|
-
},
|
|
642
|
+
}, Ot = /* @__PURE__ */ Oe(Lt, [["__scopeId", "data-v-cbca17d5"]]);
|
|
643
643
|
export {
|
|
644
|
-
|
|
644
|
+
Ot as default
|
|
645
645
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-D2ZScauW.cjs"),ce=require("./Title-CBcoQe02.cjs"),W=require("./usePrinter-eqT4IYET.cjs"),ie=require("./DataTable-yf_eyv8c.cjs"),de=require("./vue-ui-accordion-BhCJcWDd.cjs"),he=require("./vue-ui-skeleton-BLhbQje-.cjs"),X=require("./useNestedProp-BU7yyXFA.cjs"),ve=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),fe=["id"],me=["xmlns","viewBox"],pe=["id"],ge=["stop-color"],ke=["stop-color"],ye=["d","fill","stroke","stroke-width"],be=["x","y","height","width","fill","stroke","stroke-width","onMouseenter"],we=["x","y","font-size","fill"],Ne=["x","y","font-size","fill"],Ce={key:2,class:"vue-data-ui-watermark"},xe=["innerHTML"],$e={__name:"vue-ui-flow",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(R,{expose:Z}){const v=R,{vue_ui_flow:J}=s.useConfig(),x=e.computed(()=>!!v.dataset&&v.dataset.length);e.onMounted(()=>{s.objectIsEmpty(v.dataset)&&s.error({componentName:"VueUiFlow",type:"dataset"})});const $=e.ref(s.createUid()),P=e.ref(null),F=e.ref(0),y=e.ref(!1);function K(o){y.value=o,F.value+=1}const t=e.computed(()=>{const o=X.useNestedProp({userConfig:v.config,defaultConfig:J});return o.theme?{...X.useNestedProp({userConfig:s.themes.vue_ui_flow[o.theme]||v.config,defaultConfig:o}),customPalette:s.themePalettes[o.theme]||s.palette}:o}),{isPrinting:L,isImaging:z,generatePdf:I,generateImage:H}=W.usePrinter({elementId:`flow_${$.value}`,fileName:t.value.style.chart.title.text||"vue-ui-flow"}),B=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),O=e.computed(()=>t.value.style.chart.nodes.gap),g=e.computed(()=>t.value.style.chart.nodes.width),b=e.ref({showTable:t.value.table.show}),V=e.computed(()=>t.value.style.chart.links.width),_=e.computed(()=>!v.dataset||!v.dataset.length?[]:v.dataset.map(o=>[o[0],o[1],s.checkNaN(o[2])])),M=e.computed(()=>{const o={};function n(r){o[r]||(o[r]={inflow:0,outflow:0})}_.value.forEach(([r,a,i])=>{n(r),n(a),o[r].outflow+=i,o[a].inflow+=i});let l=0;for(const r in o){const a=Math.max(o[r].inflow,o[r].outflow);l=Math.max(l,a)}return l});function Q(o){return o/M.value*100+t.value.style.chart.nodes.minHeight}function ee(o){const n=t.value.style.chart.nodes.minHeight;return(o-n)/100*M.value}function te(o){const n={},l={};function r(u,c){n[u]||(n[u]={height:0,level:null,inflow:0,outflow:0}),n[u].level===null&&(n[u].level=c),l[c]||(l[c]=[]),l[c].includes(u)||l[c].push(u)}o.forEach(([u,c,h],k)=>{const p=n[u]?n[u].level:0,C=p+1;r(u,p),r(c,C),n[u].children||(n[u].children=[]),n[u].children.push({target:c,value:h}),n[u].outflow+=h,n[c].inflow+=h}),Object.keys(n).forEach((u,c)=>{n[u].color=B.value[c]||B.value[c%B.value.length]||s.palette[c]||s.palette[c%d.length]});for(const u in n)n[u].height=Q(Math.max(n[u].inflow,n[u].outflow)),n[u].name=u;const a={};for(const u in l){let c=0;l[u].forEach((h,k)=>{const p=n[h].height;a[h]={x:parseInt(u,10)*V.value+t.value.style.chart.padding.left,y:c,absoluteY:c,height:p,i:k,color:n[h].color,value:ee(p)},c+=p+O.value})}const i=[];for(const u in n){let c=a[u].absoluteY;n[u].children&&n[u].children.forEach(({target:h,value:k},p)=>{const C=a[h].y,S=a[u],T=a[h],G=s.checkNaN(c),U=s.checkNaN(c+k/n[u].outflow*S.height),j=s.checkNaN(C),A=s.checkNaN(C+k/n[h].inflow*T.height),ue={id:s.createUid(),source:u,target:h,path:`M ${s.checkNaN(S.x)+s.checkNaN(g.value)} ${G} L ${s.checkNaN(S.x)+s.checkNaN(g.value)} ${U} L ${s.checkNaN(T.x)} ${A} L ${s.checkNaN(T.x)} ${j} Z`,value:k,sourceColor:n[u].color,targetColor:n[h].color};i.push(ue),c+=U-G,a[h].y+=A-j})}return{nodeCoordinates:a,links:i}}const f=e.computed(()=>{const o=te(v.dataset);return{nodes:Object.keys(o.nodeCoordinates).map((n,l)=>({...o.nodeCoordinates[n],name:n})),links:o.links}}),le=e.computed(()=>oe(f.value.nodes));function oe(o){const n={};for(const r in o){const{x:a,height:i}=o[r];n[a]||(n[a]=0),n[a]+=i+O.value}return Math.max(...Object.values(n))}const E=e.computed(()=>{const{top:o,right:n,left:l,bottom:r}=t.value.style.chart.padding,a=_.value.length*V.value;return{height:le.value+o+r,width:n+Math.max(...f.value.nodes.map(i=>i.x))+g.value,left:l,top:o,right:a-n,p_top:o,p_bottom:r}});function ne(o){const n={},l={},r=new Set;return _.value.forEach(([a,i,u])=>{n[a]||(n[a]=[]),l[i]||(l[i]=[]),n[a].push(i),l[i].push(a)}),n[o]&&n[o].forEach(a=>r.add(a)),l[o]&&l[o].forEach(a=>r.add(a)),Array.from(r).concat(o)}const m=e.ref(null),w=e.ref(null);function ae(o){m.value=ne(o.name),w.value=o.name}function se(){m.value=null,w.value=null}const D=e.computed(()=>f.value.links.map(({source:o,target:n,sourceColor:l,targetColor:r,value:a})=>({source:o,target:n,sourceColor:l,targetColor:r,value:a})));function Y(){e.nextTick(()=>{const o=D.value.map((r,a)=>[[r.source],[r.target],[r.value]]),n=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[t.value.table.columnNames.source],[t.value.table.columnNames.target],[t.value.table.columnNames.value]]].concat(o),l=s.createCsvContent(n);s.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-flow"})})}const N=e.computed(()=>{const o=[t.value.table.columnNames.source,t.value.table.columnNames.target,t.value.table.columnNames.value],n=D.value.map((a,i)=>[{color:a.sourceColor,name:a.source},{color:a.targetColor,name:a.target},s.dataLabel({p:t.value.style.chart.nodes.labels.prefix,v:a.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding})]),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.source,t.value.table.columnNames.target,t.value.table.columnNames.value],head:o,body:n,config:l}});function re(){return f.value}function q(){b.value.showTable=!b.value.showTable}return Z({getData:re,generateCsv:Y,generateImage:H,generatePdf:I,toggleTable:q}),(o,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"flowChart",ref:P,class:e.normalizeClass(`vue-ui-flow ${y.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}`),id:`flow_${$.value}`},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:24px`)},[e.createVNode(ce._sfc_main,{config:{title:{cy:"flow-title",...t.value.style.chart.title},subtitle:{cy:"flow-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&x.value?(e.openBlock(),e.createBlock(W.UserOptions,{ref:"details",key:`user_option_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(L),isImaging:e.unref(z),uid:$.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:y.value,titles:{...t.value.userOptions.buttonTitles},chartElement:P.value,onToggleFullscreen:K,onGeneratePdf:e.unref(I),onGenerateCsv:Y,onGenerateImage:e.unref(H),onToggleTable:q},e.createSlots({_:2},[o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(o.$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),(e.openBlock(),e.createElementBlock("svg",{xmlns:e.unref(s.XMLNS),viewBox:`0 0 ${E.value.width} ${E.value.height}`,class:e.normalizeClass({"vue-data-ui-fullscreen--on":y.value,"vue-data-ui-fulscreen--off":!y.value}),style:e.normalizeStyle(`max-width:100%; overflow: visible; background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,(l,r)=>(e.openBlock(),e.createElementBlock("linearGradient",{id:l.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":l.sourceColor},null,8,ge),e.createElementVNode("stop",{offset:"100%","stop-color":l.targetColor},null,8,ke)],8,pe))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.links,l=>(e.openBlock(),e.createElementBlock("path",{class:"vue-ui-flow-link",d:l.path,fill:`url(#${l.id})`,stroke:t.value.style.chart.links.stroke,"stroke-width":t.value.style.chart.links.strokeWidth,style:e.normalizeStyle(`opacity:${w.value?[l.target,l.source].includes(w.value)?1:.3:t.value.style.chart.links.opacity}`)},null,12,ye))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("rect",{class:"vue-ui-flow-node",x:l.x,y:e.unref(s.checkNaN)(l.absoluteY),height:e.unref(s.checkNaN)(l.height),width:g.value,fill:l.color,stroke:t.value.style.chart.nodes.stroke,"stroke-width":t.value.style.chart.nodes.strokeWidth,onMouseenter:a=>ae(l),onMouseleave:n[0]||(n[0]=a=>se()),style:e.normalizeStyle(`opacity:${m.value?m.value.includes(l.name)?1:.2:1}`)},null,44,be))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2-t.value.style.chart.nodes.labels.fontSize/4),"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${m.value?m.value.includes(l.name)?1:0:1}`)},e.toDisplayString(t.value.style.chart.nodes.labels.abbreviation.use?e.unref(s.abbreviate)({source:l.name,length:t.value.style.chart.nodes.labels.abbreviation.length}):l.name),13,we))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value.nodes,(l,r)=>(e.openBlock(),e.createElementBlock("text",{x:l.x+g.value/2,y:e.unref(s.checkNaN)(l.absoluteY+l.height/2+t.value.style.chart.nodes.labels.fontSize),"font-size":t.value.style.chart.nodes.labels.fontSize,fill:e.unref(s.adaptColorToBackground)(l.color),"text-anchor":"middle",style:e.normalizeStyle(`pointer-events: none; opacity:${m.value?m.value.includes(l.name)?1:0:1}`)},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.chart.nodes.labels.formatter,l.value,e.unref(s.dataLabel)({p:t.value.style.chart.nodes.labels.prefix,v:l.value,s:t.value.style.chart.nodes.labels.suffix,r:t.value.style.chart.nodes.labels.rounding}),{datapoint:l,seriesIndex:r})),13,Ne))),256)),e.renderSlot(o.$slots,"svg",{svg:E.value},void 0,!0)],14,me)),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ce,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(L)||e.unref(z)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(he.default,{key:3,config:{type:"flow",style:{backgroundColor:t.value.style.chart.backgroundColor}}},null,8,["config"])),x.value?(e.openBlock(),e.createBlock(de.default,{key:4,hideDetails:"",config:{open:b.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(ie.DataTable,{colNames:N.value.colNames,head:N.value.head,body:N.value.body,config:N.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[1]||(n[1]=l=>b.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,xe)]),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,fe))}},Be=ve._export_sfc($e,[["__scopeId","data-v-c5ae33a6"]]);exports.default=Be;
|