vue-data-ui 3.4.9 → 3.5.1

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 (151) hide show
  1. package/README.md +114 -37
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DjxWWa78.js → vue-data-ui-B_RxfmEm.js} +113 -107
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/vue-ui-donut-CxZcJFTo.js +1681 -0
  89. package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-BVYL-BUJ.js} +480 -444
  90. package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-CUoDRr-O.js} +313 -277
  94. package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-C6p_aThr.js} +478 -442
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-D0MCLs5n.js} +597 -557
  103. package/dist/vue-ui-onion-B7yPJ3gL.js +915 -0
  104. package/dist/vue-ui-parallel-coordinate-plot-DY21ivNe.js +1051 -0
  105. package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-b0vMRaq-.js} +532 -495
  106. package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-B5Vkoz9M.js} +412 -373
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CAMNq-p_.js} +517 -481
  111. package/dist/vue-ui-rings-ImGOqm_J.js +855 -0
  112. package/dist/vue-ui-scatter-CterNJYe.js +1590 -0
  113. package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/vue-ui-sparkstackbar-BXNy6nuw.js +441 -0
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/vue-ui-treemap-DPE8SY0_.js +1330 -0
  130. package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-ZU1GCbX0.js} +484 -448
  131. package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-z7nuSuSV.js} +398 -362
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-NDDbNbds.js} +1263 -1227
  136. package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-2a6NlQe3.js} +338 -322
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-CDgzolI-.js +0 -1133
  140. package/dist/vue-ui-dashboard-CeJwbiON.js +0 -412
  141. package/dist/vue-ui-donut-DjQXHBJE.js +0 -1645
  142. package/dist/vue-ui-onion-DTY2p87s.js +0 -873
  143. package/dist/vue-ui-parallel-coordinate-plot-C8aWTcNn.js +0 -1014
  144. package/dist/vue-ui-rings-CnTMFK6R.js +0 -813
  145. package/dist/vue-ui-scatter-fzR2c0St.js +0 -1554
  146. package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
  147. package/dist/vue-ui-stackbar-DubS6Pg8.js +0 -1708
  148. package/dist/vue-ui-thermometer-DTnfnf9z.js +0 -564
  149. package/dist/vue-ui-tiremarks-CrC_tlIx.js +0 -430
  150. package/dist/vue-ui-treemap-kyuyi2ES.js +0 -1294
  151. package/dist/vue-ui-wheel-BasM7FWt.js +0 -643
@@ -1,7 +1,7 @@
1
- import { defineAsyncComponent as H, ref as u, computed as d, onMounted as vo, toRefs as ho, watch as Se, createElementBlock as g, openBlock as c, unref as r, normalizeStyle as W, normalizeClass as _t, createBlock as q, createCommentVNode as T, createElementVNode as G, createVNode as _e, createSlots as Ot, withCtx as y, renderSlot as C, normalizeProps as Z, guardReactiveProps as ee, Fragment as de, renderList as he, withKeys as qe, withModifiers as Ke, toDisplayString as fe, Teleport as fo, resolveDynamicComponent as po, mergeProps as go, createTextVNode as Nt, nextTick as Ft } from "vue";
2
- import { c as Oe, t as mo, o as Et, f as yo, b as bo, p as D, e as Co, x, h as ko, d as te, X as wo, a as Ne, J as It, I as $o, P as Ao, Q as To, G as xo } from "./lib-C_mNZmhD.js";
3
- import { t as So, u as _o } from "./useResponsive-DfdjqQps.js";
4
- import { u as Oo, a as Pt } from "./useNestedProp-BjZe1Y85.js";
1
+ import { defineAsyncComponent as G, ref as u, computed as h, onMounted as vo, toRefs as ho, watch as Se, createElementBlock as y, openBlock as c, unref as r, normalizeStyle as U, normalizeClass as Ot, createBlock as J, createCommentVNode as T, createElementVNode as Y, createVNode as Oe, withCtx as d, renderSlot as f, normalizeProps as M, guardReactiveProps as B, createSlots as _t, Fragment as de, renderList as he, withKeys as qe, withModifiers as Ke, toDisplayString as fe, Teleport as fo, resolveDynamicComponent as po, mergeProps as go, createTextVNode as Nt, nextTick as Ft } from "vue";
2
+ import { c as _e, t as mo, o as Et, f as yo, b as bo, p as z, e as Co, x, h as ko, d as te, X as wo, a as Ne, J as It, I as $o, P as Ao, Q as To, G as xo } from "./lib-C_mNZmhD.js";
3
+ import { t as So, u as Oo } from "./useResponsive-DfdjqQps.js";
4
+ import { u as _o, a as Pt } from "./useNestedProp-DjGXw6S9.js";
5
5
  import { u as No } from "./usePrinter-DTzqpYKF.js";
6
6
  import { u as Fo, B as Eo } from "./BaseScanner-BgWxam9d.js";
7
7
  import { u as Io } from "./useSvgExport-DrjCWun4.js";
@@ -9,7 +9,7 @@ import { u as Po } from "./useUserOptionState-BIvW1Kz7.js";
9
9
  import { u as Mo } from "./useChartAccessibility-9icAAmYg.js";
10
10
  import { t as Bo } from "./themes-AUNCOb2G.js";
11
11
  import Do from "./Legend-G6GMcdAc.js";
12
- import Lo from "./Title-l36lOBMx.js";
12
+ import Lo from "./Title-isbiM8i8.js";
13
13
  import zo from "./img-BecE5qXd.js";
14
14
  import { _ as Ro } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const Ho = ["id"], Wo = {
@@ -37,13 +37,13 @@ const Ho = ["id"], Wo = {
37
37
  }
38
38
  },
