vue-data-ui 2.16.6 → 2.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "2.16.6",
4
+ "version": "2.17.1",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1,301 +0,0 @@
1
- import { toRefs as ot, defineAsyncComponent as e, computed as s, ref as o, onMounted as it, watch as $, shallowReactive as at, createElementBlock as nt, createBlock as m, openBlock as c, normalizeStyle as lt, createElementVNode as rt, createTextVNode as ut, createCommentVNode as X, toDisplayString as st, resolveDynamicComponent as ct, mergeProps as gt, toHandlers as pt, createSlots as mt, renderList as dt, withCtx as Vt, renderSlot as Ut, normalizeProps as ft, guardReactiveProps as vt } from "vue";
2
- import Q from "./BaseIcon-Bn996RXm.js";
3
- const kt = { style: { width: "36px" } }, yt = {
4
- __name: "vue-data-ui",
5
- props: {
6
- component: { type: String },
7
- dataset: { type: [Object, Array, Number, String] },
8
- config: { type: Object }
9
- },
10
- emits: [
11
- "selectLegend",
12
- "selectDatapoint",
13
- "toggleOpenState",
14
- "saveAnnotations",
15
- "selectRoot",
16
- "selectBranch",
17
- "selectNut",
18
- "change",
19
- "selectPlot",
20
- "selectSide",
21
- "rate",
22
- "postImage",
23
- "hoverIndex",
24
- "selectX",
25
- "toggleLock",
26
- "toggleTooltip",
27
- "start",
28
- "play",
29
- "pause",
30
- "reset",
31
- "restart",
32
- "lap",
33
- "toggleAnnotator",
34
- "selectGroup",
35
- "selectRibbon"
36
- ],
37
- setup(j, { expose: z, emit: K }) {
38
- const n = j, { component: St, dataset: q, config: Y } = ot(n), g = {
39
- VueUi3dBar: e(() => import("./vue-ui-3d-bar-CtlB4p7i.js")),
40
- VueUiAgePyramid: e(() => import("./vue-ui-age-pyramid-DSshyUn-.js")),
41
- VueUiAnnotator: e(() => import("./vue-ui-annotator-DQSMv_k2.js")),
42
- VueUiCandlestick: e(() => import("./vue-ui-candlestick-Drupgyoi.js")),
43
- VueUiChestnut: e(() => import("./vue-ui-chestnut-DLWjPwRL.js")),
44
- VueUiDashboard: e(() => import("./vue-ui-dashboard-CGIocEHj.js")),
45
- VueUiDigits: e(() => import("./vue-ui-digits-BgQch3Fc.js")),
46
- VueUiDonut: e(() => import("./vue-ui-donut-B59bCV5_.js")),
47
- VueUiDonutEvolution: e(() => import("./vue-ui-donut-evolution-CI8qBIQd.js")),
48
- VueUiGalaxy: e(() => import("./vue-ui-galaxy-CaPJwwOj.js")),
49
- VueUiGauge: e(() => import("./vue-ui-gauge-D7arhDmb.js")),
50
- VueUiHeatmap: e(() => import("./vue-ui-heatmap-Cyn-ahGO.js")),
51
- VueUiKpi: e(() => import("./vue-ui-kpi-DKDibSdl.js")),
52
- VueUiMiniLoader: e(() => import("./vue-ui-mini-loader-B8OVutUx.js")),
53
- VueUiMolecule: e(() => import("./vue-ui-molecule-BVSrqIGw.js")),
54
- VueUiMoodRadar: e(() => import("./vue-ui-mood-radar-DvlyS3RN.js")),
55
- VueUiNestedDonuts: e(() => import("./vue-ui-nested-donuts-D9ssSus6.js")),
56
- VueUiOnion: e(() => import("./vue-ui-onion-Buu4VX3u.js")),
57
- VueUiQuadrant: e(() => import("./vue-ui-quadrant-BMC7NBGd.js")),
58
- VueUiRadar: e(() => import("./vue-ui-radar-68NMPxxQ.js")),
59
- VueUiRating: e(() => import("./vue-ui-rating-swH9kRr3.js")),
60
- VueUiRelationCircle: e(() => import("./vue-ui-relation-circle-CT-EdSjO.js")),
61
- VueUiRings: e(() => import("./vue-ui-rings-M-9dPI5D.js")),
62
- VueUiScatter: e(() => import("./vue-ui-scatter-CsGhaFJh.js")),
63
- VueUiSkeleton: e(() => import("./vue-ui-skeleton-BAOt2neL.js")),
64
- VueUiSmiley: e(() => import("./vue-ui-smiley-7_kIgPg-.js")),
65
- VueUiSparkbar: e(() => import("./vue-ui-sparkbar-BnHhzuKf.js")),
66
- VueUiSparkgauge: e(() => import("./vue-ui-sparkgauge-WtfkCK8g.js")),
67
- VueUiSparkHistogram: e(() => import("./vue-ui-sparkhistogram-B2u4XLVd.js")),
68
- VueUiSparkline: e(() => import("./vue-ui-sparkline-DKIyUlSm.js")),
69
- VueUiSparkStackbar: e(() => import("./vue-ui-sparkstackbar-BLGz2qIb.js")),
70
- VueUiTable: e(() => import("./vue-ui-table-Bg5HIQ3O.js")),
71
- VueUiTableSparkline: e(() => import("./vue-ui-table-sparkline-CnkJkBk5.js")),
72
- VueUiThermometer: e(() => import("./vue-ui-thermometer-RlD-9mJf.js")),
73
- VueUiTiremarks: e(() => import("./vue-ui-tiremarks-DiLS3akQ.js")),
74
- VueUiTreemap: e(() => import("./vue-ui-treemap-BG1Omm38.js")),
75
- VueUiVerticalBar: e(() => import("./vue-ui-vertical-bar-CwqQyZFX.js")),
76
- VueUiWaffle: e(() => import("./vue-ui-waffle-Ce3T4BPp.js")),
77
- VueUiWheel: e(() => import("./vue-ui-wheel-6B0WTkf2.js")),
78
- VueUiXy: e(() => import("./vue-ui-xy-DtJ7qJib.js")),
79
- VueUiTableHeatmap: e(() => import("./vue-ui-table-heatmap-DmjNy1q1.js")),
80
- VueUiAccordion: e(() => import("./vue-ui-accordion-D55kCO5G.js")),
81
- VueUiQuickChart: e(() => import("./vue-ui-quick-chart-DB9RKUkb.js")),
82
- VueUiCursor: e(() => import("./vue-ui-cursor-DWmfnM25.js")),
83
- VueUiSparkTrend: e(() => import("./vue-ui-spark-trend-DHlQQpwz.js")),
84
- VueUiStripPlot: e(() => import("./vue-ui-strip-plot-5qDcYPnR.js")),
85
- VueUiDumbbell: e(() => import("./vue-ui-dumbbell-CXv7sk88.js")),
86
- VueUiWordCloud: e(() => import("./vue-ui-word-cloud-ByYZCOh7.js")),
87
- VueUiXyCanvas: e(() => import("./vue-ui-xy-canvas-S6YpFgzs.js")),
88
- VueUiFlow: e(() => import("./vue-ui-flow-DxF0ELtv.js")),
89
- VueUiParallelCoordinatePlot: e(() => import("./vue-ui-parallel-coordinate-plot-DFLUvhxD.js")),
90
- VueUiTimer: e(() => import("./vue-ui-timer-Bes74INL.js")),
91
- VueUiCarouselTable: e(() => import("./vue-ui-carousel-table-BTZQRZfO.js")),
92
- VueUiGizmo: e(() => import("./vue-ui-gizmo-Dwli-Mip.js")),
93
- VueUiStackbar: e(() => import("./vue-ui-stackbar-BDpMsTYe.js")),
94
- VueUiBullet: e(() => import("./vue-ui-bullet-FeScjj7q.js")),
95
- VueUiFunnel: e(() => import("./vue-ui-funnel-Bco8rqF8.js")),
96
- VueUiHistoryPlot: e(() => import("./vue-ui-history-plot-C2AEToqx.js")),
97
- VueUiCirclePack: e(() => import("./vue-ui-circle-pack-VXcRh2gy.js")),
98
- VueUiWorld: e(() => import("./vue-ui-world-B9PxVO4n.js")),
99
- VueUiRidgeline: e(() => import("./vue-ui-ridgeline-DftROPaX.js")),
100
- VueUiChord: e(() => import("./vue-ui-chord-BgLbFBT9.js"))
101
- }, J = {
102
- VueUi3dBar: ["config", "dataset"],
103
- VueUiAgePyramid: ["config", "dataset"],
104
- VueUiAnnotator: ["config", "dataset"],
105
- VueUiCandlestick: ["config", "dataset"],
106
- VueUiChestnut: ["config", "dataset"],
107
- VueUiDashboard: ["config", "dataset"],
108
- VueUiDigits: ["config", "dataset"],
109
- VueUiDonut: ["config", "dataset"],
110
- VueUiDonutEvolution: ["config", "dataset"],
111
- VueUiGalaxy: ["config", "dataset"],
112
- VueUiGauge: ["config", "dataset"],
113
- VueUiHeatmap: ["config", "dataset"],
114
- VueUiKpi: ["config", "dataset"],
115
- VueUiMiniLoader: ["config"],
116
- VueUiMolecule: ["config", "dataset"],
117
- VueUiMoodRadar: ["config", "dataset"],
118
- VueUiNestedDonuts: ["config", "dataset"],
119
- VueUiOnion: ["config", "dataset"],
120
- VueUiQuadrant: ["config", "dataset"],
121
- VueUiRadar: ["config", "dataset"],
122
- VueUiRating: ["config", "dataset"],
123
- VueUiRelationCircle: ["config", "dataset"],
124
- VueUiRings: ["config", "dataset"],
125
- VueUiScatter: ["config", "dataset"],
126
- VueUiSkeleton: ["config"],
127
- VueUiSmiley: ["config", "dataset"],
128
- VueUiSparkbar: ["config", "dataset"],
129
- VueUiSparkgauge: ["config", "dataset"],
130
- VueUiSparkHistogram: ["config", "dataset"],
131
- VueUiSparkline: ["config", "dataset"],
132
- VueUiSparkStackbar: ["config", "dataset"],
133
- VueUiTable: ["config", "dataset"],
134
- VueUiTableSparkline: ["config", "dataset"],
135
- VueUiThermometer: ["config", "dataset"],
136
- VueUiTiremarks: ["config", "dataset"],
137
- VueUiTreemap: ["config", "dataset"],
138
- VueUiVerticalBar: ["config", "dataset"],
139
- VueUiWaffle: ["config", "dataset"],
140
- VueUiWheel: ["config", "dataset"],
141
- VueUiXy: ["config", "dataset"],
142
- VueUiTableHeatmap: ["config", "dataset"],
143
- VueUiAccordion: ["config"],
144
- VueUiQuickChart: ["config", "dataset"],
145
- VueUiCursor: ["config"],
146
- VueUiSparkTrend: ["config", "dataset"],
147
- VueUiStripPlot: ["config", "dataset"],
148
- VueUiDumbbell: ["config", "dataset"],
149
- VueUiWordCloud: ["config", "dataset"],
150
- VueUiXyCanvas: ["config", "dataset"],
151
- VueUiFlow: ["config", "dataset"],
152
- VueUiParallelCoordinatePlot: ["config", "dataset"],
153
- VueUiTimer: ["config"],
154
- VueUiCarouselTable: ["config", "dataset"],
155
- VueUiGizmo: ["config", "dataset"],
156
- VueUiStackbar: ["config", "dataset"],
157
- VueUiBullet: ["config", "dataset"],
158
- VueUiFunnel: ["config", "dataset"],
159
- VueUiHistoryPlot: ["config", "dataset"],
160
- VueUiCirclePack: ["config", "dataset"],
161
- VueUiWorld: ["config", "dataset"],
162
- VueUiRidgeline: ["config", "dataset"],
163
- VueUiChord: ["config", "dataset"]
164
- }, Z = K, d = s(() => !g[n.component]), R = s(() => g[n.component] || null), i = o(null), w = s(() => {
165
- const t = J[n.component] || [], a = {};
166
- return t.includes("config") && (a.config = Y.value), t.includes("dataset") && (a.dataset = q.value), a;
167
- }), V = o(() => null), U = o(() => null), f = o(() => null), v = o(() => null), k = o(() => null), S = o(() => null), h = o(() => null), b = o(() => null), y = o(() => null), C = o(() => null), A = o(() => null), T = o(() => null), P = o(() => null), D = o(() => null), x = o(() => null), I = o(() => null), F = o(() => null), H = o(() => null), L = o(() => null), N = o(() => null), B = o(() => null), G = o(() => null), E = o(() => null), _ = o(() => null), O = o(() => null), W = o(() => null), M = o(() => null);
168
- it(() => {
169
- d.value && console.error(`
170
-
171
- Vue Data UI exception:
172
- The provided component "${n.component}" does not exist. Check the spelling.
173
-
174
- Available components:
175
-
176
- ${Object.keys(g).map((t) => `. ${t}
177
- `).join("")}`);
178
- }), $(i, async (t) => {
179
- t && (t.generatePdf && (V.value = t.generatePdf), t.generateImage && (f.value = t.generateImage), t.generateCsv && (U.value = t.generateCsv), t.getItemsPositions && (v.value = t.getItemsPositions), t.toggleReadonly && (k.value = t.toggleReadonly), t.shoot && (S.value = t.shoot), t.close && (h.value = t.close), t.restoreOrder && (b.value = t.restoreOrder), t.recalculateHeight && (y.value = t.recalculateHeight), t.toggleLock && (C.value = t.toggleLock), t.toggleTable && (A.value = t.toggleTable), t.toggleLabels && (T.value = t.toggleLabels), t.toggleSort && (P.value = t.toggleSort), t.toggleStack && (D.value = t.toggleStack), t.toggleTooltip && (x.value = t.toggleTooltip), t.start && (I.value = t.start), t.pause && (F.value = t.pause), t.reset && (H.value = t.reset), t.restart && (L.value = t.restart), t.lap && (N.value = t.lap), t.toggleAnimation && (B.value = t.toggleAnimation), t.pauseAnimation && (G.value = t.pauseAnimation), t.resumeAnimation && (E.value = t.resumeAnimation), t.toggleAnnotator && (_.value = t.toggleAnnotator), t.selectNode && (O.value = t.selectNode), t.selectGroup && (W.value = t.selectGroup), t.selectRibbon && (M.value = t.selectRibbon));
180
- });
181
- const tt = () => {
182
- const t = [
183
- "selectLegend",
184
- "selectDatapoint",
185
- "toggleOpenState",
186
- "saveAnnotations",
187
- "selectRoot",
188
- "selectBranch",
189
- "selectNut",
190
- "change",
191
- "selectPlot",
192
- "selectSide",
193
- "rate",
194
- "postImage",
195
- "hoverIndex",
196
- "selectX",
197
- "toggleLock",
198
- "toggleTooltip",
199
- "start",
200
- "pause",
201
- "reset",
202
- "restart",
203
- "lap",
204
- "toggleAnimation",
205
- "pauseAnimation",
206
- "resumeAnimation",
207
- "toggleAnnotator",
208
- "selectNode",
209
- "selectGroup",
210
- "selectRibbon"
211
- ], a = {};
212
- return t.forEach((p) => {
213
- a[p] = (...u) => Z(p, ...u);
214
- }), a;
215
- }, l = at([]);
216
- $([l, i], () => {
217
- if (i.value)
218
- for (; l.length; ) {
219
- const [t, ...a] = l.shift();
220
- typeof i.value[t] == "function" && i.value[t](...a);
221
- }
222
- }), z({
223
- getData: (...t) => i.value && typeof i.value.getData == "function" ? i.value.getData() : l.push(["getData", ...t]),
224
- generatePdf: V,
225
- generateCsv: U,
226
- generateImage: f,
227
- getItemsPositions: v,
228
- toggleReadonly: k,
229
- shoot: S,
230
- close: h,
231
- restoreOrder: b,
232
- recalculateHeight: y,
233
- toggleLock: C,
234
- toggleTable: A,
235
- toggleLabels: T,
236
- toggleSort: P,
237
- toggleStack: D,
238
- toggleTooltip: x,
239
- start: I,
240
- pause: F,
241
- reset: H,
242
- restart: L,
243
- lap: N,
244
- pauseAnimation: G,
245
- resumeAnimation: E,
246
- toggleAnimation: B,
247
- toggleAnnotator: _,
248
- selectNode: O,
249
- selectGroup: W,
250
- selectRibbon: M
251
- });
252
- const r = s(() => {
253
- let t = `The provided component ${n.component} does not exist.`;
254
- return ["VueUiIcon", "VueUiPattern", "Arrow"].includes(n.component) ? (t = `${n.component} is not supported by the VueDataUi universal component. You must import it individually.`, console.warn(t), {
255
- status: "notSupported",
256
- message: t
257
- }) : (console.warn(t), {
258
- status: "unknown",
259
- message: t
260
- });
261
- });
262
- return (t, a) => d.value ? (c(), nt("div", {
263
- key: 0,
264
- style: lt({
265
- width: "100%",
266
- display: "flex",
267
- gap: "6px",
268
- alignItems: "center",
269
- color: r.value.status === "notSupported" ? "#FF9000" : "#FF0000"
270
- })
271
- }, [
272
- rt("div", kt, [
273
- r.value.status === "unknown" ? (c(), m(Q, {
274
- key: 0,
275
- name: "moodFlat",
276
- stroke: "#FF0000"
277
- })) : X("", !0),
278
- r.value.status === "notSupported" ? (c(), m(Q, {
279
- key: 1,
280
- name: "circleExclamation",
281
- stroke: "#FF9000"
282
- })) : X("", !0)
283
- ]),
284
- ut(" " + st(r.value.message), 1)
285
- ], 4)) : (c(), m(ct(R.value), gt({
286
- key: 1,
287
- ref_key: "currentComponentRef",
288
- ref: i
289
- }, w.value, pt(tt())), mt({ _: 2 }, [
290
- dt(t.$slots, (p, u) => ({
291
- name: u,
292
- fn: Vt((et) => [
293
- Ut(t.$slots, u, ft(vt(et)))
294
- ])
295
- }))
296
- ]), 1040));
297
- }
298
- };
299
- export {
300
- yt as default
301
- };
@@ -1,343 +0,0 @@
1
- import { defineAsyncComponent as F, computed as h, ref as b, watch as ee, onMounted as pe, createElementBlock as c, openBlock as n, unref as l, normalizeStyle as L, normalizeClass as j, createBlock as S, createCommentVNode as d, createSlots as ge, withCtx as P, renderSlot as g, normalizeProps as z, guardReactiveProps as N, createVNode as ye, Fragment as te, renderList as ae, toDisplayString as me } from "vue";
2
- import { u as oe } from "./useNestedProp-DrYHm61t.js";
3
- import { u as ke, c as be, a as Ce, v as _e, o as $e, e as we, w as le, X as Oe, i as Pe, f as xe } from "./index-DvIXJm6t.js";
4
- import { u as Ae } from "./usePrinter-CWnXbGMb.js";
5
- import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Fe } from "./useChartAccessibility-9icAAmYg.js";
7
- import Se from "./Title-Gi81VwUM.js";
8
- import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Ne = ["id"], Me = {
10
- key: 2,
11
- style: "width:100%;background:transparent;padding-bottom:12px"
12
- }, Te = ["xmlns", "viewBox"], Ue = ["width", "height"], Ge = { key: 1 }, Le = ["d", "stroke-width", "stroke"], je = { key: 2 }, Ee = ["x1", "y1", "x2", "y2", "stroke-width", "stroke"], Re = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Be = {
13
- key: 5,
14
- class: "vue-data-ui-watermark"
15
- }, Xe = {
16
- key: 6,
17
- ref: "source",
18
- dir: "auto"
19
- }, De = {
20
- __name: "vue-ui-tiremarks",
21
- props: {
22
- config: {
23
- type: Object,
24
- default() {
25
- return {};
26
- }
27
- },
28
- dataset: {
29
- type: Object,
30
- default() {
31
- return {};
32
- }
33
- }
34
- },
35
- setup(se, { expose: ne }) {
36
- const re = F(() => import("./PenAndPaper-BPTpbnay.js")), ue = F(() => import("./vue-ui-skeleton-BAOt2neL.js")), ie = F(() => import("./UserOptions-CBEK6_jo.js")), ce = F(() => import("./PackageVersion-Bg_9KCU-.js")), { vue_ui_tiremarks: ve } = ke(), f = se, M = h(() => !!f.dataset && Object.keys(f.dataset).length), T = b(be()), E = b(null), he = b(null), R = b(0), B = b(0), e = h({
37
- get: () => V(),
38
- set: (t) => t
39
- }), { userOptionsVisible: U, setUserOptionsVisibility: X, keepUserOptionState: D } = Ie({ config: e.value }), { svgRef: H } = Fe({ config: e.value.style.chart.title });
40
- function V() {
41
- const t = oe({
42
- userConfig: f.config,
43
- defaultConfig: ve
44
- });
45
- return t.theme ? {
46
- ...oe({
47
- userConfig: Ce.vue_ui_tiremarks[t.theme] || f.config,
48
- defaultConfig: t
49
- })
50
- } : t;
51
- }
52
- ee(() => f.config, (t) => {
53
- e.value = V(), U.value = !e.value.userOptions.showOnChartHover, W(), B.value += 1;
54
- }, { deep: !0 });
55
- const { isPrinting: Y, isImaging: q, generatePdf: J, generateImage: K } = Ae({
56
- elementId: T.value,
57
- fileName: e.value.style.chart.title.text || "vue-ui-tiremarks",
58
- options: e.value.userOptions.print
59
- }), de = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : _e(f.dataset.percentage));
60
- ee(() => f.dataset, (t) => {
61
- e.value.style.chart.animation.use ? Q(t.percentage) : u.value = t.percentage || 0;
62
- }, { deep: !0 }), pe(() => {
63
- W();
64
- });
65
- function Q(t) {
66
- let r = e.value.style.chart.animation.speed;
67
- const a = Math.abs(t - u.value) / (r * 120);
68
- function s() {
69
- u.value < t ? u.value = Math.min(u.value + a, t) : u.value > t && (u.value = Math.max(u.value - a, t)), u.value !== t && requestAnimationFrame(s);
70
- }
71
- s();
72
- }
73
- function W() {
74
- $e(f.dataset) && we({
75
- componentName: "VueUiTiremarks",
76
- type: "dataset"
77
- }), Q(f.dataset.percentage || 0);
78
- }
79
- const C = h(() => e.value.style.chart.layout.display === "vertical"), i = h(() => {
80
- const t = {
81
- top: 48,
82
- left: 64,
83
- right: 64,
84
- bottom: 48
85
- };
86
- return C.value ? {
87
- top: e.value.style.chart.percentage.verticalPosition === "top" ? t.top : 3,
88
- left: 3,
89
- right: 3,
90
- bottom: e.value.style.chart.percentage.verticalPosition === "bottom" ? t.bottom : 3
91
- } : {
92
- top: 0,
93
- bottom: 0,
94
- left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
95
- right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
96
- };
97
- }), x = h(() => Object.values(i.value).reduce((t, r) => t + r, 0)), o = h(() => ({
98
- height: C.value ? 312 : 56,
99
- width: C.value ? 56 : 312
100
- })), v = h(() => C.value ? {
101
- mark: (o.value.height - x.value) / 100 * 0.5,
102
- space: (o.value.height - x.value) / 100 * 0.5
103
- } : {
104
- mark: (o.value.width - x.value) / 100 * 0.5,
105
- space: (o.value.width - x.value) / 100 * 0.5
106
- }), Z = h(() => {
107
- const t = [];
108
- for (let a = 0; a < 100; a += 1) {
109
- const s = e.value.style.chart.layout.ticks.gradient.show ? le(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
110
- if (C.value) {
111
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, p = i.value.left + 4 + $, y = o.value.width - i.value.right - 4 - $, m = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (y - p) / e.value.style.chart.layout.curveAngleX, O = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
112
- t.push({
113
- x1: p,
114
- x2: y,
115
- y1: m,
116
- y2: k,
117
- curve: `M ${p} ${m} C ${p + w} ${m - O}, ${y - w} ${k - O}, ${y} ${k}`,
118
- color: s
119
- });
120
- } else {
121
- const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, p = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = p, m = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), O = (k - m) / e.value.style.chart.layout.curveAngleX;
122
- t.push({
123
- x1: p,
124
- x2: y,
125
- y1: m,
126
- y2: k,
127
- curve: `M ${p} ${m} C ${p + w} ${m + O}, ${y + w} ${k - O}, ${y} ${k}`,
128
- color: s
129
- });
130
- }
131
- }
132
- return t;
133
- }), _ = h(() => {
134
- let t, r, a;
135
- const s = e.value.style.chart.percentage.fontSize / 3;
136
- return C.value ? e.value.style.chart.percentage.verticalPosition === "top" ? (t = o.value.width / 2, r = i.value.top / 2, a = "middle") : e.value.style.chart.percentage.verticalPosition === "bottom" && (t = o.value.width / 2, r = o.value.height - i.value.bottom / 2 + s, a = "middle") : e.value.style.chart.percentage.horizontalPosition === "left" ? (t = 4, r = o.value.height / 2 + s, a = "start") : e.value.style.chart.percentage.horizontalPosition === "right" && (t = o.value.width - i.value.right + 8, r = o.value.height / 2 + s, a = "start"), {
137
- x: t,
138
- y: r,
139
- textAnchor: a,
140
- bold: e.value.style.chart.percentage.bold,
141
- fontSize: e.value.style.chart.percentage.fontSize,
142
- fill: e.value.style.chart.percentage.color
143
- };
144
- }), A = b(!1);
145
- function fe(t) {
146
- A.value = t, R.value += 1;
147
- }
148
- const I = b(!1);
149
- function G() {
150
- I.value = !I.value;
151
- }
152
- return ne({
153
- generatePdf: J,
154
- generateImage: K,
155
- toggleAnnotator: G
156
- }), (t, r) => (n(), c("div", {
157
- ref_key: "tiremarksChart",
158
- ref: E,
159
- class: j(`vue-ui-tiremarks ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
160
- style: L(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor}`),
161
- id: T.value,
162
- onMouseenter: r[0] || (r[0] = () => l(X)(!0)),
163
- onMouseleave: r[1] || (r[1] = () => l(X)(!1))
164
- }, [
165
- e.value.userOptions.buttons.annotator ? (n(), S(l(re), {
166
- key: 0,
167
- svgRef: l(H),
168
- backgroundColor: e.value.style.chart.backgroundColor,
169
- color: e.value.style.chart.color,
170
- active: I.value,
171
- onClose: G
172
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : d("", !0),
173
- de.value ? (n(), c("div", {
174
- key: 1,
175
- ref_key: "noTitle",
176
- ref: he,
177
- class: "vue-data-ui-no-title-space",
178
- style: "height:36px; width: 100%;background:transparent"
179
- }, null, 512)) : d("", !0),
180
- e.value.style.chart.title.text ? (n(), c("div", Me, [
181
- (n(), S(Se, {
182
- key: `title_${B.value}`,
183
- config: {
184
- title: {
185
- cy: "wheel-title",
186
- ...e.value.style.chart.title
187
- },
188
- subtitle: {
189
- cy: "wheel-subtitle",
190
- ...e.value.style.chart.title.subtitle
191
- }
192
- }
193
- }, null, 8, ["config"]))
194
- ])) : d("", !0),
195
- e.value.userOptions.show && M.value && (l(D) || l(U)) ? (n(), S(l(ie), {
196
- ref: "details",
197
- key: `user_options_${R.value}`,
198
- backgroundColor: e.value.style.chart.backgroundColor,
199
- color: e.value.style.chart.color,
200
- isPrinting: l(Y),
201
- isImaging: l(q),
202
- uid: T.value,
203
- hasPdf: e.value.userOptions.buttons.pdf,
204
- hasImg: e.value.userOptions.buttons.img,
205
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
206
- hasXls: !1,
207
- isFullscreen: A.value,
208
- titles: { ...e.value.userOptions.buttonTitles },
209
- chartElement: E.value,
210
- position: e.value.userOptions.position,
211
- hasAnnotator: e.value.userOptions.buttons.annotator,
212
- isAnnotation: I.value,
213
- callbacks: e.value.userOptions.callbacks,
214
- printScale: e.value.userOptions.print.scale,
215
- onToggleFullscreen: fe,
216
- onGeneratePdf: l(J),
217
- onGenerateImage: l(K),
218
- onToggleAnnotator: G,
219
- style: L({
220
- visibility: l(D) ? l(U) ? "visible" : "hidden" : "visible"
221
- })
222
- }, ge({ _: 2 }, [
223
- t.$slots.menuIcon ? {
224
- name: "menuIcon",
225
- fn: P(({ isOpen: a, color: s }) => [
226
- g(t.$slots, "menuIcon", z(N({ isOpen: a, color: s })), void 0, !0)
227
- ]),
228
- key: "0"
229
- } : void 0,
230
- t.$slots.optionPdf ? {
231
- name: "optionPdf",
232
- fn: P(() => [
233
- g(t.$slots, "optionPdf", {}, void 0, !0)
234
- ]),
235
- key: "1"
236
- } : void 0,
237
- t.$slots.optionImg ? {
238
- name: "optionImg",
239
- fn: P(() => [
240
- g(t.$slots, "optionImg", {}, void 0, !0)
241
- ]),
242
- key: "2"
243
- } : void 0,
244
- t.$slots.optionFullscreen ? {
245
- name: "optionFullscreen",
246
- fn: P(({ toggleFullscreen: a, isFullscreen: s }) => [
247
- g(t.$slots, "optionFullscreen", z(N({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
248
- ]),
249
- key: "3"
250
- } : void 0,
251
- t.$slots.optionAnnotator ? {
252
- name: "optionAnnotator",
253
- fn: P(({ toggleAnnotator: a, isAnnotator: s }) => [
254
- g(t.$slots, "optionAnnotator", z(N({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
255
- ]),
256
- key: "4"
257
- } : void 0
258
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
259
- M.value ? (n(), c("svg", {
260
- key: 4,
261
- ref_key: "svgRef",
262
- ref: H,
263
- xmlns: l(Oe),
264
- class: j({ "vue-data-ui-fullscreen--on": A.value, "vue-data-ui-fulscreen--off": !A.value }),
265
- viewBox: `0 0 ${o.value.width} ${o.value.height}`,
266
- style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color}`)
267
- }, [
268
- ye(l(ce)),
269
- t.$slots["chart-background"] ? (n(), c("foreignObject", {
270
- key: 0,
271
- x: 0,
272
- y: 0,
273
- width: o.value.width,
274
- height: o.value.height,
275
- style: {
276
- pointerEvents: "none"
277
- }
278
- }, [
279
- g(t.$slots, "chart-background", {}, void 0, !0)
280
- ], 8, Ue)) : d("", !0),
281
- e.value.style.chart.layout.curved ? (n(), c("g", Ge, [
282
- (n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("path", {
283
- d: a.curve,
284
- "stroke-width": v.value.mark,
285
- stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
286
- "stroke-linecap": "round",
287
- fill: "none",
288
- class: j({ "vue-ui-tick-animated": e.value.style.chart.animation.use && s <= u.value })
289
- }, null, 10, Le))), 256))
290
- ])) : (n(), c("g", je, [
291
- (n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("line", {
292
- x1: a.x1,
293
- y1: a.y1,
294
- x2: a.x2,
295
- y2: a.y2,
296
- "stroke-width": v.value.mark,
297
- stroke: u.value >= s ? a.color : e.value.style.chart.layout.inactiveColor,
298
- "stroke-linecap": "round"
299
- }, null, 8, Ee))), 256))
300
- ])),
301
- e.value.style.chart.percentage.show ? (n(), c("text", {
302
- key: 3,
303
- x: _.value.x,
304
- y: _.value.y,
305
- "font-size": _.value.fontSize,
306
- fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? l(le)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
307
- "font-weight": _.value.bold ? "bold" : "normal",
308
- "text-anchor": _.value.textAnchor
309
- }, me(l(Pe)(
310
- e.value.style.chart.percentage.formatter,
311
- u.value,
312
- l(xe)({
313
- v: u.value,
314
- s: "%",
315
- r: e.value.style.chart.percentage.rounding
316
- })
317
- )), 9, Re)) : d("", !0),
318
- g(t.$slots, "svg", { svg: o.value }, void 0, !0)
319
- ], 14, Te)) : d("", !0),
320
- t.$slots.watermark ? (n(), c("div", Be, [
321
- g(t.$slots, "watermark", z(N({ isPrinting: l(Y) || l(q) })), void 0, !0)
322
- ])) : d("", !0),
323
- t.$slots.source ? (n(), c("div", Xe, [
324
- g(t.$slots, "source", {}, void 0, !0)
325
- ], 512)) : d("", !0),
326
- M.value ? d("", !0) : (n(), S(l(ue), {
327
- key: 7,
328
- config: {
329
- type: "tiremarks",
330
- style: {
331
- backgroundColor: e.value.style.chart.backgroundColor,
332
- tiremarks: {
333
- color: "#CCCCCC"
334
- }
335
- }
336
- }
337
- }, null, 8, ["config"]))
338
- ], 46, Ne));
339
- }
340
- }, Ze = /* @__PURE__ */ ze(De, [["__scopeId", "data-v-fb5a8e7d"]]);
341
- export {
342
- Ze as default
343
- };