vue-data-ui 3.22.13 → 3.23.0
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/LICENSE +1 -1
- package/README.md +13 -1
- package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
- package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
- package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
- package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
- package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
- package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
- package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
- package/dist/HillActions-BWhxHlrj.js +187 -0
- package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
- package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
- package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
- package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
- package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
- package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
- package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
- package/dist/Title-BODtwViI.js +87 -0
- package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
- package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +2 -0
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
- package/dist/exposedLib-DWLRqRhv.js +25 -0
- package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
- package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
- package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
- package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
- package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
- package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +493 -0
- package/dist/types/vue-ui-hill.d.ts +90 -0
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
- package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
- package/dist/useHints-Dq_w2E8B.js +66 -0
- package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
- package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
- package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
- package/dist/useTransitions-g_zBREk2.js +39 -0
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
- package/dist/vue-data-ui.js +77 -76
- package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
- package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
- package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
- package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
- package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
- package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
- package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
- package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
- package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
- package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
- package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
- package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
- package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
- package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
- package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
- package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
- package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
- package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
- package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
- package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
- package/dist/vue-ui-funnel-CjYosIik.js +797 -0
- package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
- package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
- package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
- package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
- package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
- package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
- package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
- package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
- package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
- package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
- package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
- package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
- package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
- package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
- package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
- package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
- package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
- package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
- package/dist/vue-ui-rating--K7rX2an.js +360 -0
- package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
- package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
- package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
- package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
- package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
- package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
- package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
- package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
- package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
- package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
- package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
- package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
- package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
- package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
- package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
- package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
- package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
- package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
- package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
- package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
- package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
- package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
- package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
- package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
- package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
- package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
- package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
- package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
- package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
- package/dist/vue_ui_hill-dnltu0L-.js +368 -0
- package/package.json +2 -2
- package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
- package/dist/Title-BuPs74IB.js +0 -87
- package/dist/exposedLib-Ciw6TGtP.js +0 -25
- package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
- package/dist/useMountedDelay-BAjrhRJb.js +0 -14
- package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
- package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
- package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
- package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
- package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
- package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
- package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
- package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
- package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
- package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
- package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
- package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
- package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
- package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
- package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
- package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
- package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
- package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
- package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
- package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
- package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
- package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
- package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
- package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
- package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
- package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
- package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
- package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
- package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
- package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
- package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
- package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
- package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
|
@@ -1,1246 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { At as t, Bt as n, E as r, K as i, Q as a, Wt as o, Y as s, bt as ee, et as te, i as c, qt as ne, st as re, t as ie, y as l, zt as ae } from "./lib-CFm_J26b.js";
|
|
3
|
-
import { t as oe } from "./useConfig-C0V0eG7L.js";
|
|
4
|
-
import { t as se } from "./usePrinter-BH-xle1O.js";
|
|
5
|
-
import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as ue } from "./useSvgExport-Ba9qBr9M.js";
|
|
7
|
-
import { t as de } from "./useNestedProp-BY6DNN3i.js";
|
|
8
|
-
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as pe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
10
|
-
import { t as me } from "./img-Bikk1dGb.js";
|
|
11
|
-
import { n as he } from "./Title-BuPs74IB.js";
|
|
12
|
-
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { l as _e, t as ve } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
-
import { t as ye } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
-
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
16
|
-
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
17
|
-
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
18
|
-
import { t as Ce } from "./vue_ui_age_pyramid-BY6c-oX_.js";
|
|
19
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as we, createTextVNode as Te, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Ee, nextTick as De, normalizeClass as Oe, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ke, onMounted as Ae, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as je, shallowRef as Me, toDisplayString as T, toRefs as Ne, unref as E, watch as Pe, watchEffect as Fe, withCtx as D } from "vue";
|
|
20
|
-
//#region src/components/vue-ui-age-pyramid.vue
|
|
21
|
-
var Ie = /* @__PURE__ */ e({ default: () => lt }), Le = ["id"], Re = ["id"], ze = { style: { position: "relative" } }, Be = [
|
|
22
|
-
"xmlns",
|
|
23
|
-
"viewBox",
|
|
24
|
-
"aria-describedby"
|
|
25
|
-
], Ve = [
|
|
26
|
-
"x",
|
|
27
|
-
"y",
|
|
28
|
-
"width",
|
|
29
|
-
"height"
|
|
30
|
-
], He = [
|
|
31
|
-
"x",
|
|
32
|
-
"y",
|
|
33
|
-
"width",
|
|
34
|
-
"height",
|
|
35
|
-
"fill",
|
|
36
|
-
"rx"
|
|
37
|
-
], Ue = [
|
|
38
|
-
"x",
|
|
39
|
-
"y",
|
|
40
|
-
"width",
|
|
41
|
-
"height",
|
|
42
|
-
"fill",
|
|
43
|
-
"rx"
|
|
44
|
-
], We = [
|
|
45
|
-
"x",
|
|
46
|
-
"y",
|
|
47
|
-
"width",
|
|
48
|
-
"height",
|
|
49
|
-
"fill",
|
|
50
|
-
"rx"
|
|
51
|
-
], Ge = [
|
|
52
|
-
"x",
|
|
53
|
-
"y",
|
|
54
|
-
"width",
|
|
55
|
-
"height",
|
|
56
|
-
"fill",
|
|
57
|
-
"rx"
|
|
58
|
-
], Ke = { key: 0 }, qe = [
|
|
59
|
-
"x",
|
|
60
|
-
"y",
|
|
61
|
-
"fill",
|
|
62
|
-
"font-size",
|
|
63
|
-
"font-weight"
|
|
64
|
-
], Je = [
|
|
65
|
-
"x",
|
|
66
|
-
"y",
|
|
67
|
-
"fill",
|
|
68
|
-
"font-size",
|
|
69
|
-
"font-weight"
|
|
70
|
-
], Ye = { key: 1 }, Xe = [
|
|
71
|
-
"x",
|
|
72
|
-
"y",
|
|
73
|
-
"font-size",
|
|
74
|
-
"fill",
|
|
75
|
-
"font-weight"
|
|
76
|
-
], Ze = { key: 2 }, Qe = { key: 0 }, $e = [
|
|
77
|
-
"x1",
|
|
78
|
-
"x2",
|
|
79
|
-
"y1",
|
|
80
|
-
"y2",
|
|
81
|
-
"stroke",
|
|
82
|
-
"stroke-width"
|
|
83
|
-
], et = [
|
|
84
|
-
"x1",
|
|
85
|
-
"x2",
|
|
86
|
-
"y1",
|
|
87
|
-
"y2",
|
|
88
|
-
"stroke",
|
|
89
|
-
"stroke-width"
|
|
90
|
-
], tt = [
|
|
91
|
-
"x1",
|
|
92
|
-
"x2",
|
|
93
|
-
"y1",
|
|
94
|
-
"y2",
|
|
95
|
-
"stroke",
|
|
96
|
-
"stroke-width"
|
|
97
|
-
], nt = [
|
|
98
|
-
"x1",
|
|
99
|
-
"x2",
|
|
100
|
-
"y1",
|
|
101
|
-
"y2",
|
|
102
|
-
"stroke",
|
|
103
|
-
"stroke-width"
|
|
104
|
-
], rt = [
|
|
105
|
-
"font-size",
|
|
106
|
-
"fill",
|
|
107
|
-
"text-anchor",
|
|
108
|
-
"font-weight",
|
|
109
|
-
"transform"
|
|
110
|
-
], it = [
|
|
111
|
-
"font-size",
|
|
112
|
-
"fill",
|
|
113
|
-
"text-anchor",
|
|
114
|
-
"font-weight",
|
|
115
|
-
"transform"
|
|
116
|
-
], at = [
|
|
117
|
-
"x",
|
|
118
|
-
"y",
|
|
119
|
-
"font-size",
|
|
120
|
-
"fill",
|
|
121
|
-
"font-weight"
|
|
122
|
-
], ot = [
|
|
123
|
-
"x",
|
|
124
|
-
"y",
|
|
125
|
-
"width",
|
|
126
|
-
"height",
|
|
127
|
-
"fill",
|
|
128
|
-
"onMouseover",
|
|
129
|
-
"onMouseleave",
|
|
130
|
-
"onClick"
|
|
131
|
-
], st = {
|
|
132
|
-
key: 0,
|
|
133
|
-
style: {
|
|
134
|
-
position: "absolute",
|
|
135
|
-
top: "100%",
|
|
136
|
-
left: "0",
|
|
137
|
-
width: "100%"
|
|
138
|
-
},
|
|
139
|
-
"data-dom-to-png-ignore": "",
|
|
140
|
-
"aria-hidden": "true"
|
|
141
|
-
}, ct = {
|
|
142
|
-
key: 5,
|
|
143
|
-
class: "vue-data-ui-watermark"
|
|
144
|
-
}, lt = /*#__PURE__*/ ge({
|
|
145
|
-
__name: "vue-ui-age-pyramid",
|
|
146
|
-
props: {
|
|
147
|
-
config: {
|
|
148
|
-
type: Object,
|
|
149
|
-
default() {
|
|
150
|
-
return {};
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
dataset: {
|
|
154
|
-
type: Array,
|
|
155
|
-
default() {
|
|
156
|
-
return [];
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
emits: ["copyAlt"],
|
|
161
|
-
setup(e, { expose: ge, emit: Ie }) {
|
|
162
|
-
let lt = _(() => import("./Tooltip-CA1rtSyl.js")), ut = _(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), dt = _(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), ft = _(() => import("./DataTable-DzPEVvSo.js")), pt = _(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), mt = _(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), ht = _(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), gt = _(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_age_pyramid: _t } = oe(), { isThemeValid: vt, warnInvalidTheme: yt } = fe(), O = e, bt = Ie, xt = d(() => !!O.dataset && O.dataset.length), k = S(i()), A = S(!1), St = S(""), j = S(null), Ct = S(0), M = S(null), wt = S(null), Tt = S(null), Et = S(null), Dt = S(0), Ot = S(0), kt = S(null), N = S(null), At = S(null), P = S(!1), F = S(!1), I = S(null), jt = S({
|
|
163
|
-
x: 0,
|
|
164
|
-
y: 0
|
|
165
|
-
}), L = S("pointer"), Mt = S(!1), R = S(Bt()), z = d(() => R.value.userOptions.useCursorPointer), Nt = d(() => ne({
|
|
166
|
-
defaultConfig: {
|
|
167
|
-
userOptions: { show: !1 },
|
|
168
|
-
table: { show: !1 },
|
|
169
|
-
translations: {
|
|
170
|
-
male: "",
|
|
171
|
-
female: ""
|
|
172
|
-
},
|
|
173
|
-
style: {
|
|
174
|
-
backgroundColor: "#99999930",
|
|
175
|
-
layout: {
|
|
176
|
-
bars: {
|
|
177
|
-
left: { color: "#CACACA" },
|
|
178
|
-
right: { color: "#999999" }
|
|
179
|
-
},
|
|
180
|
-
dataLabels: {
|
|
181
|
-
xAxis: {
|
|
182
|
-
fontSize: 0,
|
|
183
|
-
scale: 1e3,
|
|
184
|
-
translation: ""
|
|
185
|
-
},
|
|
186
|
-
yAxis: { show: !1 }
|
|
187
|
-
},
|
|
188
|
-
grid: { stroke: "#6A6A6A" }
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
userConfig: R.value.skeletonConfig ?? {}
|
|
193
|
-
})), { loading: Pt, FINAL_DATASET: Ft, manualLoading: It } = ce({
|
|
194
|
-
...Ne(O),
|
|
195
|
-
FINAL_CONFIG: R,
|
|
196
|
-
prepareConfig: Bt,
|
|
197
|
-
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
198
|
-
[
|
|
199
|
-
"_",
|
|
200
|
-
9,
|
|
201
|
-
2,
|
|
202
|
-
2
|
|
203
|
-
],
|
|
204
|
-
[
|
|
205
|
-
"_",
|
|
206
|
-
8,
|
|
207
|
-
3,
|
|
208
|
-
3
|
|
209
|
-
],
|
|
210
|
-
[
|
|
211
|
-
"_",
|
|
212
|
-
7,
|
|
213
|
-
5,
|
|
214
|
-
5
|
|
215
|
-
],
|
|
216
|
-
[
|
|
217
|
-
"_",
|
|
218
|
-
6,
|
|
219
|
-
8,
|
|
220
|
-
8
|
|
221
|
-
],
|
|
222
|
-
[
|
|
223
|
-
"_",
|
|
224
|
-
5,
|
|
225
|
-
13,
|
|
226
|
-
13
|
|
227
|
-
],
|
|
228
|
-
[
|
|
229
|
-
"_",
|
|
230
|
-
4,
|
|
231
|
-
21,
|
|
232
|
-
21
|
|
233
|
-
],
|
|
234
|
-
[
|
|
235
|
-
"_",
|
|
236
|
-
3,
|
|
237
|
-
34,
|
|
238
|
-
34
|
|
239
|
-
],
|
|
240
|
-
[
|
|
241
|
-
"_",
|
|
242
|
-
2,
|
|
243
|
-
55,
|
|
244
|
-
55
|
|
245
|
-
],
|
|
246
|
-
[
|
|
247
|
-
"_",
|
|
248
|
-
1,
|
|
249
|
-
89,
|
|
250
|
-
89
|
|
251
|
-
],
|
|
252
|
-
[
|
|
253
|
-
"_",
|
|
254
|
-
0,
|
|
255
|
-
144,
|
|
256
|
-
144
|
|
257
|
-
]
|
|
258
|
-
],
|
|
259
|
-
skeletonConfig: ne({
|
|
260
|
-
defaultConfig: R.value,
|
|
261
|
-
userConfig: Nt.value
|
|
262
|
-
})
|
|
263
|
-
}), { userOptionsVisible: Lt, setUserOptionsVisibility: Rt, keepUserOptionState: zt } = xe({ config: R.value }), { svgRef: B } = Se({ config: R.value.style.title });
|
|
264
|
-
function Bt() {
|
|
265
|
-
let e = de({
|
|
266
|
-
userConfig: O.config,
|
|
267
|
-
defaultConfig: _t
|
|
268
|
-
}), t = e.theme;
|
|
269
|
-
if (!t) return e;
|
|
270
|
-
if (!vt.value(e)) return yt(e), e;
|
|
271
|
-
let n = de({
|
|
272
|
-
userConfig: Ce[t] || O.config,
|
|
273
|
-
defaultConfig: e
|
|
274
|
-
});
|
|
275
|
-
return de({
|
|
276
|
-
userConfig: O.config,
|
|
277
|
-
defaultConfig: n
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
Pe(() => O.config, (e) => {
|
|
281
|
-
Pt.value || (R.value = Bt()), Lt.value = !R.value.userOptions.showOnChartHover, Ht(), Dt.value += 1, Ot.value += 1, U.value.showTable = R.value.table.show, U.value.showTooltip = R.value.style.tooltip.show;
|
|
282
|
-
}, { deep: !0 }), Pe(() => O.dataset, (e) => {
|
|
283
|
-
Array.isArray(e) && e.length > 0 && (It.value = !1);
|
|
284
|
-
}, { deep: !0 });
|
|
285
|
-
let V = Me(null), H = Me(null);
|
|
286
|
-
Ae(() => {
|
|
287
|
-
Ht();
|
|
288
|
-
});
|
|
289
|
-
let Vt = d(() => !!R.value.debug);
|
|
290
|
-
function Ht() {
|
|
291
|
-
if (t(O.dataset) && (te({
|
|
292
|
-
componentName: "VueUiAgePyramid",
|
|
293
|
-
type: "dataset",
|
|
294
|
-
debug: Vt.value
|
|
295
|
-
}), It.value = !0), t(O.dataset) || (It.value = R.value.loading), R.value.responsive) {
|
|
296
|
-
let e = _e(() => {
|
|
297
|
-
let { width: e, height: t } = ve({
|
|
298
|
-
chart: M.value,
|
|
299
|
-
title: R.value.style.title.text ? wt.value : null,
|
|
300
|
-
source: Tt.value,
|
|
301
|
-
noTitle: Et.value
|
|
302
|
-
});
|
|
303
|
-
requestAnimationFrame(() => {
|
|
304
|
-
W.value.width = e, W.value.height = t;
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect()), V.value = new ResizeObserver(e), H.value = M.value.parentNode, V.value.observe(H.value);
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
ke(() => {
|
|
311
|
-
V.value && (H.value && V.value.unobserve(H.value), V.value.disconnect());
|
|
312
|
-
});
|
|
313
|
-
let { isPrinting: Ut, isImaging: Wt, generatePdf: Gt, generateImage: Kt } = se({
|
|
314
|
-
elementId: `vue-ui-age-pyramid_${k.value}`,
|
|
315
|
-
fileName: R.value.style.title.text || "vue-ui-age-pyramid",
|
|
316
|
-
options: R.value.userOptions.print
|
|
317
|
-
}), qt = d(() => R.value.userOptions.show && !R.value.style.title.text), U = S({
|
|
318
|
-
showTable: R.value.table.show,
|
|
319
|
-
showTooltip: R.value.style.tooltip.show
|
|
320
|
-
});
|
|
321
|
-
Pe(R, () => {
|
|
322
|
-
U.value = {
|
|
323
|
-
showTable: R.value.table.show,
|
|
324
|
-
showTooltip: R.value.style.tooltip.show
|
|
325
|
-
};
|
|
326
|
-
}, { immediate: !0 });
|
|
327
|
-
let W = S({
|
|
328
|
-
height: R.value.style.height,
|
|
329
|
-
width: R.value.style.width
|
|
330
|
-
}), Jt = d(() => W.value.width), Yt = d(() => W.value.height), Xt = S(0), Zt = _e((e) => {
|
|
331
|
-
Xt.value = e;
|
|
332
|
-
}, 100);
|
|
333
|
-
Fe((e) => {
|
|
334
|
-
let t = kt.value;
|
|
335
|
-
if (!t) return;
|
|
336
|
-
let n = new ResizeObserver((e) => {
|
|
337
|
-
Zt(e[0].contentRect.height);
|
|
338
|
-
});
|
|
339
|
-
n.observe(t), e(() => n.disconnect());
|
|
340
|
-
}), ke(() => {
|
|
341
|
-
Xt.value = 0;
|
|
342
|
-
});
|
|
343
|
-
let G = d(() => {
|
|
344
|
-
let e = W.value.width - R.value.style.layout.padding.right - R.value.style.layout.padding.left, t = R.value.style.layout.padding.left, n = W.value.width - R.value.style.layout.padding.right;
|
|
345
|
-
return {
|
|
346
|
-
top: R.value.style.layout.padding.top + R.value.style.layout.dataLabels.sideTitles.fontSize + R.value.style.layout.dataLabels.sideTitles.offsetY + 12,
|
|
347
|
-
left: t,
|
|
348
|
-
right: n,
|
|
349
|
-
bottom: W.value.height - R.value.style.layout.padding.bottom - Xt.value,
|
|
350
|
-
width: e,
|
|
351
|
-
height: W.value.height - R.value.style.layout.padding.top - R.value.style.layout.padding.bottom - Xt.value - R.value.style.layout.dataLabels.sideTitles.fontSize - R.value.style.layout.dataLabels.sideTitles.offsetY - 12,
|
|
352
|
-
centerX: R.value.style.layout.padding.left + e / 2,
|
|
353
|
-
leftChart: {
|
|
354
|
-
width: e / 2 - R.value.style.layout.centerSlit.width,
|
|
355
|
-
right: t + e / 2 - R.value.style.layout.centerSlit.width
|
|
356
|
-
},
|
|
357
|
-
rightChart: {
|
|
358
|
-
width: e / 2 - R.value.style.layout.centerSlit.width,
|
|
359
|
-
left: t + e / 2 + R.value.style.layout.centerSlit.width
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
}), Qt = d(() => Ft.value.map((e) => R.value.style.layout.dataLabels.yAxis.display === "age" ? e[1] : e[0])), K = d(() => {
|
|
363
|
-
let e = $t(q.value / 5), t = [], n = [];
|
|
364
|
-
for (let r = 0; r <= 5; r += 1) {
|
|
365
|
-
let i = e * r, a = e * (r - 5);
|
|
366
|
-
t.push({
|
|
367
|
-
value: i,
|
|
368
|
-
x: G.value.left + G.value.width / 2 + R.value.style.layout.centerSlit.width + i / q.value * G.value.leftChart.width
|
|
369
|
-
}), n.push({
|
|
370
|
-
value: Math.abs(a),
|
|
371
|
-
x: G.value.left + G.value.width / 2 + a / q.value * G.value.leftChart.width - R.value.style.layout.centerSlit.width
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
return {
|
|
375
|
-
right: t,
|
|
376
|
-
left: n
|
|
377
|
-
};
|
|
378
|
-
});
|
|
379
|
-
function $t(e) {
|
|
380
|
-
if (e === 0) return 0;
|
|
381
|
-
let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
|
|
382
|
-
return n = Math.round(e / t) * t, n;
|
|
383
|
-
}
|
|
384
|
-
let q = d(() => Math.max(...Ft.value.flatMap((e) => e.slice(-2).map((e) => l(e))))), J = d(() => Ft.value.length), en = d(() => Ft.value.map((e) => ({
|
|
385
|
-
segment: e[0],
|
|
386
|
-
age: e[1],
|
|
387
|
-
left: {
|
|
388
|
-
value: e[2],
|
|
389
|
-
proportionToMax: e[2] / q.value
|
|
390
|
-
},
|
|
391
|
-
right: {
|
|
392
|
-
value: e[3],
|
|
393
|
-
proportionToMax: e[3] / q.value
|
|
394
|
-
}
|
|
395
|
-
}))), Y = d(() => en.value.map((e, t) => {
|
|
396
|
-
let n = G.value.top + G.value.height / J.value * t, r = G.value.height / J.value - R.value.style.layout.bars.gap;
|
|
397
|
-
return {
|
|
398
|
-
segment: e.segment,
|
|
399
|
-
age: e.age,
|
|
400
|
-
left: {
|
|
401
|
-
...e.left,
|
|
402
|
-
y: n,
|
|
403
|
-
color: R.value.style.layout.bars.left.color,
|
|
404
|
-
x: G.value.leftChart.right - e.left.proportionToMax * G.value.leftChart.width,
|
|
405
|
-
width: l(e.left.proportionToMax * G.value.leftChart.width),
|
|
406
|
-
height: r
|
|
407
|
-
},
|
|
408
|
-
right: {
|
|
409
|
-
...e.right,
|
|
410
|
-
y: n,
|
|
411
|
-
color: R.value.style.layout.bars.right.color,
|
|
412
|
-
x: G.value.rightChart.left,
|
|
413
|
-
width: l(e.right.proportionToMax * G.value.rightChart.width),
|
|
414
|
-
height: r
|
|
415
|
-
}
|
|
416
|
-
};
|
|
417
|
-
})), tn = S(null);
|
|
418
|
-
function nn(e) {
|
|
419
|
-
let [t, n, r, i] = e;
|
|
420
|
-
return {
|
|
421
|
-
segment: t,
|
|
422
|
-
index: n,
|
|
423
|
-
left: r,
|
|
424
|
-
right: i
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
function rn(e, t) {
|
|
428
|
-
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
429
|
-
datapoint: nn(t),
|
|
430
|
-
seriesIndex: e
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
function an(e, t) {
|
|
434
|
-
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
435
|
-
datapoint: nn(t),
|
|
436
|
-
seriesIndex: e
|
|
437
|
-
}), !(L.value === "keyboard" && I.value === e) && (j.value = null, A.value = !1);
|
|
438
|
-
}
|
|
439
|
-
function on(e) {
|
|
440
|
-
if (!B.value) return;
|
|
441
|
-
let t = Y.value[e];
|
|
442
|
-
if (!t) return;
|
|
443
|
-
let n = o(G.value.left + G.value.width / 2, t.left.y + t.left.height / 2, B.value);
|
|
444
|
-
n && (jt.value = n);
|
|
445
|
-
}
|
|
446
|
-
function sn(e, t, n = "pointer") {
|
|
447
|
-
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
448
|
-
datapoint: nn(t),
|
|
449
|
-
seriesIndex: e
|
|
450
|
-
}), j.value = e, I.value = e, L.value = n, tn.value = {
|
|
451
|
-
datapoint: t,
|
|
452
|
-
seriesIndex: e,
|
|
453
|
-
series: Y.value,
|
|
454
|
-
config: R.value
|
|
455
|
-
};
|
|
456
|
-
let r = R.value.style.tooltip.customFormat;
|
|
457
|
-
if (ee(r) && re(() => r({
|
|
458
|
-
seriesIndex: e,
|
|
459
|
-
datapoint: {
|
|
460
|
-
segment: t[0],
|
|
461
|
-
index: t[1],
|
|
462
|
-
left: t[2],
|
|
463
|
-
right: t[3]
|
|
464
|
-
},
|
|
465
|
-
series: Y.value,
|
|
466
|
-
config: R.value
|
|
467
|
-
}))) St.value = r({
|
|
468
|
-
seriesIndex: e,
|
|
469
|
-
datapoint: {
|
|
470
|
-
segment: t[0],
|
|
471
|
-
index: t[1],
|
|
472
|
-
left: t[2],
|
|
473
|
-
right: t[3]
|
|
474
|
-
},
|
|
475
|
-
series: Y.value,
|
|
476
|
-
config: R.value
|
|
477
|
-
});
|
|
478
|
-
else {
|
|
479
|
-
let n = "", r = Y.value[e];
|
|
480
|
-
n += `<div><b>${r.segment}</b></div>`, n += `<div>${R.value.translations.age}: ${c(R.value.style.layout.dataLabels.yAxis.formatter, l(r.age), s({ v: l(r.age) }), {
|
|
481
|
-
datapoint: t,
|
|
482
|
-
seriesIndex: e
|
|
483
|
-
})}</div>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${R.value.style.tooltip.borderColor}">`, n += "<div style=\"display:flex; flex-direction:row;gap:12px\">", n += `<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="${R.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : R.value.style.layout.bars.left.color}"/></svg><div>${R.value.translations.female}</div><div><b>${c(R.value.style.layout.dataLabels.xAxis.formatter, l(r.left.value), s({ v: l(r.left.value) }), {
|
|
484
|
-
datapoint: t,
|
|
485
|
-
seriesIndex: e
|
|
486
|
-
})}</b></div></div>`, n += `<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="${R.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : R.value.style.layout.bars.right.color}"/></svg><div>${R.value.translations.male}</div><div><b>${c(R.value.style.layout.dataLabels.xAxis.formatter, l(r.right.value), s({ v: l(r.right.value) }), {
|
|
487
|
-
datapoint: t,
|
|
488
|
-
seriesIndex: e
|
|
489
|
-
})}</b></div></div>`, n += "</div>", n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${R.value.style.tooltip.borderColor}"><div>${R.value.translations.total}</div><div><b>${c(R.value.style.layout.dataLabels.xAxis.formatter, l(r.right.value) + l(r.left.value), s({ v: l(r.right.value) + l(r.left.value) }), {
|
|
490
|
-
datapoint: t,
|
|
491
|
-
seriesIndex: e
|
|
492
|
-
})}</b></div></div>`, n += "</div>", St.value = `<div>${n}</div>`;
|
|
493
|
-
}
|
|
494
|
-
A.value = !0, n === "keyboard" && De(() => {
|
|
495
|
-
on(e);
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
function cn(e = null) {
|
|
499
|
-
De(() => {
|
|
500
|
-
let t = [
|
|
501
|
-
R.value.translations.year,
|
|
502
|
-
R.value.translations.age,
|
|
503
|
-
R.value.translations.female,
|
|
504
|
-
R.value.translations.male,
|
|
505
|
-
R.value.translations.total
|
|
506
|
-
], n = O.dataset.map((e) => [
|
|
507
|
-
e[0],
|
|
508
|
-
e[1],
|
|
509
|
-
e[2],
|
|
510
|
-
e[3],
|
|
511
|
-
e[2] ?? 0 + e[3] ?? 0
|
|
512
|
-
]), i = r([
|
|
513
|
-
[R.value.style.title.text],
|
|
514
|
-
[R.value.style.title.subtitle.text],
|
|
515
|
-
[
|
|
516
|
-
[""],
|
|
517
|
-
[""],
|
|
518
|
-
[""]
|
|
519
|
-
],
|
|
520
|
-
t
|
|
521
|
-
].concat(n));
|
|
522
|
-
e ? e(i) : a({
|
|
523
|
-
csvContent: i,
|
|
524
|
-
title: R.value.style.title.text || "vue-ui-heatmap"
|
|
525
|
-
});
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
let X = d(() => {
|
|
529
|
-
let e = [
|
|
530
|
-
R.value.translations.year,
|
|
531
|
-
R.value.translations.age,
|
|
532
|
-
R.value.translations.female,
|
|
533
|
-
R.value.translations.male,
|
|
534
|
-
R.value.translations.total
|
|
535
|
-
];
|
|
536
|
-
return {
|
|
537
|
-
head: e,
|
|
538
|
-
body: O.dataset.map((e) => [
|
|
539
|
-
e[0],
|
|
540
|
-
e[1],
|
|
541
|
-
e[2] == null ? "" : e[2].toLocaleString(),
|
|
542
|
-
e[3] == null ? "" : e[3].toLocaleString(),
|
|
543
|
-
(e[2] ?? 0 + e[3] ?? 0).toLocaleString()
|
|
544
|
-
]),
|
|
545
|
-
config: {
|
|
546
|
-
th: {
|
|
547
|
-
backgroundColor: R.value.table.th.backgroundColor,
|
|
548
|
-
color: R.value.table.th.color,
|
|
549
|
-
outline: R.value.table.th.outline
|
|
550
|
-
},
|
|
551
|
-
td: {
|
|
552
|
-
backgroundColor: R.value.table.td.backgroundColor,
|
|
553
|
-
color: R.value.table.td.color,
|
|
554
|
-
outline: R.value.table.td.outline
|
|
555
|
-
},
|
|
556
|
-
breakpoint: R.value.table.responsiveBreakpoint
|
|
557
|
-
},
|
|
558
|
-
colNames: e
|
|
559
|
-
};
|
|
560
|
-
}), Z = S(!1);
|
|
561
|
-
function ln(e) {
|
|
562
|
-
Z.value = e, Ct.value += 1;
|
|
563
|
-
}
|
|
564
|
-
function un() {
|
|
565
|
-
U.value.showTable = !U.value.showTable;
|
|
566
|
-
}
|
|
567
|
-
function dn() {
|
|
568
|
-
U.value.showTooltip = !U.value.showTooltip;
|
|
569
|
-
}
|
|
570
|
-
let Q = S(!1);
|
|
571
|
-
function fn() {
|
|
572
|
-
Q.value = !Q.value;
|
|
573
|
-
}
|
|
574
|
-
async function pn({ scale: e = 2 } = {}) {
|
|
575
|
-
if (!M.value) return;
|
|
576
|
-
let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
577
|
-
domElement: M.value,
|
|
578
|
-
base64: !0,
|
|
579
|
-
img: !0,
|
|
580
|
-
scale: e
|
|
581
|
-
});
|
|
582
|
-
return {
|
|
583
|
-
imageUri: i,
|
|
584
|
-
base64: a,
|
|
585
|
-
title: R.value.style.title.text,
|
|
586
|
-
width: t,
|
|
587
|
-
height: n,
|
|
588
|
-
aspectRatio: r
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
pe({
|
|
592
|
-
timeLabelsEls: kt,
|
|
593
|
-
timeLabels: S([]),
|
|
594
|
-
slicer: S({
|
|
595
|
-
start: 0,
|
|
596
|
-
end: Y.value.length
|
|
597
|
-
}),
|
|
598
|
-
configRef: R,
|
|
599
|
-
rotationPath: [
|
|
600
|
-
"style",
|
|
601
|
-
"layout",
|
|
602
|
-
"dataLabels",
|
|
603
|
-
"xAxis",
|
|
604
|
-
"rotation"
|
|
605
|
-
],
|
|
606
|
-
autoRotatePath: [
|
|
607
|
-
"style",
|
|
608
|
-
"layout",
|
|
609
|
-
"dataLabels",
|
|
610
|
-
"xAxis",
|
|
611
|
-
"autoRotate",
|
|
612
|
-
"enable"
|
|
613
|
-
],
|
|
614
|
-
isAutoSize: !1,
|
|
615
|
-
width: Jt,
|
|
616
|
-
height: Yt,
|
|
617
|
-
targetClass: ".vue-ui-age-pyramid-x-axis-label",
|
|
618
|
-
rotation: R.value.style.layout.dataLabels.xAxis.autoRotate.angle
|
|
619
|
-
});
|
|
620
|
-
let $ = d(() => {
|
|
621
|
-
let e = R.value.table.useDialog && !R.value.table.show, t = U.value.showTable;
|
|
622
|
-
return {
|
|
623
|
-
component: e ? gt : dt,
|
|
624
|
-
title: `${R.value.style.title.text}${R.value.style.title.subtitle.text ? `: ${R.value.style.title.subtitle.text}` : ""}`,
|
|
625
|
-
props: e ? {
|
|
626
|
-
backgroundColor: R.value.table.th.backgroundColor,
|
|
627
|
-
color: R.value.table.th.color,
|
|
628
|
-
headerColor: R.value.table.th.color,
|
|
629
|
-
headerBg: R.value.table.th.backgroundColor,
|
|
630
|
-
isFullscreen: Z.value,
|
|
631
|
-
fullscreenParent: M.value,
|
|
632
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
633
|
-
isCursorPointer: z.value
|
|
634
|
-
} : {
|
|
635
|
-
hideDetails: !0,
|
|
636
|
-
config: {
|
|
637
|
-
open: t,
|
|
638
|
-
maxHeight: 1e4,
|
|
639
|
-
body: {
|
|
640
|
-
backgroundColor: R.value.style.backgroundColor,
|
|
641
|
-
color: R.value.style.color
|
|
642
|
-
},
|
|
643
|
-
head: {
|
|
644
|
-
backgroundColor: R.value.style.backgroundColor,
|
|
645
|
-
color: R.value.style.color
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
};
|
|
650
|
-
});
|
|
651
|
-
Pe(() => U.value.showTable, (e) => {
|
|
652
|
-
R.value.table.show || (e && R.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
653
|
-
});
|
|
654
|
-
function mn() {
|
|
655
|
-
U.value.showTable = !1, At.value && At.value.setTableIconState(!1);
|
|
656
|
-
}
|
|
657
|
-
let hn = d(() => R.value.style.backgroundColor), { exportSvg: gn, getSvg: _n } = ue({
|
|
658
|
-
svg: B,
|
|
659
|
-
title: d(() => R.value.style.title),
|
|
660
|
-
backgroundColor: hn
|
|
661
|
-
});
|
|
662
|
-
async function vn({ isCb: e }) {
|
|
663
|
-
F.value = !0, await De();
|
|
664
|
-
try {
|
|
665
|
-
if (e) {
|
|
666
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await _n();
|
|
667
|
-
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
668
|
-
blob: e,
|
|
669
|
-
url: t,
|
|
670
|
-
text: n,
|
|
671
|
-
dataUrl: r
|
|
672
|
-
}));
|
|
673
|
-
} else await Promise.resolve(gn());
|
|
674
|
-
} finally {
|
|
675
|
-
F.value = !1;
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
function yn(e) {
|
|
679
|
-
if (e?.stage === "start") {
|
|
680
|
-
P.value = !0;
|
|
681
|
-
return;
|
|
682
|
-
}
|
|
683
|
-
if (e?.stage === "end") {
|
|
684
|
-
P.value = !1;
|
|
685
|
-
return;
|
|
686
|
-
}
|
|
687
|
-
Kt();
|
|
688
|
-
}
|
|
689
|
-
async function bn() {
|
|
690
|
-
if (bt("copyAlt", {
|
|
691
|
-
config: R.value,
|
|
692
|
-
dataset: Y.value
|
|
693
|
-
}), !R.value.userOptions.callbacks.altCopy) {
|
|
694
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
695
|
-
return;
|
|
696
|
-
}
|
|
697
|
-
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
698
|
-
config: R.value,
|
|
699
|
-
dataset: Y.value
|
|
700
|
-
}));
|
|
701
|
-
}
|
|
702
|
-
function xn() {
|
|
703
|
-
Mt.value = !0;
|
|
704
|
-
}
|
|
705
|
-
function Sn() {
|
|
706
|
-
j.value = null, I.value = null, L.value = "pointer", A.value = !1, Mt.value = !1;
|
|
707
|
-
}
|
|
708
|
-
function Cn(e) {
|
|
709
|
-
if (!B.value || Q.value || document.activeElement !== B.value || !Y.value.length) return;
|
|
710
|
-
let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
711
|
-
if (!t && !n && !r && !i) return;
|
|
712
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
713
|
-
j.value = null, I.value = null, L.value = "pointer", A.value = !1;
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
716
|
-
if (r) {
|
|
717
|
-
if (I.value === null) return;
|
|
718
|
-
let e = O.dataset[I.value];
|
|
719
|
-
if (!e) return;
|
|
720
|
-
rn(I.value, e);
|
|
721
|
-
return;
|
|
722
|
-
}
|
|
723
|
-
let a = I.value, o = j.value, s = a !== null && a >= 0 && a < Y.value.length, ee = o !== null && o >= 0 && o < Y.value.length;
|
|
724
|
-
s ? t ? a = a - 1 < 0 ? Y.value.length - 1 : a - 1 : n && (a = a + 1 > Y.value.length - 1 ? 0 : a + 1) : ee ? (a = n ? o + 1 : o - 1, a >= Y.value.length && (a = 0), a < 0 && (a = Y.value.length - 1)) : a = n ? 0 : Y.value.length - 1;
|
|
725
|
-
let te = O.dataset[a];
|
|
726
|
-
te && sn(a, te, "keyboard");
|
|
727
|
-
}
|
|
728
|
-
return ge({
|
|
729
|
-
getImage: pn,
|
|
730
|
-
generatePdf: Gt,
|
|
731
|
-
generateCsv: cn,
|
|
732
|
-
generateImage: Kt,
|
|
733
|
-
generateSvg: vn,
|
|
734
|
-
toggleTable: un,
|
|
735
|
-
toggleTooltip: dn,
|
|
736
|
-
toggleAnnotator: fn,
|
|
737
|
-
toggleFullscreen: ln,
|
|
738
|
-
copyAlt: bn
|
|
739
|
-
}), (t, r) => (x(), m("div", {
|
|
740
|
-
class: Oe(`vue-data-ui-component vue-ui-age-pyramid ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
741
|
-
ref_key: "agePyramid",
|
|
742
|
-
ref: M,
|
|
743
|
-
id: `vue-ui-age-pyramid_${k.value}`,
|
|
744
|
-
style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.backgroundColor};${R.value.responsive ? "height:100%" : ""}`),
|
|
745
|
-
onMouseenter: r[1] ||= () => E(Rt)(!0),
|
|
746
|
-
onMouseleave: r[2] ||= () => E(Rt)(!1)
|
|
747
|
-
}, [
|
|
748
|
-
h("div", {
|
|
749
|
-
id: `chart-instructions-${k.value}`,
|
|
750
|
-
class: "sr-only"
|
|
751
|
-
}, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Re),
|
|
752
|
-
X.value?.body?.length ? (x(), f(be, {
|
|
753
|
-
key: 0,
|
|
754
|
-
uid: k.value,
|
|
755
|
-
head: X.value.head,
|
|
756
|
-
body: X.value.body,
|
|
757
|
-
notice: R.value.a11y.translations.tableAvailable,
|
|
758
|
-
caption: R.value.a11y.translations.tableCaption
|
|
759
|
-
}, null, 8, [
|
|
760
|
-
"uid",
|
|
761
|
-
"head",
|
|
762
|
-
"body",
|
|
763
|
-
"notice",
|
|
764
|
-
"caption"
|
|
765
|
-
])) : p("", !0),
|
|
766
|
-
R.value.userOptions.buttons.annotator ? (x(), f(E(pt), {
|
|
767
|
-
key: 1,
|
|
768
|
-
svgRef: E(B),
|
|
769
|
-
backgroundColor: R.value.style.backgroundColor,
|
|
770
|
-
color: R.value.style.color,
|
|
771
|
-
active: Q.value,
|
|
772
|
-
isCursorPointer: z.value,
|
|
773
|
-
onClose: fn
|
|
774
|
-
}, {
|
|
775
|
-
"annotator-action-close": D(() => [w(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
776
|
-
"annotator-action-color": D(({ color: e }) => [w(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
|
|
777
|
-
"annotator-action-draw": D(({ mode: e }) => [w(t.$slots, "annotator-action-draw", y(v({ mode: e })), void 0, !0)]),
|
|
778
|
-
"annotator-action-undo": D(({ disabled: e }) => [w(t.$slots, "annotator-action-undo", y(v({ disabled: e })), void 0, !0)]),
|
|
779
|
-
"annotator-action-redo": D(({ disabled: e }) => [w(t.$slots, "annotator-action-redo", y(v({ disabled: e })), void 0, !0)]),
|
|
780
|
-
"annotator-action-delete": D(({ disabled: e }) => [w(t.$slots, "annotator-action-delete", y(v({ disabled: e })), void 0, !0)]),
|
|
781
|
-
_: 3
|
|
782
|
-
}, 8, [
|
|
783
|
-
"svgRef",
|
|
784
|
-
"backgroundColor",
|
|
785
|
-
"color",
|
|
786
|
-
"active",
|
|
787
|
-
"isCursorPointer"
|
|
788
|
-
])) : p("", !0),
|
|
789
|
-
qt.value ? (x(), m("div", {
|
|
790
|
-
key: 2,
|
|
791
|
-
ref_key: "noTitle",
|
|
792
|
-
ref: Et,
|
|
793
|
-
class: "vue-data-ui-no-title-space",
|
|
794
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
795
|
-
}, null, 512)) : p("", !0),
|
|
796
|
-
R.value.style.title.text ? (x(), m("div", {
|
|
797
|
-
key: 3,
|
|
798
|
-
ref_key: "chartTitle",
|
|
799
|
-
ref: wt,
|
|
800
|
-
style: "width:100%;background:transparent"
|
|
801
|
-
}, [(x(), f(he, {
|
|
802
|
-
key: `title_${Dt.value}`,
|
|
803
|
-
config: {
|
|
804
|
-
title: {
|
|
805
|
-
cy: "pyramid-div-title",
|
|
806
|
-
...R.value.style.title
|
|
807
|
-
},
|
|
808
|
-
subtitle: {
|
|
809
|
-
cy: "pyramid-div-subtitle",
|
|
810
|
-
...R.value.style.title.subtitle
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
814
|
-
R.value.userOptions.show && xt.value && (E(zt) || E(Lt)) ? (x(), f(E(mt), {
|
|
815
|
-
ref_key: "userOptionsRef",
|
|
816
|
-
ref: At,
|
|
817
|
-
key: `user_options_${Ct.value}`,
|
|
818
|
-
backgroundColor: R.value.style.backgroundColor,
|
|
819
|
-
color: R.value.style.color,
|
|
820
|
-
isImaging: E(Wt),
|
|
821
|
-
isPrinting: E(Ut),
|
|
822
|
-
uid: k.value,
|
|
823
|
-
hasTooltip: R.value.userOptions.buttons.tooltip && R.value.style.tooltip.show,
|
|
824
|
-
hasPdf: R.value.userOptions.buttons.pdf,
|
|
825
|
-
hasXls: R.value.userOptions.buttons.csv,
|
|
826
|
-
hasImg: R.value.userOptions.buttons.img,
|
|
827
|
-
hasSvg: R.value.userOptions.buttons.svg,
|
|
828
|
-
hasTable: R.value.userOptions.buttons.table,
|
|
829
|
-
hasFullscreen: R.value.userOptions.buttons.fullscreen,
|
|
830
|
-
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
831
|
-
isFullscreen: Z.value,
|
|
832
|
-
isTooltip: U.value.showTooltip,
|
|
833
|
-
titles: { ...R.value.userOptions.buttonTitles },
|
|
834
|
-
chartElement: M.value,
|
|
835
|
-
position: R.value.userOptions.position,
|
|
836
|
-
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
837
|
-
isAnnotation: Q.value,
|
|
838
|
-
callbacks: R.value.userOptions.callbacks,
|
|
839
|
-
printScale: R.value.userOptions.print.scale,
|
|
840
|
-
tableDialog: R.value.table.useDialog,
|
|
841
|
-
isCursorPointer: z.value,
|
|
842
|
-
onToggleFullscreen: ln,
|
|
843
|
-
onGeneratePdf: E(Gt),
|
|
844
|
-
onGenerateCsv: cn,
|
|
845
|
-
onGenerateImage: yn,
|
|
846
|
-
onGenerateSvg: vn,
|
|
847
|
-
onToggleTable: un,
|
|
848
|
-
onToggleTooltip: dn,
|
|
849
|
-
onToggleAnnotator: fn,
|
|
850
|
-
onCopyAlt: bn,
|
|
851
|
-
style: b({ visibility: E(zt) ? E(Lt) ? "visible" : "hidden" : "visible" })
|
|
852
|
-
}, we({ _: 2 }, [
|
|
853
|
-
t.$slots.menuIcon ? {
|
|
854
|
-
name: "menuIcon",
|
|
855
|
-
fn: D(({ isOpen: e, color: n }) => [w(t.$slots, "menuIcon", y(v({
|
|
856
|
-
isOpen: e,
|
|
857
|
-
color: n
|
|
858
|
-
})), void 0, !0)]),
|
|
859
|
-
key: "0"
|
|
860
|
-
} : void 0,
|
|
861
|
-
t.$slots.optionTooltip ? {
|
|
862
|
-
name: "optionTooltip",
|
|
863
|
-
fn: D(() => [w(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
864
|
-
key: "1"
|
|
865
|
-
} : void 0,
|
|
866
|
-
t.$slots.optionPdf ? {
|
|
867
|
-
name: "optionPdf",
|
|
868
|
-
fn: D(() => [w(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
869
|
-
key: "2"
|
|
870
|
-
} : void 0,
|
|
871
|
-
t.$slots.optionCsv ? {
|
|
872
|
-
name: "optionCsv",
|
|
873
|
-
fn: D(() => [w(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
874
|
-
key: "3"
|
|
875
|
-
} : void 0,
|
|
876
|
-
t.$slots.optionImg ? {
|
|
877
|
-
name: "optionImg",
|
|
878
|
-
fn: D(() => [w(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
879
|
-
key: "4"
|
|
880
|
-
} : void 0,
|
|
881
|
-
t.$slots.optionSvg ? {
|
|
882
|
-
name: "optionSvg",
|
|
883
|
-
fn: D(() => [w(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
884
|
-
key: "5"
|
|
885
|
-
} : void 0,
|
|
886
|
-
t.$slots.optionTable ? {
|
|
887
|
-
name: "optionTable",
|
|
888
|
-
fn: D(() => [w(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
889
|
-
key: "6"
|
|
890
|
-
} : void 0,
|
|
891
|
-
t.$slots.optionFullscreen ? {
|
|
892
|
-
name: "optionFullscreen",
|
|
893
|
-
fn: D(({ toggleFullscreen: e, isFullscreen: n }) => [w(t.$slots, "optionFullscreen", y(v({
|
|
894
|
-
toggleFullscreen: e,
|
|
895
|
-
isFullscreen: n
|
|
896
|
-
})), void 0, !0)]),
|
|
897
|
-
key: "7"
|
|
898
|
-
} : void 0,
|
|
899
|
-
t.$slots.optionAnnotator ? {
|
|
900
|
-
name: "optionAnnotator",
|
|
901
|
-
fn: D(({ toggleAnnotator: e, isAnnotator: n }) => [w(t.$slots, "optionAnnotator", y(v({
|
|
902
|
-
toggleAnnotator: e,
|
|
903
|
-
isAnnotator: n
|
|
904
|
-
})), void 0, !0)]),
|
|
905
|
-
key: "8"
|
|
906
|
-
} : void 0,
|
|
907
|
-
t.$slots.optionAltCopy ? {
|
|
908
|
-
name: "optionAltCopy",
|
|
909
|
-
fn: D(({ altCopy: e }) => [w(t.$slots, "optionAltCopy", y(v({ altCopy: e })), void 0, !0)]),
|
|
910
|
-
key: "9"
|
|
911
|
-
} : void 0,
|
|
912
|
-
t.$slots["custom-menu-before"] ? {
|
|
913
|
-
name: "custom-menu-before",
|
|
914
|
-
fn: D(() => [w(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
915
|
-
key: "10"
|
|
916
|
-
} : void 0,
|
|
917
|
-
t.$slots["custom-menu-after"] ? {
|
|
918
|
-
name: "custom-menu-after",
|
|
919
|
-
fn: D(() => [w(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
920
|
-
key: "11"
|
|
921
|
-
} : void 0
|
|
922
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : p("", !0),
|
|
923
|
-
h("div", ze, [(x(), m("svg", {
|
|
924
|
-
ref_key: "svgRef",
|
|
925
|
-
ref: B,
|
|
926
|
-
xmlns: E(ie),
|
|
927
|
-
class: Oe({
|
|
928
|
-
"vue-data-ui-fullscreen--on": Z.value,
|
|
929
|
-
"vue-data-ui-fulscreen--off": !Z.value
|
|
930
|
-
}),
|
|
931
|
-
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
|
|
932
|
-
style: b(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.color}`),
|
|
933
|
-
tabindex: "0",
|
|
934
|
-
"aria-describedby": `chart-instructions-${k.value}`,
|
|
935
|
-
onFocus: xn,
|
|
936
|
-
onBlur: Sn,
|
|
937
|
-
onKeydown: Cn
|
|
938
|
-
}, [
|
|
939
|
-
g(E(ht)),
|
|
940
|
-
t.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
941
|
-
key: 0,
|
|
942
|
-
x: G.value.left,
|
|
943
|
-
y: G.value.top,
|
|
944
|
-
width: Math.max(.1, G.value.width),
|
|
945
|
-
height: Math.max(.1, G.value.height),
|
|
946
|
-
style: { pointerEvents: "none" }
|
|
947
|
-
}, [w(t.$slots, "chart-background", {}, void 0, !0)], 8, Ve)) : p("", !0),
|
|
948
|
-
h("defs", null, [g(ye, {
|
|
949
|
-
t: "linear",
|
|
950
|
-
id: `age_pyramid_left_${k.value}`,
|
|
951
|
-
x1: "0%",
|
|
952
|
-
y1: "0%",
|
|
953
|
-
x2: "100%",
|
|
954
|
-
y2: "0%",
|
|
955
|
-
stops: [[
|
|
956
|
-
"0%",
|
|
957
|
-
R.value.style.layout.bars.left.color,
|
|
958
|
-
1
|
|
959
|
-
], [
|
|
960
|
-
"100%",
|
|
961
|
-
E(ae)(E(n)(R.value.style.layout.bars.left.color, R.value.style.layout.bars.gradient.shiftHue), 100 - R.value.style.layout.bars.gradient.intensity),
|
|
962
|
-
1
|
|
963
|
-
]]
|
|
964
|
-
}, null, 8, ["id", "stops"]), g(ye, {
|
|
965
|
-
t: "linear",
|
|
966
|
-
id: `age_pyramid_right_${k.value}`,
|
|
967
|
-
x1: "0%",
|
|
968
|
-
y1: "0%",
|
|
969
|
-
x2: "100%",
|
|
970
|
-
y2: "0%",
|
|
971
|
-
stops: [[
|
|
972
|
-
"0%",
|
|
973
|
-
E(ae)(E(n)(R.value.style.layout.bars.right.color, R.value.style.layout.bars.gradient.shiftHue), 100 - R.value.style.layout.bars.gradient.intensity),
|
|
974
|
-
1
|
|
975
|
-
], [
|
|
976
|
-
"100%",
|
|
977
|
-
R.value.style.layout.bars.right.color,
|
|
978
|
-
1
|
|
979
|
-
]]
|
|
980
|
-
}, null, 8, ["id", "stops"])]),
|
|
981
|
-
(x(!0), m(u, null, C(Y.value, (e, t) => (x(), m("g", null, [
|
|
982
|
-
h("rect", {
|
|
983
|
-
x: e.left.x,
|
|
984
|
-
y: e.left.y,
|
|
985
|
-
width: E(l)(e.left.width <= 0 ? 1e-4 : e.left.width),
|
|
986
|
-
height: e.left.height <= 0 ? 1e-4 : e.left.height,
|
|
987
|
-
fill: R.value.style.layout.bars.gradient.underlayer,
|
|
988
|
-
rx: R.value.style.layout.bars.borderRadius
|
|
989
|
-
}, null, 8, He),
|
|
990
|
-
h("rect", {
|
|
991
|
-
x: e.left.x,
|
|
992
|
-
y: e.left.y,
|
|
993
|
-
width: e.left.width <= 0 ? 1e-4 : e.left.width,
|
|
994
|
-
height: e.left.height <= 0 ? 1e-4 : e.left.height,
|
|
995
|
-
fill: R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : e.left.color,
|
|
996
|
-
rx: R.value.style.layout.bars.borderRadius
|
|
997
|
-
}, null, 8, Ue),
|
|
998
|
-
h("rect", {
|
|
999
|
-
x: e.right.x,
|
|
1000
|
-
y: e.right.y,
|
|
1001
|
-
width: e.right.width <= 0 ? 1e-4 : e.right.width,
|
|
1002
|
-
height: e.right.height <= 0 ? 1e-4 : e.right.height,
|
|
1003
|
-
fill: R.value.style.layout.bars.gradient.underlayer,
|
|
1004
|
-
rx: R.value.style.layout.bars.borderRadius
|
|
1005
|
-
}, null, 8, We),
|
|
1006
|
-
h("rect", {
|
|
1007
|
-
x: e.right.x,
|
|
1008
|
-
y: e.right.y,
|
|
1009
|
-
width: e.right.width <= 0 ? 1e-4 : e.right.width,
|
|
1010
|
-
height: e.right.height <= 0 ? 1e-4 : e.right.height,
|
|
1011
|
-
fill: R.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : e.right.color,
|
|
1012
|
-
rx: R.value.style.layout.bars.borderRadius
|
|
1013
|
-
}, null, 8, Ge)
|
|
1014
|
-
]))), 256)),
|
|
1015
|
-
h("g", null, [
|
|
1016
|
-
R.value.style.layout.dataLabels.sideTitles.show ? (x(), m("g", Ke, [h("text", {
|
|
1017
|
-
x: G.value.left,
|
|
1018
|
-
y: R.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1019
|
-
fill: R.value.style.layout.dataLabels.sideTitles.useSideColor ? R.value.style.layout.bars.left.color : R.value.style.layout.dataLabels.sideTitles.color,
|
|
1020
|
-
"font-size": R.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1021
|
-
"text-anchor": "start",
|
|
1022
|
-
"font-weight": R.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
1023
|
-
}, T(R.value.translations.female), 9, qe), h("text", {
|
|
1024
|
-
x: G.value.right,
|
|
1025
|
-
y: R.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1026
|
-
fill: R.value.style.layout.dataLabels.sideTitles.useSideColor ? R.value.style.layout.bars.right.color : R.value.style.layout.dataLabels.sideTitles.color,
|
|
1027
|
-
"font-size": R.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1028
|
-
"text-anchor": "end",
|
|
1029
|
-
"font-weight": R.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
1030
|
-
}, T(R.value.translations.male), 9, Je)])) : p("", !0),
|
|
1031
|
-
R.value.style.layout.dataLabels.yAxis.show ? (x(), m("g", Ye, [(x(!0), m(u, null, C(Qt.value, (e, t) => (x(), m(u, null, [t % R.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (x(), m("text", {
|
|
1032
|
-
key: 0,
|
|
1033
|
-
x: G.value.centerX,
|
|
1034
|
-
y: G.value.top + G.value.height / J.value * t + R.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
1035
|
-
"text-anchor": "middle",
|
|
1036
|
-
"font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1037
|
-
fill: R.value.style.layout.dataLabels.yAxis.color,
|
|
1038
|
-
"font-weight": R.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1039
|
-
}, T(E(c)(R.value.style.layout.dataLabels.yAxis.formatter, e, E(s)({ v: e }), {
|
|
1040
|
-
datapoint: e,
|
|
1041
|
-
seriesIndex: t
|
|
1042
|
-
})), 9, Xe)) : p("", !0)], 64))), 256))])) : p("", !0),
|
|
1043
|
-
R.value.style.layout.dataLabels.xAxis.show ? (x(), m("g", Ze, [
|
|
1044
|
-
R.value.style.layout.grid.show ? (x(), m("g", Qe, [h("line", {
|
|
1045
|
-
x1: K.value.right[0].x,
|
|
1046
|
-
x2: K.value.right.at(-1).x,
|
|
1047
|
-
y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1048
|
-
y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1049
|
-
stroke: R.value.style.layout.grid.stroke,
|
|
1050
|
-
"stroke-width": R.value.style.layout.grid.strokeWidth,
|
|
1051
|
-
"stroke-linecap": "round"
|
|
1052
|
-
}, null, 8, $e), h("line", {
|
|
1053
|
-
x1: K.value.left[0].x,
|
|
1054
|
-
x2: K.value.left.at(-1).x,
|
|
1055
|
-
y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1056
|
-
y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1057
|
-
stroke: R.value.style.layout.grid.stroke,
|
|
1058
|
-
"stroke-width": R.value.style.layout.grid.strokeWidth,
|
|
1059
|
-
"stroke-linecap": "round"
|
|
1060
|
-
}, null, 8, et)])) : p("", !0),
|
|
1061
|
-
(x(!0), m(u, null, C(K.value.right, (e, t) => (x(), m("g", null, [R.value.style.layout.grid.show ? (x(), m("line", {
|
|
1062
|
-
key: 0,
|
|
1063
|
-
x1: e.x,
|
|
1064
|
-
x2: e.x,
|
|
1065
|
-
y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1066
|
-
y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
|
|
1067
|
-
stroke: R.value.style.layout.grid.stroke,
|
|
1068
|
-
"stroke-width": R.value.style.layout.grid.strokeWidth,
|
|
1069
|
-
"stroke-linecap": "round"
|
|
1070
|
-
}, null, 8, tt)) : p("", !0)]))), 256)),
|
|
1071
|
-
(x(!0), m(u, null, C(K.value.left, (e, t) => (x(), m("g", null, [R.value.style.layout.grid.show ? (x(), m("line", {
|
|
1072
|
-
key: 0,
|
|
1073
|
-
x1: e.x,
|
|
1074
|
-
x2: e.x,
|
|
1075
|
-
y1: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1076
|
-
y2: G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
|
|
1077
|
-
stroke: R.value.style.layout.grid.stroke,
|
|
1078
|
-
"stroke-width": R.value.style.layout.grid.strokeWidth,
|
|
1079
|
-
"stroke-linecap": "round"
|
|
1080
|
-
}, null, 8, nt)) : p("", !0)]))), 256)),
|
|
1081
|
-
h("g", {
|
|
1082
|
-
ref_key: "xAxisLabels",
|
|
1083
|
-
ref: kt
|
|
1084
|
-
}, [(x(!0), m(u, null, C(K.value.right, (e, t) => (x(), m("text", {
|
|
1085
|
-
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1086
|
-
"font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1087
|
-
fill: R.value.style.layout.dataLabels.xAxis.color,
|
|
1088
|
-
"text-anchor": R.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : R.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
1089
|
-
"font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1090
|
-
transform: `translate(${e.x}, ${G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${R.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1091
|
-
}, T(E(c)(R.value.style.layout.dataLabels.xAxis.formatter, e.value / R.value.style.layout.dataLabels.xAxis.scale, E(s)({ v: e.value / R.value.style.layout.dataLabels.xAxis.scale }), {
|
|
1092
|
-
datapoint: e,
|
|
1093
|
-
seriesIndex: t
|
|
1094
|
-
})), 9, rt))), 256)), (x(!0), m(u, null, C(K.value.left, (e, t) => (x(), m("text", {
|
|
1095
|
-
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1096
|
-
"font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1097
|
-
fill: R.value.style.layout.dataLabels.xAxis.color,
|
|
1098
|
-
"text-anchor": R.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : R.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
1099
|
-
"font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1100
|
-
transform: `translate(${e.x}, ${G.value.bottom + R.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${R.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1101
|
-
}, T(E(c)(R.value.style.layout.dataLabels.xAxis.formatter, e.value / R.value.style.layout.dataLabels.xAxis.scale, E(s)({ v: e.value / R.value.style.layout.dataLabels.xAxis.scale }), {
|
|
1102
|
-
datapoint: e,
|
|
1103
|
-
seriesIndex: t
|
|
1104
|
-
})), 9, it))), 256))], 512),
|
|
1105
|
-
h("text", {
|
|
1106
|
-
x: G.value.right,
|
|
1107
|
-
y: W.value.height,
|
|
1108
|
-
"text-anchor": "end",
|
|
1109
|
-
"font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1110
|
-
fill: R.value.style.layout.dataLabels.xAxis.color,
|
|
1111
|
-
"font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
1112
|
-
}, T(R.value.style.layout.dataLabels.xAxis.translation), 9, at)
|
|
1113
|
-
])) : p("", !0)
|
|
1114
|
-
]),
|
|
1115
|
-
(x(!0), m(u, null, C(e.dataset, (e, t) => (x(), m("g", null, [h("rect", {
|
|
1116
|
-
x: G.value.left,
|
|
1117
|
-
y: G.value.top + G.value.height / J.value * t - R.value.style.layout.bars.gap / 2,
|
|
1118
|
-
width: G.value.width <= 0 ? 1e-4 : G.value.width,
|
|
1119
|
-
height: G.value.height / J.value <= 0 ? 1e-4 : G.value.height / J.value,
|
|
1120
|
-
fill: j.value !== null && j.value === t ? E(ae)(R.value.style.highlighter.color, R.value.style.highlighter.opacity) : "transparent",
|
|
1121
|
-
onMouseover: (n) => sn(t, e, "pointer"),
|
|
1122
|
-
onMouseleave: (n) => an(t, e),
|
|
1123
|
-
onClick: (n) => rn(t, e)
|
|
1124
|
-
}, null, 40, ot)]))), 256)),
|
|
1125
|
-
w(t.$slots, "svg", { svg: {
|
|
1126
|
-
...W.value,
|
|
1127
|
-
drawingArea: G.value,
|
|
1128
|
-
isPrintingImg: E(Ut) || E(Wt) || P.value,
|
|
1129
|
-
isPrintingSvg: F.value
|
|
1130
|
-
} }, void 0, !0)
|
|
1131
|
-
], 46, Be)), t.$slots.hint ? (x(), m("div", st, [w(t.$slots, "hint", y(v({
|
|
1132
|
-
hint: R.value.a11y.translations.keyboardNavigation,
|
|
1133
|
-
isVisible: Mt.value
|
|
1134
|
-
})), void 0, !0)])) : p("", !0)]),
|
|
1135
|
-
t.$slots.watermark ? (x(), m("div", ct, [w(t.$slots, "watermark", y(v({ isPrinting: E(Ut) || E(Wt) || P.value || F.value })), void 0, !0)])) : p("", !0),
|
|
1136
|
-
w(t.$slots, "legend", { legend: Y.value }, void 0, !0),
|
|
1137
|
-
t.$slots.source ? (x(), m("div", {
|
|
1138
|
-
key: 6,
|
|
1139
|
-
ref_key: "source",
|
|
1140
|
-
ref: Tt,
|
|
1141
|
-
dir: "auto"
|
|
1142
|
-
}, [w(t.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1143
|
-
g(E(lt), {
|
|
1144
|
-
teleportTo: R.value.style.tooltip.teleportTo,
|
|
1145
|
-
show: U.value.showTooltip && A.value,
|
|
1146
|
-
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
1147
|
-
color: R.value.style.tooltip.color,
|
|
1148
|
-
borderRadius: R.value.style.tooltip.borderRadius,
|
|
1149
|
-
borderColor: R.value.style.tooltip.borderColor,
|
|
1150
|
-
borderWidth: R.value.style.tooltip.borderWidth,
|
|
1151
|
-
fontSize: R.value.style.tooltip.fontSize,
|
|
1152
|
-
backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
|
|
1153
|
-
position: R.value.style.tooltip.position,
|
|
1154
|
-
offsetX: R.value.style.tooltip.offsetX,
|
|
1155
|
-
offsetY: R.value.style.tooltip.offsetY,
|
|
1156
|
-
parent: M.value,
|
|
1157
|
-
content: St.value,
|
|
1158
|
-
isFullscreen: Z.value,
|
|
1159
|
-
isCustom: R.value.style.tooltip.customFormat && typeof R.value.style.tooltip.customFormat == "function",
|
|
1160
|
-
smooth: R.value.style.tooltip.smooth,
|
|
1161
|
-
backdropFilter: R.value.style.tooltip.backdropFilter,
|
|
1162
|
-
smoothForce: R.value.style.tooltip.smoothForce,
|
|
1163
|
-
smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
|
|
1164
|
-
isA11yMode: L.value === "keyboard",
|
|
1165
|
-
a11yPosition: jt.value
|
|
1166
|
-
}, {
|
|
1167
|
-
"tooltip-before": D(() => [w(t.$slots, "tooltip-before", y(v({ ...tn.value })), void 0, !0)]),
|
|
1168
|
-
tooltip: D(() => [w(t.$slots, "tooltip", y(v({ ...tn.value })), void 0, !0)]),
|
|
1169
|
-
"tooltip-after": D(() => [w(t.$slots, "tooltip-after", y(v({ ...tn.value })), void 0, !0)]),
|
|
1170
|
-
_: 3
|
|
1171
|
-
}, 8, [
|
|
1172
|
-
"teleportTo",
|
|
1173
|
-
"show",
|
|
1174
|
-
"backgroundColor",
|
|
1175
|
-
"color",
|
|
1176
|
-
"borderRadius",
|
|
1177
|
-
"borderColor",
|
|
1178
|
-
"borderWidth",
|
|
1179
|
-
"fontSize",
|
|
1180
|
-
"backgroundOpacity",
|
|
1181
|
-
"position",
|
|
1182
|
-
"offsetX",
|
|
1183
|
-
"offsetY",
|
|
1184
|
-
"parent",
|
|
1185
|
-
"content",
|
|
1186
|
-
"isFullscreen",
|
|
1187
|
-
"isCustom",
|
|
1188
|
-
"smooth",
|
|
1189
|
-
"backdropFilter",
|
|
1190
|
-
"smoothForce",
|
|
1191
|
-
"smoothSnapThreshold",
|
|
1192
|
-
"isA11yMode",
|
|
1193
|
-
"a11yPosition"
|
|
1194
|
-
]),
|
|
1195
|
-
xt.value && R.value.userOptions.buttons.table ? (x(), f(je($.value.component), Ee({ key: 7 }, $.value.props, {
|
|
1196
|
-
ref_key: "tableUnit",
|
|
1197
|
-
ref: N,
|
|
1198
|
-
onClose: mn
|
|
1199
|
-
}), we({
|
|
1200
|
-
content: D(() => [(x(), f(E(ft), {
|
|
1201
|
-
key: `table_${Ot.value}`,
|
|
1202
|
-
colNames: X.value.colNames,
|
|
1203
|
-
head: X.value.head,
|
|
1204
|
-
body: X.value.body,
|
|
1205
|
-
config: X.value.config,
|
|
1206
|
-
title: R.value.table.useDialog ? "" : $.value.title,
|
|
1207
|
-
withCloseButton: !R.value.table.useDialog,
|
|
1208
|
-
isCursorPointer: z.value,
|
|
1209
|
-
onClose: mn
|
|
1210
|
-
}, {
|
|
1211
|
-
th: D(({ th: e }) => [Te(T(e), 1)]),
|
|
1212
|
-
td: D(({ td: e }) => [Te(T(e), 1)]),
|
|
1213
|
-
_: 1
|
|
1214
|
-
}, 8, [
|
|
1215
|
-
"colNames",
|
|
1216
|
-
"head",
|
|
1217
|
-
"body",
|
|
1218
|
-
"config",
|
|
1219
|
-
"title",
|
|
1220
|
-
"withCloseButton",
|
|
1221
|
-
"isCursorPointer"
|
|
1222
|
-
]))]),
|
|
1223
|
-
_: 2
|
|
1224
|
-
}, [R.value.table.useDialog ? {
|
|
1225
|
-
name: "title",
|
|
1226
|
-
fn: D(() => [Te(T($.value.title), 1)]),
|
|
1227
|
-
key: "0"
|
|
1228
|
-
} : void 0, R.value.table.useDialog ? {
|
|
1229
|
-
name: "actions",
|
|
1230
|
-
fn: D(() => [h("button", {
|
|
1231
|
-
tabindex: "0",
|
|
1232
|
-
class: "vue-ui-user-options-button",
|
|
1233
|
-
onClick: r[0] ||= (e) => cn(R.value.userOptions.callbacks.csv),
|
|
1234
|
-
style: b({ cursor: z.value ? "pointer" : "default" })
|
|
1235
|
-
}, [g(E(ut), {
|
|
1236
|
-
name: "fileCsv",
|
|
1237
|
-
stroke: $.value.props.color
|
|
1238
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1239
|
-
key: "1"
|
|
1240
|
-
} : void 0]), 1040)) : p("", !0),
|
|
1241
|
-
w(t.$slots, "skeleton", {}, () => [E(Pt) ? (x(), f(le, { key: 0 })) : p("", !0)], !0)
|
|
1242
|
-
], 46, Le));
|
|
1243
|
-
}
|
|
1244
|
-
}, [["__scopeId", "data-v-e113be83"]]);
|
|
1245
|
-
//#endregion
|
|
1246
|
-
export { Ie as n, lt as t };
|