vue-data-ui 3.22.8 → 3.22.10
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-DdymhUfY.js → Arrow-Ku6rQ87g.js} +1 -1
- package/dist/{BaseDraggableDialog-DcfGlH8A.js → BaseDraggableDialog-CdkCqtag.js} +2 -2
- package/dist/BaseIcon-CDTIUIKV.js +483 -0
- package/dist/{BaseLegendToggle-DtQ8vyfr.js → BaseLegendToggle-BrQ2OlzI.js} +1 -1
- package/dist/{BaseZoomControls-C6zonwhr.js → BaseZoomControls-CkEX0292.js} +2 -2
- package/dist/{ColorPicker-CK2-h611.js → ColorPicker-C959ZIW9.js} +2 -2
- package/dist/{DataTable-D9NvewTT.js → DataTable-ByZy5gt1.js} +2 -2
- package/dist/DefGrad-DVBqDjhO.js +48 -0
- package/dist/{Legend-ROt6ugzW.js → Legend-5VQGLnmx.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BHHNsVVP.js → NonSvgPenAndPaper-Bd8OzTqw.js} +3 -3
- package/dist/{PackageVersion-DW7zwRcm.js → PackageVersion-BoTvk0i5.js} +1 -1
- package/dist/{PenAndPaper-pcgwlYr2.js → PenAndPaper-CLaZJl6K.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-B5ksaGa1.js} +3 -3
- package/dist/{Slicer-BZ5VnOOS.js → Slicer-WsWTQPKt.js} +368 -363
- package/dist/{SlicerPreview-BQFeCw0m.js → SlicerPreview-3n516NyE.js} +460 -455
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-CbYYc-xb.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-Cr3jP7Qd.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CDbLl3TD.js} +1 -1
- package/dist/{UserOptions-16uF1ayB.js → UserOptions-BUQOnoPR.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-BbwhsRIr.js → dom-to-png-COPbGrdd.js} +1 -1
- package/dist/exposedLib-CZbtc2a6.js +25 -0
- package/dist/{img-DnP3eXuv.js → img-CNdXiUfZ.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-JaoYKi2N.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CnHx5WfV.js} +118 -107
- package/dist/{package-gp9pYCfN.js → package-BRBLwZUc.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-CEMzBeuV.js} +1 -1
- package/dist/{render-common-CLn1VXJ9.js → render-common-DJXFRGhU.js} +10 -10
- 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 +40 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-BUPt2iaP.js} +1 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-D8NuRneO.js} +2 -2
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-B-X_Pub0.js} +2 -2
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-AZZ9Cq-4.js → vue-data-ui-Bx_8d3b_.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-CfUfbpSE.js +1825 -0
- package/dist/{vue-ui-accordion-YyosvEPo.js → vue-ui-accordion-Oo3IsX3-.js} +3 -3
- package/dist/vue-ui-age-pyramid-DD-4y5Jd.js +1247 -0
- package/dist/{vue-ui-annotator-CfJXeAOE.js → vue-ui-annotator-BvGE3lzE.js} +8 -8
- package/dist/vue-ui-bullet-DYOdbaO2.js +710 -0
- package/dist/vue-ui-bump-B8fJoxHF.js +1249 -0
- package/dist/{vue-ui-candlestick-D-Z9pEaA.js → vue-ui-candlestick-BUP1JoNs.js} +555 -544
- package/dist/vue-ui-carousel-table-D-Bwhydt.js +455 -0
- package/dist/vue-ui-chestnut-C2VK2NEx.js +2042 -0
- package/dist/{vue-ui-chord-Db1O_diJ.js → vue-ui-chord-AA-QjUQI.js} +42 -42
- package/dist/vue-ui-circle-pack-CdBFGYOK.js +1614 -0
- package/dist/{vue-ui-cursor-DLP7wxsw.js → vue-ui-cursor-Cm_J_5Gk.js} +5 -5
- package/dist/{vue-ui-dag-DL3zq0F2.js → vue-ui-dag-CgRph4-n.js} +32 -32
- package/dist/{vue-ui-dashboard-C2ozZ-LI.js → vue-ui-dashboard-BuPw5QjB.js} +69 -69
- package/dist/{vue-ui-digits-ThFVNO3l.js → vue-ui-digits-ClrukmcB.js} +3 -3
- package/dist/vue-ui-donut-Bc-EPZvu.js +2419 -0
- package/dist/{vue-ui-donut-BuTd6dt4.js → vue-ui-donut-DtQCrMKL.js} +207 -207
- package/dist/vue-ui-donut-evolution-DHkiY-BD.js +1522 -0
- package/dist/vue-ui-dumbbell-BlHEH4Mw.js +1564 -0
- package/dist/{vue-ui-flow-BTUNfWb7.js → vue-ui-flow-PjwAW2tY.js} +71 -71
- package/dist/vue-ui-funnel-DojI09FV.js +782 -0
- package/dist/{vue-ui-galaxy-DJ2uNYcN.js → vue-ui-galaxy-txYIK_LG.js} +276 -276
- package/dist/vue-ui-gauge-CoL0OzSd.js +926 -0
- package/dist/{vue-ui-geo-ovHu_Sc9.js → vue-ui-geo-yuL-_sqF.js} +20 -20
- package/dist/{vue-ui-gizmo-DDxEj-qe.js → vue-ui-gizmo-CbC5zV3K.js} +66 -61
- package/dist/{vue-ui-heatmap-Npqnvb1r.js → vue-ui-heatmap-CwqsZIsR.js} +331 -331
- package/dist/{vue-ui-history-plot-C3Kjy2tc.js → vue-ui-history-plot-CuWssH-D.js} +561 -550
- package/dist/vue-ui-horizontal-bar-Dyje3GND.js +1689 -0
- package/dist/{vue-ui-kpi-BrlfYO-j.js → vue-ui-kpi-BdYenScF.js} +3 -3
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-BbwE3vBT.js} +2 -2
- package/dist/vue-ui-molecule-BBh31vmd.js +931 -0
- package/dist/{vue-ui-mood-radar-DlVh6hwx.js → vue-ui-mood-radar-B_6GFlaR.js} +336 -331
- package/dist/vue-ui-nested-donuts-BWq-At5Y.js +1493 -0
- package/dist/vue-ui-onion-BwGbSE-6.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Bh9hNoqf.js +1416 -0
- package/dist/vue-ui-quadrant-B72Y4Zuw.js +1984 -0
- package/dist/{vue-ui-quick-chart-WMzSJxGZ.js → vue-ui-quick-chart-B3LF2ViM.js} +108 -108
- package/dist/vue-ui-radar-4v_E8oGX.js +1287 -0
- package/dist/vue-ui-rating-CzLGCFWK.js +352 -0
- package/dist/vue-ui-relation-circle-B_8dyIv2.js +924 -0
- package/dist/{vue-ui-ridgeline-Cp3YP0xe.js → vue-ui-ridgeline-BArLhskj.js} +543 -537
- package/dist/vue-ui-rings-Csn5BgLk.js +1252 -0
- package/dist/vue-ui-scatter-BBaOx94M.js +2422 -0
- package/dist/{vue-ui-skeleton-CuFm4PtB.js → vue-ui-skeleton-KeIPGp9U.js} +426 -423
- package/dist/{vue-ui-smiley-D4NnZ1mg.js → vue-ui-smiley-C1mYDh4R.js} +120 -107
- package/dist/{vue-ui-spark-trend-C38ysZ-c.js → vue-ui-spark-trend-EqCqmHmU.js} +145 -140
- package/dist/vue-ui-sparkbar-BPh45vBP.js +398 -0
- package/dist/{vue-ui-sparkgauge-DgPc4vPT.js → vue-ui-sparkgauge-CtouPcyW.js} +81 -76
- package/dist/{vue-ui-sparkhistogram-D02ff7ZI.js → vue-ui-sparkhistogram-D4sI0DHN.js} +166 -150
- package/dist/vue-ui-sparkline-BDFZ78Fz.js +1560 -0
- package/dist/vue-ui-sparkstackbar-CbTXIfxm.js +674 -0
- package/dist/{vue-ui-stackbar-BVdApDnY.js → vue-ui-stackbar-nMXIY9x8.js} +603 -596
- package/dist/vue-ui-stackline-CzfXl5ah.js +2425 -0
- package/dist/{vue-ui-strip-plot-C-TFNvgz.js → vue-ui-strip-plot-BCf5nthl.js} +415 -408
- package/dist/vue-ui-table-BAKkFXki.js +1338 -0
- package/dist/{vue-ui-table-heatmap-D0pZbBOH.js → vue-ui-table-heatmap-CUMxqHKK.js} +15 -15
- package/dist/{vue-ui-table-sparkline-Q6BHPKUn.js → vue-ui-table-sparkline-BVTm16fd.js} +20 -20
- package/dist/vue-ui-thermometer-CGeEW1KV.js +770 -0
- package/dist/{vue-ui-timer-BdzKpoRj.js → vue-ui-timer-Bz7EnsM1.js} +94 -89
- package/dist/{vue-ui-tiremarks-DWb69ofh.js → vue-ui-tiremarks-IOqtk_Rr.js} +17 -17
- package/dist/{vue-ui-treemap-uUz07Prw.js → vue-ui-treemap-JxNNtb7v.js} +509 -504
- package/dist/vue-ui-waffle-D34mcJWi.js +1368 -0
- package/dist/{vue-ui-wheel-DTfvWYA7.js → vue-ui-wheel-B_qEhyvk.js} +44 -44
- package/dist/{vue-ui-word-cloud-DqfljAqH.js → vue-ui-word-cloud-TtObhd91.js} +32 -32
- package/dist/{vue-ui-world-BtBrH92Z.js → vue-ui-world-R9o00A6c.js} +359 -348
- package/dist/{vue-ui-xy-Bvgy2do1.js → vue-ui-xy-CUt6sU1s.js} +1678 -1652
- package/dist/{vue-ui-xy-D5KsuNR2.js → vue-ui-xy-Do34-UbE.js} +134 -134
- package/dist/vue-ui-xy-canvas-C6eRRH--.js +1790 -0
- package/package.json +1 -1
- package/dist/BaseIcon-C2qlyHc7.js +0 -502
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +0 -1757
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +0 -1238
- package/dist/vue-ui-bullet-CCLnrOLm.js +0 -710
- package/dist/vue-ui-bump-Rq7efdoe.js +0 -1249
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +0 -455
- package/dist/vue-ui-chestnut-RfWMGUD-.js +0 -2010
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +0 -1608
- package/dist/vue-ui-donut-C3Rt6j-I.js +0 -2410
- package/dist/vue-ui-donut-evolution-DY46UPF_.js +0 -1510
- package/dist/vue-ui-dumbbell-wK7vUB0x.js +0 -1530
- package/dist/vue-ui-funnel-BhoHzyHa.js +0 -777
- package/dist/vue-ui-gauge-Cf4NqvrO.js +0 -920
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +0 -1683
- package/dist/vue-ui-molecule-CExCqZ08.js +0 -925
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +0 -1487
- package/dist/vue-ui-onion-DwKK9DXn.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +0 -1416
- package/dist/vue-ui-quadrant-ByVg-NBs.js +0 -1978
- package/dist/vue-ui-radar-DE-me6OC.js +0 -1281
- package/dist/vue-ui-rating-CzD3EQ3G.js +0 -343
- package/dist/vue-ui-relation-circle-L7-dTqet.js +0 -924
- package/dist/vue-ui-rings-WzWiEo9W.js +0 -1246
- package/dist/vue-ui-scatter-DwrAydha.js +0 -2413
- package/dist/vue-ui-sparkbar-B03ndcUe.js +0 -393
- package/dist/vue-ui-sparkline-DlTfNQj8.js +0 -1547
- package/dist/vue-ui-sparkstackbar-DrmiWFlw.js +0 -662
- package/dist/vue-ui-stackline-QzQQ7lTy.js +0 -2419
- package/dist/vue-ui-table-Q3brrivC.js +0 -1338
- package/dist/vue-ui-thermometer-Bg0RR6m4.js +0 -763
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +0 -1362
- package/dist/vue-ui-xy-canvas-BfgeE3TW.js +0 -1790
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { At as t, C as n, E as r, G as i, Gt as a, K as o, Nt as s, Q as c, Xt as ee, Y as l, et as te, ft as ne, i as re, qt as ie, r as ae, t as oe, x as se } from "./lib-CnHx5WfV.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-B-X_Pub0.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-D8NuRneO.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-CNdXiUfZ.js";
|
|
10
|
+
import { n as ge } from "./Title-Cr3jP7Qd.js";
|
|
11
|
+
import { t as _e } from "./Shape-B5ksaGa1.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-5VQGLnmx.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-Oo3IsX3-.js").then((e) => e.n)), yt = g(() => import("./BaseIcon-CDTIUIKV.js").then((e) => e.n)), bt = g(() => import("./DataTable-ByZy5gt1.js")), xt = g(() => import("./PackageVersion-BoTvk0i5.js").then((e) => e.t)), St = g(() => import("./PenAndPaper-CLaZJl6K.js").then((e) => e.t)), Ct = g(() => import("./UserOptions-BUQOnoPR.js").then((e) => e.n)), wt = g(() => import("./BaseDraggableDialog-CdkCqtag.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(o()), 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(() => ie({
|
|
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: ie({
|
|
209
209
|
defaultConfig: B.value,
|
|
210
210
|
userConfig: Ut.value
|
|
211
211
|
})
|
|
@@ -230,7 +230,7 @@ var Be = /* @__PURE__ */ e({ default: () => vt }), Ve = ["id"], He = ["id"], Ue
|
|
|
230
230
|
});
|
|
231
231
|
return {
|
|
232
232
|
...r,
|
|
233
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
233
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || s
|
|
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 (t(O.dataset)) {
|
|
245
|
+
te({
|
|
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 = ne({
|
|
253
253
|
datasetObject: O.dataset,
|
|
254
254
|
requiredAttributes: ["matrix"]
|
|
255
255
|
});
|
|
256
256
|
if (e.length) {
|
|
257
257
|
e.forEach((e) => {
|
|
258
|
-
|
|
258
|
+
te({
|
|
259
259
|
componentName: "VueUiChord",
|
|
260
260
|
type: "datasetAttribute",
|
|
261
261
|
property: e,
|
|
@@ -312,41 +312,41 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].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(() => n(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) => se(e)) : H.value.matrix.map((e, t) => sn.value[t] || s[t] || s[t % s.length])
|
|
322
322
|
}));
|
|
323
323
|
function ln(e, t) {
|
|
324
|
-
let
|
|
325
|
-
for (let t = 0; t <
|
|
326
|
-
let s = (2 * Math.PI - t *
|
|
327
|
-
for (let e = 0; e <
|
|
328
|
-
let
|
|
324
|
+
let n = e.length, r = K.value.inner, i = Array(n).fill(0), a = 0;
|
|
325
|
+
for (let t = 0; t < n; t += 1) for (let r = 0; r < n; r += 1) i[t] += e[t][r], a += e[t][r];
|
|
326
|
+
let s = (2 * Math.PI - t * n) / a, c = [], ee = 0;
|
|
327
|
+
for (let e = 0; e < n; e += 1) {
|
|
328
|
+
let n = ee, r = n + i[e] * s;
|
|
329
329
|
c.push({
|
|
330
330
|
index: e,
|
|
331
331
|
pattern: `pattern_${A.value}_${e}`,
|
|
332
|
-
startAngle:
|
|
333
|
-
endAngle:
|
|
332
|
+
startAngle: n,
|
|
333
|
+
endAngle: r,
|
|
334
334
|
name: q.value.labels[e],
|
|
335
|
-
id:
|
|
335
|
+
id: o(),
|
|
336
336
|
color: q.value.colors[e],
|
|
337
|
-
proportion:
|
|
338
|
-
}), ee =
|
|
337
|
+
proportion: i[e] / a
|
|
338
|
+
}), ee = r + t;
|
|
339
339
|
}
|
|
340
340
|
let l = [];
|
|
341
|
-
for (let t = 0; t <
|
|
341
|
+
for (let t = 0; t < n; 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 i = c[t].startAngle;
|
|
348
348
|
for (let { j: e, v: a } of n) {
|
|
349
|
-
let n =
|
|
349
|
+
let n = i, o = n + a * s;
|
|
350
350
|
l.push({
|
|
351
351
|
index: t,
|
|
352
352
|
subIndex: e,
|
|
@@ -358,9 +358,9 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
358
358
|
groupId: c[t].id,
|
|
359
359
|
groupColor: q.value.colors[t],
|
|
360
360
|
midAngle: (n + o) / 2,
|
|
361
|
-
midBaseX: Math.cos((n + o) / 2 - Math.PI / 2) *
|
|
362
|
-
midBaseY: Math.sin((n + o) / 2 - Math.PI / 2) *
|
|
363
|
-
}),
|
|
361
|
+
midBaseX: Math.cos((n + o) / 2 - Math.PI / 2) * r,
|
|
362
|
+
midBaseY: Math.sin((n + o) / 2 - Math.PI / 2) * r
|
|
363
|
+
}), i = o;
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
let te = [];
|
|
@@ -369,7 +369,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
369
369
|
te.push({
|
|
370
370
|
source: e,
|
|
371
371
|
target: t,
|
|
372
|
-
id:
|
|
372
|
+
id: o()
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
return {
|
|
@@ -496,7 +496,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
496
496
|
bn.value = !1;
|
|
497
497
|
}
|
|
498
498
|
function Dn(e) {
|
|
499
|
-
return
|
|
499
|
+
return re(B.value.style.chart.ribbons.labels.formatter, e, l({
|
|
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[${i}] = [${Array.isArray(n[i]) ? n[i].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 = r([
|
|
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) : c({
|
|
636
636
|
csvContent: n,
|
|
637
637
|
title: B.value.style.chart.title.text || "vue-ui-chord"
|
|
638
638
|
});
|
|
@@ -656,7 +656,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].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 ? l({
|
|
660
660
|
p: " (",
|
|
661
661
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
662
662
|
s: "%)",
|
|
@@ -1037,7 +1037,7 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].toString() : "invalid"}]`),
|
|
|
1037
1037
|
"style"
|
|
1038
1038
|
])) : p("", !0),
|
|
1039
1039
|
(x(), m("svg", {
|
|
1040
|
-
xmlns: E(
|
|
1040
|
+
xmlns: E(oe),
|
|
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[${i}] = [${Array.isArray(n[i]) ? n[i].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(ae)(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(l)({
|
|
1246
1246
|
p: " (",
|
|
1247
1247
|
v: isNaN(e.proportion) ? 0 : e.proportion * 100,
|
|
1248
1248
|
s: "%)",
|
|
@@ -1259,8 +1259,8 @@ dataset.matrix[${i}] = [${Array.isArray(n[i]) ? n[i].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(i)({
|
|
1263
|
+
content: E(ee)(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,
|