vue-data-ui 3.2.2 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BWqgcDpl.js → Arrow-Bb0bGghy.js} +1 -1
- package/dist/{BaseDraggableDialog-Cg4ZF9cb.js → BaseDraggableDialog-CHhZIht2.js} +2 -2
- package/dist/{BaseIcon-e63bhLIi.js → BaseIcon-Bz-1GQhu.js} +10 -3
- package/dist/ColorPicker-B-WUqMoV.js +238 -0
- package/dist/{DataTable-dv6G7Krn.js → DataTable-BvjacRbw.js} +2 -2
- package/dist/{Legend-CVcdvTLM.js → Legend-BpoFJ8fc.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DSmotL8i.js → NonSvgPenAndPaper-l9giyY1Z.js} +3 -3
- package/dist/{PackageVersion-C3Vg-vTM.js → PackageVersion-oBQ8brnx.js} +1 -1
- package/dist/{PenAndPaper-CplrzuG7.js → PenAndPaper-CR8q353D.js} +3 -3
- package/dist/{Shape-D_vfF7sk.js → Shape-C_C_OmqR.js} +1 -1
- package/dist/{Slicer-BO2wNLcR.js → Slicer-BA2GhOmY.js} +63 -63
- package/dist/{SparkTooltip-B82G5-BO.js → SparkTooltip-Dz1PDE_h.js} +1 -1
- package/dist/{Title-DlqxaiIs.js → Title-C__lOIPC.js} +1 -1
- package/dist/{Tooltip-BKqK7z38.js → Tooltip-BOXz8skU.js} +1 -1
- package/dist/{UserOptions-C9IFsUt0.js → UserOptions-DsTgvAok.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +5 -0
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-1edcjS0-.js → dom-to-png-BgvOdfyW.js} +1 -1
- package/dist/{img-A48JwXxj.js → img-DjWwQXVS.js} +1 -1
- package/dist/{lib-CDp2KgIU.js → lib-BEpWEyMm.js} +56 -56
- package/dist/{pdf-BZV8MuXM.js → pdf-YD0ShN36.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +14 -3
- package/dist/{useAutoSizeLabelsInsideViewbox-C2IsrQqi.js → useAutoSizeLabelsInsideViewbox-BVJkib7z.js} +1 -1
- package/dist/{useNestedProp-Cwtenuui.js → useNestedProp-CLD3Gk9S.js} +17 -13
- package/dist/{usePrinter-DU_Pi3Rq.js → usePrinter-w23K-ezx.js} +2 -2
- package/dist/{vue-data-ui-BHJOTOQY.js → vue-data-ui-hSWsJzdK.js} +64 -64
- package/dist/vue-data-ui.js +96 -96
- package/dist/{vue-ui-3d-bar-rxghnZJO.js → vue-ui-3d-bar-B45AYk-O.js} +6 -6
- package/dist/vue-ui-accordion-Cv7OaVUI.js +78 -0
- package/dist/{vue-ui-age-pyramid-gT_SnI-F.js → vue-ui-age-pyramid-CJ66TbYc.js} +6 -6
- package/dist/vue-ui-annotator-DOO0qej9.js +2959 -0
- package/dist/{vue-ui-bullet-DREbhLhy.js → vue-ui-bullet-D_V1l1Jt.js} +15 -15
- package/dist/{vue-ui-candlestick-D4P15Ci1.js → vue-ui-candlestick-DrkWrGT2.js} +33 -33
- package/dist/{vue-ui-carousel-table-C24KX4gd.js → vue-ui-carousel-table-0zk2YkV7.js} +4 -4
- package/dist/{vue-ui-chestnut-BbQknrj0.js → vue-ui-chestnut-CAGkS9Lt.js} +32 -32
- package/dist/{vue-ui-chord-BM4_D9kI.js → vue-ui-chord-CHAaUGaZ.js} +53 -53
- package/dist/{vue-ui-circle-pack-S4Asc9CS.js → vue-ui-circle-pack-CBySiQot.js} +29 -29
- package/dist/{vue-ui-cursor-F9MXsQ1K.js → vue-ui-cursor-Cbt_0B5t.js} +2 -2
- package/dist/{vue-ui-dashboard-D6LHLdFS.js → vue-ui-dashboard-BAOd1hi1.js} +67 -67
- package/dist/{vue-ui-digits-B_8VzLOS.js → vue-ui-digits-ChAz3jSS.js} +2 -2
- package/dist/{vue-ui-donut-B7T8_tP1.js → vue-ui-donut-BgYaWImK.js} +8 -8
- package/dist/{vue-ui-donut-evolution-DOn-7PnK.js → vue-ui-donut-evolution-UWyvIsbE.js} +55 -55
- package/dist/{vue-ui-dumbbell-Ch66pFUG.js → vue-ui-dumbbell-B5IHRXdS.js} +7 -7
- package/dist/{vue-ui-flow-DPcsRLJJ.js → vue-ui-flow-DB4sLZG4.js} +63 -63
- package/dist/{vue-ui-funnel-BdcKoacQ.js → vue-ui-funnel-COZLSfZ8.js} +36 -36
- package/dist/{vue-ui-galaxy-D3c-O1Op.js → vue-ui-galaxy-S8pIdU78.js} +46 -46
- package/dist/{vue-ui-gauge-D1zbKzZQ.js → vue-ui-gauge-BVaE3IZt.js} +59 -59
- package/dist/{vue-ui-gizmo-CcrANrSX.js → vue-ui-gizmo-BmJ01zdG.js} +3 -3
- package/dist/{vue-ui-heatmap-CcvV9Y14.js → vue-ui-heatmap-DiAryN8L.js} +7 -7
- package/dist/{vue-ui-history-plot-a0mLhd0L.js → vue-ui-history-plot-eeYk4C28.js} +44 -44
- package/dist/{vue-ui-kpi-BwUpplcm.js → vue-ui-kpi-D7WXGb3K.js} +3 -3
- package/dist/{vue-ui-mini-loader-DBPZOqZA.js → vue-ui-mini-loader-CKMzFSG5.js} +2 -2
- package/dist/{vue-ui-molecule-xsgartoC.js → vue-ui-molecule-daI3rmbc.js} +5 -5
- package/dist/{vue-ui-mood-radar-kl2d5QsL.js → vue-ui-mood-radar-CawOBU0s.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D9I8_VnP.js → vue-ui-nested-donuts-Ci7qxsh6.js} +70 -70
- package/dist/{vue-ui-onion-BlxsHavW.js → vue-ui-onion-CUkVuewC.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DHH6lrbW.js → vue-ui-parallel-coordinate-plot-D7UkjkUV.js} +35 -35
- package/dist/{vue-ui-quadrant-DyIQZUPC.js → vue-ui-quadrant-B9VZz5d6.js} +8 -8
- package/dist/{vue-ui-quick-chart-Jfr_Ezh9.js → vue-ui-quick-chart-BQgH4Aap.js} +55 -55
- package/dist/{vue-ui-radar-BL_dJV12.js → vue-ui-radar-DvZ8XcZC.js} +54 -54
- package/dist/{vue-ui-rating-LiragGSU.js → vue-ui-rating-C0Ubexdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-BrR2W_6V.js → vue-ui-relation-circle-Bal5QL_Z.js} +25 -25
- package/dist/{vue-ui-ridgeline-CpaOYplC.js → vue-ui-ridgeline-DbRZFJcN.js} +27 -27
- package/dist/{vue-ui-rings-B9TGOwFE.js → vue-ui-rings-BJ_Dmy5i.js} +38 -38
- package/dist/{vue-ui-scatter-Bq4pSRu_.js → vue-ui-scatter-bljL9Bav.js} +49 -49
- package/dist/{vue-ui-skeleton-BlVnOk2o.js → vue-ui-skeleton-DZPi12tE.js} +3 -3
- package/dist/{vue-ui-smiley-DyP9gKYe.js → vue-ui-smiley-DxC8rN5b.js} +2 -2
- package/dist/{vue-ui-spark-trend-Pvdqnqia.js → vue-ui-spark-trend-CqMF642_.js} +22 -22
- package/dist/{vue-ui-sparkbar-DF6eDrxt.js → vue-ui-sparkbar-BcyaivMe.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BR7oFSSF.js → vue-ui-sparkgauge-BkIUpzkZ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CkOGqy2h.js → vue-ui-sparkhistogram-DnPdJk3e.js} +4 -4
- package/dist/{vue-ui-sparkline-DF8bLc-F.js → vue-ui-sparkline-F7h636hU.js} +29 -29
- package/dist/{vue-ui-sparkstackbar-DMkn-0FV.js → vue-ui-sparkstackbar-B-Du5D3w.js} +3 -3
- package/dist/{vue-ui-stackbar-CUXktGA-.js → vue-ui-stackbar-BNOfLkY2.js} +38 -38
- package/dist/{vue-ui-strip-plot-ibdxtil6.js → vue-ui-strip-plot-DNPM01M_.js} +7 -7
- package/dist/{vue-ui-table-BocHahKB.js → vue-ui-table-__ABUm9x.js} +17 -17
- package/dist/{vue-ui-table-heatmap-B03YDYck.js → vue-ui-table-heatmap-D-iueyM0.js} +13 -13
- package/dist/{vue-ui-table-sparkline-8mOvfeTL.js → vue-ui-table-sparkline-B5QdvlV7.js} +4 -4
- package/dist/{vue-ui-thermometer-Dq_nJLiU.js → vue-ui-thermometer-DID_4Y6w.js} +7 -7
- package/dist/{vue-ui-timer-BLveMseW.js → vue-ui-timer-CjJmpXoF.js} +27 -27
- package/dist/{vue-ui-tiremarks-DMG1_YzV.js → vue-ui-tiremarks-wDKOTVny.js} +6 -6
- package/dist/{vue-ui-treemap-io-J9w5R.js → vue-ui-treemap-DFo4w0cb.js} +8 -8
- package/dist/{vue-ui-vertical-bar-DqnTF6h2.js → vue-ui-vertical-bar-BEdckhBh.js} +30 -30
- package/dist/{vue-ui-waffle-X9DHHqlw.js → vue-ui-waffle-D5i1Q6tF.js} +75 -75
- package/dist/{vue-ui-wheel-BLBwVpV8.js → vue-ui-wheel-DJlN8joO.js} +6 -6
- package/dist/{vue-ui-word-cloud-0GXQqY8G.js → vue-ui-word-cloud-B7Y2UrwO.js} +28 -28
- package/dist/{vue-ui-world-5OHPVwxv.js → vue-ui-world-DzF8YW_Q.js} +6 -6
- package/dist/{vue-ui-xy-HW0T1CD8.js → vue-ui-xy-DGln2YgO.js} +9 -9
- package/dist/{vue-ui-xy-canvas-C4FbbXNQ.js → vue-ui-xy-canvas-DF2Ts-g3.js} +10 -10
- package/package.json +1 -1
- package/dist/ColorPicker-BO4ntExI.js +0 -135
- package/dist/vue-ui-accordion-BWnxgda4.js +0 -76
- package/dist/vue-ui-annotator-BkHDHfHG.js +0 -2182
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineAsyncComponent as L, useSlots as
|
|
2
|
-
import { c as Nt, t as Vt, b as Mt, p as R, o as et, f as ke, g as Rt, e as Et, a as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as el, a as tt } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as L, useSlots as Ot, computed as h, ref as i, toRefs as Pt, watch as K, shallowRef as Ke, onMounted as Ft, onBeforeUnmount as Lt, createElementBlock as v, openBlock as s, unref as c, normalizeStyle as ae, normalizeClass as Qe, createBlock as B, createCommentVNode as m, createElementVNode as k, createVNode as oe, createSlots as me, withCtx as y, renderSlot as g, normalizeProps as j, guardReactiveProps as q, Fragment as $, renderList as D, mergeProps as we, toDisplayString as M, Teleport as Bt, resolveDynamicComponent as Dt, createTextVNode as Ze, nextTick as zt } from "vue";
|
|
2
|
+
import { c as Nt, t as Vt, b as Mt, p as R, o as et, f as ke, g as Rt, e as Et, a as Q, d as P, X as Ut, s as Wt, i as Gt, E as jt, h as qt, x as Ht, y as Xt, O as Yt, z as Jt, A as Kt } from "./lib-BEpWEyMm.js";
|
|
3
|
+
import { t as Qt, u as Zt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as el, a as tt } from "./useNestedProp-CLD3Gk9S.js";
|
|
5
5
|
import { u as tl, B as ll } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as al } from "./usePrinter-
|
|
6
|
+
import { u as al } from "./usePrinter-w23K-ezx.js";
|
|
7
7
|
import { u as ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as ul } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import sl from "./img-
|
|
10
|
-
import { _ as nl } from "./Shape-
|
|
11
|
-
import rl from "./Title-
|
|
9
|
+
import sl from "./img-DjWwQXVS.js";
|
|
10
|
+
import { _ as nl } from "./Shape-C_C_OmqR.js";
|
|
11
|
+
import rl from "./Title-C__lOIPC.js";
|
|
12
12
|
import { t as il } from "./themes-D3cUNuKw.js";
|
|
13
|
-
import vl from "./Legend-
|
|
13
|
+
import vl from "./Legend-BpoFJ8fc.js";
|
|
14
14
|
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["stop-color"], gl = ["stop-color"], bl = ["id"], ml = ["x", "y", "height", "width"], wl = ["height", "width"], kl = { key: 0 }, xl = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Cl = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], $l = { key: 1 }, Il = ["rx", "x", "y", "height", "width", "fill", "filter"], Tl = ["textContent", "x", "y", "font-size", "fill", "filter"], _l = ["x", "y", "height", "width", "onMouseover", "onMouseleave", "onClick"], Al = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "vue-data-ui-watermark"
|
|
18
|
-
}, Sl = ["id"],
|
|
18
|
+
}, Sl = ["id"], Ol = ["onClick"], Pl = ["innerHTML"], Fl = {
|
|
19
19
|
__name: "vue-ui-waffle",
|
|
20
20
|
props: {
|
|
21
21
|
config: {
|
|
@@ -33,8 +33,8 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
35
|
setup(lt, { expose: at, emit: ot }) {
|
|
36
|
-
const ut = L(() => import("./Tooltip-
|
|
37
|
-
...
|
|
36
|
+
const ut = L(() => import("./Tooltip-BOXz8skU.js")), st = L(() => import("./BaseIcon-Bz-1GQhu.js")), nt = L(() => import("./DataTable-BvjacRbw.js")), rt = L(() => import("./vue-ui-accordion-Cv7OaVUI.js")), it = L(() => import("./UserOptions-DsTgvAok.js")), vt = L(() => import("./PenAndPaper-CR8q353D.js")), ct = L(() => import("./PackageVersion-oBQ8brnx.js")), dt = L(() => import("./BaseDraggableDialog-CHhZIht2.js")), { vue_ui_waffle: ht } = el(), w = lt, pt = Ot(), ue = h(() => !!w.dataset && w.dataset.length), b = i(Nt()), se = i(!1), ne = i(""), E = i(null), xe = i(0), I = i(null), Ce = i(null), $e = i(null), Ie = i(null), Te = i(null), _e = i(0), Ae = i(0), Se = i(0), Oe = i(!1), H = i(null), re = i(null), e = i(ce()), { loading: Pe, FINAL_DATASET: Z, manualLoading: ie } = tl({
|
|
37
|
+
...Pt(w),
|
|
38
38
|
FINAL_CONFIG: e,
|
|
39
39
|
prepareConfig: ce,
|
|
40
40
|
callback: () => {
|
|
@@ -99,10 +99,10 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
99
99
|
customPalette: Mt[t.theme] || R
|
|
100
100
|
} : t;
|
|
101
101
|
}
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
K(() => w.config, (t) => {
|
|
103
|
+
Pe.value || (e.value = ce()), ve.value = !e.value.userOptions.showOnChartHover, ze(), _e.value += 1, Ae.value += 1, Se.value += 1, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
104
104
|
}, { deep: !0 });
|
|
105
|
-
const F =
|
|
105
|
+
const F = Ke(null), U = Ke(null), De = h(() => !!e.value.debug);
|
|
106
106
|
function ze() {
|
|
107
107
|
if (et(w.dataset) ? (ke({
|
|
108
108
|
componentName: "VueUiWaffle",
|
|
@@ -122,7 +122,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
}), et(w.dataset) || (ie.value = e.value.loading), e.value.responsive) {
|
|
125
|
-
const t =
|
|
125
|
+
const t = Qt(() => {
|
|
126
126
|
const { width: a, height: l } = Zt({
|
|
127
127
|
chart: I.value,
|
|
128
128
|
title: e.value.style.chart.title.text ? Ce.value : null,
|
|
@@ -138,7 +138,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
Ft(() => {
|
|
141
|
-
|
|
141
|
+
Oe.value = !0, ze();
|
|
142
142
|
}), Lt(() => {
|
|
143
143
|
F.value && (U.value && F.value.unobserve(U.value), F.value.disconnect());
|
|
144
144
|
});
|
|
@@ -150,7 +150,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
150
150
|
showTable: e.value.table.show,
|
|
151
151
|
showTooltip: e.value.style.chart.tooltip.show
|
|
152
152
|
});
|
|
153
|
-
|
|
153
|
+
K(e, () => {
|
|
154
154
|
x.value = {
|
|
155
155
|
showTable: e.value.table.show,
|
|
156
156
|
showTooltip: e.value.style.chart.tooltip.show
|
|
@@ -165,7 +165,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
165
165
|
height: 512,
|
|
166
166
|
width: 512
|
|
167
167
|
}), _ = h(() => (T.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), A = h(() => (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 = h(() => Math.max(1e-4, T.value.width / e.value.style.chart.layout.grid.size)), Ue = h(() => Math.max(1e-4, T.value.height / e.value.style.chart.layout.grid.size));
|
|
168
|
-
function
|
|
168
|
+
function We(t) {
|
|
169
169
|
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((C, be) => C + be, 0), o = t.map((C) => C / l * a), u = o.map(Math.floor), n = o.map((C) => C % 1);
|
|
170
170
|
let d = a - u.reduce((C, be) => C + be, 0);
|
|
171
171
|
for (; d > 0; ) {
|
|
@@ -184,17 +184,17 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
184
184
|
}));
|
|
185
185
|
}
|
|
186
186
|
const he = h(() => de()), p = i(he.value);
|
|
187
|
-
|
|
187
|
+
K(() => w.dataset, (t) => {
|
|
188
188
|
Array.isArray(t) && t.length > 0 && (ie.value = !1);
|
|
189
|
-
}, { immediate: !0 }),
|
|
189
|
+
}, { immediate: !0 }), K(() => w.dataset, (t) => {
|
|
190
190
|
p.value = de();
|
|
191
191
|
}, { deep: !0 });
|
|
192
192
|
const gt = h(() => {
|
|
193
193
|
const t = p.value.filter((a, l) => !f.value.includes(a.uid)).map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u, 0));
|
|
194
|
-
return
|
|
194
|
+
return We(t);
|
|
195
195
|
}), bt = h(() => {
|
|
196
196
|
const t = p.value.map((a, l) => X.value ? 1 : (a.values || []).reduce((o, u) => o + u));
|
|
197
|
-
return
|
|
197
|
+
return We(t);
|
|
198
198
|
}), Y = h(() => (Z.value.forEach((t, a) => {
|
|
199
199
|
[null, void 0].includes(t.values) && ke({
|
|
200
200
|
componentName: "VueUiWaffle",
|
|
@@ -252,7 +252,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
252
252
|
}))).map((t, a) => ({
|
|
253
253
|
...t,
|
|
254
254
|
isAbsoluteFirst: a % e.value.style.chart.layout.grid.size === 0
|
|
255
|
-
}))),
|
|
255
|
+
}))), W = h(() => {
|
|
256
256
|
const t = [];
|
|
257
257
|
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
258
258
|
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
@@ -263,11 +263,11 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
263
263
|
y: (e.value.style.chart.layout.grid.vertical ? l : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween) + T.value.top
|
|
264
264
|
});
|
|
265
265
|
return t;
|
|
266
|
-
}), f = i([]), N = i(!1),
|
|
266
|
+
}), f = i([]), N = i(!1), Ge = i(null), je = i(null);
|
|
267
267
|
function qe(t) {
|
|
268
268
|
if (X.value) return;
|
|
269
269
|
if (!e.value.useAnimation) {
|
|
270
|
-
f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length <
|
|
270
|
+
f.value.includes(t) ? f.value = f.value.filter((u) => u !== t) : f.value.length < G.value.length - 1 && G.value.length > 1 && f.value.push(t);
|
|
271
271
|
return;
|
|
272
272
|
}
|
|
273
273
|
const a = he.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0), l = p.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
@@ -275,18 +275,18 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
275
275
|
if (!(l === 0 && a === 0)) {
|
|
276
276
|
if (f.value.includes(t)) {
|
|
277
277
|
let n = function() {
|
|
278
|
-
o > u ? (cancelAnimationFrame(
|
|
278
|
+
o > u ? (cancelAnimationFrame(Ge.value), p.value = p.value.map((d, C) => d.uid === t ? {
|
|
279
279
|
...d,
|
|
280
280
|
values: [u]
|
|
281
281
|
} : d), N.value = !1) : (N.value = !0, o += u * 0.025, p.value = p.value.map((d, C) => d.uid === t ? {
|
|
282
282
|
...d,
|
|
283
283
|
values: [o]
|
|
284
|
-
} : d),
|
|
284
|
+
} : d), Ge.value = requestAnimationFrame(n));
|
|
285
285
|
};
|
|
286
286
|
f.value = f.value.filter((d) => d !== t);
|
|
287
287
|
const u = a;
|
|
288
288
|
n();
|
|
289
|
-
} else if (f.value.length <
|
|
289
|
+
} else if (f.value.length < G.value.length - 1 && G.value.length > 1) {
|
|
290
290
|
let u = function() {
|
|
291
291
|
o < l / 100 ? (cancelAnimationFrame(je.value), f.value.push(t), p.value = p.value.map((n, d) => n.uid === t ? {
|
|
292
292
|
...n,
|
|
@@ -306,7 +306,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
306
306
|
})));
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const G = h(() => p.value.map((t, a) => ({
|
|
310
310
|
name: t.name,
|
|
311
311
|
color: t.color || Ee[a] || R[a] || R[a % R.length],
|
|
312
312
|
value: (t.values || []).reduce((l, o) => l + o, 0),
|
|
@@ -344,7 +344,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
344
344
|
config: e.value
|
|
345
345
|
}, e.value.events.datapointEnter && fe.value !== a.serieIndex && e.value.events.datapointEnter({ datapoint: a, seriesIndex: a.serieIndex }), fe.value = a.serieIndex, se.value = !0, E.value = r.value[t].serieIndex;
|
|
346
346
|
const l = e.value.style.chart.tooltip.customFormat;
|
|
347
|
-
if (
|
|
347
|
+
if (Jt(l) && Kt(() => l({
|
|
348
348
|
seriesIndex: r.value[t].absoluteIndex,
|
|
349
349
|
datapoint: a,
|
|
350
350
|
series: p.value,
|
|
@@ -358,10 +358,10 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
358
358
|
});
|
|
359
359
|
else {
|
|
360
360
|
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;">${a.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="${a.color}" />${pt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${
|
|
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;">${a.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="${a.color}" />${pt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${b.value}_${a.absoluteIndex})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (o += `<b>${Q(
|
|
362
362
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
363
363
|
a.value,
|
|
364
|
-
|
|
364
|
+
P({
|
|
365
365
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
366
366
|
v: a.value,
|
|
367
367
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -373,7 +373,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
373
373
|
series: p.value
|
|
374
374
|
}
|
|
375
375
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
376
|
-
const u =
|
|
376
|
+
const u = P({
|
|
377
377
|
v: X.value ? 1 / Z.value.length * 100 : a.value / S.value * 100,
|
|
378
378
|
s: "%",
|
|
379
379
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
@@ -383,7 +383,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
383
383
|
ne.value = o;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
const Tt = ot,
|
|
386
|
+
const Tt = ot, O = h(() => {
|
|
387
387
|
const t = Y.value.map((l) => ({
|
|
388
388
|
name: l.name,
|
|
389
389
|
color: l.color
|
|
@@ -397,35 +397,35 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
397
397
|
return e.value.style.chart.layout.labels.captions.show ? r.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && (r.value[t].isFirst && a.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
398
|
}
|
|
399
399
|
function At(t, a = null) {
|
|
400
|
-
const l =
|
|
400
|
+
const l = Q(
|
|
401
401
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
402
402
|
r.value[t].value,
|
|
403
|
-
|
|
403
|
+
P({
|
|
404
404
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
405
405
|
v: r.value[t].value,
|
|
406
406
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
407
407
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
408
408
|
}),
|
|
409
409
|
{ datapoint: r.value[t], position: a }
|
|
410
|
-
), o =
|
|
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 ? Yt({ 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 ? ":" : ""), n = e.value.style.chart.layout.labels.captions.showSerieName ? u : "";
|
|
411
411
|
let d = "";
|
|
412
412
|
return e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? d = `${o} (${l})` : 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 = l), `${n}${d}`;
|
|
413
413
|
}
|
|
414
414
|
function ye(t = null) {
|
|
415
415
|
zt(() => {
|
|
416
|
-
const a =
|
|
416
|
+
const a = O.value.head.map((u, n) => [[
|
|
417
417
|
u.name
|
|
418
|
-
], [
|
|
418
|
+
], [O.value.body[n]], [isNaN(O.value.body[n] / S.value) ? "-" : O.value.body[n] / S.value * 100]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = Ht(l);
|
|
419
419
|
t ? t(o) : Xt({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
const te = h(() => {
|
|
423
423
|
const t = [
|
|
424
424
|
' <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
|
-
|
|
425
|
+
Q(
|
|
426
426
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
427
427
|
S.value,
|
|
428
|
-
|
|
428
|
+
P({
|
|
429
429
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
430
430
|
v: S.value,
|
|
431
431
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -433,23 +433,23 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
433
433
|
})
|
|
434
434
|
),
|
|
435
435
|
"100%"
|
|
436
|
-
], a =
|
|
436
|
+
], a = O.value.head.map((u, n) => [
|
|
437
437
|
{
|
|
438
438
|
color: u.color,
|
|
439
439
|
name: u.name
|
|
440
440
|
},
|
|
441
|
-
|
|
441
|
+
Q(
|
|
442
442
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
443
|
-
|
|
444
|
-
|
|
443
|
+
O.value.body[n],
|
|
444
|
+
P({
|
|
445
445
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
446
|
-
v:
|
|
446
|
+
v: O.value.body[n],
|
|
447
447
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
448
448
|
r: e.value.table.td.roundingValue
|
|
449
449
|
})
|
|
450
450
|
),
|
|
451
|
-
isNaN(
|
|
452
|
-
v:
|
|
451
|
+
isNaN(O.value.body[n] / S.value) ? "-" : P({
|
|
452
|
+
v: O.value.body[n] / S.value * 100,
|
|
453
453
|
s: "%",
|
|
454
454
|
r: e.value.table.td.roundingPercentage
|
|
455
455
|
})
|
|
@@ -503,7 +503,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
503
503
|
aspectRatio: o
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
const
|
|
506
|
+
const J = h(() => {
|
|
507
507
|
const t = e.value.table.useDialog && !e.value.table.show, a = x.value.showTable;
|
|
508
508
|
return {
|
|
509
509
|
component: t ? dt : rt,
|
|
@@ -533,10 +533,10 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
533
533
|
}
|
|
534
534
|
};
|
|
535
535
|
});
|
|
536
|
-
|
|
536
|
+
K(() => x.value.showTable, (t) => {
|
|
537
537
|
e.value.table.show || (t && e.value.table.useDialog && H.value ? H.value.open() : "close" in H.value && H.value.close());
|
|
538
538
|
});
|
|
539
|
-
function
|
|
539
|
+
function Je() {
|
|
540
540
|
x.value.showTable = !1, re.value && re.value.setTableIconState(!1);
|
|
541
541
|
}
|
|
542
542
|
return at({
|
|
@@ -550,7 +550,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
550
550
|
toggleAnnotator: ge,
|
|
551
551
|
toggleFullscreen: He
|
|
552
552
|
}), (t, a) => (s(), v("div", {
|
|
553
|
-
class:
|
|
553
|
+
class: Qe(`vue-ui-waffle ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
554
554
|
ref_key: "waffleChart",
|
|
555
555
|
ref: I,
|
|
556
556
|
id: `vue-ui-waffle_${b.value}`,
|
|
@@ -693,7 +693,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
693
693
|
ref_key: "svgRef",
|
|
694
694
|
ref: Be,
|
|
695
695
|
xmlns: c(Ut),
|
|
696
|
-
class:
|
|
696
|
+
class: Qe({ "vue-data-ui-fullscreen--on": V.value, "vue-data-ui-fulscreen--off": !V.value }),
|
|
697
697
|
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
698
698
|
style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
699
699
|
}, [
|
|
@@ -709,7 +709,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
709
709
|
}, [
|
|
710
710
|
k("stop", {
|
|
711
711
|
offset: "0%",
|
|
712
|
-
"stop-color": c(
|
|
712
|
+
"stop-color": c(Wt)(c(Gt)(l.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
713
713
|
}, null, 8, yl),
|
|
714
714
|
k("stop", {
|
|
715
715
|
offset: "100%",
|
|
@@ -735,7 +735,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
735
735
|
}, null, -1)
|
|
736
736
|
])], 8, bl)
|
|
737
737
|
]),
|
|
738
|
-
e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, D(
|
|
738
|
+
e.value.useCustomCells && r.value.length ? (s(!0), v($, { key: 0 }, D(W.value, (l, o) => (s(), v("foreignObject", {
|
|
739
739
|
x: l.x,
|
|
740
740
|
y: l.y,
|
|
741
741
|
height: A.value <= 0 ? 1e-4 : A.value,
|
|
@@ -759,7 +759,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
759
759
|
g(t.$slots, "pattern", we({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${b.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
760
760
|
]))), 256))
|
|
761
761
|
])) : m("", !0),
|
|
762
|
-
(s(!0), v($, null, D(
|
|
762
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
|
|
763
763
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
764
764
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
765
765
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -770,7 +770,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
770
770
|
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
771
771
|
filter: ee(r.value[o].serieIndex)
|
|
772
772
|
}, null, 8, xl))), 256)),
|
|
773
|
-
(s(!0), v($, null, D(
|
|
773
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
|
|
774
774
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
775
775
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
776
776
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -782,7 +782,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
782
782
|
filter: ee(r.value[o].serieIndex)
|
|
783
783
|
}, null, 8, Cl))), 256)),
|
|
784
784
|
t.$slots.pattern ? (s(), v("g", $l, [
|
|
785
|
-
(s(!0), v($, null, D(
|
|
785
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
|
|
786
786
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
787
787
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
788
788
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -794,7 +794,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
794
794
|
}, null, 8, Il))), 256))
|
|
795
795
|
])) : m("", !0)
|
|
796
796
|
], 64)) : m("", !0),
|
|
797
|
-
(s(!0), v($, null, D(
|
|
797
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v($, null, [
|
|
798
798
|
_t(o, l) ? (s(), v("text", {
|
|
799
799
|
key: `datalabel_${o}`,
|
|
800
800
|
textContent: M(At(o, l)),
|
|
@@ -805,7 +805,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
805
805
|
filter: ee(r.value[o].serieIndex)
|
|
806
806
|
}, null, 8, Tl)) : m("", !0)
|
|
807
807
|
], 64))), 256)),
|
|
808
|
-
(s(!0), v($, null, D(
|
|
808
|
+
(s(!0), v($, null, D(W.value, (l, o) => (s(), v("rect", {
|
|
809
809
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
810
810
|
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
811
811
|
height: Ue.value,
|
|
@@ -824,7 +824,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
824
824
|
k("div", {
|
|
825
825
|
id: `legend-bottom-${b.value}`
|
|
826
826
|
}, null, 8, Sl),
|
|
827
|
-
|
|
827
|
+
Oe.value ? (s(), B(Bt, {
|
|
828
828
|
key: 5,
|
|
829
829
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${b.value}` : `#legend-bottom-${b.value}`
|
|
830
830
|
}, [
|
|
@@ -834,7 +834,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
834
834
|
}, [
|
|
835
835
|
e.value.style.chart.legend.show ? (s(), B(vl, {
|
|
836
836
|
key: `legend_${Se.value}`,
|
|
837
|
-
legendSet:
|
|
837
|
+
legendSet: G.value,
|
|
838
838
|
config: xt.value,
|
|
839
839
|
onClickMarker: a[0] || (a[0] = ({ legend: l }) => qe(l.uid))
|
|
840
840
|
}, me({
|
|
@@ -842,10 +842,10 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
842
842
|
k("div", {
|
|
843
843
|
onClick: (o) => l.segregate(),
|
|
844
844
|
style: ae(`opacity:${f.value.includes(l.uid) ? 0.5 : 1}`)
|
|
845
|
-
}, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? c(
|
|
845
|
+
}, M(l.name) + M(e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ":" : "") + " " + M(e.value.style.chart.legend.showValue ? c(Q)(
|
|
846
846
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
847
847
|
l.value,
|
|
848
|
-
c(
|
|
848
|
+
c(P)({
|
|
849
849
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
850
850
|
v: l.value,
|
|
851
851
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -853,7 +853,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
853
853
|
isAnimating: N.value
|
|
854
854
|
}),
|
|
855
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(
|
|
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)
|
|
857
857
|
]),
|
|
858
858
|
_: 2
|
|
859
859
|
}, [
|
|
@@ -872,7 +872,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
872
872
|
} : void 0
|
|
873
873
|
]), 1032, ["legendSet", "config"])) : g(t.$slots, "legend", {
|
|
874
874
|
key: 1,
|
|
875
|
-
legend:
|
|
875
|
+
legend: G.value
|
|
876
876
|
}, void 0, !0)
|
|
877
877
|
], 512)
|
|
878
878
|
], 8, ["to"])) : m("", !0),
|
|
@@ -912,10 +912,10 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
912
912
|
]),
|
|
913
913
|
_: 3
|
|
914
914
|
}, 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 ? (s(), B(Dt(
|
|
915
|
+
ue.value && e.value.userOptions.buttons.table ? (s(), B(Dt(J.value.component), we({ key: 7 }, J.value.props, {
|
|
916
916
|
ref_key: "tableUnit",
|
|
917
917
|
ref: H,
|
|
918
|
-
onClose:
|
|
918
|
+
onClose: Je
|
|
919
919
|
}), me({
|
|
920
920
|
content: y(() => [
|
|
921
921
|
(s(), B(c(nt), {
|
|
@@ -924,15 +924,15 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
924
924
|
head: te.value.head,
|
|
925
925
|
body: te.value.body,
|
|
926
926
|
config: te.value.config,
|
|
927
|
-
title: e.value.table.useDialog ? "" :
|
|
927
|
+
title: e.value.table.useDialog ? "" : J.value.title,
|
|
928
928
|
withCloseButton: !e.value.table.useDialog,
|
|
929
|
-
onClose:
|
|
929
|
+
onClose: Je
|
|
930
930
|
}, {
|
|
931
931
|
th: y(({ th: l }) => [
|
|
932
932
|
k("div", {
|
|
933
933
|
innerHTML: l,
|
|
934
934
|
style: { display: "flex", "align-items": "center" }
|
|
935
|
-
}, null, 8,
|
|
935
|
+
}, null, 8, Pl)
|
|
936
936
|
]),
|
|
937
937
|
td: y(({ td: l }) => [
|
|
938
938
|
Ze(M(l.name || l), 1)
|
|
@@ -945,7 +945,7 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
945
945
|
e.value.table.useDialog ? {
|
|
946
946
|
name: "title",
|
|
947
947
|
fn: y(() => [
|
|
948
|
-
Ze(M(
|
|
948
|
+
Ze(M(J.value.title), 1)
|
|
949
949
|
]),
|
|
950
950
|
key: "0"
|
|
951
951
|
} : void 0,
|
|
@@ -959,14 +959,14 @@ const dl = ["id"], hl = ["id"], pl = ["xmlns", "viewBox"], fl = ["id"], yl = ["s
|
|
|
959
959
|
}, [
|
|
960
960
|
oe(c(st), {
|
|
961
961
|
name: "excel",
|
|
962
|
-
stroke:
|
|
962
|
+
stroke: J.value.props.color
|
|
963
963
|
}, null, 8, ["stroke"])
|
|
964
964
|
])
|
|
965
965
|
]),
|
|
966
966
|
key: "1"
|
|
967
967
|
} : void 0
|
|
968
968
|
]), 1040)) : m("", !0),
|
|
969
|
-
c(
|
|
969
|
+
c(Pe) ? (s(), B(ll, { key: 8 })) : m("", !0)
|
|
970
970
|
], 46, dl));
|
|
971
971
|
}
|
|
972
972
|
}, Hl = /* @__PURE__ */ cl(Fl, [["__scopeId", "data-v-cd11188e"]]);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { useCssVars as xt, computed as m, defineAsyncComponent as ke, ref as _, toRefs as Mt, watch as Le, shallowRef as Ue, onMounted as Ct, onBeforeUnmount as _t, createElementBlock as n, openBlock as o, unref as c, normalizeStyle as fe, normalizeClass as P, createBlock as se, createCommentVNode as S, createSlots as At, withCtx as V, renderSlot as z, normalizeProps as oe, guardReactiveProps as ne, createVNode as $t, Fragment as $, renderList as O, createElementVNode as It, toDisplayString as St } from "vue";
|
|
2
|
-
import { c as Rt, t as Pt, o as zt, f as Ot, i as Z, n as Wt, X as Dt, m as je, a as Tt, q as Be, d as Ft } from "./lib-
|
|
2
|
+
import { c as Rt, t as Pt, o as zt, f as Ot, i as Z, n as Wt, X as Dt, m as je, a as Tt, q as Be, d as Ft } from "./lib-BEpWEyMm.js";
|
|
3
3
|
import { t as Xt, u as Nt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Lt, a as Ee } from "./useNestedProp-
|
|
5
|
-
import { u as Ut } from "./usePrinter-
|
|
4
|
+
import { u as Lt, a as Ee } from "./useNestedProp-CLD3Gk9S.js";
|
|
5
|
+
import { u as Ut } from "./usePrinter-w23K-ezx.js";
|
|
6
6
|
import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Bt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
8
|
import { t as Et } from "./themes-D3cUNuKw.js";
|
|
9
|
-
import Yt from "./Title-
|
|
10
|
-
import Ht from "./img-
|
|
9
|
+
import Yt from "./Title-C__lOIPC.js";
|
|
10
|
+
import Ht from "./img-DjWwQXVS.js";
|
|
11
11
|
import { u as qt, B as Gt } from "./BaseScanner-BgWxam9d.js";
|
|
12
12
|
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"], Qt = ["d", "stroke", "stroke-width"], ea = ["cx", "cy", "r", "stroke", "stroke-width"], ta = { key: 0 }, aa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], la = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], sa = { key: 1 }, oa = ["d", "fill", "stroke", "stroke-width"], na = ["d", "fill", "stroke", "stroke-width"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], ra = ["d", "fill", "stroke", "stroke-width"], ca = { key: 5 }, ha = ["x", "y", "height"], va = ["x", "y", "font-size", "fill", "font-weight", "stroke", "stroke-width"], da = {
|
|
@@ -35,7 +35,7 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
|
|
|
35
35
|
v73b9429a: ut.value,
|
|
36
36
|
v73b97d74: it.value
|
|
37
37
|
}));
|
|
38
|
-
const qe = ke(() => import("./PenAndPaper-
|
|
38
|
+
const qe = ke(() => import("./PenAndPaper-CR8q353D.js")), Ge = ke(() => import("./UserOptions-DsTgvAok.js")), Ve = ke(() => import("./PackageVersion-oBQ8brnx.js")), { vue_ui_wheel: Ze } = Lt(), F = Ye, Je = m(() => !!F.dataset && Object.keys(F.dataset).length), ue = _(Rt()), Ke = _(null), pe = _(0), X = _(null), ge = _(null), me = _(null), we = _(null), be = _(0), e = _(ce()), { loading: xe, FINAL_DATASET: ie } = qt({
|
|
39
39
|
...Mt(F),
|
|
40
40
|
FINAL_CONFIG: e,
|
|
41
41
|
prepareConfig: ce,
|