vue-data-ui 2.12.8-beta.2 → 2.12.8-beta.3

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 (90) hide show
  1. package/README.md +15 -0
  2. package/dist/{Arrow-HbfibAF0.js → Arrow-kQyQXUUg.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DGrErCX-.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
  4. package/dist/{BaseIcon-j0c6lJUs.js → BaseIcon-DaR0sIWZ.js} +1 -1
  5. package/dist/{ColorPicker-DitXXl-H.js → ColorPicker-Bj3sq9o7.js} +2 -2
  6. package/dist/{DataTable-CsoAI95B.js → DataTable-BBqbcutV.js} +2 -2
  7. package/dist/{Legend-ZW-PFcHg.js → Legend-DRqzYrP9.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DJTUaQ94.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
  9. package/dist/{PackageVersion-DCAZ9Z7V.js → PackageVersion-ClpqQxYT.js} +1 -1
  10. package/dist/{PenAndPaper-B9RP4oFj.js → PenAndPaper-B-T7XvxF.js} +3 -3
  11. package/dist/{Shape-BBbhObHC.js → Shape-DEWxbZ-l.js} +1 -1
  12. package/dist/{Slicer-Vh74fjdf.js → Slicer-o6jJH5bw.js} +2 -2
  13. package/dist/{SparkTooltip-CG-HMbX2.js → SparkTooltip-LPnbBoFu.js} +1 -1
  14. package/dist/{Title-Dx8ctnVy.js → Title-apr_T9tg.js} +1 -1
  15. package/dist/{Tooltip-COHlzpZI.js → Tooltip-BuHsMAfp.js} +1 -1
  16. package/dist/{UserOptions-CGn3YdRV.js → UserOptions-OVNxxnq5.js} +144 -133
  17. package/dist/{dom-to-png-BjSUS-jY.js → dom-to-png-C0Ct8ClX.js} +1 -1
  18. package/dist/{img-DWfzRJdv.js → img-P0SFFw37.js} +1 -1
  19. package/dist/{index-CbcpITE_.js → index-CH_mJIWj.js} +185 -127
  20. package/dist/{pdf-Cy09nTjn.js → pdf-Jun3ogRn.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +42 -0
  23. package/dist/types/vue-data-ui.d.ts +42 -0
  24. package/dist/{useNestedProp-y56W8I7J.js → useNestedProp-rMR-JeOJ.js} +1 -1
  25. package/dist/{usePrinter-u-gQiRNz.js → usePrinter-DJ7WfWUs.js} +2 -2
  26. package/dist/{vue-data-ui-DGmMT-Yp.js → vue-data-ui-D7AaTKU6.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Du4TkjPV.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
  29. package/dist/{vue-ui-accordion-BkA7rtwr.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-bw7gLRlR.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
  31. package/dist/{vue-ui-annotator-C-_zXB7H.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
  32. package/dist/{vue-ui-bullet-BRnz7E8e.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
  33. package/dist/{vue-ui-candlestick-9cPPnO0t.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
  34. package/dist/{vue-ui-carousel-table-BJuSGbk2.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
  35. package/dist/{vue-ui-chestnut-D2dnrdHT.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
  36. package/dist/{vue-ui-chord-Rvygj27H.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
  37. package/dist/{vue-ui-circle-pack-BR79EDAC.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
  38. package/dist/{vue-ui-cursor-K11x9TYc.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
  39. package/dist/{vue-ui-dashboard-BgxqXwqN.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
  40. package/dist/{vue-ui-digits-D7StMUym.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
  41. package/dist/{vue-ui-donut-CyOg8kph.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
  42. package/dist/{vue-ui-donut-evolution-CVhQaMNQ.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
  43. package/dist/{vue-ui-dumbbell-C7Wex4VO.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
  44. package/dist/{vue-ui-flow-DFNdP-V9.js → vue-ui-flow-CYWiZjrP.js} +9 -8
  45. package/dist/{vue-ui-funnel-DqWcZVvF.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
  46. package/dist/{vue-ui-galaxy-BhPbJqYr.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
  47. package/dist/{vue-ui-gauge-sP6YPTJH.js → vue-ui-gauge-BJgJgef_.js} +33 -32
  48. package/dist/{vue-ui-gizmo-B4fq_bGX.js → vue-ui-gizmo-DBclpybR.js} +3 -3
  49. package/dist/{vue-ui-heatmap-CpNjtuyD.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
  50. package/dist/{vue-ui-history-plot-CtgTg4fG.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
  51. package/dist/{vue-ui-kpi-CN2AE1VF.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-CYt8LlhO.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
  53. package/dist/{vue-ui-molecule-D3kexAu_.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
  54. package/dist/{vue-ui-mood-radar-hHqR8eS7.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
  55. package/dist/{vue-ui-nested-donuts-DXwaOA_n.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
  56. package/dist/{vue-ui-onion-C7R2R5tf.js → vue-ui-onion-UzMmwtvF.js} +9 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-Dh772r8W.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
  58. package/dist/{vue-ui-quadrant-jrOesLSU.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
  59. package/dist/{vue-ui-quick-chart-CtLnhGZA.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
  60. package/dist/{vue-ui-radar-BikYRjfw.js → vue-ui-radar-DMfv2hSb.js} +6 -6
  61. package/dist/{vue-ui-rating-DUYbT-Ve.js → vue-ui-rating-CFYHJrxj.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CjnDrflp.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
  63. package/dist/{vue-ui-ridgeline-o7-RpeJx.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
  64. package/dist/{vue-ui-rings-Dinj5ws1.js → vue-ui-rings-CyX30Ccv.js} +23 -22
  65. package/dist/{vue-ui-scatter-CODAsxBq.js → vue-ui-scatter-BEDnWByj.js} +10 -9
  66. package/dist/{vue-ui-skeleton-miKWlCAi.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
  67. package/dist/{vue-ui-smiley-DwqlNm1O.js → vue-ui-smiley-79itAe84.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BjL35phT.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-2o2ZLL50.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-CMlBpOcc.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-C7Ue-aaI.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
  72. package/dist/{vue-ui-sparkline-w29yzdZG.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-DbIxY7W3.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CWqpeYW-.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
  75. package/dist/{vue-ui-strip-plot-DyjQVaDX.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
  76. package/dist/{vue-ui-table-Bx82XIlz.js → vue-ui-table-DFTE1OH5.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-RvSyx9L6.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
  78. package/dist/{vue-ui-table-sparkline-DebvtEV3.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
  79. package/dist/{vue-ui-thermometer-yPKRIlqA.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
  80. package/dist/{vue-ui-timer-C15nOU7T.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C2G8HtiX.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
  82. package/dist/{vue-ui-treemap-cFhw0xSg.js → vue-ui-treemap-B0CPNusH.js} +229 -228
  83. package/dist/{vue-ui-vertical-bar-dWiOw4sV.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
  84. package/dist/{vue-ui-waffle-Uldnmn6D.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
  85. package/dist/{vue-ui-wheel-Cz79iDLO.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
  86. package/dist/{vue-ui-word-cloud-BGeHV6hS.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
  87. package/dist/{vue-ui-world-D1Dy-4mh.js → vue-ui-world-BhUsfhY5.js} +8 -7
  88. package/dist/{vue-ui-xy-BA7xWU7_.js → vue-ui-xy-CEFkua9H.js} +918 -811
  89. package/dist/{vue-ui-xy-canvas-B2kkKb64.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
  90. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { useCssVars as oe, computed as c, defineAsyncComponent as ae, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as l, openBlock as n, unref as u, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as r, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
2
- import { u as de, c as A, a as pe, o as ce, e as ve, a5 as me, G as fe, O as he, q as ge, r as be } from "./index-CbcpITE_.js";
3
- import { u as H } from "./useNestedProp-y56W8I7J.js";
4
- import { u as ye } from "./usePrinter-u-gQiRNz.js";
1
+ import { useCssVars as ae, computed as c, defineAsyncComponent as oe, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as l, openBlock as n, unref as u, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as r, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
2
+ import { u as de, c as A, a as pe, o as ce, e as ve, a5 as me, G as fe, O as he, q as ge, r as be } from "./index-CH_mJIWj.js";
3
+ import { u as H } from "./useNestedProp-rMR-JeOJ.js";
4
+ import { u as ye } from "./usePrinter-DJ7WfWUs.js";
5
5
  import { u as Ce } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { _ as ke } from "./Shape-BBbhObHC.js";
6
+ import { _ as ke } from "./Shape-DEWxbZ-l.js";
7
7
  import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], xe = {
9
9
  key: 0,
@@ -41,11 +41,11 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
41
41
  }
42
42
  },
43
43
  setup(D, { expose: L }) {
44
- oe((e) => ({
45
- bf477d1e: ee.value,
46
- "71369fcc": j.value
44
+ ae((e) => ({
45
+ a9ac4c2a: ee.value,
46
+ "9ba12974": j.value
47
47
  }));
48
- const X = ae(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_table_heatmap: W } = de(), m = D, _ = h(A()), i = h(!1), y = h(null), I = h(!1), O = h(0), q = se();
48
+ const X = oe(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_table_heatmap: W } = de(), m = D, _ = h(A()), i = h(!1), y = h(null), I = h(!1), O = h(0), q = se();
49
49
  z(() => {
50
50
  q["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
51
51
  });
@@ -81,42 +81,42 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
81
81
  componentName: "VueUiTableHeatmap",
82
82
  type: "dataset"
83
83
  });
84
- const e = new ResizeObserver((a) => {
85
- a.forEach((o) => {
86
- i.value = o.contentRect.width < Q.value;
84
+ const e = new ResizeObserver((o) => {
85
+ o.forEach((a) => {
86
+ i.value = a.contentRect.width < Q.value;
87
87
  });
88
88
  });
89
89
  y.value && e.observe(y.value);
90
90
  }
91
91
  const M = c(() => m.dataset.map((e) => {
92
- const a = e.values.map((s) => isNaN(s) ? 0 : s), o = a.reduce((s, p) => s + p, 0);
92
+ const o = e.values.map((s) => isNaN(s) ? 0 : s), a = o.reduce((s, p) => s + p, 0);
93
93
  return {
94
94
  ...e,
95
- values: a,
95
+ values: o,
96
96
  serieExtremes: {
97
- max: Math.max(...a),
98
- min: Math.min(...a)
97
+ max: Math.max(...o),
98
+ min: Math.min(...o)
99
99
  },
100
- sum: o,
101
- average: o / a.length,
102
- median: me(a),
100
+ sum: a,
101
+ average: a / o.length,
102
+ median: me(o),
103
103
  displayValues: [e.name, ...e.values],
104
104
  id: A()
105
105
  };
106
106
  })), S = c(() => {
107
- const e = M.value.flatMap((a) => a.values);
107
+ const e = M.value.flatMap((o) => o.values);
108
108
  return {
109
109
  min: Math.min(...e),
110
110
  max: Math.max(...e)
111
111
  };
112
112
  });
113
- function Z(e, a) {
114
- const o = t.value.style.heatmapColors.useIndividualScale;
115
- return he(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, o ? a.min : S.value.min, o ? a.max : S.value.max, e);
113
+ function Z(e, o) {
114
+ const a = t.value.style.heatmapColors.useIndividualScale;
115
+ return he(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, a ? o.min : S.value.min, a ? o.max : S.value.max, e);
116
116
  }
117
117
  const T = c(() => M.value.map((e) => ({
118
118
  ...e,
119
- colors: e.displayValues.map((a) => isNaN(a) ? t.value.style.backgroundColor : Z(a, e.serieExtremes))
119
+ colors: e.displayValues.map((o) => isNaN(o) ? t.value.style.backgroundColor : Z(o, e.serieExtremes))
120
120
  }))), j = c(() => t.value.style.backgroundColor), ee = c(() => `${t.value.table.borderWidth}px`);
121
121
  function U() {
122
122
  ie(() => {
@@ -126,8 +126,8 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
126
126
  [s.sum],
127
127
  [s.average],
128
128
  [s.median]
129
- ]), a = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(e), o = ge(a);
130
- be({ csvContent: o, title: "vue-ui-table-heatmap" });
129
+ ]), o = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(e), a = ge(o);
130
+ be({ csvContent: a, title: "vue-ui-table-heatmap" });
131
131
  });
132
132
  }
133
133
  function te(e) {
@@ -137,14 +137,14 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
137
137
  generatePdf: N,
138
138
  generateCsv: U,
139
139
  generateImage: V
140
- }), (e, a) => (n(), l("div", {
140
+ }), (e, o) => (n(), l("div", {
141
141
  ref_key: "tableContainer",
142
142
  ref: y,
143
143
  style: C(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${t.value.userOptions.show ? "36px" : ""}; ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}; position:relative;`),
144
144
  class: E({ "vue-ui-responsive": i.value }),
145
145
  id: `table_heatmap_${_.value}`,
146
- onMouseenter: a[0] || (a[0] = () => u(x)(!0)),
147
- onMouseleave: a[1] || (a[1] = () => u(x)(!1))
146
+ onMouseenter: o[0] || (o[0] = () => u(x)(!0)),
147
+ onMouseleave: o[1] || (o[1] = () => u(x)(!1))
148
148
  }, [
149
149
  t.value.userOptions.show && Y.value && (u(F) || u($)) ? (n(), le(u(X), {
150
150
  ref: "details",
@@ -162,6 +162,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
162
162
  titles: { ...t.value.userOptions.buttonTitles },
163
163
  chartElement: y.value,
164
164
  position: t.value.userOptions.position,
165
+ callbacks: t.value.userOptions.callbacks,
165
166
  onToggleFullscreen: te,
166
167
  onGeneratePdf: u(N),
167
168
  onGenerateCsv: U,
@@ -172,8 +173,8 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
172
173
  }, re({ _: 2 }, [
173
174
  e.$slots.menuIcon ? {
174
175
  name: "menuIcon",
175
- fn: b(({ isOpen: o, color: s }) => [
176
- r(e.$slots, "menuIcon", G(B({ isOpen: o, color: s })), void 0, !0)
176
+ fn: b(({ isOpen: a, color: s }) => [
177
+ r(e.$slots, "menuIcon", G(B({ isOpen: a, color: s })), void 0, !0)
177
178
  ]),
178
179
  key: "0"
179
180
  } : void 0,
@@ -200,12 +201,12 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
200
201
  } : void 0,
201
202
  e.$slots.optionFullscreen ? {
202
203
  name: "optionFullscreen",
203
- fn: b(({ toggleFullscreen: o, isFullscreen: s }) => [
204
- r(e.$slots, "optionFullscreen", G(B({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
204
+ fn: b(({ toggleFullscreen: a, isFullscreen: s }) => [
205
+ r(e.$slots, "optionFullscreen", G(B({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
205
206
  ]),
206
207
  key: "4"
207
208
  } : void 0
208
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
209
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
209
210
  g("table", {
210
211
  class: E({ "vue-ui-table-heatmap": !0 }),
211
212
  style: C(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
@@ -218,19 +219,19 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
218
219
  role: "row",
219
220
  style: C(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
220
221
  }, [
221
- (n(!0), l(k, null, w(t.value.table.head.values, (o, s) => (n(), l("th", $e, [
222
- r(e.$slots, "head", f({ ref_for: !0 }, { value: o, rowIndex: s, type: typeof o, isResponsive: i.value }), void 0, !0)
222
+ (n(!0), l(k, null, w(t.value.table.head.values, (a, s) => (n(), l("th", $e, [
223
+ r(e.$slots, "head", f({ ref_for: !0 }, { value: a, rowIndex: s, type: typeof a, isResponsive: i.value }), void 0, !0)
223
224
  ]))), 256))
224
225
  ], 4)
225
226
  ]),
226
227
  g("tbody", null, [
227
- (n(!0), l(k, null, w(T.value, (o, s) => (n(), l("tr", we, [
228
- (n(!0), l(k, null, w(o.displayValues, (p, d) => (n(), l("td", {
228
+ (n(!0), l(k, null, w(T.value, (a, s) => (n(), l("tr", we, [
229
+ (n(!0), l(k, null, w(a.displayValues, (p, d) => (n(), l("td", {
229
230
  role: "cell",
230
231
  "data-cell": t.value.table.head.values[d]
231
232
  }, [
232
- o.color && d === 0 ? (n(), l("div", xe, [
233
- o.color ? (n(), l("svg", {
233
+ a.color && d === 0 ? (n(), l("div", xe, [
234
+ a.color ? (n(), l("svg", {
234
235
  key: 0,
235
236
  height: t.value.style.shapeSize,
236
237
  width: t.value.style.shapeSize,
@@ -239,9 +240,9 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
239
240
  }, [
240
241
  ue(ke, {
241
242
  plot: { x: 10, y: 10 },
242
- color: o.color,
243
+ color: a.color,
243
244
  radius: 9,
244
- shape: o.shape || "circle"
245
+ shape: a.shape || "circle"
245
246
  }, null, 8, ["color", "shape"])
246
247
  ], 8, Fe)) : v("", !0),
247
248
  r(e.$slots, "rowTitle", f({ ref_for: !0 }, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value }), void 0, !0)
@@ -253,17 +254,17 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
253
254
  d > 0 ? r(e.$slots, "cell", f({
254
255
  key: 1,
255
256
  ref_for: !0
256
- }, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value, color: o.colors[d], textColor: u(fe)(o.colors[d]) }), void 0, !0) : v("", !0)
257
+ }, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value, color: a.colors[d], textColor: u(fe)(a.colors[d]) }), void 0, !0) : v("", !0)
257
258
  ], 64))
258
259
  ], 8, Oe))), 256)),
259
260
  t.value.table.showSum ? (n(), l("td", Pe, [
260
- r(e.$slots, "sum", f({ ref_for: !0 }, { value: o.sum, rowIndex: s, isResponsive: i.value }), void 0, !0)
261
+ r(e.$slots, "sum", f({ ref_for: !0 }, { value: a.sum, rowIndex: s, isResponsive: i.value }), void 0, !0)
261
262
  ])) : v("", !0),
262
263
  t.value.table.showAverage ? (n(), l("td", Ne, [
263
- r(e.$slots, "average", f({ ref_for: !0 }, { value: o.average, rowIndex: s, isResponsive: i.value }), void 0, !0)
264
+ r(e.$slots, "average", f({ ref_for: !0 }, { value: a.average, rowIndex: s, isResponsive: i.value }), void 0, !0)
264
265
  ])) : v("", !0),
265
266
  t.value.table.showMedian ? (n(), l("td", Ve, [
266
- r(e.$slots, "median", f({ ref_for: !0 }, { value: o.median, rowIndex: s, isResponsive: i.value }), void 0, !0)
267
+ r(e.$slots, "median", f({ ref_for: !0 }, { value: a.median, rowIndex: s, isResponsive: i.value }), void 0, !0)
267
268
  ])) : v("", !0)
268
269
  ]))), 256))
269
270
  ])
@@ -273,7 +274,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
273
274
  ], 512)) : v("", !0)
274
275
  ], 46, Ie));
275
276
  }
276
- }, Ae = /* @__PURE__ */ _e(Me, [["__scopeId", "data-v-5fd02fac"]]);
277
+ }, Ae = /* @__PURE__ */ _e(Me, [["__scopeId", "data-v-cf68b424"]]);
277
278
  export {
278
279
  Ae as default
279
280
  };
@@ -1,7 +1,7 @@
1
1
  import { useCssVars as Fe, defineAsyncComponent as J, ref as p, useSlots as Ve, onMounted as me, computed as _, watch as be, shallowRef as Te, onBeforeUnmount as We, createElementBlock as c, openBlock as d, unref as u, normalizeClass as K, createCommentVNode as g, createElementVNode as f, normalizeStyle as r, toDisplayString as C, withDirectives as Me, createVNode as D, Fragment as Q, renderList as Y, createBlock as Ue, createSlots as Be, withCtx as P, renderSlot as O, mergeProps as ge, nextTick as Ee } from "vue";
2
- import { u as ye } from "./useNestedProp-y56W8I7J.js";
3
- import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a5 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-CbcpITE_.js";
4
- import { u as je } from "./usePrinter-u-gQiRNz.js";
2
+ import { u as ye } from "./useNestedProp-rMR-JeOJ.js";
3
+ import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a5 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-CH_mJIWj.js";
4
+ import { u as je } from "./usePrinter-DJ7WfWUs.js";
5
5
  import { u as et } from "./useUserOptionState-BIvW1Kz7.js";
6
6
  import { v as tt } from "./vClickOutside-C6WiFswA.js";
7
7
  import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -41,9 +41,9 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
41
41
  },
42
42
  setup(ke, { expose: _e }) {
43
43
  Fe((t) => ({
44
- "6e3712b2": t.tdo
44
+ "130513d6": t.tdo
45
45
  }));
46
- const Ce = J(() => import("./vue-ui-sparkline-w29yzdZG.js")), N = J(() => import("./BaseIcon-j0c6lJUs.js")), xe = J(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_table_sparkline: we } = Ge(), x = ke, U = p(Le()), Z = p(0), B = p(0), E = p(null), Se = Ve();
46
+ const Ce = J(() => import("./vue-ui-sparkline-DwzCA8d6.js")), N = J(() => import("./BaseIcon-DaR0sIWZ.js")), xe = J(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_table_sparkline: we } = Ge(), x = ke, U = p(Le()), Z = p(0), B = p(0), E = p(null), Se = Ve();
47
47
  me(() => {
48
48
  Se["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
49
49
  });
@@ -406,6 +406,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
406
406
  titles: { ...e.value.userOptions.buttonTitles },
407
407
  chartElement: F.value,
408
408
  position: e.value.userOptions.position,
409
+ callbacks: e.value.userOptions.callbacks,
409
410
  onToggleFullscreen: Pe,
410
411
  onGeneratePdf: u(oe),
411
412
  onGenerateImage: u(ne),
@@ -449,7 +450,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
449
450
  ]),
450
451
  key: "4"
451
452
  } : void 0
452
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0)
453
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0)
453
454
  ], 6))), 256))
454
455
  ], 4)), [
455
456
  [u(tt), Ne]
@@ -654,7 +655,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
654
655
  ], 512)) : g("", !0)
655
656
  ], 42, lt));
656
657
  }
657
- }, wt = /* @__PURE__ */ at(bt, [["__scopeId", "data-v-0812843e"]]);
658
+ }, wt = /* @__PURE__ */ at(bt, [["__scopeId", "data-v-3be5a698"]]);
658
659
  export {
659
660
  wt as default
660
661
  };
@@ -1,10 +1,10 @@
1
- import { useCssVars as Ce, computed as d, defineAsyncComponent as F, onMounted as $e, ref as p, watch as Pe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as se, normalizeClass as I, createBlock as O, createCommentVNode as c, createSlots as Fe, withCtx as x, renderSlot as f, normalizeProps as A, guardReactiveProps as M, createVNode as Ie, createElementVNode as v, Fragment as Y, renderList as oe, toDisplayString as Oe } from "vue";
2
- import { u as Ae, o as Me, e as le, g as Ye, c as Ne, t as Se, p as w, a as Ue, b as Te, v as g, d as N, X as Ve, s as qe, i as Le, f as Ee } from "./index-CbcpITE_.js";
3
- import { u as ae } from "./useNestedProp-y56W8I7J.js";
4
- import { u as Ge } from "./usePrinter-u-gQiRNz.js";
1
+ import { useCssVars as Ce, computed as d, defineAsyncComponent as F, onMounted as $e, ref as p, watch as Pe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as se, normalizeClass as O, createBlock as I, createCommentVNode as c, createSlots as Fe, withCtx as x, renderSlot as f, normalizeProps as A, guardReactiveProps as M, createVNode as Oe, createElementVNode as v, Fragment as Y, renderList as oe, toDisplayString as Ie } from "vue";
2
+ import { u as Ae, o as Me, e as le, g as Ye, c as Ne, t as Se, p as w, a as Ue, b as Te, v as g, d as N, X as Ve, s as qe, i as Le, f as Ee } from "./index-CH_mJIWj.js";
3
+ import { u as ae } from "./useNestedProp-rMR-JeOJ.js";
4
+ import { u as Ge } from "./usePrinter-DJ7WfWUs.js";
5
5
  import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
6
6
  import { u as je } from "./useChartAccessibility-9icAAmYg.js";
7
- import ze from "./Title-Dx8ctnVy.js";
7
+ import ze from "./Title-apr_T9tg.js";
8
8
  import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const Re = ["id"], De = {
10
10
  key: 1,
@@ -42,11 +42,11 @@ const Re = ["id"], De = {
42
42
  },
43
43
  setup(_, { expose: re }) {
44
44
  Ce((s) => ({
45
- "67ef7d5f": pe.value,
46
- fabc91e2: ge.value,
47
- d0007888: fe.value
45
+ "4bc80fca": pe.value,
46
+ "19db7204": ge.value,
47
+ "5e34901e": fe.value
48
48
  }));
49
- const ne = F(() => import("./PackageVersion-DCAZ9Z7V.js")), ue = F(() => import("./PenAndPaper-B9RP4oFj.js")), ie = F(() => import("./vue-ui-skeleton-miKWlCAi.js")), ce = F(() => import("./UserOptions-CGn3YdRV.js")), { vue_ui_thermometer: he } = Ae(), a = _, S = d(() => !!a.dataset && Object.keys(a.dataset).length);
49
+ const ne = F(() => import("./PackageVersion-ClpqQxYT.js")), ue = F(() => import("./PenAndPaper-B-T7XvxF.js")), ie = F(() => import("./vue-ui-skeleton-C6PWt_m5.js")), ce = F(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_thermometer: he } = Ae(), a = _, S = d(() => !!a.dataset && Object.keys(a.dataset).length);
50
50
  $e(() => {
51
51
  W();
52
52
  });
@@ -170,13 +170,13 @@ const Re = ["id"], De = {
170
170
  }), (s, r) => (l(), u("div", {
171
171
  ref_key: "thermoChart",
172
172
  ref: j,
173
- class: I(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
173
+ class: O(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
174
174
  style: se(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
175
175
  id: `thermometer__${m.value}`,
176
176
  onMouseenter: r[0] || (r[0] = () => i(R)(!0)),
177
177
  onMouseleave: r[1] || (r[1] = () => i(R)(!1))
178
178
  }, [
179
- e.value.userOptions.buttons.annotator ? (l(), O(i(ue), {
179
+ e.value.userOptions.buttons.annotator ? (l(), I(i(ue), {
180
180
  key: 0,
181
181
  svgRef: i(H),
182
182
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -186,7 +186,7 @@ const Re = ["id"], De = {
186
186
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
187
187
  de.value ? (l(), u("div", De, null, 512)) : c("", !0),
188
188
  e.value.style.title.text ? (l(), u("div", He, [
189
- (l(), O(ze, {
189
+ (l(), I(ze, {
190
190
  key: `title_${B.value}`,
191
191
  config: {
192
192
  title: {
@@ -200,7 +200,7 @@ const Re = ["id"], De = {
200
200
  }
201
201
  }, null, 8, ["config"]))
202
202
  ])) : c("", !0),
203
- e.value.userOptions.show && S.value && (i(D) || i(U)) ? (l(), O(i(ce), {
203
+ e.value.userOptions.show && S.value && (i(D) || i(U)) ? (l(), I(i(ce), {
204
204
  ref: "details",
205
205
  key: `user_options_${z.value}`,
206
206
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -218,6 +218,7 @@ const Re = ["id"], De = {
218
218
  position: e.value.userOptions.position,
219
219
  hasAnnotator: e.value.userOptions.buttons.annotator,
220
220
  isAnnotation: P.value,
221
+ callbacks: e.value.userOptions.callbacks,
221
222
  onToggleFullscreen: ke,
222
223
  onGeneratePdf: i(Q),
223
224
  onGenerateImage: i(Z),
@@ -261,18 +262,18 @@ const Re = ["id"], De = {
261
262
  ]),
262
263
  key: "4"
263
264
  } : void 0
264
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
265
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
265
266
  S.value ? (l(), u("svg", {
266
267
  key: 4,
267
268
  ref_key: "svgRef",
268
269
  ref: H,
269
270
  xmlns: i(Ve),
270
- class: I({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
271
+ class: O({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
271
272
  width: "100%",
272
273
  viewBox: `0 0 ${o.value.width} ${o.value.height}`,
273
274
  style: "background:transparent"
274
275
  }, [
275
- Ie(i(ne)),
276
+ Oe(i(ne)),
276
277
  s.$slots["chart-background"] ? (l(), u("foreignObject", {
277
278
  key: 0,
278
279
  x: 0,
@@ -423,7 +424,7 @@ const Re = ["id"], De = {
423
424
  ], 64)) : c("", !0)
424
425
  ]))), 128)),
425
426
  v("rect", {
426
- class: I({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
427
+ class: O({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
427
428
  x: o.value.left,
428
429
  y: o.value.top,
429
430
  height: q.value,
@@ -432,14 +433,14 @@ const Re = ["id"], De = {
432
433
  }, null, 10, yt)
433
434
  ]),
434
435
  v("text", {
435
- class: I({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
436
+ class: O({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
436
437
  y: q.value + o.value.top + e.value.style.chart.label.fontSize / 3,
437
438
  x: o.value.left - 10,
438
439
  "text-anchor": "end",
439
440
  fill: e.value.style.chart.label.color,
440
441
  "font-size": e.value.style.chart.label.fontSize,
441
442
  "font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
442
- }, Oe(i(Le)(
443
+ }, Ie(i(Le)(
443
444
  e.value.style.chart.label.formatter,
444
445
  _.dataset.value,
445
446
  i(Ee)({
@@ -458,7 +459,7 @@ const Re = ["id"], De = {
458
459
  s.$slots.source ? (l(), u("div", pt, [
459
460
  f(s.$slots, "source", {}, void 0, !0)
460
461
  ], 512)) : c("", !0),
461
- S.value ? c("", !0) : (l(), O(i(ie), {
462
+ S.value ? c("", !0) : (l(), I(i(ie), {
462
463
  key: 7,
463
464
  config: {
464
465
  type: "thermometer",
@@ -472,7 +473,7 @@ const Re = ["id"], De = {
472
473
  }, null, 8, ["config"]))
473
474
  ], 46, Re));
474
475
  }
475
- }, Ft = /* @__PURE__ */ Be(mt, [["__scopeId", "data-v-1a738265"]]);
476
+ }, Ft = /* @__PURE__ */ Be(mt, [["__scopeId", "data-v-c84e39bf"]]);
476
477
  export {
477
478
  Ft as default
478
479
  };
@@ -1,10 +1,10 @@
1
1
  import { defineAsyncComponent as se, ref as v, shallowRef as K, onMounted as le, computed as z, onBeforeUnmount as oe, watch as re, createElementBlock as r, openBlock as l, normalizeStyle as w, createCommentVNode as d, createElementVNode as M, createBlock as ue, unref as Q, createVNode as T, renderSlot as H, mergeProps as Y, normalizeProps as V, guardReactiveProps as G, toDisplayString as ie } from "vue";
2
- import { u as ne } from "./useNestedProp-y56W8I7J.js";
3
- import { u as ce, c as ve, X as de, F as X } from "./index-CbcpITE_.js";
2
+ import { u as ne } from "./useNestedProp-rMR-JeOJ.js";
3
+ import { u as ce, c as ve, X as de, F as X } from "./index-CH_mJIWj.js";
4
4
  import { t as he, u as pe } from "./useResponsive-JZ9xq-JV.js";
5
5
  import { u as fe } from "./useChartAccessibility-9icAAmYg.js";
6
- import we from "./Title-Dx8ctnVy.js";
7
- import R from "./BaseIcon-j0c6lJUs.js";
6
+ import we from "./Title-apr_T9tg.js";
7
+ import R from "./BaseIcon-DaR0sIWZ.js";
8
8
  import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  class ge {
10
10
  constructor(L, N, S, j = !0, A = !0) {
@@ -130,7 +130,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
130
130
  },
131
131
  emits: ["start", "pause", "reset", "restart", "lap"],
132
132
  setup(q, { expose: L, emit: N }) {
133
- const S = se(() => import("./PackageVersion-DCAZ9Z7V.js")), { vue_ui_timer: j } = ce(), A = q, g = N, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
133
+ const S = se(() => import("./PackageVersion-ClpqQxYT.js")), { vue_ui_timer: j } = ce(), A = q, g = N, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
134
134
  le(() => {
135
135
  m();
136
136
  });
@@ -1,10 +1,10 @@
1
- import { defineAsyncComponent as F, computed as h, ref as b, watch as ee, onMounted as ge, createElementBlock as c, openBlock as n, unref as l, normalizeStyle as L, normalizeClass as j, createBlock as z, createCommentVNode as d, createSlots as pe, withCtx as x, renderSlot as p, normalizeProps as S, guardReactiveProps as N, createVNode as ye, Fragment as te, renderList as ae, toDisplayString as me } from "vue";
2
- import { u as oe } from "./useNestedProp-y56W8I7J.js";
3
- import { u as ke, c as be, a as Ce, v as _e, o as $e, e as we, w as le, X as Pe, i as xe, f as Oe } from "./index-CbcpITE_.js";
4
- import { u as Ae } from "./usePrinter-u-gQiRNz.js";
1
+ import { defineAsyncComponent as F, computed as h, ref as b, watch as ee, onMounted as pe, createElementBlock as c, openBlock as n, unref as l, normalizeStyle as L, normalizeClass as j, createBlock as z, createCommentVNode as d, createSlots as ge, withCtx as O, renderSlot as g, normalizeProps as S, guardReactiveProps as N, createVNode as ye, Fragment as te, renderList as ae, toDisplayString as me } from "vue";
2
+ import { u as oe } from "./useNestedProp-rMR-JeOJ.js";
3
+ import { u as ke, c as be, a as Ce, v as _e, o as $e, e as we, w as le, X as Pe, i as Oe, f as xe } from "./index-CH_mJIWj.js";
4
+ import { u as Ae } from "./usePrinter-DJ7WfWUs.js";
5
5
  import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
6
6
  import { u as Fe } from "./useChartAccessibility-9icAAmYg.js";
7
- import ze from "./Title-Dx8ctnVy.js";
7
+ import ze from "./Title-apr_T9tg.js";
8
8
  import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const Ne = ["id"], Me = {
10
10
  key: 2,
@@ -33,7 +33,7 @@ const Ne = ["id"], Me = {
33
33
  }
34
34
  },
35
35
  setup(se, { expose: ne }) {
36
- const re = F(() => import("./PenAndPaper-B9RP4oFj.js")), ue = F(() => import("./vue-ui-skeleton-miKWlCAi.js")), ie = F(() => import("./UserOptions-CGn3YdRV.js")), ce = F(() => import("./PackageVersion-DCAZ9Z7V.js")), { vue_ui_tiremarks: ve } = ke(), f = se, M = h(() => !!f.dataset && Object.keys(f.dataset).length), T = b(be()), E = b(null), he = b(null), R = b(0), B = b(0), e = h({
36
+ const re = F(() => import("./PenAndPaper-B-T7XvxF.js")), ue = F(() => import("./vue-ui-skeleton-C6PWt_m5.js")), ie = F(() => import("./UserOptions-OVNxxnq5.js")), ce = F(() => import("./PackageVersion-ClpqQxYT.js")), { vue_ui_tiremarks: ve } = ke(), f = se, M = h(() => !!f.dataset && Object.keys(f.dataset).length), T = b(be()), E = b(null), he = b(null), R = b(0), B = b(0), e = h({
37
37
  get: () => V(),
38
38
  set: (t) => t
39
39
  }), { userOptionsVisible: U, setUserOptionsVisibility: X, keepUserOptionState: D } = Ie({ config: e.value }), { svgRef: H } = Fe({ config: e.value.style.chart.title });
@@ -59,7 +59,7 @@ const Ne = ["id"], Me = {
59
59
  }), de = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : _e(f.dataset.percentage));
60
60
  ee(() => f.dataset, (t) => {
61
61
  e.value.style.chart.animation.use ? Q(t.percentage) : u.value = t.percentage || 0;
62
- }, { deep: !0 }), ge(() => {
62
+ }, { deep: !0 }), pe(() => {
63
63
  W();
64
64
  });
65
65
  function Q(t) {
@@ -94,37 +94,37 @@ const Ne = ["id"], Me = {
94
94
  left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
95
95
  right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
96
96
  };
97
- }), O = h(() => Object.values(i.value).reduce((t, r) => t + r, 0)), o = h(() => ({
97
+ }), x = h(() => Object.values(i.value).reduce((t, r) => t + r, 0)), o = h(() => ({
98
98
  height: C.value ? 312 : 56,
99
99
  width: C.value ? 56 : 312
100
100
  })), v = h(() => C.value ? {
101
- mark: (o.value.height - O.value) / 100 * 0.5,
102
- space: (o.value.height - O.value) / 100 * 0.5
101
+ mark: (o.value.height - x.value) / 100 * 0.5,
102
+ space: (o.value.height - x.value) / 100 * 0.5
103
103
  } : {
104
- mark: (o.value.width - O.value) / 100 * 0.5,
105
- space: (o.value.width - O.value) / 100 * 0.5
104
+ mark: (o.value.width - x.value) / 100 * 0.5,
105
+ space: (o.value.width - x.value) / 100 * 0.5
106
106
  }), Z = h(() => {
107
107
  const t = [];
108
108
  for (let a = 0; a < 100; a += 1) {
109
109
  const s = e.value.style.chart.layout.ticks.gradient.show ? le(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
110
110
  if (C.value) {
111
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, g = i.value.left + 4 + $, y = o.value.width - i.value.right - 4 - $, m = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (y - g) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
111
+ const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, p = i.value.left + 4 + $, y = o.value.width - i.value.right - 4 - $, m = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (y - p) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
112
112
  t.push({
113
- x1: g,
113
+ x1: p,
114
114
  x2: y,
115
115
  y1: m,
116
116
  y2: k,
117
- curve: `M ${g} ${m} C ${g + w} ${m - P}, ${y - w} ${k - P}, ${y} ${k}`,
117
+ curve: `M ${p} ${m} C ${p + w} ${m - P}, ${y - w} ${k - P}, ${y} ${k}`,
118
118
  color: s
119
119
  });
120
120
  } else {
121
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, g = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = g, m = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - m) / e.value.style.chart.layout.curveAngleX;
121
+ const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, p = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = p, m = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - m) / e.value.style.chart.layout.curveAngleX;
122
122
  t.push({
123
- x1: g,
123
+ x1: p,
124
124
  x2: y,
125
125
  y1: m,
126
126
  y2: k,
127
- curve: `M ${g} ${m} C ${g + w} ${m + P}, ${y + w} ${k - P}, ${y} ${k}`,
127
+ curve: `M ${p} ${m} C ${p + w} ${m + P}, ${y + w} ${k - P}, ${y} ${k}`,
128
128
  color: s
129
129
  });
130
130
  }
@@ -210,6 +210,7 @@ const Ne = ["id"], Me = {
210
210
  position: e.value.userOptions.position,
211
211
  hasAnnotator: e.value.userOptions.buttons.annotator,
212
212
  isAnnotation: I.value,
213
+ callbacks: e.value.userOptions.callbacks,
213
214
  onToggleFullscreen: fe,
214
215
  onGeneratePdf: l(J),
215
216
  onGenerateImage: l(K),
@@ -217,43 +218,43 @@ const Ne = ["id"], Me = {
217
218
  style: L({
218
219
  visibility: l(D) ? l(U) ? "visible" : "hidden" : "visible"
219
220
  })
220
- }, pe({ _: 2 }, [
221
+ }, ge({ _: 2 }, [
221
222
  t.$slots.menuIcon ? {
222
223
  name: "menuIcon",
223
- fn: x(({ isOpen: a, color: s }) => [
224
- p(t.$slots, "menuIcon", S(N({ isOpen: a, color: s })), void 0, !0)
224
+ fn: O(({ isOpen: a, color: s }) => [
225
+ g(t.$slots, "menuIcon", S(N({ isOpen: a, color: s })), void 0, !0)
225
226
  ]),
226
227
  key: "0"
227
228
  } : void 0,
228
229
  t.$slots.optionPdf ? {
229
230
  name: "optionPdf",
230
- fn: x(() => [
231
- p(t.$slots, "optionPdf", {}, void 0, !0)
231
+ fn: O(() => [
232
+ g(t.$slots, "optionPdf", {}, void 0, !0)
232
233
  ]),
233
234
  key: "1"
234
235
  } : void 0,
235
236
  t.$slots.optionImg ? {
236
237
  name: "optionImg",
237
- fn: x(() => [
238
- p(t.$slots, "optionImg", {}, void 0, !0)
238
+ fn: O(() => [
239
+ g(t.$slots, "optionImg", {}, void 0, !0)
239
240
  ]),
240
241
  key: "2"
241
242
  } : void 0,
242
243
  t.$slots.optionFullscreen ? {
243
244
  name: "optionFullscreen",
244
- fn: x(({ toggleFullscreen: a, isFullscreen: s }) => [
245
- p(t.$slots, "optionFullscreen", S(N({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
245
+ fn: O(({ toggleFullscreen: a, isFullscreen: s }) => [
246
+ g(t.$slots, "optionFullscreen", S(N({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
246
247
  ]),
247
248
  key: "3"
248
249
  } : void 0,
249
250
  t.$slots.optionAnnotator ? {
250
251
  name: "optionAnnotator",
251
- fn: x(({ toggleAnnotator: a, isAnnotator: s }) => [
252
- p(t.$slots, "optionAnnotator", S(N({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
252
+ fn: O(({ toggleAnnotator: a, isAnnotator: s }) => [
253
+ g(t.$slots, "optionAnnotator", S(N({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
253
254
  ]),
254
255
  key: "4"
255
256
  } : void 0
256
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
257
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
257
258
  M.value ? (n(), c("svg", {
258
259
  key: 4,
259
260
  ref_key: "svgRef",
@@ -274,7 +275,7 @@ const Ne = ["id"], Me = {
274
275
  pointerEvents: "none"
275
276
  }
276
277
  }, [
277
- p(t.$slots, "chart-background", {}, void 0, !0)
278
+ g(t.$slots, "chart-background", {}, void 0, !0)
278
279
  ], 8, Ue)) : d("", !0),
279
280
  e.value.style.chart.layout.curved ? (n(), c("g", Ge, [
280
281
  (n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("path", {
@@ -304,22 +305,22 @@ const Ne = ["id"], Me = {
304
305
  fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? l(le)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
305
306
  "font-weight": _.value.bold ? "bold" : "normal",
306
307
  "text-anchor": _.value.textAnchor
307
- }, me(l(xe)(
308
+ }, me(l(Oe)(
308
309
  e.value.style.chart.percentage.formatter,
309
310
  u.value,
310
- l(Oe)({
311
+ l(xe)({
311
312
  v: u.value,
312
313
  s: "%",
313
314
  r: e.value.style.chart.percentage.rounding
314
315
  })
315
316
  )), 9, Re)) : d("", !0),
316
- p(t.$slots, "svg", { svg: o.value }, void 0, !0)
317
+ g(t.$slots, "svg", { svg: o.value }, void 0, !0)
317
318
  ], 14, Te)) : d("", !0),
318
319
  t.$slots.watermark ? (n(), c("div", Be, [
319
- p(t.$slots, "watermark", S(N({ isPrinting: l(Y) || l(q) })), void 0, !0)
320
+ g(t.$slots, "watermark", S(N({ isPrinting: l(Y) || l(q) })), void 0, !0)
320
321
  ])) : d("", !0),
321
322
  t.$slots.source ? (n(), c("div", Xe, [
322
- p(t.$slots, "source", {}, void 0, !0)
323
+ g(t.$slots, "source", {}, void 0, !0)
323
324
  ], 512)) : d("", !0),
324
325
  M.value ? d("", !0) : (n(), z(l(ue), {
325
326
  key: 7,
@@ -335,7 +336,7 @@ const Ne = ["id"], Me = {
335
336
  }, null, 8, ["config"]))
336
337
  ], 46, Ne));
337
338
  }
338
- }, Ze = /* @__PURE__ */ Se(De, [["__scopeId", "data-v-18f40a65"]]);
339
+ }, Ze = /* @__PURE__ */ Se(De, [["__scopeId", "data-v-d54c8cf2"]]);
339
340
  export {
340
341
  Ze as default
341
342
  };