vue-data-ui 3.20.0 → 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-BCbtxMU6.js +0 -45
- package/dist/Arrow-D6j6ocXm.js +0 -116
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +0 -272
- package/dist/BaseIcon-DfLoHNUj.js +0 -502
- package/dist/BaseLegendToggle-C_Db-y7s.js +0 -56
- package/dist/BaseScanner-Dr2a1Msy.js +0 -27
- package/dist/BaseZoomControls-CG7hI_1P.js +0 -111
- package/dist/ColorPicker-Bjwxnvfh.js +0 -255
- package/dist/DataTable-B--IN22e.js +0 -150
- package/dist/Legend-Cz2uQ5gs.js +0 -114
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +0 -577
- package/dist/PackageVersion-xcyrdRmY.js +0 -11
- package/dist/PenAndPaper-DqrClVfb.js +0 -461
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-BPCJfphn.js +0 -141
- package/dist/Slicer-SHBj0VaV.js +0 -1144
- package/dist/SlicerPreview-DdihbUSJ.js +0 -1668
- package/dist/SparkTooltip-CfE6yCad.js +0 -93
- package/dist/Title-NWp4qB4K.js +0 -87
- package/dist/Tooltip-BENq327o.js +0 -312
- package/dist/UserOptions-C1NgoGu6.js +0 -1411
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/canvas-lib-BOP_HS11.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-BYtB4BF3.js +0 -237
- package/dist/exposedLib-CI8ji8G-.js +0 -19
- package/dist/geoProjections-Czak6Jn1.js +0 -145
- package/dist/img-1cKsci8e.js +0 -74
- package/dist/labelUtils-CUctkYoA.js +0 -19
- package/dist/lib-DUeYQsS0.js +0 -1882
- package/dist/llms.txt +0 -232
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-D0eZ99cP.js +0 -90
- package/dist/rolldown-runtime-Dy4uBu1J.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 -17190
- package/dist/types/vue-ui-3d-bar.d.ts +0 -93
- package/dist/types/vue-ui-accordion.d.ts +0 -11
- package/dist/types/vue-ui-age-pyramid.d.ts +0 -108
- package/dist/types/vue-ui-annotator.d.ts +0 -34
- package/dist/types/vue-ui-bullet.d.ts +0 -85
- package/dist/types/vue-ui-bump.d.ts +0 -92
- package/dist/types/vue-ui-candlestick.d.ts +0 -106
- package/dist/types/vue-ui-carousel-table.d.ts +0 -59
- package/dist/types/vue-ui-chestnut.d.ts +0 -98
- package/dist/types/vue-ui-chord.d.ts +0 -110
- package/dist/types/vue-ui-circle-pack.d.ts +0 -126
- package/dist/types/vue-ui-cursor.d.ts +0 -9
- package/dist/types/vue-ui-dag.d.ts +0 -125
- package/dist/types/vue-ui-dashboard.d.ts +0 -68
- package/dist/types/vue-ui-digits.d.ts +0 -12
- package/dist/types/vue-ui-donut-evolution.d.ts +0 -96
- package/dist/types/vue-ui-donut.d.ts +0 -123
- package/dist/types/vue-ui-dumbbell.d.ts +0 -94
- package/dist/types/vue-ui-flow.d.ts +0 -106
- package/dist/types/vue-ui-funnel.d.ts +0 -79
- package/dist/types/vue-ui-galaxy.d.ts +0 -114
- package/dist/types/vue-ui-gauge.d.ts +0 -89
- package/dist/types/vue-ui-geo.d.ts +0 -94
- package/dist/types/vue-ui-gizmo.d.ts +0 -22
- package/dist/types/vue-ui-heatmap.d.ts +0 -101
- package/dist/types/vue-ui-history-plot.d.ts +0 -114
- package/dist/types/vue-ui-horizontal-bar.d.ts +0 -116
- 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 -112
- package/dist/types/vue-ui-mood-radar.d.ts +0 -92
- package/dist/types/vue-ui-nested-donuts.d.ts +0 -111
- package/dist/types/vue-ui-onion.d.ts +0 -106
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -125
- 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 -125
- package/dist/types/vue-ui-quick-chart.d.ts +0 -108
- package/dist/types/vue-ui-radar.d.ts +0 -116
- package/dist/types/vue-ui-rating.d.ts +0 -42
- package/dist/types/vue-ui-relation-circle.d.ts +0 -92
- package/dist/types/vue-ui-ridgeline.d.ts +0 -106
- package/dist/types/vue-ui-rings.d.ts +0 -98
- package/dist/types/vue-ui-scatter.d.ts +0 -97
- package/dist/types/vue-ui-skeleton.d.ts +0 -11
- package/dist/types/vue-ui-smiley.d.ts +0 -28
- package/dist/types/vue-ui-spark-trend.d.ts +0 -19
- package/dist/types/vue-ui-sparkbar.d.ts +0 -49
- package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
- package/dist/types/vue-ui-sparkhistogram.d.ts +0 -46
- package/dist/types/vue-ui-sparkline.d.ts +0 -59
- package/dist/types/vue-ui-sparkstackbar.d.ts +0 -60
- package/dist/types/vue-ui-stackbar.d.ts +0 -118
- package/dist/types/vue-ui-stackline.d.ts +0 -114
- package/dist/types/vue-ui-strip-plot.d.ts +0 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
- package/dist/types/vue-ui-table-sparkline.d.ts +0 -53
- package/dist/types/vue-ui-table.d.ts +0 -38
- package/dist/types/vue-ui-thermometer.d.ts +0 -70
- package/dist/types/vue-ui-timer.d.ts +0 -49
- package/dist/types/vue-ui-tiremarks.d.ts +0 -70
- package/dist/types/vue-ui-treemap.d.ts +0 -104
- package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
- package/dist/types/vue-ui-waffle.d.ts +0 -101
- package/dist/types/vue-ui-wheel.d.ts +0 -70
- package/dist/types/vue-ui-word-cloud.d.ts +0 -97
- package/dist/types/vue-ui-world.d.ts +0 -98
- package/dist/types/vue-ui-xy-canvas.d.ts +0 -101
- package/dist/types/vue-ui-xy.d.ts +0 -146
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +0 -50
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useConfig-DAyQk86L.js +0 -7479
- package/dist/useFitSvgText-CT3nmlaS.js +0 -63
- package/dist/useNestedProp-CNcoy38D.js +0 -10
- package/dist/useObjectBindings-BI7hP-BC.js +0 -189
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-C1Gqt_Sp.js +0 -49
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useSvgExport-SVIsDot8.js +0 -755
- package/dist/useTableResponsive-B24Uwt2E.js +0 -24
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-BmBRv27Y.js +0 -272
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/utils.js +0 -28
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-qpQv-4uP.js +0 -274
- package/dist/vue-data-ui.js +0 -76
- package/dist/vue-ui-3d-bar-C8cputoI.js +0 -1757
- package/dist/vue-ui-accordion-Dw4MHKVB.js +0 -81
- package/dist/vue-ui-age-pyramid-Cv2Ndbb5.js +0 -1238
- package/dist/vue-ui-annotator-DLPUAKlm.js +0 -2899
- package/dist/vue-ui-bullet-DLxmtMJ9.js +0 -710
- package/dist/vue-ui-bump-DVaqtZbd.js +0 -1249
- package/dist/vue-ui-candlestick-CkApimw1.js +0 -1826
- package/dist/vue-ui-carousel-table-CbfIBWl3.js +0 -455
- package/dist/vue-ui-chestnut-CQT4nCFL.js +0 -2010
- package/dist/vue-ui-chord-8IjSrg6f.js +0 -1391
- package/dist/vue-ui-circle-pack-B1CpTtpw.js +0 -1608
- package/dist/vue-ui-cursor-NaTj5i2-.js +0 -283
- package/dist/vue-ui-dag-DH4ocx0S.js +0 -2909
- package/dist/vue-ui-dashboard-Ckff1yim.js +0 -513
- package/dist/vue-ui-digits-DwLlJqbW.js +0 -209
- package/dist/vue-ui-donut-DQdIdwRU.js +0 -2410
- package/dist/vue-ui-donut-evolution-MfM5kK6w.js +0 -1510
- package/dist/vue-ui-dumbbell-B2T4vlK-.js +0 -1530
- package/dist/vue-ui-flow-CJh6f72m.js +0 -1235
- package/dist/vue-ui-funnel-C9gfXNCr.js +0 -777
- package/dist/vue-ui-galaxy-pBR_FESJ.js +0 -1077
- package/dist/vue-ui-gauge-CAemxCGl.js +0 -920
- package/dist/vue-ui-geo-BDQqaukJ.js +0 -1516
- package/dist/vue-ui-gizmo-B1ppjqPj.js +0 -225
- package/dist/vue-ui-heatmap-BiC9xp8L.js +0 -1568
- package/dist/vue-ui-history-plot-iAPjlOja.js +0 -1554
- package/dist/vue-ui-horizontal-bar-CcgClgLg.js +0 -1681
- package/dist/vue-ui-kpi-CJ5oyYLS.js +0 -96
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +0 -125
- package/dist/vue-ui-molecule-Cg9ZHa6b.js +0 -925
- package/dist/vue-ui-mood-radar-N8osOTFR.js +0 -1148
- package/dist/vue-ui-nested-donuts-CwH3wKgX.js +0 -1487
- package/dist/vue-ui-onion-C56gFjO6.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-C-jj819p.js +0 -1416
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-DYc9xZY3.js +0 -1978
- package/dist/vue-ui-quick-chart-BG7kK_-q.js +0 -2469
- package/dist/vue-ui-radar-CgKog9Xw.js +0 -1229
- package/dist/vue-ui-rating-BG4lf1z8.js +0 -343
- package/dist/vue-ui-relation-circle-D-rUk-0P.js +0 -924
- package/dist/vue-ui-ridgeline-DPrlVJTW.js +0 -1622
- package/dist/vue-ui-rings-CIvvHHsF.js +0 -1246
- package/dist/vue-ui-scatter-CeBQJbGx.js +0 -2413
- package/dist/vue-ui-skeleton-BKoa_G6d.js +0 -2556
- package/dist/vue-ui-smiley-G89TxRU-.js +0 -356
- package/dist/vue-ui-spark-trend-DGOrPr9I.js +0 -438
- package/dist/vue-ui-sparkbar-BVumo-YD.js +0 -393
- package/dist/vue-ui-sparkgauge-BoCwdQcu.js +0 -255
- package/dist/vue-ui-sparkhistogram-4qXY1LXW.js +0 -560
- package/dist/vue-ui-sparkline-C0kzXrwI.js +0 -1507
- package/dist/vue-ui-sparkstackbar-DG7hz_KM.js +0 -662
- package/dist/vue-ui-stackbar-Dnq4l5xs.js +0 -2270
- package/dist/vue-ui-stackline-CaNOHQYl.js +0 -2398
- package/dist/vue-ui-strip-plot-D2CcJw_5.js +0 -1340
- package/dist/vue-ui-table-NBQrkVnO.js +0 -1338
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +0 -344
- package/dist/vue-ui-table-sparkline-BZDkOEEl.js +0 -707
- package/dist/vue-ui-thermometer-BXyHOQ7T.js +0 -763
- package/dist/vue-ui-timer-CcLK1wbi.js +0 -439
- package/dist/vue-ui-tiremarks-B6txvBg-.js +0 -552
- package/dist/vue-ui-treemap-O3SBpD3K.js +0 -1587
- package/dist/vue-ui-waffle-DN5zG3b0.js +0 -1362
- package/dist/vue-ui-wheel-CxnJGXkX.js +0 -885
- package/dist/vue-ui-word-cloud-CM5yPCXb.js +0 -1656
- package/dist/vue-ui-world-DCPgXKxh.js +0 -14264
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +0 -1787
- package/dist/vue-ui-xy-lfMIx0wK.js +0 -4578
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +0 -301
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-J8jmJvxP.js +0 -374
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +0 -717
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +0 -139
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-auZhap6Y.js +0 -151
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-COOrQQdK.js +0 -412
- package/dist/vue_ui_stackline-DQqKPA9z.js +0 -460
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +0 -301
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DIARFc7g.js +0 -292
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-BLUkWEAm.js +0 -482
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +0 -408
|
@@ -1,1362 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { Bt as t, Ct as n, Et as r, G as i, H as a, J as o, Mt as ee, Nt as te, Rt as ne, S as re, X as ie, i as s, n as ae, nt as oe, ot as se, pt as ce, r as le, t as ue, x as de, y as fe } from "./lib-DUeYQsS0.js";
|
|
3
|
-
import { t as pe } from "./useConfig-DAyQk86L.js";
|
|
4
|
-
import { t as me } from "./usePrinter-C1Gqt_Sp.js";
|
|
5
|
-
import { n as he, t as ge } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
|
-
import { t as _e } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
-
import { t as ve } from "./useNestedProp-CNcoy38D.js";
|
|
8
|
-
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as be } from "./img-1cKsci8e.js";
|
|
10
|
-
import { n as xe } from "./Title-NWp4qB4K.js";
|
|
11
|
-
import { t as Se } from "./Shape-BPCJfphn.js";
|
|
12
|
-
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
-
import { c as we } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
-
import { t as Te } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
-
import { t as Ee } from "./BaseLegendToggle-C_Db-y7s.js";
|
|
16
|
-
import { t as De } from "./A11yDataTable-BCbtxMU6.js";
|
|
17
|
-
import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
-
import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
-
import { t as Ae } from "./labelUtils-CUctkYoA.js";
|
|
20
|
-
import { t as je } from "./Legend-Cz2uQ5gs.js";
|
|
21
|
-
import { t as Me } from "./vue_ui_waffle-DIARFc7g.js";
|
|
22
|
-
import { Fragment as c, Teleport as Ne, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as Pe, createTextVNode as Fe, createVNode as Ie, defineAsyncComponent as m, guardReactiveProps as h, mergeProps as Le, nextTick as Re, normalizeClass as ze, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as Be, onMounted as Ve, openBlock as v, ref as y, renderList as b, renderSlot as x, resolveDynamicComponent as He, shallowRef as Ue, toDisplayString as S, toRefs as We, unref as C, useSlots as Ge, watch as w, withCtx as T } from "vue";
|
|
23
|
-
//#region src/components/vue-ui-waffle.vue
|
|
24
|
-
var Ke = /* @__PURE__ */ e({ default: () => gt }), qe = ["id"], Je = ["id"], Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
|
|
25
|
-
"xmlns",
|
|
26
|
-
"aria-describedby",
|
|
27
|
-
"viewBox"
|
|
28
|
-
], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = ["id"], nt = [
|
|
29
|
-
"x",
|
|
30
|
-
"y",
|
|
31
|
-
"height",
|
|
32
|
-
"width"
|
|
33
|
-
], rt = ["height", "width"], it = { key: 0 }, at = [
|
|
34
|
-
"rx",
|
|
35
|
-
"x",
|
|
36
|
-
"y",
|
|
37
|
-
"height",
|
|
38
|
-
"width",
|
|
39
|
-
"stroke",
|
|
40
|
-
"stroke-width",
|
|
41
|
-
"filter"
|
|
42
|
-
], ot = [
|
|
43
|
-
"rx",
|
|
44
|
-
"x",
|
|
45
|
-
"y",
|
|
46
|
-
"height",
|
|
47
|
-
"width",
|
|
48
|
-
"fill",
|
|
49
|
-
"stroke",
|
|
50
|
-
"stroke-width",
|
|
51
|
-
"filter"
|
|
52
|
-
], st = { key: 1 }, ct = [
|
|
53
|
-
"rx",
|
|
54
|
-
"x",
|
|
55
|
-
"y",
|
|
56
|
-
"height",
|
|
57
|
-
"width",
|
|
58
|
-
"fill",
|
|
59
|
-
"filter"
|
|
60
|
-
], lt = [
|
|
61
|
-
"textContent",
|
|
62
|
-
"x",
|
|
63
|
-
"y",
|
|
64
|
-
"font-size",
|
|
65
|
-
"fill",
|
|
66
|
-
"filter"
|
|
67
|
-
], ut = [
|
|
68
|
-
"x",
|
|
69
|
-
"y",
|
|
70
|
-
"height",
|
|
71
|
-
"width",
|
|
72
|
-
"onMouseover",
|
|
73
|
-
"onMouseleave",
|
|
74
|
-
"onClick"
|
|
75
|
-
], dt = {
|
|
76
|
-
key: 0,
|
|
77
|
-
style: {
|
|
78
|
-
position: "absolute",
|
|
79
|
-
top: "100%",
|
|
80
|
-
left: "0",
|
|
81
|
-
width: "100%"
|
|
82
|
-
},
|
|
83
|
-
"data-dom-to-png-ignore": "",
|
|
84
|
-
"aria-hidden": "true"
|
|
85
|
-
}, ft = {
|
|
86
|
-
key: 5,
|
|
87
|
-
class: "vue-data-ui-watermark"
|
|
88
|
-
}, pt = ["id"], mt = ["onClick"], ht = ["innerHTML"], gt = /* @__PURE__ */ Ce({
|
|
89
|
-
__name: "vue-ui-waffle",
|
|
90
|
-
props: {
|
|
91
|
-
config: {
|
|
92
|
-
type: Object,
|
|
93
|
-
default() {
|
|
94
|
-
return {};
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
dataset: {
|
|
98
|
-
type: Array,
|
|
99
|
-
default() {
|
|
100
|
-
return [];
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
emits: ["selectLegend", "copyAlt"],
|
|
105
|
-
setup(e, { expose: Ce, emit: Ke }) {
|
|
106
|
-
let gt = m(() => import("./Tooltip-BENq327o.js")), _t = m(() => import("./BaseIcon-DfLoHNUj.js").then((e) => e.n)), vt = m(() => import("./DataTable-B--IN22e.js")), yt = m(() => import("./vue-ui-accordion-Dw4MHKVB.js").then((e) => e.n)), bt = m(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), xt = m(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), St = m(() => import("./PackageVersion-xcyrdRmY.js").then((e) => e.t)), Ct = m(() => import("./BaseDraggableDialog-4hDW-Rj2.js").then((e) => e.n)), { vue_ui_waffle: wt } = pe(), { isThemeValid: Tt, warnInvalidTheme: Et } = ye(), E = e, Dt = Ge(), Ot = l({
|
|
107
|
-
get() {
|
|
108
|
-
return !!E.dataset && E.dataset.length;
|
|
109
|
-
},
|
|
110
|
-
set(e) {
|
|
111
|
-
return e;
|
|
112
|
-
}
|
|
113
|
-
}), D = y(a()), O = y(!1), kt = y(""), k = y(null), At = y(0), A = y(null), jt = y(null), Mt = y(null), Nt = y(null), Pt = y(null), Ft = y(0), It = y(0), Lt = y(0), Rt = y(!1), zt = y(null), Bt = y(null), Vt = y(!1), Ht = y(!1), j = y(null), Ut = y({
|
|
114
|
-
x: 0,
|
|
115
|
-
y: 0
|
|
116
|
-
}), Wt = y("pointer"), Gt = y(!1), M = y($t()), N = l(() => M.value.userOptions.useCursorPointer), Kt = l(() => t({
|
|
117
|
-
defaultConfig: {
|
|
118
|
-
useCustomCells: !1,
|
|
119
|
-
userOptions: { show: !1 },
|
|
120
|
-
table: { show: !1 },
|
|
121
|
-
style: { chart: {
|
|
122
|
-
backgroundColor: "#99999930",
|
|
123
|
-
layout: {
|
|
124
|
-
labels: { captions: { show: !1 } },
|
|
125
|
-
rect: { stroke: "#999999" }
|
|
126
|
-
},
|
|
127
|
-
legend: {
|
|
128
|
-
backgroundColor: "transparent",
|
|
129
|
-
showValue: !1,
|
|
130
|
-
showPercentage: !1
|
|
131
|
-
}
|
|
132
|
-
} }
|
|
133
|
-
},
|
|
134
|
-
userConfig: M.value.skeletonConfig ?? {}
|
|
135
|
-
})), { loading: qt, FINAL_DATASET: Jt, manualLoading: Yt } = he({
|
|
136
|
-
...We(E),
|
|
137
|
-
FINAL_CONFIG: M,
|
|
138
|
-
prepareConfig: $t,
|
|
139
|
-
callback: () => {
|
|
140
|
-
Promise.resolve().then(async () => {
|
|
141
|
-
H.value = pn();
|
|
142
|
-
});
|
|
143
|
-
},
|
|
144
|
-
skeletonDataset: E.config?.skeletonDataset ?? [
|
|
145
|
-
{
|
|
146
|
-
name: "",
|
|
147
|
-
values: [1],
|
|
148
|
-
color: "#AAAAAA"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
name: "",
|
|
152
|
-
values: [1],
|
|
153
|
-
color: "#BABABA"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
name: "",
|
|
157
|
-
values: [1],
|
|
158
|
-
color: "#CACACA"
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
skeletonConfig: t({
|
|
162
|
-
defaultConfig: M.value,
|
|
163
|
-
userConfig: Kt.value
|
|
164
|
-
})
|
|
165
|
-
}), { userOptionsVisible: Xt, setUserOptionsVisibility: Zt, keepUserOptionState: Qt } = Oe({ config: M.value }), { svgRef: P } = ke({ config: M.value.style.chart.title });
|
|
166
|
-
function $t() {
|
|
167
|
-
let e = ve({
|
|
168
|
-
userConfig: E.config,
|
|
169
|
-
defaultConfig: wt
|
|
170
|
-
}), t = e.theme;
|
|
171
|
-
if (!t) return e;
|
|
172
|
-
if (!Tt.value(e)) return Et(e), e;
|
|
173
|
-
let n = ve({
|
|
174
|
-
userConfig: Me[t] || E.config,
|
|
175
|
-
defaultConfig: e
|
|
176
|
-
}), i = ve({
|
|
177
|
-
userConfig: E.config,
|
|
178
|
-
defaultConfig: n
|
|
179
|
-
});
|
|
180
|
-
return {
|
|
181
|
-
...i,
|
|
182
|
-
customPalette: i.customPalette.length ? i.customPalette : ne[t] || r
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
w(() => E.config, (e) => {
|
|
186
|
-
qt.value || (M.value = $t()), Xt.value = !M.value.userOptions.showOnChartHover, tn(), Ft.value += 1, It.value += 1, Lt.value += 1, L.value.showTable = M.value.table.show, L.value.showTooltip = M.value.style.chart.tooltip.show;
|
|
187
|
-
}, { deep: !0 });
|
|
188
|
-
let F = Ue(null), I = Ue(null), en = l(() => !!M.value.debug);
|
|
189
|
-
function tn() {
|
|
190
|
-
if (n(E.dataset) ? (ie({
|
|
191
|
-
componentName: "VueUiWaffle",
|
|
192
|
-
type: "dataset",
|
|
193
|
-
debug: en.value
|
|
194
|
-
}), Ot.value = !1, Yt.value = !0) : E.dataset.forEach((e, t) => {
|
|
195
|
-
se({
|
|
196
|
-
datasetObject: e,
|
|
197
|
-
requiredAttributes: ["name", "values"]
|
|
198
|
-
}).forEach((e) => {
|
|
199
|
-
ie({
|
|
200
|
-
componentName: "VueUiWaffle",
|
|
201
|
-
type: "datasetSerieAttribute",
|
|
202
|
-
property: e,
|
|
203
|
-
index: t,
|
|
204
|
-
debug: en.value
|
|
205
|
-
});
|
|
206
|
-
});
|
|
207
|
-
}), n(E.dataset) || (Yt.value = M.value.loading), M.value.responsive) {
|
|
208
|
-
let e = we(() => {
|
|
209
|
-
let { width: e, height: t } = Te({
|
|
210
|
-
chart: A.value,
|
|
211
|
-
title: M.value.style.chart.title.text ? jt.value : null,
|
|
212
|
-
legend: M.value.style.chart.legend.show ? Mt.value : null,
|
|
213
|
-
source: Nt.value,
|
|
214
|
-
noTitle: Pt.value
|
|
215
|
-
});
|
|
216
|
-
requestAnimationFrame(() => {
|
|
217
|
-
R.value.width = e, R.value.height = t, z.value.width = e, z.value.height = t;
|
|
218
|
-
});
|
|
219
|
-
});
|
|
220
|
-
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect()), F.value = new ResizeObserver(e), I.value = A.value.parentNode, F.value.observe(I.value);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
Ve(() => {
|
|
224
|
-
Rt.value = !0, tn();
|
|
225
|
-
}), Be(() => {
|
|
226
|
-
F.value && (I.value && F.value.unobserve(I.value), F.value.disconnect());
|
|
227
|
-
});
|
|
228
|
-
let { isPrinting: nn, isImaging: rn, generatePdf: an, generateImage: on } = me({
|
|
229
|
-
elementId: `vue-ui-waffle_${D.value}`,
|
|
230
|
-
fileName: M.value.style.chart.title.text || "vue-ui-waffle",
|
|
231
|
-
options: M.value.userOptions.print
|
|
232
|
-
}), sn = l(() => M.value.userOptions.show && !M.value.style.chart.title.text), cn = l(() => de(M.value.customPalette)), L = y({
|
|
233
|
-
showTable: M.value.table.show,
|
|
234
|
-
showTooltip: M.value.style.chart.tooltip.show
|
|
235
|
-
});
|
|
236
|
-
w(M, () => {
|
|
237
|
-
L.value = {
|
|
238
|
-
showTable: M.value.table.show,
|
|
239
|
-
showTooltip: M.value.style.chart.tooltip.show
|
|
240
|
-
};
|
|
241
|
-
}, { immediate: !0 });
|
|
242
|
-
let R = y({
|
|
243
|
-
height: 512,
|
|
244
|
-
width: 512
|
|
245
|
-
}), z = y({
|
|
246
|
-
top: 0,
|
|
247
|
-
left: 0,
|
|
248
|
-
height: 512,
|
|
249
|
-
width: 512
|
|
250
|
-
}), B = l(() => (z.value.width - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), V = l(() => (z.value.height - M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.spaceBetween) / M.value.style.chart.layout.grid.size), ln = l(() => Math.max(1e-4, z.value.width / M.value.style.chart.layout.grid.size)), un = l(() => Math.max(1e-4, z.value.height / M.value.style.chart.layout.grid.size));
|
|
251
|
-
function dn(e) {
|
|
252
|
-
let t = M.value.style.chart.layout.grid.size * M.value.style.chart.layout.grid.size, n = e.reduce((e, t) => e + t, 0), r = e.map((e) => e / n * t), i = r.map(Math.floor), a = r.map((e) => e % 1), o = t - i.reduce((e, t) => e + t, 0);
|
|
253
|
-
for (; o > 0;) {
|
|
254
|
-
let e = a.indexOf(Math.max(...a));
|
|
255
|
-
i[e] += 1, a[e] = 0, --o;
|
|
256
|
-
}
|
|
257
|
-
return i;
|
|
258
|
-
}
|
|
259
|
-
let fn = y(!1);
|
|
260
|
-
function pn() {
|
|
261
|
-
return fn.value = Jt.value.flatMap((e) => e.values.reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0) === 0, Jt.value.map((e, t) => ({
|
|
262
|
-
...e,
|
|
263
|
-
color: fe(e.color) || cn.value[t] || r[t] || r[t % r.length],
|
|
264
|
-
uid: `serie_${t}`,
|
|
265
|
-
absoluteIndex: t
|
|
266
|
-
}));
|
|
267
|
-
}
|
|
268
|
-
let mn = l(() => pn()), H = y(mn.value);
|
|
269
|
-
w(() => E.dataset, (e) => {
|
|
270
|
-
Array.isArray(e) && e.length > 0 && (Yt.value = !1);
|
|
271
|
-
}, { immediate: !0 }), w(() => E.dataset, (e) => {
|
|
272
|
-
H.value = pn();
|
|
273
|
-
}, { deep: !0 });
|
|
274
|
-
let hn = l(() => dn(H.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => fn.value ? 1 : (e.values || []).reduce((e, t) => e + t, 0)))), gn = l(() => dn(H.value.map((e, t) => fn.value ? 1 : (e.values || []).reduce((e, t) => e + t)))), U = l(() => (Jt.value.forEach((e, t) => {
|
|
275
|
-
[null, void 0].includes(e.values) && ie({
|
|
276
|
-
componentName: "VueUiWaffle",
|
|
277
|
-
type: "datasetSerieAttribute",
|
|
278
|
-
property: "values (number[])",
|
|
279
|
-
index: t
|
|
280
|
-
});
|
|
281
|
-
}), H.value.filter((e, t) => !K.value.includes(e.uid)).map((e, t) => ({
|
|
282
|
-
absoluteIndex: e.absoluteIndex,
|
|
283
|
-
uid: e.uid,
|
|
284
|
-
name: e.name,
|
|
285
|
-
color: e.color,
|
|
286
|
-
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
287
|
-
absoluteValues: e.values || [],
|
|
288
|
-
proportion: hn.value[t]
|
|
289
|
-
})))), _n = l(() => H.value.map((e, t) => ({
|
|
290
|
-
absoluteIndex: e.absoluteIndex,
|
|
291
|
-
uid: e.uid,
|
|
292
|
-
name: e.name,
|
|
293
|
-
color: e.color,
|
|
294
|
-
value: (e.values || []).reduce((e, t) => e + t, 0),
|
|
295
|
-
absoluteValues: e.values || [],
|
|
296
|
-
proportion: gn.value[t]
|
|
297
|
-
})));
|
|
298
|
-
function vn() {
|
|
299
|
-
return _n.value.map((e) => ({
|
|
300
|
-
name: e.name,
|
|
301
|
-
color: e.color,
|
|
302
|
-
value: e.value,
|
|
303
|
-
proportion: e.proportion
|
|
304
|
-
}));
|
|
305
|
-
}
|
|
306
|
-
let yn = l(() => {
|
|
307
|
-
let e = 0;
|
|
308
|
-
return U.value.map((t, n) => {
|
|
309
|
-
let r = e, i = r + t.proportion, a = [];
|
|
310
|
-
for (let e = Math.floor(r); e < Math.floor(i); e += 1) a.push(e);
|
|
311
|
-
return e = i, {
|
|
312
|
-
...t,
|
|
313
|
-
start: r,
|
|
314
|
-
rects: a
|
|
315
|
-
};
|
|
316
|
-
});
|
|
317
|
-
}), W = l(() => yn.value.flatMap((e, t) => e.rects.map((n, r) => ({
|
|
318
|
-
isFirst: r === 0,
|
|
319
|
-
isLongEnough: n.length > 2,
|
|
320
|
-
name: e.name,
|
|
321
|
-
color: e.color,
|
|
322
|
-
value: e.value,
|
|
323
|
-
serieIndex: t,
|
|
324
|
-
absoluteStartIndex: r < 3,
|
|
325
|
-
serieId: e.uid,
|
|
326
|
-
...e
|
|
327
|
-
}))).map((e, t) => ({
|
|
328
|
-
...e,
|
|
329
|
-
isAbsoluteFirst: t % M.value.style.chart.layout.grid.size === 0
|
|
330
|
-
}))), G = l(() => {
|
|
331
|
-
let e = [];
|
|
332
|
-
for (let t = 0; t < M.value.style.chart.layout.grid.size; t += 1) for (let n = 0; n < M.value.style.chart.layout.grid.size; n += 1) e.push({
|
|
333
|
-
isStartOfLine: n === 0,
|
|
334
|
-
position: M.value.style.chart.layout.grid.vertical ? t : n,
|
|
335
|
-
x: (M.value.style.chart.layout.grid.vertical ? t : n) * (B.value + M.value.style.chart.layout.grid.spaceBetween),
|
|
336
|
-
y: (M.value.style.chart.layout.grid.vertical ? n : t) * (V.value + M.value.style.chart.layout.grid.spaceBetween) + z.value.top
|
|
337
|
-
});
|
|
338
|
-
return e;
|
|
339
|
-
}), K = y([]), bn = y(!1), xn = y(Object.create(null)), Sn = y(Object.create(null)), Cn = y(0);
|
|
340
|
-
function wn(e, t) {
|
|
341
|
-
H.value = H.value.map((n) => n.uid === e ? {
|
|
342
|
-
...n,
|
|
343
|
-
values: [t]
|
|
344
|
-
} : n);
|
|
345
|
-
}
|
|
346
|
-
function Tn(e, t) {
|
|
347
|
-
let n = t.find((t) => t.uid === e);
|
|
348
|
-
return n ? (n.values || []).reduce((e, t) => e + t, 0) : 0;
|
|
349
|
-
}
|
|
350
|
-
function En(e) {
|
|
351
|
-
xn.value[e] && (cancelAnimationFrame(xn.value[e]), delete xn.value[e]), Sn.value[e] && (cancelAnimationFrame(Sn.value[e]), delete Sn.value[e]);
|
|
352
|
-
}
|
|
353
|
-
function Dn({ seriesId: e, fromValue: t, toValue: n, mode: r }) {
|
|
354
|
-
En(e), Cn.value += 1, bn.value = !0;
|
|
355
|
-
let i = t;
|
|
356
|
-
return new Promise((a) => {
|
|
357
|
-
function o() {
|
|
358
|
-
if (r === "increase") {
|
|
359
|
-
if (i >= n) {
|
|
360
|
-
wn(e, n), --Cn.value, Cn.value <= 0 && (bn.value = !1), delete xn.value[e], a();
|
|
361
|
-
return;
|
|
362
|
-
}
|
|
363
|
-
i += n * .025, i > n && (i = n), wn(e, i), xn.value[e] = requestAnimationFrame(o);
|
|
364
|
-
} else {
|
|
365
|
-
if (i <= t / 100) {
|
|
366
|
-
wn(e, 0), --Cn.value, Cn.value <= 0 && (bn.value = !1), delete Sn.value[e], a();
|
|
367
|
-
return;
|
|
368
|
-
}
|
|
369
|
-
i /= 1.15, wn(e, i), Sn.value[e] = requestAnimationFrame(o);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
o();
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
function On() {
|
|
376
|
-
H.value = mn.value;
|
|
377
|
-
let e = K.value.length > 0;
|
|
378
|
-
if (!M.value.useAnimation) {
|
|
379
|
-
e ? K.value = [] : K.value = J.value.map((e) => e.uid);
|
|
380
|
-
return;
|
|
381
|
-
}
|
|
382
|
-
e ? [...K.value].forEach((e) => {
|
|
383
|
-
q(e, !0);
|
|
384
|
-
}) : J.value.map((e) => e.uid).forEach((e) => {
|
|
385
|
-
q(e, !0);
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
function q(e, t = !1) {
|
|
389
|
-
if (fn.value && !t) return;
|
|
390
|
-
let n = t || K.value.length < J.value.length - 1 && J.value.length > 1;
|
|
391
|
-
if (!M.value.useAnimation) {
|
|
392
|
-
K.value.includes(e) ? K.value = K.value.filter((t) => t !== e) : n && K.value.push(e);
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
let r = Tn(e, mn.value), i = Tn(e, H.value);
|
|
396
|
-
if (!(i === 0 && r === 0)) {
|
|
397
|
-
if (K.value.includes(e)) {
|
|
398
|
-
K.value = K.value.filter((t) => t !== e), Dn({
|
|
399
|
-
seriesId: e,
|
|
400
|
-
fromValue: i,
|
|
401
|
-
toValue: r,
|
|
402
|
-
mode: "increase"
|
|
403
|
-
}).then(() => {
|
|
404
|
-
Vn("selectLegend", U.value.map((e) => ({
|
|
405
|
-
name: e.name,
|
|
406
|
-
color: e.color,
|
|
407
|
-
value: e.value,
|
|
408
|
-
proportion: e.proportion / M.value.style.chart.layout.grid.size ** 2
|
|
409
|
-
})));
|
|
410
|
-
});
|
|
411
|
-
return;
|
|
412
|
-
}
|
|
413
|
-
n && Dn({
|
|
414
|
-
seriesId: e,
|
|
415
|
-
fromValue: i,
|
|
416
|
-
toValue: 0,
|
|
417
|
-
mode: "decrease"
|
|
418
|
-
}).then(() => {
|
|
419
|
-
K.value.includes(e) || K.value.push(e), wn(e, 0), Vn("selectLegend", U.value.map((e) => ({
|
|
420
|
-
name: e.name,
|
|
421
|
-
color: e.color,
|
|
422
|
-
value: e.value,
|
|
423
|
-
proportion: e.proportion / M.value.style.chart.layout.grid.size ** 2
|
|
424
|
-
})));
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
function kn(e) {
|
|
429
|
-
return _n.value.length ? _n.value.find((t) => t.name === e) || (M.value.debug && console.warn(`VueUiWaffle - Series name not found "${e}"`), null) : (M.value.debug && console.warn("VueUiWaffle - There are no series to show."), null);
|
|
430
|
-
}
|
|
431
|
-
function An(e) {
|
|
432
|
-
let t = kn(e);
|
|
433
|
-
t !== null && K.value.includes(t.uid) && q(t.uid);
|
|
434
|
-
}
|
|
435
|
-
function jn(e) {
|
|
436
|
-
let t = kn(e);
|
|
437
|
-
t !== null && (K.value.includes(t.uid) || q(t.uid));
|
|
438
|
-
}
|
|
439
|
-
function Mn({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
440
|
-
return Ae({
|
|
441
|
-
config: i,
|
|
442
|
-
val: e,
|
|
443
|
-
percentage: t,
|
|
444
|
-
showVal: n,
|
|
445
|
-
showPercentage: r
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
let J = l(() => H.value.map((e, t) => {
|
|
449
|
-
let n = (e.values || []).reduce((e, t) => e + t, 0), i = n / H.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
450
|
-
return {
|
|
451
|
-
name: e.name,
|
|
452
|
-
color: e.color || cn[t] || r[t] || r[t % r.length],
|
|
453
|
-
value: n,
|
|
454
|
-
proportion: i,
|
|
455
|
-
uid: e.uid,
|
|
456
|
-
shape: "square"
|
|
457
|
-
};
|
|
458
|
-
}).map((e, t) => {
|
|
459
|
-
let n = Mn({
|
|
460
|
-
val: s(M.value.style.chart.layout.labels.dataLabels.formatter, e.value, i({
|
|
461
|
-
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
462
|
-
v: e.value,
|
|
463
|
-
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
464
|
-
r: M.value.style.chart.legend.roundingValue
|
|
465
|
-
}), {
|
|
466
|
-
datapoint: e,
|
|
467
|
-
index: t
|
|
468
|
-
}),
|
|
469
|
-
percentage: isNaN(e.value / Y.value) ? "-" : i({
|
|
470
|
-
v: e.value / Y.value * 100,
|
|
471
|
-
s: "%",
|
|
472
|
-
r: M.value.style.chart.legend.roundingPercentage
|
|
473
|
-
}),
|
|
474
|
-
showVal: M.value.style.chart.legend.showValue,
|
|
475
|
-
showPercentage: M.value.style.chart.legend.showPercentage,
|
|
476
|
-
config: M.value.style.chart.legend
|
|
477
|
-
});
|
|
478
|
-
return {
|
|
479
|
-
...e,
|
|
480
|
-
opacity: K.value.includes(e.uid) ? .5 : 1,
|
|
481
|
-
segregate: () => q(e.uid),
|
|
482
|
-
isSegregated: K.value.includes(e.uid),
|
|
483
|
-
display: `${e.name}${M.value.style.chart.legend.showPercentage || M.value.style.chart.legend.showValue ? ": " : ""}${n}`
|
|
484
|
-
};
|
|
485
|
-
})), Nn = l(() => ({
|
|
486
|
-
cy: "waffle-div-legend",
|
|
487
|
-
backgroundColor: M.value.style.chart.legend.backgroundColor,
|
|
488
|
-
color: M.value.style.chart.legend.color,
|
|
489
|
-
fontSize: M.value.style.chart.legend.fontSize,
|
|
490
|
-
paddingBottom: 12,
|
|
491
|
-
fontWeight: M.value.style.chart.legend.bold ? "bold" : ""
|
|
492
|
-
})), Y = l(() => U.value.map((e) => e.value).reduce((e, t) => e + t, 0)), Pn = y(null), Fn = y(null), X = l(() => {
|
|
493
|
-
let e = /* @__PURE__ */ new Map();
|
|
494
|
-
return W.value.forEach((t, n) => {
|
|
495
|
-
e.has(t.serieIndex) ? e.get(t.serieIndex).rectIndexes.push(n) : e.set(t.serieIndex, {
|
|
496
|
-
serieIndex: t.serieIndex,
|
|
497
|
-
absoluteIndex: t.absoluteIndex,
|
|
498
|
-
serieId: t.serieId,
|
|
499
|
-
name: t.name,
|
|
500
|
-
color: t.color,
|
|
501
|
-
value: t.value,
|
|
502
|
-
proportion: t.proportion,
|
|
503
|
-
rectIndexes: [n]
|
|
504
|
-
});
|
|
505
|
-
}), Array.from(e.values()).sort((e, t) => e.serieIndex - t.serieIndex);
|
|
506
|
-
});
|
|
507
|
-
function In(e) {
|
|
508
|
-
return X.value.find((t) => t.serieIndex === e) || null;
|
|
509
|
-
}
|
|
510
|
-
function Ln(e) {
|
|
511
|
-
let t = In(e);
|
|
512
|
-
return !t || !t.rectIndexes.length ? null : t.rectIndexes[0];
|
|
513
|
-
}
|
|
514
|
-
function Rn(e) {
|
|
515
|
-
let t = W.value[e];
|
|
516
|
-
M.value.events.datapointClick && M.value.events.datapointClick({
|
|
517
|
-
datapoint: t,
|
|
518
|
-
seriesIndex: t.serieIndex
|
|
519
|
-
});
|
|
520
|
-
}
|
|
521
|
-
function zn(e) {
|
|
522
|
-
let t = W.value[e];
|
|
523
|
-
M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
524
|
-
datapoint: t,
|
|
525
|
-
seriesIndex: t.serieIndex
|
|
526
|
-
}), Fn.value = null, O.value = !1, k.value = null, j.value = null, Wt.value = "pointer";
|
|
527
|
-
}
|
|
528
|
-
function Bn(e, t = "pointer") {
|
|
529
|
-
if (K.value.length === E.dataset.length) return;
|
|
530
|
-
let n = W.value[e];
|
|
531
|
-
if (!n) return;
|
|
532
|
-
Wt.value = t, j.value = n.serieIndex, Pn.value = {
|
|
533
|
-
datapoint: n,
|
|
534
|
-
seriesIndex: n.absoluteIndex,
|
|
535
|
-
series: H.value,
|
|
536
|
-
config: M.value
|
|
537
|
-
}, M.value.events.datapointEnter && Fn.value !== n.serieIndex && M.value.events.datapointEnter({
|
|
538
|
-
datapoint: n,
|
|
539
|
-
seriesIndex: n.serieIndex
|
|
540
|
-
}), Fn.value = n.serieIndex, O.value = !0, k.value = n.serieIndex;
|
|
541
|
-
let r = M.value.style.chart.tooltip.customFormat;
|
|
542
|
-
if (ce(r) && oe(() => r({
|
|
543
|
-
seriesIndex: n.absoluteIndex,
|
|
544
|
-
datapoint: n,
|
|
545
|
-
series: H.value,
|
|
546
|
-
config: M.value
|
|
547
|
-
}))) kt.value = r({
|
|
548
|
-
seriesIndex: n.absoluteIndex,
|
|
549
|
-
datapoint: n,
|
|
550
|
-
series: H.value,
|
|
551
|
-
config: M.value
|
|
552
|
-
});
|
|
553
|
-
else {
|
|
554
|
-
let e = "";
|
|
555
|
-
e += `<div style="width:100%;text-align:center;border-bottom:1px solid ${M.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${n.name}</div>`, e += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><rect x="0" y="0" height="60" width="60" stroke="none" rx="1" fill="${n.color}" />${Dt.pattern ? `<rect x="0" y="0" height="60" width="60" stroke="none" rx="1" stroke="none" fill="url(#pattern_${D.value}_${n.absoluteIndex})"/>` : ""}</svg>`, e += `<b>${Mn({
|
|
556
|
-
config: M.value.style.chart.tooltip,
|
|
557
|
-
showVal: M.value.style.chart.tooltip.showValue,
|
|
558
|
-
showPercentage: M.value.style.chart.tooltip.showPercentage,
|
|
559
|
-
val: `<span>${s(M.value.style.chart.layout.labels.dataLabels.formatter, n.value, i({
|
|
560
|
-
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
561
|
-
v: n.value,
|
|
562
|
-
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
563
|
-
r: M.value.style.chart.tooltip.roundingValue
|
|
564
|
-
}), {
|
|
565
|
-
datapoint: n,
|
|
566
|
-
seriesIndex: n.absoluteIndex,
|
|
567
|
-
series: H.value
|
|
568
|
-
})}</span>`,
|
|
569
|
-
percentage: `<span>${i({
|
|
570
|
-
v: fn.value ? 1 / Jt.value.length * 100 : n.value / Y.value * 100,
|
|
571
|
-
s: "%",
|
|
572
|
-
r: M.value.style.chart.tooltip.roundingPercentage
|
|
573
|
-
})}</span>`
|
|
574
|
-
})}</b></div>`, kt.value = e;
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
let Vn = Ke, Z = l(() => ({
|
|
578
|
-
head: U.value.map((e) => ({
|
|
579
|
-
name: e.name,
|
|
580
|
-
color: e.color
|
|
581
|
-
})),
|
|
582
|
-
body: U.value.map((e) => e.value)
|
|
583
|
-
}));
|
|
584
|
-
function Hn(e) {
|
|
585
|
-
return M.value.useBlurOnHover && ![null, void 0].includes(k.value) && k.value !== e ? `url(#blur_${D.value})` : "";
|
|
586
|
-
}
|
|
587
|
-
function Un(e, t) {
|
|
588
|
-
return M.value.style.chart.layout.labels.captions.show ? W.value.length && !bn.value && !M.value.style.chart.layout.grid.vertical && (W.value[e].isFirst && t.position < M.value.style.chart.layout.grid.size - 2 || W.value[e].isAbsoluteFirst && e % M.value.style.chart.layout.grid.size === 0 && W.value[e].absoluteStartIndex) : !1;
|
|
589
|
-
}
|
|
590
|
-
function Wn(e, t = null) {
|
|
591
|
-
let n = s(M.value.style.chart.layout.labels.dataLabels.formatter, W.value[e].value, i({
|
|
592
|
-
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
593
|
-
v: W.value[e].value,
|
|
594
|
-
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
595
|
-
r: M.value.style.chart.layout.labels.captions.roundingValue
|
|
596
|
-
}), {
|
|
597
|
-
datapoint: W.value[e],
|
|
598
|
-
position: t
|
|
599
|
-
}), r = i({
|
|
600
|
-
v: W.value[e].proportion,
|
|
601
|
-
s: "%",
|
|
602
|
-
r: M.value.style.chart.layout.labels.captions.roundingPercentage
|
|
603
|
-
}), a = (M.value.style.chart.layout.labels.captions.serieNameAbbreviation ? ae({
|
|
604
|
-
source: W.value[e].name,
|
|
605
|
-
length: M.value.style.chart.layout.labels.captions.serieNameMaxAbbreviationSize
|
|
606
|
-
}) : W.value[e].name) + (M.value.style.chart.layout.labels.captions.showPercentage || M.value.style.chart.layout.labels.captions.showValue ? ":" : "");
|
|
607
|
-
return `${M.value.style.chart.layout.labels.captions.showSerieName ? a : ""} ${Mn({
|
|
608
|
-
val: n,
|
|
609
|
-
percentage: r,
|
|
610
|
-
showVal: M.value.style.chart.layout.labels.captions.showValue,
|
|
611
|
-
showPercentage: M.value.style.chart.layout.labels.captions.showPercentage,
|
|
612
|
-
config: M.value.style.chart.layout.labels.dataLabels
|
|
613
|
-
})}`;
|
|
614
|
-
}
|
|
615
|
-
function Gn(e = null) {
|
|
616
|
-
Re(() => {
|
|
617
|
-
let t = Z.value.head.map((e, t) => [
|
|
618
|
-
[e.name],
|
|
619
|
-
[Z.value.body[t]],
|
|
620
|
-
[isNaN(Z.value.body[t] / Y.value) ? "-" : Z.value.body[t] / Y.value * 100]
|
|
621
|
-
]), n = re([
|
|
622
|
-
[M.value.style.chart.title.text],
|
|
623
|
-
[M.value.style.chart.title.subtitle.text],
|
|
624
|
-
[
|
|
625
|
-
[""],
|
|
626
|
-
["val"],
|
|
627
|
-
["%"]
|
|
628
|
-
]
|
|
629
|
-
].concat(t));
|
|
630
|
-
e ? e(n) : o({
|
|
631
|
-
csvContent: n,
|
|
632
|
-
title: M.value.style.chart.title.text || "vue-ui-waffle"
|
|
633
|
-
});
|
|
634
|
-
});
|
|
635
|
-
}
|
|
636
|
-
let Q = l(() => ({
|
|
637
|
-
head: [
|
|
638
|
-
" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>",
|
|
639
|
-
s(M.value.style.chart.layout.labels.dataLabels.formatter, Y.value, i({
|
|
640
|
-
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
641
|
-
v: Y.value,
|
|
642
|
-
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
643
|
-
r: M.value.table.td.roundingValue
|
|
644
|
-
})),
|
|
645
|
-
"100%"
|
|
646
|
-
],
|
|
647
|
-
body: Z.value.head.map((e, t) => [
|
|
648
|
-
{
|
|
649
|
-
color: e.color,
|
|
650
|
-
name: e.name
|
|
651
|
-
},
|
|
652
|
-
s(M.value.style.chart.layout.labels.dataLabels.formatter, Z.value.body[t], i({
|
|
653
|
-
p: M.value.style.chart.layout.labels.dataLabels.prefix,
|
|
654
|
-
v: Z.value.body[t],
|
|
655
|
-
s: M.value.style.chart.layout.labels.dataLabels.suffix,
|
|
656
|
-
r: M.value.table.td.roundingValue
|
|
657
|
-
})),
|
|
658
|
-
isNaN(Z.value.body[t] / Y.value) ? "-" : i({
|
|
659
|
-
v: Z.value.body[t] / Y.value * 100,
|
|
660
|
-
s: "%",
|
|
661
|
-
r: M.value.table.td.roundingPercentage
|
|
662
|
-
})
|
|
663
|
-
]),
|
|
664
|
-
config: {
|
|
665
|
-
th: {
|
|
666
|
-
backgroundColor: M.value.table.th.backgroundColor,
|
|
667
|
-
color: M.value.table.th.color,
|
|
668
|
-
outline: M.value.table.th.outline
|
|
669
|
-
},
|
|
670
|
-
td: {
|
|
671
|
-
backgroundColor: M.value.table.td.backgroundColor,
|
|
672
|
-
color: M.value.table.td.color,
|
|
673
|
-
outline: M.value.table.td.outline
|
|
674
|
-
},
|
|
675
|
-
shape: "square",
|
|
676
|
-
breakpoint: M.value.table.responsiveBreakpoint
|
|
677
|
-
},
|
|
678
|
-
colNames: [
|
|
679
|
-
M.value.table.columnNames.series,
|
|
680
|
-
M.value.table.columnNames.value,
|
|
681
|
-
M.value.table.columnNames.percentage
|
|
682
|
-
]
|
|
683
|
-
})), $ = y(!1);
|
|
684
|
-
function Kn(e) {
|
|
685
|
-
$.value = e, At.value += 1;
|
|
686
|
-
}
|
|
687
|
-
function qn() {
|
|
688
|
-
L.value.showTable = !L.value.showTable;
|
|
689
|
-
}
|
|
690
|
-
function Jn() {
|
|
691
|
-
L.value.showTooltip = !L.value.showTooltip;
|
|
692
|
-
}
|
|
693
|
-
let Yn = y(!1);
|
|
694
|
-
function Xn() {
|
|
695
|
-
Yn.value = !Yn.value;
|
|
696
|
-
}
|
|
697
|
-
async function Zn({ scale: e = 2 } = {}) {
|
|
698
|
-
if (!A.value) return;
|
|
699
|
-
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
700
|
-
domElement: A.value,
|
|
701
|
-
base64: !0,
|
|
702
|
-
img: !0,
|
|
703
|
-
scale: e
|
|
704
|
-
});
|
|
705
|
-
return {
|
|
706
|
-
imageUri: i,
|
|
707
|
-
base64: a,
|
|
708
|
-
title: M.value.style.chart.title.text,
|
|
709
|
-
width: t,
|
|
710
|
-
height: n,
|
|
711
|
-
aspectRatio: r
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
let Qn = l(() => {
|
|
715
|
-
let e = M.value.table.useDialog && !M.value.table.show, t = L.value.showTable;
|
|
716
|
-
return {
|
|
717
|
-
component: e ? Ct : yt,
|
|
718
|
-
title: `${M.value.style.chart.title.text}${M.value.style.chart.title.subtitle.text ? `: ${M.value.style.chart.title.subtitle.text}` : ""}`,
|
|
719
|
-
props: e ? {
|
|
720
|
-
backgroundColor: M.value.table.th.backgroundColor,
|
|
721
|
-
color: M.value.table.th.color,
|
|
722
|
-
headerColor: M.value.table.th.color,
|
|
723
|
-
headerBg: M.value.table.th.backgroundColor,
|
|
724
|
-
isFullscreen: $.value,
|
|
725
|
-
fullscreenParent: A.value,
|
|
726
|
-
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
727
|
-
isCursorPointer: N.value
|
|
728
|
-
} : {
|
|
729
|
-
hideDetails: !0,
|
|
730
|
-
config: {
|
|
731
|
-
open: t,
|
|
732
|
-
maxHeight: 1e4,
|
|
733
|
-
body: {
|
|
734
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
735
|
-
color: M.value.style.chart.color
|
|
736
|
-
},
|
|
737
|
-
head: {
|
|
738
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
739
|
-
color: M.value.style.chart.color
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
});
|
|
745
|
-
w(() => L.value.showTable, (e) => {
|
|
746
|
-
M.value.table.show || (e && M.value.table.useDialog && zt.value ? zt.value.open() : "close" in zt.value && zt.value.close());
|
|
747
|
-
});
|
|
748
|
-
function $n() {
|
|
749
|
-
L.value.showTable = !1, Bt.value && Bt.value.setTableIconState(!1);
|
|
750
|
-
}
|
|
751
|
-
let er = l(() => J.value.map((e) => ({
|
|
752
|
-
...e,
|
|
753
|
-
name: e.display
|
|
754
|
-
}))), tr = l(() => M.value.style.chart.backgroundColor), nr = l(() => M.value.style.chart.legend), { exportSvg: rr, getSvg: ir } = _e({
|
|
755
|
-
svg: P,
|
|
756
|
-
title: l(() => M.value.style.chart.title),
|
|
757
|
-
legend: nr,
|
|
758
|
-
legendItems: er,
|
|
759
|
-
backgroundColor: tr
|
|
760
|
-
});
|
|
761
|
-
async function ar({ isCb: e }) {
|
|
762
|
-
Ht.value = !0, await Re();
|
|
763
|
-
try {
|
|
764
|
-
if (e) {
|
|
765
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await ir();
|
|
766
|
-
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
767
|
-
blob: e,
|
|
768
|
-
url: t,
|
|
769
|
-
text: n,
|
|
770
|
-
dataUrl: r
|
|
771
|
-
}));
|
|
772
|
-
} else await Promise.resolve(rr());
|
|
773
|
-
} finally {
|
|
774
|
-
Ht.value = !1;
|
|
775
|
-
}
|
|
776
|
-
}
|
|
777
|
-
function or(e) {
|
|
778
|
-
if (e?.stage === "start") {
|
|
779
|
-
Vt.value = !0;
|
|
780
|
-
return;
|
|
781
|
-
}
|
|
782
|
-
if (e?.stage === "end") {
|
|
783
|
-
Vt.value = !1;
|
|
784
|
-
return;
|
|
785
|
-
}
|
|
786
|
-
on();
|
|
787
|
-
}
|
|
788
|
-
async function sr() {
|
|
789
|
-
if (Vn("copyAlt", {
|
|
790
|
-
config: M.value,
|
|
791
|
-
dataset: _n.value
|
|
792
|
-
}), !M.value.userOptions.callbacks.altCopy) {
|
|
793
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
794
|
-
return;
|
|
795
|
-
}
|
|
796
|
-
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
797
|
-
config: M.value,
|
|
798
|
-
dataset: _n.value
|
|
799
|
-
}));
|
|
800
|
-
}
|
|
801
|
-
function cr() {
|
|
802
|
-
j.value = null, Gt.value = !0;
|
|
803
|
-
}
|
|
804
|
-
function lr() {
|
|
805
|
-
j.value = null, Wt.value = "pointer", O.value = !1, k.value = null, Fn.value = null, Gt.value = !1;
|
|
806
|
-
}
|
|
807
|
-
function ur(e) {
|
|
808
|
-
if (!P.value || Yn.value || document.activeElement !== P.value || !X.value.length || K.value.length === E.dataset.length) return;
|
|
809
|
-
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
810
|
-
if (!t && !n && !r && !i) return;
|
|
811
|
-
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
812
|
-
j.value = null, Wt.value = "pointer", O.value = !1, k.value = null, Fn.value = null;
|
|
813
|
-
return;
|
|
814
|
-
}
|
|
815
|
-
if (r) {
|
|
816
|
-
if (j.value === null) return;
|
|
817
|
-
let e = Ln(j.value);
|
|
818
|
-
if (e === null) return;
|
|
819
|
-
Rn(e);
|
|
820
|
-
return;
|
|
821
|
-
}
|
|
822
|
-
let a = X.value.findIndex((e) => e.serieIndex === j.value), o = null;
|
|
823
|
-
if (o = a === -1 ? n ? X.value[0] : X.value[X.value.length - 1] : n ? X.value[(a + 1) % X.value.length] : X.value[(a - 1 + X.value.length) % X.value.length], !o) return;
|
|
824
|
-
let ee = Ln(o.serieIndex);
|
|
825
|
-
ee !== null && (dr(o.serieIndex), Bn(ee, "keyboard"));
|
|
826
|
-
}
|
|
827
|
-
function dr(e) {
|
|
828
|
-
if (!Number.isFinite(e) || !P.value) return;
|
|
829
|
-
let t = In(e);
|
|
830
|
-
if (!t || !t.rectIndexes.length) return;
|
|
831
|
-
let n = t.rectIndexes.map((e) => {
|
|
832
|
-
let t = G.value[e];
|
|
833
|
-
return t ? {
|
|
834
|
-
x: t.x + M.value.style.chart.layout.grid.spaceBetween / 2 + ln.value / 2,
|
|
835
|
-
y: t.y + M.value.style.chart.layout.grid.spaceBetween / 2 + un.value / 2
|
|
836
|
-
} : null;
|
|
837
|
-
}).filter(Boolean);
|
|
838
|
-
if (!n.length) return;
|
|
839
|
-
let r = Math.min(...n.map((e) => e.x)), i = Math.max(...n.map((e) => e.x)), a = Math.min(...n.map((e) => e.y)), o = Math.max(...n.map((e) => e.y)), ee = (r + i) / 2, te = (a + o) / 2, ne = P.value.getBoundingClientRect();
|
|
840
|
-
Ut.value = {
|
|
841
|
-
x: ne.left + ee / R.value.width * ne.width,
|
|
842
|
-
y: ne.top + te / R.value.height * ne.height
|
|
843
|
-
};
|
|
844
|
-
}
|
|
845
|
-
let fr = l(() => ({
|
|
846
|
-
headers: Q.value?.colNames ?? [],
|
|
847
|
-
rows: Q.value?.body ?? []
|
|
848
|
-
}));
|
|
849
|
-
return Ce({
|
|
850
|
-
getData: vn,
|
|
851
|
-
getImage: Zn,
|
|
852
|
-
generatePdf: an,
|
|
853
|
-
generateCsv: Gn,
|
|
854
|
-
generateImage: on,
|
|
855
|
-
generateSvg: ar,
|
|
856
|
-
hideSeries: jn,
|
|
857
|
-
showSeries: An,
|
|
858
|
-
toggleTable: qn,
|
|
859
|
-
toggleTooltip: Jn,
|
|
860
|
-
toggleAnnotator: Xn,
|
|
861
|
-
toggleFullscreen: Kn,
|
|
862
|
-
copyAlt: sr
|
|
863
|
-
}), (e, t) => (v(), f("div", {
|
|
864
|
-
class: ze(`vue-data-ui-component vue-ui-waffle ${$.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
865
|
-
ref_key: "waffleChart",
|
|
866
|
-
ref: A,
|
|
867
|
-
id: `vue-ui-waffle_${D.value}`,
|
|
868
|
-
style: _(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor};${M.value.responsive ? "height: 100%" : ""}`),
|
|
869
|
-
onMouseenter: t[2] ||= () => C(Zt)(!0),
|
|
870
|
-
onMouseleave: t[3] ||= () => C(Zt)(!1)
|
|
871
|
-
}, [
|
|
872
|
-
p("div", {
|
|
873
|
-
id: `chart-instructions-${D.value}`,
|
|
874
|
-
class: "sr-only"
|
|
875
|
-
}, [p("p", null, S(M.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
876
|
-
fr.value?.rows?.length ? (v(), u(De, {
|
|
877
|
-
key: 0,
|
|
878
|
-
uid: D.value,
|
|
879
|
-
head: fr.value.headers,
|
|
880
|
-
body: fr.value.rows,
|
|
881
|
-
notice: M.value.a11y.translations.tableAvailable,
|
|
882
|
-
caption: M.value.a11y.translations.tableCaption
|
|
883
|
-
}, null, 8, [
|
|
884
|
-
"uid",
|
|
885
|
-
"head",
|
|
886
|
-
"body",
|
|
887
|
-
"notice",
|
|
888
|
-
"caption"
|
|
889
|
-
])) : d("", !0),
|
|
890
|
-
M.value.userOptions.buttons.annotator ? (v(), u(C(xt), {
|
|
891
|
-
key: 1,
|
|
892
|
-
svgRef: C(P),
|
|
893
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
894
|
-
color: M.value.style.chart.color,
|
|
895
|
-
active: Yn.value,
|
|
896
|
-
isCursorPointer: N.value,
|
|
897
|
-
onClose: Xn
|
|
898
|
-
}, {
|
|
899
|
-
"annotator-action-close": T(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
900
|
-
"annotator-action-color": T(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
901
|
-
"annotator-action-draw": T(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
902
|
-
"annotator-action-undo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
903
|
-
"annotator-action-redo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
904
|
-
"annotator-action-delete": T(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
905
|
-
_: 3
|
|
906
|
-
}, 8, [
|
|
907
|
-
"svgRef",
|
|
908
|
-
"backgroundColor",
|
|
909
|
-
"color",
|
|
910
|
-
"active",
|
|
911
|
-
"isCursorPointer"
|
|
912
|
-
])) : d("", !0),
|
|
913
|
-
sn.value ? (v(), f("div", {
|
|
914
|
-
key: 2,
|
|
915
|
-
ref_key: "noTitle",
|
|
916
|
-
ref: Pt,
|
|
917
|
-
class: "vue-data-ui-no-title-space",
|
|
918
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
919
|
-
}, null, 512)) : d("", !0),
|
|
920
|
-
M.value.style.chart.title.text ? (v(), f("div", {
|
|
921
|
-
key: 3,
|
|
922
|
-
ref_key: "chartTitle",
|
|
923
|
-
ref: jt,
|
|
924
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
925
|
-
}, [(v(), u(xe, {
|
|
926
|
-
key: `title_${Ft.value}`,
|
|
927
|
-
config: {
|
|
928
|
-
title: {
|
|
929
|
-
cy: "waffle-title",
|
|
930
|
-
...M.value.style.chart.title
|
|
931
|
-
},
|
|
932
|
-
subtitle: {
|
|
933
|
-
cy: "waffle-subtitle",
|
|
934
|
-
...M.value.style.chart.title.subtitle
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
}, null, 8, ["config"]))], 512)) : d("", !0),
|
|
938
|
-
p("div", { id: `legend-top-${D.value}` }, null, 8, Ye),
|
|
939
|
-
M.value.userOptions.show && Ot.value && (C(Qt) || C(Xt)) ? (v(), u(C(bt), {
|
|
940
|
-
ref_key: "userOptionsRef",
|
|
941
|
-
ref: Bt,
|
|
942
|
-
key: `user_options_${At.value}`,
|
|
943
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
944
|
-
color: M.value.style.chart.color,
|
|
945
|
-
isPrinting: C(nn),
|
|
946
|
-
isImaging: C(rn),
|
|
947
|
-
uid: D.value,
|
|
948
|
-
hasTooltip: M.value.userOptions.buttons.tooltip && M.value.style.chart.tooltip.show,
|
|
949
|
-
hasPdf: M.value.userOptions.buttons.pdf,
|
|
950
|
-
hasImg: M.value.userOptions.buttons.img,
|
|
951
|
-
hasSvg: M.value.userOptions.buttons.svg,
|
|
952
|
-
hasXls: M.value.userOptions.buttons.csv,
|
|
953
|
-
hasTable: M.value.userOptions.buttons.table,
|
|
954
|
-
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
955
|
-
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
956
|
-
isFullscreen: $.value,
|
|
957
|
-
isTooltip: L.value.showTooltip,
|
|
958
|
-
titles: { ...M.value.userOptions.buttonTitles },
|
|
959
|
-
chartElement: A.value,
|
|
960
|
-
position: M.value.userOptions.position,
|
|
961
|
-
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
962
|
-
isAnnotation: Yn.value,
|
|
963
|
-
callbacks: M.value.userOptions.callbacks,
|
|
964
|
-
printScale: M.value.userOptions.print.scale,
|
|
965
|
-
tableDialog: M.value.table.useDialog,
|
|
966
|
-
isCursorPointer: N.value,
|
|
967
|
-
onToggleFullscreen: Kn,
|
|
968
|
-
onGeneratePdf: C(an),
|
|
969
|
-
onGenerateCsv: Gn,
|
|
970
|
-
onGenerateImage: or,
|
|
971
|
-
onGenerateSvg: ar,
|
|
972
|
-
onToggleTable: qn,
|
|
973
|
-
onToggleTooltip: Jn,
|
|
974
|
-
onToggleAnnotator: Xn,
|
|
975
|
-
onCopyAlt: sr,
|
|
976
|
-
style: _({ visibility: C(Qt) ? C(Xt) ? "visible" : "hidden" : "visible" })
|
|
977
|
-
}, Pe({ _: 2 }, [
|
|
978
|
-
e.$slots.menuIcon ? {
|
|
979
|
-
name: "menuIcon",
|
|
980
|
-
fn: T(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
|
|
981
|
-
isOpen: t,
|
|
982
|
-
color: n
|
|
983
|
-
})), void 0, !0)]),
|
|
984
|
-
key: "0"
|
|
985
|
-
} : void 0,
|
|
986
|
-
e.$slots.optionTooltip ? {
|
|
987
|
-
name: "optionTooltip",
|
|
988
|
-
fn: T(() => [x(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
989
|
-
key: "1"
|
|
990
|
-
} : void 0,
|
|
991
|
-
e.$slots.optionPdf ? {
|
|
992
|
-
name: "optionPdf",
|
|
993
|
-
fn: T(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
994
|
-
key: "2"
|
|
995
|
-
} : void 0,
|
|
996
|
-
e.$slots.optionCsv ? {
|
|
997
|
-
name: "optionCsv",
|
|
998
|
-
fn: T(() => [x(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
999
|
-
key: "3"
|
|
1000
|
-
} : void 0,
|
|
1001
|
-
e.$slots.optionImg ? {
|
|
1002
|
-
name: "optionImg",
|
|
1003
|
-
fn: T(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1004
|
-
key: "4"
|
|
1005
|
-
} : void 0,
|
|
1006
|
-
e.$slots.optionSvg ? {
|
|
1007
|
-
name: "optionSvg",
|
|
1008
|
-
fn: T(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1009
|
-
key: "5"
|
|
1010
|
-
} : void 0,
|
|
1011
|
-
e.$slots.optionTable ? {
|
|
1012
|
-
name: "optionTable",
|
|
1013
|
-
fn: T(() => [x(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1014
|
-
key: "6"
|
|
1015
|
-
} : void 0,
|
|
1016
|
-
e.$slots.optionFullscreen ? {
|
|
1017
|
-
name: "optionFullscreen",
|
|
1018
|
-
fn: T(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
|
|
1019
|
-
toggleFullscreen: t,
|
|
1020
|
-
isFullscreen: n
|
|
1021
|
-
})), void 0, !0)]),
|
|
1022
|
-
key: "7"
|
|
1023
|
-
} : void 0,
|
|
1024
|
-
e.$slots.optionAnnotator ? {
|
|
1025
|
-
name: "optionAnnotator",
|
|
1026
|
-
fn: T(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
|
|
1027
|
-
toggleAnnotator: t,
|
|
1028
|
-
isAnnotator: n
|
|
1029
|
-
})), void 0, !0)]),
|
|
1030
|
-
key: "8"
|
|
1031
|
-
} : void 0,
|
|
1032
|
-
e.$slots.optionAltCopy ? {
|
|
1033
|
-
name: "optionAltCopy",
|
|
1034
|
-
fn: T(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
1035
|
-
key: "9"
|
|
1036
|
-
} : void 0,
|
|
1037
|
-
e.$slots["custom-menu-before"] ? {
|
|
1038
|
-
name: "custom-menu-before",
|
|
1039
|
-
fn: T(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1040
|
-
key: "10"
|
|
1041
|
-
} : void 0,
|
|
1042
|
-
e.$slots["custom-menu-after"] ? {
|
|
1043
|
-
name: "custom-menu-after",
|
|
1044
|
-
fn: T(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1045
|
-
key: "11"
|
|
1046
|
-
} : void 0
|
|
1047
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : d("", !0),
|
|
1048
|
-
p("div", Xe, [(v(), f("svg", {
|
|
1049
|
-
ref_key: "svgRef",
|
|
1050
|
-
ref: P,
|
|
1051
|
-
xmlns: C(ue),
|
|
1052
|
-
"aria-describedby": `chart-instructions-${D.value}`,
|
|
1053
|
-
class: ze({
|
|
1054
|
-
"vue-data-ui-fullscreen--on": $.value,
|
|
1055
|
-
"vue-data-ui-fulscreen--off": !$.value
|
|
1056
|
-
}),
|
|
1057
|
-
tabindex: "0",
|
|
1058
|
-
viewBox: `0 0 ${R.value.width <= 0 ? 10 : R.value.width} ${R.value.height <= 0 ? 10 : R.value.height}`,
|
|
1059
|
-
style: _(`max-width:100%;overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
|
|
1060
|
-
onFocus: cr,
|
|
1061
|
-
onBlur: lr,
|
|
1062
|
-
onKeydown: ur
|
|
1063
|
-
}, [
|
|
1064
|
-
Ie(C(St)),
|
|
1065
|
-
p("defs", null, [(v(!0), f(c, null, b(W.value, (e, t) => (v(), f("radialGradient", {
|
|
1066
|
-
cx: "50%",
|
|
1067
|
-
cy: "50%",
|
|
1068
|
-
r: "50%",
|
|
1069
|
-
fx: "50%",
|
|
1070
|
-
fy: "50%",
|
|
1071
|
-
id: `gradient_${D.value}_${t}`
|
|
1072
|
-
}, [p("stop", {
|
|
1073
|
-
offset: "0%",
|
|
1074
|
-
"stop-color": C(ee)(C(te)(e.color, .05), 100 - M.value.style.chart.layout.rect.gradientIntensity)
|
|
1075
|
-
}, null, 8, $e), p("stop", {
|
|
1076
|
-
offset: "100%",
|
|
1077
|
-
"stop-color": e.color
|
|
1078
|
-
}, null, 8, et)], 8, Qe))), 256))]),
|
|
1079
|
-
p("defs", null, [p("filter", {
|
|
1080
|
-
id: `blur_${D.value}`,
|
|
1081
|
-
x: "-50%",
|
|
1082
|
-
y: "-50%",
|
|
1083
|
-
width: "200%",
|
|
1084
|
-
height: "200%"
|
|
1085
|
-
}, [...t[4] ||= [p("feGaussianBlur", {
|
|
1086
|
-
in: "SourceGraphic",
|
|
1087
|
-
stdDeviation: 2
|
|
1088
|
-
}, null, -1), p("feColorMatrix", {
|
|
1089
|
-
type: "saturate",
|
|
1090
|
-
values: "0"
|
|
1091
|
-
}, null, -1)]], 8, tt)]),
|
|
1092
|
-
M.value.useCustomCells && W.value.length && e.$slots.cell ? (v(!0), f(c, { key: 0 }, b(G.value, (t, n) => (v(), f("foreignObject", {
|
|
1093
|
-
x: t.x,
|
|
1094
|
-
y: t.y,
|
|
1095
|
-
height: V.value <= 0 ? 1e-4 : V.value,
|
|
1096
|
-
width: B.value <= 0 ? 1e-4 : B.value,
|
|
1097
|
-
class: "vue-ui-waffle-custom-cell-foreignObject"
|
|
1098
|
-
}, [x(e.$slots, "cell", Le({ ref_for: !0 }, {
|
|
1099
|
-
cell: {
|
|
1100
|
-
...t,
|
|
1101
|
-
color: W.value[n].color,
|
|
1102
|
-
height: Math.max(0, V.value),
|
|
1103
|
-
width: Math.max(0, B.value),
|
|
1104
|
-
...W.value[n]
|
|
1105
|
-
},
|
|
1106
|
-
isSelected: [null, void 0].includes(k.value) ? !0 : W.value[n].serieIndex === k.value
|
|
1107
|
-
}), void 0, !0)], 8, nt))), 256)) : d("", !0),
|
|
1108
|
-
!W.value.length && !M.value.useCustomCells ? (v(), f("rect", {
|
|
1109
|
-
key: 1,
|
|
1110
|
-
x: 12,
|
|
1111
|
-
y: 12,
|
|
1112
|
-
height: z.value.height - 24,
|
|
1113
|
-
width: z.value.width - 24,
|
|
1114
|
-
rx: 3,
|
|
1115
|
-
fill: "none",
|
|
1116
|
-
stroke: "black"
|
|
1117
|
-
}, null, 8, rt)) : W.value.length && !M.value.useCustomCells ? (v(), f(c, { key: 2 }, [
|
|
1118
|
-
e.$slots.pattern ? (v(), f("g", it, [(v(!0), f(c, null, b(mn.value, (t) => (v(), f("defs", null, [x(e.$slots, "pattern", Le({ ref_for: !0 }, {
|
|
1119
|
-
seriesIndex: t.absoluteIndex,
|
|
1120
|
-
patternId: `pattern_${D.value}_${t.absoluteIndex}`
|
|
1121
|
-
}), void 0, !0)]))), 256))])) : d("", !0),
|
|
1122
|
-
(v(!0), f(c, null, b(G.value, (e, t) => (v(), f("rect", {
|
|
1123
|
-
rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
|
|
1124
|
-
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1125
|
-
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1126
|
-
height: V.value <= 0 ? 1e-4 : V.value,
|
|
1127
|
-
width: B.value <= 0 ? 1e-4 : B.value,
|
|
1128
|
-
fill: "white",
|
|
1129
|
-
stroke: M.value.style.chart.layout.rect.stroke,
|
|
1130
|
-
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1131
|
-
filter: Hn(W.value[t].serieIndex)
|
|
1132
|
-
}, null, 8, at))), 256)),
|
|
1133
|
-
(v(!0), f(c, null, b(G.value, (e, t) => (v(), f("rect", {
|
|
1134
|
-
rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
|
|
1135
|
-
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1136
|
-
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1137
|
-
height: V.value <= 0 ? 1e-4 : V.value,
|
|
1138
|
-
width: B.value <= 0 ? 1e-4 : B.value,
|
|
1139
|
-
fill: M.value.style.chart.layout.rect.useGradient && M.value.style.chart.layout.rect.gradientIntensity > 0 ? `url(#gradient_${D.value}_${t})` : W.value[t].color,
|
|
1140
|
-
stroke: M.value.style.chart.layout.rect.stroke,
|
|
1141
|
-
"stroke-width": M.value.style.chart.layout.rect.strokeWidth,
|
|
1142
|
-
filter: Hn(W.value[t].serieIndex)
|
|
1143
|
-
}, null, 8, ot))), 256)),
|
|
1144
|
-
e.$slots.pattern ? (v(), f("g", st, [(v(!0), f(c, null, b(G.value, (e, t) => (v(), f("rect", {
|
|
1145
|
-
rx: M.value.style.chart.layout.rect.rounded ? M.value.style.chart.layout.rect.rounding : 0,
|
|
1146
|
-
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1147
|
-
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1148
|
-
height: V.value <= 0 ? 1e-4 : V.value,
|
|
1149
|
-
width: B.value <= 0 ? 1e-4 : B.value,
|
|
1150
|
-
fill: `url(#pattern_${D.value}_${W.value[t].absoluteIndex})`,
|
|
1151
|
-
stroke: "none",
|
|
1152
|
-
filter: Hn(W.value[t].serieIndex)
|
|
1153
|
-
}, null, 8, ct))), 256))])) : d("", !0)
|
|
1154
|
-
], 64)) : d("", !0),
|
|
1155
|
-
e.$slots.cellSvg ? (v(!0), f(c, { key: 3 }, b(G.value, (t, n) => (v(), f("g", null, [x(e.$slots, "cellSvg", Le({ ref_for: !0 }, {
|
|
1156
|
-
cell: {
|
|
1157
|
-
...t,
|
|
1158
|
-
color: W.value[n].color,
|
|
1159
|
-
height: Math.max(0, V.value),
|
|
1160
|
-
width: Math.max(0, B.value),
|
|
1161
|
-
...W.value[n]
|
|
1162
|
-
},
|
|
1163
|
-
isSelected: [null, void 0].includes(k.value) ? !0 : W.value[n].serieIndex === k.value
|
|
1164
|
-
}), void 0, !0)]))), 256)) : d("", !0),
|
|
1165
|
-
(v(!0), f(c, null, b(G.value, (e, t) => (v(), f(c, null, [Un(t, e) ? (v(), f("text", {
|
|
1166
|
-
key: `datalabel_${t}`,
|
|
1167
|
-
textContent: S(Wn(t, e)),
|
|
1168
|
-
x: e.x + M.value.style.chart.layout.labels.captions.offsetX + M.value.style.chart.layout.grid.spaceBetween / 2 + 6,
|
|
1169
|
-
y: e.y + M.value.style.chart.layout.labels.captions.offsetY + M.value.style.chart.layout.grid.spaceBetween / 2 + un.value / 2 + M.value.style.chart.layout.labels.captions.fontSize / 3,
|
|
1170
|
-
"font-size": M.value.style.chart.layout.labels.captions.fontSize,
|
|
1171
|
-
fill: C(le)(W.value[t].color),
|
|
1172
|
-
filter: Hn(W.value[t].serieIndex)
|
|
1173
|
-
}, null, 8, lt)) : d("", !0)], 64))), 256)),
|
|
1174
|
-
(v(!0), f(c, null, b(G.value, (e, t) => (v(), f("rect", {
|
|
1175
|
-
x: e.x + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1176
|
-
y: e.y + M.value.style.chart.layout.grid.spaceBetween / 2,
|
|
1177
|
-
height: un.value,
|
|
1178
|
-
width: ln.value,
|
|
1179
|
-
fill: "transparent",
|
|
1180
|
-
stroke: "none",
|
|
1181
|
-
onMouseover: (e) => Bn(t),
|
|
1182
|
-
onMouseleave: (e) => zn(t),
|
|
1183
|
-
onClick: (e) => Rn(t)
|
|
1184
|
-
}, null, 40, ut))), 256)),
|
|
1185
|
-
x(e.$slots, "svg", { svg: {
|
|
1186
|
-
...R.value,
|
|
1187
|
-
isPrintingImg: C(nn) || C(rn) || Vt.value,
|
|
1188
|
-
isPrintingSvg: Ht.value
|
|
1189
|
-
} }, void 0, !0)
|
|
1190
|
-
], 46, Ze)), e.$slots.hint ? (v(), f("div", dt, [x(e.$slots, "hint", g(h({
|
|
1191
|
-
hint: M.value.a11y.translations.keyboardNavigation,
|
|
1192
|
-
isVisible: Gt.value
|
|
1193
|
-
})), void 0, !0)])) : d("", !0)]),
|
|
1194
|
-
e.$slots.watermark ? (v(), f("div", ft, [x(e.$slots, "watermark", g(h({ isPrinting: C(nn) || C(rn) || Vt.value || Ht.value })), void 0, !0)])) : d("", !0),
|
|
1195
|
-
p("div", { id: `legend-bottom-${D.value}` }, null, 8, pt),
|
|
1196
|
-
Rt.value && (M.value.style.chart.legend.show || e.$slots.legend) ? (v(), u(Ne, {
|
|
1197
|
-
key: 6,
|
|
1198
|
-
to: M.value.style.chart.legend.position === "top" ? `#legend-top-${D.value}` : `#legend-bottom-${D.value}`
|
|
1199
|
-
}, [p("div", {
|
|
1200
|
-
ref_key: "chartLegend",
|
|
1201
|
-
ref: Mt
|
|
1202
|
-
}, [x(e.$slots, "legend", { legend: J.value }, () => [M.value.style.chart.legend.show ? (v(), u(je, {
|
|
1203
|
-
key: `legend_${Lt.value}`,
|
|
1204
|
-
legendSet: J.value,
|
|
1205
|
-
config: Nn.value,
|
|
1206
|
-
isCursorPointer: N.value,
|
|
1207
|
-
onClickMarker: t[0] ||= ({ legend: e }) => q(e.uid)
|
|
1208
|
-
}, Pe({
|
|
1209
|
-
item: T(({ legend: e }) => [p("div", {
|
|
1210
|
-
onClick: (t) => e.segregate(),
|
|
1211
|
-
style: _(`opacity:${K.value.includes(e.uid) ? .5 : 1}`)
|
|
1212
|
-
}, S(e.display), 13, mt)]),
|
|
1213
|
-
legendToggle: T(() => [J.value.length > 2 && M.value.style.chart.legend.selectAllToggle.show && !C(qt) ? (v(), u(Ee, {
|
|
1214
|
-
key: 0,
|
|
1215
|
-
backgroundColor: M.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1216
|
-
color: M.value.style.chart.legend.selectAllToggle.color,
|
|
1217
|
-
fontSize: M.value.style.chart.legend.fontSize,
|
|
1218
|
-
checked: K.value.length > 0,
|
|
1219
|
-
isCursorPointer: N.value,
|
|
1220
|
-
onToggle: On
|
|
1221
|
-
}, null, 8, [
|
|
1222
|
-
"backgroundColor",
|
|
1223
|
-
"color",
|
|
1224
|
-
"fontSize",
|
|
1225
|
-
"checked",
|
|
1226
|
-
"isCursorPointer"
|
|
1227
|
-
])) : d("", !0)]),
|
|
1228
|
-
_: 2
|
|
1229
|
-
}, [e.$slots.pattern ? {
|
|
1230
|
-
name: "legend-pattern",
|
|
1231
|
-
fn: T(({ legend: e, index: t }) => [Ie(Se, {
|
|
1232
|
-
shape: e.shape,
|
|
1233
|
-
radius: 30,
|
|
1234
|
-
stroke: "none",
|
|
1235
|
-
plot: {
|
|
1236
|
-
x: 30,
|
|
1237
|
-
y: 30
|
|
1238
|
-
},
|
|
1239
|
-
fill: `url(#pattern_${D.value}_${t})`
|
|
1240
|
-
}, null, 8, ["shape", "fill"])]),
|
|
1241
|
-
key: "0"
|
|
1242
|
-
} : void 0]), 1032, [
|
|
1243
|
-
"legendSet",
|
|
1244
|
-
"config",
|
|
1245
|
-
"isCursorPointer"
|
|
1246
|
-
])) : d("", !0)], !0)], 512)], 8, ["to"])) : d("", !0),
|
|
1247
|
-
e.$slots.source ? (v(), f("div", {
|
|
1248
|
-
key: 7,
|
|
1249
|
-
ref_key: "source",
|
|
1250
|
-
ref: Nt,
|
|
1251
|
-
dir: "auto"
|
|
1252
|
-
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : d("", !0),
|
|
1253
|
-
Ie(C(gt), {
|
|
1254
|
-
teleportTo: M.value.style.chart.tooltip.teleportTo,
|
|
1255
|
-
show: L.value.showTooltip && O.value && K.value.length < E.dataset.length,
|
|
1256
|
-
backgroundColor: M.value.style.chart.tooltip.backgroundColor,
|
|
1257
|
-
color: M.value.style.chart.tooltip.color,
|
|
1258
|
-
borderRadius: M.value.style.chart.tooltip.borderRadius,
|
|
1259
|
-
borderColor: M.value.style.chart.tooltip.borderColor,
|
|
1260
|
-
borderWidth: M.value.style.chart.tooltip.borderWidth,
|
|
1261
|
-
backgroundOpacity: M.value.style.chart.tooltip.backgroundOpacity,
|
|
1262
|
-
position: M.value.style.chart.tooltip.position,
|
|
1263
|
-
offsetX: M.value.style.chart.tooltip.offsetX,
|
|
1264
|
-
offsetY: M.value.style.chart.tooltip.offsetY,
|
|
1265
|
-
parent: A.value,
|
|
1266
|
-
content: kt.value,
|
|
1267
|
-
isCustom: M.value.style.chart.tooltip.customFormat && typeof M.value.style.chart.tooltip.customFormat == "function",
|
|
1268
|
-
fontSize: M.value.style.chart.tooltip.fontSize,
|
|
1269
|
-
isFullscreen: $.value,
|
|
1270
|
-
smooth: M.value.style.chart.tooltip.smooth,
|
|
1271
|
-
backdropFilter: M.value.style.chart.tooltip.backdropFilter,
|
|
1272
|
-
smoothForce: M.value.style.chart.tooltip.smoothForce,
|
|
1273
|
-
smoothSnapThreshold: M.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1274
|
-
isA11yMode: Wt.value === "keyboard",
|
|
1275
|
-
a11yPosition: Ut.value
|
|
1276
|
-
}, {
|
|
1277
|
-
"tooltip-before": T(() => [x(e.$slots, "tooltip-before", g(h({ ...Pn.value })), void 0, !0)]),
|
|
1278
|
-
tooltip: T(() => [x(e.$slots, "tooltip", g(h({ ...Pn.value })), void 0, !0)]),
|
|
1279
|
-
"tooltip-after": T(() => [x(e.$slots, "tooltip-after", g(h({ ...Pn.value })), void 0, !0)]),
|
|
1280
|
-
_: 3
|
|
1281
|
-
}, 8, [
|
|
1282
|
-
"teleportTo",
|
|
1283
|
-
"show",
|
|
1284
|
-
"backgroundColor",
|
|
1285
|
-
"color",
|
|
1286
|
-
"borderRadius",
|
|
1287
|
-
"borderColor",
|
|
1288
|
-
"borderWidth",
|
|
1289
|
-
"backgroundOpacity",
|
|
1290
|
-
"position",
|
|
1291
|
-
"offsetX",
|
|
1292
|
-
"offsetY",
|
|
1293
|
-
"parent",
|
|
1294
|
-
"content",
|
|
1295
|
-
"isCustom",
|
|
1296
|
-
"fontSize",
|
|
1297
|
-
"isFullscreen",
|
|
1298
|
-
"smooth",
|
|
1299
|
-
"backdropFilter",
|
|
1300
|
-
"smoothForce",
|
|
1301
|
-
"smoothSnapThreshold",
|
|
1302
|
-
"isA11yMode",
|
|
1303
|
-
"a11yPosition"
|
|
1304
|
-
]),
|
|
1305
|
-
Ot.value && M.value.userOptions.buttons.table ? (v(), u(He(Qn.value.component), Le({ key: 8 }, Qn.value.props, {
|
|
1306
|
-
ref_key: "tableUnit",
|
|
1307
|
-
ref: zt,
|
|
1308
|
-
onClose: $n
|
|
1309
|
-
}), Pe({
|
|
1310
|
-
content: T(() => [(v(), u(C(vt), {
|
|
1311
|
-
key: `table_${It.value}`,
|
|
1312
|
-
colNames: Q.value.colNames,
|
|
1313
|
-
head: Q.value.head,
|
|
1314
|
-
body: Q.value.body,
|
|
1315
|
-
config: Q.value.config,
|
|
1316
|
-
title: M.value.table.useDialog ? "" : Qn.value.title,
|
|
1317
|
-
withCloseButton: !M.value.table.useDialog,
|
|
1318
|
-
isCursorPointer: N.value,
|
|
1319
|
-
onClose: $n
|
|
1320
|
-
}, {
|
|
1321
|
-
th: T(({ th: e }) => [p("div", {
|
|
1322
|
-
innerHTML: e,
|
|
1323
|
-
style: {
|
|
1324
|
-
display: "flex",
|
|
1325
|
-
"align-items": "center"
|
|
1326
|
-
}
|
|
1327
|
-
}, null, 8, ht)]),
|
|
1328
|
-
td: T(({ td: e }) => [Fe(S(e.name || e), 1)]),
|
|
1329
|
-
_: 1
|
|
1330
|
-
}, 8, [
|
|
1331
|
-
"colNames",
|
|
1332
|
-
"head",
|
|
1333
|
-
"body",
|
|
1334
|
-
"config",
|
|
1335
|
-
"title",
|
|
1336
|
-
"withCloseButton",
|
|
1337
|
-
"isCursorPointer"
|
|
1338
|
-
]))]),
|
|
1339
|
-
_: 2
|
|
1340
|
-
}, [M.value.table.useDialog ? {
|
|
1341
|
-
name: "title",
|
|
1342
|
-
fn: T(() => [Fe(S(Qn.value.title), 1)]),
|
|
1343
|
-
key: "0"
|
|
1344
|
-
} : void 0, M.value.table.useDialog ? {
|
|
1345
|
-
name: "actions",
|
|
1346
|
-
fn: T(() => [p("button", {
|
|
1347
|
-
tabindex: "0",
|
|
1348
|
-
class: "vue-ui-user-options-button",
|
|
1349
|
-
onClick: t[1] ||= (e) => Gn(M.value.userOptions.callbacks.csv),
|
|
1350
|
-
style: _({ cursor: N.value ? "pointer" : "default" })
|
|
1351
|
-
}, [Ie(C(_t), {
|
|
1352
|
-
name: "fileCsv",
|
|
1353
|
-
stroke: Qn.value.props.color
|
|
1354
|
-
}, null, 8, ["stroke"])], 4)]),
|
|
1355
|
-
key: "1"
|
|
1356
|
-
} : void 0]), 1040)) : d("", !0),
|
|
1357
|
-
x(e.$slots, "skeleton", {}, () => [C(qt) ? (v(), u(ge, { key: 0 })) : d("", !0)], !0)
|
|
1358
|
-
], 46, qe));
|
|
1359
|
-
}
|
|
1360
|
-
}, [["__scopeId", "data-v-d885b96a"]]);
|
|
1361
|
-
//#endregion
|
|
1362
|
-
export { Ke as n, gt as t };
|