vue-data-ui 3.9.22 → 3.10.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/README.md +76 -57
- package/dist/{Arrow-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-BHlNyA0A.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-DtXe9QC_.js → BaseIcon-4uOct8re.js} +29 -22
- package/dist/{BaseZoomControls-Dp7lD8dn.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-CnWVxKGw.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-BriHstj2.js → DataTable-DyoDzNNY.js} +16 -16
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7GKy0EX.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-DS0AcLc9.js → PackageVersion-D6MO5wwI.js} +1 -1
- package/dist/{PenAndPaper-DBbQVgYt.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-CdBkrOVw.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-DAWQCjXt.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B7pkWzTi.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-CEsHe7Td.js → UserOptions-CX7Xsusk.js} +7 -7
- 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 +5 -0
- 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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +218 -6
- package/dist/types/vue-ui-bump.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-gqRzbKJy.js → useNestedProp-Ckf_2P_V.js} +271 -163
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-nqF_cACH.js → vue-data-ui-BzP8Tvow.js} +79 -77
- package/dist/vue-data-ui.js +90 -88
- package/dist/{vue-ui-3d-bar-DmrhwUsA.js → vue-ui-3d-bar-CHeF8XHm.js} +222 -218
- package/dist/{vue-ui-accordion-CDvNAvXX.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C0hgxDIF.js → vue-ui-age-pyramid-CJSA_Lp7.js} +177 -173
- package/dist/{vue-ui-annotator-koqMAb87.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-BXJCZyhh.js → vue-ui-bullet-BGO-5x4w.js} +135 -131
- package/dist/vue-ui-bump-Ds8aQyR-.js +1006 -0
- package/dist/{vue-ui-candlestick-3YdnfK3I.js → vue-ui-candlestick-Chk1Rxwa.js} +304 -300
- package/dist/{vue-ui-carousel-table-5pBU7CnX.js → vue-ui-carousel-table-BX4wS5vL.js} +4 -4
- package/dist/{vue-ui-chestnut-BmjwbHgq.js → vue-ui-chestnut-DRGQVzIZ.js} +326 -322
- package/dist/{vue-ui-chord-C_2QTHYi.js → vue-ui-chord-CzS4uqvo.js} +171 -167
- package/dist/{vue-ui-circle-pack-BeHZwuM4.js → vue-ui-circle-pack-CTo8Eihw.js} +162 -158
- package/dist/{vue-ui-cursor-YR7_jEcG.js → vue-ui-cursor-DQ1eQR4G.js} +3 -3
- package/dist/{vue-ui-dag-h6p8aZFf.js → vue-ui-dag-Vw67oxw7.js} +451 -447
- package/dist/{vue-ui-dashboard-Cl6Jnf6s.js → vue-ui-dashboard-CBX0gXdp.js} +68 -68
- package/dist/{vue-ui-digits-bUDar5q1.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-n-wyE9bw.js → vue-ui-donut-8T6Nmsxq.js} +467 -463
- package/dist/{vue-ui-donut-evolution-DoQwbNv4.js → vue-ui-donut-evolution-C2QW-9s6.js} +354 -350
- package/dist/{vue-ui-dumbbell-BWEAHSG8.js → vue-ui-dumbbell-Bn9pd4ij.js} +240 -236
- package/dist/{vue-ui-flow-CRgC7Mlx.js → vue-ui-flow-LxJoqDKq.js} +171 -167
- package/dist/{vue-ui-funnel-CfIPZ_zB.js → vue-ui-funnel-Dijfg4TW.js} +133 -129
- package/dist/{vue-ui-galaxy-Cp_rz8IL.js → vue-ui-galaxy-J7ABN21x.js} +146 -142
- package/dist/{vue-ui-gauge-DjJ8LiGL.js → vue-ui-gauge-DAUj4HG5.js} +175 -171
- package/dist/{vue-ui-geo-DUa0LJdd.js → vue-ui-geo-DZIQ7n5z.js} +123 -119
- package/dist/{vue-ui-gizmo-DDMnc-mn.js → vue-ui-gizmo-iP8kliCe.js} +3 -3
- package/dist/{vue-ui-heatmap-Bu78wjql.js → vue-ui-heatmap-BzJ9NhwA.js} +231 -227
- package/dist/{vue-ui-history-plot-I7RFpR4m.js → vue-ui-history-plot-CiKEQ6JR.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-B76RcVtC.js → vue-ui-horizontal-bar-HXGUUZ4g.js} +325 -321
- package/dist/{vue-ui-kpi-CnmyYRvK.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-DVEVYQd5.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-B0EQor9C.js → vue-ui-molecule-BOOgtokk.js} +183 -179
- package/dist/{vue-ui-mood-radar-BXHszrJ5.js → vue-ui-mood-radar-DZzGx5Dp.js} +162 -158
- package/dist/{vue-ui-nested-donuts-Cs09jqNS.js → vue-ui-nested-donuts-BA1-O-gB.js} +178 -174
- package/dist/{vue-ui-onion-Cd4M3NhO.js → vue-ui-onion-thpUoiBE.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-B3jKFKQp.js → vue-ui-parallel-coordinate-plot-DR3Ipc9q.js} +195 -191
- package/dist/{vue-ui-quadrant-BGdcyL_G.js → vue-ui-quadrant-CmCVv7Io.js} +243 -239
- package/dist/{vue-ui-quick-chart-RISnAtAO.js → vue-ui-quick-chart-D7CQqjbb.js} +295 -291
- package/dist/{vue-ui-radar-CiyUH5vY.js → vue-ui-radar-C5BYiNeE.js} +168 -164
- package/dist/{vue-ui-rating-CTN4-Xx3.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-GJ2m1KJi.js → vue-ui-relation-circle-BkWUI7cy.js} +185 -181
- package/dist/vue-ui-ridgeline-CokXNDQ5.js +1306 -0
- package/dist/{vue-ui-rings-DStX7GN9.js → vue-ui-rings-COs-uwPW.js} +299 -295
- package/dist/{vue-ui-scatter-C06XR1wk.js → vue-ui-scatter-od9j3nbg.js} +354 -350
- package/dist/{vue-ui-skeleton-BhhCaDDt.js → vue-ui-skeleton-199nlzz-.js} +3 -3
- package/dist/{vue-ui-smiley-CxVaJpm8.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-D0C6wQaQ.js → vue-ui-spark-trend-CCh-2vX7.js} +120 -116
- package/dist/{vue-ui-sparkbar-BdiOrr_4.js → vue-ui-sparkbar-TotwU9iC.js} +84 -80
- package/dist/{vue-ui-sparkgauge-Bn69Wf48.js → vue-ui-sparkgauge-ma4q7p0M.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-B2igFeIs.js → vue-ui-sparkhistogram-DkkFMKuS.js} +109 -105
- package/dist/{vue-ui-sparkline-0VCC5bBB.js → vue-ui-sparkline-B9SwcngG.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DXNNFyVU.js → vue-ui-sparkstackbar-DYz-Vson.js} +99 -95
- package/dist/{vue-ui-stackbar-O6Qnmp0y.js → vue-ui-stackbar-C_Tl2URC.js} +376 -372
- package/dist/{vue-ui-stackline-DXR5bwam.js → vue-ui-stackline-CXpElu5C.js} +347 -343
- package/dist/{vue-ui-strip-plot-Dbkd9HLL.js → vue-ui-strip-plot-DzcjpnIg.js} +248 -244
- package/dist/{vue-ui-table-CY9ofQw5.js → vue-ui-table-D_TQyQhl.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Cl927pNj.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-JdC2NOYh.js → vue-ui-table-sparkline-CF5BnI-6.js} +174 -170
- package/dist/{vue-ui-thermometer-9e1IkvL9.js → vue-ui-thermometer-BmmwTeyy.js} +133 -129
- package/dist/{vue-ui-timer-C85qvi3A.js → vue-ui-timer-Bffy4n-P.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dvynr7Ca.js → vue-ui-tiremarks-pMFoFCHr.js} +156 -152
- package/dist/{vue-ui-treemap-B2d4oGJZ.js → vue-ui-treemap-DSaqUKWM.js} +161 -157
- package/dist/{vue-ui-waffle-B3NfAP3B.js → vue-ui-waffle-BavDRJin.js} +185 -181
- package/dist/{vue-ui-wheel-Cti5RCaK.js → vue-ui-wheel-toELK-fC.js} +125 -121
- package/dist/{vue-ui-word-cloud-BGyunVJT.js → vue-ui-word-cloud-DCTGuXdW.js} +179 -175
- package/dist/{vue-ui-world-BjGu6FvN.js → vue-ui-world-7QFSvpGk.js} +6 -6
- package/dist/{vue-ui-xy-BC1zUOGw.js → vue-ui-xy-CTJtVYBG.js} +697 -693
- package/dist/{vue-ui-xy-canvas-ks3CRcLY.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BAukx7WE.js +0 -1302
|
@@ -1,40 +1,44 @@
|
|
|
1
|
-
import { defineAsyncComponent as E, useSlots as
|
|
2
|
-
import { c as et, t as
|
|
3
|
-
import { b as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { _ as
|
|
17
|
-
const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rings: { stroke: "#3A3A3A" }, labels: { dataLabels: { color: "#CCCCCC", markers: { stroke: "#4A4A4A" } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } },
|
|
1
|
+
import { defineAsyncComponent as E, useSlots as jt, ref as r, computed as v, toRefs as Ht, watch as Z, shallowRef as Ke, onMounted as Xt, onBeforeUnmount as Gt, createElementBlock as b, openBlock as u, unref as n, normalizeStyle as M, normalizeClass as B, createBlock as P, createCommentVNode as y, createElementVNode as m, createVNode as ee, withCtx as i, renderSlot as c, normalizeProps as $, guardReactiveProps as L, createSlots as ge, Fragment as te, renderList as be, mergeProps as Qe, Teleport as Yt, toDisplayString as fe, resolveDynamicComponent as qt, createTextVNode as Ze, nextTick as Jt } from "vue";
|
|
2
|
+
import { c as et, t as Kt, i as Qt, j as V, o as tt, g as pe, l as Zt, k as el, a7 as tl, m as lt, a as ye, d as I, X as ll, s as ol, h as al, $ as sl, v as nl, r as rl, U as ul, y as il, _ as cl } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { b as vl } from "./labelUtils-D6Y-n7cD.js";
|
|
4
|
+
import { t as dl, u as hl } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as gl, a as me } from "./useNestedProp-Ckf_2P_V.js";
|
|
6
|
+
import { u as bl } from "./usePrinter-1NmjuP-i.js";
|
|
7
|
+
import { u as fl, B as pl } from "./BaseScanner-BMpwQAfz.js";
|
|
8
|
+
import { u as yl } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as ml } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as Cl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as kl } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import Al from "./img-6fNF_rG0.js";
|
|
13
|
+
import { _ as wl } from "./Shape-PzdCMGsP.js";
|
|
14
|
+
import $l from "./Title-NgeRXqRA.js";
|
|
15
|
+
import Ll from "./Legend-DN5UJOBH.js";
|
|
16
|
+
import { _ as Tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const ot = { userOptions: { show: !1 }, style: { chart: { legend: { show: !1 } } } }, at = { userOptions: { show: !1 }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rings: { stroke: "#3A3A3A" }, labels: { dataLabels: { color: "#CCCCCC", markers: { stroke: "#4A4A4A" } } } }, legend: { show: !1, backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rings: { stroke: "#3A3A3A" }, labels: { dataLabels: { color: "#CCCCCC", markers: { stroke: "#4A4A4A" } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, nt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { rings: { stroke: "#5D4037", strokeWidth: 10 }, labels: { dataLabels: { color: "#424242", markers: { stroke: "#5D4037" } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, rt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { rings: { stroke: "#2E2E2E", strokeWidth: 10 }, labels: { dataLabels: { color: "#BDBDBD", markers: { stroke: "#2E2E2E" } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { rings: { stroke: "#1A1A1A", strokeWidth: 10 }, labels: { dataLabels: { color: "#BDBDBD", markers: { stroke: "#3A3A3A" } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, it = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { rings: { stroke: "#fbfafa", strokeWidth: 10 }, labels: { dataLabels: { color: "#8A9892", markers: { stroke: "#FFFFFF" } } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, ct = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { rings: { stroke: "#fbfafa", strokeWidth: 10 }, labels: { dataLabels: { color: "#50606C", markers: { stroke: "#50606C" } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, vt = {
|
|
18
18
|
default: {},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
minimal: ot,
|
|
20
|
+
minimalDark: at,
|
|
21
|
+
dark: st,
|
|
22
|
+
celebration: nt,
|
|
23
|
+
celebrationNight: rt,
|
|
24
|
+
hack: ut,
|
|
25
|
+
zen: it,
|
|
26
|
+
concrete: ct
|
|
27
|
+
}, co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
28
|
__proto__: null,
|
|
27
|
-
celebration:
|
|
28
|
-
celebrationNight:
|
|
29
|
-
concrete:
|
|
30
|
-
dark:
|
|
31
|
-
default:
|
|
32
|
-
hack:
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
celebration: nt,
|
|
30
|
+
celebrationNight: rt,
|
|
31
|
+
concrete: ct,
|
|
32
|
+
dark: st,
|
|
33
|
+
default: vt,
|
|
34
|
+
hack: ut,
|
|
35
|
+
minimal: ot,
|
|
36
|
+
minimalDark: at,
|
|
37
|
+
zen: it
|
|
38
|
+
}, Symbol.toStringTag, { value: "Module" })), Fl = ["id"], xl = ["id"], Sl = ["xmlns", "viewBox"], _l = ["width", "height"], Dl = ["id"], Ol = ["stop-color"], El = ["stop-color"], Bl = { key: 1 }, Pl = ["stroke", "cx", "cy", "r", "fill"], Il = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Nl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], zl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Rl = ["x", "y", "width", "height", "fill", "rx"], Ml = ["cx", "cy", "r", "fill", "stroke"], Vl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight", "onMouseenter", "onMouseleave", "onClick", "innerHTML"], Wl = {
|
|
35
39
|
key: 4,
|
|
36
40
|
class: "vue-data-ui-watermark"
|
|
37
|
-
},
|
|
41
|
+
}, Ul = ["id"], jl = ["onClick"], Hl = ["innerHTML"], Xl = {
|
|
38
42
|
__name: "vue-ui-rings",
|
|
39
43
|
props: {
|
|
40
44
|
config: {
|
|
@@ -51,9 +55,9 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
57
|
emits: ["selectLegend"],
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
56
|
-
...
|
|
58
|
+
setup(dt, { expose: ht, emit: gt }) {
|
|
59
|
+
const bt = E(() => import("./Tooltip-B6qvABDL.js")), ft = E(() => import("./BaseIcon-4uOct8re.js")), pt = E(() => import("./vue-ui-accordion-DFKaB_05.js")), yt = E(() => import("./DataTable-DyoDzNNY.js")), mt = E(() => import("./PenAndPaper-LTuSTmWE.js")), Ct = E(() => import("./UserOptions-CX7Xsusk.js")), kt = E(() => import("./PackageVersion-D6MO5wwI.js")), At = E(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_rings: wt } = gl(), { isThemeValid: $t, warnInvalidTheme: Lt } = ml(), Tt = jt(), C = dt, k = r(!1), Ce = v(() => !!C.dataset && C.dataset.length), A = r(et()), q = r(!1), le = r(""), p = r(null), ke = r(0), F = r(null), Ae = r(null), we = r(null), $e = r(null), Le = r(null), Te = r(0), Fe = r(0), xe = r(0), oe = r(!1), Se = r(!1), U = r(null), ae = r(null), e = r(re()), { loading: T, FINAL_DATASET: _e, manualLoading: J } = fl({
|
|
60
|
+
...Ht(C),
|
|
57
61
|
FINAL_CONFIG: e,
|
|
58
62
|
prepareConfig: re,
|
|
59
63
|
skeletonDataset: [
|
|
@@ -63,7 +67,7 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
63
67
|
{ name: "_", values: [3], color: "#C4C4C4" },
|
|
64
68
|
{ name: "_", values: [2], color: "#DBDBDB" }
|
|
65
69
|
],
|
|
66
|
-
skeletonConfig:
|
|
70
|
+
skeletonConfig: Kt({
|
|
67
71
|
defaultConfig: e.value,
|
|
68
72
|
userConfig: {
|
|
69
73
|
userOptions: { show: !1 },
|
|
@@ -91,32 +95,32 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
91
95
|
}
|
|
92
96
|
}
|
|
93
97
|
})
|
|
94
|
-
}), { userOptionsVisible: se, setUserOptionsVisibility: De, keepUserOptionState: Oe } =
|
|
98
|
+
}), { userOptionsVisible: se, setUserOptionsVisibility: De, keepUserOptionState: Oe } = Cl({ config: e.value }), { svgRef: ne } = kl({ config: e.value.style.chart.title });
|
|
95
99
|
function re() {
|
|
96
100
|
const t = me({
|
|
97
|
-
userConfig:
|
|
98
|
-
defaultConfig:
|
|
99
|
-
}),
|
|
100
|
-
if (!
|
|
101
|
-
if (
|
|
102
|
-
return
|
|
101
|
+
userConfig: C.config,
|
|
102
|
+
defaultConfig: wt
|
|
103
|
+
}), o = t.theme;
|
|
104
|
+
if (!o) return t;
|
|
105
|
+
if (!$t.value(t))
|
|
106
|
+
return Lt(t), t;
|
|
103
107
|
const l = me({
|
|
104
|
-
userConfig:
|
|
108
|
+
userConfig: vt[o] || C.config,
|
|
105
109
|
defaultConfig: t
|
|
106
110
|
});
|
|
107
111
|
return {
|
|
108
112
|
...me({
|
|
109
|
-
userConfig:
|
|
113
|
+
userConfig: C.config,
|
|
110
114
|
defaultConfig: l
|
|
111
115
|
}),
|
|
112
|
-
customPalette: t.customPalette.length ? t.customPalette :
|
|
116
|
+
customPalette: t.customPalette.length ? t.customPalette : Qt[t.theme] || V
|
|
113
117
|
};
|
|
114
118
|
}
|
|
115
|
-
Z(() =>
|
|
119
|
+
Z(() => C.config, (t) => {
|
|
116
120
|
T.value || (e.value = re()), se.value = !e.value.userOptions.showOnChartHover, Be(), Te.value += 1, Fe.value += 1, xe.value += 1, g.value.showTable = e.value.table.show, g.value.showTooltip = e.value.style.chart.tooltip.show, g.value.showLabels = e.value.style.chart.layout.labels.dataLabels.show, d.value.width = e.value.style.chart.size, d.value.height = e.value.style.chart.size;
|
|
117
121
|
}, { deep: !0 });
|
|
118
122
|
const Ee = v(() => {
|
|
119
|
-
const { markers: t } = e.value.style.chart.layout.labels.dataLabels,
|
|
123
|
+
const { markers: t } = e.value.style.chart.layout.labels.dataLabels, o = z.value / 2, l = g.value.showLabels ? t.position === "left" ? o : -o : 0, a = g.value.showLabels ? d.value.width / 2 - o : 0, s = t.position === "left" ? a : -a;
|
|
120
124
|
return {
|
|
121
125
|
x: e.value.responsive ? s : l / e.value.style.chart.size * d.value.width,
|
|
122
126
|
y: 0 / e.value.style.chart.size * d.value.height
|
|
@@ -125,25 +129,25 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
125
129
|
x: d.value.width / 2 + Ee.value.x,
|
|
126
130
|
y: d.value.height / 2 + Ee.value.y
|
|
127
131
|
}));
|
|
128
|
-
Z(() =>
|
|
132
|
+
Z(() => C.dataset, (t) => {
|
|
129
133
|
Array.isArray(t) && t.length > 0 && (J.value = !1);
|
|
130
134
|
}, { deep: !0 });
|
|
131
135
|
const D = Ke(null), W = Ke(null);
|
|
132
|
-
|
|
136
|
+
Xt(() => {
|
|
133
137
|
Se.value = !0, Be();
|
|
134
138
|
});
|
|
135
139
|
const ue = v(() => !!e.value.debug);
|
|
136
140
|
function Be() {
|
|
137
|
-
if (tt(
|
|
141
|
+
if (tt(C.dataset) ? (pe({
|
|
138
142
|
componentName: "VueUiRings",
|
|
139
143
|
type: "dataset",
|
|
140
144
|
debug: ue.value
|
|
141
|
-
}), J.value = !0) :
|
|
145
|
+
}), J.value = !0) : C.dataset.forEach((t, o) => {
|
|
142
146
|
t.values.length || (pe({
|
|
143
147
|
componentName: "VueUiRings",
|
|
144
148
|
type: "dataset",
|
|
145
149
|
debug: ue.value
|
|
146
|
-
}), J.value = !0),
|
|
150
|
+
}), J.value = !0), Zt({
|
|
147
151
|
datasetObject: t,
|
|
148
152
|
requiredAttributes: ["name", "values"]
|
|
149
153
|
}).forEach((l) => {
|
|
@@ -151,38 +155,38 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
151
155
|
componentName: "VueUiRings",
|
|
152
156
|
type: "datasetSerieAttribute",
|
|
153
157
|
property: l,
|
|
154
|
-
index:
|
|
158
|
+
index: o,
|
|
155
159
|
debug: ue.value
|
|
156
160
|
});
|
|
157
161
|
});
|
|
158
|
-
}), tt(
|
|
159
|
-
const t =
|
|
160
|
-
|
|
161
|
-
const { width:
|
|
162
|
+
}), tt(C.dataset) || (J.value = e.value.loading), e.value.responsive) {
|
|
163
|
+
const t = dl(() => {
|
|
164
|
+
oe.value = !0;
|
|
165
|
+
const { width: o, height: l } = hl({
|
|
162
166
|
chart: F.value,
|
|
163
|
-
title: e.value.style.chart.title.text ?
|
|
164
|
-
legend: e.value.style.chart.legend.show ?
|
|
167
|
+
title: e.value.style.chart.title.text ? Ae.value : null,
|
|
168
|
+
legend: e.value.style.chart.legend.show ? we.value : null,
|
|
165
169
|
source: $e.value,
|
|
166
170
|
noTitle: Le.value
|
|
167
171
|
});
|
|
168
172
|
requestAnimationFrame(() => {
|
|
169
|
-
d.value.width =
|
|
173
|
+
d.value.width = o, d.value.height = l - 12, oe.value = !1;
|
|
170
174
|
});
|
|
171
175
|
});
|
|
172
176
|
D.value && (W.value && D.value.unobserve(W.value), D.value.disconnect()), D.value = new ResizeObserver(t), W.value = F.value.parentNode, D.value.observe(W.value);
|
|
173
177
|
}
|
|
174
178
|
setTimeout(() => {
|
|
175
|
-
|
|
179
|
+
k.value = !0;
|
|
176
180
|
}, 600);
|
|
177
181
|
}
|
|
178
|
-
|
|
182
|
+
Gt(() => {
|
|
179
183
|
D.value && (W.value && D.value.unobserve(W.value), D.value.disconnect());
|
|
180
184
|
});
|
|
181
|
-
const { isPrinting: Pe, isImaging: Ie, generatePdf: Ne, generateImage: ze } =
|
|
182
|
-
elementId: `rings_${
|
|
185
|
+
const { isPrinting: Pe, isImaging: Ie, generatePdf: Ne, generateImage: ze } = bl({
|
|
186
|
+
elementId: `rings_${A.value}`,
|
|
183
187
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
184
188
|
options: e.value.userOptions.print
|
|
185
|
-
}),
|
|
189
|
+
}), Ft = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), Re = v(() => el(e.value.customPalette)), g = r({
|
|
186
190
|
showTable: e.value.table.show,
|
|
187
191
|
showTooltip: e.value.style.chart.tooltip.show,
|
|
188
192
|
showLabels: e.value.style.chart.layout.labels.dataLabels.show
|
|
@@ -197,61 +201,61 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
197
201
|
const d = r({
|
|
198
202
|
height: e.value.style.chart.size,
|
|
199
203
|
width: e.value.style.chart.size
|
|
200
|
-
}),
|
|
204
|
+
}), xt = v(() => Math.min(d.value.height, d.value.width)), St = gt, f = r([]);
|
|
201
205
|
function j(t) {
|
|
202
206
|
if (f.value.includes(t))
|
|
203
|
-
f.value = f.value.filter((
|
|
207
|
+
f.value = f.value.filter((o) => o !== t);
|
|
204
208
|
else {
|
|
205
209
|
if (f.value.length === N.value.length - 1) return;
|
|
206
210
|
f.value.push(t);
|
|
207
211
|
}
|
|
208
|
-
|
|
209
|
-
name:
|
|
210
|
-
color:
|
|
211
|
-
value:
|
|
212
|
+
St("selectLegend", w.value.map((o) => ({
|
|
213
|
+
name: o.name,
|
|
214
|
+
color: o.color,
|
|
215
|
+
value: o.value
|
|
212
216
|
})));
|
|
213
217
|
}
|
|
214
218
|
function Me(t) {
|
|
215
219
|
if (!N.value.length)
|
|
216
220
|
return e.value.debug && console.warn("VueUiRings - There are no series to show."), null;
|
|
217
|
-
const
|
|
218
|
-
return
|
|
221
|
+
const o = N.value.find((l) => l.name === t);
|
|
222
|
+
return o || (e.value.debug && console.warn(`VueUiRings - Series name not found "${t}"`), null);
|
|
219
223
|
}
|
|
220
|
-
function
|
|
221
|
-
const
|
|
222
|
-
|
|
224
|
+
function _t(t) {
|
|
225
|
+
const o = Me(t);
|
|
226
|
+
o !== null && f.value.includes(o.uid) && j(o.uid);
|
|
223
227
|
}
|
|
224
|
-
function
|
|
225
|
-
const
|
|
226
|
-
|
|
228
|
+
function Dt(t) {
|
|
229
|
+
const o = Me(t);
|
|
230
|
+
o !== null && (f.value.includes(o.uid) || j(o.uid));
|
|
227
231
|
}
|
|
228
|
-
const
|
|
232
|
+
const Ot = v(() => Math.max(
|
|
229
233
|
...N.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t)
|
|
230
234
|
));
|
|
231
235
|
function Ve(t) {
|
|
232
|
-
return t /
|
|
236
|
+
return t / Ot.value;
|
|
233
237
|
}
|
|
234
|
-
const N = v(() => _e.value.map(({ values: t, name:
|
|
235
|
-
const s =
|
|
238
|
+
const N = v(() => _e.value.map(({ values: t, name: o, color: l = null }, a) => {
|
|
239
|
+
const s = tl(t).reduce((h, Y) => h + Y, 0);
|
|
236
240
|
return {
|
|
237
|
-
name:
|
|
238
|
-
color: l || lt(l) || Re.value[
|
|
241
|
+
name: o,
|
|
242
|
+
color: l || lt(l) || Re.value[a] || V[a] || V[a % V.length],
|
|
239
243
|
value: s,
|
|
240
|
-
proportion: s / _e.value.map((h) => (h.values || []).reduce((Y,
|
|
244
|
+
proportion: s / _e.value.map((h) => (h.values || []).reduce((Y, Ut) => Y + Ut, 0)).reduce((h, Y) => h + Y, 0),
|
|
241
245
|
uid: et(),
|
|
242
|
-
absoluteIndex:
|
|
246
|
+
absoluteIndex: a
|
|
243
247
|
};
|
|
244
|
-
})), ie = v(() => N.value.map((t,
|
|
248
|
+
})), ie = v(() => N.value.map((t, o) => {
|
|
245
249
|
const l = ye(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, I({
|
|
246
250
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
247
251
|
v: t.value,
|
|
248
252
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
249
253
|
r: e.value.style.chart.legend.roundingValue
|
|
250
|
-
}), { datapoint: t, index:
|
|
254
|
+
}), { datapoint: t, index: o }), a = isNaN(t.value / S.value) ? "-" : I({ v: t.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage }), s = ce({
|
|
251
255
|
showVal: e.value.style.chart.legend.showValue,
|
|
252
256
|
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
253
257
|
val: l,
|
|
254
|
-
percentage: f.value.includes(t.uid) ? "-%" :
|
|
258
|
+
percentage: f.value.includes(t.uid) ? "-%" : a
|
|
255
259
|
});
|
|
256
260
|
return {
|
|
257
261
|
...t,
|
|
@@ -261,117 +265,117 @@ const at = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
261
265
|
isSegregated: f.value.includes(t.uid),
|
|
262
266
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${s}`
|
|
263
267
|
};
|
|
264
|
-
}).toSorted((t,
|
|
268
|
+
}).toSorted((t, o) => o.value - t.value)), Et = v(() => ({
|
|
265
269
|
cy: "rings-div-legend",
|
|
266
270
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
267
271
|
color: e.value.style.chart.legend.color,
|
|
268
272
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
269
273
|
paddingBottom: 12,
|
|
270
274
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
271
|
-
})), S = v(() => N.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t).reduce((t,
|
|
275
|
+
})), S = v(() => N.value.filter((t) => !f.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), w = v(() => N.value.filter((t) => !f.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: s }, h) => ({
|
|
272
276
|
absoluteIndex: s,
|
|
273
|
-
uid:
|
|
277
|
+
uid: a,
|
|
274
278
|
name: t,
|
|
275
279
|
color: l || lt(l) || Re.value[h] || V[h] || V[h % V.length],
|
|
276
|
-
value:
|
|
277
|
-
proportion: Ve(
|
|
278
|
-
percentage:
|
|
279
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Ve(
|
|
280
|
-
})).toSorted((t,
|
|
281
|
-
function
|
|
282
|
-
return
|
|
283
|
-
({ name: t, color:
|
|
280
|
+
value: o,
|
|
281
|
+
proportion: Ve(o),
|
|
282
|
+
percentage: o / S.value * 100,
|
|
283
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Ve(o)
|
|
284
|
+
})).toSorted((t, o) => o.value - t.value));
|
|
285
|
+
function Bt() {
|
|
286
|
+
return w.value.map(
|
|
287
|
+
({ name: t, color: o, value: l, absoluteValues: a, percentage: s }) => ({
|
|
284
288
|
name: t,
|
|
285
|
-
color:
|
|
289
|
+
color: o,
|
|
286
290
|
value: l,
|
|
287
|
-
absoluteValues:
|
|
291
|
+
absoluteValues: a,
|
|
288
292
|
percentage: s
|
|
289
293
|
})
|
|
290
294
|
);
|
|
291
295
|
}
|
|
292
|
-
const z = v(() =>
|
|
293
|
-
function We(t,
|
|
294
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex:
|
|
296
|
+
const z = v(() => xt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
297
|
+
function We(t, o) {
|
|
298
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
295
299
|
}
|
|
296
|
-
function Ue(t,
|
|
297
|
-
p.value = null, q.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex:
|
|
300
|
+
function Ue(t, o) {
|
|
301
|
+
p.value = null, q.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
298
302
|
}
|
|
299
303
|
function ce({
|
|
300
304
|
val: t,
|
|
301
|
-
percentage:
|
|
305
|
+
percentage: o,
|
|
302
306
|
showVal: l,
|
|
303
|
-
showPercentage:
|
|
307
|
+
showPercentage: a
|
|
304
308
|
}) {
|
|
305
309
|
const s = e.value.style.chart.layout.labels.dataLabels;
|
|
306
|
-
return
|
|
310
|
+
return vl({
|
|
307
311
|
config: s,
|
|
308
312
|
val: t,
|
|
309
|
-
percentage:
|
|
313
|
+
percentage: o,
|
|
310
314
|
showVal: l,
|
|
311
|
-
showPercentage:
|
|
315
|
+
showPercentage: a
|
|
312
316
|
});
|
|
313
317
|
}
|
|
314
|
-
function
|
|
315
|
-
const
|
|
316
|
-
|
|
318
|
+
function Pt(t) {
|
|
319
|
+
const o = e.value.style.chart.layout.labels.dataLabels, l = ye(
|
|
320
|
+
o.formatter,
|
|
317
321
|
t.value,
|
|
318
322
|
I({
|
|
319
|
-
p:
|
|
323
|
+
p: o.prefix,
|
|
320
324
|
v: t.value,
|
|
321
|
-
s:
|
|
322
|
-
r:
|
|
325
|
+
s: o.suffix,
|
|
326
|
+
r: o.roundingValue
|
|
323
327
|
})
|
|
324
|
-
),
|
|
328
|
+
), a = I({
|
|
325
329
|
v: t.percentage,
|
|
326
330
|
s: "%",
|
|
327
|
-
r:
|
|
331
|
+
r: o.roundingPercentage
|
|
328
332
|
});
|
|
329
333
|
return `${t.name}
|
|
330
334
|
${ce({
|
|
331
335
|
val: l,
|
|
332
|
-
percentage:
|
|
333
|
-
showVal:
|
|
334
|
-
showPercentage:
|
|
336
|
+
percentage: a,
|
|
337
|
+
showVal: o.showValue,
|
|
338
|
+
showPercentage: o.showPercentage
|
|
335
339
|
})}`;
|
|
336
340
|
}
|
|
337
341
|
function H(t) {
|
|
338
|
-
return
|
|
342
|
+
return ul(z.value * t.proportion / 2 * 0.9 <= 0 ? 1e-4 : z.value * t.proportion / 2 * 0.9);
|
|
339
343
|
}
|
|
340
|
-
function X(t,
|
|
341
|
-
return
|
|
344
|
+
function X(t, o) {
|
|
345
|
+
return o === 0 ? x.value.y : x.value.y + z.value * w.value[0].proportion / 2 - z.value * t.proportion / 2 - 2 * (o + 1);
|
|
342
346
|
}
|
|
343
|
-
function _(t,
|
|
344
|
-
const
|
|
347
|
+
function _(t, o) {
|
|
348
|
+
const a = e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(z.value / 2) : z.value / 2;
|
|
345
349
|
return {
|
|
346
|
-
x: x.value.x +
|
|
347
|
-
y: X(t,
|
|
350
|
+
x: x.value.x + a,
|
|
351
|
+
y: X(t, o) - H(t)
|
|
348
352
|
};
|
|
349
353
|
}
|
|
350
354
|
const ve = r(null);
|
|
351
|
-
function je(t,
|
|
352
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex:
|
|
355
|
+
function je(t, o) {
|
|
356
|
+
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), f.value.length === C.dataset.length) return;
|
|
353
357
|
ve.value = {
|
|
354
358
|
datapoint: t,
|
|
355
|
-
seriesIndex:
|
|
356
|
-
series:
|
|
359
|
+
seriesIndex: o,
|
|
360
|
+
series: w.value,
|
|
357
361
|
config: e.value
|
|
358
|
-
}, p.value =
|
|
359
|
-
const l =
|
|
360
|
-
if (
|
|
361
|
-
seriesIndex:
|
|
362
|
+
}, p.value = o;
|
|
363
|
+
const l = w.value[o], a = e.value.style.chart.tooltip.customFormat;
|
|
364
|
+
if (il(a) && cl(() => a({
|
|
365
|
+
seriesIndex: o,
|
|
362
366
|
datapoint: t,
|
|
363
|
-
series:
|
|
367
|
+
series: w.value,
|
|
364
368
|
config: e.value
|
|
365
369
|
})))
|
|
366
|
-
le.value =
|
|
367
|
-
seriesIndex:
|
|
370
|
+
le.value = a({
|
|
371
|
+
seriesIndex: o,
|
|
368
372
|
datapoint: t,
|
|
369
|
-
series:
|
|
373
|
+
series: w.value,
|
|
370
374
|
config: e.value
|
|
371
375
|
});
|
|
372
376
|
else {
|
|
373
377
|
let s = "";
|
|
374
|
-
s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${
|
|
378
|
+
s += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, s += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}" />${Tt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${A.value}_${t.absoluteIndex})" />` : ""}</svg>`, s += `<b>${ce({
|
|
375
379
|
showVal: e.value.style.chart.tooltip.showValue,
|
|
376
380
|
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
377
381
|
val: `<span>${ye(
|
|
@@ -383,7 +387,7 @@ ${ce({
|
|
|
383
387
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
384
388
|
r: e.value.style.chart.tooltip.roundingValue
|
|
385
389
|
}),
|
|
386
|
-
{ datapoint: t, seriesIndex:
|
|
390
|
+
{ datapoint: t, seriesIndex: o }
|
|
387
391
|
)}</span>`,
|
|
388
392
|
percentage: I({
|
|
389
393
|
v: l.value / S.value * 100,
|
|
@@ -395,17 +399,17 @@ ${ce({
|
|
|
395
399
|
q.value = !0;
|
|
396
400
|
}
|
|
397
401
|
const O = v(() => {
|
|
398
|
-
const t =
|
|
402
|
+
const t = w.value.map((l) => ({
|
|
399
403
|
name: l.name,
|
|
400
404
|
color: l.color
|
|
401
|
-
})),
|
|
402
|
-
return { head: t, body:
|
|
405
|
+
})), o = w.value.map((l) => l.value);
|
|
406
|
+
return { head: t, body: o };
|
|
403
407
|
}), K = v(() => {
|
|
404
408
|
const t = [
|
|
405
409
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
406
410
|
I({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
407
411
|
"100%"
|
|
408
|
-
],
|
|
412
|
+
], o = O.value.head.map((s, h) => [
|
|
409
413
|
{
|
|
410
414
|
color: s.color,
|
|
411
415
|
name: s.name
|
|
@@ -424,29 +428,29 @@ ${ce({
|
|
|
424
428
|
outline: e.value.table.td.outline
|
|
425
429
|
},
|
|
426
430
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
427
|
-
},
|
|
431
|
+
}, a = [
|
|
428
432
|
e.value.table.columnNames.series,
|
|
429
433
|
e.value.table.columnNames.value,
|
|
430
434
|
e.value.table.columnNames.percentage
|
|
431
435
|
];
|
|
432
436
|
return {
|
|
433
437
|
head: t,
|
|
434
|
-
body:
|
|
438
|
+
body: o,
|
|
435
439
|
config: l,
|
|
436
|
-
colNames:
|
|
440
|
+
colNames: a
|
|
437
441
|
};
|
|
438
442
|
});
|
|
439
443
|
function de(t = null) {
|
|
440
|
-
|
|
441
|
-
const
|
|
444
|
+
Jt(() => {
|
|
445
|
+
const o = O.value.head.map((s, h) => [[
|
|
442
446
|
s.name
|
|
443
|
-
], [O.value.body[h]], [isNaN(O.value.body[h] / S.value) ? "-" : O.value.body[h] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(
|
|
444
|
-
t ? t(
|
|
447
|
+
], [O.value.body[h]], [isNaN(O.value.body[h] / S.value) ? "-" : O.value.body[h] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = nl(l);
|
|
448
|
+
t ? t(a) : rl({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
445
449
|
});
|
|
446
450
|
}
|
|
447
451
|
const R = r(!1);
|
|
448
452
|
function He(t) {
|
|
449
|
-
R.value = t,
|
|
453
|
+
R.value = t, ke.value += 1;
|
|
450
454
|
}
|
|
451
455
|
function Xe() {
|
|
452
456
|
g.value.showTable = !g.value.showTable;
|
|
@@ -461,22 +465,22 @@ ${ce({
|
|
|
461
465
|
function he() {
|
|
462
466
|
Q.value = !Q.value;
|
|
463
467
|
}
|
|
464
|
-
async function
|
|
468
|
+
async function It({ scale: t = 2 } = {}) {
|
|
465
469
|
if (!F.value) return;
|
|
466
|
-
const { width:
|
|
470
|
+
const { width: o, height: l } = F.value.getBoundingClientRect(), a = o / l, { imageUri: s, base64: h } = await Al({ domElement: F.value, base64: !0, img: !0, scale: t });
|
|
467
471
|
return {
|
|
468
472
|
imageUri: s,
|
|
469
473
|
base64: h,
|
|
470
474
|
title: e.value.style.chart.title.text,
|
|
471
|
-
width:
|
|
475
|
+
width: o,
|
|
472
476
|
height: l,
|
|
473
|
-
aspectRatio:
|
|
477
|
+
aspectRatio: a
|
|
474
478
|
};
|
|
475
479
|
}
|
|
476
480
|
const G = v(() => {
|
|
477
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
481
|
+
const t = e.value.table.useDialog && !e.value.table.show, o = g.value.showTable;
|
|
478
482
|
return {
|
|
479
|
-
component: t ?
|
|
483
|
+
component: t ? At : pt,
|
|
480
484
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
481
485
|
props: t ? {
|
|
482
486
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -489,7 +493,7 @@ ${ce({
|
|
|
489
493
|
} : {
|
|
490
494
|
hideDetails: !0,
|
|
491
495
|
config: {
|
|
492
|
-
open:
|
|
496
|
+
open: o,
|
|
493
497
|
maxHeight: 1e4,
|
|
494
498
|
body: {
|
|
495
499
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -507,51 +511,51 @@ ${ce({
|
|
|
507
511
|
e.value.table.show || (t && e.value.table.useDialog && U.value ? U.value.open() : "close" in U.value && U.value.close());
|
|
508
512
|
});
|
|
509
513
|
function qe() {
|
|
510
|
-
g.value.showTable = !1,
|
|
514
|
+
g.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
|
|
511
515
|
}
|
|
512
|
-
const
|
|
516
|
+
const Nt = v(() => ie.value.map((t) => ({
|
|
513
517
|
...t,
|
|
514
518
|
name: t.display
|
|
515
|
-
}))),
|
|
519
|
+
}))), zt = v(() => e.value.style.chart.backgroundColor), Rt = v(() => e.value.style.chart.legend), Mt = v(() => e.value.style.chart.title), { exportSvg: Vt, getSvg: Wt } = yl({
|
|
516
520
|
svg: ne,
|
|
517
|
-
title:
|
|
518
|
-
legend:
|
|
519
|
-
legendItems:
|
|
520
|
-
backgroundColor:
|
|
521
|
+
title: Mt,
|
|
522
|
+
legend: Rt,
|
|
523
|
+
legendItems: Nt,
|
|
524
|
+
backgroundColor: zt
|
|
521
525
|
});
|
|
522
526
|
async function Je({ isCb: t }) {
|
|
523
527
|
if (t) {
|
|
524
|
-
const { blob:
|
|
525
|
-
e.value.userOptions.callbacks.svg({ blob:
|
|
528
|
+
const { blob: o, url: l, text: a, dataUrl: s } = await Wt();
|
|
529
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: s });
|
|
526
530
|
} else
|
|
527
|
-
|
|
531
|
+
Vt();
|
|
528
532
|
}
|
|
529
|
-
return
|
|
530
|
-
getData:
|
|
531
|
-
getImage:
|
|
533
|
+
return ht({
|
|
534
|
+
getData: Bt,
|
|
535
|
+
getImage: It,
|
|
532
536
|
generatePdf: Ne,
|
|
533
537
|
generateCsv: de,
|
|
534
538
|
generateImage: ze,
|
|
535
539
|
generateSvg: Je,
|
|
536
|
-
hideSeries:
|
|
537
|
-
showSeries:
|
|
540
|
+
hideSeries: Dt,
|
|
541
|
+
showSeries: _t,
|
|
538
542
|
toggleTable: Xe,
|
|
539
543
|
toggleTooltip: Ge,
|
|
540
544
|
toggleAnnotator: he,
|
|
541
545
|
toggleFullscreen: He,
|
|
542
546
|
toggleLabels: Ye
|
|
543
|
-
}), (t,
|
|
547
|
+
}), (t, o) => (u(), b("div", {
|
|
544
548
|
ref_key: "ringsChart",
|
|
545
549
|
ref: F,
|
|
546
550
|
class: B(`vue-data-ui-component vue-ui-rings ${R.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
547
551
|
style: M(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
548
|
-
id: `rings_${
|
|
549
|
-
onMouseleave:
|
|
552
|
+
id: `rings_${A.value}`,
|
|
553
|
+
onMouseleave: o[2] || (o[2] = (l) => {
|
|
550
554
|
p.value = null, q.value = !1, n(De)(!1);
|
|
551
555
|
}),
|
|
552
|
-
onMouseenter:
|
|
556
|
+
onMouseenter: o[3] || (o[3] = () => n(De)(!0))
|
|
553
557
|
}, [
|
|
554
|
-
e.value.userOptions.buttons.annotator ? (u(), P(n(
|
|
558
|
+
e.value.userOptions.buttons.annotator ? (u(), P(n(mt), {
|
|
555
559
|
key: 0,
|
|
556
560
|
svgRef: n(ne),
|
|
557
561
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -579,7 +583,7 @@ ${ce({
|
|
|
579
583
|
]),
|
|
580
584
|
_: 3
|
|
581
585
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
582
|
-
|
|
586
|
+
Ft.value ? (u(), b("div", {
|
|
583
587
|
key: 1,
|
|
584
588
|
ref_key: "noTitle",
|
|
585
589
|
ref: Le,
|
|
@@ -589,10 +593,10 @@ ${ce({
|
|
|
589
593
|
e.value.style.chart.title.text ? (u(), b("div", {
|
|
590
594
|
key: 2,
|
|
591
595
|
ref_key: "chartTitle",
|
|
592
|
-
ref:
|
|
596
|
+
ref: Ae,
|
|
593
597
|
style: "width:100%;background:transparent"
|
|
594
598
|
}, [
|
|
595
|
-
(u(), P(
|
|
599
|
+
(u(), P($l, {
|
|
596
600
|
key: `title_${Te.value}`,
|
|
597
601
|
config: {
|
|
598
602
|
title: {
|
|
@@ -607,17 +611,17 @@ ${ce({
|
|
|
607
611
|
}, null, 8, ["config"]))
|
|
608
612
|
], 512)) : y("", !0),
|
|
609
613
|
m("div", {
|
|
610
|
-
id: `legend-top-${
|
|
611
|
-
}, null, 8,
|
|
612
|
-
e.value.userOptions.show &&
|
|
614
|
+
id: `legend-top-${A.value}`
|
|
615
|
+
}, null, 8, xl),
|
|
616
|
+
e.value.userOptions.show && Ce.value && (n(Oe) || n(se)) ? (u(), P(n(Ct), {
|
|
613
617
|
ref_key: "userOptionsRef",
|
|
614
|
-
ref:
|
|
615
|
-
key: `user_options_${
|
|
618
|
+
ref: ae,
|
|
619
|
+
key: `user_options_${ke.value}`,
|
|
616
620
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
617
621
|
color: e.value.style.chart.color,
|
|
618
622
|
isPrinting: n(Pe),
|
|
619
623
|
isImaging: n(Ie),
|
|
620
|
-
uid:
|
|
624
|
+
uid: A.value,
|
|
621
625
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
622
626
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
623
627
|
hasXls: e.value.userOptions.buttons.csv,
|
|
@@ -651,8 +655,8 @@ ${ce({
|
|
|
651
655
|
}, ge({ _: 2 }, [
|
|
652
656
|
t.$slots.menuIcon ? {
|
|
653
657
|
name: "menuIcon",
|
|
654
|
-
fn: i(({ isOpen: l, color:
|
|
655
|
-
c(t.$slots, "menuIcon", $(L({ isOpen: l, color:
|
|
658
|
+
fn: i(({ isOpen: l, color: a }) => [
|
|
659
|
+
c(t.$slots, "menuIcon", $(L({ isOpen: l, color: a })), void 0, !0)
|
|
656
660
|
]),
|
|
657
661
|
key: "0"
|
|
658
662
|
} : void 0,
|
|
@@ -707,15 +711,15 @@ ${ce({
|
|
|
707
711
|
} : void 0,
|
|
708
712
|
t.$slots.optionFullscreen ? {
|
|
709
713
|
name: "optionFullscreen",
|
|
710
|
-
fn: i(({ toggleFullscreen: l, isFullscreen:
|
|
711
|
-
c(t.$slots, "optionFullscreen", $(L({ toggleFullscreen: l, isFullscreen:
|
|
714
|
+
fn: i(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
715
|
+
c(t.$slots, "optionFullscreen", $(L({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
712
716
|
]),
|
|
713
717
|
key: "8"
|
|
714
718
|
} : void 0,
|
|
715
719
|
t.$slots.optionAnnotator ? {
|
|
716
720
|
name: "optionAnnotator",
|
|
717
|
-
fn: i(({ toggleAnnotator: l, isAnnotator:
|
|
718
|
-
c(t.$slots, "optionAnnotator", $(L({ toggleAnnotator: l, isAnnotator:
|
|
721
|
+
fn: i(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
722
|
+
c(t.$slots, "optionAnnotator", $(L({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
719
723
|
]),
|
|
720
724
|
key: "9"
|
|
721
725
|
} : void 0
|
|
@@ -723,12 +727,12 @@ ${ce({
|
|
|
723
727
|
(u(), b("svg", {
|
|
724
728
|
ref_key: "svgRef",
|
|
725
729
|
ref: ne,
|
|
726
|
-
xmlns: n(
|
|
727
|
-
class: B({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value, resizing:
|
|
730
|
+
xmlns: n(ll),
|
|
731
|
+
class: B({ "vue-data-ui-fullscreen--on": R.value, "vue-data-ui-fulscreen--off": !R.value, resizing: oe.value || n(T) }),
|
|
728
732
|
viewBox: `0 0 ${d.value.width <= 0 ? 10 : d.value.width} ${d.value.height <= 0 ? 10 : d.value.height}`,
|
|
729
733
|
style: M(`max-width:100%;overflow:hidden;background:transparent;color:${e.value.style.chart.color}`)
|
|
730
734
|
}, [
|
|
731
|
-
ee(n(
|
|
735
|
+
ee(n(kt)),
|
|
732
736
|
t.$slots["chart-background"] ? (u(), b("foreignObject", {
|
|
733
737
|
key: 0,
|
|
734
738
|
x: 0,
|
|
@@ -740,181 +744,181 @@ ${ce({
|
|
|
740
744
|
}
|
|
741
745
|
}, [
|
|
742
746
|
c(t.$slots, "chart-background", {}, void 0, !0)
|
|
743
|
-
], 8,
|
|
747
|
+
], 8, _l)) : y("", !0),
|
|
744
748
|
m("defs", null, [
|
|
745
|
-
(u(!0), b(te, null, be(
|
|
749
|
+
(u(!0), b(te, null, be(w.value, (l, a) => (u(), b("radialGradient", {
|
|
746
750
|
cx: "50%",
|
|
747
751
|
cy: "30%",
|
|
748
752
|
r: "50%",
|
|
749
753
|
fx: "50%",
|
|
750
754
|
fy: "50%",
|
|
751
|
-
id: `gradient_${
|
|
755
|
+
id: `gradient_${A.value}_${a}`
|
|
752
756
|
}, [
|
|
753
757
|
m("stop", {
|
|
754
758
|
offset: "0%",
|
|
755
|
-
"stop-color": n(
|
|
756
|
-
}, null, 8,
|
|
759
|
+
"stop-color": n(ol)(n(al)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
760
|
+
}, null, 8, Ol),
|
|
757
761
|
m("stop", {
|
|
758
762
|
offset: "100%",
|
|
759
763
|
"stop-color": l.color
|
|
760
|
-
}, null, 8,
|
|
761
|
-
], 8,
|
|
764
|
+
}, null, 8, El)
|
|
765
|
+
], 8, Dl))), 256))
|
|
762
766
|
]),
|
|
763
|
-
t.$slots.pattern ? (u(), b("g",
|
|
764
|
-
(u(!0), b(te, null, be(
|
|
765
|
-
c(t.$slots, "pattern", Qe({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${
|
|
767
|
+
t.$slots.pattern ? (u(), b("g", Bl, [
|
|
768
|
+
(u(!0), b(te, null, be(w.value, (l) => (u(), b("defs", null, [
|
|
769
|
+
c(t.$slots, "pattern", Qe({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${A.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
766
770
|
]))), 256))
|
|
767
771
|
])) : y("", !0),
|
|
768
|
-
(u(!0), b(te, null, be(
|
|
772
|
+
(u(!0), b(te, null, be(w.value, (l, a) => (u(), b("g", null, [
|
|
769
773
|
m("circle", {
|
|
770
774
|
class: B({
|
|
771
|
-
"vue-ui-rings-item":
|
|
772
|
-
"vue-rings-item-onload": !
|
|
773
|
-
"vue-ui-rings-opacity": p.value !== null && p.value !==
|
|
775
|
+
"vue-ui-rings-item": k.value && e.value.useCssAnimation,
|
|
776
|
+
"vue-rings-item-onload": !k.value && e.value.useCssAnimation && !n(T),
|
|
777
|
+
"vue-ui-rings-opacity": p.value !== null && p.value !== a
|
|
774
778
|
}),
|
|
775
|
-
style: M(`animation-delay:${
|
|
779
|
+
style: M(`animation-delay:${a * 100}ms`),
|
|
776
780
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
777
781
|
cx: x.value.x,
|
|
778
|
-
cy: X(l,
|
|
782
|
+
cy: X(l, a),
|
|
779
783
|
r: H(l),
|
|
780
784
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
781
|
-
}, null, 14,
|
|
785
|
+
}, null, 14, Pl),
|
|
782
786
|
m("circle", {
|
|
783
787
|
class: B({
|
|
784
|
-
"vue-ui-rings-item":
|
|
785
|
-
"vue-rings-item-onload": !
|
|
788
|
+
"vue-ui-rings-item": k.value && e.value.useCssAnimation,
|
|
789
|
+
"vue-rings-item-onload": !k.value && e.value.useCssAnimation && !n(T),
|
|
786
790
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
787
|
-
"vue-ui-rings-blur": p.value !== null && p.value !==
|
|
791
|
+
"vue-ui-rings-blur": p.value !== null && p.value !== a
|
|
788
792
|
}),
|
|
789
|
-
style: M(`animation-delay:${
|
|
793
|
+
style: M(`animation-delay:${a * 100}ms`),
|
|
790
794
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
791
795
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
792
796
|
cx: x.value.x,
|
|
793
|
-
cy: X(l,
|
|
797
|
+
cy: X(l, a),
|
|
794
798
|
r: H(l),
|
|
795
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${
|
|
796
|
-
}, null, 14,
|
|
799
|
+
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${A.value}_${a})` : l.color
|
|
800
|
+
}, null, 14, Il),
|
|
797
801
|
t.$slots.pattern ? (u(), b("circle", {
|
|
798
802
|
key: 0,
|
|
799
803
|
class: B({
|
|
800
|
-
"vue-ui-rings-item":
|
|
801
|
-
"vue-rings-item-onload": !
|
|
804
|
+
"vue-ui-rings-item": k.value && e.value.useCssAnimation,
|
|
805
|
+
"vue-rings-item-onload": !k.value && e.value.useCssAnimation && !n(T),
|
|
802
806
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
803
|
-
"vue-ui-rings-blur": p.value !== null && p.value !==
|
|
807
|
+
"vue-ui-rings-blur": p.value !== null && p.value !== a
|
|
804
808
|
}),
|
|
805
|
-
style: M(`animation-delay:${
|
|
809
|
+
style: M(`animation-delay:${a * 100}ms`),
|
|
806
810
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
807
811
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
808
812
|
cx: x.value.x,
|
|
809
|
-
cy: X(l,
|
|
813
|
+
cy: X(l, a),
|
|
810
814
|
r: H(l),
|
|
811
|
-
fill: `url(#pattern_${
|
|
812
|
-
}, null, 14,
|
|
815
|
+
fill: `url(#pattern_${A.value}_${l.absoluteIndex})`
|
|
816
|
+
}, null, 14, Nl)) : y("", !0),
|
|
813
817
|
m("circle", {
|
|
814
818
|
stroke: "none",
|
|
815
819
|
cx: x.value.x,
|
|
816
|
-
cy: X(l,
|
|
820
|
+
cy: X(l, a),
|
|
817
821
|
r: H(l),
|
|
818
822
|
fill: "transparent",
|
|
819
|
-
onMouseenter: (s) => je(l,
|
|
820
|
-
onMouseleave: (s) => Ue(l,
|
|
821
|
-
onClick: (s) => We(l,
|
|
822
|
-
}, null, 40,
|
|
823
|
+
onMouseenter: (s) => je(l, a),
|
|
824
|
+
onMouseleave: (s) => Ue(l, a),
|
|
825
|
+
onClick: (s) => We(l, a)
|
|
826
|
+
}, null, 40, zl),
|
|
823
827
|
g.value.showLabels ? (u(), b(te, { key: 1 }, [
|
|
824
828
|
m("rect", {
|
|
825
|
-
x: e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? _(l,
|
|
826
|
-
y: _(l,
|
|
827
|
-
width: Math.abs(x.value.x - _(l,
|
|
829
|
+
x: e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? _(l, a).x : x.value.x,
|
|
830
|
+
y: _(l, a).y - e.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
|
|
831
|
+
width: Math.abs(x.value.x - _(l, a).x),
|
|
828
832
|
height: e.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
829
833
|
fill: e.value.style.chart.layout.labels.dataLabels.markers.stroke,
|
|
830
834
|
rx: e.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
831
835
|
class: B({
|
|
832
|
-
"vue-ui-rings-item":
|
|
833
|
-
"vue-rings-item-onload": !
|
|
836
|
+
"vue-ui-rings-item": k.value && e.value.useCssAnimation,
|
|
837
|
+
"vue-rings-item-onload": !k.value && e.value.useCssAnimation && !n(T),
|
|
834
838
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
835
|
-
"vue-ui-rings-blur": p.value !== null && p.value !==
|
|
839
|
+
"vue-ui-rings-blur": p.value !== null && p.value !== a
|
|
836
840
|
})
|
|
837
|
-
}, null, 10,
|
|
841
|
+
}, null, 10, Rl),
|
|
838
842
|
m("circle", {
|
|
839
|
-
cx: _(l,
|
|
840
|
-
cy: _(l,
|
|
843
|
+
cx: _(l, a).x,
|
|
844
|
+
cy: _(l, a).y,
|
|
841
845
|
r: e.value.style.chart.layout.labels.dataLabels.markers.radius,
|
|
842
846
|
fill: l.color,
|
|
843
847
|
stroke: e.value.style.chart.backgroundColor,
|
|
844
848
|
class: B({
|
|
845
|
-
"vue-ui-rings-item":
|
|
846
|
-
"vue-rings-item-onload": !
|
|
849
|
+
"vue-ui-rings-item": k.value && e.value.useCssAnimation,
|
|
850
|
+
"vue-rings-item-onload": !k.value && e.value.useCssAnimation && !n(T),
|
|
847
851
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
848
|
-
"vue-ui-rings-blur": p.value !== null && p.value !==
|
|
852
|
+
"vue-ui-rings-blur": p.value !== null && p.value !== a
|
|
849
853
|
})
|
|
850
|
-
}, null, 10,
|
|
854
|
+
}, null, 10, Ml),
|
|
851
855
|
m("text", {
|
|
852
|
-
x: _(l,
|
|
853
|
-
y: _(l,
|
|
856
|
+
x: _(l, a).x + (e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -e.value.style.chart.layout.labels.dataLabels.offsetX : e.value.style.chart.layout.labels.dataLabels.offsetX),
|
|
857
|
+
y: _(l, a).y + e.value.style.chart.layout.labels.dataLabels.fontSize / 3,
|
|
854
858
|
"text-anchor": e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
|
|
855
859
|
"font-size": e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
856
860
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
857
861
|
"font-weight": e.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
|
|
858
862
|
class: B({
|
|
859
|
-
"vue-ui-rings-item":
|
|
860
|
-
"vue-rings-item-onload": !
|
|
863
|
+
"vue-ui-rings-item": k.value && e.value.useCssAnimation,
|
|
864
|
+
"vue-rings-item-onload": !k.value && e.value.useCssAnimation && !n(T),
|
|
861
865
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
862
|
-
"vue-ui-rings-blur": p.value !== null && p.value !==
|
|
866
|
+
"vue-ui-rings-blur": p.value !== null && p.value !== a
|
|
863
867
|
}),
|
|
864
|
-
onMouseenter: (s) => je(l,
|
|
865
|
-
onMouseleave: (s) => Ue(l,
|
|
866
|
-
onClick: (s) => We(l,
|
|
867
|
-
innerHTML: n(
|
|
868
|
-
content:
|
|
868
|
+
onMouseenter: (s) => je(l, a),
|
|
869
|
+
onMouseleave: (s) => Ue(l, a),
|
|
870
|
+
onClick: (s) => We(l, a),
|
|
871
|
+
innerHTML: n(sl)({
|
|
872
|
+
content: Pt(l),
|
|
869
873
|
fontSize: e.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
870
874
|
fill: e.value.style.chart.layout.labels.dataLabels.color,
|
|
871
|
-
x: _(l,
|
|
872
|
-
y: _(l,
|
|
875
|
+
x: _(l, a).x + (e.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -e.value.style.chart.layout.labels.dataLabels.offsetX - 6 - e.value.style.chart.layout.labels.dataLabels.markers.radius : e.value.style.chart.layout.labels.dataLabels.offsetX + 6 + e.value.style.chart.layout.labels.dataLabels.markers.radius),
|
|
876
|
+
y: _(l, a).y + e.value.style.chart.layout.labels.dataLabels.fontSize / 3,
|
|
873
877
|
translateY: !0
|
|
874
878
|
})
|
|
875
|
-
}, null, 42,
|
|
879
|
+
}, null, 42, Vl)
|
|
876
880
|
], 64)) : y("", !0)
|
|
877
881
|
]))), 256)),
|
|
878
882
|
c(t.$slots, "svg", { svg: d.value }, void 0, !0)
|
|
879
|
-
], 14,
|
|
880
|
-
t.$slots.watermark ? (u(), b("div",
|
|
883
|
+
], 14, Sl)),
|
|
884
|
+
t.$slots.watermark ? (u(), b("div", Wl, [
|
|
881
885
|
c(t.$slots, "watermark", $(L({ isPrinting: n(Pe) || n(Ie) })), void 0, !0)
|
|
882
886
|
])) : y("", !0),
|
|
883
887
|
m("div", {
|
|
884
|
-
id: `legend-bottom-${
|
|
885
|
-
}, null, 8,
|
|
886
|
-
Se.value ? (u(), P(
|
|
888
|
+
id: `legend-bottom-${A.value}`
|
|
889
|
+
}, null, 8, Ul),
|
|
890
|
+
Se.value ? (u(), P(Yt, {
|
|
887
891
|
key: 5,
|
|
888
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
892
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${A.value}` : `#legend-bottom-${A.value}`
|
|
889
893
|
}, [
|
|
890
894
|
m("div", {
|
|
891
895
|
ref_key: "chartLegend",
|
|
892
|
-
ref:
|
|
896
|
+
ref: we
|
|
893
897
|
}, [
|
|
894
|
-
e.value.style.chart.legend.show ? (u(), P(
|
|
898
|
+
e.value.style.chart.legend.show ? (u(), P(Ll, {
|
|
895
899
|
key: `legend_${xe.value}`,
|
|
896
900
|
legendSet: ie.value,
|
|
897
|
-
config:
|
|
898
|
-
onClickMarker:
|
|
901
|
+
config: Et.value,
|
|
902
|
+
onClickMarker: o[0] || (o[0] = ({ legend: l }) => j(l.uid))
|
|
899
903
|
}, ge({
|
|
900
|
-
item: i(({ legend: l, index:
|
|
904
|
+
item: i(({ legend: l, index: a }) => [
|
|
901
905
|
n(T) ? y("", !0) : (u(), b("div", {
|
|
902
906
|
key: 0,
|
|
903
907
|
onClick: (s) => j(l.uid),
|
|
904
908
|
style: M(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
|
|
905
|
-
}, fe(l.display), 13,
|
|
909
|
+
}, fe(l.display), 13, jl))
|
|
906
910
|
]),
|
|
907
911
|
_: 2
|
|
908
912
|
}, [
|
|
909
913
|
t.$slots.pattern ? {
|
|
910
914
|
name: "legend-pattern",
|
|
911
|
-
fn: i(({ legend: l, index:
|
|
912
|
-
ee(
|
|
915
|
+
fn: i(({ legend: l, index: a }) => [
|
|
916
|
+
ee(wl, {
|
|
913
917
|
shape: l.shape,
|
|
914
918
|
radius: 30,
|
|
915
919
|
stroke: "none",
|
|
916
920
|
plot: { x: 30, y: 30 },
|
|
917
|
-
fill: `url(#pattern_${
|
|
921
|
+
fill: `url(#pattern_${A.value}_${a})`
|
|
918
922
|
}, null, 8, ["shape", "fill"])
|
|
919
923
|
]),
|
|
920
924
|
key: "0"
|
|
@@ -933,9 +937,9 @@ ${ce({
|
|
|
933
937
|
}, [
|
|
934
938
|
c(t.$slots, "source", {}, void 0, !0)
|
|
935
939
|
], 512)) : y("", !0),
|
|
936
|
-
ee(n(
|
|
940
|
+
ee(n(bt), {
|
|
937
941
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
938
|
-
show: g.value.showTooltip && q.value && f.value.length <
|
|
942
|
+
show: g.value.showTooltip && q.value && f.value.length < C.dataset.length,
|
|
939
943
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
940
944
|
color: e.value.style.chart.tooltip.color,
|
|
941
945
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -962,13 +966,13 @@ ${ce({
|
|
|
962
966
|
]),
|
|
963
967
|
_: 3
|
|
964
968
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
965
|
-
|
|
969
|
+
Ce.value && e.value.userOptions.buttons.table ? (u(), P(qt(G.value.component), Qe({ key: 7 }, G.value.props, {
|
|
966
970
|
ref_key: "tableUnit",
|
|
967
971
|
ref: U,
|
|
968
972
|
onClose: qe
|
|
969
973
|
}), ge({
|
|
970
974
|
content: i(() => [
|
|
971
|
-
(u(), P(n(
|
|
975
|
+
(u(), P(n(yt), {
|
|
972
976
|
key: `table_${Fe.value}`,
|
|
973
977
|
colNames: K.value.colNames,
|
|
974
978
|
head: K.value.head,
|
|
@@ -982,7 +986,7 @@ ${ce({
|
|
|
982
986
|
m("div", {
|
|
983
987
|
innerHTML: l,
|
|
984
988
|
style: { display: "flex", "align-items": "center" }
|
|
985
|
-
}, null, 8,
|
|
989
|
+
}, null, 8, Hl)
|
|
986
990
|
]),
|
|
987
991
|
td: i(({ td: l }) => [
|
|
988
992
|
Ze(fe(l.name || l), 1)
|
|
@@ -1005,9 +1009,9 @@ ${ce({
|
|
|
1005
1009
|
m("button", {
|
|
1006
1010
|
tabindex: "0",
|
|
1007
1011
|
class: "vue-ui-user-options-button",
|
|
1008
|
-
onClick:
|
|
1012
|
+
onClick: o[1] || (o[1] = (l) => de(e.value.userOptions.callbacks.csv))
|
|
1009
1013
|
}, [
|
|
1010
|
-
ee(n(
|
|
1014
|
+
ee(n(ft), {
|
|
1011
1015
|
name: "excel",
|
|
1012
1016
|
stroke: G.value.props.color
|
|
1013
1017
|
}, null, 8, ["stroke"])
|
|
@@ -1016,15 +1020,15 @@ ${ce({
|
|
|
1016
1020
|
key: "1"
|
|
1017
1021
|
} : void 0
|
|
1018
1022
|
]), 1040)) : y("", !0),
|
|
1019
|
-
n(T) ? (u(), P(
|
|
1020
|
-
], 46,
|
|
1023
|
+
n(T) ? (u(), P(pl, { key: 8 })) : y("", !0)
|
|
1024
|
+
], 46, Fl));
|
|
1021
1025
|
}
|
|
1022
|
-
},
|
|
1026
|
+
}, Gl = /* @__PURE__ */ Tl(Xl, [["__scopeId", "data-v-b2df91c0"]]), vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1023
1027
|
__proto__: null,
|
|
1024
|
-
default:
|
|
1028
|
+
default: Gl
|
|
1025
1029
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1026
1030
|
export {
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1031
|
+
co as a,
|
|
1032
|
+
vo as b,
|
|
1033
|
+
Gl as v
|
|
1030
1034
|
};
|