vue-data-ui 3.22.3 → 3.22.4
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-Ct8T_Lyp.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-DLuXvUbs.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-CX_ChMz-.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-qL0O9ooF.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BI5sLb6d.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-CwyWzPx_.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-KEMekOVu.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-CeNJtWON.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-D-_GVhxY.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DkZYRnrW.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-S-7v8SAE.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-Co-V9YBf.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-D2BBjZKc.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-Cxgd_JyY.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BqdN_ZBE.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-WIxTs7Xf.js → UserOptions-BxT1XHzN.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-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-DsEPQbU1.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-WDjGa7EP.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-NmjQazSn.js → lib-CuwHGt1j.js} +142 -123
- package/dist/{package-KQdsc0if.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-BVocBz-Y.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-BUbY65H0.js → render-common-D6ny-Fwu.js} +22 -22
- 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 +59 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DBv7sw1h.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-C9viY7oU.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-DRYgV-XS.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-CDgunUso.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-vYLqcJJd.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CCAcpoA2.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-CmjcPCRy.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-UWs3Fols.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-DiPXX1eV.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-MB6BktFk.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-D4n5rKtA.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-Cu_HGeoy.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag-DQlbTBPB.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-BD-M8q8G.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C21SWRDQ.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-Djiw7Rz1.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-BkI06V1N.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-Yn79Apx7.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-DfWx60DS.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DdB-gJBh.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-AMWvrL1N.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-8cmpKIN5.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-D32lWjQJ.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-B3FdCV-T.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-Bk-5TDbT.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-B4fNC1Bk.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-_mw9D1wg.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-DPhDz07R.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-Cob0y2FO.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-D6wv44Hs.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-EeT-lzAq.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-DlMTyra_.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-VO2-zPGd.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-ImkpUdwJ.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-Ct3ijoOw.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-_b2gVafQ.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CRH8b1fM.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-Z_lgEp7i.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-B-QS62r4.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-DICmDZrB.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/{vue-ui-stackbar-BRqqDp3a.js → vue-ui-stackbar-Dqs7_g8D.js} +147 -147
- package/dist/{vue-ui-stackline-DVY_4Fmh.js → vue-ui-stackline-IRjugedp.js} +417 -417
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-ByFPF5fJ.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-DfLfYJiR.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-Gi1MQO-E.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CrIq3NmZ.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-BB3VV4tK.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-DZq3C6wh.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BNK1nfDn.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-D3F772fb.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-f56XjeNS.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DOnq4Na2.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-OajdJbzS.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend--t7Mbp9Z.js +0 -115
- package/dist/Slicer-CpBaahpI.js +0 -1144
- package/dist/exposedLib-BkRxoSB9.js +0 -19
- package/dist/img-CyjhDDaM.js +0 -74
- package/dist/vue-ui-3d-bar-BrSoUZQ_.js +0 -1757
- package/dist/vue-ui-bullet-BYrQAbvp.js +0 -710
- package/dist/vue-ui-candlestick-CJw3R21J.js +0 -1826
- package/dist/vue-ui-chestnut-DJkyr3uK.js +0 -2010
- package/dist/vue-ui-donut-BPOS4Aoe.js +0 -2410
- package/dist/vue-ui-funnel-hsmCJgE5.js +0 -777
- package/dist/vue-ui-galaxy-BC-D8ZZ6.js +0 -1077
- package/dist/vue-ui-gauge-CnDTR46T.js +0 -920
- package/dist/vue-ui-history-plot-ZcraxoDy.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-BPyfEQEf.js +0 -1416
- package/dist/vue-ui-radar-DNid-gVu.js +0 -1281
- package/dist/vue-ui-relation-circle-DALWYwuI.js +0 -924
- package/dist/vue-ui-rings-CGU8bnut.js +0 -1246
- package/dist/vue-ui-scatter-CDy2LLD_.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DzukoeRA.js +0 -560
- package/dist/vue-ui-strip-plot-DUv9SsML.js +0 -1340
- package/dist/vue-ui-thermometer-MfzmVt9N.js +0 -763
- package/dist/vue-ui-treemap-CeE1TT6j.js +0 -1587
- package/dist/vue-ui-waffle-KDOR3fMN.js +0 -1362
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as oe } from "./useConfig-
|
|
4
|
-
import { t as se } from "./usePrinter-
|
|
2
|
+
import { Gt as t, Ht as n, Lt as r, Ot as i, Q as a, Rt as o, W as ee, X as te, i as s, ot as ne, q as c, t as re, v as l, vt as ie, w as ae } from "./lib-CuwHGt1j.js";
|
|
3
|
+
import { t as oe } from "./useConfig-pVLia3dt.js";
|
|
4
|
+
import { t as se } from "./usePrinter-C0wAS8yc.js";
|
|
5
5
|
import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
|
|
6
6
|
import { t as ue } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as de } from "./useNestedProp-
|
|
7
|
+
import { t as de } from "./useNestedProp-BjkuFaz1.js";
|
|
8
8
|
import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as pe } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
10
|
-
import { t as me } from "./img-
|
|
11
|
-
import { n as he } from "./Title-
|
|
10
|
+
import { t as me } from "./img-B29J8tV5.js";
|
|
11
|
+
import { n as he } from "./Title-DDEEO-Nr.js";
|
|
12
12
|
import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
13
|
import { c as _e } from "./canvas-lib-BOP_HS11.js";
|
|
14
14
|
import { t as ve } from "./useResponsive-BfnK0KxU.js";
|
|
@@ -159,10 +159,10 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
159
159
|
},
|
|
160
160
|
emits: ["copyAlt"],
|
|
161
161
|
setup(e, { expose: ge, emit: Fe }) {
|
|
162
|
-
let mt = g(() => import("./Tooltip-
|
|
162
|
+
let mt = g(() => import("./Tooltip-BhKov422.js")), ht = g(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), gt = g(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), _t = g(() => import("./DataTable-PidUPOit.js")), vt = g(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), yt = g(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), bt = g(() => import("./PackageVersion-Cm-3hwIF.js").then((e) => e.t)), xt = g(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), { vue_ui_age_pyramid: St } = oe(), { isThemeValid: Ct, warnInvalidTheme: wt } = fe(), O = e, Tt = Fe, Et = d(() => !!O.dataset && O.dataset.length), k = x(ee()), A = x(!1), Dt = x(""), j = x(null), Ot = x(0), M = x(null), kt = x(null), At = x(null), jt = x(null), Mt = x(0), Nt = x(0), Pt = x(null), N = x(null), Ft = x(null), It = x(!1), Lt = x(!1), P = x(null), Rt = x({
|
|
163
163
|
x: 0,
|
|
164
164
|
y: 0
|
|
165
|
-
}),
|
|
165
|
+
}), F = x("pointer"), zt = x(!1), I = x(Kt()), L = d(() => I.value.userOptions.useCursorPointer), Bt = d(() => t({
|
|
166
166
|
defaultConfig: {
|
|
167
167
|
userOptions: { show: !1 },
|
|
168
168
|
table: { show: !1 },
|
|
@@ -189,11 +189,11 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
|
-
userConfig:
|
|
193
|
-
})), { loading:
|
|
192
|
+
userConfig: I.value.skeletonConfig ?? {}
|
|
193
|
+
})), { loading: Vt, FINAL_DATASET: R, manualLoading: Ht } = ce({
|
|
194
194
|
...Ne(O),
|
|
195
|
-
FINAL_CONFIG:
|
|
196
|
-
prepareConfig:
|
|
195
|
+
FINAL_CONFIG: I,
|
|
196
|
+
prepareConfig: Kt,
|
|
197
197
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
198
198
|
[
|
|
199
199
|
"_",
|
|
@@ -256,12 +256,12 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
256
256
|
144
|
|
257
257
|
]
|
|
258
258
|
],
|
|
259
|
-
skeletonConfig:
|
|
260
|
-
defaultConfig:
|
|
261
|
-
userConfig:
|
|
259
|
+
skeletonConfig: t({
|
|
260
|
+
defaultConfig: I.value,
|
|
261
|
+
userConfig: Bt.value
|
|
262
262
|
})
|
|
263
|
-
}), { userOptionsVisible:
|
|
264
|
-
function
|
|
263
|
+
}), { userOptionsVisible: Ut, setUserOptionsVisibility: Wt, keepUserOptionState: Gt } = be({ config: I.value }), { svgRef: z } = xe({ config: I.value.style.title });
|
|
264
|
+
function Kt() {
|
|
265
265
|
let e = de({
|
|
266
266
|
userConfig: O.config,
|
|
267
267
|
defaultConfig: St
|
|
@@ -278,57 +278,57 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
E(() => O.config, (e) => {
|
|
281
|
-
|
|
281
|
+
Vt.value || (I.value = Kt()), Ut.value = !I.value.userOptions.showOnChartHover, Jt(), Mt.value += 1, Nt.value += 1, H.value.showTable = I.value.table.show, H.value.showTooltip = I.value.style.tooltip.show;
|
|
282
282
|
}, { deep: !0 }), E(() => O.dataset, (e) => {
|
|
283
|
-
Array.isArray(e) && e.length > 0 && (
|
|
283
|
+
Array.isArray(e) && e.length > 0 && (Ht.value = !1);
|
|
284
284
|
}, { deep: !0 });
|
|
285
|
-
let
|
|
285
|
+
let B = Me(null), V = Me(null);
|
|
286
286
|
Ae(() => {
|
|
287
|
-
|
|
287
|
+
Jt();
|
|
288
288
|
});
|
|
289
|
-
let
|
|
290
|
-
function
|
|
291
|
-
if (
|
|
289
|
+
let qt = d(() => !!I.value.debug);
|
|
290
|
+
function Jt() {
|
|
291
|
+
if (i(O.dataset) && (a({
|
|
292
292
|
componentName: "VueUiAgePyramid",
|
|
293
293
|
type: "dataset",
|
|
294
|
-
debug:
|
|
295
|
-
}),
|
|
294
|
+
debug: qt.value
|
|
295
|
+
}), Ht.value = !0), i(O.dataset) || (Ht.value = I.value.loading), I.value.responsive) {
|
|
296
296
|
let e = _e(() => {
|
|
297
297
|
let { width: e, height: t } = ve({
|
|
298
298
|
chart: M.value,
|
|
299
|
-
title:
|
|
299
|
+
title: I.value.style.title.text ? kt.value : null,
|
|
300
300
|
source: At.value,
|
|
301
301
|
noTitle: jt.value
|
|
302
302
|
});
|
|
303
303
|
requestAnimationFrame(() => {
|
|
304
|
-
|
|
304
|
+
U.value.width = e, U.value.height = t;
|
|
305
305
|
});
|
|
306
306
|
});
|
|
307
|
-
|
|
307
|
+
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect()), B.value = new ResizeObserver(e), V.value = M.value.parentNode, B.value.observe(V.value);
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
ke(() => {
|
|
311
|
-
|
|
311
|
+
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
|
|
312
312
|
});
|
|
313
|
-
let { isPrinting:
|
|
313
|
+
let { isPrinting: Yt, isImaging: Xt, generatePdf: Zt, generateImage: Qt } = se({
|
|
314
314
|
elementId: `vue-ui-age-pyramid_${k.value}`,
|
|
315
|
-
fileName:
|
|
316
|
-
options:
|
|
317
|
-
}),
|
|
318
|
-
showTable:
|
|
319
|
-
showTooltip:
|
|
315
|
+
fileName: I.value.style.title.text || "vue-ui-age-pyramid",
|
|
316
|
+
options: I.value.userOptions.print
|
|
317
|
+
}), $t = d(() => I.value.userOptions.show && !I.value.style.title.text), H = x({
|
|
318
|
+
showTable: I.value.table.show,
|
|
319
|
+
showTooltip: I.value.style.tooltip.show
|
|
320
320
|
});
|
|
321
|
-
E(
|
|
322
|
-
|
|
323
|
-
showTable:
|
|
324
|
-
showTooltip:
|
|
321
|
+
E(I, () => {
|
|
322
|
+
H.value = {
|
|
323
|
+
showTable: I.value.table.show,
|
|
324
|
+
showTooltip: I.value.style.tooltip.show
|
|
325
325
|
};
|
|
326
326
|
}, { immediate: !0 });
|
|
327
|
-
let
|
|
328
|
-
height:
|
|
329
|
-
width:
|
|
330
|
-
}),
|
|
331
|
-
|
|
327
|
+
let U = x({
|
|
328
|
+
height: I.value.style.height,
|
|
329
|
+
width: I.value.style.width
|
|
330
|
+
}), en = d(() => U.value.width), tn = d(() => U.value.height), W = x(0), nn = _e((e) => {
|
|
331
|
+
W.value = e;
|
|
332
332
|
}, 100);
|
|
333
333
|
Pe((e) => {
|
|
334
334
|
let t = Pt.value;
|
|
@@ -338,37 +338,37 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
338
338
|
});
|
|
339
339
|
n.observe(t), e(() => n.disconnect());
|
|
340
340
|
}), ke(() => {
|
|
341
|
-
|
|
341
|
+
W.value = 0;
|
|
342
342
|
});
|
|
343
343
|
let G = d(() => {
|
|
344
|
-
let e =
|
|
344
|
+
let e = U.value.width - I.value.style.layout.padding.right - I.value.style.layout.padding.left, t = I.value.style.layout.padding.left, n = U.value.width - I.value.style.layout.padding.right;
|
|
345
345
|
return {
|
|
346
|
-
top:
|
|
346
|
+
top: I.value.style.layout.padding.top + I.value.style.layout.dataLabels.sideTitles.fontSize + I.value.style.layout.dataLabels.sideTitles.offsetY + 12,
|
|
347
347
|
left: t,
|
|
348
348
|
right: n,
|
|
349
|
-
bottom:
|
|
349
|
+
bottom: U.value.height - I.value.style.layout.padding.bottom - W.value,
|
|
350
350
|
width: e,
|
|
351
|
-
height:
|
|
352
|
-
centerX:
|
|
351
|
+
height: U.value.height - I.value.style.layout.padding.top - I.value.style.layout.padding.bottom - W.value - I.value.style.layout.dataLabels.sideTitles.fontSize - I.value.style.layout.dataLabels.sideTitles.offsetY - 12,
|
|
352
|
+
centerX: I.value.style.layout.padding.left + e / 2,
|
|
353
353
|
leftChart: {
|
|
354
|
-
width: e / 2 -
|
|
355
|
-
right: t + e / 2 -
|
|
354
|
+
width: e / 2 - I.value.style.layout.centerSlit.width,
|
|
355
|
+
right: t + e / 2 - I.value.style.layout.centerSlit.width
|
|
356
356
|
},
|
|
357
357
|
rightChart: {
|
|
358
|
-
width: e / 2 -
|
|
359
|
-
left: t + e / 2 +
|
|
358
|
+
width: e / 2 - I.value.style.layout.centerSlit.width,
|
|
359
|
+
left: t + e / 2 + I.value.style.layout.centerSlit.width
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
|
-
}), rn = d(() =>
|
|
362
|
+
}), rn = d(() => R.value.map((e) => I.value.style.layout.dataLabels.yAxis.display === "age" ? e[1] : e[0])), K = d(() => {
|
|
363
363
|
let e = an(q.value / 5), t = [], n = [];
|
|
364
364
|
for (let r = 0; r <= 5; r += 1) {
|
|
365
365
|
let i = e * r, a = e * (r - 5);
|
|
366
366
|
t.push({
|
|
367
367
|
value: i,
|
|
368
|
-
x: G.value.left + G.value.width / 2 +
|
|
368
|
+
x: G.value.left + G.value.width / 2 + I.value.style.layout.centerSlit.width + i / q.value * G.value.leftChart.width
|
|
369
369
|
}), n.push({
|
|
370
370
|
value: Math.abs(a),
|
|
371
|
-
x: G.value.left + G.value.width / 2 + a / q.value * G.value.leftChart.width -
|
|
371
|
+
x: G.value.left + G.value.width / 2 + a / q.value * G.value.leftChart.width - I.value.style.layout.centerSlit.width
|
|
372
372
|
});
|
|
373
373
|
}
|
|
374
374
|
return {
|
|
@@ -381,7 +381,7 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
381
381
|
let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
|
|
382
382
|
return n = Math.round(e / t) * t, n;
|
|
383
383
|
}
|
|
384
|
-
let q = d(() => Math.max(...
|
|
384
|
+
let q = d(() => Math.max(...R.value.flatMap((e) => e.slice(-2).map((e) => l(e))))), J = d(() => R.value.length), on = d(() => R.value.map((e) => ({
|
|
385
385
|
segment: e[0],
|
|
386
386
|
age: e[1],
|
|
387
387
|
left: {
|
|
@@ -393,14 +393,14 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
393
393
|
proportionToMax: e[3] / q.value
|
|
394
394
|
}
|
|
395
395
|
}))), Y = d(() => on.value.map((e, t) => {
|
|
396
|
-
let n = G.value.top + G.value.height / J.value * t, r = G.value.height / J.value -
|
|
396
|
+
let n = G.value.top + G.value.height / J.value * t, r = G.value.height / J.value - I.value.style.layout.bars.gap;
|
|
397
397
|
return {
|
|
398
398
|
segment: e.segment,
|
|
399
399
|
age: e.age,
|
|
400
400
|
left: {
|
|
401
401
|
...e.left,
|
|
402
402
|
y: n,
|
|
403
|
-
color:
|
|
403
|
+
color: I.value.style.layout.bars.left.color,
|
|
404
404
|
x: G.value.leftChart.right - e.left.proportionToMax * G.value.leftChart.width,
|
|
405
405
|
width: l(e.left.proportionToMax * G.value.leftChart.width),
|
|
406
406
|
height: r
|
|
@@ -408,7 +408,7 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
408
408
|
right: {
|
|
409
409
|
...e.right,
|
|
410
410
|
y: n,
|
|
411
|
-
color:
|
|
411
|
+
color: I.value.style.layout.bars.right.color,
|
|
412
412
|
x: G.value.rightChart.left,
|
|
413
413
|
width: l(e.right.proportionToMax * G.value.rightChart.width),
|
|
414
414
|
height: r
|
|
@@ -425,36 +425,36 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
427
|
function ln(e, t) {
|
|
428
|
-
|
|
428
|
+
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
429
429
|
datapoint: cn(t),
|
|
430
430
|
seriesIndex: e
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
function un(e, t) {
|
|
434
|
-
|
|
434
|
+
I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
435
435
|
datapoint: cn(t),
|
|
436
436
|
seriesIndex: e
|
|
437
|
-
}), !(
|
|
437
|
+
}), !(F.value === "keyboard" && P.value === e) && (j.value = null, A.value = !1);
|
|
438
438
|
}
|
|
439
439
|
function dn(e) {
|
|
440
|
-
if (!
|
|
441
|
-
let
|
|
442
|
-
if (!
|
|
443
|
-
let r =
|
|
444
|
-
r && (
|
|
440
|
+
if (!z.value) return;
|
|
441
|
+
let t = Y.value[e];
|
|
442
|
+
if (!t) return;
|
|
443
|
+
let r = n(G.value.left + G.value.width / 2, t.left.y + t.left.height / 2, z.value);
|
|
444
|
+
r && (Rt.value = r);
|
|
445
445
|
}
|
|
446
446
|
function fn(e, t, n = "pointer") {
|
|
447
|
-
|
|
447
|
+
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
448
448
|
datapoint: cn(t),
|
|
449
449
|
seriesIndex: e
|
|
450
|
-
}), j.value = e,
|
|
450
|
+
}), j.value = e, P.value = e, F.value = n, sn.value = {
|
|
451
451
|
datapoint: t,
|
|
452
452
|
seriesIndex: e,
|
|
453
453
|
series: Y.value,
|
|
454
|
-
config:
|
|
454
|
+
config: I.value
|
|
455
455
|
};
|
|
456
|
-
let r =
|
|
457
|
-
if (
|
|
456
|
+
let r = I.value.style.tooltip.customFormat;
|
|
457
|
+
if (ie(r) && ne(() => r({
|
|
458
458
|
seriesIndex: e,
|
|
459
459
|
datapoint: {
|
|
460
460
|
segment: t[0],
|
|
@@ -463,7 +463,7 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
463
463
|
right: t[3]
|
|
464
464
|
},
|
|
465
465
|
series: Y.value,
|
|
466
|
-
config:
|
|
466
|
+
config: I.value
|
|
467
467
|
}))) Dt.value = r({
|
|
468
468
|
seriesIndex: e,
|
|
469
469
|
datapoint: {
|
|
@@ -473,20 +473,20 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
473
473
|
right: t[3]
|
|
474
474
|
},
|
|
475
475
|
series: Y.value,
|
|
476
|
-
config:
|
|
476
|
+
config: I.value
|
|
477
477
|
});
|
|
478
478
|
else {
|
|
479
479
|
let n = "", r = Y.value[e];
|
|
480
|
-
n += `<div><b>${r.segment}</b></div>`, n += `<div>${
|
|
480
|
+
n += `<div><b>${r.segment}</b></div>`, n += `<div>${I.value.translations.age}: ${s(I.value.style.layout.dataLabels.yAxis.formatter, l(r.age), c({ v: l(r.age) }), {
|
|
481
481
|
datapoint: t,
|
|
482
482
|
seriesIndex: e
|
|
483
|
-
})}</div>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${
|
|
483
|
+
})}</div>`, n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.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="${I.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : I.value.style.layout.bars.left.color}"/></svg><div>${I.value.translations.female}</div><div><b>${s(I.value.style.layout.dataLabels.xAxis.formatter, l(r.left.value), c({ v: l(r.left.value) }), {
|
|
484
484
|
datapoint: t,
|
|
485
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="${
|
|
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="${I.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : I.value.style.layout.bars.right.color}"/></svg><div>${I.value.translations.male}</div><div><b>${s(I.value.style.layout.dataLabels.xAxis.formatter, l(r.right.value), c({ v: l(r.right.value) }), {
|
|
487
487
|
datapoint: t,
|
|
488
488
|
seriesIndex: e
|
|
489
|
-
})}</b></div></div>`, n += "</div>", n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${
|
|
489
|
+
})}</b></div></div>`, n += "</div>", n += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${I.value.style.tooltip.borderColor}"><div>${I.value.translations.total}</div><div><b>${s(I.value.style.layout.dataLabels.xAxis.formatter, l(r.right.value) + l(r.left.value), c({ v: l(r.right.value) + l(r.left.value) }), {
|
|
490
490
|
datapoint: t,
|
|
491
491
|
seriesIndex: e
|
|
492
492
|
})}</b></div></div>`, n += "</div>", Dt.value = `<div>${n}</div>`;
|
|
@@ -498,20 +498,20 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
498
498
|
function pn(e = null) {
|
|
499
499
|
De(() => {
|
|
500
500
|
let t = [
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
501
|
+
I.value.translations.year,
|
|
502
|
+
I.value.translations.age,
|
|
503
|
+
I.value.translations.female,
|
|
504
|
+
I.value.translations.male,
|
|
505
|
+
I.value.translations.total
|
|
506
506
|
], n = O.dataset.map((e) => [
|
|
507
507
|
e[0],
|
|
508
508
|
e[1],
|
|
509
509
|
e[2],
|
|
510
510
|
e[3],
|
|
511
511
|
e[2] ?? 0 + e[3] ?? 0
|
|
512
|
-
]), r =
|
|
513
|
-
[
|
|
514
|
-
[
|
|
512
|
+
]), r = ae([
|
|
513
|
+
[I.value.style.title.text],
|
|
514
|
+
[I.value.style.title.subtitle.text],
|
|
515
515
|
[
|
|
516
516
|
[""],
|
|
517
517
|
[""],
|
|
@@ -519,19 +519,19 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
519
519
|
],
|
|
520
520
|
t
|
|
521
521
|
].concat(n));
|
|
522
|
-
e ? e(r) :
|
|
522
|
+
e ? e(r) : te({
|
|
523
523
|
csvContent: r,
|
|
524
|
-
title:
|
|
524
|
+
title: I.value.style.title.text || "vue-ui-heatmap"
|
|
525
525
|
});
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
let X = d(() => {
|
|
529
529
|
let e = [
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
530
|
+
I.value.translations.year,
|
|
531
|
+
I.value.translations.age,
|
|
532
|
+
I.value.translations.female,
|
|
533
|
+
I.value.translations.male,
|
|
534
|
+
I.value.translations.total
|
|
535
535
|
];
|
|
536
536
|
return {
|
|
537
537
|
head: e,
|
|
@@ -544,16 +544,16 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
544
544
|
]),
|
|
545
545
|
config: {
|
|
546
546
|
th: {
|
|
547
|
-
backgroundColor:
|
|
548
|
-
color:
|
|
549
|
-
outline:
|
|
547
|
+
backgroundColor: I.value.table.th.backgroundColor,
|
|
548
|
+
color: I.value.table.th.color,
|
|
549
|
+
outline: I.value.table.th.outline
|
|
550
550
|
},
|
|
551
551
|
td: {
|
|
552
|
-
backgroundColor:
|
|
553
|
-
color:
|
|
554
|
-
outline:
|
|
552
|
+
backgroundColor: I.value.table.td.backgroundColor,
|
|
553
|
+
color: I.value.table.td.color,
|
|
554
|
+
outline: I.value.table.td.outline
|
|
555
555
|
},
|
|
556
|
-
breakpoint:
|
|
556
|
+
breakpoint: I.value.table.responsiveBreakpoint
|
|
557
557
|
},
|
|
558
558
|
colNames: e
|
|
559
559
|
};
|
|
@@ -562,10 +562,10 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
562
562
|
Z.value = e, Ot.value += 1;
|
|
563
563
|
}
|
|
564
564
|
function hn() {
|
|
565
|
-
|
|
565
|
+
H.value.showTable = !H.value.showTable;
|
|
566
566
|
}
|
|
567
567
|
function gn() {
|
|
568
|
-
|
|
568
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
569
569
|
}
|
|
570
570
|
let Q = x(!1);
|
|
571
571
|
function _n() {
|
|
@@ -582,7 +582,7 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
582
582
|
return {
|
|
583
583
|
imageUri: i,
|
|
584
584
|
base64: a,
|
|
585
|
-
title:
|
|
585
|
+
title: I.value.style.title.text,
|
|
586
586
|
width: t,
|
|
587
587
|
height: n,
|
|
588
588
|
aspectRatio: r
|
|
@@ -595,7 +595,7 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
595
595
|
start: 0,
|
|
596
596
|
end: Y.value.length
|
|
597
597
|
}),
|
|
598
|
-
configRef:
|
|
598
|
+
configRef: I,
|
|
599
599
|
rotationPath: [
|
|
600
600
|
"style",
|
|
601
601
|
"layout",
|
|
@@ -612,59 +612,59 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
612
612
|
"enable"
|
|
613
613
|
],
|
|
614
614
|
isAutoSize: !1,
|
|
615
|
-
width:
|
|
616
|
-
height:
|
|
615
|
+
width: en,
|
|
616
|
+
height: tn,
|
|
617
617
|
targetClass: ".vue-ui-age-pyramid-x-axis-label",
|
|
618
|
-
rotation:
|
|
618
|
+
rotation: I.value.style.layout.dataLabels.xAxis.autoRotate.angle
|
|
619
619
|
});
|
|
620
620
|
let $ = d(() => {
|
|
621
|
-
let e =
|
|
621
|
+
let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
|
|
622
622
|
return {
|
|
623
623
|
component: e ? xt : gt,
|
|
624
|
-
title: `${
|
|
624
|
+
title: `${I.value.style.title.text}${I.value.style.title.subtitle.text ? `: ${I.value.style.title.subtitle.text}` : ""}`,
|
|
625
625
|
props: e ? {
|
|
626
|
-
backgroundColor:
|
|
627
|
-
color:
|
|
628
|
-
headerColor:
|
|
629
|
-
headerBg:
|
|
626
|
+
backgroundColor: I.value.table.th.backgroundColor,
|
|
627
|
+
color: I.value.table.th.color,
|
|
628
|
+
headerColor: I.value.table.th.color,
|
|
629
|
+
headerBg: I.value.table.th.backgroundColor,
|
|
630
630
|
isFullscreen: Z.value,
|
|
631
631
|
fullscreenParent: M.value,
|
|
632
632
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
633
|
-
isCursorPointer:
|
|
633
|
+
isCursorPointer: L.value
|
|
634
634
|
} : {
|
|
635
635
|
hideDetails: !0,
|
|
636
636
|
config: {
|
|
637
637
|
open: t,
|
|
638
638
|
maxHeight: 1e4,
|
|
639
639
|
body: {
|
|
640
|
-
backgroundColor:
|
|
641
|
-
color:
|
|
640
|
+
backgroundColor: I.value.style.backgroundColor,
|
|
641
|
+
color: I.value.style.color
|
|
642
642
|
},
|
|
643
643
|
head: {
|
|
644
|
-
backgroundColor:
|
|
645
|
-
color:
|
|
644
|
+
backgroundColor: I.value.style.backgroundColor,
|
|
645
|
+
color: I.value.style.color
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
650
|
});
|
|
651
|
-
E(() =>
|
|
652
|
-
|
|
651
|
+
E(() => H.value.showTable, (e) => {
|
|
652
|
+
I.value.table.show || (e && I.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
653
653
|
});
|
|
654
654
|
function yn() {
|
|
655
|
-
|
|
655
|
+
H.value.showTable = !1, Ft.value && Ft.value.setTableIconState(!1);
|
|
656
656
|
}
|
|
657
|
-
let bn = d(() =>
|
|
658
|
-
svg:
|
|
659
|
-
title: d(() =>
|
|
657
|
+
let bn = d(() => I.value.style.backgroundColor), { exportSvg: xn, getSvg: Sn } = ue({
|
|
658
|
+
svg: z,
|
|
659
|
+
title: d(() => I.value.style.title),
|
|
660
660
|
backgroundColor: bn
|
|
661
661
|
});
|
|
662
662
|
async function Cn({ isCb: e }) {
|
|
663
|
-
|
|
663
|
+
Lt.value = !0, await De();
|
|
664
664
|
try {
|
|
665
665
|
if (e) {
|
|
666
666
|
let { blob: e, url: t, text: n, dataUrl: r } = await Sn();
|
|
667
|
-
await Promise.resolve(
|
|
667
|
+
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
668
668
|
blob: e,
|
|
669
669
|
url: t,
|
|
670
670
|
text: n,
|
|
@@ -672,7 +672,7 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
672
672
|
}));
|
|
673
673
|
} else await Promise.resolve(xn());
|
|
674
674
|
} finally {
|
|
675
|
-
|
|
675
|
+
Lt.value = !1;
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
function wn(e) {
|
|
@@ -684,52 +684,52 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
684
684
|
It.value = !1;
|
|
685
685
|
return;
|
|
686
686
|
}
|
|
687
|
-
|
|
687
|
+
Qt();
|
|
688
688
|
}
|
|
689
689
|
async function Tn() {
|
|
690
690
|
if (Tt("copyAlt", {
|
|
691
|
-
config:
|
|
691
|
+
config: I.value,
|
|
692
692
|
dataset: Y.value
|
|
693
|
-
}), !
|
|
693
|
+
}), !I.value.userOptions.callbacks.altCopy) {
|
|
694
694
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
697
|
-
await Promise.resolve(
|
|
698
|
-
config:
|
|
697
|
+
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
698
|
+
config: I.value,
|
|
699
699
|
dataset: Y.value
|
|
700
700
|
}));
|
|
701
701
|
}
|
|
702
702
|
function En() {
|
|
703
|
-
|
|
703
|
+
zt.value = !0;
|
|
704
704
|
}
|
|
705
705
|
function Dn() {
|
|
706
|
-
j.value = null,
|
|
706
|
+
j.value = null, P.value = null, F.value = "pointer", A.value = !1, zt.value = !1;
|
|
707
707
|
}
|
|
708
708
|
function On(e) {
|
|
709
|
-
if (!
|
|
709
|
+
if (!z.value || Q.value || document.activeElement !== z.value || !Y.value.length) return;
|
|
710
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
711
|
if (!t && !n && !r && !i) return;
|
|
712
712
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
713
|
-
j.value = null,
|
|
713
|
+
j.value = null, P.value = null, F.value = "pointer", A.value = !1;
|
|
714
714
|
return;
|
|
715
715
|
}
|
|
716
716
|
if (r) {
|
|
717
|
-
if (
|
|
718
|
-
let e = O.dataset[
|
|
717
|
+
if (P.value === null) return;
|
|
718
|
+
let e = O.dataset[P.value];
|
|
719
719
|
if (!e) return;
|
|
720
|
-
ln(
|
|
720
|
+
ln(P.value, e);
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
|
-
let a =
|
|
723
|
+
let a = P.value, o = j.value, ee = a !== null && a >= 0 && a < Y.value.length, te = o !== null && o >= 0 && o < Y.value.length;
|
|
724
724
|
ee ? t ? a = a - 1 < 0 ? Y.value.length - 1 : a - 1 : n && (a = a + 1 > Y.value.length - 1 ? 0 : a + 1) : te ? (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
725
|
let s = O.dataset[a];
|
|
726
726
|
s && fn(a, s, "keyboard");
|
|
727
727
|
}
|
|
728
728
|
return ge({
|
|
729
729
|
getImage: vn,
|
|
730
|
-
generatePdf:
|
|
730
|
+
generatePdf: Zt,
|
|
731
731
|
generateCsv: pn,
|
|
732
|
-
generateImage:
|
|
732
|
+
generateImage: Qt,
|
|
733
733
|
generateSvg: Cn,
|
|
734
734
|
toggleTable: hn,
|
|
735
735
|
toggleTooltip: gn,
|
|
@@ -741,21 +741,21 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
741
741
|
ref_key: "agePyramid",
|
|
742
742
|
ref: M,
|
|
743
743
|
id: `vue-ui-age-pyramid_${k.value}`,
|
|
744
|
-
style: y(`font-family:${
|
|
745
|
-
onMouseenter: n[1] ||= () => T(
|
|
746
|
-
onMouseleave: n[2] ||= () => T(
|
|
744
|
+
style: y(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
|
|
745
|
+
onMouseenter: n[1] ||= () => T(Wt)(!0),
|
|
746
|
+
onMouseleave: n[2] ||= () => T(Wt)(!1)
|
|
747
747
|
}, [
|
|
748
748
|
h("div", {
|
|
749
749
|
id: `chart-instructions-${k.value}`,
|
|
750
750
|
class: "sr-only"
|
|
751
|
-
}, [h("p", null, w(
|
|
751
|
+
}, [h("p", null, w(I.value.a11y.translations.keyboardNavigation), 1)], 8, Le),
|
|
752
752
|
X.value?.body?.length ? (b(), f(ye, {
|
|
753
753
|
key: 0,
|
|
754
754
|
uid: k.value,
|
|
755
755
|
head: X.value.head,
|
|
756
756
|
body: X.value.body,
|
|
757
|
-
notice:
|
|
758
|
-
caption:
|
|
757
|
+
notice: I.value.a11y.translations.tableAvailable,
|
|
758
|
+
caption: I.value.a11y.translations.tableCaption
|
|
759
759
|
}, null, 8, [
|
|
760
760
|
"uid",
|
|
761
761
|
"head",
|
|
@@ -763,13 +763,13 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
763
763
|
"notice",
|
|
764
764
|
"caption"
|
|
765
765
|
])) : p("", !0),
|
|
766
|
-
|
|
766
|
+
I.value.userOptions.buttons.annotator ? (b(), f(T(vt), {
|
|
767
767
|
key: 1,
|
|
768
|
-
svgRef: T(
|
|
769
|
-
backgroundColor:
|
|
770
|
-
color:
|
|
768
|
+
svgRef: T(z),
|
|
769
|
+
backgroundColor: I.value.style.backgroundColor,
|
|
770
|
+
color: I.value.style.color,
|
|
771
771
|
active: Q.value,
|
|
772
|
-
isCursorPointer:
|
|
772
|
+
isCursorPointer: L.value,
|
|
773
773
|
onClose: _n
|
|
774
774
|
}, {
|
|
775
775
|
"annotator-action-close": D(() => [C(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -786,14 +786,14 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
786
786
|
"active",
|
|
787
787
|
"isCursorPointer"
|
|
788
788
|
])) : p("", !0),
|
|
789
|
-
|
|
789
|
+
$t.value ? (b(), m("div", {
|
|
790
790
|
key: 2,
|
|
791
791
|
ref_key: "noTitle",
|
|
792
792
|
ref: jt,
|
|
793
793
|
class: "vue-data-ui-no-title-space",
|
|
794
794
|
style: "height:36px; width: 100%;background:transparent"
|
|
795
795
|
}, null, 512)) : p("", !0),
|
|
796
|
-
|
|
796
|
+
I.value.style.title.text ? (b(), m("div", {
|
|
797
797
|
key: 3,
|
|
798
798
|
ref_key: "chartTitle",
|
|
799
799
|
ref: kt,
|
|
@@ -803,44 +803,44 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
803
803
|
config: {
|
|
804
804
|
title: {
|
|
805
805
|
cy: "pyramid-div-title",
|
|
806
|
-
...
|
|
806
|
+
...I.value.style.title
|
|
807
807
|
},
|
|
808
808
|
subtitle: {
|
|
809
809
|
cy: "pyramid-div-subtitle",
|
|
810
|
-
...
|
|
810
|
+
...I.value.style.title.subtitle
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
814
|
-
|
|
814
|
+
I.value.userOptions.show && Et.value && (T(Gt) || T(Ut)) ? (b(), f(T(yt), {
|
|
815
815
|
ref_key: "userOptionsRef",
|
|
816
816
|
ref: Ft,
|
|
817
817
|
key: `user_options_${Ot.value}`,
|
|
818
|
-
backgroundColor:
|
|
819
|
-
color:
|
|
820
|
-
isImaging: T(
|
|
821
|
-
isPrinting: T(
|
|
818
|
+
backgroundColor: I.value.style.backgroundColor,
|
|
819
|
+
color: I.value.style.color,
|
|
820
|
+
isImaging: T(Xt),
|
|
821
|
+
isPrinting: T(Yt),
|
|
822
822
|
uid: k.value,
|
|
823
|
-
hasTooltip:
|
|
824
|
-
hasPdf:
|
|
825
|
-
hasXls:
|
|
826
|
-
hasImg:
|
|
827
|
-
hasSvg:
|
|
828
|
-
hasTable:
|
|
829
|
-
hasFullscreen:
|
|
830
|
-
hasAltCopy:
|
|
823
|
+
hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.tooltip.show,
|
|
824
|
+
hasPdf: I.value.userOptions.buttons.pdf,
|
|
825
|
+
hasXls: I.value.userOptions.buttons.csv,
|
|
826
|
+
hasImg: I.value.userOptions.buttons.img,
|
|
827
|
+
hasSvg: I.value.userOptions.buttons.svg,
|
|
828
|
+
hasTable: I.value.userOptions.buttons.table,
|
|
829
|
+
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
830
|
+
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
831
831
|
isFullscreen: Z.value,
|
|
832
|
-
isTooltip:
|
|
833
|
-
titles: { ...
|
|
832
|
+
isTooltip: H.value.showTooltip,
|
|
833
|
+
titles: { ...I.value.userOptions.buttonTitles },
|
|
834
834
|
chartElement: M.value,
|
|
835
|
-
position:
|
|
836
|
-
hasAnnotator:
|
|
835
|
+
position: I.value.userOptions.position,
|
|
836
|
+
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
837
837
|
isAnnotation: Q.value,
|
|
838
|
-
callbacks:
|
|
839
|
-
printScale:
|
|
840
|
-
tableDialog:
|
|
841
|
-
isCursorPointer:
|
|
838
|
+
callbacks: I.value.userOptions.callbacks,
|
|
839
|
+
printScale: I.value.userOptions.print.scale,
|
|
840
|
+
tableDialog: I.value.table.useDialog,
|
|
841
|
+
isCursorPointer: L.value,
|
|
842
842
|
onToggleFullscreen: mn,
|
|
843
|
-
onGeneratePdf: T(
|
|
843
|
+
onGeneratePdf: T(Zt),
|
|
844
844
|
onGenerateCsv: pn,
|
|
845
845
|
onGenerateImage: wn,
|
|
846
846
|
onGenerateSvg: Cn,
|
|
@@ -848,7 +848,7 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
848
848
|
onToggleTooltip: gn,
|
|
849
849
|
onToggleAnnotator: _n,
|
|
850
850
|
onCopyAlt: Tn,
|
|
851
|
-
style: y({ visibility: T(
|
|
851
|
+
style: y({ visibility: T(Gt) ? T(Ut) ? "visible" : "hidden" : "visible" })
|
|
852
852
|
}, Ce({ _: 2 }, [
|
|
853
853
|
t.$slots.menuIcon ? {
|
|
854
854
|
name: "menuIcon",
|
|
@@ -922,14 +922,14 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
922
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
923
|
h("div", Re, [(b(), m("svg", {
|
|
924
924
|
ref_key: "svgRef",
|
|
925
|
-
ref:
|
|
926
|
-
xmlns: T(
|
|
925
|
+
ref: z,
|
|
926
|
+
xmlns: T(re),
|
|
927
927
|
class: Oe({
|
|
928
928
|
"vue-data-ui-fullscreen--on": Z.value,
|
|
929
929
|
"vue-data-ui-fulscreen--off": !Z.value
|
|
930
930
|
}),
|
|
931
|
-
viewBox: `0 0 ${
|
|
932
|
-
style: y(`max-width:100%;overflow:visible;background:transparent;color:${
|
|
931
|
+
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
932
|
+
style: y(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.color}`),
|
|
933
933
|
tabindex: "0",
|
|
934
934
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
935
935
|
onFocus: En,
|
|
@@ -953,10 +953,10 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
953
953
|
y2: "0%"
|
|
954
954
|
}, [h("stop", {
|
|
955
955
|
offset: "0%",
|
|
956
|
-
"stop-color":
|
|
956
|
+
"stop-color": I.value.style.layout.bars.left.color
|
|
957
957
|
}, null, 8, He), h("stop", {
|
|
958
958
|
offset: "100%",
|
|
959
|
-
"stop-color": T(r)(T(o)(
|
|
959
|
+
"stop-color": T(r)(T(o)(I.value.style.layout.bars.left.color, I.value.style.layout.bars.gradient.shiftHue), 100 - I.value.style.layout.bars.gradient.intensity)
|
|
960
960
|
}, null, 8, Ue)], 8, Ve), h("linearGradient", {
|
|
961
961
|
id: `age_pyramid_right_${k.value}`,
|
|
962
962
|
x1: "0%",
|
|
@@ -965,10 +965,10 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
965
965
|
y2: "0%"
|
|
966
966
|
}, [h("stop", {
|
|
967
967
|
offset: "0%",
|
|
968
|
-
"stop-color": T(r)(T(o)(
|
|
968
|
+
"stop-color": T(r)(T(o)(I.value.style.layout.bars.right.color, I.value.style.layout.bars.gradient.shiftHue), 100 - I.value.style.layout.bars.gradient.intensity)
|
|
969
969
|
}, null, 8, Ge), h("stop", {
|
|
970
970
|
offset: "100%",
|
|
971
|
-
"stop-color":
|
|
971
|
+
"stop-color": I.value.style.layout.bars.right.color
|
|
972
972
|
}, null, 8, Ke)], 8, We)]),
|
|
973
973
|
(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("g", null, [
|
|
974
974
|
h("rect", {
|
|
@@ -976,98 +976,98 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
976
976
|
y: e.left.y,
|
|
977
977
|
width: T(l)(e.left.width <= 0 ? 1e-4 : e.left.width),
|
|
978
978
|
height: e.left.height <= 0 ? 1e-4 : e.left.height,
|
|
979
|
-
fill:
|
|
980
|
-
rx:
|
|
979
|
+
fill: I.value.style.layout.bars.gradient.underlayer,
|
|
980
|
+
rx: I.value.style.layout.bars.borderRadius
|
|
981
981
|
}, null, 8, qe),
|
|
982
982
|
h("rect", {
|
|
983
983
|
x: e.left.x,
|
|
984
984
|
y: e.left.y,
|
|
985
985
|
width: e.left.width <= 0 ? 1e-4 : e.left.width,
|
|
986
986
|
height: e.left.height <= 0 ? 1e-4 : e.left.height,
|
|
987
|
-
fill:
|
|
988
|
-
rx:
|
|
987
|
+
fill: I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${k.value})` : e.left.color,
|
|
988
|
+
rx: I.value.style.layout.bars.borderRadius
|
|
989
989
|
}, null, 8, Je),
|
|
990
990
|
h("rect", {
|
|
991
991
|
x: e.right.x,
|
|
992
992
|
y: e.right.y,
|
|
993
993
|
width: e.right.width <= 0 ? 1e-4 : e.right.width,
|
|
994
994
|
height: e.right.height <= 0 ? 1e-4 : e.right.height,
|
|
995
|
-
fill:
|
|
996
|
-
rx:
|
|
995
|
+
fill: I.value.style.layout.bars.gradient.underlayer,
|
|
996
|
+
rx: I.value.style.layout.bars.borderRadius
|
|
997
997
|
}, null, 8, Ye),
|
|
998
998
|
h("rect", {
|
|
999
999
|
x: e.right.x,
|
|
1000
1000
|
y: e.right.y,
|
|
1001
1001
|
width: e.right.width <= 0 ? 1e-4 : e.right.width,
|
|
1002
1002
|
height: e.right.height <= 0 ? 1e-4 : e.right.height,
|
|
1003
|
-
fill:
|
|
1004
|
-
rx:
|
|
1003
|
+
fill: I.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${k.value})` : e.right.color,
|
|
1004
|
+
rx: I.value.style.layout.bars.borderRadius
|
|
1005
1005
|
}, null, 8, Xe)
|
|
1006
1006
|
]))), 256)),
|
|
1007
1007
|
h("g", null, [
|
|
1008
|
-
|
|
1008
|
+
I.value.style.layout.dataLabels.sideTitles.show ? (b(), m("g", Ze, [h("text", {
|
|
1009
1009
|
x: G.value.left,
|
|
1010
|
-
y:
|
|
1011
|
-
fill:
|
|
1012
|
-
"font-size":
|
|
1010
|
+
y: I.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1011
|
+
fill: I.value.style.layout.dataLabels.sideTitles.useSideColor ? I.value.style.layout.bars.left.color : I.value.style.layout.dataLabels.sideTitles.color,
|
|
1012
|
+
"font-size": I.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1013
1013
|
"text-anchor": "start",
|
|
1014
|
-
"font-weight":
|
|
1015
|
-
}, w(
|
|
1014
|
+
"font-weight": I.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
1015
|
+
}, w(I.value.translations.female), 9, Qe), h("text", {
|
|
1016
1016
|
x: G.value.right,
|
|
1017
|
-
y:
|
|
1018
|
-
fill:
|
|
1019
|
-
"font-size":
|
|
1017
|
+
y: I.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1018
|
+
fill: I.value.style.layout.dataLabels.sideTitles.useSideColor ? I.value.style.layout.bars.right.color : I.value.style.layout.dataLabels.sideTitles.color,
|
|
1019
|
+
"font-size": I.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1020
1020
|
"text-anchor": "end",
|
|
1021
|
-
"font-weight":
|
|
1022
|
-
}, w(
|
|
1023
|
-
|
|
1021
|
+
"font-weight": I.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
1022
|
+
}, w(I.value.translations.male), 9, $e)])) : p("", !0),
|
|
1023
|
+
I.value.style.layout.dataLabels.yAxis.show ? (b(), m("g", et, [(b(!0), m(u, null, S(rn.value, (e, t) => (b(), m(u, null, [t % I.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (b(), m("text", {
|
|
1024
1024
|
key: 0,
|
|
1025
1025
|
x: G.value.centerX,
|
|
1026
|
-
y: G.value.top + G.value.height / J.value * t +
|
|
1026
|
+
y: G.value.top + G.value.height / J.value * t + I.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
1027
1027
|
"text-anchor": "middle",
|
|
1028
|
-
"font-size":
|
|
1029
|
-
fill:
|
|
1030
|
-
"font-weight":
|
|
1031
|
-
}, w(T(
|
|
1028
|
+
"font-size": I.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1029
|
+
fill: I.value.style.layout.dataLabels.yAxis.color,
|
|
1030
|
+
"font-weight": I.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1031
|
+
}, w(T(s)(I.value.style.layout.dataLabels.yAxis.formatter, e, T(c)({ v: e }), {
|
|
1032
1032
|
datapoint: e,
|
|
1033
1033
|
seriesIndex: t
|
|
1034
1034
|
})), 9, tt)) : p("", !0)], 64))), 256))])) : p("", !0),
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
I.value.style.layout.dataLabels.xAxis.show ? (b(), m("g", nt, [
|
|
1036
|
+
I.value.style.layout.grid.show ? (b(), m("g", rt, [h("line", {
|
|
1037
1037
|
x1: K.value.right[0].x,
|
|
1038
1038
|
x2: K.value.right.at(-1).x,
|
|
1039
|
-
y1: G.value.bottom +
|
|
1040
|
-
y2: G.value.bottom +
|
|
1041
|
-
stroke:
|
|
1042
|
-
"stroke-width":
|
|
1039
|
+
y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1040
|
+
y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1041
|
+
stroke: I.value.style.layout.grid.stroke,
|
|
1042
|
+
"stroke-width": I.value.style.layout.grid.strokeWidth,
|
|
1043
1043
|
"stroke-linecap": "round"
|
|
1044
1044
|
}, null, 8, it), h("line", {
|
|
1045
1045
|
x1: K.value.left[0].x,
|
|
1046
1046
|
x2: K.value.left.at(-1).x,
|
|
1047
|
-
y1: G.value.bottom +
|
|
1048
|
-
y2: G.value.bottom +
|
|
1049
|
-
stroke:
|
|
1050
|
-
"stroke-width":
|
|
1047
|
+
y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1048
|
+
y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1049
|
+
stroke: I.value.style.layout.grid.stroke,
|
|
1050
|
+
"stroke-width": I.value.style.layout.grid.strokeWidth,
|
|
1051
1051
|
"stroke-linecap": "round"
|
|
1052
1052
|
}, null, 8, at)])) : p("", !0),
|
|
1053
|
-
(b(!0), m(u, null, S(K.value.right, (e, t) => (b(), m("g", null, [
|
|
1053
|
+
(b(!0), m(u, null, S(K.value.right, (e, t) => (b(), m("g", null, [I.value.style.layout.grid.show ? (b(), m("line", {
|
|
1054
1054
|
key: 0,
|
|
1055
1055
|
x1: e.x,
|
|
1056
1056
|
x2: e.x,
|
|
1057
|
-
y1: G.value.bottom +
|
|
1058
|
-
y2: G.value.bottom +
|
|
1059
|
-
stroke:
|
|
1060
|
-
"stroke-width":
|
|
1057
|
+
y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1058
|
+
y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
|
|
1059
|
+
stroke: I.value.style.layout.grid.stroke,
|
|
1060
|
+
"stroke-width": I.value.style.layout.grid.strokeWidth,
|
|
1061
1061
|
"stroke-linecap": "round"
|
|
1062
1062
|
}, null, 8, ot)) : p("", !0)]))), 256)),
|
|
1063
|
-
(b(!0), m(u, null, S(K.value.left, (e, t) => (b(), m("g", null, [
|
|
1063
|
+
(b(!0), m(u, null, S(K.value.left, (e, t) => (b(), m("g", null, [I.value.style.layout.grid.show ? (b(), m("line", {
|
|
1064
1064
|
key: 0,
|
|
1065
1065
|
x1: e.x,
|
|
1066
1066
|
x2: e.x,
|
|
1067
|
-
y1: G.value.bottom +
|
|
1068
|
-
y2: G.value.bottom +
|
|
1069
|
-
stroke:
|
|
1070
|
-
"stroke-width":
|
|
1067
|
+
y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1068
|
+
y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
|
|
1069
|
+
stroke: I.value.style.layout.grid.stroke,
|
|
1070
|
+
"stroke-width": I.value.style.layout.grid.strokeWidth,
|
|
1071
1071
|
"stroke-linecap": "round"
|
|
1072
1072
|
}, null, 8, st)) : p("", !0)]))), 256)),
|
|
1073
1073
|
h("g", {
|
|
@@ -1075,56 +1075,56 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
1075
1075
|
ref: Pt
|
|
1076
1076
|
}, [(b(!0), m(u, null, S(K.value.right, (e, t) => (b(), m("text", {
|
|
1077
1077
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1078
|
-
"font-size":
|
|
1079
|
-
fill:
|
|
1080
|
-
"text-anchor":
|
|
1081
|
-
"font-weight":
|
|
1082
|
-
transform: `translate(${e.x}, ${G.value.bottom +
|
|
1083
|
-
}, w(T(
|
|
1078
|
+
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1079
|
+
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1080
|
+
"text-anchor": I.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
1081
|
+
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1082
|
+
transform: `translate(${e.x}, ${G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1083
|
+
}, w(T(s)(I.value.style.layout.dataLabels.xAxis.formatter, e.value / I.value.style.layout.dataLabels.xAxis.scale, T(c)({ v: e.value / I.value.style.layout.dataLabels.xAxis.scale }), {
|
|
1084
1084
|
datapoint: e,
|
|
1085
1085
|
seriesIndex: t
|
|
1086
1086
|
})), 9, ct))), 256)), (b(!0), m(u, null, S(K.value.left, (e, t) => (b(), m("text", {
|
|
1087
1087
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1088
|
-
"font-size":
|
|
1089
|
-
fill:
|
|
1090
|
-
"text-anchor":
|
|
1091
|
-
"font-weight":
|
|
1092
|
-
transform: `translate(${e.x}, ${G.value.bottom +
|
|
1093
|
-
}, w(T(
|
|
1088
|
+
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1089
|
+
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1090
|
+
"text-anchor": I.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
1091
|
+
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1092
|
+
transform: `translate(${e.x}, ${G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1093
|
+
}, w(T(s)(I.value.style.layout.dataLabels.xAxis.formatter, e.value / I.value.style.layout.dataLabels.xAxis.scale, T(c)({ v: e.value / I.value.style.layout.dataLabels.xAxis.scale }), {
|
|
1094
1094
|
datapoint: e,
|
|
1095
1095
|
seriesIndex: t
|
|
1096
1096
|
})), 9, lt))), 256))], 512),
|
|
1097
1097
|
h("text", {
|
|
1098
1098
|
x: G.value.right,
|
|
1099
|
-
y:
|
|
1099
|
+
y: U.value.height,
|
|
1100
1100
|
"text-anchor": "end",
|
|
1101
|
-
"font-size":
|
|
1102
|
-
fill:
|
|
1103
|
-
"font-weight":
|
|
1104
|
-
}, w(
|
|
1101
|
+
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1102
|
+
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1103
|
+
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
1104
|
+
}, w(I.value.style.layout.dataLabels.xAxis.translation), 9, ut)
|
|
1105
1105
|
])) : p("", !0)
|
|
1106
1106
|
]),
|
|
1107
1107
|
(b(!0), m(u, null, S(e.dataset, (e, t) => (b(), m("g", null, [h("rect", {
|
|
1108
1108
|
x: G.value.left,
|
|
1109
|
-
y: G.value.top + G.value.height / J.value * t -
|
|
1109
|
+
y: G.value.top + G.value.height / J.value * t - I.value.style.layout.bars.gap / 2,
|
|
1110
1110
|
width: G.value.width <= 0 ? 1e-4 : G.value.width,
|
|
1111
1111
|
height: G.value.height / J.value <= 0 ? 1e-4 : G.value.height / J.value,
|
|
1112
|
-
fill: j.value !== null && j.value === t ? T(r)(
|
|
1112
|
+
fill: j.value !== null && j.value === t ? T(r)(I.value.style.highlighter.color, I.value.style.highlighter.opacity) : "transparent",
|
|
1113
1113
|
onMouseover: (n) => fn(t, e, "pointer"),
|
|
1114
1114
|
onMouseleave: (n) => un(t, e),
|
|
1115
1115
|
onClick: (n) => ln(t, e)
|
|
1116
1116
|
}, null, 40, dt)]))), 256)),
|
|
1117
1117
|
C(t.$slots, "svg", { svg: {
|
|
1118
|
-
...
|
|
1118
|
+
...U.value,
|
|
1119
1119
|
drawingArea: G.value,
|
|
1120
|
-
isPrintingImg: T(
|
|
1121
|
-
isPrintingSvg:
|
|
1120
|
+
isPrintingImg: T(Yt) || T(Xt) || It.value,
|
|
1121
|
+
isPrintingSvg: Lt.value
|
|
1122
1122
|
} }, void 0, !0)
|
|
1123
1123
|
], 46, ze)), t.$slots.hint ? (b(), m("div", ft, [C(t.$slots, "hint", v(_({
|
|
1124
|
-
hint:
|
|
1125
|
-
isVisible:
|
|
1124
|
+
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1125
|
+
isVisible: zt.value
|
|
1126
1126
|
})), void 0, !0)])) : p("", !0)]),
|
|
1127
|
-
t.$slots.watermark ? (b(), m("div", pt, [C(t.$slots, "watermark", v(_({ isPrinting: T(
|
|
1127
|
+
t.$slots.watermark ? (b(), m("div", pt, [C(t.$slots, "watermark", v(_({ isPrinting: T(Yt) || T(Xt) || It.value || Lt.value })), void 0, !0)])) : p("", !0),
|
|
1128
1128
|
C(t.$slots, "legend", { legend: Y.value }, void 0, !0),
|
|
1129
1129
|
t.$slots.source ? (b(), m("div", {
|
|
1130
1130
|
key: 6,
|
|
@@ -1133,28 +1133,28 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
1133
1133
|
dir: "auto"
|
|
1134
1134
|
}, [C(t.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1135
1135
|
Te(T(mt), {
|
|
1136
|
-
teleportTo:
|
|
1137
|
-
show:
|
|
1138
|
-
backgroundColor:
|
|
1139
|
-
color:
|
|
1140
|
-
borderRadius:
|
|
1141
|
-
borderColor:
|
|
1142
|
-
borderWidth:
|
|
1143
|
-
fontSize:
|
|
1144
|
-
backgroundOpacity:
|
|
1145
|
-
position:
|
|
1146
|
-
offsetX:
|
|
1147
|
-
offsetY:
|
|
1136
|
+
teleportTo: I.value.style.tooltip.teleportTo,
|
|
1137
|
+
show: H.value.showTooltip && A.value,
|
|
1138
|
+
backgroundColor: I.value.style.tooltip.backgroundColor,
|
|
1139
|
+
color: I.value.style.tooltip.color,
|
|
1140
|
+
borderRadius: I.value.style.tooltip.borderRadius,
|
|
1141
|
+
borderColor: I.value.style.tooltip.borderColor,
|
|
1142
|
+
borderWidth: I.value.style.tooltip.borderWidth,
|
|
1143
|
+
fontSize: I.value.style.tooltip.fontSize,
|
|
1144
|
+
backgroundOpacity: I.value.style.tooltip.backgroundOpacity,
|
|
1145
|
+
position: I.value.style.tooltip.position,
|
|
1146
|
+
offsetX: I.value.style.tooltip.offsetX,
|
|
1147
|
+
offsetY: I.value.style.tooltip.offsetY,
|
|
1148
1148
|
parent: M.value,
|
|
1149
1149
|
content: Dt.value,
|
|
1150
1150
|
isFullscreen: Z.value,
|
|
1151
|
-
isCustom:
|
|
1152
|
-
smooth:
|
|
1153
|
-
backdropFilter:
|
|
1154
|
-
smoothForce:
|
|
1155
|
-
smoothSnapThreshold:
|
|
1156
|
-
isA11yMode:
|
|
1157
|
-
a11yPosition:
|
|
1151
|
+
isCustom: I.value.style.tooltip.customFormat && typeof I.value.style.tooltip.customFormat == "function",
|
|
1152
|
+
smooth: I.value.style.tooltip.smooth,
|
|
1153
|
+
backdropFilter: I.value.style.tooltip.backdropFilter,
|
|
1154
|
+
smoothForce: I.value.style.tooltip.smoothForce,
|
|
1155
|
+
smoothSnapThreshold: I.value.style.tooltip.smoothSnapThreshold,
|
|
1156
|
+
isA11yMode: F.value === "keyboard",
|
|
1157
|
+
a11yPosition: Rt.value
|
|
1158
1158
|
}, {
|
|
1159
1159
|
"tooltip-before": D(() => [C(t.$slots, "tooltip-before", v(_({ ...sn.value })), void 0, !0)]),
|
|
1160
1160
|
tooltip: D(() => [C(t.$slots, "tooltip", v(_({ ...sn.value })), void 0, !0)]),
|
|
@@ -1184,7 +1184,7 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
1184
1184
|
"isA11yMode",
|
|
1185
1185
|
"a11yPosition"
|
|
1186
1186
|
]),
|
|
1187
|
-
Et.value &&
|
|
1187
|
+
Et.value && I.value.userOptions.buttons.table ? (b(), f(je($.value.component), Ee({ key: 7 }, $.value.props, {
|
|
1188
1188
|
ref_key: "tableUnit",
|
|
1189
1189
|
ref: N,
|
|
1190
1190
|
onClose: yn
|
|
@@ -1195,9 +1195,9 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
1195
1195
|
head: X.value.head,
|
|
1196
1196
|
body: X.value.body,
|
|
1197
1197
|
config: X.value.config,
|
|
1198
|
-
title:
|
|
1199
|
-
withCloseButton: !
|
|
1200
|
-
isCursorPointer:
|
|
1198
|
+
title: I.value.table.useDialog ? "" : $.value.title,
|
|
1199
|
+
withCloseButton: !I.value.table.useDialog,
|
|
1200
|
+
isCursorPointer: L.value,
|
|
1201
1201
|
onClose: yn
|
|
1202
1202
|
}, {
|
|
1203
1203
|
th: D(({ th: e }) => [we(w(e), 1)]),
|
|
@@ -1213,24 +1213,24 @@ var Fe = /* @__PURE__ */ e({ default: () => mt }), Ie = ["id"], Le = ["id"], Re
|
|
|
1213
1213
|
"isCursorPointer"
|
|
1214
1214
|
]))]),
|
|
1215
1215
|
_: 2
|
|
1216
|
-
}, [
|
|
1216
|
+
}, [I.value.table.useDialog ? {
|
|
1217
1217
|
name: "title",
|
|
1218
1218
|
fn: D(() => [we(w($.value.title), 1)]),
|
|
1219
1219
|
key: "0"
|
|
1220
|
-
} : void 0,
|
|
1220
|
+
} : void 0, I.value.table.useDialog ? {
|
|
1221
1221
|
name: "actions",
|
|
1222
1222
|
fn: D(() => [h("button", {
|
|
1223
1223
|
tabindex: "0",
|
|
1224
1224
|
class: "vue-ui-user-options-button",
|
|
1225
|
-
onClick: n[0] ||= (e) => pn(
|
|
1226
|
-
style: y({ cursor:
|
|
1225
|
+
onClick: n[0] ||= (e) => pn(I.value.userOptions.callbacks.csv),
|
|
1226
|
+
style: y({ cursor: L.value ? "pointer" : "default" })
|
|
1227
1227
|
}, [Te(T(ht), {
|
|
1228
1228
|
name: "fileCsv",
|
|
1229
1229
|
stroke: $.value.props.color
|
|
1230
1230
|
}, null, 8, ["stroke"])], 4)]),
|
|
1231
1231
|
key: "1"
|
|
1232
1232
|
} : void 0]), 1040)) : p("", !0),
|
|
1233
|
-
C(t.$slots, "skeleton", {}, () => [T(
|
|
1233
|
+
C(t.$slots, "skeleton", {}, () => [T(Vt) ? (b(), f(le, { key: 0 })) : p("", !0)], !0)
|
|
1234
1234
|
], 46, Ie));
|
|
1235
1235
|
}
|
|
1236
1236
|
}, [["__scopeId", "data-v-6401e590"]]);
|