vue-data-ui 3.2.7 → 3.3.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-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
- package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
- package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
- package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
- package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
- package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
- package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
- package/dist/{PackageVersion-Cwrh45ON.js → PackageVersion-C9oklnuy.js} +1 -1
- package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
- package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
- package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
- package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
- package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
- package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
- package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
- 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-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
- package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
- package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
- package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +8 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
- package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
- package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
- package/dist/useSvgExport-B7-Vrjtu.js +732 -0
- package/dist/vue-data-ui-DLU1snC3.js +326 -0
- package/dist/vue-data-ui.js +68 -68
- package/dist/{vue-ui-3d-bar-CRXnB8wH.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
- package/dist/{vue-ui-accordion-CeMTgpl0.js → vue-ui-accordion-Dch9YrCi.js} +19 -19
- package/dist/{vue-ui-age-pyramid-BEGsngR6.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
- package/dist/{vue-ui-annotator-BhZr9pFJ.js → vue-ui-annotator-DwRwhrgB.js} +9 -9
- package/dist/{vue-ui-bullet-CrCHb15S.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
- package/dist/{vue-ui-candlestick-CnWY88nd.js → vue-ui-candlestick-C81k1_f9.js} +279 -263
- package/dist/{vue-ui-carousel-table-CsVWXrdA.js → vue-ui-carousel-table-DBIhnEj-.js} +6 -6
- package/dist/{vue-ui-chestnut-NpO91zJV.js → vue-ui-chestnut-CSM-_IWw.js} +426 -380
- package/dist/{vue-ui-chord-bIihB6Qf.js → vue-ui-chord-BFW9nnNh.js} +318 -299
- package/dist/{vue-ui-circle-pack-Z5VTiXZU.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
- package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
- package/dist/{vue-ui-dashboard-BEJ5uSZV.js → vue-ui-dashboard-BdFLsK4u.js} +72 -71
- package/dist/{vue-ui-digits-CDtdGqLS.js → vue-ui-digits-DXum1rs6.js} +10 -10
- package/dist/{vue-ui-donut-a82yzfvT.js → vue-ui-donut-CqefukGp.js} +662 -645
- package/dist/{vue-ui-donut-evolution-DP_dXmIC.js → vue-ui-donut-evolution-DFIbK50s.js} +407 -385
- package/dist/{vue-ui-dumbbell-BDIzPnlX.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
- package/dist/vue-ui-flow--kiGWaq4.js +931 -0
- package/dist/{vue-ui-funnel-CaxHiJIB.js → vue-ui-funnel-B8UHwj15.js} +197 -181
- package/dist/{vue-ui-galaxy-CbGRAAFI.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
- package/dist/{vue-ui-gauge-But_1QwV.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
- package/dist/{vue-ui-gizmo-DcBQp-C8.js → vue-ui-gizmo-DFxlqPz7.js} +18 -18
- package/dist/{vue-ui-heatmap-BAVkwnbX.js → vue-ui-heatmap-CcAe5dDN.js} +394 -373
- package/dist/{vue-ui-history-plot-BlVib573.js → vue-ui-history-plot-CgKvd7Jx.js} +337 -319
- package/dist/{vue-ui-kpi-DuFgWXJM.js → vue-ui-kpi-Ct2iyD49.js} +4 -4
- package/dist/{vue-ui-mini-loader-D4W9oE3V.js → vue-ui-mini-loader-ByjcvXBB.js} +19 -19
- package/dist/{vue-ui-molecule-CEb6_0wR.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
- package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
- package/dist/{vue-ui-nested-donuts-B6rmNl9X.js → vue-ui-nested-donuts-CGKgOTX2.js} +542 -519
- package/dist/{vue-ui-onion-BWAdTZ6V.js → vue-ui-onion-C5tE1Woz.js} +318 -289
- package/dist/{vue-ui-parallel-coordinate-plot-DXbgnatq.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +253 -234
- package/dist/{vue-ui-quadrant-BwGMZ_d_.js → vue-ui-quadrant-BGDCaOXv.js} +295 -277
- package/dist/{vue-ui-quick-chart-2bQ0DX_A.js → vue-ui-quick-chart-CjXSB-2S.js} +724 -686
- package/dist/{vue-ui-radar-DPXvVIbh.js → vue-ui-radar-rhxkROX7.js} +307 -282
- package/dist/{vue-ui-rating-CxIBq7Xr.js → vue-ui-rating-Bo9gSy-z.js} +4 -4
- package/dist/{vue-ui-relation-circle-BVGAfqBj.js → vue-ui-relation-circle-Qo8FKbL2.js} +147 -132
- package/dist/{vue-ui-ridgeline-C6UdClMT.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
- package/dist/{vue-ui-rings-B_7zAshC.js → vue-ui-rings-DFAVaEBs.js} +323 -310
- package/dist/{vue-ui-scatter-BRr9oPfo.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
- package/dist/{vue-ui-skeleton-C3tGR_lR.js → vue-ui-skeleton-CKfOnyd_.js} +105 -105
- package/dist/{vue-ui-smiley-B70Ck-49.js → vue-ui-smiley-CY7UiJ9C.js} +88 -88
- package/dist/{vue-ui-spark-trend-C2tSZULg.js → vue-ui-spark-trend-DwNYP97M.js} +5 -5
- package/dist/{vue-ui-sparkbar-BUPDw_qR.js → vue-ui-sparkbar-BkdcYrmg.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DufAZyFK.js → vue-ui-sparkgauge-C6Kq_OGV.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DDunWMKu.js → vue-ui-sparkhistogram-CjB33yXB.js} +7 -7
- package/dist/{vue-ui-sparkline-lRx2nNde.js → vue-ui-sparkline-DcH4yIEd.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-CB6WHJHd.js → vue-ui-sparkstackbar-MKr2u_pO.js} +5 -5
- package/dist/{vue-ui-stackbar-CQ9Zvuxh.js → vue-ui-stackbar-DKV-exfd.js} +356 -338
- package/dist/{vue-ui-strip-plot-DW3c82dV.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
- package/dist/{vue-ui-table-CEt97z7F.js → vue-ui-table-BdT3lGuv.js} +16 -16
- package/dist/{vue-ui-table-heatmap-DFZCaMxK.js → vue-ui-table-heatmap-D929cWB0.js} +9 -9
- package/dist/{vue-ui-table-sparkline-RB40-Z1R.js → vue-ui-table-sparkline-CkZ_ygR1.js} +7 -7
- package/dist/{vue-ui-thermometer-fmPzO-eT.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
- package/dist/{vue-ui-timer-qxLpO3HX.js → vue-ui-timer-Bs7eMmiC.js} +7 -7
- package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
- package/dist/{vue-ui-treemap-B4-IPDxV.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
- package/dist/{vue-ui-vertical-bar-Y5LefeNg.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
- package/dist/{vue-ui-waffle-gvnJOZlg.js → vue-ui-waffle-C7moVBln.js} +396 -377
- package/dist/{vue-ui-wheel-BzS_N3GP.js → vue-ui-wheel-KrGLMCqW.js} +185 -169
- package/dist/{vue-ui-word-cloud-vWhTarrE.js → vue-ui-word-cloud-BQSu6kiR.js} +234 -218
- package/dist/{vue-ui-world-CqWuE8ZR.js → vue-ui-world-DdoMFJcV.js} +344 -326
- package/dist/{vue-ui-xy-BxpuE9Ng.js → vue-ui-xy-B2fjTYMJ.js} +1602 -1708
- package/dist/{vue-ui-xy-canvas-C9YQjaUA.js → vue-ui-xy-canvas-oUXISeU8.js} +12 -12
- package/package.json +1 -1
- package/dist/vue-data-ui-DH8opsJv.js +0 -325
- package/dist/vue-ui-flow-B72CBzC3.js +0 -909
- package/dist/vue-ui-mood-radar-CqJPicZv.js +0 -853
- package/dist/vue-ui-tiremarks-Cxx97FLg.js +0 -407
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
1
|
+
import { defineAsyncComponent as F, useSlots as Nt, computed as c, ref as i, toRefs as Vt, watch as J, shallowRef as Qe, 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 jt, b as qt, p as M, o as tt, f as xe, g as Ht, e as Xt, a as K, d as P, X as Yt, s as Jt, i as Kt, E as Qt, h as Zt, x as el, y as tl, O as ll, z as al, A as ol } from "./lib-GIYcnm0E.js";
|
|
3
|
+
import { t as ul, u as sl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as nl, a as lt } from "./useNestedProp-mxyyqd0B.js";
|
|
5
|
+
import { u as rl, B as il } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as vl } from "./usePrinter-DYRFiw7X.js";
|
|
7
|
+
import { u as cl } from "./useSvgExport-B7-Vrjtu.js";
|
|
8
|
+
import { u as dl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import pl from "./img-6wPuVVtk.js";
|
|
11
|
+
import { _ as fl } from "./Shape-DJG2zW7b.js";
|
|
12
|
+
import gl from "./Title-D17CJXko.js";
|
|
13
|
+
import { t as yl } from "./themes-Dw-dDudK.js";
|
|
14
|
+
import bl from "./Legend-DsogCeTb.js";
|
|
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"], zl = {
|
|
16
17
|
key: 4,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, Nl = ["id"], Vl = ["onClick"], Ml = ["innerHTML"], Rl = {
|
|
19
20
|
__name: "vue-ui-waffle",
|
|
20
21
|
props: {
|
|
21
22
|
config: {
|
|
@@ -32,14 +33,14 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
emits: ["selectLegend"],
|
|
35
|
-
setup(
|
|
36
|
-
const
|
|
37
|
-
...
|
|
36
|
+
setup(at, { expose: ot, emit: ut }) {
|
|
37
|
+
const st = F(() => import("./Tooltip-CtVdvbZi.js")), nt = F(() => import("./BaseIcon-CtqN7W_g.js")), rt = F(() => import("./DataTable-BeI6gYJX.js")), it = F(() => import("./vue-ui-accordion-Dch9YrCi.js")), vt = F(() => import("./UserOptions-B3vCIe-u.js")), ct = F(() => import("./PenAndPaper-BxbYiPy4.js")), dt = F(() => import("./PackageVersion-C9oklnuy.js")), ht = F(() => import("./BaseDraggableDialog-q3pgSDTz.js")), { vue_ui_waffle: pt } = nl(), w = at, ft = Nt(), 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), j = i(null), re = i(null), e = i(de()), { loading: Le, FINAL_DATASET: Q, manualLoading: ie } = rl({
|
|
38
|
+
...Vt(w),
|
|
38
39
|
FINAL_CONFIG: e,
|
|
39
|
-
prepareConfig:
|
|
40
|
+
prepareConfig: de,
|
|
40
41
|
callback: () => {
|
|
41
42
|
Promise.resolve().then(async () => {
|
|
42
|
-
p.value =
|
|
43
|
+
p.value = he();
|
|
43
44
|
});
|
|
44
45
|
},
|
|
45
46
|
skeletonDataset: [
|
|
@@ -59,7 +60,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
59
60
|
color: "#CACACA"
|
|
60
61
|
}
|
|
61
62
|
],
|
|
62
|
-
skeletonConfig:
|
|
63
|
+
skeletonConfig: jt({
|
|
63
64
|
defaultConfig: e.value,
|
|
64
65
|
userConfig: {
|
|
65
66
|
useCustomCells: !1,
|
|
@@ -85,72 +86,72 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
})
|
|
88
|
-
}), { userOptionsVisible: ve, setUserOptionsVisibility: Fe, keepUserOptionState:
|
|
89
|
-
function
|
|
90
|
-
const t =
|
|
89
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: Fe, keepUserOptionState: Be } = dl({ config: e.value }), { svgRef: ce } = hl({ config: e.value.style.chart.title });
|
|
90
|
+
function de() {
|
|
91
|
+
const t = lt({
|
|
91
92
|
userConfig: w.config,
|
|
92
|
-
defaultConfig:
|
|
93
|
+
defaultConfig: pt
|
|
93
94
|
});
|
|
94
95
|
return t.theme ? {
|
|
95
|
-
...
|
|
96
|
-
userConfig:
|
|
96
|
+
...lt({
|
|
97
|
+
userConfig: yl.vue_ui_waffle[t.theme] || w.config,
|
|
97
98
|
defaultConfig: t
|
|
98
99
|
}),
|
|
99
|
-
customPalette:
|
|
100
|
+
customPalette: qt[t.theme] || M
|
|
100
101
|
} : t;
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
J(() => w.config, (t) => {
|
|
104
|
+
Le.value || (e.value = de()), ve.value = !e.value.userOptions.showOnChartHover, ze(), 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;
|
|
104
105
|
}, { deep: !0 });
|
|
105
|
-
const
|
|
106
|
+
const L = Qe(null), E = Qe(null), De = c(() => !!e.value.debug);
|
|
106
107
|
function ze() {
|
|
107
|
-
if (
|
|
108
|
+
if (tt(w.dataset) ? (xe({
|
|
108
109
|
componentName: "VueUiWaffle",
|
|
109
110
|
type: "dataset",
|
|
110
111
|
debug: De.value
|
|
111
|
-
}), ue.value = !1, ie.value = !0) : w.dataset.forEach((t,
|
|
112
|
-
|
|
112
|
+
}), ue.value = !1, ie.value = !0) : w.dataset.forEach((t, l) => {
|
|
113
|
+
Ht({
|
|
113
114
|
datasetObject: t,
|
|
114
115
|
requiredAttributes: ["name", "values"]
|
|
115
|
-
}).forEach((
|
|
116
|
-
|
|
116
|
+
}).forEach((a) => {
|
|
117
|
+
xe({
|
|
117
118
|
componentName: "VueUiWaffle",
|
|
118
119
|
type: "datasetSerieAttribute",
|
|
119
|
-
property:
|
|
120
|
-
index:
|
|
120
|
+
property: a,
|
|
121
|
+
index: l,
|
|
121
122
|
debug: De.value
|
|
122
123
|
});
|
|
123
124
|
});
|
|
124
|
-
}),
|
|
125
|
-
const t =
|
|
126
|
-
const { width:
|
|
125
|
+
}), tt(w.dataset) || (ie.value = e.value.loading), e.value.responsive) {
|
|
126
|
+
const t = ul(() => {
|
|
127
|
+
const { width: l, height: a } = sl({
|
|
127
128
|
chart: I.value,
|
|
128
|
-
title: e.value.style.chart.title.text ?
|
|
129
|
-
legend: e.value.style.chart.legend.show ?
|
|
130
|
-
source:
|
|
131
|
-
noTitle:
|
|
129
|
+
title: e.value.style.chart.title.text ? $e.value : null,
|
|
130
|
+
legend: e.value.style.chart.legend.show ? Ie.value : null,
|
|
131
|
+
source: Te.value,
|
|
132
|
+
noTitle: _e.value
|
|
132
133
|
});
|
|
133
134
|
requestAnimationFrame(() => {
|
|
134
|
-
z.value.width =
|
|
135
|
+
z.value.width = l, z.value.height = a, T.value.width = l, T.value.height = a;
|
|
135
136
|
});
|
|
136
137
|
});
|
|
137
|
-
|
|
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);
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}),
|
|
143
|
-
|
|
141
|
+
Mt(() => {
|
|
142
|
+
Pe.value = !0, ze();
|
|
143
|
+
}), Rt(() => {
|
|
144
|
+
L.value && (E.value && L.value.unobserve(E.value), L.value.disconnect());
|
|
144
145
|
});
|
|
145
|
-
const { isPrinting: Ne, isImaging: Ve, generatePdf: Me, generateImage: Re } =
|
|
146
|
+
const { isPrinting: Ne, isImaging: Ve, generatePdf: Me, generateImage: Re } = vl({
|
|
146
147
|
elementId: `vue-ui-waffle_${b.value}`,
|
|
147
148
|
fileName: e.value.style.chart.title.text || "vue-ui-waffle",
|
|
148
149
|
options: e.value.userOptions.print
|
|
149
|
-
}),
|
|
150
|
+
}), gt = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ee = c(() => Xt(e.value.customPalette)), x = i({
|
|
150
151
|
showTable: e.value.table.show,
|
|
151
152
|
showTooltip: e.value.style.chart.tooltip.show
|
|
152
153
|
});
|
|
153
|
-
|
|
154
|
+
J(e, () => {
|
|
154
155
|
x.value = {
|
|
155
156
|
showTable: e.value.table.show,
|
|
156
157
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -164,141 +165,141 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
164
165
|
left: 0,
|
|
165
166
|
height: 512,
|
|
166
167
|
width: 512
|
|
167
|
-
}), _ =
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
let d =
|
|
168
|
+
}), _ = c(() => (T.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = c(() => (T.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), yt = c(() => Math.max(1e-4, T.value.width / e.value.style.chart.layout.grid.size)), Ue = c(() => Math.max(1e-4, T.value.height / e.value.style.chart.layout.grid.size));
|
|
169
|
+
function Ge(t) {
|
|
170
|
+
const l = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((C, me) => C + me, 0), o = t.map((C) => C / a * l), u = o.map(Math.floor), s = o.map((C) => C % 1);
|
|
171
|
+
let d = l - u.reduce((C, me) => C + me, 0);
|
|
171
172
|
for (; d > 0; ) {
|
|
172
|
-
let C =
|
|
173
|
-
u[C] += 1,
|
|
173
|
+
let C = s.indexOf(Math.max(...s));
|
|
174
|
+
u[C] += 1, s[C] = 0, d -= 1;
|
|
174
175
|
}
|
|
175
176
|
return u;
|
|
176
177
|
}
|
|
177
|
-
const
|
|
178
|
-
function
|
|
179
|
-
return
|
|
178
|
+
const q = i(!1);
|
|
179
|
+
function he() {
|
|
180
|
+
return q.value = Q.value.flatMap((t) => t.values.reduce((l, a) => l + a, 0)).reduce((t, l) => t + l, 0) === 0, Q.value.map((t, l) => ({
|
|
180
181
|
...t,
|
|
181
|
-
color:
|
|
182
|
-
uid: `serie_${
|
|
183
|
-
absoluteIndex:
|
|
182
|
+
color: Zt(t.color) || Ee.value[l] || M[l] || M[l % M.length],
|
|
183
|
+
uid: `serie_${l}`,
|
|
184
|
+
absoluteIndex: l
|
|
184
185
|
}));
|
|
185
186
|
}
|
|
186
|
-
const
|
|
187
|
-
|
|
187
|
+
const pe = c(() => he()), p = i(pe.value);
|
|
188
|
+
J(() => w.dataset, (t) => {
|
|
188
189
|
Array.isArray(t) && t.length > 0 && (ie.value = !1);
|
|
189
|
-
}, { immediate: !0 }),
|
|
190
|
-
p.value =
|
|
190
|
+
}, { immediate: !0 }), J(() => w.dataset, (t) => {
|
|
191
|
+
p.value = he();
|
|
191
192
|
}, { deep: !0 });
|
|
192
|
-
const
|
|
193
|
-
const t = p.value.filter((
|
|
194
|
-
return
|
|
195
|
-
}),
|
|
196
|
-
const t = p.value.map((
|
|
197
|
-
return
|
|
198
|
-
}),
|
|
199
|
-
[null, void 0].includes(t.values) &&
|
|
193
|
+
const bt = c(() => {
|
|
194
|
+
const t = p.value.filter((l, a) => !f.value.includes(l.uid)).map((l, a) => q.value ? 1 : (l.values || []).reduce((o, u) => o + u, 0));
|
|
195
|
+
return Ge(t);
|
|
196
|
+
}), mt = c(() => {
|
|
197
|
+
const t = p.value.map((l, a) => q.value ? 1 : (l.values || []).reduce((o, u) => o + u));
|
|
198
|
+
return Ge(t);
|
|
199
|
+
}), H = c(() => (Q.value.forEach((t, l) => {
|
|
200
|
+
[null, void 0].includes(t.values) && xe({
|
|
200
201
|
componentName: "VueUiWaffle",
|
|
201
202
|
type: "datasetSerieAttribute",
|
|
202
203
|
property: "values (number[])",
|
|
203
|
-
index:
|
|
204
|
+
index: l
|
|
204
205
|
});
|
|
205
|
-
}), p.value.filter((t,
|
|
206
|
+
}), p.value.filter((t, l) => !f.value.includes(t.uid)).map((t, l) => ({
|
|
206
207
|
absoluteIndex: t.absoluteIndex,
|
|
207
208
|
uid: t.uid,
|
|
208
209
|
name: t.name,
|
|
209
210
|
color: t.color,
|
|
210
|
-
value: (t.values || []).reduce((
|
|
211
|
+
value: (t.values || []).reduce((a, o) => a + o, 0),
|
|
211
212
|
absoluteValues: t.values || [],
|
|
212
|
-
proportion:
|
|
213
|
-
})))),
|
|
213
|
+
proportion: bt.value[l]
|
|
214
|
+
})))), wt = c(() => p.value.map((t, l) => ({
|
|
214
215
|
absoluteIndex: t.absoluteIndex,
|
|
215
216
|
uid: t.uid,
|
|
216
217
|
name: t.name,
|
|
217
218
|
color: t.color,
|
|
218
|
-
value: (t.values || []).reduce((
|
|
219
|
+
value: (t.values || []).reduce((a, o) => a + o, 0),
|
|
219
220
|
absoluteValues: t.values || [],
|
|
220
|
-
proportion:
|
|
221
|
+
proportion: mt.value[l]
|
|
221
222
|
})));
|
|
222
|
-
function
|
|
223
|
-
return
|
|
223
|
+
function kt() {
|
|
224
|
+
return wt.value.map((t) => ({
|
|
224
225
|
name: t.name,
|
|
225
226
|
color: t.color,
|
|
226
227
|
value: t.value,
|
|
227
228
|
proportion: t.proportion
|
|
228
229
|
}));
|
|
229
230
|
}
|
|
230
|
-
const
|
|
231
|
+
const xt = c(() => {
|
|
231
232
|
let t = 0;
|
|
232
|
-
return
|
|
233
|
-
const o = t, u = o +
|
|
233
|
+
return H.value.map((l, a) => {
|
|
234
|
+
const o = t, u = o + l.proportion, s = [];
|
|
234
235
|
for (let d = Math.floor(o); d < Math.floor(u); d += 1)
|
|
235
|
-
|
|
236
|
+
s.push(d);
|
|
236
237
|
return t = u, {
|
|
237
|
-
...
|
|
238
|
+
...l,
|
|
238
239
|
start: o,
|
|
239
|
-
rects:
|
|
240
|
+
rects: s
|
|
240
241
|
};
|
|
241
242
|
});
|
|
242
|
-
}), r =
|
|
243
|
+
}), r = c(() => xt.value.flatMap((t, l) => t.rects.map((a, o) => ({
|
|
243
244
|
isFirst: o === 0,
|
|
244
|
-
isLongEnough:
|
|
245
|
+
isLongEnough: a.length > 2,
|
|
245
246
|
name: t.name,
|
|
246
247
|
color: t.color,
|
|
247
248
|
value: t.value,
|
|
248
|
-
serieIndex:
|
|
249
|
+
serieIndex: l,
|
|
249
250
|
absoluteStartIndex: o < 3,
|
|
250
251
|
serieId: t.uid,
|
|
251
252
|
...t
|
|
252
|
-
}))).map((t,
|
|
253
|
+
}))).map((t, l) => ({
|
|
253
254
|
...t,
|
|
254
|
-
isAbsoluteFirst:
|
|
255
|
-
}))),
|
|
255
|
+
isAbsoluteFirst: l % e.value.style.chart.layout.grid.size === 0
|
|
256
|
+
}))), U = c(() => {
|
|
256
257
|
const t = [];
|
|
257
|
-
for (let
|
|
258
|
-
for (let
|
|
258
|
+
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
259
|
+
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
259
260
|
t.push({
|
|
260
|
-
isStartOfLine:
|
|
261
|
-
position: e.value.style.chart.layout.grid.vertical ?
|
|
262
|
-
x: (e.value.style.chart.layout.grid.vertical ?
|
|
263
|
-
y: (e.value.style.chart.layout.grid.vertical ?
|
|
261
|
+
isStartOfLine: a === 0,
|
|
262
|
+
position: e.value.style.chart.layout.grid.vertical ? l : a,
|
|
263
|
+
x: (e.value.style.chart.layout.grid.vertical ? l : a) * (_.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
264
|
+
y: (e.value.style.chart.layout.grid.vertical ? a : l) * (S.value + e.value.style.chart.layout.grid.spaceBetween) + T.value.top
|
|
264
265
|
});
|
|
265
266
|
return t;
|
|
266
|
-
}), f = i([]),
|
|
267
|
+
}), f = i([]), X = i(!1), We = i(null), je = i(null);
|
|
267
268
|
function qe(t) {
|
|
268
|
-
if (
|
|
269
|
+
if (q.value) return;
|
|
269
270
|
if (!e.value.useAnimation) {
|
|
270
|
-
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 < N.value.length - 1 && N.value.length > 1 && f.value.push(t);
|
|
271
272
|
return;
|
|
272
273
|
}
|
|
273
|
-
const
|
|
274
|
-
let o =
|
|
275
|
-
if (!(
|
|
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);
|
|
275
|
+
let o = a;
|
|
276
|
+
if (!(a === 0 && l === 0)) {
|
|
276
277
|
if (f.value.includes(t)) {
|
|
277
|
-
let
|
|
278
|
-
o > u ? (cancelAnimationFrame(
|
|
278
|
+
let s = function() {
|
|
279
|
+
o > u ? (cancelAnimationFrame(We.value), p.value = p.value.map((d, C) => d.uid === t ? {
|
|
279
280
|
...d,
|
|
280
281
|
values: [u]
|
|
281
|
-
} : d),
|
|
282
|
+
} : d), X.value = !1) : (X.value = !0, o += u * 0.025, p.value = p.value.map((d, C) => d.uid === t ? {
|
|
282
283
|
...d,
|
|
283
284
|
values: [o]
|
|
284
|
-
} : d),
|
|
285
|
+
} : d), We.value = requestAnimationFrame(s));
|
|
285
286
|
};
|
|
286
287
|
f.value = f.value.filter((d) => d !== t);
|
|
287
|
-
const u =
|
|
288
|
-
|
|
289
|
-
} else if (f.value.length <
|
|
288
|
+
const u = l;
|
|
289
|
+
s();
|
|
290
|
+
} else if (f.value.length < N.value.length - 1 && N.value.length > 1) {
|
|
290
291
|
let u = function() {
|
|
291
|
-
o <
|
|
292
|
-
...
|
|
292
|
+
o < a / 100 ? (cancelAnimationFrame(je.value), f.value.push(t), p.value = p.value.map((s, d) => s.uid === t ? {
|
|
293
|
+
...s,
|
|
293
294
|
values: [0]
|
|
294
|
-
} :
|
|
295
|
-
...
|
|
295
|
+
} : s), X.value = !1) : (X.value = !0, o /= 1.15, p.value = p.value.map((s) => s.uid === t ? {
|
|
296
|
+
...s,
|
|
296
297
|
values: [o]
|
|
297
|
-
} :
|
|
298
|
+
} : s), je.value = requestAnimationFrame(u));
|
|
298
299
|
};
|
|
299
300
|
u();
|
|
300
301
|
}
|
|
301
|
-
|
|
302
|
+
_t("selectLegend", H.value.map((u) => ({
|
|
302
303
|
name: u.name,
|
|
303
304
|
color: u.color,
|
|
304
305
|
value: u.value,
|
|
@@ -306,75 +307,84 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
306
307
|
})));
|
|
307
308
|
}
|
|
308
309
|
}
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
310
|
+
const N = c(() => p.value.map((t, l) => {
|
|
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
|
+
return {
|
|
313
|
+
name: t.name,
|
|
314
|
+
color: t.color || Ee[l] || M[l] || M[l % M.length],
|
|
315
|
+
value: a,
|
|
316
|
+
proportion: o,
|
|
317
|
+
uid: t.uid,
|
|
318
|
+
shape: "square"
|
|
319
|
+
};
|
|
320
|
+
}).map((t, l) => ({
|
|
316
321
|
...t,
|
|
317
|
-
proportion: t.value / p.value.map((a) => (a.values || []).reduce((l, o) => l + o, 0)).reduce((a, l) => a + l, 0),
|
|
318
322
|
opacity: f.value.includes(t.uid) ? 0.5 : 1,
|
|
319
323
|
segregate: () => qe(t.uid),
|
|
320
|
-
isSegregated: f.value.includes(t.uid)
|
|
321
|
-
|
|
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 ? K(e.value.style.chart.layout.labels.dataLabels.formatter, t.value, P({
|
|
326
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
327
|
+
v: t.value,
|
|
328
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
329
|
+
r: e.value.style.chart.legend.roundingValue
|
|
330
|
+
}), { datapoint: t, index: l }) : ""}${e.value.style.chart.legend.showPercentage ? f.value.includes(t.uid) ? `${e.value.style.chart.legend.showValue ? " (" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(t.value / A.value) ? "-" : P({ v: t.value / A.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
331
|
+
}))), Ct = c(() => ({
|
|
322
332
|
cy: "waffle-div-legend",
|
|
323
333
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
324
334
|
color: e.value.style.chart.legend.color,
|
|
325
335
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
326
336
|
paddingBottom: 12,
|
|
327
337
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
328
|
-
})),
|
|
329
|
-
function Ct(t) {
|
|
330
|
-
const a = r.value[t];
|
|
331
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: a, seriesIndex: a.serieIndex });
|
|
332
|
-
}
|
|
338
|
+
})), A = c(() => H.value.map((t) => t.value).reduce((t, l) => t + l, 0)), fe = i(null), ge = i(null);
|
|
333
339
|
function $t(t) {
|
|
334
|
-
const
|
|
335
|
-
e.value.events.
|
|
340
|
+
const l = r.value[t];
|
|
341
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.serieIndex });
|
|
336
342
|
}
|
|
337
343
|
function It(t) {
|
|
344
|
+
const l = r.value[t];
|
|
345
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: l.serieIndex }), ge.value = null, se.value = !1, R.value = null;
|
|
346
|
+
}
|
|
347
|
+
function Tt(t) {
|
|
338
348
|
if (f.value.length === w.dataset.length) return;
|
|
339
|
-
const
|
|
340
|
-
|
|
341
|
-
datapoint:
|
|
342
|
-
seriesIndex:
|
|
349
|
+
const l = r.value[t];
|
|
350
|
+
fe.value = {
|
|
351
|
+
datapoint: l,
|
|
352
|
+
seriesIndex: l.absoluteIndex,
|
|
343
353
|
series: p.value,
|
|
344
354
|
config: e.value
|
|
345
|
-
}, e.value.events.datapointEnter &&
|
|
346
|
-
const
|
|
347
|
-
if (
|
|
355
|
+
}, e.value.events.datapointEnter && ge.value !== l.serieIndex && e.value.events.datapointEnter({ datapoint: l, seriesIndex: l.serieIndex }), ge.value = l.serieIndex, se.value = !0, R.value = r.value[t].serieIndex;
|
|
356
|
+
const a = e.value.style.chart.tooltip.customFormat;
|
|
357
|
+
if (al(a) && ol(() => a({
|
|
348
358
|
seriesIndex: r.value[t].absoluteIndex,
|
|
349
|
-
datapoint:
|
|
359
|
+
datapoint: l,
|
|
350
360
|
series: p.value,
|
|
351
361
|
config: e.value
|
|
352
362
|
})))
|
|
353
|
-
ne.value =
|
|
363
|
+
ne.value = a({
|
|
354
364
|
seriesIndex: r.value[t].absoluteIndex,
|
|
355
|
-
datapoint:
|
|
365
|
+
datapoint: l,
|
|
356
366
|
series: p.value,
|
|
357
367
|
config: e.value
|
|
358
368
|
});
|
|
359
369
|
else {
|
|
360
370
|
let o = "";
|
|
361
|
-
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;">${
|
|
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>${K(
|
|
362
372
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
363
|
-
|
|
373
|
+
l.value,
|
|
364
374
|
P({
|
|
365
375
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
366
|
-
v:
|
|
376
|
+
v: l.value,
|
|
367
377
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
368
378
|
r: e.value.style.chart.tooltip.roundingValue
|
|
369
379
|
}),
|
|
370
380
|
{
|
|
371
|
-
datapoint:
|
|
381
|
+
datapoint: l,
|
|
372
382
|
seriesIndex: r.value[t].absoluteIndex,
|
|
373
383
|
series: p.value
|
|
374
384
|
}
|
|
375
385
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
376
386
|
const u = P({
|
|
377
|
-
v:
|
|
387
|
+
v: q.value ? 1 / Q.value.length * 100 : l.value / A.value * 100,
|
|
378
388
|
s: "%",
|
|
379
389
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
380
390
|
});
|
|
@@ -383,21 +393,21 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
383
393
|
ne.value = o;
|
|
384
394
|
}
|
|
385
395
|
}
|
|
386
|
-
const
|
|
387
|
-
const t =
|
|
388
|
-
name:
|
|
389
|
-
color:
|
|
390
|
-
})),
|
|
391
|
-
return { head: t, body:
|
|
396
|
+
const _t = ut, O = c(() => {
|
|
397
|
+
const t = H.value.map((a) => ({
|
|
398
|
+
name: a.name,
|
|
399
|
+
color: a.color
|
|
400
|
+
})), l = H.value.map((a) => a.value);
|
|
401
|
+
return { head: t, body: l };
|
|
392
402
|
});
|
|
393
|
-
function
|
|
394
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
403
|
+
function Z(t) {
|
|
404
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(R.value) && R.value !== t ? `url(#blur_${b.value})` : "";
|
|
395
405
|
}
|
|
396
|
-
function
|
|
397
|
-
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !
|
|
406
|
+
function St(t, l) {
|
|
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;
|
|
398
408
|
}
|
|
399
|
-
function At(t,
|
|
400
|
-
const
|
|
409
|
+
function At(t, l = null) {
|
|
410
|
+
const a = K(
|
|
401
411
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
402
412
|
r.value[t].value,
|
|
403
413
|
P({
|
|
@@ -406,54 +416,54 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
406
416
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
407
417
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
408
418
|
}),
|
|
409
|
-
{ datapoint: r.value[t], position:
|
|
410
|
-
), o = P({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ?
|
|
419
|
+
{ datapoint: r.value[t], position: l }
|
|
420
|
+
), o = P({ v: r.value[t].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage }), u = (e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ll({ source: r.value[t].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : r.value[t].name) + (e.value.style.chart.layout.labels.captions.showPercentage || e.value.style.chart.layout.labels.captions.showValue ? ":" : ""), s = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
|
|
411
421
|
let d = "";
|
|
412
|
-
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${
|
|
422
|
+
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${a})` : e.value.style.chart.layout.labels.captions.showPercentage && !e.value.style.chart.layout.labels.captions.showValue ? d = o : !e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue && (d = a), `${s}${d}`;
|
|
413
423
|
}
|
|
414
424
|
function ye(t = null) {
|
|
415
|
-
|
|
416
|
-
const
|
|
425
|
+
Gt(() => {
|
|
426
|
+
const l = O.value.head.map((u, s) => [[
|
|
417
427
|
u.name
|
|
418
|
-
], [O.value.body[
|
|
419
|
-
t ? t(o) :
|
|
428
|
+
], [O.value.body[s]], [isNaN(O.value.body[s] / A.value) ? "-" : O.value.body[s] / A.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(l), o = el(a);
|
|
429
|
+
t ? t(o) : tl({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
420
430
|
});
|
|
421
431
|
}
|
|
422
|
-
const
|
|
432
|
+
const ee = c(() => {
|
|
423
433
|
const t = [
|
|
424
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>',
|
|
425
|
-
|
|
435
|
+
K(
|
|
426
436
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
427
|
-
|
|
437
|
+
A.value,
|
|
428
438
|
P({
|
|
429
439
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
430
|
-
v:
|
|
440
|
+
v: A.value,
|
|
431
441
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
432
442
|
r: e.value.table.td.roundingValue
|
|
433
443
|
})
|
|
434
444
|
),
|
|
435
445
|
"100%"
|
|
436
|
-
],
|
|
446
|
+
], l = O.value.head.map((u, s) => [
|
|
437
447
|
{
|
|
438
448
|
color: u.color,
|
|
439
449
|
name: u.name
|
|
440
450
|
},
|
|
441
|
-
|
|
451
|
+
K(
|
|
442
452
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
443
|
-
O.value.body[
|
|
453
|
+
O.value.body[s],
|
|
444
454
|
P({
|
|
445
455
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
446
|
-
v: O.value.body[
|
|
456
|
+
v: O.value.body[s],
|
|
447
457
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
448
458
|
r: e.value.table.td.roundingValue
|
|
449
459
|
})
|
|
450
460
|
),
|
|
451
|
-
isNaN(O.value.body[
|
|
452
|
-
v: O.value.body[
|
|
461
|
+
isNaN(O.value.body[s] / A.value) ? "-" : P({
|
|
462
|
+
v: O.value.body[s] / A.value * 100,
|
|
453
463
|
s: "%",
|
|
454
464
|
r: e.value.table.td.roundingPercentage
|
|
455
465
|
})
|
|
456
|
-
]),
|
|
466
|
+
]), a = {
|
|
457
467
|
th: {
|
|
458
468
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
459
469
|
color: e.value.table.th.color,
|
|
@@ -473,13 +483,13 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
473
483
|
];
|
|
474
484
|
return {
|
|
475
485
|
head: t,
|
|
476
|
-
body:
|
|
477
|
-
config:
|
|
486
|
+
body: l,
|
|
487
|
+
config: a,
|
|
478
488
|
colNames: o
|
|
479
489
|
};
|
|
480
490
|
}), V = i(!1);
|
|
481
491
|
function He(t) {
|
|
482
|
-
V.value = t,
|
|
492
|
+
V.value = t, Ce.value += 1;
|
|
483
493
|
}
|
|
484
494
|
function Xe() {
|
|
485
495
|
x.value.showTable = !x.value.showTable;
|
|
@@ -487,26 +497,26 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
487
497
|
function Ye() {
|
|
488
498
|
x.value.showTooltip = !x.value.showTooltip;
|
|
489
499
|
}
|
|
490
|
-
const
|
|
491
|
-
function
|
|
492
|
-
|
|
500
|
+
const te = i(!1);
|
|
501
|
+
function be() {
|
|
502
|
+
te.value = !te.value;
|
|
493
503
|
}
|
|
494
|
-
async function
|
|
504
|
+
async function Ot({ scale: t = 2 } = {}) {
|
|
495
505
|
if (!I.value) return;
|
|
496
|
-
const { width:
|
|
506
|
+
const { width: l, height: a } = I.value.getBoundingClientRect(), o = l / a, { imageUri: u, base64: s } = await pl({ domElement: I.value, base64: !0, img: !0, scale: t });
|
|
497
507
|
return {
|
|
498
508
|
imageUri: u,
|
|
499
|
-
base64:
|
|
509
|
+
base64: s,
|
|
500
510
|
title: e.value.style.chart.title.text,
|
|
501
|
-
width:
|
|
502
|
-
height:
|
|
511
|
+
width: l,
|
|
512
|
+
height: a,
|
|
503
513
|
aspectRatio: o
|
|
504
514
|
};
|
|
505
515
|
}
|
|
506
|
-
const
|
|
507
|
-
const t = e.value.table.useDialog && !e.value.table.show,
|
|
516
|
+
const Y = c(() => {
|
|
517
|
+
const t = e.value.table.useDialog && !e.value.table.show, l = x.value.showTable;
|
|
508
518
|
return {
|
|
509
|
-
component: t ?
|
|
519
|
+
component: t ? ht : it,
|
|
510
520
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
511
521
|
props: t ? {
|
|
512
522
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -519,7 +529,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
519
529
|
} : {
|
|
520
530
|
hideDetails: !0,
|
|
521
531
|
config: {
|
|
522
|
-
open:
|
|
532
|
+
open: l,
|
|
523
533
|
maxHeight: 1e4,
|
|
524
534
|
body: {
|
|
525
535
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -533,54 +543,72 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
533
543
|
}
|
|
534
544
|
};
|
|
535
545
|
});
|
|
536
|
-
|
|
537
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
546
|
+
J(() => x.value.showTable, (t) => {
|
|
547
|
+
e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
|
|
538
548
|
});
|
|
539
549
|
function Je() {
|
|
540
550
|
x.value.showTable = !1, re.value && re.value.setTableIconState(!1);
|
|
541
551
|
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
552
|
+
const Pt = c(() => N.value.map((t) => ({
|
|
553
|
+
...t,
|
|
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: zt } = cl({
|
|
556
|
+
svg: ce,
|
|
557
|
+
title: Bt,
|
|
558
|
+
legend: Ft,
|
|
559
|
+
legendItems: Pt,
|
|
560
|
+
backgroundColor: Lt
|
|
561
|
+
});
|
|
562
|
+
async function Ke({ isCb: t }) {
|
|
563
|
+
if (t) {
|
|
564
|
+
const { blob: l, url: a, text: o, dataUrl: u } = await zt();
|
|
565
|
+
e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: u });
|
|
566
|
+
} else
|
|
567
|
+
Dt();
|
|
568
|
+
}
|
|
569
|
+
return ot({
|
|
570
|
+
getData: kt,
|
|
571
|
+
getImage: Ot,
|
|
545
572
|
generatePdf: Me,
|
|
546
573
|
generateCsv: ye,
|
|
547
574
|
generateImage: Re,
|
|
575
|
+
generateSvg: Ke,
|
|
548
576
|
toggleTable: Xe,
|
|
549
577
|
toggleTooltip: Ye,
|
|
550
|
-
toggleAnnotator:
|
|
578
|
+
toggleAnnotator: be,
|
|
551
579
|
toggleFullscreen: He
|
|
552
|
-
}), (t,
|
|
553
|
-
class:
|
|
580
|
+
}), (t, l) => (n(), v("div", {
|
|
581
|
+
class: Ze(`vue-data-ui-component vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
554
582
|
ref_key: "waffleChart",
|
|
555
583
|
ref: I,
|
|
556
584
|
id: `vue-ui-waffle_${b.value}`,
|
|
557
|
-
style:
|
|
558
|
-
onMouseenter:
|
|
559
|
-
onMouseleave:
|
|
585
|
+
style: le(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
586
|
+
onMouseenter: l[2] || (l[2] = () => h(Fe)(!0)),
|
|
587
|
+
onMouseleave: l[3] || (l[3] = () => h(Fe)(!1))
|
|
560
588
|
}, [
|
|
561
|
-
e.value.userOptions.buttons.annotator ? (
|
|
589
|
+
e.value.userOptions.buttons.annotator ? (n(), B(h(ct), {
|
|
562
590
|
key: 0,
|
|
563
|
-
svgRef:
|
|
591
|
+
svgRef: h(ce),
|
|
564
592
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
565
593
|
color: e.value.style.chart.color,
|
|
566
|
-
active:
|
|
567
|
-
onClose:
|
|
594
|
+
active: te.value,
|
|
595
|
+
onClose: be
|
|
568
596
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
|
|
569
|
-
|
|
597
|
+
gt.value ? (n(), v("div", {
|
|
570
598
|
key: 1,
|
|
571
599
|
ref_key: "noTitle",
|
|
572
|
-
ref:
|
|
600
|
+
ref: _e,
|
|
573
601
|
class: "vue-data-ui-no-title-space",
|
|
574
602
|
style: "height:36px; width: 100%;background:transparent"
|
|
575
603
|
}, null, 512)) : m("", !0),
|
|
576
|
-
e.value.style.chart.title.text ? (
|
|
604
|
+
e.value.style.chart.title.text ? (n(), v("div", {
|
|
577
605
|
key: 2,
|
|
578
606
|
ref_key: "chartTitle",
|
|
579
|
-
ref:
|
|
607
|
+
ref: $e,
|
|
580
608
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
581
609
|
}, [
|
|
582
|
-
(
|
|
583
|
-
key: `title_${
|
|
610
|
+
(n(), B(gl, {
|
|
611
|
+
key: `title_${Se.value}`,
|
|
584
612
|
config: {
|
|
585
613
|
title: {
|
|
586
614
|
cy: "waffle-title",
|
|
@@ -595,19 +623,20 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
595
623
|
], 512)) : m("", !0),
|
|
596
624
|
k("div", {
|
|
597
625
|
id: `legend-top-${b.value}`
|
|
598
|
-
}, null, 8,
|
|
599
|
-
e.value.userOptions.show && ue.value && (
|
|
626
|
+
}, null, 8, kl),
|
|
627
|
+
e.value.userOptions.show && ue.value && (h(Be) || h(ve)) ? (n(), B(h(vt), {
|
|
600
628
|
ref_key: "userOptionsRef",
|
|
601
629
|
ref: re,
|
|
602
|
-
key: `user_options_${
|
|
630
|
+
key: `user_options_${Ce.value}`,
|
|
603
631
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
604
632
|
color: e.value.style.chart.color,
|
|
605
|
-
isPrinting:
|
|
606
|
-
isImaging:
|
|
633
|
+
isPrinting: h(Ne),
|
|
634
|
+
isImaging: h(Ve),
|
|
607
635
|
uid: b.value,
|
|
608
636
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
609
637
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
610
638
|
hasImg: e.value.userOptions.buttons.img,
|
|
639
|
+
hasSvg: e.value.userOptions.buttons.svg,
|
|
611
640
|
hasXls: e.value.userOptions.buttons.csv,
|
|
612
641
|
hasTable: e.value.userOptions.buttons.table,
|
|
613
642
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
@@ -617,89 +646,90 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
617
646
|
chartElement: I.value,
|
|
618
647
|
position: e.value.userOptions.position,
|
|
619
648
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
620
|
-
isAnnotation:
|
|
649
|
+
isAnnotation: te.value,
|
|
621
650
|
callbacks: e.value.userOptions.callbacks,
|
|
622
651
|
printScale: e.value.userOptions.print.scale,
|
|
623
652
|
tableDialog: e.value.table.useDialog,
|
|
624
653
|
onToggleFullscreen: He,
|
|
625
|
-
onGeneratePdf:
|
|
654
|
+
onGeneratePdf: h(Me),
|
|
626
655
|
onGenerateCsv: ye,
|
|
627
|
-
onGenerateImage:
|
|
656
|
+
onGenerateImage: h(Re),
|
|
657
|
+
onGenerateSvg: Ke,
|
|
628
658
|
onToggleTable: Xe,
|
|
629
659
|
onToggleTooltip: Ye,
|
|
630
|
-
onToggleAnnotator:
|
|
631
|
-
style:
|
|
632
|
-
visibility:
|
|
660
|
+
onToggleAnnotator: be,
|
|
661
|
+
style: le({
|
|
662
|
+
visibility: h(Be) ? h(ve) ? "visible" : "hidden" : "visible"
|
|
633
663
|
})
|
|
634
|
-
},
|
|
664
|
+
}, we({ _: 2 }, [
|
|
635
665
|
t.$slots.menuIcon ? {
|
|
636
666
|
name: "menuIcon",
|
|
637
|
-
fn:
|
|
638
|
-
|
|
667
|
+
fn: g(({ isOpen: a, color: o }) => [
|
|
668
|
+
y(t.$slots, "menuIcon", G(W({ isOpen: a, color: o })), void 0, !0)
|
|
639
669
|
]),
|
|
640
670
|
key: "0"
|
|
641
671
|
} : void 0,
|
|
642
672
|
t.$slots.optionTooltip ? {
|
|
643
673
|
name: "optionTooltip",
|
|
644
|
-
fn:
|
|
645
|
-
|
|
674
|
+
fn: g(() => [
|
|
675
|
+
y(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
646
676
|
]),
|
|
647
677
|
key: "1"
|
|
648
678
|
} : void 0,
|
|
649
679
|
t.$slots.optionPdf ? {
|
|
650
680
|
name: "optionPdf",
|
|
651
|
-
fn:
|
|
652
|
-
|
|
681
|
+
fn: g(() => [
|
|
682
|
+
y(t.$slots, "optionPdf", {}, void 0, !0)
|
|
653
683
|
]),
|
|
654
684
|
key: "2"
|
|
655
685
|
} : void 0,
|
|
656
686
|
t.$slots.optionCsv ? {
|
|
657
687
|
name: "optionCsv",
|
|
658
|
-
fn:
|
|
659
|
-
|
|
688
|
+
fn: g(() => [
|
|
689
|
+
y(t.$slots, "optionCsv", {}, void 0, !0)
|
|
660
690
|
]),
|
|
661
691
|
key: "3"
|
|
662
692
|
} : void 0,
|
|
663
693
|
t.$slots.optionImg ? {
|
|
664
694
|
name: "optionImg",
|
|
665
|
-
fn:
|
|
666
|
-
|
|
695
|
+
fn: g(() => [
|
|
696
|
+
y(t.$slots, "optionImg", {}, void 0, !0)
|
|
667
697
|
]),
|
|
668
698
|
key: "4"
|
|
669
699
|
} : void 0,
|
|
670
700
|
t.$slots.optionTable ? {
|
|
671
701
|
name: "optionTable",
|
|
672
|
-
fn:
|
|
673
|
-
|
|
702
|
+
fn: g(() => [
|
|
703
|
+
y(t.$slots, "optionTable", {}, void 0, !0)
|
|
674
704
|
]),
|
|
675
705
|
key: "5"
|
|
676
706
|
} : void 0,
|
|
677
707
|
t.$slots.optionFullscreen ? {
|
|
678
708
|
name: "optionFullscreen",
|
|
679
|
-
fn:
|
|
680
|
-
|
|
709
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
710
|
+
y(t.$slots, "optionFullscreen", G(W({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
681
711
|
]),
|
|
682
712
|
key: "6"
|
|
683
713
|
} : void 0,
|
|
684
714
|
t.$slots.optionAnnotator ? {
|
|
685
715
|
name: "optionAnnotator",
|
|
686
|
-
fn:
|
|
687
|
-
|
|
716
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
717
|
+
y(t.$slots, "optionAnnotator", G(W({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
688
718
|
]),
|
|
689
719
|
key: "7"
|
|
690
720
|
} : void 0
|
|
691
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
692
|
-
(
|
|
721
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
|
|
722
|
+
(n(), v("svg", {
|
|
693
723
|
ref_key: "svgRef",
|
|
694
|
-
ref:
|
|
695
|
-
xmlns:
|
|
696
|
-
class:
|
|
724
|
+
ref: ce,
|
|
725
|
+
xmlns: h(Yt),
|
|
726
|
+
class: Ze({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
697
727
|
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
698
|
-
style:
|
|
728
|
+
style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
699
729
|
}, [
|
|
700
|
-
|
|
730
|
+
ae(h(dt)),
|
|
701
731
|
k("defs", null, [
|
|
702
|
-
(
|
|
732
|
+
(n(!0), v($, null, D(r.value, (a, o) => (n(), v("radialGradient", {
|
|
703
733
|
cx: "50%",
|
|
704
734
|
cy: "50%",
|
|
705
735
|
r: "50%",
|
|
@@ -709,13 +739,13 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
709
739
|
}, [
|
|
710
740
|
k("stop", {
|
|
711
741
|
offset: "0%",
|
|
712
|
-
"stop-color":
|
|
713
|
-
}, null, 8,
|
|
742
|
+
"stop-color": h(Jt)(h(Kt)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
743
|
+
}, null, 8, $l),
|
|
714
744
|
k("stop", {
|
|
715
745
|
offset: "100%",
|
|
716
|
-
"stop-color":
|
|
717
|
-
}, null, 8,
|
|
718
|
-
], 8,
|
|
746
|
+
"stop-color": a.color
|
|
747
|
+
}, null, 8, Il)
|
|
748
|
+
], 8, Cl))), 256))
|
|
719
749
|
]),
|
|
720
750
|
k("defs", null, [
|
|
721
751
|
k("filter", {
|
|
@@ -724,7 +754,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
724
754
|
y: "-50%",
|
|
725
755
|
width: "200%",
|
|
726
756
|
height: "200%"
|
|
727
|
-
}, [...
|
|
757
|
+
}, [...l[4] || (l[4] = [
|
|
728
758
|
k("feGaussianBlur", {
|
|
729
759
|
in: "SourceGraphic",
|
|
730
760
|
stdDeviation: 2
|
|
@@ -733,18 +763,18 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
733
763
|
type: "saturate",
|
|
734
764
|
values: "0"
|
|
735
765
|
}, null, -1)
|
|
736
|
-
])], 8,
|
|
766
|
+
])], 8, Tl)
|
|
737
767
|
]),
|
|
738
|
-
e.value.useCustomCells && r.value.length ? (
|
|
739
|
-
x:
|
|
740
|
-
y:
|
|
741
|
-
height:
|
|
768
|
+
e.value.useCustomCells && r.value.length ? (n(!0), v($, { key: 0 }, D(U.value, (a, o) => (n(), v("foreignObject", {
|
|
769
|
+
x: a.x,
|
|
770
|
+
y: a.y,
|
|
771
|
+
height: S.value <= 0 ? 1e-4 : S.value,
|
|
742
772
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
743
773
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
744
774
|
}, [
|
|
745
|
-
|
|
746
|
-
], 8,
|
|
747
|
-
!r.value.length && !e.value.useCustomCells ? (
|
|
775
|
+
y(t.$slots, "cell", ke({ ref_for: !0 }, { cell: { ...a, color: r.value[o].color, ...r.value[o] }, isSelected: [null, void 0].includes(R.value) ? !0 : r.value[o].serieIndex === R.value }), void 0, !0)
|
|
776
|
+
], 8, _l))), 256)) : m("", !0),
|
|
777
|
+
!r.value.length && !e.value.useCustomCells ? (n(), v("rect", {
|
|
748
778
|
key: 1,
|
|
749
779
|
x: 12,
|
|
750
780
|
y: 12,
|
|
@@ -753,115 +783,104 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
753
783
|
rx: 3,
|
|
754
784
|
fill: "none",
|
|
755
785
|
stroke: "black"
|
|
756
|
-
}, null, 8,
|
|
757
|
-
t.$slots.pattern ? (
|
|
758
|
-
(
|
|
759
|
-
|
|
786
|
+
}, null, 8, Sl)) : r.value.length && !e.value.useCustomCells ? (n(), v($, { key: 2 }, [
|
|
787
|
+
t.$slots.pattern ? (n(), v("g", Al, [
|
|
788
|
+
(n(!0), v($, null, D(pe.value, (a) => (n(), v("defs", null, [
|
|
789
|
+
y(t.$slots, "pattern", ke({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${b.value}_${a.absoluteIndex}` }), void 0, !0)
|
|
760
790
|
]))), 256))
|
|
761
791
|
])) : m("", !0),
|
|
762
|
-
(
|
|
792
|
+
(n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
|
|
763
793
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
764
|
-
x:
|
|
765
|
-
y:
|
|
766
|
-
height:
|
|
794
|
+
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
795
|
+
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
796
|
+
height: S.value <= 0 ? 1e-4 : S.value,
|
|
767
797
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
768
798
|
fill: "white",
|
|
769
799
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
770
800
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
771
|
-
filter:
|
|
772
|
-
}, null, 8,
|
|
773
|
-
(
|
|
801
|
+
filter: Z(r.value[o].serieIndex)
|
|
802
|
+
}, null, 8, Ol))), 256)),
|
|
803
|
+
(n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
|
|
774
804
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
775
|
-
x:
|
|
776
|
-
y:
|
|
777
|
-
height:
|
|
805
|
+
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
806
|
+
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
807
|
+
height: S.value <= 0 ? 1e-4 : S.value,
|
|
778
808
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
779
809
|
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${b.value}_${o})` : r.value[o].color,
|
|
780
810
|
stroke: e.value.style.chart.layout.rect.stroke,
|
|
781
811
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
782
|
-
filter:
|
|
783
|
-
}, null, 8,
|
|
784
|
-
t.$slots.pattern ? (
|
|
785
|
-
(
|
|
812
|
+
filter: Z(r.value[o].serieIndex)
|
|
813
|
+
}, null, 8, Pl))), 256)),
|
|
814
|
+
t.$slots.pattern ? (n(), v("g", Ll, [
|
|
815
|
+
(n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
|
|
786
816
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
787
|
-
x:
|
|
788
|
-
y:
|
|
789
|
-
height:
|
|
817
|
+
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
818
|
+
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
819
|
+
height: S.value <= 0 ? 1e-4 : S.value,
|
|
790
820
|
width: _.value <= 0 ? 1e-4 : _.value,
|
|
791
821
|
fill: `url(#pattern_${b.value}_${r.value[o].absoluteIndex})`,
|
|
792
822
|
stroke: "none",
|
|
793
|
-
filter:
|
|
794
|
-
}, null, 8,
|
|
823
|
+
filter: Z(r.value[o].serieIndex)
|
|
824
|
+
}, null, 8, Fl))), 256))
|
|
795
825
|
])) : m("", !0)
|
|
796
826
|
], 64)) : m("", !0),
|
|
797
|
-
(
|
|
798
|
-
|
|
827
|
+
(n(!0), v($, null, D(U.value, (a, o) => (n(), v($, null, [
|
|
828
|
+
St(o, a) ? (n(), v("text", {
|
|
799
829
|
key: `datalabel_${o}`,
|
|
800
|
-
textContent:
|
|
801
|
-
x:
|
|
802
|
-
y:
|
|
830
|
+
textContent: oe(At(o, a)),
|
|
831
|
+
x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
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,
|
|
803
833
|
"font-size": e.value.style.chart.layout.labels.captions.fontSize,
|
|
804
|
-
fill:
|
|
805
|
-
filter:
|
|
806
|
-
}, null, 8,
|
|
834
|
+
fill: h(Qt)(r.value[o].color),
|
|
835
|
+
filter: Z(r.value[o].serieIndex)
|
|
836
|
+
}, null, 8, Bl)) : m("", !0)
|
|
807
837
|
], 64))), 256)),
|
|
808
|
-
(
|
|
809
|
-
x:
|
|
810
|
-
y:
|
|
838
|
+
(n(!0), v($, null, D(U.value, (a, o) => (n(), v("rect", {
|
|
839
|
+
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
840
|
+
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
811
841
|
height: Ue.value,
|
|
812
842
|
width: yt.value,
|
|
813
843
|
fill: "transparent",
|
|
814
844
|
stroke: "none",
|
|
815
|
-
onMouseover: (u) =>
|
|
816
|
-
onMouseleave: (u) =>
|
|
817
|
-
onClick: (u) =>
|
|
818
|
-
}, null, 40,
|
|
819
|
-
|
|
820
|
-
], 14,
|
|
821
|
-
t.$slots.watermark ? (
|
|
822
|
-
|
|
845
|
+
onMouseover: (u) => Tt(o),
|
|
846
|
+
onMouseleave: (u) => It(o),
|
|
847
|
+
onClick: (u) => $t(o)
|
|
848
|
+
}, null, 40, Dl))), 256)),
|
|
849
|
+
y(t.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
850
|
+
], 14, xl)),
|
|
851
|
+
t.$slots.watermark ? (n(), v("div", zl, [
|
|
852
|
+
y(t.$slots, "watermark", G(W({ isPrinting: h(Ne) || h(Ve) })), void 0, !0)
|
|
823
853
|
])) : m("", !0),
|
|
824
854
|
k("div", {
|
|
825
855
|
id: `legend-bottom-${b.value}`
|
|
826
|
-
}, null, 8,
|
|
827
|
-
|
|
856
|
+
}, null, 8, Nl),
|
|
857
|
+
Pe.value ? (n(), B(Et, {
|
|
828
858
|
key: 5,
|
|
829
859
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
830
860
|
}, [
|
|
831
861
|
k("div", {
|
|
832
862
|
ref_key: "chartLegend",
|
|
833
|
-
ref:
|
|
863
|
+
ref: Ie
|
|
834
864
|
}, [
|
|
835
|
-
e.value.style.chart.legend.show ? (
|
|
836
|
-
key: `legend_${
|
|
837
|
-
legendSet:
|
|
838
|
-
config:
|
|
839
|
-
onClickMarker:
|
|
840
|
-
},
|
|
841
|
-
item:
|
|
865
|
+
e.value.style.chart.legend.show ? (n(), B(bl, {
|
|
866
|
+
key: `legend_${Oe.value}`,
|
|
867
|
+
legendSet: N.value,
|
|
868
|
+
config: Ct.value,
|
|
869
|
+
onClickMarker: l[0] || (l[0] = ({ legend: a }) => qe(a.uid))
|
|
870
|
+
}, we({
|
|
871
|
+
item: g(({ legend: a }) => [
|
|
842
872
|
k("div", {
|
|
843
|
-
onClick: (o) =>
|
|
844
|
-
style:
|
|
845
|
-
},
|
|
846
|
-
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
847
|
-
l.value,
|
|
848
|
-
c(P)({
|
|
849
|
-
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
850
|
-
v: l.value,
|
|
851
|
-
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
852
|
-
r: e.value.style.chart.legend.roundingValue,
|
|
853
|
-
isAnimating: N.value
|
|
854
|
-
}),
|
|
855
|
-
{ datapoint: l }
|
|
856
|
-
) : "") + " " + M(e.value.style.chart.legend.showPercentage ? f.value.includes(l.uid) ? `${e.value.style.chart.legend.showValue ? "(" : ""}- %${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? "(" : ""}${isNaN(l.value / S.value) ? "-" : c(P)({ v: l.value / S.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""), 13, Ol)
|
|
873
|
+
onClick: (o) => a.segregate(),
|
|
874
|
+
style: le(`opacity:${f.value.includes(a.uid) ? 0.5 : 1}`)
|
|
875
|
+
}, oe(a.display), 13, Vl)
|
|
857
876
|
]),
|
|
858
877
|
_: 2
|
|
859
878
|
}, [
|
|
860
879
|
t.$slots.pattern ? {
|
|
861
880
|
name: "legend-pattern",
|
|
862
|
-
fn:
|
|
863
|
-
|
|
864
|
-
shape:
|
|
881
|
+
fn: g(({ legend: a, index: o }) => [
|
|
882
|
+
ae(fl, {
|
|
883
|
+
shape: a.shape,
|
|
865
884
|
radius: 30,
|
|
866
885
|
stroke: "none",
|
|
867
886
|
plot: { x: 30, y: 30 },
|
|
@@ -870,21 +889,21 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
870
889
|
]),
|
|
871
890
|
key: "0"
|
|
872
891
|
} : void 0
|
|
873
|
-
]), 1032, ["legendSet", "config"])) :
|
|
892
|
+
]), 1032, ["legendSet", "config"])) : y(t.$slots, "legend", {
|
|
874
893
|
key: 1,
|
|
875
|
-
legend:
|
|
894
|
+
legend: N.value
|
|
876
895
|
}, void 0, !0)
|
|
877
896
|
], 512)
|
|
878
897
|
], 8, ["to"])) : m("", !0),
|
|
879
|
-
t.$slots.source ? (
|
|
898
|
+
t.$slots.source ? (n(), v("div", {
|
|
880
899
|
key: 6,
|
|
881
900
|
ref_key: "source",
|
|
882
|
-
ref:
|
|
901
|
+
ref: Te,
|
|
883
902
|
dir: "auto"
|
|
884
903
|
}, [
|
|
885
|
-
|
|
904
|
+
y(t.$slots, "source", {}, void 0, !0)
|
|
886
905
|
], 512)) : m("", !0),
|
|
887
|
-
|
|
906
|
+
ae(h(st), {
|
|
888
907
|
show: x.value.showTooltip && se.value && f.value.length < w.dataset.length,
|
|
889
908
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
890
909
|
color: e.value.style.chart.tooltip.color,
|
|
@@ -904,38 +923,38 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
904
923
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
905
924
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
|
|
906
925
|
}, {
|
|
907
|
-
"tooltip-before":
|
|
908
|
-
|
|
926
|
+
"tooltip-before": g(() => [
|
|
927
|
+
y(t.$slots, "tooltip-before", G(W({ ...fe.value })), void 0, !0)
|
|
909
928
|
]),
|
|
910
|
-
"tooltip-after":
|
|
911
|
-
|
|
929
|
+
"tooltip-after": g(() => [
|
|
930
|
+
y(t.$slots, "tooltip-after", G(W({ ...fe.value })), void 0, !0)
|
|
912
931
|
]),
|
|
913
932
|
_: 3
|
|
914
933
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
915
|
-
ue.value && e.value.userOptions.buttons.table ? (
|
|
934
|
+
ue.value && e.value.userOptions.buttons.table ? (n(), B(Ut(Y.value.component), ke({ key: 7 }, Y.value.props, {
|
|
916
935
|
ref_key: "tableUnit",
|
|
917
|
-
ref:
|
|
936
|
+
ref: j,
|
|
918
937
|
onClose: Je
|
|
919
|
-
}),
|
|
920
|
-
content:
|
|
921
|
-
(
|
|
938
|
+
}), we({
|
|
939
|
+
content: g(() => [
|
|
940
|
+
(n(), B(h(rt), {
|
|
922
941
|
key: `table_${Ae.value}`,
|
|
923
|
-
colNames:
|
|
924
|
-
head:
|
|
925
|
-
body:
|
|
926
|
-
config:
|
|
927
|
-
title: e.value.table.useDialog ? "" :
|
|
942
|
+
colNames: ee.value.colNames,
|
|
943
|
+
head: ee.value.head,
|
|
944
|
+
body: ee.value.body,
|
|
945
|
+
config: ee.value.config,
|
|
946
|
+
title: e.value.table.useDialog ? "" : Y.value.title,
|
|
928
947
|
withCloseButton: !e.value.table.useDialog,
|
|
929
948
|
onClose: Je
|
|
930
949
|
}, {
|
|
931
|
-
th:
|
|
950
|
+
th: g(({ th: a }) => [
|
|
932
951
|
k("div", {
|
|
933
|
-
innerHTML:
|
|
952
|
+
innerHTML: a,
|
|
934
953
|
style: { display: "flex", "align-items": "center" }
|
|
935
|
-
}, null, 8,
|
|
954
|
+
}, null, 8, Ml)
|
|
936
955
|
]),
|
|
937
|
-
td:
|
|
938
|
-
|
|
956
|
+
td: g(({ td: a }) => [
|
|
957
|
+
et(oe(a.name || a), 1)
|
|
939
958
|
]),
|
|
940
959
|
_: 1
|
|
941
960
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -944,32 +963,32 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
944
963
|
}, [
|
|
945
964
|
e.value.table.useDialog ? {
|
|
946
965
|
name: "title",
|
|
947
|
-
fn:
|
|
948
|
-
|
|
966
|
+
fn: g(() => [
|
|
967
|
+
et(oe(Y.value.title), 1)
|
|
949
968
|
]),
|
|
950
969
|
key: "0"
|
|
951
970
|
} : void 0,
|
|
952
971
|
e.value.table.useDialog ? {
|
|
953
972
|
name: "actions",
|
|
954
|
-
fn:
|
|
973
|
+
fn: g(() => [
|
|
955
974
|
k("button", {
|
|
956
975
|
tabindex: "0",
|
|
957
976
|
class: "vue-ui-user-options-button",
|
|
958
|
-
onClick:
|
|
977
|
+
onClick: l[1] || (l[1] = (a) => ye(e.value.userOptions.callbacks.csv))
|
|
959
978
|
}, [
|
|
960
|
-
|
|
979
|
+
ae(h(nt), {
|
|
961
980
|
name: "excel",
|
|
962
|
-
stroke:
|
|
981
|
+
stroke: Y.value.props.color
|
|
963
982
|
}, null, 8, ["stroke"])
|
|
964
983
|
])
|
|
965
984
|
]),
|
|
966
985
|
key: "1"
|
|
967
986
|
} : void 0
|
|
968
987
|
]), 1040)) : m("", !0),
|
|
969
|
-
|
|
970
|
-
], 46,
|
|
988
|
+
h(Le) ? (n(), B(il, { key: 8 })) : m("", !0)
|
|
989
|
+
], 46, wl));
|
|
971
990
|
}
|
|
972
|
-
},
|
|
991
|
+
}, la = /* @__PURE__ */ ml(Rl, [["__scopeId", "data-v-78e01575"]]);
|
|
973
992
|
export {
|
|
974
|
-
|
|
993
|
+
la as default
|
|
975
994
|
};
|