vue-data-ui 3.25.2 → 3.25.4
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-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
- package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
- package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
- package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
- package/dist/vue-ui-donut-BfehCl28.js +0 -2413
- package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
- package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
- package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
- package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
- package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
- package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
- package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
- package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
- package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
- package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
- package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
- package/dist/vue-ui-table-CftOhYTO.js +0 -1352
- package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
|
@@ -1,903 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { It as t, Jt as n, Nt as r, X as i, Xt as a, Yt as o, i as s, mt as ee, nt as te, q as ne, r as re, t as ie, w as ae } from "./lib-BPg41jWd.js";
|
|
3
|
-
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
|
-
import { t as ce } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as le } from "./usePrinter-CsDAx75S.js";
|
|
6
|
-
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as fe } from "./useNestedProp-fNUUtYXm.js";
|
|
8
|
-
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as me } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as he } from "./img-EYBQVkRw.js";
|
|
11
|
-
import { n as ge } from "./Title-BLrnZl5j.js";
|
|
12
|
-
import { t as _e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { l as ve, t as ye } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
15
|
-
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
-
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
-
import { t as Ce } from "./useAutoSizeLabelsInsideViewbox-DvDwcwi_.js";
|
|
18
|
-
import { t as we } from "./vue_ui_relation_circle-D0p4mXmv.js";
|
|
19
|
-
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Te, createTextVNode as Ee, createVNode as De, defineAsyncComponent as Oe, guardReactiveProps as m, mergeProps as ke, normalizeClass as Ae, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as je, onMounted as Me, openBlock as _, ref as v, renderList as y, renderSlot as b, shallowRef as Ne, toDisplayString as x, toRefs as Pe, unref as S, useCssVars as Fe, watch as Ie, withCtx as C } from "vue";
|
|
20
|
-
//#region src/components/vue-ui-relation-circle.vue
|
|
21
|
-
var Le = /* @__PURE__ */ e({ default: () => it }), Re = ["id"], ze = ["id"], Be = { style: { position: "relative" } }, Ve = [
|
|
22
|
-
"xmlns",
|
|
23
|
-
"viewBox",
|
|
24
|
-
"aria-describedby"
|
|
25
|
-
], He = ["width", "height"], Ue = [
|
|
26
|
-
"cx",
|
|
27
|
-
"cy",
|
|
28
|
-
"r",
|
|
29
|
-
"stroke",
|
|
30
|
-
"stroke-width"
|
|
31
|
-
], We = { key: 1 }, Ge = [
|
|
32
|
-
"stroke",
|
|
33
|
-
"d",
|
|
34
|
-
"stroke-width"
|
|
35
|
-
], Ke = { style: { "pointer-events": "none" } }, qe = [
|
|
36
|
-
"cx",
|
|
37
|
-
"cy",
|
|
38
|
-
"fill",
|
|
39
|
-
"r",
|
|
40
|
-
"stroke"
|
|
41
|
-
], Je = [
|
|
42
|
-
"x",
|
|
43
|
-
"y",
|
|
44
|
-
"fill",
|
|
45
|
-
"font-size"
|
|
46
|
-
], Ye = { key: 2 }, Xe = [
|
|
47
|
-
"stroke",
|
|
48
|
-
"stroke-width",
|
|
49
|
-
"x1",
|
|
50
|
-
"x2",
|
|
51
|
-
"y1",
|
|
52
|
-
"y2"
|
|
53
|
-
], Ze = { style: { "pointer-events": "none" } }, Qe = [
|
|
54
|
-
"cx",
|
|
55
|
-
"cy",
|
|
56
|
-
"fill",
|
|
57
|
-
"r",
|
|
58
|
-
"stroke"
|
|
59
|
-
], $e = [
|
|
60
|
-
"x",
|
|
61
|
-
"y",
|
|
62
|
-
"fill",
|
|
63
|
-
"font-size"
|
|
64
|
-
], et = [
|
|
65
|
-
"text-anchor",
|
|
66
|
-
"transform",
|
|
67
|
-
"x",
|
|
68
|
-
"y",
|
|
69
|
-
"font-weight",
|
|
70
|
-
"font-size",
|
|
71
|
-
"fill",
|
|
72
|
-
"text-decoration",
|
|
73
|
-
"onClick",
|
|
74
|
-
"onMouseenter",
|
|
75
|
-
"onMouseleave"
|
|
76
|
-
], tt = [
|
|
77
|
-
"cx",
|
|
78
|
-
"cy",
|
|
79
|
-
"fill",
|
|
80
|
-
"stroke",
|
|
81
|
-
"r",
|
|
82
|
-
"onClick",
|
|
83
|
-
"onMouseenter",
|
|
84
|
-
"onMouseleave"
|
|
85
|
-
], nt = {
|
|
86
|
-
key: 0,
|
|
87
|
-
style: {
|
|
88
|
-
position: "absolute",
|
|
89
|
-
top: "100%",
|
|
90
|
-
left: "0",
|
|
91
|
-
width: "100%"
|
|
92
|
-
},
|
|
93
|
-
"data-dom-to-png-ignore": "",
|
|
94
|
-
"aria-hidden": "true"
|
|
95
|
-
}, rt = {
|
|
96
|
-
key: 5,
|
|
97
|
-
class: "vue-data-ui-watermark"
|
|
98
|
-
}, it = /*#__PURE__*/ _e({
|
|
99
|
-
__name: "vue-ui-relation-circle",
|
|
100
|
-
props: {
|
|
101
|
-
dataset: {
|
|
102
|
-
type: Array,
|
|
103
|
-
default() {
|
|
104
|
-
return [];
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
config: {
|
|
108
|
-
type: Object,
|
|
109
|
-
default() {
|
|
110
|
-
return {};
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
emits: ["copyAlt"],
|
|
115
|
-
setup(e, { expose: _e, emit: Le }) {
|
|
116
|
-
Fe((e) => ({
|
|
117
|
-
ebbe27d4: At.value,
|
|
118
|
-
v6d2782f5: kt.value,
|
|
119
|
-
cec75fd2: jt.value
|
|
120
|
-
}));
|
|
121
|
-
let it = Oe(() => import("./PenAndPaper-Co2OSRzH.js").then((e) => e.t)), at = Oe(() => import("./UserOptions-pq95M7ss.js").then((e) => e.n)), ot = Oe(() => import("./PackageVersion-DWq6mo_q.js").then((e) => e.t)), { vue_ui_relation_circle: st } = ce(), { isThemeValid: ct, warnInvalidTheme: lt } = pe(), w = e, ut = Le, dt = l(() => !!w.dataset && Object.keys(w.dataset).length), T = v(ne()), ft = v(0), E = v(null), pt = v(null), mt = v(null), ht = v(null), gt = v(0), D = v(null), O = v(!1), k = v(P());
|
|
122
|
-
oe({
|
|
123
|
-
config: () => k.value,
|
|
124
|
-
dataset: () => w.dataset,
|
|
125
|
-
component: "VueUiRelationCircle",
|
|
126
|
-
rules: [se.noHint]
|
|
127
|
-
});
|
|
128
|
-
let A = l(() => k.value.userOptions.useCursorPointer), _t = l(() => a({
|
|
129
|
-
defaultConfig: {
|
|
130
|
-
userOptions: { show: !1 },
|
|
131
|
-
customPalette: Array(7).fill("#CACACA"),
|
|
132
|
-
style: {
|
|
133
|
-
backgroundColor: "#99999930",
|
|
134
|
-
labels: { color: "#6A6A6A" },
|
|
135
|
-
circle: { stroke: "#6A6A6A" },
|
|
136
|
-
plot: {
|
|
137
|
-
color: "#6A6A6A",
|
|
138
|
-
useSerieColor: !0
|
|
139
|
-
},
|
|
140
|
-
links: { maxWidth: 2 }
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
userConfig: k.value.skeletonConfig ?? {}
|
|
144
|
-
})), { loading: vt, FINAL_DATASET: yt, manualLoading: j } = ue({
|
|
145
|
-
...Pe(w),
|
|
146
|
-
FINAL_CONFIG: k,
|
|
147
|
-
prepareConfig: P,
|
|
148
|
-
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
149
|
-
{
|
|
150
|
-
id: "A",
|
|
151
|
-
label: "_",
|
|
152
|
-
relations: [
|
|
153
|
-
"B",
|
|
154
|
-
"C",
|
|
155
|
-
"D",
|
|
156
|
-
"E",
|
|
157
|
-
"F",
|
|
158
|
-
"G"
|
|
159
|
-
]
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
id: "B",
|
|
163
|
-
label: "_",
|
|
164
|
-
relations: ["A"]
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
id: "C",
|
|
168
|
-
label: "_",
|
|
169
|
-
relations: ["A"]
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
id: "D",
|
|
173
|
-
label: "_",
|
|
174
|
-
relations: ["A"]
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
id: "E",
|
|
178
|
-
label: "_",
|
|
179
|
-
relations: ["A"]
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
id: "F",
|
|
183
|
-
label: "_",
|
|
184
|
-
relations: ["A"]
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
id: "G",
|
|
188
|
-
label: "_",
|
|
189
|
-
relations: ["A"]
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
skeletonConfig: a({
|
|
193
|
-
defaultConfig: k.value,
|
|
194
|
-
userConfig: _t.value
|
|
195
|
-
})
|
|
196
|
-
}), { userOptionsVisible: M, setUserOptionsVisibility: bt, keepUserOptionState: xt } = xe({ config: k.value }), { svgRef: N } = Se({ config: k.value.style.title });
|
|
197
|
-
function P() {
|
|
198
|
-
let e = fe({
|
|
199
|
-
userConfig: w.config,
|
|
200
|
-
defaultConfig: st
|
|
201
|
-
}), r = e.theme;
|
|
202
|
-
if (!r) return e;
|
|
203
|
-
if (!ct.value(e)) return lt(e), e;
|
|
204
|
-
let i = fe({
|
|
205
|
-
userConfig: we[r] || w.config,
|
|
206
|
-
defaultConfig: e
|
|
207
|
-
}), a = fe({
|
|
208
|
-
userConfig: w.config,
|
|
209
|
-
defaultConfig: i
|
|
210
|
-
});
|
|
211
|
-
return {
|
|
212
|
-
...a,
|
|
213
|
-
customPalette: a.customPalette.length ? a.customPalette : n[r] || t
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
Ie(() => w.config, (e) => {
|
|
217
|
-
k.value = P(), M.value = !k.value.userOptions.showOnChartHover, V.value = k.value.style.size, H.value = k.value.style.weightLabels.size, U.value = k.value.style.plot.radius, W.value = k.value.style.labels.fontSize, G.value.height = k.value.style.size, G.value.width = k.value.style.size, Nt(), gt.value += 1;
|
|
218
|
-
}, { deep: !0 }), Ie(() => w.dataset, (e) => {
|
|
219
|
-
Array.isArray(e) && e.length > 0 && (j.value = !1);
|
|
220
|
-
}, { deep: !0 });
|
|
221
|
-
let { isPrinting: F, isImaging: St, generatePdf: Ct, generateImage: wt } = le({
|
|
222
|
-
elementId: `relation_circle_${T.value}`,
|
|
223
|
-
fileName: k.value.style.title.text || "vue-ui-relation-circle",
|
|
224
|
-
options: k.value.userOptions.print
|
|
225
|
-
}), Tt = l(() => k.value.userOptions.show && !k.value.style.title.text), Et = l(() => ae(k.value.customPalette)), I = v([]), L = v([]), R = v({}), z = v([]), Dt = v(0), B = l(() => yt.value.slice(0, k.value.style.limit).map((e) => {
|
|
226
|
-
let t = Array.isArray(e.relations) ? e.relations : [];
|
|
227
|
-
return {
|
|
228
|
-
...e,
|
|
229
|
-
weights: Array.isArray(e.weights) ? e.weights : Array(t.length).fill(1),
|
|
230
|
-
relations: t
|
|
231
|
-
};
|
|
232
|
-
}));
|
|
233
|
-
Ie(B, () => {
|
|
234
|
-
I.value = [], L.value = [], It(), Rt();
|
|
235
|
-
});
|
|
236
|
-
let V = v(k.value.style.size), H = v(k.value.style.weightLabels.size), U = v(k.value.style.plot.radius), W = v(k.value.style.labels.fontSize), G = v({
|
|
237
|
-
height: k.value.style.size,
|
|
238
|
-
width: k.value.style.size
|
|
239
|
-
}), K = l({
|
|
240
|
-
get() {
|
|
241
|
-
return V.value * k.value.style.circle.radiusProportion;
|
|
242
|
-
},
|
|
243
|
-
set(e) {
|
|
244
|
-
return e;
|
|
245
|
-
}
|
|
246
|
-
}), Ot = l(() => k.value.style.links.curved), kt = l(() => `${k.value.style.animation.speedMs}ms`), At = l(() => K.value * 2), jt = l(() => K.value * 4), q = Ne(null), J = Ne(null);
|
|
247
|
-
Me(() => {
|
|
248
|
-
Nt(), document.getElementById(`relation_circle_${T.value}`).addEventListener("click", Ft);
|
|
249
|
-
});
|
|
250
|
-
let Mt = l(() => k.value.debug);
|
|
251
|
-
function Nt() {
|
|
252
|
-
if (r(w.dataset) ? (te({
|
|
253
|
-
componentName: "VueUiRelationCircle",
|
|
254
|
-
type: "dataset",
|
|
255
|
-
debug: Mt.value
|
|
256
|
-
}), j.value = !0) : Mt.value && w.dataset.forEach((e, t) => {
|
|
257
|
-
ee({
|
|
258
|
-
datasetObject: e,
|
|
259
|
-
requiredAttributes: [
|
|
260
|
-
"id",
|
|
261
|
-
"label",
|
|
262
|
-
"relations",
|
|
263
|
-
"weights"
|
|
264
|
-
]
|
|
265
|
-
}).forEach((e) => {
|
|
266
|
-
te({
|
|
267
|
-
componentName: "VueUiRelationCircle",
|
|
268
|
-
type: "datasetSerieAttribute",
|
|
269
|
-
property: e,
|
|
270
|
-
index: t
|
|
271
|
-
});
|
|
272
|
-
});
|
|
273
|
-
}), r(w.dataset) || (j.value = k.value.loading), k.value.responsive) {
|
|
274
|
-
let e = ve(() => {
|
|
275
|
-
let { width: e, height: t } = ye({
|
|
276
|
-
chart: E.value,
|
|
277
|
-
title: k.value.style.title.text ? pt.value : null,
|
|
278
|
-
source: mt.value,
|
|
279
|
-
noTitle: ht.value
|
|
280
|
-
});
|
|
281
|
-
requestAnimationFrame(() => {
|
|
282
|
-
V.value = Math.min(e, t), G.value.width = Math.max(.1, e), G.value.height = Math.max(.1, t - 12), K.value = V.value * k.value.style.circle.radiusProportion, I.value = [], L.value = [], It(), Rt(), Pt(), k.value.responsiveProportionalSizing ? (H.value = o({
|
|
283
|
-
relator: V.value,
|
|
284
|
-
adjuster: k.value.style.size,
|
|
285
|
-
source: k.value.style.weightLabels.size,
|
|
286
|
-
threshold: 6,
|
|
287
|
-
fallback: 6
|
|
288
|
-
}), U.value = o({
|
|
289
|
-
relator: V.value,
|
|
290
|
-
adjuster: k.value.style.size,
|
|
291
|
-
source: k.value.style.plot.radius,
|
|
292
|
-
threshold: 1,
|
|
293
|
-
fallback: 1
|
|
294
|
-
}), W.value = o({
|
|
295
|
-
relator: V.value,
|
|
296
|
-
adjuster: k.value.style.size,
|
|
297
|
-
source: k.value.style.labels.fontSize,
|
|
298
|
-
threshold: 6,
|
|
299
|
-
fallback: 6
|
|
300
|
-
})) : (H.value = k.value.style.weightLabels.size, U.value = k.value.style.plot.radius, W.value = k.value.style.labels.fontSize);
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect()), q.value = new ResizeObserver(e), J.value = E.value.parentNode, q.value.observe(J.value);
|
|
304
|
-
} else I.value = [], L.value = [], It(), Rt();
|
|
305
|
-
Pt();
|
|
306
|
-
}
|
|
307
|
-
je(() => {
|
|
308
|
-
document.getElementById(`relation_circle_${T.value}`).removeEventListener("click", Ft), q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect());
|
|
309
|
-
});
|
|
310
|
-
let { autoSizeLabels: Pt } = Ce({
|
|
311
|
-
svgRef: N,
|
|
312
|
-
fontSize: k.value.style.labels.fontSize,
|
|
313
|
-
minFontSize: k.value.style.labels.minFontSize,
|
|
314
|
-
sizeRef: W,
|
|
315
|
-
labelClass: ".vue-ui-relation-circle-legend"
|
|
316
|
-
});
|
|
317
|
-
function Ft(e) {
|
|
318
|
-
let t = e.target;
|
|
319
|
-
t && Array.from(t.classList).includes("vue-ui-user-options") || t && Array.from(t.classList).includes("vue-ui-user-options-summary") || t && Array.from(t.classList).includes("vue-data-ui-button") || t && Array.from(t.classList).includes("vue-ui-relation-circle-legend") || (R.value = {}, z.value = []);
|
|
320
|
-
}
|
|
321
|
-
function It() {
|
|
322
|
-
let e = 6.28319 / B.value.length, n = 360 / B.value.length, r = 0, i = 0;
|
|
323
|
-
B.value.forEach((a, o) => {
|
|
324
|
-
let s = a.weights.reduce((e, t) => e + t, 0), ee = K.value * Math.cos(r) + G.value.width / 2, te = K.value * Math.sin(r) + G.value.height / 2 + k.value.style.circle.offsetY;
|
|
325
|
-
I.value.push({
|
|
326
|
-
x: ee,
|
|
327
|
-
y: te,
|
|
328
|
-
...a,
|
|
329
|
-
color: a.color ? a.color : Et.value[o] ? Et.value[o] : t[o],
|
|
330
|
-
regAngle: i,
|
|
331
|
-
totalWeight: s
|
|
332
|
-
}), r += e, i += n;
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
function Lt(e, t) {
|
|
336
|
-
return {
|
|
337
|
-
x: (e.x + t.x) / 2,
|
|
338
|
-
y: (e.y + t.y) / 2
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
function Rt() {
|
|
342
|
-
L.value = [], I.value.forEach((e) => {
|
|
343
|
-
I.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
|
|
344
|
-
let r = t.relations.indexOf(e.id);
|
|
345
|
-
L.value.push({
|
|
346
|
-
weight: t.weights[r] ? t.weights[r] : 0,
|
|
347
|
-
relationId: `${e.id}_${t.id}`,
|
|
348
|
-
x1: e.x,
|
|
349
|
-
y1: e.y,
|
|
350
|
-
x2: t.x,
|
|
351
|
-
y2: t.y,
|
|
352
|
-
colorSource: e.color,
|
|
353
|
-
colorTarget: t.color,
|
|
354
|
-
midPointLine: Lt({
|
|
355
|
-
x: e.x,
|
|
356
|
-
y: e.y
|
|
357
|
-
}, {
|
|
358
|
-
x: t.x,
|
|
359
|
-
y: t.y
|
|
360
|
-
}),
|
|
361
|
-
midPointBezier: zt({
|
|
362
|
-
x1: e.x,
|
|
363
|
-
x2: t.x,
|
|
364
|
-
y1: e.y,
|
|
365
|
-
y2: t.y
|
|
366
|
-
}),
|
|
367
|
-
...e
|
|
368
|
-
});
|
|
369
|
-
});
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
function zt(e) {
|
|
373
|
-
let t = {
|
|
374
|
-
x: e.x1,
|
|
375
|
-
y: e.y1
|
|
376
|
-
}, n = {
|
|
377
|
-
x: e.x2,
|
|
378
|
-
y: e.y2
|
|
379
|
-
}, r = {
|
|
380
|
-
x: e.x1,
|
|
381
|
-
y: e.y1
|
|
382
|
-
}, i = {
|
|
383
|
-
x: G.value.width / 2,
|
|
384
|
-
y: G.value.height / 2 + k.value.style.circle.offsetY
|
|
385
|
-
}, a = .5;
|
|
386
|
-
return {
|
|
387
|
-
x: .5 ** 3 * t.x + 3 * .5 ** 2 * a * r.x + 1.5 * a ** 2 * i.x + a ** 3 * n.x,
|
|
388
|
-
y: .5 ** 3 * t.y + 3 * .5 ** 2 * a * r.y + 1.5 * a ** 2 * i.y + a ** 3 * n.y
|
|
389
|
-
};
|
|
390
|
-
}
|
|
391
|
-
let Bt = l(() => Math.max(...L.value.map((e) => e.weight)));
|
|
392
|
-
function Vt(e) {
|
|
393
|
-
return Object.hasOwn(R.value, "x") ? z.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
394
|
-
}
|
|
395
|
-
function Y(e) {
|
|
396
|
-
return e.colorSource;
|
|
397
|
-
}
|
|
398
|
-
function Ht(e) {
|
|
399
|
-
return Object.hasOwn(R.value, "x") ? z.value.includes(e.id) && e.relationId === `${e.id}_${R.value.id}` || e.relationId === `${R.value.id}_${e.id}` ? `opacity:1;stroke-width:${Zt(e)}` : "opacity: 0" : "opacity: 1";
|
|
400
|
-
}
|
|
401
|
-
function X(e) {
|
|
402
|
-
return Object.hasOwn(R.value, "x") ? !!(z.value.includes(e.id) && e.relationId === `${e.id}_${R.value.id}` || e.relationId === `${R.value.id}_${e.id}`) : !1;
|
|
403
|
-
}
|
|
404
|
-
function Ut(e) {
|
|
405
|
-
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
406
|
-
}
|
|
407
|
-
function Wt(e) {
|
|
408
|
-
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
409
|
-
}
|
|
410
|
-
function Gt(e) {
|
|
411
|
-
return Object.hasOwn(R.value, "x") ? R.value.id === e.id || z.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
412
|
-
}
|
|
413
|
-
function Kt(e) {
|
|
414
|
-
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
415
|
-
}
|
|
416
|
-
let Z = v(null);
|
|
417
|
-
function qt(e, t) {
|
|
418
|
-
Z.value = t, D.value = t, k.value.events.datapointEnter && k.value.events.datapointEnter({
|
|
419
|
-
datapoint: e,
|
|
420
|
-
seriesIndex: t
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
function Jt(e, t) {
|
|
424
|
-
Z.value = null, O.value || (D.value = null), k.value.events.datapointLeave && k.value.events.datapointLeave({
|
|
425
|
-
datapoint: e,
|
|
426
|
-
seriesIndex: t
|
|
427
|
-
});
|
|
428
|
-
}
|
|
429
|
-
function Yt(e, t) {
|
|
430
|
-
e && (k.value.events.datapointClick && k.value.events.datapointClick({
|
|
431
|
-
datapoint: e,
|
|
432
|
-
seriesIndex: t
|
|
433
|
-
}), Dt.value = 360 - e.regAngle, R.value.id && e.id === R.value.id ? (R.value = {}, z.value = []) : (R.value = e, z.value = [...e.relations]));
|
|
434
|
-
}
|
|
435
|
-
function Xt(e, t) {
|
|
436
|
-
D.value = t, Yt(e, t);
|
|
437
|
-
}
|
|
438
|
-
function Zt(e) {
|
|
439
|
-
let t = e.weight / Bt.value * k.value.style.links.maxWidth;
|
|
440
|
-
return Math.max(.3, t);
|
|
441
|
-
}
|
|
442
|
-
let Q = v(!1);
|
|
443
|
-
function Qt(e) {
|
|
444
|
-
Q.value = e, ft.value += 1;
|
|
445
|
-
}
|
|
446
|
-
let $ = v(!1);
|
|
447
|
-
function $t() {
|
|
448
|
-
$.value = !$.value;
|
|
449
|
-
}
|
|
450
|
-
async function en({ scale: e = 2 } = {}) {
|
|
451
|
-
if (!E.value) return;
|
|
452
|
-
let { width: t, height: n } = E.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
453
|
-
domElement: E.value,
|
|
454
|
-
base64: !0,
|
|
455
|
-
img: !0,
|
|
456
|
-
scale: e
|
|
457
|
-
});
|
|
458
|
-
return {
|
|
459
|
-
imageUri: i,
|
|
460
|
-
base64: a,
|
|
461
|
-
title: k.value.style.title.text,
|
|
462
|
-
width: t,
|
|
463
|
-
height: n,
|
|
464
|
-
aspectRatio: r
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
let tn = l(() => k.value.style.backgroundColor), nn = l(() => k.value.style.title), { isCallbackImaging: rn, isCallbackSvg: an, generateSvg: on, onGenerateImage: sn } = me({
|
|
468
|
-
svg: N,
|
|
469
|
-
title: nn,
|
|
470
|
-
legend: null,
|
|
471
|
-
legendItems: null,
|
|
472
|
-
backgroundColor: tn,
|
|
473
|
-
getSvgCallback: () => k.value.userOptions.callbacks.svg,
|
|
474
|
-
generateImage: wt
|
|
475
|
-
});
|
|
476
|
-
async function cn() {
|
|
477
|
-
if (ut("copyAlt", {
|
|
478
|
-
config: k.value,
|
|
479
|
-
dataset: B.value
|
|
480
|
-
}), !k.value.userOptions.callbacks.altCopy) {
|
|
481
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
482
|
-
return;
|
|
483
|
-
}
|
|
484
|
-
await Promise.resolve(k.value.userOptions.callbacks.altCopy({
|
|
485
|
-
config: k.value,
|
|
486
|
-
dataset: B.value
|
|
487
|
-
}));
|
|
488
|
-
}
|
|
489
|
-
function ln() {
|
|
490
|
-
O.value = !0, I.value.length && D.value === null && (D.value = 0);
|
|
491
|
-
}
|
|
492
|
-
function un() {
|
|
493
|
-
O.value = !1, D.value = null;
|
|
494
|
-
}
|
|
495
|
-
function dn(e) {
|
|
496
|
-
if (!N.value || $.value || document.activeElement !== N.value || !I.value.length) return;
|
|
497
|
-
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
498
|
-
if (!t && !n && !r && !i) return;
|
|
499
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
500
|
-
D.value = null, R.value = {}, z.value = [];
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
if (r) {
|
|
504
|
-
if (D.value === null) return;
|
|
505
|
-
let e = I.value[D.value];
|
|
506
|
-
if (!e) return;
|
|
507
|
-
Yt(e, D.value);
|
|
508
|
-
return;
|
|
509
|
-
}
|
|
510
|
-
let a = D.value;
|
|
511
|
-
a === null || a < 0 || a >= I.value.length ? a = n ? 0 : I.value.length - 1 : n ? (a += 1, a >= I.value.length && (a = 0)) : t && (--a, a < 0 && (a = I.value.length - 1)), D.value = a, Z.value = a;
|
|
512
|
-
let o = I.value[a];
|
|
513
|
-
o && k.value.events.datapointEnter && k.value.events.datapointEnter({
|
|
514
|
-
datapoint: o,
|
|
515
|
-
seriesIndex: a
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
let fn = l(() => ({
|
|
519
|
-
headers: [
|
|
520
|
-
"ID",
|
|
521
|
-
"Label",
|
|
522
|
-
"Total weight",
|
|
523
|
-
"Relations count",
|
|
524
|
-
"Relations"
|
|
525
|
-
],
|
|
526
|
-
rows: B.value.map((e) => {
|
|
527
|
-
let t = e.relations.map((e) => B.value.find((t) => t.id === e)?.label || e).join(", "), n = (e.weights || []).reduce((e, t) => e + Number(t || 0), 0);
|
|
528
|
-
return [
|
|
529
|
-
e.id,
|
|
530
|
-
e.label,
|
|
531
|
-
n,
|
|
532
|
-
e.relations.length,
|
|
533
|
-
t
|
|
534
|
-
];
|
|
535
|
-
})
|
|
536
|
-
}));
|
|
537
|
-
return _e({
|
|
538
|
-
getImage: en,
|
|
539
|
-
generatePdf: Ct,
|
|
540
|
-
generateSvg: on,
|
|
541
|
-
generateImage: wt,
|
|
542
|
-
toggleAnnotator: $t,
|
|
543
|
-
toggleFullscreen: Qt,
|
|
544
|
-
copyAlt: cn
|
|
545
|
-
}), (e, t) => (_(), f("div", {
|
|
546
|
-
ref_key: "relationCircleChart",
|
|
547
|
-
ref: E,
|
|
548
|
-
class: "vue-data-ui-component vue-ui-relation-circle",
|
|
549
|
-
style: g(`width:100%;background:${k.value.style.backgroundColor};text-align:center;${k.value.responsive ? "height: 100%" : ""}`),
|
|
550
|
-
id: `relation_circle_${T.value}`,
|
|
551
|
-
onMouseenter: t[0] ||= () => S(bt)(!0),
|
|
552
|
-
onMouseleave: t[1] ||= () => S(bt)(!1)
|
|
553
|
-
}, [
|
|
554
|
-
p("div", {
|
|
555
|
-
id: `chart-instructions-${T.value}`,
|
|
556
|
-
class: "sr-only"
|
|
557
|
-
}, [p("p", null, x(k.value.a11y.translations.keyboardNavigation), 1)], 8, ze),
|
|
558
|
-
fn.value?.rows?.length ? (_(), u(be, {
|
|
559
|
-
key: 0,
|
|
560
|
-
uid: T.value,
|
|
561
|
-
head: fn.value.headers,
|
|
562
|
-
body: fn.value.rows,
|
|
563
|
-
notice: k.value.a11y.translations.tableAvailable,
|
|
564
|
-
caption: k.value.a11y.translations.tableCaption
|
|
565
|
-
}, null, 8, [
|
|
566
|
-
"uid",
|
|
567
|
-
"head",
|
|
568
|
-
"body",
|
|
569
|
-
"notice",
|
|
570
|
-
"caption"
|
|
571
|
-
])) : d("", !0),
|
|
572
|
-
k.value.userOptions.buttons.annotator ? (_(), u(S(it), {
|
|
573
|
-
key: 1,
|
|
574
|
-
svgRef: S(N),
|
|
575
|
-
backgroundColor: k.value.style.backgroundColor,
|
|
576
|
-
color: k.value.style.color,
|
|
577
|
-
active: $.value,
|
|
578
|
-
isCursorPointer: A.value,
|
|
579
|
-
onClose: $t
|
|
580
|
-
}, {
|
|
581
|
-
"annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
582
|
-
"annotator-action-color": C(({ color: t }) => [b(e.$slots, "annotator-action-color", h(m({ color: t })), void 0, !0)]),
|
|
583
|
-
"annotator-action-draw": C(({ mode: t }) => [b(e.$slots, "annotator-action-draw", h(m({ mode: t })), void 0, !0)]),
|
|
584
|
-
"annotator-action-undo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-undo", h(m({ disabled: t })), void 0, !0)]),
|
|
585
|
-
"annotator-action-redo": C(({ disabled: t }) => [b(e.$slots, "annotator-action-redo", h(m({ disabled: t })), void 0, !0)]),
|
|
586
|
-
"annotator-action-delete": C(({ disabled: t }) => [b(e.$slots, "annotator-action-delete", h(m({ disabled: t })), void 0, !0)]),
|
|
587
|
-
_: 3
|
|
588
|
-
}, 8, [
|
|
589
|
-
"svgRef",
|
|
590
|
-
"backgroundColor",
|
|
591
|
-
"color",
|
|
592
|
-
"active",
|
|
593
|
-
"isCursorPointer"
|
|
594
|
-
])) : d("", !0),
|
|
595
|
-
Tt.value ? (_(), f("div", {
|
|
596
|
-
key: 2,
|
|
597
|
-
ref_key: "noTitle",
|
|
598
|
-
ref: ht,
|
|
599
|
-
class: "vue-data-ui-no-title-space",
|
|
600
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
601
|
-
}, null, 512)) : d("", !0),
|
|
602
|
-
k.value.style.title.text ? (_(), f("div", {
|
|
603
|
-
key: 3,
|
|
604
|
-
ref_key: "chartTitle",
|
|
605
|
-
ref: pt,
|
|
606
|
-
style: "width:100%;background:transparent"
|
|
607
|
-
}, [(_(), u(ge, {
|
|
608
|
-
key: `title_${gt.value}`,
|
|
609
|
-
config: {
|
|
610
|
-
title: {
|
|
611
|
-
cy: "relation-div-title",
|
|
612
|
-
...k.value.style.title
|
|
613
|
-
},
|
|
614
|
-
subtitle: {
|
|
615
|
-
cy: "relation-div-subtitle",
|
|
616
|
-
...k.value.style.title.subtitle
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
620
|
-
k.value.userOptions.show && dt.value && (S(xt) || S(M)) ? (_(), u(S(at), {
|
|
621
|
-
ref: "details",
|
|
622
|
-
key: `user_options_${ft.value}`,
|
|
623
|
-
backgroundColor: k.value.style.backgroundColor,
|
|
624
|
-
color: k.value.style.color,
|
|
625
|
-
isPrinting: S(F),
|
|
626
|
-
isImaging: S(St),
|
|
627
|
-
uid: T.value,
|
|
628
|
-
hasPdf: k.value.userOptions.buttons.pdf,
|
|
629
|
-
hasImg: k.value.userOptions.buttons.img,
|
|
630
|
-
hasSvg: k.value.userOptions.buttons.svg,
|
|
631
|
-
hasFullscreen: k.value.userOptions.buttons.fullscreen,
|
|
632
|
-
hasAltCopy: k.value.userOptions.buttons.altCopy,
|
|
633
|
-
hasXls: !1,
|
|
634
|
-
isFullscreen: Q.value,
|
|
635
|
-
titles: { ...k.value.userOptions.buttonTitles },
|
|
636
|
-
chartElement: E.value,
|
|
637
|
-
position: k.value.userOptions.position,
|
|
638
|
-
hasAnnotator: k.value.userOptions.buttons.annotator,
|
|
639
|
-
isAnnotation: $.value,
|
|
640
|
-
callbacks: k.value.userOptions.callbacks,
|
|
641
|
-
printScale: k.value.userOptions.print.scale,
|
|
642
|
-
isCursorPointer: A.value,
|
|
643
|
-
onToggleFullscreen: Qt,
|
|
644
|
-
onGeneratePdf: S(Ct),
|
|
645
|
-
onGenerateImage: S(sn),
|
|
646
|
-
onGenerateSvg: S(on),
|
|
647
|
-
onToggleAnnotator: $t,
|
|
648
|
-
onCopyAlt: cn,
|
|
649
|
-
style: g({ visibility: S(xt) ? S(M) ? "visible" : "hidden" : "visible" })
|
|
650
|
-
}, Te({ _: 2 }, [
|
|
651
|
-
e.$slots.menuIcon ? {
|
|
652
|
-
name: "menuIcon",
|
|
653
|
-
fn: C(({ isOpen: t, color: n }) => [b(e.$slots, "menuIcon", h(m({
|
|
654
|
-
isOpen: t,
|
|
655
|
-
color: n
|
|
656
|
-
})), void 0, !0)]),
|
|
657
|
-
key: "0"
|
|
658
|
-
} : void 0,
|
|
659
|
-
e.$slots.optionPdf ? {
|
|
660
|
-
name: "optionPdf",
|
|
661
|
-
fn: C(() => [b(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
662
|
-
key: "1"
|
|
663
|
-
} : void 0,
|
|
664
|
-
e.$slots.optionImg ? {
|
|
665
|
-
name: "optionImg",
|
|
666
|
-
fn: C(() => [b(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
667
|
-
key: "2"
|
|
668
|
-
} : void 0,
|
|
669
|
-
e.$slots.optionSvg ? {
|
|
670
|
-
name: "optionSvg",
|
|
671
|
-
fn: C(() => [b(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
672
|
-
key: "3"
|
|
673
|
-
} : void 0,
|
|
674
|
-
e.$slots.optionFullscreen ? {
|
|
675
|
-
name: "optionFullscreen",
|
|
676
|
-
fn: C(({ toggleFullscreen: t, isFullscreen: n }) => [b(e.$slots, "optionFullscreen", h(m({
|
|
677
|
-
toggleFullscreen: t,
|
|
678
|
-
isFullscreen: n
|
|
679
|
-
})), void 0, !0)]),
|
|
680
|
-
key: "4"
|
|
681
|
-
} : void 0,
|
|
682
|
-
e.$slots.optionAnnotator ? {
|
|
683
|
-
name: "optionAnnotator",
|
|
684
|
-
fn: C(({ toggleAnnotator: t, isAnnotator: n }) => [b(e.$slots, "optionAnnotator", h(m({
|
|
685
|
-
toggleAnnotator: t,
|
|
686
|
-
isAnnotator: n
|
|
687
|
-
})), void 0, !0)]),
|
|
688
|
-
key: "5"
|
|
689
|
-
} : void 0,
|
|
690
|
-
e.$slots.optionAltCopy ? {
|
|
691
|
-
name: "optionAltCopy",
|
|
692
|
-
fn: C(({ altCopy: t }) => [b(e.$slots, "optionAltCopy", h(m({ altCopy: t })), void 0, !0)]),
|
|
693
|
-
key: "6"
|
|
694
|
-
} : void 0,
|
|
695
|
-
e.$slots["custom-menu-before"] ? {
|
|
696
|
-
name: "custom-menu-before",
|
|
697
|
-
fn: C(() => [b(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
698
|
-
key: "7"
|
|
699
|
-
} : void 0,
|
|
700
|
-
e.$slots["custom-menu-after"] ? {
|
|
701
|
-
name: "custom-menu-after",
|
|
702
|
-
fn: C(() => [b(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
703
|
-
key: "8"
|
|
704
|
-
} : void 0
|
|
705
|
-
]), 1032, [
|
|
706
|
-
"backgroundColor",
|
|
707
|
-
"color",
|
|
708
|
-
"isPrinting",
|
|
709
|
-
"isImaging",
|
|
710
|
-
"uid",
|
|
711
|
-
"hasPdf",
|
|
712
|
-
"hasImg",
|
|
713
|
-
"hasSvg",
|
|
714
|
-
"hasFullscreen",
|
|
715
|
-
"hasAltCopy",
|
|
716
|
-
"isFullscreen",
|
|
717
|
-
"titles",
|
|
718
|
-
"chartElement",
|
|
719
|
-
"position",
|
|
720
|
-
"hasAnnotator",
|
|
721
|
-
"isAnnotation",
|
|
722
|
-
"callbacks",
|
|
723
|
-
"printScale",
|
|
724
|
-
"isCursorPointer",
|
|
725
|
-
"onGeneratePdf",
|
|
726
|
-
"onGenerateImage",
|
|
727
|
-
"onGenerateSvg",
|
|
728
|
-
"style"
|
|
729
|
-
])) : d("", !0),
|
|
730
|
-
p("div", Be, [(_(), f("svg", {
|
|
731
|
-
ref_key: "svgRef",
|
|
732
|
-
ref: N,
|
|
733
|
-
xmlns: S(ie),
|
|
734
|
-
class: Ae([{
|
|
735
|
-
"vue-data-ui-fullscreen--on": Q.value,
|
|
736
|
-
"vue-data-ui-fulscreen--off": !Q.value
|
|
737
|
-
}, "relation-circle"]),
|
|
738
|
-
viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${G.value.height <= 0 ? 10 : G.value.height}`,
|
|
739
|
-
width: "100%",
|
|
740
|
-
style: "user-select:none; background:transparent",
|
|
741
|
-
"aria-describedby": `chart-instructions-${T.value}`,
|
|
742
|
-
tabindex: "0",
|
|
743
|
-
onFocus: ln,
|
|
744
|
-
onBlur: un,
|
|
745
|
-
onKeydown: dn
|
|
746
|
-
}, [
|
|
747
|
-
De(S(ot)),
|
|
748
|
-
e.$slots["chart-background"] ? (_(), f("foreignObject", {
|
|
749
|
-
key: 0,
|
|
750
|
-
x: 0,
|
|
751
|
-
y: 0,
|
|
752
|
-
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
753
|
-
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
754
|
-
style: { pointerEvents: "none" }
|
|
755
|
-
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, He)) : d("", !0),
|
|
756
|
-
p("circle", {
|
|
757
|
-
cx: (G.value.width <= 0 ? 1e-4 : G.value.width) / 2,
|
|
758
|
-
cy: (G.value.height <= 0 ? 1e-4 : G.value.height) / 2 + k.value.style.circle.offsetY,
|
|
759
|
-
r: K.value <= 0 ? 1e-4 : K.value,
|
|
760
|
-
stroke: k.value.style.circle.stroke,
|
|
761
|
-
"stroke-width": k.value.style.circle.strokeWidth,
|
|
762
|
-
fill: "transparent",
|
|
763
|
-
class: "main-circle"
|
|
764
|
-
}, null, 8, Ue),
|
|
765
|
-
Ot.value ? (_(), f("g", We, [(_(!0), f(c, null, y(L.value, (e, t) => (_(), f("path", {
|
|
766
|
-
key: `relation_${t}`,
|
|
767
|
-
style: g(Ht(e)),
|
|
768
|
-
stroke: Y(e),
|
|
769
|
-
class: Ae(["relation", { "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }]),
|
|
770
|
-
d: `M${e.x1},${e.y1} C${e.x1},${e.y1} ${G.value.width / 2},${G.value.height / 2 + k.value.style.circle.offsetY} ${e.x2},${e.y2}`,
|
|
771
|
-
fill: "none",
|
|
772
|
-
"stroke-width": Zt(e),
|
|
773
|
-
"stroke-linecap": "round"
|
|
774
|
-
}, null, 14, Ge))), 128)), (_(!0), f(c, null, y(L.value, (t, n) => (_(), f("g", Ke, [
|
|
775
|
-
X(t) ? b(e.$slots, "dataLabel", ke({ ref_for: !0 }, {
|
|
776
|
-
x: t.midPointBezier.x,
|
|
777
|
-
y: t.midPointBezier.y,
|
|
778
|
-
color: Y(t),
|
|
779
|
-
weight: t.weight,
|
|
780
|
-
fontSize: H.value
|
|
781
|
-
}), void 0, !0, 0) : d("", !0),
|
|
782
|
-
X(t) && !e.$slots.dataLabel ? (_(), f("circle", {
|
|
783
|
-
key: 1,
|
|
784
|
-
cx: t.midPointBezier.x,
|
|
785
|
-
cy: t.midPointBezier.y,
|
|
786
|
-
fill: Y(t),
|
|
787
|
-
r: H.value,
|
|
788
|
-
stroke: k.value.style.backgroundColor,
|
|
789
|
-
"stroke-width": "1"
|
|
790
|
-
}, null, 8, qe)) : d("", !0),
|
|
791
|
-
X(t) && !e.$slots.dataLabel ? (_(), f("text", {
|
|
792
|
-
key: 2,
|
|
793
|
-
x: t.midPointBezier.x,
|
|
794
|
-
y: t.midPointBezier.y + H.value / 3,
|
|
795
|
-
fill: S(re)(Y(t)),
|
|
796
|
-
"text-anchor": "middle",
|
|
797
|
-
"font-size": H.value
|
|
798
|
-
}, x(S(s)(k.value.style.weightLabels.formatter, t.weight, S(i)({
|
|
799
|
-
p: k.value.style.weightLabels.prefix,
|
|
800
|
-
v: t.weight,
|
|
801
|
-
s: k.value.style.weightLabels.suffix,
|
|
802
|
-
r: k.value.style.weightLabels.rounding
|
|
803
|
-
}), { ...t })), 9, Je)) : d("", !0)
|
|
804
|
-
]))), 256))])) : (_(), f("g", Ye, [(_(!0), f(c, null, y(L.value, (e, t) => (_(), f("line", {
|
|
805
|
-
key: `relation_${t}`,
|
|
806
|
-
stroke: Y(e),
|
|
807
|
-
"stroke-width": Zt(e),
|
|
808
|
-
style: g(Ht(e)),
|
|
809
|
-
x1: e.x1,
|
|
810
|
-
x2: e.x2,
|
|
811
|
-
y1: e.y1,
|
|
812
|
-
y2: e.y2,
|
|
813
|
-
class: Ae({ "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }),
|
|
814
|
-
"stroke-linecap": "round"
|
|
815
|
-
}, null, 14, Xe))), 128)), (_(!0), f(c, null, y(L.value, (t, n) => (_(), f("g", Ze, [
|
|
816
|
-
X(t) ? b(e.$slots, "dataLabel", ke({ ref_for: !0 }, {
|
|
817
|
-
x: t.midPointLine.x,
|
|
818
|
-
y: t.midPointLine.y,
|
|
819
|
-
color: Y(t),
|
|
820
|
-
weight: t.weight,
|
|
821
|
-
fontSize: H.value
|
|
822
|
-
}), void 0, !0, 0) : d("", !0),
|
|
823
|
-
X(t) && !e.$slots.dataLabel && k.value.style.weightLabels.show ? (_(), f("circle", {
|
|
824
|
-
key: 1,
|
|
825
|
-
cx: t.midPointLine.x,
|
|
826
|
-
cy: t.midPointLine.y,
|
|
827
|
-
fill: Y(t),
|
|
828
|
-
r: H.value,
|
|
829
|
-
stroke: k.value.style.backgroundColor,
|
|
830
|
-
"stroke-width": "1"
|
|
831
|
-
}, null, 8, Qe)) : d("", !0),
|
|
832
|
-
X(t) && !e.$slots.dataLabel && k.value.style.weightLabels.show ? (_(), f("text", {
|
|
833
|
-
key: 2,
|
|
834
|
-
x: t.midPointLine.x,
|
|
835
|
-
y: t.midPointLine.y + H.value / 3,
|
|
836
|
-
fill: S(re)(Y(t)),
|
|
837
|
-
"text-anchor": "middle",
|
|
838
|
-
"font-size": H.value
|
|
839
|
-
}, x(S(s)(k.value.style.weightLabels.formatter, t.weight, S(i)({
|
|
840
|
-
p: k.value.style.weightLabels.prefix,
|
|
841
|
-
v: t.weight,
|
|
842
|
-
s: k.value.style.weightLabels.suffix,
|
|
843
|
-
r: k.value.style.weightLabels.rounding
|
|
844
|
-
}), { ...t })), 9, $e)) : d("", !0)
|
|
845
|
-
]))), 256))])),
|
|
846
|
-
(_(!0), f(c, null, y(I.value, (e, t) => (_(), f("text", {
|
|
847
|
-
key: `plot_text_${t}`,
|
|
848
|
-
"text-anchor": Ut(e),
|
|
849
|
-
transform: Kt(e),
|
|
850
|
-
x: Wt(e),
|
|
851
|
-
y: e.y + 5,
|
|
852
|
-
class: "vue-ui-relation-circle-legend",
|
|
853
|
-
"transform-origin": "start",
|
|
854
|
-
"font-weight": R.value.id === e.id ? "900" : "400",
|
|
855
|
-
style: g(`font-family:${k.value.style.fontFamily};${Gt(e)};cursor:${A.value ? "pointer" : "default"}`),
|
|
856
|
-
"font-size": W.value,
|
|
857
|
-
fill: k.value.style.labels.color,
|
|
858
|
-
"text-decoration": t === Z.value || t === D.value ? "underline" : void 0,
|
|
859
|
-
onClick: (n) => Xt(e, t),
|
|
860
|
-
onMouseenter: (n) => qt(e, t),
|
|
861
|
-
onMouseleave: (n) => Jt(e, t)
|
|
862
|
-
}, [S(vt) ? (_(), f(c, { key: 0 }, [Ee("--------")], 64)) : (_(), f(c, { key: 1 }, [Ee(x(e.label) + " (" + x(S(s)(k.value.style.weightLabels.formatter, e.totalWeight, S(i)({
|
|
863
|
-
p: k.value.style.weightLabels.prefix,
|
|
864
|
-
v: e.totalWeight,
|
|
865
|
-
s: k.value.style.weightLabels.suffix,
|
|
866
|
-
r: k.value.style.weightLabels.rounding
|
|
867
|
-
}), { ...e })) + ") ", 1)], 64))], 44, et))), 128)),
|
|
868
|
-
(_(!0), f(c, null, y(I.value, (e, t) => (_(), f("circle", {
|
|
869
|
-
cx: e.x,
|
|
870
|
-
cy: e.y,
|
|
871
|
-
key: `plot_${t}`,
|
|
872
|
-
style: g(`${Vt(e)}; transition: r 0.2s ease-in-out; cursor:${A.value ? "pointer" : "default"}`),
|
|
873
|
-
class: "vue-ui-relation-circle-plot",
|
|
874
|
-
fill: k.value.style.plot.useSerieColor ? e.color : k.value.style.plot.color,
|
|
875
|
-
stroke: k.value.style.backgroundColor,
|
|
876
|
-
"stroke-width": "1",
|
|
877
|
-
r: U.value * (t === Z.value || t === D.value ? 2 : 1),
|
|
878
|
-
onClick: (n) => Xt(e, t),
|
|
879
|
-
onMouseenter: (n) => qt(e, t),
|
|
880
|
-
onMouseleave: (n) => Jt(e, t)
|
|
881
|
-
}, null, 44, tt))), 128)),
|
|
882
|
-
b(e.$slots, "svg", { svg: {
|
|
883
|
-
...G.value,
|
|
884
|
-
isPrintingImg: S(F) || S(St) || S(rn),
|
|
885
|
-
isPrintingSvg: S(an)
|
|
886
|
-
} }, void 0, !0)
|
|
887
|
-
], 42, Ve)), e.$slots.hint ? (_(), f("div", nt, [b(e.$slots, "hint", h(m({
|
|
888
|
-
hint: k.value.a11y.translations.keyboardNavigation,
|
|
889
|
-
isVisible: O.value
|
|
890
|
-
})), void 0, !0)])) : d("", !0)]),
|
|
891
|
-
e.$slots.watermark ? (_(), f("div", rt, [b(e.$slots, "watermark", h(m({ isPrinting: S(F) || S(St) || S(rn) || S(an) })), void 0, !0)])) : d("", !0),
|
|
892
|
-
e.$slots.source ? (_(), f("div", {
|
|
893
|
-
key: 6,
|
|
894
|
-
ref_key: "source",
|
|
895
|
-
ref: mt,
|
|
896
|
-
dir: "auto"
|
|
897
|
-
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
898
|
-
b(e.$slots, "skeleton", {}, () => [S(vt) ? (_(), u(de, { key: 0 })) : d("", !0)], !0)
|
|
899
|
-
], 44, Re));
|
|
900
|
-
}
|
|
901
|
-
}, [["__scopeId", "data-v-09b3c31c"]]);
|
|
902
|
-
//#endregion
|
|
903
|
-
export { Le as n, it as t };
|