vue-data-ui 3.23.1 → 3.23.2

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 (171) hide show
  1. package/dist/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.js} +1 -1
  2. package/dist/components/vue-ui-3d-bar.js +1 -1
  3. package/dist/components/vue-ui-accordion.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-annotator.js +1 -1
  6. package/dist/components/vue-ui-bullet.js +1 -1
  7. package/dist/components/vue-ui-bump.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-dag.js +1 -1
  15. package/dist/components/vue-ui-dashboard.js +1 -1
  16. package/dist/components/vue-ui-digits.js +1 -1
  17. package/dist/components/vue-ui-donut-evolution.js +1 -1
  18. package/dist/components/vue-ui-donut.js +1 -1
  19. package/dist/components/vue-ui-dumbbell.js +1 -1
  20. package/dist/components/vue-ui-flow.js +1 -1
  21. package/dist/components/vue-ui-funnel.js +1 -1
  22. package/dist/components/vue-ui-galaxy.js +1 -1
  23. package/dist/components/vue-ui-gauge.js +1 -1
  24. package/dist/components/vue-ui-geo.js +1 -1
  25. package/dist/components/vue-ui-gizmo.js +1 -1
  26. package/dist/components/vue-ui-heatmap.js +1 -1
  27. package/dist/components/vue-ui-hill.js +1 -1
  28. package/dist/components/vue-ui-history-plot.js +1 -1
  29. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  30. package/dist/components/vue-ui-kpi.js +1 -1
  31. package/dist/components/vue-ui-mini-loader.js +1 -1
  32. package/dist/components/vue-ui-molecule.js +1 -1
  33. package/dist/components/vue-ui-mood-radar.js +1 -1
  34. package/dist/components/vue-ui-nested-donuts.js +1 -1
  35. package/dist/components/vue-ui-onion.js +1 -1
  36. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  37. package/dist/components/vue-ui-quadrant.js +1 -1
  38. package/dist/components/vue-ui-quick-chart.js +1 -1
  39. package/dist/components/vue-ui-radar.js +1 -1
  40. package/dist/components/vue-ui-rating.js +1 -1
  41. package/dist/components/vue-ui-relation-circle.js +1 -1
  42. package/dist/components/vue-ui-ridgeline.js +1 -1
  43. package/dist/components/vue-ui-rings.js +1 -1
  44. package/dist/components/vue-ui-scatter.js +1 -1
  45. package/dist/components/vue-ui-skeleton.js +1 -1
  46. package/dist/components/vue-ui-smiley.js +1 -1
  47. package/dist/components/vue-ui-spark-trend.js +1 -1
  48. package/dist/components/vue-ui-sparkbar.js +1 -1
  49. package/dist/components/vue-ui-sparkgauge.js +1 -1
  50. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  51. package/dist/components/vue-ui-sparkline.js +1 -1
  52. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  53. package/dist/components/vue-ui-stackbar.js +1 -1
  54. package/dist/components/vue-ui-stackline.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/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
  71. package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
  72. package/dist/ssr/vue-ui-donut.js +1 -1
  73. package/dist/ssr/vue-ui-xy.js +1 -1
  74. package/dist/ssr.js +2 -2
  75. package/dist/style.css +1 -1
  76. package/dist/types/vue-data-ui.d.ts +6 -0
  77. package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
  78. package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
  79. package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
  80. package/dist/utils.js +1 -1
  81. package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
  82. package/dist/vue-data-ui.js +69 -69
  83. package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
  84. package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
  85. package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
  86. package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
  87. package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
  88. package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
  89. package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
  90. package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
  91. package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
  92. package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
  93. package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
  94. package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
  95. package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
  96. package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
  97. package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
  98. package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
  99. package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
  100. package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
  101. package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
  102. package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
  103. package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
  104. package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
  105. package/dist/vue-ui-gauge-CJstpakj.js +932 -0
  106. package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
  107. package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
  108. package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
  109. package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
  110. package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
  111. package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
  112. package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
  113. package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
  114. package/dist/vue-ui-molecule-paWHp18h.js +935 -0
  115. package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
  116. package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
  117. package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
  118. package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
  119. package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
  120. package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
  121. package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
  122. package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
  123. package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
  124. package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
  125. package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
  126. package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
  127. package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
  128. package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
  129. package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
  130. package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
  131. package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
  132. package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
  133. package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
  134. package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
  135. package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
  136. package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
  137. package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
  138. package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
  139. package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
  140. package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
  141. package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
  142. package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
  143. package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
  144. package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
  145. package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
  146. package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
  147. package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
  148. package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
  149. package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
  150. package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
  151. package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
  152. package/package.json +1 -1
  153. package/dist/Slicer-CIk57nL4.js +0 -1163
  154. package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
  155. package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
  156. package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
  157. package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
  158. package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
  159. package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
  160. package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
  161. package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
  162. package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
  163. package/dist/vue-ui-gauge-ByE_txav.js +0 -953
  164. package/dist/vue-ui-hill-BT183G-_.js +0 -1768
  165. package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
  166. package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
  167. package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
  168. package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
  169. package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
  170. package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
  171. package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
2
  import { $ as t, D as n, Jt as r, Kt as i, Pt as a, S as o, X as s, b as c, i as l, jt as u, n as d, q as ee, r as f, t as p, tt as m, w as h, xt as te } from "./lib-Bttd6u5E.js";
3
3
  import { n as ne, t as g } from "./useHints-Dq_w2E8B.js";
4
- import { t as _ } from "./useConfig-D3scuR88.js";
4
+ import { t as _ } from "./useConfig-DlNpz6P8.js";
5
5
  import { t as v } from "./usePrinter-DN5bYhTG.js";
6
6
  import { n as y, t as b } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as x } from "./useSvgExport-DH-FfcqQ.js";
8
- import { t as re } from "./useNestedProp-vPNvh7rV.js";
9
- import { t as S } from "./useThemeCheck-C43Tcqmk.js";
7
+ import { t as x } from "./useNestedProp-vPNvh7rV.js";
8
+ import { t as re } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as S } from "./useChartExport-DNiwdPmb.js";
10
10
  import { t as ie } from "./img-Bnokohej.js";
11
11
  import { n as ae } from "./Title-BE3qg9xl.js";
12
12
  import { t as oe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
@@ -87,25 +87,25 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
87
87
  },
88
88
  emits: ["copyAlt"],
