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,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as E, computed as w, ref as f, toRefs as St, watch as le, onMounted as Ot, onBeforeUnmount as Dt, createElementBlock as g, openBlock as h, unref as i, normalizeStyle as ae, normalizeClass as ge, createBlock as V, createCommentVNode as x, renderSlot as b, createElementVNode as S, createVNode as ke, withCtx as m, normalizeProps as _, guardReactiveProps as F, createSlots as Ze, Fragment as j, renderList as Ce, mergeProps as we, toDisplayString as ne, resolveDynamicComponent as Pt, createTextVNode as Je, nextTick as It } from "vue";
|
|
2
|
-
import { u as Et, a as xe } from "./useNestedProp-
|
|
3
|
-
import { c as Ke, t as Bt, i as $e, p as se, o as Mt, g as Nt, j as Rt, l as zt, d as Qe, X as Lt, n as Ut, r as Vt, w as
|
|
4
|
-
import { u as Ht } from "./usePrinter-
|
|
2
|
+
import { u as Et, a as xe } from "./useNestedProp-DOOBu_sL.js";
|
|
3
|
+
import { c as Ke, t as Bt, i as $e, p as se, o as Mt, g as Nt, j as Rt, l as zt, d as Qe, X as Lt, n as Ut, r as Vt, w as Ae, G as jt, u as Gt, q as Yt, x as Xt, a as qt } from "./lib-qMPkcvmh.js";
|
|
4
|
+
import { u as Ht } from "./usePrinter-CjGh4mFJ.js";
|
|
5
5
|
import { u as Wt, B as Zt } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Jt } from "./useSvgExport-DrjCWun4.js";
|
|
7
7
|
import { u as Kt } from "./useThemeCheck-DGJ31Vi5.js";
|
|
8
8
|
import { u as Qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as eo } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
10
|
import { t as to, u as oo } from "./useResponsive-DfdjqQps.js";
|
|
11
|
-
import lo from "./img-
|
|
12
|
-
import ao from "./Title-
|
|
11
|
+
import lo from "./img-CwrkWkkl.js";
|
|
12
|
+
import ao from "./Title-CgkWUXeV.js";
|
|
13
13
|
import { _ as no } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
function so(u, c = 0) {
|
|
15
15
|
const p = u.reduce((a, { x: s, r: d }) => Math.min(a, s - d - c), 1 / 0), y = u.reduce((a, { x: s, r: d }) => Math.max(a, s + d + c), -1 / 0), v = u.reduce((a, { y: s, r: d }) => Math.min(a, s - d - c), 1 / 0), n = u.reduce((a, { y: s, r: d }) => Math.max(a, s + d + c), -1 / 0);
|
|
@@ -94,7 +94,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
94
94
|
}, Symbol.toStringTag, { value: "Module" })), io = ["id"], co = ["xmlns", "viewBox"], vo = ["x", "y", "width", "height"], fo = ["id"], ho = ["stop-color"], po = ["stop-color"], bo = ["stop-color"], yo = { key: 0 }, mo = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], go = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], ko = ["x", "y", "width", "height", "fill", "rx"], Co = ["x", "y", "font-size", "fill", "font-weight"], wo = ["x", "y", "font-size", "fill", "font-weight"], xo = {
|
|
95
95
|
key: 4,
|
|
96
96
|
class: "vue-data-ui-watermark"
|
|
97
|
-
}, $o = ["innerHTML"],
|
|
97
|
+
}, $o = ["innerHTML"], Ao = {
|
|
98
98
|
__name: "vue-ui-circle-pack",
|
|
99
99
|
props: {
|
|
100
100
|
config: {
|
|
@@ -112,7 +112,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
112
112
|
},
|
|
113
113
|
emits: ["selectDatapoint"],
|
|
114
114
|
setup(u, { expose: c, emit: p }) {
|
|
115
|
-
const y = E(() => import("./Tooltip-
|
|
115
|
+
const y = E(() => import("./Tooltip-OHx7yHlS.js")), v = E(() => import("./BaseIcon-CALhpING.js")), n = E(() => import("./vue-ui-accordion-BWfQ8Imt.js")), a = E(() => import("./DataTable-Ca1twcf7.js")), s = E(() => import("./UserOptions-ChRXLqps.js")), d = E(() => import("./PenAndPaper-DscVdZ1u.js")), k = E(() => import("./PackageVersion-B9RA2_BM.js")), D = E(() => import("./BaseDraggableDialog-BYwNgX3M.js")), $ = u, J = p, { vue_ui_circle_pack: K } = Et(), { isThemeValid: Q, warnInvalidTheme: it } = Kt(), Te = w(() => !!$.dataset && $.dataset.length), G = f(Ke()), A = f(null), _e = f(null), Fe = f(null), Se = f(0), Oe = f(0), De = f(0), Pe = f(null), z = f(null), ue = f(null), ie = f(!1), ce = f(""), B = f(null), e = f(de()), { loading: Ie, FINAL_DATASET: Ee } = Wt({
|
|
116
116
|
...St($),
|
|
117
117
|
FINAL_CONFIG: e,
|
|
118
118
|
prepareConfig: de,
|
|
@@ -169,18 +169,18 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
le(() => $.config, (t) => {
|
|
172
|
-
e.value = de(), ve.value = !e.value.userOptions.showOnChartHover, fe(), Se.value += 1, Oe.value += 1,
|
|
172
|
+
e.value = de(), ve.value = !e.value.userOptions.showOnChartHover, fe(), Se.value += 1, Oe.value += 1, T.value.showTable = e.value.table.show;
|
|
173
173
|
}, { deep: !0 });
|
|
174
174
|
const { isPrinting: Ne, isImaging: Re, generatePdf: ze, generateImage: Le } = Ht({
|
|
175
175
|
elementId: `vue-ui-circle-pack_${G.value}`,
|
|
176
176
|
fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
|
|
177
177
|
options: e.value.userOptions.print
|
|
178
|
-
}), ct = w(() => e.value.userOptions.show && !e.value.style.chart.title.text),
|
|
178
|
+
}), ct = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), T = f({
|
|
179
179
|
showTable: e.value.table.show,
|
|
180
180
|
showTooltip: e.value.style.chart.tooltip.show
|
|
181
181
|
});
|
|
182
182
|
le(e, () => {
|
|
183
|
-
|
|
183
|
+
T.value = {
|
|
184
184
|
showTable: e.value.table.show,
|
|
185
185
|
showTooltip: e.value.style.chart.tooltip.show
|
|
186
186
|
};
|
|
@@ -214,10 +214,10 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
214
214
|
})), Ue.value = [0, 0, t, l], P.value = `0 0 ${t} ${l}`;
|
|
215
215
|
}
|
|
216
216
|
function pt() {
|
|
217
|
-
if (!e.value.responsive || !
|
|
217
|
+
if (!e.value.responsive || !A.value) return;
|
|
218
218
|
const t = to(() => {
|
|
219
219
|
const { width: l, height: o } = oo({
|
|
220
|
-
chart:
|
|
220
|
+
chart: A.value,
|
|
221
221
|
title: e.value.style.chart.title.text ? _e.value : null,
|
|
222
222
|
legend: null,
|
|
223
223
|
source: Pe.value,
|
|
@@ -227,7 +227,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
227
227
|
!l || !o || (L.value && (L.value.setAttribute("width", l), L.value.setAttribute("height", o)), Ve(l, o));
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
|
-
O.value && (I.value && O.value.unobserve(I.value), O.value.disconnect()), O.value = new ResizeObserver(t), I.value =
|
|
230
|
+
O.value && (I.value && O.value.unobserve(I.value), O.value.disconnect()), O.value = new ResizeObserver(t), I.value = A.value.parentNode || A.value, I.value && O.value.observe(I.value), t();
|
|
231
231
|
}
|
|
232
232
|
function je() {
|
|
233
233
|
O.value && (I.value && O.value.unobserve(I.value), O.value.disconnect(), O.value = null, I.value = null);
|
|
@@ -383,17 +383,17 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
383
383
|
};
|
|
384
384
|
});
|
|
385
385
|
function qe() {
|
|
386
|
-
|
|
386
|
+
T.value.showTable = !T.value.showTable;
|
|
387
387
|
}
|
|
388
388
|
function kt() {
|
|
389
|
-
|
|
389
|
+
T.value.showTooltip = !T.value.showTooltip;
|
|
390
390
|
}
|
|
391
391
|
function Ct() {
|
|
392
392
|
return Y.value;
|
|
393
393
|
}
|
|
394
394
|
async function wt({ scale: t = 2 } = {}) {
|
|
395
|
-
if (!
|
|
396
|
-
const { width: l, height: o } =
|
|
395
|
+
if (!A.value) return;
|
|
396
|
+
const { width: l, height: o } = A.value.getBoundingClientRect(), r = l / o, { imageUri: C, base64: R } = await lo({ domElement: A.value, base64: !0, img: !0, scale: t });
|
|
397
397
|
return {
|
|
398
398
|
imageUri: C,
|
|
399
399
|
base64: R,
|
|
@@ -404,7 +404,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
406
|
const H = w(() => {
|
|
407
|
-
const t = e.value.table.useDialog && !e.value.table.show, l =
|
|
407
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = T.value.showTable;
|
|
408
408
|
return {
|
|
409
409
|
component: t ? D : n,
|
|
410
410
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
@@ -414,7 +414,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
414
414
|
headerColor: e.value.table.th.color,
|
|
415
415
|
headerBg: e.value.table.th.backgroundColor,
|
|
416
416
|
isFullscreen: N.value,
|
|
417
|
-
fullscreenParent:
|
|
417
|
+
fullscreenParent: A.value,
|
|
418
418
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
419
419
|
} : {
|
|
420
420
|
hideDetails: !0,
|
|
@@ -433,23 +433,23 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
435
|
});
|
|
436
|
-
le(() =>
|
|
436
|
+
le(() => T.value.showTable, (t) => {
|
|
437
437
|
e.value.table.show || (t && e.value.table.useDialog && z.value ? z.value.open() : z.value && "close" in z.value && z.value.close());
|
|
438
438
|
});
|
|
439
439
|
function He() {
|
|
440
|
-
|
|
440
|
+
T.value.showTable = !1, ue.value && ue.value.setTableIconState(!1);
|
|
441
441
|
}
|
|
442
|
-
const xt = w(() => e.value.style.chart.backgroundColor), $t = w(() => e.value.style.chart.title), { exportSvg:
|
|
442
|
+
const xt = w(() => e.value.style.chart.backgroundColor), $t = w(() => e.value.style.chart.title), { exportSvg: At, getSvg: Tt } = Jt({
|
|
443
443
|
svg: L,
|
|
444
444
|
title: $t,
|
|
445
445
|
backgroundColor: xt
|
|
446
446
|
});
|
|
447
447
|
async function We({ isCb: t }) {
|
|
448
448
|
if (t) {
|
|
449
|
-
const { blob: l, url: o, text: r, dataUrl: C } = await
|
|
449
|
+
const { blob: l, url: o, text: r, dataUrl: C } = await Tt();
|
|
450
450
|
e.value.userOptions.callbacks.svg({ blob: l, url: o, text: r, dataUrl: C });
|
|
451
451
|
} else
|
|
452
|
-
|
|
452
|
+
At();
|
|
453
453
|
}
|
|
454
454
|
return c({
|
|
455
455
|
getData: Ct,
|
|
@@ -465,7 +465,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
465
465
|
id: `vue-ui-circle-pack_${G.value}`,
|
|
466
466
|
class: ge(`vue-data-ui-component vue-ui-circle-pack ${N.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${i(Ie) ? "loading" : ""}`),
|
|
467
467
|
ref_key: "circlePackChart",
|
|
468
|
-
ref:
|
|
468
|
+
ref: A,
|
|
469
469
|
style: ae(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor};`),
|
|
470
470
|
onMouseenter: l[1] || (l[1] = () => i(Be)(!0)),
|
|
471
471
|
onMouseleave: l[2] || (l[2] = () => i(Be)(!1))
|
|
@@ -527,7 +527,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
527
527
|
}
|
|
528
528
|
}, null, 8, ["config"]))
|
|
529
529
|
], 512)) : x("", !0),
|
|
530
|
-
e.value.userOptions.show &&
|
|
530
|
+
e.value.userOptions.show && Te.value && (i(Me) || i(ve)) ? (h(), V(i(s), {
|
|
531
531
|
ref_key: "userOptionsRef",
|
|
532
532
|
ref: ue,
|
|
533
533
|
key: `user_option_${De.value}`,
|
|
@@ -537,7 +537,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
537
537
|
isImaging: i(Re),
|
|
538
538
|
uid: G.value,
|
|
539
539
|
hasTooltip: e.value.userOptions.buttons.tooltip,
|
|
540
|
-
isTooltip:
|
|
540
|
+
isTooltip: T.value.showTooltip,
|
|
541
541
|
hasLabel: !1,
|
|
542
542
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
543
543
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -546,7 +546,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
546
546
|
hasTable: e.value.userOptions.buttons.table,
|
|
547
547
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
548
548
|
isFullscreen: N.value,
|
|
549
|
-
chartElement:
|
|
549
|
+
chartElement: A.value,
|
|
550
550
|
position: e.value.userOptions.position,
|
|
551
551
|
callbacks: e.value.userOptions.callbacks,
|
|
552
552
|
printScale: e.value.userOptions.print.scale,
|
|
@@ -726,7 +726,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
726
726
|
name: o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
727
727
|
value: Ye(o) * e.value.style.chart.circles.labels.value.fontSizeRatio
|
|
728
728
|
},
|
|
729
|
-
color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(
|
|
729
|
+
color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(Ae)(o.color)
|
|
730
730
|
}), void 0, !0) : (h(), g(j, { key: 1 }, [
|
|
731
731
|
e.value.style.chart.circles.labels.name.show && o.name ? (h(), g("text", {
|
|
732
732
|
key: 0,
|
|
@@ -737,7 +737,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
737
737
|
x: o.x,
|
|
738
738
|
y: o.y + Ge(o.r, e.value.style.chart.circles.labels.name.offsetY) - o.r / 10,
|
|
739
739
|
"font-size": o.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
|
|
740
|
-
fill: e.value.style.chart.circles.labels.name.color === "auto" ? i(
|
|
740
|
+
fill: e.value.style.chart.circles.labels.name.color === "auto" ? i(Ae)(o.color) : e.value.style.chart.circles.labels.name.color,
|
|
741
741
|
"font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
|
|
742
742
|
"text-anchor": "middle"
|
|
743
743
|
}, ne(o.name), 9, Co)) : x("", !0),
|
|
@@ -750,7 +750,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
750
750
|
x: o.x,
|
|
751
751
|
y: o.y + Ge(o.r, e.value.style.chart.circles.labels.value.offsetY) + o.r / 2.5,
|
|
752
752
|
"font-size": Ye(o) * e.value.style.chart.circles.labels.value.fontSizeRatio,
|
|
753
|
-
fill: e.value.style.chart.circles.labels.value.color === "auto" ? i(
|
|
753
|
+
fill: e.value.style.chart.circles.labels.value.color === "auto" ? i(Ae)(o.color) : e.value.style.chart.circles.labels.value.color,
|
|
754
754
|
"font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
|
|
755
755
|
"text-anchor": "middle"
|
|
756
756
|
}, ne(pe(o)), 9, wo)) : x("", !0)
|
|
@@ -773,7 +773,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
773
773
|
b(t.$slots, "source", {}, void 0, !0)
|
|
774
774
|
], 512)) : x("", !0),
|
|
775
775
|
ke(i(y), {
|
|
776
|
-
show:
|
|
776
|
+
show: T.value.showTooltip && ie.value,
|
|
777
777
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
778
778
|
color: e.value.style.chart.tooltip.color,
|
|
779
779
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -783,7 +783,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
783
783
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
784
784
|
position: e.value.style.chart.tooltip.position,
|
|
785
785
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
786
|
-
parent:
|
|
786
|
+
parent: A.value,
|
|
787
787
|
content: ce.value,
|
|
788
788
|
isCustom: q.value,
|
|
789
789
|
isFullscreen: N.value,
|
|
@@ -800,7 +800,7 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
800
800
|
]),
|
|
801
801
|
_: 3
|
|
802
802
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
803
|
-
|
|
803
|
+
Te.value && e.value.userOptions.buttons.table ? (h(), V(Pt(H.value.component), we({ key: 6 }, H.value.props, {
|
|
804
804
|
ref_key: "tableUnit",
|
|
805
805
|
ref: z,
|
|
806
806
|
onClose: He
|
|
@@ -857,12 +857,12 @@ const ot = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", cir
|
|
|
857
857
|
i(Ie) ? (h(), V(Zt, { key: 7 })) : x("", !0)
|
|
858
858
|
], 46, io));
|
|
859
859
|
}
|
|
860
|
-
},
|
|
860
|
+
}, To = /* @__PURE__ */ no(Ao, [["__scopeId", "data-v-5e1a54cd"]]), Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
861
861
|
__proto__: null,
|
|
862
|
-
default:
|
|
862
|
+
default: To
|
|
863
863
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
864
864
|
export {
|
|
865
865
|
Lo as a,
|
|
866
866
|
Uo as b,
|
|
867
|
-
|
|
867
|
+
To as v
|
|
868
868
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as u, computed as m, onMounted as I, onBeforeUnmount as N, createBlock as B, openBlock as l, Teleport as T, createElementBlock as i, createCommentVNode as n, normalizeStyle as $, unref as E, createVNode as R, createElementVNode as r, normalizeClass as S, toDisplayString as F, nextTick as M } from "vue";
|
|
2
|
-
import { u as W, a as G } from "./useNestedProp-
|
|
3
|
-
import { c as V, X as A, s as U } from "./lib-
|
|
4
|
-
import P from "./PackageVersion-
|
|
2
|
+
import { u as W, a as G } from "./useNestedProp-DOOBu_sL.js";
|
|
3
|
+
import { c as V, X as A, s as U } from "./lib-qMPkcvmh.js";
|
|
4
|
+
import P from "./PackageVersion-B9RA2_BM.js";
|
|
5
5
|
import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const j = ["xmlns", "height", "width"], Y = {
|
|
7
7
|
id: "follower",
|