vue-data-ui 3.7.15 → 3.8.0

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 (167) hide show
  1. package/README.md +50 -43
  2. package/dist/{Arrow-9T8aUCDR.js → Arrow-pvqmWZAQ.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DZVSjhEw.js → BaseDraggableDialog-BYwNgX3M.js} +2 -2
  4. package/dist/{BaseIcon-Dl4VBlHV.js → BaseIcon-CALhpING.js} +8 -4
  5. package/dist/{ColorPicker-BrMbLQds.js → ColorPicker-B_9b0REv.js} +2 -2
  6. package/dist/{DataTable-Ho3Bf5oq.js → DataTable-Ca1twcf7.js} +2 -2
  7. package/dist/{Legend-DSyOOSJ1.js → Legend-Djkw4FGq.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-MX5IsudW.js → NonSvgPenAndPaper-DCQPVA4M.js} +3 -3
  9. package/dist/{PackageVersion-BAF3mEBQ.js → PackageVersion-B9RA2_BM.js} +1 -1
  10. package/dist/{PenAndPaper-kymjF6_b.js → PenAndPaper-DscVdZ1u.js} +3 -3
  11. package/dist/{Shape-rPzC8L-O.js → Shape-BEGGcaL8.js} +1 -1
  12. package/dist/{Slicer-DScoMPmj.js → Slicer-DaUi0o8i.js} +2 -2
  13. package/dist/{SlicerPreview-B1QUTxTZ.js → SlicerPreview-Bk-h_ANq.js} +2 -2
  14. package/dist/{SparkTooltip-reDvtQYF.js → SparkTooltip-BWdCP-h3.js} +1 -1
  15. package/dist/{Title-Hk29BxeL.js → Title-CgkWUXeV.js} +1 -1
  16. package/dist/{Tooltip-De7i-i20.js → Tooltip-OHx7yHlS.js} +1 -1
  17. package/dist/{UserOptions-DgscxIaa.js → UserOptions-ChRXLqps.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +1 -1
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +1 -1
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +1 -1
  24. package/dist/components/vue-ui-candlestick.js +1 -1
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +1 -1
  27. package/dist/components/vue-ui-chord.js +1 -1
  28. package/dist/components/vue-ui-circle-pack.js +1 -1
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dag.js +5 -0
  31. package/dist/components/vue-ui-dashboard.js +1 -1
  32. package/dist/components/vue-ui-digits.js +1 -1
  33. package/dist/components/vue-ui-donut-evolution.js +1 -1
  34. package/dist/components/vue-ui-donut.js +1 -1
  35. package/dist/components/vue-ui-dumbbell.js +1 -1
  36. package/dist/components/vue-ui-flow.js +1 -1
  37. package/dist/components/vue-ui-funnel.js +1 -1
  38. package/dist/components/vue-ui-galaxy.js +1 -1
  39. package/dist/components/vue-ui-gauge.js +1 -1
  40. package/dist/components/vue-ui-gizmo.js +1 -1
  41. package/dist/components/vue-ui-heatmap.js +1 -1
  42. package/dist/components/vue-ui-history-plot.js +1 -1
  43. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  44. package/dist/components/vue-ui-icon.js +1 -1
  45. package/dist/components/vue-ui-kpi.js +1 -1
  46. package/dist/components/vue-ui-mini-loader.js +1 -1
  47. package/dist/components/vue-ui-molecule.js +1 -1
  48. package/dist/components/vue-ui-mood-radar.js +1 -1
  49. package/dist/components/vue-ui-nested-donuts.js +1 -1
  50. package/dist/components/vue-ui-onion.js +1 -1
  51. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  52. package/dist/components/vue-ui-quadrant.js +1 -1
  53. package/dist/components/vue-ui-quick-chart.js +1 -1
  54. package/dist/components/vue-ui-radar.js +1 -1
  55. package/dist/components/vue-ui-rating.js +1 -1
  56. package/dist/components/vue-ui-relation-circle.js +1 -1
  57. package/dist/components/vue-ui-ridgeline.js +1 -1
  58. package/dist/components/vue-ui-rings.js +1 -1
  59. package/dist/components/vue-ui-scatter.js +1 -1
  60. package/dist/components/vue-ui-skeleton.js +1 -1
  61. package/dist/components/vue-ui-smiley.js +1 -1
  62. package/dist/components/vue-ui-spark-trend.js +1 -1
  63. package/dist/components/vue-ui-sparkbar.js +1 -1
  64. package/dist/components/vue-ui-sparkgauge.js +1 -1
  65. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  66. package/dist/components/vue-ui-sparkline.js +1 -1
  67. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  68. package/dist/components/vue-ui-stackbar.js +1 -1
  69. package/dist/components/vue-ui-stackline.js +1 -1
  70. package/dist/components/vue-ui-strip-plot.js +1 -1
  71. package/dist/components/vue-ui-table-heatmap.js +1 -1
  72. package/dist/components/vue-ui-table-sparkline.js +1 -1
  73. package/dist/components/vue-ui-table.js +1 -1
  74. package/dist/components/vue-ui-thermometer.js +1 -1
  75. package/dist/components/vue-ui-timer.js +1 -1
  76. package/dist/components/vue-ui-tiremarks.js +1 -1
  77. package/dist/components/vue-ui-treemap.js +1 -1
  78. package/dist/components/vue-ui-vertical-bar.js +1 -1
  79. package/dist/components/vue-ui-waffle.js +1 -1
  80. package/dist/components/vue-ui-wheel.js +1 -1
  81. package/dist/components/vue-ui-word-cloud.js +1 -1
  82. package/dist/components/vue-ui-world.js +1 -1
  83. package/dist/components/vue-ui-xy-canvas.js +1 -1
  84. package/dist/components/vue-ui-xy.js +1 -1
  85. package/dist/{dom-to-png-BG68zYm5.js → dom-to-png-VQEAYRVr.js} +1 -1
  86. package/dist/{img-BYzbY8TZ.js → img-CwrkWkkl.js} +1 -1
  87. package/dist/{lib-DUaaQGCv.js → lib-qMPkcvmh.js} +194 -179
  88. package/dist/{pdf--SSvtzbF.js → pdf-BMMrFX8S.js} +1 -1
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +147 -6
  91. package/dist/types/vue-ui-dag.d.ts +16 -0
  92. package/dist/{useAutoSizeLabelsInsideViewbox-DBJqy2aF.js → useAutoSizeLabelsInsideViewbox-CY90KinM.js} +1 -1
  93. package/dist/{useNestedProp-CVGae3Qt.js → useNestedProp-DOOBu_sL.js} +269 -185
  94. package/dist/usePanZoom-DMfuOfaC.js +135 -0
  95. package/dist/{usePrinter-BdVu83IN.js → usePrinter-CjGh4mFJ.js} +2 -2
  96. package/dist/vue-data-ui-BgQPEjgE.js +351 -0
  97. package/dist/vue-data-ui.js +202 -216
  98. package/dist/{vue-ui-3d-bar-Cg4nzpjZ.js → vue-ui-3d-bar-BHcSmBFt.js} +6 -6
  99. package/dist/{vue-ui-accordion-B3SlkXqV.js → vue-ui-accordion-BWfQ8Imt.js} +3 -3
  100. package/dist/{vue-ui-age-pyramid-BGA_e57_.js → vue-ui-age-pyramid-CKtsF5IW.js} +25 -25
  101. package/dist/{vue-ui-annotator-BHmNl_oD.js → vue-ui-annotator-DQmmDTg7.js} +7 -7
  102. package/dist/{vue-ui-bullet-B8Td03RZ.js → vue-ui-bullet-CZKHPSsG.js} +7 -7
  103. package/dist/{vue-ui-candlestick-aRpv_WG-.js → vue-ui-candlestick-DW7yeLnE.js} +39 -39
  104. package/dist/{vue-ui-carousel-table-yjrmp9Q4.js → vue-ui-carousel-table-Bv0TZYW1.js} +4 -4
  105. package/dist/{vue-ui-chestnut-mlal6Cjv.js → vue-ui-chestnut-BUqGBycr.js} +5 -5
  106. package/dist/{vue-ui-chord-Ddbwnzl7.js → vue-ui-chord-Awtzhq_0.js} +8 -8
  107. package/dist/{vue-ui-circle-pack-DUw81Lbf.js → vue-ui-circle-pack-WTa2Mj2O.js} +37 -37
  108. package/dist/vue-ui-cursor-D6_m463R.js +252 -0
  109. package/dist/vue-ui-dag-tle30Ehr.js +2727 -0
  110. package/dist/{vue-ui-dashboard-BzIopzfw.js → vue-ui-dashboard-BLgMwKmT.js} +68 -68
  111. package/dist/vue-ui-digits-DIZ8pi6C.js +200 -0
  112. package/dist/{vue-ui-donut-D-uqv9-W.js → vue-ui-donut-DY8Q-PAg.js} +88 -88
  113. package/dist/{vue-ui-donut-evolution-C25j-w7G.js → vue-ui-donut-evolution-DGnq03PX.js} +85 -85
  114. package/dist/{vue-ui-dumbbell-DaBN6kZz.js → vue-ui-dumbbell-xRMH2Mlv.js} +33 -33
  115. package/dist/{vue-ui-flow-LBrbktKK.js → vue-ui-flow-C0a8rOyT.js} +42 -42
  116. package/dist/{vue-ui-funnel-StsSjaZJ.js → vue-ui-funnel-D6krkF1a.js} +19 -19
  117. package/dist/{vue-ui-galaxy-DATC0Ww1.js → vue-ui-galaxy-BCkJt9OE.js} +59 -59
  118. package/dist/{vue-ui-gauge-BuSVuoeo.js → vue-ui-gauge-BaH-VYAi.js} +25 -25
  119. package/dist/{vue-ui-gizmo-B4Du388h.js → vue-ui-gizmo-BnCONs1t.js} +3 -3
  120. package/dist/{vue-ui-heatmap-C7jHSpqL.js → vue-ui-heatmap-BYoD6XaS.js} +67 -67
  121. package/dist/{vue-ui-history-plot-CMGhB2Zv.js → vue-ui-history-plot-BZBtIBsY.js} +43 -43
  122. package/dist/{vue-ui-horizontal-bar-BlG3kfkk.js → vue-ui-horizontal-bar-DsDDKUa6.js} +69 -69
  123. package/dist/{vue-ui-kpi-CTUnzHcT.js → vue-ui-kpi-Dn750UNZ.js} +3 -3
  124. package/dist/{vue-ui-mini-loader-DYMh6g7y.js → vue-ui-mini-loader-44NP38K0.js} +2 -2
  125. package/dist/{vue-ui-molecule-BNwKqzIg.js → vue-ui-molecule-C994_mOK.js} +53 -53
  126. package/dist/{vue-ui-mood-radar-Bpfe33cj.js → vue-ui-mood-radar-BI2SAtcM.js} +7 -7
  127. package/dist/{vue-ui-nested-donuts-CG6vyTLr.js → vue-ui-nested-donuts-CSF_bA-I.js} +38 -38
  128. package/dist/{vue-ui-onion-BNrW85xB.js → vue-ui-onion-L5ULuI3B.js} +38 -38
  129. package/dist/{vue-ui-parallel-coordinate-plot-prQ8DLgP.js → vue-ui-parallel-coordinate-plot-CYetuoa5.js} +43 -43
  130. package/dist/{vue-ui-quadrant-mFM3WtKm.js → vue-ui-quadrant-Diwm1-e6.js} +8 -8
  131. package/dist/{vue-ui-quick-chart-CmJEoZEj.js → vue-ui-quick-chart-YBj4Iyk6.js} +51 -51
  132. package/dist/{vue-ui-radar-MheG5gvf.js → vue-ui-radar-D76Mi-4u.js} +41 -41
  133. package/dist/{vue-ui-rating-BAfHKHmb.js → vue-ui-rating-CJjSt6-z.js} +2 -2
  134. package/dist/{vue-ui-relation-circle-BPZDXdVc.js → vue-ui-relation-circle-BlYazckd.js} +19 -19
  135. package/dist/{vue-ui-ridgeline-BPDURc5t.js → vue-ui-ridgeline-DW8JqGxN.js} +8 -8
  136. package/dist/{vue-ui-rings-ByeUycTV.js → vue-ui-rings-De3shW_r.js} +37 -37
  137. package/dist/{vue-ui-scatter-HkSLoM2F.js → vue-ui-scatter-oDhPqRJq.js} +8 -8
  138. package/dist/{vue-ui-skeleton-DtciU6S2.js → vue-ui-skeleton-BUIXG_mY.js} +3 -3
  139. package/dist/vue-ui-smiley-Cni8Q56U.js +377 -0
  140. package/dist/{vue-ui-spark-trend-lSw8HYoA.js → vue-ui-spark-trend-D1Zt5np6.js} +16 -16
  141. package/dist/{vue-ui-sparkbar-DZlTPWdS.js → vue-ui-sparkbar-CdmXCSnj.js} +3 -3
  142. package/dist/{vue-ui-sparkgauge-Cwl9Ksz2.js → vue-ui-sparkgauge-Dn2PQhZj.js} +17 -17
  143. package/dist/{vue-ui-sparkhistogram-Bq2DS4V0.js → vue-ui-sparkhistogram-nrkglHJk.js} +4 -4
  144. package/dist/{vue-ui-sparkline-DbkCbelr.js → vue-ui-sparkline-tz8fAf2C.js} +31 -31
  145. package/dist/{vue-ui-sparkstackbar-DWDEh2j6.js → vue-ui-sparkstackbar-BQPSsF5Q.js} +3 -3
  146. package/dist/{vue-ui-stackbar-BhbkdK0G.js → vue-ui-stackbar-DMO3YIQp.js} +9 -9
  147. package/dist/{vue-ui-stackline-DqKYCBDP.js → vue-ui-stackline-BQo4KoIK.js} +55 -55
  148. package/dist/{vue-ui-strip-plot-BUbyj8j8.js → vue-ui-strip-plot-CJpmLgCV.js} +28 -28
  149. package/dist/{vue-ui-table-B1bx46AB.js → vue-ui-table-Cp4ee_1a.js} +5 -5
  150. package/dist/{vue-ui-table-heatmap-kuly5Mc1.js → vue-ui-table-heatmap-1qpMxFyu.js} +5 -5
  151. package/dist/{vue-ui-table-sparkline-B9YLMDpp.js → vue-ui-table-sparkline-wSJjRJc4.js} +4 -4
  152. package/dist/{vue-ui-thermometer-DGM9Cnnw.js → vue-ui-thermometer-DA8pG0Tr.js} +19 -19
  153. package/dist/{vue-ui-timer-C1uo5WJb.js → vue-ui-timer-Bc0J-YWP.js} +12 -12
  154. package/dist/{vue-ui-tiremarks-B-xq7Ivj.js → vue-ui-tiremarks-DqYsca6Q.js} +6 -6
  155. package/dist/{vue-ui-treemap-VI1FYNqD.js → vue-ui-treemap-BQsPzEFA.js} +51 -51
  156. package/dist/{vue-ui-waffle-WdacXwVf.js → vue-ui-waffle-5wkXlR4p.js} +69 -69
  157. package/dist/{vue-ui-wheel-C7yfIwbK.js → vue-ui-wheel-CkZko1RX.js} +6 -6
  158. package/dist/{vue-ui-word-cloud-BlNxODSZ.js → vue-ui-word-cloud-52bv_Ba-.js} +41 -41
  159. package/dist/{vue-ui-world-vfrFZPI1.js → vue-ui-world-oIyf91PY.js} +6 -6
  160. package/dist/{vue-ui-xy-DHN5H4Ln.js → vue-ui-xy-DIEBv1b8.js} +75 -75
  161. package/dist/{vue-ui-xy-canvas-B3oAOFin.js → vue-ui-xy-canvas-pnm8ar87.js} +127 -127
  162. package/package.json +4 -3
  163. package/dist/usePanZoom-DZtyJi5q.js +0 -127
  164. package/dist/vue-data-ui-BcTiYl7u.js +0 -337
  165. package/dist/vue-ui-cursor-CIynd5w9.js +0 -229
  166. package/dist/vue-ui-digits-BDVx5bMH.js +0 -154
  167. package/dist/vue-ui-smiley-B8k0b8-R.js +0 -852
@@ -1,16 +1,16 @@
1
- import { defineAsyncComponent as Fe, ref as A, computed as M, toRefs as La, watch as Te, shallowRef as Bt, onMounted as _a, onBeforeUnmount as Dt, nextTick as lt, watchEffect as za, createElementBlock as n, openBlock as o, normalizeStyle as D, normalizeClass as he, createBlock as Ie, createCommentVNode as m, createElementVNode as z, createVNode as Se, unref as s, withCtx as G, renderSlot as R, normalizeProps as Q, guardReactiveProps as K, createSlots as $a, toDisplayString as N, Fragment as x, renderList as F, Teleport as Ea, mergeProps as ot } from "vue";
2
- import { c as Fa, t as Ta, i as Ia, p as ee, W as Nt, j as Oa, a5 as Pa, g as Ma, o as Ra, l as nt, Z as Ba, F as We, X as Da, _ as Na, $ as it, a0 as Oe, a as se, d as Z, U as Ut, z as Vt, M as ve, x as Ge, R as rt } from "./lib-DUaaQGCv.js";
1
+ import { defineAsyncComponent as Fe, ref as A, computed as M, toRefs as La, watch as Te, shallowRef as Bt, onMounted as _a, onBeforeUnmount as Dt, nextTick as lt, watchEffect as za, createElementBlock as n, openBlock as o, normalizeStyle as D, normalizeClass as he, createBlock as Ie, createCommentVNode as m, createElementVNode as z, createVNode as Se, unref as s, withCtx as W, renderSlot as R, normalizeProps as Q, guardReactiveProps as K, createSlots as $a, toDisplayString as N, Fragment as x, renderList as F, Teleport as Ea, mergeProps as ot } from "vue";
2
+ import { c as Fa, t as Ta, i as Ia, p as ee, a0 as Nt, j as Oa, aa as Pa, g as Ma, o as Ra, l as nt, a2 as Ba, M as Ge, X as Da, a3 as Na, a4 as it, a5 as Oe, a as se, d as Z, _ as Ut, z as Vt, T as ve, x as We, Z as rt } from "./lib-qMPkcvmh.js";
3
3
  import { t as Ht, u as Ua } from "./useResponsive-DfdjqQps.js";
4
- import { u as Va, a as ut } from "./useNestedProp-CVGae3Qt.js";
4
+ import { u as Va, a as ut } from "./useNestedProp-DOOBu_sL.js";
5
5
  import { u as Ha, B as qa } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Wa } from "./usePrinter-BdVu83IN.js";
