vue-data-ui 2.12.0 → 2.12.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 (83) hide show
  1. package/dist/{Arrow-DDRsdhZn.js → Arrow-Bp4e97cD.js} +1 -1
  2. package/dist/{BaseIcon-CPSasvwJ.js → BaseIcon-B8E9P00u.js} +1 -1
  3. package/dist/{ColorPicker-Bu3ocoLc.js → ColorPicker-DuvX5-fm.js} +3 -3
  4. package/dist/{DataTable-64MQdfSC.js → DataTable-CSjNN3jI.js} +2 -2
  5. package/dist/{Legend-DQGaC-7K.js → Legend-CAup0ri4.js} +2 -2
  6. package/dist/{PackageVersion-BZmn5l24.js → PackageVersion-xjSogtA5.js} +1 -1
  7. package/dist/{PenAndPaper-BGTby4ih.js → PenAndPaper-BuykDu_0.js} +3 -3
  8. package/dist/{Shape-CrvsxzqI.js → Shape-DdhA4qSz.js} +1 -1
  9. package/dist/{Slicer-Jxw9aXXo.js → Slicer-CuhLestl.js} +2 -2
  10. package/dist/{Title-CbtqUCDq.js → Title-BnRm2t-0.js} +1 -1
  11. package/dist/{Tooltip-BW22mERF.js → Tooltip-BRb91mkO.js} +1 -1
  12. package/dist/{dom-to-png-mqrqFtQK.js → dom-to-png-BApQFYxJ.js} +1 -1
  13. package/dist/{img-Y8EW2l65.js → img-B90vlJIg.js} +1 -1
  14. package/dist/{index-k-TENgkl.js → index-D7As7hLS.js} +1 -1
  15. package/dist/{pdf-z0T-YjDO.js → pdf-BJJGTrdI.js} +1 -1
  16. package/dist/style.css +1 -1
  17. package/dist/{useNestedProp-BQzXvt0H.js → useNestedProp-RcVZW3zi.js} +1 -1
  18. package/dist/{usePrinter-B3U6P71r.js → usePrinter-DAcjoH4T.js} +3 -3
  19. package/dist/{vue-data-ui-BwwD2u_u.js → vue-data-ui-B-jG29nn.js} +63 -63
  20. package/dist/vue-data-ui.js +1 -1
  21. package/dist/{vue-ui-3d-bar-Bx_MIxW7.js → vue-ui-3d-bar-ZicDcaWE.js} +9 -9
  22. package/dist/{vue-ui-accordion-BvG2cZf1.js → vue-ui-accordion-DBRvT5aF.js} +3 -3
  23. package/dist/{vue-ui-age-pyramid-CDKy2P9O.js → vue-ui-age-pyramid-kXLXbxXa.js} +10 -10
  24. package/dist/{vue-ui-annotator-BAJTr6FD.js → vue-ui-annotator-BSUztZDc.js} +2 -2
  25. package/dist/{vue-ui-bullet-Dje2wg8I.js → vue-ui-bullet-EmB7_Kks.js} +8 -8
  26. package/dist/{vue-ui-candlestick-fX576D5A.js → vue-ui-candlestick-BhygnUo4.js} +11 -11
  27. package/dist/{vue-ui-carousel-table-CmObt9aO.js → vue-ui-carousel-table-BMrr5nS1.js} +4 -4
  28. package/dist/{vue-ui-chestnut-PBM9zTQ-.js → vue-ui-chestnut-BxXNuces.js} +8 -8
  29. package/dist/{vue-ui-chord-B-0byToI.js → vue-ui-chord-oH1mLZ8-.js} +89 -85
  30. package/dist/{vue-ui-circle-pack-rbvrpRAc.js → vue-ui-circle-pack-B7RscU4n.js} +9 -9
  31. package/dist/{vue-ui-cursor-TKh5iDDp.js → vue-ui-cursor-DIsxsI0B.js} +2 -2
  32. package/dist/{vue-ui-dashboard-C82YUwLA.js → vue-ui-dashboard-6Vq257n9.js} +62 -62
  33. package/dist/{vue-ui-digits-CvBJi0Tq.js → vue-ui-digits-BDWHWorB.js} +2 -2
  34. package/dist/{vue-ui-donut-C4j70CI7.js → vue-ui-donut-BwtcQouC.js} +12 -12
  35. package/dist/{vue-ui-donut-evolution-DMqXUt12.js → vue-ui-donut-evolution-bPMHgrez.js} +11 -11
  36. package/dist/{vue-ui-dumbbell-DpO9YGBE.js → vue-ui-dumbbell-CZCa0Atm.js} +10 -10
  37. package/dist/{vue-ui-flow-CUfqW31t.js → vue-ui-flow-uJvCG-qV.js} +11 -11
  38. package/dist/{vue-ui-funnel-BfduqCYK.js → vue-ui-funnel-CwphwiFl.js} +9 -9
  39. package/dist/{vue-ui-galaxy-DPar-E51.js → vue-ui-galaxy-EZxdclRv.js} +11 -11
  40. package/dist/{vue-ui-gauge-CcjDaq63.js → vue-ui-gauge-g9nn9hyX.js} +7 -7
  41. package/dist/{vue-ui-gizmo-B_ym3int.js → vue-ui-gizmo-DIDbcUDx.js} +3 -3
  42. package/dist/{vue-ui-heatmap-DI-_vOk9.js → vue-ui-heatmap-B3t3CcLv.js} +10 -10
  43. package/dist/{vue-ui-history-plot-BsArezyK.js → vue-ui-history-plot-CfLzAwMI.js} +11 -11
  44. package/dist/{vue-ui-kpi-BpWcYF6b.js → vue-ui-kpi-DQQuDnUz.js} +3 -3
  45. package/dist/{vue-ui-mini-loader-BGa_4ML-.js → vue-ui-mini-loader-CtiJDp14.js} +2 -2
  46. package/dist/{vue-ui-molecule-DX2iIPZk.js → vue-ui-molecule-kvMrga4y.js} +11 -11
  47. package/dist/{vue-ui-mood-radar-Cg5i5Gja.js → vue-ui-mood-radar-DzvwS4-p.js} +11 -11
  48. package/dist/{vue-ui-nested-donuts-DYU9w0VR.js → vue-ui-nested-donuts-Di1RGfpx.js} +11 -11
  49. package/dist/{vue-ui-onion-MVnP5IPP.js → vue-ui-onion-DL2oXMbr.js} +11 -11
  50. package/dist/{vue-ui-parallel-coordinate-plot-BUO5USbO.js → vue-ui-parallel-coordinate-plot-CwN40tRh.js} +12 -12
  51. package/dist/{vue-ui-quadrant-DvCdsNT3.js → vue-ui-quadrant-CqJ_jL6H.js} +12 -12
  52. package/dist/{vue-ui-quick-chart-Coq_TT4K.js → vue-ui-quick-chart-Db7_PHUV.js} +9 -9
  53. package/dist/{vue-ui-radar-ksmA1eNa.js → vue-ui-radar-6KOb86if.js} +12 -12
  54. package/dist/{vue-ui-rating-BjNei1jK.js → vue-ui-rating-ChgCGHGO.js} +2 -2
  55. package/dist/{vue-ui-relation-circle-Dz27DBjO.js → vue-ui-relation-circle-CEcoV_TW.js} +7 -7
  56. package/dist/{vue-ui-ridgeline-DvACw7ca.js → vue-ui-ridgeline-f6KtOGUC.js} +12 -12
  57. package/dist/{vue-ui-rings-3U2BWSD-.js → vue-ui-rings-DdXtanok.js} +12 -12
  58. package/dist/{vue-ui-scatter-CzCxAM-H.js → vue-ui-scatter-VND240PK.js} +12 -12
  59. package/dist/{vue-ui-skeleton-LOBxYAj5.js → vue-ui-skeleton-Bbq7c-aT.js} +3 -3
  60. package/dist/{vue-ui-smiley-B5x0f6IE.js → vue-ui-smiley-BpVmBBOK.js} +2 -2
  61. package/dist/{vue-ui-spark-trend-BJL392y-.js → vue-ui-spark-trend-BGG_js3W.js} +5 -5
  62. package/dist/{vue-ui-sparkbar-CYTCFFZ4.js → vue-ui-sparkbar-Dv6pfXGi.js} +4 -4
  63. package/dist/{vue-ui-sparkgauge-CtgQ7eqo.js → vue-ui-sparkgauge-DjwdDDIG.js} +4 -4
  64. package/dist/{vue-ui-sparkhistogram-Drd-nNZL.js → vue-ui-sparkhistogram-dqgjnMpH.js} +5 -5
  65. package/dist/{vue-ui-sparkline-RMyEJzSC.js → vue-ui-sparkline-BbtNs3eK.js} +4 -4
  66. package/dist/{vue-ui-sparkstackbar-xwahpmeL.js → vue-ui-sparkstackbar-BFzeG9wh.js} +5 -5
  67. package/dist/{vue-ui-stackbar-BOhzD5_W.js → vue-ui-stackbar-DVKUmXI8.js} +13 -13
  68. package/dist/{vue-ui-strip-plot-jus4xcWs.js → vue-ui-strip-plot-BxQlX4Dt.js} +11 -11
  69. package/dist/{vue-ui-table-BCArkzoU.js → vue-ui-table-DZvuCcVK.js} +3 -3
  70. package/dist/{vue-ui-table-heatmap-sT80xAnB.js → vue-ui-table-heatmap-B8K48Lzw.js} +4 -4
  71. package/dist/{vue-ui-table-sparkline-B9G42V97.js → vue-ui-table-sparkline-tV0419bp.js} +5 -5
  72. package/dist/{vue-ui-thermometer-CMqRiRxw.js → vue-ui-thermometer-BJwiydfU.js} +7 -7
  73. package/dist/{vue-ui-timer-DLXveBI_.js → vue-ui-timer-DIB-jTWU.js} +5 -5
  74. package/dist/{vue-ui-tiremarks-BP2_KcUJ.js → vue-ui-tiremarks-BPct2GbC.js} +7 -7
  75. package/dist/{vue-ui-treemap-CNHi1E6G.js → vue-ui-treemap-DDIx3e_6.js} +12 -12
  76. package/dist/{vue-ui-vertical-bar-kpSssDOU.js → vue-ui-vertical-bar-CgwGFLC8.js} +12 -12
  77. package/dist/{vue-ui-waffle-Br8t4XKd.js → vue-ui-waffle-Be8Ze6mr.js} +12 -12
  78. package/dist/{vue-ui-wheel-D80M81Bf.js → vue-ui-wheel-CWXgE2tS.js} +7 -7
  79. package/dist/{vue-ui-word-cloud-w4Qq_dqB.js → vue-ui-word-cloud-BvZkPdVi.js} +10 -10
  80. package/dist/{vue-ui-world-CDSH4faH.js → vue-ui-world-DxFXOqlh.js} +11 -11
  81. package/dist/{vue-ui-xy-CCHnnV7y.js → vue-ui-xy-De2Sa4Wj.js} +16 -16
  82. package/dist/{vue-ui-xy-canvas-TJ6MbOBd.js → vue-ui-xy-canvas-BBVfzyju.js} +12 -12
  83. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
