vue-data-ui 3.9.21 → 3.10.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/README.md +76 -57
- package/dist/{BaseDraggableDialog-LQz9Nmbj.js → BaseDraggableDialog-O2XSymlZ.js} +1 -1
- package/dist/{BaseIcon-rQpZbUMg.js → BaseIcon-B9bGT7HU.js} +22 -8
- package/dist/{BaseZoomControls-8e6l8HWf.js → BaseZoomControls-B4rpv4Kk.js} +1 -1
- package/dist/{ColorPicker-C-M_3O5E.js → ColorPicker-VKEPgk58.js} +1 -1
- package/dist/{DataTable-CRLvcC19.js → DataTable-DEwh__D8.js} +15 -15
- package/dist/{NonSvgPenAndPaper-DHu-zNDR.js → NonSvgPenAndPaper-CxbOhI52.js} +2 -2
- package/dist/{PackageVersion-BiGAIrqC.js → PackageVersion-C-JOGZBL.js} +1 -1
- package/dist/{PenAndPaper-D6dHXPfu.js → PenAndPaper-CulSakut.js} +2 -2
- package/dist/{Slicer-iEpMHxAy.js → Slicer-EQH4YKwe.js} +1 -1
- package/dist/{SlicerPreview-Dfih1r3H.js → SlicerPreview-Ddfxn6es.js} +1 -1
- package/dist/{Title-B7pkWzTi.js → Title-B5L2jweB.js} +1 -1
- package/dist/UserOptions-5pXc4J-c.js +1347 -0
- 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-bump.js +5 -0
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +222 -5
- package/dist/types/vue-ui-bump.d.ts +16 -0
- package/dist/{useNestedProp-gqRzbKJy.js → useNestedProp-BCt4DMkT.js} +271 -163
- package/dist/{vue-data-ui-C0zyzSI7.js → vue-data-ui-CwfD22m4.js} +79 -77
- package/dist/vue-data-ui.js +89 -87
- package/dist/{vue-ui-3d-bar-DlUrsPdB.js → vue-ui-3d-bar-DAr11NEe.js} +3 -3
- package/dist/{vue-ui-accordion-Cy3d_0_S.js → vue-ui-accordion-CAXPDm31.js} +2 -2
- package/dist/{vue-ui-age-pyramid-CW2CmApD.js → vue-ui-age-pyramid-KApqwR11.js} +3 -3
- package/dist/{vue-ui-annotator-DgDMYDKr.js → vue-ui-annotator-D-x-F49X.js} +4 -4
- package/dist/{vue-ui-bullet-Dfz8VKqe.js → vue-ui-bullet-D3ZOexko.js} +3 -3
- package/dist/vue-ui-bump-BJUb7fNz.js +1002 -0
- package/dist/{vue-ui-candlestick-xyQGCkr8.js → vue-ui-candlestick-BBwYtV1-.js} +4 -4
- package/dist/{vue-ui-carousel-table-eqx_-juF.js → vue-ui-carousel-table-DrzQReuc.js} +2 -2
- package/dist/{vue-ui-chestnut-DQM73VJP.js → vue-ui-chestnut-ByqOYfmS.js} +2 -2
- package/dist/{vue-ui-chord-ij0fy_Vk.js → vue-ui-chord-3k3MxDxL.js} +3 -3
- package/dist/{vue-ui-circle-pack-iL6dfKsl.js → vue-ui-circle-pack-U-fW2dBh.js} +3 -3
- package/dist/{vue-ui-cursor-BwtAgyzA.js → vue-ui-cursor-PxyKLKT4.js} +2 -2
- package/dist/{vue-ui-dag-DyVpGUMm.js → vue-ui-dag-BgB4pBHg.js} +4 -4
- package/dist/{vue-ui-dashboard-Dp8tt7UQ.js → vue-ui-dashboard-Bb0qmaCv.js} +66 -66
- package/dist/{vue-ui-digits-bUDar5q1.js → vue-ui-digits-DWt_f5c-.js} +1 -1
- package/dist/{vue-ui-donut-XhYkW3YB.js → vue-ui-donut-Ce4aLPAr.js} +3 -3
- package/dist/{vue-ui-donut-evolution-BtSDnqw5.js → vue-ui-donut-evolution-Dn8sOIr-.js} +4 -4
- package/dist/{vue-ui-dumbbell-Dk9GEs9q.js → vue-ui-dumbbell-Bu8opmEM.js} +3 -3
- package/dist/{vue-ui-flow-Dmadpe5T.js → vue-ui-flow-CavJTxRY.js} +3 -3
- package/dist/{vue-ui-funnel-BGZmzIxy.js → vue-ui-funnel-CWSmOHEt.js} +3 -3
- package/dist/{vue-ui-galaxy-btCfKlLt.js → vue-ui-galaxy-CqeQVqG-.js} +3 -3
- package/dist/{vue-ui-gauge-CIq10clu.js → vue-ui-gauge-DnU9JZ0v.js} +3 -3
- package/dist/{vue-ui-geo-C72smrB2.js → vue-ui-geo-Dg8W127k.js} +4 -4
- package/dist/{vue-ui-gizmo-BCy3dErL.js → vue-ui-gizmo-BfyTXxBY.js} +2 -2
- package/dist/{vue-ui-heatmap-DX1asUT7.js → vue-ui-heatmap-D_JOEm4-.js} +4 -4
- package/dist/{vue-ui-history-plot-DFtOy7CE.js → vue-ui-history-plot-DgMc6-9X.js} +3 -3
- package/dist/{vue-ui-horizontal-bar-BpN0u8hd.js → vue-ui-horizontal-bar-BPX7YBdV.js} +8 -8
- package/dist/{vue-ui-kpi-CnmyYRvK.js → vue-ui-kpi-BqCS6onP.js} +2 -2
- package/dist/{vue-ui-mini-loader-DVEVYQd5.js → vue-ui-mini-loader-CcXuJ3iD.js} +1 -1
- package/dist/{vue-ui-molecule-CETOdJ0z.js → vue-ui-molecule-CX-pPp0u.js} +2 -2
- package/dist/{vue-ui-mood-radar-BOq7hUtX.js → vue-ui-mood-radar-3nHlZfrB.js} +3 -3
- package/dist/{vue-ui-nested-donuts-C6Popcf-.js → vue-ui-nested-donuts-cz79gQlJ.js} +3 -3
- package/dist/{vue-ui-onion-BHIySmN4.js → vue-ui-onion-yseOpPeu.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-BAAEnWGD.js → vue-ui-parallel-coordinate-plot-Dqg_vJCM.js} +3 -3
- package/dist/{vue-ui-quadrant-JvGjWc7P.js → vue-ui-quadrant-D4UDUZoN.js} +3 -3
- package/dist/{vue-ui-quick-chart-Nffw66GY.js → vue-ui-quick-chart-BMDrPkAJ.js} +3 -3
- package/dist/{vue-ui-radar-CdjuAdeB.js → vue-ui-radar-B_wSZVDb.js} +3 -3
- package/dist/{vue-ui-rating-CTN4-Xx3.js → vue-ui-rating-CBedYtOp.js} +1 -1
- package/dist/{vue-ui-relation-circle-Cb3uKDYx.js → vue-ui-relation-circle-DydZv4Pf.js} +3 -3
- package/dist/{vue-ui-ridgeline-Dgr0nyh1.js → vue-ui-ridgeline-BGerPYkY.js} +3 -3
- package/dist/{vue-ui-rings-Ctkw20nS.js → vue-ui-rings-BdYnuNS7.js} +3 -3
- package/dist/{vue-ui-scatter-BpeJpMqR.js → vue-ui-scatter-QISpPygj.js} +3 -3
- package/dist/{vue-ui-skeleton-C8-nUbeq.js → vue-ui-skeleton-CdpD_Zjk.js} +2 -2
- package/dist/{vue-ui-smiley-CxVaJpm8.js → vue-ui-smiley-CTeSlfZa.js} +1 -1
- package/dist/{vue-ui-spark-trend-BRayrIQ5.js → vue-ui-spark-trend-Jgho2QgC.js} +2 -2
- package/dist/{vue-ui-sparkbar-D5UO6Yae.js → vue-ui-sparkbar-CLqcdko6.js} +2 -2
- package/dist/{vue-ui-sparkgauge-DMvYS_KK.js → vue-ui-sparkgauge-BA3NDOhA.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-CNwDggdT.js → vue-ui-sparkhistogram-fb8hGuCn.js} +2 -2
- package/dist/{vue-ui-sparkline-Dh6mAGol.js → vue-ui-sparkline-BWdvoOYj.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-CFhUgaiz.js → vue-ui-sparkstackbar-DbbdPqIp.js} +2 -2
- package/dist/{vue-ui-stackbar-g5Sq_ZTb.js → vue-ui-stackbar-MYly9iMc.js} +5 -5
- package/dist/{vue-ui-stackline-CKwIVvUs.js → vue-ui-stackline-L0q_GsYv.js} +5 -5
- package/dist/{vue-ui-strip-plot-CvCBxxNn.js → vue-ui-strip-plot-B7W1EZdY.js} +3 -3
- package/dist/{vue-ui-table-DswHIBiJ.js → vue-ui-table-WSRRp_nE.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Crgh4Fiz.js → vue-ui-table-heatmap-Bqr4Eubg.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BJGYRzNL.js → vue-ui-table-sparkline-UhaEz2jD.js} +2 -2
- package/dist/{vue-ui-thermometer-46TB3agk.js → vue-ui-thermometer-BFwmgdMO.js} +3 -3
- package/dist/{vue-ui-timer-CgEPlDmY.js → vue-ui-timer-CoLOwKwP.js} +4 -4
- package/dist/{vue-ui-tiremarks-DZHVry9u.js → vue-ui-tiremarks-CvXOa3z4.js} +3 -3
- package/dist/{vue-ui-treemap-3_8JQzd0.js → vue-ui-treemap-C8HbMbin.js} +4 -4
- package/dist/{vue-ui-waffle-Ck_wiBzc.js → vue-ui-waffle-rS6LRZNV.js} +3 -3
- package/dist/{vue-ui-wheel-4ZZLizdv.js → vue-ui-wheel-BGle0ni9.js} +3 -3
- package/dist/{vue-ui-word-cloud-BPA2fseE.js → vue-ui-word-cloud-Dj1lJdtL.js} +4 -4
- package/dist/{vue-ui-world-K4hMlU7V.js → vue-ui-world-C7d5vM6d.js} +2 -2
- package/dist/{vue-ui-xy-cHQ3KQCE.js → vue-ui-xy-De-FDHwh.js} +5 -5
- package/dist/{vue-ui-xy-canvas-Qeg6DtP0.js → vue-ui-xy-canvas-CoBMpLeE.js} +6 -6
- package/package.json +1 -1
- package/dist/UserOptions-BlWCqtbi.js +0 -649
|
@@ -0,0 +1,1002 @@
|
|
|
1
|
+
import { defineAsyncComponent as F, computed as y, ref as d, toRefs as Rt, onMounted as Nt, watch as Z, shallowRef as Re, onBeforeUnmount as Ne, watchEffect as Vt, createElementBlock as c, openBlock as u, normalizeStyle as L, normalizeClass as Ve, createBlock as N, createCommentVNode as g, renderSlot as b, unref as h, withCtx as p, normalizeProps as x, guardReactiveProps as $, createSlots as We, createVNode as ye, Fragment as k, renderList as S, createElementVNode as ee, toDisplayString as V, mergeProps as be, resolveDynamicComponent as Wt, createTextVNode as Ue } from "vue";
|
|
2
|
+
import { c as Xe, t as Ut, i as Xt, j as te, k as jt, o as je, g as Ye, l as Yt, m as Ge, a as Gt, d as qt, x as qe, E as W, A as Jt, C as Kt, S as Qt, X as Zt, $ as me, v as el, r as tl } from "./lib-2iaAPQ_c.js";
|
|
3
|
+
import { t as Je, u as ll } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as al, a as pe } from "./useNestedProp-BCt4DMkT.js";
|
|
5
|
+
import { u as ol, B as nl } from "./BaseScanner-BMpwQAfz.js";
|
|
6
|
+
import { u as sl } from "./usePrinter-ChVMpU2f.js";
|
|
7
|
+
import { u as ul } from "./useThemeCheck-DGJ31Vi5.js";
|
|
8
|
+
import { u as rl } from "./useTimeLabels-DKoynYae.js";
|
|
9
|
+
import { u as il } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as cl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import { u as vl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
12
|
+
import hl from "./Title-B5L2jweB.js";
|
|
13
|
+
import dl from "./BaseDraggableDialog-O2XSymlZ.js";
|
|
14
|
+
import { u as fl } from "./useSvgExport-ByUukOZt.js";
|
|
15
|
+
import { _ as yl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const Ke = { table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { lines: { coatingColor: "#1A1A1A" }, nameLabels: { color: "#CCCCCC" }, plots: { stroke: "#1A1A1A" }, timeLabels: { color: "#CCCCCC" } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } } }, Qe = { table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } }, style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { lines: { coatingColor: "#FFF8E1" }, nameLabels: { color: "#424242" }, plots: { stroke: "#FFF8E1" }, timeLabels: { color: "#424242" } }, title: { color: "#424242", subtitle: { color: "#757575" } } } } }, Ze = { table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } }, style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { lines: { coatingColor: "#1E1E1E" }, nameLabels: { color: "#BDBDBD" }, plots: { stroke: "#1E1E1E" }, timeLabels: { color: "#BDBDBD" } }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } } }, et = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { lines: { coatingColor: "#1A1A1A" }, nameLabels: { color: "#99AA99" }, plots: { stroke: "#1A1A1A" }, timeLabels: { color: "#99AA99" } }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } } }, tt = { table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } }, style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { lines: { coatingColor: "#fbfafa" }, nameLabels: { color: "#8A9892" }, plots: { stroke: "#fbfafa" }, timeLabels: { color: "#8A9892" } }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } } }, lt = { table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } }, style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { lines: { coatingColor: "#f6f6fb" }, nameLabels: { color: "#50606C" }, plots: { stroke: "#f6f6fb" }, timeLabels: { color: "#50606C" } }, title: { color: "#50606C", subtitle: { color: "#718890" } } } } }, at = {
|
|
17
|
+
default: {},
|
|
18
|
+
dark: Ke,
|
|
19
|
+
celebration: Qe,
|
|
20
|
+
celebrationNight: Ze,
|
|
21
|
+
hack: et,
|
|
22
|
+
zen: tt,
|
|
23
|
+
concrete: lt
|
|
24
|
+
}, Jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
celebration: Qe,
|
|
27
|
+
celebrationNight: Ze,
|
|
28
|
+
concrete: lt,
|
|
29
|
+
dark: Ke,
|
|
30
|
+
default: at,
|
|
31
|
+
hack: et,
|
|
32
|
+
zen: tt
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), bl = ["id"], ml = ["xmlns", "viewBox"], pl = ["x", "y", "width", "height"], gl = ["d", "stroke", "stroke-width", "onMouseenter"], Cl = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Al = ["x", "y", "fill", "font-size"], Ll = ["onMouseenter", "onMouseleave", "onClick"], wl = ["x", "y", "fill", "font-size"], xl = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], $l = ["x", "y", "fill", "font-size", "font--weight", "innerHTML", "onMouseenter", "onMouseleave", "onClick"], Sl = { key: 0 }, Tl = { key: 1 }, Ml = ["text-anchor", "font-size", "font-weight", "fill", "transform"], zl = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], El = {
|
|
34
|
+
key: 4,
|
|
35
|
+
class: "vue-data-ui-watermark"
|
|
36
|
+
}, Dl = ["innerHTML"], Il = {
|
|
37
|
+
__name: "vue-ui-bump",
|
|
38
|
+
props: {
|
|
39
|
+
config: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default() {
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
dataset: {
|
|
46
|
+
type: Array,
|
|
47
|
+
default() {
|
|
48
|
+
return [];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
setup(ot, { expose: nt }) {
|
|
53
|
+
const st = F(() => import("./BaseIcon-B9bGT7HU.js")), ut = F(() => import("./vue-ui-accordion-CAXPDm31.js")), rt = F(() => import("./DataTable-DEwh__D8.js")), it = F(() => import("./PenAndPaper-CulSakut.js")), ct = F(() => import("./UserOptions-5pXc4J-c.js")), vt = F(() => import("./PackageVersion-C-JOGZBL.js")), { vue_ui_bump: ht } = al(), { isThemeValid: dt, warnInvalidTheme: ft } = ul(), A = ot, U = y({
|
|
54
|
+
get() {
|
|
55
|
+
return !!A.dataset && A.dataset.length;
|
|
56
|
+
},
|
|
57
|
+
set(l) {
|
|
58
|
+
return l;
|
|
59
|
+
}
|
|
60
|
+
}), T = d(null), le = d(Xe()), ge = d(0), Ce = d(null), ke = d(null), Ae = d(null), X = d(!1), ae = d(!1), Le = d(0), yt = d(0), _ = d(null), oe = d(null), we = d(!1), ne = d(null), se = d(null), j = d(null), f = d(null), e = d(ue()), { loading: Y, FINAL_DATASET: bt, manualLoading: G } = ol({
|
|
61
|
+
...Rt(A),
|
|
62
|
+
FINAL_CONFIG: e,
|
|
63
|
+
prepareConfig: ue,
|
|
64
|
+
skeletonDataset: [
|
|
65
|
+
{ name: "————", values: [1, 1, 1, 2, 2, 2, 3, 3, 2, 2], color: "#4A4A4A" },
|
|
66
|
+
{ name: "————", values: [2, 2, 2, 1, 3, 3, 2, 2, 3, 3], color: "#6A6A6A" },
|
|
67
|
+
{ name: "————", values: [3, 3, 3, 3, 1, 1, 1, 1, 1, 1], color: "#8A8A8A" }
|
|
68
|
+
],
|
|
69
|
+
skeletonConfig: Ut({
|
|
70
|
+
defaultConfig: e.value,
|
|
71
|
+
userConfig: {
|
|
72
|
+
userOptions: { show: !1 },
|
|
73
|
+
style: {
|
|
74
|
+
chart: {
|
|
75
|
+
backgroundColor: "#99999930",
|
|
76
|
+
layout: {
|
|
77
|
+
timeLabels: { show: !1 },
|
|
78
|
+
lines: {
|
|
79
|
+
coatingColor: "#4A4A4A"
|
|
80
|
+
},
|
|
81
|
+
plots: {
|
|
82
|
+
stroke: "#4A4A4A",
|
|
83
|
+
labels: {
|
|
84
|
+
show: !1,
|
|
85
|
+
displayedValue: "rank"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
nameLabels: {
|
|
89
|
+
useSerieColor: !0
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
Nt(Ie);
|
|
98
|
+
function ue() {
|
|
99
|
+
const l = pe({
|
|
100
|
+
userConfig: A.config,
|
|
101
|
+
defaultConfig: ht
|
|
102
|
+
});
|
|
103
|
+
let a = {};
|
|
104
|
+
const t = l.theme;
|
|
105
|
+
if (t)
|
|
106
|
+
if (!dt.value(l))
|
|
107
|
+
ft(l), a = l;
|
|
108
|
+
else {
|
|
109
|
+
const o = pe({
|
|
110
|
+
userConfig: at[t] || A.config,
|
|
111
|
+
defaultConfig: l
|
|
112
|
+
});
|
|
113
|
+
a = {
|
|
114
|
+
...pe({
|
|
115
|
+
userConfig: A.config,
|
|
116
|
+
defaultConfig: o
|
|
117
|
+
}),
|
|
118
|
+
customPalette: l.customPalette.length ? l.customPalette : Xt[t] || te
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
else
|
|
122
|
+
a = l;
|
|
123
|
+
return a;
|
|
124
|
+
}
|
|
125
|
+
const { userOptionsVisible: re, setUserOptionsVisibility: xe, keepUserOptionState: $e } = il({ config: e.value }), { svgRef: ie } = cl({ config: e.value.style.chart.title });
|
|
126
|
+
function mt() {
|
|
127
|
+
we.value = !0, xe(!0);
|
|
128
|
+
}
|
|
129
|
+
function pt() {
|
|
130
|
+
xe(!1), we.value = !1;
|
|
131
|
+
}
|
|
132
|
+
const E = d({
|
|
133
|
+
showTable: e.value.table.show
|
|
134
|
+
});
|
|
135
|
+
Z(e, () => {
|
|
136
|
+
E.value = {
|
|
137
|
+
showTable: e.value.table.show
|
|
138
|
+
};
|
|
139
|
+
}, { immediate: !0 }), Z(() => A.config, (l) => {
|
|
140
|
+
Y.value || (e.value = ue()), re.value = !e.value.userOptions.showOnChartHover, Ie(), Le.value += 1, yt.value += 1, E.value.showTable = e.value.table.show, w.value.width = e.value.style.chart.width, w.value.height = e.value.style.chart.height, w.value.paddingRatio = {
|
|
141
|
+
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
142
|
+
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
143
|
+
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
144
|
+
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
145
|
+
};
|
|
146
|
+
}), Z(() => A.dataset, (l) => {
|
|
147
|
+
Array.isArray(l) && l.length > 0 && (G.value = !1);
|
|
148
|
+
}, { deep: !0 });
|
|
149
|
+
const { isPrinting: Se, isImaging: Te, generatePdf: Me, generateImage: ze } = sl({
|
|
150
|
+
elementId: `bump_${le.value}`,
|
|
151
|
+
fileName: e.value.style.chart.title.text || "vue-ui-bump",
|
|
152
|
+
options: e.value.userOptions.print
|
|
153
|
+
}), gt = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), w = d({
|
|
154
|
+
width: e.value.style.chart.width,
|
|
155
|
+
height: e.value.style.chart.height,
|
|
156
|
+
paddingRatio: {
|
|
157
|
+
top: e.value.style.chart.padding.top / e.value.style.chart.height,
|
|
158
|
+
right: e.value.style.chart.padding.right / e.value.style.chart.width,
|
|
159
|
+
bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
|
|
160
|
+
left: e.value.style.chart.padding.left / e.value.style.chart.width
|
|
161
|
+
}
|
|
162
|
+
}), Ct = y(() => jt(e.value.customPalette)), M = Re(null), O = Re(null), Ee = d(null), De = y(() => !!e.value.debug);
|
|
163
|
+
function Ie() {
|
|
164
|
+
if (je(A.dataset) ? (Ye({
|
|
165
|
+
componentName: "VueUiBump",
|
|
166
|
+
type: "dataset",
|
|
167
|
+
debug: De.value
|
|
168
|
+
}), G.value = !0) : A.dataset.forEach((l, a) => {
|
|
169
|
+
Yt({
|
|
170
|
+
datasetObject: l,
|
|
171
|
+
requiredAttributes: ["name", "values"]
|
|
172
|
+
}).forEach((t) => {
|
|
173
|
+
U.value = !1, Ye({
|
|
174
|
+
componentName: "VueUiBump",
|
|
175
|
+
type: "datasetSerieAttribute",
|
|
176
|
+
property: t,
|
|
177
|
+
index: a,
|
|
178
|
+
debug: De.value
|
|
179
|
+
}), G.value = !0;
|
|
180
|
+
});
|
|
181
|
+
}), je(A.dataset) || (G.value = e.value.loading), setTimeout(() => {
|
|
182
|
+
ae.value = !0;
|
|
183
|
+
}, 10), e.value.responsive) {
|
|
184
|
+
const l = Je(() => {
|
|
185
|
+
ae.value = !1;
|
|
186
|
+
const { width: a, height: t } = ll({
|
|
187
|
+
chart: T.value,
|
|
188
|
+
noTitle: ke.value,
|
|
189
|
+
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
190
|
+
legend: null,
|
|
191
|
+
slicer: null,
|
|
192
|
+
source: Ae.value
|
|
193
|
+
});
|
|
194
|
+
requestAnimationFrame(() => {
|
|
195
|
+
w.value.width = a, w.value.height = t - 12, clearTimeout(Ee.value), Ee.value = setTimeout(() => {
|
|
196
|
+
ae.value = !0;
|
|
197
|
+
}, 10);
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
M.value && (O.value && M.value.unobserve(O.value), M.value.disconnect()), M.value = new ResizeObserver(l), O.value = T.value.parentNode, M.value.observe(O.value);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
Ne(() => {
|
|
204
|
+
M.value && (O.value && M.value.unobserve(O.value), M.value.disconnect());
|
|
205
|
+
});
|
|
206
|
+
const q = y(() => bt.value.map((l, a) => {
|
|
207
|
+
const t = Ge(l.color) || Ct.value[a] || te[a] || te[a % te.length];
|
|
208
|
+
return {
|
|
209
|
+
...l,
|
|
210
|
+
absoluteIndex: a,
|
|
211
|
+
id: Xe(),
|
|
212
|
+
color: t
|
|
213
|
+
};
|
|
214
|
+
})), D = y(() => Math.max(...q.value.map((l) => l.values.length)));
|
|
215
|
+
function kt(l) {
|
|
216
|
+
const a = l.map(() => Array(D.value).fill(null));
|
|
217
|
+
for (let t = 0; t < D.value; t += 1) {
|
|
218
|
+
const o = l.map((n, i) => ({
|
|
219
|
+
seriesIndex: i,
|
|
220
|
+
value: n.values?.[t],
|
|
221
|
+
previousPosition: t > 0 ? a[i][t - 1] : i
|
|
222
|
+
})).filter((n) => Number.isFinite(n.value));
|
|
223
|
+
o.sort((n, i) => i.value !== n.value ? i.value - n.value : n.previousPosition - i.previousPosition);
|
|
224
|
+
for (let n = 0; n < o.length; n += 1) {
|
|
225
|
+
const i = o[n];
|
|
226
|
+
a[i.seriesIndex][t] = n;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return a;
|
|
230
|
+
}
|
|
231
|
+
function At() {
|
|
232
|
+
let l = 0;
|
|
233
|
+
return ne.value && (l = Array.from(ne.value.querySelectorAll("tspan")).reduce((t, o) => {
|
|
234
|
+
const n = o.getComputedTextLength();
|
|
235
|
+
return n > t ? n : t;
|
|
236
|
+
}, 0)), l;
|
|
237
|
+
}
|
|
238
|
+
function Lt() {
|
|
239
|
+
let l = 0;
|
|
240
|
+
return se.value && (l = Array.from(se.value.querySelectorAll("tspan")).reduce((t, o) => {
|
|
241
|
+
const n = o.getComputedTextLength();
|
|
242
|
+
return n > t ? n : t;
|
|
243
|
+
}, 0)), l;
|
|
244
|
+
}
|
|
245
|
+
const ce = d(0), wt = Je((l) => {
|
|
246
|
+
ce.value = l;
|
|
247
|
+
}, 100);
|
|
248
|
+
Vt((l) => {
|
|
249
|
+
const a = j.value;
|
|
250
|
+
if (!a) return;
|
|
251
|
+
const t = new ResizeObserver((o) => {
|
|
252
|
+
wt(o[0].contentRect.height);
|
|
253
|
+
});
|
|
254
|
+
t.observe(a), l(() => t.disconnect());
|
|
255
|
+
}), Ne(() => {
|
|
256
|
+
ce.value = 0;
|
|
257
|
+
});
|
|
258
|
+
const xt = y(() => {
|
|
259
|
+
let l = 0;
|
|
260
|
+
return j.value && (l = ce.value), l;
|
|
261
|
+
}), s = y(() => {
|
|
262
|
+
const { height: l, width: a } = w.value, { right: t, left: o } = w.value.paddingRatio;
|
|
263
|
+
let n = At(), i = Lt();
|
|
264
|
+
const r = e.value.style.chart.padding.top, v = a - a * t - i, m = a * o + n, C = a - a * t - a * o - n - i, P = l - r - e.value.style.chart.padding.bottom - xt.value, fe = r + P, _t = r + P, Bt = Math.max(0, l), Ht = Math.max(0, a);
|
|
265
|
+
return {
|
|
266
|
+
chartHeight: _t,
|
|
267
|
+
chartWidth: Ht,
|
|
268
|
+
top: r,
|
|
269
|
+
right: Math.max(0, v),
|
|
270
|
+
bottom: Math.max(0, fe),
|
|
271
|
+
left: Math.max(0, m),
|
|
272
|
+
width: Math.max(0, C),
|
|
273
|
+
height: Math.max(0, P),
|
|
274
|
+
unitH: Math.max(0, P) / q.value.length,
|
|
275
|
+
unitW: Math.max(0, C) / D.value,
|
|
276
|
+
svgHeight: Bt
|
|
277
|
+
};
|
|
278
|
+
}), z = y(() => {
|
|
279
|
+
if (!U.value && !Y.value) return [];
|
|
280
|
+
const l = kt(q.value);
|
|
281
|
+
return q.value.map((a, t) => ({
|
|
282
|
+
...a,
|
|
283
|
+
positions: l[t]
|
|
284
|
+
})).map((a) => {
|
|
285
|
+
const t = a.positions.map((i, r) => {
|
|
286
|
+
const v = Gt(
|
|
287
|
+
e.value.style.chart.layout.plots.labels.formatter,
|
|
288
|
+
a.values[r],
|
|
289
|
+
qt({
|
|
290
|
+
p: e.value.style.chart.layout.plots.labels.prefix,
|
|
291
|
+
v: a.values[r],
|
|
292
|
+
s: e.value.style.chart.layout.plots.labels.suffix,
|
|
293
|
+
r: e.value.style.chart.layout.plots.labels.rounding
|
|
294
|
+
})
|
|
295
|
+
);
|
|
296
|
+
return {
|
|
297
|
+
name: a.name,
|
|
298
|
+
id: a.id,
|
|
299
|
+
x: s.value.left + r * s.value.unitW + s.value.unitW / 2,
|
|
300
|
+
y: s.value.top + i * s.value.unitH + s.value.unitH / 2,
|
|
301
|
+
value: a.values[r],
|
|
302
|
+
displayValue: v,
|
|
303
|
+
rank: a.positions[r] + 1,
|
|
304
|
+
color: a.color,
|
|
305
|
+
labelColor: e.value.style.chart.layout.plots.labels.color === "auto" ? qe(a.color) : Ge(e.value.style.chart.layout.plots.labels.color) ?? qe(a.color)
|
|
306
|
+
};
|
|
307
|
+
}), o = t.filter((i) => W(i.value)), n = e.value.style.chart.layout.lines.smooth ? Jt(o) : Kt(o);
|
|
308
|
+
return {
|
|
309
|
+
...a,
|
|
310
|
+
coordinates: t,
|
|
311
|
+
path: n
|
|
312
|
+
};
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
function Oe(l, a, t, o) {
|
|
316
|
+
const n = l.toSorted((r, v) => r.y - v.y);
|
|
317
|
+
for (let r = 1; r < n.length; r += 1) {
|
|
318
|
+
const v = n[r - 1], m = n[r];
|
|
319
|
+
m.y < v.y + a && (m.y = v.y + a);
|
|
320
|
+
}
|
|
321
|
+
const i = n.length - 1;
|
|
322
|
+
if (i >= 0 && n[i].y > o) {
|
|
323
|
+
n[i].y = o;
|
|
324
|
+
for (let r = i - 1; r >= 0; r -= 1) {
|
|
325
|
+
const v = n[r + 1], m = n[r];
|
|
326
|
+
m.y > v.y - a && (m.y = v.y - a);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
if (n.length && n[0].y < t) {
|
|
330
|
+
const r = t - n[0].y;
|
|
331
|
+
for (let v = 0; v < n.length; v += 1)
|
|
332
|
+
n[v].y += r;
|
|
333
|
+
}
|
|
334
|
+
return n;
|
|
335
|
+
}
|
|
336
|
+
const Pe = y(() => {
|
|
337
|
+
const l = [], a = [];
|
|
338
|
+
z.value.forEach((m) => {
|
|
339
|
+
const C = m.coordinates.filter((fe) => Number.isFinite(fe.rank));
|
|
340
|
+
if (!C.length) return;
|
|
341
|
+
l.push({ ...C[0] });
|
|
342
|
+
const P = C[C.length - 1];
|
|
343
|
+
a.push({ ...P });
|
|
344
|
+
});
|
|
345
|
+
const t = e.value.style.chart.layout.nameLabels.fontSize, o = t * 1.4, n = s.value.top + t, i = s.value.bottom - t, r = Oe(
|
|
346
|
+
a,
|
|
347
|
+
o,
|
|
348
|
+
n,
|
|
349
|
+
i
|
|
350
|
+
);
|
|
351
|
+
return {
|
|
352
|
+
left: Oe(
|
|
353
|
+
l,
|
|
354
|
+
o,
|
|
355
|
+
n,
|
|
356
|
+
i
|
|
357
|
+
),
|
|
358
|
+
right: r
|
|
359
|
+
};
|
|
360
|
+
});
|
|
361
|
+
function $t(l) {
|
|
362
|
+
const a = e.value.style.chart.layout.plots.labels.fontSize * 0.4, t = l.displayValue, o = t.length * (e.value.style.chart.layout.plots.labels.fontSize * (t.length === 1 ? 1 : 0.6)), n = e.value.style.chart.layout.plots.labels.fontSize, i = o + a * 2, r = n + a * 2, v = l.x - i / 2, m = l.y - r / 2, C = e.value.style.chart.layout.plots.strokeWidth;
|
|
363
|
+
return {
|
|
364
|
+
x: v - C / 2,
|
|
365
|
+
y: m - C / 2,
|
|
366
|
+
width: i + C,
|
|
367
|
+
height: r + C,
|
|
368
|
+
fill: l.color,
|
|
369
|
+
stroke: e.value.style.chart.layout.plots.stroke,
|
|
370
|
+
"stroke-width": C,
|
|
371
|
+
rx: r / 2
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
const B = y(() => rl({
|
|
375
|
+
values: e.value.style.chart.layout.timeLabels.values,
|
|
376
|
+
maxDatapoints: D.value,
|
|
377
|
+
formatter: e.value.style.chart.layout.timeLabels.datetimeFormatter,
|
|
378
|
+
start: 0,
|
|
379
|
+
end: D.value
|
|
380
|
+
})), St = y(() => {
|
|
381
|
+
const l = e.value.style.chart.layout.timeLabels.modulo;
|
|
382
|
+
return B.value.length ? Math.min(l, [...new Set(B.value.map((a) => a.text))].length) : l;
|
|
383
|
+
}), J = y(() => {
|
|
384
|
+
const l = e.value.style.chart.layout.timeLabels, a = B.value || [], t = B.value || [], o = 0, n = null, i = D.value, r = a.map((m) => m?.text ?? ""), v = t.map((m) => m?.text ?? "");
|
|
385
|
+
return Qt(
|
|
386
|
+
!!l.showOnlyFirstAndLast,
|
|
387
|
+
!!l.showOnlyAtModulo,
|
|
388
|
+
Math.max(1, St.value || 1),
|
|
389
|
+
r,
|
|
390
|
+
v,
|
|
391
|
+
o,
|
|
392
|
+
n,
|
|
393
|
+
i
|
|
394
|
+
);
|
|
395
|
+
}), Tt = y(() => w.value.width), Mt = y(() => w.value.height), zt = y(() => ({
|
|
396
|
+
start: 0,
|
|
397
|
+
end: D.value
|
|
398
|
+
}));
|
|
399
|
+
vl({
|
|
400
|
+
timeLabelsEls: j,
|
|
401
|
+
timeLabels: B,
|
|
402
|
+
slicer: zt,
|
|
403
|
+
configRef: e,
|
|
404
|
+
rotationPath: ["style", "chart", "layout", "timeLabels", "rotation"],
|
|
405
|
+
autoRotatePath: ["style", "chart", "layout", "timeLabels", "autoRotate", "enable"],
|
|
406
|
+
isAutoSize: !1,
|
|
407
|
+
width: Tt,
|
|
408
|
+
height: Mt,
|
|
409
|
+
rotation: e.value.style.chart.layout.timeLabels.autoRotate.angle
|
|
410
|
+
});
|
|
411
|
+
const K = d(!1);
|
|
412
|
+
function ve() {
|
|
413
|
+
K.value = !K.value;
|
|
414
|
+
}
|
|
415
|
+
function Fe(l) {
|
|
416
|
+
X.value = l, ge.value += 1;
|
|
417
|
+
}
|
|
418
|
+
function _e() {
|
|
419
|
+
E.value.showTable = !E.value.showTable;
|
|
420
|
+
}
|
|
421
|
+
Z(() => E.value.showTable, (l) => {
|
|
422
|
+
e.value.table.show || (l && e.value.table.useDialog && _.value ? _.value.open() : "close" in _.value && _.value.close());
|
|
423
|
+
});
|
|
424
|
+
function Be() {
|
|
425
|
+
E.value.showTable = !1, oe.value && oe.value.setTableIconState(!1);
|
|
426
|
+
}
|
|
427
|
+
function Et() {
|
|
428
|
+
return z.value;
|
|
429
|
+
}
|
|
430
|
+
function he(l = null) {
|
|
431
|
+
const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], t = ["", ...J.value.map((v) => v?.text ?? "")], o = z.value.map((v) => [
|
|
432
|
+
v.name,
|
|
433
|
+
...v.coordinates.map((m) => `${m.displayValue}`)
|
|
434
|
+
]), n = z.value.map((v) => [
|
|
435
|
+
v.name,
|
|
436
|
+
...v.coordinates.map((m) => `${m.rank}`)
|
|
437
|
+
]), i = a.concat([[e.value.table.columnNames.values]]).concat([t]).concat(o).concat([[""], [e.value.table.columnNames.ranking], [t]]).concat(n), r = el(i);
|
|
438
|
+
l ? l(r) : tl({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-bump" });
|
|
439
|
+
}
|
|
440
|
+
const H = y(() => {
|
|
441
|
+
const l = e.value.table.useDialog && !e.value.table.show, a = E.value.showTable;
|
|
442
|
+
return {
|
|
443
|
+
component: l ? dl : ut,
|
|
444
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
445
|
+
props: l ? {
|
|
446
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
447
|
+
color: e.value.table.th.color,
|
|
448
|
+
headerColor: e.value.table.th.color,
|
|
449
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
450
|
+
isFullscreen: X.value,
|
|
451
|
+
fullscreenParent: T.value,
|
|
452
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
453
|
+
} : {
|
|
454
|
+
hideDetails: !0,
|
|
455
|
+
config: {
|
|
456
|
+
open: a,
|
|
457
|
+
maxHeight: 1e4,
|
|
458
|
+
body: {
|
|
459
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
460
|
+
color: e.value.style.chart.color
|
|
461
|
+
},
|
|
462
|
+
head: {
|
|
463
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
464
|
+
color: e.value.style.chart.color
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
}), Q = y(() => {
|
|
470
|
+
const l = [""].concat(J.value.map((n) => n.text)), a = z.value.map((n, i) => [
|
|
471
|
+
n.name,
|
|
472
|
+
...n.coordinates.map((r) => `${r.displayValue} (${r.rank})`)
|
|
473
|
+
]), t = {
|
|
474
|
+
th: {
|
|
475
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
476
|
+
color: e.value.table.th.color,
|
|
477
|
+
outline: e.value.table.th.outline
|
|
478
|
+
},
|
|
479
|
+
td: {
|
|
480
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
481
|
+
color: e.value.table.td.color,
|
|
482
|
+
outline: e.value.table.td.outline
|
|
483
|
+
},
|
|
484
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
485
|
+
}, o = [e.value.table.columnNames.series];
|
|
486
|
+
return { head: l, body: a, config: t, colNames: o };
|
|
487
|
+
}), Dt = y(() => e.value.style.chart.backgroundColor), It = y(() => e.value.style.chart.title), { exportSvg: Ot, getSvg: Pt } = fl({
|
|
488
|
+
svg: ie,
|
|
489
|
+
title: It,
|
|
490
|
+
legend: null,
|
|
491
|
+
legendItems: null,
|
|
492
|
+
backgroundColor: Dt
|
|
493
|
+
});
|
|
494
|
+
async function He({ isCb: l }) {
|
|
495
|
+
if (l) {
|
|
496
|
+
const { blob: a, url: t, text: o, dataUrl: n } = await Pt();
|
|
497
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: t, text: o, dataUrl: n });
|
|
498
|
+
} else
|
|
499
|
+
Ot();
|
|
500
|
+
}
|
|
501
|
+
async function Ft({ scale: l = 2 } = {}) {
|
|
502
|
+
if (!T.value) return;
|
|
503
|
+
const { width: a, height: t } = T.value.getBoundingClientRect(), o = a / t, { imageUri: n, base64: i } = await img({ domElement: T.value, base64: !0, img: !0, scale: l });
|
|
504
|
+
return {
|
|
505
|
+
imageUri: n,
|
|
506
|
+
base64: i,
|
|
507
|
+
title: e.value.style.chart.title.text,
|
|
508
|
+
width: a,
|
|
509
|
+
height: t,
|
|
510
|
+
aspectRatio: o
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
function I(l, a) {
|
|
514
|
+
f.value = a.id, e.value.events.datapointEnter && e.value.events.datapointEnter({
|
|
515
|
+
datapoint: l,
|
|
516
|
+
seriesIndex: l?.pointIndex ?? null
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
function R(l, a) {
|
|
520
|
+
f.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({
|
|
521
|
+
datapoint: l,
|
|
522
|
+
seriesIndex: l?.pointIndex ?? null
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
function de(l, a) {
|
|
526
|
+
e.value.events.datapointClick && e.value.events.datapointClick({
|
|
527
|
+
datapoint: l,
|
|
528
|
+
seriesIndex: l?.pointIndex ?? null
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
return nt({
|
|
532
|
+
getData: Et,
|
|
533
|
+
getImage: Ft,
|
|
534
|
+
generatePdf: Me,
|
|
535
|
+
generateCsv: he,
|
|
536
|
+
generateImage: ze,
|
|
537
|
+
generateSvg: He,
|
|
538
|
+
toggleTable: _e,
|
|
539
|
+
toggleAnnotator: ve,
|
|
540
|
+
toggleFullscreen: Fe
|
|
541
|
+
}), (l, a) => (u(), c("div", {
|
|
542
|
+
id: `bump_${le.value}`,
|
|
543
|
+
ref_key: "bumpChart",
|
|
544
|
+
ref: T,
|
|
545
|
+
class: Ve({ "vue-data-ui-component": !0, "vue-ui-bump": !0, "vue-data-ui-wrapper-fullscreen": X.value }),
|
|
546
|
+
style: L(`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%" : ""}`),
|
|
547
|
+
onMouseenter: mt,
|
|
548
|
+
onMouseleave: pt
|
|
549
|
+
}, [
|
|
550
|
+
e.value.userOptions.buttons.annotator ? (u(), N(h(it), {
|
|
551
|
+
key: 0,
|
|
552
|
+
svgRef: h(ie),
|
|
553
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
554
|
+
color: e.value.style.chart.color,
|
|
555
|
+
active: K.value,
|
|
556
|
+
onClose: ve
|
|
557
|
+
}, {
|
|
558
|
+
"annotator-action-close": p(() => [
|
|
559
|
+
b(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
560
|
+
]),
|
|
561
|
+
"annotator-action-color": p(({ color: t }) => [
|
|
562
|
+
b(l.$slots, "annotator-action-color", x($({ color: t })), void 0, !0)
|
|
563
|
+
]),
|
|
564
|
+
"annotator-action-draw": p(({ mode: t }) => [
|
|
565
|
+
b(l.$slots, "annotator-action-draw", x($({ mode: t })), void 0, !0)
|
|
566
|
+
]),
|
|
567
|
+
"annotator-action-undo": p(({ disabled: t }) => [
|
|
568
|
+
b(l.$slots, "annotator-action-undo", x($({ disabled: t })), void 0, !0)
|
|
569
|
+
]),
|
|
570
|
+
"annotator-action-redo": p(({ disabled: t }) => [
|
|
571
|
+
b(l.$slots, "annotator-action-redo", x($({ disabled: t })), void 0, !0)
|
|
572
|
+
]),
|
|
573
|
+
"annotator-action-delete": p(({ disabled: t }) => [
|
|
574
|
+
b(l.$slots, "annotator-action-delete", x($({ disabled: t })), void 0, !0)
|
|
575
|
+
]),
|
|
576
|
+
_: 3
|
|
577
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
578
|
+
b(l.$slots, "userConfig", {}, void 0, !0),
|
|
579
|
+
gt.value ? (u(), c("div", {
|
|
580
|
+
key: 1,
|
|
581
|
+
ref_key: "noTitle",
|
|
582
|
+
ref: ke,
|
|
583
|
+
class: "vue-data-ui-no-title-space",
|
|
584
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
585
|
+
}, null, 512)) : g("", !0),
|
|
586
|
+
e.value.style.chart.title.text ? (u(), c("div", {
|
|
587
|
+
key: 2,
|
|
588
|
+
ref_key: "chartTitle",
|
|
589
|
+
ref: Ce,
|
|
590
|
+
style: "width:100%;background:transparent;"
|
|
591
|
+
}, [
|
|
592
|
+
(u(), N(hl, {
|
|
593
|
+
key: `title_${Le.value}`,
|
|
594
|
+
config: {
|
|
595
|
+
title: {
|
|
596
|
+
cy: "bump-title",
|
|
597
|
+
...e.value.style.chart.title
|
|
598
|
+
},
|
|
599
|
+
subtitle: {
|
|
600
|
+
cy: "bump-subtitle",
|
|
601
|
+
...e.value.style.chart.title.subtitle
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}, null, 8, ["config"]))
|
|
605
|
+
], 512)) : g("", !0),
|
|
606
|
+
e.value.userOptions.show && U.value && (h($e) || h(re)) ? (u(), N(h(ct), {
|
|
607
|
+
ref_key: "userOptionsRef",
|
|
608
|
+
ref: oe,
|
|
609
|
+
key: `user_option_${ge.value}`,
|
|
610
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
611
|
+
color: e.value.style.chart.color,
|
|
612
|
+
isPrinting: h(Se),
|
|
613
|
+
isImaging: h(Te),
|
|
614
|
+
uid: le.value,
|
|
615
|
+
hasTooltip: !1,
|
|
616
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
617
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
618
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
619
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
620
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
621
|
+
hasLabel: !1,
|
|
622
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
623
|
+
isFullcreen: X.value,
|
|
624
|
+
chartElement: T.value,
|
|
625
|
+
position: e.value.userOptions.position,
|
|
626
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
627
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
628
|
+
isAnnotation: K.value,
|
|
629
|
+
callbacks: e.value.userOptions.callbacks,
|
|
630
|
+
printScale: e.value.userOptions.print.scale,
|
|
631
|
+
tableDialog: e.value.table.useDialog,
|
|
632
|
+
onToggleFullscreen: Fe,
|
|
633
|
+
onGeneratePdf: h(Me),
|
|
634
|
+
onGenerateCsv: he,
|
|
635
|
+
onGenerateImage: h(ze),
|
|
636
|
+
onGenerateSvg: He,
|
|
637
|
+
onToggleTable: _e,
|
|
638
|
+
onToggleAnnotator: ve,
|
|
639
|
+
style: L({
|
|
640
|
+
visibility: h($e) ? h(re) ? "visible" : "hidden" : "visible"
|
|
641
|
+
})
|
|
642
|
+
}, We({ _: 2 }, [
|
|
643
|
+
l.$slots.menuIcon ? {
|
|
644
|
+
name: "menuIcon",
|
|
645
|
+
fn: p(({ isOpen: t, color: o }) => [
|
|
646
|
+
b(l.$slots, "menuIcon", x($({ isOpen: t, color: o })), void 0, !0)
|
|
647
|
+
]),
|
|
648
|
+
key: "0"
|
|
649
|
+
} : void 0,
|
|
650
|
+
l.$slots.optionPdf ? {
|
|
651
|
+
name: "optionPdf",
|
|
652
|
+
fn: p(() => [
|
|
653
|
+
b(l.$slots, "optionPdf", {}, void 0, !0)
|
|
654
|
+
]),
|
|
655
|
+
key: "1"
|
|
656
|
+
} : void 0,
|
|
657
|
+
l.$slots.optionCsv ? {
|
|
658
|
+
name: "optionCsv",
|
|
659
|
+
fn: p(() => [
|
|
660
|
+
b(l.$slots, "optionCsv", {}, void 0, !0)
|
|
661
|
+
]),
|
|
662
|
+
key: "2"
|
|
663
|
+
} : void 0,
|
|
664
|
+
l.$slots.optionImg ? {
|
|
665
|
+
name: "optionImg",
|
|
666
|
+
fn: p(() => [
|
|
667
|
+
b(l.$slots, "optionImg", {}, void 0, !0)
|
|
668
|
+
]),
|
|
669
|
+
key: "3"
|
|
670
|
+
} : void 0,
|
|
671
|
+
l.$slots.optionSvg ? {
|
|
672
|
+
name: "optionSvg",
|
|
673
|
+
fn: p(() => [
|
|
674
|
+
b(l.$slots, "optionSvg", {}, void 0, !0)
|
|
675
|
+
]),
|
|
676
|
+
key: "4"
|
|
677
|
+
} : void 0,
|
|
678
|
+
l.$slots.optionTable ? {
|
|
679
|
+
name: "optionTable",
|
|
680
|
+
fn: p(() => [
|
|
681
|
+
b(l.$slots, "optionTable", {}, void 0, !0)
|
|
682
|
+
]),
|
|
683
|
+
key: "5"
|
|
684
|
+
} : void 0,
|
|
685
|
+
l.$slots.optionFullscreen ? {
|
|
686
|
+
name: "optionFullscreen",
|
|
687
|
+
fn: p(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
688
|
+
b(l.$slots, "optionFullscreen", x($({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
689
|
+
]),
|
|
690
|
+
key: "6"
|
|
691
|
+
} : void 0,
|
|
692
|
+
l.$slots.optionAnnotator ? {
|
|
693
|
+
name: "optionAnnotator",
|
|
694
|
+
fn: p(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
695
|
+
b(l.$slots, "optionAnnotator", x($({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
696
|
+
]),
|
|
697
|
+
key: "7"
|
|
698
|
+
} : void 0
|
|
699
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullcreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
700
|
+
(u(), c("svg", {
|
|
701
|
+
ref_key: "svgRef",
|
|
702
|
+
ref: ie,
|
|
703
|
+
xmlns: h(Zt),
|
|
704
|
+
viewBox: `0 0 ${s.value.chartWidth <= 0 ? 10 : s.value.chartWidth} ${s.value.svgHeight <= 0 ? 10 : s.value.svgHeight}`,
|
|
705
|
+
class: Ve({ "vue-data-ui-loading": h(Y), "no-transition": !e.value.useCssAnimation, "with-transition": e.value.useCssAnimation }),
|
|
706
|
+
style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
|
|
707
|
+
role: "img",
|
|
708
|
+
"aria-live": "polite",
|
|
709
|
+
preserveAspectRatio: "xMidYMid"
|
|
710
|
+
}, [
|
|
711
|
+
ye(h(vt)),
|
|
712
|
+
l.$slots["chart-background"] ? (u(), c("foreignObject", {
|
|
713
|
+
key: 0,
|
|
714
|
+
x: s.value.left,
|
|
715
|
+
y: s.value.top,
|
|
716
|
+
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
717
|
+
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
718
|
+
style: {
|
|
719
|
+
pointerEvents: "none"
|
|
720
|
+
}
|
|
721
|
+
}, [
|
|
722
|
+
b(l.$slots, "chart-background", {}, void 0, !0)
|
|
723
|
+
], 8, pl)) : g("", !0),
|
|
724
|
+
(u(!0), c(k, null, S(z.value, (t) => (u(), c(k, null, [
|
|
725
|
+
ee("path", {
|
|
726
|
+
class: "transition-opacity",
|
|
727
|
+
d: `M${t.path}`,
|
|
728
|
+
stroke: e.value.style.chart.layout.lines.coatingColor,
|
|
729
|
+
"stroke-width": e.value.style.chart.layout.lines.strokeWidth + 2,
|
|
730
|
+
"stroke-linecap": "round",
|
|
731
|
+
"stroke-linejoin": "round",
|
|
732
|
+
fill: "none",
|
|
733
|
+
style: L({
|
|
734
|
+
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
735
|
+
}),
|
|
736
|
+
onMouseenter: (o) => f.value = t.id,
|
|
737
|
+
onMouseleave: a[0] || (a[0] = (o) => f.value = null)
|
|
738
|
+
}, null, 44, gl),
|
|
739
|
+
ee("path", {
|
|
740
|
+
class: "transition-opacity",
|
|
741
|
+
d: `M${t.path}`,
|
|
742
|
+
stroke: t.color,
|
|
743
|
+
"stroke-width": e.value.style.chart.layout.lines.strokeWidth,
|
|
744
|
+
"stroke-linecap": "round",
|
|
745
|
+
"stroke-linejoin": "round",
|
|
746
|
+
fill: "none",
|
|
747
|
+
style: L({
|
|
748
|
+
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
749
|
+
}),
|
|
750
|
+
onMouseenter: (o) => I(t, t),
|
|
751
|
+
onMouseleave: (o) => R(t),
|
|
752
|
+
onClick: (o) => de(t)
|
|
753
|
+
}, null, 44, Cl)
|
|
754
|
+
], 64))), 256)),
|
|
755
|
+
(u(!0), c(k, null, S(z.value, (t) => (u(), c(k, null, [
|
|
756
|
+
e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (u(!0), c(k, { key: 0 }, S(t.coordinates, (o, n) => (u(), c("circle", {
|
|
757
|
+
class: "transition-opacity",
|
|
758
|
+
cx: o.x,
|
|
759
|
+
cy: o.y,
|
|
760
|
+
r: e.value.style.chart.layout.plots.radius,
|
|
761
|
+
fill: t.color,
|
|
762
|
+
stroke: e.value.style.chart.layout.plots.stroke,
|
|
763
|
+
"stroke-width": e.value.style.chart.layout.plots.strokeWidth,
|
|
764
|
+
style: L({
|
|
765
|
+
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
766
|
+
}),
|
|
767
|
+
onMouseenter: (i) => I({ ...o, pointIndex: n }, t),
|
|
768
|
+
onMouseleave: (i) => R({ ...o, pointIndex: n }),
|
|
769
|
+
onClick: (i) => I({ ...o, pointIndex: n }, t)
|
|
770
|
+
}, null, 44, kl))), 256)) : g("", !0),
|
|
771
|
+
e.value.style.chart.layout.plots.labels.show && e.value.style.chart.layout.plots.labels.displayedValue === "rank" ? (u(!0), c(k, { key: 1 }, S(t.coordinates, (o) => (u(), c("text", {
|
|
772
|
+
class: "transition-opacity",
|
|
773
|
+
x: o.x,
|
|
774
|
+
y: o.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
|
|
775
|
+
fill: o.labelColor,
|
|
776
|
+
"font-size": e.value.style.chart.layout.plots.labels.fontSize,
|
|
777
|
+
"text-anchor": "middle",
|
|
778
|
+
style: L({
|
|
779
|
+
userSelect: "none",
|
|
780
|
+
pointerEvents: "none",
|
|
781
|
+
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
782
|
+
})
|
|
783
|
+
}, V(o.rank), 13, Al))), 256)) : g("", !0),
|
|
784
|
+
e.value.style.chart.layout.plots.labels.displayedValue === "value" ? (u(!0), c(k, { key: 2 }, S(t.coordinates, (o) => (u(), c(k, null, [
|
|
785
|
+
h(W)(o.value) ? (u(), c("rect", be({
|
|
786
|
+
key: 0,
|
|
787
|
+
class: "transition-opacity"
|
|
788
|
+
}, { ref_for: !0 }, $t(o), {
|
|
789
|
+
style: {
|
|
790
|
+
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
791
|
+
},
|
|
792
|
+
onMouseenter: (n) => I({ ...l.point, pointIndex: l.i }, t),
|
|
793
|
+
onMouseleave: (n) => R({ ...l.point, pointIndex: l.i }),
|
|
794
|
+
onClick: (n) => I({ ...l.point, pointIndex: l.i }, t)
|
|
795
|
+
}), null, 16, Ll)) : g("", !0),
|
|
796
|
+
h(W)(o.value) && e.value.style.chart.layout.plots.labels.show ? (u(), c("text", {
|
|
797
|
+
key: 1,
|
|
798
|
+
class: "transition-opacity",
|
|
799
|
+
x: o.x,
|
|
800
|
+
y: o.y + e.value.style.chart.layout.plots.labels.fontSize / 3,
|
|
801
|
+
fill: o.labelColor,
|
|
802
|
+
"font-size": e.value.style.chart.layout.plots.labels.fontSize,
|
|
803
|
+
"text-anchor": "middle",
|
|
804
|
+
style: L({
|
|
805
|
+
userSelect: "none",
|
|
806
|
+
pointerEvents: "none",
|
|
807
|
+
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
808
|
+
})
|
|
809
|
+
}, V(o.displayValue), 13, wl)) : g("", !0)
|
|
810
|
+
], 64))), 256)) : g("", !0)
|
|
811
|
+
], 64))), 256)),
|
|
812
|
+
e.value.style.chart.layout.nameLabels.leftLabels.show ? (u(), c("g", {
|
|
813
|
+
key: 1,
|
|
814
|
+
ref_key: "labelsLeft",
|
|
815
|
+
ref: ne
|
|
816
|
+
}, [
|
|
817
|
+
(u(!0), c(k, null, S(Pe.value.left.filter((t) => h(W)(t.value)), (t, o) => (u(), c("text", {
|
|
818
|
+
class: "transition-opacity",
|
|
819
|
+
x: s.value.left,
|
|
820
|
+
y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
821
|
+
fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
|
|
822
|
+
"font-size": e.value.style.chart.layout.nameLabels.fontSize,
|
|
823
|
+
"font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
|
|
824
|
+
"text-anchor": "end",
|
|
825
|
+
innerHTML: h(me)({
|
|
826
|
+
content: t.name,
|
|
827
|
+
fontSize: e.value.style.chart.layout.nameLabels.fontSize,
|
|
828
|
+
fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
|
|
829
|
+
x: s.value.left - e.value.style.chart.layout.nameLabels.offsetX,
|
|
830
|
+
y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
831
|
+
translateY: !0
|
|
832
|
+
}),
|
|
833
|
+
style: L({
|
|
834
|
+
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
835
|
+
}),
|
|
836
|
+
onMouseenter: (n) => I(t, t),
|
|
837
|
+
onMouseleave: (n) => R(t),
|
|
838
|
+
onClick: (n) => de(t)
|
|
839
|
+
}, null, 44, xl))), 256))
|
|
840
|
+
], 512)) : g("", !0),
|
|
841
|
+
e.value.style.chart.layout.nameLabels.rightLabels.show ? (u(), c("g", {
|
|
842
|
+
key: 2,
|
|
843
|
+
ref_key: "labelsRight",
|
|
844
|
+
ref: se
|
|
845
|
+
}, [
|
|
846
|
+
(u(!0), c(k, null, S(Pe.value.right.filter((t) => h(W)(t.value)), (t, o) => (u(), c("text", {
|
|
847
|
+
class: "transition-opacity",
|
|
848
|
+
x: s.value.right,
|
|
849
|
+
y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
850
|
+
fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
|
|
851
|
+
"font-size": e.value.style.chart.layout.nameLabels.fontSize,
|
|
852
|
+
"font--weight": e.value.style.chart.layout.nameLabels.bold ? "bold" : "normal",
|
|
853
|
+
"text-anchor": "start",
|
|
854
|
+
innerHTML: h(me)({
|
|
855
|
+
content: t.name,
|
|
856
|
+
fontSize: e.value.style.chart.layout.nameLabels.fontSize,
|
|
857
|
+
fill: e.value.style.chart.layout.nameLabels.useSerieColor ? t.color : e.value.style.chart.layout.nameLabels.color,
|
|
858
|
+
x: s.value.right + e.value.style.chart.layout.nameLabels.offsetX,
|
|
859
|
+
y: t.y + e.value.style.chart.layout.nameLabels.fontSize / 3,
|
|
860
|
+
translateY: !0
|
|
861
|
+
}),
|
|
862
|
+
style: L({
|
|
863
|
+
opacity: f.value == null || f.value === t.id ? 1 : 0.1
|
|
864
|
+
}),
|
|
865
|
+
onMouseenter: (n) => I(t, t),
|
|
866
|
+
onMouseleave: (n) => R(t),
|
|
867
|
+
onClick: (n) => de(t)
|
|
868
|
+
}, null, 44, $l))), 256))
|
|
869
|
+
], 512)) : g("", !0),
|
|
870
|
+
e.value.style.chart.layout.timeLabels.show ? (u(), c("g", {
|
|
871
|
+
key: 3,
|
|
872
|
+
ref_key: "timeLabelsEls",
|
|
873
|
+
ref: j
|
|
874
|
+
}, [
|
|
875
|
+
l.$slots["time-label"] ? (u(), c("g", Sl, [
|
|
876
|
+
(u(!0), c(k, null, S(J.value, (t, o) => (u(), c("g", null, [
|
|
877
|
+
b(l.$slots, "time-label", be({ ref_for: !0 }, {
|
|
878
|
+
x: s.value.unitW * o + s.value.unitW / 2 + s.value.left,
|
|
879
|
+
y: s.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY,
|
|
880
|
+
fontSize: e.value.style.chart.layout.timeLabels.fontSize,
|
|
881
|
+
fill: e.value.style.chart.layout.timeLabels.color,
|
|
882
|
+
transform: `translate(${s.value.unitW * o + s.value.unitW / 2 + s.value.left}, ${s.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`,
|
|
883
|
+
absoluteIndex: t.absoluteIndex,
|
|
884
|
+
content: t.text,
|
|
885
|
+
textAnchor: e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
886
|
+
show: !0
|
|
887
|
+
}), void 0, !0)
|
|
888
|
+
]))), 256))
|
|
889
|
+
])) : (u(), c("g", Tl, [
|
|
890
|
+
(u(!0), c(k, null, S(J.value, (t, o) => (u(), c("g", null, [
|
|
891
|
+
String(t.text).includes(`
|
|
892
|
+
`) ? (u(), c("text", {
|
|
893
|
+
key: o + "-multi",
|
|
894
|
+
"text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
895
|
+
"font-size": e.value.style.chart.layout.timeLabels.fontSize,
|
|
896
|
+
fill: e.value.style.chart.layout.timeLabels.color,
|
|
897
|
+
transform: `
|
|
898
|
+
translate(
|
|
899
|
+
${s.value.unitW * o + s.value.unitW / 2 + s.value.left},
|
|
900
|
+
${s.value.chartHeight + e.value.style.chart.layout.timeLabels.fontSize * 1.3 + e.value.style.chart.layout.timeLabels.offsetY}
|
|
901
|
+
),
|
|
902
|
+
rotate(${e.value.style.chart.layout.timeLabels.rotation})
|
|
903
|
+
`,
|
|
904
|
+
innerHTML: h(me)({
|
|
905
|
+
content: String(t.text),
|
|
906
|
+
fontSize: e.value.style.chart.layout.timeLabels.fontSize,
|
|
907
|
+
fill: e.value.style.chart.layout.timeLabels.color,
|
|
908
|
+
x: 0,
|
|
909
|
+
y: 0
|
|
910
|
+
})
|
|
911
|
+
}, null, 8, zl)) : (u(), c("text", {
|
|
912
|
+
class: "vue-data-ui-time-label",
|
|
913
|
+
key: o,
|
|
914
|
+
"text-anchor": e.value.style.chart.layout.timeLabels.rotation > 0 ? "start" : e.value.style.chart.layout.timeLabels.rotation < 0 ? "end" : "middle",
|
|
915
|
+
"font-size": e.value.style.chart.layout.timeLabels.fontSize,
|
|
916
|
+
"font-weight": e.value.style.chart.layout.timeLabels.bold ? "bold" : "normal",
|
|
917
|
+
fill: e.value.style.chart.layout.timeLabels.color,
|
|
918
|
+
transform: `translate(${s.value.unitW * o + s.value.unitW / 2 + s.value.left}, ${s.value.chartHeight + e.value.style.chart.layout.timeLabels.offsetY}), rotate(${e.value.style.chart.layout.timeLabels.rotation})`
|
|
919
|
+
}, V(t.text), 9, Ml))
|
|
920
|
+
]))), 256))
|
|
921
|
+
]))
|
|
922
|
+
], 512)) : g("", !0),
|
|
923
|
+
b(l.$slots, "svg", {
|
|
924
|
+
svg: {
|
|
925
|
+
drawingArea: s.value,
|
|
926
|
+
data: z.value
|
|
927
|
+
}
|
|
928
|
+
}, void 0, !0)
|
|
929
|
+
], 14, ml)),
|
|
930
|
+
l.$slots.watermark ? (u(), c("div", El, [
|
|
931
|
+
b(l.$slots, "watermark", x($({ isPrinting: h(Se) || h(Te) })), void 0, !0)
|
|
932
|
+
])) : g("", !0),
|
|
933
|
+
U.value && e.value.userOptions.buttons.table ? (u(), N(Wt(H.value.component), be({ key: 5 }, H.value.props, {
|
|
934
|
+
ref_key: "tableUnit",
|
|
935
|
+
ref: _,
|
|
936
|
+
onClose: Be
|
|
937
|
+
}), We({
|
|
938
|
+
content: p(() => [
|
|
939
|
+
ye(h(rt), {
|
|
940
|
+
colNames: Q.value.colNames,
|
|
941
|
+
head: Q.value.head,
|
|
942
|
+
body: Q.value.body,
|
|
943
|
+
config: Q.value.config,
|
|
944
|
+
title: e.value.table.useDialog ? "" : H.value.title,
|
|
945
|
+
withCloseButton: !e.value.table.useDialog,
|
|
946
|
+
onClose: Be
|
|
947
|
+
}, {
|
|
948
|
+
th: p(({ th: t }) => [
|
|
949
|
+
ee("div", { innerHTML: t }, null, 8, Dl)
|
|
950
|
+
]),
|
|
951
|
+
td: p(({ td: t }) => [
|
|
952
|
+
Ue(V(t), 1)
|
|
953
|
+
]),
|
|
954
|
+
_: 1
|
|
955
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
|
|
956
|
+
]),
|
|
957
|
+
_: 2
|
|
958
|
+
}, [
|
|
959
|
+
e.value.table.useDialog ? {
|
|
960
|
+
name: "title",
|
|
961
|
+
fn: p(() => [
|
|
962
|
+
Ue(V(H.value.title), 1)
|
|
963
|
+
]),
|
|
964
|
+
key: "0"
|
|
965
|
+
} : void 0,
|
|
966
|
+
e.value.table.useDialog ? {
|
|
967
|
+
name: "actions",
|
|
968
|
+
fn: p(() => [
|
|
969
|
+
ee("button", {
|
|
970
|
+
tabindex: "0",
|
|
971
|
+
class: "vue-ui-user-options-button",
|
|
972
|
+
onClick: a[1] || (a[1] = (t) => he(e.value.userOptions.callbacks.csv))
|
|
973
|
+
}, [
|
|
974
|
+
ye(h(st), {
|
|
975
|
+
name: "excel",
|
|
976
|
+
stroke: H.value.props.color
|
|
977
|
+
}, null, 8, ["stroke"])
|
|
978
|
+
])
|
|
979
|
+
]),
|
|
980
|
+
key: "1"
|
|
981
|
+
} : void 0
|
|
982
|
+
]), 1040)) : g("", !0),
|
|
983
|
+
l.$slots.source ? (u(), c("div", {
|
|
984
|
+
key: 6,
|
|
985
|
+
ref_key: "source",
|
|
986
|
+
ref: Ae,
|
|
987
|
+
dir: "auto"
|
|
988
|
+
}, [
|
|
989
|
+
b(l.$slots, "source", {}, void 0, !0)
|
|
990
|
+
], 512)) : g("", !0),
|
|
991
|
+
h(Y) ? (u(), N(nl, { key: 7 })) : g("", !0)
|
|
992
|
+
], 46, bl));
|
|
993
|
+
}
|
|
994
|
+
}, Ol = /* @__PURE__ */ yl(Il, [["__scopeId", "data-v-94c30780"]]), Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
995
|
+
__proto__: null,
|
|
996
|
+
default: Ol
|
|
997
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
998
|
+
export {
|
|
999
|
+
Jl as a,
|
|
1000
|
+
Kl as b,
|
|
1001
|
+
Ol as v
|
|
1002
|
+
};
|