vue-data-ui 3.3.2 → 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-DLi6NnGD.js → Arrow-CRe_nKB4.js} +1 -1
- package/dist/{BaseDraggableDialog-CVGErydD.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
- package/dist/{BaseIcon-eZbszQrv.js → BaseIcon-B5KaGWWC.js} +1 -1
- package/dist/{ColorPicker-BoPM4Ejg.js → ColorPicker-BMztHpBp.js} +10 -10
- package/dist/{DataTable-yAMEyP6y.js → DataTable-DOx3zgih.js} +2 -2
- package/dist/{Legend-By4rru90.js → Legend-C8u37J42.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7QqIewT.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
- package/dist/{PackageVersion-r-Q1R3nV.js → PackageVersion-DyDViSOy.js} +1 -1
- package/dist/{PenAndPaper-Bo-lMUik.js → PenAndPaper-Dj2diYr0.js} +3 -3
- package/dist/{Shape-BceHSLHf.js → Shape-BhNvlGIN.js} +1 -1
- package/dist/{Slicer-Znzt0gSE.js → Slicer-BHgEsIBU.js} +111 -111
- package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
- package/dist/{SparkTooltip--YwqrrgZ.js → SparkTooltip-CL3cNRQ_.js} +1 -1
- package/dist/{Title-Camz1Lce.js → Title-CFmv95In.js} +1 -1
- package/dist/{Tooltip-VOcQEHa4.js → Tooltip-Cs4v8OnI.js} +1 -1
- package/dist/{UserOptions-CSja1SGU.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-DxyZSvDx.js → dom-to-png-xQ7LXrxp.js} +1 -1
- package/dist/{img-J2dLIr8Y.js → img-CFY3JivG.js} +1 -1
- package/dist/{lib-CEjkWSLj.js → lib-BcBZIm6u.js} +439 -395
- package/dist/{pdf-anN8VbM7.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-CovTrBjm.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
- package/dist/{useNestedProp-Ce3PwN8T.js → useNestedProp-B7CiTRDS.js} +327 -240
- package/dist/{usePrinter-DJ1iH-F_.js → usePrinter-C1GiglOH.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{vue-data-ui-BFdGl7rL.js → vue-data-ui-D7Tgakts.js} +64 -64
- package/dist/vue-data-ui.js +100 -100
- package/dist/{vue-ui-3d-bar-kzlIaqHU.js → vue-ui-3d-bar-H_4pqH3h.js} +56 -56
- package/dist/{vue-ui-accordion-VTP418mC.js → vue-ui-accordion-BKkTS12x.js} +3 -3
- package/dist/{vue-ui-age-pyramid-YFzQ15k1.js → vue-ui-age-pyramid-BGzYbrts.js} +62 -55
- package/dist/{vue-ui-annotator-CmwDyy9m.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
- package/dist/{vue-ui-bullet-DdjpiM-T.js → vue-ui-bullet-Cf4Uzhez.js} +7 -7
- package/dist/vue-ui-candlestick-DfbP87Cr.js +1334 -0
- package/dist/{vue-ui-carousel-table-CRI_iPLn.js → vue-ui-carousel-table-0z6eLg_I.js} +29 -29
- package/dist/{vue-ui-chestnut-YrEA5Gq3.js → vue-ui-chestnut-BcQFRaXx.js} +70 -70
- package/dist/{vue-ui-chord-D_2DdvpZ.js → vue-ui-chord-YYE07iRP.js} +35 -35
- package/dist/{vue-ui-circle-pack-xm9-OOAR.js → vue-ui-circle-pack-BRSqhjxm.js} +47 -47
- package/dist/{vue-ui-cursor-Dt8Zzw22.js → vue-ui-cursor-iuati4v1.js} +2 -2
- package/dist/{vue-ui-dashboard-29ZuFoLn.js → vue-ui-dashboard-BpeLteeH.js} +67 -67
- package/dist/{vue-ui-digits-nKPRJ9Vz.js → vue-ui-digits-eYxf3UFN.js} +2 -2
- package/dist/{vue-ui-donut-BQptfVfE.js → vue-ui-donut-Yw81BFf2.js} +189 -189
- package/dist/{vue-ui-donut-evolution-fiqngEFW.js → vue-ui-donut-evolution-k3xCwZYv.js} +145 -138
- package/dist/{vue-ui-dumbbell-Cw45EBO0.js → vue-ui-dumbbell-DMPndU1O.js} +82 -75
- package/dist/{vue-ui-flow-DPu9BjPy.js → vue-ui-flow-D-W3VQTv.js} +75 -75
- package/dist/{vue-ui-funnel-CtlDuNjO.js → vue-ui-funnel-q-b-LqXG.js} +63 -63
- package/dist/{vue-ui-galaxy-BiVjoNHW.js → vue-ui-galaxy-4pueJOcI.js} +62 -62
- package/dist/{vue-ui-gauge-CoM6Q3Nb.js → vue-ui-gauge-APtv_CvA.js} +58 -58
- package/dist/{vue-ui-gizmo-DXG8dS5u.js → vue-ui-gizmo-BH0MvhIV.js} +3 -3
- package/dist/{vue-ui-heatmap-D6n8AnCc.js → vue-ui-heatmap-BBdrkhmg.js} +465 -435
- package/dist/{vue-ui-history-plot-C8WMHda_.js → vue-ui-history-plot-DL5ioFH4.js} +115 -108
- package/dist/{vue-ui-kpi-Dphnwumo.js → vue-ui-kpi-N8s0i48S.js} +3 -3
- package/dist/{vue-ui-mini-loader-DFk9GZ5V.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
- package/dist/{vue-ui-molecule-DC4_vXt_.js → vue-ui-molecule-DnjRfc4-.js} +102 -102
- package/dist/{vue-ui-mood-radar-BgT5wMS0.js → vue-ui-mood-radar-9aAC_ake.js} +28 -28
- package/dist/{vue-ui-nested-donuts-D2gSqe1f.js → vue-ui-nested-donuts-BnVXn9Qa.js} +60 -60
- package/dist/{vue-ui-onion-CEbv2ii4.js → vue-ui-onion-DbanwrFr.js} +46 -46
- package/dist/{vue-ui-parallel-coordinate-plot-budrvcwU.js → vue-ui-parallel-coordinate-plot-CtlpCJ97.js} +88 -81
- package/dist/{vue-ui-quadrant-PpymeiXe.js → vue-ui-quadrant-BVffm_0o.js} +8 -8
- package/dist/{vue-ui-quick-chart-k6mjTD56.js → vue-ui-quick-chart-C4Uc3DRH.js} +280 -273
- package/dist/{vue-ui-radar-C5NvYMnv.js → vue-ui-radar-C-MSV1ZJ.js} +69 -69
- package/dist/{vue-ui-rating-eKlTJch9.js → vue-ui-rating-fR2WRHYO.js} +2 -2
- package/dist/{vue-ui-relation-circle-Df33aaUT.js → vue-ui-relation-circle-4MPxPkAi.js} +31 -31
- package/dist/{vue-ui-ridgeline-BTw-37RS.js → vue-ui-ridgeline-B1T10gWF.js} +118 -111
- package/dist/{vue-ui-rings-C_s9xOtZ.js → vue-ui-rings-G0bYxlue.js} +50 -50
- package/dist/{vue-ui-scatter-Jd8bQ0S5.js → vue-ui-scatter-DqZwonPL.js} +100 -100
- package/dist/{vue-ui-skeleton-Ce7H57o7.js → vue-ui-skeleton-C-IKc-3B.js} +3 -3
- package/dist/{vue-ui-smiley-C4mhT7ZV.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-DQy4iSO7.js → vue-ui-spark-trend-8vV7SyrA.js} +18 -18
- package/dist/{vue-ui-sparkbar-CUFTHql0.js → vue-ui-sparkbar-BsWBXGuQ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CcykuBps.js → vue-ui-sparkgauge-B9-iRqNC.js} +6 -6
- package/dist/{vue-ui-sparkhistogram-CyGvYpYn.js → vue-ui-sparkhistogram-CV4PH2vQ.js} +4 -4
- package/dist/{vue-ui-sparkline-CLWJM6hA.js → vue-ui-sparkline-DScNHLXj.js} +23 -23
- package/dist/{vue-ui-sparkstackbar-Cln1pduE.js → vue-ui-sparkstackbar-CXPJToNY.js} +17 -17
- package/dist/vue-ui-stackbar-94piqh7z.js +1695 -0
- package/dist/{vue-ui-strip-plot-C4U0fT5D.js → vue-ui-strip-plot-CA4GL9dj.js} +144 -137
- package/dist/{vue-ui-table-DpdP3PDq.js → vue-ui-table-BAbQsJGk.js} +18 -18
- package/dist/{vue-ui-table-heatmap-J29d8nds.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
- package/dist/{vue-ui-table-sparkline-Chf5YY4A.js → vue-ui-table-sparkline-1KrHuOle.js} +28 -28
- package/dist/{vue-ui-thermometer-D6RmaNE6.js → vue-ui-thermometer-DrCAdNyW.js} +22 -22
- package/dist/{vue-ui-timer-C5E1kJRt.js → vue-ui-timer-Cj677c6_.js} +29 -29
- package/dist/{vue-ui-tiremarks-D0erVBnj.js → vue-ui-tiremarks-O5LGA_1a.js} +14 -14
- package/dist/{vue-ui-treemap-K8FYxuYz.js → vue-ui-treemap-BVe_Fft6.js} +78 -78
- package/dist/{vue-ui-vertical-bar-BA3OY8Sh.js → vue-ui-vertical-bar-D8oCUku1.js} +94 -94
- package/dist/{vue-ui-waffle-CgLgPuro.js → vue-ui-waffle-C39XL2GH.js} +68 -68
- package/dist/{vue-ui-wheel-C_cOUhCs.js → vue-ui-wheel-BEpyCUNj.js} +21 -21
- package/dist/{vue-ui-word-cloud-uvHNOIpN.js → vue-ui-word-cloud-Dlp9LghX.js} +35 -35
- package/dist/{vue-ui-world-DmeNMwpX.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/useResizeObserverEffect-DfnWps4W.js +0 -109
- package/dist/vue-ui-candlestick-x9U5Ni0N.js +0 -1066
- package/dist/vue-ui-stackbar-DIUil9DO.js +0 -1442
- package/dist/vue-ui-xy-canvas-BQKR36bd.js +0 -1305
- package/dist/vue-ui-xy-tWE4H5ij.js +0 -4520
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as F, useSlots as
|
|
2
|
-
import { c as Wt, t as
|
|
1
|
+
import { defineAsyncComponent as F, useSlots as zt, computed as c, ref as i, toRefs as Vt, watch as J, shallowRef as Ke, onMounted as Mt, onBeforeUnmount as Rt, createElementBlock as v, openBlock as n, unref as h, normalizeStyle as le, normalizeClass as Ze, createBlock as B, createCommentVNode as m, createElementVNode as k, createVNode as ae, createSlots as we, withCtx as g, renderSlot as y, normalizeProps as G, guardReactiveProps as W, Fragment as $, renderList as D, mergeProps as ke, toDisplayString as oe, Teleport as Et, resolveDynamicComponent as Ut, createTextVNode as et, nextTick as Gt } from "vue";
|
|
2
|
+
import { c as Wt, t as Ht, b as jt, p as M, o as tt, f as xe, g as qt, e as Xt, a as Q, d as P, X as Yt, s as Jt, i as Qt, J as Kt, h as Zt, P as el, Q as tl, I as ll, G as al, H as ol } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as ul, u as sl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as nl, a as lt } from "./useNestedProp-
|
|
4
|
+
import { u as nl, a as lt } from "./useNestedProp-B7CiTRDS.js";
|
|
5
5
|
import { u as rl, B as il } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as vl } from "./usePrinter-
|
|
6
|
+
import { u as vl } from "./usePrinter-C1GiglOH.js";
|
|
7
7
|
import { u as cl } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as dl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import pl from "./img-
|
|
11
|
-
import { _ as fl } from "./Shape-
|
|
12
|
-
import gl from "./Title-
|
|
10
|
+
import pl from "./img-CFY3JivG.js";
|
|
11
|
+
import { _ as fl } from "./Shape-BhNvlGIN.js";
|
|
12
|
+
import gl from "./Title-CFmv95In.js";
|
|
13
13
|
import { t as yl } from "./themes-Dw-dDudK.js";
|
|
14
|
-
import bl from "./Legend-
|
|
14
|
+
import bl from "./Legend-C8u37J42.js";
|
|
15
15
|
import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
-
const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["stop-color"], Il = ["stop-color"], Tl = ["id"], _l = ["x", "y", "height", "width"], Sl = ["height", "width"], Al = { key: 0 }, Ol = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Pl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Ll = { key: 1 }, Fl = ["rx", "x", "y", "height", "width", "fill", "filter"], Bl = ["textContent", "x", "y", "font-size", "fill", "filter"], Dl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"],
|
|
16
|
+
const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["stop-color"], Il = ["stop-color"], Tl = ["id"], _l = ["x", "y", "height", "width"], Sl = ["height", "width"], Al = { key: 0 }, Ol = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Pl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Ll = { key: 1 }, Fl = ["rx", "x", "y", "height", "width", "fill", "filter"], Bl = ["textContent", "x", "y", "font-size", "fill", "filter"], Dl = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Nl = {
|
|
17
17
|
key: 4,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, zl = ["id"], Vl = ["onClick"], Ml = ["innerHTML"], Rl = {
|
|
20
20
|
__name: "vue-ui-waffle",
|
|
21
21
|
props: {
|
|
22
22
|
config: {
|
|
@@ -34,7 +34,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
36
|
setup(at, { expose: ot, emit: ut }) {
|
|
37
|
-
const st = F(() => import("./Tooltip-
|
|
37
|
+
const st = F(() => import("./Tooltip-Cs4v8OnI.js")), nt = F(() => import("./BaseIcon-B5KaGWWC.js")), rt = F(() => import("./DataTable-DOx3zgih.js")), it = F(() => import("./vue-ui-accordion-BKkTS12x.js")), vt = F(() => import("./UserOptions-C0YT60JN.js")), ct = F(() => import("./PenAndPaper-Dj2diYr0.js")), dt = F(() => import("./PackageVersion-DyDViSOy.js")), ht = F(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_waffle: pt } = nl(), w = at, ft = zt(), ue = c(() => !!w.dataset && w.dataset.length), b = i(Wt()), se = i(!1), ne = i(""), R = i(null), Ce = i(0), I = i(null), $e = i(null), Ie = i(null), Te = i(null), _e = i(null), Se = i(0), Ae = i(0), Oe = i(0), Pe = i(!1), H = i(null), re = i(null), e = i(de()), { loading: Le, FINAL_DATASET: K, manualLoading: ie } = rl({
|
|
38
38
|
...Vt(w),
|
|
39
39
|
FINAL_CONFIG: e,
|
|
40
40
|
prepareConfig: de,
|
|
@@ -60,7 +60,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
60
60
|
color: "#CACACA"
|
|
61
61
|
}
|
|
62
62
|
],
|
|
63
|
-
skeletonConfig:
|
|
63
|
+
skeletonConfig: Ht({
|
|
64
64
|
defaultConfig: e.value,
|
|
65
65
|
userConfig: {
|
|
66
66
|
useCustomCells: !1,
|
|
@@ -97,20 +97,20 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
97
97
|
userConfig: yl.vue_ui_waffle[t.theme] || w.config,
|
|
98
98
|
defaultConfig: t
|
|
99
99
|
}),
|
|
100
|
-
customPalette:
|
|
100
|
+
customPalette: jt[t.theme] || M
|
|
101
101
|
} : t;
|
|
102
102
|
}
|
|
103
103
|
J(() => w.config, (t) => {
|
|
104
|
-
Le.value || (e.value = de()), ve.value = !e.value.userOptions.showOnChartHover,
|
|
104
|
+
Le.value || (e.value = de()), ve.value = !e.value.userOptions.showOnChartHover, Ne(), Se.value += 1, Ae.value += 1, Oe.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
105
105
|
}, { deep: !0 });
|
|
106
|
-
const L =
|
|
107
|
-
function
|
|
106
|
+
const L = Ke(null), E = Ke(null), De = c(() => !!e.value.debug);
|
|
107
|
+
function Ne() {
|
|
108
108
|
if (tt(w.dataset) ? (xe({
|
|
109
109
|
componentName: "VueUiWaffle",
|
|
110
110
|
type: "dataset",
|
|
111
111
|
debug: De.value
|
|
112
112
|
}), ue.value = !1, ie.value = !0) : w.dataset.forEach((t, l) => {
|
|
113
|
-
|
|
113
|
+
qt({
|
|
114
114
|
datasetObject: t,
|
|
115
115
|
requiredAttributes: ["name", "values"]
|
|
116
116
|
}).forEach((a) => {
|
|
@@ -132,18 +132,18 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
132
132
|
noTitle: _e.value
|
|
133
133
|
});
|
|
134
134
|
requestAnimationFrame(() => {
|
|
135
|
-
|
|
135
|
+
N.value.width = l, N.value.height = a, T.value.width = l, T.value.height = a;
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
138
|
L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect()), L.value = new ResizeObserver(t), E.value = I.value.parentNode, L.value.observe(E.value);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
Mt(() => {
|
|
142
|
-
Pe.value = !0,
|
|
142
|
+
Pe.value = !0, Ne();
|
|
143
143
|
}), Rt(() => {
|
|
144
144
|
L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect());
|
|
145
145
|
});
|
|
146
|
-
const { isPrinting:
|
|
146
|
+
const { isPrinting: ze, isImaging: Ve, generatePdf: Me, generateImage: Re } = vl({
|
|
147
147
|
elementId: `vue-ui-waffle_${b.value}`,
|
|
148
148
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle",
|
|
149
149
|
options: e.value.userOptions.print
|
|
@@ -157,7 +157,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
157
157
|
showTooltip: e.value.style.chart.tooltip.show
|
|
158
158
|
};
|
|
159
159
|
}, { immediate: !0 });
|
|
160
|
-
const
|
|
160
|
+
const N = i({
|
|
161
161
|
height: 512,
|
|
162
162
|
width: 512
|
|
163
163
|
}), T = i({
|
|
@@ -175,9 +175,9 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
175
175
|
}
|
|
176
176
|
return u;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const j = i(!1);
|
|
179
179
|
function he() {
|
|
180
|
-
return
|
|
180
|
+
return j.value = K.value.flatMap((t) => t.values.reduce((l, a) => l + a, 0)).reduce((t, l) => t + l, 0) === 0, K.value.map((t, l) => ({
|
|
181
181
|
...t,
|
|
182
182
|
color: Zt(t.color) || Ee.value[l] || M[l] || M[l % M.length],
|
|
183
183
|
uid: `serie_${l}`,
|
|
@@ -191,12 +191,12 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
191
191
|
p.value = he();
|
|
192
192
|
}, { deep: !0 });
|
|
193
193
|
const bt = c(() => {
|
|
194
|
-
const t = p.value.filter((l, a) => !f.value.includes(l.uid)).map((l, a) =>
|
|
194
|
+
const t = p.value.filter((l, a) => !f.value.includes(l.uid)).map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
|
|
195
195
|
return Ge(t);
|
|
196
196
|
}), mt = c(() => {
|
|
197
|
-
const t = p.value.map((l, a) =>
|
|
197
|
+
const t = p.value.map((l, a) => j.value ? 1 : (l.values || []).reduce((o, u) => o + u));
|
|
198
198
|
return Ge(t);
|
|
199
|
-
}),
|
|
199
|
+
}), q = c(() => (K.value.forEach((t, l) => {
|
|
200
200
|
[null, void 0].includes(t.values) && xe({
|
|
201
201
|
componentName: "VueUiWaffle",
|
|
202
202
|
type: "datasetSerieAttribute",
|
|
@@ -230,7 +230,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
230
230
|
}
|
|
231
231
|
const xt = c(() => {
|
|
232
232
|
let t = 0;
|
|
233
|
-
return
|
|
233
|
+
return q.value.map((l, a) => {
|
|
234
234
|
const o = t, u = o + l.proportion, s = [];
|
|
235
235
|
for (let d = Math.floor(o); d < Math.floor(u); d += 1)
|
|
236
236
|
s.push(d);
|
|
@@ -264,11 +264,11 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
264
264
|
y: (e.value.style.chart.layout.grid.vertical ? a : l) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + T.value.top
|
|
265
265
|
});
|
|
266
266
|
return t;
|
|
267
|
-
}), f = i([]), X = i(!1), We = i(null),
|
|
268
|
-
function
|
|
269
|
-
if (
|
|
267
|
+
}), f = i([]), X = i(!1), We = i(null), He = i(null);
|
|
268
|
+
function je(t) {
|
|
269
|
+
if (j.value) return;
|
|
270
270
|
if (!e.value.useAnimation) {
|
|
271
|
-
f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length <
|
|
271
|
+
f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < z.value.length - 1 && z.value.length > 1 && f.value.push(t);
|
|
272
272
|
return;
|
|
273
273
|
}
|
|
274
274
|
const l = pe.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0), a = p.value.find((u) => u.uid === t).values.reduce((u, s) => u + s, 0);
|
|
@@ -287,19 +287,19 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
287
287
|
f.value = f.value.filter((d) => d !== t);
|
|
288
288
|
const u = l;
|
|
289
289
|
s();
|
|
290
|
-
} else if (f.value.length <
|
|
290
|
+
} else if (f.value.length < z.value.length - 1 && z.value.length > 1) {
|
|
291
291
|
let u = function() {
|
|
292
|
-
o < a / 100 ? (cancelAnimationFrame(
|
|
292
|
+
o < a / 100 ? (cancelAnimationFrame(He.value), f.value.push(t), p.value = p.value.map((s, d) => s.uid === t ? {
|
|
293
293
|
...s,
|
|
294
294
|
values: [0]
|
|
295
295
|
} : s), X.value = !1) : (X.value = !0, o /= 1.15, p.value = p.value.map((s) => s.uid === t ? {
|
|
296
296
|
...s,
|
|
297
297
|
values: [o]
|
|
298
|
-
} : s),
|
|
298
|
+
} : s), He.value = requestAnimationFrame(u));
|
|
299
299
|
};
|
|
300
300
|
u();
|
|
301
301
|
}
|
|
302
|
-
_t("selectLegend",
|
|
302
|
+
_t("selectLegend", q.value.map((u) => ({
|
|
303
303
|
name: u.name,
|
|
304
304
|
color: u.color,
|
|
305
305
|
value: u.value,
|
|
@@ -307,7 +307,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
307
307
|
})));
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
const
|
|
310
|
+
const z = c(() => p.value.map((t, l) => {
|
|
311
311
|
const a = (t.values || []).reduce((u, s) => u + s, 0), o = a / p.value.map((u) => (u.values || []).reduce((s, d) => s + d, 0)).reduce((u, s) => u + s, 0);
|
|
312
312
|
return {
|
|
313
313
|
name: t.name,
|
|
@@ -320,9 +320,9 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
320
320
|
}).map((t, l) => ({
|
|
321
321
|
...t,
|
|
322
322
|
opacity: f.value.includes(t.uid) ? 0.5 : 1,
|
|
323
|
-
segregate: () =>
|
|
323
|
+
segregate: () => je(t.uid),
|
|
324
324
|
isSegregated: f.value.includes(t.uid),
|
|
325
|
-
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ?
|
|
325
|
+
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? Q(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, P({
|
|
326
326
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
327
327
|
v: t.value,
|
|
328
328
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -335,7 +335,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
335
335
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
336
336
|
paddingBottom: 12,
|
|
337
337
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
338
|
-
})), A = c(() =>
|
|
338
|
+
})), A = c(() => q.value.map((t) => t.value).reduce((t, l) => t + l, 0)), fe = i(null), ge = i(null);
|
|
339
339
|
function $t(t) {
|
|
340
340
|
const l = r.value[t];
|
|
341
341
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.serieIndex });
|
|
@@ -368,7 +368,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
368
368
|
});
|
|
369
369
|
else {
|
|
370
370
|
let o = "";
|
|
371
|
-
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${l.color}" />${ft.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${
|
|
371
|
+
if (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${l.color}" />${ft.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${l.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
|
|
372
372
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
373
373
|
l.value,
|
|
374
374
|
P({
|
|
@@ -384,7 +384,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
384
384
|
}
|
|
385
385
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
386
386
|
const u = P({
|
|
387
|
-
v:
|
|
387
|
+
v: j.value ? 1 / K.value.length * 100 : l.value / A.value * 100,
|
|
388
388
|
s: "%",
|
|
389
389
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
390
390
|
});
|
|
@@ -394,10 +394,10 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
const _t = ut, O = c(() => {
|
|
397
|
-
const t =
|
|
397
|
+
const t = q.value.map((a) => ({
|
|
398
398
|
name: a.name,
|
|
399
399
|
color: a.color
|
|
400
|
-
})), l =
|
|
400
|
+
})), l = q.value.map((a) => a.value);
|
|
401
401
|
return { head: t, body: l };
|
|
402
402
|
});
|
|
403
403
|
function Z(t) {
|
|
@@ -407,7 +407,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
407
407
|
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !X.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || r.value[t].isAbsoluteFirst && t % e.value.style.chart.layout.grid.size === 0 && r.value[t].absoluteStartIndex) : !1;
|
|
408
408
|
}
|
|
409
409
|
function At(t, l = null) {
|
|
410
|
-
const a =
|
|
410
|
+
const a = Q(
|
|
411
411
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
412
412
|
r.value[t].value,
|
|
413
413
|
P({
|
|
@@ -432,7 +432,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
432
432
|
const ee = c(() => {
|
|
433
433
|
const t = [
|
|
434
434
|
' <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>',
|
|
435
|
-
|
|
435
|
+
Q(
|
|
436
436
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
437
437
|
A.value,
|
|
438
438
|
P({
|
|
@@ -448,7 +448,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
448
448
|
color: u.color,
|
|
449
449
|
name: u.name
|
|
450
450
|
},
|
|
451
|
-
|
|
451
|
+
Q(
|
|
452
452
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
453
453
|
O.value.body[s],
|
|
454
454
|
P({
|
|
@@ -488,7 +488,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
488
488
|
colNames: o
|
|
489
489
|
};
|
|
490
490
|
}), V = i(!1);
|
|
491
|
-
function
|
|
491
|
+
function qe(t) {
|
|
492
492
|
V.value = t, Ce.value += 1;
|
|
493
493
|
}
|
|
494
494
|
function Xe() {
|
|
@@ -544,24 +544,24 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
544
544
|
};
|
|
545
545
|
});
|
|
546
546
|
J(() => x.value.showTable, (t) => {
|
|
547
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
547
|
+
e.value.table.show || (t && e.value.table.useDialog && H.value ? H.value.open() : "close" in H.value && H.value.close());
|
|
548
548
|
});
|
|
549
549
|
function Je() {
|
|
550
550
|
x.value.showTable = !1, re.value && re.value.setTableIconState(!1);
|
|
551
551
|
}
|
|
552
|
-
const Pt = c(() =>
|
|
552
|
+
const Pt = c(() => z.value.map((t) => ({
|
|
553
553
|
...t,
|
|
554
554
|
name: t.display
|
|
555
|
-
}))), Lt = c(() => e.value.style.chart.backgroundColor), Ft = c(() => e.value.style.chart.legend), Bt = c(() => e.value.style.chart.title), { exportSvg: Dt, getSvg:
|
|
555
|
+
}))), Lt = c(() => e.value.style.chart.backgroundColor), Ft = c(() => e.value.style.chart.legend), Bt = c(() => e.value.style.chart.title), { exportSvg: Dt, getSvg: Nt } = cl({
|
|
556
556
|
svg: ce,
|
|
557
557
|
title: Bt,
|
|
558
558
|
legend: Ft,
|
|
559
559
|
legendItems: Pt,
|
|
560
560
|
backgroundColor: Lt
|
|
561
561
|
});
|
|
562
|
-
async function
|
|
562
|
+
async function Qe({ isCb: t }) {
|
|
563
563
|
if (t) {
|
|
564
|
-
const { blob: l, url: a, text: o, dataUrl: u } = await
|
|
564
|
+
const { blob: l, url: a, text: o, dataUrl: u } = await Nt();
|
|
565
565
|
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: u });
|
|
566
566
|
} else
|
|
567
567
|
Dt();
|
|
@@ -572,11 +572,11 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
572
572
|
generatePdf: Me,
|
|
573
573
|
generateCsv: ye,
|
|
574
574
|
generateImage: Re,
|
|
575
|
-
generateSvg:
|
|
575
|
+
generateSvg: Qe,
|
|
576
576
|
toggleTable: Xe,
|
|
577
577
|
toggleTooltip: Ye,
|
|
578
578
|
toggleAnnotator: be,
|
|
579
|
-
toggleFullscreen:
|
|
579
|
+
toggleFullscreen: qe
|
|
580
580
|
}), (t, l) => (n(), v("div", {
|
|
581
581
|
class: Ze(`vue-data-ui-component vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
582
582
|
ref_key: "waffleChart",
|
|
@@ -630,7 +630,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
630
630
|
key: `user_options_${Ce.value}`,
|
|
631
631
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
632
632
|
color: e.value.style.chart.color,
|
|
633
|
-
isPrinting: h(
|
|
633
|
+
isPrinting: h(ze),
|
|
634
634
|
isImaging: h(Ve),
|
|
635
635
|
uid: b.value,
|
|
636
636
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
@@ -650,11 +650,11 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
650
650
|
callbacks: e.value.userOptions.callbacks,
|
|
651
651
|
printScale: e.value.userOptions.print.scale,
|
|
652
652
|
tableDialog: e.value.table.useDialog,
|
|
653
|
-
onToggleFullscreen:
|
|
653
|
+
onToggleFullscreen: qe,
|
|
654
654
|
onGeneratePdf: h(Me),
|
|
655
655
|
onGenerateCsv: ye,
|
|
656
656
|
onGenerateImage: h(Re),
|
|
657
|
-
onGenerateSvg:
|
|
657
|
+
onGenerateSvg: Qe,
|
|
658
658
|
onToggleTable: Xe,
|
|
659
659
|
onToggleTooltip: Ye,
|
|
660
660
|
onToggleAnnotator: be,
|
|
@@ -724,7 +724,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
724
724
|
ref: ce,
|
|
725
725
|
xmlns: h(Yt),
|
|
726
726
|
class: Ze({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
727
|
-
viewBox: `0 0 ${
|
|
727
|
+
viewBox: `0 0 ${N.value.width <= 0 ? 10 : N.value.width} ${N.value.height <= 0 ? 10 : N.value.height}`,
|
|
728
728
|
style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
729
729
|
}, [
|
|
730
730
|
ae(h(dt)),
|
|
@@ -739,7 +739,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
739
739
|
}, [
|
|
740
740
|
k("stop", {
|
|
741
741
|
offset: "0%",
|
|
742
|
-
"stop-color": h(Jt)(h(
|
|
742
|
+
"stop-color": h(Jt)(h(Qt)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
743
743
|
}, null, 8, $l),
|
|
744
744
|
k("stop", {
|
|
745
745
|
offset: "100%",
|
|
@@ -831,7 +831,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
831
831
|
x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
832
832
|
y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2 + Ue.value / 2 + e.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
833
833
|
"font-size": e.value.style.chart.layout.labels.captions.fontSize,
|
|
834
|
-
fill: h(
|
|
834
|
+
fill: h(Kt)(r.value[o].color),
|
|
835
835
|
filter: Z(r.value[o].serieIndex)
|
|
836
836
|
}, null, 8, Bl)) : m("", !0)
|
|
837
837
|
], 64))), 256)),
|
|
@@ -846,14 +846,14 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
846
846
|
onMouseleave: (u) => It(o),
|
|
847
847
|
onClick: (u) => $t(o)
|
|
848
848
|
}, null, 40, Dl))), 256)),
|
|
849
|
-
y(t.$slots, "svg", { svg:
|
|
849
|
+
y(t.$slots, "svg", { svg: N.value }, void 0, !0)
|
|
850
850
|
], 14, xl)),
|
|
851
|
-
t.$slots.watermark ? (n(), v("div",
|
|
852
|
-
y(t.$slots, "watermark", G(W({ isPrinting: h(
|
|
851
|
+
t.$slots.watermark ? (n(), v("div", Nl, [
|
|
852
|
+
y(t.$slots, "watermark", G(W({ isPrinting: h(ze) || h(Ve) })), void 0, !0)
|
|
853
853
|
])) : m("", !0),
|
|
854
854
|
k("div", {
|
|
855
855
|
id: `legend-bottom-${b.value}`
|
|
856
|
-
}, null, 8,
|
|
856
|
+
}, null, 8, zl),
|
|
857
857
|
Pe.value ? (n(), B(Et, {
|
|
858
858
|
key: 5,
|
|
859
859
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
@@ -864,9 +864,9 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
864
864
|
}, [
|
|
865
865
|
e.value.style.chart.legend.show ? (n(), B(bl, {
|
|
866
866
|
key: `legend_${Oe.value}`,
|
|
867
|
-
legendSet:
|
|
867
|
+
legendSet: z.value,
|
|
868
868
|
config: Ct.value,
|
|
869
|
-
onClickMarker: l[0] || (l[0] = ({ legend: a }) =>
|
|
869
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => je(a.uid))
|
|
870
870
|
}, we({
|
|
871
871
|
item: g(({ legend: a }) => [
|
|
872
872
|
k("div", {
|
|
@@ -891,7 +891,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
891
891
|
} : void 0
|
|
892
892
|
]), 1032, ["legendSet", "config"])) : y(t.$slots, "legend", {
|
|
893
893
|
key: 1,
|
|
894
|
-
legend:
|
|
894
|
+
legend: z.value
|
|
895
895
|
}, void 0, !0)
|
|
896
896
|
], 512)
|
|
897
897
|
], 8, ["to"])) : m("", !0),
|
|
@@ -933,7 +933,7 @@ const wl = ["id"], kl = ["id"], xl = ["xmlns", "viewBox"], Cl = ["id"], $l = ["s
|
|
|
933
933
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
934
934
|
ue.value && e.value.userOptions.buttons.table ? (n(), B(Ut(Y.value.component), ke({ key: 7 }, Y.value.props, {
|
|
935
935
|
ref_key: "tableUnit",
|
|
936
|
-
ref:
|
|
936
|
+
ref: H,
|
|
937
937
|
onClose: Je
|
|
938
938
|
}), we({
|
|
939
939
|
content: g(() => [
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useCssVars as $t, computed as f, defineAsyncComponent as ge, ref as _, toRefs as St, watch as Ue, shallowRef as Be, onMounted as It, onBeforeUnmount as Rt, createElementBlock as n, openBlock as o, unref as c, normalizeStyle as fe, normalizeClass as P, createBlock as se, createCommentVNode as I, createSlots as Pt, withCtx as
|
|
2
|
-
import { c as Tt, t as Dt, o as Ft, f as Xt, i as Z,
|
|
1
|
+
import { useCssVars as $t, computed as f, defineAsyncComponent as ge, ref as _, toRefs as St, watch as Ue, shallowRef as Be, onMounted as It, onBeforeUnmount as Rt, createElementBlock as n, openBlock as o, unref as c, normalizeStyle as fe, normalizeClass as P, createBlock as se, createCommentVNode as I, createSlots as Pt, withCtx as q, renderSlot as z, normalizeProps as oe, guardReactiveProps as ne, createVNode as zt, Fragment as $, renderList as O, createElementVNode as Ot, toDisplayString as Wt } from "vue";
|
|
2
|
+
import { c as Tt, t as Dt, o as Ft, f as Xt, i as Z, T as Nt, X as Lt, S as Ee, a as Ut, x as je, d as Bt } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as Et, u as jt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Yt, a as Ye } from "./useNestedProp-
|
|
4
|
+
import { u as Yt, a as Ye } from "./useNestedProp-B7CiTRDS.js";
|
|
5
5
|
import { u as Gt, B as Ht } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
6
|
+
import { u as Vt } from "./usePrinter-C1GiglOH.js";
|
|
7
|
+
import { u as qt } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import Kt from "./img-
|
|
11
|
-
import Qt from "./Title-
|
|
10
|
+
import Kt from "./img-CFY3JivG.js";
|
|
11
|
+
import Qt from "./Title-CFmv95In.js";
|
|
12
12
|
import { t as ea } from "./themes-Dw-dDudK.js";
|
|
13
13
|
import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"], oa = ["d", "stroke", "stroke-width"], na = ["cx", "cy", "r", "stroke", "stroke-width"], ua = { key: 0 }, ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], ia = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], ca = { key: 1 }, ha = ["d", "fill", "stroke", "stroke-width"], va = ["d", "fill", "stroke", "stroke-width"], da = ["d", "fill", "stroke", "stroke-width"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], ka = ["d", "fill", "stroke", "stroke-width"], ga = { key: 5 }, fa = ["x", "y", "height"], pa = ["x", "y", "font-size", "fill", "font-weight", "stroke", "stroke-width"], ma = {
|
|
@@ -36,7 +36,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
36
36
|
v3e8c19ef: rt.value,
|
|
37
37
|
v3e8bfc82: it.value
|
|
38
38
|
}));
|
|
39
|
-
const
|
|
39
|
+
const Ve = ge(() => import("./PenAndPaper-Dj2diYr0.js")), qe = ge(() => import("./UserOptions-C0YT60JN.js")), Ze = ge(() => import("./PackageVersion-DyDViSOy.js")), { vue_ui_wheel: Je } = Yt(), F = Ge, Ke = f(() => !!F.dataset && Object.keys(F.dataset).length), ue = _(Tt()), Qe = _(null), pe = _(0), X = _(null), me = _(null), we = _(null), be = _(null), xe = _(0), e = _(he()), { loading: Me, FINAL_DATASET: re } = Gt({
|
|
40
40
|
...St(F),
|
|
41
41
|
FINAL_CONFIG: e,
|
|
42
42
|
prepareConfig: he,
|
|
@@ -80,7 +80,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
80
80
|
Ue(() => F.config, (t) => {
|
|
81
81
|
e.value = he(), ie.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1;
|
|
82
82
|
}, { deep: !0 });
|
|
83
|
-
const { isPrinting: Ae, isImaging: $e, generatePdf: Se, generateImage: Ie } =
|
|
83
|
+
const { isPrinting: Ae, isImaging: $e, generatePdf: Se, generateImage: Ie } = Vt({
|
|
84
84
|
elementId: ue.value,
|
|
85
85
|
fileName: e.value.style.chart.title.text || "vue-ui-wheel",
|
|
86
86
|
options: e.value.userOptions.print
|
|
@@ -160,8 +160,8 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
160
160
|
}) {
|
|
161
161
|
const h = w * Math.PI / 180, p = a, C = a * l, b = [];
|
|
162
162
|
for (let m = 0; m < r; m += 1) {
|
|
163
|
-
const g = (m / r * 360 + v) * Math.PI / 180, R = t + p * Math.cos(g), B = s + p * Math.sin(g), N = t + C * Math.cos(g), j = s + C * Math.sin(g), Y = [R - t, B - s, 0], G = [N - t, j - s, 0], [ae, Le, H] = J(Y, h), [ye, ke,
|
|
164
|
-
b.push({ i: m, x1: pt, y1: mt, x2: wt, y2: bt, stroke: At, color: _t, z: Math.max(H,
|
|
163
|
+
const g = (m / r * 360 + v) * Math.PI / 180, R = t + p * Math.cos(g), B = s + p * Math.sin(g), N = t + C * Math.cos(g), j = s + C * Math.sin(g), Y = [R - t, B - s, 0], G = [N - t, j - s, 0], [ae, Le, H] = J(Y, h), [ye, ke, V] = J(G, h), [le, yt, , kt] = K([ae, Le, H], y), [gt, ft, , ba] = K([ye, ke, V], y), pt = t + le, mt = s + yt, wt = t + gt, bt = s + ft, xt = (Math.max(H, V) - -p * Math.sin(h)) / (2 * p * Math.sin(h) || 1), Mt = A ? A(m) : !0, Ct = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(x, m * S.value / D.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : x, _t = ze(Mt ? Ct : M, xt), At = Math.max(1.25, k * kt * (Math.min(u.value.width, u.value.height) / 360));
|
|
164
|
+
b.push({ i: m, x1: pt, y1: mt, x2: wt, y2: bt, stroke: At, color: _t, z: Math.max(H, V) });
|
|
165
165
|
}
|
|
166
166
|
return b.sort((m, g) => m.z - g.z), b;
|
|
167
167
|
}
|
|
@@ -263,8 +263,8 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
263
263
|
) : k : x, ye = (() => {
|
|
264
264
|
const le = p * Math.sin(h) || 1;
|
|
265
265
|
return (ae - -le) / (2 * le);
|
|
266
|
-
})(), ke = ze(H, ye),
|
|
267
|
-
m.push({ i: g, d:
|
|
266
|
+
})(), ke = ze(H, ye), V = `M ${N.x} ${N.y} L ${j.x} ${j.y} L ${Y.x} ${Y.y} L ${G.x} ${G.y} Z`;
|
|
267
|
+
m.push({ i: g, d: V, fill: ke, z: ae });
|
|
268
268
|
}
|
|
269
269
|
return m.sort((g, R) => g.z - R.z), m;
|
|
270
270
|
}
|
|
@@ -331,7 +331,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
331
331
|
aspectRatio: l
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
const ut = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2), rt = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * 0.75), it = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth), U = f(() => Math.max(1, Math.min(20, e.value.style.chart.layout.wheel.ticks.depth3d))), ct = f(() => e.value.style.chart.backgroundColor), ht = f(() => e.value.style.chart.title), { exportSvg: vt, getSvg: dt } =
|
|
334
|
+
const ut = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2), rt = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * 0.75), it = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth), U = f(() => Math.max(1, Math.min(20, e.value.style.chart.layout.wheel.ticks.depth3d))), ct = f(() => e.value.style.chart.backgroundColor), ht = f(() => e.value.style.chart.title), { exportSvg: vt, getSvg: dt } = qt({
|
|
335
335
|
svg: ce,
|
|
336
336
|
title: ht,
|
|
337
337
|
backgroundColor: ct,
|
|
@@ -360,7 +360,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
360
360
|
onMouseenter: s[0] || (s[0] = () => c(Ce)(!0)),
|
|
361
361
|
onMouseleave: s[1] || (s[1] = () => c(Ce)(!1))
|
|
362
362
|
}, [
|
|
363
|
-
e.value.userOptions.buttons.annotator ? (o(), se(c(
|
|
363
|
+
e.value.userOptions.buttons.annotator ? (o(), se(c(Ve), {
|
|
364
364
|
key: 0,
|
|
365
365
|
svgRef: c(ce),
|
|
366
366
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -395,7 +395,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
395
395
|
}
|
|
396
396
|
}, null, 8, ["config"]))
|
|
397
397
|
], 512)) : I("", !0),
|
|
398
|
-
e.value.userOptions.show && Ke.value && (c(_e) || c(ie)) ? (o(), se(c(
|
|
398
|
+
e.value.userOptions.show && Ke.value && (c(_e) || c(ie)) ? (o(), se(c(qe), {
|
|
399
399
|
ref_key: "details",
|
|
400
400
|
ref: Qe,
|
|
401
401
|
key: `user_options_${pe.value}`,
|
|
@@ -428,35 +428,35 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
|
|
|
428
428
|
}, Pt({ _: 2 }, [
|
|
429
429
|
t.$slots.menuIcon ? {
|
|
430
430
|
name: "menuIcon",
|
|
431
|
-
fn:
|
|
431
|
+
fn: q(({ isOpen: a, color: l }) => [
|
|
432
432
|
z(t.$slots, "menuIcon", oe(ne({ isOpen: a, color: l })), void 0, !0)
|
|
433
433
|
]),
|
|
434
434
|
key: "0"
|
|
435
435
|
} : void 0,
|
|
436
436
|
t.$slots.optionPdf ? {
|
|
437
437
|
name: "optionPdf",
|
|
438
|
-
fn:
|
|
438
|
+
fn: q(() => [
|
|
439
439
|
z(t.$slots, "optionPdf", {}, void 0, !0)
|
|
440
440
|
]),
|
|
441
441
|
key: "1"
|
|
442
442
|
} : void 0,
|
|
443
443
|
t.$slots.optionImg ? {
|
|
444
444
|
name: "optionImg",
|
|
445
|
-
fn:
|
|
445
|
+
fn: q(() => [
|
|
446
446
|
z(t.$slots, "optionImg", {}, void 0, !0)
|
|
447
447
|
]),
|
|
448
448
|
key: "2"
|
|
449
449
|
} : void 0,
|
|
450
450
|
t.$slots.optionFullscreen ? {
|
|
451
451
|
name: "optionFullscreen",
|
|
452
|
-
fn:
|
|
452
|
+
fn: q(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
453
453
|
z(t.$slots, "optionFullscreen", oe(ne({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
454
454
|
]),
|
|
455
455
|
key: "3"
|
|
456
456
|
} : void 0,
|
|
457
457
|
t.$slots.optionAnnotator ? {
|
|
458
458
|
name: "optionAnnotator",
|
|
459
|
-
fn:
|
|
459
|
+
fn: q(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
460
460
|
z(t.$slots, "optionAnnotator", oe(ne({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
461
461
|
]),
|
|
462
462
|
key: "4"
|