vue-data-ui 3.1.18 → 3.1.19-next.1
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-BC5klzOh.js → Arrow-cyyFTTnm.js} +7 -7
- package/dist/{BaseDraggableDialog-CkjMZyIs.js → BaseDraggableDialog-Bf6A6G_f.js} +2 -2
- package/dist/{BaseIcon-BPiT94Lb.js → BaseIcon-D2f9w5Z5.js} +1 -1
- package/dist/{ColorPicker-bx5e2RB2.js → ColorPicker-gaAecgEC.js} +6 -6
- package/dist/{DataTable-CywujQw9.js → DataTable-xISHA7Pu.js} +2 -2
- package/dist/{Legend-h35dp0Qf.js → Legend-_Rv594VS.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CvnlQ378.js → NonSvgPenAndPaper-DiM4-9ju.js} +3 -3
- package/dist/{PackageVersion-BzGzkGiC.js → PackageVersion-B6W-zkH-.js} +3 -3
- package/dist/{PenAndPaper-Deh70G9d.js → PenAndPaper-CtDMyIvW.js} +3 -3
- package/dist/{Shape-sVxD_SDm.js → Shape-BDy56-wS.js} +1 -1
- package/dist/{Slicer-CQB967He.js → Slicer-BgpOhmb6.js} +31 -31
- package/dist/{SparkTooltip-DFRSPT3_.js → SparkTooltip-DOFGBHJ-.js} +1 -1
- package/dist/{Title-B_WMW2Bp.js → Title-pI68ZJsq.js} +1 -1
- package/dist/{Tooltip-Db9jy0Iu.js → Tooltip-Clf2K3CF.js} +1 -1
- package/dist/{UserOptions-CtECQwBN.js → UserOptions-Bn3u4JQu.js} +2 -2
- package/dist/components/arrow.js +5 -0
- package/dist/components/vue-ui-3d-bar.js +5 -0
- package/dist/components/vue-ui-accordion.js +5 -0
- package/dist/components/vue-ui-age-pyramid.js +5 -0
- package/dist/components/vue-ui-bullet.js +5 -0
- package/dist/components/vue-ui-candlestick.js +5 -0
- package/dist/components/vue-ui-carousel-table.js +5 -0
- package/dist/components/vue-ui-chestnut.js +5 -0
- package/dist/components/vue-ui-chord.js +5 -0
- package/dist/components/vue-ui-circle-pack.js +5 -0
- package/dist/components/vue-ui-cursor.js +5 -0
- package/dist/components/vue-ui-dashboard.js +5 -0
- package/dist/components/vue-ui-digits.js +5 -0
- package/dist/components/vue-ui-donut-evolution.js +5 -0
- package/dist/components/vue-ui-donut.js +5 -0
- package/dist/components/vue-ui-dumbbell.js +5 -0
- package/dist/components/vue-ui-flow.js +5 -0
- package/dist/components/vue-ui-funnel.js +5 -0
- package/dist/components/vue-ui-galaxy.js +5 -0
- package/dist/components/vue-ui-gauge.js +5 -0
- package/dist/components/vue-ui-gizmo.js +5 -0
- package/dist/components/vue-ui-heatmap.js +5 -0
- package/dist/components/vue-ui-history-plot.js +5 -0
- package/dist/components/vue-ui-horizontal-bar.js +5 -0
- package/dist/components/vue-ui-icon.js +5 -0
- package/dist/components/vue-ui-kpi.js +5 -0
- package/dist/components/vue-ui-mini-loader.js +5 -0
- package/dist/components/vue-ui-molecule.js +5 -0
- package/dist/components/vue-ui-mood-radar.js +5 -0
- package/dist/components/vue-ui-nested-donuts.js +5 -0
- package/dist/components/vue-ui-onion.js +5 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +5 -0
- package/dist/components/vue-ui-pattern.js +5 -0
- package/dist/components/vue-ui-quadrant.js +5 -0
- package/dist/components/vue-ui-quick-chart.js +5 -0
- package/dist/components/vue-ui-radar.js +5 -0
- package/dist/components/vue-ui-rating.js +5 -0
- package/dist/components/vue-ui-relation-circle.js +5 -0
- package/dist/components/vue-ui-ridgeline.js +5 -0
- package/dist/components/vue-ui-rings.js +5 -0
- package/dist/components/vue-ui-scatter.js +5 -0
- package/dist/components/vue-ui-skeleton.js +5 -0
- package/dist/components/vue-ui-smiley.js +5 -0
- package/dist/components/vue-ui-spark-trend.js +5 -0
- package/dist/components/vue-ui-sparkbar.js +5 -0
- package/dist/components/vue-ui-sparkgauge.js +5 -0
- package/dist/components/vue-ui-sparkhistogram.js +5 -0
- package/dist/components/vue-ui-sparkline.js +5 -0
- package/dist/components/vue-ui-sparkstackbar.js +5 -0
- package/dist/components/vue-ui-stackbar.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +5 -0
- package/dist/components/vue-ui-table-heatmap.js +5 -0
- package/dist/components/vue-ui-table-sparkline.js +5 -0
- package/dist/components/vue-ui-table.js +5 -0
- package/dist/components/vue-ui-thermometer.js +5 -0
- package/dist/components/vue-ui-timer.js +5 -0
- package/dist/components/vue-ui-tiremarks.js +5 -0
- package/dist/components/vue-ui-treemap.js +5 -0
- package/dist/components/vue-ui-vertical-bar.js +5 -0
- package/dist/components/vue-ui-waffle.js +5 -0
- package/dist/components/vue-ui-wheel.js +5 -0
- package/dist/components/vue-ui-word-cloud.js +5 -0
- package/dist/components/vue-ui-world.js +5 -0
- package/dist/components/vue-ui-xy-canvas.js +5 -0
- package/dist/components/vue-ui-xy.js +5 -0
- package/dist/{dom-to-png-BHpS3cMi.js → dom-to-png-CSg_eTqL.js} +1 -1
- package/dist/{img-BArHHegM.js → img-CH7J0fYg.js} +1 -1
- package/dist/lib-p5pfHmOX.js +1882 -0
- package/dist/{pdf-D1L3r23x.js → pdf-Wd2BQz4D.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/themes-D3cUNuKw.js +53 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/vue-data-ui.d.ts +71 -21
- package/dist/types/vue-ui-3d-bar.d.ts +18 -0
- package/dist/types/vue-ui-accordion.d.ts +12 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +21 -0
- package/dist/types/vue-ui-bullet.d.ts +16 -0
- package/dist/types/vue-ui-candlestick.d.ts +16 -0
- package/dist/types/vue-ui-carousel-table.d.ts +14 -0
- package/dist/types/vue-ui-chestnut.d.ts +17 -0
- package/dist/types/vue-ui-chord.d.ts +19 -0
- package/dist/types/vue-ui-circle-pack.d.ts +17 -0
- package/dist/types/vue-ui-cursor.d.ts +7 -0
- package/dist/types/vue-ui-dashboard.d.ts +14 -0
- package/dist/types/vue-ui-digits.d.ts +10 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +17 -0
- package/dist/types/vue-ui-donut.d.ts +18 -0
- package/dist/types/vue-ui-dumbbell.d.ts +18 -0
- package/dist/types/vue-ui-flow.d.ts +18 -0
- package/dist/types/vue-ui-funnel.d.ts +15 -0
- package/dist/types/vue-ui-galaxy.d.ts +18 -0
- package/dist/types/vue-ui-gauge.d.ts +16 -0
- package/dist/types/vue-ui-gizmo.d.ts +14 -0
- package/dist/types/vue-ui-heatmap.d.ts +17 -0
- package/dist/types/vue-ui-history-plot.d.ts +19 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +19 -0
- package/dist/types/vue-ui-icon.d.ts +16 -0
- package/dist/types/vue-ui-kpi.d.ts +13 -0
- package/dist/types/vue-ui-mini-loader.d.ts +13 -0
- package/dist/types/vue-ui-molecule.d.ts +17 -0
- package/dist/types/vue-ui-mood-radar.d.ts +17 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +18 -0
- package/dist/types/vue-ui-onion.d.ts +18 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +20 -0
- package/dist/types/vue-ui-pattern.d.ts +17 -0
- package/dist/types/vue-ui-quadrant.d.ts +20 -0
- package/dist/types/vue-ui-quick-chart.d.ts +16 -0
- package/dist/types/vue-ui-radar.d.ts +22 -0
- package/dist/types/vue-ui-rating.d.ts +15 -0
- package/dist/types/vue-ui-relation-circle.d.ts +17 -0
- package/dist/types/vue-ui-ridgeline.d.ts +20 -0
- package/dist/types/vue-ui-rings.d.ts +17 -0
- package/dist/types/vue-ui-scatter.d.ts +19 -0
- package/dist/types/vue-ui-skeleton.d.ts +12 -0
- package/dist/types/vue-ui-smiley.d.ts +14 -0
- package/dist/types/vue-ui-spark-trend.d.ts +13 -0
- package/dist/types/vue-ui-sparkbar.d.ts +15 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +14 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +15 -0
- package/dist/types/vue-ui-sparkline.d.ts +15 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +16 -0
- package/dist/types/vue-ui-stackbar.d.ts +18 -0
- package/dist/types/vue-ui-strip-plot.d.ts +19 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +14 -0
- package/dist/types/vue-ui-table.d.ts +17 -0
- package/dist/types/vue-ui-thermometer.d.ts +15 -0
- package/dist/types/vue-ui-timer.d.ts +12 -0
- package/dist/types/vue-ui-tiremarks.d.ts +15 -0
- package/dist/types/vue-ui-treemap.d.ts +18 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +19 -0
- package/dist/types/vue-ui-waffle.d.ts +18 -0
- package/dist/types/vue-ui-wheel.d.ts +15 -0
- package/dist/types/vue-ui-word-cloud.d.ts +17 -0
- package/dist/types/vue-ui-world.d.ts +17 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +15 -0
- package/dist/types/vue-ui-xy.d.ts +24 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DeqXeTNw.js → useAutoSizeLabelsInsideViewbox-VqESrzQg.js} +7 -7
- package/dist/useNestedProp-DF7e2h1z.js +6645 -0
- package/dist/{usePrinter-nFj0xF0a.js → usePrinter-Yeu5jOfm.js} +2 -2
- package/dist/{vue-data-ui-DcBYykse.js → vue-data-ui-DfcfqSDl.js} +64 -64
- package/dist/vue-data-ui.js +243 -85
- package/dist/{vue-ui-3d-bar-D4rc8PD3.js → vue-ui-3d-bar-DKkCWxob.js} +58 -57
- package/dist/{vue-ui-accordion-7cfJUVx5.js → vue-ui-accordion-D-L73-T2.js} +4 -4
- package/dist/{vue-ui-age-pyramid-BXMIUNB_.js → vue-ui-age-pyramid-gGF4DSOi.js} +28 -27
- package/dist/{vue-ui-annotator-aCDhQ-m2.js → vue-ui-annotator-SoAGIAm-.js} +7 -6
- package/dist/{vue-ui-bullet-Cd_iix-z.js → vue-ui-bullet-Coqi_swO.js} +28 -27
- package/dist/{vue-ui-candlestick-C-TTTgiW.js → vue-ui-candlestick-C78EYmhY.js} +32 -31
- package/dist/{vue-ui-carousel-table-C58J4zpm.js → vue-ui-carousel-table-B7i_eOe9.js} +25 -25
- package/dist/{vue-ui-chestnut-C7u6GW-T.js → vue-ui-chestnut-QzsKNF-J.js} +41 -40
- package/dist/{vue-ui-chord-DxLU3Fg1.js → vue-ui-chord-BxiWe3MD.js} +61 -60
- package/dist/{vue-ui-circle-pack--a_KE7qz.js → vue-ui-circle-pack-C3TZdbF1.js} +75 -74
- package/dist/{vue-ui-cursor-DJQWAIj8.js → vue-ui-cursor-0muOlHSh.js} +3 -3
- package/dist/{vue-ui-dashboard-CIACUYB-.js → vue-ui-dashboard-Dh0EyLe8.js} +68 -68
- package/dist/{vue-ui-digits-CLV8h-P8.js → vue-ui-digits-DOUNtmB0.js} +3 -3
- package/dist/{vue-ui-donut-sO6G5oor.js → vue-ui-donut-DTJCIEig.js} +39 -38
- package/dist/{vue-ui-donut-evolution-XGJvBQIm.js → vue-ui-donut-evolution-DYJmrFDC.js} +81 -80
- package/dist/{vue-ui-dumbbell-Bi11rDL7.js → vue-ui-dumbbell-COm32YHr.js} +97 -96
- package/dist/{vue-ui-flow-RP2v-aZJ.js → vue-ui-flow-BD2XeR-d.js} +127 -126
- package/dist/{vue-ui-funnel-TVQXGyw7.js → vue-ui-funnel-Cy9J1JpW.js} +39 -38
- package/dist/{vue-ui-galaxy-CUURaWgH.js → vue-ui-galaxy-KyUZ5tNb.js} +53 -52
- package/dist/{vue-ui-gauge-hTRlwARA.js → vue-ui-gauge-BpXYJd5z.js} +43 -42
- package/dist/{vue-ui-gizmo-CZIgBvWV.js → vue-ui-gizmo-DM3wSOOe.js} +6 -6
- package/dist/{vue-ui-heatmap-RKtFMgDP.js → vue-ui-heatmap-B2NzGPtL.js} +98 -97
- package/dist/{vue-ui-history-plot-fbTG7Mke.js → vue-ui-history-plot-BTnau6bc.js} +105 -104
- package/dist/{vue-ui-kpi-CfX-zUDS.js → vue-ui-kpi-D7zdt7-g.js} +15 -15
- package/dist/{vue-ui-mini-loader-C1nANuMy.js → vue-ui-mini-loader-CteWqKM_.js} +3 -3
- package/dist/{vue-ui-molecule-BU7T1ysb.js → vue-ui-molecule-8oQQTCN2.js} +54 -53
- package/dist/{vue-ui-mood-radar-Cb8cFWzE.js → vue-ui-mood-radar-B3ZrQSqP.js} +30 -29
- package/dist/{vue-ui-nested-donuts-DTZD8BTA.js → vue-ui-nested-donuts-BoUb_OX8.js} +69 -68
- package/dist/{vue-ui-onion-5xmlEUsJ.js → vue-ui-onion-xprTPjVq.js} +33 -32
- package/dist/{vue-ui-parallel-coordinate-plot-Wc0TbyJH.js → vue-ui-parallel-coordinate-plot-Cpzi3BO0.js} +61 -60
- package/dist/{vue-ui-pattern-DsYgSZWn.js → vue-ui-pattern-D5pNvoQp.js} +1 -1
- package/dist/{vue-ui-quadrant-BC99Cua7.js → vue-ui-quadrant-CHTnDwZ7.js} +35 -34
- package/dist/{vue-ui-quick-chart-Cbv2UcEu.js → vue-ui-quick-chart-zJyIT4di.js} +30 -29
- package/dist/{vue-ui-radar-B-ey_fDA.js → vue-ui-radar-B5QRDHJ1.js} +90 -89
- package/dist/{vue-ui-rating-BNCKLcCa.js → vue-ui-rating-CjoKP6-5.js} +9 -9
- package/dist/{vue-ui-relation-circle-CYFQcAgc.js → vue-ui-relation-circle-DStHH_sz.js} +44 -43
- package/dist/{vue-ui-ridgeline-B_6K1FTc.js → vue-ui-ridgeline-VI1I1k9W.js} +82 -81
- package/dist/{vue-ui-rings-D_BTgxYc.js → vue-ui-rings-D26TgYmU.js} +74 -73
- package/dist/{vue-ui-scatter-B69SYOfv.js → vue-ui-scatter-9CX5JEVI.js} +121 -120
- package/dist/{vue-ui-skeleton-CpkwgALO.js → vue-ui-skeleton-0yto3ZRt.js} +5 -5
- package/dist/{vue-ui-smiley-t16dEIoQ.js → vue-ui-smiley-YRRY-yQp.js} +28 -28
- package/dist/{vue-ui-spark-trend-DskdjYw4.js → vue-ui-spark-trend-13xDAi4U.js} +47 -46
- package/dist/{vue-ui-sparkbar-C-evQIq2.js → vue-ui-sparkbar-DBMeKvSW.js} +16 -15
- package/dist/{vue-ui-sparkgauge-DycVSHAs.js → vue-ui-sparkgauge-febkbzOk.js} +32 -31
- package/dist/{vue-ui-sparkhistogram-CZLnlSUD.js → vue-ui-sparkhistogram-rc9uWj4C.js} +22 -21
- package/dist/{vue-ui-sparkline-C1nZRVTa.js → vue-ui-sparkline-BpZKuk92.js} +131 -130
- package/dist/{vue-ui-sparkstackbar-CUUeuwAI.js → vue-ui-sparkstackbar-DuOsScHl.js} +28 -27
- package/dist/{vue-ui-stackbar-D27Wq8Y4.js → vue-ui-stackbar-BsdEyuPC.js} +77 -76
- package/dist/{vue-ui-strip-plot-D-srKJUr.js → vue-ui-strip-plot-Dem6Qr7N.js} +52 -51
- package/dist/{vue-ui-table-LcImk124.js → vue-ui-table-Dds0EE_Q.js} +9 -8
- package/dist/{vue-ui-table-heatmap-BfXe_f0K.js → vue-ui-table-heatmap-iu6l-6rW.js} +30 -29
- package/dist/{vue-ui-table-sparkline-DyrnPNGv.js → vue-ui-table-sparkline-DcHLIhbA.js} +20 -19
- package/dist/{vue-ui-thermometer-DxRDmz-L.js → vue-ui-thermometer-DZwSnX7w.js} +66 -65
- package/dist/{vue-ui-timer-Bbzb09O8.js → vue-ui-timer-BVmo70Ts.js} +31 -31
- package/dist/{vue-ui-tiremarks-DWy1Dkub.js → vue-ui-tiremarks-Cr6Fy7Sq.js} +30 -29
- package/dist/{vue-ui-treemap-C3Ek_E4n.js → vue-ui-treemap-DiKGxMUR.js} +32 -31
- package/dist/{vue-ui-vertical-bar-CV3Mc1cX.js → vue-ui-vertical-bar-D3_W8WLN.js} +54 -53
- package/dist/{vue-ui-waffle-D2mQJdcV.js → vue-ui-waffle-CoVrrxzt.js} +76 -75
- package/dist/{vue-ui-wheel-zbog7bII.js → vue-ui-wheel-Cwl-WsK2.js} +85 -84
- package/dist/{vue-ui-word-cloud-D9iZRkQP.js → vue-ui-word-cloud-L-58-uVD.js} +49 -48
- package/dist/{vue-ui-world-D5dR5VdK.js → vue-ui-world-CaA-eKMJ.js} +19 -19
- package/dist/{vue-ui-xy-Cll76_i9.js → vue-ui-xy-Bm2SYaTT.js} +135 -134
- package/dist/{vue-ui-xy-canvas-DJVXAfpL.js → vue-ui-xy-canvas-2Vg9eVqi.js} +166 -165
- package/package.json +14 -11
- package/dist/index-smzxfsyV.js +0 -8729
- package/dist/types/vue-data-ui.d.cts +0 -9435
- package/dist/useNestedProp-DeKmJzsE.js +0 -13
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { useCssVars as dt, defineAsyncComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
1
|
+
import { useCssVars as dt, defineAsyncComponent as q, computed as k, ref as z, toRefs as vt, watch as fe, onMounted as yt, nextTick as be, createElementBlock as o, openBlock as a, unref as u, normalizeStyle as y, normalizeClass as w, createBlock as le, createCommentVNode as h, renderSlot as F, createSlots as Ve, withCtx as P, normalizeProps as ae, guardReactiveProps as oe, createVNode as pe, createElementVNode as n, toDisplayString as c, Fragment as g, renderList as _, createTextVNode as Z, resolveDynamicComponent as ht, mergeProps as ft, withKeys as bt } from "vue";
|
|
2
|
+
import { c as pt, t as gt, b as _t, p as O, e as xt, g as ge, f as se, h as _e, o as mt, X as kt, s as A, i as Be, a as E, d as S, G as Me, n as je, u as wt, v as J, w as R, x as Ct, y as $t } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { u as Tt, a as De } from "./useNestedProp-DF7e2h1z.js";
|
|
4
|
+
import { u as zt, B as At } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as St } from "./usePrinter-Yeu5jOfm.js";
|
|
6
|
+
import { u as Nt } from "./useTableResponsive-Cbx-ACcP.js";
|
|
7
|
+
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as It } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Lt from "./img-CH7J0fYg.js";
|
|
10
|
+
import { t as Pt } from "./themes-D3cUNuKw.js";
|
|
10
11
|
import { _ as Ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
12
|
const Rt = ["id"], Vt = {
|
|
12
13
|
key: 1,
|
|
13
14
|
ref: "noTitle",
|
|
14
15
|
class: "vue-data-ui-no-title-space",
|
|
15
16
|
style: "height:36px; width: 100%;background:transparent"
|
|
16
|
-
}, Bt = ["xmlns", "viewBox"], Mt = ["width", "height"], jt = { key: 1 }, Dt = ["fill", "font-weight", "font-size", "x", "y"], Xt = ["fill", "font-weight", "font-size", "x", "y"], Gt = ["id"], Et = ["stop-color"], Ut = ["stop-color"], Wt = ["id"], Yt = ["stop-color"],
|
|
17
|
+
}, Bt = ["xmlns", "viewBox"], Mt = ["width", "height"], jt = { key: 1 }, Dt = ["fill", "font-weight", "font-size", "x", "y"], Xt = ["fill", "font-weight", "font-size", "x", "y"], Gt = ["id"], Et = ["stop-color"], Ut = ["stop-color"], Wt = ["id"], Yt = ["stop-color"], Ht = ["stop-color"], qt = ["id"], Kt = ["stop-color"], Zt = ["stop-color"], Jt = ["stop-color"], Qt = ["id"], el = ["stop-color"], tl = ["stop-color"], ll = ["stop-color"], al = ["id"], ol = ["stop-color"], sl = ["stop-color"], ul = ["stop-color"], nl = { key: 2 }, rl = ["x", "y", "font-size", "font-weight", "fill"], il = ["x", "y", "font-size", "font-weight", "fill"], cl = ["id"], dl = ["stop-color"], vl = ["stop-color"], yl = ["d", "stroke", "fill"], hl = ["cx", "cy", "r", "fill"], fl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onClick"], bl = { key: 3 }, pl = ["x", "y", "font-size", "fill", "onClick"], gl = { key: 0 }, _l = ["x", "y", "fill", "font-size", "font-weight"], xl = ["x", "y", "height", "width", "fill", "rx", "onClick"], ml = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width", "onClick"], kl = { key: 4 }, wl = ["x", "y", "fill", "font-size", "onClick"], Cl = ["d", "stroke"], $l = ["fill", "cx", "cy", "r", "onClick"], Tl = { key: 5 }, zl = ["x", "y", "font-size", "font-weight", "fill"], Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = ["y", "height", "width"], Nl = { style: { width: "100%", height: "100%", display: "flex", "align-items": "center", "justify-content": "center", "flex-direction": "column" } }, Fl = { style: { display: "flex", "align-items": "center", "justify-content": "center", gap: "12px", "flex-wrap": "wrap", "flex-direction": "row" } }, Il = {
|
|
17
18
|
viewBox: "0 0 20 20",
|
|
18
19
|
height: "16",
|
|
19
20
|
width: "16"
|
|
@@ -21,7 +22,7 @@ const Rt = ["id"], Vt = {
|
|
|
21
22
|
viewBox: "0 0 20 20",
|
|
22
23
|
height: "16",
|
|
23
24
|
width: "16"
|
|
24
|
-
}, Ml = ["fill"], jl = ["cx", "cy", "fill"], Dl = ["d", "stroke"], Xl = ["cx", "cy", "fill"], Gl = ["d", "stroke"], El = ["cx", "cy", "fill"], Ul = ["cx", "cy", "fill"], Wl = ["x", "y", "fill", "font-size", "font-weight"], Yl = ["x", "y", "fill", "font-size", "font-weight"],
|
|
25
|
+
}, Ml = ["fill"], jl = ["cx", "cy", "fill"], Dl = ["d", "stroke"], Xl = ["cx", "cy", "fill"], Gl = ["d", "stroke"], El = ["cx", "cy", "fill"], Ul = ["cx", "cy", "fill"], Wl = ["x", "y", "fill", "font-size", "font-weight"], Yl = ["x", "y", "fill", "font-size", "font-weight"], Hl = ["x", "text-anchor", "y", "fill", "font-size"], ql = ["x", "text-anchor", "y", "fill", "font-size"], Kl = ["x", "text-anchor", "y", "fill", "font-size"], Zl = ["x", "text-anchor", "y", "fill", "font-size"], Jl = ["x", "text-anchor", "y", "fill", "font-size"], Ql = ["x", "y", "font-size", "fill"], ea = ["x", "y", "font-size", "fill"], ta = ["x", "y", "font-size", "fill"], la = {
|
|
25
26
|
key: 4,
|
|
26
27
|
class: "vue-data-ui-watermark"
|
|
27
28
|
}, aa = {
|
|
@@ -49,7 +50,7 @@ const Rt = ["id"], Vt = {
|
|
|
49
50
|
dt((l) => ({
|
|
50
51
|
"3e45980e": l.tdo
|
|
51
52
|
}));
|
|
52
|
-
const xe =
|
|
53
|
+
const xe = q(() => import("./BaseIcon-D2f9w5Z5.js")), Ue = q(() => import("./vue-ui-accordion-D-L73-T2.js")), We = q(() => import("./PenAndPaper-CtDMyIvW.js")), Ye = q(() => import("./UserOptions-Bn3u4JQu.js")), He = q(() => import("./PackageVersion-B6W-zkH-.js")), qe = q(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), { vue_ui_chestnut: Ke } = Tt(), M = Xe, me = k(() => !!M.dataset && M.dataset.length), C = z(pt()), U = z(null), ke = z(0), K = z(null), ue = z(null), e = z(ie()), { loading: we, FINAL_DATASET: ne } = zt({
|
|
53
54
|
...vt(M),
|
|
54
55
|
FINAL_CONFIG: e,
|
|
55
56
|
prepareConfig: ie,
|
|
@@ -131,7 +132,7 @@ const Rt = ["id"], Vt = {
|
|
|
131
132
|
]
|
|
132
133
|
}
|
|
133
134
|
],
|
|
134
|
-
skeletonConfig:
|
|
135
|
+
skeletonConfig: gt({
|
|
135
136
|
defaultConfig: e.value,
|
|
136
137
|
userConfig: {
|
|
137
138
|
userOptions: { show: !1 },
|
|
@@ -159,7 +160,7 @@ const Rt = ["id"], Vt = {
|
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
})
|
|
162
|
-
}), { userOptionsVisible: re, setUserOptionsVisibility: Ce, keepUserOptionState: $e } =
|
|
163
|
+
}), { userOptionsVisible: re, setUserOptionsVisibility: Ce, keepUserOptionState: $e } = Ft({ config: e.value }), { svgRef: Te } = It({ config: e.value.style.chart.layout.title });
|
|
163
164
|
function ie() {
|
|
164
165
|
const l = De({
|
|
165
166
|
userConfig: M.config,
|
|
@@ -167,20 +168,20 @@ const Rt = ["id"], Vt = {
|
|
|
167
168
|
});
|
|
168
169
|
return l.theme ? {
|
|
169
170
|
...De({
|
|
170
|
-
userConfig:
|
|
171
|
+
userConfig: Pt.vue_ui_chestnut[l.theme] || M.config,
|
|
171
172
|
defaultConfig: l
|
|
172
173
|
}),
|
|
173
|
-
customPalette:
|
|
174
|
+
customPalette: _t[l.theme] || O
|
|
174
175
|
} : l;
|
|
175
176
|
}
|
|
176
177
|
fe(() => M.config, (l) => {
|
|
177
178
|
e.value = ie(), re.value = !e.value.userOptions.showOnChartHover, j.value.showTable = e.value.table.show, Pe();
|
|
178
179
|
}, { deep: !0 });
|
|
179
|
-
const { isPrinting: ze, isImaging: Ae, generatePdf: Se, generateImage: Ne } =
|
|
180
|
+
const { isPrinting: ze, isImaging: Ae, generatePdf: Se, generateImage: Ne } = St({
|
|
180
181
|
elementId: `vue-ui-chestnut_${C.value}`,
|
|
181
182
|
fileName: e.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
182
183
|
options: e.value.userOptions.print
|
|
183
|
-
}), Ze = k(() => e.value.userOptions.show), ce = k(() =>
|
|
184
|
+
}), Ze = k(() => e.value.userOptions.show), ce = k(() => xt(e.value.customPalette)), j = z({
|
|
184
185
|
showTable: e.value.table.show
|
|
185
186
|
});
|
|
186
187
|
fe(e, () => {
|
|
@@ -356,7 +357,7 @@ const Rt = ["id"], Vt = {
|
|
|
356
357
|
});
|
|
357
358
|
const Q = k(() => e.value.debug);
|
|
358
359
|
function Pe() {
|
|
359
|
-
|
|
360
|
+
mt(M.dataset) && se({
|
|
360
361
|
componentName: "VueUiChestnut",
|
|
361
362
|
type: "dataset",
|
|
362
363
|
debug: Q.value
|
|
@@ -396,13 +397,13 @@ const Rt = ["id"], Vt = {
|
|
|
396
397
|
f.nutToBranch,
|
|
397
398
|
f.nutToRoot,
|
|
398
399
|
f.nutToTotal
|
|
399
|
-
]), p = i.concat([t]).concat(s), b =
|
|
400
|
-
l ? l(b) :
|
|
400
|
+
]), p = i.concat([t]).concat(s), b = Ct(p);
|
|
401
|
+
l ? l(b) : $t({ csvContent: b, title: e.value.style.chart.layout.title.text || "vue-ui-chestnut" });
|
|
401
402
|
});
|
|
402
403
|
}
|
|
403
|
-
const
|
|
404
|
+
const H = z(!1);
|
|
404
405
|
function Oe(l) {
|
|
405
|
-
|
|
406
|
+
H.value = l, ke.value += 1;
|
|
406
407
|
}
|
|
407
408
|
function Re() {
|
|
408
409
|
j.value.showTable = !j.value.showTable;
|
|
@@ -413,7 +414,7 @@ const Rt = ["id"], Vt = {
|
|
|
413
414
|
}
|
|
414
415
|
async function rt({ scale: l = 2 } = {}) {
|
|
415
416
|
if (!U.value) return;
|
|
416
|
-
const { width: i, height: t } = U.value.getBoundingClientRect(), s = i / t, { imageUri: p, base64: b } = await
|
|
417
|
+
const { width: i, height: t } = U.value.getBoundingClientRect(), s = i / t, { imageUri: p, base64: b } = await Lt({ domElement: U.value, base64: !0, img: !0, scale: l });
|
|
417
418
|
return {
|
|
418
419
|
imageUri: p,
|
|
419
420
|
base64: b,
|
|
@@ -435,14 +436,14 @@ const Rt = ["id"], Vt = {
|
|
|
435
436
|
const te = k(() => {
|
|
436
437
|
const l = e.value.table.useDialog && !e.value.table.show, i = j.value.showTable;
|
|
437
438
|
return {
|
|
438
|
-
component: l ?
|
|
439
|
+
component: l ? qe : Ue,
|
|
439
440
|
title: `${e.value.style.chart.layout.title.text}${e.value.style.chart.layout.title.subtitle.text ? `: ${e.value.style.chart.layout.title.subtitle.text}` : ""}`,
|
|
440
441
|
props: l ? {
|
|
441
442
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
442
443
|
color: e.value.table.th.color,
|
|
443
444
|
headerColor: e.value.table.th.color,
|
|
444
445
|
headerBg: e.value.table.th.backgroundColor,
|
|
445
|
-
isFullscreen:
|
|
446
|
+
isFullscreen: H.value,
|
|
446
447
|
fullscreenParent: U.value,
|
|
447
448
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
448
449
|
} : {
|
|
@@ -465,7 +466,7 @@ const Rt = ["id"], Vt = {
|
|
|
465
466
|
fe(() => j.value.showTable, async (l) => {
|
|
466
467
|
e.value.table.show || (l && e.value.table.useDialog && K.value ? (await be(), K.value.open()) : "close" in K.value && K.value.close());
|
|
467
468
|
});
|
|
468
|
-
const { isResponsive: ct } =
|
|
469
|
+
const { isResponsive: ct } = Nt(Fe, Je);
|
|
469
470
|
function he() {
|
|
470
471
|
j.value.showTable = !1, ue.value && ue.value.setTableIconState(!1);
|
|
471
472
|
}
|
|
@@ -479,7 +480,7 @@ const Rt = ["id"], Vt = {
|
|
|
479
480
|
toggleAnnotator: ye,
|
|
480
481
|
toggleFullscreen: Oe
|
|
481
482
|
}), (l, i) => (a(), o("div", {
|
|
482
|
-
class: w(`vue-ui-chestnut ${
|
|
483
|
+
class: w(`vue-ui-chestnut ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
483
484
|
ref_key: "chestnutChart",
|
|
484
485
|
ref: U,
|
|
485
486
|
id: `vue-ui-chestnut_${C.value}`,
|
|
@@ -510,7 +511,7 @@ const Rt = ["id"], Vt = {
|
|
|
510
511
|
hasXls: e.value.userOptions.buttons.csv,
|
|
511
512
|
hasTable: e.value.userOptions.buttons.table,
|
|
512
513
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
513
|
-
isFullscreen:
|
|
514
|
+
isFullscreen: H.value,
|
|
514
515
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
515
516
|
chartElement: U.value,
|
|
516
517
|
position: e.value.userOptions.position,
|
|
@@ -583,12 +584,12 @@ const Rt = ["id"], Vt = {
|
|
|
583
584
|
key: 3,
|
|
584
585
|
ref_key: "svgRef",
|
|
585
586
|
ref: Te,
|
|
586
|
-
xmlns: u(
|
|
587
|
-
class: w({ "vue-data-ui-fullscreen--on":
|
|
587
|
+
xmlns: u(kt),
|
|
588
|
+
class: w({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
588
589
|
viewBox: `0 0 ${r.value.width <= 0 ? 10 : r.value.width} ${r.value.height <= 0 ? 10 : r.value.height}`,
|
|
589
590
|
style: y(`overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
590
591
|
}, [
|
|
591
|
-
pe(u(
|
|
592
|
+
pe(u(He)),
|
|
592
593
|
l.$slots["chart-background"] ? (a(), o("foreignObject", {
|
|
593
594
|
key: 0,
|
|
594
595
|
x: 0,
|
|
@@ -655,7 +656,7 @@ const Rt = ["id"], Vt = {
|
|
|
655
656
|
n("stop", {
|
|
656
657
|
offset: "100%",
|
|
657
658
|
"stop-color": u(A)(u(Be)(t.color, 0.02), 100 - e.value.style.chart.layout.branches.gradientIntensity)
|
|
658
|
-
}, null, 8,
|
|
659
|
+
}, null, 8, Ht)
|
|
659
660
|
], 8, Wt))), 256)),
|
|
660
661
|
n("radialGradient", {
|
|
661
662
|
cx: "50%",
|
|
@@ -677,7 +678,7 @@ const Rt = ["id"], Vt = {
|
|
|
677
678
|
offset: "100%",
|
|
678
679
|
"stop-color": u(A)("#FFFFFF", 0)
|
|
679
680
|
}, null, 8, Jt)
|
|
680
|
-
], 8,
|
|
681
|
+
], 8, qt),
|
|
681
682
|
n("radialGradient", {
|
|
682
683
|
cx: "50%",
|
|
683
684
|
cy: "50%",
|
|
@@ -1008,7 +1009,7 @@ const Rt = ["id"], Vt = {
|
|
|
1008
1009
|
(a(!0), o(g, null, _(B.value, (t) => (a(), o("g", null, [
|
|
1009
1010
|
Y(t) ? (a(), o("path", {
|
|
1010
1011
|
key: 0,
|
|
1011
|
-
d: u(
|
|
1012
|
+
d: u(wt)(
|
|
1012
1013
|
t,
|
|
1013
1014
|
{
|
|
1014
1015
|
x: d.value.x2 + 24 + e.value.style.chart.layout.nuts.offsetX,
|
|
@@ -1100,7 +1101,7 @@ const Rt = ["id"], Vt = {
|
|
|
1100
1101
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
1101
1102
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1102
1103
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1103
|
-
}, " ⬤ ", 14,
|
|
1104
|
+
}, " ⬤ ", 14, Hl)) : h("", !0),
|
|
1104
1105
|
Y(t) ? (a(), o("text", {
|
|
1105
1106
|
key: 1,
|
|
1106
1107
|
x: u(R)(t, !0).x,
|
|
@@ -1110,7 +1111,7 @@ const Rt = ["id"], Vt = {
|
|
|
1110
1111
|
"font-size": e.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1111
1112
|
style: y(`font-weight:${e.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1112
1113
|
class: w(e.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1113
|
-
}, c(d.value.breakdown[s].name), 15,
|
|
1114
|
+
}, c(d.value.breakdown[s].name), 15, ql)) : h("", !0)
|
|
1114
1115
|
]))), 256)),
|
|
1115
1116
|
(a(!0), o(g, null, _(B.value, (t, s) => (a(), o("g", null, [
|
|
1116
1117
|
Y(t) ? (a(), o("text", {
|
|
@@ -1412,10 +1413,10 @@ const Rt = ["id"], Vt = {
|
|
|
1412
1413
|
key: "1"
|
|
1413
1414
|
} : void 0
|
|
1414
1415
|
]), 1040)) : h("", !0),
|
|
1415
|
-
u(we) ? (a(), le(
|
|
1416
|
+
u(we) ? (a(), le(At, { key: 7 })) : h("", !0)
|
|
1416
1417
|
], 46, Rt));
|
|
1417
1418
|
}
|
|
1418
|
-
},
|
|
1419
|
+
}, lo = /* @__PURE__ */ Ot(Ea, [["__scopeId", "data-v-68936f04"]]);
|
|
1419
1420
|
export {
|
|
1420
|
-
|
|
1421
|
+
lo as default
|
|
1421
1422
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { useCssVars as qt, defineAsyncComponent as W, ref as v, shallowRef as rt, toRefs as Ht, watch as xe, computed as $, onMounted as ut, onBeforeUnmount as it, createElementBlock as i, openBlock as r, unref as d, normalizeStyle as R, normalizeClass as F, createBlock as V, createCommentVNode as h, renderSlot as w, createElementVNode as I, createSlots as Ae, withCtx as x, normalizeProps as de, guardReactiveProps as he, withModifiers as ct, createVNode as fe, Fragment as z, renderList as q, mergeProps as vt, toDisplayString as H, Teleport as Qt, resolveDynamicComponent as Zt, createTextVNode as dt, nextTick as ht } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
2
|
+
import { c as Ie, t as Jt, b as Kt, p as ge, o as ea, f as ft, g as ta, e as aa, h as oa, X as la, G as na, d as _e, J as sa, ad as ra, x as ua, y as ia, a as ca } from "./lib-p5pfHmOX.js";
|
|
3
|
+
import { t as va, u as da } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ha, a as gt } from "./useNestedProp-DF7e2h1z.js";
|
|
5
|
+
import { u as fa, B as ga } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as ba } from "./usePrinter-Yeu5jOfm.js";
|
|
7
|
+
import { u as pa } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as ma } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import ya from "./img-CH7J0fYg.js";
|
|
10
|
+
import { _ as ka } from "./Shape-BDy56-wS.js";
|
|
11
|
+
import $a from "./Title-pI68ZJsq.js";
|
|
12
|
+
import { t as wa } from "./themes-D3cUNuKw.js";
|
|
13
|
+
import Ca from "./Legend-_Rv594VS.js";
|
|
13
14
|
import { _ as Ma } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "height"], Pa = { key: 1 }, Ta = ["id", "d"], Ba = { key: 2 }, Sa = ["transform"], Oa = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "fill", "stroke", "stroke-width"], Da = ["d", "fill"], Ea = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], Na = ["d", "fill", "stroke", "stroke-width"], Ra = ["d", "fill", "stroke", "stroke-width"], Fa = ["d", "fill", "stroke", "stroke-width"], za = { key: 0 }, Ua = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Xa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ja = ["transform", "fill", "text-anchor", "font-size", "font-weight"],
|
|
15
|
+
const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "height"], Pa = { key: 1 }, Ta = ["id", "d"], Ba = { key: 2 }, Sa = ["transform"], Oa = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "fill", "stroke", "stroke-width"], Da = ["d", "fill"], Ea = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick", "onMouseleave"], Na = ["d", "fill", "stroke", "stroke-width"], Ra = ["d", "fill", "stroke", "stroke-width"], Fa = ["d", "fill", "stroke", "stroke-width"], za = { key: 0 }, Ua = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Xa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Va = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ja = ["transform", "fill", "text-anchor", "font-size", "font-weight"], Ga = { key: 1 }, Ya = ["font-size", "font-weight", "fill"], Wa = ["href"], qa = ["transform", "text-anchor", "font-size", "font-weight", "fill", "innerHTML"], Ha = {
|
|
15
16
|
key: 4,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
18
|
}, Qa = ["id"], Za = ["onClick"], Ja = {
|
|
@@ -39,7 +40,7 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
39
40
|
qt((t) => ({
|
|
40
41
|
"9b041f44": t.slicerColor
|
|
41
42
|
}));
|
|
42
|
-
const yt = W(() => import("./vue-ui-accordion-
|
|
43
|
+
const yt = W(() => import("./vue-ui-accordion-D-L73-T2.js")), Pe = W(() => import("./BaseIcon-D2f9w5Z5.js")), kt = W(() => import("./DataTable-xISHA7Pu.js")), $t = W(() => import("./PackageVersion-B6W-zkH-.js")), wt = W(() => import("./PenAndPaper-CtDMyIvW.js")), Ct = W(() => import("./UserOptions-Bn3u4JQu.js")), Mt = W(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), { vue_ui_chord: xt } = ha(), S = bt, ne = mt, E = v(!!S.dataset && Object.hasOwn(S.dataset, "matrix")), k = v(Ie()), C = v(null), p = v(null), g = v(null), Te = v(0), O = v(null), Be = v(null), Se = v(null), Oe = v(null), Le = v(null), be = v(0), pe = v(0), me = v(0), Q = v(!1), U = rt(null), Z = rt(null), De = v(!1), J = v(null), ye = v(null), e = v($e()), { loading: Ee, FINAL_DATASET: M, manualLoading: K } = fa({
|
|
43
44
|
...Ht(S),
|
|
44
45
|
FINAL_CONFIG: e,
|
|
45
46
|
prepareConfig: $e,
|
|
@@ -58,7 +59,7 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
58
59
|
labels: [],
|
|
59
60
|
colors: ["#DBDBDB", "#C4C4C4", "#ADADAD", "#969696"]
|
|
60
61
|
},
|
|
61
|
-
skeletonConfig:
|
|
62
|
+
skeletonConfig: Jt({
|
|
62
63
|
defaultConfig: e.value,
|
|
63
64
|
userConfig: {
|
|
64
65
|
useCssAnimation: !1,
|
|
@@ -87,7 +88,7 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
})
|
|
90
|
-
}), { userOptionsVisible: ke, setUserOptionsVisibility: Ne, keepUserOptionState: Re } =
|
|
91
|
+
}), { userOptionsVisible: ke, setUserOptionsVisibility: Ne, keepUserOptionState: Re } = pa({ config: e.value }), { svgRef: ee } = ma({ config: e.value.style.chart.title }), { isPrinting: Fe, isImaging: ze, generatePdf: Ue, generateImage: Xe } = ba({
|
|
91
92
|
elementId: `chord_${k.value}`,
|
|
92
93
|
fileName: e.value.style.chart.title.text || "vue-ui-chord",
|
|
93
94
|
options: e.value.userOptions.print
|
|
@@ -101,10 +102,10 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
101
102
|
});
|
|
102
103
|
return t.theme ? {
|
|
103
104
|
...gt({
|
|
104
|
-
userConfig:
|
|
105
|
+
userConfig: wa.vue_ui_chord[t.theme] || S.config,
|
|
105
106
|
defaultConfig: t
|
|
106
107
|
}),
|
|
107
|
-
customPalette:
|
|
108
|
+
customPalette: Kt[t.theme] || ge
|
|
108
109
|
} : t;
|
|
109
110
|
}
|
|
110
111
|
xe(() => S.config, (t) => {
|
|
@@ -115,7 +116,7 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
115
116
|
je(), we(), be.value += 1, pe.value += 1, me.value += 1;
|
|
116
117
|
});
|
|
117
118
|
function je() {
|
|
118
|
-
if (
|
|
119
|
+
if (ea(S.dataset)) {
|
|
119
120
|
ft({
|
|
120
121
|
componentName: "VueUiChord",
|
|
121
122
|
type: "dataset",
|
|
@@ -123,7 +124,7 @@ const xa = ["id"], Aa = ["id"], Ia = ["xmlns", "viewBox"], _a = ["width", "heigh
|
|
|
123
124
|
}), E.value = !1, K.value = !0;
|
|
124
125
|
return;
|
|
125
126
|
}
|
|
126
|
-
const t =
|
|
127
|
+
const t = ta({
|
|
127
128
|
datasetObject: S.dataset,
|
|
128
129
|
requiredAttributes: ["matrix"]
|
|
129
130
|
});
|
|
@@ -161,8 +162,8 @@ dataset.matrix[${l}] = [${Array.isArray(o[l]) ? o[l].toString() : "invalid"}]`
|
|
|
161
162
|
}
|
|
162
163
|
function we() {
|
|
163
164
|
if (je(), e.value.responsive) {
|
|
164
|
-
const t =
|
|
165
|
-
const { width: o, height: a, heightNoTitle: l, heightSource: s, heightTitle: n, heightLegend: u } =
|
|
165
|
+
const t = va(() => {
|
|
166
|
+
const { width: o, height: a, heightNoTitle: l, heightSource: s, heightTitle: n, heightLegend: u } = da({
|
|
166
167
|
chart: O.value,
|
|
167
168
|
title: e.value.style.chart.title.text ? Be.value : null,
|
|
168
169
|
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
@@ -173,7 +174,7 @@ dataset.matrix[${l}] = [${Array.isArray(o[l]) ? o[l].toString() : "invalid"}]`
|
|
|
173
174
|
}, 100);
|
|
174
175
|
U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect()), U.value = new ResizeObserver(t), Z.value = O.value.parentNode, U.value.observe(Z.value), t();
|
|
175
176
|
}
|
|
176
|
-
|
|
177
|
+
Ge.value = setTimeout(() => {
|
|
177
178
|
Q.value = !0;
|
|
178
179
|
}, 500);
|
|
179
180
|
}
|
|
@@ -193,20 +194,20 @@ matrix:[
|
|
|
193
194
|
dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${M.value.matrix.length})`), E.value = !1);
|
|
194
195
|
});
|
|
195
196
|
}
|
|
196
|
-
const
|
|
197
|
+
const Ge = v(null);
|
|
197
198
|
ut(() => {
|
|
198
199
|
De.value = !0, we();
|
|
199
200
|
});
|
|
200
201
|
const L = v({
|
|
201
202
|
height: 600,
|
|
202
203
|
width: 600
|
|
203
|
-
}), It = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), _t = $(() =>
|
|
204
|
+
}), It = $(() => e.value.userOptions.show && !e.value.style.chart.title.text), _t = $(() => aa(e.value.customPalette)), b = $(() => ({
|
|
204
205
|
inner: L.value.width * 0.3 * e.value.style.chart.arcs.innerRadiusRatio,
|
|
205
206
|
outer: L.value.width * 0.34 * e.value.style.chart.arcs.outerRadiusRatio
|
|
206
207
|
})), Pt = $(() => e.value.style.chart.arcs.padAngle / 100), m = $(() => ({
|
|
207
208
|
matrix: M.value.matrix ?? [[0]],
|
|
208
209
|
labels: M.value.labels ?? [""],
|
|
209
|
-
colors: M.value.colors && Array.isArray(M.value.colors) && M.value.colors.length ? M.value.colors.map((t) =>
|
|
210
|
+
colors: M.value.colors && Array.isArray(M.value.colors) && M.value.colors.length ? M.value.colors.map((t) => oa(t)) : M.value.matrix.map((t, o) => _t.value[o] || ge[o] || ge[o % ge.length])
|
|
210
211
|
}));
|
|
211
212
|
function Tt(t, o) {
|
|
212
213
|
const a = t.length, l = b.value.inner, s = new Array(a).fill(0);
|
|
@@ -235,20 +236,20 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
235
236
|
y.sort((D, X) => X.v - D.v);
|
|
236
237
|
let B = f[c].startAngle;
|
|
237
238
|
for (const { j: D, v: X } of y) {
|
|
238
|
-
const
|
|
239
|
+
const Y = B, le = Y + X * u;
|
|
239
240
|
T.push({
|
|
240
241
|
index: c,
|
|
241
242
|
subIndex: D,
|
|
242
243
|
pattern: `pattern_${k.value}_${c}`,
|
|
243
|
-
startAngle:
|
|
244
|
+
startAngle: Y,
|
|
244
245
|
endAngle: le,
|
|
245
246
|
value: X,
|
|
246
247
|
groupName: m.value.labels[c],
|
|
247
248
|
groupId: f[c].id,
|
|
248
249
|
groupColor: m.value.colors[c],
|
|
249
|
-
midAngle: (
|
|
250
|
-
midBaseX: Math.cos((
|
|
251
|
-
midBaseY: Math.sin((
|
|
250
|
+
midAngle: (Y + le) / 2,
|
|
251
|
+
midBaseX: Math.cos((Y + le) / 2 - Math.PI / 2) * l,
|
|
252
|
+
midBaseY: Math.sin((Y + le) / 2 - Math.PI / 2) * l
|
|
252
253
|
}), B = le;
|
|
253
254
|
}
|
|
254
255
|
}
|
|
@@ -339,13 +340,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
339
340
|
}
|
|
340
341
|
return t;
|
|
341
342
|
});
|
|
342
|
-
function
|
|
343
|
+
function Ye(t, o, a, l) {
|
|
343
344
|
const s = t - Math.PI / 2, n = o - Math.PI / 2, u = Math.cos(s) * a, f = Math.sin(s) * a, P = Math.cos(n) * a, T = Math.sin(n) * a, N = Math.cos(n) * l, c = Math.sin(n) * l, y = Math.cos(s) * l, B = Math.sin(s) * l, D = o - t > Math.PI ? 1 : 0;
|
|
344
345
|
return `M${u},${f} A${a},${a} 0 ${D} 1 ${P},${T} L${N},${c} A${l},${l} 0 ${D} 0 ${y},${B} Z`;
|
|
345
346
|
}
|
|
346
347
|
function se(t, o) {
|
|
347
|
-
const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a, P = Math.sin(l) * a, T = Math.cos(s) * a, N = Math.sin(s) * a, c = Math.cos(n) * a, y = Math.sin(n) * a, B = Math.cos(u) * a, D = Math.sin(u) * a, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0,
|
|
348
|
-
return `M${f},${P}A${a},${a} 0 ${X} 1 ${T},${N}Q0,0 ${c},${y}A${a},${a} 0 ${
|
|
348
|
+
const a = b.value.inner, l = t.startAngle - Math.PI / 2, s = t.endAngle - Math.PI / 2, n = o.startAngle - Math.PI / 2, u = o.endAngle - Math.PI / 2, f = Math.cos(l) * a, P = Math.sin(l) * a, T = Math.cos(s) * a, N = Math.sin(s) * a, c = Math.cos(n) * a, y = Math.sin(n) * a, B = Math.cos(u) * a, D = Math.sin(u) * a, X = t.endAngle - t.startAngle > Math.PI ? 1 : 0, Y = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
|
|
349
|
+
return `M${f},${P}A${a},${a} 0 ${X} 1 ${T},${N}Q0,0 ${c},${y}A${a},${a} 0 ${Y} 1 ${B},${D}Q0,0 ${f},${P}Z`;
|
|
349
350
|
}
|
|
350
351
|
const We = $(() => _.value * Math.PI / 180);
|
|
351
352
|
function Ot(t) {
|
|
@@ -384,7 +385,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
384
385
|
te.value = !1;
|
|
385
386
|
}
|
|
386
387
|
function Je(t) {
|
|
387
|
-
return
|
|
388
|
+
return ca(
|
|
388
389
|
e.value.style.chart.ribbons.labels.formatter,
|
|
389
390
|
t,
|
|
390
391
|
_e({
|
|
@@ -398,7 +399,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
398
399
|
ut(() => {
|
|
399
400
|
window.addEventListener("mousemove", re), window.addEventListener("mouseup", ue), window.addEventListener("touchmove", re, { passive: !1 }), window.addEventListener("touchend", ue);
|
|
400
401
|
}), it(() => {
|
|
401
|
-
window.removeEventListener("mousemove", re), window.removeEventListener("mouseup", ue), window.removeEventListener("touchmove", re), window.removeEventListener("touchend", ue), clearTimeout(
|
|
402
|
+
window.removeEventListener("mousemove", re), window.removeEventListener("mouseup", ue), window.removeEventListener("touchmove", re), window.removeEventListener("touchend", ue), clearTimeout(Ge.value), U.value && (Z.value && U.value.unobserve(Z.value), U.value.disconnect());
|
|
402
403
|
});
|
|
403
404
|
const ie = v(!1);
|
|
404
405
|
function Ke(t) {
|
|
@@ -438,17 +439,17 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
438
439
|
function jt() {
|
|
439
440
|
return A.value;
|
|
440
441
|
}
|
|
441
|
-
const
|
|
442
|
+
const G = v(null);
|
|
442
443
|
function ot() {
|
|
443
444
|
const t = e.value.initialRotation;
|
|
444
|
-
|
|
445
|
+
G.value !== null && cancelAnimationFrame(G.value);
|
|
445
446
|
const o = () => {
|
|
446
|
-
_.value += (t - _.value) * 0.05, Math.abs(_.value - t) < 0.1 ? (_.value = t,
|
|
447
|
+
_.value += (t - _.value) * 0.05, Math.abs(_.value - t) < 0.1 ? (_.value = t, G.value = null) : G.value = requestAnimationFrame(o);
|
|
447
448
|
};
|
|
448
|
-
|
|
449
|
+
G.value = requestAnimationFrame(o);
|
|
449
450
|
}
|
|
450
451
|
it(() => {
|
|
451
|
-
|
|
452
|
+
G.value !== null && cancelAnimationFrame(G.value);
|
|
452
453
|
});
|
|
453
454
|
function lt(t) {
|
|
454
455
|
t === g.value ? (g.value = null, ne("selectLegend", null)) : (g.value = t, ne("selectLegend", A.value.groups.find((o) => o.id === t)));
|
|
@@ -462,7 +463,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
462
463
|
id: t.id,
|
|
463
464
|
select: () => lt(t.id),
|
|
464
465
|
opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
|
|
465
|
-
}))),
|
|
466
|
+
}))), Gt = $(() => ({
|
|
466
467
|
cy: "chord-div-legend",
|
|
467
468
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
468
469
|
color: e.value.style.chart.legend.color,
|
|
@@ -511,13 +512,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
511
512
|
[""],
|
|
512
513
|
...m.value.labels.map((s, n) => [s || n])
|
|
513
514
|
]
|
|
514
|
-
].concat(o), l =
|
|
515
|
-
t ? t(l) :
|
|
515
|
+
].concat(o), l = ua(a);
|
|
516
|
+
t ? t(l) : ia({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-chord" });
|
|
516
517
|
});
|
|
517
518
|
}
|
|
518
|
-
async function
|
|
519
|
+
async function Yt({ scale: t = 2 } = {}) {
|
|
519
520
|
if (!O.value) return;
|
|
520
|
-
const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: n } = await
|
|
521
|
+
const { width: o, height: a } = O.value.getBoundingClientRect(), l = o / a, { imageUri: s, base64: n } = await ya({ domElement: O.value, base64: !0, img: !0, scale: t });
|
|
521
522
|
return {
|
|
522
523
|
imageUri: s,
|
|
523
524
|
base64: n,
|
|
@@ -573,7 +574,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
573
574
|
}
|
|
574
575
|
return pt({
|
|
575
576
|
getData: jt,
|
|
576
|
-
getImage:
|
|
577
|
+
getImage: Yt,
|
|
577
578
|
generateCsv: Me,
|
|
578
579
|
generateImage: Xe,
|
|
579
580
|
generatePdf: Ue,
|
|
@@ -615,7 +616,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
615
616
|
ref: Be,
|
|
616
617
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
617
618
|
}, [
|
|
618
|
-
(r(), V(
|
|
619
|
+
(r(), V($a, {
|
|
619
620
|
key: `title_${be.value}`,
|
|
620
621
|
config: {
|
|
621
622
|
title: {
|
|
@@ -718,7 +719,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
718
719
|
} : void 0
|
|
719
720
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
720
721
|
(r(), i("svg", {
|
|
721
|
-
xmlns: d(
|
|
722
|
+
xmlns: d(la),
|
|
722
723
|
ref_key: "svgRef",
|
|
723
724
|
ref: ee,
|
|
724
725
|
viewBox: `0 0 ${L.value.width} ${L.value.height}`,
|
|
@@ -767,7 +768,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
767
768
|
(r(), i("path", {
|
|
768
769
|
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
|
|
769
770
|
key: `arc-${l}`,
|
|
770
|
-
d:
|
|
771
|
+
d: Ye(
|
|
771
772
|
a.startAngle,
|
|
772
773
|
a.endAngle,
|
|
773
774
|
b.value.outer,
|
|
@@ -788,7 +789,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
788
789
|
t.$slots.pattern ? (r(), i("path", {
|
|
789
790
|
class: F({ "vue-ui-chord-arc": !0, "vue-ui-chord-arc-animated": e.value.useCssAnimation && !Q.value }),
|
|
790
791
|
key: `arc-${l}`,
|
|
791
|
-
d:
|
|
792
|
+
d: Ye(
|
|
792
793
|
a.startAngle,
|
|
793
794
|
a.endAngle,
|
|
794
795
|
b.value.outer,
|
|
@@ -930,13 +931,13 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
930
931
|
}, H(Je(a.value)), 9, ja)
|
|
931
932
|
], 64))), 128))
|
|
932
933
|
])) : h("", !0),
|
|
933
|
-
e.value.style.chart.arcs.labels.show ? (r(), i("g",
|
|
934
|
+
e.value.style.chart.arcs.labels.show ? (r(), i("g", Ga, [
|
|
934
935
|
e.value.style.chart.arcs.labels.curved ? (r(!0), i(z, { key: 0 }, q(A.value.groups, (a, l) => (r(), i("text", {
|
|
935
936
|
class: "vue-ui-chord-label-curved",
|
|
936
937
|
key: `curved-label-${l}`,
|
|
937
938
|
"font-size": e.value.style.chart.arcs.labels.fontSize,
|
|
938
939
|
"font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
939
|
-
fill: e.value.style.chart.arcs.labels.adaptColorToBackground ? d(
|
|
940
|
+
fill: e.value.style.chart.arcs.labels.adaptColorToBackground ? d(na)(m.value.colors[l]) : e.value.style.chart.arcs.labels.color
|
|
940
941
|
}, [
|
|
941
942
|
I("textPath", {
|
|
942
943
|
href: `#labelPath-${l}_${k.value}`,
|
|
@@ -948,7 +949,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
948
949
|
s: "%)",
|
|
949
950
|
r: e.value.style.chart.arcs.labels.roundingPercentage
|
|
950
951
|
}) : ""), 9, Wa)
|
|
951
|
-
], 8,
|
|
952
|
+
], 8, Ya))), 128)) : !C.value && !p.value && !g.value ? (r(!0), i(z, { key: 1 }, q(A.value.groups, (a, l) => (r(), i("text", {
|
|
952
953
|
class: "vue-ui-chord-label-straight",
|
|
953
954
|
key: `label-${l}`,
|
|
954
955
|
transform: `
|
|
@@ -960,8 +961,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
960
961
|
"font-size": e.value.style.chart.arcs.labels.fontSize,
|
|
961
962
|
"font-weight": e.value.style.chart.arcs.labels.bold ? "bold" : "normal",
|
|
962
963
|
fill: e.value.style.chart.arcs.labels.color,
|
|
963
|
-
innerHTML: d(
|
|
964
|
-
content: d(
|
|
964
|
+
innerHTML: d(sa)({
|
|
965
|
+
content: d(ra)(Wt(a, l)),
|
|
965
966
|
fontSize: e.value.style.chart.arcs.labels.fontSize,
|
|
966
967
|
fill: e.value.style.chart.arcs.labels.color,
|
|
967
968
|
x: 0,
|
|
@@ -989,7 +990,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
989
990
|
e.value.style.chart.legend.show ? (r(), V(Ca, {
|
|
990
991
|
key: `legend_${me.value}`,
|
|
991
992
|
legendSet: nt.value,
|
|
992
|
-
config:
|
|
993
|
+
config: Gt.value,
|
|
993
994
|
onClickMarker: o[0] || (o[0] = ({ legend: a }) => lt(a.id))
|
|
994
995
|
}, Ae({
|
|
995
996
|
item: x(({ legend: a }) => [
|
|
@@ -1005,7 +1006,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1005
1006
|
t.$slots.pattern ? {
|
|
1006
1007
|
name: "legend-pattern",
|
|
1007
1008
|
fn: x(({ legend: a, index: l }) => [
|
|
1008
|
-
fe(
|
|
1009
|
+
fe(ka, {
|
|
1009
1010
|
shape: a.shape,
|
|
1010
1011
|
radius: 30,
|
|
1011
1012
|
stroke: "none",
|
|
@@ -1097,10 +1098,10 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
|
|
|
1097
1098
|
key: "1"
|
|
1098
1099
|
} : void 0
|
|
1099
1100
|
]), 1040)) : h("", !0),
|
|
1100
|
-
d(Ee) ? (r(), V(
|
|
1101
|
+
d(Ee) ? (r(), V(ga, { key: 9 })) : h("", !0)
|
|
1101
1102
|
], 46, xa));
|
|
1102
1103
|
}
|
|
1103
|
-
},
|
|
1104
|
+
}, bo = /* @__PURE__ */ Ma(eo, [["__scopeId", "data-v-8fbd9d0d"]]);
|
|
1104
1105
|
export {
|
|
1105
|
-
|
|
1106
|
+
bo as default
|
|
1106
1107
|
};
|