39
39
  setup(Mt, { expose: Bt }) {
40
- const Dt = H(() => import("./Tooltip-oWCO1HKy.js")), Lt = H(() => import("./BaseIcon-BmMbm4d0.js")), zt = H(() => import("./vue-ui-accordion-CZ0thhxa.js")), Rt = H(() => import("./DataTable-BT7VF2ua.js")), Ht = H(() => import("./PenAndPaper-DSvu9dwa.js")), Wt = H(() => import("./UserOptions-CGnQt6Fd.js")), Gt = H(() => import("./PackageVersion-CTUqGqWV.js")), Ut = H(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_flow: Yt } = Oo(), E = Mt, U = u(Oe()), I = u(null), Je = u(0), Qe = u(0), Fe = u(!1), Ee = u(""), Ze = u(null), et = u(null), tt = u(null), oe = u(null), pe = u(null), ot = u(!1), le = u(null), Ie = u(null), Pe = u(null), lt = d(() => !!E.dataset && E.dataset.length);
40
+ const Dt = G(() => import("./Tooltip-oWCO1HKy.js")), Lt = G(() => import("./BaseIcon-BmMbm4d0.js")), zt = G(() => import("./vue-ui-accordion-CqhVCfc2.js")), Rt = G(() => import("./DataTable-BT7VF2ua.js")), Ht = G(() => import("./PenAndPaper-SZQIAgkg.js")), Wt = G(() => import("./UserOptions-CGnQt6Fd.js")), Gt = G(() => import("./PackageVersion-DQvyATVa.js")), Ut = G(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_flow: Yt } = _o(), E = Mt, j = u(_e()), I = u(null), Je = u(0), Qe = u(0), Fe = u(!1), Ee = u(""), Ze = u(null), et = u(null), tt = u(null), oe = u(null), pe = u(null), ot = u(!1), le = u(null), Ie = u(null), Pe = u(null), lt = h(() => !!E.dataset && E.dataset.length);
41
41
  vo(() => {
42
42
  ot.value = !0, nt();
43
43
  });
44
- const Y = u(!1);
45
- function at(t) {
46
- Y.value = t, Je.value += 1;
44
+ const V = u(!1);
45
+ function at(o) {
46
+ V.value = o, Je.value += 1;
47
47
  }
48
48
  const e = u(ze()), { loading: Me, FINAL_DATASET: ge, manualLoading: Be } = Fo({
49
49
  ...ho(E),
@@ -89,59 +89,59 @@ const Ho = ["id"], Wo = {
89
89
  }
90
90
  }
91
91
  })
92
- }), jt = d(() => !!e.value.debug);
92
+ }), jt = h(() => !!e.value.debug);
93
93
  function nt() {
94
94
  if (Et(E.dataset) && (yo({
95
95
  componentName: "VueUiFlow",
96
96
  type: "dataset",
97
97
  debug: jt.value
98
98
  }), Be.value = !0), Et(E.dataset) || (Be.value = e.value.loading), e.value.responsive) {
99
- const t = So(() => {
100
- const { width: l, height: o } = _o({
99
+ const o = So(() => {
100
+ const { width: l, height: t } = Oo({
101
101
  chart: I.value,
102
102
  title: e.value.style.chart.title.text ? et.value : null,
103
103
  legend: e.value.style.chart.legend.show ? Ze.value : null,
104
104
  source: tt.value
105
105
  });
106
106
  requestAnimationFrame(() => {
107
- ut.value = l, it.value = o;
107
+ ut.value = l, it.value = t;
108
108
  });
109
109
  });
110
- oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(t), pe.value = I.value.parentNode, oe.value.observe(pe.value);
110
+ oe.value && (pe.value && oe.value.unobserve(pe.value), oe.value.disconnect()), oe.value = new ResizeObserver(o), pe.value = I.value.parentNode, oe.value.observe(pe.value);
111
111
  }
112
112
  }
113
113
  const { userOptionsVisible: De, setUserOptionsVisibility: st, keepUserOptionState: rt } = Po({ config: e.value }), { svgRef: Le } = Mo({
114
114
  config: e.value.style.chart.title
115
115
  });
116
116
  function ze() {
117
- const t = Pt({
117
+ const o = Pt({
118
118
  userConfig: E.config,
119
119
  defaultConfig: Yt
120
120
  });
121
- let l = t;
122
- return t.theme ? l = {
121
+ let l = o;
122
+ return o.theme ? l = {
123
123
  ...Pt({
124
- userConfig: Bo.vue_ui_flow[t.theme] || E.config,
125
- defaultConfig: t
124
+ userConfig: Bo.vue_ui_flow[o.theme] || E.config,
125
+ defaultConfig: o
126
126
  }),
127
- customPalette: bo[t.theme] || D
128
- } : l = t, l.nodeCategories = E.config.nodeCategories || {}, l.nodeCategoryColors = E.config.nodeCategoryColors || {}, l;
127
+ customPalette: bo[o.theme] || z
128
+ } : l = o, l.nodeCategories = E.config.nodeCategories || {}, l.nodeCategoryColors = E.config.nodeCategoryColors || {}, l;
129
129
  }
130
130
  const ut = u(e.value.style.chart.width), it = u(e.value.style.chart.height);
131
131
  Se(
132
132
  () => E.config,
133
- (t) => {
133
+ (o) => {
134
134
  Me.value || (e.value = ze()), De.value = !e.value.userOptions.showOnChartHover, nt(), Qe.value += 1, S.value.showTable = e.value.table.show;
135
135
  },
136
136
  { deep: !0 }
137
- ), Se(() => E.dataset, (t) => {
138
- Array.isArray(t) && t.length > 0 && (Be.value = !1);
137
+ ), Se(() => E.dataset, (o) => {
138
+ Array.isArray(o) && o.length > 0 && (Be.value = !1);
139
139
  }, { deep: !0 });
140
140
  const { isPrinting: ct, isImaging: vt, generatePdf: dt, generateImage: ht } = No({
141
- elementId: `flow_${U.value}`,
141
+ elementId: `flow_${j.value}`,
142
142
  fileName: e.value.style.chart.title.text || "vue-ui-flow",
143
143
  options: e.value.userOptions.print
144
- }), Vt = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = d(() => Co(e.value.customPalette)), ye = d(() => e.value.style.chart.nodes.width), S = u({
144
+ }), Vt = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), me = h(() => Co(e.value.customPalette)), ye = h(() => e.value.style.chart.nodes.width), S = u({
145
145
  showTable: e.value.table.show,
146
146
  showTooltip: e.value.style.chart.tooltip.show
147
147
  });
@@ -151,14 +151,14 @@ const Ho = ["id"], Wo = {
151
151
  showTooltip: e.value.style.chart.tooltip.show
152
152
  };
153
153
  }, { immediate: !0 });
154
- const ft = d(() => !ge.value || !ge.value.length ? [] : ge.value.map((t, l) => [
155
- t[0],
156
- t[1],
157
- x(t[2]),
158
- t[3] ? ko(t[3]) : me.value[l] || me.value[l % me.value.length] || D[l] || D[l % D.length]
154
+ const ft = h(() => !ge.value || !ge.value.length ? [] : ge.value.map((o, l) => [
155
+ o[0],
156
+ o[1],
157
+ x(o[2]),
158
+ o[3] ? ko(o[3]) : me.value[l] || me.value[l % me.value.length] || z[l] || z[l % z.length]
159
159
  ]));
160
- function Xt(t) {
161
- const l = {}, o = {};
160
+ function Xt(o) {
161
+ const l = {}, t = {};
162
162
  function a(n, i) {
163
163
  l[n] || (l[n] = {
164
164
  level: null,
@@ -166,147 +166,147 @@ const Ho = ["id"], Wo = {
166
166
  outflow: 0,
167
167
  children: [],
168
168
  color: null,
169
- uid: Oe()
170
- }), l[n].level === null && (l[n].level = i), o[i] || (o[i] = []), o[i].includes(n) || o[i].push(n);
169
+ uid: _e()
170
+ }), l[n].level === null && (l[n].level = i), t[i] || (t[i] = []), t[i].includes(n) || t[i].push(n);
171
171
  }
172
- t.forEach(([n, i, h]) => {
173
- const f = l[n]?.level ?? 0, O = f + 1;
174
- a(n, f), a(i, O), l[n].children.push({ target: i, value: h }), l[n].outflow += h, l[i].inflow += h;
172
+ o.forEach(([n, i, p]) => {
173
+ const g = l[n]?.level ?? 0, _ = g + 1;
174
+ a(n, g), a(i, _), l[n].children.push({ target: i, value: p }), l[n].outflow += p, l[i].inflow += p;
175
175
  });
176
- const s = new Set(t.map(([n]) => n)), $ = new Set(t.map(([, n]) => n)), J = Array.from(s).filter((n) => !$.has(n)), ue = {};
177
- J.forEach((n, i) => {
178
- ue[n] = me.value[i] || D[i % D.length];
176
+ const s = new Set(o.map(([n]) => n)), $ = new Set(o.map(([, n]) => n)), Z = Array.from(s).filter((n) => !$.has(n)), ue = {};
177
+ Z.forEach((n, i) => {
178
+ ue[n] = me.value[i] || z[i % z.length];
179
179
  });
180
180
  const ie = {};
181
- t.forEach(([n, i, h, f]) => {
182
- f && (ie[n] = f, ie[i] = f);
181
+ o.forEach(([n, i, p, g]) => {
182
+ g && (ie[n] = g, ie[i] = g);
183
183
  }), Object.keys(l).forEach((n, i) => {
184
- const h = e.value.nodeCategories?.[n], f = h ? e.value.nodeCategoryColors?.[h] : null;
185
- l[n].color = ie[n] || f || (J.includes(n) ? ue[n] : null) || D[i % D.length];
184
+ const p = e.value.nodeCategories?.[n], g = p ? e.value.nodeCategoryColors?.[p] : null;
185
+ l[n].color = ie[n] || g || (Z.includes(n) ? ue[n] : null) || z[i % z.length];
186
186
  }), Object.keys(l).forEach((n) => {
187
187
  l[n].value = Math.max(l[n].inflow, l[n].outflow);
188
188
  });
189
- const Ae = ae.value, Ye = mt.value.width, Q = mt.value.height, B = Object.keys(o).map(Number).sort((n, i) => n - i), Te = B.length || 1, je = Te > 1 ? Ye / (Te - 1) : 0, A = Number(ye.value), M = Number(
189
+ const Ae = ae.value, Ye = mt.value.width, ee = mt.value.height, L = Object.keys(t).map(Number).sort((n, i) => n - i), Te = L.length || 1, je = Te > 1 ? Ye / (Te - 1) : 0, A = Number(ye.value), D = Number(
190
190
  e.value.style.chart.nodes.gapPx ?? e.value.style.chart.nodes.gap ?? 8
191
191
  ), ce = Number(e.value.style.chart.nodes.minHeight || 0);
192
192
  function v(n) {
193
- const i = o[n], h = i.length;
194
- if (!h) return 1 / 0;
195
- const f = Math.max(0, (h - 1) * M), O = Math.max(0, Q - f), L = Math.min(ce, h ? O / h : 0);
196
- let k = 0, N = i.map((p) => l[p].value || 0), b = N.reduce((p, F) => p + F, 0);
197
- for (let p = 0; p < 12; p += 1) {
198
- const F = b > 0 ? (O - k) / b : 0, z = [];
193
+ const i = t[n], p = i.length;
194
+ if (!p) return 1 / 0;
195
+ const g = Math.max(0, (p - 1) * D), _ = Math.max(0, ee - g), R = Math.min(ce, p ? _ / p : 0);
196
+ let k = 0, N = i.map((m) => l[m].value || 0), C = N.reduce((m, F) => m + F, 0);
197
+ for (let m = 0; m < 12; m += 1) {
198
+ const F = C > 0 ? (_ - k) / C : 0, H = [];
199
199
  for (let P = 0; P < N.length; P += 1) {
200
- const R = N[P];
201
- R < 0 || R * F < L && z.push(P);
200
+ const W = N[P];
201
+ W < 0 || W * F < R && H.push(P);
202
202
  }
203
- if (!z.length) return Math.max(0, F);
204
- for (const P of z)
205
- k += L, b -= N[P], N[P] = -1;
206
- if (b <= 0) return 0;
203
+ if (!H.length) return Math.max(0, F);
204
+ for (const P of H)
205
+ k += R, C -= N[P], N[P] = -1;
206
+ if (C <= 0) return 0;
207
207
  }
208
- return b > 0 ? Math.max(0, (O - k) / b) : 0;
208
+ return C > 0 ? Math.max(0, (_ - k) / C) : 0;
209
209
  }
210
- const m = B.map(v), V = m.length ? Math.min(...m) : 0, X = {};
211
- B.forEach((n) => {
212
- const i = o[n], h = i.length, f = Math.max(0, (h - 1) * M), O = Math.max(0, Q - f), L = Math.min(ce, h ? O / h : 0), k = i.map(
213
- (p) => Math.max(L, (l[p].value || 0) * V)
214
- ), N = k.reduce((p, F) => p + F, 0) + f;
215
- let b = Math.max(0, (Q - N) / 2);
216
- i.forEach((p, F) => {
217
- const z = k[F], P = Ae.left + n * je, R = b;
218
- X[p] = {
210
+ const b = L.map(v), q = b.length ? Math.min(...b) : 0, K = {};
211
+ L.forEach((n) => {
212
+ const i = t[n], p = i.length, g = Math.max(0, (p - 1) * D), _ = Math.max(0, ee - g), R = Math.min(ce, p ? _ / p : 0), k = i.map(
213
+ (m) => Math.max(R, (l[m].value || 0) * q)
214
+ ), N = k.reduce((m, F) => m + F, 0) + g;
215
+ let C = Math.max(0, (ee - N) / 2);
216
+ i.forEach((m, F) => {
217
+ const H = k[F], P = Ae.left + n * je, W = C;
218
+ K[m] = {
219
219
  x: P,
220
- y: R,
221
- absoluteY: R,
222
- height: z,
220
+ y: W,
221
+ absoluteY: W,
222
+ height: H,
223
223
  i: F,
224
- color: l[p].color,
225
- value: l[p].value,
226
- id: Oe()
227
- }, b += z, F < h - 1 && (b += M);
224
+ color: l[m].color,
225
+ value: l[m].value,
226
+ id: _e()
227
+ }, C += H, F < p - 1 && (C += D);
228
228
  });
229
229
  });
230
230
  const Tt = [], ve = Ae.top, Ve = {}, Xe = {};
231
231
  Object.keys(l).forEach((n) => {
232
- Ve[n] = X[n]?.y ?? 0, Xe[n] = 0;
232
+ Ve[n] = K[n]?.y ?? 0, Xe[n] = 0;
233
233
  });
234
234
  const so = 1e-6, ro = 0.25;
235
- return B.forEach((n) => {
236
- o[n].forEach((h) => {
237
- const f = l[h], O = X[h];
238
- if (!f.children || !f.children.length) return;
239
- let L = O.y;
240
- f.children.forEach(({ target: k, value: N }) => {
241
- const b = X[k], p = l[k], F = f.outflow > 0 ? N / f.outflow : 0, z = p.inflow > 0 ? N / p.inflow : 0, P = x(L + ve), R = x(L + F * O.height + ve), xt = Ve[k];
242
- let xe = xt + z * b.height;
235
+ return L.forEach((n) => {
236
+ t[n].forEach((p) => {
237
+ const g = l[p], _ = K[p];
238
+ if (!g.children || !g.children.length) return;
239
+ let R = _.y;
240
+ g.children.forEach(({ target: k, value: N }) => {
241
+ const C = K[k], m = l[k], F = g.outflow > 0 ? N / g.outflow : 0, H = m.inflow > 0 ? N / m.inflow : 0, P = x(R + ve), W = x(R + F * _.height + ve), xt = Ve[k];
242
+ let xe = xt + H * C.height;
243
243
  Xe[k] += N;
244
- const uo = p.inflow > 0 && Xe[k] >= p.inflow - so, St = b.y + b.height;
244
+ const uo = m.inflow > 0 && Xe[k] >= m.inflow - so, St = C.y + C.height;
245
245
  (uo || xe > St - ro) && (xe = St);
246
246
  const io = x(xt + ve), co = x(xe + ve);
247
247
  Tt.push({
248
- id: Oe(),
249
- source: h,
248
+ id: _e(),
249
+ source: p,
250
250
  target: k,
251
- path: `M ${x(O.x + A)} ${P} L ${x(O.x + A)} ${R} L ${x(b.x)} ${co} L ${x(b.x)} ${io} Z`,
251
+ path: `M ${x(_.x + A)} ${P} L ${x(_.x + A)} ${W} L ${x(C.x)} ${co} L ${x(C.x)} ${io} Z`,
252
252
  value: N,
253
- sourceColor: f.color,
253
+ sourceColor: g.color,
254
254
  targetColor: l[k].color
255
- }), L = R - ve, Ve[k] = xe;
255
+ }), R = W - ve, Ve[k] = xe;
256
256
  });
257
257
  });
258
- }), { nodeCoordinates: X, links: Tt };
258
+ }), { nodeCoordinates: K, links: Tt };
259
259
  }
260
- const _ = d(() => {
261
- const t = Xt(ge.value);
260
+ const O = h(() => {
261
+ const o = Xt(ge.value);
262
262
  return {
263
- nodes: Object.keys(t.nodeCoordinates).map((l, o) => ({
264
- ...t.nodeCoordinates[l],
263
+ nodes: Object.keys(o.nodeCoordinates).map((l, t) => ({
264
+ ...o.nodeCoordinates[l],
265
265
  name: l
266
266
  })),
267
- links: t.links
267
+ links: o.links
268
268
  };
269
- }), pt = d(() => ut.value), gt = d(() => it.value), ae = d(() => e.value.style.chart.padding), mt = d(() => ({
269
+ }), pt = h(() => ut.value), gt = h(() => it.value), ae = h(() => e.value.style.chart.padding), mt = h(() => ({
270
270
  width: Math.max(0, pt.value - 40 - ae.value.right - ae.value.left),
271
271
  height: Math.max(0, gt.value - ae.value.top - ae.value.bottom)
272
- })), ne = d(() => ({
272
+ })), ne = h(() => ({
273
273
  width: pt.value,
274
274
  height: gt.value
275
275
  }));
276
- function qt(t) {
277
- const l = {}, o = {}, a = /* @__PURE__ */ new Set();
278
- return ft.value.forEach(([s, $, J]) => {
279
- l[s] || (l[s] = []), o[$] || (o[$] = []), l[s].push($), o[$].push(s);
280
- }), l[t] && l[t].forEach((s) => a.add(s)), o[t] && o[t].forEach((s) => a.add(s)), Array.from(a).concat(t);
276
+ function qt(o) {
277
+ const l = {}, t = {}, a = /* @__PURE__ */ new Set();
278
+ return ft.value.forEach(([s, $, Z]) => {
279
+ l[s] || (l[s] = []), t[$] || (t[$] = []), l[s].push($), t[$].push(s);
280
+ }), l[o] && l[o].forEach((s) => a.add(s)), t[o] && t[o].forEach((s) => a.add(s)), Array.from(a).concat(o);
281
281
  }
282
- const w = u(null), K = u(null), se = u(null), be = u(!1), Ce = u(null);
283
- function yt(t, l) {
284
- j.value = [], w.value = qt(t.name), K.value = t.name, Ce.value = t.id;
285
- const o = t.name, a = ft.value;
286
- let s = 0, $ = 0, J = [], ue = [];
287
- const ie = new Set(a.map(([v]) => v)), Ae = new Set(a.map(([, v]) => v)), Ye = Array.from(ie).filter((v) => !Ae.has(v)), Q = a.filter(([v]) => Ye.includes(v)).reduce((v, [m, V, X]) => v + X, 0), B = {};
288
- _.value.nodes.forEach((v) => {
289
- B[v.name] = v.color;
290
- }), a.forEach(([v, m, V]) => {
291
- m === o && (s += V, J.push({ source: v, value: V, color: B[v] })), v === o && ($ += V, ue.push({ target: m, value: V, color: B[m] }));
282
+ const w = u(null), Q = u(null), se = u(null), be = u(!1), Ce = u(null);
283
+ function yt(o, l) {
284
+ X.value = [], w.value = qt(o.name), Q.value = o.name, Ce.value = o.id;
285
+ const t = o.name, a = ft.value;
286
+ let s = 0, $ = 0, Z = [], ue = [];
287
+ const ie = new Set(a.map(([v]) => v)), Ae = new Set(a.map(([, v]) => v)), Ye = Array.from(ie).filter((v) => !Ae.has(v)), ee = a.filter(([v]) => Ye.includes(v)).reduce((v, [b, q, K]) => v + K, 0), L = {};
288
+ O.value.nodes.forEach((v) => {
289
+ L[v.name] = v.color;
290
+ }), a.forEach(([v, b, q]) => {
291
+ b === t && (s += q, Z.push({ source: v, value: q, color: L[v] })), v === t && ($ += q, ue.push({ target: b, value: q, color: L[b] }));
292
292
  });
293
- const Te = Math.max(s, $), je = Q > 0 ? Te / Q * 100 : 0, A = {
294
- name: o,
293
+ const Te = Math.max(s, $), je = ee > 0 ? Te / ee * 100 : 0, A = {
294
+ name: t,
295
295
  inflow: s,
296
296
  outflow: $,
297
- from: J,
297
+ from: Z,
298
298
  to: ue,
299
299
  percentOfTotal: je,
300
- color: B[o] || "#000000"
300
+ color: L[t] || "#000000"
301
301
  };
302
302
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: A, seriesIndex: l }), se.value = { datapoint: A }, Fe.value = !0;
303
- let M = "";
303
+ let D = "";
304
304
  const ce = e.value.style.chart.tooltip.customFormat;
305
305
  if (be.value = !1, xo(ce))
306
306
  try {
307
307
  const v = ce({
308
308
  datapoint: A,
309
- series: _.value,
309
+ series: O.value,
310
310
  config: e.value
311
311
  });
312
312
  typeof v == "string" && (Ee.value = v, be.value = !0);
@@ -320,52 +320,52 @@ const Ho = ["id"], Wo = {
320
320
  s: "%",
321
321
  r: e.value.style.chart.tooltip.roundingPercentage
322
322
  })}</div>` : "";
323
- M += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${A.color}">⏹</span>${A.name}${v}</div>`, A.from.length && (M += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, A.from.forEach((m) => {
324
- M += `<div><span style="color:${m.color}">⏹←</span> ${m.source}: ${Ne(
323
+ D += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;"><span style="margin-right:4px; color:${A.color}">⏹</span>${A.name}${v}</div>`, A.from.length && (D += `<div>${e.value.style.chart.tooltip.translations.from}</div>`, A.from.forEach((b) => {
324
+ D += `<div><span style="color:${b.color}">⏹←</span> ${b.source}: ${Ne(
325
325
  e.value.style.chart.nodes.labels.formatter,
326
- m.value,
326
+ b.value,
327
327
  te({
328
328
  p: e.value.style.chart.nodes.labels.prefix,
329
- v: m.value,
329
+ v: b.value,
330
330
  s: e.value.style.chart.nodes.labels.suffix,
331
331
  r: e.value.style.chart.nodes.labels.rounding
332
332
  })
333
333
  )}</div>`;
334
- })), A.to.length && (M += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, A.to.forEach((m) => {
335
- M += `<div><span style="color:${m.color}">⏹→</span> ${m.target}: ${Ne(
334
+ })), A.to.length && (D += `<div style="margin-top:6px;">${e.value.style.chart.tooltip.translations.to}</div>`, A.to.forEach((b) => {
335
+ D += `<div><span style="color:${b.color}">⏹→</span> ${b.target}: ${Ne(
336
336
  e.value.style.chart.nodes.labels.formatter,
337
- m.value,
337
+ b.value,
338
338
  te({
339
339
  p: e.value.style.chart.nodes.labels.prefix,
340
- v: m.value,
340
+ v: b.value,
341
341
  s: e.value.style.chart.nodes.labels.suffix,
342
342
  r: e.value.style.chart.nodes.labels.rounding
343
343
  })
344
344
  )}</div>`;
345
- })), Ee.value = M;
345
+ })), Ee.value = D;
346
346
  }
347
347
  }
348
- function ke(t) {
348
+ function ke(o) {
349
349
  Ce.value = null;
350
350
  const l = se.value;
351
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: t }), w.value = null, K.value = null, Fe.value = !1;
351
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), w.value = null, Q.value = null, Fe.value = !1;
352
352
  }
353
- function Re(t) {
353
+ function Re(o) {
354
354
  const l = se.value;
355
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: t });
355
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
356
356
  }
357
- const bt = d(() => _.value.links.map(
358
- ({ source: t, target: l, sourceColor: o, targetColor: a, value: s }) => ({
359
- source: t,
357
+ const bt = h(() => O.value.links.map(
358
+ ({ source: o, target: l, sourceColor: t, targetColor: a, value: s }) => ({
359
+ source: o,
360
360
  target: l,
361
- sourceColor: o,
361
+ sourceColor: t,
362
362
  targetColor: a,
363
363
  value: s
364
364
  })
365
365
  ));
366
- function He(t = null) {
366
+ function He(o = null) {
367
367
  Ft(() => {
368
- const l = bt.value.map((s, $) => [[s.source], [s.target], [s.value]]), o = [
368
+ const l = bt.value.map((s, $) => [[s.source], [s.target], [s.value]]), t = [
369
369
  [e.value.style.chart.title.text],
370
370
  [e.value.style.chart.title.subtitle.text],
371
371
  [
@@ -373,15 +373,15 @@ const Ho = ["id"], Wo = {
373
373
  [e.value.table.columnNames.target],
374
374
  [e.value.table.columnNames.value]
375
375
  ]
376
- ].concat(l), a = Ao(o);
377
- t ? t(a) : To({
376
+ ].concat(l), a = Ao(t);
377
+ o ? o(a) : To({
378
378
  csvContent: a,
379
379
  title: e.value.style.chart.title.text || "vue-ui-flow"
380
380
  });
381
381
  });
382
382
  }
383
- const we = d(() => {
384
- const t = [
383
+ const we = h(() => {
384
+ const o = [
385
385
  e.value.table.columnNames.source,
386
386
  e.value.table.columnNames.target,
387
387
  e.value.table.columnNames.value
@@ -402,7 +402,7 @@ const Ho = ["id"], Wo = {
402
402
  s: e.value.style.chart.nodes.labels.suffix,
403
403
  r: e.value.style.chart.nodes.labels.rounding
404
404
  })
405
- ]), o = {
405
+ ]), t = {
406
406
  th: {
407
407
  backgroundColor: e.value.table.th.backgroundColor,
408
408
  color: e.value.table.th.color,
@@ -421,13 +421,13 @@ const Ho = ["id"], Wo = {
421
421
  e.value.table.columnNames.target,
422
422
  e.value.table.columnNames.value
423
423
  ],
424
- head: t,
424
+ head: o,
425
425
  body: l,
426
- config: o
426
+ config: t
427
427
  };
428
428
  });
429
429
  function Kt() {
430
- return _.value;
430
+ return O.value;
431
431
  }
432
432
  function Ct() {
433
433
  S.value.showTable = !S.value.showTable;
@@ -439,39 +439,39 @@ const Ho = ["id"], Wo = {
439
439
  function kt() {
440
440
  S.value.showTooltip = !S.value.showTooltip;
441
441
  }
442
- const wt = d(() => {
443
- const t = new Set(
444
- _.value.nodes.map(
442
+ const wt = h(() => {
443
+ const o = new Set(
444
+ O.value.nodes.map(
445
445
  (l) => e.value.nodeCategories[l.name] || "__uncategorized__"
446
446
  )
447
447
  );
448
- return Array.from(t).map((l) => ({
448
+ return Array.from(o).map((l) => ({
449
449
  name: l,
450
- color: e.value.nodeCategoryColors[l] || D[0],
450
+ color: e.value.nodeCategoryColors[l] || z[0],
451
451
  shape: "square",
452
- count: _.value.nodes.filter(
453
- (o) => (e.value.nodeCategories[o.name] || "__uncategorized__") === l
452
+ count: O.value.nodes.filter(
453
+ (t) => (e.value.nodeCategories[t.name] || "__uncategorized__") === l
454
454
  ).length
455
- })).map((l, o) => ({
455
+ })).map((l, t) => ({
456
456
  ...l,
457
- segregate: () => Ue({ legend: l, i: o }),
458
- opacity: j.value.length ? j.value.includes(o) ? 1 : 0.5 : 1,
457
+ segregate: () => Ue({ legend: l, i: t }),
458
+ opacity: X.value.length ? X.value.includes(t) ? 1 : 0.5 : 1,
459
459
  display: `${l.name} (${l.count})`
460
460
  }));
461
- }), Ge = d(
462
- () => wt.value.filter((t) => t.name !== "__uncategorized__")
463
- ), j = u([]);
464
- function Ue({ legend: t, i: l }) {
465
- const o = t.name;
461
+ }), Ge = h(
462
+ () => wt.value.filter((o) => o.name !== "__uncategorized__")
463
+ ), X = u([]);
464
+ function Ue({ legend: o, i: l }) {
465
+ const t = o.name;
466
466
  if (w.value?.every(
467
- (a) => e.value.nodeCategories[a] === o
467
+ (a) => e.value.nodeCategories[a] === t
468
468
  )) {
469
- w.value = null, K.value = null, j.value = [];
469
+ w.value = null, Q.value = null, X.value = [];
470
470
  return;
471
471
  }
472
- j.value = [l], w.value = _.value.nodes.filter((a) => e.value.nodeCategories[a.name] === o).map((a) => a.name), K.value = null;
472
+ X.value = [l], w.value = O.value.nodes.filter((a) => e.value.nodeCategories[a.name] === t).map((a) => a.name), Q.value = null;
473
473
  }
474
- const Jt = d(() => ({
474
+ const Jt = h(() => ({
475
475
  cy: "flow-legend",
476
476
  backgroundColor: e.value.style.chart.legend.backgroundColor,
477
477
  color: e.value.style.chart.legend.color,
@@ -479,29 +479,29 @@ const Ho = ["id"], Wo = {
479
479
  paddingBottom: e.value.style.chart.legend.paddingBottom,
480
480
  fontWeight: e.value.style.chart.legend.bold ? "bold" : "normal"
481
481
  }));
482
- async function Qt({ scale: t = 2 } = {}) {
482
+ async function Qt({ scale: o = 2 } = {}) {
483
483
  if (!I.value) return;
484
- const { width: l, height: o } = I.value.getBoundingClientRect(), a = l / o, { imageUri: s, base64: $ } = await zo({ domElement: I.value, base64: !0, img: !0, scale: t });
484
+ const { width: l, height: t } = I.value.getBoundingClientRect(), a = l / t, { imageUri: s, base64: $ } = await zo({ domElement: I.value, base64: !0, img: !0, scale: o });
485
485
  return {
486
486
  imageUri: s,
487
487
  base64: $,
488
488
  title: e.value.style.chart.title.text,
489
489
  width: l,
490
- height: o,
490
+ height: t,
491
491
  aspectRatio: a
492
492
  };
493
493
  }
494
- const re = d(() => {
495
- const t = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
494
+ const re = h(() => {
495
+ const o = e.value.table.useDialog && !e.value.table.show, l = S.value.showTable;
496
496
  return {
497
- component: t ? Ut : zt,
497
+ component: o ? Ut : zt,
498
498
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
499
- props: t ? {
499
+ props: o ? {
500
500
  backgroundColor: e.value.table.th.backgroundColor,
501
501
  color: e.value.table.th.color,
502
502
  headerColor: e.value.table.th.color,
503
503
  headerBg: e.value.table.th.backgroundColor,
504
- isFullscreen: Y.value,
504
+ isFullscreen: V.value,
505
505
  fullscreenParent: I.value,
506
506
  forcedWidth: Math.min(800, window.innerWidth * 0.8)
507
507
  } : {
@@ -521,33 +521,33 @@ const Ho = ["id"], Wo = {
521
521
  }
522
522
  };
523
523
  });
524
- Se(() => S.value.showTable, (t) => {
525
- e.value.table.show || (t && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
524
+ Se(() => S.value.showTable, (o) => {
525
+ e.value.table.show || (o && e.value.table.useDialog && le.value ? le.value.open() : "close" in le.value && le.value.close());
526
526
  });
527
527
  function $t() {
528
528
  S.value.showTable = !1, Ie.value && Ie.value.setTableIconState(!1);
529
529
  }
530
- const Zt = d(() => Ge.value.map((t) => ({
531
- ...t,
532
- name: t.display
533
- }))), eo = d(() => e.value.style.chart.backgroundColor), to = d(() => e.value.style.chart.legend), oo = d(() => e.value.style.chart.title), { exportSvg: lo, getSvg: ao } = Io({
530
+ const Zt = h(() => Ge.value.map((o) => ({
531
+ ...o,
532
+ name: o.display
533
+ }))), eo = h(() => e.value.style.chart.backgroundColor), to = h(() => e.value.style.chart.legend), oo = h(() => e.value.style.chart.title), { exportSvg: lo, getSvg: ao } = Io({
534
534
  svg: Le,
535
535
  title: oo,
536
536
  legend: to,
537
537
  legendItems: Zt,
538
538
  backgroundColor: eo
539
539
  });
540
- async function At({ isCb: t }) {
541
- if (t) {
542
- const { blob: l, url: o, text: a, dataUrl: s } = await ao();
543
- e.value.userOptions.callbacks.svg({ blob: l, url: o, text: a, dataUrl: s });
540
+ async function At({ isCb: o }) {
541
+ if (o) {
542
+ const { blob: l, url: t, text: a, dataUrl: s } = await ao();
543
+ e.value.userOptions.callbacks.svg({ blob: l, url: t, text: a, dataUrl: s });
544
544
  } else
545
545
  lo();
546
546
  }
547
- async function no(t, l) {
548
- if (yt(t, l), S.value.showTooltip && (await Ft(), I.value && Pe.value)) {
549
- const { left: o, top: a } = I.value.getBoundingClientRect();
550
- Pe.value.placeTooltip({ x: (o ?? 0) + 12, y: (a ?? 0) + 12 });
547
+ async function no(o, l) {
548
+ if (yt(o, l), S.value.showTooltip && (await Ft(), I.value && Pe.value)) {
549
+ const { left: t, top: a } = I.value.getBoundingClientRect();
550
+ Pe.value.placeTooltip({ x: (t ?? 0) + 12, y: (a ?? 0) + 12 });
551
551
  }
552
552
  }
553
553
  return Bt({
@@ -563,31 +563,51 @@ const Ho = ["id"], Wo = {
563
563
  drillCategory: Ue,
564
564
  unselectNode: ke,
565
565
  toggleFullscreen: at
566
- }), (t, l) => (c(), g("div", {
566
+ }), (o, l) => (c(), y("div", {
567
567
  ref_key: "flowChart",
568
568
  ref: I,
569
- class: _t(`vue-data-ui-component vue-ui-flow ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
570
- style: W(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
571
- id: `flow_${U.value}`,
569
+ class: Ot(`vue-data-ui-component vue-ui-flow ${V.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
570
+ style: U(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
571
+ id: `flow_${j.value}`,
572
572
  onMouseenter: l[2] || (l[2] = () => r(st)(!0)),
573
573
  onMouseleave: l[3] || (l[3] = () => r(st)(!1))
574
574
  }, [
575
- e.value.userOptions.buttons.annotator ? (c(), q(r(Ht), {
575
+ e.value.userOptions.buttons.annotator ? (c(), J(r(Ht), {
576
576
  key: 0,
577
577
  svgRef: r(Le),
578
578
  backgroundColor: e.value.style.chart.backgroundColor,
579
579
  color: e.value.style.chart.color,
580
580
  active: $e.value,
581
581
  onClose: We
582
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : T("", !0),
583
- Vt.value ? (c(), g("div", Wo, null, 512)) : T("", !0),
584
- e.value.style.chart.title.text ? (c(), g("div", {
582
+ }, {
583
+ "annotator-action-close": d(() => [
584
+ f(o.$slots, "annotator-action-close", {}, void 0, !0)
585
+ ]),
586
+ "annotator-action-color": d(({ color: t }) => [
587
+ f(o.$slots, "annotator-action-color", M(B({ color: t })), void 0, !0)
588
+ ]),
589
+ "annotator-action-draw": d(({ mode: t }) => [
590
+ f(o.$slots, "annotator-action-draw", M(B({ mode: t })), void 0, !0)
591
+ ]),
592
+ "annotator-action-undo": d(({ disabled: t }) => [
593
+ f(o.$slots, "annotator-action-undo", M(B({ disabled: t })), void 0, !0)
594
+ ]),
595
+ "annotator-action-redo": d(({ disabled: t }) => [
596
+ f(o.$slots, "annotator-action-redo", M(B({ disabled: t })), void 0, !0)
597
+ ]),
598
+ "annotator-action-delete": d(({ disabled: t }) => [
599
+ f(o.$slots, "annotator-action-delete", M(B({ disabled: t })), void 0, !0)
600
+ ]),
601
+ _: 3
602
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : T("", !0),
603
+ Vt.value ? (c(), y("div", Wo, null, 512)) : T("", !0),
604
+ e.value.style.chart.title.text ? (c(), y("div", {
585
605
  key: 2,
586
606
  ref_key: "chartTitle",
587
607
  ref: et,
588
608
  style: "width:100%;background:transparent;padding-bottom:24px"
589
609
  }, [
590
- (c(), q(Lo, {
610
+ (c(), J(Lo, {
591
611
  key: `title_${Qe.value}`,
592
612
  config: {
593
613
  title: {
@@ -601,10 +621,10 @@ const Ho = ["id"], Wo = {
601
621
  }
602
622
  }, null, 8, ["config"]))
603
623
  ], 512)) : T("", !0),
604
- G("div", {
605
- id: `legend-top-${U.value}`
624
+ Y("div", {
625
+ id: `legend-top-${j.value}`
606
626
  }, null, 8, Go),
607
- e.value.userOptions.show && lt.value && (r(rt) || r(De)) ? (c(), q(r(Wt), {
627
+ e.value.userOptions.show && lt.value && (r(rt) || r(De)) ? (c(), J(r(Wt), {
608
628
  ref_key: "userOptionsRef",
609
629
  ref: Ie,
610
630
  key: `user_option_${Je.value}`,
@@ -612,7 +632,7 @@ const Ho = ["id"], Wo = {
612
632
  color: e.value.style.chart.color,
613
633
  isPrinting: r(ct),
614
634
  isImaging: r(vt),
615
- uid: U.value,
635
+ uid: j.value,
616
636
  hasPdf: e.value.userOptions.buttons.pdf,
617
637
  hasXls: e.value.userOptions.buttons.csv,
618
638
  hasImg: e.value.userOptions.buttons.img,
@@ -620,7 +640,7 @@ const Ho = ["id"], Wo = {
620
640
  hasTable: e.value.userOptions.buttons.table,
621
641
  callbacks: e.value.userOptions.callbacks,
622
642
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
623
- isFullscreen: Y.value,
643
+ isFullscreen: V.value,
624
644
  titles: { ...e.value.userOptions.buttonTitles },
625
645
  chartElement: I.value,
626
646
  position: e.value.userOptions.position,
@@ -638,92 +658,92 @@ const Ho = ["id"], Wo = {
638
658
  onGenerateSvg: At,
639
659
  onToggleTable: Ct,
640
660
  onToggleAnnotator: We,
641
- style: W({
661
+ style: U({
642
662
  visibility: r(rt) ? r(De) ? "visible" : "hidden" : "visible"
643
663
  })
644
- }, Ot({ _: 2 }, [
645
- t.$slots.menuIcon ? {
664
+ }, _t({ _: 2 }, [
665
+ o.$slots.menuIcon ? {
646
666
  name: "menuIcon",
647
- fn: y(({ isOpen: o, color: a }) => [
648
- C(t.$slots, "menuIcon", Z(ee({ isOpen: o, color: a })), void 0, !0)
667
+ fn: d(({ isOpen: t, color: a }) => [
668
+ f(o.$slots, "menuIcon", M(B({ isOpen: t, color: a })), void 0, !0)
649
669
  ]),
650
670
  key: "0"
651
671
  } : void 0,
652
- t.$slots.optionTooltip ? {
672
+ o.$slots.optionTooltip ? {
653
673
  name: "optionTooltip",
654
- fn: y(() => [
655
- C(t.$slots, "optionTooltip", {}, void 0, !0)
674
+ fn: d(() => [
675
+ f(o.$slots, "optionTooltip", {}, void 0, !0)
656
676
  ]),
657
677
  key: "1"
658
678
  } : void 0,
659
- t.$slots.optionPdf ? {
679
+ o.$slots.optionPdf ? {
660
680
  name: "optionPdf",
661
- fn: y(() => [
662
- C(t.$slots, "optionPdf", {}, void 0, !0)
681
+ fn: d(() => [
682
+ f(o.$slots, "optionPdf", {}, void 0, !0)
663
683
  ]),
664
684
  key: "2"
665
685
  } : void 0,
666
- t.$slots.optionCsv ? {
686
+ o.$slots.optionCsv ? {
667
687
  name: "optionCsv",
668
- fn: y(() => [
669
- C(t.$slots, "optionCsv", {}, void 0, !0)
688
+ fn: d(() => [
689
+ f(o.$slots, "optionCsv", {}, void 0, !0)
670
690
  ]),
671
691
  key: "3"
672
692
  } : void 0,
673
- t.$slots.optionImg ? {
693
+ o.$slots.optionImg ? {
674
694
  name: "optionImg",
675
- fn: y(() => [
676
- C(t.$slots, "optionImg", {}, void 0, !0)
695
+ fn: d(() => [
696
+ f(o.$slots, "optionImg", {}, void 0, !0)
677
697
  ]),
678
698
  key: "4"
679
699
  } : void 0,
680
- t.$slots.optionSvg ? {
700
+ o.$slots.optionSvg ? {
681
701
  name: "optionSvg",
682
- fn: y(() => [
683
- C(t.$slots, "optionSvg", {}, void 0, !0)
702
+ fn: d(() => [
703
+ f(o.$slots, "optionSvg", {}, void 0, !0)
684
704
  ]),
685
705
  key: "5"
686
706
  } : void 0,
687
- t.$slots.optionTable ? {
707
+ o.$slots.optionTable ? {
688
708
  name: "optionTable",
689
- fn: y(() => [
690
- C(t.$slots, "optionTable", {}, void 0, !0)
709
+ fn: d(() => [
710
+ f(o.$slots, "optionTable", {}, void 0, !0)
691
711
  ]),
692
712
  key: "6"
693
713
  } : void 0,
694
- t.$slots.optionFullscreen ? {
714
+ o.$slots.optionFullscreen ? {
695
715
  name: "optionFullscreen",
696
- fn: y(({ toggleFullscreen: o, isFullscreen: a }) => [
697
- C(t.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: o, isFullscreen: a })), void 0, !0)
716
+ fn: d(({ toggleFullscreen: t, isFullscreen: a }) => [
717
+ f(o.$slots, "optionFullscreen", M(B({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
698
718
  ]),
699
719
  key: "7"
700
720
  } : void 0,
701
- t.$slots.optionAnnotator ? {
721
+ o.$slots.optionAnnotator ? {
702
722
  name: "optionAnnotator",
703
- fn: y(({ toggleAnnotator: o, isAnnotator: a }) => [
704
- C(t.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: o, isAnnotator: a })), void 0, !0)
723
+ fn: d(({ toggleAnnotator: t, isAnnotator: a }) => [
724
+ f(o.$slots, "optionAnnotator", M(B({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
705
725
  ]),
706
726
  key: "8"
707
727
  } : void 0
708
728
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "callbacks", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "printScale", "isAnnotation", "hasTooltip", "isTooltip", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : T("", !0),
709
- (c(), g("svg", {
729
+ (c(), y("svg", {
710
730
  ref_key: "svgRef",
711
731
  ref: Le,
712
732
  xmlns: r(wo),
713
733
  viewBox: `0 0 ${ne.value.width} ${ne.value.height}`,
714
- class: _t({
715
- "vue-data-ui-fullscreen--on": Y.value,
716
- "vue-data-ui-fulscreen--off": !Y.value
734
+ class: Ot({
735
+ "vue-data-ui-fullscreen--on": V.value,
736
+ "vue-data-ui-fulscreen--off": !V.value
717
737
  }),
718
- style: W({
738
+ style: U({
719
739
  maxWidth: "100%",
720
740
  overflow: "visible",
721
741
  background: "transparent",
722
742
  color: e.value.style.chart.color
723
743
  })
724
744
  }, [
725
- _e(r(Gt)),
726
- t.$slots["chart-background"] ? (c(), g("foreignObject", {
745
+ Oe(r(Gt)),
746
+ o.$slots["chart-background"] ? (c(), y("foreignObject", {
727
747
  key: 0,
728
748
  x: 0,
729
749
  y: 0,
@@ -733,65 +753,65 @@ const Ho = ["id"], Wo = {
733
753
  pointerEvents: "none"
734
754
  }
735
755
  }, [
736
- C(t.$slots, "chart-background", {}, void 0, !0)
756
+ f(o.$slots, "chart-background", {}, void 0, !0)
737
757
  ], 8, Yo)) : T("", !0),
738
- G("defs", null, [
739
- (c(!0), g(de, null, he(_.value.links, (o, a) => (c(), g("linearGradient", {
740
- id: o.id,
758
+ Y("defs", null, [
759
+ (c(!0), y(de, null, he(O.value.links, (t, a) => (c(), y("linearGradient", {
760
+ id: t.id,
741
761
  x1: "0%",
742
762
  y1: "0%",
743
763
  x2: "100%",
744
764
  y2: "0%"
745
765
  }, [
746
- G("stop", {
766
+ Y("stop", {
747
767
  offset: "0%",
748
- "stop-color": o.sourceColor
768
+ "stop-color": t.sourceColor
749
769
  }, null, 8, Vo),
750
- G("stop", {
770
+ Y("stop", {
751
771
  offset: "100%",
752
- "stop-color": o.targetColor
772
+ "stop-color": t.targetColor
753
773
  }, null, 8, Xo)
754
774
  ], 8, jo))), 256))
755
775
  ]),
756
- (c(!0), g(de, null, he(_.value.links, (o) => (c(), g("path", {
776
+ (c(!0), y(de, null, he(O.value.links, (t) => (c(), y("path", {
757
777
  class: "vue-ui-flow-link",
758
- d: o.path,
778
+ d: t.path,
759
779
  "stroke-linejoin": "round",
760
780
  "stroke-miterlimit": "1",
761
- fill: `url(#${o.id})`,
781
+ fill: `url(#${t.id})`,
762
782
  stroke: e.value.style.chart.links.stroke,
763
783
  "stroke-width": e.value.style.chart.links.strokeWidth,
764
- style: W(`
765
- opacity:${w.value ? w.value.includes(o.source) && w.value.includes(o.target) ? 1 : 0.3 : K.value ? [o.target, o.source].includes(K.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
784
+ style: U(`
785
+ opacity:${w.value ? w.value.includes(t.source) && w.value.includes(t.target) ? 1 : 0.3 : Q.value ? [t.target, t.source].includes(Q.value) ? 1 : 0.3 : e.value.style.chart.links.opacity}
766
786
  `)
767
787
  }, null, 12, qo))), 256)),
768
- (c(!0), g(de, null, he(_.value.nodes, (o, a) => (c(), g("rect", {
788
+ (c(!0), y(de, null, he(O.value.nodes, (t, a) => (c(), y("rect", {
769
789
  class: "vue-ui-flow-node",
770
- x: o.x,
771
- y: r(x)(o.absoluteY) + e.value.style.chart.padding.top,
772
- height: r(x)(o.height),
790
+ x: t.x,
791
+ y: r(x)(t.absoluteY) + e.value.style.chart.padding.top,
792
+ height: r(x)(t.height),
773
793
  width: ye.value,
774
- fill: o.color,
794
+ fill: t.color,
775
795
  stroke: e.value.style.chart.nodes.stroke,
776
796
  "stroke-width": e.value.style.chart.nodes.strokeWidth,
777
797
  rx: e.value.style.chart.nodes.borderRadius,
778
- style: W({
779
- opacity: w.value ? w.value.includes(o.name) ? 1 : 0.3 : 1,
780
- outline: Ce.value !== null && Ce.value === o.id ? "2px solid currentColor" : void 0
798
+ style: U({
799
+ opacity: w.value ? w.value.includes(t.name) ? 1 : 0.3 : 1,
800
+ outline: Ce.value !== null && Ce.value === t.id ? "2px solid currentColor" : void 0
781
801
  }),
782
802
  role: "button",
783
803
  tabindex: "0",
784
- "aria-label": `${o.name}: ${r(Ne)(
804
+ "aria-label": `${t.name}: ${r(Ne)(
785
805
  e.value.style.chart.nodes.labels.formatter,
786
- o.value,
806
+ t.value,
787
807
  r(te)({
788
808
  p: e.value.style.chart.nodes.labels.prefix,
789
- v: o.value,
809
+ v: t.value,
790
810
  s: e.value.style.chart.nodes.labels.suffix,
791
811
  r: e.value.style.chart.nodes.labels.rounding
792
812
  })
793
813
  )}`,
794
- onMouseenter: (s) => yt(o, a),
814
+ onMouseenter: (s) => yt(t, a),
795
815
  onMouseleave: (s) => ke(a),
796
816
  onClick: (s) => Re(a),
797
817
  onKeydown: [
@@ -799,87 +819,87 @@ const Ho = ["id"], Wo = {
799
819
  qe(Ke((s) => Re(a), ["prevent"]), ["space"]),
800
820
  qe(Ke((s) => ke(a), ["prevent"]), ["esc"])
801
821
  ],
802
- onFocus: (s) => no(o, a),
822
+ onFocus: (s) => no(t, a),
803
823
  onBlur: (s) => ke(a)
804
824
  }, null, 44, Ko))), 256)),
805
- e.value.style.chart.nodes.labels.show ? (c(), g("g", Jo, [
806
- (c(!0), g(de, null, he(_.value.nodes, (o, a) => (c(), g("text", {
807
- x: o.x + ye.value / 2,
825
+ e.value.style.chart.nodes.labels.show ? (c(), y("g", Jo, [
826
+ (c(!0), y(de, null, he(O.value.nodes, (t, a) => (c(), y("text", {
827
+ x: t.x + ye.value / 2,
808
828
  y: r(x)(
809
- o.absoluteY + o.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
829
+ t.absoluteY + t.height / 2 - e.value.style.chart.nodes.labels.fontSize / 4
810
830
  ) + e.value.style.chart.padding.top,
811
831
  "font-size": e.value.style.chart.nodes.labels.fontSize,
812
- fill: r(It)(o.color),
832
+ fill: r(It)(t.color),
813
833
  "text-anchor": "middle",
814
- style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(o.name) ? 1 : 0 : 1}`)
834
+ style: U(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
815
835
  }, fe(e.value.style.chart.nodes.labels.abbreviation.use ? r($o)({
816
- source: o.name,
836
+ source: t.name,
817
837
  length: e.value.style.chart.nodes.labels.abbreviation.length
818
- }) : o.name), 13, Qo))), 256)),
819
- (c(!0), g(de, null, he(_.value.nodes, (o, a) => (c(), g("text", {
820
- x: o.x + ye.value / 2,
838
+ }) : t.name), 13, Qo))), 256)),
839
+ (c(!0), y(de, null, he(O.value.nodes, (t, a) => (c(), y("text", {
840
+ x: t.x + ye.value / 2,
821
841
  y: r(x)(
822
- o.absoluteY + o.height / 2 + e.value.style.chart.nodes.labels.fontSize
842
+ t.absoluteY + t.height / 2 + e.value.style.chart.nodes.labels.fontSize
823
843
  ) + e.value.style.chart.padding.top,
824
844
  "font-size": e.value.style.chart.nodes.labels.fontSize,
825
- fill: r(It)(o.color),
845
+ fill: r(It)(t.color),
826
846
  "text-anchor": "middle",
827
- style: W(`pointer-events: none; opacity:${w.value ? w.value.includes(o.name) ? 1 : 0 : 1}`)
847
+ style: U(`pointer-events: none; opacity:${w.value ? w.value.includes(t.name) ? 1 : 0 : 1}`)
828
848
  }, fe(r(Ne)(
829
849
  e.value.style.chart.nodes.labels.formatter,
830
- o.value,
850
+ t.value,
831
851
  r(te)({
832
852
  p: e.value.style.chart.nodes.labels.prefix,
833
- v: o.value,
853
+ v: t.value,
834
854
  s: e.value.style.chart.nodes.labels.suffix,
835
855
  r: e.value.style.chart.nodes.labels.rounding
836
856
  }),
837
- { datapoint: o, seriesIndex: a }
857
+ { datapoint: t, seriesIndex: a }
838
858
  )), 13, Zo))), 256))
839
859
  ])) : T("", !0),
840
- C(t.$slots, "svg", { svg: ne.value }, void 0, !0)
860
+ f(o.$slots, "svg", { svg: ne.value }, void 0, !0)
841
861
  ], 14, Uo)),
842
- t.$slots.watermark ? (c(), g("div", el, [
843
- C(t.$slots, "watermark", Z(ee({ isPrinting: r(ct) || r(vt) })), void 0, !0)
862
+ o.$slots.watermark ? (c(), y("div", el, [
863
+ f(o.$slots, "watermark", M(B({ isPrinting: r(ct) || r(vt) })), void 0, !0)
844
864
  ])) : T("", !0),
845
- G("div", {
846
- id: `legend-bottom-${U.value}`
865
+ Y("div", {
866
+ id: `legend-bottom-${j.value}`
847
867
  }, null, 8, tl),
848
- ot.value ? (c(), q(fo, {
868
+ ot.value ? (c(), J(fo, {
849
869
  key: 5,
850
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${U.value}` : `#legend-bottom-${U.value}`
870
+ to: e.value.style.chart.legend.position === "top" ? `#legend-top-${j.value}` : `#legend-bottom-${j.value}`
851
871
  }, [
852
- G("div", {
872
+ Y("div", {
853
873
  ref_key: "chartLegend",
854
874
  ref: Ze
855
875
  }, [
856
- e.value.style.chart.legend.show && Ge.value.length ? (c(), q(Do, {
876
+ e.value.style.chart.legend.show && Ge.value.length ? (c(), J(Do, {
857
877
  key: 0,
858
878
  legendSet: Ge.value,
859
879
  config: Jt.value,
860
- onClickMarker: l[0] || (l[0] = (o) => Ue(o))
880
+ onClickMarker: l[0] || (l[0] = (t) => Ue(t))
861
881
  }, {
862
- item: y(({ legend: o, index: a }) => [
863
- r(Me) ? T("", !0) : (c(), g("div", {
882
+ item: d(({ legend: t, index: a }) => [
883
+ r(Me) ? T("", !0) : (c(), y("div", {
864
884
  key: 0,
865
- onClick: (s) => o.segregate(),
866
- style: W(`opacity:${j.value.length ? j.value.includes(a) ? 1 : 0.5 : 1}`)
867
- }, fe(o.display), 13, ol))
885
+ onClick: (s) => t.segregate(),
886
+ style: U(`opacity:${X.value.length ? X.value.includes(a) ? 1 : 0.5 : 1}`)
887
+ }, fe(t.display), 13, ol))
868
888
  ]),
869
889
  _: 1
870
890
  }, 8, ["legendSet", "config"])) : T("", !0),
871
- C(t.$slots, "legend", { legend: wt.value }, void 0, !0)
891
+ f(o.$slots, "legend", { legend: wt.value }, void 0, !0)
872
892
  ], 512)
873
893
  ], 8, ["to"])) : T("", !0),
874
- t.$slots.source ? (c(), g("div", {
894
+ o.$slots.source ? (c(), y("div", {
875
895
  key: 6,
876
896
  ref_key: "source",
877
897
  ref: tt,
878
898
  dir: "auto"
879
899
  }, [
880
- C(t.$slots, "source", {}, void 0, !0)
900
+ f(o.$slots, "source", {}, void 0, !0)
881
901
  ], 512)) : T("", !0),
882
- _e(r(Dt), {
902
+ Oe(r(Dt), {
883
903
  ref_key: "tooltip",
884
904
  ref: Pe,
885
905
  show: S.value.showTooltip && Fe.value,
@@ -895,27 +915,27 @@ const Ho = ["id"], Wo = {
895
915
  parent: I.value,
896
916
  content: Ee.value,
897
917
  isCustom: be.value,
898
- isFullscreen: Y.value,
918
+ isFullscreen: V.value,
899
919
  smooth: e.value.style.chart.tooltip.smooth,
900
920
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
901
921
  smoothForce: e.value.style.chart.tooltip.smoothForce,
902
922
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
903
923
  }, {
904
- "tooltip-before": y(() => [
905
- C(t.$slots, "tooltip-before", Z(ee({ ...se.value })), void 0, !0)
924
+ "tooltip-before": d(() => [
925
+ f(o.$slots, "tooltip-before", M(B({ ...se.value })), void 0, !0)
906
926
  ]),
907
- "tooltip-after": y(() => [
908
- C(t.$slots, "tooltip-after", Z(ee({ ...se.value })), void 0, !0)
927
+ "tooltip-after": d(() => [
928
+ f(o.$slots, "tooltip-after", M(B({ ...se.value })), void 0, !0)
909
929
  ]),
910
930
  _: 3
911
931
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
912
- lt.value && e.value.userOptions.buttons.table ? (c(), q(po(re.value.component), go({ key: 7 }, re.value.props, {
932
+ lt.value && e.value.userOptions.buttons.table ? (c(), J(po(re.value.component), go({ key: 7 }, re.value.props, {
913
933
  ref_key: "tableUnit",
914
934
  ref: le,
915
935
  onClose: $t
916
- }), Ot({
917
- content: y(() => [
918
- _e(r(Rt), {
936
+ }), _t({
937
+ content: d(() => [
938
+ Oe(r(Rt), {
919
939
  colNames: we.value.colNames,
920
940
  head: we.value.head,
921
941
  body: we.value.body,
@@ -924,14 +944,14 @@ const Ho = ["id"], Wo = {
924
944
  withCloseButton: !e.value.table.useDialog,
925
945
  onClose: $t
926
946
  }, {
927
- th: y(({ th: o }) => [
928
- G("div", {
929
- innerHTML: o,
947
+ th: d(({ th: t }) => [
948
+ Y("div", {
949
+ innerHTML: t,
930
950
  style: { display: "flex", "align-items": "center" }
931
951
  }, null, 8, ll)
932
952
  ]),
933
- td: y(({ td: o }) => [
934
- Nt(fe(o.name || o), 1)
953
+ td: d(({ td: t }) => [
954
+ Nt(fe(t.name || t), 1)
935
955
  ]),
936
956
  _: 1
937
957
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"])
@@ -940,20 +960,20 @@ const Ho = ["id"], Wo = {
940
960
  }, [
941
961
  e.value.table.useDialog ? {
942
962
  name: "title",
943
- fn: y(() => [
963
+ fn: d(() => [
944
964
  Nt(fe(re.value.title), 1)
945
965
  ]),
946
966
  key: "0"
947
967
  } : void 0,
948
968
  e.value.table.useDialog ? {
949
969
  name: "actions",
950
- fn: y(() => [
951
- G("button", {
970
+ fn: d(() => [
971
+ Y("button", {
952
972
  tabindex: "0",
953
973
  class: "vue-ui-user-options-button",
954
- onClick: l[1] || (l[1] = (o) => He(e.value.userOptions.callbacks.csv))
974
+ onClick: l[1] || (l[1] = (t) => He(e.value.userOptions.callbacks.csv))
955
975
  }, [
956
- _e(r(Lt), {
976
+ Oe(r(Lt), {
957
977
  name: "excel",
958
978
  stroke: re.value.props.color
959
979
  }, null, 8, ["stroke"])
@@ -962,10 +982,10 @@ const Ho = ["id"], Wo = {
962
982
  key: "1"
963
983
  } : void 0
964
984
  ]), 1040)) : T("", !0),
965
- r(Me) ? (c(), q(Eo, { key: 8 })) : T("", !0)
985
+ r(Me) ? (c(), J(Eo, { key: 8 })) : T("", !0)
966
986
  ], 46, Ho));
967
987
  }
968
- }, bl = /* @__PURE__ */ Ro(al, [["__scopeId", "data-v-a203b5d8"]]);
988
+ }, bl = /* @__PURE__ */ Ro(al, [["__scopeId", "data-v-dc61c391"]]);
969
989
  export {
970
990
  bl as default
971
991
  };