vue-data-ui 2.4.58 → 2.4.60
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 +82 -51
- package/dist/{Arrow-gAjHZoeI.js → Arrow-BLYi22nR.js} +1 -1
- package/dist/{Arrow-DyvFEpcu.cjs → Arrow-BoAS4IQq.cjs} +1 -1
- package/dist/{BaseIcon-DKQOeA_7.cjs → BaseIcon-BHIQREMO.cjs} +1 -1
- package/dist/{BaseIcon-B0g_Fksl.js → BaseIcon-EWtqg17H.js} +1 -1
- package/dist/{DataTable-BloVsNyj.js → DataTable-DO8KGCcE.js} +2 -2
- package/dist/{DataTable-Bju6hUOX.cjs → DataTable-Dtq94CxH.cjs} +1 -1
- package/dist/{Legend-BsPIe_nG.cjs → Legend-CMyzYtIb.cjs} +1 -1
- package/dist/{Legend-CdpH9pz7.js → Legend-DGWOCyLt.js} +1 -1
- package/dist/{PackageVersion-W3d_oNMs.js → PackageVersion-BSLNI6kk.js} +1 -1
- package/dist/{PackageVersion-Bmujq1-q.cjs → PackageVersion-B_1OHk5A.cjs} +1 -1
- package/dist/{PenAndPaper-xuFs3BqZ.js → PenAndPaper-CxMtGtJt.js} +3 -3
- package/dist/{PenAndPaper-Be8tn5wI.cjs → PenAndPaper-DhXsAnuf.cjs} +1 -1
- package/dist/{Shape-CXTDY_Vo.js → Shape-DnqZey62.js} +1 -1
- package/dist/{Shape-Cx89w9Ul.cjs → Shape-y66NSXKp.cjs} +1 -1
- package/dist/{Slicer-HGyFRIya.cjs → Slicer-CkI4c7ft.cjs} +1 -1
- package/dist/{Slicer-ENfxtrty.js → Slicer-D9bKLcPd.js} +2 -2
- package/dist/{Title-1u-GspsX.js → Title-CSqO5Y62.js} +1 -1
- package/dist/{Title-CNO85jNx.cjs → Title-DjAOcuWO.cjs} +1 -1
- package/dist/{Tooltip-DQOeAhx3.cjs → Tooltip-AHTiRuWB.cjs} +1 -1
- package/dist/{Tooltip-B-1Q-Tts.js → Tooltip-D_6iYZSH.js} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/index-CgZGelSi.cjs +9 -0
- package/dist/{index-BSzkwF5n.js → index-D7dTQAhm.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CSKuqs0C.cjs → useNestedProp-BxCE3J3Z.cjs} +1 -1
- package/dist/{useNestedProp-BWC_DPZ5.js → useNestedProp-Dqsj7eUX.js} +1 -1
- package/dist/{usePrinter-DtwWejoO.js → usePrinter-B_Ihuvge.js} +1 -1
- package/dist/{usePrinter-D-iwyLyE.cjs → usePrinter-sTw1FdN_.cjs} +1 -1
- package/dist/{vue-data-ui-Com866XF.cjs → vue-data-ui-BttN99Pm.cjs} +1 -1
- package/dist/{vue-data-ui-jb1K_VTO.js → vue-data-ui-CcmpjOfT.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-8ewYobNj.cjs +19 -0
- package/dist/{vue-ui-3d-bar-Cqc5gqnb.js → vue-ui-3d-bar-TVrDBG5I.js} +170 -158
- package/dist/{vue-ui-accordion-lCjQo2kd.cjs → vue-ui-accordion-BZH6cz4t.cjs} +1 -1
- package/dist/{vue-ui-accordion-CJdfn7N-.js → vue-ui-accordion-lCiFhb8k.js} +3 -3
- package/dist/vue-ui-age-pyramid-BqL8zDjt.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-D89kDZnF.js → vue-ui-age-pyramid-rHtMf5-R.js} +176 -164
- package/dist/{vue-ui-annotator-Cf-zFFmT.js → vue-ui-annotator-DHgSReIY.js} +1 -1
- package/dist/{vue-ui-annotator-muK3_F6c.cjs → vue-ui-annotator-fZIPfk7y.cjs} +1 -1
- package/dist/vue-ui-bullet-48af9PqJ.cjs +34 -0
- package/dist/{vue-ui-bullet-CT5Gkoot.js → vue-ui-bullet-BwhlvcvA.js} +155 -143
- package/dist/vue-ui-candlestick-Ce3tBGpX.cjs +2 -0
- package/dist/{vue-ui-candlestick-DmsHITZF.js → vue-ui-candlestick-dMIrnPD6.js} +96 -84
- package/dist/{vue-ui-carousel-table-N7QL7jRR.js → vue-ui-carousel-table-EcwgqGoI.js} +97 -95
- package/dist/vue-ui-carousel-table-ZhjRbt5-.cjs +1 -0
- package/dist/vue-ui-chestnut-VbrVVUon.cjs +6 -0
- package/dist/{vue-ui-chestnut-C7b1puxs.js → vue-ui-chestnut-vnOyc43k.js} +160 -148
- package/dist/{vue-ui-cursor-BOS7Yvio.cjs → vue-ui-cursor-BdXcdH2e.cjs} +1 -1
- package/dist/{vue-ui-cursor-CAnOat4M.js → vue-ui-cursor-nMbvzf_R.js} +2 -2
- package/dist/{vue-ui-dashboard-OzgTaY3n.js → vue-ui-dashboard-BtaQn50h.js} +2 -2
- package/dist/{vue-ui-dashboard-DI22fn9M.cjs → vue-ui-dashboard-CboN2WC8.cjs} +1 -1
- package/dist/{vue-ui-digits-DGP4EmpQ.cjs → vue-ui-digits-CUvrlpPz.cjs} +1 -1
- package/dist/{vue-ui-digits-DCm2stj-.js → vue-ui-digits-CVfceh4-.js} +2 -2
- package/dist/vue-ui-donut-BckYXDZJ.cjs +1 -0
- package/dist/{vue-ui-donut-BilWHtZy.js → vue-ui-donut-CgYNthls.js} +292 -280
- package/dist/vue-ui-donut-evolution-BhlBp6R-.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-DKmnEHH_.js → vue-ui-donut-evolution-Bose25D6.js} +285 -273
- package/dist/vue-ui-dumbbell-C2iT17s8.cjs +9 -0
- package/dist/{vue-ui-dumbbell-KwkTK5_q.js → vue-ui-dumbbell-CzSlukSu.js} +159 -147
- package/dist/vue-ui-flow-DDlFrtkk.cjs +1 -0
- package/dist/{vue-ui-flow-BShJPhpa.js → vue-ui-flow-DoDWK84L.js} +162 -150
- package/dist/vue-ui-funnel-BfJoFIfh.cjs +1 -0
- package/dist/{vue-ui-funnel-D4xk_DsA.js → vue-ui-funnel-CM_ixf98.js} +229 -215
- package/dist/vue-ui-galaxy-CP71UAF5.cjs +1 -0
- package/dist/{vue-ui-galaxy-Ch3QRiP6.js → vue-ui-galaxy-DlwjTJCx.js} +148 -136
- package/dist/{vue-ui-gauge-DZUv5beK.js → vue-ui-gauge-ByfGCK6z.js} +119 -107
- package/dist/vue-ui-gauge-LqhfOqH-.cjs +1 -0
- package/dist/{vue-ui-gizmo-B39J58Zm.js → vue-ui-gizmo-D8Rq5vzL.js} +45 -43
- package/dist/vue-ui-gizmo-DFnOaVHf.cjs +1 -0
- package/dist/vue-ui-heatmap-A8qDlc58.cjs +1 -0
- package/dist/{vue-ui-heatmap-z8KMf1yo.js → vue-ui-heatmap-BLjVXXW4.js} +138 -126
- package/dist/vue-ui-history-plot-Bxi5QRP8.cjs +1 -0
- package/dist/{vue-ui-history-plot--Lw1-910.js → vue-ui-history-plot-DXoNlRFZ.js} +127 -115
- package/dist/vue-ui-kpi-5cGZ0OBJ.cjs +1 -0
- package/dist/{vue-ui-kpi-BgNONvkD.js → vue-ui-kpi-Bbot_WSI.js} +36 -33
- package/dist/{vue-ui-mini-loader-BrCuKpE6.js → vue-ui-mini-loader-DOE9WO73.js} +2 -2
- package/dist/{vue-ui-mini-loader-DjEyKAQe.cjs → vue-ui-mini-loader-DWX9tRhG.cjs} +1 -1
- package/dist/{vue-ui-molecule-C_eF6tga.js → vue-ui-molecule-0TReXB2j.js} +212 -200
- package/dist/vue-ui-molecule-CxeFzXS5.cjs +1 -0
- package/dist/vue-ui-mood-radar-1jLzXLXZ.cjs +1 -0
- package/dist/{vue-ui-mood-radar-Ch_Qkx9d.js → vue-ui-mood-radar-BMFn685U.js} +123 -111
- package/dist/vue-ui-nested-donuts-4FVj04vI.cjs +17 -0
- package/dist/{vue-ui-nested-donuts-uqfXLRGX.js → vue-ui-nested-donuts-B9rWg9V8.js} +156 -144
- package/dist/vue-ui-onion-Br97OxbL.cjs +5 -0
- package/dist/{vue-ui-onion-CbYOkmrF.js → vue-ui-onion-CnIF_tv7.js} +125 -113
- package/dist/vue-ui-parallel-coordinate-plot-Bi_h0H7e.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-aLNOckoo.js → vue-ui-parallel-coordinate-plot-D9iHCwiA.js} +159 -147
- package/dist/{vue-ui-quadrant-CuPCDHgS.js → vue-ui-quadrant-4wjbqumK.js} +211 -199
- package/dist/vue-ui-quadrant-DHDToQ9a.cjs +1 -0
- package/dist/vue-ui-quick-chart-CJKM6r9X.cjs +15 -0
- package/dist/{vue-ui-quick-chart-DBCH5qM1.js → vue-ui-quick-chart-s6FHOZf8.js} +576 -540
- package/dist/vue-ui-radar-DBR2qBM5.cjs +1 -0
- package/dist/{vue-ui-radar-BamYIcPL.js → vue-ui-radar-DpT9w1N-.js} +183 -171
- package/dist/vue-ui-rating-D1Mbw1G8.cjs +1 -0
- package/dist/{vue-ui-rating-DxaSXiPx.js → vue-ui-rating-D31vSe7a.js} +102 -98
- package/dist/vue-ui-relation-circle-BNJbqK_A.cjs +1 -0
- package/dist/{vue-ui-relation-circle-C9_8YW0u.js → vue-ui-relation-circle-DfP6BpVn.js} +129 -117
- package/dist/{vue-ui-rings-DFzPi4m9.js → vue-ui-rings-ChcGuwL9.js} +150 -138
- package/dist/vue-ui-rings-CjB8a3kO.cjs +2 -0
- package/dist/vue-ui-scatter-jk0N3EwD.cjs +1 -0
- package/dist/{vue-ui-scatter-n_jHEngt.js → vue-ui-scatter-wUZ2CBpp.js} +320 -308
- package/dist/{vue-ui-screenshot-1_OHWjZv.js → vue-ui-screenshot-Blg3Suvg.js} +1 -1
- package/dist/{vue-ui-screenshot-BzY_uB1R.cjs → vue-ui-screenshot-DAFpjSWg.cjs} +1 -1
- package/dist/{vue-ui-skeleton-Ojz7f2oH.js → vue-ui-skeleton-BObG0eVD.js} +3 -3
- package/dist/{vue-ui-skeleton-DKtNfORj.cjs → vue-ui-skeleton-m4l9jfqA.cjs} +1 -1
- package/dist/{vue-ui-smiley-CXvJ3sXA.js → vue-ui-smiley-DuQ3M02e.js} +208 -206
- package/dist/vue-ui-smiley-rh3J3TRY.cjs +2 -0
- package/dist/vue-ui-spark-trend-DlNNTu2c.cjs +1 -0
- package/dist/{vue-ui-spark-trend-uyDT9RJC.js → vue-ui-spark-trend-SMpnQ3VV.js} +124 -112
- package/dist/{vue-ui-sparkbar-CxW1vMP2.js → vue-ui-sparkbar-BB6fvRXK.js} +100 -96
- package/dist/vue-ui-sparkbar-chnu8aw9.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-NmLBla47.js → vue-ui-sparkgauge-Bk_78-YB.js} +60 -48
- package/dist/vue-ui-sparkgauge-FONvy7z9.cjs +1 -0
- package/dist/vue-ui-sparkhistogram--uyRru2f.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-B8SukBWt.js → vue-ui-sparkhistogram-CIsN7kQ2.js} +116 -104
- package/dist/{vue-ui-sparkline-CokyAm9w.js → vue-ui-sparkline-CFvUW--O.js} +124 -112
- package/dist/vue-ui-sparkline-i6LHjMJR.cjs +1 -0
- package/dist/vue-ui-sparkstackbar-1RvV2xwt.cjs +1 -0
- package/dist/{vue-ui-sparkstackbar-QgZq1O55.js → vue-ui-sparkstackbar-DDMsCq0l.js} +85 -81
- package/dist/{vue-ui-stackbar-CTvPYXjb.js → vue-ui-stackbar-BSo9t-88.js} +219 -207
- package/dist/vue-ui-stackbar-CQgtC1I4.cjs +6 -0
- package/dist/vue-ui-strip-plot-BOSoKxsk.cjs +1 -0
- package/dist/{vue-ui-strip-plot-DXPoWvNA.js → vue-ui-strip-plot-C99LsMeZ.js} +113 -101
- package/dist/{vue-ui-table-Bb3BBVjm.js → vue-ui-table-3M-aoEc7.js} +1 -1
- package/dist/{vue-ui-table-8M1ctuqL.cjs → vue-ui-table-M-6G46br.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-Bv0EfTut.js → vue-ui-table-heatmap-BuYlqsq9.js} +82 -78
- package/dist/vue-ui-table-heatmap-CoozQ9bU.cjs +1 -0
- package/dist/{vue-ui-table-sparkline-Bs72Df0-.js → vue-ui-table-sparkline-Dm5kErGp.js} +78 -74
- package/dist/vue-ui-table-sparkline-u0a2YCwp.cjs +1 -0
- package/dist/vue-ui-thermometer-DAz_NjaN.cjs +1 -0
- package/dist/{vue-ui-thermometer-DRGjTOIy.js → vue-ui-thermometer-DrY5FsCD.js} +132 -120
- package/dist/vue-ui-timer-dCCTsApx.cjs +64 -0
- package/dist/{vue-ui-timer-DCA2Dkfi.js → vue-ui-timer-meFVXDUZ.js} +94 -82
- package/dist/vue-ui-tiremarks-CRKQklZh.cjs +1 -0
- package/dist/{vue-ui-tiremarks-CTqweMbJ.js → vue-ui-tiremarks-PaZ-lr2D.js} +104 -94
- package/dist/vue-ui-treemap-Bce1C9jk.cjs +1 -0
- package/dist/{vue-ui-treemap-tz9AdMu0.js → vue-ui-treemap-RjHcVtc6.js} +336 -332
- package/dist/{vue-ui-vertical-bar-BEkWSr_A.js → vue-ui-vertical-bar-C8rC-QBl.js} +188 -176
- package/dist/vue-ui-vertical-bar-e7zR_v0M.cjs +4 -0
- package/dist/{vue-ui-waffle-DQPO5aOU.js → vue-ui-waffle-BT8Yn0cl.js} +140 -136
- package/dist/vue-ui-waffle-BZLPoVht.cjs +1 -0
- package/dist/{vue-ui-wheel-B0u6LKiw.js → vue-ui-wheel-Bq75N1i7.js} +100 -88
- package/dist/vue-ui-wheel-CT6r7EQR.cjs +1 -0
- package/dist/{vue-ui-word-cloud-CEns9_NI.js → vue-ui-word-cloud-BGh6DY8P.js} +132 -120
- package/dist/vue-ui-word-cloud-PcOI8TCE.cjs +1 -0
- package/dist/vue-ui-xy-BmNqzUPR.cjs +3 -0
- package/dist/{vue-ui-xy-DxpIt6dh.js → vue-ui-xy-DuCsguVf.js} +139 -127
- package/dist/{vue-ui-xy-canvas-D_Qiy2N1.js → vue-ui-xy-canvas-6qf3rgfa.js} +231 -227
- package/dist/{vue-ui-xy-canvas--zS_4x6O.cjs → vue-ui-xy-canvas-BnJBE19B.cjs} +2 -2
- package/package.json +1 -1
- package/dist/index-DHwfzZfj.cjs +0 -9
- package/dist/vue-ui-3d-bar-Dif8_wHk.cjs +0 -19
- package/dist/vue-ui-age-pyramid-DHxsu2a1.cjs +0 -1
- package/dist/vue-ui-bullet-CKbrouCq.cjs +0 -34
- package/dist/vue-ui-candlestick-C3YNgFyO.cjs +0 -2
- package/dist/vue-ui-carousel-table-BU1bmZWZ.cjs +0 -1
- package/dist/vue-ui-chestnut-BEALHSS3.cjs +0 -6
- package/dist/vue-ui-donut-Jjz58SJJ.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BtfRmlIq.cjs +0 -1
- package/dist/vue-ui-dumbbell-C2LYuBRx.cjs +0 -9
- package/dist/vue-ui-flow-3vjkptJR.cjs +0 -1
- package/dist/vue-ui-funnel-DyJdIi_i.cjs +0 -1
- package/dist/vue-ui-galaxy-BmGIzIeD.cjs +0 -1
- package/dist/vue-ui-gauge-LeMSJBEk.cjs +0 -1
- package/dist/vue-ui-gizmo-B7Kum6eT.cjs +0 -1
- package/dist/vue-ui-heatmap-CqPuEjJ1.cjs +0 -1
- package/dist/vue-ui-history-plot-bjMvk_4h.cjs +0 -1
- package/dist/vue-ui-kpi-DIuPP4R7.cjs +0 -1
- package/dist/vue-ui-molecule-C3wtpoCr.cjs +0 -1
- package/dist/vue-ui-mood-radar-BomqP0zI.cjs +0 -1
- package/dist/vue-ui-nested-donuts-KRq3Fcqy.cjs +0 -17
- package/dist/vue-ui-onion-G4p7rA61.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-B2OIBraO.cjs +0 -8
- package/dist/vue-ui-quadrant-DoWeGQSC.cjs +0 -1
- package/dist/vue-ui-quick-chart-DR1qF9kr.cjs +0 -15
- package/dist/vue-ui-radar-B6M2ZChR.cjs +0 -1
- package/dist/vue-ui-rating-HSL7IrbQ.cjs +0 -1
- package/dist/vue-ui-relation-circle-CM_QkigI.cjs +0 -1
- package/dist/vue-ui-rings-CmD8g04s.cjs +0 -2
- package/dist/vue-ui-scatter-D_WxNGoY.cjs +0 -1
- package/dist/vue-ui-smiley-sKWpgakD.cjs +0 -2
- package/dist/vue-ui-spark-trend-ByxJmVE5.cjs +0 -1
- package/dist/vue-ui-sparkbar-DYHuBv3f.cjs +0 -1
- package/dist/vue-ui-sparkgauge-CCvUn2R2.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-FU-uE07T.cjs +0 -1
- package/dist/vue-ui-sparkline-9LU8yp1t.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-9k6C-g_r.cjs +0 -1
- package/dist/vue-ui-stackbar-Drqz1of9.cjs +0 -6
- package/dist/vue-ui-strip-plot-UYP2fk1H.cjs +0 -1
- package/dist/vue-ui-table-heatmap-BqQpJ_Ou.cjs +0 -1
- package/dist/vue-ui-table-sparkline-D5xemE-q.cjs +0 -1
- package/dist/vue-ui-thermometer-DzynFkq0.cjs +0 -1
- package/dist/vue-ui-timer-W5dIiOew.cjs +0 -64
- package/dist/vue-ui-tiremarks-BbAzwE5q.cjs +0 -1
- package/dist/vue-ui-treemap-CEVP7-S2.cjs +0 -1
- package/dist/vue-ui-vertical-bar-D_2WzLxJ.cjs +0 -4
- package/dist/vue-ui-waffle-BAvqVwhK.cjs +0 -1
- package/dist/vue-ui-wheel-Cjnheeql.cjs +0 -1
- package/dist/vue-ui-word-cloud-bxF8a7TI.cjs +0 -1
- package/dist/vue-ui-xy-BBvVOSPm.cjs +0 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { computed as h, ref as
|
|
2
|
-
import { u as te } from "./useNestedProp-
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import
|
|
7
|
-
import { _ as
|
|
8
|
-
import { P as
|
|
9
|
-
import { u as
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
1
|
+
import { computed as h, ref as k, watch as W, onMounted as ie, openBlock as s, createElementBlock as c, normalizeClass as U, normalizeStyle as G, unref as n, createBlock as I, createCommentVNode as d, createSlots as ce, withCtx as F, renderSlot as b, normalizeProps as L, guardReactiveProps as j, createVNode as ve, Fragment as Z, renderList as ee, toDisplayString as he } from "vue";
|
|
2
|
+
import { u as te } from "./useNestedProp-Dqsj7eUX.js";
|
|
3
|
+
import { u as de, c as fe, t as pe, v as ye, o as ge, e as me, w as ae, X as ke, i as be, f as _e } from "./index-D7dTQAhm.js";
|
|
4
|
+
import { _ as Ce } from "./Title-CSqO5Y62.js";
|
|
5
|
+
import { u as $e, U as we } from "./usePrinter-B_Ihuvge.js";
|
|
6
|
+
import xe from "./vue-ui-skeleton-BObG0eVD.js";
|
|
7
|
+
import { _ as Pe } from "./PackageVersion-BSLNI6kk.js";
|
|
8
|
+
import { P as Oe } from "./PenAndPaper-CxMtGtJt.js";
|
|
9
|
+
import { u as Ae } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const Fe = ["id"], ze = {
|
|
12
12
|
key: 2,
|
|
13
13
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
14
|
-
},
|
|
14
|
+
}, Se = ["xmlns", "viewBox"], Ne = ["width", "height"], Me = { key: 1 }, Te = ["d", "stroke-width", "stroke"], Ue = { key: 2 }, Ge = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Le = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], je = {
|
|
15
15
|
key: 5,
|
|
16
16
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
17
|
+
}, Ee = {
|
|
18
18
|
key: 6,
|
|
19
19
|
ref: "source",
|
|
20
20
|
dir: "auto"
|
|
21
|
-
},
|
|
21
|
+
}, Be = {
|
|
22
22
|
__name: "vue-ui-tiremarks",
|
|
23
23
|
props: {
|
|
24
24
|
config: {
|
|
@@ -34,48 +34,48 @@ const ze = ["id"], Se = {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
setup(
|
|
38
|
-
const
|
|
37
|
+
setup(oe, { expose: le }) {
|
|
38
|
+
const f = oe, { vue_ui_tiremarks: se } = de(), z = h(() => !!f.dataset && Object.keys(f.dataset).length), S = k(fe()), N = k(null), re = k(null), E = k(0), B = k(0), e = h({
|
|
39
39
|
get: () => H(),
|
|
40
40
|
set: (t) => t
|
|
41
|
-
}), { userOptionsVisible: M, setUserOptionsVisibility: X, keepUserOptionState: D } =
|
|
41
|
+
}), { userOptionsVisible: M, setUserOptionsVisibility: X, keepUserOptionState: D } = Ae({ config: e.value });
|
|
42
42
|
function H() {
|
|
43
43
|
const t = te({
|
|
44
|
-
userConfig:
|
|
44
|
+
userConfig: f.config,
|
|
45
45
|
defaultConfig: se
|
|
46
46
|
});
|
|
47
47
|
return t.theme ? {
|
|
48
48
|
...te({
|
|
49
|
-
userConfig:
|
|
49
|
+
userConfig: pe.vue_ui_tiremarks[t.theme] || f.config,
|
|
50
50
|
defaultConfig: t
|
|
51
51
|
})
|
|
52
52
|
} : t;
|
|
53
53
|
}
|
|
54
|
-
W(() =>
|
|
55
|
-
e.value = H(), M.value = !e.value.showOnChartHover, K(),
|
|
54
|
+
W(() => f.config, (t) => {
|
|
55
|
+
e.value = H(), M.value = !e.value.showOnChartHover, K(), B.value += 1;
|
|
56
56
|
}, { deep: !0 });
|
|
57
|
-
const { isPrinting: R, isImaging: V, generatePdf: Y, generateImage: q } =
|
|
57
|
+
const { isPrinting: R, isImaging: V, generatePdf: Y, generateImage: q } = $e({
|
|
58
58
|
elementId: S.value,
|
|
59
59
|
fileName: e.value.style.chart.title.text || "vue-ui-tiremarks"
|
|
60
|
-
}), ne = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u =
|
|
61
|
-
W(() =>
|
|
60
|
+
}), ne = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = k(e.value.style.chart.animation.use ? 0 : ye(f.dataset.percentage));
|
|
61
|
+
W(() => f.dataset, (t) => {
|
|
62
62
|
e.value.style.chart.animation.use ? J(t.percentage) : u.value = t.percentage || 0;
|
|
63
|
-
}, { deep: !0 }),
|
|
63
|
+
}, { deep: !0 }), ie(() => {
|
|
64
64
|
K();
|
|
65
65
|
});
|
|
66
66
|
function J(t) {
|
|
67
67
|
let r = e.value.style.chart.animation.speed;
|
|
68
68
|
const a = Math.abs(t - u.value) / (r * 120);
|
|
69
|
-
function
|
|
70
|
-
u.value < t ? u.value = Math.min(u.value + a, t) : u.value > t && (u.value = Math.max(u.value - a, t)), u.value !== t && requestAnimationFrame(
|
|
69
|
+
function l() {
|
|
70
|
+
u.value < t ? u.value = Math.min(u.value + a, t) : u.value > t && (u.value = Math.max(u.value - a, t)), u.value !== t && requestAnimationFrame(l);
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
l();
|
|
73
73
|
}
|
|
74
74
|
function K() {
|
|
75
|
-
ge(
|
|
75
|
+
ge(f.dataset) && me({
|
|
76
76
|
componentName: "VueUiTiremarks",
|
|
77
77
|
type: "dataset"
|
|
78
|
-
}), J(
|
|
78
|
+
}), J(f.dataset.percentage || 0);
|
|
79
79
|
}
|
|
80
80
|
const _ = h(() => e.value.style.chart.layout.display === "vertical"), i = h(() => {
|
|
81
81
|
const t = {
|
|
@@ -95,48 +95,46 @@ const ze = ["id"], Se = {
|
|
|
95
95
|
left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
|
|
96
96
|
right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
|
|
97
97
|
};
|
|
98
|
-
}), P = h(() => Object.values(i.value).reduce((t, r) => t + r, 0)),
|
|
98
|
+
}), P = h(() => Object.values(i.value).reduce((t, r) => t + r, 0)), o = h(() => ({
|
|
99
99
|
height: _.value ? 312 : 56,
|
|
100
100
|
width: _.value ? 56 : 312
|
|
101
|
-
})),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
mark: (l.value.height - P.value) / 100 * 0.5,
|
|
105
|
-
space: (l.value.height - P.value) / 100 * 0.5
|
|
101
|
+
})), v = h(() => _.value ? {
|
|
102
|
+
mark: (o.value.height - P.value) / 100 * 0.5,
|
|
103
|
+
space: (o.value.height - P.value) / 100 * 0.5
|
|
106
104
|
} : {
|
|
107
|
-
mark: (
|
|
108
|
-
space: (
|
|
105
|
+
mark: (o.value.width - P.value) / 100 * 0.5,
|
|
106
|
+
space: (o.value.width - P.value) / 100 * 0.5
|
|
109
107
|
}), Q = h(() => {
|
|
110
108
|
const t = [];
|
|
111
109
|
for (let a = 0; a < 100; a += 1) {
|
|
112
|
-
const
|
|
110
|
+
const l = e.value.style.chart.layout.ticks.gradient.show ? ae(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
113
111
|
if (_.value) {
|
|
114
|
-
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (
|
|
112
|
+
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, p = i.value.left + 4 + $, y = o.value.width - i.value.right - 4 - $, g = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, m = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (y - p) / e.value.style.chart.layout.curveAngleX, x = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
115
113
|
t.push({
|
|
116
|
-
x1:
|
|
117
|
-
x2:
|
|
114
|
+
x1: p,
|
|
115
|
+
x2: y,
|
|
118
116
|
y1: g,
|
|
119
|
-
y2:
|
|
120
|
-
curve: `M ${
|
|
121
|
-
color:
|
|
117
|
+
y2: m,
|
|
118
|
+
curve: `M ${p} ${g} C ${p + w} ${g - x}, ${y - w} ${m - x}, ${y} ${m}`,
|
|
119
|
+
color: l
|
|
122
120
|
});
|
|
123
121
|
} else {
|
|
124
|
-
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (
|
|
122
|
+
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, p = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = p, g = i.value.top + 4 + $, m = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), x = (m - g) / e.value.style.chart.layout.curveAngleX;
|
|
125
123
|
t.push({
|
|
126
|
-
x1:
|
|
127
|
-
x2:
|
|
124
|
+
x1: p,
|
|
125
|
+
x2: y,
|
|
128
126
|
y1: g,
|
|
129
|
-
y2:
|
|
130
|
-
curve: `M ${
|
|
131
|
-
color:
|
|
127
|
+
y2: m,
|
|
128
|
+
curve: `M ${p} ${g} C ${p + w} ${g + x}, ${y + w} ${m - x}, ${y} ${m}`,
|
|
129
|
+
color: l
|
|
132
130
|
});
|
|
133
131
|
}
|
|
134
132
|
}
|
|
135
133
|
return t;
|
|
136
134
|
}), C = h(() => {
|
|
137
135
|
let t, r, a;
|
|
138
|
-
const
|
|
139
|
-
return _.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t =
|
|
136
|
+
const l = e.value.style.chart.percentage.fontSize / 3;
|
|
137
|
+
return _.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = o.value.width / 2, r = i.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = o.value.width / 2, r = o.value.height - i.value.bottom / 2 + l, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, r = o.value.height / 2 + l, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = o.value.width - i.value.right + 8, r = o.value.height / 2 + l, a = "start"), {
|
|
140
138
|
x: t,
|
|
141
139
|
y: r,
|
|
142
140
|
textAnchor: a,
|
|
@@ -144,15 +142,15 @@ const ze = ["id"], Se = {
|
|
|
144
142
|
fontSize: e.value.style.chart.percentage.fontSize,
|
|
145
143
|
fill: e.value.style.chart.percentage.color
|
|
146
144
|
};
|
|
147
|
-
}), O =
|
|
148
|
-
function
|
|
149
|
-
O.value = t,
|
|
145
|
+
}), O = k(!1);
|
|
146
|
+
function ue(t) {
|
|
147
|
+
O.value = t, E.value += 1;
|
|
150
148
|
}
|
|
151
|
-
const A =
|
|
149
|
+
const A = k(!1);
|
|
152
150
|
function T() {
|
|
153
151
|
A.value = !A.value;
|
|
154
152
|
}
|
|
155
|
-
return
|
|
153
|
+
return le({
|
|
156
154
|
generatePdf: Y,
|
|
157
155
|
generateImage: q,
|
|
158
156
|
toggleAnnotator: T
|
|
@@ -165,24 +163,24 @@ const ze = ["id"], Se = {
|
|
|
165
163
|
onMouseenter: r[0] || (r[0] = () => n(X)(!0)),
|
|
166
164
|
onMouseleave: r[1] || (r[1] = () => n(X)(!1))
|
|
167
165
|
}, [
|
|
168
|
-
e.value.userOptions.buttons.annotator ? (s(), I(
|
|
166
|
+
e.value.userOptions.buttons.annotator ? (s(), I(Oe, {
|
|
169
167
|
key: 0,
|
|
170
168
|
parent: N.value,
|
|
171
169
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
172
170
|
color: e.value.style.chart.color,
|
|
173
171
|
active: A.value,
|
|
174
172
|
onClose: T
|
|
175
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
173
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : d("", !0),
|
|
176
174
|
ne.value ? (s(), c("div", {
|
|
177
175
|
key: 1,
|
|
178
176
|
ref_key: "noTitle",
|
|
179
177
|
ref: re,
|
|
180
178
|
class: "vue-data-ui-no-title-space",
|
|
181
179
|
style: "height:36px; width: 100%;background:transparent"
|
|
182
|
-
}, null, 512)) :
|
|
183
|
-
e.value.style.chart.title.text ? (s(), c("div",
|
|
184
|
-
(s(), I(
|
|
185
|
-
key: `title_${
|
|
180
|
+
}, null, 512)) : d("", !0),
|
|
181
|
+
e.value.style.chart.title.text ? (s(), c("div", ze, [
|
|
182
|
+
(s(), I(Ce, {
|
|
183
|
+
key: `title_${B.value}`,
|
|
186
184
|
config: {
|
|
187
185
|
title: {
|
|
188
186
|
cy: "wheel-title",
|
|
@@ -194,10 +192,10 @@ const ze = ["id"], Se = {
|
|
|
194
192
|
}
|
|
195
193
|
}
|
|
196
194
|
}, null, 8, ["config"]))
|
|
197
|
-
])) :
|
|
198
|
-
e.value.userOptions.show && z.value && (n(D) || n(M)) ? (s(), I(
|
|
195
|
+
])) : d("", !0),
|
|
196
|
+
e.value.userOptions.show && z.value && (n(D) || n(M)) ? (s(), I(we, {
|
|
199
197
|
ref: "details",
|
|
200
|
-
key: `user_options_${
|
|
198
|
+
key: `user_options_${E.value}`,
|
|
201
199
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
202
200
|
color: e.value.style.chart.color,
|
|
203
201
|
isPrinting: n(R),
|
|
@@ -213,14 +211,14 @@ const ze = ["id"], Se = {
|
|
|
213
211
|
position: e.value.userOptions.position,
|
|
214
212
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
215
213
|
isAnnotation: A.value,
|
|
216
|
-
onToggleFullscreen:
|
|
214
|
+
onToggleFullscreen: ue,
|
|
217
215
|
onGeneratePdf: n(Y),
|
|
218
216
|
onGenerateImage: n(q),
|
|
219
217
|
onToggleAnnotator: T,
|
|
220
218
|
style: G({
|
|
221
219
|
visibility: n(D) ? n(M) ? "visible" : "hidden" : "visible"
|
|
222
220
|
})
|
|
223
|
-
},
|
|
221
|
+
}, ce({ _: 2 }, [
|
|
224
222
|
t.$slots.optionPdf ? {
|
|
225
223
|
name: "optionPdf",
|
|
226
224
|
fn: F(() => [
|
|
@@ -237,73 +235,85 @@ const ze = ["id"], Se = {
|
|
|
237
235
|
} : void 0,
|
|
238
236
|
t.$slots.optionFullscreen ? {
|
|
239
237
|
name: "optionFullscreen",
|
|
240
|
-
fn: F(({ toggleFullscreen: a, isFullscreen:
|
|
241
|
-
b(t.$slots, "optionFullscreen", L(j({ toggleFullscreen: a, isFullscreen:
|
|
238
|
+
fn: F(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
239
|
+
b(t.$slots, "optionFullscreen", L(j({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
242
240
|
]),
|
|
243
241
|
key: "2"
|
|
244
242
|
} : void 0,
|
|
245
243
|
t.$slots.optionAnnotator ? {
|
|
246
244
|
name: "optionAnnotator",
|
|
247
|
-
fn: F(({ toggleAnnotator: a, isAnnotator:
|
|
248
|
-
b(t.$slots, "optionAnnotator", L(j({ toggleAnnotator: a, isAnnotator:
|
|
245
|
+
fn: F(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
246
|
+
b(t.$slots, "optionAnnotator", L(j({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
249
247
|
]),
|
|
250
248
|
key: "3"
|
|
251
249
|
} : void 0
|
|
252
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
250
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
253
251
|
z.value ? (s(), c("svg", {
|
|
254
252
|
key: 4,
|
|
255
|
-
xmlns: n(
|
|
253
|
+
xmlns: n(ke),
|
|
256
254
|
class: U({ "vue-data-ui-fullscreen--on": O.value, "vue-data-ui-fulscreen--off": !O.value }),
|
|
257
|
-
viewBox: `0 0 ${
|
|
255
|
+
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
258
256
|
style: G(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
|
|
259
257
|
}, [
|
|
260
|
-
|
|
258
|
+
ve(Pe),
|
|
259
|
+
t.$slots["chart-background"] ? (s(), c("foreignObject", {
|
|
260
|
+
key: 0,
|
|
261
|
+
x: 0,
|
|
262
|
+
y: 0,
|
|
263
|
+
width: o.value.width,
|
|
264
|
+
height: o.value.height,
|
|
265
|
+
style: {
|
|
266
|
+
pointerEvents: "none"
|
|
267
|
+
}
|
|
268
|
+
}, [
|
|
269
|
+
b(t.$slots, "chart-background", {}, void 0, !0)
|
|
270
|
+
], 8, Ne)) : d("", !0),
|
|
261
271
|
e.value.style.chart.layout.curved ? (s(), c("g", Me, [
|
|
262
|
-
(s(!0), c(Z, null, ee(Q.value, (a,
|
|
272
|
+
(s(!0), c(Z, null, ee(Q.value, (a, l) => (s(), c("path", {
|
|
263
273
|
d: a.curve,
|
|
264
274
|
"stroke-width": v.value.mark,
|
|
265
|
-
stroke: u.value >=
|
|
275
|
+
stroke: u.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
266
276
|
"stroke-linecap": "round",
|
|
267
277
|
fill: "none",
|
|
268
|
-
class: U({ "vue-ui-tick-animated": e.value.style.chart.animation.use &&
|
|
278
|
+
class: U({ "vue-ui-tick-animated": e.value.style.chart.animation.use && l <= u.value })
|
|
269
279
|
}, null, 10, Te))), 256))
|
|
270
280
|
])) : (s(), c("g", Ue, [
|
|
271
|
-
(s(!0), c(Z, null, ee(Q.value, (a,
|
|
281
|
+
(s(!0), c(Z, null, ee(Q.value, (a, l) => (s(), c("line", {
|
|
272
282
|
x1: a.x1,
|
|
273
283
|
y1: a.y1,
|
|
274
284
|
x2: a.x2,
|
|
275
285
|
y2: a.y2,
|
|
276
286
|
"stroke-width": v.value.mark,
|
|
277
|
-
stroke: u.value >=
|
|
287
|
+
stroke: u.value >= l ? a.color : e.value.style.chart.layout.inactiveColor,
|
|
278
288
|
"stroke-linecap": "round"
|
|
279
289
|
}, null, 8, Ge))), 256))
|
|
280
290
|
])),
|
|
281
291
|
e.value.style.chart.percentage.show ? (s(), c("text", {
|
|
282
|
-
key:
|
|
292
|
+
key: 3,
|
|
283
293
|
x: C.value.x,
|
|
284
294
|
y: C.value.y,
|
|
285
295
|
"font-size": C.value.fontSize,
|
|
286
296
|
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? n(ae)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
287
297
|
"font-weight": C.value.bold ? "bold" : "normal",
|
|
288
298
|
"text-anchor": C.value.textAnchor
|
|
289
|
-
},
|
|
299
|
+
}, he(n(be)(
|
|
290
300
|
e.value.style.chart.percentage.formatter,
|
|
291
301
|
u.value,
|
|
292
|
-
n(
|
|
302
|
+
n(_e)({
|
|
293
303
|
v: u.value,
|
|
294
304
|
s: "%",
|
|
295
305
|
r: e.value.style.chart.percentage.rounding
|
|
296
306
|
})
|
|
297
|
-
)), 9, Le)) :
|
|
298
|
-
b(t.$slots, "svg", { svg:
|
|
299
|
-
], 14,
|
|
307
|
+
)), 9, Le)) : d("", !0),
|
|
308
|
+
b(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
309
|
+
], 14, Se)) : d("", !0),
|
|
300
310
|
t.$slots.watermark ? (s(), c("div", je, [
|
|
301
311
|
b(t.$slots, "watermark", L(j({ isPrinting: n(R) || n(V) })), void 0, !0)
|
|
302
|
-
])) :
|
|
303
|
-
t.$slots.source ? (s(), c("div",
|
|
312
|
+
])) : d("", !0),
|
|
313
|
+
t.$slots.source ? (s(), c("div", Ee, [
|
|
304
314
|
b(t.$slots, "source", {}, void 0, !0)
|
|
305
|
-
], 512)) :
|
|
306
|
-
z.value ?
|
|
315
|
+
], 512)) : d("", !0),
|
|
316
|
+
z.value ? d("", !0) : (s(), I(xe, {
|
|
307
317
|
key: 7,
|
|
308
318
|
config: {
|
|
309
319
|
type: "tiremarks",
|
|
@@ -315,9 +325,9 @@ const ze = ["id"], Se = {
|
|
|
315
325
|
}
|
|
316
326
|
}
|
|
317
327
|
}, null, 8, ["config"]))
|
|
318
|
-
], 46,
|
|
328
|
+
], 46, Fe));
|
|
319
329
|
}
|
|
320
|
-
}, We = /* @__PURE__ */
|
|
330
|
+
}, We = /* @__PURE__ */ Ie(Be, [["__scopeId", "data-v-60aa805a"]]);
|
|
321
331
|
export {
|
|
322
332
|
We as default
|
|
323
333
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CgZGelSi.cjs"),Ee=require("./Title-DjAOcuWO.cjs"),ye=require("./usePrinter-sTw1FdN_.cjs"),Le=require("./Tooltip-AHTiRuWB.cjs"),Re=require("./Legend-CMyzYtIb.cjs"),Ae=require("./vue-ui-skeleton-m4l9jfqA.cjs"),Fe=require("./DataTable-Dtq94CxH.cjs"),Ie=require("./vue-ui-accordion-BZH6cz4t.cjs"),be=require("./useResponsive-BJ7DTGpm.cjs"),ke=require("./useNestedProp-BxCE3J3Z.cjs"),De=require("./PackageVersion-B_1OHk5A.cjs"),qe=require("./PenAndPaper-DhXsAnuf.cjs"),Me=require("./useUserOptionState-BgepsfED.cjs"),He=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function Ce(n,v){const s=n.length;if(s===0)throw new Error(`Max aspect ratio cannot be computed: ${n} is an empty array`);{let u=1/0,d=-1/0,p=0;for(let g=0;g<s;g+=1){const h=n[g].normalizedValue;h<u&&(u=h),h>d&&(d=h),p+=h}return Math.max(v**2*d/p**2,p**2/(v**2*u))}}function we(n){const{xOffset:v,yOffset:s,width:u,height:d}=n;return{x0:v,y0:s,x1:v+u,y1:s+d}}function Ue(n,v,s){if(n.length===0)return!0;{const u=n.concat(v),d=Ce(n,s),p=Ce(u,s);return d>=p}}function We(n){const v=[],s=n.length;for(let u=0;u<s;u+=1){const d=n[u],p=d.length;for(let c=0;c<p;c+=1)v.push(d[c])}return v}function Ge(n,v){const s={...v,children:n};return Te(s)}function je(n){return(n.x1-n.x0)*(n.y1-n.y0)}function xe(n,v){const{width:s,height:u,xOffset:d,yOffset:p}=Y(v),c=n.length,g=n.map(f=>f.normalizedValue||0).reduce((f,y)=>f+y,0),h=g/u,w=g/s;let C=d,b=p;const k=[];if(s>=u){for(let f=0;f<c;f+=1){const y=n[f],x=b+y.normalizedValue/h,B={x0:C,y0:b,x1:C+h,y1:x},T=Object.assign({},y,B);b=x,k.push(T)}return k}else{for(let f=0;f<c;f+=1){const y=n[f],x=C+y.normalizedValue/w,B={x0:C,y0:b,x1:x,y1:b+w},T=Object.assign({},y,B);C=x,k.push(T)}return k}}function Xe(n){const v=Y(n),s=v.width,u=v.height;return Math.min(s,u)}function Ye(n,v){const s=n.length,u=n.map(h=>h.value??0).reduce((h,w)=>h+w,0),d=v/u,p=[];let c,g;for(let h=0;h<s;h+=1)g=n[h],c=Object.assign({},g,{normalizedValue:g.value*(d||0)}),p.push(c);return p}function Y(n){const{x0:v,y0:s,x1:u,y1:d}=n;return{xOffset:v,yOffset:s,width:u-v,height:d-s}}function Ze(n,v,s,u){let d=n,p=v,c=s,g=u;for(;;){const h=d.length;if(h===0){const k=xe(p,c);return g.concat(k)}const w=Xe(c),C=d[0],b=d.slice(1,h);if(Ue(p,C,w)){const k=p.concat(C);d=b,p=k,c=c,g=g}else{const k=p.length;let f=0;for(let T=0;T<k;T+=1)f+=p[T].normalizedValue;const y=Je(c,f),x=xe(p,c),B=g.concat(x);d=d,p=[],c=y,g=B}}}function Te(n){if(typeof n.children>"u"||!n.children.length)return[n];{const v=Ye(n.children,je(n)),s=Ze(v,[],n,[]),u=s.length,d=[];for(let c=0;c<u;c+=1)d.push(Te(s[c]));return We(d)}}function Je(n,v){const{width:s,height:u,xOffset:d,yOffset:p}=Y(n);if(s>=u){const c=v/u,g=s-c,h={xOffset:d+c,yOffset:p,width:g,height:u};return we(h)}else{const c=v/s,g=u-c,h={xOffset:d,yOffset:p+c,width:s,height:g};return we(h)}}const Ke=n=>(e.pushScopeId("data-v-d58b1737"),n=n(),e.popScopeId(),n),Qe=["id"],et=["xmlns","viewBox"],tt={key:0},ot=["id"],lt=["stop-color"],at=["stop-color"],nt=["x","y","height","width","fill","rx","stroke","stroke-width","onClick","onMouseenter"],rt=["x","y","height","width"],ut={style:{width:"100%",height:"100%"},class:"vue-ui-treemap-cell"},st=Ke(()=>e.createElementVNode("br",null,null,-1)),it={key:5,class:"vue-data-ui-watermark"},ct=["onClick"],dt={key:0},vt={key:1},ht=["innerHTML"],pt={__name:"vue-ui-treemap",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:["selectLegend","selectDatapoint"],setup(n,{expose:v,emit:s}){const u=n,{vue_ui_treemap:d}=r.useConfig(),p=e.useSlots();e.onMounted(()=>{p["chart-background"]&&console.warn("VueUiTreemap does not support the #chart-background slot.")});const c=e.computed(()=>!!u.dataset&&u.dataset.length),g=e.computed(()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),h=e.ref(r.createUid()),w=e.ref(!1),C=e.ref(""),b=e.ref(!1),k=e.ref(0),f=e.ref([]),y=e.ref(null),x=e.ref(null),B=e.ref(null),T=e.ref(null),Z=e.ref(null),J=e.ref(0),K=e.ref(0),Q=e.ref(0),t=e.computed({get:()=>oe(),set:o=>o}),{userOptionsVisible:U,setUserOptionsVisibility:ee,keepUserOptionState:te}=Me.useUserOptionState({config:t.value});function oe(){const o=ke.useNestedProp({userConfig:u.config,defaultConfig:d});return o.theme?{...ke.useNestedProp({userConfig:r.themes.vue_ui_treemap[o.theme]||u.config,defaultConfig:o}),customPalette:r.themePalettes[o.theme]||r.palette}:o}e.watch(()=>u.config,o=>{t.value=oe(),U.value=!t.value.showOnChartHover,J.value+=1,K.value+=1,Q.value+=1},{deep:!0});const{isPrinting:le,isImaging:ae,generatePdf:ne,generateImage:re}=ye.usePrinter({elementId:`treemap_${h.value}`,fileName:t.value.style.chart.title.text||"vue-ui-treemap"}),Se=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),I=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),O=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.chart.tooltip.show}),P=e.ref({height:t.value.style.chart.height,width:t.value.style.chart.width}),z=e.computed(()=>({bottom:P.value.height-t.value.style.chart.padding.bottom,height:P.value.height-t.value.style.chart.padding.top-t.value.style.chart.padding.bottom,left:t.value.style.chart.padding.left,right:P.value.width-t.value.style.chart.padding.right,top:t.value.style.chart.padding.top,vbHeight:P.value.height,vbWidth:P.value.width,width:P.value.width-t.value.style.chart.padding.left-t.value.style.chart.padding.right}));function ue(o){o.forEach((a,l)=>{a.id=r.createUid(),a.color=r.convertColorToHex(a.color)||I.value[l]||r.palette[l]||r.palette[l%r.palette.length],a.children&&(a.children.forEach(i=>{i.parentId=a.id,i.color=a.color}),ue(a.children))})}const V=e.ref(u.dataset),D=e.ref(null);e.onMounted(()=>{$e()});function $e(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiTreemap",type:"dataset"}),ue(V.value),t.value.responsive){const o=be.throttle(()=>{const{width:a,height:l}=be.useResponsive({chart:y.value,title:t.value.style.chart.title.text?x.value:null,legend:t.value.style.chart.legend.show?B.value:null,source:T.value,noTitle:Z.value});P.value.width=a,P.value.height=l});D.value=new ResizeObserver(o),D.value.observe(y.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const W=e.ref(V.value),A=e.computed(()=>W.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length]})).filter(o=>!f.value.includes(o.id))),L=e.computed(()=>V.value.filter(o=>!f.value.includes(o.id)).map(o=>o.value||0).reduce((o,a)=>o+a,0)),se=e.computed({get(){let o=[...A.value];return t.value.style.chart.layout.sorted&&(o=[...A.value].sort((a,l)=>l.value-a.value)),o.map(a=>({...a}))},set(o){return o}});function ie(o,a){return o.value/a}function Ne(o,a,l){const i=t.value.style.chart.layout.rects.colorRatio-ie(a,l);return r.lightenHexColor(o,i<0?0:i)}function ce(o,a,l,i){return o.map((m,_)=>{const H=Ne(r.convertColorToHex(a)||I.value[_]||r.palette[_]||r.palette[_%r.palette.length],m,i),Ve=ie(m,i);return{...m,color:H,proportion:Ve,parentName:l,children:m.children?ce(m.children,H,m.name,i):void 0}})}const F=e.computed(()=>Ge(se.value.map((o,a)=>{const l=o.children?o.children.reduce((i,m)=>i+m.value,0):o.value;return{value:o.value,id:o.id,children:o.children?ce(o.children.sort((i,m)=>m.value-i.value),o.color,o.name,l):void 0,color:o.color,name:o.name}}),{x0:z.value.left*2,y0:z.value.top,x1:z.value.width,y1:z.value.height}));function de({y0:o,y1:a}){return a-o<=0?1e-4:a-o}function ve({x0:o,x1:a}){return a-o<=0?1e-4:a-o}function E(o){const a=t.value.style.chart.layout.labels.fontSize*(o.proportion*2>1?1:o.proportion*2);return a<t.value.style.chart.layout.labels.minFontSize?t.value.style.chart.layout.labels.minFontSize:a}function Be(o){b.value=o,k.value+=1}const R=e.computed(()=>({startX:0,startY:0,width:z.value.vbWidth,height:z.value.vbHeight})),S=e.ref(!1);function G(o,a=V.value){for(const l of a){if(l.id===o)return l;if(l.children){const i=G(o,l.children);if(i)return i}}return null}function Oe(o){if(S.value)s("selectDatapoint",void 0),W.value=V.value;else{if(s("selectDatapoint",o),!G(o.parentId))return;W.value=[G(o.parentId)]}S.value=!S.value}const $=e.ref(null),he=e.computed(()=>V.value.map((o,a)=>({...o,color:r.convertColorToHex(o.color)||I.value[a]||r.palette[a]||r.palette[a%r.palette.length],shape:"square"})).sort((o,a)=>a.value-o.value).map((o,a)=>({...o,proportion:o.value/V.value.map(l=>l.value).reduce((l,i)=>l+i,0),opacity:f.value.includes(o.id)?.5:1}))),Pe=e.computed(()=>({cy:"treemap-div-legend",backgroundColor:t.value.style.chart.legend.backgroundColor,color:t.value.style.chart.legend.color,fontSize:t.value.style.chart.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.chart.legend.bold?"bold":""}));function pe(o){S.value=!1,$.value=null,f.value.includes(o.id)?f.value=f.value.filter(a=>a!==o.id):f.value.length<u.dataset.length-1&&f.value.push(o.id),s("selectLegend",se.value)}const j=e.ref(null);function _e({datapoint:o,seriesIndex:a}){$.value=o,j.value={datapoint:o,seriesIndex:a,config:t.value,series:A.value};const l=t.value.style.chart.tooltip.customFormat;if(r.isFunction(l)&&r.functionReturnsString(()=>l({seriesIndex:a,datapoint:o,series:A.value,config:t.value})))C.value=l({seriesIndex:a,datapoint:o,series:A.value,config:t.value});else{let i="";i+=`<div style="width:100%;text-align:center;border-bottom:1px solid ${t.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${o.name}</div>`,i+=`<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" fill="${o.color}"/></svg>`,i+=`<b>${r.applyDataLabel(t.value.style.chart.layout.labels.formatter,o.value,r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:o.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.tooltip.roundingValue}),{datapoint:o,seriesIndex:a})}</b>`,C.value=`<div>${i}</div>`}w.value=!0}const N=e.computed(()=>{const o=F.value.map(l=>({name:l.name,color:l.color})),a=F.value.map(l=>l.value);return{head:o,body:a}});function fe(){e.nextTick(()=>{const o=N.value.head.map((i,m)=>[[i.name],[N.value.body[m]],[isNaN(N.value.body[m]/L.value)?"-":N.value.body[m]/L.value*100]]),a=[[t.value.style.chart.title.text],[t.value.style.chart.title.subtitle.text],[[""],["val"],["%"]]].concat(o),l=r.createCsvContent(a);r.downloadCsv({csvContent:l,title:t.value.style.chart.title.text||"vue-ui-treemap"})})}const q=e.computed(()=>{const o=[t.value.table.columnNames.series,t.value.table.columnNames.value,t.value.table.columnNames.percentage],a=N.value.head.map((m,_)=>{const H=r.applyDataLabel(t.value.style.chart.layout.labels.formatter,N.value.body[_],r.dataLabel({p:t.value.style.chart.layout.labels.prefix,v:N.value.body[_],s:t.value.style.chart.layout.labels.suffix,r:t.value.table.td.roundingValue}));return[{color:m.color,name:m.name,shape:"square"},H,isNaN(N.value.body[_]/L.value)?"-":r.dataLabel({v:N.value.body[_]/L.value*100,s:"%",r:t.value.table.td.roundingPercentage})]}),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{colNames:[t.value.table.columnNames.series,t.value.table.columnNames.value],head:o,body:a,config:l}});function ze(){return F.value}function ge(){O.value.showTable=!O.value.showTable}function me(){O.value.showTooltip=!O.value.showTooltip}const M=e.ref(!1);function X(){M.value=!M.value}return v({getData:ze,generateCsv:fe,generateImage:re,generatePdf:ne,toggleTable:ge,toggleTooltip:me,toggleAnnotator:X}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"treemapChart",ref:y,class:e.normalizeClass(`vue-ui-treemap ${b.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; ${t.value.responsive?"height: 100%;":""} text-align:center;background:${t.value.style.chart.backgroundColor}`),id:`treemap_${h.value}`,onMouseenter:a[3]||(a[3]=()=>e.unref(ee)(!0)),onMouseleave:a[4]||(a[4]=()=>e.unref(ee)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(qe.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:M.value,onClose:X},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Se.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:Z,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:x,style:e.normalizeStyle(`width:100%;background:${t.value.style.chart.backgroundColor};padding-bottom:6px`)},[(e.openBlock(),e.createBlock(Ee._sfc_main,{key:`title_${J.value}`,config:{title:{cy:"treemap-div-title",...t.value.style.chart.title},subtitle:{cy:"treemap-div-subtitle",...t.value.style.chart.title.subtitle}}},null,8,["config"]))],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&c.value&&(e.unref(te)||e.unref(U))?(e.openBlock(),e.createBlock(ye.UserOptions,{ref:"details",key:`user_option_${k.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isPrinting:e.unref(le),isImaging:e.unref(ae),uid:h.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.chart.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasXls:t.value.userOptions.buttons.csv,hasImg:t.value.userOptions.buttons.img,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:b.value,isTooltip:O.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:M.value,onToggleFullscreen:Be,onGeneratePdf:e.unref(ne),onGenerateCsv:fe,onGenerateImage:e.unref(re),onToggleTable:ge,onToggleTooltip:me,onToggleAnnotator:X,style:e.normalizeStyle({visibility:e.unref(te)?e.unref(U)?"visible":"hidden":"visible"})},e.createSlots({_:2},[o.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,o.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,o.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,o.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,o.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,o.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:i})=>[e.renderSlot(o.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:i})),void 0,!0)]),key:"5"}:void 0,o.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:l,isAnnotator:i})=>[e.renderSlot(o.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:l,isAnnotator:i})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isPrinting","isImaging","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":b.value,"vue-data-ui-fulscreen--off":!b.value,"vue-data-ui-zoom-plus":!S.value,"vue-data-ui-zoom-minus":S.value}),viewBox:`${R.value.startX} ${R.value.startY} ${R.value.width<=0?10:R.value.width} ${R.value.height<=0?10:R.value.height}`,style:e.normalizeStyle(`max-width:100%; overflow: hidden; background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(De._sfc_main),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.chart.layout.rects.gradient.show?(e.openBlock(),e.createElementBlock("defs",tt,[e.createElementVNode("radialGradient",{id:`tgrad_${l.id}`,gradientTransform:"translate(-1, -1.000001) scale(2, 2)"},[e.createElementVNode("stop",{offset:"18%","stop-color":l.color},null,8,lt),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.lightenHexColor)(l.color,t.value.style.chart.layout.rects.gradient.intensity/100)},null,8,at)],8,ot)])):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(l,i)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:l.x0,y:l.y0,height:de(l),width:ve(l),fill:g.value?l.color:t.value.style.chart.layout.rects.gradient.show?`url(#tgrad_${l.id})`:l.color,rx:t.value.style.chart.layout.rects.borderRadius,stroke:$.value&&$.value.id===l.id?t.value.style.chart.layout.rects.selected.stroke:t.value.style.chart.layout.rects.stroke,"stroke-width":$.value&&$.value.id===l.id?t.value.style.chart.layout.rects.selected.strokeWidth:t.value.style.chart.layout.rects.strokeWidth,onClick:m=>Oe(l),onMouseenter:()=>_e({datapoint:l,seriesIndex:i}),onMouseleave:a[0]||(a[0]=m=>{$.value=null,w.value=!1}),style:e.normalizeStyle(`opacity:${$.value?$.value.id===l.id?1:t.value.style.chart.layout.rects.selected.unselectedOpacity:1}`),class:"vue-ui-treemap-rect"},null,44,nt),(e.openBlock(),e.createElementBlock("foreignObject",{x:l.x0,y:l.y0,height:de(l),width:ve(l),class:"vue-ui-treemap-cell-foreignObject"},[e.createElementVNode("div",ut,[t.value.style.chart.layout.labels.showDefaultLabels&&(l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||S.value)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vue-ui-treemap-cell-default",style:e.normalizeStyle(`width:calc(100% - ${E(l)/1.5}px);text-align:left;line-height:${E(l)<14?14:E(l)}px;padding:${E(l)/3}px; color:${e.unref(r.adaptColorToBackground)(l.color)}`)},[e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(l.name),5),st,e.createElementVNode("span",{style:e.normalizeStyle(`width:100%;font-size:${E(l)}px;`)},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.layout.labels.rounding}),{datapoint:l})),5)],4)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"rect",e.normalizeProps(e.guardReactiveProps({rect:l,shouldShow:l.proportion>t.value.style.chart.layout.labels.hideUnderProportion||S.value,fontSize:E(l),isZoom:S.value,textColor:e.unref(r.adaptColorToBackground)(l.color)})),void 0,!0)])],8,rt))]))),256)),e.renderSlot(o.$slots,"svg",e.normalizeProps(e.guardReactiveProps({svg:z.value,isZoom:S.value,rect:$.value,config:t.value})),void 0,!0)],14,et)):e.createCommentVNode("",!0),o.$slots.watermark?(e.openBlock(),e.createElementBlock("div",it,[e.renderSlot(o.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(le)||e.unref(ae)})),void 0,!0)])):e.createCommentVNode("",!0),c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Ae.default,{key:6,config:{type:"treemap",style:{backgroundColor:t.value.style.chart.backgroundColor,treemap:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:B},[t.value.style.chart.legend.show?(e.openBlock(),e.createBlock(Re.Legend,{key:`legend_${Q.value}`,legendSet:he.value,config:Pe.value,id:`treemap_legend_${h.value}`,onClickMarker:a[1]||(a[1]=({legend:l})=>pe(l))},{item:e.withCtx(({legend:l,index:i})=>[e.createElementVNode("div",{onClick:m=>pe(l),style:e.normalizeStyle(`opacity:${f.value.includes(l.id)?.5:1}`)},[e.createTextVNode(e.toDisplayString(l.name)+": "+e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.labels.formatter,l.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.labels.prefix,v:l.value,s:t.value.style.chart.layout.labels.suffix,r:t.value.style.chart.legend.roundingValue}),{datapoint:l}))+" ",1),f.value.includes(l.id)?(e.openBlock(),e.createElementBlock("span",vt," ( - % ) ")):(e.openBlock(),e.createElementBlock("span",dt," ("+e.toDisplayString(isNaN(l.value/L.value)?"-":(l.value/L.value*100).toFixed(t.value.style.chart.legend.roundingPercentage))+"%) ",1))],12,ct)]),_:1},8,["legendSet","config","id"])):e.renderSlot(o.$slots,"legend",{key:1,legend:he.value},void 0,!0)],512),o.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:T,dir:"auto"},[e.renderSlot(o.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Le._sfc_main,{show:O.value.showTooltip&&w.value,backgroundColor:t.value.style.chart.tooltip.backgroundColor,color:t.value.style.chart.tooltip.color,fontSize:t.value.style.chart.tooltip.fontSize,borderRadius:t.value.style.chart.tooltip.borderRadius,borderColor:t.value.style.chart.tooltip.borderColor,borderWidth:t.value.style.chart.tooltip.borderWidth,backgroundOpacity:t.value.style.chart.tooltip.backgroundOpacity,position:t.value.style.chart.tooltip.position,offsetY:t.value.style.chart.tooltip.offsetY,parent:y.value,content:C.value,isFullscreen:b.value,isCustom:e.unref(r.isFunction)(t.value.style.chart.tooltip.customFormat)},{"tooltip-before":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(o.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","fontSize","borderRadius","borderColor","borderWidth","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),c.value?(e.openBlock(),e.createBlock(Ie.default,{key:8,hideDetails:"",config:{open:O.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color},head:{backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Fe.DataTable,{key:`table_${K.value}`,colNames:q.value.colNames,head:q.value.head,body:q.value.body,config:q.value.config,title:`${t.value.style.chart.title.text}${t.value.style.chart.title.subtitle.text?` : ${t.value.style.chart.title.subtitle.text}`:""}`,onClose:a[2]||(a[2]=l=>O.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createElementVNode("div",{innerHTML:l,style:{display:"flex","align-items":"center"}},null,8,ht)]),td:e.withCtx(({td:l})=>[e.createTextVNode(e.toDisplayString(l.name||l),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Qe))}},ft=He._export_sfc(pt,[["__scopeId","data-v-d58b1737"]]);exports.default=ft;
|