vue-data-ui 3.22.10 → 3.22.12
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/dist/{Arrow-Ku6rQ87g.js → Arrow-DKx74WtM.js} +1 -1
- package/dist/{BaseDraggableDialog-CdkCqtag.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
- package/dist/{BaseIcon-CDTIUIKV.js → BaseIcon-CP5RWnqt.js} +1 -1
- package/dist/{BaseLegendToggle-BrQ2OlzI.js → BaseLegendToggle-DsWphmIb.js} +1 -1
- package/dist/{BaseZoomControls-CkEX0292.js → BaseZoomControls-C9_ygNN4.js} +2 -2
- package/dist/{ColorPicker-C959ZIW9.js → ColorPicker-3N_HVgXs.js} +2 -2
- package/dist/{DataTable-ByZy5gt1.js → DataTable-DzPEVvSo.js} +2 -2
- package/dist/{Legend-5VQGLnmx.js → Legend-C0xAnJdO.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Bd8OzTqw.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
- package/dist/{PackageVersion-BoTvk0i5.js → PackageVersion-Di3tpYst.js} +1 -1
- package/dist/{PenAndPaper-CLaZJl6K.js → PenAndPaper-CSMVXpg2.js} +3 -3
- package/dist/{Shape-B5ksaGa1.js → Shape-BfnXr1nJ.js} +1 -1
- package/dist/Slicer-C6qNUmZ4.js +1149 -0
- package/dist/SlicerPreview-Cw6WMVhG.js +1689 -0
- package/dist/{SparkTooltip-CbYYc-xb.js → SparkTooltip-uoUiL_P8.js} +1 -1
- package/dist/{Title-Cr3jP7Qd.js → Title-BuPs74IB.js} +1 -1
- package/dist/{Tooltip-CDbLl3TD.js → Tooltip-CA1rtSyl.js} +1 -1
- package/dist/{UserOptions-BUQOnoPR.js → UserOptions-DzAFK9cY.js} +442 -441
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.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-rating.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-smiley.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-heatmap.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/{dom-to-png-COPbGrdd.js → dom-to-png-BdAFKZQg.js} +1 -1
- package/dist/{exposedLib-CZbtc2a6.js → exposedLib-Ciw6TGtP.js} +1 -1
- package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
- package/dist/{img-CNdXiUfZ.js → img-Bikk1dGb.js} +1 -1
- package/dist/{labelUtils-JaoYKi2N.js → labelUtils-BUhssos9.js} +1 -1
- package/dist/{lib-CnHx5WfV.js → lib-CFm_J26b.js} +3 -3
- package/dist/{package-BRBLwZUc.js → package-Bmet7oRZ.js} +1 -1
- package/dist/{pdf-CEMzBeuV.js → pdf-zmz3l2uy.js} +1 -1
- package/dist/{render-common-DJXFRGhU.js → render-common-Bdolvm-Q.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/composables.d.ts +28 -11
- package/dist/types/vue-data-ui.d.ts +27 -9
- package/dist/{useAutoSizeLabelsInsideViewbox-BUPt2iaP.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
- package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
- package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
- package/dist/useMountedDelay-BAjrhRJb.js +14 -0
- package/dist/{useNestedProp-D8NuRneO.js → useNestedProp-BY6DNN3i.js} +1 -1
- package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
- package/dist/{usePrinter-B-X_Pub0.js → usePrinter-BH-xle1O.js} +2 -2
- package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
- package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
- package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
- package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
- package/dist/utils.js +3 -3
- package/dist/{vue-data-ui-Bx_8d3b_.js → vue-data-ui-DfU5hAaT.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/{vue-ui-3d-bar-CfUfbpSE.js → vue-ui-3d-bar--HLw40qY.js} +9 -10
- package/dist/vue-ui-accordion-UA88lv4d.js +81 -0
- package/dist/{vue-ui-age-pyramid-DD-4y5Jd.js → vue-ui-age-pyramid-Bd_ubvoh.js} +9 -10
- package/dist/{vue-ui-annotator-BvGE3lzE.js → vue-ui-annotator-q3ZKx6ua.js} +15 -9
- package/dist/{vue-ui-bullet-DYOdbaO2.js → vue-ui-bullet-CM2jgN74.js} +10 -11
- package/dist/{vue-ui-bump-B8fJoxHF.js → vue-ui-bump-DvShTelE.js} +10 -11
- package/dist/{vue-ui-candlestick-BUP1JoNs.js → vue-ui-candlestick-CK9Na9KB.js} +474 -474
- package/dist/{vue-ui-carousel-table-D-Bwhydt.js → vue-ui-carousel-table-BxORSyv1.js} +5 -5
- package/dist/{vue-ui-chestnut-C2VK2NEx.js → vue-ui-chestnut-tW2ZnqwW.js} +11 -11
- package/dist/{vue-ui-chord-AA-QjUQI.js → vue-ui-chord-DqKCW4Pl.js} +11 -12
- package/dist/{vue-ui-circle-pack-CdBFGYOK.js → vue-ui-circle-pack-kmzEbu7G.js} +21 -25
- package/dist/{vue-ui-cursor-Cm_J_5Gk.js → vue-ui-cursor-SvEAxNKD.js} +4 -4
- package/dist/{vue-ui-dag-CgRph4-n.js → vue-ui-dag-DZGUw98x.js} +16 -14
- package/dist/{vue-ui-dashboard-BuPw5QjB.js → vue-ui-dashboard-BzzECKaL.js} +71 -72
- package/dist/{vue-ui-digits-ClrukmcB.js → vue-ui-digits-CKWMJqU_.js} +4 -4
- package/dist/{vue-ui-donut-Bc-EPZvu.js → vue-ui-donut-BWbuCT47.js} +17 -18
- package/dist/{vue-ui-donut-DtQCrMKL.js → vue-ui-donut-DjdH53Zj.js} +3 -3
- package/dist/{vue-ui-donut-evolution-DHkiY-BD.js → vue-ui-donut-evolution-CJNnXg31.js} +357 -362
- package/dist/{vue-ui-dumbbell-BlHEH4Mw.js → vue-ui-dumbbell-BUyfJOxH.js} +13 -13
- package/dist/{vue-ui-flow-PjwAW2tY.js → vue-ui-flow-C39C5dvl.js} +10 -11
- package/dist/{vue-ui-funnel-DojI09FV.js → vue-ui-funnel-_aMNVUkP.js} +9 -10
- package/dist/{vue-ui-galaxy-txYIK_LG.js → vue-ui-galaxy-Dng0GSjQ.js} +12 -13
- package/dist/{vue-ui-gauge-CoL0OzSd.js → vue-ui-gauge-BmZPLW3e.js} +10 -11
- package/dist/{vue-ui-geo-yuL-_sqF.js → vue-ui-geo-BOx-pK_5.js} +15 -14
- package/dist/{vue-ui-gizmo-CbC5zV3K.js → vue-ui-gizmo-BCGwhNna.js} +4 -4
- package/dist/{vue-ui-heatmap-CwqsZIsR.js → vue-ui-heatmap-BORjgllw.js} +12 -13
- package/dist/{vue-ui-history-plot-CuWssH-D.js → vue-ui-history-plot-DY3fqgIY.js} +11 -12
- package/dist/{vue-ui-horizontal-bar-Dyje3GND.js → vue-ui-horizontal-bar-C8f4PisL.js} +17 -17
- package/dist/{vue-ui-kpi-BdYenScF.js → vue-ui-kpi-BdhXSBIJ.js} +4 -4
- package/dist/{vue-ui-mini-loader-BbwE3vBT.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
- package/dist/{vue-ui-molecule-BBh31vmd.js → vue-ui-molecule-PlmDykKX.js} +9 -8
- package/dist/{vue-ui-mood-radar-B_6GFlaR.js → vue-ui-mood-radar-C9LTAt_c.js} +10 -11
- package/dist/{vue-ui-nested-donuts-BWq-At5Y.js → vue-ui-nested-donuts-F5OXPxvU.js} +12 -13
- package/dist/{vue-ui-onion-BwGbSE-6.js → vue-ui-onion-D1-j-pvW.js} +13 -14
- package/dist/{vue-ui-parallel-coordinate-plot-Bh9hNoqf.js → vue-ui-parallel-coordinate-plot-Vb_QjRp5.js} +303 -307
- package/dist/{vue-ui-quadrant-B72Y4Zuw.js → vue-ui-quadrant-DMFawnHm.js} +19 -18
- package/dist/{vue-ui-quick-chart-B3LF2ViM.js → vue-ui-quick-chart-BF5fKxY2.js} +606 -632
- package/dist/{vue-ui-radar-4v_E8oGX.js → vue-ui-radar-D91pCqhn.js} +12 -13
- package/dist/{vue-ui-rating-CzLGCFWK.js → vue-ui-rating-DbxK-ftN.js} +3 -3
- package/dist/{vue-ui-relation-circle-B_8dyIv2.js → vue-ui-relation-circle-DfxvnOs6.js} +14 -21
- package/dist/{vue-ui-ridgeline-BArLhskj.js → vue-ui-ridgeline-BOL0m1mR.js} +13 -14
- package/dist/{vue-ui-rings-Csn5BgLk.js → vue-ui-rings-4RxAaMo4.js} +13 -14
- package/dist/vue-ui-scatter-Bs1wek00.js +2409 -0
- package/dist/{vue-ui-skeleton-KeIPGp9U.js → vue-ui-skeleton-B84nELF_.js} +4 -4
- package/dist/{vue-ui-smiley-C1mYDh4R.js → vue-ui-smiley-Da2jgkb7.js} +3 -3
- package/dist/{vue-ui-spark-trend-EqCqmHmU.js → vue-ui-spark-trend-BR-qkwJ6.js} +6 -7
- package/dist/{vue-ui-sparkbar-BPh45vBP.js → vue-ui-sparkbar-DghCbhj2.js} +51 -54
- package/dist/{vue-ui-sparkgauge-CtouPcyW.js → vue-ui-sparkgauge-DbeTbrxx.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-D4sI0DHN.js → vue-ui-sparkhistogram-B2xSQyOp.js} +7 -8
- package/dist/{vue-ui-sparkline-BDFZ78Fz.js → vue-ui-sparkline-D3xRMcy9.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CbTXIfxm.js → vue-ui-sparkstackbar-D8z8fVFZ.js} +5 -5
- package/dist/vue-ui-stackbar-B63-UgSr.js +2322 -0
- package/dist/{vue-ui-stackline-CzfXl5ah.js → vue-ui-stackline-Dukmj3yT.js} +588 -586
- package/dist/vue-ui-strip-plot-Bws0p7tP.js +1736 -0
- package/dist/{vue-ui-table-BAKkFXki.js → vue-ui-table-dxCS6ztG.js} +12 -11
- package/dist/{vue-ui-table-heatmap-CUMxqHKK.js → vue-ui-table-heatmap-CSI482KG.js} +9 -15
- package/dist/{vue-ui-table-sparkline-BVTm16fd.js → vue-ui-table-sparkline-C-XgNV1l.js} +10 -8
- package/dist/{vue-ui-thermometer-CGeEW1KV.js → vue-ui-thermometer-BUKge0w8.js} +10 -11
- package/dist/{vue-ui-timer-Bz7EnsM1.js → vue-ui-timer-CCd3pznw.js} +7 -8
- package/dist/{vue-ui-tiremarks-IOqtk_Rr.js → vue-ui-tiremarks-CG5X5rgi.js} +9 -10
- package/dist/{vue-ui-treemap-JxNNtb7v.js → vue-ui-treemap-CNVB8Ng6.js} +501 -492
- package/dist/{vue-ui-waffle-D34mcJWi.js → vue-ui-waffle-DH5Rf1WM.js} +13 -14
- package/dist/{vue-ui-wheel-B_qEhyvk.js → vue-ui-wheel-BzEkxqDz.js} +10 -11
- package/dist/{vue-ui-word-cloud-TtObhd91.js → vue-ui-word-cloud-DbfGZ-hb.js} +15 -12
- package/dist/{vue-ui-world-R9o00A6c.js → vue-ui-world-CL6KcPcv.js} +10 -10
- package/dist/{vue-ui-xy-Do34-UbE.js → vue-ui-xy-4Xp7UoLs.js} +9 -9
- package/dist/{vue-ui-xy-CUt6sU1s.js → vue-ui-xy-BAmxfSSw.js} +1269 -1266
- package/dist/{vue-ui-xy-canvas-C6eRRH--.js → vue-ui-xy-canvas-7YSYRdwr.js} +27 -27
- package/package.json +3 -3
- package/dist/Slicer-WsWTQPKt.js +0 -1150
- package/dist/SlicerPreview-3n516NyE.js +0 -1688
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/vue-ui-accordion-Oo3IsX3-.js +0 -81
- package/dist/vue-ui-scatter-BBaOx94M.js +0 -2422
- package/dist/vue-ui-stackbar-nMXIY9x8.js +0 -2339
- package/dist/vue-ui-strip-plot-BCf5nthl.js +0 -1736
|
@@ -1,138 +1,134 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { At as t, C as n, Ct as r, E as i, Gt as a, Ht as o, K as s, Lt as c, Nt as l, Ot as ee, Q as te, W as ne, Y as re, Z as ie, d as ae, et as oe, f as se, ft as ce, g as le, i as ue, m as de, qt as fe, t as pe, v as me, x as he, zt as ge } from "./lib-
|
|
3
|
-
import { t as _e } from "./useTimeLabels-
|
|
4
|
-
import { t as ve } from "./useConfig-
|
|
5
|
-
import { t as ye } from "./usePrinter-
|
|
2
|
+
import { At as t, C as n, Ct as r, E as i, Gt as a, Ht as o, K as s, Lt as c, Nt as l, Ot as ee, Q as te, W as ne, Y as re, Z as ie, d as ae, et as oe, f as se, ft as ce, g as le, i as ue, m as de, qt as fe, t as pe, v as me, x as he, zt as ge } from "./lib-CFm_J26b.js";
|
|
3
|
+
import { t as _e } from "./useTimeLabels-B9CEuiLZ.js";
|
|
4
|
+
import { t as ve } from "./useConfig-C0V0eG7L.js";
|
|
5
|
+
import { t as ye } from "./usePrinter-BH-xle1O.js";
|
|
6
6
|
import { n as be, t as xe } from "./BaseScanner-DZvpgOjM.js";
|
|
7
|
-
import { t as Se } from "./useSvgExport-
|
|
8
|
-
import { t as Ce } from "./useNestedProp-
|
|
7
|
+
import { t as Se } from "./useSvgExport-Ba9qBr9M.js";
|
|
8
|
+
import { t as Ce } from "./useNestedProp-BY6DNN3i.js";
|
|
9
9
|
import { t as we } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
-
import { t as Te } from "./
|
|
11
|
-
import { t as Ee } from "./
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { Fragment as u, Teleport as
|
|
10
|
+
import { t as Te } from "./useMountedDelay-BAjrhRJb.js";
|
|
11
|
+
import { t as Ee } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
|
+
import { t as De } from "./img-Bikk1dGb.js";
|
|
13
|
+
import { n as Oe } from "./Title-BuPs74IB.js";
|
|
14
|
+
import { t as ke } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as Ae, t as je } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as Me } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as Ne } from "./BaseLegendToggle-DsWphmIb.js";
|
|
18
|
+
import { t as Pe } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as Fe } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Ie } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as Le } from "./Legend-C0xAnJdO.js";
|
|
22
|
+
import { t as Re } from "./vue_ui_donut_evolution-D1yAAIHr.js";
|
|
23
|
+
import { t as ze } from "./Slicer-C6qNUmZ4.js";
|
|
24
|
+
import { Fragment as u, Teleport as Be, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ve, createTextVNode as He, createVNode as Ue, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as We, nextTick as Ge, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as Ke, onMounted as qe, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as Je, shallowRef as Ye, toDisplayString as T, toRefs as Xe, unref as E, watch as Ze, watchEffect as Qe, withCtx as D } from "vue";
|
|
25
25
|
//#region src/components/vue-ui-donut-evolution.vue
|
|
26
|
-
var
|
|
26
|
+
var $e = /* @__PURE__ */ e({ default: () => Vt }), et = ["id"], tt = ["id"], nt = ["id"], rt = { style: { position: "relative" } }, it = [
|
|
27
27
|
"xmlns",
|
|
28
28
|
"aria-describedby",
|
|
29
29
|
"viewBox"
|
|
30
|
-
],
|
|
30
|
+
], at = [
|
|
31
31
|
"x",
|
|
32
32
|
"y",
|
|
33
33
|
"width",
|
|
34
34
|
"height"
|
|
35
|
-
],
|
|
35
|
+
], ot = { key: 1 }, st = [
|
|
36
36
|
"x1",
|
|
37
37
|
"x2",
|
|
38
38
|
"y1",
|
|
39
39
|
"y2",
|
|
40
40
|
"stroke",
|
|
41
41
|
"stroke-width"
|
|
42
|
-
],
|
|
42
|
+
], ct = [
|
|
43
43
|
"x1",
|
|
44
44
|
"x2",
|
|
45
45
|
"y1",
|
|
46
46
|
"y2",
|
|
47
47
|
"stroke",
|
|
48
48
|
"stroke-width"
|
|
49
|
-
],
|
|
49
|
+
], lt = { key: 0 }, ut = [
|
|
50
50
|
"x1",
|
|
51
51
|
"x2",
|
|
52
52
|
"y1",
|
|
53
53
|
"y2",
|
|
54
54
|
"stroke",
|
|
55
55
|
"stroke-width"
|
|
56
|
-
],
|
|
56
|
+
], dt = [
|
|
57
57
|
"font-size",
|
|
58
58
|
"fill",
|
|
59
59
|
"transform"
|
|
60
|
-
],
|
|
60
|
+
], ft = [
|
|
61
61
|
"x",
|
|
62
62
|
"y",
|
|
63
63
|
"font-size",
|
|
64
64
|
"fill"
|
|
65
|
-
],
|
|
66
|
-
"
|
|
67
|
-
"x2",
|
|
68
|
-
"y1",
|
|
69
|
-
"y2",
|
|
65
|
+
], pt = [
|
|
66
|
+
"d",
|
|
70
67
|
"stroke",
|
|
71
68
|
"stroke-width"
|
|
72
|
-
],
|
|
73
|
-
"
|
|
74
|
-
"y",
|
|
69
|
+
], mt = [
|
|
70
|
+
"transform",
|
|
75
71
|
"font-size",
|
|
76
72
|
"text-anchor",
|
|
77
73
|
"fill",
|
|
78
74
|
"font-weight"
|
|
79
|
-
],
|
|
75
|
+
], ht = { key: 0 }, gt = [
|
|
80
76
|
"text-anchor",
|
|
81
77
|
"font-size",
|
|
82
78
|
"fill",
|
|
83
79
|
"transform"
|
|
84
|
-
],
|
|
80
|
+
], _t = [
|
|
85
81
|
"text-anchor",
|
|
86
82
|
"font-size",
|
|
87
83
|
"fill",
|
|
88
84
|
"transform",
|
|
89
85
|
"innerHTML"
|
|
90
|
-
],
|
|
86
|
+
], vt = [
|
|
91
87
|
"x1",
|
|
92
88
|
"y1",
|
|
93
89
|
"x2",
|
|
94
90
|
"y2",
|
|
95
91
|
"stroke",
|
|
96
92
|
"stroke-width"
|
|
97
|
-
],
|
|
93
|
+
], yt = { key: 1 }, bt = [
|
|
98
94
|
"cx",
|
|
99
95
|
"cy",
|
|
100
96
|
"r",
|
|
101
97
|
"fill"
|
|
102
|
-
],
|
|
98
|
+
], xt = { key: 0 }, St = { key: 0 }, Ct = ["d", "stroke"], wt = [
|
|
103
99
|
"text-anchor",
|
|
104
100
|
"x",
|
|
105
101
|
"y",
|
|
106
102
|
"fill"
|
|
107
|
-
],
|
|
103
|
+
], Tt = [
|
|
108
104
|
"cx",
|
|
109
105
|
"cy",
|
|
110
106
|
"r",
|
|
111
107
|
"fill"
|
|
112
|
-
],
|
|
108
|
+
], Et = { key: 0 }, Dt = [
|
|
113
109
|
"cx",
|
|
114
110
|
"cy",
|
|
115
111
|
"fill"
|
|
116
|
-
],
|
|
112
|
+
], Ot = { key: 1 }, kt = [
|
|
117
113
|
"d",
|
|
118
114
|
"fill",
|
|
119
115
|
"stroke"
|
|
120
|
-
],
|
|
116
|
+
], At = { key: 2 }, jt = [
|
|
121
117
|
"d",
|
|
122
118
|
"fill",
|
|
123
119
|
"stroke"
|
|
124
|
-
],
|
|
120
|
+
], Mt = [
|
|
125
121
|
"x",
|
|
126
122
|
"y",
|
|
127
123
|
"font-size",
|
|
128
124
|
"fill"
|
|
129
|
-
],
|
|
125
|
+
], Nt = [
|
|
130
126
|
"x",
|
|
131
127
|
"y",
|
|
132
128
|
"width",
|
|
133
129
|
"height",
|
|
134
130
|
"fill"
|
|
135
|
-
],
|
|
131
|
+
], Pt = [
|
|
136
132
|
"x",
|
|
137
133
|
"y",
|
|
138
134
|
"width",
|
|
@@ -140,7 +136,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
140
136
|
"onMouseenter",
|
|
141
137
|
"onMouseleave",
|
|
142
138
|
"onClick"
|
|
143
|
-
],
|
|
139
|
+
], Ft = {
|
|
144
140
|
key: 0,
|
|
145
141
|
style: {
|
|
146
142
|
position: "absolute",
|
|
@@ -150,10 +146,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
150
146
|
},
|
|
151
147
|
"data-dom-to-png-ignore": "",
|
|
152
148
|
"aria-hidden": "true"
|
|
153
|
-
},
|
|
149
|
+
}, It = {
|
|
154
150
|
key: 5,
|
|
155
151
|
class: "vue-data-ui-watermark"
|
|
156
|
-
},
|
|
152
|
+
}, Lt = ["id"], Rt = ["onClick"], zt = { key: 0 }, Bt = { key: 1 }, Vt = /*#__PURE__*/ ke({
|
|
157
153
|
__name: "vue-ui-donut-evolution",
|
|
158
154
|
props: {
|
|
159
155
|
config: {
|
|
@@ -170,18 +166,18 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
170
166
|
}
|
|
171
167
|
},
|
|
172
168
|
emits: ["selectLegend", "copyAlt"],
|
|
173
|
-
setup(e, { expose:
|
|
174
|
-
let
|
|
175
|
-
|
|
176
|
-
|
|
169
|
+
setup(e, { expose: ke, emit: $e }) {
|
|
170
|
+
let Vt = g(() => import("./vue-ui-accordion-UA88lv4d.js").then((e) => e.n)), Ht = g(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), Ut = g(() => import("./DataTable-DzPEVvSo.js")), Wt = g(() => import("./PackageVersion-Di3tpYst.js").then((e) => e.t)), Gt = g(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Kt = g(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), qt = g(() => import("./vue-ui-donut-BWbuCT47.js").then((e) => e.n)), Jt = g(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_donut_evolution: Yt } = ve(), { isThemeValid: Xt, warnInvalidTheme: Zt } = we(), { isReady: Qt } = Te(300), O = e, k = S(s()), A = S([]), j = S(null), M = S(null), $t = S(!1), N = S(null), P = S(null), en = S(null), tn = S(0), nn = S(0), rn = S(0), an = S(0), on = S(0), sn = S(null), cn = S(null), ln = S(null), un = S(null), dn = S(!1), F = S(null), fn = S(null), pn = S(!1), mn = S(!1), hn = S(null), gn = S(null), _n = S(null), vn = S(null), yn = S(null), bn = S(!1), I = Ye(null), xn = Ye(null), Sn = S(null), L = S(null), Cn = S(!1), wn = $e, Tn = d(() => !!O.dataset && O.dataset.length);
|
|
171
|
+
qe(() => {
|
|
172
|
+
dn.value = !0, Dn();
|
|
177
173
|
});
|
|
178
|
-
let
|
|
179
|
-
function
|
|
174
|
+
let En = d(() => !!R.value.debug);
|
|
175
|
+
function Dn() {
|
|
180
176
|
if (t(O.dataset) ? (oe({
|
|
181
177
|
componentName: "VueUiDonutEvolution",
|
|
182
178
|
type: "dataset",
|
|
183
|
-
debug:
|
|
184
|
-
}),
|
|
179
|
+
debug: En.value
|
|
180
|
+
}), jn.value = !0) : O.dataset.length && O.dataset.forEach((e, t) => {
|
|
185
181
|
ce({
|
|
186
182
|
datasetObject: e,
|
|
187
183
|
requiredAttributes: ["name", "values"]
|
|
@@ -191,31 +187,31 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
191
187
|
type: "datasetSerieAttribute",
|
|
192
188
|
property: e,
|
|
193
189
|
index: t,
|
|
194
|
-
debug:
|
|
195
|
-
}),
|
|
190
|
+
debug: En.value
|
|
191
|
+
}), jn.value = !0;
|
|
196
192
|
});
|
|
197
|
-
}), t(O.dataset) || (
|
|
198
|
-
|
|
199
|
-
}, 10),
|
|
200
|
-
let e =
|
|
201
|
-
|
|
202
|
-
let { width: e, height: t } =
|
|
193
|
+
}), t(O.dataset) || (jn.value = R.value.loading), setTimeout(() => {
|
|
194
|
+
bn.value = !0;
|
|
195
|
+
}, 10), Pn(), R.value.responsive) {
|
|
196
|
+
let e = Ae(() => {
|
|
197
|
+
bn.value = !1;
|
|
198
|
+
let { width: e, height: t } = je({
|
|
203
199
|
chart: P.value,
|
|
204
|
-
title: R.value.style.chart.title.text ?
|
|
205
|
-
legend: R.value.style.chart.legend.show ?
|
|
206
|
-
slicer: R.value.style.chart.zoom.show &&
|
|
207
|
-
source:
|
|
200
|
+
title: R.value.style.chart.title.text ? hn.value : null,
|
|
201
|
+
legend: R.value.style.chart.legend.show ? gn.value : null,
|
|
202
|
+
slicer: R.value.style.chart.zoom.show && Mn.value > 1 ? yn.value : null,
|
|
203
|
+
source: _n.value
|
|
208
204
|
});
|
|
209
205
|
requestAnimationFrame(() => {
|
|
210
|
-
B.value.width = e, B.value.height = t - 12, clearTimeout(
|
|
211
|
-
|
|
206
|
+
B.value.width = e, B.value.height = t - 12, clearTimeout(Sn.value), Sn.value = setTimeout(() => {
|
|
207
|
+
bn.value = !0;
|
|
212
208
|
}, 10);
|
|
213
209
|
});
|
|
214
210
|
});
|
|
215
|
-
I.value && (
|
|
211
|
+
I.value && (xn.value && I.value.unobserve(xn.value), I.value.disconnect()), I.value = new ResizeObserver(e), xn.value = P.value.parentNode, I.value.observe(xn.value);
|
|
216
212
|
}
|
|
217
213
|
}
|
|
218
|
-
let R = S(
|
|
214
|
+
let R = S(Bn()), z = d(() => R.value.userOptions.useCursorPointer), On = d(() => fe({
|
|
219
215
|
defaultConfig: {
|
|
220
216
|
useCssAnimation: !1,
|
|
221
217
|
table: { show: !1 },
|
|
@@ -253,13 +249,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
253
249
|
} }
|
|
254
250
|
},
|
|
255
251
|
userConfig: R.value.skeletonConfig ?? {}
|
|
256
|
-
})), { loading:
|
|
257
|
-
...
|
|
252
|
+
})), { loading: kn, FINAL_DATASET: An, manualLoading: jn } = be({
|
|
253
|
+
...Xe(O),
|
|
258
254
|
FINAL_CONFIG: R,
|
|
259
|
-
prepareConfig:
|
|
255
|
+
prepareConfig: Bn,
|
|
260
256
|
callback: () => {
|
|
261
257
|
Promise.resolve().then(async () => {
|
|
262
|
-
await
|
|
258
|
+
await Pn();
|
|
263
259
|
});
|
|
264
260
|
},
|
|
265
261
|
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
@@ -302,43 +298,43 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
302
298
|
],
|
|
303
299
|
skeletonConfig: fe({
|
|
304
300
|
defaultConfig: R.value,
|
|
305
|
-
userConfig:
|
|
301
|
+
userConfig: On.value
|
|
306
302
|
})
|
|
307
303
|
}), B = S({
|
|
308
304
|
width: R.value.style.chart.layout.width,
|
|
309
305
|
height: R.value.style.chart.layout.height
|
|
310
|
-
}),
|
|
306
|
+
}), Mn = d(() => Math.max(...An.value.map((e) => e.values.length))), V = S({
|
|
311
307
|
start: 0,
|
|
312
|
-
end:
|
|
308
|
+
end: Mn.value
|
|
313
309
|
});
|
|
314
|
-
function
|
|
315
|
-
|
|
310
|
+
function Nn() {
|
|
311
|
+
Pn();
|
|
316
312
|
}
|
|
317
|
-
async function
|
|
318
|
-
await
|
|
319
|
-
let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n =
|
|
313
|
+
async function Pn() {
|
|
314
|
+
await Ge(), await Ge();
|
|
315
|
+
let { startIndex: e, endIndex: t } = R.value.style.chart.zoom, n = vn.value;
|
|
320
316
|
V.value = {
|
|
321
317
|
start: 0,
|
|
322
318
|
max: q.value
|
|
323
|
-
}, (e != null || t != null) && n ? (e == null ? (V.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (V.value.end = q.value, n.setEndValue(q.value)) : n.setEndValue(
|
|
319
|
+
}, (e != null || t != null) && n ? (e == null ? (V.value.start = 0, n.setStartValue(0)) : n.setStartValue(e), t == null ? (V.value.end = q.value, n.setEndValue(q.value)) : n.setEndValue(Fn(t + 1))) : (V.value = {
|
|
324
320
|
start: 0,
|
|
325
321
|
end: q.value
|
|
326
|
-
},
|
|
322
|
+
}, nn.value += 1);
|
|
327
323
|
}
|
|
328
|
-
function
|
|
324
|
+
function Fn(e) {
|
|
329
325
|
let t = q.value;
|
|
330
326
|
return e > t ? t : e < 0 || R.value.style.chart.zoom.startIndex !== null && e < R.value.style.chart.zoom.startIndex ? R.value.style.chart.zoom.startIndex === null ? 1 : R.value.style.chart.zoom.startIndex + 1 : e;
|
|
331
327
|
}
|
|
332
|
-
let { userOptionsVisible:
|
|
333
|
-
function
|
|
328
|
+
let { userOptionsVisible: In, setUserOptionsVisibility: Ln, keepUserOptionState: Rn } = Fe({ config: R.value }), { svgRef: zn } = Ie({ config: R.value.style.chart.title });
|
|
329
|
+
function Bn() {
|
|
334
330
|
let e = Ce({
|
|
335
331
|
userConfig: O.config,
|
|
336
|
-
defaultConfig:
|
|
332
|
+
defaultConfig: Yt
|
|
337
333
|
}), t = {}, n = e.theme;
|
|
338
|
-
if (n) if (!
|
|
334
|
+
if (n) if (!Xt.value(e)) Zt(e), t = e;
|
|
339
335
|
else {
|
|
340
336
|
let r = Ce({
|
|
341
|
-
userConfig:
|
|
337
|
+
userConfig: Re[n] || O.config,
|
|
342
338
|
defaultConfig: e
|
|
343
339
|
});
|
|
344
340
|
t = {
|
|
@@ -352,17 +348,17 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
352
348
|
else t = e;
|
|
353
349
|
return t;
|
|
354
350
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}, { deep: !0 }),
|
|
358
|
-
Array.isArray(e) && e.length > 0 && (
|
|
351
|
+
Ze(() => O.config, (e) => {
|
|
352
|
+
kn.value || (R.value = Bn()), In.value = !R.value.userOptions.showOnChartHover, Dn(), rn.value += 1, an.value += 1, on.value += 1, H.value.showTable = R.value.table.show;
|
|
353
|
+
}, { deep: !0 }), Ze(() => O.dataset, (e) => {
|
|
354
|
+
Array.isArray(e) && e.length > 0 && (jn.value = !1), Nn();
|
|
359
355
|
}, { deep: !0 });
|
|
360
|
-
let { isPrinting:
|
|
356
|
+
let { isPrinting: Vn, isImaging: Hn, generatePdf: Un, generateImage: Wn } = ye({
|
|
361
357
|
elementId: k.value,
|
|
362
358
|
fileName: R.value.style.chart.title.text || "vue-ui-donut-evolution",
|
|
363
359
|
options: R.value.userOptions.print
|
|
364
|
-
}),
|
|
365
|
-
|
|
360
|
+
}), Gn = d(() => R.value.userOptions.show && !R.value.style.chart.title.text), Kn = d(() => n(R.value.customPalette)), H = S({ showTable: R.value.table.show });
|
|
361
|
+
Ze(R, () => {
|
|
366
362
|
H.value = { showTable: R.value.table.show };
|
|
367
363
|
}, { immediate: !0 });
|
|
368
364
|
let U = d(() => ({
|
|
@@ -371,13 +367,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
371
367
|
bottom: R.value.style.chart.layout.padding.bottom,
|
|
372
368
|
left: R.value.style.chart.layout.padding.left
|
|
373
369
|
})), W = d(() => R.value.style.chart.layout.grid.yAxis.position === "right");
|
|
374
|
-
function
|
|
370
|
+
function qn() {
|
|
375
371
|
let e = 0;
|
|
376
|
-
|
|
372
|
+
sn.value && (e = Array.from(sn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
377
373
|
let n = t.getComputedTextLength();
|
|
378
374
|
return n > e ? n : e;
|
|
379
375
|
}, 0));
|
|
380
|
-
let t =
|
|
376
|
+
let t = un.value ? un.value.getBoundingClientRect().width + R.value.style.chart.layout.grid.axis.yLabelOffsetX + R.value.style.chart.layout.grid.axis.fontSize : 0, n = e + t + 5;
|
|
381
377
|
return {
|
|
382
378
|
left: W.value ? 0 : n,
|
|
383
379
|
right: W.value ? n : 0,
|
|
@@ -386,31 +382,31 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
386
382
|
crosshair: 5
|
|
387
383
|
};
|
|
388
384
|
}
|
|
389
|
-
let
|
|
390
|
-
|
|
385
|
+
let Jn = S(0), Yn = Ae((e) => {
|
|
386
|
+
Jn.value = e;
|
|
391
387
|
}, 100);
|
|
392
|
-
|
|
393
|
-
let t =
|
|
388
|
+
Qe((e) => {
|
|
389
|
+
let t = cn.value;
|
|
394
390
|
if (!t) return;
|
|
395
391
|
let n = new ResizeObserver((e) => {
|
|
396
|
-
|
|
392
|
+
Yn(e[0].contentRect.height);
|
|
397
393
|
});
|
|
398
394
|
n.observe(t), e(() => n.disconnect());
|
|
399
|
-
}),
|
|
400
|
-
|
|
395
|
+
}), Ke(() => {
|
|
396
|
+
Jn.value = 0;
|
|
401
397
|
});
|
|
402
|
-
let
|
|
398
|
+
let Xn = d(() => {
|
|
403
399
|
let e = 0;
|
|
404
|
-
|
|
400
|
+
ln.value && (e = ln.value.getBBox().height);
|
|
405
401
|
let t = 0;
|
|
406
|
-
return
|
|
402
|
+
return cn.value && (t = Jn.value), e + t + R.value.style.chart.layout.grid.axis.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY;
|
|
407
403
|
}), G = d(() => {
|
|
408
|
-
let e =
|
|
404
|
+
let e = qn(), t = R.value.style.chart.layout.dataLabels.fontSize * 3, n = B.value.width, r = B.value.height, i = U.value.left + e.left, a = n - U.value.right - e.right, o = n - i - U.value.right - e.right, s = r - U.value.top - U.value.bottom - t - Xn.value, c = U.value.top + t;
|
|
409
405
|
return {
|
|
410
406
|
top: c,
|
|
411
407
|
left: i,
|
|
412
408
|
right: a,
|
|
413
|
-
bottom: r - U.value.bottom -
|
|
409
|
+
bottom: r - U.value.bottom - Xn.value,
|
|
414
410
|
absoluteHeight: r,
|
|
415
411
|
absoluteWidth: n,
|
|
416
412
|
centerX: i + Math.max(10, o) / 2,
|
|
@@ -421,32 +417,32 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
421
417
|
yAxisLabelWidth: e.yAxisLabelWidth,
|
|
422
418
|
crosshair: e.crosshair
|
|
423
419
|
};
|
|
424
|
-
}), K = d(() => (
|
|
420
|
+
}), K = d(() => (An.value.forEach((e, t) => {
|
|
425
421
|
[null, void 0].includes(e.name) && oe({
|
|
426
422
|
componentName: "VueUiDonutEvolution",
|
|
427
423
|
type: "datasetSerieAttribute",
|
|
428
424
|
property: "name",
|
|
429
425
|
index: t,
|
|
430
|
-
debug:
|
|
426
|
+
debug: En.value
|
|
431
427
|
}), [null, void 0].includes(e.values) && oe({
|
|
432
428
|
componentName: "VueUiDonutEvolution",
|
|
433
429
|
type: "datasetSerieAttribute",
|
|
434
430
|
property: "values",
|
|
435
431
|
index: t,
|
|
436
|
-
debug:
|
|
432
|
+
debug: En.value
|
|
437
433
|
});
|
|
438
|
-
}),
|
|
434
|
+
}), An.value.map((e, t) => ({
|
|
439
435
|
...e,
|
|
440
436
|
values: c(e.values),
|
|
441
|
-
color: he(e.color) ||
|
|
437
|
+
color: he(e.color) || Kn.value[t] || l[t] || l[t % l.length],
|
|
442
438
|
length: (e.values || []).length,
|
|
443
439
|
uid: s()
|
|
444
|
-
})))),
|
|
440
|
+
})))), Zn = d(() => K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
445
441
|
...e,
|
|
446
442
|
values: e.values.filter((e, t) => t >= V.value.start && t <= V.value.end)
|
|
447
|
-
}))), q = d(() => Math.max(...K.value.map((e) => e.length))), J = S([]),
|
|
448
|
-
|
|
449
|
-
let e = ++
|
|
443
|
+
}))), q = d(() => Math.max(...K.value.map((e) => e.length))), J = S([]), Qn = 0;
|
|
444
|
+
Qe(() => {
|
|
445
|
+
let e = ++Qn;
|
|
450
446
|
(async () => {
|
|
451
447
|
let t = await _e({
|
|
452
448
|
values: R.value.style.chart.layout.grid.xAxis.dataLabels.values,
|
|
@@ -455,13 +451,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
455
451
|
start: V.value.start,
|
|
456
452
|
end: V.value.end
|
|
457
453
|
});
|
|
458
|
-
e ===
|
|
454
|
+
e === Qn && (J.value = t);
|
|
459
455
|
})();
|
|
460
456
|
});
|
|
461
|
-
let Y = d(() => G.value.width / (V.value.end - V.value.start)),
|
|
457
|
+
let Y = d(() => G.value.width / (V.value.end - V.value.start)), $n = d(() => {
|
|
462
458
|
let e = [];
|
|
463
459
|
for (let t = 0; t < V.value.end - V.value.start; t += 1) {
|
|
464
|
-
let n =
|
|
460
|
+
let n = Zn.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 = G.value.left + Y.value * t + Y.value / 2;
|
|
465
461
|
e.push({
|
|
466
462
|
index: t,
|
|
467
463
|
percentages: a,
|
|
@@ -471,26 +467,26 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
471
467
|
});
|
|
472
468
|
}
|
|
473
469
|
return e;
|
|
474
|
-
}),
|
|
475
|
-
let e = Math.max(
|
|
470
|
+
}), er = d(() => {
|
|
471
|
+
let e = Math.max(...$n.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 1, t = Math.min(...$n.value.map((e) => e.subtotal).filter((e) => r(e))) ?? 0, n = Math.max(R.value.style.chart.layout.grid.yAxis.scaleMax ?? 0, e), i;
|
|
476
472
|
return i = R.value.style.chart.layout.grid.yAxis.scaleMin == null ? 0 : Math.min(t, R.value.style.chart.layout.grid.yAxis.scaleMin), R.value.style.chart.layout.grid.yAxis.autoScale && (i = t, n = e), i === n && (i = n / 2, n *= 1.5), {
|
|
477
473
|
max: n,
|
|
478
474
|
min: i
|
|
479
475
|
};
|
|
480
476
|
}), X = d(() => {
|
|
481
|
-
let e =
|
|
482
|
-
return le(
|
|
477
|
+
let e = $n.value.length === 1 ? er.value.max * 2 : er.value.max;
|
|
478
|
+
return le(er.value.min, e, R.value.style.chart.layout.grid.yAxis.dataLabels.steps);
|
|
483
479
|
});
|
|
484
|
-
function
|
|
480
|
+
function tr(e) {
|
|
485
481
|
return (e - X.value.min) / (X.value.max - X.value.min);
|
|
486
482
|
}
|
|
487
|
-
let
|
|
488
|
-
y: G.value.bottom - G.value.height *
|
|
483
|
+
let nr = d(() => X.value.ticks.map((e) => ({
|
|
484
|
+
y: G.value.bottom - G.value.height * tr(e),
|
|
489
485
|
value: e
|
|
490
486
|
}))), Z = d(() => {
|
|
491
|
-
let e =
|
|
487
|
+
let e = $n.value, t = Math.max(...e.map((e) => e.subtotal));
|
|
492
488
|
return e.length === 1 && t * 2, e.map((t, n) => {
|
|
493
|
-
let r = Math.min(G.value.width / 24, Y.value / 2 * .7), i = r > G.value.width / 16 ? G.value.width / 16 : r, a = j.value === t.index ? G.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > Y.value / 2 * .7 ? Y.value / 2 * .7 : r * 2, s = G.value.bottom - G.value.height *
|
|
489
|
+
let r = Math.min(G.value.width / 24, Y.value / 2 * .7), i = r > G.value.width / 16 ? G.value.width / 16 : r, a = j.value === t.index ? G.value.width / 16 : i, o = e.length > 4 ? r * 2 : r * 2 > Y.value / 2 * .7 ? Y.value / 2 * .7 : r * 2, s = G.value.bottom - G.value.height * tr(t.subtotal), c = Zn.value.map((e) => ({
|
|
494
490
|
color: e.color,
|
|
495
491
|
name: e.name,
|
|
496
492
|
value: e.values[n] ?? 0
|
|
@@ -507,7 +503,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
507
503
|
};
|
|
508
504
|
});
|
|
509
505
|
});
|
|
510
|
-
function
|
|
506
|
+
function rr(e, t, n) {
|
|
511
507
|
return ue(R.value.style.chart.layout.dataLabels.formatter, e, re({
|
|
512
508
|
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
513
509
|
v: e,
|
|
@@ -518,29 +514,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
518
514
|
index: n
|
|
519
515
|
});
|
|
520
516
|
}
|
|
521
|
-
function
|
|
517
|
+
function ir(e, t) {
|
|
522
518
|
return isNaN(e.value / o(t, "value")) ? 0 : (e.value / o(t, "value") * 100).toFixed(0) + "%";
|
|
523
519
|
}
|
|
524
|
-
function
|
|
520
|
+
function ar(e) {
|
|
525
521
|
j.value = null, M.value = null, L.value = null, R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
526
522
|
datapoint: e,
|
|
527
523
|
seriesIndex: e.seriesIndex + V.value.start
|
|
528
524
|
});
|
|
529
525
|
}
|
|
530
|
-
function
|
|
526
|
+
function or(e) {
|
|
531
527
|
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
532
528
|
datapoint: e,
|
|
533
529
|
seriesIndex: e.index + V.value.start
|
|
534
530
|
}), j.value = e.index, M.value = e, L.value = e.index;
|
|
535
531
|
}
|
|
536
|
-
let
|
|
537
|
-
function
|
|
532
|
+
let sr = S(null);
|
|
533
|
+
function cr(e, t) {
|
|
538
534
|
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
539
535
|
datapoint: e,
|
|
540
536
|
seriesIndex: e.index + V.value.start
|
|
541
|
-
}), !(!e.subtotal || !R.value.style.chart.dialog.show) && (M.value = null, j.value = null,
|
|
537
|
+
}), !(!e.subtotal || !R.value.style.chart.dialog.show) && (M.value = null, j.value = null, $t.value = !0, N.value = e, Dr(e), [null, void 0].includes(t) || (sr.value = t));
|
|
542
538
|
}
|
|
543
|
-
let
|
|
539
|
+
let lr = d(() => K.value.map((e, t) => ({
|
|
544
540
|
name: e.name,
|
|
545
541
|
value: e.values.slice(V.value.start, V.value.end).reduce((e, t) => e + t, 0),
|
|
546
542
|
shape: "circle",
|
|
@@ -549,7 +545,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
549
545
|
})).sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
550
546
|
...e,
|
|
551
547
|
opacity: A.value.includes(e.uid) ? .5 : 1,
|
|
552
|
-
segregate: () =>
|
|
548
|
+
segregate: () => pr(e.uid),
|
|
553
549
|
isSegregated: A.value.includes(e.uid),
|
|
554
550
|
display: `${e.name}${R.value.style.chart.legend.showPercentage || R.value.style.chart.legend.showValue ? ": " : ""}${R.value.style.chart.legend.showValue ? ue(R.value.style.chart.layout.dataLabels.formatter, e.value, re({
|
|
555
551
|
p: R.value.style.chart.layout.dataLabels.prefix,
|
|
@@ -559,12 +555,12 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
559
555
|
}), {
|
|
560
556
|
datapoint: e,
|
|
561
557
|
seriesIndex: t
|
|
562
|
-
}) : ""}${R.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${R.value.style.chart.legend.showValue ? " (" : ""}- %${R.value.style.chart.legend.showValue ? ")" : ""}` : `${R.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value /
|
|
563
|
-
v: e.value /
|
|
558
|
+
}) : ""}${R.value.style.chart.legend.showPercentage ? A.value.includes(e.uid) ? `${R.value.style.chart.legend.showValue ? " (" : ""}- %${R.value.style.chart.legend.showValue ? ")" : ""}` : `${R.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / ur.value) ? "-" : re({
|
|
559
|
+
v: e.value / ur.value * 100,
|
|
564
560
|
s: "%",
|
|
565
561
|
r: R.value.style.chart.legend.roundingPercentage
|
|
566
562
|
})}${R.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
567
|
-
}))),
|
|
563
|
+
}))), ur = d(() => Z.value.map((e) => e.subtotal).reduce((e, t) => e + t, 0)), dr = d(() => ({
|
|
568
564
|
cy: "donut-div-legend",
|
|
569
565
|
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
570
566
|
color: R.value.style.chart.legend.color,
|
|
@@ -572,29 +568,29 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
572
568
|
paddingBottom: 12,
|
|
573
569
|
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
574
570
|
}));
|
|
575
|
-
function
|
|
576
|
-
A.value.length ? A.value = [] :
|
|
571
|
+
function fr() {
|
|
572
|
+
A.value.length ? A.value = [] : lr.value.forEach((e) => {
|
|
577
573
|
A.value.push(e.uid);
|
|
578
|
-
}),
|
|
574
|
+
}), wn("selectLegend", Zn.value);
|
|
579
575
|
}
|
|
580
|
-
function
|
|
581
|
-
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e),
|
|
576
|
+
function pr(e) {
|
|
577
|
+
if (A.value.includes(e)) A.value = A.value.filter((t) => t !== e), wn("selectLegend", Zn.value);
|
|
582
578
|
else {
|
|
583
579
|
if (A.value.length === K.value.length - 1) return;
|
|
584
|
-
A.value.push(e),
|
|
580
|
+
A.value.push(e), wn("selectLegend", Zn.value);
|
|
585
581
|
}
|
|
586
|
-
N.value &&
|
|
582
|
+
N.value && cr(Z.value.find((e, t) => t === sr.value));
|
|
587
583
|
}
|
|
588
|
-
function
|
|
584
|
+
function mr(e) {
|
|
589
585
|
return K.value.length ? K.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiDonutEvolution - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiDonutEvolution - There are no series to show."), null);
|
|
590
586
|
}
|
|
591
|
-
function
|
|
592
|
-
let t =
|
|
593
|
-
t !== null && A.value.includes(t.uid) &&
|
|
587
|
+
function hr(e) {
|
|
588
|
+
let t = mr(e);
|
|
589
|
+
t !== null && A.value.includes(t.uid) && pr(t.uid);
|
|
594
590
|
}
|
|
595
|
-
function
|
|
596
|
-
let t =
|
|
597
|
-
t !== null && (A.value.includes(t.uid) ||
|
|
591
|
+
function gr(e) {
|
|
592
|
+
let t = mr(e);
|
|
593
|
+
t !== null && (A.value.includes(t.uid) || pr(t.uid));
|
|
598
594
|
}
|
|
599
595
|
let Q = d(() => {
|
|
600
596
|
let e = [""].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => ({
|
|
@@ -611,7 +607,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
611
607
|
return {
|
|
612
608
|
head: e,
|
|
613
609
|
body: t,
|
|
614
|
-
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${
|
|
610
|
+
bodyA11y: t.map((e) => e.map((t, n) => n === 0 || n === e.length - 1 ? t : `${rr(t.value ?? 0, null, n)} (${t.percentage.toFixed(1)}%)`)),
|
|
615
611
|
config: {
|
|
616
612
|
th: {
|
|
617
613
|
backgroundColor: R.value.table.th.backgroundColor,
|
|
@@ -628,11 +624,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
628
624
|
colNames: [R.value.table.columnNames.period].concat(K.value.filter((e) => !A.value.includes(e.uid)).map((e) => e.name), R.value.table.columnNames.total)
|
|
629
625
|
};
|
|
630
626
|
});
|
|
631
|
-
function
|
|
627
|
+
function _r() {
|
|
632
628
|
return K.value;
|
|
633
629
|
}
|
|
634
|
-
function
|
|
635
|
-
|
|
630
|
+
function vr(e = null) {
|
|
631
|
+
Ge(() => {
|
|
636
632
|
let t = [
|
|
637
633
|
[R.value.style.chart.title.text],
|
|
638
634
|
[R.value.style.chart.title.subtitle.text],
|
|
@@ -645,34 +641,34 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
645
641
|
});
|
|
646
642
|
}
|
|
647
643
|
let $ = S(!1);
|
|
648
|
-
function
|
|
649
|
-
$.value = e,
|
|
644
|
+
function yr(e) {
|
|
645
|
+
$.value = e, tn.value += 1;
|
|
650
646
|
}
|
|
651
|
-
function
|
|
647
|
+
function br() {
|
|
652
648
|
H.value.showTable = !H.value.showTable;
|
|
653
649
|
}
|
|
654
|
-
let
|
|
655
|
-
function
|
|
656
|
-
|
|
650
|
+
let xr = S(!1);
|
|
651
|
+
function Sr() {
|
|
652
|
+
xr.value = !xr.value;
|
|
657
653
|
}
|
|
658
|
-
function
|
|
654
|
+
function Cr(e) {
|
|
659
655
|
return e.proportion * 100 > R.value.style.chart.donuts.hover.hideLabelsUnderValue;
|
|
660
656
|
}
|
|
661
|
-
let
|
|
662
|
-
function
|
|
663
|
-
|
|
657
|
+
let wr = S([]), Tr = S({}), Er = S(null);
|
|
658
|
+
function Dr(e) {
|
|
659
|
+
wr.value = e.donut.map((e) => ({
|
|
664
660
|
name: e.name,
|
|
665
661
|
values: [e.value],
|
|
666
662
|
color: e.color
|
|
667
|
-
})),
|
|
663
|
+
})), Tr.value = ie({
|
|
668
664
|
...R.value.style.chart.dialog.donutChart,
|
|
669
665
|
responsive: !0,
|
|
670
666
|
theme: R.value.theme
|
|
671
|
-
}),
|
|
667
|
+
}), Er.value && Er.value.open();
|
|
672
668
|
}
|
|
673
|
-
async function
|
|
669
|
+
async function Or({ scale: e = 2 } = {}) {
|
|
674
670
|
if (!P.value) return;
|
|
675
|
-
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
671
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await De({
|
|
676
672
|
domElement: P.value,
|
|
677
673
|
base64: !0,
|
|
678
674
|
img: !0,
|
|
@@ -687,8 +683,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
687
683
|
aspectRatio: r
|
|
688
684
|
};
|
|
689
685
|
}
|
|
690
|
-
|
|
691
|
-
timeLabelsEls:
|
|
686
|
+
Ee({
|
|
687
|
+
timeLabelsEls: cn,
|
|
692
688
|
timeLabels: J,
|
|
693
689
|
slicer: V,
|
|
694
690
|
configRef: R,
|
|
@@ -716,10 +712,10 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
716
712
|
height: d(() => B.value.height),
|
|
717
713
|
rotation: R.value.style.chart.layout.grid.xAxis.dataLabels.autoRotate.angle
|
|
718
714
|
});
|
|
719
|
-
let
|
|
715
|
+
let kr = d(() => {
|
|
720
716
|
let e = R.value.table.useDialog && !R.value.table.show, t = H.value.showTable;
|
|
721
717
|
return {
|
|
722
|
-
component: e ?
|
|
718
|
+
component: e ? Jt : Vt,
|
|
723
719
|
title: `${R.value.style.chart.title.text}${R.value.style.chart.title.subtitle.text ? `: ${R.value.style.chart.title.subtitle.text}` : ""}`,
|
|
724
720
|
props: e ? {
|
|
725
721
|
backgroundColor: R.value.table.th.backgroundColor,
|
|
@@ -747,51 +743,51 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
747
743
|
}
|
|
748
744
|
};
|
|
749
745
|
});
|
|
750
|
-
|
|
746
|
+
Ze(() => H.value.showTable, (e) => {
|
|
751
747
|
R.value.table.show || (e && R.value.table.useDialog && F.value ? F.value.open() : "close" in F.value && F.value.close());
|
|
752
748
|
});
|
|
753
|
-
function
|
|
754
|
-
H.value.showTable = !1,
|
|
749
|
+
function Ar() {
|
|
750
|
+
H.value.showTable = !1, fn.value && fn.value.setTableIconState(!1);
|
|
755
751
|
}
|
|
756
|
-
let
|
|
752
|
+
let jr = d(() => lr.value.map((e) => ({
|
|
757
753
|
...e,
|
|
758
754
|
name: e.display
|
|
759
|
-
}))),
|
|
760
|
-
svg:
|
|
755
|
+
}))), Mr = d(() => R.value.style.chart.backgroundColor), Nr = d(() => R.value.style.chart.legend), { exportSvg: Pr, getSvg: Fr } = Se({
|
|
756
|
+
svg: zn,
|
|
761
757
|
title: d(() => R.value.style.chart.title),
|
|
762
|
-
legend:
|
|
763
|
-
legendItems:
|
|
764
|
-
backgroundColor:
|
|
758
|
+
legend: Nr,
|
|
759
|
+
legendItems: jr,
|
|
760
|
+
backgroundColor: Mr
|
|
765
761
|
});
|
|
766
|
-
async function
|
|
767
|
-
|
|
762
|
+
async function Ir({ isCb: e }) {
|
|
763
|
+
mn.value = !0, await Ge();
|
|
768
764
|
try {
|
|
769
765
|
if (e) {
|
|
770
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
766
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Fr();
|
|
771
767
|
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
772
768
|
blob: e,
|
|
773
769
|
url: t,
|
|
774
770
|
text: n,
|
|
775
771
|
dataUrl: r
|
|
776
772
|
}));
|
|
777
|
-
} else await Promise.resolve(
|
|
773
|
+
} else await Promise.resolve(Pr());
|
|
778
774
|
} finally {
|
|
779
|
-
|
|
775
|
+
mn.value = !1;
|
|
780
776
|
}
|
|
781
777
|
}
|
|
782
|
-
function
|
|
778
|
+
function Lr(e) {
|
|
783
779
|
if (e?.stage === "start") {
|
|
784
|
-
|
|
780
|
+
pn.value = !0;
|
|
785
781
|
return;
|
|
786
782
|
}
|
|
787
783
|
if (e?.stage === "end") {
|
|
788
|
-
|
|
784
|
+
pn.value = !1;
|
|
789
785
|
return;
|
|
790
786
|
}
|
|
791
|
-
|
|
787
|
+
Wn();
|
|
792
788
|
}
|
|
793
|
-
async function
|
|
794
|
-
if (
|
|
789
|
+
async function Rr() {
|
|
790
|
+
if (wn("copyAlt", {
|
|
795
791
|
config: R.value,
|
|
796
792
|
dataset: Z.value
|
|
797
793
|
}), !R.value.userOptions.callbacks.altCopy) {
|
|
@@ -803,14 +799,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
803
799
|
dataset: Z.value
|
|
804
800
|
}));
|
|
805
801
|
}
|
|
806
|
-
function
|
|
807
|
-
L.value = null,
|
|
802
|
+
function zr() {
|
|
803
|
+
L.value = null, Cn.value = !0;
|
|
808
804
|
}
|
|
809
|
-
function
|
|
810
|
-
L.value = null, j.value = null, M.value = null,
|
|
805
|
+
function Br() {
|
|
806
|
+
L.value = null, j.value = null, M.value = null, Cn.value = !1;
|
|
811
807
|
}
|
|
812
|
-
function
|
|
813
|
-
if (!
|
|
808
|
+
function Vr(e) {
|
|
809
|
+
if (!zn.value || xr.value || document.activeElement !== zn.value || !Z.value.length) return;
|
|
814
810
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
815
811
|
if (!t && !n && !r && !i) return;
|
|
816
812
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
@@ -821,49 +817,49 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
821
817
|
if (L.value === null) return;
|
|
822
818
|
let e = Z.value[L.value];
|
|
823
819
|
if (!e) return;
|
|
824
|
-
|
|
820
|
+
cr(e, L.value);
|
|
825
821
|
return;
|
|
826
822
|
}
|
|
827
823
|
let a = L.value, o = j.value, s = a !== null && a >= 0 && a < Z.value.length, c = o !== null && o >= 0 && o < Z.value.length;
|
|
828
824
|
s ? n ? (a += 1, a >= Z.value.length && (a = 0)) : t && (--a, a < 0 && (a = Z.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value.length && (a = 0), a < 0 && (a = Z.value.length - 1)) : a = n ? 0 : Z.value.length - 1;
|
|
829
825
|
let l = Z.value[a];
|
|
830
|
-
l &&
|
|
826
|
+
l && or(l);
|
|
831
827
|
}
|
|
832
|
-
let
|
|
828
|
+
let Hr = d(() => ({
|
|
833
829
|
headers: Q.value?.colNames ?? [],
|
|
834
830
|
rows: Q.value?.bodyA11y ?? []
|
|
835
831
|
}));
|
|
836
|
-
return
|
|
837
|
-
getData:
|
|
838
|
-
getImage:
|
|
839
|
-
generatePdf:
|
|
840
|
-
generateCsv:
|
|
841
|
-
generateImage:
|
|
842
|
-
generateSvg:
|
|
843
|
-
hideSeries:
|
|
844
|
-
showSeries:
|
|
845
|
-
toggleTable:
|
|
846
|
-
toggleAnnotator:
|
|
847
|
-
toggleFullscreen:
|
|
848
|
-
copyAlt:
|
|
832
|
+
return ke({
|
|
833
|
+
getData: _r,
|
|
834
|
+
getImage: Or,
|
|
835
|
+
generatePdf: Un,
|
|
836
|
+
generateCsv: vr,
|
|
837
|
+
generateImage: Wn,
|
|
838
|
+
generateSvg: Ir,
|
|
839
|
+
hideSeries: gr,
|
|
840
|
+
showSeries: hr,
|
|
841
|
+
toggleTable: br,
|
|
842
|
+
toggleAnnotator: Sr,
|
|
843
|
+
toggleFullscreen: yr,
|
|
844
|
+
copyAlt: Rr
|
|
849
845
|
}), (e, t) => (x(), m("div", {
|
|
850
846
|
ref_key: "donutEvolutionChart",
|
|
851
847
|
ref: P,
|
|
852
848
|
class: v(`vue-data-ui-component vue-ui-donut-evolution ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
853
849
|
style: b(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.chart.backgroundColor}`),
|
|
854
850
|
id: k.value,
|
|
855
|
-
onMouseenter: t[5] ||= () => E(
|
|
856
|
-
onMouseleave: t[6] ||= () => E(
|
|
851
|
+
onMouseenter: t[5] ||= () => E(Ln)(!0),
|
|
852
|
+
onMouseleave: t[6] ||= () => E(Ln)(!1)
|
|
857
853
|
}, [
|
|
858
854
|
h("div", {
|
|
859
855
|
id: `chart-instructions-${k.value}`,
|
|
860
856
|
class: "sr-only"
|
|
861
|
-
}, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
862
|
-
|
|
857
|
+
}, [h("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, tt),
|
|
858
|
+
Hr.value?.rows?.length ? (x(), f(Pe, {
|
|
863
859
|
key: 0,
|
|
864
860
|
uid: k.value,
|
|
865
|
-
head:
|
|
866
|
-
body:
|
|
861
|
+
head: Hr.value.headers,
|
|
862
|
+
body: Hr.value.rows,
|
|
867
863
|
notice: R.value.a11y.translations.tableAvailable,
|
|
868
864
|
caption: R.value.a11y.translations.tableCaption
|
|
869
865
|
}, null, 8, [
|
|
@@ -873,14 +869,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
873
869
|
"notice",
|
|
874
870
|
"caption"
|
|
875
871
|
])) : p("", !0),
|
|
876
|
-
R.value.userOptions.buttons.annotator ? (x(), f(E(
|
|
872
|
+
R.value.userOptions.buttons.annotator ? (x(), f(E(Gt), {
|
|
877
873
|
key: 1,
|
|
878
|
-
svgRef: E(
|
|
874
|
+
svgRef: E(zn),
|
|
879
875
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
880
876
|
color: R.value.style.chart.color,
|
|
881
|
-
active:
|
|
877
|
+
active: xr.value,
|
|
882
878
|
isCursorPointer: z.value,
|
|
883
|
-
onClose:
|
|
879
|
+
onClose: Sr
|
|
884
880
|
}, {
|
|
885
881
|
"annotator-action-close": D(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
886
882
|
"annotator-action-color": D(({ color: t }) => [w(e.$slots, "annotator-action-color", y(_({ color: t })), void 0, !0)]),
|
|
@@ -896,21 +892,21 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
896
892
|
"active",
|
|
897
893
|
"isCursorPointer"
|
|
898
894
|
])) : p("", !0),
|
|
899
|
-
|
|
895
|
+
Gn.value ? (x(), m("div", {
|
|
900
896
|
key: 2,
|
|
901
897
|
ref_key: "noTitle",
|
|
902
|
-
ref:
|
|
898
|
+
ref: en,
|
|
903
899
|
class: "vue-data-ui-no-title-space",
|
|
904
900
|
style: "height:36px; width: 100%;background:transparent"
|
|
905
901
|
}, null, 512)) : p("", !0),
|
|
906
902
|
R.value.style.chart.title.text ? (x(), m("div", {
|
|
907
903
|
key: 3,
|
|
908
904
|
ref_key: "chartTitle",
|
|
909
|
-
ref:
|
|
905
|
+
ref: hn,
|
|
910
906
|
style: "width:100%;background:transparent;padding-bottom:24px",
|
|
911
|
-
onMouseleave:
|
|
912
|
-
}, [(x(), f(
|
|
913
|
-
key: `title_${
|
|
907
|
+
onMouseleave: ar
|
|
908
|
+
}, [(x(), f(Oe, {
|
|
909
|
+
key: `title_${rn.value}`,
|
|
914
910
|
config: {
|
|
915
911
|
title: {
|
|
916
912
|
cy: "donut-evolution-div-title",
|
|
@@ -922,15 +918,15 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
922
918
|
}
|
|
923
919
|
}
|
|
924
920
|
}, null, 8, ["config"]))], 544)) : p("", !0),
|
|
925
|
-
h("div", { id: `legend-top-${k.value}` }, null, 8,
|
|
926
|
-
R.value.userOptions.show &&
|
|
921
|
+
h("div", { id: `legend-top-${k.value}` }, null, 8, nt),
|
|
922
|
+
R.value.userOptions.show && Tn.value && (E(Rn) || E(In)) ? (x(), f(E(Kt), {
|
|
927
923
|
ref_key: "userOptionsRef",
|
|
928
|
-
ref:
|
|
929
|
-
key: `user_options_${
|
|
924
|
+
ref: fn,
|
|
925
|
+
key: `user_options_${tn.value}`,
|
|
930
926
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
931
927
|
color: R.value.style.chart.color,
|
|
932
|
-
isPrinting: E(
|
|
933
|
-
isImaging: E(
|
|
928
|
+
isPrinting: E(Vn),
|
|
929
|
+
isImaging: E(Hn),
|
|
934
930
|
uid: k.value,
|
|
935
931
|
hasPdf: R.value.userOptions.buttons.pdf,
|
|
936
932
|
hasImg: R.value.userOptions.buttons.img,
|
|
@@ -944,21 +940,21 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
944
940
|
chartElement: P.value,
|
|
945
941
|
position: R.value.userOptions.position,
|
|
946
942
|
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
947
|
-
isAnnotation:
|
|
943
|
+
isAnnotation: xr.value,
|
|
948
944
|
callbacks: R.value.userOptions.callbacks,
|
|
949
945
|
printScale: R.value.userOptions.print.scale,
|
|
950
946
|
tableDialog: R.value.table.useDialog,
|
|
951
947
|
isCursorPointer: z.value,
|
|
952
|
-
onToggleFullscreen:
|
|
953
|
-
onGeneratePdf: E(
|
|
954
|
-
onGenerateCsv:
|
|
955
|
-
onGenerateImage:
|
|
956
|
-
onGenerateSvg:
|
|
957
|
-
onToggleTable:
|
|
958
|
-
onToggleAnnotator:
|
|
959
|
-
onCopyAlt:
|
|
960
|
-
style: b({ visibility: E(
|
|
961
|
-
},
|
|
948
|
+
onToggleFullscreen: yr,
|
|
949
|
+
onGeneratePdf: E(Un),
|
|
950
|
+
onGenerateCsv: vr,
|
|
951
|
+
onGenerateImage: Lr,
|
|
952
|
+
onGenerateSvg: Ir,
|
|
953
|
+
onToggleTable: br,
|
|
954
|
+
onToggleAnnotator: Sr,
|
|
955
|
+
onCopyAlt: Rr,
|
|
956
|
+
style: b({ visibility: E(Rn) ? E(In) ? "visible" : "hidden" : "visible" })
|
|
957
|
+
}, Ve({ _: 2 }, [
|
|
962
958
|
e.$slots.menuIcon ? {
|
|
963
959
|
name: "menuIcon",
|
|
964
960
|
fn: D(({ isOpen: t, color: n }) => [w(e.$slots, "menuIcon", y(_({
|
|
@@ -1049,9 +1045,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1049
1045
|
"onGeneratePdf",
|
|
1050
1046
|
"style"
|
|
1051
1047
|
])) : p("", !0),
|
|
1052
|
-
h("div",
|
|
1048
|
+
h("div", rt, [(x(), m("svg", {
|
|
1053
1049
|
ref_key: "svgRef",
|
|
1054
|
-
ref:
|
|
1050
|
+
ref: zn,
|
|
1055
1051
|
xmlns: E(pe),
|
|
1056
1052
|
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1057
1053
|
class: v({
|
|
@@ -1061,11 +1057,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1061
1057
|
viewBox: `0 0 ${G.value.absoluteWidth} ${G.value.absoluteHeight}`,
|
|
1062
1058
|
style: b(`max-width:100%; overflow: visible; background:transparent;color:${R.value.style.chart.color};`),
|
|
1063
1059
|
tabindex: "0",
|
|
1064
|
-
onFocus:
|
|
1065
|
-
onBlur:
|
|
1066
|
-
onKeydown:
|
|
1060
|
+
onFocus: zr,
|
|
1061
|
+
onBlur: Br,
|
|
1062
|
+
onKeydown: Vr
|
|
1067
1063
|
}, [
|
|
1068
|
-
|
|
1064
|
+
Ue(E(Wt)),
|
|
1069
1065
|
e.$slots["chart-background"] ? (x(), m("foreignObject", {
|
|
1070
1066
|
key: 0,
|
|
1071
1067
|
x: G.value.left,
|
|
@@ -1073,8 +1069,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1073
1069
|
width: G.value.width,
|
|
1074
1070
|
height: G.value.height,
|
|
1075
1071
|
style: { pointerEvents: "none" }
|
|
1076
|
-
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1077
|
-
h("defs", null, [
|
|
1072
|
+
}, [w(e.$slots, "chart-background", {}, void 0, !0)], 8, at)) : p("", !0),
|
|
1073
|
+
h("defs", null, [Ue(Me, {
|
|
1078
1074
|
t: "linear",
|
|
1079
1075
|
id: `hover_${k.value}`,
|
|
1080
1076
|
x1: "0%",
|
|
@@ -1090,7 +1086,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1090
1086
|
E(ge)(R.value.style.chart.layout.highlighter.color, R.value.style.chart.layout.highlighter.opacity),
|
|
1091
1087
|
1
|
|
1092
1088
|
]]
|
|
1093
|
-
}, null, 8, ["id", "stops"]),
|
|
1089
|
+
}, null, 8, ["id", "stops"]), Ue(Me, {
|
|
1094
1090
|
t: "radial",
|
|
1095
1091
|
id: `focus_${k.value}`,
|
|
1096
1092
|
stops: [
|
|
@@ -1111,7 +1107,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1111
1107
|
]
|
|
1112
1108
|
]
|
|
1113
1109
|
}, null, 8, ["id", "stops"])]),
|
|
1114
|
-
R.value.style.chart.layout.grid.show ? (x(), m("g",
|
|
1110
|
+
R.value.style.chart.layout.grid.show ? (x(), m("g", ot, [
|
|
1115
1111
|
h("line", {
|
|
1116
1112
|
x1: W.value ? G.value.right : G.value.left,
|
|
1117
1113
|
x2: W.value ? G.value.right : G.value.left,
|
|
@@ -1120,7 +1116,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1120
1116
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1121
1117
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1122
1118
|
"stroke-linecap": "round"
|
|
1123
|
-
}, null, 8,
|
|
1119
|
+
}, null, 8, st),
|
|
1124
1120
|
h("line", {
|
|
1125
1121
|
x1: G.value.left,
|
|
1126
1122
|
x2: G.value.right,
|
|
@@ -1129,8 +1125,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1129
1125
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1130
1126
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1131
1127
|
"stroke-linecap": "round"
|
|
1132
|
-
}, null, 8,
|
|
1133
|
-
R.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g",
|
|
1128
|
+
}, null, 8, ct),
|
|
1129
|
+
R.value.style.chart.layout.grid.showVerticalLines ? (x(), m("g", lt, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("line", {
|
|
1134
1130
|
x1: G.value.left + (t + 1) * Y.value,
|
|
1135
1131
|
x2: G.value.left + (t + 1) * Y.value,
|
|
1136
1132
|
y1: G.value.top,
|
|
@@ -1138,47 +1134,46 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1138
1134
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1139
1135
|
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1140
1136
|
"stroke-linecap": "round"
|
|
1141
|
-
}, null, 8,
|
|
1137
|
+
}, null, 8, ut))), 256))])) : p("", !0)
|
|
1142
1138
|
])) : p("", !0),
|
|
1143
1139
|
h("g", null, [R.value.style.chart.layout.grid.axis.yLabel ? (x(), m("text", {
|
|
1144
1140
|
key: 0,
|
|
1145
1141
|
ref_key: "yAxisLabel",
|
|
1146
|
-
ref:
|
|
1142
|
+
ref: un,
|
|
1147
1143
|
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1148
1144
|
fill: R.value.style.chart.layout.grid.axis.color,
|
|
1149
1145
|
transform: `translate(${W.value ? G.value.absoluteWidth - R.value.style.chart.layout.grid.axis.fontSize / 2 - R.value.style.chart.layout.grid.axis.yLabelOffsetX : R.value.style.chart.layout.grid.axis.fontSize}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
|
|
1150
1146
|
"text-anchor": "middle",
|
|
1151
1147
|
style: { transition: "none" }
|
|
1152
|
-
}, T(R.value.style.chart.layout.grid.axis.yLabel), 9,
|
|
1148
|
+
}, T(R.value.style.chart.layout.grid.axis.yLabel), 9, dt)) : p("", !0), R.value.style.chart.layout.grid.axis.xLabel ? (x(), m("text", {
|
|
1153
1149
|
key: 1,
|
|
1154
1150
|
ref_key: "xAxisLabel",
|
|
1155
|
-
ref:
|
|
1151
|
+
ref: ln,
|
|
1156
1152
|
"text-anchor": "middle",
|
|
1157
1153
|
x: G.value.absoluteWidth / 2,
|
|
1158
1154
|
y: G.value.absoluteHeight - 3,
|
|
1159
1155
|
"font-size": R.value.style.chart.layout.grid.axis.fontSize,
|
|
1160
1156
|
fill: R.value.style.chart.layout.grid.axis.color
|
|
1161
|
-
}, T(R.value.style.chart.layout.grid.axis.xLabel), 9,
|
|
1157
|
+
}, T(R.value.style.chart.layout.grid.axis.xLabel), 9, ft)) : p("", !0)]),
|
|
1162
1158
|
R.value.style.chart.layout.grid.yAxis.dataLabels.show ? (x(), m("g", {
|
|
1163
1159
|
key: 2,
|
|
1164
1160
|
ref_key: "scaleLabels",
|
|
1165
|
-
ref:
|
|
1161
|
+
ref: sn,
|
|
1166
1162
|
class: v({
|
|
1167
1163
|
"donut-opacity": !0,
|
|
1168
1164
|
"donut-behind": j.value !== null
|
|
1169
1165
|
})
|
|
1170
|
-
}, [(x(!0), m(u, null, C(
|
|
1166
|
+
}, [(x(!0), m(u, null, C(nr.value, (e, t) => (x(), m("g", { key: `sl_${t}` }, [e.value >= X.value.min && e.value <= X.value.max ? (x(), m("path", {
|
|
1171
1167
|
key: 0,
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
y1: e.y,
|
|
1175
|
-
y2: e.y,
|
|
1168
|
+
class: v({ "vue-data-ui-datalabel": E(Qt) }),
|
|
1169
|
+
d: `M${W.value ? G.value.right : G.value.left},${e.y} ${W.value ? G.value.right + 5 : G.value.left - 5},${e.y}`,
|
|
1176
1170
|
stroke: R.value.style.chart.layout.grid.stroke,
|
|
1177
|
-
"stroke-width": R.value.style.chart.layout.grid.strokeWidth
|
|
1178
|
-
|
|
1171
|
+
"stroke-width": R.value.style.chart.layout.grid.strokeWidth,
|
|
1172
|
+
"stroke-linecap": "round"
|
|
1173
|
+
}, null, 10, pt)) : p("", !0), e.value >= X.value.min && e.value <= X.value.max ? (x(), m("text", {
|
|
1179
1174
|
key: 1,
|
|
1180
|
-
|
|
1181
|
-
|
|
1175
|
+
class: v({ "vue-data-ui-datalabel": E(Qt) }),
|
|
1176
|
+
transform: `translate(${W.value ? G.value.right - R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX + 7 : G.value.left + R.value.style.chart.layout.grid.yAxis.dataLabels.offsetX - 7}, ${e.y + R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize / 3})`,
|
|
1182
1177
|
"font-size": R.value.style.chart.layout.grid.yAxis.dataLabels.fontSize,
|
|
1183
1178
|
"text-anchor": W.value ? "start" : "end",
|
|
1184
1179
|
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
@@ -1191,13 +1186,13 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1191
1186
|
}), {
|
|
1192
1187
|
datapoint: e,
|
|
1193
1188
|
seriesIndex: t
|
|
1194
|
-
}) : ""),
|
|
1189
|
+
}) : ""), 11, mt)) : p("", !0)]))), 128))], 2)) : p("", !0),
|
|
1195
1190
|
R.value.style.chart.layout.grid.xAxis.dataLabels.show ? (x(), m("g", {
|
|
1196
1191
|
key: 3,
|
|
1197
1192
|
ref_key: "timeLabelsEls",
|
|
1198
|
-
ref:
|
|
1193
|
+
ref: cn,
|
|
1199
1194
|
class: v({ "donut-opacity": !0 })
|
|
1200
|
-
}, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("g", null, [(R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === q.value - 1) || !R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && J.value[t] && J.value[t].text ? (x(), m("g",
|
|
1195
|
+
}, [(x(!0), m(u, null, C(V.value.end - V.value.start, (e, t) => (x(), m("g", null, [(R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast && (t === 0 || t === q.value - 1) || !R.value.style.chart.layout.grid.xAxis.dataLabels.showOnlyFirstAndLast) && J.value[t] && J.value[t].text ? (x(), m("g", ht, [String(J.value[t].text).includes("\n") ? (x(), m("text", {
|
|
1201
1196
|
key: 1,
|
|
1202
1197
|
class: "vue-data-ui-time-label",
|
|
1203
1198
|
"text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -1211,14 +1206,14 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1211
1206
|
x: 0,
|
|
1212
1207
|
y: 0
|
|
1213
1208
|
})
|
|
1214
|
-
}, null, 8,
|
|
1209
|
+
}, null, 8, _t)) : (x(), m("text", {
|
|
1215
1210
|
key: 0,
|
|
1216
1211
|
class: "vue-data-ui-time-label",
|
|
1217
1212
|
"text-anchor": R.value.style.chart.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : R.value.style.chart.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
|
|
1218
1213
|
"font-size": R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize,
|
|
1219
1214
|
fill: R.value.style.chart.layout.grid.xAxis.dataLabels.color,
|
|
1220
1215
|
transform: `translate(${G.value.left + Y.value * t + Y.value / 2}, ${G.value.bottom + R.value.style.chart.layout.grid.xAxis.dataLabels.fontSize + R.value.style.chart.layout.grid.xAxis.dataLabels.offsetY}), rotate(${R.value.style.chart.layout.grid.xAxis.dataLabels.rotation})`
|
|
1221
|
-
}, T(J.value[t].text || ""), 9,
|
|
1216
|
+
}, T(J.value[t].text || ""), 9, gt))])) : p("", !0)]))), 256))], 512)) : p("", !0),
|
|
1222
1217
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", null, [R.value.style.chart.layout.line.show && t < Z.value.length - 1 && ![e.subtotal, Z.value[t + 1].subtotal].includes(null) ? (x(), m("line", {
|
|
1223
1218
|
key: 0,
|
|
1224
1219
|
class: v({
|
|
@@ -1233,18 +1228,18 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1233
1228
|
"stroke-width": R.value.style.chart.layout.line.strokeWidth,
|
|
1234
1229
|
"stroke-linecap": "round",
|
|
1235
1230
|
"stroke-linejoin": "round"
|
|
1236
|
-
}, null, 10,
|
|
1231
|
+
}, null, 10, vt)) : p("", !0), e.subtotal === null ? p("", !0) : (x(), m("g", yt, [e.subtotal ? (x(), m("circle", {
|
|
1237
1232
|
key: 0,
|
|
1238
1233
|
cx: e.x,
|
|
1239
1234
|
cy: e.y,
|
|
1240
1235
|
r: e.activeRadius,
|
|
1241
1236
|
fill: R.value.style.chart.backgroundColor
|
|
1242
|
-
}, null, 8,
|
|
1237
|
+
}, null, 8, bt)) : p("", !0)]))]))), 256)),
|
|
1243
1238
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1244
1239
|
"donut-opacity": !0,
|
|
1245
1240
|
"donut-behind": t !== j.value && j.value !== null
|
|
1246
|
-
}) }, [e.subtotal ? (x(), m("g",
|
|
1247
|
-
(x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [
|
|
1241
|
+
}) }, [e.subtotal ? (x(), m("g", xt, [j.value !== null && j.value === t ? (x(), m("g", St, [
|
|
1242
|
+
(x(!0), m(u, null, C(e.donutHover, (t) => (x(), m("g", null, [Cr(t) ? (x(), m("path", {
|
|
1248
1243
|
key: 0,
|
|
1249
1244
|
d: E(de)(t, {
|
|
1250
1245
|
x: t.center.endX,
|
|
@@ -1258,8 +1253,8 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1258
1253
|
"stroke-linecap": "round",
|
|
1259
1254
|
"stroke-linejoin": "round",
|
|
1260
1255
|
fill: "none"
|
|
1261
|
-
}, null, 8,
|
|
1262
|
-
(x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [
|
|
1256
|
+
}, null, 8, Ct)) : p("", !0)]))), 256)),
|
|
1257
|
+
(x(!0), m(u, null, C(e.donutHover, (t, n) => (x(), m("g", null, [Cr(t) ? (x(), m("text", {
|
|
1263
1258
|
key: 0,
|
|
1264
1259
|
"data-cy-hover-label": "",
|
|
1265
1260
|
"text-anchor": E(ae)(t, !0, 0).anchor,
|
|
@@ -1268,37 +1263,37 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1268
1263
|
fill: R.value.style.chart.layout.grid.yAxis.dataLabels.color,
|
|
1269
1264
|
"font-size": 8,
|
|
1270
1265
|
"font-weight": "bold"
|
|
1271
|
-
}, T(t.name) + ": " + T(
|
|
1266
|
+
}, T(t.name) + ": " + T(ir(t, e.donut)) + " (" + T(t.value === null ? "-" : rr(t.value, t, n)) + ") ", 9, wt)) : p("", !0)]))), 256)),
|
|
1272
1267
|
h("g", null, [h("circle", {
|
|
1273
1268
|
cx: e.x,
|
|
1274
1269
|
cy: e.y,
|
|
1275
1270
|
r: e.hoverRadius,
|
|
1276
1271
|
fill: R.value.style.chart.backgroundColor
|
|
1277
|
-
}, null, 8,
|
|
1272
|
+
}, null, 8, Tt)])
|
|
1278
1273
|
])) : p("", !0)])) : p("", !0)], 2))), 256)),
|
|
1279
1274
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1280
1275
|
"donut-opacity": !0,
|
|
1281
1276
|
"donut-behind": t !== j.value && j.value !== null
|
|
1282
|
-
}) }, [e.subtotal === null ? p("", !0) : (x(), m("g",
|
|
1277
|
+
}) }, [e.subtotal === null ? p("", !0) : (x(), m("g", Et, [e.subtotal === 0 ? (x(), m("circle", {
|
|
1283
1278
|
key: 0,
|
|
1284
1279
|
cx: e.x,
|
|
1285
1280
|
cy: e.y,
|
|
1286
1281
|
r: 3,
|
|
1287
1282
|
fill: R.value.style.chart.color
|
|
1288
|
-
}, null, 8,
|
|
1283
|
+
}, null, 8, Dt)) : j.value !== null && j.value === t ? (x(), m("g", Ot, [(x(!0), m(u, null, C(e.donutHover, (e, t) => (x(), m("path", {
|
|
1289
1284
|
d: e.arcSlice,
|
|
1290
1285
|
fill: `${e.color}`,
|
|
1291
1286
|
"stroke-width": 1,
|
|
1292
1287
|
stroke: R.value.style.chart.backgroundColor
|
|
1293
|
-
}, null, 8,
|
|
1288
|
+
}, null, 8, kt))), 256))])) : (x(), m("g", At, [(x(!0), m(u, null, C(e.donut, (e, t) => (x(), m("path", {
|
|
1294
1289
|
d: e.arcSlice,
|
|
1295
1290
|
fill: `${e.color}`,
|
|
1296
1291
|
"stroke-width": .5,
|
|
1297
1292
|
stroke: R.value.style.chart.backgroundColor
|
|
1298
|
-
}, null, 8,
|
|
1293
|
+
}, null, 8, jt))), 256))]))]))], 2))), 256)),
|
|
1299
1294
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("g", { class: v({
|
|
1300
1295
|
"donut-opacity": !0,
|
|
1301
|
-
"donut-behind": t !== j.value && j.value !== null ||
|
|
1296
|
+
"donut-behind": t !== j.value && j.value !== null || $t.value && t !== N.value.index
|
|
1302
1297
|
}) }, [e.subtotal !== null && R.value.style.chart.layout.dataLabels.show ? (x(), m("text", {
|
|
1303
1298
|
key: 0,
|
|
1304
1299
|
"text-anchor": "middle",
|
|
@@ -1307,16 +1302,16 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1307
1302
|
"font-size": R.value.style.chart.layout.dataLabels.fontSize,
|
|
1308
1303
|
"font-weight": "bold",
|
|
1309
1304
|
fill: R.value.style.chart.layout.dataLabels.color
|
|
1310
|
-
}, T(
|
|
1305
|
+
}, T(rr(e.subtotal, e, t)), 9, Mt)) : p("", !0)], 2))), 256)),
|
|
1311
1306
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
1312
1307
|
x: G.value.left + t * Y.value,
|
|
1313
1308
|
y: G.value.top,
|
|
1314
1309
|
width: Y.value,
|
|
1315
1310
|
height: G.value.height,
|
|
1316
|
-
fill: [j.value,
|
|
1317
|
-
class: v({ "donut-hover": z.value && e.subtotal && [j.value,
|
|
1311
|
+
fill: [j.value, sr.value].includes(e.index) ? `url(#hover_${k.value})` : "transparent",
|
|
1312
|
+
class: v({ "donut-hover": z.value && e.subtotal && [j.value, sr.value].includes(e.index) }),
|
|
1318
1313
|
style: { pointerEvents: "none" }
|
|
1319
|
-
}, null, 10,
|
|
1314
|
+
}, null, 10, Nt))), 256)),
|
|
1320
1315
|
(x(!0), m(u, null, C(Z.value, (e, t) => (x(), m("rect", {
|
|
1321
1316
|
"data-cy-trap": "",
|
|
1322
1317
|
x: G.value.left + t * Y.value,
|
|
@@ -1324,30 +1319,30 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1324
1319
|
width: Y.value,
|
|
1325
1320
|
height: G.value.height,
|
|
1326
1321
|
fill: "transparent",
|
|
1327
|
-
onMouseenter: (t) =>
|
|
1328
|
-
onMouseleave: (t) =>
|
|
1329
|
-
onClick: (n) =>
|
|
1322
|
+
onMouseenter: (t) => or(e),
|
|
1323
|
+
onMouseleave: (t) => ar(e),
|
|
1324
|
+
onClick: (n) => cr(e, t),
|
|
1330
1325
|
class: v({ "donut-hover": z.value && j.value === e.index && e.subtotal })
|
|
1331
|
-
}, null, 42,
|
|
1326
|
+
}, null, 42, Pt))), 256)),
|
|
1332
1327
|
w(e.$slots, "svg", { svg: {
|
|
1333
1328
|
...G.value,
|
|
1334
|
-
isPrintingImg: E(
|
|
1335
|
-
isPrintingSvg:
|
|
1329
|
+
isPrintingImg: E(Vn) || E(Hn) || pn.value,
|
|
1330
|
+
isPrintingSvg: mn.value
|
|
1336
1331
|
} }, void 0, !0)
|
|
1337
|
-
], 46,
|
|
1332
|
+
], 46, it)), e.$slots.hint ? (x(), m("div", Ft, [w(e.$slots, "hint", y(_({
|
|
1338
1333
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
1339
|
-
isVisible:
|
|
1334
|
+
isVisible: Cn.value
|
|
1340
1335
|
})), void 0, !0)])) : p("", !0)]),
|
|
1341
|
-
e.$slots.watermark ? (x(), m("div",
|
|
1336
|
+
e.$slots.watermark ? (x(), m("div", It, [w(e.$slots, "watermark", y(_({ isPrinting: E(Vn) || E(Hn) || pn.value || mn.value })), void 0, !0)])) : p("", !0),
|
|
1342
1337
|
h("div", {
|
|
1343
1338
|
ref_key: "chartSlicer",
|
|
1344
|
-
ref:
|
|
1339
|
+
ref: yn,
|
|
1345
1340
|
style: b(`width:100%;background:${R.value.style.chart.backgroundColor}`),
|
|
1346
1341
|
"data-dom-to-png-ignore": ""
|
|
1347
|
-
}, [q.value > 1 && R.value.style.chart.zoom.show ? (x(), f(
|
|
1342
|
+
}, [q.value > 1 && R.value.style.chart.zoom.show ? (x(), f(ze, {
|
|
1348
1343
|
ref_key: "slicerComponent",
|
|
1349
|
-
ref:
|
|
1350
|
-
key: `slicer_${
|
|
1344
|
+
ref: vn,
|
|
1345
|
+
key: `slicer_${nn.value}`,
|
|
1351
1346
|
background: R.value.style.chart.zoom.color,
|
|
1352
1347
|
borderColor: R.value.style.chart.backgroundColor,
|
|
1353
1348
|
fontSize: R.value.style.chart.zoom.fontSize,
|
|
@@ -1373,7 +1368,7 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1373
1368
|
focusRangeRatio: R.value.style.chart.zoom.focusRangeRatio,
|
|
1374
1369
|
isCursorPointer: z.value,
|
|
1375
1370
|
maxWidth: R.value.style.chart.zoom.maxWidth,
|
|
1376
|
-
onReset:
|
|
1371
|
+
onReset: Nn
|
|
1377
1372
|
}, {
|
|
1378
1373
|
"reset-action": D(({ reset: t }) => [w(e.$slots, "reset-action", y(_({ reset: t })), void 0, !0)]),
|
|
1379
1374
|
_: 3
|
|
@@ -1401,30 +1396,30 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1401
1396
|
"isCursorPointer",
|
|
1402
1397
|
"maxWidth"
|
|
1403
1398
|
])) : p("", !0)], 4),
|
|
1404
|
-
h("div", { id: `legend-bottom-${k.value}` }, null, 8,
|
|
1405
|
-
|
|
1399
|
+
h("div", { id: `legend-bottom-${k.value}` }, null, 8, Lt),
|
|
1400
|
+
dn.value && (R.value.style.chart.legend.show || e.$slots.legend) ? (x(), f(Be, {
|
|
1406
1401
|
key: 6,
|
|
1407
1402
|
to: R.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1408
1403
|
}, [h("div", {
|
|
1409
1404
|
ref_key: "chartLegend",
|
|
1410
|
-
ref:
|
|
1411
|
-
}, [w(e.$slots, "legend", { legend:
|
|
1412
|
-
key: `legend_${
|
|
1413
|
-
legendSet:
|
|
1414
|
-
config:
|
|
1415
|
-
onClickMarker: t[2] ||= ({ legend: e }) =>
|
|
1405
|
+
ref: gn
|
|
1406
|
+
}, [w(e.$slots, "legend", { legend: lr.value }, () => [R.value.style.chart.legend.show ? (x(), f(Le, {
|
|
1407
|
+
key: `legend_${on.value}`,
|
|
1408
|
+
legendSet: lr.value,
|
|
1409
|
+
config: dr.value,
|
|
1410
|
+
onClickMarker: t[2] ||= ({ legend: e }) => pr(e.uid)
|
|
1416
1411
|
}, {
|
|
1417
1412
|
item: D(({ legend: e, index: t }) => [h("div", {
|
|
1418
|
-
onClick: (t) =>
|
|
1413
|
+
onClick: (t) => pr(e.uid),
|
|
1419
1414
|
style: b(`opacity:${A.value.includes(e.uid) ? .5 : 1}`)
|
|
1420
|
-
}, T(e.display), 13,
|
|
1421
|
-
legendToggle: D(() => [
|
|
1415
|
+
}, T(e.display), 13, Rt)]),
|
|
1416
|
+
legendToggle: D(() => [lr.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(kn) ? (x(), f(Ne, {
|
|
1422
1417
|
key: 0,
|
|
1423
1418
|
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1424
1419
|
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
1425
1420
|
fontSize: R.value.style.chart.legend.fontSize,
|
|
1426
1421
|
checked: A.value.length > 0,
|
|
1427
|
-
onToggle:
|
|
1422
|
+
onToggle: fr
|
|
1428
1423
|
}, null, 8, [
|
|
1429
1424
|
"backgroundColor",
|
|
1430
1425
|
"color",
|
|
@@ -1436,27 +1431,27 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1436
1431
|
e.$slots.source ? (x(), m("div", {
|
|
1437
1432
|
key: 7,
|
|
1438
1433
|
ref_key: "source",
|
|
1439
|
-
ref:
|
|
1434
|
+
ref: _n,
|
|
1440
1435
|
dir: "auto"
|
|
1441
1436
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1442
|
-
|
|
1437
|
+
Tn.value && R.value.userOptions.buttons.table ? (x(), f(Je(kr.value.component), We({ key: 8 }, kr.value.props, {
|
|
1443
1438
|
ref_key: "tableUnit",
|
|
1444
1439
|
ref: F,
|
|
1445
|
-
onClose:
|
|
1446
|
-
}),
|
|
1447
|
-
content: D(() => [(x(), f(E(
|
|
1448
|
-
key: `table_${
|
|
1440
|
+
onClose: Ar
|
|
1441
|
+
}), Ve({
|
|
1442
|
+
content: D(() => [(x(), f(E(Ut), {
|
|
1443
|
+
key: `table_${an.value}`,
|
|
1449
1444
|
colNames: Q.value.colNames,
|
|
1450
1445
|
head: Q.value.head,
|
|
1451
1446
|
body: Q.value.body,
|
|
1452
1447
|
config: Q.value.config,
|
|
1453
|
-
title: R.value.table.useDialog ? "" :
|
|
1448
|
+
title: R.value.table.useDialog ? "" : kr.value.title,
|
|
1454
1449
|
withCloseButton: !R.value.table.useDialog,
|
|
1455
1450
|
isCursorPointer: z.value,
|
|
1456
|
-
onClose:
|
|
1451
|
+
onClose: Ar
|
|
1457
1452
|
}, {
|
|
1458
|
-
th: D(({ th: e }) => [
|
|
1459
|
-
td: D(({ td: e }) => [e.value === null ? (x(), m("span",
|
|
1453
|
+
th: D(({ th: e }) => [He(T(e.name ?? e), 1)]),
|
|
1454
|
+
td: D(({ td: e }) => [e.value === null ? (x(), m("span", zt, "-")) : (x(), m("b", Bt, T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.prefix) + T(!isNaN(e.value) && e.value !== null ? Number(e.value.toFixed(R.value.table.td.roundingValue)).toLocaleString() : e) + T(isNaN(e.value) ? "" : R.value.style.chart.layout.dataLabels.suffix), 1)), h("span", null, T(e.percentage && !isNaN(e.percentage) ? `(${Number(e.percentage.toFixed(R.value.table.td.roundingPercentage)).toLocaleString()}%)` : ""), 1)]),
|
|
1460
1455
|
_: 1
|
|
1461
1456
|
}, 8, [
|
|
1462
1457
|
"colNames",
|
|
@@ -1470,27 +1465,27 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1470
1465
|
_: 2
|
|
1471
1466
|
}, [R.value.table.useDialog ? {
|
|
1472
1467
|
name: "title",
|
|
1473
|
-
fn: D(() => [
|
|
1468
|
+
fn: D(() => [He(T(kr.value.title), 1)]),
|
|
1474
1469
|
key: "0"
|
|
1475
1470
|
} : void 0, R.value.table.useDialog ? {
|
|
1476
1471
|
name: "actions",
|
|
1477
1472
|
fn: D(() => [h("button", {
|
|
1478
1473
|
tabindex: "0",
|
|
1479
1474
|
class: "vue-ui-user-options-button",
|
|
1480
|
-
onClick: t[3] ||= (e) =>
|
|
1475
|
+
onClick: t[3] ||= (e) => vr(R.value.userOptions.callbacks.csv),
|
|
1481
1476
|
style: b({ cursor: z.value ? "cursor" : "default" })
|
|
1482
|
-
}, [
|
|
1477
|
+
}, [Ue(E(Ht), {
|
|
1483
1478
|
name: "fileCsv",
|
|
1484
|
-
stroke:
|
|
1479
|
+
stroke: kr.value.props.color
|
|
1485
1480
|
}, null, 8, ["stroke"])], 4)]),
|
|
1486
1481
|
key: "1"
|
|
1487
1482
|
} : void 0]), 1040)) : p("", !0),
|
|
1488
|
-
R.value.style.chart.dialog.show ? (x(), f(E(
|
|
1483
|
+
R.value.style.chart.dialog.show ? (x(), f(E(Jt), {
|
|
1489
1484
|
key: 9,
|
|
1490
1485
|
ref_key: "dialog",
|
|
1491
|
-
ref:
|
|
1486
|
+
ref: Er,
|
|
1492
1487
|
onClose: t[4] ||= (e) => {
|
|
1493
|
-
N.value = null,
|
|
1488
|
+
N.value = null, $t.value = !1, M.value = null, j.value = null, sr.value = null;
|
|
1494
1489
|
},
|
|
1495
1490
|
backgroundColor: R.value.style.chart.dialog.backgroundColor,
|
|
1496
1491
|
color: R.value.style.chart.dialog.color,
|
|
@@ -1499,11 +1494,11 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1499
1494
|
isFullscreen: $.value,
|
|
1500
1495
|
fullscreenParent: P.value
|
|
1501
1496
|
}, {
|
|
1502
|
-
title: D(() => [
|
|
1503
|
-
content: D(() => [N.value ? (x(), f(E(
|
|
1497
|
+
title: D(() => [He(T(J.value[Number(N.value.index)] ? J.value[Number(N.value.index)].text : ""), 1)]),
|
|
1498
|
+
content: D(() => [N.value ? (x(), f(E(qt), {
|
|
1504
1499
|
key: 0,
|
|
1505
|
-
config:
|
|
1506
|
-
dataset:
|
|
1500
|
+
config: Tr.value,
|
|
1501
|
+
dataset: wr.value
|
|
1507
1502
|
}, null, 8, ["config", "dataset"])) : p("", !0)]),
|
|
1508
1503
|
_: 1
|
|
1509
1504
|
}, 8, [
|
|
@@ -1514,9 +1509,9 @@ var Qe = /* @__PURE__ */ e({ default: () => Bt }), $e = ["id"], et = ["id"], tt
|
|
|
1514
1509
|
"isFullscreen",
|
|
1515
1510
|
"fullscreenParent"
|
|
1516
1511
|
])) : p("", !0),
|
|
1517
|
-
E(
|
|
1518
|
-
], 46,
|
|
1512
|
+
E(kn) ? (x(), f(xe, { key: 10 })) : p("", !0)
|
|
1513
|
+
], 46, et));
|
|
1519
1514
|
}
|
|
1520
|
-
}, [["__scopeId", "data-v-
|
|
1515
|
+
}, [["__scopeId", "data-v-344b2cc9"]]);
|
|
1521
1516
|
//#endregion
|
|
1522
|
-
export {
|
|
1517
|
+
export { $e as n, Vt as t };
|