vue-data-ui 2.3.57 → 2.3.59
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-ycy3_Slf.js → Arrow-BJ47KXjY.js} +1 -1
- package/dist/{Arrow-DzUipdZc.cjs → Arrow-VxZlHkwt.cjs} +1 -1
- package/dist/{BaseIcon-BkQhR5to.cjs → BaseIcon-Bv5uh10R.cjs} +1 -1
- package/dist/{BaseIcon-DuWxvGrs.js → BaseIcon-Fm7sUbd2.js} +1 -1
- package/dist/{DataTable-Cp8-9z9I.js → DataTable-1VV0us-8.js} +2 -2
- package/dist/{DataTable-BRux41DB.cjs → DataTable-CPAt686N.cjs} +1 -1
- package/dist/{Legend-Bkl0mNRU.cjs → Legend-BJ2Mynop.cjs} +1 -1
- package/dist/{Legend-Dxg4fgms.js → Legend-DB6v_LvZ.js} +1 -1
- package/dist/{Shape-9atoPZLR.js → Shape-B_f1_6Ob.js} +1 -1
- package/dist/{Shape-BqcaWTo1.cjs → Shape-DWZSJJ6-.cjs} +1 -1
- package/dist/{Slicer-DWXMDMkg.js → Slicer-CHiUxRAh.js} +55 -52
- package/dist/Slicer-PPS43jOo.cjs +1 -0
- package/dist/{Title-JorKJ3kW.cjs → Title-CR-JDJwq.cjs} +1 -1
- package/dist/{Title-Bft_Qodf.js → Title-xP0rAF4q.js} +1 -1
- package/dist/{Tooltip-DuhcODsb.cjs → Tooltip-B4DNihSF.cjs} +1 -1
- package/dist/{Tooltip-DsJ_DDEa.js → Tooltip-DfBa_7Ur.js} +1 -1
- package/dist/index-CDK3omwG.cjs +4 -0
- package/dist/{index-ByARe6xk.js → index-CpHoINpJ.js} +21 -19
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +2 -0
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useNestedProp-DcnyJpjm.js → useNestedProp-BOjw3Yqn.js} +1 -1
- package/dist/{useNestedProp-BUoCZrmY.cjs → useNestedProp-CaaW8JIS.cjs} +1 -1
- package/dist/{usePrinter-BUBRC6GE.js → usePrinter-BHy-mfVg.js} +1 -1
- package/dist/{usePrinter-D5ewpTd3.cjs → usePrinter-vQu-8tRD.cjs} +1 -1
- package/dist/{vue-data-ui-BzsqnKj2.cjs → vue-data-ui-Ccdrn4OV.cjs} +1 -1
- package/dist/{vue-data-ui-67aBhtaH.js → vue-data-ui-Dcg7DPMn.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +5 -5
- package/dist/{vue-ui-3d-bar-CQ656C3D.js → vue-ui-3d-bar-BqtnNU7h.js} +7 -7
- package/dist/{vue-ui-3d-bar-NcBKcawL.cjs → vue-ui-3d-bar-DdBlV5AX.cjs} +1 -1
- package/dist/{vue-ui-accordion-B7sGXK-8.js → vue-ui-accordion-BZloYo0L.js} +3 -3
- package/dist/{vue-ui-accordion-CSnFq9e7.cjs → vue-ui-accordion-EVAolVkD.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DcN9DXL7.js → vue-ui-age-pyramid-CTxkOn4v.js} +8 -8
- package/dist/{vue-ui-age-pyramid-B8KDJTmK.cjs → vue-ui-age-pyramid-Ce3DbeqC.cjs} +1 -1
- package/dist/{vue-ui-annotator-DINvjGdW.js → vue-ui-annotator-BDWKiQ6S.js} +1 -1
- package/dist/{vue-ui-annotator-BcKsg71t.cjs → vue-ui-annotator-D_AK0JCi.cjs} +1 -1
- package/dist/{vue-ui-candlestick-dE7VZ9c2.js → vue-ui-candlestick-ByA9FGZb.js} +9 -9
- package/dist/{vue-ui-candlestick-DokpJUMI.cjs → vue-ui-candlestick-CIKgu0F2.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-CyvXkNVJ.js → vue-ui-carousel-table-BnYxbq5A.js} +4 -4
- package/dist/{vue-ui-carousel-table-CfkAq3aZ.cjs → vue-ui-carousel-table-ez9gbOZ7.cjs} +1 -1
- package/dist/{vue-ui-chestnut-BtbUx2K6.js → vue-ui-chestnut-BumsSmCv.js} +6 -6
- package/dist/{vue-ui-chestnut-C7UoeDnX.cjs → vue-ui-chestnut-CnYqa2Fx.cjs} +1 -1
- package/dist/{vue-ui-cursor-a04KGiW0.js → vue-ui-cursor-D-4-MMw7.js} +2 -2
- package/dist/{vue-ui-cursor-CdZf-yX5.cjs → vue-ui-cursor-Drl8jibt.cjs} +1 -1
- package/dist/{vue-ui-dashboard-C16uiqyH.js → vue-ui-dashboard-B_iV-3hq.js} +2 -2
- package/dist/{vue-ui-dashboard-BVfWXpf8.cjs → vue-ui-dashboard-CX0jA181.cjs} +1 -1
- package/dist/{vue-ui-digits-DrK1MsGL.js → vue-ui-digits-DMhl9plv.js} +2 -2
- package/dist/{vue-ui-digits-Ct2vS1BN.cjs → vue-ui-digits-RAZl_4Kb.cjs} +1 -1
- package/dist/{vue-ui-donut-DCw94nm5.cjs → vue-ui-donut-BG28U01c.cjs} +1 -1
- package/dist/{vue-ui-donut-gBfPKxL5.js → vue-ui-donut-BpQC9-Uz.js} +9 -9
- package/dist/{vue-ui-donut-evolution-w2VBVy8J.cjs → vue-ui-donut-evolution-BWvrYKlH.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-ci4AbPDx.js → vue-ui-donut-evolution-DPU-Nd8y.js} +9 -9
- package/dist/{vue-ui-dumbbell-DSeY7g70.cjs → vue-ui-dumbbell-2Lsks-8o.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CfRDGglI.js → vue-ui-dumbbell-C4JnuC1b.js} +8 -8
- package/dist/{vue-ui-flow-CCRXuD2w.cjs → vue-ui-flow-DBhdVKxF.cjs} +1 -1
- package/dist/{vue-ui-flow-sxRGOd3v.js → vue-ui-flow-DSdWqWgh.js} +7 -7
- package/dist/{vue-ui-galaxy-BtRwEK-N.js → vue-ui-galaxy-148JtEdK.js} +9 -9
- package/dist/{vue-ui-galaxy-7uOmICFQ.cjs → vue-ui-galaxy-BMsdd9Rh.cjs} +1 -1
- package/dist/{vue-ui-gauge-DF5cMUZq.js → vue-ui-gauge-DOJ98R_N.js} +5 -5
- package/dist/{vue-ui-gauge-CcGerm6-.cjs → vue-ui-gauge-fVk9B_1W.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BxSR6Npw.js → vue-ui-gizmo-KeWvd226.js} +2 -2
- package/dist/{vue-ui-gizmo-DOdbL7oJ.cjs → vue-ui-gizmo-a6WNWyf7.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BFebVyoq.js → vue-ui-heatmap-BGsSOTPJ.js} +176 -173
- package/dist/vue-ui-heatmap-DFpSo2gr.cjs +1 -0
- package/dist/{vue-ui-kpi-Bh3EQVzo.cjs → vue-ui-kpi-Dhah6Fgx.cjs} +1 -1
- package/dist/{vue-ui-kpi-kz6LxY4z.js → vue-ui-kpi-Leb1rK38.js} +3 -3
- package/dist/{vue-ui-mini-loader-XvpXZ4Lu.js → vue-ui-mini-loader-BLH4ncUB.js} +2 -2
- package/dist/{vue-ui-mini-loader-BUmmuBm2.cjs → vue-ui-mini-loader-Dpa9uYkn.cjs} +1 -1
- package/dist/{vue-ui-molecule-DAqPp6P1.cjs → vue-ui-molecule-DjvOvDUa.cjs} +1 -1
- package/dist/{vue-ui-molecule-CV9jYVPn.js → vue-ui-molecule-DuPAOQcj.js} +20 -20
- package/dist/{vue-ui-mood-radar-Rpgf2fO4.cjs → vue-ui-mood-radar-AOHK6R10.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BXksXL9W.js → vue-ui-mood-radar-BmcIz0JR.js} +16 -16
- package/dist/{vue-ui-nested-donuts-DP44vR6_.js → vue-ui-nested-donuts-BYLc86qs.js} +9 -9
- package/dist/{vue-ui-nested-donuts-Bi9o-a5M.cjs → vue-ui-nested-donuts-CMmcmAd9.cjs} +1 -1
- package/dist/{vue-ui-onion-BdQtE7OR.cjs → vue-ui-onion-BjG8xbMh.cjs} +1 -1
- package/dist/{vue-ui-onion-C-hnaK6-.js → vue-ui-onion-shZ4g9mJ.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-Cl7HwAhr.cjs → vue-ui-parallel-coordinate-plot-O7lS6u2q.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-CRfWMtfW.js → vue-ui-parallel-coordinate-plot-wv0O9t7U.js} +10 -10
- package/dist/{vue-ui-quadrant-BvmZuTNr.js → vue-ui-quadrant-BRF5Czj4.js} +52 -52
- package/dist/{vue-ui-quadrant-2jWkCnCZ.cjs → vue-ui-quadrant-CuB8sYgF.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Cf2bonoP.js → vue-ui-quick-chart-BQdUHrm2.js} +6 -6
- package/dist/{vue-ui-quick-chart-Dljdowyo.cjs → vue-ui-quick-chart-DsVFRO68.cjs} +1 -1
- package/dist/{vue-ui-radar-D8WUIeAJ.js → vue-ui-radar-CLUs0tD9.js} +20 -20
- package/dist/{vue-ui-radar-DWQT59Y3.cjs → vue-ui-radar-lcS6n5TC.cjs} +1 -1
- package/dist/{vue-ui-rating-C6EdVOFi.cjs → vue-ui-rating-CA25nHJe.cjs} +1 -1
- package/dist/{vue-ui-rating-DA5yVA82.js → vue-ui-rating-Dcy1l1PB.js} +10 -10
- package/dist/{vue-ui-relation-circle-D1HV7sEy.js → vue-ui-relation-circle-DC-RFa9X.js} +5 -5
- package/dist/{vue-ui-relation-circle-D1Dfp3vd.cjs → vue-ui-relation-circle-Drr6Gdnq.cjs} +1 -1
- package/dist/{vue-ui-rings-9KX262V6.js → vue-ui-rings-DbPbelCU.js} +9 -9
- package/dist/{vue-ui-rings-D7ZSknfw.cjs → vue-ui-rings-DxqSAs9h.cjs} +1 -1
- package/dist/{vue-ui-scatter-BS4fuY2e.js → vue-ui-scatter-D2jYZ4Wu.js} +67 -67
- package/dist/{vue-ui-scatter-BkE4TBcf.cjs → vue-ui-scatter-xyLvaw0d.cjs} +1 -1
- package/dist/{vue-ui-screenshot-BNsuh29D.cjs → vue-ui-screenshot-DGqjaE1x.cjs} +1 -1
- package/dist/{vue-ui-screenshot-ChhpX9vN.js → vue-ui-screenshot-DXCBzrPZ.js} +1 -1
- package/dist/{vue-ui-skeleton-H7E3SBMd.cjs → vue-ui-skeleton-DRDC3yxK.cjs} +1 -1
- package/dist/{vue-ui-skeleton-C2W5etGt.js → vue-ui-skeleton-DuM6yey6.js} +36 -36
- package/dist/{vue-ui-smiley-CSVsepz-.cjs → vue-ui-smiley-BCmY1siL.cjs} +1 -1
- package/dist/{vue-ui-smiley-DmvbdKQH.js → vue-ui-smiley-DQrvx_S9.js} +2 -2
- package/dist/{vue-ui-spark-trend-CIRMNMBi.js → vue-ui-spark-trend-B9PR0wxN.js} +17 -17
- package/dist/{vue-ui-spark-trend-B_jzBm-L.cjs → vue-ui-spark-trend-Kj1bJmBL.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Bc0UGC0I.cjs → vue-ui-sparkbar-C_vNsxM_.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-CsPU3f7E.js → vue-ui-sparkbar-DiU5Yt-V.js} +3 -3
- package/dist/{vue-ui-sparkgauge-sf5NkOzU.js → vue-ui-sparkgauge-BnF9Vbs0.js} +9 -9
- package/dist/{vue-ui-sparkgauge-B9Z7UC0c.cjs → vue-ui-sparkgauge-SlYA1lqc.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BcbNk4hY.cjs → vue-ui-sparkhistogram-BUBwn9A4.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-C9q2fgqW.js → vue-ui-sparkhistogram-CsOfCo_3.js} +4 -4
- package/dist/{vue-ui-sparkline-BW3H6hsT.js → vue-ui-sparkline-B628G3Nl.js} +18 -18
- package/dist/{vue-ui-sparkline-Cc-z4lug.cjs → vue-ui-sparkline-CoUeD8Np.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DRUOzvw_.cjs → vue-ui-sparkstackbar-Cr-Q7uDo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DtdKmv0C.js → vue-ui-sparkstackbar-DIHGbrF5.js} +3 -3
- package/dist/{vue-ui-stackbar-C3hiDzB9.js → vue-ui-stackbar-DCbJhdZy.js} +22 -22
- package/dist/{vue-ui-stackbar-CJSxzmsC.cjs → vue-ui-stackbar-DMyP3IRK.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-D6RdcG4r.js → vue-ui-strip-plot-CNb3VtYF.js} +9 -9
- package/dist/{vue-ui-strip-plot-Dea20UQo.cjs → vue-ui-strip-plot-Da_TQpOq.cjs} +1 -1
- package/dist/{vue-ui-table-Cl83ltew.js → vue-ui-table-BqcI8E7E.js} +1 -1
- package/dist/{vue-ui-table-DThpCd--.cjs → vue-ui-table-CjuXpy2d.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-C9znKJA2.cjs → vue-ui-table-heatmap-D6px_Z1a.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-P1qoQg4L.js → vue-ui-table-heatmap-nbBDuSiw.js} +7 -7
- package/dist/{vue-ui-table-sparkline-ByBzCnhr.js → vue-ui-table-sparkline-Blbaz2zX.js} +10 -10
- package/dist/{vue-ui-table-sparkline-B56XlhbD.cjs → vue-ui-table-sparkline-CqNPx5Zw.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CEtqGDhU.js → vue-ui-thermometer-BCGHbgj9.js} +5 -5
- package/dist/{vue-ui-thermometer-D1BIwe-x.cjs → vue-ui-thermometer-coTC0T6k.cjs} +1 -1
- package/dist/{vue-ui-timer-CZv_iq9A.cjs → vue-ui-timer-BjqbxjQO.cjs} +1 -1
- package/dist/{vue-ui-timer-_OXWxSrR.js → vue-ui-timer-DhpBvc_5.js} +4 -4
- package/dist/{vue-ui-tiremarks-Vln9izs8.js → vue-ui-tiremarks-CNhB7Iqe.js} +5 -5
- package/dist/{vue-ui-tiremarks-Crjj6lAQ.cjs → vue-ui-tiremarks-DgbTo_Cb.cjs} +1 -1
- package/dist/{vue-ui-treemap-CvZ_PXHg.cjs → vue-ui-treemap-B5moKzuO.cjs} +1 -1
- package/dist/{vue-ui-treemap-CVSmQvg5.js → vue-ui-treemap-C4memkYu.js} +9 -9
- package/dist/{vue-ui-vertical-bar-B6gMyH90.cjs → vue-ui-vertical-bar-DtkGW5Tk.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DW83JGF2.js → vue-ui-vertical-bar-LZ-GMZ2T.js} +9 -9
- package/dist/{vue-ui-waffle-C9SFbGDx.js → vue-ui-waffle-Cd4IU62n.js} +9 -9
- package/dist/{vue-ui-waffle-Ck6_fLgH.cjs → vue-ui-waffle-CtY5CSX9.cjs} +1 -1
- package/dist/{vue-ui-wheel-DaA4af-u.js → vue-ui-wheel-CaEAQhJt.js} +5 -5
- package/dist/{vue-ui-wheel-DvxUmFh9.cjs → vue-ui-wheel-Do3pWPFB.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-X1mDRHqA.js → vue-ui-word-cloud-BSalPYqO.js} +28 -28
- package/dist/{vue-ui-word-cloud-B_3r5g7T.cjs → vue-ui-word-cloud-pzaBe3Et.cjs} +1 -1
- package/dist/{vue-ui-xy-CQGKoYPl.cjs → vue-ui-xy-BgLF5ZNP.cjs} +1 -1
- package/dist/{vue-ui-xy-CID8ZHKi.js → vue-ui-xy-C7tpVpGu.js} +21 -21
- package/dist/{vue-ui-xy-canvas-BiqWum4l.cjs → vue-ui-xy-canvas-OuDGiOOW.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BNAlSGC5.js → vue-ui-xy-canvas-rHcYmvec.js} +36 -36
- package/package.json +1 -1
- package/dist/Slicer-DJ_rlsfN.cjs +0 -1
- package/dist/index-vvhNQFio.cjs +0 -4
- package/dist/vue-ui-heatmap-bCvQEgv4.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as f, computed as $, onMounted as O, openBlock as l, createElementBlock as i, normalizeStyle as a, createElementVNode as n, toDisplayString as p, createCommentVNode as d, Fragment as E, renderList as L, unref as m, withKeys as U, createTextVNode as D } from "vue";
|
|
2
|
-
import { u as K, c as T, o as
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
2
|
+
import { u as K, c as T, o as H, e as P, X as _, s as N, Q as F } from "./index-CpHoINpJ.js";
|
|
3
|
+
import { u as Q } from "./useNestedProp-BOjw3Yqn.js";
|
|
4
|
+
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const q = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "vue-ui-rating-title",
|
|
8
8
|
style: { width: "100%" }
|
|
9
|
-
},
|
|
9
|
+
}, J = ["src", "height", "width"], Z = ["xmlns", "height", "width"], tt = ["id"], et = ["stop-color"], lt = ["stop-color"], it = ["points", "fill", "stroke", "stroke-width"], at = ["src", "alt", "height", "width", "id"], ot = ["xmlns", "viewBox", "height", "id"], st = ["id"], nt = ["stop-color"], rt = ["stop-color"], ut = ["points", "fill", "stroke"], vt = ["xmlns", "height"], dt = ["onClick", "onMouseenter", "onKeyup"], yt = ["onMouseenter"], pt = {
|
|
10
10
|
__name: "vue-ui-rating",
|
|
11
11
|
props: {
|
|
12
12
|
config: {
|
|
@@ -24,7 +24,7 @@ const J = {
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["rate"],
|
|
26
26
|
setup(M, { expose: A, emit: V }) {
|
|
27
|
-
const v = M, { vue_ui_rating: R } = K(), x = f(T()), b = f(!1), u = f(void 0), w = f([]), t = $(() =>
|
|
27
|
+
const v = M, { vue_ui_rating: R } = K(), x = f(T()), b = f(!1), u = f(void 0), w = f([]), t = $(() => Q({
|
|
28
28
|
userConfig: v.config,
|
|
29
29
|
defaultConfig: R
|
|
30
30
|
})), X = $(() => typeof v.dataset.rating == "object" && !Array.isArray(v.dataset.rating) ? B(v.dataset.rating) : v.dataset.rating), j = $(() => typeof v.dataset.rating == "object" && !Array.isArray(v.dataset.rating)), r = f(X.value), k = f(t.value.type === "image"), c = f(t.value.readonly);
|
|
@@ -40,7 +40,7 @@ const J = {
|
|
|
40
40
|
return Math.min(t.value.to, Math.max(t.value.from, g));
|
|
41
41
|
}
|
|
42
42
|
O(() => {
|
|
43
|
-
|
|
43
|
+
H(v.dataset) && P({
|
|
44
44
|
componentName: "VueUiRating",
|
|
45
45
|
type: "dataset"
|
|
46
46
|
});
|
|
@@ -81,7 +81,7 @@ const J = {
|
|
|
81
81
|
b.value = !1, u.value = void 0;
|
|
82
82
|
})
|
|
83
83
|
}, [
|
|
84
|
-
t.value.style.title.text ? (l(), i("div",
|
|
84
|
+
t.value.style.title.text ? (l(), i("div", q, [
|
|
85
85
|
n("div", {
|
|
86
86
|
style: a(`color:${t.value.style.title.color};font-weight:${t.value.style.title.bold ? "bold" : "normal"};text-align:${t.value.style.title.textAlign};margin-bottom:${t.value.style.title.offsetY}px;font-size:${t.value.style.title.fontSize}px`)
|
|
87
87
|
}, p(t.value.style.title.text), 5),
|
|
@@ -113,7 +113,7 @@ const J = {
|
|
|
113
113
|
width: t.value.style.itemSize,
|
|
114
114
|
class: "vue-ui-rating-unit",
|
|
115
115
|
style: a(`position:absolute;top:0;left:0;opacity:${isNaN(u.value) ? t.value.style.image.inactiveOpacity : h(e, !0)}`)
|
|
116
|
-
}, null, 12,
|
|
116
|
+
}, null, 12, J)) : (l(), i("svg", {
|
|
117
117
|
key: 1,
|
|
118
118
|
xmlns: m(_),
|
|
119
119
|
viewBox: "0 0 100 100",
|
|
@@ -265,7 +265,7 @@ const J = {
|
|
|
265
265
|
}, p(isNaN(r.value) ? "" : r.value.toFixed(t.value.style.rating.roundingValue)), 5)) : d("", !0)
|
|
266
266
|
], 36));
|
|
267
267
|
}
|
|
268
|
-
}, xt = /* @__PURE__ */
|
|
268
|
+
}, xt = /* @__PURE__ */ W(pt, [["__scopeId", "data-v-86ced882"]]);
|
|
269
269
|
export {
|
|
270
270
|
xt as default
|
|
271
271
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useCssVars as ye, computed as c, ref as o, onMounted as me, onBeforeUnmount as ke, openBlock as a, createElementBlock as u, normalizeStyle as g, createVNode as _e, createCommentVNode as $, createBlock as Y, unref as h, createSlots as $e, withCtx as E, renderSlot as p, normalizeProps as q, guardReactiveProps as H, normalizeClass as z, createElementVNode as pe, Fragment as b, renderList as O, toDisplayString as xe } from "vue";
|
|
2
|
-
import { u as Ce, c as we, t as be, a as Oe, p as J, b as Pe, o as Ae, e as K, g as Ie, X as Fe } from "./index-
|
|
2
|
+
import { u as Ce, c as we, t as be, a as Oe, p as J, b as Pe, o as Ae, e as K, g as Ie, X as Fe } from "./index-CpHoINpJ.js";
|
|
3
3
|
import { t as Ee, u as ze } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as Le } from "./Title-
|
|
5
|
-
import { u as Ne, U as Re } from "./usePrinter-
|
|
6
|
-
import Se from "./vue-ui-skeleton-
|
|
7
|
-
import { u as Q } from "./useNestedProp-
|
|
4
|
+
import { _ as Le } from "./Title-xP0rAF4q.js";
|
|
5
|
+
import { u as Ne, U as Re } from "./usePrinter-BHy-mfVg.js";
|
|
6
|
+
import Se from "./vue-ui-skeleton-DuM6yey6.js";
|
|
7
|
+
import { u as Q } from "./useNestedProp-BOjw3Yqn.js";
|
|
8
8
|
import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const Me = ["id"], je = ["xmlns", "viewBox"], Be = ["cx", "cy", "r", "stroke", "stroke-width"], Ge = { key: 0 }, Ue = ["stroke", "d", "stroke-width"], De = { key: 1 }, Ve = ["stroke", "x1", "x2", "y1", "y2"], We = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], Xe = ["cx", "cy", "fill", "onClick", "r"], Ye = {
|
|
10
10
|
key: 3,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-vvhNQFio.cjs"),R=require("./useResponsive-B3TrDDIG.cjs"),re=require("./Title-JorKJ3kW.cjs"),T=require("./usePrinter-D5ewpTd3.cjs"),ne=require("./vue-ui-skeleton-H7E3SBMd.cjs"),V=require("./useNestedProp-BUoCZrmY.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],se=["xmlns","viewBox"],oe=["cx","cy","r","stroke","stroke-width"],ue={key:0},ce=["stroke","d","stroke-width"],de={key:1},ve=["stroke","x1","x2","y1","y2"],fe=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],ge=["cx","cy","fill","onClick","r"],me={key:3,class:"vue-data-ui-watermark"},ye={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(M,{expose:j}){const c=M;e.useCssVars(t=>({"6c440314":W.value,"6c6a2a1a":D.value,"7e559f95":X.value}));const{vue_ui_relation_circle:q}=o.useConfig(),p=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),f=e.ref(o.createUid()),x=e.ref(0),y=e.ref(null),w=e.ref(null),r=e.computed(()=>{const t=V.useNestedProp({userConfig:c.config,defaultConfig:q});return t.theme?{...V.useNestedProp({userConfig:o.themes.vue_ui_relation_circle[t.theme]||c.config,defaultConfig:t}),customPalette:o.themePalettes[t.theme]||o.palette}:t}),{isPrinting:b,isImaging:B,generatePdf:P,generateImage:O}=T.usePrinter({elementId:`relation_circle_${f.value}`,fileName:r.value.style.title.text||"vue-ui-relation-circle"}),E=e.computed(()=>o.convertCustomPalette(r.value.customPalette)),v=e.ref([]),g=e.ref([]),a=e.ref({}),u=e.ref([]),G=e.ref(0),_=e.computed(()=>c.dataset.slice(0,r.value.style.limit)),C=e.ref(r.value.style.size),s=e.ref({height:r.value.style.size,width:r.value.style.size}),d=e.computed({get(){return C.value*r.value.style.circle.radiusProportion},set(t){return t}}),U=e.computed(()=>r.value.style.links.curved),D=e.computed(()=>`${r.value.style.animation.speedMs}ms`),W=e.computed(()=>d.value*2),X=e.computed(()=>d.value*4),h=e.ref(null);e.onMounted(()=>{if(o.objectIsEmpty(c.dataset)?o.error({componentName:"VueUiRelationCircle",type:"dataset"}):c.dataset.forEach((i,l)=>{o.getMissingDatasetAttributes({datasetObject:i,requiredAttributes:["id","label","relations","weights"]}).forEach(n=>{o.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:n,index:l})})}),r.value.responsive){const i=R.throttle(()=>{const{width:l,height:n}=R.useResponsive({chart:y.value,title:r.value.style.title.text?w.value:null});C.value=Math.min(l,n),s.value.width=l,s.value.height=n,d.value=C.value*r.value.style.circle.radiusProportion,v.value=[],g.value=[],S(),z()});h.value=new ResizeObserver(i),h.value.observe(y.value.parentNode)}else S(),z();document.getElementById(`relation_circle_${f.value}`).addEventListener("click",A)}),e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${f.value}`).removeEventListener("click",A),h.value&&h.value.disconnect()});function A(t){const i=t.target;i&&Array.from(i.classList).includes("vue-ui-user-options")||i&&Array.from(i.classList).includes("vue-ui-user-options-summary")||i&&Array.from(i.classList).includes("vue-data-ui-button")||i&&Array.from(i.classList).includes("vue-ui-relation-circle-legend")||(a.value={},u.value=[])}function S(){const t=6.28319/_.value.length,i=360/_.value.length;let l=0,n=0;_.value.forEach((m,$)=>{const te=d.value*Math.cos(l)+s.value.width/2,le=d.value*Math.sin(l)+s.value.height/2+r.value.style.circle.offsetY;v.value.push({x:te,y:le,...m,color:m.color?m.color:E.value[$]?E.value[$]:o.palette[$],regAngle:n}),l+=t,n+=i})}function z(){v.value.forEach(t=>{v.value.filter(l=>l.relations.includes(t.id)).forEach((l,n)=>{g.value.push({weight:t.weights&&t.weights[n]?t.weights[n]:1,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,...t})})})}const Y=e.computed(()=>Math.max(...g.value.map(t=>t.weight)));function H(t){return Object.hasOwn(a.value,"x")?u.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function I(t){return Object.hasOwn(a.value,"x")?t.colorTarget:t.colorSource}function F(t){return Object.hasOwn(a.value,"x")?u.value.includes(t.id)&&t.relationId===`${t.id}_${a.value.id}`||t.relationId===`${a.value.id}_${t.id}`?`opacity:1;stroke-width:${L(t)}`:"opacity: 0":"opacity: 1"}function J(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function K(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function Q(t){return Object.hasOwn(a.value,"x")?a.value.id===t.id||u.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function Z(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function N(t){G.value=360-t.regAngle,a.value.id&&t.id===a.value.id?(a.value={},u.value=[]):(a.value=t,u.value=[...t.relations])}function L(t){return t.weight/Y.value*r.value.style.links.maxWidth}const k=e.ref(!1);function ee(t){k.value=t,x.value+=1}return j({generatePdf:P,generateImage:O}),(t,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:y,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor};text-align:center;${r.value.responsive?"height: 100%":""}`),id:`relation_circle_${f.value}`},[r.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:w,style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor}`)},[e.createVNode(re._sfc_main,{config:{title:{cy:"relation-div-title",...r.value.style.title},subtitle:{cy:"relation-div-subtitle",...r.value.style.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),r.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(T.UserOptions,{ref:"details",key:`user_options_${x.value}`,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,isPrinting:e.unref(b),isImaging:e.unref(B),uid:f.value,hasPdf:r.value.userOptions.buttons.pdf,hasImg:r.value.userOptions.buttons.img,hasFullscreen:r.value.userOptions.buttons.img,hasXls:!1,isFullscreen:k.value,titles:{...r.value.userOptions.buttonTitles},chartElement:y.value,onToggleFullscreen:ee,onGeneratePdf:e.unref(P),onGenerateImage:e.unref(O)},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value},"relation-circle"]),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,width:"100%",style:e.normalizeStyle(`user-select:none; background:${r.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:(s.value.width<=0?1e-4:s.value.width)/2,cy:(s.value.height<=0?1e-4:s.value.height)/2+r.value.style.circle.offsetY,r:d.value<=0?1e-4:d.value,stroke:r.value.style.circle.stroke,"stroke-width":r.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,oe),U.value?(e.openBlock(),e.createElementBlock("g",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${n}`,style:e.normalizeStyle(F(l)),stroke:I(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":a.value.hasOwnProperty("id")&&u.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${s.value.width/2},${s.value.height/2+r.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":L(l),"stroke-linecap":"round"},null,14,ce))),128))])):(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,n)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${n}`,stroke:I(l),style:e.normalizeStyle(F(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":a.value.hasOwnProperty("id")&&u.value.includes(l.id)}),"stroke-linecap":"round"},null,14,ve))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${n}`,"text-anchor":J(l),transform:Z(l),x:K(l),y:l.y+5,onClick:m=>N(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":a.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${r.value.style.fontFamily};${Q(l)}`),"font-size":r.value.style.labels.fontSize,fill:r.value.style.labels.color},e.toDisplayString(l.label),13,fe))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${n}`,style:e.normalizeStyle(H(l)),class:"vue-ui-relation-circle-plot",fill:r.value.style.plot.color,onClick:m=>N(l),r:r.value.style.plot.radius},null,12,ge))),128)),e.renderSlot(t.$slots,"svg",{svg:s.value},void 0,!0)],14,se)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",me,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(b)||e.unref(B)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ne.default,{key:4,config:{type:"relationCircle",style:{backgroundColor:r.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,ae))}},he=ie._export_sfc(ye,[["__scopeId","data-v-2352f00b"]]);exports.default=he;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CDK3omwG.cjs"),R=require("./useResponsive-B3TrDDIG.cjs"),re=require("./Title-CR-JDJwq.cjs"),T=require("./usePrinter-vQu-8tRD.cjs"),ne=require("./vue-ui-skeleton-DRDC3yxK.cjs"),V=require("./useNestedProp-CaaW8JIS.cjs"),ie=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ae=["id"],se=["xmlns","viewBox"],oe=["cx","cy","r","stroke","stroke-width"],ue={key:0},ce=["stroke","d","stroke-width"],de={key:1},ve=["stroke","x1","x2","y1","y2"],fe=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],ge=["cx","cy","fill","onClick","r"],me={key:3,class:"vue-data-ui-watermark"},ye={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(M,{expose:j}){const c=M;e.useCssVars(t=>({"6c440314":W.value,"6c6a2a1a":D.value,"7e559f95":X.value}));const{vue_ui_relation_circle:q}=o.useConfig(),p=e.computed(()=>!!c.dataset&&Object.keys(c.dataset).length),f=e.ref(o.createUid()),x=e.ref(0),y=e.ref(null),w=e.ref(null),r=e.computed(()=>{const t=V.useNestedProp({userConfig:c.config,defaultConfig:q});return t.theme?{...V.useNestedProp({userConfig:o.themes.vue_ui_relation_circle[t.theme]||c.config,defaultConfig:t}),customPalette:o.themePalettes[t.theme]||o.palette}:t}),{isPrinting:b,isImaging:B,generatePdf:P,generateImage:O}=T.usePrinter({elementId:`relation_circle_${f.value}`,fileName:r.value.style.title.text||"vue-ui-relation-circle"}),E=e.computed(()=>o.convertCustomPalette(r.value.customPalette)),v=e.ref([]),g=e.ref([]),a=e.ref({}),u=e.ref([]),G=e.ref(0),_=e.computed(()=>c.dataset.slice(0,r.value.style.limit)),C=e.ref(r.value.style.size),s=e.ref({height:r.value.style.size,width:r.value.style.size}),d=e.computed({get(){return C.value*r.value.style.circle.radiusProportion},set(t){return t}}),U=e.computed(()=>r.value.style.links.curved),D=e.computed(()=>`${r.value.style.animation.speedMs}ms`),W=e.computed(()=>d.value*2),X=e.computed(()=>d.value*4),h=e.ref(null);e.onMounted(()=>{if(o.objectIsEmpty(c.dataset)?o.error({componentName:"VueUiRelationCircle",type:"dataset"}):c.dataset.forEach((i,l)=>{o.getMissingDatasetAttributes({datasetObject:i,requiredAttributes:["id","label","relations","weights"]}).forEach(n=>{o.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:n,index:l})})}),r.value.responsive){const i=R.throttle(()=>{const{width:l,height:n}=R.useResponsive({chart:y.value,title:r.value.style.title.text?w.value:null});C.value=Math.min(l,n),s.value.width=l,s.value.height=n,d.value=C.value*r.value.style.circle.radiusProportion,v.value=[],g.value=[],S(),z()});h.value=new ResizeObserver(i),h.value.observe(y.value.parentNode)}else S(),z();document.getElementById(`relation_circle_${f.value}`).addEventListener("click",A)}),e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${f.value}`).removeEventListener("click",A),h.value&&h.value.disconnect()});function A(t){const i=t.target;i&&Array.from(i.classList).includes("vue-ui-user-options")||i&&Array.from(i.classList).includes("vue-ui-user-options-summary")||i&&Array.from(i.classList).includes("vue-data-ui-button")||i&&Array.from(i.classList).includes("vue-ui-relation-circle-legend")||(a.value={},u.value=[])}function S(){const t=6.28319/_.value.length,i=360/_.value.length;let l=0,n=0;_.value.forEach((m,$)=>{const te=d.value*Math.cos(l)+s.value.width/2,le=d.value*Math.sin(l)+s.value.height/2+r.value.style.circle.offsetY;v.value.push({x:te,y:le,...m,color:m.color?m.color:E.value[$]?E.value[$]:o.palette[$],regAngle:n}),l+=t,n+=i})}function z(){v.value.forEach(t=>{v.value.filter(l=>l.relations.includes(t.id)).forEach((l,n)=>{g.value.push({weight:t.weights&&t.weights[n]?t.weights[n]:1,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,...t})})})}const Y=e.computed(()=>Math.max(...g.value.map(t=>t.weight)));function H(t){return Object.hasOwn(a.value,"x")?u.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function I(t){return Object.hasOwn(a.value,"x")?t.colorTarget:t.colorSource}function F(t){return Object.hasOwn(a.value,"x")?u.value.includes(t.id)&&t.relationId===`${t.id}_${a.value.id}`||t.relationId===`${a.value.id}_${t.id}`?`opacity:1;stroke-width:${L(t)}`:"opacity: 0":"opacity: 1"}function J(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function K(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function Q(t){return Object.hasOwn(a.value,"x")?a.value.id===t.id||u.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function Z(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function N(t){G.value=360-t.regAngle,a.value.id&&t.id===a.value.id?(a.value={},u.value=[]):(a.value=t,u.value=[...t.relations])}function L(t){return t.weight/Y.value*r.value.style.links.maxWidth}const k=e.ref(!1);function ee(t){k.value=t,x.value+=1}return j({generatePdf:P,generateImage:O}),(t,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:y,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor};text-align:center;${r.value.responsive?"height: 100%":""}`),id:`relation_circle_${f.value}`},[r.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:w,style:e.normalizeStyle(`width:100%;background:${r.value.style.backgroundColor}`)},[e.createVNode(re._sfc_main,{config:{title:{cy:"relation-div-title",...r.value.style.title},subtitle:{cy:"relation-div-subtitle",...r.value.style.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),r.value.userOptions.show&&p.value?(e.openBlock(),e.createBlock(T.UserOptions,{ref:"details",key:`user_options_${x.value}`,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,isPrinting:e.unref(b),isImaging:e.unref(B),uid:f.value,hasPdf:r.value.userOptions.buttons.pdf,hasImg:r.value.userOptions.buttons.img,hasFullscreen:r.value.userOptions.buttons.img,hasXls:!1,isFullscreen:k.value,titles:{...r.value.userOptions.buttonTitles},chartElement:y.value,onToggleFullscreen:ee,onGeneratePdf:e.unref(P),onGenerateImage:e.unref(O)},e.createSlots({_:2},[t.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,t.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,t.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"2"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(o.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":k.value,"vue-data-ui-fulscreen--off":!k.value},"relation-circle"]),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,width:"100%",style:e.normalizeStyle(`user-select:none; background:${r.value.style.backgroundColor}`)},[e.createElementVNode("circle",{cx:(s.value.width<=0?1e-4:s.value.width)/2,cy:(s.value.height<=0?1e-4:s.value.height)/2+r.value.style.circle.offsetY,r:d.value<=0?1e-4:d.value,stroke:r.value.style.circle.stroke,"stroke-width":r.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,oe),U.value?(e.openBlock(),e.createElementBlock("g",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,n)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${n}`,style:e.normalizeStyle(F(l)),stroke:I(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":a.value.hasOwnProperty("id")&&u.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${s.value.width/2},${s.value.height/2+r.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":L(l),"stroke-linecap":"round"},null,14,ce))),128))])):(e.openBlock(),e.createElementBlock("g",de,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,(l,n)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${n}`,stroke:I(l),style:e.normalizeStyle(F(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":a.value.hasOwnProperty("id")&&u.value.includes(l.id)}),"stroke-linecap":"round"},null,14,ve))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${n}`,"text-anchor":J(l),transform:Z(l),x:K(l),y:l.y+5,onClick:m=>N(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":a.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${r.value.style.fontFamily};${Q(l)}`),"font-size":r.value.style.labels.fontSize,fill:r.value.style.labels.color},e.toDisplayString(l.label),13,fe))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(l,n)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${n}`,style:e.normalizeStyle(H(l)),class:"vue-ui-relation-circle-plot",fill:r.value.style.plot.color,onClick:m=>N(l),r:r.value.style.plot.radius},null,12,ge))),128)),e.renderSlot(t.$slots,"svg",{svg:s.value},void 0,!0)],14,se)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",me,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(b)||e.unref(B)})),void 0,!0)])):e.createCommentVNode("",!0),p.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ne.default,{key:4,config:{type:"relationCircle",style:{backgroundColor:r.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,ae))}},he=ie._export_sfc(ye,[["__scopeId","data-v-2352f00b"]]);exports.default=he;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref as r, computed as c, onMounted as _e, onBeforeUnmount as Ne, openBlock as n, createElementBlock as m, normalizeClass as V, normalizeStyle as _, createVNode as X, createCommentVNode as N, createBlock as B, unref as h, createSlots as Pe, withCtx as p, renderSlot as g, normalizeProps as D, guardReactiveProps as W, Fragment as ue, renderList as re, createElementVNode as w, createTextVNode as ne, toDisplayString as E, nextTick as Le } from "vue";
|
|
2
|
-
import { u as Fe, c as ie, t as Ie, a as Se, p as T, o as Oe, e as ve, g as Me, b as ze, d as ce, f as x, X as Ae, s as Re, v as Ve, i as de, w as Be, x as De, q as We, r as Ee } from "./index-
|
|
2
|
+
import { u as Fe, c as ie, t as Ie, a as Se, p as T, o as Oe, e as ve, g as Me, b as ze, d as ce, f as x, X as Ae, s as Re, v as Ve, i as de, w as Be, x as De, q as We, r as Ee } from "./index-CpHoINpJ.js";
|
|
3
3
|
import { t as Ge, u as Ue } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
-
import { _ as He } from "./Title-
|
|
5
|
-
import { u as Xe, U as je } from "./usePrinter-
|
|
6
|
-
import { _ as Ye } from "./Tooltip-
|
|
7
|
-
import { D as qe } from "./DataTable-
|
|
8
|
-
import { L as Je } from "./Legend-
|
|
9
|
-
import Ke from "./vue-ui-skeleton-
|
|
10
|
-
import Qe from "./vue-ui-accordion-
|
|
11
|
-
import { u as he } from "./useNestedProp-
|
|
4
|
+
import { _ as He } from "./Title-xP0rAF4q.js";
|
|
5
|
+
import { u as Xe, U as je } from "./usePrinter-BHy-mfVg.js";
|
|
6
|
+
import { _ as Ye } from "./Tooltip-DfBa_7Ur.js";
|
|
7
|
+
import { D as qe } from "./DataTable-1VV0us-8.js";
|
|
8
|
+
import { L as Je } from "./Legend-DB6v_LvZ.js";
|
|
9
|
+
import Ke from "./vue-ui-skeleton-DuM6yey6.js";
|
|
10
|
+
import Qe from "./vue-ui-accordion-BZloYo0L.js";
|
|
11
|
+
import { u as he } from "./useNestedProp-BOjw3Yqn.js";
|
|
12
12
|
import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const et = ["id"], tt = ["xmlns", "viewBox"], lt = ["id"], ot = ["stop-color"], at = ["stop-color"], st = ["stroke", "cx", "cy", "r", "fill"], ut = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], rt = ["cx", "cy", "r", "onMouseenter"], nt = {
|
|
14
14
|
key: 3,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CDK3omwG.cjs"),H=require("./useResponsive-B3TrDDIG.cjs"),re=require("./Title-CR-JDJwq.cjs"),W=require("./usePrinter-vQu-8tRD.cjs"),ne=require("./Tooltip-B4DNihSF.cjs"),ue=require("./DataTable-CPAt686N.cjs"),se=require("./Legend-BJ2Mynop.cjs"),ie=require("./vue-ui-skeleton-DRDC3yxK.cjs"),ce=require("./vue-ui-accordion-EVAolVkD.cjs"),G=require("./useNestedProp-CaaW8JIS.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ve=["id"],pe=["xmlns","viewBox"],he=["id"],ge=["stop-color"],fe=["stop-color"],me=["stroke","cx","cy","r","fill"],ye=["stroke","stroke-width","cx","cy","r","fill"],be=["cx","cy","r","onMouseenter"],ke={key:3,class:"vue-data-ui-watermark"},Ce=["onClick"],we={key:0},xe={key:1},Te=["innerHTML"],$e={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(j,{expose:X,emit:Y}){const v=j,{vue_ui_rings:J}=r.useConfig(),y=e.ref(!1),x=e.computed(()=>!!v.dataset&&v.dataset.length),b=e.ref(r.createUid()),K=e.ref(null),T=e.ref(!1),_=e.ref(""),m=e.ref(null),L=e.ref(0),k=e.ref(null),V=e.ref(null),E=e.ref(null),t=e.computed(()=>{const l=G.useNestedProp({userConfig:v.config,defaultConfig:J});return l.theme?{...G.useNestedProp({userConfig:r.themes.vue_ui_rings[l.theme]||v.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}),$=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiRings",type:"dataset"}):v.dataset.forEach((l,a)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["name","values"]}).forEach(o=>{r.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:o,index:a})})}),t.value.responsive){const l=H.throttle(()=>{const{width:a,height:o}=H.useResponsive({chart:k.value,title:t.value.style.chart.title.text?V.value:null,legend:t.value.style.chart.legend.show?E.value:null});s.value.width=a,s.value.height=o});$.value=new ResizeObserver(l),$.value.observe(k.value.parentNode)}setTimeout(()=>{y.value=!0},600)}),e.onBeforeUnmount(()=>{$.value&&$.value.disconnect()});const{isPrinting:z,isImaging:F,generatePdf:I,generateImage:O}=W.usePrinter({elementId:`rings_${b.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),M=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),g=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),s=e.ref({height:360,width:360}),Q=e.computed(()=>Math.min(s.value.height,s.value.width)),i=e.ref([]);function P(l){i.value.includes(l)?i.value=i.value.filter(a=>a!==l):i.value.push(l),Y("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const Z=e.computed(()=>Math.max(...N.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l)));function R(l){return l/Z.value}const N=e.computed(()=>v.dataset.map(({values:l,name:a,color:o=null},n)=>{const u=(l||[]).reduce((h,w)=>h+w,0);return{name:a,color:o||r.convertColorToHex(o)||M.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:u,proportion:u/v.dataset.map(h=>(h.values||[]).reduce((w,ae)=>w+ae,0)).reduce((h,w)=>h+w,0),uid:r.createUid()}})),D=e.computed(()=>N.value.map(l=>({...l,shape:"circle",opacity:i.value.includes(l.uid)?.5:1,segregate:()=>P(l.uid),isSegregated:i.value.includes(l.uid)})).toSorted((l,a)=>a.value-l.value)),ee=e.computed(()=>({cy:"rings-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,fontWeight:t.value.style.chart.legend.bold?"bold":""})),p=e.computed(()=>N.value.filter(l=>!i.value.includes(l.uid)).map(({value:l})=>l).reduce((l,a)=>l+a,0)),c=e.computed(()=>N.value.filter(l=>!i.value.includes(l.uid)).map(({name:l,value:a,color:o=null,uid:n},u)=>({uid:n,name:l,color:o||r.convertColorToHex(o)||M.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:a,proportion:R(a),percentage:a/p.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*R(a)})).toSorted((l,a)=>a.value-l.value));function te(){return c.value.map(({name:l,color:a,value:o,absoluteValues:n,percentage:u})=>({name:l,color:a,value:o,absoluteValues:n,percentage:u}))}const d=e.computed(()=>Q.value-t.value.style.chart.layout.rings.strokeWidth*2),B=e.ref(null);function le(l,a){if(i.value.length===v.dataset.length)return;B.value={datapoint:a,seriesIndex:l,series:c.value,config:t.value},m.value=l;const o=c.value[l],n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:l,datapoint:a,series:c.value,config:t.value})))_.value=n({seriesIndex:l,datapoint:a,series:c.value,config:t.value});else{let u="";u+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,u+=`<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${o.color}" /></svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:l})}
|
|
2
2
|
</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${r.dataLabel({v:o.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${r.dataLabel({v:o.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),_.value=u}T.value=!0}const f=e.computed(()=>{const l=c.value.map(o=>({name:o.name,color:o.color})),a=c.value.map(o=>o.value);return{head:l,body:a}}),S=e.computed(()=>{const l=[' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:p.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),"100%"],a=f.value.head.map((u,h)=>[{color:u.color,name:u.name},r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:f.value.body[h],s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.table.td.roundingValue}),isNaN(f.value.body[h]/p.value)?"-":(f.value.body[h]/p.value*100).toFixed(t.value.table.td.roundingPercentage)+"%"]),o={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint},n=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:l,body:a,config:o,colNames:n}});function q(){e.nextTick(()=>{const l=f.value.head.map((n,u)=>[[n.name],[f.value.body[u]],[isNaN(f.value.body[u]/p.value)?"-":f.value.body[u]/p.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(l),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const C=e.ref(!1);function oe(l){C.value=l,L.value+=1}function A(){g.value.showTable=!g.value.showTable}function U(){g.value.showTooltip=!g.value.showTooltip}return X({getData:te,generatePdf:I,generateCsv:q,generateImage:O,toggleTable:A,toggleTooltip:U}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:k,class:e.normalizeClass(`vue-ui-rings ${C.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};text-align:center;width:100%;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`),id:`rings_${b.value}`,onMouseleave:a[3]||(a[3]=o=>{m.value=null,T.value=!1})},[t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:V,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor}`)},[e.createVNode(re._sfc_main,{config:{title:{cy:"rings-div-title",...t.value.style.chart.title},subtitle:{cy:"rings-div-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_key:"details",ref:K,key:`user_options_${L.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(z),isImaging:e.unref(F),uid:b.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:g.value.showTooltip,isFullscreen:C.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,onToggleFullscreen:oe,onGeneratePdf:e.unref(I),onGenerateCsv:q,onGenerateImage:e.unref(O),onToggleTable:A,onToggleTooltip:U},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:o,isFullscreen:n})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:o,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),x.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value}),viewBox:`0 0 ${s.value.width<=0?10:s.value.width} ${s.value.height<=0?10:s.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.chart.backgroundColor};color:${t.value.style.chart.color}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${b.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":`${e.unref(r.shiftHue)(o.color,.05)}${e.unref(r.opacity)[100-t.value.style.chart.layout.rings.gradient.intensity]}`},null,8,ge),e.createElementVNode("stop",{offset:"100%","stop-color":o.color},null,8,fe)],8,he))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(o,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":y.value&&t.value.useCssAnimation,"vue-rings-item-onload":!y.value&&t.value.useCssAnimation,"vue-ui-rings-opacity":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9,fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,me),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":y.value&&t.value.useCssAnimation,"vue-rings-item-onload":!y.value&&t.value.useCssAnimation,"vue-ui-rings-shadow":t.value.style.chart.layout.rings.useShadow,"vue-ui-rings-blur":m.value!==null&&m.value!==n}),style:e.normalizeStyle(`animation-delay:${n*100}ms`),stroke:t.value.style.chart.layout.rings.stroke,"stroke-width":o.strokeWidth<.5?.5:o.strokeWidth,cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9,fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${b.value}_${n})`:o.color},null,14,ye),e.createElementVNode("circle",{"data-cy-trap":"",stroke:"none",cx:s.value.width/2,cy:n===0?s.value.height/2:s.value.height/2+d.value*c.value[0].proportion/2-d.value*o.proportion/2-2*(n+1),r:d.value*o.proportion/2*.9<=0?1e-4:d.value*o.proportion/2*.9,fill:"transparent",onMouseenter:u=>le(n,o),onMouseleave:a[0]||(a[0]=u=>{m.value=null,T.value=!1})},null,40,be)]))),256)),e.renderSlot(l.$slots,"svg",{svg:s.value},void 0,!0)],14,pe)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",ke,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(z)||e.unref(F)})),void 0,!0)])):e.createCommentVNode("",!0),x.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ie.default,{key:4,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:E},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(se.Legend,{key:0,legendSet:D.value,config:ee.value,onClickMarker:a[1]||(a[1]=({legend:o})=>P(o.uid))},{item:e.withCtx(({legend:o,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>P(o.uid),style:e.normalizeStyle(`opacity:${i.value.includes(o.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(o.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,o.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:o.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:o,seriesIndex:n}))+" ",1),i.value.includes(o.uid)?(e.openBlock(),e.createElementBlock("span",xe," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",we," ("+e.toDisplayString(isNaN(o.value/p.value)?"-":e.unref(r.dataLabel)({v:o.value/p.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ce)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:D.value},void 0,!0)],512),e.createVNode(ne._sfc_main,{show:g.value.showTooltip&&T.value&&i.value.length<v.dataset.length,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,fontSize:t.value.style.chart.tooltip.fontSize,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:k.value,content:_.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...B.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...B.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),x.value?(e.openBlock(),e.createBlock(ce.default,{key:5,hideDetails:"",config:{open:g.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(ue.DataTable,{colNames:S.value.colNames,head:S.value.head,body:S.value.body,config:S.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=o=>g.value.showTable=!1)},{th:e.withCtx(({th:o})=>[e.createElementVNode("div",{innerHTML:o,style:{display:"flex","align-items":"center"}},null,8,Te)]),td:e.withCtx(({td:o})=>[e.createTextVNode(e.toDisplayString(o.name||o),1)]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,ve))}},Ne=de._export_sfc($e,[["__scopeId","data-v-747e43da"]]);exports.default=Ne;
|