vue-data-ui 3.5.2 → 3.7.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 (199) hide show
  1. package/README.md +36 -27
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
  5. package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
  8. package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +5 -0
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +303 -9
  90. package/dist/types/vue-ui-stackline.d.ts +18 -0
  91. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  92. package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
  93. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  94. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  95. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  96. package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
  97. package/dist/vue-data-ui.js +226 -204
  98. package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  99. package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  100. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  101. package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  102. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  103. package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  104. package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  105. package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  106. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  107. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  108. package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  109. package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  110. package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
  111. package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  112. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  113. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  114. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  115. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  116. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  117. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  118. package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  119. package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  120. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  121. package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  122. package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  123. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  124. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  125. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  126. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  127. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  128. package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  129. package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  130. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  131. package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  132. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  133. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  134. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  135. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  136. package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  137. package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  138. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  139. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  140. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  141. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  142. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  143. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  144. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  145. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  146. package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  147. package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
  148. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  149. package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  150. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  151. package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  152. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  153. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  154. package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  155. package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  156. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  157. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  158. package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
  159. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  160. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  161. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  162. package/package.json +5 -5
  163. package/dist/themes-AUNCOb2G.js +0 -53
  164. package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
  165. package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
  166. package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
  167. package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
  168. package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
  169. package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
  170. package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
  171. package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
  172. package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
  173. package/dist/vue-ui-gauge-DAk72bez.js +0 -835
  174. package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
  175. package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
  176. package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
  177. package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
  178. package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
  179. package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
  180. package/dist/vue-ui-radar-BSfxyur3.js +0 -984
  181. package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
  182. package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
  183. package/dist/vue-ui-rings-C96aj57d.js +0 -855
  184. package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
  185. package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
  186. package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
  187. package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
  188. package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
  189. package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
  190. package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
  191. package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
  192. package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
  193. package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
  194. package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
  195. package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
  196. package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
  197. package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
  198. package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
