vue-data-ui 3.3.0 → 3.3.2
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-CKLBHe3L.js → Arrow-DLi6NnGD.js} +1 -1
- package/dist/{BaseDraggableDialog-q3pgSDTz.js → BaseDraggableDialog-CVGErydD.js} +2 -2
- package/dist/{BaseIcon-CtqN7W_g.js → BaseIcon-eZbszQrv.js} +1 -1
- package/dist/{ColorPicker-Cr6rUDTP.js → ColorPicker-BoPM4Ejg.js} +2 -2
- package/dist/{DataTable-BeI6gYJX.js → DataTable-yAMEyP6y.js} +2 -2
- package/dist/{Legend-DsogCeTb.js → Legend-By4rru90.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BDK_ucTG.js → NonSvgPenAndPaper-C7QqIewT.js} +3 -3
- package/dist/{PackageVersion-C9oklnuy.js → PackageVersion-r-Q1R3nV.js} +1 -1
- package/dist/{PenAndPaper-BxbYiPy4.js → PenAndPaper-Bo-lMUik.js} +3 -3
- package/dist/{Shape-DJG2zW7b.js → Shape-BceHSLHf.js} +1 -1
- package/dist/{Slicer-D6T4aUhr.js → Slicer-Znzt0gSE.js} +2 -2
- package/dist/{SparkTooltip-Cp0G9giW.js → SparkTooltip--YwqrrgZ.js} +1 -1
- package/dist/{Title-D17CJXko.js → Title-Camz1Lce.js} +1 -1
- package/dist/{Tooltip-CtVdvbZi.js → Tooltip-VOcQEHa4.js} +1 -1
- package/dist/{UserOptions-B3vCIe-u.js → UserOptions-CSja1SGU.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-BiyqJA3t.js → dom-to-png-DxyZSvDx.js} +1 -1
- package/dist/{img-6wPuVVtk.js → img-J2dLIr8Y.js} +1 -1
- package/dist/{lib-GIYcnm0E.js → lib-CEjkWSLj.js} +376 -374
- package/dist/{pdf-DjbHsnrb.js → pdf-anN8VbM7.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-Csv3pVmh.js → useAutoSizeLabelsInsideViewbox-CovTrBjm.js} +1 -1
- package/dist/{useNestedProp-mxyyqd0B.js → useNestedProp-Ce3PwN8T.js} +1 -1
- package/dist/{usePrinter-DYRFiw7X.js → usePrinter-DJ1iH-F_.js} +2 -2
- package/dist/useResizeObserverEffect-DfnWps4W.js +109 -0
- package/dist/useSvgExport-DrjCWun4.js +750 -0
- package/dist/{vue-data-ui-DLU1snC3.js → vue-data-ui-BFdGl7rL.js} +64 -64
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-D6xoBrN6.js → vue-ui-3d-bar-kzlIaqHU.js} +7 -7
- package/dist/{vue-ui-accordion-Dch9YrCi.js → vue-ui-accordion-VTP418mC.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D74mAaLA.js → vue-ui-age-pyramid-YFzQ15k1.js} +28 -35
- package/dist/{vue-ui-annotator-DwRwhrgB.js → vue-ui-annotator-CmwDyy9m.js} +7 -7
- package/dist/{vue-ui-bullet-D2qVUqWs.js → vue-ui-bullet-DdjpiM-T.js} +8 -8
- package/dist/{vue-ui-candlestick-C81k1_f9.js → vue-ui-candlestick-x9U5Ni0N.js} +31 -38
- package/dist/{vue-ui-carousel-table-DBIhnEj-.js → vue-ui-carousel-table-CRI_iPLn.js} +4 -4
- package/dist/{vue-ui-chestnut-CSM-_IWw.js → vue-ui-chestnut-YrEA5Gq3.js} +6 -6
- package/dist/{vue-ui-chord-BFW9nnNh.js → vue-ui-chord-D_2DdvpZ.js} +9 -9
- package/dist/{vue-ui-circle-pack-D6mTG5i0.js → vue-ui-circle-pack-xm9-OOAR.js} +7 -7
- package/dist/{vue-ui-cursor-BJmTAMpP.js → vue-ui-cursor-Dt8Zzw22.js} +2 -2
- package/dist/{vue-ui-dashboard-BdFLsK4u.js → vue-ui-dashboard-29ZuFoLn.js} +67 -67
- package/dist/{vue-ui-digits-DXum1rs6.js → vue-ui-digits-nKPRJ9Vz.js} +2 -2
- package/dist/{vue-ui-donut-CqefukGp.js → vue-ui-donut-BQptfVfE.js} +9 -9
- package/dist/{vue-ui-donut-evolution-DFIbK50s.js → vue-ui-donut-evolution-fiqngEFW.js} +76 -83
- package/dist/{vue-ui-dumbbell-DIo2ecGY.js → vue-ui-dumbbell-Cw45EBO0.js} +31 -38
- package/dist/{vue-ui-flow--kiGWaq4.js → vue-ui-flow-DPu9BjPy.js} +8 -8
- package/dist/{vue-ui-funnel-B8UHwj15.js → vue-ui-funnel-CtlDuNjO.js} +7 -7
- package/dist/{vue-ui-galaxy-eQZh_y3l.js → vue-ui-galaxy-BiVjoNHW.js} +8 -8
- package/dist/{vue-ui-gauge-DJ-E6L2T.js → vue-ui-gauge-CoM6Q3Nb.js} +8 -8
- package/dist/{vue-ui-gizmo-DFxlqPz7.js → vue-ui-gizmo-DXG8dS5u.js} +3 -3
- package/dist/{vue-ui-heatmap-CcAe5dDN.js → vue-ui-heatmap-D6n8AnCc.js} +194 -215
- package/dist/{vue-ui-history-plot-CgKvd7Jx.js → vue-ui-history-plot-C8WMHda_.js} +38 -45
- package/dist/{vue-ui-kpi-Ct2iyD49.js → vue-ui-kpi-Dphnwumo.js} +3 -3
- package/dist/{vue-ui-mini-loader-ByjcvXBB.js → vue-ui-mini-loader-DFk9GZ5V.js} +2 -2
- package/dist/{vue-ui-molecule-CGDBEAkX.js → vue-ui-molecule-DC4_vXt_.js} +6 -6
- package/dist/{vue-ui-mood-radar-D9GuK4cI.js → vue-ui-mood-radar-BgT5wMS0.js} +8 -8
- package/dist/{vue-ui-nested-donuts-CGKgOTX2.js → vue-ui-nested-donuts-D2gSqe1f.js} +8 -8
- package/dist/{vue-ui-onion-C5tE1Woz.js → vue-ui-onion-CEbv2ii4.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-CVhD6IoH.js → vue-ui-parallel-coordinate-plot-budrvcwU.js} +38 -45
- package/dist/{vue-ui-quadrant-BGDCaOXv.js → vue-ui-quadrant-PpymeiXe.js} +9 -9
- package/dist/{vue-ui-quick-chart-CjXSB-2S.js → vue-ui-quick-chart-k6mjTD56.js} +207 -214
- package/dist/{vue-ui-radar-rhxkROX7.js → vue-ui-radar-C5NvYMnv.js} +9 -9
- package/dist/{vue-ui-rating-Bo9gSy-z.js → vue-ui-rating-eKlTJch9.js} +2 -2
- package/dist/{vue-ui-relation-circle-Qo8FKbL2.js → vue-ui-relation-circle-Df33aaUT.js} +8 -8
- package/dist/{vue-ui-ridgeline-ahOApbEC.js → vue-ui-ridgeline-BTw-37RS.js} +38 -45
- package/dist/{vue-ui-rings-DFAVaEBs.js → vue-ui-rings-C_s9xOtZ.js} +9 -9
- package/dist/{vue-ui-scatter-zjlWyvVd.js → vue-ui-scatter-Jd8bQ0S5.js} +9 -9
- package/dist/{vue-ui-skeleton-CKfOnyd_.js → vue-ui-skeleton-Ce7H57o7.js} +3 -3
- package/dist/{vue-ui-smiley-CY7UiJ9C.js → vue-ui-smiley-C4mhT7ZV.js} +2 -2
- package/dist/{vue-ui-spark-trend-DwNYP97M.js → vue-ui-spark-trend-DQy4iSO7.js} +3 -3
- package/dist/{vue-ui-sparkbar-BkdcYrmg.js → vue-ui-sparkbar-CUFTHql0.js} +3 -3
- package/dist/{vue-ui-sparkgauge-C6Kq_OGV.js → vue-ui-sparkgauge-CcykuBps.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CjB33yXB.js → vue-ui-sparkhistogram-CyGvYpYn.js} +4 -4
- package/dist/{vue-ui-sparkline-DcH4yIEd.js → vue-ui-sparkline-CLWJM6hA.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-MKr2u_pO.js → vue-ui-sparkstackbar-Cln1pduE.js} +3 -3
- package/dist/{vue-ui-stackbar-DKV-exfd.js → vue-ui-stackbar-DIUil9DO.js} +31 -46
- package/dist/{vue-ui-strip-plot-ncTrDlNC.js → vue-ui-strip-plot-C4U0fT5D.js} +106 -113
- package/dist/{vue-ui-table-BdT3lGuv.js → vue-ui-table-DpdP3PDq.js} +5 -5
- package/dist/{vue-ui-table-heatmap-D929cWB0.js → vue-ui-table-heatmap-J29d8nds.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CkZ_ygR1.js → vue-ui-table-sparkline-Chf5YY4A.js} +4 -4
- package/dist/{vue-ui-thermometer-CjBLR6H9.js → vue-ui-thermometer-D6RmaNE6.js} +8 -8
- package/dist/{vue-ui-timer-Bs7eMmiC.js → vue-ui-timer-C5E1kJRt.js} +5 -5
- package/dist/{vue-ui-tiremarks-nGOZKRcz.js → vue-ui-tiremarks-D0erVBnj.js} +7 -7
- package/dist/{vue-ui-treemap-SQ2f5wbN.js → vue-ui-treemap-K8FYxuYz.js} +10 -10
- package/dist/{vue-ui-vertical-bar-Hh9gAN5j.js → vue-ui-vertical-bar-BA3OY8Sh.js} +10 -10
- package/dist/{vue-ui-waffle-C7moVBln.js → vue-ui-waffle-CgLgPuro.js} +9 -9
- package/dist/{vue-ui-wheel-KrGLMCqW.js → vue-ui-wheel-C_cOUhCs.js} +7 -7
- package/dist/{vue-ui-word-cloud-BQSu6kiR.js → vue-ui-word-cloud-uvHNOIpN.js} +7 -7
- package/dist/{vue-ui-world-DdoMFJcV.js → vue-ui-world-DmeNMwpX.js} +7 -7
- package/dist/{vue-ui-xy-canvas-oUXISeU8.js → vue-ui-xy-canvas-BQKR36bd.js} +10 -10
- package/dist/{vue-ui-xy-B2fjTYMJ.js → vue-ui-xy-tWE4H5ij.js} +278 -285
- package/package.json +1 -1
- package/dist/useSvgExport-B7-Vrjtu.js +0 -732
- package/dist/useTimeLabelCollider-CIsgDrl9.js +0 -78
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineAsyncComponent as L, computed as c, ref as i, toRefs as Nt, watch as q, shallowRef as Xe, onMounted as Ft, onBeforeUnmount as Ye,
|
|
2
|
-
import { c as ge, t as
|
|
3
|
-
import { t as tt, u 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 { u as
|
|
11
|
-
import
|
|
12
|
-
import { _ as il } from "./Shape-
|
|
13
|
-
import vl from "./Title-
|
|
1
|
+
import { defineAsyncComponent as L, computed as c, ref as i, toRefs as Nt, watch as q, shallowRef as Xe, onMounted as Ft, onBeforeUnmount as Ye, createElementBlock as n, openBlock as r, unref as v, normalizeStyle as J, normalizeClass as E, createBlock as O, createCommentVNode as d, createVNode as me, createSlots as je, withCtx as b, renderSlot as y, normalizeProps as F, guardReactiveProps as M, createElementVNode as m, Fragment as g, renderList as _, toDisplayString as T, mergeProps as qe, resolveDynamicComponent as Mt, createTextVNode as Je, nextTick as It } from "vue";
|
|
2
|
+
import { c as ge, t as Rt, b as Bt, p as z, o as Ke, f as xe, g as Qe, e as Wt, h as Ze, q as Et, C as Gt, d as K, X as Ht, a as ke, L as Ut, ac as Vt, m as Xt, r as Yt, z as et, D as jt, x as qt, y as Jt, A as Kt } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { t as tt, u as Qt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Zt, a as lt } from "./useNestedProp-Ce3PwN8T.js";
|
|
5
|
+
import { u as el, B as tl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as ll } from "./usePrinter-DJ1iH-F_.js";
|
|
7
|
+
import { u as al } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as sl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import { u as rl, a as ul } from "./useResizeObserverEffect-DfnWps4W.js";
|
|
11
|
+
import nl from "./img-J2dLIr8Y.js";
|
|
12
|
+
import { _ as il } from "./Shape-BceHSLHf.js";
|
|
13
|
+
import vl from "./Title-Camz1Lce.js";
|
|
14
14
|
import { t as cl } from "./themes-Dw-dDudK.js";
|
|
15
15
|
import { _ as hl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"], bl = { key: 1 }, yl = { key: 0 }, ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = { key: 1 }, xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], kl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], wl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x", "y", "fill", "font-size"], Al = ["transform", "font-size", "fill", "text-anchor"], Ll = ["transform", "font-size", "fill", "text-anchor", "innerHTML"], _l = ["fill", "font-size", "transform"], Tl = ["fill", "font-size", "x", "y"], $l = ["x1", "x2", "y1", "y2", "stroke"], Sl = ["cx", "cy", "fill"], Ol = ["cx", "cy", "fill"], zl = ["id"], Pl = ["stop-color"], Dl = ["stop-color"], Nl = ["stop-color"], Fl = { key: 0 }, Ml = ["x", "y", "font-size", "fill"], Il = {
|
|
@@ -34,14 +34,14 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectDatapoint"],
|
|
36
36
|
setup(at, { expose: ot, emit: st }) {
|
|
37
|
-
const rt = L(() => import("./Tooltip-
|
|
37
|
+
const rt = L(() => import("./Tooltip-VOcQEHa4.js")), ut = L(() => import("./BaseIcon-eZbszQrv.js")), nt = L(() => import("./vue-ui-accordion-VTP418mC.js")), it = L(() => import("./DataTable-yAMEyP6y.js")), vt = L(() => import("./UserOptions-CSja1SGU.js")), ct = L(() => import("./PenAndPaper-Bo-lMUik.js")), ht = L(() => import("./PackageVersion-r-Q1R3nV.js")), dt = L(() => import("./BaseDraggableDialog-CVGErydD.js")), { vue_ui_strip_plot: pt } = Zt(), x = at, ft = st, G = c({
|
|
38
38
|
get() {
|
|
39
39
|
return !!x.dataset && x.dataset.length;
|
|
40
40
|
},
|
|
41
41
|
set(t) {
|
|
42
42
|
return t;
|
|
43
43
|
}
|
|
44
|
-
}), Q = i(ge()), we = i(0), Z = i(!1), ee = i(""), w = i(null), Ce = i(null), Ae = i(null), Le = i(null), _e = i(!1), Te = i(0), $e = i(0), I = i(null), te = i(null), le = i(null), ae = i(null), H = i(null), oe = i(null), e = i(ve()), { loading: se, FINAL_DATASET: re, manualLoading:
|
|
44
|
+
}), Q = i(ge()), we = i(0), Z = i(!1), ee = i(""), w = i(null), Ce = i(null), Ae = i(null), Le = i(null), _e = i(!1), Te = i(0), $e = i(0), I = i(null), te = i(null), le = i(null), ae = i(null), H = i(null), oe = i(null), e = i(ve()), { loading: se, FINAL_DATASET: re, manualLoading: ue } = el({
|
|
45
45
|
...Nt(x),
|
|
46
46
|
FINAL_CONFIG: e,
|
|
47
47
|
prepareConfig: ve,
|
|
@@ -92,7 +92,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
94
|
],
|
|
95
|
-
skeletonConfig:
|
|
95
|
+
skeletonConfig: Rt({
|
|
96
96
|
defaultConfig: e.value,
|
|
97
97
|
userConfig: {
|
|
98
98
|
userOptions: { show: !1 },
|
|
@@ -131,7 +131,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
})
|
|
134
|
-
}), { userOptionsVisible:
|
|
134
|
+
}), { userOptionsVisible: ne, setUserOptionsVisibility: Se, keepUserOptionState: Oe } = ol({ config: e.value }), { svgRef: ie } = sl({ config: e.value.style.chart.title });
|
|
135
135
|
function ve() {
|
|
136
136
|
const t = lt({
|
|
137
137
|
userConfig: x.config,
|
|
@@ -142,13 +142,13 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
142
142
|
userConfig: cl.vue_ui_strip_plot[t.theme] || x.config,
|
|
143
143
|
defaultConfig: t
|
|
144
144
|
}),
|
|
145
|
-
customPalette:
|
|
145
|
+
customPalette: Bt[t.theme] || z
|
|
146
146
|
} : t;
|
|
147
147
|
}
|
|
148
148
|
q(() => x.config, async (t) => {
|
|
149
|
-
se.value || (e.value = ve()),
|
|
149
|
+
se.value || (e.value = ve()), ne.value = !e.value.userOptions.showOnChartHover, ze(), Te.value += 1, $e.value += 1, p.value.dataLabels.show = e.value.style.chart.labels.bestPlotLabel.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, D.value = e.value.style.chart.width, A.value = e.value.style.chart.height, B.value = e.value.style.chart.plots.radius;
|
|
150
150
|
}, { deep: !0 }), q(() => x.dataset, (t) => {
|
|
151
|
-
Array.isArray(t) && t.length > 0 && (
|
|
151
|
+
Array.isArray(t) && t.length > 0 && (ue.value = !1);
|
|
152
152
|
}, { deep: !0 });
|
|
153
153
|
const C = Xe(null), P = Xe(null);
|
|
154
154
|
Ft(() => {
|
|
@@ -160,7 +160,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
160
160
|
componentName: "VueUiStripPlot",
|
|
161
161
|
type: "dataset",
|
|
162
162
|
debug: ce.value
|
|
163
|
-
}),
|
|
163
|
+
}), ue.value = !0) : x.dataset.forEach((t, a) => {
|
|
164
164
|
Qe({
|
|
165
165
|
datasetObject: t,
|
|
166
166
|
requiredAttributes: ["name", "plots"]
|
|
@@ -176,26 +176,26 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
176
176
|
Qe({
|
|
177
177
|
datasetObject: l,
|
|
178
178
|
requiredAttributes: ["name", "value"]
|
|
179
|
-
}).forEach((
|
|
179
|
+
}).forEach((u) => {
|
|
180
180
|
G.value = !1, xe({
|
|
181
181
|
componentName: "VueUiStripPlot",
|
|
182
182
|
type: "datasetSerieAttribute",
|
|
183
|
-
property:
|
|
183
|
+
property: u,
|
|
184
184
|
index: `${a},${o}`,
|
|
185
185
|
debug: ce.value
|
|
186
186
|
});
|
|
187
187
|
});
|
|
188
188
|
});
|
|
189
|
-
}), Ke(x.dataset) || (
|
|
189
|
+
}), Ke(x.dataset) || (ue.value = e.value.loading), e.value.responsive) {
|
|
190
190
|
const t = tt(() => {
|
|
191
|
-
const { width: a, height: l } =
|
|
191
|
+
const { width: a, height: l } = Qt({
|
|
192
192
|
chart: w.value,
|
|
193
193
|
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
194
194
|
source: Ae.value,
|
|
195
195
|
noTitle: Le.value
|
|
196
196
|
});
|
|
197
197
|
requestAnimationFrame(() => {
|
|
198
|
-
yt.value = l, D.value = Math.max(0.1, a), A.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? B.value =
|
|
198
|
+
yt.value = l, D.value = Math.max(0.1, a), A.value = Math.max(0.1, l - 12), e.value.responsiveProportionalSizing ? B.value = jt({
|
|
199
199
|
relator: Math.min(l, a),
|
|
200
200
|
adjuster: 600,
|
|
201
201
|
source: e.value.style.chart.plots.radius,
|
|
@@ -213,11 +213,11 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
213
213
|
Ye(() => {
|
|
214
214
|
C.value && (P.value && C.value.unobserve(P.value), C.value.disconnect());
|
|
215
215
|
});
|
|
216
|
-
const { isPrinting: Pe, isImaging: De, generatePdf: Ne, generateImage: Fe } =
|
|
216
|
+
const { isPrinting: Pe, isImaging: De, generatePdf: Ne, generateImage: Fe } = ll({
|
|
217
217
|
elementId: `strip-plot_${Q.value}`,
|
|
218
218
|
fileName: e.value.style.chart.title.text || "vue-ui-strip-plot",
|
|
219
219
|
options: e.value.userOptions.print
|
|
220
|
-
}), bt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Me = c(() =>
|
|
220
|
+
}), bt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Me = c(() => Wt(e.value.customPalette)), R = i(e.value.useCssAnimation), U = i({
|
|
221
221
|
top: e.value.style.chart.padding.top,
|
|
222
222
|
bottom: e.value.style.chart.padding.bottom,
|
|
223
223
|
left: e.value.style.chart.padding.left,
|
|
@@ -241,8 +241,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
241
241
|
const he = c(() => Math.min(B.value, s.value.stripWidth / 2 * 0.9));
|
|
242
242
|
function mt() {
|
|
243
243
|
let t = 0;
|
|
244
|
-
oe.value && (t = Array.from(oe.value.querySelectorAll("text")).reduce((o,
|
|
245
|
-
const h =
|
|
244
|
+
oe.value && (t = Array.from(oe.value.querySelectorAll("text")).reduce((o, u) => {
|
|
245
|
+
const h = u.getComputedTextLength();
|
|
246
246
|
return h > o ? h : o;
|
|
247
247
|
}, 0));
|
|
248
248
|
const a = ae.value ? ae.value.getBoundingClientRect().width : 0;
|
|
@@ -251,14 +251,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
251
251
|
const de = i(0), gt = tt((t) => {
|
|
252
252
|
de.value = t;
|
|
253
253
|
}, 100);
|
|
254
|
-
|
|
255
|
-
const a = H.value;
|
|
256
|
-
if (!a) return;
|
|
257
|
-
const l = new ResizeObserver((o) => {
|
|
258
|
-
gt(o[0].contentRect.height);
|
|
259
|
-
});
|
|
260
|
-
l.observe(a), t(() => l.disconnect());
|
|
261
|
-
}), Ye(() => {
|
|
254
|
+
rl({ elementRef: H, callback: gt, attr: "height" }), Ye(() => {
|
|
262
255
|
de.value = 0;
|
|
263
256
|
});
|
|
264
257
|
const xt = c(() => {
|
|
@@ -267,11 +260,11 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
267
260
|
let a = 0;
|
|
268
261
|
return H.value && (a = de.value + 12), t + a;
|
|
269
262
|
}), s = c(() => {
|
|
270
|
-
const t = mt(), a = U.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5, l = D.value - U.value.right, o = Math.max(0, l - a),
|
|
263
|
+
const t = mt(), a = U.value.left + t + e.value.style.chart.labels.axis.yLabelOffsetX + 5, l = D.value - U.value.right, o = Math.max(0, l - a), u = U.value.top + e.value.style.chart.plots.radius + e.value.style.chart.labels.bestPlotLabel.fontSize, h = A.value - U.value.bottom - xt.value, N = Math.max(0, h - u), Ve = Array.isArray(re.value) ? re.value.length : 0, Dt = Ve > 0 ? o / Ve : 0;
|
|
271
264
|
return {
|
|
272
265
|
left: a,
|
|
273
266
|
right: l,
|
|
274
|
-
top:
|
|
267
|
+
top: u,
|
|
275
268
|
bottom: h,
|
|
276
269
|
width: o,
|
|
277
270
|
height: N,
|
|
@@ -284,16 +277,16 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
284
277
|
...t,
|
|
285
278
|
id: l,
|
|
286
279
|
color: t.color ? Ze(t.color) : Me.value[a] || z[a] || z[a % z.length],
|
|
287
|
-
plots: t.plots.map((o,
|
|
280
|
+
plots: t.plots.map((o, u) => ({
|
|
288
281
|
...o,
|
|
289
|
-
value:
|
|
282
|
+
value: Et(o.value),
|
|
290
283
|
parentId: l,
|
|
291
284
|
parentName: t.name,
|
|
292
285
|
parentIndex: a,
|
|
293
|
-
plotIndex:
|
|
286
|
+
plotIndex: u,
|
|
294
287
|
color: t.color ? Ze(t.color) : Me.value[a] || z[a] || z[a % z.length],
|
|
295
288
|
id: ge()
|
|
296
|
-
})).sort((o,
|
|
289
|
+
})).sort((o, u) => o.value - u.value)
|
|
297
290
|
};
|
|
298
291
|
})), k = c(() => (V.value || []).map((t, a) => ({
|
|
299
292
|
...t,
|
|
@@ -307,7 +300,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
307
300
|
max: Math.max(...t),
|
|
308
301
|
min: Math.min(...t)
|
|
309
302
|
};
|
|
310
|
-
}), $ = c(() =>
|
|
303
|
+
}), $ = c(() => Gt(pe.value.min < 0 ? pe.value.min : 0, pe.value.max, e.value.style.chart.grid.scaleSteps)), wt = c(() => (k.value || []).map((t, a) => ({
|
|
311
304
|
...t,
|
|
312
305
|
plots: t.plots.map((l) => ({
|
|
313
306
|
...l,
|
|
@@ -328,7 +321,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
328
321
|
function Lt({ datapoint: t, seriesIndex: a }) {
|
|
329
322
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), fe.value = { datapoint: t, seriesIndex: a, config: e.value, series: V.value }, Z.value = !0, f.value = t;
|
|
330
323
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
331
|
-
if (et(l) &&
|
|
324
|
+
if (et(l) && Kt(() => l({
|
|
332
325
|
seriesIndex: a,
|
|
333
326
|
datapoint: t,
|
|
334
327
|
series: V.value,
|
|
@@ -356,25 +349,25 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
356
349
|
}
|
|
357
350
|
}
|
|
358
351
|
const X = c(() => {
|
|
359
|
-
const t = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o,
|
|
352
|
+
const t = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, u) => u.value - o.value).map((o) => ({
|
|
360
353
|
name: `${l.name} - ${o.name}`,
|
|
361
354
|
color: o.color
|
|
362
|
-
}))), a = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o,
|
|
355
|
+
}))), a = k.value.flatMap((l) => JSON.parse(JSON.stringify(l.plots)).sort((o, u) => u.value - o.value).map((o) => o.value));
|
|
363
356
|
return { head: t, body: a };
|
|
364
357
|
});
|
|
365
358
|
function be(t = null) {
|
|
366
|
-
|
|
367
|
-
const a = X.value.head.map((
|
|
368
|
-
|
|
369
|
-
], [X.value.body[h]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(a), o =
|
|
370
|
-
t ? t(o) :
|
|
359
|
+
It(() => {
|
|
360
|
+
const a = X.value.head.map((u, h) => [[
|
|
361
|
+
u.name
|
|
362
|
+
], [X.value.body[h]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[e.value.table.columnNames.series], [e.value.table.columnNames.value]]].concat(a), o = qt(l);
|
|
363
|
+
t ? t(o) : Jt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-strip-plot" });
|
|
371
364
|
});
|
|
372
365
|
}
|
|
373
366
|
const Y = c(() => {
|
|
374
367
|
const t = [
|
|
375
368
|
e.value.table.columnNames.series,
|
|
376
369
|
e.value.table.columnNames.value
|
|
377
|
-
], a = X.value.head.map((
|
|
370
|
+
], a = X.value.head.map((u, h) => {
|
|
378
371
|
const N = K({
|
|
379
372
|
p: e.value.style.chart.labels.prefix,
|
|
380
373
|
v: X.value.body[h],
|
|
@@ -383,8 +376,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
383
376
|
});
|
|
384
377
|
return [
|
|
385
378
|
{
|
|
386
|
-
color:
|
|
387
|
-
name:
|
|
379
|
+
color: u.color,
|
|
380
|
+
name: u.name
|
|
388
381
|
},
|
|
389
382
|
N
|
|
390
383
|
];
|
|
@@ -432,9 +425,9 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
432
425
|
}
|
|
433
426
|
async function Tt({ scale: t = 2 } = {}) {
|
|
434
427
|
if (!w.value) return;
|
|
435
|
-
const { width: a, height: l } = w.value.getBoundingClientRect(), o = a / l, { imageUri:
|
|
428
|
+
const { width: a, height: l } = w.value.getBoundingClientRect(), o = a / l, { imageUri: u, base64: h } = await nl({ domElement: w.value, base64: !0, img: !0, scale: t });
|
|
436
429
|
return {
|
|
437
|
-
imageUri:
|
|
430
|
+
imageUri: u,
|
|
438
431
|
base64: h,
|
|
439
432
|
title: e.value.style.chart.title.text,
|
|
440
433
|
width: a,
|
|
@@ -443,7 +436,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
443
436
|
};
|
|
444
437
|
}
|
|
445
438
|
const Ge = c(() => k.value.map((t) => t.name)), $t = i({ start: 0, end: k.value.length });
|
|
446
|
-
|
|
439
|
+
ul({
|
|
447
440
|
timeLabelsEls: H,
|
|
448
441
|
timeLabels: Ge,
|
|
449
442
|
slicer: $t,
|
|
@@ -459,7 +452,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
459
452
|
const W = c(() => {
|
|
460
453
|
const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
|
|
461
454
|
return {
|
|
462
|
-
component: t ? dt :
|
|
455
|
+
component: t ? dt : nt,
|
|
463
456
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
464
457
|
props: t ? {
|
|
465
458
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -492,15 +485,15 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
492
485
|
function He() {
|
|
493
486
|
p.value.showTable = !1, te.value && te.value.setTableIconState(!1);
|
|
494
487
|
}
|
|
495
|
-
const St = c(() => e.value.style.chart.backgroundColor), Ot = c(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Pt } =
|
|
488
|
+
const St = c(() => e.value.style.chart.backgroundColor), Ot = c(() => e.value.style.chart.title), { exportSvg: zt, getSvg: Pt } = al({
|
|
496
489
|
svg: ie,
|
|
497
490
|
title: Ot,
|
|
498
491
|
backgroundColor: St
|
|
499
492
|
});
|
|
500
493
|
async function Ue({ isCb: t }) {
|
|
501
494
|
if (t) {
|
|
502
|
-
const { blob: a, url: l, text: o, dataUrl:
|
|
503
|
-
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl:
|
|
495
|
+
const { blob: a, url: l, text: o, dataUrl: u } = await Pt();
|
|
496
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: l, text: o, dataUrl: u });
|
|
504
497
|
} else
|
|
505
498
|
zt();
|
|
506
499
|
}
|
|
@@ -516,7 +509,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
516
509
|
toggleTooltip: Ee,
|
|
517
510
|
toggleAnnotator: ye,
|
|
518
511
|
toggleFullscreen: Re
|
|
519
|
-
}), (t, a) => (r(),
|
|
512
|
+
}), (t, a) => (r(), n("div", {
|
|
520
513
|
ref_key: "stripPlotChart",
|
|
521
514
|
ref: w,
|
|
522
515
|
class: E(`vue-data-ui-component vue-ui-strip-plot ${S.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -533,14 +526,14 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
533
526
|
active: j.value,
|
|
534
527
|
onClose: ye
|
|
535
528
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
536
|
-
bt.value ? (r(),
|
|
529
|
+
bt.value ? (r(), n("div", {
|
|
537
530
|
key: 1,
|
|
538
531
|
ref_key: "noTitle",
|
|
539
532
|
ref: Le,
|
|
540
533
|
class: "vue-data-ui-no-title-space",
|
|
541
534
|
style: "height:36px; width: 100%;background:transparent"
|
|
542
535
|
}, null, 512)) : d("", !0),
|
|
543
|
-
e.value.style.chart.title.text ? (r(),
|
|
536
|
+
e.value.style.chart.title.text ? (r(), n("div", {
|
|
544
537
|
key: 2,
|
|
545
538
|
ref_key: "chartTitle",
|
|
546
539
|
ref: Ce,
|
|
@@ -560,7 +553,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
560
553
|
}
|
|
561
554
|
}, null, 8, ["config"]))
|
|
562
555
|
], 512)) : d("", !0),
|
|
563
|
-
e.value.userOptions.show && G.value && (v(Oe) || v(
|
|
556
|
+
e.value.userOptions.show && G.value && (v(Oe) || v(ne)) ? (r(), O(v(vt), {
|
|
564
557
|
ref_key: "userOptionsRef",
|
|
565
558
|
ref: te,
|
|
566
559
|
key: `user_option_${we.value}`,
|
|
@@ -597,7 +590,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
597
590
|
onToggleTooltip: Ee,
|
|
598
591
|
onToggleAnnotator: ye,
|
|
599
592
|
style: J({
|
|
600
|
-
visibility: v(Oe) ? v(
|
|
593
|
+
visibility: v(Oe) ? v(ne) ? "visible" : "hidden" : "visible"
|
|
601
594
|
})
|
|
602
595
|
}, je({ _: 2 }, [
|
|
603
596
|
t.$slots.menuIcon ? {
|
|
@@ -664,16 +657,16 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
664
657
|
key: "8"
|
|
665
658
|
} : void 0
|
|
666
659
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
667
|
-
(r(),
|
|
660
|
+
(r(), n("svg", {
|
|
668
661
|
ref_key: "svgRef",
|
|
669
662
|
ref: ie,
|
|
670
|
-
xmlns: v(
|
|
663
|
+
xmlns: v(Ht),
|
|
671
664
|
class: E({ "vue-data-ui-fullscreen--on": S.value, "vue-data-ui-fulscreen--off": !S.value }),
|
|
672
665
|
viewBox: `0 0 ${D.value} ${A.value}`,
|
|
673
666
|
style: J(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};`)
|
|
674
667
|
}, [
|
|
675
668
|
me(v(ht)),
|
|
676
|
-
t.$slots["chart-background"] ? (r(),
|
|
669
|
+
t.$slots["chart-background"] ? (r(), n("foreignObject", {
|
|
677
670
|
key: 0,
|
|
678
671
|
x: s.value.left,
|
|
679
672
|
y: s.value.top,
|
|
@@ -685,9 +678,9 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
685
678
|
}, [
|
|
686
679
|
y(t.$slots, "chart-background", {}, void 0, !0)
|
|
687
680
|
], 8, fl)) : d("", !0),
|
|
688
|
-
e.value.style.chart.grid.show ? (r(),
|
|
689
|
-
e.value.style.chart.grid.horizontalGrid.show ? (r(),
|
|
690
|
-
(r(!0),
|
|
681
|
+
e.value.style.chart.grid.show ? (r(), n("g", bl, [
|
|
682
|
+
e.value.style.chart.grid.horizontalGrid.show ? (r(), n("g", yl, [
|
|
683
|
+
(r(!0), n(g, null, _(Ie.value, (l) => (r(), n("line", {
|
|
691
684
|
x1: l.x1,
|
|
692
685
|
x2: l.x2,
|
|
693
686
|
y1: l.y,
|
|
@@ -698,8 +691,8 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
698
691
|
"stroke-linecap": "round"
|
|
699
692
|
}, null, 8, ml))), 256))
|
|
700
693
|
])) : d("", !0),
|
|
701
|
-
e.value.style.chart.grid.verticalGrid.show ? (r(),
|
|
702
|
-
(r(!0),
|
|
694
|
+
e.value.style.chart.grid.verticalGrid.show ? (r(), n("g", gl, [
|
|
695
|
+
(r(!0), n(g, null, _(k.value, (l, o) => (r(), n("line", {
|
|
703
696
|
x1: s.value.left + (o + 1) * s.value.stripWidth,
|
|
704
697
|
x2: s.value.left + (o + 1) * s.value.stripWidth,
|
|
705
698
|
y1: s.value.top,
|
|
@@ -729,12 +722,12 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
729
722
|
"stroke-linecap": "round"
|
|
730
723
|
}, null, 8, wl)
|
|
731
724
|
])) : d("", !0),
|
|
732
|
-
e.value.style.chart.labels.yAxisLabels.show ? (r(),
|
|
725
|
+
e.value.style.chart.labels.yAxisLabels.show ? (r(), n("g", {
|
|
733
726
|
key: 2,
|
|
734
727
|
ref_key: "scaleLabels",
|
|
735
728
|
ref: oe
|
|
736
729
|
}, [
|
|
737
|
-
(r(!0),
|
|
730
|
+
(r(!0), n(g, null, _(Ie.value, (l, o) => (r(), n("text", {
|
|
738
731
|
x: l.x1 + e.value.style.chart.labels.yAxisLabels.offsetX - 5,
|
|
739
732
|
y: l.y + e.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
740
733
|
fill: e.value.style.chart.labels.yAxisLabels.color,
|
|
@@ -752,28 +745,28 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
752
745
|
{ datapoint: l, seriesIndex: o }
|
|
753
746
|
)), 9, Cl))), 256))
|
|
754
747
|
], 512)) : d("", !0),
|
|
755
|
-
e.value.style.chart.labels.xAxisLabels.show ? (r(),
|
|
748
|
+
e.value.style.chart.labels.xAxisLabels.show ? (r(), n("g", {
|
|
756
749
|
key: 3,
|
|
757
750
|
ref_key: "timeLabelsEls",
|
|
758
751
|
ref: H
|
|
759
752
|
}, [
|
|
760
|
-
(r(!0),
|
|
753
|
+
(r(!0), n(g, null, _(Ge.value, (l, o) => (r(), n("g", null, [
|
|
761
754
|
String(l).includes(`
|
|
762
|
-
`) ? (r(),
|
|
755
|
+
`) ? (r(), n("text", {
|
|
763
756
|
key: 1,
|
|
764
757
|
class: "vue-ui-strip-plot-category-name",
|
|
765
758
|
transform: `translate(${s.value.left + (o + 1) * s.value.stripWidth - s.value.stripWidth / 2}, ${s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
766
759
|
"font-size": e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
767
760
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
768
761
|
"text-anchor": e.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : e.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
769
|
-
innerHTML: v(
|
|
770
|
-
content: v(
|
|
762
|
+
innerHTML: v(Ut)({
|
|
763
|
+
content: v(Vt)(String(l)),
|
|
771
764
|
fontSize: e.value.style.chart.labels.xAxisLabels.fontSize,
|
|
772
765
|
fill: e.value.style.chart.labels.xAxisLabels.color,
|
|
773
766
|
x: 0,
|
|
774
767
|
y: 0
|
|
775
768
|
})
|
|
776
|
-
}, null, 8, Ll)) : (r(),
|
|
769
|
+
}, null, 8, Ll)) : (r(), n("text", {
|
|
777
770
|
key: 0,
|
|
778
771
|
class: "vue-ui-strip-plot-category-name",
|
|
779
772
|
transform: `translate(${s.value.left + (o + 1) * s.value.stripWidth - s.value.stripWidth / 2}, ${s.value.bottom + e.value.style.chart.labels.xAxisLabels.fontSize * 2 + e.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${e.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
@@ -783,7 +776,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
783
776
|
}, T(String(l)), 9, Al))
|
|
784
777
|
]))), 256))
|
|
785
778
|
], 512)) : d("", !0),
|
|
786
|
-
e.value.style.chart.labels.axis.yLabel ? (r(),
|
|
779
|
+
e.value.style.chart.labels.axis.yLabel ? (r(), n("text", {
|
|
787
780
|
key: 4,
|
|
788
781
|
ref_key: "yAxisLabel",
|
|
789
782
|
ref: ae,
|
|
@@ -792,7 +785,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
792
785
|
transform: `translate(${e.value.style.chart.labels.axis.fontSize}, ${s.value.top + s.value.height / 2}) rotate(-90)`,
|
|
793
786
|
"text-anchor": "middle"
|
|
794
787
|
}, T(e.value.style.chart.labels.axis.yLabel), 9, _l)) : d("", !0),
|
|
795
|
-
e.value.style.chart.labels.axis.xLabel ? (r(),
|
|
788
|
+
e.value.style.chart.labels.axis.xLabel ? (r(), n("text", {
|
|
796
789
|
key: 5,
|
|
797
790
|
ref_key: "xAxisLabel",
|
|
798
791
|
ref: le,
|
|
@@ -802,7 +795,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
802
795
|
y: A.value - e.value.style.chart.labels.axis.fontSize / 3,
|
|
803
796
|
"text-anchor": "middle"
|
|
804
797
|
}, T(e.value.style.chart.labels.axis.xLabel), 9, Tl)) : d("", !0),
|
|
805
|
-
f.value ? (r(),
|
|
798
|
+
f.value ? (r(), n(g, { key: 6 }, [
|
|
806
799
|
m("line", {
|
|
807
800
|
x1: s.value.left,
|
|
808
801
|
x2: s.value.right,
|
|
@@ -828,17 +821,17 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
828
821
|
}, null, 10, Ol)
|
|
829
822
|
], 64)) : d("", !0),
|
|
830
823
|
m("defs", null, [
|
|
831
|
-
(r(!0),
|
|
824
|
+
(r(!0), n(g, null, _(k.value, (l) => (r(), n("radialGradient", {
|
|
832
825
|
id: l.id,
|
|
833
826
|
fy: "30%"
|
|
834
827
|
}, [
|
|
835
828
|
m("stop", {
|
|
836
829
|
offset: "10%",
|
|
837
|
-
"stop-color": v(
|
|
830
|
+
"stop-color": v(Xt)(l.color, e.value.style.chart.plots.gradient.intensity / 100)
|
|
838
831
|
}, null, 8, Pl),
|
|
839
832
|
m("stop", {
|
|
840
833
|
offset: "90%",
|
|
841
|
-
"stop-color": v(
|
|
834
|
+
"stop-color": v(Yt)(l.color, 0.1)
|
|
842
835
|
}, null, 8, Dl),
|
|
843
836
|
m("stop", {
|
|
844
837
|
offset: "100%",
|
|
@@ -846,50 +839,50 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
846
839
|
}, null, 8, Nl)
|
|
847
840
|
], 8, zl))), 256))
|
|
848
841
|
]),
|
|
849
|
-
(r(!0),
|
|
850
|
-
(r(!0),
|
|
851
|
-
plot: { x:
|
|
852
|
-
radius: f.value && f.value.id ===
|
|
842
|
+
(r(!0), n(g, null, _(wt.value, (l, o) => (r(), n(g, null, [
|
|
843
|
+
(r(!0), n(g, null, _(l.plots, (u, h) => (r(), O(il, qe({ ref_for: !0 }, t.$attrs, {
|
|
844
|
+
plot: { x: u.x, y: _e.value ? u.y : s.value.top },
|
|
845
|
+
radius: f.value && f.value.id === u.id ? he.value * 1.5 : he.value,
|
|
853
846
|
shape: e.value.style.chart.plots.shape,
|
|
854
847
|
stroke: e.value.style.chart.plots.stroke,
|
|
855
848
|
strokeWidth: e.value.style.chart.plots.strokeWidth,
|
|
856
849
|
color: e.value.style.chart.plots.gradient.show ? `url(#${l.id})` : l.color,
|
|
857
|
-
style: `transition: all 0.2s ease-in-out; opacity:${f.value ? f.value.id ===
|
|
850
|
+
style: `transition: all 0.2s ease-in-out; opacity:${f.value ? f.value.id === u.id ? 1 : 0.2 : e.value.style.chart.plots.opacity};${R.value ? `transition-delay:${h * 50}ms` : ""}`,
|
|
858
851
|
class: { "vue-ui-strip-plot-animated": e.value.useCssAnimation && R.value && !v(se), "vue-ui-strip-plot-select-circle": e.value.useCssAnimation && !R.value },
|
|
859
|
-
onMouseenter: (N) => Lt({ datapoint:
|
|
860
|
-
onMouseleave: (N) => Ct({ datapoint:
|
|
861
|
-
onClick: (N) => At({ datapoint:
|
|
852
|
+
onMouseenter: (N) => Lt({ datapoint: u, seriesIndex: h }),
|
|
853
|
+
onMouseleave: (N) => Ct({ datapoint: u, seriesIndex: h }),
|
|
854
|
+
onClick: (N) => At({ datapoint: u, seriesIndex: h })
|
|
862
855
|
}), null, 16, ["plot", "radius", "shape", "stroke", "strokeWidth", "color", "style", "class", "onMouseenter", "onMouseleave", "onClick"]))), 256)),
|
|
863
|
-
p.value.dataLabels.show ? (r(),
|
|
864
|
-
(r(!0),
|
|
865
|
-
h === l.plots.length - 1 || f.value && f.value.id ===
|
|
856
|
+
p.value.dataLabels.show ? (r(), n("g", Fl, [
|
|
857
|
+
(r(!0), n(g, null, _(l.plots, (u, h) => (r(), n(g, null, [
|
|
858
|
+
h === l.plots.length - 1 || f.value && f.value.id === u.id && !p.value.showTooltip ? (r(), n("text", {
|
|
866
859
|
key: 0,
|
|
867
|
-
x:
|
|
868
|
-
y:
|
|
860
|
+
x: u.x,
|
|
861
|
+
y: u.y + e.value.style.chart.labels.bestPlotLabel.offsetY - he.value * (f.value && f.value.id === u.id && !p.value.showTooltip ? 2 : 1.5),
|
|
869
862
|
"font-size": e.value.style.chart.labels.bestPlotLabel.fontSize,
|
|
870
863
|
fill: e.value.style.chart.labels.bestPlotLabel.color,
|
|
871
864
|
"text-anchor": "middle",
|
|
872
865
|
style: J(`opacity:${e.value.useCssAnimation && R.value ? 0 : 1};transition:opacity 0.2s ease-in;`)
|
|
873
|
-
}, T(
|
|
866
|
+
}, T(u.name) + " " + T(e.value.style.chart.labels.bestPlotLabel.showValue ? v(ke)(
|
|
874
867
|
e.value.style.chart.labels.formatter,
|
|
875
|
-
|
|
868
|
+
u.value,
|
|
876
869
|
v(K)({
|
|
877
870
|
p: `(${e.value.style.chart.labels.prefix}`,
|
|
878
|
-
v:
|
|
871
|
+
v: u.value,
|
|
879
872
|
s: `${e.value.style.chart.labels.suffix})`,
|
|
880
873
|
r: e.value.style.chart.labels.bestPlotLabel.rounding
|
|
881
874
|
}),
|
|
882
|
-
{ datapoint:
|
|
875
|
+
{ datapoint: u, seriesIndex: h }
|
|
883
876
|
) : ""), 13, Ml)) : d("", !0)
|
|
884
877
|
], 64))), 256))
|
|
885
878
|
])) : d("", !0)
|
|
886
879
|
], 64))), 256)),
|
|
887
880
|
y(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
888
881
|
], 14, pl)),
|
|
889
|
-
t.$slots.watermark ? (r(),
|
|
882
|
+
t.$slots.watermark ? (r(), n("div", Il, [
|
|
890
883
|
y(t.$slots, "watermark", F(M({ isPrinting: v(Pe) || v(De) })), void 0, !0)
|
|
891
884
|
])) : d("", !0),
|
|
892
|
-
t.$slots.source ? (r(),
|
|
885
|
+
t.$slots.source ? (r(), n("div", {
|
|
893
886
|
key: 5,
|
|
894
887
|
ref_key: "source",
|
|
895
888
|
ref: Ae,
|
|
@@ -925,7 +918,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
925
918
|
]),
|
|
926
919
|
_: 3
|
|
927
920
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
928
|
-
G.value && e.value.userOptions.buttons.table ? (r(), O(
|
|
921
|
+
G.value && e.value.userOptions.buttons.table ? (r(), O(Mt(W.value.component), qe({ key: 6 }, W.value.props, {
|
|
929
922
|
ref_key: "tableUnit",
|
|
930
923
|
ref: I,
|
|
931
924
|
onClose: He
|
|
@@ -970,7 +963,7 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
970
963
|
class: "vue-ui-user-options-button",
|
|
971
964
|
onClick: a[0] || (a[0] = (l) => be(e.value.userOptions.callbacks.csv))
|
|
972
965
|
}, [
|
|
973
|
-
me(v(
|
|
966
|
+
me(v(ut), {
|
|
974
967
|
name: "excel",
|
|
975
968
|
stroke: W.value.props.color
|
|
976
969
|
}, null, 8, ["stroke"])
|
|
@@ -979,10 +972,10 @@ const dl = ["id"], pl = ["xmlns", "viewBox"], fl = ["x", "y", "width", "height"]
|
|
|
979
972
|
key: "1"
|
|
980
973
|
} : void 0
|
|
981
974
|
]), 1040)) : d("", !0),
|
|
982
|
-
v(se) ? (r(), O(
|
|
975
|
+
v(se) ? (r(), O(tl, { key: 7 })) : d("", !0)
|
|
983
976
|
], 46, dl));
|
|
984
977
|
}
|
|
985
|
-
}, ta = /* @__PURE__ */ hl(Bl, [["__scopeId", "data-v-
|
|
978
|
+
}, ta = /* @__PURE__ */ hl(Bl, [["__scopeId", "data-v-2d2bad6e"]]);
|
|
986
979
|
export {
|
|
987
980
|
ta as default
|
|
988
981
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a2 as Y, t as W, m as G, y as J, d as K, r as Z, x as q, a6 as Q, h as $, E as ee, s as E, p as te } from "./lib-
|
|
2
|
-
import { u as se } from "./useNestedProp-
|
|
3
|
-
import ne from "./vue-ui-xy-
|
|
4
|
-
import re from "./vue-ui-donut-
|
|
5
|
-
import le from "./BaseIcon-
|
|
1
|
+
import { a2 as Y, t as W, m as G, y as J, d as K, r as Z, x as q, a6 as Q, h as $, E as ee, s as E, p as te } from "./lib-CEjkWSLj.js";
|
|
2
|
+
import { u as se } from "./useNestedProp-Ce3PwN8T.js";
|
|
3
|
+
import ne from "./vue-ui-xy-tWE4H5ij.js";
|
|
4
|
+
import re from "./vue-ui-donut-BQptfVfE.js";
|
|
5
|
+
import le from "./BaseIcon-eZbszQrv.js";
|
|
6
6
|
import { resolveComponent as x, createElementBlock as u, openBlock as c, normalizeStyle as g, createCommentVNode as b, createElementVNode as a, toDisplayString as h, withDirectives as O, withKeys as L, withModifiers as S, vModelText as A, createVNode as P, Fragment as C, renderList as k, normalizeClass as p, createTextVNode as _, vModelSelect as H, createBlock as R, ref as oe, computed as ae, useCssVars as ie } from "vue";
|
|
7
7
|
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const D = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useCssVars as ae, computed as c, defineAsyncComponent as oe, ref as h, useSlots as se, onMounted as U, watch as ne, createElementBlock as r, openBlock as n, unref as i, normalizeClass as z, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as u, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
|
|
2
|
-
import { c as A, o as de, f as pe, a3 as ce, E as ve, a0 as me, x as fe, y as he } from "./lib-
|
|
3
|
-
import { u as ge, a as H } from "./useNestedProp-
|
|
4
|
-
import { u as be } from "./usePrinter-
|
|
2
|
+
import { c as A, o as de, f as pe, a3 as ce, E as ve, a0 as me, x as fe, y as he } from "./lib-CEjkWSLj.js";
|
|
3
|
+
import { u as ge, a as H } from "./useNestedProp-Ce3PwN8T.js";
|
|
4
|
+
import { u as be } from "./usePrinter-DJ1iH-F_.js";
|
|
5
5
|
import { u as ye } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { t as Ce } from "./themes-Dw-dDudK.js";
|
|
7
|
-
import { _ as ke } from "./Shape-
|
|
7
|
+
import { _ as ke } from "./Shape-BceHSLHf.js";
|
|
8
8
|
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], xe = {
|
|
10
10
|
key: 0,
|
|
@@ -46,7 +46,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
46
46
|
cea75ac0: ee.value,
|
|
47
47
|
v98a6fd0a: j.value
|
|
48
48
|
}));
|
|
49
|
-
const X = oe(() => import("./UserOptions-
|
|
49
|
+
const X = oe(() => import("./UserOptions-CSja1SGU.js")), { vue_ui_table_heatmap: W } = ge(), m = D, _ = h(A()), d = h(!1), y = h(null), I = h(!1), O = h(0), q = se();
|
|
50
50
|
U(() => {
|
|
51
51
|
q["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
52
52
|
});
|