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,662 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { G as t, H as n, Lt as r, Mt as i, St as a, Tt as o, X as s, i as c, jt as ee, ot as te, pt as ne, t as re, x as ie, y as l, zt as ae } from "./lib-BkiwukKO.js";
|
|
3
|
-
import { t as oe } from "./useConfig-ByaaSKhz.js";
|
|
4
|
-
import { n as se, t as ce } from "./BaseScanner-C7dmAref.js";
|
|
5
|
-
import { t as u } from "./useNestedProp-Ck4hsrpu.js";
|
|
6
|
-
import { t as le } from "./useThemeCheck-rFK9Zlb_.js";
|
|
7
|
-
import { t as ue } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
8
|
-
import { t as de } from "./BaseLegendToggle-CJTwLGXL.js";
|
|
9
|
-
import { t as fe } from "./A11yDataTable-q2-8fSlJ.js";
|
|
10
|
-
import { t as pe } from "./useChartAccessibility-Do37qcw2.js";
|
|
11
|
-
import { t as me } from "./vue_ui_sparkstackbar-C5qZMmAl.js";
|
|
12
|
-
import { Fragment as d, computed as f, createBlock as he, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as ge, defineAsyncComponent as _e, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as ve, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, toRefs as ye, unref as T, useSlots as be, watch as xe, withCtx as E } from "vue";
|
|
13
|
-
//#region src/components/vue-ui-sparkstackbar.vue
|
|
14
|
-
var Se = /* @__PURE__ */ e({ default: () => D }), Ce = ["id"], we = { style: { position: "relative" } }, Te = [
|
|
15
|
-
"xmlns",
|
|
16
|
-
"viewBox",
|
|
17
|
-
"aria-describedby"
|
|
18
|
-
], Ee = ["id"], De = ["stop-color"], Oe = ["stop-color"], ke = ["stop-color"], Ae = {
|
|
19
|
-
id: "stackPill",
|
|
20
|
-
clipPathUnits: "objectBoundingBox"
|
|
21
|
-
}, je = ["fill"], Me = {
|
|
22
|
-
key: 0,
|
|
23
|
-
"clip-path": "url(#stackPill)"
|
|
24
|
-
}, Ne = [
|
|
25
|
-
"x",
|
|
26
|
-
"width",
|
|
27
|
-
"height",
|
|
28
|
-
"fill"
|
|
29
|
-
], Pe = [
|
|
30
|
-
"x",
|
|
31
|
-
"width",
|
|
32
|
-
"height",
|
|
33
|
-
"fill",
|
|
34
|
-
"stroke"
|
|
35
|
-
], Fe = [
|
|
36
|
-
"x",
|
|
37
|
-
"width",
|
|
38
|
-
"height",
|
|
39
|
-
"onClick",
|
|
40
|
-
"onMouseenter",
|
|
41
|
-
"onMouseleave"
|
|
42
|
-
], Ie = [
|
|
43
|
-
"width",
|
|
44
|
-
"height",
|
|
45
|
-
"rx"
|
|
46
|
-
], Le = {
|
|
47
|
-
key: 0,
|
|
48
|
-
style: {
|
|
49
|
-
position: "absolute",
|
|
50
|
-
top: "100%",
|
|
51
|
-
left: "0",
|
|
52
|
-
width: "100%"
|
|
53
|
-
},
|
|
54
|
-
"data-dom-to-png-ignore": "",
|
|
55
|
-
"aria-hidden": "true"
|
|
56
|
-
}, Re = [
|
|
57
|
-
"aria-pressed",
|
|
58
|
-
"aria-label",
|
|
59
|
-
"onClick",
|
|
60
|
-
"onFocus",
|
|
61
|
-
"onKeydown"
|
|
62
|
-
], ze = { style: {
|
|
63
|
-
display: "flex",
|
|
64
|
-
"flex-direction": "row",
|
|
65
|
-
"align-items": "center",
|
|
66
|
-
gap: "4px",
|
|
67
|
-
"justify-content": "center"
|
|
68
|
-
} }, Be = ["height", "width"], Ve = ["id"], He = ["stop-color"], Ue = ["stop-color"], We = ["fill"], Ge = {
|
|
69
|
-
key: 3,
|
|
70
|
-
ref: "source",
|
|
71
|
-
dir: "auto"
|
|
72
|
-
}, D = /* @__PURE__ */ ue({
|
|
73
|
-
__name: "vue-ui-sparkstackbar",
|
|
74
|
-
props: {
|
|
75
|
-
config: {
|
|
76
|
-
type: Object,
|
|
77
|
-
default() {
|
|
78
|
-
return {};
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
dataset: {
|
|
82
|
-
type: Array,
|
|
83
|
-
default() {
|
|
84
|
-
return [];
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
emits: ["selectDatapoint", "selectLegend"],
|
|
89
|
-
setup(e, { expose: ue, emit: Se }) {
|
|
90
|
-
let D = _e(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Ke = _e(() => import("./Tooltip-CuWEYGr3.js")), { vue_ui_sparkstackbar: qe } = oe(), { isThemeValid: Je, warnInvalidTheme: Ye } = le(), O = e, Xe = be();
|
|
91
|
-
ve(() => {
|
|
92
|
-
Xe["chart-background"] && console.warn("VueUiSparkStackbar does not support the #chart-background slot.");
|
|
93
|
-
});
|
|
94
|
-
let Ze = x(null), k = x(n()), A = x(!1), j = x(""), M = x(null), N = x(!1), P = x(null), Qe = x({
|
|
95
|
-
x: 0,
|
|
96
|
-
y: 0
|
|
97
|
-
}), F = x("pointer"), I = x(!1), L = x(null), $e = x([]), R = x(H()), et = f(() => R.value.useCursorPointer), tt = f(() => ae({
|
|
98
|
-
defaultConfig: { style: {
|
|
99
|
-
backgroundColor: "#99999930",
|
|
100
|
-
animation: { show: !1 },
|
|
101
|
-
bar: { gradient: { inderlayerColor: "#6A6A6A" } },
|
|
102
|
-
title: { backgroundColor: "transparent" }
|
|
103
|
-
} },
|
|
104
|
-
userConfig: R.value.skeletonConfig ?? {}
|
|
105
|
-
})), { loading: z, FINAL_DATASET: B } = se({
|
|
106
|
-
...ye(O),
|
|
107
|
-
FINAL_CONFIG: R,
|
|
108
|
-
prepareConfig: H,
|
|
109
|
-
skeletonDataset: O.config?.skeletonDataset ?? [
|
|
110
|
-
{
|
|
111
|
-
name: "_",
|
|
112
|
-
value: 8,
|
|
113
|
-
color: "#808080"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: "_",
|
|
117
|
-
value: 5,
|
|
118
|
-
color: "#ADADAD"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: "_",
|
|
122
|
-
value: 3,
|
|
123
|
-
color: "#DBDBDB"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
skeletonConfig: ae({
|
|
127
|
-
defaultConfig: R.value,
|
|
128
|
-
userConfig: tt.value
|
|
129
|
-
})
|
|
130
|
-
}), { svgRef: V } = pe({ config: R.value.style.title });
|
|
131
|
-
function H() {
|
|
132
|
-
let e = u({
|
|
133
|
-
userConfig: O.config,
|
|
134
|
-
defaultConfig: qe
|
|
135
|
-
}), t = e.theme;
|
|
136
|
-
if (!t) return e;
|
|
137
|
-
if (!Je.value(e)) return Ye(e), e;
|
|
138
|
-
let n = u({
|
|
139
|
-
userConfig: me[t] || O.config,
|
|
140
|
-
defaultConfig: e
|
|
141
|
-
}), i = u({
|
|
142
|
-
userConfig: O.config,
|
|
143
|
-
defaultConfig: n
|
|
144
|
-
});
|
|
145
|
-
return {
|
|
146
|
-
...i,
|
|
147
|
-
customPalette: i.customPalette.length ? i.customPalette : r[t] || o
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
xe(() => O.config, (e) => {
|
|
151
|
-
R.value = H(), it();
|
|
152
|
-
}, { deep: !0 }), xe(() => B.value, (e) => {
|
|
153
|
-
W.value = B.value.map((e, t) => ({
|
|
154
|
-
...e,
|
|
155
|
-
color: e.color ? l(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
156
|
-
})), nt();
|
|
157
|
-
}, { deep: !0 });
|
|
158
|
-
let U = f(() => ie(R.value.customPalette)), W = x(B.value.map((e, t) => ({
|
|
159
|
-
...e,
|
|
160
|
-
value: R.value.style.animation.show ? 0 : e.value || 0,
|
|
161
|
-
color: e.color ? l(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
162
|
-
}))), G = x(!0);
|
|
163
|
-
function nt() {
|
|
164
|
-
if (!R.value.style.animation.show) {
|
|
165
|
-
G.value = !1;
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
let e = R.value.style.animation.animationFrames, t = B.value.map((e) => e.value || 0), r = t.map((t) => t / e), i = t.reduce((e, t) => e + t, 0), a = 0;
|
|
169
|
-
G.value = !0, W.value = B.value.map((e, t) => ({
|
|
170
|
-
...e,
|
|
171
|
-
value: 0,
|
|
172
|
-
color: e.color ? l(e.color) : U.value[t] || o[t] || o[t % o.length]
|
|
173
|
-
}));
|
|
174
|
-
function s() {
|
|
175
|
-
a += i / e, a < i ? (W.value = W.value.map((e, n) => ({
|
|
176
|
-
...e,
|
|
177
|
-
value: Math.min(e.value + r[n], t[n]),
|
|
178
|
-
color: e.color ? l(e.color) : U.value[n] || o[n] || o[n % o.length]
|
|
179
|
-
})), requestAnimationFrame(s)) : (G.value = !1, W.value = B.value.map((e, r) => ({
|
|
180
|
-
...e,
|
|
181
|
-
value: t[r],
|
|
182
|
-
color: e.color ? l(e.color) : U.value[r] || o[r] || o[r % o.length],
|
|
183
|
-
id: n()
|
|
184
|
-
})));
|
|
185
|
-
}
|
|
186
|
-
s();
|
|
187
|
-
}
|
|
188
|
-
ve(() => {
|
|
189
|
-
it();
|
|
190
|
-
});
|
|
191
|
-
let rt = f(() => R.value.debug);
|
|
192
|
-
function it() {
|
|
193
|
-
a(O.dataset) ? s({
|
|
194
|
-
componentName: "VueUiSparkStackbar",
|
|
195
|
-
type: "dataset",
|
|
196
|
-
debug: rt.value
|
|
197
|
-
}) : O.dataset.forEach((e, t) => {
|
|
198
|
-
te({
|
|
199
|
-
datasetObject: e,
|
|
200
|
-
requiredAttributes: ["name", "value"]
|
|
201
|
-
}).forEach((e) => {
|
|
202
|
-
s({
|
|
203
|
-
componentName: "VueUiSparkStackbar",
|
|
204
|
-
type: "datasetSerieAttribute",
|
|
205
|
-
property: e,
|
|
206
|
-
index: t,
|
|
207
|
-
debug: rt.value
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
}), nt();
|
|
211
|
-
}
|
|
212
|
-
let K = x({
|
|
213
|
-
width: 500,
|
|
214
|
-
height: 16
|
|
215
|
-
}), q = x([]), at = f(() => B.value.map((e) => e.value || 0).filter((e, t) => !q.value.includes(t)).reduce((e, t) => e + t, 0)), J = f(() => W.value.map((e, n) => {
|
|
216
|
-
let r = e.value || 0, i = r / at.value, a = isNaN(i) ? 0 : i, s = a * K.value.width;
|
|
217
|
-
return {
|
|
218
|
-
...e,
|
|
219
|
-
color: l(B.value[n]?.color ? B.value[n]?.color : U.value[n] || o[n] || o[n % o.length]),
|
|
220
|
-
value: r,
|
|
221
|
-
proportion: a,
|
|
222
|
-
width: s,
|
|
223
|
-
seriesIndex: n,
|
|
224
|
-
proportionLabel: t({
|
|
225
|
-
v: a * 100,
|
|
226
|
-
s: "%",
|
|
227
|
-
r: R.value.style.legend.percentage.rounding
|
|
228
|
-
})
|
|
229
|
-
};
|
|
230
|
-
})), Y = f(() => J.value.filter((e, t) => !q.value.includes(t)));
|
|
231
|
-
function ot() {
|
|
232
|
-
q.value.length ? q.value = [] : J.value.forEach((e, t) => {
|
|
233
|
-
q.value.push(t);
|
|
234
|
-
}), ut("selectLegend", Y.value);
|
|
235
|
-
}
|
|
236
|
-
function X(e) {
|
|
237
|
-
q.value.includes(e) ? q.value = q.value.filter((t) => t !== e) : q.value.length < W.value.length - 1 && q.value.push(e), ut("selectLegend", Y.value);
|
|
238
|
-
}
|
|
239
|
-
function st(e) {
|
|
240
|
-
return J.value.length ? J.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiSparkStackbar - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiSparkStackbar - There are no series to show."), null);
|
|
241
|
-
}
|
|
242
|
-
function ct(e) {
|
|
243
|
-
let t = st(e);
|
|
244
|
-
t !== null && q.value.includes(t.id) && X(t.seriesIndex);
|
|
245
|
-
}
|
|
246
|
-
function lt(e) {
|
|
247
|
-
let t = st(e);
|
|
248
|
-
t !== null && (q.value.includes(t.id) || X(t.seriesIndex));
|
|
249
|
-
}
|
|
250
|
-
let Z = f(() => {
|
|
251
|
-
let e = 0, t = [];
|
|
252
|
-
for (let n = 0; n < Y.value.length; n += 1) t.push({
|
|
253
|
-
...Y.value[n],
|
|
254
|
-
start: e
|
|
255
|
-
}), e += Y.value[n].width;
|
|
256
|
-
return t;
|
|
257
|
-
}), ut = Se;
|
|
258
|
-
function Q(e, t, n = !1) {
|
|
259
|
-
ut("selectDatapoint", {
|
|
260
|
-
datapoint: e,
|
|
261
|
-
index: t
|
|
262
|
-
}), R.value.events.datapointClick && !n && R.value.events.datapointClick({
|
|
263
|
-
datapoint: e,
|
|
264
|
-
seriesIndex: e.seriesIndex
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
function dt({ datapoint: e, seriesIndex: t }) {
|
|
268
|
-
A.value = !1, L.value = null, P.value = null, F.value = "pointer", R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
269
|
-
datapoint: e,
|
|
270
|
-
seriesIndex: e.seriesIndex
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
function ft({ datapoint: e, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
274
|
-
if (N.value = !1, R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
275
|
-
datapoint: e,
|
|
276
|
-
seriesIndex: e.seriesIndex
|
|
277
|
-
}), !R.value.style.tooltip.show) return;
|
|
278
|
-
F.value = r, M.value = {
|
|
279
|
-
datapoint: e,
|
|
280
|
-
seriesIndex: n,
|
|
281
|
-
config: R.value,
|
|
282
|
-
series: J.value
|
|
283
|
-
}, A.value = !0, L.value = n;
|
|
284
|
-
let i = R.value.style.tooltip.customFormat;
|
|
285
|
-
if (ne(i)) try {
|
|
286
|
-
let t = i({
|
|
287
|
-
seriesIndex: e.seriesIndex,
|
|
288
|
-
datapoint: e,
|
|
289
|
-
series: J.value,
|
|
290
|
-
config: R.value
|
|
291
|
-
});
|
|
292
|
-
typeof t == "string" && (j.value = t, N.value = !0);
|
|
293
|
-
} catch {
|
|
294
|
-
console.warn("Custom format cannot be applied."), N.value = !1;
|
|
295
|
-
}
|
|
296
|
-
if (!N.value) {
|
|
297
|
-
let r = "";
|
|
298
|
-
r += `<div style="width:100%;text-align:center;border-bottom:1px solid ${R.value.style.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, r += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${e.color}"/></svg>`, r += `<b>${e.proportionLabel}</b>`, r += `<span>(${c(R.value.style.legend.value.formatter, e.value, t({
|
|
299
|
-
p: R.value.style.legend.value.prefix,
|
|
300
|
-
v: e.value,
|
|
301
|
-
s: R.value.style.legend.value.suffix,
|
|
302
|
-
r: R.value.style.legend.value.rounding
|
|
303
|
-
}), {
|
|
304
|
-
datapoint: e,
|
|
305
|
-
seriesIndex: n
|
|
306
|
-
})})</span>`, j.value = `<div>${r}</div>`;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
function $(e) {
|
|
310
|
-
let t = $e.value[e];
|
|
311
|
-
t && typeof t.focus == "function" && t.focus();
|
|
312
|
-
}
|
|
313
|
-
function pt(e) {
|
|
314
|
-
if (!Number.isFinite(e) || !V.value) return;
|
|
315
|
-
let t = Z.value[e];
|
|
316
|
-
if (!t) return;
|
|
317
|
-
let n = V.value.getBoundingClientRect(), r = t.start + t.width / 2, i = K.value.height / 2;
|
|
318
|
-
Qe.value = {
|
|
319
|
-
x: n.left + r / K.value.width * n.width,
|
|
320
|
-
y: n.top + i / K.value.height * n.height
|
|
321
|
-
};
|
|
322
|
-
}
|
|
323
|
-
function mt() {
|
|
324
|
-
P.value = null, I.value = !0;
|
|
325
|
-
}
|
|
326
|
-
function ht() {
|
|
327
|
-
P.value = null, F.value = "pointer", A.value = !1, L.value = null, I.value = !1;
|
|
328
|
-
}
|
|
329
|
-
function gt(e) {
|
|
330
|
-
if (!V.value || document.activeElement !== V.value || !Z.value.length) return;
|
|
331
|
-
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape", a = e.key === "Home", o = e.key === "End";
|
|
332
|
-
if (!t && !n && !r && !i && !a && !o) return;
|
|
333
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
334
|
-
P.value = null, F.value = "pointer", A.value = !1, L.value = null;
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
if (r) {
|
|
338
|
-
if (P.value === null) return;
|
|
339
|
-
let e = Z.value[P.value];
|
|
340
|
-
if (!e) return;
|
|
341
|
-
Q(e, e.seriesIndex);
|
|
342
|
-
return;
|
|
343
|
-
}
|
|
344
|
-
let s = P.value;
|
|
345
|
-
a ? s = 0 : o ? s = Z.value.length - 1 : s === null || s < 0 || s >= Z.value.length ? s = n ? 0 : Z.value.length - 1 : n ? (s += 1, s >= Z.value.length && (s = 0)) : t && (--s, s < 0 && (s = Z.value.length - 1));
|
|
346
|
-
let c = Z.value[s];
|
|
347
|
-
c && (P.value = s, pt(s), ft({
|
|
348
|
-
datapoint: c,
|
|
349
|
-
seriesIndex: c.seriesIndex,
|
|
350
|
-
triggerMode: "keyboard"
|
|
351
|
-
}));
|
|
352
|
-
}
|
|
353
|
-
function _t(e) {
|
|
354
|
-
A.value = !1, P.value = null, F.value = "pointer", L.value = e.seriesIndex;
|
|
355
|
-
}
|
|
356
|
-
function vt() {
|
|
357
|
-
P.value = null, F.value = "pointer", A.value = !1, L.value = null;
|
|
358
|
-
}
|
|
359
|
-
function yt(e, t, n) {
|
|
360
|
-
let r = e.key === "Enter" || e.key === " ", i = e.key === "ArrowLeft" || e.key === "ArrowUp", a = e.key === "ArrowRight" || e.key === "ArrowDown", o = e.key === "Home", s = e.key === "End", c = e.key === "Escape";
|
|
361
|
-
if (!(!r && !i && !a && !o && !s && !c)) {
|
|
362
|
-
if (e.preventDefault(), e.stopPropagation(), c) {
|
|
363
|
-
vt();
|
|
364
|
-
return;
|
|
365
|
-
}
|
|
366
|
-
if (r) {
|
|
367
|
-
X(n), Q(t, n, !0);
|
|
368
|
-
return;
|
|
369
|
-
}
|
|
370
|
-
if (o) {
|
|
371
|
-
$(0);
|
|
372
|
-
return;
|
|
373
|
-
}
|
|
374
|
-
if (s) {
|
|
375
|
-
$(J.value.length - 1);
|
|
376
|
-
return;
|
|
377
|
-
}
|
|
378
|
-
if (i) {
|
|
379
|
-
$(n <= 0 ? J.value.length - 1 : n - 1);
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
a && $(n >= J.value.length - 1 ? 0 : n + 1);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
let bt = f(() => ({
|
|
386
|
-
headers: [
|
|
387
|
-
R.value.a11y.translations.series,
|
|
388
|
-
R.value.a11y.translations.percentage,
|
|
389
|
-
R.value.a11y.translations.value
|
|
390
|
-
],
|
|
391
|
-
rows: J.value.map((e, n) => [
|
|
392
|
-
e.name,
|
|
393
|
-
q.value.includes(n) ? " - " : e.proportionLabel,
|
|
394
|
-
c(R.value.style.legend.value.formatter, e.value, t({
|
|
395
|
-
p: R.value.style.legend.value.prefix,
|
|
396
|
-
v: e.value,
|
|
397
|
-
s: R.value.style.legend.value.suffix,
|
|
398
|
-
r: R.value.style.legend.value.rounding
|
|
399
|
-
}), {
|
|
400
|
-
datapoint: e,
|
|
401
|
-
seriesIndex: n
|
|
402
|
-
})
|
|
403
|
-
])
|
|
404
|
-
}));
|
|
405
|
-
return ue({
|
|
406
|
-
hideSeries: lt,
|
|
407
|
-
showSeries: ct
|
|
408
|
-
}), (e, n) => (b(), m("div", {
|
|
409
|
-
class: "vue-data-ui-component vue-ui-spark-stackbar",
|
|
410
|
-
ref_key: "sparkstackbarChart",
|
|
411
|
-
ref: Ze,
|
|
412
|
-
style: y(`width:100%; background:${R.value.style.backgroundColor}`)
|
|
413
|
-
}, [
|
|
414
|
-
h("div", {
|
|
415
|
-
id: `chart-instructions-${k.value}`,
|
|
416
|
-
class: "sr-only"
|
|
417
|
-
}, [h("p", null, w(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ce),
|
|
418
|
-
bt.value?.rows?.length ? (b(), he(fe, {
|
|
419
|
-
key: 0,
|
|
420
|
-
uid: k.value,
|
|
421
|
-
head: bt.value.headers,
|
|
422
|
-
body: bt.value.rows,
|
|
423
|
-
notice: R.value.a11y.translations.tableAvailable,
|
|
424
|
-
caption: R.value.a11y.translations.tableCaption
|
|
425
|
-
}, null, 8, [
|
|
426
|
-
"uid",
|
|
427
|
-
"head",
|
|
428
|
-
"body",
|
|
429
|
-
"notice",
|
|
430
|
-
"caption"
|
|
431
|
-
])) : p("", !0),
|
|
432
|
-
R.value.style.title.text ? (b(), m("div", {
|
|
433
|
-
key: 1,
|
|
434
|
-
style: y(`width:calc(100% - 12px);background:transparent;margin:0 auto;margin:${R.value.style.title.margin};padding: 0 6px;text-align:${R.value.style.title.textAlign}`)
|
|
435
|
-
}, [h("div", {
|
|
436
|
-
class: "atom-title",
|
|
437
|
-
style: y(`font-size:${R.value.style.title.fontSize}px;color:${R.value.style.title.color};font-weight:${R.value.style.title.bold ? "bold" : "normal"}`)
|
|
438
|
-
}, w(R.value.style.title.text), 5), R.value.style.title.subtitle.text ? (b(), m("div", {
|
|
439
|
-
key: 0,
|
|
440
|
-
class: "atom-subtitle",
|
|
441
|
-
style: y(`font-size:${R.value.style.title.subtitle.fontSize}px;color:${R.value.style.title.subtitle.color};font-weight:${R.value.style.title.subtitle.bold ? "bold" : "normal"}`)
|
|
442
|
-
}, w(R.value.style.title.subtitle.text), 5)) : p("", !0)], 4)) : p("", !0),
|
|
443
|
-
h("div", we, [(b(), m("svg", {
|
|
444
|
-
ref_key: "svgRef",
|
|
445
|
-
ref: V,
|
|
446
|
-
xmlns: T(re),
|
|
447
|
-
width: "100%",
|
|
448
|
-
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
449
|
-
"aria-describedby": `chart-instructions-${k.value}`,
|
|
450
|
-
tabindex: "0",
|
|
451
|
-
onFocus: mt,
|
|
452
|
-
onBlur: ht,
|
|
453
|
-
onKeydown: gt
|
|
454
|
-
}, [
|
|
455
|
-
ge(T(D)),
|
|
456
|
-
h("defs", null, [(b(!0), m(d, null, S(Z.value, (e, t) => (b(), m("linearGradient", {
|
|
457
|
-
key: `stack_gradient_${t}`,
|
|
458
|
-
gradientTransform: "rotate(90)",
|
|
459
|
-
id: `stack_gradient_${t}_${k.value}`
|
|
460
|
-
}, [
|
|
461
|
-
h("stop", {
|
|
462
|
-
offset: "0%",
|
|
463
|
-
"stop-color": e.color
|
|
464
|
-
}, null, 8, De),
|
|
465
|
-
h("stop", {
|
|
466
|
-
offset: "50%",
|
|
467
|
-
"stop-color": T(ee)(T(i)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
|
|
468
|
-
}, null, 8, Oe),
|
|
469
|
-
h("stop", {
|
|
470
|
-
offset: "100%",
|
|
471
|
-
"stop-color": e.color
|
|
472
|
-
}, null, 8, ke)
|
|
473
|
-
], 8, Ee))), 128)), h("clipPath", Ae, [h("rect", {
|
|
474
|
-
x: "0.005",
|
|
475
|
-
y: "-2",
|
|
476
|
-
width: "0.99",
|
|
477
|
-
height: "5",
|
|
478
|
-
rx: "3",
|
|
479
|
-
ry: "3",
|
|
480
|
-
fill: R.value.style.backgroundColor
|
|
481
|
-
}, null, 8, je)])]),
|
|
482
|
-
at.value > 0 ? (b(), m("g", Me, [
|
|
483
|
-
(b(!0), m(d, null, S(Z.value, (e, t) => (b(), m("rect", {
|
|
484
|
-
key: `stack_underlayer_${t}`,
|
|
485
|
-
x: e.start,
|
|
486
|
-
y: 0,
|
|
487
|
-
width: e.width,
|
|
488
|
-
height: K.value.height,
|
|
489
|
-
fill: R.value.style.bar.gradient.underlayerColor,
|
|
490
|
-
class: _({ animated: !G.value && !T(z) }),
|
|
491
|
-
style: y({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
492
|
-
}, null, 14, Ne))), 128)),
|
|
493
|
-
(b(!0), m(d, null, S(Z.value, (e, t) => (b(), m("rect", {
|
|
494
|
-
key: `stack_${t}`,
|
|
495
|
-
x: e.start,
|
|
496
|
-
y: 0,
|
|
497
|
-
width: e.width,
|
|
498
|
-
height: K.value.height,
|
|
499
|
-
fill: R.value.style.bar.gradient.show ? `url(#stack_gradient_${t}_${k.value})` : e.color,
|
|
500
|
-
stroke: R.value.style.backgroundColor,
|
|
501
|
-
"stroke-linecap": "round",
|
|
502
|
-
class: _({ animated: !G.value && !T(z) }),
|
|
503
|
-
style: y({ opacity: L.value !== null && R.value.style.tooltip.show ? L.value === t ? 1 : .5 : 1 })
|
|
504
|
-
}, null, 14, Pe))), 128)),
|
|
505
|
-
(b(!0), m(d, null, S(Z.value, (e, t) => (b(), m("rect", {
|
|
506
|
-
key: `stack_trap_${t}`,
|
|
507
|
-
x: e.start,
|
|
508
|
-
y: 0,
|
|
509
|
-
width: e.width,
|
|
510
|
-
height: K.value.height,
|
|
511
|
-
fill: "transparent",
|
|
512
|
-
stroke: "none",
|
|
513
|
-
class: _({ animated: !G.value && !T(z) }),
|
|
514
|
-
onClick: () => Q(e, t),
|
|
515
|
-
onMouseenter: () => ft({
|
|
516
|
-
datapoint: e,
|
|
517
|
-
seriesIndex: t
|
|
518
|
-
}),
|
|
519
|
-
onMouseleave: (n) => dt({
|
|
520
|
-
datapoint: e,
|
|
521
|
-
seriesIndex: t
|
|
522
|
-
})
|
|
523
|
-
}, null, 42, Fe))), 128))
|
|
524
|
-
])) : (b(), m("rect", {
|
|
525
|
-
key: 1,
|
|
526
|
-
x: 2,
|
|
527
|
-
y: 1,
|
|
528
|
-
width: K.value.width - 4,
|
|
529
|
-
height: K.value.height - 2,
|
|
530
|
-
stroke: "#CCCCCC",
|
|
531
|
-
"stroke-width": "2",
|
|
532
|
-
fill: "transparent",
|
|
533
|
-
rx: (K.value.height - 4) / 2
|
|
534
|
-
}, null, 8, Ie))
|
|
535
|
-
], 40, Te)), e.$slots.hint ? (b(), m("div", Le, [C(e.$slots, "hint", v(g({
|
|
536
|
-
hint: R.value.a11y.translations.keyboardNavigation,
|
|
537
|
-
isVisible: I.value
|
|
538
|
-
})), void 0, !0)])) : p("", !0)]),
|
|
539
|
-
R.value.style.legend.show ? (b(), m("div", {
|
|
540
|
-
key: 2,
|
|
541
|
-
style: y(`background:transparent;margin:0 auto;margin:${R.value.style.legend.margin};justify-content:${R.value.style.legend.textAlign === "left" ? "flex-start" : R.value.style.legend.textAlign === "right" ? "flex-end" : "center"}`),
|
|
542
|
-
class: "vue-ui-sparkstackbar-legend",
|
|
543
|
-
"aria-label": "legend",
|
|
544
|
-
role: "toolbar"
|
|
545
|
-
}, [R.value.style.legend.selectAllToggle.show && J.value.length > 2 && !T(z) ? (b(), he(de, {
|
|
546
|
-
key: 0,
|
|
547
|
-
backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
|
|
548
|
-
color: R.value.style.legend.selectAllToggle.color,
|
|
549
|
-
fontSize: R.value.style.legend.fontSize,
|
|
550
|
-
checked: q.value.length > 0,
|
|
551
|
-
isCursorPointer: et.value,
|
|
552
|
-
onToggle: ot
|
|
553
|
-
}, null, 8, [
|
|
554
|
-
"backgroundColor",
|
|
555
|
-
"color",
|
|
556
|
-
"fontSize",
|
|
557
|
-
"checked",
|
|
558
|
-
"isCursorPointer"
|
|
559
|
-
])) : p("", !0), (b(!0), m(d, null, S(J.value, (e, n) => (b(), m("div", {
|
|
560
|
-
role: "button",
|
|
561
|
-
tabindex: "0",
|
|
562
|
-
"aria-pressed": q.value.includes(n),
|
|
563
|
-
"aria-label": `${e.name}, ${q.value.includes(n) ? "hidden" : "visible"}, ${e.proportionLabel}`,
|
|
564
|
-
style: y(`font-size:${R.value.style.legend.fontSize}px;cursor:${et.value ? "pointer" : "default"}`),
|
|
565
|
-
class: _({
|
|
566
|
-
"vue-ui-sparkstackbar-legend-item": !0,
|
|
567
|
-
"vue-ui-sparkstackbar-legend-item-unselected": q.value.includes(n)
|
|
568
|
-
}),
|
|
569
|
-
onClick: (t) => {
|
|
570
|
-
X(n), Q(e, n, !0);
|
|
571
|
-
},
|
|
572
|
-
onFocus: (t) => _t(e),
|
|
573
|
-
onBlur: vt,
|
|
574
|
-
onKeydown: (t) => yt(t, e, n)
|
|
575
|
-
}, [h("div", ze, [(b(), m("svg", {
|
|
576
|
-
height: `${R.value.style.legend.fontSize}px`,
|
|
577
|
-
width: `${R.value.style.legend.fontSize}px`,
|
|
578
|
-
viewBox: "0 0 10 10"
|
|
579
|
-
}, [h("defs", null, [h("radialGradient", { id: `legend_grad_${n}-${k.value}` }, [h("stop", {
|
|
580
|
-
offset: "0%",
|
|
581
|
-
"stop-color": T(z) ? "#FFFFFF" : T(ee)(T(i)(e.color, .05), 100 - R.value.style.bar.gradient.intensity)
|
|
582
|
-
}, null, 8, He), h("stop", {
|
|
583
|
-
offset: "100%",
|
|
584
|
-
"stop-color": e.color
|
|
585
|
-
}, null, 8, Ue)], 8, Ve)]), h("circle", {
|
|
586
|
-
cx: 5,
|
|
587
|
-
cy: 5,
|
|
588
|
-
r: 5,
|
|
589
|
-
fill: R.value.style.bar.gradient.show ? `url(#legend_grad_${n}-${k.value})` : e.color
|
|
590
|
-
}, null, 8, We)], 8, Be)), T(z) ? p("", !0) : (b(), m(d, { key: 0 }, [h("span", { style: y(`color:${R.value.style.legend.name.color}; font-weight:${R.value.style.legend.name.bold ? "bold" : "normal"}`) }, w(e.name), 5), G.value ? p("", !0) : (b(), m(d, { key: 0 }, [R.value.style.legend.percentage.show ? (b(), m("span", {
|
|
591
|
-
key: 0,
|
|
592
|
-
style: y(`font-weight:${R.value.style.legend.percentage.bold ? "bold" : "normal"};color:${R.value.style.legend.percentage.color}`)
|
|
593
|
-
}, w(q.value.includes(n) ? " - " : e.proportionLabel), 5)) : p("", !0), R.value.style.legend.value.show ? (b(), m("span", {
|
|
594
|
-
key: 1,
|
|
595
|
-
style: y(`font-weight:${R.value.style.legend.value.bold ? "bold" : "normal"};color:${R.value.style.legend.value.color}`)
|
|
596
|
-
}, " (" + w(T(c)(R.value.style.legend.value.formatter, e.value, T(t)({
|
|
597
|
-
p: R.value.style.legend.value.prefix,
|
|
598
|
-
v: e.value,
|
|
599
|
-
s: R.value.style.legend.value.suffix,
|
|
600
|
-
r: R.value.style.legend.value.rounding
|
|
601
|
-
}), {
|
|
602
|
-
datapoint: e,
|
|
603
|
-
seriesIndex: n
|
|
604
|
-
})) + ") ", 5)) : p("", !0)], 64))], 64))])], 46, Re))), 256))], 4)) : p("", !0),
|
|
605
|
-
ge(T(Ke), {
|
|
606
|
-
teleportTo: R.value.style.tooltip.teleportTo,
|
|
607
|
-
show: A.value && R.value.style.tooltip.show,
|
|
608
|
-
parent: Ze.value,
|
|
609
|
-
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
610
|
-
color: R.value.style.tooltip.color,
|
|
611
|
-
fontSize: R.value.style.tooltip.fontSize,
|
|
612
|
-
borderRadius: R.value.style.tooltip.borderRadius,
|
|
613
|
-
borderColor: R.value.style.tooltip.borderColor,
|
|
614
|
-
borderWidth: R.value.style.tooltip.borderWidth,
|
|
615
|
-
backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
|
|
616
|
-
position: R.value.style.tooltip.position,
|
|
617
|
-
content: j.value,
|
|
618
|
-
isCustom: N.value,
|
|
619
|
-
offsetX: R.value.style.tooltip.offsetX,
|
|
620
|
-
offsetY: -124 + R.value.style.tooltip.offsetY,
|
|
621
|
-
blockShiftY: !0,
|
|
622
|
-
smooth: R.value.style.tooltip.smooth,
|
|
623
|
-
backdropFilter: R.value.style.tooltip.backdropFilter,
|
|
624
|
-
smoothForce: R.value.style.tooltip.smoothForce,
|
|
625
|
-
smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
|
|
626
|
-
isA11yMode: F.value === "keyboard",
|
|
627
|
-
a11yPosition: Qe.value
|
|
628
|
-
}, {
|
|
629
|
-
"tooltip-before": E(() => [C(e.$slots, "tooltip-before", v(g({ ...M.value })), void 0, !0)]),
|
|
630
|
-
tooltip: E(() => [C(e.$slots, "tooltip", v(g({ ...M.value })), void 0, !0)]),
|
|
631
|
-
"tooltip-after": E(() => [C(e.$slots, "tooltip-after", v(g({ ...M.value })), void 0, !0)]),
|
|
632
|
-
_: 3
|
|
633
|
-
}, 8, [
|
|
634
|
-
"teleportTo",
|
|
635
|
-
"show",
|
|
636
|
-
"parent",
|
|
637
|
-
"backgroundColor",
|
|
638
|
-
"color",
|
|
639
|
-
"fontSize",
|
|
640
|
-
"borderRadius",
|
|
641
|
-
"borderColor",
|
|
642
|
-
"borderWidth",
|
|
643
|
-
"backgroundOpacity",
|
|
644
|
-
"position",
|
|
645
|
-
"content",
|
|
646
|
-
"isCustom",
|
|
647
|
-
"offsetX",
|
|
648
|
-
"offsetY",
|
|
649
|
-
"smooth",
|
|
650
|
-
"backdropFilter",
|
|
651
|
-
"smoothForce",
|
|
652
|
-
"smoothSnapThreshold",
|
|
653
|
-
"isA11yMode",
|
|
654
|
-
"a11yPosition"
|
|
655
|
-
]),
|
|
656
|
-
e.$slots.source ? (b(), m("div", Ge, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
657
|
-
C(e.$slots, "skeleton", {}, () => [T(z) ? (b(), he(ce, { key: 0 })) : p("", !0)], !0)
|
|
658
|
-
], 4));
|
|
659
|
-
}
|
|
660
|
-
}, [["__scopeId", "data-v-706a37e5"]]);
|
|
661
|
-
//#endregion
|
|
662
|
-
export { Se as n, D as t };
|