vue-data-ui 2.3.28 → 2.3.30
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-C6lQ94rK.cjs → Arrow-B8z06v67.cjs} +1 -1
- package/dist/{Arrow-BPoxM_Tq.js → Arrow-Bh7WeO_g.js} +1 -1
- package/dist/{BaseIcon-Op8_v5x7.js → BaseIcon-BG_bJS3R.js} +1 -1
- package/dist/{BaseIcon-BK5xYOzV.cjs → BaseIcon-DDCJA3rm.cjs} +1 -1
- package/dist/{DataTable-bEXuvNn5.js → DataTable-CsPidn0_.js} +23 -20
- package/dist/DataTable-Doh_4M84.cjs +1 -0
- package/dist/{Legend-BNfS77GS.cjs → Legend-B20rRwGi.cjs} +1 -1
- package/dist/{Legend-DwludSgp.js → Legend-CkQ_zypV.js} +1 -1
- package/dist/{Shape-COYAxpcP.js → Shape-B4gGeBLI.js} +1 -1
- package/dist/{Shape-CcWWIf-s.cjs → Shape-B8O8_E6l.cjs} +1 -1
- package/dist/{Slicer-DGkm-5p-.cjs → Slicer-BXveU40S.cjs} +1 -1
- package/dist/{Slicer-Cv-2s_-r.js → Slicer-DaEfxscP.js} +1 -1
- package/dist/{Title-DQz9dO4d.cjs → Title-BU6E8Xld.cjs} +1 -1
- package/dist/{Title-CtWGLaoz.js → Title-eBTH8iGJ.js} +1 -1
- package/dist/{Tooltip-D6BUVHr1.js → Tooltip-B11OahTD.js} +1 -1
- package/dist/{Tooltip-DQgBkgFk.cjs → Tooltip-Oicp_EIo.cjs} +1 -1
- package/dist/{index-BhCM2QF1.js → index-BlXzlBwZ.js} +443 -364
- package/dist/index-hKWfT7Wa.cjs +4 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +66 -0
- package/dist/types/vue-data-ui.d.ts +66 -0
- package/dist/{useNestedProp-CH3PVhvc.js → useNestedProp-BoNl5H_z.js} +1 -1
- package/dist/{useNestedProp-C2H2jmU6.cjs → useNestedProp-Cggpoz7e.cjs} +1 -1
- package/dist/{usePrinter-B75HLwzw.js → usePrinter-CZ8F5Cth.js} +1 -1
- package/dist/{usePrinter-DTF28E03.cjs → usePrinter-DoYKBzst.cjs} +1 -1
- package/dist/{vue-data-ui-DdhV5Pth.js → vue-data-ui-BOqzG_nZ.js} +57 -57
- package/dist/{vue-data-ui-cqeqQWwY.cjs → vue-data-ui-CGgiWEo3.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +6 -6
- package/dist/{vue-ui-3d-bar-gi0fEJUl.js → vue-ui-3d-bar-CjnVg4YI.js} +342 -294
- package/dist/vue-ui-3d-bar-CpntMt7p.cjs +19 -0
- package/dist/{vue-ui-accordion-CVrj6roI.cjs → vue-ui-accordion-CTYvdLLH.cjs} +1 -1
- package/dist/{vue-ui-accordion-CSZdj7wA.js → vue-ui-accordion-wHRG3nXl.js} +3 -3
- package/dist/vue-ui-age-pyramid-DDiL1Zje.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CFSWDX3d.js → vue-ui-age-pyramid-vmCwgRy9.js} +258 -219
- package/dist/{vue-ui-annotator-DqZU11ky.js → vue-ui-annotator-9FGJdNLY.js} +1 -1
- package/dist/{vue-ui-annotator-u5YbenPl.cjs → vue-ui-annotator-DQ3wKf9n.cjs} +1 -1
- package/dist/{vue-ui-candlestick-C3xswSm3.cjs → vue-ui-candlestick-6joQ9JKQ.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dph2PhZC.js → vue-ui-candlestick-DpMr2r0i.js} +9 -9
- package/dist/{vue-ui-carousel-table-0S6lSZnt.cjs → vue-ui-carousel-table-BV0EOLqU.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-eY08SE2G.js → vue-ui-carousel-table-CgR4ADOz.js} +4 -4
- package/dist/{vue-ui-chestnut-BikYCrjQ.js → vue-ui-chestnut-Ca2878kV.js} +439 -347
- package/dist/vue-ui-chestnut-CxoCcw_B.cjs +6 -0
- package/dist/{vue-ui-cursor-OFgeAFSo.js → vue-ui-cursor-BW8C6oUc.js} +2 -2
- package/dist/{vue-ui-cursor-DUA57VkZ.cjs → vue-ui-cursor-DxF_gXQf.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BTG0m9YL.cjs → vue-ui-dashboard-BGrVyITN.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DA4M1Z0-.js → vue-ui-dashboard-DN4nErBZ.js} +2 -2
- package/dist/{vue-ui-digits-55Zmunkv.js → vue-ui-digits-CmSFSs5S.js} +2 -2
- package/dist/{vue-ui-digits-COxRiMVI.cjs → vue-ui-digits-CpSKBG2c.cjs} +1 -1
- package/dist/vue-ui-donut-BqfRwAIM.js +857 -0
- package/dist/vue-ui-donut-C29yXH3H.cjs +1 -0
- package/dist/vue-ui-donut-evolution-COFG73Xl.cjs +1 -0
- package/dist/vue-ui-donut-evolution-DIR7yBUC.js +839 -0
- package/dist/{vue-ui-dumbbell-BSFT-Bce.cjs → vue-ui-dumbbell-1NA60u3h.cjs} +2 -2
- package/dist/{vue-ui-dumbbell-BtEXt5Ox.js → vue-ui-dumbbell-BASuPAvI.js} +202 -187
- package/dist/{vue-ui-flow-BPEGOFRZ.cjs → vue-ui-flow-DBK7d0DQ.cjs} +1 -1
- package/dist/{vue-ui-flow-BBoXBTkC.js → vue-ui-flow-wq0aqc5r.js} +98 -93
- package/dist/vue-ui-galaxy-BgdVvk4N.cjs +1 -0
- package/dist/{vue-ui-galaxy-ZFEufIyy.js → vue-ui-galaxy-CFQ2hQAl.js} +180 -144
- package/dist/{vue-ui-gauge-CfZ9XJW_.cjs → vue-ui-gauge-C4_kEbgg.cjs} +1 -1
- package/dist/{vue-ui-gauge-BqZp_V5m.js → vue-ui-gauge-CIN265dN.js} +158 -149
- package/dist/vue-ui-gizmo-BpT3iwC9.cjs +1 -0
- package/dist/{vue-ui-gizmo-DitbWAJp.js → vue-ui-gizmo-DRXWEpqU.js} +63 -49
- package/dist/vue-ui-heatmap-CVD7FVfk.cjs +1 -0
- package/dist/vue-ui-heatmap-Dc0ft_Ga.js +644 -0
- package/dist/{vue-ui-kpi-BWuzEkyY.js → vue-ui-kpi-DDL1TvBP.js} +19 -10
- package/dist/{vue-ui-kpi-B2Bo26hh.cjs → vue-ui-kpi-WDZIt76s.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-BwAWiK3k.js → vue-ui-mini-loader-B2C5U55l.js} +2 -2
- package/dist/{vue-ui-mini-loader-C_Nb-qVd.cjs → vue-ui-mini-loader-BcGSpUfg.cjs} +1 -1
- package/dist/{vue-ui-molecule-CSbXNrvu.cjs → vue-ui-molecule-C5BmRi2R.cjs} +1 -1
- package/dist/{vue-ui-molecule-BD2UW2lJ.js → vue-ui-molecule-CD3cPNOq.js} +9 -9
- package/dist/{vue-ui-mood-radar-CbMab8pJ.js → vue-ui-mood-radar-D0KbeV5j.js} +213 -187
- package/dist/vue-ui-mood-radar-afS64zg-.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-SDaiotgC.js → vue-ui-nested-donuts-BGoc1RFX.js} +295 -228
- package/dist/vue-ui-nested-donuts-D-TeyOtL.cjs +17 -0
- package/dist/{vue-ui-onion-BamHJBdP.js → vue-ui-onion-B_khL0Kv.js} +230 -196
- package/dist/vue-ui-onion-CFdbWLu3.cjs +1 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BaAa3t1h.cjs → vue-ui-parallel-coordinate-plot-BmXvVt8r.cjs} +2 -2
- package/dist/{vue-ui-parallel-coordinate-plot-1R4CyBdQ.js → vue-ui-parallel-coordinate-plot-CP4V0K8m.js} +87 -87
- package/dist/{vue-ui-quadrant-CKCLhAS7.js → vue-ui-quadrant-C1YbjeI7.js} +455 -397
- package/dist/vue-ui-quadrant-C6-A8Gx_.cjs +1 -0
- package/dist/vue-ui-quick-chart-ConXdEsU.cjs +15 -0
- package/dist/vue-ui-quick-chart-CtWhs_2c.js +1374 -0
- package/dist/{vue-ui-radar-BY-y8Mal.js → vue-ui-radar-B2vAPYa7.js} +237 -214
- package/dist/vue-ui-radar-DMJLLVWb.cjs +1 -0
- package/dist/{vue-ui-rating-DGEgzOaB.cjs → vue-ui-rating-DhZ0tltR.cjs} +1 -1
- package/dist/{vue-ui-rating-Bq1SsByA.js → vue-ui-rating-xGz4av68.js} +9 -9
- package/dist/{vue-ui-relation-circle-BPzLP6U6.js → vue-ui-relation-circle-BQK8wMQE.js} +5 -5
- package/dist/{vue-ui-relation-circle-pdZ79G9r.cjs → vue-ui-relation-circle-hb4Q051h.cjs} +1 -1
- package/dist/vue-ui-rings-D1EW3d4M.cjs +2 -0
- package/dist/{vue-ui-rings-C5ce6pEf.js → vue-ui-rings-ZKjhNx5K.js} +191 -162
- package/dist/{vue-ui-scatter-CMetujXJ.js → vue-ui-scatter-CHONk8k0.js} +437 -381
- package/dist/vue-ui-scatter-CMRe2b2K.cjs +1 -0
- package/dist/{vue-ui-screenshot-BqzljUT3.cjs → vue-ui-screenshot-DcKhT745.cjs} +1 -1
- package/dist/{vue-ui-screenshot--2aeIH_x.js → vue-ui-screenshot-DmGe5ptH.js} +6 -6
- package/dist/{vue-ui-skeleton-_VMQ594N.js → vue-ui-skeleton-CJ2R5R6u.js} +37 -37
- package/dist/{vue-ui-skeleton-B5Z4craS.cjs → vue-ui-skeleton-j-IOiy5w.cjs} +1 -1
- package/dist/{vue-ui-smiley-CL-bubXk.cjs → vue-ui-smiley-D5Jn6d5f.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cty3e_yE.js → vue-ui-smiley-DXVcosKR.js} +2 -2
- package/dist/{vue-ui-spark-trend-DT1fMqf_.cjs → vue-ui-spark-trend-CWH3W7h3.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-pgdWTEqG.js → vue-ui-spark-trend-Gg6TxR4m.js} +63 -58
- package/dist/vue-ui-sparkbar-BsoKTXr2.cjs +1 -0
- package/dist/vue-ui-sparkbar-DUx1qVzQ.js +280 -0
- package/dist/{vue-ui-sparkgauge-DdzlyDsm.cjs → vue-ui-sparkgauge-DPusPoRv.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-Dx2gFX6H.js → vue-ui-sparkgauge-xrvp9g87.js} +60 -50
- package/dist/vue-ui-sparkhistogram---JRg2R1.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-Bg_fJsT5.js → vue-ui-sparkhistogram-DzYXMNj8.js} +99 -90
- package/dist/{vue-ui-sparkline-WMI-RgkW.cjs → vue-ui-sparkline-1Z6GnwoN.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BWl_B6LX.js → vue-ui-sparkline-CGWePkVI.js} +114 -105
- package/dist/{vue-ui-sparkstackbar-Skcshn6g.cjs → vue-ui-sparkstackbar-DCc68t8g.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-MMGRG9eS.js → vue-ui-sparkstackbar-DFgeRAbQ.js} +52 -47
- package/dist/{vue-ui-stackbar-NZFO3R77.js → vue-ui-stackbar-B0dWToaf.js} +211 -196
- package/dist/vue-ui-stackbar-Cz0mT8Mo.cjs +15 -0
- package/dist/{vue-ui-strip-plot-CJmCgC_a.js → vue-ui-strip-plot-BFqd-S7c.js} +213 -198
- package/dist/vue-ui-strip-plot-DZt1Wq20.cjs +1 -0
- package/dist/{vue-ui-table-jJ3daLHe.cjs → vue-ui-table-CMvyMuc4.cjs} +1 -1
- package/dist/{vue-ui-table-B-vHHlRw.js → vue-ui-table-DtwEoIzI.js} +9 -9
- package/dist/{vue-ui-table-heatmap-YCyFyq8J.cjs → vue-ui-table-heatmap-3RSMOHkc.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BfzDb2H7.js → vue-ui-table-heatmap-C8b3pE04.js} +12 -12
- package/dist/vue-ui-table-sparkline-BKOaVFtt.cjs +1 -0
- package/dist/vue-ui-table-sparkline-BrqhBv29.js +467 -0
- package/dist/vue-ui-thermometer-CKgIqM5y.cjs +1 -0
- package/dist/{vue-ui-thermometer-CdtG1AoI.js → vue-ui-thermometer-DMkLvJgE.js} +118 -108
- package/dist/{vue-ui-timer-Cb95XSdn.cjs → vue-ui-timer-D7fvoR77.cjs} +1 -1
- package/dist/{vue-ui-timer-DBqMb9iX.js → vue-ui-timer-RA9yfgBk.js} +8 -8
- package/dist/{vue-ui-tiremarks-CHKETcHr.js → vue-ui-tiremarks-B_EncUi6.js} +79 -71
- package/dist/{vue-ui-tiremarks-BqXfvQ4t.cjs → vue-ui-tiremarks-C7y6Mbxe.cjs} +1 -1
- package/dist/{vue-ui-treemap-DxKunHfW.js → vue-ui-treemap-BuGZgQsr.js} +274 -236
- package/dist/vue-ui-treemap-CfngjVUS.cjs +1 -0
- package/dist/vue-ui-vertical-bar-DKbq4bX4.cjs +4 -0
- package/dist/vue-ui-vertical-bar-T4bFd3JF.js +792 -0
- package/dist/vue-ui-waffle-BJFbhWnA.cjs +1 -0
- package/dist/vue-ui-waffle-CrxmrYsV.js +735 -0
- package/dist/{vue-ui-wheel-kMVi976p.cjs → vue-ui-wheel-BDRvKR1Z.cjs} +1 -1
- package/dist/{vue-ui-wheel-4HKXl04I.js → vue-ui-wheel-DOyC7NgR.js} +73 -65
- package/dist/{vue-ui-word-cloud-CrC3iKGd.js → vue-ui-word-cloud-DBxVNlJ3.js} +7 -7
- package/dist/{vue-ui-word-cloud-WgbYJhMF.cjs → vue-ui-word-cloud-Dmcelg3z.cjs} +1 -1
- package/dist/{vue-ui-xy-BN_H7q0X.js → vue-ui-xy-BIbvJSh2.js} +367 -288
- package/dist/vue-ui-xy-CVKaR90p.cjs +3 -0
- package/dist/vue-ui-xy-canvas-2AaNivzI.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DAY9Ylzs.js → vue-ui-xy-canvas-CXVni3kC.js} +284 -259
- package/package.json +1 -1
- package/dist/DataTable-B4_9ynlY.cjs +0 -1
- package/dist/index-Y23HeR26.cjs +0 -4
- package/dist/vue-ui-3d-bar-BB6yidY7.cjs +0 -19
- package/dist/vue-ui-age-pyramid-CrTadT86.cjs +0 -1
- package/dist/vue-ui-chestnut-C3XOHDgw.cjs +0 -6
- package/dist/vue-ui-donut-CG3VWjnG.js +0 -751
- package/dist/vue-ui-donut-JA9hlLlV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-CA8sDbwX.js +0 -805
- package/dist/vue-ui-donut-evolution-_E0xUI9Y.cjs +0 -1
- package/dist/vue-ui-galaxy-DPrJum3L.cjs +0 -1
- package/dist/vue-ui-gizmo-CrSaW32p.cjs +0 -1
- package/dist/vue-ui-heatmap-CTRjjhmd.cjs +0 -1
- package/dist/vue-ui-heatmap-zV0pg2Q5.js +0 -606
- package/dist/vue-ui-mood-radar-zpxdsZ4u.cjs +0 -1
- package/dist/vue-ui-nested-donuts-07UI_VlW.cjs +0 -16
- package/dist/vue-ui-onion-DiychUul.cjs +0 -1
- package/dist/vue-ui-quadrant-DxLYb8Mk.cjs +0 -1
- package/dist/vue-ui-quick-chart-CAXuRSdm.js +0 -1318
- package/dist/vue-ui-quick-chart-DgCRM6WA.cjs +0 -13
- package/dist/vue-ui-radar-iETP_3US.cjs +0 -1
- package/dist/vue-ui-rings-DdpKT3DJ.cjs +0 -1
- package/dist/vue-ui-scatter-Dsc6RABP.cjs +0 -1
- package/dist/vue-ui-sparkbar-BVQPOz2O.js +0 -257
- package/dist/vue-ui-sparkbar-kfA-BPVJ.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-B5xstgQG.cjs +0 -1
- package/dist/vue-ui-stackbar-DZ0CArmk.cjs +0 -15
- package/dist/vue-ui-strip-plot-Db_dqjd9.cjs +0 -1
- package/dist/vue-ui-table-sparkline-4Qbmxxsy.cjs +0 -1
- package/dist/vue-ui-table-sparkline-DZt-bo2D.js +0 -420
- package/dist/vue-ui-thermometer-HXWDU2wD.cjs +0 -1
- package/dist/vue-ui-treemap-CW9JmJ2d.cjs +0 -1
- package/dist/vue-ui-vertical-bar-83AMwsHD.cjs +0 -4
- package/dist/vue-ui-vertical-bar-DRLwZjIz.js +0 -745
- package/dist/vue-ui-waffle-BRuDxyDU.js +0 -650
- package/dist/vue-ui-waffle-BwUbvdOE.cjs +0 -1
- package/dist/vue-ui-xy-BXfP5pz5.cjs +0 -3
- package/dist/vue-ui-xy-canvas-NrhVgFsv.cjs +0 -9
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
import { computed as c, ref as v, onMounted as Me, onBeforeUnmount as De, openBlock as r, createElementBlock as i, normalizeClass as xe, normalizeStyle as W, createVNode as oe, createCommentVNode as p, createBlock as Q, unref as h, createSlots as Ge, withCtx as b, renderSlot as m, normalizeProps as q, guardReactiveProps as H, createElementVNode as w, Fragment as T, renderList as V, toDisplayString as S, createTextVNode as Ce, nextTick as Re, pushScopeId as Ue, popScopeId as je } from "vue";
|
|
2
|
+
import { u as Ee, c as We, t as qe, a as He, p as B, o as Xe, e as ue, g as Ye, b as Je, d as Ke, i as M, f as x, X as Qe, s as Ze, v as et, D as tt, F as lt, w as at, x as ot, q as ut, r as st } from "./index-BlXzlBwZ.js";
|
|
3
|
+
import { t as rt, u as nt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as it } from "./Title-eBTH8iGJ.js";
|
|
5
|
+
import { u as ct, U as vt } from "./usePrinter-CZ8F5Cth.js";
|
|
6
|
+
import { _ as dt } from "./Tooltip-B11OahTD.js";
|
|
7
|
+
import { D as ht } from "./DataTable-CsPidn0_.js";
|
|
8
|
+
import { L as yt } from "./Legend-CkQ_zypV.js";
|
|
9
|
+
import ft from "./vue-ui-skeleton-CJ2R5R6u.js";
|
|
10
|
+
import pt from "./vue-ui-accordion-wHRG3nXl.js";
|
|
11
|
+
import { u as _e } from "./useNestedProp-BoNl5H_z.js";
|
|
12
|
+
import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const $e = (D) => (Ue("data-v-d9bad5ef"), D = D(), je(), D), bt = ["id"], mt = ["xmlns", "viewBox"], wt = ["id"], kt = ["stop-color"], xt = ["stop-color"], Ct = ["id"], _t = /* @__PURE__ */ $e(() => /* @__PURE__ */ w("feGaussianBlur", {
|
|
14
|
+
in: "SourceGraphic",
|
|
15
|
+
stdDeviation: 2
|
|
16
|
+
}, null, -1)), $t = /* @__PURE__ */ $e(() => /* @__PURE__ */ w("feColorMatrix", {
|
|
17
|
+
type: "saturate",
|
|
18
|
+
values: "0"
|
|
19
|
+
}, null, -1)), It = [
|
|
20
|
+
_t,
|
|
21
|
+
$t
|
|
22
|
+
], Tt = ["x", "y", "height", "width"], St = ["height", "width"], Lt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Pt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], zt = ["x", "y", "height", "width", "filter"], Ft = { key: 0 }, Nt = { key: 1 }, Bt = { key: 2 }, Ot = { key: 3 }, At = ["onMouseover", "x", "y", "height", "width"], Vt = {
|
|
23
|
+
key: 3,
|
|
24
|
+
class: "vue-data-ui-watermark"
|
|
25
|
+
}, Mt = ["onClick"], Dt = { key: 0 }, Gt = { key: 1 }, Rt = ["innerHTML"], Ut = {
|
|
26
|
+
__name: "vue-ui-waffle",
|
|
27
|
+
props: {
|
|
28
|
+
config: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default() {
|
|
31
|
+
return {};
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
dataset: {
|
|
35
|
+
type: Array,
|
|
36
|
+
default() {
|
|
37
|
+
return [];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
emits: ["selectLegend"],
|
|
42
|
+
setup(D, { expose: Ie, emit: Te }) {
|
|
43
|
+
const k = D, { vue_ui_waffle: Se } = Ee(), X = c(() => !!k.dataset && k.dataset.length), L = v(We()), Le = v(null), Z = v(!1), ee = v(""), O = v(null), se = v(0), G = v(null), re = v(null), ne = v(null), e = c(() => {
|
|
44
|
+
const t = _e({
|
|
45
|
+
userConfig: k.config,
|
|
46
|
+
defaultConfig: Se
|
|
47
|
+
});
|
|
48
|
+
return t.theme ? {
|
|
49
|
+
..._e({
|
|
50
|
+
userConfig: qe.vue_ui_waffle[t.theme] || k.config,
|
|
51
|
+
defaultConfig: t
|
|
52
|
+
}),
|
|
53
|
+
customPalette: He[t.theme] || B
|
|
54
|
+
} : t;
|
|
55
|
+
}), Y = v(null);
|
|
56
|
+
Me(() => {
|
|
57
|
+
if (Xe(k.dataset) ? ue({
|
|
58
|
+
componentName: "VueUiWaffle",
|
|
59
|
+
type: "dataset"
|
|
60
|
+
}) : k.dataset.forEach((t, o) => {
|
|
61
|
+
Ye({
|
|
62
|
+
datasetObject: t,
|
|
63
|
+
requiredAttributes: ["name", "values"]
|
|
64
|
+
}).forEach((l) => {
|
|
65
|
+
ue({
|
|
66
|
+
componentName: "VueUiWaffle",
|
|
67
|
+
type: "datasetSerieAttribute",
|
|
68
|
+
property: l,
|
|
69
|
+
index: o
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
}), e.value.responsive) {
|
|
73
|
+
const t = rt(() => {
|
|
74
|
+
const { width: o, height: l } = nt({
|
|
75
|
+
chart: G.value,
|
|
76
|
+
title: e.value.style.chart.title.text ? re.value : null,
|
|
77
|
+
legend: e.value.style.chart.legend.show ? ne.value : null
|
|
78
|
+
});
|
|
79
|
+
P.value.width = o, P.value.height = l, C.value.width = o, C.value.height = l;
|
|
80
|
+
});
|
|
81
|
+
Y.value = new ResizeObserver(t), Y.value.observe(G.value.parentNode);
|
|
82
|
+
}
|
|
83
|
+
}), De(() => {
|
|
84
|
+
Y.value && Y.value.disconnect();
|
|
85
|
+
});
|
|
86
|
+
const { isPrinting: ie, isImaging: ce, generatePdf: ve, generateImage: de } = ct({
|
|
87
|
+
elementId: `vue-ui-waffle_${L.value}`,
|
|
88
|
+
fileName: e.value.style.chart.title.text || "vue-ui-waffle"
|
|
89
|
+
}), he = c(() => Je(e.value.customPalette)), I = v({
|
|
90
|
+
showTable: e.value.table.show,
|
|
91
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
92
|
+
}), P = v({
|
|
93
|
+
height: 512,
|
|
94
|
+
width: 512
|
|
95
|
+
}), C = v({
|
|
96
|
+
top: 0,
|
|
97
|
+
left: 0,
|
|
98
|
+
height: 512,
|
|
99
|
+
width: 512
|
|
100
|
+
}), z = c(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), F = c(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), R = c(() => C.value.width / e.value.style.chart.layout.grid.size), J = c(() => C.value.height / e.value.style.chart.layout.grid.size);
|
|
101
|
+
function ye(t) {
|
|
102
|
+
const o = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, l = t.reduce((g, ae) => g + ae, 0), a = t.map((g) => g / l * o), u = a.map(Math.floor), n = a.map((g) => g % 1);
|
|
103
|
+
let f = o - u.reduce((g, ae) => g + ae, 0);
|
|
104
|
+
for (; f > 0; ) {
|
|
105
|
+
let g = n.indexOf(Math.max(...n));
|
|
106
|
+
u[g] += 1, n[g] = 0, f -= 1;
|
|
107
|
+
}
|
|
108
|
+
return u;
|
|
109
|
+
}
|
|
110
|
+
const fe = c(() => k.dataset.map((t, o) => ({
|
|
111
|
+
...t,
|
|
112
|
+
color: Ke(t.color) || he.value[o] || B[o] || B[o % B.length],
|
|
113
|
+
uid: `serie_${o}`,
|
|
114
|
+
absoluteIndex: o
|
|
115
|
+
}))), d = v(fe.value), Pe = c(() => {
|
|
116
|
+
const t = d.value.filter((o, l) => !y.value.includes(o.uid)).map((o, l) => (o.values || []).reduce((a, u) => a + u, 0));
|
|
117
|
+
return ye(t);
|
|
118
|
+
}), ze = c(() => {
|
|
119
|
+
const t = d.value.map((o, l) => (o.values || []).reduce((a, u) => a + u));
|
|
120
|
+
return ye(t);
|
|
121
|
+
}), U = c(() => (k.dataset.forEach((t, o) => {
|
|
122
|
+
[null, void 0].includes(t.values) && ue({
|
|
123
|
+
componentName: "VueUiWaffle",
|
|
124
|
+
type: "datasetSerieAttribute",
|
|
125
|
+
property: "values (number[])",
|
|
126
|
+
index: o
|
|
127
|
+
});
|
|
128
|
+
}), d.value.filter((t, o) => !y.value.includes(t.uid)).map((t, o) => ({
|
|
129
|
+
absoluteIndex: t.absoluteIndex,
|
|
130
|
+
uid: t.uid,
|
|
131
|
+
name: t.name,
|
|
132
|
+
color: t.color,
|
|
133
|
+
value: (t.values || []).reduce((l, a) => l + a, 0),
|
|
134
|
+
absoluteValues: t.values || [],
|
|
135
|
+
proportion: Pe.value[o]
|
|
136
|
+
})))), Fe = c(() => d.value.map((t, o) => ({
|
|
137
|
+
absoluteIndex: t.absoluteIndex,
|
|
138
|
+
uid: t.uid,
|
|
139
|
+
name: t.name,
|
|
140
|
+
color: t.color,
|
|
141
|
+
value: (t.values || []).reduce((l, a) => l + a, 0),
|
|
142
|
+
absoluteValues: t.values || [],
|
|
143
|
+
proportion: ze.value[o]
|
|
144
|
+
})));
|
|
145
|
+
function Ne() {
|
|
146
|
+
return Fe.value.map((t) => ({
|
|
147
|
+
name: t.name,
|
|
148
|
+
color: t.color,
|
|
149
|
+
value: t.value,
|
|
150
|
+
proportion: t.proportion
|
|
151
|
+
}));
|
|
152
|
+
}
|
|
153
|
+
const Be = c(() => {
|
|
154
|
+
let t = 0;
|
|
155
|
+
return U.value.map((o, l) => {
|
|
156
|
+
const a = t, u = a + o.proportion, n = [];
|
|
157
|
+
for (let f = Math.floor(a); f < Math.floor(u); f += 1)
|
|
158
|
+
n.push(f);
|
|
159
|
+
return t = u, {
|
|
160
|
+
...o,
|
|
161
|
+
start: a,
|
|
162
|
+
rects: n
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
}), s = c(() => Be.value.flatMap((t, o) => t.rects.map((l, a) => ({
|
|
166
|
+
isFirst: a === 0,
|
|
167
|
+
isLongEnough: l.length > 2,
|
|
168
|
+
name: t.name,
|
|
169
|
+
color: t.color,
|
|
170
|
+
value: t.value,
|
|
171
|
+
serieIndex: o,
|
|
172
|
+
absoluteStartIndex: a < 3,
|
|
173
|
+
serieId: t.uid,
|
|
174
|
+
...t
|
|
175
|
+
}))).map((t, o) => ({
|
|
176
|
+
...t,
|
|
177
|
+
isAbsoluteFirst: o % e.value.style.chart.layout.grid.size === 0
|
|
178
|
+
}))), j = c(() => {
|
|
179
|
+
const t = [];
|
|
180
|
+
for (let o = 0; o < e.value.style.chart.layout.grid.size; o += 1)
|
|
181
|
+
for (let l = 0; l < e.value.style.chart.layout.grid.size; l += 1)
|
|
182
|
+
t.push({
|
|
183
|
+
isStartOfLine: l === 0,
|
|
184
|
+
position: e.value.style.chart.layout.grid.vertical ? o : l,
|
|
185
|
+
x: (e.value.style.chart.layout.grid.vertical ? o : l) * (z.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
186
|
+
y: (e.value.style.chart.layout.grid.vertical ? l : o) * (F.value + e.value.style.chart.layout.grid.spaceBetween) + C.value.top
|
|
187
|
+
});
|
|
188
|
+
return t;
|
|
189
|
+
}), y = v([]), N = v(!1), pe = v(null), ge = v(null);
|
|
190
|
+
function be(t) {
|
|
191
|
+
if (!e.value.useAnimation) {
|
|
192
|
+
y.value.includes(t) ? y.value = y.value.filter((u) => u !== t) : y.value.length < A.value.length - 1 && A.value.length > 1 && y.value.push(t);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
const o = fe.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
196
|
+
let a = d.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
197
|
+
if (y.value.includes(t)) {
|
|
198
|
+
let n = function() {
|
|
199
|
+
a > u ? (cancelAnimationFrame(pe.value), d.value = d.value.map((f, g) => f.uid === t ? {
|
|
200
|
+
...f,
|
|
201
|
+
values: [u]
|
|
202
|
+
} : f), N.value = !1) : (N.value = !0, a += u * 0.025, d.value = d.value.map((f, g) => f.uid === t ? {
|
|
203
|
+
...f,
|
|
204
|
+
values: [a]
|
|
205
|
+
} : f), pe.value = requestAnimationFrame(n));
|
|
206
|
+
};
|
|
207
|
+
y.value = y.value.filter((f) => f !== t);
|
|
208
|
+
const u = o;
|
|
209
|
+
n();
|
|
210
|
+
} else if (y.value.length < A.value.length - 1 && A.value.length > 1) {
|
|
211
|
+
let u = function() {
|
|
212
|
+
a < 0.1 ? (cancelAnimationFrame(ge.value), y.value.push(t), d.value = d.value.map((n, f) => n.uid === t ? {
|
|
213
|
+
...n,
|
|
214
|
+
values: [0]
|
|
215
|
+
} : n), N.value = !1) : (N.value = !0, a /= 1.5, d.value = d.value.map((n, f) => n.uid === t ? {
|
|
216
|
+
...n,
|
|
217
|
+
values: [a]
|
|
218
|
+
} : n), ge.value = requestAnimationFrame(u));
|
|
219
|
+
};
|
|
220
|
+
u();
|
|
221
|
+
}
|
|
222
|
+
Te("selectLegend", U.value.map((u) => ({
|
|
223
|
+
name: u.name,
|
|
224
|
+
color: u.color,
|
|
225
|
+
value: u.value,
|
|
226
|
+
proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
|
|
227
|
+
})));
|
|
228
|
+
}
|
|
229
|
+
const A = c(() => d.value.map((t, o) => ({
|
|
230
|
+
name: t.name,
|
|
231
|
+
color: t.color || he[o] || B[o] || B[o % B.length],
|
|
232
|
+
value: (t.values || []).reduce((l, a) => l + a, 0),
|
|
233
|
+
uid: t.uid,
|
|
234
|
+
shape: "square"
|
|
235
|
+
})).map((t, o) => ({
|
|
236
|
+
...t,
|
|
237
|
+
proportion: t.value / d.value.map((l) => (l.values || []).reduce((a, u) => a + u, 0)).reduce((l, a) => l + a, 0),
|
|
238
|
+
opacity: y.value.includes(t.uid) ? 0.5 : 1,
|
|
239
|
+
segregate: () => be(t.uid),
|
|
240
|
+
isSegregated: y.value.includes(t.uid)
|
|
241
|
+
}))), Oe = c(() => ({
|
|
242
|
+
cy: "waffle-div-legend",
|
|
243
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
244
|
+
color: e.value.style.chart.legend.color,
|
|
245
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
246
|
+
paddingBottom: 12,
|
|
247
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
248
|
+
})), _ = c(() => U.value.map((t) => t.value).reduce((t, o) => t + o, 0)), te = v(null);
|
|
249
|
+
function Ae(t) {
|
|
250
|
+
if (y.value.length === k.dataset.length) return;
|
|
251
|
+
const o = s.value[t];
|
|
252
|
+
te.value = {
|
|
253
|
+
datapoint: o,
|
|
254
|
+
seriesIndex: o.absoluteIndex,
|
|
255
|
+
series: d.value,
|
|
256
|
+
config: e.value
|
|
257
|
+
}, Z.value = !0, O.value = s.value[t].serieIndex;
|
|
258
|
+
const l = e.value.style.chart.tooltip.customFormat;
|
|
259
|
+
if (at(l) && ot(() => l({
|
|
260
|
+
seriesIndex: s.value[t].absoluteIndex,
|
|
261
|
+
datapoint: o,
|
|
262
|
+
series: d.value,
|
|
263
|
+
config: e.value
|
|
264
|
+
})))
|
|
265
|
+
ee.value = l({
|
|
266
|
+
seriesIndex: s.value[t].absoluteIndex,
|
|
267
|
+
datapoint: o,
|
|
268
|
+
series: d.value,
|
|
269
|
+
config: e.value
|
|
270
|
+
});
|
|
271
|
+
else {
|
|
272
|
+
let a = "";
|
|
273
|
+
if (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`, a += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" rx="1" fill="${o.color}" /></svg>`, e.value.style.chart.tooltip.showValue && (a += `<b>${M(
|
|
274
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
275
|
+
o.value,
|
|
276
|
+
x({
|
|
277
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
278
|
+
v: o.value,
|
|
279
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
280
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
281
|
+
}),
|
|
282
|
+
{
|
|
283
|
+
datapoint: o,
|
|
284
|
+
seriesIndex: s.value[t].absoluteIndex,
|
|
285
|
+
series: d.value
|
|
286
|
+
}
|
|
287
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
288
|
+
const u = x({
|
|
289
|
+
v: o.value / _.value * 100,
|
|
290
|
+
s: "%",
|
|
291
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
292
|
+
});
|
|
293
|
+
e.value.style.chart.tooltip.showValue ? a += `<span>(${u})</span></div>` : a += `<b>${u}%</b></div>`;
|
|
294
|
+
}
|
|
295
|
+
ee.value = a;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
const $ = c(() => {
|
|
299
|
+
const t = U.value.map((l) => ({
|
|
300
|
+
name: l.name,
|
|
301
|
+
color: l.color
|
|
302
|
+
})), o = U.value.map((l) => l.value);
|
|
303
|
+
return { head: t, body: o };
|
|
304
|
+
});
|
|
305
|
+
function le(t) {
|
|
306
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== t ? `url(#blur_${L.value})` : "";
|
|
307
|
+
}
|
|
308
|
+
function me() {
|
|
309
|
+
Re(() => {
|
|
310
|
+
const t = $.value.head.map((a, u) => [[
|
|
311
|
+
a.name
|
|
312
|
+
], [$.value.body[u]], [isNaN($.value.body[u] / _.value) ? "-" : $.value.body[u] / _.value * 100]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(t), l = ut(o);
|
|
313
|
+
st({ csvContent: l, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
const K = c(() => {
|
|
317
|
+
const t = [
|
|
318
|
+
' <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>',
|
|
319
|
+
M(
|
|
320
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
321
|
+
_.value,
|
|
322
|
+
x({
|
|
323
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
324
|
+
v: _.value,
|
|
325
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
326
|
+
r: e.value.table.td.roundingValue
|
|
327
|
+
})
|
|
328
|
+
),
|
|
329
|
+
"100%"
|
|
330
|
+
], o = $.value.head.map((u, n) => [
|
|
331
|
+
{
|
|
332
|
+
color: u.color,
|
|
333
|
+
name: u.name
|
|
334
|
+
},
|
|
335
|
+
M(
|
|
336
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
337
|
+
$.value.body[n],
|
|
338
|
+
x({
|
|
339
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
340
|
+
v: $.value.body[n],
|
|
341
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
342
|
+
r: e.value.table.td.roundingValue
|
|
343
|
+
})
|
|
344
|
+
),
|
|
345
|
+
isNaN($.value.body[n] / _.value) ? "-" : x({
|
|
346
|
+
v: $.value.body[n] / _.value * 100,
|
|
347
|
+
s: "%",
|
|
348
|
+
r: e.value.table.td.roundingPercentage
|
|
349
|
+
})
|
|
350
|
+
]), l = {
|
|
351
|
+
th: {
|
|
352
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
353
|
+
color: e.value.table.th.color,
|
|
354
|
+
outline: e.value.table.th.outline
|
|
355
|
+
},
|
|
356
|
+
td: {
|
|
357
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
358
|
+
color: e.value.table.td.color,
|
|
359
|
+
outline: e.value.table.td.outline
|
|
360
|
+
},
|
|
361
|
+
shape: "square",
|
|
362
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
363
|
+
}, a = [
|
|
364
|
+
e.value.table.columnNames.series,
|
|
365
|
+
e.value.table.columnNames.value,
|
|
366
|
+
e.value.table.columnNames.percentage
|
|
367
|
+
];
|
|
368
|
+
return {
|
|
369
|
+
head: t,
|
|
370
|
+
body: o,
|
|
371
|
+
config: l,
|
|
372
|
+
colNames: a
|
|
373
|
+
};
|
|
374
|
+
}), E = v(!1);
|
|
375
|
+
function Ve(t) {
|
|
376
|
+
E.value = t, se.value += 1;
|
|
377
|
+
}
|
|
378
|
+
function we() {
|
|
379
|
+
I.value.showTable = !I.value.showTable;
|
|
380
|
+
}
|
|
381
|
+
function ke() {
|
|
382
|
+
I.value.showTooltip = !I.value.showTooltip;
|
|
383
|
+
}
|
|
384
|
+
return Ie({
|
|
385
|
+
getData: Ne,
|
|
386
|
+
generatePdf: ve,
|
|
387
|
+
generateCsv: me,
|
|
388
|
+
generateImage: de,
|
|
389
|
+
toggleTable: we,
|
|
390
|
+
toggleTooltip: ke
|
|
391
|
+
}), (t, o) => (r(), i("div", {
|
|
392
|
+
class: xe(`vue-ui-waffle ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
393
|
+
ref_key: "waffleChart",
|
|
394
|
+
ref: G,
|
|
395
|
+
id: `vue-ui-waffle_${L.value}`,
|
|
396
|
+
style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.chart.title.text ? "" : "padding-top:36px"};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
|
|
397
|
+
}, [
|
|
398
|
+
e.value.style.chart.title.text ? (r(), i("div", {
|
|
399
|
+
key: 0,
|
|
400
|
+
ref_key: "chartTitle",
|
|
401
|
+
ref: re,
|
|
402
|
+
style: W(`width:100%;background:${e.value.style.chart.backgroundColor};padding-bottom:12px`)
|
|
403
|
+
}, [
|
|
404
|
+
oe(it, {
|
|
405
|
+
config: {
|
|
406
|
+
title: {
|
|
407
|
+
cy: "waffle-title",
|
|
408
|
+
...e.value.style.chart.title
|
|
409
|
+
},
|
|
410
|
+
subtitle: {
|
|
411
|
+
cy: "waffle-subtitle",
|
|
412
|
+
...e.value.style.chart.title.subtitle
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}, null, 8, ["config"])
|
|
416
|
+
], 4)) : p("", !0),
|
|
417
|
+
e.value.userOptions.show && X.value ? (r(), Q(vt, {
|
|
418
|
+
ref_key: "details",
|
|
419
|
+
ref: Le,
|
|
420
|
+
key: `user_options_${se.value}`,
|
|
421
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
422
|
+
color: e.value.style.chart.color,
|
|
423
|
+
isPrinting: h(ie),
|
|
424
|
+
isImaging: h(ce),
|
|
425
|
+
uid: L.value,
|
|
426
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
427
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
428
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
429
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
430
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
431
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
432
|
+
isFullscreen: E.value,
|
|
433
|
+
isTooltip: I.value.showTooltip,
|
|
434
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
435
|
+
chartElement: G.value,
|
|
436
|
+
onToggleFullscreen: Ve,
|
|
437
|
+
onGeneratePdf: h(ve),
|
|
438
|
+
onGenerateCsv: me,
|
|
439
|
+
onGenerateImage: h(de),
|
|
440
|
+
onToggleTable: we,
|
|
441
|
+
onToggleTooltip: ke
|
|
442
|
+
}, Ge({ _: 2 }, [
|
|
443
|
+
t.$slots.optionTooltip ? {
|
|
444
|
+
name: "optionTooltip",
|
|
445
|
+
fn: b(() => [
|
|
446
|
+
m(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
447
|
+
]),
|
|
448
|
+
key: "0"
|
|
449
|
+
} : void 0,
|
|
450
|
+
t.$slots.optionPdf ? {
|
|
451
|
+
name: "optionPdf",
|
|
452
|
+
fn: b(() => [
|
|
453
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
454
|
+
]),
|
|
455
|
+
key: "1"
|
|
456
|
+
} : void 0,
|
|
457
|
+
t.$slots.optionCsv ? {
|
|
458
|
+
name: "optionCsv",
|
|
459
|
+
fn: b(() => [
|
|
460
|
+
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
461
|
+
]),
|
|
462
|
+
key: "2"
|
|
463
|
+
} : void 0,
|
|
464
|
+
t.$slots.optionImg ? {
|
|
465
|
+
name: "optionImg",
|
|
466
|
+
fn: b(() => [
|
|
467
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
468
|
+
]),
|
|
469
|
+
key: "3"
|
|
470
|
+
} : void 0,
|
|
471
|
+
t.$slots.optionTable ? {
|
|
472
|
+
name: "optionTable",
|
|
473
|
+
fn: b(() => [
|
|
474
|
+
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
475
|
+
]),
|
|
476
|
+
key: "4"
|
|
477
|
+
} : void 0,
|
|
478
|
+
t.$slots.optionFullscreen ? {
|
|
479
|
+
name: "optionFullscreen",
|
|
480
|
+
fn: b(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
481
|
+
m(t.$slots, "optionFullscreen", q(H({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
482
|
+
]),
|
|
483
|
+
key: "5"
|
|
484
|
+
} : void 0
|
|
485
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : p("", !0),
|
|
486
|
+
X.value ? (r(), i("svg", {
|
|
487
|
+
key: 2,
|
|
488
|
+
xmlns: h(Qe),
|
|
489
|
+
class: xe({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
490
|
+
viewBox: `0 0 ${P.value.width <= 0 ? 10 : P.value.width} ${P.value.height <= 0 ? 10 : P.value.height}`,
|
|
491
|
+
style: W(`max-width:100%;overflow:visible;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color}`)
|
|
492
|
+
}, [
|
|
493
|
+
w("defs", null, [
|
|
494
|
+
(r(!0), i(T, null, V(s.value, (l, a) => (r(), i("radialGradient", {
|
|
495
|
+
cx: "50%",
|
|
496
|
+
cy: "50%",
|
|
497
|
+
r: "50%",
|
|
498
|
+
fx: "50%",
|
|
499
|
+
fy: "50%",
|
|
500
|
+
id: `gradient_${L.value}_${a}`
|
|
501
|
+
}, [
|
|
502
|
+
w("stop", {
|
|
503
|
+
offset: "0%",
|
|
504
|
+
"stop-color": `${h(Ze)(l.color, 0.05)}${h(et)[100 - e.value.style.chart.layout.rect.gradientIntensity]}`
|
|
505
|
+
}, null, 8, kt),
|
|
506
|
+
w("stop", {
|
|
507
|
+
offset: "100%",
|
|
508
|
+
"stop-color": l.color
|
|
509
|
+
}, null, 8, xt)
|
|
510
|
+
], 8, wt))), 256))
|
|
511
|
+
]),
|
|
512
|
+
w("defs", null, [
|
|
513
|
+
w("filter", {
|
|
514
|
+
id: `blur_${L.value}`,
|
|
515
|
+
x: "-50%",
|
|
516
|
+
y: "-50%",
|
|
517
|
+
width: "200%",
|
|
518
|
+
height: "200%"
|
|
519
|
+
}, It, 8, Ct)
|
|
520
|
+
]),
|
|
521
|
+
e.value.useCustomCells ? (r(!0), i(T, { key: 0 }, V(j.value, (l, a) => (r(), i("foreignObject", {
|
|
522
|
+
x: l.x,
|
|
523
|
+
y: l.y,
|
|
524
|
+
height: F.value <= 0 ? 1e-4 : F.value,
|
|
525
|
+
width: z.value <= 0 ? 1e-4 : z.value,
|
|
526
|
+
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
527
|
+
}, [
|
|
528
|
+
m(t.$slots, "cell", q(H({ cell: { ...l, color: s.value[a].color, ...s.value[a] }, isSelected: [null, void 0].includes(O.value) ? !0 : s.value[a].serieIndex === O.value })), void 0, !0)
|
|
529
|
+
], 8, Tt))), 256)) : p("", !0),
|
|
530
|
+
s.value.length ? s.value.length ? (r(), i(T, { key: 2 }, [
|
|
531
|
+
(r(!0), i(T, null, V(j.value, (l, a) => (r(), i("rect", {
|
|
532
|
+
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
533
|
+
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
534
|
+
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
535
|
+
height: F.value <= 0 ? 1e-4 : F.value,
|
|
536
|
+
width: z.value <= 0 ? 1e-4 : z.value,
|
|
537
|
+
fill: "white",
|
|
538
|
+
stroke: e.value.style.chart.layout.rect.stroke,
|
|
539
|
+
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
540
|
+
filter: le(s.value[a].serieIndex)
|
|
541
|
+
}, null, 8, Lt))), 256)),
|
|
542
|
+
(r(!0), i(T, null, V(j.value, (l, a) => (r(), i("rect", {
|
|
543
|
+
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
544
|
+
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
545
|
+
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
546
|
+
height: F.value <= 0 ? 1e-4 : F.value,
|
|
547
|
+
width: z.value <= 0 ? 1e-4 : z.value,
|
|
548
|
+
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${L.value}_${a})` : s.value[a].color,
|
|
549
|
+
stroke: e.value.style.chart.layout.rect.stroke,
|
|
550
|
+
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
551
|
+
filter: le(s.value[a].serieIndex)
|
|
552
|
+
}, null, 8, Pt))), 256))
|
|
553
|
+
], 64)) : p("", !0) : (r(), i("rect", {
|
|
554
|
+
key: 1,
|
|
555
|
+
x: 12,
|
|
556
|
+
y: 12,
|
|
557
|
+
height: C.value.height - 24,
|
|
558
|
+
width: C.value.width - 24,
|
|
559
|
+
rx: 3,
|
|
560
|
+
fill: "none",
|
|
561
|
+
stroke: "black"
|
|
562
|
+
}, null, 8, St)),
|
|
563
|
+
(r(!0), i(T, null, V(j.value, (l, a) => (r(), i(T, null, [
|
|
564
|
+
s.value.length && !N.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (s.value[a].isFirst && l.position < e.value.style.chart.layout.grid.size - 2 || s.value[a].isAbsoluteFirst && a % e.value.style.chart.layout.grid.size === 0 && s.value[a].absoluteStartIndex) ? (r(), i("foreignObject", {
|
|
565
|
+
key: 0,
|
|
566
|
+
x: l.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
567
|
+
y: l.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
568
|
+
height: J.value <= 0 ? 1e-4 : J.value,
|
|
569
|
+
width: R.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : R.value * e.value.style.chart.layout.grid.size,
|
|
570
|
+
filter: le(s.value[a].serieIndex)
|
|
571
|
+
}, [
|
|
572
|
+
w("div", {
|
|
573
|
+
class: "vue-ui-waffle-caption",
|
|
574
|
+
style: W(`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 ${R.value / 12}px;color:${h(tt)(s.value[a].color)};gap:2px`)
|
|
575
|
+
}, [
|
|
576
|
+
e.value.style.chart.layout.labels.captions.showSerieName ? (r(), i("span", Ft, S(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? h(lt)({ source: s.value[a].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : s.value[a].name) + ": ", 1)) : p("", !0),
|
|
577
|
+
e.value.style.chart.layout.labels.captions.showPercentage ? (r(), i("span", Nt, S(h(x)({ v: s.value[a].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : p("", !0),
|
|
578
|
+
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (r(), i("span", Bt, " (" + S(h(M)(
|
|
579
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
580
|
+
s.value[a].value,
|
|
581
|
+
h(x)({
|
|
582
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
583
|
+
v: s.value[a].value,
|
|
584
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
585
|
+
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
586
|
+
}),
|
|
587
|
+
{ datapoint: s.value[a], position: l }
|
|
588
|
+
)) + ") ", 1)) : p("", !0),
|
|
589
|
+
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (r(), i("span", Ot, S(h(M)(
|
|
590
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
591
|
+
s.value[a].value,
|
|
592
|
+
h(x)({
|
|
593
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
594
|
+
v: s.value[a].value,
|
|
595
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
596
|
+
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
597
|
+
}),
|
|
598
|
+
{ datapoint: s.value[a], position: l }
|
|
599
|
+
)), 1)) : p("", !0)
|
|
600
|
+
], 4)
|
|
601
|
+
], 8, zt)) : p("", !0)
|
|
602
|
+
], 64))), 256)),
|
|
603
|
+
(r(!0), i(T, null, V(j.value, (l, a) => (r(), i("rect", {
|
|
604
|
+
onMouseover: (u) => Ae(a),
|
|
605
|
+
onMouseleave: o[0] || (o[0] = (u) => {
|
|
606
|
+
Z.value = !1, O.value = null;
|
|
607
|
+
}),
|
|
608
|
+
x: l.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
609
|
+
y: l.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
610
|
+
height: J.value <= 0 ? 1e-4 : J.value,
|
|
611
|
+
width: R.value <= 0 ? 1e-4 : R.value,
|
|
612
|
+
fill: "transparent",
|
|
613
|
+
stroke: "none"
|
|
614
|
+
}, null, 40, At))), 256)),
|
|
615
|
+
m(t.$slots, "svg", { svg: P.value }, void 0, !0)
|
|
616
|
+
], 14, mt)) : p("", !0),
|
|
617
|
+
t.$slots.watermark ? (r(), i("div", Vt, [
|
|
618
|
+
m(t.$slots, "watermark", q(H({ isPrinting: h(ie) || h(ce) })), void 0, !0)
|
|
619
|
+
])) : p("", !0),
|
|
620
|
+
X.value ? p("", !0) : (r(), Q(ft, {
|
|
621
|
+
key: 4,
|
|
622
|
+
config: {
|
|
623
|
+
type: "waffle",
|
|
624
|
+
style: {
|
|
625
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
626
|
+
waffle: {
|
|
627
|
+
color: "#CCCCCC"
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}, null, 8, ["config"])),
|
|
632
|
+
w("div", {
|
|
633
|
+
ref_key: "chartLegend",
|
|
634
|
+
ref: ne
|
|
635
|
+
}, [
|
|
636
|
+
e.value.style.chart.legend.show ? (r(), Q(yt, {
|
|
637
|
+
key: 0,
|
|
638
|
+
legendSet: A.value,
|
|
639
|
+
config: Oe.value,
|
|
640
|
+
onClickMarker: o[1] || (o[1] = ({ legend: l }) => be(l.uid))
|
|
641
|
+
}, {
|
|
642
|
+
item: b(({ legend: l }) => [
|
|
643
|
+
w("div", {
|
|
644
|
+
onClick: (a) => l.segregate(),
|
|
645
|
+
style: W(`opacity:${y.value.includes(l.uid) ? 0.5 : 1}`)
|
|
646
|
+
}, [
|
|
647
|
+
Ce(S(l.name) + ": " + S(h(M)(
|
|
648
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
649
|
+
l.value,
|
|
650
|
+
h(x)({
|
|
651
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
652
|
+
v: l.value,
|
|
653
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
654
|
+
r: e.value.style.chart.legend.roundingValue,
|
|
655
|
+
isAnimating: N.value
|
|
656
|
+
}),
|
|
657
|
+
{ datapoint: l }
|
|
658
|
+
)) + " ", 1),
|
|
659
|
+
y.value.includes(l.uid) ? (r(), i("span", Gt, " ( - % ) ")) : (r(), i("span", Dt, " (" + S(isNaN(l.value / _.value) ? "-" : h(x)({ v: l.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: N.value })) + ") ", 1))
|
|
660
|
+
], 12, Mt)
|
|
661
|
+
]),
|
|
662
|
+
_: 1
|
|
663
|
+
}, 8, ["legendSet", "config"])) : m(t.$slots, "legend", {
|
|
664
|
+
key: 1,
|
|
665
|
+
legend: A.value
|
|
666
|
+
}, void 0, !0)
|
|
667
|
+
], 512),
|
|
668
|
+
oe(dt, {
|
|
669
|
+
show: I.value.showTooltip && Z.value && y.value.length < k.dataset.length,
|
|
670
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
671
|
+
color: e.value.style.chart.tooltip.color,
|
|
672
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
673
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
674
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
675
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
676
|
+
position: e.value.style.chart.tooltip.position,
|
|
677
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
678
|
+
parent: G.value,
|
|
679
|
+
content: ee.value,
|
|
680
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
681
|
+
fontSize: e.value.style.chart.tooltip.fontSize
|
|
682
|
+
}, {
|
|
683
|
+
"tooltip-before": b(() => [
|
|
684
|
+
m(t.$slots, "tooltip-before", q(H({ ...te.value })), void 0, !0)
|
|
685
|
+
]),
|
|
686
|
+
"tooltip-after": b(() => [
|
|
687
|
+
m(t.$slots, "tooltip-after", q(H({ ...te.value })), void 0, !0)
|
|
688
|
+
]),
|
|
689
|
+
_: 3
|
|
690
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize"]),
|
|
691
|
+
X.value ? (r(), Q(pt, {
|
|
692
|
+
key: 5,
|
|
693
|
+
hideDetails: "",
|
|
694
|
+
config: {
|
|
695
|
+
open: I.value.showTable,
|
|
696
|
+
maxHeight: 1e4,
|
|
697
|
+
body: {
|
|
698
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
699
|
+
color: e.value.style.chart.color
|
|
700
|
+
},
|
|
701
|
+
head: {
|
|
702
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
703
|
+
color: e.value.style.chart.color
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}, {
|
|
707
|
+
content: b(() => [
|
|
708
|
+
oe(ht, {
|
|
709
|
+
colNames: K.value.colNames,
|
|
710
|
+
head: K.value.head,
|
|
711
|
+
body: K.value.body,
|
|
712
|
+
config: K.value.config,
|
|
713
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
714
|
+
onClose: o[2] || (o[2] = (l) => I.value.showTable = !1)
|
|
715
|
+
}, {
|
|
716
|
+
th: b(({ th: l }) => [
|
|
717
|
+
w("div", {
|
|
718
|
+
innerHTML: l,
|
|
719
|
+
style: { display: "flex", "align-items": "center" }
|
|
720
|
+
}, null, 8, Rt)
|
|
721
|
+
]),
|
|
722
|
+
td: b(({ td: l }) => [
|
|
723
|
+
Ce(S(l.name || l), 1)
|
|
724
|
+
]),
|
|
725
|
+
_: 1
|
|
726
|
+
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
727
|
+
]),
|
|
728
|
+
_: 1
|
|
729
|
+
}, 8, ["config"])) : p("", !0)
|
|
730
|
+
], 14, bt));
|
|
731
|
+
}
|
|
732
|
+
}, tl = /* @__PURE__ */ gt(Ut, [["__scopeId", "data-v-d9bad5ef"]]);
|
|
733
|
+
export {
|
|
734
|
+
tl as default
|
|
735
|
+
};
|