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 H, computed as g, ref as h, toRefs 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 { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
1
|
+
import { defineAsyncComponent as H, computed as g, ref as h, toRefs as Et, watch as le, shallowRef as tt, onMounted as lt, onBeforeUnmount as at, watchEffect as Rt, createElementBlock as v, openBlock as n, unref as i, normalizeStyle as ae, normalizeClass as st, createBlock as O, createCommentVNode as y, createElementVNode as c, createSlots as ot, withCtx as p, renderSlot as x, normalizeProps as se, guardReactiveProps as oe, createVNode as nt, withDirectives as Y, Fragment as C, renderList as A, toDisplayString as _, vShow as j, Teleport as Bt, createTextVNode as we, resolveDynamicComponent as Vt, mergeProps as Ut, nextTick as Wt } from "vue";
|
|
2
|
+
import { c as rt, t as qt, o as Yt, f as ut, g as jt, q as it, C as Zt, d as w, a as P, X as ct, s as vt, m as Z, r as J, x as Jt, y as Kt } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as $e, u as Qt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as el, a as dt } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as tl } from "./usePrinter-DYRFiw7X.js";
|
|
6
|
+
import { u as ll, B as al } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as sl } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as nl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as rl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
11
|
+
import ul from "./img-6wPuVVtk.js";
|
|
12
|
+
import il from "./Title-D17CJXko.js";
|
|
13
|
+
import { t as cl } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import vl from "./Legend-DsogCeTb.js";
|
|
15
|
+
import { _ as dl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const hl = ["id"], fl = ["id"], bl = ["xmlns", "viewBox"], yl = ["x", "y", "width", "height"], gl = { key: 1 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pl = { key: 2 }, xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], kl = ["transform", "font-size", "fill"], Cl = ["x", "y", "font-size", "fill", "font-weight", "onMouseenter", "onMouseleave", "onClick"], wl = ["x", "y", "font-size", "fill", "onMouseenter", "onMouseleave", "onClick"], $l = ["x", "y", "font-size", "fill"], Ll = ["transform", "font-size", "fill", "font-weight", "text-anchor"], Al = ["d", "stroke", "stroke-width", "stroke-dasharray"], Sl = ["d", "stroke", "stroke-width", "stroke-dasharray"], Nl = ["x", "y", "height", "width", "fill"], Ml = ["transform", "fill", "font-size"], Xl = ["id"], zl = ["stop-color"], Tl = ["stop-color"], Ol = ["stop-color"], Dl = ["id"], Il = ["stop-color"], Fl = ["stop-color"], Hl = ["stop-color"], Pl = ["id"], Gl = ["stop-color"], El = ["stop-color"], Rl = ["stop-color"], Bl = ["id"], Vl = ["stop-color"], Ul = ["stop-color"], Wl = ["stop-color"], ql = ["id"], Yl = ["stop-color"], jl = ["stop-color"], Zl = ["stop-color"], Jl = ["id"], Kl = ["stop-color"], Ql = ["stop-color"], ea = ["id"], ta = ["stop-color"], la = ["stop-color"], aa = { key: 0 }, sa = { key: 0 }, oa = ["d", "fill"], na = { key: 1 }, ra = ["x", "y", "height", "width", "fill"], ua = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ia = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ca = { key: 7 }, va = ["x", "y", "fill", "font-size"], da = { key: 8 }, ha = ["x", "y", "fill", "font-size"], fa = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], ba = {
|
|
16
17
|
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, ya = ["id"], ga = ["xmlns", "height", "width"], ma = ["fill"], pa = ["innerHTML"], xa = {
|
|
19
20
|
__name: "vue-ui-dumbbell",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,18 +33,18 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
36
|
+
setup(ht, { expose: ft, emit: _a }) {
|
|
37
|
+
const bt = H(() => import("./BaseIcon-CtqN7W_g.js")), yt = H(() => import("./vue-ui-accordion-Dch9YrCi.js")), gt = H(() => import("./DataTable-BeI6gYJX.js")), mt = H(() => import("./PenAndPaper-BxbYiPy4.js")), pt = H(() => import("./UserOptions-B3vCIe-u.js")), xt = H(() => import("./PackageVersion-C9oklnuy.js")), _t = H(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_dumbbell: kt } = el(), S = ht, K = g({
|
|
37
38
|
get() {
|
|
38
|
-
return !!
|
|
39
|
+
return !!S.dataset && S.dataset.length;
|
|
39
40
|
},
|
|
40
41
|
set(l) {
|
|
41
42
|
return l;
|
|
42
43
|
}
|
|
43
|
-
}), f = h(
|
|
44
|
-
...
|
|
44
|
+
}), f = h(rt()), Le = h(0), N = h(null), Ae = h(null), Se = h(null), Ne = h(null), Me = h(null), Xe = h(0), ze = h(0), Te = h(0), Oe = h(!1), U = h(null), ne = h(null), re = h(null), ue = h(null), Q = h(null), ie = h(null), D = h(null), r = h(null), I = h(!1), e = h(fe()), { loading: ce, FINAL_DATASET: ve, manualLoading: Ct } = ll({
|
|
45
|
+
...Et(S),
|
|
45
46
|
FINAL_CONFIG: e,
|
|
46
|
-
prepareConfig:
|
|
47
|
+
prepareConfig: fe,
|
|
47
48
|
skeletonDataset: [
|
|
48
49
|
{ name: "_", start: 21, end: 34 },
|
|
49
50
|
{ name: "_", start: 13, end: 21 },
|
|
@@ -51,7 +52,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
51
52
|
{ name: "_", start: 5, end: 8 },
|
|
52
53
|
{ name: "_", start: 3, end: 5 }
|
|
53
54
|
],
|
|
54
|
-
skeletonConfig:
|
|
55
|
+
skeletonConfig: qt({
|
|
55
56
|
defaultConfig: e.value,
|
|
56
57
|
userConfig: {
|
|
57
58
|
userOptions: { show: !1 },
|
|
@@ -93,72 +94,72 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
})
|
|
96
|
-
}), { userOptionsVisible: de, setUserOptionsVisibility:
|
|
97
|
-
function
|
|
98
|
-
const l =
|
|
99
|
-
userConfig:
|
|
100
|
-
defaultConfig:
|
|
97
|
+
}), { userOptionsVisible: de, setUserOptionsVisibility: De, keepUserOptionState: Ie } = ol({ config: e.value }), { svgRef: he } = nl({ config: e.value.style.chart.title });
|
|
98
|
+
function fe() {
|
|
99
|
+
const l = dt({
|
|
100
|
+
userConfig: S.config,
|
|
101
|
+
defaultConfig: kt
|
|
101
102
|
});
|
|
102
103
|
return l.theme ? {
|
|
103
|
-
...
|
|
104
|
-
userConfig:
|
|
104
|
+
...dt({
|
|
105
|
+
userConfig: cl.vue_ui_dumbbell[l.theme] || S.config,
|
|
105
106
|
defaultConfig: l
|
|
106
107
|
})
|
|
107
108
|
} : l;
|
|
108
109
|
}
|
|
109
|
-
le(() =>
|
|
110
|
-
ce.value || (e.value =
|
|
110
|
+
le(() => S.config, (l) => {
|
|
111
|
+
ce.value || (e.value = fe()), de.value = !e.value.userOptions.showOnChartHover, He(), Xe.value += 1, ze.value += 1, Te.value += 1, R.value = e.value.style.chart.rowHeight, B.value = e.value.style.chart.width, F.value.showTable = e.value.table.show;
|
|
111
112
|
}, { deep: !0 }), le(() => ve.value, (l) => {
|
|
112
|
-
Array.isArray(l) && l.length > 0 && (
|
|
113
|
+
Array.isArray(l) && l.length > 0 && (Ct.value = !1), We(), qe();
|
|
113
114
|
}, { deep: !0 });
|
|
114
|
-
const M =
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
const M = tt(null), G = tt(null);
|
|
116
|
+
lt(() => {
|
|
117
|
+
Oe.value = !0, He();
|
|
117
118
|
});
|
|
118
|
-
const
|
|
119
|
-
function
|
|
120
|
-
if (
|
|
119
|
+
const Fe = g(() => !!e.value.debug);
|
|
120
|
+
function He() {
|
|
121
|
+
if (Yt(S.dataset) ? ut({
|
|
121
122
|
componentName: "VueUiDumbbell",
|
|
122
123
|
type: "dataset",
|
|
123
|
-
debug:
|
|
124
|
-
}) :
|
|
125
|
-
|
|
124
|
+
debug: Fe.value
|
|
125
|
+
}) : S.dataset.forEach((l, s) => {
|
|
126
|
+
jt({
|
|
126
127
|
datasetObject: l,
|
|
127
128
|
requiredAttributes: ["name", "start", "end"]
|
|
128
129
|
}).forEach((t) => {
|
|
129
|
-
K.value = !1,
|
|
130
|
+
K.value = !1, ut({
|
|
130
131
|
componentName: "VueUiDumbbell",
|
|
131
132
|
type: "datasetSerieAttribute",
|
|
132
133
|
property: t,
|
|
133
134
|
index: s,
|
|
134
|
-
debug:
|
|
135
|
+
debug: Fe.value
|
|
135
136
|
});
|
|
136
137
|
});
|
|
137
138
|
}), e.value.responsive) {
|
|
138
|
-
const l =
|
|
139
|
-
const { width: s, height: t } =
|
|
140
|
-
chart:
|
|
141
|
-
title: e.value.style.chart.title.text ?
|
|
142
|
-
legend: e.value.style.chart.legend.show ?
|
|
143
|
-
source:
|
|
144
|
-
noTitle:
|
|
139
|
+
const l = $e(() => {
|
|
140
|
+
const { width: s, height: t } = Qt({
|
|
141
|
+
chart: N.value,
|
|
142
|
+
title: e.value.style.chart.title.text ? Ae.value : null,
|
|
143
|
+
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
144
|
+
source: Ne.value,
|
|
145
|
+
noTitle: Me.value
|
|
145
146
|
}), a = e.value.style.chart.title.text ? 24 : 0, u = e.value.style.chart.legend.show ? 24 : 0;
|
|
146
147
|
requestAnimationFrame(async () => {
|
|
147
148
|
B.value = Math.max(0.1, s), R.value = Math.max(0.1, (Math.max(0.1, t) - (a + u)) / ve.value.length), Je();
|
|
148
149
|
});
|
|
149
150
|
});
|
|
150
|
-
M.value && (G.value && M.value.unobserve(G.value), M.value.disconnect()), M.value = new ResizeObserver(l), G.value =
|
|
151
|
+
M.value && (G.value && M.value.unobserve(G.value), M.value.disconnect()), M.value = new ResizeObserver(l), G.value = N.value.parentNode, M.value.observe(G.value);
|
|
151
152
|
}
|
|
152
153
|
Je();
|
|
153
154
|
}
|
|
154
|
-
|
|
155
|
+
at(() => {
|
|
155
156
|
L.value != null && (cancelAnimationFrame(L.value), L.value = null), M.value && (G.value && M.value.unobserve(G.value), M.value.disconnect());
|
|
156
157
|
});
|
|
157
|
-
const { isPrinting:
|
|
158
|
+
const { isPrinting: Pe, isImaging: Ge, generatePdf: Ee, generateImage: Re } = tl({
|
|
158
159
|
elementId: `dumbbell_${f.value}`,
|
|
159
160
|
fileName: e.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
160
161
|
options: e.value.userOptions.print
|
|
161
|
-
}),
|
|
162
|
+
}), wt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), F = h({
|
|
162
163
|
showTable: e.value.table.show
|
|
163
164
|
});
|
|
164
165
|
le(e, () => {
|
|
@@ -168,14 +169,14 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
168
169
|
}, { immediate: !0 });
|
|
169
170
|
const E = g(() => ve.value.map((l, s) => ({
|
|
170
171
|
...l,
|
|
171
|
-
start:
|
|
172
|
-
end:
|
|
173
|
-
id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${
|
|
174
|
-
}))),
|
|
175
|
-
const l = e.value.style.chart.grid, s = E.value.flatMap((
|
|
172
|
+
start: it(l.start),
|
|
173
|
+
end: it(l.end),
|
|
174
|
+
id: l.id ?? `${String(l.name)}__${String(l.start)}__${String(l.end)}__${rt()}`
|
|
175
|
+
}))), Be = g(() => {
|
|
176
|
+
const l = e.value.style.chart.grid, s = E.value.flatMap((b) => [b.start, b.end]).map((b) => Number(b)).filter((b) => Number.isFinite(b)), t = s.length ? Math.min(...s) : 0, a = s.length ? Math.max(...s) : 0, u = l.scaleMin ?? Math.min(t, 0), d = l.scaleMax ?? a;
|
|
176
177
|
return { min: u, max: d };
|
|
177
|
-
}), $ = g(() =>
|
|
178
|
-
function
|
|
178
|
+
}), $ = g(() => Zt(Be.value.min, Be.value.max, e.value.style.chart.grid.scaleSteps)), R = h(e.value.style.chart.rowHeight), B = h(e.value.style.chart.width);
|
|
179
|
+
function $t() {
|
|
179
180
|
let l = 0;
|
|
180
181
|
ue.value && (l = Array.from(ue.value.querySelectorAll("text")).reduce((a, u) => {
|
|
181
182
|
const d = u.getComputedTextLength();
|
|
@@ -184,42 +185,42 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
184
185
|
const s = re.value ? re.value.getBoundingClientRect().width : 0;
|
|
185
186
|
return l + s + (s ? 24 + e.value.style.chart.labels.axis.yLabelOffsetX : 0);
|
|
186
187
|
}
|
|
187
|
-
const
|
|
188
|
-
|
|
188
|
+
const be = h(0), Lt = $e((l) => {
|
|
189
|
+
be.value = l;
|
|
189
190
|
}, 100);
|
|
190
|
-
|
|
191
|
+
Rt((l) => {
|
|
191
192
|
const s = Q.value;
|
|
192
193
|
if (!s) return;
|
|
193
194
|
const t = new ResizeObserver((a) => {
|
|
194
|
-
|
|
195
|
+
Lt(a[0].contentRect.height);
|
|
195
196
|
});
|
|
196
197
|
t.observe(s), l(() => t.disconnect());
|
|
197
|
-
}),
|
|
198
|
-
|
|
198
|
+
}), at(() => {
|
|
199
|
+
be.value = 0;
|
|
199
200
|
});
|
|
200
|
-
const
|
|
201
|
+
const Ve = g(() => {
|
|
201
202
|
I.value;
|
|
202
203
|
let l = 0;
|
|
203
204
|
ie.value && (l = ie.value.getBBox().height);
|
|
204
205
|
let s = 0;
|
|
205
|
-
return Q.value && (s =
|
|
206
|
+
return Q.value && (s = be.value), l + s;
|
|
206
207
|
}), ye = g(() => E.value.length);
|
|
207
|
-
function
|
|
208
|
-
const a = Number(l), u = Number(s.min), d = Number(s.max),
|
|
209
|
-
if (!Number.isFinite(a) || !Number.isFinite(u) || !Number.isFinite(d) || !Number.isFinite(
|
|
208
|
+
function Ue(l, s, t) {
|
|
209
|
+
const a = Number(l), u = Number(s.min), d = Number(s.max), b = Number(t.width);
|
|
210
|
+
if (!Number.isFinite(a) || !Number.isFinite(u) || !Number.isFinite(d) || !Number.isFinite(b))
|
|
210
211
|
return t.left;
|
|
211
212
|
const m = d - u;
|
|
212
|
-
return m <= 0 ? t.left : t.left + (a - u) / m *
|
|
213
|
+
return m <= 0 ? t.left : t.left + (a - u) / m * b;
|
|
213
214
|
}
|
|
214
215
|
const o = g(() => {
|
|
215
216
|
I.value;
|
|
216
|
-
const l =
|
|
217
|
+
const l = $t(), s = e.value.style.chart.padding, t = e.value.style.chart.labels.axis.xLabel ? e.value.style.chart.labels.axis.xLabelOffsetY : 0, a = R.value * ye.value - Ve.value - s.top - s.bottom - t, u = a / ye.value, d = R.value * ye.value, b = B.value - l - s.left - s.right, m = $.value.ticks.length * (b / $.value.ticks.length);
|
|
217
218
|
return {
|
|
218
219
|
left: e.value.style.chart.padding.left + l,
|
|
219
220
|
right: B.value - e.value.style.chart.padding.right,
|
|
220
221
|
top: e.value.style.chart.padding.top,
|
|
221
|
-
bottom: d - e.value.style.chart.padding.bottom -
|
|
222
|
-
width:
|
|
222
|
+
bottom: d - e.value.style.chart.padding.bottom - Ve.value - t,
|
|
223
|
+
width: b,
|
|
223
224
|
height: a,
|
|
224
225
|
rowHeight: u,
|
|
225
226
|
absoluteHeight: d,
|
|
@@ -229,17 +230,17 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
229
230
|
get() {
|
|
230
231
|
const l = o.value, s = $.value;
|
|
231
232
|
return W.value.map((t, a) => {
|
|
232
|
-
const u =
|
|
233
|
+
const u = Ue(t.start, s, l), d = Ue(t.endVal, s, l), b = u + (d - u) / 2, m = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end > t.start, T = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end < t.start, et = ![null, void 0].includes(t.start) && ![null, void 0].includes(t.end) && t.end === t.start || [null, void 0].includes(t.start) || [null, void 0].includes(t.end), Gt = m ? e.value.style.chart.plots.evaluationColors.positive : T ? e.value.style.chart.plots.evaluationColors.negative : e.value.style.chart.plots.evaluationColors.neutral;
|
|
233
234
|
return {
|
|
234
235
|
...t,
|
|
235
236
|
isPositive: m,
|
|
236
237
|
isNegative: T,
|
|
237
|
-
isNeutral:
|
|
238
|
-
evaluationColor:
|
|
238
|
+
isNeutral: et,
|
|
239
|
+
evaluationColor: Gt,
|
|
239
240
|
evaluationGrad: `url(#${m ? "positive" : T ? "negative" : "neutral"}_grad_${f.value})`,
|
|
240
241
|
startX: u,
|
|
241
242
|
endX: d,
|
|
242
|
-
centerX:
|
|
243
|
+
centerX: b,
|
|
243
244
|
y: l.top + a * l.rowHeight + l.rowHeight / 2
|
|
244
245
|
};
|
|
245
246
|
});
|
|
@@ -248,7 +249,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
248
249
|
W.value = l;
|
|
249
250
|
}
|
|
250
251
|
});
|
|
251
|
-
function
|
|
252
|
+
function We() {
|
|
252
253
|
W.value = E.value.map((l) => {
|
|
253
254
|
const s = Number(l.start);
|
|
254
255
|
return {
|
|
@@ -258,11 +259,11 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
258
259
|
});
|
|
259
260
|
}
|
|
260
261
|
const L = h(null);
|
|
261
|
-
|
|
262
|
-
|
|
262
|
+
lt(() => {
|
|
263
|
+
qe();
|
|
263
264
|
});
|
|
264
|
-
function
|
|
265
|
-
if (L.value != null && (cancelAnimationFrame(L.value), L.value = null),
|
|
265
|
+
function qe() {
|
|
266
|
+
if (L.value != null && (cancelAnimationFrame(L.value), L.value = null), We(), !e.value.useAnimation) {
|
|
266
267
|
k.value = W.value.map((a) => {
|
|
267
268
|
const u = Number(a.end);
|
|
268
269
|
return { ...a, endVal: Number.isFinite(u) ? u : a.endVal };
|
|
@@ -270,25 +271,25 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
270
271
|
return;
|
|
271
272
|
}
|
|
272
273
|
const l = Math.max(1, Math.min(100, e.value.animationSpeed || 100)) / 100, s = E.value.map((a) => {
|
|
273
|
-
const u = Number(a.start), d = Number(a.end),
|
|
274
|
-
return (Number.isFinite(d) ? d :
|
|
274
|
+
const u = Number(a.start), d = Number(a.end), b = Number.isFinite(u) ? u : 0;
|
|
275
|
+
return (Number.isFinite(d) ? d : b) - b;
|
|
275
276
|
}), t = () => {
|
|
276
277
|
let a = !0;
|
|
277
278
|
k.value = W.value.map((u, d) => {
|
|
278
|
-
const
|
|
279
|
-
return T !==
|
|
279
|
+
const b = Number.isFinite(Number(u.end)) ? Number(u.end) : u.endVal, m = u.endVal + s[d] * l, T = s[d] >= 0 ? Math.min(m, b) : Math.max(m, b);
|
|
280
|
+
return T !== b && (a = !1), { ...u, endVal: T };
|
|
280
281
|
}), a ? L.value = null : L.value = requestAnimationFrame(t);
|
|
281
282
|
};
|
|
282
283
|
L.value = requestAnimationFrame(t);
|
|
283
284
|
}
|
|
284
|
-
const
|
|
285
|
+
const ge = g(() => e.value.style.chart.plots.evaluationColors.enable ? [
|
|
285
286
|
{ name: e.value.style.chart.legend.labelNegative, color: e.value.style.chart.plots.gradient.show ? `url(#negative_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.negative },
|
|
286
287
|
{ name: e.value.style.chart.legend.labelNeutral, color: e.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.neutral },
|
|
287
288
|
{ name: e.value.style.chart.legend.labelPositive, color: e.value.style.chart.plots.gradient.show ? `url(#positive_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.positive }
|
|
288
289
|
] : [
|
|
289
290
|
{ name: e.value.style.chart.legend.labelStart, color: e.value.style.chart.plots.gradient.show ? `url(#start_grad_${f.value})` : e.value.style.chart.plots.startColor },
|
|
290
291
|
{ name: e.value.style.chart.legend.labelEnd, color: e.value.style.chart.plots.gradient.show ? `url(#end_grad_${f.value})` : e.value.style.chart.plots.endColor }
|
|
291
|
-
]),
|
|
292
|
+
]), At = g(() => ({
|
|
292
293
|
cy: "donut-div-legend",
|
|
293
294
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
294
295
|
color: e.value.style.chart.legend.color,
|
|
@@ -311,7 +312,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
311
312
|
e.value.table.columnNames.end,
|
|
312
313
|
e.value.table.columnNames.progression
|
|
313
314
|
], s = z.value.head.map((u, d) => {
|
|
314
|
-
const
|
|
315
|
+
const b = w({
|
|
315
316
|
p: e.value.style.chart.labels.prefix,
|
|
316
317
|
v: z.value.body[d].start,
|
|
317
318
|
s: e.value.style.chart.labels.suffix,
|
|
@@ -328,7 +329,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
328
329
|
});
|
|
329
330
|
return [
|
|
330
331
|
{ name: u.name },
|
|
331
|
-
|
|
332
|
+
b,
|
|
332
333
|
m,
|
|
333
334
|
T
|
|
334
335
|
];
|
|
@@ -357,31 +358,31 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
357
358
|
config: t
|
|
358
359
|
};
|
|
359
360
|
});
|
|
360
|
-
function
|
|
361
|
-
|
|
361
|
+
function me(l = null) {
|
|
362
|
+
Wt(() => {
|
|
362
363
|
const s = z.value.head.map((u, d) => [[
|
|
363
364
|
u.name
|
|
364
|
-
], [z.value.body[d].start], [z.value.body[d].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(s), a =
|
|
365
|
-
l ? l(a) :
|
|
365
|
+
], [z.value.body[d].start], [z.value.body[d].end]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.start], [e.value.table.columnNames.end]]].concat(s), a = Jt(t);
|
|
366
|
+
l ? l(a) : Kt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-dumbbell" });
|
|
366
367
|
});
|
|
367
368
|
}
|
|
368
369
|
const V = h(!1);
|
|
369
370
|
function Ye(l) {
|
|
370
|
-
V.value = l,
|
|
371
|
+
V.value = l, Le.value += 1;
|
|
371
372
|
}
|
|
372
|
-
function
|
|
373
|
+
function St() {
|
|
373
374
|
return E.value;
|
|
374
375
|
}
|
|
375
376
|
function je() {
|
|
376
377
|
F.value.showTable = !F.value.showTable;
|
|
377
378
|
}
|
|
378
379
|
const te = h(!1);
|
|
379
|
-
function
|
|
380
|
+
function pe() {
|
|
380
381
|
te.value = !te.value;
|
|
381
382
|
}
|
|
382
383
|
async function Nt({ scale: l = 2 } = {}) {
|
|
383
|
-
if (!
|
|
384
|
-
const { width: s, height: t } =
|
|
384
|
+
if (!N.value) return;
|
|
385
|
+
const { width: s, height: t } = N.value.getBoundingClientRect(), a = s / t, { imageUri: u, base64: d } = await ul({ domElement: N.value, base64: !0, img: !0, scale: l });
|
|
385
386
|
return {
|
|
386
387
|
imageUri: u,
|
|
387
388
|
base64: d,
|
|
@@ -391,11 +392,11 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
391
392
|
aspectRatio: a
|
|
392
393
|
};
|
|
393
394
|
}
|
|
394
|
-
const Ze = g(() => $.value.ticks),
|
|
395
|
-
|
|
395
|
+
const Ze = g(() => $.value.ticks), Mt = g(() => ({ start: 0, end: Ze.value.length }));
|
|
396
|
+
rl({
|
|
396
397
|
timeLabelsEls: Q,
|
|
397
398
|
timeLabels: Ze,
|
|
398
|
-
slicer:
|
|
399
|
+
slicer: Mt,
|
|
399
400
|
configRef: e,
|
|
400
401
|
rotationPath: ["style", "chart", "labels", "xAxisLabels", "rotation"],
|
|
401
402
|
autoRotatePath: ["style", "chart", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
@@ -405,16 +406,16 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
405
406
|
targetClass: ".vue-ui-dumbbell-scale-label",
|
|
406
407
|
rotation: e.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
407
408
|
});
|
|
408
|
-
function
|
|
409
|
+
function Xt({
|
|
409
410
|
rowHeight: l,
|
|
410
411
|
fontSize: s,
|
|
411
412
|
showProgression: t
|
|
412
413
|
}) {
|
|
413
414
|
if (!t) return !1;
|
|
414
|
-
const a = l / 3, u = l / 1.3, d = Math.abs(u - a),
|
|
415
|
-
return d <
|
|
415
|
+
const a = l / 3, u = l / 1.3, d = Math.abs(u - a), b = s * 1.2;
|
|
416
|
+
return d < b;
|
|
416
417
|
}
|
|
417
|
-
const
|
|
418
|
+
const zt = /* @__PURE__ */ (() => {
|
|
418
419
|
let l = null, s = 0;
|
|
419
420
|
const t = 1;
|
|
420
421
|
return (a) => {
|
|
@@ -424,32 +425,32 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
424
425
|
}
|
|
425
426
|
l === null || l !== a ? (l = a, s = 1) : (s += 1, s >= t && (I.value = a, l = null, s = 0));
|
|
426
427
|
};
|
|
427
|
-
})(), Je =
|
|
428
|
+
})(), Je = $e(() => {
|
|
428
429
|
requestAnimationFrame(() => {
|
|
429
430
|
requestAnimationFrame(() => {
|
|
430
|
-
const l =
|
|
431
|
+
const l = Xt({
|
|
431
432
|
rowHeight: o.value.rowHeight,
|
|
432
433
|
fontSize: e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
433
434
|
showProgression: e.value.style.chart.labels.yAxisLabels.showProgression
|
|
434
435
|
});
|
|
435
|
-
|
|
436
|
+
zt(l);
|
|
436
437
|
});
|
|
437
438
|
});
|
|
438
439
|
}, 100);
|
|
439
|
-
function
|
|
440
|
-
|
|
440
|
+
function xe({ datapoint: l, seriesIndex: s }) {
|
|
441
|
+
D.value = s, r.value = l, e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s });
|
|
441
442
|
}
|
|
442
|
-
function
|
|
443
|
-
|
|
443
|
+
function _e({ datapoint: l, seriesIndex: s }) {
|
|
444
|
+
D.value = null, r.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s });
|
|
444
445
|
}
|
|
445
|
-
function
|
|
446
|
+
function ke({ datapoint: l, seriesIndex: s }) {
|
|
446
447
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
447
448
|
}
|
|
448
|
-
const
|
|
449
|
+
const Ce = g(() => {
|
|
449
450
|
if (r.value === null) return 0;
|
|
450
451
|
const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
|
|
451
452
|
return l && s ? Math.min(r.value.startX, r.value.endX) + Math.abs(r.value.startX - r.value.endX) / 2 : l && !s ? r.value.startX : s && !l ? r.value.endX : null;
|
|
452
|
-
}),
|
|
453
|
+
}), Tt = g(() => {
|
|
453
454
|
if (r.value === null) return "";
|
|
454
455
|
const l = ![null, void 0].includes(r.value.start), s = ![null, void 0].includes(r.value.end);
|
|
455
456
|
let t = "", a = "";
|
|
@@ -462,7 +463,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
462
463
|
s: e.value.style.chart.labels.suffix,
|
|
463
464
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
464
465
|
}),
|
|
465
|
-
{ datapoint: r.value, seriesIndex:
|
|
466
|
+
{ datapoint: r.value, seriesIndex: D.value }
|
|
466
467
|
)), s && (a = P(
|
|
467
468
|
e.value.style.chart.labels.formatter,
|
|
468
469
|
r.value.end,
|
|
@@ -472,12 +473,12 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
472
473
|
s: e.value.style.chart.labels.suffix,
|
|
473
474
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
474
475
|
}),
|
|
475
|
-
{ datapoint: r.value, seriesIndex:
|
|
476
|
+
{ datapoint: r.value, seriesIndex: D.value }
|
|
476
477
|
)), l && s ? `${t} → ${a}` : l && !s ? t : s && !l ? a : "";
|
|
477
478
|
}), q = g(() => {
|
|
478
479
|
const l = e.value.table.useDialog && !e.value.table.show, s = F.value.showTable;
|
|
479
480
|
return {
|
|
480
|
-
component: l ?
|
|
481
|
+
component: l ? _t : yt,
|
|
481
482
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
482
483
|
props: l ? {
|
|
483
484
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -485,7 +486,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
485
486
|
headerColor: e.value.table.th.color,
|
|
486
487
|
headerBg: e.value.table.th.backgroundColor,
|
|
487
488
|
isFullscreen: V.value,
|
|
488
|
-
fullscreenParent:
|
|
489
|
+
fullscreenParent: N.value,
|
|
489
490
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
490
491
|
} : {
|
|
491
492
|
hideDetails: !0,
|
|
@@ -510,47 +511,65 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
510
511
|
function Ke() {
|
|
511
512
|
F.value.showTable = !1, ne.value && ne.value.setTableIconState(!1);
|
|
512
513
|
}
|
|
513
|
-
|
|
514
|
-
|
|
514
|
+
const Ot = g(() => ge.value.map((l) => ({
|
|
515
|
+
...l,
|
|
516
|
+
shape: "circle"
|
|
517
|
+
}))), Dt = g(() => e.value.style.chart.backgroundColor), It = g(() => e.value.style.chart.legend), Ft = g(() => e.value.style.chart.title), { exportSvg: Ht, getSvg: Pt } = sl({
|
|
518
|
+
svg: he,
|
|
519
|
+
title: Ft,
|
|
520
|
+
legend: It,
|
|
521
|
+
legendItems: Ot,
|
|
522
|
+
backgroundColor: Dt
|
|
523
|
+
});
|
|
524
|
+
async function Qe({ isCb: l }) {
|
|
525
|
+
if (l) {
|
|
526
|
+
const { blob: s, url: t, text: a, dataUrl: u } = await Pt();
|
|
527
|
+
e.value.userOptions.callbacks.svg({ blob: s, url: t, text: a, dataUrl: u });
|
|
528
|
+
} else
|
|
529
|
+
Ht();
|
|
530
|
+
}
|
|
531
|
+
return ft({
|
|
532
|
+
getData: St,
|
|
515
533
|
getImage: Nt,
|
|
516
|
-
generatePdf:
|
|
517
|
-
generateCsv:
|
|
518
|
-
generateImage:
|
|
534
|
+
generatePdf: Ee,
|
|
535
|
+
generateCsv: me,
|
|
536
|
+
generateImage: Re,
|
|
537
|
+
generateSvg: Qe,
|
|
519
538
|
toggleTable: je,
|
|
520
|
-
toggleAnnotator:
|
|
539
|
+
toggleAnnotator: pe,
|
|
521
540
|
toggleFullscreen: Ye
|
|
522
541
|
}), (l, s) => (n(), v("div", {
|
|
523
542
|
ref_key: "dumbbellChart",
|
|
524
|
-
ref:
|
|
525
|
-
class:
|
|
543
|
+
ref: N,
|
|
544
|
+
class: st(`vue-data-ui-component vue-ui-dumbbell ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
526
545
|
style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
|
|
527
546
|
id: `dumbbell_${f.value}`,
|
|
528
|
-
onMouseenter: s[1] || (s[1] = () => i(
|
|
529
|
-
onMouseleave: s[2] || (s[2] = () => i(
|
|
547
|
+
onMouseenter: s[1] || (s[1] = () => i(De)(!0)),
|
|
548
|
+
onMouseleave: s[2] || (s[2] = () => i(De)(!1))
|
|
530
549
|
}, [
|
|
531
|
-
e.value.userOptions.buttons.annotator ? (n(),
|
|
550
|
+
e.value.userOptions.buttons.annotator ? (n(), O(i(mt), {
|
|
532
551
|
key: 0,
|
|
533
|
-
svgRef: i(
|
|
552
|
+
svgRef: i(he),
|
|
534
553
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
535
554
|
color: e.value.style.chart.color,
|
|
536
555
|
active: te.value,
|
|
537
|
-
onClose:
|
|
538
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
539
|
-
|
|
556
|
+
onClose: pe
|
|
557
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
558
|
+
wt.value ? (n(), v("div", {
|
|
540
559
|
key: 1,
|
|
541
560
|
ref_key: "noTitle",
|
|
542
|
-
ref:
|
|
561
|
+
ref: Me,
|
|
543
562
|
class: "vue-data-ui-no-title-space",
|
|
544
563
|
style: "height:36px; width: 100%;background:transparent"
|
|
545
|
-
}, null, 512)) :
|
|
564
|
+
}, null, 512)) : y("", !0),
|
|
546
565
|
e.value.style.chart.title.text ? (n(), v("div", {
|
|
547
566
|
key: 2,
|
|
548
567
|
ref_key: "chartTitle",
|
|
549
|
-
ref:
|
|
568
|
+
ref: Ae,
|
|
550
569
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
551
570
|
}, [
|
|
552
|
-
(n(),
|
|
553
|
-
key: `title_${
|
|
571
|
+
(n(), O(il, {
|
|
572
|
+
key: `title_${Xe.value}`,
|
|
554
573
|
config: {
|
|
555
574
|
title: {
|
|
556
575
|
cy: "donut-div-title",
|
|
@@ -562,27 +581,28 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
562
581
|
}
|
|
563
582
|
}
|
|
564
583
|
}, null, 8, ["config"]))
|
|
565
|
-
], 512)) :
|
|
584
|
+
], 512)) : y("", !0),
|
|
566
585
|
c("div", {
|
|
567
586
|
id: `legend-top-${f.value}`
|
|
568
|
-
}, null, 8,
|
|
569
|
-
e.value.userOptions.show && K.value && (i(
|
|
587
|
+
}, null, 8, fl),
|
|
588
|
+
e.value.userOptions.show && K.value && (i(Ie) || i(de)) ? (n(), O(i(pt), {
|
|
570
589
|
ref_key: "userOptionsRef",
|
|
571
590
|
ref: ne,
|
|
572
|
-
key: `user_option_${
|
|
591
|
+
key: `user_option_${Le.value}`,
|
|
573
592
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
574
593
|
color: e.value.style.chart.color,
|
|
575
|
-
isPrinting: i(
|
|
576
|
-
isImaging: i(
|
|
594
|
+
isPrinting: i(Pe),
|
|
595
|
+
isImaging: i(Ge),
|
|
577
596
|
uid: f.value,
|
|
578
597
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
579
598
|
hasXls: e.value.userOptions.buttons.csv,
|
|
580
599
|
hasImg: e.value.userOptions.buttons.img,
|
|
600
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
581
601
|
hasTable: e.value.userOptions.buttons.table,
|
|
582
602
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
583
603
|
isFullscreen: V.value,
|
|
584
604
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
585
|
-
chartElement:
|
|
605
|
+
chartElement: N.value,
|
|
586
606
|
position: e.value.userOptions.position,
|
|
587
607
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
588
608
|
isAnnotation: te.value,
|
|
@@ -590,15 +610,16 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
590
610
|
printScale: e.value.userOptions.print.scale,
|
|
591
611
|
tableDialog: e.value.table.useDialog,
|
|
592
612
|
onToggleFullscreen: Ye,
|
|
593
|
-
onGeneratePdf: i(
|
|
594
|
-
onGenerateCsv:
|
|
595
|
-
onGenerateImage: i(
|
|
613
|
+
onGeneratePdf: i(Ee),
|
|
614
|
+
onGenerateCsv: me,
|
|
615
|
+
onGenerateImage: i(Re),
|
|
616
|
+
onGenerateSvg: Qe,
|
|
596
617
|
onToggleTable: je,
|
|
597
|
-
onToggleAnnotator:
|
|
618
|
+
onToggleAnnotator: pe,
|
|
598
619
|
style: ae({
|
|
599
|
-
visibility: i(
|
|
620
|
+
visibility: i(Ie) ? i(de) ? "visible" : "hidden" : "visible"
|
|
600
621
|
})
|
|
601
|
-
},
|
|
622
|
+
}, ot({ _: 2 }, [
|
|
602
623
|
l.$slots.menuIcon ? {
|
|
603
624
|
name: "menuIcon",
|
|
604
625
|
fn: p(({ isOpen: t, color: a }) => [
|
|
@@ -648,16 +669,16 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
648
669
|
]),
|
|
649
670
|
key: "6"
|
|
650
671
|
} : void 0
|
|
651
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
672
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
652
673
|
(n(), v("svg", {
|
|
653
674
|
ref_key: "svgRef",
|
|
654
|
-
ref:
|
|
655
|
-
xmlns: i(
|
|
656
|
-
class:
|
|
675
|
+
ref: he,
|
|
676
|
+
xmlns: i(ct),
|
|
677
|
+
class: st({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
657
678
|
viewBox: `0 0 ${B.value} ${o.value.absoluteHeight <= 0 ? 10 : o.value.absoluteHeight}`,
|
|
658
679
|
style: ae(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
659
680
|
}, [
|
|
660
|
-
|
|
681
|
+
nt(i(xt)),
|
|
661
682
|
l.$slots["chart-background"] ? (n(), v("foreignObject", {
|
|
662
683
|
key: 0,
|
|
663
684
|
x: o.value.left,
|
|
@@ -669,8 +690,8 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
669
690
|
}
|
|
670
691
|
}, [
|
|
671
692
|
x(l.$slots, "chart-background", {}, void 0, !0)
|
|
672
|
-
], 8,
|
|
673
|
-
e.value.style.chart.grid.verticalGrid.show ? (n(), v("g",
|
|
693
|
+
], 8, yl)) : y("", !0),
|
|
694
|
+
e.value.style.chart.grid.verticalGrid.show ? (n(), v("g", gl, [
|
|
674
695
|
(n(!0), v(C, null, A($.value.ticks, (t, a) => (n(), v("line", {
|
|
675
696
|
x1: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
|
|
676
697
|
x2: o.value.left + a * o.value.width / ($.value.ticks.length - 1),
|
|
@@ -679,9 +700,9 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
679
700
|
stroke: e.value.style.chart.grid.verticalGrid.stroke,
|
|
680
701
|
"stroke-width": e.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
681
702
|
"stroke-dasharray": e.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
682
|
-
}, null, 8,
|
|
683
|
-
])) :
|
|
684
|
-
e.value.style.chart.grid.horizontalGrid.show ? (n(), v("g",
|
|
703
|
+
}, null, 8, ml))), 256))
|
|
704
|
+
])) : y("", !0),
|
|
705
|
+
e.value.style.chart.grid.horizontalGrid.show ? (n(), v("g", pl, [
|
|
685
706
|
(n(!0), v(C, null, A(E.value, (t, a) => (n(), v("line", {
|
|
686
707
|
x1: o.value.left,
|
|
687
708
|
x2: o.value.right,
|
|
@@ -690,7 +711,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
690
711
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
691
712
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
692
713
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
693
|
-
}, null, 8,
|
|
714
|
+
}, null, 8, xl))), 256)),
|
|
694
715
|
c("line", {
|
|
695
716
|
x1: o.value.left,
|
|
696
717
|
x2: o.value.right,
|
|
@@ -699,8 +720,8 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
699
720
|
stroke: e.value.style.chart.grid.horizontalGrid.stroke,
|
|
700
721
|
"stroke-width": e.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
701
722
|
"stroke-dasharray": e.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
702
|
-
}, null, 8,
|
|
703
|
-
])) :
|
|
723
|
+
}, null, 8, _l)
|
|
724
|
+
])) : y("", !0),
|
|
704
725
|
e.value.style.chart.labels.axis.yLabel ? (n(), v("text", {
|
|
705
726
|
key: 3,
|
|
706
727
|
ref_key: "yAxisLabel",
|
|
@@ -709,7 +730,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
709
730
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
710
731
|
fill: e.value.style.chart.labels.axis.color,
|
|
711
732
|
"text-anchor": "middle"
|
|
712
|
-
}, _(e.value.style.chart.labels.axis.yLabel), 9,
|
|
733
|
+
}, _(e.value.style.chart.labels.axis.yLabel), 9, kl)) : y("", !0),
|
|
713
734
|
e.value.style.chart.labels.yAxisLabels.show ? (n(), v("g", {
|
|
714
735
|
key: 4,
|
|
715
736
|
ref_key: "serieLabels",
|
|
@@ -724,9 +745,9 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
724
745
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
725
746
|
"font-weight": e.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
726
747
|
"text-anchor": "end",
|
|
727
|
-
onMouseenter: (u) =>
|
|
728
|
-
onMouseleave: (u) =>
|
|
729
|
-
onClick: (u) =>
|
|
748
|
+
onMouseenter: (u) => xe({ datapoint: t, seriesIndex: a }),
|
|
749
|
+
onMouseleave: (u) => _e({ datapoint: t, seriesIndex: a }),
|
|
750
|
+
onClick: (u) => ke({ datapoint: t, seriesIndex: a })
|
|
730
751
|
}, _(t.name) + " " + _(I.value && e.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : `(${i(P)(
|
|
731
752
|
e.value.style.chart.labels.yAxisLabels.formatter,
|
|
732
753
|
100 * (t.end / t.start - 1),
|
|
@@ -736,7 +757,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
736
757
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
737
758
|
}),
|
|
738
759
|
{ datapoint: t }
|
|
739
|
-
)})` : ""), 41,
|
|
760
|
+
)})` : ""), 41, Cl))), 128)),
|
|
740
761
|
e.value.style.chart.labels.yAxisLabels.showProgression && !I.value ? (n(!0), v(C, { key: 0 }, A(k.value, (t, a) => (n(), v("text", {
|
|
741
762
|
class: "vue-ui-dumbbell-serie-value",
|
|
742
763
|
x: o.value.left - 6 + e.value.style.chart.labels.yAxisLabels.offsetX,
|
|
@@ -744,9 +765,9 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
744
765
|
"font-size": e.value.style.chart.labels.yAxisLabels.fontSize,
|
|
745
766
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
746
767
|
"text-anchor": "end",
|
|
747
|
-
onMouseenter: (u) =>
|
|
748
|
-
onMouseleave: (u) =>
|
|
749
|
-
onClick: (u) =>
|
|
768
|
+
onMouseenter: (u) => xe({ datapoint: t, seriesIndex: a }),
|
|
769
|
+
onMouseleave: (u) => _e({ datapoint: t, seriesIndex: a }),
|
|
770
|
+
onClick: (u) => ke({ datapoint: t, seriesIndex: a })
|
|
750
771
|
}, _([null, void 0].includes(t.start) || [null, void 0].includes(t.end) ? "" : i(P)(
|
|
751
772
|
e.value.style.chart.labels.yAxisLabels.formatter,
|
|
752
773
|
100 * (t.end / t.start - 1),
|
|
@@ -756,8 +777,8 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
756
777
|
r: e.value.style.chart.labels.yAxisLabels.rounding
|
|
757
778
|
}),
|
|
758
779
|
{ datapoint: t }
|
|
759
|
-
)), 41,
|
|
760
|
-
], 512)) :
|
|
780
|
+
)), 41, wl))), 256)) : y("", !0)
|
|
781
|
+
], 512)) : y("", !0),
|
|
761
782
|
e.value.style.chart.labels.axis.xLabel ? (n(), v("text", {
|
|
762
783
|
key: 5,
|
|
763
784
|
ref_key: "xAxisLabel",
|
|
@@ -767,7 +788,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
767
788
|
"font-size": e.value.style.chart.labels.axis.fontSize,
|
|
768
789
|
fill: e.value.style.chart.labels.axis.color,
|
|
769
790
|
"text-anchor": "middle"
|
|
770
|
-
}, _(e.value.style.chart.labels.axis.xLabel), 9,
|
|
791
|
+
}, _(e.value.style.chart.labels.axis.xLabel), 9, $l)) : y("", !0),
|
|
771
792
|
e.value.style.chart.labels.xAxisLabels.show ? (n(), v("g", {
|
|
772
793
|
key: 6,
|
|
773
794
|
ref_key: "scaleLabels",
|
|
@@ -791,8 +812,8 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
791
812
|
r: e.value.style.chart.labels.xAxisLabels.rounding
|
|
792
813
|
}),
|
|
793
814
|
{ datapoint: t, seriesIndex: a }
|
|
794
|
-
)), 9,
|
|
795
|
-
], 512)) :
|
|
815
|
+
)), 9, Ll))), 128))
|
|
816
|
+
], 512)) : y("", !0),
|
|
796
817
|
Y(c("g", null, [
|
|
797
818
|
Y(c("path", {
|
|
798
819
|
d: `M ${r.value ? r.value.startX : o.value.left},${o.value.top} ${r.value ? r.value.startX : o.value.left},${o.value.bottom}`,
|
|
@@ -800,7 +821,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
800
821
|
"stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
|
|
801
822
|
"stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
|
|
802
823
|
style: { transition: "all 0.3s ease-in-out" }
|
|
803
|
-
}, null, 8,
|
|
824
|
+
}, null, 8, Al), [
|
|
804
825
|
[j, r.value !== null && ![null, void 0].includes(r.value.start)]
|
|
805
826
|
]),
|
|
806
827
|
Y(c("path", {
|
|
@@ -809,7 +830,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
809
830
|
"stroke-width": e.value.style.chart.comparisonLines.strokeWidth,
|
|
810
831
|
"stroke-dasharray": e.value.style.chart.comparisonLines.strokeDasharray,
|
|
811
832
|
style: { transition: "all 0.3s ease-in-out" }
|
|
812
|
-
}, null, 8,
|
|
833
|
+
}, null, 8, Sl), [
|
|
813
834
|
[j, r.value !== null && ![null, void 0].includes(r.value.end)]
|
|
814
835
|
]),
|
|
815
836
|
Y(c("rect", {
|
|
@@ -817,22 +838,22 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
817
838
|
y: o.value.top,
|
|
818
839
|
height: Math.max(0.1, o.value.height),
|
|
819
840
|
width: r.value ? Math.max(0.1, Math.abs(r.value.endX - r.value.startX)) : 0,
|
|
820
|
-
fill: r.value ? i(
|
|
841
|
+
fill: r.value ? i(vt)(e.value.style.chart.comparisonLines.rectColor, e.value.style.chart.comparisonLines.rectOpacity) : "transparent",
|
|
821
842
|
style: { transition: "all 0.3s ease-in-out" }
|
|
822
|
-
}, null, 8,
|
|
843
|
+
}, null, 8, Nl), [
|
|
823
844
|
[j, e.value.style.chart.comparisonLines.showRect && r.value !== null && ![null, void 0].includes(r.value.start) && ![null, void 0].includes(r.value.end)]
|
|
824
845
|
]),
|
|
825
846
|
Y(c("text", {
|
|
826
|
-
transform: `translate(${
|
|
847
|
+
transform: `translate(${Ce.value == null ? 0 : Ce.value}, ${o.value.top - 6})`,
|
|
827
848
|
fill: e.value.style.chart.comparisonLines.labelColor,
|
|
828
849
|
"font-size": e.value.style.chart.comparisonLines.labelFontSize,
|
|
829
850
|
"text-anchor": "middle",
|
|
830
851
|
style: { transition: "all 0.3s ease-in-out" }
|
|
831
|
-
}, _(
|
|
832
|
-
[j, r.value !== null &&
|
|
852
|
+
}, _(Tt.value), 9, Ml), [
|
|
853
|
+
[j, r.value !== null && Ce.value !== null && e.value.style.chart.comparisonLines.showLabel]
|
|
833
854
|
])
|
|
834
855
|
], 512), [
|
|
835
|
-
[j, e.value.style.chart.comparisonLines.show &&
|
|
856
|
+
[j, e.value.style.chart.comparisonLines.show && D.value !== null]
|
|
836
857
|
]),
|
|
837
858
|
c("defs", null, [
|
|
838
859
|
c("radialGradient", {
|
|
@@ -842,16 +863,16 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
842
863
|
c("stop", {
|
|
843
864
|
offset: "10%",
|
|
844
865
|
"stop-color": i(Z)(e.value.style.chart.plots.startColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
845
|
-
}, null, 8,
|
|
866
|
+
}, null, 8, zl),
|
|
846
867
|
c("stop", {
|
|
847
868
|
offset: "90%",
|
|
848
869
|
"stop-color": i(J)(e.value.style.chart.plots.startColor, 0.1)
|
|
849
|
-
}, null, 8,
|
|
870
|
+
}, null, 8, Tl),
|
|
850
871
|
c("stop", {
|
|
851
872
|
offset: "100%",
|
|
852
873
|
"stop-color": e.value.style.chart.plots.startColor
|
|
853
|
-
}, null, 8,
|
|
854
|
-
], 8,
|
|
874
|
+
}, null, 8, Ol)
|
|
875
|
+
], 8, Xl),
|
|
855
876
|
c("radialGradient", {
|
|
856
877
|
id: `end_grad_${f.value}`,
|
|
857
878
|
fy: "30%"
|
|
@@ -859,16 +880,16 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
859
880
|
c("stop", {
|
|
860
881
|
offset: "10%",
|
|
861
882
|
"stop-color": i(Z)(e.value.style.chart.plots.endColor, e.value.style.chart.plots.gradient.intensity / 100)
|
|
862
|
-
}, null, 8,
|
|
883
|
+
}, null, 8, Il),
|
|
863
884
|
c("stop", {
|
|
864
885
|
offset: "90%",
|
|
865
886
|
"stop-color": i(J)(e.value.style.chart.plots.endColor, 0.1)
|
|
866
|
-
}, null, 8,
|
|
887
|
+
}, null, 8, Fl),
|
|
867
888
|
c("stop", {
|
|
868
889
|
offset: "100%",
|
|
869
890
|
"stop-color": e.value.style.chart.plots.endColor
|
|
870
|
-
}, null, 8,
|
|
871
|
-
], 8,
|
|
891
|
+
}, null, 8, Hl)
|
|
892
|
+
], 8, Dl),
|
|
872
893
|
c("radialGradient", {
|
|
873
894
|
id: `positive_grad_${f.value}`,
|
|
874
895
|
fy: "30%"
|
|
@@ -876,16 +897,16 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
876
897
|
c("stop", {
|
|
877
898
|
offset: "10%",
|
|
878
899
|
"stop-color": i(Z)(e.value.style.chart.plots.evaluationColors.positive, e.value.style.chart.plots.gradient.intensity / 100)
|
|
879
|
-
}, null, 8,
|
|
900
|
+
}, null, 8, Gl),
|
|
880
901
|
c("stop", {
|
|
881
902
|
offset: "90%",
|
|
882
903
|
"stop-color": i(J)(e.value.style.chart.plots.evaluationColors.positive, 0.1)
|
|
883
|
-
}, null, 8,
|
|
904
|
+
}, null, 8, El),
|
|
884
905
|
c("stop", {
|
|
885
906
|
offset: "100%",
|
|
886
907
|
"stop-color": e.value.style.chart.plots.evaluationColors.positive
|
|
887
|
-
}, null, 8,
|
|
888
|
-
], 8,
|
|
908
|
+
}, null, 8, Rl)
|
|
909
|
+
], 8, Pl),
|
|
889
910
|
c("radialGradient", {
|
|
890
911
|
id: `negative_grad_${f.value}`,
|
|
891
912
|
fy: "30%"
|
|
@@ -893,16 +914,16 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
893
914
|
c("stop", {
|
|
894
915
|
offset: "10%",
|
|
895
916
|
"stop-color": i(Z)(e.value.style.chart.plots.evaluationColors.negative, e.value.style.chart.plots.gradient.intensity / 100)
|
|
896
|
-
}, null, 8,
|
|
917
|
+
}, null, 8, Vl),
|
|
897
918
|
c("stop", {
|
|
898
919
|
offset: "90%",
|
|
899
920
|
"stop-color": i(J)(e.value.style.chart.plots.evaluationColors.negative, 0.1)
|
|
900
|
-
}, null, 8,
|
|
921
|
+
}, null, 8, Ul),
|
|
901
922
|
c("stop", {
|
|
902
923
|
offset: "100%",
|
|
903
924
|
"stop-color": e.value.style.chart.plots.evaluationColors.negative
|
|
904
|
-
}, null, 8,
|
|
905
|
-
], 8,
|
|
925
|
+
}, null, 8, Wl)
|
|
926
|
+
], 8, Bl),
|
|
906
927
|
c("radialGradient", {
|
|
907
928
|
id: `neutral_grad_${f.value}`,
|
|
908
929
|
fy: "30%"
|
|
@@ -910,16 +931,16 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
910
931
|
c("stop", {
|
|
911
932
|
offset: "10%",
|
|
912
933
|
"stop-color": i(Z)(e.value.style.chart.plots.evaluationColors.neutral, e.value.style.chart.plots.gradient.intensity / 100)
|
|
913
|
-
}, null, 8,
|
|
934
|
+
}, null, 8, Yl),
|
|
914
935
|
c("stop", {
|
|
915
936
|
offset: "90%",
|
|
916
937
|
"stop-color": i(J)(e.value.style.chart.plots.evaluationColors.neutral, 0.1)
|
|
917
|
-
}, null, 8,
|
|
938
|
+
}, null, 8, jl),
|
|
918
939
|
c("stop", {
|
|
919
940
|
offset: "100%",
|
|
920
941
|
"stop-color": e.value.style.chart.plots.evaluationColors.neutral
|
|
921
|
-
}, null, 8,
|
|
922
|
-
], 8,
|
|
942
|
+
}, null, 8, Zl)
|
|
943
|
+
], 8, ql)
|
|
923
944
|
]),
|
|
924
945
|
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
|
|
925
946
|
key: `plot_${a}_${t.id}`
|
|
@@ -935,12 +956,12 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
935
956
|
c("stop", {
|
|
936
957
|
offset: "0%",
|
|
937
958
|
"stop-color": e.value.style.chart.plots.startColor
|
|
938
|
-
}, null, 8,
|
|
959
|
+
}, null, 8, Kl),
|
|
939
960
|
c("stop", {
|
|
940
961
|
offset: "100%",
|
|
941
962
|
"stop-color": e.value.style.chart.plots.endColor
|
|
942
|
-
}, null, 8,
|
|
943
|
-
], 8,
|
|
963
|
+
}, null, 8, Ql)
|
|
964
|
+
], 8, Jl),
|
|
944
965
|
c("linearGradient", {
|
|
945
966
|
id: `grad_neg_${f.value}`,
|
|
946
967
|
x1: "0%",
|
|
@@ -951,15 +972,15 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
951
972
|
c("stop", {
|
|
952
973
|
offset: "0%",
|
|
953
974
|
"stop-color": e.value.style.chart.plots.endColor
|
|
954
|
-
}, null, 8,
|
|
975
|
+
}, null, 8, ta),
|
|
955
976
|
c("stop", {
|
|
956
977
|
offset: "100%",
|
|
957
978
|
"stop-color": e.value.style.chart.plots.startColor
|
|
958
|
-
}, null, 8,
|
|
959
|
-
], 8,
|
|
979
|
+
}, null, 8, la)
|
|
980
|
+
], 8, ea)
|
|
960
981
|
]),
|
|
961
|
-
![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(), v("g",
|
|
962
|
-
e.value.style.chart.plots.link.type === "curved" ? (n(), v("g",
|
|
982
|
+
![void 0, null].includes(t.end) && ![void 0, null].includes(t.start) ? (n(), v("g", aa, [
|
|
983
|
+
e.value.style.chart.plots.link.type === "curved" ? (n(), v("g", sa, [
|
|
963
984
|
c("path", {
|
|
964
985
|
d: `M
|
|
965
986
|
${t.startX},${t.y + X.value / 2}
|
|
@@ -971,18 +992,18 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
971
992
|
Z
|
|
972
993
|
`,
|
|
973
994
|
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${f.value})` : `url(#grad_neg_${f.value})`
|
|
974
|
-
}, null, 8,
|
|
975
|
-
])) : (n(), v("g",
|
|
995
|
+
}, null, 8, oa)
|
|
996
|
+
])) : (n(), v("g", na, [
|
|
976
997
|
c("rect", {
|
|
977
998
|
x: t.endX > t.startX ? t.startX : t.endX,
|
|
978
999
|
y: t.y - e.value.style.chart.plots.link.strokeWidth / 2,
|
|
979
1000
|
height: Math.max(0.01, e.value.style.chart.plots.link.strokeWidth),
|
|
980
1001
|
width: Math.max(0.01, Math.abs(t.endX - t.startX)),
|
|
981
1002
|
fill: e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : t.endX > t.startX ? `url(#grad_pos_${f.value})` : `url(#grad_neg_${f.value})`
|
|
982
|
-
}, null, 8,
|
|
1003
|
+
}, null, 8, ra)
|
|
983
1004
|
]))
|
|
984
|
-
])) :
|
|
985
|
-
[null, void 0].includes(t.start) ?
|
|
1005
|
+
])) : y("", !0),
|
|
1006
|
+
[null, void 0].includes(t.start) ? y("", !0) : (n(), v("circle", {
|
|
986
1007
|
key: 1,
|
|
987
1008
|
cx: t.startX,
|
|
988
1009
|
cy: t.y,
|
|
@@ -990,8 +1011,8 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
990
1011
|
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#start_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.startColor,
|
|
991
1012
|
stroke: e.value.style.chart.plots.stroke,
|
|
992
1013
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
993
|
-
}, null, 8,
|
|
994
|
-
[null, void 0].includes(t.end) ?
|
|
1014
|
+
}, null, 8, ua)),
|
|
1015
|
+
[null, void 0].includes(t.end) ? y("", !0) : (n(), v("circle", {
|
|
995
1016
|
key: 2,
|
|
996
1017
|
cx: t.endX,
|
|
997
1018
|
cy: t.y,
|
|
@@ -999,13 +1020,13 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
999
1020
|
fill: e.value.style.chart.plots.gradient.show ? e.value.style.chart.plots.evaluationColors.enable ? t.evaluationGrad : `url(#end_grad_${f.value})` : e.value.style.chart.plots.evaluationColors.enable ? t.evaluationColor : e.value.style.chart.plots.endColor,
|
|
1000
1021
|
stroke: e.value.style.chart.plots.stroke,
|
|
1001
1022
|
"stroke-width": e.value.style.chart.plots.strokeWidth
|
|
1002
|
-
}, null, 8,
|
|
1023
|
+
}, null, 8, ia))
|
|
1003
1024
|
]))), 128)),
|
|
1004
|
-
e.value.style.chart.labels.startLabels.show ? (n(), v("g",
|
|
1025
|
+
e.value.style.chart.labels.startLabels.show ? (n(), v("g", ca, [
|
|
1005
1026
|
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
|
|
1006
1027
|
key: `start_label_${a}_${t.id}`
|
|
1007
1028
|
}, [
|
|
1008
|
-
[null, void 0].includes(t.start) ?
|
|
1029
|
+
[null, void 0].includes(t.start) ? y("", !0) : (n(), v("text", {
|
|
1009
1030
|
key: 0,
|
|
1010
1031
|
x: t.startX,
|
|
1011
1032
|
y: t.y + X.value * 2 + e.value.style.chart.labels.startLabels.fontSize / 2,
|
|
@@ -1022,14 +1043,14 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
1022
1043
|
r: e.value.style.chart.labels.startLabels.rounding
|
|
1023
1044
|
}),
|
|
1024
1045
|
{ datapoint: t, seriesIndex: a }
|
|
1025
|
-
)), 9,
|
|
1046
|
+
)), 9, va))
|
|
1026
1047
|
]))), 128))
|
|
1027
|
-
])) :
|
|
1028
|
-
e.value.style.chart.labels.endLabels.show ? (n(), v("g",
|
|
1048
|
+
])) : y("", !0),
|
|
1049
|
+
e.value.style.chart.labels.endLabels.show ? (n(), v("g", da, [
|
|
1029
1050
|
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("g", {
|
|
1030
1051
|
key: `end_label_${a}_${t.id}`
|
|
1031
1052
|
}, [
|
|
1032
|
-
[null, void 0].includes(t.end) ?
|
|
1053
|
+
[null, void 0].includes(t.end) ? y("", !0) : (n(), v("text", {
|
|
1033
1054
|
key: 0,
|
|
1034
1055
|
x: t.endX,
|
|
1035
1056
|
y: t.y - (X.value * 2 - e.value.style.chart.labels.startLabels.fontSize / 3),
|
|
@@ -1046,41 +1067,41 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
1046
1067
|
r: e.value.style.chart.labels.endLabels.rounding
|
|
1047
1068
|
}),
|
|
1048
1069
|
{ datapoint: t, seriesIndex: a }
|
|
1049
|
-
)), 9,
|
|
1070
|
+
)), 9, ha))
|
|
1050
1071
|
]))), 128))
|
|
1051
|
-
])) :
|
|
1072
|
+
])) : y("", !0),
|
|
1052
1073
|
c("g", null, [
|
|
1053
1074
|
(n(!0), v(C, null, A(k.value, (t, a) => (n(), v("rect", {
|
|
1054
1075
|
x: o.value.left,
|
|
1055
1076
|
y: o.value.top + a * Math.max(0.1, o.value.rowHeight),
|
|
1056
1077
|
width: Math.max(0.1, o.value.width),
|
|
1057
1078
|
height: Math.max(0.1, o.value.rowHeight),
|
|
1058
|
-
fill:
|
|
1059
|
-
onMouseenter: (u) =>
|
|
1060
|
-
onMouseleave: (u) =>
|
|
1061
|
-
onClick: (u) =>
|
|
1062
|
-
}, null, 40,
|
|
1079
|
+
fill: D.value !== null && D.value === a ? i(vt)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
|
|
1080
|
+
onMouseenter: (u) => xe({ datapoint: t, seriesIndex: a }),
|
|
1081
|
+
onMouseleave: (u) => _e({ datapoint: t, seriesIndex: a }),
|
|
1082
|
+
onClick: (u) => ke({ datapoint: t, seriesIndex: a })
|
|
1083
|
+
}, null, 40, fa))), 256))
|
|
1063
1084
|
]),
|
|
1064
1085
|
x(l.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
1065
|
-
], 14,
|
|
1066
|
-
l.$slots.watermark ? (n(), v("div",
|
|
1067
|
-
x(l.$slots, "watermark", se(oe({ isPrinting: i(
|
|
1068
|
-
])) :
|
|
1086
|
+
], 14, bl)),
|
|
1087
|
+
l.$slots.watermark ? (n(), v("div", ba, [
|
|
1088
|
+
x(l.$slots, "watermark", se(oe({ isPrinting: i(Pe) || i(Ge) })), void 0, !0)
|
|
1089
|
+
])) : y("", !0),
|
|
1069
1090
|
c("div", {
|
|
1070
1091
|
id: `legend-bottom-${f.value}`
|
|
1071
|
-
}, null, 8,
|
|
1072
|
-
|
|
1092
|
+
}, null, 8, ya),
|
|
1093
|
+
Oe.value ? (n(), O(Bt, {
|
|
1073
1094
|
key: 5,
|
|
1074
1095
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${f.value}` : `#legend-bottom-${f.value}`
|
|
1075
1096
|
}, [
|
|
1076
1097
|
c("div", {
|
|
1077
1098
|
ref_key: "chartLegend",
|
|
1078
|
-
ref:
|
|
1099
|
+
ref: Se
|
|
1079
1100
|
}, [
|
|
1080
|
-
e.value.style.chart.legend.show && K.value ? (n(),
|
|
1081
|
-
key: `legend_${
|
|
1082
|
-
legendSet:
|
|
1083
|
-
config:
|
|
1101
|
+
e.value.style.chart.legend.show && K.value ? (n(), O(vl, {
|
|
1102
|
+
key: `legend_${Te.value}`,
|
|
1103
|
+
legendSet: ge.value,
|
|
1104
|
+
config: At.value,
|
|
1084
1105
|
clickable: !1
|
|
1085
1106
|
}, {
|
|
1086
1107
|
item: p(({ legend: t }) => [
|
|
@@ -1088,7 +1109,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
1088
1109
|
style: ae(`display:flex;align-items:center;gap:4px;font-size:${e.value.style.chart.legend.fontSize}px`)
|
|
1089
1110
|
}, [
|
|
1090
1111
|
(n(), v("svg", {
|
|
1091
|
-
xmlns: i(
|
|
1112
|
+
xmlns: i(ct),
|
|
1092
1113
|
viewBox: "0 0 20 20",
|
|
1093
1114
|
height: e.value.style.chart.legend.fontSize,
|
|
1094
1115
|
width: e.value.style.chart.legend.fontSize
|
|
@@ -1098,36 +1119,36 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
1098
1119
|
cy: 10,
|
|
1099
1120
|
r: 9,
|
|
1100
1121
|
fill: t.color
|
|
1101
|
-
}, null, 8,
|
|
1102
|
-
], 8,
|
|
1103
|
-
i(ce) ?
|
|
1104
|
-
|
|
1122
|
+
}, null, 8, ma)
|
|
1123
|
+
], 8, ga)),
|
|
1124
|
+
i(ce) ? y("", !0) : (n(), v(C, { key: 0 }, [
|
|
1125
|
+
we(_(t.name), 1)
|
|
1105
1126
|
], 64))
|
|
1106
1127
|
], 4)
|
|
1107
1128
|
]),
|
|
1108
1129
|
_: 1
|
|
1109
1130
|
}, 8, ["legendSet", "config"])) : x(l.$slots, "legend", {
|
|
1110
1131
|
key: 1,
|
|
1111
|
-
legend:
|
|
1132
|
+
legend: ge.value
|
|
1112
1133
|
}, void 0, !0)
|
|
1113
1134
|
], 512)
|
|
1114
|
-
], 8, ["to"])) :
|
|
1135
|
+
], 8, ["to"])) : y("", !0),
|
|
1115
1136
|
l.$slots.source ? (n(), v("div", {
|
|
1116
1137
|
key: 6,
|
|
1117
1138
|
ref_key: "source",
|
|
1118
|
-
ref:
|
|
1139
|
+
ref: Ne,
|
|
1119
1140
|
dir: "auto"
|
|
1120
1141
|
}, [
|
|
1121
1142
|
x(l.$slots, "source", {}, void 0, !0)
|
|
1122
|
-
], 512)) :
|
|
1123
|
-
K.value && e.value.userOptions.buttons.table ? (n(),
|
|
1143
|
+
], 512)) : y("", !0),
|
|
1144
|
+
K.value && e.value.userOptions.buttons.table ? (n(), O(Vt(q.value.component), Ut({ key: 7 }, q.value.props, {
|
|
1124
1145
|
ref_key: "tableUnit",
|
|
1125
1146
|
ref: U,
|
|
1126
1147
|
onClose: Ke
|
|
1127
|
-
}),
|
|
1148
|
+
}), ot({
|
|
1128
1149
|
content: p(() => [
|
|
1129
|
-
(n(),
|
|
1130
|
-
key: `table_${
|
|
1150
|
+
(n(), O(i(gt), {
|
|
1151
|
+
key: `table_${ze.value}`,
|
|
1131
1152
|
colNames: ee.value.colNames,
|
|
1132
1153
|
head: ee.value.head,
|
|
1133
1154
|
body: ee.value.body,
|
|
@@ -1140,10 +1161,10 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
1140
1161
|
c("div", {
|
|
1141
1162
|
innerHTML: t,
|
|
1142
1163
|
style: { display: "flex", "align-items": "center" }
|
|
1143
|
-
}, null, 8,
|
|
1164
|
+
}, null, 8, pa)
|
|
1144
1165
|
]),
|
|
1145
1166
|
td: p(({ td: t }) => [
|
|
1146
|
-
|
|
1167
|
+
we(_(t.name || t), 1)
|
|
1147
1168
|
]),
|
|
1148
1169
|
_: 1
|
|
1149
1170
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1153,7 +1174,7 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
1153
1174
|
e.value.table.useDialog ? {
|
|
1154
1175
|
name: "title",
|
|
1155
1176
|
fn: p(() => [
|
|
1156
|
-
|
|
1177
|
+
we(_(q.value.title), 1)
|
|
1157
1178
|
]),
|
|
1158
1179
|
key: "0"
|
|
1159
1180
|
} : void 0,
|
|
@@ -1163,9 +1184,9 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
1163
1184
|
c("button", {
|
|
1164
1185
|
tabindex: "0",
|
|
1165
1186
|
class: "vue-ui-user-options-button",
|
|
1166
|
-
onClick: s[0] || (s[0] = (t) =>
|
|
1187
|
+
onClick: s[0] || (s[0] = (t) => me(e.value.userOptions.callbacks.csv))
|
|
1167
1188
|
}, [
|
|
1168
|
-
|
|
1189
|
+
nt(i(bt), {
|
|
1169
1190
|
name: "excel",
|
|
1170
1191
|
stroke: q.value.props.color
|
|
1171
1192
|
}, null, 8, ["stroke"])
|
|
@@ -1173,11 +1194,11 @@ const ol = ["id"], nl = ["id"], rl = ["xmlns", "viewBox"], ul = ["x", "y", "widt
|
|
|
1173
1194
|
]),
|
|
1174
1195
|
key: "1"
|
|
1175
1196
|
} : void 0
|
|
1176
|
-
]), 1040)) :
|
|
1177
|
-
i(ce) ? (n(),
|
|
1178
|
-
], 46,
|
|
1197
|
+
]), 1040)) : y("", !0),
|
|
1198
|
+
i(ce) ? (n(), O(al, { key: 8 })) : y("", !0)
|
|
1199
|
+
], 46, hl));
|
|
1179
1200
|
}
|
|
1180
|
-
},
|
|
1201
|
+
}, Fa = /* @__PURE__ */ dl(xa, [["__scopeId", "data-v-92925706"]]);
|
|
1181
1202
|
export {
|
|
1182
|
-
|
|
1203
|
+
Fa as default
|
|
1183
1204
|
};
|