vue-data-ui 3.9.16 → 3.9.18
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 +16 -4
- package/dist/{BaseDraggableDialog-Z5LfhW87.js → BaseDraggableDialog-8UqNlf3w.js} +1 -1
- package/dist/BaseIcon-BncZ4WRx.js +392 -0
- package/dist/{BaseZoomControls-e4hnaBoq.js → BaseZoomControls-DMSmw-kf.js} +1 -1
- package/dist/{ColorPicker-B2OcIXIs.js → ColorPicker-CqfJnNHq.js} +1 -1
- package/dist/{DataTable-BT_IeqPe.js → DataTable-CK9yaC9w.js} +1 -1
- package/dist/{NonSvgPenAndPaper-Dgnix4B_.js → NonSvgPenAndPaper-DVkY2uxn.js} +2 -2
- package/dist/{PackageVersion-Br3DrrFh.js → PackageVersion-Dzikj3hZ.js} +1 -1
- package/dist/{PenAndPaper-CvyKWfNl.js → PenAndPaper-BOWKtVcI.js} +2 -2
- package/dist/{Slicer-BCPOPoP2.js → Slicer-vI2YxXu8.js} +1 -1
- package/dist/{SlicerPreview-CgKqSG-h.js → SlicerPreview-Cnk2x352.js} +1 -1
- package/dist/{Title-DSOZzIrU.js → Title-D0nD-PMs.js} +1 -1
- package/dist/{UserOptions-BQO4YFrn.js → UserOptions-dQg0xjBj.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-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/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +17 -0
- package/dist/types/vue-ui-icon.d.ts +1 -0
- package/dist/{useNestedProp-2p4Tjzc8.js → useNestedProp-DaR1dBmj.js} +29 -11
- package/dist/{vue-data-ui-BWmTki6E.js → vue-data-ui-B1X5-ykN.js} +67 -67
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-HXoQbs8d.js → vue-ui-3d-bar-DmvQV8PV.js} +3 -3
- package/dist/{vue-ui-accordion-Dm0mNNKQ.js → vue-ui-accordion-ljh5kfIe.js} +2 -2
- package/dist/{vue-ui-age-pyramid-CGsJUmDL.js → vue-ui-age-pyramid-CSG_1rJ1.js} +3 -3
- package/dist/{vue-ui-annotator-BorYyD6t.js → vue-ui-annotator-Bh_ga3Bp.js} +4 -4
- package/dist/{vue-ui-bullet-B5H4sazy.js → vue-ui-bullet-CkKUBL3O.js} +3 -3
- package/dist/{vue-ui-candlestick-COYxFrX8.js → vue-ui-candlestick-BVtA53AK.js} +4 -4
- package/dist/{vue-ui-carousel-table-BsGu8u47.js → vue-ui-carousel-table-psdAj1fY.js} +2 -2
- package/dist/{vue-ui-chestnut-CPleio5s.js → vue-ui-chestnut-CTJZ0inC.js} +2 -2
- package/dist/{vue-ui-chord-BL2kiRYa.js → vue-ui-chord-2dmjwWLN.js} +3 -3
- package/dist/{vue-ui-circle-pack-Ctax0o8l.js → vue-ui-circle-pack-CZSzUKwS.js} +3 -3
- package/dist/{vue-ui-cursor-CcGTsKr9.js → vue-ui-cursor-CrM4nhFu.js} +2 -2
- package/dist/{vue-ui-dag-BZeJu8RB.js → vue-ui-dag-L-rXpTen.js} +4 -4
- package/dist/{vue-ui-dashboard-DU95z4Iw.js → vue-ui-dashboard-Dt3Z3r-J.js} +66 -66
- package/dist/{vue-ui-digits-DsKNaw_K.js → vue-ui-digits-DXXegZ9T.js} +1 -1
- package/dist/{vue-ui-donut-CN7x4Wrm.js → vue-ui-donut-BKMlg6dF.js} +3 -3
- package/dist/{vue-ui-donut-evolution-D4zNv3y3.js → vue-ui-donut-evolution-_g_YnBOH.js} +4 -4
- package/dist/{vue-ui-dumbbell-CWi8sl8t.js → vue-ui-dumbbell-B3RWqHxL.js} +3 -3
- package/dist/{vue-ui-flow-BydA9ef6.js → vue-ui-flow-D7sHBRZO.js} +3 -3
- package/dist/{vue-ui-funnel-C83WaW6R.js → vue-ui-funnel-6X1BPUck.js} +3 -3
- package/dist/{vue-ui-galaxy-BnY90Ga4.js → vue-ui-galaxy-Bpmbx6hh.js} +3 -3
- package/dist/{vue-ui-gauge-HqwbKAiY.js → vue-ui-gauge-DW1-iCbx.js} +3 -3
- package/dist/{vue-ui-geo-wW6nP6hV.js → vue-ui-geo-4OM0G7_H.js} +4 -4
- package/dist/{vue-ui-gizmo-B_MBb1r3.js → vue-ui-gizmo-_BEV8PJZ.js} +2 -2
- package/dist/{vue-ui-heatmap-Ctb6By74.js → vue-ui-heatmap-ULLzlslY.js} +4 -4
- package/dist/{vue-ui-history-plot-ptSYfBrS.js → vue-ui-history-plot-BMqriuZi.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-Oj8JxE1o.js → vue-ui-horizontal-bar-Dex9iCdq.js} +8 -8
- package/dist/{vue-ui-kpi-CyQCcR37.js → vue-ui-kpi-Ct5HZzxS.js} +2 -2
- package/dist/{vue-ui-mini-loader-CXB5jl9q.js → vue-ui-mini-loader-DdzurIs7.js} +1 -1
- package/dist/{vue-ui-molecule-B3f4D6xs.js → vue-ui-molecule-DiB3hhpp.js} +2 -2
- package/dist/{vue-ui-mood-radar-BymSOzbZ.js → vue-ui-mood-radar-CeB_1XXR.js} +3 -3
- package/dist/{vue-ui-nested-donuts-Bm75G0c4.js → vue-ui-nested-donuts-BfQ5i4Dk.js} +3 -3
- package/dist/{vue-ui-onion-BPPHtjJs.js → vue-ui-onion-HITeSjBi.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-CesySg69.js → vue-ui-parallel-coordinate-plot-Y8qZ5BXo.js} +3 -3
- package/dist/{vue-ui-quadrant-Dxhvwzha.js → vue-ui-quadrant-UE3hv2RZ.js} +3 -3
- package/dist/{vue-ui-quick-chart-CmfR2FF6.js → vue-ui-quick-chart-juzntY-l.js} +3 -3
- package/dist/{vue-ui-radar-9TUuj49-.js → vue-ui-radar-DqhMgd1S.js} +3 -3
- package/dist/{vue-ui-rating-C-sJPTB9.js → vue-ui-rating-CDkXzEGU.js} +1 -1
- package/dist/{vue-ui-relation-circle-CSw8wygj.js → vue-ui-relation-circle-p0fVe9wd.js} +3 -3
- package/dist/{vue-ui-ridgeline-pwJ8hRsj.js → vue-ui-ridgeline-DH36TkJ3.js} +3 -3
- package/dist/vue-ui-rings-GBOb-k_0.js +1029 -0
- package/dist/{vue-ui-scatter-DqGnrGmi.js → vue-ui-scatter-aON5jo-X.js} +3 -3
- package/dist/{vue-ui-skeleton-CprmuWSV.js → vue-ui-skeleton-BoQQLo2L.js} +2 -2
- package/dist/{vue-ui-smiley-TGFkjkro.js → vue-ui-smiley-BckMTu5I.js} +1 -1
- package/dist/{vue-ui-spark-trend-BMgbFhyC.js → vue-ui-spark-trend-zyu6M7wl.js} +2 -2
- package/dist/{vue-ui-sparkbar-BR9c9pzQ.js → vue-ui-sparkbar-BiPTwBnh.js} +2 -2
- package/dist/{vue-ui-sparkgauge-QR8NMM76.js → vue-ui-sparkgauge-B0VTHDrB.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BZPWjy4g.js → vue-ui-sparkhistogram-DSU-WHi2.js} +2 -2
- package/dist/{vue-ui-sparkline-B7DUXyD7.js → vue-ui-sparkline-K8TocD93.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-CBURF9DG.js → vue-ui-sparkstackbar-Bc5YaGQf.js} +2 -2
- package/dist/{vue-ui-stackbar-8wfpQv75.js → vue-ui-stackbar-BZR6Vk2T.js} +4 -4
- package/dist/{vue-ui-stackline-KEkKIgeE.js → vue-ui-stackline-DfEQERd6.js} +4 -4
- package/dist/{vue-ui-strip-plot-tBq-1HEl.js → vue-ui-strip-plot-VqjAd4ge.js} +3 -3
- package/dist/{vue-ui-table-DQtQ5vth.js → vue-ui-table-LcIJ_L6N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-CUOXC4JX.js → vue-ui-table-heatmap-B2_EhkHE.js} +2 -2
- package/dist/{vue-ui-table-sparkline-B-fJpPuE.js → vue-ui-table-sparkline-B7b73r_a.js} +2 -2
- package/dist/{vue-ui-thermometer-BjWvhObo.js → vue-ui-thermometer-Bv7Nlhbo.js} +3 -3
- package/dist/{vue-ui-timer-KHzMsLix.js → vue-ui-timer-B3hOumBW.js} +4 -4
- package/dist/{vue-ui-tiremarks-DHTm-0Rk.js → vue-ui-tiremarks-CqiqOHza.js} +3 -3
- package/dist/{vue-ui-treemap-BUskEYhL.js → vue-ui-treemap-DqliirQY.js} +4 -4
- package/dist/{vue-ui-waffle-DB2x0hkH.js → vue-ui-waffle-DQFdzYhf.js} +3 -3
- package/dist/{vue-ui-wheel-CIF3OMNS.js → vue-ui-wheel-BMmC57eW.js} +3 -3
- package/dist/{vue-ui-word-cloud-DA2S9vUS.js → vue-ui-word-cloud-CMy__euy.js} +4 -4
- package/dist/{vue-ui-world-GYXka5Ap.js → vue-ui-world-D-IA4mSy.js} +2 -2
- package/dist/{vue-ui-xy-GG6jRpRS.js → vue-ui-xy-CqKeB2O8.js} +5 -5
- package/dist/{vue-ui-xy-canvas-s7QCO2Kv.js → vue-ui-xy-canvas-sIZXQodQ.js} +6 -6
- package/package.json +1 -1
- package/dist/BaseIcon-CbVDYv89.js +0 -265
- package/dist/vue-ui-rings-BQK3rKYv.js +0 -908
|
@@ -1,908 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as O, useSlots as Lt, ref as u, computed as g, toRefs as Nt, watch as q, shallowRef as ze, onMounted as Rt, onBeforeUnmount as Vt, createElementBlock as f, openBlock as i, unref as n, normalizeStyle as L, normalizeClass as j, createBlock as E, createCommentVNode as C, createElementVNode as w, createVNode as J, withCtx as c, renderSlot as v, normalizeProps as A, guardReactiveProps as $, createSlots as ie, Fragment as ce, renderList as ve, mergeProps as We, Teleport as Mt, toDisplayString as de, resolveDynamicComponent as Ut, createTextVNode as je, nextTick as zt } from "vue";
|
|
2
|
-
import { c as Ge, t as Wt, i as jt, j as N, o as He, g as ge, l as Gt, k as Ht, a7 as Xt, m as Xe, a as Ye, d as V, X as Yt, s as qt, h as Jt, U as K, v as Kt, r as Qt, y as Zt, _ as eo } from "./lib-2iaAPQ_c.js";
|
|
3
|
-
import { b as to } from "./labelUtils-B3mOOEke.js";
|
|
4
|
-
import { t as oo, u as lo } from "./useResponsive-DfdjqQps.js";
|
|
5
|
-
import { u as ao, a as he } from "./useNestedProp-2p4Tjzc8.js";
|
|
6
|
-
import { u as no } from "./usePrinter-ChVMpU2f.js";
|
|
7
|
-
import { u as ro, B as so } from "./BaseScanner-BMpwQAfz.js";
|
|
8
|
-
import { u as uo } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
-
import { u as io } from "./useThemeCheck-DGJ31Vi5.js";
|
|
10
|
-
import { u as co } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
-
import { u as vo } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
-
import go from "./img-CqYIrJ8I.js";
|
|
13
|
-
import { _ as ho } from "./Shape-12_eh8zD.js";
|
|
14
|
-
import po from "./Title-DSOZzIrU.js";
|
|
15
|
-
import fo from "./Legend-D2xmnFPH.js";
|
|
16
|
-
import { _ as bo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
-
const qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rings: { stroke: "#3A3A3A" } }, 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" } } }, Je = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { rings: { stroke: "#5D4037", strokeWidth: 10 } }, 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" } } }, Ke = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { rings: { stroke: "#2E2E2E", strokeWidth: 10 } }, 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" } } }, Qe = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { rings: { stroke: "#1A1A1A", strokeWidth: 10 } }, 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" } } }, Ze = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { rings: { stroke: "#fbfafa", strokeWidth: 10 } }, 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" } } }, et = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { rings: { stroke: "#fbfafa", strokeWidth: 10 } }, 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" } } }, tt = {
|
|
18
|
-
default: {},
|
|
19
|
-
dark: qe,
|
|
20
|
-
celebration: Je,
|
|
21
|
-
celebrationNight: Ke,
|
|
22
|
-
hack: Qe,
|
|
23
|
-
zen: Ze,
|
|
24
|
-
concrete: et
|
|
25
|
-
}, Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
|
-
__proto__: null,
|
|
27
|
-
celebration: Je,
|
|
28
|
-
celebrationNight: Ke,
|
|
29
|
-
concrete: et,
|
|
30
|
-
dark: qe,
|
|
31
|
-
default: tt,
|
|
32
|
-
hack: Qe,
|
|
33
|
-
zen: Ze
|
|
34
|
-
}, Symbol.toStringTag, { value: "Module" })), yo = ["id"], mo = ["id"], Co = ["xmlns", "viewBox"], ko = ["width", "height"], wo = ["id"], Ao = ["stop-color"], $o = ["stop-color"], To = { key: 1 }, Fo = ["stroke", "cx", "cy", "r", "fill"], _o = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], So = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], Do = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], Oo = {
|
|
35
|
-
key: 4,
|
|
36
|
-
class: "vue-data-ui-watermark"
|
|
37
|
-
}, Eo = ["id"], xo = ["onClick"], Io = ["innerHTML"], Po = {
|
|
38
|
-
__name: "vue-ui-rings",
|
|
39
|
-
props: {
|
|
40
|
-
config: {
|
|
41
|
-
type: Object,
|
|
42
|
-
default() {
|
|
43
|
-
return {};
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
dataset: {
|
|
47
|
-
type: Array,
|
|
48
|
-
default() {
|
|
49
|
-
return [];
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
emits: ["selectLegend"],
|
|
54
|
-
setup(ot, { expose: lt, emit: at }) {
|
|
55
|
-
const nt = O(() => import("./Tooltip-D0pGX8qz.js")), rt = O(() => import("./BaseIcon-CbVDYv89.js")), st = O(() => import("./vue-ui-accordion-Dm0mNNKQ.js")), ut = O(() => import("./DataTable-BT_IeqPe.js")), it = O(() => import("./PenAndPaper-CvyKWfNl.js")), ct = O(() => import("./UserOptions-BQO4YFrn.js")), vt = O(() => import("./PackageVersion-Br3DrrFh.js")), dt = O(() => import("./BaseDraggableDialog-Z5LfhW87.js")), { vue_ui_rings: gt } = ao(), { isThemeValid: ht, warnInvalidTheme: pt } = io(), ft = Lt(), y = ot, x = u(!1), pe = g(() => !!y.dataset && y.dataset.length), m = u(Ge()), G = u(!1), Q = u(""), T = u(null), fe = u(0), F = u(null), be = u(null), ye = u(null), me = u(null), Ce = u(null), ke = u(0), we = u(0), Ae = u(0), Z = u(!1), $e = u(!1), M = u(null), ee = u(null), e = u(le()), { loading: I, FINAL_DATASET: Te, manualLoading: H } = ro({
|
|
56
|
-
...Nt(y),
|
|
57
|
-
FINAL_CONFIG: e,
|
|
58
|
-
prepareConfig: le,
|
|
59
|
-
skeletonDataset: [
|
|
60
|
-
{ name: "_", values: [13], color: "#808080" },
|
|
61
|
-
{ name: "_", values: [8], color: "#969696" },
|
|
62
|
-
{ name: "_", values: [5], color: "#ADADAD" },
|
|
63
|
-
{ name: "_", values: [3], color: "#C4C4C4" },
|
|
64
|
-
{ name: "_", values: [2], color: "#DBDBDB" }
|
|
65
|
-
],
|
|
66
|
-
skeletonConfig: Wt({
|
|
67
|
-
defaultConfig: e.value,
|
|
68
|
-
userConfig: {
|
|
69
|
-
userOptions: { show: !1 },
|
|
70
|
-
table: { show: !1 },
|
|
71
|
-
style: {
|
|
72
|
-
chart: {
|
|
73
|
-
backgroundColor: "#99999930",
|
|
74
|
-
layout: {
|
|
75
|
-
rings: {
|
|
76
|
-
stroke: "#6A6A6A",
|
|
77
|
-
gradient: {
|
|
78
|
-
underlayerColor: "#FFFFFF"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
legend: {
|
|
83
|
-
backgroundColor: "transparent"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
}), { userOptionsVisible: te, setUserOptionsVisibility: Fe, keepUserOptionState: _e } = co({ config: e.value }), { svgRef: oe } = vo({ config: e.value.style.chart.title });
|
|
90
|
-
function le() {
|
|
91
|
-
const t = he({
|
|
92
|
-
userConfig: y.config,
|
|
93
|
-
defaultConfig: gt
|
|
94
|
-
}), l = t.theme;
|
|
95
|
-
if (!l) return t;
|
|
96
|
-
if (!ht.value(t))
|
|
97
|
-
return pt(t), t;
|
|
98
|
-
const o = he({
|
|
99
|
-
userConfig: tt[l] || y.config,
|
|
100
|
-
defaultConfig: t
|
|
101
|
-
});
|
|
102
|
-
return {
|
|
103
|
-
...he({
|
|
104
|
-
userConfig: y.config,
|
|
105
|
-
defaultConfig: o
|
|
106
|
-
}),
|
|
107
|
-
customPalette: t.customPalette.length ? t.customPalette : jt[t.theme] || N
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
q(() => y.config, (t) => {
|
|
111
|
-
I.value || (e.value = le()), te.value = !e.value.userOptions.showOnChartHover, Se(), ke.value += 1, we.value += 1, Ae.value += 1, k.value.showTable = e.value.table.show, k.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
112
|
-
}, { deep: !0 }), q(() => y.dataset, (t) => {
|
|
113
|
-
Array.isArray(t) && t.length > 0 && (H.value = !1);
|
|
114
|
-
}, { deep: !0 });
|
|
115
|
-
const S = ze(null), R = ze(null);
|
|
116
|
-
Rt(() => {
|
|
117
|
-
$e.value = !0, Se();
|
|
118
|
-
});
|
|
119
|
-
const ae = g(() => !!e.value.debug);
|
|
120
|
-
function Se() {
|
|
121
|
-
if (He(y.dataset) ? (ge({
|
|
122
|
-
componentName: "VueUiRings",
|
|
123
|
-
type: "dataset",
|
|
124
|
-
debug: ae.value
|
|
125
|
-
}), H.value = !0) : y.dataset.forEach((t, l) => {
|
|
126
|
-
t.values.length || (ge({
|
|
127
|
-
componentName: "VueUiRings",
|
|
128
|
-
type: "dataset",
|
|
129
|
-
debug: ae.value
|
|
130
|
-
}), H.value = !0), Gt({
|
|
131
|
-
datasetObject: t,
|
|
132
|
-
requiredAttributes: ["name", "values"]
|
|
133
|
-
}).forEach((o) => {
|
|
134
|
-
ge({
|
|
135
|
-
componentName: "VueUiRings",
|
|
136
|
-
type: "datasetSerieAttribute",
|
|
137
|
-
property: o,
|
|
138
|
-
index: l,
|
|
139
|
-
debug: ae.value
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
}), He(y.dataset) || (H.value = e.value.loading), e.value.responsive) {
|
|
143
|
-
const t = oo(() => {
|
|
144
|
-
Z.value = !0;
|
|
145
|
-
const { width: l, height: o } = lo({
|
|
146
|
-
chart: F.value,
|
|
147
|
-
title: e.value.style.chart.title.text ? be.value : null,
|
|
148
|
-
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
149
|
-
source: me.value,
|
|
150
|
-
noTitle: Ce.value
|
|
151
|
-
});
|
|
152
|
-
requestAnimationFrame(() => {
|
|
153
|
-
s.value.width = l, s.value.height = o - 12, Z.value = !1;
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
S.value && (R.value && S.value.unobserve(R.value), S.value.disconnect()), S.value = new ResizeObserver(t), R.value = F.value.parentNode, S.value.observe(R.value);
|
|
157
|
-
}
|
|
158
|
-
setTimeout(() => {
|
|
159
|
-
x.value = !0;
|
|
160
|
-
}, 600);
|
|
161
|
-
}
|
|
162
|
-
Vt(() => {
|
|
163
|
-
S.value && (R.value && S.value.unobserve(R.value), S.value.disconnect());
|
|
164
|
-
});
|
|
165
|
-
const { isPrinting: De, isImaging: Oe, generatePdf: Ee, generateImage: xe } = no({
|
|
166
|
-
elementId: `rings_${m.value}`,
|
|
167
|
-
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
168
|
-
options: e.value.userOptions.print
|
|
169
|
-
}), bt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ie = g(() => Ht(e.value.customPalette)), k = u({
|
|
170
|
-
showTable: e.value.table.show,
|
|
171
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
172
|
-
});
|
|
173
|
-
q(e, () => {
|
|
174
|
-
k.value = {
|
|
175
|
-
showTable: e.value.table.show,
|
|
176
|
-
showTooltip: e.value.style.chart.tooltip.show
|
|
177
|
-
};
|
|
178
|
-
}, { immediate: !0 });
|
|
179
|
-
const s = u({
|
|
180
|
-
height: 360,
|
|
181
|
-
width: 360
|
|
182
|
-
}), yt = g(() => Math.min(s.value.height, s.value.width)), mt = at, h = u([]);
|
|
183
|
-
function U(t) {
|
|
184
|
-
if (h.value.includes(t))
|
|
185
|
-
h.value = h.value.filter((l) => l !== t);
|
|
186
|
-
else {
|
|
187
|
-
if (h.value.length === P.value.length - 1) return;
|
|
188
|
-
h.value.push(t);
|
|
189
|
-
}
|
|
190
|
-
mt("selectLegend", b.value.map((l) => ({
|
|
191
|
-
name: l.name,
|
|
192
|
-
color: l.color,
|
|
193
|
-
value: l.value
|
|
194
|
-
})));
|
|
195
|
-
}
|
|
196
|
-
function Pe(t) {
|
|
197
|
-
if (!P.value.length)
|
|
198
|
-
return e.value.debug && console.warn("VueUiRings - There are no series to show."), null;
|
|
199
|
-
const l = P.value.find((o) => o.name === t);
|
|
200
|
-
return l || (e.value.debug && console.warn(`VueUiRings - Series name not found "${t}"`), null);
|
|
201
|
-
}
|
|
202
|
-
function Ct(t) {
|
|
203
|
-
const l = Pe(t);
|
|
204
|
-
l !== null && h.value.includes(l.uid) && U(l.uid);
|
|
205
|
-
}
|
|
206
|
-
function kt(t) {
|
|
207
|
-
const l = Pe(t);
|
|
208
|
-
l !== null && (h.value.includes(l.uid) || U(l.uid));
|
|
209
|
-
}
|
|
210
|
-
const wt = g(() => Math.max(
|
|
211
|
-
...P.value.filter((t) => !h.value.includes(t.uid)).map(({ value: t }) => t)
|
|
212
|
-
));
|
|
213
|
-
function Be(t) {
|
|
214
|
-
return t / wt.value;
|
|
215
|
-
}
|
|
216
|
-
const P = g(() => Te.value.map(({ values: t, name: l, color: o = null }, a) => {
|
|
217
|
-
const r = Xt(t).reduce((d, W) => d + W, 0);
|
|
218
|
-
return {
|
|
219
|
-
name: l,
|
|
220
|
-
color: o || Xe(o) || Ie.value[a] || N[a] || N[a % N.length],
|
|
221
|
-
value: r,
|
|
222
|
-
proportion: r / Te.value.map((d) => (d.values || []).reduce((W, Bt) => W + Bt, 0)).reduce((d, W) => d + W, 0),
|
|
223
|
-
uid: Ge(),
|
|
224
|
-
absoluteIndex: a
|
|
225
|
-
};
|
|
226
|
-
})), ne = g(() => P.value.map((t, l) => {
|
|
227
|
-
const o = Ye(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, V({
|
|
228
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
229
|
-
v: t.value,
|
|
230
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
231
|
-
r: e.value.style.chart.legend.roundingValue
|
|
232
|
-
}), { datapoint: t, index: l }), a = isNaN(t.value / _.value) ? "-" : V({ v: t.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage }), r = Le({
|
|
233
|
-
showVal: e.value.style.chart.legend.showValue,
|
|
234
|
-
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
235
|
-
val: o,
|
|
236
|
-
percentage: h.value.includes(t.uid) ? "-%" : a
|
|
237
|
-
});
|
|
238
|
-
return {
|
|
239
|
-
...t,
|
|
240
|
-
shape: "circle",
|
|
241
|
-
opacity: h.value.includes(t.uid) ? 0.5 : 1,
|
|
242
|
-
segregate: () => U(t.uid),
|
|
243
|
-
isSegregated: h.value.includes(t.uid),
|
|
244
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${r}`
|
|
245
|
-
};
|
|
246
|
-
}).toSorted((t, l) => l.value - t.value)), At = g(() => ({
|
|
247
|
-
cy: "rings-div-legend",
|
|
248
|
-
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
249
|
-
color: e.value.style.chart.legend.color,
|
|
250
|
-
fontSize: e.value.style.chart.legend.fontSize,
|
|
251
|
-
paddingBottom: 12,
|
|
252
|
-
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
253
|
-
})), _ = g(() => P.value.filter((t) => !h.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, l) => t + l, 0)), b = g(() => P.value.filter((t) => !h.value.includes(t.uid)).map(({ name: t, value: l, color: o = null, uid: a, absoluteIndex: r }, d) => ({
|
|
254
|
-
absoluteIndex: r,
|
|
255
|
-
uid: a,
|
|
256
|
-
name: t,
|
|
257
|
-
color: o || Xe(o) || Ie.value[d] || N[d] || N[d % N.length],
|
|
258
|
-
value: l,
|
|
259
|
-
proportion: Be(l),
|
|
260
|
-
percentage: l / _.value * 100,
|
|
261
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Be(l)
|
|
262
|
-
})).toSorted((t, l) => l.value - t.value));
|
|
263
|
-
function $t() {
|
|
264
|
-
return b.value.map(
|
|
265
|
-
({ name: t, color: l, value: o, absoluteValues: a, percentage: r }) => ({
|
|
266
|
-
name: t,
|
|
267
|
-
color: l,
|
|
268
|
-
value: o,
|
|
269
|
-
absoluteValues: a,
|
|
270
|
-
percentage: r
|
|
271
|
-
})
|
|
272
|
-
);
|
|
273
|
-
}
|
|
274
|
-
const p = g(() => yt.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
275
|
-
function Tt(t, l) {
|
|
276
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
|
|
277
|
-
}
|
|
278
|
-
function Ft(t, l) {
|
|
279
|
-
T.value = null, G.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l });
|
|
280
|
-
}
|
|
281
|
-
function Le({
|
|
282
|
-
val: t,
|
|
283
|
-
percentage: l,
|
|
284
|
-
showVal: o,
|
|
285
|
-
showPercentage: a
|
|
286
|
-
}) {
|
|
287
|
-
const r = e.value.style.chart.layout.labels.dataLabels;
|
|
288
|
-
return to({
|
|
289
|
-
config: r,
|
|
290
|
-
val: t,
|
|
291
|
-
percentage: l,
|
|
292
|
-
showVal: o,
|
|
293
|
-
showPercentage: a
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
const re = u(null);
|
|
297
|
-
function _t(t, l) {
|
|
298
|
-
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), h.value.length === y.dataset.length) return;
|
|
299
|
-
re.value = {
|
|
300
|
-
datapoint: t,
|
|
301
|
-
seriesIndex: l,
|
|
302
|
-
series: b.value,
|
|
303
|
-
config: e.value
|
|
304
|
-
}, T.value = l;
|
|
305
|
-
const o = b.value[l], a = e.value.style.chart.tooltip.customFormat;
|
|
306
|
-
if (Zt(a) && eo(() => a({
|
|
307
|
-
seriesIndex: l,
|
|
308
|
-
datapoint: t,
|
|
309
|
-
series: b.value,
|
|
310
|
-
config: e.value
|
|
311
|
-
})))
|
|
312
|
-
Q.value = a({
|
|
313
|
-
seriesIndex: l,
|
|
314
|
-
datapoint: t,
|
|
315
|
-
series: b.value,
|
|
316
|
-
config: e.value
|
|
317
|
-
});
|
|
318
|
-
else {
|
|
319
|
-
let r = "";
|
|
320
|
-
r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, r += `<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="${o.color}" />${ft.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${m.value}_${t.absoluteIndex})" />` : ""}</svg>`, r += `<b>${Le({
|
|
321
|
-
showVal: e.value.style.chart.tooltip.showValue,
|
|
322
|
-
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
323
|
-
val: `<span>${Ye(
|
|
324
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
325
|
-
o.value,
|
|
326
|
-
V({
|
|
327
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
328
|
-
v: o.value,
|
|
329
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
330
|
-
r: e.value.style.chart.tooltip.roundingValue
|
|
331
|
-
}),
|
|
332
|
-
{ datapoint: t, seriesIndex: l }
|
|
333
|
-
)}</span>`,
|
|
334
|
-
percentage: V({
|
|
335
|
-
v: o.value / _.value * 100,
|
|
336
|
-
s: "%",
|
|
337
|
-
r: e.value.style.chart.tooltip.roundingPercentage
|
|
338
|
-
})
|
|
339
|
-
})}</b></div>`, Q.value = r;
|
|
340
|
-
}
|
|
341
|
-
G.value = !0;
|
|
342
|
-
}
|
|
343
|
-
const D = g(() => {
|
|
344
|
-
const t = b.value.map((o) => ({
|
|
345
|
-
name: o.name,
|
|
346
|
-
color: o.color
|
|
347
|
-
})), l = b.value.map((o) => o.value);
|
|
348
|
-
return { head: t, body: l };
|
|
349
|
-
}), X = g(() => {
|
|
350
|
-
const t = [
|
|
351
|
-
' <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>',
|
|
352
|
-
V({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: _.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
353
|
-
"100%"
|
|
354
|
-
], l = D.value.head.map((r, d) => [
|
|
355
|
-
{
|
|
356
|
-
color: r.color,
|
|
357
|
-
name: r.name
|
|
358
|
-
},
|
|
359
|
-
V({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: D.value.body[d], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
360
|
-
isNaN(D.value.body[d] / _.value) ? "-" : (D.value.body[d] / _.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
361
|
-
]), o = {
|
|
362
|
-
th: {
|
|
363
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
364
|
-
color: e.value.table.th.color,
|
|
365
|
-
outline: e.value.table.th.outline
|
|
366
|
-
},
|
|
367
|
-
td: {
|
|
368
|
-
backgroundColor: e.value.table.td.backgroundColor,
|
|
369
|
-
color: e.value.table.td.color,
|
|
370
|
-
outline: e.value.table.td.outline
|
|
371
|
-
},
|
|
372
|
-
breakpoint: e.value.table.responsiveBreakpoint
|
|
373
|
-
}, a = [
|
|
374
|
-
e.value.table.columnNames.series,
|
|
375
|
-
e.value.table.columnNames.value,
|
|
376
|
-
e.value.table.columnNames.percentage
|
|
377
|
-
];
|
|
378
|
-
return {
|
|
379
|
-
head: t,
|
|
380
|
-
body: l,
|
|
381
|
-
config: o,
|
|
382
|
-
colNames: a
|
|
383
|
-
};
|
|
384
|
-
});
|
|
385
|
-
function se(t = null) {
|
|
386
|
-
zt(() => {
|
|
387
|
-
const l = D.value.head.map((r, d) => [[
|
|
388
|
-
r.name
|
|
389
|
-
], [D.value.body[d]], [isNaN(D.value.body[d] / _.value) ? "-" : D.value.body[d] / _.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), a = Kt(o);
|
|
390
|
-
t ? t(a) : Qt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
const B = u(!1);
|
|
394
|
-
function Ne(t) {
|
|
395
|
-
B.value = t, fe.value += 1;
|
|
396
|
-
}
|
|
397
|
-
function Re() {
|
|
398
|
-
k.value.showTable = !k.value.showTable;
|
|
399
|
-
}
|
|
400
|
-
function Ve() {
|
|
401
|
-
k.value.showTooltip = !k.value.showTooltip;
|
|
402
|
-
}
|
|
403
|
-
const Y = u(!1);
|
|
404
|
-
function ue() {
|
|
405
|
-
Y.value = !Y.value;
|
|
406
|
-
}
|
|
407
|
-
async function St({ scale: t = 2 } = {}) {
|
|
408
|
-
if (!F.value) return;
|
|
409
|
-
const { width: l, height: o } = F.value.getBoundingClientRect(), a = l / o, { imageUri: r, base64: d } = await go({ domElement: F.value, base64: !0, img: !0, scale: t });
|
|
410
|
-
return {
|
|
411
|
-
imageUri: r,
|
|
412
|
-
base64: d,
|
|
413
|
-
title: e.value.style.chart.title.text,
|
|
414
|
-
width: l,
|
|
415
|
-
height: o,
|
|
416
|
-
aspectRatio: a
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
const z = g(() => {
|
|
420
|
-
const t = e.value.table.useDialog && !e.value.table.show, l = k.value.showTable;
|
|
421
|
-
return {
|
|
422
|
-
component: t ? dt : st,
|
|
423
|
-
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
424
|
-
props: t ? {
|
|
425
|
-
backgroundColor: e.value.table.th.backgroundColor,
|
|
426
|
-
color: e.value.table.th.color,
|
|
427
|
-
headerColor: e.value.table.th.color,
|
|
428
|
-
headerBg: e.value.table.th.backgroundColor,
|
|
429
|
-
isFullscreen: B.value,
|
|
430
|
-
fullscreenParent: F.value,
|
|
431
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
432
|
-
} : {
|
|
433
|
-
hideDetails: !0,
|
|
434
|
-
config: {
|
|
435
|
-
open: l,
|
|
436
|
-
maxHeight: 1e4,
|
|
437
|
-
body: {
|
|
438
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
439
|
-
color: e.value.style.chart.color
|
|
440
|
-
},
|
|
441
|
-
head: {
|
|
442
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
443
|
-
color: e.value.style.chart.color
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
});
|
|
449
|
-
q(() => k.value.showTable, (t) => {
|
|
450
|
-
e.value.table.show || (t && e.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
451
|
-
});
|
|
452
|
-
function Me() {
|
|
453
|
-
k.value.showTable = !1, ee.value && ee.value.setTableIconState(!1);
|
|
454
|
-
}
|
|
455
|
-
const Dt = g(() => ne.value.map((t) => ({
|
|
456
|
-
...t,
|
|
457
|
-
name: t.display
|
|
458
|
-
}))), Ot = g(() => e.value.style.chart.backgroundColor), Et = g(() => e.value.style.chart.legend), xt = g(() => e.value.style.chart.title), { exportSvg: It, getSvg: Pt } = uo({
|
|
459
|
-
svg: oe,
|
|
460
|
-
title: xt,
|
|
461
|
-
legend: Et,
|
|
462
|
-
legendItems: Dt,
|
|
463
|
-
backgroundColor: Ot
|
|
464
|
-
});
|
|
465
|
-
async function Ue({ isCb: t }) {
|
|
466
|
-
if (t) {
|
|
467
|
-
const { blob: l, url: o, text: a, dataUrl: r } = await Pt();
|
|
468
|
-
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: r });
|
|
469
|
-
} else
|
|
470
|
-
It();
|
|
471
|
-
}
|
|
472
|
-
return lt({
|
|
473
|
-
getData: $t,
|
|
474
|
-
getImage: St,
|
|
475
|
-
generatePdf: Ee,
|
|
476
|
-
generateCsv: se,
|
|
477
|
-
generateImage: xe,
|
|
478
|
-
generateSvg: Ue,
|
|
479
|
-
hideSeries: kt,
|
|
480
|
-
showSeries: Ct,
|
|
481
|
-
toggleTable: Re,
|
|
482
|
-
toggleTooltip: Ve,
|
|
483
|
-
toggleAnnotator: ue,
|
|
484
|
-
toggleFullscreen: Ne
|
|
485
|
-
}), (t, l) => (i(), f("div", {
|
|
486
|
-
ref_key: "ringsChart",
|
|
487
|
-
ref: F,
|
|
488
|
-
class: j(`vue-data-ui-component vue-ui-rings ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
489
|
-
style: L(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
490
|
-
id: `rings_${m.value}`,
|
|
491
|
-
onMouseleave: l[2] || (l[2] = (o) => {
|
|
492
|
-
T.value = null, G.value = !1, n(Fe)(!1);
|
|
493
|
-
}),
|
|
494
|
-
onMouseenter: l[3] || (l[3] = () => n(Fe)(!0))
|
|
495
|
-
}, [
|
|
496
|
-
e.value.userOptions.buttons.annotator ? (i(), E(n(it), {
|
|
497
|
-
key: 0,
|
|
498
|
-
svgRef: n(oe),
|
|
499
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
500
|
-
color: e.value.style.chart.color,
|
|
501
|
-
active: Y.value,
|
|
502
|
-
onClose: ue
|
|
503
|
-
}, {
|
|
504
|
-
"annotator-action-close": c(() => [
|
|
505
|
-
v(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
506
|
-
]),
|
|
507
|
-
"annotator-action-color": c(({ color: o }) => [
|
|
508
|
-
v(t.$slots, "annotator-action-color", A($({ color: o })), void 0, !0)
|
|
509
|
-
]),
|
|
510
|
-
"annotator-action-draw": c(({ mode: o }) => [
|
|
511
|
-
v(t.$slots, "annotator-action-draw", A($({ mode: o })), void 0, !0)
|
|
512
|
-
]),
|
|
513
|
-
"annotator-action-undo": c(({ disabled: o }) => [
|
|
514
|
-
v(t.$slots, "annotator-action-undo", A($({ disabled: o })), void 0, !0)
|
|
515
|
-
]),
|
|
516
|
-
"annotator-action-redo": c(({ disabled: o }) => [
|
|
517
|
-
v(t.$slots, "annotator-action-redo", A($({ disabled: o })), void 0, !0)
|
|
518
|
-
]),
|
|
519
|
-
"annotator-action-delete": c(({ disabled: o }) => [
|
|
520
|
-
v(t.$slots, "annotator-action-delete", A($({ disabled: o })), void 0, !0)
|
|
521
|
-
]),
|
|
522
|
-
_: 3
|
|
523
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : C("", !0),
|
|
524
|
-
bt.value ? (i(), f("div", {
|
|
525
|
-
key: 1,
|
|
526
|
-
ref_key: "noTitle",
|
|
527
|
-
ref: Ce,
|
|
528
|
-
class: "vue-data-ui-no-title-space",
|
|
529
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
530
|
-
}, null, 512)) : C("", !0),
|
|
531
|
-
e.value.style.chart.title.text ? (i(), f("div", {
|
|
532
|
-
key: 2,
|
|
533
|
-
ref_key: "chartTitle",
|
|
534
|
-
ref: be,
|
|
535
|
-
style: "width:100%;background:transparent"
|
|
536
|
-
}, [
|
|
537
|
-
(i(), E(po, {
|
|
538
|
-
key: `title_${ke.value}`,
|
|
539
|
-
config: {
|
|
540
|
-
title: {
|
|
541
|
-
cy: "rings-div-title",
|
|
542
|
-
...e.value.style.chart.title
|
|
543
|
-
},
|
|
544
|
-
subtitle: {
|
|
545
|
-
cy: "rings-div-subtitle",
|
|
546
|
-
...e.value.style.chart.title.subtitle
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
}, null, 8, ["config"]))
|
|
550
|
-
], 512)) : C("", !0),
|
|
551
|
-
w("div", {
|
|
552
|
-
id: `legend-top-${m.value}`
|
|
553
|
-
}, null, 8, mo),
|
|
554
|
-
e.value.userOptions.show && pe.value && (n(_e) || n(te)) ? (i(), E(n(ct), {
|
|
555
|
-
ref_key: "userOptionsRef",
|
|
556
|
-
ref: ee,
|
|
557
|
-
key: `user_options_${fe.value}`,
|
|
558
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
559
|
-
color: e.value.style.chart.color,
|
|
560
|
-
isPrinting: n(De),
|
|
561
|
-
isImaging: n(Oe),
|
|
562
|
-
uid: m.value,
|
|
563
|
-
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
564
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
565
|
-
hasXls: e.value.userOptions.buttons.csv,
|
|
566
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
567
|
-
hasSvg: e.value.userOptions.buttons.svg,
|
|
568
|
-
hasTable: e.value.userOptions.buttons.table,
|
|
569
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
570
|
-
isTooltip: k.value.showTooltip,
|
|
571
|
-
isFullscreen: B.value,
|
|
572
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
573
|
-
chartElement: F.value,
|
|
574
|
-
position: e.value.userOptions.position,
|
|
575
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
576
|
-
isAnnotation: Y.value,
|
|
577
|
-
callbacks: e.value.userOptions.callbacks,
|
|
578
|
-
printScale: e.value.userOptions.print.scale,
|
|
579
|
-
tableDialog: e.value.table.useDialog,
|
|
580
|
-
onToggleFullscreen: Ne,
|
|
581
|
-
onGeneratePdf: n(Ee),
|
|
582
|
-
onGenerateCsv: se,
|
|
583
|
-
onGenerateImage: n(xe),
|
|
584
|
-
onGenerateSvg: Ue,
|
|
585
|
-
onToggleTable: Re,
|
|
586
|
-
onToggleTooltip: Ve,
|
|
587
|
-
onToggleAnnotator: ue,
|
|
588
|
-
style: L({
|
|
589
|
-
visibility: n(_e) ? n(te) ? "visible" : "hidden" : "visible"
|
|
590
|
-
})
|
|
591
|
-
}, ie({ _: 2 }, [
|
|
592
|
-
t.$slots.menuIcon ? {
|
|
593
|
-
name: "menuIcon",
|
|
594
|
-
fn: c(({ isOpen: o, color: a }) => [
|
|
595
|
-
v(t.$slots, "menuIcon", A($({ isOpen: o, color: a })), void 0, !0)
|
|
596
|
-
]),
|
|
597
|
-
key: "0"
|
|
598
|
-
} : void 0,
|
|
599
|
-
t.$slots.optionTooltip ? {
|
|
600
|
-
name: "optionTooltip",
|
|
601
|
-
fn: c(() => [
|
|
602
|
-
v(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
603
|
-
]),
|
|
604
|
-
key: "1"
|
|
605
|
-
} : void 0,
|
|
606
|
-
t.$slots.optionPdf ? {
|
|
607
|
-
name: "optionPdf",
|
|
608
|
-
fn: c(() => [
|
|
609
|
-
v(t.$slots, "optionPdf", {}, void 0, !0)
|
|
610
|
-
]),
|
|
611
|
-
key: "2"
|
|
612
|
-
} : void 0,
|
|
613
|
-
t.$slots.optionCsv ? {
|
|
614
|
-
name: "optionCsv",
|
|
615
|
-
fn: c(() => [
|
|
616
|
-
v(t.$slots, "optionCsv", {}, void 0, !0)
|
|
617
|
-
]),
|
|
618
|
-
key: "3"
|
|
619
|
-
} : void 0,
|
|
620
|
-
t.$slots.optionImg ? {
|
|
621
|
-
name: "optionImg",
|
|
622
|
-
fn: c(() => [
|
|
623
|
-
v(t.$slots, "optionImg", {}, void 0, !0)
|
|
624
|
-
]),
|
|
625
|
-
key: "4"
|
|
626
|
-
} : void 0,
|
|
627
|
-
t.$slots.optionSvg ? {
|
|
628
|
-
name: "optionSvg",
|
|
629
|
-
fn: c(() => [
|
|
630
|
-
v(t.$slots, "optionSvg", {}, void 0, !0)
|
|
631
|
-
]),
|
|
632
|
-
key: "5"
|
|
633
|
-
} : void 0,
|
|
634
|
-
t.$slots.optionTable ? {
|
|
635
|
-
name: "optionTable",
|
|
636
|
-
fn: c(() => [
|
|
637
|
-
v(t.$slots, "optionTable", {}, void 0, !0)
|
|
638
|
-
]),
|
|
639
|
-
key: "6"
|
|
640
|
-
} : void 0,
|
|
641
|
-
t.$slots.optionFullscreen ? {
|
|
642
|
-
name: "optionFullscreen",
|
|
643
|
-
fn: c(({ toggleFullscreen: o, isFullscreen: a }) => [
|
|
644
|
-
v(t.$slots, "optionFullscreen", A($({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
|
|
645
|
-
]),
|
|
646
|
-
key: "7"
|
|
647
|
-
} : void 0,
|
|
648
|
-
t.$slots.optionAnnotator ? {
|
|
649
|
-
name: "optionAnnotator",
|
|
650
|
-
fn: c(({ toggleAnnotator: o, isAnnotator: a }) => [
|
|
651
|
-
v(t.$slots, "optionAnnotator", A($({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
|
|
652
|
-
]),
|
|
653
|
-
key: "8"
|
|
654
|
-
} : void 0
|
|
655
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : C("", !0),
|
|
656
|
-
(i(), f("svg", {
|
|
657
|
-
ref_key: "svgRef",
|
|
658
|
-
ref: oe,
|
|
659
|
-
xmlns: n(Yt),
|
|
660
|
-
class: j({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value, resizing: Z.value || n(I) }),
|
|
661
|
-
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
662
|
-
style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
663
|
-
}, [
|
|
664
|
-
J(n(vt)),
|
|
665
|
-
t.$slots["chart-background"] ? (i(), f("foreignObject", {
|
|
666
|
-
key: 0,
|
|
667
|
-
x: 0,
|
|
668
|
-
y: 0,
|
|
669
|
-
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
670
|
-
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
671
|
-
style: {
|
|
672
|
-
pointerEvents: "none"
|
|
673
|
-
}
|
|
674
|
-
}, [
|
|
675
|
-
v(t.$slots, "chart-background", {}, void 0, !0)
|
|
676
|
-
], 8, ko)) : C("", !0),
|
|
677
|
-
w("defs", null, [
|
|
678
|
-
(i(!0), f(ce, null, ve(b.value, (o, a) => (i(), f("radialGradient", {
|
|
679
|
-
cx: "50%",
|
|
680
|
-
cy: "30%",
|
|
681
|
-
r: "50%",
|
|
682
|
-
fx: "50%",
|
|
683
|
-
fy: "50%",
|
|
684
|
-
id: `gradient_${m.value}_${a}`
|
|
685
|
-
}, [
|
|
686
|
-
w("stop", {
|
|
687
|
-
offset: "0%",
|
|
688
|
-
"stop-color": n(qt)(n(Jt)(o.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
689
|
-
}, null, 8, Ao),
|
|
690
|
-
w("stop", {
|
|
691
|
-
offset: "100%",
|
|
692
|
-
"stop-color": o.color
|
|
693
|
-
}, null, 8, $o)
|
|
694
|
-
], 8, wo))), 256))
|
|
695
|
-
]),
|
|
696
|
-
t.$slots.pattern ? (i(), f("g", To, [
|
|
697
|
-
(i(!0), f(ce, null, ve(b.value, (o) => (i(), f("defs", null, [
|
|
698
|
-
v(t.$slots, "pattern", We({ ref_for: !0 }, { seriesIndex: o.absoluteIndex, patternId: `pattern_${m.value}_${o.absoluteIndex}` }), void 0, !0)
|
|
699
|
-
]))), 256))
|
|
700
|
-
])) : C("", !0),
|
|
701
|
-
(i(!0), f(ce, null, ve(b.value, (o, a) => (i(), f("g", null, [
|
|
702
|
-
w("circle", {
|
|
703
|
-
class: j({
|
|
704
|
-
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
705
|
-
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !n(I),
|
|
706
|
-
"vue-ui-rings-opacity": T.value !== null && T.value !== a
|
|
707
|
-
}),
|
|
708
|
-
style: L(`animation-delay:${a * 100}ms`),
|
|
709
|
-
stroke: e.value.style.chart.layout.rings.stroke,
|
|
710
|
-
cx: s.value.width / 2,
|
|
711
|
-
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + p.value * b.value[0].proportion / 2 - p.value * o.proportion / 2 - 2 * (a + 1),
|
|
712
|
-
r: n(K)(p.value * o.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * o.proportion / 2 * 0.9),
|
|
713
|
-
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
714
|
-
}, null, 14, Fo),
|
|
715
|
-
w("circle", {
|
|
716
|
-
class: j({
|
|
717
|
-
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
718
|
-
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !n(I),
|
|
719
|
-
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
720
|
-
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
721
|
-
}),
|
|
722
|
-
style: L(`animation-delay:${a * 100}ms`),
|
|
723
|
-
stroke: e.value.style.chart.layout.rings.stroke,
|
|
724
|
-
"stroke-width": o.strokeWidth < 0.5 ? 0.5 : o.strokeWidth,
|
|
725
|
-
cx: s.value.width / 2,
|
|
726
|
-
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + p.value * b.value[0].proportion / 2 - p.value * o.proportion / 2 - 2 * (a + 1),
|
|
727
|
-
r: n(K)(p.value * o.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * o.proportion / 2 * 0.9),
|
|
728
|
-
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${m.value}_${a})` : o.color
|
|
729
|
-
}, null, 14, _o),
|
|
730
|
-
t.$slots.pattern ? (i(), f("circle", {
|
|
731
|
-
key: 0,
|
|
732
|
-
class: j({
|
|
733
|
-
"vue-ui-rings-item": x.value && e.value.useCssAnimation,
|
|
734
|
-
"vue-rings-item-onload": !x.value && e.value.useCssAnimation && !n(I),
|
|
735
|
-
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
736
|
-
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
737
|
-
}),
|
|
738
|
-
style: L(`animation-delay:${a * 100}ms`),
|
|
739
|
-
stroke: e.value.style.chart.layout.rings.stroke,
|
|
740
|
-
"stroke-width": o.strokeWidth < 0.5 ? 0.5 : o.strokeWidth,
|
|
741
|
-
cx: s.value.width / 2,
|
|
742
|
-
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + p.value * b.value[0].proportion / 2 - p.value * o.proportion / 2 - 2 * (a + 1),
|
|
743
|
-
r: n(K)(p.value * o.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * o.proportion / 2 * 0.9),
|
|
744
|
-
fill: `url(#pattern_${m.value}_${o.absoluteIndex})`
|
|
745
|
-
}, null, 14, So)) : C("", !0),
|
|
746
|
-
w("circle", {
|
|
747
|
-
stroke: "none",
|
|
748
|
-
cx: s.value.width / 2,
|
|
749
|
-
cy: a === 0 ? s.value.height / 2 : s.value.height / 2 + p.value * b.value[0].proportion / 2 - p.value * o.proportion / 2 - 2 * (a + 1),
|
|
750
|
-
r: n(K)(p.value * o.proportion / 2 * 0.9 <= 0 ? 1e-4 : p.value * o.proportion / 2 * 0.9),
|
|
751
|
-
fill: "transparent",
|
|
752
|
-
onMouseenter: (r) => _t(o, a),
|
|
753
|
-
onMouseleave: (r) => Ft(o, a),
|
|
754
|
-
onClick: (r) => Tt(o, a)
|
|
755
|
-
}, null, 40, Do)
|
|
756
|
-
]))), 256)),
|
|
757
|
-
v(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
758
|
-
], 14, Co)),
|
|
759
|
-
t.$slots.watermark ? (i(), f("div", Oo, [
|
|
760
|
-
v(t.$slots, "watermark", A($({ isPrinting: n(De) || n(Oe) })), void 0, !0)
|
|
761
|
-
])) : C("", !0),
|
|
762
|
-
w("div", {
|
|
763
|
-
id: `legend-bottom-${m.value}`
|
|
764
|
-
}, null, 8, Eo),
|
|
765
|
-
$e.value ? (i(), E(Mt, {
|
|
766
|
-
key: 5,
|
|
767
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${m.value}` : `#legend-bottom-${m.value}`
|
|
768
|
-
}, [
|
|
769
|
-
w("div", {
|
|
770
|
-
ref_key: "chartLegend",
|
|
771
|
-
ref: ye
|
|
772
|
-
}, [
|
|
773
|
-
e.value.style.chart.legend.show ? (i(), E(fo, {
|
|
774
|
-
key: `legend_${Ae.value}`,
|
|
775
|
-
legendSet: ne.value,
|
|
776
|
-
config: At.value,
|
|
777
|
-
onClickMarker: l[0] || (l[0] = ({ legend: o }) => U(o.uid))
|
|
778
|
-
}, ie({
|
|
779
|
-
item: c(({ legend: o, index: a }) => [
|
|
780
|
-
n(I) ? C("", !0) : (i(), f("div", {
|
|
781
|
-
key: 0,
|
|
782
|
-
onClick: (r) => U(o.uid),
|
|
783
|
-
style: L(`opacity:${h.value.includes(o.uid) ? 0.5 : 1}`)
|
|
784
|
-
}, de(o.display), 13, xo))
|
|
785
|
-
]),
|
|
786
|
-
_: 2
|
|
787
|
-
}, [
|
|
788
|
-
t.$slots.pattern ? {
|
|
789
|
-
name: "legend-pattern",
|
|
790
|
-
fn: c(({ legend: o, index: a }) => [
|
|
791
|
-
J(ho, {
|
|
792
|
-
shape: o.shape,
|
|
793
|
-
radius: 30,
|
|
794
|
-
stroke: "none",
|
|
795
|
-
plot: { x: 30, y: 30 },
|
|
796
|
-
fill: `url(#pattern_${m.value}_${a})`
|
|
797
|
-
}, null, 8, ["shape", "fill"])
|
|
798
|
-
]),
|
|
799
|
-
key: "0"
|
|
800
|
-
} : void 0
|
|
801
|
-
]), 1032, ["legendSet", "config"])) : v(t.$slots, "legend", {
|
|
802
|
-
key: 1,
|
|
803
|
-
legend: ne.value
|
|
804
|
-
}, void 0, !0)
|
|
805
|
-
], 512)
|
|
806
|
-
], 8, ["to"])) : C("", !0),
|
|
807
|
-
t.$slots.source ? (i(), f("div", {
|
|
808
|
-
key: 6,
|
|
809
|
-
ref_key: "source",
|
|
810
|
-
ref: me,
|
|
811
|
-
dir: "auto"
|
|
812
|
-
}, [
|
|
813
|
-
v(t.$slots, "source", {}, void 0, !0)
|
|
814
|
-
], 512)) : C("", !0),
|
|
815
|
-
J(n(nt), {
|
|
816
|
-
show: k.value.showTooltip && G.value && h.value.length < y.dataset.length,
|
|
817
|
-
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
818
|
-
color: e.value.style.chart.tooltip.color,
|
|
819
|
-
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
820
|
-
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
821
|
-
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
822
|
-
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
823
|
-
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
824
|
-
position: e.value.style.chart.tooltip.position,
|
|
825
|
-
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
826
|
-
parent: F.value,
|
|
827
|
-
content: Q.value,
|
|
828
|
-
isFullscreen: B.value,
|
|
829
|
-
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
830
|
-
smooth: e.value.style.chart.tooltip.smooth,
|
|
831
|
-
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
832
|
-
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
833
|
-
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
834
|
-
}, {
|
|
835
|
-
"tooltip-before": c(() => [
|
|
836
|
-
v(t.$slots, "tooltip-before", A($({ ...re.value })), void 0, !0)
|
|
837
|
-
]),
|
|
838
|
-
"tooltip-after": c(() => [
|
|
839
|
-
v(t.$slots, "tooltip-after", A($({ ...re.value })), void 0, !0)
|
|
840
|
-
]),
|
|
841
|
-
_: 3
|
|
842
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
843
|
-
pe.value && e.value.userOptions.buttons.table ? (i(), E(Ut(z.value.component), We({ key: 7 }, z.value.props, {
|
|
844
|
-
ref_key: "tableUnit",
|
|
845
|
-
ref: M,
|
|
846
|
-
onClose: Me
|
|
847
|
-
}), ie({
|
|
848
|
-
content: c(() => [
|
|
849
|
-
(i(), E(n(ut), {
|
|
850
|
-
key: `table_${we.value}`,
|
|
851
|
-
colNames: X.value.colNames,
|
|
852
|
-
head: X.value.head,
|
|
853
|
-
body: X.value.body,
|
|
854
|
-
config: X.value.config,
|
|
855
|
-
title: e.value.table.useDialog ? "" : z.value.title,
|
|
856
|
-
withCloseButton: !e.value.table.useDialog,
|
|
857
|
-
onClose: Me
|
|
858
|
-
}, {
|
|
859
|
-
th: c(({ th: o }) => [
|
|
860
|
-
w("div", {
|
|
861
|
-
innerHTML: o,
|
|
862
|
-
style: { display: "flex", "align-items": "center" }
|
|
863
|
-
}, null, 8, Io)
|
|
864
|
-
]),
|
|
865
|
-
td: c(({ td: o }) => [
|
|
866
|
-
je(de(o.name || o), 1)
|
|
867
|
-
]),
|
|
868
|
-
_: 1
|
|
869
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
870
|
-
]),
|
|
871
|
-
_: 2
|
|
872
|
-
}, [
|
|
873
|
-
e.value.table.useDialog ? {
|
|
874
|
-
name: "title",
|
|
875
|
-
fn: c(() => [
|
|
876
|
-
je(de(z.value.title), 1)
|
|
877
|
-
]),
|
|
878
|
-
key: "0"
|
|
879
|
-
} : void 0,
|
|
880
|
-
e.value.table.useDialog ? {
|
|
881
|
-
name: "actions",
|
|
882
|
-
fn: c(() => [
|
|
883
|
-
w("button", {
|
|
884
|
-
tabindex: "0",
|
|
885
|
-
class: "vue-ui-user-options-button",
|
|
886
|
-
onClick: l[1] || (l[1] = (o) => se(e.value.userOptions.callbacks.csv))
|
|
887
|
-
}, [
|
|
888
|
-
J(n(rt), {
|
|
889
|
-
name: "excel",
|
|
890
|
-
stroke: z.value.props.color
|
|
891
|
-
}, null, 8, ["stroke"])
|
|
892
|
-
])
|
|
893
|
-
]),
|
|
894
|
-
key: "1"
|
|
895
|
-
} : void 0
|
|
896
|
-
]), 1040)) : C("", !0),
|
|
897
|
-
n(I) ? (i(), E(so, { key: 8 })) : C("", !0)
|
|
898
|
-
], 46, yo));
|
|
899
|
-
}
|
|
900
|
-
}, Bo = /* @__PURE__ */ bo(Po, [["__scopeId", "data-v-0ab006de"]]), Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
901
|
-
__proto__: null,
|
|
902
|
-
default: Bo
|
|
903
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
904
|
-
export {
|
|
905
|
-
Qo as a,
|
|
906
|
-
Zo as b,
|
|
907
|
-
Bo as v
|
|
908
|
-
};
|