7
- import { u as Ga } from "./useSvgExport-DrjCWun4.js";
6
+ import { u as Ga } from "./usePrinter-CjGh4mFJ.js";
7
+ import { u as Wa } from "./useSvgExport-DrjCWun4.js";
8
8
  import { u as ja } from "./useTimeLabels-C5qMhpbe.js";
9
9
  import { u as Xa } from "./useThemeCheck-DGJ31Vi5.js";
10
10
  import { u as Za } from "./useChartAccessibility-9icAAmYg.js";
11
11
  import { u as Ya } from "./useTimeLabelCollider-CIsgDrl9.js";
12
- import Ja from "./img-BYzbY8TZ.js";
13
- import { S as Qa } from "./Slicer-DScoMPmj.js";
12
+ import Ja from "./img-CwrkWkkl.js";
13
+ import { S as Qa } from "./Slicer-DaUi0o8i.js";
14
14
  import { _ as Ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  const w = {
16
16
  LINE: "LINE",
@@ -25,10 +25,10 @@ function tl({ dataset: h, barLineSwitch: O = 6, debug: C = !0 }) {
25
25
  const Ze = Object.keys(h[0]), Pe = Object.values(h[0]);
26
26
  if (!Ze.some((j) => ol(j)))
27
27
  return C && console.warn("The data type of the dataset objects in the array must contain one of the following keys: DATA, SERIES, VALUE, VALUES, NUM. Casing is not important."), !1;
28
- qt(Pe, (j) => typeof j == "number") && (V = w.DONUT, X = h), qt(Pe, (j) => Array.isArray(j) && de(j)) && (Wt(h) > O ? V = w.LINE : V = w.BAR, ce = Wt(h), X = h.map((j) => ({
28
+ qt(Pe, (j) => typeof j == "number") && (V = w.DONUT, X = h), qt(Pe, (j) => Array.isArray(j) && de(j)) && (Gt(h) > O ? V = w.LINE : V = w.BAR, ce = Gt(h), X = h.map((j) => ({
29
29
  ...j,
30
30
  data: nl(j, (q) => de(q))
31
- }))), h = h.map((j) => Gt(j)), X = X.map((j) => Gt(j));
31
+ }))), h = h.map((j) => Wt(j)), X = X.map((j) => Wt(j));
32
32
  }
33
33
  return {
34
34
  dataset: h,
@@ -79,13 +79,13 @@ function qt(h, O) {
79
79
  C.push(O(h[V]));
80
80
  return C.includes(!0);
81
81
  }
82
- function Wt(h) {
82
+ function Gt(h) {
83
83
  return Math.max(...[...h].flatMap((O) => Object.values(O).filter((C) => de(C)).map((C) => C.length)));
84
84
  }
85
85
  function nl(h, O) {
86
86
  return Object.values(h).filter((C) => O(C))[0];
87
87
  }
88
- function Gt(h) {
88
+ function Wt(h) {
89
89
  const O = {};
90
90
  for (let C in h)
91
91
  h.hasOwnProperty(C) && (O[C.toUpperCase()] = h[C]);
@@ -126,7 +126,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
126
126
  }, Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ol = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x", "y", "font-size", "fill"], Rl = {
127
127
  key: 3,
128
128
  class: "periodLabels"
129
- }, Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = { key: 0 }, Nl = ["font-size", "text-anchor", "fill", "transform"], Ul = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Vl = { class: "plots" }, Hl = { class: "line-plot-series" }, ql = ["d", "stroke", "stroke-width"], Wl = ["d", "stroke", "stroke-width"], Gl = ["d", "stroke", "stroke-width"], jl = ["d", "stroke", "stroke-width"], Xl = ["cx", "cy", "fill", "stroke"], Zl = {
129
+ }, Bl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Dl = { key: 0 }, Nl = ["font-size", "text-anchor", "fill", "transform"], Ul = ["font-size", "text-anchor", "fill", "transform", "innerHTML"], Vl = { class: "plots" }, Hl = { class: "line-plot-series" }, ql = ["d", "stroke", "stroke-width"], Gl = ["d", "stroke", "stroke-width"], Wl = ["d", "stroke", "stroke-width"], jl = ["d", "stroke", "stroke-width"], Xl = ["cx", "cy", "fill", "stroke"], Zl = {
130
130
  key: 4,
131
131
  class: "dataLabels"
132
132
  }, Yl = ["font-size", "fill", "x", "y"], Jl = {
@@ -174,7 +174,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
174
174
  },
175
175
  emits: ["selectDatapoint", "selectLegend"],
176
176
  setup(h, { expose: O, emit: C }) {
177
- const V = Fe(() => import("./BaseIcon-Dl4VBlHV.js")), X = Fe(() => import("./PackageVersion-BAF3mEBQ.js")), ce = Fe(() => import("./PenAndPaper-kymjF6_b.js")), Ae = Fe(() => import("./Tooltip-De7i-i20.js")), st = Fe(() => import("./UserOptions-DgscxIaa.js")), { vue_ui_quick_chart: Ze } = Va(), { isThemeValid: Pe, warnInvalidTheme: j } = Xa(), q = h, ne = A(null), vt = A(null), dt = A(null), ct = A(null), Y = A(Fa()), me = A(!1), we = A(null), ge = A(""), oe = A(null), ft = A(null), ht = A(null), L = A([]), mt = A(0), Me = A(0), gt = A(!1), Ce = A(null), Le = A(null), ie = A(null), Re = A(null), pt = A(null), yt = A(null);
177
+ const V = Fe(() => import("./BaseIcon-CALhpING.js")), X = Fe(() => import("./PackageVersion-B9RA2_BM.js")), ce = Fe(() => import("./PenAndPaper-DscVdZ1u.js")), Ae = Fe(() => import("./Tooltip-OHx7yHlS.js")), st = Fe(() => import("./UserOptions-ChRXLqps.js")), { vue_ui_quick_chart: Ze } = Va(), { isThemeValid: Pe, warnInvalidTheme: j } = Xa(), q = h, ne = A(null), vt = A(null), dt = A(null), ct = A(null), Y = A(Fa()), me = A(!1), we = A(null), ge = A(""), oe = A(null), ft = A(null), ht = A(null), L = A([]), mt = A(0), Me = A(0), gt = A(!1), Ce = A(null), Le = A(null), ie = A(null), Re = A(null), pt = A(null), yt = A(null);
178
178
  A("#FFFFFF");
179
179
  const e = A(Ke()), Ye = M(() => !!e.value.debug), { loading: U, FINAL_DATASET: ta, manualLoading: xt } = Ha({
180
180
  ...La(q),
@@ -268,7 +268,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
268
268
  debug: Ye.value
269
269
  });
270
270
  }, { immediate: !0 });
271
- const { isPrinting: De, isImaging: Ne, generatePdf: St, generateImage: At } = Wa({
271
+ const { isPrinting: De, isImaging: Ne, generatePdf: St, generateImage: At } = Ga({
272
272
  elementId: `${$.value}_${Y.value}`,
273
273
  fileName: e.value.title || $.value,
274
274
  options: e.value.userOptionsPrint
@@ -408,7 +408,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
408
408
  function r({ datapoint: f, seriesIndex: _ }) {
409
409
  we.value = { datapoint: f, seriesIndex: _, config: e.value, dataset: a }, oe.value = f.id;
410
410
  const d = e.value.tooltipCustomFormat;
411
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: _ }), Ge(d) && rt(() => d({
411
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: f, seriesIndex: _ }), We(d) && rt(() => d({
412
412
  datapoint: f,
413
413
  seriesIndex: _,
414
414
  series: a,
@@ -451,7 +451,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
451
451
  value: f.value || 0,
452
452
  absoluteValue: ze.value.dataset.find((d, i) => `donut_${i}` === f.id).VALUE,
453
453
  shape: "circle"
454
- })), ue = S.value.width / 2, J = S.value.height / 2, W = S.value.height * e.value.donutRadiusRatio;
454
+ })), ue = S.value.width / 2, J = S.value.height / 2, G = S.value.height * e.value.donutRadiusRatio;
455
455
  return {
456
456
  dataset: ae.filter((f) => !L.value.includes(f.id)),
457
457
  legend: ae,
@@ -465,13 +465,13 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
465
465
  total: P,
466
466
  cx: ue,
467
467
  cy: J,
468
- radius: W,
468
+ radius: G,
469
469
  chart: Ba(
470
470
  { series: a.filter((f) => !L.value.includes(f.id)) },
471
471
  ue,
472
472
  J,
473
- W,
474
- W,
473
+ G,
474
+ G,
475
475
  1.99999,
476
476
  2,
477
477
  1,
@@ -585,7 +585,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
585
585
  max: Math.max(...l.filter((d) => !L.value.includes(d.id)).flatMap((d) => d.values)),
586
586
  min: Math.min(...l.filter((d) => !L.value.includes(d.id)).flatMap((d) => d.values)),
587
587
  maxSeries: Math.max(...l.map((d) => d.values.length))
588
- }, p = r.max === r.min ? We(r.min, r.min + 1, e.value.xyScaleSegments) : We(r.min < 0 ? r.min : 0, r.max < 0 ? 0 : r.max, e.value.xyScaleSegments), b = r.min < 0 ? Math.abs(r.min) : 0, I = r.max < 0 ? t.top : t.bottom - b / (p.max + b) * t.height, P = t.width / r.maxSeries, ae = p.ticks.map((d) => ({
588
+ }, p = r.max === r.min ? Ge(r.min, r.min + 1, e.value.xyScaleSegments) : Ge(r.min < 0 ? r.min : 0, r.max < 0 ? 0 : r.max, e.value.xyScaleSegments), b = r.min < 0 ? Math.abs(r.min) : 0, I = r.max < 0 ? t.top : t.bottom - b / (p.max + b) * t.height, P = t.width / r.maxSeries, ae = p.ticks.map((d) => ({
589
589
  y: t.bottom - t.height * ((d + b) / (p.max + b)),
590
590
  x: t.left - 8,
591
591
  value: d
@@ -613,12 +613,12 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
613
613
  absoluteIndex: i.absoluteIndices[d]
614
614
  })).filter((i) => !L.value.includes(i.id));
615
615
  }
616
- function W(d) {
616
+ function G(d) {
617
617
  oe.value = d, re.value = d;
618
618
  const i = J(d);
619
619
  we.value = { datapoint: i, seriesIndex: d, config: e.value, dataset: l };
620
620
  const g = e.value.tooltipCustomFormat;
621
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: d + y.value.start }), Ge(g) && rt(() => g({
621
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: i, seriesIndex: d + y.value.start }), We(g) && rt(() => g({
622
622
  datapoint: i,
623
623
  seriesIndex: d,
624
624
  series: l,
@@ -671,7 +671,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
671
671
  extremes: r,
672
672
  slotSize: P,
673
673
  yLabels: ae,
674
- useTooltip: W,
674
+ useTooltip: G,
675
675
  killTooltip: f,
676
676
  selectDatapoint: _
677
677
  };
@@ -720,7 +720,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
720
720
  max: Math.max(...l.filter((i) => !L.value.includes(i.id)).flatMap((i) => i.values)) < 0 ? 0 : Math.max(...l.filter((i) => !L.value.includes(i.id)).flatMap((i) => i.values)),
721
721
  min: Math.min(...l.filter((i) => !L.value.includes(i.id)).flatMap((i) => i.values)),
722
722
  maxSeries: Math.max(...l.filter((i) => !L.value.includes(i.id)).map((i) => i.values.length))
723
- }, p = r.min === r.max ? We(r.min, r.min + 1, e.value.xyScaleSegments) : We(r.min < 0 ? r.min : 0, r.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0, I = t.bottom - b / (p.max + b) * t.height, P = t.width / r.maxSeries, ae = p.ticks.map((i) => ({
723
+ }, p = r.min === r.max ? Ge(r.min, r.min + 1, e.value.xyScaleSegments) : Ge(r.min < 0 ? r.min : 0, r.max, e.value.xyScaleSegments), b = p.min < 0 ? Math.abs(p.min) : 0, I = t.bottom - b / (p.max + b) * t.height, P = t.width / r.maxSeries, ae = p.ticks.map((i) => ({
724
724
  y: t.bottom - t.height * ((i + b) / (p.max + b)),
725
725
  x: t.left - 8,
726
726
  value: i
@@ -750,7 +750,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
750
750
  };
751
751
  })
752
752
  }));
753
- function W(i) {
753
+ function G(i) {
754
754
  return l.map((g) => ({
755
755
  ...g,
756
756
  value: g.values[i],
@@ -759,10 +759,10 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
759
759
  }
760
760
  function f(i) {
761
761
  oe.value = i, re.value = i;
762
- const g = W(i);
762
+ const g = G(i);
763
763
  we.value = { datapoint: g, seriesIndex: i, config: e.value, dataset: l };
764
764
  const E = e.value.tooltipCustomFormat;
765
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), Ge(E) && rt(() => E({
765
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: g, seriesIndex: i + y.value.start }), We(E) && rt(() => E({
766
766
  datapoint: g,
767
767
  seriesIndex: i,
768
768
  series: l,
@@ -800,11 +800,11 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
800
800
  me.value = !0;
801
801
  }
802
802
  function _(i) {
803
- const g = W(i);
803
+ const g = G(i);
804
804
  e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: g, seriesIndex: i + y.value.start }), me.value = !1, oe.value = null, re.value = null;
805
805
  }
806
806
  function d(i) {
807
- const g = W(i);
807
+ const g = G(i);
808
808
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: g, seriesIndex: i + y.value.start }), ye("selectDatapoint", g);
809
809
  }
810
810
  return {
@@ -868,8 +868,8 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
868
868
  labelStep: I = 0,
869
869
  intraSeriesStep: P = 0
870
870
  } = {}) {
871
- const ae = Array.isArray(Ce?.value) ? Ce.value : [Ce?.value].filter(Boolean), ue = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), J = [...ae, ...ue].filter(Boolean), W = ne?.value || null, f = W ? Array.from(W.querySelectorAll(".vue-ui-quick-chart-plot")) : [], _ = W ? Array.from(W.querySelectorAll(".vue-ui-quick-chart-label")) : [];
872
- J.forEach(ca), It(f, { fromOpacity: "0", fromScale: "0.75" }), It(_, { fromOpacity: "0", fromScale: "0.98" }), f.forEach((g) => g.classList.remove("quick-animation")), _.forEach((g) => g.classList.remove("quick-animation")), W && W.offsetWidth;
871
+ const ae = Array.isArray(Ce?.value) ? Ce.value : [Ce?.value].filter(Boolean), ue = Array.isArray(Le?.value) ? Le.value : [Le?.value].filter(Boolean), J = [...ae, ...ue].filter(Boolean), G = ne?.value || null, f = G ? Array.from(G.querySelectorAll(".vue-ui-quick-chart-plot")) : [], _ = G ? Array.from(G.querySelectorAll(".vue-ui-quick-chart-label")) : [];
872
+ J.forEach(ca), It(f, { fromOpacity: "0", fromScale: "0.75" }), It(_, { fromOpacity: "0", fromScale: "0.98" }), f.forEach((g) => g.classList.remove("quick-animation")), _.forEach((g) => g.classList.remove("quick-animation")), G && G.offsetWidth;
873
873
  const d = f.length ? Ot(f, fa) : [], i = _.length ? Ot(_, ha) : [];
874
874
  requestAnimationFrame(() => {
875
875
  requestAnimationFrame(() => {
@@ -965,7 +965,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
965
965
  subtitle: {
966
966
  text: ""
967
967
  }
968
- })), { exportSvg: wa, getSvg: Ca } = Ga({
968
+ })), { exportSvg: wa, getSvg: Ca } = Wa({
969
969
  svg: Je,
970
970
  title: Aa,
971
971
  legend: Sa,
@@ -1005,22 +1005,22 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
1005
1005
  active: qe.value,
1006
1006
  onClose: tt
1007
1007
  }, {
1008
- "annotator-action-close": G(() => [
1008
+ "annotator-action-close": W(() => [
1009
1009
  R(a.$slots, "annotator-action-close", {}, void 0, !0)
1010
1010
  ]),
1011
- "annotator-action-color": G(({ color: t }) => [
1011
+ "annotator-action-color": W(({ color: t }) => [
1012
1012
  R(a.$slots, "annotator-action-color", Q(K({ color: t })), void 0, !0)
1013
1013
  ]),
1014
- "annotator-action-draw": G(({ mode: t }) => [
1014
+ "annotator-action-draw": W(({ mode: t }) => [
1015
1015
  R(a.$slots, "annotator-action-draw", Q(K({ mode: t })), void 0, !0)
1016
1016
  ]),
1017
- "annotator-action-undo": G(({ disabled: t }) => [
1017
+ "annotator-action-undo": W(({ disabled: t }) => [
1018
1018
  R(a.$slots, "annotator-action-undo", Q(K({ disabled: t })), void 0, !0)
1019
1019
  ]),
1020
- "annotator-action-redo": G(({ disabled: t }) => [
1020
+ "annotator-action-redo": W(({ disabled: t }) => [
1021
1021
  R(a.$slots, "annotator-action-redo", Q(K({ disabled: t })), void 0, !0)
1022
1022
  ]),
1023
- "annotator-action-delete": G(({ disabled: t }) => [
1023
+ "annotator-action-delete": W(({ disabled: t }) => [
1024
1024
  R(a.$slots, "annotator-action-delete", Q(K({ disabled: t })), void 0, !0)
1025
1025
  ]),
1026
1026
  _: 3
@@ -1067,49 +1067,49 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
1067
1067
  }, $a({ _: 2 }, [
1068
1068
  a.$slots.menuIcon ? {
1069
1069
  name: "menuIcon",
1070
- fn: G(({ isOpen: t, color: l }) => [
1070
+ fn: W(({ isOpen: t, color: l }) => [
1071
1071
  R(a.$slots, "menuIcon", Q(K({ isOpen: t, color: l })), void 0, !0)
1072
1072
  ]),
1073
1073
  key: "0"
1074
1074
  } : void 0,
1075
1075
  a.$slots.optionTooltip ? {
1076
1076
  name: "optionTooltip",
1077
- fn: G(() => [
1077
+ fn: W(() => [
1078
1078
  R(a.$slots, "optionTooltip", {}, void 0, !0)
1079
1079
  ]),
1080
1080
  key: "1"
1081
1081
  } : void 0,
1082
1082
  a.$slots.optionPdf ? {
1083
1083
  name: "optionPdf",
1084
- fn: G(() => [
1084
+ fn: W(() => [
1085
1085
  R(a.$slots, "optionPdf", {}, void 0, !0)
1086
1086
  ]),
1087
1087
  key: "2"
1088
1088
  } : void 0,
1089
1089
  a.$slots.optionImg ? {
1090
1090
  name: "optionImg",
1091
- fn: G(() => [
1091
+ fn: W(() => [
1092
1092
  R(a.$slots, "optionImg", {}, void 0, !0)
1093
1093
  ]),
1094
1094
  key: "3"
1095
1095
  } : void 0,
1096
1096
  a.$slots.optionSvg ? {
1097
1097
  name: "optionSvg",
1098
- fn: G(() => [
1098
+ fn: W(() => [
1099
1099
  R(a.$slots, "optionSvg", {}, void 0, !0)
1100
1100
  ]),
1101
1101
  key: "4"
1102
1102
  } : void 0,
1103
1103
  a.$slots.optionFullscreen ? {
1104
1104
  name: "optionFullscreen",
1105
- fn: G(({ toggleFullscreen: t, isFullscreen: l }) => [
1105
+ fn: W(({ toggleFullscreen: t, isFullscreen: l }) => [
1106
1106
  R(a.$slots, "optionFullscreen", Q(K({ toggleFullscreen: t, isFullscreen: l })), void 0, !0)
1107
1107
  ]),
1108
1108
  key: "5"
1109
1109
  } : void 0,
1110
1110
  a.$slots.optionAnnotator ? {
1111
1111
  name: "optionAnnotator",
1112
- fn: G(({ toggleAnnotator: t, isAnnotator: l }) => [
1112
+ fn: W(({ toggleAnnotator: t, isAnnotator: l }) => [
1113
1113
  R(a.$slots, "optionAnnotator", Q(K({ toggleAnnotator: t, isAnnotator: l })), void 0, !0)
1114
1114
  ]),
1115
1115
  key: "6"
@@ -1456,7 +1456,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
1456
1456
  fill: "none",
1457
1457
  class: he({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
1458
1458
  style: D({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
1459
- }, null, 14, Wl)
1459
+ }, null, 14, Gl)
1460
1460
  ], 64)) : (o(), n(x, { key: 1 }, [
1461
1461
  z("path", {
1462
1462
  ref_for: !0,
@@ -1469,7 +1469,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
1469
1469
  fill: "none",
1470
1470
  class: he({ "quick-animation": !s(U), "vue-data-ui-line-animated": e.value.lineAnimated && !s(U) }),
1471
1471
  style: D({ transition: s(U) ? void 0 : "all 0.3s ease-in-out" })
1472
- }, null, 14, Gl),
1472
+ }, null, 14, Wl),
1473
1473
  z("path", {
1474
1474
  ref_for: !0,
1475
1475
  ref_key: "pathTop",
@@ -1826,7 +1826,7 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
1826
1826
  onReset: ua,
1827
1827
  onTrapMouse: ra
1828
1828
  }, {
1829
- "reset-action": G(({ reset: t }) => [
1829
+ "reset-action": W(({ reset: t }) => [
1830
1830
  R(a.$slots, "reset-action", Q(K({ reset: t })), void 0, !0)
1831
1831
  ]),
1832
1832
  _: 3
@@ -1960,16 +1960,16 @@ const Xt = { backgroundColor: "#1A1A1A", color: "#CCCCCC", donutStroke: "#1A1A1A
1960
1960
  parent: ne.value,
1961
1961
  content: ge.value,
1962
1962
  isFullscreen: He.value,
1963
- isCustom: s(Ge)(e.value.tooltipCustomFormat),
1963
+ isCustom: s(We)(e.value.tooltipCustomFormat),
1964
1964
  smooth: e.value.tooltipSmooth,
1965
1965
  smoothForce: e.value.tooltipSmoothForce,
1966
1966
  smoothSnapThreshold: e.value.tooltipSmoothSnapThreshold,
1967
1967
  backdropFilter: e.value.tooltipBackdropFilter
1968
1968
  }, {
1969
- "tooltip-before": G(() => [
1969
+ "tooltip-before": W(() => [
1970
1970
  R(a.$slots, "tooltip-before", Q(K({ ...we.value })), void 0, !0)
1971
1971
  ]),
1972
- "tooltip-after": G(() => [
1972
+ "tooltip-after": W(() => [
1973
1973
  R(a.$slots, "tooltip-after", Q(K({ ...we.value })), void 0, !0)
1974
1974
  ]),
1975
1975
  _: 3
@@ -1,17 +1,17 @@
1
- import { defineAsyncComponent as T, computed as v, ref as c, toRefs as jt, watch as ve, shallowRef as qe, onMounted as Xt, onBeforeUnmount as Yt, createElementBlock as s, openBlock as n, unref as u, normalizeStyle as Z, normalizeClass as Y, createBlock as D, createCommentVNode as p, createElementVNode as C, createVNode as ee, withCtx as d, renderSlot as g, normalizeProps as A, guardReactiveProps as w, createSlots as He, Fragment as E, renderList as L, toDisplayString as N, Teleport as qt, resolveDynamicComponent as Ht, mergeProps as Jt, createTextVNode as ge, nextTick as Je } from "vue";
2
- import { c as Kt, t as Qt, i as Zt, p as R, o as eo, g as z, j as to, l as Ke, e as Qe, M as oo, d as W, a as he, X as ao, s as pe, h as lo, ac as Ze, k as et, u as ro, q as no, x as so, R as uo } from "./lib-DUaaQGCv.js";
1
+ import { defineAsyncComponent as T, computed as v, ref as c, toRefs as jt, watch as ve, shallowRef as qe, onMounted as Xt, onBeforeUnmount as Yt, createElementBlock as s, openBlock as n, unref as u, normalizeStyle as Q, normalizeClass as Y, createBlock as D, createCommentVNode as p, createElementVNode as C, createVNode as ee, withCtx as d, renderSlot as g, normalizeProps as A, guardReactiveProps as w, createSlots as He, Fragment as E, renderList as L, toDisplayString as N, Teleport as qt, resolveDynamicComponent as Ht, mergeProps as Zt, createTextVNode as ge, nextTick as Ze } from "vue";
2
+ import { c as Jt, t as Kt, i as Qt, p as R, o as eo, g as z, j as to, l as Je, e as Ke, T as oo, d as W, a as he, X as ao, s as pe, h as lo, ah as Qe, k as et, u as ro, q as no, x as so, Z as uo } from "./lib-qMPkcvmh.js";
3
3
  import { t as io, u as co } from "./useResponsive-DfdjqQps.js";
4
- import { u as vo, a as fe } from "./useNestedProp-CVGae3Qt.js";
4
+ import { u as vo, a as fe } from "./useNestedProp-DOOBu_sL.js";
5
5
  import { u as go, B as ho } from "./BaseScanner-BgWxam9d.js";
6
- import { u as po } from "./usePrinter-BdVu83IN.js";
6
+ import { u as po } from "./usePrinter-CjGh4mFJ.js";
7
7
  import { u as fo } from "./useSvgExport-DrjCWun4.js";
8
8
  import { u as bo } from "./useThemeCheck-DGJ31Vi5.js";
9
9
  import { u as yo } from "./useUserOptionState-BIvW1Kz7.js";
10
10
  import { u as mo } from "./useChartAccessibility-9icAAmYg.js";
11
- import { u as ko } from "./useAutoSizeLabelsInsideViewbox-DBJqy2aF.js";
12
- import Co from "./img-BYzbY8TZ.js";
13
- import Ao from "./Title-Hk29BxeL.js";
14
- import wo from "./Legend-DSyOOSJ1.js";
11
+ import { u as ko } from "./useAutoSizeLabelsInsideViewbox-CY90KinM.js";
12
+ import Co from "./img-CwrkWkkl.js";
13
+ import Ao from "./Title-CgkWUXeV.js";
14
+ import wo from "./Legend-Djkw4FGq.js";
15
15
  import { _ as $o } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { outerPolygon: { stroke: "#6A6A6A" }, grid: { stroke: "#5A5A5A" }, labels: { dataLabels: { color: "#CCCCCC" } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#1A1A1A", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, ot = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { outerPolygon: { stroke: "#5D403780", strokeWidth: 1 }, grid: { stroke: "#5D403740" }, labels: { dataLabels: { color: "#424242" } } }, legend: { color: "#424242", backgroundColor: "#FFF8E1" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, at = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { outerPolygon: { stroke: "#3A3A3A", strokeWidth: 1 }, grid: { stroke: "#3A3A3A" }, labels: { dataLabels: { color: "#BDBDBD" } } }, legend: { color: "#BDBDBD", backgroundColor: "#1E1E1E" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, lt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { outerPolygon: { stroke: "#336633", strokeWidth: 0 }, grid: { stroke: "#334C33", graduations: 1 }, labels: { dataLabels: { color: "#99AA99" } } }, legend: { color: "#99AA99", backgroundColor: "#1A1A1A" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#1A1A1A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, rt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { outerPolygon: { strokeWidth: 0 }, grid: { show: !1 }, labels: { dataLabels: { color: "#99AA99" } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, nt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { outerPolygon: { stroke: "#ABB1BC", strokeWidth: 0.5 }, grid: { stroke: "#C3DAC8" }, labels: { dataLabels: { color: "#99AA99" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, st = {
17
17
  default: {},
@@ -39,7 +39,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
39
39
  }, Yo = {
40
40
  class: "vue-ui-radar-tooltip-datalabel",
41
41
  style: { width: "100%" }
42
- }, qo = { class: "vue-ui-radar-tooltip-datalabel-name" }, Ho = { key: 0 }, Jo = {
42
+ }, qo = { class: "vue-ui-radar-tooltip-datalabel-name" }, Ho = { key: 0 }, Zo = {
43
43
  __name: "vue-ui-radar",
44
44
  props: {
45
45
  config: {
@@ -57,13 +57,13 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
57
57
  },
58
58
  emits: ["selectLegend"],
59
59
  setup(ut, { expose: it, emit: ct }) {
60
- const dt = T(() => import("./Tooltip-De7i-i20.js")), vt = T(() => import("./BaseIcon-Dl4VBlHV.js")), gt = T(() => import("./vue-ui-sparkbar-DZlTPWdS.js").then((t) => t.a)), ht = T(() => import("./vue-ui-accordion-B3SlkXqV.js")), pt = T(() => import("./DataTable-Ho3Bf5oq.js")), ft = T(() => import("./PenAndPaper-kymjF6_b.js")), bt = T(() => import("./UserOptions-DgscxIaa.js")), yt = T(() => import("./PackageVersion-BAF3mEBQ.js")), mt = T(() => import("./BaseDraggableDialog-DZVSjhEw.js")), { vue_ui_radar: kt } = vo(), { isThemeValid: Ct, warnInvalidTheme: At } = bo(), F = ut, be = v(() => !!F.dataset && Object.keys(F.dataset).length), m = c(Kt()), te = c(!1), oe = c(""), ye = c(0), _ = c(null), me = c(null), ke = c(null), Ce = c(null), Ae = c(null), we = c(0), $e = c(0), _e = c(0), Te = c(!1), G = c(null), ae = c(null), e = c(re()), { loading: Fe, FINAL_DATASET: x } = go({
60
+ const dt = T(() => import("./Tooltip-OHx7yHlS.js")), vt = T(() => import("./BaseIcon-CALhpING.js")), gt = T(() => import("./vue-ui-sparkbar-CdmXCSnj.js").then((t) => t.a)), ht = T(() => import("./vue-ui-accordion-BWfQ8Imt.js")), pt = T(() => import("./DataTable-Ca1twcf7.js")), ft = T(() => import("./PenAndPaper-DscVdZ1u.js")), bt = T(() => import("./UserOptions-ChRXLqps.js")), yt = T(() => import("./PackageVersion-B9RA2_BM.js")), mt = T(() => import("./BaseDraggableDialog-BYwNgX3M.js")), { vue_ui_radar: kt } = vo(), { isThemeValid: Ct, warnInvalidTheme: At } = bo(), F = ut, be = v(() => !!F.dataset && Object.keys(F.dataset).length), m = c(Jt()), te = c(!1), oe = c(""), ye = c(0), _ = c(null), me = c(null), ke = c(null), Ce = c(null), Ae = c(null), we = c(0), $e = c(0), _e = c(0), Te = c(!1), G = c(null), ae = c(null), e = c(re()), { loading: Fe, FINAL_DATASET: x } = go({
61
61
  ...jt(F),
62
62
  FINAL_CONFIG: e,
63
63
  prepareConfig: re,
64
64
  callback: () => {
65
65
  Promise.resolve().then(async () => {
66
- await Je(), b.value.showTable = e.value.table.show;
66
+ await Ze(), b.value.showTable = e.value.table.show;
67
67
  });
68
68
  },
69
69
  skeletonDataset: {
@@ -77,7 +77,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
77
77
  { name: "_", values: [0.6], target: 1 }
78
78
  ]
79
79
  },
80
- skeletonConfig: Qt({
80
+ skeletonConfig: Kt({
81
81
  defaultConfig: e.value,
82
82
  userConfig: {
83
83
  userOptions: { show: !1 },
@@ -122,7 +122,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
122
122
  });
123
123
  return {
124
124
  ...l,
125
- customPalette: l.customPalette.length ? l.customPalette : Zt[a] || R
125
+ customPalette: l.customPalette.length ? l.customPalette : Qt[a] || R
126
126
  };
127
127
  }
128
128
  ve(() => F.config, (t) => {
@@ -270,13 +270,13 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
270
270
  return t.map((o, l) => ({
271
271
  name: o?.name ?? "",
272
272
  categoryId: `radar_category_${m.value}_${l}`,
273
- color: Ke(o?.color) || a[l] || R[l % R.length],
273
+ color: Je(o?.color) || a[l] || R[l % R.length],
274
274
  prefix: o?.prefix ?? "",
275
275
  suffix: o?.suffix ?? ""
276
276
  }));
277
277
  }), k = v(() => x.value.series.map((t, a) => ({
278
278
  ...t,
279
- color: Ke(t.color) || Ee.value[a] || R[a] || R[a % R.length],
279
+ color: Je(t.color) || Ee.value[a] || R[a] || R[a % R.length],
280
280
  serieId: `radar_serie_${m.value}_${a}`,
281
281
  formatter: t.formatter || null,
282
282
  absoluteIndex: a
@@ -295,7 +295,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
295
295
  const a = Le(t);
296
296
  a !== null && (f.value.includes(a.absoluteIndex) || H(a.absoluteIndex));
297
297
  }
298
- const Ne = v(() => Math.max(...k.value.flatMap((t) => t.values))), Re = v(() => k.value.length), ne = v(() => Math.min(i.value.width, i.value.height) / 3), ze = v(() => Qe({
298
+ const Ne = v(() => Math.max(...k.value.flatMap((t) => t.values))), Re = v(() => k.value.length), ne = v(() => Math.min(i.value.width, i.value.height) / 3), ze = v(() => Ke({
299
299
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
300
300
  radius: ne.value,
301
301
  sides: Re.value,
@@ -370,7 +370,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
370
370
  fontSize: e.value.style.chart.legend.fontSize,
371
371
  paddingBottom: 12,
372
372
  fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
373
- })), J = v(() => {
373
+ })), Z = v(() => {
374
374
  const t = [
375
375
  { name: e.value.translations.datapoint, color: "" },
376
376
  { name: e.value.translations.target, color: "" },
@@ -410,9 +410,9 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
410
410
  breakpoint: e.value.table.responsiveBreakpoint
411
411
  };
412
412
  return { head: t, body: a, config: o, colNames: t };
413
- }), K = c(null), ue = c([]), ie = c(null);
413
+ }), J = c(null), ue = c([]), ie = c(null);
414
414
  function Bt(t, a) {
415
- te.value = !1, K.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
415
+ te.value = !1, J.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
416
416
  }
417
417
  function Et(t, a) {
418
418
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
@@ -420,7 +420,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
420
420
  function Lt(t, a) {
421
421
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a });
422
422
  const o = $.value.slice();
423
- ue.value = [], K.value = a, te.value = !0, ie.value = {
423
+ ue.value = [], J.value = a, te.value = !0, ie.value = {
424
424
  datapoint: t,
425
425
  seriesIndex: a,
426
426
  series: {
@@ -475,7 +475,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
475
475
  }
476
476
  }
477
477
  function ce(t = null) {
478
- Je(() => {
478
+ Ze(() => {
479
479
  const a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], o = [[""], [e.value.translations.target], ...O.value.flatMap((y) => [[y.name], ["%"]])], l = x.value.series.map((y, Xe) => [y.name, y.target, ...y.values.flatMap((M) => [
480
480
  M,
481
481
  isNaN(M / y.target) ? "" : M / y.target * 100
@@ -493,9 +493,9 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
493
493
  function We() {
494
494
  b.value.showTooltip = !b.value.showTooltip;
495
495
  }
496
- const Q = c(!1);
496
+ const K = c(!1);
497
497
  function de() {
498
- Q.value = !Q.value;
498
+ K.value = !K.value;
499
499
  }
500
500
  async function Nt({ scale: t = 2 } = {}) {
501
501
  if (!_.value) return;
@@ -580,7 +580,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
580
580
  ref_key: "radarChart",
581
581
  ref: _,
582
582
  id: `vue-ui-radar_${m.value}`,
583
- style: Z(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
583
+ style: Q(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height: 100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
584
584
  onMouseenter: a[2] || (a[2] = () => u(Pe)(!0)),
585
585
  onMouseleave: a[3] || (a[3] = () => u(Pe)(!1))
586
586
  }, [
@@ -589,7 +589,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
589
589
  svgRef: u(q),
590
590
  backgroundColor: e.value.style.chart.backgroundColor,
591
591
  color: e.value.style.chart.color,
592
- active: Q.value,
592
+ active: K.value,
593
593
  onClose: de
594
594
  }, {
595
595
  "annotator-action-close": d(() => [
@@ -664,7 +664,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
664
664
  chartElement: _.value,
665
665
  position: e.value.userOptions.position,
666
666
  hasAnnotator: e.value.userOptions.buttons.annotator,
667
- isAnnotation: Q.value,
667
+ isAnnotation: K.value,
668
668
  callbacks: e.value.userOptions.callbacks,
669
669
  printScale: e.value.userOptions.print.scale,
670
670
  tableDialog: e.value.table.useDialog,
@@ -676,7 +676,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
676
676
  onToggleTable: Me,
677
677
  onToggleTooltip: We,
678
678
  onToggleAnnotator: de,
679
- style: Z({
679
+ style: Q({
680
680
  visibility: u(Se) ? u(le) ? "visible" : "hidden" : "visible"
681
681
  })
682
682
  }, He({ _: 2 }, [
@@ -750,7 +750,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
750
750
  xmlns: u(ao),
751
751
  class: Y({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
752
752
  viewBox: `0 0 ${i.value.width <= 0 ? 10 : i.value.width} ${i.value.height <= 0 ? 10 : i.value.height}`,
753
- style: Z(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
753
+ style: Q(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
754
754
  }, [
755
755
  ee(u(yt)),
756
756
  t.$slots["chart-background"] ? (n(), s("foreignObject", {
@@ -795,7 +795,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
795
795
  }, null, 8, Io))), 256)),
796
796
  e.value.style.chart.layout.grid.graduations > 0 ? (n(), s("g", Bo, [
797
797
  (n(!0), s(E, null, L(Ot.value, (o) => (n(), s("path", {
798
- d: u(Qe)({
798
+ d: u(Ke)({
799
799
  plot: { x: i.value.width / 2, y: i.value.height / 2 },
800
800
  radius: o,
801
801
  sides: Re.value,
@@ -832,7 +832,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
832
832
  C("g", null, [
833
833
  e.value.useCssAnimation || !e.value.useCssAnimation && !f.value.includes(l) ? (n(), s("polygon", {
834
834
  key: 0,
835
- points: u(Ze)(S.value.map((r) => r.plots[l]), !1, !0),
835
+ points: u(Qe)(S.value.map((r) => r.plots[l]), !1, !0),
836
836
  stroke: e.value.style.chart.backgroundColor,
837
837
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth + 1,
838
838
  fill: "none",
@@ -840,7 +840,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
840
840
  }, null, 10, zo)) : p("", !0),
841
841
  e.value.useCssAnimation || !e.value.useCssAnimation && !f.value.includes(l) ? (n(), s("polygon", {
842
842
  key: 1,
843
- points: u(Ze)(S.value.map((r) => r.plots[l]), !1, !0),
843
+ points: u(Qe)(S.value.map((r) => r.plots[l]), !1, !0),
844
844
  stroke: o.color,
845
845
  "stroke-width": e.value.style.chart.layout.dataPolygon.strokeWidth,
846
846
  fill: e.value.style.chart.layout.dataPolygon.transparent ? "transparent" : e.value.style.chart.layout.dataPolygon.useGradient ? `url(#radar_gradient_${m.value}_${l})` : u(pe)(o.color, e.value.style.chart.layout.dataPolygon.opacity),
@@ -854,7 +854,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
854
854
  cx: r.x,
855
855
  cy: r.y,
856
856
  fill: f.value.includes(h) ? "transparent" : $.value[h] ? $.value[h].color : "transparent",
857
- r: K.value !== null && K.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
857
+ r: J.value !== null && J.value === l ? e.value.style.chart.layout.plots.radius * 1.6 : e.value.style.chart.layout.plots.radius,
858
858
  stroke: f.value.includes(h) ? "transparent" : e.value.style.chart.backgroundColor,
859
859
  "stroke-width": 0.5,
860
860
  class: Y({ "animated-out": f.value.includes(h) && e.value.useCssAnimation, "animated-in": U.value && j.value === h && e.value.useCssAnimation })
@@ -887,7 +887,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
887
887
  u(Fe) ? p("", !0) : (n(), s("div", {
888
888
  key: 0,
889
889
  onClick: (r) => o.segregate(),
890
- style: Z(`opacity:${f.value.includes(l) ? 0.5 : 1}`)
890
+ style: Q(`opacity:${f.value.includes(l) ? 0.5 : 1}`)
891
891
  }, N(o.display), 13, jo))
892
892
  ]),
893
893
  _: 1
@@ -948,7 +948,7 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
948
948
  ]),
949
949
  _: 3
950
950
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "fontSize", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
951
- be.value && e.value.userOptions.buttons.table ? (n(), D(Ht(X.value.component), Jt({ key: 7 }, X.value.props, {
951
+ be.value && e.value.userOptions.buttons.table ? (n(), D(Ht(X.value.component), Zt({ key: 7 }, X.value.props, {
952
952
  ref_key: "tableUnit",
953
953
  ref: G,
954
954
  onClose: Ge
@@ -956,10 +956,10 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
956
956
  content: d(() => [
957
957
  (n(), D(u(pt), {
958
958
  key: `table_${$e.value}`,
959
- colNames: J.value.colNames,
960
- head: J.value.head,
961
- body: J.value.body,
962
- config: J.value.config,
959
+ colNames: Z.value.colNames,
960
+ head: Z.value.head,
961
+ body: Z.value.body,
962
+ config: Z.value.config,
963
963
  title: e.value.table.useDialog ? "" : X.value.title,
964
964
  withCloseButton: !e.value.table.useDialog,
965
965
  onClose: Ge
@@ -1002,12 +1002,12 @@ const tt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
1002
1002
  u(Fe) ? (n(), D(ho, { key: 8 })) : p("", !0)
1003
1003
  ], 46, _o));
1004
1004
  }
1005
- }, Ko = /* @__PURE__ */ $o(Jo, [["__scopeId", "data-v-bee25c8b"]]), ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1005
+ }, Jo = /* @__PURE__ */ $o(Zo, [["__scopeId", "data-v-bee25c8b"]]), ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1006
1006
  __proto__: null,
1007
- default: Ko
1007
+ default: Jo
1008
1008
  }, Symbol.toStringTag, { value: "Module" }));
1009
1009
  export {
1010
1010
  ga as a,
1011
1011
  ha as b,
1012
- Ko as v
1012
+ Jo as v
1013
1013
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as $, useSlots as J, onMounted as R, computed as x, watch as Q, createElementBlock as o, openBlock as a, normalizeStyle as s, createCommentVNode as p, createElementVNode as r, toDisplayString as g, unref as n, Fragment as B, renderList as Z, renderSlot as j, mergeProps as O, withKeys as ee } from "vue";
2
- import { c as te, o as le, g as oe, a as b, d as _, X as z, h as X, b as I } from "./lib-DUaaQGCv.js";
3
- import { u as ae, a as ie } from "./useNestedProp-CVGae3Qt.js";
2
+ import { c as te, o as le, g as oe, a as b, d as _, X as z, h as X, b as I } from "./lib-qMPkcvmh.js";
3
+ import { u as ae, a as ie } from "./useNestedProp-DOOBu_sL.js";
4
4
  import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const ne = {
6
6
  key: 0,