@@ -1,1051 +0,0 @@
1
- import { defineAsyncComponent as D, computed as f, ref as d, toRefs as Ot, watch as ee, shallowRef as Qe, onMounted as Dt, onBeforeUnmount as Rt, watchEffect as Bt, createElementBlock as u, openBlock as n, unref as v, normalizeStyle as I, normalizeClass as X, createBlock as _, createCommentVNode as g, createElementVNode as P, createVNode as fe, withCtx as h, renderSlot as p, normalizeProps as T, guardReactiveProps as z, createSlots as Je, Fragment as A, renderList as L, toDisplayString as H, Teleport as Et, resolveDynamicComponent as Ht, mergeProps as Ut, createTextVNode as Ke, nextTick as Wt } from "vue";
2
- import { c as ye, t as Vt, b as Gt, p as te, o as Ze, f as et, g as jt, e as Xt, h as Yt, m as qt, B as Qt, z as Jt, a9 as Kt, X as Zt, M as ea, G as tt, R as ae, P as ta, Q as aa, a as at, d as lt, H as la } from "./lib-C_mNZmhD.js";
3
- import { t as ot, u as oa } from "./useResponsive-DfdjqQps.js";
4
- import { u as sa, a as st } from "./useNestedProp-CReNavA0.js";
5
- import { u as na } from "./usePrinter-DTzqpYKF.js";
6
- import { u as ia, B as ua } from "./BaseScanner-BgWxam9d.js";
7
- import { u as ra } from "./useSvgExport-DrjCWun4.js";
8
- import { u as ca } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as va } from "./useChartAccessibility-9icAAmYg.js";
10
- import { u as da } from "./useTimeLabelCollider-CIsgDrl9.js";
11
- import { t as ha } from "./themes-AUNCOb2G.js";
12
- import pa from "./Title-BzH_LEA3.js";
13
- import ma from "./Legend-G6GMcdAc.js";
14
- import { _ as fa } from "./Shape-CNXKB8O0.js";
15
- import ya from "./img-BecE5qXd.js";
16
- import { _ as ga } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- const ba = ["id"], xa = ["id"], ka = ["xmlns", "viewBox"], wa = ["x", "y", "width", "height"], Ca = { style: { "pointer-events": "none" } }, Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $a = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ta = { key: 0 }, za = ["x", "y", "fill", "font-size", "font-weight"], Fa = ["fill", "font-size", "font-weight", "text-anchor", "transform"], Ma = ["fill", "font-size", "font-weight", "text-anchor", "transform", "innerHTML"], Na = { key: 0 }, Sa = ["x", "y", "font-size", "fill"], Ia = ["width", "x", "y"], _a = { style: { width: "100%" } }, Pa = ["x", "y", "fill", "font-weight", "font-size", "onMouseenter", "onMouseleave", "onClick"], La = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], Oa = ["d", "onMouseenter", "onMouseleave", "onClick"], Da = {
18
- key: 4,
19
- class: "vue-data-ui-watermark"
20
- }, Ra = ["id"], Ba = ["onClick"], Ea = ["innerHTML"], Ha = {
21
- __name: "vue-ui-parallel-coordinate-plot",
22
- props: {
23
- config: {
24
- type: Object,
25
- default() {
26
- return {};
27
- }
28
- },
29
- dataset: {
30
- type: Array,
31
- default() {
32
- return [];
33
- }
34
- }
35
- },
36
- emits: ["selectLegend", "selectDatapoint"],
37
- setup(nt, { expose: it, emit: ut }) {
38
- const rt = D(() => import("./Tooltip-oWCO1HKy.js")), ct = D(() => import("./BaseIcon-BmMbm4d0.js")), vt = D(() => import("./vue-ui-accordion-BmFTVF1a.js")), dt = D(() => import("./DataTable-BT7VF2ua.js")), ht = D(() => import("./PenAndPaper-SZQIAgkg.js")), pt = D(() => import("./UserOptions-CGnQt6Fd.js")), mt = D(() => import("./PackageVersion-Y7t79Jtq.js")), ft = D(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_parallel_coordinate_plot: yt } = sa(), F = nt, Y = f({
39
- get() {
40
- return !!F.dataset && F.dataset.length;
41
- },
42
- set(t) {
43
- return t;
44
- }
45
- }), ge = d(0), S = d(null), be = d(null), xe = d(null), ke = d(null), we = d(null), Ce = d(0), Ae = d(0), $e = d(0), Te = d(!1), V = d(null), le = d(null), oe = d(null), R = d(ye()), B = d(!1);
46
- function ze(t) {
47
- B.value = t, ge.value += 1;
48
- }
49
- const e = d(ue()), { loading: E, FINAL_DATASET: gt, manualLoading: se } = ia({
50
- ...Ot(F),
51
- FINAL_CONFIG: e,
52
- prepareConfig: ue,
53
- callback: () => {
54
- Promise.resolve().then(async () => {
55
- await Wt(), y.value.showTable = e.value.table.show;
56
- });
57
- },
58
- skeletonDataset: [
59
- {
60
- name: "",
61
- shape: "circle",
62
- color: "transparent",
63
- series: [
64
- {
65
- name: "",
66
- values: [1, 10, 100, 1e3]
67
- }
68
- ]
69
- },
70
- {
71
- name: "",
72
- shape: "circle",
73
- color: "#CACACA",
74
- series: [
75
- {
76
- name: "",
77
- values: [0.2, 3, 50, 800]
78
- }
79
- ]
80
- },
81
- {
82
- name: "",
83
- shape: "circle",
84
- color: "transparent",
85
- series: [
86
- {
87
- name: "",
88
- values: [0, 0, 0, 0]
89
- }
90
- ]
91
- }
92
- ],
93
- skeletonConfig: Vt({
94
- defaultConfig: e.value,
95
- userConfig: {
96
- useCssAnimation: !1,
97
- userOptions: { show: !1 },
98
- table: { show: !1 },
99
- style: {
100
- chart: {
101
- backgroundColor: "#99999930",
102
- legend: {
103
- show: !0,
104
- backgroundColor: "transparent"
105
- },
106
- yAxis: {
107
- stroke: "#6A6A6A",
108
- labels: {
109
- showAxisNames: !1,
110
- axisNames: [],
111
- ticks: {
112
- color: "#6A6A6A"
113
- }
114
- }
115
- }
116
- }
117
- }
118
- }
119
- })
120
- }), { userOptionsVisible: ne, setUserOptionsVisibility: Fe, keepUserOptionState: Me } = ca({ config: e.value }), { svgRef: ie } = va({ config: e.value.style.chart.title });
121
- function ue() {
122
- const t = st({
123
- userConfig: F.config,
124
- defaultConfig: yt
125
- });
126
- return t.theme ? {
127
- ...st({
128
- userConfig: ha.vue_ui_parallel_coordinate_plot[t.theme] || F.config,
129
- defaultConfig: t
130
- }),
131
- customPalette: Gt[t.theme] || te
132
- } : t;
133
- }
134
- ee(() => F.config, (t) => {
135
- E.value || (e.value = ue()), ne.value = !e.value.userOptions.showOnChartHover, Se(), Ce.value += 1, $e.value += 1, Ae.value += 1, y.value.dataLabels.show = e.value.style.chart.yAxis.labels.datapoints.show, y.value.showTable = e.value.table.show, y.value.showTooltip = e.value.style.chart.tooltip.show;
136
- }, { deep: !0 }), ee(() => F.dataset, (t) => {
137
- Array.isArray(t) && t.length > 0 && (se.value = !1);
138
- }, { deep: !0 });
139
- const O = Qe(null), U = Qe(null);
140
- Dt(() => {
141
- Te.value = !0, Se();
142
- });
143
- const Ne = f(() => !!e.value.debug);
144
- function Se() {
145
- if (Ze(F.dataset) ? (et({
146
- componentName: "VueUiParallelCoordinatePlot",
147
- type: "dataset",
148
- debug: Ne.value
149
- }), se.value = !0) : F.dataset.forEach((t, l) => {
150
- jt({
151
- datasetObject: t,
152
- requiredAttributes: ["name", "series"]
153
- }).forEach((a) => {
154
- Y.value = !1, et({
155
- componentName: "VueUiParallelCoordinatePlot",
156
- type: "datasetSerieAttribute",
157
- property: a,
158
- index: l,
159
- debug: Ne.value
160
- });
161
- });
162
- }), Ze(F.dataset) || (se.value = e.value.loading), e.value.responsive) {
163
- const t = ot(() => {
164
- const { width: l, height: a } = oa({
165
- chart: S.value,
166
- title: e.value.style.chart.title.text ? be.value : null,
167
- legend: e.value.style.chart.legend.show ? xe.value : null,
168
- source: ke.value,
169
- noTitle: we.value
170
- });
171
- requestAnimationFrame(() => {
172
- c.value.width = l, c.value.height = a - 12, e.value.responsiveProportionalSizing ? (c.value.plotSize = ae({
173
- relator: Math.min(l, a),
174
- adjuster: 600,
175
- source: e.value.style.chart.plots.radius,
176
- threshold: 2,
177
- fallback: 2
178
- }), c.value.ticksFontSize = ae({
179
- relator: Math.min(l, a),
180
- adjuster: 600,
181
- source: e.value.style.chart.yAxis.labels.ticks.fontSize,
182
- threshold: 10,
183
- fallback: 10
184
- }), c.value.datapointFontSize = ae({
185
- relator: Math.min(l, a),
186
- adjuster: 600,
187
- source: e.value.style.chart.yAxis.labels.datapoints.fontSize,
188
- threshold: 10,
189
- fallback: 10
190
- }), c.value.axisNameFontSize = ae({
191
- relator: Math.min(l, a),
192
- adjuster: 600,
193
- source: e.value.style.chart.yAxis.labels.axisNamesFontSize,
194
- threshold: 12,
195
- fallback: 12
196
- })) : (c.value.plotSize = e.value.style.chart.plots.radius, c.value.ticksFontSize = e.value.style.chart.yAxis.labels.ticks.fontSize, c.value.datapointFontSize = e.value.style.chart.yAxis.labels.datapoints.fontSize, c.value.axisNameFontSize = e.value.style.chart.yAxis.labels.axisNamesFontSize);
197
- });
198
- });
199
- O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect()), O.value = new ResizeObserver(t), U.value = S.value.parentNode, O.value.observe(U.value);
200
- }
201
- }
202
- Rt(() => {
203
- O.value && (U.value && O.value.unobserve(U.value), O.value.disconnect());
204
- });
205
- const { isPrinting: Ie, isImaging: _e, generatePdf: Pe, generateImage: Le } = na({
206
- elementId: `pcp_${R.value}`,
207
- fileName: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot",
208
- options: e.value.userOptions.print
209
- }), bt = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), c = d({
210
- height: e.value.style.chart.height,
211
- width: e.value.style.chart.width,
212
- plotSize: e.value.style.chart.plots.radius,
213
- // ratio 100
214
- ticksFontSize: e.value.style.chart.yAxis.labels.ticks.fontSize,
215
- // ratio 42.85
216
- datapointFontSize: e.value.style.chart.yAxis.labels.datapoints.fontSize,
217
- axisNameFontSize: e.value.style.chart.yAxis.labels.axisNamesFontSize
218
- }), Oe = f(() => c.value.width), De = f(() => c.value.height), G = d(0), xt = ot((t) => {
219
- G.value = t;
220
- }, 100);
221
- Bt((t) => {
222
- const l = oe.value;
223
- if (!l) return;
224
- const a = new ResizeObserver((s) => {
225
- xt(s[0].contentRect.height);
226
- });
227
- a.observe(l), t(() => a.disconnect());
228
- });
229
- const m = f(() => {
230
- const { top: t, right: l, bottom: a, left: s } = e.value.style.chart.padding, o = De.value, r = Oe.value;
231
- return {
232
- chartHeight: Math.max(1e-3, o),
233
- chartWidth: Math.max(1e-3, r),
234
- height: Math.max(1e-3, o - t - a - G.value - c.value.datapointFontSize * 2),
235
- width: Math.max(1e-3, r - s - l),
236
- top: t + G.value + c.value.datapointFontSize,
237
- left: s,
238
- right: r - l,
239
- bottom: o - a - c.value.datapointFontSize
240
- };
241
- }), kt = f(() => Xt(e.value.customPalette)), y = d({
242
- dataLabels: {
243
- show: e.value.style.chart.yAxis.labels.datapoints.show
244
- },
245
- showTable: e.value.table.show,
246
- showTooltip: e.value.style.chart.tooltip.show
247
- });
248
- ee(e, () => {
249
- y.value = {
250
- dataLabels: {
251
- show: e.value.style.chart.yAxis.labels.datapoints.show
252
- },
253
- showTable: e.value.table.show,
254
- showTooltip: e.value.style.chart.tooltip.show
255
- };
256
- }, { immediate: !0 });
257
- const $ = d([]);
258
- function q(t) {
259
- $.value.includes(t) ? $.value = $.value.filter((l) => l !== t) : $.value.push(t);
260
- }
261
- const M = f(() => gt.value.map((t, l) => {
262
- const a = Yt(t.color) || kt.value[l] || te[l] || te[l % te.length];
263
- return {
264
- ...t,
265
- series: t.series.map((s) => ({
266
- ...s,
267
- id: ye(),
268
- color: a
269
- })),
270
- seriesIndex: l,
271
- color: a,
272
- id: ye(),
273
- shape: t.shape || "circle"
274
- };
275
- }));
276
- function Re(t) {
277
- if (!M.value.length)
278
- return e.value.debug && console.warn("VueUiParallelCoordinatePlot - There are no series to show."), null;
279
- const l = M.value.find((a) => a.name === t);
280
- return l || (e.value.debug && console.warn(`VueUiParallelCoordinatePlot - Series name not found "${t}"`), null);
281
- }
282
- function wt(t) {
283
- const l = Re(t);
284
- l !== null && $.value.includes(l.id) && q(l.id);
285
- }
286
- function Ct(t) {
287
- const l = Re(t);
288
- l !== null && ($.value.includes(l.id) || q(l.id));
289
- }
290
- const Be = f(() => M.value.map((t) => ({
291
- ...t,
292
- opacity: $.value.includes(t.id) ? 0.5 : 1,
293
- segregate: () => q(t.id),
294
- isSegregated: $.value.includes(t.id),
295
- shape: "circle"
296
- }))), At = f(() => ({
297
- cy: "pcp-div-legend",
298
- backgroundColor: e.value.style.chart.legend.backgroundColor,
299
- color: e.value.style.chart.legend.color,
300
- fontSize: e.value.style.chart.legend.fontSize,
301
- paddingBottom: 12,
302
- fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
303
- })), Ee = f(() => Math.max(
304
- ...M.value.filter((t) => !$.value.includes(t.id)).map((t) => Math.max(...t.series.flatMap((l) => l.values.length)))
305
- )), C = f(() => m.value.width / Ee.value), re = f(() => M.value.filter((t) => !$.value.includes(t.id))), b = f(() => {
306
- let t = [];
307
- for (let l = 0; l < Ee.value; l += 1) {
308
- const a = Math.min(...re.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), s = Math.max(...re.value.flatMap((x) => x.series.map((k) => k.values[l] || 0) || 0)), o = s === a ? a / 4 : a, r = s === a ? s * 2 : s, i = qt(o, r, e.value.style.chart.yAxis.scaleTicks), N = i.ticks.map((x, k) => {
309
- const Pt = i.min < 0 ? x + Math.abs(i.min) : x - Math.abs(i.min), Lt = i.min < 0 ? i.max + Math.abs(i.min) : i.max - Math.abs(i.min);
310
- return {
311
- y: m.value.bottom - m.value.height * (Pt / Lt),
312
- x: m.value.left + C.value * l + C.value / 2,
313
- value: x
314
- };
315
- });
316
- t.push({
317
- scale: i,
318
- ticks: N,
319
- name: e.value.style.chart.yAxis.labels.axisNames[l] || `Y-${l + 1}`
320
- });
321
- }
322
- return t;
323
- }), ce = f(() => re.value.map((t, l) => ({
324
- ...t,
325
- series: t.series.map((a, s) => ({
326
- ...a,
327
- datapoints: a.values.map((o, r) => {
328
- const i = b.value[r].scale.min < 0 ? (o || 0) + Math.abs(b.value[r].scale.min) : (o || 0) - Math.abs(b.value[r].scale.min), N = b.value[r].scale.min < 0 ? b.value[r].scale.max + Math.abs(b.value[r].scale.min) : b.value[r].scale.max - Math.abs(b.value[r].scale.min);
329
- return {
330
- name: a.name,
331
- seriesName: t.name,
332
- axisIndex: r,
333
- datapointIndex: s,
334
- seriesIndex: l,
335
- value: o || 0,
336
- x: m.value.left + C.value * r + C.value / 2,
337
- y: m.value.bottom - m.value.height * (i / N),
338
- comment: a.comments && a.comments[r] || ""
339
- };
340
- })
341
- }))
342
- })).map((t) => ({
343
- ...t,
344
- series: t.series.map((l) => {
345
- const a = Qt(l.datapoints), s = Jt(l.datapoints), o = Kt(e.value.style.chart.lines.smooth ? `M ${s}` : `M ${a}`);
346
- return {
347
- ...l,
348
- smoothPath: s,
349
- straightPath: a,
350
- pathLength: o
351
- };
352
- })
353
- })));
354
- function He({ value: t, index: l, datapoint: a }) {
355
- return at(
356
- e.value.style.chart.yAxis.labels.formatters[l] || null,
357
- t,
358
- lt({
359
- p: e.value.style.chart.yAxis.labels.prefixes[l] || "",
360
- v: t,
361
- s: e.value.style.chart.yAxis.labels.suffixes[l] || "",
362
- r: e.value.style.chart.yAxis.labels.roundings[l] || 0
363
- }),
364
- { datapoint: a, seriesIndex: l }
365
- );
366
- }
367
- const w = d(null), ve = d(null), de = d(!1), he = d("");
368
- function Q({ shape: t, serie: l, S: a }) {
369
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: { ...l, shape: t }, seriesIndex: a }), w.value = null, de.value = null;
370
- }
371
- function J({ shape: t, serieName: l, serie: a, relativeIndex: s, seriesIndex: o, S: r }) {
372
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: { ...a, shape: t }, seriesIndex: r }), ve.value = { serie: a, relativeIndex: s, seriesIndex: o, series: M.value, scales: b.value }, de.value = !0, w.value = a.id;
373
- let i = "";
374
- const N = e.value.style.chart.tooltip.customFormat;
375
- tt(N) && la(() => N({
376
- serie: a,
377
- seriesIndex: a.seriesIndex,
378
- series: M.value,
379
- config: e.value,
380
- scales: b.value
381
- })) ? he.value = N({
382
- serie: a,
383
- seriesIndex: a.seriesIndex,
384
- series: M.value,
385
- config: e.value,
386
- scales: b.value
387
- }) : (i += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l ? l + " - " : ""}${a.name}</div>`, b.value.map((x) => x.name).forEach((x, k) => {
388
- i += `
389
- <div class="vue-ui-tooltip-item" style="text-align:left">
390
- <span>${x}: </span>
391
- <span>
392
- ${at(
393
- e.value.style.chart.yAxis.labels.formatters[k] || null,
394
- a.datapoints[k].value,
395
- lt({
396
- p: e.value.style.chart.yAxis.labels.prefixes[k] || "",
397
- v: a.datapoints[k].value,
398
- s: e.value.style.chart.yAxis.labels.suffixes[k] || "",
399
- r: e.value.style.chart.yAxis.labels.roundings[k] || ""
400
- }),
401
- { datapoint: a.datapoints[k], seriesIndex: k }
402
- )}
403
- </span>
404
- </div>
405
- `, e.value.style.chart.comments.showInTooltip && a.datapoints[k].comment && (i += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.datapoints[k].comment}</div>`);
406
- }), he.value = `<div>${i}</div>`);
407
- }
408
- function $t() {
409
- return M.value;
410
- }
411
- const W = f(() => {
412
- const t = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((o) => o.name)), l = ce.value.flatMap((o, r) => o.series.map((i) => [o.name].concat([i.name]).concat(i.values))), a = {
413
- th: {
414
- backgroundColor: e.value.table.th.backgroundColor,
415
- color: e.value.table.th.color,
416
- outline: e.value.table.th.outline
417
- },
418
- td: {
419
- backgroundColor: e.value.table.td.backgroundColor,
420
- color: e.value.table.td.color,
421
- outline: e.value.table.td.outline
422
- },
423
- breakpoint: e.value.table.responsiveBreakpoint
424
- }, s = [e.value.table.columnNames.series].concat([e.value.table.columnNames.item]).concat(b.value.map((o) => o.name));
425
- return {
426
- body: l,
427
- head: t,
428
- config: a,
429
- colNames: s
430
- };
431
- }), Ue = f(() => ce.value.length === 0 ? { head: [], body: [], config: {}, columnNames: [] } : {
432
- head: W.value.head,
433
- body: W.value.body
434
- });
435
- function pe(t = null) {
436
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = Ue.value.head, s = Ue.value.body, o = l.concat([a]).concat(s), r = ta(o);
437
- t ? t(r) : aa({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-parallel-coordinate-plot" });
438
- }
439
- const We = ut;
440
- function K({ serie: t, shape: l, S: a }) {
441
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: { ...t, shape: l }, seriesIndex: a }), We("selectDatapoint", t);
442
- }
443
- function Ve(t) {
444
- We("selectLegend", {
445
- ...t,
446
- isSegregated: !t.isSegregated,
447
- opacity: t.isSegregated ? 1 : 0.5
448
- });
449
- }
450
- function Ge() {
451
- y.value.showTable = !y.value.showTable;
452
- }
453
- function je() {
454
- y.value.dataLabels.show = !y.value.dataLabels.show;
455
- }
456
- function Xe() {
457
- y.value.showTooltip = !y.value.showTooltip;
458
- }
459
- const Z = d(!1);
460
- function me() {
461
- Z.value = !Z.value;
462
- }
463
- async function Tt({ scale: t = 2 } = {}) {
464
- if (!S.value) return;
465
- const { width: l, height: a } = S.value.getBoundingClientRect(), s = l / a, { imageUri: o, base64: r } = await ya({ domElement: S.value, base64: !0, img: !0, scale: t });
466
- return {
467
- imageUri: o,
468
- base64: r,
469
- title: e.value.style.chart.title.text,
470
- width: l,
471
- height: a,
472
- aspectRatio: s
473
- };
474
- }
475
- const zt = d({ start: 0, end: 1 }), Ft = f(() => b.value.map((t) => t.name));
476
- da({
477
- timeLabelsEls: oe,
478
- timeLabels: Ft,
479
- slicer: zt,
480
- configRef: e,
481
- rotationPath: ["style", "chart", "yAxis", "labels", "axisNamesRotation"],
482
- autoRotatePath: ["style", "chart", "yAxis", "labels", "axisNamesAutoRotate", "enable"],
483
- isAutoSize: !1,
484
- width: Oe,
485
- height: De,
486
- targetClass: ".vue-ui-parallel-coordinate-plot-x-label",
487
- rotation: e.value.style.chart.yAxis.labels.axisNamesAutoRotate.angle
488
- });
489
- const j = f(() => {
490
- const t = e.value.table.useDialog && !e.value.table.show, l = y.value.showTable;
491
- return {
492
- component: t ? ft : vt,
493
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
494
- props: t ? {
495
- backgroundColor: e.value.table.th.backgroundColor,
496
- color: e.value.table.th.color,
497
- headerColor: e.value.table.th.color,
498
- headerBg: e.value.table.th.backgroundColor,
499
- isFullscreen: B.value,
500
- fullscreenParent: S.value,
501
- forcedWidth: Math.min(800, window.innerWidth * 0.8)
502
- } : {
503
- hideDetails: !0,
504
- config: {
505
- open: l,
506
- maxHeight: 1e4,
507
- body: {
508
- backgroundColor: e.value.style.chart.backgroundColor,
509
- color: e.value.style.chart.color
510
- },
511
- head: {
512
- backgroundColor: e.value.style.chart.backgroundColor,
513
- color: e.value.style.chart.color
514
- }
515
- }
516
- }
517
- };
518
- });
519
- ee(() => y.value.showTable, (t) => {
520
- e.value.table.show || (t && e.value.table.useDialog && V.value ? V.value.open() : "close" in V.value && V.value.close());
521
- });
522
- function Ye() {
523
- y.value.showTable = !1, le.value && le.value.setTableIconState(!1);
524
- }
525
- const Mt = f(() => e.value.style.chart.backgroundColor), Nt = f(() => e.value.style.chart.legend), St = f(() => e.value.style.chart.title), { exportSvg: It, getSvg: _t } = ra({
526
- svg: ie,
527
- title: St,
528
- legend: Nt,
529
- legendItems: Be,
530
- backgroundColor: Mt
531
- });
532
- async function qe({ isCb: t }) {
533
- if (t) {
534
- const { blob: l, url: a, text: s, dataUrl: o } = await _t();
535
- e.value.userOptions.callbacks.svg({ blob: l, url: a, text: s, dataUrl: o });
536
- } else
537
- It();
538
- }
539
- return it({
540
- getData: $t,
541
- getImage: Tt,
542
- generateCsv: pe,
543
- generatePdf: Pe,
544
- generateImage: Le,
545
- generateSvg: qe,
546
- hideSeries: Ct,
547
- showSeries: wt,
548
- toggleTable: Ge,
549
- toggleLabels: je,
550
- toggleTooltip: Xe,
551
- toggleAnnotator: me,
552
- toggleFullscreen: ze
553
- }), (t, l) => (n(), u("div", {
554
- ref_key: "pcpChart",
555
- ref: S,
556
- class: X(`vue-data-ui-component vue-ui-pcp ${B.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
557
- style: I(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
558
- id: `pcp_${R.value}`,
559
- onMouseenter: l[2] || (l[2] = () => v(Fe)(!0)),
560
- onMouseleave: l[3] || (l[3] = () => v(Fe)(!1))
561
- }, [
562
- e.value.userOptions.buttons.annotator ? (n(), _(v(ht), {
563
- key: 0,
564
- svgRef: v(ie),
565
- backgroundColor: e.value.style.chart.backgroundColor,
566
- color: e.value.style.chart.color,
567
- active: Z.value,
568
- onClose: me
569
- }, {
570
- "annotator-action-close": h(() => [
571
- p(t.$slots, "annotator-action-close", {}, void 0, !0)
572
- ]),
573
- "annotator-action-color": h(({ color: a }) => [
574
- p(t.$slots, "annotator-action-color", T(z({ color: a })), void 0, !0)
575
- ]),
576
- "annotator-action-draw": h(({ mode: a }) => [
577
- p(t.$slots, "annotator-action-draw", T(z({ mode: a })), void 0, !0)
578
- ]),
579
- "annotator-action-undo": h(({ disabled: a }) => [
580
- p(t.$slots, "annotator-action-undo", T(z({ disabled: a })), void 0, !0)
581
- ]),
582
- "annotator-action-redo": h(({ disabled: a }) => [
583
- p(t.$slots, "annotator-action-redo", T(z({ disabled: a })), void 0, !0)
584
- ]),
585
- "annotator-action-delete": h(({ disabled: a }) => [
586
- p(t.$slots, "annotator-action-delete", T(z({ disabled: a })), void 0, !0)
587
- ]),
588
- _: 3
589
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
590
- bt.value ? (n(), u("div", {
591
- key: 1,
592
- ref_key: "noTitle",
593
- ref: we,
594
- class: "vue-data-ui-no-title-space",
595
- style: "height:36px; width: 100%;background:transparent"
596
- }, null, 512)) : g("", !0),
597
- e.value.style.chart.title.text ? (n(), u("div", {
598
- key: 2,
599
- ref_key: "chartTitle",
600
- ref: be,
601
- style: "width:100%;background:transparent;padding-bottom:24px"
602
- }, [
603
- (n(), _(pa, {
604
- key: `title_${Ce.value}`,
605
- config: {
606
- title: {
607
- cy: "pcp-div-title",
608
- ...e.value.style.chart.title
609
- },
610
- subtitle: {
611
- cy: "pcp-div-subtitle",
612
- ...e.value.style.chart.title.subtitle
613
- }
614
- }
615
- }, null, 8, ["config"]))
616
- ], 512)) : g("", !0),
617
- P("div", {
618
- id: `legend-top-${R.value}`
619
- }, null, 8, xa),
620
- e.value.userOptions.show && Y.value && (v(Me) || v(ne)) ? (n(), _(v(pt), {
621
- ref_key: "userOptionsRef",
622
- ref: le,
623
- key: `user_options_${ge.value}`,
624
- backgroundColor: e.value.style.chart.backgroundColor,
625
- color: e.value.style.chart.color,
626
- isPrinting: v(Ie),
627
- isImaging: v(_e),
628
- uid: R.value,
629
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.chart.tooltip.show,
630
- hasPdf: e.value.userOptions.buttons.pdf,
631
- hasXls: e.value.userOptions.buttons.csv,
632
- hasImg: e.value.userOptions.buttons.img,
633
- hasSvg: e.value.userOptions.buttons.svg,
634
- hasTable: e.value.userOptions.buttons.table,
635
- hasLabel: e.value.userOptions.buttons.labels,
636
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
637
- isFullscreen: B.value,
638
- isTooltip: y.value.showTooltip,
639
- titles: { ...e.value.userOptions.buttonTitles },
640
- chartElement: S.value,
641
- position: e.value.userOptions.position,
642
- hasAnnotator: e.value.userOptions.buttons.annotator,
643
- isAnnotation: Z.value,
644
- callbacks: e.value.userOptions.callbacks,
645
- printScale: e.value.userOptions.print.scale,
646
- tableDialog: e.value.table.useDialog,
647
- onToggleFullscreen: ze,
648
- onGeneratePdf: v(Pe),
649
- onGenerateCsv: pe,
650
- onGenerateImage: v(Le),
651
- onGenerateSvg: qe,
652
- onToggleTable: Ge,
653
- onToggleLabels: je,
654
- onToggleTooltip: Xe,
655
- onToggleAnnotator: me,
656
- style: I({
657
- visibility: v(Me) ? v(ne) ? "visible" : "hidden" : "visible"
658
- })
659
- }, Je({ _: 2 }, [
660
- t.$slots.menuIcon ? {
661
- name: "menuIcon",
662
- fn: h(({ isOpen: a, color: s }) => [
663
- p(t.$slots, "menuIcon", T(z({ isOpen: a, color: s })), void 0, !0)
664
- ]),
665
- key: "0"
666
- } : void 0,
667
- t.$slots.optionPdf ? {
668
- name: "optionPdf",
669
- fn: h(() => [
670
- p(t.$slots, "optionPdf", {}, void 0, !0)
671
- ]),
672
- key: "1"
673
- } : void 0,
674
- t.$slots.optionCsv ? {
675
- name: "optionCsv",
676
- fn: h(() => [
677
- p(t.$slots, "optionCsv", {}, void 0, !0)
678
- ]),
679
- key: "2"
680
- } : void 0,
681
- t.$slots.optionImg ? {
682
- name: "optionImg",
683
- fn: h(() => [
684
- p(t.$slots, "optionImg", {}, void 0, !0)
685
- ]),
686
- key: "3"
687
- } : void 0,
688
- t.$slots.optionSvg ? {
689
- name: "optionSvg",
690
- fn: h(() => [
691
- p(t.$slots, "optionSvg", {}, void 0, !0)
692
- ]),
693
- key: "4"
694
- } : void 0,
695
- t.$slots.optionTable ? {
696
- name: "optionTable",
697
- fn: h(() => [
698
- p(t.$slots, "optionTable", {}, void 0, !0)
699
- ]),
700
- key: "5"
701
- } : void 0,
702
- t.$slots.optionLabels ? {
703
- name: "optionLabels",
704
- fn: h(() => [
705
- p(t.$slots, "optionLabels", {}, void 0, !0)
706
- ]),
707
- key: "6"
708
- } : void 0,
709
- t.$slots.optionFullscreen ? {
710
- name: "optionFullscreen",
711
- fn: h(({ toggleFullscreen: a, isFullscreen: s }) => [
712
- p(t.$slots, "optionFullscreen", T(z({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
713
- ]),
714
- key: "7"
715
- } : void 0,
716
- t.$slots.optionAnnotator ? {
717
- name: "optionAnnotator",
718
- fn: h(({ toggleAnnotator: a, isAnnotator: s }) => [
719
- p(t.$slots, "optionAnnotator", T(z({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
720
- ]),
721
- key: "8"
722
- } : void 0
723
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
724
- (n(), u("svg", {
725
- ref_key: "svgRef",
726
- ref: ie,
727
- xmlns: v(Zt),
728
- class: X({ "vue-data-ui-fullscreen--on": B.value, "vue-data-ui-fulscreen--off": !B.value }),
729
- viewBox: `0 0 ${m.value.chartWidth <= 0 ? 10 : m.value.chartWidth} ${m.value.chartHeight <= 0 ? 10 : m.value.chartHeight}`,
730
- style: I(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
731
- }, [
732
- fe(v(mt)),
733
- t.$slots["chart-background"] ? (n(), u("foreignObject", {
734
- key: 0,
735
- x: m.value.left,
736
- y: m.value.top,
737
- width: m.value.width,
738
- height: m.value.height,
739
- style: {
740
- pointerEvents: "none"
741
- }
742
- }, [
743
- p(t.$slots, "chart-background", {}, void 0, !0)
744
- ], 8, wa)) : g("", !0),
745
- (n(!0), u(A, null, L(b.value, (a, s) => (n(), u("g", Ca, [
746
- P("line", {
747
- x1: m.value.left + C.value * s + C.value / 2,
748
- x2: m.value.left + C.value * s + C.value / 2,
749
- y1: m.value.top,
750
- y2: m.value.bottom,
751
- stroke: e.value.style.chart.yAxis.stroke,
752
- "stroke-width": e.value.style.chart.yAxis.strokeWidth
753
- }, null, 8, Aa),
754
- e.value.style.chart.yAxis.labels.ticks.show ? (n(), u(A, { key: 0 }, [
755
- (n(!0), u(A, null, L(a.ticks, (o) => (n(), u("line", {
756
- x1: o.x,
757
- x2: o.x - 10,
758
- y1: o.y,
759
- y2: o.y,
760
- stroke: e.value.style.chart.yAxis.stroke,
761
- "stroke-width": e.value.style.chart.yAxis.strokeWidth,
762
- style: I(`opacity:${w.value && !y.value.showTooltip ? 0.2 : 1}`)
763
- }, null, 12, $a))), 256)),
764
- v(E) ? g("", !0) : (n(), u("g", Ta, [
765
- (n(!0), u(A, null, L(a.ticks, (o) => (n(), u("text", {
766
- x: o.x - 12 + e.value.style.chart.yAxis.labels.ticks.offsetX,
767
- y: o.y + e.value.style.chart.yAxis.labels.ticks.offsetY + c.value.ticksFontSize / 3,
768
- fill: e.value.style.chart.yAxis.labels.ticks.color,
769
- "text-anchor": "end",
770
- "font-size": c.value.ticksFontSize,
771
- "font-weight": e.value.style.chart.yAxis.labels.ticks.bold ? "bold" : "normal",
772
- style: I(`opacity:${w.value && !y.value.showTooltip ? 0.2 : 1}`)
773
- }, H(He({ value: o.value, index: s, datapoint: o })), 13, za))), 256))
774
- ]))
775
- ], 64)) : g("", !0)
776
- ]))), 256)),
777
- e.value.style.chart.yAxis.labels.showAxisNames ? (n(), u("g", {
778
- key: 1,
779
- ref_key: "xAxisLabels",
780
- ref: oe
781
- }, [
782
- (n(!0), u(A, null, L(b.value, (a, s) => (n(), u(A, null, [
783
- String(a.name).includes(`
784
- `) ? (n(), u("text", {
785
- key: 1,
786
- class: "vue-ui-parallel-coordinate-plot-x-label",
787
- fill: e.value.style.chart.yAxis.labels.axisNamesColor,
788
- "font-size": c.value.axisNameFontSize,
789
- "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
790
- "text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
791
- transform: `translate(${m.value.left + C.value * s + C.value / 2}, ${G.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`,
792
- innerHTML: v(ea)({
793
- content: String(a.name),
794
- fontSize: c.value.axisNameFontSize,
795
- fill: e.value.style.chart.yAxis.labels.axisNamesColor,
796
- x: 0,
797
- y: 0
798
- })
799
- }, null, 8, Ma)) : (n(), u("text", {
800
- key: 0,
801
- class: "vue-ui-parallel-coordinate-plot-x-label",
802
- fill: e.value.style.chart.yAxis.labels.axisNamesColor,
803
- "font-size": c.value.axisNameFontSize,
804
- "font-weight": e.value.style.chart.yAxis.labels.axisNamesBold ? "bold" : "",
805
- "text-anchor": e.value.style.chart.yAxis.labels.axisNamesRotation === 0 ? "middle" : e.value.style.chart.yAxis.labels.axisNamesRotation < 0 ? "start" : "end",
806
- transform: `translate(${m.value.left + C.value * s + C.value / 2}, ${G.value - c.value.axisNameFontSize}), rotate(${e.value.style.chart.yAxis.labels.axisNamesRotation})`
807
- }, H(a.name), 9, Fa))
808
- ], 64))), 256))
809
- ], 512)) : g("", !0),
810
- (n(!0), u(A, null, L(ce.value, (a, s) => (n(), u("g", null, [
811
- (n(!0), u(A, null, L(a.series, (o, r) => (n(), u("g", null, [
812
- e.value.style.chart.plots.show ? (n(), u("g", Na, [
813
- (n(!0), u(A, null, L(o.datapoints, (i, N) => (n(), _(fa, {
814
- plot: { x: i.x, y: i.y },
815
- color: a.color,
816
- shape: a.shape,
817
- radius: a.shape === "triangle" ? c.value.plotSize * 1.2 : c.value.plotSize,
818
- stroke: e.value.style.chart.backgroundColor,
819
- strokeWidth: 0.5,
820
- onMouseenter: (x) => J({
821
- shape: a.shape,
822
- serieName: a.name,
823
- serie: o,
824
- relativeIndex: r,
825
- seriesIndex: o.seriesIndex,
826
- S: s
827
- }),
828
- onMouseleave: (x) => Q({ serie: o, shape: a.shape, S: s }),
829
- style: I(`opacity:${w.value ? w.value === o.id ? e.value.style.chart.plots.opacity : 0.2 : e.value.style.chart.plots.opacity}`),
830
- onClick: () => K({ serie: o, shape: a.shape, S: s })
831
- }, null, 8, ["plot", "color", "shape", "radius", "stroke", "onMouseenter", "onMouseleave", "style", "onClick"]))), 256)),
832
- y.value.showTooltip ? g("", !0) : (n(), u(A, { key: 0 }, [
833
- w.value && w.value === o.id && o.datapoints.length ? (n(), u("text", {
834
- key: 0,
835
- x: o.datapoints[0].x - c.value.ticksFontSize,
836
- y: o.datapoints[0].y + c.value.ticksFontSize / 3,
837
- "text-anchor": "end",
838
- "font-size": c.value.ticksFontSize,
839
- fill: a.color,
840
- "font-weight": "bold"
841
- }, H(o.name), 9, Sa)) : g("", !0)
842
- ], 64)),
843
- e.value.style.chart.comments.show ? (n(!0), u(A, { key: 1 }, L(o.datapoints, (i) => (n(), u("g", null, [
844
- i.comment ? (n(), u("foreignObject", {
845
- key: 0,
846
- style: { overflow: "visible" },
847
- height: "12",
848
- width: e.value.style.chart.comments.width,
849
- x: i.x - e.value.style.chart.comments.width / 2 + e.value.style.chart.comments.offsetX,
850
- y: i.y + e.value.style.chart.comments.offsetY + 6
851
- }, [
852
- P("div", _a, [
853
- p(t.$slots, "plot-comment", {
854
- plot: { ...i, color: a.color }
855
- }, void 0, !0)
856
- ])
857
- ], 8, Ia)) : g("", !0)
858
- ]))), 256)) : g("", !0)
859
- ])) : g("", !0),
860
- !v(E) && (y.value.dataLabels.show || w.value && w.value === o.id) ? (n(!0), u(A, { key: 1 }, L(o.datapoints, (i, N) => (n(), u("text", {
861
- x: i.x + 12 + e.value.style.chart.yAxis.labels.datapoints.offsetX,
862
- y: i.y + e.value.style.chart.yAxis.labels.datapoints.offsetY + c.value.datapointFontSize / 3,
863
- fill: e.value.style.chart.yAxis.labels.datapoints.useSerieColor ? a.color : e.value.style.chart.yAxis.labels.datapoints.color,
864
- "text-anchor": "start",
865
- "font-weight": e.value.style.chart.yAxis.labels.datapoints.bold ? "bold" : "normal",
866
- class: X({ "vue-ui-pcp-animated": !1, "vue-ui-pcp-transition": !v(E) }),
867
- "font-size": c.value.datapointFontSize,
868
- onMouseenter: (x) => J({
869
- shape: a.shape,
870
- serieName: a.name,
871
- serie: o,
872
- relativeIndex: r,
873
- seriesIndex: o.seriesIndex,
874
- S: s
875
- }),
876
- onMouseleave: (x) => Q({ serie: o, shape: a.shape, S: s }),
877
- onClick: () => K({ serie: o, shape: a.shape, S: s }),
878
- style: I(`opacity:${w.value ? w.value === o.id ? 1 : 0.2 : 1}`)
879
- }, H(He({ value: i.value, index: N, datapoint: i })), 47, Pa))), 256)) : g("", !0),
880
- P("path", {
881
- d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
882
- stroke: a.color,
883
- "stroke-width": e.value.style.chart.lines.strokeWidth,
884
- fill: "none",
885
- class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(E) }),
886
- onMouseenter: (i) => J({
887
- shape: a.shape,
888
- serieName: a.name,
889
- serie: o,
890
- relativeIndex: r,
891
- seriesIndex: o.seriesIndex,
892
- S: s
893
- }),
894
- onMouseleave: (i) => Q({ serie: o, shape: a.shape, S: s }),
895
- onClick: () => K({ serie: o, shape: a.shape, S: s }),
896
- style: I(`opacity:${w.value ? w.value === o.id ? e.value.style.chart.lines.opacity : 0.2 : e.value.style.chart.lines.opacity}; stroke-dasharray:${o.pathLength}; stroke-dashoffset: ${e.value.useCssAnimation ? o.pathLength : 0}`)
897
- }, null, 46, La),
898
- y.value.showTooltip ? (n(), u("path", {
899
- key: 2,
900
- d: `M${e.value.style.chart.lines.smooth ? o.smoothPath : o.straightPath}`,
901
- stroke: "transparent",
902
- "stroke-width": 12,
903
- fill: "none",
904
- class: X({ "vue-ui-pcp-animated vue-data-ui-line-animated": e.value.useCssAnimation, "vue-ui-pcp-transition": !v(E) }),
905
- onMouseenter: (i) => J({
906
- shape: a.shape,
907
- serieName: a.name,
908
- serie: o,
909
- relativeIndex: r,
910
- seriesIndex: o.seriesIndex,
911
- S: s
912
- }),
913
- onMouseleave: (i) => Q({ serie: o, shape: a.shape, S: s }),
914
- onClick: () => K({ serie: o, shape: a.shape, S: s }),
915
- style: { opacity: "0" }
916
- }, null, 42, Oa)) : g("", !0)
917
- ]))), 256))
918
- ]))), 256)),
919
- p(t.$slots, "svg", { svg: m.value }, void 0, !0)
920
- ], 14, ka)),
921
- t.$slots.watermark ? (n(), u("div", Da, [
922
- p(t.$slots, "watermark", T(z({ isPrinting: v(Ie) || v(_e) })), void 0, !0)
923
- ])) : g("", !0),
924
- P("div", {
925
- id: `legend-bottom-${R.value}`
926
- }, null, 8, Ra),
927
- Te.value ? (n(), _(Et, {
928
- key: 5,
929
- to: e.value.style.chart.legend.position === "top" ? `#legend-top-${R.value}` : `#legend-bottom-${R.value}`
930
- }, [
931
- P("div", {
932
- ref_key: "chartLegend",
933
- ref: xe
934
- }, [
935
- e.value.style.chart.legend.show && Y.value ? (n(), _(ma, {
936
- key: `legend_${Ae.value}`,
937
- legendSet: Be.value,
938
- config: At.value,
939
- onClickMarker: l[0] || (l[0] = ({ legend: a }) => {
940
- q(a.id), Ve(a);
941
- })
942
- }, {
943
- item: h(({ legend: a, index: s }) => [
944
- P("div", {
945
- onClick: (o) => {
946
- a.segregate(), Ve(a);
947
- },
948
- style: I(`opacity:${$.value.includes(a.id) ? 0.5 : 1}`)
949
- }, H(a.name), 13, Ba)
950
- ]),
951
- _: 1
952
- }, 8, ["legendSet", "config"])) : p(t.$slots, "legend", {
953
- key: 1,
954
- legend: M.value
955
- }, void 0, !0)
956
- ], 512)
957
- ], 8, ["to"])) : g("", !0),
958
- t.$slots.source ? (n(), u("div", {
959
- key: 6,
960
- ref_key: "source",
961
- ref: ke,
962
- dir: "auto"
963
- }, [
964
- p(t.$slots, "source", {}, void 0, !0)
965
- ], 512)) : g("", !0),
966
- fe(v(rt), {
967
- show: y.value.showTooltip && de.value,
968
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
969
- color: e.value.style.chart.tooltip.color,
970
- fontSize: e.value.style.chart.tooltip.fontSize,
971
- borderRadius: e.value.style.chart.tooltip.borderRadius,
972
- borderColor: e.value.style.chart.tooltip.borderColor,
973
- borderWidth: e.value.style.chart.tooltip.borderWidth,
974
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
975
- position: e.value.style.chart.tooltip.position,
976
- offsetY: e.value.style.chart.tooltip.offsetY,
977
- parent: S.value,
978
- content: he.value,
979
- isFullscreen: B.value,
980
- isCustom: v(tt)(e.value.style.chart.tooltip.customFormat),
981
- smooth: e.value.style.chart.tooltip.smooth,
982
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
983
- smoothForce: e.value.style.chart.tooltip.smoothForce,
984
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
985
- }, {
986
- "tooltip-before": h(() => [
987
- p(t.$slots, "tooltip-before", T(z({ ...ve.value })), void 0, !0)
988
- ]),
989
- "tooltip-after": h(() => [
990
- p(t.$slots, "tooltip-after", T(z({ ...ve.value })), void 0, !0)
991
- ]),
992
- _: 3
993
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
994
- Y.value && e.value.userOptions.buttons.table ? (n(), _(Ht(j.value.component), Ut({ key: 7 }, j.value.props, {
995
- ref_key: "tableUnit",
996
- ref: V,
997
- onClose: Ye
998
- }), Je({
999
- content: h(() => [
1000
- (n(), _(v(dt), {
1001
- key: `table_${$e.value}`,
1002
- colNames: W.value.colNames,
1003
- head: W.value.head,
1004
- body: W.value.body,
1005
- config: W.value.config,
1006
- title: e.value.table.useDialog ? "" : j.value.title,
1007
- withCloseButton: !e.value.table.useDialog,
1008
- onClose: Ye
1009
- }, {
1010
- th: h(({ th: a }) => [
1011
- P("div", { innerHTML: a }, null, 8, Ea)
1012
- ]),
1013
- td: h(({ td: a }) => [
1014
- Ke(H(a), 1)
1015
- ]),
1016
- _: 1
1017
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1018
- ]),
1019
- _: 2
1020
- }, [
1021
- e.value.table.useDialog ? {
1022
- name: "title",
1023
- fn: h(() => [
1024
- Ke(H(j.value.title), 1)
1025
- ]),
1026
- key: "0"
1027
- } : void 0,
1028
- e.value.table.useDialog ? {
1029
- name: "actions",
1030
- fn: h(() => [
1031
- P("button", {
1032
- tabindex: "0",
1033
- class: "vue-ui-user-options-button",
1034
- onClick: l[1] || (l[1] = (a) => pe(e.value.userOptions.callbacks.csv))
1035
- }, [
1036
- fe(v(ct), {
1037
- name: "excel",
1038
- stroke: j.value.props.color
1039
- }, null, 8, ["stroke"])
1040
- ])
1041
- ]),
1042
- key: "1"
1043
- } : void 0
1044
- ]), 1040)) : g("", !0),
1045
- v(E) ? (n(), _(ua, { key: 8 })) : g("", !0)
1046
- ], 46, ba));
1047
- }
1048
- }, ol = /* @__PURE__ */ ga(Ha, [["__scopeId", "data-v-9716d648"]]);
1049
- export {
1050
- ol as default
1051
- };