- import { useCssVars as pt, ref as d, computed as x, watch as mt, onMounted as Ge, onBeforeUnmount as Ve, createElementBlock as i, openBlock as n, unref as k, normalizeStyle as N, normalizeClass as X, createBlock as j, createCommentVNode as v, renderSlot as $, createElementVNode as O, createSlots as We, withCtx as P, normalizeProps as oe, guardReactiveProps as le, withModifiers as qe, createVNode as de, Fragment as z, renderList as U, mergeProps as yt, toDisplayString as V, createTextVNode as kt, nextTick as $t } from "vue";
2
- import { u as wt, c as ve, t as Ct, p as se, a as Mt, o as xt, e as He, g as _t, b as It, d as At, X as Pt, G as Tt, q as St, r as Bt, i as Ot, f as Lt } from "./index-k-TENgkl.js";
1
+ import { useCssVars as pt, ref as d, computed as x, watch as mt, onMounted as Ge, onBeforeUnmount as Ve, createElementBlock as i, openBlock as n, unref as k, normalizeStyle as N, normalizeClass as X, createBlock as D, createCommentVNode as v, renderSlot as $, createElementVNode as B, createSlots as We, withCtx as P, normalizeProps as oe, guardReactiveProps as le, withModifiers as qe, createVNode as de, Fragment as z, renderList as U, mergeProps as yt, toDisplayString as V, createTextVNode as kt, nextTick as $t } from "vue";
2
+ import { u as wt, c as ve, t as Ct, p as se, a as Mt, o as xt, e as He, g as _t, b as It, d as At, X as Pt, G as Tt, q as St, r as Ot, i as Bt, f as Lt } from "./index-D7As7hLS.js";
3
3
  import { u as Et } from "./useUserOptionState-BIvW1Kz7.js";
