vue-data-ui 3.2.2 → 3.2.3
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-BWqgcDpl.js → Arrow-Bb0bGghy.js} +1 -1
- package/dist/{BaseDraggableDialog-Cg4ZF9cb.js → BaseDraggableDialog-CHhZIht2.js} +2 -2
- package/dist/{BaseIcon-e63bhLIi.js → BaseIcon-Bz-1GQhu.js} +10 -3
- package/dist/ColorPicker-B-WUqMoV.js +238 -0
- package/dist/{DataTable-dv6G7Krn.js → DataTable-BvjacRbw.js} +2 -2
- package/dist/{Legend-CVcdvTLM.js → Legend-BpoFJ8fc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DSmotL8i.js → NonSvgPenAndPaper-l9giyY1Z.js} +3 -3
- package/dist/{PackageVersion-C3Vg-vTM.js → PackageVersion-oBQ8brnx.js} +1 -1
- package/dist/{PenAndPaper-CplrzuG7.js → PenAndPaper-CR8q353D.js} +3 -3
- package/dist/{Shape-D_vfF7sk.js → Shape-C_C_OmqR.js} +1 -1
- package/dist/{Slicer-BO2wNLcR.js → Slicer-BA2GhOmY.js} +63 -63
- package/dist/{SparkTooltip-B82G5-BO.js → SparkTooltip-Dz1PDE_h.js} +1 -1
- package/dist/{Title-DlqxaiIs.js → Title-C__lOIPC.js} +1 -1
- package/dist/{Tooltip-BKqK7z38.js → Tooltip-BOXz8skU.js} +1 -1
- package/dist/{UserOptions-C9IFsUt0.js → UserOptions-DsTgvAok.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 +5 -0
- 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-1edcjS0-.js → dom-to-png-BgvOdfyW.js} +1 -1
- package/dist/{img-A48JwXxj.js → img-DjWwQXVS.js} +1 -1
- package/dist/{lib-CDp2KgIU.js → lib-BEpWEyMm.js} +56 -56
- package/dist/{pdf-BZV8MuXM.js → pdf-YD0ShN36.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +14 -3
- package/dist/{useAutoSizeLabelsInsideViewbox-C2IsrQqi.js → useAutoSizeLabelsInsideViewbox-BVJkib7z.js} +1 -1
- package/dist/{useNestedProp-Cwtenuui.js → useNestedProp-CLD3Gk9S.js} +17 -13
- package/dist/{usePrinter-DU_Pi3Rq.js → usePrinter-w23K-ezx.js} +2 -2
- package/dist/{vue-data-ui-BHJOTOQY.js → vue-data-ui-hSWsJzdK.js} +64 -64
- package/dist/vue-data-ui.js +96 -96
- package/dist/{vue-ui-3d-bar-rxghnZJO.js → vue-ui-3d-bar-B45AYk-O.js} +6 -6
- package/dist/vue-ui-accordion-Cv7OaVUI.js +78 -0
- package/dist/{vue-ui-age-pyramid-gT_SnI-F.js → vue-ui-age-pyramid-CJ66TbYc.js} +6 -6
- package/dist/vue-ui-annotator-DOO0qej9.js +2959 -0
- package/dist/{vue-ui-bullet-DREbhLhy.js → vue-ui-bullet-D_V1l1Jt.js} +15 -15
- package/dist/{vue-ui-candlestick-D4P15Ci1.js → vue-ui-candlestick-DrkWrGT2.js} +33 -33
- package/dist/{vue-ui-carousel-table-C24KX4gd.js → vue-ui-carousel-table-0zk2YkV7.js} +4 -4
- package/dist/{vue-ui-chestnut-BbQknrj0.js → vue-ui-chestnut-CAGkS9Lt.js} +32 -32
- package/dist/{vue-ui-chord-BM4_D9kI.js → vue-ui-chord-CHAaUGaZ.js} +53 -53
- package/dist/{vue-ui-circle-pack-S4Asc9CS.js → vue-ui-circle-pack-CBySiQot.js} +29 -29
- package/dist/{vue-ui-cursor-F9MXsQ1K.js → vue-ui-cursor-Cbt_0B5t.js} +2 -2
- package/dist/{vue-ui-dashboard-D6LHLdFS.js → vue-ui-dashboard-BAOd1hi1.js} +67 -67
- package/dist/{vue-ui-digits-B_8VzLOS.js → vue-ui-digits-ChAz3jSS.js} +2 -2
- package/dist/{vue-ui-donut-B7T8_tP1.js → vue-ui-donut-BgYaWImK.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DOn-7PnK.js → vue-ui-donut-evolution-UWyvIsbE.js} +55 -55
- package/dist/{vue-ui-dumbbell-Ch66pFUG.js → vue-ui-dumbbell-B5IHRXdS.js} +7 -7
- package/dist/{vue-ui-flow-DPcsRLJJ.js → vue-ui-flow-DB4sLZG4.js} +63 -63
- package/dist/{vue-ui-funnel-BdcKoacQ.js → vue-ui-funnel-COZLSfZ8.js} +36 -36
- package/dist/{vue-ui-galaxy-D3c-O1Op.js → vue-ui-galaxy-S8pIdU78.js} +46 -46
- package/dist/{vue-ui-gauge-D1zbKzZQ.js → vue-ui-gauge-BVaE3IZt.js} +59 -59
- package/dist/{vue-ui-gizmo-CcrANrSX.js → vue-ui-gizmo-BmJ01zdG.js} +3 -3
- package/dist/{vue-ui-heatmap-CcvV9Y14.js → vue-ui-heatmap-DiAryN8L.js} +7 -7
- package/dist/{vue-ui-history-plot-a0mLhd0L.js → vue-ui-history-plot-eeYk4C28.js} +44 -44
- package/dist/{vue-ui-kpi-BwUpplcm.js → vue-ui-kpi-D7WXGb3K.js} +3 -3
- package/dist/{vue-ui-mini-loader-DBPZOqZA.js → vue-ui-mini-loader-CKMzFSG5.js} +2 -2
- package/dist/{vue-ui-molecule-xsgartoC.js → vue-ui-molecule-daI3rmbc.js} +5 -5
- package/dist/{vue-ui-mood-radar-kl2d5QsL.js → vue-ui-mood-radar-CawOBU0s.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D9I8_VnP.js → vue-ui-nested-donuts-Ci7qxsh6.js} +70 -70
- package/dist/{vue-ui-onion-BlxsHavW.js → vue-ui-onion-CUkVuewC.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DHH6lrbW.js → vue-ui-parallel-coordinate-plot-D7UkjkUV.js} +35 -35
- package/dist/{vue-ui-quadrant-DyIQZUPC.js → vue-ui-quadrant-B9VZz5d6.js} +8 -8
- package/dist/{vue-ui-quick-chart-Jfr_Ezh9.js → vue-ui-quick-chart-BQgH4Aap.js} +55 -55
- package/dist/{vue-ui-radar-BL_dJV12.js → vue-ui-radar-DvZ8XcZC.js} +54 -54
- package/dist/{vue-ui-rating-LiragGSU.js → vue-ui-rating-C0Ubexdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-BrR2W_6V.js → vue-ui-relation-circle-Bal5QL_Z.js} +25 -25
- package/dist/{vue-ui-ridgeline-CpaOYplC.js → vue-ui-ridgeline-DbRZFJcN.js} +27 -27
- package/dist/{vue-ui-rings-B9TGOwFE.js → vue-ui-rings-BJ_Dmy5i.js} +38 -38
- package/dist/{vue-ui-scatter-Bq4pSRu_.js → vue-ui-scatter-bljL9Bav.js} +49 -49
- package/dist/{vue-ui-skeleton-BlVnOk2o.js → vue-ui-skeleton-DZPi12tE.js} +3 -3
- package/dist/{vue-ui-smiley-DyP9gKYe.js → vue-ui-smiley-DxC8rN5b.js} +2 -2
- package/dist/{vue-ui-spark-trend-Pvdqnqia.js → vue-ui-spark-trend-CqMF642_.js} +22 -22
- package/dist/{vue-ui-sparkbar-DF6eDrxt.js → vue-ui-sparkbar-BcyaivMe.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BR7oFSSF.js → vue-ui-sparkgauge-BkIUpzkZ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CkOGqy2h.js → vue-ui-sparkhistogram-DnPdJk3e.js} +4 -4
- package/dist/{vue-ui-sparkline-DF8bLc-F.js → vue-ui-sparkline-F7h636hU.js} +29 -29
- package/dist/{vue-ui-sparkstackbar-DMkn-0FV.js → vue-ui-sparkstackbar-B-Du5D3w.js} +3 -3
- package/dist/{vue-ui-stackbar-CUXktGA-.js → vue-ui-stackbar-BNOfLkY2.js} +38 -38
- package/dist/{vue-ui-strip-plot-ibdxtil6.js → vue-ui-strip-plot-DNPM01M_.js} +7 -7
- package/dist/{vue-ui-table-BocHahKB.js → vue-ui-table-__ABUm9x.js} +17 -17
- package/dist/{vue-ui-table-heatmap-B03YDYck.js → vue-ui-table-heatmap-D-iueyM0.js} +13 -13
- package/dist/{vue-ui-table-sparkline-8mOvfeTL.js → vue-ui-table-sparkline-B5QdvlV7.js} +4 -4
- package/dist/{vue-ui-thermometer-Dq_nJLiU.js → vue-ui-thermometer-DID_4Y6w.js} +7 -7
- package/dist/{vue-ui-timer-BLveMseW.js → vue-ui-timer-CjJmpXoF.js} +27 -27
- package/dist/{vue-ui-tiremarks-DMG1_YzV.js → vue-ui-tiremarks-wDKOTVny.js} +6 -6
- package/dist/{vue-ui-treemap-io-J9w5R.js → vue-ui-treemap-DFo4w0cb.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DqnTF6h2.js → vue-ui-vertical-bar-BEdckhBh.js} +30 -30
- package/dist/{vue-ui-waffle-X9DHHqlw.js → vue-ui-waffle-D5i1Q6tF.js} +75 -75
- package/dist/{vue-ui-wheel-BLBwVpV8.js → vue-ui-wheel-DJlN8joO.js} +6 -6
- package/dist/{vue-ui-word-cloud-0GXQqY8G.js → vue-ui-word-cloud-B7Y2UrwO.js} +28 -28
- package/dist/{vue-ui-world-5OHPVwxv.js → vue-ui-world-DzF8YW_Q.js} +6 -6
- package/dist/{vue-ui-xy-HW0T1CD8.js → vue-ui-xy-DGln2YgO.js} +9 -9
- package/dist/{vue-ui-xy-canvas-C4FbbXNQ.js → vue-ui-xy-canvas-DF2Ts-g3.js} +10 -10
- package/package.json +1 -1
- package/dist/ColorPicker-BO4ntExI.js +0 -135
- package/dist/vue-ui-accordion-BWnxgda4.js +0 -76
- package/dist/vue-ui-annotator-BkHDHfHG.js +0 -2182
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as x, ref as o, computed as i, toRefs as pt, onMounted as gt, watch as De, createElementBlock as c, openBlock as n, unref as u, normalizeStyle as z, normalizeClass as G, createBlock as T, createCommentVNode as v, createElementVNode as k, createVNode as le, createSlots as Le, withCtx as d, renderSlot as p, normalizeProps as I, guardReactiveProps as D, Fragment as Ae, renderList as Fe, Teleport as ft, toDisplayString as L, resolveDynamicComponent as yt, mergeProps as bt, createTextVNode as Ne, nextTick as Be } from "vue";
|
|
2
|
-
import { c as Ve, t as mt, o as kt, f as Me, g as wt, b as Ct, p as H, e as $t,
|
|
2
|
+
import { c as Ve, t as mt, o as kt, f as Me, g as wt, b as Ct, p as H, e as $t, J as Ee, h as xt, P as Tt, d as _, X as _t, a as Re, z as We, x as St, y as Pt, A as Ot } from "./lib-BEpWEyMm.js";
|
|
3
3
|
import { t as It, u as Dt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Lt, a as ze } from "./useNestedProp-
|
|
4
|
+
import { u as Lt, a as ze } from "./useNestedProp-CLD3Gk9S.js";
|
|
5
5
|
import { u as At, B as Ft } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as Nt } from "./usePrinter-
|
|
6
|
+
import { u as Nt } from "./usePrinter-w23K-ezx.js";
|
|
7
7
|
import { u as Bt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import Mt from "./img-
|
|
10
|
-
import { t as
|
|
11
|
-
import
|
|
12
|
-
import Wt from "./Legend-
|
|
9
|
+
import Mt from "./img-DjWwQXVS.js";
|
|
10
|
+
import { t as Et } from "./themes-D3cUNuKw.js";
|
|
11
|
+
import Rt from "./Title-C__lOIPC.js";
|
|
12
|
+
import Wt from "./Legend-BpoFJ8fc.js";
|
|
13
13
|
import { _ as zt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "height"], Yt = ["id"], jt = ["stdDeviation"], qt = ["d", "stroke", "stroke-width"], Jt = ["d", "stroke", "stroke-width"], Kt = ["filter"], Qt = ["d", "stroke", "stroke-width"], Zt = ["d", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], el = {
|
|
15
15
|
key: 4,
|
|
@@ -32,7 +32,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend", "selectDatapoint"],
|
|
34
34
|
setup(Ge, { expose: He, emit: Ue }) {
|
|
35
|
-
const Xe = x(() => import("./Tooltip-
|
|
35
|
+
const Xe = x(() => import("./Tooltip-BOXz8skU.js")), Ye = x(() => import("./BaseIcon-Bz-1GQhu.js")), je = x(() => import("./vue-ui-accordion-Cv7OaVUI.js")), qe = x(() => import("./DataTable-BvjacRbw.js")), Je = x(() => import("./PenAndPaper-CR8q353D.js")), Ke = x(() => import("./UserOptions-DsTgvAok.js")), Qe = x(() => import("./PackageVersion-oBQ8brnx.js")), Ze = x(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_galaxy: et } = Lt(), w = Ge, y = o(Ve()), b = o(null), U = o(!1), X = o(""), S = o(null), ae = o(0), oe = o(0), se = o(0), ue = o(0), ne = o(null), re = o(null), ie = o(null), ce = o(null), A = o(null), V = o(null), ve = o(!1), F = o(null), Y = o(null), de = i(() => !!w.dataset && w.dataset.length), e = o(J()), { loading: j, FINAL_DATASET: he } = At({
|
|
36
36
|
...pt(w),
|
|
37
37
|
FINAL_CONFIG: e,
|
|
38
38
|
prepareConfig: J,
|
|
@@ -95,7 +95,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
95
95
|
source: ie.value
|
|
96
96
|
});
|
|
97
97
|
requestAnimationFrame(() => {
|
|
98
|
-
M.value = Math.max(0.1, a),
|
|
98
|
+
M.value = Math.max(0.1, a), E.value = Math.max(0.1, l - 12);
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
A.value && (V.value && A.value.unobserve(V.value), A.value.disconnect()), A.value = new ResizeObserver(t), V.value = b.value.parentNode, A.value.observe(V.value);
|
|
@@ -109,7 +109,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
109
109
|
});
|
|
110
110
|
return t.theme ? {
|
|
111
111
|
...ze({
|
|
112
|
-
userConfig:
|
|
112
|
+
userConfig: Et.vue_ui_galaxy[t.theme] || w.config,
|
|
113
113
|
defaultConfig: t
|
|
114
114
|
}),
|
|
115
115
|
customPalette: Ct[t.theme] || H
|
|
@@ -128,10 +128,10 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
128
128
|
},
|
|
129
129
|
showTable: e.value.table.show,
|
|
130
130
|
showTooltip: e.value.style.chart.tooltip.show
|
|
131
|
-
}), M = o(250),
|
|
131
|
+
}), M = o(250), E = o(180), at = o(0), ot = o(0), C = i(() => ({
|
|
132
132
|
width: M.value,
|
|
133
|
-
height:
|
|
134
|
-
viewBox: `${at.value} ${ot.value} ${M.value} ${
|
|
133
|
+
height: E.value,
|
|
134
|
+
viewBox: `${at.value} ${ot.value} ${M.value} ${E.value}`
|
|
135
135
|
})), $e = Ue, f = o([]);
|
|
136
136
|
function K(t) {
|
|
137
137
|
f.value.includes(t.id) ? f.value = f.value.filter((a) => a !== t.id) : f.value.push(t.id), $e("selectLegend", N.value.map((a) => ({
|
|
@@ -140,24 +140,24 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
140
140
|
value: a.value
|
|
141
141
|
})));
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const P = i(() => he.value.map((t, a) => ({
|
|
144
144
|
name: t.name,
|
|
145
145
|
color: xt(t.color) || lt.value[a] || H[a] || H[a % H.length],
|
|
146
|
-
value: t.values ?
|
|
147
|
-
absoluteValues:
|
|
146
|
+
value: t.values ? Ee(t.values).reduce((l, s) => l + s, 0) : 0,
|
|
147
|
+
absoluteValues: Ee(t.values),
|
|
148
148
|
id: Ve()
|
|
149
149
|
})).sort((t, a) => a.value - t.value).map((t, a) => ({
|
|
150
150
|
...t,
|
|
151
151
|
absoluteIndex: a
|
|
152
152
|
})));
|
|
153
153
|
function st() {
|
|
154
|
-
return
|
|
154
|
+
return P.value.map((t) => ({
|
|
155
155
|
name: t.name,
|
|
156
156
|
color: t.color,
|
|
157
157
|
value: t.value
|
|
158
158
|
}));
|
|
159
159
|
}
|
|
160
|
-
const m = i(() =>
|
|
160
|
+
const m = i(() => P.value.filter((t) => !f.value.includes(t.id)).map((t) => t.value).reduce((t, a) => t + a, 0)), xe = o(190), Te = i(() => P.value.filter((t) => !f.value.includes(t.id))), ut = i(
|
|
161
161
|
() => (e.value.style.chart.layout.arcs.strokeWidth + e.value.style.chart.layout.arcs.borderWidth) / 2 + (e.value.style.chart.layout.padding ?? 12)
|
|
162
162
|
), nt = i(() => Tt({
|
|
163
163
|
maxPoints: xe.value,
|
|
@@ -184,16 +184,16 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
184
184
|
return t.filter((a) => !f.value.includes(a.id)).toSorted((a, l) => l.points - a.points);
|
|
185
185
|
});
|
|
186
186
|
function Q(t) {
|
|
187
|
-
const a = Math.min(M.value,
|
|
187
|
+
const a = Math.min(M.value, E.value), l = S.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;
|
|
188
188
|
return {
|
|
189
189
|
border: s / 180 * a,
|
|
190
190
|
path: r / 180 * a,
|
|
191
191
|
blur: h / 180 * a
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const O = o(!1);
|
|
195
195
|
function _e(t) {
|
|
196
|
-
|
|
196
|
+
O.value = t, ae.value += 1;
|
|
197
197
|
}
|
|
198
198
|
const Z = o(null);
|
|
199
199
|
function rt(t) {
|
|
@@ -206,22 +206,22 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
206
206
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: t.absoluteIndex }), Z.value = {
|
|
207
207
|
datapoint: t,
|
|
208
208
|
seriesIndex: l,
|
|
209
|
-
series:
|
|
209
|
+
series: P.value,
|
|
210
210
|
config: e.value
|
|
211
211
|
}, U.value = s, S.value = t.id;
|
|
212
212
|
let r = "";
|
|
213
213
|
const h = e.value.style.chart.tooltip.customFormat;
|
|
214
|
-
We(h) &&
|
|
214
|
+
We(h) && Ot(() => h({
|
|
215
215
|
seriesIndex: l,
|
|
216
216
|
datapoint: t,
|
|
217
|
-
series:
|
|
217
|
+
series: P.value,
|
|
218
218
|
config: e.value
|
|
219
219
|
})) ? X.value = h({
|
|
220
220
|
seriesIndex: l,
|
|
221
221
|
datapoint: t,
|
|
222
|
-
series:
|
|
222
|
+
series: P.value,
|
|
223
223
|
config: e.value
|
|
224
|
-
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${
|
|
224
|
+
}) : (r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${t.color}"/></svg>`, e.value.style.chart.tooltip.showValue && (r += `<b>${Re(
|
|
225
225
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
226
226
|
t.value,
|
|
227
227
|
_({
|
|
@@ -241,7 +241,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
241
241
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
242
242
|
})}</b></div>`), X.value = `<div>${r}</div>`);
|
|
243
243
|
}
|
|
244
|
-
const Se = i(() =>
|
|
244
|
+
const Se = i(() => P.value.map((t, a) => ({
|
|
245
245
|
...t,
|
|
246
246
|
proportion: (t.value || 0) / he.value.map((l) => (l.values || []).reduce((s, r) => s + r, 0)).reduce((l, s) => l + s, 0),
|
|
247
247
|
opacity: f.value.includes(t.id) ? 0.5 : 1,
|
|
@@ -267,10 +267,10 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
267
267
|
const a = $.value.head.map((r, h) => [[
|
|
268
268
|
r.name
|
|
269
269
|
], [$.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 = St(l);
|
|
270
|
-
t ? t(s) :
|
|
270
|
+
t ? t(s) : Pt({ csvContent: s, title: e.value.style.chart.title.text || "vue-ui-galaxy" });
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
const
|
|
273
|
+
const R = i(() => {
|
|
274
274
|
const t = [
|
|
275
275
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
276
276
|
_({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: m.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
@@ -313,10 +313,10 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
313
313
|
config: l
|
|
314
314
|
};
|
|
315
315
|
});
|
|
316
|
-
function
|
|
316
|
+
function Pe() {
|
|
317
317
|
g.value.showTable = !g.value.showTable;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Oe() {
|
|
320
320
|
g.value.showTooltip = !g.value.showTooltip;
|
|
321
321
|
}
|
|
322
322
|
const W = o(!1);
|
|
@@ -345,7 +345,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
345
345
|
color: e.value.table.th.color,
|
|
346
346
|
headerColor: e.value.table.th.color,
|
|
347
347
|
headerBg: e.value.table.th.backgroundColor,
|
|
348
|
-
isFullscreen:
|
|
348
|
+
isFullscreen: O.value,
|
|
349
349
|
fullscreenParent: b.value,
|
|
350
350
|
forcedWidth: Math.min(500, window.innerWidth * 0.8)
|
|
351
351
|
} : {
|
|
@@ -377,14 +377,14 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
377
377
|
generatePdf: we,
|
|
378
378
|
generateCsv: ee,
|
|
379
379
|
generateImage: Ce,
|
|
380
|
-
toggleTable:
|
|
381
|
-
toggleTooltip:
|
|
380
|
+
toggleTable: Pe,
|
|
381
|
+
toggleTooltip: Oe,
|
|
382
382
|
toggleAnnotator: te,
|
|
383
383
|
toggleFullscreen: _e
|
|
384
384
|
}), (t, a) => (n(), c("div", {
|
|
385
385
|
ref_key: "galaxyChart",
|
|
386
386
|
ref: b,
|
|
387
|
-
class: G(`vue-ui-galaxy ${
|
|
387
|
+
class: G(`vue-ui-galaxy ${O.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${u(j) ? "loading" : ""}`),
|
|
388
388
|
style: z(`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}`),
|
|
389
389
|
id: `galaxy_${y.value}`,
|
|
390
390
|
onMouseenter: a[2] || (a[2] = () => u(fe)(!0)),
|
|
@@ -411,7 +411,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
411
411
|
ref: ne,
|
|
412
412
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
413
413
|
}, [
|
|
414
|
-
(n(), T(
|
|
414
|
+
(n(), T(Rt, {
|
|
415
415
|
key: `title_${oe.value}`,
|
|
416
416
|
config: {
|
|
417
417
|
title: {
|
|
@@ -444,7 +444,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
444
444
|
hasTable: e.value.userOptions.buttons.table,
|
|
445
445
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
446
446
|
isTooltip: g.value.showTooltip,
|
|
447
|
-
isFullscreen:
|
|
447
|
+
isFullscreen: O.value,
|
|
448
448
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
449
449
|
chartElement: b.value,
|
|
450
450
|
position: e.value.userOptions.position,
|
|
@@ -457,8 +457,8 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
457
457
|
onGeneratePdf: u(we),
|
|
458
458
|
onGenerateCsv: ee,
|
|
459
459
|
onGenerateImage: u(Ce),
|
|
460
|
-
onToggleTable:
|
|
461
|
-
onToggleTooltip:
|
|
460
|
+
onToggleTable: Pe,
|
|
461
|
+
onToggleTooltip: Oe,
|
|
462
462
|
onToggleAnnotator: te,
|
|
463
463
|
style: z({
|
|
464
464
|
visibility: u(ye) ? u(q) ? "visible" : "hidden" : "visible"
|
|
@@ -525,7 +525,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
525
525
|
ref_key: "svgRef",
|
|
526
526
|
ref: be,
|
|
527
527
|
xmlns: u(_t),
|
|
528
|
-
class: G({ "vue-data-ui-fullscreen--on":
|
|
528
|
+
class: G({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
529
529
|
viewBox: C.value.viewBox,
|
|
530
530
|
style: z(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
531
531
|
}, [
|
|
@@ -632,7 +632,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
632
632
|
key: 0,
|
|
633
633
|
onClick: (r) => K(l),
|
|
634
634
|
style: z(`opacity:${f.value.includes(l.id) ? 0.5 : 1}`)
|
|
635
|
-
}, L(l.name) + L(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + L(e.value.style.chart.legend.showValue ? u(
|
|
635
|
+
}, L(l.name) + L(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + L(e.value.style.chart.legend.showValue ? u(Re)(
|
|
636
636
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
637
637
|
l.value,
|
|
638
638
|
u(_)({
|
|
@@ -674,7 +674,7 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
674
674
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
675
675
|
parent: b.value,
|
|
676
676
|
content: X.value,
|
|
677
|
-
isFullscreen:
|
|
677
|
+
isFullscreen: O.value,
|
|
678
678
|
isCustom: u(We)(e.value.style.chart.tooltip.customFormat),
|
|
679
679
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
680
680
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
@@ -697,10 +697,10 @@ const Gt = ["id"], Ht = ["id"], Ut = ["xmlns", "viewBox"], Xt = ["width", "heigh
|
|
|
697
697
|
content: d(() => [
|
|
698
698
|
(n(), T(u(qe), {
|
|
699
699
|
key: `table_${se.value}`,
|
|
700
|
-
colNames:
|
|
701
|
-
head:
|
|
702
|
-
body:
|
|
703
|
-
config:
|
|
700
|
+
colNames: R.value.colNames,
|
|
701
|
+
head: R.value.head,
|
|
702
|
+
body: R.value.body,
|
|
703
|
+
config: R.value.config,
|
|
704
704
|
title: e.value.table.useDialog ? "" : B.value.title,
|
|
705
705
|
withCloseButton: !e.value.table.useDialog,
|
|
706
706
|
onClose: Ie
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as lt, t as st, b as rt, p as Fe, e as ot, o as Ae, h as ut, f as
|
|
1
|
+
import { defineAsyncComponent as J, computed as h, ref as f, toRefs as Ze, watch as K, shallowRef as $e, onMounted as Je, onBeforeUnmount as Ke, createElementBlock as o, openBlock as r, unref as n, normalizeStyle as ee, normalizeClass as ze, createBlock as j, createCommentVNode as c, createElementVNode as p, withCtx as X, toDisplayString as R, createSlots as et, renderSlot as x, normalizeProps as B, guardReactiveProps as D, createVNode as tt, Fragment as k, renderList as $, mergeProps as L, nextTick as at } from "vue";
|
|
2
|
+
import { c as lt, t as st, b as rt, p as Fe, e as ot, o as Ae, h as ut, f as U, g as Ce, n as te, G as A, Q as nt, q as it, X as ct, s as ae, L as vt, w as ht, a as le, d as se, D as re } from "./lib-BEpWEyMm.js";
|
|
3
3
|
import { t as dt, u as ft } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as yt, a as Oe } from "./useNestedProp-
|
|
5
|
-
import { u as mt } from "./usePrinter-
|
|
4
|
+
import { u as yt, a as Oe } from "./useNestedProp-CLD3Gk9S.js";
|
|
5
|
+
import { u as mt } from "./usePrinter-w23K-ezx.js";
|
|
6
6
|
import { u as gt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as pt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { t as kt } from "./themes-D3cUNuKw.js";
|
|
9
|
-
import bt from "./Title-
|
|
10
|
-
import _t from "./img-
|
|
9
|
+
import bt from "./Title-C__lOIPC.js";
|
|
10
|
+
import _t from "./img-DjWwQXVS.js";
|
|
11
11
|
import { u as wt, B as St } from "./BaseScanner-BgWxam9d.js";
|
|
12
|
-
import { u as xt } from "./useAutoSizeLabelsInsideViewbox-
|
|
12
|
+
import { u as xt } from "./useAutoSizeLabelsInsideViewbox-BVJkib7z.js";
|
|
13
13
|
import { _ as $t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "height"], Ot = ["id"],
|
|
14
|
+
const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "height"], Ot = ["id"], Mt = ["stop-color"], Nt = ["stop-color"], Pt = ["stop-color"], It = ["id"], Xt = ["stdDeviation"], Rt = { key: 1 }, Yt = ["d", "fill", "stroke"], Lt = ["d", "fill", "stroke"], Et = ["d", "fill"], Tt = ["id", "d"], Gt = ["fill", "font-size", "font-weight"], jt = ["href", "startOffset"], Bt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Dt = ["d", "filter"], Ut = ["stroke", "stroke-width"], Wt = ["stroke", "stroke-width"], Vt = ["stroke", "stroke-width"], Ht = ["stroke", "stroke-width"], qt = { key: 8 }, Qt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Zt = ["x", "y", "font-size", "font-weight", "fill"], Jt = { key: 0 }, Kt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ea = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ta = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], aa = { key: 1 }, la = ["d", "fill", "stroke", "stroke-width"], sa = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], ra = ["x", "y", "font-size", "fill"], oa = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
17
|
}, ua = {
|
|
@@ -30,9 +30,9 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const Pe =
|
|
35
|
-
...
|
|
33
|
+
setup(Me, { expose: Ne }) {
|
|
34
|
+
const Pe = J(() => import("./PenAndPaper-CR8q353D.js")), Ie = J(() => import("./UserOptions-DsTgvAok.js")), Xe = J(() => import("./PackageVersion-oBQ8brnx.js")), { vue_ui_gauge: Re } = yt(), m = Me, Ye = h(() => !!m.dataset && Object.keys(m.dataset).length > 0 && m.dataset.series && m.dataset.series.length), w = f(lt()), Le = f(null), oe = f(0), C = f(null), ue = f(null), ne = f(null), ie = f(null), ce = f(null), ve = f(0), e = f(H()), { loading: he, FINAL_DATASET: S, manualLoading: N } = wt({
|
|
35
|
+
...Ze(m),
|
|
36
36
|
FINAL_CONFIG: e,
|
|
37
37
|
prepareConfig: H,
|
|
38
38
|
callback: () => {
|
|
@@ -76,11 +76,11 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
})
|
|
79
|
-
}), { userOptionsVisible:
|
|
80
|
-
|
|
81
|
-
he.value || (e.value = H()),
|
|
82
|
-
}, { deep: !0 }),
|
|
83
|
-
|
|
79
|
+
}), { userOptionsVisible: W, setUserOptionsVisibility: de, keepUserOptionState: fe } = gt({ config: e.value }), { svgRef: V } = pt({ config: e.value.style.chart.title });
|
|
80
|
+
K(() => m.config, (t) => {
|
|
81
|
+
he.value || (e.value = H()), W.value = !e.value.userOptions.showOnChartHover, Q(), ve.value += 1;
|
|
82
|
+
}, { deep: !0 }), K(() => m.dataset, (t) => {
|
|
83
|
+
Q(), t && Object.keys(t).length > 0 && (N.value = e.value?.loading ?? !1);
|
|
84
84
|
}, { deep: !0, immediate: !1 });
|
|
85
85
|
function H() {
|
|
86
86
|
const t = Oe({
|
|
@@ -141,7 +141,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
141
141
|
}), P = f(0), z = f(0), y = f(
|
|
142
142
|
e.value.style.chart.animation.use ? Math.min(...S.value.series.map((t) => t.from)) : S.value.value
|
|
143
143
|
);
|
|
144
|
-
|
|
144
|
+
K(() => S.value.value, () => {
|
|
145
145
|
_e(S.value.value);
|
|
146
146
|
});
|
|
147
147
|
const i = h(() => {
|
|
@@ -153,8 +153,8 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
153
153
|
y2: u + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
154
154
|
};
|
|
155
155
|
}), ke = h(() => {
|
|
156
|
-
const t = l.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (P.value - z.value)) + Math.PI, s = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), g = u + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), _ = l.value.pointerRadius, Ve = t + _ * Math.cos(a + Math.PI / 2), He = u + _ * Math.sin(a + Math.PI / 2), qe = t + _ * Math.cos(a - Math.PI / 2),
|
|
157
|
-
return isNaN(s) ? null : `M ${s},${g} ${Ve},${He} ${qe},${
|
|
156
|
+
const t = l.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - z.value) / (P.value - z.value)) + Math.PI, s = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), g = u + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), _ = l.value.pointerRadius, Ve = t + _ * Math.cos(a + Math.PI / 2), He = u + _ * Math.sin(a + Math.PI / 2), qe = t + _ * Math.cos(a - Math.PI / 2), Qe = u + _ * Math.sin(a - Math.PI / 2);
|
|
157
|
+
return isNaN(s) ? null : `M ${s},${g} ${Ve},${He} ${qe},${Qe} Z`;
|
|
158
158
|
}), q = h(() => {
|
|
159
159
|
for (let t = 0; t < O.value.series.length; t += 1) {
|
|
160
160
|
const { color: u, from: a, to: s } = O.value.series[t];
|
|
@@ -172,41 +172,41 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
172
172
|
sizeRef: E,
|
|
173
173
|
labelClass: ".vue-ui-gauge-label-flat"
|
|
174
174
|
}), T = h(() => !!e.value.debug);
|
|
175
|
-
function
|
|
175
|
+
function Q() {
|
|
176
176
|
let t = !1;
|
|
177
|
-
if (Ae(m.dataset) ? (
|
|
177
|
+
if (Ae(m.dataset) ? (U({
|
|
178
178
|
componentName: "VueUiGauge",
|
|
179
179
|
type: "dataset",
|
|
180
180
|
debug: T.value
|
|
181
|
-
}),
|
|
181
|
+
}), N.value = !0, t = !0) : (Ce({
|
|
182
182
|
datasetObject: m.dataset,
|
|
183
183
|
requiredAttributes: ["value", "series"]
|
|
184
184
|
}).forEach((u) => {
|
|
185
|
-
|
|
185
|
+
U({
|
|
186
186
|
componentName: "VueUiGauge",
|
|
187
187
|
type: "datasetAttribute",
|
|
188
188
|
property: u,
|
|
189
189
|
debug: T.value
|
|
190
|
-
}),
|
|
190
|
+
}), N.value = !0, t = !0;
|
|
191
191
|
}), Object.hasOwn(m.dataset, "series") && (m.dataset.series.length ? m.dataset.series.forEach((u, a) => {
|
|
192
192
|
Ce({
|
|
193
193
|
datasetObject: u,
|
|
194
194
|
requiredAttributes: ["from", "to"]
|
|
195
195
|
}).forEach((s) => {
|
|
196
|
-
|
|
196
|
+
U({
|
|
197
197
|
componentName: "VueUiGauge",
|
|
198
198
|
type: "datasetSerieAttribute",
|
|
199
199
|
property: s,
|
|
200
200
|
index: a,
|
|
201
201
|
debug: T.value
|
|
202
|
-
}),
|
|
202
|
+
}), N.value = !0, t = !0;
|
|
203
203
|
});
|
|
204
|
-
}) : (
|
|
204
|
+
}) : (U({
|
|
205
205
|
componentName: "VueUiGauge",
|
|
206
206
|
type: "datasetAttributeEmpty",
|
|
207
207
|
property: "series",
|
|
208
208
|
debug: T.value
|
|
209
|
-
}),
|
|
209
|
+
}), N.value = !0, t = !0))), N.value = t, _e(S.value.value || 0), e.value.responsive) {
|
|
210
210
|
const u = dt(() => {
|
|
211
211
|
let { width: a, height: s } = ft({
|
|
212
212
|
chart: C.value,
|
|
@@ -241,9 +241,9 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
241
241
|
}
|
|
242
242
|
be();
|
|
243
243
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}),
|
|
244
|
+
Je(() => {
|
|
245
|
+
Q();
|
|
246
|
+
}), Ke(() => {
|
|
247
247
|
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect());
|
|
248
248
|
});
|
|
249
249
|
function _e(t) {
|
|
@@ -291,7 +291,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
291
291
|
180,
|
|
292
292
|
109.9495,
|
|
293
293
|
40 * l.value.trackSize
|
|
294
|
-
)),
|
|
294
|
+
)), M = h(() => d.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), we = h(() => {
|
|
295
295
|
const { x: t, y: u } = A({
|
|
296
296
|
initX: d.value[0].firstSeparator.x,
|
|
297
297
|
initY: d.value[0].firstSeparator.y,
|
|
@@ -329,7 +329,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
329
329
|
let s = 0;
|
|
330
330
|
return t.map((g) => (s += g, `${s / 100 * a - g / 4}%`));
|
|
331
331
|
}
|
|
332
|
-
const Be = h(() => je(d.value.map((t) => t.proportion * 100))),
|
|
332
|
+
const Be = h(() => je(d.value.map((t) => t.proportion * 100))), De = h(() => te(
|
|
333
333
|
{ series: O.value.series },
|
|
334
334
|
l.value.width / 2,
|
|
335
335
|
v.value.base,
|
|
@@ -341,7 +341,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
341
341
|
180,
|
|
342
342
|
110.02,
|
|
343
343
|
2 * l.value.trackSize
|
|
344
|
-
)),
|
|
344
|
+
)), Ue = h(() => {
|
|
345
345
|
const t = z.value >= 0 ? -z.value : Math.abs(z.value);
|
|
346
346
|
return nt({
|
|
347
347
|
radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
|
|
@@ -354,10 +354,10 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
354
354
|
Y.value = t, oe.value += 1;
|
|
355
355
|
}
|
|
356
356
|
const G = f(!1);
|
|
357
|
-
function
|
|
357
|
+
function Z() {
|
|
358
358
|
G.value = !G.value;
|
|
359
359
|
}
|
|
360
|
-
async function
|
|
360
|
+
async function We({ scale: t = 2 } = {}) {
|
|
361
361
|
if (!C.value) return;
|
|
362
362
|
const { width: u, height: a } = C.value.getBoundingClientRect(), s = u / a, { imageUri: g, base64: _ } = await _t({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
363
363
|
return {
|
|
@@ -369,11 +369,11 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
369
369
|
aspectRatio: s
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
return
|
|
373
|
-
getImage:
|
|
372
|
+
return Ne({
|
|
373
|
+
getImage: We,
|
|
374
374
|
generatePdf: ge,
|
|
375
375
|
generateImage: pe,
|
|
376
|
-
toggleAnnotator:
|
|
376
|
+
toggleAnnotator: Z,
|
|
377
377
|
toggleFullscreen: xe
|
|
378
378
|
}), (t, u) => (r(), o("div", {
|
|
379
379
|
class: ze(`vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
@@ -390,7 +390,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
390
390
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
391
391
|
color: e.value.style.chart.color,
|
|
392
392
|
active: G.value,
|
|
393
|
-
onClose:
|
|
393
|
+
onClose: Z
|
|
394
394
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
395
395
|
Ee.value ? (r(), o("div", {
|
|
396
396
|
key: 1,
|
|
@@ -424,7 +424,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
424
424
|
_: 1
|
|
425
425
|
}, 8, ["config"]))
|
|
426
426
|
], 512)) : c("", !0),
|
|
427
|
-
e.value.userOptions.show && Ye.value && (n(fe) || n(
|
|
427
|
+
e.value.userOptions.show && Ye.value && (n(fe) || n(W)) ? (r(), j(n(Ie), {
|
|
428
428
|
ref_key: "details",
|
|
429
429
|
ref: Le,
|
|
430
430
|
key: `user_options_${oe.value}`,
|
|
@@ -448,15 +448,15 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
448
448
|
onToggleFullscreen: xe,
|
|
449
449
|
onGeneratePdf: n(ge),
|
|
450
450
|
onGenerateImage: n(pe),
|
|
451
|
-
onToggleAnnotator:
|
|
451
|
+
onToggleAnnotator: Z,
|
|
452
452
|
style: ee({
|
|
453
|
-
visibility: n(fe) ? n(
|
|
453
|
+
visibility: n(fe) ? n(W) ? "visible" : "hidden" : "visible"
|
|
454
454
|
})
|
|
455
455
|
}, et({ _: 2 }, [
|
|
456
456
|
t.$slots.menuIcon ? {
|
|
457
457
|
name: "menuIcon",
|
|
458
458
|
fn: X(({ isOpen: a, color: s }) => [
|
|
459
|
-
x(t.$slots, "menuIcon", B(
|
|
459
|
+
x(t.$slots, "menuIcon", B(D({ isOpen: a, color: s })), void 0, !0)
|
|
460
460
|
]),
|
|
461
461
|
key: "0"
|
|
462
462
|
} : void 0,
|
|
@@ -477,14 +477,14 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
477
477
|
t.$slots.optionFullscreen ? {
|
|
478
478
|
name: "optionFullscreen",
|
|
479
479
|
fn: X(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
480
|
-
x(t.$slots, "optionFullscreen", B(
|
|
480
|
+
x(t.$slots, "optionFullscreen", B(D({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
481
481
|
]),
|
|
482
482
|
key: "3"
|
|
483
483
|
} : void 0,
|
|
484
484
|
t.$slots.optionAnnotator ? {
|
|
485
485
|
name: "optionAnnotator",
|
|
486
486
|
fn: X(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
487
|
-
x(t.$slots, "optionAnnotator", B(
|
|
487
|
+
x(t.$slots, "optionAnnotator", B(D({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
488
488
|
]),
|
|
489
489
|
key: "4"
|
|
490
490
|
} : void 0
|
|
@@ -522,11 +522,11 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
522
522
|
p("stop", {
|
|
523
523
|
offset: "0%",
|
|
524
524
|
"stop-color": n(ae)("#FFFFFF", 1)
|
|
525
|
-
}, null, 8,
|
|
525
|
+
}, null, 8, Mt),
|
|
526
526
|
p("stop", {
|
|
527
527
|
offset: "80%",
|
|
528
528
|
"stop-color": n(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
529
|
-
}, null, 8,
|
|
529
|
+
}, null, 8, Nt),
|
|
530
530
|
p("stop", {
|
|
531
531
|
offset: "100%",
|
|
532
532
|
"stop-color": n(ae)("#FFFFFF", 1)
|
|
@@ -568,13 +568,13 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
568
568
|
}, null, 8, Lt))), 128)) : c("", !0),
|
|
569
569
|
e.value.style.chart.layout.indicatorArc.show ? (r(), o("path", {
|
|
570
570
|
key: 3,
|
|
571
|
-
d:
|
|
571
|
+
d: Ue.value,
|
|
572
572
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
573
573
|
}, null, 8, Et)) : c("", !0),
|
|
574
574
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), o(k, { key: 4 }, [
|
|
575
575
|
(r(!0), o(k, null, $(d.value, (a, s) => (r(), o("path", {
|
|
576
576
|
id: `curve_${w.value}_${s}`,
|
|
577
|
-
d: `M ${i.value.x1},${i.value.y1} m -${
|
|
577
|
+
d: `M ${i.value.x1},${i.value.y1} m -${M.value[s]},0 a ${M.value[s]},${M.value[s]} 0 1,1 ${2 * M.value[s]},0 a ${M.value[s]},${M.value[s]} 0 1,1 -${2 * M.value[s]},0`,
|
|
578
578
|
fill: "transparent"
|
|
579
579
|
}, null, 8, Tt))), 256)),
|
|
580
580
|
(r(!0), o(k, null, $(d.value, (a, s) => (r(), o("text", {
|
|
@@ -603,25 +603,25 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
603
603
|
y: a.center.endY
|
|
604
604
|
})
|
|
605
605
|
}, null, 8, Bt))), 256)) : c("", !0),
|
|
606
|
-
e.value.style.chart.layout.track.useGradient ? (r(!0), o(k, { key: 6 }, $(
|
|
606
|
+
e.value.style.chart.layout.track.useGradient ? (r(!0), o(k, { key: 6 }, $(De.value, (a, s) => (r(), o("path", {
|
|
607
607
|
key: `arc_${s}`,
|
|
608
608
|
d: a.arcSlice,
|
|
609
609
|
fill: "#FFFFFF",
|
|
610
610
|
stroke: "none",
|
|
611
611
|
"stroke-linecap": "round",
|
|
612
612
|
filter: `url(#blur_${w.value})`
|
|
613
|
-
}, null, 8,
|
|
613
|
+
}, null, 8, Dt))), 128)) : c("", !0),
|
|
614
614
|
e.value.style.chart.layout.segmentSeparators.show ? (r(), o(k, { key: 7 }, [
|
|
615
615
|
p("line", L(we.value, {
|
|
616
616
|
stroke: e.value.style.chart.backgroundColor,
|
|
617
617
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
618
618
|
"stroke-linecap": "round"
|
|
619
|
-
}), null, 16,
|
|
619
|
+
}), null, 16, Ut),
|
|
620
620
|
p("line", L(we.value, {
|
|
621
621
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
622
622
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
623
623
|
"stroke-linecap": "round"
|
|
624
|
-
}), null, 16,
|
|
624
|
+
}), null, 16, Wt),
|
|
625
625
|
(r(!0), o(k, null, $(Se.value, (a) => (r(), o("line", L({ ref_for: !0 }, a, {
|
|
626
626
|
stroke: e.value.style.chart.backgroundColor,
|
|
627
627
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
@@ -662,7 +662,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
662
662
|
s: e.value.style.chart.layout.markers.suffix,
|
|
663
663
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
664
664
|
})
|
|
665
|
-
)), 9,
|
|
665
|
+
)), 9, Qt))), 256))
|
|
666
666
|
])) : c("", !0),
|
|
667
667
|
e.value.style.chart.layout.markers.show ? (r(), o("text", {
|
|
668
668
|
key: 9,
|
|
@@ -693,9 +693,9 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
693
693
|
s: e.value.style.chart.layout.markers.suffix,
|
|
694
694
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
695
695
|
})
|
|
696
|
-
)), 9,
|
|
696
|
+
)), 9, Zt)) : c("", !0),
|
|
697
697
|
e.value.style.chart.layout.pointer.show ? (r(), o(k, { key: 10 }, [
|
|
698
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), o("g",
|
|
698
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), o("g", Jt, [
|
|
699
699
|
isNaN(i.value.x2) ? c("", !0) : (r(), o("line", {
|
|
700
700
|
key: 0,
|
|
701
701
|
x1: i.value.x1,
|
|
@@ -705,7 +705,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
705
705
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
706
706
|
"stroke-width": l.value.pointerStrokeWidth,
|
|
707
707
|
"stroke-linecap": "round"
|
|
708
|
-
}, null, 8,
|
|
708
|
+
}, null, 8, Kt)),
|
|
709
709
|
isNaN(i.value.x2) ? c("", !0) : (r(), o("line", {
|
|
710
710
|
key: 1,
|
|
711
711
|
x1: i.value.x1,
|
|
@@ -767,7 +767,7 @@ const zt = ["id"], Ft = { key: 0 }, At = ["xmlns", "viewBox"], Ct = ["width", "h
|
|
|
767
767
|
x(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
768
768
|
], 14, At)),
|
|
769
769
|
t.$slots.watermark ? (r(), o("div", oa, [
|
|
770
|
-
x(t.$slots, "watermark", B(
|
|
770
|
+
x(t.$slots, "watermark", B(D({ isPrinting: n(ye) || n(me) })), void 0, !0)
|
|
771
771
|
])) : c("", !0),
|
|
772
772
|
p("div", {
|
|
773
773
|
ref_key: "chartLegend",
|