vue-data-ui 3.7.2 → 3.7.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.
Files changed (137) hide show
  1. package/dist/{PackageVersion-ChF5viKP.js → PackageVersion-BljCSoe5.js} +1 -1
  2. package/dist/{Title-DfFUb9hd.js → Title-C-XBwSUb.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-accordion.js +1 -1
  5. package/dist/components/vue-ui-age-pyramid.js +1 -1
  6. package/dist/components/vue-ui-annotator.js +1 -1
  7. package/dist/components/vue-ui-bullet.js +1 -1
  8. package/dist/components/vue-ui-candlestick.js +1 -1
  9. package/dist/components/vue-ui-carousel-table.js +1 -1
  10. package/dist/components/vue-ui-chestnut.js +1 -1
  11. package/dist/components/vue-ui-chord.js +1 -1
  12. package/dist/components/vue-ui-circle-pack.js +1 -1
  13. package/dist/components/vue-ui-cursor.js +1 -1
  14. package/dist/components/vue-ui-dashboard.js +1 -1
  15. package/dist/components/vue-ui-digits.js +1 -1
  16. package/dist/components/vue-ui-donut-evolution.js +1 -1
  17. package/dist/components/vue-ui-donut.js +1 -1
  18. package/dist/components/vue-ui-dumbbell.js +1 -1
  19. package/dist/components/vue-ui-flow.js +1 -1
  20. package/dist/components/vue-ui-funnel.js +1 -1
  21. package/dist/components/vue-ui-galaxy.js +1 -1
  22. package/dist/components/vue-ui-gauge.js +1 -1
  23. package/dist/components/vue-ui-gizmo.js +1 -1
  24. package/dist/components/vue-ui-heatmap.js +1 -1
  25. package/dist/components/vue-ui-history-plot.js +1 -1
  26. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  27. package/dist/components/vue-ui-kpi.js +1 -1
  28. package/dist/components/vue-ui-mini-loader.js +1 -1
  29. package/dist/components/vue-ui-molecule.js +1 -1
  30. package/dist/components/vue-ui-mood-radar.js +1 -1
  31. package/dist/components/vue-ui-nested-donuts.js +1 -1
  32. package/dist/components/vue-ui-onion.js +1 -1
  33. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  34. package/dist/components/vue-ui-quadrant.js +1 -1
  35. package/dist/components/vue-ui-quick-chart.js +1 -1
  36. package/dist/components/vue-ui-radar.js +1 -1
  37. package/dist/components/vue-ui-rating.js +1 -1
  38. package/dist/components/vue-ui-relation-circle.js +1 -1
  39. package/dist/components/vue-ui-ridgeline.js +1 -1
  40. package/dist/components/vue-ui-rings.js +1 -1
  41. package/dist/components/vue-ui-scatter.js +1 -1
  42. package/dist/components/vue-ui-skeleton.js +1 -1
  43. package/dist/components/vue-ui-smiley.js +1 -1
  44. package/dist/components/vue-ui-spark-trend.js +1 -1
  45. package/dist/components/vue-ui-sparkbar.js +1 -1
  46. package/dist/components/vue-ui-sparkgauge.js +1 -1
  47. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  48. package/dist/components/vue-ui-sparkline.js +1 -1
  49. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  50. package/dist/components/vue-ui-stackbar.js +1 -1
  51. package/dist/components/vue-ui-stackline.js +1 -1
  52. package/dist/components/vue-ui-strip-plot.js +1 -1
  53. package/dist/components/vue-ui-table-heatmap.js +1 -1
  54. package/dist/components/vue-ui-table-sparkline.js +1 -1
  55. package/dist/components/vue-ui-table.js +1 -1
  56. package/dist/components/vue-ui-thermometer.js +1 -1
  57. package/dist/components/vue-ui-timer.js +1 -1
  58. package/dist/components/vue-ui-tiremarks.js +1 -1
  59. package/dist/components/vue-ui-treemap.js +1 -1
  60. package/dist/components/vue-ui-vertical-bar.js +1 -1
  61. package/dist/components/vue-ui-waffle.js +1 -1
  62. package/dist/components/vue-ui-wheel.js +1 -1
  63. package/dist/components/vue-ui-word-cloud.js +1 -1
  64. package/dist/components/vue-ui-world.js +1 -1
  65. package/dist/components/vue-ui-xy-canvas.js +1 -1
  66. package/dist/components/vue-ui-xy.js +1 -1
  67. package/dist/style.css +1 -1
  68. package/dist/types/vue-data-ui.d.ts +8 -2
  69. package/dist/{useNestedProp-CWo6bftQ.js → useNestedProp-BaGpMaAh.js} +7 -1
  70. package/dist/{vue-data-ui-BJ4MpiMs.js → vue-data-ui-CSw0QfYc.js} +65 -65
  71. package/dist/vue-data-ui.js +66 -66
  72. package/dist/{vue-ui-3d-bar-B6gmSXdI.js → vue-ui-3d-bar-CU7rBxLX.js} +3 -3
  73. package/dist/{vue-ui-accordion-DSdZUn2C.js → vue-ui-accordion-D5cPubW1.js} +1 -1
  74. package/dist/{vue-ui-age-pyramid-DcNw2mcF.js → vue-ui-age-pyramid-6BQ-MTtZ.js} +3 -3
  75. package/dist/{vue-ui-annotator-DRaH8hXn.js → vue-ui-annotator-DtD0jPWt.js} +2 -2
  76. package/dist/{vue-ui-bullet-BQ7aEBcL.js → vue-ui-bullet-CtasZXxi.js} +3 -3
  77. package/dist/{vue-ui-candlestick-D1gnLq1W.js → vue-ui-candlestick-h5r2XE89.js} +3 -3
  78. package/dist/{vue-ui-carousel-table-Csgs4BQP.js → vue-ui-carousel-table-Bvl9FDFL.js} +2 -2
  79. package/dist/{vue-ui-chestnut-CdDGipKT.js → vue-ui-chestnut-BT9p5HVx.js} +2 -2
  80. package/dist/{vue-ui-chord-CFXX3Zr6.js → vue-ui-chord-CZxBkkGQ.js} +3 -3
  81. package/dist/vue-ui-circle-pack-D8FyhOvX.js +868 -0
  82. package/dist/{vue-ui-cursor-BMe8ZiV6.js → vue-ui-cursor-CC7T1GfH.js} +1 -1
  83. package/dist/{vue-ui-dashboard-5m_85qb6.js → vue-ui-dashboard-Ul1i3-oG.js} +67 -66
  84. package/dist/{vue-ui-digits-D382I0-w.js → vue-ui-digits-rtZhtT7Q.js} +1 -1
  85. package/dist/{vue-ui-donut-BedgcXDU.js → vue-ui-donut-6la6ApCC.js} +3 -3
  86. package/dist/{vue-ui-donut-evolution-CQvFPqd-.js → vue-ui-donut-evolution-B9qkCeTb.js} +3 -3
  87. package/dist/{vue-ui-dumbbell-eEEyZSqh.js → vue-ui-dumbbell-v3jggOfN.js} +3 -3
  88. package/dist/{vue-ui-flow-BdpgSvoa.js → vue-ui-flow-CWOhXcLe.js} +3 -3
  89. package/dist/{vue-ui-funnel-GUKwgO3W.js → vue-ui-funnel-0SiCPV-Z.js} +3 -3
  90. package/dist/{vue-ui-galaxy-CdxZ4Baa.js → vue-ui-galaxy-DEgjEUB0.js} +3 -3
  91. package/dist/{vue-ui-gauge-DjaJ4Xpc.js → vue-ui-gauge-ESMvX4nV.js} +3 -3
  92. package/dist/{vue-ui-gizmo-W_gbv96q.js → vue-ui-gizmo-CWIEq4YB.js} +2 -2
  93. package/dist/{vue-ui-heatmap-CYGsuTff.js → vue-ui-heatmap--hvf90_y.js} +4 -4
  94. package/dist/{vue-ui-history-plot-BYFktgOz.js → vue-ui-history-plot-CpIJlvM4.js} +3 -3
  95. package/dist/vue-ui-horizontal-bar-B4yRZ9dq.js +1429 -0
  96. package/dist/{vue-ui-kpi-CKMZDc3n.js → vue-ui-kpi-PyPAVDAf.js} +2 -2
  97. package/dist/{vue-ui-mini-loader-BN72OfS0.js → vue-ui-mini-loader-CRcsZUk3.js} +1 -1
  98. package/dist/{vue-ui-molecule-CNPl7cDa.js → vue-ui-molecule-Co47N5oX.js} +2 -2
  99. package/dist/{vue-ui-mood-radar-DDX1ZcNv.js → vue-ui-mood-radar-BBCcFqbc.js} +3 -3
  100. package/dist/{vue-ui-nested-donuts-DMWnKHkn.js → vue-ui-nested-donuts-CvgdDIRn.js} +3 -3
  101. package/dist/{vue-ui-onion-DuBZ9xjf.js → vue-ui-onion-BOOqUwnP.js} +3 -3
  102. package/dist/{vue-ui-parallel-coordinate-plot-BcSk-NfI.js → vue-ui-parallel-coordinate-plot-CR0rQQI2.js} +3 -3
  103. package/dist/{vue-ui-quadrant-gEIeFkmc.js → vue-ui-quadrant-OXKz7iwD.js} +3 -3
  104. package/dist/{vue-ui-quick-chart-CX62youq.js → vue-ui-quick-chart-xcyAPzCY.js} +2 -2
  105. package/dist/{vue-ui-radar-BQZGLL3S.js → vue-ui-radar-BEw42faF.js} +3 -3
  106. package/dist/{vue-ui-rating-DtzmtJwF.js → vue-ui-rating-DFSztiJk.js} +1 -1
  107. package/dist/{vue-ui-relation-circle-DWY-Cc7i.js → vue-ui-relation-circle-D2a47mVz.js} +3 -3
  108. package/dist/{vue-ui-ridgeline-wQogWUH2.js → vue-ui-ridgeline-DcMh5Jn8.js} +3 -3
  109. package/dist/{vue-ui-rings-CvXJ828s.js → vue-ui-rings-CzIptssM.js} +3 -3
  110. package/dist/{vue-ui-scatter-BS1T_X1W.js → vue-ui-scatter-DkAiGTYO.js} +3 -3
  111. package/dist/{vue-ui-skeleton-Bi9Pn6dP.js → vue-ui-skeleton-DibgcwmN.js} +2 -2
  112. package/dist/{vue-ui-smiley-OYyM-ukP.js → vue-ui-smiley-DXOpLaan.js} +1 -1
  113. package/dist/{vue-ui-spark-trend-D_hRfUDW.js → vue-ui-spark-trend-eABjXNqc.js} +2 -2
  114. package/dist/{vue-ui-sparkbar-85QlCiDC.js → vue-ui-sparkbar-BzqNj3P_.js} +19 -15
  115. package/dist/{vue-ui-sparkgauge-DEqIqSn_.js → vue-ui-sparkgauge-Bl_D5NJC.js} +2 -2
  116. package/dist/{vue-ui-sparkhistogram-DtM3am-n.js → vue-ui-sparkhistogram-CbWUOW-M.js} +2 -2
  117. package/dist/{vue-ui-sparkline-BA7iYfR2.js → vue-ui-sparkline-CN82fpd1.js} +2 -2
  118. package/dist/{vue-ui-sparkstackbar-sLareV67.js → vue-ui-sparkstackbar-BsvoBM2F.js} +2 -2
  119. package/dist/{vue-ui-stackbar-LdHgI3MV.js → vue-ui-stackbar-COMKpGb0.js} +3 -3
  120. package/dist/{vue-ui-stackline-ByukLAi3.js → vue-ui-stackline-BmzID3y3.js} +3 -3
  121. package/dist/{vue-ui-strip-plot-DVPy0eTe.js → vue-ui-strip-plot-B6Y5iTRi.js} +3 -3
  122. package/dist/{vue-ui-table-mP7agibA.js → vue-ui-table-D8V7eSk3.js} +3 -3
  123. package/dist/{vue-ui-table-heatmap-vQEFrjCX.js → vue-ui-table-heatmap-BbyoCxwN.js} +1 -1
  124. package/dist/{vue-ui-table-sparkline-B0F7fFcb.js → vue-ui-table-sparkline--n5zhrna.js} +2 -2
  125. package/dist/{vue-ui-thermometer-B7E0zgO2.js → vue-ui-thermometer-C1vWa-IH.js} +3 -3
  126. package/dist/{vue-ui-timer-DTiV6ift.js → vue-ui-timer-3gpgitWo.js} +3 -3
  127. package/dist/{vue-ui-tiremarks-CpaQB_6L.js → vue-ui-tiremarks-CsWRi530.js} +3 -3
  128. package/dist/{vue-ui-treemap-q_IPAEdy.js → vue-ui-treemap-DKGbznIC.js} +3 -3
  129. package/dist/{vue-ui-waffle-C3CJUG33.js → vue-ui-waffle-Bt7YPDoL.js} +3 -3
  130. package/dist/{vue-ui-wheel-D5E3I8Cu.js → vue-ui-wheel-CeHa66-x.js} +3 -3
  131. package/dist/{vue-ui-word-cloud-DIu7QPVH.js → vue-ui-word-cloud-CbirEOP_.js} +3 -3
  132. package/dist/{vue-ui-world-Z-h0J5T8.js → vue-ui-world-wmjBgk9Q.js} +2 -2
  133. package/dist/{vue-ui-xy-DXk2RT8d.js → vue-ui-xy-Bd7IIG8k.js} +4 -4
  134. package/dist/{vue-ui-xy-canvas-Cr13t9M5.js → vue-ui-xy-canvas-CGuAhUPl.js} +3 -3
  135. package/package.json +1 -1
  136. package/dist/vue-ui-circle-pack-Bu8VNQRl.js +0 -832
  137. package/dist/vue-ui-vertical-bar-BeVsAeU-.js +0 -1271
@@ -1,1271 +0,0 @@
1
- import { useCssVars as sa, defineAsyncComponent as Z, useSlots as ia, computed as f, ref as i, toRefs as ca, watch as Be, shallowRef as ht, onMounted as De, nextTick as he, onBeforeUnmount as da, createElementBlock as c, openBlock as u, unref as r, normalizeStyle as v, normalizeClass as j, createBlock as H, createCommentVNode as m, renderSlot as b, createVNode as ee, withCtx as h, normalizeProps as N, guardReactiveProps as z, createSlots as pe, createElementVNode as n, toDisplayString as p, Fragment as te, renderList as ae, mergeProps as pt, resolveDynamicComponent as va, withKeys as ha, createTextVNode as gt } from "vue";
2
- import { c as pa, t as ga, i as fa, p as q, W as Ne, j as ba, M as L, o as ze, g as ue, l as Ee, a as re, d as M, X as ya, s as Oe, h as ma, u as Ca, q as ka, x as xa, R as wa } from "./lib-C5BH09_g.js";
3
- import { t as _a, u as $a } from "./useResponsive-DfdjqQps.js";
4
- import { u as Aa, a as Ve } from "./useNestedProp-CWo6bftQ.js";
5
- import { u as Ta, B as Sa } from "./BaseScanner-BgWxam9d.js";
6
- import { u as La } from "./usePrinter-DCJzEiS8.js";
7
- import { u as Fa } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Pa } from "./useThemeCheck-DGJ31Vi5.js";
9
- import { u as Ba } from "./useTableResponsive-Cbx-ACcP.js";
10
- import { u as Da } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as Na } from "./useChartAccessibility-9icAAmYg.js";
12
- import ft from "./Legend-Web3GjlR.js";
13
- import za from "./vue-ui-accordion-DSdZUn2C.js";
14
- import Ea from "./Title-DfFUb9hd.js";
15
- import { _ as bt } from "./Shape-DE6X_t31.js";
16
- import Oa from "./img-DUzJeMlr.js";
17
- import { _ as Va } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- const yt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { separators: { color: "#4A4A4A" }, bars: { dataLabels: { color: "#CCCCCC" }, nameLabels: { color: "#CCCCCC" }, parentLabels: { color: "#CCCCCC" } }, highlighter: { color: "#CCCCCC" } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, mt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { bars: { borderRadius: 0, useGradient: !1, dataLabels: { color: "#424242" }, nameLabels: { color: "#424242" }, parentLabels: { color: "#424242" } }, highlighter: { color: "#FF8A65" }, separators: { show: !1 } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, Ct = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { bars: { borderRadius: 0, useGradient: !1, dataLabels: { color: "#BDBDBD" }, nameLabels: { color: "#BDBDBD" }, parentLabels: { color: "#FFF8E1" } }, highlighter: { color: "#FF8A65" }, separators: { show: !1 } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, kt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { bars: { borderRadius: 0, useGradient: !1, dataLabels: { color: "#AACCAA" }, nameLabels: { color: "#99CC99" }, parentLabels: { color: "#99CC99" } }, highlighter: { color: "#66CC66" }, separators: { show: !1 } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, xt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { bars: { borderRadius: 8, useGradient: !0, dataLabels: { color: "#A0AC94" }, nameLabels: { color: "#8A9892" }, parentLabels: { color: "#8A9892" } }, highlighter: { color: "#8F837A" }, separators: { show: !1 } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, wt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { bars: { borderRadius: 0, useGradient: !0, dataLabels: { color: "#61747E" }, nameLabels: { color: "#8A9892" }, parentLabels: { color: "#8A9892" } }, highlighter: { color: "#50606C" }, separators: { show: !0, color: "#DEE1DE" } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, _t = {
19
- default: {},
20
- dark: yt,
21
- celebration: mt,
22
- celebrationNight: Ct,
23
- hack: kt,
24
- zen: xt,
25
- concrete: wt
26
- }, Wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27
- __proto__: null,
28
- celebration: mt,
29
- celebrationNight: Ct,
30
- concrete: wt,
31
- dark: yt,
32
- default: _t,
33
- hack: kt,
34
- zen: xt
35
- }, Symbol.toStringTag, { value: "Module" })), Ia = ["id"], Ma = ["onClick"], Ra = ["xmlns", "viewBox"], Ua = ["x", "width", "height"], Ga = ["id"], Wa = ["stop-color"], Xa = ["stop-color"], ja = { key: 1 }, Ha = ["x", "y", "width", "height", "fill", "rx"], qa = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ya = ["x", "y", "width", "height", "fill", "rx", "stroke", "stroke-width"], Ka = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ja = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qa = { class: "vue-ui-horizontal-bar-child-label" }, Za = ["x", "y", "text-anchor", "font-size", "fill", "font-weight"], el = ["x", "y", "font-size", "fill", "font-weight"], tl = { class: "vue-ui-horizontal-bar-parent-label" }, al = ["x", "y", "font-size", "fill", "font-weight"], ll = ["x", "y", "font-size", "fill", "font-weight"], ol = ["x", "y", "width", "height", "fill", "onMouseenter", "onMouseleave", "onClick"], nl = {
36
- key: 5,
37
- class: "vue-data-ui-watermark"
38
- }, ul = ["onClick"], rl = { style: "width:100%;padding-top: 36px;position:relative" }, sl = { class: "vue-ui-data-table" }, il = { key: 0 }, cl = { style: { width: "100%" } }, dl = ["data-cell"], vl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, hl = ["data-cell"], pl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, gl = ["data-cell"], fl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, bl = ["data-cell"], yl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, ml = ["data-cell"], Cl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, kl = ["data-cell"], xl = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, wl = ["data-cell"], _l = { style: { display: "flex", "align-items": "center", gap: "5px", "justify-content": "flex-end", width: "100%", "padding-right": "3px" } }, $l = {
39
- __name: "vue-ui-vertical-bar",
40
- props: {
41
- config: {
42
- type: Object,
43
- default() {
44
- return {};
45
- }
46
- },
47
- dataset: {
48
- type: Array,
49
- default() {
50
- return [];
51
- }
52
- }
53
- },
54
- emits: ["selectLegend"],
55
- setup($t, { expose: At, emit: Tt }) {
56
- sa((t) => ({
57
- a360556e: t.tdo
58
- }));
59
- const St = Z(() => import("./Tooltip-WD0Ros6G.js")), Ie = Z(() => import("./BaseIcon-CofSxalQ.js")), Lt = Z(() => import("./PenAndPaper-HCZQTkqi.js")), Ft = Z(() => import("./UserOptions-B3I-s3Lw.js")), Pt = Z(() => import("./PackageVersion-ChF5viKP.js")), Bt = Z(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_vertical_bar: Dt } = Aa(), { isThemeValid: Nt, warnInvalidTheme: zt } = Pa(), Et = ia(), C = $t, ge = f({
60
- get() {
61
- return !!C.dataset && C.dataset.length;
62
- },
63
- set(t) {
64
- return t;
65
- }
66
- }), S = i(pa()), fe = i(!1), be = i(""), le = i(0), Ot = i(null), Me = i(0), F = i(null), Re = i(null), ye = i(null), Ue = i(null), Ge = i(null), We = i(0), me = i(0), Y = i(null), oe = i(null), Ce = i(null), Vt = Tt, e = i($e()), It = f(() => [
67
- { name: "", value: 6, color: "#d9d9d9" },
68
- { name: "", value: 5, color: "#d9d9d9" },
69
- { name: "", value: 4, color: "#d9d9d9" },
70
- { name: "", value: 3, color: "#d9d9d9" },
71
- { name: "", value: 2, color: "#d9d9d9" },
72
- { name: "", value: 1, color: "#d9d9d9" }
73
- ]), { loading: Xe, FINAL_DATASET: ke, manualLoading: xe } = Ta({
74
- ...ca(C),
75
- FINAL_CONFIG: e,
76
- prepareConfig: $e,
77
- callback: () => {
78
- Promise.resolve().then(async () => {
79
- J(), _.value.showTable = e.value.table.show, await V();
80
- });
81
- },
82
- skeletonDataset: It.value,
83
- skeletonConfig: ga({
84
- defaultConfig: e.value,
85
- userConfig: {
86
- useCssAnimation: !1,
87
- userOptions: { show: !1 },
88
- table: { show: !1 },
89
- style: {
90
- chart: {
91
- backgroundColor: "#99999930",
92
- layout: {
93
- bars: {
94
- offsetX: 110,
95
- dataLabels: {
96
- color: "transparent",
97
- value: {
98
- prefix: "",
99
- suffix: "",
100
- formatter: null
101
- }
102
- },
103
- nameLabels: {
104
- color: "transparent"
105
- }
106
- },
107
- separators: {
108
- color: "#7A7A7A"
109
- }
110
- },
111
- legend: {
112
- show: !0,
113
- backgroundColor: "transparent",
114
- color: "transparent",
115
- prefix: "",
116
- suffix: "",
117
- formatter: null
118
- },
119
- title: {
120
- color: "#1A1A1A",
121
- subtitle: {
122
- color: "#5A5A5A"
123
- }
124
- }
125
- }
126
- }
127
- }
128
- })
129
- }), { userOptionsVisible: we, setUserOptionsVisibility: je, keepUserOptionState: He } = Da({ config: e.value }), { svgRef: _e } = Na({ config: e.value.style.chart.title });
130
- function $e() {
131
- const t = Ve({
132
- userConfig: C.config,
133
- defaultConfig: Dt
134
- });
135
- let l = {};
136
- const a = t.theme;
137
- if (a)
138
- if (!Nt.value(t))
139
- zt(t), l = t;
140
- else {
141
- const o = Ve({
142
- userConfig: _t[a] || C.config,
143
- defaultConfig: t
144
- });
145
- l = {
146
- ...Ve({
147
- userConfig: C.config,
148
- defaultConfig: o
149
- }),
150
- customPalette: t.customPalette.length ? t.customPalette : fa[a] || q
151
- };
152
- }
153
- else
154
- l = t;
155
- return C.config && Ne(C.config, "events.datapointEnter") ? l.events.datapointEnter = C.config.events.datapointEnter : l.events.datapointEnter = null, C.config && Ne(C.config, "events.datapointLeave") ? l.events.datapointLeave = C.config.events.datapointLeave : l.events.datapointLeave = null, C.config && Ne(C.config, "events.datapointClick") ? l.events.datapointClick = C.config.events.datapointClick : l.events.datapointClick = null, l;
156
- }
157
- Be(() => C.config, (t) => {
158
- Xe.value || (e.value = $e()), we.value = !e.value.userOptions.showOnChartHover, tt(), We.value += 1, me.value += 1, g.value = e.value.style.chart.layout.bars.height, k.value = e.value.style.chart.layout.bars.gap, _.value.showTable = e.value.table.show, _.value.sortDesc = e.value.style.chart.layout.bars.sort === "desc", _.value.showTooltip = e.value.style.chart.tooltip.show;
159
- }, { deep: !0 }), Be(() => C.dataset, (t) => {
160
- Array.isArray(t) && t.length > 0 && (xe.value = !1), J();
161
- }, { deep: !0 });
162
- const { isPrinting: qe, isImaging: Ye, generatePdf: Ke, generateImage: Je } = La({
163
- elementId: `vue-ui-vertical-bar_${S.value}`,
164
- fileName: e.value.style.chart.title.text || "vue-ui-vertical-bar",
165
- options: e.value.userOptions.print
166
- }), Mt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qe = f(() => ba(e.value.customPalette)), Ze = i(null), Rt = f(() => e.value.table.responsiveBreakpoint), O = ht(null), K = ht(null), se = i("0 0 10 10"), P = f(() => {
167
- const [t, l, a, o] = se.value.split(" ").map(Number);
168
- return { x: t, y: l, width: a, height: o };
169
- });
170
- De(async () => {
171
- await he(), tt(), V();
172
- });
173
- async function V() {
174
- if (se.value = `0 0 ${$.value.width} ${s.value.fullHeight}`, !e.value.autoSize || !Y.value) return;
175
- const t = Y.value.querySelectorAll(".vue-ui-horizontal-bar-parent-label"), l = Y.value.querySelectorAll(".vue-ui-horizontal-bar-child-label");
176
- if (t && t.length) {
177
- const y = Math.max(...Array.from(t).flatMap((d) => {
178
- const x = d.querySelectorAll("text");
179
- return x.length ? Array.from(x).map((Q) => Q.getBBox().width) : 0;
180
- })), w = Math.max(...Array.from(l).flatMap((d) => {
181
- const x = d.querySelectorAll("text");
182
- return x.length ? Array.from(x).map((Q) => Q.getBBox().width) : 0;
183
- }));
184
- Array.from(t).forEach((d) => {
185
- const x = d.querySelectorAll("text");
186
- Array.from(x).forEach(async (Q) => {
187
- Q.setAttribute("x", 0), Q.setAttribute("x", L(-y - w));
188
- });
189
- });
190
- }
191
- await he();
192
- const a = Y.value ? Y.value.getBBox() : 0, o = e.value.style.chart.layout.bars.dataLabels.offsetX;
193
- se.value = [
194
- a.x + -o,
195
- 0,
196
- a.width + o * 2,
197
- s.value.fullHeight
198
- ].join(" ");
199
- }
200
- let et;
201
- De(() => {
202
- F.value && (et = new ResizeObserver((t) => {
203
- for (const l of t) {
204
- const { width: a, height: o } = l.contentRect;
205
- if (a > 0 && o > 0) {
206
- Promise.resolve().then(async () => {
207
- J(), await V();
208
- });
209
- break;
210
- }
211
- }
212
- }), et.observe(F.value.parentElement));
213
- });
214
- const ie = f(() => !!e.value.debug), Ae = i(0);
215
- function tt() {
216
- if (ze(C.dataset) && (ue({
217
- componentName: "VueUiVerticalBar",
218
- type: "dataset",
219
- debug: ie.value
220
- }), ge.value = !1, xe.value = !0), le.value = ke.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), ze(C.dataset) || (xe.value = e.value.loading), e.value.responsive) {
221
- const t = _a(() => {
222
- const { width: l, height: a } = $a({
223
- chart: F.value,
224
- title: e.value.style.chart.title.text ? Re.value : null,
225
- legend: e.value.style.chart.legend.show ? ye.value : null,
226
- source: Ue.value,
227
- noTitle: Ge.value
228
- });
229
- Ae.value = a / 3, requestAnimationFrame(async () => {
230
- ot.value = l;
231
- const o = k.value * (le.value - 1);
232
- g.value = (a - o) / le.value, await he(), V();
233
- });
234
- });
235
- O.value && (K.value && O.value.unobserve(K.value), O.value.disconnect()), O.value = new ResizeObserver(t), K.value = F.value.parentNode, O.value.observe(K.value), e.value.autoSize && V();
236
- }
237
- }
238
- da(() => {
239
- O.value && (K.value && O.value.unobserve(K.value), O.value.disconnect());
240
- });
241
- const _ = i({
242
- showTable: e.value.table.show,
243
- sortDesc: e.value.style.chart.layout.bars.sort === "desc",
244
- showTooltip: e.value.style.chart.tooltip.show
245
- }), at = f(() => _.value.sortDesc), B = f(() => (ke.value.forEach((t, l) => {
246
- !t.value && !t.children && ue({
247
- componentName: "VueUiVerticalBar",
248
- type: "datasetAttributeEmpty",
249
- property: `value (index ${l})`,
250
- debug: ie.value
251
- }), t.children && (ze(t.children) ? ue({
252
- componentName: "VueUiVerticalBar",
253
- type: "datasetAttributeEmpty",
254
- property: `children (index ${l})`,
255
- debug: ie.value
256
- }) : t.children.forEach((a, o) => {
257
- [null, void 0].includes(a.name) && ue({
258
- componentName: "VueUiVerticalBar",
259
- type: "datasetSerieAttribute",
260
- property: "name",
261
- key: "children",
262
- index: o,
263
- debug: ie.value
264
- });
265
- }));
266
- }), ke.value.map((t, l) => {
267
- const a = `vertical_parent_${l}_${S.value}`, o = t.children && t.children.length > 0, y = L(t.value ? t.value : o ? t.children.map((d) => d.value || 0).reduce((d, x) => d + x, 0) : 0), w = y >= 0 ? 1 : -1;
268
- return {
269
- ...t,
270
- id: a,
271
- absoluteIndex: l,
272
- shape: "square",
273
- opacity: A.value.includes(a) ? 0.5 : 1,
274
- value: Math.abs(y),
275
- sign: w,
276
- hasChildren: o,
277
- isChild: !1,
278
- segregate: () => R(a),
279
- isSegregated: A.value.includes(a),
280
- color: Ee(t.color) || Qe.value[l] || q[l] || q[l % q.length],
281
- children: !t.children || !t.children.length ? [] : t.children.toSorted(ce.value ? () => 0 : (d, x) => at.value ? x.value - d.value : d.value - x.value).map((d, x) => ({
282
- ...d,
283
- value: L(Math.abs(d.value)),
284
- absoluteIndex: l,
285
- sign: d.value >= 0 ? 1 : -1,
286
- isChild: !0,
287
- parentId: a,
288
- parentName: t.name,
289
- parentValue: y,
290
- parentSign: w,
291
- id: `vertical_child_${l}_${x}_${S.value}`,
292
- childIndex: x,
293
- color: Ee(d.color) || Ee(t.color) || Qe.value[l] || q[l] || q[l % q.length]
294
- })).map((d, x) => ({
295
- ...d,
296
- isFirstChild: x === 0,
297
- isLastChild: x === t.children.length - 1
298
- }))
299
- };
300
- }).toSorted(ce.value ? () => 0 : (t, l) => at.value ? l.value - t.value : t.value - l.value))), lt = f(() => ({
301
- cy: "vertical-bar-div-legend",
302
- backgroundColor: e.value.style.chart.legend.backgroundColor,
303
- color: e.value.style.chart.legend.color,
304
- fontSize: e.value.style.chart.legend.fontSize,
305
- paddingBottom: 12,
306
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
307
- })), g = i(e.value.style.chart.layout.bars.height), k = i(e.value.style.chart.layout.bars.gap), Ut = f(() => (g.value + k.value) * le.value), ot = i(512), $ = f(() => ({
308
- width: ot.value,
309
- height: Ut.value,
310
- padding: {
311
- top: 12,
312
- left: (e.value.autoSize ? 0 : 128) + e.value.style.chart.layout.bars.offsetX,
313
- right: (e.value.autoSize ? 0 : 64) + e.value.style.chart.layout.bars.paddingRight,
314
- bottom: 12
315
- }
316
- })), s = f(() => ({
317
- fullHeight: $.value.padding.top + $.value.padding.bottom + $.value.height,
318
- top: $.value.padding.top,
319
- left: $.value.padding.left,
320
- right: $.value.width - $.value.padding.right,
321
- bottom: $.value.padding.top + $.value.height,
322
- width: $.value.width - ($.value.padding.left + $.value.padding.right)
323
- }));
324
- async function J() {
325
- le.value = U.value.flatMap((t) => t.children && t.children.length > 0 ? t.children.length : 1).reduce((t, l) => t + l, 0), e.value.autoSize && await V();
326
- }
327
- const A = i([]);
328
- async function R(t) {
329
- if (A.value.includes(t))
330
- A.value = A.value.filter((l) => l !== t);
331
- else {
332
- if (A.value.length === B.value.length - 1) return;
333
- A.value.push(t);
334
- }
335
- J(), await he(), e.value.autoSize && V(), Vt("selectLegend", U.value);
336
- }
337
- function nt(t) {
338
- if (!B.value.length)
339
- return e.value.debug && console.warn("VueUiHorizontalBar - There are no series to show."), null;
340
- const l = B.value.find((a) => a.name === t);
341
- return l || (e.value.debug && console.warn(`VueUiHorizontalBar - Series name not found "${t}"`), null);
342
- }
343
- function Gt(t) {
344
- const l = nt(t);
345
- l !== null && A.value.includes(l.id) && R(l.id);
346
- }
347
- function Wt(t) {
348
- const l = nt(t);
349
- l !== null && (A.value.includes(l.id) || R(l.id));
350
- }
351
- const U = f(() => B.value.filter((t) => !A.value.includes(t.id))), E = f(() => U.value.map((t) => Math.abs(t.value)).reduce((t, l) => t + l, 0));
352
- function ut(t, l = !1, a = 0) {
353
- return l ? M({
354
- v: L(Math.abs(t) / E.value * 100),
355
- s: "%",
356
- r: a
357
- }) : Math.abs(t) / E.value;
358
- }
359
- const G = f(() => U.value.flatMap((t) => t.hasChildren ? t.children : t)), W = f(() => G.value.map((t) => t.sign).includes(-1)), Xt = f(() => Math.max(...U.value.flatMap((t) => t.children && t.children.length ? Math.max(...t.children.map((l) => l.value)) : t.value)));
360
- function T(t) {
361
- const l = t / Xt.value;
362
- return s.value.width / (W.value ? 2 : 1) * l;
363
- }
364
- function jt(t) {
365
- return T(t) + s.value.left;
366
- }
367
- function ne(t, l) {
368
- const a = U.value.find((w) => w.id === t.parentId), o = s.value.top + (k.value + g.value) * l, y = a.children.length * (k.value + g.value);
369
- return {
370
- y: o + y / 2 - e.value.style.chart.layout.bars.parentLabels.fontSize,
371
- name: a.name,
372
- value: [void 0, NaN, null].includes(a.value) ? "" : a.sign === 1 ? a.value : -a.value,
373
- percentageToTotal: isNaN(a.value / E.value) ? "" : ut(a.value, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage),
374
- sign: a.sign
375
- };
376
- }
377
- function Ht() {
378
- return U.value;
379
- }
380
- const Te = i(null), Se = i(null);
381
- function qt({ datapoint: t, seriesIndex: l }) {
382
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
383
- }
384
- function Yt({ datapoint: t, seriesIndex: l }) {
385
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l }), Ot.value = null, fe.value = !1, Te.value = null;
386
- }
387
- function Kt(t, l) {
388
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datpoint: t, seriesIndex: l }), Se.value = {
389
- datapoint: t,
390
- seriesIndex: l,
391
- series: B.value,
392
- config: e.value
393
- }, fe.value = !0, Te.value = t.id;
394
- let a = "";
395
- const o = t.isChild ? t.parentName : t.name, y = t.isChild ? t.name : "", w = e.value.style.chart.tooltip.customFormat;
396
- xa(w) && wa(() => w({
397
- datapoint: t,
398
- series: B.value,
399
- config: e.value,
400
- seriesIndex: l
401
- })) ? be.value = w({
402
- datapoint: t,
403
- series: B.value,
404
- config: e.value,
405
- seriesIndex: l
406
- }) : (a += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;text-align:left;">
407
- <div style="display:flex;align-items:center;gap:4px;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="${t.color}"/>${Et.pattern ? `<rect x="0" y="0" height="60" width="60" rx="5" stroke="none" fill="url(#pattern_${S.value}_${t.absoluteIndex})"/>` : ""}</svg> ${o}</div>
408
- ${y ? `<div>${y}</div>` : ""}
409
- </div>`, e.value.style.chart.tooltip.showValue && (a += `<div>${e.value.translations.value}: <b>${re(
410
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
411
- t.sign === 1 ? t.value : -t.value,
412
- M({
413
- p: e.value.style.chart.tooltip.prefix,
414
- v: t.sign === 1 ? t.value : -t.value,
415
- s: e.value.style.chart.tooltip.suffix,
416
- r: e.value.style.chart.tooltip.roundingValue
417
- }),
418
- { datapoint: t, seriesIndex: l }
419
- )}</b></div>`), e.value.style.chart.tooltip.showPercentage && (a += `<div>${e.value.translations.percentageToTotal} : <b>${M({
420
- v: Math.abs(t.value) / E.value * 100,
421
- s: "%",
422
- r: e.value.style.chart.tooltip.roundingPercentage
423
- })}</b></div>`, t.isChild && (a += `<div>${e.value.translations.percentageToSerie}: <b>${M({
424
- v: Math.abs(t.value) / Math.abs(t.parentValue) * 100,
425
- s: "%",
426
- r: e.value.style.chart.tooltip.roundingPercentage
427
- })}</b></div>`)), be.value = `<div style="text-align:left">${a}</div>`);
428
- }
429
- function rt(t, l, a, o) {
430
- if (!e.value.style.chart.layout.bars.dataLabels.value.show)
431
- return "";
432
- const y = re(
433
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
434
- L(o === -1 && t >= 0 ? -t : t),
435
- M({
436
- p: e.value.style.chart.layout.bars.dataLabels.value.prefix,
437
- v: L(o === -1 && t >= 0 ? -t : t),
438
- s: e.value.style.chart.layout.bars.dataLabels.value.suffix,
439
- r: e.value.style.chart.layout.bars.dataLabels.value.roundingValue
440
- }),
441
- { datapoint: l, seriesIndex: a }
442
- ), w = `(${ut(t, !0, e.value.style.chart.layout.bars.dataLabels.percentage.roundingPercentage)})`;
443
- return `${y}${e.value.style.chart.layout.bars.dataLabels.percentage.show ? ` ${w}` : ""}`;
444
- }
445
- const D = f(() => {
446
- const t = [
447
- e.value.translations.parentName,
448
- e.value.translations.value,
449
- e.value.translations.percentageToTotal,
450
- e.value.translations.childName,
451
- e.value.translations.value,
452
- e.value.translations.percentageToSerie,
453
- e.value.translations.percentageToTotal
454
- ], l = G.value.map((a) => a.isChild ? a.isFirstChild ? {
455
- color: a.color,
456
- parentName: a.parentName,
457
- parentValue: a.parentValue,
458
- percentageToTotal: a.parentValue / E.value,
459
- childName: a.name,
460
- childValue: a.sign === 1 ? a.value : -a.value,
461
- childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
462
- childPercentageToTotal: Math.abs(a.value) / E.value
463
- } : {
464
- color: "",
465
- parentName: "",
466
- parentValue: "",
467
- percentageToTotal: "",
468
- childName: a.name,
469
- childValue: a.sign === 1 ? a.value : -a.value,
470
- childPercentageToParent: Math.abs(a.value) / Math.abs(a.parentValue),
471
- childPercentageToTotal: Math.abs(a.value) / E.value
472
- } : {
473
- color: a.color,
474
- parentName: a.name,
475
- parentValue: a.sign === 1 ? a.value : -a.value,
476
- percentageToTotal: Math.abs(a.value) / E.value,
477
- childName: "",
478
- childValue: "",
479
- childPercentageToParent: "",
480
- childPercentageToTotal: ""
481
- });
482
- return { head: t, body: l };
483
- });
484
- function Le(t = null) {
485
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = D.value.head, o = D.value.body.map((d) => [
486
- d.parentName,
487
- d.parentValue,
488
- d.percentageToTotal,
489
- d.childName,
490
- d.childValue,
491
- d.childPercentageToParent,
492
- d.childPercentageToTotal
493
- ]), y = l.concat([a]).concat(o), w = Ca(y);
494
- t ? t(w) : ka({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-vertical-bar" });
495
- }
496
- const X = i(!1);
497
- function st(t) {
498
- X.value = t, Me.value += 1;
499
- }
500
- function it() {
501
- _.value.showTable = !_.value.showTable;
502
- }
503
- const Jt = i({
504
- none: 0,
505
- asc: 1,
506
- desc: 2
507
- }), I = i(0), ce = i(!1);
508
- De(() => {
509
- ["none", "asc", "desc"].includes(e.value.style.chart.layout.bars.sort) || ue({
510
- componentName: "VueUiVerticalBar",
511
- type: "attributeWrongValue",
512
- property: "style.chart.layout.bars.sort",
513
- key: e.value.style.chart.layout.bars.sort
514
- }), I.value = Jt.value[e.value.style.chart.layout.bars.sort], _.value.sortDesc = I.value === 2, ce.value = I.value === 0;
515
- });
516
- function Qt() {
517
- I.value += 1, I.value > 2 && (I.value = 0);
518
- }
519
- function ct() {
520
- Qt(), _.value.sortDesc = I.value === 2, ce.value = I.value === 0, J();
521
- }
522
- function dt() {
523
- _.value.showTooltip = !_.value.showTooltip;
524
- }
525
- const de = i(!1);
526
- function Fe() {
527
- de.value = !de.value;
528
- }
529
- async function Zt({ scale: t = 2 } = {}) {
530
- if (!F.value) return;
531
- const { width: l, height: a } = F.value.getBoundingClientRect(), o = l / a, { imageUri: y, base64: w } = await Oa({ domElement: F.value, base64: !0, img: !0, scale: t });
532
- return {
533
- imageUri: y,
534
- base64: w,
535
- title: e.value.style.chart.title.text,
536
- width: l,
537
- height: a,
538
- aspectRatio: o
539
- };
540
- }
541
- const ve = f(() => {
542
- const t = e.value.table.useDialog && !e.value.table.show, l = _.value.showTable;
543
- return {
544
- component: t ? Bt : za,
545
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
546
- props: t ? {
547
- backgroundColor: e.value.table.th.backgroundColor,
548
- color: e.value.table.th.color,
549
- headerColor: e.value.table.th.color,
550
- headerBg: e.value.table.th.backgroundColor,
551
- isFullscreen: X.value,
552
- fullscreenParent: F.value,
553
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
554
- } : {
555
- hideDetails: !0,
556
- config: {
557
- open: l,
558
- maxHeight: 1e4,
559
- body: {
560
- backgroundColor: e.value.style.chart.backgroundColor,
561
- color: e.value.style.chart.color
562
- },
563
- head: {
564
- backgroundColor: e.value.style.chart.backgroundColor,
565
- color: e.value.style.chart.color
566
- }
567
- }
568
- }
569
- };
570
- });
571
- Be(() => _.value.showTable, (t) => {
572
- e.value.table.show || (t && e.value.table.useDialog && oe.value ? oe.value.open() : "close" in oe.value && oe.value.close());
573
- });
574
- const { isResponsive: ea } = Ba(Ze, Rt);
575
- function Pe() {
576
- _.value.showTable = !1, Ce.value && Ce.value.setTableIconState(!1);
577
- }
578
- const ta = f(() => B.value.map((t, l) => ({
579
- ...t,
580
- shape: "square",
581
- display: `${t.name}: ${re(
582
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
583
- t.value,
584
- M({
585
- p: e.value.style.chart.legend.prefix,
586
- v: t.value,
587
- s: e.value.style.chart.legend.suffix,
588
- r: e.value.style.chart.legend.roundingValue
589
- }),
590
- { datapoint: t, seriesIndex: l }
591
- )}`
592
- }))), aa = f(() => e.value.style.chart.backgroundColor), la = f(() => e.value.style.chart.legend), oa = f(() => e.value.style.chart.title), na = f(() => ta.value.map((t) => ({
593
- ...t,
594
- name: t.display
595
- }))), { exportSvg: ua, getSvg: ra } = Fa({
596
- svg: _e,
597
- title: oa,
598
- legend: la,
599
- legendItems: na,
600
- backgroundColor: aa
601
- });
602
- async function vt({ isCb: t }) {
603
- if (t) {
604
- const { blob: l, url: a, text: o, dataUrl: y } = await ra();
605
- e.value.userOptions.callbacks.svg({ blob: l, url: a, text: o, dataUrl: y });
606
- } else
607
- ua();
608
- }
609
- return At({
610
- autoSize: V,
611
- // v3
612
- getData: Ht,
613
- getImage: Zt,
614
- recalculateHeight: J,
615
- generatePdf: Ke,
616
- generateCsv: Le,
617
- generateImage: Je,
618
- generateSvg: vt,
619
- hideSeries: Wt,
620
- showSeries: Gt,
621
- toggleTable: it,
622
- toggleSort: ct,
623
- toggleTooltip: dt,
624
- toggleAnnotator: Fe,
625
- toggleFullscreen: st
626
- }), (t, l) => (u(), c("div", {
627
- class: j(`vue-data-ui-component vue-ui-vertical-bar ${X.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"} ${e.value.responsive && e.value.autoSize ? "vue-ui-vertical-bar-autosize" : ""}`),
628
- ref_key: "verticalBarChart",
629
- ref: F,
630
- id: `vue-ui-vertical-bar_${S.value}`,
631
- style: v(`padding-top:${e.value.responsive && e.value.autoSize ? `${Ae.value / 2}px` : "0"}; font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? e.value.autoSize ? `height:calc(100% - ${Ae.value}px` : "height: 100%" : ""}`),
632
- onMouseenter: l[3] || (l[3] = () => r(je)(!0)),
633
- onMouseleave: l[4] || (l[4] = () => r(je)(!1))
634
- }, [
635
- e.value.userOptions.buttons.annotator ? (u(), H(r(Lt), {
636
- key: 0,
637
- svgRef: r(_e),
638
- backgroundColor: e.value.style.chart.backgroundColor,
639
- color: e.value.style.chart.color,
640
- active: de.value,
641
- onClose: Fe
642
- }, {
643
- "annotator-action-close": h(() => [
644
- b(t.$slots, "annotator-action-close", {}, void 0, !0)
645
- ]),
646
- "annotator-action-color": h(({ color: a }) => [
647
- b(t.$slots, "annotator-action-color", N(z({ color: a })), void 0, !0)
648
- ]),
649
- "annotator-action-draw": h(({ mode: a }) => [
650
- b(t.$slots, "annotator-action-draw", N(z({ mode: a })), void 0, !0)
651
- ]),
652
- "annotator-action-undo": h(({ disabled: a }) => [
653
- b(t.$slots, "annotator-action-undo", N(z({ disabled: a })), void 0, !0)
654
- ]),
655
- "annotator-action-redo": h(({ disabled: a }) => [
656
- b(t.$slots, "annotator-action-redo", N(z({ disabled: a })), void 0, !0)
657
- ]),
658
- "annotator-action-delete": h(({ disabled: a }) => [
659
- b(t.$slots, "annotator-action-delete", N(z({ disabled: a })), void 0, !0)
660
- ]),
661
- _: 3
662
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : m("", !0),
663
- Mt.value ? (u(), c("div", {
664
- key: 1,
665
- ref_key: "noTitle",
666
- ref: Ge,
667
- class: "vue-data-ui-no-title-space",
668
- style: "height:36px; width: 100%;background:transparent"
669
- }, null, 512)) : m("", !0),
670
- e.value.style.chart.title.text ? (u(), c("div", {
671
- key: 2,
672
- ref_key: "chartTitle",
673
- ref: Re,
674
- style: "width:100%;background:transparent;padding-bottom:12px"
675
- }, [
676
- (u(), H(Ea, {
677
- key: `title_${We.value}`,
678
- config: {
679
- title: {
680
- cy: "vertical-bar-div-title",
681
- ...e.value.style.chart.title
682
- },
683
- subtitle: {
684
- cy: "vertical-bar-div-subtitle",
685
- ...e.value.style.chart.title.subtitle
686
- }
687
- }
688
- }, null, 8, ["config"]))
689
- ], 512)) : m("", !0),
690
- e.value.userOptions.show && ge.value && (r(He) || r(we)) ? (u(), H(r(Ft), {
691
- ref_key: "userOptionsRef",
692
- ref: Ce,
693
- key: `user_options_${Me.value}`,
694
- backgroundColor: e.value.style.chart.backgroundColor,
695
- color: e.value.style.chart.color,
696
- isImaging: r(Ye),
697
- isPrinting: r(qe),
698
- uid: S.value,
699
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
700
- hasPdf: e.value.userOptions.buttons.pdf,
701
- hasImg: e.value.userOptions.buttons.img,
702
- hasSvg: e.value.userOptions.buttons.svg,
703
- hasXls: e.value.userOptions.buttons.csv,
704
- hasTable: e.value.userOptions.buttons.table,
705
- hasSort: e.value.userOptions.buttons.sort,
706
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
707
- isFullscreen: X.value,
708
- isTooltip: _.value.showTooltip,
709
- titles: { ...e.value.userOptions.buttonTitles },
710
- chartElement: F.value,
711
- position: e.value.userOptions.position,
712
- hasAnnotator: e.value.userOptions.buttons.annotator,
713
- isAnnotation: de.value,
714
- callbacks: e.value.userOptions.callbacks,
715
- printScale: e.value.userOptions.print.scale,
716
- tableDialog: e.value.table.useDialog,
717
- onToggleFullscreen: st,
718
- onGeneratePdf: r(Ke),
719
- onGenerateCsv: Le,
720
- onGenerateImage: r(Je),
721
- onGenerateSvg: vt,
722
- onToggleTable: it,
723
- onToggleSort: ct,
724
- onToggleTooltip: dt,
725
- onToggleAnnotator: Fe,
726
- style: v({
727
- visibility: r(He) ? r(we) ? "visible" : "hidden" : "visible"
728
- })
729
- }, pe({ _: 2 }, [
730
- t.$slots.menuIcon ? {
731
- name: "menuIcon",
732
- fn: h(({ isOpen: a, color: o }) => [
733
- b(t.$slots, "menuIcon", N(z({ isOpen: a, color: o })), void 0, !0)
734
- ]),
735
- key: "0"
736
- } : void 0,
737
- t.$slots.optionTooltip ? {
738
- name: "optionTooltip",
739
- fn: h(() => [
740
- b(t.$slots, "optionTooltip", {}, void 0, !0)
741
- ]),
742
- key: "1"
743
- } : void 0,
744
- t.$slots.optionPdf ? {
745
- name: "optionPdf",
746
- fn: h(() => [
747
- b(t.$slots, "optionPdf", {}, void 0, !0)
748
- ]),
749
- key: "2"
750
- } : void 0,
751
- t.$slots.optionCsv ? {
752
- name: "optionCsv",
753
- fn: h(() => [
754
- b(t.$slots, "optionCsv", {}, void 0, !0)
755
- ]),
756
- key: "3"
757
- } : void 0,
758
- t.$slots.optionImg ? {
759
- name: "optionImg",
760
- fn: h(() => [
761
- b(t.$slots, "optionImg", {}, void 0, !0)
762
- ]),
763
- key: "4"
764
- } : void 0,
765
- t.$slots.optionSvg ? {
766
- name: "optionSvg",
767
- fn: h(() => [
768
- b(t.$slots, "optionSvg", {}, void 0, !0)
769
- ]),
770
- key: "5"
771
- } : void 0,
772
- t.$slots.optionTable ? {
773
- name: "optionTable",
774
- fn: h(() => [
775
- b(t.$slots, "optionTable", {}, void 0, !0)
776
- ]),
777
- key: "6"
778
- } : void 0,
779
- t.$slots.optionLabels ? {
780
- name: "optionLabels",
781
- fn: h(() => [
782
- b(t.$slots, "optionLabels", {}, void 0, !0)
783
- ]),
784
- key: "7"
785
- } : void 0,
786
- t.$slots.optionSort ? {
787
- name: "optionSort",
788
- fn: h(() => [
789
- b(t.$slots, "optionSort", {}, void 0, !0)
790
- ]),
791
- key: "8"
792
- } : void 0,
793
- t.$slots.optionFullscreen ? {
794
- name: "optionFullscreen",
795
- fn: h(({ toggleFullscreen: a, isFullscreen: o }) => [
796
- b(t.$slots, "optionFullscreen", N(z({ toggleFullscreen: a, isFullscreen: o })), void 0, !0)
797
- ]),
798
- key: "9"
799
- } : void 0,
800
- t.$slots.optionAnnotator ? {
801
- name: "optionAnnotator",
802
- fn: h(({ toggleAnnotator: a, isAnnotator: o }) => [
803
- b(t.$slots, "optionAnnotator", N(z({ toggleAnnotator: a, isAnnotator: o })), void 0, !0)
804
- ]),
805
- key: "10"
806
- } : void 0
807
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasSort", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : m("", !0),
808
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "top" ? (u(), c("div", {
809
- key: 4,
810
- ref_key: "chartLegend",
811
- ref: ye
812
- }, [
813
- (u(), H(ft, {
814
- key: `legend_top_${me.value}`,
815
- legendSet: B.value,
816
- config: lt.value,
817
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => R(a.id))
818
- }, pe({
819
- item: h(({ legend: a, index: o }) => [
820
- n("div", {
821
- onClick: (y) => R(a.id),
822
- style: v(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
823
- }, p(a.name) + ": " + p(r(re)(
824
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
825
- a.value,
826
- r(M)({
827
- p: e.value.style.chart.legend.prefix,
828
- v: a.value,
829
- s: e.value.style.chart.legend.suffix,
830
- r: e.value.style.chart.legend.roundingValue
831
- }),
832
- { datapoint: a, seriesIndex: o }
833
- )), 13, Ma)
834
- ]),
835
- _: 2
836
- }, [
837
- t.$slots.pattern ? {
838
- name: "legend-pattern",
839
- fn: h(({ legend: a, index: o }) => [
840
- ee(bt, {
841
- shape: a.shape,
842
- radius: 30,
843
- stroke: "none",
844
- plot: { x: 30, y: 30 },
845
- fill: `url(#pattern_${S.value}_${o})`
846
- }, null, 8, ["shape", "fill"])
847
- ]),
848
- key: "0"
849
- } : void 0
850
- ]), 1032, ["legendSet", "config"]))
851
- ], 512)) : m("", !0),
852
- (u(), c("svg", {
853
- ref_key: "svgRef",
854
- ref: _e,
855
- xmlns: r(ya),
856
- class: j({ "vue-data-ui-fullscreen--on": X.value, "vue-data-ui-fulscreen--off": !X.value }),
857
- viewBox: se.value,
858
- style: v(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
859
- }, [
860
- n("g", {
861
- ref_key: "G",
862
- ref: Y,
863
- class: "vue-data-ui-g"
864
- }, [
865
- ee(r(Pt)),
866
- t.$slots["chart-background"] ? (u(), c("foreignObject", {
867
- key: 0,
868
- x: P.value.x,
869
- y: 0,
870
- width: P.value.width,
871
- height: P.value.height,
872
- style: {
873
- pointerEvents: "none"
874
- }
875
- }, [
876
- b(t.$slots, "chart-background", {}, void 0, !0)
877
- ], 8, Ua)) : m("", !0),
878
- (u(!0), c(te, null, ae(G.value, (a, o) => (u(), c("linearGradient", {
879
- x1: "0%",
880
- y1: "0%",
881
- x2: "100%",
882
- y2: "0%",
883
- id: `vertical_bar_gradient_${S.value}_${o}`
884
- }, [
885
- n("stop", {
886
- offset: "0%",
887
- "stop-color": a.color
888
- }, null, 8, Wa),
889
- n("stop", {
890
- offset: "100%",
891
- "stop-color": r(Oe)(r(ma)(a.color, 0.03), 100 - e.value.style.chart.layout.bars.gradientIntensity)
892
- }, null, 8, Xa)
893
- ], 8, Ga))), 256)),
894
- t.$slots.pattern ? (u(), c("g", ja, [
895
- (u(!0), c(te, null, ae(G.value, (a) => (u(), c("defs", null, [
896
- b(t.$slots, "pattern", pt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${S.value}_${a.absoluteIndex}` }), void 0, !0)
897
- ]))), 256))
898
- ])) : m("", !0),
899
- (u(!0), c(te, null, ae(G.value, (a, o) => (u(), c("g", null, [
900
- n("rect", {
901
- x: r(L)(W.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : s.value.left),
902
- y: s.value.top + (k.value + g.value) * o,
903
- width: r(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
904
- height: g.value <= 0 ? 1e-4 : g.value,
905
- fill: e.value.style.chart.layout.bars.underlayerColor,
906
- rx: e.value.style.chart.layout.bars.borderRadius,
907
- class: j({ animated: e.value.useCssAnimation })
908
- }, null, 10, Ha)
909
- ]))), 256)),
910
- (u(!0), c(te, null, ae(G.value, (a, o) => (u(), c("g", null, [
911
- n("rect", {
912
- x: r(L)(W.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : s.value.left),
913
- y: s.value.top + (k.value + g.value) * o,
914
- width: r(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
915
- height: g.value <= 0 ? 1e-4 : g.value,
916
- fill: e.value.style.chart.layout.bars.useGradient ? `url(#vertical_bar_gradient_${S.value}_${o})` : r(Oe)(a.color, e.value.style.chart.layout.bars.fillOpacity),
917
- rx: e.value.style.chart.layout.bars.borderRadius,
918
- stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
919
- "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
920
- class: j({ animated: e.value.useCssAnimation })
921
- }, null, 10, qa),
922
- t.$slots.pattern ? (u(), c("rect", {
923
- key: 0,
924
- x: r(L)(W.value ? s.value.left + s.value.width / 2 - (a.sign === 1 ? 0 : T(a.value) <= 0 ? 1e-4 : T(a.value)) : s.value.left),
925
- y: s.value.top + (k.value + g.value) * o,
926
- width: r(L)(T(a.value) <= 0 ? 1e-4 : T(a.value)),
927
- height: g.value <= 0 ? 1e-4 : g.value,
928
- fill: `url(#pattern_${S.value}_${a.absoluteIndex})`,
929
- rx: e.value.style.chart.layout.bars.borderRadius,
930
- stroke: e.value.style.chart.layout.bars.useStroke ? a.color : "none",
931
- "stroke-width": e.value.style.chart.layout.bars.useStroke ? e.value.style.chart.layout.bars.strokeWidth : 0,
932
- class: j({ animated: e.value.useCssAnimation })
933
- }, null, 10, Ya)) : m("", !0),
934
- (!a.isChild || a.isLastChild) && e.value.style.chart.layout.separators.show && o !== G.value.length - 1 ? (u(), c("line", {
935
- key: 1,
936
- x1: P.value.x,
937
- x2: e.value.style.chart.layout.separators.fullWidth ? P.value.width - Math.abs(P.value.x) : s.value.left,
938
- y1: g.value + k.value / 2 + s.value.top + (k.value + g.value) * o,
939
- y2: g.value + k.value / 2 + s.value.top + (k.value + g.value) * o,
940
- stroke: e.value.style.chart.layout.separators.color,
941
- "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
942
- "stroke-linecap": "round",
943
- style: { transition: "none !important", animation: "none !important" }
944
- }, null, 8, Ka)) : m("", !0),
945
- W.value && e.value.style.chart.layout.separators.show ? (u(), c("line", {
946
- key: 2,
947
- x1: s.value.left + s.value.width / 2,
948
- x2: s.value.left + s.value.width / 2,
949
- y1: s.value.top,
950
- y2: s.value.bottom,
951
- stroke: e.value.style.chart.layout.separators.color,
952
- "stroke-width": e.value.style.chart.layout.separators.strokeWidth,
953
- "stroke-linecap": "round"
954
- }, null, 8, Ja)) : m("", !0),
955
- n("g", Qa, [
956
- n("text", {
957
- x: W.value ? s.value.left + s.value.width / 2 + (a.sign === 1 ? -12 : 12) + (a.sign === 1 ? -e.value.style.chart.layout.bars.dataLabels.offsetX : e.value.style.chart.layout.bars.dataLabels.offsetX) : jt(a.value) + 3 + e.value.style.chart.layout.bars.dataLabels.offsetX,
958
- y: s.value.top + (k.value + g.value) * o + g.value / 2 + e.value.style.chart.layout.bars.dataLabels.fontSize / 2,
959
- "text-anchor": !W.value || a.sign === -1 ? "start" : "end",
960
- "font-size": e.value.style.chart.layout.bars.dataLabels.fontSize,
961
- fill: e.value.style.chart.layout.bars.dataLabels.color,
962
- "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal"
963
- }, p(rt(a.value, a, o, a.sign)), 9, Za),
964
- (a.isChild || !a.hasChildren) && e.value.style.chart.layout.bars.nameLabels.show ? (u(), c("text", {
965
- key: 0,
966
- "text-anchor": "end",
967
- x: s.value.left - 3 + e.value.style.chart.layout.bars.nameLabels.offsetX,
968
- y: s.value.top + (k.value + g.value) * o + g.value / 2 + e.value.style.chart.layout.bars.nameLabels.fontSize / 2,
969
- "font-size": e.value.style.chart.layout.bars.nameLabels.fontSize,
970
- fill: e.value.style.chart.layout.bars.nameLabels.color,
971
- "font-weight": e.value.style.chart.layout.bars.nameLabels.bold ? "bold" : "normal"
972
- }, p(a.name), 9, el)) : m("", !0)
973
- ]),
974
- n("g", tl, [
975
- a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), c("text", {
976
- key: 0,
977
- x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
978
- y: ne(a, o).y,
979
- "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
980
- fill: e.value.style.chart.layout.bars.parentLabels.color,
981
- "font-weight": e.value.style.chart.layout.bars.parentLabels.bold ? "bold" : "normal",
982
- "text-anchor": "start"
983
- }, p(ne(a, o).name), 9, al)) : m("", !0),
984
- a.isChild && a.childIndex === 0 && e.value.style.chart.layout.bars.parentLabels.show ? (u(), c("text", {
985
- key: 1,
986
- x: e.value.autoSize ? void 0 : P.value.x + e.value.style.chart.layout.bars.parentLabels.offsetX,
987
- y: ne(a, o).y + e.value.style.chart.layout.bars.parentLabels.fontSize + 6,
988
- "font-size": e.value.style.chart.layout.bars.parentLabels.fontSize,
989
- fill: e.value.style.chart.layout.bars.parentLabels.color,
990
- "font-weight": e.value.style.chart.layout.bars.dataLabels.bold ? "bold" : "normal",
991
- "text-anchor": "start"
992
- }, p(rt(ne(a, o).value), ne(a, o), o, a.parentSign || a.sign), 9, ll)) : m("", !0)
993
- ]),
994
- n("rect", {
995
- x: P.value.x,
996
- y: s.value.top + (k.value + g.value) * o - k.value / 2,
997
- width: P.value.width,
998
- height: g.value + k.value <= 0 ? 1e-4 : g.value + k.value,
999
- fill: Te.value === a.id ? r(Oe)(e.value.style.chart.layout.highlighter.color, e.value.style.chart.layout.highlighter.opacity) : "transparent",
1000
- onMouseenter: (y) => Kt(a, o),
1001
- onMouseleave: (y) => Yt({ datapoint: a, seriesIndex: o }),
1002
- onClick: (y) => qt({ datapoint: a, seriesIndex: o })
1003
- }, null, 40, ol)
1004
- ]))), 256)),
1005
- b(t.$slots, "svg", { svg: P.value }, void 0, !0)
1006
- ], 512)
1007
- ], 14, Ra)),
1008
- t.$slots.watermark ? (u(), c("div", nl, [
1009
- b(t.$slots, "watermark", N(z({ isPrinting: r(qe) || r(Ye) })), void 0, !0)
1010
- ])) : m("", !0),
1011
- e.value.style.chart.legend.show && e.value.style.chart.legend.position === "bottom" ? (u(), c("div", {
1012
- key: 6,
1013
- ref_key: "chartLegend",
1014
- ref: ye
1015
- }, [
1016
- (u(), H(ft, {
1017
- key: `legend_bottom_${me.value}`,
1018
- legendSet: B.value,
1019
- config: lt.value,
1020
- onClickMarker: l[1] || (l[1] = ({ legend: a }) => R(a.id))
1021
- }, pe({
1022
- item: h(({ legend: a, index: o }) => [
1023
- n("div", {
1024
- onClick: (y) => R(a.id),
1025
- style: v(`opacity:${A.value.includes(a.id) ? 0.5 : 1}`)
1026
- }, p(a.name) + ": " + p(r(re)(
1027
- e.value.style.chart.layout.bars.dataLabels.value.formatter,
1028
- a.value,
1029
- r(M)({
1030
- p: e.value.style.chart.legend.prefix,
1031
- v: a.value,
1032
- s: e.value.style.chart.legend.suffix,
1033
- r: e.value.style.chart.legend.roundingValue
1034
- }),
1035
- { datapoint: a, seriesIndex: o }
1036
- )), 13, ul)
1037
- ]),
1038
- _: 2
1039
- }, [
1040
- t.$slots.pattern ? {
1041
- name: "legend-pattern",
1042
- fn: h(({ legend: a, index: o }) => [
1043
- ee(bt, {
1044
- shape: a.shape,
1045
- radius: 30,
1046
- stroke: "none",
1047
- plot: { x: 30, y: 30 },
1048
- fill: `url(#pattern_${S.value}_${o})`
1049
- }, null, 8, ["shape", "fill"])
1050
- ]),
1051
- key: "0"
1052
- } : void 0
1053
- ]), 1032, ["legendSet", "config"]))
1054
- ], 512)) : m("", !0),
1055
- b(t.$slots, "legend", { legend: B.value }, void 0, !0),
1056
- t.$slots.source ? (u(), c("div", {
1057
- key: 7,
1058
- ref_key: "source",
1059
- ref: Ue,
1060
- dir: "auto"
1061
- }, [
1062
- b(t.$slots, "source", {}, void 0, !0)
1063
- ], 512)) : m("", !0),
1064
- ee(r(St), {
1065
- show: _.value.showTooltip && fe.value && A.value.length < C.dataset.length,
1066
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1067
- color: e.value.style.chart.tooltip.color,
1068
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1069
- borderColor: e.value.style.chart.tooltip.borderColor,
1070
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1071
- fontSize: e.value.style.chart.tooltip.fontSize,
1072
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1073
- position: e.value.style.chart.tooltip.position,
1074
- offsetY: e.value.style.chart.tooltip.offsetY,
1075
- parent: F.value,
1076
- content: be.value,
1077
- isFullscreen: X.value,
1078
- isCustom: e.value.style.chart.tooltip.customFormat && typeof e.value.style.chart.tooltip.customFormat == "function",
1079
- smooth: e.value.style.chart.tooltip.smooth,
1080
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1081
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1082
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
1083
- }, {
1084
- "tooltip-before": h(() => [
1085
- b(t.$slots, "tooltip-before", N(z({ ...Se.value })), void 0, !0)
1086
- ]),
1087
- "tooltip-after": h(() => [
1088
- b(t.$slots, "tooltip-after", N(z({ ...Se.value })), void 0, !0)
1089
- ]),
1090
- _: 3
1091
- }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1092
- ge.value && e.value.userOptions.buttons.table ? (u(), H(va(ve.value.component), pt({ key: 8 }, ve.value.props, {
1093
- ref_key: "tableUnit",
1094
- ref: oe,
1095
- onClose: Pe
1096
- }), pe({
1097
- content: h(() => [
1098
- n("div", {
1099
- ref_key: "tableContainer",
1100
- ref: Ze,
1101
- class: "vue-ui-vertical-bar-table atom-data-table",
1102
- style: v(`${e.value.table.useDialog ? "" : "max-height: 300px; margin-top: 24px"}`)
1103
- }, [
1104
- n("div", rl, [
1105
- e.value.table.useDialog ? m("", !0) : (u(), c("div", {
1106
- key: 0,
1107
- role: "button",
1108
- tabindex: "0",
1109
- style: v(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:pointer; background:${e.value.table.th.backgroundColor};`),
1110
- onClick: Pe,
1111
- onKeypress: ha(Pe, ["enter"])
1112
- }, [
1113
- ee(r(Ie), {
1114
- name: "close",
1115
- stroke: e.value.table.th.color,
1116
- "stroke-width": 2
1117
- }, null, 8, ["stroke"])
1118
- ], 36)),
1119
- n("div", {
1120
- style: { width: "100%", "container-type": "inline-size" },
1121
- class: j({ "vue-ui-responsive": r(ea) })
1122
- }, [
1123
- n("table", sl, [
1124
- e.value.table.useDialog ? m("", !0) : (u(), c("caption", {
1125
- key: 0,
1126
- style: v({ backgroundColor: e.value.table.th.backgroundColor, color: e.value.table.th.color, outline: e.value.table.th.outline }),
1127
- class: "vue-ui-data-table__caption"
1128
- }, [
1129
- gt(p(e.value.style.chart.title.text) + " ", 1),
1130
- e.value.style.chart.title.subtitle.text ? (u(), c("span", il, p(e.value.style.chart.title.subtitle.text), 1)) : m("", !0)
1131
- ], 4)),
1132
- n("thead", null, [
1133
- n("tr", {
1134
- role: "row",
1135
- style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color}`)
1136
- }, [
1137
- (u(!0), c(te, null, ae(D.value.head, (a) => (u(), c("th", {
1138
- style: v(`outline:${e.value.table.th.outline}`)
1139
- }, [
1140
- n("div", cl, p(a), 1)
1141
- ], 4))), 256))
1142
- ], 4),
1143
- n("tr", null, [
1144
- n("th", {
1145
- style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1146
- }, null, 4),
1147
- n("th", {
1148
- style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
1149
- }, "∑ " + p(e.value.table.td.prefix) + p(isNaN(E.value) ? "" : E.value.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 5),
1150
- n("th", {
1151
- style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline};text-align:right;padding-right:5px;font-weight:bold`)
1152
- }, "100%", 4),
1153
- n("th", {
1154
- style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1155
- }, null, 4),
1156
- n("th", {
1157
- style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1158
- }, null, 4),
1159
- n("th", {
1160
- style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1161
- }, null, 4),
1162
- n("th", {
1163
- style: v(`background:${e.value.table.th.backgroundColor};color:${e.value.table.th.color};outline:${e.value.table.th.outline}`)
1164
- }, null, 4)
1165
- ])
1166
- ]),
1167
- n("tbody", null, [
1168
- (u(!0), c(te, null, ae(D.value.body, (a, o) => (u(), c("tr", {
1169
- class: j({ "vue-ui-data-table__tbody__row": !0, "vue-ui-data-table__tbody__row-even": o % 2 === 0, "vue-ui-data-table__tbody__row-odd": o % 2 !== 0 }),
1170
- style: v(`background:${e.value.table.td.backgroundColor};color:${e.value.table.td.color}`)
1171
- }, [
1172
- n("td", {
1173
- class: "vue-ui-data-table__tbody__td",
1174
- style: v(`outline:${e.value.table.td.outline};font-variant-numeric: tabular-nums;`),
1175
- "data-cell": D.value.head[0] ?? ""
1176
- }, [
1177
- n("div", vl, [
1178
- a.color ? (u(), c("span", {
1179
- key: 0,
1180
- style: v(`color:${a.color};margin-right:3px`)
1181
- }, "⬤", 4)) : m("", !0),
1182
- n("span", null, p(a.parentName), 1)
1183
- ])
1184
- ], 12, dl),
1185
- n("td", {
1186
- class: "vue-ui-data-table__tbody__td",
1187
- style: v(`outline:${e.value.table.td.outline}`),
1188
- "data-cell": D.value.head[1] ?? ""
1189
- }, [
1190
- n("div", pl, p(e.value.table.td.prefix) + p(["", NaN, void 0].includes(a.parentValue) ? "" : a.parentValue.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 1)
1191
- ], 12, hl),
1192
- n("td", {
1193
- class: "vue-ui-data-table__tbody__td",
1194
- style: v(`outline:${e.value.table.td.outline}`),
1195
- "data-cell": D.value.head[2] ?? ""
1196
- }, [
1197
- n("div", fl, p(["", NaN, void 0].includes(a.percentageToTotal) ? "" : `${(a.percentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1198
- ], 12, gl),
1199
- n("td", {
1200
- class: "vue-ui-data-table__tbody__td",
1201
- style: v(`outline:${e.value.table.td.outline}`),
1202
- "data-cell": D.value.head[3] ?? ""
1203
- }, [
1204
- n("div", yl, p(a.childName), 1)
1205
- ], 12, bl),
1206
- n("td", {
1207
- class: "vue-ui-data-table__tbody__td",
1208
- style: v(`outline:${e.value.table.td.outline}`),
1209
- "data-cell": D.value.head[4] ?? ""
1210
- }, [
1211
- n("div", Cl, p(e.value.table.td.prefix) + p(["", NaN, void 0].includes(a.childValue) ? "" : a.childValue.toFixed(e.value.table.td.roundingValue)) + p(e.value.table.td.suffix), 1)
1212
- ], 12, ml),
1213
- n("td", {
1214
- class: "vue-ui-data-table__tbody__td",
1215
- style: v(`outline:${e.value.table.td.outline}`),
1216
- "data-cell": D.value.head[5] ?? ""
1217
- }, [
1218
- n("div", xl, p(["", NaN, void 0].includes(a.childPercentageToParent) ? "" : `${(a.childPercentageToParent * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1219
- ], 12, kl),
1220
- n("td", {
1221
- class: "vue-ui-data-table__tbody__td",
1222
- style: v(`outline:${e.value.table.td.outline}`),
1223
- "data-cell": D.value.head[6] ?? ""
1224
- }, [
1225
- n("div", _l, p(["", NaN, void 0].includes(a.childPercentageToTotal) ? "" : `${(a.childPercentageToTotal * 100).toFixed(e.value.table.td.roundingPercentage)}%`), 1)
1226
- ], 12, wl)
1227
- ], 6))), 256))
1228
- ])
1229
- ])
1230
- ], 2)
1231
- ])
1232
- ], 4)
1233
- ]),
1234
- _: 2
1235
- }, [
1236
- e.value.table.useDialog ? {
1237
- name: "title",
1238
- fn: h(() => [
1239
- gt(p(ve.value.title), 1)
1240
- ]),
1241
- key: "0"
1242
- } : void 0,
1243
- e.value.table.useDialog ? {
1244
- name: "actions",
1245
- fn: h(() => [
1246
- n("button", {
1247
- tabindex: "0",
1248
- class: "vue-ui-user-options-button",
1249
- onClick: l[2] || (l[2] = (a) => Le(e.value.userOptions.callbacks.csv))
1250
- }, [
1251
- ee(r(Ie), {
1252
- name: "excel",
1253
- stroke: ve.value.props.color
1254
- }, null, 8, ["stroke"])
1255
- ])
1256
- ]),
1257
- key: "1"
1258
- } : void 0
1259
- ]), 1040)) : m("", !0),
1260
- r(Xe) ? (u(), H(Sa, { key: 9 })) : m("", !0)
1261
- ], 46, Ia));
1262
- }
1263
- }, Al = /* @__PURE__ */ Va($l, [["__scopeId", "data-v-7f6e5c2f"]]), Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1264
- __proto__: null,
1265
- default: Al
1266
- }, Symbol.toStringTag, { value: "Module" }));
1267
- export {
1268
- Wl as a,
1269
- Xl as b,
1270
- Al as v
1271
- };