vue-data-ui 3.3.3 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-ayTeSvpe.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-Cysanw8-.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-DG6cvf2h.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-CA8kKZjZ.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-DUpZ_s2c.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-CCBZ2x8T.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D2IMGwaN.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-CQvYRebC.js → PackageVersion-VpPtLYhK.js} +1 -1
- package/dist/{PenAndPaper-D9LruJaM.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BS9UGhNq.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-BOki89CB.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip-svd8Hb6c.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-B6rAo9Oz.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-DaInVNiV.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CJXSEhan.js → UserOptions-C0YT60JN.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-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-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-Tq92GZKA.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-DI-W68vp.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CSDxt1Zh.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-BzVpWnNO.js → pdf-O34i6EQX.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +82 -8
- package/dist/{useAutoSizeLabelsInsideViewbox-CtQ7pJ8G.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Dh-ldrr5.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-Cq8Pt6Lh.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/{vue-data-ui-CDY7snWF.js → vue-data-ui-oDJui39L.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-DbpiTjGu.js → vue-ui-3d-bar-wycTM073.js} +56 -56
- package/dist/{vue-ui-accordion-CaClZrCp.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DuIxXz5p.js → vue-ui-age-pyramid-C5NUZ_Y7.js} +39 -39
- package/dist/{vue-ui-annotator-C2efSKQK.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-qpcqLKmp.js → vue-ui-bullet-CIsX5UJw.js} +7 -7
- package/dist/vue-ui-candlestick-BRFx3_KK.js +1334 -0
- package/dist/{vue-ui-carousel-table-CCTtArFX.js → vue-ui-carousel-table-hJySHJTu.js} +29 -29
- package/dist/{vue-ui-chestnut-CbvxJ8hy.js → vue-ui-chestnut-D4GjvQh0.js} +70 -70
- package/dist/{vue-ui-chord-Cp9nyIdv.js → vue-ui-chord-By2NOs0N.js} +35 -35
- package/dist/{vue-ui-circle-pack-kHzd0UYO.js → vue-ui-circle-pack-OCmAkTNs.js} +59 -59
- package/dist/{vue-ui-cursor-DEvkJRCz.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-k_mz9iwy.js → vue-ui-dashboard-C7fwU9xb.js} +67 -67
- package/dist/{vue-ui-digits-CqWCkEu2.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-CDKS6sVu.js → vue-ui-donut-dVVBUQJz.js} +189 -189
- package/dist/{vue-ui-donut-evolution-C6cGI_P3.js → vue-ui-donut-evolution-BoWGaQP0.js} +82 -82
- package/dist/{vue-ui-dumbbell-ZjJst3xs.js → vue-ui-dumbbell-YMPZ3CVA.js} +66 -66
- package/dist/{vue-ui-flow-sX1PYIkr.js → vue-ui-flow-BE62rVS3.js} +75 -75
- package/dist/{vue-ui-funnel--VViM9gH.js → vue-ui-funnel-kNpDFAWo.js} +63 -63
- package/dist/{vue-ui-galaxy-Du0V9GF8.js → vue-ui-galaxy-BBBiXXyk.js} +62 -62
- package/dist/{vue-ui-gauge-BAe4p2g-.js → vue-ui-gauge-PQNTTl3Y.js} +58 -58
- package/dist/{vue-ui-gizmo-CfjwAt38.js → vue-ui-gizmo-D3gQxQz3.js} +3 -3
- package/dist/{vue-ui-heatmap-Q0jrPM5h.js → vue-ui-heatmap-CKWQButF.js} +104 -104
- package/dist/{vue-ui-history-plot-CLSN3mPy.js → vue-ui-history-plot-DYFzdR4Z.js} +91 -91
- package/dist/{vue-ui-kpi-CBRgXD1s.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-3yCeDEPK.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-Ddh4hbX0.js → vue-ui-molecule-Cklyb74B.js} +102 -102
- package/dist/{vue-ui-mood-radar-CK8UF-ka.js → vue-ui-mood-radar-Cvq4ZuLe.js} +28 -28
- package/dist/{vue-ui-nested-donuts-DO0FV0tU.js → vue-ui-nested-donuts-Bm78P1ES.js} +60 -60
- package/dist/{vue-ui-onion-DXLqoj-4.js → vue-ui-onion-Bh5jTb31.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-BlffHAHB.js → vue-ui-parallel-coordinate-plot-BKdN2OsW.js} +64 -64
- package/dist/{vue-ui-quadrant-pw2ALj7p.js → vue-ui-quadrant-BPhJzots.js} +8 -8
- package/dist/{vue-ui-quick-chart-9oGbV593.js → vue-ui-quick-chart-DbJR9CN3.js} +86 -86
- package/dist/vue-ui-radar-CrenQprr.js +938 -0
- package/dist/{vue-ui-rating-C4yZY1sb.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Duxv-A4H.js → vue-ui-relation-circle-BJ5RuZ0j.js} +31 -31
- package/dist/{vue-ui-ridgeline-B-q7J-C0.js → vue-ui-ridgeline-CKuom5Bu.js} +97 -97
- package/dist/{vue-ui-rings-PRAcmP1H.js → vue-ui-rings-B84GAEf4.js} +50 -50
- package/dist/{vue-ui-scatter-BLW4MJtJ.js → vue-ui-scatter-CBX-g9w3.js} +100 -100
- package/dist/{vue-ui-skeleton-D0PF0jxa.js → vue-ui-skeleton-CZ8xxpEU.js} +3 -3
- package/dist/{vue-ui-smiley-Be44gMTh.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-B2XY2dRa.js → vue-ui-spark-trend-DOf7-cIf.js} +18 -18
- package/dist/{vue-ui-sparkbar-DWQN4gvR.js → vue-ui-sparkbar-D-MPA2zf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-fDhQGQ12.js → vue-ui-sparkgauge-B9xRiVSU.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-f7Acvipt.js → vue-ui-sparkhistogram-BWb0lqQP.js} +4 -4
- package/dist/{vue-ui-sparkline-Ys3JW7Ap.js → vue-ui-sparkline-BF-qr8Ti.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Dv0HeSna.js → vue-ui-sparkstackbar-DnCUpk50.js} +17 -17
- package/dist/vue-ui-stackbar-DvJ8Hahn.js +1695 -0
- package/dist/{vue-ui-strip-plot-DN13ntF-.js → vue-ui-strip-plot-SAh1gIs5.js} +52 -52
- package/dist/{vue-ui-table-Qb5tDX1n.js → vue-ui-table-BJdDfMYD.js} +18 -18
- package/dist/{vue-ui-table-heatmap-hMrgJ25a.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-CdkFyJjv.js → vue-ui-table-sparkline-BBFEJ8c6.js} +28 -28
- package/dist/{vue-ui-thermometer-D7U2C7kJ.js → vue-ui-thermometer-D8DH6QSN.js} +22 -22
- package/dist/{vue-ui-timer-KtA4M2mV.js → vue-ui-timer-CaUdAHBE.js} +29 -29
- package/dist/{vue-ui-tiremarks-C6GTGszq.js → vue-ui-tiremarks-_sUH1d3J.js} +14 -14
- package/dist/{vue-ui-treemap-rhnl1TW9.js → vue-ui-treemap-DXduzuW4.js} +78 -78
- package/dist/{vue-ui-vertical-bar-n_Lvbd_X.js → vue-ui-vertical-bar-JdjmgwQj.js} +94 -94
- package/dist/{vue-ui-waffle-D-4whGLN.js → vue-ui-waffle-h8zoi4Rc.js} +68 -68
- package/dist/{vue-ui-wheel-D92HLjfr.js → vue-ui-wheel-Ck1Mx37j.js} +21 -21
- package/dist/{vue-ui-word-cloud-Df9AMw6v.js → vue-ui-word-cloud-CjWvuukM.js} +47 -47
- package/dist/{vue-ui-world-Bg9S35ug.js → vue-ui-world-Dw71_Mu2.js} +6 -6
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/dist/vue-ui-xy-tSMgXqqb.js +3375 -0
- package/package.json +2 -2
- package/dist/vue-ui-candlestick-DTWbbdGH.js +0 -1073
- package/dist/vue-ui-radar-Csznqw19.js +0 -891
- package/dist/vue-ui-stackbar-DUlN5QiM.js +0 -1457
- package/dist/vue-ui-xy-Da6oy2rm.js +0 -4527
- package/dist/vue-ui-xy-canvas-0CLSIKpO.js +0 -1305
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as Ue, t as Ft, b as It, p as N, o as We, f as he, g as Pt, e as Lt,
|
|
1
|
+
import { defineAsyncComponent as O, useSlots as $t, ref as r, computed as c, toRefs as Tt, watch as Y, shallowRef as Me, onMounted as _t, onBeforeUnmount as xt, createElementBlock as p, openBlock as i, unref as s, normalizeStyle as L, normalizeClass as U, createBlock as A, createCommentVNode as b, createElementVNode as C, createVNode as q, createSlots as ie, withCtx as d, renderSlot as g, normalizeProps as B, guardReactiveProps as V, Fragment as ve, renderList as ce, mergeProps as ze, Teleport as St, toDisplayString as de, resolveDynamicComponent as Ot, createTextVNode as Ee, nextTick as At } from "vue";
|
|
2
|
+
import { c as Ue, t as Ft, b as It, p as N, o as We, f as he, g as Pt, e as Lt, a1 as Nt, h as Ge, a as He, d as D, X as Dt, s as Rt, i as Bt, x as Q, P as Vt, Q as Mt, G as zt, H as Et } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as Ut, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Gt, a as je } from "./useNestedProp-
|
|
5
|
-
import { u as Ht } from "./usePrinter-
|
|
4
|
+
import { u as Gt, a as je } from "./useNestedProp-B7CiTRDS.js";
|
|
5
|
+
import { u as Ht } from "./usePrinter-C1GiglOH.js";
|
|
6
6
|
import { u as jt, B as Xt } from "./BaseScanner-BgWxam9d.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import Zt from "./Title-
|
|
7
|
+
import { u as Yt } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as qt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import Jt from "./img-CFY3JivG.js";
|
|
11
|
+
import { _ as Kt } from "./Shape-BhNvlGIN.js";
|
|
12
|
+
import Zt from "./Title-CFmv95In.js";
|
|
13
13
|
import { t as el } from "./themes-Dw-dDudK.js";
|
|
14
|
-
import tl from "./Legend-
|
|
14
|
+
import tl from "./Legend-C8u37J42.js";
|
|
15
15
|
import { _ as ll } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
16
|
const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "height"], ul = ["id"], rl = ["stop-color"], il = ["stop-color"], vl = { key: 1 }, cl = ["stroke", "cx", "cy", "r", "fill"], dl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], hl = ["stroke", "stroke-width", "cx", "cy", "r", "fill"], pl = ["cx", "cy", "r", "onMouseenter", "onMouseleave", "onClick"], gl = {
|
|
17
17
|
key: 4,
|
|
@@ -33,8 +33,8 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
|
-
setup(Xe, { expose:
|
|
37
|
-
const
|
|
36
|
+
setup(Xe, { expose: Ye, emit: qe }) {
|
|
37
|
+
const Qe = O(() => import("./Tooltip-Cs4v8OnI.js")), Je = O(() => import("./BaseIcon-B5KaGWWC.js")), Ke = O(() => import("./vue-ui-accordion-BKkTS12x.js")), Ze = O(() => import("./DataTable-DOx3zgih.js")), et = O(() => import("./PenAndPaper-Dj2diYr0.js")), tt = O(() => import("./UserOptions-C0YT60JN.js")), lt = O(() => import("./PackageVersion-VpPtLYhK.js")), ot = O(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_rings: at } = Gt(), st = $t(), k = Xe, F = r(!1), pe = c(() => !!k.dataset && k.dataset.length), y = r(Ue()), W = r(!1), J = r(""), T = r(null), ge = r(0), _ = r(null), fe = r(null), ye = r(null), me = r(null), be = r(null), ke = r(0), we = r(0), Ce = r(0), K = r(!1), $e = r(!1), M = r(null), Z = r(null), e = r(le()), { loading: I, FINAL_DATASET: Te, manualLoading: G } = jt({
|
|
38
38
|
...Tt(k),
|
|
39
39
|
FINAL_CONFIG: e,
|
|
40
40
|
prepareConfig: le,
|
|
@@ -68,7 +68,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
})
|
|
71
|
-
}), { userOptionsVisible: ee, setUserOptionsVisibility: _e, keepUserOptionState: xe } =
|
|
71
|
+
}), { userOptionsVisible: ee, setUserOptionsVisibility: _e, keepUserOptionState: xe } = qt({ config: e.value }), { svgRef: te } = Qt({ config: e.value.style.chart.title });
|
|
72
72
|
function le() {
|
|
73
73
|
const t = je({
|
|
74
74
|
userConfig: k.config,
|
|
@@ -82,9 +82,9 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
82
82
|
customPalette: It[t.theme] || N
|
|
83
83
|
} : t;
|
|
84
84
|
}
|
|
85
|
-
|
|
85
|
+
Y(() => k.config, (t) => {
|
|
86
86
|
I.value || (e.value = le()), ee.value = !e.value.userOptions.showOnChartHover, Se(), ke.value += 1, we.value += 1, Ce.value += 1, w.value.showTable = e.value.table.show, w.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
87
|
-
}, { deep: !0 }),
|
|
87
|
+
}, { deep: !0 }), Y(() => k.dataset, (t) => {
|
|
88
88
|
Array.isArray(t) && t.length > 0 && (G.value = !1);
|
|
89
89
|
}, { deep: !0 });
|
|
90
90
|
const x = Me(null), R = Me(null);
|
|
@@ -116,7 +116,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
116
116
|
});
|
|
117
117
|
}), We(k.dataset) || (G.value = e.value.loading), e.value.responsive) {
|
|
118
118
|
const t = Ut(() => {
|
|
119
|
-
|
|
119
|
+
K.value = !0;
|
|
120
120
|
const { width: o, height: l } = Wt({
|
|
121
121
|
chart: _.value,
|
|
122
122
|
title: e.value.style.chart.title.text ? fe.value : null,
|
|
@@ -125,7 +125,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
125
125
|
noTitle: be.value
|
|
126
126
|
});
|
|
127
127
|
requestAnimationFrame(() => {
|
|
128
|
-
u.value.width = o, u.value.height = l - 12,
|
|
128
|
+
u.value.width = o, u.value.height = l - 12, K.value = !1;
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
131
|
x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect()), x.value = new ResizeObserver(t), R.value = _.value.parentNode, x.value.observe(R.value);
|
|
@@ -137,7 +137,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
137
137
|
xt(() => {
|
|
138
138
|
x.value && (R.value && x.value.unobserve(R.value), x.value.disconnect());
|
|
139
139
|
});
|
|
140
|
-
const { isPrinting:
|
|
140
|
+
const { isPrinting: Oe, isImaging: Ae, generatePdf: Fe, generateImage: Ie } = Ht({
|
|
141
141
|
elementId: `rings_${y.value}`,
|
|
142
142
|
fileName: e.value.style.chart.title.text || "vue-ui-rings",
|
|
143
143
|
options: e.value.userOptions.print
|
|
@@ -145,7 +145,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
145
145
|
showTable: e.value.table.show,
|
|
146
146
|
showTooltip: e.value.style.chart.tooltip.show
|
|
147
147
|
});
|
|
148
|
-
|
|
148
|
+
Y(e, () => {
|
|
149
149
|
w.value = {
|
|
150
150
|
showTable: e.value.table.show,
|
|
151
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -154,7 +154,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
154
154
|
const u = r({
|
|
155
155
|
height: 360,
|
|
156
156
|
width: 360
|
|
157
|
-
}), ut = c(() => Math.min(u.value.height, u.value.width)), rt =
|
|
157
|
+
}), ut = c(() => Math.min(u.value.height, u.value.width)), rt = qe, m = r([]);
|
|
158
158
|
function ae(t) {
|
|
159
159
|
m.value.includes(t) ? m.value = m.value.filter((o) => o !== t) : m.value.push(t), rt("selectLegend", f.value.map((o) => ({
|
|
160
160
|
name: o.name,
|
|
@@ -241,7 +241,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
241
241
|
series: f.value,
|
|
242
242
|
config: e.value
|
|
243
243
|
})))
|
|
244
|
-
|
|
244
|
+
J.value = a({
|
|
245
245
|
seriesIndex: o,
|
|
246
246
|
datapoint: t,
|
|
247
247
|
series: f.value,
|
|
@@ -268,7 +268,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
268
268
|
v: l.value / $.value * 100,
|
|
269
269
|
s: "%",
|
|
270
270
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
271
|
-
})}</b></div>`),
|
|
271
|
+
})}</b></div>`), J.value = n;
|
|
272
272
|
}
|
|
273
273
|
W.value = !0;
|
|
274
274
|
}
|
|
@@ -315,7 +315,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
315
315
|
};
|
|
316
316
|
});
|
|
317
317
|
function ue(t = null) {
|
|
318
|
-
|
|
318
|
+
At(() => {
|
|
319
319
|
const o = S.value.head.map((n, v) => [[
|
|
320
320
|
n.name
|
|
321
321
|
], [S.value.body[v]], [isNaN(S.value.body[v] / $.value) ? "-" : S.value.body[v] / $.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = Vt(l);
|
|
@@ -338,7 +338,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
338
338
|
}
|
|
339
339
|
async function gt({ scale: t = 2 } = {}) {
|
|
340
340
|
if (!_.value) return;
|
|
341
|
-
const { width: o, height: l } = _.value.getBoundingClientRect(), a = o / l, { imageUri: n, base64: v } = await
|
|
341
|
+
const { width: o, height: l } = _.value.getBoundingClientRect(), a = o / l, { imageUri: n, base64: v } = await Jt({ domElement: _.value, base64: !0, img: !0, scale: t });
|
|
342
342
|
return {
|
|
343
343
|
imageUri: n,
|
|
344
344
|
base64: v,
|
|
@@ -351,7 +351,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
351
351
|
const z = c(() => {
|
|
352
352
|
const t = e.value.table.useDialog && !e.value.table.show, o = w.value.showTable;
|
|
353
353
|
return {
|
|
354
|
-
component: t ? ot :
|
|
354
|
+
component: t ? ot : Ke,
|
|
355
355
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
356
356
|
props: t ? {
|
|
357
357
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -378,7 +378,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
});
|
|
381
|
-
|
|
381
|
+
Y(() => w.value.showTable, (t) => {
|
|
382
382
|
e.value.table.show || (t && e.value.table.useDialog && M.value ? M.value.open() : "close" in M.value && M.value.close());
|
|
383
383
|
});
|
|
384
384
|
function Be() {
|
|
@@ -387,7 +387,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
387
387
|
const ft = c(() => se.value.map((t) => ({
|
|
388
388
|
...t,
|
|
389
389
|
name: t.display
|
|
390
|
-
}))), yt = c(() => e.value.style.chart.backgroundColor), mt = c(() => e.value.style.chart.legend), bt = c(() => e.value.style.chart.title), { exportSvg: kt, getSvg: wt } =
|
|
390
|
+
}))), yt = c(() => e.value.style.chart.backgroundColor), mt = c(() => e.value.style.chart.legend), bt = c(() => e.value.style.chart.title), { exportSvg: kt, getSvg: wt } = Yt({
|
|
391
391
|
svg: te,
|
|
392
392
|
title: bt,
|
|
393
393
|
legend: mt,
|
|
@@ -401,7 +401,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
401
401
|
} else
|
|
402
402
|
kt();
|
|
403
403
|
}
|
|
404
|
-
return
|
|
404
|
+
return Ye({
|
|
405
405
|
getData: ct,
|
|
406
406
|
getImage: gt,
|
|
407
407
|
generatePdf: Fe,
|
|
@@ -423,7 +423,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
423
423
|
}),
|
|
424
424
|
onMouseenter: o[3] || (o[3] = () => s(_e)(!0))
|
|
425
425
|
}, [
|
|
426
|
-
e.value.userOptions.buttons.annotator ? (i(),
|
|
426
|
+
e.value.userOptions.buttons.annotator ? (i(), A(s(et), {
|
|
427
427
|
key: 0,
|
|
428
428
|
svgRef: s(te),
|
|
429
429
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -444,7 +444,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
444
444
|
ref: fe,
|
|
445
445
|
style: "width:100%;background:transparent"
|
|
446
446
|
}, [
|
|
447
|
-
(i(),
|
|
447
|
+
(i(), A(Zt, {
|
|
448
448
|
key: `title_${ke.value}`,
|
|
449
449
|
config: {
|
|
450
450
|
title: {
|
|
@@ -461,14 +461,14 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
461
461
|
C("div", {
|
|
462
462
|
id: `legend-top-${y.value}`
|
|
463
463
|
}, null, 8, al),
|
|
464
|
-
e.value.userOptions.show && pe.value && (s(xe) || s(ee)) ? (i(),
|
|
464
|
+
e.value.userOptions.show && pe.value && (s(xe) || s(ee)) ? (i(), A(s(tt), {
|
|
465
465
|
ref_key: "userOptionsRef",
|
|
466
466
|
ref: Z,
|
|
467
467
|
key: `user_options_${ge.value}`,
|
|
468
468
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
469
469
|
color: e.value.style.chart.color,
|
|
470
|
-
isPrinting: s(
|
|
471
|
-
isImaging: s(
|
|
470
|
+
isPrinting: s(Oe),
|
|
471
|
+
isImaging: s(Ae),
|
|
472
472
|
uid: y.value,
|
|
473
473
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
474
474
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -560,11 +560,11 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
560
560
|
ref_key: "svgRef",
|
|
561
561
|
ref: te,
|
|
562
562
|
xmlns: s(Dt),
|
|
563
|
-
class: U({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing:
|
|
563
|
+
class: U({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value, resizing: K.value || s(I) }),
|
|
564
564
|
viewBox: `0 0 ${u.value.width <= 0 ? 10 : u.value.width} ${u.value.height <= 0 ? 10 : u.value.height}`,
|
|
565
565
|
style: L(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
566
566
|
}, [
|
|
567
|
-
|
|
567
|
+
q(s(lt)),
|
|
568
568
|
t.$slots["chart-background"] ? (i(), p("foreignObject", {
|
|
569
569
|
key: 0,
|
|
570
570
|
x: 0,
|
|
@@ -612,7 +612,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
612
612
|
stroke: e.value.style.chart.layout.rings.stroke,
|
|
613
613
|
cx: u.value.width / 2,
|
|
614
614
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
615
|
-
r: s(
|
|
615
|
+
r: s(Q)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
616
616
|
fill: e.value.style.chart.layout.rings.gradient.underlayerColor
|
|
617
617
|
}, null, 14, cl),
|
|
618
618
|
C("circle", {
|
|
@@ -627,7 +627,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
627
627
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
628
628
|
cx: u.value.width / 2,
|
|
629
629
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
630
|
-
r: s(
|
|
630
|
+
r: s(Q)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
631
631
|
fill: e.value.style.chart.layout.rings.gradient.show ? `url(#gradient_${y.value}_${a})` : l.color
|
|
632
632
|
}, null, 14, dl),
|
|
633
633
|
t.$slots.pattern ? (i(), p("circle", {
|
|
@@ -643,14 +643,14 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
643
643
|
"stroke-width": l.strokeWidth < 0.5 ? 0.5 : l.strokeWidth,
|
|
644
644
|
cx: u.value.width / 2,
|
|
645
645
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
646
|
-
r: s(
|
|
646
|
+
r: s(Q)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
647
647
|
fill: `url(#pattern_${y.value}_${l.absoluteIndex})`
|
|
648
648
|
}, null, 14, hl)) : b("", !0),
|
|
649
649
|
C("circle", {
|
|
650
650
|
stroke: "none",
|
|
651
651
|
cx: u.value.width / 2,
|
|
652
652
|
cy: a === 0 ? u.value.height / 2 : u.value.height / 2 + h.value * f.value[0].proportion / 2 - h.value * l.proportion / 2 - 2 * (a + 1),
|
|
653
|
-
r: s(
|
|
653
|
+
r: s(Q)(h.value * l.proportion / 2 * 0.9 <= 0 ? 1e-4 : h.value * l.proportion / 2 * 0.9),
|
|
654
654
|
fill: "transparent",
|
|
655
655
|
onMouseenter: (n) => pt(l, a),
|
|
656
656
|
onMouseleave: (n) => ht(l, a),
|
|
@@ -660,12 +660,12 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
660
660
|
g(t.$slots, "svg", { svg: u.value }, void 0, !0)
|
|
661
661
|
], 14, sl)),
|
|
662
662
|
t.$slots.watermark ? (i(), p("div", gl, [
|
|
663
|
-
g(t.$slots, "watermark", B(V({ isPrinting: s(
|
|
663
|
+
g(t.$slots, "watermark", B(V({ isPrinting: s(Oe) || s(Ae) })), void 0, !0)
|
|
664
664
|
])) : b("", !0),
|
|
665
665
|
C("div", {
|
|
666
666
|
id: `legend-bottom-${y.value}`
|
|
667
667
|
}, null, 8, fl),
|
|
668
|
-
$e.value ? (i(),
|
|
668
|
+
$e.value ? (i(), A(St, {
|
|
669
669
|
key: 5,
|
|
670
670
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${y.value}` : `#legend-bottom-${y.value}`
|
|
671
671
|
}, [
|
|
@@ -673,7 +673,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
673
673
|
ref_key: "chartLegend",
|
|
674
674
|
ref: ye
|
|
675
675
|
}, [
|
|
676
|
-
e.value.style.chart.legend.show ? (i(),
|
|
676
|
+
e.value.style.chart.legend.show ? (i(), A(tl, {
|
|
677
677
|
key: `legend_${Ce.value}`,
|
|
678
678
|
legendSet: se.value,
|
|
679
679
|
config: vt.value,
|
|
@@ -691,7 +691,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
691
691
|
t.$slots.pattern ? {
|
|
692
692
|
name: "legend-pattern",
|
|
693
693
|
fn: d(({ legend: l, index: a }) => [
|
|
694
|
-
|
|
694
|
+
q(Kt, {
|
|
695
695
|
shape: l.shape,
|
|
696
696
|
radius: 30,
|
|
697
697
|
stroke: "none",
|
|
@@ -715,7 +715,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
715
715
|
}, [
|
|
716
716
|
g(t.$slots, "source", {}, void 0, !0)
|
|
717
717
|
], 512)) : b("", !0),
|
|
718
|
-
|
|
718
|
+
q(s(Qe), {
|
|
719
719
|
show: w.value.showTooltip && W.value && m.value.length < k.dataset.length,
|
|
720
720
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
721
721
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -727,7 +727,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
727
727
|
position: e.value.style.chart.tooltip.position,
|
|
728
728
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
729
729
|
parent: _.value,
|
|
730
|
-
content:
|
|
730
|
+
content: J.value,
|
|
731
731
|
isFullscreen: P.value,
|
|
732
732
|
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
733
733
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
@@ -743,13 +743,13 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
743
743
|
]),
|
|
744
744
|
_: 3
|
|
745
745
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
746
|
-
pe.value && e.value.userOptions.buttons.table ? (i(),
|
|
746
|
+
pe.value && e.value.userOptions.buttons.table ? (i(), A(Ot(z.value.component), ze({ key: 7 }, z.value.props, {
|
|
747
747
|
ref_key: "tableUnit",
|
|
748
748
|
ref: M,
|
|
749
749
|
onClose: Be
|
|
750
750
|
}), ie({
|
|
751
751
|
content: d(() => [
|
|
752
|
-
(i(),
|
|
752
|
+
(i(), A(s(Ze), {
|
|
753
753
|
key: `table_${we.value}`,
|
|
754
754
|
colNames: j.value.colNames,
|
|
755
755
|
head: j.value.head,
|
|
@@ -788,7 +788,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
788
788
|
class: "vue-ui-user-options-button",
|
|
789
789
|
onClick: o[1] || (o[1] = (l) => ue(e.value.userOptions.callbacks.csv))
|
|
790
790
|
}, [
|
|
791
|
-
|
|
791
|
+
q(s(Je), {
|
|
792
792
|
name: "excel",
|
|
793
793
|
stroke: z.value.props.color
|
|
794
794
|
}, null, 8, ["stroke"])
|
|
@@ -797,7 +797,7 @@ const ol = ["id"], al = ["id"], sl = ["xmlns", "viewBox"], nl = ["width", "heigh
|
|
|
797
797
|
key: "1"
|
|
798
798
|
} : void 0
|
|
799
799
|
]), 1040)) : b("", !0),
|
|
800
|
-
s(I) ? (i(),
|
|
800
|
+
s(I) ? (i(), A(Xt, { key: 8 })) : b("", !0)
|
|
801
801
|
], 46, ol));
|
|
802
802
|
}
|
|
803
803
|
}, Dl = /* @__PURE__ */ ll(bl, [["__scopeId", "data-v-5c6dcdcf"]]);
|