vue-data-ui 3.10.0 → 3.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-O2XSymlZ.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-B9bGT7HU.js → BaseIcon-4uOct8re.js} +18 -18
- package/dist/{BaseZoomControls-B4rpv4Kk.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-VKEPgk58.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-DEwh__D8.js → DataTable-DyoDzNNY.js} +2 -2
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CxbOhI52.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-C-JOGZBL.js → PackageVersion-CQxJyGQr.js} +1 -1
- package/dist/{PenAndPaper-CulSakut.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-EQH4YKwe.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-Ddfxn6es.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B5L2jweB.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-5pXc4J-c.js → UserOptions-CX7Xsusk.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-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +3 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-BCt4DMkT.js → useNestedProp-Ckf_2P_V.js} +1 -1
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-CwfD22m4.js → vue-data-ui-GAruO_UT.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/{vue-ui-3d-bar-DAr11NEe.js → vue-ui-3d-bar-t_E9saCp.js} +222 -218
- package/dist/{vue-ui-accordion-CAXPDm31.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-KApqwR11.js → vue-ui-age-pyramid-DKlTGZ6m.js} +177 -173
- package/dist/{vue-ui-annotator-D-x-F49X.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-D3ZOexko.js → vue-ui-bullet-C4FXVy8_.js} +135 -131
- package/dist/{vue-ui-bump-BJUb7fNz.js → vue-ui-bump-BJZrexv4.js} +264 -260
- package/dist/{vue-ui-candlestick-BBwYtV1-.js → vue-ui-candlestick-P7w1YVT6.js} +304 -300
- package/dist/{vue-ui-carousel-table-DrzQReuc.js → vue-ui-carousel-table-DQk4RoWo.js} +4 -4
- package/dist/{vue-ui-chestnut-ByqOYfmS.js → vue-ui-chestnut-Co8x4We0.js} +326 -322
- package/dist/{vue-ui-chord-3k3MxDxL.js → vue-ui-chord-NjSRzToa.js} +171 -167
- package/dist/{vue-ui-circle-pack-U-fW2dBh.js → vue-ui-circle-pack-CwrgCRKX.js} +162 -158
- package/dist/{vue-ui-cursor-PxyKLKT4.js → vue-ui-cursor-Bh5-9JWm.js} +3 -3
- package/dist/{vue-ui-dag-BgB4pBHg.js → vue-ui-dag-BBGpjSzH.js} +451 -447
- package/dist/{vue-ui-dashboard-Bb0qmaCv.js → vue-ui-dashboard-ekbwnmce.js} +68 -68
- package/dist/{vue-ui-digits-DWt_f5c-.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-Ce4aLPAr.js → vue-ui-donut-DvLh8qa2.js} +467 -463
- package/dist/{vue-ui-donut-evolution-Dn8sOIr-.js → vue-ui-donut-evolution-BiLhAVY8.js} +354 -350
- package/dist/{vue-ui-dumbbell-Bu8opmEM.js → vue-ui-dumbbell-C2OWcZvr.js} +240 -236
- package/dist/{vue-ui-flow-CavJTxRY.js → vue-ui-flow-Cp2le1ur.js} +171 -167
- package/dist/{vue-ui-funnel-CWSmOHEt.js → vue-ui-funnel-ClGo8z4y.js} +133 -129
- package/dist/{vue-ui-galaxy-CqeQVqG-.js → vue-ui-galaxy-DTAl_-40.js} +146 -142
- package/dist/{vue-ui-gauge-DnU9JZ0v.js → vue-ui-gauge-DOG6-lgt.js} +175 -171
- package/dist/{vue-ui-geo-Dg8W127k.js → vue-ui-geo-BpWyHXwd.js} +123 -119
- package/dist/{vue-ui-gizmo-BfyTXxBY.js → vue-ui-gizmo-BMq5dzK4.js} +3 -3
- package/dist/{vue-ui-heatmap-D_JOEm4-.js → vue-ui-heatmap-Bp9HI0Zo.js} +231 -227
- package/dist/{vue-ui-history-plot-DgMc6-9X.js → vue-ui-history-plot-CVM1jz1X.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-BPX7YBdV.js → vue-ui-horizontal-bar-B0UY6b-O.js} +325 -321
- package/dist/{vue-ui-kpi-BqCS6onP.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-CcXuJ3iD.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-CX-pPp0u.js → vue-ui-molecule-CUppdL5f.js} +183 -179
- package/dist/{vue-ui-mood-radar-3nHlZfrB.js → vue-ui-mood-radar-QN25VSAw.js} +162 -158
- package/dist/{vue-ui-nested-donuts-cz79gQlJ.js → vue-ui-nested-donuts-ywWUDYjT.js} +178 -174
- package/dist/{vue-ui-onion-yseOpPeu.js → vue-ui-onion-DmwZ1gg_.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-Dqg_vJCM.js → vue-ui-parallel-coordinate-plot-Bz2ROYRD.js} +195 -191
- package/dist/{vue-ui-quadrant-D4UDUZoN.js → vue-ui-quadrant-CUpWOWF2.js} +243 -239
- package/dist/{vue-ui-quick-chart-BMDrPkAJ.js → vue-ui-quick-chart-CXrm_rzI.js} +295 -291
- package/dist/{vue-ui-radar-B_wSZVDb.js → vue-ui-radar-BqLjOOnJ.js} +168 -164
- package/dist/{vue-ui-rating-CBedYtOp.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-DydZv4Pf.js → vue-ui-relation-circle-CrYmJHLI.js} +185 -181
- package/dist/vue-ui-ridgeline-ZbmQXJxt.js +1306 -0
- package/dist/{vue-ui-rings-BdYnuNS7.js → vue-ui-rings-BxYoBfvT.js} +299 -295
- package/dist/{vue-ui-scatter-QISpPygj.js → vue-ui-scatter-BhJkoRBS.js} +354 -350
- package/dist/{vue-ui-skeleton-CdpD_Zjk.js → vue-ui-skeleton-Bg1akQqn.js} +3 -3
- package/dist/{vue-ui-smiley-CTeSlfZa.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-Jgho2QgC.js → vue-ui-spark-trend-CJtfXMSj.js} +120 -116
- package/dist/{vue-ui-sparkbar-CLqcdko6.js → vue-ui-sparkbar-DHJdmNDm.js} +84 -80
- package/dist/{vue-ui-sparkgauge-BA3NDOhA.js → vue-ui-sparkgauge-ANfPLNuD.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-fb8hGuCn.js → vue-ui-sparkhistogram-CIfYUXVZ.js} +109 -105
- package/dist/{vue-ui-sparkline-BWdvoOYj.js → vue-ui-sparkline-Bm0OmFUB.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DbbdPqIp.js → vue-ui-sparkstackbar-CCnnfsqG.js} +99 -95
- package/dist/{vue-ui-stackbar-MYly9iMc.js → vue-ui-stackbar-CK5is5H7.js} +376 -372
- package/dist/{vue-ui-stackline-L0q_GsYv.js → vue-ui-stackline-CFv2OUCL.js} +349 -345
- package/dist/{vue-ui-strip-plot-B7W1EZdY.js → vue-ui-strip-plot-CJ1Zkrhq.js} +248 -244
- package/dist/{vue-ui-table-WSRRp_nE.js → vue-ui-table-CMyYl8lE.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Bqr4Eubg.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-UhaEz2jD.js → vue-ui-table-sparkline-Bo4nuBEx.js} +174 -170
- package/dist/{vue-ui-thermometer-BFwmgdMO.js → vue-ui-thermometer-h3voYVGJ.js} +133 -129
- package/dist/{vue-ui-timer-CoLOwKwP.js → vue-ui-timer-CazY_Z4R.js} +5 -5
- package/dist/{vue-ui-tiremarks-CvXOa3z4.js → vue-ui-tiremarks-CTa_gpit.js} +156 -152
- package/dist/{vue-ui-treemap-C8HbMbin.js → vue-ui-treemap-B6AuOtaA.js} +161 -157
- package/dist/{vue-ui-waffle-rS6LRZNV.js → vue-ui-waffle-DnEBC07H.js} +185 -181
- package/dist/{vue-ui-wheel-BGle0ni9.js → vue-ui-wheel-DFU2vMsP.js} +125 -121
- package/dist/{vue-ui-word-cloud-Dj1lJdtL.js → vue-ui-word-cloud-DgY58NEj.js} +179 -175
- package/dist/{vue-ui-world-C7d5vM6d.js → vue-ui-world-xEUaTJDk.js} +6 -6
- package/dist/{vue-ui-xy-canvas-CoBMpLeE.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/dist/{vue-ui-xy-De-FDHwh.js → vue-ui-xy-spqKboQb.js} +697 -693
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BGerPYkY.js +0 -1302
|
@@ -1,40 +1,44 @@
|
|
|
1
|
-
import { defineAsyncComponent as L, useSlots as
|
|
2
|
-
import { c as
|
|
3
|
-
import { b as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { _ as
|
|
17
|
-
const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rect: { rounded: !1, stroke: "#1A1A1A" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } },
|
|
1
|
+
import { defineAsyncComponent as L, useSlots as Qt, computed as v, ref as i, toRefs as Zt, watch as J, shallowRef as lt, onMounted as el, onBeforeUnmount as tl, createElementBlock as c, openBlock as u, unref as d, normalizeStyle as ae, normalizeClass as at, createBlock as E, createCommentVNode as C, createElementVNode as k, createVNode as oe, withCtx as f, renderSlot as h, normalizeProps as x, guardReactiveProps as $, createSlots as Ae, Fragment as T, renderList as z, mergeProps as xe, toDisplayString as re, Teleport as ll, resolveDynamicComponent as al, createTextVNode as ot, nextTick as ol } from "vue";
|
|
2
|
+
import { c as rl, t as nl, i as ul, j as R, o as rt, g as $e, l as sl, k as il, a as K, d as D, X as cl, s as vl, h as dl, x as fl, m as hl, v as pl, r as gl, G as yl, y as bl, _ as ml } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { b as Cl } from "./labelUtils-D6Y-n7cD.js";
|
|
4
|
+
import { t as kl, u as wl } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as Al, a as Te } from "./useNestedProp-Ckf_2P_V.js";
|
|
6
|
+
import { u as xl, B as $l } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as Tl } from "./usePrinter-1NmjuP-i.js";
|
|
8
|
+
import { u as Fl } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as Il } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as Sl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as _l } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import Bl from "./img-6fNF_rG0.js";
|
|
13
|
+
import { _ as Ol } from "./Shape-PzdCMGsP.js";
|
|
14
|
+
import Dl from "./Title-NgeRXqRA.js";
|
|
15
|
+
import Pl from "./Legend-DN5UJOBH.js";
|
|
16
|
+
import { _ as Ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
const nt = { userOptions: { show: !1 }, style: { chart: { legend: { show: !1 }, layout: { rect: { useGradient: !1 } } } } }, ut = { userOptions: { show: !1 }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rect: { rounded: !1, stroke: "#1A1A1A", useGradient: !1 } }, legend: { show: !1, backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { rect: { rounded: !1, stroke: "#1A1A1A" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, it = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { rect: { rounded: !1, stroke: "#FFF8E1", useGradient: !1 } }, legend: { color: "#424242", backgroundColor: "#FFF8E1" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, ct = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { rect: { rounded: !1, stroke: "#1E1E1E", useGradient: !1 } }, legend: { color: "#BDBDBD", backgroundColor: "#1E1E1E" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, vt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { rect: { rounded: !1, stroke: "#66CC66", useGradient: !1 } }, legend: { color: "#99AA99", backgroundColor: "#1A1A1A" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, dt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { rect: { rounding: 4, stroke: "#fbfafa" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, ft = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { rect: { rounded: !1, stroke: "#404C5A", useGradient: !1 } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, ht = {
|
|
18
18
|
default: {},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
minimal: nt,
|
|
20
|
+
minimalDark: ut,
|
|
21
|
+
dark: st,
|
|
22
|
+
celebration: it,
|
|
23
|
+
celebrationNight: ct,
|
|
24
|
+
hack: vt,
|
|
25
|
+
zen: dt,
|
|
26
|
+
concrete: ft
|
|
27
|
+
}, Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
28
|
__proto__: null,
|
|
27
|
-
celebration:
|
|
28
|
-
celebrationNight:
|
|
29
|
-
concrete:
|
|
30
|
-
dark:
|
|
31
|
-
default:
|
|
32
|
-
hack:
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
celebration: it,
|
|
30
|
+
celebrationNight: ct,
|
|
31
|
+
concrete: ft,
|
|
32
|
+
dark: st,
|
|
33
|
+
default: ht,
|
|
34
|
+
hack: vt,
|
|
35
|
+
minimal: nt,
|
|
36
|
+
minimalDark: ut,
|
|
37
|
+
zen: dt
|
|
38
|
+
}, Symbol.toStringTag, { value: "Module" })), El = ["id"], zl = ["id"], Nl = ["xmlns", "viewBox"], Vl = ["id"], Ml = ["stop-color"], Rl = ["stop-color"], Ul = ["id"], Gl = ["x", "y", "height", "width"], Wl = ["height", "width"], jl = { key: 0 }, ql = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Hl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Xl = { key: 1 }, Yl = ["rx", "x", "y", "height", "width", "fill", "filter"], Jl = ["textContent", "x", "y", "font-size", "fill", "filter"], Kl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Ql = {
|
|
35
39
|
key: 4,
|
|
36
40
|
class: "vue-data-ui-watermark"
|
|
37
|
-
},
|
|
41
|
+
}, Zl = ["id"], ea = ["onClick"], ta = ["innerHTML"], la = {
|
|
38
42
|
__name: "vue-ui-waffle",
|
|
39
43
|
props: {
|
|
40
44
|
config: {
|
|
@@ -51,9 +55,9 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
57
|
emits: ["selectLegend"],
|
|
54
|
-
setup(
|
|
55
|
-
const
|
|
56
|
-
...
|
|
58
|
+
setup(pt, { expose: gt, emit: yt }) {
|
|
59
|
+
const bt = L(() => import("./Tooltip-B6qvABDL.js")), mt = L(() => import("./BaseIcon-4uOct8re.js")), Ct = L(() => import("./DataTable-DyoDzNNY.js")), kt = L(() => import("./vue-ui-accordion-DFKaB_05.js")), wt = L(() => import("./UserOptions-CX7Xsusk.js")), At = L(() => import("./PenAndPaper-LTuSTmWE.js")), xt = L(() => import("./PackageVersion-CQxJyGQr.js")), $t = L(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_waffle: Tt } = Al(), { isThemeValid: Ft, warnInvalidTheme: It } = Il(), m = pt, St = Qt(), ne = v(() => !!m.dataset && m.dataset.length), b = i(rl()), ue = i(!1), se = i(""), U = i(null), Fe = i(0), F = i(null), Ie = i(null), Se = i(null), _e = i(null), Be = i(null), Oe = i(0), De = i(0), Pe = i(0), Le = i(!1), j = i(null), ie = i(null), e = i(fe()), { loading: Ee, FINAL_DATASET: Q, manualLoading: ce } = xl({
|
|
60
|
+
...Zt(m),
|
|
57
61
|
FINAL_CONFIG: e,
|
|
58
62
|
prepareConfig: fe,
|
|
59
63
|
callback: () => {
|
|
@@ -78,7 +82,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
78
82
|
color: "#CACACA"
|
|
79
83
|
}
|
|
80
84
|
],
|
|
81
|
-
skeletonConfig:
|
|
85
|
+
skeletonConfig: nl({
|
|
82
86
|
defaultConfig: e.value,
|
|
83
87
|
userConfig: {
|
|
84
88
|
useCustomCells: !1,
|
|
@@ -104,17 +108,17 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
104
108
|
}
|
|
105
109
|
}
|
|
106
110
|
})
|
|
107
|
-
}), { userOptionsVisible: ve, setUserOptionsVisibility: ze, keepUserOptionState: Ne } =
|
|
111
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: ze, keepUserOptionState: Ne } = Sl({ config: e.value }), { svgRef: de } = _l({ config: e.value.style.chart.title });
|
|
108
112
|
function fe() {
|
|
109
113
|
const t = Te({
|
|
110
114
|
userConfig: m.config,
|
|
111
|
-
defaultConfig:
|
|
115
|
+
defaultConfig: Tt
|
|
112
116
|
}), l = t.theme;
|
|
113
117
|
if (!l) return t;
|
|
114
|
-
if (
|
|
115
|
-
return
|
|
118
|
+
if (!Ft.value(t))
|
|
119
|
+
return It(t), t;
|
|
116
120
|
const a = Te({
|
|
117
|
-
userConfig:
|
|
121
|
+
userConfig: ht[l] || m.config,
|
|
118
122
|
defaultConfig: t
|
|
119
123
|
}), o = Te({
|
|
120
124
|
userConfig: m.config,
|
|
@@ -122,7 +126,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
122
126
|
});
|
|
123
127
|
return {
|
|
124
128
|
...o,
|
|
125
|
-
customPalette: o.customPalette.length ? o.customPalette :
|
|
129
|
+
customPalette: o.customPalette.length ? o.customPalette : ul[l] || R
|
|
126
130
|
};
|
|
127
131
|
}
|
|
128
132
|
J(() => m.config, (t) => {
|
|
@@ -134,8 +138,8 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
134
138
|
componentName: "VueUiWaffle",
|
|
135
139
|
type: "dataset",
|
|
136
140
|
debug: Ve.value
|
|
137
|
-
}),
|
|
138
|
-
|
|
141
|
+
}), ne.value = !1, ce.value = !0) : m.dataset.forEach((t, l) => {
|
|
142
|
+
sl({
|
|
139
143
|
datasetObject: t,
|
|
140
144
|
requiredAttributes: ["name", "values"]
|
|
141
145
|
}).forEach((a) => {
|
|
@@ -148,8 +152,8 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
148
152
|
});
|
|
149
153
|
});
|
|
150
154
|
}), rt(m.dataset) || (ce.value = e.value.loading), e.value.responsive) {
|
|
151
|
-
const t =
|
|
152
|
-
const { width: l, height: a } =
|
|
155
|
+
const t = kl(() => {
|
|
156
|
+
const { width: l, height: a } = wl({
|
|
153
157
|
chart: F.value,
|
|
154
158
|
title: e.value.style.chart.title.text ? Ie.value : null,
|
|
155
159
|
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
@@ -163,16 +167,16 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
163
167
|
P.value && (G.value && P.value.unobserve(G.value), P.value.disconnect()), P.value = new ResizeObserver(t), G.value = F.value.parentNode, P.value.observe(G.value);
|
|
164
168
|
}
|
|
165
169
|
}
|
|
166
|
-
|
|
170
|
+
el(() => {
|
|
167
171
|
Le.value = !0, Me();
|
|
168
|
-
}),
|
|
172
|
+
}), tl(() => {
|
|
169
173
|
P.value && (G.value && P.value.unobserve(G.value), P.value.disconnect());
|
|
170
174
|
});
|
|
171
|
-
const { isPrinting: Re, isImaging: Ue, generatePdf: Ge, generateImage: We } =
|
|
175
|
+
const { isPrinting: Re, isImaging: Ue, generatePdf: Ge, generateImage: We } = Tl({
|
|
172
176
|
elementId: `vue-ui-waffle_${b.value}`,
|
|
173
177
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle",
|
|
174
178
|
options: e.value.userOptions.print
|
|
175
|
-
}),
|
|
179
|
+
}), _t = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), je = v(() => il(e.value.customPalette)), w = i({
|
|
176
180
|
showTable: e.value.table.show,
|
|
177
181
|
showTooltip: e.value.style.chart.tooltip.show
|
|
178
182
|
});
|
|
@@ -190,13 +194,13 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
190
194
|
left: 0,
|
|
191
195
|
height: 512,
|
|
192
196
|
width: 512
|
|
193
|
-
}), S = v(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), _ = v(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size),
|
|
197
|
+
}), S = v(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), _ = v(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), Bt = v(() => Math.max(1e-4, I.value.width / e.value.style.chart.layout.grid.size)), qe = v(() => Math.max(1e-4, I.value.height / e.value.style.chart.layout.grid.size));
|
|
194
198
|
function He(t) {
|
|
195
|
-
const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((A, we) => A + we, 0), o = t.map((A) => A / a * l), r = o.map(Math.floor),
|
|
199
|
+
const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((A, we) => A + we, 0), o = t.map((A) => A / a * l), r = o.map(Math.floor), n = o.map((A) => A % 1);
|
|
196
200
|
let g = l - r.reduce((A, we) => A + we, 0);
|
|
197
201
|
for (; g > 0; ) {
|
|
198
|
-
let A =
|
|
199
|
-
r[A] += 1,
|
|
202
|
+
let A = n.indexOf(Math.max(...n));
|
|
203
|
+
r[A] += 1, n[A] = 0, g -= 1;
|
|
200
204
|
}
|
|
201
205
|
return r;
|
|
202
206
|
}
|
|
@@ -204,7 +208,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
204
208
|
function he() {
|
|
205
209
|
return q.value = Q.value.flatMap((t) => t.values.reduce((l, a) => l + a, 0)).reduce((t, l) => t + l, 0) === 0, Q.value.map((t, l) => ({
|
|
206
210
|
...t,
|
|
207
|
-
color:
|
|
211
|
+
color: hl(t.color) || je.value[l] || R[l] || R[l % R.length],
|
|
208
212
|
uid: `serie_${l}`,
|
|
209
213
|
absoluteIndex: l
|
|
210
214
|
}));
|
|
@@ -215,10 +219,10 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
215
219
|
}, { immediate: !0 }), J(() => m.dataset, (t) => {
|
|
216
220
|
p.value = he();
|
|
217
221
|
}, { deep: !0 });
|
|
218
|
-
const
|
|
222
|
+
const Ot = v(() => {
|
|
219
223
|
const t = p.value.filter((l, a) => !y.value.includes(l.uid)).map((l, a) => q.value ? 1 : (l.values || []).reduce((o, r) => o + r, 0));
|
|
220
224
|
return He(t);
|
|
221
|
-
}),
|
|
225
|
+
}), Dt = v(() => {
|
|
222
226
|
const t = p.value.map((l, a) => q.value ? 1 : (l.values || []).reduce((o, r) => o + r));
|
|
223
227
|
return He(t);
|
|
224
228
|
}), H = v(() => (Q.value.forEach((t, l) => {
|
|
@@ -235,7 +239,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
235
239
|
color: t.color,
|
|
236
240
|
value: (t.values || []).reduce((a, o) => a + o, 0),
|
|
237
241
|
absoluteValues: t.values || [],
|
|
238
|
-
proportion:
|
|
242
|
+
proportion: Ot.value[l]
|
|
239
243
|
})))), ge = v(() => p.value.map((t, l) => ({
|
|
240
244
|
absoluteIndex: t.absoluteIndex,
|
|
241
245
|
uid: t.uid,
|
|
@@ -243,9 +247,9 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
243
247
|
color: t.color,
|
|
244
248
|
value: (t.values || []).reduce((a, o) => a + o, 0),
|
|
245
249
|
absoluteValues: t.values || [],
|
|
246
|
-
proportion:
|
|
250
|
+
proportion: Dt.value[l]
|
|
247
251
|
})));
|
|
248
|
-
function
|
|
252
|
+
function Pt() {
|
|
249
253
|
return ge.value.map((t) => ({
|
|
250
254
|
name: t.name,
|
|
251
255
|
color: t.color,
|
|
@@ -253,19 +257,19 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
253
257
|
proportion: t.proportion
|
|
254
258
|
}));
|
|
255
259
|
}
|
|
256
|
-
const
|
|
260
|
+
const Lt = v(() => {
|
|
257
261
|
let t = 0;
|
|
258
262
|
return H.value.map((l, a) => {
|
|
259
|
-
const o = t, r = o + l.proportion,
|
|
263
|
+
const o = t, r = o + l.proportion, n = [];
|
|
260
264
|
for (let g = Math.floor(o); g < Math.floor(r); g += 1)
|
|
261
|
-
|
|
265
|
+
n.push(g);
|
|
262
266
|
return t = r, {
|
|
263
267
|
...l,
|
|
264
268
|
start: o,
|
|
265
|
-
rects:
|
|
269
|
+
rects: n
|
|
266
270
|
};
|
|
267
271
|
});
|
|
268
|
-
}), s = v(() =>
|
|
272
|
+
}), s = v(() => Lt.value.flatMap((t, l) => t.rects.map((a, o) => ({
|
|
269
273
|
isFirst: o === 0,
|
|
270
274
|
isLongEnough: a.length > 2,
|
|
271
275
|
name: t.name,
|
|
@@ -296,35 +300,35 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
296
300
|
y.value.includes(t) ? y.value = y.value.filter((r) => r !== t) : y.value.length < V.value.length - 1 && V.value.length > 1 && y.value.push(t);
|
|
297
301
|
return;
|
|
298
302
|
}
|
|
299
|
-
const l = pe.value.find((r) => r.uid === t).values.reduce((r,
|
|
303
|
+
const l = pe.value.find((r) => r.uid === t).values.reduce((r, n) => r + n, 0), a = p.value.find((r) => r.uid === t).values.reduce((r, n) => r + n, 0);
|
|
300
304
|
let o = a;
|
|
301
305
|
if (!(a === 0 && l === 0)) {
|
|
302
306
|
if (y.value.includes(t)) {
|
|
303
|
-
let
|
|
307
|
+
let n = function() {
|
|
304
308
|
o > r ? (cancelAnimationFrame(Xe.value), p.value = p.value.map((g, A) => g.uid === t ? {
|
|
305
309
|
...g,
|
|
306
310
|
values: [r]
|
|
307
311
|
} : g), X.value = !1) : (X.value = !0, o += r * 0.025, p.value = p.value.map((g, A) => g.uid === t ? {
|
|
308
312
|
...g,
|
|
309
313
|
values: [o]
|
|
310
|
-
} : g), Xe.value = requestAnimationFrame(
|
|
314
|
+
} : g), Xe.value = requestAnimationFrame(n));
|
|
311
315
|
};
|
|
312
316
|
y.value = y.value.filter((g) => g !== t);
|
|
313
317
|
const r = l;
|
|
314
|
-
|
|
318
|
+
n();
|
|
315
319
|
} else if (y.value.length < V.value.length - 1 && V.value.length > 1) {
|
|
316
320
|
let r = function() {
|
|
317
|
-
o < a / 100 ? (cancelAnimationFrame(Ye.value), y.value.push(t), p.value = p.value.map((
|
|
318
|
-
...
|
|
321
|
+
o < a / 100 ? (cancelAnimationFrame(Ye.value), y.value.push(t), p.value = p.value.map((n, g) => n.uid === t ? {
|
|
322
|
+
...n,
|
|
319
323
|
values: [0]
|
|
320
|
-
} :
|
|
321
|
-
...
|
|
324
|
+
} : n), X.value = !1) : (X.value = !0, o /= 1.15, p.value = p.value.map((n) => n.uid === t ? {
|
|
325
|
+
...n,
|
|
322
326
|
values: [o]
|
|
323
|
-
} :
|
|
327
|
+
} : n), Ye.value = requestAnimationFrame(r));
|
|
324
328
|
};
|
|
325
329
|
r();
|
|
326
330
|
}
|
|
327
|
-
|
|
331
|
+
Ut("selectLegend", H.value.map((r) => ({
|
|
328
332
|
name: r.name,
|
|
329
333
|
color: r.color,
|
|
330
334
|
value: r.value,
|
|
@@ -338,11 +342,11 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
338
342
|
const l = ge.value.find((a) => a.name === t);
|
|
339
343
|
return l || (e.value.debug && console.warn(`VueUiWaffle - Series name not found "${t}"`), null);
|
|
340
344
|
}
|
|
341
|
-
function
|
|
345
|
+
function Et(t) {
|
|
342
346
|
const l = Je(t);
|
|
343
347
|
l !== null && y.value.includes(l.uid) && Z(l.uid);
|
|
344
348
|
}
|
|
345
|
-
function
|
|
349
|
+
function zt(t) {
|
|
346
350
|
const l = Je(t);
|
|
347
351
|
l !== null && (y.value.includes(l.uid) || Z(l.uid));
|
|
348
352
|
}
|
|
@@ -353,7 +357,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
353
357
|
showPercentage: o,
|
|
354
358
|
config: r
|
|
355
359
|
}) {
|
|
356
|
-
return
|
|
360
|
+
return Cl({
|
|
357
361
|
config: r,
|
|
358
362
|
val: t,
|
|
359
363
|
percentage: l,
|
|
@@ -362,7 +366,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
362
366
|
});
|
|
363
367
|
}
|
|
364
368
|
const V = v(() => p.value.map((t, l) => {
|
|
365
|
-
const a = (t.values || []).reduce((r,
|
|
369
|
+
const a = (t.values || []).reduce((r, n) => r + n, 0), o = a / p.value.map((r) => (r.values || []).reduce((n, g) => n + g, 0)).reduce((r, n) => r + n, 0);
|
|
366
370
|
return {
|
|
367
371
|
name: t.name,
|
|
368
372
|
color: t.color || je[l] || R[l] || R[l % R.length],
|
|
@@ -391,7 +395,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
391
395
|
isSegregated: y.value.includes(t.uid),
|
|
392
396
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${r}`
|
|
393
397
|
};
|
|
394
|
-
})),
|
|
398
|
+
})), Nt = v(() => ({
|
|
395
399
|
cy: "waffle-div-legend",
|
|
396
400
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
397
401
|
color: e.value.style.chart.legend.color,
|
|
@@ -399,15 +403,15 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
399
403
|
paddingBottom: 12,
|
|
400
404
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
401
405
|
})), B = v(() => H.value.map((t) => t.value).reduce((t, l) => t + l, 0)), be = i(null), me = i(null);
|
|
402
|
-
function
|
|
406
|
+
function Vt(t) {
|
|
403
407
|
const l = s.value[t];
|
|
404
408
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.serieIndex });
|
|
405
409
|
}
|
|
406
|
-
function
|
|
410
|
+
function Mt(t) {
|
|
407
411
|
const l = s.value[t];
|
|
408
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), me.value = null,
|
|
412
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), me.value = null, ue.value = !1, U.value = null;
|
|
409
413
|
}
|
|
410
|
-
function
|
|
414
|
+
function Rt(t) {
|
|
411
415
|
if (y.value.length === m.dataset.length) return;
|
|
412
416
|
const l = s.value[t];
|
|
413
417
|
be.value = {
|
|
@@ -415,9 +419,9 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
415
419
|
seriesIndex: l.absoluteIndex,
|
|
416
420
|
series: p.value,
|
|
417
421
|
config: e.value
|
|
418
|
-
}, e.value.events.datapointEnter && me.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), me.value = l.serieIndex,
|
|
422
|
+
}, e.value.events.datapointEnter && me.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), me.value = l.serieIndex, ue.value = !0, U.value = s.value[t].serieIndex;
|
|
419
423
|
const a = e.value.style.chart.tooltip.customFormat;
|
|
420
|
-
if (
|
|
424
|
+
if (bl(a) && ml(() => a({
|
|
421
425
|
seriesIndex: s.value[t].absoluteIndex,
|
|
422
426
|
datapoint: l,
|
|
423
427
|
series: p.value,
|
|
@@ -431,7 +435,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
431
435
|
});
|
|
432
436
|
else {
|
|
433
437
|
let o = "";
|
|
434
|
-
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${l.color}" />${
|
|
438
|
+
o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${l.color}" />${St.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, o += `<b>${ye({
|
|
435
439
|
config: e.value.style.chart.tooltip,
|
|
436
440
|
showVal: e.value.style.chart.tooltip.showValue,
|
|
437
441
|
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
@@ -458,7 +462,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
458
462
|
})}</b></div>`, se.value = o;
|
|
459
463
|
}
|
|
460
464
|
}
|
|
461
|
-
const
|
|
465
|
+
const Ut = yt, O = v(() => {
|
|
462
466
|
const t = H.value.map((a) => ({
|
|
463
467
|
name: a.name,
|
|
464
468
|
color: a.color
|
|
@@ -468,10 +472,10 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
468
472
|
function ee(t) {
|
|
469
473
|
return e.value.useBlurOnHover && ![null, void 0].includes(U.value) && U.value !== t ? `url(#blur_${b.value})` : "";
|
|
470
474
|
}
|
|
471
|
-
function
|
|
475
|
+
function Gt(t, l) {
|
|
472
476
|
return e.value.style.chart.layout.labels.captions.show ? s.value.length && !X.value && !e.value.style.chart.layout.grid.vertical && (s.value[t].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || s.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && s.value[t].absoluteStartIndex) : !1;
|
|
473
477
|
}
|
|
474
|
-
function
|
|
478
|
+
function Wt(t, l = null) {
|
|
475
479
|
const a = K(
|
|
476
480
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
477
481
|
s.value[t].value,
|
|
@@ -482,21 +486,21 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
482
486
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
483
487
|
}),
|
|
484
488
|
{ datapoint: s.value[t], position: l }
|
|
485
|
-
), o = D({ v: s.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), r = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ?
|
|
489
|
+
), o = D({ v: s.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), r = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? yl({ source: s.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : s.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), n = e.value.style.chart.layout.labels.captions.showSerieName ? r : "", g = ye({
|
|
486
490
|
val: a,
|
|
487
491
|
percentage: o,
|
|
488
492
|
showVal: e.value.style.chart.layout.labels.captions.showValue,
|
|
489
493
|
showPercentage: e.value.style.chart.layout.labels.captions.showPercentage,
|
|
490
494
|
config: e.value.style.chart.layout.labels.dataLabels
|
|
491
495
|
});
|
|
492
|
-
return `${
|
|
496
|
+
return `${n} ${g}`;
|
|
493
497
|
}
|
|
494
498
|
function Ce(t = null) {
|
|
495
|
-
|
|
496
|
-
const l = O.value.head.map((r,
|
|
499
|
+
ol(() => {
|
|
500
|
+
const l = O.value.head.map((r, n) => [[
|
|
497
501
|
r.name
|
|
498
|
-
], [O.value.body[
|
|
499
|
-
t ? t(o) :
|
|
502
|
+
], [O.value.body[n]], [isNaN(O.value.body[n] / B.value) ? "-" : O.value.body[n] / B.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = pl(a);
|
|
503
|
+
t ? t(o) : gl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
500
504
|
});
|
|
501
505
|
}
|
|
502
506
|
const te = v(() => {
|
|
@@ -513,23 +517,23 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
513
517
|
})
|
|
514
518
|
),
|
|
515
519
|
"100%"
|
|
516
|
-
], l = O.value.head.map((r,
|
|
520
|
+
], l = O.value.head.map((r, n) => [
|
|
517
521
|
{
|
|
518
522
|
color: r.color,
|
|
519
523
|
name: r.name
|
|
520
524
|
},
|
|
521
525
|
K(
|
|
522
526
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
523
|
-
O.value.body[
|
|
527
|
+
O.value.body[n],
|
|
524
528
|
D({
|
|
525
529
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
526
|
-
v: O.value.body[
|
|
530
|
+
v: O.value.body[n],
|
|
527
531
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
528
532
|
r: e.value.table.td.roundingValue
|
|
529
533
|
})
|
|
530
534
|
),
|
|
531
|
-
isNaN(O.value.body[
|
|
532
|
-
v: O.value.body[
|
|
535
|
+
isNaN(O.value.body[n] / B.value) ? "-" : D({
|
|
536
|
+
v: O.value.body[n] / B.value * 100,
|
|
533
537
|
s: "%",
|
|
534
538
|
r: e.value.table.td.roundingPercentage
|
|
535
539
|
})
|
|
@@ -571,12 +575,12 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
571
575
|
function ke() {
|
|
572
576
|
le.value = !le.value;
|
|
573
577
|
}
|
|
574
|
-
async function
|
|
578
|
+
async function jt({ scale: t = 2 } = {}) {
|
|
575
579
|
if (!F.value) return;
|
|
576
|
-
const { width: l, height: a } = F.value.getBoundingClientRect(), o = l / a, { imageUri: r, base64:
|
|
580
|
+
const { width: l, height: a } = F.value.getBoundingClientRect(), o = l / a, { imageUri: r, base64: n } = await Bl({ domElement: F.value, base64: !0, img: !0, scale: t });
|
|
577
581
|
return {
|
|
578
582
|
imageUri: r,
|
|
579
|
-
base64:
|
|
583
|
+
base64: n,
|
|
580
584
|
title: e.value.style.chart.title.text,
|
|
581
585
|
width: l,
|
|
582
586
|
height: a,
|
|
@@ -586,7 +590,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
586
590
|
const Y = v(() => {
|
|
587
591
|
const t = e.value.table.useDialog && !e.value.table.show, l = w.value.showTable;
|
|
588
592
|
return {
|
|
589
|
-
component: t ?
|
|
593
|
+
component: t ? $t : kt,
|
|
590
594
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
591
595
|
props: t ? {
|
|
592
596
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -619,37 +623,37 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
619
623
|
function et() {
|
|
620
624
|
w.value.showTable = !1, ie.value && ie.value.setTableIconState(!1);
|
|
621
625
|
}
|
|
622
|
-
const
|
|
626
|
+
const qt = v(() => V.value.map((t) => ({
|
|
623
627
|
...t,
|
|
624
628
|
name: t.display
|
|
625
|
-
}))),
|
|
629
|
+
}))), Ht = v(() => e.value.style.chart.backgroundColor), Xt = v(() => e.value.style.chart.legend), Yt = v(() => e.value.style.chart.title), { exportSvg: Jt, getSvg: Kt } = Fl({
|
|
626
630
|
svg: de,
|
|
627
|
-
title:
|
|
628
|
-
legend:
|
|
629
|
-
legendItems:
|
|
630
|
-
backgroundColor:
|
|
631
|
+
title: Yt,
|
|
632
|
+
legend: Xt,
|
|
633
|
+
legendItems: qt,
|
|
634
|
+
backgroundColor: Ht
|
|
631
635
|
});
|
|
632
636
|
async function tt({ isCb: t }) {
|
|
633
637
|
if (t) {
|
|
634
|
-
const { blob: l, url: a, text: o, dataUrl: r } = await
|
|
638
|
+
const { blob: l, url: a, text: o, dataUrl: r } = await Kt();
|
|
635
639
|
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: r });
|
|
636
640
|
} else
|
|
637
|
-
|
|
641
|
+
Jt();
|
|
638
642
|
}
|
|
639
|
-
return
|
|
640
|
-
getData:
|
|
641
|
-
getImage:
|
|
643
|
+
return gt({
|
|
644
|
+
getData: Pt,
|
|
645
|
+
getImage: jt,
|
|
642
646
|
generatePdf: Ge,
|
|
643
647
|
generateCsv: Ce,
|
|
644
648
|
generateImage: We,
|
|
645
649
|
generateSvg: tt,
|
|
646
|
-
hideSeries:
|
|
647
|
-
showSeries:
|
|
650
|
+
hideSeries: zt,
|
|
651
|
+
showSeries: Et,
|
|
648
652
|
toggleTable: Qe,
|
|
649
653
|
toggleTooltip: Ze,
|
|
650
654
|
toggleAnnotator: ke,
|
|
651
655
|
toggleFullscreen: Ke
|
|
652
|
-
}), (t, l) => (
|
|
656
|
+
}), (t, l) => (u(), c("div", {
|
|
653
657
|
class: at(`vue-data-ui-component vue-ui-waffle ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
654
658
|
ref_key: "waffleChart",
|
|
655
659
|
ref: F,
|
|
@@ -658,7 +662,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
658
662
|
onMouseenter: l[2] || (l[2] = () => d(ze)(!0)),
|
|
659
663
|
onMouseleave: l[3] || (l[3] = () => d(ze)(!1))
|
|
660
664
|
}, [
|
|
661
|
-
e.value.userOptions.buttons.annotator ? (
|
|
665
|
+
e.value.userOptions.buttons.annotator ? (u(), E(d(At), {
|
|
662
666
|
key: 0,
|
|
663
667
|
svgRef: d(de),
|
|
664
668
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -686,20 +690,20 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
686
690
|
]),
|
|
687
691
|
_: 3
|
|
688
692
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : C("", !0),
|
|
689
|
-
|
|
693
|
+
_t.value ? (u(), c("div", {
|
|
690
694
|
key: 1,
|
|
691
695
|
ref_key: "noTitle",
|
|
692
696
|
ref: Be,
|
|
693
697
|
class: "vue-data-ui-no-title-space",
|
|
694
698
|
style: "height:36px; width: 100%;background:transparent"
|
|
695
699
|
}, null, 512)) : C("", !0),
|
|
696
|
-
e.value.style.chart.title.text ? (
|
|
700
|
+
e.value.style.chart.title.text ? (u(), c("div", {
|
|
697
701
|
key: 2,
|
|
698
702
|
ref_key: "chartTitle",
|
|
699
703
|
ref: Ie,
|
|
700
704
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
701
705
|
}, [
|
|
702
|
-
(
|
|
706
|
+
(u(), E(Dl, {
|
|
703
707
|
key: `title_${Oe.value}`,
|
|
704
708
|
config: {
|
|
705
709
|
title: {
|
|
@@ -715,8 +719,8 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
715
719
|
], 512)) : C("", !0),
|
|
716
720
|
k("div", {
|
|
717
721
|
id: `legend-top-${b.value}`
|
|
718
|
-
}, null, 8,
|
|
719
|
-
e.value.userOptions.show &&
|
|
722
|
+
}, null, 8, zl),
|
|
723
|
+
e.value.userOptions.show && ne.value && (d(Ne) || d(ve)) ? (u(), E(d(wt), {
|
|
720
724
|
ref_key: "userOptionsRef",
|
|
721
725
|
ref: ie,
|
|
722
726
|
key: `user_options_${Fe.value}`,
|
|
@@ -818,17 +822,17 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
818
822
|
key: "8"
|
|
819
823
|
} : void 0
|
|
820
824
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : C("", !0),
|
|
821
|
-
(
|
|
825
|
+
(u(), c("svg", {
|
|
822
826
|
ref_key: "svgRef",
|
|
823
827
|
ref: de,
|
|
824
|
-
xmlns: d(
|
|
828
|
+
xmlns: d(cl),
|
|
825
829
|
class: at({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
826
830
|
viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
|
|
827
831
|
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
828
832
|
}, [
|
|
829
|
-
oe(d(
|
|
833
|
+
oe(d(xt)),
|
|
830
834
|
k("defs", null, [
|
|
831
|
-
(
|
|
835
|
+
(u(!0), c(T, null, z(s.value, (a, o) => (u(), c("radialGradient", {
|
|
832
836
|
cx: "50%",
|
|
833
837
|
cy: "50%",
|
|
834
838
|
r: "50%",
|
|
@@ -838,13 +842,13 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
838
842
|
}, [
|
|
839
843
|
k("stop", {
|
|
840
844
|
offset: "0%",
|
|
841
|
-
"stop-color": d(
|
|
842
|
-
}, null, 8,
|
|
845
|
+
"stop-color": d(vl)(d(dl)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
846
|
+
}, null, 8, Ml),
|
|
843
847
|
k("stop", {
|
|
844
848
|
offset: "100%",
|
|
845
849
|
"stop-color": a.color
|
|
846
|
-
}, null, 8,
|
|
847
|
-
], 8,
|
|
850
|
+
}, null, 8, Rl)
|
|
851
|
+
], 8, Vl))), 256))
|
|
848
852
|
]),
|
|
849
853
|
k("defs", null, [
|
|
850
854
|
k("filter", {
|
|
@@ -862,9 +866,9 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
862
866
|
type: "saturate",
|
|
863
867
|
values: "0"
|
|
864
868
|
}, null, -1)
|
|
865
|
-
])], 8,
|
|
869
|
+
])], 8, Ul)
|
|
866
870
|
]),
|
|
867
|
-
e.value.useCustomCells && s.value.length ? (
|
|
871
|
+
e.value.useCustomCells && s.value.length ? (u(!0), c(T, { key: 0 }, z(W.value, (a, o) => (u(), c("foreignObject", {
|
|
868
872
|
x: a.x,
|
|
869
873
|
y: a.y,
|
|
870
874
|
height: _.value <= 0 ? 1e-4 : _.value,
|
|
@@ -872,8 +876,8 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
872
876
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
873
877
|
}, [
|
|
874
878
|
h(t.$slots, "cell", xe({ ref_for: !0 }, { cell: { ...a, color: s.value[o].color, ...s.value[o] }, isSelected: [null, void 0].includes(U.value) ? !0 : s.value[o].serieIndex === U.value }), void 0, !0)
|
|
875
|
-
], 8,
|
|
876
|
-
!s.value.length && !e.value.useCustomCells ? (
|
|
879
|
+
], 8, Gl))), 256)) : C("", !0),
|
|
880
|
+
!s.value.length && !e.value.useCustomCells ? (u(), c("rect", {
|
|
877
881
|
key: 1,
|
|
878
882
|
x: 12,
|
|
879
883
|
y: 12,
|
|
@@ -882,13 +886,13 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
882
886
|
rx: 3,
|
|
883
887
|
fill: "none",
|
|
884
888
|
stroke: "black"
|
|
885
|
-
}, null, 8,
|
|
886
|
-
t.$slots.pattern ? (
|
|
887
|
-
(
|
|
889
|
+
}, null, 8, Wl)) : s.value.length && !e.value.useCustomCells ? (u(), c(T, { key: 2 }, [
|
|
890
|
+
t.$slots.pattern ? (u(), c("g", jl, [
|
|
891
|
+
(u(!0), c(T, null, z(pe.value, (a) => (u(), c("defs", null, [
|
|
888
892
|
h(t.$slots, "pattern", xe({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
889
893
|
]))), 256))
|
|
890
894
|
])) : C("", !0),
|
|
891
|
-
(
|
|
895
|
+
(u(!0), c(T, null, z(W.value, (a, o) => (u(), c("rect", {
|
|
892
896
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
893
897
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
894
898
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -898,8 +902,8 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
898
902
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
899
903
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
900
904
|
filter: ee(s.value[o].serieIndex)
|
|
901
|
-
}, null, 8,
|
|
902
|
-
(
|
|
905
|
+
}, null, 8, ql))), 256)),
|
|
906
|
+
(u(!0), c(T, null, z(W.value, (a, o) => (u(), c("rect", {
|
|
903
907
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
904
908
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
905
909
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -909,9 +913,9 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
909
913
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
910
914
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
911
915
|
filter: ee(s.value[o].serieIndex)
|
|
912
|
-
}, null, 8,
|
|
913
|
-
t.$slots.pattern ? (
|
|
914
|
-
(
|
|
916
|
+
}, null, 8, Hl))), 256)),
|
|
917
|
+
t.$slots.pattern ? (u(), c("g", Xl, [
|
|
918
|
+
(u(!0), c(T, null, z(W.value, (a, o) => (u(), c("rect", {
|
|
915
919
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
916
920
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
917
921
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -920,40 +924,40 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
920
924
|
fill: `url(#pattern_${b.value}_${s.value[o].absoluteIndex})`,
|
|
921
925
|
stroke: "none",
|
|
922
926
|
filter: ee(s.value[o].serieIndex)
|
|
923
|
-
}, null, 8,
|
|
927
|
+
}, null, 8, Yl))), 256))
|
|
924
928
|
])) : C("", !0)
|
|
925
929
|
], 64)) : C("", !0),
|
|
926
|
-
(
|
|
927
|
-
|
|
930
|
+
(u(!0), c(T, null, z(W.value, (a, o) => (u(), c(T, null, [
|
|
931
|
+
Gt(o, a) ? (u(), c("text", {
|
|
928
932
|
key: `datalabel_${o}`,
|
|
929
|
-
textContent: re(
|
|
933
|
+
textContent: re(Wt(o, a)),
|
|
930
934
|
x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
931
935
|
y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + qe.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
932
936
|
"font-size": e.value.style.chart.layout.labels.captions.fontSize,
|
|
933
|
-
fill: d(
|
|
937
|
+
fill: d(fl)(s.value[o].color),
|
|
934
938
|
filter: ee(s.value[o].serieIndex)
|
|
935
|
-
}, null, 8,
|
|
939
|
+
}, null, 8, Jl)) : C("", !0)
|
|
936
940
|
], 64))), 256)),
|
|
937
|
-
(
|
|
941
|
+
(u(!0), c(T, null, z(W.value, (a, o) => (u(), c("rect", {
|
|
938
942
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
939
943
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
940
944
|
height: qe.value,
|
|
941
|
-
width:
|
|
945
|
+
width: Bt.value,
|
|
942
946
|
fill: "transparent",
|
|
943
947
|
stroke: "none",
|
|
944
|
-
onMouseover: (r) =>
|
|
945
|
-
onMouseleave: (r) =>
|
|
946
|
-
onClick: (r) =>
|
|
947
|
-
}, null, 40,
|
|
948
|
+
onMouseover: (r) => Rt(o),
|
|
949
|
+
onMouseleave: (r) => Mt(o),
|
|
950
|
+
onClick: (r) => Vt(o)
|
|
951
|
+
}, null, 40, Kl))), 256)),
|
|
948
952
|
h(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
949
|
-
], 14,
|
|
950
|
-
t.$slots.watermark ? (
|
|
953
|
+
], 14, Nl)),
|
|
954
|
+
t.$slots.watermark ? (u(), c("div", Ql, [
|
|
951
955
|
h(t.$slots, "watermark", x($({ isPrinting: d(Re) || d(Ue) })), void 0, !0)
|
|
952
956
|
])) : C("", !0),
|
|
953
957
|
k("div", {
|
|
954
958
|
id: `legend-bottom-${b.value}`
|
|
955
|
-
}, null, 8,
|
|
956
|
-
Le.value ? (
|
|
959
|
+
}, null, 8, Zl),
|
|
960
|
+
Le.value ? (u(), E(ll, {
|
|
957
961
|
key: 5,
|
|
958
962
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
959
963
|
}, [
|
|
@@ -961,24 +965,24 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
961
965
|
ref_key: "chartLegend",
|
|
962
966
|
ref: Se
|
|
963
967
|
}, [
|
|
964
|
-
e.value.style.chart.legend.show ? (
|
|
968
|
+
e.value.style.chart.legend.show ? (u(), E(Pl, {
|
|
965
969
|
key: `legend_${Pe.value}`,
|
|
966
970
|
legendSet: V.value,
|
|
967
|
-
config:
|
|
971
|
+
config: Nt.value,
|
|
968
972
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => Z(a.uid))
|
|
969
973
|
}, Ae({
|
|
970
974
|
item: f(({ legend: a }) => [
|
|
971
975
|
k("div", {
|
|
972
976
|
onClick: (o) => a.segregate(),
|
|
973
977
|
style: ae(`opacity:${y.value.includes(a.uid) ? 0.5 : 1}`)
|
|
974
|
-
}, re(a.display), 13,
|
|
978
|
+
}, re(a.display), 13, ea)
|
|
975
979
|
]),
|
|
976
980
|
_: 2
|
|
977
981
|
}, [
|
|
978
982
|
t.$slots.pattern ? {
|
|
979
983
|
name: "legend-pattern",
|
|
980
984
|
fn: f(({ legend: a, index: o }) => [
|
|
981
|
-
oe(
|
|
985
|
+
oe(Ol, {
|
|
982
986
|
shape: a.shape,
|
|
983
987
|
radius: 30,
|
|
984
988
|
stroke: "none",
|
|
@@ -994,7 +998,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
994
998
|
}, void 0, !0)
|
|
995
999
|
], 512)
|
|
996
1000
|
], 8, ["to"])) : C("", !0),
|
|
997
|
-
t.$slots.source ? (
|
|
1001
|
+
t.$slots.source ? (u(), c("div", {
|
|
998
1002
|
key: 6,
|
|
999
1003
|
ref_key: "source",
|
|
1000
1004
|
ref: _e,
|
|
@@ -1002,9 +1006,9 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1002
1006
|
}, [
|
|
1003
1007
|
h(t.$slots, "source", {}, void 0, !0)
|
|
1004
1008
|
], 512)) : C("", !0),
|
|
1005
|
-
oe(d(
|
|
1009
|
+
oe(d(bt), {
|
|
1006
1010
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1007
|
-
show: w.value.showTooltip &&
|
|
1011
|
+
show: w.value.showTooltip && ue.value && y.value.length < m.dataset.length,
|
|
1008
1012
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1009
1013
|
color: e.value.style.chart.tooltip.color,
|
|
1010
1014
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -1031,13 +1035,13 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1031
1035
|
]),
|
|
1032
1036
|
_: 3
|
|
1033
1037
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1034
|
-
|
|
1038
|
+
ne.value && e.value.userOptions.buttons.table ? (u(), E(al(Y.value.component), xe({ key: 7 }, Y.value.props, {
|
|
1035
1039
|
ref_key: "tableUnit",
|
|
1036
1040
|
ref: j,
|
|
1037
1041
|
onClose: et
|
|
1038
1042
|
}), Ae({
|
|
1039
1043
|
content: f(() => [
|
|
1040
|
-
(
|
|
1044
|
+
(u(), E(d(Ct), {
|
|
1041
1045
|
key: `table_${De.value}`,
|
|
1042
1046
|
colNames: te.value.colNames,
|
|
1043
1047
|
head: te.value.head,
|
|
@@ -1051,7 +1055,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1051
1055
|
k("div", {
|
|
1052
1056
|
innerHTML: a,
|
|
1053
1057
|
style: { display: "flex", "align-items": "center" }
|
|
1054
|
-
}, null, 8,
|
|
1058
|
+
}, null, 8, ta)
|
|
1055
1059
|
]),
|
|
1056
1060
|
td: f(({ td: a }) => [
|
|
1057
1061
|
ot(re(a.name || a), 1)
|
|
@@ -1076,7 +1080,7 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1076
1080
|
class: "vue-ui-user-options-button",
|
|
1077
1081
|
onClick: l[1] || (l[1] = (a) => Ce(e.value.userOptions.callbacks.csv))
|
|
1078
1082
|
}, [
|
|
1079
|
-
oe(d(
|
|
1083
|
+
oe(d(mt), {
|
|
1080
1084
|
name: "excel",
|
|
1081
1085
|
stroke: Y.value.props.color
|
|
1082
1086
|
}, null, 8, ["stroke"])
|
|
@@ -1085,15 +1089,15 @@ const ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1085
1089
|
key: "1"
|
|
1086
1090
|
} : void 0
|
|
1087
1091
|
]), 1040)) : C("", !0),
|
|
1088
|
-
d(Ee) ? (
|
|
1089
|
-
], 46,
|
|
1092
|
+
d(Ee) ? (u(), E($l, { key: 8 })) : C("", !0)
|
|
1093
|
+
], 46, El));
|
|
1090
1094
|
}
|
|
1091
|
-
},
|
|
1095
|
+
}, aa = /* @__PURE__ */ Ll(la, [["__scopeId", "data-v-1257e714"]]), ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1092
1096
|
__proto__: null,
|
|
1093
|
-
default:
|
|
1097
|
+
default: aa
|
|
1094
1098
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1095
1099
|
export {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1100
|
+
Ca as a,
|
|
1101
|
+
ka as b,
|
|
1102
|
+
aa as v
|
|
1099
1103
|
};
|