vue-data-ui 2.4.40 → 2.4.41
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-DkayNE_-.js → Arrow-6z0ZQva_.js} +1 -1
- package/dist/{Arrow-Bg4pmMHf.cjs → Arrow-Cht76m69.cjs} +1 -1
- package/dist/{BaseIcon-zXh1vLYa.cjs → BaseIcon-D-JUZiGA.cjs} +1 -1
- package/dist/{BaseIcon-DpYqpYmv.js → BaseIcon-DCE3wRiG.js} +1 -1
- package/dist/{DataTable-BuiPd6c1.js → DataTable-B5DiCrf_.js} +2 -2
- package/dist/{DataTable-BB87HJ5b.cjs → DataTable-Cr3Xkxe4.cjs} +1 -1
- package/dist/{Legend-D2Yi-COI.cjs → Legend-BXG_XPom.cjs} +1 -1
- package/dist/{Legend-BRVDmlwW.js → Legend-DzxQIjDO.js} +1 -1
- package/dist/{PackageVersion-rf9gXZ-Q.cjs → PackageVersion-CMtZxTqq.cjs} +1 -1
- package/dist/{PackageVersion-BT4zkGPO.js → PackageVersion-S7OD_s5u.js} +1 -1
- package/dist/{PenAndPaper-BFq1cFfJ.js → PenAndPaper-BxJZd7k9.js} +3 -3
- package/dist/{PenAndPaper-DS7gA4X0.cjs → PenAndPaper-DWYhyZye.cjs} +1 -1
- package/dist/{Shape-Dwxh0EWa.js → Shape-C3ywBhkW.js} +1 -1
- package/dist/{Shape-DVggzfpA.cjs → Shape-CvL90fNe.cjs} +1 -1
- package/dist/{Slicer-BXHFpzP5.cjs → Slicer-B2aHb4bj.cjs} +1 -1
- package/dist/{Slicer-D7x1gyjP.js → Slicer-D9ASV60L.js} +2 -2
- package/dist/{Title-BFvWnqI4.js → Title-BB0O0yol.js} +1 -1
- package/dist/{Title-RB80eFiD.cjs → Title-D9gPXVTT.cjs} +1 -1
- package/dist/{Tooltip-RHI1EGzy.js → Tooltip-GvLaModr.js} +1 -1
- package/dist/{Tooltip-BC1YZMi2.cjs → Tooltip-ypQtmi99.cjs} +1 -1
- package/dist/index-B5Ugkauv.cjs +9 -0
- package/dist/{index-DY8hDTi7.js → index-B6Q1Fyk0.js} +12 -3
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +9 -0
- package/dist/types/vue-data-ui.d.ts +9 -0
- package/dist/{useNestedProp-lhL30X68.js → useNestedProp-DQpuJSz3.js} +1 -1
- package/dist/{useNestedProp-DLJc0s53.cjs → useNestedProp-bZitLnbb.cjs} +1 -1
- package/dist/{usePrinter-DjAQofRy.js → usePrinter-D8dIU7aG.js} +1 -1
- package/dist/{usePrinter-BfuqGrO4.cjs → usePrinter-DtpFEgOX.cjs} +1 -1
- package/dist/{vue-data-ui-DYb5l8_5.cjs → vue-data-ui-DBN7iJHU.cjs} +1 -1
- package/dist/{vue-data-ui-BjixO_L4.js → vue-data-ui-H24TWcBx.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CkYhOmXF.js → vue-ui-3d-bar-BA2CQYGW.js} +9 -9
- package/dist/{vue-ui-3d-bar-BEjtuA39.cjs → vue-ui-3d-bar-BaNI_M3v.cjs} +1 -1
- package/dist/{vue-ui-accordion-xK9e3wkz.js → vue-ui-accordion-BOHicozd.js} +3 -3
- package/dist/{vue-ui-accordion-ClQObElI.cjs → vue-ui-accordion-u4xDSvRn.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-x5CjkABf.cjs → vue-ui-age-pyramid-DN25tjv-.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-DtQAo1-2.js → vue-ui-age-pyramid-vKWko9vn.js} +10 -10
- package/dist/{vue-ui-annotator-DqDELeOR.cjs → vue-ui-annotator-BcxUQ5tM.cjs} +1 -1
- package/dist/{vue-ui-annotator-Yt34insl.js → vue-ui-annotator-D4KNucw5.js} +1 -1
- package/dist/{vue-ui-bullet-DSPQ5yWt.cjs → vue-ui-bullet-C3DKTZbg.cjs} +1 -1
- package/dist/{vue-ui-bullet-CCvwPwji.js → vue-ui-bullet-DZgtd_qb.js} +8 -8
- package/dist/{vue-ui-candlestick-CVJB9WMH.js → vue-ui-candlestick-C8yBMu8-.js} +11 -11
- package/dist/{vue-ui-candlestick-Cb7CgmeV.cjs → vue-ui-candlestick-DVEofXBZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-IqZRrbo_.js → vue-ui-carousel-table-Bpsrlbx9.js} +4 -4
- package/dist/{vue-ui-carousel-table-CkJngi1u.cjs → vue-ui-carousel-table-C62szGjt.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Dt3GLx3U.js → vue-ui-chestnut-DhPSNM96.js} +8 -8
- package/dist/{vue-ui-chestnut-ojvaZyue.cjs → vue-ui-chestnut-VWwSZnUX.cjs} +1 -1
- package/dist/{vue-ui-cursor-D24bAdi0.js → vue-ui-cursor-BM2OiZnZ.js} +2 -2
- package/dist/{vue-ui-cursor-Cbi7OUiE.cjs → vue-ui-cursor-BwnZYB4D.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CB_W7yvi.js → vue-ui-dashboard-BcnW7vDs.js} +2 -2
- package/dist/{vue-ui-dashboard-DVf1sULB.cjs → vue-ui-dashboard-D8FU1GbE.cjs} +1 -1
- package/dist/{vue-ui-digits-CVAyG4kM.cjs → vue-ui-digits-BmQBwho3.cjs} +1 -1
- package/dist/{vue-ui-digits-Qn4l0R5o.js → vue-ui-digits-M4Pvrg0n.js} +2 -2
- package/dist/{vue-ui-donut-t688YqqL.js → vue-ui-donut-BgsQjURe.js} +11 -11
- package/dist/{vue-ui-donut-Cgvksx9U.cjs → vue-ui-donut-CZZfvbPk.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-KdVsB3m_.js → vue-ui-donut-evolution-BO2-ARBX.js} +11 -11
- package/dist/{vue-ui-donut-evolution-DWdf8MKP.cjs → vue-ui-donut-evolution-DP14ctdf.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DxMZm_Xi.cjs → vue-ui-dumbbell-CsMqgiGr.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CS5kvI8A.js → vue-ui-dumbbell-zv7yiPPM.js} +10 -10
- package/dist/{vue-ui-flow-4sSoYnJt.js → vue-ui-flow-BqtIWBkz.js} +9 -9
- package/dist/{vue-ui-flow-In-tHpYL.cjs → vue-ui-flow-E5MkZ3Yb.cjs} +1 -1
- package/dist/{vue-ui-funnel-MD4lrv0t.js → vue-ui-funnel-CmVLAttG.js} +8 -8
- package/dist/{vue-ui-funnel-MXYMVu1G.cjs → vue-ui-funnel-QU0_JscL.cjs} +1 -1
- package/dist/{vue-ui-galaxy-B9KiEfI4.cjs → vue-ui-galaxy-BPDH-9KW.cjs} +1 -1
- package/dist/{vue-ui-galaxy-K09M9SgI.js → vue-ui-galaxy-sy8zvgcg.js} +11 -11
- package/dist/{vue-ui-gauge-Bg2V5WNl.js → vue-ui-gauge--hARSvgz.js} +7 -7
- package/dist/{vue-ui-gauge-DaR_viLn.cjs → vue-ui-gauge-D_yokJMS.cjs} +1 -1
- package/dist/{vue-ui-gizmo-7Hv-0fsh.cjs → vue-ui-gizmo-AUJq3EQL.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CdLxfJUw.js → vue-ui-gizmo-CvTeq5j0.js} +3 -3
- package/dist/{vue-ui-heatmap-DhgJ3LO9.cjs → vue-ui-heatmap-D-xNLuqW.cjs} +1 -1
- package/dist/{vue-ui-heatmap-CNPjaHGJ.js → vue-ui-heatmap-lI8oO-nh.js} +10 -10
- package/dist/{vue-ui-history-plot-DZOYwPTh.cjs → vue-ui-history-plot-BC0Rvo-r.cjs} +1 -1
- package/dist/{vue-ui-history-plot-DRwX7quj.js → vue-ui-history-plot-D3CwJpll.js} +11 -11
- package/dist/{vue-ui-kpi-Cnrfv2vn.cjs → vue-ui-kpi-B4FQKZ_r.cjs} +1 -1
- package/dist/{vue-ui-kpi-C-5_TwY8.js → vue-ui-kpi-C0agq-Os.js} +3 -3
- package/dist/{vue-ui-mini-loader-uBFny7gt.cjs → vue-ui-mini-loader-BJ70GAEv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-fZawewEF.js → vue-ui-mini-loader-CkjJ5pRO.js} +2 -2
- package/dist/{vue-ui-molecule-BOClRlY3.cjs → vue-ui-molecule-CsQfkIEE.cjs} +1 -1
- package/dist/{vue-ui-molecule-pO5l42Vf.js → vue-ui-molecule-V9UFJHeV.js} +11 -11
- package/dist/{vue-ui-mood-radar-CiMiQJuS.cjs → vue-ui-mood-radar-CdU2vusL.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-jbYjFZID.js → vue-ui-mood-radar-Cj_wOEbY.js} +11 -11
- package/dist/{vue-ui-nested-donuts-Bb5otIw_.js → vue-ui-nested-donuts-DFVQwbHg.js} +11 -11
- package/dist/{vue-ui-nested-donuts-IArnFfHY.cjs → vue-ui-nested-donuts-DevV-xZr.cjs} +1 -1
- package/dist/{vue-ui-onion-BvQLUPjh.js → vue-ui-onion-BJ-PjA7d.js} +11 -11
- package/dist/{vue-ui-onion-SKVqk7rN.cjs → vue-ui-onion-DGWktnME.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-_LH1iK_w.js → vue-ui-parallel-coordinate-plot-33naX1Ss.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-CeqeyIHj.cjs → vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs} +1 -1
- package/dist/{vue-ui-quadrant-7jB46g4Z.cjs → vue-ui-quadrant-DqZqBb2L.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BiWyF1fA.js → vue-ui-quadrant-xJaZzXgo.js} +12 -12
- package/dist/{vue-ui-quick-chart-C1398EYu.js → vue-ui-quick-chart-BwN9eLye.js} +9 -9
- package/dist/{vue-ui-quick-chart-79l8Uv8o.cjs → vue-ui-quick-chart-BzpXJYR_.cjs} +1 -1
- package/dist/{vue-ui-radar-BvWCcL2b.js → vue-ui-radar-B4EXwJDY.js} +12 -12
- package/dist/{vue-ui-radar-BYk3bLkt.cjs → vue-ui-radar-CQ66YUG5.cjs} +1 -1
- package/dist/{vue-ui-rating-jKjMQHRN.cjs → vue-ui-rating-D334I4ju.cjs} +1 -1
- package/dist/{vue-ui-rating-CyGmfYEU.js → vue-ui-rating-DNkygw1i.js} +2 -2
- package/dist/vue-ui-relation-circle-BKeSh28h.js +492 -0
- package/dist/vue-ui-relation-circle-CP2Z6IWV.cjs +1 -0
- package/dist/{vue-ui-rings-L8pGRQbs.cjs → vue-ui-rings-2oDSTctd.cjs} +1 -1
- package/dist/{vue-ui-rings-DEwuDHW2.js → vue-ui-rings-D6M3UNSE.js} +11 -11
- package/dist/{vue-ui-scatter-BfI6xftp.cjs → vue-ui-scatter-C9ZoWV1q.cjs} +1 -1
- package/dist/{vue-ui-scatter-BYL4iitb.js → vue-ui-scatter-JUPbbsO7.js} +12 -12
- package/dist/{vue-ui-screenshot-D4aNIcHd.js → vue-ui-screenshot-DmLDHfF9.js} +1 -1
- package/dist/{vue-ui-screenshot-Cf8g-RjG.cjs → vue-ui-screenshot-JMBX_AWn.cjs} +1 -1
- package/dist/{vue-ui-skeleton-FCpm0_eE.js → vue-ui-skeleton-D7rg5vFC.js} +3 -3
- package/dist/{vue-ui-skeleton-BGfzzQdU.cjs → vue-ui-skeleton-E9_X0-sa.cjs} +1 -1
- package/dist/{vue-ui-smiley-BFXulKpd.js → vue-ui-smiley-BAlHZm8H.js} +2 -2
- package/dist/{vue-ui-smiley-mjxS_13E.cjs → vue-ui-smiley-aRTznf8z.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-B2SOk378.cjs → vue-ui-spark-trend-DZR6Fqu5.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-D-13-kV6.js → vue-ui-spark-trend-J9swikF_.js} +5 -5
- package/dist/{vue-ui-sparkbar-C8cjDKBy.js → vue-ui-sparkbar-B0tCpwZ9.js} +4 -4
- package/dist/{vue-ui-sparkbar-BlA1rgRo.cjs → vue-ui-sparkbar-Bjmi8pMf.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DRBVe3tu.js → vue-ui-sparkgauge-DVX2pIC3.js} +4 -4
- package/dist/{vue-ui-sparkgauge-C4sFc7nb.cjs → vue-ui-sparkgauge-Dhzbkn67.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-iMRsSDvC.js → vue-ui-sparkhistogram-Wd6q0mqj.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CkqzLBYq.cjs → vue-ui-sparkhistogram-gIaXDrFh.cjs} +1 -1
- package/dist/{vue-ui-sparkline-C0JZ7Xq1.cjs → vue-ui-sparkline-B5ySeM9y.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DIkUaObR.js → vue-ui-sparkline-DYT-gts9.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DJW1lBGU.js → vue-ui-sparkstackbar-BMGA05VR.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-DJbWCqs3.cjs → vue-ui-sparkstackbar-ilvB3RBv.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BtOrW2Ml.cjs → vue-ui-stackbar-BZKwsAjO.cjs} +1 -1
- package/dist/{vue-ui-stackbar-BGUXEdZi.js → vue-ui-stackbar-BZbOagnf.js} +12 -12
- package/dist/{vue-ui-strip-plot-hn1U9cvT.js → vue-ui-strip-plot-B-r4luYX.js} +11 -11
- package/dist/{vue-ui-strip-plot-DJTQ8r5H.cjs → vue-ui-strip-plot-DPo7osh_.cjs} +1 -1
- package/dist/{vue-ui-table-DFvOQzJu.cjs → vue-ui-table-C6z56ODT.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-ZnkAoAkQ.cjs → vue-ui-table-heatmap-B05GifSw.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-DqZsXcsO.js → vue-ui-table-heatmap-CM-c7n0F.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CV8o-yV6.js → vue-ui-table-sparkline-DHaEHFG_.js} +5 -5
- package/dist/{vue-ui-table-sparkline-5mX0B27t.cjs → vue-ui-table-sparkline-Dx-ePVqW.cjs} +1 -1
- package/dist/{vue-ui-table-7A1eCPQd.js → vue-ui-table-wlXHwJVW.js} +1 -1
- package/dist/{vue-ui-thermometer-M6QwKOld.js → vue-ui-thermometer-BU_ckSdu.js} +7 -7
- package/dist/{vue-ui-thermometer-BwLTfi7y.cjs → vue-ui-thermometer-HCpOZBHv.cjs} +1 -1
- package/dist/{vue-ui-timer-QypGImgW.cjs → vue-ui-timer-CUChwyzF.cjs} +1 -1
- package/dist/{vue-ui-timer-CoYF7LEU.js → vue-ui-timer-DiRZ849L.js} +5 -5
- package/dist/{vue-ui-tiremarks-CzLOyhXF.js → vue-ui-tiremarks-BHMNb_tq.js} +7 -7
- package/dist/{vue-ui-tiremarks-DAFNYvB1.cjs → vue-ui-tiremarks-yoQtfbj7.cjs} +1 -1
- package/dist/{vue-ui-treemap-CutiBRIN.cjs → vue-ui-treemap-BInwLSes.cjs} +1 -1
- package/dist/{vue-ui-treemap-DF5BIKs-.js → vue-ui-treemap-BpD6OdL3.js} +11 -11
- package/dist/{vue-ui-vertical-bar-bDcCcUy8.js → vue-ui-vertical-bar-CBNWMmCg.js} +11 -11
- package/dist/{vue-ui-vertical-bar-D-ZZAU0r.cjs → vue-ui-vertical-bar-hS4gzdKs.cjs} +1 -1
- package/dist/{vue-ui-waffle-BR_HwmLy.js → vue-ui-waffle-BE8iTrGF.js} +11 -11
- package/dist/{vue-ui-waffle-CCO3ZHyo.cjs → vue-ui-waffle-Cmq6zhD8.cjs} +1 -1
- package/dist/{vue-ui-wheel-Cvcfc6o1.cjs → vue-ui-wheel-BT0mLxln.cjs} +1 -1
- package/dist/{vue-ui-wheel-DuO0nc0d.js → vue-ui-wheel-BXSIBRLM.js} +7 -7
- package/dist/{vue-ui-word-cloud-Cv5bXF2B.js → vue-ui-word-cloud-3wvSYRbp.js} +10 -10
- package/dist/{vue-ui-word-cloud-BknJQRiM.cjs → vue-ui-word-cloud-BXHlm41O.cjs} +1 -1
- package/dist/{vue-ui-xy-Cqb73yZ3.cjs → vue-ui-xy-CfduqTWA.cjs} +1 -1
- package/dist/{vue-ui-xy-Clf_sTRI.js → vue-ui-xy-D8XvOgW6.js} +14 -14
- package/dist/{vue-ui-xy-canvas-7OwcP1-L.cjs → vue-ui-xy-canvas-BTR-cL02.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-BOJGw4H7.js → vue-ui-xy-canvas-Cx7vPyfT.js} +11 -11
- package/package.json +1 -1
- package/dist/index--lHmCKjC.cjs +0 -9
- package/dist/vue-ui-relation-circle-B3Df8yCi.js +0 -366
- package/dist/vue-ui-relation-circle-CZomraV2.cjs +0 -1
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import { useCssVars as Re, computed as f, ref as r, watch as je, onMounted as Ge, onBeforeUnmount as Ue, openBlock as s, createElementBlock as i, normalizeStyle as O, createBlock as F, createCommentVNode as v, unref as d, createSlots as We, withCtx as B, renderSlot as k, normalizeProps as A, guardReactiveProps as W, normalizeClass as D, createVNode as De, createElementVNode as Ve, Fragment as C, renderList as P, mergeProps as ye, toDisplayString as E } from "vue";
|
|
2
|
+
import { u as Xe, c as Ye, t as qe, a as He, p as fe, b as Je, o as Ke, e as he, g as Qe, X as Ze, F as ge, i as V, f as X, E as Y } from "./index-B6Q1Fyk0.js";
|
|
3
|
+
import { t as et, u as tt } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as lt } from "./Title-BB0O0yol.js";
|
|
5
|
+
import { u as st, U as at } from "./usePrinter-D8dIU7aG.js";
|
|
6
|
+
import it from "./vue-ui-skeleton-D7rg5vFC.js";
|
|
7
|
+
import { u as me } from "./useNestedProp-DQpuJSz3.js";
|
|
8
|
+
import { _ as nt } from "./PackageVersion-S7OD_s5u.js";
|
|
9
|
+
import { P as rt } from "./PenAndPaper-BxJZd7k9.js";
|
|
10
|
+
import { _ as ut } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const ot = ["id"], ct = ["xmlns", "viewBox"], dt = ["cx", "cy", "r", "stroke", "stroke-width"], vt = { key: 0 }, yt = ["stroke", "d", "stroke-width"], ft = { style: { "pointer-events": "none" } }, ht = ["cx", "cy", "fill", "r", "stroke"], gt = ["x", "y", "fill", "font-size"], mt = { key: 1 }, kt = ["stroke", "stroke-width", "x1", "x2", "y1", "y2"], xt = { style: { "pointer-events": "none" } }, pt = ["cx", "cy", "fill", "r", "stroke"], wt = ["x", "y", "fill", "font-size"], bt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], _t = ["cx", "cy", "fill", "stroke", "onClick", "r"], $t = {
|
|
12
|
+
key: 5,
|
|
13
|
+
class: "vue-data-ui-watermark"
|
|
14
|
+
}, Ct = {
|
|
15
|
+
__name: "vue-ui-relation-circle",
|
|
16
|
+
props: {
|
|
17
|
+
dataset: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default() {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
config: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default() {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(ke, { expose: xe }) {
|
|
31
|
+
const x = ke;
|
|
32
|
+
Re((e) => ({
|
|
33
|
+
"7693a9d2": Ce.value,
|
|
34
|
+
"65d94d14": $e.value,
|
|
35
|
+
fa445a50: Pe.value
|
|
36
|
+
}));
|
|
37
|
+
const { vue_ui_relation_circle: pe } = Xe(), T = f(() => !!x.dataset && Object.keys(x.dataset).length), L = r(Ye()), q = r(0), z = r(null), H = r(null), J = r(null), K = r(null), Q = r(0), l = f({
|
|
38
|
+
get: () => Z(),
|
|
39
|
+
set: (e) => e
|
|
40
|
+
});
|
|
41
|
+
function Z() {
|
|
42
|
+
const e = me({
|
|
43
|
+
userConfig: x.config,
|
|
44
|
+
defaultConfig: pe
|
|
45
|
+
});
|
|
46
|
+
return e.theme ? {
|
|
47
|
+
...me({
|
|
48
|
+
userConfig: qe.vue_ui_relation_circle[e.theme] || x.config,
|
|
49
|
+
defaultConfig: e
|
|
50
|
+
}),
|
|
51
|
+
customPalette: He[e.theme] || fe
|
|
52
|
+
} : e;
|
|
53
|
+
}
|
|
54
|
+
je(() => x.config, (e) => {
|
|
55
|
+
l.value = Z(), re(), Q.value += 1;
|
|
56
|
+
}, { deep: !0 });
|
|
57
|
+
const { isPrinting: ee, isImaging: te, generatePdf: le, generateImage: se } = st({
|
|
58
|
+
elementId: `relation_circle_${L.value}`,
|
|
59
|
+
fileName: l.value.style.title.text || "vue-ui-relation-circle"
|
|
60
|
+
}), we = f(() => l.value.userOptions.show && !l.value.style.title.text), ae = f(() => Je(l.value.customPalette)), w = r([]), h = r([]), u = r({}), g = r([]), be = r(0), N = f(() => x.dataset.slice(0, l.value.style.limit)), _ = r(l.value.style.size), m = r(l.value.style.weightLabels.size), ie = r(l.value.style.plot.radius), ne = r(l.value.style.labels.fontSize), o = r({
|
|
61
|
+
height: l.value.style.size,
|
|
62
|
+
width: l.value.style.size
|
|
63
|
+
}), b = f({
|
|
64
|
+
get() {
|
|
65
|
+
return _.value * l.value.style.circle.radiusProportion;
|
|
66
|
+
},
|
|
67
|
+
set(e) {
|
|
68
|
+
return e;
|
|
69
|
+
}
|
|
70
|
+
}), _e = f(() => l.value.style.links.curved), $e = f(() => `${l.value.style.animation.speedMs}ms`), Ce = f(() => b.value * 2), Pe = f(() => b.value * 4), I = r(null);
|
|
71
|
+
Ge(() => {
|
|
72
|
+
re(), document.getElementById(`relation_circle_${L.value}`).addEventListener("click", ue);
|
|
73
|
+
});
|
|
74
|
+
function re() {
|
|
75
|
+
if (Ke(x.dataset) ? he({
|
|
76
|
+
componentName: "VueUiRelationCircle",
|
|
77
|
+
type: "dataset"
|
|
78
|
+
}) : x.dataset.forEach((e, a) => {
|
|
79
|
+
Qe({
|
|
80
|
+
datasetObject: e,
|
|
81
|
+
requiredAttributes: ["id", "label", "relations", "weights"]
|
|
82
|
+
}).forEach((t) => {
|
|
83
|
+
he({
|
|
84
|
+
componentName: "VueUiRelationCircle",
|
|
85
|
+
type: "datasetSerieAttribute",
|
|
86
|
+
property: t,
|
|
87
|
+
index: a
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}), l.value.responsive) {
|
|
91
|
+
const e = et(() => {
|
|
92
|
+
const { width: a, height: t } = tt({
|
|
93
|
+
chart: z.value,
|
|
94
|
+
title: l.value.style.title.text ? H.value : null,
|
|
95
|
+
source: J.value,
|
|
96
|
+
noTitle: K.value
|
|
97
|
+
});
|
|
98
|
+
_.value = Math.min(a, t), o.value.width = a, o.value.height = t, b.value = _.value * l.value.style.circle.radiusProportion, w.value = [], h.value = [], oe(), ce(), m.value = Y({
|
|
99
|
+
relator: _.value,
|
|
100
|
+
adjuster: l.value.style.size,
|
|
101
|
+
source: l.value.style.weightLabels.size,
|
|
102
|
+
threshold: 6,
|
|
103
|
+
fallback: 6
|
|
104
|
+
}), ie.value = Y({
|
|
105
|
+
relator: _.value,
|
|
106
|
+
adjuster: l.value.style.size,
|
|
107
|
+
source: l.value.style.plot.radius,
|
|
108
|
+
threshold: 1,
|
|
109
|
+
fallback: 1
|
|
110
|
+
}), ne.value = Y({
|
|
111
|
+
relator: _.value,
|
|
112
|
+
adjuster: l.value.style.size,
|
|
113
|
+
source: l.value.style.labels.fontSize,
|
|
114
|
+
threshold: 6,
|
|
115
|
+
fallback: 6
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
I.value = new ResizeObserver(e), I.value.observe(z.value.parentNode);
|
|
119
|
+
} else
|
|
120
|
+
w.value = [], h.value = [], oe(), ce();
|
|
121
|
+
}
|
|
122
|
+
Ue(() => {
|
|
123
|
+
document.getElementById(`relation_circle_${L.value}`).removeEventListener("click", ue), I.value && I.value.disconnect();
|
|
124
|
+
});
|
|
125
|
+
function ue(e) {
|
|
126
|
+
const a = e.target;
|
|
127
|
+
a && Array.from(a.classList).includes("vue-ui-user-options") || a && Array.from(a.classList).includes("vue-ui-user-options-summary") || a && Array.from(a.classList).includes("vue-data-ui-button") || a && Array.from(a.classList).includes("vue-ui-relation-circle-legend") || (u.value = {}, g.value = []);
|
|
128
|
+
}
|
|
129
|
+
function oe() {
|
|
130
|
+
const e = 6.28319 / N.value.length, a = 360 / N.value.length;
|
|
131
|
+
let t = 0, n = 0;
|
|
132
|
+
N.value.forEach((y, c) => {
|
|
133
|
+
const G = y.weights.reduce((Te, Ne) => Te + Ne, 0), U = b.value * Math.cos(t) + o.value.width / 2, Ee = b.value * Math.sin(t) + o.value.height / 2 + l.value.style.circle.offsetY;
|
|
134
|
+
w.value.push({ x: U, y: Ee, ...y, color: y.color ? y.color : ae.value[c] ? ae.value[c] : fe[c], regAngle: n, totalWeight: G }), t += e, n += a;
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function Le(e, a) {
|
|
138
|
+
const t = (e.x + a.x) / 2, n = (e.y + a.y) / 2;
|
|
139
|
+
return { x: t, y: n };
|
|
140
|
+
}
|
|
141
|
+
function ce() {
|
|
142
|
+
h.value = [], w.value.forEach((e) => {
|
|
143
|
+
w.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
|
|
144
|
+
const y = t.relations.indexOf(e.id);
|
|
145
|
+
h.value.push({
|
|
146
|
+
weight: t.weights[y] ? t.weights[y] : 0,
|
|
147
|
+
relationId: `${e.id}_${t.id}`,
|
|
148
|
+
x1: e.x,
|
|
149
|
+
y1: e.y,
|
|
150
|
+
x2: t.x,
|
|
151
|
+
y2: t.y,
|
|
152
|
+
colorSource: e.color,
|
|
153
|
+
colorTarget: t.color,
|
|
154
|
+
midPointLine: Le({ x: e.x, y: e.y }, { x: t.x, y: t.y }),
|
|
155
|
+
midPointBezier: ze({
|
|
156
|
+
x1: e.x,
|
|
157
|
+
x2: t.x,
|
|
158
|
+
y1: e.y,
|
|
159
|
+
y2: t.y
|
|
160
|
+
}),
|
|
161
|
+
...e
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function ze(e) {
|
|
167
|
+
const a = { x: e.x1, y: e.y1 }, t = { x: e.x2, y: e.y2 }, n = { x: e.x1, y: e.y1 }, y = {
|
|
168
|
+
x: o.value.width / 2,
|
|
169
|
+
y: o.value.height / 2 + l.value.style.circle.offsetY
|
|
170
|
+
}, c = 0.5, G = Math.pow(1 - c, 3) * a.x + 3 * Math.pow(1 - c, 2) * c * n.x + 3 * (1 - c) * Math.pow(c, 2) * y.x + Math.pow(c, 3) * t.x, U = Math.pow(1 - c, 3) * a.y + 3 * Math.pow(1 - c, 2) * c * n.y + 3 * (1 - c) * Math.pow(c, 2) * y.y + Math.pow(c, 3) * t.y;
|
|
171
|
+
return { x: G, y: U };
|
|
172
|
+
}
|
|
173
|
+
const Oe = f(() => Math.max(...h.value.map((e) => e.weight)));
|
|
174
|
+
function Ae(e) {
|
|
175
|
+
return Object.hasOwn(u.value, "x") ? g.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
176
|
+
}
|
|
177
|
+
function p(e) {
|
|
178
|
+
return e.colorSource;
|
|
179
|
+
}
|
|
180
|
+
function de(e) {
|
|
181
|
+
return Object.hasOwn(u.value, "x") ? g.value.includes(e.id) && e.relationId === `${e.id}_${u.value.id}` || e.relationId === `${u.value.id}_${e.id}` ? `opacity:1;stroke-width:${R(e)}` : "opacity: 0" : "opacity: 1";
|
|
182
|
+
}
|
|
183
|
+
function $(e) {
|
|
184
|
+
return Object.hasOwn(u.value, "x") ? !!(g.value.includes(e.id) && e.relationId === `${e.id}_${u.value.id}` || e.relationId === `${u.value.id}_${e.id}`) : !1;
|
|
185
|
+
}
|
|
186
|
+
function Ie(e) {
|
|
187
|
+
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
188
|
+
}
|
|
189
|
+
function Me(e) {
|
|
190
|
+
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
191
|
+
}
|
|
192
|
+
function Se(e) {
|
|
193
|
+
return Object.hasOwn(u.value, "x") ? u.value.id === e.id || g.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
194
|
+
}
|
|
195
|
+
function Fe(e) {
|
|
196
|
+
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
197
|
+
}
|
|
198
|
+
function ve(e) {
|
|
199
|
+
be.value = 360 - e.regAngle, u.value.id && e.id === u.value.id ? (u.value = {}, g.value = []) : (u.value = e, g.value = [...e.relations]);
|
|
200
|
+
}
|
|
201
|
+
function R(e) {
|
|
202
|
+
const a = e.weight / Oe.value * l.value.style.links.maxWidth;
|
|
203
|
+
return Math.max(0.3, a);
|
|
204
|
+
}
|
|
205
|
+
const M = r(!1);
|
|
206
|
+
function Be(e) {
|
|
207
|
+
M.value = e, q.value += 1;
|
|
208
|
+
}
|
|
209
|
+
const S = r(!1);
|
|
210
|
+
function j() {
|
|
211
|
+
S.value = !S.value;
|
|
212
|
+
}
|
|
213
|
+
return xe({
|
|
214
|
+
generatePdf: le,
|
|
215
|
+
generateImage: se,
|
|
216
|
+
toggleAnnotator: j
|
|
217
|
+
}), (e, a) => (s(), i("div", {
|
|
218
|
+
ref_key: "relationCircleChart",
|
|
219
|
+
ref: z,
|
|
220
|
+
class: "vue-ui-relation-circle",
|
|
221
|
+
style: O(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
222
|
+
id: `relation_circle_${L.value}`
|
|
223
|
+
}, [
|
|
224
|
+
l.value.userOptions.buttons.annotator ? (s(), F(rt, {
|
|
225
|
+
key: 0,
|
|
226
|
+
parent: z.value,
|
|
227
|
+
backgroundColor: l.value.style.backgroundColor,
|
|
228
|
+
color: l.value.style.color,
|
|
229
|
+
active: S.value,
|
|
230
|
+
onClose: j
|
|
231
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
|
|
232
|
+
we.value ? (s(), i("div", {
|
|
233
|
+
key: 1,
|
|
234
|
+
ref_key: "noTitle",
|
|
235
|
+
ref: K,
|
|
236
|
+
class: "vue-data-ui-no-title-space",
|
|
237
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
238
|
+
}, null, 512)) : v("", !0),
|
|
239
|
+
l.value.style.title.text ? (s(), i("div", {
|
|
240
|
+
key: 2,
|
|
241
|
+
ref_key: "chartTitle",
|
|
242
|
+
ref: H,
|
|
243
|
+
style: "width:100%;background:transparent"
|
|
244
|
+
}, [
|
|
245
|
+
(s(), F(lt, {
|
|
246
|
+
key: `title_${Q.value}`,
|
|
247
|
+
config: {
|
|
248
|
+
title: {
|
|
249
|
+
cy: "relation-div-title",
|
|
250
|
+
...l.value.style.title
|
|
251
|
+
},
|
|
252
|
+
subtitle: {
|
|
253
|
+
cy: "relation-div-subtitle",
|
|
254
|
+
...l.value.style.title.subtitle
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}, null, 8, ["config"]))
|
|
258
|
+
], 512)) : v("", !0),
|
|
259
|
+
l.value.userOptions.show && T.value ? (s(), F(at, {
|
|
260
|
+
ref: "details",
|
|
261
|
+
key: `user_options_${q.value}`,
|
|
262
|
+
backgroundColor: l.value.style.backgroundColor,
|
|
263
|
+
color: l.value.style.color,
|
|
264
|
+
isPrinting: d(ee),
|
|
265
|
+
isImaging: d(te),
|
|
266
|
+
uid: L.value,
|
|
267
|
+
hasPdf: l.value.userOptions.buttons.pdf,
|
|
268
|
+
hasImg: l.value.userOptions.buttons.img,
|
|
269
|
+
hasFullscreen: l.value.userOptions.buttons.img,
|
|
270
|
+
hasXls: !1,
|
|
271
|
+
isFullscreen: M.value,
|
|
272
|
+
titles: { ...l.value.userOptions.buttonTitles },
|
|
273
|
+
chartElement: z.value,
|
|
274
|
+
position: l.value.userOptions.position,
|
|
275
|
+
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
276
|
+
isAnnotation: S.value,
|
|
277
|
+
onToggleFullscreen: Be,
|
|
278
|
+
onGeneratePdf: d(le),
|
|
279
|
+
onGenerateImage: d(se),
|
|
280
|
+
onToggleAnnotator: j
|
|
281
|
+
}, We({ _: 2 }, [
|
|
282
|
+
e.$slots.optionPdf ? {
|
|
283
|
+
name: "optionPdf",
|
|
284
|
+
fn: B(() => [
|
|
285
|
+
k(e.$slots, "optionPdf", {}, void 0, !0)
|
|
286
|
+
]),
|
|
287
|
+
key: "0"
|
|
288
|
+
} : void 0,
|
|
289
|
+
e.$slots.optionImg ? {
|
|
290
|
+
name: "optionImg",
|
|
291
|
+
fn: B(() => [
|
|
292
|
+
k(e.$slots, "optionImg", {}, void 0, !0)
|
|
293
|
+
]),
|
|
294
|
+
key: "1"
|
|
295
|
+
} : void 0,
|
|
296
|
+
e.$slots.optionFullscreen ? {
|
|
297
|
+
name: "optionFullscreen",
|
|
298
|
+
fn: B(({ toggleFullscreen: t, isFullscreen: n }) => [
|
|
299
|
+
k(e.$slots, "optionFullscreen", A(W({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
|
|
300
|
+
]),
|
|
301
|
+
key: "2"
|
|
302
|
+
} : void 0,
|
|
303
|
+
e.$slots.optionAnnotator ? {
|
|
304
|
+
name: "optionAnnotator",
|
|
305
|
+
fn: B(({ toggleAnnotator: t, isAnnotator: n }) => [
|
|
306
|
+
k(e.$slots, "optionAnnotator", A(W({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
|
|
307
|
+
]),
|
|
308
|
+
key: "3"
|
|
309
|
+
} : void 0
|
|
310
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
|
|
311
|
+
T.value ? (s(), i("svg", {
|
|
312
|
+
key: 4,
|
|
313
|
+
xmlns: d(Ze),
|
|
314
|
+
class: D([{ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }, "relation-circle"]),
|
|
315
|
+
viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
|
|
316
|
+
width: "100%",
|
|
317
|
+
style: "user-select:none; background:transparent"
|
|
318
|
+
}, [
|
|
319
|
+
De(nt),
|
|
320
|
+
Ve("circle", {
|
|
321
|
+
cx: (o.value.width <= 0 ? 1e-4 : o.value.width) / 2,
|
|
322
|
+
cy: (o.value.height <= 0 ? 1e-4 : o.value.height) / 2 + l.value.style.circle.offsetY,
|
|
323
|
+
r: b.value <= 0 ? 1e-4 : b.value,
|
|
324
|
+
stroke: l.value.style.circle.stroke,
|
|
325
|
+
"stroke-width": l.value.style.circle.strokeWidth,
|
|
326
|
+
fill: "transparent",
|
|
327
|
+
class: "main-circle"
|
|
328
|
+
}, null, 8, dt),
|
|
329
|
+
_e.value ? (s(), i("g", vt, [
|
|
330
|
+
(s(!0), i(C, null, P(h.value, (t, n) => (s(), i("path", {
|
|
331
|
+
key: `relation_${n}`,
|
|
332
|
+
style: O(de(t)),
|
|
333
|
+
stroke: p(t),
|
|
334
|
+
class: D(["relation", { "vue-ui-relation-circle-selected": u.value.hasOwnProperty("id") && g.value.includes(t.id) }]),
|
|
335
|
+
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${o.value.width / 2},${o.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
336
|
+
fill: "none",
|
|
337
|
+
"stroke-width": R(t),
|
|
338
|
+
"stroke-linecap": "round"
|
|
339
|
+
}, null, 14, yt))), 128)),
|
|
340
|
+
(s(!0), i(C, null, P(h.value, (t, n) => (s(), i("g", ft, [
|
|
341
|
+
$(t) ? k(e.$slots, "dataLabel", A(ye({ key: 0 }, {
|
|
342
|
+
x: t.midPointBezier.x,
|
|
343
|
+
y: t.midPointBezier.y,
|
|
344
|
+
color: p(t),
|
|
345
|
+
weight: t.weight,
|
|
346
|
+
fontSize: m.value
|
|
347
|
+
})), void 0, !0) : v("", !0),
|
|
348
|
+
$(t) && !e.$slots.dataLabel ? (s(), i("circle", {
|
|
349
|
+
key: 1,
|
|
350
|
+
cx: t.midPointBezier.x,
|
|
351
|
+
cy: t.midPointBezier.y,
|
|
352
|
+
fill: p(t),
|
|
353
|
+
r: m.value,
|
|
354
|
+
stroke: l.value.style.backgroundColor,
|
|
355
|
+
"stroke-width": "1"
|
|
356
|
+
}, null, 8, ht)) : v("", !0),
|
|
357
|
+
$(t) && !e.$slots.dataLabel ? (s(), i("text", {
|
|
358
|
+
key: 2,
|
|
359
|
+
x: t.midPointBezier.x,
|
|
360
|
+
y: t.midPointBezier.y + m.value / 3,
|
|
361
|
+
fill: d(ge)(p(t)),
|
|
362
|
+
"text-anchor": "middle",
|
|
363
|
+
"font-size": m.value
|
|
364
|
+
}, E(d(V)(
|
|
365
|
+
l.value.style.weightLabels.formatter,
|
|
366
|
+
t.weight,
|
|
367
|
+
d(X)({
|
|
368
|
+
p: l.value.style.weightLabels.prefix,
|
|
369
|
+
v: t.weight,
|
|
370
|
+
s: l.value.style.weightLabels.suffix,
|
|
371
|
+
r: l.value.style.weightLabels.rounding
|
|
372
|
+
}),
|
|
373
|
+
{ ...t }
|
|
374
|
+
)), 9, gt)) : v("", !0)
|
|
375
|
+
]))), 256))
|
|
376
|
+
])) : (s(), i("g", mt, [
|
|
377
|
+
(s(!0), i(C, null, P(h.value, (t, n) => (s(), i("line", {
|
|
378
|
+
key: `relation_${n}`,
|
|
379
|
+
stroke: p(t),
|
|
380
|
+
"stroke-width": R(t),
|
|
381
|
+
style: O(de(t)),
|
|
382
|
+
x1: t.x1,
|
|
383
|
+
x2: t.x2,
|
|
384
|
+
y1: t.y1,
|
|
385
|
+
y2: t.y2,
|
|
386
|
+
class: D({ "vue-ui-relation-circle-selected": u.value.hasOwnProperty("id") && g.value.includes(t.id) }),
|
|
387
|
+
"stroke-linecap": "round"
|
|
388
|
+
}, null, 14, kt))), 128)),
|
|
389
|
+
(s(!0), i(C, null, P(h.value, (t, n) => (s(), i("g", xt, [
|
|
390
|
+
$(t) ? k(e.$slots, "dataLabel", A(ye({ key: 0 }, {
|
|
391
|
+
x: t.midPointLine.x,
|
|
392
|
+
y: t.midPointLine.y,
|
|
393
|
+
color: p(t),
|
|
394
|
+
weight: t.weight,
|
|
395
|
+
fontSize: m.value
|
|
396
|
+
})), void 0, !0) : v("", !0),
|
|
397
|
+
$(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (s(), i("circle", {
|
|
398
|
+
key: 1,
|
|
399
|
+
cx: t.midPointLine.x,
|
|
400
|
+
cy: t.midPointLine.y,
|
|
401
|
+
fill: p(t),
|
|
402
|
+
r: m.value,
|
|
403
|
+
stroke: l.value.style.backgroundColor,
|
|
404
|
+
"stroke-width": "1"
|
|
405
|
+
}, null, 8, pt)) : v("", !0),
|
|
406
|
+
$(t) && !e.$slots.dataLabel && l.value.style.weightLabels.show ? (s(), i("text", {
|
|
407
|
+
key: 2,
|
|
408
|
+
x: t.midPointLine.x,
|
|
409
|
+
y: t.midPointLine.y + m.value / 3,
|
|
410
|
+
fill: d(ge)(p(t)),
|
|
411
|
+
"text-anchor": "middle",
|
|
412
|
+
"font-size": m.value
|
|
413
|
+
}, E(d(V)(
|
|
414
|
+
l.value.style.weightLabels.formatter,
|
|
415
|
+
t.weight,
|
|
416
|
+
d(X)({
|
|
417
|
+
p: l.value.style.weightLabels.prefix,
|
|
418
|
+
v: t.weight,
|
|
419
|
+
s: l.value.style.weightLabels.suffix,
|
|
420
|
+
r: l.value.style.weightLabels.rounding
|
|
421
|
+
}),
|
|
422
|
+
{ ...t }
|
|
423
|
+
)), 9, wt)) : v("", !0)
|
|
424
|
+
]))), 256))
|
|
425
|
+
])),
|
|
426
|
+
(s(!0), i(C, null, P(w.value, (t, n) => (s(), i("text", {
|
|
427
|
+
key: `plot_text_${n}`,
|
|
428
|
+
"text-anchor": Ie(t),
|
|
429
|
+
transform: Fe(t),
|
|
430
|
+
x: Me(t),
|
|
431
|
+
y: t.y + 5,
|
|
432
|
+
onClick: (y) => ve(t),
|
|
433
|
+
class: "vue-ui-relation-circle-legend",
|
|
434
|
+
"transform-origin": "start",
|
|
435
|
+
"font-weight": u.value.id === t.id ? "900" : "400",
|
|
436
|
+
style: O(`font-family:${l.value.style.fontFamily};${Se(t)}`),
|
|
437
|
+
"font-size": ne.value,
|
|
438
|
+
fill: l.value.style.labels.color
|
|
439
|
+
}, E(t.label) + " (" + E(d(V)(
|
|
440
|
+
l.value.style.weightLabels.formatter,
|
|
441
|
+
t.totalWeight,
|
|
442
|
+
d(X)({
|
|
443
|
+
p: l.value.style.weightLabels.prefix,
|
|
444
|
+
v: t.totalWeight,
|
|
445
|
+
s: l.value.style.weightLabels.suffix,
|
|
446
|
+
r: l.value.style.weightLabels.rounding
|
|
447
|
+
}),
|
|
448
|
+
{ ...t }
|
|
449
|
+
)) + ") ", 13, bt))), 128)),
|
|
450
|
+
(s(!0), i(C, null, P(w.value, (t, n) => (s(), i("circle", {
|
|
451
|
+
cx: t.x,
|
|
452
|
+
cy: t.y,
|
|
453
|
+
key: `plot_${n}`,
|
|
454
|
+
style: O(Ae(t)),
|
|
455
|
+
class: "vue-ui-relation-circle-plot",
|
|
456
|
+
fill: l.value.style.plot.useSerieColor ? t.color : l.value.style.plot.color,
|
|
457
|
+
stroke: l.value.style.backgroundColor,
|
|
458
|
+
"stroke-width": "1",
|
|
459
|
+
onClick: (y) => ve(t),
|
|
460
|
+
r: ie.value
|
|
461
|
+
}, null, 12, _t))), 128)),
|
|
462
|
+
k(e.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
463
|
+
], 10, ct)) : v("", !0),
|
|
464
|
+
e.$slots.watermark ? (s(), i("div", $t, [
|
|
465
|
+
k(e.$slots, "watermark", A(W({ isPrinting: d(ee) || d(te) })), void 0, !0)
|
|
466
|
+
])) : v("", !0),
|
|
467
|
+
e.$slots.source ? (s(), i("div", {
|
|
468
|
+
key: 6,
|
|
469
|
+
ref_key: "source",
|
|
470
|
+
ref: J,
|
|
471
|
+
dir: "auto"
|
|
472
|
+
}, [
|
|
473
|
+
k(e.$slots, "source", {}, void 0, !0)
|
|
474
|
+
], 512)) : v("", !0),
|
|
475
|
+
T.value ? v("", !0) : (s(), F(it, {
|
|
476
|
+
key: 7,
|
|
477
|
+
config: {
|
|
478
|
+
type: "relationCircle",
|
|
479
|
+
style: {
|
|
480
|
+
backgroundColor: l.value.style.backgroundColor,
|
|
481
|
+
relationCircle: {
|
|
482
|
+
color: "#CCCCCC"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}, null, 8, ["config"]))
|
|
487
|
+
], 12, ot));
|
|
488
|
+
}
|
|
489
|
+
}, Et = /* @__PURE__ */ ut(Ct, [["__scopeId", "data-v-f7051bc9"]]);
|
|
490
|
+
export {
|
|
491
|
+
Et as default
|
|
492
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-B5Ugkauv.cjs"),J=require("./useResponsive-BJ7DTGpm.cjs"),xe=require("./Title-D9gPXVTT.cjs"),K=require("./usePrinter-DtpFEgOX.cjs"),we=require("./vue-ui-skeleton-E9_X0-sa.cjs"),Q=require("./useNestedProp-bZitLnbb.cjs"),be=require("./PackageVersion-CMtZxTqq.cjs"),Ce=require("./PenAndPaper-DWYhyZye.cjs"),Be=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_e=["id"],Pe=["xmlns","viewBox"],$e=["cx","cy","r","stroke","stroke-width"],Le={key:0},ze=["stroke","d","stroke-width"],Ee={style:{"pointer-events":"none"}},Se=["cx","cy","fill","r","stroke"],Oe=["x","y","fill","font-size"],Ae={key:1},Ne=["stroke","stroke-width","x1","x2","y1","y2"],Ie={style:{"pointer-events":"none"}},Fe=["cx","cy","fill","r","stroke"],Me=["x","y","fill","font-size"],Ve=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],Te=["cx","cy","fill","stroke","onClick","r"],Re={key:5,class:"vue-data-ui-watermark"},je={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(Z,{expose:ee}){const y=Z;e.useCssVars(t=>({"7693a9d2":ae.value,"65d94d14":oe.value,fa445a50:se.value}));const{vue_ui_relation_circle:te}=o.useConfig(),_=e.computed(()=>!!y.dataset&&Object.keys(y.dataset).length),x=e.ref(o.createUid()),S=e.ref(0),w=e.ref(null),O=e.ref(null),A=e.ref(null),N=e.ref(null),I=e.ref(0),r=e.computed({get:()=>F(),set:t=>t});function F(){const t=Q.useNestedProp({userConfig:y.config,defaultConfig:te});return t.theme?{...Q.useNestedProp({userConfig:o.themes.vue_ui_relation_circle[t.theme]||y.config,defaultConfig:t}),customPalette:o.themePalettes[t.theme]||o.palette}:t}e.watch(()=>y.config,t=>{r.value=F(),G(),I.value+=1},{deep:!0});const{isPrinting:M,isImaging:V,generatePdf:T,generateImage:R}=K.usePrinter({elementId:`relation_circle_${x.value}`,fileName:r.value.style.title.text||"vue-ui-relation-circle"}),le=e.computed(()=>r.value.userOptions.show&&!r.value.style.title.text),j=e.computed(()=>o.convertCustomPalette(r.value.customPalette)),h=e.ref([]),d=e.ref([]),s=e.ref({}),v=e.ref([]),re=e.ref(0),P=e.computed(()=>y.dataset.slice(0,r.value.style.limit)),k=e.ref(r.value.style.size),f=e.ref(r.value.style.weightLabels.size),D=e.ref(r.value.style.plot.radius),q=e.ref(r.value.style.labels.fontSize),i=e.ref({height:r.value.style.size,width:r.value.style.size}),m=e.computed({get(){return k.value*r.value.style.circle.radiusProportion},set(t){return t}}),ne=e.computed(()=>r.value.style.links.curved),oe=e.computed(()=>`${r.value.style.animation.speedMs}ms`),ae=e.computed(()=>m.value*2),se=e.computed(()=>m.value*4),b=e.ref(null);e.onMounted(()=>{G(),document.getElementById(`relation_circle_${x.value}`).addEventListener("click",U)});function G(){if(o.objectIsEmpty(y.dataset)?o.error({componentName:"VueUiRelationCircle",type:"dataset"}):y.dataset.forEach((t,n)=>{o.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["id","label","relations","weights"]}).forEach(l=>{o.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:l,index:n})})}),r.value.responsive){const t=J.throttle(()=>{const{width:n,height:l}=J.useResponsive({chart:w.value,title:r.value.style.title.text?O.value:null,source:A.value,noTitle:N.value});k.value=Math.min(n,l),i.value.width=n,i.value.height=l,m.value=k.value*r.value.style.circle.radiusProportion,h.value=[],d.value=[],W(),Y(),f.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.weightLabels.size,threshold:6,fallback:6}),D.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.plot.radius,threshold:1,fallback:1}),q.value=o.translateSize({relator:k.value,adjuster:r.value.style.size,source:r.value.style.labels.fontSize,threshold:6,fallback:6})});b.value=new ResizeObserver(t),b.value.observe(w.value.parentNode)}else h.value=[],d.value=[],W(),Y()}e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${x.value}`).removeEventListener("click",U),b.value&&b.value.disconnect()});function U(t){const n=t.target;n&&Array.from(n.classList).includes("vue-ui-user-options")||n&&Array.from(n.classList).includes("vue-ui-user-options-summary")||n&&Array.from(n.classList).includes("vue-data-ui-button")||n&&Array.from(n.classList).includes("vue-ui-relation-circle-legend")||(s.value={},v.value=[])}function W(){const t=6.28319/P.value.length,n=360/P.value.length;let l=0,a=0;P.value.forEach((c,u)=>{const z=c.weights.reduce((ke,pe)=>ke+pe,0),E=m.value*Math.cos(l)+i.value.width/2,me=m.value*Math.sin(l)+i.value.height/2+r.value.style.circle.offsetY;h.value.push({x:E,y:me,...c,color:c.color?c.color:j.value[u]?j.value[u]:o.palette[u],regAngle:a,totalWeight:z}),l+=t,a+=n})}function ie(t,n){const l=(t.x+n.x)/2,a=(t.y+n.y)/2;return{x:l,y:a}}function Y(){d.value=[],h.value.forEach(t=>{h.value.filter(l=>l.relations.includes(t.id)).forEach((l,a)=>{const c=l.relations.indexOf(t.id);d.value.push({weight:l.weights[c]?l.weights[c]:0,relationId:`${t.id}_${l.id}`,x1:t.x,y1:t.y,x2:l.x,y2:l.y,colorSource:t.color,colorTarget:l.color,midPointLine:ie({x:t.x,y:t.y},{x:l.x,y:l.y}),midPointBezier:ue({x1:t.x,x2:l.x,y1:t.y,y2:l.y}),...t})})})}function ue(t){const n={x:t.x1,y:t.y1},l={x:t.x2,y:t.y2},a={x:t.x1,y:t.y1},c={x:i.value.width/2,y:i.value.height/2+r.value.style.circle.offsetY},u=.5,z=Math.pow(1-u,3)*n.x+3*Math.pow(1-u,2)*u*a.x+3*(1-u)*Math.pow(u,2)*c.x+Math.pow(u,3)*l.x,E=Math.pow(1-u,3)*n.y+3*Math.pow(1-u,2)*u*a.y+3*(1-u)*Math.pow(u,2)*c.y+Math.pow(u,3)*l.y;return{x:z,y:E}}const ce=e.computed(()=>Math.max(...d.value.map(t=>t.weight)));function de(t){return Object.hasOwn(s.value,"x")?v.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function g(t){return t.colorSource}function X(t){return Object.hasOwn(s.value,"x")?v.value.includes(t.id)&&t.relationId===`${t.id}_${s.value.id}`||t.relationId===`${s.value.id}_${t.id}`?`opacity:1;stroke-width:${$(t)}`:"opacity: 0":"opacity: 1"}function p(t){return Object.hasOwn(s.value,"x")?!!(v.value.includes(t.id)&&t.relationId===`${t.id}_${s.value.id}`||t.relationId===`${s.value.id}_${t.id}`):!1}function ve(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function fe(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function ye(t){return Object.hasOwn(s.value,"x")?s.value.id===t.id||v.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function ge(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function H(t){re.value=360-t.regAngle,s.value.id&&t.id===s.value.id?(s.value={},v.value=[]):(s.value=t,v.value=[...t.relations])}function $(t){const n=t.weight/ce.value*r.value.style.links.maxWidth;return Math.max(.3,n)}const C=e.ref(!1);function he(t){C.value=t,S.value+=1}const B=e.ref(!1);function L(){B.value=!B.value}return ee({generatePdf:T,generateImage:R,toggleAnnotator:L}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:w,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_${x.value}`},[r.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ce.PenAndPaper,{key:0,parent:w.value,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,active:B.value,onClose:L},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),le.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:N,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),r.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:O,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(xe._sfc_main,{key:`title_${I.value}`,config:{title:{cy:"relation-div-title",...r.value.style.title},subtitle:{cy:"relation-div-subtitle",...r.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),r.value.userOptions.show&&_.value?(e.openBlock(),e.createBlock(K.UserOptions,{ref:"details",key:`user_options_${S.value}`,backgroundColor:r.value.style.backgroundColor,color:r.value.style.color,isPrinting:e.unref(M),isImaging:e.unref(V),uid:x.value,hasPdf:r.value.userOptions.buttons.pdf,hasImg:r.value.userOptions.buttons.img,hasFullscreen:r.value.userOptions.buttons.img,hasXls:!1,isFullscreen:C.value,titles:{...r.value.userOptions.buttonTitles},chartElement:w.value,position:r.value.userOptions.position,hasAnnotator:r.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:he,onGeneratePdf:e.unref(T),onGenerateImage:e.unref(R),onToggleAnnotator:L},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:a})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:a})),void 0,!0)]),key:"2"}:void 0,t.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:a})=>[e.renderSlot(t.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:a})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(o.XMLNS),class:e.normalizeClass([{"vue-data-ui-fullscreen--on":C.value,"vue-data-ui-fulscreen--off":!C.value},"relation-circle"]),viewBox:`0 0 ${i.value.width<=0?10:i.value.width} ${i.value.height<=0?10:i.value.height}`,width:"100%",style:"user-select:none; background:transparent"},[e.createVNode(be._sfc_main),e.createElementVNode("circle",{cx:(i.value.width<=0?1e-4:i.value.width)/2,cy:(i.value.height<=0?1e-4:i.value.height)/2+r.value.style.circle.offsetY,r:m.value<=0?1e-4:m.value,stroke:r.value.style.circle.stroke,"stroke-width":r.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,$e),ne.value?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${a}`,style:e.normalizeStyle(X(l)),stroke:g(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":s.value.hasOwnProperty("id")&&v.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${i.value.width/2},${i.value.height/2+r.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":$(l),"stroke-linecap":"round"},null,14,ze))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",Ee,[p(l)?e.renderSlot(t.$slots,"dataLabel",e.normalizeProps(e.mergeProps({key:0},{x:l.midPointBezier.x,y:l.midPointBezier.y,color:g(l),weight:l.weight,fontSize:f.value})),void 0,!0):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:l.midPointBezier.x,cy:l.midPointBezier.y,fill:g(l),r:f.value,stroke:r.value.style.backgroundColor,"stroke-width":"1"},null,8,Se)):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.midPointBezier.x,y:l.midPointBezier.y+f.value/3,fill:e.unref(o.adaptColorToBackground)(g(l)),"text-anchor":"middle","font-size":f.value},e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.weight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.weight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l})),9,Oe)):e.createCommentVNode("",!0)]))),256))])):(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${a}`,stroke:g(l),"stroke-width":$(l),style:e.normalizeStyle(X(l)),x1:l.x1,x2:l.x2,y1:l.y1,y2:l.y2,class:e.normalizeClass({"vue-ui-relation-circle-selected":s.value.hasOwnProperty("id")&&v.value.includes(l.id)}),"stroke-linecap":"round"},null,14,Ne))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,a)=>(e.openBlock(),e.createElementBlock("g",Ie,[p(l)?e.renderSlot(t.$slots,"dataLabel",e.normalizeProps(e.mergeProps({key:0},{x:l.midPointLine.x,y:l.midPointLine.y,color:g(l),weight:l.weight,fontSize:f.value})),void 0,!0):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel&&r.value.style.weightLabels.show?(e.openBlock(),e.createElementBlock("circle",{key:1,cx:l.midPointLine.x,cy:l.midPointLine.y,fill:g(l),r:f.value,stroke:r.value.style.backgroundColor,"stroke-width":"1"},null,8,Fe)):e.createCommentVNode("",!0),p(l)&&!t.$slots.dataLabel&&r.value.style.weightLabels.show?(e.openBlock(),e.createElementBlock("text",{key:2,x:l.midPointLine.x,y:l.midPointLine.y+f.value/3,fill:e.unref(o.adaptColorToBackground)(g(l)),"text-anchor":"middle","font-size":f.value},e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.weight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.weight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l})),9,Me)):e.createCommentVNode("",!0)]))),256))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,a)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${a}`,"text-anchor":ve(l),transform:ge(l),x:fe(l),y:l.y+5,onClick:c=>H(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":s.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${r.value.style.fontFamily};${ye(l)}`),"font-size":q.value,fill:r.value.style.labels.color},e.toDisplayString(l.label)+" ("+e.toDisplayString(e.unref(o.applyDataLabel)(r.value.style.weightLabels.formatter,l.totalWeight,e.unref(o.dataLabel)({p:r.value.style.weightLabels.prefix,v:l.totalWeight,s:r.value.style.weightLabels.suffix,r:r.value.style.weightLabels.rounding}),{...l}))+") ",13,Ve))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,(l,a)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${a}`,style:e.normalizeStyle(de(l)),class:"vue-ui-relation-circle-plot",fill:r.value.style.plot.useSerieColor?l.color:r.value.style.plot.color,stroke:r.value.style.backgroundColor,"stroke-width":"1",onClick:c=>H(l),r:D.value},null,12,Te))),128)),e.renderSlot(t.$slots,"svg",{svg:i.value},void 0,!0)],10,Pe)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Re,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(M)||e.unref(V)})),void 0,!0)])):e.createCommentVNode("",!0),t.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:A,dir:"auto"},[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),_.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(we.default,{key:7,config:{type:"relationCircle",style:{backgroundColor:r.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,_e))}},De=Be._export_sfc(je,[["__scopeId","data-v-f7051bc9"]]);exports.default=De;
|
|
@@ -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-B5Ugkauv.cjs"),Z=require("./useResponsive-BJ7DTGpm.cjs"),ge=require("./Title-D9gPXVTT.cjs"),ee=require("./usePrinter-DtpFEgOX.cjs"),fe=require("./Tooltip-ypQtmi99.cjs"),me=require("./DataTable-Cr3Xkxe4.cjs"),ye=require("./Legend-BXG_XPom.cjs"),be=require("./vue-ui-skeleton-E9_X0-sa.cjs"),ke=require("./vue-ui-accordion-u4xDSvRn.cjs"),te=require("./useNestedProp-bZitLnbb.cjs"),Ce=require("./PackageVersion-CMtZxTqq.cjs"),we=require("./PenAndPaper-DWYhyZye.cjs"),Te=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),xe=["id"],Ne=["xmlns","viewBox"],$e=["id"],Se=["stop-color"],Be=["stop-color"],Pe=["stroke","cx","cy","r","fill"],_e=["stroke","stroke-width","cx","cy","r","fill"],Le=["cx","cy","r","onMouseenter"],Ve={key:5,class:"vue-data-ui-watermark"},Ee=["onClick"],Ae={key:0},Oe={key:1},ze=["innerHTML"],Fe={__name:"vue-ui-rings",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend"],setup(oe,{expose:le,emit:ae}){const v=oe,{vue_ui_rings:re}=r.useConfig(),b=e.ref(!1),T=e.computed(()=>!!v.dataset&&v.dataset.length),k=e.ref(r.createUid()),ne=e.ref(null),x=e.ref(!1),P=e.ref(""),m=e.ref(null),E=e.ref(0),y=e.ref(null),A=e.ref(null),O=e.ref(null),z=e.ref(null),F=e.ref(null),I=e.ref(0),R=e.ref(0),M=e.ref(0),t=e.computed({get:()=>q(),set:o=>o});function q(){const o=te.useNestedProp({userConfig:v.config,defaultConfig:re});return o.theme?{...te.useNestedProp({userConfig:r.themes.vue_ui_rings[o.theme]||v.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}e.watch(()=>v.config,o=>{t.value=q(),D(),I.value+=1,R.value+=1,M.value+=1},{deep:!0});const N=e.ref(null);e.onMounted(()=>{D()});function D(){if(r.objectIsEmpty(v.dataset)?r.error({componentName:"VueUiRings",type:"dataset"}):v.dataset.forEach((o,a)=>{o.values.length||r.error({componentName:"VueUiRings",type:"dataset"}),r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["name","values"]}).forEach(l=>{r.error({componentName:"VueUiRings",type:"datasetSerieAttribute",property:l,index:a})})}),t.value.responsive){const o=Z.throttle(()=>{const{width:a,height:l}=Z.useResponsive({chart:y.value,title:t.value.style.chart.title.text?A.value:null,legend:t.value.style.chart.legend.show?O.value:null,source:z.value,noTitle:F.value});s.value.width=a,s.value.height=l});N.value=new ResizeObserver(o),N.value.observe(y.value.parentNode)}setTimeout(()=>{b.value=!0},600)}e.onBeforeUnmount(()=>{N.value&&N.value.disconnect()});const{isPrinting:U,isImaging:H,generatePdf:W,generateImage:G}=ee.usePrinter({elementId:`rings_${k.value}`,fileName:t.value.style.chart.title.text||"vue-ui-rings"}),ue=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),j=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}),se=e.computed(()=>Math.min(s.value.height,s.value.width)),i=e.ref([]);function _(o){i.value.includes(o)?i.value=i.value.filter(a=>a!==o):i.value.push(o),ae("selectLegend",c.value.map(a=>({name:a.name,color:a.color,value:a.value})))}const ie=e.computed(()=>Math.max(...$.value.filter(o=>!i.value.includes(o.uid)).map(({value:o})=>o)));function X(o){return o/ie.value}const $=e.computed(()=>v.dataset.map(({values:o,name:a,color:l=null},n)=>{const u=r.sanitizeArray(o).reduce((h,w)=>h+w,0);return{name:a,color:l||r.convertColorToHex(l)||j.value[n]||r.palette[n]||r.palette[n%r.palette.length],value:u,proportion:u/v.dataset.map(h=>(h.values||[]).reduce((w,he)=>w+he,0)).reduce((h,w)=>h+w,0),uid:r.createUid()}})),Y=e.computed(()=>$.value.map(o=>({...o,shape:"circle",opacity:i.value.includes(o.uid)?.5:1,segregate:()=>_(o.uid),isSegregated:i.value.includes(o.uid)})).toSorted((o,a)=>a.value-o.value)),ce=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(()=>$.value.filter(o=>!i.value.includes(o.uid)).map(({value:o})=>o).reduce((o,a)=>o+a,0)),c=e.computed(()=>$.value.filter(o=>!i.value.includes(o.uid)).map(({name:o,value:a,color:l=null,uid:n},u)=>({uid:n,name:o,color:l||r.convertColorToHex(l)||j.value[u]||r.palette[u]||r.palette[u%r.palette.length],value:a,proportion:X(a),percentage:a/p.value*100,strokeWidth:t.value.style.chart.layout.rings.strokeWidth*X(a)})).toSorted((o,a)=>a.value-o.value));function de(){return c.value.map(({name:o,color:a,value:l,absoluteValues:n,percentage:u})=>({name:o,color:a,value:l,absoluteValues:n,percentage:u}))}const d=e.computed(()=>se.value-t.value.style.chart.layout.rings.strokeWidth*2),L=e.ref(null);function ve(o,a){if(i.value.length===v.dataset.length)return;L.value={datapoint:a,seriesIndex:o,series:c.value,config:t.value},m.value=o;const l=c.value[o],n=t.value.style.chart.tooltip.customFormat;if(r.isFunction(n)&&r.functionReturnsString(()=>n({seriesIndex:o,datapoint:a,series:c.value,config:t.value})))P.value=n({seriesIndex:o,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;">${l.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="${l.color}" /></svg>`,t.value.style.chart.tooltip.showValue&&(u+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,r.dataLabel({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:a,seriesIndex:o})}
|
|
2
2
|
</b>`),t.value.style.chart.tooltip.showPercentage&&(t.value.style.chart.tooltip.showValue?u+=`<span>(${r.dataLabel({v:l.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})})</span></div>`:u+=`<b>${r.dataLabel({v:l.value/p.value*100,s:"%",r:t.value.style.chart.tooltip.roundingPercentage})}</b></div>`),P.value=u}x.value=!0}const f=e.computed(()=>{const o=c.value.map(l=>({name:l.name,color:l.color})),a=c.value.map(l=>l.value);return{head:o,body:a}}),S=e.computed(()=>{const o=[' <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)+"%"]),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},n=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage];return{head:o,body:a,config:l,colNames:n}});function J(){e.nextTick(()=>{const o=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(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-rings"})})}const C=e.ref(!1);function pe(o){C.value=o,E.value+=1}function K(){g.value.showTable=!g.value.showTable}function Q(){g.value.showTooltip=!g.value.showTooltip}const B=e.ref(!1);function V(){B.value=!B.value}return le({getData:de,generatePdf:W,generateCsv:J,generateImage:G,toggleTable:K,toggleTooltip:Q,toggleAnnotator:V}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"ringsChart",ref:y,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_${k.value}`,onMouseleave:a[3]||(a[3]=l=>{m.value=null,x.value=!1})},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(we.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:B.value,onClose:V},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),ue.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:F,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:A,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ge._sfc_main,{key:`title_${I.value}`,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"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&T.value?(e.openBlock(),e.createBlock(ee.UserOptions,{ref_key:"details",ref:ne,key:`user_options_${E.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(U),isImaging:e.unref(H),uid:k.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:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:B.value,onToggleFullscreen:pe,onGeneratePdf:e.unref(W),onGenerateCsv:J,onGenerateImage:e.unref(G),onToggleTable:K,onToggleTooltip:Q,onToggleAnnotator:V},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:n})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:n})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:n})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:n})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createElementBlock("svg",{key:4,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:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(Ce._sfc_main),e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,n)=>(e.openBlock(),e.createElementBlock("radialGradient",{cx:"50%",cy:"30%",r:"50%",fx:"50%",fy:"50%",id:`gradient_${k.value}_${n}`},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(l.color,.05),100-t.value.style.chart.layout.rings.gradient.intensity)},null,8,Se),e.createElementVNode("stop",{offset:"100%","stop-color":l.color},null,8,Be)],8,$e))),256))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(l,n)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.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*l.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*l.proportion/2*.9<=0?1e-4:d.value*l.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.underlayerColor},null,14,Pe),e.createElementVNode("circle",{class:e.normalizeClass({"vue-ui-rings-item":b.value&&t.value.useCssAnimation,"vue-rings-item-onload":!b.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":l.strokeWidth<.5?.5:l.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*l.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*l.proportion/2*.9<=0?1e-4:d.value*l.proportion/2*.9),fill:t.value.style.chart.layout.rings.gradient.show?`url(#gradient_${k.value}_${n})`:l.color},null,14,_e),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*l.proportion/2-2*(n+1),r:e.unref(r.checkNaN)(d.value*l.proportion/2*.9<=0?1e-4:d.value*l.proportion/2*.9),fill:"transparent",onMouseenter:u=>ve(n,l),onMouseleave:a[0]||(a[0]=u=>{m.value=null,x.value=!1})},null,40,Le)]))),256)),e.renderSlot(o.$slots,"svg",{svg:s.value},void 0,!0)],14,Ne)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ve,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(U)||e.unref(H)})),void 0,!0)])):e.createCommentVNode("",!0),T.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(be.default,{key:6,config:{type:"rings",style:{backgroundColor:t.value.style.chart.backgroundColor,rings:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:O},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(ye.Legend,{key:`legend_${M.value}`,legendSet:Y.value,config:ce.value,onClickMarker:a[1]||(a[1]=({legend:l})=>_(l.uid))},{item:e.withCtx(({legend:l,index:n})=>[e.createElementVNode("div",{"data-cy-legend-item":"",onClick:u=>_(l.uid),style:e.normalizeStyle(`opacity:${i.value.includes(l.uid)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.dataLabels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.dataLabels.prefix,v:l.value,s:t.value.style.chart.layout.labels.dataLabels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l,seriesIndex:n}))+" ",1),i.value.includes(l.uid)?(e.openBlock(),e.createElementBlock("span",Oe," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",Ae," ("+e.toDisplayString(isNaN(l.value/p.value)?"-":e.unref(r.dataLabel)({v:l.value/p.value*100,s:"%",r:t.value.style.chart.legend.roundingPercentage}))+") ",1))],12,Ee)]),_:1},8,["legendSet","config"])):e.renderSlot(o.$slots,"legend",{key:1,legend:Y.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:z,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(fe._sfc_main,{show:g.value.showTooltip&&x.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:y.value,content:P.value,isCustom:t.value.style.chart.tooltip.customFormat&&typeof t.value.style.chart.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...L.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),T.value?(e.openBlock(),e.createBlock(ke.default,{key:8,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.openBlock(),e.createBlock(me.DataTable,{key:`table_${R.value}`,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]=l=>g.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,ze)]),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)],46,xe))}},Ie=Te._export_sfc(Fe,[["__scopeId","data-v-2a4f4cb4"]]);exports.default=Ie;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ref as n, computed as v, watch as Re, onMounted as Ve, onBeforeUnmount as Be, openBlock as r, createElementBlock as f, normalizeClass as W, normalizeStyle as I, createBlock as _, createCommentVNode as k, unref as i, createSlots as De, withCtx as p, renderSlot as h, normalizeProps as F, guardReactiveProps as M, createVNode as fe, createElementVNode as C, Fragment as ye, renderList as me, createTextVNode as be, toDisplayString as E, nextTick as Ue } from "vue";
|
|
2
|
-
import { u as We, c as ke, t as Ee, a as Ge, p as x, o as He, e as Y, g as Xe, b as je, I as Ye, d as Ce, f as N, X as qe, s as Je, w as Ke, v as q, i as we, x as Qe, y as Ze, q as et, r as tt } from "./index-
|
|
2
|
+
import { u as We, c as ke, t as Ee, a as Ge, p as x, o as He, e as Y, g as Xe, b as je, I as Ye, d as Ce, f as N, X as qe, s as Je, w as Ke, v as q, i as we, x as Qe, y as Ze, q as et, r as tt } from "./index-B6Q1Fyk0.js";
|
|
3
3
|
import { t as lt, u as ot } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as at } from "./Title-
|
|
5
|
-
import { u as st, U as nt } from "./usePrinter-
|
|
6
|
-
import { _ as rt } from "./Tooltip-
|
|
7
|
-
import { D as ut } from "./DataTable-
|
|
8
|
-
import { L as it } from "./Legend-
|
|
9
|
-
import vt from "./vue-ui-skeleton-
|
|
10
|
-
import ct from "./vue-ui-accordion-
|
|
11
|
-
import { u as $e } from "./useNestedProp-
|
|
12
|
-
import { _ as dt } from "./PackageVersion-
|
|
13
|
-
import { P as pt } from "./PenAndPaper-
|
|
4
|
+
import { _ as at } from "./Title-BB0O0yol.js";
|
|
5
|
+
import { u as st, U as nt } from "./usePrinter-D8dIU7aG.js";
|
|
6
|
+
import { _ as rt } from "./Tooltip-GvLaModr.js";
|
|
7
|
+
import { D as ut } from "./DataTable-B5DiCrf_.js";
|
|
8
|
+
import { L as it } from "./Legend-DzxQIjDO.js";
|
|
9
|
+
import vt from "./vue-ui-skeleton-D7rg5vFC.js";
|
|
10
|
+
import ct from "./vue-ui-accordion-BOHicozd.js";
|
|
11
|
+
import { u as $e } from "./useNestedProp-DQpuJSz3.js";
|
|
12
|
+
import { _ as dt } from "./PackageVersion-S7OD_s5u.js";
|
|
13
|
+
import { P as pt } from "./PenAndPaper-BxJZd7k9.js";
|
|
14
14
|
import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const gt = ["id"], ft = ["xmlns", "viewBox"], yt = ["id"], mt = ["stop-color"], bt = ["stop-color"], kt = ["stroke", "cx", "cy", "r", "fill"], Ct = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], wt = ["cx", "cy", "r", "onMouseenter"], $t = {
|
|
16
16
|
key: 5,
|