89
89
  setup(e, { expose: oe, emit: De }) {
90
- let Je = O(() => import("./Tooltip-DhjyfHwz.js")), Ye = O(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Xe = O(() => import("./vue-ui-accordion-BxGriZik.js").then((e) => e.n)), Ze = O(() => import("./DataTable-BbKgJ5UI.js")), Qe = O(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), $e = O(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), et = O(() => import("./PackageVersion-D6d8SCp9.js").then((e) => e.t)), tt = O(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_flow: nt } = _(), { isThemeValid: rt, warnInvalidTheme: it } = S(), R = e, at = De, z = N(ee()), B = N(null), ot = N(0), st = N(0), ct = N(!1), lt = N(""), ut = N(null), dt = N(null), ft = N(null), pt = N(null), mt = N(null), ht = N(!1), gt = N(null), _t = N(null), vt = N(null), yt = N(!1), bt = N(!1), xt = N(null), V = N(null), St = N({
90
+ let Je = O(() => import("./Tooltip-DhjyfHwz.js")), Ye = O(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), Xe = O(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), Ze = O(() => import("./DataTable-BbKgJ5UI.js")), Qe = O(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), $e = O(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), et = O(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), tt = O(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_flow: nt } = _(), { isThemeValid: rt, warnInvalidTheme: it } = re(), R = e, at = De, z = N(ee()), B = N(null), ot = N(0), st = N(0), ct = N(!1), lt = N(""), ut = N(null), dt = N(null), ft = N(null), pt = N(null), mt = N(null), ht = N(!1), gt = N(null), _t = N(null), vt = N(null), yt = N(null), V = N(null), bt = N({
91
91
  x: 0,
92
92
  y: 0
93
- }), Ct = N("pointer"), wt = N(!1), Tt = C(() => !!R.dataset && R.dataset.length);
93
+ }), xt = N("pointer"), St = N(!1), Ct = C(() => !!R.dataset && R.dataset.length);
94
94
  Se(() => {
95
- ht.value = !0, Mt();
95
+ ht.value = !0, At();
96
96
  });
97
97
  let H = N(!1);
98
- function Et(e) {
98
+ function wt(e) {
99
99
  H.value = e, ot.value += 1;
100
100
  }
101
- let U = N(It());
101
+ let U = N(Pt());
102
102
  ne({
103
103
  config: () => U.value,
104
104
  dataset: () => R.dataset,
105
105
  component: "VueUiFlow",
106
106
  rules: [g.emptyArray, g.noHint]
107
107
  });
108
- let W = C(() => U.value.userOptions.useCursorPointer), Dt = C(() => r({
108
+ let W = C(() => U.value.userOptions.useCursorPointer), Tt = C(() => r({
109
109
  defaultConfig: {
110
110
  userOptions: { show: !1 },
111
111
  nodeCategories: {
@@ -128,10 +128,10 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
128
128
  } }
129
129
  },
130
130
  userConfig: U.value.skeletonConfig ?? {}
131
- })), { loading: Ot, FINAL_DATASET: kt, manualLoading: At } = y({
131
+ })), { loading: Et, FINAL_DATASET: Dt, manualLoading: Ot } = y({
132
132
  ...Te(R),
133
133
  FINAL_CONFIG: U,
134
- prepareConfig: It,
134
+ prepareConfig: Pt,
135
135
  skeletonDataset: R.config?.skeletonDataset ?? [
136
136
  [
137
137
  "A",
@@ -172,15 +172,15 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
172
172
  ],
173
173
  skeletonConfig: r({
174
174
  defaultConfig: U.value,
175
- userConfig: Dt.value
175
+ userConfig: Tt.value
176
176
  })
177
- }), jt = C(() => !!U.value.debug);
178
- function Mt() {
177
+ }), kt = C(() => U.value.debug);
178
+ function At() {
179
179
  if (u(R.dataset) && (m({
180
180
  componentName: "VueUiFlow",
181
181
  type: "dataset",
182
- debug: jt.value
183
- }), At.value = !0), u(R.dataset) || (At.value = U.value.loading), U.value.responsive) {
182
+ debug: kt.value
183
+ }), Ot.value = !0), u(R.dataset) || (Ot.value = U.value.loading), U.value.responsive) {
184
184
  let e = se(() => {
185
185
  let { width: e, height: t } = ce({
186
186
  chart: B.value,
@@ -189,26 +189,26 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
189
189
  source: ft.value
190
190
  });
191
191
  requestAnimationFrame(() => {
192
- Lt.value = e, Rt.value = t;
192
+ Ft.value = e, It.value = t;
193
193
  });
194
194
  });
195
195
  pt.value && (mt.value && pt.value.unobserve(mt.value), pt.value.disconnect()), pt.value = new ResizeObserver(e), mt.value = B.value.parentNode, pt.value.observe(mt.value);
196
196
  }
197
197
  }
198
- let { userOptionsVisible: Nt, setUserOptionsVisibility: Pt, keepUserOptionState: Ft } = ue({ config: U.value }), { svgRef: G } = de({ config: U.value.style.chart.title });
199
- function It() {
200
- let e = re({
198
+ let { userOptionsVisible: jt, setUserOptionsVisibility: Mt, keepUserOptionState: Nt } = ue({ config: U.value }), { svgRef: G } = de({ config: U.value.style.chart.title });
199
+ function Pt() {
200
+ let e = x({
201
201
  userConfig: R.config,
202
202
  defaultConfig: nt
203
203
  }), t = e, n = e.theme;
204
204
  if (n) if (!rt.value(e)) it(e), t = e;
205
205
  else {
206
- let r = re({
206
+ let r = x({
207
207
  userConfig: pe[n] || R.config,
208
208
  defaultConfig: e
209
209
  });
210
210
  t = {
211
- ...re({
211
+ ...x({
212
212
  userConfig: R.config,
213
213
  defaultConfig: r
214
214
  }),
@@ -218,17 +218,17 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
218
218
  else t = e;
219
219
  return t.nodeCategories = R.config.nodeCategories || {}, t.nodeCategoryColors = R.config.nodeCategoryColors || {}, t;
220
220
  }
221
- let Lt = N(U.value.style.chart.width), Rt = N(U.value.style.chart.height);
221
+ let Ft = N(U.value.style.chart.width), It = N(U.value.style.chart.height);
222
222
  Ee(() => R.config, (e) => {
223
- Ot.value || (U.value = It()), Nt.value = !U.value.userOptions.showOnChartHover, Mt(), st.value += 1, K.value.showTable = U.value.table.show;
223
+ Et.value || (U.value = Pt()), jt.value = !U.value.userOptions.showOnChartHover, At(), st.value += 1, K.value.showTable = U.value.table.show;
224
224
  }, { deep: !0 }), Ee(() => R.dataset, (e) => {
225
- Array.isArray(e) && e.length > 0 && (At.value = !1);
225
+ Array.isArray(e) && e.length > 0 && (Ot.value = !1);
226
226
  }, { deep: !0 });
227
- let { isPrinting: zt, isImaging: Bt, generatePdf: Vt, generateImage: Ht } = v({
227
+ let { isPrinting: Lt, isImaging: Rt, generatePdf: zt, generateImage: Bt } = v({
228
228
  elementId: `flow_${z.value}`,
229
229
  fileName: U.value.style.chart.title.text || "vue-ui-flow",
230
230
  options: U.value.userOptions.print
231
- }), Ut = C(() => U.value.userOptions.show && !U.value.style.chart.title.text), Wt = C(() => h(U.value.customPalette)), Gt = C(() => U.value.style.chart.nodes.width), K = N({
231
+ }), Vt = C(() => U.value.userOptions.show && !U.value.style.chart.title.text), Ht = C(() => h(U.value.customPalette)), Ut = C(() => U.value.style.chart.nodes.width), K = N({
232
232
  showTable: U.value.table.show,
233
233
  showTooltip: U.value.style.chart.tooltip.show
234
234
  });
@@ -238,13 +238,13 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
238
238
  showTooltip: U.value.style.chart.tooltip.show
239
239
  };
240
240
  }, { immediate: !0 });
241
- let Kt = C(() => !kt.value || !kt.value.length ? [] : kt.value.map((e, t) => [
241
+ let Wt = C(() => !Dt.value || !Dt.value.length ? [] : Dt.value.map((e, t) => [
242
242
  e[0],
243
243
  e[1],
244
244
  c(e[2]),
245
- e[3] ? o(e[3]) : Wt.value[t] || Wt.value[t % Wt.value.length] || a[t] || a[t % a.length]
245
+ e[3] ? o(e[3]) : Ht.value[t] || Ht.value[t % Ht.value.length] || a[t] || a[t % a.length]
246
246
  ]));
247
- function qt(e) {
247
+ function Gt(e) {
248
248
  let t = {}, n = {};
249
249
  function r(e, r) {
250
250
  t[e] || (t[e] = {
@@ -265,7 +265,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
265
265
  });
266
266
  let i = new Set(e.map(([e]) => e)), o = new Set(e.map(([, e]) => e)), s = Array.from(i).filter((e) => !o.has(e)), l = {};
267
267
  s.forEach((e, t) => {
268
- l[e] = Wt.value[t] || a[t % a.length];
268
+ l[e] = Ht.value[t] || a[t % a.length];
269
269
  });
270
270
  let u = {};
271
271
  e.forEach(([e, t, n, r]) => {
@@ -276,7 +276,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
276
276
  }), Object.keys(t).forEach((e) => {
277
277
  t[e].value = Math.max(t[e].inflow, t[e].outflow);
278
278
  });
279
- let d = Xt.value, f = Zt.value.width, p = Zt.value.height, m = Object.keys(n).map(Number).sort((e, t) => e - t), h = m.length || 1, te = h > 1 ? f / (h - 1) : 0, ne = Number(Gt.value), g = Number(U.value.style.chart.nodes.gapPx ?? U.value.style.chart.nodes.gap ?? 8), _ = Number(U.value.style.chart.nodes.minHeight || 0);
279
+ let d = Jt.value, f = Yt.value.width, p = Yt.value.height, m = Object.keys(n).map(Number).sort((e, t) => e - t), h = m.length || 1, te = h > 1 ? f / (h - 1) : 0, ne = Number(Ut.value), g = Number(U.value.style.chart.nodes.gapPx ?? U.value.style.chart.nodes.gap ?? 8), _ = Number(U.value.style.chart.nodes.minHeight || 0);
280
280
  function v(e) {
281
281
  let r = n[e], i = r.length;
282
282
  if (!i) return Infinity;
@@ -348,7 +348,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
348
348
  };
349
349
  }
350
350
  let q = C(() => {
351
- let e = qt(kt.value);
351
+ let e = Gt(Dt.value);
352
352
  return {
353
353
  nodes: Object.keys(e.nodeCoordinates).map((t, n) => ({
354
354
  ...e.nodeCoordinates[t],
@@ -356,36 +356,36 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
356
356
  })),
357
357
  links: e.links
358
358
  };
359
- }), Jt = C(() => Lt.value), Yt = C(() => Rt.value), Xt = C(() => U.value.style.chart.padding), Zt = C(() => ({
360
- width: Math.max(0, Jt.value - 40 - Xt.value.right - Xt.value.left),
361
- height: Math.max(0, Yt.value - Xt.value.top - Xt.value.bottom)
362
- })), Qt = C(() => ({
363
- width: Jt.value,
364
- height: Yt.value
359
+ }), Kt = C(() => Ft.value), qt = C(() => It.value), Jt = C(() => U.value.style.chart.padding), Yt = C(() => ({
360
+ width: Math.max(0, Kt.value - 40 - Jt.value.right - Jt.value.left),
361
+ height: Math.max(0, qt.value - Jt.value.top - Jt.value.bottom)
362
+ })), Xt = C(() => ({
363
+ width: Kt.value,
364
+ height: qt.value
365
365
  }));
366
- function $t(e) {
366
+ function Zt(e) {
367
367
  let t = {}, n = {}, r = /* @__PURE__ */ new Set();
368
- return Kt.value.forEach(([e, r, i]) => {
368
+ return Wt.value.forEach(([e, r, i]) => {
369
369
  t[e] || (t[e] = []), n[r] || (n[r] = []), t[e].push(r), n[r].push(e);
370
370
  }), t[e] && t[e].forEach((e) => r.add(e)), n[e] && n[e].forEach((e) => r.add(e)), Array.from(r).concat(e);
371
371
  }
372
- let J = N(null), Y = N(null), X = N(null), en = N(!1), tn = N(null);
373
- function nn() {
374
- tn.value = null, J.value = null, Y.value = null, ct.value = !1, xt.value = null, V.value = null;
372
+ let J = N(null), Y = N(null), X = N(null), Qt = N(!1), $t = N(null);
373
+ function en() {
374
+ $t.value = null, J.value = null, Y.value = null, ct.value = !1, yt.value = null, V.value = null;
375
375
  }
376
- function rn(e) {
376
+ function tn(e) {
377
377
  if (!G.value || !e) return;
378
378
  let t = G.value.querySelector(`[data-a11y-node-id="${e}"]`);
379
379
  if (!t) return;
380
380
  let n = t.getBoundingClientRect();
381
- St.value = {
381
+ bt.value = {
382
382
  x: n.left + n.width / 2,
383
383
  y: n.top + n.height / 2
384
384
  };
385
385
  }
386
- function an(e, t, n = "pointer", r = null) {
387
- $.value = [], J.value = $t(e.name), Y.value = e.name, tn.value = e.id, Ct.value = n, xt.value = r, V.value = e.id;
388
- let i = e.name, a = Kt.value, o = 0, c = 0, u = [], d = [], ee = new Set(a.map(([e]) => e)), f = new Set(a.map(([, e]) => e)), p = Array.from(ee).filter((e) => !f.has(e)), m = a.filter(([e]) => p.includes(e)).reduce((e, [t, n, r]) => e + r, 0), h = {};
386
+ function nn(e, t, n = "pointer", r = null) {
387
+ $.value = [], J.value = Zt(e.name), Y.value = e.name, $t.value = e.id, xt.value = n, yt.value = r, V.value = e.id;
388
+ let i = e.name, a = Wt.value, o = 0, c = 0, u = [], d = [], ee = new Set(a.map(([e]) => e)), f = new Set(a.map(([, e]) => e)), p = Array.from(ee).filter((e) => !f.has(e)), m = a.filter(([e]) => p.includes(e)).reduce((e, [t, n, r]) => e + r, 0), h = {};
389
389
  q.value.nodes.forEach((e) => {
390
390
  h[e.name] = e.color;
391
391
  }), a.forEach(([e, t, n]) => {
@@ -418,17 +418,17 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
418
418
  series: q.value
419
419
  }, ct.value = !0;
420
420
  let _ = "", v = U.value.style.chart.tooltip.customFormat;
421
- if (en.value = !1, te(v)) try {
421
+ if (Qt.value = !1, te(v)) try {
422
422
  let e = v({
423
423
  datapoint: g,
424
424
  series: q.value,
425
425
  config: U.value
426
426
  });
427
- typeof e == "string" && (lt.value = e, en.value = !0);
427
+ typeof e == "string" && (lt.value = e, Qt.value = !0);
428
428
  } catch {
429
429
  console.warn("Custom format cannot be applied.");
430
430
  }
431
- if (!en.value) {
431
+ if (!Qt.value) {
432
432
  let e = U.value.style.chart.tooltip.showPercentage ? `<div>${s({
433
433
  p: U.value.style.chart.tooltip.translations.percentOfTotal,
434
434
  v: g.percentOfTotal,
@@ -452,33 +452,33 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
452
452
  })), lt.value = _;
453
453
  }
454
454
  n === "keyboard" && be(() => {
455
- rn(e.id);
455
+ tn(e.id);
456
456
  });
457
457
  }
458
- function on(e) {
458
+ function rn(e) {
459
459
  let t = X.value;
460
460
  U.value.events.datapointLeave && U.value.events.datapointLeave({
461
461
  datapoint: t,
462
462
  seriesIndex: e
463
- }), !(Ct.value === "keyboard" && V.value) && (tn.value = null, J.value = null, Y.value = null, ct.value = !1);
463
+ }), !(xt.value === "keyboard" && V.value) && ($t.value = null, J.value = null, Y.value = null, ct.value = !1);
464
464
  }
465
- function sn(e) {
465
+ function an(e) {
466
466
  let t = X.value;
467
467
  U.value.events.datapointClick && U.value.events.datapointClick({
468
468
  datapoint: t,
469
469
  seriesIndex: e
470
470
  });
471
471
  }
472
- let cn = C(() => q.value.links.map(({ source: e, target: t, sourceColor: n, targetColor: r, value: i }) => ({
472
+ let on = C(() => q.value.links.map(({ source: e, target: t, sourceColor: n, targetColor: r, value: i }) => ({
473
473
  source: e,
474
474
  target: t,
475
475
  sourceColor: n,
476
476
  targetColor: r,
477
477
  value: i
478
478
  })));
479
- function ln(e = null) {
479
+ function sn(e = null) {
480
480
  be(() => {
481
- let r = cn.value.map((e, t) => [
481
+ let r = on.value.map((e, t) => [
482
482
  [e.source],
483
483
  [e.target],
484
484
  [e.value]
@@ -502,7 +502,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
502
502
  U.value.table.columnNames.source,
503
503
  U.value.table.columnNames.target,
504
504
  U.value.table.columnNames.value
505
- ], t = cn.value.map((e, t) => [
505
+ ], t = on.value.map((e, t) => [
506
506
  {
507
507
  color: e.sourceColor,
508
508
  name: e.source,
@@ -542,17 +542,17 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
542
542
  body: t,
543
543
  config: n
544
544
  };
545
- }), un = C(() => ({
545
+ }), cn = C(() => ({
546
546
  headers: Z.value?.colNames ?? [],
547
547
  rows: Z.value?.body ?? []
548
- })), dn = C(() => [...q.value.nodes].map((e, t) => ({
548
+ })), ln = C(() => [...q.value.nodes].map((e, t) => ({
549
549
  ...e,
550
550
  index: t,
551
- centerX: e.x + Gt.value / 2,
551
+ centerX: e.x + Ut.value / 2,
552
552
  centerY: c(e.absoluteY) + U.value.style.chart.padding.top + e.height / 2
553
553
  })).sort((e, t) => e.x === t.x ? e.absoluteY - t.absoluteY : e.x - t.x)), Q = C(() => {
554
554
  let e = [];
555
- return dn.value.forEach((t) => {
555
+ return ln.value.forEach((t) => {
556
556
  let n = e.find((e) => Math.abs(e.x - t.x) <= 1);
557
557
  n ? n.nodes.push(t) : e.push({
558
558
  x: t.x,
@@ -561,26 +561,26 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
561
561
  }), e.forEach((e) => {
562
562
  e.nodes.sort((e, t) => e.absoluteY - t.absoluteY);
563
563
  }), e.sort((e, t) => e.x - t.x);
564
- }), fn = C(() => {
564
+ }), un = C(() => {
565
565
  let e = /* @__PURE__ */ new Map();
566
- return dn.value.forEach((t, n) => {
566
+ return ln.value.forEach((t, n) => {
567
567
  e.set(t.id, n);
568
568
  }), e;
569
569
  });
570
- function pn() {
570
+ function dn() {
571
571
  return q.value;
572
572
  }
573
- function mn() {
573
+ function fn() {
574
574
  K.value.showTable = !K.value.showTable;
575
575
  }
576
- let hn = N(!1);
577
- function gn() {
578
- hn.value = !hn.value;
576
+ let pn = N(!1);
577
+ function mn() {
578
+ pn.value = !pn.value;
579
579
  }
580
- function _n() {
580
+ function hn() {
581
581
  K.value.showTooltip = !K.value.showTooltip;
582
582
  }
583
- let vn = C(() => {
583
+ let gn = C(() => {
584
584
  let e = new Set(q.value.nodes.map((e) => U.value.nodeCategories[e.name] || "__uncategorized__"));
585
585
  return Array.from(e).map((e) => ({
586
586
  name: e,
@@ -591,7 +591,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
591
591
  let n = $.value.includes(t);
592
592
  return {
593
593
  ...e,
594
- segregate: () => bn({
594
+ segregate: () => vn({
595
595
  legend: e,
596
596
  i: t
597
597
  }),
@@ -600,8 +600,8 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
600
600
  display: `${e.name} (${e.count})`
601
601
  };
602
602
  });
603
- }), yn = C(() => vn.value.filter((e) => e.name !== "__uncategorized__")), $ = N([]);
604
- function bn({ legend: e, i: t }) {
603
+ }), _n = C(() => gn.value.filter((e) => e.name !== "__uncategorized__")), $ = N([]);
604
+ function vn({ legend: e, i: t }) {
605
605
  let n = e.name;
606
606
  if (J.value?.every((e) => U.value.nodeCategories[e] === n)) {
607
607
  J.value = null, Y.value = null, $.value = [];
@@ -609,7 +609,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
609
609
  }
610
610
  $.value = [t], J.value = q.value.nodes.filter((e) => U.value.nodeCategories[e.name] === n).map((e) => e.name), Y.value = null;
611
611
  }
612
- let xn = C(() => ({
612
+ let yn = C(() => ({
613
613
  cy: "flow-legend",
614
614
  backgroundColor: U.value.style.chart.legend.backgroundColor,
615
615
  color: U.value.style.chart.legend.color,
@@ -617,7 +617,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
617
617
  paddingBottom: U.value.style.chart.legend.paddingBottom,
618
618
  fontWeight: U.value.style.chart.legend.bold ? "bold" : "normal"
619
619
  }));
620
- async function Sn({ scale: e = 2 } = {}) {
620
+ async function bn({ scale: e = 2 } = {}) {
621
621
  if (!B.value) return;
622
622
  let { width: t, height: n } = B.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ie({
623
623
  domElement: B.value,
@@ -634,7 +634,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
634
634
  aspectRatio: r
635
635
  };
636
636
  }
637
- let Cn = C(() => {
637
+ let xn = C(() => {
638
638
  let e = U.value.table.useDialog && !U.value.table.show, t = K.value.showTable;
639
639
  return {
640
640
  component: e ? tt : Xe,
@@ -668,47 +668,22 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
668
668
  Ee(() => K.value.showTable, (e) => {
669
669
  U.value.table.show || (e && U.value.table.useDialog && gt.value ? gt.value.open() : "close" in gt.value && gt.value.close());
670
670
  });
671
- function wn() {
671
+ function Sn() {
672
672
  K.value.showTable = !1, _t.value && _t.value.setTableIconState(!1);
673
673
  }
674
- let Tn = C(() => yn.value.map((e) => ({
674
+ let Cn = C(() => _n.value.map((e) => ({
675
675
  ...e,
676
676
  name: e.display
677
- }))), En = C(() => U.value.style.chart.backgroundColor), Dn = C(() => U.value.style.chart.legend), On = C(() => U.value.style.chart.title), { exportSvg: kn, getSvg: An } = x({
677
+ }))), wn = C(() => U.value.style.chart.backgroundColor), Tn = C(() => U.value.style.chart.legend), En = C(() => U.value.style.chart.title), { isCallbackImaging: Dn, isCallbackSvg: On, generateSvg: kn, onGenerateImage: An } = S({
678
678
  svg: G,
679
- title: On,
680
- legend: Dn,
681
- legendItems: Tn,
682
- backgroundColor: En
679
+ title: En,
680
+ legend: Tn,
681
+ legendItems: Cn,
682
+ backgroundColor: wn,
683
+ getSvgCallback: () => U.value.userOptions.callbacks.svg,
684
+ generateImage: Bt
683
685
  });
684
- async function jn({ isCb: e }) {
685
- bt.value = !0, await be();
686
- try {
687
- if (e) {
688
- let { blob: e, url: t, text: n, dataUrl: r } = await An();
689
- await Promise.resolve(U.value.userOptions.callbacks.svg({
690
- blob: e,
691
- url: t,
692
- text: n,
693
- dataUrl: r
694
- }));
695
- } else await Promise.resolve(kn());
696
- } finally {
697
- bt.value = !1;
698
- }
699
- }
700
- function Mn(e) {
701
- if (e?.stage === "start") {
702
- yt.value = !0;
703
- return;
704
- }
705
- if (e?.stage === "end") {
706
- yt.value = !1;
707
- return;
708
- }
709
- Ht();
710
- }
711
- async function Nn() {
686
+ async function jn() {
712
687
  if (at("copyAlt", {
713
688
  config: U.value,
714
689
  dataset: q.value
@@ -721,14 +696,14 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
721
696
  dataset: q.value
722
697
  }));
723
698
  }
724
- function Pn(e) {
699
+ function Mn(e) {
725
700
  return Q.value.findIndex((t) => t.nodes.some((t) => t.id === e));
726
701
  }
727
- function Fn(e, t) {
702
+ function Nn(e, t) {
728
703
  let n = Q.value[e];
729
704
  return n ? n.nodes.findIndex((e) => e.id === t) : -1;
730
705
  }
731
- function In(e, t) {
706
+ function Pn(e, t) {
732
707
  let n = Q.value[e];
733
708
  if (!n || !n.nodes.length) return null;
734
709
  let r = n.nodes[0], i = Math.abs(r.centerY - t);
@@ -738,41 +713,41 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
738
713
  }
739
714
  return r;
740
715
  }
741
- function Ln() {
742
- xt.value = null, V.value = null, wt.value = !0;
716
+ function Fn() {
717
+ yt.value = null, V.value = null, St.value = !0;
743
718
  }
744
- function Rn() {
745
- nn(), wt.value = !1;
719
+ function In() {
720
+ en(), St.value = !1;
746
721
  }
747
- function zn(e) {
748
- if (!G.value || hn.value || document.activeElement !== G.value || !dn.value.length) return;
722
+ function Ln(e) {
723
+ if (!G.value || pn.value || document.activeElement !== G.value || !ln.value.length) return;
749
724
  let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
750
725
  if (!t && !n && !r && !i && !a && !o) return;
751
726
  if (e.preventDefault(), e.stopPropagation(), o) {
752
- nn();
727
+ en();
753
728
  return;
754
729
  }
755
730
  if (a) {
756
- if (xt.value === null) return;
757
- sn(xt.value);
731
+ if (yt.value === null) return;
732
+ an(yt.value);
758
733
  return;
759
734
  }
760
735
  if (V.value === null) {
761
736
  let e = Q.value[0]?.nodes?.[0];
762
737
  if (!e) return;
763
- let t = fn.value.get(e.id) ?? 0;
764
- an(e, t, "keyboard", t);
738
+ let t = un.value.get(e.id) ?? 0;
739
+ nn(e, t, "keyboard", t);
765
740
  return;
766
741
  }
767
- let s = fn.value.get(V.value);
742
+ let s = un.value.get(V.value);
768
743
  if (s === void 0) return;
769
- let c = dn.value[s];
744
+ let c = ln.value[s];
770
745
  if (!c) return;
771
- let l = Pn(c.id);
746
+ let l = Mn(c.id);
772
747
  if (l < 0) return;
773
748
  let u = null;
774
749
  if (r || i) {
775
- let e = Fn(l, c.id);
750
+ let e = Nn(l, c.id);
776
751
  if (e < 0) return;
777
752
  let t = Q.value[l];
778
753
  if (!t?.nodes?.length) return;
@@ -781,46 +756,46 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
781
756
  }
782
757
  if (t || n) {
783
758
  let e = l + (n ? 1 : -1);
784
- e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u = In(e, c.centerY);
759
+ e < 0 && (e = Q.value.length - 1), e >= Q.value.length && (e = 0), u = Pn(e, c.centerY);
785
760
  }
786
761
  if (!u) return;
787
- let d = fn.value.get(u.id);
788
- d !== void 0 && an(u, d, "keyboard", d);
762
+ let d = un.value.get(u.id);
763
+ d !== void 0 && nn(u, d, "keyboard", d);
789
764
  }
790
765
  return oe({
791
- getData: pn,
792
- getImage: Sn,
793
- generateCsv: ln,
794
- generateImage: Ht,
795
- generateSvg: jn,
796
- generatePdf: Vt,
797
- toggleTable: mn,
798
- toggleAnnotator: gn,
799
- toggleTooltip: _n,
800
- drillCategory: bn,
801
- unselectNode: on,
802
- toggleFullscreen: Et,
803
- copyAlt: Nn
766
+ getData: dn,
767
+ getImage: bn,
768
+ generateCsv: sn,
769
+ generateImage: Bt,
770
+ generateSvg: kn,
771
+ generatePdf: zt,
772
+ toggleTable: fn,
773
+ toggleAnnotator: mn,
774
+ toggleTooltip: hn,
775
+ drillCategory: vn,
776
+ unselectNode: rn,
777
+ toggleFullscreen: wt,
778
+ copyAlt: jn
804
779
  }), (e, t) => (M(), E("div", {
805
780
  ref_key: "flowChart",
806
781
  ref: B,
807
782
  class: xe(`vue-data-ui-component vue-ui-flow ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
808
783
  style: j(`font-family:${U.value.style.fontFamily};width:100%; text-align:center;background:${U.value.style.chart.backgroundColor}`),
809
784
  id: `flow_${z.value}`,
810
- onMouseenter: t[2] ||= () => I(Pt)(!0),
785
+ onMouseenter: t[2] ||= () => I(Mt)(!0),
811
786
  onMouseleave: t[3] ||= () => {
812
- I(Pt)(!1), wt.value || nn();
787
+ I(Mt)(!1), St.value || en();
813
788
  }
814
789
  }, [
815
790
  D("div", {
816
791
  id: `chart-instructions-${z.value}`,
817
792
  class: "sr-only"
818
793
  }, [D("p", null, F(U.value.a11y.translations.keyboardNavigation), 1)], 8, ke),
819
- un.value?.rows?.length ? (M(), w(le, {
794
+ cn.value?.rows?.length ? (M(), w(le, {
820
795
  key: 0,
821
796
  uid: z.value,
822
- head: un.value.headers,
823
- body: un.value.rows,
797
+ head: cn.value.headers,
798
+ body: cn.value.rows,
824
799
  notice: U.value.a11y.translations.tableAvailable,
825
800
  caption: U.value.a11y.translations.tableCaption
826
801
  }, null, 8, [
@@ -835,8 +810,8 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
835
810
  svgRef: I(G),
836
811
  backgroundColor: U.value.style.chart.backgroundColor,
837
812
  color: U.value.style.chart.color,
838
- active: hn.value,
839
- onClose: gn,
813
+ active: pn.value,
814
+ onClose: mn,
840
815
  isCursorPointer: W.value
841
816
  }, {
842
817
  "annotator-action-close": L(() => [P(e.$slots, "annotator-action-close", {}, void 0, !0)]),
@@ -853,7 +828,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
853
828
  "active",
854
829
  "isCursorPointer"
855
830
  ])) : T("", !0),
856
- Ut.value ? (M(), E("div", Ae, null, 512)) : T("", !0),
831
+ Vt.value ? (M(), E("div", Ae, null, 512)) : T("", !0),
857
832
  U.value.style.chart.title.text ? (M(), E("div", {
858
833
  key: 3,
859
834
  ref_key: "chartTitle",
@@ -873,14 +848,14 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
873
848
  }
874
849
  }, null, 8, ["config"]))], 512)) : T("", !0),
875
850
  D("div", { id: `legend-top-${z.value}` }, null, 8, je),
876
- U.value.userOptions.show && Tt.value && (I(Ft) || I(Nt)) ? (M(), w(I($e), {
851
+ U.value.userOptions.show && Ct.value && (I(Nt) || I(jt)) ? (M(), w(I($e), {
877
852
  ref_key: "userOptionsRef",
878
853
  ref: _t,
879
854
  key: `user_option_${ot.value}`,
880
855
  backgroundColor: U.value.style.chart.backgroundColor,
881
856
  color: U.value.style.chart.color,
882
- isPrinting: I(zt),
883
- isImaging: I(Bt),
857
+ isPrinting: I(Lt),
858
+ isImaging: I(Rt),
884
859
  uid: z.value,
885
860
  hasPdf: U.value.userOptions.buttons.pdf,
886
861
  hasXls: U.value.userOptions.buttons.csv,
@@ -896,21 +871,21 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
896
871
  position: U.value.userOptions.position,
897
872
  hasAnnotator: U.value.userOptions.buttons.annotator,
898
873
  printScale: U.value.userOptions.print.scale,
899
- isAnnotation: hn.value,
874
+ isAnnotation: pn.value,
900
875
  hasTooltip: U.value.style.chart.tooltip.show && U.value.userOptions.buttons.tooltip,
901
876
  isTooltip: K.value.showTooltip,
902
877
  tableDialog: U.value.table.useDialog,
903
878
  isCursorPointer: W.value,
904
- onToggleTooltip: _n,
905
- onToggleFullscreen: Et,
906
- onGeneratePdf: I(Vt),
907
- onGenerateCsv: ln,
908
- onGenerateImage: Mn,
909
- onGenerateSvg: jn,
910
- onToggleTable: mn,
911
- onToggleAnnotator: gn,
912
- onCopyAlt: Nn,
913
- style: j({ visibility: I(Ft) ? I(Nt) ? "visible" : "hidden" : "visible" })
879
+ onToggleTooltip: hn,
880
+ onToggleFullscreen: wt,
881
+ onGeneratePdf: I(zt),
882
+ onGenerateCsv: sn,
883
+ onGenerateImage: I(An),
884
+ onGenerateSvg: I(kn),
885
+ onToggleTable: fn,
886
+ onToggleAnnotator: mn,
887
+ onCopyAlt: jn,
888
+ style: j({ visibility: I(Nt) ? I(jt) ? "visible" : "hidden" : "visible" })
914
889
  }, ge({ _: 2 }, [
915
890
  e.$slots.menuIcon ? {
916
891
  name: "menuIcon",
@@ -981,13 +956,13 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
981
956
  fn: L(() => [P(e.$slots, "custom-menu-after", {}, void 0, !0)]),
982
957
  key: "11"
983
958
  } : void 0
984
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.callbacks.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.printScale.isAnnotation.hasTooltip.isTooltip.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : T("", !0),
959
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasPdf.hasXls.hasImg.hasSvg.hasTable.callbacks.hasFullscreen.hasAltCopy.isFullscreen.titles.chartElement.position.hasAnnotator.printScale.isAnnotation.hasTooltip.isTooltip.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : T("", !0),
985
960
  D("div", Me, [(M(), E("svg", {
986
961
  ref_key: "svgRef",
987
962
  ref: G,
988
963
  xmlns: I(p),
989
964
  "aria-describedby": `chart-instructions-${z.value}`,
990
- viewBox: `0 0 ${Qt.value.width} ${Qt.value.height}`,
965
+ viewBox: `0 0 ${Xt.value.width} ${Xt.value.height}`,
991
966
  class: xe({
992
967
  "vue-data-ui-fullscreen--on": H.value,
993
968
  "vue-data-ui-fulscreen--off": !H.value
@@ -999,17 +974,17 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
999
974
  color: U.value.style.chart.color
1000
975
  }),
1001
976
  tabindex: "0",
1002
- onFocus: Ln,
1003
- onBlur: Rn,
1004
- onKeydown: zn
977
+ onFocus: Fn,
978
+ onBlur: In,
979
+ onKeydown: Ln
1005
980
  }, [
1006
981
  ve(I(et)),
1007
982
  e.$slots["chart-background"] ? (M(), E("foreignObject", {
1008
983
  key: 0,
1009
984
  x: 0,
1010
985
  y: 0,
1011
- width: Qt.value.width,
1012
- height: Qt.value.height,
986
+ width: Xt.value.width,
987
+ height: Xt.value.height,
1013
988
  style: { pointerEvents: "none" }
1014
989
  }, [P(e.$slots, "chart-background", {}, void 0, !0)], 8, Pe)) : T("", !0),
1015
990
  D("defs", null, [(M(!0), E(me, null, Ce(q.value.links, (e, t) => (M(), E("linearGradient", {
@@ -1043,14 +1018,14 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
1043
1018
  x: e.x,
1044
1019
  y: I(c)(e.absoluteY) + U.value.style.chart.padding.top,
1045
1020
  height: I(c)(e.height),
1046
- width: Gt.value,
1021
+ width: Ut.value,
1047
1022
  fill: e.color,
1048
1023
  stroke: U.value.style.chart.nodes.stroke,
1049
1024
  "stroke-width": U.value.style.chart.nodes.strokeWidth,
1050
1025
  rx: U.value.style.chart.nodes.borderRadius,
1051
1026
  style: j({
1052
1027
  opacity: J.value ? J.value.includes(e.name) ? 1 : .3 : 1,
1053
- outline: tn.value !== null && tn.value === e.id ? "2px solid currentColor" : void 0
1028
+ outline: $t.value !== null && $t.value === e.id ? "2px solid currentColor" : void 0
1054
1029
  }),
1055
1030
  "aria-label": `${e.name}: ${I(l)(U.value.style.chart.nodes.labels.formatter, e.value, I(s)({
1056
1031
  p: U.value.style.chart.nodes.labels.prefix,
@@ -1058,12 +1033,12 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
1058
1033
  s: U.value.style.chart.nodes.labels.suffix,
1059
1034
  r: U.value.style.chart.nodes.labels.rounding
1060
1035
  }))}`,
1061
- onMouseenter: (n) => an(e, t, "pointer", fn.value.get(e.id)),
1062
- onMouseleave: (e) => on(t),
1063
- onClick: (e) => sn(t)
1036
+ onMouseenter: (n) => nn(e, t, "pointer", un.value.get(e.id)),
1037
+ onMouseleave: (e) => rn(t),
1038
+ onClick: (e) => an(t)
1064
1039
  }, null, 44, ze))), 256)),
1065
1040
  U.value.style.chart.nodes.labels.show ? (M(), E("g", Be, [(M(!0), E(me, null, Ce(q.value.nodes, (e, t) => (M(), E("text", {
1066
- x: e.x + Gt.value / 2,
1041
+ x: e.x + Ut.value / 2,
1067
1042
  y: (U.value.style.chart.nodes.labels.showValue ? I(c)(e.absoluteY + e.height / 2 - U.value.style.chart.nodes.labels.fontSize / 4) : e.absoluteY + e.height / 2 + U.value.style.chart.nodes.labels.fontSize / 3) + U.value.style.chart.padding.top,
1068
1043
  "font-size": U.value.style.chart.nodes.labels.fontSize,
1069
1044
  fill: I(f)(e.color),
@@ -1073,7 +1048,7 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
1073
1048
  source: e.name,
1074
1049
  length: U.value.style.chart.nodes.labels.abbreviation.length
1075
1050
  }) : e.name), 13, Ve))), 256)), U.value.style.chart.nodes.labels.showValue ? (M(!0), E(me, { key: 0 }, Ce(q.value.nodes, (e, t) => (M(), E("text", {
1076
- x: e.x + Gt.value / 2,
1051
+ x: e.x + Ut.value / 2,
1077
1052
  y: I(c)(e.absoluteY + e.height / 2 + U.value.style.chart.nodes.labels.fontSize / 1.3) + U.value.style.chart.padding.top,
1078
1053
  "font-size": U.value.style.chart.nodes.labels.fontSize,
1079
1054
  fill: I(f)(e.color),
@@ -1089,15 +1064,15 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
1089
1064
  seriesIndex: t
1090
1065
  })), 13, He))), 256)) : T("", !0)])) : T("", !0),
1091
1066
  P(e.$slots, "svg", { svg: {
1092
- ...Qt.value,
1093
- isPrintingImg: I(zt) || I(Bt) || yt.value,
1094
- isPrintingSvg: bt.value
1067
+ ...Xt.value,
1068
+ isPrintingImg: I(Lt) || I(Rt) || I(Dn),
1069
+ isPrintingSvg: I(On)
1095
1070
  } }, void 0, !0)
1096
1071
  ], 46, Ne)), e.$slots.hint ? (M(), E("div", Ue, [P(e.$slots, "hint", A(k({
1097
1072
  hint: U.value.a11y.translations.keyboardNavigation,
1098
- isVisible: wt.value
1073
+ isVisible: St.value
1099
1074
  })), void 0, !0)])) : T("", !0)]),
1100
- e.$slots.watermark ? (M(), E("div", We, [P(e.$slots, "watermark", A(k({ isPrinting: I(zt) || I(Bt) || yt.value || bt.value })), void 0, !0)])) : T("", !0),
1075
+ e.$slots.watermark ? (M(), E("div", We, [P(e.$slots, "watermark", A(k({ isPrinting: I(Lt) || I(Rt) || I(Dn) || I(On) })), void 0, !0)])) : T("", !0),
1101
1076
  D("div", { id: `legend-bottom-${z.value}` }, null, 8, Ge),
1102
1077
  ht.value && (U.value.style.chart.legend.show || e.$slots.legend) ? (M(), w(he, {
1103
1078
  key: 6,
@@ -1105,14 +1080,14 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
1105
1080
  }, [D("div", {
1106
1081
  ref_key: "chartLegend",
1107
1082
  ref: ut
1108
- }, [P(e.$slots, "legend", { legend: vn.value }, () => [U.value.style.chart.legend.show && yn.value.length ? (M(), w(fe, {
1083
+ }, [P(e.$slots, "legend", { legend: gn.value }, () => [U.value.style.chart.legend.show && _n.value.length ? (M(), w(fe, {
1109
1084
  key: 0,
1110
- legendSet: yn.value,
1111
- config: xn.value,
1085
+ legendSet: _n.value,
1086
+ config: yn.value,
1112
1087
  isCursorPointer: W.value,
1113
- onClickMarker: t[0] ||= (e) => bn(e)
1088
+ onClickMarker: t[0] ||= (e) => vn(e)
1114
1089
  }, {
1115
- item: L(({ legend: e, index: t }) => [I(Ot) ? T("", !0) : (M(), E("div", {
1090
+ item: L(({ legend: e, index: t }) => [I(Et) ? T("", !0) : (M(), E("div", {
1116
1091
  key: 0,
1117
1092
  onClick: (t) => e.segregate(),
1118
1093
  style: j(`opacity:${$.value.length ? $.value.includes(t) ? 1 : .5 : 1}`)
@@ -1146,14 +1121,14 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
1146
1121
  offsetY: U.value.style.chart.tooltip.offsetY,
1147
1122
  parent: B.value,
1148
1123
  content: lt.value,
1149
- isCustom: en.value,
1124
+ isCustom: Qt.value,
1150
1125
  isFullscreen: H.value,
1151
1126
  smooth: U.value.style.chart.tooltip.smooth,
1152
1127
  backdropFilter: U.value.style.chart.tooltip.backdropFilter,
1153
1128
  smoothForce: U.value.style.chart.tooltip.smoothForce,
1154
1129
  smoothSnapThreshold: U.value.style.chart.tooltip.smoothSnapThreshold,
1155
- isA11yMode: Ct.value === "keyboard",
1156
- a11yPosition: St.value
1130
+ isA11yMode: xt.value === "keyboard",
1131
+ a11yPosition: bt.value
1157
1132
  }, {
1158
1133
  "tooltip-before": L(() => [P(e.$slots, "tooltip-before", A(k({ ...X.value })), void 0, !0)]),
1159
1134
  tooltip: L(() => [P(e.$slots, "tooltip", A(k({ ...X.value })), void 0, !0)]),
@@ -1183,20 +1158,20 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
1183
1158
  "isA11yMode",
1184
1159
  "a11yPosition"
1185
1160
  ]),
1186
- Tt.value && U.value.userOptions.buttons.table ? (M(), w(we(Cn.value.component), ye({ key: 8 }, Cn.value.props, {
1161
+ Ct.value && U.value.userOptions.buttons.table ? (M(), w(we(xn.value.component), ye({ key: 8 }, xn.value.props, {
1187
1162
  ref_key: "tableUnit",
1188
1163
  ref: gt,
1189
- onClose: wn
1164
+ onClose: Sn
1190
1165
  }), ge({
1191
1166
  content: L(() => [ve(I(Ze), {
1192
1167
  colNames: Z.value.colNames,
1193
1168
  head: Z.value.head,
1194
1169
  body: Z.value.body,
1195
1170
  config: Z.value.config,
1196
- title: U.value.table.useDialog ? "" : Cn.value.title,
1171
+ title: U.value.table.useDialog ? "" : xn.value.title,
1197
1172
  withCloseButton: !U.value.table.useDialog,
1198
1173
  isCursorPointer: W.value,
1199
- onClose: wn
1174
+ onClose: Sn
1200
1175
  }, {
1201
1176
  th: L(({ th: e }) => [D("div", {
1202
1177
  innerHTML: e,
@@ -1219,24 +1194,24 @@ var De = /* @__PURE__ */ e({ default: () => Je }), Oe = ["id"], ke = ["id"], Ae
1219
1194
  _: 2
1220
1195
  }, [U.value.table.useDialog ? {
1221
1196
  name: "title",
1222
- fn: L(() => [_e(F(Cn.value.title), 1)]),
1197
+ fn: L(() => [_e(F(xn.value.title), 1)]),
1223
1198
  key: "0"
1224
1199
  } : void 0, U.value.table.useDialog ? {
1225
1200
  name: "actions",
1226
1201
  fn: L(() => [D("button", {
1227
1202
  tabindex: "0",
1228
1203
  class: "vue-ui-user-options-button",
1229
- onClick: t[1] ||= (e) => ln(U.value.userOptions.callbacks.csv),
1204
+ onClick: t[1] ||= (e) => sn(U.value.userOptions.callbacks.csv),
1230
1205
  style: j({ cursor: W.value ? "pointer" : "default" })
1231
1206
  }, [ve(I(Ye), {
1232
1207
  name: "fileCsv",
1233
- stroke: Cn.value.props.color
1208
+ stroke: xn.value.props.color
1234
1209
  }, null, 8, ["stroke"])], 4)]),
1235
1210
  key: "1"
1236
1211
  } : void 0]), 1040)) : T("", !0),
1237
- P(e.$slots, "skeleton", {}, () => [I(Ot) ? (M(), w(b, { key: 0 })) : T("", !0)], !0)
1212
+ P(e.$slots, "skeleton", {}, () => [I(Et) ? (M(), w(b, { key: 0 })) : T("", !0)], !0)
1238
1213
  ], 46, Oe));
1239
1214
  }
1240
- }, [["__scopeId", "data-v-07a945d1"]]);
1215
+ }, [["__scopeId", "data-v-c203fc92"]]);
1241
1216
  //#endregion
1242
1217
  export { De as n, Je as t };