vue-data-ui 3.25.3 → 3.25.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-Bvx4_tSN.js → Arrow-DLn-pcrh.js} +1 -1
- package/dist/{BaseDraggableDialog-BCQY4Tir.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
- package/dist/{BaseIcon-CVrQHhw1.js → BaseIcon-t83PDe9k.js} +1 -1
- package/dist/{BaseLegendToggle-BF-thEu0.js → BaseLegendToggle-__JnV08B.js} +1 -1
- package/dist/{BaseZoomControls-BAHeLgV8.js → BaseZoomControls-Xo16vFa4.js} +2 -2
- package/dist/{ColorPicker-B0CMtFkc.js → ColorPicker-ZJrR3Olp.js} +2 -2
- package/dist/{DataTable-BBpTEQY5.js → DataTable-COIO9gi4.js} +2 -2
- package/dist/{HillActions-ChMsbYib.js → HillActions-Cl-dNBZR.js} +1 -1
- package/dist/{Legend-DmitJZi5.js → Legend-X4kF4PvW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DNIpZGOP.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
- package/dist/{PackageVersion-hRJtldYi.js → PackageVersion-5SWftabm.js} +1 -1
- package/dist/{PenAndPaper-DzM1vUXR.js → PenAndPaper-B_SdRSKH.js} +12 -12
- package/dist/{Shape-BBKymE00.js → Shape-CIqU-p2F.js} +1 -1
- package/dist/{SlicerPreview-W4PWXK69.js → SlicerPreview-GvsdvE-h.js} +27 -27
- package/dist/{SparkTooltip-9hXY74AD.js → SparkTooltip-C-Y-mDrc.js} +1 -1
- package/dist/{Title-DIf1lG-_.js → Title-CPHi-evi.js} +1 -1
- package/dist/{Tooltip-C3jBTIhR.js → Tooltip-hhrkQ3Lk.js} +1 -1
- package/dist/{UserOptions-m0uxKoiy.js → UserOptions-f3Q0nqrj.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 +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-label.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-DPcw-QzB.js → dom-to-png-C6cQJ5Hq.js} +1 -1
- package/dist/{exposedLib-BGrCpxDo.js → exposedLib-CG3aXJ-v.js} +9 -9
- package/dist/{img-IjqD_xWl.js → img-DhGApYG0.js} +1 -1
- package/dist/{labelUtils-Bgt85NUY.js → labelUtils-BXX2NzRe.js} +1 -1
- package/dist/{lib-C7t_vY8w.js → lib-Dql7cqyA.js} +200 -177
- package/dist/{package-NccReU84.js → package-DmsdiyeS.js} +1 -1
- package/dist/{pdf-HBji623H.js → pdf-Di5yPEw9.js} +1 -1
- package/dist/{render-common-CHj9aLwI.js → render-common-zoPh9a78.js} +2 -2
- 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/{useNestedProp-BfTgFMXF.js → useNestedProp-Chvyfpl-.js} +1 -1
- package/dist/{usePrinter-VVTuFI6H.js → usePrinter-DISD7q5m.js} +2 -2
- package/dist/utils.js +2 -2
- package/dist/{vue-data-ui-xQI9KcZd.js → vue-data-ui-DTj71yB7.js} +70 -70
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
- package/dist/{vue-ui-accordion-DuARUUdY.js → vue-ui-accordion-D4zsdacF.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D-ggLbES.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
- package/dist/{vue-ui-annotator-MvDwnq7k.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
- package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
- package/dist/{vue-ui-bump-DiH9-DLV.js → vue-ui-bump-BkOtQNWe.js} +54 -54
- package/dist/{vue-ui-candlestick-B486ChH8.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
- package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
- package/dist/{vue-ui-chestnut-DGESmviK.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
- package/dist/{vue-ui-chord-DQJ7RuvS.js → vue-ui-chord-DQRBgVOx.js} +31 -31
- package/dist/{vue-ui-circle-pack-YXuSpTIB.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
- package/dist/{vue-ui-cursor-Dju_nWZh.js → vue-ui-cursor-BHyXRadA.js} +3 -3
- package/dist/{vue-ui-dag-C2f1v-IC.js → vue-ui-dag-CyVqaLbF.js} +75 -75
- package/dist/{vue-ui-dashboard-pNI0se0n.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
- package/dist/{vue-ui-digits-C5Z_lpSZ.js → vue-ui-digits-BBL8uERO.js} +3 -3
- package/dist/{vue-ui-donut-DZXYGFJc.js → vue-ui-donut-DcgUuefk.js} +101 -101
- package/dist/vue-ui-donut-DfiocufT.js +2413 -0
- package/dist/{vue-ui-donut-evolution-DQn-87Ak.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
- package/dist/{vue-ui-dumbbell-CDtBLV2m.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
- package/dist/{vue-ui-flow-B0L2gQ3k.js → vue-ui-flow-CoylrfnO.js} +40 -40
- package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
- package/dist/{vue-ui-galaxy-yF4pKrlD.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
- package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
- package/dist/{vue-ui-geo-CFz30xe0.js → vue-ui-geo-jR4P4pbt.js} +36 -36
- package/dist/{vue-ui-gizmo-ys9jjs02.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
- package/dist/{vue-ui-heatmap-qigx4Z5I.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
- package/dist/{vue-ui-hill-K3JKKF1b.js → vue-ui-hill-fFq7pm-g.js} +9 -9
- package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
- package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
- package/dist/{vue-ui-kpi-0W2GpUBQ.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
- package/dist/{vue-ui-label-CBM2b0Aq.js → vue-ui-label-BSgLalWD.js} +64 -64
- package/dist/{vue-ui-mini-loader-C-2BQ3hi.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
- package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
- package/dist/{vue-ui-mood-radar-VCVoA-i7.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
- package/dist/{vue-ui-nested-donuts-CFPhvIy3.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
- package/dist/{vue-ui-onion-BMucjktR.js → vue-ui-onion-B7oFulsQ.js} +119 -119
- package/dist/{vue-ui-parallel-coordinate-plot-BhahYf50.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
- package/dist/{vue-ui-quadrant-77idomwS.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
- package/dist/{vue-ui-quick-chart-CNKuNur5.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
- package/dist/{vue-ui-radar-CuT1AXHF.js → vue-ui-radar-Bzx69q8f.js} +311 -311
- package/dist/{vue-ui-rating-CTuSylET.js → vue-ui-rating-CimC9FQ9.js} +2 -2
- package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
- package/dist/{vue-ui-ridgeline-CijnGJ6-.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
- package/dist/{vue-ui-rings-DDGKIiGT.js → vue-ui-rings-qPL5Iwji.js} +327 -327
- package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
- package/dist/{vue-ui-skeleton-Clzzx8hc.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
- package/dist/{vue-ui-smiley-DILPVI14.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
- package/dist/{vue-ui-spark-trend-CYIyrTQj.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
- package/dist/{vue-ui-sparkbar-C2HcYmPm.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
- package/dist/{vue-ui-sparkgauge-BLJ0mImj.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
- package/dist/{vue-ui-sparkhistogram-1FYy_qM3.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
- package/dist/{vue-ui-sparkline-C11KKbIn.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
- package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
- package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
- package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
- package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
- package/dist/vue-ui-table-BQna1wL6.js +1352 -0
- package/dist/{vue-ui-table-heatmap-Dj06PSQK.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
- package/dist/{vue-ui-table-sparkline-1h7A5F1N.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
- package/dist/{vue-ui-thermometer-CVKlj7fU.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
- package/dist/{vue-ui-timer-BWz6K56E.js → vue-ui-timer-CvHP4HoW.js} +5 -5
- package/dist/{vue-ui-tiremarks-D26MLo5F.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
- package/dist/{vue-ui-treemap-33VL-HnF.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
- package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
- package/dist/{vue-ui-wheel-BPbR_-t8.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
- package/dist/{vue-ui-word-cloud-RFcpvswb.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
- package/dist/{vue-ui-world-CseHQjz7.js → vue-ui-world-D0_2upjg.js} +116 -116
- package/dist/{vue-ui-xy-D_biv7Wg.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
- package/dist/{vue-ui-xy-C3UI9YIM.js → vue-ui-xy-D_5FfaH-.js} +423 -422
- package/dist/{vue-ui-xy-canvas-R1I0sffy.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
- package/package.json +1 -1
- package/dist/vue-ui-3d-bar-Cf5mJEzr.js +0 -1829
- package/dist/vue-ui-bullet-DWe51l3b.js +0 -700
- package/dist/vue-ui-carousel-table-BPNQQVsu.js +0 -467
- package/dist/vue-ui-donut-CaMaNvIF.js +0 -2413
- package/dist/vue-ui-funnel-G5nO77o5.js +0 -747
- package/dist/vue-ui-gauge-DA92q6HZ.js +0 -932
- package/dist/vue-ui-history-plot-DUoXwHLn.js +0 -1696
- package/dist/vue-ui-horizontal-bar-C51hv9PU.js +0 -1709
- package/dist/vue-ui-molecule-B1ChvZql.js +0 -929
- package/dist/vue-ui-relation-circle-DxONGvTM.js +0 -903
- package/dist/vue-ui-scatter-Cwlhv9y6.js +0 -2403
- package/dist/vue-ui-sparkstackbar-B4H_cgzW.js +0 -738
- package/dist/vue-ui-stackbar-CBOAAVtS.js +0 -2349
- package/dist/vue-ui-stackline-24PeB3yN.js +0 -2463
- package/dist/vue-ui-strip-plot-C3Q1lECl.js +0 -1738
- package/dist/vue-ui-table-DMJWplCT.js +0 -1352
- package/dist/vue-ui-waffle-DIFpyE2V.js +0 -1619
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t,
|
|
2
|
+
import { $ as t, Ct as n, D as r, Jt as i, Pt as a, Ut as o, Wt as ee, X as s, Zt as te, b as c, i as l, lt as ne, nt as re, q as ie, t as ae } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as oe, t as se } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as ce } from "./useConfig-CyCVHo81.js";
|
|
5
|
-
import { t as le } from "./usePrinter-
|
|
5
|
+
import { t as le } from "./usePrinter-DISD7q5m.js";
|
|
6
6
|
import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as fe } from "./useNestedProp-
|
|
7
|
+
import { t as fe } from "./useNestedProp-Chvyfpl-.js";
|
|
8
8
|
import { t as pe } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as me } from "./useChartExport-iwOqiIWX.js";
|
|
10
10
|
import { t as he } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
11
|
-
import { t as ge } from "./img-
|
|
12
|
-
import { n as _e } from "./Title-
|
|
11
|
+
import { t as ge } from "./img-DhGApYG0.js";
|
|
12
|
+
import { n as _e } from "./Title-CPHi-evi.js";
|
|
13
13
|
import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
14
14
|
import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
|
|
15
15
|
import { t as xe } from "./DefGrad-DVBqDjhO.js";
|
|
@@ -17,7 +17,7 @@ import { t as Se } from "./A11yDataTable-DdRsVULz.js";
|
|
|
17
17
|
import { t as Ce } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
18
|
import { t as we } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
19
|
import { t as Te } from "./vue_ui_age_pyramid-BY6c-oX_.js";
|
|
20
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ee, createTextVNode as De, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Oe, nextTick as ke, normalizeClass as Ae, normalizeProps as y, normalizeStyle as
|
|
20
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ee, createTextVNode as De, createVNode as g, defineAsyncComponent as _, guardReactiveProps as v, mergeProps as Oe, nextTick as ke, normalizeClass as Ae, normalizeProps as y, normalizeStyle as je, onBeforeUnmount as Me, onMounted as Ne, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Pe, shallowRef as Fe, toDisplayString as w, toRefs as Ie, unref as T, watch as E, watchEffect as Le, withCtx as D } from "vue";
|
|
21
21
|
//#region src/components/vue-ui-age-pyramid.vue
|
|
22
22
|
var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve = { style: { position: "relative" } }, He = [
|
|
23
23
|
"xmlns",
|
|
@@ -160,10 +160,10 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
160
160
|
},
|
|
161
161
|
emits: ["copyAlt"],
|
|
162
162
|
setup(e, { expose: ve, emit: Re }) {
|
|
163
|
-
let dt = _(() => import("./Tooltip-
|
|
163
|
+
let dt = _(() => import("./Tooltip-hhrkQ3Lk.js")), ft = _(() => import("./BaseIcon-t83PDe9k.js").then((e) => e.n)), pt = _(() => import("./vue-ui-accordion-D4zsdacF.js").then((e) => e.n)), mt = _(() => import("./DataTable-COIO9gi4.js")), ht = _(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), gt = _(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), _t = _(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), vt = _(() => import("./BaseDraggableDialog-BM_R41j8.js").then((e) => e.n)), { vue_ui_age_pyramid: yt } = ce(), { isThemeValid: bt, warnInvalidTheme: xt } = pe(), O = e, St = Re, Ct = d(() => !!O.dataset && O.dataset.length), k = x(ie()), A = x(!1), wt = x(""), j = x(null), Tt = x(0), M = x(null), Et = x(null), Dt = x(null), Ot = x(null), kt = x(0), At = x(0), jt = x(null), N = x(null), Mt = x(null), P = x(null), Nt = x({
|
|
164
164
|
x: 0,
|
|
165
165
|
y: 0
|
|
166
|
-
}), F =
|
|
166
|
+
}), F = x("pointer"), Pt = x(!1), I = x(Vt());
|
|
167
167
|
oe({
|
|
168
168
|
config: () => I.value,
|
|
169
169
|
dataset: () => O.dataset,
|
|
@@ -179,7 +179,7 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
179
179
|
]
|
|
180
180
|
}]
|
|
181
181
|
});
|
|
182
|
-
let L = d(() => I.value.userOptions.useCursorPointer), Ft = d(() =>
|
|
182
|
+
let L = d(() => I.value.userOptions.useCursorPointer), Ft = d(() => te({
|
|
183
183
|
defaultConfig: {
|
|
184
184
|
userOptions: { show: !1 },
|
|
185
185
|
table: { show: !1 },
|
|
@@ -207,10 +207,10 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
userConfig: I.value.skeletonConfig ?? {}
|
|
210
|
-
})), { loading: It, FINAL_DATASET:
|
|
211
|
-
...
|
|
210
|
+
})), { loading: It, FINAL_DATASET: R, manualLoading: Lt } = ue({
|
|
211
|
+
...Ie(O),
|
|
212
212
|
FINAL_CONFIG: I,
|
|
213
|
-
prepareConfig:
|
|
213
|
+
prepareConfig: Vt,
|
|
214
214
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
215
215
|
[
|
|
216
216
|
"_",
|
|
@@ -273,12 +273,12 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
273
273
|
144
|
|
274
274
|
]
|
|
275
275
|
],
|
|
276
|
-
skeletonConfig:
|
|
276
|
+
skeletonConfig: te({
|
|
277
277
|
defaultConfig: I.value,
|
|
278
278
|
userConfig: Ft.value
|
|
279
279
|
})
|
|
280
|
-
}), { userOptionsVisible:
|
|
281
|
-
function
|
|
280
|
+
}), { userOptionsVisible: Rt, setUserOptionsVisibility: zt, keepUserOptionState: Bt } = Ce({ config: I.value }), { svgRef: z } = we({ config: I.value.style.title });
|
|
281
|
+
function Vt() {
|
|
282
282
|
let e = fe({
|
|
283
283
|
userConfig: O.config,
|
|
284
284
|
defaultConfig: yt
|
|
@@ -294,22 +294,22 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
294
294
|
defaultConfig: n
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
|
|
298
|
-
It.value || (I.value =
|
|
299
|
-
}, { deep: !0 }),
|
|
300
|
-
Array.isArray(e) && e.length > 0 && (
|
|
297
|
+
E(() => O.config, (e) => {
|
|
298
|
+
It.value || (I.value = Vt()), Rt.value = !I.value.userOptions.showOnChartHover, Ut(), kt.value += 1, At.value += 1, H.value.showTable = I.value.table.show, H.value.showTooltip = I.value.style.tooltip.show;
|
|
299
|
+
}, { deep: !0 }), E(() => O.dataset, (e) => {
|
|
300
|
+
Array.isArray(e) && e.length > 0 && (Lt.value = !1);
|
|
301
301
|
}, { deep: !0 });
|
|
302
|
-
let
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
let B = Fe(null), V = Fe(null);
|
|
303
|
+
Ne(() => {
|
|
304
|
+
Ut();
|
|
305
305
|
});
|
|
306
|
-
let
|
|
307
|
-
function
|
|
308
|
-
if (
|
|
306
|
+
let Ht = d(() => I.value.debug);
|
|
307
|
+
function Ut() {
|
|
308
|
+
if (a(O.dataset) && (re({
|
|
309
309
|
componentName: "VueUiAgePyramid",
|
|
310
310
|
type: "dataset",
|
|
311
|
-
debug:
|
|
312
|
-
}),
|
|
311
|
+
debug: Ht.value
|
|
312
|
+
}), Lt.value = !0), a(O.dataset) || (Lt.value = I.value.loading), I.value.responsive) {
|
|
313
313
|
let e = ye(() => {
|
|
314
314
|
let { width: e, height: t } = be({
|
|
315
315
|
chart: M.value,
|
|
@@ -318,54 +318,54 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
318
318
|
noTitle: Ot.value
|
|
319
319
|
});
|
|
320
320
|
requestAnimationFrame(() => {
|
|
321
|
-
|
|
321
|
+
U.value.width = e, U.value.height = t;
|
|
322
322
|
});
|
|
323
323
|
});
|
|
324
|
-
|
|
324
|
+
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);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
|
|
328
|
-
|
|
327
|
+
Me(() => {
|
|
328
|
+
B.value && (V.value && B.value.unobserve(V.value), B.value.disconnect());
|
|
329
329
|
});
|
|
330
|
-
let { isPrinting:
|
|
330
|
+
let { isPrinting: Wt, isImaging: Gt, generatePdf: Kt, generateImage: qt } = le({
|
|
331
331
|
elementId: `vue-ui-age-pyramid_${k.value}`,
|
|
332
332
|
fileName: I.value.style.title.text || "vue-ui-age-pyramid",
|
|
333
333
|
options: I.value.userOptions.print
|
|
334
|
-
}),
|
|
334
|
+
}), Jt = d(() => I.value.userOptions.show && !I.value.style.title.text), H = x({
|
|
335
335
|
showTable: I.value.table.show,
|
|
336
336
|
showTooltip: I.value.style.tooltip.show
|
|
337
337
|
});
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
E(I, () => {
|
|
339
|
+
H.value = {
|
|
340
340
|
showTable: I.value.table.show,
|
|
341
341
|
showTooltip: I.value.style.tooltip.show
|
|
342
342
|
};
|
|
343
343
|
}, { immediate: !0 });
|
|
344
|
-
let
|
|
344
|
+
let U = x({
|
|
345
345
|
height: I.value.style.height,
|
|
346
346
|
width: I.value.style.width
|
|
347
|
-
}),
|
|
348
|
-
|
|
347
|
+
}), Yt = d(() => U.value.width), Xt = d(() => U.value.height), W = x(0), Zt = ye((e) => {
|
|
348
|
+
W.value = e;
|
|
349
349
|
}, 100);
|
|
350
350
|
Le((e) => {
|
|
351
351
|
let t = jt.value;
|
|
352
352
|
if (!t) return;
|
|
353
353
|
let n = new ResizeObserver((e) => {
|
|
354
|
-
|
|
354
|
+
Zt(e[0].contentRect.height);
|
|
355
355
|
});
|
|
356
356
|
n.observe(t), e(() => n.disconnect());
|
|
357
|
-
}),
|
|
358
|
-
|
|
357
|
+
}), Me(() => {
|
|
358
|
+
W.value = 0;
|
|
359
359
|
});
|
|
360
|
-
let
|
|
361
|
-
let e =
|
|
360
|
+
let G = d(() => {
|
|
361
|
+
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;
|
|
362
362
|
return {
|
|
363
363
|
top: I.value.style.layout.padding.top + I.value.style.layout.dataLabels.sideTitles.fontSize + I.value.style.layout.dataLabels.sideTitles.offsetY + 12,
|
|
364
364
|
left: t,
|
|
365
365
|
right: n,
|
|
366
|
-
bottom:
|
|
366
|
+
bottom: U.value.height - I.value.style.layout.padding.bottom - W.value,
|
|
367
367
|
width: e,
|
|
368
|
-
height:
|
|
368
|
+
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,
|
|
369
369
|
centerX: I.value.style.layout.padding.left + e / 2,
|
|
370
370
|
leftChart: {
|
|
371
371
|
width: e / 2 - I.value.style.layout.centerSlit.width,
|
|
@@ -376,16 +376,16 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
376
376
|
left: t + e / 2 + I.value.style.layout.centerSlit.width
|
|
377
377
|
}
|
|
378
378
|
};
|
|
379
|
-
}),
|
|
380
|
-
let e =
|
|
379
|
+
}), Qt = d(() => R.value.map((e) => I.value.style.layout.dataLabels.yAxis.display === "age" ? e[1] : e[0])), K = d(() => {
|
|
380
|
+
let e = $t(q.value / 5), t = [], n = [];
|
|
381
381
|
for (let r = 0; r <= 5; r += 1) {
|
|
382
382
|
let i = e * r, a = e * (r - 5);
|
|
383
383
|
t.push({
|
|
384
384
|
value: i,
|
|
385
|
-
x:
|
|
385
|
+
x: G.value.left + G.value.width / 2 + I.value.style.layout.centerSlit.width + i / q.value * G.value.leftChart.width
|
|
386
386
|
}), n.push({
|
|
387
387
|
value: Math.abs(a),
|
|
388
|
-
x:
|
|
388
|
+
x: G.value.left + G.value.width / 2 + a / q.value * G.value.leftChart.width - I.value.style.layout.centerSlit.width
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
return {
|
|
@@ -393,24 +393,24 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
393
393
|
left: n
|
|
394
394
|
};
|
|
395
395
|
});
|
|
396
|
-
function
|
|
396
|
+
function $t(e) {
|
|
397
397
|
if (e === 0) return 0;
|
|
398
398
|
let t = 10 ** Math.floor(Math.log10(Math.abs(e))), n;
|
|
399
399
|
return n = Math.round(e / t) * t, n;
|
|
400
400
|
}
|
|
401
|
-
let
|
|
401
|
+
let q = d(() => Math.max(...R.value.flatMap((e) => e.slice(-2).map((e) => c(e))))), J = d(() => R.value.length), en = d(() => R.value.map((e) => ({
|
|
402
402
|
segment: e[0],
|
|
403
403
|
age: e[1],
|
|
404
404
|
left: {
|
|
405
405
|
value: e[2],
|
|
406
|
-
proportionToMax: e[2] /
|
|
406
|
+
proportionToMax: e[2] / q.value
|
|
407
407
|
},
|
|
408
408
|
right: {
|
|
409
409
|
value: e[3],
|
|
410
|
-
proportionToMax: e[3] /
|
|
410
|
+
proportionToMax: e[3] / q.value
|
|
411
411
|
}
|
|
412
|
-
}))),
|
|
413
|
-
let n =
|
|
412
|
+
}))), Y = d(() => en.value.map((e, t) => {
|
|
413
|
+
let n = G.value.top + G.value.height / J.value * t, r = G.value.height / J.value - I.value.style.layout.bars.gap;
|
|
414
414
|
return {
|
|
415
415
|
segment: e.segment,
|
|
416
416
|
age: e.age,
|
|
@@ -418,20 +418,20 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
418
418
|
...e.left,
|
|
419
419
|
y: n,
|
|
420
420
|
color: I.value.style.layout.bars.left.color,
|
|
421
|
-
x:
|
|
422
|
-
width: c(e.left.proportionToMax *
|
|
421
|
+
x: G.value.leftChart.right - e.left.proportionToMax * G.value.leftChart.width,
|
|
422
|
+
width: c(e.left.proportionToMax * G.value.leftChart.width),
|
|
423
423
|
height: r
|
|
424
424
|
},
|
|
425
425
|
right: {
|
|
426
426
|
...e.right,
|
|
427
427
|
y: n,
|
|
428
428
|
color: I.value.style.layout.bars.right.color,
|
|
429
|
-
x:
|
|
430
|
-
width: c(e.right.proportionToMax *
|
|
429
|
+
x: G.value.rightChart.left,
|
|
430
|
+
width: c(e.right.proportionToMax * G.value.rightChart.width),
|
|
431
431
|
height: r
|
|
432
432
|
}
|
|
433
433
|
};
|
|
434
|
-
})),
|
|
434
|
+
})), tn = x(null);
|
|
435
435
|
function nn(e) {
|
|
436
436
|
let [t, n, r, i] = e;
|
|
437
437
|
return {
|
|
@@ -454,24 +454,24 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
454
454
|
}), (F.value !== "keyboard" || P.value !== e) && (j.value = null, A.value = !1);
|
|
455
455
|
}
|
|
456
456
|
function on(e) {
|
|
457
|
-
if (!
|
|
458
|
-
let t =
|
|
457
|
+
if (!z.value) return;
|
|
458
|
+
let t = Y.value[e];
|
|
459
459
|
if (!t) return;
|
|
460
|
-
let n =
|
|
460
|
+
let n = i(G.value.left + G.value.width / 2, t.left.y + t.left.height / 2, z.value);
|
|
461
461
|
n && (Nt.value = n);
|
|
462
462
|
}
|
|
463
|
-
function sn(e, t,
|
|
463
|
+
function sn(e, t, r = "pointer") {
|
|
464
464
|
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
465
465
|
datapoint: nn(t),
|
|
466
466
|
seriesIndex: e
|
|
467
|
-
}), j.value = e, P.value = e, F.value =
|
|
467
|
+
}), j.value = e, P.value = e, F.value = r, tn.value = {
|
|
468
468
|
datapoint: t,
|
|
469
469
|
seriesIndex: e,
|
|
470
|
-
series:
|
|
470
|
+
series: Y.value,
|
|
471
471
|
config: I.value
|
|
472
472
|
};
|
|
473
|
-
let
|
|
474
|
-
if (
|
|
473
|
+
let i = I.value.style.tooltip.customFormat;
|
|
474
|
+
if (n(i) && ne(() => i({
|
|
475
475
|
seriesIndex: e,
|
|
476
476
|
datapoint: {
|
|
477
477
|
segment: t[0],
|
|
@@ -479,9 +479,9 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
479
479
|
left: t[2],
|
|
480
480
|
right: t[3]
|
|
481
481
|
},
|
|
482
|
-
series:
|
|
482
|
+
series: Y.value,
|
|
483
483
|
config: I.value
|
|
484
|
-
}))) wt.value =
|
|
484
|
+
}))) wt.value = i({
|
|
485
485
|
seriesIndex: e,
|
|
486
486
|
datapoint: {
|
|
487
487
|
segment: t[0],
|
|
@@ -489,11 +489,11 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
489
489
|
left: t[2],
|
|
490
490
|
right: t[3]
|
|
491
491
|
},
|
|
492
|
-
series:
|
|
492
|
+
series: Y.value,
|
|
493
493
|
config: I.value
|
|
494
494
|
});
|
|
495
495
|
else {
|
|
496
|
-
let n = "", r =
|
|
496
|
+
let n = "", r = Y.value[e];
|
|
497
497
|
n += `<div><b>${r.segment}</b></div>`, n += `<div>${I.value.translations.age}: ${l(I.value.style.layout.dataLabels.yAxis.formatter, c(r.age), s({ v: c(r.age) }), {
|
|
498
498
|
datapoint: t,
|
|
499
499
|
seriesIndex: e
|
|
@@ -508,13 +508,13 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
508
508
|
seriesIndex: e
|
|
509
509
|
})}</b></div></div>`, n += "</div>", wt.value = `<div>${n}</div>`;
|
|
510
510
|
}
|
|
511
|
-
A.value = !0,
|
|
511
|
+
A.value = !0, r === "keyboard" && ke(() => {
|
|
512
512
|
on(e);
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
function cn(e = null) {
|
|
516
516
|
ke(() => {
|
|
517
|
-
let
|
|
517
|
+
let n = [
|
|
518
518
|
I.value.translations.year,
|
|
519
519
|
I.value.translations.age,
|
|
520
520
|
I.value.translations.female,
|
|
@@ -534,8 +534,8 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
534
534
|
[""],
|
|
535
535
|
[""]
|
|
536
536
|
],
|
|
537
|
-
|
|
538
|
-
].concat(i), o =
|
|
537
|
+
n
|
|
538
|
+
].concat(i), o = r(a);
|
|
539
539
|
e ? e(o) : t({
|
|
540
540
|
csvContent: o,
|
|
541
541
|
title: I.value.style.title.text || "vue-ui-heatmap"
|
|
@@ -574,17 +574,17 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
574
574
|
},
|
|
575
575
|
colNames: e
|
|
576
576
|
};
|
|
577
|
-
}), Z =
|
|
577
|
+
}), Z = x(!1);
|
|
578
578
|
function ln(e) {
|
|
579
579
|
Z.value = e, Tt.value += 1;
|
|
580
580
|
}
|
|
581
581
|
function un() {
|
|
582
|
-
|
|
582
|
+
H.value.showTable = !H.value.showTable;
|
|
583
583
|
}
|
|
584
584
|
function dn() {
|
|
585
|
-
|
|
585
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
586
586
|
}
|
|
587
|
-
let Q =
|
|
587
|
+
let Q = x(!1);
|
|
588
588
|
function fn() {
|
|
589
589
|
Q.value = !Q.value;
|
|
590
590
|
}
|
|
@@ -605,9 +605,9 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
605
605
|
aspectRatio: r
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
|
-
let mn =
|
|
608
|
+
let mn = x([]), hn = x({
|
|
609
609
|
start: 0,
|
|
610
|
-
end:
|
|
610
|
+
end: Y.value.length
|
|
611
611
|
});
|
|
612
612
|
he({
|
|
613
613
|
timeLabelsEls: jt,
|
|
@@ -630,13 +630,13 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
630
630
|
"enable"
|
|
631
631
|
],
|
|
632
632
|
isAutoSize: !1,
|
|
633
|
-
width:
|
|
634
|
-
height:
|
|
633
|
+
width: Yt,
|
|
634
|
+
height: Xt,
|
|
635
635
|
targetClass: ".vue-ui-age-pyramid-x-axis-label",
|
|
636
636
|
rotation: I.value.style.layout.dataLabels.xAxis.autoRotate.angle
|
|
637
637
|
});
|
|
638
638
|
let $ = d(() => {
|
|
639
|
-
let e = I.value.table.useDialog && !I.value.table.show, t =
|
|
639
|
+
let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
|
|
640
640
|
return {
|
|
641
641
|
component: e ? vt : pt,
|
|
642
642
|
title: `${I.value.style.title.text}${I.value.style.title.subtitle.text ? `: ${I.value.style.title.subtitle.text}` : ""}`,
|
|
@@ -666,32 +666,32 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
});
|
|
669
|
-
|
|
669
|
+
E(() => H.value.showTable, (e) => {
|
|
670
670
|
I.value.table.show || (e && I.value.table.useDialog && N.value ? N.value.open() : "close" in N.value && N.value.close());
|
|
671
671
|
});
|
|
672
672
|
function gn() {
|
|
673
|
-
|
|
673
|
+
H.value.showTable = !1, Mt.value && Mt.value.setTableIconState(!1);
|
|
674
674
|
}
|
|
675
675
|
let _n = d(() => I.value.style.backgroundColor), vn = d(() => I.value.style.title), { isCallbackImaging: yn, isCallbackSvg: bn, generateSvg: xn, onGenerateImage: Sn } = me({
|
|
676
|
-
svg:
|
|
676
|
+
svg: z,
|
|
677
677
|
title: vn,
|
|
678
678
|
legend: null,
|
|
679
679
|
legendItems: null,
|
|
680
680
|
backgroundColor: _n,
|
|
681
681
|
getSvgCallback: () => I.value.userOptions.callbacks.svg,
|
|
682
|
-
generateImage:
|
|
682
|
+
generateImage: qt
|
|
683
683
|
});
|
|
684
684
|
async function Cn() {
|
|
685
685
|
if (St("copyAlt", {
|
|
686
686
|
config: I.value,
|
|
687
|
-
dataset:
|
|
687
|
+
dataset: Y.value
|
|
688
688
|
}), !I.value.userOptions.callbacks.altCopy) {
|
|
689
689
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
692
692
|
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
693
693
|
config: I.value,
|
|
694
|
-
dataset:
|
|
694
|
+
dataset: Y.value
|
|
695
695
|
}));
|
|
696
696
|
}
|
|
697
697
|
function wn() {
|
|
@@ -701,7 +701,7 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
701
701
|
j.value = null, P.value = null, F.value = "pointer", A.value = !1, Pt.value = !1;
|
|
702
702
|
}
|
|
703
703
|
function En(e) {
|
|
704
|
-
if (!
|
|
704
|
+
if (!z.value || Q.value || document.activeElement !== z.value || !Y.value.length) return;
|
|
705
705
|
let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
706
706
|
if (!t && !n && !r && !i) return;
|
|
707
707
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -715,36 +715,36 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
715
715
|
rn(P.value, e);
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
let a = P.value, o = j.value,
|
|
719
|
-
|
|
720
|
-
let
|
|
721
|
-
|
|
718
|
+
let a = P.value, o = j.value, ee = a !== null && a >= 0 && a < Y.value.length, s = o !== null && o >= 0 && o < Y.value.length;
|
|
719
|
+
ee ? t ? a = a - 1 < 0 ? Y.value.length - 1 : a - 1 : n && (a = a + 1 > Y.value.length - 1 ? 0 : a + 1) : s ? (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;
|
|
720
|
+
let te = O.dataset[a];
|
|
721
|
+
te && sn(a, te, "keyboard");
|
|
722
722
|
}
|
|
723
723
|
return ve({
|
|
724
724
|
getImage: pn,
|
|
725
|
-
generatePdf:
|
|
725
|
+
generatePdf: Kt,
|
|
726
726
|
generateCsv: cn,
|
|
727
|
-
generateImage:
|
|
727
|
+
generateImage: qt,
|
|
728
728
|
generateSvg: xn,
|
|
729
729
|
toggleTable: un,
|
|
730
730
|
toggleTooltip: dn,
|
|
731
731
|
toggleAnnotator: fn,
|
|
732
732
|
toggleFullscreen: ln,
|
|
733
733
|
copyAlt: Cn
|
|
734
|
-
}), (t, n) => (
|
|
734
|
+
}), (t, n) => (b(), m("div", {
|
|
735
735
|
class: Ae(`vue-data-ui-component vue-ui-age-pyramid ${Z.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
736
736
|
ref_key: "agePyramid",
|
|
737
737
|
ref: M,
|
|
738
738
|
id: `vue-ui-age-pyramid_${k.value}`,
|
|
739
|
-
style:
|
|
740
|
-
onMouseenter: n[1] ||= () =>
|
|
741
|
-
onMouseleave: n[2] ||= () =>
|
|
739
|
+
style: je(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.backgroundColor};${I.value.responsive ? "height:100%" : ""}`),
|
|
740
|
+
onMouseenter: n[1] ||= () => T(zt)(!0),
|
|
741
|
+
onMouseleave: n[2] ||= () => T(zt)(!1)
|
|
742
742
|
}, [
|
|
743
743
|
h("div", {
|
|
744
744
|
id: `chart-instructions-${k.value}`,
|
|
745
745
|
class: "sr-only"
|
|
746
|
-
}, [h("p", null,
|
|
747
|
-
X.value?.body?.length ? (
|
|
746
|
+
}, [h("p", null, w(I.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
|
|
747
|
+
X.value?.body?.length ? (b(), f(Se, {
|
|
748
748
|
key: 0,
|
|
749
749
|
uid: k.value,
|
|
750
750
|
head: X.value.head,
|
|
@@ -758,21 +758,21 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
758
758
|
"notice",
|
|
759
759
|
"caption"
|
|
760
760
|
])) : p("", !0),
|
|
761
|
-
I.value.userOptions.buttons.annotator ? (
|
|
761
|
+
I.value.userOptions.buttons.annotator ? (b(), f(T(ht), {
|
|
762
762
|
key: 1,
|
|
763
|
-
svgRef:
|
|
763
|
+
svgRef: T(z),
|
|
764
764
|
backgroundColor: I.value.style.backgroundColor,
|
|
765
765
|
color: I.value.style.color,
|
|
766
766
|
active: Q.value,
|
|
767
767
|
isCursorPointer: L.value,
|
|
768
768
|
onClose: fn
|
|
769
769
|
}, {
|
|
770
|
-
"annotator-action-close": D(() => [
|
|
771
|
-
"annotator-action-color": D(({ color: e }) => [
|
|
772
|
-
"annotator-action-draw": D(({ mode: e }) => [
|
|
773
|
-
"annotator-action-undo": D(({ disabled: e }) => [
|
|
774
|
-
"annotator-action-redo": D(({ disabled: e }) => [
|
|
775
|
-
"annotator-action-delete": D(({ disabled: e }) => [
|
|
770
|
+
"annotator-action-close": D(() => [C(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
771
|
+
"annotator-action-color": D(({ color: e }) => [C(t.$slots, "annotator-action-color", y(v({ color: e })), void 0, !0)]),
|
|
772
|
+
"annotator-action-draw": D(({ mode: e }) => [C(t.$slots, "annotator-action-draw", y(v({ mode: e })), void 0, !0)]),
|
|
773
|
+
"annotator-action-undo": D(({ disabled: e }) => [C(t.$slots, "annotator-action-undo", y(v({ disabled: e })), void 0, !0)]),
|
|
774
|
+
"annotator-action-redo": D(({ disabled: e }) => [C(t.$slots, "annotator-action-redo", y(v({ disabled: e })), void 0, !0)]),
|
|
775
|
+
"annotator-action-delete": D(({ disabled: e }) => [C(t.$slots, "annotator-action-delete", y(v({ disabled: e })), void 0, !0)]),
|
|
776
776
|
_: 3
|
|
777
777
|
}, 8, [
|
|
778
778
|
"svgRef",
|
|
@@ -781,19 +781,19 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
781
781
|
"active",
|
|
782
782
|
"isCursorPointer"
|
|
783
783
|
])) : p("", !0),
|
|
784
|
-
|
|
784
|
+
Jt.value ? (b(), m("div", {
|
|
785
785
|
key: 2,
|
|
786
786
|
ref_key: "noTitle",
|
|
787
787
|
ref: Ot,
|
|
788
788
|
class: "vue-data-ui-no-title-space",
|
|
789
789
|
style: "height:36px; width: 100%;background:transparent"
|
|
790
790
|
}, null, 512)) : p("", !0),
|
|
791
|
-
I.value.style.title.text ? (
|
|
791
|
+
I.value.style.title.text ? (b(), m("div", {
|
|
792
792
|
key: 3,
|
|
793
793
|
ref_key: "chartTitle",
|
|
794
794
|
ref: Et,
|
|
795
795
|
style: "width:100%;background:transparent"
|
|
796
|
-
}, [(
|
|
796
|
+
}, [(b(), f(_e, {
|
|
797
797
|
key: `title_${kt.value}`,
|
|
798
798
|
config: {
|
|
799
799
|
title: {
|
|
@@ -806,14 +806,14 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
809
|
-
I.value.userOptions.show && Ct.value && (
|
|
809
|
+
I.value.userOptions.show && Ct.value && (T(Bt) || T(Rt)) ? (b(), f(T(gt), {
|
|
810
810
|
ref_key: "userOptionsRef",
|
|
811
811
|
ref: Mt,
|
|
812
812
|
key: `user_options_${Tt.value}`,
|
|
813
813
|
backgroundColor: I.value.style.backgroundColor,
|
|
814
814
|
color: I.value.style.color,
|
|
815
|
-
isImaging:
|
|
816
|
-
isPrinting:
|
|
815
|
+
isImaging: T(Gt),
|
|
816
|
+
isPrinting: T(Wt),
|
|
817
817
|
uid: k.value,
|
|
818
818
|
hasTooltip: I.value.userOptions.buttons.tooltip && I.value.style.tooltip.show,
|
|
819
819
|
hasPdf: I.value.userOptions.buttons.pdf,
|
|
@@ -824,7 +824,7 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
824
824
|
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
825
825
|
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
826
826
|
isFullscreen: Z.value,
|
|
827
|
-
isTooltip:
|
|
827
|
+
isTooltip: H.value.showTooltip,
|
|
828
828
|
titles: { ...I.value.userOptions.buttonTitles },
|
|
829
829
|
chartElement: M.value,
|
|
830
830
|
position: I.value.userOptions.position,
|
|
@@ -835,19 +835,19 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
835
835
|
tableDialog: I.value.table.useDialog,
|
|
836
836
|
isCursorPointer: L.value,
|
|
837
837
|
onToggleFullscreen: ln,
|
|
838
|
-
onGeneratePdf:
|
|
838
|
+
onGeneratePdf: T(Kt),
|
|
839
839
|
onGenerateCsv: cn,
|
|
840
|
-
onGenerateImage:
|
|
841
|
-
onGenerateSvg:
|
|
840
|
+
onGenerateImage: T(Sn),
|
|
841
|
+
onGenerateSvg: T(xn),
|
|
842
842
|
onToggleTable: un,
|
|
843
843
|
onToggleTooltip: dn,
|
|
844
844
|
onToggleAnnotator: fn,
|
|
845
845
|
onCopyAlt: Cn,
|
|
846
|
-
style:
|
|
846
|
+
style: je({ visibility: T(Bt) ? T(Rt) ? "visible" : "hidden" : "visible" })
|
|
847
847
|
}, Ee({ _: 2 }, [
|
|
848
848
|
t.$slots.menuIcon ? {
|
|
849
849
|
name: "menuIcon",
|
|
850
|
-
fn: D(({ isOpen: e, color: n }) => [
|
|
850
|
+
fn: D(({ isOpen: e, color: n }) => [C(t.$slots, "menuIcon", y(v({
|
|
851
851
|
isOpen: e,
|
|
852
852
|
color: n
|
|
853
853
|
})), void 0, !0)]),
|
|
@@ -855,37 +855,37 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
855
855
|
} : void 0,
|
|
856
856
|
t.$slots.optionTooltip ? {
|
|
857
857
|
name: "optionTooltip",
|
|
858
|
-
fn: D(() => [
|
|
858
|
+
fn: D(() => [C(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
859
859
|
key: "1"
|
|
860
860
|
} : void 0,
|
|
861
861
|
t.$slots.optionPdf ? {
|
|
862
862
|
name: "optionPdf",
|
|
863
|
-
fn: D(() => [
|
|
863
|
+
fn: D(() => [C(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
864
864
|
key: "2"
|
|
865
865
|
} : void 0,
|
|
866
866
|
t.$slots.optionCsv ? {
|
|
867
867
|
name: "optionCsv",
|
|
868
|
-
fn: D(() => [
|
|
868
|
+
fn: D(() => [C(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
869
869
|
key: "3"
|
|
870
870
|
} : void 0,
|
|
871
871
|
t.$slots.optionImg ? {
|
|
872
872
|
name: "optionImg",
|
|
873
|
-
fn: D(() => [
|
|
873
|
+
fn: D(() => [C(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
874
874
|
key: "4"
|
|
875
875
|
} : void 0,
|
|
876
876
|
t.$slots.optionSvg ? {
|
|
877
877
|
name: "optionSvg",
|
|
878
|
-
fn: D(() => [
|
|
878
|
+
fn: D(() => [C(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
879
879
|
key: "5"
|
|
880
880
|
} : void 0,
|
|
881
881
|
t.$slots.optionTable ? {
|
|
882
882
|
name: "optionTable",
|
|
883
|
-
fn: D(() => [
|
|
883
|
+
fn: D(() => [C(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
884
884
|
key: "6"
|
|
885
885
|
} : void 0,
|
|
886
886
|
t.$slots.optionFullscreen ? {
|
|
887
887
|
name: "optionFullscreen",
|
|
888
|
-
fn: D(({ toggleFullscreen: e, isFullscreen: n }) => [
|
|
888
|
+
fn: D(({ toggleFullscreen: e, isFullscreen: n }) => [C(t.$slots, "optionFullscreen", y(v({
|
|
889
889
|
toggleFullscreen: e,
|
|
890
890
|
isFullscreen: n
|
|
891
891
|
})), void 0, !0)]),
|
|
@@ -893,7 +893,7 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
893
893
|
} : void 0,
|
|
894
894
|
t.$slots.optionAnnotator ? {
|
|
895
895
|
name: "optionAnnotator",
|
|
896
|
-
fn: D(({ toggleAnnotator: e, isAnnotator: n }) => [
|
|
896
|
+
fn: D(({ toggleAnnotator: e, isAnnotator: n }) => [C(t.$slots, "optionAnnotator", y(v({
|
|
897
897
|
toggleAnnotator: e,
|
|
898
898
|
isAnnotator: n
|
|
899
899
|
})), void 0, !0)]),
|
|
@@ -901,45 +901,45 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
901
901
|
} : void 0,
|
|
902
902
|
t.$slots.optionAltCopy ? {
|
|
903
903
|
name: "optionAltCopy",
|
|
904
|
-
fn: D(({ altCopy: e }) => [
|
|
904
|
+
fn: D(({ altCopy: e }) => [C(t.$slots, "optionAltCopy", y(v({ altCopy: e })), void 0, !0)]),
|
|
905
905
|
key: "9"
|
|
906
906
|
} : void 0,
|
|
907
907
|
t.$slots["custom-menu-before"] ? {
|
|
908
908
|
name: "custom-menu-before",
|
|
909
|
-
fn: D(() => [
|
|
909
|
+
fn: D(() => [C(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
910
910
|
key: "10"
|
|
911
911
|
} : void 0,
|
|
912
912
|
t.$slots["custom-menu-after"] ? {
|
|
913
913
|
name: "custom-menu-after",
|
|
914
|
-
fn: D(() => [
|
|
914
|
+
fn: D(() => [C(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
915
915
|
key: "11"
|
|
916
916
|
} : void 0
|
|
917
917
|
]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : p("", !0),
|
|
918
|
-
h("div", Ve, [(
|
|
918
|
+
h("div", Ve, [(b(), m("svg", {
|
|
919
919
|
ref_key: "svgRef",
|
|
920
|
-
ref:
|
|
921
|
-
xmlns:
|
|
920
|
+
ref: z,
|
|
921
|
+
xmlns: T(ae),
|
|
922
922
|
class: Ae({
|
|
923
923
|
"vue-data-ui-fullscreen--on": Z.value,
|
|
924
924
|
"vue-data-ui-fulscreen--off": !Z.value
|
|
925
925
|
}),
|
|
926
|
-
viewBox: `0 0 ${
|
|
927
|
-
style:
|
|
926
|
+
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
927
|
+
style: je(`max-width:100%;overflow:visible;background:transparent;color:${I.value.style.color}`),
|
|
928
928
|
tabindex: "0",
|
|
929
929
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
930
930
|
onFocus: wn,
|
|
931
931
|
onBlur: Tn,
|
|
932
932
|
onKeydown: En
|
|
933
933
|
}, [
|
|
934
|
-
g(
|
|
935
|
-
t.$slots["chart-background"] ? (
|
|
934
|
+
g(T(_t)),
|
|
935
|
+
t.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
936
936
|
key: 0,
|
|
937
|
-
x:
|
|
938
|
-
y:
|
|
939
|
-
width: Math.max(.1,
|
|
940
|
-
height: Math.max(.1,
|
|
937
|
+
x: G.value.left,
|
|
938
|
+
y: G.value.top,
|
|
939
|
+
width: Math.max(.1, G.value.width),
|
|
940
|
+
height: Math.max(.1, G.value.height),
|
|
941
941
|
style: { pointerEvents: "none" }
|
|
942
|
-
}, [
|
|
942
|
+
}, [C(t.$slots, "chart-background", {}, void 0, !0)], 8, Ue)) : p("", !0),
|
|
943
943
|
h("defs", null, [g(xe, {
|
|
944
944
|
t: "linear",
|
|
945
945
|
id: `age_pyramid_left_${k.value}`,
|
|
@@ -953,7 +953,7 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
953
953
|
1
|
|
954
954
|
], [
|
|
955
955
|
"100%",
|
|
956
|
-
|
|
956
|
+
T(o)(T(ee)(I.value.style.layout.bars.left.color, I.value.style.layout.bars.gradient.shiftHue), 100 - I.value.style.layout.bars.gradient.intensity),
|
|
957
957
|
1
|
|
958
958
|
]]
|
|
959
959
|
}, null, 8, ["id", "stops"]), g(xe, {
|
|
@@ -965,7 +965,7 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
965
965
|
y2: "0%",
|
|
966
966
|
stops: [[
|
|
967
967
|
"0%",
|
|
968
|
-
|
|
968
|
+
T(o)(T(ee)(I.value.style.layout.bars.right.color, I.value.style.layout.bars.gradient.shiftHue), 100 - I.value.style.layout.bars.gradient.intensity),
|
|
969
969
|
1
|
|
970
970
|
], [
|
|
971
971
|
"100%",
|
|
@@ -973,11 +973,11 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
973
973
|
1
|
|
974
974
|
]]
|
|
975
975
|
}, null, 8, ["id", "stops"])]),
|
|
976
|
-
(
|
|
976
|
+
(b(!0), m(u, null, S(Y.value, (e, t) => (b(), m("g", null, [
|
|
977
977
|
h("rect", {
|
|
978
978
|
x: e.left.x,
|
|
979
979
|
y: e.left.y,
|
|
980
|
-
width:
|
|
980
|
+
width: T(c)(e.left.width <= 0 ? 1e-4 : e.left.width),
|
|
981
981
|
height: e.left.height <= 0 ? 1e-4 : e.left.height,
|
|
982
982
|
fill: I.value.style.layout.bars.gradient.underlayer,
|
|
983
983
|
rx: I.value.style.layout.bars.borderRadius
|
|
@@ -1008,67 +1008,67 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
1008
1008
|
}, null, 8, qe)
|
|
1009
1009
|
]))), 256)),
|
|
1010
1010
|
h("g", null, [
|
|
1011
|
-
I.value.style.layout.dataLabels.sideTitles.show ? (
|
|
1012
|
-
x:
|
|
1011
|
+
I.value.style.layout.dataLabels.sideTitles.show ? (b(), m("g", Je, [h("text", {
|
|
1012
|
+
x: G.value.left,
|
|
1013
1013
|
y: I.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1014
1014
|
fill: I.value.style.layout.dataLabels.sideTitles.useSideColor ? I.value.style.layout.bars.left.color : I.value.style.layout.dataLabels.sideTitles.color,
|
|
1015
1015
|
"font-size": I.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1016
1016
|
"text-anchor": "start",
|
|
1017
1017
|
"font-weight": I.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
1018
|
-
},
|
|
1019
|
-
x:
|
|
1018
|
+
}, w(I.value.translations.female), 9, Ye), h("text", {
|
|
1019
|
+
x: G.value.right,
|
|
1020
1020
|
y: I.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1021
1021
|
fill: I.value.style.layout.dataLabels.sideTitles.useSideColor ? I.value.style.layout.bars.right.color : I.value.style.layout.dataLabels.sideTitles.color,
|
|
1022
1022
|
"font-size": I.value.style.layout.dataLabels.sideTitles.fontSize,
|
|
1023
1023
|
"text-anchor": "end",
|
|
1024
1024
|
"font-weight": I.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
|
|
1025
|
-
},
|
|
1026
|
-
I.value.style.layout.dataLabels.yAxis.show ? (
|
|
1025
|
+
}, w(I.value.translations.male), 9, Xe)])) : p("", !0),
|
|
1026
|
+
I.value.style.layout.dataLabels.yAxis.show ? (b(), m("g", Ze, [(b(!0), m(u, null, S(Qt.value, (e, t) => (b(), m(u, null, [t % I.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (b(), m("text", {
|
|
1027
1027
|
key: 0,
|
|
1028
|
-
x:
|
|
1029
|
-
y:
|
|
1028
|
+
x: G.value.centerX,
|
|
1029
|
+
y: G.value.top + G.value.height / J.value * t + I.value.style.layout.dataLabels.yAxis.fontSize / 3,
|
|
1030
1030
|
"text-anchor": "middle",
|
|
1031
1031
|
"font-size": I.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1032
1032
|
fill: I.value.style.layout.dataLabels.yAxis.color,
|
|
1033
1033
|
"font-weight": I.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
|
|
1034
|
-
}, T(
|
|
1034
|
+
}, w(T(l)(I.value.style.layout.dataLabels.yAxis.formatter, e, T(s)({ v: e }), {
|
|
1035
1035
|
datapoint: e,
|
|
1036
1036
|
seriesIndex: t
|
|
1037
1037
|
})), 9, Qe)) : p("", !0)], 64))), 256))])) : p("", !0),
|
|
1038
|
-
I.value.style.layout.dataLabels.xAxis.show ? (
|
|
1039
|
-
I.value.style.layout.grid.show ? (
|
|
1040
|
-
x1:
|
|
1041
|
-
x2:
|
|
1042
|
-
y1:
|
|
1043
|
-
y2:
|
|
1038
|
+
I.value.style.layout.dataLabels.xAxis.show ? (b(), m("g", $e, [
|
|
1039
|
+
I.value.style.layout.grid.show ? (b(), m("g", et, [h("line", {
|
|
1040
|
+
x1: K.value.right[0].x,
|
|
1041
|
+
x2: K.value.right.at(-1).x,
|
|
1042
|
+
y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1043
|
+
y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1044
1044
|
stroke: I.value.style.layout.grid.stroke,
|
|
1045
1045
|
"stroke-width": I.value.style.layout.grid.strokeWidth,
|
|
1046
1046
|
"stroke-linecap": "round"
|
|
1047
1047
|
}, null, 8, tt), h("line", {
|
|
1048
|
-
x1:
|
|
1049
|
-
x2:
|
|
1050
|
-
y1:
|
|
1051
|
-
y2:
|
|
1048
|
+
x1: K.value.left[0].x,
|
|
1049
|
+
x2: K.value.left.at(-1).x,
|
|
1050
|
+
y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1051
|
+
y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1052
1052
|
stroke: I.value.style.layout.grid.stroke,
|
|
1053
1053
|
"stroke-width": I.value.style.layout.grid.strokeWidth,
|
|
1054
1054
|
"stroke-linecap": "round"
|
|
1055
1055
|
}, null, 8, nt)])) : p("", !0),
|
|
1056
|
-
(
|
|
1056
|
+
(b(!0), m(u, null, S(K.value.right, (e, t) => (b(), m("g", null, [I.value.style.layout.grid.show ? (b(), m("line", {
|
|
1057
1057
|
key: 0,
|
|
1058
1058
|
x1: e.x,
|
|
1059
1059
|
x2: e.x,
|
|
1060
|
-
y1:
|
|
1061
|
-
y2:
|
|
1060
|
+
y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1061
|
+
y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
|
|
1062
1062
|
stroke: I.value.style.layout.grid.stroke,
|
|
1063
1063
|
"stroke-width": I.value.style.layout.grid.strokeWidth,
|
|
1064
1064
|
"stroke-linecap": "round"
|
|
1065
1065
|
}, null, 8, rt)) : p("", !0)]))), 256)),
|
|
1066
|
-
(
|
|
1066
|
+
(b(!0), m(u, null, S(K.value.left, (e, t) => (b(), m("g", null, [I.value.style.layout.grid.show ? (b(), m("line", {
|
|
1067
1067
|
key: 0,
|
|
1068
1068
|
x1: e.x,
|
|
1069
1069
|
x2: e.x,
|
|
1070
|
-
y1:
|
|
1071
|
-
y2:
|
|
1070
|
+
y1: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2,
|
|
1071
|
+
y2: G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize / 2 + 4,
|
|
1072
1072
|
stroke: I.value.style.layout.grid.stroke,
|
|
1073
1073
|
"stroke-width": I.value.style.layout.grid.strokeWidth,
|
|
1074
1074
|
"stroke-linecap": "round"
|
|
@@ -1076,68 +1076,68 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
1076
1076
|
h("g", {
|
|
1077
1077
|
ref_key: "xAxisLabels",
|
|
1078
1078
|
ref: jt
|
|
1079
|
-
}, [(
|
|
1079
|
+
}, [(b(!0), m(u, null, S(K.value.right, (e, t) => (b(), m("text", {
|
|
1080
1080
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1081
1081
|
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1082
1082
|
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1083
1083
|
"text-anchor": I.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
1084
1084
|
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1085
|
-
transform: `translate(${e.x}, ${
|
|
1086
|
-
}, T(
|
|
1085
|
+
transform: `translate(${e.x}, ${G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1086
|
+
}, w(T(l)(I.value.style.layout.dataLabels.xAxis.formatter, e.value / I.value.style.layout.dataLabels.xAxis.scale, T(s)({ v: e.value / I.value.style.layout.dataLabels.xAxis.scale }), {
|
|
1087
1087
|
datapoint: e,
|
|
1088
1088
|
seriesIndex: t
|
|
1089
|
-
})), 9, at))), 256)), (
|
|
1089
|
+
})), 9, at))), 256)), (b(!0), m(u, null, S(K.value.left, (e, t) => (b(), m("text", {
|
|
1090
1090
|
class: "vue-ui-age-pyramid-x-axis-label",
|
|
1091
1091
|
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1092
1092
|
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1093
1093
|
"text-anchor": I.value.style.layout.dataLabels.xAxis.rotation > 0 ? "start" : I.value.style.layout.dataLabels.xAxis.rotation < 0 ? "end" : "middle",
|
|
1094
1094
|
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1095
|
-
transform: `translate(${e.x}, ${
|
|
1096
|
-
}, T(
|
|
1095
|
+
transform: `translate(${e.x}, ${G.value.bottom + I.value.style.layout.dataLabels.xAxis.fontSize * 2}) rotate(${I.value.style.layout.dataLabels.xAxis.rotation})`
|
|
1096
|
+
}, w(T(l)(I.value.style.layout.dataLabels.xAxis.formatter, e.value / I.value.style.layout.dataLabels.xAxis.scale, T(s)({ v: e.value / I.value.style.layout.dataLabels.xAxis.scale }), {
|
|
1097
1097
|
datapoint: e,
|
|
1098
1098
|
seriesIndex: t
|
|
1099
1099
|
})), 9, ot))), 256))], 512),
|
|
1100
1100
|
h("text", {
|
|
1101
|
-
x:
|
|
1102
|
-
y:
|
|
1101
|
+
x: G.value.right,
|
|
1102
|
+
y: U.value.height,
|
|
1103
1103
|
"text-anchor": "end",
|
|
1104
1104
|
"font-size": I.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1105
1105
|
fill: I.value.style.layout.dataLabels.xAxis.color,
|
|
1106
1106
|
"font-weight": I.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
|
|
1107
|
-
},
|
|
1107
|
+
}, w(I.value.style.layout.dataLabels.xAxis.translation), 9, st)
|
|
1108
1108
|
])) : p("", !0)
|
|
1109
1109
|
]),
|
|
1110
|
-
(
|
|
1111
|
-
x:
|
|
1112
|
-
y:
|
|
1113
|
-
width:
|
|
1114
|
-
height:
|
|
1115
|
-
fill: j.value !== null && j.value === t ?
|
|
1110
|
+
(b(!0), m(u, null, S(e.dataset, (e, t) => (b(), m("g", null, [h("rect", {
|
|
1111
|
+
x: G.value.left,
|
|
1112
|
+
y: G.value.top + G.value.height / J.value * t - I.value.style.layout.bars.gap / 2,
|
|
1113
|
+
width: G.value.width <= 0 ? 1e-4 : G.value.width,
|
|
1114
|
+
height: G.value.height / J.value <= 0 ? 1e-4 : G.value.height / J.value,
|
|
1115
|
+
fill: j.value !== null && j.value === t ? T(o)(I.value.style.highlighter.color, I.value.style.highlighter.opacity) : "transparent",
|
|
1116
1116
|
onMouseover: (n) => sn(t, e, "pointer"),
|
|
1117
1117
|
onMouseleave: (n) => an(t, e),
|
|
1118
1118
|
onClick: (n) => rn(t, e)
|
|
1119
1119
|
}, null, 40, ct)]))), 256)),
|
|
1120
|
-
|
|
1121
|
-
...
|
|
1122
|
-
drawingArea:
|
|
1123
|
-
isPrintingImg:
|
|
1124
|
-
isPrintingSvg:
|
|
1120
|
+
C(t.$slots, "svg", { svg: {
|
|
1121
|
+
...U.value,
|
|
1122
|
+
drawingArea: G.value,
|
|
1123
|
+
isPrintingImg: T(Wt) || T(Gt) || T(yn),
|
|
1124
|
+
isPrintingSvg: T(bn)
|
|
1125
1125
|
} }, void 0, !0)
|
|
1126
|
-
], 46, He)), t.$slots.hint ? (
|
|
1126
|
+
], 46, He)), t.$slots.hint ? (b(), m("div", lt, [C(t.$slots, "hint", y(v({
|
|
1127
1127
|
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1128
1128
|
isVisible: Pt.value
|
|
1129
1129
|
})), void 0, !0)])) : p("", !0)]),
|
|
1130
|
-
t.$slots.watermark ? (
|
|
1131
|
-
|
|
1132
|
-
t.$slots.source ? (
|
|
1130
|
+
t.$slots.watermark ? (b(), m("div", ut, [C(t.$slots, "watermark", y(v({ isPrinting: T(Wt) || T(Gt) || T(yn) || T(bn) })), void 0, !0)])) : p("", !0),
|
|
1131
|
+
C(t.$slots, "legend", { legend: Y.value }, void 0, !0),
|
|
1132
|
+
t.$slots.source ? (b(), m("div", {
|
|
1133
1133
|
key: 6,
|
|
1134
1134
|
ref_key: "source",
|
|
1135
1135
|
ref: Dt,
|
|
1136
1136
|
dir: "auto"
|
|
1137
|
-
}, [
|
|
1138
|
-
g(
|
|
1137
|
+
}, [C(t.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1138
|
+
g(T(dt), {
|
|
1139
1139
|
teleportTo: I.value.style.tooltip.teleportTo,
|
|
1140
|
-
show:
|
|
1140
|
+
show: H.value.showTooltip && A.value,
|
|
1141
1141
|
backgroundColor: I.value.style.tooltip.backgroundColor,
|
|
1142
1142
|
color: I.value.style.tooltip.color,
|
|
1143
1143
|
borderRadius: I.value.style.tooltip.borderRadius,
|
|
@@ -1159,9 +1159,9 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
1159
1159
|
isA11yMode: F.value === "keyboard",
|
|
1160
1160
|
a11yPosition: Nt.value
|
|
1161
1161
|
}, {
|
|
1162
|
-
"tooltip-before": D(() => [
|
|
1163
|
-
tooltip: D(() => [
|
|
1164
|
-
"tooltip-after": D(() => [
|
|
1162
|
+
"tooltip-before": D(() => [C(t.$slots, "tooltip-before", y(v({ ...tn.value })), void 0, !0)]),
|
|
1163
|
+
tooltip: D(() => [C(t.$slots, "tooltip", y(v({ ...tn.value })), void 0, !0)]),
|
|
1164
|
+
"tooltip-after": D(() => [C(t.$slots, "tooltip-after", y(v({ ...tn.value })), void 0, !0)]),
|
|
1165
1165
|
_: 3
|
|
1166
1166
|
}, 8, [
|
|
1167
1167
|
"teleportTo",
|
|
@@ -1187,12 +1187,12 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
1187
1187
|
"isA11yMode",
|
|
1188
1188
|
"a11yPosition"
|
|
1189
1189
|
]),
|
|
1190
|
-
Ct.value && I.value.userOptions.buttons.table ? (
|
|
1190
|
+
Ct.value && I.value.userOptions.buttons.table ? (b(), f(Pe($.value.component), Oe({ key: 7 }, $.value.props, {
|
|
1191
1191
|
ref_key: "tableUnit",
|
|
1192
1192
|
ref: N,
|
|
1193
1193
|
onClose: gn
|
|
1194
1194
|
}), Ee({
|
|
1195
|
-
content: D(() => [(
|
|
1195
|
+
content: D(() => [(b(), f(T(mt), {
|
|
1196
1196
|
key: `table_${At.value}`,
|
|
1197
1197
|
colNames: X.value.colNames,
|
|
1198
1198
|
head: X.value.head,
|
|
@@ -1203,8 +1203,8 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
1203
1203
|
isCursorPointer: L.value,
|
|
1204
1204
|
onClose: gn
|
|
1205
1205
|
}, {
|
|
1206
|
-
th: D(({ th: e }) => [De(
|
|
1207
|
-
td: D(({ td: e }) => [De(
|
|
1206
|
+
th: D(({ th: e }) => [De(w(e), 1)]),
|
|
1207
|
+
td: D(({ td: e }) => [De(w(e), 1)]),
|
|
1208
1208
|
_: 1
|
|
1209
1209
|
}, 8, [
|
|
1210
1210
|
"colNames",
|
|
@@ -1218,7 +1218,7 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
1218
1218
|
_: 2
|
|
1219
1219
|
}, [I.value.table.useDialog ? {
|
|
1220
1220
|
name: "title",
|
|
1221
|
-
fn: D(() => [De(
|
|
1221
|
+
fn: D(() => [De(w($.value.title), 1)]),
|
|
1222
1222
|
key: "0"
|
|
1223
1223
|
} : void 0, I.value.table.useDialog ? {
|
|
1224
1224
|
name: "actions",
|
|
@@ -1226,14 +1226,14 @@ var Re = /* @__PURE__ */ e({ default: () => dt }), ze = ["id"], Be = ["id"], Ve
|
|
|
1226
1226
|
tabindex: "0",
|
|
1227
1227
|
class: "vue-ui-user-options-button",
|
|
1228
1228
|
onClick: n[0] ||= (e) => cn(I.value.userOptions.callbacks.csv),
|
|
1229
|
-
style:
|
|
1230
|
-
}, [g(
|
|
1229
|
+
style: je({ cursor: L.value ? "pointer" : "default" })
|
|
1230
|
+
}, [g(T(ft), {
|
|
1231
1231
|
name: "fileCsv",
|
|
1232
1232
|
stroke: $.value.props.color
|
|
1233
1233
|
}, null, 8, ["stroke"])], 4)]),
|
|
1234
1234
|
key: "1"
|
|
1235
1235
|
} : void 0]), 1040)) : p("", !0),
|
|
1236
|
-
|
|
1236
|
+
C(t.$slots, "skeleton", {}, () => [T(It) ? (b(), f(de, { key: 0 })) : p("", !0)], !0)
|
|
1237
1237
|
], 46, ze));
|
|
1238
1238
|
}
|
|
1239
1239
|
}, [["__scopeId", "data-v-96895e9d"]]);
|