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,1507 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { At as t, G as n, H as r, I as i, M as a, Mt as o, Q as s, R as c, St as l, X as u, et as d, f, i as p, jt as m, k as ee, l as te, ot as ne, t as re, vt as h, y as ie, zt as ae } from "./lib-BkiwukKO.js";
|
|
3
|
-
import { t as oe } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
-
import { t as se } from "./useConfig-ByaaSKhz.js";
|
|
5
|
-
import { n as ce, t as le } from "./BaseScanner-C7dmAref.js";
|
|
6
|
-
import { t as ue } from "./useNestedProp-Ck4hsrpu.js";
|
|
7
|
-
import { t as de } from "./useThemeCheck-rFK9Zlb_.js";
|
|
8
|
-
import { t as fe } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
9
|
-
import { c as pe } from "./canvas-lib-DTaADQOK.js";
|
|
10
|
-
import { t as g } from "./useResponsive-CrAInupd.js";
|
|
11
|
-
import { t as me } from "./A11yDataTable-q2-8fSlJ.js";
|
|
12
|
-
import { t as he } from "./useChartAccessibility-Do37qcw2.js";
|
|
13
|
-
import { t as ge } from "./usePrefersMotion-BywLbIko.js";
|
|
14
|
-
import { t as _e } from "./vue_ui_sparkline-wgk7yO7E.js";
|
|
15
|
-
import { Fragment as _, computed as v, createBlock as ve, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as ye, createVNode as be, defineAsyncComponent as xe, guardReactiveProps as Se, nextTick as S, normalizeProps as Ce, normalizeStyle as C, onBeforeUnmount as we, onMounted as Te, openBlock as w, ref as T, renderList as Ee, renderSlot as E, shallowRef as De, toDisplayString as Oe, toRefs as ke, unref as D, watch as O, watchEffect as Ae, withCtx as je } from "vue";
|
|
16
|
-
//#region src/atoms/SparklinePulse.vue
|
|
17
|
-
var Me = {
|
|
18
|
-
key: 0,
|
|
19
|
-
style: { "pointer-events": "none" }
|
|
20
|
-
}, Ne = [
|
|
21
|
-
"r",
|
|
22
|
-
"fill",
|
|
23
|
-
"filter"
|
|
24
|
-
], Pe = [
|
|
25
|
-
"begin",
|
|
26
|
-
"dur",
|
|
27
|
-
"repeatCount",
|
|
28
|
-
"fill",
|
|
29
|
-
"calcMode",
|
|
30
|
-
"keySplines",
|
|
31
|
-
"keyTimes",
|
|
32
|
-
"keyPoints"
|
|
33
|
-
], Fe = ["href"], Ie = [
|
|
34
|
-
"dur",
|
|
35
|
-
"repeatCount",
|
|
36
|
-
"fill",
|
|
37
|
-
"values"
|
|
38
|
-
], Le = ["r", "fill"], k = [
|
|
39
|
-
"begin",
|
|
40
|
-
"dur",
|
|
41
|
-
"repeatCount",
|
|
42
|
-
"calcMode",
|
|
43
|
-
"keySplines",
|
|
44
|
-
"keyTimes",
|
|
45
|
-
"keyPoints"
|
|
46
|
-
], Re = ["href"], A = ["dur", "repeatCount"], ze = {
|
|
47
|
-
__name: "SparklinePulse",
|
|
48
|
-
props: {
|
|
49
|
-
uid: {
|
|
50
|
-
type: String,
|
|
51
|
-
required: !0
|
|
52
|
-
},
|
|
53
|
-
svgRef: {
|
|
54
|
-
type: Object,
|
|
55
|
-
default: null
|
|
56
|
-
},
|
|
57
|
-
pulsePathId: {
|
|
58
|
-
type: String,
|
|
59
|
-
required: !0
|
|
60
|
-
},
|
|
61
|
-
pulsePathLength: {
|
|
62
|
-
type: Number,
|
|
63
|
-
required: !0
|
|
64
|
-
},
|
|
65
|
-
pulseDur: {
|
|
66
|
-
type: String,
|
|
67
|
-
required: !0
|
|
68
|
-
},
|
|
69
|
-
pulseBegin: {
|
|
70
|
-
type: String,
|
|
71
|
-
required: !0
|
|
72
|
-
},
|
|
73
|
-
pulseRepeatCount: {
|
|
74
|
-
type: String,
|
|
75
|
-
required: !0
|
|
76
|
-
},
|
|
77
|
-
pulseFillMode: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: void 0
|
|
80
|
-
},
|
|
81
|
-
pulseKeyPoints: {
|
|
82
|
-
type: String,
|
|
83
|
-
required: !0
|
|
84
|
-
},
|
|
85
|
-
pulseMotion: {
|
|
86
|
-
type: Object,
|
|
87
|
-
required: !0
|
|
88
|
-
},
|
|
89
|
-
pulse: {
|
|
90
|
-
type: Object,
|
|
91
|
-
required: !0
|
|
92
|
-
},
|
|
93
|
-
pulseTrail: {
|
|
94
|
-
type: Object,
|
|
95
|
-
required: !0
|
|
96
|
-
},
|
|
97
|
-
pulseTrailLength: {
|
|
98
|
-
type: Number,
|
|
99
|
-
required: !0
|
|
100
|
-
},
|
|
101
|
-
prefersReducedMotion: {
|
|
102
|
-
type: Boolean,
|
|
103
|
-
required: !0
|
|
104
|
-
},
|
|
105
|
-
loading: {
|
|
106
|
-
type: Boolean,
|
|
107
|
-
required: !0
|
|
108
|
-
},
|
|
109
|
-
isBar: {
|
|
110
|
-
type: Boolean,
|
|
111
|
-
required: !0
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
setup(e) {
|
|
115
|
-
let t = e, n = v(() => Math.min(t.pulseTrailLength, 45)), r = v(() => !!t.pulse?.show && !t.isBar && !t.prefersReducedMotion && !t.loading && Number(t.pulsePathLength) > 0);
|
|
116
|
-
function i() {
|
|
117
|
-
let e = t.svgRef?.value;
|
|
118
|
-
e && (typeof e.pauseAnimations == "function" && e.pauseAnimations(), typeof e.setCurrentTime == "function" && e.setCurrentTime(0), typeof e.unpauseAnimations == "function" && e.unpauseAnimations());
|
|
119
|
-
}
|
|
120
|
-
function a(e, t) {
|
|
121
|
-
if (typeof e != "string") return e;
|
|
122
|
-
let n = e.trim().match(/^([\d.]+)\s*(ms|s)$/);
|
|
123
|
-
if (!n) return e;
|
|
124
|
-
let r = Number(n[1]), i = n[2];
|
|
125
|
-
return Number.isNaN(r) ? e : `${r + t}${i}`;
|
|
126
|
-
}
|
|
127
|
-
function o(e) {
|
|
128
|
-
return (n.value - e) / n.value * t.pulse.radius;
|
|
129
|
-
}
|
|
130
|
-
function s(e) {
|
|
131
|
-
let r = t.pulse.trail.opacity, i = (n.value - e) / n.value, a = e === 0 ? 1 : i * r;
|
|
132
|
-
return `0;${a};${a};0`;
|
|
133
|
-
}
|
|
134
|
-
return O(() => t.loading, async (e) => {
|
|
135
|
-
if (e) {
|
|
136
|
-
i();
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
await S(), i();
|
|
140
|
-
}), O(() => t.pulsePathId, async () => {
|
|
141
|
-
await S(), i();
|
|
142
|
-
}), we(() => {
|
|
143
|
-
i();
|
|
144
|
-
}), (t, i) => r.value ? (w(), b("g", Me, [(w(!0), b(_, null, Ee(n.value, (t, n) => (w(), b(_, null, [n % 3 == 0 ? (w(), b("circle", {
|
|
145
|
-
key: `sparkline_dot_${n}_${e.pulsePathId}`,
|
|
146
|
-
r: o(n),
|
|
147
|
-
fill: e.pulse.color,
|
|
148
|
-
filter: `url(#sparkline_pulse_glow_${e.uid})`,
|
|
149
|
-
opacity: "0"
|
|
150
|
-
}, [x("animateMotion", {
|
|
151
|
-
begin: a(e.pulseBegin, n * 10),
|
|
152
|
-
dur: e.pulseDur,
|
|
153
|
-
repeatCount: e.pulseRepeatCount,
|
|
154
|
-
fill: e.pulseFillMode,
|
|
155
|
-
calcMode: e.pulseMotion.calcMode,
|
|
156
|
-
keySplines: e.pulseMotion.keySplines || void 0,
|
|
157
|
-
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
158
|
-
keyPoints: e.pulseKeyPoints,
|
|
159
|
-
rotate: "auto"
|
|
160
|
-
}, [x("mpath", { href: `#${e.pulsePathId}` }, null, 8, Fe)], 8, Pe), x("animate", {
|
|
161
|
-
attributeName: "opacity",
|
|
162
|
-
dur: e.pulseDur,
|
|
163
|
-
repeatCount: e.pulseRepeatCount,
|
|
164
|
-
fill: e.pulseFillMode,
|
|
165
|
-
values: s(n),
|
|
166
|
-
keyTimes: "0;0.1;0.9;1"
|
|
167
|
-
}, null, 8, Ie)], 8, Ne)) : y("", !0)], 64))), 256)), (w(), b("circle", {
|
|
168
|
-
key: `sparkline_halo_${e.pulsePathId}`,
|
|
169
|
-
r: Math.max(e.pulse.radius * 1.3),
|
|
170
|
-
fill: e.pulse.color,
|
|
171
|
-
opacity: "0"
|
|
172
|
-
}, [x("animateMotion", {
|
|
173
|
-
begin: e.pulseBegin,
|
|
174
|
-
dur: e.pulseDur,
|
|
175
|
-
repeatCount: e.pulseRepeatCount,
|
|
176
|
-
calcMode: e.pulseMotion.calcMode,
|
|
177
|
-
keySplines: e.pulseMotion.keySplines || void 0,
|
|
178
|
-
keyTimes: e.pulseMotion.keyTimes || void 0,
|
|
179
|
-
keyPoints: e.pulseKeyPoints,
|
|
180
|
-
rotate: "auto"
|
|
181
|
-
}, [x("mpath", { href: `#${e.pulsePathId}` }, null, 8, Re)], 8, k), x("animate", {
|
|
182
|
-
attributeName: "opacity",
|
|
183
|
-
values: "0;0.35;0.35;0",
|
|
184
|
-
keyTimes: "0;0.15;0.85;1",
|
|
185
|
-
dur: e.pulseDur,
|
|
186
|
-
repeatCount: e.pulseRepeatCount
|
|
187
|
-
}, null, 8, A)], 8, Le))])) : y("", !0);
|
|
188
|
-
}
|
|
189
|
-
}, j = {
|
|
190
|
-
canvas: null,
|
|
191
|
-
ctx: null
|
|
192
|
-
};
|
|
193
|
-
function Be() {
|
|
194
|
-
if (typeof document > "u") throw Error("color-utils: document is not available (browser-only).");
|
|
195
|
-
if (!j.canvas) {
|
|
196
|
-
let e = document.createElement("canvas");
|
|
197
|
-
e.width = 1, e.height = 1;
|
|
198
|
-
let t = e.getContext("2d", { willReadFrequently: !0 });
|
|
199
|
-
if (!t) throw Error("color-utils: unable to get 2D canvas context.");
|
|
200
|
-
j.canvas = e, j.ctx = t;
|
|
201
|
-
}
|
|
202
|
-
return j.ctx;
|
|
203
|
-
}
|
|
204
|
-
function Ve(e) {
|
|
205
|
-
return e < 0 ? 0 : e > 255 ? 255 : Math.round(e);
|
|
206
|
-
}
|
|
207
|
-
function M(e) {
|
|
208
|
-
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
209
|
-
}
|
|
210
|
-
function N(e, t = null) {
|
|
211
|
-
if (typeof e != "string" || e.trim().length === 0) throw Error("colorToRgba: inputColor must be a non-empty string.");
|
|
212
|
-
let n = e.trim();
|
|
213
|
-
if (n.toLowerCase() === "transparent") return {
|
|
214
|
-
red: 0,
|
|
215
|
-
green: 0,
|
|
216
|
-
blue: 0,
|
|
217
|
-
alpha: 0
|
|
218
|
-
};
|
|
219
|
-
let r = He(n, t), i = Be();
|
|
220
|
-
i.clearRect(0, 0, 1, 1), i.fillStyle = "#000";
|
|
221
|
-
let a = i.fillStyle;
|
|
222
|
-
if (i.fillStyle = r, i.fillStyle === a && !Ue(r)) throw Error(`colorToRgba: unsupported or invalid color "${e}".`);
|
|
223
|
-
i.fillRect(0, 0, 1, 1);
|
|
224
|
-
let o = i.getImageData(0, 0, 1, 1).data;
|
|
225
|
-
return {
|
|
226
|
-
red: o[0],
|
|
227
|
-
green: o[1],
|
|
228
|
-
blue: o[2],
|
|
229
|
-
alpha: o[3] / 255
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
function P(e, t = null) {
|
|
233
|
-
if (!Array.isArray(e) || e.length === 0) throw Error("colorsToRgba: colors must be a non-empty array.");
|
|
234
|
-
let n = Array(e.length);
|
|
235
|
-
for (let r = 0; r < e.length; r += 1) n[r] = N(e[r], t);
|
|
236
|
-
return n;
|
|
237
|
-
}
|
|
238
|
-
function He(e, t = null) {
|
|
239
|
-
return e !== "currentColor" || typeof window > "u" || !t ? e : window.getComputedStyle(t).color || e;
|
|
240
|
-
}
|
|
241
|
-
function Ue(e) {
|
|
242
|
-
let t = e.trim().toLowerCase();
|
|
243
|
-
return t === "black" || t === "#000" || t === "#000000" || t === "rgb(0, 0, 0)" || t === "rgba(0, 0, 0, 1)" || t === "rgba(0, 0, 0, 0)";
|
|
244
|
-
}
|
|
245
|
-
function F(e) {
|
|
246
|
-
let t = M(e / 255);
|
|
247
|
-
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
248
|
-
}
|
|
249
|
-
function I(e) {
|
|
250
|
-
let t = M(e), n;
|
|
251
|
-
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, Ve(n * 255);
|
|
252
|
-
}
|
|
253
|
-
function We(e, t, n, r) {
|
|
254
|
-
let i = M(n);
|
|
255
|
-
if (r === "linearRGB") {
|
|
256
|
-
let n = F(e.red), r = F(e.green), a = F(e.blue), o = F(t.red), s = F(t.green), c = F(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
|
|
257
|
-
return {
|
|
258
|
-
red: I(l),
|
|
259
|
-
green: I(u),
|
|
260
|
-
blue: I(d),
|
|
261
|
-
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
return {
|
|
265
|
-
red: e.red + (t.red - e.red) * i,
|
|
266
|
-
green: e.green + (t.green - e.green) * i,
|
|
267
|
-
blue: e.blue + (t.blue - e.blue) * i,
|
|
268
|
-
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
//#endregion
|
|
272
|
-
//#region src/SPG/number-utils.js
|
|
273
|
-
function L(e, t, n) {
|
|
274
|
-
let r = e;
|
|
275
|
-
return r < t && (r = t), r > n && (r = n), r;
|
|
276
|
-
}
|
|
277
|
-
function R(e, t) {
|
|
278
|
-
let n = 10 ** t;
|
|
279
|
-
return Math.round(e * n) / n;
|
|
280
|
-
}
|
|
281
|
-
function z(e) {
|
|
282
|
-
return Number.isFinite(e) ? e.toString() : "0";
|
|
283
|
-
}
|
|
284
|
-
function Ge(e) {
|
|
285
|
-
let t = L(e, 0, 255).toString(16);
|
|
286
|
-
return t.length === 1 ? "0" + t : t;
|
|
287
|
-
}
|
|
288
|
-
function Ke(e) {
|
|
289
|
-
if (typeof e != "string") return;
|
|
290
|
-
let t = Number.parseFloat(e);
|
|
291
|
-
return Number.isFinite(t) ? t : void 0;
|
|
292
|
-
}
|
|
293
|
-
function qe(e, t, n, r = !0) {
|
|
294
|
-
let i = n - t;
|
|
295
|
-
if (i === 0) return 0;
|
|
296
|
-
let a = (e - t) / i;
|
|
297
|
-
return r ? L(a, 0, 1) : a;
|
|
298
|
-
}
|
|
299
|
-
//#endregion
|
|
300
|
-
//#region src/SPG/index.js
|
|
301
|
-
var Je = "http://www.w3.org/2000/svg";
|
|
302
|
-
function Ye(e) {
|
|
303
|
-
if (typeof document > "u") throw Error("SvgPathGradientAsync: document is not available (browser-only implementation).");
|
|
304
|
-
let t = document.createElementNS(Je, "svg");
|
|
305
|
-
t.setAttribute("width", "0"), t.setAttribute("height", "0"), t.setAttribute("viewBox", "0 0 0 0"), t.style.position = "absolute", t.style.left = "-10000px", t.style.top = "-10000px", t.style.visibility = "hidden", t.style.pointerEvents = "none";
|
|
306
|
-
let n = document.createElementNS(Je, "path");
|
|
307
|
-
return e === "M " && (e = "M 0,0"), n.setAttribute("d", e), t.appendChild(n), document.body.appendChild(t), {
|
|
308
|
-
svgElement: t,
|
|
309
|
-
pathElement: n
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
function Xe(e) {
|
|
313
|
-
if (e) try {
|
|
314
|
-
e.svgElement?.remove?.();
|
|
315
|
-
} catch {}
|
|
316
|
-
}
|
|
317
|
-
function Ze(e, t, n) {
|
|
318
|
-
if (typeof n == "number" && n > 0) return n;
|
|
319
|
-
let r = t * .75;
|
|
320
|
-
r < .5 && (r = .5), r > 8 && (r = 8);
|
|
321
|
-
let i = e / 2;
|
|
322
|
-
return r > i && i > 0 && (r = i), r <= 0 && (r = 1), r;
|
|
323
|
-
}
|
|
324
|
-
function Qe(e, t, n) {
|
|
325
|
-
if (typeof t == "number" && t >= 1) return Math.floor(t);
|
|
326
|
-
let r = Math.ceil(e / (typeof n == "number" && n > 0 ? n : 2));
|
|
327
|
-
return r < 1 ? 1 : r;
|
|
328
|
-
}
|
|
329
|
-
function $e(e, t, n, r, i, a) {
|
|
330
|
-
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
331
|
-
s < 2 && (s = 2), s > a && (s = a);
|
|
332
|
-
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = `M ${z(R(l.x, i))} ${z(R(l.y, i))}`;
|
|
333
|
-
for (let n = 1; n < s; n += 1) {
|
|
334
|
-
let r = t + n * c, a = e.getPointAtLength(r);
|
|
335
|
-
u += ` L ${z(R(a.x, i))} ${z(R(a.y, i))}`;
|
|
336
|
-
}
|
|
337
|
-
return u;
|
|
338
|
-
}
|
|
339
|
-
function et(e, t, n, r, i, a) {
|
|
340
|
-
let o = n - t, s = Math.ceil(o / r) + 1;
|
|
341
|
-
s < 2 && (s = 2), s > a && (s = a);
|
|
342
|
-
let c = s > 1 ? o / (s - 1) : 0, l = e.getPointAtLength(t), u = l.x, d = l.x, f = l.y, p = l.y, m = `M ${z(R(l.x, i))} ${z(R(l.y, i))}`;
|
|
343
|
-
for (let n = 1; n < s; n += 1) {
|
|
344
|
-
let r = t + n * c, a = e.getPointAtLength(r);
|
|
345
|
-
a.x < u && (u = a.x), a.x > d && (d = a.x), a.y < f && (f = a.y), a.y > p && (p = a.y), m += ` L ${z(R(a.x, i))} ${z(R(a.y, i))}`;
|
|
346
|
-
}
|
|
347
|
-
return {
|
|
348
|
-
pathData: m,
|
|
349
|
-
bounds: {
|
|
350
|
-
minX: u,
|
|
351
|
-
maxX: d,
|
|
352
|
-
minY: f,
|
|
353
|
-
maxY: p
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
function tt(e) {
|
|
358
|
-
if (e.length === 1) return [{
|
|
359
|
-
position: 0,
|
|
360
|
-
rgba: e[0]
|
|
361
|
-
}];
|
|
362
|
-
let t = Array(e.length), n = e.length - 1;
|
|
363
|
-
for (let r = 0; r < e.length; r += 1) t[r] = {
|
|
364
|
-
position: r / n,
|
|
365
|
-
rgba: e[r]
|
|
366
|
-
};
|
|
367
|
-
return t;
|
|
368
|
-
}
|
|
369
|
-
function B(e, t, n, r) {
|
|
370
|
-
let i = L(t, 0, 1), a = r;
|
|
371
|
-
for (a < 0 && (a = 0), a > e.length - 2 && (a = e.length - 2); a > 0 && i < e[a].position;) --a;
|
|
372
|
-
for (; a < e.length - 2 && i > e[a + 1].position;) a += 1;
|
|
373
|
-
let o = e[a], s = e[a + 1], c = s.position - o.position, l = c > 0 ? (i - o.position) / c : 0;
|
|
374
|
-
return H(nt(o.rgba, s.rgba, l, n));
|
|
375
|
-
}
|
|
376
|
-
function nt(e, t, n, r) {
|
|
377
|
-
let i = L(n, 0, 1);
|
|
378
|
-
if (r === "linearRGB") {
|
|
379
|
-
let n = V(e.red), r = V(e.green), a = V(e.blue), o = V(t.red), s = V(t.green), c = V(t.blue), l = n + (o - n) * i, u = r + (s - r) * i, d = a + (c - a) * i;
|
|
380
|
-
return {
|
|
381
|
-
red: rt(l),
|
|
382
|
-
green: rt(u),
|
|
383
|
-
blue: rt(d),
|
|
384
|
-
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
385
|
-
};
|
|
386
|
-
}
|
|
387
|
-
return {
|
|
388
|
-
red: e.red + (t.red - e.red) * i,
|
|
389
|
-
green: e.green + (t.green - e.green) * i,
|
|
390
|
-
blue: e.blue + (t.blue - e.blue) * i,
|
|
391
|
-
alpha: e.alpha + (t.alpha - e.alpha) * i
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
function V(e) {
|
|
395
|
-
let t = L(e / 255, 0, 1);
|
|
396
|
-
return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
397
|
-
}
|
|
398
|
-
function rt(e) {
|
|
399
|
-
let t = L(e, 0, 1), n;
|
|
400
|
-
return n = t <= .0031308 ? t * 12.92 : 1.055 * t ** (1 / 2.4) - .055, L(Math.round(n * 255), 0, 255);
|
|
401
|
-
}
|
|
402
|
-
function H(e) {
|
|
403
|
-
let t = L(e.alpha, 0, 1), n = L(Math.round(e.red), 0, 255), r = L(Math.round(e.green), 0, 255), i = L(Math.round(e.blue), 0, 255);
|
|
404
|
-
return t >= 1 ? `#${Ge(n)}${Ge(r)}${Ge(i)}` : `rgba(${n}, ${r}, ${i}, ${R(t, 4).toString()})`;
|
|
405
|
-
}
|
|
406
|
-
function U(e) {
|
|
407
|
-
let t = `fill="${G(e.fill ?? "none")}"`, n = Object.keys(e);
|
|
408
|
-
for (let r = 0; r < n.length; r += 1) {
|
|
409
|
-
let i = n[r];
|
|
410
|
-
if (i === "stroke" || i === "d") continue;
|
|
411
|
-
let a = e[i];
|
|
412
|
-
t += ` ${i}="${G(a)}"`;
|
|
413
|
-
}
|
|
414
|
-
return t;
|
|
415
|
-
}
|
|
416
|
-
function W(e, t, n) {
|
|
417
|
-
return `<path d="${G(e)}" stroke="${G(t)}" ${n} />`;
|
|
418
|
-
}
|
|
419
|
-
function it(e) {
|
|
420
|
-
let t = [], n = e.segmentAttributeMap.fill ?? "none";
|
|
421
|
-
t.push(`fill="${G(n)}"`), t.push(`stroke="${G(e.stroke)}"`);
|
|
422
|
-
for (let n of Object.keys(e.segmentAttributeMap)) {
|
|
423
|
-
if (n === "stroke" || n === "d") continue;
|
|
424
|
-
let r = e.segmentAttributeMap[n];
|
|
425
|
-
t.push(`${n}="${G(r)}"`);
|
|
426
|
-
}
|
|
427
|
-
return `<path d="${G(e.pathData)}" ${t.join(" ")} />`;
|
|
428
|
-
}
|
|
429
|
-
function at(e, t) {
|
|
430
|
-
let n = [];
|
|
431
|
-
for (let e of Object.keys(t)) n.push(`${e}="${G(t[e])}"`);
|
|
432
|
-
return `<g data-svg-path-gradient="true"${n.length ? " " + n.join(" ") : ""}>${e.join("")}</g>`;
|
|
433
|
-
}
|
|
434
|
-
function G(e) {
|
|
435
|
-
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
436
|
-
}
|
|
437
|
-
function ot(e, t = null, n = {}) {
|
|
438
|
-
return new Promise((r, i) => {
|
|
439
|
-
let a = null;
|
|
440
|
-
try {
|
|
441
|
-
if (!e || typeof e != "string") throw Error("SvgPathGradientAsync: pathData must be a non-empty string.");
|
|
442
|
-
let i = n.temperatureMode ?? null;
|
|
443
|
-
if (i === null && (!Array.isArray(t) || t.length === 0)) throw Error("SvgPathGradientAsync: colors must be a non-empty array when temperatureMode is not enabled.");
|
|
444
|
-
if ((n.returnMode ?? "string") !== "string") throw Error("SvgPathGradientAsync: only returnMode=\"string\" is supported for the async version.");
|
|
445
|
-
let o = typeof n.decimalPlaces == "number" ? n.decimalPlaces : 3, s = typeof n.flattenTolerance == "number" && n.flattenTolerance > 0 ? n.flattenTolerance : .25, c = n.attrs ? { ...n.attrs } : {}, l = n.groupAttrs ? { ...n.groupAttrs } : {}, u = Ke(c["stroke-width"]), d = typeof n.strokeWidth == "number" && n.strokeWidth > 0 ? n.strokeWidth : typeof u == "number" && u > 0 ? u : 1;
|
|
446
|
-
a = Ye(e);
|
|
447
|
-
let f = a.pathElement, p = f.getTotalLength(), m = i === null ? P(t, n.colorReferenceElement) : [];
|
|
448
|
-
if (i === null && (!(p > 0) || m.length === 1)) {
|
|
449
|
-
let t = at([it({
|
|
450
|
-
pathData: e,
|
|
451
|
-
stroke: H(m[0]),
|
|
452
|
-
segmentAttributeMap: c
|
|
453
|
-
})], l);
|
|
454
|
-
Xe(a), r(t);
|
|
455
|
-
return;
|
|
456
|
-
}
|
|
457
|
-
let ee = n.colorSpace ?? "linearRGB";
|
|
458
|
-
if (i !== null) {
|
|
459
|
-
let e = n.temperatureColors;
|
|
460
|
-
if (!Array.isArray(e) || e.length !== 2) throw Error("SvgPathGradientAsync: temperatureColors must be a tuple of exactly 2 colors when temperatureMode is enabled.");
|
|
461
|
-
}
|
|
462
|
-
let te = i === null ? null : P(n.temperatureColors, n.colorReferenceElement), ne = i === null ? (() => {
|
|
463
|
-
let e = tt(m), t = Array(e.length);
|
|
464
|
-
for (let n = 0; n < e.length; n += 1) t[n] = {
|
|
465
|
-
position: e[n].position,
|
|
466
|
-
rgba: e[n].rgba
|
|
467
|
-
};
|
|
468
|
-
return t;
|
|
469
|
-
})() : [], re = Ze(p, d, n.maxSegmentLength), h = Qe(p, n.segments, re), ie = p / h, ae = typeof n.overlap == "number" && n.overlap >= 0 ? n.overlap : d * .5, oe = ie * .45;
|
|
470
|
-
ae > oe && (ae = oe);
|
|
471
|
-
let se = typeof n.samplePointLimitPerSegment == "number" && n.samplePointLimitPerSegment > 10 ? n.samplePointLimitPerSegment : 250, ce = U(c), le = [], ue = i === null ? null : [], de = i === null ? null : [], fe = 0, pe = i === null ? ne.length - 2 : 0, g = 0, me = () => {
|
|
472
|
-
let e = performance.now(), t = typeof n.frameBudgetMs == "number" ? n.frameBudgetMs : 8;
|
|
473
|
-
for (; g < h && performance.now() - e < t;) {
|
|
474
|
-
let e = g * ie, t = (g + 1) * ie, n = e, r = t;
|
|
475
|
-
if (g !== 0 && (n = e - ae), g !== h - 1 && (r = t + ae), n = L(n, 0, p), r = L(r, 0, p), r > n) if (i !== null) {
|
|
476
|
-
let e = et(f, n, r, s, o, se);
|
|
477
|
-
ue.push(e.pathData), de.push(e.bounds);
|
|
478
|
-
} else {
|
|
479
|
-
let e = (n + r) * .5 / p;
|
|
480
|
-
for (; fe < pe && e > ne[fe + 1].position;) fe += 1;
|
|
481
|
-
let t = B(ne, e, ee, fe), i = $e(f, n, r, s, o, se);
|
|
482
|
-
le.push(W(i, t, ce));
|
|
483
|
-
}
|
|
484
|
-
g += 1;
|
|
485
|
-
}
|
|
486
|
-
if (g < h) {
|
|
487
|
-
requestAnimationFrame(me);
|
|
488
|
-
return;
|
|
489
|
-
}
|
|
490
|
-
if (i !== null) {
|
|
491
|
-
let e = Infinity, t = -Infinity;
|
|
492
|
-
for (let n = 0; n < de.length; n += 1) {
|
|
493
|
-
let r = de[n], a = i === "vertical" ? r.minY : r.minX, o = i === "vertical" ? r.maxY : r.maxX;
|
|
494
|
-
a < e && (e = a), o > t && (t = o);
|
|
495
|
-
}
|
|
496
|
-
let n = te[0], r = te[1];
|
|
497
|
-
le.length = 0;
|
|
498
|
-
for (let a = 0; a < de.length; a += 1) {
|
|
499
|
-
let o = de[a], s = qe(((i === "vertical" ? o.minY : o.minX) + (i === "vertical" ? o.maxY : o.maxX)) * .5, e, t, !0), c = H(i === "vertical" ? We(n, r, s, ee) : We(r, n, s, ee)), l = ue[a];
|
|
500
|
-
le.push(W(l, c, ce));
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
let c = at(le, l);
|
|
504
|
-
Xe(a), r(c);
|
|
505
|
-
};
|
|
506
|
-
requestAnimationFrame(me);
|
|
507
|
-
} catch (e) {
|
|
508
|
-
Xe(a), i(e);
|
|
509
|
-
}
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
//#endregion
|
|
513
|
-
//#region src/atoms/SparklineGradientPath.vue
|
|
514
|
-
var st = ["innerHTML"], ct = {
|
|
515
|
-
__name: "SparklineGradientPath",
|
|
516
|
-
props: {
|
|
517
|
-
svgPathData: {
|
|
518
|
-
type: String,
|
|
519
|
-
required: !0
|
|
520
|
-
},
|
|
521
|
-
enabled: {
|
|
522
|
-
type: Boolean,
|
|
523
|
-
required: !0
|
|
524
|
-
},
|
|
525
|
-
strokeWidth: {
|
|
526
|
-
type: Number,
|
|
527
|
-
required: !0
|
|
528
|
-
},
|
|
529
|
-
highColor: {
|
|
530
|
-
type: String,
|
|
531
|
-
required: !0
|
|
532
|
-
},
|
|
533
|
-
lowColor: {
|
|
534
|
-
type: String,
|
|
535
|
-
required: !0
|
|
536
|
-
},
|
|
537
|
-
segments: {
|
|
538
|
-
type: Number,
|
|
539
|
-
required: !0
|
|
540
|
-
}
|
|
541
|
-
},
|
|
542
|
-
setup(e) {
|
|
543
|
-
let t = e, n = T(""), r = 0;
|
|
544
|
-
return O(() => [
|
|
545
|
-
t.enabled,
|
|
546
|
-
t.svgPathData,
|
|
547
|
-
t.strokeWidth,
|
|
548
|
-
t.highColor,
|
|
549
|
-
t.lowColor,
|
|
550
|
-
t.segments
|
|
551
|
-
], async ([e]) => {
|
|
552
|
-
let i = ++r;
|
|
553
|
-
if (!e) {
|
|
554
|
-
n.value = "";
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
let a = await ot(t.svgPathData, null, {
|
|
558
|
-
segments: t.segments,
|
|
559
|
-
temperatureMode: "vertical",
|
|
560
|
-
temperatureColors: [t.highColor, t.lowColor],
|
|
561
|
-
attrs: {
|
|
562
|
-
"stroke-width": t.strokeWidth,
|
|
563
|
-
"stroke-linecap": "round",
|
|
564
|
-
"stroke-linejoin": "round"
|
|
565
|
-
},
|
|
566
|
-
groupAttrs: { class: "vue-ui-sparkline-gradient" }
|
|
567
|
-
});
|
|
568
|
-
i === r && (n.value = a);
|
|
569
|
-
}, { immediate: !0 }), (e, t) => (w(), b("g", { innerHTML: n.value }, null, 8, st));
|
|
570
|
-
}
|
|
571
|
-
}, lt = /* @__PURE__ */ e({ default: () => Ut }), ut = ["id"], dt = ["id"], ft = { style: { position: "relative" } }, pt = [
|
|
572
|
-
"xmlns",
|
|
573
|
-
"viewBox",
|
|
574
|
-
"aria-describedby"
|
|
575
|
-
], mt = ["width", "height"], ht = ["id"], gt = ["stop-color"], _t = ["stop-color"], vt = ["id"], yt = ["stop-color"], bt = ["stop-color"], xt = ["id"], St = ["stop-color"], Ct = ["stop-color"], wt = ["id"], Tt = ["id"], Et = ["stop-color", "offset"], Dt = { key: 1 }, Ot = ["d", "fill"], kt = ["d", "fill"], At = [
|
|
576
|
-
"id",
|
|
577
|
-
"d",
|
|
578
|
-
"stroke-width"
|
|
579
|
-
], jt = [
|
|
580
|
-
"d",
|
|
581
|
-
"stroke",
|
|
582
|
-
"stroke-width",
|
|
583
|
-
"stroke-dasharray"
|
|
584
|
-
], Mt = [
|
|
585
|
-
"d",
|
|
586
|
-
"stroke",
|
|
587
|
-
"stroke-width"
|
|
588
|
-
], Nt = [
|
|
589
|
-
"id",
|
|
590
|
-
"d",
|
|
591
|
-
"stroke-width"
|
|
592
|
-
], Pt = [
|
|
593
|
-
"d",
|
|
594
|
-
"stroke",
|
|
595
|
-
"stroke-width",
|
|
596
|
-
"stroke-dasharray"
|
|
597
|
-
], Ft = [
|
|
598
|
-
"d",
|
|
599
|
-
"stroke",
|
|
600
|
-
"stroke-width"
|
|
601
|
-
], It = [
|
|
602
|
-
"x",
|
|
603
|
-
"y",
|
|
604
|
-
"width",
|
|
605
|
-
"height",
|
|
606
|
-
"fill",
|
|
607
|
-
"rx"
|
|
608
|
-
], Lt = [
|
|
609
|
-
"x1",
|
|
610
|
-
"x2",
|
|
611
|
-
"y1",
|
|
612
|
-
"y2",
|
|
613
|
-
"stroke",
|
|
614
|
-
"stroke-width",
|
|
615
|
-
"stroke-dasharray"
|
|
616
|
-
], Rt = [
|
|
617
|
-
"x1",
|
|
618
|
-
"x2",
|
|
619
|
-
"y1",
|
|
620
|
-
"y2",
|
|
621
|
-
"stroke",
|
|
622
|
-
"stroke-dasharray",
|
|
623
|
-
"stroke-width"
|
|
624
|
-
], zt = [
|
|
625
|
-
"cx",
|
|
626
|
-
"cy",
|
|
627
|
-
"r",
|
|
628
|
-
"fill",
|
|
629
|
-
"stroke",
|
|
630
|
-
"stroke-width"
|
|
631
|
-
], Bt = [
|
|
632
|
-
"x",
|
|
633
|
-
"y",
|
|
634
|
-
"font-size",
|
|
635
|
-
"font-weight",
|
|
636
|
-
"fill"
|
|
637
|
-
], Vt = [
|
|
638
|
-
"x",
|
|
639
|
-
"y",
|
|
640
|
-
"height",
|
|
641
|
-
"width",
|
|
642
|
-
"onMouseenter",
|
|
643
|
-
"onMouseleave",
|
|
644
|
-
"onClick"
|
|
645
|
-
], Ht = {
|
|
646
|
-
key: 0,
|
|
647
|
-
style: {
|
|
648
|
-
position: "absolute",
|
|
649
|
-
top: "100%",
|
|
650
|
-
left: "0",
|
|
651
|
-
width: "100%"
|
|
652
|
-
},
|
|
653
|
-
"data-dom-to-png-ignore": "",
|
|
654
|
-
"aria-hidden": "true"
|
|
655
|
-
}, Ut = /* @__PURE__ */ fe({
|
|
656
|
-
__name: "vue-ui-sparkline",
|
|
657
|
-
props: {
|
|
658
|
-
config: {
|
|
659
|
-
type: Object,
|
|
660
|
-
default() {
|
|
661
|
-
return {};
|
|
662
|
-
}
|
|
663
|
-
},
|
|
664
|
-
dataset: {
|
|
665
|
-
type: Array,
|
|
666
|
-
default() {
|
|
667
|
-
return [];
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
showInfo: {
|
|
671
|
-
type: Boolean,
|
|
672
|
-
default: !0
|
|
673
|
-
},
|
|
674
|
-
selectedIndex: {
|
|
675
|
-
type: Number,
|
|
676
|
-
default: void 0
|
|
677
|
-
},
|
|
678
|
-
heightRatio: {
|
|
679
|
-
type: Number,
|
|
680
|
-
default: 1
|
|
681
|
-
},
|
|
682
|
-
forcedPadding: {
|
|
683
|
-
type: Number,
|
|
684
|
-
default: 30
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
emits: ["hoverIndex", "selectDatapoint"],
|
|
688
|
-
setup(e, { emit: fe }) {
|
|
689
|
-
let Me = xe(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), Ne = xe(() => import("./SparkTooltip-c2DL7gqD.js")), { vue_ui_sparkline: Pe } = se(), { isThemeValid: Fe, warnInvalidTheme: Ie } = de(), Le = ge(), k = e, Re = v(() => Array.isArray(k.dataset) && k.dataset.length > 0), A = T(r()), j = T(null), Be = T(null), Ve = T(null), M = T(null), N = T(null), P = T(R());
|
|
690
|
-
function He(e) {
|
|
691
|
-
return k.config?.skeletonDataset && Array.isArray(k.config.skeletonDataset) ? k.config.skeletonDataset.map((e) => ({
|
|
692
|
-
period: "-",
|
|
693
|
-
value: e
|
|
694
|
-
})) : s(e).map((e) => ({
|
|
695
|
-
period: "-",
|
|
696
|
-
value: e
|
|
697
|
-
}));
|
|
698
|
-
}
|
|
699
|
-
let Ue = v(() => ae({
|
|
700
|
-
defaultConfig: {
|
|
701
|
-
gradientPath: { show: !1 },
|
|
702
|
-
temperatureColors: { show: !1 },
|
|
703
|
-
style: {
|
|
704
|
-
backgroundColor: "#99999930",
|
|
705
|
-
scaleMin: 0,
|
|
706
|
-
scaleMax: null,
|
|
707
|
-
animation: { show: !1 },
|
|
708
|
-
line: {
|
|
709
|
-
color: "#AAAAAA",
|
|
710
|
-
pulse: { show: !1 },
|
|
711
|
-
dashIndices: []
|
|
712
|
-
},
|
|
713
|
-
bar: { color: "#AAAAAA" },
|
|
714
|
-
area: { color: "#CACACA" },
|
|
715
|
-
zeroLine: { color: "#6A6A6A" },
|
|
716
|
-
dataLabel: { show: !1 },
|
|
717
|
-
tooltip: { show: !1 }
|
|
718
|
-
}
|
|
719
|
-
},
|
|
720
|
-
userConfig: P.value.skeletonConfig ?? {}
|
|
721
|
-
})), { loading: F, FINAL_DATASET: I, manualLoading: We } = ce({
|
|
722
|
-
...ke(k),
|
|
723
|
-
FINAL_CONFIG: P,
|
|
724
|
-
prepareConfig: R,
|
|
725
|
-
callback: () => {
|
|
726
|
-
Promise.resolve().then(async () => {
|
|
727
|
-
await S(), lt();
|
|
728
|
-
});
|
|
729
|
-
},
|
|
730
|
-
skeletonDataset: He(12),
|
|
731
|
-
skeletonConfig: ae({
|
|
732
|
-
defaultConfig: P.value,
|
|
733
|
-
userConfig: Ue.value
|
|
734
|
-
})
|
|
735
|
-
}), { svgRef: L } = he({ config: P.value.style.title });
|
|
736
|
-
function R() {
|
|
737
|
-
let e = ue({
|
|
738
|
-
userConfig: k.config,
|
|
739
|
-
defaultConfig: Pe
|
|
740
|
-
}), t = {}, n = e.theme;
|
|
741
|
-
if (n) if (!Fe.value(e)) Ie(e), t = e;
|
|
742
|
-
else {
|
|
743
|
-
let r = ue({
|
|
744
|
-
userConfig: _e[n] || k.config,
|
|
745
|
-
defaultConfig: e
|
|
746
|
-
});
|
|
747
|
-
t = { ...ue({
|
|
748
|
-
userConfig: k.config,
|
|
749
|
-
defaultConfig: r
|
|
750
|
-
}) };
|
|
751
|
-
}
|
|
752
|
-
else t = e;
|
|
753
|
-
return t;
|
|
754
|
-
}
|
|
755
|
-
let z = v(() => P.value?.style?.line.pulse || {}), Ge = v(() => `${Math.max(200, Number(z.value.durationMs) || 4e3) / 1e3}s`), Ke = T(0), qe = v(() => z.value?.begin || "0ms"), Je = T("0;1"), Ye = v(() => z.value?.loop === !1 ? "1" : "indefinite"), Xe = v(() => z.value?.loop === !1 ? "freeze" : void 0), Ze = v(() => z.value.trail.show && tt.value.lengthPx || 1), Qe = v(() => !!z.value?.show && !Q.value && !Le.value && !F.value && (J.value?.length || 0) > 1);
|
|
756
|
-
function $e() {
|
|
757
|
-
if (!Qe.value) {
|
|
758
|
-
Ke.value = 0;
|
|
759
|
-
return;
|
|
760
|
-
}
|
|
761
|
-
let e = L.value;
|
|
762
|
-
if (!e) return;
|
|
763
|
-
let t = `#${Wt.value}`, n = e.querySelector?.(t);
|
|
764
|
-
if (n && typeof n.getTotalLength == "function") {
|
|
765
|
-
let e = n.getTotalLength();
|
|
766
|
-
Number.isFinite(e) && e > 0 && (Ke.value = e);
|
|
767
|
-
return;
|
|
768
|
-
}
|
|
769
|
-
requestAnimationFrame(() => {
|
|
770
|
-
let n = e.querySelector?.(t);
|
|
771
|
-
if (n && typeof n.getTotalLength == "function") {
|
|
772
|
-
let e = n.getTotalLength();
|
|
773
|
-
Number.isFinite(e) && e > 0 && (Ke.value = e);
|
|
774
|
-
}
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
let et = v(() => {
|
|
778
|
-
let e = z.value?.easing || "ease-in-out", t = {
|
|
779
|
-
ease: [
|
|
780
|
-
.25,
|
|
781
|
-
.1,
|
|
782
|
-
.25,
|
|
783
|
-
1
|
|
784
|
-
],
|
|
785
|
-
"ease-in": [
|
|
786
|
-
.42,
|
|
787
|
-
0,
|
|
788
|
-
1,
|
|
789
|
-
1
|
|
790
|
-
],
|
|
791
|
-
"ease-out": [
|
|
792
|
-
0,
|
|
793
|
-
0,
|
|
794
|
-
.58,
|
|
795
|
-
1
|
|
796
|
-
],
|
|
797
|
-
"ease-in-out": [
|
|
798
|
-
.42,
|
|
799
|
-
0,
|
|
800
|
-
.58,
|
|
801
|
-
1
|
|
802
|
-
]
|
|
803
|
-
};
|
|
804
|
-
return e === "linear" ? {
|
|
805
|
-
calcMode: "linear",
|
|
806
|
-
keySplines: null,
|
|
807
|
-
keyTimes: "0;1"
|
|
808
|
-
} : e === "steps" ? {
|
|
809
|
-
calcMode: "discrete",
|
|
810
|
-
keySplines: null,
|
|
811
|
-
keyTimes: "0;1"
|
|
812
|
-
} : {
|
|
813
|
-
calcMode: "spline",
|
|
814
|
-
keySplines: (e === "cubic-bezier" ? Array.isArray(z.value?.cubicBezier) && z.value.cubicBezier.length === 4 ? z.value.cubicBezier : [
|
|
815
|
-
.4,
|
|
816
|
-
0,
|
|
817
|
-
.2,
|
|
818
|
-
1
|
|
819
|
-
] : t[e] || t["ease-in-out"]).join(" "),
|
|
820
|
-
keyTimes: "0;1"
|
|
821
|
-
};
|
|
822
|
-
}), tt = v(() => {
|
|
823
|
-
let e = z.value?.trail || {}, t = P.value.style.line.strokeWidth || 1;
|
|
824
|
-
return {
|
|
825
|
-
show: e.show !== !1,
|
|
826
|
-
lengthPx: e.length,
|
|
827
|
-
width: Math.max(1, Number(e.strokeWidth) || t * 2.2),
|
|
828
|
-
opacity: Math.min(1, Math.max(0, Number(e.opacity) ?? .6)),
|
|
829
|
-
fadeIn: .5,
|
|
830
|
-
fadeOut: .2
|
|
831
|
-
};
|
|
832
|
-
}), B = v(() => h({
|
|
833
|
-
data: I.value,
|
|
834
|
-
threshold: P.value.downsample.threshold
|
|
835
|
-
})), nt = v(() => {
|
|
836
|
-
if (!P.value.temperatureColors.show) return !1;
|
|
837
|
-
let e = I.value.map(({ value: e }) => e).filter((e) => Number.isFinite(e));
|
|
838
|
-
return new Set(e).size <= 1;
|
|
839
|
-
});
|
|
840
|
-
O(() => k.config, (e) => {
|
|
841
|
-
F.value || (P.value = R()), Jt(), K.value.chartWidth = P.value.style.chartWidth;
|
|
842
|
-
}, { deep: !0 }), O(() => k.dataset, (e) => {
|
|
843
|
-
Array.isArray(e) && e.length > 0 && (We.value = !1), V.value = h({
|
|
844
|
-
data: I.value.map((e) => ({
|
|
845
|
-
...e,
|
|
846
|
-
value: [void 0].includes(e.value) ? null : e.value
|
|
847
|
-
})),
|
|
848
|
-
threshold: P.value.downsample.threshold
|
|
849
|
-
});
|
|
850
|
-
}, { deep: !0 });
|
|
851
|
-
let V = T(rt());
|
|
852
|
-
function rt() {
|
|
853
|
-
return h({
|
|
854
|
-
data: I.value.map((e) => P.value.style.animation.show && I.value.length > 1 ? {
|
|
855
|
-
...e,
|
|
856
|
-
value: null
|
|
857
|
-
} : {
|
|
858
|
-
...e,
|
|
859
|
-
value: [void 0].includes(e.value) ? null : e.value
|
|
860
|
-
}),
|
|
861
|
-
threshold: P.value.downsample.threshold
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
let H = De(null), U = De(null), W = T(!1), it = T(0), at = T([]), G = T(""), ot = v(() => {
|
|
865
|
-
let e = (B.value || []).map((e) => `${e.period}::${Number.isFinite(e.value) ? e.value : 0}`).join("|"), t = P.value?.style?.animation || {}, n = !!P.value?.gradientPath?.show && !P.value.temperatureColors.show;
|
|
866
|
-
return `${e}#${!!t.show}#${t.animationFrames || 0}#${n}`;
|
|
867
|
-
});
|
|
868
|
-
function st() {
|
|
869
|
-
it.value &&= (cancelAnimationFrame(it.value), 0), at.value.forEach((e) => clearTimeout(e)), at.value = [], W.value = !1;
|
|
870
|
-
}
|
|
871
|
-
function lt() {
|
|
872
|
-
let e = P.value?.style?.animation || {}, t = B.value || [], n = ot.value, r = !!P.value.gradientPath.show && !P.value.temperatureColors.show;
|
|
873
|
-
if (n && n === G.value && (W.value || V.value.length === t.length)) return;
|
|
874
|
-
if (st(), r || !e.show || F.value || t.length <= 1) {
|
|
875
|
-
V.value = t, G.value = n;
|
|
876
|
-
return;
|
|
877
|
-
}
|
|
878
|
-
W.value = !0, G.value = n, V.value = [];
|
|
879
|
-
let i = Math.max(1, Number(e.animationFrames) || 1), a = Math.max(1, Math.floor(i / t.length)), o = 0, s = () => {
|
|
880
|
-
if (n !== ot.value) {
|
|
881
|
-
st();
|
|
882
|
-
return;
|
|
883
|
-
}
|
|
884
|
-
if (o < t.length) {
|
|
885
|
-
V.value.push(t[o]);
|
|
886
|
-
let e = setTimeout(() => {
|
|
887
|
-
it.value = requestAnimationFrame(s);
|
|
888
|
-
}, a);
|
|
889
|
-
at.value.push(e), o += 1;
|
|
890
|
-
} else V.value = t, st();
|
|
891
|
-
};
|
|
892
|
-
it.value = requestAnimationFrame(s);
|
|
893
|
-
}
|
|
894
|
-
O(ot, () => {
|
|
895
|
-
lt();
|
|
896
|
-
}), Te(() => {
|
|
897
|
-
Jt(), lt();
|
|
898
|
-
}), we(() => {
|
|
899
|
-
st();
|
|
900
|
-
});
|
|
901
|
-
let Ut = T(0);
|
|
902
|
-
O(() => F.value, async (e) => {
|
|
903
|
-
e || (await S(), Ut.value += 1);
|
|
904
|
-
}), O(() => W.value, async (e) => {
|
|
905
|
-
e || F.value || (await S(), Ut.value += 1);
|
|
906
|
-
});
|
|
907
|
-
let Wt = v(() => `sparkline_line_path_${A.value}`), Gt = T(!0);
|
|
908
|
-
async function Kt() {
|
|
909
|
-
Gt.value = !1, await S(), Gt.value = !0, await S(), $e();
|
|
910
|
-
}
|
|
911
|
-
let qt = v(() => !!P.value.debug);
|
|
912
|
-
function Jt() {
|
|
913
|
-
if (l(k.dataset) ? (u({
|
|
914
|
-
componentName: "VueUiSparkline",
|
|
915
|
-
type: "dataset",
|
|
916
|
-
debug: qt.value
|
|
917
|
-
}), We.value = !0) : k.dataset.forEach((e, t) => {
|
|
918
|
-
ne({
|
|
919
|
-
datasetObject: e,
|
|
920
|
-
requiredAttributes: ["period", "value"]
|
|
921
|
-
}).forEach((e) => {
|
|
922
|
-
u({
|
|
923
|
-
componentName: "VueUiSparkline",
|
|
924
|
-
type: "datasetSerieAttribute",
|
|
925
|
-
property: e,
|
|
926
|
-
index: t,
|
|
927
|
-
debug: qt.value
|
|
928
|
-
});
|
|
929
|
-
});
|
|
930
|
-
}), l(k.dataset) || (We.value = P.value.loading), P.value.responsive) {
|
|
931
|
-
let e = pe(() => {
|
|
932
|
-
let { width: e, height: t } = g({
|
|
933
|
-
chart: j.value,
|
|
934
|
-
title: P.value.style.title.show && k.showInfo ? Be.value : null,
|
|
935
|
-
source: Ve.value
|
|
936
|
-
});
|
|
937
|
-
requestAnimationFrame(() => {
|
|
938
|
-
K.value.width = e, K.value.height = t, K.value.chartWidth = P.value.style.chartWidth / 500 * e, K.value.padding = k.forcedPadding / 500 * e;
|
|
939
|
-
});
|
|
940
|
-
});
|
|
941
|
-
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect()), H.value = new ResizeObserver(e), U.value = j.value.parentNode, H.value.observe(U.value);
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
we(() => {
|
|
945
|
-
H.value && (U.value && H.value.unobserve(U.value), H.value.disconnect());
|
|
946
|
-
});
|
|
947
|
-
let K = T({
|
|
948
|
-
height: 80 * k.heightRatio,
|
|
949
|
-
width: 500,
|
|
950
|
-
chartWidth: P.value.style.chartWidth,
|
|
951
|
-
padding: k.forcedPadding
|
|
952
|
-
}), Yt = fe, q = v(() => {
|
|
953
|
-
let { top: e, right: t, bottom: n, left: r } = P.value.style.padding;
|
|
954
|
-
return {
|
|
955
|
-
top: e,
|
|
956
|
-
left: r,
|
|
957
|
-
right: K.value.width - t,
|
|
958
|
-
bottom: K.value.height - n,
|
|
959
|
-
start: k.showInfo && P.value.style.dataLabel.show && P.value.style.dataLabel.position === "left" ? K.value.width - K.value.chartWidth + r : K.value.padding + r,
|
|
960
|
-
width: k.showInfo && P.value.style.dataLabel.show ? K.value.chartWidth - r - t : K.value.width - K.value.padding - r - t,
|
|
961
|
-
height: K.value.height - e - n
|
|
962
|
-
};
|
|
963
|
-
}), Xt = v(() => [null, void 0].includes(P.value.style.scaleMin) ? Math.min(...V.value.map((e) => isNaN(e.value) || [
|
|
964
|
-
void 0,
|
|
965
|
-
null,
|
|
966
|
-
"NaN",
|
|
967
|
-
NaN,
|
|
968
|
-
Infinity,
|
|
969
|
-
-Infinity
|
|
970
|
-
].includes(e.value) ? 0 : e.value || 0)) : P.value.style.scaleMin), Zt = v(() => [null, void 0].includes(P.value.style.scaleMax) ? Math.max(...V.value.map((e) => isNaN(e.value) || [
|
|
971
|
-
void 0,
|
|
972
|
-
null,
|
|
973
|
-
"NaN",
|
|
974
|
-
NaN,
|
|
975
|
-
Infinity,
|
|
976
|
-
-Infinity
|
|
977
|
-
].includes(e.value) ? 0 : e.value || 0)) : P.value.style.scaleMax), Qt = v(() => {
|
|
978
|
-
let e = Xt.value >= 0 ? 0 : Xt.value;
|
|
979
|
-
return Math.abs(e);
|
|
980
|
-
}), $t = v(() => Zt.value + Qt.value), en = v(() => q.value.bottom - q.value.height * tn(Qt.value));
|
|
981
|
-
function tn(e) {
|
|
982
|
-
return isNaN(e / $t.value) ? 0 : e / $t.value;
|
|
983
|
-
}
|
|
984
|
-
let nn = v(() => B.value.length - 1 || 1), rn = T([]), an = 0;
|
|
985
|
-
Ae(() => {
|
|
986
|
-
let e = ++an;
|
|
987
|
-
(async () => {
|
|
988
|
-
let t = await oe({
|
|
989
|
-
values: B.value.map((e) => e.period),
|
|
990
|
-
maxDatapoints: B.value.length,
|
|
991
|
-
formatter: P.value.style.dataLabel.datetimeFormatter,
|
|
992
|
-
start: 0,
|
|
993
|
-
end: B.value.length
|
|
994
|
-
});
|
|
995
|
-
e === an && (rn.value = t);
|
|
996
|
-
})();
|
|
997
|
-
});
|
|
998
|
-
let J = v(() => V.value.map((e, t) => {
|
|
999
|
-
let n = isNaN(e.value) || [
|
|
1000
|
-
void 0,
|
|
1001
|
-
null,
|
|
1002
|
-
"NaN",
|
|
1003
|
-
NaN,
|
|
1004
|
-
Infinity,
|
|
1005
|
-
-Infinity
|
|
1006
|
-
].includes(e.value) ? 0 : e.value || 0, r = q.value.width / nn.value;
|
|
1007
|
-
return {
|
|
1008
|
-
value: e.value,
|
|
1009
|
-
absoluteValue: n,
|
|
1010
|
-
period: rn.value && rn.value[t] && rn.value[t].text ? rn.value[t].text : e.period,
|
|
1011
|
-
plotValue: n + Qt.value,
|
|
1012
|
-
toMax: tn(n + Qt.value),
|
|
1013
|
-
x: q.value.start + t * r,
|
|
1014
|
-
y: q.value.bottom - q.value.height * tn(n + Qt.value),
|
|
1015
|
-
id: `plot_${A.value}_${t}`,
|
|
1016
|
-
color: Q.value ? P.value.style.bar.color : P.value.style.area.useGradient ? o(P.value.style.line.color, .05 * (1 - t / nn.value)) : P.value.style.line.color,
|
|
1017
|
-
width: r
|
|
1018
|
-
};
|
|
1019
|
-
})), on = v(() => k.selectedIndex !== void 0 && k.selectedIndex !== null && k.selectedIndex >= 0 && k.selectedIndex < J.value.length ? k.selectedIndex : N.value !== void 0 && N.value !== null && N.value >= 0 && N.value < J.value.length ? N.value : null), sn = v(() => {
|
|
1020
|
-
let e = {
|
|
1021
|
-
x: J.value[0].x || 0,
|
|
1022
|
-
y: (K.value.height || 0) - 6
|
|
1023
|
-
}, t = {
|
|
1024
|
-
x: J.value[J.value.length - 1].x || 0,
|
|
1025
|
-
y: (K.value.height || 0) - 6
|
|
1026
|
-
}, n = [];
|
|
1027
|
-
return J.value.forEach((e) => {
|
|
1028
|
-
n.push(`${e.x || 0},${e.y || 0} `);
|
|
1029
|
-
}), [
|
|
1030
|
-
e.x,
|
|
1031
|
-
e.y,
|
|
1032
|
-
...n,
|
|
1033
|
-
t.x,
|
|
1034
|
-
t.y
|
|
1035
|
-
].toString();
|
|
1036
|
-
}), Y = T(void 0), X = T(void 0);
|
|
1037
|
-
function cn(e, t) {
|
|
1038
|
-
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
1039
|
-
datapoint: e,
|
|
1040
|
-
seriesIndex: t
|
|
1041
|
-
}), N.value = t, M.value = t, Y.value = e, X.value ||= e, Yt("hoverIndex", { index: t });
|
|
1042
|
-
}
|
|
1043
|
-
function ln(e, t) {
|
|
1044
|
-
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
1045
|
-
datapoint: e,
|
|
1046
|
-
seriesIndex: t
|
|
1047
|
-
}), X.value = Y.value, Y.value = void 0, N.value = null, M.value = null, Yt("hoverIndex", { index: void 0 });
|
|
1048
|
-
}
|
|
1049
|
-
let Z = v(() => {
|
|
1050
|
-
if (Re.value) {
|
|
1051
|
-
let e = J.value.map((e) => e.absoluteValue), t = e.reduce((e, t) => e + t, 0);
|
|
1052
|
-
return {
|
|
1053
|
-
latest: J.value[J.value.length - 1] ? J.value[J.value.length - 1].absoluteValue : 0,
|
|
1054
|
-
sum: t,
|
|
1055
|
-
average: t / J.value.length,
|
|
1056
|
-
median: f(e),
|
|
1057
|
-
trend: te(J.value.map(({ x: e, y: t, absoluteValue: n }) => ({
|
|
1058
|
-
x: e,
|
|
1059
|
-
y: t,
|
|
1060
|
-
value: n
|
|
1061
|
-
}))).trend
|
|
1062
|
-
};
|
|
1063
|
-
} else return {
|
|
1064
|
-
latest: null,
|
|
1065
|
-
sum: null,
|
|
1066
|
-
average: null,
|
|
1067
|
-
median: null,
|
|
1068
|
-
trend: null
|
|
1069
|
-
};
|
|
1070
|
-
}), un = v(() => Re.value ? P.value.style.dataLabel.valueType === "latest" ? Z.value.latest : P.value.style.dataLabel.valueType === "sum" ? Z.value.sum : P.value.style.dataLabel.valueType === "average" ? Z.value.average : 0 : 0), Q = v(() => P.value.type && P.value.type === "bar");
|
|
1071
|
-
function dn(e, t) {
|
|
1072
|
-
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
1073
|
-
datapoint: e,
|
|
1074
|
-
seriesIndex: t
|
|
1075
|
-
}), Yt("selectDatapoint", {
|
|
1076
|
-
datapoint: e,
|
|
1077
|
-
index: t
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
let fn = v(() => Array.isArray(P.value.style.line.dashIndices) && P.value.style.line.dashIndices.length > 0), pn = v(() => Q.value ? "" : ee(J.value)), mn = v(() => Q.value ? "" : i(J.value)), hn = v(() => Q.value || !fn.value ? [] : a(J.value, P.value.style.line.dashIndices)), gn = v(() => Q.value || !fn.value ? [] : c(J.value, P.value.style.line.dashIndices)), _n = v(() => Q.value || !P.value.gradientPath.show || P.value.temperatureColors.show ? "" : `M ${(P.value.style.line.smooth ? pn.value : mn.value) || "0,0"}`), $ = v(() => !P.value.temperatureColors.show || nt.value || !P.value.temperatureColors.colors.length ? null : P.value.temperatureColors.colors.map((e) => ie(e)));
|
|
1081
|
-
O(() => [
|
|
1082
|
-
Qe.value,
|
|
1083
|
-
Wt.value,
|
|
1084
|
-
J.value.length,
|
|
1085
|
-
K.value.width,
|
|
1086
|
-
K.value.height,
|
|
1087
|
-
P.value?.style?.line?.smooth
|
|
1088
|
-
], async () => {
|
|
1089
|
-
await S(), $e();
|
|
1090
|
-
}, { immediate: !0 }), Te(async () => {
|
|
1091
|
-
await S(), $e();
|
|
1092
|
-
}), O(() => F.value, async (e) => {
|
|
1093
|
-
e || await Kt();
|
|
1094
|
-
}), O(() => W.value, async (e) => {
|
|
1095
|
-
e || F.value || await Kt();
|
|
1096
|
-
}), O(() => k.selectedIndex, (e) => {
|
|
1097
|
-
if (e == null) {
|
|
1098
|
-
N.value = null, M.value = null, Y.value = void 0;
|
|
1099
|
-
return;
|
|
1100
|
-
}
|
|
1101
|
-
if (e < 0 || e >= J.value.length) return;
|
|
1102
|
-
let t = J.value[e];
|
|
1103
|
-
t && (N.value = e, M.value = e, Y.value = t);
|
|
1104
|
-
});
|
|
1105
|
-
let vn = T(!1);
|
|
1106
|
-
function yn() {
|
|
1107
|
-
let e = on.value;
|
|
1108
|
-
if (e !== null && e >= 0 && e < J.value.length) {
|
|
1109
|
-
let t = J.value[e];
|
|
1110
|
-
if (t) {
|
|
1111
|
-
M.value = e, Y.value = t, N.value = e, vn.value = !0;
|
|
1112
|
-
return;
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
M.value = null, !Y.value && J.value.length && cn(J.value.at(-1), J.value.length - 1), vn.value = !0;
|
|
1116
|
-
}
|
|
1117
|
-
function bn() {
|
|
1118
|
-
X.value = Y.value, (k.selectedIndex === void 0 || k.selectedIndex === null) && (M.value = null, Y.value = void 0, N.value = null, Yt("hoverIndex", { index: void 0 })), vn.value = !1;
|
|
1119
|
-
}
|
|
1120
|
-
function xn(e) {
|
|
1121
|
-
if (!L.value || document.activeElement !== L.value) return;
|
|
1122
|
-
X.value = Y.value;
|
|
1123
|
-
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1124
|
-
if (!t && !n) return;
|
|
1125
|
-
let r = J.value.length;
|
|
1126
|
-
if (!r) return;
|
|
1127
|
-
e.preventDefault(), e.stopPropagation();
|
|
1128
|
-
let i = M.value, a = i !== null && i >= 0 && i < r, o = Y.value ? J.value.findIndex((e) => e.id === Y.value.id) : -1;
|
|
1129
|
-
a ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : o !== null && o >= 0 && o < r ? (i = n ? o + 1 : o - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1;
|
|
1130
|
-
let s = J.value[i];
|
|
1131
|
-
s && (M.value = i, cn(s, i));
|
|
1132
|
-
}
|
|
1133
|
-
let Sn = v(() => ({
|
|
1134
|
-
headers: [P.value.translations.period, P.value.translations.value],
|
|
1135
|
-
rows: J.value.map((e) => [e.period, e.absoluteValue])
|
|
1136
|
-
}));
|
|
1137
|
-
return (r, i) => (w(), b("div", {
|
|
1138
|
-
ref_key: "sparklineChart",
|
|
1139
|
-
ref: j,
|
|
1140
|
-
class: "vue-data-ui-component vue-ui-sparkline",
|
|
1141
|
-
id: A.value,
|
|
1142
|
-
style: C(`width:100%;font-family:${P.value.style.fontFamily};`)
|
|
1143
|
-
}, [
|
|
1144
|
-
x("p", {
|
|
1145
|
-
id: `chart-instructions-${A.value}`,
|
|
1146
|
-
class: "sr-only"
|
|
1147
|
-
}, Oe(P.value.a11y.translations.keyboardNavigation), 9, dt),
|
|
1148
|
-
Sn.value?.rows?.length ? (w(), ve(me, {
|
|
1149
|
-
key: 0,
|
|
1150
|
-
uid: A.value,
|
|
1151
|
-
head: Sn.value.headers,
|
|
1152
|
-
body: Sn.value.rows,
|
|
1153
|
-
notice: P.value.a11y.translations.tableAvailable,
|
|
1154
|
-
caption: P.value.a11y.translations.tableCaption
|
|
1155
|
-
}, null, 8, [
|
|
1156
|
-
"uid",
|
|
1157
|
-
"head",
|
|
1158
|
-
"body",
|
|
1159
|
-
"notice",
|
|
1160
|
-
"caption"
|
|
1161
|
-
])) : y("", !0),
|
|
1162
|
-
E(r.$slots, "before", Ce(Se({
|
|
1163
|
-
selected: Y.value,
|
|
1164
|
-
latest: Z.value.latest,
|
|
1165
|
-
sum: Z.value.sum,
|
|
1166
|
-
average: Z.value.average,
|
|
1167
|
-
median: Z.value.median,
|
|
1168
|
-
trend: Z.value.trend
|
|
1169
|
-
})), void 0, !0),
|
|
1170
|
-
P.value.style.title.show && e.showInfo ? (w(), b("div", {
|
|
1171
|
-
key: 1,
|
|
1172
|
-
ref_key: "chartTitle",
|
|
1173
|
-
ref: Be,
|
|
1174
|
-
class: "vue-ui-sparkline-title",
|
|
1175
|
-
style: C(`display:flex;align-items:center;width:100%;color:${P.value.style.title.color};background:${P.value.style.backgroundColor};justify-content:${P.value.style.title.textAlign === "left" ? "flex-start" : P.value.style.title.textAlign === "right" ? "flex-end" : "center"};height:${P.value.style.title.fontSize * 2}px;font-size:${P.value.style.title.fontSize}px;font-weight:${P.value.style.title.bold ? "bold" : "normal"};`)
|
|
1176
|
-
}, [x("span", { style: C(`padding:${P.value.style.title.textAlign === "left" ? "0 0 0 12px" : P.value.style.title.textAlign === "right" ? "0 12px 0 0" : "0"}`) }, Oe(Y.value ? Y.value.period : P.value.style.title.text), 5)], 4)) : y("", !0),
|
|
1177
|
-
x("div", ft, [(w(), b("svg", {
|
|
1178
|
-
ref_key: "svgRef",
|
|
1179
|
-
ref: L,
|
|
1180
|
-
xmlns: D(re),
|
|
1181
|
-
viewBox: `0 0 ${K.value.width} ${K.value.height}`,
|
|
1182
|
-
style: C(`background:${P.value.style.backgroundColor};overflow:visible;direction:ltr`),
|
|
1183
|
-
tabindex: "0",
|
|
1184
|
-
"aria-describedby": `chart-instructions-${A.value}`,
|
|
1185
|
-
onMouseleave: i[0] ||= (e) => X.value = void 0,
|
|
1186
|
-
onFocus: yn,
|
|
1187
|
-
onBlur: bn,
|
|
1188
|
-
onKeydown: xn
|
|
1189
|
-
}, [
|
|
1190
|
-
be(D(Me)),
|
|
1191
|
-
r.$slots["chart-background"] ? (w(), b("foreignObject", {
|
|
1192
|
-
key: 0,
|
|
1193
|
-
x: 0,
|
|
1194
|
-
y: 0,
|
|
1195
|
-
width: K.value.width <= 0 ? 10 : K.value.width,
|
|
1196
|
-
height: K.value.height <= 0 ? 10 : K.value.height,
|
|
1197
|
-
style: { pointerEvents: "none" }
|
|
1198
|
-
}, [E(r.$slots, "chart-background", {}, void 0, !0)], 8, mt)) : y("", !0),
|
|
1199
|
-
x("defs", null, [
|
|
1200
|
-
x("linearGradient", {
|
|
1201
|
-
x1: "0%",
|
|
1202
|
-
y1: "0%",
|
|
1203
|
-
x2: "100%",
|
|
1204
|
-
y2: "0%",
|
|
1205
|
-
id: `sparkline_gradient_${A.value}`
|
|
1206
|
-
}, [x("stop", {
|
|
1207
|
-
offset: "0%",
|
|
1208
|
-
"stop-color": D(m)(D(o)(P.value.style.area.color, .05), P.value.style.area.opacity)
|
|
1209
|
-
}, null, 8, gt), x("stop", {
|
|
1210
|
-
offset: "100%",
|
|
1211
|
-
"stop-color": D(m)(P.value.style.area.color, P.value.style.area.opacity)
|
|
1212
|
-
}, null, 8, _t)], 8, ht),
|
|
1213
|
-
x("linearGradient", {
|
|
1214
|
-
x2: "0%",
|
|
1215
|
-
y2: "100%",
|
|
1216
|
-
id: `sparkline_bar_gradient_pos_${A.value}`
|
|
1217
|
-
}, [x("stop", {
|
|
1218
|
-
offset: "0%",
|
|
1219
|
-
"stop-color": P.value.style.bar.color
|
|
1220
|
-
}, null, 8, yt), x("stop", {
|
|
1221
|
-
offset: "100%",
|
|
1222
|
-
"stop-color": D(o)(P.value.style.bar.color, .05)
|
|
1223
|
-
}, null, 8, bt)], 8, vt),
|
|
1224
|
-
x("linearGradient", {
|
|
1225
|
-
x2: "0%",
|
|
1226
|
-
y2: "100%",
|
|
1227
|
-
id: `sparkline_bar_gradient_neg_${A.value}`
|
|
1228
|
-
}, [x("stop", {
|
|
1229
|
-
offset: "0%",
|
|
1230
|
-
"stop-color": D(o)(P.value.style.bar.color, .05)
|
|
1231
|
-
}, null, 8, St), x("stop", {
|
|
1232
|
-
offset: "100%",
|
|
1233
|
-
"stop-color": P.value.style.bar.color
|
|
1234
|
-
}, null, 8, Ct)], 8, xt),
|
|
1235
|
-
x("filter", {
|
|
1236
|
-
id: `sparkline_pulse_glow_${A.value}`,
|
|
1237
|
-
filterUnits: "userSpaceOnUse",
|
|
1238
|
-
x: "-50",
|
|
1239
|
-
y: "-50",
|
|
1240
|
-
width: "100",
|
|
1241
|
-
height: "100"
|
|
1242
|
-
}, [...i[1] ||= [x("feGaussianBlur", {
|
|
1243
|
-
in: "SourceGraphic",
|
|
1244
|
-
stdDeviation: "3",
|
|
1245
|
-
result: "blur"
|
|
1246
|
-
}, null, -1), x("feMerge", null, [x("feMergeNode", { in: "blur" }), x("feMergeNode", { in: "SourceGraphic" })], -1)]], 8, wt),
|
|
1247
|
-
P.value.temperatureColors.show && $.value && !nt.value ? (w(), b("linearGradient", {
|
|
1248
|
-
key: 0,
|
|
1249
|
-
id: `temperature_grad_sparkline_${A.value}`,
|
|
1250
|
-
gradientTransform: "rotate(90)"
|
|
1251
|
-
}, [(w(!0), b(_, null, Ee($.value, (e, n) => (w(), b("stop", {
|
|
1252
|
-
key: `temperature_grad_stop_${n}_${A.value}`,
|
|
1253
|
-
"stop-color": e,
|
|
1254
|
-
offset: D(t)(n, $.value.length)
|
|
1255
|
-
}, null, 8, Et))), 128))], 8, Tt)) : y("", !0)
|
|
1256
|
-
]),
|
|
1257
|
-
P.value.style.area.show && !Q.value && J.value[0] && J.value.length > 1 ? (w(), b("g", Dt, [P.value.style.line.smooth ? (w(), b("path", {
|
|
1258
|
-
key: 0,
|
|
1259
|
-
class: "vue-ui-sparkline-area",
|
|
1260
|
-
d: `M ${J.value[0].x},${q.value.bottom} ${D(ee)(J.value)} L ${J.value.at(-1).x},${q.value.bottom} Z`,
|
|
1261
|
-
fill: P.value.style.area.useGradient ? `url(#sparkline_gradient_${A.value})` : D(m)(P.value.style.area.color, P.value.style.area.opacity),
|
|
1262
|
-
"stroke-linecap": "round",
|
|
1263
|
-
"stroke-linejoin": "round",
|
|
1264
|
-
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1265
|
-
}, null, 12, Ot)) : (w(), b("path", {
|
|
1266
|
-
key: 1,
|
|
1267
|
-
class: "vue-ui-sparkline-area",
|
|
1268
|
-
d: `M${sn.value}Z`,
|
|
1269
|
-
fill: P.value.style.area.useGradient ? `url(#sparkline_gradient_${A.value})` : D(m)(P.value.style.area.color, P.value.style.area.opacity),
|
|
1270
|
-
"stroke-linecap": "round",
|
|
1271
|
-
"stroke-linejoin": "round",
|
|
1272
|
-
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1273
|
-
}, null, 12, kt))])) : y("", !0),
|
|
1274
|
-
P.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 2 }, [x("path", {
|
|
1275
|
-
id: Wt.value,
|
|
1276
|
-
d: `M ${pn.value || "0,0"}`,
|
|
1277
|
-
fill: "none",
|
|
1278
|
-
stroke: "transparent",
|
|
1279
|
-
"stroke-width": P.value.style.line.strokeWidth,
|
|
1280
|
-
"stroke-linecap": "round",
|
|
1281
|
-
"stroke-linejoin": "round"
|
|
1282
|
-
}, null, 8, At), fn.value ? (w(!0), b(_, { key: 0 }, Ee(hn.value, (e) => (w(), b("path", {
|
|
1283
|
-
key: e.path,
|
|
1284
|
-
class: "vue-ui-sparkline-path",
|
|
1285
|
-
d: `M ${e.path}`,
|
|
1286
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1287
|
-
fill: "none",
|
|
1288
|
-
"stroke-width": P.value.style.line.strokeWidth,
|
|
1289
|
-
"stroke-linecap": "round",
|
|
1290
|
-
"stroke-linejoin": "round",
|
|
1291
|
-
"stroke-dasharray": e.dashed ? P.value.style.line.dashArray : 0,
|
|
1292
|
-
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1293
|
-
}, null, 12, jt))), 128)) : (w(), b("path", {
|
|
1294
|
-
key: 1,
|
|
1295
|
-
class: "vue-ui-sparkline-path",
|
|
1296
|
-
d: `M ${pn.value || "0,0"}`,
|
|
1297
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1298
|
-
fill: "none",
|
|
1299
|
-
"stroke-width": P.value.style.line.strokeWidth,
|
|
1300
|
-
"stroke-linecap": "round",
|
|
1301
|
-
"stroke-linejoin": "round",
|
|
1302
|
-
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1303
|
-
}, null, 12, Mt))], 64)) : y("", !0),
|
|
1304
|
-
!P.value.style.line.smooth && !Q.value ? (w(), b(_, { key: 3 }, [x("path", {
|
|
1305
|
-
id: Wt.value,
|
|
1306
|
-
d: `M ${mn.value || "0,0"}`,
|
|
1307
|
-
fill: "none",
|
|
1308
|
-
stroke: "transparent",
|
|
1309
|
-
"stroke-width": P.value.style.line.strokeWidth,
|
|
1310
|
-
"stroke-linecap": "round",
|
|
1311
|
-
"stroke-linejoin": "round"
|
|
1312
|
-
}, null, 8, Nt), fn.value ? (w(!0), b(_, { key: 0 }, Ee(gn.value, (e) => (w(), b("path", {
|
|
1313
|
-
key: e.path,
|
|
1314
|
-
class: "vue-ui-sparkline-path",
|
|
1315
|
-
d: `M ${e.path}`,
|
|
1316
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1317
|
-
fill: "none",
|
|
1318
|
-
"stroke-width": P.value.style.line.strokeWidth,
|
|
1319
|
-
"stroke-linecap": "round",
|
|
1320
|
-
"stroke-linejoin": "round",
|
|
1321
|
-
"stroke-dasharray": e.dashed ? P.value.style.line.dashArray * 2 : 0,
|
|
1322
|
-
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1323
|
-
}, null, 12, Pt))), 128)) : (w(), b("path", {
|
|
1324
|
-
key: 1,
|
|
1325
|
-
class: "vue-ui-sparkline-path",
|
|
1326
|
-
d: `M ${mn.value || "0,0"}`,
|
|
1327
|
-
stroke: $.value ? `url(#temperature_grad_sparkline_${A.value})` : P.value.style.line.color,
|
|
1328
|
-
fill: "none",
|
|
1329
|
-
"stroke-width": P.value.style.line.strokeWidth,
|
|
1330
|
-
"stroke-linecap": "round",
|
|
1331
|
-
"stroke-linejoin": "round",
|
|
1332
|
-
style: C({ transition: D(F) ? void 0 : "all 0.2s" })
|
|
1333
|
-
}, null, 12, Ft))], 64)) : y("", !0),
|
|
1334
|
-
_n.value && !$.value ? (w(), ve(ct, {
|
|
1335
|
-
key: 4,
|
|
1336
|
-
svgPathData: _n.value,
|
|
1337
|
-
enabled: P.value.gradientPath.show && !Q.value && !$.value,
|
|
1338
|
-
strokeWidth: P.value.style.line.strokeWidth,
|
|
1339
|
-
highColor: P.value.gradientPath.colors.high,
|
|
1340
|
-
lowColor: P.value.gradientPath.colors.low,
|
|
1341
|
-
segments: P.value.gradientPath.segments
|
|
1342
|
-
}, null, 8, [
|
|
1343
|
-
"svgPathData",
|
|
1344
|
-
"enabled",
|
|
1345
|
-
"strokeWidth",
|
|
1346
|
-
"highColor",
|
|
1347
|
-
"lowColor",
|
|
1348
|
-
"segments"
|
|
1349
|
-
])) : y("", !0),
|
|
1350
|
-
Gt.value && Qe.value ? (w(), ve(ze, {
|
|
1351
|
-
key: 5,
|
|
1352
|
-
uid: A.value,
|
|
1353
|
-
svgRef: D(L),
|
|
1354
|
-
pulsePathId: Wt.value,
|
|
1355
|
-
pulsePathLength: Ke.value,
|
|
1356
|
-
pulseDur: Ge.value,
|
|
1357
|
-
pulseBegin: qe.value,
|
|
1358
|
-
pulseRepeatCount: Ye.value,
|
|
1359
|
-
pulseFillMode: Xe.value,
|
|
1360
|
-
pulseKeyPoints: Je.value,
|
|
1361
|
-
pulseMotion: et.value,
|
|
1362
|
-
pulse: z.value,
|
|
1363
|
-
pulseTrail: tt.value,
|
|
1364
|
-
pulseTrailLength: Ze.value,
|
|
1365
|
-
prefersReducedMotion: D(Le),
|
|
1366
|
-
loading: D(F),
|
|
1367
|
-
isBar: Q.value
|
|
1368
|
-
}, null, 8, [
|
|
1369
|
-
"uid",
|
|
1370
|
-
"svgRef",
|
|
1371
|
-
"pulsePathId",
|
|
1372
|
-
"pulsePathLength",
|
|
1373
|
-
"pulseDur",
|
|
1374
|
-
"pulseBegin",
|
|
1375
|
-
"pulseRepeatCount",
|
|
1376
|
-
"pulseFillMode",
|
|
1377
|
-
"pulseKeyPoints",
|
|
1378
|
-
"pulseMotion",
|
|
1379
|
-
"pulse",
|
|
1380
|
-
"pulseTrail",
|
|
1381
|
-
"pulseTrailLength",
|
|
1382
|
-
"prefersReducedMotion",
|
|
1383
|
-
"loading",
|
|
1384
|
-
"isBar"
|
|
1385
|
-
])) : y("", !0),
|
|
1386
|
-
(w(!0), b(_, null, Ee(J.value, (e, t) => (w(), b("g", null, [Q.value ? (w(), b("rect", {
|
|
1387
|
-
key: 0,
|
|
1388
|
-
x: e.x - e.width / 2,
|
|
1389
|
-
y: isNaN(e.absoluteValue > 0 ? e.y : en.value) ? 0 : e.absoluteValue > 0 ? e.y : en.value,
|
|
1390
|
-
width: e.width,
|
|
1391
|
-
height: isNaN(Math.abs(e.y - en.value)) ? 0 : Math.abs(e.y - en.value),
|
|
1392
|
-
fill: e.absoluteValue > 0 ? `url(#sparkline_bar_gradient_pos_${A.value})` : `url(#sparkline_bar_gradient_neg_${A.value})`,
|
|
1393
|
-
rx: P.value.style.bar.borderRadius
|
|
1394
|
-
}, null, 8, It)) : y("", !0), P.value.style.verticalIndicator.show && (Y.value && e.id === Y.value.id || on.value === t) ? (w(), b("line", {
|
|
1395
|
-
key: 1,
|
|
1396
|
-
x1: e.x,
|
|
1397
|
-
x2: e.x,
|
|
1398
|
-
y1: q.value.top - 6,
|
|
1399
|
-
y2: q.value.bottom,
|
|
1400
|
-
stroke: P.value.style.verticalIndicator.color || e.color,
|
|
1401
|
-
"stroke-width": P.value.style.verticalIndicator.strokeWidth,
|
|
1402
|
-
"stroke-linecap": "round",
|
|
1403
|
-
"stroke-dasharray": P.value.style.verticalIndicator.strokeDasharray || 0
|
|
1404
|
-
}, null, 8, Lt)) : y("", !0)]))), 256)),
|
|
1405
|
-
Xt.value < 0 ? (w(), b("line", {
|
|
1406
|
-
key: 6,
|
|
1407
|
-
x1: q.value.start,
|
|
1408
|
-
x2: q.value.start + q.value.width,
|
|
1409
|
-
y1: D(d)(en.value, q.value.bottom),
|
|
1410
|
-
y2: D(d)(en.value, q.value.bottom),
|
|
1411
|
-
stroke: P.value.style.zeroLine.color,
|
|
1412
|
-
"stroke-dasharray": P.value.style.zeroLine.strokeWidth * 2,
|
|
1413
|
-
"stroke-width": P.value.style.zeroLine.strokeWidth,
|
|
1414
|
-
"stroke-linecap": "round"
|
|
1415
|
-
}, null, 8, Rt)) : y("", !0),
|
|
1416
|
-
P.value.style.plot.show ? (w(!0), b(_, { key: 7 }, Ee(J.value, (t, n) => (w(), b("g", null, [Y.value && t.id === Y.value.id || e.selectedIndex === n || D(I).length === 1 ? (w(), b("circle", {
|
|
1417
|
-
key: 0,
|
|
1418
|
-
cx: t.x,
|
|
1419
|
-
cy: t.y,
|
|
1420
|
-
r: P.value.style.plot.radius,
|
|
1421
|
-
fill: t.color,
|
|
1422
|
-
stroke: P.value.style.plot.stroke,
|
|
1423
|
-
"stroke-width": P.value.style.plot.strokeWidth
|
|
1424
|
-
}, null, 8, zt)) : y("", !0)]))), 256)) : y("", !0),
|
|
1425
|
-
e.showInfo && P.value.style.dataLabel.show ? (w(), b("text", {
|
|
1426
|
-
key: 8,
|
|
1427
|
-
x: P.value.style.dataLabel.position === "left" ? 12 + P.value.style.dataLabel.offsetX : q.value.width + 12 + P.value.style.dataLabel.offsetX,
|
|
1428
|
-
y: K.value.height / 2 + P.value.style.dataLabel.fontSize / 2.5 + P.value.style.dataLabel.offsetY,
|
|
1429
|
-
"font-size": P.value.style.dataLabel.fontSize,
|
|
1430
|
-
"font-weight": P.value.style.dataLabel.bold ? "bold" : "normal",
|
|
1431
|
-
fill: P.value.style.dataLabel.color
|
|
1432
|
-
}, Oe(Y.value ? D(p)(P.value.style.dataLabel.formatter, Y.value.absoluteValue, D(n)({
|
|
1433
|
-
p: P.value.style.dataLabel.prefix,
|
|
1434
|
-
v: Y.value.absoluteValue,
|
|
1435
|
-
s: P.value.style.dataLabel.suffix,
|
|
1436
|
-
r: P.value.style.dataLabel.roundingValue
|
|
1437
|
-
}), { datapoint: Y.value }) : D(p)(P.value.style.dataLabel.formatter, un.value, D(n)({
|
|
1438
|
-
p: P.value.style.dataLabel.prefix,
|
|
1439
|
-
v: un.value,
|
|
1440
|
-
s: P.value.style.dataLabel.suffix,
|
|
1441
|
-
r: P.value.style.dataLabel.roundingValue
|
|
1442
|
-
}))), 9, Bt)) : y("", !0),
|
|
1443
|
-
(w(!0), b(_, null, Ee(J.value, (e, t) => (w(), b("rect", {
|
|
1444
|
-
x: e.x - (q.value.width / (nn.value + 1) > K.value.padding ? K.value.padding : q.value.width / (nn.value + 1)) / 2,
|
|
1445
|
-
y: q.value.top - 6,
|
|
1446
|
-
height: q.value.height + 6,
|
|
1447
|
-
width: q.value.width / (nn.value + 1) > K.value.padding ? K.value.padding : q.value.width / (nn.value + 1),
|
|
1448
|
-
fill: "transparent",
|
|
1449
|
-
onMouseenter: () => cn(e, t),
|
|
1450
|
-
onMouseleave: () => ln(e, t),
|
|
1451
|
-
onClick: () => dn(e, t)
|
|
1452
|
-
}, null, 40, Vt))), 256)),
|
|
1453
|
-
E(r.$slots, "svg", { svg: K.value }, void 0, !0)
|
|
1454
|
-
], 44, pt)), r.$slots.hint ? (w(), b("div", Ht, [E(r.$slots, "hint", Ce(Se({
|
|
1455
|
-
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1456
|
-
isVisible: vn.value
|
|
1457
|
-
})), void 0, !0)])) : y("", !0)]),
|
|
1458
|
-
Y.value && P.value.style.tooltip.show ? (w(), ve(D(Ne), {
|
|
1459
|
-
key: 2,
|
|
1460
|
-
x: Y.value.x,
|
|
1461
|
-
y: Y.value.y,
|
|
1462
|
-
prevX: X.value.x,
|
|
1463
|
-
prevY: X.value.y,
|
|
1464
|
-
offsetY: P.value.style.plot.radius * 3 + P.value.style.tooltip.offsetY,
|
|
1465
|
-
svgRef: D(L),
|
|
1466
|
-
background: P.value.style.tooltip.backgroundColor,
|
|
1467
|
-
color: P.value.style.tooltip.color,
|
|
1468
|
-
fontSize: P.value.style.tooltip.fontSize,
|
|
1469
|
-
borderWidth: P.value.style.tooltip.borderWidth,
|
|
1470
|
-
borderColor: P.value.style.tooltip.borderColor,
|
|
1471
|
-
borderRadius: P.value.style.tooltip.borderRadius,
|
|
1472
|
-
backgroundOpacity: P.value.style.tooltip.backgroundOpacity
|
|
1473
|
-
}, {
|
|
1474
|
-
default: je(() => [E(r.$slots, "tooltip", Ce(Se({ ...Y.value })), () => [ye(Oe(Y.value.period) + ": " + Oe(D(p)(P.value.style.dataLabel.formatter, Y.value.absoluteValue, D(n)({
|
|
1475
|
-
p: P.value.style.dataLabel.prefix,
|
|
1476
|
-
v: Y.value.absoluteValue,
|
|
1477
|
-
s: P.value.style.dataLabel.suffix,
|
|
1478
|
-
r: P.value.style.dataLabel.roundingValue
|
|
1479
|
-
}), { datapoint: Y.value })), 1)], !0)]),
|
|
1480
|
-
_: 3
|
|
1481
|
-
}, 8, [
|
|
1482
|
-
"x",
|
|
1483
|
-
"y",
|
|
1484
|
-
"prevX",
|
|
1485
|
-
"prevY",
|
|
1486
|
-
"offsetY",
|
|
1487
|
-
"svgRef",
|
|
1488
|
-
"background",
|
|
1489
|
-
"color",
|
|
1490
|
-
"fontSize",
|
|
1491
|
-
"borderWidth",
|
|
1492
|
-
"borderColor",
|
|
1493
|
-
"borderRadius",
|
|
1494
|
-
"backgroundOpacity"
|
|
1495
|
-
])) : y("", !0),
|
|
1496
|
-
r.$slots.source ? (w(), b("div", {
|
|
1497
|
-
key: 3,
|
|
1498
|
-
ref_key: "source",
|
|
1499
|
-
ref: Ve,
|
|
1500
|
-
dir: "auto"
|
|
1501
|
-
}, [E(r.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
1502
|
-
E(r.$slots, "skeleton", {}, () => [D(F) ? (w(), ve(le, { key: 0 })) : y("", !0)], !0)
|
|
1503
|
-
], 12, ut));
|
|
1504
|
-
}
|
|
1505
|
-
}, [["__scopeId", "data-v-274de18b"]]);
|
|
1506
|
-
//#endregion
|
|
1507
|
-
export { lt as n, Ut as t };
|