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,2010 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
-
import { G as t, H as n, J as r, Lt as i, Mt as a, S as o, St as ee, Tt as s, X as te, bt as ne, d as re, i as c, jt as l, ot as ie, p as ae, r as oe, t as se, u, x as ce, y as le, zt as ue } from "./lib-BkiwukKO.js";
|
|
3
|
-
import { t as de } from "./useConfig-ByaaSKhz.js";
|
|
4
|
-
import { t as fe } from "./usePrinter-X0yWOynH.js";
|
|
5
|
-
import { n as pe, t as me } from "./BaseScanner-C7dmAref.js";
|
|
6
|
-
import { t as he } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
-
import { t as ge } from "./useNestedProp-Ck4hsrpu.js";
|
|
8
|
-
import { t as _e } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
-
import { t as ve } from "./img-BjOr008R.js";
|
|
10
|
-
import { t as ye } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
11
|
-
import { t as be } from "./A11yDataTable-q2-8fSlJ.js";
|
|
12
|
-
import { t as xe } from "./useUserOptionState-CjPJPTg2.js";
|
|
13
|
-
import { t as Se } from "./useChartAccessibility-Do37qcw2.js";
|
|
14
|
-
import { t as Ce } from "./useTableResponsive-DrM1xqII.js";
|
|
15
|
-
import { t as we } from "./vue_ui_chestnut-BiUZFv40.js";
|
|
16
|
-
import { Fragment as d, computed as f, createBlock as Te, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createSlots as Ee, createTextVNode as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as g, mergeProps as Ae, nextTick as je, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onMounted as Me, openBlock as b, ref as x, renderList as S, renderSlot as C, resolveDynamicComponent as Ne, toDisplayString as w, toRefs as Pe, unref as T, useCssVars as Fe, watch as Ie, withCtx as E, withKeys as Le } from "vue";
|
|
17
|
-
//#region src/components/vue-ui-chestnut.vue
|
|
18
|
-
var Re = /* @__PURE__ */ e({ default: () => Zn }), ze = ["id"], Be = ["id"], Ve = {
|
|
19
|
-
"aria-live": "polite",
|
|
20
|
-
class: "sr-only"
|
|
21
|
-
}, He = {
|
|
22
|
-
key: 2,
|
|
23
|
-
ref: "noTitle",
|
|
24
|
-
class: "vue-data-ui-no-title-space",
|
|
25
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
26
|
-
}, Ue = { style: { position: "relative" } }, We = [
|
|
27
|
-
"xmlns",
|
|
28
|
-
"aria-describedby",
|
|
29
|
-
"viewBox"
|
|
30
|
-
], Ge = ["width", "height"], Ke = { key: 1 }, qe = [
|
|
31
|
-
"fill",
|
|
32
|
-
"font-weight",
|
|
33
|
-
"font-size",
|
|
34
|
-
"x",
|
|
35
|
-
"y"
|
|
36
|
-
], Je = [
|
|
37
|
-
"fill",
|
|
38
|
-
"font-weight",
|
|
39
|
-
"font-size",
|
|
40
|
-
"x",
|
|
41
|
-
"y"
|
|
42
|
-
], Ye = ["id"], Xe = ["stop-color"], Ze = ["stop-color"], Qe = ["id"], $e = ["stop-color"], et = ["stop-color"], tt = ["id"], nt = ["stop-color"], rt = ["stop-color"], it = ["stop-color"], at = ["id"], ot = ["stop-color"], st = ["stop-color"], ct = ["stop-color"], lt = ["id"], ut = ["stop-color"], dt = ["stop-color"], ft = ["stop-color"], pt = { key: 2 }, mt = [
|
|
43
|
-
"x",
|
|
44
|
-
"y",
|
|
45
|
-
"font-size",
|
|
46
|
-
"font-weight",
|
|
47
|
-
"fill"
|
|
48
|
-
], ht = [
|
|
49
|
-
"x",
|
|
50
|
-
"y",
|
|
51
|
-
"font-size",
|
|
52
|
-
"font-weight",
|
|
53
|
-
"fill"
|
|
54
|
-
], gt = ["id"], _t = ["stop-color"], vt = ["stop-color"], yt = [
|
|
55
|
-
"d",
|
|
56
|
-
"stroke",
|
|
57
|
-
"fill"
|
|
58
|
-
], bt = [
|
|
59
|
-
"cx",
|
|
60
|
-
"cy",
|
|
61
|
-
"r",
|
|
62
|
-
"fill"
|
|
63
|
-
], xt = [
|
|
64
|
-
"aria-label",
|
|
65
|
-
"cx",
|
|
66
|
-
"cy",
|
|
67
|
-
"r",
|
|
68
|
-
"fill",
|
|
69
|
-
"stroke",
|
|
70
|
-
"stroke-width",
|
|
71
|
-
"onClick"
|
|
72
|
-
], St = { key: 3 }, Ct = [
|
|
73
|
-
"x",
|
|
74
|
-
"y",
|
|
75
|
-
"font-size",
|
|
76
|
-
"fill",
|
|
77
|
-
"onClick"
|
|
78
|
-
], wt = { key: 0 }, Tt = [
|
|
79
|
-
"x",
|
|
80
|
-
"y",
|
|
81
|
-
"fill",
|
|
82
|
-
"font-size",
|
|
83
|
-
"font-weight"
|
|
84
|
-
], Et = [
|
|
85
|
-
"x",
|
|
86
|
-
"y",
|
|
87
|
-
"height",
|
|
88
|
-
"width",
|
|
89
|
-
"fill",
|
|
90
|
-
"rx",
|
|
91
|
-
"onClick"
|
|
92
|
-
], Dt = [
|
|
93
|
-
"aria-label",
|
|
94
|
-
"x",
|
|
95
|
-
"y",
|
|
96
|
-
"height",
|
|
97
|
-
"width",
|
|
98
|
-
"fill",
|
|
99
|
-
"rx",
|
|
100
|
-
"stroke",
|
|
101
|
-
"stroke-width",
|
|
102
|
-
"onClick"
|
|
103
|
-
], Ot = { key: 4 }, kt = [
|
|
104
|
-
"x",
|
|
105
|
-
"y",
|
|
106
|
-
"fill",
|
|
107
|
-
"font-size",
|
|
108
|
-
"onClick"
|
|
109
|
-
], At = ["d", "stroke"], jt = [
|
|
110
|
-
"aria-label",
|
|
111
|
-
"fill",
|
|
112
|
-
"cx",
|
|
113
|
-
"cy",
|
|
114
|
-
"r",
|
|
115
|
-
"onClick"
|
|
116
|
-
], Mt = { key: 5 }, Nt = [
|
|
117
|
-
"x",
|
|
118
|
-
"y",
|
|
119
|
-
"font-size",
|
|
120
|
-
"font-weight",
|
|
121
|
-
"fill"
|
|
122
|
-
], Pt = [
|
|
123
|
-
"x1",
|
|
124
|
-
"x2",
|
|
125
|
-
"y1",
|
|
126
|
-
"y2",
|
|
127
|
-
"stroke",
|
|
128
|
-
"stroke-width"
|
|
129
|
-
], Ft = [
|
|
130
|
-
"y",
|
|
131
|
-
"height",
|
|
132
|
-
"width"
|
|
133
|
-
], It = { style: {
|
|
134
|
-
width: "100%",
|
|
135
|
-
height: "100%",
|
|
136
|
-
display: "flex",
|
|
137
|
-
"align-items": "center",
|
|
138
|
-
"justify-content": "center",
|
|
139
|
-
"flex-direction": "column"
|
|
140
|
-
} }, Lt = { style: {
|
|
141
|
-
display: "flex",
|
|
142
|
-
"align-items": "center",
|
|
143
|
-
"justify-content": "center",
|
|
144
|
-
gap: "12px",
|
|
145
|
-
"flex-wrap": "wrap",
|
|
146
|
-
"flex-direction": "row"
|
|
147
|
-
} }, Rt = {
|
|
148
|
-
viewBox: "0 0 20 20",
|
|
149
|
-
height: "16",
|
|
150
|
-
width: "16"
|
|
151
|
-
}, zt = ["fill"], Bt = { key: 7 }, Vt = [
|
|
152
|
-
"y",
|
|
153
|
-
"height",
|
|
154
|
-
"width"
|
|
155
|
-
], Ht = { style: {
|
|
156
|
-
width: "100%",
|
|
157
|
-
height: "100%",
|
|
158
|
-
display: "flex",
|
|
159
|
-
"align-items": "center",
|
|
160
|
-
"justify-content": "center",
|
|
161
|
-
"flex-direction": "column"
|
|
162
|
-
} }, Ut = { style: {
|
|
163
|
-
display: "flex",
|
|
164
|
-
"align-items": "center",
|
|
165
|
-
"justify-content": "center",
|
|
166
|
-
gap: "12px",
|
|
167
|
-
"flex-wrap": "wrap",
|
|
168
|
-
"flex-direction": "row"
|
|
169
|
-
} }, Wt = {
|
|
170
|
-
viewBox: "0 0 20 20",
|
|
171
|
-
height: "16",
|
|
172
|
-
width: "16"
|
|
173
|
-
}, Gt = ["fill"], Kt = [
|
|
174
|
-
"cx",
|
|
175
|
-
"cy",
|
|
176
|
-
"fill"
|
|
177
|
-
], qt = ["d", "stroke"], Jt = [
|
|
178
|
-
"cx",
|
|
179
|
-
"cy",
|
|
180
|
-
"fill"
|
|
181
|
-
], Yt = ["d", "stroke"], Xt = [
|
|
182
|
-
"cx",
|
|
183
|
-
"cy",
|
|
184
|
-
"fill"
|
|
185
|
-
], Zt = [
|
|
186
|
-
"cx",
|
|
187
|
-
"cy",
|
|
188
|
-
"fill"
|
|
189
|
-
], Qt = [
|
|
190
|
-
"x",
|
|
191
|
-
"y",
|
|
192
|
-
"fill",
|
|
193
|
-
"font-size",
|
|
194
|
-
"font-weight"
|
|
195
|
-
], $t = [
|
|
196
|
-
"x",
|
|
197
|
-
"y",
|
|
198
|
-
"fill",
|
|
199
|
-
"font-size",
|
|
200
|
-
"font-weight"
|
|
201
|
-
], en = [
|
|
202
|
-
"x",
|
|
203
|
-
"text-anchor",
|
|
204
|
-
"y",
|
|
205
|
-
"fill",
|
|
206
|
-
"font-size"
|
|
207
|
-
], tn = [
|
|
208
|
-
"x",
|
|
209
|
-
"text-anchor",
|
|
210
|
-
"y",
|
|
211
|
-
"fill",
|
|
212
|
-
"font-size"
|
|
213
|
-
], nn = [
|
|
214
|
-
"x",
|
|
215
|
-
"text-anchor",
|
|
216
|
-
"y",
|
|
217
|
-
"fill",
|
|
218
|
-
"font-size"
|
|
219
|
-
], rn = [
|
|
220
|
-
"x",
|
|
221
|
-
"text-anchor",
|
|
222
|
-
"y",
|
|
223
|
-
"fill",
|
|
224
|
-
"font-size"
|
|
225
|
-
], an = [
|
|
226
|
-
"x",
|
|
227
|
-
"text-anchor",
|
|
228
|
-
"y",
|
|
229
|
-
"fill",
|
|
230
|
-
"font-size"
|
|
231
|
-
], on = [
|
|
232
|
-
"x",
|
|
233
|
-
"y",
|
|
234
|
-
"font-size",
|
|
235
|
-
"fill"
|
|
236
|
-
], sn = [
|
|
237
|
-
"x",
|
|
238
|
-
"y",
|
|
239
|
-
"font-size",
|
|
240
|
-
"fill"
|
|
241
|
-
], cn = [
|
|
242
|
-
"x",
|
|
243
|
-
"y",
|
|
244
|
-
"font-size",
|
|
245
|
-
"fill"
|
|
246
|
-
], ln = {
|
|
247
|
-
key: 4,
|
|
248
|
-
class: "vue-data-ui-watermark"
|
|
249
|
-
}, un = {
|
|
250
|
-
key: 5,
|
|
251
|
-
ref: "source",
|
|
252
|
-
dir: "auto"
|
|
253
|
-
}, dn = { class: "vue-ui-data-table" }, fn = { key: 0 }, pn = ["data-cell"], mn = { style: {
|
|
254
|
-
display: "flex",
|
|
255
|
-
"align-items": "center",
|
|
256
|
-
gap: "5px",
|
|
257
|
-
"justify-content": "flex-end",
|
|
258
|
-
width: "100%",
|
|
259
|
-
"padding-right": "3px"
|
|
260
|
-
} }, hn = { key: 0 }, gn = { key: 1 }, _n = ["data-cell"], vn = { style: {
|
|
261
|
-
display: "flex",
|
|
262
|
-
"align-items": "center",
|
|
263
|
-
gap: "5px",
|
|
264
|
-
"justify-content": "flex-end",
|
|
265
|
-
width: "100%",
|
|
266
|
-
"padding-right": "3px"
|
|
267
|
-
} }, yn = { key: 0 }, bn = { key: 1 }, xn = ["data-cell"], Sn = { style: {
|
|
268
|
-
display: "flex",
|
|
269
|
-
"align-items": "center",
|
|
270
|
-
gap: "5px",
|
|
271
|
-
"justify-content": "flex-end",
|
|
272
|
-
width: "100%",
|
|
273
|
-
"padding-right": "3px"
|
|
274
|
-
} }, Cn = { key: 0 }, wn = { key: 1 }, Tn = ["data-cell"], En = { style: {
|
|
275
|
-
display: "flex",
|
|
276
|
-
"align-items": "center",
|
|
277
|
-
gap: "5px",
|
|
278
|
-
"justify-content": "flex-end",
|
|
279
|
-
width: "100%",
|
|
280
|
-
"padding-right": "3px"
|
|
281
|
-
} }, Dn = { key: 0 }, On = { key: 1 }, kn = ["data-cell"], An = { style: {
|
|
282
|
-
display: "flex",
|
|
283
|
-
"align-items": "center",
|
|
284
|
-
gap: "5px",
|
|
285
|
-
"justify-content": "flex-end",
|
|
286
|
-
width: "100%",
|
|
287
|
-
"padding-right": "3px"
|
|
288
|
-
} }, jn = { key: 0 }, Mn = { key: 1 }, Nn = ["data-cell"], Pn = { style: {
|
|
289
|
-
display: "flex",
|
|
290
|
-
"align-items": "center",
|
|
291
|
-
gap: "5px",
|
|
292
|
-
"justify-content": "flex-end",
|
|
293
|
-
width: "100%",
|
|
294
|
-
"padding-right": "3px"
|
|
295
|
-
} }, Fn = { key: 0 }, In = { key: 1 }, Ln = ["data-cell"], Rn = { style: {
|
|
296
|
-
display: "flex",
|
|
297
|
-
"align-items": "center",
|
|
298
|
-
gap: "5px",
|
|
299
|
-
"justify-content": "flex-end",
|
|
300
|
-
width: "100%",
|
|
301
|
-
"padding-right": "3px"
|
|
302
|
-
} }, zn = { key: 0 }, Bn = { key: 1 }, Vn = ["data-cell"], Hn = { style: {
|
|
303
|
-
display: "flex",
|
|
304
|
-
"align-items": "center",
|
|
305
|
-
gap: "5px",
|
|
306
|
-
"justify-content": "flex-end",
|
|
307
|
-
width: "100%",
|
|
308
|
-
"padding-right": "3px"
|
|
309
|
-
} }, Un = ["data-cell"], Wn = { style: {
|
|
310
|
-
display: "flex",
|
|
311
|
-
"align-items": "center",
|
|
312
|
-
gap: "5px",
|
|
313
|
-
"justify-content": "flex-end",
|
|
314
|
-
width: "100%",
|
|
315
|
-
"padding-right": "3px"
|
|
316
|
-
} }, Gn = ["data-cell"], Kn = { style: {
|
|
317
|
-
display: "flex",
|
|
318
|
-
"align-items": "center",
|
|
319
|
-
gap: "5px",
|
|
320
|
-
"justify-content": "flex-end",
|
|
321
|
-
width: "100%",
|
|
322
|
-
"padding-right": "3px"
|
|
323
|
-
} }, qn = ["data-cell"], Jn = { style: {
|
|
324
|
-
display: "flex",
|
|
325
|
-
"align-items": "center",
|
|
326
|
-
gap: "5px",
|
|
327
|
-
"justify-content": "flex-end",
|
|
328
|
-
width: "100%",
|
|
329
|
-
"padding-right": "3px"
|
|
330
|
-
} }, Yn = ["data-cell"], Xn = { style: {
|
|
331
|
-
display: "flex",
|
|
332
|
-
"align-items": "center",
|
|
333
|
-
gap: "5px",
|
|
334
|
-
"justify-content": "flex-end",
|
|
335
|
-
width: "100%",
|
|
336
|
-
"padding-right": "3px"
|
|
337
|
-
} }, Zn = /* @__PURE__ */ ye({
|
|
338
|
-
__name: "vue-ui-chestnut",
|
|
339
|
-
props: {
|
|
340
|
-
config: {
|
|
341
|
-
type: Object,
|
|
342
|
-
default() {
|
|
343
|
-
return {};
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
dataset: {
|
|
347
|
-
type: Array,
|
|
348
|
-
default() {
|
|
349
|
-
return [];
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
emits: [
|
|
354
|
-
"selectRoot",
|
|
355
|
-
"selectBranch",
|
|
356
|
-
"selectNut",
|
|
357
|
-
"copyAlt"
|
|
358
|
-
],
|
|
359
|
-
setup(e, { expose: ye, emit: Re }) {
|
|
360
|
-
Fe((e) => ({ bd8a0696: e.tdo }));
|
|
361
|
-
let Zn = ke(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), Qn = ke(() => import("./vue-ui-accordion-BX9WL-QF.js").then((e) => e.n)), $n = ke(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), er = ke(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), tr = ke(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), nr = ke(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), { vue_ui_chestnut: rr } = de(), { isThemeValid: ir, warnInvalidTheme: ar } = _e(), D = e, or = f(() => !!D.dataset && D.dataset.length), O = x(n()), sr = x(null), cr = x(0), lr = x(null), ur = x(null), dr = x(!1), fr = x(!1), pr = x(!1), k = x(!1), A = x(""), j = x({
|
|
362
|
-
level: "root",
|
|
363
|
-
rootIndex: 0,
|
|
364
|
-
branchIndex: 0,
|
|
365
|
-
nutIndex: 0,
|
|
366
|
-
locked: !1
|
|
367
|
-
}), M = x(xr()), N = f(() => M.value.userOptions.useCursorPointer), mr = f(() => ue({
|
|
368
|
-
defaultConfig: {
|
|
369
|
-
userOptions: { show: !1 },
|
|
370
|
-
table: { show: !1 },
|
|
371
|
-
style: { chart: {
|
|
372
|
-
backgroundColor: "#99999930",
|
|
373
|
-
layout: {
|
|
374
|
-
grandTotal: { show: !1 },
|
|
375
|
-
roots: {
|
|
376
|
-
stroke: "#6A6A6A",
|
|
377
|
-
labels: { show: !1 }
|
|
378
|
-
},
|
|
379
|
-
verticalSeparator: { stroke: "transparent" },
|
|
380
|
-
branches: {
|
|
381
|
-
stroke: "#6A6A6A",
|
|
382
|
-
underlayerColor: "#6A6A6A90",
|
|
383
|
-
labels: {
|
|
384
|
-
show: !1,
|
|
385
|
-
dataLabels: { show: !1 }
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
} }
|
|
390
|
-
},
|
|
391
|
-
userConfig: M.value.skeletonConfig ?? {}
|
|
392
|
-
})), { loading: hr, FINAL_DATASET: gr } = pe({
|
|
393
|
-
...Pe(D),
|
|
394
|
-
FINAL_CONFIG: M,
|
|
395
|
-
prepareConfig: xr,
|
|
396
|
-
skeletonDataset: D.config?.skeletonDataset ?? [{
|
|
397
|
-
name: "_",
|
|
398
|
-
color: "#969696",
|
|
399
|
-
branches: [
|
|
400
|
-
{
|
|
401
|
-
name: "_",
|
|
402
|
-
value: 32,
|
|
403
|
-
breakdown: [{
|
|
404
|
-
name: "_",
|
|
405
|
-
value: 16,
|
|
406
|
-
color: "#CACACA"
|
|
407
|
-
}, {
|
|
408
|
-
name: "_",
|
|
409
|
-
value: 16,
|
|
410
|
-
color: "#6A6A6A"
|
|
411
|
-
}]
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
name: "_",
|
|
415
|
-
value: 16,
|
|
416
|
-
breakdown: [{
|
|
417
|
-
name: "_",
|
|
418
|
-
value: 8,
|
|
419
|
-
color: "#CACACA"
|
|
420
|
-
}, {
|
|
421
|
-
name: "_",
|
|
422
|
-
value: 8,
|
|
423
|
-
color: "#6A6A6A"
|
|
424
|
-
}]
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
name: "_",
|
|
428
|
-
value: 8,
|
|
429
|
-
breakdown: [{
|
|
430
|
-
name: "_",
|
|
431
|
-
value: 4,
|
|
432
|
-
color: "#CACACA"
|
|
433
|
-
}, {
|
|
434
|
-
name: "_",
|
|
435
|
-
value: 4,
|
|
436
|
-
color: "#6A6A6A"
|
|
437
|
-
}]
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
name: "_",
|
|
441
|
-
value: 4,
|
|
442
|
-
breakdown: [{
|
|
443
|
-
name: "_",
|
|
444
|
-
value: 2,
|
|
445
|
-
color: "#CACACA"
|
|
446
|
-
}, {
|
|
447
|
-
name: "_",
|
|
448
|
-
value: 2,
|
|
449
|
-
color: "#6A6A6A"
|
|
450
|
-
}]
|
|
451
|
-
}
|
|
452
|
-
]
|
|
453
|
-
}, {
|
|
454
|
-
name: "_",
|
|
455
|
-
color: "#C4C4C4",
|
|
456
|
-
branches: [
|
|
457
|
-
{
|
|
458
|
-
name: "_",
|
|
459
|
-
value: 24,
|
|
460
|
-
breakdown: [{
|
|
461
|
-
name: "_",
|
|
462
|
-
value: 12,
|
|
463
|
-
color: "#CACACA"
|
|
464
|
-
}, {
|
|
465
|
-
name: "_",
|
|
466
|
-
value: 12,
|
|
467
|
-
color: "#6A6A6A"
|
|
468
|
-
}]
|
|
469
|
-
},
|
|
470
|
-
{
|
|
471
|
-
name: "_",
|
|
472
|
-
value: 12,
|
|
473
|
-
breakdown: [{
|
|
474
|
-
name: "_",
|
|
475
|
-
value: 6,
|
|
476
|
-
color: "#CACACA"
|
|
477
|
-
}, {
|
|
478
|
-
name: "_",
|
|
479
|
-
value: 6,
|
|
480
|
-
color: "#6A6A6A"
|
|
481
|
-
}]
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
name: "_",
|
|
485
|
-
value: 6,
|
|
486
|
-
breakdown: [{
|
|
487
|
-
name: "_",
|
|
488
|
-
value: 3,
|
|
489
|
-
color: "#CACACA"
|
|
490
|
-
}, {
|
|
491
|
-
name: "_",
|
|
492
|
-
value: 3,
|
|
493
|
-
color: "#6A6A6A"
|
|
494
|
-
}]
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
name: "_",
|
|
498
|
-
value: 2,
|
|
499
|
-
breakdown: [{
|
|
500
|
-
name: "_",
|
|
501
|
-
value: 1,
|
|
502
|
-
color: "#CACACA"
|
|
503
|
-
}, {
|
|
504
|
-
name: "_",
|
|
505
|
-
value: 1,
|
|
506
|
-
color: "#6A6A6A"
|
|
507
|
-
}]
|
|
508
|
-
}
|
|
509
|
-
]
|
|
510
|
-
}],
|
|
511
|
-
skeletonConfig: ue({
|
|
512
|
-
defaultConfig: M.value,
|
|
513
|
-
userConfig: mr.value
|
|
514
|
-
})
|
|
515
|
-
}), { userOptionsVisible: _r, setUserOptionsVisibility: vr, keepUserOptionState: yr } = xe({ config: M.value }), { svgRef: br } = Se({ config: M.value.style.chart.layout.title });
|
|
516
|
-
function xr() {
|
|
517
|
-
let e = ge({
|
|
518
|
-
userConfig: D.config,
|
|
519
|
-
defaultConfig: rr
|
|
520
|
-
}), t = e.theme;
|
|
521
|
-
if (!t) return e;
|
|
522
|
-
if (!ir.value(e)) return ar(e), e;
|
|
523
|
-
let n = ge({
|
|
524
|
-
userConfig: we[t] || D.config,
|
|
525
|
-
defaultConfig: e
|
|
526
|
-
}), r = ge({
|
|
527
|
-
userConfig: D.config,
|
|
528
|
-
defaultConfig: n
|
|
529
|
-
});
|
|
530
|
-
return {
|
|
531
|
-
...r,
|
|
532
|
-
customPalette: r.customPalette.length ? r.customPalette : i[t] || s
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
Ie(() => D.config, (e) => {
|
|
536
|
-
M.value = xr(), _r.value = !M.value.userOptions.showOnChartHover, P.value.showTable = M.value.table.show, qr();
|
|
537
|
-
}, { deep: !0 });
|
|
538
|
-
let { isPrinting: Sr, isImaging: Cr, generatePdf: wr, generateImage: Tr } = fe({
|
|
539
|
-
elementId: `vue-ui-chestnut_${O.value}`,
|
|
540
|
-
fileName: M.value.style.chart.layout.title.text || "vue-ui-chestnut",
|
|
541
|
-
options: M.value.userOptions.print
|
|
542
|
-
}), Er = f(() => M.value.userOptions.show), Dr = f(() => ce(M.value.customPalette)), P = x({ showTable: M.value.table.show });
|
|
543
|
-
Ie(M, () => {
|
|
544
|
-
P.value = { showTable: M.value.table.show };
|
|
545
|
-
}, { immediate: !0 });
|
|
546
|
-
let Or = x(null), kr = f(() => M.value.table.responsiveBreakpoint), F = x({
|
|
547
|
-
gap: 6,
|
|
548
|
-
padding: {
|
|
549
|
-
top: 102,
|
|
550
|
-
left: 12,
|
|
551
|
-
right: 12,
|
|
552
|
-
bottom: 96
|
|
553
|
-
},
|
|
554
|
-
width: 1024,
|
|
555
|
-
height: 0,
|
|
556
|
-
branchSize: 32,
|
|
557
|
-
branchStart: 128
|
|
558
|
-
}), I = f(() => ({
|
|
559
|
-
left: F.value.padding.left,
|
|
560
|
-
top: F.value.padding.top,
|
|
561
|
-
right: F.value.width - F.value.padding.right,
|
|
562
|
-
bottom: F.value.height - F.value.padding.bottom,
|
|
563
|
-
width: F.value.width - (F.value.padding.left + F.value.padding.right),
|
|
564
|
-
height: F.value.height - (F.value.padding.top + F.value.padding.bottom),
|
|
565
|
-
seedX: F.value.padding.left + 64
|
|
566
|
-
})), L = f(() => gr.value.flatMap((e) => (e.branches || []).map((e) => e.value || 0)).reduce((e, t) => e + t, 0)), R = f(() => (gr.value.forEach((e, t) => {
|
|
567
|
-
ie({
|
|
568
|
-
datasetObject: e,
|
|
569
|
-
requiredAttributes: ["name", "branches"]
|
|
570
|
-
}).forEach((e) => {
|
|
571
|
-
te({
|
|
572
|
-
componentName: "VueUiChestnut",
|
|
573
|
-
type: "datasetSerieAttribute",
|
|
574
|
-
property: e,
|
|
575
|
-
index: t,
|
|
576
|
-
debug: Kr.value
|
|
577
|
-
});
|
|
578
|
-
}), e.branches && e.branches.forEach((e, n) => {
|
|
579
|
-
ie({
|
|
580
|
-
datasetObject: e,
|
|
581
|
-
requiredAttributes: ["name", "value"]
|
|
582
|
-
}).forEach((e) => {
|
|
583
|
-
te({
|
|
584
|
-
componentName: "VueUiChestnut",
|
|
585
|
-
type: "datasetSerieAttribute",
|
|
586
|
-
property: e,
|
|
587
|
-
index: `${t} - ${n}`,
|
|
588
|
-
debug: Kr.value
|
|
589
|
-
});
|
|
590
|
-
}), e.breakdown && e.breakdown.forEach((e, r) => {
|
|
591
|
-
ie({
|
|
592
|
-
datasetObject: e,
|
|
593
|
-
requiredAttributes: ["name", "value"]
|
|
594
|
-
}).forEach((e) => {
|
|
595
|
-
te({
|
|
596
|
-
componentName: "VueUiChestnut",
|
|
597
|
-
type: "datasetSerieAttribute",
|
|
598
|
-
property: e,
|
|
599
|
-
index: `${t} - ${n} - ${r}`,
|
|
600
|
-
debug: Kr.value
|
|
601
|
-
});
|
|
602
|
-
});
|
|
603
|
-
});
|
|
604
|
-
});
|
|
605
|
-
}), gr.value.map((e, t) => {
|
|
606
|
-
let n = (e.branches || []).map((e) => e.value || 0).reduce((e, t) => e + t, 0);
|
|
607
|
-
return {
|
|
608
|
-
...e,
|
|
609
|
-
color: le(e.color) || Dr.value[t] || s[t] || s[t % s.length],
|
|
610
|
-
id: e.id || `root_${t}_${O.value}`,
|
|
611
|
-
type: "root",
|
|
612
|
-
total: n,
|
|
613
|
-
rootIndex: t,
|
|
614
|
-
branches: (e.branches || []).map((r, i) => ({
|
|
615
|
-
...r,
|
|
616
|
-
rootName: e.name,
|
|
617
|
-
rootIndex: t,
|
|
618
|
-
color: le(e.color) || Dr.value[t] || s[t] || s[t % s.length],
|
|
619
|
-
value: r.value >= 0 ? r.value : 0,
|
|
620
|
-
id: r.id || `branch_${t}_${i}_${O.value}`,
|
|
621
|
-
proportionToRoot: r.value / n,
|
|
622
|
-
type: "branch",
|
|
623
|
-
breakdown: (r.breakdown || []).map((a, o) => ({
|
|
624
|
-
table: {
|
|
625
|
-
rootName: e.name,
|
|
626
|
-
rootValue: n,
|
|
627
|
-
rootToTotal: n / L.value,
|
|
628
|
-
branchName: r.name,
|
|
629
|
-
branchValue: r.value,
|
|
630
|
-
branchToTotal: r.value / L.value,
|
|
631
|
-
branchToRoot: r.value / n,
|
|
632
|
-
nutName: a.name,
|
|
633
|
-
nutValue: a.value,
|
|
634
|
-
nutToTotal: a.value / L.value,
|
|
635
|
-
nutToRoot: a.value / n,
|
|
636
|
-
nutToBranch: a.value / r.value
|
|
637
|
-
},
|
|
638
|
-
...a,
|
|
639
|
-
type: "nut",
|
|
640
|
-
branchName: r.name,
|
|
641
|
-
rootName: e.name,
|
|
642
|
-
branchTotal: r.value >= 0 ? r.value : 0,
|
|
643
|
-
proportionToBranch: a.value / r.value,
|
|
644
|
-
proportionToRoot: a.value / n,
|
|
645
|
-
proportionToTree: a.value / L.value,
|
|
646
|
-
rootIndex: t,
|
|
647
|
-
id: a.id || `nut_${t}_${i}_${o}_${O.value}`,
|
|
648
|
-
color: le(a.color) || Dr.value[o] || s[o] || s[o % s.length],
|
|
649
|
-
value: a.value >= 0 ? a.value : 0
|
|
650
|
-
}))
|
|
651
|
-
}))
|
|
652
|
-
};
|
|
653
|
-
})));
|
|
654
|
-
function Ar() {
|
|
655
|
-
return R.value;
|
|
656
|
-
}
|
|
657
|
-
let z = Re, jr = f(() => R.value.flatMap((e) => e.branches).length), Mr = f(() => Math.max(...R.value.map((e) => e.branches.map((e) => e.value).reduce((e, t) => e + t, 0)))), Nr = f(() => Math.max(...R.value.flatMap((e) => e.branches.map((e) => e.value)))), Pr = f(() => 256 + F.value.padding.left), B = f(() => R.value.sort((e, t) => t.total - e.total).map((e, t) => {
|
|
658
|
-
let n = I.value.height / R.value.length / 2, r = e.total / Mr.value * (n > 64 ? 64 : n);
|
|
659
|
-
return {
|
|
660
|
-
...e,
|
|
661
|
-
x: I.value.seedX,
|
|
662
|
-
y: I.value.top + I.value.height / R.value.length * (t + 1) - (I.value.height / R.value.length / 2 + F.value.gap / 2),
|
|
663
|
-
r: r < F.value.branchSize / 2 ? F.value.branchSize / 2 : r
|
|
664
|
-
};
|
|
665
|
-
})), Fr = f(() => M.value.style.chart.layout.branches.widthRatio <= 0 ? .1 : M.value.style.chart.layout.branches.widthRatio > 1.8 ? 1.8 : M.value.style.chart.layout.branches.widthRatio), Ir = f(() => B.value.flatMap((e) => e.branches)), V = f(() => Ir.value.sort((e, t) => t.value - e.value).map((e, t) => ({
|
|
666
|
-
...e,
|
|
667
|
-
y1: t * F.value.branchSize + I.value.top + t * F.value.gap,
|
|
668
|
-
y2: t * F.value.branchSize + F.value.branchSize,
|
|
669
|
-
x1: Pr.value,
|
|
670
|
-
x2: 384 * e.value / Nr.value * Fr.value + Pr.value
|
|
671
|
-
}))), Lr = f(() => B.value), Rr = f(() => Lr.value.map((e) => V.value.filter((t) => t.rootIndex === e.rootIndex).sort((e, t) => e.y1 - t.y1))), zr = f(() => Lr.value.map((e, t) => Rr.value[t].map((e) => (e.breakdown || []).map((t, n) => ({
|
|
672
|
-
...t,
|
|
673
|
-
nutIndex: n,
|
|
674
|
-
rootIndex: e.rootIndex,
|
|
675
|
-
branchId: e.id,
|
|
676
|
-
branchName: e.name,
|
|
677
|
-
branchValue: e.value,
|
|
678
|
-
rootName: e.rootName
|
|
679
|
-
})))));
|
|
680
|
-
function Br(e) {
|
|
681
|
-
let t = B.value.find((t) => t.rootIndex === e.rootIndex);
|
|
682
|
-
return {
|
|
683
|
-
x: t.x,
|
|
684
|
-
y: t.y,
|
|
685
|
-
r: t.r
|
|
686
|
-
};
|
|
687
|
-
}
|
|
688
|
-
let H = x(null), U = x(null), W = x(null), G = x(null);
|
|
689
|
-
function K() {
|
|
690
|
-
H.value = null, W.value = null, G.value = null;
|
|
691
|
-
}
|
|
692
|
-
function q(e) {
|
|
693
|
-
if (H.value) return e.type === "root" ? e.rootIndex === H.value.rootIndex : e.type === "branch" ? e.id === H.value.id : e.type === "nut" ? e.branchName === H.value.name && e.rootIndex === H.value.rootIndex : !1;
|
|
694
|
-
if (W.value) return e.type === "root" ? e.rootIndex === W.value.rootIndex : e.type === "branch" ? e.id === W.value.id : e.type === "nut" ? e.branchName === W.value.name && e.rootIndex === W.value.rootIndex : !1;
|
|
695
|
-
if (G.value) return e.type === "root" ? e.id === G.value.id : e.type === "branch" || e.type === "nut" ? e.rootIndex === G.value.rootIndex : !1;
|
|
696
|
-
if (xi.value && k.value) {
|
|
697
|
-
if (j.value.level === "root") return e.type === "root" ? Z.value && e.id === Z.value.id : e.type === "branch" || e.type === "nut" ? Z.value && e.rootIndex === Z.value.rootIndex : !1;
|
|
698
|
-
if (j.value.level === "branch") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? yi.value && e.id === yi.value.id : (e.type, !1);
|
|
699
|
-
if (j.value.level === "nut") return e.type === "root" ? Z.value && e.rootIndex === Z.value.rootIndex : e.type === "branch" ? bi.value && e.id === bi.value.id : e.type === "nut" ? bi.value && e.branchName === bi.value.name && e.rootIndex === bi.value.rootIndex : !1;
|
|
700
|
-
}
|
|
701
|
-
return !0;
|
|
702
|
-
}
|
|
703
|
-
function Vr(e) {
|
|
704
|
-
K();
|
|
705
|
-
let t = Lr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (Rr.value[t] || []).findIndex((t) => t.id === e.id);
|
|
706
|
-
t !== -1 && (j.value.rootIndex = t), n !== -1 && (j.value.branchIndex = n), j.value.level = "nut", j.value.nutIndex = 0, je(() => {
|
|
707
|
-
H.value = e, W.value = e, U.value = ne({
|
|
708
|
-
series: e.breakdown,
|
|
709
|
-
base: 1
|
|
710
|
-
}, e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX, e.y1 + F.value.branchSize / 2, 80, 80), z("selectNut", e.breakdown), Q();
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
function J() {
|
|
714
|
-
H.value = null, U.value = null, z("selectNut", null);
|
|
715
|
-
}
|
|
716
|
-
function Hr(e) {
|
|
717
|
-
let t = Lr.value.findIndex((t) => t.rootIndex === e.rootIndex), n = (Rr.value[t] || []).findIndex((t) => t.id === e.id);
|
|
718
|
-
t !== -1 && (j.value.rootIndex = t), n !== -1 && (j.value.branchIndex = n), j.value.level = "branch", j.value.nutIndex = 0, W.value && W.value.id === e.id ? (W.value = null, K(), z("selectBranch", null), Q()) : (K(), W.value = e, z("selectBranch", e), Q());
|
|
719
|
-
}
|
|
720
|
-
function Ur(e) {
|
|
721
|
-
let t = Lr.value.findIndex((t) => t.id === e.id);
|
|
722
|
-
t !== -1 && (j.value.rootIndex = t), j.value.level = "root", j.value.branchIndex = 0, j.value.nutIndex = 0, G.value && G.value.id === e.id ? (K(), z("selectRoot", null), Q()) : (K(), G.value = e, z("selectRoot", e), Q());
|
|
723
|
-
}
|
|
724
|
-
function Wr() {
|
|
725
|
-
return I.value.bottom - (H.value.y1 + 180) < 0 ? 0 : I.value.bottom;
|
|
726
|
-
}
|
|
727
|
-
function Gr(e) {
|
|
728
|
-
return e.proportion * 100 > M.value.style.chart.layout.nuts.selected.labels.dataLabels.hideUnderValue;
|
|
729
|
-
}
|
|
730
|
-
Me(() => {
|
|
731
|
-
qr();
|
|
732
|
-
});
|
|
733
|
-
let Kr = f(() => M.value.debug);
|
|
734
|
-
function qr() {
|
|
735
|
-
ee(D.dataset) && te({
|
|
736
|
-
componentName: "VueUiChestnut",
|
|
737
|
-
type: "dataset",
|
|
738
|
-
debug: Kr.value
|
|
739
|
-
});
|
|
740
|
-
let e = jr.value * (F.value.branchSize + F.value.gap) + F.value.padding.top + F.value.padding.bottom;
|
|
741
|
-
F.value.height = e;
|
|
742
|
-
}
|
|
743
|
-
let Y = f(() => ({
|
|
744
|
-
head: [
|
|
745
|
-
M.value.table.th.translations.rootName,
|
|
746
|
-
M.value.table.th.translations.rootValue,
|
|
747
|
-
M.value.table.th.translations.rootToTotal,
|
|
748
|
-
M.value.table.th.translations.branchName,
|
|
749
|
-
M.value.table.th.translations.branchValue,
|
|
750
|
-
M.value.table.th.translations.branchToRoot,
|
|
751
|
-
M.value.table.th.translations.branchToTotal,
|
|
752
|
-
M.value.table.th.translations.nutName,
|
|
753
|
-
M.value.table.th.translations.nutValue,
|
|
754
|
-
M.value.table.th.translations.nutToBranch,
|
|
755
|
-
M.value.table.th.translations.nutToRoot,
|
|
756
|
-
M.value.table.th.translations.nutToTotal
|
|
757
|
-
],
|
|
758
|
-
body: R.value.flatMap((e, t) => e.branches.flatMap((e, t) => e.breakdown.flatMap((e, t) => e.table)))
|
|
759
|
-
}));
|
|
760
|
-
function Jr(e = null) {
|
|
761
|
-
je(() => {
|
|
762
|
-
let t = [
|
|
763
|
-
[M.value.style.chart.layout.title.text],
|
|
764
|
-
[M.value.style.chart.layout.title.subtitle.text],
|
|
765
|
-
[""],
|
|
766
|
-
["Grand total", L.value],
|
|
767
|
-
[""]
|
|
768
|
-
], n = Y.value.head, i = Y.value.body.map((e, t) => [
|
|
769
|
-
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootName,
|
|
770
|
-
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootValue,
|
|
771
|
-
Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? "" : e.rootToTotal,
|
|
772
|
-
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchName,
|
|
773
|
-
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchValue,
|
|
774
|
-
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToRoot,
|
|
775
|
-
Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? "" : e.branchToTotal,
|
|
776
|
-
e.nutName,
|
|
777
|
-
e.nutValue,
|
|
778
|
-
e.nutToBranch,
|
|
779
|
-
e.nutToRoot,
|
|
780
|
-
e.nutToTotal
|
|
781
|
-
]), a = o(t.concat([n]).concat(i));
|
|
782
|
-
e ? e(a) : r({
|
|
783
|
-
csvContent: a,
|
|
784
|
-
title: M.value.style.chart.layout.title.text || "vue-ui-chestnut"
|
|
785
|
-
});
|
|
786
|
-
});
|
|
787
|
-
}
|
|
788
|
-
let Yr = x(!1);
|
|
789
|
-
function Xr(e) {
|
|
790
|
-
Yr.value = e, cr.value += 1;
|
|
791
|
-
}
|
|
792
|
-
function Zr() {
|
|
793
|
-
P.value.showTable = !P.value.showTable;
|
|
794
|
-
}
|
|
795
|
-
let Qr = x(!1);
|
|
796
|
-
function $r() {
|
|
797
|
-
Qr.value = !Qr.value;
|
|
798
|
-
}
|
|
799
|
-
async function ei({ scale: e = 2 } = {}) {
|
|
800
|
-
if (!sr.value) return;
|
|
801
|
-
let { width: t, height: n } = sr.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
|
|
802
|
-
domElement: sr.value,
|
|
803
|
-
base64: !0,
|
|
804
|
-
img: !0,
|
|
805
|
-
scale: e
|
|
806
|
-
});
|
|
807
|
-
return {
|
|
808
|
-
imageUri: i,
|
|
809
|
-
base64: a,
|
|
810
|
-
title: M.value.style.chart.layout.title.text,
|
|
811
|
-
width: t,
|
|
812
|
-
height: n,
|
|
813
|
-
aspectRatio: r
|
|
814
|
-
};
|
|
815
|
-
}
|
|
816
|
-
function ti(e) {
|
|
817
|
-
let t = Br(e), n = e.x1, r = e.y1, i = F.value.branchSize, a = t.x + t.r / 2, o = t.y;
|
|
818
|
-
return [
|
|
819
|
-
`M ${n},${r}`,
|
|
820
|
-
`C ${n - 20},${r} ${n - 20},${r} ${a},${o}`,
|
|
821
|
-
`C ${a},${o} ${n - 20},${r + i} ${n},${r + i}`,
|
|
822
|
-
"Z"
|
|
823
|
-
].join(" ");
|
|
824
|
-
}
|
|
825
|
-
let ni = f(() => {
|
|
826
|
-
let e = M.value.table.useDialog && !M.value.table.show, t = P.value.showTable;
|
|
827
|
-
return {
|
|
828
|
-
component: e ? nr : Qn,
|
|
829
|
-
title: `${M.value.style.chart.layout.title.text}${M.value.style.chart.layout.title.subtitle.text ? `: ${M.value.style.chart.layout.title.subtitle.text}` : ""}`,
|
|
830
|
-
props: e ? {
|
|
831
|
-
backgroundColor: M.value.table.th.backgroundColor,
|
|
832
|
-
color: M.value.table.th.color,
|
|
833
|
-
headerColor: M.value.table.th.color,
|
|
834
|
-
headerBg: M.value.table.th.backgroundColor,
|
|
835
|
-
isFullscreen: Yr.value,
|
|
836
|
-
fullscreenParent: sr.value,
|
|
837
|
-
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
838
|
-
isCursorPointer: N.value
|
|
839
|
-
} : {
|
|
840
|
-
hideDetails: !0,
|
|
841
|
-
config: {
|
|
842
|
-
open: t,
|
|
843
|
-
maxHeight: 1e4,
|
|
844
|
-
body: {
|
|
845
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
846
|
-
color: M.value.style.chart.color
|
|
847
|
-
},
|
|
848
|
-
head: {
|
|
849
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
850
|
-
color: M.value.style.chart.color
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
};
|
|
855
|
-
});
|
|
856
|
-
Ie(() => P.value.showTable, async (e) => {
|
|
857
|
-
M.value.table.show || (e && M.value.table.useDialog && lr.value ? (await je(), lr.value.open()) : "close" in lr.value && lr.value.close());
|
|
858
|
-
});
|
|
859
|
-
let { isResponsive: ri } = Ce(Or, kr);
|
|
860
|
-
function ii() {
|
|
861
|
-
P.value.showTable = !1, ur.value && ur.value.setTableIconState(!1);
|
|
862
|
-
}
|
|
863
|
-
let ai = f(() => R.value.map((e, n) => ({
|
|
864
|
-
...e,
|
|
865
|
-
display: `${e.name}: ${c(M.value.style.chart.layout.roots.labels.formatter, e.total, t({
|
|
866
|
-
p: M.value.style.chart.layout.legend.prefix,
|
|
867
|
-
v: e.total,
|
|
868
|
-
s: M.value.style.chart.layout.legend.suffix,
|
|
869
|
-
r: M.value.style.chart.layout.legend.roundingValue
|
|
870
|
-
}), { datapoint: e })} (${t({
|
|
871
|
-
v: e.total / L.value * 100,
|
|
872
|
-
s: "%",
|
|
873
|
-
r: M.value.style.chart.layout.legend.roundingPercentage
|
|
874
|
-
})})`
|
|
875
|
-
}))), oi = f(() => ai.value.map((e) => ({
|
|
876
|
-
color: e.color,
|
|
877
|
-
name: e.display,
|
|
878
|
-
shape: "circle"
|
|
879
|
-
}))), si = f(() => M.value.style.chart.backgroundColor), ci = f(() => ({
|
|
880
|
-
...M.value.style.chart.layout.legend,
|
|
881
|
-
textAlign: "center",
|
|
882
|
-
show: !0,
|
|
883
|
-
position: "bottom"
|
|
884
|
-
})), { exportSvg: li, getSvg: ui } = he({
|
|
885
|
-
svg: br,
|
|
886
|
-
title: f(() => M.value.style.chart.layout.title),
|
|
887
|
-
legend: ci,
|
|
888
|
-
legendItems: oi,
|
|
889
|
-
backgroundColor: si,
|
|
890
|
-
titleEmbedded: !0
|
|
891
|
-
});
|
|
892
|
-
async function di({ isCb: e }) {
|
|
893
|
-
fr.value = !0, await je();
|
|
894
|
-
try {
|
|
895
|
-
if (e) {
|
|
896
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await ui();
|
|
897
|
-
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
898
|
-
blob: e,
|
|
899
|
-
url: t,
|
|
900
|
-
text: n,
|
|
901
|
-
dataUrl: r
|
|
902
|
-
}));
|
|
903
|
-
} else await Promise.resolve(li());
|
|
904
|
-
} finally {
|
|
905
|
-
fr.value = !1;
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
function fi(e) {
|
|
909
|
-
if (e?.stage === "start") {
|
|
910
|
-
dr.value = !0;
|
|
911
|
-
return;
|
|
912
|
-
}
|
|
913
|
-
if (e?.stage === "end") {
|
|
914
|
-
dr.value = !1;
|
|
915
|
-
return;
|
|
916
|
-
}
|
|
917
|
-
Tr();
|
|
918
|
-
}
|
|
919
|
-
async function pi() {
|
|
920
|
-
if (z("copyAlt", {
|
|
921
|
-
config: M.value,
|
|
922
|
-
dataset: R.value
|
|
923
|
-
}), !M.value.userOptions.callbacks.altCopy) {
|
|
924
|
-
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
925
|
-
return;
|
|
926
|
-
}
|
|
927
|
-
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
928
|
-
config: M.value,
|
|
929
|
-
dataset: R.value
|
|
930
|
-
}));
|
|
931
|
-
}
|
|
932
|
-
function mi(e) {
|
|
933
|
-
if (!e) return "";
|
|
934
|
-
let n = t({
|
|
935
|
-
p: M.value.style.chart.layout.legend.prefix,
|
|
936
|
-
v: e.total,
|
|
937
|
-
s: M.value.style.chart.layout.legend.suffix,
|
|
938
|
-
r: M.value.style.chart.layout.legend.roundingValue
|
|
939
|
-
}), r = t({
|
|
940
|
-
v: e.total / L.value * 100,
|
|
941
|
-
s: "%",
|
|
942
|
-
r: M.value.style.chart.layout.legend.roundingPercentage
|
|
943
|
-
});
|
|
944
|
-
return `Root ${e.name}. Value ${n}. ${r} of total.`;
|
|
945
|
-
}
|
|
946
|
-
function hi(e) {
|
|
947
|
-
if (!e) return "";
|
|
948
|
-
let n = t({
|
|
949
|
-
p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
950
|
-
v: e.value,
|
|
951
|
-
s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
952
|
-
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
953
|
-
}), r = t({
|
|
954
|
-
v: e.proportionToRoot * 100,
|
|
955
|
-
s: "%",
|
|
956
|
-
r: M.value.style.chart.layout.legend.roundingPercentage
|
|
957
|
-
});
|
|
958
|
-
return `Branch ${e.name}. Root ${e.rootName}. Value ${n}. ${r} of root ${e.rootName}.`;
|
|
959
|
-
}
|
|
960
|
-
function gi(e) {
|
|
961
|
-
if (!e) return "";
|
|
962
|
-
let n = t({
|
|
963
|
-
p: M.value.style.chart.layout.legend.prefix,
|
|
964
|
-
v: e.value,
|
|
965
|
-
s: M.value.style.chart.layout.legend.suffix,
|
|
966
|
-
r: M.value.style.chart.layout.nuts.selected.labels.roundingValue
|
|
967
|
-
}), r = t({
|
|
968
|
-
v: e.proportionToBranch * 100,
|
|
969
|
-
s: "%",
|
|
970
|
-
r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
971
|
-
});
|
|
972
|
-
return `Nut ${e.name}. Branch ${e.branchName}. Root ${e.rootName}. Value ${n}. ${r} of branch ${e.branchName}.`;
|
|
973
|
-
}
|
|
974
|
-
let _i = f(() => Lr.value[j.value.rootIndex] || null), X = f(() => (Rr.value[j.value.rootIndex] || [])[j.value.branchIndex] || null), vi = f(() => ((zr.value[j.value.rootIndex] || [])[j.value.branchIndex] || [])[j.value.nutIndex] || null), Z = f(() => _i.value), yi = f(() => X.value), bi = f(() => j.value.level === "nut" ? X.value : null), xi = f(() => pr.value);
|
|
975
|
-
function Q() {
|
|
976
|
-
if (j.value.level === "root") {
|
|
977
|
-
A.value = mi(_i.value);
|
|
978
|
-
return;
|
|
979
|
-
}
|
|
980
|
-
if (j.value.level === "branch") {
|
|
981
|
-
A.value = hi(X.value);
|
|
982
|
-
return;
|
|
983
|
-
}
|
|
984
|
-
j.value.level === "nut" && (A.value = gi(vi.value));
|
|
985
|
-
}
|
|
986
|
-
function $() {
|
|
987
|
-
j.value = {
|
|
988
|
-
level: "root",
|
|
989
|
-
rootIndex: 0,
|
|
990
|
-
branchIndex: 0,
|
|
991
|
-
nutIndex: 0,
|
|
992
|
-
locked: !1
|
|
993
|
-
}, A.value = "";
|
|
994
|
-
}
|
|
995
|
-
function Si() {
|
|
996
|
-
let e = Rr.value[j.value.rootIndex] || [];
|
|
997
|
-
if (!e.length) {
|
|
998
|
-
j.value.branchIndex = 0;
|
|
999
|
-
return;
|
|
1000
|
-
}
|
|
1001
|
-
j.value.branchIndex >= e.length && (j.value.branchIndex = 0), j.value.branchIndex < 0 && (j.value.branchIndex = e.length - 1);
|
|
1002
|
-
}
|
|
1003
|
-
function Ci() {
|
|
1004
|
-
let e = (zr.value[j.value.rootIndex] || [])[j.value.branchIndex] || [];
|
|
1005
|
-
if (!e.length) {
|
|
1006
|
-
j.value.nutIndex = 0;
|
|
1007
|
-
return;
|
|
1008
|
-
}
|
|
1009
|
-
j.value.nutIndex >= e.length && (j.value.nutIndex = 0), j.value.nutIndex < 0 && (j.value.nutIndex = e.length - 1);
|
|
1010
|
-
}
|
|
1011
|
-
function wi(e) {
|
|
1012
|
-
if (j.value.level === "root") {
|
|
1013
|
-
let t = Lr.value.length;
|
|
1014
|
-
if (!t) return;
|
|
1015
|
-
j.value.rootIndex += e, j.value.rootIndex >= t && (j.value.rootIndex = 0), j.value.rootIndex < 0 && (j.value.rootIndex = t - 1), j.value.branchIndex = 0, j.value.nutIndex = 0, Q();
|
|
1016
|
-
return;
|
|
1017
|
-
}
|
|
1018
|
-
if (j.value.level === "branch") {
|
|
1019
|
-
j.value.branchIndex += e, Si(), j.value.nutIndex = 0, Q();
|
|
1020
|
-
return;
|
|
1021
|
-
}
|
|
1022
|
-
j.value.level === "nut" && (j.value.nutIndex += e, Ci(), Q());
|
|
1023
|
-
}
|
|
1024
|
-
function Ti(e) {
|
|
1025
|
-
if (e > 0) {
|
|
1026
|
-
if (j.value.level === "root") {
|
|
1027
|
-
if (!(Rr.value[j.value.rootIndex] || []).length) return;
|
|
1028
|
-
j.value.level = "branch", j.value.branchIndex = 0, j.value.nutIndex = 0, Q();
|
|
1029
|
-
return;
|
|
1030
|
-
}
|
|
1031
|
-
if (j.value.level === "branch") {
|
|
1032
|
-
if (!((zr.value[j.value.rootIndex] || [])[j.value.branchIndex] || []).length) return;
|
|
1033
|
-
j.value.level = "nut", j.value.nutIndex = 0, X.value ? Vr(X.value) : Q();
|
|
1034
|
-
return;
|
|
1035
|
-
}
|
|
1036
|
-
return;
|
|
1037
|
-
}
|
|
1038
|
-
if (j.value.level === "nut") {
|
|
1039
|
-
J(), W.value = null, j.value.level = "branch", j.value.nutIndex = 0, Q();
|
|
1040
|
-
return;
|
|
1041
|
-
}
|
|
1042
|
-
j.value.level === "branch" && (W.value = null, G.value = null, j.value.level = "root", j.value.nutIndex = 0, Q());
|
|
1043
|
-
}
|
|
1044
|
-
function Ei() {
|
|
1045
|
-
if (j.value.level === "root" && _i.value) {
|
|
1046
|
-
Ur(_i.value), A.value = `${mi(_i.value)} selected.`;
|
|
1047
|
-
return;
|
|
1048
|
-
}
|
|
1049
|
-
if (j.value.level === "branch" && X.value) {
|
|
1050
|
-
Hr(X.value), A.value = `${hi(X.value)} selected.`;
|
|
1051
|
-
return;
|
|
1052
|
-
}
|
|
1053
|
-
j.value.level === "nut" && X.value && vi.value && (Vr(X.value), A.value = `${gi(vi.value)} details opened.`);
|
|
1054
|
-
}
|
|
1055
|
-
function Di() {
|
|
1056
|
-
pr.value = !0, k.value = !1;
|
|
1057
|
-
}
|
|
1058
|
-
function Oi() {
|
|
1059
|
-
pr.value = !1, k.value = !1, A.value = "", !G.value && !W.value && !H.value && $();
|
|
1060
|
-
}
|
|
1061
|
-
function ki(e) {
|
|
1062
|
-
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1063
|
-
if (!(!t && !n && !r && !i && !a && !o)) {
|
|
1064
|
-
if (e.preventDefault(), e.stopPropagation(), pr.value ||= !0, o) {
|
|
1065
|
-
K(), $(), k.value = !1;
|
|
1066
|
-
return;
|
|
1067
|
-
}
|
|
1068
|
-
if ((t || n || r || i) && (k.value = !0), t) {
|
|
1069
|
-
wi(-1);
|
|
1070
|
-
return;
|
|
1071
|
-
}
|
|
1072
|
-
if (n) {
|
|
1073
|
-
wi(1);
|
|
1074
|
-
return;
|
|
1075
|
-
}
|
|
1076
|
-
if (r) {
|
|
1077
|
-
Ti(-1);
|
|
1078
|
-
return;
|
|
1079
|
-
}
|
|
1080
|
-
if (i) {
|
|
1081
|
-
Ti(1);
|
|
1082
|
-
return;
|
|
1083
|
-
}
|
|
1084
|
-
a && Ei();
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
let Ai = f(() => ({
|
|
1088
|
-
headers: Y.value.head,
|
|
1089
|
-
rows: Y.value.body.map((e) => [
|
|
1090
|
-
e.rootName,
|
|
1091
|
-
e.rootValue,
|
|
1092
|
-
t({
|
|
1093
|
-
v: e.rootToTotal * 100,
|
|
1094
|
-
s: "%",
|
|
1095
|
-
r: M.value.table.td.roundingPercentage
|
|
1096
|
-
}),
|
|
1097
|
-
e.branchName,
|
|
1098
|
-
e.branchValue,
|
|
1099
|
-
t({
|
|
1100
|
-
v: e.branchToRoot * 100,
|
|
1101
|
-
s: "%",
|
|
1102
|
-
r: M.value.table.td.roundingPercentage
|
|
1103
|
-
}),
|
|
1104
|
-
t({
|
|
1105
|
-
v: e.branchToTotal * 100,
|
|
1106
|
-
s: "%",
|
|
1107
|
-
r: M.value.table.td.roundingPercentage
|
|
1108
|
-
}),
|
|
1109
|
-
e.nutName,
|
|
1110
|
-
e.nutValue,
|
|
1111
|
-
t({
|
|
1112
|
-
v: e.nutToBranch * 100,
|
|
1113
|
-
s: "%",
|
|
1114
|
-
r: M.value.table.td.roundingPercentage
|
|
1115
|
-
}),
|
|
1116
|
-
t({
|
|
1117
|
-
v: e.nutToRoot * 100,
|
|
1118
|
-
s: "%",
|
|
1119
|
-
r: M.value.table.td.roundingPercentage
|
|
1120
|
-
}),
|
|
1121
|
-
t({
|
|
1122
|
-
v: e.nutToTotal * 100,
|
|
1123
|
-
s: "%",
|
|
1124
|
-
r: M.value.table.td.roundingPercentage
|
|
1125
|
-
})
|
|
1126
|
-
])
|
|
1127
|
-
}));
|
|
1128
|
-
return ye({
|
|
1129
|
-
getData: Ar,
|
|
1130
|
-
getImage: ei,
|
|
1131
|
-
generatePdf: wr,
|
|
1132
|
-
generateCsv: Jr,
|
|
1133
|
-
generateImage: Tr,
|
|
1134
|
-
generateSvg: di,
|
|
1135
|
-
toggleTable: Zr,
|
|
1136
|
-
toggleAnnotator: $r,
|
|
1137
|
-
toggleFullscreen: Xr,
|
|
1138
|
-
copyAlt: pi
|
|
1139
|
-
}), (e, n) => (b(), m("div", {
|
|
1140
|
-
class: _(`vue-data-ui-component vue-ui-chestnut ${Yr.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1141
|
-
ref_key: "chestnutChart",
|
|
1142
|
-
ref: sr,
|
|
1143
|
-
id: `vue-ui-chestnut_${O.value}`,
|
|
1144
|
-
style: y(`font-family:${M.value.style.fontFamily};width:100%; text-align:center;background:${M.value.style.chart.backgroundColor}`),
|
|
1145
|
-
onMouseenter: n[12] ||= () => T(vr)(!0),
|
|
1146
|
-
onMouseleave: n[13] ||= () => T(vr)(!1)
|
|
1147
|
-
}, [
|
|
1148
|
-
h("div", {
|
|
1149
|
-
id: `chart-instructions-${O.value}`,
|
|
1150
|
-
class: "sr-only"
|
|
1151
|
-
}, [h("p", null, w(M.value.a11y.translations.keyboardNavigation), 1)], 8, Be),
|
|
1152
|
-
h("div", Ve, w(A.value), 1),
|
|
1153
|
-
Ai.value?.rows?.length ? (b(), Te(be, {
|
|
1154
|
-
key: 0,
|
|
1155
|
-
uid: O.value,
|
|
1156
|
-
head: Ai.value.headers,
|
|
1157
|
-
body: Ai.value.rows,
|
|
1158
|
-
notice: M.value.a11y.translations.tableAvailable,
|
|
1159
|
-
caption: M.value.a11y.translations.tableCaption
|
|
1160
|
-
}, null, 8, [
|
|
1161
|
-
"uid",
|
|
1162
|
-
"head",
|
|
1163
|
-
"body",
|
|
1164
|
-
"notice",
|
|
1165
|
-
"caption"
|
|
1166
|
-
])) : p("", !0),
|
|
1167
|
-
M.value.userOptions.buttons.annotator ? (b(), Te(T($n), {
|
|
1168
|
-
key: 1,
|
|
1169
|
-
svgRef: T(br),
|
|
1170
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
1171
|
-
color: M.value.style.chart.color,
|
|
1172
|
-
active: Qr.value,
|
|
1173
|
-
isCursorPointer: N.value,
|
|
1174
|
-
onClose: $r
|
|
1175
|
-
}, {
|
|
1176
|
-
"annotator-action-close": E(() => [C(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1177
|
-
"annotator-action-color": E(({ color: t }) => [C(e.$slots, "annotator-action-color", v(g({ color: t })), void 0, !0)]),
|
|
1178
|
-
"annotator-action-draw": E(({ mode: t }) => [C(e.$slots, "annotator-action-draw", v(g({ mode: t })), void 0, !0)]),
|
|
1179
|
-
"annotator-action-undo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-undo", v(g({ disabled: t })), void 0, !0)]),
|
|
1180
|
-
"annotator-action-redo": E(({ disabled: t }) => [C(e.$slots, "annotator-action-redo", v(g({ disabled: t })), void 0, !0)]),
|
|
1181
|
-
"annotator-action-delete": E(({ disabled: t }) => [C(e.$slots, "annotator-action-delete", v(g({ disabled: t })), void 0, !0)]),
|
|
1182
|
-
_: 3
|
|
1183
|
-
}, 8, [
|
|
1184
|
-
"svgRef",
|
|
1185
|
-
"backgroundColor",
|
|
1186
|
-
"color",
|
|
1187
|
-
"active",
|
|
1188
|
-
"isCursorPointer"
|
|
1189
|
-
])) : p("", !0),
|
|
1190
|
-
Er.value ? (b(), m("div", He, null, 512)) : p("", !0),
|
|
1191
|
-
M.value.userOptions.show && or.value && (T(yr) || T(_r)) ? (b(), Te(T(er), {
|
|
1192
|
-
ref_key: "userOptionsRef",
|
|
1193
|
-
ref: ur,
|
|
1194
|
-
key: `user_options_${cr.value}`,
|
|
1195
|
-
backgroundColor: M.value.style.chart.backgroundColor,
|
|
1196
|
-
color: M.value.style.chart.color,
|
|
1197
|
-
isImaging: T(Cr),
|
|
1198
|
-
isPrinting: T(Sr),
|
|
1199
|
-
uid: O.value,
|
|
1200
|
-
hasPdf: M.value.userOptions.buttons.pdf,
|
|
1201
|
-
hasImg: M.value.userOptions.buttons.img,
|
|
1202
|
-
hasSvg: M.value.userOptions.buttons.svg,
|
|
1203
|
-
hasXls: M.value.userOptions.buttons.csv,
|
|
1204
|
-
hasTable: M.value.userOptions.buttons.table,
|
|
1205
|
-
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
1206
|
-
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
1207
|
-
isFullscreen: Yr.value,
|
|
1208
|
-
titles: { ...M.value.userOptions.buttonTitles },
|
|
1209
|
-
chartElement: sr.value,
|
|
1210
|
-
position: M.value.userOptions.position,
|
|
1211
|
-
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
1212
|
-
isAnnotation: Qr.value,
|
|
1213
|
-
callbacks: M.value.userOptions.callbacks,
|
|
1214
|
-
printScale: M.value.userOptions.print.scale,
|
|
1215
|
-
tableDialog: M.value.table.useDialog,
|
|
1216
|
-
isCursorPointer: N.value,
|
|
1217
|
-
onToggleFullscreen: Xr,
|
|
1218
|
-
onGeneratePdf: T(wr),
|
|
1219
|
-
onGenerateCsv: Jr,
|
|
1220
|
-
onGenerateImage: fi,
|
|
1221
|
-
onGenerateSvg: di,
|
|
1222
|
-
onToggleTable: Zr,
|
|
1223
|
-
onToggleAnnotator: $r,
|
|
1224
|
-
onCopyAlt: pi,
|
|
1225
|
-
style: y({ visibility: T(yr) ? T(_r) ? "visible" : "hidden" : "visible" })
|
|
1226
|
-
}, Ee({ _: 2 }, [
|
|
1227
|
-
e.$slots.menuIcon ? {
|
|
1228
|
-
name: "menuIcon",
|
|
1229
|
-
fn: E(({ isOpen: t, color: n }) => [C(e.$slots, "menuIcon", v(g({
|
|
1230
|
-
isOpen: t,
|
|
1231
|
-
color: n
|
|
1232
|
-
})), void 0, !0)]),
|
|
1233
|
-
key: "0"
|
|
1234
|
-
} : void 0,
|
|
1235
|
-
e.$slots.optionPdf ? {
|
|
1236
|
-
name: "optionPdf",
|
|
1237
|
-
fn: E(() => [C(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1238
|
-
key: "1"
|
|
1239
|
-
} : void 0,
|
|
1240
|
-
e.$slots.optionCsv ? {
|
|
1241
|
-
name: "optionCsv",
|
|
1242
|
-
fn: E(() => [C(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1243
|
-
key: "2"
|
|
1244
|
-
} : void 0,
|
|
1245
|
-
e.$slots.optionImg ? {
|
|
1246
|
-
name: "optionImg",
|
|
1247
|
-
fn: E(() => [C(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1248
|
-
key: "3"
|
|
1249
|
-
} : void 0,
|
|
1250
|
-
e.$slots.optionSvg ? {
|
|
1251
|
-
name: "optionSvg",
|
|
1252
|
-
fn: E(() => [C(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1253
|
-
key: "4"
|
|
1254
|
-
} : void 0,
|
|
1255
|
-
e.$slots.optionTable ? {
|
|
1256
|
-
name: "optionTable",
|
|
1257
|
-
fn: E(() => [C(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1258
|
-
key: "5"
|
|
1259
|
-
} : void 0,
|
|
1260
|
-
e.$slots.optionFullscreen ? {
|
|
1261
|
-
name: "optionFullscreen",
|
|
1262
|
-
fn: E(({ toggleFullscreen: t, isFullscreen: n }) => [C(e.$slots, "optionFullscreen", v(g({
|
|
1263
|
-
toggleFullscreen: t,
|
|
1264
|
-
isFullscreen: n
|
|
1265
|
-
})), void 0, !0)]),
|
|
1266
|
-
key: "6"
|
|
1267
|
-
} : void 0,
|
|
1268
|
-
e.$slots.optionAnnotator ? {
|
|
1269
|
-
name: "optionAnnotator",
|
|
1270
|
-
fn: E(({ toggleAnnotator: t, isAnnotator: n }) => [C(e.$slots, "optionAnnotator", v(g({
|
|
1271
|
-
toggleAnnotator: t,
|
|
1272
|
-
isAnnotator: n
|
|
1273
|
-
})), void 0, !0)]),
|
|
1274
|
-
key: "7"
|
|
1275
|
-
} : void 0,
|
|
1276
|
-
e.$slots.optionAltCopy ? {
|
|
1277
|
-
name: "optionAltCopy",
|
|
1278
|
-
fn: E(({ altCopy: t }) => [C(e.$slots, "optionAltCopy", v(g({ altCopy: t })), void 0, !0)]),
|
|
1279
|
-
key: "8"
|
|
1280
|
-
} : void 0,
|
|
1281
|
-
e.$slots["custom-menu-before"] ? {
|
|
1282
|
-
name: "custom-menu-before",
|
|
1283
|
-
fn: E(() => [C(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1284
|
-
key: "9"
|
|
1285
|
-
} : void 0,
|
|
1286
|
-
e.$slots["custom-menu-after"] ? {
|
|
1287
|
-
name: "custom-menu-after",
|
|
1288
|
-
fn: E(() => [C(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1289
|
-
key: "10"
|
|
1290
|
-
} : void 0
|
|
1291
|
-
]), 1032, [
|
|
1292
|
-
"backgroundColor",
|
|
1293
|
-
"color",
|
|
1294
|
-
"isImaging",
|
|
1295
|
-
"isPrinting",
|
|
1296
|
-
"uid",
|
|
1297
|
-
"hasPdf",
|
|
1298
|
-
"hasImg",
|
|
1299
|
-
"hasSvg",
|
|
1300
|
-
"hasXls",
|
|
1301
|
-
"hasTable",
|
|
1302
|
-
"hasFullscreen",
|
|
1303
|
-
"hasAltCopy",
|
|
1304
|
-
"isFullscreen",
|
|
1305
|
-
"titles",
|
|
1306
|
-
"chartElement",
|
|
1307
|
-
"position",
|
|
1308
|
-
"hasAnnotator",
|
|
1309
|
-
"isAnnotation",
|
|
1310
|
-
"callbacks",
|
|
1311
|
-
"printScale",
|
|
1312
|
-
"tableDialog",
|
|
1313
|
-
"isCursorPointer",
|
|
1314
|
-
"onGeneratePdf",
|
|
1315
|
-
"style"
|
|
1316
|
-
])) : p("", !0),
|
|
1317
|
-
h("div", Ue, [F.value.height > 0 ? (b(), m("svg", {
|
|
1318
|
-
key: 0,
|
|
1319
|
-
ref_key: "svgRef",
|
|
1320
|
-
ref: br,
|
|
1321
|
-
xmlns: T(se),
|
|
1322
|
-
"aria-describedby": `chart-instructions-${O.value}`,
|
|
1323
|
-
class: _({
|
|
1324
|
-
"vue-data-ui-fullscreen--on": Yr.value,
|
|
1325
|
-
"vue-data-ui-fulscreen--off": !Yr.value
|
|
1326
|
-
}),
|
|
1327
|
-
viewBox: `0 0 ${F.value.width <= 0 ? 10 : F.value.width} ${F.value.height <= 0 ? 10 : F.value.height}`,
|
|
1328
|
-
style: y(`overflow:visible;background:transparent;color:${M.value.style.chart.color}`),
|
|
1329
|
-
tabindex: "0",
|
|
1330
|
-
onFocus: Di,
|
|
1331
|
-
onBlur: Oi,
|
|
1332
|
-
onKeydown: ki
|
|
1333
|
-
}, [
|
|
1334
|
-
Oe(T(tr)),
|
|
1335
|
-
e.$slots["chart-background"] ? (b(), m("foreignObject", {
|
|
1336
|
-
key: 0,
|
|
1337
|
-
x: 0,
|
|
1338
|
-
y: 0,
|
|
1339
|
-
width: F.value.width <= 0 ? 10 : F.value.width,
|
|
1340
|
-
height: F.value.height <= 0 ? 10 : F.value.height,
|
|
1341
|
-
style: { pointerEvents: "none" }
|
|
1342
|
-
}, [C(e.$slots, "chart-background", {}, void 0, !0)], 8, Ge)) : p("", !0),
|
|
1343
|
-
H.value ? p("", !0) : (b(), m("g", Ke, [M.value.style.chart.layout.title.text ? (b(), m("text", {
|
|
1344
|
-
key: 0,
|
|
1345
|
-
"text-anchor": "middle",
|
|
1346
|
-
fill: M.value.style.chart.layout.title.color,
|
|
1347
|
-
"font-weight": M.value.style.chart.layout.title.bold ? "bold" : "normal",
|
|
1348
|
-
"font-size": M.value.style.chart.layout.title.fontSize,
|
|
1349
|
-
x: F.value.width / 2,
|
|
1350
|
-
y: 12 + M.value.style.chart.layout.title.fontSize + M.value.style.chart.layout.title.offsetY,
|
|
1351
|
-
onClick: n[0] ||= () => {
|
|
1352
|
-
K(), $(), k.value = !1;
|
|
1353
|
-
}
|
|
1354
|
-
}, w(M.value.style.chart.layout.title.text), 9, qe)) : p("", !0), M.value.style.chart.layout.title.subtitle.text ? (b(), m("text", {
|
|
1355
|
-
key: 1,
|
|
1356
|
-
"text-anchor": "middle",
|
|
1357
|
-
fill: M.value.style.chart.layout.title.subtitle.color,
|
|
1358
|
-
"font-weight": M.value.style.chart.layout.title.subtitle.bold ? "bold" : "normal",
|
|
1359
|
-
"font-size": M.value.style.chart.layout.title.subtitle.fontSize,
|
|
1360
|
-
x: F.value.width / 2,
|
|
1361
|
-
y: 48 + M.value.style.chart.layout.title.subtitle.fontSize + M.value.style.chart.layout.title.subtitle.offsetY,
|
|
1362
|
-
onClick: n[1] ||= () => {
|
|
1363
|
-
K(), $(), k.value = !1;
|
|
1364
|
-
}
|
|
1365
|
-
}, w(M.value.style.chart.layout.title.subtitle.text), 9, Je)) : p("", !0)])),
|
|
1366
|
-
h("defs", null, [
|
|
1367
|
-
(b(!0), m(d, null, S(R.value, (e, t) => (b(), m("radialGradient", {
|
|
1368
|
-
cx: "50%",
|
|
1369
|
-
cy: "50%",
|
|
1370
|
-
r: "50%",
|
|
1371
|
-
fx: "50%",
|
|
1372
|
-
fy: "50%",
|
|
1373
|
-
id: `root_gradient_${O.value}_${e.rootIndex}`
|
|
1374
|
-
}, [h("stop", {
|
|
1375
|
-
offset: "0%",
|
|
1376
|
-
"stop-color": T(l)(T(a)(e.color, .05), 100 - M.value.style.chart.layout.roots.gradientIntensity)
|
|
1377
|
-
}, null, 8, Xe), h("stop", {
|
|
1378
|
-
offset: "100%",
|
|
1379
|
-
"stop-color": e.color
|
|
1380
|
-
}, null, 8, Ze)], 8, Ye))), 256)),
|
|
1381
|
-
(b(!0), m(d, null, S(R.value, (e) => (b(), m("linearGradient", {
|
|
1382
|
-
x1: "0%",
|
|
1383
|
-
y1: "0%",
|
|
1384
|
-
x2: "100%",
|
|
1385
|
-
y2: "0%",
|
|
1386
|
-
id: `branch_gradient_${O.value}_${e.rootIndex}`
|
|
1387
|
-
}, [h("stop", {
|
|
1388
|
-
offset: "0%",
|
|
1389
|
-
"stop-color": e.color
|
|
1390
|
-
}, null, 8, $e), h("stop", {
|
|
1391
|
-
offset: "100%",
|
|
1392
|
-
"stop-color": T(l)(T(a)(e.color, .02), 100 - M.value.style.chart.layout.branches.gradientIntensity)
|
|
1393
|
-
}, null, 8, et)], 8, Qe))), 256)),
|
|
1394
|
-
h("radialGradient", {
|
|
1395
|
-
cx: "50%",
|
|
1396
|
-
cy: "50%",
|
|
1397
|
-
r: "50%",
|
|
1398
|
-
fx: "50%",
|
|
1399
|
-
fy: "50%",
|
|
1400
|
-
id: `nutpick_${O.value}`
|
|
1401
|
-
}, [
|
|
1402
|
-
h("stop", {
|
|
1403
|
-
offset: "0%",
|
|
1404
|
-
"stop-color": T(l)("#FFFFFF", 0)
|
|
1405
|
-
}, null, 8, nt),
|
|
1406
|
-
h("stop", {
|
|
1407
|
-
offset: "80%",
|
|
1408
|
-
"stop-color": T(l)("#FFFFFF", M.value.style.chart.layout.nuts.selected.gradientIntensity)
|
|
1409
|
-
}, null, 8, rt),
|
|
1410
|
-
h("stop", {
|
|
1411
|
-
offset: "100%",
|
|
1412
|
-
"stop-color": T(l)("#FFFFFF", 0)
|
|
1413
|
-
}, null, 8, it)
|
|
1414
|
-
], 8, tt),
|
|
1415
|
-
h("radialGradient", {
|
|
1416
|
-
cx: "50%",
|
|
1417
|
-
cy: "50%",
|
|
1418
|
-
r: "50%",
|
|
1419
|
-
fx: "50%",
|
|
1420
|
-
fy: "50%",
|
|
1421
|
-
id: `nut_${O.value}`
|
|
1422
|
-
}, [
|
|
1423
|
-
h("stop", {
|
|
1424
|
-
offset: "0%",
|
|
1425
|
-
"stop-color": T(l)("#FFFFFF", 0)
|
|
1426
|
-
}, null, 8, ot),
|
|
1427
|
-
h("stop", {
|
|
1428
|
-
offset: "80%",
|
|
1429
|
-
"stop-color": T(l)("#FFFFFF", M.value.style.chart.layout.nuts.gradientIntensity)
|
|
1430
|
-
}, null, 8, st),
|
|
1431
|
-
h("stop", {
|
|
1432
|
-
offset: "100%",
|
|
1433
|
-
"stop-color": T(l)("#FFFFFF", 0)
|
|
1434
|
-
}, null, 8, ct)
|
|
1435
|
-
], 8, at),
|
|
1436
|
-
h("radialGradient", {
|
|
1437
|
-
cx: "50%",
|
|
1438
|
-
cy: "50%",
|
|
1439
|
-
r: "50%",
|
|
1440
|
-
fx: "50%",
|
|
1441
|
-
fy: "50%",
|
|
1442
|
-
id: `nut_underlayer_${O.value}`
|
|
1443
|
-
}, [
|
|
1444
|
-
h("stop", {
|
|
1445
|
-
offset: "0%",
|
|
1446
|
-
"stop-color": T(l)(M.value.style.chart.backgroundColor, 100)
|
|
1447
|
-
}, null, 8, ut),
|
|
1448
|
-
h("stop", {
|
|
1449
|
-
offset: "80%",
|
|
1450
|
-
"stop-color": T(l)(M.value.style.chart.backgroundColor, 60)
|
|
1451
|
-
}, null, 8, dt),
|
|
1452
|
-
h("stop", {
|
|
1453
|
-
offset: "100%",
|
|
1454
|
-
"stop-color": T(l)(M.value.style.chart.backgroundColor, 0)
|
|
1455
|
-
}, null, 8, ft)
|
|
1456
|
-
], 8, lt)
|
|
1457
|
-
]),
|
|
1458
|
-
M.value.style.chart.layout.grandTotal.show ? (b(), m("g", pt, [h("text", {
|
|
1459
|
-
x: I.value.seedX,
|
|
1460
|
-
y: 32 + M.value.style.chart.layout.grandTotal.offsetY,
|
|
1461
|
-
"font-size": M.value.style.chart.layout.grandTotal.fontSize,
|
|
1462
|
-
"font-weight": M.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
1463
|
-
fill: M.value.style.chart.layout.grandTotal.color,
|
|
1464
|
-
"text-anchor": "middle",
|
|
1465
|
-
onClick: n[2] ||= () => {
|
|
1466
|
-
K(), $(), k.value = !1;
|
|
1467
|
-
}
|
|
1468
|
-
}, w(M.value.style.chart.layout.grandTotal.text), 9, mt), h("text", {
|
|
1469
|
-
x: I.value.seedX,
|
|
1470
|
-
y: 38 + M.value.style.chart.layout.grandTotal.fontSize + M.value.style.chart.layout.grandTotal.offsetY,
|
|
1471
|
-
"font-size": M.value.style.chart.layout.grandTotal.fontSize,
|
|
1472
|
-
"font-weight": M.value.style.chart.layout.grandTotal.bold ? "bold" : "normal",
|
|
1473
|
-
fill: M.value.style.chart.layout.grandTotal.color,
|
|
1474
|
-
"text-anchor": "middle",
|
|
1475
|
-
onClick: n[3] ||= () => {
|
|
1476
|
-
K(), $(), k.value = !1;
|
|
1477
|
-
}
|
|
1478
|
-
}, w(T(c)(M.value.style.chart.layout.grandTotal.formatter, L.value, T(t)({
|
|
1479
|
-
p: M.value.style.chart.layout.grandTotal.prefix,
|
|
1480
|
-
v: L.value,
|
|
1481
|
-
s: M.value.style.chart.layout.grandTotal.suffix,
|
|
1482
|
-
r: M.value.style.chart.layout.grandTotal.roundingValue
|
|
1483
|
-
}))), 9, ht)])) : p("", !0),
|
|
1484
|
-
(b(!0), m(d, null, S(V.value, (e) => (b(), m("g", null, [h("defs", null, [h("linearGradient", { id: `link_grad_${e.id}` }, [h("stop", {
|
|
1485
|
-
offset: "0%",
|
|
1486
|
-
"stop-color": e.color
|
|
1487
|
-
}, null, 8, _t), h("stop", {
|
|
1488
|
-
offset: "100%",
|
|
1489
|
-
"stop-color": T(l)(e.color, M.value.style.chart.layout.links.opacity)
|
|
1490
|
-
}, null, 8, vt)], 8, gt)]), h("path", {
|
|
1491
|
-
d: ti(e),
|
|
1492
|
-
stroke: T(l)(e.color, M.value.style.chart.layout.links.opacity),
|
|
1493
|
-
fill: `url(#link_grad_${e.id})`,
|
|
1494
|
-
"stroke-linecap": "round",
|
|
1495
|
-
"stroke-linejoin": "round",
|
|
1496
|
-
style: y(`opacity:${+!!q(e)}`),
|
|
1497
|
-
onClick: n[4] ||= () => {
|
|
1498
|
-
K(), $(), k.value = !1;
|
|
1499
|
-
}
|
|
1500
|
-
}, null, 12, yt)]))), 256)),
|
|
1501
|
-
(b(!0), m(d, null, S(B.value, (e) => (b(), m("circle", {
|
|
1502
|
-
cx: e.x,
|
|
1503
|
-
cy: e.y,
|
|
1504
|
-
r: e.r,
|
|
1505
|
-
fill: M.value.style.chart.layout.roots.underlayerColor,
|
|
1506
|
-
stroke: "none",
|
|
1507
|
-
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`)
|
|
1508
|
-
}, null, 12, bt))), 256)),
|
|
1509
|
-
(b(!0), m(d, null, S(B.value, (e, t) => (b(), m("circle", {
|
|
1510
|
-
"aria-label": mi(e),
|
|
1511
|
-
cx: e.x,
|
|
1512
|
-
cy: e.y,
|
|
1513
|
-
r: e.r,
|
|
1514
|
-
fill: M.value.style.chart.layout.roots.useGradient ? `url(#root_gradient_${O.value}_${e.rootIndex})` : e.color,
|
|
1515
|
-
stroke: M.value.style.chart.layout.roots.stroke,
|
|
1516
|
-
"stroke-width": M.value.style.chart.layout.roots.strokeWidth,
|
|
1517
|
-
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1518
|
-
onClick: (t) => Ur(e)
|
|
1519
|
-
}, null, 12, xt))), 256)),
|
|
1520
|
-
M.value.style.chart.layout.roots.labels.show ? (b(), m("g", St, [(b(!0), m(d, null, S(B.value, (e, n) => (b(), m("text", {
|
|
1521
|
-
x: e.x,
|
|
1522
|
-
y: e.y + M.value.style.chart.layout.roots.labels.fontSize / 2.6,
|
|
1523
|
-
"text-anchor": "middle",
|
|
1524
|
-
"font-size": M.value.style.chart.layout.roots.labels.fontSize,
|
|
1525
|
-
fill: M.value.style.chart.layout.roots.labels.adaptColorToBackground ? T(oe)(e.color) : M.value.style.chart.layout.roots.labels.color,
|
|
1526
|
-
"font-weight": "bold",
|
|
1527
|
-
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1528
|
-
onClick: (t) => Ur(e)
|
|
1529
|
-
}, w(T(c)(M.value.style.chart.layout.roots.labels.formatter, e.total, T(t)({
|
|
1530
|
-
p: M.value.style.chart.layout.roots.labels.prefix,
|
|
1531
|
-
v: e.total,
|
|
1532
|
-
s: M.value.style.chart.layout.roots.labels.suffix,
|
|
1533
|
-
r: M.value.style.chart.layout.roots.labels.roundingValue
|
|
1534
|
-
}), { datapoint: e })), 13, Ct))), 256)), (b(!0), m(d, null, S(B.value, (e) => (b(), m("g", null, [H.value && e.rootIndex === H.value.rootIndex || W.value && e.rootIndex === W.value.rootIndex || G.value && e.rootIndex === G.value.rootIndex ? (b(), m("g", wt, [h("text", {
|
|
1535
|
-
x: e.x,
|
|
1536
|
-
y: e.y + e.r + 24,
|
|
1537
|
-
"text-anchor": "middle",
|
|
1538
|
-
fill: M.value.style.chart.layout.roots.labels.name.color,
|
|
1539
|
-
"font-size": M.value.style.chart.layout.roots.labels.name.fontSize,
|
|
1540
|
-
"font-weight": M.value.style.chart.layout.roots.labels.name.bold ? "bold" : "normal",
|
|
1541
|
-
onClick: n[5] ||= () => {
|
|
1542
|
-
K(), $(), k.value = !1;
|
|
1543
|
-
}
|
|
1544
|
-
}, w(e.name), 9, Tt)])) : p("", !0)]))), 256))])) : p("", !0),
|
|
1545
|
-
(b(!0), m(d, null, S(V.value, (e) => (b(), m("rect", {
|
|
1546
|
-
x: e.x1,
|
|
1547
|
-
y: e.y1,
|
|
1548
|
-
height: F.value.branchSize,
|
|
1549
|
-
width: e.x2 - e.x1,
|
|
1550
|
-
fill: M.value.style.chart.layout.branches.underlayerColor,
|
|
1551
|
-
rx: M.value.style.chart.layout.branches.borderRadius,
|
|
1552
|
-
stroke: "none",
|
|
1553
|
-
style: y(`opacity:${q(e) ? 1 : .05}`),
|
|
1554
|
-
onClick: (t) => Hr(e)
|
|
1555
|
-
}, null, 12, Et))), 256)),
|
|
1556
|
-
(b(!0), m(d, null, S(V.value, (e, t) => (b(), m("rect", {
|
|
1557
|
-
"aria-label": hi(e),
|
|
1558
|
-
x: e.x1,
|
|
1559
|
-
y: e.y1,
|
|
1560
|
-
height: F.value.branchSize,
|
|
1561
|
-
width: e.x2 - e.x1,
|
|
1562
|
-
fill: M.value.style.chart.layout.branches.useGradient ? `url(#branch_gradient_${O.value}_${e.rootIndex})` : e.color,
|
|
1563
|
-
rx: M.value.style.chart.layout.branches.borderRadius,
|
|
1564
|
-
stroke: M.value.style.chart.layout.branches.stroke,
|
|
1565
|
-
"stroke-width": M.value.style.chart.layout.branches.strokeWidth,
|
|
1566
|
-
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1567
|
-
onClick: (t) => Hr(e)
|
|
1568
|
-
}, null, 12, Dt))), 256)),
|
|
1569
|
-
M.value.style.chart.layout.branches.labels.dataLabels.show ? (b(), m("g", Ot, [(b(!0), m(d, null, S(V.value, (e) => (b(), m("g", null, [e.proportionToRoot * 100 > M.value.style.chart.layout.branches.labels.dataLabels.hideUnderValue ? (b(), m("text", {
|
|
1570
|
-
key: 0,
|
|
1571
|
-
x: e.x1 + 6,
|
|
1572
|
-
y: e.y1 + F.value.branchSize / 1.5,
|
|
1573
|
-
"text-anchor": "start",
|
|
1574
|
-
fill: T(oe)(e.color),
|
|
1575
|
-
"font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1576
|
-
"font-weight": "bold",
|
|
1577
|
-
style: y(`cursor:${N.value ? "pointer" : "default"}; opacity:${q(e) ? 1 : .05}`),
|
|
1578
|
-
onClick: (t) => Hr(e)
|
|
1579
|
-
}, w(T(c)(M.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, T(t)({
|
|
1580
|
-
p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1581
|
-
v: e.value,
|
|
1582
|
-
s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1583
|
-
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1584
|
-
}), { datapoint: e })), 13, kt)) : p("", !0)]))), 256))])) : p("", !0),
|
|
1585
|
-
(b(!0), m(d, null, S(V.value, (e, t) => (b(), m("g", null, [(b(!0), m(d, null, S(T(ne)({
|
|
1586
|
-
series: e.breakdown,
|
|
1587
|
-
base: 1
|
|
1588
|
-
}, e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX, e.y1 + F.value.branchSize / 2, F.value.branchSize / 3, F.value.branchSize / 3), (t, n) => (b(), m("path", {
|
|
1589
|
-
d: t.path,
|
|
1590
|
-
stroke: t.color,
|
|
1591
|
-
"stroke-width": 10,
|
|
1592
|
-
fill: "none",
|
|
1593
|
-
style: y(`opacity:${q(e) ? 1 : .1}`)
|
|
1594
|
-
}, null, 12, At))), 256)), h("circle", {
|
|
1595
|
-
"aria-label": `Open details for branch ${e.name} in root ${e.rootName}`,
|
|
1596
|
-
fill: M.value.style.chart.layout.nuts.useGradient ? `url(#nut_${O.value})` : "transparent",
|
|
1597
|
-
cx: e.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1598
|
-
cy: e.y1 + F.value.branchSize / 2,
|
|
1599
|
-
r: F.value.branchSize / 2 + 2,
|
|
1600
|
-
onClick: (t) => Vr(e),
|
|
1601
|
-
style: y(`cursor:${N.value ? "pointer" : "default"};opacity:${q(e) ? 1 : .1}`)
|
|
1602
|
-
}, null, 12, jt)]))), 256)),
|
|
1603
|
-
M.value.style.chart.layout.branches.labels.show && !W.value ? (b(), m("g", Mt, [(b(!0), m(d, null, S(V.value, (e) => (b(), m("text", {
|
|
1604
|
-
x: e.x2 + F.value.branchSize + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1605
|
-
y: e.y1 + F.value.branchSize / 2 + 5,
|
|
1606
|
-
"font-size": M.value.style.chart.layout.branches.labels.fontSize,
|
|
1607
|
-
"font-weight": M.value.style.chart.layout.branches.labels.bold ? "bold" : "normal",
|
|
1608
|
-
fill: M.value.style.chart.layout.branches.labels.color,
|
|
1609
|
-
"text-anchor": "start",
|
|
1610
|
-
style: y(`opacity:${q(e) ? 1 : .1}`)
|
|
1611
|
-
}, w(e.name), 13, Nt))), 256))])) : p("", !0),
|
|
1612
|
-
h("line", {
|
|
1613
|
-
x1: 256 + F.value.padding.left,
|
|
1614
|
-
x2: 256 + F.value.padding.left,
|
|
1615
|
-
y1: I.value.top,
|
|
1616
|
-
y2: I.value.bottom,
|
|
1617
|
-
stroke: M.value.style.chart.layout.verticalSeparator.stroke,
|
|
1618
|
-
"stroke-width": M.value.style.chart.layout.verticalSeparator.strokeWidth
|
|
1619
|
-
}, null, 8, Pt),
|
|
1620
|
-
!H.value && !W.value ? (b(), m("foreignObject", {
|
|
1621
|
-
key: 6,
|
|
1622
|
-
x: 0,
|
|
1623
|
-
y: I.value.bottom,
|
|
1624
|
-
height: F.value.height - I.value.bottom,
|
|
1625
|
-
width: F.value.width,
|
|
1626
|
-
style: { overflow: "visible" },
|
|
1627
|
-
"data-no-svg-export": "",
|
|
1628
|
-
onClick: n[6] ||= () => {
|
|
1629
|
-
K(), $(), k.value = !1;
|
|
1630
|
-
}
|
|
1631
|
-
}, [h("div", It, [h("div", Lt, [(b(!0), m(d, null, S(B.value, (e) => (b(), m("div", { style: y(`display:flex;align-items:center;gap:3px;flex-direction:row;font-size:${M.value.style.chart.layout.legend.fontSize}px;`) }, [(b(), m("svg", Rt, [h("circle", {
|
|
1632
|
-
cx: "10",
|
|
1633
|
-
cy: "10",
|
|
1634
|
-
r: "10",
|
|
1635
|
-
fill: e.color,
|
|
1636
|
-
stroke: "none"
|
|
1637
|
-
}, null, 8, zt)])), T(hr) ? p("", !0) : (b(), m(d, { key: 0 }, [
|
|
1638
|
-
h("span", null, w(e.name) + ":", 1),
|
|
1639
|
-
h("b", null, w(T(c)(M.value.style.chart.layout.roots.labels.formatter, e.total, T(t)({
|
|
1640
|
-
p: M.value.style.chart.layout.legend.prefix,
|
|
1641
|
-
v: e.total,
|
|
1642
|
-
s: M.value.style.chart.layout.legend.suffix,
|
|
1643
|
-
r: M.value.style.chart.layout.legend.roundingValue
|
|
1644
|
-
}), { datapoint: e })), 1),
|
|
1645
|
-
De(" (" + w(T(t)({
|
|
1646
|
-
v: e.total / L.value * 100,
|
|
1647
|
-
s: "%",
|
|
1648
|
-
r: M.value.style.chart.layout.legend.roundingPercentage
|
|
1649
|
-
})) + ") ", 1)
|
|
1650
|
-
], 64))], 4))), 256))])])], 8, Ft)) : p("", !0),
|
|
1651
|
-
H.value && U.value ? (b(), m("g", Bt, [
|
|
1652
|
-
(b(), m("foreignObject", {
|
|
1653
|
-
x: 0,
|
|
1654
|
-
y: Wr(),
|
|
1655
|
-
height: F.value.height - I.value.bottom,
|
|
1656
|
-
width: F.value.width,
|
|
1657
|
-
style: { overflow: "visible" },
|
|
1658
|
-
onClick: n[7] ||= () => {
|
|
1659
|
-
K(), $(), k.value = !1;
|
|
1660
|
-
}
|
|
1661
|
-
}, [h("div", Ht, [h("b", null, w(H.value.name), 1), h("div", Ut, [(b(!0), m(d, null, S(H.value.breakdown, (e, t) => (b(), m("div", { style: y(`display:flex;align-items:center;gap:6px;flex-direction:row;font-size:${M.value.style.chart.layout.legend.fontSize}px;`) }, [(b(), m("svg", Wt, [h("circle", {
|
|
1662
|
-
cx: "10",
|
|
1663
|
-
cy: "10",
|
|
1664
|
-
r: "10",
|
|
1665
|
-
fill: e.color,
|
|
1666
|
-
stroke: "none"
|
|
1667
|
-
}, null, 8, Gt)])), h("span", null, [
|
|
1668
|
-
De(w(e.name) + ": ", 1),
|
|
1669
|
-
h("b", null, w(M.value.style.chart.layout.legend.prefix) + " " + w(e.value.toFixed(M.value.style.chart.layout.nuts.selected.labels.roundingValue)) + " " + w(M.value.style.chart.layout.legend.suffix), 1),
|
|
1670
|
-
De(" (" + w((e.proportionToBranch * 100).toFixed(M.value.style.chart.layout.nuts.selected.labels.roundingPercentage)) + "%)", 1)
|
|
1671
|
-
])], 4))), 256))])])], 8, Vt)),
|
|
1672
|
-
h("circle", {
|
|
1673
|
-
cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1674
|
-
cy: H.value.y1 + F.value.branchSize / 2,
|
|
1675
|
-
r: 256,
|
|
1676
|
-
fill: `url(#nut_underlayer_${O.value})`,
|
|
1677
|
-
onClick: J,
|
|
1678
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1679
|
-
}, null, 10, Kt),
|
|
1680
|
-
(b(!0), m(d, null, S(U.value, (e) => (b(), m("g", null, [Gr(e) ? (b(), m("path", {
|
|
1681
|
-
key: 0,
|
|
1682
|
-
d: T(ae)(e, {
|
|
1683
|
-
x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1684
|
-
y: H.value.y1 + F.value.branchSize / 2
|
|
1685
|
-
}, 16, 16, !1, !1, 64),
|
|
1686
|
-
stroke: e.color,
|
|
1687
|
-
"stroke-width": "1",
|
|
1688
|
-
"stroke-linecap": "round",
|
|
1689
|
-
"stroke-linejoin": "round",
|
|
1690
|
-
fill: "none",
|
|
1691
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1692
|
-
}, null, 10, qt)) : p("", !0)]))), 256)),
|
|
1693
|
-
h("circle", {
|
|
1694
|
-
cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1695
|
-
cy: H.value.y1 + F.value.branchSize / 2,
|
|
1696
|
-
r: 118,
|
|
1697
|
-
fill: M.value.style.chart.backgroundColor,
|
|
1698
|
-
onClick: J,
|
|
1699
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1700
|
-
}, null, 10, Jt),
|
|
1701
|
-
(b(!0), m(d, null, S(U.value, (e) => (b(), m("path", {
|
|
1702
|
-
d: e.path,
|
|
1703
|
-
stroke: e.color,
|
|
1704
|
-
"stroke-width": 64,
|
|
1705
|
-
fill: "none",
|
|
1706
|
-
onClick: J,
|
|
1707
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1708
|
-
}, null, 10, Yt))), 256)),
|
|
1709
|
-
h("circle", {
|
|
1710
|
-
cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1711
|
-
cy: H.value.y1 + F.value.branchSize / 2,
|
|
1712
|
-
r: 110,
|
|
1713
|
-
fill: `url(#nutpick_${O.value})`,
|
|
1714
|
-
onClick: J,
|
|
1715
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1716
|
-
}, null, 10, Xt),
|
|
1717
|
-
h("circle", {
|
|
1718
|
-
cx: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1719
|
-
cy: H.value.y1 + F.value.branchSize / 2,
|
|
1720
|
-
r: 64,
|
|
1721
|
-
fill: M.value.style.chart.backgroundColor,
|
|
1722
|
-
onClick: J,
|
|
1723
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1724
|
-
}, null, 10, Zt),
|
|
1725
|
-
h("text", {
|
|
1726
|
-
x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1727
|
-
y: H.value.y1 + 8,
|
|
1728
|
-
fill: M.value.style.chart.layout.nuts.selected.labels.core.total.color,
|
|
1729
|
-
"font-size": M.value.style.chart.layout.nuts.selected.labels.core.total.fontSize,
|
|
1730
|
-
"font-weight": M.value.style.chart.layout.nuts.selected.labels.core.total.bold ? "bold" : "normal",
|
|
1731
|
-
"text-anchor": "middle",
|
|
1732
|
-
onClick: J,
|
|
1733
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1734
|
-
}, w(M.value.translations.total), 11, Qt),
|
|
1735
|
-
h("text", {
|
|
1736
|
-
x: H.value.x2 + 24 + M.value.style.chart.layout.nuts.offsetX,
|
|
1737
|
-
y: H.value.y1 + 36,
|
|
1738
|
-
fill: M.value.style.chart.layout.nuts.selected.labels.core.value.color,
|
|
1739
|
-
"font-size": M.value.style.chart.layout.nuts.selected.labels.core.value.fontSize,
|
|
1740
|
-
"font-weight": M.value.style.chart.layout.nuts.selected.labels.core.value.bold ? "bold" : "normal",
|
|
1741
|
-
"text-anchor": "middle",
|
|
1742
|
-
onClick: J,
|
|
1743
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1744
|
-
}, w(T(c)(M.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.value, T(t)({
|
|
1745
|
-
p: M.value.style.chart.layout.nuts.selected.labels.core.value.prefix,
|
|
1746
|
-
v: H.value.value,
|
|
1747
|
-
s: M.value.style.chart.layout.nuts.selected.labels.core.value.suffix,
|
|
1748
|
-
r: M.value.style.chart.layout.nuts.selected.roundingValue
|
|
1749
|
-
}), { datapoint: H.value })), 11, $t),
|
|
1750
|
-
(b(!0), m(d, null, S(U.value, (e, t) => (b(), m("g", null, [Gr(e) ? (b(), m("text", {
|
|
1751
|
-
key: 0,
|
|
1752
|
-
x: T(u)(e).x,
|
|
1753
|
-
"text-anchor": T(u)(e).anchor,
|
|
1754
|
-
y: T(re)(e) - M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 6,
|
|
1755
|
-
fill: e.color,
|
|
1756
|
-
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize / 2,
|
|
1757
|
-
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1758
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1759
|
-
}, " ⬤ ", 14, en)) : p("", !0), Gr(e) ? (b(), m("text", {
|
|
1760
|
-
key: 1,
|
|
1761
|
-
x: T(u)(e, !0).x,
|
|
1762
|
-
"text-anchor": T(u)(e, !0).anchor,
|
|
1763
|
-
y: T(re)(e),
|
|
1764
|
-
fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1765
|
-
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1766
|
-
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1767
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1768
|
-
}, w(H.value.breakdown[t].name), 15, tn)) : p("", !0)]))), 256)),
|
|
1769
|
-
(b(!0), m(d, null, S(U.value, (e, n) => (b(), m("g", null, [
|
|
1770
|
-
Gr(e) ? (b(), m("text", {
|
|
1771
|
-
key: 0,
|
|
1772
|
-
x: T(u)(e, !0).x,
|
|
1773
|
-
"text-anchor": T(u)(e).anchor,
|
|
1774
|
-
y: T(re)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1775
|
-
fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1776
|
-
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1777
|
-
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1778
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1779
|
-
}, w(T(t)({
|
|
1780
|
-
v: H.value.breakdown[n].value / H.value.value * 100,
|
|
1781
|
-
s: "%",
|
|
1782
|
-
r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1783
|
-
})) + " " + w(M.value.translations.of) + " " + w(H.value.breakdown[n].branchName) + " " + w(T(c)(M.value.style.chart.layout.nuts.selected.labels.dataLabels.formatter, H.value.breakdown[n].value, T(t)({
|
|
1784
|
-
p: M.value.style.chart.layout.nuts.selected.labels.dataLabels.prefix,
|
|
1785
|
-
v: H.value.breakdown[n].value,
|
|
1786
|
-
s: M.value.style.chart.layout.nuts.selected.labels.dataLabels.suffix,
|
|
1787
|
-
r: M.value.style.chart.layout.nuts.selected.roundingValue
|
|
1788
|
-
}), {
|
|
1789
|
-
datapoint: U.value,
|
|
1790
|
-
seriesIndex: n
|
|
1791
|
-
})), 15, nn)) : p("", !0),
|
|
1792
|
-
Gr(e) ? (b(), m("text", {
|
|
1793
|
-
key: 1,
|
|
1794
|
-
x: T(u)(e, !0).x,
|
|
1795
|
-
"text-anchor": T(u)(e).anchor,
|
|
1796
|
-
y: T(re)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 2,
|
|
1797
|
-
fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1798
|
-
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1799
|
-
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1800
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1801
|
-
}, w(T(t)({
|
|
1802
|
-
v: H.value.breakdown[n].proportionToRoot * 100,
|
|
1803
|
-
s: "%",
|
|
1804
|
-
r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1805
|
-
})) + " " + w(M.value.translations.of) + " " + w(H.value.breakdown[n].rootName), 15, rn)) : p("", !0),
|
|
1806
|
-
Gr(e) ? (b(), m("text", {
|
|
1807
|
-
key: 2,
|
|
1808
|
-
x: T(u)(e, !0).x,
|
|
1809
|
-
"text-anchor": T(u)(e).anchor,
|
|
1810
|
-
y: T(re)(e) + M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize * 3,
|
|
1811
|
-
fill: M.value.style.chart.layout.nuts.selected.labels.dataLabels.color,
|
|
1812
|
-
"font-size": M.value.style.chart.layout.nuts.selected.labels.dataLabels.fontSize,
|
|
1813
|
-
style: y(`font-weight:${M.value.style.chart.layout.nuts.selected.labels.dataLabels.bold ? "bold" : ""}`),
|
|
1814
|
-
class: _(M.value.style.chart.layout.nuts.selected.useMotion ? "vue-ui-chestnut-animated" : "")
|
|
1815
|
-
}, w(T(t)({
|
|
1816
|
-
v: H.value.breakdown[n].proportionToTree * 100,
|
|
1817
|
-
s: "%",
|
|
1818
|
-
r: M.value.style.chart.layout.nuts.selected.labels.roundingPercentage
|
|
1819
|
-
})) + " " + w(M.value.translations.proportionToTree), 15, an)) : p("", !0)
|
|
1820
|
-
]))), 256))
|
|
1821
|
-
])) : p("", !0),
|
|
1822
|
-
(b(!0), m(d, null, S(V.value, (e) => (b(), m("g", null, [
|
|
1823
|
-
W.value && W.value.id === e.id && !H.value ? (b(), m("text", {
|
|
1824
|
-
key: 0,
|
|
1825
|
-
x: e.x1 + 6,
|
|
1826
|
-
y: e.y1 + F.value.branchSize + 24,
|
|
1827
|
-
"font-weight": "bold",
|
|
1828
|
-
"text-anchor": "start",
|
|
1829
|
-
"font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1830
|
-
fill: M.value.style.chart.layout.branches.labels.color,
|
|
1831
|
-
onClick: n[8] ||= () => {
|
|
1832
|
-
K(), $(), k.value = !1;
|
|
1833
|
-
}
|
|
1834
|
-
}, w(e.name) + ": " + w(T(c)(M.value.style.chart.layout.branches.labels.dataLabels.formatter, e.value, T(t)({
|
|
1835
|
-
p: M.value.style.chart.layout.branches.labels.dataLabels.prefix,
|
|
1836
|
-
v: e.value,
|
|
1837
|
-
s: M.value.style.chart.layout.branches.labels.dataLabels.suffix,
|
|
1838
|
-
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingValue
|
|
1839
|
-
}), { datapoint: e })), 9, on)) : p("", !0),
|
|
1840
|
-
W.value && W.value.id === e.id && !H.value ? (b(), m("text", {
|
|
1841
|
-
key: 1,
|
|
1842
|
-
x: e.x1 + 6,
|
|
1843
|
-
y: e.y1 + F.value.branchSize + 48,
|
|
1844
|
-
"text-anchor": "start",
|
|
1845
|
-
"font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1846
|
-
fill: M.value.style.chart.layout.branches.labels.color,
|
|
1847
|
-
onClick: n[9] ||= () => {
|
|
1848
|
-
K(), $(), k.value = !1;
|
|
1849
|
-
}
|
|
1850
|
-
}, w(T(t)({
|
|
1851
|
-
v: e.proportionToRoot * 100,
|
|
1852
|
-
s: "%",
|
|
1853
|
-
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1854
|
-
})) + " " + w(M.value.translations.of) + " " + w(e.rootName), 9, sn)) : p("", !0),
|
|
1855
|
-
W.value && W.value.id === e.id && !H.value ? (b(), m("text", {
|
|
1856
|
-
key: 2,
|
|
1857
|
-
x: e.x1 + 6,
|
|
1858
|
-
y: e.y1 + F.value.branchSize + 72,
|
|
1859
|
-
"text-anchor": "start",
|
|
1860
|
-
"font-size": M.value.style.chart.layout.branches.labels.dataLabels.fontSize,
|
|
1861
|
-
fill: M.value.style.chart.layout.branches.labels.color,
|
|
1862
|
-
onClick: n[10] ||= () => {
|
|
1863
|
-
K(), $(), k.value = !1;
|
|
1864
|
-
}
|
|
1865
|
-
}, w(T(t)({
|
|
1866
|
-
v: e.value / L.value * 100,
|
|
1867
|
-
s: "%",
|
|
1868
|
-
r: M.value.style.chart.layout.branches.labels.dataLabels.roundingPercentage
|
|
1869
|
-
})) + " " + w(M.value.translations.proportionToTree), 9, cn)) : p("", !0)
|
|
1870
|
-
]))), 256)),
|
|
1871
|
-
C(e.$slots, "svg", { svg: {
|
|
1872
|
-
...F.value,
|
|
1873
|
-
isPrintingImg: T(Sr) || T(Cr) || dr.value,
|
|
1874
|
-
isPrintingSvg: fr.value
|
|
1875
|
-
} }, void 0, !0)
|
|
1876
|
-
], 46, We)) : p("", !0)]),
|
|
1877
|
-
e.$slots.watermark ? (b(), m("div", ln, [C(e.$slots, "watermark", v(g({ isPrinting: T(Sr) || T(Cr) || dr.value || fr.value })), void 0, !0)])) : p("", !0),
|
|
1878
|
-
C(e.$slots, "legend", { legend: R.value }, void 0, !0),
|
|
1879
|
-
e.$slots.source ? (b(), m("div", un, [C(e.$slots, "source", {}, void 0, !0)], 512)) : p("", !0),
|
|
1880
|
-
or.value && M.value.userOptions.buttons.table ? (b(), Te(Ne(ni.value.component), Ae({ key: 6 }, ni.value.props, {
|
|
1881
|
-
ref_key: "tableUnit",
|
|
1882
|
-
ref: lr,
|
|
1883
|
-
onClose: ii
|
|
1884
|
-
}), Ee({
|
|
1885
|
-
content: E(() => [h("div", {
|
|
1886
|
-
ref_key: "tableContainer",
|
|
1887
|
-
ref: Or,
|
|
1888
|
-
class: "vue-ui-chestnut-table",
|
|
1889
|
-
style: y(`${M.value.table.useDialog ? "" : "max-height: 300px;margin-top:24px"}`)
|
|
1890
|
-
}, [h("div", { style: y(`${M.value.table.useDialog ? "" : "padding-top:36px;"}position: relative`) }, [M.value.table.useDialog ? p("", !0) : (b(), m("div", {
|
|
1891
|
-
key: 0,
|
|
1892
|
-
role: "button",
|
|
1893
|
-
tabindex: "0",
|
|
1894
|
-
style: y(`width:32px; position: absolute; top: 0; left:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${N.value ? "pointer" : "default"}; background:${M.value.table.th.backgroundColor};`),
|
|
1895
|
-
onClick: ii,
|
|
1896
|
-
onKeypress: Le(ii, ["enter"])
|
|
1897
|
-
}, [Oe(T(Zn), {
|
|
1898
|
-
name: "close",
|
|
1899
|
-
stroke: M.value.table.th.color,
|
|
1900
|
-
"stroke-width": 2
|
|
1901
|
-
}, null, 8, ["stroke"])], 36)), h("div", {
|
|
1902
|
-
style: { width: "100%" },
|
|
1903
|
-
class: _({ "vue-ui-responsive": T(ri) })
|
|
1904
|
-
}, [h("table", dn, [
|
|
1905
|
-
M.value.table.useDialog ? p("", !0) : (b(), m("caption", {
|
|
1906
|
-
key: 0,
|
|
1907
|
-
style: y({
|
|
1908
|
-
backgroundColor: M.value.table.th.backgroundColor,
|
|
1909
|
-
color: M.value.table.th.color,
|
|
1910
|
-
outline: M.value.table.th.outline
|
|
1911
|
-
}),
|
|
1912
|
-
class: "vue-ui-data-table__caption"
|
|
1913
|
-
}, [De(w(M.value.style.chart.layout.title.text) + " ", 1), M.value.style.chart.layout.title.subtitle.text ? (b(), m("span", fn, w(M.value.style.chart.layout.title.subtitle.text), 1)) : p("", !0)], 4)),
|
|
1914
|
-
h("thead", null, [h("tr", {
|
|
1915
|
-
role: "row",
|
|
1916
|
-
style: y(`background:${M.value.table.th.backgroundColor};color:${M.value.table.th.color}`)
|
|
1917
|
-
}, [(b(!0), m(d, null, S(Y.value.head, (e) => (b(), m("th", { style: y(`outline:${M.value.table.th.outline}`) }, w(e), 5))), 256))], 4)]),
|
|
1918
|
-
h("tbody", null, [(b(!0), m(d, null, S(Y.value.body, (e, t) => (b(), m("tr", {
|
|
1919
|
-
class: _({
|
|
1920
|
-
"vue-ui-data-table__tbody__row": !0,
|
|
1921
|
-
"vue-ui-data-table__tbody__row-even": t % 2 == 0,
|
|
1922
|
-
"vue-ui-data-table__tbody__row-odd": t % 2 != 0
|
|
1923
|
-
}),
|
|
1924
|
-
style: y(`background:${M.value.table.td.backgroundColor};color:${M.value.table.td.color}`)
|
|
1925
|
-
}, [
|
|
1926
|
-
h("td", {
|
|
1927
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1928
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1929
|
-
"data-cell": Y.value.head[0]
|
|
1930
|
-
}, [h("div", mn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), m("span", hn)) : (b(), m("span", gn, w(e.rootName), 1))])], 12, pn),
|
|
1931
|
-
h("td", {
|
|
1932
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1933
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1934
|
-
"data-cell": Y.value.head[1]
|
|
1935
|
-
}, [h("div", vn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), m("span", yn)) : (b(), m("span", bn, w(e.rootValue.toFixed(M.value.table.td.roundingValue)), 1))])], 12, _n),
|
|
1936
|
-
h("td", {
|
|
1937
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1938
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1939
|
-
"data-cell": Y.value.head[2]
|
|
1940
|
-
}, [h("div", Sn, [Y.value.body[t - 1] && Y.value.body[t - 1].rootName === e.rootName ? (b(), m("span", Cn)) : (b(), m("span", wn, w((e.rootToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, xn),
|
|
1941
|
-
h("td", {
|
|
1942
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1943
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1944
|
-
"data-cell": Y.value.head[3]
|
|
1945
|
-
}, [h("div", En, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", Dn)) : (b(), m("span", On, w(e.branchName), 1))])], 12, Tn),
|
|
1946
|
-
h("td", {
|
|
1947
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1948
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1949
|
-
"data-cell": Y.value.head[4]
|
|
1950
|
-
}, [h("div", An, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", jn)) : (b(), m("span", Mn, w(e.branchValue.toFixed(M.value.table.td.roundingValue)), 1))])], 12, kn),
|
|
1951
|
-
h("td", {
|
|
1952
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1953
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1954
|
-
"data-cell": Y.value.head[5]
|
|
1955
|
-
}, [h("div", Pn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", Fn)) : (b(), m("span", In, w((e.branchToRoot * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, Nn),
|
|
1956
|
-
h("td", {
|
|
1957
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1958
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1959
|
-
"data-cell": Y.value.head[6]
|
|
1960
|
-
}, [h("div", Rn, [Y.value.body[t - 1] && Y.value.body[t - 1].branchName === e.branchName ? (b(), m("span", zn)) : (b(), m("span", Bn, w((e.branchToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1))])], 12, Ln),
|
|
1961
|
-
h("td", {
|
|
1962
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1963
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1964
|
-
"data-cell": Y.value.head[7]
|
|
1965
|
-
}, [h("div", Hn, w(e.nutName), 1)], 12, Vn),
|
|
1966
|
-
h("td", {
|
|
1967
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1968
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1969
|
-
"data-cell": Y.value.head[8]
|
|
1970
|
-
}, [h("div", Wn, w(e.nutValue.toFixed(M.value.table.td.roundingValue)), 1)], 12, Un),
|
|
1971
|
-
h("td", {
|
|
1972
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1973
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1974
|
-
"data-cell": Y.value.head[9]
|
|
1975
|
-
}, [h("div", Kn, w((e.nutToBranch * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, Gn),
|
|
1976
|
-
h("td", {
|
|
1977
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1978
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1979
|
-
"data-cell": Y.value.head[10]
|
|
1980
|
-
}, [h("div", Jn, w((e.nutToRoot * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, qn),
|
|
1981
|
-
h("td", {
|
|
1982
|
-
class: "vue-ui-data-table__tbody__td",
|
|
1983
|
-
style: y(`outline:${M.value.table.td.outline}`),
|
|
1984
|
-
"data-cell": Y.value.head[11]
|
|
1985
|
-
}, [h("div", Xn, w((e.nutToTotal * 100).toFixed(M.value.table.td.roundingPercentage)) + "% ", 1)], 12, Yn)
|
|
1986
|
-
], 6))), 256))])
|
|
1987
|
-
])], 2)], 4)], 4)]),
|
|
1988
|
-
_: 2
|
|
1989
|
-
}, [M.value.table.useDialog ? {
|
|
1990
|
-
name: "title",
|
|
1991
|
-
fn: E(() => [De(w(ni.value.title), 1)]),
|
|
1992
|
-
key: "0"
|
|
1993
|
-
} : void 0, M.value.table.useDialog ? {
|
|
1994
|
-
name: "actions",
|
|
1995
|
-
fn: E(() => [h("button", {
|
|
1996
|
-
tabindex: "0",
|
|
1997
|
-
class: "vue-ui-user-options-button",
|
|
1998
|
-
onClick: n[11] ||= (e) => Jr(M.value.userOptions.callbacks.csv)
|
|
1999
|
-
}, [Oe(T(Zn), {
|
|
2000
|
-
name: "fileCsv",
|
|
2001
|
-
stroke: ni.value.props.color
|
|
2002
|
-
}, null, 8, ["stroke"])])]),
|
|
2003
|
-
key: "1"
|
|
2004
|
-
} : void 0]), 1040)) : p("", !0),
|
|
2005
|
-
C(e.$slots, "skeleton", {}, () => [T(hr) ? (b(), Te(me, { key: 0 })) : p("", !0)], !0)
|
|
2006
|
-
], 46, ze));
|
|
2007
|
-
}
|
|
2008
|
-
}, [["__scopeId", "data-v-6db5d986"]]);
|
|
2009
|
-
//#endregion
|
|
2010
|
-
export { Re as n, Zn as t };
|