vue-data-ui 2.4.0 → 2.4.2
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 +56 -54
- package/dist/{Arrow-CbntjQjr.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-NcE21Ngm.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-BUTpMnXi.js → BaseIcon-rRli6Sfv.js} +8 -4
- package/dist/{DataTable-BwH-MU-S.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DAgyf9zN.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DBhpIX2x.js → Legend-CYF2gpXG.js} +23 -17
- package/dist/Legend-YZ7Hz3o1.cjs +1 -0
- package/dist/{PackageVersion-wB6dCDZw.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-Djty0wb2.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CQVJz33T.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-DQ0Hh2Gg.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CiSmaE0_.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-DXw23eOC.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DlVZnHjs.js → Title-5VmBwT4i.js} +21 -17
- package/dist/Title-Co5jI5ed.cjs +1 -0
- package/dist/{Tooltip-DBzXz806.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CveCRFgK.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/documentation/installation.md +10 -9
- package/dist/{index-B0CpCD8z.js → index-DnVHQ2xI.js} +1138 -907
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +101 -20
- package/dist/types/vue-data-ui.d.ts +101 -20
- package/dist/{useNestedProp-DGWP4D-K.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-iuDCMc2p.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-Dr30K4cu.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +52 -51
- package/dist/{vue-ui-3d-bar-C3hYrYTV.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-CmENcGVW.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Deyo7jw7.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-C075Lvfe.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Bb6fUz4x.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-DslXalSQ.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-C4VEOmY_.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-Coq4gg_P.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DZfMMpZ7.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CUnbj-Zb.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-CtuPho-s.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-B9UvQwLp.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-8gQ1bGCn.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-KMTRqXzR.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-DSMNN4z_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-DuEyX8op.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DbojarYN.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-0xdYBc41.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-BxhWjCvR.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-BddgLpP-.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-hXBWaB0c.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DRASsqlp.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B43q8UHu.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-_GVnhxEd.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-BiJnqtGR.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DVZtFcHw.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-qvtu5jtI.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-iZJ0B1Wf.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CovQfZ81.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-CJb2Pg0t.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CUA_fFC3.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-IAIp5IZq.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-Bb2RQ6qI.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-mIQMBRHx.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-BGRWSTGr.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-DcJb7_bV.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-DiQJtMz1.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-BdnW3WFN.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-QRt5bT48.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-fqwO2mHD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DEv_1TFa.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-D-zRYR9g.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-BAr3XuJG.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-Br0GTMx_.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CS6jl2aN.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-tgfbnVYO.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-N8aFbuJv.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge--hgbxLQS.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CqH25hj7.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-vVRA6Z_l.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cry2PFGH.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DXwqMlzQ.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BZir7JxD.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-Dc6tZvej.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CQjpberv.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-C8dme7tS.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-DGmUNjR_.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-BvbXppa1.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-ccoLJyce.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Ch2UwsIw.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DT5a8gHs.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BZ8faxdR.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-CNpKGbIg.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-DE_m5wxu.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CVZI3v1Y.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-D3TaTkPR.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-ClETpddw.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- package/package.json +1 -1
- package/dist/BaseIcon-7IlvRUX2.cjs +0 -1
- package/dist/Legend-CHQgjBuK.cjs +0 -1
- package/dist/Title-BHmTg9iK.cjs +0 -1
- package/dist/index-Dfhvf8hT.cjs +0 -9
- package/dist/usePrinter-BQQasUin.cjs +0 -1
- package/dist/vue-data-ui-BdSFeW_X.js +0 -256
- package/dist/vue-data-ui-BgVPGbxq.cjs +0 -9
- package/dist/vue-ui-3d-bar-DhHuwXZ1.cjs +0 -19
- package/dist/vue-ui-age-pyramid-DaenyRp2.cjs +0 -1
- package/dist/vue-ui-candlestick-CnVzd826.cjs +0 -2
- package/dist/vue-ui-chestnut-CLnJ0jmo.cjs +0 -6
- package/dist/vue-ui-donut-C4ek9m3R.cjs +0 -1
- package/dist/vue-ui-donut-evolution-B4TkwvNq.cjs +0 -1
- package/dist/vue-ui-dumbbell-Cn3spRSv.cjs +0 -9
- package/dist/vue-ui-flow-D00VdtGU.cjs +0 -1
- package/dist/vue-ui-flow-DreN8go4.js +0 -484
- package/dist/vue-ui-galaxy-DVN-S67V.cjs +0 -1
- package/dist/vue-ui-gauge-DYZYFzHP.cjs +0 -1
- package/dist/vue-ui-gauge-DoTctAHq.js +0 -494
- package/dist/vue-ui-heatmap-ldCySJFf.cjs +0 -1
- package/dist/vue-ui-molecule-DP9jhODZ.cjs +0 -1
- package/dist/vue-ui-molecule-Dpu7Xmu5.js +0 -774
- package/dist/vue-ui-mood-radar-BR0INhYL.cjs +0 -1
- package/dist/vue-ui-nested-donuts-CwIsGnyH.cjs +0 -17
- package/dist/vue-ui-onion-DjEChSmi.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-B8Kl6AMk.cjs +0 -8
- package/dist/vue-ui-quadrant-CmdbW8yZ.cjs +0 -1
- package/dist/vue-ui-quick-chart-DcEk6Ho7.cjs +0 -15
- package/dist/vue-ui-radar-TjgO9_LA.cjs +0 -1
- package/dist/vue-ui-relation-circle-f0fKvSSw.js +0 -325
- package/dist/vue-ui-relation-circle-x4sKnxbi.cjs +0 -1
- package/dist/vue-ui-rings-B3mUyyQ9.cjs +0 -2
- package/dist/vue-ui-rings-M1PUv5Wu.js +0 -569
- package/dist/vue-ui-scatter-DF_nobsG.cjs +0 -1
- package/dist/vue-ui-stackbar-BF0M1KJf.js +0 -915
- package/dist/vue-ui-stackbar-BGmTwxvv.cjs +0 -6
- package/dist/vue-ui-strip-plot-DT9Od_To.cjs +0 -1
- package/dist/vue-ui-thermometer-BOs1_H4X.js +0 -416
- package/dist/vue-ui-thermometer-Biv2CIsy.cjs +0 -1
- package/dist/vue-ui-tiremarks-CTMS_E0z.js +0 -279
- package/dist/vue-ui-tiremarks-YU4wuZl3.cjs +0 -1
- package/dist/vue-ui-treemap-5Dm82baA.js +0 -792
- package/dist/vue-ui-treemap-C0E1_DGA.cjs +0 -1
- package/dist/vue-ui-vertical-bar-CVZHDENz.cjs +0 -4
- package/dist/vue-ui-waffle-Bf4epEaH.js +0 -758
- package/dist/vue-ui-waffle-DD09_Fdb.cjs +0 -1
- package/dist/vue-ui-wheel-BybAQ0bR.cjs +0 -1
- package/dist/vue-ui-wheel-DMvZZCzi.js +0 -258
- package/dist/vue-ui-word-cloud-B8hdGDYI.js +0 -574
- package/dist/vue-ui-word-cloud-MQ0kgdPw.cjs +0 -1
- package/dist/vue-ui-xy-B4C0WR56.cjs +0 -3
- package/dist/vue-ui-xy-canvas-qbn0PHMN.cjs +0 -9
|
@@ -0,0 +1,782 @@
|
|
|
1
|
+
import { computed as d, ref as c, watch as Pe, onMounted as He, onBeforeUnmount as Xe, openBlock as r, createElementBlock as i, normalizeClass as Le, normalizeStyle as Z, createBlock as N, createCommentVNode as f, unref as h, createSlots as Ye, withCtx as g, renderSlot as m, normalizeProps as D, guardReactiveProps as G, createVNode as Ae, createElementVNode as k, Fragment as T, renderList as R, toDisplayString as S, createTextVNode as ze, nextTick as Ke, pushScopeId as Je, popScopeId as Qe } from "vue";
|
|
2
|
+
import { u as Ze, c as et, t as tt, a as at, p as O, o as lt, e as re, g as ot, b as ut, i as U, f as x, X as rt, s as st, w as nt, F as it, K as ct, d as vt, x as dt, y as ht, q as pt, r as yt } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { t as ft, u as gt } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as mt } from "./Title-5VmBwT4i.js";
|
|
5
|
+
import { u as bt, U as wt } from "./usePrinter-BEeNAqS5.js";
|
|
6
|
+
import { _ as kt } from "./Tooltip-Cj4EF7v1.js";
|
|
7
|
+
import { D as xt } from "./DataTable-DTk7C4Pr.js";
|
|
8
|
+
import { L as Ct } from "./Legend-CYF2gpXG.js";
|
|
9
|
+
import _t from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
10
|
+
import $t from "./vue-ui-accordion-DspS4q3f.js";
|
|
11
|
+
import { u as Fe } from "./useNestedProp-Cox0K0Y5.js";
|
|
12
|
+
import { _ as It } from "./PackageVersion-CvCRsT5_.js";
|
|
13
|
+
import { P as Tt } from "./PenAndPaper-Jb0pLt3G.js";
|
|
14
|
+
import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Ne = (j) => (Je("data-v-b86c4773"), j = j(), Qe(), j), Pt = ["id"], Lt = ["xmlns", "viewBox"], At = ["id"], zt = ["stop-color"], Ft = ["stop-color"], Nt = ["id"], Ot = /* @__PURE__ */ Ne(() => /* @__PURE__ */ k("feGaussianBlur", {
|
|
16
|
+
in: "SourceGraphic",
|
|
17
|
+
stdDeviation: 2
|
|
18
|
+
}, null, -1)), Bt = /* @__PURE__ */ Ne(() => /* @__PURE__ */ k("feColorMatrix", {
|
|
19
|
+
type: "saturate",
|
|
20
|
+
values: "0"
|
|
21
|
+
}, null, -1)), Vt = [
|
|
22
|
+
Ot,
|
|
23
|
+
Bt
|
|
24
|
+
], Mt = ["x", "y", "height", "width"], Dt = ["height", "width"], Gt = ["rx", "x", "y", "height", "width", "stroke", "stroke-width", "filter"], Rt = ["rx", "x", "y", "height", "width", "fill", "stroke", "stroke-width", "filter"], Ut = ["x", "y", "height", "width", "filter"], jt = { key: 0 }, Et = { key: 1 }, Wt = { key: 2 }, qt = { key: 3 }, Ht = ["onMouseover", "x", "y", "height", "width"], Xt = {
|
|
25
|
+
key: 4,
|
|
26
|
+
class: "vue-data-ui-watermark"
|
|
27
|
+
}, Yt = ["onClick"], Kt = { key: 0 }, Jt = { key: 1 }, Qt = ["innerHTML"], Zt = {
|
|
28
|
+
__name: "vue-ui-waffle",
|
|
29
|
+
props: {
|
|
30
|
+
config: {
|
|
31
|
+
type: Object,
|
|
32
|
+
default() {
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
dataset: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default() {
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
emits: ["selectLegend"],
|
|
44
|
+
setup(j, { expose: Oe, emit: Be }) {
|
|
45
|
+
const b = j, { vue_ui_waffle: Ve } = Ze(), X = d(() => !!b.dataset && b.dataset.length), P = c(et()), Me = c(null), ee = c(!1), te = c(""), B = c(null), se = c(0), V = c(null), ne = c(null), ie = c(null), ce = c(0), ve = c(0), de = c(0), e = d({
|
|
46
|
+
get: () => he(),
|
|
47
|
+
set: (t) => t
|
|
48
|
+
});
|
|
49
|
+
function he() {
|
|
50
|
+
const t = Fe({
|
|
51
|
+
userConfig: b.config,
|
|
52
|
+
defaultConfig: Ve
|
|
53
|
+
});
|
|
54
|
+
return t.theme ? {
|
|
55
|
+
...Fe({
|
|
56
|
+
userConfig: tt.vue_ui_waffle[t.theme] || b.config,
|
|
57
|
+
defaultConfig: t
|
|
58
|
+
}),
|
|
59
|
+
customPalette: at[t.theme] || O
|
|
60
|
+
} : t;
|
|
61
|
+
}
|
|
62
|
+
Pe(() => b.config, (t) => {
|
|
63
|
+
e.value = he(), pe(), ce.value += 1, ve.value += 1, de.value += 1;
|
|
64
|
+
}, { deep: !0 });
|
|
65
|
+
const Y = c(null);
|
|
66
|
+
function pe() {
|
|
67
|
+
if (lt(b.dataset) ? re({
|
|
68
|
+
componentName: "VueUiWaffle",
|
|
69
|
+
type: "dataset"
|
|
70
|
+
}) : b.dataset.forEach((t, o) => {
|
|
71
|
+
ot({
|
|
72
|
+
datasetObject: t,
|
|
73
|
+
requiredAttributes: ["name", "values"]
|
|
74
|
+
}).forEach((a) => {
|
|
75
|
+
re({
|
|
76
|
+
componentName: "VueUiWaffle",
|
|
77
|
+
type: "datasetSerieAttribute",
|
|
78
|
+
property: a,
|
|
79
|
+
index: o
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}), e.value.responsive) {
|
|
83
|
+
const t = ft(() => {
|
|
84
|
+
const { width: o, height: a } = gt({
|
|
85
|
+
chart: V.value,
|
|
86
|
+
title: e.value.style.chart.title.text ? ne.value : null,
|
|
87
|
+
legend: e.value.style.chart.legend.show ? ie.value : null
|
|
88
|
+
});
|
|
89
|
+
L.value.width = o, L.value.height = a, C.value.width = o, C.value.height = a;
|
|
90
|
+
});
|
|
91
|
+
Y.value = new ResizeObserver(t), Y.value.observe(V.value.parentNode);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
He(() => {
|
|
95
|
+
pe();
|
|
96
|
+
}), Xe(() => {
|
|
97
|
+
Y.value && Y.value.disconnect();
|
|
98
|
+
});
|
|
99
|
+
const { isPrinting: ye, isImaging: fe, generatePdf: ge, generateImage: me } = bt({
|
|
100
|
+
elementId: `vue-ui-waffle_${P.value}`,
|
|
101
|
+
fileName: e.value.style.chart.title.text || "vue-ui-waffle"
|
|
102
|
+
}), be = d(() => ut(e.value.customPalette)), I = c({
|
|
103
|
+
showTable: e.value.table.show,
|
|
104
|
+
showTooltip: e.value.style.chart.tooltip.show
|
|
105
|
+
}), L = c({
|
|
106
|
+
height: 512,
|
|
107
|
+
width: 512
|
|
108
|
+
}), C = c({
|
|
109
|
+
top: 0,
|
|
110
|
+
left: 0,
|
|
111
|
+
height: 512,
|
|
112
|
+
width: 512
|
|
113
|
+
}), A = d(() => (C.value.width - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), z = d(() => (C.value.height - e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.spaceBetween) / e.value.style.chart.layout.grid.size), E = d(() => C.value.width / e.value.style.chart.layout.grid.size), K = d(() => C.value.height / e.value.style.chart.layout.grid.size);
|
|
114
|
+
function we(t) {
|
|
115
|
+
const o = e.value.style.chart.layout.grid.size * e.value.style.chart.layout.grid.size, a = t.reduce((w, ue) => w + ue, 0), l = t.map((w) => w / a * o), u = l.map(Math.floor), n = l.map((w) => w % 1);
|
|
116
|
+
let y = o - u.reduce((w, ue) => w + ue, 0);
|
|
117
|
+
for (; y > 0; ) {
|
|
118
|
+
let w = n.indexOf(Math.max(...n));
|
|
119
|
+
u[w] += 1, n[w] = 0, y -= 1;
|
|
120
|
+
}
|
|
121
|
+
return u;
|
|
122
|
+
}
|
|
123
|
+
function ke() {
|
|
124
|
+
return b.dataset.map((t, o) => ({
|
|
125
|
+
...t,
|
|
126
|
+
color: vt(t.color) || be.value[o] || O[o] || O[o % O.length],
|
|
127
|
+
uid: `serie_${o}`,
|
|
128
|
+
absoluteIndex: o
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
const xe = d(() => ke()), v = c(xe.value);
|
|
132
|
+
Pe(() => b.dataset, (t) => {
|
|
133
|
+
v.value = ke();
|
|
134
|
+
}, { deep: !0 });
|
|
135
|
+
const De = d(() => {
|
|
136
|
+
const t = v.value.filter((o, a) => !p.value.includes(o.uid)).map((o, a) => (o.values || []).reduce((l, u) => l + u, 0));
|
|
137
|
+
return we(t);
|
|
138
|
+
}), Ge = d(() => {
|
|
139
|
+
const t = v.value.map((o, a) => (o.values || []).reduce((l, u) => l + u));
|
|
140
|
+
return we(t);
|
|
141
|
+
}), W = d(() => (b.dataset.forEach((t, o) => {
|
|
142
|
+
[null, void 0].includes(t.values) && re({
|
|
143
|
+
componentName: "VueUiWaffle",
|
|
144
|
+
type: "datasetSerieAttribute",
|
|
145
|
+
property: "values (number[])",
|
|
146
|
+
index: o
|
|
147
|
+
});
|
|
148
|
+
}), v.value.filter((t, o) => !p.value.includes(t.uid)).map((t, o) => ({
|
|
149
|
+
absoluteIndex: t.absoluteIndex,
|
|
150
|
+
uid: t.uid,
|
|
151
|
+
name: t.name,
|
|
152
|
+
color: t.color,
|
|
153
|
+
value: (t.values || []).reduce((a, l) => a + l, 0),
|
|
154
|
+
absoluteValues: t.values || [],
|
|
155
|
+
proportion: De.value[o]
|
|
156
|
+
})))), Re = d(() => v.value.map((t, o) => ({
|
|
157
|
+
absoluteIndex: t.absoluteIndex,
|
|
158
|
+
uid: t.uid,
|
|
159
|
+
name: t.name,
|
|
160
|
+
color: t.color,
|
|
161
|
+
value: (t.values || []).reduce((a, l) => a + l, 0),
|
|
162
|
+
absoluteValues: t.values || [],
|
|
163
|
+
proportion: Ge.value[o]
|
|
164
|
+
})));
|
|
165
|
+
function Ue() {
|
|
166
|
+
return Re.value.map((t) => ({
|
|
167
|
+
name: t.name,
|
|
168
|
+
color: t.color,
|
|
169
|
+
value: t.value,
|
|
170
|
+
proportion: t.proportion
|
|
171
|
+
}));
|
|
172
|
+
}
|
|
173
|
+
const je = d(() => {
|
|
174
|
+
let t = 0;
|
|
175
|
+
return W.value.map((o, a) => {
|
|
176
|
+
const l = t, u = l + o.proportion, n = [];
|
|
177
|
+
for (let y = Math.floor(l); y < Math.floor(u); y += 1)
|
|
178
|
+
n.push(y);
|
|
179
|
+
return t = u, {
|
|
180
|
+
...o,
|
|
181
|
+
start: l,
|
|
182
|
+
rects: n
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
}), s = d(() => je.value.flatMap((t, o) => t.rects.map((a, l) => ({
|
|
186
|
+
isFirst: l === 0,
|
|
187
|
+
isLongEnough: a.length > 2,
|
|
188
|
+
name: t.name,
|
|
189
|
+
color: t.color,
|
|
190
|
+
value: t.value,
|
|
191
|
+
serieIndex: o,
|
|
192
|
+
absoluteStartIndex: l < 3,
|
|
193
|
+
serieId: t.uid,
|
|
194
|
+
...t
|
|
195
|
+
}))).map((t, o) => ({
|
|
196
|
+
...t,
|
|
197
|
+
isAbsoluteFirst: o % e.value.style.chart.layout.grid.size === 0
|
|
198
|
+
}))), q = d(() => {
|
|
199
|
+
const t = [];
|
|
200
|
+
for (let o = 0; o < e.value.style.chart.layout.grid.size; o += 1)
|
|
201
|
+
for (let a = 0; a < e.value.style.chart.layout.grid.size; a += 1)
|
|
202
|
+
t.push({
|
|
203
|
+
isStartOfLine: a === 0,
|
|
204
|
+
position: e.value.style.chart.layout.grid.vertical ? o : a,
|
|
205
|
+
x: (e.value.style.chart.layout.grid.vertical ? o : a) * (A.value + e.value.style.chart.layout.grid.spaceBetween),
|
|
206
|
+
y: (e.value.style.chart.layout.grid.vertical ? a : o) * (z.value + e.value.style.chart.layout.grid.spaceBetween) + C.value.top
|
|
207
|
+
});
|
|
208
|
+
return t;
|
|
209
|
+
}), p = c([]), F = c(!1), Ce = c(null), _e = c(null);
|
|
210
|
+
function $e(t) {
|
|
211
|
+
if (!e.value.useAnimation) {
|
|
212
|
+
p.value.includes(t) ? p.value = p.value.filter((u) => u !== t) : p.value.length < M.value.length - 1 && M.value.length > 1 && p.value.push(t);
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
const o = xe.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
216
|
+
let l = v.value.find((u) => u.uid === t).values.reduce((u, n) => u + n, 0);
|
|
217
|
+
if (p.value.includes(t)) {
|
|
218
|
+
let n = function() {
|
|
219
|
+
l > u ? (cancelAnimationFrame(Ce.value), v.value = v.value.map((y, w) => y.uid === t ? {
|
|
220
|
+
...y,
|
|
221
|
+
values: [u]
|
|
222
|
+
} : y), F.value = !1) : (F.value = !0, l += u * 0.025, v.value = v.value.map((y, w) => y.uid === t ? {
|
|
223
|
+
...y,
|
|
224
|
+
values: [l]
|
|
225
|
+
} : y), Ce.value = requestAnimationFrame(n));
|
|
226
|
+
};
|
|
227
|
+
p.value = p.value.filter((y) => y !== t);
|
|
228
|
+
const u = o;
|
|
229
|
+
n();
|
|
230
|
+
} else if (p.value.length < M.value.length - 1 && M.value.length > 1) {
|
|
231
|
+
let u = function() {
|
|
232
|
+
l < 0.1 ? (cancelAnimationFrame(_e.value), p.value.push(t), v.value = v.value.map((n, y) => n.uid === t ? {
|
|
233
|
+
...n,
|
|
234
|
+
values: [0]
|
|
235
|
+
} : n), F.value = !1) : (F.value = !0, l /= 1.5, v.value = v.value.map((n, y) => n.uid === t ? {
|
|
236
|
+
...n,
|
|
237
|
+
values: [l]
|
|
238
|
+
} : n), _e.value = requestAnimationFrame(u));
|
|
239
|
+
};
|
|
240
|
+
u();
|
|
241
|
+
}
|
|
242
|
+
Be("selectLegend", W.value.map((u) => ({
|
|
243
|
+
name: u.name,
|
|
244
|
+
color: u.color,
|
|
245
|
+
value: u.value,
|
|
246
|
+
proportion: u.proportion / Math.pow(e.value.style.chart.layout.grid.size, 2)
|
|
247
|
+
})));
|
|
248
|
+
}
|
|
249
|
+
const M = d(() => v.value.map((t, o) => ({
|
|
250
|
+
name: t.name,
|
|
251
|
+
color: t.color || be[o] || O[o] || O[o % O.length],
|
|
252
|
+
value: (t.values || []).reduce((a, l) => a + l, 0),
|
|
253
|
+
uid: t.uid,
|
|
254
|
+
shape: "square"
|
|
255
|
+
})).map((t, o) => ({
|
|
256
|
+
...t,
|
|
257
|
+
proportion: t.value / v.value.map((a) => (a.values || []).reduce((l, u) => l + u, 0)).reduce((a, l) => a + l, 0),
|
|
258
|
+
opacity: p.value.includes(t.uid) ? 0.5 : 1,
|
|
259
|
+
segregate: () => $e(t.uid),
|
|
260
|
+
isSegregated: p.value.includes(t.uid)
|
|
261
|
+
}))), Ee = d(() => ({
|
|
262
|
+
cy: "waffle-div-legend",
|
|
263
|
+
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
264
|
+
color: e.value.style.chart.legend.color,
|
|
265
|
+
fontSize: e.value.style.chart.legend.fontSize,
|
|
266
|
+
paddingBottom: 12,
|
|
267
|
+
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
268
|
+
})), _ = d(() => W.value.map((t) => t.value).reduce((t, o) => t + o, 0)), ae = c(null);
|
|
269
|
+
function We(t) {
|
|
270
|
+
if (p.value.length === b.dataset.length) return;
|
|
271
|
+
const o = s.value[t];
|
|
272
|
+
ae.value = {
|
|
273
|
+
datapoint: o,
|
|
274
|
+
seriesIndex: o.absoluteIndex,
|
|
275
|
+
series: v.value,
|
|
276
|
+
config: e.value
|
|
277
|
+
}, ee.value = !0, B.value = s.value[t].serieIndex;
|
|
278
|
+
const a = e.value.style.chart.tooltip.customFormat;
|
|
279
|
+
if (dt(a) && ht(() => a({
|
|
280
|
+
seriesIndex: s.value[t].absoluteIndex,
|
|
281
|
+
datapoint: o,
|
|
282
|
+
series: v.value,
|
|
283
|
+
config: e.value
|
|
284
|
+
})))
|
|
285
|
+
te.value = a({
|
|
286
|
+
seriesIndex: s.value[t].absoluteIndex,
|
|
287
|
+
datapoint: o,
|
|
288
|
+
series: v.value,
|
|
289
|
+
config: e.value
|
|
290
|
+
});
|
|
291
|
+
else {
|
|
292
|
+
let l = "";
|
|
293
|
+
if (l += `<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>`, l += `<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 && (l += `<b>${U(
|
|
294
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
295
|
+
o.value,
|
|
296
|
+
x({
|
|
297
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
298
|
+
v: o.value,
|
|
299
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
300
|
+
r: e.value.style.chart.tooltip.roundingValue
|
|
301
|
+
}),
|
|
302
|
+
{
|
|
303
|
+
datapoint: o,
|
|
304
|
+
seriesIndex: s.value[t].absoluteIndex,
|
|
305
|
+
series: v.value
|
|
306
|
+
}
|
|
307
|
+
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
308
|
+
const u = x({
|
|
309
|
+
v: o.value / _.value * 100,
|
|
310
|
+
s: "%",
|
|
311
|
+
r: e.value.style.chart.tooltip.roundingPercentage
|
|
312
|
+
});
|
|
313
|
+
e.value.style.chart.tooltip.showValue ? l += `<span>(${u})</span></div>` : l += `<b>${u}%</b></div>`;
|
|
314
|
+
}
|
|
315
|
+
te.value = l;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
const $ = d(() => {
|
|
319
|
+
const t = W.value.map((a) => ({
|
|
320
|
+
name: a.name,
|
|
321
|
+
color: a.color
|
|
322
|
+
})), o = W.value.map((a) => a.value);
|
|
323
|
+
return { head: t, body: o };
|
|
324
|
+
});
|
|
325
|
+
function le(t) {
|
|
326
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(B.value) && B.value !== t ? `url(#blur_${P.value})` : "";
|
|
327
|
+
}
|
|
328
|
+
function Ie() {
|
|
329
|
+
Ke(() => {
|
|
330
|
+
const t = $.value.head.map((l, u) => [[
|
|
331
|
+
l.name
|
|
332
|
+
], [$.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), a = pt(o);
|
|
333
|
+
yt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-waffle" });
|
|
334
|
+
});
|
|
335
|
+
}
|
|
336
|
+
const J = d(() => {
|
|
337
|
+
const t = [
|
|
338
|
+
' <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>',
|
|
339
|
+
U(
|
|
340
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
341
|
+
_.value,
|
|
342
|
+
x({
|
|
343
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
344
|
+
v: _.value,
|
|
345
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
346
|
+
r: e.value.table.td.roundingValue
|
|
347
|
+
})
|
|
348
|
+
),
|
|
349
|
+
"100%"
|
|
350
|
+
], o = $.value.head.map((u, n) => [
|
|
351
|
+
{
|
|
352
|
+
color: u.color,
|
|
353
|
+
name: u.name
|
|
354
|
+
},
|
|
355
|
+
U(
|
|
356
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
357
|
+
$.value.body[n],
|
|
358
|
+
x({
|
|
359
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
360
|
+
v: $.value.body[n],
|
|
361
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
362
|
+
r: e.value.table.td.roundingValue
|
|
363
|
+
})
|
|
364
|
+
),
|
|
365
|
+
isNaN($.value.body[n] / _.value) ? "-" : x({
|
|
366
|
+
v: $.value.body[n] / _.value * 100,
|
|
367
|
+
s: "%",
|
|
368
|
+
r: e.value.table.td.roundingPercentage
|
|
369
|
+
})
|
|
370
|
+
]), a = {
|
|
371
|
+
th: {
|
|
372
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
373
|
+
color: e.value.table.th.color,
|
|
374
|
+
outline: e.value.table.th.outline
|
|
375
|
+
},
|
|
376
|
+
td: {
|
|
377
|
+
backgroundColor: e.value.table.td.backgroundColor,
|
|
378
|
+
color: e.value.table.td.color,
|
|
379
|
+
outline: e.value.table.td.outline
|
|
380
|
+
},
|
|
381
|
+
shape: "square",
|
|
382
|
+
breakpoint: e.value.table.responsiveBreakpoint
|
|
383
|
+
}, l = [
|
|
384
|
+
e.value.table.columnNames.series,
|
|
385
|
+
e.value.table.columnNames.value,
|
|
386
|
+
e.value.table.columnNames.percentage
|
|
387
|
+
];
|
|
388
|
+
return {
|
|
389
|
+
head: t,
|
|
390
|
+
body: o,
|
|
391
|
+
config: a,
|
|
392
|
+
colNames: l
|
|
393
|
+
};
|
|
394
|
+
}), H = c(!1);
|
|
395
|
+
function qe(t) {
|
|
396
|
+
H.value = t, se.value += 1;
|
|
397
|
+
}
|
|
398
|
+
function Te() {
|
|
399
|
+
I.value.showTable = !I.value.showTable;
|
|
400
|
+
}
|
|
401
|
+
function Se() {
|
|
402
|
+
I.value.showTooltip = !I.value.showTooltip;
|
|
403
|
+
}
|
|
404
|
+
const Q = c(!1);
|
|
405
|
+
function oe() {
|
|
406
|
+
Q.value = !Q.value;
|
|
407
|
+
}
|
|
408
|
+
return Oe({
|
|
409
|
+
getData: Ue,
|
|
410
|
+
generatePdf: ge,
|
|
411
|
+
generateCsv: Ie,
|
|
412
|
+
generateImage: me,
|
|
413
|
+
toggleTable: Te,
|
|
414
|
+
toggleTooltip: Se,
|
|
415
|
+
toggleAnnotator: oe
|
|
416
|
+
}), (t, o) => (r(), i("div", {
|
|
417
|
+
class: Le(`vue-ui-waffle ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
418
|
+
ref_key: "waffleChart",
|
|
419
|
+
ref: V,
|
|
420
|
+
id: `vue-ui-waffle_${P.value}`,
|
|
421
|
+
style: Z(`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%" : ""}`)
|
|
422
|
+
}, [
|
|
423
|
+
e.value.userOptions.buttons.annotator ? (r(), N(Tt, {
|
|
424
|
+
key: 0,
|
|
425
|
+
parent: V.value,
|
|
426
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
427
|
+
color: e.value.style.chart.color,
|
|
428
|
+
active: Q.value,
|
|
429
|
+
onClose: oe
|
|
430
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : f("", !0),
|
|
431
|
+
e.value.style.chart.title.text ? (r(), i("div", {
|
|
432
|
+
key: 1,
|
|
433
|
+
ref_key: "chartTitle",
|
|
434
|
+
ref: ne,
|
|
435
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
436
|
+
}, [
|
|
437
|
+
(r(), N(mt, {
|
|
438
|
+
key: `title_${ce.value}`,
|
|
439
|
+
config: {
|
|
440
|
+
title: {
|
|
441
|
+
cy: "waffle-title",
|
|
442
|
+
...e.value.style.chart.title
|
|
443
|
+
},
|
|
444
|
+
subtitle: {
|
|
445
|
+
cy: "waffle-subtitle",
|
|
446
|
+
...e.value.style.chart.title.subtitle
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}, null, 8, ["config"]))
|
|
450
|
+
], 512)) : f("", !0),
|
|
451
|
+
e.value.userOptions.show && X.value ? (r(), N(wt, {
|
|
452
|
+
ref_key: "details",
|
|
453
|
+
ref: Me,
|
|
454
|
+
key: `user_options_${se.value}`,
|
|
455
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
456
|
+
color: e.value.style.chart.color,
|
|
457
|
+
isPrinting: h(ye),
|
|
458
|
+
isImaging: h(fe),
|
|
459
|
+
uid: P.value,
|
|
460
|
+
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
|
|
461
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
462
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
463
|
+
hasXls: e.value.userOptions.buttons.csv,
|
|
464
|
+
hasTable: e.value.userOptions.buttons.table,
|
|
465
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
466
|
+
isFullscreen: H.value,
|
|
467
|
+
isTooltip: I.value.showTooltip,
|
|
468
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
469
|
+
chartElement: V.value,
|
|
470
|
+
position: e.value.userOptions.position,
|
|
471
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
472
|
+
isAnnotation: Q.value,
|
|
473
|
+
onToggleFullscreen: qe,
|
|
474
|
+
onGeneratePdf: h(ge),
|
|
475
|
+
onGenerateCsv: Ie,
|
|
476
|
+
onGenerateImage: h(me),
|
|
477
|
+
onToggleTable: Te,
|
|
478
|
+
onToggleTooltip: Se,
|
|
479
|
+
onToggleAnnotator: oe
|
|
480
|
+
}, Ye({ _: 2 }, [
|
|
481
|
+
t.$slots.optionTooltip ? {
|
|
482
|
+
name: "optionTooltip",
|
|
483
|
+
fn: g(() => [
|
|
484
|
+
m(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
485
|
+
]),
|
|
486
|
+
key: "0"
|
|
487
|
+
} : void 0,
|
|
488
|
+
t.$slots.optionPdf ? {
|
|
489
|
+
name: "optionPdf",
|
|
490
|
+
fn: g(() => [
|
|
491
|
+
m(t.$slots, "optionPdf", {}, void 0, !0)
|
|
492
|
+
]),
|
|
493
|
+
key: "1"
|
|
494
|
+
} : void 0,
|
|
495
|
+
t.$slots.optionCsv ? {
|
|
496
|
+
name: "optionCsv",
|
|
497
|
+
fn: g(() => [
|
|
498
|
+
m(t.$slots, "optionCsv", {}, void 0, !0)
|
|
499
|
+
]),
|
|
500
|
+
key: "2"
|
|
501
|
+
} : void 0,
|
|
502
|
+
t.$slots.optionImg ? {
|
|
503
|
+
name: "optionImg",
|
|
504
|
+
fn: g(() => [
|
|
505
|
+
m(t.$slots, "optionImg", {}, void 0, !0)
|
|
506
|
+
]),
|
|
507
|
+
key: "3"
|
|
508
|
+
} : void 0,
|
|
509
|
+
t.$slots.optionTable ? {
|
|
510
|
+
name: "optionTable",
|
|
511
|
+
fn: g(() => [
|
|
512
|
+
m(t.$slots, "optionTable", {}, void 0, !0)
|
|
513
|
+
]),
|
|
514
|
+
key: "4"
|
|
515
|
+
} : void 0,
|
|
516
|
+
t.$slots.optionFullscreen ? {
|
|
517
|
+
name: "optionFullscreen",
|
|
518
|
+
fn: g(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
519
|
+
m(t.$slots, "optionFullscreen", D(G({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
520
|
+
]),
|
|
521
|
+
key: "5"
|
|
522
|
+
} : void 0,
|
|
523
|
+
t.$slots.optionAnnotator ? {
|
|
524
|
+
name: "optionAnnotator",
|
|
525
|
+
fn: g(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
526
|
+
m(t.$slots, "optionAnnotator", D(G({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
527
|
+
]),
|
|
528
|
+
key: "6"
|
|
529
|
+
} : void 0
|
|
530
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : f("", !0),
|
|
531
|
+
X.value ? (r(), i("svg", {
|
|
532
|
+
key: 3,
|
|
533
|
+
xmlns: h(rt),
|
|
534
|
+
class: Le({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
|
|
535
|
+
viewBox: `0 0 ${L.value.width <= 0 ? 10 : L.value.width} ${L.value.height <= 0 ? 10 : L.value.height}`,
|
|
536
|
+
style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
|
|
537
|
+
}, [
|
|
538
|
+
Ae(It),
|
|
539
|
+
k("defs", null, [
|
|
540
|
+
(r(!0), i(T, null, R(s.value, (a, l) => (r(), i("radialGradient", {
|
|
541
|
+
cx: "50%",
|
|
542
|
+
cy: "50%",
|
|
543
|
+
r: "50%",
|
|
544
|
+
fx: "50%",
|
|
545
|
+
fy: "50%",
|
|
546
|
+
id: `gradient_${P.value}_${l}`
|
|
547
|
+
}, [
|
|
548
|
+
k("stop", {
|
|
549
|
+
offset: "0%",
|
|
550
|
+
"stop-color": h(st)(h(nt)(a.color, 0.05), 100 - e.value.style.chart.layout.rect.gradientIntensity)
|
|
551
|
+
}, null, 8, zt),
|
|
552
|
+
k("stop", {
|
|
553
|
+
offset: "100%",
|
|
554
|
+
"stop-color": a.color
|
|
555
|
+
}, null, 8, Ft)
|
|
556
|
+
], 8, At))), 256))
|
|
557
|
+
]),
|
|
558
|
+
k("defs", null, [
|
|
559
|
+
k("filter", {
|
|
560
|
+
id: `blur_${P.value}`,
|
|
561
|
+
x: "-50%",
|
|
562
|
+
y: "-50%",
|
|
563
|
+
width: "200%",
|
|
564
|
+
height: "200%"
|
|
565
|
+
}, Vt, 8, Nt)
|
|
566
|
+
]),
|
|
567
|
+
e.value.useCustomCells && s.value.length ? (r(!0), i(T, { key: 0 }, R(q.value, (a, l) => (r(), i("foreignObject", {
|
|
568
|
+
x: a.x,
|
|
569
|
+
y: a.y,
|
|
570
|
+
height: z.value <= 0 ? 1e-4 : z.value,
|
|
571
|
+
width: A.value <= 0 ? 1e-4 : A.value,
|
|
572
|
+
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
573
|
+
}, [
|
|
574
|
+
m(t.$slots, "cell", D(G({ cell: { ...a, color: s.value[l].color, ...s.value[l] }, isSelected: [null, void 0].includes(B.value) ? !0 : s.value[l].serieIndex === B.value })), void 0, !0)
|
|
575
|
+
], 8, Mt))), 256)) : f("", !0),
|
|
576
|
+
!s.value.length && !e.value.useCustomCells ? (r(), i("rect", {
|
|
577
|
+
key: 1,
|
|
578
|
+
x: 12,
|
|
579
|
+
y: 12,
|
|
580
|
+
height: C.value.height - 24,
|
|
581
|
+
width: C.value.width - 24,
|
|
582
|
+
rx: 3,
|
|
583
|
+
fill: "none",
|
|
584
|
+
stroke: "black"
|
|
585
|
+
}, null, 8, Dt)) : s.value.length && !e.value.useCustomCells ? (r(), i(T, { key: 2 }, [
|
|
586
|
+
(r(!0), i(T, null, R(q.value, (a, l) => (r(), i("rect", {
|
|
587
|
+
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
588
|
+
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
589
|
+
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
590
|
+
height: z.value <= 0 ? 1e-4 : z.value,
|
|
591
|
+
width: A.value <= 0 ? 1e-4 : A.value,
|
|
592
|
+
fill: "white",
|
|
593
|
+
stroke: e.value.style.chart.layout.rect.stroke,
|
|
594
|
+
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
595
|
+
filter: le(s.value[l].serieIndex)
|
|
596
|
+
}, null, 8, Gt))), 256)),
|
|
597
|
+
(r(!0), i(T, null, R(q.value, (a, l) => (r(), i("rect", {
|
|
598
|
+
rx: e.value.style.chart.layout.rect.rounded ? e.value.style.chart.layout.rect.rounding : 0,
|
|
599
|
+
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
600
|
+
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
601
|
+
height: z.value <= 0 ? 1e-4 : z.value,
|
|
602
|
+
width: A.value <= 0 ? 1e-4 : A.value,
|
|
603
|
+
fill: e.value.style.chart.layout.rect.useGradient && e.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${P.value}_${l})` : s.value[l].color,
|
|
604
|
+
stroke: e.value.style.chart.layout.rect.stroke,
|
|
605
|
+
"stroke-width": e.value.style.chart.layout.rect.strokeWidth,
|
|
606
|
+
filter: le(s.value[l].serieIndex)
|
|
607
|
+
}, null, 8, Rt))), 256))
|
|
608
|
+
], 64)) : f("", !0),
|
|
609
|
+
(r(!0), i(T, null, R(q.value, (a, l) => (r(), i(T, null, [
|
|
610
|
+
s.value.length && !F.value && !e.value.style.chart.layout.grid.vertical && e.value.style.chart.layout.labels.captions.show && (s.value[l].isFirst && a.position < e.value.style.chart.layout.grid.size - 2 || s.value[l].isAbsoluteFirst && l % e.value.style.chart.layout.grid.size === 0 && s.value[l].absoluteStartIndex) ? (r(), i("foreignObject", {
|
|
611
|
+
key: 0,
|
|
612
|
+
x: a.x + e.value.style.chart.layout.labels.captions.offsetX + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
613
|
+
y: a.y + e.value.style.chart.layout.labels.captions.offsetY + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
614
|
+
height: K.value <= 0 ? 1e-4 : K.value,
|
|
615
|
+
width: E.value * e.value.style.chart.layout.grid.size <= 0 ? 1e-4 : E.value * e.value.style.chart.layout.grid.size,
|
|
616
|
+
filter: le(s.value[l].serieIndex)
|
|
617
|
+
}, [
|
|
618
|
+
k("div", {
|
|
619
|
+
class: "vue-ui-waffle-caption",
|
|
620
|
+
style: Z(`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 ${E.value / 12}px;color:${h(it)(s.value[l].color)};gap:2px`)
|
|
621
|
+
}, [
|
|
622
|
+
e.value.style.chart.layout.labels.captions.showSerieName ? (r(), i("span", jt, S(e.value.style.chart.layout.labels.captions.serieNameAbbreviation ? h(ct)({ source: s.value[l].name, length: e.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize }) : s.value[l].name) + ": ", 1)) : f("", !0),
|
|
623
|
+
e.value.style.chart.layout.labels.captions.showPercentage ? (r(), i("span", Et, S(h(x)({ v: s.value[l].proportion, s: "%", r: e.value.style.chart.layout.labels.captions.roundingPercentage })), 1)) : f("", !0),
|
|
624
|
+
e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (r(), i("span", Wt, " (" + S(h(U)(
|
|
625
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
626
|
+
s.value[l].value,
|
|
627
|
+
h(x)({
|
|
628
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
629
|
+
v: s.value[l].value,
|
|
630
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
631
|
+
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
632
|
+
}),
|
|
633
|
+
{ datapoint: s.value[l], position: a }
|
|
634
|
+
)) + ") ", 1)) : f("", !0),
|
|
635
|
+
!e.value.style.chart.layout.labels.captions.showPercentage && e.value.style.chart.layout.labels.captions.showValue ? (r(), i("span", qt, S(h(U)(
|
|
636
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
637
|
+
s.value[l].value,
|
|
638
|
+
h(x)({
|
|
639
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
640
|
+
v: s.value[l].value,
|
|
641
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
642
|
+
r: e.value.style.chart.layout.labels.captions.roundingValue
|
|
643
|
+
}),
|
|
644
|
+
{ datapoint: s.value[l], position: a }
|
|
645
|
+
)), 1)) : f("", !0)
|
|
646
|
+
], 4)
|
|
647
|
+
], 8, Ut)) : f("", !0)
|
|
648
|
+
], 64))), 256)),
|
|
649
|
+
(r(!0), i(T, null, R(q.value, (a, l) => (r(), i("rect", {
|
|
650
|
+
onMouseover: (u) => We(l),
|
|
651
|
+
onMouseleave: o[0] || (o[0] = (u) => {
|
|
652
|
+
ee.value = !1, B.value = null;
|
|
653
|
+
}),
|
|
654
|
+
x: a.x + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
655
|
+
y: a.y + e.value.style.chart.layout.grid.spaceBetween / 2,
|
|
656
|
+
height: K.value <= 0 ? 1e-4 : K.value,
|
|
657
|
+
width: E.value <= 0 ? 1e-4 : E.value,
|
|
658
|
+
fill: "transparent",
|
|
659
|
+
stroke: "none"
|
|
660
|
+
}, null, 40, Ht))), 256)),
|
|
661
|
+
m(t.$slots, "svg", { svg: L.value }, void 0, !0)
|
|
662
|
+
], 14, Lt)) : f("", !0),
|
|
663
|
+
t.$slots.watermark ? (r(), i("div", Xt, [
|
|
664
|
+
m(t.$slots, "watermark", D(G({ isPrinting: h(ye) || h(fe) })), void 0, !0)
|
|
665
|
+
])) : f("", !0),
|
|
666
|
+
X.value ? f("", !0) : (r(), N(_t, {
|
|
667
|
+
key: 5,
|
|
668
|
+
config: {
|
|
669
|
+
type: "waffle",
|
|
670
|
+
style: {
|
|
671
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
672
|
+
waffle: {
|
|
673
|
+
color: "#CCCCCC"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}, null, 8, ["config"])),
|
|
678
|
+
k("div", {
|
|
679
|
+
ref_key: "chartLegend",
|
|
680
|
+
ref: ie
|
|
681
|
+
}, [
|
|
682
|
+
e.value.style.chart.legend.show ? (r(), N(Ct, {
|
|
683
|
+
key: `legend_${de.value}`,
|
|
684
|
+
legendSet: M.value,
|
|
685
|
+
config: Ee.value,
|
|
686
|
+
onClickMarker: o[1] || (o[1] = ({ legend: a }) => $e(a.uid))
|
|
687
|
+
}, {
|
|
688
|
+
item: g(({ legend: a }) => [
|
|
689
|
+
k("div", {
|
|
690
|
+
onClick: (l) => a.segregate(),
|
|
691
|
+
style: Z(`opacity:${p.value.includes(a.uid) ? 0.5 : 1}`)
|
|
692
|
+
}, [
|
|
693
|
+
ze(S(a.name) + ": " + S(h(U)(
|
|
694
|
+
e.value.style.chart.layout.labels.dataLabels.formatter,
|
|
695
|
+
a.value,
|
|
696
|
+
h(x)({
|
|
697
|
+
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
698
|
+
v: a.value,
|
|
699
|
+
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
700
|
+
r: e.value.style.chart.legend.roundingValue,
|
|
701
|
+
isAnimating: F.value
|
|
702
|
+
}),
|
|
703
|
+
{ datapoint: a }
|
|
704
|
+
)) + " ", 1),
|
|
705
|
+
p.value.includes(a.uid) ? (r(), i("span", Jt, " ( - % ) ")) : (r(), i("span", Kt, " (" + S(isNaN(a.value / _.value) ? "-" : h(x)({ v: a.value / _.value * 100, s: "%", r: e.value.style.chart.legend.roundingPercentage, isAnimating: F.value })) + ") ", 1))
|
|
706
|
+
], 12, Yt)
|
|
707
|
+
]),
|
|
708
|
+
_: 1
|
|
709
|
+
}, 8, ["legendSet", "config"])) : m(t.$slots, "legend", {
|
|
710
|
+
key: 1,
|
|
711
|
+
legend: M.value
|
|
712
|
+
}, void 0, !0)
|
|
713
|
+
], 512),
|
|
714
|
+
Ae(kt, {
|
|
715
|
+
show: I.value.showTooltip && ee.value && p.value.length < b.dataset.length,
|
|
716
|
+
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
717
|
+
color: e.value.style.chart.tooltip.color,
|
|
718
|
+
borderRadius: e.value.style.chart.tooltip.borderRadius,
|
|
719
|
+
borderColor: e.value.style.chart.tooltip.borderColor,
|
|
720
|
+
borderWidth: e.value.style.chart.tooltip.borderWidth,
|
|
721
|
+
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
722
|
+
position: e.value.style.chart.tooltip.position,
|
|
723
|
+
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
724
|
+
parent: V.value,
|
|
725
|
+
content: te.value,
|
|
726
|
+
isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
|
|
727
|
+
fontSize: e.value.style.chart.tooltip.fontSize
|
|
728
|
+
}, {
|
|
729
|
+
"tooltip-before": g(() => [
|
|
730
|
+
m(t.$slots, "tooltip-before", D(G({ ...ae.value })), void 0, !0)
|
|
731
|
+
]),
|
|
732
|
+
"tooltip-after": g(() => [
|
|
733
|
+
m(t.$slots, "tooltip-after", D(G({ ...ae.value })), void 0, !0)
|
|
734
|
+
]),
|
|
735
|
+
_: 3
|
|
736
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "fontSize"]),
|
|
737
|
+
X.value ? (r(), N($t, {
|
|
738
|
+
key: 6,
|
|
739
|
+
hideDetails: "",
|
|
740
|
+
config: {
|
|
741
|
+
open: I.value.showTable,
|
|
742
|
+
maxHeight: 1e4,
|
|
743
|
+
body: {
|
|
744
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
745
|
+
color: e.value.style.chart.color
|
|
746
|
+
},
|
|
747
|
+
head: {
|
|
748
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
749
|
+
color: e.value.style.chart.color
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}, {
|
|
753
|
+
content: g(() => [
|
|
754
|
+
(r(), N(xt, {
|
|
755
|
+
key: `table_${ve.value}`,
|
|
756
|
+
colNames: J.value.colNames,
|
|
757
|
+
head: J.value.head,
|
|
758
|
+
body: J.value.body,
|
|
759
|
+
config: J.value.config,
|
|
760
|
+
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
761
|
+
onClose: o[2] || (o[2] = (a) => I.value.showTable = !1)
|
|
762
|
+
}, {
|
|
763
|
+
th: g(({ th: a }) => [
|
|
764
|
+
k("div", {
|
|
765
|
+
innerHTML: a,
|
|
766
|
+
style: { display: "flex", "align-items": "center" }
|
|
767
|
+
}, null, 8, Qt)
|
|
768
|
+
]),
|
|
769
|
+
td: g(({ td: a }) => [
|
|
770
|
+
ze(S(a.name || a), 1)
|
|
771
|
+
]),
|
|
772
|
+
_: 1
|
|
773
|
+
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
774
|
+
]),
|
|
775
|
+
_: 1
|
|
776
|
+
}, 8, ["config"])) : f("", !0)
|
|
777
|
+
], 14, Pt));
|
|
778
|
+
}
|
|
779
|
+
}, pa = /* @__PURE__ */ St(Zt, [["__scopeId", "data-v-b86c4773"]]);
|
|
780
|
+
export {
|
|
781
|
+
pa as default
|
|
782
|
+
};
|