vue-data-ui 2.4.39 → 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-gn_WiuJU.js → Arrow-6z0ZQva_.js} +1 -1
- package/dist/{Arrow-BH3TXY5i.cjs → Arrow-Cht76m69.cjs} +1 -1
- package/dist/{BaseIcon-C9eU1XEJ.cjs → BaseIcon-D-JUZiGA.cjs} +1 -1
- package/dist/{BaseIcon-PEMG4fz_.js → BaseIcon-DCE3wRiG.js} +1 -1
- package/dist/{DataTable-D7EHk98Z.js → DataTable-B5DiCrf_.js} +2 -2
- package/dist/{DataTable-Dk61oGV_.cjs → DataTable-Cr3Xkxe4.cjs} +1 -1
- package/dist/{Legend-6jFPkL1P.cjs → Legend-BXG_XPom.cjs} +1 -1
- package/dist/{Legend-C8xQE9Da.js → Legend-DzxQIjDO.js} +1 -1
- package/dist/{PackageVersion-C7okNmPF.cjs → PackageVersion-CMtZxTqq.cjs} +1 -1
- package/dist/{PackageVersion-CiIsJuZg.js → PackageVersion-S7OD_s5u.js} +1 -1
- package/dist/{PenAndPaper-BBXIRAdA.js → PenAndPaper-BxJZd7k9.js} +3 -3
- package/dist/{PenAndPaper-BUjMRWG0.cjs → PenAndPaper-DWYhyZye.cjs} +1 -1
- package/dist/{Shape-C37gcsR4.js → Shape-C3ywBhkW.js} +1 -1
- package/dist/{Shape-f0l9bT7U.cjs → Shape-CvL90fNe.cjs} +1 -1
- package/dist/{Slicer-A-l0DLQY.cjs → Slicer-B2aHb4bj.cjs} +1 -1
- package/dist/{Slicer-DHzuJMcK.js → Slicer-D9ASV60L.js} +2 -2
- package/dist/{Title-DU9SuVY-.js → Title-BB0O0yol.js} +1 -1
- package/dist/{Title-BeCsXJhg.cjs → Title-D9gPXVTT.cjs} +1 -1
- package/dist/{Tooltip-Chiu53IG.js → Tooltip-GvLaModr.js} +1 -1
- package/dist/{Tooltip-DCwHEKeM.cjs → Tooltip-ypQtmi99.cjs} +1 -1
- package/dist/index-B5Ugkauv.cjs +9 -0
- package/dist/{index-hQvps1ng.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-CxQ2hIfU.js → useNestedProp-DQpuJSz3.js} +1 -1
- package/dist/{useNestedProp-DzZoHbI7.cjs → useNestedProp-bZitLnbb.cjs} +1 -1
- package/dist/{usePrinter-c5Pf5Hrk.js → usePrinter-D8dIU7aG.js} +1 -1
- package/dist/{usePrinter-C-C264ik.cjs → usePrinter-DtpFEgOX.cjs} +1 -1
- package/dist/{vue-data-ui-DhR5T2GB.cjs → vue-data-ui-DBN7iJHU.cjs} +1 -1
- package/dist/{vue-data-ui-DD3uGHqs.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-BNOB6IJY.js → vue-ui-3d-bar-BA2CQYGW.js} +9 -9
- package/dist/{vue-ui-3d-bar-CBVoa_Wd.cjs → vue-ui-3d-bar-BaNI_M3v.cjs} +1 -1
- package/dist/{vue-ui-accordion-CbATWtZa.js → vue-ui-accordion-BOHicozd.js} +3 -3
- package/dist/{vue-ui-accordion-CTxFHMF7.cjs → vue-ui-accordion-u4xDSvRn.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-ahMSlg4_.cjs → vue-ui-age-pyramid-DN25tjv-.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-Ddn0vH-R.js → vue-ui-age-pyramid-vKWko9vn.js} +10 -10
- package/dist/{vue-ui-annotator-DUul7luS.cjs → vue-ui-annotator-BcxUQ5tM.cjs} +1 -1
- package/dist/{vue-ui-annotator-DgPWj2k4.js → vue-ui-annotator-D4KNucw5.js} +1 -1
- package/dist/{vue-ui-bullet-BvFWfcoX.cjs → vue-ui-bullet-C3DKTZbg.cjs} +1 -1
- package/dist/{vue-ui-bullet-C6JmUhDP.js → vue-ui-bullet-DZgtd_qb.js} +8 -8
- package/dist/{vue-ui-candlestick-BUATE5UN.js → vue-ui-candlestick-C8yBMu8-.js} +11 -11
- package/dist/{vue-ui-candlestick-hi4L9XWB.cjs → vue-ui-candlestick-DVEofXBZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-Bi9tYRH3.js → vue-ui-carousel-table-Bpsrlbx9.js} +4 -4
- package/dist/{vue-ui-carousel-table-DvotxYl6.cjs → vue-ui-carousel-table-C62szGjt.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CRICzF5h.js → vue-ui-chestnut-DhPSNM96.js} +8 -8
- package/dist/{vue-ui-chestnut-Bv2eLqjB.cjs → vue-ui-chestnut-VWwSZnUX.cjs} +1 -1
- package/dist/{vue-ui-cursor-DfwrrtWf.js → vue-ui-cursor-BM2OiZnZ.js} +2 -2
- package/dist/{vue-ui-cursor-qFWZfG95.cjs → vue-ui-cursor-BwnZYB4D.cjs} +1 -1
- package/dist/vue-ui-dashboard-BcnW7vDs.js +248 -0
- package/dist/vue-ui-dashboard-D8FU1GbE.cjs +1 -0
- package/dist/{vue-ui-digits-C3X-8Guv.cjs → vue-ui-digits-BmQBwho3.cjs} +1 -1
- package/dist/{vue-ui-digits-DUCY8rWv.js → vue-ui-digits-M4Pvrg0n.js} +2 -2
- package/dist/{vue-ui-donut-BiUKzDWv.js → vue-ui-donut-BgsQjURe.js} +11 -11
- package/dist/{vue-ui-donut-Bv2GZaYZ.cjs → vue-ui-donut-CZZfvbPk.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-Cup3zFPj.js → vue-ui-donut-evolution-BO2-ARBX.js} +11 -11
- package/dist/{vue-ui-donut-evolution-j8JKVqXN.cjs → vue-ui-donut-evolution-DP14ctdf.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CANVwmSA.cjs → vue-ui-dumbbell-CsMqgiGr.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DJE8-e3A.js → vue-ui-dumbbell-zv7yiPPM.js} +10 -10
- package/dist/{vue-ui-flow-Crq3AVFe.js → vue-ui-flow-BqtIWBkz.js} +9 -9
- package/dist/{vue-ui-flow-Dvz0sa0O.cjs → vue-ui-flow-E5MkZ3Yb.cjs} +1 -1
- package/dist/{vue-ui-funnel-M8uzLylj.js → vue-ui-funnel-CmVLAttG.js} +8 -8
- package/dist/{vue-ui-funnel-BVujl3GY.cjs → vue-ui-funnel-QU0_JscL.cjs} +1 -1
- package/dist/{vue-ui-galaxy-BfQkC9br.cjs → vue-ui-galaxy-BPDH-9KW.cjs} +1 -1
- package/dist/{vue-ui-galaxy-B77VCJR3.js → vue-ui-galaxy-sy8zvgcg.js} +11 -11
- package/dist/{vue-ui-gauge-8xiT5BUm.js → vue-ui-gauge--hARSvgz.js} +7 -7
- package/dist/{vue-ui-gauge-DwMexCwq.cjs → vue-ui-gauge-D_yokJMS.cjs} +1 -1
- package/dist/{vue-ui-gizmo-C9pEyZr1.cjs → vue-ui-gizmo-AUJq3EQL.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CI96cnOM.js → vue-ui-gizmo-CvTeq5j0.js} +3 -3
- package/dist/{vue-ui-heatmap-lXe9Bxsb.cjs → vue-ui-heatmap-D-xNLuqW.cjs} +1 -1
- package/dist/{vue-ui-heatmap-DE6AgqvQ.js → vue-ui-heatmap-lI8oO-nh.js} +10 -10
- package/dist/{vue-ui-history-plot-B2p5Da7E.cjs → vue-ui-history-plot-BC0Rvo-r.cjs} +1 -1
- package/dist/{vue-ui-history-plot-CO2ZBnhb.js → vue-ui-history-plot-D3CwJpll.js} +11 -11
- package/dist/{vue-ui-kpi-D_URPS6w.cjs → vue-ui-kpi-B4FQKZ_r.cjs} +1 -1
- package/dist/{vue-ui-kpi-Cc7Yytho.js → vue-ui-kpi-C0agq-Os.js} +3 -3
- package/dist/{vue-ui-mini-loader-DHXKDtYR.cjs → vue-ui-mini-loader-BJ70GAEv.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DYbYoCQH.js → vue-ui-mini-loader-CkjJ5pRO.js} +2 -2
- package/dist/{vue-ui-molecule-CYs_u6Wz.cjs → vue-ui-molecule-CsQfkIEE.cjs} +1 -1
- package/dist/{vue-ui-molecule-CYlh7983.js → vue-ui-molecule-V9UFJHeV.js} +11 -11
- package/dist/{vue-ui-mood-radar-BjcUi2lA.cjs → vue-ui-mood-radar-CdU2vusL.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B3nvz_EX.js → vue-ui-mood-radar-Cj_wOEbY.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BDPVh9VT.js → vue-ui-nested-donuts-DFVQwbHg.js} +11 -11
- package/dist/{vue-ui-nested-donuts-sf-rnAYN.cjs → vue-ui-nested-donuts-DevV-xZr.cjs} +1 -1
- package/dist/{vue-ui-onion-BddrBSxm.js → vue-ui-onion-BJ-PjA7d.js} +11 -11
- package/dist/{vue-ui-onion-DYhBNiT8.cjs → vue-ui-onion-DGWktnME.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-JyWFCBD3.js → vue-ui-parallel-coordinate-plot-33naX1Ss.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-m-ZgXf3c.cjs → vue-ui-parallel-coordinate-plot-CjxZbVNa.cjs} +1 -1
- package/dist/{vue-ui-quadrant-C0XCJA1s.cjs → vue-ui-quadrant-DqZqBb2L.cjs} +1 -1
- package/dist/{vue-ui-quadrant-woZI-oSE.js → vue-ui-quadrant-xJaZzXgo.js} +12 -12
- package/dist/{vue-ui-quick-chart-DT37a1KG.js → vue-ui-quick-chart-BwN9eLye.js} +9 -9
- package/dist/{vue-ui-quick-chart-GAy1Kq_9.cjs → vue-ui-quick-chart-BzpXJYR_.cjs} +1 -1
- package/dist/{vue-ui-radar-BWLte3c3.js → vue-ui-radar-B4EXwJDY.js} +12 -12
- package/dist/{vue-ui-radar-C31U_Z53.cjs → vue-ui-radar-CQ66YUG5.cjs} +1 -1
- package/dist/{vue-ui-rating-B4LMCbX7.cjs → vue-ui-rating-D334I4ju.cjs} +1 -1
- package/dist/{vue-ui-rating-0HTRr8sI.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-CptiG61Q.cjs → vue-ui-rings-2oDSTctd.cjs} +1 -1
- package/dist/{vue-ui-rings-Cd_dJ3co.js → vue-ui-rings-D6M3UNSE.js} +11 -11
- package/dist/{vue-ui-scatter-BK5xv5mP.cjs → vue-ui-scatter-C9ZoWV1q.cjs} +1 -1
- package/dist/{vue-ui-scatter-Do7eIAvo.js → vue-ui-scatter-JUPbbsO7.js} +12 -12
- package/dist/{vue-ui-screenshot-DJjluZur.js → vue-ui-screenshot-DmLDHfF9.js} +1 -1
- package/dist/{vue-ui-screenshot-hW8cPfaI.cjs → vue-ui-screenshot-JMBX_AWn.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Dmee5Xfg.js → vue-ui-skeleton-D7rg5vFC.js} +3 -3
- package/dist/{vue-ui-skeleton-Ckb3hRcQ.cjs → vue-ui-skeleton-E9_X0-sa.cjs} +1 -1
- package/dist/{vue-ui-smiley-B3MEz94h.js → vue-ui-smiley-BAlHZm8H.js} +2 -2
- package/dist/{vue-ui-smiley-CfQTx9Kb.cjs → vue-ui-smiley-aRTznf8z.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-B-sO8emp.cjs → vue-ui-spark-trend-DZR6Fqu5.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-BnziIPLw.js → vue-ui-spark-trend-J9swikF_.js} +5 -5
- package/dist/{vue-ui-sparkbar-D3W-HMC0.js → vue-ui-sparkbar-B0tCpwZ9.js} +4 -4
- package/dist/{vue-ui-sparkbar-DWHagP1f.cjs → vue-ui-sparkbar-Bjmi8pMf.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Bp20yElv.js → vue-ui-sparkgauge-DVX2pIC3.js} +4 -4
- package/dist/{vue-ui-sparkgauge-Cx_dMzxw.cjs → vue-ui-sparkgauge-Dhzbkn67.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-BdovbgiO.js → vue-ui-sparkhistogram-Wd6q0mqj.js} +5 -5
- package/dist/{vue-ui-sparkhistogram--Ulh-M8t.cjs → vue-ui-sparkhistogram-gIaXDrFh.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DJGZzF_8.cjs → vue-ui-sparkline-B5ySeM9y.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B2cKF2Oq.js → vue-ui-sparkline-DYT-gts9.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-ywMpLSpx.js → vue-ui-sparkstackbar-BMGA05VR.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BmFppjoc.cjs → vue-ui-sparkstackbar-ilvB3RBv.cjs} +1 -1
- package/dist/{vue-ui-stackbar-NjNO1R4N.cjs → vue-ui-stackbar-BZKwsAjO.cjs} +1 -1
- package/dist/{vue-ui-stackbar-s7gETyOu.js → vue-ui-stackbar-BZbOagnf.js} +12 -12
- package/dist/{vue-ui-strip-plot-CKI7Tk26.js → vue-ui-strip-plot-B-r4luYX.js} +11 -11
- package/dist/{vue-ui-strip-plot-BieHYfvX.cjs → vue-ui-strip-plot-DPo7osh_.cjs} +1 -1
- package/dist/{vue-ui-table-mo4xqDVF.cjs → vue-ui-table-C6z56ODT.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BI_IFUMP.cjs → vue-ui-table-heatmap-B05GifSw.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BMmVk6UI.js → vue-ui-table-heatmap-CM-c7n0F.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DOx85BsZ.js → vue-ui-table-sparkline-DHaEHFG_.js} +5 -5
- package/dist/{vue-ui-table-sparkline-nouXTHiN.cjs → vue-ui-table-sparkline-Dx-ePVqW.cjs} +1 -1
- package/dist/{vue-ui-table-CGNRHPdF.js → vue-ui-table-wlXHwJVW.js} +1 -1
- package/dist/{vue-ui-thermometer-Cbqv6RYW.js → vue-ui-thermometer-BU_ckSdu.js} +7 -7
- package/dist/{vue-ui-thermometer-CpbU3pkq.cjs → vue-ui-thermometer-HCpOZBHv.cjs} +1 -1
- package/dist/{vue-ui-timer-BrAZQClf.cjs → vue-ui-timer-CUChwyzF.cjs} +1 -1
- package/dist/{vue-ui-timer-BgueE1dl.js → vue-ui-timer-DiRZ849L.js} +5 -5
- package/dist/{vue-ui-tiremarks-HNlJDrP8.js → vue-ui-tiremarks-BHMNb_tq.js} +7 -7
- package/dist/{vue-ui-tiremarks-DAqAEaPM.cjs → vue-ui-tiremarks-yoQtfbj7.cjs} +1 -1
- package/dist/{vue-ui-treemap-Cqej3ef5.cjs → vue-ui-treemap-BInwLSes.cjs} +1 -1
- package/dist/{vue-ui-treemap-BNNW0aIB.js → vue-ui-treemap-BpD6OdL3.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DjoaIjRt.js → vue-ui-vertical-bar-CBNWMmCg.js} +11 -11
- package/dist/{vue-ui-vertical-bar-BCx0SE0Z.cjs → vue-ui-vertical-bar-hS4gzdKs.cjs} +1 -1
- package/dist/{vue-ui-waffle-CrCgrl2o.js → vue-ui-waffle-BE8iTrGF.js} +11 -11
- package/dist/{vue-ui-waffle-CspQJ4_E.cjs → vue-ui-waffle-Cmq6zhD8.cjs} +1 -1
- package/dist/{vue-ui-wheel-DvpCjvs8.cjs → vue-ui-wheel-BT0mLxln.cjs} +1 -1
- package/dist/{vue-ui-wheel-Wq6OVQ5Z.js → vue-ui-wheel-BXSIBRLM.js} +7 -7
- package/dist/{vue-ui-word-cloud-AXCM7hi3.js → vue-ui-word-cloud-3wvSYRbp.js} +10 -10
- package/dist/{vue-ui-word-cloud-CaW8SZ9y.cjs → vue-ui-word-cloud-BXHlm41O.cjs} +1 -1
- package/dist/vue-ui-xy-CfduqTWA.cjs +3 -0
- package/dist/{vue-ui-xy-BhdOWsqW.js → vue-ui-xy-D8XvOgW6.js} +16 -16
- package/dist/{vue-ui-xy-canvas-o7kCbz5j.cjs → vue-ui-xy-canvas-BTR-cL02.cjs} +1 -1
- package/dist/{vue-ui-xy-canvas-sAVL0y81.js → vue-ui-xy-canvas-Cx7vPyfT.js} +11 -11
- package/package.json +1 -1
- package/dist/index-DCccP2Kt.cjs +0 -9
- package/dist/vue-ui-dashboard-CxGCT46n.cjs +0 -1
- package/dist/vue-ui-dashboard-yX9EkLTf.js +0 -232
- package/dist/vue-ui-relation-circle-Ds3zzFbl.js +0 -366
- package/dist/vue-ui-relation-circle-K0EZ_Nkb.cjs +0 -1
- package/dist/vue-ui-xy-Dkl5bPI-.cjs +0 -3
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { useCssVars as J, computed as _, ref as r, watch as K, openBlock as w, createElementBlock as y, createElementVNode as g, normalizeStyle as z, createCommentVNode as I, Fragment as D, renderList as Q, normalizeClass as Z, renderSlot as ee, pushScopeId as te, popScopeId as oe, createStaticVNode as ae } from "vue";
|
|
2
|
-
import le from "./pdf-B7oVat64.js";
|
|
3
|
-
import { u as ue } from "./useNestedProp-CxQ2hIfU.js";
|
|
4
|
-
import { u as ne } from "./index-hQvps1ng.js";
|
|
5
|
-
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const ie = (M) => (te("data-v-57895b3a"), M = M(), oe(), M), re = {
|
|
7
|
-
key: 0,
|
|
8
|
-
"data-html2canvas-ignore": "",
|
|
9
|
-
style: { width: "100%", display: "flex", "justify-content": "end" }
|
|
10
|
-
}, de = ["disabled"], ce = ["stroke"], he = /* @__PURE__ */ ae('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-57895b3a></path><path d="M18 16v.01" data-v-57895b3a></path><path d="M6 16v.01" data-v-57895b3a></path><path d="M12 5v.01" data-v-57895b3a></path><path d="M12 12v.01" data-v-57895b3a></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-57895b3a></path>', 6), ve = [
|
|
11
|
-
he
|
|
12
|
-
], fe = { key: 1 }, pe = ["id"], ge = /* @__PURE__ */ ie(() => /* @__PURE__ */ g("div", { class: "vue-ui-dashboard-grid" }, null, -1)), be = ["onMousedown", "onTouchstart"], we = ["onMousedown", "onTouchstart"], ye = ["onMousedown", "onTouchstart"], _e = ["onMousedown", "onTouchstart"], Me = ["onMousedown", "onTouchstart"], x = 20, me = {
|
|
13
|
-
__name: "vue-ui-dashboard",
|
|
14
|
-
props: {
|
|
15
|
-
dataset: Array,
|
|
16
|
-
config: Object
|
|
17
|
-
},
|
|
18
|
-
emits: ["change"],
|
|
19
|
-
setup(M, { expose: W, emit: E }) {
|
|
20
|
-
const X = M;
|
|
21
|
-
J((e) => ({
|
|
22
|
-
"417957d3": V.value,
|
|
23
|
-
"60fae9e7": j.value
|
|
24
|
-
}));
|
|
25
|
-
const { vue_ui_dashboard: L } = ne(), s = _(() => ue({
|
|
26
|
-
userConfig: X.config,
|
|
27
|
-
defaultConfig: L
|
|
28
|
-
})), Y = r(`vue-ui-dashboard-${Math.random()}`), c = r(s.value.locked);
|
|
29
|
-
function N() {
|
|
30
|
-
c.value = !c.value;
|
|
31
|
-
}
|
|
32
|
-
const n = r(X.dataset), h = r(null), u = r(null), v = r({ x: 0, y: 0 }), f = r({ x: 0, y: 0 }), i = r(null), d = r(!1), p = r(null), T = r(!1);
|
|
33
|
-
function S() {
|
|
34
|
-
T.value = !0, le({
|
|
35
|
-
domElement: document.getElementById(`vue-ui-dashboard_${Y.value}`),
|
|
36
|
-
fileName: "vue-ui-dashboard"
|
|
37
|
-
}).finally(() => {
|
|
38
|
-
T.value = !1;
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
function R(e) {
|
|
42
|
-
if (!c.value && (d.value = !0, p.value = e, u.value === null)) {
|
|
43
|
-
h.value = e, v.value = { x: event.clientX, y: event.clientY };
|
|
44
|
-
const t = n.value[e], a = 100 - t.width, o = 100 - t.height;
|
|
45
|
-
t.left < 0 && (t.left = 0), t.top < 0 && (t.top = 0), t.left > a && (t.left = a), t.top > o && (t.top = o), t.left < 0 && (t.left = 0), t.top < 0 && (t.top = 0), t.left + t.width > 100 && (t.left = 100 - t.width), t.top + t.height > 100 && (t.top = 100 - t.height);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function k(e, t) {
|
|
49
|
-
d.value = !0, p.value = e, u.value = { index: e, direction: t };
|
|
50
|
-
const a = n.value[e];
|
|
51
|
-
f.value = { x: event.clientX, y: event.clientY, initialWidth: a.width, initialHeight: a.height };
|
|
52
|
-
}
|
|
53
|
-
function H(e, t, a) {
|
|
54
|
-
if (u.value.direction.includes("top")) {
|
|
55
|
-
const o = e.height - a / i.value.offsetHeight * 100;
|
|
56
|
-
o >= x && (e.top += a / i.value.offsetHeight * 100, e.height = o);
|
|
57
|
-
}
|
|
58
|
-
if (u.value.direction.includes("bottom")) {
|
|
59
|
-
const o = e.height + a / i.value.offsetHeight * 100;
|
|
60
|
-
o >= x && (e.height = o);
|
|
61
|
-
}
|
|
62
|
-
if (u.value.direction.includes("left")) {
|
|
63
|
-
const o = e.width - t / i.value.offsetWidth * 100;
|
|
64
|
-
o >= x && (e.left += t / i.value.offsetWidth * 100, e.width = o);
|
|
65
|
-
}
|
|
66
|
-
if (u.value.direction.includes("right")) {
|
|
67
|
-
const o = e.width + t / i.value.offsetWidth * 100;
|
|
68
|
-
o >= x && (e.width = o);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function B(e) {
|
|
72
|
-
if (!c.value) {
|
|
73
|
-
if (d.value = !0, h.value !== null) {
|
|
74
|
-
const t = n.value[h.value], a = e.clientX - v.value.x, o = e.clientY - v.value.y, l = t.left + a / i.value.offsetWidth * 100, b = t.top + o / i.value.offsetHeight * 100;
|
|
75
|
-
l >= 0 && b >= 0 && l + t.width <= 100 && b + t.height <= 100 && (t.left = l, t.top = b), v.value = { x: e.clientX, y: e.clientY };
|
|
76
|
-
}
|
|
77
|
-
if (u.value !== null) {
|
|
78
|
-
const t = n.value[u.value.index], a = e.clientX - f.value.x, o = e.clientY - f.value.y;
|
|
79
|
-
H(t, a, o), f.value = { x: e.clientX, y: e.clientY };
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
K(
|
|
84
|
-
n,
|
|
85
|
-
(e) => {
|
|
86
|
-
e && !d.value && E("change", n.value);
|
|
87
|
-
},
|
|
88
|
-
{ deep: !0 }
|
|
89
|
-
);
|
|
90
|
-
function F() {
|
|
91
|
-
h.value = null, u.value = null, d.value = !1, p.value = null, n.value.forEach((e) => {
|
|
92
|
-
e.left = Math.round(e.left / 100 * 100), e.top = Math.round(e.top / 100 * 100), e.width = Math.round(e.width / 100 * 100), e.height = Math.round(e.height / 100 * 100);
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
function P(e) {
|
|
96
|
-
c.value || (d.value = !0, p.value = e, u.value === null && (h.value = e, v.value = { x: event.touches[0].clientX, y: event.touches[0].clientY }));
|
|
97
|
-
}
|
|
98
|
-
function C(e, t, a) {
|
|
99
|
-
if (d.value = !0, p.value = e, u.value === null) {
|
|
100
|
-
u.value = { index: e, direction: t };
|
|
101
|
-
const o = n.value[e];
|
|
102
|
-
f.value = { x: a.touches[0].clientX, y: a.touches[0].clientY, initialWidth: o.width, initialHeight: o.height };
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function $(e) {
|
|
106
|
-
if (d.value = !0, e.preventDefault(), u.value !== null) {
|
|
107
|
-
const t = n.value[u.value.index], a = e.touches[0].clientX - f.value.x, o = e.touches[0].clientY - f.value.y;
|
|
108
|
-
H(t, a, o), f.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function O(e) {
|
|
112
|
-
if (!c.value && (d.value = !0, e.preventDefault(), h.value !== null)) {
|
|
113
|
-
const t = n.value[h.value], a = e.touches[0].clientX - v.value.x, o = e.touches[0].clientY - v.value.y, l = t.left + a / i.value.offsetWidth * 100, b = t.top + o / i.value.offsetHeight * 100;
|
|
114
|
-
l >= 0 && b >= 0 && l + t.width <= 100 && b + t.height <= 100 && (t.left = l, t.top = b), v.value = { x: e.touches[0].clientX, y: e.touches[0].clientY };
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
function m() {
|
|
118
|
-
d.value = !1, p.value = null, h.value = null, u.value = null, n.value.forEach((e) => {
|
|
119
|
-
e.left = Math.round(e.left / 100 * 100), e.top = Math.round(e.top / 100 * 100), e.width = Math.round(e.width / 100 * 100), e.height = Math.round(e.height / 100 * 100);
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
const V = _(() => s.value.style.item.borderColor), j = _(() => s.value.style.resizeHandles.backgroundColor), A = _(() => s.value.style.board.aspectRatio), G = _(() => s.value.style.board.backgroundColor), U = _(() => s.value.style.board.border);
|
|
123
|
-
function q() {
|
|
124
|
-
return n.value;
|
|
125
|
-
}
|
|
126
|
-
return W({
|
|
127
|
-
generatePdf: S,
|
|
128
|
-
getItemsPositions: q,
|
|
129
|
-
toggleLock: N
|
|
130
|
-
}), (e, t) => (w(), y("div", null, [
|
|
131
|
-
s.value.allowPrint ? (w(), y("div", re, [
|
|
132
|
-
g("button", {
|
|
133
|
-
class: "vue-ui-dashboard-button",
|
|
134
|
-
onClick: S,
|
|
135
|
-
disabled: T.value,
|
|
136
|
-
style: z([{ "margin-top": "12px" }, `color:${s.value.style.board.color}`])
|
|
137
|
-
}, [
|
|
138
|
-
T.value ? (w(), y("svg", {
|
|
139
|
-
key: 0,
|
|
140
|
-
class: "vue-ui-dashboard-print-icon",
|
|
141
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
142
|
-
width: "20",
|
|
143
|
-
height: "20",
|
|
144
|
-
viewBox: "0 0 24 24",
|
|
145
|
-
"stroke-width": "1.5",
|
|
146
|
-
stroke: s.value.style.board.color,
|
|
147
|
-
fill: "none",
|
|
148
|
-
"stroke-linecap": "round",
|
|
149
|
-
"stroke-linejoin": "round"
|
|
150
|
-
}, ve, 8, ce)) : (w(), y("span", fe, "PDF"))
|
|
151
|
-
], 12, de)
|
|
152
|
-
])) : I("", !0),
|
|
153
|
-
g("div", {
|
|
154
|
-
class: "vue-ui-dashboard-container",
|
|
155
|
-
ref_key: "dashboardContainer",
|
|
156
|
-
ref: i,
|
|
157
|
-
id: `vue-ui-dashboard_${Y.value}`,
|
|
158
|
-
style: z(`border:${U.value}; sbackground:${G.value}; aspect-ratio:${A.value}`)
|
|
159
|
-
}, [
|
|
160
|
-
g("div", {
|
|
161
|
-
class: "vue-ui-dashboard-grid-container",
|
|
162
|
-
ref: "container",
|
|
163
|
-
onMousemove: B,
|
|
164
|
-
onMouseup: F,
|
|
165
|
-
onTouchmove: O,
|
|
166
|
-
onTouchend: m,
|
|
167
|
-
style: z(`background:${s.value.style.board.backgroundColor}`)
|
|
168
|
-
}, [
|
|
169
|
-
ge,
|
|
170
|
-
(w(!0), y(D, null, Q(n.value, (a, o) => (w(), y("div", {
|
|
171
|
-
key: a.id,
|
|
172
|
-
class: Z({ "vue-ui-dashboard-grid-item": !0, "vue-ui-dashboard-grid-item--locked": c.value }),
|
|
173
|
-
style: z({
|
|
174
|
-
width: `${a.width}%`,
|
|
175
|
-
height: `${a.height}%`,
|
|
176
|
-
left: `${a.left}%`,
|
|
177
|
-
top: `${a.top}%`,
|
|
178
|
-
cursor: "move",
|
|
179
|
-
boxShadow: p.value === o ? "0 6px 12px -3px rgba(0,0,0,0.3)" : "",
|
|
180
|
-
zIndex: p.value === o ? "1" : "0",
|
|
181
|
-
backgroundColor: s.value.style.item.backgroundColor
|
|
182
|
-
}),
|
|
183
|
-
onMousedown: (l) => R(o),
|
|
184
|
-
onTouchstart: (l) => P(o)
|
|
185
|
-
}, [
|
|
186
|
-
c.value ? I("", !0) : (w(), y(D, { key: 0 }, [
|
|
187
|
-
g("div", {
|
|
188
|
-
class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-left",
|
|
189
|
-
onMousedown: (l) => k(o, "top-left"),
|
|
190
|
-
onTouchstart: (l) => C(o, "top-left", l),
|
|
191
|
-
onTouchmove: t[0] || (t[0] = (l) => $(l)),
|
|
192
|
-
onTouchend: m
|
|
193
|
-
}, null, 40, we),
|
|
194
|
-
g("div", {
|
|
195
|
-
class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-top-right",
|
|
196
|
-
onMousedown: (l) => k(o, "top-right"),
|
|
197
|
-
onTouchstart: (l) => C(o, "top-right", l),
|
|
198
|
-
onTouchmove: t[1] || (t[1] = (l) => $(l)),
|
|
199
|
-
onTouchend: m
|
|
200
|
-
}, null, 40, ye),
|
|
201
|
-
g("div", {
|
|
202
|
-
class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-left",
|
|
203
|
-
onMousedown: (l) => k(o, "bottom-left"),
|
|
204
|
-
onTouchstart: (l) => C(o, "bottom-left", l),
|
|
205
|
-
onTouchmove: t[2] || (t[2] = (l) => $(l)),
|
|
206
|
-
onTouchend: m
|
|
207
|
-
}, null, 40, _e),
|
|
208
|
-
g("div", {
|
|
209
|
-
class: "vue-ui-dashboard-resize-handle vue-ui-dashboard-bottom-right",
|
|
210
|
-
onMousedown: (l) => k(o, "bottom-right"),
|
|
211
|
-
onTouchstart: (l) => C(o, "bottom-right", l),
|
|
212
|
-
onTouchmove: t[3] || (t[3] = (l) => $(l)),
|
|
213
|
-
onTouchend: m
|
|
214
|
-
}, null, 40, Me)
|
|
215
|
-
], 64)),
|
|
216
|
-
ee(e.$slots, "content", {
|
|
217
|
-
item: a,
|
|
218
|
-
index: o,
|
|
219
|
-
left: a.left,
|
|
220
|
-
top: a.top,
|
|
221
|
-
height: a.height,
|
|
222
|
-
width: a.width
|
|
223
|
-
}, void 0, !0)
|
|
224
|
-
], 46, be))), 128))
|
|
225
|
-
], 36)
|
|
226
|
-
], 12, pe)
|
|
227
|
-
]));
|
|
228
|
-
}
|
|
229
|
-
}, xe = /* @__PURE__ */ se(me, [["__scopeId", "data-v-57895b3a"]]);
|
|
230
|
-
export {
|
|
231
|
-
xe as default
|
|
232
|
-
};
|
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
import { useCssVars as xe, computed as c, ref as a, watch as be, onMounted as Ae, onBeforeUnmount as Oe, openBlock as n, createElementBlock as i, normalizeStyle as C, createBlock as A, createCommentVNode as f, unref as y, createSlots as Pe, withCtx as O, renderSlot as m, normalizeProps as N, guardReactiveProps as S, normalizeClass as R, createVNode as Ie, createElementVNode as Fe, Fragment as P, renderList as I, toDisplayString as Te } from "vue";
|
|
2
|
-
import { u as Ee, c as ze, t as Le, a as Ne, p as ne, b as Se, o as Re, e as re, g as Me, X as je } from "./index-hQvps1ng.js";
|
|
3
|
-
import { t as Be, u as Ge } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Ue } from "./Title-DU9SuVY-.js";
|
|
5
|
-
import { u as De, U as Ve } from "./usePrinter-c5Pf5Hrk.js";
|
|
6
|
-
import We from "./vue-ui-skeleton-Dmee5Xfg.js";
|
|
7
|
-
import { u as se } from "./useNestedProp-CxQ2hIfU.js";
|
|
8
|
-
import { _ as Xe } from "./PackageVersion-CiIsJuZg.js";
|
|
9
|
-
import { P as Ye } from "./PenAndPaper-BBXIRAdA.js";
|
|
10
|
-
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
const He = ["id"], Je = ["xmlns", "viewBox"], Ke = ["cx", "cy", "r", "stroke", "stroke-width"], Qe = { key: 0 }, Ze = ["stroke", "d", "stroke-width"], et = { key: 1 }, tt = ["stroke", "x1", "x2", "y1", "y2"], lt = ["text-anchor", "transform", "x", "y", "onClick", "font-weight", "font-size", "fill"], nt = ["cx", "cy", "fill", "onClick", "r"], rt = {
|
|
12
|
-
key: 5,
|
|
13
|
-
class: "vue-data-ui-watermark"
|
|
14
|
-
}, st = {
|
|
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(ae, { expose: ie }) {
|
|
31
|
-
const d = ae;
|
|
32
|
-
xe((e) => ({
|
|
33
|
-
"47419f48": fe.value,
|
|
34
|
-
"77774d27": ve.value,
|
|
35
|
-
df46026e: ge.value
|
|
36
|
-
}));
|
|
37
|
-
const { vue_ui_relation_circle: oe } = Ee(), F = c(() => !!d.dataset && Object.keys(d.dataset).length), k = a(ze()), M = a(0), _ = a(null), j = a(null), B = a(null), G = a(null), U = a(0), l = c({
|
|
38
|
-
get: () => D(),
|
|
39
|
-
set: (e) => e
|
|
40
|
-
});
|
|
41
|
-
function D() {
|
|
42
|
-
const e = se({
|
|
43
|
-
userConfig: d.config,
|
|
44
|
-
defaultConfig: oe
|
|
45
|
-
});
|
|
46
|
-
return e.theme ? {
|
|
47
|
-
...se({
|
|
48
|
-
userConfig: Le.vue_ui_relation_circle[e.theme] || d.config,
|
|
49
|
-
defaultConfig: e
|
|
50
|
-
}),
|
|
51
|
-
customPalette: Ne[e.theme] || ne
|
|
52
|
-
} : e;
|
|
53
|
-
}
|
|
54
|
-
be(() => d.config, (e) => {
|
|
55
|
-
l.value = D(), H(), U.value += 1;
|
|
56
|
-
}, { deep: !0 });
|
|
57
|
-
const { isPrinting: V, isImaging: W, generatePdf: X, generateImage: Y } = De({
|
|
58
|
-
elementId: `relation_circle_${k.value}`,
|
|
59
|
-
fileName: l.value.style.title.text || "vue-ui-relation-circle"
|
|
60
|
-
}), ue = c(() => l.value.userOptions.show && !l.value.style.title.text), q = c(() => Se(l.value.customPalette)), g = a([]), p = a([]), o = a({}), v = a([]), ce = a(0), T = c(() => d.dataset.slice(0, l.value.style.limit)), E = a(l.value.style.size), u = a({
|
|
61
|
-
height: l.value.style.size,
|
|
62
|
-
width: l.value.style.size
|
|
63
|
-
}), h = c({
|
|
64
|
-
get() {
|
|
65
|
-
return E.value * l.value.style.circle.radiusProportion;
|
|
66
|
-
},
|
|
67
|
-
set(e) {
|
|
68
|
-
return e;
|
|
69
|
-
}
|
|
70
|
-
}), de = c(() => l.value.style.links.curved), ve = c(() => `${l.value.style.animation.speedMs}ms`), fe = c(() => h.value * 2), ge = c(() => h.value * 4), w = a(null);
|
|
71
|
-
Ae(() => {
|
|
72
|
-
H(), document.getElementById(`relation_circle_${k.value}`).addEventListener("click", J);
|
|
73
|
-
});
|
|
74
|
-
function H() {
|
|
75
|
-
if (Re(d.dataset) ? re({
|
|
76
|
-
componentName: "VueUiRelationCircle",
|
|
77
|
-
type: "dataset"
|
|
78
|
-
}) : d.dataset.forEach((e, r) => {
|
|
79
|
-
Me({
|
|
80
|
-
datasetObject: e,
|
|
81
|
-
requiredAttributes: ["id", "label", "relations", "weights"]
|
|
82
|
-
}).forEach((t) => {
|
|
83
|
-
re({
|
|
84
|
-
componentName: "VueUiRelationCircle",
|
|
85
|
-
type: "datasetSerieAttribute",
|
|
86
|
-
property: t,
|
|
87
|
-
index: r
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
}), l.value.responsive) {
|
|
91
|
-
const e = Be(() => {
|
|
92
|
-
const { width: r, height: t } = Ge({
|
|
93
|
-
chart: _.value,
|
|
94
|
-
title: l.value.style.title.text ? j.value : null,
|
|
95
|
-
source: B.value,
|
|
96
|
-
noTitle: G.value
|
|
97
|
-
});
|
|
98
|
-
E.value = Math.min(r, t), u.value.width = r, u.value.height = t, h.value = E.value * l.value.style.circle.radiusProportion, g.value = [], p.value = [], K(), Q();
|
|
99
|
-
});
|
|
100
|
-
w.value = new ResizeObserver(e), w.value.observe(_.value.parentNode);
|
|
101
|
-
} else
|
|
102
|
-
g.value = [], p.value = [], K(), Q();
|
|
103
|
-
}
|
|
104
|
-
Oe(() => {
|
|
105
|
-
document.getElementById(`relation_circle_${k.value}`).removeEventListener("click", J), w.value && w.value.disconnect();
|
|
106
|
-
});
|
|
107
|
-
function J(e) {
|
|
108
|
-
const r = e.target;
|
|
109
|
-
r && Array.from(r.classList).includes("vue-ui-user-options") || r && Array.from(r.classList).includes("vue-ui-user-options-summary") || r && Array.from(r.classList).includes("vue-data-ui-button") || r && Array.from(r.classList).includes("vue-ui-relation-circle-legend") || (o.value = {}, v.value = []);
|
|
110
|
-
}
|
|
111
|
-
function K() {
|
|
112
|
-
const e = 6.28319 / T.value.length, r = 360 / T.value.length;
|
|
113
|
-
let t = 0, s = 0;
|
|
114
|
-
T.value.forEach(($, L) => {
|
|
115
|
-
const Ce = h.value * Math.cos(t) + u.value.width / 2, we = h.value * Math.sin(t) + u.value.height / 2 + l.value.style.circle.offsetY;
|
|
116
|
-
g.value.push({ x: Ce, y: we, ...$, color: $.color ? $.color : q.value[L] ? q.value[L] : ne[L], regAngle: s }), t += e, s += r;
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
function Q() {
|
|
120
|
-
g.value.forEach((e) => {
|
|
121
|
-
g.value.filter((t) => t.relations.includes(e.id)).forEach((t, s) => {
|
|
122
|
-
p.value.push({
|
|
123
|
-
weight: e.weights && e.weights[s] ? e.weights[s] : 1,
|
|
124
|
-
relationId: `${e.id}_${t.id}`,
|
|
125
|
-
x1: e.x,
|
|
126
|
-
y1: e.y,
|
|
127
|
-
x2: t.x,
|
|
128
|
-
y2: t.y,
|
|
129
|
-
colorSource: e.color,
|
|
130
|
-
colorTarget: t.color,
|
|
131
|
-
...e
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
const he = c(() => Math.max(...p.value.map((e) => e.weight)));
|
|
137
|
-
function ye(e) {
|
|
138
|
-
return Object.hasOwn(o.value, "x") ? v.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
139
|
-
}
|
|
140
|
-
function Z(e) {
|
|
141
|
-
return Object.hasOwn(o.value, "x") ? e.colorTarget : e.colorSource;
|
|
142
|
-
}
|
|
143
|
-
function ee(e) {
|
|
144
|
-
return Object.hasOwn(o.value, "x") ? v.value.includes(e.id) && e.relationId === `${e.id}_${o.value.id}` || e.relationId === `${o.value.id}_${e.id}` ? `opacity:1;stroke-width:${le(e)}` : "opacity: 0" : "opacity: 1";
|
|
145
|
-
}
|
|
146
|
-
function me(e) {
|
|
147
|
-
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
148
|
-
}
|
|
149
|
-
function pe(e) {
|
|
150
|
-
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
151
|
-
}
|
|
152
|
-
function ke(e) {
|
|
153
|
-
return Object.hasOwn(o.value, "x") ? o.value.id === e.id || v.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
154
|
-
}
|
|
155
|
-
function _e(e) {
|
|
156
|
-
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
157
|
-
}
|
|
158
|
-
function te(e) {
|
|
159
|
-
ce.value = 360 - e.regAngle, o.value.id && e.id === o.value.id ? (o.value = {}, v.value = []) : (o.value = e, v.value = [...e.relations]);
|
|
160
|
-
}
|
|
161
|
-
function le(e) {
|
|
162
|
-
return e.weight / he.value * l.value.style.links.maxWidth;
|
|
163
|
-
}
|
|
164
|
-
const x = a(!1);
|
|
165
|
-
function $e(e) {
|
|
166
|
-
x.value = e, M.value += 1;
|
|
167
|
-
}
|
|
168
|
-
const b = a(!1);
|
|
169
|
-
function z() {
|
|
170
|
-
b.value = !b.value;
|
|
171
|
-
}
|
|
172
|
-
return ie({
|
|
173
|
-
generatePdf: X,
|
|
174
|
-
generateImage: Y,
|
|
175
|
-
toggleAnnotator: z
|
|
176
|
-
}), (e, r) => (n(), i("div", {
|
|
177
|
-
ref_key: "relationCircleChart",
|
|
178
|
-
ref: _,
|
|
179
|
-
class: "vue-ui-relation-circle",
|
|
180
|
-
style: C(`width:100%;background:${l.value.style.backgroundColor};text-align:center;${l.value.responsive ? "height: 100%" : ""}`),
|
|
181
|
-
id: `relation_circle_${k.value}`
|
|
182
|
-
}, [
|
|
183
|
-
l.value.userOptions.buttons.annotator ? (n(), A(Ye, {
|
|
184
|
-
key: 0,
|
|
185
|
-
parent: _.value,
|
|
186
|
-
backgroundColor: l.value.style.backgroundColor,
|
|
187
|
-
color: l.value.style.color,
|
|
188
|
-
active: b.value,
|
|
189
|
-
onClose: z
|
|
190
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
|
|
191
|
-
ue.value ? (n(), i("div", {
|
|
192
|
-
key: 1,
|
|
193
|
-
ref_key: "noTitle",
|
|
194
|
-
ref: G,
|
|
195
|
-
class: "vue-data-ui-no-title-space",
|
|
196
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
197
|
-
}, null, 512)) : f("", !0),
|
|
198
|
-
l.value.style.title.text ? (n(), i("div", {
|
|
199
|
-
key: 2,
|
|
200
|
-
ref_key: "chartTitle",
|
|
201
|
-
ref: j,
|
|
202
|
-
style: "width:100%;background:transparent"
|
|
203
|
-
}, [
|
|
204
|
-
(n(), A(Ue, {
|
|
205
|
-
key: `title_${U.value}`,
|
|
206
|
-
config: {
|
|
207
|
-
title: {
|
|
208
|
-
cy: "relation-div-title",
|
|
209
|
-
...l.value.style.title
|
|
210
|
-
},
|
|
211
|
-
subtitle: {
|
|
212
|
-
cy: "relation-div-subtitle",
|
|
213
|
-
...l.value.style.title.subtitle
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}, null, 8, ["config"]))
|
|
217
|
-
], 512)) : f("", !0),
|
|
218
|
-
l.value.userOptions.show && F.value ? (n(), A(Ve, {
|
|
219
|
-
ref: "details",
|
|
220
|
-
key: `user_options_${M.value}`,
|
|
221
|
-
backgroundColor: l.value.style.backgroundColor,
|
|
222
|
-
color: l.value.style.color,
|
|
223
|
-
isPrinting: y(V),
|
|
224
|
-
isImaging: y(W),
|
|
225
|
-
uid: k.value,
|
|
226
|
-
hasPdf: l.value.userOptions.buttons.pdf,
|
|
227
|
-
hasImg: l.value.userOptions.buttons.img,
|
|
228
|
-
hasFullscreen: l.value.userOptions.buttons.img,
|
|
229
|
-
hasXls: !1,
|
|
230
|
-
isFullscreen: x.value,
|
|
231
|
-
titles: { ...l.value.userOptions.buttonTitles },
|
|
232
|
-
chartElement: _.value,
|
|
233
|
-
position: l.value.userOptions.position,
|
|
234
|
-
hasAnnotator: l.value.userOptions.buttons.annotator,
|
|
235
|
-
isAnnotation: b.value,
|
|
236
|
-
onToggleFullscreen: $e,
|
|
237
|
-
onGeneratePdf: y(X),
|
|
238
|
-
onGenerateImage: y(Y),
|
|
239
|
-
onToggleAnnotator: z
|
|
240
|
-
}, Pe({ _: 2 }, [
|
|
241
|
-
e.$slots.optionPdf ? {
|
|
242
|
-
name: "optionPdf",
|
|
243
|
-
fn: O(() => [
|
|
244
|
-
m(e.$slots, "optionPdf", {}, void 0, !0)
|
|
245
|
-
]),
|
|
246
|
-
key: "0"
|
|
247
|
-
} : void 0,
|
|
248
|
-
e.$slots.optionImg ? {
|
|
249
|
-
name: "optionImg",
|
|
250
|
-
fn: O(() => [
|
|
251
|
-
m(e.$slots, "optionImg", {}, void 0, !0)
|
|
252
|
-
]),
|
|
253
|
-
key: "1"
|
|
254
|
-
} : void 0,
|
|
255
|
-
e.$slots.optionFullscreen ? {
|
|
256
|
-
name: "optionFullscreen",
|
|
257
|
-
fn: O(({ toggleFullscreen: t, isFullscreen: s }) => [
|
|
258
|
-
m(e.$slots, "optionFullscreen", N(S({ toggleFullscreen: t, isFullscreen: s })), void 0, !0)
|
|
259
|
-
]),
|
|
260
|
-
key: "2"
|
|
261
|
-
} : void 0,
|
|
262
|
-
e.$slots.optionAnnotator ? {
|
|
263
|
-
name: "optionAnnotator",
|
|
264
|
-
fn: O(({ toggleAnnotator: t, isAnnotator: s }) => [
|
|
265
|
-
m(e.$slots, "optionAnnotator", N(S({ toggleAnnotator: t, isAnnotator: s })), void 0, !0)
|
|
266
|
-
]),
|
|
267
|
-
key: "3"
|
|
268
|
-
} : void 0
|
|
269
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
270
|
-
F.value ? (n(), i("svg", {
|
|
271
|
-
key: 4,
|
|
272
|
-
xmlns: y(je),
|
|
273
|
-
class: R([{ "vue-data-ui-fullscreen--on": x.value, "vue-data-ui-fulscreen--off": !x.value }, "relation-circle"]),
|
|
274
|
-
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
275
|
-
width: "100%",
|
|
276
|
-
style: "user-select:none; background:transparent"
|
|
277
|
-
}, [
|
|
278
|
-
Ie(Xe),
|
|
279
|
-
Fe("circle", {
|
|
280
|
-
cx: (u.value.width <= 0 ? 1e-4 : u.value.width) / 2,
|
|
281
|
-
cy: (u.value.height <= 0 ? 1e-4 : u.value.height) / 2 + l.value.style.circle.offsetY,
|
|
282
|
-
r: h.value <= 0 ? 1e-4 : h.value,
|
|
283
|
-
stroke: l.value.style.circle.stroke,
|
|
284
|
-
"stroke-width": l.value.style.circle.strokeWidth,
|
|
285
|
-
fill: "transparent",
|
|
286
|
-
class: "main-circle"
|
|
287
|
-
}, null, 8, Ke),
|
|
288
|
-
de.value ? (n(), i("g", Qe, [
|
|
289
|
-
(n(!0), i(P, null, I(p.value, (t, s) => (n(), i("path", {
|
|
290
|
-
key: `relation_${s}`,
|
|
291
|
-
style: C(ee(t)),
|
|
292
|
-
stroke: Z(t),
|
|
293
|
-
class: R(["relation", { "vue-ui-relation-circle-selected": o.value.hasOwnProperty("id") && v.value.includes(t.id) }]),
|
|
294
|
-
d: `M${t.x1},${t.y1} C${t.x1},${t.y1} ${u.value.width / 2},${u.value.height / 2 + l.value.style.circle.offsetY} ${t.x2},${t.y2}`,
|
|
295
|
-
fill: "none",
|
|
296
|
-
"stroke-width": le(t),
|
|
297
|
-
"stroke-linecap": "round"
|
|
298
|
-
}, null, 14, Ze))), 128))
|
|
299
|
-
])) : (n(), i("g", et, [
|
|
300
|
-
(n(!0), i(P, null, I(p.value, (t, s) => (n(), i("line", {
|
|
301
|
-
key: `relation_${s}`,
|
|
302
|
-
stroke: Z(t),
|
|
303
|
-
style: C(ee(t)),
|
|
304
|
-
x1: t.x1,
|
|
305
|
-
x2: t.x2,
|
|
306
|
-
y1: t.y1,
|
|
307
|
-
y2: t.y2,
|
|
308
|
-
class: R({ "vue-ui-relation-circle-selected": o.value.hasOwnProperty("id") && v.value.includes(t.id) }),
|
|
309
|
-
"stroke-linecap": "round"
|
|
310
|
-
}, null, 14, tt))), 128))
|
|
311
|
-
])),
|
|
312
|
-
(n(!0), i(P, null, I(g.value, (t, s) => (n(), i("text", {
|
|
313
|
-
key: `plot_text_${s}`,
|
|
314
|
-
"text-anchor": me(t),
|
|
315
|
-
transform: _e(t),
|
|
316
|
-
x: pe(t),
|
|
317
|
-
y: t.y + 5,
|
|
318
|
-
onClick: ($) => te(t),
|
|
319
|
-
class: "vue-ui-relation-circle-legend",
|
|
320
|
-
"transform-origin": "start",
|
|
321
|
-
"font-weight": o.value.id === t.id ? "900" : "400",
|
|
322
|
-
style: C(`font-family:${l.value.style.fontFamily};${ke(t)}`),
|
|
323
|
-
"font-size": l.value.style.labels.fontSize,
|
|
324
|
-
fill: l.value.style.labels.color
|
|
325
|
-
}, Te(t.label), 13, lt))), 128)),
|
|
326
|
-
(n(!0), i(P, null, I(g.value, (t, s) => (n(), i("circle", {
|
|
327
|
-
cx: t.x,
|
|
328
|
-
cy: t.y,
|
|
329
|
-
key: `plot_${s}`,
|
|
330
|
-
style: C(ye(t)),
|
|
331
|
-
class: "vue-ui-relation-circle-plot",
|
|
332
|
-
fill: l.value.style.plot.color,
|
|
333
|
-
onClick: ($) => te(t),
|
|
334
|
-
r: l.value.style.plot.radius
|
|
335
|
-
}, null, 12, nt))), 128)),
|
|
336
|
-
m(e.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
337
|
-
], 10, Je)) : f("", !0),
|
|
338
|
-
e.$slots.watermark ? (n(), i("div", rt, [
|
|
339
|
-
m(e.$slots, "watermark", N(S({ isPrinting: y(V) || y(W) })), void 0, !0)
|
|
340
|
-
])) : f("", !0),
|
|
341
|
-
e.$slots.source ? (n(), i("div", {
|
|
342
|
-
key: 6,
|
|
343
|
-
ref_key: "source",
|
|
344
|
-
ref: B,
|
|
345
|
-
dir: "auto"
|
|
346
|
-
}, [
|
|
347
|
-
m(e.$slots, "source", {}, void 0, !0)
|
|
348
|
-
], 512)) : f("", !0),
|
|
349
|
-
F.value ? f("", !0) : (n(), A(We, {
|
|
350
|
-
key: 7,
|
|
351
|
-
config: {
|
|
352
|
-
type: "relationCircle",
|
|
353
|
-
style: {
|
|
354
|
-
backgroundColor: l.value.style.backgroundColor,
|
|
355
|
-
relationCircle: {
|
|
356
|
-
color: "#CCCCCC"
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}, null, 8, ["config"]))
|
|
361
|
-
], 12, He));
|
|
362
|
-
}
|
|
363
|
-
}, yt = /* @__PURE__ */ qe(st, [["__scopeId", "data-v-a4837ff7"]]);
|
|
364
|
-
export {
|
|
365
|
-
yt as default
|
|
366
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-DCccP2Kt.cjs"),U=require("./useResponsive-BJ7DTGpm.cjs"),de=require("./Title-BeCsXJhg.cjs"),D=require("./usePrinter-C-C264ik.cjs"),ve=require("./vue-ui-skeleton-Ckb3hRcQ.cjs"),W=require("./useNestedProp-DzZoHbI7.cjs"),fe=require("./PackageVersion-C7okNmPF.cjs"),ge=require("./PenAndPaper-BUjMRWG0.cjs"),me=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ye=["id"],he=["xmlns","viewBox"],ke=["cx","cy","r","stroke","stroke-width"],pe={key:0},Ce=["stroke","d","stroke-width"],_e={key:1},$e=["stroke","x1","x2","y1","y2"],xe=["text-anchor","transform","x","y","onClick","font-weight","font-size","fill"],we=["cx","cy","fill","onClick","r"],Be={key:5,class:"vue-data-ui-watermark"},be={__name:"vue-ui-relation-circle",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},setup(X,{expose:Y}){const u=X;e.useCssVars(t=>({"47419f48":ee.value,"77774d27":Z.value,df46026e:te.value}));const{vue_ui_relation_circle:H}=i.useConfig(),C=e.computed(()=>!!u.dataset&&Object.keys(u.dataset).length),g=e.ref(i.createUid()),B=e.ref(0),m=e.ref(null),b=e.ref(null),P=e.ref(null),A=e.ref(null),O=e.ref(0),n=e.computed({get:()=>E(),set:t=>t});function E(){const t=W.useNestedProp({userConfig:u.config,defaultConfig:H});return t.theme?{...W.useNestedProp({userConfig:i.themes.vue_ui_relation_circle[t.theme]||u.config,defaultConfig:t}),customPalette:i.themePalettes[t.theme]||i.palette}:t}e.watch(()=>u.config,t=>{n.value=E(),T(),O.value+=1},{deep:!0});const{isPrinting:S,isImaging:I,generatePdf:N,generateImage:z}=D.usePrinter({elementId:`relation_circle_${g.value}`,fileName:n.value.style.title.text||"vue-ui-relation-circle"}),J=e.computed(()=>n.value.userOptions.show&&!n.value.style.title.text),F=e.computed(()=>i.convertCustomPalette(n.value.customPalette)),d=e.ref([]),f=e.ref([]),a=e.ref({}),c=e.ref([]),K=e.ref(0),_=e.computed(()=>u.dataset.slice(0,n.value.style.limit)),$=e.ref(n.value.style.size),s=e.ref({height:n.value.style.size,width:n.value.style.size}),v=e.computed({get(){return $.value*n.value.style.circle.radiusProportion},set(t){return t}}),Q=e.computed(()=>n.value.style.links.curved),Z=e.computed(()=>`${n.value.style.animation.speedMs}ms`),ee=e.computed(()=>v.value*2),te=e.computed(()=>v.value*4),h=e.ref(null);e.onMounted(()=>{T(),document.getElementById(`relation_circle_${g.value}`).addEventListener("click",L)});function T(){if(i.objectIsEmpty(u.dataset)?i.error({componentName:"VueUiRelationCircle",type:"dataset"}):u.dataset.forEach((t,r)=>{i.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["id","label","relations","weights"]}).forEach(l=>{i.error({componentName:"VueUiRelationCircle",type:"datasetSerieAttribute",property:l,index:r})})}),n.value.responsive){const t=U.throttle(()=>{const{width:r,height:l}=U.useResponsive({chart:m.value,title:n.value.style.title.text?b.value:null,source:P.value,noTitle:A.value});$.value=Math.min(r,l),s.value.width=r,s.value.height=l,v.value=$.value*n.value.style.circle.radiusProportion,d.value=[],f.value=[],V(),R()});h.value=new ResizeObserver(t),h.value.observe(m.value.parentNode)}else d.value=[],f.value=[],V(),R()}e.onBeforeUnmount(()=>{document.getElementById(`relation_circle_${g.value}`).removeEventListener("click",L),h.value&&h.value.disconnect()});function L(t){const r=t.target;r&&Array.from(r.classList).includes("vue-ui-user-options")||r&&Array.from(r.classList).includes("vue-ui-user-options-summary")||r&&Array.from(r.classList).includes("vue-data-ui-button")||r&&Array.from(r.classList).includes("vue-ui-relation-circle-legend")||(a.value={},c.value=[])}function V(){const t=6.28319/_.value.length,r=360/_.value.length;let l=0,o=0;_.value.forEach((y,w)=>{const ue=v.value*Math.cos(l)+s.value.width/2,ce=v.value*Math.sin(l)+s.value.height/2+n.value.style.circle.offsetY;d.value.push({x:ue,y:ce,...y,color:y.color?y.color:F.value[w]?F.value[w]:i.palette[w],regAngle:o}),l+=t,o+=r})}function R(){d.value.forEach(t=>{d.value.filter(l=>l.relations.includes(t.id)).forEach((l,o)=>{f.value.push({weight:t.weights&&t.weights[o]?t.weights[o]: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 le=e.computed(()=>Math.max(...f.value.map(t=>t.weight)));function ne(t){return Object.hasOwn(a.value,"x")?c.value.includes(t.id)?"opacity:1":"opacity:0.1":"opacity:1"}function q(t){return Object.hasOwn(a.value,"x")?t.colorTarget:t.colorSource}function M(t){return Object.hasOwn(a.value,"x")?c.value.includes(t.id)&&t.relationId===`${t.id}_${a.value.id}`||t.relationId===`${a.value.id}_${t.id}`?`opacity:1;stroke-width:${G(t)}`:"opacity: 0":"opacity: 1"}function re(t){return t.regAngle>90&&t.regAngle<270?"end":"start"}function oe(t){return t.regAngle>90&&t.regAngle<270?t.x-5:t.x+5}function ae(t){return Object.hasOwn(a.value,"x")?a.value.id===t.id||c.value.includes(t.id)?"opacity:1":"opacity:0.2":"opacity:1"}function se(t){return t.regAngle>90&&t.regAngle<270?`rotate(${t.regAngle+180},${t.x},${t.y})`:`rotate(${t.regAngle},${t.x},${t.y})`}function j(t){K.value=360-t.regAngle,a.value.id&&t.id===a.value.id?(a.value={},c.value=[]):(a.value=t,c.value=[...t.relations])}function G(t){return t.weight/le.value*n.value.style.links.maxWidth}const k=e.ref(!1);function ie(t){k.value=t,B.value+=1}const p=e.ref(!1);function x(){p.value=!p.value}return Y({generatePdf:N,generateImage:z,toggleAnnotator:x}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"relationCircleChart",ref:m,class:"vue-ui-relation-circle",style:e.normalizeStyle(`width:100%;background:${n.value.style.backgroundColor};text-align:center;${n.value.responsive?"height: 100%":""}`),id:`relation_circle_${g.value}`},[n.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ge.PenAndPaper,{key:0,parent:m.value,backgroundColor:n.value.style.backgroundColor,color:n.value.style.color,active:p.value,onClose:x},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),J.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:A,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),n.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:b,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(de._sfc_main,{key:`title_${O.value}`,config:{title:{cy:"relation-div-title",...n.value.style.title},subtitle:{cy:"relation-div-subtitle",...n.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),n.value.userOptions.show&&C.value?(e.openBlock(),e.createBlock(D.UserOptions,{ref:"details",key:`user_options_${B.value}`,backgroundColor:n.value.style.backgroundColor,color:n.value.style.color,isPrinting:e.unref(S),isImaging:e.unref(I),uid:g.value,hasPdf:n.value.userOptions.buttons.pdf,hasImg:n.value.userOptions.buttons.img,hasFullscreen:n.value.userOptions.buttons.img,hasXls:!1,isFullscreen:k.value,titles:{...n.value.userOptions.buttonTitles},chartElement:m.value,position:n.value.userOptions.position,hasAnnotator:n.value.userOptions.buttons.annotator,isAnnotation:p.value,onToggleFullscreen:ie,onGeneratePdf:e.unref(N),onGenerateImage:e.unref(z),onToggleAnnotator:x},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:o})=>[e.renderSlot(t.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:o})),void 0,!0)]),key:"2"}:void 0,t.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:o})=>[e.renderSlot(t.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:o})),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),C.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(i.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:"user-select:none; background:transparent"},[e.createVNode(fe._sfc_main),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+n.value.style.circle.offsetY,r:v.value<=0?1e-4:v.value,stroke:n.value.style.circle.stroke,"stroke-width":n.value.style.circle.strokeWidth,fill:"transparent",class:"main-circle"},null,8,ke),Q.value?(e.openBlock(),e.createElementBlock("g",pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,o)=>(e.openBlock(),e.createElementBlock("path",{key:`relation_${o}`,style:e.normalizeStyle(M(l)),stroke:q(l),class:e.normalizeClass(["relation",{"vue-ui-relation-circle-selected":a.value.hasOwnProperty("id")&&c.value.includes(l.id)}]),d:`M${l.x1},${l.y1} C${l.x1},${l.y1} ${s.value.width/2},${s.value.height/2+n.value.style.circle.offsetY} ${l.x2},${l.y2}`,fill:"none","stroke-width":G(l),"stroke-linecap":"round"},null,14,Ce))),128))])):(e.openBlock(),e.createElementBlock("g",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(l,o)=>(e.openBlock(),e.createElementBlock("line",{key:`relation_${o}`,stroke:q(l),style:e.normalizeStyle(M(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")&&c.value.includes(l.id)}),"stroke-linecap":"round"},null,14,$e))),128))])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,o)=>(e.openBlock(),e.createElementBlock("text",{key:`plot_text_${o}`,"text-anchor":re(l),transform:se(l),x:oe(l),y:l.y+5,onClick:y=>j(l),class:"vue-ui-relation-circle-legend","transform-origin":"start","font-weight":a.value.id===l.id?"900":"400",style:e.normalizeStyle(`font-family:${n.value.style.fontFamily};${ae(l)}`),"font-size":n.value.style.labels.fontSize,fill:n.value.style.labels.color},e.toDisplayString(l.label),13,xe))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(l,o)=>(e.openBlock(),e.createElementBlock("circle",{cx:l.x,cy:l.y,key:`plot_${o}`,style:e.normalizeStyle(ne(l)),class:"vue-ui-relation-circle-plot",fill:n.value.style.plot.color,onClick:y=>j(l),r:n.value.style.plot.radius},null,12,we))),128)),e.renderSlot(t.$slots,"svg",{svg:s.value},void 0,!0)],10,he)):e.createCommentVNode("",!0),t.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Be,[e.renderSlot(t.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(S)||e.unref(I)})),void 0,!0)])):e.createCommentVNode("",!0),t.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:6,ref_key:"source",ref:P,dir:"auto"},[e.renderSlot(t.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),C.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ve.default,{key:7,config:{type:"relationCircle",style:{backgroundColor:n.value.style.backgroundColor,relationCircle:{color:"#CCCCCC"}}}},null,8,["config"]))],12,ye))}},Pe=me._export_sfc(be,[["__scopeId","data-v-a4837ff7"]]);exports.default=Pe;
|