vue-data-ui 3.2.7 → 3.3.0
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-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- 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-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-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-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-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-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
- package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
- package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
- package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
- package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
- package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
- package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
- package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
- package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
- package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
- package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
- package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
- package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
- package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
- package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
- package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
- package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
- package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
- package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
- package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
- package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
- package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
- package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
- package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
- package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
- package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
- package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
- package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
- package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
- package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
- package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
- package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
- package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
- package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-data-ui-DH8opsJv.js +0 -325
- package/dist/vue-ui-flow-B72CBzC3.js +0 -909
- package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
- package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
1
|
+
import { defineAsyncComponent as A, useSlots as $t, ref as r, computed as c, toRefs as Tt, watch as q, shallowRef as Me, onMounted as _t, onBeforeUnmount as xt, createElementBlock as p, openBlock as i, unref as s, normalizeStyle as L, normalizeClass as U, createBlock as O, createCommentVNode as b, createElementVNode as C, createVNode as Y, createSlots as ie, withCtx as d, renderSlot as g, normalizeProps as B, guardReactiveProps as V, Fragment as ve, renderList as ce, mergeProps as ze, Teleport as St, toDisplayString as de, resolveDynamicComponent as At, createTextVNode as Ee, nextTick as Ot } from "vue";
|
|
2
|
+
import { c as Ue, t as Ft, b as It, p as N, o as We, f as he, g as Pt, e as Lt, J as Nt, h as Ge, a as He, d as D, X as Dt, s as Rt, i as Bt, q as J, x as Vt, y as Mt, z as zt, A as Et } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as Ut, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Gt, a as je } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as Ht } from "./usePrinter-DYRFiw7X.js";
|
|
6
|
+
import { u as jt, B as Xt } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as qt } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as Yt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import Kt from "./img-6wPuVVtk.js";
|
|
11
|
+
import { _ as Qt } from "./Shape-DJG2zW7b.js";
|
|
12
|
+
import Zt from "./Title-D17CJXko.js";
|
|
13
|
+
import { t as el } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import tl from "./Legend-DsogCeTb.js";
|
|
15
|
+
import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "height"], ul = ["id"], rl = ["stop-color"], il = ["stop-color"], vl = { key: 1 }, cl = ["stroke", "cx", "cy", "r", "fill"], dl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], hl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], pl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], gl = {
|
|
16
17
|
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, fl = ["id"], yl = ["onClick"], ml = ["innerHTML"], bl = {
|
|
19
20
|
__name: "vue-ui-rings",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,9 +33,9 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
...
|
|
36
|
+
setup(Xe, { expose: qe, emit: Ye }) {
|
|
37
|
+
const Je = A(() => import("./Tooltip-CtVdvbZi.js")), Ke = A(() => import("./BaseIcon-CtqN7W_g.js")), Qe = A(() => import("./vue-ui-accordion-Dch9YrCi.js")), Ze = A(() => import("./DataTable-BeI6gYJX.js")), et = A(() => import("./PenAndPaper-BxbYiPy4.js")), tt = A(() => import("./UserOptions-B3vCIe-u.js")), lt = A(() => import("./PackageVersion-C9oklnuy.js")), ot = A(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_rings: at } = Gt(), st = $t(), k = Xe, F = r(!1), pe = c(() => !!k.dataset && k.dataset.length), y = r(Ue()), W = r(!1), K = r(""), T = r(null), ge = r(0), _ = r(null), fe = r(null), ye = r(null), me = r(null), be = r(null), ke = r(0), we = r(0), Ce = r(0), Q = r(!1), $e = r(!1), M = r(null), Z = r(null), e = r(le()), { loading: I, FINAL_DATASET: Te, manualLoading: G } = jt({
|
|
38
|
+
...Tt(k),
|
|
38
39
|
FINAL_CONFIG: e,
|
|
39
40
|
prepareConfig: le,
|
|
40
41
|
skeletonDataset: [
|
|
@@ -44,7 +45,7 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
44
45
|
{ name: "_", values: [3], color: "#C4C4C4" },
|
|
45
46
|
{ name: "_", values: [2], color: "#DBDBDB" }
|
|
46
47
|
],
|
|
47
|
-
skeletonConfig:
|
|
48
|
+
skeletonConfig: Ft({
|
|
48
49
|
defaultConfig: e.value,
|
|
49
50
|
userConfig: {
|
|
50
51
|
userOptions: { show: !1 },
|
|
@@ -67,45 +68,45 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
})
|
|
70
|
-
}), { userOptionsVisible:
|
|
71
|
+
}), { userOptionsVisible: ee, setUserOptionsVisibility: _e, keepUserOptionState: xe } = Yt({ config: e.value }), { svgRef: te } = Jt({ config: e.value.style.chart.title });
|
|
71
72
|
function le() {
|
|
72
|
-
const t =
|
|
73
|
+
const t = je({
|
|
73
74
|
userConfig: k.config,
|
|
74
|
-
defaultConfig:
|
|
75
|
+
defaultConfig: at
|
|
75
76
|
});
|
|
76
77
|
return t.theme ? {
|
|
77
|
-
...
|
|
78
|
-
userConfig:
|
|
78
|
+
...je({
|
|
79
|
+
userConfig: el.vue_ui_rings[t.theme] || k.config,
|
|
79
80
|
defaultConfig: t
|
|
80
81
|
}),
|
|
81
|
-
customPalette:
|
|
82
|
+
customPalette: It[t.theme] || N
|
|
82
83
|
} : t;
|
|
83
84
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}, { deep: !0 }),
|
|
87
|
-
Array.isArray(t) && t.length > 0 && (
|
|
85
|
+
q(() => k.config, (t) => {
|
|
86
|
+
I.value || (e.value = le()), ee.value = !e.value.userOptions.showOnChartHover, Se(), ke.value += 1, we.value += 1, Ce.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
87
|
+
}, { deep: !0 }), q(() => k.dataset, (t) => {
|
|
88
|
+
Array.isArray(t) && t.length > 0 && (G.value = !1);
|
|
88
89
|
}, { deep: !0 });
|
|
89
|
-
const x =
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
const x = Me(null), R = Me(null);
|
|
91
|
+
_t(() => {
|
|
92
|
+
$e.value = !0, Se();
|
|
92
93
|
});
|
|
93
|
-
const oe =
|
|
94
|
-
function
|
|
95
|
-
if (
|
|
94
|
+
const oe = c(() => !!e.value.debug);
|
|
95
|
+
function Se() {
|
|
96
|
+
if (We(k.dataset) ? (he({
|
|
96
97
|
componentName: "VueUiRings",
|
|
97
98
|
type: "dataset",
|
|
98
99
|
debug: oe.value
|
|
99
|
-
}),
|
|
100
|
-
t.values.length || (
|
|
100
|
+
}), G.value = !0) : k.dataset.forEach((t, o) => {
|
|
101
|
+
t.values.length || (he({
|
|
101
102
|
componentName: "VueUiRings",
|
|
102
103
|
type: "dataset",
|
|
103
104
|
debug: oe.value
|
|
104
|
-
}),
|
|
105
|
+
}), G.value = !0), Pt({
|
|
105
106
|
datasetObject: t,
|
|
106
107
|
requiredAttributes: ["name", "values"]
|
|
107
108
|
}).forEach((l) => {
|
|
108
|
-
|
|
109
|
+
he({
|
|
109
110
|
componentName: "VueUiRings",
|
|
110
111
|
type: "datasetSerieAttribute",
|
|
111
112
|
property: l,
|
|
@@ -113,139 +114,145 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
113
114
|
debug: oe.value
|
|
114
115
|
});
|
|
115
116
|
});
|
|
116
|
-
}),
|
|
117
|
-
const t =
|
|
118
|
-
|
|
119
|
-
const { width: o, height: l } =
|
|
117
|
+
}), We(k.dataset) || (G.value = e.value.loading), e.value.responsive) {
|
|
118
|
+
const t = Ut(() => {
|
|
119
|
+
Q.value = !0;
|
|
120
|
+
const { width: o, height: l } = Wt({
|
|
120
121
|
chart: _.value,
|
|
121
|
-
title: e.value.style.chart.title.text ?
|
|
122
|
-
legend: e.value.style.chart.legend.show ?
|
|
123
|
-
source:
|
|
124
|
-
noTitle:
|
|
122
|
+
title: e.value.style.chart.title.text ? fe.value : null,
|
|
123
|
+
legend: e.value.style.chart.legend.show ? ye.value : null,
|
|
124
|
+
source: me.value,
|
|
125
|
+
noTitle: be.value
|
|
125
126
|
});
|
|
126
127
|
requestAnimationFrame(() => {
|
|
127
|
-
|
|
128
|
+
u.value.width = o, u.value.height = l - 12, Q.value = !1;
|
|
128
129
|
});
|
|
129
130
|
});
|
|
130
131
|
x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect()), x.value = new ResizeObserver(t), R.value = _.value.parentNode, x.value.observe(R.value);
|
|
131
132
|
}
|
|
132
133
|
setTimeout(() => {
|
|
133
|
-
|
|
134
|
+
F.value = !0;
|
|
134
135
|
}, 600);
|
|
135
136
|
}
|
|
136
|
-
|
|
137
|
+
xt(() => {
|
|
137
138
|
x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect());
|
|
138
139
|
});
|
|
139
|
-
const { isPrinting: Ae, isImaging:
|
|
140
|
+
const { isPrinting: Ae, isImaging: Oe, generatePdf: Fe, generateImage: Ie } = Ht({
|
|
140
141
|
elementId: `rings_${y.value}`,
|
|
141
142
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
142
143
|
options: e.value.userOptions.print
|
|
143
|
-
}),
|
|
144
|
+
}), nt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Pe = c(() => Lt(e.value.customPalette)), w = r({
|
|
144
145
|
showTable: e.value.table.show,
|
|
145
146
|
showTooltip: e.value.style.chart.tooltip.show
|
|
146
147
|
});
|
|
147
|
-
|
|
148
|
+
q(e, () => {
|
|
148
149
|
w.value = {
|
|
149
150
|
showTable: e.value.table.show,
|
|
150
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
151
152
|
};
|
|
152
153
|
}, { immediate: !0 });
|
|
153
|
-
const
|
|
154
|
+
const u = r({
|
|
154
155
|
height: 360,
|
|
155
156
|
width: 360
|
|
156
|
-
}),
|
|
157
|
+
}), ut = c(() => Math.min(u.value.height, u.value.width)), rt = Ye, m = r([]);
|
|
157
158
|
function ae(t) {
|
|
158
|
-
m.value.includes(t) ? m.value = m.value.filter((o) => o !== t) : m.value.push(t),
|
|
159
|
+
m.value.includes(t) ? m.value = m.value.filter((o) => o !== t) : m.value.push(t), rt("selectLegend", f.value.map((o) => ({
|
|
159
160
|
name: o.name,
|
|
160
161
|
color: o.color,
|
|
161
162
|
value: o.value
|
|
162
163
|
})));
|
|
163
164
|
}
|
|
164
|
-
const
|
|
165
|
-
...
|
|
165
|
+
const it = c(() => Math.max(
|
|
166
|
+
...H.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t)
|
|
166
167
|
));
|
|
167
|
-
function
|
|
168
|
-
return t /
|
|
168
|
+
function Le(t) {
|
|
169
|
+
return t / it.value;
|
|
169
170
|
}
|
|
170
|
-
const
|
|
171
|
-
const
|
|
171
|
+
const H = c(() => Te.value.map(({ values: t, name: o, color: l = null }, a) => {
|
|
172
|
+
const n = Nt(t).reduce((v, E) => v + E, 0);
|
|
172
173
|
return {
|
|
173
174
|
name: o,
|
|
174
|
-
color: l ||
|
|
175
|
-
value:
|
|
176
|
-
proportion:
|
|
177
|
-
uid:
|
|
175
|
+
color: l || Ge(l) || Pe.value[a] || N[a] || N[a % N.length],
|
|
176
|
+
value: n,
|
|
177
|
+
proportion: n / Te.value.map((v) => (v.values || []).reduce((E, Ct) => E + Ct, 0)).reduce((v, E) => v + E, 0),
|
|
178
|
+
uid: Ue(),
|
|
178
179
|
absoluteIndex: a
|
|
179
180
|
};
|
|
180
|
-
})),
|
|
181
|
+
})), se = c(() => H.value.map((t, o) => ({
|
|
181
182
|
...t,
|
|
182
183
|
shape: "circle",
|
|
183
184
|
opacity: m.value.includes(t.uid) ? 0.5 : 1,
|
|
184
185
|
segregate: () => ae(t.uid),
|
|
185
|
-
isSegregated: m.value.includes(t.uid)
|
|
186
|
-
|
|
186
|
+
isSegregated: m.value.includes(t.uid),
|
|
187
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? He(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, D({
|
|
188
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
189
|
+
v: t.value,
|
|
190
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
191
|
+
r: e.value.style.chart.legend.roundingValue
|
|
192
|
+
}), { datapoint: t, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? m.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / $.value) ? "-" : D({ v: t.value / $.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
193
|
+
})).toSorted((t, o) => o.value - t.value)), vt = c(() => ({
|
|
187
194
|
cy: "rings-div-legend",
|
|
188
195
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
189
196
|
color: e.value.style.chart.legend.color,
|
|
190
197
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
191
198
|
paddingBottom: 12,
|
|
192
199
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
193
|
-
})), $ =
|
|
194
|
-
absoluteIndex:
|
|
200
|
+
})), $ = c(() => H.value.filter((t) => !m.value.includes(t.uid)).map(({ value: t }) => t).reduce((t, o) => t + o, 0)), f = c(() => H.value.filter((t) => !m.value.includes(t.uid)).map(({ name: t, value: o, color: l = null, uid: a, absoluteIndex: n }, v) => ({
|
|
201
|
+
absoluteIndex: n,
|
|
195
202
|
uid: a,
|
|
196
203
|
name: t,
|
|
197
|
-
color: l ||
|
|
204
|
+
color: l || Ge(l) || Pe.value[v] || N[v] || N[v % N.length],
|
|
198
205
|
value: o,
|
|
199
|
-
proportion:
|
|
206
|
+
proportion: Le(o),
|
|
200
207
|
percentage: o / $.value * 100,
|
|
201
|
-
strokeWidth: e.value.style.chart.layout.rings.strokeWidth *
|
|
208
|
+
strokeWidth: e.value.style.chart.layout.rings.strokeWidth * Le(o)
|
|
202
209
|
})).toSorted((t, o) => o.value - t.value));
|
|
203
|
-
function
|
|
204
|
-
return
|
|
205
|
-
({ name: t, color: o, value: l, absoluteValues: a, percentage:
|
|
210
|
+
function ct() {
|
|
211
|
+
return f.value.map(
|
|
212
|
+
({ name: t, color: o, value: l, absoluteValues: a, percentage: n }) => ({
|
|
206
213
|
name: t,
|
|
207
214
|
color: o,
|
|
208
215
|
value: l,
|
|
209
216
|
absoluteValues: a,
|
|
210
|
-
percentage:
|
|
217
|
+
percentage: n
|
|
211
218
|
})
|
|
212
219
|
);
|
|
213
220
|
}
|
|
214
|
-
const
|
|
215
|
-
function ct(t, o) {
|
|
216
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
217
|
-
}
|
|
221
|
+
const h = c(() => ut.value - e.value.style.chart.layout.rings.strokeWidth * 2);
|
|
218
222
|
function dt(t, o) {
|
|
219
|
-
|
|
223
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: o });
|
|
220
224
|
}
|
|
221
|
-
const se = u(null);
|
|
222
225
|
function ht(t, o) {
|
|
226
|
+
T.value = null, W.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o });
|
|
227
|
+
}
|
|
228
|
+
const ne = r(null);
|
|
229
|
+
function pt(t, o) {
|
|
223
230
|
if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: o }), m.value.length === k.dataset.length) return;
|
|
224
|
-
|
|
231
|
+
ne.value = {
|
|
225
232
|
datapoint: t,
|
|
226
233
|
seriesIndex: o,
|
|
227
|
-
series:
|
|
234
|
+
series: f.value,
|
|
228
235
|
config: e.value
|
|
229
236
|
}, T.value = o;
|
|
230
|
-
const l =
|
|
231
|
-
if (
|
|
237
|
+
const l = f.value[o], a = e.value.style.chart.tooltip.customFormat;
|
|
238
|
+
if (zt(a) && Et(() => a({
|
|
232
239
|
seriesIndex: o,
|
|
233
240
|
datapoint: t,
|
|
234
|
-
series:
|
|
241
|
+
series: f.value,
|
|
235
242
|
config: e.value
|
|
236
243
|
})))
|
|
237
|
-
|
|
244
|
+
K.value = a({
|
|
238
245
|
seriesIndex: o,
|
|
239
246
|
datapoint: t,
|
|
240
|
-
series:
|
|
247
|
+
series: f.value,
|
|
241
248
|
config: e.value
|
|
242
249
|
});
|
|
243
250
|
else {
|
|
244
|
-
let
|
|
245
|
-
|
|
251
|
+
let n = "";
|
|
252
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, 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="${l.color}" />${st.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t.absoluteIndex})" />` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (n += `<b>${He(
|
|
246
253
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
247
254
|
l.value,
|
|
248
|
-
|
|
255
|
+
D({
|
|
249
256
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
250
257
|
v: l.value,
|
|
251
258
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -253,36 +260,36 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
253
260
|
}),
|
|
254
261
|
{ datapoint: t, seriesIndex: o }
|
|
255
262
|
)}
|
|
256
|
-
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ?
|
|
263
|
+
</b>`), e.value.style.chart.tooltip.showPercentage && (e.value.style.chart.tooltip.showValue ? n += `<span>(${D({
|
|
257
264
|
v: l.value / $.value * 100,
|
|
258
265
|
s: "%",
|
|
259
266
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
260
|
-
})})</span></div>` :
|
|
267
|
+
})})</span></div>` : n += `<b>${D({
|
|
261
268
|
v: l.value / $.value * 100,
|
|
262
269
|
s: "%",
|
|
263
270
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
264
|
-
})}</b></div>`),
|
|
271
|
+
})}</b></div>`), K.value = n;
|
|
265
272
|
}
|
|
266
|
-
|
|
273
|
+
W.value = !0;
|
|
267
274
|
}
|
|
268
|
-
const
|
|
269
|
-
const t =
|
|
275
|
+
const S = c(() => {
|
|
276
|
+
const t = f.value.map((l) => ({
|
|
270
277
|
name: l.name,
|
|
271
278
|
color: l.color
|
|
272
|
-
})), o =
|
|
279
|
+
})), o = f.value.map((l) => l.value);
|
|
273
280
|
return { head: t, body: o };
|
|
274
|
-
}),
|
|
281
|
+
}), j = c(() => {
|
|
275
282
|
const t = [
|
|
276
283
|
' <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>',
|
|
277
|
-
|
|
284
|
+
D({ 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 }),
|
|
278
285
|
"100%"
|
|
279
|
-
], o =
|
|
286
|
+
], o = S.value.head.map((n, v) => [
|
|
280
287
|
{
|
|
281
|
-
color:
|
|
282
|
-
name:
|
|
288
|
+
color: n.color,
|
|
289
|
+
name: n.name
|
|
283
290
|
},
|
|
284
|
-
|
|
285
|
-
isNaN(
|
|
291
|
+
D({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: S.value.body[v], s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
292
|
+
isNaN(S.value.body[v] / $.value) ? "-" : (S.value.body[v] / $.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
286
293
|
]), l = {
|
|
287
294
|
th: {
|
|
288
295
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -307,33 +314,33 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
307
314
|
colNames: a
|
|
308
315
|
};
|
|
309
316
|
});
|
|
310
|
-
function
|
|
311
|
-
|
|
312
|
-
const o =
|
|
313
|
-
|
|
314
|
-
], [
|
|
315
|
-
t ? t(a) :
|
|
317
|
+
function ue(t = null) {
|
|
318
|
+
Ot(() => {
|
|
319
|
+
const o = S.value.head.map((n, v) => [[
|
|
320
|
+
n.name
|
|
321
|
+
], [S.value.body[v]], [isNaN(S.value.body[v] / $.value) ? "-" : S.value.body[v] / $.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Vt(l);
|
|
322
|
+
t ? t(a) : Mt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-rings" });
|
|
316
323
|
});
|
|
317
324
|
}
|
|
318
|
-
const P =
|
|
319
|
-
function
|
|
320
|
-
P.value = t,
|
|
325
|
+
const P = r(!1);
|
|
326
|
+
function Ne(t) {
|
|
327
|
+
P.value = t, ge.value += 1;
|
|
321
328
|
}
|
|
322
|
-
function
|
|
329
|
+
function De() {
|
|
323
330
|
w.value.showTable = !w.value.showTable;
|
|
324
331
|
}
|
|
325
332
|
function Re() {
|
|
326
333
|
w.value.showTooltip = !w.value.showTooltip;
|
|
327
334
|
}
|
|
328
|
-
const
|
|
329
|
-
function
|
|
330
|
-
|
|
335
|
+
const X = r(!1);
|
|
336
|
+
function re() {
|
|
337
|
+
X.value = !X.value;
|
|
331
338
|
}
|
|
332
|
-
async function
|
|
339
|
+
async function gt({ scale: t = 2 } = {}) {
|
|
333
340
|
if (!_.value) return;
|
|
334
|
-
const { width: o, height: l } = _.value.getBoundingClientRect(), a = o / l, { imageUri:
|
|
341
|
+
const { width: o, height: l } = _.value.getBoundingClientRect(), a = o / l, { imageUri: n, base64: v } = await Kt({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
335
342
|
return {
|
|
336
|
-
imageUri:
|
|
343
|
+
imageUri: n,
|
|
337
344
|
base64: v,
|
|
338
345
|
title: e.value.style.chart.title.text,
|
|
339
346
|
width: o,
|
|
@@ -341,10 +348,10 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
341
348
|
aspectRatio: a
|
|
342
349
|
};
|
|
343
350
|
}
|
|
344
|
-
const
|
|
351
|
+
const z = c(() => {
|
|
345
352
|
const t = e.value.table.useDialog && !e.value.table.show, o = w.value.showTable;
|
|
346
353
|
return {
|
|
347
|
-
component: t ?
|
|
354
|
+
component: t ? ot : Qe,
|
|
348
355
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
349
356
|
props: t ? {
|
|
350
357
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -371,56 +378,74 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
371
378
|
}
|
|
372
379
|
};
|
|
373
380
|
});
|
|
374
|
-
|
|
375
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
381
|
+
q(() => w.value.showTable, (t) => {
|
|
382
|
+
e.value.table.show || (t && e.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
376
383
|
});
|
|
377
|
-
function
|
|
378
|
-
w.value.showTable = !1,
|
|
384
|
+
function Be() {
|
|
385
|
+
w.value.showTable = !1, Z.value && Z.value.setTableIconState(!1);
|
|
379
386
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
387
|
+
const ft = c(() => se.value.map((t) => ({
|
|
388
|
+
...t,
|
|
389
|
+
name: t.display
|
|
390
|
+
}))), yt = c(() => e.value.style.chart.backgroundColor), mt = c(() => e.value.style.chart.legend), bt = c(() => e.value.style.chart.title), { exportSvg: kt, getSvg: wt } = qt({
|
|
391
|
+
svg: te,
|
|
392
|
+
title: bt,
|
|
393
|
+
legend: mt,
|
|
394
|
+
legendItems: ft,
|
|
395
|
+
backgroundColor: yt
|
|
396
|
+
});
|
|
397
|
+
async function Ve({ isCb: t }) {
|
|
398
|
+
if (t) {
|
|
399
|
+
const { blob: o, url: l, text: a, dataUrl: n } = await wt();
|
|
400
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: l, text: a, dataUrl: n });
|
|
401
|
+
} else
|
|
402
|
+
kt();
|
|
403
|
+
}
|
|
404
|
+
return qe({
|
|
405
|
+
getData: ct,
|
|
406
|
+
getImage: gt,
|
|
407
|
+
generatePdf: Fe,
|
|
408
|
+
generateCsv: ue,
|
|
385
409
|
generateImage: Ie,
|
|
386
|
-
|
|
410
|
+
generateSvg: Ve,
|
|
411
|
+
toggleTable: De,
|
|
387
412
|
toggleTooltip: Re,
|
|
388
|
-
toggleAnnotator:
|
|
389
|
-
toggleFullscreen:
|
|
390
|
-
}), (t, o) => (i(),
|
|
413
|
+
toggleAnnotator: re,
|
|
414
|
+
toggleFullscreen: Ne
|
|
415
|
+
}), (t, o) => (i(), p("div", {
|
|
391
416
|
ref_key: "ringsChart",
|
|
392
417
|
ref: _,
|
|
393
|
-
class:
|
|
394
|
-
style:
|
|
418
|
+
class: U(`vue-data-ui-component vue-ui-rings ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
419
|
+
style: L(`font-family:${e.value.style.fontFamily};text-align:center;width:100%;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
395
420
|
id: `rings_${y.value}`,
|
|
396
421
|
onMouseleave: o[2] || (o[2] = (l) => {
|
|
397
|
-
T.value = null,
|
|
422
|
+
T.value = null, W.value = !1, s(_e)(!1);
|
|
398
423
|
}),
|
|
399
|
-
onMouseenter: o[3] || (o[3] = () => s(
|
|
424
|
+
onMouseenter: o[3] || (o[3] = () => s(_e)(!0))
|
|
400
425
|
}, [
|
|
401
|
-
e.value.userOptions.buttons.annotator ? (i(), O(s(
|
|
426
|
+
e.value.userOptions.buttons.annotator ? (i(), O(s(et), {
|
|
402
427
|
key: 0,
|
|
403
|
-
svgRef: s(
|
|
428
|
+
svgRef: s(te),
|
|
404
429
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
405
430
|
color: e.value.style.chart.color,
|
|
406
|
-
active:
|
|
407
|
-
onClose:
|
|
431
|
+
active: X.value,
|
|
432
|
+
onClose: re
|
|
408
433
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
|
|
409
|
-
|
|
434
|
+
nt.value ? (i(), p("div", {
|
|
410
435
|
key: 1,
|
|
411
436
|
ref_key: "noTitle",
|
|
412
|
-
ref:
|
|
437
|
+
ref: be,
|
|
413
438
|
class: "vue-data-ui-no-title-space",
|
|
414
439
|
style: "height:36px; width: 100%;background:transparent"
|
|
415
440
|
}, null, 512)) : b("", !0),
|
|
416
|
-
e.value.style.chart.title.text ? (i(),
|
|
441
|
+
e.value.style.chart.title.text ? (i(), p("div", {
|
|
417
442
|
key: 2,
|
|
418
443
|
ref_key: "chartTitle",
|
|
419
|
-
ref:
|
|
444
|
+
ref: fe,
|
|
420
445
|
style: "width:100%;background:transparent"
|
|
421
446
|
}, [
|
|
422
|
-
(i(), O(
|
|
423
|
-
key: `title_${
|
|
447
|
+
(i(), O(Zt, {
|
|
448
|
+
key: `title_${ke.value}`,
|
|
424
449
|
config: {
|
|
425
450
|
title: {
|
|
426
451
|
cy: "rings-div-title",
|
|
@@ -435,20 +460,21 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
435
460
|
], 512)) : b("", !0),
|
|
436
461
|
C("div", {
|
|
437
462
|
id: `legend-top-${y.value}`
|
|
438
|
-
}, null, 8,
|
|
439
|
-
e.value.userOptions.show &&
|
|
463
|
+
}, null, 8, al),
|
|
464
|
+
e.value.userOptions.show && pe.value && (s(xe) || s(ee)) ? (i(), O(s(tt), {
|
|
440
465
|
ref_key: "userOptionsRef",
|
|
441
|
-
ref:
|
|
442
|
-
key: `user_options_${
|
|
466
|
+
ref: Z,
|
|
467
|
+
key: `user_options_${ge.value}`,
|
|
443
468
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
444
469
|
color: e.value.style.chart.color,
|
|
445
470
|
isPrinting: s(Ae),
|
|
446
|
-
isImaging: s(
|
|
471
|
+
isImaging: s(Oe),
|
|
447
472
|
uid: y.value,
|
|
448
473
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
449
474
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
450
475
|
hasXls: e.value.userOptions.buttons.csv,
|
|
451
476
|
hasImg: e.value.userOptions.buttons.img,
|
|
477
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
452
478
|
hasTable: e.value.userOptions.buttons.table,
|
|
453
479
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
454
480
|
isTooltip: w.value.showTooltip,
|
|
@@ -457,101 +483,102 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
457
483
|
chartElement: _.value,
|
|
458
484
|
position: e.value.userOptions.position,
|
|
459
485
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
460
|
-
isAnnotation:
|
|
486
|
+
isAnnotation: X.value,
|
|
461
487
|
callbacks: e.value.userOptions.callbacks,
|
|
462
488
|
printScale: e.value.userOptions.print.scale,
|
|
463
489
|
tableDialog: e.value.table.useDialog,
|
|
464
|
-
onToggleFullscreen:
|
|
465
|
-
onGeneratePdf: s(
|
|
466
|
-
onGenerateCsv:
|
|
490
|
+
onToggleFullscreen: Ne,
|
|
491
|
+
onGeneratePdf: s(Fe),
|
|
492
|
+
onGenerateCsv: ue,
|
|
467
493
|
onGenerateImage: s(Ie),
|
|
468
|
-
|
|
494
|
+
onGenerateSvg: Ve,
|
|
495
|
+
onToggleTable: De,
|
|
469
496
|
onToggleTooltip: Re,
|
|
470
|
-
onToggleAnnotator:
|
|
471
|
-
style:
|
|
472
|
-
visibility: s(
|
|
497
|
+
onToggleAnnotator: re,
|
|
498
|
+
style: L({
|
|
499
|
+
visibility: s(xe) ? s(ee) ? "visible" : "hidden" : "visible"
|
|
473
500
|
})
|
|
474
|
-
},
|
|
501
|
+
}, ie({ _: 2 }, [
|
|
475
502
|
t.$slots.menuIcon ? {
|
|
476
503
|
name: "menuIcon",
|
|
477
|
-
fn:
|
|
478
|
-
|
|
504
|
+
fn: d(({ isOpen: l, color: a }) => [
|
|
505
|
+
g(t.$slots, "menuIcon", B(V({ isOpen: l, color: a })), void 0, !0)
|
|
479
506
|
]),
|
|
480
507
|
key: "0"
|
|
481
508
|
} : void 0,
|
|
482
509
|
t.$slots.optionTooltip ? {
|
|
483
510
|
name: "optionTooltip",
|
|
484
|
-
fn:
|
|
485
|
-
|
|
511
|
+
fn: d(() => [
|
|
512
|
+
g(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
486
513
|
]),
|
|
487
514
|
key: "1"
|
|
488
515
|
} : void 0,
|
|
489
516
|
t.$slots.optionPdf ? {
|
|
490
517
|
name: "optionPdf",
|
|
491
|
-
fn:
|
|
492
|
-
|
|
518
|
+
fn: d(() => [
|
|
519
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
493
520
|
]),
|
|
494
521
|
key: "2"
|
|
495
522
|
} : void 0,
|
|
496
523
|
t.$slots.optionCsv ? {
|
|
497
524
|
name: "optionCsv",
|
|
498
|
-
fn:
|
|
499
|
-
|
|
525
|
+
fn: d(() => [
|
|
526
|
+
g(t.$slots, "optionCsv", {}, void 0, !0)
|
|
500
527
|
]),
|
|
501
528
|
key: "3"
|
|
502
529
|
} : void 0,
|
|
503
530
|
t.$slots.optionImg ? {
|
|
504
531
|
name: "optionImg",
|
|
505
|
-
fn:
|
|
506
|
-
|
|
532
|
+
fn: d(() => [
|
|
533
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
507
534
|
]),
|
|
508
535
|
key: "4"
|
|
509
536
|
} : void 0,
|
|
510
537
|
t.$slots.optionTable ? {
|
|
511
538
|
name: "optionTable",
|
|
512
|
-
fn:
|
|
513
|
-
|
|
539
|
+
fn: d(() => [
|
|
540
|
+
g(t.$slots, "optionTable", {}, void 0, !0)
|
|
514
541
|
]),
|
|
515
542
|
key: "5"
|
|
516
543
|
} : void 0,
|
|
517
544
|
t.$slots.optionFullscreen ? {
|
|
518
545
|
name: "optionFullscreen",
|
|
519
|
-
fn:
|
|
520
|
-
|
|
546
|
+
fn: d(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
547
|
+
g(t.$slots, "optionFullscreen", B(V({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
521
548
|
]),
|
|
522
549
|
key: "6"
|
|
523
550
|
} : void 0,
|
|
524
551
|
t.$slots.optionAnnotator ? {
|
|
525
552
|
name: "optionAnnotator",
|
|
526
|
-
fn:
|
|
527
|
-
|
|
553
|
+
fn: d(({ toggleAnnotator: l, isAnnotator: a }) => [
|
|
554
|
+
g(t.$slots, "optionAnnotator", B(V({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
|
|
528
555
|
]),
|
|
529
556
|
key: "7"
|
|
530
557
|
} : void 0
|
|
531
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
|
|
532
|
-
(i(),
|
|
558
|
+
]), 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"])) : b("", !0),
|
|
559
|
+
(i(), p("svg", {
|
|
533
560
|
ref_key: "svgRef",
|
|
534
|
-
ref:
|
|
535
|
-
xmlns: s(
|
|
536
|
-
class:
|
|
537
|
-
viewBox: `0 0 ${
|
|
538
|
-
style:
|
|
561
|
+
ref: te,
|
|
562
|
+
xmlns: s(Dt),
|
|
563
|
+
class: U({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing: Q.value || s(I) }),
|
|
564
|
+
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
565
|
+
style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
539
566
|
}, [
|
|
540
|
-
|
|
541
|
-
t.$slots["chart-background"] ? (i(),
|
|
567
|
+
Y(s(lt)),
|
|
568
|
+
t.$slots["chart-background"] ? (i(), p("foreignObject", {
|
|
542
569
|
key: 0,
|
|
543
570
|
x: 0,
|
|
544
571
|
y: 0,
|
|
545
|
-
width:
|
|
546
|
-
height:
|
|
572
|
+
width: u.value.width <= 0 ? 10 : u.value.width,
|
|
573
|
+
height: u.value.height <= 0 ? 10 : u.value.height,
|
|
547
574
|
style: {
|
|
548
575
|
pointerEvents: "none"
|
|
549
576
|
}
|
|
550
577
|
}, [
|
|
551
|
-
|
|
552
|
-
], 8,
|
|
578
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
579
|
+
], 8, nl)) : b("", !0),
|
|
553
580
|
C("defs", null, [
|
|
554
|
-
(i(!0),
|
|
581
|
+
(i(!0), p(ve, null, ce(f.value, (l, a) => (i(), p("radialGradient", {
|
|
555
582
|
cx: "50%",
|
|
556
583
|
cy: "30%",
|
|
557
584
|
r: "50%",
|
|
@@ -561,124 +588,110 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
561
588
|
}, [
|
|
562
589
|
C("stop", {
|
|
563
590
|
offset: "0%",
|
|
564
|
-
"stop-color": s(
|
|
565
|
-
}, null, 8,
|
|
591
|
+
"stop-color": s(Rt)(s(Bt)(l.color, 0.05), 100 - e.value.style.chart.layout.rings.gradient.intensity)
|
|
592
|
+
}, null, 8, rl),
|
|
566
593
|
C("stop", {
|
|
567
594
|
offset: "100%",
|
|
568
595
|
"stop-color": l.color
|
|
569
|
-
}, null, 8,
|
|
570
|
-
], 8,
|
|
596
|
+
}, null, 8, il)
|
|
597
|
+
], 8, ul))), 256))
|
|
571
598
|
]),
|
|
572
|
-
t.$slots.pattern ? (i(),
|
|
573
|
-
(i(!0),
|
|
574
|
-
|
|
599
|
+
t.$slots.pattern ? (i(), p("g", vl, [
|
|
600
|
+
(i(!0), p(ve, null, ce(f.value, (l) => (i(), p("defs", null, [
|
|
601
|
+
g(t.$slots, "pattern", ze({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${y.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
575
602
|
]))), 256))
|
|
576
603
|
])) : b("", !0),
|
|
577
|
-
(i(!0),
|
|
604
|
+
(i(!0), p(ve, null, ce(f.value, (l, a) => (i(), p("g", null, [
|
|
578
605
|
C("circle", {
|
|
579
|
-
class:
|
|
580
|
-
"vue-ui-rings-item":
|
|
581
|
-
"vue-rings-item-onload": !
|
|
606
|
+
class: U({
|
|
607
|
+
"vue-ui-rings-item": F.value && e.value.useCssAnimation,
|
|
608
|
+
"vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
|
|
582
609
|
"vue-ui-rings-opacity": T.value !== null && T.value !== a
|
|
583
610
|
}),
|
|
584
|
-
style:
|
|
611
|
+
style: L(`animation-delay:${a * 100}ms`),
|
|
585
612
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
586
|
-
cx:
|
|
587
|
-
cy: a === 0 ?
|
|
588
|
-
r: s(
|
|
613
|
+
cx: u.value.width / 2,
|
|
614
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
615
|
+
r: s(J)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
589
616
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
590
|
-
}, null, 14,
|
|
617
|
+
}, null, 14, cl),
|
|
591
618
|
C("circle", {
|
|
592
|
-
class:
|
|
593
|
-
"vue-ui-rings-item":
|
|
594
|
-
"vue-rings-item-onload": !
|
|
619
|
+
class: U({
|
|
620
|
+
"vue-ui-rings-item": F.value && e.value.useCssAnimation,
|
|
621
|
+
"vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
|
|
595
622
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
596
623
|
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
597
624
|
}),
|
|
598
|
-
style:
|
|
625
|
+
style: L(`animation-delay:${a * 100}ms`),
|
|
599
626
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
600
627
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
601
|
-
cx:
|
|
602
|
-
cy: a === 0 ?
|
|
603
|
-
r: s(
|
|
628
|
+
cx: u.value.width / 2,
|
|
629
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
630
|
+
r: s(J)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
604
631
|
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${y.value}_${a})` : l.color
|
|
605
|
-
}, null, 14,
|
|
606
|
-
t.$slots.pattern ? (i(),
|
|
632
|
+
}, null, 14, dl),
|
|
633
|
+
t.$slots.pattern ? (i(), p("circle", {
|
|
607
634
|
key: 0,
|
|
608
|
-
class:
|
|
609
|
-
"vue-ui-rings-item":
|
|
610
|
-
"vue-rings-item-onload": !
|
|
635
|
+
class: U({
|
|
636
|
+
"vue-ui-rings-item": F.value && e.value.useCssAnimation,
|
|
637
|
+
"vue-rings-item-onload": !F.value && e.value.useCssAnimation && !s(I),
|
|
611
638
|
"vue-ui-rings-shadow": e.value.style.chart.layout.rings.useShadow,
|
|
612
639
|
"vue-ui-rings-blur": T.value !== null && T.value !== a
|
|
613
640
|
}),
|
|
614
|
-
style:
|
|
641
|
+
style: L(`animation-delay:${a * 100}ms`),
|
|
615
642
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
616
643
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
617
|
-
cx:
|
|
618
|
-
cy: a === 0 ?
|
|
619
|
-
r: s(
|
|
644
|
+
cx: u.value.width / 2,
|
|
645
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
646
|
+
r: s(J)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
620
647
|
fill: `url(#pattern_${y.value}_${l.absoluteIndex})`
|
|
621
|
-
}, null, 14,
|
|
648
|
+
}, null, 14, hl)) : b("", !0),
|
|
622
649
|
C("circle", {
|
|
623
650
|
stroke: "none",
|
|
624
|
-
cx:
|
|
625
|
-
cy: a === 0 ?
|
|
626
|
-
r: s(
|
|
651
|
+
cx: u.value.width / 2,
|
|
652
|
+
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
653
|
+
r: s(J)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
627
654
|
fill: "transparent",
|
|
628
|
-
onMouseenter: (
|
|
629
|
-
onMouseleave: (
|
|
630
|
-
onClick: (
|
|
631
|
-
}, null, 40,
|
|
655
|
+
onMouseenter: (n) => pt(l, a),
|
|
656
|
+
onMouseleave: (n) => ht(l, a),
|
|
657
|
+
onClick: (n) => dt(l, a)
|
|
658
|
+
}, null, 40, pl)
|
|
632
659
|
]))), 256)),
|
|
633
|
-
|
|
634
|
-
], 14,
|
|
635
|
-
t.$slots.watermark ? (i(),
|
|
636
|
-
|
|
660
|
+
g(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
661
|
+
], 14, sl)),
|
|
662
|
+
t.$slots.watermark ? (i(), p("div", gl, [
|
|
663
|
+
g(t.$slots, "watermark", B(V({ isPrinting: s(Ae) || s(Oe) })), void 0, !0)
|
|
637
664
|
])) : b("", !0),
|
|
638
665
|
C("div", {
|
|
639
666
|
id: `legend-bottom-${y.value}`
|
|
640
|
-
}, null, 8,
|
|
641
|
-
|
|
667
|
+
}, null, 8, fl),
|
|
668
|
+
$e.value ? (i(), O(St, {
|
|
642
669
|
key: 5,
|
|
643
670
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
644
671
|
}, [
|
|
645
672
|
C("div", {
|
|
646
673
|
ref_key: "chartLegend",
|
|
647
|
-
ref:
|
|
674
|
+
ref: ye
|
|
648
675
|
}, [
|
|
649
|
-
e.value.style.chart.legend.show ? (i(), O(
|
|
650
|
-
key: `legend_${
|
|
651
|
-
legendSet:
|
|
652
|
-
config:
|
|
676
|
+
e.value.style.chart.legend.show ? (i(), O(tl, {
|
|
677
|
+
key: `legend_${Ce.value}`,
|
|
678
|
+
legendSet: se.value,
|
|
679
|
+
config: vt.value,
|
|
653
680
|
onClickMarker: o[0] || (o[0] = ({ legend: l }) => ae(l.uid))
|
|
654
|
-
},
|
|
655
|
-
item:
|
|
656
|
-
s(
|
|
681
|
+
}, ie({
|
|
682
|
+
item: d(({ legend: l, index: a }) => [
|
|
683
|
+
s(I) ? b("", !0) : (i(), p("div", {
|
|
657
684
|
key: 0,
|
|
658
|
-
onClick: (
|
|
659
|
-
style:
|
|
660
|
-
},
|
|
661
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
662
|
-
l.value,
|
|
663
|
-
s(L)({
|
|
664
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
665
|
-
v: l.value,
|
|
666
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
667
|
-
r: e.value.style.chart.legend.roundingValue
|
|
668
|
-
}),
|
|
669
|
-
{ datapoint: l, seriesIndex: a }
|
|
670
|
-
) : "") + " " + M(e.value.style.chart.legend.showPercentage ? m.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / $.value) ? "-" : s(L)({
|
|
671
|
-
v: l.value / $.value * 100,
|
|
672
|
-
s: "%",
|
|
673
|
-
r: e.value.style.chart.legend.roundingPercentage
|
|
674
|
-
})}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, il))
|
|
685
|
+
onClick: (n) => ae(l.uid),
|
|
686
|
+
style: L(`opacity:${m.value.includes(l.uid) ? 0.5 : 1}`)
|
|
687
|
+
}, de(l.display), 13, yl))
|
|
675
688
|
]),
|
|
676
689
|
_: 2
|
|
677
690
|
}, [
|
|
678
691
|
t.$slots.pattern ? {
|
|
679
692
|
name: "legend-pattern",
|
|
680
|
-
fn:
|
|
681
|
-
|
|
693
|
+
fn: d(({ legend: l, index: a }) => [
|
|
694
|
+
Y(Qt, {
|
|
682
695
|
shape: l.shape,
|
|
683
696
|
radius: 30,
|
|
684
697
|
stroke: "none",
|
|
@@ -688,22 +701,22 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
688
701
|
]),
|
|
689
702
|
key: "0"
|
|
690
703
|
} : void 0
|
|
691
|
-
]), 1032, ["legendSet", "config"])) :
|
|
704
|
+
]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
692
705
|
key: 1,
|
|
693
|
-
legend:
|
|
706
|
+
legend: se.value
|
|
694
707
|
}, void 0, !0)
|
|
695
708
|
], 512)
|
|
696
709
|
], 8, ["to"])) : b("", !0),
|
|
697
|
-
t.$slots.source ? (i(),
|
|
710
|
+
t.$slots.source ? (i(), p("div", {
|
|
698
711
|
key: 6,
|
|
699
712
|
ref_key: "source",
|
|
700
|
-
ref:
|
|
713
|
+
ref: me,
|
|
701
714
|
dir: "auto"
|
|
702
715
|
}, [
|
|
703
|
-
|
|
716
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
704
717
|
], 512)) : b("", !0),
|
|
705
|
-
|
|
706
|
-
show: w.value.showTooltip &&
|
|
718
|
+
Y(s(Je), {
|
|
719
|
+
show: w.value.showTooltip && W.value && m.value.length < k.dataset.length,
|
|
707
720
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
708
721
|
color: e.value.style.chart.tooltip.color,
|
|
709
722
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -714,7 +727,7 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
714
727
|
position: e.value.style.chart.tooltip.position,
|
|
715
728
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
716
729
|
parent: _.value,
|
|
717
|
-
content:
|
|
730
|
+
content: K.value,
|
|
718
731
|
isFullscreen: P.value,
|
|
719
732
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
720
733
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -722,38 +735,38 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
722
735
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
723
736
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
724
737
|
}, {
|
|
725
|
-
"tooltip-before":
|
|
726
|
-
|
|
738
|
+
"tooltip-before": d(() => [
|
|
739
|
+
g(t.$slots, "tooltip-before", B(V({ ...ne.value })), void 0, !0)
|
|
727
740
|
]),
|
|
728
|
-
"tooltip-after":
|
|
729
|
-
|
|
741
|
+
"tooltip-after": d(() => [
|
|
742
|
+
g(t.$slots, "tooltip-after", B(V({ ...ne.value })), void 0, !0)
|
|
730
743
|
]),
|
|
731
744
|
_: 3
|
|
732
745
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
733
|
-
|
|
746
|
+
pe.value && e.value.userOptions.buttons.table ? (i(), O(At(z.value.component), ze({ key: 7 }, z.value.props, {
|
|
734
747
|
ref_key: "tableUnit",
|
|
735
|
-
ref:
|
|
736
|
-
onClose:
|
|
737
|
-
}),
|
|
738
|
-
content:
|
|
739
|
-
(i(), O(s(
|
|
740
|
-
key: `table_${
|
|
741
|
-
colNames:
|
|
742
|
-
head:
|
|
743
|
-
body:
|
|
744
|
-
config:
|
|
745
|
-
title: e.value.table.useDialog ? "" :
|
|
748
|
+
ref: M,
|
|
749
|
+
onClose: Be
|
|
750
|
+
}), ie({
|
|
751
|
+
content: d(() => [
|
|
752
|
+
(i(), O(s(Ze), {
|
|
753
|
+
key: `table_${we.value}`,
|
|
754
|
+
colNames: j.value.colNames,
|
|
755
|
+
head: j.value.head,
|
|
756
|
+
body: j.value.body,
|
|
757
|
+
config: j.value.config,
|
|
758
|
+
title: e.value.table.useDialog ? "" : z.value.title,
|
|
746
759
|
withCloseButton: !e.value.table.useDialog,
|
|
747
|
-
onClose:
|
|
760
|
+
onClose: Be
|
|
748
761
|
}, {
|
|
749
|
-
th:
|
|
762
|
+
th: d(({ th: l }) => [
|
|
750
763
|
C("div", {
|
|
751
764
|
innerHTML: l,
|
|
752
765
|
style: { display: "flex", "align-items": "center" }
|
|
753
|
-
}, null, 8,
|
|
766
|
+
}, null, 8, ml)
|
|
754
767
|
]),
|
|
755
|
-
td:
|
|
756
|
-
|
|
768
|
+
td: d(({ td: l }) => [
|
|
769
|
+
Ee(de(l.name || l), 1)
|
|
757
770
|
]),
|
|
758
771
|
_: 1
|
|
759
772
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -762,32 +775,32 @@ const Yt = ["id"], Jt = ["id"], Kt = ["xmlns", "viewBox"], Qt = ["width", "heigh
|
|
|
762
775
|
}, [
|
|
763
776
|
e.value.table.useDialog ? {
|
|
764
777
|
name: "title",
|
|
765
|
-
fn:
|
|
766
|
-
|
|
778
|
+
fn: d(() => [
|
|
779
|
+
Ee(de(z.value.title), 1)
|
|
767
780
|
]),
|
|
768
781
|
key: "0"
|
|
769
782
|
} : void 0,
|
|
770
783
|
e.value.table.useDialog ? {
|
|
771
784
|
name: "actions",
|
|
772
|
-
fn:
|
|
785
|
+
fn: d(() => [
|
|
773
786
|
C("button", {
|
|
774
787
|
tabindex: "0",
|
|
775
788
|
class: "vue-ui-user-options-button",
|
|
776
|
-
onClick: o[1] || (o[1] = (l) =>
|
|
789
|
+
onClick: o[1] || (o[1] = (l) => ue(e.value.userOptions.callbacks.csv))
|
|
777
790
|
}, [
|
|
778
|
-
|
|
791
|
+
Y(s(Ke), {
|
|
779
792
|
name: "excel",
|
|
780
|
-
stroke:
|
|
793
|
+
stroke: z.value.props.color
|
|
781
794
|
}, null, 8, ["stroke"])
|
|
782
795
|
])
|
|
783
796
|
]),
|
|
784
797
|
key: "1"
|
|
785
798
|
} : void 0
|
|
786
799
|
]), 1040)) : b("", !0),
|
|
787
|
-
s(
|
|
788
|
-
], 46,
|
|
800
|
+
s(I) ? (i(), O(Xt, { key: 8 })) : b("", !0)
|
|
801
|
+
], 46, ol));
|
|
789
802
|
}
|
|
790
|
-
},
|
|
803
|
+
}, Dl = /* @__PURE__ */ ll(bl, [["__scopeId", "data-v-5c6dcdcf"]]);
|
|
791
804
|
export {
|
|
792
|
-
|
|
805
|
+
Dl as default
|
|
793
806
|
};
|