vue-data-ui 3.5.2 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -27
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
- package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
- package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- 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 +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +5 -0
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +303 -9
- package/dist/types/vue-ui-stackline.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
- package/dist/vue-data-ui.js +226 -204
- package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-AUNCOb2G.js +0 -53
- package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
- package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
- package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
- package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
- package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
- package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
- package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
- package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
- package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
- package/dist/vue-ui-gauge-DAk72bez.js +0 -835
- package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
- package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
- package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
- package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
- package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
- package/dist/vue-ui-radar-BSfxyur3.js +0 -984
- package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
- package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
- package/dist/vue-ui-rings-C96aj57d.js +0 -855
- package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
- package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
- package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
- package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
- package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
- package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
- package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
- package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
- package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
- package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
- package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
- package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
- package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
- package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
- package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
- package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
|
@@ -1,22 +1,39 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as E, useSlots as Yt, computed as v, ref as i, toRefs as Jt, watch as J, shallowRef as tt, onMounted as Kt, onBeforeUnmount as Qt, createElementBlock as c, openBlock as n, unref as h, normalizeStyle as ae, normalizeClass as lt, createBlock as L, createCommentVNode as C, createElementVNode as k, createVNode as oe, withCtx as f, renderSlot as p, normalizeProps as $, guardReactiveProps as x, createSlots as we, Fragment as T, renderList as z, mergeProps as Ae, toDisplayString as ue, Teleport as Zt, resolveDynamicComponent as el, createTextVNode as at, nextTick as tl } from "vue";
|
|
2
|
+
import { c as ll, t as al, i as ol, p as R, o as ot, g as $e, k as ul, j as rl, a as K, d as D, X as nl, s as sl, h as il, w as cl, l as vl, u as dl, q as hl, S as fl, x as pl, R as gl } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { t as yl, u as bl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ml, a as xe } from "./useNestedProp-CWo6bftQ.js";
|
|
5
|
+
import { u as Cl, B as kl } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as wl } from "./usePrinter-DCJzEiS8.js";
|
|
7
|
+
import { u as Al } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as $l } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as xl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as Tl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import Fl from "./img-DUzJeMlr.js";
|
|
12
|
+
import { _ as Sl } from "./Shape-DE6X_t31.js";
|
|
13
|
+
import Il from "./Title-DfFUb9hd.js";
|
|
14
|
+
import _l from "./Legend-Web3GjlR.js";
|
|
15
|
+
import { _ as Bl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
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" } } }, rt = { 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" } } }, nt = { 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" } } }, st = { 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" } } }, it = { 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" } } }, ct = { 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" } } }, vt = {
|
|
17
|
+
default: {},
|
|
18
|
+
dark: ut,
|
|
19
|
+
celebration: rt,
|
|
20
|
+
celebrationNight: nt,
|
|
21
|
+
hack: st,
|
|
22
|
+
zen: it,
|
|
23
|
+
concrete: ct
|
|
24
|
+
}, pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
|
+
__proto__: null,
|
|
26
|
+
celebration: rt,
|
|
27
|
+
celebrationNight: nt,
|
|
28
|
+
concrete: ct,
|
|
29
|
+
dark: ut,
|
|
30
|
+
default: vt,
|
|
31
|
+
hack: st,
|
|
32
|
+
zen: it
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), Ol = ["id"], Dl = ["id"], Pl = ["xmlns", "viewBox"], El = ["id"], Ll = ["stop-color"], zl = ["stop-color"], Vl = ["id"], Nl = ["x", "y", "height", "width"], Ml = ["height", "width"], Rl = { key: 0 }, Ul = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Gl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Wl = { key: 1 }, jl = ["rx", "x", "y", "height", "width", "fill", "filter"], ql = ["textContent", "x", "y", "font-size", "fill", "filter"], Hl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Xl = {
|
|
17
34
|
key: 4,
|
|
18
35
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
36
|
+
}, Yl = ["id"], Jl = ["onClick"], Kl = ["innerHTML"], Ql = {
|
|
20
37
|
__name: "vue-ui-waffle",
|
|
21
38
|
props: {
|
|
22
39
|
config: {
|
|
@@ -33,9 +50,9 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
33
50
|
}
|
|
34
51
|
},
|
|
35
52
|
emits: ["selectLegend"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
38
|
-
...
|
|
53
|
+
setup(dt, { expose: ht, emit: ft }) {
|
|
54
|
+
const pt = E(() => import("./Tooltip-WD0Ros6G.js")), gt = E(() => import("./BaseIcon-CofSxalQ.js")), yt = E(() => import("./DataTable-CHaOCmsE.js")), bt = E(() => import("./vue-ui-accordion-DSdZUn2C.js")), mt = E(() => import("./UserOptions-B3I-s3Lw.js")), Ct = E(() => import("./PenAndPaper-HCZQTkqi.js")), kt = E(() => import("./PackageVersion-Bq_mtsqr.js")), wt = E(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_waffle: At } = ml(), { isThemeValid: $t, warnInvalidTheme: xt } = $l(), m = dt, Tt = Yt(), re = v(() => !!m.dataset && m.dataset.length), b = i(ll()), ne = i(!1), se = i(""), U = i(null), Te = i(0), F = i(null), Fe = i(null), Se = i(null), Ie = i(null), _e = i(null), Be = i(0), Oe = i(0), De = i(0), Pe = i(!1), j = i(null), ie = i(null), e = i(he()), { loading: Ee, FINAL_DATASET: Q, manualLoading: ce } = Cl({
|
|
55
|
+
...Jt(m),
|
|
39
56
|
FINAL_CONFIG: e,
|
|
40
57
|
prepareConfig: he,
|
|
41
58
|
callback: () => {
|
|
@@ -60,7 +77,7 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
60
77
|
color: "#CACACA"
|
|
61
78
|
}
|
|
62
79
|
],
|
|
63
|
-
skeletonConfig:
|
|
80
|
+
skeletonConfig: al({
|
|
64
81
|
defaultConfig: e.value,
|
|
65
82
|
userConfig: {
|
|
66
83
|
useCustomCells: !1,
|
|
@@ -86,118 +103,125 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
86
103
|
}
|
|
87
104
|
}
|
|
88
105
|
})
|
|
89
|
-
}), { userOptionsVisible:
|
|
106
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: Le, keepUserOptionState: ze } = xl({ config: e.value }), { svgRef: de } = Tl({ config: e.value.style.chart.title });
|
|
90
107
|
function he() {
|
|
91
|
-
const t =
|
|
92
|
-
userConfig:
|
|
93
|
-
defaultConfig:
|
|
108
|
+
const t = xe({
|
|
109
|
+
userConfig: m.config,
|
|
110
|
+
defaultConfig: At
|
|
111
|
+
}), l = t.theme;
|
|
112
|
+
if (!l) return t;
|
|
113
|
+
if (!$t.value(t))
|
|
114
|
+
return xt(t), t;
|
|
115
|
+
const a = xe({
|
|
116
|
+
userConfig: vt[l] || m.config,
|
|
117
|
+
defaultConfig: t
|
|
118
|
+
}), o = xe({
|
|
119
|
+
userConfig: m.config,
|
|
120
|
+
defaultConfig: a
|
|
94
121
|
});
|
|
95
|
-
return
|
|
96
|
-
...
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}),
|
|
100
|
-
customPalette: Yt[t.theme] || U
|
|
101
|
-
} : t;
|
|
122
|
+
return {
|
|
123
|
+
...o,
|
|
124
|
+
customPalette: o.customPalette.length ? o.customPalette : ol[l] || R
|
|
125
|
+
};
|
|
102
126
|
}
|
|
103
|
-
J(() =>
|
|
104
|
-
|
|
127
|
+
J(() => m.config, (t) => {
|
|
128
|
+
Ee.value || (e.value = he()), ve.value = !e.value.userOptions.showOnChartHover, Ne(), Be.value += 1, Oe.value += 1, De.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
105
129
|
}, { deep: !0 });
|
|
106
|
-
const
|
|
107
|
-
function
|
|
108
|
-
if (
|
|
130
|
+
const P = tt(null), G = tt(null), Ve = v(() => !!e.value.debug);
|
|
131
|
+
function Ne() {
|
|
132
|
+
if (ot(m.dataset) ? ($e({
|
|
109
133
|
componentName: "VueUiWaffle",
|
|
110
134
|
type: "dataset",
|
|
111
|
-
debug:
|
|
112
|
-
}),
|
|
113
|
-
|
|
135
|
+
debug: Ve.value
|
|
136
|
+
}), re.value = !1, ce.value = !0) : m.dataset.forEach((t, l) => {
|
|
137
|
+
ul({
|
|
114
138
|
datasetObject: t,
|
|
115
139
|
requiredAttributes: ["name", "values"]
|
|
116
140
|
}).forEach((a) => {
|
|
117
|
-
|
|
141
|
+
$e({
|
|
118
142
|
componentName: "VueUiWaffle",
|
|
119
143
|
type: "datasetSerieAttribute",
|
|
120
144
|
property: a,
|
|
121
145
|
index: l,
|
|
122
|
-
debug:
|
|
146
|
+
debug: Ve.value
|
|
123
147
|
});
|
|
124
148
|
});
|
|
125
|
-
}),
|
|
126
|
-
const t =
|
|
127
|
-
const { width: l, height: a } =
|
|
128
|
-
chart:
|
|
129
|
-
title: e.value.style.chart.title.text ?
|
|
149
|
+
}), ot(m.dataset) || (ce.value = e.value.loading), e.value.responsive) {
|
|
150
|
+
const t = yl(() => {
|
|
151
|
+
const { width: l, height: a } = bl({
|
|
152
|
+
chart: F.value,
|
|
153
|
+
title: e.value.style.chart.title.text ? Fe.value : null,
|
|
130
154
|
legend: e.value.style.chart.legend.show ? Se.value : null,
|
|
131
|
-
source:
|
|
132
|
-
noTitle:
|
|
155
|
+
source: Ie.value,
|
|
156
|
+
noTitle: _e.value
|
|
133
157
|
});
|
|
134
158
|
requestAnimationFrame(() => {
|
|
135
|
-
|
|
159
|
+
V.value.width = l, V.value.height = a, S.value.width = l, S.value.height = a;
|
|
136
160
|
});
|
|
137
161
|
});
|
|
138
|
-
|
|
162
|
+
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);
|
|
139
163
|
}
|
|
140
164
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}),
|
|
144
|
-
|
|
165
|
+
Kt(() => {
|
|
166
|
+
Pe.value = !0, Ne();
|
|
167
|
+
}), Qt(() => {
|
|
168
|
+
P.value && (G.value && P.value.unobserve(G.value), P.value.disconnect());
|
|
145
169
|
});
|
|
146
|
-
const { isPrinting: Me, isImaging: Re, generatePdf: Ue, generateImage:
|
|
170
|
+
const { isPrinting: Me, isImaging: Re, generatePdf: Ue, generateImage: Ge } = wl({
|
|
147
171
|
elementId: `vue-ui-waffle_${b.value}`,
|
|
148
172
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle",
|
|
149
173
|
options: e.value.userOptions.print
|
|
150
|
-
}),
|
|
174
|
+
}), Ft = v(() => e.value.userOptions.show && !e.value.style.chart.title.text), We = v(() => rl(e.value.customPalette)), w = i({
|
|
151
175
|
showTable: e.value.table.show,
|
|
152
176
|
showTooltip: e.value.style.chart.tooltip.show
|
|
153
177
|
});
|
|
154
178
|
J(e, () => {
|
|
155
|
-
|
|
179
|
+
w.value = {
|
|
156
180
|
showTable: e.value.table.show,
|
|
157
181
|
showTooltip: e.value.style.chart.tooltip.show
|
|
158
182
|
};
|
|
159
183
|
}, { immediate: !0 });
|
|
160
|
-
const
|
|
184
|
+
const V = i({
|
|
161
185
|
height: 512,
|
|
162
186
|
width: 512
|
|
163
|
-
}),
|
|
187
|
+
}), S = i({
|
|
164
188
|
top: 0,
|
|
165
189
|
left: 0,
|
|
166
190
|
height: 512,
|
|
167
191
|
width: 512
|
|
168
|
-
}),
|
|
169
|
-
function
|
|
170
|
-
const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((
|
|
171
|
-
let d = l - u.reduce((
|
|
192
|
+
}), I = v(() => (S.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), _ = v(() => (S.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), St = v(() => Math.max(1e-4, S.value.width / e.value.style.chart.layout.grid.size)), je = v(() => Math.max(1e-4, S.value.height / e.value.style.chart.layout.grid.size));
|
|
193
|
+
function qe(t) {
|
|
194
|
+
const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((A, ke) => A + ke, 0), o = t.map((A) => A / a * l), u = o.map(Math.floor), r = o.map((A) => A % 1);
|
|
195
|
+
let d = l - u.reduce((A, ke) => A + ke, 0);
|
|
172
196
|
for (; d > 0; ) {
|
|
173
|
-
let
|
|
174
|
-
u[
|
|
197
|
+
let A = r.indexOf(Math.max(...r));
|
|
198
|
+
u[A] += 1, r[A] = 0, d -= 1;
|
|
175
199
|
}
|
|
176
200
|
return u;
|
|
177
201
|
}
|
|
178
|
-
const
|
|
202
|
+
const q = i(!1);
|
|
179
203
|
function fe() {
|
|
180
|
-
return
|
|
204
|
+
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) => ({
|
|
181
205
|
...t,
|
|
182
|
-
color:
|
|
206
|
+
color: vl(t.color) || We.value[l] || R[l] || R[l % R.length],
|
|
183
207
|
uid: `serie_${l}`,
|
|
184
208
|
absoluteIndex: l
|
|
185
209
|
}));
|
|
186
210
|
}
|
|
187
|
-
const pe =
|
|
188
|
-
J(() =>
|
|
189
|
-
Array.isArray(t) && t.length > 0 && (
|
|
190
|
-
}, { immediate: !0 }), J(() =>
|
|
211
|
+
const pe = v(() => fe()), g = i(pe.value);
|
|
212
|
+
J(() => m.dataset, (t) => {
|
|
213
|
+
Array.isArray(t) && t.length > 0 && (ce.value = !1);
|
|
214
|
+
}, { immediate: !0 }), J(() => m.dataset, (t) => {
|
|
191
215
|
g.value = fe();
|
|
192
216
|
}, { deep: !0 });
|
|
193
|
-
const
|
|
194
|
-
const t = g.value.filter((l, a) => !y.value.includes(l.uid)).map((l, a) =>
|
|
195
|
-
return
|
|
196
|
-
}),
|
|
197
|
-
const t = g.value.map((l, a) =>
|
|
198
|
-
return
|
|
199
|
-
}),
|
|
200
|
-
[null, void 0].includes(t.values) &&
|
|
217
|
+
const It = v(() => {
|
|
218
|
+
const t = g.value.filter((l, a) => !y.value.includes(l.uid)).map((l, a) => q.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
|
|
219
|
+
return qe(t);
|
|
220
|
+
}), _t = v(() => {
|
|
221
|
+
const t = g.value.map((l, a) => q.value ? 1 : (l.values || []).reduce((o, u) => o + u));
|
|
222
|
+
return qe(t);
|
|
223
|
+
}), H = v(() => (Q.value.forEach((t, l) => {
|
|
224
|
+
[null, void 0].includes(t.values) && $e({
|
|
201
225
|
componentName: "VueUiWaffle",
|
|
202
226
|
type: "datasetSerieAttribute",
|
|
203
227
|
property: "values (number[])",
|
|
@@ -210,17 +234,17 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
210
234
|
color: t.color,
|
|
211
235
|
value: (t.values || []).reduce((a, o) => a + o, 0),
|
|
212
236
|
absoluteValues: t.values || [],
|
|
213
|
-
proportion:
|
|
214
|
-
})))), ge =
|
|
237
|
+
proportion: It.value[l]
|
|
238
|
+
})))), ge = v(() => g.value.map((t, l) => ({
|
|
215
239
|
absoluteIndex: t.absoluteIndex,
|
|
216
240
|
uid: t.uid,
|
|
217
241
|
name: t.name,
|
|
218
242
|
color: t.color,
|
|
219
243
|
value: (t.values || []).reduce((a, o) => a + o, 0),
|
|
220
244
|
absoluteValues: t.values || [],
|
|
221
|
-
proportion:
|
|
245
|
+
proportion: _t.value[l]
|
|
222
246
|
})));
|
|
223
|
-
function
|
|
247
|
+
function Bt() {
|
|
224
248
|
return ge.value.map((t) => ({
|
|
225
249
|
name: t.name,
|
|
226
250
|
color: t.color,
|
|
@@ -228,19 +252,19 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
228
252
|
proportion: t.proportion
|
|
229
253
|
}));
|
|
230
254
|
}
|
|
231
|
-
const
|
|
255
|
+
const Ot = v(() => {
|
|
232
256
|
let t = 0;
|
|
233
|
-
return
|
|
234
|
-
const o = t, u = o + l.proportion,
|
|
257
|
+
return H.value.map((l, a) => {
|
|
258
|
+
const o = t, u = o + l.proportion, r = [];
|
|
235
259
|
for (let d = Math.floor(o); d < Math.floor(u); d += 1)
|
|
236
|
-
|
|
260
|
+
r.push(d);
|
|
237
261
|
return t = u, {
|
|
238
262
|
...l,
|
|
239
263
|
start: o,
|
|
240
|
-
rects:
|
|
264
|
+
rects: r
|
|
241
265
|
};
|
|
242
266
|
});
|
|
243
|
-
}),
|
|
267
|
+
}), s = v(() => Ot.value.flatMap((t, l) => t.rects.map((a, o) => ({
|
|
244
268
|
isFirst: o === 0,
|
|
245
269
|
isLongEnough: a.length > 2,
|
|
246
270
|
name: t.name,
|
|
@@ -253,53 +277,53 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
253
277
|
}))).map((t, l) => ({
|
|
254
278
|
...t,
|
|
255
279
|
isAbsoluteFirst: l % e.value.style.chart.layout.grid.size === 0
|
|
256
|
-
}))),
|
|
280
|
+
}))), W = v(() => {
|
|
257
281
|
const t = [];
|
|
258
282
|
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
259
283
|
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
260
284
|
t.push({
|
|
261
285
|
isStartOfLine: a === 0,
|
|
262
286
|
position: e.value.style.chart.layout.grid.vertical ? l : a,
|
|
263
|
-
x: (e.value.style.chart.layout.grid.vertical ? l : a) * (
|
|
264
|
-
y: (e.value.style.chart.layout.grid.vertical ? a : l) * (
|
|
287
|
+
x: (e.value.style.chart.layout.grid.vertical ? l : a) * (I.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
288
|
+
y: (e.value.style.chart.layout.grid.vertical ? a : l) * (_.value + e.value.style.chart.layout.grid.spaceBetween) + S.value.top
|
|
265
289
|
});
|
|
266
290
|
return t;
|
|
267
|
-
}), y = i([]), X = i(!1),
|
|
291
|
+
}), y = i([]), X = i(!1), He = i(null), Xe = i(null);
|
|
268
292
|
function Z(t) {
|
|
269
|
-
if (
|
|
293
|
+
if (q.value) return;
|
|
270
294
|
if (!e.value.useAnimation) {
|
|
271
|
-
y.value.includes(t) ? y.value = y.value.filter((u) => u !== t) : y.value.length <
|
|
295
|
+
y.value.includes(t) ? y.value = y.value.filter((u) => u !== t) : y.value.length < N.value.length - 1 && N.value.length > 1 && y.value.push(t);
|
|
272
296
|
return;
|
|
273
297
|
}
|
|
274
|
-
const l = pe.value.find((u) => u.uid === t).values.reduce((u,
|
|
298
|
+
const l = pe.value.find((u) => u.uid === t).values.reduce((u, r) => u + r, 0), a = g.value.find((u) => u.uid === t).values.reduce((u, r) => u + r, 0);
|
|
275
299
|
let o = a;
|
|
276
300
|
if (!(a === 0 && l === 0)) {
|
|
277
301
|
if (y.value.includes(t)) {
|
|
278
|
-
let
|
|
279
|
-
o > u ? (cancelAnimationFrame(
|
|
302
|
+
let r = function() {
|
|
303
|
+
o > u ? (cancelAnimationFrame(He.value), g.value = g.value.map((d, A) => d.uid === t ? {
|
|
280
304
|
...d,
|
|
281
305
|
values: [u]
|
|
282
|
-
} : d), X.value = !1) : (X.value = !0, o += u * 0.025, g.value = g.value.map((d,
|
|
306
|
+
} : d), X.value = !1) : (X.value = !0, o += u * 0.025, g.value = g.value.map((d, A) => d.uid === t ? {
|
|
283
307
|
...d,
|
|
284
308
|
values: [o]
|
|
285
|
-
} : d),
|
|
309
|
+
} : d), He.value = requestAnimationFrame(r));
|
|
286
310
|
};
|
|
287
311
|
y.value = y.value.filter((d) => d !== t);
|
|
288
312
|
const u = l;
|
|
289
|
-
|
|
290
|
-
} else if (y.value.length <
|
|
313
|
+
r();
|
|
314
|
+
} else if (y.value.length < N.value.length - 1 && N.value.length > 1) {
|
|
291
315
|
let u = function() {
|
|
292
|
-
o < a / 100 ? (cancelAnimationFrame(
|
|
293
|
-
...
|
|
316
|
+
o < a / 100 ? (cancelAnimationFrame(Xe.value), y.value.push(t), g.value = g.value.map((r, d) => r.uid === t ? {
|
|
317
|
+
...r,
|
|
294
318
|
values: [0]
|
|
295
|
-
} :
|
|
296
|
-
...
|
|
319
|
+
} : r), X.value = !1) : (X.value = !0, o /= 1.15, g.value = g.value.map((r) => r.uid === t ? {
|
|
320
|
+
...r,
|
|
297
321
|
values: [o]
|
|
298
|
-
} :
|
|
322
|
+
} : r), Xe.value = requestAnimationFrame(u));
|
|
299
323
|
};
|
|
300
324
|
u();
|
|
301
325
|
}
|
|
302
|
-
|
|
326
|
+
Nt("selectLegend", H.value.map((u) => ({
|
|
303
327
|
name: u.name,
|
|
304
328
|
color: u.color,
|
|
305
329
|
value: u.value,
|
|
@@ -307,25 +331,25 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
307
331
|
})));
|
|
308
332
|
}
|
|
309
333
|
}
|
|
310
|
-
function
|
|
334
|
+
function Ye(t) {
|
|
311
335
|
if (!ge.value.length)
|
|
312
336
|
return e.value.debug && console.warn("VueUiWaffle - There are no series to show."), null;
|
|
313
337
|
const l = ge.value.find((a) => a.name === t);
|
|
314
338
|
return l || (e.value.debug && console.warn(`VueUiWaffle - Series name not found "${t}"`), null);
|
|
315
339
|
}
|
|
316
|
-
function
|
|
317
|
-
const l =
|
|
340
|
+
function Dt(t) {
|
|
341
|
+
const l = Ye(t);
|
|
318
342
|
l !== null && y.value.includes(l.uid) && Z(l.uid);
|
|
319
343
|
}
|
|
320
|
-
function
|
|
321
|
-
const l =
|
|
344
|
+
function Pt(t) {
|
|
345
|
+
const l = Ye(t);
|
|
322
346
|
l !== null && (y.value.includes(l.uid) || Z(l.uid));
|
|
323
347
|
}
|
|
324
|
-
const
|
|
325
|
-
const a = (t.values || []).reduce((u,
|
|
348
|
+
const N = v(() => g.value.map((t, l) => {
|
|
349
|
+
const a = (t.values || []).reduce((u, r) => u + r, 0), o = a / g.value.map((u) => (u.values || []).reduce((r, d) => r + d, 0)).reduce((u, r) => u + r, 0);
|
|
326
350
|
return {
|
|
327
351
|
name: t.name,
|
|
328
|
-
color: t.color || We[l] ||
|
|
352
|
+
color: t.color || We[l] || R[l] || R[l % R.length],
|
|
329
353
|
value: a,
|
|
330
354
|
proportion: o,
|
|
331
355
|
uid: t.uid,
|
|
@@ -336,56 +360,56 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
336
360
|
opacity: y.value.includes(t.uid) ? 0.5 : 1,
|
|
337
361
|
segregate: () => Z(t.uid),
|
|
338
362
|
isSegregated: y.value.includes(t.uid),
|
|
339
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ?
|
|
363
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? K(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, D({
|
|
340
364
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
341
365
|
v: t.value,
|
|
342
366
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
343
367
|
r: e.value.style.chart.legend.roundingValue
|
|
344
|
-
}), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? y.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value /
|
|
345
|
-
}))),
|
|
368
|
+
}), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? y.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / B.value) ? "-" : D({ v: t.value / B.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
369
|
+
}))), Et = v(() => ({
|
|
346
370
|
cy: "waffle-div-legend",
|
|
347
371
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
348
372
|
color: e.value.style.chart.legend.color,
|
|
349
373
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
350
374
|
paddingBottom: 12,
|
|
351
375
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
352
|
-
})),
|
|
353
|
-
function
|
|
354
|
-
const l =
|
|
376
|
+
})), B = v(() => H.value.map((t) => t.value).reduce((t, l) => t + l, 0)), ye = i(null), be = i(null);
|
|
377
|
+
function Lt(t) {
|
|
378
|
+
const l = s.value[t];
|
|
355
379
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.serieIndex });
|
|
356
380
|
}
|
|
357
|
-
function
|
|
358
|
-
const l =
|
|
359
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), be.value = null,
|
|
381
|
+
function zt(t) {
|
|
382
|
+
const l = s.value[t];
|
|
383
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), be.value = null, ne.value = !1, U.value = null;
|
|
360
384
|
}
|
|
361
|
-
function
|
|
362
|
-
if (y.value.length ===
|
|
363
|
-
const l =
|
|
385
|
+
function Vt(t) {
|
|
386
|
+
if (y.value.length === m.dataset.length) return;
|
|
387
|
+
const l = s.value[t];
|
|
364
388
|
ye.value = {
|
|
365
389
|
datapoint: l,
|
|
366
390
|
seriesIndex: l.absoluteIndex,
|
|
367
391
|
series: g.value,
|
|
368
392
|
config: e.value
|
|
369
|
-
}, e.value.events.datapointEnter && be.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), be.value = l.serieIndex,
|
|
393
|
+
}, e.value.events.datapointEnter && be.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), be.value = l.serieIndex, ne.value = !0, U.value = s.value[t].serieIndex;
|
|
370
394
|
const a = e.value.style.chart.tooltip.customFormat;
|
|
371
|
-
if (
|
|
372
|
-
seriesIndex:
|
|
395
|
+
if (pl(a) && gl(() => a({
|
|
396
|
+
seriesIndex: s.value[t].absoluteIndex,
|
|
373
397
|
datapoint: l,
|
|
374
398
|
series: g.value,
|
|
375
399
|
config: e.value
|
|
376
400
|
})))
|
|
377
|
-
|
|
378
|
-
seriesIndex:
|
|
401
|
+
se.value = a({
|
|
402
|
+
seriesIndex: s.value[t].absoluteIndex,
|
|
379
403
|
datapoint: l,
|
|
380
404
|
series: g.value,
|
|
381
405
|
config: e.value
|
|
382
406
|
});
|
|
383
407
|
else {
|
|
384
408
|
let o = "";
|
|
385
|
-
if (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}" />${
|
|
409
|
+
if (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}" />${Tt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${K(
|
|
386
410
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
387
411
|
l.value,
|
|
388
|
-
|
|
412
|
+
D({
|
|
389
413
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
390
414
|
v: l.value,
|
|
391
415
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -393,87 +417,87 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
393
417
|
}),
|
|
394
418
|
{
|
|
395
419
|
datapoint: l,
|
|
396
|
-
seriesIndex:
|
|
420
|
+
seriesIndex: s.value[t].absoluteIndex,
|
|
397
421
|
series: g.value
|
|
398
422
|
}
|
|
399
423
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
400
|
-
const u =
|
|
401
|
-
v:
|
|
424
|
+
const u = D({
|
|
425
|
+
v: q.value ? 1 / Q.value.length * 100 : l.value / B.value * 100,
|
|
402
426
|
s: "%",
|
|
403
427
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
404
428
|
});
|
|
405
429
|
e.value.style.chart.tooltip.showValue ? o += `<span>(${u})</span></div>` : o += `<b>${u}%</b></div>`;
|
|
406
430
|
}
|
|
407
|
-
|
|
431
|
+
se.value = o;
|
|
408
432
|
}
|
|
409
433
|
}
|
|
410
|
-
const
|
|
411
|
-
const t =
|
|
434
|
+
const Nt = ft, O = v(() => {
|
|
435
|
+
const t = H.value.map((a) => ({
|
|
412
436
|
name: a.name,
|
|
413
437
|
color: a.color
|
|
414
|
-
})), l =
|
|
438
|
+
})), l = H.value.map((a) => a.value);
|
|
415
439
|
return { head: t, body: l };
|
|
416
440
|
});
|
|
417
441
|
function ee(t) {
|
|
418
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
442
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(U.value) && U.value !== t ? `url(#blur_${b.value})` : "";
|
|
419
443
|
}
|
|
420
|
-
function
|
|
421
|
-
return e.value.style.chart.layout.labels.captions.show ?
|
|
444
|
+
function Mt(t, l) {
|
|
445
|
+
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;
|
|
422
446
|
}
|
|
423
|
-
function
|
|
424
|
-
const a =
|
|
447
|
+
function Rt(t, l = null) {
|
|
448
|
+
const a = K(
|
|
425
449
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
426
|
-
|
|
427
|
-
|
|
450
|
+
s.value[t].value,
|
|
451
|
+
D({
|
|
428
452
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
429
|
-
v:
|
|
453
|
+
v: s.value[t].value,
|
|
430
454
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
431
455
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
432
456
|
}),
|
|
433
|
-
{ datapoint:
|
|
434
|
-
), o =
|
|
457
|
+
{ datapoint: s.value[t], position: l }
|
|
458
|
+
), o = D({ v: s.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? fl({ 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 ? ":" : ""), r = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
|
|
435
459
|
let d = "";
|
|
436
|
-
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = a), `${
|
|
460
|
+
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = a), `${r}${d}`;
|
|
437
461
|
}
|
|
438
462
|
function me(t = null) {
|
|
439
|
-
|
|
440
|
-
const l =
|
|
463
|
+
tl(() => {
|
|
464
|
+
const l = O.value.head.map((u, r) => [[
|
|
441
465
|
u.name
|
|
442
|
-
], [
|
|
443
|
-
t ? t(o) :
|
|
466
|
+
], [O.value.body[r]], [isNaN(O.value.body[r] / B.value) ? "-" : O.value.body[r] / B.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = dl(a);
|
|
467
|
+
t ? t(o) : hl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
444
468
|
});
|
|
445
469
|
}
|
|
446
|
-
const te =
|
|
470
|
+
const te = v(() => {
|
|
447
471
|
const t = [
|
|
448
472
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
449
|
-
|
|
473
|
+
K(
|
|
450
474
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
451
|
-
|
|
452
|
-
|
|
475
|
+
B.value,
|
|
476
|
+
D({
|
|
453
477
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
454
|
-
v:
|
|
478
|
+
v: B.value,
|
|
455
479
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
456
480
|
r: e.value.table.td.roundingValue
|
|
457
481
|
})
|
|
458
482
|
),
|
|
459
483
|
"100%"
|
|
460
|
-
], l =
|
|
484
|
+
], l = O.value.head.map((u, r) => [
|
|
461
485
|
{
|
|
462
486
|
color: u.color,
|
|
463
487
|
name: u.name
|
|
464
488
|
},
|
|
465
|
-
|
|
489
|
+
K(
|
|
466
490
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
467
|
-
|
|
468
|
-
|
|
491
|
+
O.value.body[r],
|
|
492
|
+
D({
|
|
469
493
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
470
|
-
v:
|
|
494
|
+
v: O.value.body[r],
|
|
471
495
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
472
496
|
r: e.value.table.td.roundingValue
|
|
473
497
|
})
|
|
474
498
|
),
|
|
475
|
-
isNaN(
|
|
476
|
-
v:
|
|
499
|
+
isNaN(O.value.body[r] / B.value) ? "-" : D({
|
|
500
|
+
v: O.value.body[r] / B.value * 100,
|
|
477
501
|
s: "%",
|
|
478
502
|
r: e.value.table.td.roundingPercentage
|
|
479
503
|
})
|
|
@@ -501,44 +525,44 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
501
525
|
config: a,
|
|
502
526
|
colNames: o
|
|
503
527
|
};
|
|
504
|
-
}),
|
|
505
|
-
function
|
|
506
|
-
|
|
528
|
+
}), M = i(!1);
|
|
529
|
+
function Je(t) {
|
|
530
|
+
M.value = t, Te.value += 1;
|
|
507
531
|
}
|
|
508
|
-
function
|
|
509
|
-
|
|
532
|
+
function Ke() {
|
|
533
|
+
w.value.showTable = !w.value.showTable;
|
|
510
534
|
}
|
|
511
535
|
function Qe() {
|
|
512
|
-
|
|
536
|
+
w.value.showTooltip = !w.value.showTooltip;
|
|
513
537
|
}
|
|
514
538
|
const le = i(!1);
|
|
515
|
-
function
|
|
539
|
+
function Ce() {
|
|
516
540
|
le.value = !le.value;
|
|
517
541
|
}
|
|
518
|
-
async function
|
|
519
|
-
if (!
|
|
520
|
-
const { width: l, height: a } =
|
|
542
|
+
async function Ut({ scale: t = 2 } = {}) {
|
|
543
|
+
if (!F.value) return;
|
|
544
|
+
const { width: l, height: a } = F.value.getBoundingClientRect(), o = l / a, { imageUri: u, base64: r } = await Fl({ domElement: F.value, base64: !0, img: !0, scale: t });
|
|
521
545
|
return {
|
|
522
546
|
imageUri: u,
|
|
523
|
-
base64:
|
|
547
|
+
base64: r,
|
|
524
548
|
title: e.value.style.chart.title.text,
|
|
525
549
|
width: l,
|
|
526
550
|
height: a,
|
|
527
551
|
aspectRatio: o
|
|
528
552
|
};
|
|
529
553
|
}
|
|
530
|
-
const Y =
|
|
531
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
554
|
+
const Y = v(() => {
|
|
555
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = w.value.showTable;
|
|
532
556
|
return {
|
|
533
|
-
component: t ?
|
|
557
|
+
component: t ? wt : bt,
|
|
534
558
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
535
559
|
props: t ? {
|
|
536
560
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
537
561
|
color: e.value.table.th.color,
|
|
538
562
|
headerColor: e.value.table.th.color,
|
|
539
563
|
headerBg: e.value.table.th.backgroundColor,
|
|
540
|
-
isFullscreen:
|
|
541
|
-
fullscreenParent:
|
|
564
|
+
isFullscreen: M.value,
|
|
565
|
+
fullscreenParent: F.value,
|
|
542
566
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
543
567
|
} : {
|
|
544
568
|
hideDetails: !0,
|
|
@@ -557,94 +581,94 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
557
581
|
}
|
|
558
582
|
};
|
|
559
583
|
});
|
|
560
|
-
J(() =>
|
|
561
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
584
|
+
J(() => w.value.showTable, (t) => {
|
|
585
|
+
e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
562
586
|
});
|
|
563
|
-
function
|
|
564
|
-
|
|
587
|
+
function Ze() {
|
|
588
|
+
w.value.showTable = !1, ie.value && ie.value.setTableIconState(!1);
|
|
565
589
|
}
|
|
566
|
-
const
|
|
590
|
+
const Gt = v(() => N.value.map((t) => ({
|
|
567
591
|
...t,
|
|
568
592
|
name: t.display
|
|
569
|
-
}))),
|
|
593
|
+
}))), Wt = v(() => e.value.style.chart.backgroundColor), jt = v(() => e.value.style.chart.legend), qt = v(() => e.value.style.chart.title), { exportSvg: Ht, getSvg: Xt } = Al({
|
|
570
594
|
svg: de,
|
|
571
|
-
title:
|
|
572
|
-
legend:
|
|
573
|
-
legendItems:
|
|
574
|
-
backgroundColor:
|
|
595
|
+
title: qt,
|
|
596
|
+
legend: jt,
|
|
597
|
+
legendItems: Gt,
|
|
598
|
+
backgroundColor: Wt
|
|
575
599
|
});
|
|
576
|
-
async function
|
|
600
|
+
async function et({ isCb: t }) {
|
|
577
601
|
if (t) {
|
|
578
|
-
const { blob: l, url: a, text: o, dataUrl: u } = await
|
|
602
|
+
const { blob: l, url: a, text: o, dataUrl: u } = await Xt();
|
|
579
603
|
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: u });
|
|
580
604
|
} else
|
|
581
|
-
|
|
605
|
+
Ht();
|
|
582
606
|
}
|
|
583
|
-
return
|
|
584
|
-
getData:
|
|
585
|
-
getImage:
|
|
607
|
+
return ht({
|
|
608
|
+
getData: Bt,
|
|
609
|
+
getImage: Ut,
|
|
586
610
|
generatePdf: Ue,
|
|
587
611
|
generateCsv: me,
|
|
588
|
-
generateImage:
|
|
589
|
-
generateSvg:
|
|
590
|
-
hideSeries:
|
|
591
|
-
showSeries:
|
|
592
|
-
toggleTable:
|
|
612
|
+
generateImage: Ge,
|
|
613
|
+
generateSvg: et,
|
|
614
|
+
hideSeries: Pt,
|
|
615
|
+
showSeries: Dt,
|
|
616
|
+
toggleTable: Ke,
|
|
593
617
|
toggleTooltip: Qe,
|
|
594
|
-
toggleAnnotator:
|
|
595
|
-
toggleFullscreen:
|
|
596
|
-
}), (t, l) => (
|
|
597
|
-
class:
|
|
618
|
+
toggleAnnotator: Ce,
|
|
619
|
+
toggleFullscreen: Je
|
|
620
|
+
}), (t, l) => (n(), c("div", {
|
|
621
|
+
class: lt(`vue-data-ui-component vue-ui-waffle ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
598
622
|
ref_key: "waffleChart",
|
|
599
|
-
ref:
|
|
623
|
+
ref: F,
|
|
600
624
|
id: `vue-ui-waffle_${b.value}`,
|
|
601
625
|
style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
602
|
-
onMouseenter: l[2] || (l[2] = () => h(
|
|
603
|
-
onMouseleave: l[3] || (l[3] = () => h(
|
|
626
|
+
onMouseenter: l[2] || (l[2] = () => h(Le)(!0)),
|
|
627
|
+
onMouseleave: l[3] || (l[3] = () => h(Le)(!1))
|
|
604
628
|
}, [
|
|
605
|
-
e.value.userOptions.buttons.annotator ? (
|
|
629
|
+
e.value.userOptions.buttons.annotator ? (n(), L(h(Ct), {
|
|
606
630
|
key: 0,
|
|
607
631
|
svgRef: h(de),
|
|
608
632
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
609
633
|
color: e.value.style.chart.color,
|
|
610
634
|
active: le.value,
|
|
611
|
-
onClose:
|
|
635
|
+
onClose: Ce
|
|
612
636
|
}, {
|
|
613
637
|
"annotator-action-close": f(() => [
|
|
614
638
|
p(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
615
639
|
]),
|
|
616
640
|
"annotator-action-color": f(({ color: a }) => [
|
|
617
|
-
p(t.$slots, "annotator-action-color", x(
|
|
641
|
+
p(t.$slots, "annotator-action-color", $(x({ color: a })), void 0, !0)
|
|
618
642
|
]),
|
|
619
643
|
"annotator-action-draw": f(({ mode: a }) => [
|
|
620
|
-
p(t.$slots, "annotator-action-draw", x(
|
|
644
|
+
p(t.$slots, "annotator-action-draw", $(x({ mode: a })), void 0, !0)
|
|
621
645
|
]),
|
|
622
646
|
"annotator-action-undo": f(({ disabled: a }) => [
|
|
623
|
-
p(t.$slots, "annotator-action-undo", x(
|
|
647
|
+
p(t.$slots, "annotator-action-undo", $(x({ disabled: a })), void 0, !0)
|
|
624
648
|
]),
|
|
625
649
|
"annotator-action-redo": f(({ disabled: a }) => [
|
|
626
|
-
p(t.$slots, "annotator-action-redo", x(
|
|
650
|
+
p(t.$slots, "annotator-action-redo", $(x({ disabled: a })), void 0, !0)
|
|
627
651
|
]),
|
|
628
652
|
"annotator-action-delete": f(({ disabled: a }) => [
|
|
629
|
-
p(t.$slots, "annotator-action-delete", x(
|
|
653
|
+
p(t.$slots, "annotator-action-delete", $(x({ disabled: a })), void 0, !0)
|
|
630
654
|
]),
|
|
631
655
|
_: 3
|
|
632
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
633
|
-
|
|
656
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : C("", !0),
|
|
657
|
+
Ft.value ? (n(), c("div", {
|
|
634
658
|
key: 1,
|
|
635
659
|
ref_key: "noTitle",
|
|
636
|
-
ref:
|
|
660
|
+
ref: _e,
|
|
637
661
|
class: "vue-data-ui-no-title-space",
|
|
638
662
|
style: "height:36px; width: 100%;background:transparent"
|
|
639
|
-
}, null, 512)) :
|
|
640
|
-
e.value.style.chart.title.text ? (
|
|
663
|
+
}, null, 512)) : C("", !0),
|
|
664
|
+
e.value.style.chart.title.text ? (n(), c("div", {
|
|
641
665
|
key: 2,
|
|
642
666
|
ref_key: "chartTitle",
|
|
643
|
-
ref:
|
|
667
|
+
ref: Fe,
|
|
644
668
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
645
669
|
}, [
|
|
646
|
-
(
|
|
647
|
-
key: `title_${
|
|
670
|
+
(n(), L(Il, {
|
|
671
|
+
key: `title_${Be.value}`,
|
|
648
672
|
config: {
|
|
649
673
|
title: {
|
|
650
674
|
cy: "waffle-title",
|
|
@@ -656,11 +680,11 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
656
680
|
}
|
|
657
681
|
}
|
|
658
682
|
}, null, 8, ["config"]))
|
|
659
|
-
], 512)) :
|
|
683
|
+
], 512)) : C("", !0),
|
|
660
684
|
k("div", {
|
|
661
685
|
id: `legend-top-${b.value}`
|
|
662
|
-
}, null, 8,
|
|
663
|
-
e.value.userOptions.show &&
|
|
686
|
+
}, null, 8, Dl),
|
|
687
|
+
e.value.userOptions.show && re.value && (h(ze) || h(ve)) ? (n(), L(h(mt), {
|
|
664
688
|
ref_key: "userOptionsRef",
|
|
665
689
|
ref: ie,
|
|
666
690
|
key: `user_options_${Te.value}`,
|
|
@@ -676,32 +700,32 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
676
700
|
hasXls: e.value.userOptions.buttons.csv,
|
|
677
701
|
hasTable: e.value.userOptions.buttons.table,
|
|
678
702
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
679
|
-
isFullscreen:
|
|
680
|
-
isTooltip:
|
|
703
|
+
isFullscreen: M.value,
|
|
704
|
+
isTooltip: w.value.showTooltip,
|
|
681
705
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
682
|
-
chartElement:
|
|
706
|
+
chartElement: F.value,
|
|
683
707
|
position: e.value.userOptions.position,
|
|
684
708
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
685
709
|
isAnnotation: le.value,
|
|
686
710
|
callbacks: e.value.userOptions.callbacks,
|
|
687
711
|
printScale: e.value.userOptions.print.scale,
|
|
688
712
|
tableDialog: e.value.table.useDialog,
|
|
689
|
-
onToggleFullscreen:
|
|
713
|
+
onToggleFullscreen: Je,
|
|
690
714
|
onGeneratePdf: h(Ue),
|
|
691
715
|
onGenerateCsv: me,
|
|
692
|
-
onGenerateImage: h(
|
|
693
|
-
onGenerateSvg:
|
|
694
|
-
onToggleTable:
|
|
716
|
+
onGenerateImage: h(Ge),
|
|
717
|
+
onGenerateSvg: et,
|
|
718
|
+
onToggleTable: Ke,
|
|
695
719
|
onToggleTooltip: Qe,
|
|
696
|
-
onToggleAnnotator:
|
|
720
|
+
onToggleAnnotator: Ce,
|
|
697
721
|
style: ae({
|
|
698
|
-
visibility: h(
|
|
722
|
+
visibility: h(ze) ? h(ve) ? "visible" : "hidden" : "visible"
|
|
699
723
|
})
|
|
700
|
-
},
|
|
724
|
+
}, we({ _: 2 }, [
|
|
701
725
|
t.$slots.menuIcon ? {
|
|
702
726
|
name: "menuIcon",
|
|
703
727
|
fn: f(({ isOpen: a, color: o }) => [
|
|
704
|
-
p(t.$slots, "menuIcon", x(
|
|
728
|
+
p(t.$slots, "menuIcon", $(x({ isOpen: a, color: o })), void 0, !0)
|
|
705
729
|
]),
|
|
706
730
|
key: "0"
|
|
707
731
|
} : void 0,
|
|
@@ -750,29 +774,29 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
750
774
|
t.$slots.optionFullscreen ? {
|
|
751
775
|
name: "optionFullscreen",
|
|
752
776
|
fn: f(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
753
|
-
p(t.$slots, "optionFullscreen", x(
|
|
777
|
+
p(t.$slots, "optionFullscreen", $(x({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
754
778
|
]),
|
|
755
779
|
key: "7"
|
|
756
780
|
} : void 0,
|
|
757
781
|
t.$slots.optionAnnotator ? {
|
|
758
782
|
name: "optionAnnotator",
|
|
759
783
|
fn: f(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
760
|
-
p(t.$slots, "optionAnnotator", x(
|
|
784
|
+
p(t.$slots, "optionAnnotator", $(x({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
761
785
|
]),
|
|
762
786
|
key: "8"
|
|
763
787
|
} : void 0
|
|
764
|
-
]), 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"])) :
|
|
765
|
-
(
|
|
788
|
+
]), 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),
|
|
789
|
+
(n(), c("svg", {
|
|
766
790
|
ref_key: "svgRef",
|
|
767
791
|
ref: de,
|
|
768
|
-
xmlns: h(
|
|
769
|
-
class:
|
|
770
|
-
viewBox: `0 0 ${
|
|
792
|
+
xmlns: h(nl),
|
|
793
|
+
class: lt({ "vue-data-ui-fullscreen--on": M.value, "vue-data-ui-fulscreen--off": !M.value }),
|
|
794
|
+
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
771
795
|
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
772
796
|
}, [
|
|
773
|
-
oe(h(
|
|
797
|
+
oe(h(kt)),
|
|
774
798
|
k("defs", null, [
|
|
775
|
-
(
|
|
799
|
+
(n(!0), c(T, null, z(s.value, (a, o) => (n(), c("radialGradient", {
|
|
776
800
|
cx: "50%",
|
|
777
801
|
cy: "50%",
|
|
778
802
|
r: "50%",
|
|
@@ -782,13 +806,13 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
782
806
|
}, [
|
|
783
807
|
k("stop", {
|
|
784
808
|
offset: "0%",
|
|
785
|
-
"stop-color": h(
|
|
786
|
-
}, null, 8,
|
|
809
|
+
"stop-color": h(sl)(h(il)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
810
|
+
}, null, 8, Ll),
|
|
787
811
|
k("stop", {
|
|
788
812
|
offset: "100%",
|
|
789
813
|
"stop-color": a.color
|
|
790
|
-
}, null, 8,
|
|
791
|
-
], 8,
|
|
814
|
+
}, null, 8, zl)
|
|
815
|
+
], 8, El))), 256))
|
|
792
816
|
]),
|
|
793
817
|
k("defs", null, [
|
|
794
818
|
k("filter", {
|
|
@@ -806,98 +830,98 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
806
830
|
type: "saturate",
|
|
807
831
|
values: "0"
|
|
808
832
|
}, null, -1)
|
|
809
|
-
])], 8,
|
|
833
|
+
])], 8, Vl)
|
|
810
834
|
]),
|
|
811
|
-
e.value.useCustomCells &&
|
|
835
|
+
e.value.useCustomCells && s.value.length ? (n(!0), c(T, { key: 0 }, z(W.value, (a, o) => (n(), c("foreignObject", {
|
|
812
836
|
x: a.x,
|
|
813
837
|
y: a.y,
|
|
814
|
-
height:
|
|
815
|
-
width:
|
|
838
|
+
height: _.value <= 0 ? 1e-4 : _.value,
|
|
839
|
+
width: I.value <= 0 ? 1e-4 : I.value,
|
|
816
840
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
817
841
|
}, [
|
|
818
|
-
p(t.$slots, "cell",
|
|
819
|
-
], 8,
|
|
820
|
-
!
|
|
842
|
+
p(t.$slots, "cell", Ae({ 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)
|
|
843
|
+
], 8, Nl))), 256)) : C("", !0),
|
|
844
|
+
!s.value.length && !e.value.useCustomCells ? (n(), c("rect", {
|
|
821
845
|
key: 1,
|
|
822
846
|
x: 12,
|
|
823
847
|
y: 12,
|
|
824
|
-
height:
|
|
825
|
-
width:
|
|
848
|
+
height: S.value.height - 24,
|
|
849
|
+
width: S.value.width - 24,
|
|
826
850
|
rx: 3,
|
|
827
851
|
fill: "none",
|
|
828
852
|
stroke: "black"
|
|
829
|
-
}, null, 8,
|
|
830
|
-
t.$slots.pattern ? (
|
|
831
|
-
(
|
|
832
|
-
p(t.$slots, "pattern",
|
|
853
|
+
}, null, 8, Ml)) : s.value.length && !e.value.useCustomCells ? (n(), c(T, { key: 2 }, [
|
|
854
|
+
t.$slots.pattern ? (n(), c("g", Rl, [
|
|
855
|
+
(n(!0), c(T, null, z(pe.value, (a) => (n(), c("defs", null, [
|
|
856
|
+
p(t.$slots, "pattern", Ae({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
833
857
|
]))), 256))
|
|
834
|
-
])) :
|
|
835
|
-
(
|
|
858
|
+
])) : C("", !0),
|
|
859
|
+
(n(!0), c(T, null, z(W.value, (a, o) => (n(), c("rect", {
|
|
836
860
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
837
861
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
838
862
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
839
|
-
height:
|
|
840
|
-
width:
|
|
863
|
+
height: _.value <= 0 ? 1e-4 : _.value,
|
|
864
|
+
width: I.value <= 0 ? 1e-4 : I.value,
|
|
841
865
|
fill: "white",
|
|
842
866
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
843
867
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
844
|
-
filter: ee(
|
|
845
|
-
}, null, 8,
|
|
846
|
-
(
|
|
868
|
+
filter: ee(s.value[o].serieIndex)
|
|
869
|
+
}, null, 8, Ul))), 256)),
|
|
870
|
+
(n(!0), c(T, null, z(W.value, (a, o) => (n(), c("rect", {
|
|
847
871
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
848
872
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
849
873
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
850
|
-
height:
|
|
851
|
-
width:
|
|
852
|
-
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${b.value}_${o})` :
|
|
874
|
+
height: _.value <= 0 ? 1e-4 : _.value,
|
|
875
|
+
width: I.value <= 0 ? 1e-4 : I.value,
|
|
876
|
+
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${b.value}_${o})` : s.value[o].color,
|
|
853
877
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
854
878
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
855
|
-
filter: ee(
|
|
856
|
-
}, null, 8,
|
|
857
|
-
t.$slots.pattern ? (
|
|
858
|
-
(
|
|
879
|
+
filter: ee(s.value[o].serieIndex)
|
|
880
|
+
}, null, 8, Gl))), 256)),
|
|
881
|
+
t.$slots.pattern ? (n(), c("g", Wl, [
|
|
882
|
+
(n(!0), c(T, null, z(W.value, (a, o) => (n(), c("rect", {
|
|
859
883
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
860
884
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
861
885
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
862
|
-
height:
|
|
863
|
-
width:
|
|
864
|
-
fill: `url(#pattern_${b.value}_${
|
|
886
|
+
height: _.value <= 0 ? 1e-4 : _.value,
|
|
887
|
+
width: I.value <= 0 ? 1e-4 : I.value,
|
|
888
|
+
fill: `url(#pattern_${b.value}_${s.value[o].absoluteIndex})`,
|
|
865
889
|
stroke: "none",
|
|
866
|
-
filter: ee(
|
|
867
|
-
}, null, 8,
|
|
868
|
-
])) :
|
|
869
|
-
], 64)) :
|
|
870
|
-
(
|
|
871
|
-
|
|
890
|
+
filter: ee(s.value[o].serieIndex)
|
|
891
|
+
}, null, 8, jl))), 256))
|
|
892
|
+
])) : C("", !0)
|
|
893
|
+
], 64)) : C("", !0),
|
|
894
|
+
(n(!0), c(T, null, z(W.value, (a, o) => (n(), c(T, null, [
|
|
895
|
+
Mt(o, a) ? (n(), c("text", {
|
|
872
896
|
key: `datalabel_${o}`,
|
|
873
|
-
textContent: ue(
|
|
897
|
+
textContent: ue(Rt(o, a)),
|
|
874
898
|
x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
875
|
-
y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 +
|
|
899
|
+
y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + je.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
876
900
|
"font-size": e.value.style.chart.layout.labels.captions.fontSize,
|
|
877
|
-
fill: h(
|
|
878
|
-
filter: ee(
|
|
879
|
-
}, null, 8,
|
|
901
|
+
fill: h(cl)(s.value[o].color),
|
|
902
|
+
filter: ee(s.value[o].serieIndex)
|
|
903
|
+
}, null, 8, ql)) : C("", !0)
|
|
880
904
|
], 64))), 256)),
|
|
881
|
-
(
|
|
905
|
+
(n(!0), c(T, null, z(W.value, (a, o) => (n(), c("rect", {
|
|
882
906
|
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
883
907
|
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
884
|
-
height:
|
|
885
|
-
width:
|
|
908
|
+
height: je.value,
|
|
909
|
+
width: St.value,
|
|
886
910
|
fill: "transparent",
|
|
887
911
|
stroke: "none",
|
|
888
|
-
onMouseover: (u) =>
|
|
889
|
-
onMouseleave: (u) =>
|
|
890
|
-
onClick: (u) =>
|
|
891
|
-
}, null, 40,
|
|
892
|
-
p(t.$slots, "svg", { svg:
|
|
893
|
-
], 14,
|
|
894
|
-
t.$slots.watermark ? (
|
|
895
|
-
p(t.$slots, "watermark", x(
|
|
896
|
-
])) :
|
|
912
|
+
onMouseover: (u) => Vt(o),
|
|
913
|
+
onMouseleave: (u) => zt(o),
|
|
914
|
+
onClick: (u) => Lt(o)
|
|
915
|
+
}, null, 40, Hl))), 256)),
|
|
916
|
+
p(t.$slots, "svg", { svg: V.value }, void 0, !0)
|
|
917
|
+
], 14, Pl)),
|
|
918
|
+
t.$slots.watermark ? (n(), c("div", Xl, [
|
|
919
|
+
p(t.$slots, "watermark", $(x({ isPrinting: h(Me) || h(Re) })), void 0, !0)
|
|
920
|
+
])) : C("", !0),
|
|
897
921
|
k("div", {
|
|
898
922
|
id: `legend-bottom-${b.value}`
|
|
899
|
-
}, null, 8,
|
|
900
|
-
|
|
923
|
+
}, null, 8, Yl),
|
|
924
|
+
Pe.value ? (n(), L(Zt, {
|
|
901
925
|
key: 5,
|
|
902
926
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
903
927
|
}, [
|
|
@@ -905,24 +929,24 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
905
929
|
ref_key: "chartLegend",
|
|
906
930
|
ref: Se
|
|
907
931
|
}, [
|
|
908
|
-
e.value.style.chart.legend.show ? (
|
|
909
|
-
key: `legend_${
|
|
910
|
-
legendSet:
|
|
911
|
-
config:
|
|
932
|
+
e.value.style.chart.legend.show ? (n(), L(_l, {
|
|
933
|
+
key: `legend_${De.value}`,
|
|
934
|
+
legendSet: N.value,
|
|
935
|
+
config: Et.value,
|
|
912
936
|
onClickMarker: l[0] || (l[0] = ({ legend: a }) => Z(a.uid))
|
|
913
|
-
},
|
|
937
|
+
}, we({
|
|
914
938
|
item: f(({ legend: a }) => [
|
|
915
939
|
k("div", {
|
|
916
940
|
onClick: (o) => a.segregate(),
|
|
917
941
|
style: ae(`opacity:${y.value.includes(a.uid) ? 0.5 : 1}`)
|
|
918
|
-
}, ue(a.display), 13,
|
|
942
|
+
}, ue(a.display), 13, Jl)
|
|
919
943
|
]),
|
|
920
944
|
_: 2
|
|
921
945
|
}, [
|
|
922
946
|
t.$slots.pattern ? {
|
|
923
947
|
name: "legend-pattern",
|
|
924
948
|
fn: f(({ legend: a, index: o }) => [
|
|
925
|
-
oe(
|
|
949
|
+
oe(Sl, {
|
|
926
950
|
shape: a.shape,
|
|
927
951
|
radius: 30,
|
|
928
952
|
stroke: "none",
|
|
@@ -934,20 +958,20 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
934
958
|
} : void 0
|
|
935
959
|
]), 1032, ["legendSet", "config"])) : p(t.$slots, "legend", {
|
|
936
960
|
key: 1,
|
|
937
|
-
legend:
|
|
961
|
+
legend: N.value
|
|
938
962
|
}, void 0, !0)
|
|
939
963
|
], 512)
|
|
940
|
-
], 8, ["to"])) :
|
|
941
|
-
t.$slots.source ? (
|
|
964
|
+
], 8, ["to"])) : C("", !0),
|
|
965
|
+
t.$slots.source ? (n(), c("div", {
|
|
942
966
|
key: 6,
|
|
943
967
|
ref_key: "source",
|
|
944
|
-
ref:
|
|
968
|
+
ref: Ie,
|
|
945
969
|
dir: "auto"
|
|
946
970
|
}, [
|
|
947
971
|
p(t.$slots, "source", {}, void 0, !0)
|
|
948
|
-
], 512)) :
|
|
949
|
-
oe(h(
|
|
950
|
-
show:
|
|
972
|
+
], 512)) : C("", !0),
|
|
973
|
+
oe(h(pt), {
|
|
974
|
+
show: w.value.showTooltip && ne.value && y.value.length < m.dataset.length,
|
|
951
975
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
952
976
|
color: e.value.style.chart.tooltip.color,
|
|
953
977
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -956,48 +980,48 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
956
980
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
957
981
|
position: e.value.style.chart.tooltip.position,
|
|
958
982
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
959
|
-
parent:
|
|
960
|
-
content:
|
|
983
|
+
parent: F.value,
|
|
984
|
+
content: se.value,
|
|
961
985
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
962
986
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
963
|
-
isFullscreen:
|
|
987
|
+
isFullscreen: M.value,
|
|
964
988
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
965
989
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
966
990
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
967
991
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
968
992
|
}, {
|
|
969
993
|
"tooltip-before": f(() => [
|
|
970
|
-
p(t.$slots, "tooltip-before", x(
|
|
994
|
+
p(t.$slots, "tooltip-before", $(x({ ...ye.value })), void 0, !0)
|
|
971
995
|
]),
|
|
972
996
|
"tooltip-after": f(() => [
|
|
973
|
-
p(t.$slots, "tooltip-after", x(
|
|
997
|
+
p(t.$slots, "tooltip-after", $(x({ ...ye.value })), void 0, !0)
|
|
974
998
|
]),
|
|
975
999
|
_: 3
|
|
976
1000
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
977
|
-
|
|
1001
|
+
re.value && e.value.userOptions.buttons.table ? (n(), L(el(Y.value.component), Ae({ key: 7 }, Y.value.props, {
|
|
978
1002
|
ref_key: "tableUnit",
|
|
979
|
-
ref:
|
|
980
|
-
onClose:
|
|
981
|
-
}),
|
|
1003
|
+
ref: j,
|
|
1004
|
+
onClose: Ze
|
|
1005
|
+
}), we({
|
|
982
1006
|
content: f(() => [
|
|
983
|
-
(
|
|
984
|
-
key: `table_${
|
|
1007
|
+
(n(), L(h(yt), {
|
|
1008
|
+
key: `table_${Oe.value}`,
|
|
985
1009
|
colNames: te.value.colNames,
|
|
986
1010
|
head: te.value.head,
|
|
987
1011
|
body: te.value.body,
|
|
988
1012
|
config: te.value.config,
|
|
989
1013
|
title: e.value.table.useDialog ? "" : Y.value.title,
|
|
990
1014
|
withCloseButton: !e.value.table.useDialog,
|
|
991
|
-
onClose:
|
|
1015
|
+
onClose: Ze
|
|
992
1016
|
}, {
|
|
993
1017
|
th: f(({ th: a }) => [
|
|
994
1018
|
k("div", {
|
|
995
1019
|
innerHTML: a,
|
|
996
1020
|
style: { display: "flex", "align-items": "center" }
|
|
997
|
-
}, null, 8,
|
|
1021
|
+
}, null, 8, Kl)
|
|
998
1022
|
]),
|
|
999
1023
|
td: f(({ td: a }) => [
|
|
1000
|
-
|
|
1024
|
+
at(ue(a.name || a), 1)
|
|
1001
1025
|
]),
|
|
1002
1026
|
_: 1
|
|
1003
1027
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1007,7 +1031,7 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
1007
1031
|
e.value.table.useDialog ? {
|
|
1008
1032
|
name: "title",
|
|
1009
1033
|
fn: f(() => [
|
|
1010
|
-
|
|
1034
|
+
at(ue(Y.value.title), 1)
|
|
1011
1035
|
]),
|
|
1012
1036
|
key: "0"
|
|
1013
1037
|
} : void 0,
|
|
@@ -1019,7 +1043,7 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
1019
1043
|
class: "vue-ui-user-options-button",
|
|
1020
1044
|
onClick: l[1] || (l[1] = (a) => me(e.value.userOptions.callbacks.csv))
|
|
1021
1045
|
}, [
|
|
1022
|
-
oe(h(
|
|
1046
|
+
oe(h(gt), {
|
|
1023
1047
|
name: "excel",
|
|
1024
1048
|
stroke: Y.value.props.color
|
|
1025
1049
|
}, null, 8, ["stroke"])
|
|
@@ -1027,11 +1051,16 @@ const $l = ["id"], xl = ["id"], Tl = ["xmlns", "viewBox"], Il = ["id"], Sl = ["s
|
|
|
1027
1051
|
]),
|
|
1028
1052
|
key: "1"
|
|
1029
1053
|
} : void 0
|
|
1030
|
-
]), 1040)) :
|
|
1031
|
-
h(
|
|
1032
|
-
], 46,
|
|
1054
|
+
]), 1040)) : C("", !0),
|
|
1055
|
+
h(Ee) ? (n(), L(kl, { key: 8 })) : C("", !0)
|
|
1056
|
+
], 46, Ol));
|
|
1033
1057
|
}
|
|
1034
|
-
},
|
|
1058
|
+
}, Zl = /* @__PURE__ */ Bl(Ql, [["__scopeId", "data-v-0db27d8d"]]), ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1059
|
+
__proto__: null,
|
|
1060
|
+
default: Zl
|
|
1061
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1035
1062
|
export {
|
|
1036
|
-
|
|
1063
|
+
pa as a,
|
|
1064
|
+
ga as b,
|
|
1065
|
+
Zl as v
|
|
1037
1066
|
};
|