vue-data-ui 3.25.2 → 3.25.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
- package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
- package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
- package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
- package/dist/vue-ui-donut-BfehCl28.js +0 -2413
- package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
- package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
- package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
- package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
- package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
- package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
- package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
- package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
- package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
- package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
- package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
- package/dist/vue-ui-table-CftOhYTO.js +0 -1352
- package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, Ct as n, D as r, G as i, Lt as a, Pt as o, S as ee, Ut as te, Vt as ne, Wt as re, X as s, Yt as ie, Zt as ae, b as oe, ht as se, i as ce, lt as le, nt as ue, q as de, t as fe, w as pe } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ge } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as _e } from "./usePrinter-
|
|
5
|
+
import { t as _e } from "./usePrinter-DISD7q5m.js";
|
|
6
6
|
import { n as ve, t as ye } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as be } from "./useNestedProp-
|
|
7
|
+
import { t as be } from "./useNestedProp-Chvyfpl-.js";
|
|
8
8
|
import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as Se } from "./useChartExport-iwOqiIWX.js";
|
|
10
10
|
import { t as Ce } from "./useTransitions-g_zBREk2.js";
|
|
11
|
-
import { t as we } from "./img-
|
|
12
|
-
import { n as Te } from "./Title-
|
|
13
|
-
import { t as Ee } from "./Shape-
|
|
11
|
+
import { t as we } from "./img-DhGApYG0.js";
|
|
12
|
+
import { n as Te } from "./Title-CPHi-evi.js";
|
|
13
|
+
import { t as Ee } from "./Shape-CIqU-p2F.js";
|
|
14
14
|
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
15
|
import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
|
|
16
16
|
import { t as Ae } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
-
import { t as je } from "./BaseLegendToggle-
|
|
17
|
+
import { t as je } from "./BaseLegendToggle-__JnV08B.js";
|
|
18
18
|
import { t as Me } from "./A11yDataTable-DdRsVULz.js";
|
|
19
19
|
import { t as Ne } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
20
|
import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
-
import { t as Fe } from "./labelUtils-
|
|
22
|
-
import { t as Ie } from "./Legend-
|
|
21
|
+
import { t as Fe } from "./labelUtils-BXX2NzRe.js";
|
|
22
|
+
import { t as Ie } from "./Legend-X4kF4PvW.js";
|
|
23
23
|
import { t as Le } from "./vue_ui_rings-BVgD2aMn.js";
|
|
24
24
|
import { Fragment as Re, Teleport as ze, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as p, guardReactiveProps as m, mergeProps as Ue, nextTick as We, normalizeClass as h, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Ge, onMounted as Ke, openBlock as v, ref as y, renderList as qe, renderSlot as b, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as x, toRefs as Xe, unref as S, useSlots as Ze, watch as Qe, withCtx as C } from "vue";
|
|
25
25
|
//#region src/components/vue-ui-rings.vue
|
|
@@ -108,12 +108,12 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
108
108
|
},
|
|
109
109
|
emits: ["selectLegend", "copyAlt"],
|
|
110
110
|
setup(e, { expose: De, emit: $e }) {
|
|
111
|
-
let bt = p(() => import("./Tooltip-
|
|
111
|
+
let bt = p(() => import("./Tooltip-hhrkQ3Lk.js")), xt = p(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), St = p(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), Ct = p(() => import("./DataTable-COIO9gi4.js")), wt = p(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Tt = p(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Et = p(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), Dt = p(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_rings: Ot } = ge(), { isThemeValid: kt, warnInvalidTheme: At } = xe(), jt = Ze(), w = e, T = y(!1), Mt = c(() => !!w.dataset && w.dataset.length), E = y(de()), D = y(!1), Nt = y(""), O = y(null), Pt = y(0), k = y(null), Ft = y(null), It = y(null), Lt = y(null), Rt = y(null), zt = y(0), Bt = y(0), Vt = y(0), Ht = y(!1), Ut = y(!1), A = y(null), Wt = y(null), j = y(null), Gt = y({
|
|
112
112
|
x: 0,
|
|
113
113
|
y: 0
|
|
114
|
-
}),
|
|
114
|
+
}), M = y("pointer"), Kt = y(!1), N = y($t());
|
|
115
115
|
me({
|
|
116
|
-
config: () =>
|
|
116
|
+
config: () => N.value,
|
|
117
117
|
dataset: () => w.dataset,
|
|
118
118
|
component: "VueUiRings",
|
|
119
119
|
rules: [
|
|
@@ -133,10 +133,10 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
133
133
|
}
|
|
134
134
|
]
|
|
135
135
|
});
|
|
136
|
-
let { transitionEnabled:
|
|
137
|
-
config: () =>
|
|
136
|
+
let { transitionEnabled: P } = Ce({
|
|
137
|
+
config: () => N.value.transitions,
|
|
138
138
|
dataset: () => w.dataset
|
|
139
|
-
}),
|
|
139
|
+
}), F = c(() => N.value.userOptions.useCursorPointer), qt = c(() => ae({
|
|
140
140
|
defaultConfig: {
|
|
141
141
|
userOptions: { show: !1 },
|
|
142
142
|
table: { show: !1 },
|
|
@@ -152,11 +152,11 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
152
152
|
legend: { backgroundColor: "transparent" }
|
|
153
153
|
} }
|
|
154
154
|
},
|
|
155
|
-
userConfig:
|
|
156
|
-
})), { loading:
|
|
155
|
+
userConfig: N.value.skeletonConfig ?? {}
|
|
156
|
+
})), { loading: I, FINAL_DATASET: Jt, manualLoading: Yt } = ve({
|
|
157
157
|
...Xe(w),
|
|
158
|
-
FINAL_CONFIG:
|
|
159
|
-
prepareConfig:
|
|
158
|
+
FINAL_CONFIG: N,
|
|
159
|
+
prepareConfig: $t,
|
|
160
160
|
skeletonDataset: w.config?.skeletonDataset ?? [
|
|
161
161
|
{
|
|
162
162
|
name: "_",
|
|
@@ -185,11 +185,11 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
185
185
|
}
|
|
186
186
|
],
|
|
187
187
|
skeletonConfig: ae({
|
|
188
|
-
defaultConfig:
|
|
189
|
-
userConfig:
|
|
188
|
+
defaultConfig: N.value,
|
|
189
|
+
userConfig: qt.value
|
|
190
190
|
})
|
|
191
|
-
}), { userOptionsVisible:
|
|
192
|
-
function
|
|
191
|
+
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = Ne({ config: N.value }), { svgRef: L } = Pe({ config: N.value.style.chart.title });
|
|
192
|
+
function $t() {
|
|
193
193
|
let e = be({
|
|
194
194
|
userConfig: w.config,
|
|
195
195
|
defaultConfig: Ot
|
|
@@ -205,41 +205,41 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
205
205
|
userConfig: w.config,
|
|
206
206
|
defaultConfig: n
|
|
207
207
|
}),
|
|
208
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
208
|
+
customPalette: e.customPalette.length ? e.customPalette : ie[e.theme] || a
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
Qe(() => w.config, (e) => {
|
|
212
|
-
|
|
212
|
+
I.value || (N.value = $t()), Xt.value = !N.value.userOptions.showOnChartHover, tn(), zt.value += 1, Bt.value += 1, Vt.value += 1, H.value.showTable = N.value.table.show, H.value.showTooltip = N.value.style.chart.tooltip.show, H.value.showLabels = N.value.style.chart.layout.labels.dataLabels.show, U.value.width = N.value.style.chart.size, U.value.height = N.value.style.chart.size;
|
|
213
213
|
}, { deep: !0 });
|
|
214
|
-
let
|
|
215
|
-
let { markers: e } =
|
|
214
|
+
let en = c(() => {
|
|
215
|
+
let { markers: e } = N.value.style.chart.layout.labels.dataLabels, t = J.value / 2, n = H.value.showLabels ? e.position === "left" ? t : -t : 0, r = H.value.showLabels ? U.value.width / 2 - t : 0, i = e.position === "left" ? r : -r;
|
|
216
216
|
return {
|
|
217
|
-
x:
|
|
218
|
-
y: 0 /
|
|
217
|
+
x: N.value.responsive ? i : n / N.value.style.chart.size * U.value.width,
|
|
218
|
+
y: 0 / N.value.style.chart.size * U.value.height
|
|
219
219
|
};
|
|
220
|
-
}),
|
|
221
|
-
x:
|
|
222
|
-
y:
|
|
220
|
+
}), R = c(() => ({
|
|
221
|
+
x: U.value.width / 2 + en.value.x,
|
|
222
|
+
y: U.value.height / 2 + en.value.y
|
|
223
223
|
}));
|
|
224
224
|
Qe(() => w.dataset, (e) => {
|
|
225
|
-
Array.isArray(e) && e.length > 0 && (
|
|
225
|
+
Array.isArray(e) && e.length > 0 && (Yt.value = !1);
|
|
226
226
|
}, { deep: !0 });
|
|
227
|
-
let
|
|
227
|
+
let z = Ye(null), B = Ye(null);
|
|
228
228
|
Ke(() => {
|
|
229
|
-
Ut.value = !0,
|
|
229
|
+
Ut.value = !0, tn();
|
|
230
230
|
});
|
|
231
|
-
let
|
|
232
|
-
function
|
|
233
|
-
if (
|
|
231
|
+
let V = c(() => N.value.debug);
|
|
232
|
+
function tn() {
|
|
233
|
+
if (o(w.dataset) ? (ue({
|
|
234
234
|
componentName: "VueUiRings",
|
|
235
235
|
type: "dataset",
|
|
236
|
-
debug:
|
|
237
|
-
}),
|
|
236
|
+
debug: V.value
|
|
237
|
+
}), Yt.value = !0) : w.dataset.forEach((e, t) => {
|
|
238
238
|
e.values.length || (ue({
|
|
239
239
|
componentName: "VueUiRings",
|
|
240
240
|
type: "dataset",
|
|
241
|
-
debug:
|
|
242
|
-
}),
|
|
241
|
+
debug: V.value
|
|
242
|
+
}), Yt.value = !0), se({
|
|
243
243
|
datasetObject: e,
|
|
244
244
|
requiredAttributes: ["name", "values"]
|
|
245
245
|
}).forEach((e) => {
|
|
@@ -248,140 +248,140 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
248
248
|
type: "datasetSerieAttribute",
|
|
249
249
|
property: e,
|
|
250
250
|
index: t,
|
|
251
|
-
debug:
|
|
251
|
+
debug: V.value
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
|
-
}),
|
|
254
|
+
}), o(w.dataset) || (Yt.value = N.value.loading), N.value.responsive) {
|
|
255
255
|
let e = Oe(() => {
|
|
256
256
|
Ht.value = !0;
|
|
257
257
|
let { width: e, height: t } = ke({
|
|
258
258
|
chart: k.value,
|
|
259
|
-
title:
|
|
260
|
-
legend:
|
|
259
|
+
title: N.value.style.chart.title.text ? Ft.value : null,
|
|
260
|
+
legend: N.value.style.chart.legend.show ? It.value : null,
|
|
261
261
|
source: Lt.value,
|
|
262
262
|
noTitle: Rt.value
|
|
263
263
|
});
|
|
264
264
|
requestAnimationFrame(() => {
|
|
265
|
-
|
|
265
|
+
U.value.width = e, U.value.height = t - 12, Ht.value = !1;
|
|
266
266
|
});
|
|
267
267
|
});
|
|
268
|
-
|
|
268
|
+
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect()), z.value = new ResizeObserver(e), B.value = k.value.parentNode, z.value.observe(B.value);
|
|
269
269
|
}
|
|
270
270
|
setTimeout(() => {
|
|
271
271
|
T.value = !0;
|
|
272
272
|
}, 600);
|
|
273
273
|
}
|
|
274
274
|
Ge(() => {
|
|
275
|
-
|
|
275
|
+
z.value && (B.value && z.value.unobserve(B.value), z.value.disconnect());
|
|
276
276
|
});
|
|
277
|
-
let { isPrinting:
|
|
277
|
+
let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = _e({
|
|
278
278
|
elementId: `rings_${E.value}`,
|
|
279
|
-
fileName:
|
|
280
|
-
options:
|
|
281
|
-
}),
|
|
282
|
-
showTable:
|
|
283
|
-
showTooltip:
|
|
284
|
-
showLabels:
|
|
279
|
+
fileName: N.value.style.chart.title.text || "vue-ui-rings",
|
|
280
|
+
options: N.value.userOptions.print
|
|
281
|
+
}), sn = c(() => N.value.userOptions.show && !N.value.style.chart.title.text), cn = c(() => pe(N.value.customPalette)), H = y({
|
|
282
|
+
showTable: N.value.table.show,
|
|
283
|
+
showTooltip: N.value.style.chart.tooltip.show,
|
|
284
|
+
showLabels: N.value.style.chart.layout.labels.dataLabels.show
|
|
285
285
|
});
|
|
286
|
-
Qe(
|
|
287
|
-
|
|
288
|
-
showTable:
|
|
289
|
-
showTooltip:
|
|
290
|
-
showLabels:
|
|
286
|
+
Qe(N, () => {
|
|
287
|
+
H.value = {
|
|
288
|
+
showTable: N.value.table.show,
|
|
289
|
+
showTooltip: N.value.style.chart.tooltip.show,
|
|
290
|
+
showLabels: N.value.style.chart.layout.labels.dataLabels.show
|
|
291
291
|
};
|
|
292
292
|
}, { immediate: !0 });
|
|
293
|
-
let
|
|
294
|
-
height:
|
|
295
|
-
width:
|
|
296
|
-
}),
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
}),
|
|
293
|
+
let U = y({
|
|
294
|
+
height: N.value.style.chart.size,
|
|
295
|
+
width: N.value.style.chart.size
|
|
296
|
+
}), ln = c(() => Math.min(U.value.height, U.value.width)), un = $e, W = y([]);
|
|
297
|
+
function dn() {
|
|
298
|
+
W.value.length ? W.value = [] : yn.value.forEach((e) => {
|
|
299
|
+
W.value.push(e.uid);
|
|
300
|
+
}), fn();
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
|
|
302
|
+
function fn() {
|
|
303
|
+
un("selectLegend", q.value.map((e) => ({
|
|
304
304
|
name: e.name,
|
|
305
305
|
color: e.color,
|
|
306
306
|
value: e.value
|
|
307
307
|
})));
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
if (
|
|
309
|
+
function pn(e) {
|
|
310
|
+
if (W.value.includes(e)) W.value = W.value.filter((t) => t !== e);
|
|
311
311
|
else {
|
|
312
|
-
if (
|
|
313
|
-
|
|
312
|
+
if (W.value.length === G.value.length - 1) return;
|
|
313
|
+
W.value.push(e);
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
fn();
|
|
316
316
|
}
|
|
317
317
|
function mn(e) {
|
|
318
|
-
return G.value.length ? G.value.find((t) => t.name === e) || (
|
|
318
|
+
return G.value.length ? G.value.find((t) => t.name === e) || (V.value && console.warn(`VueUiRings - Series name not found "${e}"`), null) : (V.value && console.warn("VueUiRings - There are no series to show."), null);
|
|
319
319
|
}
|
|
320
320
|
function hn(e) {
|
|
321
321
|
let t = mn(e);
|
|
322
|
-
t !== null &&
|
|
322
|
+
t !== null && W.value.includes(t.uid) && pn(t.uid);
|
|
323
323
|
}
|
|
324
324
|
function gn(e) {
|
|
325
325
|
let t = mn(e);
|
|
326
|
-
t !== null && (
|
|
326
|
+
t !== null && (W.value.includes(t.uid) || pn(t.uid));
|
|
327
327
|
}
|
|
328
|
-
let _n = c(() => Math.max(...G.value.filter((e) => !
|
|
328
|
+
let _n = c(() => Math.max(...G.value.filter((e) => !W.value.includes(e.uid)).map(({ value: e }) => e)));
|
|
329
329
|
function vn(e) {
|
|
330
330
|
return e / _n.value;
|
|
331
331
|
}
|
|
332
|
-
let G = c(() =>
|
|
333
|
-
let
|
|
332
|
+
let G = c(() => Jt.value.map(({ values: e, name: t, color: n = null }, r) => {
|
|
333
|
+
let i = ne(e).reduce((e, t) => e + t, 0);
|
|
334
334
|
return {
|
|
335
335
|
name: t,
|
|
336
|
-
color:
|
|
337
|
-
value:
|
|
338
|
-
proportion:
|
|
336
|
+
color: n || ee(n) || cn.value[r] || a[r] || a[r % a.length],
|
|
337
|
+
value: i,
|
|
338
|
+
proportion: i / Jt.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0),
|
|
339
339
|
uid: de(),
|
|
340
|
-
absoluteIndex:
|
|
340
|
+
absoluteIndex: r
|
|
341
341
|
};
|
|
342
342
|
})), yn = c(() => G.value.map((e, t) => {
|
|
343
|
-
let n =
|
|
344
|
-
p:
|
|
343
|
+
let n = ce(N.value.style.chart.layout.labels.dataLabels.formatter, e.value, s({
|
|
344
|
+
p: N.value.style.chart.layout.labels.dataLabels.prefix,
|
|
345
345
|
v: e.value,
|
|
346
|
-
s:
|
|
347
|
-
r:
|
|
346
|
+
s: N.value.style.chart.layout.labels.dataLabels.suffix,
|
|
347
|
+
r: N.value.style.chart.legend.roundingValue
|
|
348
348
|
}), {
|
|
349
349
|
datapoint: e,
|
|
350
350
|
index: t
|
|
351
351
|
}), r = isNaN(e.value / K.value) ? "-" : s({
|
|
352
352
|
v: e.value / K.value * 100,
|
|
353
353
|
s: "%",
|
|
354
|
-
r:
|
|
354
|
+
r: N.value.style.chart.legend.roundingPercentage
|
|
355
355
|
}), i = wn({
|
|
356
|
-
showVal:
|
|
357
|
-
showPercentage:
|
|
356
|
+
showVal: N.value.style.chart.legend.showValue,
|
|
357
|
+
showPercentage: N.value.style.chart.legend.showPercentage,
|
|
358
358
|
val: n,
|
|
359
|
-
percentage:
|
|
359
|
+
percentage: W.value.includes(e.uid) ? "-%" : r
|
|
360
360
|
});
|
|
361
361
|
return {
|
|
362
362
|
...e,
|
|
363
363
|
shape: "circle",
|
|
364
|
-
opacity:
|
|
365
|
-
segregate: () =>
|
|
366
|
-
isSegregated:
|
|
367
|
-
display: `${e.name}${
|
|
364
|
+
opacity: W.value.includes(e.uid) ? .5 : 1,
|
|
365
|
+
segregate: () => pn(e.uid),
|
|
366
|
+
isSegregated: W.value.includes(e.uid),
|
|
367
|
+
display: `${e.name}${N.value.style.chart.legend.showPercentage || N.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
368
368
|
};
|
|
369
369
|
}).toSorted((e, t) => t.value - e.value)), bn = c(() => ({
|
|
370
370
|
cy: "rings-div-legend",
|
|
371
|
-
backgroundColor:
|
|
372
|
-
color:
|
|
373
|
-
fontSize:
|
|
371
|
+
backgroundColor: N.value.style.chart.legend.backgroundColor,
|
|
372
|
+
color: N.value.style.chart.legend.color,
|
|
373
|
+
fontSize: N.value.style.chart.legend.fontSize,
|
|
374
374
|
paddingBottom: 12,
|
|
375
|
-
fontWeight:
|
|
376
|
-
})), K = c(() => G.value.filter((e) => !
|
|
375
|
+
fontWeight: N.value.style.chart.legend.bold ? "bold" : ""
|
|
376
|
+
})), K = c(() => G.value.filter((e) => !W.value.includes(e.uid)).map(({ value: e }) => e).reduce((e, t) => e + t, 0)), q = c(() => G.value.filter((e) => !W.value.includes(e.uid)).map(({ name: e, value: t, color: n = null, uid: r, absoluteIndex: i }, o) => ({
|
|
377
377
|
absoluteIndex: i,
|
|
378
378
|
uid: r,
|
|
379
379
|
name: e,
|
|
380
|
-
color: n ||
|
|
380
|
+
color: n || ee(n) || cn.value[o] || a[o] || a[o % a.length],
|
|
381
381
|
value: t,
|
|
382
382
|
proportion: vn(t),
|
|
383
383
|
percentage: t / K.value * 100,
|
|
384
|
-
strokeWidth:
|
|
384
|
+
strokeWidth: N.value.style.chart.layout.rings.strokeWidth * vn(t)
|
|
385
385
|
})).toSorted((e, t) => t.value - e.value));
|
|
386
386
|
function xn() {
|
|
387
387
|
return q.value.map(({ name: e, color: t, value: n, absoluteValues: r, percentage: i }) => ({
|
|
@@ -392,21 +392,21 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
392
392
|
percentage: i
|
|
393
393
|
}));
|
|
394
394
|
}
|
|
395
|
-
let J = c(() =>
|
|
395
|
+
let J = c(() => ln.value - N.value.style.chart.layout.rings.strokeWidth * 2);
|
|
396
396
|
function Sn(e, t) {
|
|
397
|
-
|
|
397
|
+
N.value.events.datapointClick && N.value.events.datapointClick({
|
|
398
398
|
datapoint: e,
|
|
399
399
|
seriesIndex: t
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
function Cn(e, t) {
|
|
403
|
-
O.value = null, D.value = !1, j.value = null,
|
|
403
|
+
O.value = null, D.value = !1, j.value = null, M.value = "pointer", N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
404
404
|
datapoint: e,
|
|
405
405
|
seriesIndex: t
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
function wn({ val: e, percentage: t, showVal: n, showPercentage: r }) {
|
|
409
|
-
let i =
|
|
409
|
+
let i = N.value.style.chart.layout.labels.dataLabels;
|
|
410
410
|
return Fe({
|
|
411
411
|
config: i,
|
|
412
412
|
val: e,
|
|
@@ -416,7 +416,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
418
|
function Tn(e) {
|
|
419
|
-
let t =
|
|
419
|
+
let t = N.value.style.chart.layout.labels.dataLabels, n = ce(t.formatter, e.value, s({
|
|
420
420
|
p: t.prefix,
|
|
421
421
|
v: e.value,
|
|
422
422
|
s: t.suffix,
|
|
@@ -437,57 +437,57 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
437
437
|
return oe(J.value * e.proportion / 2 * .9 <= 0 ? 1e-4 : J.value * e.proportion / 2 * .9);
|
|
438
438
|
}
|
|
439
439
|
function Dn(e, t) {
|
|
440
|
-
return t === 0 ?
|
|
440
|
+
return t === 0 ? R.value.y : R.value.y + J.value * q.value[0].proportion / 2 - J.value * e.proportion / 2 - 2 * (t + 1);
|
|
441
441
|
}
|
|
442
442
|
function Y(e, t) {
|
|
443
|
-
let n =
|
|
443
|
+
let n = N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -(J.value / 2) : J.value / 2;
|
|
444
444
|
return {
|
|
445
|
-
x:
|
|
445
|
+
x: R.value.x + n,
|
|
446
446
|
y: Dn(e, t) - En(e)
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
let On = y(null);
|
|
450
|
-
function kn(e, t,
|
|
451
|
-
if (
|
|
450
|
+
function kn(e, t, r = "pointer") {
|
|
451
|
+
if (N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
452
452
|
datapoint: e,
|
|
453
453
|
seriesIndex: t
|
|
454
|
-
}),
|
|
454
|
+
}), W.value.length === w.dataset.length) return;
|
|
455
455
|
On.value = {
|
|
456
456
|
datapoint: e,
|
|
457
457
|
seriesIndex: t,
|
|
458
458
|
series: q.value,
|
|
459
|
-
config:
|
|
460
|
-
}, O.value = t, j.value = t,
|
|
461
|
-
let
|
|
462
|
-
if (
|
|
459
|
+
config: N.value
|
|
460
|
+
}, O.value = t, j.value = t, M.value = r;
|
|
461
|
+
let i = q.value[t], a = N.value.style.chart.tooltip.customFormat;
|
|
462
|
+
if (n(a) && le(() => a({
|
|
463
463
|
seriesIndex: t,
|
|
464
464
|
datapoint: e,
|
|
465
465
|
series: q.value,
|
|
466
|
-
config:
|
|
467
|
-
}))) Nt.value =
|
|
466
|
+
config: N.value
|
|
467
|
+
}))) Nt.value = a({
|
|
468
468
|
seriesIndex: t,
|
|
469
469
|
datapoint: e,
|
|
470
470
|
series: q.value,
|
|
471
|
-
config:
|
|
471
|
+
config: N.value
|
|
472
472
|
});
|
|
473
473
|
else {
|
|
474
474
|
let n = "";
|
|
475
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
476
|
-
showVal:
|
|
477
|
-
showPercentage:
|
|
478
|
-
val: `<span>${
|
|
479
|
-
p:
|
|
480
|
-
v:
|
|
481
|
-
s:
|
|
482
|
-
r:
|
|
475
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${N.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${i.name}</div>`, n += `<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="${i.color}" />${jt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${E.value}_${e.absoluteIndex})" />` : ""}</svg>`, n += `<b>${wn({
|
|
476
|
+
showVal: N.value.style.chart.tooltip.showValue,
|
|
477
|
+
showPercentage: N.value.style.chart.tooltip.showPercentage,
|
|
478
|
+
val: `<span>${ce(N.value.style.chart.layout.labels.dataLabels.formatter, i.value, s({
|
|
479
|
+
p: N.value.style.chart.layout.labels.dataLabels.prefix,
|
|
480
|
+
v: i.value,
|
|
481
|
+
s: N.value.style.chart.layout.labels.dataLabels.suffix,
|
|
482
|
+
r: N.value.style.chart.tooltip.roundingValue
|
|
483
483
|
}), {
|
|
484
484
|
datapoint: e,
|
|
485
485
|
seriesIndex: t
|
|
486
486
|
})}</span>`,
|
|
487
487
|
percentage: s({
|
|
488
|
-
v:
|
|
488
|
+
v: i.value / K.value * 100,
|
|
489
489
|
s: "%",
|
|
490
|
-
r:
|
|
490
|
+
r: N.value.style.chart.tooltip.roundingPercentage
|
|
491
491
|
})
|
|
492
492
|
})}</b></div>`, Nt.value = n;
|
|
493
493
|
}
|
|
@@ -503,10 +503,10 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
503
503
|
let e = [
|
|
504
504
|
"__SUM__",
|
|
505
505
|
s({
|
|
506
|
-
p:
|
|
506
|
+
p: N.value.style.chart.layout.labels.dataLabels.prefix,
|
|
507
507
|
v: K.value,
|
|
508
|
-
s:
|
|
509
|
-
r:
|
|
508
|
+
s: N.value.style.chart.layout.labels.dataLabels.suffix,
|
|
509
|
+
r: N.value.table.td.roundingValue
|
|
510
510
|
}),
|
|
511
511
|
"100%"
|
|
512
512
|
], t = X.value.head.map((e, t) => [
|
|
@@ -515,12 +515,12 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
515
515
|
name: e.name
|
|
516
516
|
},
|
|
517
517
|
s({
|
|
518
|
-
p:
|
|
518
|
+
p: N.value.style.chart.layout.labels.dataLabels.prefix,
|
|
519
519
|
v: X.value.body[t],
|
|
520
|
-
s:
|
|
521
|
-
r:
|
|
520
|
+
s: N.value.style.chart.layout.labels.dataLabels.suffix,
|
|
521
|
+
r: N.value.table.td.roundingValue
|
|
522
522
|
}),
|
|
523
|
-
isNaN(X.value.body[t] / K.value) ? "-" : (X.value.body[t] / K.value * 100).toFixed(
|
|
523
|
+
isNaN(X.value.body[t] / K.value) ? "-" : (X.value.body[t] / K.value * 100).toFixed(N.value.table.td.roundingPercentage) + "%"
|
|
524
524
|
]);
|
|
525
525
|
return {
|
|
526
526
|
head: e,
|
|
@@ -528,21 +528,21 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
528
528
|
a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.name : e)),
|
|
529
529
|
config: {
|
|
530
530
|
th: {
|
|
531
|
-
backgroundColor:
|
|
532
|
-
color:
|
|
533
|
-
outline:
|
|
531
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
532
|
+
color: N.value.table.th.color,
|
|
533
|
+
outline: N.value.table.th.outline
|
|
534
534
|
},
|
|
535
535
|
td: {
|
|
536
|
-
backgroundColor:
|
|
537
|
-
color:
|
|
538
|
-
outline:
|
|
536
|
+
backgroundColor: N.value.table.td.backgroundColor,
|
|
537
|
+
color: N.value.table.td.color,
|
|
538
|
+
outline: N.value.table.td.outline
|
|
539
539
|
},
|
|
540
|
-
breakpoint:
|
|
540
|
+
breakpoint: N.value.table.responsiveBreakpoint
|
|
541
541
|
},
|
|
542
542
|
colNames: [
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
543
|
+
N.value.table.columnNames.series,
|
|
544
|
+
N.value.table.columnNames.value,
|
|
545
|
+
N.value.table.columnNames.percentage
|
|
546
546
|
]
|
|
547
547
|
};
|
|
548
548
|
});
|
|
@@ -553,8 +553,8 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
553
553
|
[X.value.body[t]],
|
|
554
554
|
[isNaN(X.value.body[t] / K.value) ? "-" : X.value.body[t] / K.value * 100]
|
|
555
555
|
]), i = [
|
|
556
|
-
[
|
|
557
|
-
[
|
|
556
|
+
[N.value.style.chart.title.text],
|
|
557
|
+
[N.value.style.chart.title.subtitle.text],
|
|
558
558
|
[
|
|
559
559
|
[""],
|
|
560
560
|
["val"],
|
|
@@ -563,7 +563,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
563
563
|
].concat(n), a = r(i);
|
|
564
564
|
e ? e(a) : t({
|
|
565
565
|
csvContent: a,
|
|
566
|
-
title:
|
|
566
|
+
title: N.value.style.chart.title.text || "vue-ui-rings"
|
|
567
567
|
});
|
|
568
568
|
});
|
|
569
569
|
}
|
|
@@ -572,13 +572,13 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
572
572
|
Q.value = e, Pt.value += 1;
|
|
573
573
|
}
|
|
574
574
|
function Mn() {
|
|
575
|
-
|
|
575
|
+
H.value.showTable = !H.value.showTable;
|
|
576
576
|
}
|
|
577
577
|
function Nn() {
|
|
578
|
-
|
|
578
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
579
579
|
}
|
|
580
580
|
function Pn() {
|
|
581
|
-
|
|
581
|
+
H.value.showLabels = !H.value.showLabels;
|
|
582
582
|
}
|
|
583
583
|
let Fn = y(!1);
|
|
584
584
|
function In() {
|
|
@@ -595,86 +595,86 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
595
595
|
return {
|
|
596
596
|
imageUri: i,
|
|
597
597
|
base64: a,
|
|
598
|
-
title:
|
|
598
|
+
title: N.value.style.chart.title.text,
|
|
599
599
|
width: t,
|
|
600
600
|
height: n,
|
|
601
601
|
aspectRatio: r
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
let $ = c(() => {
|
|
605
|
-
let e =
|
|
605
|
+
let e = N.value.table.useDialog && !N.value.table.show, t = H.value.showTable;
|
|
606
606
|
return {
|
|
607
607
|
component: e ? Dt : St,
|
|
608
|
-
title: `${
|
|
608
|
+
title: `${N.value.style.chart.title.text}${N.value.style.chart.title.subtitle.text ? `: ${N.value.style.chart.title.subtitle.text}` : ""}`,
|
|
609
609
|
props: e ? {
|
|
610
|
-
backgroundColor:
|
|
611
|
-
color:
|
|
612
|
-
headerColor:
|
|
613
|
-
headerBg:
|
|
610
|
+
backgroundColor: N.value.table.th.backgroundColor,
|
|
611
|
+
color: N.value.table.th.color,
|
|
612
|
+
headerColor: N.value.table.th.color,
|
|
613
|
+
headerBg: N.value.table.th.backgroundColor,
|
|
614
614
|
isFullscreen: Q.value,
|
|
615
615
|
fullscreenParent: k.value,
|
|
616
616
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
617
|
-
isCursorPointer:
|
|
617
|
+
isCursorPointer: F.value
|
|
618
618
|
} : {
|
|
619
619
|
hideDetails: !0,
|
|
620
620
|
config: {
|
|
621
621
|
open: t,
|
|
622
622
|
maxHeight: 1e4,
|
|
623
623
|
body: {
|
|
624
|
-
backgroundColor:
|
|
625
|
-
color:
|
|
624
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
625
|
+
color: N.value.style.chart.color
|
|
626
626
|
},
|
|
627
627
|
head: {
|
|
628
|
-
backgroundColor:
|
|
629
|
-
color:
|
|
628
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
629
|
+
color: N.value.style.chart.color
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
633
|
};
|
|
634
634
|
});
|
|
635
|
-
Qe(() =>
|
|
636
|
-
|
|
635
|
+
Qe(() => H.value.showTable, (e) => {
|
|
636
|
+
N.value.table.show || (e && N.value.table.useDialog && A.value ? A.value.open() : "close" in A.value && A.value.close());
|
|
637
637
|
});
|
|
638
638
|
function Rn() {
|
|
639
|
-
|
|
639
|
+
H.value.showTable = !1, Wt.value && Wt.value.setTableIconState(!1);
|
|
640
640
|
}
|
|
641
641
|
let zn = c(() => yn.value.map((e) => ({
|
|
642
642
|
...e,
|
|
643
643
|
name: e.display
|
|
644
|
-
}))), Bn = c(() =>
|
|
645
|
-
svg:
|
|
644
|
+
}))), Bn = c(() => N.value.style.chart.backgroundColor), Vn = c(() => N.value.style.chart.legend), Hn = c(() => N.value.style.chart.title), { isCallbackImaging: Un, isCallbackSvg: Wn, generateSvg: Gn, onGenerateImage: Kn } = Se({
|
|
645
|
+
svg: L,
|
|
646
646
|
title: Hn,
|
|
647
647
|
legend: Vn,
|
|
648
648
|
legendItems: zn,
|
|
649
649
|
backgroundColor: Bn,
|
|
650
|
-
getSvgCallback: () =>
|
|
651
|
-
generateImage:
|
|
650
|
+
getSvgCallback: () => N.value.userOptions.callbacks.svg,
|
|
651
|
+
generateImage: on
|
|
652
652
|
});
|
|
653
653
|
async function qn() {
|
|
654
|
-
if (
|
|
655
|
-
config:
|
|
654
|
+
if (un("copyAlt", {
|
|
655
|
+
config: N.value,
|
|
656
656
|
dataset: q.value
|
|
657
|
-
}), !
|
|
657
|
+
}), !N.value.userOptions.callbacks.altCopy) {
|
|
658
658
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
659
659
|
return;
|
|
660
660
|
}
|
|
661
|
-
await Promise.resolve(
|
|
662
|
-
config:
|
|
661
|
+
await Promise.resolve(N.value.userOptions.callbacks.altCopy({
|
|
662
|
+
config: N.value,
|
|
663
663
|
dataset: q.value
|
|
664
664
|
}));
|
|
665
665
|
}
|
|
666
666
|
function Jn() {
|
|
667
|
-
j.value = null,
|
|
667
|
+
j.value = null, Kt.value = !0;
|
|
668
668
|
}
|
|
669
669
|
function Yn() {
|
|
670
|
-
j.value = null,
|
|
670
|
+
j.value = null, M.value = "pointer", D.value = !1, O.value = null, Kt.value = !1;
|
|
671
671
|
}
|
|
672
672
|
function Xn(e) {
|
|
673
|
-
if (!
|
|
673
|
+
if (!L.value || Fn.value || document.activeElement !== L.value || !q.value.length || W.value.length === w.dataset.length) return;
|
|
674
674
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
675
675
|
if (!t && !n && !r && !i) return;
|
|
676
676
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
677
|
-
j.value = null,
|
|
677
|
+
j.value = null, M.value = "pointer", D.value = !1, O.value = null;
|
|
678
678
|
return;
|
|
679
679
|
}
|
|
680
680
|
if (r) {
|
|
@@ -690,13 +690,13 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
690
690
|
o && (Zn(a), kn(o, a, "keyboard"));
|
|
691
691
|
}
|
|
692
692
|
function Zn(e) {
|
|
693
|
-
if (!Number.isFinite(e) || !
|
|
693
|
+
if (!Number.isFinite(e) || !L.value) return;
|
|
694
694
|
let t = q.value[e];
|
|
695
695
|
if (!t) return;
|
|
696
|
-
let n = Y(t, e), r =
|
|
696
|
+
let n = Y(t, e), r = L.value.getBoundingClientRect();
|
|
697
697
|
Gt.value = {
|
|
698
|
-
x: r.left + n.x /
|
|
699
|
-
y: r.top + n.y /
|
|
698
|
+
x: r.left + n.x / U.value.width * r.width,
|
|
699
|
+
y: r.top + n.y / U.value.height * r.height
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
702
|
let Qn = c(() => ({
|
|
@@ -706,9 +706,9 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
706
706
|
return De({
|
|
707
707
|
getData: xn,
|
|
708
708
|
getImage: Ln,
|
|
709
|
-
generatePdf:
|
|
709
|
+
generatePdf: an,
|
|
710
710
|
generateCsv: An,
|
|
711
|
-
generateImage:
|
|
711
|
+
generateImage: on,
|
|
712
712
|
generateSvg: Gn,
|
|
713
713
|
hideSeries: gn,
|
|
714
714
|
showSeries: hn,
|
|
@@ -721,25 +721,25 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
721
721
|
}), (e, t) => (v(), d("div", {
|
|
722
722
|
ref_key: "ringsChart",
|
|
723
723
|
ref: k,
|
|
724
|
-
class: h(`vue-data-ui-component vue-ui-rings ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${
|
|
725
|
-
style: _(`font-family:${
|
|
724
|
+
class: h(`vue-data-ui-component vue-ui-rings ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${N.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
725
|
+
style: _(`font-family:${N.value.style.fontFamily};text-align:center;width:100%;background:${N.value.style.chart.backgroundColor};${N.value.responsive ? "height: 100%" : ""}`),
|
|
726
726
|
id: `rings_${E.value}`,
|
|
727
727
|
onMouseleave: t[2] ||= (e) => {
|
|
728
|
-
O.value = null, D.value = !1, S(
|
|
728
|
+
O.value = null, D.value = !1, S(Zt)(!1);
|
|
729
729
|
},
|
|
730
|
-
onMouseenter: t[3] ||= () => S(
|
|
730
|
+
onMouseenter: t[3] ||= () => S(Zt)(!0)
|
|
731
731
|
}, [
|
|
732
732
|
f("div", {
|
|
733
733
|
id: `chart-instructions-${E.value}`,
|
|
734
734
|
class: "sr-only"
|
|
735
|
-
}, [f("p", null, x(
|
|
735
|
+
}, [f("p", null, x(N.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
|
|
736
736
|
Qn.value?.rows?.length ? (v(), l(Me, {
|
|
737
737
|
key: 0,
|
|
738
738
|
uid: E.value,
|
|
739
739
|
head: Qn.value.headers,
|
|
740
740
|
body: Qn.value.rows,
|
|
741
|
-
notice:
|
|
742
|
-
caption:
|
|
741
|
+
notice: N.value.a11y.translations.tableAvailable,
|
|
742
|
+
caption: N.value.a11y.translations.tableCaption
|
|
743
743
|
}, null, 8, [
|
|
744
744
|
"uid",
|
|
745
745
|
"head",
|
|
@@ -747,13 +747,13 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
747
747
|
"notice",
|
|
748
748
|
"caption"
|
|
749
749
|
])) : u("", !0),
|
|
750
|
-
|
|
750
|
+
N.value.userOptions.buttons.annotator ? (v(), l(S(wt), {
|
|
751
751
|
key: 1,
|
|
752
|
-
svgRef: S(
|
|
753
|
-
backgroundColor:
|
|
754
|
-
color:
|
|
752
|
+
svgRef: S(L),
|
|
753
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
754
|
+
color: N.value.style.chart.color,
|
|
755
755
|
active: Fn.value,
|
|
756
|
-
isCursorPointer:
|
|
756
|
+
isCursorPointer: F.value,
|
|
757
757
|
onClose: In
|
|
758
758
|
}, {
|
|
759
759
|
"annotator-action-close": C(() => [b(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -770,14 +770,14 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
770
770
|
"active",
|
|
771
771
|
"isCursorPointer"
|
|
772
772
|
])) : u("", !0),
|
|
773
|
-
|
|
773
|
+
sn.value ? (v(), d("div", {
|
|
774
774
|
key: 2,
|
|
775
775
|
ref_key: "noTitle",
|
|
776
776
|
ref: Rt,
|
|
777
777
|
class: "vue-data-ui-no-title-space",
|
|
778
778
|
style: "height:36px; width: 100%;background:transparent"
|
|
779
779
|
}, null, 512)) : u("", !0),
|
|
780
|
-
|
|
780
|
+
N.value.style.chart.title.text ? (v(), d("div", {
|
|
781
781
|
key: 3,
|
|
782
782
|
ref_key: "chartTitle",
|
|
783
783
|
ref: Ft,
|
|
@@ -787,46 +787,46 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
787
787
|
config: {
|
|
788
788
|
title: {
|
|
789
789
|
cy: "rings-div-title",
|
|
790
|
-
...
|
|
790
|
+
...N.value.style.chart.title
|
|
791
791
|
},
|
|
792
792
|
subtitle: {
|
|
793
793
|
cy: "rings-div-subtitle",
|
|
794
|
-
...
|
|
794
|
+
...N.value.style.chart.title.subtitle
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
797
|
}, null, 8, ["config"]))], 512)) : u("", !0),
|
|
798
798
|
f("div", { id: `legend-top-${E.value}` }, null, 8, nt),
|
|
799
|
-
|
|
799
|
+
N.value.userOptions.show && Mt.value && (S(Qt) || S(Xt)) ? (v(), l(S(Tt), {
|
|
800
800
|
ref_key: "userOptionsRef",
|
|
801
801
|
ref: Wt,
|
|
802
802
|
key: `user_options_${Pt.value}`,
|
|
803
|
-
backgroundColor:
|
|
804
|
-
color:
|
|
805
|
-
isPrinting: S(
|
|
806
|
-
isImaging: S(
|
|
803
|
+
backgroundColor: N.value.style.chart.backgroundColor,
|
|
804
|
+
color: N.value.style.chart.color,
|
|
805
|
+
isPrinting: S(nn),
|
|
806
|
+
isImaging: S(rn),
|
|
807
807
|
uid: E.value,
|
|
808
|
-
hasTooltip:
|
|
809
|
-
hasPdf:
|
|
810
|
-
hasXls:
|
|
811
|
-
hasImg:
|
|
812
|
-
hasSvg:
|
|
813
|
-
hasTable:
|
|
814
|
-
hasFullscreen:
|
|
815
|
-
hasAltCopy:
|
|
816
|
-
hasLabel:
|
|
817
|
-
isTooltip:
|
|
808
|
+
hasTooltip: N.value.userOptions.buttons.tooltip && N.value.style.chart.tooltip.show,
|
|
809
|
+
hasPdf: N.value.userOptions.buttons.pdf,
|
|
810
|
+
hasXls: N.value.userOptions.buttons.csv,
|
|
811
|
+
hasImg: N.value.userOptions.buttons.img,
|
|
812
|
+
hasSvg: N.value.userOptions.buttons.svg,
|
|
813
|
+
hasTable: N.value.userOptions.buttons.table,
|
|
814
|
+
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
815
|
+
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
816
|
+
hasLabel: N.value.userOptions.buttons.labels,
|
|
817
|
+
isTooltip: H.value.showTooltip,
|
|
818
818
|
isFullscreen: Q.value,
|
|
819
|
-
titles: { ...
|
|
819
|
+
titles: { ...N.value.userOptions.buttonTitles },
|
|
820
820
|
chartElement: k.value,
|
|
821
|
-
position:
|
|
822
|
-
hasAnnotator:
|
|
821
|
+
position: N.value.userOptions.position,
|
|
822
|
+
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
823
823
|
isAnnotation: Fn.value,
|
|
824
|
-
callbacks:
|
|
825
|
-
printScale:
|
|
826
|
-
tableDialog:
|
|
827
|
-
isCursorPointer:
|
|
824
|
+
callbacks: N.value.userOptions.callbacks,
|
|
825
|
+
printScale: N.value.userOptions.print.scale,
|
|
826
|
+
tableDialog: N.value.table.useDialog,
|
|
827
|
+
isCursorPointer: F.value,
|
|
828
828
|
onToggleFullscreen: jn,
|
|
829
|
-
onGeneratePdf: S(
|
|
829
|
+
onGeneratePdf: S(an),
|
|
830
830
|
onGenerateCsv: An,
|
|
831
831
|
onGenerateImage: S(Kn),
|
|
832
832
|
onGenerateSvg: S(Gn),
|
|
@@ -835,7 +835,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
835
835
|
onToggleAnnotator: In,
|
|
836
836
|
onToggleLabels: Pn,
|
|
837
837
|
onCopyAlt: qn,
|
|
838
|
-
style: _({ visibility: S(
|
|
838
|
+
style: _({ visibility: S(Qt) ? S(Xt) ? "visible" : "hidden" : "visible" })
|
|
839
839
|
}, Be({ _: 2 }, [
|
|
840
840
|
e.$slots.menuIcon ? {
|
|
841
841
|
name: "menuIcon",
|
|
@@ -914,16 +914,16 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
914
914
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.hasLabel.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : u("", !0),
|
|
915
915
|
f("div", rt, [(v(), d("svg", {
|
|
916
916
|
ref_key: "svgRef",
|
|
917
|
-
ref:
|
|
917
|
+
ref: L,
|
|
918
918
|
xmlns: S(fe),
|
|
919
919
|
class: h({
|
|
920
920
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
921
921
|
"vue-data-ui-fulscreen--off": !Q.value,
|
|
922
|
-
resizing: Ht.value || S(
|
|
923
|
-
"vue-data-ui-no-transition": !S(
|
|
922
|
+
resizing: Ht.value || S(I),
|
|
923
|
+
"vue-data-ui-no-transition": !S(P)
|
|
924
924
|
}),
|
|
925
|
-
viewBox: `0 0 ${
|
|
926
|
-
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${
|
|
925
|
+
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
926
|
+
style: _(`max-width:100%;overflow:hidden;background:transparent;color:${N.value.style.chart.color}`),
|
|
927
927
|
"aria-describedby": `chart-instructions-${E.value}`,
|
|
928
928
|
tabindex: "0",
|
|
929
929
|
onFocus: Jn,
|
|
@@ -935,8 +935,8 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
935
935
|
key: 0,
|
|
936
936
|
x: 0,
|
|
937
937
|
y: 0,
|
|
938
|
-
width:
|
|
939
|
-
height:
|
|
938
|
+
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
939
|
+
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
940
940
|
style: { pointerEvents: "none" }
|
|
941
941
|
}, [b(e.$slots, "chart-background", {}, void 0, !0)], 8, at)) : u("", !0),
|
|
942
942
|
f("defs", null, [(v(!0), d(Re, null, qe(q.value, (e, t) => (v(), l(Ae, {
|
|
@@ -950,7 +950,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
950
950
|
key: `gradient_${E.value}_${t}`,
|
|
951
951
|
stops: [[
|
|
952
952
|
"0%",
|
|
953
|
-
S(
|
|
953
|
+
S(te)(S(re)(e.color, .05), 100 - N.value.style.chart.layout.rings.gradient.intensity),
|
|
954
954
|
1
|
|
955
955
|
], [
|
|
956
956
|
"100%",
|
|
@@ -965,51 +965,51 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
965
965
|
(v(!0), d(Re, null, qe(q.value, (t, n) => (v(), d("g", { key: `r_${t.uid}` }, [
|
|
966
966
|
f("circle", {
|
|
967
967
|
class: h({
|
|
968
|
-
"vue-data-ui-transition": T.value && S(
|
|
969
|
-
"vue-rings-item-onload": !T.value &&
|
|
968
|
+
"vue-data-ui-transition": T.value && S(P),
|
|
969
|
+
"vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
|
|
970
970
|
"vue-ui-rings-opacity": O.value !== null && O.value !== n
|
|
971
971
|
}),
|
|
972
972
|
style: _(`animation-delay:${n * 100}ms`),
|
|
973
|
-
stroke:
|
|
974
|
-
cx:
|
|
973
|
+
stroke: N.value.style.chart.layout.rings.stroke,
|
|
974
|
+
cx: R.value.x,
|
|
975
975
|
cy: Dn(t, n),
|
|
976
976
|
r: En(t),
|
|
977
|
-
fill:
|
|
977
|
+
fill: N.value.style.chart.layout.rings.gradient.underlayerColor
|
|
978
978
|
}, null, 14, st),
|
|
979
979
|
f("circle", {
|
|
980
980
|
class: h({
|
|
981
|
-
"vue-data-ui-transition": T.value && S(
|
|
982
|
-
"vue-rings-item-onload": !T.value &&
|
|
983
|
-
"vue-ui-rings-shadow":
|
|
981
|
+
"vue-data-ui-transition": T.value && S(P),
|
|
982
|
+
"vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
|
|
983
|
+
"vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
|
|
984
984
|
"vue-ui-rings-blur": O.value !== null && O.value !== n
|
|
985
985
|
}),
|
|
986
986
|
style: _(`animation-delay:${n * 100}ms`),
|
|
987
|
-
stroke:
|
|
987
|
+
stroke: N.value.style.chart.layout.rings.stroke,
|
|
988
988
|
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
989
|
-
cx:
|
|
989
|
+
cx: R.value.x,
|
|
990
990
|
cy: Dn(t, n),
|
|
991
991
|
r: En(t),
|
|
992
|
-
fill:
|
|
992
|
+
fill: N.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${E.value}_${n})` : t.color
|
|
993
993
|
}, null, 14, ct),
|
|
994
994
|
e.$slots.pattern ? (v(), d("circle", {
|
|
995
995
|
key: 0,
|
|
996
996
|
class: h({
|
|
997
|
-
"vue-data-ui-transition": T.value && S(
|
|
998
|
-
"vue-rings-item-onload": !T.value &&
|
|
999
|
-
"vue-ui-rings-shadow":
|
|
997
|
+
"vue-data-ui-transition": T.value && S(P),
|
|
998
|
+
"vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
|
|
999
|
+
"vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
|
|
1000
1000
|
"vue-ui-rings-blur": O.value !== null && O.value !== n
|
|
1001
1001
|
}),
|
|
1002
1002
|
style: _(`animation-delay:${n * 100}ms`),
|
|
1003
|
-
stroke:
|
|
1003
|
+
stroke: N.value.style.chart.layout.rings.stroke,
|
|
1004
1004
|
"stroke-width": t.strokeWidth < .5 ? .5 : t.strokeWidth,
|
|
1005
|
-
cx:
|
|
1005
|
+
cx: R.value.x,
|
|
1006
1006
|
cy: Dn(t, n),
|
|
1007
1007
|
r: En(t),
|
|
1008
1008
|
fill: `url(#pattern_${E.value}_${t.absoluteIndex})`
|
|
1009
1009
|
}, null, 14, lt)) : u("", !0),
|
|
1010
1010
|
f("circle", {
|
|
1011
1011
|
stroke: "none",
|
|
1012
|
-
cx:
|
|
1012
|
+
cx: R.value.x,
|
|
1013
1013
|
cy: Dn(t, n),
|
|
1014
1014
|
r: En(t),
|
|
1015
1015
|
fill: "transparent",
|
|
@@ -1017,53 +1017,53 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
1017
1017
|
onMouseleave: (e) => Cn(t, n),
|
|
1018
1018
|
onClick: (e) => Sn(t, n)
|
|
1019
1019
|
}, null, 40, ut),
|
|
1020
|
-
|
|
1020
|
+
H.value.showLabels ? (v(), d(Re, { key: 1 }, [
|
|
1021
1021
|
f("rect", {
|
|
1022
|
-
x:
|
|
1023
|
-
y: Y(t, n).y -
|
|
1024
|
-
width: Math.abs(
|
|
1025
|
-
height:
|
|
1026
|
-
fill:
|
|
1027
|
-
rx:
|
|
1022
|
+
x: N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? Y(t, n).x : R.value.x,
|
|
1023
|
+
y: Y(t, n).y - N.value.style.chart.layout.labels.dataLabels.markers.strokeWidth / 2,
|
|
1024
|
+
width: Math.abs(R.value.x - Y(t, n).x),
|
|
1025
|
+
height: N.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
1026
|
+
fill: N.value.style.chart.layout.labels.dataLabels.markers.stroke,
|
|
1027
|
+
rx: N.value.style.chart.layout.labels.dataLabels.markers.strokeWidth,
|
|
1028
1028
|
class: h({
|
|
1029
|
-
"vue-data-ui-transition": T.value && S(
|
|
1030
|
-
"vue-rings-item-onload": !T.value &&
|
|
1031
|
-
"vue-ui-rings-shadow":
|
|
1029
|
+
"vue-data-ui-transition": T.value && S(P),
|
|
1030
|
+
"vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
|
|
1031
|
+
"vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
|
|
1032
1032
|
"vue-ui-rings-blur": O.value !== null && O.value !== n
|
|
1033
1033
|
})
|
|
1034
1034
|
}, null, 10, dt),
|
|
1035
1035
|
f("circle", {
|
|
1036
1036
|
cx: Y(t, n).x,
|
|
1037
1037
|
cy: Y(t, n).y,
|
|
1038
|
-
r:
|
|
1038
|
+
r: N.value.style.chart.layout.labels.dataLabels.markers.radius,
|
|
1039
1039
|
fill: t.color,
|
|
1040
|
-
stroke:
|
|
1040
|
+
stroke: N.value.style.chart.backgroundColor,
|
|
1041
1041
|
class: h({
|
|
1042
|
-
"vue-data-ui-transition": T.value && S(
|
|
1043
|
-
"vue-rings-item-onload": !T.value &&
|
|
1044
|
-
"vue-ui-rings-shadow":
|
|
1042
|
+
"vue-data-ui-transition": T.value && S(P),
|
|
1043
|
+
"vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
|
|
1044
|
+
"vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
|
|
1045
1045
|
"vue-ui-rings-blur": O.value !== null && O.value !== n
|
|
1046
1046
|
})
|
|
1047
1047
|
}, null, 10, ft),
|
|
1048
1048
|
f("text", {
|
|
1049
|
-
"text-anchor":
|
|
1050
|
-
"font-size":
|
|
1051
|
-
fill:
|
|
1052
|
-
"font-weight":
|
|
1049
|
+
"text-anchor": N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? "end" : "start",
|
|
1050
|
+
"font-size": N.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1051
|
+
fill: N.value.style.chart.layout.labels.dataLabels.color,
|
|
1052
|
+
"font-weight": N.value.style.chart.layout.labels.dataLabels.bold ? "bold" : "normal",
|
|
1053
1053
|
class: h({
|
|
1054
|
-
"vue-data-ui-transition": T.value && S(
|
|
1055
|
-
"vue-rings-item-onload": !T.value &&
|
|
1056
|
-
"vue-ui-rings-shadow":
|
|
1054
|
+
"vue-data-ui-transition": T.value && S(P),
|
|
1055
|
+
"vue-rings-item-onload": !T.value && N.value.useCssAnimation && !S(I),
|
|
1056
|
+
"vue-ui-rings-shadow": N.value.style.chart.layout.rings.useShadow,
|
|
1057
1057
|
"vue-ui-rings-blur": O.value !== null && O.value !== n
|
|
1058
1058
|
}),
|
|
1059
|
-
transform: `translate(${Y(t, n).x + (
|
|
1059
|
+
transform: `translate(${Y(t, n).x + (N.value.style.chart.layout.labels.dataLabels.markers.position === "left" ? -N.value.style.chart.layout.labels.dataLabels.offsetX - 14 : N.value.style.chart.layout.labels.dataLabels.offsetX) + 6}, ${Y(t, n).y + N.value.style.chart.layout.labels.dataLabels.fontSize / 3})`,
|
|
1060
1060
|
onMouseenter: (e) => kn(t, n, "pointer"),
|
|
1061
1061
|
onMouseleave: (e) => Cn(t, n),
|
|
1062
1062
|
onClick: (e) => Sn(t, n),
|
|
1063
1063
|
innerHTML: S(i)({
|
|
1064
1064
|
content: Tn(t),
|
|
1065
|
-
fontSize:
|
|
1066
|
-
fill:
|
|
1065
|
+
fontSize: N.value.style.chart.layout.labels.dataLabels.fontSize,
|
|
1066
|
+
fill: N.value.style.chart.layout.labels.dataLabels.color,
|
|
1067
1067
|
x: 0,
|
|
1068
1068
|
y: 0,
|
|
1069
1069
|
translateY: !0
|
|
@@ -1072,42 +1072,42 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
1072
1072
|
], 64)) : u("", !0)
|
|
1073
1073
|
]))), 128)),
|
|
1074
1074
|
b(e.$slots, "svg", { svg: {
|
|
1075
|
-
...
|
|
1076
|
-
isPrintingImg: S(
|
|
1075
|
+
...U.value,
|
|
1076
|
+
isPrintingImg: S(nn) || S(rn) || S(Un),
|
|
1077
1077
|
isPrintingSvg: S(Wn)
|
|
1078
1078
|
} }, void 0, !0)
|
|
1079
1079
|
], 46, it)), e.$slots.hint ? (v(), d("div", mt, [b(e.$slots, "hint", g(m({
|
|
1080
|
-
hint:
|
|
1081
|
-
isVisible:
|
|
1080
|
+
hint: N.value.a11y.translations.keyboardNavigation,
|
|
1081
|
+
isVisible: Kt.value
|
|
1082
1082
|
})), void 0, !0)])) : u("", !0)]),
|
|
1083
|
-
e.$slots.watermark ? (v(), d("div", ht, [b(e.$slots, "watermark", g(m({ isPrinting: S(
|
|
1083
|
+
e.$slots.watermark ? (v(), d("div", ht, [b(e.$slots, "watermark", g(m({ isPrinting: S(nn) || S(rn) || S(Un) || S(Wn) })), void 0, !0)])) : u("", !0),
|
|
1084
1084
|
f("div", { id: `legend-bottom-${E.value}` }, null, 8, gt),
|
|
1085
|
-
Ut.value && (
|
|
1085
|
+
Ut.value && (N.value.style.chart.legend.show || e.$slots.legend) ? (v(), l(ze, {
|
|
1086
1086
|
key: 6,
|
|
1087
|
-
to:
|
|
1087
|
+
to: N.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
1088
1088
|
}, [f("div", {
|
|
1089
1089
|
ref_key: "chartLegend",
|
|
1090
1090
|
ref: It
|
|
1091
|
-
}, [b(e.$slots, "legend", { legend: yn.value }, () => [
|
|
1091
|
+
}, [b(e.$slots, "legend", { legend: yn.value }, () => [N.value.style.chart.legend.show ? (v(), l(Ie, {
|
|
1092
1092
|
key: `legend_${Vt.value}`,
|
|
1093
1093
|
legendSet: yn.value,
|
|
1094
1094
|
config: bn.value,
|
|
1095
|
-
isCursorPointer:
|
|
1096
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1095
|
+
isCursorPointer: F.value,
|
|
1096
|
+
onClickMarker: t[0] ||= ({ legend: e }) => pn(e.uid)
|
|
1097
1097
|
}, Be({
|
|
1098
|
-
item: C(({ legend: e, index: t }) => [S(
|
|
1098
|
+
item: C(({ legend: e, index: t }) => [S(I) ? u("", !0) : (v(), d("div", {
|
|
1099
1099
|
key: 0,
|
|
1100
|
-
onClick: (t) =>
|
|
1101
|
-
style: _(`opacity:${
|
|
1100
|
+
onClick: (t) => pn(e.uid),
|
|
1101
|
+
style: _(`opacity:${W.value.includes(e.uid) ? .5 : 1}`)
|
|
1102
1102
|
}, x(e.display), 13, _t))]),
|
|
1103
|
-
legendToggle: C(() => [yn.value.length > 2 &&
|
|
1103
|
+
legendToggle: C(() => [yn.value.length > 2 && N.value.style.chart.legend.selectAllToggle.show && !S(I) ? (v(), l(je, {
|
|
1104
1104
|
key: 0,
|
|
1105
|
-
backgroundColor:
|
|
1106
|
-
color:
|
|
1107
|
-
fontSize:
|
|
1108
|
-
checked:
|
|
1109
|
-
isCursorPointer:
|
|
1110
|
-
onToggle:
|
|
1105
|
+
backgroundColor: N.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1106
|
+
color: N.value.style.chart.legend.selectAllToggle.color,
|
|
1107
|
+
fontSize: N.value.style.chart.legend.fontSize,
|
|
1108
|
+
checked: W.value.length > 0,
|
|
1109
|
+
isCursorPointer: F.value,
|
|
1110
|
+
onToggle: dn
|
|
1111
1111
|
}, null, 8, [
|
|
1112
1112
|
"backgroundColor",
|
|
1113
1113
|
"color",
|
|
@@ -1141,27 +1141,27 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
1141
1141
|
dir: "auto"
|
|
1142
1142
|
}, [b(e.$slots, "source", {}, void 0, !0)], 512)) : u("", !0),
|
|
1143
1143
|
He(S(bt), {
|
|
1144
|
-
teleportTo:
|
|
1145
|
-
show:
|
|
1146
|
-
backgroundColor:
|
|
1147
|
-
color:
|
|
1148
|
-
borderRadius:
|
|
1149
|
-
borderColor:
|
|
1150
|
-
borderWidth:
|
|
1151
|
-
fontSize:
|
|
1152
|
-
backgroundOpacity:
|
|
1153
|
-
position:
|
|
1154
|
-
offsetX:
|
|
1155
|
-
offsetY:
|
|
1144
|
+
teleportTo: N.value.style.chart.tooltip.teleportTo,
|
|
1145
|
+
show: H.value.showTooltip && D.value && W.value.length < w.dataset.length,
|
|
1146
|
+
backgroundColor: N.value.style.chart.tooltip.backgroundColor,
|
|
1147
|
+
color: N.value.style.chart.tooltip.color,
|
|
1148
|
+
borderRadius: N.value.style.chart.tooltip.borderRadius,
|
|
1149
|
+
borderColor: N.value.style.chart.tooltip.borderColor,
|
|
1150
|
+
borderWidth: N.value.style.chart.tooltip.borderWidth,
|
|
1151
|
+
fontSize: N.value.style.chart.tooltip.fontSize,
|
|
1152
|
+
backgroundOpacity: N.value.style.chart.tooltip.backgroundOpacity,
|
|
1153
|
+
position: N.value.style.chart.tooltip.position,
|
|
1154
|
+
offsetX: N.value.style.chart.tooltip.offsetX,
|
|
1155
|
+
offsetY: N.value.style.chart.tooltip.offsetY,
|
|
1156
1156
|
parent: k.value,
|
|
1157
1157
|
content: Nt.value,
|
|
1158
1158
|
isFullscreen: Q.value,
|
|
1159
|
-
isCustom:
|
|
1160
|
-
smooth:
|
|
1161
|
-
backdropFilter:
|
|
1162
|
-
smoothForce:
|
|
1163
|
-
smoothSnapThreshold:
|
|
1164
|
-
isA11yMode:
|
|
1159
|
+
isCustom: N.value.style.chart.tooltip.customFormat && typeof N.value.style.chart.tooltip.customFormat == "function",
|
|
1160
|
+
smooth: N.value.style.chart.tooltip.smooth,
|
|
1161
|
+
backdropFilter: N.value.style.chart.tooltip.backdropFilter,
|
|
1162
|
+
smoothForce: N.value.style.chart.tooltip.smoothForce,
|
|
1163
|
+
smoothSnapThreshold: N.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1164
|
+
isA11yMode: M.value === "keyboard",
|
|
1165
1165
|
a11yPosition: Gt.value
|
|
1166
1166
|
}, {
|
|
1167
1167
|
"tooltip-before": C(() => [b(e.$slots, "tooltip-before", g(m({ ...On.value })), void 0, !0)]),
|
|
@@ -1192,7 +1192,7 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
1192
1192
|
"isA11yMode",
|
|
1193
1193
|
"a11yPosition"
|
|
1194
1194
|
]),
|
|
1195
|
-
Mt.value &&
|
|
1195
|
+
Mt.value && N.value.userOptions.buttons.table ? (v(), l(Je($.value.component), Ue({ key: 8 }, $.value.props, {
|
|
1196
1196
|
ref_key: "tableUnit",
|
|
1197
1197
|
ref: A,
|
|
1198
1198
|
onClose: Rn
|
|
@@ -1203,9 +1203,9 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
1203
1203
|
head: Z.value.head,
|
|
1204
1204
|
body: Z.value.body,
|
|
1205
1205
|
config: Z.value.config,
|
|
1206
|
-
title:
|
|
1207
|
-
withCloseButton: !
|
|
1208
|
-
isCursorPointer:
|
|
1206
|
+
title: N.value.table.useDialog ? "" : $.value.title,
|
|
1207
|
+
withCloseButton: !N.value.table.useDialog,
|
|
1208
|
+
isCursorPointer: F.value,
|
|
1209
1209
|
onClose: Rn
|
|
1210
1210
|
}, {
|
|
1211
1211
|
th: C(({ th: e }) => [e === "__SUM__" ? (v(), d("div", vt, [He(S(xt), {
|
|
@@ -1225,24 +1225,24 @@ var $e = /* @__PURE__ */ e({ default: () => bt }), et = ["id"], tt = ["id"], nt
|
|
|
1225
1225
|
"isCursorPointer"
|
|
1226
1226
|
]))]),
|
|
1227
1227
|
_: 2
|
|
1228
|
-
}, [
|
|
1228
|
+
}, [N.value.table.useDialog ? {
|
|
1229
1229
|
name: "title",
|
|
1230
1230
|
fn: C(() => [Ve(x($.value.title), 1)]),
|
|
1231
1231
|
key: "0"
|
|
1232
|
-
} : void 0,
|
|
1232
|
+
} : void 0, N.value.table.useDialog ? {
|
|
1233
1233
|
name: "actions",
|
|
1234
1234
|
fn: C(() => [f("button", {
|
|
1235
1235
|
tabindex: "0",
|
|
1236
1236
|
class: "vue-ui-user-options-button",
|
|
1237
|
-
onClick: t[1] ||= (e) => An(
|
|
1238
|
-
style: _({ cursor:
|
|
1237
|
+
onClick: t[1] ||= (e) => An(N.value.userOptions.callbacks.csv),
|
|
1238
|
+
style: _({ cursor: F.value ? "pointer" : "default" })
|
|
1239
1239
|
}, [He(S(xt), {
|
|
1240
1240
|
name: "fileCsv",
|
|
1241
1241
|
stroke: $.value.props.color
|
|
1242
1242
|
}, null, 8, ["stroke"])], 4)]),
|
|
1243
1243
|
key: "1"
|
|
1244
1244
|
} : void 0]), 1040)) : u("", !0),
|
|
1245
|
-
b(e.$slots, "skeleton", {}, () => [S(
|
|
1245
|
+
b(e.$slots, "skeleton", {}, () => [S(I) ? (v(), l(ye, { key: 0 })) : u("", !0)], !0)
|
|
1246
1246
|
], 46, et));
|
|
1247
1247
|
}
|
|
1248
1248
|
}, [["__scopeId", "data-v-157db649"]]);
|