vue-data-ui 3.7.15 → 3.8.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 +50 -43
- package/dist/{Arrow-9T8aUCDR.js → Arrow-pvqmWZAQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DZVSjhEw.js → BaseDraggableDialog-BYwNgX3M.js} +2 -2
- package/dist/{BaseIcon-Dl4VBlHV.js → BaseIcon-CALhpING.js} +8 -4
- package/dist/{ColorPicker-BrMbLQds.js → ColorPicker-B_9b0REv.js} +2 -2
- package/dist/{DataTable-Ho3Bf5oq.js → DataTable-Ca1twcf7.js} +2 -2
- package/dist/{Legend-DSyOOSJ1.js → Legend-Djkw4FGq.js} +2 -2
- package/dist/{NonSvgPenAndPaper-MX5IsudW.js → NonSvgPenAndPaper-DCQPVA4M.js} +3 -3
- package/dist/{PackageVersion-BAF3mEBQ.js → PackageVersion-B9RA2_BM.js} +1 -1
- package/dist/{PenAndPaper-kymjF6_b.js → PenAndPaper-DscVdZ1u.js} +3 -3
- package/dist/{Shape-rPzC8L-O.js → Shape-BEGGcaL8.js} +1 -1
- package/dist/{Slicer-DScoMPmj.js → Slicer-DaUi0o8i.js} +2 -2
- package/dist/{SlicerPreview-B1QUTxTZ.js → SlicerPreview-Bk-h_ANq.js} +2 -2
- package/dist/{SparkTooltip-reDvtQYF.js → SparkTooltip-BWdCP-h3.js} +1 -1
- package/dist/{Title-Hk29BxeL.js → Title-CgkWUXeV.js} +1 -1
- package/dist/{Tooltip-De7i-i20.js → Tooltip-OHx7yHlS.js} +1 -1
- package/dist/{UserOptions-DgscxIaa.js → UserOptions-ChRXLqps.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +5 -0
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-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-BG68zYm5.js → dom-to-png-VQEAYRVr.js} +1 -1
- package/dist/{img-BYzbY8TZ.js → img-CwrkWkkl.js} +1 -1
- package/dist/{lib-DUaaQGCv.js → lib-qMPkcvmh.js} +194 -179
- package/dist/{pdf--SSvtzbF.js → pdf-BMMrFX8S.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +147 -6
- package/dist/types/vue-ui-dag.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBJqy2aF.js → useAutoSizeLabelsInsideViewbox-CY90KinM.js} +1 -1
- package/dist/{useNestedProp-CVGae3Qt.js → useNestedProp-DOOBu_sL.js} +269 -185
- package/dist/usePanZoom-DMfuOfaC.js +135 -0
- package/dist/{usePrinter-BdVu83IN.js → usePrinter-CjGh4mFJ.js} +2 -2
- package/dist/vue-data-ui-BgQPEjgE.js +351 -0
- package/dist/vue-data-ui.js +202 -216
- package/dist/{vue-ui-3d-bar-Cg4nzpjZ.js → vue-ui-3d-bar-BHcSmBFt.js} +6 -6
- package/dist/{vue-ui-accordion-B3SlkXqV.js → vue-ui-accordion-BWfQ8Imt.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BGA_e57_.js → vue-ui-age-pyramid-CKtsF5IW.js} +25 -25
- package/dist/{vue-ui-annotator-BHmNl_oD.js → vue-ui-annotator-DQmmDTg7.js} +7 -7
- package/dist/{vue-ui-bullet-B8Td03RZ.js → vue-ui-bullet-CZKHPSsG.js} +7 -7
- package/dist/{vue-ui-candlestick-aRpv_WG-.js → vue-ui-candlestick-DW7yeLnE.js} +39 -39
- package/dist/{vue-ui-carousel-table-yjrmp9Q4.js → vue-ui-carousel-table-Bv0TZYW1.js} +4 -4
- package/dist/{vue-ui-chestnut-mlal6Cjv.js → vue-ui-chestnut-BUqGBycr.js} +5 -5
- package/dist/{vue-ui-chord-Ddbwnzl7.js → vue-ui-chord-Awtzhq_0.js} +8 -8
- package/dist/{vue-ui-circle-pack-DUw81Lbf.js → vue-ui-circle-pack-WTa2Mj2O.js} +37 -37
- package/dist/vue-ui-cursor-D6_m463R.js +252 -0
- package/dist/vue-ui-dag-tle30Ehr.js +2727 -0
- package/dist/{vue-ui-dashboard-BzIopzfw.js → vue-ui-dashboard-BLgMwKmT.js} +68 -68
- package/dist/vue-ui-digits-DIZ8pi6C.js +200 -0
- package/dist/{vue-ui-donut-D-uqv9-W.js → vue-ui-donut-DY8Q-PAg.js} +88 -88
- package/dist/{vue-ui-donut-evolution-C25j-w7G.js → vue-ui-donut-evolution-DGnq03PX.js} +85 -85
- package/dist/{vue-ui-dumbbell-DaBN6kZz.js → vue-ui-dumbbell-xRMH2Mlv.js} +33 -33
- package/dist/{vue-ui-flow-LBrbktKK.js → vue-ui-flow-C0a8rOyT.js} +42 -42
- package/dist/{vue-ui-funnel-StsSjaZJ.js → vue-ui-funnel-D6krkF1a.js} +19 -19
- package/dist/{vue-ui-galaxy-DATC0Ww1.js → vue-ui-galaxy-BCkJt9OE.js} +59 -59
- package/dist/{vue-ui-gauge-BuSVuoeo.js → vue-ui-gauge-BaH-VYAi.js} +25 -25
- package/dist/{vue-ui-gizmo-B4Du388h.js → vue-ui-gizmo-BnCONs1t.js} +3 -3
- package/dist/{vue-ui-heatmap-C7jHSpqL.js → vue-ui-heatmap-BYoD6XaS.js} +67 -67
- package/dist/{vue-ui-history-plot-CMGhB2Zv.js → vue-ui-history-plot-BZBtIBsY.js} +43 -43
- package/dist/{vue-ui-horizontal-bar-BlG3kfkk.js → vue-ui-horizontal-bar-DsDDKUa6.js} +69 -69
- package/dist/{vue-ui-kpi-CTUnzHcT.js → vue-ui-kpi-Dn750UNZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-DYMh6g7y.js → vue-ui-mini-loader-44NP38K0.js} +2 -2
- package/dist/{vue-ui-molecule-BNwKqzIg.js → vue-ui-molecule-C994_mOK.js} +53 -53
- package/dist/{vue-ui-mood-radar-Bpfe33cj.js → vue-ui-mood-radar-BI2SAtcM.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CG6vyTLr.js → vue-ui-nested-donuts-CSF_bA-I.js} +38 -38
- package/dist/{vue-ui-onion-BNrW85xB.js → vue-ui-onion-L5ULuI3B.js} +38 -38
- package/dist/{vue-ui-parallel-coordinate-plot-prQ8DLgP.js → vue-ui-parallel-coordinate-plot-CYetuoa5.js} +43 -43
- package/dist/{vue-ui-quadrant-mFM3WtKm.js → vue-ui-quadrant-Diwm1-e6.js} +8 -8
- package/dist/{vue-ui-quick-chart-CmJEoZEj.js → vue-ui-quick-chart-YBj4Iyk6.js} +51 -51
- package/dist/{vue-ui-radar-MheG5gvf.js → vue-ui-radar-D76Mi-4u.js} +41 -41
- package/dist/{vue-ui-rating-BAfHKHmb.js → vue-ui-rating-CJjSt6-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-BPZDXdVc.js → vue-ui-relation-circle-BlYazckd.js} +19 -19
- package/dist/{vue-ui-ridgeline-BPDURc5t.js → vue-ui-ridgeline-DW8JqGxN.js} +8 -8
- package/dist/{vue-ui-rings-ByeUycTV.js → vue-ui-rings-De3shW_r.js} +37 -37
- package/dist/{vue-ui-scatter-HkSLoM2F.js → vue-ui-scatter-oDhPqRJq.js} +8 -8
- package/dist/{vue-ui-skeleton-DtciU6S2.js → vue-ui-skeleton-BUIXG_mY.js} +3 -3
- package/dist/vue-ui-smiley-Cni8Q56U.js +377 -0
- package/dist/{vue-ui-spark-trend-lSw8HYoA.js → vue-ui-spark-trend-D1Zt5np6.js} +16 -16
- package/dist/{vue-ui-sparkbar-DZlTPWdS.js → vue-ui-sparkbar-CdmXCSnj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Cwl9Ksz2.js → vue-ui-sparkgauge-Dn2PQhZj.js} +17 -17
- package/dist/{vue-ui-sparkhistogram-Bq2DS4V0.js → vue-ui-sparkhistogram-nrkglHJk.js} +4 -4
- package/dist/{vue-ui-sparkline-DbkCbelr.js → vue-ui-sparkline-tz8fAf2C.js} +31 -31
- package/dist/{vue-ui-sparkstackbar-DWDEh2j6.js → vue-ui-sparkstackbar-BQPSsF5Q.js} +3 -3
- package/dist/{vue-ui-stackbar-BhbkdK0G.js → vue-ui-stackbar-DMO3YIQp.js} +9 -9
- package/dist/{vue-ui-stackline-DqKYCBDP.js → vue-ui-stackline-BQo4KoIK.js} +55 -55
- package/dist/{vue-ui-strip-plot-BUbyj8j8.js → vue-ui-strip-plot-CJpmLgCV.js} +28 -28
- package/dist/{vue-ui-table-B1bx46AB.js → vue-ui-table-Cp4ee_1a.js} +5 -5
- package/dist/{vue-ui-table-heatmap-kuly5Mc1.js → vue-ui-table-heatmap-1qpMxFyu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-B9YLMDpp.js → vue-ui-table-sparkline-wSJjRJc4.js} +4 -4
- package/dist/{vue-ui-thermometer-DGM9Cnnw.js → vue-ui-thermometer-DA8pG0Tr.js} +19 -19
- package/dist/{vue-ui-timer-C1uo5WJb.js → vue-ui-timer-Bc0J-YWP.js} +12 -12
- package/dist/{vue-ui-tiremarks-B-xq7Ivj.js → vue-ui-tiremarks-DqYsca6Q.js} +6 -6
- package/dist/{vue-ui-treemap-VI1FYNqD.js → vue-ui-treemap-BQsPzEFA.js} +51 -51
- package/dist/{vue-ui-waffle-WdacXwVf.js → vue-ui-waffle-5wkXlR4p.js} +69 -69
- package/dist/{vue-ui-wheel-C7yfIwbK.js → vue-ui-wheel-CkZko1RX.js} +6 -6
- package/dist/{vue-ui-word-cloud-BlNxODSZ.js → vue-ui-word-cloud-52bv_Ba-.js} +41 -41
- package/dist/{vue-ui-world-vfrFZPI1.js → vue-ui-world-oIyf91PY.js} +6 -6
- package/dist/{vue-ui-xy-DHN5H4Ln.js → vue-ui-xy-DIEBv1b8.js} +75 -75
- package/dist/{vue-ui-xy-canvas-B3oAOFin.js → vue-ui-xy-canvas-pnm8ar87.js} +127 -127
- package/package.json +4 -3
- package/dist/usePanZoom-DZtyJi5q.js +0 -127
- package/dist/vue-data-ui-BcTiYl7u.js +0 -337
- package/dist/vue-ui-cursor-CIynd5w9.js +0 -229
- package/dist/vue-ui-digits-BDVx5bMH.js +0 -154
- package/dist/vue-ui-smiley-B8k0b8-R.js +0 -852
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as V, ref as i, shallowRef as pt, computed as g, onMounted as pl, toRefs as kl, nextTick as
|
|
2
|
-
import { c as wt, o as Lt, g as ce, k as Sl, t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as Ul, a as Ie } from "./useNestedProp-
|
|
5
|
-
import { u as Hl } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as V, ref as i, shallowRef as pt, computed as g, onMounted as pl, toRefs as kl, nextTick as Fe, watch as ie, watchEffect as xl, onBeforeUnmount as wl, createElementBlock as n, openBlock as r, unref as c, normalizeStyle as te, normalizeClass as I, createBlock as $, createCommentVNode as d, createElementVNode as C, withCtx as y, renderSlot as m, normalizeProps as O, guardReactiveProps as P, createSlots as kt, createVNode as xt, Fragment as S, renderList as B, toDisplayString as x, Teleport as Ll, resolveDynamicComponent as Dl, mergeProps as _l, createTextVNode as Ee } from "vue";
|
|
2
|
+
import { c as wt, o as Lt, g as ce, k as Sl, t as Bl, i as Fl, p as de, a0 as Dt, j as El, l as $e, aa as $l, M as _t, a2 as ze, a as Te, d as ve, X as zl, s as le, ab as Tl, _ as Il, a3 as Ol, a4 as Pl, a5 as St, u as Nl, q as Rl, ac as Bt, ad as Vl } from "./lib-qMPkcvmh.js";
|
|
3
|
+
import { t as Ft, u as Ml } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ul, a as Ie } from "./useNestedProp-DOOBu_sL.js";
|
|
5
|
+
import { u as Hl } from "./usePrinter-CjGh4mFJ.js";
|
|
6
6
|
import { u as Xl, B as Wl } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as jl } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as Gl } from "./useTimeLabels-C5qMhpbe.js";
|
|
9
9
|
import { u as Yl } from "./useThemeCheck-DGJ31Vi5.js";
|
|
10
10
|
import { u as ql } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import eo from "./Legend-
|
|
16
|
-
import { S as to } from "./Slicer-
|
|
11
|
+
import { u as Jl } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import { u as Kl } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
13
|
+
import Ql from "./img-CwrkWkkl.js";
|
|
14
|
+
import Zl from "./Title-CgkWUXeV.js";
|
|
15
|
+
import eo from "./Legend-Djkw4FGq.js";
|
|
16
|
+
import { S as to } from "./Slicer-DaUi0o8i.js";
|
|
17
17
|
import { _ as lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoom: { color: "#4A4A4A", highlightColor: "#9A9A9A" }, dialog: { backgroundColor: "#1A1A1A", color: "#CCCCCC", header: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, donutChart: { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, 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" } } } }, layout: { grid: { stroke: "#5A5A5A", yAxis: { dataLabels: { color: "#CCCCCC" } }, xAxis: { dataLabels: { color: "#CCCCCC" } } }, line: { stroke: "#4A4A4A" }, highlighter: { color: "#CCCCCC" }, dataLabels: { color: "#CCCCCC" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, $t = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, dialog: { backgroundColor: "#FFF8E1", color: "#424242", header: { backgroundColor: "##FFF8E1", color: "#424242" }, donutChart: { style: { chart: { backgroundColor: "##FFF8E1", color: "#424242", layout: { labels: { percentage: { color: "#424242" }, name: { color: "#424242" }, hollow: { total: { color: "#424242", value: { color: "#424242" } }, average: { color: "#424242", value: { color: "#424242" } } } } }, legend: { backgroundColor: "##FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { stroke: "#5D4037", showVerticalLines: !1, yAxis: { dataLabels: { color: "#424242" } }, xAxis: { dataLabels: { color: "#424242" } } }, line: { stroke: "#5D4037" }, highlighter: { color: "#424242" }, dataLabels: { color: "#424242" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, zt = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", zoom: { color: "#5D4037", highlightColor: "#FF8A65" }, dialog: { backgroundColor: "#1E1E1E", color: "#BDBDBD", header: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, donutChart: { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { percentage: { color: "#BDBDBD" }, name: { color: "#BDBDBD" }, hollow: { total: { color: "#BDBDBD", value: { color: "#BDBDBD" } }, average: { color: "#BDBDBD", value: { color: "#BDBDBD" } } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { stroke: "#5D4037", showVerticalLines: !1, yAxis: { dataLabels: { color: "#BDBDBD" } }, xAxis: { dataLabels: { color: "#BDBDBD" } } }, line: { stroke: "#5D4037" }, highlighter: { color: "#FFF8E1" }, dataLabels: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", zoom: { color: "#5F6A5F", highlightColor: "#66CC66" }, dialog: { backgroundColor: "#1A1A1A", color: "#BDBDBD", header: { backgroundColor: "#1A1A1A", color: "#BDBDBD" }, donutChart: { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { percentage: { color: "#99AA99" }, name: { color: "#99AA99" }, hollow: { total: { color: "#99AA99", value: { color: "#99AA99" } }, average: { color: "#99AA99", value: { color: "#99AA99" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { show: !1, stroke: "#5F6A5F", yAxis: { dataLabels: { color: "#AACCAA" } }, xAxis: { dataLabels: { color: "#AACCAA" } } }, line: { stroke: "#5F6A5F" }, highlighter: { color: "#66CC66" }, dataLabels: { color: "#AACCAA" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, It = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", zoom: { color: "#E0CFC3", highlightColor: "#8F837A" }, dialog: { backgroundColor: "#fbfafa", color: "#8A9892", header: { backgroundColor: "#fbfafa", color: "#8A9892" }, donutChart: { style: { chart: { backgroundColor: "#fbfafa", color: "#99AA99", layout: { labels: { percentage: { color: "#A0AC94" }, name: { color: "#A0AC94" }, hollow: { total: { color: "#A0AC94", value: { color: "#A0AC94" } }, average: { color: "#A0AC94", value: { color: "#A0AC94" } } } } }, legend: { backgroundColor: "#fbfafa", color: "#A0AC94" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { show: !1, yAxis: { dataLabels: { show: !1 } }, xAxis: { dataLabels: { show: !1 } } }, line: { stroke: "#DCDFE7" }, highlighter: { color: "#8F837A" }, dataLabels: { color: "#A0AC94" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Ot = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", zoom: { color: "#92B0AB", highlightColor: "#50606C" }, dialog: { backgroundColor: "#f6f6fb", color: "#50606C", header: { backgroundColor: "#f6f6fb", color: "#50606C" }, donutChart: { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { percentage: { color: "#61747E" }, name: { color: "#61747E" }, hollow: { total: { color: "#61747E", value: { color: "#61747E" } }, average: { color: "#61747E", value: { color: "#61747E" } } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } } }, layout: { grid: { stroke: "#BBC4D3", yAxis: { dataLabels: { color: "#61747E" } }, xAxis: { dataLabels: { color: "#61747E" } } }, line: { stroke: "#92B0AB" }, highlighter: { color: "#50606C" }, dataLabels: { color: "#61747E" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Pt = {
|
|
19
19
|
default: {},
|
|
@@ -32,7 +32,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
32
32
|
default: Pt,
|
|
33
33
|
hack: Tt,
|
|
34
34
|
zen: It
|
|
35
|
-
}, Symbol.toStringTag, { value: "Module" })), oo = ["id"], ao = ["id"], ro = ["xmlns", "viewBox"], uo = ["x", "y", "width", "height"], no = ["id"], so = ["stop-color"], io = ["stop-color"], co = ["id"], vo = ["stop-color"], ho = ["stop-color"], go = ["stop-color"], fo = { key: 1 }, yo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Co = { key: 0 }, mo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ao = ["font-size", "fill", "transform"], po = ["x", "y", "font-size", "fill"], ko = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xo = ["x", "y", "font-size", "fill", "font-weight"], wo = { key: 0 }, Lo = ["text-anchor", "font-size", "fill", "transform"], Do = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], _o = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], So = { key: 1 },
|
|
35
|
+
}, Symbol.toStringTag, { value: "Module" })), oo = ["id"], ao = ["id"], ro = ["xmlns", "viewBox"], uo = ["x", "y", "width", "height"], no = ["id"], so = ["stop-color"], io = ["stop-color"], co = ["id"], vo = ["stop-color"], ho = ["stop-color"], go = ["stop-color"], fo = { key: 1 }, yo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Co = { key: 0 }, mo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ao = ["font-size", "fill", "transform"], po = ["x", "y", "font-size", "fill"], ko = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xo = ["x", "y", "font-size", "fill", "font-weight"], wo = { key: 0 }, Lo = ["text-anchor", "font-size", "fill", "transform"], Do = ["text-anchor", "font-size", "fill", "transform", "innerHTML"], _o = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], So = { key: 1 }, Bo = ["cx", "cy", "r", "fill"], Fo = { key: 0 }, Eo = { key: 0 }, $o = ["d", "stroke"], zo = ["text-anchor", "x", "y", "fill"], To = ["cx", "cy", "r", "fill"], Io = { key: 0 }, Oo = ["cx", "cy", "fill"], Po = { key: 1 }, No = ["d", "fill", "stroke"], Ro = { key: 2 }, Vo = ["d", "fill", "stroke"], Mo = ["x", "y", "font-size", "fill"], Uo = ["x", "y", "width", "height", "fill"], Ho = ["x", "y", "width", "height", "onMouseenter", "onMouseleave", "onClick"], Xo = {
|
|
36
36
|
key: 4,
|
|
37
37
|
class: "vue-data-ui-watermark"
|
|
38
38
|
}, Wo = ["id"], jo = ["onClick"], Go = { key: 0 }, Yo = { key: 1 }, qo = {
|
|
@@ -53,12 +53,12 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
53
53
|
},
|
|
54
54
|
emits: ["selectLegend"],
|
|
55
55
|
setup(Nt, { expose: Rt, emit: Vt }) {
|
|
56
|
-
const Mt = V(() => import("./vue-ui-accordion-
|
|
56
|
+
const Mt = V(() => import("./vue-ui-accordion-BWfQ8Imt.js")), Ut = V(() => import("./BaseIcon-CALhpING.js")), Ht = V(() => import("./DataTable-Ca1twcf7.js")), Xt = V(() => import("./PackageVersion-B9RA2_BM.js")), Wt = V(() => import("./PenAndPaper-DscVdZ1u.js")), jt = V(() => import("./UserOptions-ChRXLqps.js")), Gt = V(() => import("./vue-ui-donut-DY8Q-PAg.js").then((t) => t.a)), Oe = V(() => import("./BaseDraggableDialog-BYwNgX3M.js")), { vue_ui_donut_evolution: Yt } = Ul(), { isThemeValid: qt, warnInvalidTheme: Jt } = Yl(), A = Nt, z = i(wt()), k = i([]), b = i(null), oe = i(null), he = i(!1), M = i(null), N = i(null), Kt = i(null), Pe = i(0), Ne = i(0), Re = i(0), Ve = i(0), Me = i(0), ge = i(null), ae = i(null), fe = i(null), ye = i(null), Ue = i(!1), J = i(null), be = i(null), He = i(null), Xe = i(null), We = i(null), je = i(null), Ge = i(null), Ce = i(!1), K = pt(null), re = pt(null), Ye = i(null), qe = Vt, Je = g(() => !!A.dataset && A.dataset.length);
|
|
57
57
|
pl(() => {
|
|
58
|
-
Ue.value = !0,
|
|
58
|
+
Ue.value = !0, Ke();
|
|
59
59
|
});
|
|
60
60
|
const ue = g(() => !!e.value.debug);
|
|
61
|
-
function
|
|
61
|
+
function Ke() {
|
|
62
62
|
if (Lt(A.dataset) ? (ce({
|
|
63
63
|
componentName: "VueUiDonutEvolution",
|
|
64
64
|
type: "dataset",
|
|
@@ -79,13 +79,13 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
79
79
|
}), Lt(A.dataset) || (ne.value = e.value.loading), setTimeout(() => {
|
|
80
80
|
Ce.value = !0;
|
|
81
81
|
}, 10), Ae(), e.value.responsive) {
|
|
82
|
-
const t =
|
|
82
|
+
const t = Ft(() => {
|
|
83
83
|
Ce.value = !1;
|
|
84
84
|
const { width: o, height: l } = Ml({
|
|
85
85
|
chart: N.value,
|
|
86
86
|
title: e.value.style.chart.title.text ? He.value : null,
|
|
87
87
|
legend: e.value.style.chart.legend.show ? Xe.value : null,
|
|
88
|
-
slicer: e.value.style.chart.zoom.show &&
|
|
88
|
+
slicer: e.value.style.chart.zoom.show && Ze.value > 1 ? Ge.value : null,
|
|
89
89
|
source: We.value
|
|
90
90
|
});
|
|
91
91
|
requestAnimationFrame(() => {
|
|
@@ -94,10 +94,10 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
94
94
|
}, 10);
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
|
-
|
|
97
|
+
K.value && (re.value && K.value.unobserve(re.value), K.value.disconnect()), K.value = new ResizeObserver(t), re.value = N.value.parentNode, K.value.observe(re.value);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
const e = i(xe()), { loading:
|
|
100
|
+
const e = i(xe()), { loading: Qe, FINAL_DATASET: me, manualLoading: ne } = Xl({
|
|
101
101
|
...kl(A),
|
|
102
102
|
FINAL_CONFIG: e,
|
|
103
103
|
prepareConfig: xe,
|
|
@@ -123,7 +123,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
123
123
|
color: "#CACACA"
|
|
124
124
|
}
|
|
125
125
|
],
|
|
126
|
-
skeletonConfig:
|
|
126
|
+
skeletonConfig: Bl({
|
|
127
127
|
defaultConfig: e.value,
|
|
128
128
|
userConfig: {
|
|
129
129
|
useCssAnimation: !1,
|
|
@@ -168,26 +168,26 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
168
168
|
}), j = i({
|
|
169
169
|
width: e.value.style.chart.layout.width,
|
|
170
170
|
height: e.value.style.chart.layout.height
|
|
171
|
-
}),
|
|
171
|
+
}), Ze = g(() => Math.max(...me.value.map((t) => t.values.length))), h = i({
|
|
172
172
|
start: 0,
|
|
173
|
-
end:
|
|
173
|
+
end: Ze.value
|
|
174
174
|
});
|
|
175
175
|
function et() {
|
|
176
176
|
Ae();
|
|
177
177
|
}
|
|
178
178
|
async function Ae() {
|
|
179
|
-
await
|
|
179
|
+
await Fe(), await Fe();
|
|
180
180
|
const { startIndex: t, endIndex: o } = e.value.style.chart.zoom, l = je.value;
|
|
181
|
-
h.value = { start: 0, max:
|
|
181
|
+
h.value = { start: 0, max: F.value }, (t != null || o != null) && l ? (t != null ? l.setStartValue(t) : (h.value.start = 0, l.setStartValue(0)), o != null ? l.setEndValue(Qt(o + 1)) : (h.value.end = F.value, l.setEndValue(F.value))) : (h.value = {
|
|
182
182
|
start: 0,
|
|
183
|
-
end:
|
|
183
|
+
end: F.value
|
|
184
184
|
}, Ne.value += 1);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
const o =
|
|
186
|
+
function Qt(t) {
|
|
187
|
+
const o = F.value;
|
|
188
188
|
return t > o ? o : t < 0 || e.value.style.chart.zoom.startIndex !== null && t < e.value.style.chart.zoom.startIndex ? e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex + 1 : 1 : t;
|
|
189
189
|
}
|
|
190
|
-
const { userOptionsVisible: pe, setUserOptionsVisibility: tt, keepUserOptionState: lt } = ql({ config: e.value }), { svgRef: ke } =
|
|
190
|
+
const { userOptionsVisible: pe, setUserOptionsVisibility: tt, keepUserOptionState: lt } = ql({ config: e.value }), { svgRef: ke } = Jl({ config: e.value.style.chart.title });
|
|
191
191
|
function xe() {
|
|
192
192
|
const t = Ie({
|
|
193
193
|
userConfig: A.config,
|
|
@@ -197,7 +197,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
197
197
|
const l = t.theme;
|
|
198
198
|
if (l)
|
|
199
199
|
if (!qt.value(t))
|
|
200
|
-
|
|
200
|
+
Jt(t), o = t;
|
|
201
201
|
else {
|
|
202
202
|
const u = Ie({
|
|
203
203
|
userConfig: Pt[l] || A.config,
|
|
@@ -208,7 +208,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
208
208
|
userConfig: A.config,
|
|
209
209
|
defaultConfig: u
|
|
210
210
|
}),
|
|
211
|
-
customPalette: t.customPalette ? t.customPalette :
|
|
211
|
+
customPalette: t.customPalette ? t.customPalette : Fl[l] || de
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
else
|
|
@@ -216,7 +216,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
216
216
|
return A.config && Dt(A.config, "style.chart.zoom.startIndex") ? o.style.chart.zoom.startIndex = A.config.style.chart.zoom.startIndex : o.style.chart.zoom.startIndex = null, A.config && Dt(A.config, "style.chart.zoom.endIndex") ? o.style.chart.zoom.endIndex = A.config.style.chart.zoom.endIndex : o.style.chart.zoom.endIndex = null, o;
|
|
217
217
|
}
|
|
218
218
|
ie(() => A.config, (t) => {
|
|
219
|
-
|
|
219
|
+
Qe.value || (e.value = xe()), pe.value = !e.value.userOptions.showOnChartHover, Ke(), Re.value += 1, Ve.value += 1, Me.value += 1, U.value.showTable = e.value.table.show;
|
|
220
220
|
}, { deep: !0 }), ie(() => A.dataset, (t) => {
|
|
221
221
|
Array.isArray(t) && t.length > 0 && (ne.value = !1), et();
|
|
222
222
|
}, { deep: !0 });
|
|
@@ -224,7 +224,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
224
224
|
elementId: z.value,
|
|
225
225
|
fileName: e.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
226
226
|
options: e.value.userOptions.print
|
|
227
|
-
}),
|
|
227
|
+
}), Zt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), el = g(() => El(e.value.customPalette)), U = i({
|
|
228
228
|
showTable: e.value.table.show
|
|
229
229
|
});
|
|
230
230
|
ie(e, () => {
|
|
@@ -247,7 +247,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
247
247
|
const o = ye.value ? ye.value.getBoundingClientRect().width + e.value.style.chart.layout.grid.axis.yLabelOffsetX + e.value.style.chart.layout.grid.axis.fontSize : 0;
|
|
248
248
|
return t + o + 5;
|
|
249
249
|
}
|
|
250
|
-
const we = i(0), ll =
|
|
250
|
+
const we = i(0), ll = Ft((t) => {
|
|
251
251
|
we.value = t;
|
|
252
252
|
}, 100);
|
|
253
253
|
xl((t) => {
|
|
@@ -302,9 +302,9 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
302
302
|
})))), X = g(() => T.value.filter((t) => !k.value.includes(t.uid)).map((t) => ({
|
|
303
303
|
...t,
|
|
304
304
|
values: t.values.filter((o, l) => l >= h.value.start && l <= h.value.end)
|
|
305
|
-
}))),
|
|
305
|
+
}))), F = g(() => Math.max(...X.value.map((t) => t.length))), L = g(() => Gl({
|
|
306
306
|
values: e.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
307
|
-
maxDatapoints:
|
|
307
|
+
maxDatapoints: F.value,
|
|
308
308
|
formatter: e.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
309
309
|
start: h.value.start,
|
|
310
310
|
end: h.value.end
|
|
@@ -381,7 +381,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
381
381
|
value: t
|
|
382
382
|
})));
|
|
383
383
|
function rl(t, o) {
|
|
384
|
-
return isNaN(t.value /
|
|
384
|
+
return isNaN(t.value / Bt(o, "value")) ? 0 : (t.value / Bt(o, "value") * 100).toFixed(0) + "%";
|
|
385
385
|
}
|
|
386
386
|
function it(t) {
|
|
387
387
|
b.value = null, oe.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.seriesIndex + h.value.start });
|
|
@@ -389,9 +389,9 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
389
389
|
function ul(t) {
|
|
390
390
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.index + h.value.start }), b.value = t.index, oe.value = t;
|
|
391
391
|
}
|
|
392
|
-
const
|
|
392
|
+
const Q = i(null);
|
|
393
393
|
function ct(t, o) {
|
|
394
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (oe.value = null, b.value = null, he.value = !0, M.value = t, dl(t), [null, void 0].includes(o) || (
|
|
394
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.index + h.value.start }), !(!t.subtotal || !e.value.style.chart.dialog.show) && (oe.value = null, b.value = null, he.value = !0, M.value = t, dl(t), [null, void 0].includes(o) || (Q.value = o));
|
|
395
395
|
}
|
|
396
396
|
const De = g(() => T.value.map((t, o) => ({
|
|
397
397
|
name: t.name,
|
|
@@ -402,7 +402,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
402
402
|
})).sort((t, o) => o.value - t.value).map((t, o) => ({
|
|
403
403
|
...t,
|
|
404
404
|
opacity: k.value.includes(t.uid) ? 0.5 : 1,
|
|
405
|
-
segregate: () =>
|
|
405
|
+
segregate: () => Z(t.uid),
|
|
406
406
|
isSegregated: k.value.includes(t.uid),
|
|
407
407
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Te(
|
|
408
408
|
e.value.style.chart.layout.dataLabels.formatter,
|
|
@@ -427,14 +427,14 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
427
427
|
paddingBottom: 12,
|
|
428
428
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
429
429
|
}));
|
|
430
|
-
function
|
|
430
|
+
function Z(t) {
|
|
431
431
|
if (k.value.includes(t))
|
|
432
432
|
k.value = k.value.filter((o) => o !== t), qe("selectLegend", X.value);
|
|
433
433
|
else {
|
|
434
434
|
if (k.value.length === T.value.length - 1) return;
|
|
435
435
|
k.value.push(t), qe("selectLegend", X.value);
|
|
436
436
|
}
|
|
437
|
-
M.value && ct(D.value.find((o, l) => l ===
|
|
437
|
+
M.value && ct(D.value.find((o, l) => l === Q.value));
|
|
438
438
|
}
|
|
439
439
|
function vt(t) {
|
|
440
440
|
if (!T.value.length)
|
|
@@ -444,11 +444,11 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
444
444
|
}
|
|
445
445
|
function sl(t) {
|
|
446
446
|
const o = vt(t);
|
|
447
|
-
o !== null && k.value.includes(o.uid) &&
|
|
447
|
+
o !== null && k.value.includes(o.uid) && Z(o.uid);
|
|
448
448
|
}
|
|
449
449
|
function il(t) {
|
|
450
450
|
const o = vt(t);
|
|
451
|
-
o !== null && (k.value.includes(o.uid) ||
|
|
451
|
+
o !== null && (k.value.includes(o.uid) || Z(o.uid));
|
|
452
452
|
}
|
|
453
453
|
const Y = g(() => {
|
|
454
454
|
const t = [""].concat(T.value.filter((a) => !k.value.includes(a.uid)).map((a) => ({
|
|
@@ -456,7 +456,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
456
456
|
color: a.color
|
|
457
457
|
}))).concat(["Σ"]);
|
|
458
458
|
let o = [];
|
|
459
|
-
for (let a = 0; a <
|
|
459
|
+
for (let a = 0; a < F.value; a += 1) {
|
|
460
460
|
const f = T.value.filter((v) => !k.value.includes(v.uid)).map((v) => v.values[a] ?? 0).reduce((v, p) => v + p, 0);
|
|
461
461
|
o.push([L.value[a] ? L.value[a].text : "-"].concat(T.value.filter((v) => !k.value.includes(v.uid)).map((v) => ({
|
|
462
462
|
value: v.values[a] ?? 0,
|
|
@@ -484,7 +484,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
484
484
|
return T.value;
|
|
485
485
|
}
|
|
486
486
|
function _e(t = null) {
|
|
487
|
-
|
|
487
|
+
Fe(() => {
|
|
488
488
|
const o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], l = [...Y.value.head.map((v) => v.name ?? v)], u = [...Y.value.body.map((v) => v.map((p) => p.value ?? p))], a = o.concat([l]).concat(u), f = Nl(a);
|
|
489
489
|
t ? t(f) : Rl({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-donut-evolution" });
|
|
490
490
|
});
|
|
@@ -503,7 +503,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
503
503
|
function ft(t) {
|
|
504
504
|
return t.proportion * 100 > e.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
505
505
|
}
|
|
506
|
-
const yt = i([]), bt = i({}),
|
|
506
|
+
const yt = i([]), bt = i({}), Be = i(null);
|
|
507
507
|
function dl(t) {
|
|
508
508
|
yt.value = t.donut.map((o) => ({
|
|
509
509
|
name: o.name,
|
|
@@ -513,11 +513,11 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
513
513
|
...e.value.style.chart.dialog.donutChart,
|
|
514
514
|
responsive: !0,
|
|
515
515
|
theme: e.value.theme
|
|
516
|
-
}),
|
|
516
|
+
}), Be.value && Be.value.open();
|
|
517
517
|
}
|
|
518
518
|
async function vl({ scale: t = 2 } = {}) {
|
|
519
519
|
if (!N.value) return;
|
|
520
|
-
const { width: o, height: l } = N.value.getBoundingClientRect(), u = o / l, { imageUri: a, base64: f } = await
|
|
520
|
+
const { width: o, height: l } = N.value.getBoundingClientRect(), u = o / l, { imageUri: a, base64: f } = await Ql({ domElement: N.value, base64: !0, img: !0, scale: t });
|
|
521
521
|
return {
|
|
522
522
|
imageUri: a,
|
|
523
523
|
base64: f,
|
|
@@ -528,7 +528,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
530
|
const hl = g(() => j.value.width), gl = g(() => j.value.height);
|
|
531
|
-
|
|
531
|
+
Kl({
|
|
532
532
|
timeLabelsEls: ae,
|
|
533
533
|
timeLabels: L,
|
|
534
534
|
slicer: h,
|
|
@@ -571,7 +571,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
571
571
|
};
|
|
572
572
|
});
|
|
573
573
|
ie(() => U.value.showTable, (t) => {
|
|
574
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
574
|
+
e.value.table.show || (t && e.value.table.useDialog && J.value ? J.value.open() : "close" in J.value && J.value.close());
|
|
575
575
|
});
|
|
576
576
|
function Ct() {
|
|
577
577
|
U.value.showTable = !1, be.value && be.value.setTableIconState(!1);
|
|
@@ -642,10 +642,10 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
642
642
|
]),
|
|
643
643
|
_: 3
|
|
644
644
|
}, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
|
|
645
|
-
|
|
645
|
+
Zt.value ? (r(), n("div", {
|
|
646
646
|
key: 1,
|
|
647
647
|
ref_key: "noTitle",
|
|
648
|
-
ref:
|
|
648
|
+
ref: Kt,
|
|
649
649
|
class: "vue-data-ui-no-title-space",
|
|
650
650
|
style: "height:36px; width: 100%;background:transparent"
|
|
651
651
|
}, null, 512)) : d("", !0),
|
|
@@ -656,7 +656,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
656
656
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
657
657
|
onMouseleave: it
|
|
658
658
|
}, [
|
|
659
|
-
(r(), $(
|
|
659
|
+
(r(), $(Zl, {
|
|
660
660
|
key: `title_${Re.value}`,
|
|
661
661
|
config: {
|
|
662
662
|
title: {
|
|
@@ -673,7 +673,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
673
673
|
C("div", {
|
|
674
674
|
id: `legend-top-${z.value}`
|
|
675
675
|
}, null, 8, ao),
|
|
676
|
-
e.value.userOptions.show &&
|
|
676
|
+
e.value.userOptions.show && Je.value && (c(lt) || c(pe)) ? (r(), $(c(jt), {
|
|
677
677
|
ref_key: "userOptionsRef",
|
|
678
678
|
ref: be,
|
|
679
679
|
key: `user_options_${Pe.value}`,
|
|
@@ -840,7 +840,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
840
840
|
"stroke-linecap": "round"
|
|
841
841
|
}, null, 8, bo),
|
|
842
842
|
e.value.style.chart.layout.grid.showVerticalLines ? (r(), n("g", Co, [
|
|
843
|
-
(r(!0), n(S, null,
|
|
843
|
+
(r(!0), n(S, null, B(h.value.end - h.value.start, (l, u) => (r(), n("line", {
|
|
844
844
|
x1: s.value.left + (u + 1) * w.value,
|
|
845
845
|
x2: s.value.left + (u + 1) * w.value,
|
|
846
846
|
y1: s.value.top,
|
|
@@ -879,7 +879,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
879
879
|
ref: ge,
|
|
880
880
|
class: I({ "donut-opacity": !0, "donut-behind": b.value !== null })
|
|
881
881
|
}, [
|
|
882
|
-
(r(!0), n(S, null,
|
|
882
|
+
(r(!0), n(S, null, B(al.value, (l, u) => (r(), n("g", null, [
|
|
883
883
|
l.value >= G.value.min && l.value <= G.value.max ? (r(), n("line", {
|
|
884
884
|
key: 0,
|
|
885
885
|
x1: s.value.left,
|
|
@@ -916,8 +916,8 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
916
916
|
ref: ae,
|
|
917
917
|
class: I({ "donut-opacity": !0 })
|
|
918
918
|
}, [
|
|
919
|
-
(r(!0), n(S, null,
|
|
920
|
-
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (u === 0 || u ===
|
|
919
|
+
(r(!0), n(S, null, B(h.value.end - h.value.start, (l, u) => (r(), n("g", null, [
|
|
920
|
+
(e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (u === 0 || u === F.value - 1) || !e.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && L.value[u] && L.value[u].text ? (r(), n("g", wo, [
|
|
921
921
|
String(L.value[u].text).includes(`
|
|
922
922
|
`) ? (r(), n("text", {
|
|
923
923
|
key: 1,
|
|
@@ -944,7 +944,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
944
944
|
])) : d("", !0)
|
|
945
945
|
]))), 256))
|
|
946
946
|
], 512)) : d("", !0),
|
|
947
|
-
(r(!0), n(S, null,
|
|
947
|
+
(r(!0), n(S, null, B(D.value, (l, u) => (r(), n("g", null, [
|
|
948
948
|
e.value.style.chart.layout.line.show && u < D.value.length - 1 && ![l.subtotal, D.value[u + 1].subtotal].includes(null) ? (r(), n("line", {
|
|
949
949
|
key: 0,
|
|
950
950
|
class: I({ "donut-opacity": !0, "donut-behind": b.value !== null }),
|
|
@@ -964,15 +964,15 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
964
964
|
cy: l.y,
|
|
965
965
|
r: l.activeRadius,
|
|
966
966
|
fill: e.value.style.chart.backgroundColor
|
|
967
|
-
}, null, 8,
|
|
967
|
+
}, null, 8, Bo)) : d("", !0)
|
|
968
968
|
])) : d("", !0)
|
|
969
969
|
]))), 256)),
|
|
970
|
-
(r(!0), n(S, null,
|
|
970
|
+
(r(!0), n(S, null, B(D.value, (l, u) => (r(), n("g", {
|
|
971
971
|
class: I({ "donut-opacity": !0, "donut-behind": u !== b.value && b.value !== null })
|
|
972
972
|
}, [
|
|
973
|
-
l.subtotal ? (r(), n("g",
|
|
973
|
+
l.subtotal ? (r(), n("g", Fo, [
|
|
974
974
|
b.value !== null && b.value === u ? (r(), n("g", Eo, [
|
|
975
|
-
(r(!0), n(S, null,
|
|
975
|
+
(r(!0), n(S, null, B(l.donutHover, (a) => (r(), n("g", null, [
|
|
976
976
|
ft(a) ? (r(), n("path", {
|
|
977
977
|
key: 0,
|
|
978
978
|
d: c(Ol)(a, { x: a.center.endX, y: a.center.endY }, 12, 12, { x: l.x, y: l.y }, !1, 20),
|
|
@@ -983,7 +983,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
983
983
|
fill: "none"
|
|
984
984
|
}, null, 8, $o)) : d("", !0)
|
|
985
985
|
]))), 256)),
|
|
986
|
-
(r(!0), n(S, null,
|
|
986
|
+
(r(!0), n(S, null, B(l.donutHover, (a, f) => (r(), n("g", null, [
|
|
987
987
|
ft(a) ? (r(), n("text", {
|
|
988
988
|
key: 0,
|
|
989
989
|
"data-cy-hover-label": "",
|
|
@@ -1006,7 +1006,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1006
1006
|
])) : d("", !0)
|
|
1007
1007
|
])) : d("", !0)
|
|
1008
1008
|
], 2))), 256)),
|
|
1009
|
-
(r(!0), n(S, null,
|
|
1009
|
+
(r(!0), n(S, null, B(D.value, (l, u) => (r(), n("g", {
|
|
1010
1010
|
class: I({ "donut-opacity": !0, "donut-behind": u !== b.value && b.value !== null })
|
|
1011
1011
|
}, [
|
|
1012
1012
|
l.subtotal !== null ? (r(), n("g", Io, [
|
|
@@ -1017,14 +1017,14 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1017
1017
|
r: 3,
|
|
1018
1018
|
fill: e.value.style.chart.color
|
|
1019
1019
|
}, null, 8, Oo)) : b.value !== null && b.value === u ? (r(), n("g", Po, [
|
|
1020
|
-
(r(!0), n(S, null,
|
|
1020
|
+
(r(!0), n(S, null, B(l.donutHover, (a, f) => (r(), n("path", {
|
|
1021
1021
|
d: a.arcSlice,
|
|
1022
1022
|
fill: `${a.color}`,
|
|
1023
1023
|
"stroke-width": 1,
|
|
1024
1024
|
stroke: e.value.style.chart.backgroundColor
|
|
1025
1025
|
}, null, 8, No))), 256))
|
|
1026
1026
|
])) : (r(), n("g", Ro, [
|
|
1027
|
-
(r(!0), n(S, null,
|
|
1027
|
+
(r(!0), n(S, null, B(l.donut, (a, f) => (r(), n("path", {
|
|
1028
1028
|
d: a.arcSlice,
|
|
1029
1029
|
fill: `${a.color}`,
|
|
1030
1030
|
"stroke-width": 0.5,
|
|
@@ -1033,7 +1033,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1033
1033
|
]))
|
|
1034
1034
|
])) : d("", !0)
|
|
1035
1035
|
], 2))), 256)),
|
|
1036
|
-
(r(!0), n(S, null,
|
|
1036
|
+
(r(!0), n(S, null, B(D.value, (l, u) => (r(), n("g", {
|
|
1037
1037
|
class: I({ "donut-opacity": !0, "donut-behind": u !== b.value && b.value !== null || he.value && u !== M.value.index })
|
|
1038
1038
|
}, [
|
|
1039
1039
|
l.subtotal !== null && e.value.style.chart.layout.dataLabels.show ? (r(), n("text", {
|
|
@@ -1046,18 +1046,18 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1046
1046
|
fill: e.value.style.chart.layout.dataLabels.color
|
|
1047
1047
|
}, x(st(l.subtotal, l, u)), 9, Mo)) : d("", !0)
|
|
1048
1048
|
], 2))), 256)),
|
|
1049
|
-
(r(!0), n(S, null,
|
|
1049
|
+
(r(!0), n(S, null, B(D.value, (l, u) => (r(), n("rect", {
|
|
1050
1050
|
x: s.value.left + u * w.value,
|
|
1051
1051
|
y: s.value.top,
|
|
1052
1052
|
width: w.value,
|
|
1053
1053
|
height: s.value.height,
|
|
1054
|
-
fill: [b.value,
|
|
1055
|
-
class: I({ "donut-hover": l.subtotal && [b.value,
|
|
1054
|
+
fill: [b.value, Q.value].includes(l.index) ? `url(#hover_${z.value})` : "transparent",
|
|
1055
|
+
class: I({ "donut-hover": l.subtotal && [b.value, Q.value].includes(l.index) }),
|
|
1056
1056
|
style: {
|
|
1057
1057
|
pointerEvents: "none"
|
|
1058
1058
|
}
|
|
1059
1059
|
}, null, 10, Uo))), 256)),
|
|
1060
|
-
(r(!0), n(S, null,
|
|
1060
|
+
(r(!0), n(S, null, B(D.value, (l, u) => (r(), n("rect", {
|
|
1061
1061
|
"data-cy-trap": "",
|
|
1062
1062
|
x: s.value.left + u * w.value,
|
|
1063
1063
|
y: s.value.top,
|
|
@@ -1080,7 +1080,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1080
1080
|
style: te(`width:100%;background:${e.value.style.chart.backgroundColor}`),
|
|
1081
1081
|
"data-dom-to-png-ignore": ""
|
|
1082
1082
|
}, [
|
|
1083
|
-
|
|
1083
|
+
F.value > 1 && e.value.style.chart.zoom.show ? (r(), $(to, {
|
|
1084
1084
|
ref_key: "slicerComponent",
|
|
1085
1085
|
ref: je,
|
|
1086
1086
|
key: `slicer_${Ne.value}`,
|
|
@@ -1093,7 +1093,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1093
1093
|
textColor: e.value.style.chart.color,
|
|
1094
1094
|
inputColor: e.value.style.chart.zoom.color,
|
|
1095
1095
|
selectColor: e.value.style.chart.zoom.highlightColor,
|
|
1096
|
-
max:
|
|
1096
|
+
max: F.value,
|
|
1097
1097
|
min: 0,
|
|
1098
1098
|
valueStart: h.value.start,
|
|
1099
1099
|
valueEnd: h.value.end,
|
|
@@ -1102,7 +1102,7 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1102
1102
|
end: h.value.end,
|
|
1103
1103
|
"onUpdate:end": o[1] || (o[1] = (l) => h.value.end = l),
|
|
1104
1104
|
refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
|
|
1105
|
-
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 :
|
|
1105
|
+
refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : F.value,
|
|
1106
1106
|
enableRangeHandles: e.value.style.chart.zoom.enableRangeHandles,
|
|
1107
1107
|
enableSelectionDrag: e.value.style.chart.zoom.enableSelectionDrag,
|
|
1108
1108
|
focusOnDrag: e.value.style.chart.zoom.focusOnDrag,
|
|
@@ -1130,11 +1130,11 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1130
1130
|
key: `legend_${Me.value}`,
|
|
1131
1131
|
legendSet: De.value,
|
|
1132
1132
|
config: nl.value,
|
|
1133
|
-
onClickMarker: o[2] || (o[2] = ({ legend: l }) =>
|
|
1133
|
+
onClickMarker: o[2] || (o[2] = ({ legend: l }) => Z(l.uid))
|
|
1134
1134
|
}, {
|
|
1135
1135
|
item: y(({ legend: l, index: u }) => [
|
|
1136
1136
|
C("div", {
|
|
1137
|
-
onClick: (a) =>
|
|
1137
|
+
onClick: (a) => Z(l.uid),
|
|
1138
1138
|
style: te(`opacity:${k.value.includes(l.uid) ? 0.5 : 1}`)
|
|
1139
1139
|
}, x(l.display), 13, jo)
|
|
1140
1140
|
]),
|
|
@@ -1151,9 +1151,9 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1151
1151
|
}, [
|
|
1152
1152
|
m(t.$slots, "source", {}, void 0, !0)
|
|
1153
1153
|
], 512)) : d("", !0),
|
|
1154
|
-
|
|
1154
|
+
Je.value && e.value.userOptions.buttons.table ? (r(), $(Dl(ee.value.component), _l({ key: 7 }, ee.value.props, {
|
|
1155
1155
|
ref_key: "tableUnit",
|
|
1156
|
-
ref:
|
|
1156
|
+
ref: J,
|
|
1157
1157
|
onClose: Ct
|
|
1158
1158
|
}), kt({
|
|
1159
1159
|
content: y(() => [
|
|
@@ -1206,9 +1206,9 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1206
1206
|
e.value.style.chart.dialog.show ? (r(), $(c(Oe), {
|
|
1207
1207
|
key: 8,
|
|
1208
1208
|
ref_key: "dialog",
|
|
1209
|
-
ref:
|
|
1209
|
+
ref: Be,
|
|
1210
1210
|
onClose: o[4] || (o[4] = (l) => {
|
|
1211
|
-
M.value = null, he.value = !1, oe.value = null, b.value = null,
|
|
1211
|
+
M.value = null, he.value = !1, oe.value = null, b.value = null, Q.value = null;
|
|
1212
1212
|
}),
|
|
1213
1213
|
backgroundColor: e.value.style.chart.dialog.backgroundColor,
|
|
1214
1214
|
color: e.value.style.chart.dialog.color,
|
|
@@ -1229,15 +1229,15 @@ const Et = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", zoo
|
|
|
1229
1229
|
]),
|
|
1230
1230
|
_: 1
|
|
1231
1231
|
}, 8, ["backgroundColor", "color", "headerBg", "headerColor", "isFullscreen", "fullscreenParent"])) : d("", !0),
|
|
1232
|
-
c(
|
|
1232
|
+
c(Qe) ? (r(), $(Wl, { key: 9 })) : d("", !0)
|
|
1233
1233
|
], 46, oo));
|
|
1234
1234
|
}
|
|
1235
|
-
},
|
|
1235
|
+
}, Jo = /* @__PURE__ */ lo(qo, [["__scopeId", "data-v-ddadc763"]]), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1236
1236
|
__proto__: null,
|
|
1237
|
-
default:
|
|
1237
|
+
default: Jo
|
|
1238
1238
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1239
1239
|
export {
|
|
1240
1240
|
ga as a,
|
|
1241
1241
|
fa as b,
|
|
1242
|
-
|
|
1242
|
+
Jo as v
|
|
1243
1243
|
};
|