4
- import { u as Qe } from "./useNestedProp-BQzXvt0H.js";
4
+ import { u as Qe } from "./useNestedProp-RcVZW3zi.js";
5
5
  import { u as Nt } from "./useChartAccessibility-BWojgys7.js";
6
- import { _ as zt } from "./Title-CbtqUCDq.js";
7
- import { _ as Ft } from "./PackageVersion-BZmn5l24.js";
8
- import { _ as Xt } from "./PenAndPaper-BGTby4ih.js";
9
- import Rt from "./BaseIcon-CPSasvwJ.js";
10
- import { u as Dt, U as jt } from "./usePrinter-B3U6P71r.js";
11
- import { L as Ut } from "./Legend-DQGaC-7K.js";
12
- import { _ as Yt } from "./Shape-CrvsxzqI.js";
13
- import { D as Gt } from "./DataTable-64MQdfSC.js";
14
- import Vt from "./vue-ui-accordion-BvG2cZf1.js";
15
- import Wt from "./vue-ui-skeleton-LOBxYAj5.js";
6
+ import { _ as zt } from "./Title-BnRm2t-0.js";
7
+ import { _ as Ft } from "./PackageVersion-xjSogtA5.js";
8
+ import { _ as Xt } from "./PenAndPaper-BuykDu_0.js";
9
+ import Rt from "./BaseIcon-B8E9P00u.js";
10
+ import { u as jt, U as Dt } from "./usePrinter-DAcjoH4T.js";
11
+ import { L as Ut } from "./Legend-CAup0ri4.js";
12
+ import { _ as Yt } from "./Shape-DdhA4qSz.js";
13
+ import { D as Gt } from "./DataTable-CSjNN3jI.js";
14
+ import Vt from "./vue-ui-accordion-DBRvT5aF.js";
15
+ import Wt from "./vue-ui-skeleton-Bbq7c-aT.js";
16
16
  import { t as qt, u as Ht } from "./useResponsive-JZ9xq-JV.js";
17
17
  import { _ as Qt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { key: 1 }, ta = ["id", "d"], aa = { key: 2 }, oa = ["transform"], la = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], sa = ["d", "fill", "stroke", "stroke-width"], na = ["d", "fill"], ra = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onClick"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["d", "fill", "stroke", "stroke-width"], ca = ["d", "fill", "stroke", "stroke-width"], da = { key: 0 }, va = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ha = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], fa = ["cx", "cy", "r", "stroke", "stroke-width", "fill"], ga = ["transform", "fill", "text-anchor", "font-size", "font-weight"], ba = { key: 1 }, pa = ["font-size", "font-weight", "fill"], ma = ["href"], ya = ["transform", "text-anchor", "font-size", "font-weight", "fill"], ka = {
