vue-data-ui 3.0.0-next.7 → 3.0.0-next.71

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.
Files changed (137) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
  11. package/dist/Slicer-DYuvPkEM.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
  19. package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +610 -22
  22. package/dist/types/vue-data-ui.d.ts +610 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-D-8c0o4p.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
  37. package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
  38. package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
  41. package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
  48. package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
  49. package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
  51. package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
  52. package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
  53. package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
  54. package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
  55. package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
  59. package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
  60. package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
  61. package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
  65. package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
  67. package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
  68. package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
  69. package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
  70. package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
  73. package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
  74. package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
  75. package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
  77. package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
  79. package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
  80. package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
  81. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
  82. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
  84. package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
  86. package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
  87. package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
  89. package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
  90. package/dist/vue-ui-wheel-De1spwLh.js +379 -0
  91. package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
  93. package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
  109. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  110. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  111. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  112. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  113. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  114. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  115. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  116. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  117. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  118. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  119. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  120. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  121. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  122. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  123. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  124. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  125. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  126. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  127. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  128. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  129. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  130. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  131. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  132. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  133. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  134. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  135. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  136. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  137. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -1,746 +0,0 @@
1
- import { defineAsyncComponent as $, computed as x, ref as d, watch as Be, shallowRef as ge, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as r, openBlock as u, unref as i, normalizeStyle as Y, normalizeClass as pe, createBlock as F, createCommentVNode as y, renderSlot as h, createVNode as be, createSlots as De, withCtx as f, normalizeProps as M, guardReactiveProps as P, createElementVNode as v, Fragment as R, renderList as B, toDisplayString as C, createTextVNode as xe, nextTick as Ge } from "vue";
2
- import { u as Ve, c as We, a as Xe, o as je, e as He, v as c, X as Ye, s as q, w as me, i as T, f as A, q as qe, r as Je, x as Ke, y as Qe } from "./index-Cg-RjxqH.js";
3
- import { t as Ze, u as et } from "./useResponsive-DfdjqQps.js";
4
- import { u as we } from "./useNestedProp-C_G5E08Y.js";
5
- import { u as tt } from "./usePrinter-BUzmyQf9.js";
6
- import { u as lt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as at } from "./useChartAccessibility-9icAAmYg.js";
8
- import ot from "./Title-B7Xb3YuE.js";
9
- import st from "./img-D72yZNUg.js";
10
- import { _ as it } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const ut = ["id"], rt = ["xmlns", "viewBox"], nt = ["x", "y", "width", "height"], vt = ["id"], dt = ["stop-color"], yt = ["stop-color"], ht = ["id"], ct = ["stop-color"], ft = ["stop-color"], gt = ["x", "y", "width", "height", "fill", "rx"], pt = ["x", "y", "width", "height", "fill", "rx"], bt = ["x", "y", "width", "height", "fill", "rx"], xt = ["x", "y", "width", "height", "fill", "rx"], mt = { key: 0 }, wt = ["x", "y", "fill", "font-size", "font-weight"], kt = ["x", "y", "fill", "font-size", "font-weight"], _t = { key: 1 }, Ct = ["x", "y", "font-size", "fill", "font-weight"], $t = { key: 2 }, Tt = { key: 0 }, At = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Lt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], St = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], zt = ["x", "y", "font-size", "fill", "font-weight"], Ot = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], It = ["x", "y", "font-size", "fill", "font-weight"], Ft = ["x", "y", "font-size", "fill", "font-weight"], Mt = ["x", "y", "width", "height", "fill", "onMouseover"], Pt = {
12
- key: 5,
13
- class: "vue-data-ui-watermark"
14
- }, Rt = {
15
- __name: "vue-ui-age-pyramid",
16
- props: {
17
- config: {
18
- type: Object,
19
- default() {
20
- return {};
21
- }
22
- },
23
- dataset: {
24
- type: Array,
25
- default() {
26
- return [];
27
- }
28
- }
29
- },
30
- setup(J, { expose: ke }) {
31
- const _e = $(() => import("./vue-ui-accordion-CRomxzaL.js")), Ce = $(() => import("./DataTable-mQ6Wd-rR.js")), $e = $(() => import("./PackageVersion-CeEYZfaH.js")), Te = $(() => import("./PenAndPaper-DhSxfUrQ.js")), Ae = $(() => import("./vue-ui-skeleton-CUOhCY4p.js")), Le = $(() => import("./Tooltip-BidRoM5E.js")), Se = $(() => import("./UserOptions-0tvMM8PF.js")), { vue_ui_age_pyramid: ze } = Ve(), g = J, E = x(() => !!g.dataset && g.dataset.length), w = d(We()), Oe = d(null), V = d(!1), W = d(""), U = d(null), K = d(0), k = d(null), Q = d(null), Z = d(null), ee = d(null), te = d(0), le = d(0), e = x({
32
- get: () => ie(),
33
- set: (t) => t
34
- }), { userOptionsVisible: X, setUserOptionsVisibility: ae, keepUserOptionState: oe } = lt({ config: e.value }), { svgRef: se } = at({ config: e.value.style.title });
35
- function ie() {
36
- const t = we({
37
- userConfig: g.config,
38
- defaultConfig: ze
39
- });
40
- return t.theme ? {
41
- ...we({
42
- userConfig: Xe.vue_ui_age_pyramid[t.theme] || g.config,
43
- defaultConfig: t
44
- })
45
- } : t;
46
- }
47
- Be(() => g.config, (t) => {
48
- e.value = ie(), X.value = !e.value.userOptions.showOnChartHover, ue(), te.value += 1, le.value += 1, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.tooltip.show;
49
- }, { deep: !0 });
50
- const _ = ge(null), L = ge(null);
51
- Ee(() => {
52
- ue();
53
- });
54
- function ue() {
55
- if (je(g.dataset) && He({
56
- componentName: "VueUiAgePyramid",
57
- type: "dataset"
58
- }), e.value.responsive) {
59
- const t = Ze(() => {
60
- const { width: s, height: l } = et({
61
- chart: k.value,
62
- title: e.value.style.title.text ? Q.value : null,
63
- source: Z.value,
64
- noTitle: ee.value
65
- });
66
- requestAnimationFrame(() => {
67
- p.value.width = s, p.value.height = l;
68
- });
69
- });
70
- _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect()), _.value = new ResizeObserver(t), L.value = k.value.parentNode, _.value.observe(L.value);
71
- }
72
- }
73
- Ue(() => {
74
- _.value && (L.value && _.value.unobserve(L.value), _.value.disconnect());
75
- });
76
- const { isPrinting: re, isImaging: ne, generatePdf: ve, generateImage: de } = tt({
77
- elementId: `vue-ui-age-pyramid_${w.value}`,
78
- fileName: e.value.style.title.text || "vue-ui-age-pyramid",
79
- options: e.value.userOptions.print
80
- }), Ie = x(() => e.value.userOptions.show && !e.value.style.title.text), m = d({
81
- showTable: e.value.table.show,
82
- showTooltip: e.value.style.tooltip.show
83
- }), p = d({
84
- height: e.value.style.height,
85
- width: e.value.style.width
86
- }), o = x(() => {
87
- const t = p.value.width - e.value.style.layout.padding.right - e.value.style.layout.padding.left, s = e.value.style.layout.padding.left, l = p.value.width - e.value.style.layout.padding.right;
88
- return {
89
- top: e.value.style.layout.padding.top,
90
- left: s,
91
- right: l,
92
- bottom: p.value.height - e.value.style.layout.padding.bottom,
93
- width: t,
94
- height: p.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom,
95
- centerX: e.value.style.layout.padding.left + t / 2,
96
- leftChart: {
97
- width: t / 2 - e.value.style.layout.centerSlit.width,
98
- right: s + t / 2 - e.value.style.layout.centerSlit.width
99
- },
100
- rightChart: {
101
- width: t / 2 - e.value.style.layout.centerSlit.width,
102
- left: s + t / 2 + e.value.style.layout.centerSlit.width
103
- }
104
- };
105
- }), Fe = x(() => g.dataset.map((t) => e.value.style.layout.dataLabels.yAxis.display === "age" ? t[1] : t[0])), S = x(() => {
106
- const t = Me(N.value / 5), s = [], l = [];
107
- for (let a = 0; a <= 5; a += 1) {
108
- const n = t * a, b = t * (a - 5);
109
- s.push({
110
- value: n,
111
- x: o.value.left + o.value.width / 2 + e.value.style.layout.centerSlit.width + n / N.value * o.value.leftChart.width
112
- }), l.push({
113
- value: Math.abs(b),
114
- x: o.value.left + o.value.width / 2 + b / N.value * o.value.leftChart.width - e.value.style.layout.centerSlit.width
115
- });
116
- }
117
- return {
118
- right: s,
119
- left: l
120
- };
121
- });
122
- function Me(t) {
123
- if (t === 0) return 0;
124
- const l = 10 ** Math.floor(Math.log10(Math.abs(t)));
125
- let a;
126
- return t < 0, a = Math.round(t / l) * l, a;
127
- }
128
- const N = x(() => Math.max(...g.dataset.flatMap((t) => t.slice(-2).map((s) => c(s))))), z = x(() => g.dataset.length), Pe = x(() => g.dataset.map((t) => ({
129
- segment: t[0],
130
- age: t[1],
131
- left: {
132
- value: t[2],
133
- proportionToMax: t[2] / N.value
134
- },
135
- right: {
136
- value: t[3],
137
- proportionToMax: t[3] / N.value
138
- }
139
- }))), O = x(() => Pe.value.map((t, s) => {
140
- const l = o.value.top + o.value.height / z.value * s, a = o.value.height / z.value - e.value.style.layout.bars.gap;
141
- return {
142
- segment: t.segment,
143
- age: t.age,
144
- left: {
145
- ...t.left,
146
- y: l,
147
- color: e.value.style.layout.bars.left.color,
148
- x: o.value.leftChart.right - t.left.proportionToMax * o.value.leftChart.width,
149
- width: c(t.left.proportionToMax * o.value.leftChart.width),
150
- height: a
151
- },
152
- right: {
153
- ...t.right,
154
- y: l,
155
- color: e.value.style.layout.bars.right.color,
156
- x: o.value.rightChart.left,
157
- width: c(t.right.proportionToMax * o.value.rightChart.width),
158
- height: a
159
- }
160
- };
161
- })), j = d(null);
162
- function Re(t, s) {
163
- U.value = t, j.value = {
164
- datapoint: s,
165
- seriesIndex: t,
166
- series: O.value,
167
- config: e.value
168
- };
169
- const l = e.value.style.tooltip.customFormat;
170
- if (Ke(l) && Qe(() => l({
171
- seriesIndex: t,
172
- datapoint: {
173
- segment: s[0],
174
- index: s[1],
175
- left: s[2],
176
- right: s[3]
177
- },
178
- series: O.value,
179
- config: e.value
180
- })))
181
- W.value = l({
182
- seriesIndex: t,
183
- datapoint: {
184
- segment: s[0],
185
- index: s[1],
186
- left: s[2],
187
- right: s[3]
188
- },
189
- series: O.value,
190
- config: e.value
191
- });
192
- else {
193
- let a = "";
194
- const n = O.value[t];
195
- a += `<div><b>${n.segment}</b></div>`, a += `<div>${e.value.translations.age}: ${T(
196
- e.value.style.layout.dataLabels.yAxis.formatter,
197
- c(n.age),
198
- A({ v: c(n.age) }),
199
- { datapoint: s, seriesIndex: t }
200
- )}</div>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, a += '<div style="display:flex; flex-direction:row;gap:12px">', a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : e.value.style.layout.bars.left.color}"/></svg><div>${e.value.translations.female}</div><div><b>${T(
201
- e.value.style.layout.dataLabels.xAxis.formatter,
202
- c(n.left.value),
203
- A({ v: c(n.left.value) }),
204
- { datapoint: s, seriesIndex: t }
205
- )}</b></div></div>`, a += `<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : e.value.style.layout.bars.right.color}"/></svg><div>${e.value.translations.male}</div><div><b>${T(
206
- e.value.style.layout.dataLabels.xAxis.formatter,
207
- c(n.right.value),
208
- A({ v: c(n.right.value) }),
209
- { datapoint: s, seriesIndex: t }
210
- )}</b></div></div>`, a += "</div>", a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}"><div>${e.value.translations.total}</div><div><b>${T(
211
- e.value.style.layout.dataLabels.xAxis.formatter,
212
- c(n.right.value) + c(n.left.value),
213
- A({ v: c(n.right.value) + c(n.left.value) }),
214
- { datapoint: s, seriesIndex: t }
215
- )}</b></div></div>`, a += "</div>", W.value = `<div>${a}</div>`;
216
- }
217
- V.value = !0;
218
- }
219
- function ye(t = null) {
220
- Ge(() => {
221
- const s = [e.value.translations.year, e.value.translations.age, e.value.translations.female, e.value.translations.male, e.value.translations.total], l = g.dataset.map((b) => [
222
- b[0],
223
- b[1],
224
- b[2],
225
- b[3],
226
- b[2] + b[3]
227
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(l), n = qe(a);
228
- t ? t(n) : Je({ csvContent: n, title: e.value.style.title.text || "vue-ui-heatmap" });
229
- });
230
- }
231
- const D = x(() => {
232
- const t = [
233
- e.value.translations.year,
234
- e.value.translations.age,
235
- e.value.translations.female,
236
- e.value.translations.male,
237
- e.value.translations.total
238
- ], s = g.dataset.map((a) => [
239
- a[0],
240
- a[1],
241
- a[2].toLocaleString(),
242
- a[3].toLocaleString(),
243
- (a[2] + a[3]).toLocaleString()
244
- ]), l = {
245
- th: {
246
- backgroundColor: e.value.table.th.backgroundColor,
247
- color: e.value.table.th.color,
248
- outline: e.value.table.th.outline
249
- },
250
- td: {
251
- backgroundColor: e.value.table.td.backgroundColor,
252
- color: e.value.table.td.color,
253
- outline: e.value.table.td.outline
254
- },
255
- breakpoint: e.value.table.responsiveBreakpoint
256
- };
257
- return { head: t, body: s, config: l, colNames: t };
258
- }), I = d(!1);
259
- function he(t) {
260
- I.value = t, K.value += 1;
261
- }
262
- function ce() {
263
- m.value.showTable = !m.value.showTable;
264
- }
265
- function fe() {
266
- m.value.showTooltip = !m.value.showTooltip;
267
- }
268
- const G = d(!1);
269
- function H() {
270
- G.value = !G.value;
271
- }
272
- async function Ne({ scale: t = 2 } = {}) {
273
- if (!k.value) return;
274
- const { width: s, height: l } = k.value.getBoundingClientRect(), a = s / l, { imageUri: n, base64: b } = await st({ domElement: k.value, base64: !0, img: !0, scale: t });
275
- return {
276
- imageUri: n,
277
- base64: b,
278
- title: e.value.style.title.text,
279
- width: s,
280
- height: l,
281
- aspectRatio: a
282
- };
283
- }
284
- return ke({
285
- getImage: Ne,
286
- generatePdf: ve,
287
- generateCsv: ye,
288
- generateImage: de,
289
- toggleTable: ce,
290
- toggleTooltip: fe,
291
- toggleAnnotator: H,
292
- toggleFullscreen: he
293
- }), (t, s) => (u(), r("div", {
294
- class: pe(`vue-ui-age-pyramid ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
295
- ref_key: "agePyramid",
296
- ref: k,
297
- id: `vue-ui-age-pyramid_${w.value}`,
298
- style: Y(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
299
- onMouseenter: s[2] || (s[2] = () => i(ae)(!0)),
300
- onMouseleave: s[3] || (s[3] = () => i(ae)(!1))
301
- }, [
302
- e.value.userOptions.buttons.annotator ? (u(), F(i(Te), {
303
- key: 0,
304
- svgRef: i(se),
305
- backgroundColor: e.value.style.backgroundColor,
306
- color: e.value.style.color,
307
- active: G.value,
308
- onClose: H
309
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : y("", !0),
310
- Ie.value ? (u(), r("div", {
311
- key: 1,
312
- ref_key: "noTitle",
313
- ref: ee,
314
- class: "vue-data-ui-no-title-space",
315
- style: "height:36px; width: 100%;background:transparent"
316
- }, null, 512)) : y("", !0),
317
- e.value.style.title.text ? (u(), r("div", {
318
- key: 2,
319
- ref_key: "chartTitle",
320
- ref: Q,
321
- style: "width:100%;background:transparent"
322
- }, [
323
- (u(), F(ot, {
324
- key: `title_${te.value}`,
325
- config: {
326
- title: {
327
- cy: "pyramid-div-title",
328
- ...e.value.style.title
329
- },
330
- subtitle: {
331
- cy: "pyramid-div-subtitle",
332
- ...e.value.style.title.subtitle
333
- }
334
- }
335
- }, null, 8, ["config"]))
336
- ], 512)) : y("", !0),
337
- e.value.userOptions.show && E.value && (i(oe) || i(X)) ? (u(), F(i(Se), {
338
- ref_key: "details",
339
- ref: Oe,
340
- key: `user_options_${K.value}`,
341
- backgroundColor: e.value.style.backgroundColor,
342
- color: e.value.style.color,
343
- isImaging: i(ne),
344
- isPrinting: i(re),
345
- uid: w.value,
346
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
347
- hasPdf: e.value.userOptions.buttons.pdf,
348
- hasXls: e.value.userOptions.buttons.csv,
349
- hasImg: e.value.userOptions.buttons.img,
350
- hasTable: e.value.userOptions.buttons.table,
351
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
352
- isFullscreen: I.value,
353
- isTooltip: m.value.showTooltip,
354
- titles: { ...e.value.userOptions.buttonTitles },
355
- chartElement: k.value,
356
- position: e.value.userOptions.position,
357
- hasAnnotator: e.value.userOptions.buttons.annotator,
358
- isAnnotation: G.value,
359
- callbacks: e.value.userOptions.callbacks,
360
- printScale: e.value.userOptions.print.scale,
361
- onToggleFullscreen: he,
362
- onGeneratePdf: i(ve),
363
- onGenerateCsv: ye,
364
- onGenerateImage: i(de),
365
- onToggleTable: ce,
366
- onToggleTooltip: fe,
367
- onToggleAnnotator: H,
368
- style: Y({
369
- visibility: i(oe) ? i(X) ? "visible" : "hidden" : "visible"
370
- })
371
- }, De({ _: 2 }, [
372
- t.$slots.menuIcon ? {
373
- name: "menuIcon",
374
- fn: f(({ isOpen: l, color: a }) => [
375
- h(t.$slots, "menuIcon", M(P({ isOpen: l, color: a })), void 0, !0)
376
- ]),
377
- key: "0"
378
- } : void 0,
379
- t.$slots.optionTooltip ? {
380
- name: "optionTooltip",
381
- fn: f(() => [
382
- h(t.$slots, "optionTooltip", {}, void 0, !0)
383
- ]),
384
- key: "1"
385
- } : void 0,
386
- t.$slots.optionPdf ? {
387
- name: "optionPdf",
388
- fn: f(() => [
389
- h(t.$slots, "optionPdf", {}, void 0, !0)
390
- ]),
391
- key: "2"
392
- } : void 0,
393
- t.$slots.optionCsv ? {
394
- name: "optionCsv",
395
- fn: f(() => [
396
- h(t.$slots, "optionCsv", {}, void 0, !0)
397
- ]),
398
- key: "3"
399
- } : void 0,
400
- t.$slots.optionImg ? {
401
- name: "optionImg",
402
- fn: f(() => [
403
- h(t.$slots, "optionImg", {}, void 0, !0)
404
- ]),
405
- key: "4"
406
- } : void 0,
407
- t.$slots.optionTable ? {
408
- name: "optionTable",
409
- fn: f(() => [
410
- h(t.$slots, "optionTable", {}, void 0, !0)
411
- ]),
412
- key: "5"
413
- } : void 0,
414
- t.$slots.optionFullscreen ? {
415
- name: "optionFullscreen",
416
- fn: f(({ toggleFullscreen: l, isFullscreen: a }) => [
417
- h(t.$slots, "optionFullscreen", M(P({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
418
- ]),
419
- key: "6"
420
- } : void 0,
421
- t.$slots.optionAnnotator ? {
422
- name: "optionAnnotator",
423
- fn: f(({ toggleAnnotator: l, isAnnotator: a }) => [
424
- h(t.$slots, "optionAnnotator", M(P({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
425
- ]),
426
- key: "7"
427
- } : void 0
428
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : y("", !0),
429
- E.value ? (u(), r("svg", {
430
- key: 4,
431
- ref_key: "svgRef",
432
- ref: se,
433
- xmlns: i(Ye),
434
- class: pe({ "vue-data-ui-fullscreen--on": I.value, "vue-data-ui-fulscreen--off": !I.value }),
435
- viewBox: `0 0 ${p.value.width <= 0 ? 10 : p.value.width} ${p.value.height <= 0 ? 10 : p.value.height}`,
436
- style: Y(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
437
- }, [
438
- be(i($e)),
439
- t.$slots["chart-background"] ? (u(), r("foreignObject", {
440
- key: 0,
441
- x: o.value.left,
442
- y: o.value.top,
443
- width: Math.max(0.1, o.value.width),
444
- height: Math.max(0.1, o.value.height),
445
- style: {
446
- pointerEvents: "none"
447
- }
448
- }, [
449
- h(t.$slots, "chart-background", {}, void 0, !0)
450
- ], 8, nt)) : y("", !0),
451
- v("defs", null, [
452
- v("linearGradient", {
453
- id: `age_pyramid_left_${w.value}`,
454
- x1: "0%",
455
- y1: "0%",
456
- x2: "100%",
457
- y2: "0%"
458
- }, [
459
- v("stop", {
460
- offset: "0%",
461
- "stop-color": e.value.style.layout.bars.left.color
462
- }, null, 8, dt),
463
- v("stop", {
464
- offset: "100%",
465
- "stop-color": i(q)(i(me)(e.value.style.layout.bars.left.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
466
- }, null, 8, yt)
467
- ], 8, vt),
468
- v("linearGradient", {
469
- id: `age_pyramid_right_${w.value}`,
470
- x1: "0%",
471
- y1: "0%",
472
- x2: "100%",
473
- y2: "0%"
474
- }, [
475
- v("stop", {
476
- offset: "0%",
477
- "stop-color": i(q)(i(me)(e.value.style.layout.bars.right.color, e.value.style.layout.bars.gradient.shiftHue), 100 - e.value.style.layout.bars.gradient.intensity)
478
- }, null, 8, ct),
479
- v("stop", {
480
- offset: "100%",
481
- "stop-color": e.value.style.layout.bars.right.color
482
- }, null, 8, ft)
483
- ], 8, ht)
484
- ]),
485
- (u(!0), r(R, null, B(O.value, (l, a) => (u(), r("g", null, [
486
- v("rect", {
487
- x: l.left.x,
488
- y: l.left.y,
489
- width: i(c)(l.left.width <= 0 ? 1e-4 : l.left.width),
490
- height: l.left.height <= 0 ? 1e-4 : l.left.height,
491
- fill: e.value.style.layout.bars.gradient.underlayer,
492
- rx: e.value.style.layout.bars.borderRadius
493
- }, null, 8, gt),
494
- v("rect", {
495
- x: l.left.x,
496
- y: l.left.y,
497
- width: l.left.width <= 0 ? 1e-4 : l.left.width,
498
- height: l.left.height <= 0 ? 1e-4 : l.left.height,
499
- fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_left_${w.value})` : l.left.color,
500
- rx: e.value.style.layout.bars.borderRadius
501
- }, null, 8, pt),
502
- v("rect", {
503
- x: l.right.x,
504
- y: l.right.y,
505
- width: l.right.width <= 0 ? 1e-4 : l.right.width,
506
- height: l.right.height <= 0 ? 1e-4 : l.right.height,
507
- fill: e.value.style.layout.bars.gradient.underlayer,
508
- rx: e.value.style.layout.bars.borderRadius
509
- }, null, 8, bt),
510
- v("rect", {
511
- x: l.right.x,
512
- y: l.right.y,
513
- width: l.right.width <= 0 ? 1e-4 : l.right.width,
514
- height: l.right.height <= 0 ? 1e-4 : l.right.height,
515
- fill: e.value.style.layout.bars.gradient.show ? `url(#age_pyramid_right_${w.value})` : l.right.color,
516
- rx: e.value.style.layout.bars.borderRadius
517
- }, null, 8, xt)
518
- ]))), 256)),
519
- v("g", null, [
520
- e.value.style.layout.dataLabels.sideTitles.show ? (u(), r("g", mt, [
521
- v("text", {
522
- x: o.value.left,
523
- y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
524
- fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.left.color : e.value.style.layout.dataLabels.sideTitles.color,
525
- "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
526
- "text-anchor": "start",
527
- "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
528
- }, C(e.value.translations.female), 9, wt),
529
- v("text", {
530
- x: o.value.right,
531
- y: o.value.top + e.value.style.layout.dataLabels.sideTitles.offsetY,
532
- fill: e.value.style.layout.dataLabels.sideTitles.useSideColor ? e.value.style.layout.bars.right.color : e.value.style.layout.dataLabels.sideTitles.color,
533
- "font-size": e.value.style.layout.dataLabels.sideTitles.fontSize,
534
- "text-anchor": "end",
535
- "font-weight": e.value.style.layout.dataLabels.sideTitles.bold ? "bold" : "normal"
536
- }, C(e.value.translations.male), 9, kt)
537
- ])) : y("", !0),
538
- e.value.style.layout.dataLabels.yAxis.show ? (u(), r("g", _t, [
539
- (u(!0), r(R, null, B(Fe.value, (l, a) => (u(), r(R, null, [
540
- a % e.value.style.layout.dataLabels.yAxis.showEvery === 0 ? (u(), r("text", {
541
- key: 0,
542
- x: o.value.centerX,
543
- y: o.value.top + o.value.height / z.value * a + e.value.style.layout.dataLabels.yAxis.fontSize / 3,
544
- "text-anchor": "middle",
545
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
546
- fill: e.value.style.layout.dataLabels.yAxis.color,
547
- "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal"
548
- }, C(i(T)(
549
- e.value.style.layout.dataLabels.yAxis.formatter,
550
- l,
551
- i(A)({ v: l }),
552
- { datapoint: l, seriesIndex: a }
553
- )), 9, Ct)) : y("", !0)
554
- ], 64))), 256))
555
- ])) : y("", !0),
556
- e.value.style.layout.dataLabels.xAxis.show ? (u(), r("g", $t, [
557
- e.value.style.layout.grid.show ? (u(), r("g", Tt, [
558
- v("line", {
559
- x1: S.value.right[0].x,
560
- x2: S.value.right.at(-1).x,
561
- y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
562
- y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
563
- stroke: e.value.style.layout.grid.stroke,
564
- "stroke-width": e.value.style.layout.grid.strokeWidth,
565
- "stroke-linecap": "round"
566
- }, null, 8, At),
567
- v("line", {
568
- x1: S.value.left[0].x,
569
- x2: S.value.left.at(-1).x,
570
- y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
571
- y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
572
- stroke: e.value.style.layout.grid.stroke,
573
- "stroke-width": e.value.style.layout.grid.strokeWidth,
574
- "stroke-linecap": "round"
575
- }, null, 8, Lt)
576
- ])) : y("", !0),
577
- (u(!0), r(R, null, B(S.value.right, (l, a) => (u(), r("g", null, [
578
- e.value.style.layout.grid.show ? (u(), r("line", {
579
- key: 0,
580
- x1: l.x,
581
- x2: l.x,
582
- y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
583
- y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 4,
584
- stroke: e.value.style.layout.grid.stroke,
585
- "stroke-width": e.value.style.layout.grid.strokeWidth,
586
- "stroke-linecap": "round"
587
- }, null, 8, St)) : y("", !0),
588
- v("text", {
589
- x: l.x,
590
- y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
591
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
592
- fill: e.value.style.layout.dataLabels.xAxis.color,
593
- "text-anchor": "middle",
594
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
595
- }, C(i(T)(
596
- e.value.style.layout.dataLabels.xAxis.formatter,
597
- l.value / e.value.style.layout.dataLabels.xAxis.scale,
598
- i(A)({
599
- v: l.value / e.value.style.layout.dataLabels.xAxis.scale
600
- }),
601
- { datapoint: l, seriesIndex: a }
602
- )), 9, zt)
603
- ]))), 256)),
604
- (u(!0), r(R, null, B(S.value.left, (l, a) => (u(), r("g", null, [
605
- e.value.style.layout.grid.show ? (u(), r("line", {
606
- key: 0,
607
- x1: l.x,
608
- x2: l.x,
609
- y1: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 2,
610
- y2: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize / 4,
611
- stroke: e.value.style.layout.grid.stroke,
612
- "stroke-width": e.value.style.layout.grid.strokeWidth,
613
- "stroke-linecap": "round"
614
- }, null, 8, Ot)) : y("", !0),
615
- v("text", {
616
- x: l.x,
617
- y: o.value.bottom + e.value.style.layout.dataLabels.xAxis.fontSize * 2,
618
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
619
- fill: e.value.style.layout.dataLabels.xAxis.color,
620
- "text-anchor": "middle",
621
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
622
- }, C(i(T)(
623
- e.value.style.layout.dataLabels.xAxis.formatter,
624
- l.value / e.value.style.layout.dataLabels.xAxis.scale,
625
- i(A)({
626
- v: l.value / e.value.style.layout.dataLabels.xAxis.scale
627
- }),
628
- { datapoint: l, seriesIndex: a }
629
- )), 9, It)
630
- ]))), 256)),
631
- v("text", {
632
- x: o.value.right,
633
- y: p.value.height,
634
- "text-anchor": "end",
635
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
636
- fill: e.value.style.layout.dataLabels.xAxis.color,
637
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal"
638
- }, C(e.value.style.layout.dataLabels.xAxis.translation), 9, Ft)
639
- ])) : y("", !0)
640
- ]),
641
- (u(!0), r(R, null, B(J.dataset, (l, a) => (u(), r("g", null, [
642
- v("rect", {
643
- x: o.value.left,
644
- y: o.value.top + o.value.height / z.value * a - e.value.style.layout.bars.gap / 2,
645
- width: o.value.width <= 0 ? 1e-4 : o.value.width,
646
- height: o.value.height / z.value <= 0 ? 1e-4 : o.value.height / z.value,
647
- fill: U.value !== null && U.value === a ? i(q)(e.value.style.highlighter.color, e.value.style.highlighter.opacity) : "transparent",
648
- onMouseover: (n) => Re(a, l),
649
- onMouseleave: s[0] || (s[0] = (n) => {
650
- U.value = null, V.value = !1;
651
- })
652
- }, null, 40, Mt)
653
- ]))), 256)),
654
- h(t.$slots, "svg", { svg: p.value }, void 0, !0)
655
- ], 14, rt)) : y("", !0),
656
- t.$slots.watermark ? (u(), r("div", Pt, [
657
- h(t.$slots, "watermark", M(P({ isPrinting: i(re) || i(ne) })), void 0, !0)
658
- ])) : y("", !0),
659
- E.value ? y("", !0) : (u(), F(i(Ae), {
660
- key: 6,
661
- config: {
662
- type: "pyramid",
663
- style: {
664
- backgroundColor: e.value.style.backgroundColor,
665
- pyramid: {
666
- color: "#CCCCCC"
667
- }
668
- }
669
- }
670
- }, null, 8, ["config"])),
671
- h(t.$slots, "legend", { legend: O.value }, void 0, !0),
672
- t.$slots.source ? (u(), r("div", {
673
- key: 7,
674
- ref_key: "source",
675
- ref: Z,
676
- dir: "auto"
677
- }, [
678
- h(t.$slots, "source", {}, void 0, !0)
679
- ], 512)) : y("", !0),
680
- be(i(Le), {
681
- show: m.value.showTooltip && V.value,
682
- backgroundColor: e.value.style.tooltip.backgroundColor,
683
- color: e.value.style.tooltip.color,
684
- borderRadius: e.value.style.tooltip.borderRadius,
685
- borderColor: e.value.style.tooltip.borderColor,
686
- borderWidth: e.value.style.tooltip.borderWidth,
687
- fontSize: e.value.style.tooltip.fontSize,
688
- backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
689
- position: e.value.style.tooltip.position,
690
- offsetY: e.value.style.tooltip.offsetY,
691
- parent: k.value,
692
- content: W.value,
693
- isFullscreen: I.value,
694
- isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
695
- }, {
696
- "tooltip-before": f(() => [
697
- h(t.$slots, "tooltip-before", M(P({ ...j.value })), void 0, !0)
698
- ]),
699
- "tooltip-after": f(() => [
700
- h(t.$slots, "tooltip-after", M(P({ ...j.value })), void 0, !0)
701
- ]),
702
- _: 3
703
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
704
- E.value ? (u(), F(i(_e), {
705
- key: 8,
706
- hideDetails: "",
707
- config: {
708
- open: m.value.showTable,
709
- maxHeight: 1e4,
710
- body: {
711
- backgroundColor: e.value.style.backgroundColor,
712
- color: e.value.style.color
713
- },
714
- head: {
715
- backgroundColor: e.value.style.backgroundColor,
716
- color: e.value.style.color
717
- }
718
- }
719
- }, {
720
- content: f(() => [
721
- (u(), F(i(Ce), {
722
- key: `table_${le.value}`,
723
- colNames: D.value.colNames,
724
- head: D.value.head,
725
- body: D.value.body,
726
- config: D.value.config,
727
- title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
728
- onClose: s[1] || (s[1] = (l) => m.value.showTable = !1)
729
- }, {
730
- th: f(({ th: l }) => [
731
- xe(C(l), 1)
732
- ]),
733
- td: f(({ td: l }) => [
734
- xe(C(l), 1)
735
- ]),
736
- _: 1
737
- }, 8, ["colNames", "head", "body", "config", "title"]))
738
- ]),
739
- _: 1
740
- }, 8, ["config"])) : y("", !0)
741
- ], 46, ut));
742
- }
743
- }, Ht = /* @__PURE__ */ it(Rt, [["__scopeId", "data-v-fb8f7a5f"]]);
744
- export {
745
- Ht as default
746
- };