vue-data-ui 3.7.16 → 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 +49 -43
- package/dist/{Arrow-9T8aUCDR.js → Arrow-pvqmWZAQ.js} +1 -1
- package/dist/{BaseDraggableDialog-CtB38kJq.js → BaseDraggableDialog-BYwNgX3M.js} +2 -2
- package/dist/{BaseIcon--wNsuYtd.js → BaseIcon-CALhpING.js} +5 -3
- package/dist/{ColorPicker-CsQ_h1jK.js → ColorPicker-B_9b0REv.js} +2 -2
- package/dist/{DataTable-DRZJOlJB.js → DataTable-Ca1twcf7.js} +2 -2
- package/dist/{Legend-DSyOOSJ1.js → Legend-Djkw4FGq.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C_uUSM9z.js → NonSvgPenAndPaper-DCQPVA4M.js} +3 -3
- package/dist/{PackageVersion-BW9_gimf.js → PackageVersion-B9RA2_BM.js} +1 -1
- package/dist/{PenAndPaper-CMmG5Mka.js → PenAndPaper-DscVdZ1u.js} +3 -3
- package/dist/{Shape-rPzC8L-O.js → Shape-BEGGcaL8.js} +1 -1
- package/dist/{Slicer-BJ0Jqa6a.js → Slicer-DaUi0o8i.js} +2 -2
- package/dist/{SlicerPreview-BWl4UOqy.js → SlicerPreview-Bk-h_ANq.js} +2 -2
- package/dist/{SparkTooltip-reDvtQYF.js → SparkTooltip-BWdCP-h3.js} +1 -1
- package/dist/{Title-CM2dM0rQ.js → Title-CgkWUXeV.js} +1 -1
- package/dist/{Tooltip-De7i-i20.js → Tooltip-OHx7yHlS.js} +1 -1
- package/dist/{UserOptions-5GYBcJJU.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 +143 -5
- package/dist/types/vue-ui-dag.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBJqy2aF.js → useAutoSizeLabelsInsideViewbox-CY90KinM.js} +1 -1
- package/dist/{useNestedProp-CoXaJ2T6.js → useNestedProp-DOOBu_sL.js} +267 -184
- 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--XbxxtdU.js → vue-ui-3d-bar-BHcSmBFt.js} +6 -6
- package/dist/{vue-ui-accordion-WOXCCkiC.js → vue-ui-accordion-BWfQ8Imt.js} +3 -3
- package/dist/{vue-ui-age-pyramid-oJ-yVno1.js → vue-ui-age-pyramid-CKtsF5IW.js} +25 -25
- package/dist/{vue-ui-annotator-DmX0nJap.js → vue-ui-annotator-DQmmDTg7.js} +7 -7
- package/dist/{vue-ui-bullet-BSexyA7e.js → vue-ui-bullet-CZKHPSsG.js} +7 -7
- package/dist/{vue-ui-candlestick-Cn0FCDdN.js → vue-ui-candlestick-DW7yeLnE.js} +39 -39
- package/dist/{vue-ui-carousel-table-HJewuQDB.js → vue-ui-carousel-table-Bv0TZYW1.js} +4 -4
- package/dist/{vue-ui-chestnut-jpnadZPu.js → vue-ui-chestnut-BUqGBycr.js} +5 -5
- package/dist/{vue-ui-chord-DtAB5se2.js → vue-ui-chord-Awtzhq_0.js} +8 -8
- package/dist/{vue-ui-circle-pack-BTbgkyJ2.js → vue-ui-circle-pack-WTa2Mj2O.js} +37 -37
- package/dist/{vue-ui-cursor-DgWumfhl.js → vue-ui-cursor-D6_m463R.js} +3 -3
- package/dist/vue-ui-dag-tle30Ehr.js +2727 -0
- package/dist/{vue-ui-dashboard-BnAUQtnC.js → vue-ui-dashboard-BLgMwKmT.js} +68 -68
- package/dist/{vue-ui-digits-ByiQlK70.js → vue-ui-digits-DIZ8pi6C.js} +2 -2
- package/dist/{vue-ui-donut-CKSt_cq4.js → vue-ui-donut-DY8Q-PAg.js} +88 -88
- package/dist/{vue-ui-donut-evolution-DvdTGB7S.js → vue-ui-donut-evolution-DGnq03PX.js} +85 -85
- package/dist/{vue-ui-dumbbell-Injrp_b4.js → vue-ui-dumbbell-xRMH2Mlv.js} +33 -33
- package/dist/{vue-ui-flow-bbLDmA3Q.js → vue-ui-flow-C0a8rOyT.js} +42 -42
- package/dist/{vue-ui-funnel-B9iC-gYh.js → vue-ui-funnel-D6krkF1a.js} +19 -19
- package/dist/{vue-ui-galaxy-SMeufYzr.js → vue-ui-galaxy-BCkJt9OE.js} +59 -59
- package/dist/{vue-ui-gauge-FMuSlHqG.js → vue-ui-gauge-BaH-VYAi.js} +25 -25
- package/dist/{vue-ui-gizmo-0B3wKFgG.js → vue-ui-gizmo-BnCONs1t.js} +3 -3
- package/dist/{vue-ui-heatmap-BxztC6jw.js → vue-ui-heatmap-BYoD6XaS.js} +67 -67
- package/dist/{vue-ui-history-plot-D_qkv6IS.js → vue-ui-history-plot-BZBtIBsY.js} +43 -43
- package/dist/{vue-ui-horizontal-bar-BhTVXhQB.js → vue-ui-horizontal-bar-DsDDKUa6.js} +69 -69
- package/dist/{vue-ui-kpi-DvCTUXWh.js → vue-ui-kpi-Dn750UNZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-BjT-X5O8.js → vue-ui-mini-loader-44NP38K0.js} +2 -2
- package/dist/{vue-ui-molecule-CazE9-Nk.js → vue-ui-molecule-C994_mOK.js} +53 -53
- package/dist/{vue-ui-mood-radar-vrciNRi0.js → vue-ui-mood-radar-BI2SAtcM.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BAcHknTn.js → vue-ui-nested-donuts-CSF_bA-I.js} +38 -38
- package/dist/{vue-ui-onion-DgmiBf_W.js → vue-ui-onion-L5ULuI3B.js} +38 -38
- package/dist/{vue-ui-parallel-coordinate-plot-CdvrCiVK.js → vue-ui-parallel-coordinate-plot-CYetuoa5.js} +43 -43
- package/dist/{vue-ui-quadrant-C1GEbyIm.js → vue-ui-quadrant-Diwm1-e6.js} +8 -8
- package/dist/{vue-ui-quick-chart-DL9GV0J3.js → vue-ui-quick-chart-YBj4Iyk6.js} +51 -51
- package/dist/{vue-ui-radar-B4DfCpS5.js → vue-ui-radar-D76Mi-4u.js} +41 -41
- package/dist/{vue-ui-rating-CyJYLx9l.js → vue-ui-rating-CJjSt6-z.js} +2 -2
- package/dist/{vue-ui-relation-circle-Dm8wLlBa.js → vue-ui-relation-circle-BlYazckd.js} +19 -19
- package/dist/{vue-ui-ridgeline-E2EPeaJ7.js → vue-ui-ridgeline-DW8JqGxN.js} +8 -8
- package/dist/{vue-ui-rings-DnlHsA26.js → vue-ui-rings-De3shW_r.js} +37 -37
- package/dist/{vue-ui-scatter-DuKgh9Zo.js → vue-ui-scatter-oDhPqRJq.js} +8 -8
- package/dist/{vue-ui-skeleton-BhWvFc3O.js → vue-ui-skeleton-BUIXG_mY.js} +3 -3
- package/dist/{vue-ui-smiley-BkXC5UFE.js → vue-ui-smiley-Cni8Q56U.js} +2 -2
- package/dist/{vue-ui-spark-trend-DZWSf9JB.js → vue-ui-spark-trend-D1Zt5np6.js} +16 -16
- package/dist/{vue-ui-sparkbar-CqH28hXO.js → vue-ui-sparkbar-CdmXCSnj.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DT_yPxzw.js → vue-ui-sparkgauge-Dn2PQhZj.js} +17 -17
- package/dist/{vue-ui-sparkhistogram-Dv9UjLCt.js → vue-ui-sparkhistogram-nrkglHJk.js} +4 -4
- package/dist/{vue-ui-sparkline-AvAyn0Uv.js → vue-ui-sparkline-tz8fAf2C.js} +31 -31
- package/dist/{vue-ui-sparkstackbar-X_VGCj6T.js → vue-ui-sparkstackbar-BQPSsF5Q.js} +3 -3
- package/dist/{vue-ui-stackbar-DQP8yEJM.js → vue-ui-stackbar-DMO3YIQp.js} +9 -9
- package/dist/{vue-ui-stackline-VLPuuMyW.js → vue-ui-stackline-BQo4KoIK.js} +55 -55
- package/dist/{vue-ui-strip-plot-Tf-eojtF.js → vue-ui-strip-plot-CJpmLgCV.js} +28 -28
- package/dist/{vue-ui-table-Onk8Ep_o.js → vue-ui-table-Cp4ee_1a.js} +5 -5
- package/dist/{vue-ui-table-heatmap-DKJxeQIL.js → vue-ui-table-heatmap-1qpMxFyu.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DgISlLtt.js → vue-ui-table-sparkline-wSJjRJc4.js} +4 -4
- package/dist/{vue-ui-thermometer-BnYdXPWo.js → vue-ui-thermometer-DA8pG0Tr.js} +19 -19
- package/dist/{vue-ui-timer-BWNvvVI8.js → vue-ui-timer-Bc0J-YWP.js} +12 -12
- package/dist/{vue-ui-tiremarks-CW0yee-q.js → vue-ui-tiremarks-DqYsca6Q.js} +6 -6
- package/dist/{vue-ui-treemap-BfY0n0I2.js → vue-ui-treemap-BQsPzEFA.js} +51 -51
- package/dist/{vue-ui-waffle-D9lUh12t.js → vue-ui-waffle-5wkXlR4p.js} +69 -69
- package/dist/{vue-ui-wheel-C-oMzvbq.js → vue-ui-wheel-CkZko1RX.js} +6 -6
- package/dist/{vue-ui-word-cloud-DYrmMP9R.js → vue-ui-word-cloud-52bv_Ba-.js} +41 -41
- package/dist/{vue-ui-world-DAObATdc.js → vue-ui-world-oIyf91PY.js} +6 -6
- package/dist/{vue-ui-xy-D6gFGE5R.js → vue-ui-xy-DIEBv1b8.js} +75 -75
- package/dist/{vue-ui-xy-canvas-B_dtbPQy.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-DOR1SV2J.js +0 -337
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { useCssVars as Do, defineAsyncComponent as p, computed as
|
|
2
|
-
import { o as Lo, g as Zo, c as Pe, t as
|
|
3
|
-
import { u as Yo, a as oe } from "./useNestedProp-
|
|
1
|
+
import { useCssVars as Do, defineAsyncComponent as p, computed as g, onMounted as So, ref as c, toRefs as Eo, watch as z, nextTick as H, createElementBlock as A, openBlock as v, unref as a, normalizeStyle as R, normalizeClass as De, createBlock as T, createCommentVNode as y, createVNode as D, withCtx as r, renderSlot as i, normalizeProps as f, guardReactiveProps as h, createSlots as Se, createElementVNode as S, Fragment as Bo, renderList as Po, resolveDynamicComponent as Io, mergeProps as No, createTextVNode as Ee, toDisplayString as Be } from "vue";
|
|
2
|
+
import { o as Lo, g as Zo, c as Pe, t as Uo, i as zo, p as Ie, j as Ho, ag as Ro, X as Mo, n as xo, e as Vo, l as Ne, u as Go, q as jo, x as Wo, Z as Xo } from "./lib-qMPkcvmh.js";
|
|
3
|
+
import { u as Yo, a as oe } from "./useNestedProp-DOOBu_sL.js";
|
|
4
4
|
import { u as qo, B as Jo } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as Ko } from "./usePrinter-
|
|
5
|
+
import { u as Ko } from "./usePrinter-CjGh4mFJ.js";
|
|
6
6
|
import { u as Qo } from "./useSvgExport-DrjCWun4.js";
|
|
7
7
|
import { u as et } from "./useThemeCheck-DGJ31Vi5.js";
|
|
8
8
|
import { u as ot } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as tt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import lt from "./img-
|
|
11
|
-
import { u as at } from "./usePanZoom-
|
|
10
|
+
import lt from "./img-CwrkWkkl.js";
|
|
11
|
+
import { u as at } from "./usePanZoom-DMfuOfaC.js";
|
|
12
12
|
import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
-
const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nodes: { stroke: "#4A4A4A", strokeHovered: "#CCCCCC" }, links: { stroke: "#4A4A4A" }, 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" } } }, Ze = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", nodes: { stroke: "#333333", strokeHovered: "#FFFFFF" }, links: { stroke: "#333333" }, 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" } } },
|
|
13
|
+
const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nodes: { stroke: "#4A4A4A", strokeHovered: "#CCCCCC" }, links: { stroke: "#4A4A4A" }, 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" } } }, Ze = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", nodes: { stroke: "#333333", strokeHovered: "#FFFFFF" }, links: { stroke: "#333333" }, 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" } } }, Ue = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", nodes: { stroke: "#333333", strokeHovered: "#FFF8E1" }, links: { stroke: "#333333" }, 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" } } }, ze = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", nodes: { stroke: "#1A1A1A", strokeHovered: "#00FF00" }, links: { stroke: "#333333" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, He = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", nodes: { stroke: "#fbfafa", strokeHovered: "#5E5E5E" }, links: { stroke: "#e8ede1" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Re = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", nodes: { stroke: "#61747E", strokeHovered: "#404C4D" }, links: { stroke: "#BBCBC7" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Me = {
|
|
14
14
|
default: {},
|
|
15
15
|
dark: Le,
|
|
16
16
|
celebration: Ze,
|
|
17
|
-
celebrationNight:
|
|
18
|
-
hack:
|
|
19
|
-
zen:
|
|
20
|
-
concrete:
|
|
17
|
+
celebrationNight: Ue,
|
|
18
|
+
hack: ze,
|
|
19
|
+
zen: He,
|
|
20
|
+
concrete: Re
|
|
21
21
|
}, Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22
22
|
__proto__: null,
|
|
23
23
|
celebration: Ze,
|
|
24
|
-
celebrationNight:
|
|
25
|
-
concrete:
|
|
24
|
+
celebrationNight: Ue,
|
|
25
|
+
concrete: Re,
|
|
26
26
|
dark: Le,
|
|
27
27
|
default: Me,
|
|
28
|
-
hack:
|
|
29
|
-
zen:
|
|
28
|
+
hack: ze,
|
|
29
|
+
zen: He
|
|
30
30
|
}, Symbol.toStringTag, { value: "Module" })), nt = ["id"], rt = {
|
|
31
31
|
key: 1,
|
|
32
32
|
ref: "noTitle",
|
|
@@ -42,11 +42,11 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
42
42
|
key: 5,
|
|
43
43
|
"data-dom-to-png-ignore": "",
|
|
44
44
|
class: "reset-wrapper"
|
|
45
|
-
},
|
|
45
|
+
}, gt = {
|
|
46
46
|
key: 6,
|
|
47
47
|
ref: "source",
|
|
48
48
|
dir: "auto"
|
|
49
|
-
},
|
|
49
|
+
}, Ct = ["innerHTML"], bt = {
|
|
50
50
|
__name: "vue-ui-molecule",
|
|
51
51
|
props: {
|
|
52
52
|
config: {
|
|
@@ -67,11 +67,11 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
67
67
|
Do((o) => ({
|
|
68
68
|
v4cb447ec: o.slicerColor
|
|
69
69
|
}));
|
|
70
|
-
const je = p(() => import("./Title-
|
|
70
|
+
const je = p(() => import("./Title-CgkWUXeV.js")), We = p(() => import("./Tooltip-OHx7yHlS.js")), te = p(() => import("./BaseIcon-CALhpING.js")), Xe = p(() => import("./vue-ui-accordion-BWfQ8Imt.js")), Ye = p(() => import("./DataTable-Ca1twcf7.js")), qe = p(() => import("./PenAndPaper-DscVdZ1u.js")), Je = p(() => import("./UserOptions-ChRXLqps.js")), Ke = p(() => import("./PackageVersion-B9RA2_BM.js")), Qe = p(() => import("./RecursiveLinks-Da489v6n.js")), eo = p(() => import("./RecursiveLabels-DxmctYbA.js")), oo = p(() => import("./RecursiveCircles-CM4bn2Vg.js")), to = p(() => import("./BaseDraggableDialog-BYwNgX3M.js")), { vue_ui_molecule: lo } = Yo(), { isThemeValid: ao, warnInvalidTheme: so } = et(), w = xe, no = Ge, le = g(() => !!w.dataset && w.dataset.length);
|
|
71
71
|
So(() => {
|
|
72
72
|
ae();
|
|
73
73
|
});
|
|
74
|
-
const ro =
|
|
74
|
+
const ro = g(() => e.value.debug);
|
|
75
75
|
function ae() {
|
|
76
76
|
Lo(w.dataset) && Zo({
|
|
77
77
|
componentName: "VueUiMolecule",
|
|
@@ -121,7 +121,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
121
121
|
]
|
|
122
122
|
}
|
|
123
123
|
],
|
|
124
|
-
skeletonConfig:
|
|
124
|
+
skeletonConfig: Uo({
|
|
125
125
|
defaultConfig: e.value,
|
|
126
126
|
userConfig: {
|
|
127
127
|
userOptions: { show: !1 },
|
|
@@ -153,29 +153,29 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
153
153
|
});
|
|
154
154
|
return {
|
|
155
155
|
...s,
|
|
156
|
-
customPalette: s.customPalette.length ? s.customPalette :
|
|
156
|
+
customPalette: s.customPalette.length ? s.customPalette : zo[l] || Ie
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
z(() => w.config, (o) => {
|
|
160
160
|
e.value = X(), W.value = !e.value.userOptions.showOnChartHover, ae(), ne.value += 1, re.value += 1, u.value.showTable = e.value.table.show, u.value.showTooltip = e.value.style.chart.tooltip.show, u.value.showZoom = e.value.style.chart.zoom.show;
|
|
161
161
|
}, { deep: !0 });
|
|
162
162
|
const ce = c(0), io = () => {
|
|
163
163
|
ce.value += 1;
|
|
164
164
|
};
|
|
165
|
-
|
|
166
|
-
o || (await
|
|
165
|
+
z([() => G.value, () => j.value], async ([o]) => {
|
|
166
|
+
o || (await H(), C.value = ge(), await H(), io(), await H(), Ao({ x: 0, y: 0, width: 400, height: 400 }), K(!1));
|
|
167
167
|
}, { flush: "post", deep: !1 });
|
|
168
168
|
const { isPrinting: de, isImaging: ve, generatePdf: fe, generateImage: he } = Ko({
|
|
169
169
|
elementId: `cluster_${M.value}`,
|
|
170
170
|
fileName: e.value.style.chart.title.text || "vue-ui-molecule",
|
|
171
171
|
options: e.value.userOptions.print
|
|
172
|
-
}), uo =
|
|
172
|
+
}), uo = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), co = g(() => Ho(e.value.customPalette)), u = c({
|
|
173
173
|
showTable: e.value.table.show,
|
|
174
174
|
showDataLabels: !0,
|
|
175
175
|
showTooltip: e.value.style.chart.tooltip.show,
|
|
176
176
|
showZoom: e.value.style.chart.zoom.show
|
|
177
177
|
});
|
|
178
|
-
|
|
178
|
+
z(e, () => {
|
|
179
179
|
u.value = {
|
|
180
180
|
showTable: e.value.table.show,
|
|
181
181
|
showDataLabels: !0,
|
|
@@ -186,7 +186,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
186
186
|
function pe(o, l = 0) {
|
|
187
187
|
return Array.isArray(o) && o.length > 0 && o[0].nodes ? pe(o[0].nodes, l + 1) : l;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function ge() {
|
|
190
190
|
const o = pe(j.value);
|
|
191
191
|
let l = 100, t = l;
|
|
192
192
|
for (let s = 0; s < o; s += 1)
|
|
@@ -196,8 +196,8 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
196
196
|
width: t
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
function
|
|
199
|
+
const C = c(ge());
|
|
200
|
+
function Ce(o, l = { x: -C.value.width / 2.43, y: C.value.height / 2 }, t = C.value.width / 1.1, s = 24, n = 0, d = 0, b = "#BBBBBB", Q = 0) {
|
|
201
201
|
if (!Array.isArray(o) || o.length === 0) return o;
|
|
202
202
|
const Oo = Vo({
|
|
203
203
|
plot: l,
|
|
@@ -211,7 +211,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
211
211
|
return ee.startsWith("#") ? ee : `#${ee}`;
|
|
212
212
|
})() : null;
|
|
213
213
|
let O;
|
|
214
|
-
Oe ? O = Oe : Q === 0 ? O = b : Q === 1 ? (O = co.value[d] || Ie[d] || b, d += 1) : O = b, m.polygonPath = { coordinates: [_e] }, m.circleRadius = s, m.color = O, m.uid = Pe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes =
|
|
214
|
+
Oe ? O = Oe : Q === 0 ? O = b : Q === 1 ? (O = co.value[d] || Ie[d] || b, d += 1) : O = b, m.polygonPath = { coordinates: [_e] }, m.circleRadius = s, m.color = O, m.uid = Pe(), Array.isArray(m.nodes) && m.nodes.length && (m.nodes = Ce(
|
|
215
215
|
m.nodes,
|
|
216
216
|
_e,
|
|
217
217
|
t / 2.9,
|
|
@@ -239,9 +239,9 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
239
239
|
s[n] = `gradient_${d}`;
|
|
240
240
|
}), s;
|
|
241
241
|
}
|
|
242
|
-
const fo =
|
|
243
|
-
const o =
|
|
244
|
-
return
|
|
242
|
+
const fo = g(() => vo(k.value)), k = g(() => {
|
|
243
|
+
const o = Ro(j.value);
|
|
244
|
+
return Ce(o);
|
|
245
245
|
}), Y = c(null);
|
|
246
246
|
function ho(o) {
|
|
247
247
|
Y.value = {
|
|
@@ -273,7 +273,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
273
273
|
function po(o) {
|
|
274
274
|
be.value = Z.value, Z.value = o, o ? e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: o, seriesIndex: -1 }) : e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: be.value || Z.value, seriesIndex: -1 }), o ? (x.value = !0, ho(o), P.value = o.uid) : (x.value = !1, L.value = "", P.value = null);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function go(o) {
|
|
277
277
|
const l = [];
|
|
278
278
|
function t(s) {
|
|
279
279
|
s.forEach((n) => {
|
|
@@ -288,12 +288,12 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
288
288
|
}
|
|
289
289
|
return t(o), l;
|
|
290
290
|
}
|
|
291
|
-
const
|
|
291
|
+
const Co = g(() => go(k.value)), F = g(() => {
|
|
292
292
|
const o = [
|
|
293
293
|
e.value.table.translations.nodeName,
|
|
294
294
|
e.value.table.translations.details,
|
|
295
295
|
e.value.table.translations.ancestor
|
|
296
|
-
], l =
|
|
296
|
+
], l = Co.value.map((n, d) => [
|
|
297
297
|
{
|
|
298
298
|
color: n.color,
|
|
299
299
|
name: n.name
|
|
@@ -325,7 +325,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
325
325
|
};
|
|
326
326
|
});
|
|
327
327
|
function q(o = null) {
|
|
328
|
-
|
|
328
|
+
H(() => {
|
|
329
329
|
const l = F.value.body.map((n, d) => [[n[0].name], [n[1]], [n[2]]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[...F.value.head]]].concat(l), s = Go(t);
|
|
330
330
|
o ? o(s) : jo({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-molecule" });
|
|
331
331
|
});
|
|
@@ -353,11 +353,11 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
353
353
|
function J() {
|
|
354
354
|
I.value = !I.value;
|
|
355
355
|
}
|
|
356
|
-
const mo =
|
|
356
|
+
const mo = g(() => !I.value && u.value.showZoom), { viewBox: U, resetZoom: K, isZoom: yo, setInitialViewBox: Ao } = at(B, {
|
|
357
357
|
x: 0,
|
|
358
358
|
y: 0,
|
|
359
|
-
width: Math.max(10,
|
|
360
|
-
height: Math.max(10,
|
|
359
|
+
width: Math.max(10, C.value.width),
|
|
360
|
+
height: Math.max(10, C.value.height)
|
|
361
361
|
}, e.value.style.chart.zoom.speed, mo);
|
|
362
362
|
function ko(o) {
|
|
363
363
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: o, seriesIndex: -1 }), no("selectNode", o);
|
|
@@ -374,7 +374,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
374
374
|
aspectRatio: s
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
|
-
const N =
|
|
377
|
+
const N = g(() => {
|
|
378
378
|
const o = e.value.table.useDialog && !e.value.table.show, l = u.value.showTable;
|
|
379
379
|
return {
|
|
380
380
|
component: o ? to : Xe,
|
|
@@ -404,13 +404,13 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
});
|
|
407
|
-
|
|
407
|
+
z(() => u.value.showTable, (o) => {
|
|
408
408
|
e.value.table.show || (o && e.value.table.useDialog && E.value ? E.value.open() : "close" in E.value && E.value.close());
|
|
409
409
|
});
|
|
410
410
|
function $e() {
|
|
411
411
|
u.value.showTable = !1, V.value && V.value.setTableIconState(!1);
|
|
412
412
|
}
|
|
413
|
-
const $o =
|
|
413
|
+
const $o = g(() => e.value.style.chart.backgroundColor), To = g(() => e.value.style.chart.title), { exportSvg: Fo, getSvg: _o } = Qo({
|
|
414
414
|
svg: B,
|
|
415
415
|
title: To,
|
|
416
416
|
backgroundColor: $o
|
|
@@ -439,7 +439,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
439
439
|
ref_key: "moleculeChart",
|
|
440
440
|
ref: $,
|
|
441
441
|
class: De(`vue-data-ui-component vue-ui-molecule ${_.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
442
|
-
style:
|
|
442
|
+
style: R(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
443
443
|
id: `cluster_${M.value}`,
|
|
444
444
|
onMouseleave: l[2] || (l[2] = (t) => {
|
|
445
445
|
Z.value = null, P.value = null, a(ie)(!1);
|
|
@@ -528,7 +528,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
528
528
|
onToggleTooltip: ke,
|
|
529
529
|
onToggleAnnotator: J,
|
|
530
530
|
onToggleZoom: we,
|
|
531
|
-
style:
|
|
531
|
+
style: R({
|
|
532
532
|
visibility: a(ue) ? a(W) ? "visible" : "hidden" : "visible"
|
|
533
533
|
})
|
|
534
534
|
}, Se({ _: 2 }, [
|
|
@@ -615,17 +615,17 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
615
615
|
ref: B,
|
|
616
616
|
key: `svg_${ce.value}`,
|
|
617
617
|
xmlns: a(Mo),
|
|
618
|
-
viewBox: `${a(
|
|
618
|
+
viewBox: `${a(U).x} ${a(U).y} ${a(U).width} ${a(U).height}`,
|
|
619
619
|
class: De({ "vue-data-ui-fullscreen--on": _.value, "vue-data-ui-fulscreen--off": !_.value }),
|
|
620
|
-
style:
|
|
620
|
+
style: R(`overflow: hidden; background:transparent;color:${e.value.style.chart.color}`)
|
|
621
621
|
}, [
|
|
622
622
|
D(a(Ke)),
|
|
623
623
|
o.$slots["chart-background"] ? (v(), A("foreignObject", {
|
|
624
624
|
key: 0,
|
|
625
625
|
x: 0,
|
|
626
626
|
y: 0,
|
|
627
|
-
width:
|
|
628
|
-
height:
|
|
627
|
+
width: C.value.width <= 0 ? 10 : C.value.width,
|
|
628
|
+
height: C.value.height <= 0 ? 10 : C.value.height,
|
|
629
629
|
style: {
|
|
630
630
|
pointerEvents: "none"
|
|
631
631
|
}
|
|
@@ -675,7 +675,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
675
675
|
color: e.value.style.chart.color,
|
|
676
676
|
hoveredUid: P.value
|
|
677
677
|
}, null, 8, ["dataset", "color", "hoveredUid"])) : y("", !0),
|
|
678
|
-
i(o.$slots, "svg", { svg:
|
|
678
|
+
i(o.$slots, "svg", { svg: C.value }, void 0, !0)
|
|
679
679
|
], 14, ut)),
|
|
680
680
|
o.$slots.watermark ? (v(), A("div", ht, [
|
|
681
681
|
i(o.$slots, "watermark", f(h({ isPrinting: a(de) || a(ve) })), void 0, !0)
|
|
@@ -687,7 +687,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
687
687
|
tabindex: "0",
|
|
688
688
|
role: "button",
|
|
689
689
|
class: "vue-data-ui-refresh-button",
|
|
690
|
-
style:
|
|
690
|
+
style: R({
|
|
691
691
|
background: e.value.style.chart.backgroundColor
|
|
692
692
|
}),
|
|
693
693
|
onClick: l[0] || (l[0] = (t) => a(K)(!0))
|
|
@@ -699,7 +699,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
699
699
|
], 4)
|
|
700
700
|
], !0)
|
|
701
701
|
])) : y("", !0),
|
|
702
|
-
o.$slots.source ? (v(), A("div",
|
|
702
|
+
o.$slots.source ? (v(), A("div", gt, [
|
|
703
703
|
i(o.$slots, "source", {}, void 0, !0)
|
|
704
704
|
], 512)) : y("", !0),
|
|
705
705
|
D(a(We), {
|
|
@@ -750,7 +750,7 @@ const Le = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", nod
|
|
|
750
750
|
S("div", {
|
|
751
751
|
innerHTML: t,
|
|
752
752
|
style: { display: "flex", "align-items": "center" }
|
|
753
|
-
}, null, 8,
|
|
753
|
+
}, null, 8, Ct)
|
|
754
754
|
]),
|
|
755
755
|
td: r(({ td: t }) => [
|
|
756
756
|
Ee(Be(t.name || t), 1)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineAsyncComponent as T, ref as i, computed as v, toRefs as gt, onMounted as ht, watch as Ae, createElementBlock as h, openBlock as s, unref as a, normalizeStyle as j, normalizeClass as we, createBlock as k, createCommentVNode as y, createElementVNode as n, withCtx as c, renderSlot as d, normalizeProps as C, guardReactiveProps as A, createVNode as G, createSlots as Fe, Fragment as xe, renderList as $e, toDisplayString as V, Teleport as ft, resolveDynamicComponent as pt, mergeProps as bt, createTextVNode as Pe, nextTick as De } from "vue";
|
|
2
|
-
import { c as kt, t as mt, o as Ct, g as _e, e as At, a as Te, d as H, X as wt, s as $, h as Ft,
|
|
2
|
+
import { c as kt, t as mt, o as Ct, g as _e, e as At, a as Te, d as H, X as wt, s as $, h as Ft, ah as xt, u as $t, q as Pt } from "./lib-qMPkcvmh.js";
|
|
3
3
|
import { t as Dt, u as _t } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Tt, a as oe } from "./useNestedProp-
|
|
4
|
+
import { u as Tt, a as oe } from "./useNestedProp-DOOBu_sL.js";
|
|
5
5
|
import { u as Mt, B as Bt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Ot } from "./usePrinter-
|
|
6
|
+
import { u as Ot } from "./usePrinter-CjGh4mFJ.js";
|
|
7
7
|
import { u as Et } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as Nt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
9
|
import { u as Lt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as St } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
-
import It from "./img-
|
|
12
|
-
import Rt from "./Title-
|
|
13
|
-
import jt from "./Legend-
|
|
11
|
+
import It from "./img-CwrkWkkl.js";
|
|
12
|
+
import Rt from "./Title-CgkWUXeV.js";
|
|
13
|
+
import jt from "./Legend-Djkw4FGq.js";
|
|
14
14
|
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const Me = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { grid: { stroke: "#4A4A4A" }, outerPolygon: { stroke: "#5A5A5A" }, dataLabel: { color: "#CCCCCC" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Be = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { grid: { stroke: "#5D403780" }, outerPolygon: { stroke: "#5D4037" }, dataPolygon: { color: "#D32F2F", stroke: "#D32F2F" }, smileys: { colors: { 1: "#FFC107", 2: "#FF9800", 3: "#F57C00", 4: "#E64A19", 5: "#D32F2F" } }, dataLabel: { color: "#424242" } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Oe = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { grid: { stroke: "#5D403780" }, outerPolygon: { stroke: "#5D4037" }, dataPolygon: { color: "#D32F2F", stroke: "#D32F2F" }, smileys: { colors: { 1: "#FFC107", 2: "#FF9800", 3: "#F57C00", 4: "#E64A19", 5: "#D32F2F" } }, dataLabel: { color: "#BDBDBD" } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ee = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { grid: { stroke: "#333333" }, outerPolygon: { stroke: "#334C33" }, dataPolygon: { color: "#33B333", stroke: "#00FF00" }, smileys: { colors: { 1: "#336633", 2: "#338033", 3: "#339933", 4: "#33E633", 5: "#00FF00" } }, dataLabel: { color: "#00FF00" } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Ne = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { grid: { stroke: "#C5B8A7" }, outerPolygon: { strokeWidth: 0 }, dataPolygon: { color: "#858480", stroke: "#C09E85" }, smileys: { colors: { 1: "#C09E85", 2: "#DCB482", 3: "#DFCA99", 4: "#E0CFC3", 5: "#B9B99D" } }, dataLabel: { color: "#606C5A" } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Le = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { grid: { stroke: "#61747E" }, outerPolygon: { stroke: "#50606C" }, dataPolygon: { color: "#A3C4BE", stroke: "#92B0B5" }, smileys: { colors: { 1: "#5C6B5B", 2: "#4A6A75", 3: "#6C94A0", 4: "#7DA9B5", 5: "#8EBFCA" } }, dataLabel: { color: "#50606C" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, Se = {
|
|
16
16
|
default: {},
|
|
@@ -49,7 +49,7 @@ const Me = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
setup(Ie, { expose: Re }) {
|
|
52
|
-
const M = T(() => import("./BaseIcon
|
|
52
|
+
const M = T(() => import("./BaseIcon-CALhpING.js")), je = T(() => import("./vue-ui-accordion-BWfQ8Imt.js")), Ve = T(() => import("./DataTable-Ca1twcf7.js")), ze = T(() => import("./PenAndPaper-DscVdZ1u.js")), Ue = T(() => import("./UserOptions-ChRXLqps.js")), We = T(() => import("./PackageVersion-B9RA2_BM.js")), Ge = T(() => import("./BaseDraggableDialog-BYwNgX3M.js")), { vue_ui_mood_radar: He } = Tt(), { isThemeValid: Xe, warnInvalidTheme: Ke } = Nt(), w = Ie, m = i(kt()), F = i(null), f = i(null), le = i(null), qe = i(0), Ye = i(0), ae = i(0), ne = i(null), re = i(null), E = i(null), z = i(null), se = i(null), ue = i(!1), N = i(null), X = i(null), ie = v(() => !!w.dataset && Object.keys(w.dataset).length), e = i(J()), { loading: K, FINAL_DATASET: P } = Mt({
|
|
53
53
|
...gt(w),
|
|
54
54
|
FINAL_CONFIG: e,
|
|
55
55
|
prepareConfig: J,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { defineAsyncComponent as z, computed as k, ref as v, toRefs as Cl, watch as ae, onMounted as kl, shallowRef as kt, onBeforeUnmount as wl, createElementBlock as r, openBlock as n, unref as i, normalizeStyle as he, normalizeClass as M, createBlock as U, createCommentVNode as L, createElementVNode as g, createVNode as Pe, withCtx as p, renderSlot as y, normalizeProps as O, guardReactiveProps as N, createSlots as wt, Fragment as x, renderList as F, toDisplayString as P, withDirectives as At, vShow as $t, Teleport as Al, resolveDynamicComponent as $l, mergeProps as Ll, createTextVNode as Lt, nextTick as _t } from "vue";
|
|
2
|
-
import { c as _l, t as xl, i as Fl, p as Ve,
|
|
2
|
+
import { c as _l, t as xl, i as Fl, p as Ve, a0 as Be, o as Tl, g as J, j as Sl, aa as R, l as Dl, a2 as ze, a as oe, d as D, X as Ol, s as Nl, F as xt, a4 as Me, a5 as K, x as Ft, u as Il, q as El, Z as Pl, a9 as Tt, T as Ue } from "./lib-qMPkcvmh.js";
|
|
3
3
|
import { t as Vl, u as Bl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as zl, a as Re } from "./useNestedProp-
|
|
4
|
+
import { u as zl, a as Re } from "./useNestedProp-DOOBu_sL.js";
|
|
5
5
|
import { u as Ml, B as Ul } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Rl } from "./usePrinter-
|
|
6
|
+
import { u as Rl } from "./usePrinter-CjGh4mFJ.js";
|
|
7
7
|
import { u as Gl } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as Yl } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
9
|
import { u as Wl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
10
|
import { u as Xl } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
-
import ql from "./img-
|
|
12
|
-
import Hl from "./Title-
|
|
13
|
-
import jl from "./Legend-
|
|
11
|
+
import ql from "./img-CwrkWkkl.js";
|
|
12
|
+
import Hl from "./Title-CgkWUXeV.js";
|
|
13
|
+
import jl from "./Legend-Djkw4FGq.js";
|
|
14
14
|
import { _ as Zl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
const
|
|
15
|
+
const St = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { donut: { emptyFill: "#3A3A3A" }, labels: { dataLabels: { 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" } } }, Dt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { dataLabels: { 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: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ot = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { dataLabels: { 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: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Nt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { dataLabels: { color: "#AACCAA" } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, 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: { labels: { dataLabels: { color: "#A0AC94" } } }, 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" } } }, Et = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { dataLabels: { color: "#61747E" } } }, 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" } } }, Pt = {
|
|
16
16
|
default: {},
|
|
17
|
-
dark:
|
|
17
|
+
dark: St,
|
|
18
18
|
celebration: Dt,
|
|
19
19
|
celebrationNight: Ot,
|
|
20
20
|
hack: Nt,
|
|
@@ -25,7 +25,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
25
25
|
celebration: Dt,
|
|
26
26
|
celebrationNight: Ot,
|
|
27
27
|
concrete: Et,
|
|
28
|
-
dark:
|
|
28
|
+
dark: St,
|
|
29
29
|
default: Pt,
|
|
30
30
|
hack: Nt,
|
|
31
31
|
zen: It
|
|
@@ -53,7 +53,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
53
53
|
},
|
|
54
54
|
emits: ["selectLegend", "selectDatapoint"],
|
|
55
55
|
setup(Vt, { expose: Bt, emit: zt }) {
|
|
56
|
-
const Mt = z(() => import("./Tooltip-
|
|
56
|
+
const Mt = z(() => import("./Tooltip-OHx7yHlS.js")), Ut = z(() => import("./BaseIcon-CALhpING.js")), Rt = z(() => import("./vue-ui-accordion-BWfQ8Imt.js")), Gt = z(() => import("./DataTable-Ca1twcf7.js")), Yt = z(() => import("./UserOptions-ChRXLqps.js")), Wt = z(() => import("./PenAndPaper-DscVdZ1u.js")), Xt = z(() => import("./PackageVersion-B9RA2_BM.js")), qt = z(() => import("./BaseDraggableDialog-BYwNgX3M.js")), { vue_ui_nested_donuts: Ht } = zl(), { isThemeValid: jt, warnInvalidTheme: Zt } = Yl(), w = Vt, fe = k({
|
|
57
57
|
get() {
|
|
58
58
|
return !!w.dataset && w.dataset.length;
|
|
59
59
|
},
|
|
@@ -175,8 +175,8 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
175
175
|
setTimeout(() => {
|
|
176
176
|
const A = performance.now();
|
|
177
177
|
function d(m) {
|
|
178
|
-
const
|
|
179
|
-
Y.value[f] =
|
|
178
|
+
const T = Math.min((m - A) / s, 1), Te = Tt(T), Se = c * Te;
|
|
179
|
+
Y.value[f] = Se, Y.value = [...Y.value];
|
|
180
180
|
const ce = [];
|
|
181
181
|
let De = 0;
|
|
182
182
|
w.dataset.forEach((ve, Oe) => {
|
|
@@ -197,7 +197,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
197
197
|
absoluteValues: [],
|
|
198
198
|
ghost: !0
|
|
199
199
|
}), De += ve.series.length;
|
|
200
|
-
}), Q.value = ce,
|
|
200
|
+
}), Q.value = ce, T < 1 ? requestAnimationFrame(d) : (u += 1, u === l && o());
|
|
201
201
|
}
|
|
202
202
|
requestAnimationFrame(d);
|
|
203
203
|
}, f * a);
|
|
@@ -242,7 +242,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
242
242
|
});
|
|
243
243
|
const V = kt(null), H = kt(null), j = k(() => !!e.value.debug);
|
|
244
244
|
function at() {
|
|
245
|
-
if (
|
|
245
|
+
if (Tl(w.dataset) ? (J({
|
|
246
246
|
componentName: "VueUiNestedDonuts",
|
|
247
247
|
type: "dataset",
|
|
248
248
|
debug: j.value
|
|
@@ -270,7 +270,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
270
270
|
elementId: `nested_donuts_${b.value}`,
|
|
271
271
|
fileName: e.value.style.chart.title.text || "vue-ui-nested-donuts",
|
|
272
272
|
options: e.value.userOptions.print
|
|
273
|
-
}), Kt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qt = k(() =>
|
|
273
|
+
}), Kt = k(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qt = k(() => Sl(e.value.customPalette)), _ = v({
|
|
274
274
|
dataLabels: {
|
|
275
275
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
276
276
|
},
|
|
@@ -299,16 +299,16 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
299
299
|
duration: a,
|
|
300
300
|
onUpdate: o,
|
|
301
301
|
onDone: l,
|
|
302
|
-
easing: u =
|
|
302
|
+
easing: u = Tt
|
|
303
303
|
}) {
|
|
304
304
|
const c = performance.now();
|
|
305
305
|
function f(A) {
|
|
306
|
-
const d = Math.min((A - c) / a, 1), m = u(d),
|
|
307
|
-
o(
|
|
306
|
+
const d = Math.min((A - c) / a, 1), m = u(d), T = t + (s - t) * m;
|
|
307
|
+
o(T, d), d < 1 ? requestAnimationFrame(f) : (o(s, 1), l && l());
|
|
308
308
|
}
|
|
309
309
|
requestAnimationFrame(f);
|
|
310
310
|
}
|
|
311
|
-
const C = v([]),
|
|
311
|
+
const C = v([]), S = k(() => {
|
|
312
312
|
Ce.value, X.value.forEach((s, a) => {
|
|
313
313
|
[null, void 0].includes(s.name) && J({
|
|
314
314
|
componentName: "VueUiNestedDonuts",
|
|
@@ -370,7 +370,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
370
370
|
ae(() => w.dataset, (t) => {
|
|
371
371
|
Array.isArray(t) && t.length > 0 && (ke.value = !1);
|
|
372
372
|
}, { immediate: !0 });
|
|
373
|
-
const E = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), dt = k(() => [...
|
|
373
|
+
const E = k(() => Math.min(h.value.height, h.value.width) * (e.value.style.chart.layout.donut.strokeWidth / 512)), dt = k(() => [...S.value].map((t, s) => {
|
|
374
374
|
const a = t.series.filter((o) => !C.value.includes(o.id)).map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
375
375
|
return {
|
|
376
376
|
...t,
|
|
@@ -395,16 +395,16 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
395
395
|
function q(t) {
|
|
396
396
|
rt("selectLegend", t);
|
|
397
397
|
const s = w.dataset.flatMap(
|
|
398
|
-
(d, m) => d.series.map((
|
|
399
|
-
value: R(
|
|
400
|
-
id: `${b.value}_${m}_${
|
|
398
|
+
(d, m) => d.series.map((T, Te) => ({
|
|
399
|
+
value: R(T.values).reduce((Se, ce) => Se + ce, 0),
|
|
400
|
+
id: `${b.value}_${m}_${Te}`,
|
|
401
401
|
arcOfId: `${b.value}_${m}`
|
|
402
402
|
}))
|
|
403
403
|
).find((d) => d.id === t.id);
|
|
404
404
|
if (!s) return;
|
|
405
|
-
const a =
|
|
405
|
+
const a = S.value.flatMap((d) => d.series).find((d) => d.id === t.id)?.value ?? 0, o = $.value.flatMap((d) => d.series).find((d) => d.id === t.id);
|
|
406
406
|
let u = o ? o.value : 0;
|
|
407
|
-
const c =
|
|
407
|
+
const c = S.value.find(
|
|
408
408
|
(d) => d.id === s.arcOfId
|
|
409
409
|
);
|
|
410
410
|
if (!c) return;
|
|
@@ -420,7 +420,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
420
420
|
onUpdate: (d) => {
|
|
421
421
|
$.value = $.value.map((m) => ({
|
|
422
422
|
...m,
|
|
423
|
-
series: m.series.map((
|
|
423
|
+
series: m.series.map((T) => T.id === t.id ? { ...T, value: d } : T)
|
|
424
424
|
}));
|
|
425
425
|
}
|
|
426
426
|
}) : $.value = $.value.map((d) => ({
|
|
@@ -433,7 +433,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
433
433
|
onUpdate: (d) => {
|
|
434
434
|
$.value = $.value.map((m) => ({
|
|
435
435
|
...m,
|
|
436
|
-
series: m.series.map((
|
|
436
|
+
series: m.series.map((T) => T.id === t.id ? { ...T, value: d } : T)
|
|
437
437
|
}));
|
|
438
438
|
},
|
|
439
439
|
onDone: () => {
|
|
@@ -445,9 +445,9 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
445
445
|
})), C.value.push(t.id)));
|
|
446
446
|
}
|
|
447
447
|
function ct(t) {
|
|
448
|
-
if (!
|
|
448
|
+
if (!S.value.length)
|
|
449
449
|
return e.value.debug && console.warn("VueUiNestedDonuts - There are no series to show."), null;
|
|
450
|
-
const s =
|
|
450
|
+
const s = S.value.flatMap((a) => a.series).filter((a) => a.name === t);
|
|
451
451
|
return s || (e.value.debug && console.warn(`VueUiNestedDonuts - Series name not found "${t}"`), null);
|
|
452
452
|
}
|
|
453
453
|
function ll(t) {
|
|
@@ -462,7 +462,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
462
462
|
C.value.includes(a.id) || q({ id: a.id });
|
|
463
463
|
}) : C.value.includes(s.id) || q({ id: s.id }));
|
|
464
464
|
}
|
|
465
|
-
const se = k(() => E.value /
|
|
465
|
+
const se = k(() => E.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio), vt = k(() => $.value.map((t, s) => E.value - s * E.value / S.value.length)), Z = k(() => $.value.map((t, s) => {
|
|
466
466
|
const a = Math.abs(t.series.map((A) => A.value).reduce((A, d) => A + d, 0)) > 0, o = E.value - s * E.value / $.value.length, l = G.value ? Q.value.find((A) => A.datasetIndex === s) : null, u = [...t.series, ...l ? [l] : []].map((A) => ({
|
|
467
467
|
...A,
|
|
468
468
|
value: A.value < 1e-11 ? Number.MIN_VALUE : A.value
|
|
@@ -503,8 +503,8 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
503
503
|
se.value
|
|
504
504
|
)
|
|
505
505
|
};
|
|
506
|
-
})), ht = k(() => [...
|
|
507
|
-
const a = s * E.value /
|
|
506
|
+
})), ht = k(() => [...S.value].map((t, s) => {
|
|
507
|
+
const a = s * E.value / S.value.length;
|
|
508
508
|
return {
|
|
509
509
|
sizeRatio: a,
|
|
510
510
|
donut: ze(
|
|
@@ -518,7 +518,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
518
518
|
1,
|
|
519
519
|
360,
|
|
520
520
|
105.25,
|
|
521
|
-
E.value /
|
|
521
|
+
E.value / S.value.length * e.value.style.chart.layout.donut.spacingRatio
|
|
522
522
|
)[0]
|
|
523
523
|
};
|
|
524
524
|
})), ft = v(null), ne = v(null), ue = v(null), $e = v(null);
|
|
@@ -620,7 +620,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
620
620
|
if (!e.value.style.chart.tooltip.showAllItemsAtIndex || C.value.length)
|
|
621
621
|
return [null, void 0].includes(ne.value) || ne.value === t.id ? "" : `url(#blur_${b.value})`;
|
|
622
622
|
}
|
|
623
|
-
const re = k(() =>
|
|
623
|
+
const re = k(() => S.value.map((t, s) => {
|
|
624
624
|
const a = t.series.filter(
|
|
625
625
|
(l) => !C.value.includes(l.id)
|
|
626
626
|
), o = G.value ? a.map((l) => {
|
|
@@ -750,7 +750,7 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
750
750
|
};
|
|
751
751
|
});
|
|
752
752
|
function ul() {
|
|
753
|
-
return
|
|
753
|
+
return S.value;
|
|
754
754
|
}
|
|
755
755
|
function gt() {
|
|
756
756
|
_.value.showTable = !_.value.showTable;
|
|
@@ -1443,12 +1443,12 @@ const Tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1443
1443
|
i(Ce) ? (n(), U(Ul, { key: 9 })) : L("", !0)
|
|
1444
1444
|
], 46, Jl));
|
|
1445
1445
|
}
|
|
1446
|
-
},
|
|
1446
|
+
}, Ta = /* @__PURE__ */ Zl(Fa, [["__scopeId", "data-v-1468fc43"]]), Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1447
1447
|
__proto__: null,
|
|
1448
|
-
default:
|
|
1448
|
+
default: Ta
|
|
1449
1449
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1450
1450
|
export {
|
|
1451
1451
|
Ya as a,
|
|
1452
1452
|
Wa as b,
|
|
1453
|
-
|
|
1453
|
+
Ta as v
|
|
1454
1454
|
};
|