vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.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/README.md +15 -0
- package/dist/{Arrow-HbfibAF0.js → Arrow-kQyQXUUg.js} +1 -1
- package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
- package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-DaR0sIWZ.js} +1 -1
- package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-Bj3sq9o7.js} +2 -2
- package/dist/{DataTable-CsoAI95B.js → DataTable-BBqbcutV.js} +2 -2
- package/dist/{Legend-ZW-PFcHg.js → Legend-DRqzYrP9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
- package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-ClpqQxYT.js} +1 -1
- package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-B-T7XvxF.js} +3 -3
- package/dist/{Shape-BBbhObHC.js → Shape-DEWxbZ-l.js} +1 -1
- package/dist/{Slicer-Vh74fjdf.js → Slicer-o6jJH5bw.js} +2 -2
- package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-LPnbBoFu.js} +1 -1
- package/dist/{Title-Dx8ctnVy.js → Title-apr_T9tg.js} +1 -1
- package/dist/{Tooltip-COHlzpZI.js → Tooltip-BuHsMAfp.js} +1 -1
- package/dist/{UserOptions-CGn3YdRV.js → UserOptions-OVNxxnq5.js} +144 -133
- package/dist/{dom-to-png-BjSUS-jY.js → dom-to-png-C0Ct8ClX.js} +1 -1
- package/dist/{img-DWfzRJdv.js → img-P0SFFw37.js} +1 -1
- package/dist/{index-CbcpITE_.js → index-CH_mJIWj.js} +185 -127
- package/dist/{pdf-Cy09nTjn.js → pdf-Jun3ogRn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +42 -0
- package/dist/types/vue-data-ui.d.ts +42 -0
- package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-rMR-JeOJ.js} +1 -1
- package/dist/{usePrinter-u-gQiRNz.js → usePrinter-DJ7WfWUs.js} +2 -2
- package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-D7AaTKU6.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
- package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
- package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
- package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
- package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
- package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
- package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
- package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
- package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
- package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
- package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
- package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
- package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
- package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
- package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
- package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
- package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-CYWiZjrP.js} +9 -8
- package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
- package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
- package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BJgJgef_.js} +33 -32
- package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-DBclpybR.js} +3 -3
- package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
- package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
- package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
- package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
- package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
- package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
- package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
- package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-UzMmwtvF.js} +9 -8
- package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
- package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
- package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
- package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DMfv2hSb.js} +6 -6
- package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CFYHJrxj.js} +2 -2
- package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
- package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
- package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-CyX30Ccv.js} +23 -22
- package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BEDnWByj.js} +10 -9
- package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
- package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-79itAe84.js} +2 -2
- package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
- package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
- package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
- package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
- package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
- package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-DFTE1OH5.js} +3 -3
- package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
- package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
- package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
- package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
- package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-B0CPNusH.js} +229 -228
- package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
- package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
- package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
- package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
- package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-BhUsfhY5.js} +8 -7
- package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-CEFkua9H.js} +918 -811
- package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useCssVars as _t, defineAsyncComponent as H, useSlots as $t, computed as m, ref as d, watch as Xe, shallowRef as He, onMounted as We, onBeforeUnmount as wt, createElementBlock as i, openBlock as u, unref as r, normalizeStyle as c, normalizeClass as B, createBlock as R, createCommentVNode as p, renderSlot as b, createVNode as Q, createSlots as pe, withCtx as k, normalizeProps as W, guardReactiveProps as G, createElementVNode as n, toDisplayString as h, Fragment as j, renderList as q, mergeProps as xt, withKeys as Ct, createTextVNode as Tt } from "vue";
|
|
2
|
-
import { u as Lt, c as Nt, t as Pt, p as D, a as St, b as Vt, o as Ge, e as Z, v as N, d as ye, i as ne, f as E, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-
|
|
2
|
+
import { u as Lt, c as Nt, t as Pt, p as D, a as St, b as Vt, o as Ge, e as Z, v as N, d as ye, i as ne, f as E, X as It, s as ge, w as Ot, q as Ft, r as Mt, x as zt, y as At } from "./index-CH_mJIWj.js";
|
|
3
3
|
import { t as Bt, u as Rt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as je } from "./useNestedProp-
|
|
5
|
-
import { u as Dt } from "./usePrinter-
|
|
4
|
+
import { u as je } from "./useNestedProp-rMR-JeOJ.js";
|
|
5
|
+
import { u as Dt } from "./usePrinter-DJ7WfWUs.js";
|
|
6
6
|
import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Ut } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Xt from "./vue-ui-accordion-
|
|
9
|
-
import qe from "./Legend-
|
|
10
|
-
import Ht from "./Title-
|
|
11
|
-
import { _ as Ye } from "./Shape-
|
|
8
|
+
import Xt from "./vue-ui-accordion-Ds4zkPIx.js";
|
|
9
|
+
import qe from "./Legend-DRqzYrP9.js";
|
|
10
|
+
import Ht from "./Title-apr_T9tg.js";
|
|
11
|
+
import { _ as Ye } from "./Shape-DEWxbZ-l.js";
|
|
12
12
|
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "height"], Kt = ["id"], Jt = ["stop-color"], Qt = ["stop-color"], Zt = { key: 1 }, el = ["x", "y", "width", "height", "fill", "rx"], tl = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], ll = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], al = ["x2", "y1", "y2", "stroke", "stroke-width"], ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], nl = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x", "y", "font-size", "fill", "font-weight"], sl = ["x", "y", "font-size", "fill", "font-weight"], rl = ["x", "y", "font-size", "fill", "font-weight"], il = ["y", "width", "height", "fill", "onMouseenter"], dl = {
|
|
14
14
|
key: 6,
|
|
@@ -32,9 +32,9 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
32
32
|
emits: ["selectLegend"],
|
|
33
33
|
setup(Ke, { expose: Je, emit: Qe }) {
|
|
34
34
|
_t((l) => ({
|
|
35
|
-
|
|
35
|
+
"5ba4c306": l.tdo
|
|
36
36
|
}));
|
|
37
|
-
const Ze = H(() => import("./BaseIcon-
|
|
37
|
+
const Ze = H(() => import("./BaseIcon-DaR0sIWZ.js")), et = H(() => import("./PackageVersion-ClpqQxYT.js")), tt = H(() => import("./PenAndPaper-B-T7XvxF.js")), lt = H(() => import("./vue-ui-skeleton-C6PWt_m5.js")), at = H(() => import("./Tooltip-BuHsMAfp.js")), ot = H(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_vertical_bar: nt } = Lt(), ut = $t(), T = Ke, ee = m(() => !!T.dataset && T.dataset.length), C = d(Nt()), st = d(null), ue = d(!1), se = d(""), te = d(0), rt = d(null), fe = d(0), Y = d(null), be = d(null), re = d(null), me = d(null), ke = d(null), _e = d(0), ie = d(0), it = Qe, e = m({
|
|
38
38
|
get: () => Ce(),
|
|
39
39
|
set: (l) => l
|
|
40
40
|
}), { userOptionsVisible: de, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: e.value }), { svgRef: xe } = Ut({ config: e.value.style.chart.title });
|
|
@@ -428,6 +428,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
428
428
|
position: e.value.userOptions.position,
|
|
429
429
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
430
430
|
isAnnotation: oe.value,
|
|
431
|
+
callbacks: e.value.userOptions.callbacks,
|
|
431
432
|
onToggleFullscreen: bt,
|
|
432
433
|
onGeneratePdf: r(Ne),
|
|
433
434
|
onGenerateCsv: Re,
|
|
@@ -510,7 +511,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
510
511
|
]),
|
|
511
512
|
key: "9"
|
|
512
513
|
} : void 0
|
|
513
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
514
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : p("", !0),
|
|
514
515
|
e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), i("div", {
|
|
515
516
|
key: 4,
|
|
516
517
|
ref_key: "chartLegend",
|
|
@@ -951,7 +952,7 @@ const Gt = ["id"], jt = ["onClick"], qt = ["xmlns", "viewBox"], Yt = ["width", "
|
|
|
951
952
|
}, 8, ["config"])) : p("", !0)
|
|
952
953
|
], 46, Gt));
|
|
953
954
|
}
|
|
954
|
-
}, Xl = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-
|
|
955
|
+
}, Xl = /* @__PURE__ */ Wt(Sl, [["__scopeId", "data-v-14d06c2b"]]);
|
|
955
956
|
export {
|
|
956
957
|
Xl as default
|
|
957
958
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as B, useSlots as ht, computed as d, ref as c, watch as Ve, shallowRef as Me, onMounted as pt, onBeforeUnmount as
|
|
2
|
-
import { u as gt, c as bt, t as mt, p as M, a as wt, o as kt, e as ve, g as xt, b as Ct, i as q, f as _, X as $t, s as _t, w as It, G as Tt, K as St, d as
|
|
1
|
+
import { defineAsyncComponent as B, useSlots as ht, computed as d, ref as c, watch as Ve, shallowRef as Me, onMounted as pt, onBeforeUnmount as yt, createElementBlock as r, openBlock as s, unref as n, normalizeStyle as K, normalizeClass as De, createBlock as V, createCommentVNode as y, createElementVNode as x, createVNode as ie, createSlots as Re, withCtx as b, renderSlot as g, normalizeProps as j, guardReactiveProps as W, Fragment as $, renderList as F, mergeProps as Ue, toDisplayString as L, createTextVNode as Ge, nextTick as ft } from "vue";
|
|
2
|
+
import { u as gt, c as bt, t as mt, p as M, a as wt, o as kt, e as ve, g as xt, b as Ct, i as q, f as _, X as $t, s as _t, w as It, G as Tt, K as St, d as Ot, q as Pt, r as At, x as Ft, y as Lt } from "./index-CH_mJIWj.js";
|
|
3
3
|
import { t as zt, u as Nt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as Ee } from "./useNestedProp-
|
|
5
|
-
import { u as Bt } from "./usePrinter-
|
|
4
|
+
import { u as Ee } from "./useNestedProp-rMR-JeOJ.js";
|
|
5
|
+
import { u as Bt } from "./usePrinter-DJ7WfWUs.js";
|
|
6
6
|
import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Mt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Dt from "./Title-
|
|
9
|
-
import Rt from "./Legend-
|
|
10
|
-
import { _ as Ut } from "./Shape-
|
|
8
|
+
import Dt from "./Title-apr_T9tg.js";
|
|
9
|
+
import Rt from "./Legend-DRqzYrP9.js";
|
|
10
|
+
import { _ as Ut } from "./Shape-DEWxbZ-l.js";
|
|
11
11
|
import { _ as Gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"], Ht = ["stop-color"], Xt = ["id"], Yt = ["x", "y", "height", "width"], Kt = ["height", "width"], Jt = { key: 0 }, Qt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Zt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], el = { key: 1 }, tl = ["rx", "x", "y", "height", "width", "fill", "filter"], ll = ["x", "y", "height", "width", "filter"], al = { key: 0 }, ol = { key: 1 }, ul = { key: 2 }, sl = { key: 3 }, rl = ["onMouseover", "x", "y", "height", "width"], nl = {
|
|
13
13
|
key: 5,
|
|
@@ -30,7 +30,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
30
30
|
},
|
|
31
31
|
emits: ["selectLegend"],
|
|
32
32
|
setup(je, { expose: We, emit: qe }) {
|
|
33
|
-
const He = B(() => import("./DataTable-
|
|
33
|
+
const He = B(() => import("./DataTable-BBqbcutV.js")), Xe = B(() => import("./PenAndPaper-B-T7XvxF.js")), Ye = B(() => import("./vue-ui-accordion-Ds4zkPIx.js")), Ke = B(() => import("./vue-ui-skeleton-C6PWt_m5.js")), Je = B(() => import("./Tooltip-BuHsMAfp.js")), Qe = B(() => import("./UserOptions-OVNxxnq5.js")), Ze = B(() => import("./PackageVersion-ClpqQxYT.js")), { vue_ui_waffle: et } = gt(), m = je, tt = ht(), J = d(() => !!m.dataset && m.dataset.length), k = c(bt()), lt = c(null), le = c(!1), ae = c(""), D = c(null), ce = c(0), H = c(null), de = c(null), he = c(null), pe = c(null), ye = c(null), fe = c(0), ge = c(0), be = c(0), e = d({
|
|
34
34
|
get: () => xe(),
|
|
35
35
|
set: (t) => t
|
|
36
36
|
}), { userOptionsVisible: oe, setUserOptionsVisibility: me, keepUserOptionState: we } = Vt({ config: e.value }), { svgRef: ke } = Mt({ config: e.value.style.chart.title });
|
|
@@ -48,7 +48,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
48
48
|
} : t;
|
|
49
49
|
}
|
|
50
50
|
Ve(() => m.config, (t) => {
|
|
51
|
-
e.value = xe(), oe.value = !e.value.userOptions.showOnChartHover, Ce(),
|
|
51
|
+
e.value = xe(), oe.value = !e.value.userOptions.showOnChartHover, Ce(), fe.value += 1, ge.value += 1, be.value += 1, C.value.showTable = e.value.table.show, C.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
52
52
|
}, { deep: !0 });
|
|
53
53
|
const A = Me(null), R = Me(null);
|
|
54
54
|
function Ce() {
|
|
@@ -74,7 +74,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
74
74
|
title: e.value.style.chart.title.text ? de.value : null,
|
|
75
75
|
legend: e.value.style.chart.legend.show ? he.value : null,
|
|
76
76
|
source: pe.value,
|
|
77
|
-
noTitle:
|
|
77
|
+
noTitle: ye.value
|
|
78
78
|
});
|
|
79
79
|
requestAnimationFrame(() => {
|
|
80
80
|
z.value.width = a, z.value.height = l, I.value.width = a, I.value.height = l;
|
|
@@ -85,7 +85,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
85
85
|
}
|
|
86
86
|
pt(() => {
|
|
87
87
|
Ce();
|
|
88
|
-
}),
|
|
88
|
+
}), yt(() => {
|
|
89
89
|
A.value && (R.value && A.value.unobserve(R.value), A.value.disconnect());
|
|
90
90
|
});
|
|
91
91
|
const { isPrinting: $e, isImaging: _e, generatePdf: Ie, generateImage: Te } = Bt({
|
|
@@ -104,33 +104,33 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
104
104
|
height: 512,
|
|
105
105
|
width: 512
|
|
106
106
|
}), T = d(() => (I.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), S = d(() => (I.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), X = d(() => I.value.width / e.value.style.chart.layout.grid.size), Q = d(() => I.value.height / e.value.style.chart.layout.grid.size);
|
|
107
|
-
function
|
|
107
|
+
function Oe(t) {
|
|
108
108
|
const a = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((w, ne) => w + ne, 0), o = t.map((w) => w / l * a), u = o.map(Math.floor), v = o.map((w) => w % 1);
|
|
109
|
-
let
|
|
110
|
-
for (;
|
|
109
|
+
let f = a - u.reduce((w, ne) => w + ne, 0);
|
|
110
|
+
for (; f > 0; ) {
|
|
111
111
|
let w = v.indexOf(Math.max(...v));
|
|
112
|
-
u[w] += 1, v[w] = 0,
|
|
112
|
+
u[w] += 1, v[w] = 0, f -= 1;
|
|
113
113
|
}
|
|
114
114
|
return u;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function Pe() {
|
|
117
117
|
return m.dataset.map((t, a) => ({
|
|
118
118
|
...t,
|
|
119
|
-
color:
|
|
119
|
+
color: Ot(t.color) || Se.value[a] || M[a] || M[a % M.length],
|
|
120
120
|
uid: `serie_${a}`,
|
|
121
121
|
absoluteIndex: a
|
|
122
122
|
}));
|
|
123
123
|
}
|
|
124
|
-
const ue = d(() =>
|
|
124
|
+
const ue = d(() => Pe()), h = c(ue.value);
|
|
125
125
|
Ve(() => m.dataset, (t) => {
|
|
126
|
-
h.value =
|
|
126
|
+
h.value = Pe();
|
|
127
127
|
}, { deep: !0 });
|
|
128
128
|
const ot = d(() => {
|
|
129
129
|
const t = h.value.filter((a, l) => !p.value.includes(a.uid)).map((a, l) => (a.values || []).reduce((o, u) => o + u, 0));
|
|
130
|
-
return
|
|
130
|
+
return Oe(t);
|
|
131
131
|
}), ut = d(() => {
|
|
132
132
|
const t = h.value.map((a, l) => (a.values || []).reduce((o, u) => o + u));
|
|
133
|
-
return
|
|
133
|
+
return Oe(t);
|
|
134
134
|
}), Y = d(() => (m.dataset.forEach((t, a) => {
|
|
135
135
|
[null, void 0].includes(t.values) && ve({
|
|
136
136
|
componentName: "VueUiWaffle",
|
|
@@ -167,8 +167,8 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
167
167
|
let t = 0;
|
|
168
168
|
return Y.value.map((a, l) => {
|
|
169
169
|
const o = t, u = o + a.proportion, v = [];
|
|
170
|
-
for (let
|
|
171
|
-
v.push(
|
|
170
|
+
for (let f = Math.floor(o); f < Math.floor(u); f += 1)
|
|
171
|
+
v.push(f);
|
|
172
172
|
return t = u, {
|
|
173
173
|
...a,
|
|
174
174
|
start: o,
|
|
@@ -209,20 +209,20 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
209
209
|
let o = l;
|
|
210
210
|
if (p.value.includes(t)) {
|
|
211
211
|
let v = function() {
|
|
212
|
-
o > u ? (cancelAnimationFrame(Ae.value), h.value = h.value.map((
|
|
213
|
-
...
|
|
212
|
+
o > u ? (cancelAnimationFrame(Ae.value), h.value = h.value.map((f, w) => f.uid === t ? {
|
|
213
|
+
...f,
|
|
214
214
|
values: [u]
|
|
215
|
-
} :
|
|
216
|
-
...
|
|
215
|
+
} : f), N.value = !1) : (N.value = !0, o += u * 0.025, h.value = h.value.map((f, w) => f.uid === t ? {
|
|
216
|
+
...f,
|
|
217
217
|
values: [o]
|
|
218
|
-
} :
|
|
218
|
+
} : f), Ae.value = requestAnimationFrame(v));
|
|
219
219
|
};
|
|
220
|
-
p.value = p.value.filter((
|
|
220
|
+
p.value = p.value.filter((f) => f !== t);
|
|
221
221
|
const u = a;
|
|
222
222
|
v();
|
|
223
223
|
} else if (p.value.length < G.value.length - 1 && G.value.length > 1) {
|
|
224
224
|
let u = function() {
|
|
225
|
-
o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v,
|
|
225
|
+
o < l / 100 ? (cancelAnimationFrame(Fe.value), p.value.push(t), h.value = h.value.map((v, f) => v.uid === t ? {
|
|
226
226
|
...v,
|
|
227
227
|
values: [0]
|
|
228
228
|
} : v), N.value = !1) : (N.value = !0, o /= 1.15, h.value = h.value.map((v) => v.uid === t ? {
|
|
@@ -258,7 +258,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
258
258
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
259
259
|
paddingBottom: 12,
|
|
260
260
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
261
|
-
})),
|
|
261
|
+
})), O = d(() => Y.value.map((t) => t.value).reduce((t, a) => t + a, 0)), se = c(null);
|
|
262
262
|
function vt(t) {
|
|
263
263
|
if (p.value.length === m.dataset.length) return;
|
|
264
264
|
const a = i.value[t];
|
|
@@ -299,7 +299,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
299
299
|
}
|
|
300
300
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
301
301
|
const u = _({
|
|
302
|
-
v: a.value /
|
|
302
|
+
v: a.value / O.value * 100,
|
|
303
303
|
s: "%",
|
|
304
304
|
r: e.value.style.chart.tooltip.roundingPercentage
|
|
305
305
|
});
|
|
@@ -308,7 +308,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
308
308
|
ae.value = o;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
const ct = qe,
|
|
311
|
+
const ct = qe, P = d(() => {
|
|
312
312
|
const t = Y.value.map((l) => ({
|
|
313
313
|
name: l.name,
|
|
314
314
|
color: l.color
|
|
@@ -319,10 +319,10 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
319
319
|
return e.value.useBlurOnHover && ![null, void 0].includes(D.value) && D.value !== t ? `url(#blur_${k.value})` : "";
|
|
320
320
|
}
|
|
321
321
|
function ze() {
|
|
322
|
-
|
|
323
|
-
const t =
|
|
322
|
+
ft(() => {
|
|
323
|
+
const t = P.value.head.map((o, u) => [[
|
|
324
324
|
o.name
|
|
325
|
-
], [
|
|
325
|
+
], [P.value.body[u]], [isNaN(P.value.body[u] / O.value) ? "-" : P.value.body[u] / O.value * 100]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = Pt(a);
|
|
326
326
|
At({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
327
327
|
});
|
|
328
328
|
}
|
|
@@ -331,32 +331,32 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
331
331
|
' <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>',
|
|
332
332
|
q(
|
|
333
333
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
334
|
-
|
|
334
|
+
O.value,
|
|
335
335
|
_({
|
|
336
336
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
337
|
-
v:
|
|
337
|
+
v: O.value,
|
|
338
338
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
339
339
|
r: e.value.table.td.roundingValue
|
|
340
340
|
})
|
|
341
341
|
),
|
|
342
342
|
"100%"
|
|
343
|
-
], a =
|
|
343
|
+
], a = P.value.head.map((u, v) => [
|
|
344
344
|
{
|
|
345
345
|
color: u.color,
|
|
346
346
|
name: u.name
|
|
347
347
|
},
|
|
348
348
|
q(
|
|
349
349
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
350
|
-
|
|
350
|
+
P.value.body[v],
|
|
351
351
|
_({
|
|
352
352
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
353
|
-
v:
|
|
353
|
+
v: P.value.body[v],
|
|
354
354
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
355
355
|
r: e.value.table.td.roundingValue
|
|
356
356
|
})
|
|
357
357
|
),
|
|
358
|
-
isNaN(
|
|
359
|
-
v:
|
|
358
|
+
isNaN(P.value.body[v] / O.value) ? "-" : _({
|
|
359
|
+
v: P.value.body[v] / O.value * 100,
|
|
360
360
|
s: "%",
|
|
361
361
|
r: e.value.table.td.roundingPercentage
|
|
362
362
|
})
|
|
@@ -422,14 +422,14 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
422
422
|
color: e.value.style.chart.color,
|
|
423
423
|
active: te.value,
|
|
424
424
|
onClose: re
|
|
425
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) :
|
|
425
|
+
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
|
|
426
426
|
at.value ? (s(), r("div", {
|
|
427
427
|
key: 1,
|
|
428
428
|
ref_key: "noTitle",
|
|
429
|
-
ref:
|
|
429
|
+
ref: ye,
|
|
430
430
|
class: "vue-data-ui-no-title-space",
|
|
431
431
|
style: "height:36px; width: 100%;background:transparent"
|
|
432
|
-
}, null, 512)) :
|
|
432
|
+
}, null, 512)) : y("", !0),
|
|
433
433
|
e.value.style.chart.title.text ? (s(), r("div", {
|
|
434
434
|
key: 2,
|
|
435
435
|
ref_key: "chartTitle",
|
|
@@ -437,7 +437,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
437
437
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
438
438
|
}, [
|
|
439
439
|
(s(), V(Dt, {
|
|
440
|
-
key: `title_${
|
|
440
|
+
key: `title_${fe.value}`,
|
|
441
441
|
config: {
|
|
442
442
|
title: {
|
|
443
443
|
cy: "waffle-title",
|
|
@@ -449,7 +449,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
}, null, 8, ["config"]))
|
|
452
|
-
], 512)) :
|
|
452
|
+
], 512)) : y("", !0),
|
|
453
453
|
e.value.userOptions.show && J.value && (n(we) || n(oe)) ? (s(), V(n(Qe), {
|
|
454
454
|
ref_key: "details",
|
|
455
455
|
ref: lt,
|
|
@@ -472,6 +472,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
472
472
|
position: e.value.userOptions.position,
|
|
473
473
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
474
474
|
isAnnotation: te.value,
|
|
475
|
+
callbacks: e.value.userOptions.callbacks,
|
|
475
476
|
onToggleFullscreen: dt,
|
|
476
477
|
onGeneratePdf: n(Ie),
|
|
477
478
|
onGenerateCsv: ze,
|
|
@@ -539,7 +540,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
539
540
|
]),
|
|
540
541
|
key: "7"
|
|
541
542
|
} : void 0
|
|
542
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
543
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
|
|
543
544
|
J.value ? (s(), r("svg", {
|
|
544
545
|
key: 4,
|
|
545
546
|
ref_key: "svgRef",
|
|
@@ -595,7 +596,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
595
596
|
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
596
597
|
}, [
|
|
597
598
|
g(t.$slots, "cell", Ue({ ref_for: !0 }, { cell: { ...l, color: i.value[o].color, ...i.value[o] }, isSelected: [null, void 0].includes(D.value) ? !0 : i.value[o].serieIndex === D.value }), void 0, !0)
|
|
598
|
-
], 8, Yt))), 256)) :
|
|
599
|
+
], 8, Yt))), 256)) : y("", !0),
|
|
599
600
|
!i.value.length && !e.value.useCustomCells ? (s(), r("rect", {
|
|
600
601
|
key: 1,
|
|
601
602
|
x: 12,
|
|
@@ -610,7 +611,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
610
611
|
(s(!0), r($, null, F(ue.value, (l) => (s(), r("defs", null, [
|
|
611
612
|
g(t.$slots, "pattern", Ue({ ref_for: !0 }, { seriesIndex: l.absoluteIndex, patternId: `pattern_${k.value}_${l.absoluteIndex}` }), void 0, !0)
|
|
612
613
|
]))), 256))
|
|
613
|
-
])) :
|
|
614
|
+
])) : y("", !0),
|
|
614
615
|
(s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
|
|
615
616
|
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
616
617
|
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
@@ -644,8 +645,8 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
644
645
|
stroke: "none",
|
|
645
646
|
filter: Z(i.value[o].serieIndex)
|
|
646
647
|
}, null, 8, tl))), 256))
|
|
647
|
-
])) :
|
|
648
|
-
], 64)) :
|
|
648
|
+
])) : y("", !0)
|
|
649
|
+
], 64)) : y("", !0),
|
|
649
650
|
(s(!0), r($, null, F(U.value, (l, o) => (s(), r($, null, [
|
|
650
651
|
i.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (i.value[o].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || i.value[o].isAbsoluteFirst && o % e.value.style.chart.layout.grid.size === 0 && i.value[o].absoluteStartIndex) ? (s(), r("foreignObject", {
|
|
651
652
|
key: 0,
|
|
@@ -659,8 +660,8 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
659
660
|
class: "vue-ui-waffle-caption",
|
|
660
661
|
style: K(`height: 100%; width: 100%; font-size:${e.value.style.chart.layout.labels.captions.fontSize}px;display:flex;align-items:center;justify-content:flex-start;padding: 0 ${X.value / 12}px;color:${n(Tt)(i.value[o].color)};gap:2px`)
|
|
661
662
|
}, [
|
|
662
|
-
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", al, L(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(St)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) :
|
|
663
|
-
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", ol, L(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) :
|
|
663
|
+
e.value.style.chart.layout.labels.captions.showSerieName ? (s(), r("span", al, L(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? n(St)({ source: i.value[o].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : i.value[o].name) + ": ", 1)) : y("", !0),
|
|
664
|
+
e.value.style.chart.layout.labels.captions.showPercentage ? (s(), r("span", ol, L(n(_)({ v: i.value[o].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : y("", !0),
|
|
664
665
|
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", ul, " (" + L(n(q)(
|
|
665
666
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
666
667
|
i.value[o].value,
|
|
@@ -671,7 +672,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
671
672
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
672
673
|
}),
|
|
673
674
|
{ datapoint: i.value[o], position: l }
|
|
674
|
-
)) + ") ", 1)) :
|
|
675
|
+
)) + ") ", 1)) : y("", !0),
|
|
675
676
|
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (s(), r("span", sl, L(n(q)(
|
|
676
677
|
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
677
678
|
i.value[o].value,
|
|
@@ -682,9 +683,9 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
682
683
|
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
683
684
|
}),
|
|
684
685
|
{ datapoint: i.value[o], position: l }
|
|
685
|
-
)), 1)) :
|
|
686
|
+
)), 1)) : y("", !0)
|
|
686
687
|
], 4)
|
|
687
|
-
], 8, ll)) :
|
|
688
|
+
], 8, ll)) : y("", !0)
|
|
688
689
|
], 64))), 256)),
|
|
689
690
|
(s(!0), r($, null, F(U.value, (l, o) => (s(), r("rect", {
|
|
690
691
|
onMouseover: (u) => vt(o),
|
|
@@ -699,11 +700,11 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
699
700
|
stroke: "none"
|
|
700
701
|
}, null, 40, rl))), 256)),
|
|
701
702
|
g(t.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
702
|
-
], 14, jt)) :
|
|
703
|
+
], 14, jt)) : y("", !0),
|
|
703
704
|
t.$slots.watermark ? (s(), r("div", nl, [
|
|
704
705
|
g(t.$slots, "watermark", j(W({ isPrinting: n($e) || n(_e) })), void 0, !0)
|
|
705
|
-
])) :
|
|
706
|
-
J.value ?
|
|
706
|
+
])) : y("", !0),
|
|
707
|
+
J.value ? y("", !0) : (s(), V(n(Ke), {
|
|
707
708
|
key: 6,
|
|
708
709
|
config: {
|
|
709
710
|
type: "waffle",
|
|
@@ -742,7 +743,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
742
743
|
}),
|
|
743
744
|
{ datapoint: l }
|
|
744
745
|
)) + " ", 1),
|
|
745
|
-
p.value.includes(l.uid) ? (s(), r("span", cl, " ( - % ) ")) : (s(), r("span", vl, " (" + L(isNaN(l.value /
|
|
746
|
+
p.value.includes(l.uid) ? (s(), r("span", cl, " ( - % ) ")) : (s(), r("span", vl, " (" + L(isNaN(l.value / O.value) ? "-" : n(_)({ v: l.value / O.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
|
|
746
747
|
], 12, il)
|
|
747
748
|
]),
|
|
748
749
|
_: 2
|
|
@@ -772,7 +773,7 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
772
773
|
dir: "auto"
|
|
773
774
|
}, [
|
|
774
775
|
g(t.$slots, "source", {}, void 0, !0)
|
|
775
|
-
], 512)) :
|
|
776
|
+
], 512)) : y("", !0),
|
|
776
777
|
ie(n(Je), {
|
|
777
778
|
show: C.value.showTooltip && le.value && p.value.length < m.dataset.length,
|
|
778
779
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -836,10 +837,10 @@ const Et = ["id"], jt = ["xmlns", "viewBox"], Wt = ["id"], qt = ["stop-color"],
|
|
|
836
837
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
837
838
|
]),
|
|
838
839
|
_: 1
|
|
839
|
-
}, 8, ["config"])) :
|
|
840
|
+
}, 8, ["config"])) : y("", !0)
|
|
840
841
|
], 46, Et));
|
|
841
842
|
}
|
|
842
|
-
}, _l = /* @__PURE__ */ Gt(hl, [["__scopeId", "data-v-
|
|
843
|
+
}, _l = /* @__PURE__ */ Gt(hl, [["__scopeId", "data-v-8a7d3ae8"]]);
|
|
843
844
|
export {
|
|
844
845
|
_l as default
|
|
845
846
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineAsyncComponent as $, computed as p, ref as c, watch as Q, shallowRef as Z, onMounted as ke, onBeforeUnmount as we, createElementBlock as v, openBlock as s, unref as l, normalizeStyle as M, createBlock as _, createCommentVNode as h, createSlots as be, withCtx as k, renderSlot as y, normalizeProps as I, guardReactiveProps as A, normalizeClass as T, createVNode as Ce, Fragment as ee, renderList as te, toDisplayString as Oe } from "vue";
|
|
2
|
-
import { u as $e, c as _e, a as Ie, o as Ae, e as Pe, w as ae, m as xe, X as Fe, i as Se, v as le, f as ze } from "./index-
|
|
2
|
+
import { u as $e, c as _e, a as Ie, o as Ae, e as Pe, w as ae, m as xe, X as Fe, i as Se, v as le, f as ze } from "./index-CH_mJIWj.js";
|
|
3
3
|
import { t as Me, u as Te } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as oe } from "./useNestedProp-
|
|
5
|
-
import { u as Ne } from "./usePrinter-
|
|
4
|
+
import { u as oe } from "./useNestedProp-rMR-JeOJ.js";
|
|
5
|
+
import { u as Ne } from "./usePrinter-DJ7WfWUs.js";
|
|
6
6
|
import { u as Re } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Ue } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Xe from "./Title-
|
|
8
|
+
import Xe from "./Title-apr_T9tg.js";
|
|
9
9
|
import { _ as Ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], De = ["d", "fill"], Ye = ["cx", "cy", "r", "stroke", "stroke-width"], He = ["x", "y", "font-size", "fill", "font-weight"], We = {
|
|
11
11
|
key: 5,
|
|
@@ -27,7 +27,7 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
setup(ne, { expose: se }) {
|
|
30
|
-
const ue = $(() => import("./PenAndPaper-
|
|
30
|
+
const ue = $(() => import("./PenAndPaper-B-T7XvxF.js")), re = $(() => import("./vue-ui-skeleton-C6PWt_m5.js")), ie = $(() => import("./UserOptions-OVNxxnq5.js")), ce = $(() => import("./PackageVersion-ClpqQxYT.js")), { vue_ui_wheel: ve } = $e(), d = ne, P = p(() => !!d.dataset && Object.keys(d.dataset).length), x = c(_e()), he = c(null), N = c(0), w = c(null), R = c(null), U = c(null), X = c(null), E = c(0), e = p({
|
|
31
31
|
get: () => j(),
|
|
32
32
|
set: (t) => t
|
|
33
33
|
}), { userOptionsVisible: F, setUserOptionsVisibility: L, keepUserOptionState: B } = Re({ config: e.value }), { svgRef: G } = Ue({ config: e.value.style.chart.title });
|
|
@@ -195,6 +195,7 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
195
195
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
196
196
|
isAnnotation: O.value,
|
|
197
197
|
chartElement: w.value,
|
|
198
|
+
callbacks: e.value.userOptions.callbacks,
|
|
198
199
|
onToggleFullscreen: fe,
|
|
199
200
|
onGeneratePdf: l(H),
|
|
200
201
|
onGenerateImage: l(W),
|
|
@@ -238,7 +239,7 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
238
239
|
]),
|
|
239
240
|
key: "4"
|
|
240
241
|
} : void 0
|
|
241
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
242
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
242
243
|
P.value ? (s(), v("svg", {
|
|
243
244
|
key: 4,
|
|
244
245
|
ref_key: "svgRef",
|
|
@@ -329,7 +330,7 @@ const Le = ["id"], Be = ["xmlns", "viewBox"], Ge = ["width", "height"], je = ["x
|
|
|
329
330
|
}, null, 8, ["config"]))
|
|
330
331
|
], 44, Le));
|
|
331
332
|
}
|
|
332
|
-
}, ot = /* @__PURE__ */ Ee(qe, [["__scopeId", "data-v-
|
|
333
|
+
}, ot = /* @__PURE__ */ Ee(qe, [["__scopeId", "data-v-b1e78d19"]]);
|
|
333
334
|
export {
|
|
334
335
|
ot as default
|
|
335
336
|
};
|