vue-data-ui 3.19.8 → 3.19.9
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.
- package/README.md +1 -1
- package/dist/{PackageVersion-zJAUEmyB.js → PackageVersion-Dl9W5zJD.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{vue-data-ui-Dv8MNDbS.js → vue-data-ui-nsosW-n5.js} +61 -61
- package/dist/vue-data-ui.js +61 -61
- package/dist/{vue-ui-3d-bar-DVsF4qGd.js → vue-ui-3d-bar-CTvvvgBE.js} +1 -1
- package/dist/{vue-ui-age-pyramid-Bu3bocZx.js → vue-ui-age-pyramid-ckZtLlmH.js} +1 -1
- package/dist/{vue-ui-bullet-COSSZ7RU.js → vue-ui-bullet-3CkhGOSb.js} +1 -1
- package/dist/{vue-ui-bump-C1w-a4ad.js → vue-ui-bump-LQuPTOlm.js} +1 -1
- package/dist/{vue-ui-candlestick-zO0Jmsen.js → vue-ui-candlestick-BeO06tlH.js} +1 -1
- package/dist/{vue-ui-carousel-table-Q2uTIELA.js → vue-ui-carousel-table-nZJ1k6se.js} +1 -1
- package/dist/{vue-ui-chestnut-DdNKhXkN.js → vue-ui-chestnut-BWItE1hg.js} +1 -1
- package/dist/{vue-ui-chord-CYzGIRtA.js → vue-ui-chord-YflKRyWK.js} +1 -1
- package/dist/{vue-ui-circle-pack-Dp5_ugXW.js → vue-ui-circle-pack-DyTYvEg3.js} +1 -1
- package/dist/{vue-ui-cursor-DBViygOD.js → vue-ui-cursor-C5_wkWul.js} +1 -1
- package/dist/{vue-ui-dag-BA2vr2Ub.js → vue-ui-dag-mH0baWM3.js} +1 -1
- package/dist/{vue-ui-dashboard-D11FCHnp.js → vue-ui-dashboard-F7pEuJDh.js} +58 -58
- package/dist/{vue-ui-digits-CIXbRR97.js → vue-ui-digits-BYBtwXy_.js} +1 -1
- package/dist/{vue-ui-donut-BSanYbqb.js → vue-ui-donut-B3L7jeHL.js} +434 -432
- package/dist/{vue-ui-donut-evolution-BVttNIzH.js → vue-ui-donut-evolution-C46h0gLy.js} +356 -356
- package/dist/{vue-ui-dumbbell-D-KcBLOF.js → vue-ui-dumbbell-xekp1obI.js} +1 -1
- package/dist/{vue-ui-flow-Dly7N0Nb.js → vue-ui-flow-BYYyk5KL.js} +1 -1
- package/dist/{vue-ui-funnel-COwXzAbB.js → vue-ui-funnel-BfY509t-.js} +1 -1
- package/dist/{vue-ui-galaxy-Cg9VStNF.js → vue-ui-galaxy-D061gTYS.js} +260 -257
- package/dist/{vue-ui-gauge-DHWCS6jR.js → vue-ui-gauge-BRxZNBBS.js} +1 -1
- package/dist/{vue-ui-geo-CV0FBeuB.js → vue-ui-geo-BwOMFUVr.js} +1 -1
- package/dist/{vue-ui-gizmo-5rdIvscj.js → vue-ui-gizmo-CQsP8Nd3.js} +1 -1
- package/dist/{vue-ui-heatmap-kiQ6q3q4.js → vue-ui-heatmap-DOsulVoP.js} +1 -1
- package/dist/{vue-ui-history-plot-CgPjudHv.js → vue-ui-history-plot-CXW6lF42.js} +4 -8
- package/dist/{vue-ui-horizontal-bar-CpQCmBQD.js → vue-ui-horizontal-bar-CideXtlg.js} +4 -4
- package/dist/{vue-ui-kpi-Bz7QeCTV.js → vue-ui-kpi-CE-JFZ1o.js} +1 -1
- package/dist/{vue-ui-molecule-CvfwMxYY.js → vue-ui-molecule-B1Prm5Lk.js} +1 -1
- package/dist/{vue-ui-mood-radar-D0lanJ__.js → vue-ui-mood-radar-B29gVcTN.js} +1 -1
- package/dist/{vue-ui-nested-donuts-C-LWBXmg.js → vue-ui-nested-donuts-Bsx5f9Gv.js} +97 -94
- package/dist/{vue-ui-onion-u9hGe4VA.js → vue-ui-onion-MN-PjNJq.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-BJ5OjYTH.js → vue-ui-parallel-coordinate-plot-C9zU7MP5.js} +91 -95
- package/dist/{vue-ui-quadrant-BVFJ5Vur.js → vue-ui-quadrant-h-QFG9O4.js} +3 -3
- package/dist/vue-ui-quick-chart-PAVz4c9z.js +2469 -0
- package/dist/{vue-ui-radar-BsRGxgXN.js → vue-ui-radar-D2pVd53z.js} +115 -112
- package/dist/{vue-ui-relation-circle-MxYh6hSt.js → vue-ui-relation-circle-BjB0J53V.js} +1 -1
- package/dist/{vue-ui-ridgeline-BtNEP6ba.js → vue-ui-ridgeline-DamvqiyJ.js} +3 -3
- package/dist/{vue-ui-rings-Pj7yMeOV.js → vue-ui-rings-DkHS5dwd.js} +105 -102
- package/dist/{vue-ui-scatter-DrS1nrwL.js → vue-ui-scatter-dFDowCVQ.js} +5 -5
- package/dist/{vue-ui-skeleton-Cqv1KG4y.js → vue-ui-skeleton-zhkS1cmh.js} +1 -1
- package/dist/{vue-ui-spark-trend-eHleRq-z.js → vue-ui-spark-trend-fQ10-UvM.js} +1 -1
- package/dist/{vue-ui-sparkbar-BHJTG_on.js → vue-ui-sparkbar-D5toou8V.js} +1 -1
- package/dist/{vue-ui-sparkgauge-DpAEwvLX.js → vue-ui-sparkgauge-DRZcIPYf.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BlMH_NJk.js → vue-ui-sparkhistogram-YizEqFdN.js} +1 -1
- package/dist/{vue-ui-sparkline-BAWc3ROJ.js → vue-ui-sparkline-w2nclIW0.js} +1 -1
- package/dist/vue-ui-sparkstackbar-CTShNXhW.js +662 -0
- package/dist/{vue-ui-stackbar-28FVVqVu.js → vue-ui-stackbar-BFLCEsRk.js} +404 -404
- package/dist/{vue-ui-stackline-DwtlEdOE.js → vue-ui-stackline-CU6s-hhv.js} +125 -125
- package/dist/{vue-ui-strip-plot-DX36qFKk.js → vue-ui-strip-plot-ByaDLFSL.js} +1 -1
- package/dist/{vue-ui-table-DdZ_DkqT.js → vue-ui-table-DuA_CfGn.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BSV1jn7r.js → vue-ui-table-sparkline-Dfei_QrJ.js} +1 -1
- package/dist/{vue-ui-thermometer-Io8LdW1o.js → vue-ui-thermometer-biw3ivMI.js} +1 -1
- package/dist/{vue-ui-timer-BkdpZ-lw.js → vue-ui-timer-9LNNDl4q.js} +1 -1
- package/dist/{vue-ui-tiremarks-GC773Hw1.js → vue-ui-tiremarks-kF0Baqia.js} +1 -1
- package/dist/{vue-ui-treemap-C0dtbfbZ.js → vue-ui-treemap-BexKMBhz.js} +373 -373
- package/dist/{vue-ui-waffle-BvzfNmJC.js → vue-ui-waffle-Dq50j_uw.js} +1 -1
- package/dist/{vue-ui-wheel-Dm9V8TAH.js → vue-ui-wheel-BETHlWsO.js} +1 -1
- package/dist/{vue-ui-word-cloud-Ne_B9Elc.js → vue-ui-word-cloud-D1AQtzmT.js} +1 -1
- package/dist/{vue-ui-world-Bp38MZij.js → vue-ui-world-CcgbuSp_.js} +1 -1
- package/dist/{vue-ui-xy-BCeOqJYR.js → vue-ui-xy-BQ1YONCq.js} +280 -277
- package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-4ABYnasj.js} +3 -3
- package/package.json +1 -1
- package/dist/vue-ui-quick-chart-Cd5lGyph.js +0 -2471
- package/dist/vue-ui-sparkstackbar-BI8zG-DG.js +0 -662
|
@@ -170,17 +170,17 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
170
170
|
},
|
|
171
171
|
emits: ["selectLegend", "copyAlt"],
|
|
172
172
|
setup(e, { expose: Oe, emit: Ze }) {
|
|
173
|
-
let Kt = g(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), qt = g(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Jt = g(() => import("./DataTable-DmE8Oo4i.js")), Yt = g(() => import("./PackageVersion-
|
|
173
|
+
let Kt = g(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), qt = g(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Jt = g(() => import("./DataTable-DmE8Oo4i.js")), Yt = g(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Xt = g(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), Zt = g(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), Qt = g(() => import("./vue-ui-donut-B3L7jeHL.js").then((e) => e.n)), $t = g(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_donut_evolution: en } = ve(), { isThemeValid: tn, warnInvalidTheme: nn } = we(), O = e, k = S(r()), A = S([]), j = S(null), M = S(null), rn = S(!1), N = S(null), P = S(null), an = S(null), on = S(0), sn = S(0), cn = S(0), ln = S(0), un = S(0), dn = S(null), fn = S(null), pn = S(null), mn = S(null), hn = S(!1), gn = S(null), _n = S(null), vn = S(!1), yn = S(!1), bn = S(null), xn = S(null), Sn = S(null), Cn = S(null), wn = S(null), Tn = S(!1), En = qe(null), Dn = qe(null), On = S(null), F = S(null), kn = S(!1), An = Ze, jn = d(() => !!O.dataset && O.dataset.length);
|
|
174
174
|
Ge(() => {
|
|
175
|
-
hn.value = !0,
|
|
175
|
+
hn.value = !0, Nn();
|
|
176
176
|
});
|
|
177
|
-
let
|
|
178
|
-
function
|
|
177
|
+
let Mn = d(() => !!I.value.debug);
|
|
178
|
+
function Nn() {
|
|
179
179
|
if (c(O.dataset) ? (ee({
|
|
180
180
|
componentName: "VueUiDonutEvolution",
|
|
181
181
|
type: "dataset",
|
|
182
|
-
debug:
|
|
183
|
-
}),
|
|
182
|
+
debug: Mn.value
|
|
183
|
+
}), Ln.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
|
|
184
184
|
le({
|
|
185
185
|
datasetObject: e,
|
|
186
186
|
requiredAttributes: ["name", "values"]
|
|
@@ -190,31 +190,31 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
190
190
|
type: "datasetSerieAttribute",
|
|
191
191
|
property: e,
|
|
192
192
|
index: t,
|
|
193
|
-
debug:
|
|
194
|
-
}),
|
|
193
|
+
debug: Mn.value
|
|
194
|
+
}), Ln.value = !0;
|
|
195
195
|
});
|
|
196
|
-
}), c(O.dataset) || (
|
|
197
|
-
|
|
198
|
-
}, 10),
|
|
196
|
+
}), c(O.dataset) || (Ln.value = I.value.loading), setTimeout(() => {
|
|
197
|
+
Tn.value = !0;
|
|
198
|
+
}, 10), Bn(), I.value.responsive) {
|
|
199
199
|
let e = ke(() => {
|
|
200
|
-
|
|
200
|
+
Tn.value = !1;
|
|
201
201
|
let { width: e, height: t } = Ae({
|
|
202
202
|
chart: P.value,
|
|
203
|
-
title:
|
|
204
|
-
legend:
|
|
205
|
-
slicer:
|
|
206
|
-
source:
|
|
203
|
+
title: I.value.style.chart.title.text ? bn.value : null,
|
|
204
|
+
legend: I.value.style.chart.legend.show ? xn.value : null,
|
|
205
|
+
slicer: I.value.style.chart.zoom.show && Rn.value > 1 ? wn.value : null,
|
|
206
|
+
source: Sn.value
|
|
207
207
|
});
|
|
208
208
|
requestAnimationFrame(() => {
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
R.value.width = e, R.value.height = t - 12, clearTimeout(On.value), On.value = setTimeout(() => {
|
|
210
|
+
Tn.value = !0;
|
|
211
211
|
}, 10);
|
|
212
212
|
});
|
|
213
213
|
});
|
|
214
|
-
|
|
214
|
+
En.value && (Dn.value && En.value.unobserve(Dn.value), En.value.disconnect()), En.value = new ResizeObserver(e), Dn.value = P.value.parentNode, En.value.observe(Dn.value);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
let
|
|
217
|
+
let I = S(Gn()), L = d(() => I.value.userOptions.useCursorPointer), Pn = d(() => ge({
|
|
218
218
|
defaultConfig: {
|
|
219
219
|
useCssAnimation: !1,
|
|
220
220
|
table: { show: !1 },
|
|
@@ -251,14 +251,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
251
251
|
}
|
|
252
252
|
} }
|
|
253
253
|
},
|
|
254
|
-
userConfig:
|
|
255
|
-
})), { loading:
|
|
254
|
+
userConfig: I.value.skeletonConfig ?? {}
|
|
255
|
+
})), { loading: Fn, FINAL_DATASET: In, manualLoading: Ln } = be({
|
|
256
256
|
...Je(O),
|
|
257
|
-
FINAL_CONFIG:
|
|
257
|
+
FINAL_CONFIG: I,
|
|
258
258
|
prepareConfig: Gn,
|
|
259
259
|
callback: () => {
|
|
260
260
|
Promise.resolve().then(async () => {
|
|
261
|
-
await
|
|
261
|
+
await Bn();
|
|
262
262
|
});
|
|
263
263
|
},
|
|
264
264
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
@@ -300,35 +300,35 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
300
300
|
}
|
|
301
301
|
],
|
|
302
302
|
skeletonConfig: ge({
|
|
303
|
-
defaultConfig:
|
|
304
|
-
userConfig:
|
|
303
|
+
defaultConfig: I.value,
|
|
304
|
+
userConfig: Pn.value
|
|
305
305
|
})
|
|
306
|
-
}),
|
|
307
|
-
width:
|
|
308
|
-
height:
|
|
309
|
-
}),
|
|
306
|
+
}), R = S({
|
|
307
|
+
width: I.value.style.chart.layout.width,
|
|
308
|
+
height: I.value.style.chart.layout.height
|
|
309
|
+
}), Rn = d(() => Math.max(...In.value.map((e) => e.values.length))), z = S({
|
|
310
310
|
start: 0,
|
|
311
|
-
end:
|
|
311
|
+
end: Rn.value
|
|
312
312
|
});
|
|
313
|
-
function
|
|
314
|
-
|
|
313
|
+
function zn() {
|
|
314
|
+
Bn();
|
|
315
315
|
}
|
|
316
|
-
async function
|
|
316
|
+
async function Bn() {
|
|
317
317
|
await Ue(), await Ue();
|
|
318
|
-
let { startIndex: e, endIndex: t } =
|
|
319
|
-
|
|
318
|
+
let { startIndex: e, endIndex: t } = I.value.style.chart.zoom, n = Cn.value;
|
|
319
|
+
z.value = {
|
|
320
320
|
start: 0,
|
|
321
321
|
max: K.value
|
|
322
|
-
}, (e != null || t != null) && n ? (e == null ? (
|
|
322
|
+
}, (e != null || t != null) && n ? (e == null ? (z.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (z.value.end = K.value, n.setEndValue(K.value)) : n.setEndValue(Vn(t + 1))) : (z.value = {
|
|
323
323
|
start: 0,
|
|
324
324
|
end: K.value
|
|
325
325
|
}, sn.value += 1);
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Vn(e) {
|
|
328
328
|
let t = K.value;
|
|
329
|
-
return e > t ? t : e < 0 ||
|
|
329
|
+
return e > t ? t : e < 0 || I.value.style.chart.zoom.startIndex !== null && e < I.value.style.chart.zoom.startIndex ? I.value.style.chart.zoom.startIndex === null ? 1 : I.value.style.chart.zoom.startIndex + 1 : e;
|
|
330
330
|
}
|
|
331
|
-
let { userOptionsVisible:
|
|
331
|
+
let { userOptionsVisible: Hn, setUserOptionsVisibility: Un, keepUserOptionState: Wn } = Ne({ config: I.value }), { svgRef: B } = Pe({ config: I.value.style.chart.title });
|
|
332
332
|
function Gn() {
|
|
333
333
|
let e = Ce({
|
|
334
334
|
userConfig: O.config,
|
|
@@ -352,31 +352,31 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
352
352
|
return t;
|
|
353
353
|
}
|
|
354
354
|
Ye(() => O.config, (e) => {
|
|
355
|
-
|
|
355
|
+
Fn.value || (I.value = Gn()), Hn.value = !I.value.userOptions.showOnChartHover, Nn(), cn.value += 1, ln.value += 1, un.value += 1, V.value.showTable = I.value.table.show;
|
|
356
356
|
}, { deep: !0 }), Ye(() => O.dataset, (e) => {
|
|
357
|
-
Array.isArray(e) && e.length > 0 && (
|
|
357
|
+
Array.isArray(e) && e.length > 0 && (Ln.value = !1), zn();
|
|
358
358
|
}, { deep: !0 });
|
|
359
359
|
let { isPrinting: Kn, isImaging: qn, generatePdf: Jn, generateImage: Yn } = ye({
|
|
360
360
|
elementId: k.value,
|
|
361
|
-
fileName:
|
|
362
|
-
options:
|
|
363
|
-
}), Xn = d(() =>
|
|
364
|
-
Ye(
|
|
365
|
-
V.value = { showTable:
|
|
361
|
+
fileName: I.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
362
|
+
options: I.value.userOptions.print
|
|
363
|
+
}), Xn = d(() => I.value.userOptions.show && !I.value.style.chart.title.text), Zn = d(() => me(I.value.customPalette)), V = S({ showTable: I.value.table.show });
|
|
364
|
+
Ye(I, () => {
|
|
365
|
+
V.value = { showTable: I.value.table.show };
|
|
366
366
|
}, { immediate: !0 });
|
|
367
367
|
let H = d(() => ({
|
|
368
|
-
top:
|
|
369
|
-
right:
|
|
370
|
-
bottom:
|
|
371
|
-
left:
|
|
372
|
-
})), U = d(() =>
|
|
368
|
+
top: I.value.style.chart.layout.padding.top,
|
|
369
|
+
right: I.value.style.chart.layout.padding.right,
|
|
370
|
+
bottom: I.value.style.chart.layout.padding.bottom,
|
|
371
|
+
left: I.value.style.chart.layout.padding.left
|
|
372
|
+
})), U = d(() => I.value.style.chart.layout.grid.yAxis.position === "right");
|
|
373
373
|
function Qn() {
|
|
374
374
|
let e = 0;
|
|
375
375
|
dn.value && (e = Array.from(dn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
376
376
|
let n = t.getComputedTextLength();
|
|
377
377
|
return n > e ? n : e;
|
|
378
378
|
}, 0));
|
|
379
|
-
let t = mn.value ? mn.value.getBoundingClientRect().width +
|
|
379
|
+
let t = mn.value ? mn.value.getBoundingClientRect().width + I.value.style.chart.layout.grid.axis.yLabelOffsetX + I.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
|
|
380
380
|
return {
|
|
381
381
|
left: U.value ? 0 : n,
|
|
382
382
|
right: U.value ? n : 0,
|
|
@@ -402,9 +402,9 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
402
402
|
let e = 0;
|
|
403
403
|
pn.value && (e = pn.value.getBBox().height);
|
|
404
404
|
let t = 0;
|
|
405
|
-
return fn.value && (t = $n.value), e + t +
|
|
405
|
+
return fn.value && (t = $n.value), e + t + I.value.style.chart.layout.grid.axis.fontSize + I.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
406
406
|
}), W = d(() => {
|
|
407
|
-
let e = Qn(), t =
|
|
407
|
+
let e = Qn(), t = I.value.style.chart.layout.dataLabels.fontSize * 3, n = R.value.width, r = R.value.height, i = H.value.left + e.left, a = n - H.value.right - e.right, o = n - i - H.value.right - e.right, s = r - H.value.top - H.value.bottom - t - tr.value, c = H.value.top + t;
|
|
408
408
|
return {
|
|
409
409
|
top: c,
|
|
410
410
|
left: i,
|
|
@@ -420,21 +420,21 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
420
420
|
yAxisLabelWidth: e.yAxisLabelWidth,
|
|
421
421
|
crosshair: e.crosshair
|
|
422
422
|
};
|
|
423
|
-
}), G = d(() => (
|
|
423
|
+
}), G = d(() => (In.value.forEach((e, t) => {
|
|
424
424
|
[null, void 0].includes(e.name) && ee({
|
|
425
425
|
componentName: "VueUiDonutEvolution",
|
|
426
426
|
type: "datasetSerieAttribute",
|
|
427
427
|
property: "name",
|
|
428
428
|
index: t,
|
|
429
|
-
debug:
|
|
429
|
+
debug: Mn.value
|
|
430
430
|
}), [null, void 0].includes(e.values) && ee({
|
|
431
431
|
componentName: "VueUiDonutEvolution",
|
|
432
432
|
type: "datasetSerieAttribute",
|
|
433
433
|
property: "values",
|
|
434
434
|
index: t,
|
|
435
|
-
debug:
|
|
435
|
+
debug: Mn.value
|
|
436
436
|
});
|
|
437
|
-
}),
|
|
437
|
+
}), In.value.map((e, t) => ({
|
|
438
438
|
...e,
|
|
439
439
|
values: ce(e.values),
|
|
440
440
|
color: he(e.color) || Zn.value[t] || l[t] || l[t % l.length],
|
|
@@ -442,24 +442,24 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
442
442
|
uid: r()
|
|
443
443
|
})))), nr = d(() => G.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
444
444
|
...e,
|
|
445
|
-
values: e.values.filter((e, t) => t >=
|
|
445
|
+
values: e.values.filter((e, t) => t >= z.value.start && t <= z.value.end)
|
|
446
446
|
}))), K = d(() => Math.max(...G.value.map((e) => e.length))), q = S([]), rr = 0;
|
|
447
447
|
Xe(() => {
|
|
448
448
|
let e = ++rr;
|
|
449
449
|
(async () => {
|
|
450
450
|
let t = await _e({
|
|
451
|
-
values:
|
|
451
|
+
values: I.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
452
452
|
maxDatapoints: K.value,
|
|
453
|
-
formatter:
|
|
454
|
-
start:
|
|
455
|
-
end:
|
|
453
|
+
formatter: I.value.style.chart.layout.grid.xAxis.dataLabels.datetimeFormatter,
|
|
454
|
+
start: z.value.start,
|
|
455
|
+
end: z.value.end
|
|
456
456
|
});
|
|
457
457
|
e === rr && (q.value = t);
|
|
458
458
|
})();
|
|
459
459
|
});
|
|
460
|
-
let J = d(() => W.value.width / (
|
|
460
|
+
let J = d(() => W.value.width / (z.value.end - z.value.start)), ir = d(() => {
|
|
461
461
|
let e = [];
|
|
462
|
-
for (let t = 0; t <
|
|
462
|
+
for (let t = 0; t < z.value.end - z.value.start; t += 1) {
|
|
463
463
|
let n = nr.value.map((e) => e.values[t] ?? null), r = n.filter((e) => [void 0, null].includes(e)).length === n.length, i = n.reduce((e, t) => e + t, 0), a = n.map((e) => e / i), o = W.value.left + J.value * t + J.value / 2;
|
|
464
464
|
e.push({
|
|
465
465
|
index: t,
|
|
@@ -471,14 +471,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
471
471
|
}
|
|
472
472
|
return e;
|
|
473
473
|
}), ar = d(() => {
|
|
474
|
-
let e = Math.max(...ir.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 1, t = Math.min(...ir.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 0, n = Math.max(
|
|
475
|
-
return r =
|
|
474
|
+
let e = Math.max(...ir.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 1, t = Math.min(...ir.value.map((e) => e.subtotal).filter((e) => ae(e))) ?? 0, n = Math.max(I.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), r;
|
|
475
|
+
return r = I.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, I.value.style.chart.layout.grid.yAxis.scaleMin), I.value.style.chart.layout.grid.yAxis.autoScale && (r = t, n = e), r === n && (r = n / 2, n *= 1.5), {
|
|
476
476
|
max: n,
|
|
477
477
|
min: r
|
|
478
478
|
};
|
|
479
479
|
}), Y = d(() => {
|
|
480
480
|
let e = ir.value.length === 1 ? ar.value.max * 2 : ar.value.max;
|
|
481
|
-
return ie(ar.value.min, e,
|
|
481
|
+
return ie(ar.value.min, e, I.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
482
482
|
});
|
|
483
483
|
function or(e) {
|
|
484
484
|
return (e - Y.value.min) / (Y.value.max - Y.value.min);
|
|
@@ -507,11 +507,11 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
507
507
|
});
|
|
508
508
|
});
|
|
509
509
|
function cr(e, t, r) {
|
|
510
|
-
return oe(
|
|
511
|
-
p:
|
|
510
|
+
return oe(I.value.style.chart.layout.dataLabels.formatter, e, n({
|
|
511
|
+
p: I.value.style.chart.layout.dataLabels.prefix,
|
|
512
512
|
v: e,
|
|
513
|
-
s:
|
|
514
|
-
r:
|
|
513
|
+
s: I.value.style.chart.layout.dataLabels.suffix,
|
|
514
|
+
r: I.value.style.chart.layout.dataLabels.rounding
|
|
515
515
|
}), {
|
|
516
516
|
datapoint: t,
|
|
517
517
|
index: r
|
|
@@ -521,81 +521,81 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
521
521
|
return isNaN(e.value / o(t, "value")) ? 0 : (e.value / o(t, "value") * 100).toFixed(0) + "%";
|
|
522
522
|
}
|
|
523
523
|
function ur(e) {
|
|
524
|
-
j.value = null, M.value = null,
|
|
524
|
+
j.value = null, M.value = null, F.value = null, I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
525
525
|
datapoint: e,
|
|
526
|
-
seriesIndex: e.seriesIndex +
|
|
526
|
+
seriesIndex: e.seriesIndex + z.value.start
|
|
527
527
|
});
|
|
528
528
|
}
|
|
529
529
|
function dr(e) {
|
|
530
|
-
|
|
530
|
+
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
531
531
|
datapoint: e,
|
|
532
|
-
seriesIndex: e.index +
|
|
533
|
-
}), j.value = e.index, M.value = e,
|
|
532
|
+
seriesIndex: e.index + z.value.start
|
|
533
|
+
}), j.value = e.index, M.value = e, F.value = e.index;
|
|
534
534
|
}
|
|
535
535
|
let fr = S(null);
|
|
536
536
|
function pr(e, t) {
|
|
537
|
-
|
|
537
|
+
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
538
538
|
datapoint: e,
|
|
539
|
-
seriesIndex: e.index +
|
|
540
|
-
}), !(!e.subtotal || !
|
|
539
|
+
seriesIndex: e.index + z.value.start
|
|
540
|
+
}), !(!e.subtotal || !I.value.style.chart.dialog.show) && (M.value = null, j.value = null, rn.value = !0, N.value = e, jr(e), [null, void 0].includes(t) || (fr.value = t));
|
|
541
541
|
}
|
|
542
|
-
let
|
|
542
|
+
let Z = d(() => G.value.map((e, t) => ({
|
|
543
543
|
name: e.name,
|
|
544
|
-
value: e.values.slice(
|
|
544
|
+
value: e.values.slice(z.value.start, z.value.end).reduce((e, t) => e + t, 0),
|
|
545
545
|
shape: "circle",
|
|
546
546
|
uid: e.uid,
|
|
547
547
|
color: e.color
|
|
548
548
|
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
549
549
|
...e,
|
|
550
550
|
opacity: A.value.includes(e.uid) ? .5 : 1,
|
|
551
|
-
segregate: () =>
|
|
551
|
+
segregate: () => _r(e.uid),
|
|
552
552
|
isSegregated: A.value.includes(e.uid),
|
|
553
|
-
display: `${e.name}${
|
|
554
|
-
p:
|
|
553
|
+
display: `${e.name}${I.value.style.chart.legend.showPercentage || I.value.style.chart.legend.showValue ? ": " : ""}${I.value.style.chart.legend.showValue ? oe(I.value.style.chart.layout.dataLabels.formatter, e.value, n({
|
|
554
|
+
p: I.value.style.chart.layout.dataLabels.prefix,
|
|
555
555
|
v: e.value,
|
|
556
|
-
s:
|
|
557
|
-
r:
|
|
556
|
+
s: I.value.style.chart.layout.dataLabels.suffix,
|
|
557
|
+
r: I.value.style.chart.legend.roundingValue
|
|
558
558
|
}), {
|
|
559
559
|
datapoint: e,
|
|
560
560
|
seriesIndex: t
|
|
561
|
-
}) : ""}${
|
|
562
|
-
v: e.value /
|
|
561
|
+
}) : ""}${I.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${I.value.style.chart.legend.showValue ? " (" : ""}- %${I.value.style.chart.legend.showValue ? ")" : ""}` : `${I.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / mr.value) ? "-" : n({
|
|
562
|
+
v: e.value / mr.value * 100,
|
|
563
563
|
s: "%",
|
|
564
|
-
r:
|
|
565
|
-
})}${
|
|
566
|
-
}))),
|
|
564
|
+
r: I.value.style.chart.legend.roundingPercentage
|
|
565
|
+
})}${I.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
566
|
+
}))), mr = d(() => X.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), hr = d(() => ({
|
|
567
567
|
cy: "donut-div-legend",
|
|
568
|
-
backgroundColor:
|
|
569
|
-
color:
|
|
570
|
-
fontSize:
|
|
568
|
+
backgroundColor: I.value.style.chart.legend.backgroundColor,
|
|
569
|
+
color: I.value.style.chart.legend.color,
|
|
570
|
+
fontSize: I.value.style.chart.legend.fontSize,
|
|
571
571
|
paddingBottom: 12,
|
|
572
|
-
fontWeight:
|
|
572
|
+
fontWeight: I.value.style.chart.legend.bold ? "bold" : ""
|
|
573
573
|
}));
|
|
574
|
-
function
|
|
575
|
-
A.value.length ? A.value = [] :
|
|
574
|
+
function gr() {
|
|
575
|
+
A.value.length ? A.value = [] : Z.value.forEach((e) => {
|
|
576
576
|
A.value.push(e.uid);
|
|
577
|
-
});
|
|
577
|
+
}), An("selectLegend", nr.value);
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e),
|
|
579
|
+
function _r(e) {
|
|
580
|
+
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), An("selectLegend", nr.value);
|
|
581
581
|
else {
|
|
582
582
|
if (A.value.length === G.value.length - 1) return;
|
|
583
|
-
A.value.push(e),
|
|
583
|
+
A.value.push(e), An("selectLegend", nr.value);
|
|
584
584
|
}
|
|
585
585
|
N.value && pr(X.value.find((e, t) => t === fr.value));
|
|
586
586
|
}
|
|
587
|
+
function vr(e) {
|
|
588
|
+
return G.value.length ? G.value.find((t) => t.name === e) || (I.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (I.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
|
|
589
|
+
}
|
|
587
590
|
function yr(e) {
|
|
588
|
-
|
|
591
|
+
let t = vr(e);
|
|
592
|
+
t !== null && A.value.includes(t.uid) && _r(t.uid);
|
|
589
593
|
}
|
|
590
594
|
function br(e) {
|
|
591
|
-
let t =
|
|
592
|
-
t !== null && A.value.includes(t.uid)
|
|
595
|
+
let t = vr(e);
|
|
596
|
+
t !== null && (A.value.includes(t.uid) || _r(t.uid));
|
|
593
597
|
}
|
|
594
|
-
|
|
595
|
-
let t = yr(e);
|
|
596
|
-
t !== null && (A.value.includes(t.uid) || vr(t.uid));
|
|
597
|
-
}
|
|
598
|
-
let Z = d(() => {
|
|
598
|
+
let Q = d(() => {
|
|
599
599
|
let e = [""].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
600
600
|
name: e.name,
|
|
601
601
|
color: e.color
|
|
@@ -605,7 +605,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
605
605
|
t.push([q.value[e] ? q.value[e].text : "-"].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((t) => ({
|
|
606
606
|
value: t.values[e] ?? 0,
|
|
607
607
|
percentage: t.values[e] ? t.values[e] / n * 100 : 0
|
|
608
|
-
})), [`${
|
|
608
|
+
})), [`${I.value.style.chart.layout.dataLabels.prefix}${Number(n.toFixed(I.value.table.td.roundingValue))}${I.value.style.chart.layout.dataLabels.suffix}`]));
|
|
609
609
|
}
|
|
610
610
|
return {
|
|
611
611
|
head: e,
|
|
@@ -613,49 +613,49 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
613
613
|
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${cr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
|
|
614
614
|
config: {
|
|
615
615
|
th: {
|
|
616
|
-
backgroundColor:
|
|
617
|
-
color:
|
|
618
|
-
outline:
|
|
616
|
+
backgroundColor: I.value.table.th.backgroundColor,
|
|
617
|
+
color: I.value.table.th.color,
|
|
618
|
+
outline: I.value.table.th.outline
|
|
619
619
|
},
|
|
620
620
|
td: {
|
|
621
|
-
backgroundColor:
|
|
622
|
-
color:
|
|
623
|
-
outline:
|
|
621
|
+
backgroundColor: I.value.table.td.backgroundColor,
|
|
622
|
+
color: I.value.table.td.color,
|
|
623
|
+
outline: I.value.table.td.outline
|
|
624
624
|
},
|
|
625
|
-
breakpoint:
|
|
625
|
+
breakpoint: I.value.table.responsiveBreakpoint
|
|
626
626
|
},
|
|
627
|
-
colNames: [
|
|
627
|
+
colNames: [I.value.table.columnNames.period].concat(G.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), I.value.table.columnNames.total)
|
|
628
628
|
};
|
|
629
629
|
});
|
|
630
|
-
function
|
|
630
|
+
function xr() {
|
|
631
631
|
return G.value;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function Sr(e = null) {
|
|
634
634
|
Ue(() => {
|
|
635
635
|
let t = [
|
|
636
|
-
[
|
|
637
|
-
[
|
|
636
|
+
[I.value.style.chart.title.text],
|
|
637
|
+
[I.value.style.chart.title.subtitle.text],
|
|
638
638
|
[""]
|
|
639
|
-
], n = [...
|
|
639
|
+
], n = [...Q.value.head.map((e) => e.name ?? e)], r = [...Q.value.body.map((e) => e.map((e) => e.value ?? e))], a = s(t.concat([n]).concat(r));
|
|
640
640
|
e ? e(a) : i({
|
|
641
641
|
csvContent: a,
|
|
642
|
-
title:
|
|
642
|
+
title: I.value.style.chart.title.text || "vue-ui-donut-evolution"
|
|
643
643
|
});
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
|
-
let
|
|
647
|
-
function
|
|
648
|
-
|
|
646
|
+
let $ = S(!1);
|
|
647
|
+
function Cr(e) {
|
|
648
|
+
$.value = e, on.value += 1;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function wr() {
|
|
651
651
|
V.value.showTable = !V.value.showTable;
|
|
652
652
|
}
|
|
653
|
-
let
|
|
653
|
+
let Tr = S(!1);
|
|
654
654
|
function Er() {
|
|
655
|
-
|
|
655
|
+
Tr.value = !Tr.value;
|
|
656
656
|
}
|
|
657
657
|
function Dr(e) {
|
|
658
|
-
return e.proportion * 100 >
|
|
658
|
+
return e.proportion * 100 > I.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
659
659
|
}
|
|
660
660
|
let Or = S([]), kr = S({}), Ar = S(null);
|
|
661
661
|
function jr(e) {
|
|
@@ -664,9 +664,9 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
664
664
|
values: [e.value],
|
|
665
665
|
color: e.color
|
|
666
666
|
})), kr.value = de({
|
|
667
|
-
...
|
|
667
|
+
...I.value.style.chart.dialog.donutChart,
|
|
668
668
|
responsive: !0,
|
|
669
|
-
theme:
|
|
669
|
+
theme: I.value.theme
|
|
670
670
|
}), Ar.value && Ar.value.open();
|
|
671
671
|
}
|
|
672
672
|
async function Mr({ scale: e = 2 } = {}) {
|
|
@@ -680,7 +680,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
680
680
|
return {
|
|
681
681
|
imageUri: i,
|
|
682
682
|
base64: a,
|
|
683
|
-
title:
|
|
683
|
+
title: I.value.style.chart.title.text,
|
|
684
684
|
width: t,
|
|
685
685
|
height: n,
|
|
686
686
|
aspectRatio: r
|
|
@@ -689,8 +689,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
689
689
|
Te({
|
|
690
690
|
timeLabelsEls: fn,
|
|
691
691
|
timeLabels: q,
|
|
692
|
-
slicer:
|
|
693
|
-
configRef:
|
|
692
|
+
slicer: z,
|
|
693
|
+
configRef: I,
|
|
694
694
|
rotationPath: [
|
|
695
695
|
"style",
|
|
696
696
|
"chart",
|
|
@@ -711,63 +711,63 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
711
711
|
"enable"
|
|
712
712
|
],
|
|
713
713
|
isAutoSize: !1,
|
|
714
|
-
width: d(() =>
|
|
715
|
-
height: d(() =>
|
|
716
|
-
rotation:
|
|
714
|
+
width: d(() => R.value.width),
|
|
715
|
+
height: d(() => R.value.height),
|
|
716
|
+
rotation: I.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
717
717
|
});
|
|
718
718
|
let Nr = d(() => {
|
|
719
|
-
let e =
|
|
719
|
+
let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
|
|
720
720
|
return {
|
|
721
721
|
component: e ? $t : Kt,
|
|
722
|
-
title: `${
|
|
722
|
+
title: `${I.value.style.chart.title.text}${I.value.style.chart.title.subtitle.text ? `: ${I.value.style.chart.title.subtitle.text}` : ""}`,
|
|
723
723
|
props: e ? {
|
|
724
|
-
backgroundColor:
|
|
725
|
-
color:
|
|
726
|
-
headerColor:
|
|
727
|
-
headerBg:
|
|
728
|
-
isFullscreen:
|
|
724
|
+
backgroundColor: I.value.table.th.backgroundColor,
|
|
725
|
+
color: I.value.table.th.color,
|
|
726
|
+
headerColor: I.value.table.th.color,
|
|
727
|
+
headerBg: I.value.table.th.backgroundColor,
|
|
728
|
+
isFullscreen: $.value,
|
|
729
729
|
fullscreenParent: P.value,
|
|
730
730
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
731
|
-
isCursorPointer:
|
|
731
|
+
isCursorPointer: L.value
|
|
732
732
|
} : {
|
|
733
733
|
hideDetails: !0,
|
|
734
734
|
config: {
|
|
735
735
|
open: t,
|
|
736
736
|
maxHeight: 1e4,
|
|
737
737
|
body: {
|
|
738
|
-
backgroundColor:
|
|
739
|
-
color:
|
|
738
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
739
|
+
color: I.value.style.chart.color
|
|
740
740
|
},
|
|
741
741
|
head: {
|
|
742
|
-
backgroundColor:
|
|
743
|
-
color:
|
|
742
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
743
|
+
color: I.value.style.chart.color
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
747
|
};
|
|
748
748
|
});
|
|
749
749
|
Ye(() => V.value.showTable, (e) => {
|
|
750
|
-
|
|
750
|
+
I.value.table.show || (e && I.value.table.useDialog && gn.value ? gn.value.open() : "close" in gn.value && gn.value.close());
|
|
751
751
|
});
|
|
752
752
|
function Pr() {
|
|
753
|
-
V.value.showTable = !1,
|
|
753
|
+
V.value.showTable = !1, _n.value && _n.value.setTableIconState(!1);
|
|
754
754
|
}
|
|
755
|
-
let Fr = d(() =>
|
|
755
|
+
let Fr = d(() => Z.value.map((e) => ({
|
|
756
756
|
...e,
|
|
757
757
|
name: e.display
|
|
758
|
-
}))), Ir = d(() =>
|
|
759
|
-
svg:
|
|
760
|
-
title: d(() =>
|
|
758
|
+
}))), Ir = d(() => I.value.style.chart.backgroundColor), Lr = d(() => I.value.style.chart.legend), { exportSvg: Rr, getSvg: zr } = Se({
|
|
759
|
+
svg: B,
|
|
760
|
+
title: d(() => I.value.style.chart.title),
|
|
761
761
|
legend: Lr,
|
|
762
762
|
legendItems: Fr,
|
|
763
763
|
backgroundColor: Ir
|
|
764
764
|
});
|
|
765
765
|
async function Br({ isCb: e }) {
|
|
766
|
-
|
|
766
|
+
yn.value = !0, await Ue();
|
|
767
767
|
try {
|
|
768
768
|
if (e) {
|
|
769
769
|
let { blob: e, url: t, text: n, dataUrl: r } = await zr();
|
|
770
|
-
await Promise.resolve(
|
|
770
|
+
await Promise.resolve(I.value.userOptions.callbacks.svg({
|
|
771
771
|
blob: e,
|
|
772
772
|
url: t,
|
|
773
773
|
text: n,
|
|
@@ -775,96 +775,96 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
775
775
|
}));
|
|
776
776
|
} else await Promise.resolve(Rr());
|
|
777
777
|
} finally {
|
|
778
|
-
|
|
778
|
+
yn.value = !1;
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
function Vr(e) {
|
|
782
782
|
if (e?.stage === "start") {
|
|
783
|
-
|
|
783
|
+
vn.value = !0;
|
|
784
784
|
return;
|
|
785
785
|
}
|
|
786
786
|
if (e?.stage === "end") {
|
|
787
|
-
|
|
787
|
+
vn.value = !1;
|
|
788
788
|
return;
|
|
789
789
|
}
|
|
790
790
|
Yn();
|
|
791
791
|
}
|
|
792
792
|
async function Hr() {
|
|
793
|
-
if (
|
|
794
|
-
config:
|
|
793
|
+
if (An("copyAlt", {
|
|
794
|
+
config: I.value,
|
|
795
795
|
dataset: X.value
|
|
796
|
-
}), !
|
|
796
|
+
}), !I.value.userOptions.callbacks.altCopy) {
|
|
797
797
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
798
798
|
return;
|
|
799
799
|
}
|
|
800
|
-
await Promise.resolve(
|
|
801
|
-
config:
|
|
800
|
+
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
801
|
+
config: I.value,
|
|
802
802
|
dataset: X.value
|
|
803
803
|
}));
|
|
804
804
|
}
|
|
805
805
|
function Ur() {
|
|
806
|
-
|
|
806
|
+
F.value = null, kn.value = !0;
|
|
807
807
|
}
|
|
808
808
|
function Wr() {
|
|
809
|
-
|
|
809
|
+
F.value = null, j.value = null, M.value = null, kn.value = !1;
|
|
810
810
|
}
|
|
811
811
|
function Gr(e) {
|
|
812
|
-
if (!
|
|
812
|
+
if (!B.value || Tr.value || document.activeElement !== B.value || !X.value.length) return;
|
|
813
813
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
814
814
|
if (!t && !n && !r && !i) return;
|
|
815
815
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
816
|
-
|
|
816
|
+
F.value = null, j.value = null, M.value = null;
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
819
|
if (r) {
|
|
820
|
-
if (
|
|
821
|
-
let e = X.value[
|
|
820
|
+
if (F.value === null) return;
|
|
821
|
+
let e = X.value[F.value];
|
|
822
822
|
if (!e) return;
|
|
823
|
-
pr(e,
|
|
823
|
+
pr(e, F.value);
|
|
824
824
|
return;
|
|
825
825
|
}
|
|
826
|
-
let a =
|
|
826
|
+
let a = F.value, o = j.value, s = a !== null && a >= 0 && a < X.value.length, c = o !== null && o >= 0 && o < X.value.length;
|
|
827
827
|
s ? n ? (a += 1, a >= X.value.length && (a = 0)) : t && (--a, a < 0 && (a = X.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= X.value.length && (a = 0), a < 0 && (a = X.value.length - 1)) : a = n ? 0 : X.value.length - 1;
|
|
828
828
|
let l = X.value[a];
|
|
829
829
|
l && dr(l);
|
|
830
830
|
}
|
|
831
831
|
let Kr = d(() => ({
|
|
832
|
-
headers:
|
|
833
|
-
rows:
|
|
832
|
+
headers: Q.value?.colNames ?? [],
|
|
833
|
+
rows: Q.value?.bodyA11y ?? []
|
|
834
834
|
}));
|
|
835
835
|
return Oe({
|
|
836
|
-
getData:
|
|
836
|
+
getData: xr,
|
|
837
837
|
getImage: Mr,
|
|
838
838
|
generatePdf: Jn,
|
|
839
|
-
generateCsv:
|
|
839
|
+
generateCsv: Sr,
|
|
840
840
|
generateImage: Yn,
|
|
841
841
|
generateSvg: Br,
|
|
842
|
-
hideSeries:
|
|
843
|
-
showSeries:
|
|
844
|
-
toggleTable:
|
|
842
|
+
hideSeries: br,
|
|
843
|
+
showSeries: yr,
|
|
844
|
+
toggleTable: wr,
|
|
845
845
|
toggleAnnotator: Er,
|
|
846
|
-
toggleFullscreen:
|
|
846
|
+
toggleFullscreen: Cr,
|
|
847
847
|
copyAlt: Hr
|
|
848
848
|
}), (e, r) => (x(), m("div", {
|
|
849
849
|
ref_key: "donutEvolutionChart",
|
|
850
850
|
ref: P,
|
|
851
|
-
class: v(`vue-data-ui-component vue-ui-donut-evolution ${
|
|
852
|
-
style: b(`font-family:${
|
|
851
|
+
class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
852
|
+
style: b(`font-family:${I.value.style.fontFamily};width:100%; text-align:center;background:${I.value.style.chart.backgroundColor}`),
|
|
853
853
|
id: k.value,
|
|
854
|
-
onMouseenter: r[5] ||= () => E(
|
|
855
|
-
onMouseleave: r[6] ||= () => E(
|
|
854
|
+
onMouseenter: r[5] ||= () => E(Un)(!0),
|
|
855
|
+
onMouseleave: r[6] ||= () => E(Un)(!1)
|
|
856
856
|
}, [
|
|
857
857
|
h("div", {
|
|
858
858
|
id: `chart-instructions-${k.value}`,
|
|
859
859
|
class: "sr-only"
|
|
860
|
-
}, [h("p", null, T(
|
|
860
|
+
}, [h("p", null, T(I.value.a11y.translations.keyboardNavigation), 1)], 8, $e),
|
|
861
861
|
Kr.value?.rows?.length ? (x(), f(Me, {
|
|
862
862
|
key: 0,
|
|
863
863
|
uid: k.value,
|
|
864
864
|
head: Kr.value.headers,
|
|
865
865
|
body: Kr.value.rows,
|
|
866
|
-
notice:
|
|
867
|
-
caption:
|
|
866
|
+
notice: I.value.a11y.translations.tableAvailable,
|
|
867
|
+
caption: I.value.a11y.translations.tableCaption
|
|
868
868
|
}, null, 8, [
|
|
869
869
|
"uid",
|
|
870
870
|
"head",
|
|
@@ -872,13 +872,13 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
872
872
|
"notice",
|
|
873
873
|
"caption"
|
|
874
874
|
])) : p("", !0),
|
|
875
|
-
|
|
875
|
+
I.value.userOptions.buttons.annotator ? (x(), f(E(Xt), {
|
|
876
876
|
key: 1,
|
|
877
|
-
svgRef: E(
|
|
878
|
-
backgroundColor:
|
|
879
|
-
color:
|
|
880
|
-
active:
|
|
881
|
-
isCursorPointer:
|
|
877
|
+
svgRef: E(B),
|
|
878
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
879
|
+
color: I.value.style.chart.color,
|
|
880
|
+
active: Tr.value,
|
|
881
|
+
isCursorPointer: L.value,
|
|
882
882
|
onClose: Er
|
|
883
883
|
}, {
|
|
884
884
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
@@ -902,10 +902,10 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
902
902
|
class: "vue-data-ui-no-title-space",
|
|
903
903
|
style: "height:36px; width: 100%;background:transparent"
|
|
904
904
|
}, null, 512)) : p("", !0),
|
|
905
|
-
|
|
905
|
+
I.value.style.chart.title.text ? (x(), m("div", {
|
|
906
906
|
key: 3,
|
|
907
907
|
ref_key: "chartTitle",
|
|
908
|
-
ref:
|
|
908
|
+
ref: bn,
|
|
909
909
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
910
910
|
onMouseleave: ur
|
|
911
911
|
}, [(x(), f(De, {
|
|
@@ -913,50 +913,50 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
913
913
|
config: {
|
|
914
914
|
title: {
|
|
915
915
|
cy: "donut-evolution-div-title",
|
|
916
|
-
...
|
|
916
|
+
...I.value.style.chart.title
|
|
917
917
|
},
|
|
918
918
|
subtitle: {
|
|
919
919
|
cy: "donut-evolution-div-subtitle",
|
|
920
|
-
...
|
|
920
|
+
...I.value.style.chart.title.subtitle
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
}, null, 8, ["config"]))], 544)) : p("", !0),
|
|
924
924
|
h("div", { id: `legend-top-${k.value}` }, null, 8, et),
|
|
925
|
-
|
|
925
|
+
I.value.userOptions.show && jn.value && (E(Wn) || E(Hn)) ? (x(), f(E(Zt), {
|
|
926
926
|
ref_key: "userOptionsRef",
|
|
927
|
-
ref:
|
|
927
|
+
ref: _n,
|
|
928
928
|
key: `user_options_${on.value}`,
|
|
929
|
-
backgroundColor:
|
|
930
|
-
color:
|
|
929
|
+
backgroundColor: I.value.style.chart.backgroundColor,
|
|
930
|
+
color: I.value.style.chart.color,
|
|
931
931
|
isPrinting: E(Kn),
|
|
932
932
|
isImaging: E(qn),
|
|
933
933
|
uid: k.value,
|
|
934
|
-
hasPdf:
|
|
935
|
-
hasImg:
|
|
936
|
-
hasSvg:
|
|
937
|
-
hasXls:
|
|
938
|
-
hasTable:
|
|
939
|
-
hasFullscreen:
|
|
940
|
-
hasAltCopy:
|
|
941
|
-
isFullscreen:
|
|
942
|
-
titles: { ...
|
|
934
|
+
hasPdf: I.value.userOptions.buttons.pdf,
|
|
935
|
+
hasImg: I.value.userOptions.buttons.img,
|
|
936
|
+
hasSvg: I.value.userOptions.buttons.svg,
|
|
937
|
+
hasXls: I.value.userOptions.buttons.csv,
|
|
938
|
+
hasTable: I.value.userOptions.buttons.table,
|
|
939
|
+
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
940
|
+
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
941
|
+
isFullscreen: $.value,
|
|
942
|
+
titles: { ...I.value.userOptions.buttonTitles },
|
|
943
943
|
chartElement: P.value,
|
|
944
|
-
position:
|
|
945
|
-
hasAnnotator:
|
|
946
|
-
isAnnotation:
|
|
947
|
-
callbacks:
|
|
948
|
-
printScale:
|
|
949
|
-
tableDialog:
|
|
950
|
-
isCursorPointer:
|
|
951
|
-
onToggleFullscreen:
|
|
944
|
+
position: I.value.userOptions.position,
|
|
945
|
+
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
946
|
+
isAnnotation: Tr.value,
|
|
947
|
+
callbacks: I.value.userOptions.callbacks,
|
|
948
|
+
printScale: I.value.userOptions.print.scale,
|
|
949
|
+
tableDialog: I.value.table.useDialog,
|
|
950
|
+
isCursorPointer: L.value,
|
|
951
|
+
onToggleFullscreen: Cr,
|
|
952
952
|
onGeneratePdf: E(Jn),
|
|
953
|
-
onGenerateCsv:
|
|
953
|
+
onGenerateCsv: Sr,
|
|
954
954
|
onGenerateImage: Vr,
|
|
955
955
|
onGenerateSvg: Br,
|
|
956
|
-
onToggleTable:
|
|
956
|
+
onToggleTable: wr,
|
|
957
957
|
onToggleAnnotator: Er,
|
|
958
958
|
onCopyAlt: Hr,
|
|
959
|
-
style: b({ visibility: E(
|
|
959
|
+
style: b({ visibility: E(Wn) ? E(Hn) ? "visible" : "hidden" : "visible" })
|
|
960
960
|
}, ze({ _: 2 }, [
|
|
961
961
|
e.$slots.menuIcon ? {
|
|
962
962
|
name: "menuIcon",
|
|
@@ -1050,15 +1050,15 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1050
1050
|
])) : p("", !0),
|
|
1051
1051
|
h("div", tt, [(x(), m("svg", {
|
|
1052
1052
|
ref_key: "svgRef",
|
|
1053
|
-
ref:
|
|
1053
|
+
ref: B,
|
|
1054
1054
|
xmlns: E(fe),
|
|
1055
1055
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1056
1056
|
class: v({
|
|
1057
|
-
"vue-data-ui-fullscreen--on":
|
|
1058
|
-
"vue-data-ui-fulscreen--off":
|
|
1057
|
+
"vue-data-ui-fullscreen--on": $.value,
|
|
1058
|
+
"vue-data-ui-fulscreen--off": !$.value
|
|
1059
1059
|
}),
|
|
1060
1060
|
viewBox: `0 0 ${W.value.absoluteWidth} ${W.value.absoluteHeight}`,
|
|
1061
|
-
style: b(`max-width:100%; overflow: visible; background:transparent;color:${
|
|
1061
|
+
style: b(`max-width:100%; overflow: visible; background:transparent;color:${I.value.style.chart.color};`),
|
|
1062
1062
|
tabindex: "0",
|
|
1063
1063
|
onFocus: Ur,
|
|
1064
1064
|
onBlur: Wr,
|
|
@@ -1081,14 +1081,14 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1081
1081
|
y2: "100%"
|
|
1082
1082
|
}, [h("stop", {
|
|
1083
1083
|
offset: "0%",
|
|
1084
|
-
"stop-color": E(se)(
|
|
1084
|
+
"stop-color": E(se)(I.value.style.chart.backgroundColor, I.value.style.chart.layout.highlighter.opacity)
|
|
1085
1085
|
}, null, 8, at), h("stop", {
|
|
1086
1086
|
offset: "100%",
|
|
1087
|
-
"stop-color": E(se)(
|
|
1087
|
+
"stop-color": E(se)(I.value.style.chart.layout.highlighter.color, I.value.style.chart.layout.highlighter.opacity)
|
|
1088
1088
|
}, null, 8, ot)], 8, it), h("radialGradient", { id: `focus_${k.value}` }, [
|
|
1089
1089
|
h("stop", {
|
|
1090
1090
|
offset: "0%",
|
|
1091
|
-
"stop-color": E(se)(E(he)(
|
|
1091
|
+
"stop-color": E(se)(E(he)(I.value.style.chart.backgroundColor), 0)
|
|
1092
1092
|
}, null, 8, ct),
|
|
1093
1093
|
h("stop", {
|
|
1094
1094
|
offset: "77%",
|
|
@@ -1096,17 +1096,17 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1096
1096
|
}, null, 8, lt),
|
|
1097
1097
|
h("stop", {
|
|
1098
1098
|
offset: "100%",
|
|
1099
|
-
"stop-color": E(se)(E(he)(
|
|
1099
|
+
"stop-color": E(se)(E(he)(I.value.style.chart.backgroundColor), 0)
|
|
1100
1100
|
}, null, 8, ut)
|
|
1101
1101
|
], 8, st)]),
|
|
1102
|
-
|
|
1102
|
+
I.value.style.chart.layout.grid.show ? (x(), m("g", dt, [
|
|
1103
1103
|
h("line", {
|
|
1104
1104
|
x1: U.value ? W.value.right : W.value.left,
|
|
1105
1105
|
x2: U.value ? W.value.right : W.value.left,
|
|
1106
1106
|
y1: W.value.top,
|
|
1107
1107
|
y2: W.value.top + W.value.height,
|
|
1108
|
-
stroke:
|
|
1109
|
-
"stroke-width":
|
|
1108
|
+
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1109
|
+
"stroke-width": I.value.style.chart.layout.grid.strokeWidth,
|
|
1110
1110
|
"stroke-linecap": "round"
|
|
1111
1111
|
}, null, 8, ft),
|
|
1112
1112
|
h("line", {
|
|
@@ -1114,40 +1114,40 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1114
1114
|
x2: W.value.right,
|
|
1115
1115
|
y1: W.value.bottom,
|
|
1116
1116
|
y2: W.value.bottom,
|
|
1117
|
-
stroke:
|
|
1118
|
-
"stroke-width":
|
|
1117
|
+
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1118
|
+
"stroke-width": I.value.style.chart.layout.grid.strokeWidth,
|
|
1119
1119
|
"stroke-linecap": "round"
|
|
1120
1120
|
}, null, 8, pt),
|
|
1121
|
-
|
|
1121
|
+
I.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", mt, [(x(!0), m(u, null, C(z.value.end - z.value.start, (e, t) => (x(), m("line", {
|
|
1122
1122
|
x1: W.value.left + (t + 1) * J.value,
|
|
1123
1123
|
x2: W.value.left + (t + 1) * J.value,
|
|
1124
1124
|
y1: W.value.top,
|
|
1125
1125
|
y2: W.value.bottom,
|
|
1126
|
-
stroke:
|
|
1127
|
-
"stroke-width":
|
|
1126
|
+
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1127
|
+
"stroke-width": I.value.style.chart.layout.grid.strokeWidth,
|
|
1128
1128
|
"stroke-linecap": "round"
|
|
1129
1129
|
}, null, 8, ht))), 256))])) : p("", !0)
|
|
1130
1130
|
])) : p("", !0),
|
|
1131
|
-
h("g", null, [
|
|
1131
|
+
h("g", null, [I.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
|
|
1132
1132
|
key: 0,
|
|
1133
1133
|
ref_key: "yAxisLabel",
|
|
1134
1134
|
ref: mn,
|
|
1135
|
-
"font-size":
|
|
1136
|
-
fill:
|
|
1137
|
-
transform: `translate(${U.value ? W.value.absoluteWidth -
|
|
1135
|
+
"font-size": I.value.style.chart.layout.grid.axis.fontSize,
|
|
1136
|
+
fill: I.value.style.chart.layout.grid.axis.color,
|
|
1137
|
+
transform: `translate(${U.value ? W.value.absoluteWidth - I.value.style.chart.layout.grid.axis.fontSize / 2 - I.value.style.chart.layout.grid.axis.yLabelOffsetX : I.value.style.chart.layout.grid.axis.fontSize}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
|
|
1138
1138
|
"text-anchor": "middle",
|
|
1139
1139
|
style: { transition: "none" }
|
|
1140
|
-
}, T(
|
|
1140
|
+
}, T(I.value.style.chart.layout.grid.axis.yLabel), 9, gt)) : p("", !0), I.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
|
|
1141
1141
|
key: 1,
|
|
1142
1142
|
ref_key: "xAxisLabel",
|
|
1143
1143
|
ref: pn,
|
|
1144
1144
|
"text-anchor": "middle",
|
|
1145
1145
|
x: W.value.absoluteWidth / 2,
|
|
1146
1146
|
y: W.value.absoluteHeight - 3,
|
|
1147
|
-
"font-size":
|
|
1148
|
-
fill:
|
|
1149
|
-
}, T(
|
|
1150
|
-
|
|
1147
|
+
"font-size": I.value.style.chart.layout.grid.axis.fontSize,
|
|
1148
|
+
fill: I.value.style.chart.layout.grid.axis.color
|
|
1149
|
+
}, T(I.value.style.chart.layout.grid.axis.xLabel), 9, _t)) : p("", !0)]),
|
|
1150
|
+
I.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
|
|
1151
1151
|
key: 2,
|
|
1152
1152
|
ref_key: "scaleLabels",
|
|
1153
1153
|
ref: dn,
|
|
@@ -1161,53 +1161,53 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1161
1161
|
x2: U.value ? W.value.right + 5 : W.value.left - 5,
|
|
1162
1162
|
y1: e.y,
|
|
1163
1163
|
y2: e.y,
|
|
1164
|
-
stroke:
|
|
1165
|
-
"stroke-width":
|
|
1164
|
+
stroke: I.value.style.chart.layout.grid.stroke,
|
|
1165
|
+
"stroke-width": I.value.style.chart.layout.grid.strokeWidth
|
|
1166
1166
|
}, null, 8, vt)) : p("", !0), e.value >= Y.value.min && e.value <= Y.value.max ? (x(), m("text", {
|
|
1167
1167
|
key: 1,
|
|
1168
|
-
x: U.value ? W.value.right -
|
|
1169
|
-
y: e.y +
|
|
1170
|
-
"font-size":
|
|
1168
|
+
x: U.value ? W.value.right - I.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : W.value.left + I.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7,
|
|
1169
|
+
y: e.y + I.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3,
|
|
1170
|
+
"font-size": I.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
1171
1171
|
"text-anchor": U.value ? "start" : "end",
|
|
1172
|
-
fill:
|
|
1173
|
-
"font-weight":
|
|
1174
|
-
}, T(E(te)(e.value) ? E(oe)(
|
|
1175
|
-
p:
|
|
1172
|
+
fill: I.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1173
|
+
"font-weight": I.value.style.chart.layout.grid.yAxis.dataLabels.bold ? "bold" : "normal"
|
|
1174
|
+
}, T(E(te)(e.value) ? E(oe)(I.value.style.chart.layout.dataLabels.formatter, e.value, E(n)({
|
|
1175
|
+
p: I.value.style.chart.layout.dataLabels.prefix,
|
|
1176
1176
|
v: e.value,
|
|
1177
|
-
s:
|
|
1178
|
-
r:
|
|
1177
|
+
s: I.value.style.chart.layout.dataLabels.suffix,
|
|
1178
|
+
r: I.value.style.chart.layout.grid.yAxis.dataLabels.roundingValue
|
|
1179
1179
|
}), {
|
|
1180
1180
|
datapoint: e,
|
|
1181
1181
|
seriesIndex: t
|
|
1182
1182
|
}) : ""), 9, yt)) : p("", !0)]))), 256))], 2)) : p("", !0),
|
|
1183
|
-
|
|
1183
|
+
I.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
|
|
1184
1184
|
key: 3,
|
|
1185
1185
|
ref_key: "timeLabelsEls",
|
|
1186
1186
|
ref: fn,
|
|
1187
1187
|
class: v({ "donut-opacity": !0 })
|
|
1188
|
-
}, [(x(!0), m(u, null, C(
|
|
1188
|
+
}, [(x(!0), m(u, null, C(z.value.end - z.value.start, (e, n) => (x(), m("g", null, [(I.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (n === 0 || n === K.value - 1) || !I.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && q.value[n] && q.value[n].text ? (x(), m("g", bt, [String(q.value[n].text).includes("\n") ? (x(), m("text", {
|
|
1189
1189
|
key: 1,
|
|
1190
1190
|
class: "vue-data-ui-time-label",
|
|
1191
|
-
"text-anchor":
|
|
1192
|
-
"font-size":
|
|
1193
|
-
fill:
|
|
1194
|
-
transform: `translate(${W.value.left + J.value * n + J.value / 2}, ${W.value.bottom +
|
|
1191
|
+
"text-anchor": I.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : I.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1192
|
+
"font-size": I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1193
|
+
fill: I.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1194
|
+
transform: `translate(${W.value.left + J.value * n + J.value / 2}, ${W.value.bottom + I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + I.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${I.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`,
|
|
1195
1195
|
innerHTML: E(t)({
|
|
1196
1196
|
content: String(q.value[n].text),
|
|
1197
|
-
fontSize:
|
|
1198
|
-
fill:
|
|
1197
|
+
fontSize: I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1198
|
+
fill: I.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1199
1199
|
x: 0,
|
|
1200
1200
|
y: 0
|
|
1201
1201
|
})
|
|
1202
1202
|
}, null, 8, St)) : (x(), m("text", {
|
|
1203
1203
|
key: 0,
|
|
1204
1204
|
class: "vue-data-ui-time-label",
|
|
1205
|
-
"text-anchor":
|
|
1206
|
-
"font-size":
|
|
1207
|
-
fill:
|
|
1208
|
-
transform: `translate(${W.value.left + J.value * n + J.value / 2}, ${W.value.bottom +
|
|
1205
|
+
"text-anchor": I.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : I.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1206
|
+
"font-size": I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1207
|
+
fill: I.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1208
|
+
transform: `translate(${W.value.left + J.value * n + J.value / 2}, ${W.value.bottom + I.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + I.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${I.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
1209
1209
|
}, T(q.value[n].text || ""), 9, xt))])) : p("", !0)]))), 256))], 512)) : p("", !0),
|
|
1210
|
-
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", null, [
|
|
1210
|
+
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", null, [I.value.style.chart.layout.line.show && t < X.value.length - 1 && ![e.subtotal, X.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
|
|
1211
1211
|
key: 0,
|
|
1212
1212
|
class: v({
|
|
1213
1213
|
"donut-opacity": !0,
|
|
@@ -1217,8 +1217,8 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1217
1217
|
y1: e.y,
|
|
1218
1218
|
x2: X.value[t + 1].x,
|
|
1219
1219
|
y2: X.value[t + 1].y,
|
|
1220
|
-
stroke:
|
|
1221
|
-
"stroke-width":
|
|
1220
|
+
stroke: I.value.style.chart.layout.line.stroke,
|
|
1221
|
+
"stroke-width": I.value.style.chart.layout.line.strokeWidth,
|
|
1222
1222
|
"stroke-linecap": "round",
|
|
1223
1223
|
"stroke-linejoin": "round"
|
|
1224
1224
|
}, null, 10, Ct)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", wt, [e.subtotal ? (x(), m("circle", {
|
|
@@ -1226,7 +1226,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1226
1226
|
cx: e.x,
|
|
1227
1227
|
cy: e.y,
|
|
1228
1228
|
r: e.activeRadius,
|
|
1229
|
-
fill:
|
|
1229
|
+
fill: I.value.style.chart.backgroundColor
|
|
1230
1230
|
}, null, 8, Tt)) : p("", !0)]))]))), 256)),
|
|
1231
1231
|
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", { class: v({
|
|
1232
1232
|
"donut-opacity": !0,
|
|
@@ -1253,7 +1253,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1253
1253
|
"text-anchor": E(pe)(t, !0, 0).anchor,
|
|
1254
1254
|
x: E(pe)(t, !0, 9).x,
|
|
1255
1255
|
y: E(re)(t, 14, 10),
|
|
1256
|
-
fill:
|
|
1256
|
+
fill: I.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1257
1257
|
"font-size": 8,
|
|
1258
1258
|
"font-weight": "bold"
|
|
1259
1259
|
}, T(t.name) + ": " + T(lr(t, e.donut)) + " (" + T(t.value === null ? "-" : cr(t.value, t, n)) + ") ", 9, kt)) : p("", !0)]))), 256)),
|
|
@@ -1261,7 +1261,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1261
1261
|
cx: e.x,
|
|
1262
1262
|
cy: e.y,
|
|
1263
1263
|
r: e.hoverRadius,
|
|
1264
|
-
fill:
|
|
1264
|
+
fill: I.value.style.chart.backgroundColor
|
|
1265
1265
|
}, null, 8, At)])
|
|
1266
1266
|
])) : p("", !0)])) : p("", !0)], 2))), 256)),
|
|
1267
1267
|
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", { class: v({
|
|
@@ -1272,29 +1272,29 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1272
1272
|
cx: e.x,
|
|
1273
1273
|
cy: e.y,
|
|
1274
1274
|
r: 3,
|
|
1275
|
-
fill:
|
|
1275
|
+
fill: I.value.style.chart.color
|
|
1276
1276
|
}, null, 8, Mt)) : j.value !== null && j.value === t ? (x(), m("g", Nt, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
|
|
1277
1277
|
d: e.arcSlice,
|
|
1278
1278
|
fill: `${e.color}`,
|
|
1279
1279
|
"stroke-width": 1,
|
|
1280
|
-
stroke:
|
|
1280
|
+
stroke: I.value.style.chart.backgroundColor
|
|
1281
1281
|
}, null, 8, Pt))), 256))])) : (x(), m("g", Ft, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
|
|
1282
1282
|
d: e.arcSlice,
|
|
1283
1283
|
fill: `${e.color}`,
|
|
1284
1284
|
"stroke-width": .5,
|
|
1285
|
-
stroke:
|
|
1285
|
+
stroke: I.value.style.chart.backgroundColor
|
|
1286
1286
|
}, null, 8, It))), 256))]))]))], 2))), 256)),
|
|
1287
1287
|
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("g", { class: v({
|
|
1288
1288
|
"donut-opacity": !0,
|
|
1289
1289
|
"donut-behind": t !== j.value && j.value !== null || rn.value && t !== N.value.index
|
|
1290
|
-
}) }, [e.subtotal !== null &&
|
|
1290
|
+
}) }, [e.subtotal !== null && I.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
|
|
1291
1291
|
key: 0,
|
|
1292
1292
|
"text-anchor": "middle",
|
|
1293
1293
|
x: e.x,
|
|
1294
|
-
y: j.value === e.index && e.subtotal ? e.y +
|
|
1295
|
-
"font-size":
|
|
1294
|
+
y: j.value === e.index && e.subtotal ? e.y + I.value.style.chart.layout.dataLabels.fontSize / 3 : e.y - e.radius - I.value.style.chart.layout.dataLabels.fontSize + I.value.style.chart.layout.dataLabels.offsetY,
|
|
1295
|
+
"font-size": I.value.style.chart.layout.dataLabels.fontSize,
|
|
1296
1296
|
"font-weight": "bold",
|
|
1297
|
-
fill:
|
|
1297
|
+
fill: I.value.style.chart.layout.dataLabels.color
|
|
1298
1298
|
}, T(cr(e.subtotal, e, t)), 9, Lt)) : p("", !0)], 2))), 256)),
|
|
1299
1299
|
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("rect", {
|
|
1300
1300
|
x: W.value.left + t * J.value,
|
|
@@ -1302,7 +1302,7 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1302
1302
|
width: J.value,
|
|
1303
1303
|
height: W.value.height,
|
|
1304
1304
|
fill: [j.value, fr.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
|
|
1305
|
-
class: v({ "donut-hover":
|
|
1305
|
+
class: v({ "donut-hover": L.value && e.subtotal && [j.value, fr.value].includes(e.index) }),
|
|
1306
1306
|
style: { pointerEvents: "none" }
|
|
1307
1307
|
}, null, 10, Rt))), 256)),
|
|
1308
1308
|
(x(!0), m(u, null, C(X.value, (e, t) => (x(), m("rect", {
|
|
@@ -1315,53 +1315,53 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1315
1315
|
onMouseenter: (t) => dr(e),
|
|
1316
1316
|
onMouseleave: (t) => ur(e),
|
|
1317
1317
|
onClick: (n) => pr(e, t),
|
|
1318
|
-
class: v({ "donut-hover":
|
|
1318
|
+
class: v({ "donut-hover": L.value && j.value === e.index && e.subtotal })
|
|
1319
1319
|
}, null, 42, zt))), 256)),
|
|
1320
1320
|
w(e.$slots, "svg", { svg: {
|
|
1321
1321
|
...W.value,
|
|
1322
|
-
isPrintingImg: E(Kn) || E(qn) ||
|
|
1323
|
-
isPrintingSvg:
|
|
1322
|
+
isPrintingImg: E(Kn) || E(qn) || vn.value,
|
|
1323
|
+
isPrintingSvg: yn.value
|
|
1324
1324
|
} }, void 0, !0)
|
|
1325
1325
|
], 46, nt)), e.$slots.hint ? (x(), m("div", Bt, [w(e.$slots, "hint", y(_({
|
|
1326
|
-
hint:
|
|
1327
|
-
isVisible:
|
|
1326
|
+
hint: I.value.a11y.translations.keyboardNavigation,
|
|
1327
|
+
isVisible: kn.value
|
|
1328
1328
|
})), void 0, !0)])) : p("", !0)]),
|
|
1329
|
-
e.$slots.watermark ? (x(), m("div", Vt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Kn) || E(qn) ||
|
|
1329
|
+
e.$slots.watermark ? (x(), m("div", Vt, [w(e.$slots, "watermark", y(_({ isPrinting: E(Kn) || E(qn) || vn.value || yn.value })), void 0, !0)])) : p("", !0),
|
|
1330
1330
|
h("div", {
|
|
1331
1331
|
ref_key: "chartSlicer",
|
|
1332
|
-
ref:
|
|
1333
|
-
style: b(`width:100%;background:${
|
|
1332
|
+
ref: wn,
|
|
1333
|
+
style: b(`width:100%;background:${I.value.style.chart.backgroundColor}`),
|
|
1334
1334
|
"data-dom-to-png-ignore": ""
|
|
1335
|
-
}, [K.value > 1 &&
|
|
1335
|
+
}, [K.value > 1 && I.value.style.chart.zoom.show ? (x(), f(Le, {
|
|
1336
1336
|
ref_key: "slicerComponent",
|
|
1337
|
-
ref:
|
|
1337
|
+
ref: Cn,
|
|
1338
1338
|
key: `slicer_${sn.value}`,
|
|
1339
|
-
background:
|
|
1340
|
-
borderColor:
|
|
1341
|
-
fontSize:
|
|
1342
|
-
useResetSlot:
|
|
1339
|
+
background: I.value.style.chart.zoom.color,
|
|
1340
|
+
borderColor: I.value.style.chart.backgroundColor,
|
|
1341
|
+
fontSize: I.value.style.chart.zoom.fontSize,
|
|
1342
|
+
useResetSlot: I.value.style.chart.zoom.useResetSlot,
|
|
1343
1343
|
labelLeft: q.value[0] ? q.value[0].text : "",
|
|
1344
1344
|
labelRight: q.value.at(-1) ? q.value.at(-1).text : "",
|
|
1345
|
-
textColor:
|
|
1346
|
-
inputColor:
|
|
1347
|
-
selectColor:
|
|
1345
|
+
textColor: I.value.style.chart.color,
|
|
1346
|
+
inputColor: I.value.style.chart.zoom.color,
|
|
1347
|
+
selectColor: I.value.style.chart.zoom.highlightColor,
|
|
1348
1348
|
max: K.value,
|
|
1349
1349
|
min: 0,
|
|
1350
|
-
valueStart:
|
|
1351
|
-
valueEnd:
|
|
1352
|
-
start:
|
|
1353
|
-
"onUpdate:start": r[0] ||= (e) =>
|
|
1354
|
-
end:
|
|
1355
|
-
"onUpdate:end": r[1] ||= (e) =>
|
|
1356
|
-
refreshStartPoint:
|
|
1357
|
-
refreshEndPoint:
|
|
1358
|
-
enableRangeHandles:
|
|
1359
|
-
enableSelectionDrag:
|
|
1360
|
-
focusOnDrag:
|
|
1361
|
-
focusRangeRatio:
|
|
1362
|
-
isCursorPointer:
|
|
1363
|
-
maxWidth:
|
|
1364
|
-
onReset:
|
|
1350
|
+
valueStart: z.value.start,
|
|
1351
|
+
valueEnd: z.value.end,
|
|
1352
|
+
start: z.value.start,
|
|
1353
|
+
"onUpdate:start": r[0] ||= (e) => z.value.start = e,
|
|
1354
|
+
end: z.value.end,
|
|
1355
|
+
"onUpdate:end": r[1] ||= (e) => z.value.end = e,
|
|
1356
|
+
refreshStartPoint: I.value.style.chart.zoom.startIndex === null ? 0 : I.value.style.chart.zoom.startIndex,
|
|
1357
|
+
refreshEndPoint: I.value.style.chart.zoom.endIndex === null ? K.value : I.value.style.chart.zoom.endIndex + 1,
|
|
1358
|
+
enableRangeHandles: I.value.style.chart.zoom.enableRangeHandles,
|
|
1359
|
+
enableSelectionDrag: I.value.style.chart.zoom.enableSelectionDrag,
|
|
1360
|
+
focusOnDrag: I.value.style.chart.zoom.focusOnDrag,
|
|
1361
|
+
focusRangeRatio: I.value.style.chart.zoom.focusRangeRatio,
|
|
1362
|
+
isCursorPointer: L.value,
|
|
1363
|
+
maxWidth: I.value.style.chart.zoom.maxWidth,
|
|
1364
|
+
onReset: zn
|
|
1365
1365
|
}, {
|
|
1366
1366
|
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
|
|
1367
1367
|
_: 3
|
|
@@ -1390,29 +1390,29 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1390
1390
|
"maxWidth"
|
|
1391
1391
|
])) : p("", !0)], 4),
|
|
1392
1392
|
h("div", { id: `legend-bottom-${k.value}` }, null, 8, Ht),
|
|
1393
|
-
hn.value && (
|
|
1393
|
+
hn.value && (I.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Re, {
|
|
1394
1394
|
key: 6,
|
|
1395
|
-
to:
|
|
1395
|
+
to: I.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1396
1396
|
}, [h("div", {
|
|
1397
1397
|
ref_key: "chartLegend",
|
|
1398
|
-
ref:
|
|
1399
|
-
}, [w(e.$slots, "legend", { legend:
|
|
1398
|
+
ref: xn
|
|
1399
|
+
}, [w(e.$slots, "legend", { legend: Z.value }, () => [I.value.style.chart.legend.show ? (x(), f(Fe, {
|
|
1400
1400
|
key: `legend_${un.value}`,
|
|
1401
|
-
legendSet:
|
|
1402
|
-
config:
|
|
1403
|
-
onClickMarker: r[2] ||= ({ legend: e }) =>
|
|
1401
|
+
legendSet: Z.value,
|
|
1402
|
+
config: hr.value,
|
|
1403
|
+
onClickMarker: r[2] ||= ({ legend: e }) => _r(e.uid)
|
|
1404
1404
|
}, {
|
|
1405
1405
|
item: D(({ legend: e, index: t }) => [h("div", {
|
|
1406
|
-
onClick: (t) =>
|
|
1406
|
+
onClick: (t) => _r(e.uid),
|
|
1407
1407
|
style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
|
|
1408
1408
|
}, T(e.display), 13, Ut)]),
|
|
1409
|
-
legendToggle: D(() => [
|
|
1409
|
+
legendToggle: D(() => [Z.value.length > 2 && I.value.style.chart.legend.selectAllToggle.show && !E(Fn) ? (x(), f(je, {
|
|
1410
1410
|
key: 0,
|
|
1411
|
-
backgroundColor:
|
|
1412
|
-
color:
|
|
1413
|
-
fontSize:
|
|
1411
|
+
backgroundColor: I.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1412
|
+
color: I.value.style.chart.legend.selectAllToggle.color,
|
|
1413
|
+
fontSize: I.value.style.chart.legend.fontSize,
|
|
1414
1414
|
checked: A.value.length > 0,
|
|
1415
|
-
onToggle:
|
|
1415
|
+
onToggle: gr
|
|
1416
1416
|
}, null, 8, [
|
|
1417
1417
|
"backgroundColor",
|
|
1418
1418
|
"color",
|
|
@@ -1424,27 +1424,27 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1424
1424
|
e.$slots.source ? (x(), m("div", {
|
|
1425
1425
|
key: 7,
|
|
1426
1426
|
ref_key: "source",
|
|
1427
|
-
ref:
|
|
1427
|
+
ref: Sn,
|
|
1428
1428
|
dir: "auto"
|
|
1429
1429
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1430
|
-
|
|
1430
|
+
jn.value && I.value.userOptions.buttons.table ? (x(), f(Ke(Nr.value.component), He({ key: 8 }, Nr.value.props, {
|
|
1431
1431
|
ref_key: "tableUnit",
|
|
1432
|
-
ref:
|
|
1432
|
+
ref: gn,
|
|
1433
1433
|
onClose: Pr
|
|
1434
1434
|
}), ze({
|
|
1435
1435
|
content: D(() => [(x(), f(E(Jt), {
|
|
1436
1436
|
key: `table_${ln.value}`,
|
|
1437
|
-
colNames:
|
|
1438
|
-
head:
|
|
1439
|
-
body:
|
|
1440
|
-
config:
|
|
1441
|
-
title:
|
|
1442
|
-
withCloseButton: !
|
|
1443
|
-
isCursorPointer:
|
|
1437
|
+
colNames: Q.value.colNames,
|
|
1438
|
+
head: Q.value.head,
|
|
1439
|
+
body: Q.value.body,
|
|
1440
|
+
config: Q.value.config,
|
|
1441
|
+
title: I.value.table.useDialog ? "" : Nr.value.title,
|
|
1442
|
+
withCloseButton: !I.value.table.useDialog,
|
|
1443
|
+
isCursorPointer: L.value,
|
|
1444
1444
|
onClose: Pr
|
|
1445
1445
|
}, {
|
|
1446
1446
|
th: D(({ th: e }) => [Be(T(e.name ?? e), 1)]),
|
|
1447
|
-
td: D(({ td: e }) => [e.value === null ? (x(), m("span", Wt, "-")) : (x(), m("b", Gt, T(isNaN(e.value) ? "" :
|
|
1447
|
+
td: D(({ td: e }) => [e.value === null ? (x(), m("span", Wt, "-")) : (x(), m("b", Gt, T(isNaN(e.value) ? "" : I.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(I.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : I.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(I.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
|
|
1448
1448
|
_: 1
|
|
1449
1449
|
}, 8, [
|
|
1450
1450
|
"colNames",
|
|
@@ -1456,35 +1456,35 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1456
1456
|
"isCursorPointer"
|
|
1457
1457
|
]))]),
|
|
1458
1458
|
_: 2
|
|
1459
|
-
}, [
|
|
1459
|
+
}, [I.value.table.useDialog ? {
|
|
1460
1460
|
name: "title",
|
|
1461
1461
|
fn: D(() => [Be(T(Nr.value.title), 1)]),
|
|
1462
1462
|
key: "0"
|
|
1463
|
-
} : void 0,
|
|
1463
|
+
} : void 0, I.value.table.useDialog ? {
|
|
1464
1464
|
name: "actions",
|
|
1465
1465
|
fn: D(() => [h("button", {
|
|
1466
1466
|
tabindex: "0",
|
|
1467
1467
|
class: "vue-ui-user-options-button",
|
|
1468
|
-
onClick: r[3] ||= (e) =>
|
|
1469
|
-
style: b({ cursor:
|
|
1468
|
+
onClick: r[3] ||= (e) => Sr(I.value.userOptions.callbacks.csv),
|
|
1469
|
+
style: b({ cursor: L.value ? "cursor" : "default" })
|
|
1470
1470
|
}, [Ve(E(qt), {
|
|
1471
1471
|
name: "fileCsv",
|
|
1472
1472
|
stroke: Nr.value.props.color
|
|
1473
1473
|
}, null, 8, ["stroke"])], 4)]),
|
|
1474
1474
|
key: "1"
|
|
1475
1475
|
} : void 0]), 1040)) : p("", !0),
|
|
1476
|
-
|
|
1476
|
+
I.value.style.chart.dialog.show ? (x(), f(E($t), {
|
|
1477
1477
|
key: 9,
|
|
1478
1478
|
ref_key: "dialog",
|
|
1479
1479
|
ref: Ar,
|
|
1480
1480
|
onClose: r[4] ||= (e) => {
|
|
1481
1481
|
N.value = null, rn.value = !1, M.value = null, j.value = null, fr.value = null;
|
|
1482
1482
|
},
|
|
1483
|
-
backgroundColor:
|
|
1484
|
-
color:
|
|
1485
|
-
headerBg:
|
|
1486
|
-
headerColor:
|
|
1487
|
-
isFullscreen:
|
|
1483
|
+
backgroundColor: I.value.style.chart.dialog.backgroundColor,
|
|
1484
|
+
color: I.value.style.chart.dialog.color,
|
|
1485
|
+
headerBg: I.value.style.chart.dialog.header.backgroundColor,
|
|
1486
|
+
headerColor: I.value.style.chart.dialog.header.color,
|
|
1487
|
+
isFullscreen: $.value,
|
|
1488
1488
|
fullscreenParent: P.value
|
|
1489
1489
|
}, {
|
|
1490
1490
|
title: D(() => [Be(T(q.value[Number(N.value.index)] ? q.value[Number(N.value.index)].text : ""), 1)]),
|
|
@@ -1502,9 +1502,9 @@ var Ze = /* @__PURE__ */ e({ default: () => Kt }), Qe = ["id"], $e = ["id"], et
|
|
|
1502
1502
|
"isFullscreen",
|
|
1503
1503
|
"fullscreenParent"
|
|
1504
1504
|
])) : p("", !0),
|
|
1505
|
-
E(
|
|
1505
|
+
E(Fn) ? (x(), f(xe, { key: 10 })) : p("", !0)
|
|
1506
1506
|
], 46, Qe));
|
|
1507
1507
|
}
|
|
1508
|
-
}, [["__scopeId", "data-v-
|
|
1508
|
+
}, [["__scopeId", "data-v-b09f1aa6"]]);
|
|
1509
1509
|
//#endregion
|
|
1510
1510
|
export { Ze as n, Kt as t };
|