vue-data-ui 3.22.9 → 3.22.11
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/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
- package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
- package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
- package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
- package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
- package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
- package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
- package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
- package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
- package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
- package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
- package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
- package/dist/Slicer-C6qNUmZ4.js +1149 -0
- package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
- package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
- package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
- package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
- package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
- package/dist/exposedLib-Ciw6TGtP.js +25 -0
- package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
- package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
- package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
- package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
- package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
- package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
- package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +40 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
- package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
- package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
- package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
- package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
- package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
- package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
- package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
- package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
- package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
- package/dist/utils.js +26 -24
- package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
- package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
- package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
- package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
- package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
- package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
- package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
- package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
- package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
- package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
- package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
- package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
- package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
- package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
- package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
- package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
- package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
- package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
- package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
- package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
- package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
- package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
- package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
- package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
- package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
- package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
- package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
- package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
- package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
- package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
- package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
- package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
- package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
- package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
- package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
- package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
- package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
- package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
- package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
- package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
- package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
- package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
- package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
- package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
- package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
- package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
- package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
- package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
- package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
- package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
- package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
- package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
- package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
- package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
- package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
- package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
- package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
- package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
- package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
- package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
- package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
- package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
- package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
- package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
- package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
- package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
- package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
- package/package.json +2 -2
- package/dist/Slicer-CW_XPIKL.js +0 -1150
- package/dist/exposedLib-VXFp3Z2c.js +0 -19
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
- package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
- package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
- package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
- package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
- package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
- package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
- package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
- package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
- package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
- package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
- package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
- package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
- package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
- package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
- package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
- package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
- package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
- package/dist/vue-ui-rings-J990vNbX.js +0 -1252
- package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
- package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
- package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
- package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
- package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
- package/dist/vue-ui-table-uudidrYt.js +0 -1338
- package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
- package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
- package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import { t as _e } from "./
|
|
14
|
-
import { t as ve } from "./
|
|
15
|
-
import { t as ye } from "./
|
|
16
|
-
import { t as be } from "./
|
|
17
|
-
import { t as xe } from "./
|
|
18
|
-
import { t as Se } from "./
|
|
19
|
-
import { t as Ce } from "./
|
|
20
|
-
import { t as we } from "./
|
|
21
|
-
import { t as Te } from "./
|
|
22
|
-
import { t as Ee } from "./
|
|
23
|
-
import {
|
|
24
|
-
import { Fragment as p, Teleport as Oe, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as ke, createTextVNode as Ae, createVNode as je, defineAsyncComponent as Me, guardReactiveProps as y, mergeProps as Ne, nextTick as Pe, normalizeClass as Fe, normalizeProps as b, normalizeStyle as x, onBeforeUnmount as Ie, onMounted as Le, openBlock as S, ref as C, renderList as Re, renderSlot as w, resolveDynamicComponent as ze, shallowRef as T, toDisplayString as Be, toRefs as Ve, unref as E, useCssVars as He, useSlots as Ue, watch as D, withCtx as O, withKeys as We, withModifiers as Ge } from "vue";
|
|
2
|
+
import { At as t, C as n, Dt as r, E as i, Gt as a, K as o, Nt as s, Q as c, X as l, Y as u, bt as d, et as f, i as ee, qt as te, r as ne, st as re, t as ie, x as p } from "./lib-CFm_J26b.js";
|
|
3
|
+
import { t as ae } from "./useConfig-C0V0eG7L.js";
|
|
4
|
+
import { t as oe } from "./usePrinter-BH-xle1O.js";
|
|
5
|
+
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as le } from "./useSvgExport-Ba9qBr9M.js";
|
|
7
|
+
import { t as ue } from "./useNestedProp-BY6DNN3i.js";
|
|
8
|
+
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as fe } from "./img-Bikk1dGb.js";
|
|
10
|
+
import { n as pe } from "./Title-BuPs74IB.js";
|
|
11
|
+
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { l as he, t as ge } from "./useResponsive-ZtArZtUf.js";
|
|
13
|
+
import { t as _e } from "./BaseIcon-CP5RWnqt.js";
|
|
14
|
+
import { t as ve } from "./DefGrad-DVBqDjhO.js";
|
|
15
|
+
import { t as ye } from "./BaseLegendToggle-DsWphmIb.js";
|
|
16
|
+
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { t as Ce } from "./Legend-C0xAnJdO.js";
|
|
20
|
+
import { t as we } from "./usePrefersMotion-BC-CsqR1.js";
|
|
21
|
+
import { t as Te } from "./usePanZoom-CYU3B4T3.js";
|
|
22
|
+
import { t as Ee } from "./vue_ui_treemap-DoEtkRN6.js";
|
|
23
|
+
import { Fragment as m, Teleport as De, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createSlots as Oe, createTextVNode as ke, createVNode as Ae, defineAsyncComponent as je, guardReactiveProps as b, mergeProps as Me, nextTick as Ne, normalizeClass as Pe, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as Fe, onMounted as Ie, openBlock as C, ref as w, renderList as Le, renderSlot as T, resolveDynamicComponent as Re, shallowRef as E, toDisplayString as ze, toRefs as Be, unref as D, useCssVars as Ve, useSlots as He, watch as O, withCtx as k, withKeys as Ue, withModifiers as We } from "vue";
|
|
25
24
|
//#region src/treemap.js
|
|
26
|
-
function
|
|
25
|
+
function Ge(e, t) {
|
|
27
26
|
let n = e.length;
|
|
28
27
|
if (n === 0) throw Error(`Max aspect ratio cannot be computed: ${e} is an empty array`);
|
|
29
28
|
{
|
|
@@ -35,7 +34,7 @@ function Ke(e, t) {
|
|
|
35
34
|
return Math.max(t ** 2 * i / a ** 2, a ** 2 / (t ** 2 * r));
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
|
-
function
|
|
37
|
+
function Ke(e) {
|
|
39
38
|
let { xOffset: t, yOffset: n, width: r, height: i } = e;
|
|
40
39
|
return {
|
|
41
40
|
x0: t,
|
|
@@ -44,14 +43,14 @@ function qe(e) {
|
|
|
44
43
|
y1: n + i
|
|
45
44
|
};
|
|
46
45
|
}
|
|
47
|
-
function
|
|
46
|
+
function qe(e, t, n) {
|
|
48
47
|
if (e.length === 0) return !0;
|
|
49
48
|
{
|
|
50
49
|
let r = e.concat(t);
|
|
51
|
-
return
|
|
50
|
+
return Ge(e, n) >= Ge(r, n);
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
|
-
function
|
|
53
|
+
function Je(e) {
|
|
55
54
|
let t = [], n = e.length;
|
|
56
55
|
for (let r = 0; r < n; r += 1) {
|
|
57
56
|
let n = e[r], i = n.length;
|
|
@@ -59,17 +58,17 @@ function Ye(e) {
|
|
|
59
58
|
}
|
|
60
59
|
return t;
|
|
61
60
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
61
|
+
function Ye(e, t) {
|
|
62
|
+
return nt({
|
|
64
63
|
...t,
|
|
65
64
|
children: e
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
|
-
function
|
|
67
|
+
function Xe(e) {
|
|
69
68
|
return (e.x1 - e.x0) * (e.y1 - e.y0);
|
|
70
69
|
}
|
|
71
|
-
function
|
|
72
|
-
let { width: n, height: r, xOffset: i, yOffset: a } =
|
|
70
|
+
function Ze(e, t) {
|
|
71
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = et(t), o = e.length, s = e.map((e) => e.normalizedValue || 0).reduce((e, t) => e + t, 0), c = s / r, l = s / n, u = i, d = a, f = [];
|
|
73
72
|
if (n >= r) {
|
|
74
73
|
for (let t = 0; t < o; t += 1) {
|
|
75
74
|
let n = e[t], r = d + n.normalizedValue / c, i = {
|
|
@@ -94,16 +93,16 @@ function Qe(e, t) {
|
|
|
94
93
|
return f;
|
|
95
94
|
}
|
|
96
95
|
}
|
|
97
|
-
function
|
|
98
|
-
let t =
|
|
96
|
+
function Qe(e) {
|
|
97
|
+
let t = et(e), n = t.width, r = t.height;
|
|
99
98
|
return Math.min(n, r);
|
|
100
99
|
}
|
|
101
|
-
function
|
|
100
|
+
function $e(e, t) {
|
|
102
101
|
let n = e.length, r = t / e.map((e) => e.value ?? 0).reduce((e, t) => e + t, 0), i = [], a, o;
|
|
103
102
|
for (let t = 0; t < n; t += 1) o = e[t], a = Object.assign({}, o, { normalizedValue: o.value * (r || 0) }), i.push(a);
|
|
104
103
|
return i;
|
|
105
104
|
}
|
|
106
|
-
function
|
|
105
|
+
function et(e) {
|
|
107
106
|
let { x0: t, y0: n, x1: r, y1: i } = e;
|
|
108
107
|
return {
|
|
109
108
|
xOffset: t,
|
|
@@ -112,39 +111,39 @@ function tt(e) {
|
|
|
112
111
|
height: i - n
|
|
113
112
|
};
|
|
114
113
|
}
|
|
115
|
-
function
|
|
114
|
+
function tt(e, t, n, r) {
|
|
116
115
|
let i = e, a = t, o = n, s = r;
|
|
117
116
|
for (;;) {
|
|
118
117
|
let e = i.length;
|
|
119
118
|
if (e === 0) {
|
|
120
|
-
let e =
|
|
119
|
+
let e = Ze(a, o);
|
|
121
120
|
return s.concat(e);
|
|
122
121
|
}
|
|
123
|
-
let t =
|
|
124
|
-
if (
|
|
122
|
+
let t = Qe(o), n = i[0], r = i.slice(1, e);
|
|
123
|
+
if (qe(a, n, t)) {
|
|
125
124
|
let e = a.concat(n);
|
|
126
125
|
i = r, a = e, o = o, s = s;
|
|
127
126
|
} else {
|
|
128
127
|
let e = a.length, t = 0;
|
|
129
128
|
for (let n = 0; n < e; n += 1) t += a[n].normalizedValue;
|
|
130
|
-
let n =
|
|
129
|
+
let n = A(o, t), r = Ze(a, o), c = s.concat(r);
|
|
131
130
|
i = i, a = [], o = n, s = c;
|
|
132
131
|
}
|
|
133
132
|
}
|
|
134
133
|
}
|
|
135
|
-
function
|
|
134
|
+
function nt(e) {
|
|
136
135
|
if (e.children === void 0 || !e.children.length) return [e];
|
|
137
136
|
{
|
|
138
|
-
let t =
|
|
139
|
-
for (let e = 0; e < n; e += 1) r.push(
|
|
140
|
-
return
|
|
137
|
+
let t = tt($e(e.children, Xe(e)), [], e, []), n = t.length, r = [];
|
|
138
|
+
for (let e = 0; e < n; e += 1) r.push(nt(t[e]));
|
|
139
|
+
return Je(r);
|
|
141
140
|
}
|
|
142
141
|
}
|
|
143
|
-
function
|
|
144
|
-
let { width: n, height: r, xOffset: i, yOffset: a } =
|
|
142
|
+
function A(e, t) {
|
|
143
|
+
let { width: n, height: r, xOffset: i, yOffset: a } = et(e);
|
|
145
144
|
if (n >= r) {
|
|
146
145
|
let e = t / r, o = n - e;
|
|
147
|
-
return
|
|
146
|
+
return Ke({
|
|
148
147
|
xOffset: i + e,
|
|
149
148
|
yOffset: a,
|
|
150
149
|
width: o,
|
|
@@ -152,7 +151,7 @@ function k(e, t) {
|
|
|
152
151
|
});
|
|
153
152
|
} else {
|
|
154
153
|
let e = t / n, o = r - e;
|
|
155
|
-
return
|
|
154
|
+
return Ke({
|
|
156
155
|
xOffset: i,
|
|
157
156
|
yOffset: a + e,
|
|
158
157
|
width: n,
|
|
@@ -162,28 +161,28 @@ function k(e, t) {
|
|
|
162
161
|
}
|
|
163
162
|
//#endregion
|
|
164
163
|
//#region src/components/vue-ui-treemap.vue
|
|
165
|
-
var
|
|
164
|
+
var j = /* @__PURE__ */ e({ default: () => jt }), rt = ["id"], it = ["id"], at = ["id"], ot = [
|
|
166
165
|
"tabindex",
|
|
167
166
|
"onClick",
|
|
168
167
|
"onKeydown",
|
|
169
168
|
"data-last-crumb",
|
|
170
169
|
"onMouseenter",
|
|
171
170
|
"onFocus"
|
|
172
|
-
],
|
|
171
|
+
], st = { class: "vue-ui-treemap-crumb-unit" }, ct = { class: "vue-ui-treemap-crumb-unit-label" }, lt = {
|
|
173
172
|
key: 0,
|
|
174
173
|
style: {
|
|
175
174
|
width: "24px",
|
|
176
175
|
display: "flex",
|
|
177
176
|
"align-items": "center"
|
|
178
177
|
}
|
|
179
|
-
},
|
|
178
|
+
}, ut = {
|
|
180
179
|
key: 0,
|
|
181
180
|
class: "vue-ui-treemap-crumb-unit-arrow"
|
|
182
|
-
},
|
|
181
|
+
}, dt = { style: { position: "relative" } }, ft = [
|
|
183
182
|
"xmlns",
|
|
184
183
|
"aria-describedby",
|
|
185
184
|
"viewBox"
|
|
186
|
-
],
|
|
185
|
+
], pt = { key: 0 }, mt = [
|
|
187
186
|
"x",
|
|
188
187
|
"y",
|
|
189
188
|
"height",
|
|
@@ -195,34 +194,35 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
195
194
|
"onClick",
|
|
196
195
|
"onMouseenter",
|
|
197
196
|
"onMouseleave"
|
|
198
|
-
],
|
|
197
|
+
], ht = ["id"], gt = [
|
|
199
198
|
"x",
|
|
200
199
|
"y",
|
|
201
200
|
"width",
|
|
202
201
|
"height"
|
|
203
|
-
],
|
|
204
|
-
"
|
|
202
|
+
], _t = ["clip-path"], vt = ["transform"], yt = ["transform"], bt = [
|
|
203
|
+
"x",
|
|
204
|
+
"y",
|
|
205
205
|
"fill",
|
|
206
206
|
"font-size",
|
|
207
207
|
"font-family",
|
|
208
208
|
"font-weight"
|
|
209
|
-
],
|
|
209
|
+
], xt = { key: 0 }, St = [
|
|
210
210
|
"x",
|
|
211
211
|
"y",
|
|
212
212
|
"height",
|
|
213
213
|
"width"
|
|
214
|
-
],
|
|
214
|
+
], Ct = {
|
|
215
215
|
style: {
|
|
216
216
|
width: "100%",
|
|
217
217
|
height: "100%",
|
|
218
218
|
overflow: "hidden"
|
|
219
219
|
},
|
|
220
220
|
class: "vue-ui-treemap-cell"
|
|
221
|
-
},
|
|
221
|
+
}, wt = {
|
|
222
222
|
key: 0,
|
|
223
223
|
"data-dom-to-png-ignore": "",
|
|
224
224
|
class: "reset-wrapper"
|
|
225
|
-
},
|
|
225
|
+
}, Tt = {
|
|
226
226
|
key: 1,
|
|
227
227
|
style: {
|
|
228
228
|
position: "absolute",
|
|
@@ -232,10 +232,10 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
232
232
|
},
|
|
233
233
|
"data-dom-to-png-ignore": "",
|
|
234
234
|
"aria-hidden": "true"
|
|
235
|
-
},
|
|
235
|
+
}, Et = {
|
|
236
236
|
key: 6,
|
|
237
237
|
class: "vue-data-ui-watermark"
|
|
238
|
-
},
|
|
238
|
+
}, Dt = ["id"], Ot = ["onClick"], kt = ["innerHTML"], At = 4, jt = /*#__PURE__*/ me({
|
|
239
239
|
__name: "vue-ui-treemap",
|
|
240
240
|
props: {
|
|
241
241
|
config: {
|
|
@@ -256,16 +256,16 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
256
256
|
"selectDatapoint",
|
|
257
257
|
"copyAlt"
|
|
258
258
|
],
|
|
259
|
-
setup(e, { expose:
|
|
260
|
-
|
|
261
|
-
let
|
|
262
|
-
|
|
263
|
-
|
|
259
|
+
setup(e, { expose: me, emit: Ge }) {
|
|
260
|
+
Ve((e) => ({ v5c735676: _i.value }));
|
|
261
|
+
let Ke = je(() => import("./DataTable-DzPEVvSo.js")), qe = je(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Je = je(() => import("./vue-ui-accordion-nNxnZTg9.js").then((e) => e.n)), Xe = je(() => import("./Tooltip-CA1rtSyl.js")), Ze = je(() => import("./UserOptions-B69xBEVP.js").then((e) => e.n)), Qe = je(() => import("./PackageVersion-1MNr72Bz.js").then((e) => e.t)), $e = je(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_treemap: et } = ae(), { isThemeValid: tt, warnInvalidTheme: nt } = de(), A = e, j = Ge, jt = He(), Mt = we();
|
|
262
|
+
Ie(() => {
|
|
263
|
+
jt["chart-background"] && console.warn("VueUiTreemap does not support the #chart-background slot.");
|
|
264
264
|
});
|
|
265
|
-
let
|
|
265
|
+
let Nt = h(() => !!A.dataset && A.dataset.length), Pt = h(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent)), M = w(o()), Ft = w(!1), It = w(""), Lt = w(!1), Rt = w(0), N = w([]), P = E(null), zt = E(null), Bt = E(null), Vt = E(null), Ht = E(null), Ut = w(0), Wt = w(0), Gt = w(0), F = w([]), Kt = w(null), qt = w(!1), Jt = w(null), Yt = w(null), Xt = w(null), Zt = w(/* @__PURE__ */ new Map()), Qt = w(!1), $t = w(!1), I = w(null), en = w({
|
|
266
266
|
x: 0,
|
|
267
267
|
y: 0
|
|
268
|
-
}),
|
|
268
|
+
}), tn = w("pointer"), nn = w(!1), L = w(dn()), R = h(() => L.value.userOptions.useCursorPointer), rn = h(() => te({
|
|
269
269
|
defaultConfig: {
|
|
270
270
|
userOptions: { show: !1 },
|
|
271
271
|
style: { chart: {
|
|
@@ -278,11 +278,11 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
278
278
|
} }
|
|
279
279
|
},
|
|
280
280
|
userConfig: L.value.skeletonConfig ?? {}
|
|
281
|
-
})), { loading:
|
|
282
|
-
...
|
|
281
|
+
})), { loading: an, FINAL_DATASET: on, manualLoading: sn } = se({
|
|
282
|
+
...Be(A),
|
|
283
283
|
FINAL_CONFIG: L,
|
|
284
|
-
prepareConfig:
|
|
285
|
-
skeletonDataset:
|
|
284
|
+
prepareConfig: dn,
|
|
285
|
+
skeletonDataset: A.config?.skeletonDataset ?? [{
|
|
286
286
|
name: "_",
|
|
287
287
|
value: 53,
|
|
288
288
|
color: "#CACACA90",
|
|
@@ -317,64 +317,64 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
317
317
|
}
|
|
318
318
|
]
|
|
319
319
|
}],
|
|
320
|
-
skeletonConfig:
|
|
320
|
+
skeletonConfig: te({
|
|
321
321
|
defaultConfig: L.value,
|
|
322
|
-
userConfig:
|
|
322
|
+
userConfig: rn.value
|
|
323
323
|
})
|
|
324
|
-
}), { userOptionsVisible:
|
|
325
|
-
function
|
|
326
|
-
let e =
|
|
327
|
-
userConfig:
|
|
328
|
-
defaultConfig:
|
|
324
|
+
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } = xe({ config: L.value }), { svgRef: z } = Se({ config: L.value.style.chart.title });
|
|
325
|
+
function dn() {
|
|
326
|
+
let e = ue({
|
|
327
|
+
userConfig: A.config,
|
|
328
|
+
defaultConfig: et
|
|
329
329
|
}), t = e.theme;
|
|
330
330
|
if (!t) return e;
|
|
331
|
-
if (!
|
|
332
|
-
let n =
|
|
333
|
-
userConfig:
|
|
331
|
+
if (!tt.value(e)) return nt(e), e;
|
|
332
|
+
let n = ue({
|
|
333
|
+
userConfig: Ee[t] || A.config,
|
|
334
334
|
defaultConfig: e
|
|
335
|
-
}), r =
|
|
336
|
-
userConfig:
|
|
335
|
+
}), r = ue({
|
|
336
|
+
userConfig: A.config,
|
|
337
337
|
defaultConfig: n
|
|
338
338
|
});
|
|
339
339
|
return {
|
|
340
340
|
...r,
|
|
341
|
-
customPalette: r.customPalette.length ? r.customPalette :
|
|
341
|
+
customPalette: r.customPalette.length ? r.customPalette : a[t] || s
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
O(() => A.config, (e) => {
|
|
345
|
+
an.value || (L.value = dn()), cn.value = !L.value.userOptions.showOnChartHover, Ut.value += 1, Wt.value += 1, Gt.value += 1, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.chart.tooltip.show, B.value.showZoom = L.value.style.chart.zoom?.show ?? !1;
|
|
346
346
|
}, { deep: !0 });
|
|
347
|
-
let { isPrinting:
|
|
348
|
-
elementId: `treemap_${
|
|
347
|
+
let { isPrinting: fn, isImaging: pn, generatePdf: mn, generateImage: hn } = oe({
|
|
348
|
+
elementId: `treemap_${M.value}`,
|
|
349
349
|
fileName: L.value.style.chart.title.text || "vue-ui-treemap",
|
|
350
350
|
options: L.value.userOptions.print
|
|
351
|
-
}),
|
|
351
|
+
}), gn = h(() => L.value.userOptions.show && !L.value.style.chart.title.text), _n = h(() => n(L.value.customPalette)), B = w({
|
|
352
352
|
showTable: L.value.table.show,
|
|
353
353
|
showTooltip: L.value.style.chart.tooltip.show,
|
|
354
354
|
showZoom: L.value.style.chart.zoom?.show ?? !1
|
|
355
355
|
});
|
|
356
|
-
|
|
356
|
+
O(L, () => {
|
|
357
357
|
B.value = {
|
|
358
358
|
showTable: L.value.table.show,
|
|
359
359
|
showTooltip: L.value.style.chart.tooltip.show,
|
|
360
360
|
showZoom: L.value.style.chart.zoom?.show ?? !1
|
|
361
361
|
};
|
|
362
362
|
}, { immediate: !0 });
|
|
363
|
-
let
|
|
363
|
+
let vn = w({
|
|
364
364
|
height: L.value.style.chart.height,
|
|
365
365
|
width: L.value.style.chart.width
|
|
366
366
|
});
|
|
367
|
-
function
|
|
368
|
-
let t = P.value, n =
|
|
367
|
+
function yn(e) {
|
|
368
|
+
let t = P.value, n = vn.value.height;
|
|
369
369
|
return !t || !n ? e : e * (n / t.getBoundingClientRect().height);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
if (!
|
|
373
|
-
let e =
|
|
374
|
-
return
|
|
371
|
+
function bn() {
|
|
372
|
+
if (!Kt.value || X.value.length <= 1) return 0;
|
|
373
|
+
let e = Kt.value, t = getComputedStyle(e);
|
|
374
|
+
return yn(e.offsetHeight + parseFloat(t.marginTop || "0") + parseFloat(t.marginBottom || "0") + parseFloat(t.paddingTop || "0") + parseFloat(t.paddingBottom || "0"));
|
|
375
375
|
}
|
|
376
|
-
let V =
|
|
377
|
-
let e = L.value.style.chart.padding, t =
|
|
376
|
+
let V = h(() => {
|
|
377
|
+
let e = L.value.style.chart.padding, t = vn.value.width, n = vn.value.height, r = bn(), i = e.left, a = t - e.right, o = e.top, s = n - e.bottom - r;
|
|
378
378
|
return {
|
|
379
379
|
left: i,
|
|
380
380
|
top: o,
|
|
@@ -386,34 +386,34 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
386
386
|
vbHeight: n - r,
|
|
387
387
|
offsetY: r
|
|
388
388
|
};
|
|
389
|
-
}), H =
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
}, { deep: !0 }),
|
|
393
|
-
|
|
394
|
-
}, { deep: !0 }),
|
|
395
|
-
|
|
389
|
+
}), H = w(l(on.value)), U = w(H.value), xn = E(/* @__PURE__ */ new Map());
|
|
390
|
+
O([H, () => L.value], () => {
|
|
391
|
+
Xt.value = null, Zt.value = /* @__PURE__ */ new Map();
|
|
392
|
+
}, { deep: !0 }), O(() => N.value, () => {
|
|
393
|
+
Xt.value = null, Zt.value = /* @__PURE__ */ new Map(), Tn(), Gt.value += 1, Wt.value += 1;
|
|
394
|
+
}, { deep: !0 }), O([() => vn.value.width, () => vn.value.height], () => {
|
|
395
|
+
Zt.value = /* @__PURE__ */ new Map();
|
|
396
396
|
});
|
|
397
|
-
function
|
|
397
|
+
function Sn(e) {
|
|
398
398
|
Array.isArray(e) && e.forEach((e, t) => {
|
|
399
|
-
e.id ||=
|
|
400
|
-
let n = e.sourceColor ||
|
|
401
|
-
n =
|
|
399
|
+
e.id ||= o(), e.sourceColor === void 0 && (e.sourceColor = p(e.color) || null);
|
|
400
|
+
let n = e.sourceColor || xn.value.get(e.id) || _n.value[t] || s[t] || s[t % s.length];
|
|
401
|
+
n = p(n), xn.value.set(e.id, n), e.color = n, Cn(e, n);
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Cn(e, t) {
|
|
405
405
|
Array.isArray(e.children) && e.children.forEach((n) => {
|
|
406
|
-
n.id ||=
|
|
407
|
-
let
|
|
408
|
-
n.color =
|
|
406
|
+
n.id ||= o(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = p(n.color) || null);
|
|
407
|
+
let r = n.sourceColor || t;
|
|
408
|
+
n.color = r, Cn(n, r);
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function wn(e) {
|
|
412
412
|
let t = Y(e);
|
|
413
413
|
for (; t?.parentId;) t = Y(t.parentId);
|
|
414
414
|
return t?.id ?? null;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Tn() {
|
|
417
417
|
let e = H.value.filter((e) => !N.value.includes(e.id));
|
|
418
418
|
if (!F.value.length) {
|
|
419
419
|
U.value = e;
|
|
@@ -424,94 +424,94 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
424
424
|
F.value = [], U.value = e;
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
|
-
let r =
|
|
427
|
+
let r = wn(n.id);
|
|
428
428
|
if (r && N.value.includes(r)) {
|
|
429
429
|
F.value = [], U.value = e;
|
|
430
430
|
return;
|
|
431
431
|
}
|
|
432
432
|
U.value = [n];
|
|
433
433
|
}
|
|
434
|
-
|
|
435
|
-
H.value =
|
|
434
|
+
O(() => on.value, () => {
|
|
435
|
+
H.value = l(on.value), Sn(H.value), Tn(), Gt.value += 1, Wt.value += 1;
|
|
436
436
|
}, {
|
|
437
437
|
deep: !0,
|
|
438
438
|
immediate: !0,
|
|
439
439
|
flush: "post"
|
|
440
440
|
});
|
|
441
|
-
let W =
|
|
442
|
-
|
|
443
|
-
|
|
441
|
+
let W = E(null), En = E(null);
|
|
442
|
+
Ie(() => {
|
|
443
|
+
qt.value = !0, On();
|
|
444
444
|
});
|
|
445
|
-
let
|
|
446
|
-
function
|
|
447
|
-
if (
|
|
445
|
+
let Dn = h(() => L.value.debug);
|
|
446
|
+
function On() {
|
|
447
|
+
if (t(A.dataset) && f({
|
|
448
448
|
componentName: "VueUiTreemap",
|
|
449
449
|
type: "dataset",
|
|
450
|
-
debug:
|
|
451
|
-
}),
|
|
452
|
-
let e =
|
|
453
|
-
let { width: e, height: t } =
|
|
450
|
+
debug: Dn.value
|
|
451
|
+
}), Sn(H.value), t(A.dataset) || (sn.value = L.value.loading), L.value.responsive) {
|
|
452
|
+
let e = he(() => {
|
|
453
|
+
let { width: e, height: t } = ge({
|
|
454
454
|
chart: P.value,
|
|
455
|
-
title: L.value.style.chart.title.text ?
|
|
456
|
-
legend: L.value.style.chart.legend.show ?
|
|
457
|
-
source:
|
|
458
|
-
noTitle:
|
|
455
|
+
title: L.value.style.chart.title.text ? zt.value : null,
|
|
456
|
+
legend: L.value.style.chart.legend.show ? Bt.value : null,
|
|
457
|
+
source: Vt.value,
|
|
458
|
+
noTitle: Ht.value
|
|
459
459
|
});
|
|
460
460
|
requestAnimationFrame(() => {
|
|
461
|
-
|
|
461
|
+
vn.value.width = e, vn.value.height = t - 12;
|
|
462
462
|
});
|
|
463
463
|
});
|
|
464
|
-
W.value && (
|
|
464
|
+
W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect()), W.value = new ResizeObserver(e), En.value = P.value.parentNode, W.value.observe(En.value);
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
|
|
468
|
-
W.value && (
|
|
467
|
+
Fe(() => {
|
|
468
|
+
W.value && (En.value && W.value.unobserve(En.value), W.value.disconnect());
|
|
469
469
|
});
|
|
470
|
-
let
|
|
470
|
+
let kn = h(() => U.value.map((e, t) => ({
|
|
471
471
|
...e,
|
|
472
|
-
color:
|
|
473
|
-
})).filter((e) => !N.value.includes(e.id))),
|
|
472
|
+
color: p(e.color) || _n.value[t] || s[t] || s[t % s.length]
|
|
473
|
+
})).filter((e) => !N.value.includes(e.id))), An = h(() => H.value.filter((e) => !N.value.includes(e.id)).map((e) => e.value || 0).reduce((e, t) => e + t, 0)), jn = h({
|
|
474
474
|
get() {
|
|
475
|
-
let e = [...
|
|
476
|
-
return L.value.style.chart.layout.sorted && (e = [...
|
|
475
|
+
let e = [...kn.value];
|
|
476
|
+
return L.value.style.chart.layout.sorted && (e = [...kn.value].sort((e, t) => t.value - e.value)), e.map((e) => ({ ...e }));
|
|
477
477
|
},
|
|
478
478
|
set(e) {
|
|
479
479
|
return e;
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
|
-
function
|
|
482
|
+
function Mn(e, t) {
|
|
483
483
|
return e.value / t;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
let i = L.value.style.chart.layout.rects.colorRatio -
|
|
487
|
-
return
|
|
485
|
+
function Nn(e, t, n) {
|
|
486
|
+
let i = L.value.style.chart.layout.rects.colorRatio - Mn(t, n);
|
|
487
|
+
return r(e, i < 0 ? 0 : i);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Pn(e) {
|
|
490
490
|
return Array.isArray(e.children) && e.children.length > 0;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function Fn(e) {
|
|
493
493
|
return [...e].sort((e, t) => {
|
|
494
|
-
let n =
|
|
494
|
+
let n = Pn(e), r = Pn(t);
|
|
495
495
|
if (n !== r) return n - r;
|
|
496
496
|
let i = Number(e.value) || 0;
|
|
497
497
|
return (Number(t.value) || 0) - i;
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
return
|
|
502
|
-
let
|
|
500
|
+
function In(e, t, n, r, i) {
|
|
501
|
+
return Fn(e).map((e, a) => {
|
|
502
|
+
let o = e.sourceColor || p(e.color) || p(t) || _n.value[a] || s[a] || s[a % s.length], c = e.sourceColor ? e.sourceColor : Nn(o, e, r), l = Mn(e, r), u = i ?? e.parentId ?? e.id, d = Array.isArray(e.children) && e.children.length && e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) || 1;
|
|
503
503
|
return {
|
|
504
504
|
...e,
|
|
505
505
|
color: c,
|
|
506
506
|
proportion: l,
|
|
507
507
|
parentName: n,
|
|
508
508
|
rootId: u,
|
|
509
|
-
children: Array.isArray(e.children) && e.children.length ?
|
|
509
|
+
children: Array.isArray(e.children) && e.children.length ? In(e.children, o, e.name, d, u) : void 0
|
|
510
510
|
};
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
let t =
|
|
513
|
+
function Ln(e) {
|
|
514
|
+
let t = Xn(e), n = Rn(e), r = t * .55, i = t * .55, a = t * 1.05, o = t * 1.05, s = t * .35, c = n ? a + o + s : t * .45, l = e.x0 + r, u = e.x1 - r, d = e.y0 + c, f = e.y1 - i;
|
|
515
515
|
return u <= l || f <= d ? null : {
|
|
516
516
|
x0: l,
|
|
517
517
|
y0: d,
|
|
@@ -519,19 +519,19 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
519
519
|
y1: f
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
return
|
|
522
|
+
function Rn(e) {
|
|
523
|
+
return L.value.style.chart.layout.labels.hideUnderProportion === 0 || zn(e);
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function zn(e) {
|
|
526
526
|
let t = Number(L.value.style.chart.layout.labels.hideUnderProportion);
|
|
527
|
-
return !Number.isFinite(t) || t <= 0
|
|
527
|
+
return !Number.isFinite(t) || t <= 0 || e.proportion > t;
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function Bn(e, t, n = 0, r = null) {
|
|
530
530
|
if (!Array.isArray(e) || !e.length) return [];
|
|
531
531
|
let i = e.map((e) => {
|
|
532
532
|
let { children: t, ...n } = e;
|
|
533
533
|
return { ...n };
|
|
534
|
-
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s =
|
|
534
|
+
}), a = new Map(e.map((e) => [e.id, Array.isArray(e.children) ? e.children : []])), o = new Map(e.map((e) => [e.id, e])), s = Ye(i, t), c = [];
|
|
535
535
|
for (let e of s) {
|
|
536
536
|
let t = a.get(e.id) || [], i = o.get(e.id), s = {
|
|
537
537
|
...e,
|
|
@@ -540,28 +540,28 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
540
540
|
color: i?.color ?? e.color ?? null,
|
|
541
541
|
children: t,
|
|
542
542
|
isVisibleNode: !0,
|
|
543
|
-
showLabel:
|
|
543
|
+
showLabel: Rn(e)
|
|
544
544
|
};
|
|
545
545
|
if (c.push(s), t.length) {
|
|
546
|
-
let r =
|
|
547
|
-
r && c.push(...
|
|
546
|
+
let r = Ln(s);
|
|
547
|
+
r && c.push(...Bn(t, r, n + 1, e.id));
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
return c;
|
|
551
551
|
}
|
|
552
|
-
let
|
|
553
|
-
let e = U.value.length ? U.value :
|
|
554
|
-
return
|
|
555
|
-
let
|
|
552
|
+
let Vn = h(() => {
|
|
553
|
+
let e = U.value.length ? U.value : jn.value, t = e.map((e) => Number(e.value) || 0).reduce((e, t) => e + t, 0) || 1;
|
|
554
|
+
return Bn(e.map((e, n) => {
|
|
555
|
+
let r = e.children ? e.children.reduce((e, t) => e + (Number(t.value) || 0), 0) : e.value, { children: i, ...a } = e, c = e.sourceColor || p(e.color) || xn.value.get(e.id) || _n.value[n] || s[n] || s[n % s.length], l = e.sourceColor ? e.sourceColor : Nn(c, e, t);
|
|
556
556
|
return {
|
|
557
|
-
...
|
|
558
|
-
id: e.id ||
|
|
557
|
+
...a,
|
|
558
|
+
id: e.id || o(),
|
|
559
559
|
parentId: e.parentId ?? null,
|
|
560
560
|
name: e.name,
|
|
561
561
|
value: e.value,
|
|
562
562
|
color: l,
|
|
563
563
|
proportion: (Number(e.value) || 0) / t,
|
|
564
|
-
children: Array.isArray(e.children) && e.children.length ?
|
|
564
|
+
children: Array.isArray(e.children) && e.children.length ? In(e.children, c, e.name, r || 1) : void 0
|
|
565
565
|
};
|
|
566
566
|
}), {
|
|
567
567
|
x0: V.value.left,
|
|
@@ -569,29 +569,32 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
569
569
|
x1: V.value.left + V.value.width,
|
|
570
570
|
y1: V.value.top + V.value.height
|
|
571
571
|
});
|
|
572
|
-
}), G =
|
|
572
|
+
}), G = h(() => Vn.value);
|
|
573
|
+
function Hn(e) {
|
|
574
|
+
return (Z.value && Z.value.id === e.id ? L.value.style.chart.layout.rects.selected.strokeWidth : L.value.style.chart.layout.rects.strokeWidth) * Mr.value;
|
|
575
|
+
}
|
|
573
576
|
function K({ y0: e, y1: t }) {
|
|
574
|
-
return t - e <= 0 ? 1e-4 : t - e;
|
|
577
|
+
return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
|
|
575
578
|
}
|
|
576
579
|
function q({ x0: e, x1: t }) {
|
|
577
|
-
return t - e <= 0 ? 1e-4 : t - e;
|
|
580
|
+
return t - e <= 0 ? 1e-4 : Math.round((t - e) * 1e4) / 1e4;
|
|
578
581
|
}
|
|
579
|
-
function
|
|
582
|
+
function Un() {
|
|
580
583
|
let e = L.value.style.chart.layout.labels, t = Number(e.minFontSize), n = Number(e.fontSize), r = Math.max(0, Math.min(Number.isFinite(t) ? t : 0, Number.isFinite(n) ? n : 0));
|
|
581
584
|
return {
|
|
582
585
|
lowerBound: r,
|
|
583
586
|
upperBound: Math.max(r, Number.isFinite(n) ? n : r)
|
|
584
587
|
};
|
|
585
588
|
}
|
|
586
|
-
function
|
|
589
|
+
function Wn(e) {
|
|
587
590
|
let t = Math.min(4, Math.max(e * .25, .5));
|
|
588
591
|
return {
|
|
589
592
|
paddingX: t,
|
|
590
593
|
paddingTop: t
|
|
591
594
|
};
|
|
592
595
|
}
|
|
593
|
-
function
|
|
594
|
-
let { paddingX: n, paddingTop: r } =
|
|
596
|
+
function Gn(e, t) {
|
|
597
|
+
let { paddingX: n, paddingTop: r } = Wn(t), i = t * 1.1;
|
|
595
598
|
return {
|
|
596
599
|
x: e.x0 + n,
|
|
597
600
|
y: e.y0 + r,
|
|
@@ -600,8 +603,8 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
600
603
|
lineHeight: i
|
|
601
604
|
};
|
|
602
605
|
}
|
|
603
|
-
function
|
|
604
|
-
return ee(L.value.style.chart.layout.labels.formatter, e.value,
|
|
606
|
+
function Kn(e, t) {
|
|
607
|
+
return ee(L.value.style.chart.layout.labels.formatter, e.value, u({
|
|
605
608
|
p: L.value.style.chart.layout.labels.prefix,
|
|
606
609
|
v: e.value,
|
|
607
610
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -611,33 +614,33 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
611
614
|
seriesIndex: t
|
|
612
615
|
});
|
|
613
616
|
}
|
|
614
|
-
function
|
|
615
|
-
let n =
|
|
617
|
+
function qn(e, t) {
|
|
618
|
+
let n = Kn(e, t);
|
|
616
619
|
return Array.isArray(e.children) && e.children.length ? [`${e.name} (${n})`] : [`${e.name}`, n].filter((e) => `${e}`.length);
|
|
617
620
|
}
|
|
618
|
-
function
|
|
619
|
-
let r =
|
|
620
|
-
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) =>
|
|
621
|
+
function Jn(e, t, n) {
|
|
622
|
+
let r = qn(e, n), i = Gn(e, t);
|
|
623
|
+
return !r.length || i.width <= 0 || i.height <= 0 || r.length * i.lineHeight > i.height ? !1 : r.every((e, n) => li(e, t, n === 0 ? 500 : 400) <= i.width);
|
|
621
624
|
}
|
|
622
|
-
function
|
|
623
|
-
let i =
|
|
625
|
+
function Yn(e, t, n, r) {
|
|
626
|
+
let i = qn(e, t), a = Math.max(1, ...i.map((e) => String(e).length)), o = Math.min(18, Math.max(10, Math.ceil(a * .7))), s = Math.max(1, i.length), c = Math.max(q(e) - 1, 1e-4), l = Math.max(K(e) - 1, 1e-4), u = c / (o * .58), d = l / (s * 1.35);
|
|
624
627
|
return Math.max(n, Math.min(r, u, d));
|
|
625
628
|
}
|
|
626
|
-
function
|
|
627
|
-
let { lowerBound: n, upperBound: r } =
|
|
628
|
-
if (
|
|
629
|
+
function Xn(e, t) {
|
|
630
|
+
let { lowerBound: n, upperBound: r } = Un(), i = Math.max(1e-4, Math.min(q(e), K(e))), a = Math.max(n, Math.min(r, i * .9)), o = Math.min(a, Yn(e, t, n, r));
|
|
631
|
+
if (Jn(e, o, t) || !Jn(e, n, t)) return o;
|
|
629
632
|
let s = n, c = o, l = n;
|
|
630
633
|
for (let n = 0; n < 8; n += 1) {
|
|
631
634
|
let n = (s + c) / 2;
|
|
632
|
-
|
|
635
|
+
Jn(e, n, t) ? (l = n, s = n) : c = n;
|
|
633
636
|
}
|
|
634
637
|
let u = Math.max(n, o * .7);
|
|
635
638
|
return l >= u ? l : o;
|
|
636
639
|
}
|
|
637
|
-
function
|
|
638
|
-
|
|
640
|
+
function Zn(e) {
|
|
641
|
+
Lt.value = e, Rt.value += 1;
|
|
639
642
|
}
|
|
640
|
-
let J =
|
|
643
|
+
let J = h(() => ({
|
|
641
644
|
x: 0,
|
|
642
645
|
y: 0,
|
|
643
646
|
width: V.value.vbWidth,
|
|
@@ -653,7 +656,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
653
656
|
}
|
|
654
657
|
return null;
|
|
655
658
|
}
|
|
656
|
-
function
|
|
659
|
+
function Qn(e) {
|
|
657
660
|
let t = [], n = Y(e);
|
|
658
661
|
for (; n && n.parentId;) {
|
|
659
662
|
let e = Y(n.parentId);
|
|
@@ -662,23 +665,23 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
662
665
|
}
|
|
663
666
|
return t;
|
|
664
667
|
}
|
|
665
|
-
let
|
|
666
|
-
function
|
|
667
|
-
U.value = H.value.slice(), F.value = [],
|
|
668
|
+
let $n = h(() => F.value.length > 0);
|
|
669
|
+
function er() {
|
|
670
|
+
U.value = H.value.slice(), F.value = [], j("selectDatapoint", void 0);
|
|
668
671
|
}
|
|
669
|
-
function
|
|
672
|
+
function tr() {
|
|
670
673
|
return F.value[F.value.length - 1] ?? null;
|
|
671
674
|
}
|
|
672
|
-
function
|
|
673
|
-
F.value = [...
|
|
675
|
+
function nr(e, t, n) {
|
|
676
|
+
F.value = [...Qn(e.id), e.id], U.value = [e], L.value.events.datapointClick && L.value.events.datapointClick({
|
|
674
677
|
datapoint: t ?? e,
|
|
675
678
|
seriesIndex: n
|
|
676
|
-
}),
|
|
679
|
+
}), j("selectDatapoint", t ?? e);
|
|
677
680
|
}
|
|
678
|
-
function
|
|
679
|
-
let n =
|
|
681
|
+
function rr(e, t) {
|
|
682
|
+
let n = tr();
|
|
680
683
|
if (!n) {
|
|
681
|
-
|
|
684
|
+
er();
|
|
682
685
|
return;
|
|
683
686
|
}
|
|
684
687
|
let r = Y(n);
|
|
@@ -686,37 +689,37 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
686
689
|
L.value.events.datapointClick && L.value.events.datapointClick({
|
|
687
690
|
datapoint: e,
|
|
688
691
|
seriesIndex: t
|
|
689
|
-
}),
|
|
692
|
+
}), er();
|
|
690
693
|
return;
|
|
691
694
|
}
|
|
692
695
|
let i = Y(r.parentId);
|
|
693
696
|
if (!i) {
|
|
694
|
-
|
|
697
|
+
er();
|
|
695
698
|
return;
|
|
696
699
|
}
|
|
697
|
-
F.value = [...
|
|
700
|
+
F.value = [...Qn(i.id), i.id], U.value = [i], L.value.events.datapointClick && L.value.events.datapointClick({
|
|
698
701
|
datapoint: e,
|
|
699
702
|
seriesIndex: t
|
|
700
|
-
}),
|
|
703
|
+
}), j("selectDatapoint", e);
|
|
701
704
|
}
|
|
702
|
-
function
|
|
705
|
+
function ir(e, t) {
|
|
703
706
|
if (!e) {
|
|
704
|
-
|
|
707
|
+
er();
|
|
705
708
|
return;
|
|
706
709
|
}
|
|
707
710
|
let n = Y(e.id);
|
|
708
711
|
if (n) {
|
|
709
|
-
if (
|
|
710
|
-
|
|
712
|
+
if (tr() === n.id) {
|
|
713
|
+
rr(e, t);
|
|
711
714
|
return;
|
|
712
715
|
}
|
|
713
|
-
|
|
716
|
+
nr(n, e, t);
|
|
714
717
|
}
|
|
715
718
|
}
|
|
716
|
-
function
|
|
717
|
-
return e ?
|
|
719
|
+
function ar(e) {
|
|
720
|
+
return e ? tr() === e.id : !1;
|
|
718
721
|
}
|
|
719
|
-
let X =
|
|
722
|
+
let X = h(() => {
|
|
720
723
|
let e = [{
|
|
721
724
|
id: null,
|
|
722
725
|
label: "All"
|
|
@@ -731,9 +734,9 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
731
734
|
});
|
|
732
735
|
}
|
|
733
736
|
return e;
|
|
734
|
-
}), Z =
|
|
737
|
+
}), Z = E(null), or = h(() => H.value.map((e, t) => ({
|
|
735
738
|
...e,
|
|
736
|
-
color:
|
|
739
|
+
color: p(e.color) || _n.value[t] || s[t] || s[t % s.length],
|
|
737
740
|
shape: "square"
|
|
738
741
|
})).sort((e, t) => t.value - e.value).map((e, t) => {
|
|
739
742
|
let n = e.value / H.value.map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
@@ -741,75 +744,75 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
741
744
|
...e,
|
|
742
745
|
proportion: n,
|
|
743
746
|
isSegregated: N.value.includes(e.id),
|
|
744
|
-
segregate: () =>
|
|
747
|
+
segregate: () => ur(e),
|
|
745
748
|
opacity: N.value.includes(e.id) ? .5 : 1,
|
|
746
|
-
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${L.value.style.chart.legend.showValue ? ee(L.value.style.chart.layout.labels.formatter, e.value,
|
|
749
|
+
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${L.value.style.chart.legend.showValue ? ee(L.value.style.chart.layout.labels.formatter, e.value, u({
|
|
747
750
|
p: L.value.style.chart.layout.labels.prefix,
|
|
748
751
|
v: e.value,
|
|
749
752
|
s: L.value.style.chart.layout.labels.suffix,
|
|
750
753
|
r: L.value.style.chart.legend.roundingValue
|
|
751
|
-
}), { datapoint: e }) : ""}${L.value.style.chart.legend.showPercentage ? N.value.includes(e.id) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value /
|
|
754
|
+
}), { datapoint: e }) : ""}${L.value.style.chart.legend.showPercentage ? N.value.includes(e.id) ? `${L.value.style.chart.legend.showValue ? " (" : ""}- %${L.value.style.chart.legend.showValue ? ")" : ""}` : `${L.value.style.chart.legend.showValue ? " (" : ""}${isNaN(e.value / An.value) ? "-" : (e.value / An.value * 100).toFixed(L.value.style.chart.legend.roundingPercentage)}%${L.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
752
755
|
};
|
|
753
|
-
})),
|
|
756
|
+
})), sr = h(() => ({
|
|
754
757
|
cy: "treemap-div-legend",
|
|
755
758
|
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
756
759
|
color: L.value.style.chart.legend.color,
|
|
757
760
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
758
761
|
paddingBottom: 12,
|
|
759
762
|
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
760
|
-
})),
|
|
761
|
-
function
|
|
762
|
-
N.value.length ? N.value = [] :
|
|
763
|
+
})), cr = h(() => N.value.length === or.value.length);
|
|
764
|
+
function lr() {
|
|
765
|
+
N.value.length ? N.value = [] : or.value.forEach((e) => {
|
|
763
766
|
N.value.push(e.id);
|
|
764
|
-
}),
|
|
767
|
+
}), j("selectLegend", H.value.filter((e) => !N.value.includes(e.id)));
|
|
765
768
|
}
|
|
766
|
-
function
|
|
767
|
-
Z.value = null, N.value.includes(e.id) ? N.value = N.value.filter((t) => t !== e.id) : N.value.length <
|
|
769
|
+
function ur(e) {
|
|
770
|
+
Z.value = null, N.value.includes(e.id) ? N.value = N.value.filter((t) => t !== e.id) : N.value.length < A.dataset.length - 1 && N.value.push(e.id), j("selectLegend", H.value.filter((e) => !N.value.includes(e.id)));
|
|
768
771
|
}
|
|
769
|
-
function
|
|
772
|
+
function dr(e) {
|
|
770
773
|
return H.value.length ? H.value.find((t) => t.name === e) || (L.value.debug && console.warn(`VueUiTreemap - Series name not found "${e}"`), null) : (L.value.debug && console.warn("VueUiTreemap - There are no series to show."), null);
|
|
771
774
|
}
|
|
772
|
-
function
|
|
773
|
-
let t =
|
|
774
|
-
t !== null && N.value.includes(t.id) &&
|
|
775
|
+
function fr(e) {
|
|
776
|
+
let t = dr(e);
|
|
777
|
+
t !== null && N.value.includes(t.id) && ur({ id: t.id });
|
|
775
778
|
}
|
|
776
|
-
function
|
|
777
|
-
let t =
|
|
778
|
-
t !== null && (N.value.includes(t.id) ||
|
|
779
|
+
function pr(e) {
|
|
780
|
+
let t = dr(e);
|
|
781
|
+
t !== null && (N.value.includes(t.id) || ur({ id: t.id }));
|
|
779
782
|
}
|
|
780
|
-
function
|
|
781
|
-
Z.value = null,
|
|
783
|
+
function mr({ datapoint: e, seriesIndex: t }) {
|
|
784
|
+
Z.value = null, Ft.value = !1, I.value = null, tn.value = "pointer", L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
782
785
|
datapoint: e,
|
|
783
786
|
seriesIndex: t
|
|
784
787
|
});
|
|
785
788
|
}
|
|
786
|
-
let
|
|
787
|
-
function
|
|
788
|
-
if (
|
|
789
|
+
let hr = w(null);
|
|
790
|
+
function gr({ datapoint: e, seriesIndex: t, triggerMode: n = "pointer" }) {
|
|
791
|
+
if (cr.value || n === "pointer" && Er.value) return;
|
|
789
792
|
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
790
793
|
datapoint: e,
|
|
791
794
|
seriesIndex: t
|
|
792
|
-
}), I.value = t,
|
|
795
|
+
}), I.value = t, tn.value = n, Z.value = e, hr.value = {
|
|
793
796
|
datapoint: e,
|
|
794
797
|
seriesIndex: t,
|
|
795
798
|
config: L.value,
|
|
796
|
-
series:
|
|
799
|
+
series: kn.value
|
|
797
800
|
};
|
|
798
801
|
let r = L.value.style.chart.tooltip.customFormat;
|
|
799
|
-
if (
|
|
802
|
+
if (d(r) && re(() => r({
|
|
800
803
|
seriesIndex: t,
|
|
801
804
|
datapoint: e,
|
|
802
|
-
series:
|
|
805
|
+
series: kn.value,
|
|
803
806
|
config: L.value
|
|
804
|
-
})))
|
|
807
|
+
}))) It.value = r({
|
|
805
808
|
seriesIndex: t,
|
|
806
809
|
datapoint: e,
|
|
807
|
-
series:
|
|
810
|
+
series: kn.value,
|
|
808
811
|
config: L.value
|
|
809
812
|
});
|
|
810
813
|
else {
|
|
811
814
|
let n = "";
|
|
812
|
-
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${ee(L.value.style.chart.layout.labels.formatter, e.value,
|
|
815
|
+
n += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, n += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 12 12" height="14" width="14"><rect x="0" y="0" height="12" width="12" stroke="none" fill="${e.color}"/></svg>`, n += `<b>${ee(L.value.style.chart.layout.labels.formatter, e.value, u({
|
|
813
816
|
p: L.value.style.chart.layout.labels.prefix,
|
|
814
817
|
v: e.value,
|
|
815
818
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -817,24 +820,24 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
817
820
|
}), {
|
|
818
821
|
datapoint: e,
|
|
819
822
|
seriesIndex: t
|
|
820
|
-
})}</b>`,
|
|
823
|
+
})}</b>`, It.value = `<div>${n}</div>`;
|
|
821
824
|
}
|
|
822
|
-
|
|
825
|
+
Ft.value = !0;
|
|
823
826
|
}
|
|
824
|
-
let Q =
|
|
827
|
+
let Q = h(() => ({
|
|
825
828
|
head: G.value.map((e) => ({
|
|
826
829
|
name: e.name,
|
|
827
830
|
color: e.color
|
|
828
831
|
})),
|
|
829
832
|
body: G.value.map((e) => e.value)
|
|
830
833
|
}));
|
|
831
|
-
function
|
|
832
|
-
|
|
834
|
+
function _r(e = null) {
|
|
835
|
+
Ne(() => {
|
|
833
836
|
let t = Q.value.head.map((e, t) => [
|
|
834
837
|
[e.name],
|
|
835
838
|
[Q.value.body[t]],
|
|
836
|
-
[isNaN(Q.value.body[t] /
|
|
837
|
-
]), n =
|
|
839
|
+
[isNaN(Q.value.body[t] / An.value) ? "-" : Q.value.body[t] / An.value * 100]
|
|
840
|
+
]), n = i([
|
|
838
841
|
[L.value.style.chart.title.text],
|
|
839
842
|
[L.value.style.chart.title.subtitle.text],
|
|
840
843
|
[
|
|
@@ -843,19 +846,19 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
843
846
|
["%"]
|
|
844
847
|
]
|
|
845
848
|
].concat(t));
|
|
846
|
-
e ? e(n) :
|
|
849
|
+
e ? e(n) : c({
|
|
847
850
|
csvContent: n,
|
|
848
851
|
title: L.value.style.chart.title.text || "vue-ui-treemap"
|
|
849
852
|
});
|
|
850
853
|
});
|
|
851
854
|
}
|
|
852
|
-
let
|
|
855
|
+
let vr = h(() => {
|
|
853
856
|
let e = [
|
|
854
857
|
L.value.table.columnNames.series,
|
|
855
858
|
L.value.table.columnNames.value,
|
|
856
859
|
L.value.table.columnNames.percentage
|
|
857
860
|
], t = Q.value.head.map((e, t) => {
|
|
858
|
-
let n = ee(L.value.style.chart.layout.labels.formatter, Q.value.body[t],
|
|
861
|
+
let n = ee(L.value.style.chart.layout.labels.formatter, Q.value.body[t], u({
|
|
859
862
|
p: L.value.style.chart.layout.labels.prefix,
|
|
860
863
|
v: Q.value.body[t],
|
|
861
864
|
s: L.value.style.chart.layout.labels.suffix,
|
|
@@ -868,8 +871,8 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
868
871
|
shape: "square"
|
|
869
872
|
},
|
|
870
873
|
n,
|
|
871
|
-
isNaN(Q.value.body[t] /
|
|
872
|
-
v: Q.value.body[t] /
|
|
874
|
+
isNaN(Q.value.body[t] / An.value) ? "-" : u({
|
|
875
|
+
v: Q.value.body[t] / An.value * 100,
|
|
873
876
|
s: "%",
|
|
874
877
|
r: L.value.table.td.roundingPercentage
|
|
875
878
|
})
|
|
@@ -894,36 +897,36 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
894
897
|
config: n
|
|
895
898
|
};
|
|
896
899
|
});
|
|
897
|
-
function
|
|
900
|
+
function yr() {
|
|
898
901
|
return G.value;
|
|
899
902
|
}
|
|
900
|
-
function
|
|
903
|
+
function br() {
|
|
901
904
|
B.value.showTable = !B.value.showTable;
|
|
902
905
|
}
|
|
903
|
-
function
|
|
906
|
+
function xr() {
|
|
904
907
|
B.value.showTooltip = !B.value.showTooltip;
|
|
905
908
|
}
|
|
906
|
-
function
|
|
909
|
+
function Sr() {
|
|
907
910
|
B.value.showZoom = !B.value.showZoom;
|
|
908
911
|
}
|
|
909
|
-
let
|
|
910
|
-
function
|
|
911
|
-
|
|
912
|
+
let Cr = w(!1);
|
|
913
|
+
function wr() {
|
|
914
|
+
Cr.value = !Cr.value;
|
|
912
915
|
}
|
|
913
|
-
let
|
|
916
|
+
let Tr = h(() => !Cr.value && B.value.showZoom), Er = w(null), Dr = w(!1), { viewBox: $, resetZoom: Or, isZoom: kr, setInitialViewBox: Ar, scale: jr } = Te(z, {
|
|
914
917
|
x: J.value.x,
|
|
915
918
|
y: J.value.y,
|
|
916
919
|
width: Math.max(10, J.value.width),
|
|
917
920
|
height: Math.max(10, J.value.height)
|
|
918
|
-
}, 1,
|
|
919
|
-
|
|
921
|
+
}, 1, Tr), Mr = h(() => 1 / jr.value), Nr = h(() => Math.min(1, L.value.style.chart.layout.labels.fontSizeZoomFactor / Math.max(jr.value, 1e-4))), Pr = h(() => `scale(${Nr.value})`), Fr = h(() => B.value.showZoom || kr.value);
|
|
922
|
+
O([
|
|
920
923
|
() => J.value.x,
|
|
921
924
|
() => J.value.y,
|
|
922
925
|
() => J.value.width,
|
|
923
926
|
() => J.value.height
|
|
924
927
|
], () => {
|
|
925
|
-
|
|
926
|
-
|
|
928
|
+
Ne(() => {
|
|
929
|
+
Ar({
|
|
927
930
|
x: J.value.x,
|
|
928
931
|
y: J.value.y,
|
|
929
932
|
width: Math.max(10, J.value.width),
|
|
@@ -931,35 +934,35 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
931
934
|
});
|
|
932
935
|
});
|
|
933
936
|
}, { immediate: !0 });
|
|
934
|
-
function
|
|
935
|
-
|
|
937
|
+
function Ir(e) {
|
|
938
|
+
Tr.value && (e.button !== void 0 && e.button !== 0 || (Er.value = {
|
|
936
939
|
x: e.clientX,
|
|
937
940
|
y: e.clientY
|
|
938
|
-
},
|
|
941
|
+
}, Dr.value = !1));
|
|
939
942
|
}
|
|
940
|
-
function
|
|
941
|
-
if (!
|
|
942
|
-
let t = e.clientX -
|
|
943
|
-
Math.hypot(t, n) >
|
|
943
|
+
function Lr(e) {
|
|
944
|
+
if (!Tr.value || !Er.value) return;
|
|
945
|
+
let t = e.clientX - Er.value.x, n = e.clientY - Er.value.y;
|
|
946
|
+
Math.hypot(t, n) > At && (Dr.value = !0);
|
|
944
947
|
}
|
|
945
|
-
function
|
|
946
|
-
|
|
947
|
-
|
|
948
|
+
function Rr() {
|
|
949
|
+
Er.value = null, Dr.value && window.setTimeout(() => {
|
|
950
|
+
Dr.value = !1;
|
|
948
951
|
}, 0);
|
|
949
952
|
}
|
|
950
|
-
function
|
|
951
|
-
|
|
953
|
+
function zr(e, t) {
|
|
954
|
+
Dr.value || ir(e, t);
|
|
952
955
|
}
|
|
953
|
-
let
|
|
954
|
-
function
|
|
955
|
-
|
|
956
|
+
let Br = w(null);
|
|
957
|
+
function Vr(e) {
|
|
958
|
+
Br.value = e;
|
|
956
959
|
}
|
|
957
|
-
function
|
|
958
|
-
|
|
960
|
+
function Hr() {
|
|
961
|
+
Br.value = null;
|
|
959
962
|
}
|
|
960
|
-
async function
|
|
963
|
+
async function Ur({ scale: e = 2 } = {}) {
|
|
961
964
|
if (!P.value) return;
|
|
962
|
-
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await
|
|
965
|
+
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
963
966
|
domElement: P.value,
|
|
964
967
|
base64: !0,
|
|
965
968
|
img: !0,
|
|
@@ -974,17 +977,17 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
974
977
|
aspectRatio: r
|
|
975
978
|
};
|
|
976
979
|
}
|
|
977
|
-
let
|
|
980
|
+
let Wr = h(() => {
|
|
978
981
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
979
982
|
return {
|
|
980
|
-
component: e ?
|
|
983
|
+
component: e ? $e : Je,
|
|
981
984
|
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
982
985
|
props: e ? {
|
|
983
986
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
984
987
|
color: L.value.table.th.color,
|
|
985
988
|
headerColor: L.value.table.th.color,
|
|
986
989
|
headerBg: L.value.table.th.backgroundColor,
|
|
987
|
-
isFullscreen:
|
|
990
|
+
isFullscreen: Lt.value,
|
|
988
991
|
fullscreenParent: P.value,
|
|
989
992
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
990
993
|
isCursorPointer: R.value
|
|
@@ -1005,51 +1008,51 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1005
1008
|
}
|
|
1006
1009
|
};
|
|
1007
1010
|
});
|
|
1008
|
-
|
|
1009
|
-
L.value.table.show || (e && L.value.table.useDialog &&
|
|
1011
|
+
O(() => B.value.showTable, (e) => {
|
|
1012
|
+
L.value.table.show || (e && L.value.table.useDialog && Jt.value ? Jt.value.open() : "close" in Jt.value && Jt.value.close());
|
|
1010
1013
|
});
|
|
1011
|
-
function
|
|
1012
|
-
B.value.showTable = !1,
|
|
1014
|
+
function Gr() {
|
|
1015
|
+
B.value.showTable = !1, Yt.value && Yt.value.setTableIconState(!1);
|
|
1013
1016
|
}
|
|
1014
|
-
let
|
|
1017
|
+
let Kr = h(() => or.value.map((e) => ({
|
|
1015
1018
|
...e,
|
|
1016
1019
|
name: e.display
|
|
1017
|
-
}))),
|
|
1020
|
+
}))), qr = h(() => L.value.style.chart.backgroundColor), Jr = h(() => L.value.style.chart.legend), { exportSvg: Yr, getSvg: Xr } = le({
|
|
1018
1021
|
svg: z,
|
|
1019
|
-
title:
|
|
1020
|
-
legend:
|
|
1021
|
-
legendItems:
|
|
1022
|
-
backgroundColor:
|
|
1022
|
+
title: h(() => L.value.style.chart.title),
|
|
1023
|
+
legend: Jr,
|
|
1024
|
+
legendItems: Kr,
|
|
1025
|
+
backgroundColor: qr
|
|
1023
1026
|
});
|
|
1024
|
-
async function
|
|
1025
|
-
|
|
1027
|
+
async function Zr({ isCb: e }) {
|
|
1028
|
+
$t.value = !0, await Ne();
|
|
1026
1029
|
try {
|
|
1027
1030
|
if (e) {
|
|
1028
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1031
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Xr();
|
|
1029
1032
|
await Promise.resolve(L.value.userOptions.callbacks.svg({
|
|
1030
1033
|
blob: e,
|
|
1031
1034
|
url: t,
|
|
1032
1035
|
text: n,
|
|
1033
1036
|
dataUrl: r
|
|
1034
1037
|
}));
|
|
1035
|
-
} else await Promise.resolve(
|
|
1038
|
+
} else await Promise.resolve(Yr());
|
|
1036
1039
|
} finally {
|
|
1037
|
-
|
|
1040
|
+
$t.value = !1;
|
|
1038
1041
|
}
|
|
1039
1042
|
}
|
|
1040
|
-
function
|
|
1043
|
+
function Qr(e) {
|
|
1041
1044
|
if (e?.stage === "start") {
|
|
1042
|
-
|
|
1045
|
+
Qt.value = !0;
|
|
1043
1046
|
return;
|
|
1044
1047
|
}
|
|
1045
1048
|
if (e?.stage === "end") {
|
|
1046
|
-
|
|
1049
|
+
Qt.value = !1;
|
|
1047
1050
|
return;
|
|
1048
1051
|
}
|
|
1049
|
-
|
|
1052
|
+
hn();
|
|
1050
1053
|
}
|
|
1051
|
-
function
|
|
1052
|
-
let n =
|
|
1054
|
+
function $r(e, t) {
|
|
1055
|
+
let n = Xn(e, t), { paddingX: r, paddingTop: i } = Wn(n);
|
|
1053
1056
|
return {
|
|
1054
1057
|
fontSize: n,
|
|
1055
1058
|
paddingX: r,
|
|
@@ -1057,68 +1060,73 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1057
1060
|
lineHeight: n * 1.1
|
|
1058
1061
|
};
|
|
1059
1062
|
}
|
|
1060
|
-
function
|
|
1061
|
-
return
|
|
1063
|
+
function ei(e) {
|
|
1064
|
+
return ne(e.color ?? L.value.style.chart.backgroundColor);
|
|
1062
1065
|
}
|
|
1063
|
-
function
|
|
1064
|
-
|
|
1066
|
+
function ti({ availableHeight: e, lineHeight: t, lineIndex: n }) {
|
|
1067
|
+
if (n === 0) return Infinity;
|
|
1068
|
+
let r = e / (n + 1);
|
|
1069
|
+
return r < 1e-4 ? -Infinity : t <= 0 ? Infinity : r / t;
|
|
1065
1070
|
}
|
|
1066
|
-
function
|
|
1067
|
-
|
|
1068
|
-
if (i <= 0 || a <= 0) return [];
|
|
1069
|
-
let o = Math.max(Math.floor(a / Math.max(r, 1e-4)), 1);
|
|
1070
|
-
return Wn(e, t).slice(0, o).map((e) => String(e ?? "")).filter(Boolean);
|
|
1071
|
+
function ni() {
|
|
1072
|
+
return Number(L.value.style.chart.layout.labels.hideUnderProportion) === 0;
|
|
1071
1073
|
}
|
|
1072
|
-
function
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1074
|
+
function ri(e) {
|
|
1075
|
+
let t = Nr.value;
|
|
1076
|
+
return e.alwaysShowAllLines ? `scale(${Math.min(t, e.allLinesScaleCap)})` : Pr.value;
|
|
1077
|
+
}
|
|
1078
|
+
function ii({ rect: e, seriesIndex: t }) {
|
|
1079
|
+
if (!e || !L.value.style.chart.layout.labels.showDefaultLabels || !Rn(e)) return null;
|
|
1080
|
+
let { fontSize: n, paddingX: r, paddingTop: i, lineHeight: a } = $r(e, t), o = ei(e), s = qn(e, t).map((e) => String(e ?? "")), c = Gn(e, n);
|
|
1081
|
+
if (!s.some(Boolean) || c.width <= 0 || c.height <= 0) return null;
|
|
1082
|
+
let l = ni(), u = l ? Math.max(1e-4, Math.min(1, c.height / Math.max(s.length * a, 1e-4))) : 1, d = `treemap_clip_${M.value}_${e.id}`, f = e.x0, ee = e.y0, te = Math.max(q(e), 0), ne = Math.max(K(e), 0);
|
|
1077
1083
|
return {
|
|
1078
|
-
key:
|
|
1079
|
-
clipId:
|
|
1080
|
-
clipX:
|
|
1081
|
-
clipY:
|
|
1082
|
-
clipWidth:
|
|
1083
|
-
clipHeight:
|
|
1084
|
-
|
|
1085
|
-
|
|
1084
|
+
key: ai(e),
|
|
1085
|
+
clipId: d,
|
|
1086
|
+
clipX: f,
|
|
1087
|
+
clipY: ee,
|
|
1088
|
+
clipWidth: te,
|
|
1089
|
+
clipHeight: ne,
|
|
1090
|
+
translate: `translate(${e.x0}, ${e.y0})`,
|
|
1091
|
+
alwaysShowAllLines: l,
|
|
1092
|
+
allLinesScaleCap: u,
|
|
1093
|
+
lines: s.map((t, s) => ({
|
|
1094
|
+
key: `${e.id}_${s}`,
|
|
1086
1095
|
text: t,
|
|
1087
|
-
x:
|
|
1088
|
-
y:
|
|
1089
|
-
|
|
1096
|
+
x: r,
|
|
1097
|
+
y: i + a * s,
|
|
1098
|
+
maxZoomFactor: ti({
|
|
1099
|
+
availableHeight: c.height,
|
|
1100
|
+
lineHeight: a,
|
|
1101
|
+
lineIndex: s
|
|
1102
|
+
}),
|
|
1103
|
+
fill: o,
|
|
1090
1104
|
fontSize: n,
|
|
1091
1105
|
fontFamily: L.value.style.fontFamily,
|
|
1092
|
-
fontWeight:
|
|
1106
|
+
fontWeight: s === 0 ? 500 : 400
|
|
1093
1107
|
}))
|
|
1094
1108
|
};
|
|
1095
1109
|
}
|
|
1096
|
-
function
|
|
1110
|
+
function ai(e) {
|
|
1097
1111
|
return `${e.id}`;
|
|
1098
1112
|
}
|
|
1099
|
-
let
|
|
1113
|
+
let oi = h(() => jt.rect || an.value || !L.value.style.chart.layout.labels.showDefaultLabels || cr.value ? [] : G.value.map((e, t) => e.showLabel ? ii({
|
|
1100
1114
|
rect: e,
|
|
1101
1115
|
seriesIndex: t
|
|
1102
|
-
}) : null).filter(Boolean)),
|
|
1103
|
-
function
|
|
1104
|
-
return typeof document > "u" ? null : (
|
|
1116
|
+
}) : null).filter(Boolean)), si;
|
|
1117
|
+
function ci() {
|
|
1118
|
+
return typeof document > "u" ? null : (si ||= document.createElement("canvas"), si.getContext("2d"));
|
|
1105
1119
|
}
|
|
1106
|
-
function
|
|
1107
|
-
let r =
|
|
1120
|
+
function li(e, t, n = 400) {
|
|
1121
|
+
let r = ci();
|
|
1108
1122
|
return r ? (r.font = `${n} ${t}px ${L.value.style.fontFamily}`, r.measureText(String(e)).width) : e.length * t * .6;
|
|
1109
1123
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return qr(e, t).width;
|
|
1112
|
-
}
|
|
1113
|
-
function ri(e, t) {
|
|
1114
|
-
return qr(e, t).height;
|
|
1115
|
-
}
|
|
1116
|
-
function ii(e) {
|
|
1124
|
+
function ui(e) {
|
|
1117
1125
|
let t = L.value.style.chart.layout.rects.borderRadius, n = q(e), r = K(e);
|
|
1118
1126
|
return Math.min(t, Math.min(n, r) / 6);
|
|
1119
1127
|
}
|
|
1120
|
-
async function
|
|
1121
|
-
if (
|
|
1128
|
+
async function di() {
|
|
1129
|
+
if (j("copyAlt", {
|
|
1122
1130
|
config: L.value,
|
|
1123
1131
|
dataset: G.value
|
|
1124
1132
|
}), !L.value.userOptions.callbacks.altCopy) {
|
|
@@ -1130,84 +1138,84 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1130
1138
|
dataset: G.value
|
|
1131
1139
|
}));
|
|
1132
1140
|
}
|
|
1133
|
-
function
|
|
1134
|
-
I.value = null,
|
|
1141
|
+
function fi() {
|
|
1142
|
+
I.value = null, nn.value = !0;
|
|
1135
1143
|
}
|
|
1136
|
-
function
|
|
1137
|
-
I.value = null,
|
|
1144
|
+
function pi() {
|
|
1145
|
+
I.value = null, tn.value = "pointer", Ft.value = !1, Z.value = null, nn.value = !1;
|
|
1138
1146
|
}
|
|
1139
|
-
function
|
|
1140
|
-
if (!z.value ||
|
|
1147
|
+
function mi(e) {
|
|
1148
|
+
if (!z.value || Cr.value || document.activeElement !== z.value || !G.value.length || cr.value) return;
|
|
1141
1149
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1142
1150
|
if (!t && !n && !r && !i) return;
|
|
1143
1151
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1144
|
-
I.value = null,
|
|
1152
|
+
I.value = null, tn.value = "pointer", Ft.value = !1, Z.value = null;
|
|
1145
1153
|
return;
|
|
1146
1154
|
}
|
|
1147
1155
|
if (r) {
|
|
1148
1156
|
if (I.value === null) return;
|
|
1149
1157
|
let e = G.value[I.value];
|
|
1150
1158
|
if (!e) return;
|
|
1151
|
-
|
|
1159
|
+
ir(e, I.value);
|
|
1152
1160
|
return;
|
|
1153
1161
|
}
|
|
1154
1162
|
let a = I.value, o = Z.value ? G.value.findIndex((e) => e.id === Z.value.id) : null, s = a !== null && a >= 0 && a < G.value.length, c = o !== null && o >= 0 && o < G.value.length;
|
|
1155
1163
|
s ? n ? (a += 1, a >= G.value.length && (a = 0)) : t && (--a, a < 0 && (a = G.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= G.value.length && (a = 0), a < 0 && (a = G.value.length - 1)) : a = n ? 0 : G.value.length - 1;
|
|
1156
1164
|
let l = G.value[a];
|
|
1157
|
-
l && (
|
|
1165
|
+
l && (hi(a), gr({
|
|
1158
1166
|
datapoint: l,
|
|
1159
1167
|
seriesIndex: a,
|
|
1160
1168
|
triggerMode: "keyboard"
|
|
1161
1169
|
}));
|
|
1162
1170
|
}
|
|
1163
|
-
function
|
|
1171
|
+
function hi(e) {
|
|
1164
1172
|
if (!Number.isFinite(e) || !z.value) return;
|
|
1165
1173
|
let t = G.value[e];
|
|
1166
1174
|
if (!t) return;
|
|
1167
1175
|
let n = t.x0 + q(t) / 2, r = t.y0 + K(t) / 2, i = z.value.getBoundingClientRect();
|
|
1168
|
-
|
|
1176
|
+
en.value = {
|
|
1169
1177
|
x: i.left + (n - $.value.x) / $.value.width * i.width,
|
|
1170
1178
|
y: i.top + (r - $.value.y) / $.value.height * i.height
|
|
1171
1179
|
};
|
|
1172
1180
|
}
|
|
1173
|
-
let
|
|
1174
|
-
headers:
|
|
1175
|
-
rows:
|
|
1176
|
-
})),
|
|
1177
|
-
return
|
|
1178
|
-
getData:
|
|
1179
|
-
getImage:
|
|
1180
|
-
generateCsv:
|
|
1181
|
-
generateImage:
|
|
1182
|
-
generateSvg:
|
|
1183
|
-
generatePdf:
|
|
1184
|
-
hideSeries:
|
|
1185
|
-
showSeries:
|
|
1186
|
-
toggleTable:
|
|
1187
|
-
toggleTooltip:
|
|
1188
|
-
toggleZoom:
|
|
1189
|
-
toggleAnnotator:
|
|
1190
|
-
toggleFullscreen:
|
|
1191
|
-
resetZoom:
|
|
1192
|
-
copyAlt:
|
|
1193
|
-
}), (e, t) => (
|
|
1181
|
+
let gi = h(() => ({
|
|
1182
|
+
headers: vr.value?.colNames ?? [],
|
|
1183
|
+
rows: vr.value?.body ?? []
|
|
1184
|
+
})), _i = h(() => L.value.style.chart.color);
|
|
1185
|
+
return me({
|
|
1186
|
+
getData: yr,
|
|
1187
|
+
getImage: Ur,
|
|
1188
|
+
generateCsv: _r,
|
|
1189
|
+
generateImage: hn,
|
|
1190
|
+
generateSvg: Zr,
|
|
1191
|
+
generatePdf: mn,
|
|
1192
|
+
hideSeries: pr,
|
|
1193
|
+
showSeries: fr,
|
|
1194
|
+
toggleTable: br,
|
|
1195
|
+
toggleTooltip: xr,
|
|
1196
|
+
toggleZoom: Sr,
|
|
1197
|
+
toggleAnnotator: wr,
|
|
1198
|
+
toggleFullscreen: Zn,
|
|
1199
|
+
resetZoom: Or,
|
|
1200
|
+
copyAlt: di
|
|
1201
|
+
}), (e, t) => (C(), v("div", {
|
|
1194
1202
|
ref_key: "treemapChart",
|
|
1195
1203
|
ref: P,
|
|
1196
|
-
class:
|
|
1197
|
-
style:
|
|
1198
|
-
id: `treemap_${
|
|
1199
|
-
onMouseenter: t[3] ||= () =>
|
|
1200
|
-
onMouseleave: t[4] ||= () =>
|
|
1204
|
+
class: Pe(`vue-data-ui-component vue-ui-treemap ${Lt.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1205
|
+
style: S(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height: 100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
|
|
1206
|
+
id: `treemap_${M.value}`,
|
|
1207
|
+
onMouseenter: t[3] ||= () => D(ln)(!0),
|
|
1208
|
+
onMouseleave: t[4] ||= () => D(ln)(!1)
|
|
1201
1209
|
}, [
|
|
1202
|
-
|
|
1203
|
-
id: `chart-instructions-${
|
|
1210
|
+
y("div", {
|
|
1211
|
+
id: `chart-instructions-${M.value}`,
|
|
1204
1212
|
class: "sr-only"
|
|
1205
|
-
}, [
|
|
1206
|
-
|
|
1213
|
+
}, [y("p", null, ze(L.value.a11y.translations.keyboardNavigation), 1)], 8, it),
|
|
1214
|
+
gi.value?.rows?.length ? (C(), g(be, {
|
|
1207
1215
|
key: 0,
|
|
1208
|
-
uid:
|
|
1209
|
-
head:
|
|
1210
|
-
body:
|
|
1216
|
+
uid: M.value,
|
|
1217
|
+
head: gi.value.headers,
|
|
1218
|
+
body: gi.value.rows,
|
|
1211
1219
|
notice: L.value.a11y.translations.tableAvailable,
|
|
1212
1220
|
caption: L.value.a11y.translations.tableCaption
|
|
1213
1221
|
}, null, 8, [
|
|
@@ -1216,22 +1224,22 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1216
1224
|
"body",
|
|
1217
1225
|
"notice",
|
|
1218
1226
|
"caption"
|
|
1219
|
-
])) :
|
|
1220
|
-
L.value.userOptions.buttons.annotator ? (
|
|
1227
|
+
])) : _("", !0),
|
|
1228
|
+
L.value.userOptions.buttons.annotator ? (C(), g(D(qe), {
|
|
1221
1229
|
key: 1,
|
|
1222
|
-
svgRef:
|
|
1230
|
+
svgRef: D(z),
|
|
1223
1231
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1224
1232
|
color: L.value.style.chart.color,
|
|
1225
|
-
active:
|
|
1233
|
+
active: Cr.value,
|
|
1226
1234
|
isCursorPointer: R.value,
|
|
1227
|
-
onClose:
|
|
1235
|
+
onClose: wr
|
|
1228
1236
|
}, {
|
|
1229
|
-
"annotator-action-close":
|
|
1230
|
-
"annotator-action-color":
|
|
1231
|
-
"annotator-action-draw":
|
|
1232
|
-
"annotator-action-undo":
|
|
1233
|
-
"annotator-action-redo":
|
|
1234
|
-
"annotator-action-delete":
|
|
1237
|
+
"annotator-action-close": k(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1238
|
+
"annotator-action-color": k(({ color: t }) => [T(e.$slots, "annotator-action-color", x(b({ color: t })), void 0, !0)]),
|
|
1239
|
+
"annotator-action-draw": k(({ mode: t }) => [T(e.$slots, "annotator-action-draw", x(b({ mode: t })), void 0, !0)]),
|
|
1240
|
+
"annotator-action-undo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-undo", x(b({ disabled: t })), void 0, !0)]),
|
|
1241
|
+
"annotator-action-redo": k(({ disabled: t }) => [T(e.$slots, "annotator-action-redo", x(b({ disabled: t })), void 0, !0)]),
|
|
1242
|
+
"annotator-action-delete": k(({ disabled: t }) => [T(e.$slots, "annotator-action-delete", x(b({ disabled: t })), void 0, !0)]),
|
|
1235
1243
|
_: 3
|
|
1236
1244
|
}, 8, [
|
|
1237
1245
|
"svgRef",
|
|
@@ -1239,21 +1247,21 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1239
1247
|
"color",
|
|
1240
1248
|
"active",
|
|
1241
1249
|
"isCursorPointer"
|
|
1242
|
-
])) :
|
|
1243
|
-
|
|
1250
|
+
])) : _("", !0),
|
|
1251
|
+
gn.value ? (C(), v("div", {
|
|
1244
1252
|
key: 2,
|
|
1245
1253
|
ref_key: "noTitle",
|
|
1246
|
-
ref:
|
|
1254
|
+
ref: Ht,
|
|
1247
1255
|
class: "vue-data-ui-no-title-space",
|
|
1248
1256
|
style: "height:36px; width: 100%;background:transparent"
|
|
1249
|
-
}, null, 512)) :
|
|
1250
|
-
L.value.style.chart.title.text ? (
|
|
1257
|
+
}, null, 512)) : _("", !0),
|
|
1258
|
+
L.value.style.chart.title.text ? (C(), v("div", {
|
|
1251
1259
|
key: 3,
|
|
1252
1260
|
ref_key: "chartTitle",
|
|
1253
|
-
ref:
|
|
1254
|
-
style:
|
|
1255
|
-
}, [(
|
|
1256
|
-
key: `title_${
|
|
1261
|
+
ref: zt,
|
|
1262
|
+
style: S(`width:100%;background:${L.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1263
|
+
}, [(C(), g(pe, {
|
|
1264
|
+
key: `title_${Ut.value}`,
|
|
1257
1265
|
config: {
|
|
1258
1266
|
title: {
|
|
1259
1267
|
cy: "treemap-div-title",
|
|
@@ -1264,17 +1272,17 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1264
1272
|
...L.value.style.chart.title.subtitle
|
|
1265
1273
|
}
|
|
1266
1274
|
}
|
|
1267
|
-
}, null, 8, ["config"]))], 4)) :
|
|
1268
|
-
|
|
1269
|
-
L.value.userOptions.show &&
|
|
1275
|
+
}, null, 8, ["config"]))], 4)) : _("", !0),
|
|
1276
|
+
y("div", { id: `legend-top-${M.value}` }, null, 8, at),
|
|
1277
|
+
L.value.userOptions.show && Nt.value && (D(un) || D(cn)) ? (C(), g(D(Ze), {
|
|
1270
1278
|
ref_key: "userOptionsRef",
|
|
1271
|
-
ref:
|
|
1272
|
-
key: `user_option_${
|
|
1279
|
+
ref: Yt,
|
|
1280
|
+
key: `user_option_${Rt.value}`,
|
|
1273
1281
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1274
1282
|
color: L.value.style.chart.color,
|
|
1275
|
-
isPrinting:
|
|
1276
|
-
isImaging:
|
|
1277
|
-
uid:
|
|
1283
|
+
isPrinting: D(fn),
|
|
1284
|
+
isImaging: D(pn),
|
|
1285
|
+
uid: M.value,
|
|
1278
1286
|
hasTooltip: L.value.userOptions.buttons.tooltip && L.value.style.chart.tooltip.show,
|
|
1279
1287
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
1280
1288
|
hasXls: L.value.userOptions.buttons.csv,
|
|
@@ -1283,34 +1291,34 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1283
1291
|
hasTable: L.value.userOptions.buttons.table,
|
|
1284
1292
|
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1285
1293
|
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1286
|
-
isFullscreen:
|
|
1294
|
+
isFullscreen: Lt.value,
|
|
1287
1295
|
isTooltip: B.value.showTooltip,
|
|
1288
1296
|
titles: { ...L.value.userOptions.buttonTitles },
|
|
1289
1297
|
chartElement: P.value,
|
|
1290
1298
|
position: L.value.userOptions.position,
|
|
1291
1299
|
hasAnnotator: L.value.userOptions.buttons.annotator,
|
|
1292
|
-
isAnnotation:
|
|
1300
|
+
isAnnotation: Cr.value,
|
|
1293
1301
|
callbacks: L.value.userOptions.callbacks,
|
|
1294
1302
|
printScale: L.value.userOptions.print.scale,
|
|
1295
1303
|
tableDialog: L.value.table.useDialog,
|
|
1296
1304
|
isCursorPointer: R.value,
|
|
1297
1305
|
hasZoom: L.value.userOptions.buttons.zoom,
|
|
1298
1306
|
isZoom: B.value.showZoom,
|
|
1299
|
-
onToggleFullscreen:
|
|
1300
|
-
onGeneratePdf:
|
|
1301
|
-
onGenerateCsv:
|
|
1302
|
-
onGenerateImage:
|
|
1303
|
-
onGenerateSvg:
|
|
1304
|
-
onToggleTable:
|
|
1305
|
-
onToggleTooltip:
|
|
1306
|
-
onToggleAnnotator:
|
|
1307
|
-
onToggleZoom:
|
|
1308
|
-
onCopyAlt:
|
|
1309
|
-
style:
|
|
1310
|
-
},
|
|
1307
|
+
onToggleFullscreen: Zn,
|
|
1308
|
+
onGeneratePdf: D(mn),
|
|
1309
|
+
onGenerateCsv: _r,
|
|
1310
|
+
onGenerateImage: Qr,
|
|
1311
|
+
onGenerateSvg: Zr,
|
|
1312
|
+
onToggleTable: br,
|
|
1313
|
+
onToggleTooltip: xr,
|
|
1314
|
+
onToggleAnnotator: wr,
|
|
1315
|
+
onToggleZoom: Sr,
|
|
1316
|
+
onCopyAlt: di,
|
|
1317
|
+
style: S({ visibility: D(un) ? D(cn) ? "visible" : "hidden" : "visible" })
|
|
1318
|
+
}, Oe({ _: 2 }, [
|
|
1311
1319
|
e.$slots.menuIcon ? {
|
|
1312
1320
|
name: "menuIcon",
|
|
1313
|
-
fn:
|
|
1321
|
+
fn: k(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(b({
|
|
1314
1322
|
isOpen: t,
|
|
1315
1323
|
color: n
|
|
1316
1324
|
})), void 0, !0)]),
|
|
@@ -1318,37 +1326,37 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1318
1326
|
} : void 0,
|
|
1319
1327
|
e.$slots.optionTooltip ? {
|
|
1320
1328
|
name: "optionTooltip",
|
|
1321
|
-
fn:
|
|
1329
|
+
fn: k(() => [T(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1322
1330
|
key: "1"
|
|
1323
1331
|
} : void 0,
|
|
1324
1332
|
e.$slots.optionPdf ? {
|
|
1325
1333
|
name: "optionPdf",
|
|
1326
|
-
fn:
|
|
1334
|
+
fn: k(() => [T(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1327
1335
|
key: "2"
|
|
1328
1336
|
} : void 0,
|
|
1329
1337
|
e.$slots.optionCsv ? {
|
|
1330
1338
|
name: "optionCsv",
|
|
1331
|
-
fn:
|
|
1339
|
+
fn: k(() => [T(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1332
1340
|
key: "3"
|
|
1333
1341
|
} : void 0,
|
|
1334
1342
|
e.$slots.optionImg ? {
|
|
1335
1343
|
name: "optionImg",
|
|
1336
|
-
fn:
|
|
1344
|
+
fn: k(() => [T(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1337
1345
|
key: "4"
|
|
1338
1346
|
} : void 0,
|
|
1339
1347
|
e.$slots.optionSvg ? {
|
|
1340
1348
|
name: "optionSvg",
|
|
1341
|
-
fn:
|
|
1349
|
+
fn: k(() => [T(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1342
1350
|
key: "5"
|
|
1343
1351
|
} : void 0,
|
|
1344
1352
|
e.$slots.optionTable ? {
|
|
1345
1353
|
name: "optionTable",
|
|
1346
|
-
fn:
|
|
1354
|
+
fn: k(() => [T(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1347
1355
|
key: "6"
|
|
1348
1356
|
} : void 0,
|
|
1349
1357
|
e.$slots.optionFullscreen ? {
|
|
1350
1358
|
name: "optionFullscreen",
|
|
1351
|
-
fn:
|
|
1359
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: n }) => [T(e.$slots, "optionFullscreen", x(b({
|
|
1352
1360
|
toggleFullscreen: t,
|
|
1353
1361
|
isFullscreen: n
|
|
1354
1362
|
})), void 0, !0)]),
|
|
@@ -1356,7 +1364,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1356
1364
|
} : void 0,
|
|
1357
1365
|
e.$slots.optionAnnotator ? {
|
|
1358
1366
|
name: "optionAnnotator",
|
|
1359
|
-
fn:
|
|
1367
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: n }) => [T(e.$slots, "optionAnnotator", x(b({
|
|
1360
1368
|
toggleAnnotator: t,
|
|
1361
1369
|
isAnnotator: n
|
|
1362
1370
|
})), void 0, !0)]),
|
|
@@ -1364,7 +1372,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1364
1372
|
} : void 0,
|
|
1365
1373
|
e.$slots.optionZoom ? {
|
|
1366
1374
|
name: "optionZoom",
|
|
1367
|
-
fn:
|
|
1375
|
+
fn: k(({ toggleZoom: t, isZoomLocked: n }) => [T(e.$slots, "optionZoom", x(b({
|
|
1368
1376
|
toggleZoom: t,
|
|
1369
1377
|
isZoomLocked: n
|
|
1370
1378
|
})), void 0, !0)]),
|
|
@@ -1372,78 +1380,78 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1372
1380
|
} : void 0,
|
|
1373
1381
|
e.$slots.optionAltCopy ? {
|
|
1374
1382
|
name: "optionAltCopy",
|
|
1375
|
-
fn:
|
|
1383
|
+
fn: k(({ altCopy: t }) => [T(e.$slots, "optionAltCopy", x(b({ altCopy: t })), void 0, !0)]),
|
|
1376
1384
|
key: "10"
|
|
1377
1385
|
} : void 0,
|
|
1378
1386
|
e.$slots["custom-menu-before"] ? {
|
|
1379
1387
|
name: "custom-menu-before",
|
|
1380
|
-
fn:
|
|
1388
|
+
fn: k(() => [T(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1381
1389
|
key: "11"
|
|
1382
1390
|
} : void 0,
|
|
1383
1391
|
e.$slots["custom-menu-after"] ? {
|
|
1384
1392
|
name: "custom-menu-after",
|
|
1385
|
-
fn:
|
|
1393
|
+
fn: k(() => [T(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1386
1394
|
key: "12"
|
|
1387
1395
|
} : void 0
|
|
1388
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.style".split("."))) :
|
|
1389
|
-
X.value.length > 1 ? (
|
|
1396
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasTable.hasFullscreen.hasAltCopy.isFullscreen.isTooltip.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.hasZoom.isZoom.onGeneratePdf.style".split("."))) : _("", !0),
|
|
1397
|
+
X.value.length > 1 ? (C(), v("nav", {
|
|
1390
1398
|
key: 5,
|
|
1391
1399
|
class: "vue-ui-treemap-breadcrumbs",
|
|
1392
1400
|
"data-dom-to-png-ignore": "",
|
|
1393
1401
|
ref_key: "breadcrumbsNav",
|
|
1394
|
-
ref:
|
|
1395
|
-
}, [(
|
|
1402
|
+
ref: Kt
|
|
1403
|
+
}, [(C(!0), v(m, null, Le(X.value, (n, r) => (C(), v("span", {
|
|
1396
1404
|
role: "button",
|
|
1397
1405
|
tabindex: r < X.value.length - 1 ? 0 : void 0,
|
|
1398
1406
|
key: n.id || "root",
|
|
1399
|
-
onClick: (e) => r === X.value.length - 1 ? () => {} :
|
|
1400
|
-
onKeydown: [We(
|
|
1407
|
+
onClick: (e) => r === X.value.length - 1 ? () => {} : ir(n.node),
|
|
1408
|
+
onKeydown: [Ue(We((e) => r === X.value.length - 1 ? void 0 : ir(n.node), ["prevent"]), ["enter"]), Ue(We((e) => r === X.value.length - 1 ? void 0 : ir(n.node), ["prevent"]), ["space"])],
|
|
1401
1409
|
class: "vue-ui-treemap-crumb",
|
|
1402
1410
|
"data-last-crumb": r === X.value.length - 1,
|
|
1403
|
-
style:
|
|
1411
|
+
style: S({
|
|
1404
1412
|
color: L.value.style.chart.color,
|
|
1405
1413
|
cursor: R.value ? "pointer" : "default"
|
|
1406
1414
|
}),
|
|
1407
|
-
onMouseenter: (e) =>
|
|
1408
|
-
onMouseleave:
|
|
1409
|
-
onFocus: (e) =>
|
|
1410
|
-
onBlur:
|
|
1411
|
-
}, [
|
|
1415
|
+
onMouseenter: (e) => Vr(r),
|
|
1416
|
+
onMouseleave: Hr,
|
|
1417
|
+
onFocus: (e) => Vr(r),
|
|
1418
|
+
onBlur: Hr
|
|
1419
|
+
}, [y("span", st, [y("span", ct, [T(e.$slots, "breadcrumb-label", Me({ ref_for: !0 }, {
|
|
1412
1420
|
crumb: n,
|
|
1413
1421
|
isRoot: r === 0,
|
|
1414
|
-
isFocus:
|
|
1415
|
-
}), () => [r === 0 ? (
|
|
1416
|
-
name:
|
|
1422
|
+
isFocus: Br.value === r
|
|
1423
|
+
}), () => [r === 0 ? (C(), v("div", lt, [Ae(_e, {
|
|
1424
|
+
name: Br.value === 0 ? "homeFilled" : "home",
|
|
1417
1425
|
stroke: L.value.style.chart.color
|
|
1418
|
-
}, null, 8, ["name", "stroke"])])) : (
|
|
1419
|
-
|
|
1420
|
-
(
|
|
1426
|
+
}, null, 8, ["name", "stroke"])])) : (C(), v(m, { key: 1 }, [ke(ze(n.label), 1)], 64))], !0)]), r < X.value.length - 1 ? (C(), v("span", ut, [T(e.$slots, "breadcrumb-arrow", {}, () => [t[5] ||= ke(" › ", -1)], !0)])) : _("", !0)])], 44, ot))), 128))], 512)) : _("", !0),
|
|
1427
|
+
y("div", dt, [
|
|
1428
|
+
(C(), v("svg", {
|
|
1421
1429
|
ref_key: "svgRef",
|
|
1422
1430
|
ref: z,
|
|
1423
|
-
xmlns:
|
|
1424
|
-
"aria-describedby": `chart-instructions-${
|
|
1425
|
-
class:
|
|
1426
|
-
"vue-data-ui-fullscreen--on":
|
|
1427
|
-
"vue-data-ui-fulscreen--off": !
|
|
1428
|
-
"vue-data-ui-zoom-plus":
|
|
1429
|
-
"vue-data-ui-zoom-minus":
|
|
1430
|
-
"no-transition":
|
|
1431
|
-
loading:
|
|
1431
|
+
xmlns: D(ie),
|
|
1432
|
+
"aria-describedby": `chart-instructions-${M.value}`,
|
|
1433
|
+
class: Pe({
|
|
1434
|
+
"vue-data-ui-fullscreen--on": Lt.value,
|
|
1435
|
+
"vue-data-ui-fulscreen--off": !Lt.value,
|
|
1436
|
+
"vue-data-ui-zoom-plus": !$n.value,
|
|
1437
|
+
"vue-data-ui-zoom-minus": $n.value,
|
|
1438
|
+
"no-transition": D(Mt),
|
|
1439
|
+
loading: D(an)
|
|
1432
1440
|
}),
|
|
1433
|
-
viewBox: `${
|
|
1434
|
-
style:
|
|
1441
|
+
viewBox: `${D($).x} ${D($).y} ${D($).width <= 0 ? 10 : D($).width} ${D($).height <= 0 ? 10 : D($).height}`,
|
|
1442
|
+
style: S(`max-width:100%; overflow:${Fr.value ? "hidden" : "visible"}; background:transparent;color:${L.value.style.chart.color}`),
|
|
1435
1443
|
tabindex: "0",
|
|
1436
|
-
onFocus:
|
|
1437
|
-
onBlur:
|
|
1438
|
-
onKeydown:
|
|
1439
|
-
onPointerdown:
|
|
1440
|
-
onPointermove:
|
|
1441
|
-
onPointerup:
|
|
1442
|
-
onPointercancel:
|
|
1443
|
-
onPointerleave:
|
|
1444
|
+
onFocus: fi,
|
|
1445
|
+
onBlur: pi,
|
|
1446
|
+
onKeydown: mi,
|
|
1447
|
+
onPointerdown: Ir,
|
|
1448
|
+
onPointermove: Lr,
|
|
1449
|
+
onPointerup: Rr,
|
|
1450
|
+
onPointercancel: Rr,
|
|
1451
|
+
onPointerleave: Rr
|
|
1444
1452
|
}, [
|
|
1445
|
-
|
|
1446
|
-
(
|
|
1453
|
+
Ae(D(Qe)),
|
|
1454
|
+
(C(!0), v(m, null, Le(G.value, (e, t) => (C(), v("g", { key: `tgrad_${e.id}` }, [L.value.style.chart.layout.rects.gradient.show ? (C(), v("defs", pt, [Ae(ve, {
|
|
1447
1455
|
t: "radial",
|
|
1448
1456
|
id: `tgrad_${e.id}`,
|
|
1449
1457
|
gradientTransform: "translate(-1, -1.000001) scale(2, 2)",
|
|
@@ -1453,57 +1461,61 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1453
1461
|
1
|
|
1454
1462
|
], [
|
|
1455
1463
|
"100%",
|
|
1456
|
-
|
|
1464
|
+
D(r)(e.color, L.value.style.chart.layout.rects.gradient.intensity / 100),
|
|
1457
1465
|
1
|
|
1458
1466
|
]]
|
|
1459
|
-
}, null, 8, ["id", "stops"])])) :
|
|
1460
|
-
|
|
1461
|
-
(
|
|
1467
|
+
}, null, 8, ["id", "stops"])])) : _("", !0)]))), 128)),
|
|
1468
|
+
y("g", null, [
|
|
1469
|
+
(C(!0), v(m, null, Le(G.value, (e, t) => (C(), v("g", { key: `rect_${e.id}_${e.depth}` }, [y("rect", {
|
|
1462
1470
|
x: e.x0,
|
|
1463
1471
|
y: e.y0,
|
|
1464
1472
|
height: K(e),
|
|
1465
1473
|
width: q(e),
|
|
1466
|
-
fill:
|
|
1467
|
-
rx:
|
|
1474
|
+
fill: Pt.value ? e.color ?? L.value.style.chart.backgroundColor : L.value.style.chart.layout.rects.gradient.show ? cr.value ? L.value.style.chart.backgroundColor : `url(#tgrad_${e.id})` : e.color ?? L.value.style.chart.backgroundColor,
|
|
1475
|
+
rx: D(jr) > 1 ? ui(e) * Mr.value : ui(e),
|
|
1468
1476
|
stroke: Z.value && Z.value.id === e.id ? L.value.style.chart.layout.rects.selected.stroke : L.value.style.chart.layout.rects.stroke,
|
|
1469
|
-
"stroke-width":
|
|
1470
|
-
onClick:
|
|
1471
|
-
onMouseenter: () =>
|
|
1477
|
+
"stroke-width": Hn(e),
|
|
1478
|
+
onClick: We((n) => zr(e, t), ["stop"]),
|
|
1479
|
+
onMouseenter: () => gr({
|
|
1472
1480
|
datapoint: e,
|
|
1473
1481
|
seriesIndex: t,
|
|
1474
1482
|
triggerMode: "pointer"
|
|
1475
1483
|
}),
|
|
1476
|
-
onMouseleave: (n) =>
|
|
1484
|
+
onMouseleave: (n) => mr({
|
|
1477
1485
|
datapoint: e,
|
|
1478
1486
|
seriesIndex: t
|
|
1479
1487
|
}),
|
|
1480
|
-
style:
|
|
1481
|
-
class:
|
|
1482
|
-
}, null, 46,
|
|
1483
|
-
(
|
|
1488
|
+
style: S(`opacity:${Z.value ? Z.value.id === e.id ? 1 : L.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1489
|
+
class: Pe(["vue-ui-treemap-rect", ar(e) ? "vue-data-ui-zoom-minus" : "vue-data-ui-zoom-plus"])
|
|
1490
|
+
}, null, 46, mt)]))), 128)),
|
|
1491
|
+
(C(!0), v(m, null, Le(oi.value, (e) => (C(), v("g", {
|
|
1484
1492
|
key: e.key,
|
|
1485
1493
|
style: { "pointer-events": "none" }
|
|
1486
|
-
}, [
|
|
1494
|
+
}, [y("defs", null, [y("clipPath", {
|
|
1487
1495
|
id: e.clipId,
|
|
1488
1496
|
clipPathUnits: "userSpaceOnUse"
|
|
1489
|
-
}, [
|
|
1497
|
+
}, [y("rect", {
|
|
1490
1498
|
class: "vue-ui-treemap-data-label-clip",
|
|
1491
1499
|
x: e.clipX,
|
|
1492
1500
|
y: e.clipY,
|
|
1493
1501
|
width: e.clipWidth,
|
|
1494
1502
|
height: e.clipHeight
|
|
1495
|
-
}, null, 8,
|
|
1496
|
-
|
|
1503
|
+
}, null, 8, gt)], 8, ht)]), y("g", { "clip-path": `url(#${e.clipId})` }, [y("g", { transform: e.translate }, [y("g", {
|
|
1504
|
+
class: "vue-ui-treemap-data-label-scale",
|
|
1505
|
+
transform: ri(e)
|
|
1506
|
+
}, [(C(!0), v(m, null, Le(e.lines, (t) => (C(), v(m, { key: t.key }, [t.text && (e.alwaysShowAllLines || Nr.value <= t.maxZoomFactor) ? (C(), v("text", {
|
|
1507
|
+
key: 0,
|
|
1497
1508
|
class: "vue-ui-treemap-data-label",
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
"font-
|
|
1502
|
-
"font-
|
|
1509
|
+
x: t.x,
|
|
1510
|
+
y: t.y,
|
|
1511
|
+
fill: t.fill,
|
|
1512
|
+
"font-size": t.fontSize,
|
|
1513
|
+
"font-family": t.fontFamily,
|
|
1514
|
+
"font-weight": t.fontWeight,
|
|
1503
1515
|
"text-anchor": "start",
|
|
1504
1516
|
"dominant-baseline": "text-before-edge"
|
|
1505
|
-
},
|
|
1506
|
-
e.$slots.rect ? (
|
|
1517
|
+
}, ze(t.text), 9, bt)) : _("", !0)], 64))), 128))], 8, yt)], 8, vt)], 8, _t)]))), 128)),
|
|
1518
|
+
e.$slots.rect ? (C(), v("g", xt, [(C(!0), v(m, null, Le(G.value, (t, n) => (C(), v("g", { key: `slot_${t.id}_${t.depth}` }, [(C(), v("foreignObject", {
|
|
1507
1519
|
x: t.x0,
|
|
1508
1520
|
y: t.y0,
|
|
1509
1521
|
height: K(t),
|
|
@@ -1513,7 +1525,7 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1513
1525
|
"pointer-events": "none",
|
|
1514
1526
|
overflow: "hidden"
|
|
1515
1527
|
}
|
|
1516
|
-
}, [
|
|
1528
|
+
}, [y("div", Ct, [D(an) ? _("", !0) : T(e.$slots, "rect", Me({
|
|
1517
1529
|
key: 0,
|
|
1518
1530
|
ref_for: !0
|
|
1519
1531
|
}, {
|
|
@@ -1521,94 +1533,94 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1521
1533
|
...t,
|
|
1522
1534
|
height: K(t),
|
|
1523
1535
|
width: q(t),
|
|
1524
|
-
isSelected: Z.value
|
|
1536
|
+
isSelected: !Z.value || Z.value.id === t.id
|
|
1525
1537
|
},
|
|
1526
|
-
shouldShow:
|
|
1527
|
-
fontSize:
|
|
1528
|
-
isZoom:
|
|
1529
|
-
textColor:
|
|
1530
|
-
}), void 0, !0)])], 8,
|
|
1538
|
+
shouldShow: zn(t) || $n.value,
|
|
1539
|
+
fontSize: Xn(t, n),
|
|
1540
|
+
isZoom: $n.value,
|
|
1541
|
+
textColor: D(ne)(t.color)
|
|
1542
|
+
}), void 0, !0)])], 8, St))]))), 128))])) : _("", !0)
|
|
1531
1543
|
]),
|
|
1532
|
-
|
|
1544
|
+
T(e.$slots, "svg", x(b({
|
|
1533
1545
|
svg: V.value,
|
|
1534
|
-
isZoom:
|
|
1546
|
+
isZoom: $n.value,
|
|
1535
1547
|
rect: Z.value,
|
|
1536
1548
|
config: L.value,
|
|
1537
|
-
isPrintingImg:
|
|
1538
|
-
isPrintingSvg:
|
|
1549
|
+
isPrintingImg: D(fn) || D(pn) || Qt.value,
|
|
1550
|
+
isPrintingSvg: $t.value
|
|
1539
1551
|
})), void 0, !0)
|
|
1540
|
-
], 46,
|
|
1541
|
-
|
|
1552
|
+
], 46, ft)),
|
|
1553
|
+
D(kr) ? (C(), v("div", wt, [T(e.$slots, "reset-action", { reset: D(Or) }, () => [y("button", {
|
|
1542
1554
|
"data-cy-reset": "",
|
|
1543
1555
|
tabindex: "0",
|
|
1544
1556
|
role: "button",
|
|
1545
1557
|
class: "vue-data-ui-refresh-button",
|
|
1546
|
-
style:
|
|
1558
|
+
style: S({
|
|
1547
1559
|
background: L.value.style.chart.backgroundColor,
|
|
1548
1560
|
cursor: R.value ? "pointer" : "default"
|
|
1549
1561
|
}),
|
|
1550
|
-
onClick: t[0] ||= (e) =>
|
|
1551
|
-
}, [
|
|
1562
|
+
onClick: t[0] ||= (e) => D(Or)(!0)
|
|
1563
|
+
}, [Ae(_e, {
|
|
1552
1564
|
name: "refresh",
|
|
1553
1565
|
stroke: L.value.style.chart.color
|
|
1554
|
-
}, null, 8, ["stroke"])], 4)], !0)])) :
|
|
1555
|
-
e.$slots.hint ? (
|
|
1566
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : _("", !0),
|
|
1567
|
+
e.$slots.hint ? (C(), v("div", Tt, [T(e.$slots, "hint", x(b({
|
|
1556
1568
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1557
|
-
isVisible:
|
|
1558
|
-
})), void 0, !0)])) :
|
|
1569
|
+
isVisible: nn.value
|
|
1570
|
+
})), void 0, !0)])) : _("", !0)
|
|
1559
1571
|
]),
|
|
1560
|
-
e.$slots.watermark ? (
|
|
1561
|
-
|
|
1562
|
-
|
|
1572
|
+
e.$slots.watermark ? (C(), v("div", Et, [T(e.$slots, "watermark", x(b({ isPrinting: D(fn) || D(pn) || Qt.value || $t.value })), void 0, !0)])) : _("", !0),
|
|
1573
|
+
y("div", { id: `legend-bottom-${M.value}` }, null, 8, Dt),
|
|
1574
|
+
qt.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (C(), g(De, {
|
|
1563
1575
|
key: 7,
|
|
1564
|
-
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1565
|
-
}, [
|
|
1576
|
+
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${M.value}` : `#legend-bottom-${M.value}`
|
|
1577
|
+
}, [y("div", {
|
|
1566
1578
|
ref_key: "chartLegend",
|
|
1567
|
-
ref:
|
|
1568
|
-
}, [
|
|
1569
|
-
key: `legend_${
|
|
1570
|
-
legendSet:
|
|
1571
|
-
config:
|
|
1572
|
-
id: `treemap_legend_${
|
|
1579
|
+
ref: Bt
|
|
1580
|
+
}, [T(e.$slots, "legend", { legend: or.value }, () => [L.value.style.chart.legend.show ? (C(), g(Ce, {
|
|
1581
|
+
key: `legend_${Gt.value}`,
|
|
1582
|
+
legendSet: or.value,
|
|
1583
|
+
config: sr.value,
|
|
1584
|
+
id: `treemap_legend_${M.value}`,
|
|
1573
1585
|
isCursorPointer: R.value,
|
|
1574
|
-
onClickMarker: t[1] ||= ({ legend: e }) =>
|
|
1586
|
+
onClickMarker: t[1] ||= ({ legend: e }) => ur(e)
|
|
1575
1587
|
}, {
|
|
1576
|
-
item:
|
|
1588
|
+
item: k(({ legend: e, index: t }) => [D(an) ? _("", !0) : (C(), v("div", {
|
|
1577
1589
|
key: 0,
|
|
1578
|
-
onClick: (t) =>
|
|
1579
|
-
style:
|
|
1580
|
-
},
|
|
1581
|
-
legendToggle:
|
|
1590
|
+
onClick: (t) => ur(e),
|
|
1591
|
+
style: S(`opacity:${N.value.includes(e.id) ? .5 : 1}`)
|
|
1592
|
+
}, ze(e.display), 13, Ot))]),
|
|
1593
|
+
legendToggle: k(() => [or.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !D(an) ? (C(), g(ye, {
|
|
1582
1594
|
key: 0,
|
|
1583
1595
|
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1584
1596
|
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
1585
1597
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
1586
1598
|
checked: N.value.length > 0,
|
|
1587
1599
|
isCursorPointer: R.value,
|
|
1588
|
-
onToggle:
|
|
1600
|
+
onToggle: lr
|
|
1589
1601
|
}, null, 8, [
|
|
1590
1602
|
"backgroundColor",
|
|
1591
1603
|
"color",
|
|
1592
1604
|
"fontSize",
|
|
1593
1605
|
"checked",
|
|
1594
1606
|
"isCursorPointer"
|
|
1595
|
-
])) :
|
|
1607
|
+
])) : _("", !0)]),
|
|
1596
1608
|
_: 1
|
|
1597
1609
|
}, 8, [
|
|
1598
1610
|
"legendSet",
|
|
1599
1611
|
"config",
|
|
1600
1612
|
"id",
|
|
1601
1613
|
"isCursorPointer"
|
|
1602
|
-
])) :
|
|
1603
|
-
e.$slots.source ? (
|
|
1614
|
+
])) : _("", !0)], !0)], 512)], 8, ["to"])) : _("", !0),
|
|
1615
|
+
e.$slots.source ? (C(), v("div", {
|
|
1604
1616
|
key: 8,
|
|
1605
1617
|
ref_key: "source",
|
|
1606
|
-
ref:
|
|
1618
|
+
ref: Vt,
|
|
1607
1619
|
dir: "auto"
|
|
1608
|
-
}, [
|
|
1609
|
-
|
|
1620
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
1621
|
+
Ae(D(Xe), {
|
|
1610
1622
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
1611
|
-
show: B.value.showTooltip &&
|
|
1623
|
+
show: B.value.showTooltip && Ft.value,
|
|
1612
1624
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
1613
1625
|
color: L.value.style.chart.tooltip.color,
|
|
1614
1626
|
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
@@ -1620,19 +1632,19 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1620
1632
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
1621
1633
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
1622
1634
|
parent: P.value,
|
|
1623
|
-
content:
|
|
1624
|
-
isFullscreen:
|
|
1625
|
-
isCustom:
|
|
1635
|
+
content: It.value,
|
|
1636
|
+
isFullscreen: Lt.value,
|
|
1637
|
+
isCustom: D(d)(L.value.style.chart.tooltip.customFormat),
|
|
1626
1638
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
1627
1639
|
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
1628
1640
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
1629
1641
|
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1630
|
-
isA11yMode:
|
|
1631
|
-
a11yPosition:
|
|
1642
|
+
isA11yMode: tn.value === "keyboard",
|
|
1643
|
+
a11yPosition: en.value
|
|
1632
1644
|
}, {
|
|
1633
|
-
"tooltip-before":
|
|
1634
|
-
tooltip:
|
|
1635
|
-
"tooltip-after":
|
|
1645
|
+
"tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(b({ ...hr.value })), void 0, !0)]),
|
|
1646
|
+
tooltip: k(() => [T(e.$slots, "tooltip", x(b({ ...hr.value })), void 0, !0)]),
|
|
1647
|
+
"tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(b({ ...hr.value })), void 0, !0)]),
|
|
1636
1648
|
_: 3
|
|
1637
1649
|
}, 8, [
|
|
1638
1650
|
"teleportTo",
|
|
@@ -1658,30 +1670,30 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1658
1670
|
"isA11yMode",
|
|
1659
1671
|
"a11yPosition"
|
|
1660
1672
|
]),
|
|
1661
|
-
|
|
1673
|
+
Nt.value && L.value.userOptions.buttons.table ? (C(), g(Re(Wr.value.component), Me({ key: 9 }, Wr.value.props, {
|
|
1662
1674
|
ref_key: "tableUnit",
|
|
1663
|
-
ref:
|
|
1664
|
-
onClose:
|
|
1665
|
-
}),
|
|
1666
|
-
content:
|
|
1667
|
-
key: `table_${
|
|
1668
|
-
colNames:
|
|
1669
|
-
head:
|
|
1670
|
-
body:
|
|
1671
|
-
config:
|
|
1672
|
-
title: L.value.table.useDialog ? "" :
|
|
1675
|
+
ref: Jt,
|
|
1676
|
+
onClose: Gr
|
|
1677
|
+
}), Oe({
|
|
1678
|
+
content: k(() => [(C(), g(D(Ke), {
|
|
1679
|
+
key: `table_${Wt.value}`,
|
|
1680
|
+
colNames: vr.value.colNames,
|
|
1681
|
+
head: vr.value.head,
|
|
1682
|
+
body: vr.value.body,
|
|
1683
|
+
config: vr.value.config,
|
|
1684
|
+
title: L.value.table.useDialog ? "" : Wr.value.title,
|
|
1673
1685
|
withCloseButton: !L.value.table.useDialog,
|
|
1674
1686
|
isCursorPointer: R.value,
|
|
1675
|
-
onClose:
|
|
1687
|
+
onClose: Gr
|
|
1676
1688
|
}, {
|
|
1677
|
-
th:
|
|
1689
|
+
th: k(({ th: e }) => [y("div", {
|
|
1678
1690
|
innerHTML: e,
|
|
1679
1691
|
style: {
|
|
1680
1692
|
display: "flex",
|
|
1681
1693
|
"align-items": "center"
|
|
1682
1694
|
}
|
|
1683
|
-
}, null, 8,
|
|
1684
|
-
td:
|
|
1695
|
+
}, null, 8, kt)]),
|
|
1696
|
+
td: k(({ td: e }) => [ke(ze(e.name || e), 1)]),
|
|
1685
1697
|
_: 1
|
|
1686
1698
|
}, 8, [
|
|
1687
1699
|
"colNames",
|
|
@@ -1695,24 +1707,24 @@ var A = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot =
|
|
|
1695
1707
|
_: 2
|
|
1696
1708
|
}, [L.value.table.useDialog ? {
|
|
1697
1709
|
name: "title",
|
|
1698
|
-
fn:
|
|
1710
|
+
fn: k(() => [ke(ze(Wr.value.title), 1)]),
|
|
1699
1711
|
key: "0"
|
|
1700
1712
|
} : void 0, L.value.table.useDialog ? {
|
|
1701
1713
|
name: "actions",
|
|
1702
|
-
fn:
|
|
1714
|
+
fn: k(() => [y("button", {
|
|
1703
1715
|
tabindex: "0",
|
|
1704
1716
|
class: "vue-ui-user-options-button",
|
|
1705
|
-
onClick: t[2] ||= (e) =>
|
|
1706
|
-
style:
|
|
1707
|
-
}, [
|
|
1717
|
+
onClick: t[2] ||= (e) => _r(L.value.userOptions.callbacks.csv),
|
|
1718
|
+
style: S({ cursor: R.value ? "pointer" : "default" })
|
|
1719
|
+
}, [Ae(_e, {
|
|
1708
1720
|
name: "fileCsv",
|
|
1709
|
-
stroke:
|
|
1721
|
+
stroke: Wr.value.props.color
|
|
1710
1722
|
}, null, 8, ["stroke"])], 4)]),
|
|
1711
1723
|
key: "1"
|
|
1712
|
-
} : void 0]), 1040)) :
|
|
1713
|
-
|
|
1714
|
-
], 46,
|
|
1724
|
+
} : void 0]), 1040)) : _("", !0),
|
|
1725
|
+
T(e.$slots, "skeleton", {}, () => [D(an) ? (C(), g(ce, { key: 0 })) : _("", !0)], !0)
|
|
1726
|
+
], 46, rt));
|
|
1715
1727
|
}
|
|
1716
|
-
}, [["__scopeId", "data-v-
|
|
1728
|
+
}, [["__scopeId", "data-v-f5f2d850"]]);
|
|
1717
1729
|
//#endregion
|
|
1718
|
-
export {
|
|
1730
|
+
export { j as n, jt as t };
|