vue-data-ui 3.19.9 → 3.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +120 -120
- package/dist/A11yDataTable-q2-8fSlJ.js +0 -45
- package/dist/Arrow-Cj6W6Xbi.js +0 -116
- package/dist/BaseDraggableDialog-DUUu2E2Q.js +0 -272
- package/dist/BaseIcon-DM1x8hQF.js +0 -502
- package/dist/BaseLegendToggle-CJTwLGXL.js +0 -56
- package/dist/BaseScanner-C7dmAref.js +0 -27
- package/dist/BaseZoomControls-BkajQ8q9.js +0 -111
- package/dist/ColorPicker-DTQeqKUV.js +0 -255
- package/dist/DataTable-DmE8Oo4i.js +0 -150
- package/dist/Legend-Gg5Q4Clb.js +0 -114
- package/dist/NonSvgPenAndPaper-tvWXeCsd.js +0 -577
- package/dist/PackageVersion-Dl9W5zJD.js +0 -11
- package/dist/PenAndPaper-DNgm6y3l.js +0 -461
- package/dist/RecursiveCircles-DPpLel6f.js +0 -117
- package/dist/RecursiveLabels-DBMJf_to.js +0 -56
- package/dist/RecursiveLinks-D06dBL4a.js +0 -78
- package/dist/Shape-DEGOZ6GG.js +0 -141
- package/dist/Slicer-CPWGgGSp.js +0 -1144
- package/dist/SlicerPreview-BU3ZeHjR.js +0 -1555
- package/dist/SparkTooltip-c2DL7gqD.js +0 -93
- package/dist/Title-__gWq2g6.js +0 -87
- package/dist/Tooltip-CuWEYGr3.js +0 -312
- package/dist/UserOptions-D7zR0tnR.js +0 -1411
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +0 -8
- package/dist/canvas-lib-DTaADQOK.js +0 -79
- package/dist/components/arrow.js +0 -2
- package/dist/components/vue-ui-3d-bar.js +0 -2
- package/dist/components/vue-ui-accordion.js +0 -2
- package/dist/components/vue-ui-age-pyramid.js +0 -2
- package/dist/components/vue-ui-annotator.js +0 -2
- package/dist/components/vue-ui-bullet.js +0 -2
- package/dist/components/vue-ui-bump.js +0 -2
- package/dist/components/vue-ui-candlestick.js +0 -2
- package/dist/components/vue-ui-carousel-table.js +0 -2
- package/dist/components/vue-ui-chestnut.js +0 -2
- package/dist/components/vue-ui-chord.js +0 -2
- package/dist/components/vue-ui-circle-pack.js +0 -2
- package/dist/components/vue-ui-cursor.js +0 -2
- package/dist/components/vue-ui-dag.js +0 -2
- package/dist/components/vue-ui-dashboard.js +0 -2
- package/dist/components/vue-ui-digits.js +0 -2
- package/dist/components/vue-ui-donut-evolution.js +0 -2
- package/dist/components/vue-ui-donut.js +0 -2
- package/dist/components/vue-ui-dumbbell.js +0 -2
- package/dist/components/vue-ui-flow.js +0 -2
- package/dist/components/vue-ui-funnel.js +0 -2
- package/dist/components/vue-ui-galaxy.js +0 -2
- package/dist/components/vue-ui-gauge.js +0 -2
- package/dist/components/vue-ui-geo.js +0 -2
- package/dist/components/vue-ui-gizmo.js +0 -2
- package/dist/components/vue-ui-heatmap.js +0 -2
- package/dist/components/vue-ui-history-plot.js +0 -2
- package/dist/components/vue-ui-horizontal-bar.js +0 -2
- package/dist/components/vue-ui-icon.js +0 -2
- package/dist/components/vue-ui-kpi.js +0 -2
- package/dist/components/vue-ui-mini-loader.js +0 -2
- package/dist/components/vue-ui-molecule.js +0 -2
- package/dist/components/vue-ui-mood-radar.js +0 -2
- package/dist/components/vue-ui-nested-donuts.js +0 -2
- package/dist/components/vue-ui-onion.js +0 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
- package/dist/components/vue-ui-pattern-seed.js +0 -2
- package/dist/components/vue-ui-pattern.js +0 -2
- package/dist/components/vue-ui-quadrant.js +0 -2
- package/dist/components/vue-ui-quick-chart.js +0 -2
- package/dist/components/vue-ui-radar.js +0 -2
- package/dist/components/vue-ui-rating.js +0 -2
- package/dist/components/vue-ui-relation-circle.js +0 -2
- package/dist/components/vue-ui-ridgeline.js +0 -2
- package/dist/components/vue-ui-rings.js +0 -2
- package/dist/components/vue-ui-scatter.js +0 -2
- package/dist/components/vue-ui-skeleton.js +0 -2
- package/dist/components/vue-ui-smiley.js +0 -2
- package/dist/components/vue-ui-spark-trend.js +0 -2
- package/dist/components/vue-ui-sparkbar.js +0 -2
- package/dist/components/vue-ui-sparkgauge.js +0 -2
- package/dist/components/vue-ui-sparkhistogram.js +0 -2
- package/dist/components/vue-ui-sparkline.js +0 -2
- package/dist/components/vue-ui-sparkstackbar.js +0 -2
- package/dist/components/vue-ui-stackbar.js +0 -2
- package/dist/components/vue-ui-stackline.js +0 -2
- package/dist/components/vue-ui-strip-plot.js +0 -2
- package/dist/components/vue-ui-table-heatmap.js +0 -2
- package/dist/components/vue-ui-table-sparkline.js +0 -2
- package/dist/components/vue-ui-table.js +0 -2
- package/dist/components/vue-ui-thermometer.js +0 -2
- package/dist/components/vue-ui-timer.js +0 -2
- package/dist/components/vue-ui-tiremarks.js +0 -2
- package/dist/components/vue-ui-treemap.js +0 -2
- package/dist/components/vue-ui-vertical-bar.js +0 -2
- package/dist/components/vue-ui-waffle.js +0 -2
- package/dist/components/vue-ui-wheel.js +0 -2
- package/dist/components/vue-ui-word-cloud.js +0 -2
- package/dist/components/vue-ui-world.js +0 -2
- package/dist/components/vue-ui-xy-canvas.js +0 -2
- package/dist/components/vue-ui-xy.js +0 -2
- package/dist/dom-to-png-9WSt6hXe.js +0 -237
- package/dist/exposedLib-CwWU4zv-.js +0 -19
- package/dist/geoProjections-CQIkC70z.js +0 -146
- package/dist/img-BjOr008R.js +0 -74
- package/dist/labelUtils-Cr97N8E1.js +0 -19
- package/dist/lib-BkiwukKO.js +0 -1879
- package/dist/llms.txt +0 -232
- package/dist/patternUtils-B7BWu5bV.js +0 -258
- package/dist/pdf-DSXSFUnK.js +0 -90
- package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
- package/dist/style.css +0 -2
- package/dist/types/arrow.d.ts +0 -4
- package/dist/types/utils.d.ts +0 -551
- package/dist/types/vue-data-ui.d.ts +0 -15826
- package/dist/types/vue-ui-3d-bar.d.ts +0 -78
- package/dist/types/vue-ui-accordion.d.ts +0 -11
- package/dist/types/vue-ui-age-pyramid.d.ts +0 -95
- package/dist/types/vue-ui-annotator.d.ts +0 -12
- package/dist/types/vue-ui-bullet.d.ts +0 -72
- package/dist/types/vue-ui-bump.d.ts +0 -77
- package/dist/types/vue-ui-candlestick.d.ts +0 -93
- package/dist/types/vue-ui-carousel-table.d.ts +0 -46
- package/dist/types/vue-ui-chestnut.d.ts +0 -79
- package/dist/types/vue-ui-chord.d.ts +0 -91
- package/dist/types/vue-ui-circle-pack.d.ts +0 -111
- package/dist/types/vue-ui-cursor.d.ts +0 -9
- package/dist/types/vue-ui-dag.d.ts +0 -106
- package/dist/types/vue-ui-dashboard.d.ts +0 -53
- package/dist/types/vue-ui-digits.d.ts +0 -12
- package/dist/types/vue-ui-donut-evolution.d.ts +0 -81
- package/dist/types/vue-ui-donut.d.ts +0 -106
- package/dist/types/vue-ui-dumbbell.d.ts +0 -79
- package/dist/types/vue-ui-flow.d.ts +0 -93
- package/dist/types/vue-ui-funnel.d.ts +0 -66
- package/dist/types/vue-ui-galaxy.d.ts +0 -97
- package/dist/types/vue-ui-gauge.d.ts +0 -76
- package/dist/types/vue-ui-geo.d.ts +0 -81
- package/dist/types/vue-ui-gizmo.d.ts +0 -22
- package/dist/types/vue-ui-heatmap.d.ts +0 -86
- package/dist/types/vue-ui-history-plot.d.ts +0 -97
- package/dist/types/vue-ui-horizontal-bar.d.ts +0 -99
- package/dist/types/vue-ui-icon.d.ts +0 -15
- package/dist/types/vue-ui-kpi.d.ts +0 -25
- package/dist/types/vue-ui-mini-loader.d.ts +0 -15
- package/dist/types/vue-ui-molecule.d.ts +0 -97
- package/dist/types/vue-ui-mood-radar.d.ts +0 -79
- package/dist/types/vue-ui-nested-donuts.d.ts +0 -94
- package/dist/types/vue-ui-onion.d.ts +0 -91
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -108
- package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
- package/dist/types/vue-ui-pattern.d.ts +0 -15
- package/dist/types/vue-ui-quadrant.d.ts +0 -102
- package/dist/types/vue-ui-quick-chart.d.ts +0 -89
- package/dist/types/vue-ui-radar.d.ts +0 -101
- package/dist/types/vue-ui-rating.d.ts +0 -31
- package/dist/types/vue-ui-relation-circle.d.ts +0 -79
- package/dist/types/vue-ui-ridgeline.d.ts +0 -85
- package/dist/types/vue-ui-rings.d.ts +0 -83
- package/dist/types/vue-ui-scatter.d.ts +0 -82
- package/dist/types/vue-ui-skeleton.d.ts +0 -11
- package/dist/types/vue-ui-smiley.d.ts +0 -12
- package/dist/types/vue-ui-spark-trend.d.ts +0 -19
- package/dist/types/vue-ui-sparkbar.d.ts +0 -36
- package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
- package/dist/types/vue-ui-sparkhistogram.d.ts +0 -33
- package/dist/types/vue-ui-sparkline.d.ts +0 -44
- package/dist/types/vue-ui-sparkstackbar.d.ts +0 -45
- package/dist/types/vue-ui-stackbar.d.ts +0 -97
- package/dist/types/vue-ui-stackline.d.ts +0 -93
- package/dist/types/vue-ui-strip-plot.d.ts +0 -81
- package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
- package/dist/types/vue-ui-table-sparkline.d.ts +0 -40
- package/dist/types/vue-ui-table.d.ts +0 -25
- package/dist/types/vue-ui-thermometer.d.ts +0 -57
- package/dist/types/vue-ui-timer.d.ts +0 -36
- package/dist/types/vue-ui-tiremarks.d.ts +0 -57
- package/dist/types/vue-ui-treemap.d.ts +0 -87
- package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
- package/dist/types/vue-ui-waffle.d.ts +0 -86
- package/dist/types/vue-ui-wheel.d.ts +0 -57
- package/dist/types/vue-ui-word-cloud.d.ts +0 -84
- package/dist/types/vue-ui-world.d.ts +0 -81
- package/dist/types/vue-ui-xy-canvas.d.ts +0 -84
- package/dist/types/vue-ui-xy.d.ts +0 -125
- package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +0 -50
- package/dist/useChartAccessibility-Do37qcw2.js +0 -12
- package/dist/useConfig-ByaaSKhz.js +0 -7471
- package/dist/useFitSvgText-C-MEdAfe.js +0 -63
- package/dist/useNestedProp-Ck4hsrpu.js +0 -10
- package/dist/useObjectBindings-BR1sGimd.js +0 -189
- package/dist/usePanZoom-B-4M_gmY.js +0 -157
- package/dist/usePrefersMotion-BywLbIko.js +0 -15
- package/dist/usePrinter-X0yWOynH.js +0 -49
- package/dist/useResponsive-CrAInupd.js +0 -19
- package/dist/useStableElementSize-0I1IpHPl.js +0 -77
- package/dist/useSvgExport-Dtu973wa.js +0 -755
- package/dist/useTableResponsive-DrM1xqII.js +0 -24
- package/dist/useThemeCheck-rFK9Zlb_.js +0 -24
- package/dist/useTimeLabelCollider-Dm55Emzg.js +0 -57
- package/dist/useTimeLabels-C0x7zUXP.js +0 -272
- package/dist/useUserOptionState-CjPJPTg2.js +0 -15
- package/dist/utils.js +0 -28
- package/dist/vClickOutside-CbX_bC9A.js +0 -13
- package/dist/vue-data-ui-nsosW-n5.js +0 -274
- package/dist/vue-data-ui.js +0 -76
- package/dist/vue-ui-3d-bar-CTvvvgBE.js +0 -1757
- package/dist/vue-ui-accordion-BX9WL-QF.js +0 -81
- package/dist/vue-ui-age-pyramid-ckZtLlmH.js +0 -1238
- package/dist/vue-ui-annotator-Be3VpH8Z.js +0 -2899
- package/dist/vue-ui-bullet-3CkhGOSb.js +0 -710
- package/dist/vue-ui-bump-LQuPTOlm.js +0 -1249
- package/dist/vue-ui-candlestick-BeO06tlH.js +0 -1826
- package/dist/vue-ui-carousel-table-nZJ1k6se.js +0 -455
- package/dist/vue-ui-chestnut-BWItE1hg.js +0 -2010
- package/dist/vue-ui-chord-YflKRyWK.js +0 -1391
- package/dist/vue-ui-circle-pack-DyTYvEg3.js +0 -1608
- package/dist/vue-ui-cursor-C5_wkWul.js +0 -283
- package/dist/vue-ui-dag-mH0baWM3.js +0 -2909
- package/dist/vue-ui-dashboard-F7pEuJDh.js +0 -513
- package/dist/vue-ui-digits-BYBtwXy_.js +0 -209
- package/dist/vue-ui-donut-B3L7jeHL.js +0 -2410
- package/dist/vue-ui-donut-evolution-C46h0gLy.js +0 -1510
- package/dist/vue-ui-dumbbell-xekp1obI.js +0 -1527
- package/dist/vue-ui-flow-BYYyk5KL.js +0 -1235
- package/dist/vue-ui-funnel-BfY509t-.js +0 -777
- package/dist/vue-ui-galaxy-D061gTYS.js +0 -1077
- package/dist/vue-ui-gauge-BRxZNBBS.js +0 -920
- package/dist/vue-ui-geo-BwOMFUVr.js +0 -1516
- package/dist/vue-ui-gizmo-CQsP8Nd3.js +0 -225
- package/dist/vue-ui-heatmap-DOsulVoP.js +0 -1568
- package/dist/vue-ui-history-plot-CXW6lF42.js +0 -1559
- package/dist/vue-ui-horizontal-bar-CideXtlg.js +0 -1681
- package/dist/vue-ui-kpi-CE-JFZ1o.js +0 -96
- package/dist/vue-ui-mini-loader-DDJUya9e.js +0 -125
- package/dist/vue-ui-molecule-B1Prm5Lk.js +0 -925
- package/dist/vue-ui-mood-radar-B29gVcTN.js +0 -1148
- package/dist/vue-ui-nested-donuts-Bsx5f9Gv.js +0 -1487
- package/dist/vue-ui-onion-MN-PjNJq.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-C9zU7MP5.js +0 -1421
- package/dist/vue-ui-pattern-Bj-IPFr2.js +0 -154
- package/dist/vue-ui-pattern-seed-abRweCDE.js +0 -61
- package/dist/vue-ui-quadrant-h-QFG9O4.js +0 -1978
- package/dist/vue-ui-quick-chart-PAVz4c9z.js +0 -2469
- package/dist/vue-ui-radar-D2pVd53z.js +0 -1229
- package/dist/vue-ui-rating-D_QR_A3V.js +0 -343
- package/dist/vue-ui-relation-circle-BjB0J53V.js +0 -924
- package/dist/vue-ui-ridgeline-DamvqiyJ.js +0 -1622
- package/dist/vue-ui-rings-DkHS5dwd.js +0 -1246
- package/dist/vue-ui-scatter-dFDowCVQ.js +0 -2413
- package/dist/vue-ui-skeleton-zhkS1cmh.js +0 -2556
- package/dist/vue-ui-smiley-rFdGxZK6.js +0 -356
- package/dist/vue-ui-spark-trend-fQ10-UvM.js +0 -438
- package/dist/vue-ui-sparkbar-D5toou8V.js +0 -393
- package/dist/vue-ui-sparkgauge-DRZcIPYf.js +0 -255
- package/dist/vue-ui-sparkhistogram-YizEqFdN.js +0 -560
- package/dist/vue-ui-sparkline-w2nclIW0.js +0 -1507
- package/dist/vue-ui-sparkstackbar-CTShNXhW.js +0 -662
- package/dist/vue-ui-stackbar-BFLCEsRk.js +0 -2267
- package/dist/vue-ui-stackline-CU6s-hhv.js +0 -2395
- package/dist/vue-ui-strip-plot-ByaDLFSL.js +0 -1340
- package/dist/vue-ui-table-DuA_CfGn.js +0 -1338
- package/dist/vue-ui-table-heatmap-BFKyJTr1.js +0 -344
- package/dist/vue-ui-table-sparkline-Dfei_QrJ.js +0 -707
- package/dist/vue-ui-thermometer-biw3ivMI.js +0 -763
- package/dist/vue-ui-timer-9LNNDl4q.js +0 -439
- package/dist/vue-ui-tiremarks-kF0Baqia.js +0 -552
- package/dist/vue-ui-treemap-BexKMBhz.js +0 -1587
- package/dist/vue-ui-waffle-Dq50j_uw.js +0 -1362
- package/dist/vue-ui-wheel-BETHlWsO.js +0 -885
- package/dist/vue-ui-word-cloud-D1AQtzmT.js +0 -1656
- package/dist/vue-ui-world-CcgbuSp_.js +0 -14264
- package/dist/vue-ui-xy-BQ1YONCq.js +0 -4219
- package/dist/vue-ui-xy-canvas-4ABYnasj.js +0 -1786
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +0 -185
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +0 -301
- package/dist/vue_ui_bullet-CE5sFT7u.js +0 -186
- package/dist/vue_ui_bump-frnXaXul.js +0 -201
- package/dist/vue_ui_candlestick-sY6UtOop.js +0 -374
- package/dist/vue_ui_chestnut-BiUZFv40.js +0 -305
- package/dist/vue_ui_chord-DpyR_b9A.js +0 -275
- package/dist/vue_ui_circle_pack-FjH0ZQeb.js +0 -172
- package/dist/vue_ui_dag-Ci_MOnvd.js +0 -258
- package/dist/vue_ui_donut-Cx2_BGcQ.js +0 -358
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +0 -717
- package/dist/vue_ui_dumbbell-CClzAZTN.js +0 -304
- package/dist/vue_ui_flow-CCHO1Lo9.js +0 -238
- package/dist/vue_ui_funnel-h8q2mRpC.js +0 -234
- package/dist/vue_ui_galaxy-70vtkEBw.js +0 -265
- package/dist/vue_ui_gauge-C17CgfzN.js +0 -178
- package/dist/vue_ui_geo-C0UbQ0Lc.js +0 -248
- package/dist/vue_ui_heatmap-BqPP3J4M.js +0 -319
- package/dist/vue_ui_history_plot-C5nytDHh.js +0 -413
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +0 -341
- package/dist/vue_ui_molecule-Dka4JBOp.js +0 -231
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +0 -281
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +0 -273
- package/dist/vue_ui_onion-DTV9cup-.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +0 -278
- package/dist/vue_ui_quadrant-3kjYvxpj.js +0 -428
- package/dist/vue_ui_quick_chart--VaYQuM4.js +0 -139
- package/dist/vue_ui_radar-Dxx9GJmj.js +0 -306
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +0 -98
- package/dist/vue_ui_ridgeline-CAtYca4b.js +0 -767
- package/dist/vue_ui_rings-DXC1VeX5.js +0 -320
- package/dist/vue_ui_scatter-D2S2j0ap.js +0 -479
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +0 -82
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +0 -64
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +0 -90
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +0 -123
- package/dist/vue_ui_sparkline-wgk7yO7E.js +0 -151
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +0 -175
- package/dist/vue_ui_stackbar-BW_C3MXw.js +0 -412
- package/dist/vue_ui_stackline-DXxzibUd.js +0 -460
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +0 -301
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +0 -80
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +0 -124
- package/dist/vue_ui_thermometer-CuN7Gpez.js +0 -123
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +0 -122
- package/dist/vue_ui_treemap-BQp06q-g.js +0 -328
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +0 -247
- package/dist/vue_ui_waffle-C_Ev4l7B.js +0 -292
- package/dist/vue_ui_wheel-DdkTPXJU.js +0 -133
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +0 -254
- package/dist/vue_ui_xy-BYPqfYyx.js +0 -482
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +0 -408
|
@@ -1,1527 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { G as t, H as n, J as r, S as i, St as a, W as o, X as s, h as ee, i as c, jt as te, ot as ne, t as re, v as ie, yt as l, zt as ae } from "./lib-BkiwukKO.js";
|
|
3
|
-
import { t as oe } from "./useConfig-ByaaSKhz.js";
|
|
4
|
-
import { t as se } from "./usePrinter-X0yWOynH.js";
|
|
5
|
-
import { n as ce, t as le } from "./BaseScanner-C7dmAref.js";
|
|
6
|
-
import { t as ue } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
-
import { t as de } from "./useNestedProp-Ck4hsrpu.js";
|
|
8
|
-
import { t as fe } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
-
import { t as pe } from "./useTimeLabelCollider-Dm55Emzg.js";
|
|
10
|
-
import { t as me } from "./img-BjOr008R.js";
|
|
11
|
-
import { n as he } from "./Title-__gWq2g6.js";
|
|
12
|
-
import { t as ge } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
13
|
-
import { c as _e } from "./canvas-lib-DTaADQOK.js";
|
|
14
|
-
import { t as ve } from "./useResponsive-CrAInupd.js";
|
|
15
|
-
import { t as ye } from "./A11yDataTable-q2-8fSlJ.js";
|
|
16
|
-
import { t as be } from "./useUserOptionState-CjPJPTg2.js";
|
|
17
|
-
import { t as xe } from "./useChartAccessibility-Do37qcw2.js";
|
|
18
|
-
import { t as Se } from "./Legend-Gg5Q4Clb.js";
|
|
19
|
-
import { t as Ce } from "./vue_ui_dumbbell-CClzAZTN.js";
|
|
20
|
-
import { Fragment as u, Teleport as we, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Te, createTextVNode as Ee, createVNode as De, defineAsyncComponent as g, guardReactiveProps as _, mergeProps as Oe, nextTick as ke, normalizeClass as Ae, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as je, onMounted as Me, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ne, shallowRef as Pe, toDisplayString as w, toRefs as Fe, unref as T, vShow as E, watch as Ie, watchEffect as Le, withCtx as D, withDirectives as Re } from "vue";
|
|
21
|
-
//#region src/components/vue-ui-dumbbell.vue
|
|
22
|
-
var ze = /* @__PURE__ */ e({ default: () => Xt }), Be = ["id"], Ve = ["id"], He = ["id"], Ue = { style: { position: "relative" } }, We = [
|
|
23
|
-
"xmlns",
|
|
24
|
-
"viewBox",
|
|
25
|
-
"aria-describedby"
|
|
26
|
-
], Ge = [
|
|
27
|
-
"x",
|
|
28
|
-
"y",
|
|
29
|
-
"width",
|
|
30
|
-
"height"
|
|
31
|
-
], Ke = { key: 1 }, qe = [
|
|
32
|
-
"x1",
|
|
33
|
-
"x2",
|
|
34
|
-
"y1",
|
|
35
|
-
"y2",
|
|
36
|
-
"stroke",
|
|
37
|
-
"stroke-width",
|
|
38
|
-
"stroke-dasharray"
|
|
39
|
-
], Je = { key: 2 }, Ye = [
|
|
40
|
-
"x1",
|
|
41
|
-
"x2",
|
|
42
|
-
"y1",
|
|
43
|
-
"y2",
|
|
44
|
-
"stroke",
|
|
45
|
-
"stroke-width",
|
|
46
|
-
"stroke-dasharray"
|
|
47
|
-
], Xe = [
|
|
48
|
-
"x1",
|
|
49
|
-
"x2",
|
|
50
|
-
"y1",
|
|
51
|
-
"y2",
|
|
52
|
-
"stroke",
|
|
53
|
-
"stroke-width",
|
|
54
|
-
"stroke-dasharray"
|
|
55
|
-
], Ze = [
|
|
56
|
-
"transform",
|
|
57
|
-
"font-size",
|
|
58
|
-
"fill"
|
|
59
|
-
], Qe = [
|
|
60
|
-
"x",
|
|
61
|
-
"y",
|
|
62
|
-
"font-size",
|
|
63
|
-
"fill",
|
|
64
|
-
"font-weight",
|
|
65
|
-
"onMouseenter",
|
|
66
|
-
"onMouseleave",
|
|
67
|
-
"onClick"
|
|
68
|
-
], $e = [
|
|
69
|
-
"x",
|
|
70
|
-
"y",
|
|
71
|
-
"font-size",
|
|
72
|
-
"fill",
|
|
73
|
-
"onMouseenter",
|
|
74
|
-
"onMouseleave",
|
|
75
|
-
"onClick"
|
|
76
|
-
], et = [
|
|
77
|
-
"x",
|
|
78
|
-
"y",
|
|
79
|
-
"font-size",
|
|
80
|
-
"fill"
|
|
81
|
-
], tt = [
|
|
82
|
-
"transform",
|
|
83
|
-
"font-size",
|
|
84
|
-
"fill",
|
|
85
|
-
"font-weight",
|
|
86
|
-
"text-anchor"
|
|
87
|
-
], nt = [
|
|
88
|
-
"d",
|
|
89
|
-
"stroke",
|
|
90
|
-
"stroke-width",
|
|
91
|
-
"stroke-dasharray"
|
|
92
|
-
], rt = [
|
|
93
|
-
"d",
|
|
94
|
-
"stroke",
|
|
95
|
-
"stroke-width",
|
|
96
|
-
"stroke-dasharray"
|
|
97
|
-
], it = [
|
|
98
|
-
"x",
|
|
99
|
-
"y",
|
|
100
|
-
"height",
|
|
101
|
-
"width",
|
|
102
|
-
"fill"
|
|
103
|
-
], at = [
|
|
104
|
-
"transform",
|
|
105
|
-
"fill",
|
|
106
|
-
"font-size"
|
|
107
|
-
], ot = ["id"], st = ["stop-color"], ct = ["stop-color"], lt = ["stop-color"], ut = ["id"], dt = ["stop-color"], ft = ["stop-color"], pt = ["stop-color"], mt = ["id"], ht = ["stop-color"], gt = ["stop-color"], _t = ["stop-color"], vt = ["id"], yt = ["stop-color"], bt = ["stop-color"], xt = ["stop-color"], St = ["id"], Ct = ["stop-color"], wt = ["stop-color"], Tt = ["stop-color"], Et = ["id"], Dt = ["stop-color"], Ot = ["stop-color"], kt = ["id"], At = ["stop-color"], jt = ["stop-color"], Mt = { key: 0 }, Nt = { key: 0 }, Pt = ["d", "fill"], Ft = { key: 1 }, It = [
|
|
108
|
-
"x",
|
|
109
|
-
"y",
|
|
110
|
-
"height",
|
|
111
|
-
"width",
|
|
112
|
-
"fill"
|
|
113
|
-
], Lt = [
|
|
114
|
-
"cx",
|
|
115
|
-
"cy",
|
|
116
|
-
"r",
|
|
117
|
-
"fill",
|
|
118
|
-
"stroke",
|
|
119
|
-
"stroke-width"
|
|
120
|
-
], Rt = [
|
|
121
|
-
"cx",
|
|
122
|
-
"cy",
|
|
123
|
-
"r",
|
|
124
|
-
"fill",
|
|
125
|
-
"stroke",
|
|
126
|
-
"stroke-width"
|
|
127
|
-
], zt = { key: 7 }, Bt = [
|
|
128
|
-
"x",
|
|
129
|
-
"y",
|
|
130
|
-
"fill",
|
|
131
|
-
"font-size"
|
|
132
|
-
], Vt = { key: 8 }, Ht = [
|
|
133
|
-
"x",
|
|
134
|
-
"y",
|
|
135
|
-
"fill",
|
|
136
|
-
"font-size"
|
|
137
|
-
], Ut = [
|
|
138
|
-
"x",
|
|
139
|
-
"y",
|
|
140
|
-
"width",
|
|
141
|
-
"height",
|
|
142
|
-
"fill",
|
|
143
|
-
"onMouseenter",
|
|
144
|
-
"onMouseleave",
|
|
145
|
-
"onClick"
|
|
146
|
-
], Wt = {
|
|
147
|
-
key: 0,
|
|
148
|
-
style: {
|
|
149
|
-
position: "absolute",
|
|
150
|
-
top: "100%",
|
|
151
|
-
left: "0",
|
|
152
|
-
width: "100%"
|
|
153
|
-
},
|
|
154
|
-
"data-dom-to-png-ignore": "",
|
|
155
|
-
"aria-hidden": "true"
|
|
156
|
-
}, Gt = {
|
|
157
|
-
key: 5,
|
|
158
|
-
class: "vue-data-ui-watermark"
|
|
159
|
-
}, Kt = ["id"], qt = [
|
|
160
|
-
"xmlns",
|
|
161
|
-
"height",
|
|
162
|
-
"width"
|
|
163
|
-
], Jt = ["fill"], Yt = ["innerHTML"], Xt = /* @__PURE__ */ ge({
|
|
164
|
-
__name: "vue-ui-dumbbell",
|
|
165
|
-
props: {
|
|
166
|
-
config: {
|
|
167
|
-
type: Object,
|
|
168
|
-
default() {
|
|
169
|
-
return {};
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
dataset: {
|
|
173
|
-
type: Array,
|
|
174
|
-
default() {
|
|
175
|
-
return [];
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
emits: ["selectDatapoint", "copyAlt"],
|
|
180
|
-
setup(e, { expose: ge, emit: ze }) {
|
|
181
|
-
let Xt = g(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Zt = g(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), Qt = g(() => import("./DataTable-DmE8Oo4i.js")), $t = g(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), en = g(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), tn = g(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), nn = g(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_dumbbell: rn } = oe(), { isThemeValid: an, warnInvalidTheme: on } = fe(), O = e, sn = ze, cn = d({
|
|
182
|
-
get() {
|
|
183
|
-
return !!O.dataset && O.dataset.length;
|
|
184
|
-
},
|
|
185
|
-
set(e) {
|
|
186
|
-
return e;
|
|
187
|
-
}
|
|
188
|
-
}), k = x(n()), ln = x(0), A = x(null), un = x(null), dn = x(null), fn = x(null), pn = x(null), mn = x(0), hn = x(0), gn = x(0), _n = x(!1), vn = x(null), yn = x(null), bn = x(!1), xn = x(!1), Sn = x(null), Cn = x(null), wn = x(null), Tn = x(null), j = x(null), M = x(null), N = x(null), En = x(!1), P = x(!1), F = x(Pn()), I = d(() => F.value.userOptions.useCursorPointer), Dn = d(() => ae({
|
|
189
|
-
defaultConfig: {
|
|
190
|
-
userOptions: { show: !1 },
|
|
191
|
-
table: { show: !1 },
|
|
192
|
-
useAnimation: !1,
|
|
193
|
-
style: { chart: {
|
|
194
|
-
backgroundColor: "#99999930",
|
|
195
|
-
padding: {
|
|
196
|
-
top: 12,
|
|
197
|
-
right: 12,
|
|
198
|
-
bottom: 12,
|
|
199
|
-
left: 12
|
|
200
|
-
},
|
|
201
|
-
grid: {
|
|
202
|
-
horizontalGrid: { stroke: "#6A6A6A" },
|
|
203
|
-
verticalGrid: { stroke: "#6A6A6A" }
|
|
204
|
-
},
|
|
205
|
-
labels: {
|
|
206
|
-
axis: {
|
|
207
|
-
yLabel: "",
|
|
208
|
-
xLabel: ""
|
|
209
|
-
},
|
|
210
|
-
xAxisLabels: { show: !1 },
|
|
211
|
-
yAxisLabels: { show: !1 },
|
|
212
|
-
endLabels: { show: !1 },
|
|
213
|
-
startLabels: { show: !1 }
|
|
214
|
-
},
|
|
215
|
-
legend: { backgroundColor: "transparent" },
|
|
216
|
-
plots: {
|
|
217
|
-
endColor: "#969696",
|
|
218
|
-
startColor: "#DBDBDB",
|
|
219
|
-
stroke: "#6A6A6A",
|
|
220
|
-
evaluationColors: { enable: !1 }
|
|
221
|
-
}
|
|
222
|
-
} }
|
|
223
|
-
},
|
|
224
|
-
userConfig: F.value.skeletonConfig ?? {}
|
|
225
|
-
})), { loading: On, FINAL_DATASET: kn, manualLoading: An } = ce({
|
|
226
|
-
...Fe(O),
|
|
227
|
-
FINAL_CONFIG: F,
|
|
228
|
-
prepareConfig: Pn,
|
|
229
|
-
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
230
|
-
{
|
|
231
|
-
name: "_",
|
|
232
|
-
start: 21,
|
|
233
|
-
end: 34
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
name: "_",
|
|
237
|
-
start: 13,
|
|
238
|
-
end: 21
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
name: "_",
|
|
242
|
-
start: 8,
|
|
243
|
-
end: 13
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
name: "_",
|
|
247
|
-
start: 5,
|
|
248
|
-
end: 8
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
name: "_",
|
|
252
|
-
start: 3,
|
|
253
|
-
end: 5
|
|
254
|
-
}
|
|
255
|
-
],
|
|
256
|
-
skeletonConfig: ae({
|
|
257
|
-
defaultConfig: F.value,
|
|
258
|
-
userConfig: Dn.value
|
|
259
|
-
})
|
|
260
|
-
}), { userOptionsVisible: jn, setUserOptionsVisibility: Mn, keepUserOptionState: Nn } = be({ config: F.value }), { svgRef: L } = xe({ config: F.value.style.chart.title });
|
|
261
|
-
function Pn() {
|
|
262
|
-
let e = de({
|
|
263
|
-
userConfig: O.config,
|
|
264
|
-
defaultConfig: rn
|
|
265
|
-
}), t = e.theme;
|
|
266
|
-
if (!t) return e;
|
|
267
|
-
if (!an.value(e)) return on(e), e;
|
|
268
|
-
let n = de({
|
|
269
|
-
userConfig: Ce[t] || O.config,
|
|
270
|
-
defaultConfig: e
|
|
271
|
-
});
|
|
272
|
-
return de({
|
|
273
|
-
userConfig: O.config,
|
|
274
|
-
defaultConfig: n
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
Ie(() => O.config, (e) => {
|
|
278
|
-
On.value || (F.value = Pn()), jn.value = !F.value.userOptions.showOnChartHover, In(), mn.value += 1, hn.value += 1, gn.value += 1, U.value = F.value.style.chart.rowHeight, W.value = F.value.style.chart.width, B.value.showTable = F.value.table.show;
|
|
279
|
-
}, { deep: !0 }), Ie(() => kn.value, (e) => {
|
|
280
|
-
Array.isArray(e) && e.length > 0 && (An.value = !1), Yn(), Xn();
|
|
281
|
-
}, { deep: !0 });
|
|
282
|
-
let R = Pe(null), z = Pe(null);
|
|
283
|
-
Me(() => {
|
|
284
|
-
_n.value = !0, In();
|
|
285
|
-
});
|
|
286
|
-
let Fn = d(() => !!F.value.debug);
|
|
287
|
-
function In() {
|
|
288
|
-
if (a(O.dataset) ? s({
|
|
289
|
-
componentName: "VueUiDumbbell",
|
|
290
|
-
type: "dataset",
|
|
291
|
-
debug: Fn.value
|
|
292
|
-
}) : O.dataset.forEach((e, t) => {
|
|
293
|
-
ne({
|
|
294
|
-
datasetObject: e,
|
|
295
|
-
requiredAttributes: [
|
|
296
|
-
"name",
|
|
297
|
-
"start",
|
|
298
|
-
"end"
|
|
299
|
-
]
|
|
300
|
-
}).forEach((e) => {
|
|
301
|
-
cn.value = !1, s({
|
|
302
|
-
componentName: "VueUiDumbbell",
|
|
303
|
-
type: "datasetSerieAttribute",
|
|
304
|
-
property: e,
|
|
305
|
-
index: t,
|
|
306
|
-
debug: Fn.value
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
}), F.value.responsive) {
|
|
310
|
-
let e = _e(() => {
|
|
311
|
-
let { width: e, height: t } = ve({
|
|
312
|
-
chart: A.value,
|
|
313
|
-
title: F.value.style.chart.title.text ? un.value : null,
|
|
314
|
-
legend: F.value.style.chart.legend.show ? dn.value : null,
|
|
315
|
-
source: fn.value,
|
|
316
|
-
noTitle: pn.value
|
|
317
|
-
}), n = F.value.style.chart.title.text ? 24 : 0, r = F.value.style.chart.legend.show ? 24 : 0;
|
|
318
|
-
requestAnimationFrame(async () => {
|
|
319
|
-
W.value = Math.max(.1, e), U.value = Math.max(.1, (Math.max(.1, t) - (n + r)) / kn.value.length), lr();
|
|
320
|
-
});
|
|
321
|
-
});
|
|
322
|
-
R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect()), R.value = new ResizeObserver(e), z.value = A.value.parentNode, R.value.observe(z.value);
|
|
323
|
-
}
|
|
324
|
-
lr();
|
|
325
|
-
}
|
|
326
|
-
je(() => {
|
|
327
|
-
Y.value != null && (cancelAnimationFrame(Y.value), Y.value = null), R.value && (z.value && R.value.unobserve(z.value), R.value.disconnect());
|
|
328
|
-
});
|
|
329
|
-
let { isPrinting: Ln, isImaging: Rn, generatePdf: zn, generateImage: Bn } = se({
|
|
330
|
-
elementId: `dumbbell_${k.value}`,
|
|
331
|
-
fileName: F.value.style.chart.title.text || "vue-ui-dumbbell",
|
|
332
|
-
options: F.value.userOptions.print
|
|
333
|
-
}), Vn = d(() => F.value.userOptions.show && !F.value.style.chart.title.text), B = x({ showTable: F.value.table.show });
|
|
334
|
-
Ie(F, () => {
|
|
335
|
-
B.value = { showTable: F.value.table.show };
|
|
336
|
-
}, { immediate: !0 });
|
|
337
|
-
let V = d(() => kn.value.map((e, t) => ({
|
|
338
|
-
...e,
|
|
339
|
-
start: ie(e.start),
|
|
340
|
-
end: ie(e.end),
|
|
341
|
-
id: e.id ?? `${String(e.name)}__${String(e.start)}__${String(e.end)}__${n()}`
|
|
342
|
-
}))), Hn = d(() => {
|
|
343
|
-
let e = F.value.style.chart.grid, t = V.value.flatMap((e) => [e.start, e.end]).map((e) => Number(e)).filter((e) => Number.isFinite(e)), n = t.length ? Math.min(...t) : 0, r = t.length ? Math.max(...t) : 0;
|
|
344
|
-
return {
|
|
345
|
-
min: e.scaleMin ?? Math.min(n, 0),
|
|
346
|
-
max: e.scaleMax ?? r
|
|
347
|
-
};
|
|
348
|
-
}), H = d(() => ee(Hn.value.min, Hn.value.max, F.value.style.chart.grid.scaleSteps)), U = x(F.value.style.chart.rowHeight), W = x(F.value.style.chart.width);
|
|
349
|
-
function Un() {
|
|
350
|
-
let e = 0;
|
|
351
|
-
Cn.value && (e = Array.from(Cn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
352
|
-
let n = t.getComputedTextLength();
|
|
353
|
-
return n > e ? n : e;
|
|
354
|
-
}, 0));
|
|
355
|
-
let t = Sn.value ? Sn.value.getBoundingClientRect().width : 0;
|
|
356
|
-
return e + t + (t ? 24 + F.value.style.chart.labels.axis.yLabelOffsetX : 0);
|
|
357
|
-
}
|
|
358
|
-
let Wn = x(0), Gn = _e((e) => {
|
|
359
|
-
Wn.value = e;
|
|
360
|
-
}, 100);
|
|
361
|
-
Le((e) => {
|
|
362
|
-
let t = wn.value;
|
|
363
|
-
if (!t) return;
|
|
364
|
-
let n = new ResizeObserver((e) => {
|
|
365
|
-
Gn(e[0].contentRect.height);
|
|
366
|
-
});
|
|
367
|
-
n.observe(t), e(() => n.disconnect());
|
|
368
|
-
}), je(() => {
|
|
369
|
-
Wn.value = 0;
|
|
370
|
-
});
|
|
371
|
-
let Kn = d(() => {
|
|
372
|
-
P.value;
|
|
373
|
-
let e = 0;
|
|
374
|
-
Tn.value && (e = Tn.value.getBBox().height);
|
|
375
|
-
let t = 0;
|
|
376
|
-
return wn.value && (t = Wn.value), e + t;
|
|
377
|
-
}), qn = d(() => V.value.length);
|
|
378
|
-
function Jn(e, t, n) {
|
|
379
|
-
let r = Number(e), i = Number(t.min), a = Number(t.max), o = Number(n.width);
|
|
380
|
-
if (!Number.isFinite(r) || !Number.isFinite(i) || !Number.isFinite(a) || !Number.isFinite(o)) return n.left;
|
|
381
|
-
let s = a - i;
|
|
382
|
-
return s <= 0 ? n.left : n.left + (r - i) / s * o;
|
|
383
|
-
}
|
|
384
|
-
let G = d(() => {
|
|
385
|
-
P.value;
|
|
386
|
-
let e = Un(), t = F.value.style.chart.padding, n = F.value.style.chart.labels.axis.xLabel ? F.value.style.chart.labels.axis.xLabelOffsetY : 0, r = U.value * qn.value - Kn.value - t.top - t.bottom - n, i = r / qn.value, a = U.value * qn.value, o = W.value - e - t.left - t.right, s = H.value.ticks.length * (o / H.value.ticks.length);
|
|
387
|
-
return {
|
|
388
|
-
left: F.value.style.chart.padding.left + e,
|
|
389
|
-
right: W.value - F.value.style.chart.padding.right,
|
|
390
|
-
top: F.value.style.chart.padding.top,
|
|
391
|
-
bottom: a - F.value.style.chart.padding.bottom - Kn.value - n,
|
|
392
|
-
width: o,
|
|
393
|
-
height: r,
|
|
394
|
-
rowHeight: i,
|
|
395
|
-
absoluteHeight: a,
|
|
396
|
-
widthPlotReference: s
|
|
397
|
-
};
|
|
398
|
-
}), K = d(() => Math.min(U.value / 2 * .7, F.value.style.chart.plots.radius)), q = x([]), J = d({
|
|
399
|
-
get() {
|
|
400
|
-
let e = G.value, t = H.value;
|
|
401
|
-
return q.value.map((n, r) => {
|
|
402
|
-
let i = Jn(n.start, t, e), a = Jn(n.endVal, t, e), o = i + (a - i) / 2, s = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end > n.start, ee = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end < n.start, c = ![null, void 0].includes(n.start) && ![null, void 0].includes(n.end) && n.end === n.start || [null, void 0].includes(n.start) || [null, void 0].includes(n.end), te = s ? F.value.style.chart.plots.evaluationColors.positive : ee ? F.value.style.chart.plots.evaluationColors.negative : F.value.style.chart.plots.evaluationColors.neutral;
|
|
403
|
-
return {
|
|
404
|
-
...n,
|
|
405
|
-
isPositive: s,
|
|
406
|
-
isNegative: ee,
|
|
407
|
-
isNeutral: c,
|
|
408
|
-
evaluationColor: te,
|
|
409
|
-
evaluationGrad: `url(#${s ? "positive" : ee ? "negative" : "neutral"}_grad_${k.value})`,
|
|
410
|
-
startX: i,
|
|
411
|
-
endX: a,
|
|
412
|
-
centerX: o,
|
|
413
|
-
y: e.top + r * e.rowHeight + e.rowHeight / 2
|
|
414
|
-
};
|
|
415
|
-
});
|
|
416
|
-
},
|
|
417
|
-
set(e) {
|
|
418
|
-
q.value = e;
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
function Yn() {
|
|
422
|
-
q.value = V.value.map((e) => {
|
|
423
|
-
let t = Number(e.start);
|
|
424
|
-
return {
|
|
425
|
-
...e,
|
|
426
|
-
endVal: Number.isFinite(t) ? t : 0
|
|
427
|
-
};
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
let Y = x(null);
|
|
431
|
-
Me(() => {
|
|
432
|
-
Xn();
|
|
433
|
-
});
|
|
434
|
-
function Xn() {
|
|
435
|
-
if (Y.value != null && (cancelAnimationFrame(Y.value), Y.value = null), Yn(), !F.value.useAnimation) {
|
|
436
|
-
J.value = q.value.map((e) => {
|
|
437
|
-
let t = Number(e.end);
|
|
438
|
-
return {
|
|
439
|
-
...e,
|
|
440
|
-
endVal: Number.isFinite(t) ? t : e.endVal
|
|
441
|
-
};
|
|
442
|
-
});
|
|
443
|
-
return;
|
|
444
|
-
}
|
|
445
|
-
let e = Math.max(1, Math.min(100, F.value.animationSpeed || 100)) / 100, t = V.value.map((e) => {
|
|
446
|
-
let t = Number(e.start), n = Number(e.end), r = Number.isFinite(t) ? t : 0;
|
|
447
|
-
return (Number.isFinite(n) ? n : r) - r;
|
|
448
|
-
}), n = () => {
|
|
449
|
-
let r = !0;
|
|
450
|
-
J.value = q.value.map((n, i) => {
|
|
451
|
-
let a = Number.isFinite(Number(n.end)) ? Number(n.end) : n.endVal, o = n.endVal + t[i] * e, s = t[i] >= 0 ? Math.min(o, a) : Math.max(o, a);
|
|
452
|
-
return s !== a && (r = !1), {
|
|
453
|
-
...n,
|
|
454
|
-
endVal: s
|
|
455
|
-
};
|
|
456
|
-
}), r ? Y.value = null : Y.value = requestAnimationFrame(n);
|
|
457
|
-
};
|
|
458
|
-
Y.value = requestAnimationFrame(n);
|
|
459
|
-
}
|
|
460
|
-
let Zn = d(() => F.value.style.chart.plots.evaluationColors.enable ? [
|
|
461
|
-
{
|
|
462
|
-
name: F.value.style.chart.legend.labelNegative,
|
|
463
|
-
color: F.value.style.chart.plots.gradient.show ? `url(#negative_grad_${k.value})` : F.value.style.chart.plots.evaluationColors.negative
|
|
464
|
-
},
|
|
465
|
-
{
|
|
466
|
-
name: F.value.style.chart.legend.labelNeutral,
|
|
467
|
-
color: F.value.style.chart.plots.gradient.show ? `url(#neutral_grad_${k.value})` : F.value.style.chart.plots.evaluationColors.neutral
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
name: F.value.style.chart.legend.labelPositive,
|
|
471
|
-
color: F.value.style.chart.plots.gradient.show ? `url(#positive_grad_${k.value})` : F.value.style.chart.plots.evaluationColors.positive
|
|
472
|
-
}
|
|
473
|
-
] : [{
|
|
474
|
-
name: F.value.style.chart.legend.labelStart,
|
|
475
|
-
color: F.value.style.chart.plots.gradient.show ? `url(#start_grad_${k.value})` : F.value.style.chart.plots.startColor
|
|
476
|
-
}, {
|
|
477
|
-
name: F.value.style.chart.legend.labelEnd,
|
|
478
|
-
color: F.value.style.chart.plots.gradient.show ? `url(#end_grad_${k.value})` : F.value.style.chart.plots.endColor
|
|
479
|
-
}]), Qn = d(() => ({
|
|
480
|
-
cy: "donut-div-legend",
|
|
481
|
-
backgroundColor: F.value.style.chart.legend.backgroundColor,
|
|
482
|
-
color: F.value.style.chart.legend.color,
|
|
483
|
-
fontSize: F.value.style.chart.legend.fontSize,
|
|
484
|
-
paddingBottom: 12,
|
|
485
|
-
paddingTop: 12,
|
|
486
|
-
fontWeight: F.value.style.chart.legend.bold ? "bold" : ""
|
|
487
|
-
})), X = d(() => ({
|
|
488
|
-
head: J.value.map((e) => ({ name: e.name })),
|
|
489
|
-
body: J.value.map((e) => ({
|
|
490
|
-
start: e.start,
|
|
491
|
-
end: e.end
|
|
492
|
-
}))
|
|
493
|
-
})), Z = d(() => {
|
|
494
|
-
let e = [
|
|
495
|
-
F.value.table.columnNames.series,
|
|
496
|
-
F.value.table.columnNames.start,
|
|
497
|
-
F.value.table.columnNames.end,
|
|
498
|
-
F.value.table.columnNames.progression
|
|
499
|
-
], n = X.value.head.map((e, n) => {
|
|
500
|
-
let r = t({
|
|
501
|
-
p: F.value.style.chart.labels.prefix,
|
|
502
|
-
v: X.value.body[n].start,
|
|
503
|
-
s: F.value.style.chart.labels.suffix,
|
|
504
|
-
r: F.value.table.td.roundingValue
|
|
505
|
-
}), i = t({
|
|
506
|
-
p: F.value.style.chart.labels.prefix,
|
|
507
|
-
v: X.value.body[n].end,
|
|
508
|
-
s: F.value.style.chart.labels.suffix,
|
|
509
|
-
r: F.value.table.td.roundingValue
|
|
510
|
-
}), a = t({
|
|
511
|
-
v: 100 * (X.value.body[n].end / X.value.body[n].start - 1),
|
|
512
|
-
s: "%",
|
|
513
|
-
r: F.value.table.td.roundingPercentage
|
|
514
|
-
});
|
|
515
|
-
return [
|
|
516
|
-
{ name: e.name },
|
|
517
|
-
r,
|
|
518
|
-
i,
|
|
519
|
-
a
|
|
520
|
-
];
|
|
521
|
-
}), r = {
|
|
522
|
-
th: {
|
|
523
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
524
|
-
color: F.value.table.th.color,
|
|
525
|
-
outline: F.value.table.th.outline
|
|
526
|
-
},
|
|
527
|
-
td: {
|
|
528
|
-
backgroundColor: F.value.table.td.backgroundColor,
|
|
529
|
-
color: F.value.table.td.color,
|
|
530
|
-
outline: F.value.table.td.outline
|
|
531
|
-
},
|
|
532
|
-
breakpoint: F.value.table.responsiveBreakpoint
|
|
533
|
-
};
|
|
534
|
-
return {
|
|
535
|
-
colNames: [
|
|
536
|
-
F.value.table.columnNames.series,
|
|
537
|
-
F.value.table.columnNames.start,
|
|
538
|
-
F.value.table.columnNames.end,
|
|
539
|
-
F.value.table.columnNames.progression
|
|
540
|
-
],
|
|
541
|
-
head: e,
|
|
542
|
-
body: n,
|
|
543
|
-
config: r
|
|
544
|
-
};
|
|
545
|
-
});
|
|
546
|
-
function $n(e = null) {
|
|
547
|
-
ke(() => {
|
|
548
|
-
let t = X.value.head.map((e, t) => [
|
|
549
|
-
[e.name],
|
|
550
|
-
[X.value.body[t].start],
|
|
551
|
-
[X.value.body[t].end]
|
|
552
|
-
]), n = i([
|
|
553
|
-
[F.value.style.chart.title.text],
|
|
554
|
-
[F.value.style.chart.title.subtitle.text],
|
|
555
|
-
[
|
|
556
|
-
[F.value.table.columnNames.series],
|
|
557
|
-
[F.value.table.columnNames.start],
|
|
558
|
-
[F.value.table.columnNames.end]
|
|
559
|
-
]
|
|
560
|
-
].concat(t));
|
|
561
|
-
e ? e(n) : r({
|
|
562
|
-
csvContent: n,
|
|
563
|
-
title: F.value.style.chart.title.text || "vue-ui-dumbbell"
|
|
564
|
-
});
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
let Q = x(!1);
|
|
568
|
-
function er(e) {
|
|
569
|
-
Q.value = e, ln.value += 1;
|
|
570
|
-
}
|
|
571
|
-
function tr() {
|
|
572
|
-
return V.value;
|
|
573
|
-
}
|
|
574
|
-
function nr() {
|
|
575
|
-
B.value.showTable = !B.value.showTable;
|
|
576
|
-
}
|
|
577
|
-
let rr = x(!1);
|
|
578
|
-
function ir() {
|
|
579
|
-
rr.value = !rr.value;
|
|
580
|
-
}
|
|
581
|
-
async function ar({ scale: e = 2 } = {}) {
|
|
582
|
-
if (!A.value) return;
|
|
583
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await me({
|
|
584
|
-
domElement: A.value,
|
|
585
|
-
base64: !0,
|
|
586
|
-
img: !0,
|
|
587
|
-
scale: e
|
|
588
|
-
});
|
|
589
|
-
return {
|
|
590
|
-
imageUri: i,
|
|
591
|
-
base64: a,
|
|
592
|
-
title: F.value.style.chart.title.text,
|
|
593
|
-
width: t,
|
|
594
|
-
height: n,
|
|
595
|
-
aspectRatio: r
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
let or = d(() => H.value.ticks);
|
|
599
|
-
pe({
|
|
600
|
-
timeLabelsEls: wn,
|
|
601
|
-
timeLabels: or,
|
|
602
|
-
slicer: d(() => ({
|
|
603
|
-
start: 0,
|
|
604
|
-
end: or.value.length
|
|
605
|
-
})),
|
|
606
|
-
configRef: F,
|
|
607
|
-
rotationPath: [
|
|
608
|
-
"style",
|
|
609
|
-
"chart",
|
|
610
|
-
"labels",
|
|
611
|
-
"xAxisLabels",
|
|
612
|
-
"rotation"
|
|
613
|
-
],
|
|
614
|
-
autoRotatePath: [
|
|
615
|
-
"style",
|
|
616
|
-
"chart",
|
|
617
|
-
"labels",
|
|
618
|
-
"xAxisLabels",
|
|
619
|
-
"autoRotate",
|
|
620
|
-
"enable"
|
|
621
|
-
],
|
|
622
|
-
isAutoSize: !1,
|
|
623
|
-
width: W,
|
|
624
|
-
height: U,
|
|
625
|
-
targetClass: ".vue-ui-dumbbell-scale-label",
|
|
626
|
-
rotation: F.value.style.chart.labels.xAxisLabels.autoRotate.angle
|
|
627
|
-
});
|
|
628
|
-
function sr({ rowHeight: e, fontSize: t, showProgression: n }) {
|
|
629
|
-
if (!n) return !1;
|
|
630
|
-
let r = e / 3, i = e / 1.3;
|
|
631
|
-
return Math.abs(i - r) < t * 1.2;
|
|
632
|
-
}
|
|
633
|
-
let cr = (() => {
|
|
634
|
-
let e = null, t = 0;
|
|
635
|
-
return (n) => {
|
|
636
|
-
if (n === P.value) {
|
|
637
|
-
e = null, t = 0;
|
|
638
|
-
return;
|
|
639
|
-
}
|
|
640
|
-
e === null || e !== n ? (e = n, t = 1) : (t += 1, t >= 1 && (P.value = n, e = null, t = 0));
|
|
641
|
-
};
|
|
642
|
-
})(), lr = _e(() => {
|
|
643
|
-
requestAnimationFrame(() => {
|
|
644
|
-
requestAnimationFrame(() => {
|
|
645
|
-
cr(sr({
|
|
646
|
-
rowHeight: G.value.rowHeight,
|
|
647
|
-
fontSize: F.value.style.chart.labels.yAxisLabels.fontSize,
|
|
648
|
-
showProgression: F.value.style.chart.labels.yAxisLabels.showProgression
|
|
649
|
-
}));
|
|
650
|
-
});
|
|
651
|
-
});
|
|
652
|
-
}, 100);
|
|
653
|
-
function ur({ datapoint: e, seriesIndex: t }) {
|
|
654
|
-
j.value = t, M.value = e, F.value.events.datapointEnter && F.value.events.datapointEnter({
|
|
655
|
-
datapoint: e,
|
|
656
|
-
seriesIndex: t
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
function dr({ datapoint: e, seriesIndex: t }) {
|
|
660
|
-
j.value = null, M.value = null, F.value.events.datapointLeave && F.value.events.datapointLeave({
|
|
661
|
-
datapoint: e,
|
|
662
|
-
seriesIndex: t
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
function fr({ datapoint: e, seriesIndex: t }) {
|
|
666
|
-
F.value.events.datapointClick && F.value.events.datapointClick({
|
|
667
|
-
datapoint: e,
|
|
668
|
-
seriesIndex: t
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
let pr = d(() => {
|
|
672
|
-
if (M.value === null) return 0;
|
|
673
|
-
let e = ![null, void 0].includes(M.value.start), t = ![null, void 0].includes(M.value.end);
|
|
674
|
-
return e && t ? Math.min(M.value.startX, M.value.endX) + Math.abs(M.value.startX - M.value.endX) / 2 : e && !t ? M.value.startX : t && !e ? M.value.endX : null;
|
|
675
|
-
}), mr = d(() => {
|
|
676
|
-
if (M.value === null) return "";
|
|
677
|
-
let e = ![null, void 0].includes(M.value.start), n = ![null, void 0].includes(M.value.end), r = "", i = "";
|
|
678
|
-
return e && (r = c(F.value.style.chart.labels.formatter, M.value.start, t({
|
|
679
|
-
p: F.value.style.chart.labels.prefix,
|
|
680
|
-
v: M.value.start,
|
|
681
|
-
s: F.value.style.chart.labels.suffix,
|
|
682
|
-
r: F.value.style.chart.labels.startLabels.rounding
|
|
683
|
-
}), {
|
|
684
|
-
datapoint: M.value,
|
|
685
|
-
seriesIndex: j.value
|
|
686
|
-
})), n && (i = c(F.value.style.chart.labels.formatter, M.value.end, t({
|
|
687
|
-
p: F.value.style.chart.labels.prefix,
|
|
688
|
-
v: M.value.end,
|
|
689
|
-
s: F.value.style.chart.labels.suffix,
|
|
690
|
-
r: F.value.style.chart.labels.startLabels.rounding
|
|
691
|
-
}), {
|
|
692
|
-
datapoint: M.value,
|
|
693
|
-
seriesIndex: j.value
|
|
694
|
-
})), e && n ? `${r} → ${i}` : e && !n ? r : n && !e ? i : "";
|
|
695
|
-
}), hr = d(() => {
|
|
696
|
-
let e = F.value.table.useDialog && !F.value.table.show, t = B.value.showTable;
|
|
697
|
-
return {
|
|
698
|
-
component: e ? nn : Zt,
|
|
699
|
-
title: `${F.value.style.chart.title.text}${F.value.style.chart.title.subtitle.text ? `: ${F.value.style.chart.title.subtitle.text}` : ""}`,
|
|
700
|
-
props: e ? {
|
|
701
|
-
backgroundColor: F.value.table.th.backgroundColor,
|
|
702
|
-
color: F.value.table.th.color,
|
|
703
|
-
headerColor: F.value.table.th.color,
|
|
704
|
-
headerBg: F.value.table.th.backgroundColor,
|
|
705
|
-
isFullscreen: Q.value,
|
|
706
|
-
fullscreenParent: A.value,
|
|
707
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
708
|
-
isCursorPointer: I.value
|
|
709
|
-
} : {
|
|
710
|
-
hideDetails: !0,
|
|
711
|
-
config: {
|
|
712
|
-
open: t,
|
|
713
|
-
maxHeight: 1e4,
|
|
714
|
-
body: {
|
|
715
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
716
|
-
color: F.value.style.chart.color
|
|
717
|
-
},
|
|
718
|
-
head: {
|
|
719
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
720
|
-
color: F.value.style.chart.color
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
};
|
|
725
|
-
});
|
|
726
|
-
Ie(() => B.value.showTable, (e) => {
|
|
727
|
-
F.value.table.show || (e && F.value.table.useDialog && vn.value ? vn.value.open() : "close" in vn.value && vn.value.close());
|
|
728
|
-
});
|
|
729
|
-
function gr() {
|
|
730
|
-
B.value.showTable = !1, yn.value && yn.value.setTableIconState(!1);
|
|
731
|
-
}
|
|
732
|
-
let _r = d(() => Zn.value.map((e) => ({
|
|
733
|
-
...e,
|
|
734
|
-
shape: "circle"
|
|
735
|
-
}))), vr = d(() => F.value.style.chart.backgroundColor), yr = d(() => F.value.style.chart.legend), { exportSvg: br, getSvg: xr } = ue({
|
|
736
|
-
svg: L,
|
|
737
|
-
title: d(() => F.value.style.chart.title),
|
|
738
|
-
legend: yr,
|
|
739
|
-
legendItems: _r,
|
|
740
|
-
backgroundColor: vr
|
|
741
|
-
});
|
|
742
|
-
async function Sr({ isCb: e }) {
|
|
743
|
-
xn.value = !0, await ke();
|
|
744
|
-
try {
|
|
745
|
-
if (e) {
|
|
746
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await xr();
|
|
747
|
-
await Promise.resolve(F.value.userOptions.callbacks.svg({
|
|
748
|
-
blob: e,
|
|
749
|
-
url: t,
|
|
750
|
-
text: n,
|
|
751
|
-
dataUrl: r
|
|
752
|
-
}));
|
|
753
|
-
} else await Promise.resolve(br());
|
|
754
|
-
} finally {
|
|
755
|
-
xn.value = !1;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
function Cr(e) {
|
|
759
|
-
if (e?.stage === "start") {
|
|
760
|
-
bn.value = !0;
|
|
761
|
-
return;
|
|
762
|
-
}
|
|
763
|
-
if (e?.stage === "end") {
|
|
764
|
-
bn.value = !1;
|
|
765
|
-
return;
|
|
766
|
-
}
|
|
767
|
-
Bn();
|
|
768
|
-
}
|
|
769
|
-
async function wr() {
|
|
770
|
-
if (sn("copyAlt", {
|
|
771
|
-
config: F.value,
|
|
772
|
-
dataset: J.value
|
|
773
|
-
}), !F.value.userOptions.callbacks.altCopy) {
|
|
774
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
775
|
-
return;
|
|
776
|
-
}
|
|
777
|
-
await Promise.resolve(F.value.userOptions.callbacks.altCopy({
|
|
778
|
-
config: F.value,
|
|
779
|
-
dataset: J.value
|
|
780
|
-
}));
|
|
781
|
-
}
|
|
782
|
-
function Tr(e) {
|
|
783
|
-
let t = J.value.length;
|
|
784
|
-
return t ? (e % t + t) % t : null;
|
|
785
|
-
}
|
|
786
|
-
function Er() {
|
|
787
|
-
if (N.value !== null) {
|
|
788
|
-
let e = J.value[N.value];
|
|
789
|
-
e && dr({
|
|
790
|
-
datapoint: e,
|
|
791
|
-
seriesIndex: N.value
|
|
792
|
-
});
|
|
793
|
-
}
|
|
794
|
-
N.value = null, j.value = null, M.value = null;
|
|
795
|
-
}
|
|
796
|
-
function Dr() {
|
|
797
|
-
N.value = null, En.value = !0;
|
|
798
|
-
}
|
|
799
|
-
function Or() {
|
|
800
|
-
Er(), En.value = !1;
|
|
801
|
-
}
|
|
802
|
-
function kr(e) {
|
|
803
|
-
if (!L.value || rr.value || document.activeElement !== L.value || !J.value.length) return;
|
|
804
|
-
let t = ["ArrowUp", "ArrowLeft"].includes(e.key), n = ["ArrowDown", "ArrowRight"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
805
|
-
if (!t && !n && !r && !i) return;
|
|
806
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
807
|
-
Er();
|
|
808
|
-
return;
|
|
809
|
-
}
|
|
810
|
-
if (r) {
|
|
811
|
-
if (N.value === null) return;
|
|
812
|
-
let e = J.value[N.value];
|
|
813
|
-
if (!e) return;
|
|
814
|
-
fr({
|
|
815
|
-
datapoint: e,
|
|
816
|
-
seriesIndex: N.value
|
|
817
|
-
});
|
|
818
|
-
return;
|
|
819
|
-
}
|
|
820
|
-
let a = N.value;
|
|
821
|
-
a = a === null ? n ? 0 : J.value.length - 1 : Tr(a + (n ? 1 : -1));
|
|
822
|
-
let o = J.value[a];
|
|
823
|
-
o && (N.value = a, ur({
|
|
824
|
-
datapoint: o,
|
|
825
|
-
seriesIndex: a
|
|
826
|
-
}));
|
|
827
|
-
}
|
|
828
|
-
let $ = d(() => ({
|
|
829
|
-
head: Z.value.head,
|
|
830
|
-
body: Z.value.body.map((e) => [
|
|
831
|
-
e[0]?.name ?? "",
|
|
832
|
-
e[1],
|
|
833
|
-
e[2],
|
|
834
|
-
e[3]
|
|
835
|
-
]),
|
|
836
|
-
caption: F.value.a11y.translations.tableCaption,
|
|
837
|
-
notice: F.value.a11y.translations.tableAvailable
|
|
838
|
-
}));
|
|
839
|
-
return ge({
|
|
840
|
-
getData: tr,
|
|
841
|
-
getImage: ar,
|
|
842
|
-
generatePdf: zn,
|
|
843
|
-
generateCsv: $n,
|
|
844
|
-
generateImage: Bn,
|
|
845
|
-
generateSvg: Sr,
|
|
846
|
-
toggleTable: nr,
|
|
847
|
-
toggleAnnotator: ir,
|
|
848
|
-
toggleFullscreen: er,
|
|
849
|
-
copyAlt: wr
|
|
850
|
-
}), (e, n) => (b(), m("div", {
|
|
851
|
-
ref_key: "dumbbellChart",
|
|
852
|
-
ref: A,
|
|
853
|
-
class: Ae(`vue-data-ui-component vue-ui-dumbbell ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
854
|
-
style: y(`font-family:${F.value.style.fontFamily};width:100%; text-align:center;background:${F.value.style.chart.backgroundColor};${F.value.responsive ? "height:100%" : ""}`),
|
|
855
|
-
id: `dumbbell_${k.value}`,
|
|
856
|
-
onMouseenter: n[1] ||= () => T(Mn)(!0),
|
|
857
|
-
onMouseleave: n[2] ||= () => T(Mn)(!1)
|
|
858
|
-
}, [
|
|
859
|
-
h("div", {
|
|
860
|
-
id: `chart-instructions-${k.value}`,
|
|
861
|
-
class: "sr-only"
|
|
862
|
-
}, [h("p", null, w(F.value.a11y.translations.keyboardNavigation), 1)], 8, Ve),
|
|
863
|
-
$.value.body.length ? (b(), f(ye, {
|
|
864
|
-
key: 0,
|
|
865
|
-
uid: k.value,
|
|
866
|
-
head: $.value.head,
|
|
867
|
-
body: $.value.body,
|
|
868
|
-
caption: $.value.caption,
|
|
869
|
-
notice: $.value.notice
|
|
870
|
-
}, null, 8, [
|
|
871
|
-
"uid",
|
|
872
|
-
"head",
|
|
873
|
-
"body",
|
|
874
|
-
"caption",
|
|
875
|
-
"notice"
|
|
876
|
-
])) : p("", !0),
|
|
877
|
-
F.value.userOptions.buttons.annotator ? (b(), f(T($t), {
|
|
878
|
-
key: 1,
|
|
879
|
-
svgRef: T(L),
|
|
880
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
881
|
-
color: F.value.style.chart.color,
|
|
882
|
-
active: rr.value,
|
|
883
|
-
isCursorPointer: I.value,
|
|
884
|
-
onClose: ir
|
|
885
|
-
}, {
|
|
886
|
-
"annotator-action-close": D(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
887
|
-
"annotator-action-color": D(({ color: t }) => [C(e.$slots, "annotator-action-color", v(_({ color: t })), void 0, !0)]),
|
|
888
|
-
"annotator-action-draw": D(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(_({ mode: t })), void 0, !0)]),
|
|
889
|
-
"annotator-action-undo": D(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(_({ disabled: t })), void 0, !0)]),
|
|
890
|
-
"annotator-action-redo": D(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(_({ disabled: t })), void 0, !0)]),
|
|
891
|
-
"annotator-action-delete": D(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(_({ disabled: t })), void 0, !0)]),
|
|
892
|
-
_: 3
|
|
893
|
-
}, 8, [
|
|
894
|
-
"svgRef",
|
|
895
|
-
"backgroundColor",
|
|
896
|
-
"color",
|
|
897
|
-
"active",
|
|
898
|
-
"isCursorPointer"
|
|
899
|
-
])) : p("", !0),
|
|
900
|
-
Vn.value ? (b(), m("div", {
|
|
901
|
-
key: 2,
|
|
902
|
-
ref_key: "noTitle",
|
|
903
|
-
ref: pn,
|
|
904
|
-
class: "vue-data-ui-no-title-space",
|
|
905
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
906
|
-
}, null, 512)) : p("", !0),
|
|
907
|
-
F.value.style.chart.title.text ? (b(), m("div", {
|
|
908
|
-
key: 3,
|
|
909
|
-
ref_key: "chartTitle",
|
|
910
|
-
ref: un,
|
|
911
|
-
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
912
|
-
}, [(b(), f(he, {
|
|
913
|
-
key: `title_${mn.value}`,
|
|
914
|
-
config: {
|
|
915
|
-
title: {
|
|
916
|
-
cy: "donut-div-title",
|
|
917
|
-
...F.value.style.chart.title
|
|
918
|
-
},
|
|
919
|
-
subtitle: {
|
|
920
|
-
cy: "donut-div-subtitle",
|
|
921
|
-
...F.value.style.chart.title.subtitle
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
}, null, 8, ["config"]))], 512)) : p("", !0),
|
|
925
|
-
h("div", { id: `legend-top-${k.value}` }, null, 8, He),
|
|
926
|
-
F.value.userOptions.show && cn.value && (T(Nn) || T(jn)) ? (b(), f(T(en), {
|
|
927
|
-
ref_key: "userOptionsRef",
|
|
928
|
-
ref: yn,
|
|
929
|
-
key: `user_option_${ln.value}`,
|
|
930
|
-
backgroundColor: F.value.style.chart.backgroundColor,
|
|
931
|
-
color: F.value.style.chart.color,
|
|
932
|
-
isPrinting: T(Ln),
|
|
933
|
-
isImaging: T(Rn),
|
|
934
|
-
uid: k.value,
|
|
935
|
-
hasPdf: F.value.userOptions.buttons.pdf,
|
|
936
|
-
hasXls: F.value.userOptions.buttons.csv,
|
|
937
|
-
hasImg: F.value.userOptions.buttons.img,
|
|
938
|
-
hasSvg: F.value.userOptions.buttons.svg,
|
|
939
|
-
hasTable: F.value.userOptions.buttons.table,
|
|
940
|
-
hasFullscreen: F.value.userOptions.buttons.fullscreen,
|
|
941
|
-
hasAltCopy: F.value.userOptions.buttons.altCopy,
|
|
942
|
-
isFullscreen: Q.value,
|
|
943
|
-
titles: { ...F.value.userOptions.buttonTitles },
|
|
944
|
-
chartElement: A.value,
|
|
945
|
-
position: F.value.userOptions.position,
|
|
946
|
-
hasAnnotator: F.value.userOptions.buttons.annotator,
|
|
947
|
-
isAnnotation: rr.value,
|
|
948
|
-
callbacks: F.value.userOptions.callbacks,
|
|
949
|
-
printScale: F.value.userOptions.print.scale,
|
|
950
|
-
tableDialog: F.value.table.useDialog,
|
|
951
|
-
isCursorPointer: I.value,
|
|
952
|
-
onToggleFullscreen: er,
|
|
953
|
-
onGeneratePdf: T(zn),
|
|
954
|
-
onGenerateCsv: $n,
|
|
955
|
-
onGenerateImage: Cr,
|
|
956
|
-
onGenerateSvg: Sr,
|
|
957
|
-
onToggleTable: nr,
|
|
958
|
-
onToggleAnnotator: ir,
|
|
959
|
-
onCopyAlt: wr,
|
|
960
|
-
style: y({ visibility: T(Nn) ? T(jn) ? "visible" : "hidden" : "visible" })
|
|
961
|
-
}, Te({ _: 2 }, [
|
|
962
|
-
e.$slots.menuIcon ? {
|
|
963
|
-
name: "menuIcon",
|
|
964
|
-
fn: D(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(_({
|
|
965
|
-
isOpen: t,
|
|
966
|
-
color: n
|
|
967
|
-
})), void 0, !0)]),
|
|
968
|
-
key: "0"
|
|
969
|
-
} : void 0,
|
|
970
|
-
e.$slots.optionPdf ? {
|
|
971
|
-
name: "optionPdf",
|
|
972
|
-
fn: D(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
973
|
-
key: "1"
|
|
974
|
-
} : void 0,
|
|
975
|
-
e.$slots.optionCsv ? {
|
|
976
|
-
name: "optionCsv",
|
|
977
|
-
fn: D(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
978
|
-
key: "2"
|
|
979
|
-
} : void 0,
|
|
980
|
-
e.$slots.optionImg ? {
|
|
981
|
-
name: "optionImg",
|
|
982
|
-
fn: D(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
983
|
-
key: "3"
|
|
984
|
-
} : void 0,
|
|
985
|
-
e.$slots.optionSvg ? {
|
|
986
|
-
name: "optionSvg",
|
|
987
|
-
fn: D(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
988
|
-
key: "4"
|
|
989
|
-
} : void 0,
|
|
990
|
-
e.$slots.optionTable ? {
|
|
991
|
-
name: "optionTable",
|
|
992
|
-
fn: D(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
993
|
-
key: "5"
|
|
994
|
-
} : void 0,
|
|
995
|
-
e.$slots.optionFullscreen ? {
|
|
996
|
-
name: "optionFullscreen",
|
|
997
|
-
fn: D(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(_({
|
|
998
|
-
toggleFullscreen: t,
|
|
999
|
-
isFullscreen: n
|
|
1000
|
-
})), void 0, !0)]),
|
|
1001
|
-
key: "6"
|
|
1002
|
-
} : void 0,
|
|
1003
|
-
e.$slots.optionAnnotator ? {
|
|
1004
|
-
name: "optionAnnotator",
|
|
1005
|
-
fn: D(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(_({
|
|
1006
|
-
toggleAnnotator: t,
|
|
1007
|
-
isAnnotator: n
|
|
1008
|
-
})), void 0, !0)]),
|
|
1009
|
-
key: "7"
|
|
1010
|
-
} : void 0,
|
|
1011
|
-
e.$slots.optionAltCopy ? {
|
|
1012
|
-
name: "optionAltCopy",
|
|
1013
|
-
fn: D(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(_({ altCopy: t })), void 0, !0)]),
|
|
1014
|
-
key: "8"
|
|
1015
|
-
} : void 0,
|
|
1016
|
-
e.$slots["custom-menu-before"] ? {
|
|
1017
|
-
name: "custom-menu-before",
|
|
1018
|
-
fn: D(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1019
|
-
key: "9"
|
|
1020
|
-
} : void 0,
|
|
1021
|
-
e.$slots["custom-menu-after"] ? {
|
|
1022
|
-
name: "custom-menu-after",
|
|
1023
|
-
fn: D(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1024
|
-
key: "10"
|
|
1025
|
-
} : void 0
|
|
1026
|
-
]), 1032, [
|
|
1027
|
-
"backgroundColor",
|
|
1028
|
-
"color",
|
|
1029
|
-
"isPrinting",
|
|
1030
|
-
"isImaging",
|
|
1031
|
-
"uid",
|
|
1032
|
-
"hasPdf",
|
|
1033
|
-
"hasXls",
|
|
1034
|
-
"hasImg",
|
|
1035
|
-
"hasSvg",
|
|
1036
|
-
"hasTable",
|
|
1037
|
-
"hasFullscreen",
|
|
1038
|
-
"hasAltCopy",
|
|
1039
|
-
"isFullscreen",
|
|
1040
|
-
"titles",
|
|
1041
|
-
"chartElement",
|
|
1042
|
-
"position",
|
|
1043
|
-
"hasAnnotator",
|
|
1044
|
-
"isAnnotation",
|
|
1045
|
-
"callbacks",
|
|
1046
|
-
"printScale",
|
|
1047
|
-
"tableDialog",
|
|
1048
|
-
"isCursorPointer",
|
|
1049
|
-
"onGeneratePdf",
|
|
1050
|
-
"style"
|
|
1051
|
-
])) : p("", !0),
|
|
1052
|
-
h("div", Ue, [(b(), m("svg", {
|
|
1053
|
-
ref_key: "svgRef",
|
|
1054
|
-
ref: L,
|
|
1055
|
-
xmlns: T(re),
|
|
1056
|
-
class: Ae({
|
|
1057
|
-
"vue-data-ui-fullscreen--on": Q.value,
|
|
1058
|
-
"vue-data-ui-fulscreen--off": !Q.value
|
|
1059
|
-
}),
|
|
1060
|
-
viewBox: `0 0 ${W.value} ${G.value.absoluteHeight <= 0 ? 10 : G.value.absoluteHeight}`,
|
|
1061
|
-
style: y(`max-width:100%; overflow: visible; background:transparent;color:${F.value.style.chart.color}`),
|
|
1062
|
-
"aria-describedby": `chart-instructions-${k.value}`,
|
|
1063
|
-
tabindex: "0",
|
|
1064
|
-
onFocus: Dr,
|
|
1065
|
-
onBlur: Or,
|
|
1066
|
-
onKeydown: kr
|
|
1067
|
-
}, [
|
|
1068
|
-
De(T(tn)),
|
|
1069
|
-
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
1070
|
-
key: 0,
|
|
1071
|
-
x: G.value.left,
|
|
1072
|
-
y: G.value.top,
|
|
1073
|
-
width: Math.max(.1, G.value.width),
|
|
1074
|
-
height: Math.max(.1, G.value.height),
|
|
1075
|
-
style: { pointerEvents: "none" }
|
|
1076
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
|
|
1077
|
-
F.value.style.chart.grid.verticalGrid.show ? (b(), m("g", Ke, [(b(!0), m(u, null, S(H.value.ticks, (e, t) => (b(), m("line", {
|
|
1078
|
-
x1: G.value.left + t * G.value.width / (H.value.ticks.length - 1),
|
|
1079
|
-
x2: G.value.left + t * G.value.width / (H.value.ticks.length - 1),
|
|
1080
|
-
y1: G.value.top,
|
|
1081
|
-
y2: G.value.bottom,
|
|
1082
|
-
stroke: F.value.style.chart.grid.verticalGrid.stroke,
|
|
1083
|
-
"stroke-width": F.value.style.chart.grid.verticalGrid.strokeWidth,
|
|
1084
|
-
"stroke-dasharray": F.value.style.chart.grid.verticalGrid.strokeDasharray
|
|
1085
|
-
}, null, 8, qe))), 256))])) : p("", !0),
|
|
1086
|
-
F.value.style.chart.grid.horizontalGrid.show ? (b(), m("g", Je, [(b(!0), m(u, null, S(V.value, (e, t) => (b(), m("line", {
|
|
1087
|
-
x1: G.value.left,
|
|
1088
|
-
x2: G.value.right,
|
|
1089
|
-
y1: G.value.top + t * G.value.rowHeight,
|
|
1090
|
-
y2: G.value.top + t * G.value.rowHeight,
|
|
1091
|
-
stroke: F.value.style.chart.grid.horizontalGrid.stroke,
|
|
1092
|
-
"stroke-width": F.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
1093
|
-
"stroke-dasharray": F.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
1094
|
-
}, null, 8, Ye))), 256)), h("line", {
|
|
1095
|
-
x1: G.value.left,
|
|
1096
|
-
x2: G.value.right,
|
|
1097
|
-
y1: G.value.bottom,
|
|
1098
|
-
y2: G.value.bottom,
|
|
1099
|
-
stroke: F.value.style.chart.grid.horizontalGrid.stroke,
|
|
1100
|
-
"stroke-width": F.value.style.chart.grid.horizontalGrid.strokeWidth,
|
|
1101
|
-
"stroke-dasharray": F.value.style.chart.grid.horizontalGrid.strokeDasharray
|
|
1102
|
-
}, null, 8, Xe)])) : p("", !0),
|
|
1103
|
-
F.value.style.chart.labels.axis.yLabel ? (b(), m("text", {
|
|
1104
|
-
key: 3,
|
|
1105
|
-
ref_key: "yAxisLabel",
|
|
1106
|
-
ref: Sn,
|
|
1107
|
-
transform: `translate(${F.value.style.chart.labels.axis.fontSize}, ${G.value.absoluteHeight / 2}), rotate(-90)`,
|
|
1108
|
-
"font-size": F.value.style.chart.labels.axis.fontSize,
|
|
1109
|
-
fill: F.value.style.chart.labels.axis.color,
|
|
1110
|
-
"text-anchor": "middle"
|
|
1111
|
-
}, w(F.value.style.chart.labels.axis.yLabel), 9, Ze)) : p("", !0),
|
|
1112
|
-
F.value.style.chart.labels.yAxisLabels.show ? (b(), m("g", {
|
|
1113
|
-
key: 4,
|
|
1114
|
-
ref_key: "serieLabels",
|
|
1115
|
-
ref: Cn
|
|
1116
|
-
}, [(b(!0), m(u, null, S(J.value, (e, n) => (b(), m("text", {
|
|
1117
|
-
class: "vue-ui-dumbbell-serie-name",
|
|
1118
|
-
key: `serieLabel_${e.id}_${n}`,
|
|
1119
|
-
x: G.value.left - 6 + F.value.style.chart.labels.yAxisLabels.offsetX,
|
|
1120
|
-
y: G.value.top + n * G.value.rowHeight + (!F.value.style.chart.labels.yAxisLabels.showProgression || P.value ? G.value.rowHeight / 2 : G.value.rowHeight / 3) + F.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
1121
|
-
"font-size": F.value.style.chart.labels.yAxisLabels.fontSize,
|
|
1122
|
-
fill: F.value.style.chart.labels.yAxisLabels.color,
|
|
1123
|
-
"font-weight": F.value.style.chart.labels.yAxisLabels.bold ? "bold" : "normal",
|
|
1124
|
-
"text-anchor": "end",
|
|
1125
|
-
onMouseenter: (t) => ur({
|
|
1126
|
-
datapoint: e,
|
|
1127
|
-
seriesIndex: n
|
|
1128
|
-
}),
|
|
1129
|
-
onMouseleave: (t) => dr({
|
|
1130
|
-
datapoint: e,
|
|
1131
|
-
seriesIndex: n
|
|
1132
|
-
}),
|
|
1133
|
-
onClick: (t) => fr({
|
|
1134
|
-
datapoint: e,
|
|
1135
|
-
seriesIndex: n
|
|
1136
|
-
})
|
|
1137
|
-
}, w(e.name) + " " + w(P.value && F.value.style.chart.labels.yAxisLabels.showProgression ? [null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : `(${T(c)(F.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), T(t)({
|
|
1138
|
-
v: 100 * (e.end / e.start - 1),
|
|
1139
|
-
s: "%",
|
|
1140
|
-
r: F.value.style.chart.labels.yAxisLabels.rounding
|
|
1141
|
-
}), { datapoint: e })})` : ""), 41, Qe))), 128)), F.value.style.chart.labels.yAxisLabels.showProgression && !P.value ? (b(!0), m(u, { key: 0 }, S(J.value, (e, n) => (b(), m("text", {
|
|
1142
|
-
class: "vue-ui-dumbbell-serie-value",
|
|
1143
|
-
x: G.value.left - 6 + F.value.style.chart.labels.yAxisLabels.offsetX,
|
|
1144
|
-
y: G.value.top + n * G.value.rowHeight + G.value.rowHeight / 1.3 + F.value.style.chart.labels.yAxisLabels.fontSize / 3,
|
|
1145
|
-
"font-size": F.value.style.chart.labels.yAxisLabels.fontSize,
|
|
1146
|
-
fill: F.value.style.chart.labels.yAxisLabels.color,
|
|
1147
|
-
"text-anchor": "end",
|
|
1148
|
-
onMouseenter: (t) => ur({
|
|
1149
|
-
datapoint: e,
|
|
1150
|
-
seriesIndex: n
|
|
1151
|
-
}),
|
|
1152
|
-
onMouseleave: (t) => dr({
|
|
1153
|
-
datapoint: e,
|
|
1154
|
-
seriesIndex: n
|
|
1155
|
-
}),
|
|
1156
|
-
onClick: (t) => fr({
|
|
1157
|
-
datapoint: e,
|
|
1158
|
-
seriesIndex: n
|
|
1159
|
-
})
|
|
1160
|
-
}, w([null, void 0].includes(e.start) || [null, void 0].includes(e.end) ? "" : T(c)(F.value.style.chart.labels.yAxisLabels.formatter, 100 * (e.end / e.start - 1), T(t)({
|
|
1161
|
-
v: 100 * (e.end / e.start - 1),
|
|
1162
|
-
s: "%",
|
|
1163
|
-
r: F.value.style.chart.labels.yAxisLabels.rounding
|
|
1164
|
-
}), { datapoint: e })), 41, $e))), 256)) : p("", !0)], 512)) : p("", !0),
|
|
1165
|
-
F.value.style.chart.labels.axis.xLabel ? (b(), m("text", {
|
|
1166
|
-
key: 5,
|
|
1167
|
-
ref_key: "xAxisLabel",
|
|
1168
|
-
ref: Tn,
|
|
1169
|
-
x: G.value.left + G.value.width / 2,
|
|
1170
|
-
y: G.value.absoluteHeight - F.value.style.chart.labels.axis.fontSize / 3,
|
|
1171
|
-
"font-size": F.value.style.chart.labels.axis.fontSize,
|
|
1172
|
-
fill: F.value.style.chart.labels.axis.color,
|
|
1173
|
-
"text-anchor": "middle"
|
|
1174
|
-
}, w(F.value.style.chart.labels.axis.xLabel), 9, et)) : p("", !0),
|
|
1175
|
-
F.value.style.chart.labels.xAxisLabels.show ? (b(), m("g", {
|
|
1176
|
-
key: 6,
|
|
1177
|
-
ref_key: "scaleLabels",
|
|
1178
|
-
ref: wn
|
|
1179
|
-
}, [(b(!0), m(u, null, S(H.value.ticks, (e, n) => (b(), m("text", {
|
|
1180
|
-
class: "vue-ui-dumbbell-scale-label",
|
|
1181
|
-
key: `tick_${n}`,
|
|
1182
|
-
transform: `translate(${G.value.left + n * (G.value.width / (H.value.ticks.length - 1))}, ${G.value.bottom + F.value.style.chart.labels.xAxisLabels.fontSize + F.value.style.chart.labels.xAxisLabels.offsetY}), rotate(${F.value.style.chart.labels.xAxisLabels.rotation})`,
|
|
1183
|
-
"font-size": F.value.style.chart.labels.xAxisLabels.fontSize,
|
|
1184
|
-
fill: F.value.style.chart.labels.xAxisLabels.color,
|
|
1185
|
-
"font-weight": F.value.style.chart.labels.xAxisLabels.bold ? "bold" : "normal",
|
|
1186
|
-
"text-anchor": F.value.style.chart.labels.xAxisLabels.rotation > 0 ? "start" : F.value.style.chart.labels.xAxisLabels.rotation < 0 ? "end" : "middle"
|
|
1187
|
-
}, w(T(c)(F.value.style.chart.labels.formatter, e, T(t)({
|
|
1188
|
-
p: F.value.style.chart.labels.prefix,
|
|
1189
|
-
v: e,
|
|
1190
|
-
s: F.value.style.chart.labels.suffix,
|
|
1191
|
-
r: F.value.style.chart.labels.xAxisLabels.rounding
|
|
1192
|
-
}), {
|
|
1193
|
-
datapoint: e,
|
|
1194
|
-
seriesIndex: n
|
|
1195
|
-
})), 9, tt))), 128))], 512)) : p("", !0),
|
|
1196
|
-
Re(h("g", null, [
|
|
1197
|
-
Re(h("path", {
|
|
1198
|
-
d: `M ${M.value ? M.value.startX : G.value.left},${G.value.top} ${M.value ? M.value.startX : G.value.left},${G.value.bottom}`,
|
|
1199
|
-
stroke: M.value ? F.value.style.chart.plots.evaluationColors.enable ? M.value.evaluationColor : F.value.style.chart.plots.startColor : "transparent",
|
|
1200
|
-
"stroke-width": F.value.style.chart.comparisonLines.strokeWidth,
|
|
1201
|
-
"stroke-dasharray": F.value.style.chart.comparisonLines.strokeDasharray,
|
|
1202
|
-
style: { transition: "all 0.3s ease-in-out" }
|
|
1203
|
-
}, null, 8, nt), [[E, M.value !== null && ![null, void 0].includes(M.value.start)]]),
|
|
1204
|
-
Re(h("path", {
|
|
1205
|
-
d: `M ${M.value ? M.value.endX : G.value.left},${G.value.top} ${M.value ? M.value.endX : G.value.left},${G.value.bottom}`,
|
|
1206
|
-
stroke: M.value ? F.value.style.chart.plots.evaluationColors.enable ? M.value.evaluationColor : F.value.style.chart.plots.endColor : "transparent",
|
|
1207
|
-
"stroke-width": F.value.style.chart.comparisonLines.strokeWidth,
|
|
1208
|
-
"stroke-dasharray": F.value.style.chart.comparisonLines.strokeDasharray,
|
|
1209
|
-
style: { transition: "all 0.3s ease-in-out" }
|
|
1210
|
-
}, null, 8, rt), [[E, M.value !== null && ![null, void 0].includes(M.value.end)]]),
|
|
1211
|
-
Re(h("rect", {
|
|
1212
|
-
x: M.value ? Math.min(M.value.startX, M.value.endX) : G.value.left,
|
|
1213
|
-
y: G.value.top,
|
|
1214
|
-
height: Math.max(.1, G.value.height),
|
|
1215
|
-
width: M.value ? Math.max(.1, Math.abs(M.value.endX - M.value.startX)) : 0,
|
|
1216
|
-
fill: M.value ? T(te)(F.value.style.chart.comparisonLines.rectColor, F.value.style.chart.comparisonLines.rectOpacity) : "transparent",
|
|
1217
|
-
style: { transition: "all 0.3s ease-in-out" }
|
|
1218
|
-
}, null, 8, it), [[E, F.value.style.chart.comparisonLines.showRect && M.value !== null && ![null, void 0].includes(M.value.start) && ![null, void 0].includes(M.value.end)]]),
|
|
1219
|
-
Re(h("text", {
|
|
1220
|
-
transform: `translate(${pr.value == null ? 0 : pr.value}, ${G.value.top - 6})`,
|
|
1221
|
-
fill: F.value.style.chart.comparisonLines.labelColor,
|
|
1222
|
-
"font-size": F.value.style.chart.comparisonLines.labelFontSize,
|
|
1223
|
-
"text-anchor": "middle",
|
|
1224
|
-
style: { transition: "all 0.3s ease-in-out" }
|
|
1225
|
-
}, w(mr.value), 9, at), [[E, M.value !== null && pr.value !== null && F.value.style.chart.comparisonLines.showLabel]])
|
|
1226
|
-
], 512), [[E, F.value.style.chart.comparisonLines.show && j.value !== null]]),
|
|
1227
|
-
h("defs", null, [
|
|
1228
|
-
h("radialGradient", {
|
|
1229
|
-
id: `start_grad_${k.value}`,
|
|
1230
|
-
fy: "30%"
|
|
1231
|
-
}, [
|
|
1232
|
-
h("stop", {
|
|
1233
|
-
offset: "10%",
|
|
1234
|
-
"stop-color": T(l)(F.value.style.chart.plots.startColor, F.value.style.chart.plots.gradient.intensity / 100)
|
|
1235
|
-
}, null, 8, st),
|
|
1236
|
-
h("stop", {
|
|
1237
|
-
offset: "90%",
|
|
1238
|
-
"stop-color": T(o)(F.value.style.chart.plots.startColor, .1)
|
|
1239
|
-
}, null, 8, ct),
|
|
1240
|
-
h("stop", {
|
|
1241
|
-
offset: "100%",
|
|
1242
|
-
"stop-color": F.value.style.chart.plots.startColor
|
|
1243
|
-
}, null, 8, lt)
|
|
1244
|
-
], 8, ot),
|
|
1245
|
-
h("radialGradient", {
|
|
1246
|
-
id: `end_grad_${k.value}`,
|
|
1247
|
-
fy: "30%"
|
|
1248
|
-
}, [
|
|
1249
|
-
h("stop", {
|
|
1250
|
-
offset: "10%",
|
|
1251
|
-
"stop-color": T(l)(F.value.style.chart.plots.endColor, F.value.style.chart.plots.gradient.intensity / 100)
|
|
1252
|
-
}, null, 8, dt),
|
|
1253
|
-
h("stop", {
|
|
1254
|
-
offset: "90%",
|
|
1255
|
-
"stop-color": T(o)(F.value.style.chart.plots.endColor, .1)
|
|
1256
|
-
}, null, 8, ft),
|
|
1257
|
-
h("stop", {
|
|
1258
|
-
offset: "100%",
|
|
1259
|
-
"stop-color": F.value.style.chart.plots.endColor
|
|
1260
|
-
}, null, 8, pt)
|
|
1261
|
-
], 8, ut),
|
|
1262
|
-
h("radialGradient", {
|
|
1263
|
-
id: `positive_grad_${k.value}`,
|
|
1264
|
-
fy: "30%"
|
|
1265
|
-
}, [
|
|
1266
|
-
h("stop", {
|
|
1267
|
-
offset: "10%",
|
|
1268
|
-
"stop-color": T(l)(F.value.style.chart.plots.evaluationColors.positive, F.value.style.chart.plots.gradient.intensity / 100)
|
|
1269
|
-
}, null, 8, ht),
|
|
1270
|
-
h("stop", {
|
|
1271
|
-
offset: "90%",
|
|
1272
|
-
"stop-color": T(o)(F.value.style.chart.plots.evaluationColors.positive, .1)
|
|
1273
|
-
}, null, 8, gt),
|
|
1274
|
-
h("stop", {
|
|
1275
|
-
offset: "100%",
|
|
1276
|
-
"stop-color": F.value.style.chart.plots.evaluationColors.positive
|
|
1277
|
-
}, null, 8, _t)
|
|
1278
|
-
], 8, mt),
|
|
1279
|
-
h("radialGradient", {
|
|
1280
|
-
id: `negative_grad_${k.value}`,
|
|
1281
|
-
fy: "30%"
|
|
1282
|
-
}, [
|
|
1283
|
-
h("stop", {
|
|
1284
|
-
offset: "10%",
|
|
1285
|
-
"stop-color": T(l)(F.value.style.chart.plots.evaluationColors.negative, F.value.style.chart.plots.gradient.intensity / 100)
|
|
1286
|
-
}, null, 8, yt),
|
|
1287
|
-
h("stop", {
|
|
1288
|
-
offset: "90%",
|
|
1289
|
-
"stop-color": T(o)(F.value.style.chart.plots.evaluationColors.negative, .1)
|
|
1290
|
-
}, null, 8, bt),
|
|
1291
|
-
h("stop", {
|
|
1292
|
-
offset: "100%",
|
|
1293
|
-
"stop-color": F.value.style.chart.plots.evaluationColors.negative
|
|
1294
|
-
}, null, 8, xt)
|
|
1295
|
-
], 8, vt),
|
|
1296
|
-
h("radialGradient", {
|
|
1297
|
-
id: `neutral_grad_${k.value}`,
|
|
1298
|
-
fy: "30%"
|
|
1299
|
-
}, [
|
|
1300
|
-
h("stop", {
|
|
1301
|
-
offset: "10%",
|
|
1302
|
-
"stop-color": T(l)(F.value.style.chart.plots.evaluationColors.neutral, F.value.style.chart.plots.gradient.intensity / 100)
|
|
1303
|
-
}, null, 8, Ct),
|
|
1304
|
-
h("stop", {
|
|
1305
|
-
offset: "90%",
|
|
1306
|
-
"stop-color": T(o)(F.value.style.chart.plots.evaluationColors.neutral, .1)
|
|
1307
|
-
}, null, 8, wt),
|
|
1308
|
-
h("stop", {
|
|
1309
|
-
offset: "100%",
|
|
1310
|
-
"stop-color": F.value.style.chart.plots.evaluationColors.neutral
|
|
1311
|
-
}, null, 8, Tt)
|
|
1312
|
-
], 8, St)
|
|
1313
|
-
]),
|
|
1314
|
-
(b(!0), m(u, null, S(J.value, (e, t) => (b(), m("g", { key: `plot_${t}_${e.id}` }, [
|
|
1315
|
-
h("defs", null, [h("linearGradient", {
|
|
1316
|
-
id: `grad_pos_${k.value}`,
|
|
1317
|
-
x1: "0%",
|
|
1318
|
-
x2: "100%",
|
|
1319
|
-
y1: "0%",
|
|
1320
|
-
y2: "0%"
|
|
1321
|
-
}, [h("stop", {
|
|
1322
|
-
offset: "0%",
|
|
1323
|
-
"stop-color": F.value.style.chart.plots.startColor
|
|
1324
|
-
}, null, 8, Dt), h("stop", {
|
|
1325
|
-
offset: "100%",
|
|
1326
|
-
"stop-color": F.value.style.chart.plots.endColor
|
|
1327
|
-
}, null, 8, Ot)], 8, Et), h("linearGradient", {
|
|
1328
|
-
id: `grad_neg_${k.value}`,
|
|
1329
|
-
x1: "0%",
|
|
1330
|
-
x2: "100%",
|
|
1331
|
-
y1: "0%",
|
|
1332
|
-
y2: "0%"
|
|
1333
|
-
}, [h("stop", {
|
|
1334
|
-
offset: "0%",
|
|
1335
|
-
"stop-color": F.value.style.chart.plots.endColor
|
|
1336
|
-
}, null, 8, At), h("stop", {
|
|
1337
|
-
offset: "100%",
|
|
1338
|
-
"stop-color": F.value.style.chart.plots.startColor
|
|
1339
|
-
}, null, 8, jt)], 8, kt)]),
|
|
1340
|
-
![void 0, null].includes(e.end) && ![void 0, null].includes(e.start) ? (b(), m("g", Mt, [F.value.style.chart.plots.link.type === "curved" ? (b(), m("g", Nt, [h("path", {
|
|
1341
|
-
d: `M
|
|
1342
|
-
${e.startX},${e.y + K.value / 2}
|
|
1343
|
-
C ${e.centerX},${e.y} ${e.centerX},${e.y}
|
|
1344
|
-
${e.endX},${e.y + K.value / 2}
|
|
1345
|
-
L ${e.endX},${e.y - K.value / 2}
|
|
1346
|
-
C ${e.centerX},${e.y} ${e.centerX},${e.y}
|
|
1347
|
-
${e.startX},${e.y - K.value / 2}
|
|
1348
|
-
Z
|
|
1349
|
-
`,
|
|
1350
|
-
fill: F.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${k.value})` : `url(#grad_neg_${k.value})`
|
|
1351
|
-
}, null, 8, Pt)])) : (b(), m("g", Ft, [h("rect", {
|
|
1352
|
-
x: e.endX > e.startX ? e.startX : e.endX,
|
|
1353
|
-
y: e.y - F.value.style.chart.plots.link.strokeWidth / 2,
|
|
1354
|
-
height: Math.max(.01, F.value.style.chart.plots.link.strokeWidth),
|
|
1355
|
-
width: Math.max(.01, Math.abs(e.endX - e.startX)),
|
|
1356
|
-
fill: F.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : e.endX > e.startX ? `url(#grad_pos_${k.value})` : `url(#grad_neg_${k.value})`
|
|
1357
|
-
}, null, 8, It)]))])) : p("", !0),
|
|
1358
|
-
[null, void 0].includes(e.start) ? p("", !0) : (b(), m("circle", {
|
|
1359
|
-
key: 1,
|
|
1360
|
-
cx: e.startX,
|
|
1361
|
-
cy: e.y,
|
|
1362
|
-
r: K.value,
|
|
1363
|
-
fill: F.value.style.chart.plots.gradient.show ? F.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#start_grad_${k.value})` : F.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : F.value.style.chart.plots.startColor,
|
|
1364
|
-
stroke: F.value.style.chart.plots.stroke,
|
|
1365
|
-
"stroke-width": F.value.style.chart.plots.strokeWidth
|
|
1366
|
-
}, null, 8, Lt)),
|
|
1367
|
-
[null, void 0].includes(e.end) ? p("", !0) : (b(), m("circle", {
|
|
1368
|
-
key: 2,
|
|
1369
|
-
cx: e.endX,
|
|
1370
|
-
cy: e.y,
|
|
1371
|
-
r: K.value,
|
|
1372
|
-
fill: F.value.style.chart.plots.gradient.show ? F.value.style.chart.plots.evaluationColors.enable ? e.evaluationGrad : `url(#end_grad_${k.value})` : F.value.style.chart.plots.evaluationColors.enable ? e.evaluationColor : F.value.style.chart.plots.endColor,
|
|
1373
|
-
stroke: F.value.style.chart.plots.stroke,
|
|
1374
|
-
"stroke-width": F.value.style.chart.plots.strokeWidth
|
|
1375
|
-
}, null, 8, Rt))
|
|
1376
|
-
]))), 128)),
|
|
1377
|
-
F.value.style.chart.labels.startLabels.show ? (b(), m("g", zt, [(b(!0), m(u, null, S(J.value, (e, n) => (b(), m("g", { key: `start_label_${n}_${e.id}` }, [[null, void 0].includes(e.start) ? p("", !0) : (b(), m("text", {
|
|
1378
|
-
key: 0,
|
|
1379
|
-
x: e.startX,
|
|
1380
|
-
y: e.y + K.value * 2 + F.value.style.chart.labels.startLabels.fontSize / 2,
|
|
1381
|
-
fill: F.value.style.chart.plots.evaluationColors.enable && F.value.style.chart.labels.startLabels.useEvaluationColor ? e.evaluationColor : F.value.style.chart.labels.startLabels.useStartColor ? F.value.style.chart.plots.startColor : F.value.style.chart.labels.startLabels.color,
|
|
1382
|
-
"font-size": F.value.style.chart.labels.startLabels.fontSize,
|
|
1383
|
-
"text-anchor": "middle"
|
|
1384
|
-
}, w(T(c)(F.value.style.chart.labels.formatter, e.start, T(t)({
|
|
1385
|
-
p: F.value.style.chart.labels.prefix,
|
|
1386
|
-
v: e.start,
|
|
1387
|
-
s: F.value.style.chart.labels.suffix,
|
|
1388
|
-
r: F.value.style.chart.labels.startLabels.rounding
|
|
1389
|
-
}), {
|
|
1390
|
-
datapoint: e,
|
|
1391
|
-
seriesIndex: n
|
|
1392
|
-
})), 9, Bt))]))), 128))])) : p("", !0),
|
|
1393
|
-
F.value.style.chart.labels.endLabels.show ? (b(), m("g", Vt, [(b(!0), m(u, null, S(J.value, (e, n) => (b(), m("g", { key: `end_label_${n}_${e.id}` }, [[null, void 0].includes(e.end) ? p("", !0) : (b(), m("text", {
|
|
1394
|
-
key: 0,
|
|
1395
|
-
x: e.endX,
|
|
1396
|
-
y: e.y - (K.value * 2 - F.value.style.chart.labels.startLabels.fontSize / 3),
|
|
1397
|
-
fill: F.value.style.chart.plots.evaluationColors.enable && F.value.style.chart.labels.endLabels.useEvaluationColor ? e.evaluationColor : F.value.style.chart.labels.endLabels.useEndColor ? F.value.style.chart.plots.endColor : F.value.style.chart.labels.endLabels.color,
|
|
1398
|
-
"font-size": F.value.style.chart.labels.endLabels.fontSize,
|
|
1399
|
-
"text-anchor": "middle"
|
|
1400
|
-
}, w(T(c)(F.value.style.chart.labels.formatter, e.end, T(t)({
|
|
1401
|
-
p: F.value.style.chart.labels.prefix,
|
|
1402
|
-
v: e.end,
|
|
1403
|
-
s: F.value.style.chart.labels.suffix,
|
|
1404
|
-
r: F.value.style.chart.labels.endLabels.rounding
|
|
1405
|
-
}), {
|
|
1406
|
-
datapoint: e,
|
|
1407
|
-
seriesIndex: n
|
|
1408
|
-
})), 9, Ht))]))), 128))])) : p("", !0),
|
|
1409
|
-
h("g", null, [(b(!0), m(u, null, S(J.value, (e, t) => (b(), m("rect", {
|
|
1410
|
-
x: G.value.left,
|
|
1411
|
-
y: G.value.top + t * Math.max(.1, G.value.rowHeight),
|
|
1412
|
-
width: Math.max(.1, G.value.width),
|
|
1413
|
-
height: Math.max(.1, G.value.rowHeight),
|
|
1414
|
-
fill: j.value === null ? "transparent" : j.value === t ? T(te)(F.value.style.chart.highlighter.color, F.value.style.chart.highlighter.opacity) : "transparent",
|
|
1415
|
-
onMouseenter: (n) => ur({
|
|
1416
|
-
datapoint: e,
|
|
1417
|
-
seriesIndex: t
|
|
1418
|
-
}),
|
|
1419
|
-
onMouseleave: (n) => dr({
|
|
1420
|
-
datapoint: e,
|
|
1421
|
-
seriesIndex: t
|
|
1422
|
-
}),
|
|
1423
|
-
onClick: (n) => fr({
|
|
1424
|
-
datapoint: e,
|
|
1425
|
-
seriesIndex: t
|
|
1426
|
-
})
|
|
1427
|
-
}, null, 40, Ut))), 256))]),
|
|
1428
|
-
C(e.$slots, "svg", { svg: {
|
|
1429
|
-
...G.value,
|
|
1430
|
-
isPrintingImg: T(Ln) || T(Rn) || bn.value,
|
|
1431
|
-
isPrintingSvg: xn.value
|
|
1432
|
-
} }, void 0, !0)
|
|
1433
|
-
], 46, We)), e.$slots.hint ? (b(), m("div", Wt, [C(e.$slots, "hint", v(_({
|
|
1434
|
-
hint: F.value.a11y.translations.keyboardNavigation,
|
|
1435
|
-
isVisible: En.value
|
|
1436
|
-
})), void 0, !0)])) : p("", !0)]),
|
|
1437
|
-
e.$slots.watermark ? (b(), m("div", Gt, [C(e.$slots, "watermark", v(_({ isPrinting: T(Ln) || T(Rn) || bn.value || xn.value })), void 0, !0)])) : p("", !0),
|
|
1438
|
-
h("div", { id: `legend-bottom-${k.value}` }, null, 8, Kt),
|
|
1439
|
-
_n.value && (F.value.style.chart.legend.show || e.$slots.legend) ? (b(), f(we, {
|
|
1440
|
-
key: 6,
|
|
1441
|
-
to: F.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1442
|
-
}, [h("div", {
|
|
1443
|
-
ref_key: "chartLegend",
|
|
1444
|
-
ref: dn
|
|
1445
|
-
}, [C(e.$slots, "legend", { legend: Zn.value }, () => [F.value.style.chart.legend.show && cn.value ? (b(), f(Se, {
|
|
1446
|
-
key: `legend_${gn.value}`,
|
|
1447
|
-
legendSet: Zn.value,
|
|
1448
|
-
config: Qn.value,
|
|
1449
|
-
clickable: !1
|
|
1450
|
-
}, {
|
|
1451
|
-
item: D(({ legend: e }) => [h("div", { style: y(`display:flex;align-items:center;gap:4px;font-size:${F.value.style.chart.legend.fontSize}px`) }, [(b(), m("svg", {
|
|
1452
|
-
xmlns: T(re),
|
|
1453
|
-
viewBox: "0 0 20 20",
|
|
1454
|
-
height: F.value.style.chart.legend.fontSize,
|
|
1455
|
-
width: F.value.style.chart.legend.fontSize
|
|
1456
|
-
}, [h("circle", {
|
|
1457
|
-
cx: 10,
|
|
1458
|
-
cy: 10,
|
|
1459
|
-
r: 9,
|
|
1460
|
-
fill: e.color
|
|
1461
|
-
}, null, 8, Jt)], 8, qt)), T(On) ? p("", !0) : (b(), m(u, { key: 0 }, [Ee(w(e.name), 1)], 64))], 4)]),
|
|
1462
|
-
_: 1
|
|
1463
|
-
}, 8, ["legendSet", "config"])) : p("", !0)], !0)], 512)], 8, ["to"])) : p("", !0),
|
|
1464
|
-
e.$slots.source ? (b(), m("div", {
|
|
1465
|
-
key: 7,
|
|
1466
|
-
ref_key: "source",
|
|
1467
|
-
ref: fn,
|
|
1468
|
-
dir: "auto"
|
|
1469
|
-
}, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1470
|
-
cn.value && F.value.userOptions.buttons.table ? (b(), f(Ne(hr.value.component), Oe({ key: 8 }, hr.value.props, {
|
|
1471
|
-
ref_key: "tableUnit",
|
|
1472
|
-
ref: vn,
|
|
1473
|
-
onClose: gr
|
|
1474
|
-
}), Te({
|
|
1475
|
-
content: D(() => [(b(), f(T(Qt), {
|
|
1476
|
-
key: `table_${hn.value}`,
|
|
1477
|
-
colNames: Z.value.colNames,
|
|
1478
|
-
head: Z.value.head,
|
|
1479
|
-
body: Z.value.body,
|
|
1480
|
-
config: Z.value.config,
|
|
1481
|
-
title: F.value.table.useDialog ? "" : hr.value.title,
|
|
1482
|
-
withCloseButton: !F.value.table.useDialog,
|
|
1483
|
-
isCursorPointer: I.value,
|
|
1484
|
-
onClose: gr
|
|
1485
|
-
}, {
|
|
1486
|
-
th: D(({ th: e }) => [h("div", {
|
|
1487
|
-
innerHTML: e,
|
|
1488
|
-
style: {
|
|
1489
|
-
display: "flex",
|
|
1490
|
-
"align-items": "center"
|
|
1491
|
-
}
|
|
1492
|
-
}, null, 8, Yt)]),
|
|
1493
|
-
td: D(({ td: e }) => [Ee(w(e.name || e), 1)]),
|
|
1494
|
-
_: 1
|
|
1495
|
-
}, 8, [
|
|
1496
|
-
"colNames",
|
|
1497
|
-
"head",
|
|
1498
|
-
"body",
|
|
1499
|
-
"config",
|
|
1500
|
-
"title",
|
|
1501
|
-
"withCloseButton",
|
|
1502
|
-
"isCursorPointer"
|
|
1503
|
-
]))]),
|
|
1504
|
-
_: 2
|
|
1505
|
-
}, [F.value.table.useDialog ? {
|
|
1506
|
-
name: "title",
|
|
1507
|
-
fn: D(() => [Ee(w(hr.value.title), 1)]),
|
|
1508
|
-
key: "0"
|
|
1509
|
-
} : void 0, F.value.table.useDialog ? {
|
|
1510
|
-
name: "actions",
|
|
1511
|
-
fn: D(() => [h("button", {
|
|
1512
|
-
tabindex: "0",
|
|
1513
|
-
class: "vue-ui-user-options-button",
|
|
1514
|
-
onClick: n[0] ||= (e) => $n(F.value.userOptions.callbacks.csv),
|
|
1515
|
-
style: y({ cursor: I.value ? "pointer" : "default" })
|
|
1516
|
-
}, [De(T(Xt), {
|
|
1517
|
-
name: "fileCsv",
|
|
1518
|
-
stroke: hr.value.props.color
|
|
1519
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1520
|
-
key: "1"
|
|
1521
|
-
} : void 0]), 1040)) : p("", !0),
|
|
1522
|
-
C(e.$slots, "skeleton", {}, () => [T(On) ? (b(), f(le, { key: 0 })) : p("", !0)], !0)
|
|
1523
|
-
], 46, Be));
|
|
1524
|
-
}
|
|
1525
|
-
}, [["__scopeId", "data-v-c54929c2"]]);
|
|
1526
|
-
//#endregion
|
|
1527
|
-
export { ze as n, Xt as t };
|