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,303 @@
|
|
|
1
|
+
import { computed as h, ref as y, watch as J, onMounted as re, openBlock as n, createElementBlock as c, normalizeClass as L, normalizeStyle as K, createBlock as F, createCommentVNode as k, unref as d, createSlots as se, withCtx as z, renderSlot as b, normalizeProps as M, guardReactiveProps as T, createVNode as ne, Fragment as Q, renderList as V, toDisplayString as ue } from "vue";
|
|
2
|
+
import { u as W } from "./useNestedProp-Cox0K0Y5.js";
|
|
3
|
+
import { u as ie, c as ce, t as ve, v as he, o as de, e as me, w as Z, X as fe, i as ge, f as pe } from "./index-DnVHQ2xI.js";
|
|
4
|
+
import { _ as ye } from "./Title-5VmBwT4i.js";
|
|
5
|
+
import { u as ke, U as _e } from "./usePrinter-BEeNAqS5.js";
|
|
6
|
+
import be from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
7
|
+
import { _ as Ce } from "./PackageVersion-CvCRsT5_.js";
|
|
8
|
+
import { P as $e } from "./PenAndPaper-Jb0pLt3G.js";
|
|
9
|
+
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
const xe = ["id"], Pe = {
|
|
11
|
+
key: 1,
|
|
12
|
+
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
13
|
+
}, Ae = ["xmlns", "viewBox"], Ie = { key: 0 }, Fe = ["d", "stroke-width", "stroke"], ze = { key: 1 }, Oe = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Se = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ne = {
|
|
14
|
+
key: 4,
|
|
15
|
+
class: "vue-data-ui-watermark"
|
|
16
|
+
}, Ge = {
|
|
17
|
+
__name: "vue-ui-tiremarks",
|
|
18
|
+
props: {
|
|
19
|
+
config: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default() {
|
|
22
|
+
return {};
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
dataset: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default() {
|
|
28
|
+
return {};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
setup(ee, { expose: te }) {
|
|
33
|
+
const v = ee, { vue_ui_tiremarks: ae } = ie(), O = h(() => !!v.dataset && Object.keys(v.dataset).length), S = y(ce()), N = y(null), U = y(0), j = y(0), e = h({
|
|
34
|
+
get: () => B(),
|
|
35
|
+
set: (t) => t
|
|
36
|
+
});
|
|
37
|
+
function B() {
|
|
38
|
+
const t = W({
|
|
39
|
+
userConfig: v.config,
|
|
40
|
+
defaultConfig: ae
|
|
41
|
+
});
|
|
42
|
+
return t.theme ? {
|
|
43
|
+
...W({
|
|
44
|
+
userConfig: ve.vue_ui_tiremarks[t.theme] || v.config,
|
|
45
|
+
defaultConfig: t
|
|
46
|
+
})
|
|
47
|
+
} : t;
|
|
48
|
+
}
|
|
49
|
+
J(() => v.config, (t) => {
|
|
50
|
+
e.value = B(), Y(), j.value += 1;
|
|
51
|
+
}, { deep: !0 });
|
|
52
|
+
const { isPrinting: E, isImaging: X, generatePdf: D, generateImage: H } = ke({
|
|
53
|
+
elementId: S.value,
|
|
54
|
+
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
|
|
55
|
+
}), r = y(e.value.style.chart.animation.use ? 0 : he(v.dataset.percentage));
|
|
56
|
+
J(() => v.dataset, (t) => {
|
|
57
|
+
e.value.style.chart.animation.use ? R(t.percentage) : r.value = t.percentage || 0;
|
|
58
|
+
}, { deep: !0 }), re(() => {
|
|
59
|
+
Y();
|
|
60
|
+
});
|
|
61
|
+
function R(t) {
|
|
62
|
+
let u = e.value.style.chart.animation.speed;
|
|
63
|
+
const a = Math.abs(t - r.value) / (u * 120);
|
|
64
|
+
function o() {
|
|
65
|
+
r.value < t ? r.value = Math.min(r.value + a, t) : r.value > t && (r.value = Math.max(r.value - a, t)), r.value !== t && requestAnimationFrame(o);
|
|
66
|
+
}
|
|
67
|
+
o();
|
|
68
|
+
}
|
|
69
|
+
function Y() {
|
|
70
|
+
de(v.dataset) && me({
|
|
71
|
+
componentName: "VueUiTiremarks",
|
|
72
|
+
type: "dataset"
|
|
73
|
+
}), R(v.dataset.percentage || 0);
|
|
74
|
+
}
|
|
75
|
+
const _ = h(() => e.value.style.chart.layout.display === "vertical"), s = h(() => {
|
|
76
|
+
const t = {
|
|
77
|
+
top: 48,
|
|
78
|
+
left: 64,
|
|
79
|
+
right: 64,
|
|
80
|
+
bottom: 48
|
|
81
|
+
};
|
|
82
|
+
return _.value ? {
|
|
83
|
+
top: e.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
|
|
84
|
+
left: 3,
|
|
85
|
+
right: 3,
|
|
86
|
+
bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
|
|
87
|
+
} : {
|
|
88
|
+
top: 0,
|
|
89
|
+
bottom: 0,
|
|
90
|
+
left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
|
|
91
|
+
right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
|
|
92
|
+
};
|
|
93
|
+
}), P = h(() => Object.values(s.value).reduce((t, u) => t + u, 0)), l = h(() => ({
|
|
94
|
+
height: _.value ? 312 : 56,
|
|
95
|
+
width: _.value ? 56 : 312
|
|
96
|
+
})), le = y(100);
|
|
97
|
+
h(() => v.dataset.percentage / le.value);
|
|
98
|
+
const i = h(() => _.value ? {
|
|
99
|
+
mark: (l.value.height - P.value) / 100 * 0.5,
|
|
100
|
+
space: (l.value.height - P.value) / 100 * 0.5
|
|
101
|
+
} : {
|
|
102
|
+
mark: (l.value.width - P.value) / 100 * 0.5,
|
|
103
|
+
space: (l.value.width - P.value) / 100 * 0.5
|
|
104
|
+
}), q = h(() => {
|
|
105
|
+
const t = [];
|
|
106
|
+
for (let a = 0; a < 100; a += 1) {
|
|
107
|
+
const o = e.value.style.chart.layout.ticks.gradient.show ? Z(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
108
|
+
if (_.value) {
|
|
109
|
+
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.width - s.value.left - s.value.right) / 100 / 3 : 0, m = s.value.left + 4 + $, f = l.value.width - s.value.right - 4 - $, g = l.value.height - s.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, p = l.value.height - s.value.bottom - a * i.value.mark - a * i.value.space - i.value.mark, w = (f - m) / e.value.style.chart.layout.curveAngleX, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
110
|
+
t.push({
|
|
111
|
+
x1: m,
|
|
112
|
+
x2: f,
|
|
113
|
+
y1: g,
|
|
114
|
+
y2: p,
|
|
115
|
+
curve: `M ${m} ${g} C ${m + w} ${g - x}, ${f - w} ${p - x}, ${f} ${p}`,
|
|
116
|
+
color: o
|
|
117
|
+
});
|
|
118
|
+
} else {
|
|
119
|
+
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (l.value.height - s.value.top - s.value.bottom) / 100 / 3 : 0, m = s.value.left + a * i.value.mark + a * i.value.space - i.value.mark, f = m, g = s.value.top + 4 + $, p = l.value.height - s.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), x = (p - g) / e.value.style.chart.layout.curveAngleX;
|
|
120
|
+
t.push({
|
|
121
|
+
x1: m,
|
|
122
|
+
x2: f,
|
|
123
|
+
y1: g,
|
|
124
|
+
y2: p,
|
|
125
|
+
curve: `M ${m} ${g} C ${m + w} ${g + x}, ${f + w} ${p - x}, ${f} ${p}`,
|
|
126
|
+
color: o
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return t;
|
|
131
|
+
}), C = h(() => {
|
|
132
|
+
let t, u, a;
|
|
133
|
+
const o = e.value.style.chart.percentage.fontSize / 3;
|
|
134
|
+
return _.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = l.value.width / 2, u = s.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = l.value.width / 2, u = l.value.height - s.value.bottom / 2 + o, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, u = l.value.height / 2 + o, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = l.value.width - s.value.right + 8, u = l.value.height / 2 + o, a = "start"), {
|
|
135
|
+
x: t,
|
|
136
|
+
y: u,
|
|
137
|
+
textAnchor: a,
|
|
138
|
+
bold: e.value.style.chart.percentage.bold,
|
|
139
|
+
fontSize: e.value.style.chart.percentage.fontSize,
|
|
140
|
+
fill: e.value.style.chart.percentage.color
|
|
141
|
+
};
|
|
142
|
+
}), A = y(!1);
|
|
143
|
+
function oe(t) {
|
|
144
|
+
A.value = t, U.value += 1;
|
|
145
|
+
}
|
|
146
|
+
const I = y(!1);
|
|
147
|
+
function G() {
|
|
148
|
+
I.value = !I.value;
|
|
149
|
+
}
|
|
150
|
+
return te({
|
|
151
|
+
generatePdf: D,
|
|
152
|
+
generateImage: H,
|
|
153
|
+
toggleAnnotator: G
|
|
154
|
+
}), (t, u) => (n(), c("div", {
|
|
155
|
+
ref_key: "tiremarksChart",
|
|
156
|
+
ref: N,
|
|
157
|
+
class: L(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
158
|
+
style: K(`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}`),
|
|
159
|
+
id: S.value
|
|
160
|
+
}, [
|
|
161
|
+
e.value.userOptions.buttons.annotator ? (n(), F($e, {
|
|
162
|
+
key: 0,
|
|
163
|
+
parent: N.value,
|
|
164
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
165
|
+
color: e.value.style.chart.color,
|
|
166
|
+
active: I.value,
|
|
167
|
+
onClose: G
|
|
168
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : k("", !0),
|
|
169
|
+
e.value.style.chart.title.text ? (n(), c("div", Pe, [
|
|
170
|
+
(n(), F(ye, {
|
|
171
|
+
key: `title_${j.value}`,
|
|
172
|
+
config: {
|
|
173
|
+
title: {
|
|
174
|
+
cy: "wheel-title",
|
|
175
|
+
...e.value.style.chart.title
|
|
176
|
+
},
|
|
177
|
+
subtitle: {
|
|
178
|
+
cy: "wheel-subtitle",
|
|
179
|
+
...e.value.style.chart.title.subtitle
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}, null, 8, ["config"]))
|
|
183
|
+
])) : k("", !0),
|
|
184
|
+
e.value.userOptions.show && O.value ? (n(), F(_e, {
|
|
185
|
+
ref: "details",
|
|
186
|
+
key: `user_options_${U.value}`,
|
|
187
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
188
|
+
color: e.value.style.chart.color,
|
|
189
|
+
isPrinting: d(E),
|
|
190
|
+
isImaging: d(X),
|
|
191
|
+
uid: S.value,
|
|
192
|
+
hasPdf: e.value.userOptions.buttons.pdf,
|
|
193
|
+
hasImg: e.value.userOptions.buttons.img,
|
|
194
|
+
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
195
|
+
hasXls: !1,
|
|
196
|
+
isFullscreen: A.value,
|
|
197
|
+
titles: { ...e.value.userOptions.buttonTitles },
|
|
198
|
+
chartElement: N.value,
|
|
199
|
+
position: e.value.userOptions.position,
|
|
200
|
+
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
201
|
+
isAnnotation: I.value,
|
|
202
|
+
onToggleFullscreen: oe,
|
|
203
|
+
onGeneratePdf: d(D),
|
|
204
|
+
onGenerateImage: d(H),
|
|
205
|
+
onToggleAnnotator: G
|
|
206
|
+
}, se({ _: 2 }, [
|
|
207
|
+
t.$slots.optionPdf ? {
|
|
208
|
+
name: "optionPdf",
|
|
209
|
+
fn: z(() => [
|
|
210
|
+
b(t.$slots, "optionPdf", {}, void 0, !0)
|
|
211
|
+
]),
|
|
212
|
+
key: "0"
|
|
213
|
+
} : void 0,
|
|
214
|
+
t.$slots.optionImg ? {
|
|
215
|
+
name: "optionImg",
|
|
216
|
+
fn: z(() => [
|
|
217
|
+
b(t.$slots, "optionImg", {}, void 0, !0)
|
|
218
|
+
]),
|
|
219
|
+
key: "1"
|
|
220
|
+
} : void 0,
|
|
221
|
+
t.$slots.optionFullscreen ? {
|
|
222
|
+
name: "optionFullscreen",
|
|
223
|
+
fn: z(({ toggleFullscreen: a, isFullscreen: o }) => [
|
|
224
|
+
b(t.$slots, "optionFullscreen", M(T({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
|
|
225
|
+
]),
|
|
226
|
+
key: "2"
|
|
227
|
+
} : void 0,
|
|
228
|
+
t.$slots.optionAnnotator ? {
|
|
229
|
+
name: "optionAnnotator",
|
|
230
|
+
fn: z(({ toggleAnnotator: a, isAnnotator: o }) => [
|
|
231
|
+
b(t.$slots, "optionAnnotator", M(T({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
|
|
232
|
+
]),
|
|
233
|
+
key: "3"
|
|
234
|
+
} : void 0
|
|
235
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : k("", !0),
|
|
236
|
+
O.value ? (n(), c("svg", {
|
|
237
|
+
key: 3,
|
|
238
|
+
xmlns: d(fe),
|
|
239
|
+
class: L({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
|
|
240
|
+
viewBox: `0 0 ${l.value.width} ${l.value.height}`,
|
|
241
|
+
style: K(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
242
|
+
}, [
|
|
243
|
+
ne(Ce),
|
|
244
|
+
e.value.style.chart.layout.curved ? (n(), c("g", Ie, [
|
|
245
|
+
(n(!0), c(Q, null, V(q.value, (a, o) => (n(), c("path", {
|
|
246
|
+
d: a.curve,
|
|
247
|
+
"stroke-width": i.value.mark,
|
|
248
|
+
stroke: r.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
249
|
+
"stroke-linecap": "round",
|
|
250
|
+
fill: "none",
|
|
251
|
+
class: L({ "vue-ui-tick-animated": e.value.style.chart.animation.use && o <= r.value })
|
|
252
|
+
}, null, 10, Fe))), 256))
|
|
253
|
+
])) : (n(), c("g", ze, [
|
|
254
|
+
(n(!0), c(Q, null, V(q.value, (a, o) => (n(), c("line", {
|
|
255
|
+
x1: a.x1,
|
|
256
|
+
y1: a.y1,
|
|
257
|
+
x2: a.x2,
|
|
258
|
+
y2: a.y2,
|
|
259
|
+
"stroke-width": i.value.mark,
|
|
260
|
+
stroke: r.value >= o ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
261
|
+
"stroke-linecap": "round"
|
|
262
|
+
}, null, 8, Oe))), 256))
|
|
263
|
+
])),
|
|
264
|
+
e.value.style.chart.percentage.show ? (n(), c("text", {
|
|
265
|
+
key: 2,
|
|
266
|
+
x: C.value.x,
|
|
267
|
+
y: C.value.y,
|
|
268
|
+
"font-size": C.value.fontSize,
|
|
269
|
+
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? d(Z)(e.value.style.chart.layout.activeColor, r.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
270
|
+
"font-weight": C.value.bold ? "bold" : "normal",
|
|
271
|
+
"text-anchor": C.value.textAnchor
|
|
272
|
+
}, ue(d(ge)(
|
|
273
|
+
e.value.style.chart.percentage.formatter,
|
|
274
|
+
r.value,
|
|
275
|
+
d(pe)({
|
|
276
|
+
v: r.value,
|
|
277
|
+
s: "%",
|
|
278
|
+
r: e.value.style.chart.percentage.rounding
|
|
279
|
+
})
|
|
280
|
+
)), 9, Se)) : k("", !0),
|
|
281
|
+
b(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
282
|
+
], 14, Ae)) : k("", !0),
|
|
283
|
+
t.$slots.watermark ? (n(), c("div", Ne, [
|
|
284
|
+
b(t.$slots, "watermark", M(T({ isPrinting: d(E) || d(X) })), void 0, !0)
|
|
285
|
+
])) : k("", !0),
|
|
286
|
+
O.value ? k("", !0) : (n(), F(be, {
|
|
287
|
+
key: 5,
|
|
288
|
+
config: {
|
|
289
|
+
type: "tiremarks",
|
|
290
|
+
style: {
|
|
291
|
+
backgroundColor: e.value.style.chart.backgroundColor,
|
|
292
|
+
tiremarks: {
|
|
293
|
+
color: "#CCCCCC"
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}, null, 8, ["config"]))
|
|
298
|
+
], 14, xe));
|
|
299
|
+
}
|
|
300
|
+
}, He = /* @__PURE__ */ we(Ge, [["__scopeId", "data-v-4a9028ce"]]);
|
|
301
|
+
export {
|
|
302
|
+
He as default
|
|
303
|
+
};
|