vue-data-ui 2.4.24 → 2.4.26
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 +9 -4
- package/dist/{Arrow-CTmibgPb.cjs → Arrow-Cvajb7Pp.cjs} +1 -1
- package/dist/{Arrow-9R7QraNV.js → Arrow-D_FJ0BNg.js} +1 -1
- package/dist/{BaseIcon-CQUxE4D0.js → BaseIcon-CeiDtKER.js} +4 -3
- package/dist/{BaseIcon-D_vWKdk3.cjs → BaseIcon-DeKj5tiF.cjs} +1 -1
- package/dist/{DataTable-DN4NMcy_.js → DataTable-BmAybhqW.js} +2 -2
- package/dist/{DataTable-ClN04OBE.cjs → DataTable-D-c7laSt.cjs} +1 -1
- package/dist/{Legend-CNAQN1JM.js → Legend-7EZhiUrH.js} +1 -1
- package/dist/{Legend-BdjYa7o4.cjs → Legend-D_dNnmCH.cjs} +1 -1
- package/dist/{PackageVersion-DFzNvc8X.js → PackageVersion-BRMtBck7.js} +1 -1
- package/dist/{PackageVersion-BReu3g8_.cjs → PackageVersion-C2JzxDlg.cjs} +1 -1
- package/dist/{PenAndPaper-C9MBduiw.cjs → PenAndPaper-Bur5hR1K.cjs} +1 -1
- package/dist/{PenAndPaper-BQ4Vfc7S.js → PenAndPaper-u9Nkiu0T.js} +3 -3
- package/dist/{Shape-mLeYDFcS.cjs → Shape-DJY2D6fU.cjs} +1 -1
- package/dist/{Shape-YbAlN6X4.js → Shape-DoR3mblZ.js} +1 -1
- package/dist/{Slicer-DvFk8kZE.js → Slicer-AM-8gKgh.js} +2 -2
- package/dist/{Slicer-DAnwJuA4.cjs → Slicer-DO6JA4zU.cjs} +1 -1
- package/dist/{Title-hDWoW1x0.cjs → Title-BJut0KCO.cjs} +1 -1
- package/dist/{Title-DdrRlJjz.js → Title-D_ljAKoY.js} +1 -1
- package/dist/{Tooltip-DZnNOyXe.js → Tooltip-Cy8PyEK7.js} +1 -1
- package/dist/{Tooltip-CLz1sK2U.cjs → Tooltip-OW2BdLyv.cjs} +1 -1
- package/dist/documentation/installation.md +2 -1
- package/dist/index-BtqOSPWK.cjs +9 -0
- package/dist/{index-DNpWvHMv.js → index-CpjF4-PU.js} +607 -375
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +100 -7
- package/dist/types/vue-data-ui.d.ts +100 -7
- package/dist/{useNestedProp-BhXCOMBU.cjs → useNestedProp-C7FKZW2F.cjs} +1 -1
- package/dist/{useNestedProp-DCPT4jkz.js → useNestedProp-DiDiQc6z.js} +1 -1
- package/dist/{usePrinter-Tcpg1Xq_.js → usePrinter-CZ0Ro0M3.js} +1 -1
- package/dist/{usePrinter-DA6eJ-d8.cjs → usePrinter-SEUTEAmF.cjs} +1 -1
- package/dist/vue-data-ui-37JLfniv.cjs +9 -0
- package/dist/{vue-data-ui-z1BPTu-V.js → vue-data-ui-CL2AoklI.js} +72 -70
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +44 -43
- package/dist/{vue-ui-3d-bar-D3TdYgOP.js → vue-ui-3d-bar-BlEG4n0o.js} +9 -9
- package/dist/{vue-ui-3d-bar-CK1sjoUi.cjs → vue-ui-3d-bar-C8Qb1ifR.cjs} +1 -1
- package/dist/{vue-ui-accordion-BZUQ-qHe.js → vue-ui-accordion-D6Uwxwl0.js} +3 -3
- package/dist/{vue-ui-accordion-BKaHbGc7.cjs → vue-ui-accordion-iiUNHeV-.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-B1KI1HfD.js → vue-ui-age-pyramid-CNWM-Vso.js} +10 -10
- package/dist/{vue-ui-age-pyramid-6gZ1ApV3.cjs → vue-ui-age-pyramid-DjagE43x.cjs} +1 -1
- package/dist/{vue-ui-annotator-CdsFcctQ.js → vue-ui-annotator-BZe3neqk.js} +1 -1
- package/dist/{vue-ui-annotator-BjiXyrZQ.cjs → vue-ui-annotator-CMVPAd95.cjs} +1 -1
- package/dist/{vue-ui-bullet-DzZoOmWT.js → vue-ui-bullet-O15K1or8.js} +8 -8
- package/dist/{vue-ui-bullet-lRr8AGvu.cjs → vue-ui-bullet-UVtGYVKm.cjs} +1 -1
- package/dist/{vue-ui-candlestick-sQ9OuT8L.cjs → vue-ui-candlestick-CNmA8fQF.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DUZ1v_V2.js → vue-ui-candlestick-w_RkjrEB.js} +11 -11
- package/dist/{vue-ui-carousel-table-B3754KOr.js → vue-ui-carousel-table-8bz5Gw6i.js} +4 -4
- package/dist/{vue-ui-carousel-table-sfpNsFFM.cjs → vue-ui-carousel-table-B5MDm7_a.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Bj8iuxME.js → vue-ui-chestnut-C9kaPI5L.js} +8 -8
- package/dist/{vue-ui-chestnut-CrLkWFiA.cjs → vue-ui-chestnut-DHjsPGHg.cjs} +1 -1
- package/dist/{vue-ui-cursor-olMTBc3h.cjs → vue-ui-cursor-Dzc6b6gE.cjs} +1 -1
- package/dist/{vue-ui-cursor-BeDbdiQ_.js → vue-ui-cursor-a11eeJlM.js} +2 -2
- package/dist/{vue-ui-dashboard-_x3uCh6v.js → vue-ui-dashboard-B3cTzTF7.js} +2 -2
- package/dist/{vue-ui-dashboard-Cl0-ES43.cjs → vue-ui-dashboard-CfA-FY0a.cjs} +1 -1
- package/dist/{vue-ui-digits-B2XiXAlb.js → vue-ui-digits-CHI-rZzx.js} +2 -2
- package/dist/{vue-ui-digits-51QHU1dt.cjs → vue-ui-digits-xq4pLzXW.cjs} +1 -1
- package/dist/{vue-ui-donut-BScgLfCs.js → vue-ui-donut-D4w732yO.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BWI37PoD.js → vue-ui-donut-evolution-BcEI-XQ5.js} +11 -11
- package/dist/{vue-ui-donut-evolution-BYZ-0q-Q.cjs → vue-ui-donut-evolution-DE-b4ShC.cjs} +1 -1
- package/dist/{vue-ui-donut-vHW8U7Yo.cjs → vue-ui-donut-zCAjAqo7.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-3Eitchg8.cjs → vue-ui-dumbbell-BHHVRpof.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-s09CyK69.js → vue-ui-dumbbell-CRB1jDkp.js} +10 -10
- package/dist/{vue-ui-flow-Oc6Zl5gy.cjs → vue-ui-flow---9a6iGC.cjs} +1 -1
- package/dist/{vue-ui-flow-B1Rt8LLH.js → vue-ui-flow-CO_kwR_-.js} +9 -9
- package/dist/vue-ui-funnel-BtFW0Wex.cjs +1 -0
- package/dist/vue-ui-funnel-BvLLEW0u.js +574 -0
- package/dist/{vue-ui-galaxy-DIg1SS4W.cjs → vue-ui-galaxy-BpR7EuVp.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DtDk3bvA.js → vue-ui-galaxy-CzBNCWvB.js} +11 -11
- package/dist/{vue-ui-gauge-CqDYHzxD.js → vue-ui-gauge-BLCrA4Z3.js} +7 -7
- package/dist/{vue-ui-gauge-BY33zNrL.cjs → vue-ui-gauge-CjOu6oqn.cjs} +1 -1
- package/dist/{vue-ui-gizmo-C0wcIOIv.js → vue-ui-gizmo-CbALdGSE.js} +3 -3
- package/dist/{vue-ui-gizmo-NhgqjNTn.cjs → vue-ui-gizmo-D550LJP_.cjs} +1 -1
- package/dist/{vue-ui-heatmap-C7_6hfx_.cjs → vue-ui-heatmap--SVDRyYF.cjs} +1 -1
- package/dist/{vue-ui-heatmap-AqYgted0.js → vue-ui-heatmap-GxECNV1K.js} +10 -10
- package/dist/{vue-ui-kpi-C00uVM5q.js → vue-ui-kpi-BeI-Uc3G.js} +3 -3
- package/dist/{vue-ui-kpi-DlqjCSOa.cjs → vue-ui-kpi-DmTDeYTk.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-34x62P6H.cjs → vue-ui-mini-loader-BPCifmPi.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CMxB6-7I.js → vue-ui-mini-loader-Cq5NzQke.js} +2 -2
- package/dist/{vue-ui-molecule-CUo3NiTx.js → vue-ui-molecule-BYnnHVSs.js} +11 -11
- package/dist/{vue-ui-molecule-DX26Q_UW.cjs → vue-ui-molecule-DDOtYnvu.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BnP66ZkN.cjs → vue-ui-mood-radar-CXxUmCON.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B48X5fUo.js → vue-ui-mood-radar-DSph-BzR.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BYC1kE3-.js → vue-ui-nested-donuts-D-FKanpn.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BB8An9kQ.cjs → vue-ui-nested-donuts-DxcqrnAz.cjs} +1 -1
- package/dist/{vue-ui-onion-CaiK6TJx.cjs → vue-ui-onion-BTXdZW1F.cjs} +1 -1
- package/dist/{vue-ui-onion-C_5HEmVo.js → vue-ui-onion-DNdKU_tZ.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BcMVYdY3.js → vue-ui-parallel-coordinate-plot-C08Mm2-q.js} +12 -12
- package/dist/{vue-ui-parallel-coordinate-plot-0V4h_rBl.cjs → vue-ui-parallel-coordinate-plot-CGvkjk3D.cjs} +1 -1
- package/dist/{vue-ui-quadrant-gF4piFaT.js → vue-ui-quadrant-CK8lzvET.js} +12 -12
- package/dist/{vue-ui-quadrant--F2x6TBI.cjs → vue-ui-quadrant-DGtHGV8w.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-BFO5nlxt.js → vue-ui-quick-chart-C7chIyP1.js} +9 -9
- package/dist/{vue-ui-quick-chart-Cmm4grEJ.cjs → vue-ui-quick-chart-DNh8sXOc.cjs} +1 -1
- package/dist/{vue-ui-radar-C3oGJqRO.js → vue-ui-radar-CvklQTxx.js} +12 -12
- package/dist/{vue-ui-radar-DLAHJPYl.cjs → vue-ui-radar-DIX_qX_c.cjs} +1 -1
- package/dist/{vue-ui-rating-wWlA8aGu.js → vue-ui-rating-DkWhtX7L.js} +2 -2
- package/dist/{vue-ui-rating-DDPmcwLh.cjs → vue-ui-rating-WfJhW6Yh.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CtnRCd-D.js → vue-ui-relation-circle-Bt2kayAM.js} +7 -7
- package/dist/{vue-ui-relation-circle-CN76qQMx.cjs → vue-ui-relation-circle-UkI3rSGh.cjs} +1 -1
- package/dist/{vue-ui-rings-BzmG-1wd.cjs → vue-ui-rings-6RqShpuH.cjs} +1 -1
- package/dist/{vue-ui-rings-Jjb3Hb_c.js → vue-ui-rings-CHIqJDps.js} +11 -11
- package/dist/{vue-ui-scatter-CDcO_SRL.js → vue-ui-scatter-B-L_xBjF.js} +12 -12
- package/dist/{vue-ui-scatter-DwvgXKwS.cjs → vue-ui-scatter-Dl0lSlc1.cjs} +1 -1
- package/dist/{vue-ui-screenshot-x7d584sf.js → vue-ui-screenshot-BNGt_Ndj.js} +1 -1
- package/dist/{vue-ui-screenshot-CMSHN3Kq.cjs → vue-ui-screenshot-BldyAQhp.cjs} +1 -1
- package/dist/{vue-ui-skeleton-pdfgn69e.js → vue-ui-skeleton-5qiu2vOB.js} +3 -3
- package/dist/{vue-ui-skeleton-8EAYuqbl.cjs → vue-ui-skeleton-CCo2ROV1.cjs} +1 -1
- package/dist/{vue-ui-smiley-Dz5qeDJY.cjs → vue-ui-smiley-C7_S4eNS.cjs} +1 -1
- package/dist/{vue-ui-smiley-DBkSG5cV.js → vue-ui-smiley-iWOs5GqV.js} +2 -2
- package/dist/{vue-ui-spark-trend-Pw2ApGpF.js → vue-ui-spark-trend-MzGiDFGX.js} +5 -5
- package/dist/{vue-ui-spark-trend-QvfiA4OU.cjs → vue-ui-spark-trend-sNzwu560.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-48yoWNM1.cjs → vue-ui-sparkbar-BVfXmqcD.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Cj4xrmUI.js → vue-ui-sparkbar-DpxQR2gu.js} +4 -4
- package/dist/{vue-ui-sparkgauge-sb5_grfL.cjs → vue-ui-sparkgauge-CS8UDWeQ.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DXQSkM_S.js → vue-ui-sparkgauge-D4--jFQc.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CKAF5W5v.js → vue-ui-sparkhistogram-Cxjoa6ky.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B58h2Zbw.cjs → vue-ui-sparkhistogram-D8IhrzY-.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DSjLFYon.js → vue-ui-sparkline-3Q4hEM7p.js} +4 -4
- package/dist/{vue-ui-sparkline-oLYUoDR1.cjs → vue-ui-sparkline-D910H286.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-VJKqaZ-e.js → vue-ui-sparkstackbar-B59Bw7Az.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BJwck6a7.cjs → vue-ui-sparkstackbar-CTSihv-L.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CeM-EW_p.cjs → vue-ui-stackbar-BGrrmjco.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Bo0yKeyV.js → vue-ui-stackbar-BTegNdY4.js} +12 -12
- package/dist/{vue-ui-strip-plot-BehocVOu.cjs → vue-ui-strip-plot-BVjyrdND.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-B7TECT_l.js → vue-ui-strip-plot-BgT1J5OY.js} +11 -11
- package/dist/{vue-ui-table-D2EOoNwN.js → vue-ui-table-CgS1GU4Z.js} +1 -1
- package/dist/{vue-ui-table-GVF0S5Ry.cjs → vue-ui-table-fCHQvdbJ.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-jlcKc0Ws.cjs → vue-ui-table-heatmap-BqFJMAJ_.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BNWIkOv9.js → vue-ui-table-heatmap-DgvQBYXr.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CZHIhrJE.cjs → vue-ui-table-sparkline-CXLMpv0k.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BDWWC7zT.js → vue-ui-table-sparkline-fBE66WCN.js} +5 -5
- package/dist/{vue-ui-thermometer-DnRAOGzE.cjs → vue-ui-thermometer-DulgA3i4.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DpdmV84i.js → vue-ui-thermometer-tGfJAwyO.js} +7 -7
- package/dist/{vue-ui-timer-ClEy78ag.js → vue-ui-timer-C2kPkRBe.js} +5 -5
- package/dist/{vue-ui-timer-Dqz_JqG8.cjs → vue-ui-timer-CASCNNyP.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-aziTOe35.cjs → vue-ui-tiremarks-4dlAjo6S.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BVC-dJW2.js → vue-ui-tiremarks-CGlojo_b.js} +7 -7
- package/dist/{vue-ui-treemap-izyqRSO4.js → vue-ui-treemap-DufeK33k.js} +11 -11
- package/dist/{vue-ui-treemap-ey3O_EM_.cjs → vue-ui-treemap-jhaYQkiI.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-3ahimUet.cjs → vue-ui-vertical-bar-B30icWwi.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-DkRLKkh9.js → vue-ui-vertical-bar-Dmo8wnx8.js} +11 -11
- package/dist/{vue-ui-waffle-BP9klXeX.js → vue-ui-waffle-BZxjBRnB.js} +11 -11
- package/dist/{vue-ui-waffle-uQGjZTgi.cjs → vue-ui-waffle-D59RaWZT.cjs} +1 -1
- package/dist/{vue-ui-wheel-BvhwRXPd.js → vue-ui-wheel-BeRyRbt8.js} +7 -7
- package/dist/{vue-ui-wheel-CYFdZRVV.cjs → vue-ui-wheel-De4-mY35.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-QVQUaIdb.js → vue-ui-word-cloud-Bk0QzFwd.js} +10 -10
- package/dist/{vue-ui-word-cloud-DUWtk6YK.cjs → vue-ui-word-cloud-aPrfbkgM.cjs} +1 -1
- package/dist/{vue-ui-xy-DApUlxLq.js → vue-ui-xy-DFzFITJ1.js} +14 -14
- package/dist/vue-ui-xy-canvas-BDD6q_Yb.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DHLXo1fA.js → vue-ui-xy-canvas-DWf89_69.js} +268 -238
- package/dist/{vue-ui-xy-DF-M-Idj.cjs → vue-ui-xy-pCnGy_1K.cjs} +1 -1
- package/package.json +2 -1
- package/dist/index-Yx-Iy-n8.cjs +0 -9
- package/dist/vue-data-ui-xS2yvUZ2.cjs +0 -9
- package/dist/vue-ui-xy-canvas-Cw8ymUpz.cjs +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toRefs as J, defineAsyncComponent as e, computed as c, ref as o, onMounted as Y, watch as O, shallowReactive as Z, openBlock as
|
|
2
|
-
import dt from "./BaseIcon-
|
|
1
|
+
import { toRefs as J, defineAsyncComponent as e, computed as c, ref as o, onMounted as Y, watch as O, shallowReactive as Z, openBlock as F, createElementBlock as R, createElementVNode as w, createVNode as tt, createTextVNode as et, toDisplayString as ot, unref as it, createBlock as at, resolveDynamicComponent as nt, mergeProps as rt, toHandlers as lt, createSlots as ut, renderList as st, withCtx as ct, renderSlot as gt, normalizeProps as pt, guardReactiveProps as mt } from "vue";
|
|
2
|
+
import dt from "./BaseIcon-CeiDtKER.js";
|
|
3
3
|
const Vt = {
|
|
4
4
|
key: 0,
|
|
5
5
|
style: { width: "100%", display: "flex", gap: "6px", "align-items": "center", color: "#FF0000" }
|
|
@@ -35,65 +35,66 @@ const Vt = {
|
|
|
35
35
|
"lap",
|
|
36
36
|
"toggleAnnotator"
|
|
37
37
|
],
|
|
38
|
-
setup(
|
|
39
|
-
const n =
|
|
40
|
-
VueUi3dBar: e(() => import("./vue-ui-3d-bar-
|
|
41
|
-
VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-
|
|
42
|
-
VueUiAnnotator: e(() => import("./vue-ui-annotator-
|
|
43
|
-
VueUiCandlestick: e(() => import("./vue-ui-candlestick-
|
|
44
|
-
VueUiChestnut: e(() => import("./vue-ui-chestnut-
|
|
45
|
-
VueUiDashboard: e(() => import("./vue-ui-dashboard-
|
|
46
|
-
VueUiDigits: e(() => import("./vue-ui-digits-
|
|
47
|
-
VueUiDonut: e(() => import("./vue-ui-donut-
|
|
48
|
-
VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-
|
|
49
|
-
VueUiGalaxy: e(() => import("./vue-ui-galaxy-
|
|
50
|
-
VueUiGauge: e(() => import("./vue-ui-gauge-
|
|
51
|
-
VueUiHeatmap: e(() => import("./vue-ui-heatmap-
|
|
52
|
-
VueUiKpi: e(() => import("./vue-ui-kpi-
|
|
53
|
-
VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-
|
|
54
|
-
VueUiMolecule: e(() => import("./vue-ui-molecule-
|
|
55
|
-
VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-
|
|
56
|
-
VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-
|
|
57
|
-
VueUiOnion: e(() => import("./vue-ui-onion-
|
|
58
|
-
VueUiQuadrant: e(() => import("./vue-ui-quadrant-
|
|
59
|
-
VueUiRadar: e(() => import("./vue-ui-radar-
|
|
60
|
-
VueUiRating: e(() => import("./vue-ui-rating-
|
|
61
|
-
VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-
|
|
62
|
-
VueUiRings: e(() => import("./vue-ui-rings-
|
|
63
|
-
VueUiScatter: e(() => import("./vue-ui-scatter-
|
|
64
|
-
VueUiScreenshot: e(() => import("./vue-ui-screenshot-
|
|
65
|
-
VueUiSkeleton: e(() => import("./vue-ui-skeleton-
|
|
66
|
-
VueUiSmiley: e(() => import("./vue-ui-smiley-
|
|
67
|
-
VueUiSparkbar: e(() => import("./vue-ui-sparkbar-
|
|
68
|
-
VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-
|
|
69
|
-
VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-
|
|
70
|
-
VueUiSparkline: e(() => import("./vue-ui-sparkline-
|
|
71
|
-
VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-
|
|
72
|
-
VueUiTable: e(() => import("./vue-ui-table-
|
|
73
|
-
VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-
|
|
74
|
-
VueUiThermometer: e(() => import("./vue-ui-thermometer-
|
|
75
|
-
VueUiTiremarks: e(() => import("./vue-ui-tiremarks-
|
|
76
|
-
VueUiTreemap: e(() => import("./vue-ui-treemap-
|
|
77
|
-
VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-
|
|
78
|
-
VueUiWaffle: e(() => import("./vue-ui-waffle-
|
|
79
|
-
VueUiWheel: e(() => import("./vue-ui-wheel-
|
|
80
|
-
VueUiXy: e(() => import("./vue-ui-xy-
|
|
81
|
-
VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-
|
|
82
|
-
VueUiAccordion: e(() => import("./vue-ui-accordion-
|
|
83
|
-
VueUiQuickChart: e(() => import("./vue-ui-quick-chart-
|
|
84
|
-
VueUiCursor: e(() => import("./vue-ui-cursor-
|
|
85
|
-
VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-
|
|
86
|
-
VueUiStripPlot: e(() => import("./vue-ui-strip-plot-
|
|
87
|
-
VueUiDumbbell: e(() => import("./vue-ui-dumbbell-
|
|
88
|
-
VueUiWordCloud: e(() => import("./vue-ui-word-cloud-
|
|
89
|
-
VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-
|
|
90
|
-
VueUiFlow: e(() => import("./vue-ui-flow-
|
|
91
|
-
VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-
|
|
92
|
-
VueUiTimer: e(() => import("./vue-ui-timer-
|
|
93
|
-
VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-
|
|
94
|
-
VueUiGizmo: e(() => import("./vue-ui-gizmo-
|
|
95
|
-
VueUiStackbar: e(() => import("./vue-ui-stackbar-
|
|
96
|
-
VueUiBullet: e(() => import("./vue-ui-bullet-
|
|
38
|
+
setup(N, { expose: G, emit: M }) {
|
|
39
|
+
const n = N, { component: W, dataset: X, config: Q } = J(n), u = {
|
|
40
|
+
VueUi3dBar: e(() => import("./vue-ui-3d-bar-BlEG4n0o.js")),
|
|
41
|
+
VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-CNWM-Vso.js")),
|
|
42
|
+
VueUiAnnotator: e(() => import("./vue-ui-annotator-BZe3neqk.js")),
|
|
43
|
+
VueUiCandlestick: e(() => import("./vue-ui-candlestick-w_RkjrEB.js")),
|
|
44
|
+
VueUiChestnut: e(() => import("./vue-ui-chestnut-C9kaPI5L.js")),
|
|
45
|
+
VueUiDashboard: e(() => import("./vue-ui-dashboard-B3cTzTF7.js")),
|
|
46
|
+
VueUiDigits: e(() => import("./vue-ui-digits-CHI-rZzx.js")),
|
|
47
|
+
VueUiDonut: e(() => import("./vue-ui-donut-D4w732yO.js")),
|
|
48
|
+
VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-BcEI-XQ5.js")),
|
|
49
|
+
VueUiGalaxy: e(() => import("./vue-ui-galaxy-CzBNCWvB.js")),
|
|
50
|
+
VueUiGauge: e(() => import("./vue-ui-gauge-BLCrA4Z3.js")),
|
|
51
|
+
VueUiHeatmap: e(() => import("./vue-ui-heatmap-GxECNV1K.js")),
|
|
52
|
+
VueUiKpi: e(() => import("./vue-ui-kpi-BeI-Uc3G.js")),
|
|
53
|
+
VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-Cq5NzQke.js")),
|
|
54
|
+
VueUiMolecule: e(() => import("./vue-ui-molecule-BYnnHVSs.js")),
|
|
55
|
+
VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-DSph-BzR.js")),
|
|
56
|
+
VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-D-FKanpn.js")),
|
|
57
|
+
VueUiOnion: e(() => import("./vue-ui-onion-DNdKU_tZ.js")),
|
|
58
|
+
VueUiQuadrant: e(() => import("./vue-ui-quadrant-CK8lzvET.js")),
|
|
59
|
+
VueUiRadar: e(() => import("./vue-ui-radar-CvklQTxx.js")),
|
|
60
|
+
VueUiRating: e(() => import("./vue-ui-rating-DkWhtX7L.js")),
|
|
61
|
+
VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-Bt2kayAM.js")),
|
|
62
|
+
VueUiRings: e(() => import("./vue-ui-rings-CHIqJDps.js")),
|
|
63
|
+
VueUiScatter: e(() => import("./vue-ui-scatter-B-L_xBjF.js")),
|
|
64
|
+
VueUiScreenshot: e(() => import("./vue-ui-screenshot-BNGt_Ndj.js")),
|
|
65
|
+
VueUiSkeleton: e(() => import("./vue-ui-skeleton-5qiu2vOB.js")),
|
|
66
|
+
VueUiSmiley: e(() => import("./vue-ui-smiley-iWOs5GqV.js")),
|
|
67
|
+
VueUiSparkbar: e(() => import("./vue-ui-sparkbar-DpxQR2gu.js")),
|
|
68
|
+
VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-D4--jFQc.js")),
|
|
69
|
+
VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-Cxjoa6ky.js")),
|
|
70
|
+
VueUiSparkline: e(() => import("./vue-ui-sparkline-3Q4hEM7p.js")),
|
|
71
|
+
VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-B59Bw7Az.js")),
|
|
72
|
+
VueUiTable: e(() => import("./vue-ui-table-CgS1GU4Z.js")),
|
|
73
|
+
VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-fBE66WCN.js")),
|
|
74
|
+
VueUiThermometer: e(() => import("./vue-ui-thermometer-tGfJAwyO.js")),
|
|
75
|
+
VueUiTiremarks: e(() => import("./vue-ui-tiremarks-CGlojo_b.js")),
|
|
76
|
+
VueUiTreemap: e(() => import("./vue-ui-treemap-DufeK33k.js")),
|
|
77
|
+
VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-Dmo8wnx8.js")),
|
|
78
|
+
VueUiWaffle: e(() => import("./vue-ui-waffle-BZxjBRnB.js")),
|
|
79
|
+
VueUiWheel: e(() => import("./vue-ui-wheel-BeRyRbt8.js")),
|
|
80
|
+
VueUiXy: e(() => import("./vue-ui-xy-DFzFITJ1.js")),
|
|
81
|
+
VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-DgvQBYXr.js")),
|
|
82
|
+
VueUiAccordion: e(() => import("./vue-ui-accordion-D6Uwxwl0.js")),
|
|
83
|
+
VueUiQuickChart: e(() => import("./vue-ui-quick-chart-C7chIyP1.js")),
|
|
84
|
+
VueUiCursor: e(() => import("./vue-ui-cursor-a11eeJlM.js")),
|
|
85
|
+
VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-MzGiDFGX.js")),
|
|
86
|
+
VueUiStripPlot: e(() => import("./vue-ui-strip-plot-BgT1J5OY.js")),
|
|
87
|
+
VueUiDumbbell: e(() => import("./vue-ui-dumbbell-CRB1jDkp.js")),
|
|
88
|
+
VueUiWordCloud: e(() => import("./vue-ui-word-cloud-Bk0QzFwd.js")),
|
|
89
|
+
VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-DWf89_69.js")),
|
|
90
|
+
VueUiFlow: e(() => import("./vue-ui-flow-CO_kwR_-.js")),
|
|
91
|
+
VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-C08Mm2-q.js")),
|
|
92
|
+
VueUiTimer: e(() => import("./vue-ui-timer-C2kPkRBe.js")),
|
|
93
|
+
VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-8bz5Gw6i.js")),
|
|
94
|
+
VueUiGizmo: e(() => import("./vue-ui-gizmo-CbALdGSE.js")),
|
|
95
|
+
VueUiStackbar: e(() => import("./vue-ui-stackbar-BTegNdY4.js")),
|
|
96
|
+
VueUiBullet: e(() => import("./vue-ui-bullet-O15K1or8.js")),
|
|
97
|
+
VueUiFunnel: e(() => import("./vue-ui-funnel-BvLLEW0u.js"))
|
|
97
98
|
}, $ = {
|
|
98
99
|
VueUi3dBar: ["config", "dataset"],
|
|
99
100
|
VueUiAgePyramid: ["config", "dataset"],
|
|
@@ -151,8 +152,9 @@ const Vt = {
|
|
|
151
152
|
VueUiCarouselTable: ["config", "dataset"],
|
|
152
153
|
VueUiGizmo: ["config", "dataset"],
|
|
153
154
|
VueUiStackbar: ["config", "dataset"],
|
|
154
|
-
VueUiBullet: ["config", "dataset"]
|
|
155
|
-
|
|
155
|
+
VueUiBullet: ["config", "dataset"],
|
|
156
|
+
VueUiFunnel: ["config", "dataset"]
|
|
157
|
+
}, g = c(() => !u[n.component]), j = c(() => u[n.component] || null), i = o(null), z = c(() => {
|
|
156
158
|
const t = $[n.component] || [], a = {};
|
|
157
159
|
return t.includes("config") && (a.config = Q.value), t.includes("dataset") && (a.dataset = X.value), a;
|
|
158
160
|
}), p = o(() => null), m = o(() => null), d = o(() => null), V = o(() => null), U = o(() => null), f = o(() => null), v = o(() => null), h = o(() => null), k = o(() => null), S = o(() => null), b = o(() => null), y = o(() => null), T = o(() => null), A = o(() => null), C = o(() => null), P = o(() => null), D = o(() => null), x = o(() => null), L = o(() => null), _ = o(() => null), B = o(() => null), I = o(() => null), E = o(() => null), H = o(() => null);
|
|
@@ -165,7 +167,7 @@ The provided component "${n.component}" does not exist. Check the spelling.
|
|
|
165
167
|
|
|
166
168
|
Available components:
|
|
167
169
|
|
|
168
|
-
${Object.keys(
|
|
170
|
+
${Object.keys(u).map((t) => `. ${t}
|
|
169
171
|
`).join("")}`);
|
|
170
172
|
}), O(i, async (t) => {
|
|
171
173
|
t && (t.generatePdf && (p.value = t.generatePdf), t.generateImage && (d.value = t.generateImage), t.generateCsv && (m.value = t.generateCsv), t.getItemsPositions && (V.value = t.getItemsPositions), t.toggleReadonly && (U.value = t.toggleReadonly), t.shoot && (f.value = t.shoot), t.close && (v.value = t.close), t.restoreOrder && (h.value = t.restoreOrder), t.recalculateHeight && (k.value = t.recalculateHeight), t.toggleLock && (S.value = t.toggleLock), t.toggleTable && (b.value = t.toggleTable), t.toggleLabels && (y.value = t.toggleLabels), t.toggleSort && (T.value = t.toggleSort), t.toggleStack && (A.value = t.toggleStack), t.toggleTooltip && (C.value = t.toggleTooltip), t.start && (P.value = t.start), t.pause && (D.value = t.pause), t.reset && (x.value = t.reset), t.restart && (L.value = t.restart), t.lap && (_.value = t.lap), t.toggleAnimation && (B.value = t.toggleAnimation), t.pauseAnimation && (I.value = t.pauseAnimation), t.resumeAnimation && (E.value = t.resumeAnimation), t.toggleAnnotator && (H.value = t.toggleAnnotator));
|
|
@@ -198,8 +200,8 @@ ${Object.keys(s).map((t) => `. ${t}
|
|
|
198
200
|
"resumeAnimation",
|
|
199
201
|
"toggleAnnotator"
|
|
200
202
|
], a = {};
|
|
201
|
-
return t.forEach((
|
|
202
|
-
a[
|
|
203
|
+
return t.forEach((s) => {
|
|
204
|
+
a[s] = (...l) => M(s, ...l);
|
|
203
205
|
}), a;
|
|
204
206
|
}, r = Z([]);
|
|
205
207
|
return O([r, i], () => {
|
|
@@ -234,7 +236,7 @@ ${Object.keys(s).map((t) => `. ${t}
|
|
|
234
236
|
resumeAnimation: E,
|
|
235
237
|
toggleAnimation: B,
|
|
236
238
|
toggleAnnotator: H
|
|
237
|
-
}), (t, a) => g.value ? (
|
|
239
|
+
}), (t, a) => g.value ? (F(), R("div", Vt, [
|
|
238
240
|
w("div", Ut, [
|
|
239
241
|
tt(dt, {
|
|
240
242
|
name: "moodFlat",
|
|
@@ -242,12 +244,12 @@ ${Object.keys(s).map((t) => `. ${t}
|
|
|
242
244
|
})
|
|
243
245
|
]),
|
|
244
246
|
et(' The provided component "' + ot(it(W)) + '" does not exist ', 1)
|
|
245
|
-
])) : (
|
|
247
|
+
])) : (F(), at(nt(j.value), rt({
|
|
246
248
|
key: 1,
|
|
247
249
|
ref_key: "currentComponentRef",
|
|
248
250
|
ref: i
|
|
249
|
-
}, z.value, lt(K())),
|
|
250
|
-
|
|
251
|
+
}, z.value, lt(K())), ut({ _: 2 }, [
|
|
252
|
+
st(t.$slots, (s, l) => ({
|
|
251
253
|
name: l,
|
|
252
254
|
fn: ct((q) => [
|
|
253
255
|
gt(t.$slots, l, pt(mt(q)))
|
package/dist/vue-data-ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const e=require("./index-BtqOSPWK.cjs");exports.Arrow=e.Arrow;exports.VueDataUi=e.VueDataUi;exports.VueUi3dBar=e.VueUi3dBar;exports.VueUiAccordion=e.VueUiAccordion;exports.VueUiAgePyramid=e.VueUiAgePyramid;exports.VueUiAnnotator=e.VueUiAnnotator;exports.VueUiBullet=e.VueUiBullet;exports.VueUiCandlestick=e.VueUiCandlestick;exports.VueUiCarouselTable=e.VueUiCarouselTable;exports.VueUiChestnut=e.VueUiChestnut;exports.VueUiCursor=e.VueUiCursor;exports.VueUiDashboard=e.VueUiDashboard;exports.VueUiDigits=e.VueUiDigits;exports.VueUiDonut=e.VueUiDonut;exports.VueUiDonutEvolution=e.VueUiDonutEvolution;exports.VueUiDumbbell=e.VueUiDumbbell;exports.VueUiFlow=e.VueUiFlow;exports.VueUiFunnel=e.VueUiFunnel;exports.VueUiGalaxy=e.VueUiGalaxy;exports.VueUiGauge=e.VueUiGauge;exports.VueUiGizmo=e.VueUiGizmo;exports.VueUiHeatmap=e.VueUiHeatmap;exports.VueUiIcon=e.VueUiIcon;exports.VueUiKpi=e.VueUiKpi;exports.VueUiMiniLoader=e.VueUiMiniLoader;exports.VueUiMolecule=e.VueUiMolecule;exports.VueUiMoodRadar=e.VueUiMoodRadar;exports.VueUiNestedDonuts=e.VueUiNestedDonuts;exports.VueUiOnion=e.VueUiOnion;exports.VueUiParallelCoordinatePlot=e.VueUiParallelCoordinatePlot;exports.VueUiQuadrant=e.VueUiQuadrant;exports.VueUiQuickChart=e.VueUiQuickChart;exports.VueUiRadar=e.VueUiRadar;exports.VueUiRating=e.VueUiRating;exports.VueUiRelationCircle=e.VueUiRelationCircle;exports.VueUiRings=e.VueUiRings;exports.VueUiScatter=e.VueUiScatter;exports.VueUiScreenshot=e.VueUiScreenshot;exports.VueUiSkeleton=e.VueUiSkeleton;exports.VueUiSmiley=e.VueUiSmiley;exports.VueUiSparkHistogram=e.VueUiSparkHistogram;exports.VueUiSparkStackbar=e.VueUiSparkStackbar;exports.VueUiSparkTrend=e.VueUiSparkTrend;exports.VueUiSparkbar=e.VueUiSparkbar;exports.VueUiSparkgauge=e.VueUiSparkgauge;exports.VueUiSparkline=e.VueUiSparkline;exports.VueUiStackbar=e.VueUiStackbar;exports.VueUiStripPlot=e.VueUiStripPlot;exports.VueUiTable=e.VueUiTable;exports.VueUiTableHeatmap=e.VueUiTableHeatmap;exports.VueUiTableSparkline=e.VueUiTableSparkline;exports.VueUiThermometer=e.VueUiThermometer;exports.VueUiTimer=e.VueUiTimer;exports.VueUiTiremarks=e.VueUiTiremarks;exports.VueUiTreemap=e.VueUiTreemap;exports.VueUiVerticalBar=e.VueUiVerticalBar;exports.VueUiWaffle=e.VueUiWaffle;exports.VueUiWheel=e.VueUiWheel;exports.VueUiWordCloud=e.VueUiWordCloud;exports.VueUiXy=e.VueUiXy;exports.VueUiXyCanvas=e.VueUiXyCanvas;exports.createWordCloudDatasetFromPlainText=e.createWordCloudDatasetFromPlainText;exports.getPalette=e.getPalette;exports.getThemeConfig=e.getThemeConfig;exports.getVueDataUiConfig=e.getVueDataUiConfig;
|
package/dist/vue-data-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { a8 as s, a9 as u, aa as V, ab as U, ac as r, ad as t, b3 as o, ae as l, b0 as n, af as b, ag as d, ah as m, ai as p, aj as S, ak as c, al as g, am as k,
|
|
2
|
+
import { a8 as s, a9 as u, aa as V, ab as U, ac as r, ad as t, b3 as o, ae as l, b0 as n, af as b, ag as d, ah as m, ai as p, aj as S, ak as c, al as g, am as k, b4 as C, an as T, ao as D, b1 as h, ap as P, aq as f, ar as y, as as R, at as A, au as W, av as x, aw as B, ax as F, ay as G, az as H, aA as M, aB as v, aC as w, aD as Q, aE as X, aF as z, aG as E, aH as I, aI as K, aJ as L, aK as N, aL as O, aM as j, aN as q, b2 as J, aO as Y, aP as Z, aQ as _, aR as $, aS as aa, aT as ea, aU as ia, aV as sa, aW as ua, aX as Va, aY as Ua, aZ as ra, a_ as ta, a$ as oa, a1 as la, b5 as na, b6 as ba, b7 as da } from "./index-CpjF4-PU.js";
|
|
3
3
|
export {
|
|
4
4
|
s as Arrow,
|
|
5
5
|
u as VueDataUi,
|
|
@@ -18,51 +18,52 @@ export {
|
|
|
18
18
|
c as VueUiDonutEvolution,
|
|
19
19
|
g as VueUiDumbbell,
|
|
20
20
|
k as VueUiFlow,
|
|
21
|
-
C as
|
|
22
|
-
T as
|
|
23
|
-
D as
|
|
24
|
-
h as
|
|
25
|
-
P as
|
|
26
|
-
f as
|
|
27
|
-
y as
|
|
28
|
-
R as
|
|
29
|
-
A as
|
|
30
|
-
W as
|
|
31
|
-
x as
|
|
32
|
-
B as
|
|
21
|
+
C as VueUiFunnel,
|
|
22
|
+
T as VueUiGalaxy,
|
|
23
|
+
D as VueUiGauge,
|
|
24
|
+
h as VueUiGizmo,
|
|
25
|
+
P as VueUiHeatmap,
|
|
26
|
+
f as VueUiIcon,
|
|
27
|
+
y as VueUiKpi,
|
|
28
|
+
R as VueUiMiniLoader,
|
|
29
|
+
A as VueUiMolecule,
|
|
30
|
+
W as VueUiMoodRadar,
|
|
31
|
+
x as VueUiNestedDonuts,
|
|
32
|
+
B as VueUiOnion,
|
|
33
|
+
F as VueUiParallelCoordinatePlot,
|
|
33
34
|
G as VueUiQuadrant,
|
|
34
35
|
H as VueUiQuickChart,
|
|
35
36
|
M as VueUiRadar,
|
|
36
37
|
v as VueUiRating,
|
|
37
38
|
w as VueUiRelationCircle,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
39
|
+
Q as VueUiRings,
|
|
40
|
+
X as VueUiScatter,
|
|
41
|
+
z as VueUiScreenshot,
|
|
42
|
+
E as VueUiSkeleton,
|
|
43
|
+
I as VueUiSmiley,
|
|
44
|
+
K as VueUiSparkHistogram,
|
|
45
|
+
L as VueUiSparkStackbar,
|
|
46
|
+
N as VueUiSparkTrend,
|
|
47
|
+
O as VueUiSparkbar,
|
|
48
|
+
j as VueUiSparkgauge,
|
|
49
|
+
q as VueUiSparkline,
|
|
50
|
+
J as VueUiStackbar,
|
|
51
|
+
Y as VueUiStripPlot,
|
|
52
|
+
Z as VueUiTable,
|
|
53
|
+
_ as VueUiTableHeatmap,
|
|
54
|
+
$ as VueUiTableSparkline,
|
|
55
|
+
aa as VueUiThermometer,
|
|
56
|
+
ea as VueUiTimer,
|
|
57
|
+
ia as VueUiTiremarks,
|
|
58
|
+
sa as VueUiTreemap,
|
|
59
|
+
ua as VueUiVerticalBar,
|
|
60
|
+
Va as VueUiWaffle,
|
|
61
|
+
Ua as VueUiWheel,
|
|
62
|
+
ra as VueUiWordCloud,
|
|
63
|
+
ta as VueUiXy,
|
|
64
|
+
oa as VueUiXyCanvas,
|
|
65
|
+
la as createWordCloudDatasetFromPlainText,
|
|
66
|
+
na as getPalette,
|
|
67
|
+
ba as getThemeConfig,
|
|
68
|
+
da as getVueDataUiConfig
|
|
68
69
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { computed as T, ref as S, watch as We, onMounted as Ge, openBlock as n, createElementBlock as i, normalizeClass as Ce, normalizeStyle as I, createBlock as V, createCommentVNode as y, unref as c, createSlots as Ve, withCtx as D, renderSlot as j, normalizeProps as Z, guardReactiveProps as q, createVNode as Ue, createElementVNode as u, Fragment as _, renderList as m, toDisplayString as P, createTextVNode as Ee, nextTick as He, pushScopeId as Ze, popScopeId as qe } from "vue";
|
|
2
|
-
import { u as Xe, c as Fe, t as Re, a as Ye, p as Q, b as Je, d as Ke, o as Qe, e as ee, g as ie, l as U, m as Me, f as z, X as et, s as g, h as te, i as le, j as Pe, k as O, n as oe, q as tt, r as lt } from "./index-
|
|
3
|
-
import { _ as ot } from "./Title-
|
|
4
|
-
import { u as st, U as at } from "./usePrinter-
|
|
5
|
-
import nt from "./vue-ui-skeleton-
|
|
6
|
-
import { D as rt } from "./DataTable-
|
|
7
|
-
import ut from "./vue-ui-accordion-
|
|
8
|
-
import { u as Se } from "./useNestedProp-
|
|
9
|
-
import { _ as it } from "./PackageVersion-
|
|
10
|
-
import { P as dt } from "./PenAndPaper-
|
|
2
|
+
import { u as Xe, c as Fe, t as Re, a as Ye, p as Q, b as Je, d as Ke, o as Qe, e as ee, g as ie, l as U, m as Me, f as z, X as et, s as g, h as te, i as le, j as Pe, k as O, n as oe, q as tt, r as lt } from "./index-CpjF4-PU.js";
|
|
3
|
+
import { _ as ot } from "./Title-D_ljAKoY.js";
|
|
4
|
+
import { u as st, U as at } from "./usePrinter-CZ0Ro0M3.js";
|
|
5
|
+
import nt from "./vue-ui-skeleton-5qiu2vOB.js";
|
|
6
|
+
import { D as rt } from "./DataTable-BmAybhqW.js";
|
|
7
|
+
import ut from "./vue-ui-accordion-D6Uwxwl0.js";
|
|
8
|
+
import { u as Se } from "./useNestedProp-DiDiQc6z.js";
|
|
9
|
+
import { _ as it } from "./PackageVersion-BRMtBck7.js";
|
|
10
|
+
import { P as dt } from "./PenAndPaper-u9Nkiu0T.js";
|
|
11
11
|
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const se = (E) => (Ze("data-v-558e9734"), E = E(), qe(), E), ht = ["id"], vt = {
|
|
13
13
|
key: 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BtqOSPWK.cjs"),ve=require("./Title-BJut0KCO.cjs"),te=require("./usePrinter-SEUTEAmF.cjs"),pe=require("./vue-ui-skeleton-CCo2ROV1.cjs"),fe=require("./DataTable-D-c7laSt.cjs"),ke=require("./vue-ui-accordion-iiUNHeV-.cjs"),le=require("./useNestedProp-C7FKZW2F.cjs"),me=require("./PackageVersion-C2JzxDlg.cjs"),ye=require("./PenAndPaper-Bur5hR1K.cjs"),ge=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),L=N=>(e.pushScopeId("data-v-558e9734"),N=N(),e.popScopeId(),N),$e=["id"],_e={key:1,style:"width:100%;background:transparent"},Be=["xmlns","viewBox"],xe=["id"],be=["stop-color"],Ce=["stop-color"],Ee=["id"],we=["stop-color"],Ne=["stop-color"],Ve=["id"],Fe=["stop-color"],Se=["stop-color"],Me=["id"],Pe=["stop-color"],Oe=["stop-color"],Le=["stop-color"],De={key:0},ze=["id"],Te=["stop-color"],je=["stop-color"],Ae=["id"],Ie=["stop-color"],We=["stop-color"],Ge=["id"],He=["stop-color"],qe=["stop-color"],Ue=["id"],Xe=L(()=>e.createElementVNode("stop",{offset:"0%","stop-color":"#FFFFFF"},null,-1)),Re=L(()=>e.createElementVNode("stop",{offset:"100%","stop-color":"#FFFFFF33"},null,-1)),Ze=[Xe,Re],Ye=["x","y","font-size","font-weight","fill"],Je=["x","y"],Ke=["d","stroke"],Qe=["d","stroke"],et={key:3},tt={key:0},lt=["stroke-dasharray","d","stroke","stroke-width"],ot=["stroke-dasharray","d","stroke","stroke-width"],nt=["stroke-dasharray","d","stroke","stroke-width"],at=["stroke-dasharray","d","stroke","stroke-width"],rt={key:1},st=["d","stroke","stroke-width","fill"],ut=["d","stroke","stroke-width","fill"],it=["d","stroke","stroke-width","fill"],ct={key:2},dt=["d","fill","onMouseenter","onClick"],ht=["d","fill","onMouseenter","onClick"],vt=["d","fill","onMouseenter","onClick"],pt=["d","onMouseenter","onClick"],ft=["d"],kt=["d","stroke"],mt=["onClick"],yt=["stroke","d"],gt=["cx","cy","fill","stroke"],$t=["x","y","width","height"],_t={key:1},Bt=["d","stroke"],xt=["d","fill","stroke"],bt=["id"],Ct=["stop-color"],Et=L(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),wt=["stop-color"],Nt=["cx","cy","fill"],Vt=["cx","cy","fill"],Ft={key:0},St=["text-anchor","x","y","fill","font-size"],Mt=["text-anchor","x","y","fill","font-size"],Pt={key:2},Ot=["d","fill","stroke"],Lt={key:4},Dt={key:0},zt=["stroke-dasharray","d","stroke","stroke-width"],Tt=["stroke-dasharray","d","stroke","stroke-width"],jt=["stroke-dasharray","d","stroke","stroke-width"],At=["stroke-dasharray","d","stroke","stroke-width"],It=["d","stroke","stroke-width","fill"],Wt=["d","stroke","stroke-width","fill"],Gt={key:1},Ht=["onClick"],qt=["id"],Ut=["stop-color"],Xt=["stop-color"],Rt=["id"],Zt=["stop-color"],Yt=["stop-color"],Jt=["stop-color"],Kt=["stop-color"],Qt=["stop-color"],el=["onMouseenter","onClick","d","fill"],tl=["onMouseenter","onClick","d"],ll=["onMouseenter","onClick","d","fill"],ol=["onClick"],nl=["stroke","d"],al=["cx","cy","fill","stroke"],rl=["x","y","width","height"],sl={key:1},ul=["d","stroke"],il=["d","fill","stroke"],cl=["id"],dl=["stop-color"],hl=L(()=>e.createElementVNode("stop",{offset:"77%","stop-color":"#FFFFFF20"},null,-1)),vl=["stop-color"],pl=["cx","cy","fill"],fl=["cx","cy","fill"],kl={key:0},ml=["text-anchor","x","y","fill","font-size"],yl=["text-anchor","x","y","fill","font-size"],gl={key:2},$l=["d","fill","stroke"],_l={key:4,class:"vue-data-ui-watermark"},Bl={key:6,ref:"source",dir:"auto"},xl=["innerHTML"],bl={__name:"vue-ui-3d-bar",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:["selectDatapoint"],setup(N,{expose:oe,emit:F}){const f=N,{vue_ui_3d_bar:ne}=r.useConfig(),S=e.computed(()=>!!f.dataset&&Object.keys(f.dataset).length),k=e.ref(r.createUid()),ae=e.ref(null),D=e.ref(null),b=e.ref(!1),A=e.ref(0),I=e.ref(0),l=e.computed({get:()=>W(),set:s=>s});function W(){const s=le.useNestedProp({userConfig:f.config,defaultConfig:ne});return s.theme?{...le.useNestedProp({userConfig:r.themes.vue_ui_3d_bar[s.theme]||f.config,defaultConfig:s}),customPalette:r.themePalettes[s.theme]||r.palette}:s}e.watch(()=>f.config,s=>{l.value=W(),X(),A.value+=1,I.value+=1},{deep:!0});const{isPrinting:G,isImaging:H,generatePdf:q,generateImage:U}=te.usePrinter({elementId:`3d_bar_${k.value}`,fileName:l.value.style.chart.title.text||"vue-ui-3d-bar"}),re=e.computed(()=>r.convertCustomPalette(l.value.customPalette)),M=e.ref({showTable:l.value.table.show}),$=e.computed(()=>f.dataset.series&&f.dataset.series.length),n=e.computed(()=>({height:l.value.style.chart.box.dimensions.height,width:l.value.style.chart.box.dimensions.width,absoluteWidth:l.value.style.chart.box.dimensions.width*($.value?2:1),top:l.value.style.chart.box.dimensions.top,bottom:l.value.style.chart.box.dimensions.bottom,left:l.value.style.chart.box.dimensions.left,right:l.value.style.chart.box.dimensions.right,perspective:l.value.style.chart.box.dimensions.perspective})),g=e.computed(()=>{if($.value){const s=f.dataset.series.map(o=>o.value||0).reduce((o,u)=>o+u,0),a=f.dataset.series.map((o,u)=>({...o,id:r.createUid(),proportion:(o.value||0)/s,color:r.convertColorToHex(o.color)||re.value[u]||r.palette[u]||r.palette[u%r.palette.length],breakdown:o.breakdown?o.breakdown.sort((i,p)=>p.value-i.value):null})).sort((o,u)=>u.value-o.value),t=[];let c=0;for(let o=0;o<a.length;o+=1)t.push({...a[o],fill:se(c,a[o].proportion,a[o].breakdown,a[o].color)}),c+=a[o].proportion;return t}return null}),B=e.computed(()=>({right:`M${n.value.width/2},${n.value.top} ${n.value.width-n.value.right}, ${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,left:`M${n.value.width/2},${n.value.top} ${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective} ${n.value.width/2},${n.value.height-n.value.bottom}`,side:`M${n.value.width/2},${n.value.height-n.value.bottom} ${n.value.width/2},${n.value.top+n.value.perspective*2}`,topSides:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.width/2},${n.value.top+n.value.perspective*2} ${n.value.width-n.value.right},${n.value.top+n.value.perspective}`,tubeTop:`M${n.value.left},${n.value.top+n.value.perspective} C ${n.value.left},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top-n.value.perspective/3} ${n.value.width-n.value.right},${n.value.top+n.value.perspective} C ${n.value.width-n.value.right},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective*2.3} ${n.value.left},${n.value.top+n.value.perspective}`,tubeLeft:`M${n.value.left},${n.value.top+n.value.perspective} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`,tubeRight:`M${n.value.width-n.value.right},${n.value.top+n.value.perspective} ${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective}`,tubeBottom:`M${n.value.width-n.value.right},${n.value.height-n.value.bottom-n.value.perspective} C ${n.value.width-n.value.right},${n.value.height} ${n.value.left},${n.value.height} ${n.value.left},${n.value.height-n.value.bottom-n.value.perspective}`})),E=e.ref(l.value.style.chart.animation.use?0:f.dataset.percentage);e.onMounted(()=>{X();let s=0,a=l.value.style.chart.animation.speed,t=.005*l.value.style.chart.animation.acceleration;function c(){E.value+=a+s,s+=t,E.value<f.dataset.percentage?requestAnimationFrame(c):E.value=f.dataset.percentage}l.value.style.chart.animation.use&&(E.value=0,c())});function X(){r.objectIsEmpty(f.dataset)?r.error({componentName:"VueUi3dBar",type:"dataset"}):f.dataset.series?f.dataset.series.forEach((s,a)=>{r.getMissingDatasetAttributes({datasetObject:s,requiredAttributes:["name","value"]}).forEach(t=>{r.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:t,index:a})}),s.breakdown&&s.breakdown.forEach((t,c)=>{r.getMissingDatasetAttributes({datasetObject:t,requiredAttributes:["name","value"]}).forEach(o=>{r.error({componentName:"VueUi3dBar",type:"datasetSerieAttribute",property:o,index:`${a} - ${c}`})})})}):r.getMissingDatasetAttributes({datasetObject:f.dataset,requiredAttributes:["percentage"]}).forEach(s=>{r.error({componentName:"VueUi3dBar",type:"datasetAttribute",property:s})})}function se(s,a,t,c){const o=n.value.height-n.value.bottom-n.value.top-n.value.perspective*2,{width:u,height:i,bottom:p,right:y,left:h,perspective:v}=n.value,d=p+o*s,j=i-d-v-o*a/2,ce=j>n.value.height/2?"top":"bottom",J=64,de=!!t;let K=null,Q=null;return de&&(t=t.map((ee,he)=>({...ee,value:ee.value||0,color:r.lightenHexColor(c,he/t.length)})),K=r.makeDonut({series:t},u+n.value.absoluteWidth/4-14,ce==="top"?j-J:j+J,28,28,1.99999,2,1,360,105.25,14),Q=r.makeDonut({series:t},u-y+20,i-d-v-o*a/2,6,6,1.99999,2,1,360,105.25,6)),{donut:K,miniDonut:Q,sidePointer:{x:u-y,y:i-d-v-o*a/2,topY:i-d-v-o*a,height:o*a},apexBottom:{y:i-d,x:u/2},apexTop:{y:i-d-o*a,x:u/2},right:`M${u/2},${i-d} ${u/2},${i-d-o*a} ${u-y},${i-d-v-o*a} ${u-y},${i-d-v}Z`,left:`M${u/2},${i-d} ${u/2},${i-d-o*a} ${h}, ${i-d-v-o*a} ${h},${i-d-v}Z`,liningTop:`M${h},${i-d-v-o*a} ${u/2},${i-d-o*a} ${u-y},${i-d-v-o*a}`,liningTopShade:`M${h},${i-d-v-o*a-.5} ${u/2},${i-d-o*a-.5} ${u-y},${i-d-v-o*a-.5}`,top:`M${u/2},${i-d-o*a} ${h},${i-d-v-o*a} ${u/2},${i-d-v*2-o*a} ${u-y},${i-d-v-o*a} Z`,tubeTop:`M${h},${i-d-o*a-v} C ${h},${i-d-o*a-v*2.5} ${u-y},${i-d-o*a-v*2.5} ${u-y},${i-d-o*a-v} C ${u-y},${i-d-o*a+v/2} ${h},${i-d-o*a+v/2} ${h},${i-d-o*a-v}`,bottomTubeTop:`M ${u-y-.5},${i-d-v} C ${u-y-.5},${i-d+v/2} ${h},${i-d+v/2} ${h+.5},${i-d-v}`,tubeBody:`M
|
|
2
2
|
${h},${i-d-o*a-v}
|
|
3
3
|
C ${h},${i-d-o*a+v/2}
|
|
4
4
|
${u-y},${i-d-o*a+v/2}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as y, computed as s, ref as r, onMounted as b, watch as _, openBlock as u, createElementBlock as v, createElementVNode as n, normalizeClass as $, normalizeStyle as p, renderSlot as c, normalizeProps as i, mergeProps as O, createBlock as D, createCommentVNode as N, guardReactiveProps as m } from "vue";
|
|
2
|
-
import w from "./BaseIcon-
|
|
3
|
-
import { u as x } from "./useNestedProp-
|
|
4
|
-
import { u as B, c as I } from "./index-
|
|
2
|
+
import w from "./BaseIcon-CeiDtKER.js";
|
|
3
|
+
import { u as x } from "./useNestedProp-DiDiQc6z.js";
|
|
4
|
+
import { u as B, c as I } from "./index-CpjF4-PU.js";
|
|
5
5
|
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const F = ["id"], P = {
|
|
7
7
|
key: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./BaseIcon-DeKj5tiF.cjs"),g=require("./useNestedProp-C7FKZW2F.cjs"),u=require("./index-BtqOSPWK.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=["id"],h={key:0,class:"vue-ui-accordion-arrow"},k={__name:"vue-ui-accordion",props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},setup(l){const c=l;e.useCssVars(r=>({"95f7c2e4":v.value}));const{vue_ui_accordion:d}=u.useConfig(),o=e.computed(()=>g.useNestedProp({userConfig:c.config,defaultConfig:d})),a=e.ref(o.value.open),i=e.ref(u.createUid()),t=e.ref(null),n=e.ref(0);e.onMounted(()=>{t.value.open=o.value.open}),e.watch(()=>o.value.open,r=>{t.value.open=r});function s(){(n.value>0||!o.value.open)&&(a.value=!a.value),n.value+=1}const v=e.computed(()=>`${o.value.maxHeight}px`);return(r,C)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("details",{id:`details_${i.value}`,ref_key:"details",ref:t,onToggle:s},[e.createElementVNode("summary",{class:e.normalizeClass({"vue-ui-accordion-headless":l.hideDetails})},[e.createElementVNode("div",{class:"vue-ui-accordion-head",style:e.normalizeStyle(`background:${o.value.head.backgroundColor};padding:${o.value.head.padding}; ${l.hideDetails?"height: 0px !important; padding: 0 !important;":""}`)},[l.hideDetails?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",h,[o.value.head.useArrowSlot?e.renderSlot(r.$slots,"arrow",e.normalizeProps(e.mergeProps({key:0},{backgroundColor:o.value.head.backgroundColor,color:o.value.head.color,iconColor:o.value.head.iconColor,isOpen:a.value})),void 0,!0):(e.openBlock(),e.createBlock(p.default,{key:1,name:"arrowRight",stroke:o.value.head.iconColor},null,8,["stroke"]))])),e.renderSlot(r.$slots,"title",e.normalizeProps(e.guardReactiveProps({color:o.value.head.color,isOpen:a.value})),void 0,!0)],4)],2)],40,m),e.createElementVNode("div",{class:"vue-ui-accordion-content",style:e.normalizeStyle(`background:${o.value.body.backgroundColor};color:${o.value.body.color}`)},[e.renderSlot(r.$slots,"content",e.normalizeProps(e.guardReactiveProps({backgroundColor:o.value.body.backgroundColor,color:o.value.body.color,isOpen:a.value})),void 0,!0)],4)]))}},y=f._export_sfc(k,[["__scopeId","data-v-28fc829c"]]);exports.default=y;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { computed as b, ref as v, watch as _e, onMounted as Ce, openBlock as i, createElementBlock as r, normalizeClass as re, normalizeStyle as ne, createBlock as L, createCommentVNode as y, unref as d, createSlots as $e, withCtx as p, renderSlot as f, normalizeProps as O, guardReactiveProps as P, createVNode as de, createElementVNode as n, Fragment as S, renderList as F, toDisplayString as w, createTextVNode as ve, nextTick as Te } from "vue";
|
|
2
|
-
import { u as Ae, c as Le, t as Se, o as ze, e as Ie, v as h, X as Oe, s as X, w as ye, i as k, f as _, x as Pe, y as Fe, q as Me, r as Ne } from "./index-
|
|
2
|
+
import { u as Ae, c as Le, t as Se, o as ze, e as Ie, v as h, X as Oe, s as X, w as ye, i as k, f as _, x as Pe, y as Fe, q as Me, r as Ne } from "./index-CpjF4-PU.js";
|
|
3
3
|
import { t as Re, u as De } from "./useResponsive-CoxXLe23.js";
|
|
4
|
-
import { _ as Ge } from "./Title-
|
|
5
|
-
import { u as Be, U as Ee } from "./usePrinter-
|
|
6
|
-
import { _ as We } from "./Tooltip-
|
|
7
|
-
import { D as Xe } from "./DataTable-
|
|
8
|
-
import Ue from "./vue-ui-skeleton-
|
|
9
|
-
import Ve from "./vue-ui-accordion-
|
|
10
|
-
import { u as he } from "./useNestedProp-
|
|
11
|
-
import { _ as Ye } from "./PackageVersion-
|
|
12
|
-
import { P as je } from "./PenAndPaper-
|
|
4
|
+
import { _ as Ge } from "./Title-D_ljAKoY.js";
|
|
5
|
+
import { u as Be, U as Ee } from "./usePrinter-CZ0Ro0M3.js";
|
|
6
|
+
import { _ as We } from "./Tooltip-Cy8PyEK7.js";
|
|
7
|
+
import { D as Xe } from "./DataTable-BmAybhqW.js";
|
|
8
|
+
import Ue from "./vue-ui-skeleton-5qiu2vOB.js";
|
|
9
|
+
import Ve from "./vue-ui-accordion-D6Uwxwl0.js";
|
|
10
|
+
import { u as he } from "./useNestedProp-DiDiQc6z.js";
|
|
11
|
+
import { _ as Ye } from "./PackageVersion-BRMtBck7.js";
|
|
12
|
+
import { P as je } from "./PenAndPaper-u9Nkiu0T.js";
|
|
13
13
|
import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const qe = ["id"], Je = ["xmlns", "viewBox"], Ke = ["id"], Qe = ["stop-color"], Ze = ["stop-color"], et = ["id"], tt = ["stop-color"], lt = ["stop-color"], at = ["x", "y", "width", "height", "fill", "rx"], ot = ["x", "y", "width", "height", "fill", "rx"], st = ["x", "y", "width", "height", "fill", "rx"], it = ["x", "y", "width", "height", "fill", "rx"], ut = { key: 0 }, rt = ["x", "y", "fill", "font-size", "font-weight"], nt = ["x", "y", "fill", "font-size", "font-weight"], dt = { key: 1 }, vt = ["x", "y", "font-size", "fill", "font-weight"], yt = { key: 2 }, ht = { key: 0 }, ft = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ct = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pt = ["x", "y", "font-size", "fill", "font-weight"], bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xt = ["x", "y", "font-size", "fill", "font-weight"], mt = ["x", "y", "font-size", "fill", "font-weight"], wt = ["x", "y", "width", "height", "fill", "onMouseover"], kt = {
|
|
15
15
|
key: 5,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-Yx-Iy-n8.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),ae=require("./Title-hDWoW1x0.cjs"),H=require("./usePrinter-DA6eJ-d8.cjs"),oe=require("./Tooltip-CLz1sK2U.cjs"),re=require("./DataTable-ClN04OBE.cjs"),se=require("./vue-ui-skeleton-8EAYuqbl.cjs"),ie=require("./vue-ui-accordion-BKaHbGc7.cjs"),X=require("./useNestedProp-BhXCOMBU.cjs"),ne=require("./PackageVersion-BReu3g8_.cjs"),ue=require("./PenAndPaper-C9MBduiw.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],ve=["xmlns","viewBox"],ye=["id"],he=["stop-color"],fe=["stop-color"],pe=["id"],ge=["stop-color"],be=["stop-color"],me=["x","y","width","height","fill","rx"],xe=["x","y","width","height","fill","rx"],ke=["x","y","width","height","fill","rx"],we=["x","y","width","height","fill","rx"],Ce={key:0},_e=["x","y","fill","font-size","font-weight"],Ne=["x","y","fill","font-size","font-weight"],Le={key:1},Te=["x","y","font-size","fill","font-weight"],Se={key:2},Be={key:0},Ae=["x1","x2","y1","y2","stroke","stroke-width"],$e=["x1","x2","y1","y2","stroke","stroke-width"],Ee=["x1","x2","y1","y2","stroke","stroke-width"],ze=["x","y","font-size","fill","font-weight"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Pe=["x","y","font-size","fill","font-weight"],Oe=["x","y","font-size","fill","font-weight"],Ie=["x","y","width","height","fill","onMouseover"],Fe={key:5,class:"vue-data-ui-watermark"},De={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:j}){const u=T,{vue_ui_age_pyramid:Y}=r.useConfig(),m=e.computed(()=>!!u.dataset&&u.dataset.length),c=e.ref(r.createUid()),J=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),S=e.ref(0),y=e.ref(null),B=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(0),z=e.ref(0),t=e.computed({get:()=>V(),set:l=>l});function V(){const l=X.useNestedProp({userConfig:u.config,defaultConfig:Y});return l.theme?{...X.useNestedProp({userConfig:r.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=V(),O(),E.value+=1,z.value+=1},{deep:!0});const P=e.ref(null);e.onMounted(()=>{O()});function O(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=W.throttle(()=>{const{width:i,height:a}=W.useResponsive({chart:y.value,title:t.value.style.title.text?B.value:null,source:A.value,noTitle:$.value});d.value.width=i,d.value.height=a});P.value=new ResizeObserver(l),P.value.observe(y.value.parentNode)}}const{isPrinting:I,isImaging:F,generatePdf:D,generateImage:M}=H.usePrinter({elementId:`vue-ui-age-pyramid_${c.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),K=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),d=e.ref({height:t.value.style.height,width:t.value.style.width}),s=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,i=t.value.style.layout.padding.left,a=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:i,right:a,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:i+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:i+l/2+t.value.style.layout.centerSlit.width}}}),Q=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),h=e.computed(()=>{const l=Z(g.value/5),i=[],a=[];for(let o=0;o<=5;o+=1){const n=l*o,U=l*(o-5);i.push({value:n,x:s.value.left+s.value.width/2+t.value.style.layout.centerSlit.width+n/g.value*s.value.leftChart.width}),a.push({value:Math.abs(U),x:s.value.left+s.value.width/2+U/g.value*s.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:a}});function Z(l){if(l===0)return 0;const a=10**Math.floor(Math.log10(Math.abs(l)));let o;return l<0,o=Math.round(l/a)*a,o}const g=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(i=>r.checkNaN(i))))),f=e.computed(()=>u.dataset.length),ee=e.computed(()=>u.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/g.value},right:{value:l[3],proportionToMax:l[3]/g.value}}))),p=e.computed(()=>ee.value.map((l,i)=>{const a=s.value.top+s.value.height/f.value*i,o=s.value.height/f.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:a,color:t.value.style.layout.bars.left.color,x:s.value.leftChart.right-l.left.proportionToMax*s.value.leftChart.width,width:r.checkNaN(l.left.proportionToMax*s.value.leftChart.width),height:o},right:{...l.right,y:a,color:t.value.style.layout.bars.right.color,x:s.value.rightChart.left,width:r.checkNaN(l.right.proportionToMax*s.value.rightChart.width),height:o}}})),N=e.ref(null);function te(l,i){x.value=l,N.value={datapoint:i,seriesIndex:l,series:p.value,config:t.value};const a=t.value.style.tooltip.customFormat;if(r.isFunction(a)&&r.functionReturnsString(()=>a({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value})))_.value=a({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value});else{let o="";const n=p.value[l];o+=`<div><b>${n.segment}</b></div>`,o+=`<div>${t.value.translations.age}: ${r.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,r.checkNaN(n.age),r.dataLabel({v:r.checkNaN(n.age)}),{datapoint:i,seriesIndex:l})}</div>`,o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,o+='<div style="display:flex; flex-direction:row;gap:12px">',o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value),r.dataLabel({v:r.checkNaN(n.right.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+="</div>",o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value)+r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.right.value)+r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+="</div>",_.value=`<div>${o}</div>`}C.value=!0}function R(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(n=>[n[0],n[1],n[2],n[3],n[2]+n[3]]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(i),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(o=>[o[0],o[1],o[2].toLocaleString(),o[3].toLocaleString(),(o[2]+o[3]).toLocaleString()]),a={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{head:l,body:i,config:a,colNames:l}}),b=e.ref(!1);function le(l){b.value=l,S.value+=1}function q(){v.value.showTable=!v.value.showTable}function G(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return j({generatePdf:D,generateCsv:R,generateImage:M,toggleTable:q,toggleTooltip:G,toggleAnnotator:L}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${b.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:y,id:`vue-ui-age-pyramid_${c.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ue.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:L},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:$,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:B,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ae._sfc_main,{key:`title_${E.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:J,key:`user_options_${S.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(F),isPrinting:e.unref(I),uid:c.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.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:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:le,onGeneratePdf:e.unref(D),onGenerateCsv:R,onGenerateImage:e.unref(M),onToggleTable:q,onToggleTooltip:G,onToggleAnnotator:L},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),m.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}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${d.value.height<=0?10:d.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ne._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.bars.left.color},null,8,he),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.layout.bars.left.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,fe)],8,ye),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.layout.bars.right.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,be)],8,pe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:e.unref(r.checkNaN)(a.left.width<=0?1e-4:a.left.width),height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,me),e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:a.left.width<=0?1e-4:a.left.width,height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:a.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,xe),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,ke),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:a.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,we)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Ce,[e.createElementVNode("text",{x:s.value.left,y:s.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.left.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.female),9,_e),e.createElementVNode("text",{x:s.value.right,y:s.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.right.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.male),9,Ne)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.value.centerX,y:s.value.top+s.value.height/f.value*o+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,a,e.unref(r.dataLabel)({v:a}),{datapoint:a,seriesIndex:o})),9,Te)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Se,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Be,[e.createElementVNode("line",{x1:h.value.right[0].x,x2:h.value.right.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ae),e.createElementVNode("line",{x1:h.value.left[0].x,x2:h.value.left.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,$e)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.right,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ee)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,ze)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.left,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ve)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,Pe)]))),256)),e.createElementVNode("text",{x:s.value.right,y:d.value.height,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.translation),9,Oe)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:s.value.left,y:s.value.top+s.value.height/f.value*o-t.value.style.layout.bars.gap/2,width:s.value.width<=0?1e-4:s.value.width,height:s.value.height/f.value<=0?1e-4:s.value.height/f.value,fill:x.value!==null&&x.value===o?e.unref(r.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>te(o,a),onMouseleave:i[0]||(i[0]=n=>{x.value=null,C.value=!1})},null,40,Ie)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(I)||e.unref(F)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:A,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(oe._sfc_main,{show:v.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:y.value,content:_.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),m.value?(e.openBlock(),e.createBlock(ie.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(re.DataTable,{key:`table_${z.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:i[1]||(i[1]=a=>v.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ce))}},Me=de._export_sfc(De,[["__scopeId","data-v-c061125a"]]);exports.default=Me;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BtqOSPWK.cjs"),W=require("./useResponsive-BJ7DTGpm.cjs"),ae=require("./Title-BJut0KCO.cjs"),H=require("./usePrinter-SEUTEAmF.cjs"),oe=require("./Tooltip-OW2BdLyv.cjs"),re=require("./DataTable-D-c7laSt.cjs"),se=require("./vue-ui-skeleton-CCo2ROV1.cjs"),ie=require("./vue-ui-accordion-iiUNHeV-.cjs"),X=require("./useNestedProp-C7FKZW2F.cjs"),ne=require("./PackageVersion-C2JzxDlg.cjs"),ue=require("./PenAndPaper-Bur5hR1K.cjs"),de=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ce=["id"],ve=["xmlns","viewBox"],ye=["id"],he=["stop-color"],fe=["stop-color"],pe=["id"],ge=["stop-color"],be=["stop-color"],me=["x","y","width","height","fill","rx"],xe=["x","y","width","height","fill","rx"],ke=["x","y","width","height","fill","rx"],we=["x","y","width","height","fill","rx"],Ce={key:0},_e=["x","y","fill","font-size","font-weight"],Ne=["x","y","fill","font-size","font-weight"],Le={key:1},Te=["x","y","font-size","fill","font-weight"],Se={key:2},Be={key:0},Ae=["x1","x2","y1","y2","stroke","stroke-width"],$e=["x1","x2","y1","y2","stroke","stroke-width"],Ee=["x1","x2","y1","y2","stroke","stroke-width"],ze=["x","y","font-size","fill","font-weight"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Pe=["x","y","font-size","fill","font-weight"],Oe=["x","y","font-size","fill","font-weight"],Ie=["x","y","width","height","fill","onMouseover"],Fe={key:5,class:"vue-data-ui-watermark"},De={__name:"vue-ui-age-pyramid",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(T,{expose:j}){const u=T,{vue_ui_age_pyramid:Y}=r.useConfig(),m=e.computed(()=>!!u.dataset&&u.dataset.length),c=e.ref(r.createUid()),J=e.ref(null),C=e.ref(!1),_=e.ref(""),x=e.ref(null),S=e.ref(0),y=e.ref(null),B=e.ref(null),A=e.ref(null),$=e.ref(null),E=e.ref(0),z=e.ref(0),t=e.computed({get:()=>V(),set:l=>l});function V(){const l=X.useNestedProp({userConfig:u.config,defaultConfig:Y});return l.theme?{...X.useNestedProp({userConfig:r.themes.vue_ui_age_pyramid[l.theme]||u.config,defaultConfig:l})}:l}e.watch(()=>u.config,l=>{t.value=V(),O(),E.value+=1,z.value+=1},{deep:!0});const P=e.ref(null);e.onMounted(()=>{O()});function O(){if(r.objectIsEmpty(u.dataset)&&r.error({componentName:"VueUiAgePyramid",type:"dataset"}),t.value.responsive){const l=W.throttle(()=>{const{width:i,height:a}=W.useResponsive({chart:y.value,title:t.value.style.title.text?B.value:null,source:A.value,noTitle:$.value});d.value.width=i,d.value.height=a});P.value=new ResizeObserver(l),P.value.observe(y.value.parentNode)}}const{isPrinting:I,isImaging:F,generatePdf:D,generateImage:M}=H.usePrinter({elementId:`vue-ui-age-pyramid_${c.value}`,fileName:t.value.style.title.text||"vue-ui-age-pyramid"}),K=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),v=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),d=e.ref({height:t.value.style.height,width:t.value.style.width}),s=e.computed(()=>{const l=d.value.width-t.value.style.layout.padding.right-t.value.style.layout.padding.left,i=t.value.style.layout.padding.left,a=d.value.width-t.value.style.layout.padding.right;return{top:t.value.style.layout.padding.top,left:i,right:a,bottom:d.value.height-t.value.style.layout.padding.bottom,width:l,height:d.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom,centerX:t.value.style.layout.padding.left+l/2,leftChart:{width:l/2-t.value.style.layout.centerSlit.width,right:i+l/2-t.value.style.layout.centerSlit.width},rightChart:{width:l/2-t.value.style.layout.centerSlit.width,left:i+l/2+t.value.style.layout.centerSlit.width}}}),Q=e.computed(()=>u.dataset.map(l=>t.value.style.layout.dataLabels.yAxis.display==="age"?l[1]:l[0])),h=e.computed(()=>{const l=Z(g.value/5),i=[],a=[];for(let o=0;o<=5;o+=1){const n=l*o,U=l*(o-5);i.push({value:n,x:s.value.left+s.value.width/2+t.value.style.layout.centerSlit.width+n/g.value*s.value.leftChart.width}),a.push({value:Math.abs(U),x:s.value.left+s.value.width/2+U/g.value*s.value.leftChart.width-t.value.style.layout.centerSlit.width})}return{right:i,left:a}});function Z(l){if(l===0)return 0;const a=10**Math.floor(Math.log10(Math.abs(l)));let o;return l<0,o=Math.round(l/a)*a,o}const g=e.computed(()=>Math.max(...u.dataset.flatMap(l=>l.slice(-2).map(i=>r.checkNaN(i))))),f=e.computed(()=>u.dataset.length),ee=e.computed(()=>u.dataset.map(l=>({segment:l[0],age:l[1],left:{value:l[2],proportionToMax:l[2]/g.value},right:{value:l[3],proportionToMax:l[3]/g.value}}))),p=e.computed(()=>ee.value.map((l,i)=>{const a=s.value.top+s.value.height/f.value*i,o=s.value.height/f.value-t.value.style.layout.bars.gap;return{segment:l.segment,age:l.age,left:{...l.left,y:a,color:t.value.style.layout.bars.left.color,x:s.value.leftChart.right-l.left.proportionToMax*s.value.leftChart.width,width:r.checkNaN(l.left.proportionToMax*s.value.leftChart.width),height:o},right:{...l.right,y:a,color:t.value.style.layout.bars.right.color,x:s.value.rightChart.left,width:r.checkNaN(l.right.proportionToMax*s.value.rightChart.width),height:o}}})),N=e.ref(null);function te(l,i){x.value=l,N.value={datapoint:i,seriesIndex:l,series:p.value,config:t.value};const a=t.value.style.tooltip.customFormat;if(r.isFunction(a)&&r.functionReturnsString(()=>a({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value})))_.value=a({seriesIndex:l,datapoint:{segment:i[0],index:i[1],left:i[2],right:i[3]},series:p.value,config:t.value});else{let o="";const n=p.value[l];o+=`<div><b>${n.segment}</b></div>`,o+=`<div>${t.value.translations.age}: ${r.applyDataLabel(t.value.style.layout.dataLabels.yAxis.formatter,r.checkNaN(n.age),r.dataLabel({v:r.checkNaN(n.age)}),{datapoint:i,seriesIndex:l})}</div>`,o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,o+='<div style="display:flex; flex-direction:row;gap:12px">',o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:t.value.style.layout.bars.left.color}"/></svg><div>${t.value.translations.female}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:t.value.style.layout.bars.right.color}"/></svg><div>${t.value.translations.male}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value),r.dataLabel({v:r.checkNaN(n.right.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+="</div>",o+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}"><div>${t.value.translations.total}</div><div><b>${r.applyDataLabel(t.value.style.layout.dataLabels.xAxis.formatter,r.checkNaN(n.right.value)+r.checkNaN(n.left.value),r.dataLabel({v:r.checkNaN(n.right.value)+r.checkNaN(n.left.value)}),{datapoint:i,seriesIndex:l})}</b></div></div>`,o+="</div>",_.value=`<div>${o}</div>`}C.value=!0}function R(){e.nextTick(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(n=>[n[0],n[1],n[2],n[3],n[2]+n[3]]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(i),o=r.createCsvContent(a);r.downloadCsv({csvContent:o,title:t.value.style.title.text||"vue-ui-heatmap"})})}const k=e.computed(()=>{const l=[t.value.translations.year,t.value.translations.age,t.value.translations.female,t.value.translations.male,t.value.translations.total],i=u.dataset.map(o=>[o[0],o[1],o[2].toLocaleString(),o[3].toLocaleString(),(o[2]+o[3]).toLocaleString()]),a={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{head:l,body:i,config:a,colNames:l}}),b=e.ref(!1);function le(l){b.value=l,S.value+=1}function q(){v.value.showTable=!v.value.showTable}function G(){v.value.showTooltip=!v.value.showTooltip}const w=e.ref(!1);function L(){w.value=!w.value}return j({generatePdf:D,generateCsv:R,generateImage:M,toggleTable:q,toggleTooltip:G,toggleAnnotator:L}),(l,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-age-pyramid ${b.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"agePyramid",ref:y,id:`vue-ui-age-pyramid_${c.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height:100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ue.PenAndPaper,{key:0,parent:y.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:w.value,onClose:L},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:$,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:B,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(ae._sfc_main,{key:`title_${E.value}`,config:{title:{cy:"pyramid-div-title",...t.value.style.title},subtitle:{cy:"pyramid-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&m.value?(e.openBlock(),e.createBlock(H.UserOptions,{ref_key:"details",ref:J,key:`user_options_${S.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(F),isPrinting:e.unref(I),uid:c.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.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:v.value.showTooltip,titles:{...t.value.userOptions.buttonTitles},chartElement:y.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:w.value,onToggleFullscreen:le,onGeneratePdf:e.unref(D),onGenerateCsv:R,onGenerateImage:e.unref(M),onToggleTable:q,onToggleTooltip:G,onToggleAnnotator:L},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:o})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:o})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:o})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:o})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasXls","hasImg","hasTable","hasFullscreen","isFullscreen","isTooltip","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),m.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}),viewBox:`0 0 ${d.value.width<=0?10:d.value.width} ${d.value.height<=0?10:d.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(ne._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`age_pyramid_left_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.bars.left.color},null,8,he),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.layout.bars.left.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,fe)],8,ye),e.createElementVNode("linearGradient",{id:`age_pyramid_right_${c.value}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)(e.unref(r.shiftHue)(t.value.style.layout.bars.right.color,t.value.style.layout.bars.gradient.shiftHue),100-t.value.style.layout.bars.gradient.intensity)},null,8,ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.bars.right.color},null,8,be)],8,pe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:e.unref(r.checkNaN)(a.left.width<=0?1e-4:a.left.width),height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,me),e.createElementVNode("rect",{x:a.left.x,y:a.left.y,width:a.left.width<=0?1e-4:a.left.width,height:a.left.height<=0?1e-4:a.left.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_left_${c.value})`:a.left.color,rx:t.value.style.layout.bars.borderRadius},null,8,xe),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.underlayer,rx:t.value.style.layout.bars.borderRadius},null,8,ke),e.createElementVNode("rect",{x:a.right.x,y:a.right.y,width:a.right.width<=0?1e-4:a.right.width,height:a.right.height<=0?1e-4:a.right.height,fill:t.value.style.layout.bars.gradient.show?`url(#age_pyramid_right_${c.value})`:a.right.color,rx:t.value.style.layout.bars.borderRadius},null,8,we)]))),256)),e.createElementVNode("g",null,[t.value.style.layout.dataLabels.sideTitles.show?(e.openBlock(),e.createElementBlock("g",Ce,[e.createElementVNode("text",{x:s.value.left,y:s.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.left.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"start","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.female),9,_e),e.createElementVNode("text",{x:s.value.right,y:s.value.top+t.value.style.layout.dataLabels.sideTitles.offsetY,fill:t.value.style.layout.dataLabels.sideTitles.useSideColor?t.value.style.layout.bars.right.color:t.value.style.layout.dataLabels.sideTitles.color,"font-size":t.value.style.layout.dataLabels.sideTitles.fontSize,"text-anchor":"end","font-weight":t.value.style.layout.dataLabels.sideTitles.bold?"bold":"normal"},e.toDisplayString(t.value.translations.male),9,Ne)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Le,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,(a,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o%t.value.style.layout.dataLabels.yAxis.showEvery===0?(e.openBlock(),e.createElementBlock("text",{key:0,x:s.value.centerX,y:s.value.top+s.value.height/f.value*o+t.value.style.layout.dataLabels.yAxis.fontSize/3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.yAxis.formatter,a,e.unref(r.dataLabel)({v:a}),{datapoint:a,seriesIndex:o})),9,Te)):e.createCommentVNode("",!0)],64))),256))])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Se,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("g",Be,[e.createElementVNode("line",{x1:h.value.right[0].x,x2:h.value.right.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ae),e.createElementVNode("line",{x1:h.value.left[0].x,x2:h.value.left.at(-1).x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,$e)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.right,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ee)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,ze)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value.left,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.grid.show?(e.openBlock(),e.createElementBlock("line",{key:0,x1:a.x,x2:a.x,y1:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/2,y2:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize/4,stroke:t.value.style.layout.grid.stroke,"stroke-width":t.value.style.layout.grid.strokeWidth,"stroke-linecap":"round"},null,8,Ve)):e.createCommentVNode("",!0),e.createElementVNode("text",{x:a.x,y:s.value.bottom+t.value.style.layout.dataLabels.xAxis.fontSize*2,"font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"text-anchor":"middle","font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.dataLabels.xAxis.formatter,a.value/t.value.style.layout.dataLabels.xAxis.scale,e.unref(r.dataLabel)({v:a.value/t.value.style.layout.dataLabels.xAxis.scale}),{datapoint:a,seriesIndex:o})),9,Pe)]))),256)),e.createElementVNode("text",{x:s.value.right,y:d.value.height,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal"},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.translation),9,Oe)])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T.dataset,(a,o)=>(e.openBlock(),e.createElementBlock("g",null,[e.createElementVNode("rect",{x:s.value.left,y:s.value.top+s.value.height/f.value*o-t.value.style.layout.bars.gap/2,width:s.value.width<=0?1e-4:s.value.width,height:s.value.height/f.value<=0?1e-4:s.value.height/f.value,fill:x.value!==null&&x.value===o?e.unref(r.setOpacity)(t.value.style.highlighter.color,t.value.style.highlighter.opacity):"transparent",onMouseover:n=>te(o,a),onMouseleave:i[0]||(i[0]=n=>{x.value=null,C.value=!1})},null,40,Ie)]))),256)),e.renderSlot(l.$slots,"svg",{svg:d.value},void 0,!0)],14,ve)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Fe,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(I)||e.unref(F)})),void 0,!0)])):e.createCommentVNode("",!0),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(se.default,{key:6,config:{type:"pyramid",style:{backgroundColor:t.value.style.backgroundColor,pyramid:{color:"#CCCCCC"}}}},null,8,["config"])),e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:A,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(oe._sfc_main,{show:v.value.showTooltip&&C.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:y.value,content:_.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...N.value})),void 0,!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),m.value?(e.openBlock(),e.createBlock(ie.default,{key:8,hideDetails:"",config:{open:v.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(re.DataTable,{key:`table_${z.value}`,colNames:k.value.colNames,head:k.value.head,body:k.value.body,config:k.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:i[1]||(i[1]=a=>v.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,ce))}},Me=de._export_sfc(De,[["__scopeId","data-v-c061125a"]]);exports.default=Me;
|