vue-data-ui 3.20.11 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-D6j6ocXm.js → Arrow-_pDGXl76.js} +1 -1
- package/dist/{BaseDraggableDialog-4hDW-Rj2.js → BaseDraggableDialog-BvaFJWHb.js} +2 -2
- package/dist/{BaseIcon-DfLoHNUj.js → BaseIcon-CbDazQLH.js} +1 -1
- package/dist/{BaseLegendToggle-C_Db-y7s.js → BaseLegendToggle-BNRi408o.js} +1 -1
- package/dist/{BaseZoomControls-CG7hI_1P.js → BaseZoomControls-Dbtq9oyx.js} +2 -2
- package/dist/{ColorPicker-Bjwxnvfh.js → ColorPicker-B4ob7JgP.js} +2 -2
- package/dist/{DataTable-B--IN22e.js → DataTable-DweDyHc1.js} +2 -2
- package/dist/{Legend-Cz2uQ5gs.js → Legend-BLhREbj7.js} +2 -2
- package/dist/{NonSvgPenAndPaper-gLNJ1Lmr.js → NonSvgPenAndPaper-BzZyMJBF.js} +3 -3
- package/dist/{PackageVersion-eS823iMF.js → PackageVersion-DYLo3MRd.js} +1 -1
- package/dist/{PenAndPaper-DqrClVfb.js → PenAndPaper-D4aFMYZf.js} +3 -3
- package/dist/{Shape-BPCJfphn.js → Shape-BxFtoF1z.js} +1 -1
- package/dist/{Slicer-SHBj0VaV.js → Slicer-GABgkLkB.js} +2 -2
- package/dist/{SlicerPreview-By4kBVCY.js → SlicerPreview-CXLgqXX8.js} +6 -6
- package/dist/{SparkTooltip-CfE6yCad.js → SparkTooltip-CdSRUoZN.js} +6 -6
- package/dist/{Title-NWp4qB4K.js → Title-DH6G8_cZ.js} +1 -1
- package/dist/{Tooltip-BENq327o.js → Tooltip-979Ytd8R.js} +1 -1
- package/dist/{UserOptions-C1NgoGu6.js → UserOptions-qFz-9Pnw.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-bump.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-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/{dom-to-png-BYtB4BF3.js → dom-to-png-CtV3uxDJ.js} +1 -1
- package/dist/exposedLib-BJbE_A8E.js +19 -0
- package/dist/{img-1cKsci8e.js → img-C_RNNswI.js} +1 -1
- package/dist/{labelUtils-CUctkYoA.js → labelUtils-Bycs-017.js} +1 -1
- package/dist/{lib-DUeYQsS0.js → lib-AJRHFE5U.js} +12 -6
- package/dist/{pdf-D0eZ99cP.js → pdf-CdX23zf1.js} +1 -1
- package/dist/ssr.js +1366 -0
- package/dist/types/ssr.d.ts +128 -0
- package/dist/types/vue-data-ui.d.ts +135 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BIVntRZp.js → useAutoSizeLabelsInsideViewbox-kjVKQz36.js} +1 -1
- package/dist/{useNestedProp-CNcoy38D.js → useNestedProp-DtcXIg7n.js} +1 -1
- package/dist/{usePrinter-C1Gqt_Sp.js → usePrinter-6n2MzVyV.js} +2 -2
- package/dist/utils.js +8 -8
- package/dist/{vue-data-ui-0t8DsSSW.js → vue-data-ui-D2dM3IQZ.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-0C_yshya.js +1757 -0
- package/dist/{vue-ui-accordion-Bpbv-VHE.js → vue-ui-accordion-DLnwuQda.js} +3 -3
- package/dist/vue-ui-age-pyramid-DFNELwbT.js +1238 -0
- package/dist/{vue-ui-annotator-Q57JevNc.js → vue-ui-annotator-BljP5cB7.js} +8 -8
- package/dist/vue-ui-bullet-ChQq42AN.js +710 -0
- package/dist/{vue-ui-bump-CE8VRCs2.js → vue-ui-bump-BVCYywuS.js} +253 -253
- package/dist/{vue-ui-candlestick-B4tkLoQe.js → vue-ui-candlestick-CQ0nfkmL.js} +276 -276
- package/dist/vue-ui-carousel-table-Cvi1gsKR.js +455 -0
- package/dist/vue-ui-chestnut-DeWbKqze.js +2010 -0
- package/dist/vue-ui-chord-bRXYWpGT.js +1391 -0
- package/dist/{vue-ui-circle-pack-SCxS2mrl.js → vue-ui-circle-pack-DWO8x9gf.js} +36 -36
- package/dist/{vue-ui-cursor-DT8uNrQa.js → vue-ui-cursor-BKGUvOWO.js} +3 -3
- package/dist/{vue-ui-dag-CK30vhll.js → vue-ui-dag-lL0juBzN.js} +20 -20
- package/dist/{vue-ui-dashboard-Cf21Q0H0.js → vue-ui-dashboard-CEk2z8v9.js} +69 -69
- package/dist/{vue-ui-digits-DiapBzIK.js → vue-ui-digits-BAjr0eIJ.js} +3 -3
- package/dist/vue-ui-donut-BsSpIinL.js +2410 -0
- package/dist/vue-ui-donut-evolution-1UhFKEgG.js +1510 -0
- package/dist/vue-ui-dumbbell-ChqJicg9.js +1530 -0
- package/dist/{vue-ui-flow-uPuvDSxv.js → vue-ui-flow-BXfzMTXx.js} +57 -57
- package/dist/{vue-ui-funnel-CCy9NFKa.js → vue-ui-funnel-BpnC82m0.js} +32 -32
- package/dist/{vue-ui-galaxy-BjoOO1lq.js → vue-ui-galaxy-FNzwDOH1.js} +330 -330
- package/dist/vue-ui-gauge-D6I78FZr.js +920 -0
- package/dist/{vue-ui-geo-C8FXD9it.js → vue-ui-geo-Z1xuH8r6.js} +18 -18
- package/dist/{vue-ui-gizmo-BiLdRUEw.js → vue-ui-gizmo-ZlmJIh0_.js} +62 -62
- package/dist/{vue-ui-heatmap-D3ewCJX6.js → vue-ui-heatmap-BWN0UBKE.js} +264 -264
- package/dist/{vue-ui-history-plot-BpyvvMPA.js → vue-ui-history-plot-2E6KrNhv.js} +74 -74
- package/dist/vue-ui-horizontal-bar-BzP7k_3J.js +1681 -0
- package/dist/{vue-ui-kpi-YCPfpGty.js → vue-ui-kpi-B9bdicir.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bi0nsbao.js → vue-ui-mini-loader-BnLOdRA0.js} +2 -2
- package/dist/vue-ui-molecule-B-69fE_1.js +925 -0
- package/dist/{vue-ui-mood-radar-81X63j-D.js → vue-ui-mood-radar-D3kF7iHz.js} +21 -21
- package/dist/{vue-ui-nested-donuts-C1j-h8RW.js → vue-ui-nested-donuts-CTmomXj1.js} +256 -256
- package/dist/{vue-ui-onion-CZLJxedN.js → vue-ui-onion-3fJB4mfC.js} +45 -45
- package/dist/{vue-ui-parallel-coordinate-plot-Czndz3oA.js → vue-ui-parallel-coordinate-plot-CKKkbBlu.js} +39 -39
- package/dist/{vue-ui-quadrant-LwMr7DKL.js → vue-ui-quadrant-DGLnjwva.js} +355 -355
- package/dist/{vue-ui-quick-chart-C20W7LNY.js → vue-ui-quick-chart-DJnhlEXi.js} +359 -359
- package/dist/vue-ui-radar-AIBX0QYs.js +1229 -0
- package/dist/{vue-ui-rating-D8QQctnQ.js → vue-ui-rating-pDVqT08V.js} +33 -33
- package/dist/vue-ui-relation-circle-BQVR8L9Y.js +924 -0
- package/dist/{vue-ui-ridgeline-B5BRKUoc.js → vue-ui-ridgeline-CYq3APPQ.js} +54 -54
- package/dist/{vue-ui-rings-DVA3hiUL.js → vue-ui-rings-BgFO7NYF.js} +81 -81
- package/dist/vue-ui-scatter-BPu5DwaJ.js +2413 -0
- package/dist/{vue-ui-skeleton-DxXA3XSP.js → vue-ui-skeleton-qpdvvWtx.js} +41 -41
- package/dist/{vue-ui-smiley-CqwB6Uhu.js → vue-ui-smiley-DUI5n89s.js} +16 -16
- package/dist/{vue-ui-spark-trend-B3mkyeZ3.js → vue-ui-spark-trend-CQ9ZN5sL.js} +27 -27
- package/dist/{vue-ui-sparkbar-BlmV-ndv.js → vue-ui-sparkbar-d6ctWlLA.js} +83 -83
- package/dist/{vue-ui-sparkgauge-DKRJDqAS.js → vue-ui-sparkgauge-HX_rqLxX.js} +44 -44
- package/dist/{vue-ui-sparkhistogram-BNiXxI65.js → vue-ui-sparkhistogram-B_zxKMHv.js} +110 -110
- package/dist/vue-ui-sparkline-BSdOdtKu.js +1507 -0
- package/dist/{vue-ui-sparkstackbar-C6qMimoL.js → vue-ui-sparkstackbar-B2sqpW-w.js} +155 -155
- package/dist/{vue-ui-stackbar-C7jTnGyT.js → vue-ui-stackbar-DH75CCpy.js} +81 -81
- package/dist/vue-ui-stackline-CXodezD1.js +2398 -0
- package/dist/{vue-ui-strip-plot-CvjdxEOT.js → vue-ui-strip-plot-C1un5Mku.js} +90 -90
- package/dist/{vue-ui-table-B0zkvlw5.js → vue-ui-table-R-aXpHvF.js} +78 -78
- package/dist/{vue-ui-table-heatmap-xwfStZrD.js → vue-ui-table-heatmap-C1e_7MJ2.js} +16 -16
- package/dist/{vue-ui-table-sparkline-BQjo2sbB.js → vue-ui-table-sparkline-Dy-6i82F.js} +22 -22
- package/dist/{vue-ui-thermometer-CVhxnkN-.js → vue-ui-thermometer-CIse_lcE.js} +21 -21
- package/dist/{vue-ui-timer-Cimuw9rF.js → vue-ui-timer-AlYvthQ6.js} +23 -23
- package/dist/{vue-ui-tiremarks-CSPL1oli.js → vue-ui-tiremarks-CP_bw6by.js} +19 -19
- package/dist/{vue-ui-treemap-BWivpffU.js → vue-ui-treemap-BXrV5VAp.js} +65 -65
- package/dist/{vue-ui-waffle-FmLPDL2g.js → vue-ui-waffle-uoqEnQ30.js} +232 -232
- package/dist/{vue-ui-wheel-BjdVO5f4.js → vue-ui-wheel-DLgw_xfe.js} +36 -36
- package/dist/{vue-ui-word-cloud-hhjEM6ee.js → vue-ui-word-cloud-Bgu-qbcp.js} +35 -35
- package/dist/{vue-ui-world-H9HX6smc.js → vue-ui-world-B93iq1ZM.js} +445 -445
- package/dist/vue-ui-xy-DzuOBbPL.js +4744 -0
- package/dist/{vue-ui-xy-canvas-kbP-mjEo.js → vue-ui-xy-canvas-DjxM7y3T.js} +60 -60
- package/package.json +5 -1
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/vue-ui-3d-bar-D1dX4mDU.js +0 -1757
- package/dist/vue-ui-age-pyramid-BYIxO-rR.js +0 -1238
- package/dist/vue-ui-bullet-B65T4IyK.js +0 -710
- package/dist/vue-ui-carousel-table-DB1kG5AJ.js +0 -455
- package/dist/vue-ui-chestnut-CXzK4gsf.js +0 -2010
- package/dist/vue-ui-chord-BhuABwXT.js +0 -1391
- package/dist/vue-ui-donut-DrM628Ge.js +0 -2410
- package/dist/vue-ui-donut-evolution-CIXY4tKY.js +0 -1510
- package/dist/vue-ui-dumbbell-B8V84XkY.js +0 -1530
- package/dist/vue-ui-gauge-DbV0oQs3.js +0 -920
- package/dist/vue-ui-horizontal-bar-DoCvNzdC.js +0 -1681
- package/dist/vue-ui-molecule-IFNTvQdE.js +0 -925
- package/dist/vue-ui-radar-Dxopl3RI.js +0 -1229
- package/dist/vue-ui-relation-circle-CMRXow6X.js +0 -924
- package/dist/vue-ui-scatter-DcveiIfl.js +0 -2413
- package/dist/vue-ui-sparkline-C5EDZIAt.js +0 -1507
- package/dist/vue-ui-stackline-fdOF6lLn.js +0 -2398
- package/dist/vue-ui-xy-omDIF90L.js +0 -4744
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t,
|
|
2
|
+
import { Bt as t, Ft as n, G as r, H as i, Ht as a, Ot as o, Pt as s, Tt as c, X as ee, ct as te, ht as ne, i as l, t as re, x as ie, y as u } from "./lib-AJRHFE5U.js";
|
|
3
3
|
import { t as ae } from "./useConfig-DnH7Pf_2.js";
|
|
4
4
|
import { n as oe, t as se } from "./BaseScanner-Dr2a1Msy.js";
|
|
5
|
-
import { t as d } from "./useNestedProp-
|
|
5
|
+
import { t as d } from "./useNestedProp-DtcXIg7n.js";
|
|
6
6
|
import { t as ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
7
7
|
import { t as le } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
-
import { t as ue } from "./BaseLegendToggle-
|
|
8
|
+
import { t as ue } from "./BaseLegendToggle-BNRi408o.js";
|
|
9
9
|
import { t as de } from "./A11yDataTable-BCbtxMU6.js";
|
|
10
10
|
import { t as fe } from "./useChartAccessibility-DYqac8yF.js";
|
|
11
11
|
import { t as pe } from "./vue_ui_sparkstackbar-BOjuQnZd.js";
|
|
@@ -87,25 +87,25 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
87
87
|
},
|
|
88
88
|
emits: ["selectDatapoint", "selectLegend"],
|
|
89
89
|
setup(e, { expose: le, emit: xe }) {
|
|
90
|
-
let O = ge(() => import("./PackageVersion-
|
|
90
|
+
let O = ge(() => import("./PackageVersion-DYLo3MRd.js").then((e) => e.t)), Ge = ge(() => import("./Tooltip-979Ytd8R.js")), { vue_ui_sparkstackbar: Ke } = ae(), { isThemeValid: qe, warnInvalidTheme: Je } = ce(), k = e, Ye = ye();
|
|
91
91
|
_e(() => {
|
|
92
92
|
Ye["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
93
93
|
});
|
|
94
|
-
let Xe = S(null), A = S(
|
|
94
|
+
let Xe = S(null), A = S(i()), j = S(!1), Ze = S(""), M = S(null), N = S(!1), P = S(null), Qe = S({
|
|
95
95
|
x: 0,
|
|
96
96
|
y: 0
|
|
97
|
-
}),
|
|
97
|
+
}), F = S("pointer"), I = S(!1), L = S(null), $e = S([]), R = S(H()), et = p(() => R.value.useCursorPointer), tt = p(() => a({
|
|
98
98
|
defaultConfig: { style: {
|
|
99
99
|
backgroundColor: "#99999930",
|
|
100
100
|
animation: { show: !1 },
|
|
101
101
|
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
102
102
|
title: { backgroundColor: "transparent" }
|
|
103
103
|
} },
|
|
104
|
-
userConfig:
|
|
105
|
-
})), { loading:
|
|
104
|
+
userConfig: R.value.skeletonConfig ?? {}
|
|
105
|
+
})), { loading: z, FINAL_DATASET: B } = oe({
|
|
106
106
|
...ve(k),
|
|
107
|
-
FINAL_CONFIG:
|
|
108
|
-
prepareConfig:
|
|
107
|
+
FINAL_CONFIG: R,
|
|
108
|
+
prepareConfig: H,
|
|
109
109
|
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
110
110
|
{
|
|
111
111
|
name: "_",
|
|
@@ -123,64 +123,64 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
123
123
|
color: "#DBDBDB"
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
|
-
skeletonConfig:
|
|
127
|
-
defaultConfig:
|
|
128
|
-
userConfig:
|
|
126
|
+
skeletonConfig: a({
|
|
127
|
+
defaultConfig: R.value,
|
|
128
|
+
userConfig: tt.value
|
|
129
129
|
})
|
|
130
|
-
}), { svgRef:
|
|
131
|
-
function
|
|
130
|
+
}), { svgRef: V } = fe({ config: R.value.style.title });
|
|
131
|
+
function H() {
|
|
132
132
|
let e = d({
|
|
133
133
|
userConfig: k.config,
|
|
134
134
|
defaultConfig: Ke
|
|
135
|
-
}),
|
|
136
|
-
if (!
|
|
135
|
+
}), n = e.theme;
|
|
136
|
+
if (!n) return e;
|
|
137
137
|
if (!qe.value(e)) return Je(e), e;
|
|
138
|
-
let
|
|
139
|
-
userConfig: pe[
|
|
138
|
+
let r = d({
|
|
139
|
+
userConfig: pe[n] || k.config,
|
|
140
140
|
defaultConfig: e
|
|
141
141
|
}), i = d({
|
|
142
142
|
userConfig: k.config,
|
|
143
|
-
defaultConfig:
|
|
143
|
+
defaultConfig: r
|
|
144
144
|
});
|
|
145
145
|
return {
|
|
146
146
|
...i,
|
|
147
|
-
customPalette: i.customPalette.length ? i.customPalette :
|
|
147
|
+
customPalette: i.customPalette.length ? i.customPalette : t[n] || o
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
be(() => k.config, (e) => {
|
|
151
|
-
|
|
152
|
-
}, { deep: !0 }), be(() =>
|
|
153
|
-
W.value =
|
|
151
|
+
R.value = H(), it();
|
|
152
|
+
}, { deep: !0 }), be(() => B.value, (e) => {
|
|
153
|
+
W.value = B.value.map((e, t) => ({
|
|
154
154
|
...e,
|
|
155
|
-
color: e.color ? u(e.color) : U.value[t] ||
|
|
155
|
+
color: e.color ? u(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
156
156
|
})), nt();
|
|
157
157
|
}, { deep: !0 });
|
|
158
|
-
let U = p(() => ie(
|
|
158
|
+
let U = p(() => ie(R.value.customPalette)), W = S(B.value.map((e, t) => ({
|
|
159
159
|
...e,
|
|
160
|
-
value:
|
|
161
|
-
color: e.color ? u(e.color) : U.value[t] ||
|
|
160
|
+
value: R.value.style.animation.show ? 0 : e.value || 0,
|
|
161
|
+
color: e.color ? u(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
162
162
|
}))), G = S(!0);
|
|
163
163
|
function nt() {
|
|
164
|
-
if (!
|
|
164
|
+
if (!R.value.style.animation.show) {
|
|
165
165
|
G.value = !1;
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
let e =
|
|
169
|
-
G.value = !0, W.value =
|
|
168
|
+
let e = R.value.style.animation.animationFrames, t = B.value.map((e) => e.value || 0), n = t.map((t) => t / e), r = t.reduce((e, t) => e + t, 0), a = 0;
|
|
169
|
+
G.value = !0, W.value = B.value.map((e, t) => ({
|
|
170
170
|
...e,
|
|
171
171
|
value: 0,
|
|
172
|
-
color: e.color ? u(e.color) : U.value[t] ||
|
|
172
|
+
color: e.color ? u(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
173
173
|
}));
|
|
174
174
|
function s() {
|
|
175
|
-
|
|
175
|
+
a += r / e, a < r ? (W.value = W.value.map((e, r) => ({
|
|
176
176
|
...e,
|
|
177
|
-
value: Math.min(e.value + n[
|
|
178
|
-
color: e.color ? u(e.color) : U.value[
|
|
179
|
-
})), requestAnimationFrame(s)) : (G.value = !1, W.value =
|
|
177
|
+
value: Math.min(e.value + n[r], t[r]),
|
|
178
|
+
color: e.color ? u(e.color) : U.value[r] || o[r] || o[r % o.length]
|
|
179
|
+
})), requestAnimationFrame(s)) : (G.value = !1, W.value = B.value.map((e, n) => ({
|
|
180
180
|
...e,
|
|
181
181
|
value: t[n],
|
|
182
|
-
color: e.color ? u(e.color) : U.value[n] ||
|
|
183
|
-
id:
|
|
182
|
+
color: e.color ? u(e.color) : U.value[n] || o[n] || o[n % o.length],
|
|
183
|
+
id: i()
|
|
184
184
|
})));
|
|
185
185
|
}
|
|
186
186
|
s();
|
|
@@ -188,9 +188,9 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
188
188
|
_e(() => {
|
|
189
189
|
it();
|
|
190
190
|
});
|
|
191
|
-
let rt = p(() =>
|
|
191
|
+
let rt = p(() => R.value.debug);
|
|
192
192
|
function it() {
|
|
193
|
-
|
|
193
|
+
c(k.dataset) ? ee({
|
|
194
194
|
componentName: "VueUiSparkStackbar",
|
|
195
195
|
type: "dataset",
|
|
196
196
|
debug: rt.value
|
|
@@ -212,19 +212,19 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
212
212
|
let K = S({
|
|
213
213
|
width: 500,
|
|
214
214
|
height: 16
|
|
215
|
-
}), q = S([]), at = p(() =>
|
|
216
|
-
let n = e.value || 0,
|
|
215
|
+
}), q = S([]), at = p(() => B.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = p(() => W.value.map((e, t) => {
|
|
216
|
+
let n = e.value || 0, i = n / at.value, a = isNaN(i) ? 0 : i, s = a * K.value.width;
|
|
217
217
|
return {
|
|
218
218
|
...e,
|
|
219
|
-
color: u(
|
|
219
|
+
color: u(B.value[t]?.color ? B.value[t]?.color : U.value[t] || o[t] || o[t % o.length]),
|
|
220
220
|
value: n,
|
|
221
|
-
proportion:
|
|
221
|
+
proportion: a,
|
|
222
222
|
width: s,
|
|
223
223
|
seriesIndex: t,
|
|
224
|
-
proportionLabel:
|
|
225
|
-
v:
|
|
224
|
+
proportionLabel: r({
|
|
225
|
+
v: a * 100,
|
|
226
226
|
s: "%",
|
|
227
|
-
r:
|
|
227
|
+
r: R.value.style.legend.percentage.rounding
|
|
228
228
|
})
|
|
229
229
|
};
|
|
230
230
|
})), Y = p(() => J.value.filter((e, t) => !q.value.includes(t)));
|
|
@@ -237,7 +237,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
237
237
|
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.length < W.value.length - 1 && q.value.push(e), ut("selectLegend", Y.value);
|
|
238
238
|
}
|
|
239
239
|
function st(e) {
|
|
240
|
-
return J.value.length ? J.value.find((t) => t.name === e) || (
|
|
240
|
+
return J.value.length ? J.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
|
|
241
241
|
}
|
|
242
242
|
function ct(e) {
|
|
243
243
|
let t = st(e);
|
|
@@ -259,102 +259,102 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
259
259
|
ut("selectDatapoint", {
|
|
260
260
|
datapoint: e,
|
|
261
261
|
index: t
|
|
262
|
-
}),
|
|
262
|
+
}), R.value.events.datapointClick && !n && R.value.events.datapointClick({
|
|
263
263
|
datapoint: e,
|
|
264
264
|
seriesIndex: e.seriesIndex
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
function dt({ datapoint: e, seriesIndex: t }) {
|
|
268
|
-
j.value = !1,
|
|
268
|
+
j.value = !1, L.value = null, P.value = null, F.value = "pointer", R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
269
269
|
datapoint: e,
|
|
270
270
|
seriesIndex: e.seriesIndex
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
function ft({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
274
|
-
if (
|
|
274
|
+
if (N.value = !1, R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
275
275
|
datapoint: e,
|
|
276
276
|
seriesIndex: e.seriesIndex
|
|
277
|
-
}), !
|
|
278
|
-
|
|
277
|
+
}), !R.value.style.tooltip.show) return;
|
|
278
|
+
F.value = n, M.value = {
|
|
279
279
|
datapoint: e,
|
|
280
280
|
seriesIndex: t,
|
|
281
|
-
config:
|
|
281
|
+
config: R.value,
|
|
282
282
|
series: J.value
|
|
283
|
-
}, j.value = !0,
|
|
284
|
-
let
|
|
285
|
-
if (ne(
|
|
286
|
-
let t =
|
|
283
|
+
}, j.value = !0, L.value = t;
|
|
284
|
+
let i = R.value.style.tooltip.customFormat;
|
|
285
|
+
if (ne(i)) try {
|
|
286
|
+
let t = i({
|
|
287
287
|
seriesIndex: e.seriesIndex,
|
|
288
288
|
datapoint: e,
|
|
289
289
|
series: J.value,
|
|
290
|
-
config:
|
|
290
|
+
config: R.value
|
|
291
291
|
});
|
|
292
|
-
typeof t == "string" && (
|
|
292
|
+
typeof t == "string" && (Ze.value = t, N.value = !0);
|
|
293
293
|
} catch {
|
|
294
|
-
console.warn("Custom format cannot be applied."),
|
|
294
|
+
console.warn("Custom format cannot be applied."), N.value = !1;
|
|
295
295
|
}
|
|
296
|
-
if (!
|
|
296
|
+
if (!N.value) {
|
|
297
297
|
let n = "";
|
|
298
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${
|
|
299
|
-
p:
|
|
298
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${e.proportionLabel}</b>`, n += `<span>(${l(R.value.style.legend.value.formatter, e.value, r({
|
|
299
|
+
p: R.value.style.legend.value.prefix,
|
|
300
300
|
v: e.value,
|
|
301
|
-
s:
|
|
302
|
-
r:
|
|
301
|
+
s: R.value.style.legend.value.suffix,
|
|
302
|
+
r: R.value.style.legend.value.rounding
|
|
303
303
|
}), {
|
|
304
304
|
datapoint: e,
|
|
305
305
|
seriesIndex: t
|
|
306
|
-
})})</span>`,
|
|
306
|
+
})})</span>`, Ze.value = `<div>${n}</div>`;
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
function $(e) {
|
|
310
|
-
let t =
|
|
310
|
+
let t = $e.value[e];
|
|
311
311
|
t && typeof t.focus == "function" && t.focus();
|
|
312
312
|
}
|
|
313
313
|
function pt(e) {
|
|
314
|
-
if (!Number.isFinite(e) || !
|
|
314
|
+
if (!Number.isFinite(e) || !V.value) return;
|
|
315
315
|
let t = Z.value[e];
|
|
316
316
|
if (!t) return;
|
|
317
|
-
let n =
|
|
318
|
-
|
|
317
|
+
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
318
|
+
Qe.value = {
|
|
319
319
|
x: n.left + r / K.value.width * n.width,
|
|
320
320
|
y: n.top + i / K.value.height * n.height
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
function mt() {
|
|
324
|
-
|
|
324
|
+
P.value = null, I.value = !0;
|
|
325
325
|
}
|
|
326
326
|
function ht() {
|
|
327
|
-
|
|
327
|
+
P.value = null, F.value = "pointer", j.value = !1, L.value = null, I.value = !1;
|
|
328
328
|
}
|
|
329
329
|
function gt(e) {
|
|
330
|
-
if (!
|
|
330
|
+
if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
|
|
331
331
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape", a = e.key === "Home", o = e.key === "End";
|
|
332
332
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
333
333
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
334
|
-
|
|
334
|
+
P.value = null, F.value = "pointer", j.value = !1, L.value = null;
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
if (r) {
|
|
338
|
-
if (
|
|
339
|
-
let e = Z.value[
|
|
338
|
+
if (P.value === null) return;
|
|
339
|
+
let e = Z.value[P.value];
|
|
340
340
|
if (!e) return;
|
|
341
341
|
Q(e, e.seriesIndex);
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
|
-
let s =
|
|
344
|
+
let s = P.value;
|
|
345
345
|
a ? s = 0 : o ? s = Z.value.length - 1 : s === null || s < 0 || s >= Z.value.length ? s = n ? 0 : Z.value.length - 1 : n ? (s += 1, s >= Z.value.length && (s = 0)) : t && (--s, s < 0 && (s = Z.value.length - 1));
|
|
346
346
|
let c = Z.value[s];
|
|
347
|
-
c && (
|
|
347
|
+
c && (P.value = s, pt(s), ft({
|
|
348
348
|
datapoint: c,
|
|
349
349
|
seriesIndex: c.seriesIndex,
|
|
350
350
|
triggerMode: "keyboard"
|
|
351
351
|
}));
|
|
352
352
|
}
|
|
353
353
|
function _t(e) {
|
|
354
|
-
j.value = !1,
|
|
354
|
+
j.value = !1, P.value = null, F.value = "pointer", L.value = e.seriesIndex;
|
|
355
355
|
}
|
|
356
356
|
function vt() {
|
|
357
|
-
|
|
357
|
+
P.value = null, F.value = "pointer", j.value = !1, L.value = null;
|
|
358
358
|
}
|
|
359
359
|
function yt(e, t, n) {
|
|
360
360
|
let r = e.key === "Enter" || e.key === " ", i = e.key === "ArrowLeft" || e.key === "ArrowUp", a = e.key === "ArrowRight" || e.key === "ArrowDown", o = e.key === "Home", s = e.key === "End", c = e.key === "Escape";
|
|
@@ -384,18 +384,18 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
384
384
|
}
|
|
385
385
|
let bt = p(() => ({
|
|
386
386
|
headers: [
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
387
|
+
R.value.a11y.translations.series,
|
|
388
|
+
R.value.a11y.translations.percentage,
|
|
389
|
+
R.value.a11y.translations.value
|
|
390
390
|
],
|
|
391
391
|
rows: J.value.map((e, t) => [
|
|
392
392
|
e.name,
|
|
393
393
|
q.value.includes(t) ? " - " : e.proportionLabel,
|
|
394
|
-
l(
|
|
395
|
-
p:
|
|
394
|
+
l(R.value.style.legend.value.formatter, e.value, r({
|
|
395
|
+
p: R.value.style.legend.value.prefix,
|
|
396
396
|
v: e.value,
|
|
397
|
-
s:
|
|
398
|
-
r:
|
|
397
|
+
s: R.value.style.legend.value.suffix,
|
|
398
|
+
r: R.value.style.legend.value.rounding
|
|
399
399
|
}), {
|
|
400
400
|
datapoint: e,
|
|
401
401
|
seriesIndex: t
|
|
@@ -409,19 +409,19 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
409
409
|
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
410
410
|
ref_key: "sparkstackbarChart",
|
|
411
411
|
ref: Xe,
|
|
412
|
-
style: b(`width:100%; background:${
|
|
412
|
+
style: b(`width:100%; background:${R.value.style.backgroundColor}`)
|
|
413
413
|
}, [
|
|
414
414
|
g("div", {
|
|
415
415
|
id: `chart-instructions-${A.value}`,
|
|
416
416
|
class: "sr-only"
|
|
417
|
-
}, [g("p", null, T(
|
|
417
|
+
}, [g("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Se),
|
|
418
418
|
bt.value?.rows?.length ? (x(), me(de, {
|
|
419
419
|
key: 0,
|
|
420
420
|
uid: A.value,
|
|
421
421
|
head: bt.value.headers,
|
|
422
422
|
body: bt.value.rows,
|
|
423
|
-
notice:
|
|
424
|
-
caption:
|
|
423
|
+
notice: R.value.a11y.translations.tableAvailable,
|
|
424
|
+
caption: R.value.a11y.translations.tableCaption
|
|
425
425
|
}, null, 8, [
|
|
426
426
|
"uid",
|
|
427
427
|
"head",
|
|
@@ -429,20 +429,20 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
429
429
|
"notice",
|
|
430
430
|
"caption"
|
|
431
431
|
])) : m("", !0),
|
|
432
|
-
|
|
432
|
+
R.value.style.title.text ? (x(), h("div", {
|
|
433
433
|
key: 1,
|
|
434
|
-
style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${
|
|
434
|
+
style: b(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${R.value.style.title.margin};padding: 0 6px;text-align:${R.value.style.title.textAlign}`)
|
|
435
435
|
}, [g("div", {
|
|
436
436
|
class: "atom-title",
|
|
437
|
-
style: b(`font-size:${
|
|
438
|
-
}, T(
|
|
437
|
+
style: b(`font-size:${R.value.style.title.fontSize}px;color:${R.value.style.title.color};font-weight:${R.value.style.title.bold ? "bold" : "normal"}`)
|
|
438
|
+
}, T(R.value.style.title.text), 5), R.value.style.title.subtitle.text ? (x(), h("div", {
|
|
439
439
|
key: 0,
|
|
440
440
|
class: "atom-subtitle",
|
|
441
|
-
style: b(`font-size:${
|
|
442
|
-
}, T(
|
|
441
|
+
style: b(`font-size:${R.value.style.title.subtitle.fontSize}px;color:${R.value.style.title.subtitle.color};font-weight:${R.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
442
|
+
}, T(R.value.style.title.subtitle.text), 5)) : m("", !0)], 4)) : m("", !0),
|
|
443
443
|
g("div", Ce, [(x(), h("svg", {
|
|
444
444
|
ref_key: "svgRef",
|
|
445
|
-
ref:
|
|
445
|
+
ref: V,
|
|
446
446
|
xmlns: E(re),
|
|
447
447
|
width: "100%",
|
|
448
448
|
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
@@ -464,7 +464,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
464
464
|
}, null, 8, Ee),
|
|
465
465
|
g("stop", {
|
|
466
466
|
offset: "50%",
|
|
467
|
-
"stop-color": E(
|
|
467
|
+
"stop-color": E(s)(E(n)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
|
|
468
468
|
}, null, 8, De),
|
|
469
469
|
g("stop", {
|
|
470
470
|
offset: "100%",
|
|
@@ -477,7 +477,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
477
477
|
height: "5",
|
|
478
478
|
rx: "3",
|
|
479
479
|
ry: "3",
|
|
480
|
-
fill:
|
|
480
|
+
fill: R.value.style.backgroundColor
|
|
481
481
|
}, null, 8, Ae)])]),
|
|
482
482
|
at.value > 0 ? (x(), h("g", je, [
|
|
483
483
|
(x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
@@ -486,9 +486,9 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
486
486
|
y: 0,
|
|
487
487
|
width: e.width,
|
|
488
488
|
height: K.value.height,
|
|
489
|
-
fill:
|
|
490
|
-
class: v({ animated: !G.value && !E(
|
|
491
|
-
style: b({ opacity:
|
|
489
|
+
fill: R.value.style.bar.gradient.underlayerColor,
|
|
490
|
+
class: v({ animated: !G.value && !E(z) }),
|
|
491
|
+
style: b({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
492
492
|
}, null, 14, Me))), 128)),
|
|
493
493
|
(x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
494
494
|
key: `stack_${t}`,
|
|
@@ -496,11 +496,11 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
496
496
|
y: 0,
|
|
497
497
|
width: e.width,
|
|
498
498
|
height: K.value.height,
|
|
499
|
-
fill:
|
|
500
|
-
stroke:
|
|
499
|
+
fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${A.value})` : e.color,
|
|
500
|
+
stroke: R.value.style.backgroundColor,
|
|
501
501
|
"stroke-linecap": "round",
|
|
502
|
-
class: v({ animated: !G.value && !E(
|
|
503
|
-
style: b({ opacity:
|
|
502
|
+
class: v({ animated: !G.value && !E(z) }),
|
|
503
|
+
style: b({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
504
504
|
}, null, 14, Ne))), 128)),
|
|
505
505
|
(x(!0), h(f, null, C(Z.value, (e, t) => (x(), h("rect", {
|
|
506
506
|
key: `stack_trap_${t}`,
|
|
@@ -510,7 +510,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
510
510
|
height: K.value.height,
|
|
511
511
|
fill: "transparent",
|
|
512
512
|
stroke: "none",
|
|
513
|
-
class: v({ animated: !G.value && !E(
|
|
513
|
+
class: v({ animated: !G.value && !E(z) }),
|
|
514
514
|
onClick: () => Q(e, t),
|
|
515
515
|
onMouseenter: () => ft({
|
|
516
516
|
datapoint: e,
|
|
@@ -533,22 +533,22 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
533
533
|
rx: (K.value.height - 4) / 2
|
|
534
534
|
}, null, 8, Fe))
|
|
535
535
|
], 40, we)), e.$slots.hint ? (x(), h("div", Ie, [w(e.$slots, "hint", y(_({
|
|
536
|
-
hint:
|
|
537
|
-
isVisible:
|
|
536
|
+
hint: R.value.a11y.translations.keyboardNavigation,
|
|
537
|
+
isVisible: I.value
|
|
538
538
|
})), void 0, !0)])) : m("", !0)]),
|
|
539
|
-
|
|
539
|
+
R.value.style.legend.show ? (x(), h("div", {
|
|
540
540
|
key: 2,
|
|
541
|
-
style: b(`background:transparent;margin:0 auto;margin:${
|
|
541
|
+
style: b(`background:transparent;margin:0 auto;margin:${R.value.style.legend.margin};justify-content:${R.value.style.legend.textAlign === "left" ? "flex-start" : R.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
542
542
|
class: "vue-ui-sparkstackbar-legend",
|
|
543
543
|
"aria-label": "legend",
|
|
544
544
|
role: "toolbar"
|
|
545
|
-
}, [
|
|
545
|
+
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !E(z) ? (x(), me(ue, {
|
|
546
546
|
key: 0,
|
|
547
|
-
backgroundColor:
|
|
548
|
-
color:
|
|
549
|
-
fontSize:
|
|
547
|
+
backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
|
|
548
|
+
color: R.value.style.legend.selectAllToggle.color,
|
|
549
|
+
fontSize: R.value.style.legend.fontSize,
|
|
550
550
|
checked: q.value.length > 0,
|
|
551
|
-
isCursorPointer:
|
|
551
|
+
isCursorPointer: et.value,
|
|
552
552
|
onToggle: ot
|
|
553
553
|
}, null, 8, [
|
|
554
554
|
"backgroundColor",
|
|
@@ -561,7 +561,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
561
561
|
tabindex: "0",
|
|
562
562
|
"aria-pressed": q.value.includes(t),
|
|
563
563
|
"aria-label": `${e.name}, ${q.value.includes(t) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
564
|
-
style: b(`font-size:${
|
|
564
|
+
style: b(`font-size:${R.value.style.legend.fontSize}px;cursor:${et.value ? "pointer" : "default"}`),
|
|
565
565
|
class: v({
|
|
566
566
|
"vue-ui-sparkstackbar-legend-item": !0,
|
|
567
567
|
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(t)
|
|
@@ -573,12 +573,12 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
573
573
|
onBlur: vt,
|
|
574
574
|
onKeydown: (n) => yt(n, e, t)
|
|
575
575
|
}, [g("div", Re, [(x(), h("svg", {
|
|
576
|
-
height: `${
|
|
577
|
-
width: `${
|
|
576
|
+
height: `${R.value.style.legend.fontSize}px`,
|
|
577
|
+
width: `${R.value.style.legend.fontSize}px`,
|
|
578
578
|
viewBox: "0 0 10 10"
|
|
579
579
|
}, [g("defs", null, [g("radialGradient", { id: `legend_grad_${t}-${A.value}` }, [g("stop", {
|
|
580
580
|
offset: "0%",
|
|
581
|
-
"stop-color": E(
|
|
581
|
+
"stop-color": E(z) ? "#FFFFFF" : E(s)(E(n)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
|
|
582
582
|
}, null, 8, Ve), g("stop", {
|
|
583
583
|
offset: "100%",
|
|
584
584
|
"stop-color": e.color
|
|
@@ -586,49 +586,49 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
586
586
|
cx: 5,
|
|
587
587
|
cy: 5,
|
|
588
588
|
r: 5,
|
|
589
|
-
fill:
|
|
590
|
-
}, null, 8, Ue)], 8, ze)), E(
|
|
589
|
+
fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${t}-${A.value})` : e.color
|
|
590
|
+
}, null, 8, Ue)], 8, ze)), E(z) ? m("", !0) : (x(), h(f, { key: 0 }, [g("span", { style: b(`color:${R.value.style.legend.name.color}; font-weight:${R.value.style.legend.name.bold ? "bold" : "normal"}`) }, T(e.name), 5), G.value ? m("", !0) : (x(), h(f, { key: 0 }, [R.value.style.legend.percentage.show ? (x(), h("span", {
|
|
591
591
|
key: 0,
|
|
592
|
-
style: b(`font-weight:${
|
|
593
|
-
}, T(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0),
|
|
592
|
+
style: b(`font-weight:${R.value.style.legend.percentage.bold ? "bold" : "normal"};color:${R.value.style.legend.percentage.color}`)
|
|
593
|
+
}, T(q.value.includes(t) ? " - " : e.proportionLabel), 5)) : m("", !0), R.value.style.legend.value.show ? (x(), h("span", {
|
|
594
594
|
key: 1,
|
|
595
|
-
style: b(`font-weight:${
|
|
596
|
-
}, " (" + T(E(l)(
|
|
597
|
-
p:
|
|
595
|
+
style: b(`font-weight:${R.value.style.legend.value.bold ? "bold" : "normal"};color:${R.value.style.legend.value.color}`)
|
|
596
|
+
}, " (" + T(E(l)(R.value.style.legend.value.formatter, e.value, E(r)({
|
|
597
|
+
p: R.value.style.legend.value.prefix,
|
|
598
598
|
v: e.value,
|
|
599
|
-
s:
|
|
600
|
-
r:
|
|
599
|
+
s: R.value.style.legend.value.suffix,
|
|
600
|
+
r: R.value.style.legend.value.rounding
|
|
601
601
|
}), {
|
|
602
602
|
datapoint: e,
|
|
603
603
|
seriesIndex: t
|
|
604
604
|
})) + ") ", 5)) : m("", !0)], 64))], 64))])], 46, Le))), 256))], 4)) : m("", !0),
|
|
605
605
|
he(E(Ge), {
|
|
606
|
-
teleportTo:
|
|
607
|
-
show: j.value &&
|
|
606
|
+
teleportTo: R.value.style.tooltip.teleportTo,
|
|
607
|
+
show: j.value && R.value.style.tooltip.show,
|
|
608
608
|
parent: Xe.value,
|
|
609
|
-
backgroundColor:
|
|
610
|
-
color:
|
|
611
|
-
fontSize:
|
|
612
|
-
borderRadius:
|
|
613
|
-
borderColor:
|
|
614
|
-
borderWidth:
|
|
615
|
-
backgroundOpacity:
|
|
616
|
-
position:
|
|
617
|
-
content:
|
|
618
|
-
isCustom:
|
|
619
|
-
offsetX:
|
|
620
|
-
offsetY: -124 +
|
|
609
|
+
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
610
|
+
color: R.value.style.tooltip.color,
|
|
611
|
+
fontSize: R.value.style.tooltip.fontSize,
|
|
612
|
+
borderRadius: R.value.style.tooltip.borderRadius,
|
|
613
|
+
borderColor: R.value.style.tooltip.borderColor,
|
|
614
|
+
borderWidth: R.value.style.tooltip.borderWidth,
|
|
615
|
+
backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
|
|
616
|
+
position: R.value.style.tooltip.position,
|
|
617
|
+
content: Ze.value,
|
|
618
|
+
isCustom: N.value,
|
|
619
|
+
offsetX: R.value.style.tooltip.offsetX,
|
|
620
|
+
offsetY: -124 + R.value.style.tooltip.offsetY,
|
|
621
621
|
blockShiftY: !0,
|
|
622
|
-
smooth:
|
|
623
|
-
backdropFilter:
|
|
624
|
-
smoothForce:
|
|
625
|
-
smoothSnapThreshold:
|
|
626
|
-
isA11yMode:
|
|
627
|
-
a11yPosition:
|
|
622
|
+
smooth: R.value.style.tooltip.smooth,
|
|
623
|
+
backdropFilter: R.value.style.tooltip.backdropFilter,
|
|
624
|
+
smoothForce: R.value.style.tooltip.smoothForce,
|
|
625
|
+
smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
|
|
626
|
+
isA11yMode: F.value === "keyboard",
|
|
627
|
+
a11yPosition: Qe.value
|
|
628
628
|
}, {
|
|
629
|
-
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...
|
|
630
|
-
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...
|
|
631
|
-
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...
|
|
629
|
+
"tooltip-before": D(() => [w(e.$slots, "tooltip-before", y(_({ ...M.value })), void 0, !0)]),
|
|
630
|
+
tooltip: D(() => [w(e.$slots, "tooltip", y(_({ ...M.value })), void 0, !0)]),
|
|
631
|
+
"tooltip-after": D(() => [w(e.$slots, "tooltip-after", y(_({ ...M.value })), void 0, !0)]),
|
|
632
632
|
_: 3
|
|
633
633
|
}, 8, [
|
|
634
634
|
"teleportTo",
|
|
@@ -654,7 +654,7 @@ var xe = /* @__PURE__ */ e({ default: () => O }), Se = ["id"], Ce = { style: { p
|
|
|
654
654
|
"a11yPosition"
|
|
655
655
|
]),
|
|
656
656
|
e.$slots.source ? (x(), h("div", We, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
657
|
-
w(e.$slots, "skeleton", {}, () => [E(
|
|
657
|
+
w(e.$slots, "skeleton", {}, () => [E(z) ? (x(), me(se, { key: 0 })) : m("", !0)], !0)
|
|
658
658
|
], 4));
|
|
659
659
|
}
|
|
660
660
|
}, [["__scopeId", "data-v-706a37e5"]]);
|