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,24 +1,25 @@
|
|
|
1
|
-
import { defineAsyncComponent as H, useSlots as
|
|
2
|
-
import { u as
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
|
|
1
|
+
import { defineAsyncComponent as H, useSlots as Ia, computed as m, ref as y, onMounted as Rt, toRefs as Na, watch as ze, shallowRef as It, onBeforeUnmount as Nt, watchEffect as Ot, nextTick as Pt, createElementBlock as o, openBlock as r, unref as v, normalizeStyle as j, normalizeClass as le, createBlock as B, createCommentVNode as d, renderSlot as L, createElementVNode as D, createVNode as he, createSlots as Ge, withCtx as C, normalizeProps as W, guardReactiveProps as Y, Fragment as b, renderList as p, mergeProps as Ce, toDisplayString as T, Teleport as Oa, resolveDynamicComponent as Pa, createTextVNode as Vt } from "vue";
|
|
2
|
+
import { u as Va, a as Dt } from "./useNestedProp-mxyyqd0B.js";
|
|
3
|
+
import { c as Et, t as Da, b as Ea, p as Se, B as se, e as Fa, o as Ft, f as Ut, g as Ua, h as Ha, a8 as _e, a9 as Ht, C as Bt, X as Ba, m as Wa, a4 as $e, E as Wt, a as Te, d as ee, L as Ya, H as Xa, z as Yt, x as Ga, y as Ja, A as qa } from "./lib-GIYcnm0E.js";
|
|
4
|
+
import { t as Je, u as Za } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as Ka } from "./usePrinter-DYRFiw7X.js";
|
|
6
|
+
import { u as Qa, B as ja } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
+
import { u as el } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as tl } from "./useTimeLabels-BGFjWgrv.js";
|
|
9
|
+
import { u as al } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as sl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import rl from "./img-6wPuVVtk.js";
|
|
13
|
+
import ol from "./Title-D17CJXko.js";
|
|
14
|
+
import { _ as nl } from "./Shape-DJG2zW7b.js";
|
|
15
|
+
import { t as il } from "./themes-Dw-dDudK.js";
|
|
16
|
+
import ul from "./Legend-DsogCeTb.js";
|
|
17
|
+
import { S as cl } from "./Slicer-D6T4aUhr.js";
|
|
18
|
+
import { _ as hl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
19
|
+
const vl = ["id"], dl = ["id"], gl = ["xmlns", "viewBox"], yl = ["x", "y", "width", "height"], bl = { key: 1 }, fl = ["id"], ml = ["stop-color"], pl = ["stop-color"], xl = ["stop-color"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ll = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], zl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Cl = { key: 0 }, Sl = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], _l = { key: 0 }, $l = ["x", "y", "height", "rx", "width", "fill", "stroke", "stroke-width"], Tl = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Ml = { key: 0 }, Al = ["x", "y", "width", "rx", "height", "fill", "stroke", "stroke-width"], Rl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Nl = ["x", "y", "font-size", "fill", "font-weight"], Ol = ["transform", "font-size", "fill", "font-weight"], Pl = ["x", "y", "font-size", "fill", "font-weight"], Vl = ["x", "y", "font-size", "font-weight", "fill"], Dl = ["x", "y", "font-size", "fill", "font-weight"], El = ["x", "y", "font-size", "font-weight", "fill"], Fl = ["x1", "x2", "y1", "y2", "stroke"], Ul = ["x", "y", "font-size", "font-weight", "fill"], Hl = ["x1", "x2", "y1", "y2", "stroke"], Bl = ["font-size", "font-weight", "fill", "text-anchor", "transform"], Wl = { key: 0 }, Yl = { key: 1 }, Xl = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], Gl = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Jl = { key: 0 }, ql = { key: 1 }, Zl = ["font-size", "font-weight", "fill", "x", "y", "onClick"], Kl = ["font-size", "font-weight", "fill", "x", "y", "onClick", "innerHTML"], Ql = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], jl = ["x", "y", "width", "height", "onClick", "onMouseenter", "onMouseleave", "fill"], es = {
|
|
19
20
|
key: 3,
|
|
20
21
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
22
|
+
}, ts = ["id"], as = ["onClick"], ls = ["innerHTML"], ss = {
|
|
22
23
|
__name: "vue-ui-stackbar",
|
|
23
24
|
props: {
|
|
24
25
|
config: {
|
|
@@ -35,25 +36,25 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
35
36
|
}
|
|
36
37
|
},
|
|
37
38
|
emits: ["selectDatapoint", "selectLegend", "selectTimeLabel"],
|
|
38
|
-
setup(Me, { expose:
|
|
39
|
-
const
|
|
39
|
+
setup(Me, { expose: Xt, emit: Gt }) {
|
|
40
|
+
const Jt = H(() => import("./Tooltip-CtVdvbZi.js")), qt = H(() => import("./BaseIcon-CtqN7W_g.js")), Zt = H(() => import("./vue-ui-accordion-Dch9YrCi.js")), Kt = H(() => import("./DataTable-BeI6gYJX.js")), Qt = H(() => import("./PenAndPaper-BxbYiPy4.js")), jt = H(() => import("./UserOptions-B3vCIe-u.js")), ea = H(() => import("./PackageVersion-C9oklnuy.js")), ta = H(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_stackbar: aa } = Va(), la = Ia(), f = Me, Ae = Gt, ve = m({
|
|
40
41
|
get() {
|
|
41
42
|
return !!f.dataset && f.dataset.length;
|
|
42
43
|
},
|
|
43
44
|
set(a) {
|
|
44
45
|
return a;
|
|
45
46
|
}
|
|
46
|
-
}), O =
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
}), O = y(null), M = y(Et()), Re = y(!1), Ie = y(null), Ne = y(""), _ = y([]), qe = y(0), Ze = y(null), Ke = y(null), Qe = y(null), je = y(null), et = y(0), re = y(!1), de = y(null), X = y(!1), tt = y(0), sa = y(0), ra = y(0), at = y(null), lt = y(!1), oe = y(null), Oe = y(null), Pe = y(null), Ve = y(null), G = y(null), J = y(null), oa = y(null), st = y(null);
|
|
48
|
+
Rt(() => {
|
|
49
|
+
lt.value = !0, He();
|
|
49
50
|
});
|
|
50
|
-
const e =
|
|
51
|
-
|
|
51
|
+
const e = y(Fe()), { loading: ne, FINAL_DATASET: ge, manualLoading: ye } = Qa({
|
|
52
|
+
...Na(f),
|
|
52
53
|
FINAL_CONFIG: e,
|
|
53
|
-
prepareConfig:
|
|
54
|
+
prepareConfig: Fe,
|
|
54
55
|
callback: () => {
|
|
55
56
|
Promise.resolve().then(async () => {
|
|
56
|
-
await
|
|
57
|
+
await Be();
|
|
57
58
|
});
|
|
58
59
|
},
|
|
59
60
|
skeletonDataset: [
|
|
@@ -68,7 +69,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
68
69
|
color: "#CACACA"
|
|
69
70
|
}
|
|
70
71
|
],
|
|
71
|
-
skeletonConfig:
|
|
72
|
+
skeletonConfig: Da({
|
|
72
73
|
defaultConfig: e.value,
|
|
73
74
|
userConfig: {
|
|
74
75
|
userOptions: { show: !1 },
|
|
@@ -117,28 +118,28 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
})
|
|
120
|
-
}), { userOptionsVisible: De, setUserOptionsVisibility:
|
|
121
|
-
function
|
|
122
|
-
const a =
|
|
121
|
+
}), { userOptionsVisible: De, setUserOptionsVisibility: rt, keepUserOptionState: ot } = al({ config: e.value }), { svgRef: Ee } = ll({ config: e.value.style.chart.title });
|
|
122
|
+
function Fe() {
|
|
123
|
+
const a = Dt({
|
|
123
124
|
userConfig: f.config,
|
|
124
|
-
defaultConfig:
|
|
125
|
+
defaultConfig: aa
|
|
125
126
|
});
|
|
126
127
|
let l = {};
|
|
127
128
|
return a.theme ? l = {
|
|
128
|
-
...
|
|
129
|
-
userConfig:
|
|
129
|
+
...Dt({
|
|
130
|
+
userConfig: il.vue_ui_stackbar[a.theme] || f.config,
|
|
130
131
|
defaultConfig: a
|
|
131
132
|
}),
|
|
132
|
-
customPalette:
|
|
133
|
+
customPalette: Ea[a.theme] || Se
|
|
133
134
|
} : l = a, f.config && se(f.config, "style.chart.grid.scale.scaleMin") ? l.style.chart.grid.scale.scaleMin = f.config.style.chart.grid.scale.scaleMin : l.style.chart.grid.scale.scaleMin = null, f.config && se(f.config, "style.chart.grid.scale.scaleMax") ? l.style.chart.grid.scale.scaleMax = f.config.style.chart.grid.scale.scaleMax : l.style.chart.grid.scale.scaleMax = null, f.config && se(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && se(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderValue") ? l.style.chart.bars.dataLabels.hideUnderValue = f.config.style.chart.bars.dataLabels.hideUnderValue : l.style.chart.bars.dataLabels.hideUnderValue = null, f.config && se(f.config, "style.chart.bars.dataLabels.hideUnderPercentage") ? l.style.chart.bars.dataLabels.hideUnderPercentage = f.config.style.chart.bars.dataLabels.hideUnderPercentage : l.style.chart.bars.dataLabels.hideUnderPercentage = null, l;
|
|
134
135
|
}
|
|
135
|
-
const
|
|
136
|
+
const nt = m(() => e.value.style.chart.bars.dataLabels.hideUnderValue !== null), it = m(() => e.value.style.chart.bars.dataLabels.hideUnderPercentage !== null);
|
|
136
137
|
ze(() => f.config, (a) => {
|
|
137
|
-
ne.value || (e.value =
|
|
138
|
+
ne.value || (e.value = Fe()), De.value = !e.value.userOptions.showOnChartHover, He(), tt.value += 1, sa.value += 1, ra.value += 1, z.value.dataLabels.show = e.value.style.chart.bars.dataLabels.show, z.value.showTable = e.value.table.show, z.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
138
139
|
}, { deep: !0 }), ze(() => f.dataset, (a) => {
|
|
139
|
-
Array.isArray(a) && a.length > 0 && (
|
|
140
|
+
Array.isArray(a) && a.length > 0 && (ye.value = !1), yt();
|
|
140
141
|
}, { deep: !0 });
|
|
141
|
-
const z =
|
|
142
|
+
const z = y({
|
|
142
143
|
dataLabels: {
|
|
143
144
|
show: e.value.style.chart.bars.dataLabels.show
|
|
144
145
|
},
|
|
@@ -154,11 +155,11 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
154
155
|
showTooltip: e.value.style.chart.tooltip.show
|
|
155
156
|
};
|
|
156
157
|
}, { immediate: !0 });
|
|
157
|
-
const { isPrinting:
|
|
158
|
+
const { isPrinting: ut, isImaging: ct, generatePdf: ht, generateImage: vt } = Ka({
|
|
158
159
|
elementId: `stackbar_${M.value}`,
|
|
159
160
|
fileName: e.value.style.chart.title.text || "vue-ui-stackbar",
|
|
160
161
|
options: e.value.userOptions.print
|
|
161
|
-
}), te =
|
|
162
|
+
}), te = y({
|
|
162
163
|
width: e.value.style.chart.width,
|
|
163
164
|
height: e.value.style.chart.height,
|
|
164
165
|
paddingRatio: {
|
|
@@ -167,55 +168,55 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
167
168
|
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
168
169
|
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
169
170
|
}
|
|
170
|
-
}),
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
}), na = m(() => Fa(e.value.customPalette)), E = It(null), ae = It(null), dt = y(null);
|
|
172
|
+
Rt(() => {
|
|
173
|
+
He();
|
|
173
174
|
});
|
|
174
|
-
const
|
|
175
|
-
function
|
|
176
|
-
if (
|
|
175
|
+
const Ue = m(() => !!e.value.debug);
|
|
176
|
+
function He() {
|
|
177
|
+
if (Ft(f.dataset) ? (Ut({
|
|
177
178
|
componentName: "VueUiStackbar",
|
|
178
179
|
type: "dataset",
|
|
179
|
-
debug:
|
|
180
|
-
}),
|
|
181
|
-
|
|
180
|
+
debug: Ue.value
|
|
181
|
+
}), ye.value = !0) : f.dataset.forEach((a, l) => {
|
|
182
|
+
Ua({
|
|
182
183
|
datasetObject: a,
|
|
183
184
|
requiredAttributes: ["name", "series"]
|
|
184
185
|
}).forEach((t) => {
|
|
185
|
-
ve.value = !1,
|
|
186
|
+
ve.value = !1, Ut({
|
|
186
187
|
componentName: "VueUiStackbar",
|
|
187
188
|
type: "datasetSerieAttribute",
|
|
188
189
|
property: t,
|
|
189
190
|
index: l,
|
|
190
|
-
debug:
|
|
191
|
-
}),
|
|
191
|
+
debug: Ue.value
|
|
192
|
+
}), ye.value = !0;
|
|
192
193
|
});
|
|
193
|
-
}),
|
|
194
|
+
}), Ft(f.dataset) || (ye.value = e.value.loading), setTimeout(() => {
|
|
194
195
|
X.value = !0;
|
|
195
196
|
}, 10), e.value.responsive) {
|
|
196
|
-
const a =
|
|
197
|
+
const a = Je(() => {
|
|
197
198
|
X.value = !1;
|
|
198
|
-
const { width: l, height: t } =
|
|
199
|
+
const { width: l, height: t } = Za({
|
|
199
200
|
chart: O.value,
|
|
200
|
-
title: e.value.style.chart.title.text ?
|
|
201
|
-
legend: e.value.style.chart.legend.show ?
|
|
202
|
-
slicer: e.value.style.chart.zoom.show && U.value > 1 ?
|
|
203
|
-
source:
|
|
201
|
+
title: e.value.style.chart.title.text ? Ze.value : null,
|
|
202
|
+
legend: e.value.style.chart.legend.show ? Ke.value : null,
|
|
203
|
+
slicer: e.value.style.chart.zoom.show && U.value > 1 ? Qe.value : null,
|
|
204
|
+
source: je.value
|
|
204
205
|
});
|
|
205
206
|
requestAnimationFrame(() => {
|
|
206
|
-
te.value.width = l, te.value.height = t - 12, clearTimeout(
|
|
207
|
+
te.value.width = l, te.value.height = t - 12, clearTimeout(dt.value), dt.value = setTimeout(() => {
|
|
207
208
|
X.value = !0;
|
|
208
209
|
}, 10);
|
|
209
210
|
});
|
|
210
211
|
});
|
|
211
212
|
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect()), E.value = new ResizeObserver(a), ae.value = O.value.parentNode, E.value.observe(ae.value);
|
|
212
213
|
}
|
|
213
|
-
|
|
214
|
+
Be();
|
|
214
215
|
}
|
|
215
|
-
|
|
216
|
+
Nt(() => {
|
|
216
217
|
E.value && (ae.value && E.value.unobserve(ae.value), E.value.disconnect());
|
|
217
218
|
});
|
|
218
|
-
function
|
|
219
|
+
function ia() {
|
|
219
220
|
let a = 0;
|
|
220
221
|
e.value.orientation === "vertical" && G.value && (a = Array.from(G.value.querySelectorAll("text")).reduce((s, c) => {
|
|
221
222
|
const u = c.getComputedTextLength();
|
|
@@ -227,53 +228,53 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
227
228
|
const l = Ve.value ? Ve.value.getBoundingClientRect().width : 0;
|
|
228
229
|
return a + l + (l ? 24 : 0);
|
|
229
230
|
}
|
|
230
|
-
const be =
|
|
231
|
+
const be = y(0), fe = y(0), ua = Je((a) => {
|
|
231
232
|
be.value = a;
|
|
232
233
|
}, 100);
|
|
233
|
-
|
|
234
|
+
Ot((a) => {
|
|
234
235
|
const l = e.value.orientation === "vertical" ? J.value : G.value;
|
|
235
236
|
if (!l) return;
|
|
236
237
|
const t = new ResizeObserver((s) => {
|
|
237
|
-
|
|
238
|
+
ua(s[0].contentRect.height);
|
|
238
239
|
});
|
|
239
240
|
t.observe(l), a(() => t.disconnect());
|
|
240
241
|
});
|
|
241
|
-
const
|
|
242
|
+
const ca = Je((a) => {
|
|
242
243
|
fe.value = a + e.value.style.chart.bars.totalValues.fontSize;
|
|
243
244
|
}, 100);
|
|
244
|
-
|
|
245
|
+
Ot((a) => {
|
|
245
246
|
if (e.value.orientation === "vertical") return;
|
|
246
|
-
const l =
|
|
247
|
+
const l = st.value;
|
|
247
248
|
if (!l) return;
|
|
248
249
|
const t = new ResizeObserver((s) => {
|
|
249
|
-
|
|
250
|
+
ca(s[0].contentRect.width);
|
|
250
251
|
});
|
|
251
252
|
t.observe(l), a(() => t.disconnect());
|
|
252
|
-
}),
|
|
253
|
+
}), Nt(() => {
|
|
253
254
|
be.value = 0, fe.value = 0;
|
|
254
255
|
});
|
|
255
|
-
const
|
|
256
|
+
const gt = m(() => {
|
|
256
257
|
let a = 0;
|
|
257
258
|
Pe.value && (a = Pe.value.getBBox().height);
|
|
258
259
|
let l = 0;
|
|
259
260
|
return e.value.orientation === "vertical" && J.value && (l = be.value), e.value.orientation === "horizontal" && G.value && (l = be.value), a + l;
|
|
260
|
-
}), n =
|
|
261
|
+
}), n = m(() => {
|
|
261
262
|
const { height: a, width: l } = te.value, { right: t } = te.value.paddingRatio;
|
|
262
263
|
let s = e.value.style.chart.bars.totalValues.show && f.dataset && f.dataset.length > 1 ? e.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, c = 0;
|
|
263
|
-
e.value.style.chart.grid.y.axisLabels.show && (c =
|
|
264
|
-
const u = e.value.style.chart.padding.top + s,
|
|
264
|
+
e.value.style.chart.grid.y.axisLabels.show && (c = ia());
|
|
265
|
+
const u = e.value.style.chart.padding.top + s, S = l - l * t - fe.value, q = a - e.value.style.chart.padding.bottom - gt.value - s, Z = e.value.style.chart.padding.left + c, K = l - Z - l * t - fe.value, P = a - u - e.value.style.chart.padding.bottom - gt.value - s;
|
|
265
266
|
return {
|
|
266
267
|
chartHeight: a,
|
|
267
268
|
chartWidth: l,
|
|
268
269
|
top: u,
|
|
269
|
-
right:
|
|
270
|
+
right: S,
|
|
270
271
|
bottom: q,
|
|
271
272
|
left: Z,
|
|
272
273
|
width: Math.max(0, K),
|
|
273
274
|
height: Math.max(0, P)
|
|
274
275
|
};
|
|
275
|
-
}), F =
|
|
276
|
-
const t =
|
|
276
|
+
}), F = m(() => ge.value.map((a, l) => {
|
|
277
|
+
const t = Ha(a.color) || na.value[l] || Se[l] || Se[l % Se.length];
|
|
277
278
|
return {
|
|
278
279
|
...a,
|
|
279
280
|
// In distributed mode, all values are converted to positive
|
|
@@ -281,45 +282,45 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
281
282
|
// Store signs to manage display of neg values in distributed mode
|
|
282
283
|
signedSeries: a.series.map((s) => s >= 0 ? 1 : -1),
|
|
283
284
|
absoluteIndex: l,
|
|
284
|
-
id:
|
|
285
|
+
id: Et(),
|
|
285
286
|
color: t
|
|
286
287
|
};
|
|
287
|
-
})), U =
|
|
288
|
+
})), U = m(() => Math.max(...F.value.filter((a) => !_.value.includes(a.id)).map((a) => a.series.length))), h = y({
|
|
288
289
|
start: 0,
|
|
289
|
-
end: Math.max(...
|
|
290
|
+
end: Math.max(...ge.value.map((a) => a.series.length))
|
|
290
291
|
});
|
|
291
292
|
function yt() {
|
|
292
|
-
|
|
293
|
+
Be();
|
|
293
294
|
}
|
|
294
|
-
async function
|
|
295
|
-
await
|
|
296
|
-
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t =
|
|
297
|
-
h.value = { start: 0, end: s }, (a != null || l != null) && t ? (a != null ? t.setStartValue(a) : (h.value.start = 0, t.setStartValue(0)), l != null ? t.setEndValue(
|
|
295
|
+
async function Be() {
|
|
296
|
+
await Pt(), await Pt();
|
|
297
|
+
const { startIndex: a, endIndex: l } = e.value.style.chart.zoom, t = at.value, s = Math.max(...ge.value.map((c) => c.series.length));
|
|
298
|
+
h.value = { start: 0, end: s }, (a != null || l != null) && t ? (a != null ? t.setStartValue(a) : (h.value.start = 0, t.setStartValue(0)), l != null ? t.setEndValue(ha(l + 1)) : (h.value.end = s, t.setEndValue(s))) : (h.value = { start: 0, end: s }, et.value += 1);
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
-
const l = Math.max(...
|
|
300
|
+
function ha(a) {
|
|
301
|
+
const l = Math.max(...ge.value.map((t) => t.series.length));
|
|
301
302
|
return a > l ? l : a < 0 || e.value.style.chart.zoom.startIndex !== null && a < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : a;
|
|
302
303
|
}
|
|
303
|
-
const
|
|
304
|
+
const g = m(() => {
|
|
304
305
|
let a;
|
|
305
306
|
return e.value.orientation === "vertical" ? a = n.value.width / (h.value.end - h.value.start) : a = n.value.height / (h.value.end - h.value.start), a <= 0 ? 0 : a;
|
|
306
|
-
}), ie =
|
|
307
|
+
}), ie = m(() => _e(F.value.filter((a) => !_.value.includes(a.id))).slice(h.value.start, h.value.end)), va = m(() => _e(F.value.filter((a) => !_.value.includes(a.id)).map((a) => ({
|
|
307
308
|
...a,
|
|
308
309
|
series: a.series.map((l, t) => a.signedSeries[t] === -1 && l >= 0 ? -l : l)
|
|
309
|
-
}))).slice(h.value.start, h.value.end)), me =
|
|
310
|
-
const a = F.value.filter((l) => !
|
|
310
|
+
}))).slice(h.value.start, h.value.end)), me = m(() => {
|
|
311
|
+
const a = F.value.filter((l) => !_.value.includes(l.id));
|
|
311
312
|
return {
|
|
312
|
-
positive:
|
|
313
|
+
positive: _e(a.map((l) => ({
|
|
313
314
|
...l,
|
|
314
315
|
series: l.series.slice(h.value.start, h.value.end).map((t) => t >= 0 ? t : 0)
|
|
315
316
|
}))),
|
|
316
|
-
negative:
|
|
317
|
+
negative: _e(a.map((l) => ({
|
|
317
318
|
...l,
|
|
318
319
|
series: l.series.slice(h.value.start, h.value.end).map((t) => t < 0 ? t : 0)
|
|
319
320
|
})))
|
|
320
321
|
};
|
|
321
|
-
}), N =
|
|
322
|
-
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...me.value.positive), l = Math.min(...me.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ?
|
|
322
|
+
}), N = m(() => {
|
|
323
|
+
const a = e.value.style.chart.grid.scale.scaleMax !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMax : Math.max(...me.value.positive), l = Math.min(...me.value.negative), t = e.value.style.chart.grid.scale.scaleMin !== null && !e.value.style.chart.bars.distributed ? e.value.style.chart.grid.scale.scaleMin : [-1 / 0, 1 / 0, NaN, void 0, null].includes(l) ? 0 : l, s = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ht(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks) : Bt(t > 0 ? 0 : t, a < 0 ? 0 : a, e.value.style.chart.grid.scale.ticks);
|
|
323
324
|
return s.ticks.map((c) => ({
|
|
324
325
|
zero: n.value.bottom - n.value.height * (Math.abs(s.min) / (s.max + Math.abs(s.min))),
|
|
325
326
|
y: n.value.bottom - n.value.height * ((c + Math.abs(s.min)) / (s.max + Math.abs(s.min))),
|
|
@@ -329,46 +330,46 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
329
330
|
horizontal_y: n.value.bottom - 8,
|
|
330
331
|
value: c
|
|
331
332
|
}));
|
|
332
|
-
}), $ =
|
|
333
|
+
}), $ = m(() => tl({
|
|
333
334
|
values: e.value.style.chart.grid.x.timeLabels.values,
|
|
334
335
|
maxDatapoints: U.value,
|
|
335
336
|
formatter: e.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
336
337
|
start: h.value.start,
|
|
337
338
|
end: h.value.end
|
|
338
|
-
})), w =
|
|
339
|
+
})), w = m(() => {
|
|
339
340
|
if (!ve.value && !ne.value) return [];
|
|
340
341
|
let a = Array(U.value).fill(0), l = Array(U.value).fill(0), t = Array(U.value).fill(0), s = Array(U.value).fill(0);
|
|
341
|
-
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative),
|
|
342
|
-
return F.value.filter((ce) => !
|
|
343
|
-
const V = ce.series.slice(h.value.start, h.value.end),
|
|
342
|
+
const c = Math.max(...me.value.positive) || 0, u = Math.min(...me.value.negative), S = [-1 / 0, 1 / 0, NaN, void 0, null].includes(u) ? 0 : u, q = !e.value.style.chart.bars.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? Ht(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks) : Bt(e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S, e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : c < 0 ? 0 : c, e.value.style.chart.grid.scale.ticks), { min: Z, max: K } = q, P = K + (Z >= 0 ? 0 : Math.abs(Z)) || 1, A = n.value.height, Le = n.value.width, Mt = N.value[0] ? N.value[0].zero : n.value.bottom, At = N.value[0] ? N.value[0].horizontal_zero : n.value.left;
|
|
343
|
+
return F.value.filter((ce) => !_.value.includes(ce.id)).map((ce) => {
|
|
344
|
+
const V = ce.series.slice(h.value.start, h.value.end), Ca = ce.signedSeries.slice(h.value.start, h.value.end), Sa = V.map((x, k) => n.value.left + g.value * k + g.value * e.value.style.chart.bars.gapRatio / 4), _a = V.map((x, k) => n.value.top + g.value * k + g.value * e.value.style.chart.bars.gapRatio / 4), $a = V.map((x, k) => {
|
|
344
345
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
345
346
|
let Q, I;
|
|
346
|
-
return x > 0 ? (I = A * R, Q =
|
|
347
|
-
}),
|
|
347
|
+
return x > 0 ? (I = A * R, Q = Mt - I - a[k], a[k] += I) : (I = A * R, Q = Mt + t[k], t[k] += Math.abs(I)), Q;
|
|
348
|
+
}), Ta = V.map((x, k) => {
|
|
348
349
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
349
350
|
let Q, I;
|
|
350
|
-
return x > 0 ? (I = Le * R, Q =
|
|
351
|
-
}),
|
|
351
|
+
return x > 0 ? (I = Le * R, Q = At + l[k], l[k] += I) : (I = Le * R, Q = At - Math.abs(I) - s[k], s[k] += Math.abs(I)), Q;
|
|
352
|
+
}), Ma = V.map((x, k) => {
|
|
352
353
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
353
354
|
return x > 0 ? A * R : A * Math.abs(R);
|
|
354
|
-
}),
|
|
355
|
+
}), Aa = V.map((x, k) => {
|
|
355
356
|
const R = e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / P;
|
|
356
357
|
return x > 0 ? Le * R : Le * Math.abs(R);
|
|
357
|
-
}),
|
|
358
|
+
}), Ra = V.map((x) => Math.abs(x)).reduce((x, k) => x + k, 0);
|
|
358
359
|
return {
|
|
359
360
|
...ce,
|
|
360
|
-
proportions: V.map((x, k) => e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) /
|
|
361
|
+
proportions: V.map((x, k) => e.value.style.chart.bars.distributed ? (x || 0) / ie.value[k] : (x || 0) / Ra),
|
|
361
362
|
series: V,
|
|
362
|
-
signedSeries:
|
|
363
|
-
x:
|
|
364
|
-
y:
|
|
365
|
-
height:
|
|
366
|
-
horizontal_width:
|
|
367
|
-
horizontal_y:
|
|
368
|
-
horizontal_x:
|
|
363
|
+
signedSeries: Ca,
|
|
364
|
+
x: Sa,
|
|
365
|
+
y: $a,
|
|
366
|
+
height: Ma,
|
|
367
|
+
horizontal_width: Aa,
|
|
368
|
+
horizontal_y: _a,
|
|
369
|
+
horizontal_x: Ta
|
|
369
370
|
};
|
|
370
371
|
});
|
|
371
|
-
}),
|
|
372
|
+
}), bt = m(() => va.value.map((a, l) => ({
|
|
372
373
|
value: a,
|
|
373
374
|
sign: a >= 0 ? 1 : -1
|
|
374
375
|
})));
|
|
@@ -386,7 +387,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
386
387
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
387
388
|
);
|
|
388
389
|
}
|
|
389
|
-
function
|
|
390
|
+
function ft(a, l, t, s) {
|
|
390
391
|
return Te(
|
|
391
392
|
e.value.style.chart.bars.dataLabels.formatter,
|
|
392
393
|
a,
|
|
@@ -398,7 +399,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
398
399
|
{ datapoint: l, seriesIndex: t, datapointIndex: s }
|
|
399
400
|
);
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
+
function mt(a) {
|
|
402
403
|
const l = JSON.parse(JSON.stringify(w.value)).map((t) => ({
|
|
403
404
|
name: t.name,
|
|
404
405
|
value: t.series[a] === 0 ? 0 : t.series[a] || null,
|
|
@@ -408,7 +409,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
408
409
|
}));
|
|
409
410
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: a + h.value.start }), Ae("selectDatapoint", { datapoint: l, period: $.value[a] });
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
+
function pt(a) {
|
|
412
413
|
return JSON.parse(JSON.stringify(w.value)).map((l) => ({
|
|
413
414
|
name: l.name,
|
|
414
415
|
absoluteIndex: l.absoluteIndex,
|
|
@@ -418,16 +419,16 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
418
419
|
id: l.id
|
|
419
420
|
}));
|
|
420
421
|
}
|
|
421
|
-
function
|
|
422
|
+
function xt(a) {
|
|
422
423
|
if (e.value.events.datapointLeave) {
|
|
423
|
-
const l =
|
|
424
|
+
const l = pt(a);
|
|
424
425
|
e.value.events.datapointLeave({ datapoint: l, seriesIndex: a + h.value.start });
|
|
425
426
|
}
|
|
426
427
|
Re.value = null, de.value = null;
|
|
427
428
|
}
|
|
428
|
-
function
|
|
429
|
+
function kt(a) {
|
|
429
430
|
de.value = a, Re.value = !0;
|
|
430
|
-
const l = e.value.style.chart.tooltip.customFormat, t =
|
|
431
|
+
const l = e.value.style.chart.tooltip.customFormat, t = pt(a);
|
|
431
432
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a + h.value.start }), Ie.value = {
|
|
432
433
|
datapoint: t,
|
|
433
434
|
seriesIndex: a,
|
|
@@ -435,7 +436,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
435
436
|
series: w.value
|
|
436
437
|
};
|
|
437
438
|
const s = t.map((c) => Math.abs(c.value)).reduce((c, u) => c + u, 0);
|
|
438
|
-
if (
|
|
439
|
+
if (Yt(l) && qa(() => l({
|
|
439
440
|
seriesIndex: a,
|
|
440
441
|
datapoint: t,
|
|
441
442
|
series: w.value,
|
|
@@ -451,12 +452,12 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
451
452
|
const {
|
|
452
453
|
showValue: c,
|
|
453
454
|
showPercentage: u,
|
|
454
|
-
borderColor:
|
|
455
|
+
borderColor: S,
|
|
455
456
|
roundingValue: q,
|
|
456
457
|
roundingPercentage: Z
|
|
457
458
|
} = e.value.style.chart.tooltip;
|
|
458
459
|
let K = "";
|
|
459
|
-
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (K += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
460
|
+
$.value[a] && $.value[a].text && e.value.style.chart.tooltip.showTimeLabel && (K += `<div style="width:100%;text-align:center;border-bottom:1px solid ${S};padding-bottom:6px;margin-bottom:3px;">${$.value[a].text}</div>`);
|
|
460
461
|
const P = [
|
|
461
462
|
c && u ? "(" : "",
|
|
462
463
|
c && u ? ")" : ""
|
|
@@ -464,7 +465,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
464
465
|
t.reverse().forEach((A) => {
|
|
465
466
|
K += `
|
|
466
467
|
<div style="display:flex;flex-direction:row;align-items:center;gap:4px">
|
|
467
|
-
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${A.id})` : A.color}"/>${
|
|
468
|
+
<svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${e.value.style.chart.bars.gradient.show ? `url(#gradient_${A.id})` : A.color}"/>${la.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${M.value}_${A.absoluteIndex})"/>` : ""}</svg>
|
|
468
469
|
${A.name}${c || u ? ":" : ""} ${c ? ee({
|
|
469
470
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
470
471
|
v: A.value,
|
|
@@ -481,8 +482,8 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
481
482
|
}), Ne.value = `<div>${K}</div>`;
|
|
482
483
|
}
|
|
483
484
|
}
|
|
484
|
-
const
|
|
485
|
-
|
|
485
|
+
const da = m(() => te.value.width), ga = m(() => te.value.height);
|
|
486
|
+
sl({
|
|
486
487
|
timeLabelsEls: e.value.orientation === "vertical" ? J : G,
|
|
487
488
|
timeLabels: $,
|
|
488
489
|
slicer: h,
|
|
@@ -490,26 +491,26 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
490
491
|
rotationPath: ["style", "chart", "grid", "x", "timeLabels", "rotation"],
|
|
491
492
|
autoRotatePath: ["style", "chart", "grid", "x", "timeLabels", "autoRotate", "enable"],
|
|
492
493
|
isAutoSize: !1,
|
|
493
|
-
width:
|
|
494
|
-
height:
|
|
494
|
+
width: da,
|
|
495
|
+
height: ga,
|
|
495
496
|
rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
|
|
496
497
|
});
|
|
497
|
-
function
|
|
498
|
-
re.value = a,
|
|
498
|
+
function wt(a) {
|
|
499
|
+
re.value = a, qe.value += 1;
|
|
499
500
|
}
|
|
500
|
-
function
|
|
501
|
+
function Lt() {
|
|
501
502
|
z.value.showTable = !z.value.showTable;
|
|
502
503
|
}
|
|
503
|
-
function
|
|
504
|
+
function zt() {
|
|
504
505
|
z.value.dataLabels.show = !z.value.dataLabels.show;
|
|
505
506
|
}
|
|
506
|
-
function
|
|
507
|
+
function Ct() {
|
|
507
508
|
z.value.showTooltip = !z.value.showTooltip;
|
|
508
509
|
}
|
|
509
510
|
function ya() {
|
|
510
511
|
return w.value;
|
|
511
512
|
}
|
|
512
|
-
const
|
|
513
|
+
const St = m(() => {
|
|
513
514
|
if (w.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
514
515
|
const a = w.value.map(({ name: t, color: s }) => ({
|
|
515
516
|
label: t,
|
|
@@ -522,16 +523,16 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
522
523
|
}), l.push(s);
|
|
523
524
|
}), { head: a, body: l };
|
|
524
525
|
});
|
|
525
|
-
function
|
|
526
|
-
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
527
|
-
a ? a(u) :
|
|
526
|
+
function We(a = null) {
|
|
527
|
+
const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...St.value.head.map((S) => S.label)], s = St.value.body, c = l.concat([t]).concat(s), u = Ga(c);
|
|
528
|
+
a ? a(u) : Ja({ csvContent: u, title: e.value.style.chart.title.text || "vue-ui-stackbar" });
|
|
528
529
|
}
|
|
529
|
-
const xe =
|
|
530
|
+
const xe = m(() => {
|
|
530
531
|
const a = [""].concat(w.value.map((c) => c.name)).concat(' <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>');
|
|
531
532
|
let l = [];
|
|
532
533
|
for (let c = 0; c < U.value; c += 1) {
|
|
533
|
-
const u = w.value.map((
|
|
534
|
-
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((
|
|
534
|
+
const u = w.value.map((S) => S.series[c] ?? 0).reduce((S, q) => S + q, 0);
|
|
535
|
+
l.push([e.value.style.chart.grid.x.timeLabels.values.slice(h.value.start, h.value.end)[c] ? $.value[c].text : c + 1].concat(w.value.map((S) => (S.series[c] ?? 0).toFixed(e.value.table.td.roundingValue))).concat((u ?? 0).toFixed(e.value.table.td.roundingValue)));
|
|
535
536
|
}
|
|
536
537
|
const t = {
|
|
537
538
|
th: {
|
|
@@ -548,31 +549,31 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
548
549
|
}, s = [e.value.table.columnNames.period].concat(w.value.map((c) => c.name)).concat(e.value.table.columnNames.total);
|
|
549
550
|
return { head: a, body: l.slice(0, h.value.end - h.value.start), config: t, colNames: s };
|
|
550
551
|
});
|
|
551
|
-
function
|
|
552
|
-
if (Ae("selectLegend", w.value.find((t) => t.absoluteIndex === a)),
|
|
553
|
-
|
|
552
|
+
function ba(a, l) {
|
|
553
|
+
if (Ae("selectLegend", w.value.find((t) => t.absoluteIndex === a)), _.value.includes(l.id))
|
|
554
|
+
_.value = _.value.filter((t) => t !== l.id);
|
|
554
555
|
else {
|
|
555
|
-
if (
|
|
556
|
-
|
|
556
|
+
if (_.value.length === F.value.length - 1) return;
|
|
557
|
+
_.value.push(l.id);
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
|
-
const
|
|
560
|
+
const Ye = m(() => F.value.map((a, l) => ({
|
|
560
561
|
...a,
|
|
561
562
|
shape: "square"
|
|
562
563
|
})).map((a) => ({
|
|
563
564
|
...a,
|
|
564
|
-
opacity:
|
|
565
|
-
segregate: () =>
|
|
566
|
-
isSegregated:
|
|
567
|
-
}))),
|
|
565
|
+
opacity: _.value.includes(a.id) ? 0.5 : 1,
|
|
566
|
+
segregate: () => ba(a.absoluteIndex, a),
|
|
567
|
+
isSegregated: _.value.includes(a.id)
|
|
568
|
+
}))), fa = m(() => ({
|
|
568
569
|
cy: "stackbar-legend",
|
|
569
570
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
570
571
|
color: e.value.style.chart.legend.color,
|
|
571
572
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
572
573
|
paddingBottom: 12,
|
|
573
574
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
574
|
-
})), ke =
|
|
575
|
-
function
|
|
575
|
+
})), ke = y(!1);
|
|
576
|
+
function Xe() {
|
|
576
577
|
ke.value = !ke.value;
|
|
577
578
|
}
|
|
578
579
|
function we(a, l) {
|
|
@@ -589,13 +590,13 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
589
590
|
label: a.text
|
|
590
591
|
});
|
|
591
592
|
}
|
|
592
|
-
const
|
|
593
|
-
function
|
|
594
|
-
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
593
|
+
const ma = m(() => Math.max(...w.value.flatMap((a) => a.series)));
|
|
594
|
+
function _t(a, l) {
|
|
595
|
+
return e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? it.value ? l * 100 >= e.value.style.chart.bars.dataLabels.hideUnderPercentage : e.value.style.chart.bars.dataLabels.hideEmptyPercentages ? l > 0 : !0 : it.value ? (nt.value && Ue.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), a > ma.value * e.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : nt.value ? Math.abs(a) >= e.value.style.chart.bars.dataLabels.hideUnderValue : e.value.style.chart.bars.dataLabels.hideEmptyValues ? a !== 0 : !0;
|
|
595
596
|
}
|
|
596
|
-
async function
|
|
597
|
+
async function pa({ scale: a = 2 } = {}) {
|
|
597
598
|
if (!O.value) return;
|
|
598
|
-
const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await
|
|
599
|
+
const { width: l, height: t } = O.value.getBoundingClientRect(), s = l / t, { imageUri: c, base64: u } = await rl({ domElement: O.value, base64: !0, img: !0, scale: a });
|
|
599
600
|
return {
|
|
600
601
|
imageUri: c,
|
|
601
602
|
base64: u,
|
|
@@ -605,10 +606,10 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
605
606
|
aspectRatio: s
|
|
606
607
|
};
|
|
607
608
|
}
|
|
608
|
-
const ue =
|
|
609
|
+
const ue = m(() => {
|
|
609
610
|
const a = e.value.table.useDialog && !e.value.table.show, l = z.value.showTable;
|
|
610
611
|
return {
|
|
611
|
-
component: a ?
|
|
612
|
+
component: a ? ta : Zt,
|
|
612
613
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
613
614
|
props: a ? {
|
|
614
615
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -641,43 +642,58 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
641
642
|
function $t() {
|
|
642
643
|
z.value.showTable = !1, Oe.value && Oe.value.setTableIconState(!1);
|
|
643
644
|
}
|
|
644
|
-
|
|
645
|
+
const xa = m(() => e.value.style.chart.backgroundColor), ka = m(() => e.value.style.chart.legend), wa = m(() => e.value.style.chart.title), { exportSvg: La, getSvg: za } = el({
|
|
646
|
+
svg: Ee,
|
|
647
|
+
title: wa,
|
|
648
|
+
legend: ka,
|
|
649
|
+
legendItems: Ye,
|
|
650
|
+
backgroundColor: xa
|
|
651
|
+
});
|
|
652
|
+
async function Tt({ isCb: a }) {
|
|
653
|
+
if (a) {
|
|
654
|
+
const { blob: l, url: t, text: s, dataUrl: c } = await za();
|
|
655
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: t, text: s, dataUrl: c });
|
|
656
|
+
} else
|
|
657
|
+
La();
|
|
658
|
+
}
|
|
659
|
+
return Xt({
|
|
645
660
|
getData: ya,
|
|
646
|
-
getImage:
|
|
647
|
-
generatePdf:
|
|
648
|
-
generateCsv:
|
|
649
|
-
generateImage:
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
661
|
+
getImage: pa,
|
|
662
|
+
generatePdf: ht,
|
|
663
|
+
generateCsv: We,
|
|
664
|
+
generateImage: vt,
|
|
665
|
+
generateSvg: Tt,
|
|
666
|
+
toggleTable: Lt,
|
|
667
|
+
toggleLabels: zt,
|
|
668
|
+
toggleTooltip: Ct,
|
|
669
|
+
toggleAnnotator: Xe,
|
|
670
|
+
toggleFullscreen: wt
|
|
655
671
|
}), (a, l) => (r(), o("div", {
|
|
656
672
|
id: `stackbar_${M.value}`,
|
|
657
673
|
ref_key: "stackbarChart",
|
|
658
674
|
ref: O,
|
|
659
|
-
class: le({ "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": re.value }),
|
|
675
|
+
class: le({ "vue-data-ui-component": !0, "vue-ui-stackbar": !0, "vue-data-ui-wrapper-fullscreen": re.value }),
|
|
660
676
|
style: j(`background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}; position: relative; ${e.value.responsive ? "height: 100%" : ""}`),
|
|
661
|
-
onMouseenter: l[4] || (l[4] = () => v(
|
|
662
|
-
onMouseleave: l[5] || (l[5] = () => v(
|
|
677
|
+
onMouseenter: l[4] || (l[4] = () => v(rt)(!0)),
|
|
678
|
+
onMouseleave: l[5] || (l[5] = () => v(rt)(!1))
|
|
663
679
|
}, [
|
|
664
|
-
e.value.userOptions.buttons.annotator ? (r(), B(v(
|
|
680
|
+
e.value.userOptions.buttons.annotator ? (r(), B(v(Qt), {
|
|
665
681
|
key: 0,
|
|
666
|
-
svgRef: v(
|
|
682
|
+
svgRef: v(Ee),
|
|
667
683
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
668
684
|
color: e.value.style.chart.color,
|
|
669
685
|
active: ke.value,
|
|
670
|
-
onClose:
|
|
686
|
+
onClose: Xe
|
|
671
687
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
672
688
|
L(a.$slots, "userConfig", {}, void 0, !0),
|
|
673
689
|
e.value.style.chart.title.text ? (r(), o("div", {
|
|
674
690
|
key: 1,
|
|
675
691
|
ref_key: "chartTitle",
|
|
676
|
-
ref:
|
|
692
|
+
ref: Ze,
|
|
677
693
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
678
694
|
}, [
|
|
679
|
-
(r(), B(
|
|
680
|
-
key: `title_${
|
|
695
|
+
(r(), B(ol, {
|
|
696
|
+
key: `title_${tt.value}`,
|
|
681
697
|
config: {
|
|
682
698
|
title: {
|
|
683
699
|
cy: "stackbar-title",
|
|
@@ -692,19 +708,20 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
692
708
|
], 512)) : d("", !0),
|
|
693
709
|
D("div", {
|
|
694
710
|
id: `legend-top-${M.value}`
|
|
695
|
-
}, null, 8,
|
|
696
|
-
e.value.userOptions.show && ve.value && (v(
|
|
711
|
+
}, null, 8, dl),
|
|
712
|
+
e.value.userOptions.show && ve.value && (v(ot) || v(De)) ? (r(), B(v(jt), {
|
|
697
713
|
ref_key: "userOptionsRef",
|
|
698
714
|
ref: Oe,
|
|
699
|
-
key: `user_option_${
|
|
715
|
+
key: `user_option_${qe.value}`,
|
|
700
716
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
701
717
|
color: e.value.style.chart.color,
|
|
702
|
-
isPrinting: v(
|
|
703
|
-
isImaging: v(
|
|
718
|
+
isPrinting: v(ut),
|
|
719
|
+
isImaging: v(ct),
|
|
704
720
|
uid: M.value,
|
|
705
721
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
706
722
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
707
723
|
hasImg: e.value.userOptions.buttons.img,
|
|
724
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
708
725
|
hasXls: e.value.userOptions.buttons.csv,
|
|
709
726
|
hasTable: e.value.userOptions.buttons.table,
|
|
710
727
|
hasLabel: e.value.userOptions.buttons.labels,
|
|
@@ -719,18 +736,19 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
719
736
|
callbacks: e.value.userOptions.callbacks,
|
|
720
737
|
printScale: e.value.userOptions.print.scale,
|
|
721
738
|
tableDialog: e.value.table.useDialog,
|
|
722
|
-
onToggleFullscreen:
|
|
723
|
-
onGeneratePdf: v(
|
|
724
|
-
onGenerateCsv:
|
|
725
|
-
onGenerateImage: v(
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
739
|
+
onToggleFullscreen: wt,
|
|
740
|
+
onGeneratePdf: v(ht),
|
|
741
|
+
onGenerateCsv: We,
|
|
742
|
+
onGenerateImage: v(vt),
|
|
743
|
+
onGenerateSvg: Tt,
|
|
744
|
+
onToggleTable: Lt,
|
|
745
|
+
onToggleLabels: zt,
|
|
746
|
+
onToggleTooltip: Ct,
|
|
747
|
+
onToggleAnnotator: Xe,
|
|
730
748
|
style: j({
|
|
731
|
-
visibility: v(
|
|
749
|
+
visibility: v(ot) ? v(De) ? "visible" : "hidden" : "visible"
|
|
732
750
|
})
|
|
733
|
-
},
|
|
751
|
+
}, Ge({ _: 2 }, [
|
|
734
752
|
a.$slots.menuIcon ? {
|
|
735
753
|
name: "menuIcon",
|
|
736
754
|
fn: C(({ isOpen: t, color: s }) => [
|
|
@@ -794,16 +812,16 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
794
812
|
]),
|
|
795
813
|
key: "8"
|
|
796
814
|
} : void 0
|
|
797
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
815
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
798
816
|
(r(), o("svg", {
|
|
799
817
|
ref_key: "svgRef",
|
|
800
|
-
ref:
|
|
801
|
-
xmlns: v(
|
|
818
|
+
ref: Ee,
|
|
819
|
+
xmlns: v(Ba),
|
|
802
820
|
viewBox: `0 0 ${n.value.chartWidth <= 0 ? 10 : n.value.chartWidth} ${n.value.chartHeight <= 0 ? 10 : n.value.chartHeight}`,
|
|
803
821
|
class: le({ "vue-data-ui-loading": v(ne) }),
|
|
804
822
|
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
805
823
|
}, [
|
|
806
|
-
he(v(
|
|
824
|
+
he(v(ea)),
|
|
807
825
|
a.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
808
826
|
key: 0,
|
|
809
827
|
x: n.value.left,
|
|
@@ -815,9 +833,9 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
815
833
|
}
|
|
816
834
|
}, [
|
|
817
835
|
L(a.$slots, "chart-background", {}, void 0, !0)
|
|
818
|
-
], 8,
|
|
819
|
-
e.value.style.chart.bars.gradient.show ? (r(), o("defs",
|
|
820
|
-
(r(!0), o(b, null,
|
|
836
|
+
], 8, yl)) : d("", !0),
|
|
837
|
+
e.value.style.chart.bars.gradient.show ? (r(), o("defs", bl, [
|
|
838
|
+
(r(!0), o(b, null, p(w.value, (t, s) => (r(), o("linearGradient", {
|
|
821
839
|
id: `gradient_${t.id}`,
|
|
822
840
|
x1: "0%",
|
|
823
841
|
y1: "0%",
|
|
@@ -827,18 +845,18 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
827
845
|
D("stop", {
|
|
828
846
|
offset: "0%",
|
|
829
847
|
"stop-color": t.color
|
|
830
|
-
}, null, 8,
|
|
848
|
+
}, null, 8, ml),
|
|
831
849
|
D("stop", {
|
|
832
850
|
offset: "61.8%",
|
|
833
|
-
"stop-color": v(
|
|
834
|
-
}, null, 8,
|
|
851
|
+
"stop-color": v(Wa)(t.color, e.value.style.chart.bars.gradient.intensity / 100)
|
|
852
|
+
}, null, 8, pl),
|
|
835
853
|
D("stop", {
|
|
836
854
|
offset: "100%",
|
|
837
855
|
"stop-color": t.color
|
|
838
|
-
}, null, 8,
|
|
839
|
-
], 8,
|
|
856
|
+
}, null, 8, xl)
|
|
857
|
+
], 8, fl))), 256))
|
|
840
858
|
])) : d("", !0),
|
|
841
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 },
|
|
859
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 2 }, p(N.value, (t, s) => (r(), o("line", {
|
|
842
860
|
x1: n.value.left,
|
|
843
861
|
x2: n.value.right,
|
|
844
862
|
y1: t.y,
|
|
@@ -847,28 +865,28 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
847
865
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
848
866
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
849
867
|
"stroke-linecap": "round"
|
|
850
|
-
}, null, 8,
|
|
851
|
-
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 },
|
|
868
|
+
}, null, 8, kl))), 256)) : d("", !0),
|
|
869
|
+
e.value.style.chart.grid.x.showHorizontalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 3 }, p(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
852
870
|
x1: n.value.left,
|
|
853
871
|
x2: n.value.right,
|
|
854
|
-
y1: n.value.top +
|
|
855
|
-
y2: n.value.top +
|
|
872
|
+
y1: n.value.top + g.value * s,
|
|
873
|
+
y2: n.value.top + g.value * s,
|
|
856
874
|
stroke: e.value.style.chart.grid.x.linesColor,
|
|
857
875
|
"stroke-width": e.value.style.chart.grid.x.linesThickness,
|
|
858
876
|
"stroke-dasharray": e.value.style.chart.grid.x.linesStrokeDasharray,
|
|
859
877
|
"stroke-linecap": "round"
|
|
860
|
-
}, null, 8,
|
|
861
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 },
|
|
862
|
-
x1: n.value.left +
|
|
863
|
-
x2: n.value.left +
|
|
878
|
+
}, null, 8, wl))), 256)) : d("", !0),
|
|
879
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 4 }, p(h.value.end - h.value.start + 1, (t, s) => (r(), o("line", {
|
|
880
|
+
x1: n.value.left + g.value * s,
|
|
881
|
+
x2: n.value.left + g.value * s,
|
|
864
882
|
y1: n.value.top,
|
|
865
883
|
y2: n.value.bottom,
|
|
866
884
|
stroke: e.value.style.chart.grid.y.linesColor,
|
|
867
885
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
868
886
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
869
887
|
"stroke-linecap": "round"
|
|
870
|
-
}, null, 8,
|
|
871
|
-
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 },
|
|
888
|
+
}, null, 8, Ll))), 256)) : d("", !0),
|
|
889
|
+
e.value.style.chart.grid.y.showVerticalLines && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 5 }, p(N.value, (t, s) => (r(), o("line", {
|
|
872
890
|
x1: t.horizontal_x,
|
|
873
891
|
x2: t.horizontal_x,
|
|
874
892
|
y1: n.value.top,
|
|
@@ -877,68 +895,68 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
877
895
|
"stroke-width": e.value.style.chart.grid.y.linesThickness,
|
|
878
896
|
"stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
|
|
879
897
|
"stroke-linecap": "round"
|
|
880
|
-
}, null, 8,
|
|
881
|
-
(r(!0), o(b, null,
|
|
882
|
-
a.$slots.pattern ? (r(), o("defs",
|
|
898
|
+
}, null, 8, zl))), 256)) : d("", !0),
|
|
899
|
+
(r(!0), o(b, null, p(w.value, (t, s) => (r(), o("g", null, [
|
|
900
|
+
a.$slots.pattern ? (r(), o("defs", Cl, [
|
|
883
901
|
L(a.$slots, "pattern", Ce({ ref_for: !0 }, { seriesIndex: t.absoluteIndex, patternId: `pattern_${M.value}_${t.absoluteIndex}` }), void 0, !0)
|
|
884
902
|
])) : d("", !0),
|
|
885
903
|
e.value.orientation === "vertical" ? (r(), o(b, { key: 1 }, [
|
|
886
|
-
(r(!0), o(b, null,
|
|
904
|
+
(r(!0), o(b, null, p(t.x, (c, u) => (r(), o("rect", {
|
|
887
905
|
x: c,
|
|
888
906
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
889
907
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
890
908
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
891
|
-
width:
|
|
909
|
+
width: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
892
910
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
893
911
|
stroke: e.value.style.chart.backgroundColor,
|
|
894
912
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
895
913
|
"stroke-linecap": "round",
|
|
896
914
|
"stroke-linejoin": "round",
|
|
897
915
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
898
|
-
}, null, 10,
|
|
899
|
-
a.$slots.pattern ? (r(), o("g",
|
|
900
|
-
(r(!0), o(b, null,
|
|
916
|
+
}, null, 10, Sl))), 256)),
|
|
917
|
+
a.$slots.pattern ? (r(), o("g", _l, [
|
|
918
|
+
(r(!0), o(b, null, p(t.x, (c, u) => (r(), o("rect", {
|
|
901
919
|
x: c,
|
|
902
920
|
y: t.y[u] < 0 ? 0 : t.y[u],
|
|
903
921
|
height: t.height[u] < 0 ? 1e-4 : t.height[u] || 0,
|
|
904
922
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
905
|
-
width:
|
|
923
|
+
width: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
906
924
|
fill: `url(#pattern_${M.value}_${t.absoluteIndex})`,
|
|
907
925
|
stroke: e.value.style.chart.backgroundColor,
|
|
908
926
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
909
927
|
"stroke-linecap": "round",
|
|
910
928
|
"stroke-linejoin": "round",
|
|
911
929
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
912
|
-
}, null, 10,
|
|
930
|
+
}, null, 10, $l))), 256))
|
|
913
931
|
])) : d("", !0)
|
|
914
932
|
], 64)) : (r(), o(b, { key: 2 }, [
|
|
915
|
-
(r(!0), o(b, null,
|
|
933
|
+
(r(!0), o(b, null, p(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
916
934
|
x: v($e)(c, n.value.left),
|
|
917
935
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
918
936
|
width: v($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
919
937
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
920
|
-
height:
|
|
938
|
+
height: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
921
939
|
fill: e.value.style.chart.bars.gradient.show ? `url(#gradient_${t.id})` : t.color,
|
|
922
940
|
stroke: e.value.style.chart.backgroundColor,
|
|
923
941
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
924
942
|
"stroke-linecap": "round",
|
|
925
943
|
"stroke-linejoin": "round",
|
|
926
944
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
927
|
-
}, null, 10,
|
|
928
|
-
a.$slots.pattern ? (r(), o("g",
|
|
929
|
-
(r(!0), o(b, null,
|
|
945
|
+
}, null, 10, Tl))), 256)),
|
|
946
|
+
a.$slots.pattern ? (r(), o("g", Ml, [
|
|
947
|
+
(r(!0), o(b, null, p(t.horizontal_x, (c, u) => (r(), o("rect", {
|
|
930
948
|
x: v($e)(c, n.value.left),
|
|
931
949
|
y: t.horizontal_y[u] < 0 ? 0 : t.horizontal_y[u],
|
|
932
950
|
width: v($e)(t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]),
|
|
933
951
|
rx: e.value.style.chart.bars.borderRadius > t.height[u] / 2 ? (t.height[u] < 0 ? 0 : t.height[u]) / 2 : e.value.style.chart.bars.borderRadius,
|
|
934
|
-
height:
|
|
952
|
+
height: g.value * (1 - e.value.style.chart.bars.gapRatio / 2),
|
|
935
953
|
fill: `url(#pattern_${M.value}_${t.absoluteIndex})`,
|
|
936
954
|
stroke: e.value.style.chart.backgroundColor,
|
|
937
955
|
"stroke-width": e.value.style.chart.bars.strokeWidth,
|
|
938
956
|
"stroke-linecap": "round",
|
|
939
957
|
"stroke-linejoin": "round",
|
|
940
958
|
class: le({ "vue-data-ui-bar-animated": e.value.useCssAnimation, "vue-data-ui-bar-transition": X.value })
|
|
941
|
-
}, null, 10,
|
|
959
|
+
}, null, 10, Al))), 256))
|
|
942
960
|
])) : d("", !0)
|
|
943
961
|
], 64))
|
|
944
962
|
]))), 256)),
|
|
@@ -952,7 +970,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
952
970
|
"stroke-width": e.value.style.chart.grid.x.axisThickness,
|
|
953
971
|
"stroke-linecap": "round",
|
|
954
972
|
"stroke-linejoin": "round"
|
|
955
|
-
}, null, 8,
|
|
973
|
+
}, null, 8, Rl)) : d("", !0),
|
|
956
974
|
e.value.style.chart.grid.y.showAxis && !e.value.style.chart.bars.distributed ? (r(), o("line", {
|
|
957
975
|
key: 7,
|
|
958
976
|
x1: n.value.left,
|
|
@@ -963,7 +981,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
963
981
|
"stroke-width": e.value.style.chart.grid.y.axisThickness,
|
|
964
982
|
"stroke-linecap": "round",
|
|
965
983
|
"stroke-linejoin": "round"
|
|
966
|
-
}, null, 8,
|
|
984
|
+
}, null, 8, Il)) : d("", !0),
|
|
967
985
|
e.value.style.chart.grid.x.axisName.show && e.value.style.chart.grid.x.axisName.text ? (r(), o("text", {
|
|
968
986
|
key: 8,
|
|
969
987
|
ref_key: "xAxisLabel",
|
|
@@ -974,7 +992,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
974
992
|
fill: e.value.style.chart.grid.x.axisName.color,
|
|
975
993
|
"font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
|
|
976
994
|
"text-anchor": "middle"
|
|
977
|
-
}, T(e.value.style.chart.grid.x.axisName.text), 9,
|
|
995
|
+
}, T(e.value.style.chart.grid.x.axisName.text), 9, Nl)) : d("", !0),
|
|
978
996
|
e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (r(), o("text", {
|
|
979
997
|
key: 9,
|
|
980
998
|
ref_key: "yAxisLabel",
|
|
@@ -984,68 +1002,68 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
984
1002
|
fill: e.value.style.chart.grid.y.axisName.color,
|
|
985
1003
|
"font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
|
|
986
1004
|
"text-anchor": "middle"
|
|
987
|
-
}, T(e.value.style.chart.grid.y.axisName.text), 9,
|
|
1005
|
+
}, T(e.value.style.chart.grid.y.axisName.text), 9, Ol)) : d("", !0),
|
|
988
1006
|
z.value.dataLabels.show && e.value.orientation === "vertical" ? (r(), o(b, { key: 10 }, [
|
|
989
|
-
(r(!0), o(b, null,
|
|
990
|
-
(r(!0), o(b, null,
|
|
991
|
-
|
|
1007
|
+
(r(!0), o(b, null, p(w.value, (t, s) => (r(), o("g", null, [
|
|
1008
|
+
(r(!0), o(b, null, p(t.x, (c, u) => (r(), o(b, null, [
|
|
1009
|
+
_t(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
992
1010
|
key: 0,
|
|
993
|
-
x: c +
|
|
1011
|
+
x: c + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2,
|
|
994
1012
|
y: t.y[u] + t.height[u] / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
995
1013
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
996
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
1014
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Wt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
997
1015
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
998
1016
|
"text-anchor": "middle"
|
|
999
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
1017
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ft(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Pl)) : d("", !0)
|
|
1000
1018
|
], 64))), 256))
|
|
1001
1019
|
]))), 256)),
|
|
1002
1020
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
1003
1021
|
key: 0,
|
|
1004
1022
|
ref_key: "sumTop",
|
|
1005
|
-
ref:
|
|
1023
|
+
ref: oa
|
|
1006
1024
|
}, [
|
|
1007
|
-
(r(!0), o(b, null,
|
|
1025
|
+
(r(!0), o(b, null, p(bt.value, (t, s) => (r(), o(b, null, [
|
|
1008
1026
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
1009
1027
|
key: 0,
|
|
1010
|
-
x: n.value.left +
|
|
1028
|
+
x: n.value.left + g.value * s + g.value / 2,
|
|
1011
1029
|
y: e.value.style.chart.bars.totalValues.fontSize,
|
|
1012
1030
|
"text-anchor": "middle",
|
|
1013
1031
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1014
1032
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1015
1033
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1016
|
-
}, T(pe(t.value, t, s, t.sign)), 9,
|
|
1034
|
+
}, T(pe(t.value, t, s, t.sign)), 9, Vl)) : d("", !0)
|
|
1017
1035
|
], 64))), 256))
|
|
1018
1036
|
], 512)) : d("", !0)
|
|
1019
1037
|
], 64)) : d("", !0),
|
|
1020
1038
|
z.value.dataLabels.show && e.value.orientation === "horizontal" ? (r(), o(b, { key: 11 }, [
|
|
1021
|
-
(r(!0), o(b, null,
|
|
1022
|
-
(r(!0), o(b, null,
|
|
1023
|
-
|
|
1039
|
+
(r(!0), o(b, null, p(w.value, (t, s) => (r(), o("g", null, [
|
|
1040
|
+
(r(!0), o(b, null, p(t.horizontal_x, (c, u) => (r(), o(b, null, [
|
|
1041
|
+
_t(t.series[u], t.proportions[u]) ? (r(), o("text", {
|
|
1024
1042
|
key: 0,
|
|
1025
1043
|
x: c + (t.horizontal_width[u] < 0 ? 1e-4 : t.horizontal_width[u]) / 2,
|
|
1026
|
-
y: t.horizontal_y[u] +
|
|
1044
|
+
y: t.horizontal_y[u] + g.value * (1 - e.value.style.chart.bars.gapRatio / 2) / 2 + e.value.style.chart.bars.dataLabels.fontSize / 3,
|
|
1027
1045
|
"font-size": e.value.style.chart.bars.dataLabels.fontSize,
|
|
1028
|
-
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(
|
|
1046
|
+
fill: e.value.style.chart.bars.dataLabels.adaptColorToBackground ? v(Wt)(t.color) : e.value.style.chart.bars.dataLabels.color,
|
|
1029
1047
|
"font-weight": e.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
|
|
1030
1048
|
"text-anchor": "middle"
|
|
1031
|
-
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ?
|
|
1049
|
+
}, T(e.value.style.chart.bars.showDistributedPercentage && e.value.style.chart.bars.distributed ? ft(t.proportions[u] * 100, t, s, u) : pe(t.series[u], t, s, u, t.signedSeries[u])), 9, Dl)) : d("", !0)
|
|
1032
1050
|
], 64))), 256))
|
|
1033
1051
|
]))), 256)),
|
|
1034
1052
|
e.value.style.chart.bars.totalValues.show && w.value.length > 1 ? (r(), o("g", {
|
|
1035
1053
|
key: 0,
|
|
1036
1054
|
ref_key: "sumRight",
|
|
1037
|
-
ref:
|
|
1055
|
+
ref: st
|
|
1038
1056
|
}, [
|
|
1039
|
-
(r(!0), o(b, null,
|
|
1057
|
+
(r(!0), o(b, null, p(bt.value, (t, s) => (r(), o(b, null, [
|
|
1040
1058
|
!e.value.style.chart.bars.dataLabels.hideEmptyValues || t.value !== 0 ? (r(), o("text", {
|
|
1041
1059
|
key: 0,
|
|
1042
1060
|
x: n.value.right + e.value.style.chart.bars.totalValues.fontSize / 3,
|
|
1043
|
-
y: n.value.top +
|
|
1061
|
+
y: n.value.top + g.value * s + g.value / 2,
|
|
1044
1062
|
"text-anchor": "start",
|
|
1045
1063
|
"font-size": e.value.style.chart.bars.totalValues.fontSize,
|
|
1046
1064
|
"font-weight": e.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
|
|
1047
1065
|
fill: e.value.style.chart.bars.totalValues.color
|
|
1048
|
-
}, T(pe(t.value, t, s, t.sign)), 9,
|
|
1066
|
+
}, T(pe(t.value, t, s, t.sign)), 9, El)) : d("", !0)
|
|
1049
1067
|
], 64))), 256))
|
|
1050
1068
|
], 512)) : d("", !0)
|
|
1051
1069
|
], 64)) : d("", !0),
|
|
@@ -1054,15 +1072,15 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1054
1072
|
ref_key: "scaleLabels",
|
|
1055
1073
|
ref: G
|
|
1056
1074
|
}, [
|
|
1057
|
-
(r(!0), o(b, null,
|
|
1075
|
+
(r(!0), o(b, null, p(N.value, (t, s) => (r(), o("line", {
|
|
1058
1076
|
x1: n.value.left,
|
|
1059
1077
|
x2: n.value.left - 6,
|
|
1060
1078
|
y1: t.y,
|
|
1061
1079
|
y2: t.y,
|
|
1062
1080
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1063
1081
|
"stroke-width": 1
|
|
1064
|
-
}, null, 8,
|
|
1065
|
-
(r(!0), o(b, null,
|
|
1082
|
+
}, null, 8, Fl))), 256)),
|
|
1083
|
+
(r(!0), o(b, null, p(N.value, (t, s) => (r(), o("text", {
|
|
1066
1084
|
x: t.x,
|
|
1067
1085
|
y: t.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1068
1086
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
@@ -1079,14 +1097,14 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1079
1097
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1080
1098
|
}),
|
|
1081
1099
|
{ datapoint: t }
|
|
1082
|
-
)), 9,
|
|
1100
|
+
)), 9, Ul))), 256))
|
|
1083
1101
|
], 512)) : d("", !0),
|
|
1084
1102
|
e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.bars.distributed && e.value.orientation === "horizontal" ? (r(), o("g", {
|
|
1085
1103
|
key: 13,
|
|
1086
1104
|
ref_key: "scaleLabels",
|
|
1087
1105
|
ref: G
|
|
1088
1106
|
}, [
|
|
1089
|
-
(r(!0), o(b, null,
|
|
1107
|
+
(r(!0), o(b, null, p(N.value, (t, s) => (r(), o("line", {
|
|
1090
1108
|
x1: t.horizontal_x,
|
|
1091
1109
|
x2: t.horizontal_x,
|
|
1092
1110
|
y1: n.value.bottom,
|
|
@@ -1094,8 +1112,8 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1094
1112
|
stroke: e.value.style.chart.grid.x.axisColor,
|
|
1095
1113
|
"stroke-width": 1,
|
|
1096
1114
|
"stroke-linecap": "round"
|
|
1097
|
-
}, null, 8,
|
|
1098
|
-
(r(!0), o(b, null,
|
|
1115
|
+
}, null, 8, Hl))), 256)),
|
|
1116
|
+
(r(!0), o(b, null, p(N.value, (t, s) => (r(), o("text", {
|
|
1099
1117
|
class: "vue-data-ui-time-label",
|
|
1100
1118
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1101
1119
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
@@ -1112,29 +1130,29 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1112
1130
|
r: e.value.style.chart.grid.y.axisLabels.rounding
|
|
1113
1131
|
}),
|
|
1114
1132
|
{ datapoint: t }
|
|
1115
|
-
)), 9,
|
|
1133
|
+
)), 9, Bl))), 256))
|
|
1116
1134
|
], 512)) : d("", !0),
|
|
1117
1135
|
e.value.style.chart.grid.x.timeLabels.show && e.value.orientation === "vertical" ? (r(), o("g", {
|
|
1118
1136
|
key: 14,
|
|
1119
1137
|
ref_key: "timeLabelsEls",
|
|
1120
1138
|
ref: J
|
|
1121
1139
|
}, [
|
|
1122
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1123
|
-
(r(!0), o(b, null,
|
|
1140
|
+
a.$slots["time-label"] ? (r(), o("g", Wl, [
|
|
1141
|
+
(r(!0), o(b, null, p($.value, (t, s) => (r(), o("g", null, [
|
|
1124
1142
|
L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
|
|
1125
|
-
x: n.value.left +
|
|
1143
|
+
x: n.value.left + g.value * s + g.value / 2,
|
|
1126
1144
|
y: n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
|
|
1127
1145
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1128
1146
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1129
|
-
transform: `translate(${n.value.left +
|
|
1147
|
+
transform: `translate(${n.value.left + g.value * s + g.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1130
1148
|
absoluteIndex: t.absoluteIndex,
|
|
1131
1149
|
content: t.text,
|
|
1132
1150
|
textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1133
1151
|
show: !0
|
|
1134
1152
|
}), void 0, !0)
|
|
1135
1153
|
]))), 256))
|
|
1136
|
-
])) : (r(), o("g",
|
|
1137
|
-
(r(!0), o(b, null,
|
|
1154
|
+
])) : (r(), o("g", Yl, [
|
|
1155
|
+
(r(!0), o(b, null, p($.value, (t, s) => (r(), o("g", null, [
|
|
1138
1156
|
String(t.text).includes(`
|
|
1139
1157
|
`) ? (r(), o("text", {
|
|
1140
1158
|
key: s + "-multi",
|
|
@@ -1143,13 +1161,13 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1143
1161
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1144
1162
|
transform: `
|
|
1145
1163
|
translate(
|
|
1146
|
-
${n.value.left +
|
|
1164
|
+
${n.value.left + g.value * s + g.value / 2},
|
|
1147
1165
|
${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
|
|
1148
1166
|
),
|
|
1149
1167
|
rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
|
|
1150
1168
|
`,
|
|
1151
1169
|
style: { cursor: "pointer" },
|
|
1152
|
-
innerHTML: v(
|
|
1170
|
+
innerHTML: v(Ya)({
|
|
1153
1171
|
content: String(t.text),
|
|
1154
1172
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1155
1173
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
@@ -1157,17 +1175,17 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1157
1175
|
y: 0
|
|
1158
1176
|
}),
|
|
1159
1177
|
onClick: () => we(t, s)
|
|
1160
|
-
}, null, 8,
|
|
1178
|
+
}, null, 8, Gl)) : (r(), o("text", {
|
|
1161
1179
|
class: "vue-data-ui-time-label",
|
|
1162
1180
|
key: s,
|
|
1163
1181
|
"text-anchor": e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
|
|
1164
1182
|
"font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1165
1183
|
"font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
|
|
1166
1184
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1167
|
-
transform: `translate(${n.value.left +
|
|
1185
|
+
transform: `translate(${n.value.left + g.value * s + g.value / 2}, ${n.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
|
|
1168
1186
|
style: { cursor: "pointer" },
|
|
1169
1187
|
onClick: () => we(t, s)
|
|
1170
|
-
}, T(t.text), 9,
|
|
1188
|
+
}, T(t.text), 9, Xl))
|
|
1171
1189
|
]))), 256))
|
|
1172
1190
|
]))
|
|
1173
1191
|
], 512)) : d("", !0),
|
|
@@ -1176,11 +1194,11 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1176
1194
|
ref_key: "timeLabelsEls",
|
|
1177
1195
|
ref: J
|
|
1178
1196
|
}, [
|
|
1179
|
-
a.$slots["time-label"] ? (r(), o("g",
|
|
1180
|
-
(r(!0), o(b, null,
|
|
1197
|
+
a.$slots["time-label"] ? (r(), o("g", Jl, [
|
|
1198
|
+
(r(!0), o(b, null, p($.value, (t, s) => (r(), o("g", null, [
|
|
1181
1199
|
L(a.$slots, "time-label", Ce({ ref_for: !0 }, {
|
|
1182
1200
|
x: n.value.left - 8,
|
|
1183
|
-
y: n.value.top +
|
|
1201
|
+
y: n.value.top + g.value * s + g.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1184
1202
|
fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
|
|
1185
1203
|
fill: e.value.style.chart.grid.x.timeLabels.color,
|
|
1186
1204
|
transform: null,
|
|
@@ -1190,8 +1208,8 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1190
1208
|
show: !0
|
|
1191
1209
|
}), void 0, !0)
|
|
1192
1210
|
]))), 256))
|
|
1193
|
-
])) : (r(), o("g",
|
|
1194
|
-
(r(!0), o(b, null,
|
|
1211
|
+
])) : (r(), o("g", ql, [
|
|
1212
|
+
(r(!0), o(b, null, p($.value, (t, s) => (r(), o("g", null, [
|
|
1195
1213
|
String(t.text).includes(`
|
|
1196
1214
|
`) ? (r(), o("text", {
|
|
1197
1215
|
key: 1,
|
|
@@ -1200,69 +1218,69 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1200
1218
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1201
1219
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1202
1220
|
x: n.value.left - 8,
|
|
1203
|
-
y: n.value.top +
|
|
1221
|
+
y: n.value.top + g.value * s + g.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1204
1222
|
style: { cursor: "pointer" },
|
|
1205
1223
|
onClick: () => we(t, s),
|
|
1206
|
-
innerHTML: v(
|
|
1224
|
+
innerHTML: v(Xa)({
|
|
1207
1225
|
content: String(t.text),
|
|
1208
1226
|
fontSize: e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1209
1227
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1210
1228
|
x: n.value.left - 8,
|
|
1211
1229
|
y: 0
|
|
1212
1230
|
})
|
|
1213
|
-
}, null, 8,
|
|
1231
|
+
}, null, 8, Kl)) : (r(), o("text", {
|
|
1214
1232
|
key: 0,
|
|
1215
1233
|
"text-anchor": "end",
|
|
1216
1234
|
"font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
|
|
1217
1235
|
"font-weight": e.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
|
|
1218
1236
|
fill: e.value.style.chart.grid.y.axisLabels.color,
|
|
1219
1237
|
x: n.value.left - 8,
|
|
1220
|
-
y: n.value.top +
|
|
1238
|
+
y: n.value.top + g.value * s + g.value / 2 + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
|
|
1221
1239
|
style: {
|
|
1222
1240
|
cursor: "pointer"
|
|
1223
1241
|
},
|
|
1224
1242
|
onClick: () => we(t, s)
|
|
1225
|
-
}, T(t.text), 9,
|
|
1243
|
+
}, T(t.text), 9, Zl))
|
|
1226
1244
|
]))), 256))
|
|
1227
1245
|
]))
|
|
1228
1246
|
], 512)) : d("", !0),
|
|
1229
|
-
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 },
|
|
1230
|
-
x: n.value.left + s *
|
|
1247
|
+
z.value.showTooltip && e.value.orientation === "vertical" ? (r(!0), o(b, { key: 16 }, p(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1248
|
+
x: n.value.left + s * g.value,
|
|
1231
1249
|
y: n.value.top,
|
|
1232
|
-
width:
|
|
1250
|
+
width: g.value,
|
|
1233
1251
|
height: n.value.height < 0 ? 0 : n.value.height,
|
|
1234
|
-
onClick: () =>
|
|
1235
|
-
onMouseenter: () =>
|
|
1236
|
-
onMouseleave: () =>
|
|
1252
|
+
onClick: () => mt(s),
|
|
1253
|
+
onMouseenter: () => kt(s),
|
|
1254
|
+
onMouseleave: () => xt(s),
|
|
1237
1255
|
fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1238
1256
|
style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1239
|
-
}, null, 44,
|
|
1240
|
-
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 },
|
|
1257
|
+
}, null, 44, Ql))), 256)) : d("", !0),
|
|
1258
|
+
z.value.showTooltip && e.value.orientation === "horizontal" ? (r(!0), o(b, { key: 17 }, p(h.value.end - h.value.start, (t, s) => (r(), o("rect", {
|
|
1241
1259
|
x: n.value.left,
|
|
1242
|
-
y: n.value.top + s *
|
|
1260
|
+
y: n.value.top + s * g.value,
|
|
1243
1261
|
width: n.value.width < 0 ? 0 : n.value.width,
|
|
1244
|
-
height:
|
|
1245
|
-
onClick: () =>
|
|
1246
|
-
onMouseenter: () =>
|
|
1247
|
-
onMouseleave: () =>
|
|
1262
|
+
height: g.value,
|
|
1263
|
+
onClick: () => mt(s),
|
|
1264
|
+
onMouseenter: () => kt(s),
|
|
1265
|
+
onMouseleave: () => xt(s),
|
|
1248
1266
|
fill: s === de.value ? e.value.style.chart.highlighter.color : "transparent",
|
|
1249
1267
|
style: j({ opacity: e.value.style.chart.highlighter.opacity / 100 })
|
|
1250
|
-
}, null, 44,
|
|
1268
|
+
}, null, 44, jl))), 256)) : d("", !0),
|
|
1251
1269
|
L(a.$slots, "svg", W(Y({ ...n.value })), void 0, !0)
|
|
1252
|
-
], 14,
|
|
1253
|
-
a.$slots.watermark ? (r(), o("div",
|
|
1254
|
-
L(a.$slots, "watermark", W(Y({ isPrinting: v(
|
|
1270
|
+
], 14, gl)),
|
|
1271
|
+
a.$slots.watermark ? (r(), o("div", es, [
|
|
1272
|
+
L(a.$slots, "watermark", W(Y({ isPrinting: v(ut) || v(ct) })), void 0, !0)
|
|
1255
1273
|
])) : d("", !0),
|
|
1256
1274
|
D("div", {
|
|
1257
1275
|
ref_key: "chartSlicer",
|
|
1258
|
-
ref:
|
|
1276
|
+
ref: Qe,
|
|
1259
1277
|
style: j(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1260
1278
|
"data-dom-to-png-ignore": ""
|
|
1261
1279
|
}, [
|
|
1262
|
-
e.value.style.chart.zoom.show && U.value > 1 ? (r(), B(
|
|
1280
|
+
e.value.style.chart.zoom.show && U.value > 1 ? (r(), B(cl, {
|
|
1263
1281
|
ref_key: "slicerComponent",
|
|
1264
|
-
ref:
|
|
1265
|
-
key: `slicer_${
|
|
1282
|
+
ref: at,
|
|
1283
|
+
key: `slicer_${et.value}`,
|
|
1266
1284
|
background: e.value.style.chart.zoom.color,
|
|
1267
1285
|
borderColor: e.value.style.chart.backgroundColor,
|
|
1268
1286
|
fontSize: e.value.style.chart.zoom.fontSize,
|
|
@@ -1294,7 +1312,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1294
1312
|
_: 3
|
|
1295
1313
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : d("", !0)
|
|
1296
1314
|
], 4),
|
|
1297
|
-
he(v(
|
|
1315
|
+
he(v(Jt), {
|
|
1298
1316
|
show: z.value.showTooltip && Re.value,
|
|
1299
1317
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1300
1318
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -1308,7 +1326,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1308
1326
|
parent: O.value,
|
|
1309
1327
|
content: Ne.value,
|
|
1310
1328
|
isFullscreen: re.value,
|
|
1311
|
-
isCustom: v(
|
|
1329
|
+
isCustom: v(Yt)(e.value.style.chart.tooltip.customFormat),
|
|
1312
1330
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1313
1331
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1314
1332
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
@@ -1324,34 +1342,34 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1324
1342
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1325
1343
|
D("div", {
|
|
1326
1344
|
id: `legend-bottom-${M.value}`
|
|
1327
|
-
}, null, 8,
|
|
1328
|
-
|
|
1345
|
+
}, null, 8, ts),
|
|
1346
|
+
lt.value ? (r(), B(Oa, {
|
|
1329
1347
|
key: 4,
|
|
1330
1348
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${M.value}` : `#legend-bottom-${M.value}`
|
|
1331
1349
|
}, [
|
|
1332
1350
|
D("div", {
|
|
1333
1351
|
ref_key: "chartLegend",
|
|
1334
|
-
ref:
|
|
1352
|
+
ref: Ke
|
|
1335
1353
|
}, [
|
|
1336
|
-
e.value.style.chart.legend.show ? (r(), B(
|
|
1354
|
+
e.value.style.chart.legend.show ? (r(), B(ul, {
|
|
1337
1355
|
key: 0,
|
|
1338
|
-
legendSet:
|
|
1339
|
-
config:
|
|
1356
|
+
legendSet: Ye.value,
|
|
1357
|
+
config: fa.value,
|
|
1340
1358
|
onClickMarker: l[2] || (l[2] = ({ legend: t }) => t.segregate())
|
|
1341
|
-
},
|
|
1359
|
+
}, Ge({
|
|
1342
1360
|
item: C(({ legend: t }) => [
|
|
1343
1361
|
v(ne) ? d("", !0) : (r(), o("div", {
|
|
1344
1362
|
key: 0,
|
|
1345
1363
|
onClick: (s) => t.segregate(),
|
|
1346
|
-
style: j(`opacity:${
|
|
1347
|
-
}, T(t.name), 13,
|
|
1364
|
+
style: j(`opacity:${_.value.includes(t.id) ? 0.5 : 1}`)
|
|
1365
|
+
}, T(t.name), 13, as))
|
|
1348
1366
|
]),
|
|
1349
1367
|
_: 2
|
|
1350
1368
|
}, [
|
|
1351
1369
|
a.$slots.pattern ? {
|
|
1352
1370
|
name: "legend-pattern",
|
|
1353
1371
|
fn: C(({ legend: t, index: s }) => [
|
|
1354
|
-
he(
|
|
1372
|
+
he(nl, {
|
|
1355
1373
|
shape: t.shape,
|
|
1356
1374
|
radius: 30,
|
|
1357
1375
|
stroke: "none",
|
|
@@ -1363,25 +1381,25 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1363
1381
|
} : void 0
|
|
1364
1382
|
]), 1032, ["legendSet", "config"])) : L(a.$slots, "legend", {
|
|
1365
1383
|
key: 1,
|
|
1366
|
-
legend:
|
|
1384
|
+
legend: Ye.value
|
|
1367
1385
|
}, void 0, !0)
|
|
1368
1386
|
], 512)
|
|
1369
1387
|
], 8, ["to"])) : d("", !0),
|
|
1370
1388
|
a.$slots.source ? (r(), o("div", {
|
|
1371
1389
|
key: 5,
|
|
1372
1390
|
ref_key: "source",
|
|
1373
|
-
ref:
|
|
1391
|
+
ref: je,
|
|
1374
1392
|
dir: "auto"
|
|
1375
1393
|
}, [
|
|
1376
1394
|
L(a.$slots, "source", {}, void 0, !0)
|
|
1377
1395
|
], 512)) : d("", !0),
|
|
1378
|
-
ve.value && e.value.userOptions.buttons.table ? (r(), B(
|
|
1396
|
+
ve.value && e.value.userOptions.buttons.table ? (r(), B(Pa(ue.value.component), Ce({ key: 6 }, ue.value.props, {
|
|
1379
1397
|
ref_key: "tableUnit",
|
|
1380
1398
|
ref: oe,
|
|
1381
1399
|
onClose: $t
|
|
1382
|
-
}),
|
|
1400
|
+
}), Ge({
|
|
1383
1401
|
content: C(() => [
|
|
1384
|
-
he(v(
|
|
1402
|
+
he(v(Kt), {
|
|
1385
1403
|
colNames: xe.value.colNames,
|
|
1386
1404
|
head: xe.value.head,
|
|
1387
1405
|
body: xe.value.body,
|
|
@@ -1391,10 +1409,10 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1391
1409
|
onClose: $t
|
|
1392
1410
|
}, {
|
|
1393
1411
|
th: C(({ th: t }) => [
|
|
1394
|
-
D("div", { innerHTML: t }, null, 8,
|
|
1412
|
+
D("div", { innerHTML: t }, null, 8, ls)
|
|
1395
1413
|
]),
|
|
1396
1414
|
td: C(({ td: t }) => [
|
|
1397
|
-
|
|
1415
|
+
Vt(T(isNaN(Number(t)) ? t : v(ee)({
|
|
1398
1416
|
p: e.value.style.chart.bars.dataLabels.prefix,
|
|
1399
1417
|
v: t,
|
|
1400
1418
|
s: e.value.style.chart.bars.dataLabels.suffix,
|
|
@@ -1409,7 +1427,7 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1409
1427
|
e.value.table.useDialog ? {
|
|
1410
1428
|
name: "title",
|
|
1411
1429
|
fn: C(() => [
|
|
1412
|
-
|
|
1430
|
+
Vt(T(ue.value.title), 1)
|
|
1413
1431
|
]),
|
|
1414
1432
|
key: "0"
|
|
1415
1433
|
} : void 0,
|
|
@@ -1419,9 +1437,9 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1419
1437
|
D("button", {
|
|
1420
1438
|
tabindex: "0",
|
|
1421
1439
|
class: "vue-ui-user-options-button",
|
|
1422
|
-
onClick: l[3] || (l[3] = (t) =>
|
|
1440
|
+
onClick: l[3] || (l[3] = (t) => We(e.value.userOptions.callbacks.csv))
|
|
1423
1441
|
}, [
|
|
1424
|
-
he(v(
|
|
1442
|
+
he(v(qt), {
|
|
1425
1443
|
name: "excel",
|
|
1426
1444
|
stroke: ue.value.props.color
|
|
1427
1445
|
}, null, 8, ["stroke"])
|
|
@@ -1430,10 +1448,10 @@ const rl = ["id"], ol = ["id"], nl = ["xmlns", "viewBox"], il = ["x", "y", "widt
|
|
|
1430
1448
|
key: "1"
|
|
1431
1449
|
} : void 0
|
|
1432
1450
|
]), 1040)) : d("", !0),
|
|
1433
|
-
v(ne) ? (r(), B(
|
|
1434
|
-
], 46,
|
|
1451
|
+
v(ne) ? (r(), B(ja, { key: 7 })) : d("", !0)
|
|
1452
|
+
], 46, vl));
|
|
1435
1453
|
}
|
|
1436
|
-
},
|
|
1454
|
+
}, Ls = /* @__PURE__ */ hl(ss, [["__scopeId", "data-v-7beeea3c"]]);
|
|
1437
1455
|
export {
|
|
1438
|
-
|
|
1456
|
+
Ls as default
|
|
1439
1457
|
};
|