vue-data-ui 3.22.6 → 3.22.8
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-Ds4xmpiQ.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-BHHNsVVP.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-pcgwlYr2.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-ClIGOuoX.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-C-p0ilWB.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-16uF1ayB.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-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-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-CVJfsfwL.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_y5qDdm.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-JqW18y5I.js} +49 -30
- package/dist/{package-DyQ_PQis.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-CLn1VXJ9.js} +20 -20
- 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/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +23 -23
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/{vue-ui-3d-bar-BAH0jNtT.js → vue-ui-3d-bar-B3HxJmDI.js} +124 -124
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-CfJXeAOE.js} +6 -6
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/{vue-ui-chestnut-Cx8T3NEl.js → vue-ui-chestnut-RfWMGUD-.js} +114 -114
- package/dist/{vue-ui-chord-B-sauvLo.js → vue-ui-chord-Db1O_diJ.js} +57 -57
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DL3zq0F2.js} +37 -37
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-BuTd6dt4.js} +224 -224
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-C3Rt6j-I.js} +458 -458
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +1510 -0
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-BTUNfWb7.js} +122 -122
- package/dist/vue-ui-funnel-BhoHzyHa.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DJ2uNYcN.js} +263 -263
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-Cf4NqvrO.js} +226 -226
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-ovHu_Sc9.js} +21 -21
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-DDxEj-qe.js} +7 -7
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-Npqnvb1r.js} +282 -282
- package/dist/vue-ui-history-plot-C3Kjy2tc.js +1715 -0
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-DlVh6hwx.js} +27 -27
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/{vue-ui-parallel-coordinate-plot-DBpHCFxa.js → vue-ui-parallel-coordinate-plot-DSp_cwU-.js} +57 -57
- package/dist/vue-ui-quadrant-ByVg-NBs.js +1978 -0
- package/dist/{vue-ui-quick-chart-so_8PzvS.js → vue-ui-quick-chart-WMzSJxGZ.js} +188 -188
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-DE-me6OC.js} +64 -64
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/vue-ui-relation-circle-L7-dTqet.js +924 -0
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-D4NnZ1mg.js} +17 -17
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-C38ysZ-c.js} +21 -21
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-B03ndcUe.js} +80 -80
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DgPc4vPT.js} +7 -7
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-D02ff7ZI.js} +115 -115
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-DlTfNQj8.js} +464 -464
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +662 -0
- package/dist/vue-ui-stackbar-BVdApDnY.js +2332 -0
- package/dist/vue-ui-stackline-QzQQ7lTy.js +2419 -0
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Q3brrivC.js} +68 -68
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-Q6BHPKUn.js} +199 -199
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-Bg0RR6m4.js} +26 -26
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-BdzKpoRj.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-DWb69ofh.js} +17 -17
- package/dist/{vue-ui-treemap-B03c4RIy.js → vue-ui-treemap-uUz07Prw.js} +401 -401
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-DTfvWYA7.js} +137 -137
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-DqfljAqH.js} +40 -40
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-Bvgy2do1.js} +1598 -1596
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-D5KsuNR2.js} +259 -259
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-BfgeE3TW.js} +440 -437
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +0 -1238
- package/dist/vue-ui-bullet-C_oBS1cr.js +0 -710
- package/dist/vue-ui-bump-BZB1Na8h.js +0 -1249
- package/dist/vue-ui-candlestick-8d_1xO8X.js +0 -1826
- package/dist/vue-ui-carousel-table-BfZNcwmY.js +0 -455
- package/dist/vue-ui-circle-pack-BLh8HnGK.js +0 -1608
- package/dist/vue-ui-donut-evolution-D1k4u6cA.js +0 -1510
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-horizontal-bar-CwB4sc6M.js +0 -1683
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-nested-donuts-wfesrzle.js +0 -1487
- package/dist/vue-ui-onion-B8-psLbF.js +0 -1200
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-rating-CKWHDKOT.js +0 -343
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-ridgeline-DVbYznRz.js +0 -1622
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-stackline-C0NHBUaE.js +0 -2416
- package/dist/vue-ui-strip-plot-_6LL45i9.js +0 -1729
- package/dist/vue-ui-waffle-afa8HSxz.js +0 -1362
- package/dist/vue-ui-world-CqS-HhZl.js +0 -14264
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as t, G as n, J as r, Kt as i, Mt as a, S as o, T as s, W as c, Wt as ee, Yt as l, Z as te, b as ne, dt as re, i as ie, kt as ae, r as oe, t as se } from "./lib-JqW18y5I.js";
|
|
3
3
|
import { t as ce } from "./useConfig-DYM3f6EI.js";
|
|
4
|
-
import { t as le } from "./usePrinter-
|
|
4
|
+
import { t as le } from "./usePrinter-CqqHmnBI.js";
|
|
5
5
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as fe } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as pe } from "./useNestedProp-
|
|
7
|
+
import { t as pe } from "./useNestedProp-DIuuzG1r.js";
|
|
8
8
|
import { t as me } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as he } from "./img-
|
|
10
|
-
import { n as ge } from "./Title-
|
|
11
|
-
import { t as _e } from "./Shape-
|
|
9
|
+
import { t as he } from "./img-DnP3eXuv.js";
|
|
10
|
+
import { n as ge } from "./Title-CcNiYzEo.js";
|
|
11
|
+
import { t as _e } from "./Shape-UpH0a4Ur.js";
|
|
12
12
|
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { c as ye } from "./canvas-lib-BOP_HS11.js";
|
|
14
14
|
import { t as be } from "./useResponsive-BfnK0KxU.js";
|
|
15
15
|
import { t as xe } from "./A11yDataTable-DdRsVULz.js";
|
|
16
16
|
import { t as Se } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
17
|
import { t as Ce } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as we } from "./Legend-
|
|
18
|
+
import { t as we } from "./Legend-ROt6ugzW.js";
|
|
19
19
|
import { t as Te } from "./vue_ui_chord-DPfS1Umc.js";
|
|
20
20
|
import { Fragment as u, Teleport as Ee, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as De, createTextVNode as Oe, createVNode as ke, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Ae, nextTick as je, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Me, onMounted as Ne, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as T, toRefs as Ie, unref as E, useCssVars as Le, watch as Re, withCtx as D, withModifiers as ze } from "vue";
|
|
21
21
|
//#region src/components/vue-ui-chord.vue
|
|
@@ -141,7 +141,7 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
|
|
|
141
141
|
],
|
|
142
142
|
setup(e, { expose: ve, emit: Be }) {
|
|
143
143
|
Le((e) => ({ v73ba9455: e.slicerColor }));
|
|
144
|
-
let vt = g(() => import("./vue-ui-accordion-
|
|
144
|
+
let vt = g(() => import("./vue-ui-accordion-YyosvEPo.js").then((e) => e.n)), yt = g(() => import("./BaseIcon-C2qlyHc7.js").then((e) => e.n)), bt = g(() => import("./DataTable-D9NvewTT.js")), xt = g(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), St = g(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), Ct = g(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), wt = g(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), { vue_ui_chord: Tt } = ce(), { isThemeValid: Et, warnInvalidTheme: Dt } = me(), O = e, Ot = Be, k = S(!!O.dataset && Object.hasOwn(O.dataset, "matrix")), A = S(n()), j = S(null), M = S(null), N = S(null), kt = S(0), P = S(null), At = S(null), jt = S(null), Mt = S(null), Nt = S(null), Pt = S(0), Ft = S(0), It = S(0), F = S(!1), I = Fe(null), L = Fe(null), Lt = S(!1), Rt = S(null), zt = S(null), Bt = S(!1), Vt = S(!1), R = S("group"), z = S(null), Ht = S(!1), B = S($t()), V = d(() => B.value.userOptions.useCursorPointer), Ut = d(() => i({
|
|
145
145
|
defaultConfig: {
|
|
146
146
|
useCssAnimation: !1,
|
|
147
147
|
userOptions: { show: !1 },
|
|
@@ -205,7 +205,7 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
|
|
|
205
205
|
"#969696"
|
|
206
206
|
]
|
|
207
207
|
},
|
|
208
|
-
skeletonConfig:
|
|
208
|
+
skeletonConfig: i({
|
|
209
209
|
defaultConfig: B.value,
|
|
210
210
|
userConfig: Ut.value
|
|
211
211
|
})
|
|
@@ -218,19 +218,19 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
|
|
|
218
218
|
let e = pe({
|
|
219
219
|
userConfig: O.config,
|
|
220
220
|
defaultConfig: Tt
|
|
221
|
-
}),
|
|
222
|
-
if (!
|
|
221
|
+
}), t = e.theme;
|
|
222
|
+
if (!t) return e;
|
|
223
223
|
if (!Et.value(e)) return Dt(e), e;
|
|
224
|
-
let
|
|
225
|
-
userConfig: Te[
|
|
224
|
+
let n = pe({
|
|
225
|
+
userConfig: Te[t] || O.config,
|
|
226
226
|
defaultConfig: e
|
|
227
|
-
}),
|
|
227
|
+
}), r = pe({
|
|
228
228
|
userConfig: O.config,
|
|
229
|
-
defaultConfig:
|
|
229
|
+
defaultConfig: n
|
|
230
230
|
});
|
|
231
231
|
return {
|
|
232
|
-
...
|
|
233
|
-
customPalette:
|
|
232
|
+
...r,
|
|
233
|
+
customPalette: r.customPalette.length ? r.customPalette : ee[t] || a
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
Re(() => O.config, (e) => {
|
|
@@ -241,21 +241,21 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
|
|
|
241
241
|
tn(), nn(), Pt.value += 1, Ft.value += 1, It.value += 1;
|
|
242
242
|
});
|
|
243
243
|
function tn() {
|
|
244
|
-
if (
|
|
245
|
-
|
|
244
|
+
if (ae(O.dataset)) {
|
|
245
|
+
t({
|
|
246
246
|
componentName: "VueUiChord",
|
|
247
247
|
type: "dataset",
|
|
248
248
|
debug: en.value
|
|
249
249
|
}), k.value = !1, Gt.value = !0;
|
|
250
250
|
return;
|
|
251
251
|
}
|
|
252
|
-
let e =
|
|
252
|
+
let e = re({
|
|
253
253
|
datasetObject: O.dataset,
|
|
254
254
|
requiredAttributes: ["matrix"]
|
|
255
255
|
});
|
|
256
256
|
if (e.length) {
|
|
257
257
|
e.forEach((e) => {
|
|
258
|
-
|
|
258
|
+
t({
|
|
259
259
|
componentName: "VueUiChord",
|
|
260
260
|
type: "datasetAttribute",
|
|
261
261
|
property: e,
|
|
@@ -264,16 +264,16 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
|
|
|
264
264
|
}), k.value = !1, Gt.value = !0;
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
|
-
let
|
|
268
|
-
if (!Array.isArray(
|
|
267
|
+
let n = O.dataset.matrix;
|
|
268
|
+
if (!Array.isArray(n) || n.length < 2) {
|
|
269
269
|
console.warn("VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:\n \nmatrix:[\n [1, 1],\n [1, 1]\n]"), k.value = !1, Gt.value = !0;
|
|
270
270
|
return;
|
|
271
271
|
}
|
|
272
|
-
let r =
|
|
273
|
-
if (
|
|
274
|
-
console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${
|
|
272
|
+
let r = n.length, i = n.findIndex((e) => !Array.isArray(e) || e.length !== r);
|
|
273
|
+
if (i !== -1) {
|
|
274
|
+
console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${i} has ${Array.isArray(n[i]) ? n[i].length : "NaN"} elements instead of the required ${r}
|
|
275
275
|
|
|
276
|
-
dataset.matrix[${
|
|
276
|
+
dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`), k.value = !1, Gt.value = !0;
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
279
|
k.value = !0, Gt.value = !1;
|
|
@@ -312,55 +312,55 @@ dataset.matrix[${a}] = [${Array.isArray(t[a]) ? t[a].toString() : "invalid"}]`),
|
|
|
312
312
|
let G = S({
|
|
313
313
|
height: 600,
|
|
314
314
|
width: 600
|
|
315
|
-
}), on = d(() => B.value.userOptions.show && !B.value.style.chart.title.text), sn = d(() =>
|
|
315
|
+
}), on = d(() => B.value.userOptions.show && !B.value.style.chart.title.text), sn = d(() => o(B.value.customPalette)), K = d(() => ({
|
|
316
316
|
inner: G.value.width * .3 * B.value.style.chart.arcs.innerRadiusRatio,
|
|
317
317
|
outer: G.value.width * .34 * B.value.style.chart.arcs.outerRadiusRatio
|
|
318
318
|
})), cn = d(() => B.value.style.chart.arcs.padAngle / 100), q = d(() => ({
|
|
319
319
|
matrix: H.value.matrix ?? [[0]],
|
|
320
320
|
labels: H.value.labels ?? [""],
|
|
321
|
-
colors: H.value.colors && Array.isArray(H.value.colors) && H.value.colors.length ? H.value.colors.map((e) =>
|
|
321
|
+
colors: H.value.colors && Array.isArray(H.value.colors) && H.value.colors.length ? H.value.colors.map((e) => ne(e)) : H.value.matrix.map((e, t) => sn.value[t] || a[t] || a[t % a.length])
|
|
322
322
|
}));
|
|
323
323
|
function ln(e, t) {
|
|
324
|
-
let
|
|
325
|
-
for (let t = 0; t <
|
|
326
|
-
let
|
|
327
|
-
for (let e = 0; e <
|
|
328
|
-
let
|
|
324
|
+
let r = e.length, i = K.value.inner, a = Array(r).fill(0), o = 0;
|
|
325
|
+
for (let t = 0; t < r; t += 1) for (let n = 0; n < r; n += 1) a[t] += e[t][n], o += e[t][n];
|
|
326
|
+
let s = (2 * Math.PI - t * r) / o, c = [], ee = 0;
|
|
327
|
+
for (let e = 0; e < r; e += 1) {
|
|
328
|
+
let r = ee, i = r + a[e] * s;
|
|
329
329
|
c.push({
|
|
330
330
|
index: e,
|
|
331
331
|
pattern: `pattern_${A.value}_${e}`,
|
|
332
|
-
startAngle:
|
|
333
|
-
endAngle:
|
|
332
|
+
startAngle: r,
|
|
333
|
+
endAngle: i,
|
|
334
334
|
name: q.value.labels[e],
|
|
335
|
-
id:
|
|
335
|
+
id: n(),
|
|
336
336
|
color: q.value.colors[e],
|
|
337
|
-
proportion:
|
|
338
|
-
}), ee =
|
|
337
|
+
proportion: a[e] / o
|
|
338
|
+
}), ee = i + t;
|
|
339
339
|
}
|
|
340
340
|
let l = [];
|
|
341
|
-
for (let t = 0; t <
|
|
341
|
+
for (let t = 0; t < r; t += 1) {
|
|
342
342
|
let n = e[t].map((e, t) => ({
|
|
343
343
|
j: t,
|
|
344
344
|
v: e
|
|
345
345
|
}));
|
|
346
346
|
n.sort((e, t) => t.v - e.v);
|
|
347
|
-
let
|
|
347
|
+
let r = c[t].startAngle;
|
|
348
348
|
for (let { j: e, v: a } of n) {
|
|
349
|
-
let n =
|
|
349
|
+
let n = r, o = n + a * s;
|
|
350
350
|
l.push({
|
|
351
351
|
index: t,
|
|
352
352
|
subIndex: e,
|
|
353
353
|
pattern: `pattern_${A.value}_${t}`,
|
|
354
354
|
startAngle: n,
|
|
355
|
-
endAngle:
|
|
355
|
+
endAngle: o,
|
|
356
356
|
value: a,
|
|
357
357
|
groupName: q.value.labels[t],
|
|
358
358
|
groupId: c[t].id,
|
|
359
359
|
groupColor: q.value.colors[t],
|
|
360
|
-
midAngle: (n +
|
|
361
|
-
midBaseX: Math.cos((n +
|
|
362
|
-
midBaseY: Math.sin((n +
|
|
363
|
-
}),
|
|
360
|
+
midAngle: (n + o) / 2,
|
|
361
|
+
midBaseX: Math.cos((n + o) / 2 - Math.PI / 2) * i,
|
|
362
|
+
midBaseY: Math.sin((n + o) / 2 - Math.PI / 2) * i
|
|
363
|
+
}), r = o;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
let te = [];
|
|
@@ -369,7 +369,7 @@ dataset.matrix[${a}] = [${Array.isArray(t[a]) ? t[a].toString() : "invalid"}]`),
|
|
|
369
369
|
te.push({
|
|
370
370
|
source: e,
|
|
371
371
|
target: t,
|
|
372
|
-
id:
|
|
372
|
+
id: n()
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
return {
|
|
@@ -496,7 +496,7 @@ dataset.matrix[${a}] = [${Array.isArray(t[a]) ? t[a].toString() : "invalid"}]`),
|
|
|
496
496
|
bn.value = !1;
|
|
497
497
|
}
|
|
498
498
|
function Dn(e) {
|
|
499
|
-
return
|
|
499
|
+
return ie(B.value.style.chart.ribbons.labels.formatter, e, r({
|
|
500
500
|
p: B.value.style.chart.ribbons.labels.prefix,
|
|
501
501
|
v: e,
|
|
502
502
|
s: B.value.style.chart.ribbons.labels.suffix,
|
|
@@ -627,12 +627,12 @@ dataset.matrix[${a}] = [${Array.isArray(t[a]) ? t[a].toString() : "invalid"}]`),
|
|
|
627
627
|
});
|
|
628
628
|
function Kn(e = null) {
|
|
629
629
|
je(() => {
|
|
630
|
-
let t = q.value.matrix.map((e, t) => [[q.value.labels[t] || t], e]), n =
|
|
630
|
+
let t = q.value.matrix.map((e, t) => [[q.value.labels[t] || t], e]), n = s([
|
|
631
631
|
[B.value.style.chart.title.text],
|
|
632
632
|
[B.value.style.chart.title.subtitle.text],
|
|
633
633
|
[[""], ...q.value.labels.map((e, t) => [e || t])]
|
|
634
634
|
].concat(t));
|
|
635
|
-
e ? e(n) :
|
|
635
|
+
e ? e(n) : te({
|
|
636
636
|
csvContent: n,
|
|
637
637
|
title: B.value.style.chart.title.text || "vue-ui-chord"
|
|
638
638
|
});
|
|
@@ -656,7 +656,7 @@ dataset.matrix[${a}] = [${Array.isArray(t[a]) ? t[a].toString() : "invalid"}]`),
|
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
658
|
function Jn(e, t) {
|
|
659
|
-
return `${q.value.labels[t]}${B.value.style.chart.arcs.labels.showPercentage ?
|
|
659
|
+
return `${q.value.labels[t]}${B.value.style.chart.arcs.labels.showPercentage ? r({
|
|
660
660
|
p: " (",
|
|
661
661
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
662
662
|
s: "%)",
|
|
@@ -1037,7 +1037,7 @@ dataset.matrix[${a}] = [${Array.isArray(t[a]) ? t[a].toString() : "invalid"}]`),
|
|
|
1037
1037
|
"style"
|
|
1038
1038
|
])) : p("", !0),
|
|
1039
1039
|
(x(), m("svg", {
|
|
1040
|
-
xmlns: E(
|
|
1040
|
+
xmlns: E(se),
|
|
1041
1041
|
ref_key: "svgRef",
|
|
1042
1042
|
ref: U,
|
|
1043
1043
|
viewBox: `0 0 ${G.value.width} ${G.value.height}`,
|
|
@@ -1237,12 +1237,12 @@ dataset.matrix[${a}] = [${Array.isArray(t[a]) ? t[a].toString() : "invalid"}]`),
|
|
|
1237
1237
|
key: `curved-label-${t}`,
|
|
1238
1238
|
"font-size": B.value.style.chart.arcs.labels.fontSize,
|
|
1239
1239
|
"font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
1240
|
-
fill: B.value.style.chart.arcs.labels.adaptColorToBackground ? E(
|
|
1240
|
+
fill: B.value.style.chart.arcs.labels.adaptColorToBackground ? E(oe)(q.value.colors[t]) : B.value.style.chart.arcs.labels.color
|
|
1241
1241
|
}, [h("textPath", {
|
|
1242
1242
|
href: `#labelPath-${t}_${A.value}`,
|
|
1243
1243
|
startOffset: "50%",
|
|
1244
1244
|
"text-anchor": "middle"
|
|
1245
|
-
}, T(q.value.labels[t]) + T(B.value.style.chart.arcs.labels.showPercentage ? E(
|
|
1245
|
+
}, T(q.value.labels[t]) + T(B.value.style.chart.arcs.labels.showPercentage ? E(r)({
|
|
1246
1246
|
p: " (",
|
|
1247
1247
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
1248
1248
|
s: "%)",
|
|
@@ -1259,8 +1259,8 @@ dataset.matrix[${a}] = [${Array.isArray(t[a]) ? t[a].toString() : "invalid"}]`),
|
|
|
1259
1259
|
"font-size": B.value.style.chart.arcs.labels.fontSize,
|
|
1260
1260
|
"font-weight": B.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
1261
1261
|
fill: B.value.style.chart.arcs.labels.color,
|
|
1262
|
-
innerHTML: E(
|
|
1263
|
-
content: E(
|
|
1262
|
+
innerHTML: E(c)({
|
|
1263
|
+
content: E(l)(Jn(e, t)),
|
|
1264
1264
|
fontSize: B.value.style.chart.arcs.labels.fontSize,
|
|
1265
1265
|
fill: B.value.style.chart.arcs.labels.color,
|
|
1266
1266
|
x: 0,
|