vue-data-ui 2.3.60 → 2.3.62
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/dist/{Arrow-BJ47KXjY.js → Arrow-Dho8ylDy.js} +1 -1
- package/dist/{Arrow-VxZlHkwt.cjs → Arrow-ov-EIAPu.cjs} +1 -1
- package/dist/{BaseIcon-Bv5uh10R.cjs → BaseIcon-B6v-Txn-.cjs} +1 -1
- package/dist/{BaseIcon-Fm7sUbd2.js → BaseIcon-BNStcP8c.js} +1 -1
- package/dist/{DataTable-1VV0us-8.js → DataTable-luIjNnne.js} +2 -2
- package/dist/{DataTable-CPAt686N.cjs → DataTable-yf_eyv8c.cjs} +1 -1
- package/dist/{Legend-BJ2Mynop.cjs → Legend-6JY5pUsT.cjs} +1 -1
- package/dist/{Legend-DB6v_LvZ.js → Legend-B9dawQa7.js} +1 -1
- package/dist/{Shape-DWZSJJ6-.cjs → Shape-BoXM3HKY.cjs} +1 -1
- package/dist/{Shape-B_f1_6Ob.js → Shape-BsAETTif.js} +1 -1
- package/dist/Slicer-DoMAeSUY.cjs +1 -0
- package/dist/{Slicer-CHiUxRAh.js → Slicer-iGmqxtRQ.js} +51 -54
- package/dist/{Title-CR-JDJwq.cjs → Title-CBcoQe02.cjs} +1 -1
- package/dist/{Title-xP0rAF4q.js → Title-fb3BzoXj.js} +1 -1
- package/dist/{Tooltip-B4DNihSF.cjs → Tooltip-BhuD1Kc5.cjs} +1 -1
- package/dist/{Tooltip-DfBa_7Ur.js → Tooltip-CBugtvWB.js} +5 -5
- package/dist/{index-CpHoINpJ.js → index-BshV7sX1.js} +538 -515
- package/dist/{index-CDK3omwG.cjs → index-D2ZScauW.cjs} +4 -4
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-BOjw3Yqn.js → useNestedProp-B235bkr5.js} +1 -1
- package/dist/{useNestedProp-CaaW8JIS.cjs → useNestedProp-BU7yyXFA.cjs} +1 -1
- package/dist/{usePrinter-BHy-mfVg.js → usePrinter-Culo-aKo.js} +1 -1
- package/dist/{usePrinter-vQu-8tRD.cjs → usePrinter-eqT4IYET.cjs} +1 -1
- package/dist/{vue-data-ui-Ccdrn4OV.cjs → vue-data-ui-B7ebF4_E.cjs} +1 -1
- package/dist/{vue-data-ui-Dcg7DPMn.js → vue-data-ui-aJ6K70wA.js} +57 -57
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +7 -7
- package/dist/{vue-ui-3d-bar-BqtnNU7h.js → vue-ui-3d-bar-BYgxIW27.js} +7 -7
- package/dist/{vue-ui-3d-bar-DdBlV5AX.cjs → vue-ui-3d-bar-DFv8qpsI.cjs} +1 -1
- package/dist/{vue-ui-accordion-BZloYo0L.js → vue-ui-accordion-B6AxEnAr.js} +3 -3
- package/dist/{vue-ui-accordion-EVAolVkD.cjs → vue-ui-accordion-BhCJcWDd.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BBRjCRtS.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-CTxkOn4v.js → vue-ui-age-pyramid-yZrvdnPP.js} +226 -226
- package/dist/{vue-ui-annotator-D_AK0JCi.cjs → vue-ui-annotator-CEVmAufb.cjs} +1 -1
- package/dist/{vue-ui-annotator-BDWKiQ6S.js → vue-ui-annotator-ZKUlOqUq.js} +1 -1
- package/dist/{vue-ui-candlestick-CIKgu0F2.cjs → vue-ui-candlestick-CUNLZRIM.cjs} +2 -2
- package/dist/{vue-ui-candlestick-ByA9FGZb.js → vue-ui-candlestick-De4WgpPk.js} +158 -158
- package/dist/{vue-ui-carousel-table-ez9gbOZ7.cjs → vue-ui-carousel-table-C968uL6J.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BnYxbq5A.js → vue-ui-carousel-table-DJ0AWPea.js} +4 -4
- package/dist/{vue-ui-chestnut-BumsSmCv.js → vue-ui-chestnut-Cl0UKWsI.js} +65 -64
- package/dist/{vue-ui-chestnut-CnYqa2Fx.cjs → vue-ui-chestnut-DmjmL02K.cjs} +3 -3
- package/dist/{vue-ui-cursor-D-4-MMw7.js → vue-ui-cursor-BWyE3tgm.js} +2 -2
- package/dist/{vue-ui-cursor-Drl8jibt.cjs → vue-ui-cursor-D5XEblLW.cjs} +1 -1
- package/dist/{vue-ui-dashboard-CX0jA181.cjs → vue-ui-dashboard-BJLi81kg.cjs} +1 -1
- package/dist/{vue-ui-dashboard-B_iV-3hq.js → vue-ui-dashboard-D9dQIIti.js} +2 -2
- package/dist/{vue-ui-digits-DMhl9plv.js → vue-ui-digits-DkYpomD9.js} +2 -2
- package/dist/{vue-ui-digits-RAZl_4Kb.cjs → vue-ui-digits-IIiSTczs.cjs} +1 -1
- package/dist/{vue-ui-donut-BG28U01c.cjs → vue-ui-donut-Bq66xmG0.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DPU-Nd8y.js → vue-ui-donut-evolution-Bto1ZaWx.js} +95 -95
- package/dist/vue-ui-donut-evolution-CNVUtEEk.cjs +1 -0
- package/dist/{vue-ui-donut-BpQC9-Uz.js → vue-ui-donut-uujhj36t.js} +42 -42
- package/dist/vue-ui-dumbbell-CLNVYG0j.cjs +9 -0
- package/dist/{vue-ui-dumbbell-C4JnuC1b.js → vue-ui-dumbbell-D6Xyfvff.js} +72 -72
- package/dist/vue-ui-flow-BwrqexSU.cjs +1 -0
- package/dist/vue-ui-flow-Cg4oKZz8.js +469 -0
- package/dist/{vue-ui-galaxy-148JtEdK.js → vue-ui-galaxy-D_s9dfYN.js} +91 -91
- package/dist/vue-ui-galaxy-DixlciaO.cjs +1 -0
- package/dist/{vue-ui-gauge-DOJ98R_N.js → vue-ui-gauge-DGQVW6UO.js} +84 -84
- package/dist/vue-ui-gauge-Jse5ZYyj.cjs +1 -0
- package/dist/{vue-ui-gizmo-KeWvd226.js → vue-ui-gizmo-DDTaLaSI.js} +2 -2
- package/dist/{vue-ui-gizmo-a6WNWyf7.cjs → vue-ui-gizmo-sgq75uBG.cjs} +1 -1
- package/dist/vue-ui-heatmap-4-gnNgQ_.cjs +1 -0
- package/dist/{vue-ui-heatmap-BGsSOTPJ.js → vue-ui-heatmap-Dvd5ZGVw.js} +257 -239
- package/dist/{vue-ui-kpi-Dhah6Fgx.cjs → vue-ui-kpi-Co1WqN3k.cjs} +1 -1
- package/dist/{vue-ui-kpi-Leb1rK38.js → vue-ui-kpi-aLwUkIjv.js} +3 -3
- package/dist/{vue-ui-mini-loader-BLH4ncUB.js → vue-ui-mini-loader-Bm2xpTIh.js} +2 -2
- package/dist/{vue-ui-mini-loader-Dpa9uYkn.cjs → vue-ui-mini-loader-D98KCpoT.cjs} +1 -1
- package/dist/{vue-ui-molecule-DjvOvDUa.cjs → vue-ui-molecule-C3-9ojnv.cjs} +1 -1
- package/dist/{vue-ui-molecule-DuPAOQcj.js → vue-ui-molecule-Dv4hYPVd.js} +20 -20
- package/dist/{vue-ui-mood-radar-AOHK6R10.cjs → vue-ui-mood-radar-Dh3Q2NiI.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-BmcIz0JR.js → vue-ui-mood-radar-DsIPsXTh.js} +9 -9
- package/dist/{vue-ui-nested-donuts-CMmcmAd9.cjs → vue-ui-nested-donuts-CFC8tyGY.cjs} +2 -2
- package/dist/{vue-ui-nested-donuts-BYLc86qs.js → vue-ui-nested-donuts-CZ9vcclX.js} +120 -120
- package/dist/{vue-ui-onion-BjG8xbMh.cjs → vue-ui-onion-BLV33CBr.cjs} +1 -1
- package/dist/{vue-ui-onion-shZ4g9mJ.js → vue-ui-onion-CI9ARfRM.js} +9 -9
- package/dist/{vue-ui-parallel-coordinate-plot-O7lS6u2q.cjs → vue-ui-parallel-coordinate-plot-CIhpHeCI.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-wv0O9t7U.js → vue-ui-parallel-coordinate-plot-CxzFJuza.js} +69 -69
- package/dist/{vue-ui-quadrant-CuB8sYgF.cjs → vue-ui-quadrant-CS3LAiCu.cjs} +1 -1
- package/dist/{vue-ui-quadrant-BRF5Czj4.js → vue-ui-quadrant-DenUcNcS.js} +36 -36
- package/dist/{vue-ui-quick-chart-BQdUHrm2.js → vue-ui-quick-chart-BdpKv0ES.js} +549 -515
- package/dist/vue-ui-quick-chart-UxaO0jzI.cjs +15 -0
- package/dist/vue-ui-radar-CQ-LymAS.cjs +1 -0
- package/dist/{vue-ui-radar-CLUs0tD9.js → vue-ui-radar-Dd24aGwh.js} +59 -59
- package/dist/{vue-ui-rating-Dcy1l1PB.js → vue-ui-rating-CQWK2lk1.js} +9 -9
- package/dist/{vue-ui-rating-CA25nHJe.cjs → vue-ui-rating-DTuDjrt8.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-DC-RFa9X.js → vue-ui-relation-circle-BcOzK8Iz.js} +5 -5
- package/dist/{vue-ui-relation-circle-Drr6Gdnq.cjs → vue-ui-relation-circle-DMhNCwpg.cjs} +1 -1
- package/dist/vue-ui-rings--pu1fIcl.cjs +2 -0
- package/dist/{vue-ui-rings-DbPbelCU.js → vue-ui-rings-yyFx2W1b.js} +188 -185
- package/dist/{vue-ui-scatter-D2jYZ4Wu.js → vue-ui-scatter-BV4sXNqz.js} +378 -375
- package/dist/{vue-ui-scatter-xyLvaw0d.cjs → vue-ui-scatter-CrmsJjjl.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DXCBzrPZ.js → vue-ui-screenshot-C6wYv3cc.js} +6 -6
- package/dist/{vue-ui-screenshot-DGqjaE1x.cjs → vue-ui-screenshot-eoAWixSo.cjs} +1 -1
- package/dist/{vue-ui-skeleton-DuM6yey6.js → vue-ui-skeleton-7qakoAGH.js} +23 -23
- package/dist/{vue-ui-skeleton-DRDC3yxK.cjs → vue-ui-skeleton-BLhbQje-.cjs} +1 -1
- package/dist/{vue-ui-smiley-DQrvx_S9.js → vue-ui-smiley-DG3_ORXA.js} +2 -2
- package/dist/{vue-ui-smiley-BCmY1siL.cjs → vue-ui-smiley-sS92V85O.cjs} +1 -1
- package/dist/vue-ui-spark-trend-C9Ii4Ue5.cjs +1 -0
- package/dist/vue-ui-spark-trend-D8_rEspZ.js +251 -0
- package/dist/{vue-ui-sparkbar-C_vNsxM_.cjs → vue-ui-sparkbar-CQz9GWxh.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-DiU5Yt-V.js → vue-ui-sparkbar-DuNNnbs9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BnF9Vbs0.js → vue-ui-sparkgauge-Buo2ms6b.js} +64 -64
- package/dist/vue-ui-sparkgauge-Dxsnkehz.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-BUBwn9A4.cjs → vue-ui-sparkhistogram-Cw-w_Rhv.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CsOfCo_3.js → vue-ui-sparkhistogram-edeeQ1HN.js} +4 -4
- package/dist/{vue-ui-sparkline-CoUeD8Np.cjs → vue-ui-sparkline-Cyddej9t.cjs} +1 -1
- package/dist/{vue-ui-sparkline-B628G3Nl.js → vue-ui-sparkline-DGIqGoR2.js} +25 -25
- package/dist/{vue-ui-sparkstackbar-Cr-Q7uDo.cjs → vue-ui-sparkstackbar-DN0XiDpQ.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DIHGbrF5.js → vue-ui-sparkstackbar-G7Ojd39B.js} +3 -3
- package/dist/{vue-ui-stackbar-DCbJhdZy.js → vue-ui-stackbar-CfK9lv_E.js} +35 -35
- package/dist/{vue-ui-stackbar-DMyP3IRK.cjs → vue-ui-stackbar-kiZ9J1eh.cjs} +1 -1
- package/dist/vue-ui-strip-plot-Bd4NwUia.cjs +1 -0
- package/dist/{vue-ui-strip-plot-CNb3VtYF.js → vue-ui-strip-plot-d-bNHZDG.js} +64 -64
- package/dist/{vue-ui-table-CjuXpy2d.cjs → vue-ui-table-ChORiy2h.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-D6px_Z1a.cjs → vue-ui-table-heatmap-BcA1TmV1.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-nbBDuSiw.js → vue-ui-table-heatmap-BcPqaYXz.js} +26 -26
- package/dist/{vue-ui-table-BqcI8E7E.js → vue-ui-table-ipCsGZPx.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Blbaz2zX.js → vue-ui-table-sparkline-BwwiWOX_.js} +13 -13
- package/dist/{vue-ui-table-sparkline-CqNPx5Zw.cjs → vue-ui-table-sparkline-dXyBTv6X.cjs} +1 -1
- package/dist/vue-ui-thermometer-DpWtOskJ.cjs +1 -0
- package/dist/{vue-ui-thermometer-BCGHbgj9.js → vue-ui-thermometer-U5IIot6j.js} +116 -116
- package/dist/{vue-ui-timer-BjqbxjQO.cjs → vue-ui-timer-DqVQjRdU.cjs} +1 -1
- package/dist/{vue-ui-timer-DhpBvc_5.js → vue-ui-timer-cCfNkOpe.js} +4 -4
- package/dist/{vue-ui-tiremarks-CNhB7Iqe.js → vue-ui-tiremarks-BcXrnO0N.js} +71 -71
- package/dist/vue-ui-tiremarks-C8pNPR_E.cjs +1 -0
- package/dist/vue-ui-treemap-24TuOX-H.cjs +1 -0
- package/dist/{vue-ui-treemap-C4memkYu.js → vue-ui-treemap-CVCaxcwW.js} +89 -82
- package/dist/{vue-ui-vertical-bar-LZ-GMZ2T.js → vue-ui-vertical-bar-Cuz2Qxi6.js} +246 -242
- package/dist/vue-ui-vertical-bar-kZxc3vG5.cjs +4 -0
- package/dist/{vue-ui-waffle-Cd4IU62n.js → vue-ui-waffle-BVFZf7mm.js} +44 -44
- package/dist/{vue-ui-waffle-CtY5CSX9.cjs → vue-ui-waffle-X-mNfs6F.cjs} +1 -1
- package/dist/{vue-ui-wheel-Do3pWPFB.cjs → vue-ui-wheel-CWOh-9CT.cjs} +1 -1
- package/dist/{vue-ui-wheel-CaEAQhJt.js → vue-ui-wheel-SUtbKs4l.js} +5 -5
- package/dist/vue-ui-word-cloud-BE_jkp2h.cjs +1 -0
- package/dist/{vue-ui-word-cloud-BSalPYqO.js → vue-ui-word-cloud-DAa0far7.js} +68 -65
- package/dist/vue-ui-xy-BTocPMsA.cjs +3 -0
- package/dist/{vue-ui-xy-C7tpVpGu.js → vue-ui-xy-B_dmMYPU.js} +82 -82
- package/dist/vue-ui-xy-canvas-BtuD8xjy.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-rHcYmvec.js → vue-ui-xy-canvas-jq1j84oA.js} +122 -121
- package/package.json +1 -1
- package/dist/Slicer-PPS43jOo.cjs +0 -1
- package/dist/vue-ui-age-pyramid-Ce3DbeqC.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BWvrYKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-2Lsks-8o.cjs +0 -9
- package/dist/vue-ui-flow-DBhdVKxF.cjs +0 -1
- package/dist/vue-ui-flow-DSdWqWgh.js +0 -465
- package/dist/vue-ui-galaxy-BMsdd9Rh.cjs +0 -1
- package/dist/vue-ui-gauge-fVk9B_1W.cjs +0 -1
- package/dist/vue-ui-heatmap-DFpSo2gr.cjs +0 -1
- package/dist/vue-ui-quick-chart-DsVFRO68.cjs +0 -15
- package/dist/vue-ui-radar-lcS6n5TC.cjs +0 -1
- package/dist/vue-ui-rings-DxqSAs9h.cjs +0 -2
- package/dist/vue-ui-spark-trend-B9PR0wxN.js +0 -251
- package/dist/vue-ui-spark-trend-Kj1bJmBL.cjs +0 -1
- package/dist/vue-ui-sparkgauge-SlYA1lqc.cjs +0 -1
- package/dist/vue-ui-strip-plot-Da_TQpOq.cjs +0 -1
- package/dist/vue-ui-thermometer-coTC0T6k.cjs +0 -1
- package/dist/vue-ui-tiremarks-DgbTo_Cb.cjs +0 -1
- package/dist/vue-ui-treemap-B5moKzuO.cjs +0 -1
- package/dist/vue-ui-vertical-bar-DtkGW5Tk.cjs +0 -4
- package/dist/vue-ui-word-cloud-pzaBe3Et.cjs +0 -1
- package/dist/vue-ui-xy-BgLF5ZNP.cjs +0 -3
- package/dist/vue-ui-xy-canvas-OuDGiOOW.cjs +0 -9
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { D as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
const
|
|
1
|
+
import { computed as b, ref as y, onMounted as fe, openBlock as i, createElementBlock as r, normalizeClass as le, normalizeStyle as B, createVNode as E, createCommentVNode as h, createBlock as W, unref as d, createSlots as ce, withCtx as g, renderSlot as p, normalizeProps as P, guardReactiveProps as N, createElementVNode as n, Fragment as L, renderList as I, toDisplayString as w, createTextVNode as ae, nextTick as ge } from "vue";
|
|
2
|
+
import { u as pe, c as be, t as xe, o as me, e as we, s as v, X as ke, v as oe, w as X, i as k, f as _, x as _e, y as $e, q as Ce, r as Te } from "./index-BshV7sX1.js";
|
|
3
|
+
import { t as Le, u as Ae } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Se } from "./Title-fb3BzoXj.js";
|
|
5
|
+
import { u as ze, U as Ie } from "./usePrinter-Culo-aKo.js";
|
|
6
|
+
import { _ as Fe } from "./Tooltip-CBugtvWB.js";
|
|
7
|
+
import { D as Me } from "./DataTable-luIjNnne.js";
|
|
8
|
+
import Oe from "./vue-ui-skeleton-7qakoAGH.js";
|
|
9
|
+
import Pe from "./vue-ui-accordion-B6AxEnAr.js";
|
|
10
|
+
import { u as se } from "./useNestedProp-B235bkr5.js";
|
|
11
|
+
import { _ as Ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
const Re = ["id"], De = ["xmlns", "viewBox"], Ge = ["id"], Be = ["stop-color"], Ee = ["stop-color"], We = ["id"], Xe = ["stop-color"], Ue = ["stop-color"], Ve = ["x", "y", "width", "height", "fill", "rx"], Ye = ["x", "y", "width", "height", "fill", "rx"], je = ["x", "y", "width", "height", "fill", "rx"], He = ["x", "y", "width", "height", "fill", "rx"], qe = { key: 0 }, Je = ["x", "y", "fill", "font-size", "font-weight"], Ke = ["x", "y", "fill", "font-size", "font-weight"], Qe = { key: 1 }, Ze = ["x", "y", "font-size", "fill", "font-weight"], et = { key: 2 }, tt = { key: 0 }, lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], at = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], st = ["x", "y", "font-size", "fill", "font-weight"], it = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ut = ["x", "y", "font-size", "fill", "font-weight"], rt = ["x", "y", "font-size", "fill", "font-weight"], nt = ["x", "y", "width", "height", "fill", "onMouseover"], dt = {
|
|
13
13
|
key: 3,
|
|
14
14
|
class: "vue-data-ui-watermark"
|
|
15
|
-
},
|
|
15
|
+
}, vt = {
|
|
16
16
|
__name: "vue-ui-age-pyramid",
|
|
17
17
|
props: {
|
|
18
18
|
config: {
|
|
@@ -28,52 +28,52 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
const t =
|
|
34
|
-
userConfig:
|
|
35
|
-
defaultConfig:
|
|
31
|
+
setup(U, { expose: ie }) {
|
|
32
|
+
const c = U, { vue_ui_age_pyramid: ue } = pe(), F = b(() => !!c.dataset && c.dataset.length), x = y(be()), re = y(null), R = y(!1), D = y(""), M = y(null), V = y(0), A = y(null), Y = y(null), e = b(() => {
|
|
33
|
+
const t = se({
|
|
34
|
+
userConfig: c.config,
|
|
35
|
+
defaultConfig: ue
|
|
36
36
|
});
|
|
37
37
|
return t.theme ? {
|
|
38
|
-
...
|
|
39
|
-
userConfig:
|
|
38
|
+
...se({
|
|
39
|
+
userConfig: xe.vue_ui_age_pyramid[t.theme] || c.config,
|
|
40
40
|
defaultConfig: t
|
|
41
41
|
})
|
|
42
42
|
} : t;
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
if (
|
|
43
|
+
}), j = y(null);
|
|
44
|
+
fe(() => {
|
|
45
|
+
if (me(c.dataset) && we({
|
|
46
46
|
componentName: "VueUiAgePyramid",
|
|
47
47
|
type: "dataset"
|
|
48
48
|
}), e.value.responsive) {
|
|
49
|
-
const t =
|
|
50
|
-
const { width: s, height: l } =
|
|
51
|
-
chart:
|
|
52
|
-
title: e.value.style.title.text ?
|
|
49
|
+
const t = Le(() => {
|
|
50
|
+
const { width: s, height: l } = Ae({
|
|
51
|
+
chart: A.value,
|
|
52
|
+
title: e.value.style.title.text ? Y.value : null
|
|
53
53
|
});
|
|
54
|
-
|
|
54
|
+
f.value.width = s, f.value.height = l;
|
|
55
55
|
});
|
|
56
|
-
|
|
56
|
+
j.value = new ResizeObserver(t), j.value.observe(A.value.parentNode);
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
const { isPrinting:
|
|
60
|
-
elementId: `vue-ui-age-pyramid_${
|
|
59
|
+
const { isPrinting: H, isImaging: q, generatePdf: J, generateImage: K } = ze({
|
|
60
|
+
elementId: `vue-ui-age-pyramid_${x.value}`,
|
|
61
61
|
fileName: e.value.style.title.text || "vue-ui-age-pyramid"
|
|
62
|
-
}),
|
|
62
|
+
}), m = y({
|
|
63
63
|
showTable: e.value.table.show,
|
|
64
64
|
showTooltip: e.value.style.tooltip.show
|
|
65
|
-
}),
|
|
65
|
+
}), f = y({
|
|
66
66
|
height: e.value.style.height,
|
|
67
67
|
width: e.value.style.width
|
|
68
|
-
}), o =
|
|
69
|
-
const t =
|
|
68
|
+
}), o = b(() => {
|
|
69
|
+
const t = f.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, s = e.value.style.layout.padding.left, l = f.value.width - e.value.style.layout.padding.right;
|
|
70
70
|
return {
|
|
71
71
|
top: e.value.style.layout.padding.top,
|
|
72
72
|
left: s,
|
|
73
73
|
right: l,
|
|
74
|
-
bottom:
|
|
74
|
+
bottom: f.value.height - e.value.style.layout.padding.bottom,
|
|
75
75
|
width: t,
|
|
76
|
-
height:
|
|
76
|
+
height: f.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
|
|
77
77
|
centerX: e.value.style.layout.padding.left + t / 2,
|
|
78
78
|
leftChart: {
|
|
79
79
|
width: t / 2 - e.value.style.layout.centerSlit.width,
|
|
@@ -84,16 +84,16 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
84
84
|
left: s + t / 2 + e.value.style.layout.centerSlit.width
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
}),
|
|
88
|
-
const t =
|
|
87
|
+
}), ne = b(() => c.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), $ = b(() => {
|
|
88
|
+
const t = de(S.value / 5), s = [], l = [];
|
|
89
89
|
for (let a = 0; a <= 5; a += 1) {
|
|
90
|
-
const u = t * a,
|
|
90
|
+
const u = t * a, te = t * (a - 5);
|
|
91
91
|
s.push({
|
|
92
92
|
value: u,
|
|
93
|
-
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + u /
|
|
93
|
+
x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + u / S.value * o.value.leftChart.width
|
|
94
94
|
}), l.push({
|
|
95
|
-
value: Math.abs(
|
|
96
|
-
x: o.value.left + o.value.width / 2 +
|
|
95
|
+
value: Math.abs(te),
|
|
96
|
+
x: o.value.left + o.value.width / 2 + te / S.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
return {
|
|
@@ -101,25 +101,25 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
101
101
|
left: l
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
|
-
function
|
|
104
|
+
function de(t) {
|
|
105
105
|
if (t === 0) return 0;
|
|
106
106
|
const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
|
|
107
107
|
let a;
|
|
108
108
|
return t < 0, a = Math.round(t / l) * l, a;
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const S = b(() => Math.max(...c.dataset.flatMap((t) => t.slice(-2).map((s) => v(s))))), C = b(() => c.dataset.length), ve = b(() => c.dataset.map((t) => ({
|
|
111
111
|
segment: t[0],
|
|
112
112
|
age: t[1],
|
|
113
113
|
left: {
|
|
114
114
|
value: t[2],
|
|
115
|
-
proportionToMax: t[2] /
|
|
115
|
+
proportionToMax: t[2] / S.value
|
|
116
116
|
},
|
|
117
117
|
right: {
|
|
118
118
|
value: t[3],
|
|
119
|
-
proportionToMax: t[3] /
|
|
119
|
+
proportionToMax: t[3] / S.value
|
|
120
120
|
}
|
|
121
|
-
}))),
|
|
122
|
-
const l = o.value.top + o.value.height /
|
|
121
|
+
}))), T = b(() => ve.value.map((t, s) => {
|
|
122
|
+
const l = o.value.top + o.value.height / C.value * s, a = o.value.height / C.value - e.value.style.layout.bars.gap;
|
|
123
123
|
return {
|
|
124
124
|
segment: t.segment,
|
|
125
125
|
age: t.age,
|
|
@@ -128,7 +128,7 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
128
128
|
y: l,
|
|
129
129
|
color: e.value.style.layout.bars.left.color,
|
|
130
130
|
x: o.value.leftChart.right - t.left.proportionToMax * o.value.leftChart.width,
|
|
131
|
-
width: t.left.proportionToMax * o.value.leftChart.width,
|
|
131
|
+
width: v(t.left.proportionToMax * o.value.leftChart.width),
|
|
132
132
|
height: a
|
|
133
133
|
},
|
|
134
134
|
right: {
|
|
@@ -136,20 +136,20 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
136
136
|
y: l,
|
|
137
137
|
color: e.value.style.layout.bars.right.color,
|
|
138
138
|
x: o.value.rightChart.left,
|
|
139
|
-
width: t.right.proportionToMax * o.value.rightChart.width,
|
|
139
|
+
width: v(t.right.proportionToMax * o.value.rightChart.width),
|
|
140
140
|
height: a
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
})),
|
|
144
|
-
function
|
|
145
|
-
|
|
143
|
+
})), G = y(null);
|
|
144
|
+
function ye(t, s) {
|
|
145
|
+
M.value = t, G.value = {
|
|
146
146
|
datapoint: s,
|
|
147
147
|
seriesIndex: t,
|
|
148
|
-
series:
|
|
148
|
+
series: T.value,
|
|
149
149
|
config: e.value
|
|
150
150
|
};
|
|
151
151
|
const l = e.value.style.tooltip.customFormat;
|
|
152
|
-
if (
|
|
152
|
+
if (_e(l) && $e(() => l({
|
|
153
153
|
seriesIndex: t,
|
|
154
154
|
datapoint: {
|
|
155
155
|
segment: s[0],
|
|
@@ -157,10 +157,10 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
157
157
|
left: s[2],
|
|
158
158
|
right: s[3]
|
|
159
159
|
},
|
|
160
|
-
series:
|
|
160
|
+
series: T.value,
|
|
161
161
|
config: e.value
|
|
162
162
|
})))
|
|
163
|
-
|
|
163
|
+
D.value = l({
|
|
164
164
|
seriesIndex: t,
|
|
165
165
|
datapoint: {
|
|
166
166
|
segment: s[0],
|
|
@@ -168,56 +168,56 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
168
168
|
left: s[2],
|
|
169
169
|
right: s[3]
|
|
170
170
|
},
|
|
171
|
-
series:
|
|
171
|
+
series: T.value,
|
|
172
172
|
config: e.value
|
|
173
173
|
});
|
|
174
174
|
else {
|
|
175
175
|
let a = "";
|
|
176
|
-
const u =
|
|
177
|
-
a += `<div><b>${u.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${
|
|
176
|
+
const u = T.value[t];
|
|
177
|
+
a += `<div><b>${u.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${k(
|
|
178
178
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
179
|
-
u.age,
|
|
180
|
-
|
|
179
|
+
v(u.age),
|
|
180
|
+
_({ v: v(u.age) }),
|
|
181
181
|
{ datapoint: s, seriesIndex: t }
|
|
182
|
-
)}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${
|
|
182
|
+
)}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${x.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${k(
|
|
183
183
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
184
|
-
u.left.value,
|
|
185
|
-
|
|
184
|
+
v(u.left.value),
|
|
185
|
+
_({ v: v(u.left.value) }),
|
|
186
186
|
{ datapoint: s, seriesIndex: t }
|
|
187
|
-
)}</b></div></div>`, a += `<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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${
|
|
187
|
+
)}</b></div></div>`, a += `<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="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${x.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${k(
|
|
188
188
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
189
|
-
u.right.value,
|
|
190
|
-
|
|
189
|
+
v(u.right.value),
|
|
190
|
+
_({ v: v(u.right.value) }),
|
|
191
191
|
{ datapoint: s, seriesIndex: t }
|
|
192
|
-
)}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${
|
|
192
|
+
)}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${k(
|
|
193
193
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
194
|
-
u.right.value + u.left.value,
|
|
195
|
-
|
|
194
|
+
v(u.right.value) + v(u.left.value),
|
|
195
|
+
_({ v: v(u.right.value) + v(u.left.value) }),
|
|
196
196
|
{ datapoint: s, seriesIndex: t }
|
|
197
|
-
)}</b></div></div>`, a += "</div>",
|
|
197
|
+
)}</b></div></div>`, a += "</div>", D.value = `<div>${a}</div>`;
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
R.value = !0;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
const t = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], s =
|
|
201
|
+
function Q() {
|
|
202
|
+
ge(() => {
|
|
203
|
+
const t = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], s = c.dataset.map((u) => [
|
|
204
204
|
u[0],
|
|
205
205
|
u[1],
|
|
206
206
|
u[2],
|
|
207
207
|
u[3],
|
|
208
208
|
u[2] + u[3]
|
|
209
|
-
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a =
|
|
210
|
-
|
|
209
|
+
]), l = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([t]).concat(s), a = Ce(l);
|
|
210
|
+
Te({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const O = b(() => {
|
|
214
214
|
const t = [
|
|
215
215
|
e.value.translations.year,
|
|
216
216
|
e.value.translations.age,
|
|
217
217
|
e.value.translations.female,
|
|
218
218
|
e.value.translations.male,
|
|
219
219
|
e.value.translations.total
|
|
220
|
-
], s =
|
|
220
|
+
], s = c.dataset.map((a) => [
|
|
221
221
|
a[0],
|
|
222
222
|
a[1],
|
|
223
223
|
a[2].toLocaleString(),
|
|
@@ -237,36 +237,36 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
237
237
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
238
238
|
};
|
|
239
239
|
return { head: t, body: s, config: l, colNames: t };
|
|
240
|
-
}),
|
|
241
|
-
function
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
function Q() {
|
|
245
|
-
x.value.showTable = !x.value.showTable;
|
|
240
|
+
}), z = y(!1);
|
|
241
|
+
function he(t) {
|
|
242
|
+
z.value = t, V.value += 1;
|
|
246
243
|
}
|
|
247
244
|
function Z() {
|
|
248
|
-
|
|
245
|
+
m.value.showTable = !m.value.showTable;
|
|
249
246
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
247
|
+
function ee() {
|
|
248
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
249
|
+
}
|
|
250
|
+
return ie({
|
|
251
|
+
generatePdf: J,
|
|
252
|
+
generateCsv: Q,
|
|
253
|
+
generateImage: K,
|
|
254
|
+
toggleTable: Z,
|
|
255
|
+
toggleTooltip: ee
|
|
256
256
|
}), (t, s) => (i(), r("div", {
|
|
257
|
-
class:
|
|
257
|
+
class: le(`vue-ui-age-pyramid ${z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
258
258
|
ref_key: "agePyramid",
|
|
259
|
-
ref:
|
|
260
|
-
id: `vue-ui-age-pyramid_${
|
|
261
|
-
style:
|
|
259
|
+
ref: A,
|
|
260
|
+
id: `vue-ui-age-pyramid_${x.value}`,
|
|
261
|
+
style: B(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`)
|
|
262
262
|
}, [
|
|
263
263
|
e.value.style.title.text ? (i(), r("div", {
|
|
264
264
|
key: 0,
|
|
265
265
|
ref_key: "chartTitle",
|
|
266
|
-
ref:
|
|
267
|
-
style:
|
|
266
|
+
ref: Y,
|
|
267
|
+
style: B(`width:100%;background:${e.value.style.backgroundColor}`)
|
|
268
268
|
}, [
|
|
269
|
-
|
|
269
|
+
E(Se, {
|
|
270
270
|
config: {
|
|
271
271
|
title: {
|
|
272
272
|
cy: "pyramid-div-title",
|
|
@@ -278,86 +278,86 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
}, null, 8, ["config"])
|
|
281
|
-
], 4)) :
|
|
282
|
-
e.value.userOptions.show &&
|
|
281
|
+
], 4)) : h("", !0),
|
|
282
|
+
e.value.userOptions.show && F.value ? (i(), W(Ie, {
|
|
283
283
|
ref_key: "details",
|
|
284
|
-
ref:
|
|
285
|
-
key: `user_options_${
|
|
284
|
+
ref: re,
|
|
285
|
+
key: `user_options_${V.value}`,
|
|
286
286
|
backgroundColor: e.value.style.backgroundColor,
|
|
287
287
|
color: e.value.style.color,
|
|
288
|
-
isImaging: d(
|
|
289
|
-
isPrinting: d(
|
|
290
|
-
uid:
|
|
288
|
+
isImaging: d(q),
|
|
289
|
+
isPrinting: d(H),
|
|
290
|
+
uid: x.value,
|
|
291
291
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
292
292
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
293
293
|
hasXls: e.value.userOptions.buttons.csv,
|
|
294
294
|
hasImg: e.value.userOptions.buttons.img,
|
|
295
295
|
hasTable: e.value.userOptions.buttons.table,
|
|
296
296
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
297
|
-
isFullscreen:
|
|
298
|
-
isTooltip:
|
|
297
|
+
isFullscreen: z.value,
|
|
298
|
+
isTooltip: m.value.showTooltip,
|
|
299
299
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
300
|
-
chartElement:
|
|
301
|
-
onToggleFullscreen:
|
|
302
|
-
onGeneratePdf: d(
|
|
303
|
-
onGenerateCsv:
|
|
304
|
-
onGenerateImage: d(
|
|
305
|
-
onToggleTable:
|
|
306
|
-
onToggleTooltip:
|
|
307
|
-
},
|
|
300
|
+
chartElement: A.value,
|
|
301
|
+
onToggleFullscreen: he,
|
|
302
|
+
onGeneratePdf: d(J),
|
|
303
|
+
onGenerateCsv: Q,
|
|
304
|
+
onGenerateImage: d(K),
|
|
305
|
+
onToggleTable: Z,
|
|
306
|
+
onToggleTooltip: ee
|
|
307
|
+
}, ce({ _: 2 }, [
|
|
308
308
|
t.$slots.optionTooltip ? {
|
|
309
309
|
name: "optionTooltip",
|
|
310
|
-
fn:
|
|
311
|
-
|
|
310
|
+
fn: g(() => [
|
|
311
|
+
p(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
312
312
|
]),
|
|
313
313
|
key: "0"
|
|
314
314
|
} : void 0,
|
|
315
315
|
t.$slots.optionPdf ? {
|
|
316
316
|
name: "optionPdf",
|
|
317
|
-
fn:
|
|
318
|
-
|
|
317
|
+
fn: g(() => [
|
|
318
|
+
p(t.$slots, "optionPdf", {}, void 0, !0)
|
|
319
319
|
]),
|
|
320
320
|
key: "1"
|
|
321
321
|
} : void 0,
|
|
322
322
|
t.$slots.optionCsv ? {
|
|
323
323
|
name: "optionCsv",
|
|
324
|
-
fn:
|
|
325
|
-
|
|
324
|
+
fn: g(() => [
|
|
325
|
+
p(t.$slots, "optionCsv", {}, void 0, !0)
|
|
326
326
|
]),
|
|
327
327
|
key: "2"
|
|
328
328
|
} : void 0,
|
|
329
329
|
t.$slots.optionImg ? {
|
|
330
330
|
name: "optionImg",
|
|
331
|
-
fn:
|
|
332
|
-
|
|
331
|
+
fn: g(() => [
|
|
332
|
+
p(t.$slots, "optionImg", {}, void 0, !0)
|
|
333
333
|
]),
|
|
334
334
|
key: "3"
|
|
335
335
|
} : void 0,
|
|
336
336
|
t.$slots.optionTable ? {
|
|
337
337
|
name: "optionTable",
|
|
338
|
-
fn:
|
|
339
|
-
|
|
338
|
+
fn: g(() => [
|
|
339
|
+
p(t.$slots, "optionTable", {}, void 0, !0)
|
|
340
340
|
]),
|
|
341
341
|
key: "4"
|
|
342
342
|
} : void 0,
|
|
343
343
|
t.$slots.optionFullscreen ? {
|
|
344
344
|
name: "optionFullscreen",
|
|
345
|
-
fn:
|
|
346
|
-
|
|
345
|
+
fn: g(({ toggleFullscreen: l, isFullscreen: a }) => [
|
|
346
|
+
p(t.$slots, "optionFullscreen", P(N({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
|
|
347
347
|
]),
|
|
348
348
|
key: "5"
|
|
349
349
|
} : void 0
|
|
350
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) :
|
|
351
|
-
|
|
350
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "onGeneratePdf", "onGenerateImage"])) : h("", !0),
|
|
351
|
+
F.value ? (i(), r("svg", {
|
|
352
352
|
key: 2,
|
|
353
|
-
xmlns: d(
|
|
354
|
-
class:
|
|
355
|
-
viewBox: `0 0 ${
|
|
356
|
-
style:
|
|
353
|
+
xmlns: d(ke),
|
|
354
|
+
class: le({ "vue-data-ui-fullscreen--on": z.value, "vue-data-ui-fulscreen--off": !z.value }),
|
|
355
|
+
viewBox: `0 0 ${f.value.width <= 0 ? 10 : f.value.width} ${f.value.height <= 0 ? 10 : f.value.height}`,
|
|
356
|
+
style: B(`max-width:100%;overflow:visible;background:${e.value.style.backgroundColor};color:${e.value.style.color}`)
|
|
357
357
|
}, [
|
|
358
358
|
n("defs", null, [
|
|
359
359
|
n("linearGradient", {
|
|
360
|
-
id: `age_pyramid_left_${
|
|
360
|
+
id: `age_pyramid_left_${x.value}`,
|
|
361
361
|
x1: "0%",
|
|
362
362
|
y1: "0%",
|
|
363
363
|
x2: "100%",
|
|
@@ -366,14 +366,14 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
366
366
|
n("stop", {
|
|
367
367
|
offset: "0%",
|
|
368
368
|
"stop-color": e.value.style.layout.bars.left.color
|
|
369
|
-
}, null, 8,
|
|
369
|
+
}, null, 8, Be),
|
|
370
370
|
n("stop", {
|
|
371
371
|
offset: "100%",
|
|
372
|
-
"stop-color": `${d(
|
|
373
|
-
}, null, 8,
|
|
374
|
-
], 8,
|
|
372
|
+
"stop-color": `${d(oe)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue)}${d(X)[100 - e.value.style.layout.bars.gradient.intensity]}`
|
|
373
|
+
}, null, 8, Ee)
|
|
374
|
+
], 8, Ge),
|
|
375
375
|
n("linearGradient", {
|
|
376
|
-
id: `age_pyramid_right_${
|
|
376
|
+
id: `age_pyramid_right_${x.value}`,
|
|
377
377
|
x1: "0%",
|
|
378
378
|
y1: "0%",
|
|
379
379
|
x2: "100%",
|
|
@@ -381,31 +381,31 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
381
381
|
}, [
|
|
382
382
|
n("stop", {
|
|
383
383
|
offset: "0%",
|
|
384
|
-
"stop-color": `${d(
|
|
385
|
-
}, null, 8,
|
|
384
|
+
"stop-color": `${d(oe)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue)}${d(X)[100 - e.value.style.layout.bars.gradient.intensity]}`
|
|
385
|
+
}, null, 8, Xe),
|
|
386
386
|
n("stop", {
|
|
387
387
|
offset: "100%",
|
|
388
388
|
"stop-color": e.value.style.layout.bars.right.color
|
|
389
|
-
}, null, 8,
|
|
390
|
-
], 8,
|
|
389
|
+
}, null, 8, Ue)
|
|
390
|
+
], 8, We)
|
|
391
391
|
]),
|
|
392
|
-
(i(!0), r(
|
|
392
|
+
(i(!0), r(L, null, I(T.value, (l, a) => (i(), r("g", null, [
|
|
393
393
|
n("rect", {
|
|
394
394
|
x: l.left.x,
|
|
395
395
|
y: l.left.y,
|
|
396
|
-
width: l.left.width <= 0 ? 1e-4 : l.left.width,
|
|
396
|
+
width: d(v)(l.left.width <= 0 ? 1e-4 : l.left.width),
|
|
397
397
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
398
398
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
399
399
|
rx: e.value.style.layout.bars.borderRadius
|
|
400
|
-
}, null, 8,
|
|
400
|
+
}, null, 8, Ve),
|
|
401
401
|
n("rect", {
|
|
402
402
|
x: l.left.x,
|
|
403
403
|
y: l.left.y,
|
|
404
404
|
width: l.left.width <= 0 ? 1e-4 : l.left.width,
|
|
405
405
|
height: l.left.height <= 0 ? 1e-4 : l.left.height,
|
|
406
|
-
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${
|
|
406
|
+
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${x.value})` : l.left.color,
|
|
407
407
|
rx: e.value.style.layout.bars.borderRadius
|
|
408
|
-
}, null, 8,
|
|
408
|
+
}, null, 8, Ye),
|
|
409
409
|
n("rect", {
|
|
410
410
|
x: l.right.x,
|
|
411
411
|
y: l.right.y,
|
|
@@ -413,18 +413,18 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
413
413
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
414
414
|
fill: e.value.style.layout.bars.gradient.underlayer,
|
|
415
415
|
rx: e.value.style.layout.bars.borderRadius
|
|
416
|
-
}, null, 8,
|
|
416
|
+
}, null, 8, je),
|
|
417
417
|
n("rect", {
|
|
418
418
|
x: l.right.x,
|
|
419
419
|
y: l.right.y,
|
|
420
420
|
width: l.right.width <= 0 ? 1e-4 : l.right.width,
|
|
421
421
|
height: l.right.height <= 0 ? 1e-4 : l.right.height,
|
|
422
|
-
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${
|
|
422
|
+
fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${x.value})` : l.right.color,
|
|
423
423
|
rx: e.value.style.layout.bars.borderRadius
|
|
424
|
-
}, null, 8,
|
|
424
|
+
}, null, 8, He)
|
|
425
425
|
]))), 256)),
|
|
426
426
|
n("g", null, [
|
|
427
|
-
e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g",
|
|
427
|
+
e.value.style.layout.dataLabels.sideTitles.show ? (i(), r("g", qe, [
|
|
428
428
|
n("text", {
|
|
429
429
|
x: o.value.left,
|
|
430
430
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
@@ -432,7 +432,7 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
432
432
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
433
433
|
"text-anchor": "start",
|
|
434
434
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
435
|
-
},
|
|
435
|
+
}, w(e.value.translations.female), 9, Je),
|
|
436
436
|
n("text", {
|
|
437
437
|
x: o.value.right,
|
|
438
438
|
y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
|
|
@@ -440,48 +440,48 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
440
440
|
"font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
441
441
|
"text-anchor": "end",
|
|
442
442
|
"font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
443
|
-
},
|
|
444
|
-
])) :
|
|
445
|
-
e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g",
|
|
446
|
-
(i(!0), r(
|
|
443
|
+
}, w(e.value.translations.male), 9, Ke)
|
|
444
|
+
])) : h("", !0),
|
|
445
|
+
e.value.style.layout.dataLabels.yAxis.show ? (i(), r("g", Qe, [
|
|
446
|
+
(i(!0), r(L, null, I(ne.value, (l, a) => (i(), r(L, null, [
|
|
447
447
|
a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (i(), r("text", {
|
|
448
448
|
key: 0,
|
|
449
449
|
x: o.value.centerX,
|
|
450
|
-
y: o.value.top + o.value.height /
|
|
450
|
+
y: o.value.top + o.value.height / C.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
451
451
|
"text-anchor": "middle",
|
|
452
452
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
453
453
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
454
454
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
455
|
-
},
|
|
455
|
+
}, w(d(k)(
|
|
456
456
|
e.value.style.layout.dataLabels.yAxis.formatter,
|
|
457
457
|
l,
|
|
458
|
-
d(
|
|
458
|
+
d(_)({ v: l }),
|
|
459
459
|
{ datapoint: l, seriesIndex: a }
|
|
460
|
-
)), 9,
|
|
460
|
+
)), 9, Ze)) : h("", !0)
|
|
461
461
|
], 64))), 256))
|
|
462
|
-
])) :
|
|
463
|
-
e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g",
|
|
464
|
-
e.value.style.layout.grid.show ? (i(), r("g",
|
|
462
|
+
])) : h("", !0),
|
|
463
|
+
e.value.style.layout.dataLabels.xAxis.show ? (i(), r("g", et, [
|
|
464
|
+
e.value.style.layout.grid.show ? (i(), r("g", tt, [
|
|
465
465
|
n("line", {
|
|
466
|
-
x1:
|
|
467
|
-
x2:
|
|
466
|
+
x1: $.value.right[0].x,
|
|
467
|
+
x2: $.value.right.at(-1).x,
|
|
468
468
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
469
469
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
470
470
|
stroke: e.value.style.layout.grid.stroke,
|
|
471
471
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
472
472
|
"stroke-linecap": "round"
|
|
473
|
-
}, null, 8,
|
|
473
|
+
}, null, 8, lt),
|
|
474
474
|
n("line", {
|
|
475
|
-
x1:
|
|
476
|
-
x2:
|
|
475
|
+
x1: $.value.left[0].x,
|
|
476
|
+
x2: $.value.left.at(-1).x,
|
|
477
477
|
y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
478
478
|
y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
479
479
|
stroke: e.value.style.layout.grid.stroke,
|
|
480
480
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
481
481
|
"stroke-linecap": "round"
|
|
482
|
-
}, null, 8,
|
|
483
|
-
])) :
|
|
484
|
-
(i(!0), r(
|
|
482
|
+
}, null, 8, at)
|
|
483
|
+
])) : h("", !0),
|
|
484
|
+
(i(!0), r(L, null, I($.value.right, (l, a) => (i(), r("g", null, [
|
|
485
485
|
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
486
486
|
key: 0,
|
|
487
487
|
x1: l.x,
|
|
@@ -491,7 +491,7 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
491
491
|
stroke: e.value.style.layout.grid.stroke,
|
|
492
492
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
493
493
|
"stroke-linecap": "round"
|
|
494
|
-
}, null, 8,
|
|
494
|
+
}, null, 8, ot)) : h("", !0),
|
|
495
495
|
n("text", {
|
|
496
496
|
x: l.x,
|
|
497
497
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
@@ -499,16 +499,16 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
499
499
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
500
500
|
"text-anchor": "middle",
|
|
501
501
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
502
|
-
},
|
|
502
|
+
}, w(d(k)(
|
|
503
503
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
504
504
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
505
|
-
d(
|
|
505
|
+
d(_)({
|
|
506
506
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
507
507
|
}),
|
|
508
508
|
{ datapoint: l, seriesIndex: a }
|
|
509
|
-
)), 9,
|
|
509
|
+
)), 9, st)
|
|
510
510
|
]))), 256)),
|
|
511
|
-
(i(!0), r(
|
|
511
|
+
(i(!0), r(L, null, I($.value.left, (l, a) => (i(), r("g", null, [
|
|
512
512
|
e.value.style.layout.grid.show ? (i(), r("line", {
|
|
513
513
|
key: 0,
|
|
514
514
|
x1: l.x,
|
|
@@ -518,7 +518,7 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
518
518
|
stroke: e.value.style.layout.grid.stroke,
|
|
519
519
|
"stroke-width": e.value.style.layout.grid.strokeWidth,
|
|
520
520
|
"stroke-linecap": "round"
|
|
521
|
-
}, null, 8,
|
|
521
|
+
}, null, 8, it)) : h("", !0),
|
|
522
522
|
n("text", {
|
|
523
523
|
x: l.x,
|
|
524
524
|
y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
|
|
@@ -526,44 +526,44 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
526
526
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
527
527
|
"text-anchor": "middle",
|
|
528
528
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
529
|
-
},
|
|
529
|
+
}, w(d(k)(
|
|
530
530
|
e.value.style.layout.dataLabels.xAxis.formatter,
|
|
531
531
|
l.value / e.value.style.layout.dataLabels.xAxis.scale,
|
|
532
|
-
d(
|
|
532
|
+
d(_)({
|
|
533
533
|
v: l.value / e.value.style.layout.dataLabels.xAxis.scale
|
|
534
534
|
}),
|
|
535
535
|
{ datapoint: l, seriesIndex: a }
|
|
536
|
-
)), 9,
|
|
536
|
+
)), 9, ut)
|
|
537
537
|
]))), 256)),
|
|
538
538
|
n("text", {
|
|
539
539
|
x: o.value.right,
|
|
540
|
-
y:
|
|
540
|
+
y: f.value.height,
|
|
541
541
|
"text-anchor": "end",
|
|
542
542
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
543
543
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
544
544
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
545
|
-
},
|
|
546
|
-
])) :
|
|
545
|
+
}, w(e.value.style.layout.dataLabels.xAxis.translation), 9, rt)
|
|
546
|
+
])) : h("", !0)
|
|
547
547
|
]),
|
|
548
|
-
(i(!0), r(
|
|
548
|
+
(i(!0), r(L, null, I(U.dataset, (l, a) => (i(), r("g", null, [
|
|
549
549
|
n("rect", {
|
|
550
550
|
x: o.value.left,
|
|
551
|
-
y: o.value.top + o.value.height /
|
|
551
|
+
y: o.value.top + o.value.height / C.value * a - e.value.style.layout.bars.gap / 2,
|
|
552
552
|
width: o.value.width <= 0 ? 1e-4 : o.value.width,
|
|
553
|
-
height: o.value.height /
|
|
554
|
-
fill:
|
|
555
|
-
onMouseover: (u) =>
|
|
553
|
+
height: o.value.height / C.value <= 0 ? 1e-4 : o.value.height / C.value,
|
|
554
|
+
fill: M.value !== null && M.value === a ? `${e.value.style.highlighter.color}${d(X)[e.value.style.highlighter.opacity]}` : "transparent",
|
|
555
|
+
onMouseover: (u) => ye(a, l),
|
|
556
556
|
onMouseleave: s[0] || (s[0] = (u) => {
|
|
557
|
-
|
|
557
|
+
M.value = null, R.value = !1;
|
|
558
558
|
})
|
|
559
|
-
}, null, 40,
|
|
559
|
+
}, null, 40, nt)
|
|
560
560
|
]))), 256)),
|
|
561
|
-
|
|
562
|
-
], 14,
|
|
563
|
-
t.$slots.watermark ? (i(), r("div",
|
|
564
|
-
|
|
565
|
-
])) :
|
|
566
|
-
|
|
561
|
+
p(t.$slots, "svg", { svg: f.value }, void 0, !0)
|
|
562
|
+
], 14, De)) : h("", !0),
|
|
563
|
+
t.$slots.watermark ? (i(), r("div", dt, [
|
|
564
|
+
p(t.$slots, "watermark", P(N({ isPrinting: d(H) || d(q) })), void 0, !0)
|
|
565
|
+
])) : h("", !0),
|
|
566
|
+
F.value ? h("", !0) : (i(), W(Oe, {
|
|
567
567
|
key: 4,
|
|
568
568
|
config: {
|
|
569
569
|
type: "pyramid",
|
|
@@ -575,9 +575,9 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
}, null, 8, ["config"])),
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
show:
|
|
578
|
+
p(t.$slots, "legend", { legend: T.value }, void 0, !0),
|
|
579
|
+
E(Fe, {
|
|
580
|
+
show: m.value.showTooltip && R.value,
|
|
581
581
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
582
582
|
color: e.value.style.tooltip.color,
|
|
583
583
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -587,23 +587,23 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
587
587
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
588
588
|
position: e.value.style.tooltip.position,
|
|
589
589
|
offsetY: e.value.style.tooltip.offsetY,
|
|
590
|
-
parent:
|
|
591
|
-
content:
|
|
590
|
+
parent: A.value,
|
|
591
|
+
content: D.value,
|
|
592
592
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
593
593
|
}, {
|
|
594
|
-
"tooltip-before":
|
|
595
|
-
|
|
594
|
+
"tooltip-before": g(() => [
|
|
595
|
+
p(t.$slots, "tooltip-before", P(N({ ...G.value })), void 0, !0)
|
|
596
596
|
]),
|
|
597
|
-
"tooltip-after":
|
|
598
|
-
|
|
597
|
+
"tooltip-after": g(() => [
|
|
598
|
+
p(t.$slots, "tooltip-after", P(N({ ...G.value })), void 0, !0)
|
|
599
599
|
]),
|
|
600
600
|
_: 3
|
|
601
601
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
|
|
602
|
-
|
|
602
|
+
F.value ? (i(), W(Pe, {
|
|
603
603
|
key: 5,
|
|
604
604
|
hideDetails: "",
|
|
605
605
|
config: {
|
|
606
|
-
open:
|
|
606
|
+
open: m.value.showTable,
|
|
607
607
|
maxHeight: 1e4,
|
|
608
608
|
body: {
|
|
609
609
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -615,29 +615,29 @@ const Ne = ["id"], Re = ["xmlns", "viewBox"], De = ["id"], Ge = ["stop-color"],
|
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
}, {
|
|
618
|
-
content:
|
|
619
|
-
|
|
620
|
-
colNames:
|
|
621
|
-
head:
|
|
622
|
-
body:
|
|
623
|
-
config:
|
|
618
|
+
content: g(() => [
|
|
619
|
+
E(Me, {
|
|
620
|
+
colNames: O.value.colNames,
|
|
621
|
+
head: O.value.head,
|
|
622
|
+
body: O.value.body,
|
|
623
|
+
config: O.value.config,
|
|
624
624
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
625
|
-
onClose: s[1] || (s[1] = (l) =>
|
|
625
|
+
onClose: s[1] || (s[1] = (l) => m.value.showTable = !1)
|
|
626
626
|
}, {
|
|
627
|
-
th:
|
|
628
|
-
|
|
627
|
+
th: g(({ th: l }) => [
|
|
628
|
+
ae(w(l), 1)
|
|
629
629
|
]),
|
|
630
|
-
td:
|
|
631
|
-
|
|
630
|
+
td: g(({ td: l }) => [
|
|
631
|
+
ae(w(l), 1)
|
|
632
632
|
]),
|
|
633
633
|
_: 1
|
|
634
634
|
}, 8, ["colNames", "head", "body", "config", "title"])
|
|
635
635
|
]),
|
|
636
636
|
_: 1
|
|
637
|
-
}, 8, ["config"])) :
|
|
638
|
-
], 14,
|
|
637
|
+
}, 8, ["config"])) : h("", !0)
|
|
638
|
+
], 14, Re));
|
|
639
639
|
}
|
|
640
|
-
},
|
|
640
|
+
}, _t = /* @__PURE__ */ Ne(vt, [["__scopeId", "data-v-4660f4e6"]]);
|
|
641
641
|
export {
|
|
642
|
-
|
|
642
|
+
_t as default
|
|
643
643
|
};
|