vue-data-ui 3.3.3 → 3.4.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/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-DyDViSOy.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-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-DbpiTjGu.js → vue-ui-3d-bar-H_4pqH3h.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-BGzYbrts.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-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CCTtArFX.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-CbvxJ8hy.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-Cp9nyIdv.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-kHzd0UYO.js → vue-ui-circle-pack-BRSqhjxm.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-BpeLteeH.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-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-C6cGI_P3.js → vue-ui-donut-evolution-k3xCwZYv.js} +82 -82
- package/dist/{vue-ui-dumbbell-ZjJst3xs.js → vue-ui-dumbbell-DMPndU1O.js} +66 -66
- package/dist/{vue-ui-flow-sX1PYIkr.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel--VViM9gH.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-Du0V9GF8.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-BAe4p2g-.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-CfjwAt38.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-Q0jrPM5h.js → vue-ui-heatmap-BBdrkhmg.js} +104 -104
- package/dist/{vue-ui-history-plot-CLSN3mPy.js → vue-ui-history-plot-DL5ioFH4.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-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-CK8UF-ka.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-DO0FV0tU.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-DXLqoj-4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-BlffHAHB.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +64 -64
- package/dist/{vue-ui-quadrant-pw2ALj7p.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-9oGbV593.js → vue-ui-quick-chart-C4Uc3DRH.js} +86 -86
- package/dist/{vue-ui-radar-Csznqw19.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- 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-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-B-q7J-C0.js → vue-ui-ridgeline-B1T10gWF.js} +97 -97
- package/dist/{vue-ui-rings-PRAcmP1H.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-BLW4MJtJ.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-D0PF0jxa.js → vue-ui-skeleton-C-IKc-3B.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-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-DWQN4gvR.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-fDhQGQ12.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-f7Acvipt.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-Ys3JW7Ap.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Dv0HeSna.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-DN13ntF-.js → vue-ui-strip-plot-CA4GL9dj.js} +52 -52
- package/dist/{vue-ui-table-Qb5tDX1n.js → vue-ui-table-BAbQsJGk.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-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D7U2C7kJ.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-KtA4M2mV.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-C6GTGszq.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-rhnl1TW9.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-n_Lvbd_X.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-D-4whGLN.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-D92HLjfr.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-Df9AMw6v.js → vue-ui-word-cloud-Dlp9LghX.js} +47 -47
- package/dist/{vue-ui-world-Bg9S35ug.js → vue-ui-world-BS8BCZJ3.js} +6 -6
- package/dist/vue-ui-xy-D3LqMzve.js +3375 -0
- package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-DTWbbdGH.js +0 -1073
- 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,18 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as wt, onMounted as Ct, watch as Le, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as W, normalizeClass as
|
|
2
|
-
import { c as Ee, t as St, o as _t, f as Me, g as Ot, b as Pt, p as
|
|
1
|
+
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as wt, onMounted as Ct, watch as Le, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as W, normalizeClass as G, createBlock as T, createCommentVNode as v, createElementVNode as k, createVNode as ae, createSlots as Fe, withCtx as d, renderSlot as g, normalizeProps as I, guardReactiveProps as D, Fragment as Ae, renderList as Ne, Teleport as $t, toDisplayString as oe, resolveDynamicComponent as xt, mergeProps as Tt, createTextVNode as Be, nextTick as Ve } from "vue";
|
|
2
|
+
import { c as Ee, t as St, o as _t, f as Me, g as Ot, b as Pt, p as z, e as It, a1 as Re, h as Dt, a5 as Lt, a as We, d as S, X as Ft, G as Ge, P as At, Q as Nt, H as Bt } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as Vt, u as Et } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Mt, a as
|
|
4
|
+
import { u as Mt, a as ze } from "./useNestedProp-B7CiTRDS.js";
|
|
5
5
|
import { u as Rt, B as Wt } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
6
|
+
import { u as Gt } from "./usePrinter-C1GiglOH.js";
|
|
7
|
+
import { u as zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as Ht } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Ut from "./img-CFY3JivG.js";
|
|
10
10
|
import { t as Xt } from "./themes-Dw-dDudK.js";
|
|
11
|
-
import Yt from "./Title-
|
|
12
|
-
import jt from "./Legend-
|
|
11
|
+
import Yt from "./Title-CFmv95In.js";
|
|
12
|
+
import jt from "./Legend-C8u37J42.js";
|
|
13
13
|
import { u as qt } from "./useSvgExport-DrjCWun4.js";
|
|
14
|
-
import { _ as
|
|
15
|
-
const
|
|
14
|
+
import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Jt = ["id"], Kt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "height"], tl = ["id"], ll = ["stdDeviation"], al = ["d", "stroke", "stroke-width"], ol = ["d", "stroke", "stroke-width"], sl = ["filter"], nl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], rl = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
18
|
}, il = ["id"], cl = ["onClick"], vl = ["innerHTML"], dl = {
|
|
@@ -32,11 +32,11 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
|
-
setup(
|
|
36
|
-
const Ye = x(() => import("./Tooltip-
|
|
35
|
+
setup(He, { expose: Ue, emit: Xe }) {
|
|
36
|
+
const Ye = x(() => import("./Tooltip-Cs4v8OnI.js")), je = x(() => import("./BaseIcon-B5KaGWWC.js")), qe = x(() => import("./vue-ui-accordion-BKkTS12x.js")), Qe = x(() => import("./DataTable-DOx3zgih.js")), Je = x(() => import("./PenAndPaper-Dj2diYr0.js")), Ke = x(() => import("./UserOptions-C0YT60JN.js")), Ze = x(() => import("./PackageVersion-DyDViSOy.js")), et = x(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_galaxy: tt } = Mt(), w = He, f = o(Ee()), b = o(null), H = o(!1), U = o(""), _ = o(null), se = o(0), ne = o(0), ue = o(0), re = o(0), ie = o(null), ce = o(null), ve = o(null), de = o(null), L = o(null), B = o(null), he = o(!1), F = o(null), X = o(null), ge = i(() => !!w.dataset && w.dataset.length), e = o(Q()), { loading: Y, FINAL_DATASET: pe } = Rt({
|
|
37
37
|
...wt(w),
|
|
38
38
|
FINAL_CONFIG: e,
|
|
39
|
-
prepareConfig:
|
|
39
|
+
prepareConfig: Q,
|
|
40
40
|
callback: () => {
|
|
41
41
|
Promise.resolve().then(async () => {
|
|
42
42
|
await Ve(), p.value.showTable = e.value.table.show;
|
|
@@ -102,24 +102,24 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
102
102
|
L.value && (B.value && L.value.unobserve(B.value), L.value.disconnect()), L.value = new ResizeObserver(t), B.value = b.value.parentNode, L.value.observe(B.value);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
const { userOptionsVisible: j, setUserOptionsVisibility: be, keepUserOptionState: me } =
|
|
106
|
-
function
|
|
107
|
-
const t =
|
|
105
|
+
const { userOptionsVisible: j, setUserOptionsVisibility: be, keepUserOptionState: me } = zt({ config: e.value }), { svgRef: q } = Ht({ config: e.value.style.chart.title });
|
|
106
|
+
function Q() {
|
|
107
|
+
const t = ze({
|
|
108
108
|
userConfig: w.config,
|
|
109
109
|
defaultConfig: tt
|
|
110
110
|
});
|
|
111
111
|
return t.theme ? {
|
|
112
|
-
...
|
|
112
|
+
...ze({
|
|
113
113
|
userConfig: Xt.vue_ui_galaxy[t.theme] || w.config,
|
|
114
114
|
defaultConfig: t
|
|
115
115
|
}),
|
|
116
|
-
customPalette: Pt[t.theme] ||
|
|
116
|
+
customPalette: Pt[t.theme] || z
|
|
117
117
|
} : t;
|
|
118
118
|
}
|
|
119
119
|
Le(() => w.config, (t) => {
|
|
120
|
-
e.value =
|
|
120
|
+
e.value = Q(), j.value = !e.value.userOptions.showOnChartHover, fe(), ne.value += 1, ue.value += 1, re.value += 1, p.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
121
121
|
}, { deep: !0 });
|
|
122
|
-
const { isPrinting: ke, isImaging: we, generatePdf: Ce, generateImage: $e } =
|
|
122
|
+
const { isPrinting: ke, isImaging: we, generatePdf: Ce, generateImage: $e } = Gt({
|
|
123
123
|
elementId: `galaxy_${f.value}`,
|
|
124
124
|
fileName: e.value.style.chart.title.text || "vue-ui-galaxy",
|
|
125
125
|
options: e.value.userOptions.print
|
|
@@ -134,8 +134,8 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
134
134
|
height: E.value,
|
|
135
135
|
viewBox: `${ot.value} ${st.value} ${V.value} ${E.value}`
|
|
136
136
|
})), xe = Xe, y = o([]);
|
|
137
|
-
function
|
|
138
|
-
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), xe("selectLegend",
|
|
137
|
+
function J(t) {
|
|
138
|
+
y.value.includes(t.id) ? y.value = y.value.filter((a) => a !== t.id) : y.value.push(t.id), xe("selectLegend", A.value.map((a) => ({
|
|
139
139
|
name: a.name,
|
|
140
140
|
color: a.color,
|
|
141
141
|
value: a.value
|
|
@@ -143,7 +143,7 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
143
143
|
}
|
|
144
144
|
const O = i(() => pe.value.map((t, a) => ({
|
|
145
145
|
name: t.name,
|
|
146
|
-
color: Dt(t.color) || at.value[a] ||
|
|
146
|
+
color: Dt(t.color) || at.value[a] || z[a] || z[a % z.length],
|
|
147
147
|
value: t.values ? Re(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
148
148
|
absoluteValues: Re(t.values),
|
|
149
149
|
id: Ee()
|
|
@@ -170,7 +170,7 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
170
170
|
boxWidth: C.value.width,
|
|
171
171
|
boxHeight: C.value.height,
|
|
172
172
|
padding: ut.value
|
|
173
|
-
})),
|
|
173
|
+
})), A = i(() => {
|
|
174
174
|
const t = [];
|
|
175
175
|
for (let a = 0; a < Se.value.length; a += 1) {
|
|
176
176
|
const l = Se.value[a], s = l.value / m.value * Te.value + (a > 0 && t.length ? t[a - 1].points : 0);
|
|
@@ -184,7 +184,7 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
184
184
|
}
|
|
185
185
|
return t.filter((a) => !y.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
186
186
|
});
|
|
187
|
-
function
|
|
187
|
+
function K(t) {
|
|
188
188
|
const a = Math.min(V.value, E.value), l = _.value === t.id && e.value.style.chart.layout.arcs.hoverEffect.show ? e.value.style.chart.layout.arcs.hoverEffect.multiplicator : 1, s = (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) * l, r = e.value.style.chart.layout.arcs.strokeWidth * l, h = e.value.style.chart.layout.arcs.strokeWidth / 2 * l;
|
|
189
189
|
return {
|
|
190
190
|
border: s / 180 * a,
|
|
@@ -198,7 +198,7 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
198
198
|
}
|
|
199
199
|
const Z = o(null);
|
|
200
200
|
function it(t) {
|
|
201
|
-
|
|
201
|
+
H.value = !1, _.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
202
202
|
}
|
|
203
203
|
function ct(t) {
|
|
204
204
|
xe("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: t.absoluteIndex });
|
|
@@ -209,15 +209,15 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
209
209
|
seriesIndex: l,
|
|
210
210
|
series: O.value,
|
|
211
211
|
config: e.value
|
|
212
|
-
},
|
|
212
|
+
}, H.value = s, _.value = t.id;
|
|
213
213
|
let r = "";
|
|
214
214
|
const h = e.value.style.chart.tooltip.customFormat;
|
|
215
|
-
|
|
215
|
+
Ge(h) && Bt(() => h({
|
|
216
216
|
seriesIndex: l,
|
|
217
217
|
datapoint: t,
|
|
218
218
|
series: O.value,
|
|
219
219
|
config: e.value
|
|
220
|
-
})) ?
|
|
220
|
+
})) ? U.value = h({
|
|
221
221
|
seriesIndex: l,
|
|
222
222
|
datapoint: t,
|
|
223
223
|
series: O.value,
|
|
@@ -240,14 +240,14 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
240
240
|
v: t.proportion * 100,
|
|
241
241
|
s: "%",
|
|
242
242
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
243
|
-
})}</b></div>`),
|
|
243
|
+
})}</b></div>`), U.value = `<div>${r}</div>`);
|
|
244
244
|
}
|
|
245
245
|
const ee = i(() => O.value.map((t, a) => ({
|
|
246
246
|
...t,
|
|
247
247
|
proportion: (t.value || 0) / pe.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
248
248
|
opacity: y.value.includes(t.id) ? 0.5 : 1,
|
|
249
249
|
shape: t.shape || "circle",
|
|
250
|
-
segregate: () =>
|
|
250
|
+
segregate: () => J(t),
|
|
251
251
|
isSegregated: y.value.includes(t.id),
|
|
252
252
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? We(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, S({
|
|
253
253
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
@@ -263,17 +263,17 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
263
263
|
paddingBottom: 12,
|
|
264
264
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
265
265
|
})), $ = i(() => {
|
|
266
|
-
const t =
|
|
266
|
+
const t = A.value.map((l) => ({
|
|
267
267
|
name: l.name,
|
|
268
268
|
color: l.color
|
|
269
|
-
})), a =
|
|
269
|
+
})), a = A.value.map((l) => l.value);
|
|
270
270
|
return { head: t, body: a };
|
|
271
271
|
});
|
|
272
272
|
function te(t = null) {
|
|
273
273
|
Ve(() => {
|
|
274
274
|
const a = $.value.head.map((r, h) => [[
|
|
275
275
|
r.name
|
|
276
|
-
], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s =
|
|
276
|
+
], [$.value.body[h]], [isNaN($.value.body[h] / m.value) ? "-" : $.value.body[h] / m.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), s = At(l);
|
|
277
277
|
t ? t(s) : Nt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
278
278
|
});
|
|
279
279
|
}
|
|
@@ -332,7 +332,7 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
332
332
|
}
|
|
333
333
|
async function ht({ scale: t = 2 } = {}) {
|
|
334
334
|
if (!b.value) return;
|
|
335
|
-
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await
|
|
335
|
+
const { width: a, height: l } = b.value.getBoundingClientRect(), s = a / l, { imageUri: r, base64: h } = await Ut({ domElement: b.value, base64: !0, img: !0, scale: t });
|
|
336
336
|
return {
|
|
337
337
|
imageUri: r,
|
|
338
338
|
base64: h,
|
|
@@ -373,7 +373,7 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
373
373
|
};
|
|
374
374
|
});
|
|
375
375
|
Le(() => p.value.showTable, (t) => {
|
|
376
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
376
|
+
e.value.table.show || (t && e.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
377
377
|
});
|
|
378
378
|
function Ie() {
|
|
379
379
|
p.value.showTable = !1, X.value && X.value.setTableIconState(!1);
|
|
@@ -395,7 +395,7 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
395
395
|
} else
|
|
396
396
|
bt();
|
|
397
397
|
}
|
|
398
|
-
return
|
|
398
|
+
return Ue({
|
|
399
399
|
getData: nt,
|
|
400
400
|
getImage: ht,
|
|
401
401
|
generatePdf: Ce,
|
|
@@ -409,13 +409,13 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
409
409
|
}), (t, a) => (n(), c("div", {
|
|
410
410
|
ref_key: "galaxyChart",
|
|
411
411
|
ref: b,
|
|
412
|
-
class:
|
|
412
|
+
class: G(`vue-data-ui-component vue-ui-galaxy ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(Y) ? "loading" : ""}`),
|
|
413
413
|
style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor}`),
|
|
414
414
|
id: `galaxy_${f.value}`,
|
|
415
415
|
onMouseenter: a[2] || (a[2] = () => u(be)(!0)),
|
|
416
416
|
onMouseleave: a[3] || (a[3] = () => u(be)(!1))
|
|
417
417
|
}, [
|
|
418
|
-
e.value.userOptions.buttons.annotator ? (n(), T(u(
|
|
418
|
+
e.value.userOptions.buttons.annotator ? (n(), T(u(Je), {
|
|
419
419
|
key: 0,
|
|
420
420
|
svgRef: u(q),
|
|
421
421
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -452,8 +452,8 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
452
452
|
], 512)) : v("", !0),
|
|
453
453
|
k("div", {
|
|
454
454
|
id: `legend-top-${f.value}`
|
|
455
|
-
}, null, 8,
|
|
456
|
-
e.value.userOptions.show && ge.value && (u(me) || u(j)) ? (n(), T(u(
|
|
455
|
+
}, null, 8, Kt),
|
|
456
|
+
e.value.userOptions.show && ge.value && (u(me) || u(j)) ? (n(), T(u(Ke), {
|
|
457
457
|
ref_key: "userOptionsRef",
|
|
458
458
|
ref: X,
|
|
459
459
|
key: `user_option_${se.value}`,
|
|
@@ -490,7 +490,7 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
490
490
|
style: W({
|
|
491
491
|
visibility: u(me) ? u(j) ? "visible" : "hidden" : "visible"
|
|
492
492
|
})
|
|
493
|
-
},
|
|
493
|
+
}, Fe({ _: 2 }, [
|
|
494
494
|
t.$slots.menuIcon ? {
|
|
495
495
|
name: "menuIcon",
|
|
496
496
|
fn: d(({ isOpen: l, color: s }) => [
|
|
@@ -551,8 +551,8 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
551
551
|
(n(), c("svg", {
|
|
552
552
|
ref_key: "svgRef",
|
|
553
553
|
ref: q,
|
|
554
|
-
xmlns: u(
|
|
555
|
-
class:
|
|
554
|
+
xmlns: u(Ft),
|
|
555
|
+
class: G({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
|
|
556
556
|
viewBox: C.value.viewBox,
|
|
557
557
|
style: W(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
558
558
|
}, [
|
|
@@ -583,13 +583,13 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
583
583
|
}, null, 8, ll)
|
|
584
584
|
], 8, tl)
|
|
585
585
|
]),
|
|
586
|
-
(n(!0), c(
|
|
586
|
+
(n(!0), c(Ae, null, Ne(A.value, (l) => (n(), c("g", null, [
|
|
587
587
|
l.value ? (n(), c("path", {
|
|
588
588
|
key: 0,
|
|
589
589
|
d: l.path,
|
|
590
590
|
fill: "none",
|
|
591
591
|
stroke: e.value.style.chart.backgroundColor,
|
|
592
|
-
"stroke-width":
|
|
592
|
+
"stroke-width": K(l).border,
|
|
593
593
|
"stroke-linecap": "round"
|
|
594
594
|
}, null, 8, al)) : v("", !0),
|
|
595
595
|
l.value ? (n(), c("path", {
|
|
@@ -597,9 +597,9 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
597
597
|
d: l.path,
|
|
598
598
|
fill: "none",
|
|
599
599
|
stroke: l.color,
|
|
600
|
-
"stroke-width":
|
|
600
|
+
"stroke-width": K(l).path,
|
|
601
601
|
"stroke-linecap": "round",
|
|
602
|
-
class:
|
|
602
|
+
class: G(`${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
603
603
|
}, null, 10, ol)) : v("", !0),
|
|
604
604
|
l.value && e.value.style.chart.layout.arcs.gradient.show ? (n(), c("g", {
|
|
605
605
|
key: 2,
|
|
@@ -609,13 +609,13 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
609
609
|
d: l.path,
|
|
610
610
|
fill: "none",
|
|
611
611
|
stroke: e.value.style.chart.layout.arcs.gradient.color,
|
|
612
|
-
"stroke-width":
|
|
612
|
+
"stroke-width": K(l).blur,
|
|
613
613
|
"stroke-linecap": "round",
|
|
614
|
-
class:
|
|
614
|
+
class: G(`vue-ui-galaxy-gradient ${_.value && _.value !== l.id && e.value.useBlurOnHover ? "vue-ui-galaxy-blur" : ""}`)
|
|
615
615
|
}, null, 10, nl)
|
|
616
616
|
], 8, sl)) : v("", !0)
|
|
617
617
|
]))), 256)),
|
|
618
|
-
(n(!0), c(
|
|
618
|
+
(n(!0), c(Ae, null, Ne(A.value, (l, s) => (n(), c("g", null, [
|
|
619
619
|
l.value ? (n(), c("path", {
|
|
620
620
|
key: 0,
|
|
621
621
|
d: l.path,
|
|
@@ -652,12 +652,12 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
652
652
|
key: `legend_${re.value}`,
|
|
653
653
|
legendSet: ee.value,
|
|
654
654
|
config: dt.value,
|
|
655
|
-
onClickMarker: a[0] || (a[0] = ({ legend: l }) =>
|
|
655
|
+
onClickMarker: a[0] || (a[0] = ({ legend: l }) => J(l))
|
|
656
656
|
}, {
|
|
657
657
|
item: d(({ legend: l, index: s }) => [
|
|
658
658
|
u(Y) ? v("", !0) : (n(), c("div", {
|
|
659
659
|
key: 0,
|
|
660
|
-
onClick: (r) =>
|
|
660
|
+
onClick: (r) => J(l),
|
|
661
661
|
style: W(`opacity:${y.value.includes(l.id) ? 0.5 : 1}`)
|
|
662
662
|
}, oe(l.display), 13, cl))
|
|
663
663
|
]),
|
|
@@ -675,7 +675,7 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
675
675
|
g(t.$slots, "source", {}, void 0, !0)
|
|
676
676
|
], 512)) : v("", !0),
|
|
677
677
|
ae(u(Ye), {
|
|
678
|
-
show: p.value.showTooltip &&
|
|
678
|
+
show: p.value.showTooltip && H.value,
|
|
679
679
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
680
680
|
color: e.value.style.chart.tooltip.color,
|
|
681
681
|
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
@@ -686,9 +686,9 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
686
686
|
position: e.value.style.chart.tooltip.position,
|
|
687
687
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
688
688
|
parent: b.value,
|
|
689
|
-
content:
|
|
689
|
+
content: U.value,
|
|
690
690
|
isFullscreen: P.value,
|
|
691
|
-
isCustom: u(
|
|
691
|
+
isCustom: u(Ge)(e.value.style.chart.tooltip.customFormat),
|
|
692
692
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
693
693
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
694
694
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
@@ -704,11 +704,11 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
704
704
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
705
705
|
ge.value && e.value.userOptions.buttons.table ? (n(), T(xt(N.value.component), Tt({ key: 7 }, N.value.props, {
|
|
706
706
|
ref_key: "tableUnit",
|
|
707
|
-
ref:
|
|
707
|
+
ref: F,
|
|
708
708
|
onClose: Ie
|
|
709
|
-
}),
|
|
709
|
+
}), Fe({
|
|
710
710
|
content: d(() => [
|
|
711
|
-
(n(), T(u(
|
|
711
|
+
(n(), T(u(Qe), {
|
|
712
712
|
key: `table_${ue.value}`,
|
|
713
713
|
colNames: M.value.colNames,
|
|
714
714
|
head: M.value.head,
|
|
@@ -757,9 +757,9 @@ const Kt = ["id"], Qt = ["id"], Zt = ["xmlns", "viewBox"], el = ["width", "heigh
|
|
|
757
757
|
} : void 0
|
|
758
758
|
]), 1040)) : v("", !0),
|
|
759
759
|
u(Y) ? (n(), T(Wt, { key: 8 })) : v("", !0)
|
|
760
|
-
], 46,
|
|
760
|
+
], 46, Jt));
|
|
761
761
|
}
|
|
762
|
-
}, _l = /* @__PURE__ */
|
|
762
|
+
}, _l = /* @__PURE__ */ Qt(dl, [["__scopeId", "data-v-a560bdf3"]]);
|
|
763
763
|
export {
|
|
764
764
|
_l as default
|
|
765
765
|
};
|