@@ -41,12 +41,12 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { k
41
41
  emits: ["selectLegend", "selectGroup", "selectRibbon"],
42
42
  setup(Ze, { expose: Je, emit: Ke }) {
43
43
  pt((t) => ({
44
- "46d5979d": t.slicerColor
44
+ "5ee669f8": t.slicerColor
45
45
  }));
46
- const { vue_ui_chord: et } = wt(), g = Ze, Z = Ke, L = d(!!g.dataset && Object.hasOwn(g.dataset, "matrix")), T = d(ve()), w = d(null), p = d(null), f = d(null), he = d(0), Y = d(null), fe = d(null), ge = d(null), be = d(null), pe = d(null), me = d(0), ye = d(0), ke = d(0), G = d(!1), ne = d(null), a = x({
46
+ const { vue_ui_chord: et } = wt(), f = Ze, Z = Ke, L = d(!!f.dataset && Object.hasOwn(f.dataset, "matrix")), T = d(ve()), w = d(null), p = d(null), g = d(null), he = d(0), Y = d(null), fe = d(null), ge = d(null), be = d(null), pe = d(null), me = d(0), ye = d(0), ke = d(0), G = d(!1), ne = d(null), a = x({
47
47
  get: () => Ie(),
48
48
  set: (t) => t
49
- }), { userOptionsVisible: re, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: a.value }), { svgRef: W } = Nt({ config: a.value.style.chart.title }), { isPrinting: Ce, isImaging: Me, generatePdf: xe, generateImage: _e } = Dt({
49
+ }), { userOptionsVisible: re, setUserOptionsVisibility: $e, keepUserOptionState: we } = Et({ config: a.value }), { svgRef: W } = Nt({ config: a.value.style.chart.title }), { isPrinting: Ce, isImaging: Me, generatePdf: xe, generateImage: _e } = jt({
50
50
  elementId: `chord_${T.value}`,
51
51
  fileName: a.value.style.chart.title.text || "vue-ui-chord",
52
52
  options: a.value.userOptions.print
@@ -55,26 +55,26 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { k
55
55
  });
56
56
  function Ie() {
57
57
  const t = Qe({
58
- userConfig: g.config,
58
+ userConfig: f.config,
59
59
  defaultConfig: et
60
60
  });
61
61
  return t.theme ? {
62
62
  ...Qe({
63
- userConfig: Mt.vue_ui_chord[t.theme] || g.config,
63
+ userConfig: Mt.vue_ui_chord[t.theme] || f.config,
64
64
  defaultConfig: t
65
65
  }),
66
66
  customPalette: Ct[t.theme] || se
67
67
  } : t;
68
68
  }
69
- mt(() => g.config, (t) => {
69
+ mt(() => f.config, (t) => {
70
70
  a.value = Ie(), re.value = !a.value.userOptions.showOnChartHover, Ae(), me.value += 1, ye.value += 1, ke.value += 1, I.value = a.value.initialRotation, q.value.showTable = a.value.table.show;
71
71
  }, { deep: !0 });
72
72
  function Ae() {
73
- if (xt(g.dataset) ? He({
73
+ if (xt(f.dataset) ? He({
74
74
  componentName: "VueUiChord",
75
75
  type: "dataset"
76
76
  }) : _t({
77
- datasetObject: g.dataset,
77
+ datasetObject: f.dataset,
78
78
  requiredAttributes: ["matrix"]
79
79
  }).forEach((t) => {
80
80
  L.value = !1, He({
@@ -100,15 +100,19 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["width", "height"], ea = { k
100
100
  }, 500);
101
101
  }
102
102
  function Pe() {
103
- g.dataset.matrix.length < 2 && (console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
103
+ if (!f.dataset || !Object.hasOwn(f.dataset, "matrix") || f.dataset.matrix.length < 2) {
104
+ console.warn(`VueUiChord: dataset.matrix requires a minimum of 2 datapoints, for example:
104
105
 
105
106
  matrix:[
106
107
  [1, 1],
107
108
  [1, 1]
108
- ]`), L.value = !1), g.dataset.matrix.forEach((t, o) => {
109
- t.length !== g.dataset.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${o} has ${t.length} elements instead of the required ${g.dataset.matrix.length}
109
+ ]`), L.value = !1;
110
+ return;
111
+ }
112
+ f.dataset.matrix.forEach((t, o) => {
113
+ t.length !== f.dataset.matrix.length && (console.warn(`VueUiChord - Invalid matrix: dataset.matrix at index ${o} has ${t.length} elements instead of the required ${f.dataset.matrix.length}
110
114
 
111
- dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${g.dataset.matrix.length})`), L.value = !1);
115
+ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should have the same length as the matrix itself (${f.dataset.matrix.length})`), L.value = !1);
112
116
  });
113
117
  }
114
118
  const Te = d(null);
@@ -122,9 +126,9 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
122
126
  inner: S.value.width * 0.3 * a.value.style.chart.arcs.innerRadiusRatio,
123
127
  outer: S.value.width * 0.34 * a.value.style.chart.arcs.outerRadiusRatio
124
128
  })), ot = x(() => a.value.style.chart.arcs.padAngle / 100), m = x(() => L.value ? {
125
- matrix: g.dataset.matrix ?? [[0]],
126
- labels: g.dataset.labels ?? [""],
127
- colors: g.dataset.colors && Array.isArray(g.dataset.colors) && g.dataset.colors.length ? g.dataset.colors.map((t) => At(t)) : g.dataset.matrix.map((t, o) => at.value[o] || se[o] || se[o % se.length])
129
+ matrix: f.dataset.matrix ?? [[0]],
130
+ labels: f.dataset.labels ?? [""],
131
+ colors: f.dataset.colors && Array.isArray(f.dataset.colors) && f.dataset.colors.length ? f.dataset.colors.map((t) => At(t)) : f.dataset.matrix.map((t, o) => at.value[o] || se[o] || se[o % se.length])
128
132
  } : {
129
133
  matrix: [],
130
134
  labels: [],
@@ -152,24 +156,24 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
152
156
  }
153
157
  const M = [];
154
158
  for (let c = 0; c < e; c += 1) {
155
- const y = t[c].map((B, F) => ({ j: F, v: B }));
156
- y.sort((B, F) => F.v - B.v);
159
+ const y = t[c].map((O, F) => ({ j: F, v: O }));
160
+ y.sort((O, F) => F.v - O.v);
157
161
  let A = h[c].startAngle;
158
- for (const { j: B, v: F } of y) {
159
- const D = A, Q = D + F * r;
162
+ for (const { j: O, v: F } of y) {
163
+ const j = A, Q = j + F * r;
160
164
  M.push({
161
165
  index: c,
162
- subIndex: B,
166
+ subIndex: O,
163
167
  pattern: `pattern_${T.value}_${c}`,
164
- startAngle: D,
168
+ startAngle: j,
165
169
  endAngle: Q,
166
170
  value: F,
167
171
  groupName: m.value.labels[c],
168
172
  groupId: h[c].id,
169
173
  groupColor: m.value.colors[c],
170
- midAngle: (D + Q) / 2,
171
- midBaseX: Math.cos((D + Q) / 2 - Math.PI / 2) * l,
172
- midBaseY: Math.sin((D + Q) / 2 - Math.PI / 2) * l
174
+ midAngle: (j + Q) / 2,
175
+ midBaseX: Math.cos((j + Q) / 2 - Math.PI / 2) * l,
176
+ midBaseY: Math.sin((j + Q) / 2 - Math.PI / 2) * l
173
177
  }), A = Q;
174
178
  }
175
179
  }
@@ -245,7 +249,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
245
249
  }
246
250
  });
247
251
  }
248
- return f.value && u(f.value), w.value && u(w.value.id), l;
252
+ return g.value && u(g.value), w.value && u(w.value.id), l;
249
253
  }), nt = x(() => {
250
254
  const t = st.value.map((u) => ({ ...u })).sort((u, s) => u.theta - s.theta), o = a.value.style.chart.ribbons.labels.minSeparationDeg * Math.PI / 180;
251
255
  let e = !0, l = 0;
@@ -261,22 +265,22 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
261
265
  return t;
262
266
  });
263
267
  function Se(t, o, e, l) {
264
- const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, h = Math.sin(u) * e, C = Math.cos(s) * e, M = Math.sin(s) * e, E = Math.cos(s) * l, c = Math.sin(s) * l, y = Math.cos(u) * l, A = Math.sin(u) * l, B = o - t > Math.PI ? 1 : 0;
265
- return `M${r},${h} A${e},${e} 0 ${B} 1 ${C},${M} L${E},${c} A${l},${l} 0 ${B} 0 ${y},${A} Z`;
268
+ const u = t - Math.PI / 2, s = o - Math.PI / 2, r = Math.cos(u) * e, h = Math.sin(u) * e, C = Math.cos(s) * e, M = Math.sin(s) * e, E = Math.cos(s) * l, c = Math.sin(s) * l, y = Math.cos(u) * l, A = Math.sin(u) * l, O = o - t > Math.PI ? 1 : 0;
269
+ return `M${r},${h} A${e},${e} 0 ${O} 1 ${C},${M} L${E},${c} A${l},${l} 0 ${O} 0 ${y},${A} Z`;
266
270
  }
267
271
  function J(t, o) {
268
- const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, h = Math.cos(l) * e, C = Math.sin(l) * e, M = Math.cos(u) * e, E = Math.sin(u) * e, c = Math.cos(s) * e, y = Math.sin(s) * e, A = Math.cos(r) * e, B = Math.sin(r) * e, F = t.endAngle - t.startAngle > Math.PI ? 1 : 0, D = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
269
- return `M${h},${C}A${e},${e} 0 ${F} 1 ${M},${E}Q0,0 ${c},${y}A${e},${e} 0 ${D} 1 ${A},${B}Q0,0 ${h},${C}Z`;
272
+ const e = b.value.inner, l = t.startAngle - Math.PI / 2, u = t.endAngle - Math.PI / 2, s = o.startAngle - Math.PI / 2, r = o.endAngle - Math.PI / 2, h = Math.cos(l) * e, C = Math.sin(l) * e, M = Math.cos(u) * e, E = Math.sin(u) * e, c = Math.cos(s) * e, y = Math.sin(s) * e, A = Math.cos(r) * e, O = Math.sin(r) * e, F = t.endAngle - t.startAngle > Math.PI ? 1 : 0, j = o.endAngle - o.startAngle > Math.PI ? 1 : 0;
273
+ return `M${h},${C}A${e},${e} 0 ${F} 1 ${M},${E}Q0,0 ${c},${y}A${e},${e} 0 ${j} 1 ${A},${O}Q0,0 ${h},${C}Z`;
270
274
  }
271
- const Be = x(() => I.value * Math.PI / 180);
275
+ const Oe = x(() => I.value * Math.PI / 180);
272
276
  function rt(t) {
273
277
  return (t.startAngle + t.endAngle) / 2;
274
278
  }
275
279
  function ut(t) {
276
- return ((rt(t) + Be.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
280
+ return ((rt(t) + Oe.value) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
277
281
  }
278
282
  function it(t) {
279
- let o = t + Be.value;
283
+ let o = t + Oe.value;
280
284
  return o = (o % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI), o > Math.PI ? "end" : "start";
281
285
  }
282
286
  function ct(t) {
@@ -288,24 +292,24 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
288
292
  return `M${s},${r} A${e},${e} 0 ${M} 1 ${h},${C}`;
289
293
  }
290
294
  const I = d(a.value.initialRotation), ue = d(!1);
291
- let Oe = 0, Le = 0;
295
+ let Be = 0, Le = 0;
292
296
  function Ee(t) {
293
297
  const o = W.value.getBoundingClientRect(), e = o.left + o.width / 2, l = o.top + o.height / 2, u = t.clientX ?? t.touches[0].clientX, s = t.clientY ?? t.touches[0].clientY;
294
298
  return Math.atan2(s - l, u - e);
295
299
  }
296
300
  function Ne(t) {
297
- !a.value.enableRotation || H.value || (t.preventDefault(), ue.value = !0, Oe = I.value, Le = Ee(t));
301
+ !a.value.enableRotation || H.value || (t.preventDefault(), ue.value = !0, Be = I.value, Le = Ee(t));
298
302
  }
299
303
  function K(t) {
300
304
  if (!ue.value) return;
301
305
  const o = Ee(t);
302
- I.value = Oe + (o - Le) * 180 / Math.PI;
306
+ I.value = Be + (o - Le) * 180 / Math.PI;
303
307
  }
304
308
  function ee() {
305
309
  ue.value = !1;
306
310
  }
307
311
  function ze(t) {
308
- return Ot(
312
+ return Bt(
309
313
  a.value.style.chart.ribbons.labels.formatter,
310
314
  t,
311
315
  Lt({
@@ -326,18 +330,18 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
326
330
  ie.value = t, he.value += 1;
327
331
  }
328
332
  function ht(t) {
329
- f.value || (w.value = t);
333
+ g.value || (w.value = t);
330
334
  }
331
335
  function ft(t) {
332
- f.value || (p.value = t);
336
+ g.value || (p.value = t);
333
337
  }
334
338
  function Fe(t) {
335
339
  var l;
336
- return !f.value && !w.value && !p.value ? 0.8 : (f.value ? f.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : ((l = p.value) == null ? void 0 : l.id) === t.id) ? 1 : 0.1;
340
+ return !g.value && !w.value && !p.value ? 0.8 : (g.value ? g.value === t.source.groupId : w.value ? w.value.id === t.source.groupId : ((l = p.value) == null ? void 0 : l.id) === t.id) ? 1 : 0.1;
337
341
  }
338
342
  function Xe(t) {
339
343
  var l, u;
340
- return !f.value && !w.value && !p.value || (f.value ? f.value === t.id : w.value ? w.value.id === t.id : [(l = p.value) == null ? void 0 : l.source.groupId, (u = p.value) == null ? void 0 : u.target.groupId].includes(t.id)) ? 1 : 0.3;
344
+ return !g.value && !w.value && !p.value || (g.value ? g.value === t.id : w.value ? w.value.id === t.id : [(l = p.value) == null ? void 0 : l.source.groupId, (u = p.value) == null ? void 0 : u.target.groupId].includes(t.id)) ? 1 : 0.3;
341
345
  }
342
346
  const H = d(!1);
343
347
  function ce() {
@@ -350,7 +354,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
350
354
  return _.value;
351
355
  }
352
356
  const R = d(null);
353
- function De() {
357
+ function je() {
354
358
  const t = a.value.initialRotation;
355
359
  R.value !== null && cancelAnimationFrame(R.value);
356
360
  const o = () => {
@@ -361,8 +365,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
361
365
  Ve(() => {
362
366
  R.value !== null && cancelAnimationFrame(R.value);
363
367
  });
364
- function je(t) {
365
- t === f.value ? (f.value = null, Z("selectLegend", null)) : (f.value = t, Z("selectLegend", _.value.groups.find((o) => o.id === t)));
368
+ function De(t) {
369
+ t === g.value ? (g.value = null, Z("selectLegend", null)) : (g.value = t, Z("selectLegend", _.value.groups.find((o) => o.id === t)));
366
370
  }
367
371
  const Ue = x(() => _.value.groups.map((t, o) => ({
368
372
  name: t.name,
@@ -371,8 +375,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
371
375
  patternIndex: o,
372
376
  pattern: `pattern_${T.value}_${o}`,
373
377
  id: t.id,
374
- select: () => je(t.id),
375
- opacity: f.value ? f.value === t.id ? 1 : 0.3 : 1
378
+ select: () => De(t.id),
379
+ opacity: g.value ? g.value === t.id ? 1 : 0.3 : 1
376
380
  }))), bt = x(() => ({
377
381
  cy: "chord-div-legend",
378
382
  backgroundColor: a.value.style.chart.legend.backgroundColor,
@@ -423,7 +427,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
423
427
  ...m.value.labels.map((l, u) => [l || u])
424
428
  ]
425
429
  ].concat(t), e = St(o);
426
- Bt({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
430
+ Ot({ csvContent: e, title: a.value.style.chart.title.text || "vue-ui-chord" });
427
431
  });
428
432
  }
429
433
  return Je({
@@ -446,7 +450,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
446
450
  onMouseenter: o[4] || (o[4] = () => k($e)(!0)),
447
451
  onMouseleave: o[5] || (o[5] = () => k($e)(!1))
448
452
  }, [
449
- a.value.userOptions.buttons.annotator && k(W) ? (n(), j(Xt, {
453
+ a.value.userOptions.buttons.annotator && k(W) ? (n(), D(Xt, {
450
454
  key: 0,
451
455
  color: a.value.style.chart.color,
452
456
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -468,7 +472,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
468
472
  ref: fe,
469
473
  style: "width:100%;background:transparent;padding-bottom:24px"
470
474
  }, [
471
- (n(), j(zt, {
475
+ (n(), D(zt, {
472
476
  key: `title_${me.value}`,
473
477
  config: {
474
478
  title: {
@@ -482,7 +486,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
482
486
  }
483
487
  }, null, 8, ["config"]))
484
488
  ], 512)) : v("", !0),
485
- a.value.userOptions.show && L.value && (k(we) || k(re)) ? (n(), j(jt, {
489
+ a.value.userOptions.show && L.value && (k(we) || k(re)) ? (n(), D(Dt, {
486
490
  ref: "details",
487
491
  key: `user_option_${he.value}`,
488
492
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -606,7 +610,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
606
610
  $(t.$slots, "pattern", yt({ ref_for: !0 }, { seriesIndex: e.index, patternId: `pattern_${T.value}_${l}` }), void 0, !0)
607
611
  ]))), 256))
608
612
  ])) : v("", !0),
609
- O("g", {
613
+ B("g", {
610
614
  transform: `translate(${S.value.width / 2}, ${S.value.height / 2}) rotate(${I.value})`
611
615
  }, [
612
616
  (n(!0), i(z, null, U(_.value.groups, (e, l) => (n(), i("g", null, [
@@ -651,8 +655,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
651
655
  })
652
656
  }, null, 14, sa)) : v("", !0)
653
657
  ]))), 256)),
654
- O("g", null, [
655
- (n(!0), i(z, null, U(w.value ? _.value.chords.filter((e) => e.source.groupId === w.value.id) : f.value ? _.value.chords.filter((e) => e.source.groupId === f.value) : _.value.chords, (e) => (n(), i(z, {
658
+ B("g", null, [
659
+ (n(!0), i(z, null, U(w.value ? _.value.chords.filter((e) => e.source.groupId === w.value.id) : g.value ? _.value.chords.filter((e) => e.source.groupId === g.value) : _.value.chords, (e) => (n(), i(z, {
656
660
  key: `ribbon-${e.id}`
657
661
  }, [
658
662
  e.source.value ? (n(), i("path", {
@@ -725,11 +729,11 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
725
729
  }
726
730
  }, null, 8, ca)) : v("", !0)
727
731
  ]),
728
- (w.value || p.value || f.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", da, [
732
+ (w.value || p.value || g.value) && a.value.style.chart.ribbons.labels.show ? (n(), i("g", da, [
729
733
  (n(!0), i(z, null, U(nt.value, (e) => (n(), i(z, {
730
734
  key: e.id
731
735
  }, [
732
- O("line", {
736
+ B("line", {
733
737
  x1: e.midBaseX,
734
738
  y1: e.midBaseY,
735
739
  x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
@@ -738,7 +742,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
738
742
  "stroke-width": a.value.style.chart.ribbons.labels.connector.strokeWidth * 3,
739
743
  "pointer-events": "none"
740
744
  }, null, 8, va),
741
- O("line", {
745
+ B("line", {
742
746
  x1: e.midBaseX,
743
747
  y1: e.midBaseY,
744
748
  x2: Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 12),
@@ -757,7 +761,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
757
761
  fill: e.groupColor,
758
762
  "pointer-events": "none"
759
763
  }, null, 8, fa)) : v("", !0),
760
- O("text", {
764
+ B("text", {
761
765
  transform: `
762
766
  translate(
763
767
  ${Math.cos(e.theta - Math.PI / 2) * (b.value.outer + a.value.style.chart.ribbons.labels.offset + 24)},
@@ -780,12 +784,12 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
780
784
  "font-weight": a.value.style.chart.arcs.labels.bold ? "bold" : "normal",
781
785
  fill: a.value.style.chart.arcs.labels.adaptColorToBackground ? k(Tt)(m.value.colors[l]) : a.value.style.chart.arcs.labels.color
782
786
  }, [
783
- O("textPath", {
787
+ B("textPath", {
784
788
  href: `#labelPath-${l}_${T.value}`,
785
789
  startOffset: "50%",
786
790
  "text-anchor": "middle"
787
791
  }, V(m.value.labels[l]), 9, ma)
788
- ], 8, pa))), 128)) : !w.value && !p.value && !f.value ? (n(!0), i(z, { key: 1 }, U(_.value.groups, (e, l) => (n(), i("text", {
792
+ ], 8, pa))), 128)) : !w.value && !p.value && !g.value ? (n(!0), i(z, { key: 1 }, U(_.value.groups, (e, l) => (n(), i("text", {
789
793
  key: `label-${l}`,
790
794
  transform: `
791
795
  ${ct((e.startAngle + e.endAngle) / 2)}
@@ -804,7 +808,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
804
808
  t.$slots.watermark ? (n(), i("div", ka, [
805
809
  $(t.$slots, "watermark", oe(le({ isPrinting: k(Ce) || k(Me) })), void 0, !0)
806
810
  ])) : v("", !0),
807
- L.value ? v("", !0) : (n(), j(Wt, {
811
+ L.value ? v("", !0) : (n(), D(Wt, {
808
812
  key: 6,
809
813
  config: {
810
814
  type: "chord",
@@ -816,20 +820,20 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
816
820
  }
817
821
  }
818
822
  }, null, 8, ["config"])),
819
- O("div", {
823
+ B("div", {
820
824
  ref_key: "chartLegend",
821
825
  ref: ge
822
826
  }, [
823
- a.value.style.chart.legend.show ? (n(), j(Ut, {
827
+ a.value.style.chart.legend.show ? (n(), D(Ut, {
824
828
  key: `legend_${ke.value}`,
825
829
  legendSet: Ue.value,
826
830
  config: bt.value,
827
- onClickMarker: o[2] || (o[2] = ({ legend: e }) => je(e.id))
831
+ onClickMarker: o[2] || (o[2] = ({ legend: e }) => De(e.id))
828
832
  }, We({
829
833
  item: P(({ legend: e, index: l }) => [
830
- O("div", {
834
+ B("div", {
831
835
  style: N({
832
- opacity: f.value ? f.value === e.id ? 1 : 0.3 : 1
836
+ opacity: g.value ? g.value === e.id ? 1 : 0.3 : 1
833
837
  }),
834
838
  onClick: (u) => e.select()
835
839
  }, V(e.name), 13, $a)
@@ -861,8 +865,8 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
861
865
  $(t.$slots, "source", {}, void 0, !0)
862
866
  ], 512)) : v("", !0),
863
867
  I.value !== a.value.initialRotation ? (n(), i("div", wa, [
864
- $(t.$slots, "reset-action", { reset: De }, () => [
865
- O("button", {
868
+ $(t.$slots, "reset-action", { reset: je }, () => [
869
+ B("button", {
866
870
  "data-cy-reset": "",
867
871
  tabindex: "0",
868
872
  role: "button",
@@ -870,7 +874,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
870
874
  style: N({
871
875
  background: a.value.style.chart.backgroundColor
872
876
  }),
873
- onClick: De
877
+ onClick: je
874
878
  }, [
875
879
  de(Rt, {
876
880
  name: "refresh",
@@ -879,7 +883,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
879
883
  ], 4)
880
884
  ], !0)
881
885
  ])) : v("", !0),
882
- L.value ? (n(), j(Vt, {
886
+ L.value ? (n(), D(Vt, {
883
887
  key: 9,
884
888
  hideDetails: "",
885
889
  config: {
@@ -896,7 +900,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
896
900
  }
897
901
  }, {
898
902
  content: P(() => [
899
- (n(), j(Gt, {
903
+ (n(), D(Gt, {
900
904
  key: `table_${ye.value}`,
901
905
  colNames: ae.value.colNames,
902
906
  head: ae.value.head,
@@ -909,7 +913,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
909
913
  kt(V(e.name), 1)
910
914
  ]),
911
915
  td: P(({ td: e }) => [
912
- O("div", Ca, V(e.name ? e.name : ze(e)), 1)
916
+ B("div", Ca, V(e.name ? e.name : ze(e)), 1)
913
917
  ]),
914
918
  _: 1
915
919
  }, 8, ["colNames", "head", "body", "config", "title"]))
@@ -918,7 +922,7 @@ dataset.matrix[${o}] = [${t.toString()}] has a length of ${t.length} but should
918
922
  }, 8, ["config"])) : v("", !0)
919
923
  ], 46, Zt));
920
924
  }
921
- }, ja = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-e77f35e2"]]);
925
+ }, Da = /* @__PURE__ */ Qt(Ma, [["__scopeId", "data-v-7ed38c01"]]);
922
926
  export {
923
- ja as default
927
+ Da as default
924
928
  };
@@ -1,14 +1,14 @@
1
1
  import { useCssVars as We, computed as w, ref as p, watch as $e, onMounted as Xe, watchEffect as Ye, createElementBlock as b, openBlock as f, unref as m, normalizeStyle as K, normalizeClass as Te, createBlock as M, createCommentVNode as k, renderSlot as x, createSlots as Ze, withCtx as z, normalizeProps as U, guardReactiveProps as B, createVNode as Je, Fragment as Q, renderList as Ke, createElementVNode as C, mergeProps as Se, toDisplayString as j, createTextVNode as Qe, nextTick as Ie } from "vue";
2
- import { u as et, c as Oe, t as ie, p as ee, a as tt, o as lt, e as at, b as ot, d as st, h as Pe, f as ce, X as nt, l as rt, G as q, af as ut, q as it, r as ct, i as Fe } from "./index-k-TENgkl.js";
3
- import { u as Ne } from "./useNestedProp-BQzXvt0H.js";
4
- import { u as vt, U as dt } from "./usePrinter-B3U6P71r.js";
5
- import { _ as ht } from "./Title-CbtqUCDq.js";
6
- import { _ as ft } from "./PenAndPaper-BGTby4ih.js";
2
+ import { u as et, c as Oe, t as ie, p as ee, a as tt, o as lt, e as at, b as ot, d as st, h as Pe, f as ce, X as nt, l as rt, G as q, af as ut, q as it, r as ct, i as Fe } from "./index-D7As7hLS.js";
3
+ import { u as Ne } from "./useNestedProp-RcVZW3zi.js";
4
+ import { u as vt, U as dt } from "./usePrinter-DAcjoH4T.js";
5
+ import { _ as ht } from "./Title-BnRm2t-0.js";
6
+ import { _ as ft } from "./PenAndPaper-BuykDu_0.js";
7
7
  import { u as yt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { _ as mt } from "./PackageVersion-BZmn5l24.js";
9
- import pt from "./vue-ui-accordion-BvG2cZf1.js";
10
- import { D as bt } from "./DataTable-64MQdfSC.js";
11
- import gt from "./vue-ui-skeleton-LOBxYAj5.js";
8
+ import { _ as mt } from "./PackageVersion-xjSogtA5.js";
9
+ import pt from "./vue-ui-accordion-DBRvT5aF.js";
10
+ import { D as bt } from "./DataTable-CSjNN3jI.js";
11
+ import gt from "./vue-ui-skeleton-Bbq7c-aT.js";
12
12
  import { u as kt } from "./useChartAccessibility-BWojgys7.js";
13
13
  import { t as xt, u as wt } from "./useResponsive-JZ9xq-JV.js";
14
14
  import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -1,6 +1,6 @@
1
1
  import { ref as c, computed as _, onMounted as R, onBeforeUnmount as S, createElementBlock as l, createCommentVNode as o, openBlock as i, normalizeStyle as E, unref as m, createElementVNode as r, normalizeClass as C, toDisplayString as p, nextTick as b } from "vue";
2
- import { u as F } from "./useNestedProp-BQzXvt0H.js";
3
- import { u as L, c as z, X as O, s as I } from "./index-k-TENgkl.js";
2
+ import { u as F } from "./useNestedProp-RcVZW3zi.js";
3
+ import { u as L, c as z, X as O, s as I } from "./index-D7As7hLS.js";
4
4
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const N = ["xmlns", "height", "width"], T = {
6
6
  id: "follower",