vue-data-ui 3.22.10 → 3.22.12
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-Ku6rQ87g.js → Arrow-DKx74WtM.js} +1 -1
- package/dist/{BaseDraggableDialog-CdkCqtag.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
- package/dist/{BaseIcon-CDTIUIKV.js → BaseIcon-CP5RWnqt.js} +1 -1
- package/dist/{BaseLegendToggle-BrQ2OlzI.js → BaseLegendToggle-DsWphmIb.js} +1 -1
- package/dist/{BaseZoomControls-CkEX0292.js → BaseZoomControls-C9_ygNN4.js} +2 -2
- package/dist/{ColorPicker-C959ZIW9.js → ColorPicker-3N_HVgXs.js} +2 -2
- package/dist/{DataTable-ByZy5gt1.js → DataTable-DzPEVvSo.js} +2 -2
- package/dist/{Legend-5VQGLnmx.js → Legend-C0xAnJdO.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Bd8OzTqw.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
- package/dist/{PackageVersion-BoTvk0i5.js → PackageVersion-Di3tpYst.js} +1 -1
- package/dist/{PenAndPaper-CLaZJl6K.js → PenAndPaper-CSMVXpg2.js} +3 -3
- package/dist/{Shape-B5ksaGa1.js → Shape-BfnXr1nJ.js} +1 -1
- package/dist/Slicer-C6qNUmZ4.js +1149 -0
- package/dist/SlicerPreview-Cw6WMVhG.js +1689 -0
- package/dist/{SparkTooltip-CbYYc-xb.js → SparkTooltip-uoUiL_P8.js} +1 -1
- package/dist/{Title-Cr3jP7Qd.js → Title-BuPs74IB.js} +1 -1
- package/dist/{Tooltip-CDbLl3TD.js → Tooltip-CA1rtSyl.js} +1 -1
- package/dist/{UserOptions-BUQOnoPR.js → UserOptions-DzAFK9cY.js} +442 -441
- 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-COPbGrdd.js → dom-to-png-BdAFKZQg.js} +1 -1
- package/dist/{exposedLib-CZbtc2a6.js → exposedLib-Ciw6TGtP.js} +1 -1
- package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
- package/dist/{img-CNdXiUfZ.js → img-Bikk1dGb.js} +1 -1
- package/dist/{labelUtils-JaoYKi2N.js → labelUtils-BUhssos9.js} +1 -1
- package/dist/{lib-CnHx5WfV.js → lib-CFm_J26b.js} +3 -3
- package/dist/{package-BRBLwZUc.js → package-Bmet7oRZ.js} +1 -1
- package/dist/{pdf-CEMzBeuV.js → pdf-zmz3l2uy.js} +1 -1
- package/dist/{render-common-DJXFRGhU.js → render-common-Bdolvm-Q.js} +2 -2
- 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/composables.d.ts +28 -11
- package/dist/types/vue-data-ui.d.ts +27 -9
- package/dist/{useAutoSizeLabelsInsideViewbox-BUPt2iaP.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/useMountedDelay-BAjrhRJb.js +14 -0
- package/dist/{useNestedProp-D8NuRneO.js → useNestedProp-BY6DNN3i.js} +1 -1
- package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
- package/dist/{usePrinter-B-X_Pub0.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 +3 -3
- package/dist/{vue-data-ui-Bx_8d3b_.js → vue-data-ui-DfU5hAaT.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/{vue-ui-3d-bar-CfUfbpSE.js → vue-ui-3d-bar--HLw40qY.js} +9 -10
- package/dist/vue-ui-accordion-UA88lv4d.js +81 -0
- package/dist/{vue-ui-age-pyramid-DD-4y5Jd.js → vue-ui-age-pyramid-Bd_ubvoh.js} +9 -10
- package/dist/{vue-ui-annotator-BvGE3lzE.js → vue-ui-annotator-q3ZKx6ua.js} +15 -9
- package/dist/{vue-ui-bullet-DYOdbaO2.js → vue-ui-bullet-CM2jgN74.js} +10 -11
- package/dist/{vue-ui-bump-B8fJoxHF.js → vue-ui-bump-DvShTelE.js} +10 -11
- package/dist/{vue-ui-candlestick-BUP1JoNs.js → vue-ui-candlestick-CK9Na9KB.js} +474 -474
- package/dist/{vue-ui-carousel-table-D-Bwhydt.js → vue-ui-carousel-table-BxORSyv1.js} +5 -5
- package/dist/{vue-ui-chestnut-C2VK2NEx.js → vue-ui-chestnut-tW2ZnqwW.js} +11 -11
- package/dist/{vue-ui-chord-AA-QjUQI.js → vue-ui-chord-DqKCW4Pl.js} +11 -12
- package/dist/{vue-ui-circle-pack-CdBFGYOK.js → vue-ui-circle-pack-kmzEbu7G.js} +21 -25
- package/dist/{vue-ui-cursor-Cm_J_5Gk.js → vue-ui-cursor-SvEAxNKD.js} +4 -4
- package/dist/{vue-ui-dag-CgRph4-n.js → vue-ui-dag-DZGUw98x.js} +16 -14
- package/dist/{vue-ui-dashboard-BuPw5QjB.js → vue-ui-dashboard-BzzECKaL.js} +71 -72
- package/dist/{vue-ui-digits-ClrukmcB.js → vue-ui-digits-CKWMJqU_.js} +4 -4
- package/dist/{vue-ui-donut-Bc-EPZvu.js → vue-ui-donut-BWbuCT47.js} +17 -18
- package/dist/{vue-ui-donut-DtQCrMKL.js → vue-ui-donut-DjdH53Zj.js} +3 -3
- package/dist/{vue-ui-donut-evolution-DHkiY-BD.js → vue-ui-donut-evolution-CJNnXg31.js} +357 -362
- package/dist/{vue-ui-dumbbell-BlHEH4Mw.js → vue-ui-dumbbell-BUyfJOxH.js} +13 -13
- package/dist/{vue-ui-flow-PjwAW2tY.js → vue-ui-flow-C39C5dvl.js} +10 -11
- package/dist/{vue-ui-funnel-DojI09FV.js → vue-ui-funnel-_aMNVUkP.js} +9 -10
- package/dist/{vue-ui-galaxy-txYIK_LG.js → vue-ui-galaxy-Dng0GSjQ.js} +12 -13
- package/dist/{vue-ui-gauge-CoL0OzSd.js → vue-ui-gauge-BmZPLW3e.js} +10 -11
- package/dist/{vue-ui-geo-yuL-_sqF.js → vue-ui-geo-BOx-pK_5.js} +15 -14
- package/dist/{vue-ui-gizmo-CbC5zV3K.js → vue-ui-gizmo-BCGwhNna.js} +4 -4
- package/dist/{vue-ui-heatmap-CwqsZIsR.js → vue-ui-heatmap-BORjgllw.js} +12 -13
- package/dist/{vue-ui-history-plot-CuWssH-D.js → vue-ui-history-plot-DY3fqgIY.js} +11 -12
- package/dist/{vue-ui-horizontal-bar-Dyje3GND.js → vue-ui-horizontal-bar-C8f4PisL.js} +17 -17
- package/dist/{vue-ui-kpi-BdYenScF.js → vue-ui-kpi-BdhXSBIJ.js} +4 -4
- package/dist/{vue-ui-mini-loader-BbwE3vBT.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
- package/dist/{vue-ui-molecule-BBh31vmd.js → vue-ui-molecule-PlmDykKX.js} +9 -8
- package/dist/{vue-ui-mood-radar-B_6GFlaR.js → vue-ui-mood-radar-C9LTAt_c.js} +10 -11
- package/dist/{vue-ui-nested-donuts-BWq-At5Y.js → vue-ui-nested-donuts-F5OXPxvU.js} +12 -13
- package/dist/{vue-ui-onion-BwGbSE-6.js → vue-ui-onion-D1-j-pvW.js} +13 -14
- package/dist/{vue-ui-parallel-coordinate-plot-Bh9hNoqf.js → vue-ui-parallel-coordinate-plot-Vb_QjRp5.js} +303 -307
- package/dist/{vue-ui-quadrant-B72Y4Zuw.js → vue-ui-quadrant-DMFawnHm.js} +19 -18
- package/dist/{vue-ui-quick-chart-B3LF2ViM.js → vue-ui-quick-chart-BF5fKxY2.js} +606 -632
- package/dist/{vue-ui-radar-4v_E8oGX.js → vue-ui-radar-D91pCqhn.js} +12 -13
- package/dist/{vue-ui-rating-CzLGCFWK.js → vue-ui-rating-DbxK-ftN.js} +3 -3
- package/dist/{vue-ui-relation-circle-B_8dyIv2.js → vue-ui-relation-circle-DfxvnOs6.js} +14 -21
- package/dist/{vue-ui-ridgeline-BArLhskj.js → vue-ui-ridgeline-BOL0m1mR.js} +13 -14
- package/dist/{vue-ui-rings-Csn5BgLk.js → vue-ui-rings-4RxAaMo4.js} +13 -14
- package/dist/vue-ui-scatter-Bs1wek00.js +2409 -0
- package/dist/{vue-ui-skeleton-KeIPGp9U.js → vue-ui-skeleton-B84nELF_.js} +4 -4
- package/dist/{vue-ui-smiley-C1mYDh4R.js → vue-ui-smiley-Da2jgkb7.js} +3 -3
- package/dist/{vue-ui-spark-trend-EqCqmHmU.js → vue-ui-spark-trend-BR-qkwJ6.js} +6 -7
- package/dist/{vue-ui-sparkbar-BPh45vBP.js → vue-ui-sparkbar-DghCbhj2.js} +51 -54
- package/dist/{vue-ui-sparkgauge-CtouPcyW.js → vue-ui-sparkgauge-DbeTbrxx.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-D4sI0DHN.js → vue-ui-sparkhistogram-B2xSQyOp.js} +7 -8
- package/dist/{vue-ui-sparkline-BDFZ78Fz.js → vue-ui-sparkline-D3xRMcy9.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CbTXIfxm.js → vue-ui-sparkstackbar-D8z8fVFZ.js} +5 -5
- package/dist/vue-ui-stackbar-B63-UgSr.js +2322 -0
- package/dist/{vue-ui-stackline-CzfXl5ah.js → vue-ui-stackline-Dukmj3yT.js} +588 -586
- package/dist/vue-ui-strip-plot-Bws0p7tP.js +1736 -0
- package/dist/{vue-ui-table-BAKkFXki.js → vue-ui-table-dxCS6ztG.js} +12 -11
- package/dist/{vue-ui-table-heatmap-CUMxqHKK.js → vue-ui-table-heatmap-CSI482KG.js} +9 -15
- package/dist/{vue-ui-table-sparkline-BVTm16fd.js → vue-ui-table-sparkline-C-XgNV1l.js} +10 -8
- package/dist/{vue-ui-thermometer-CGeEW1KV.js → vue-ui-thermometer-BUKge0w8.js} +10 -11
- package/dist/{vue-ui-timer-Bz7EnsM1.js → vue-ui-timer-CCd3pznw.js} +7 -8
- package/dist/{vue-ui-tiremarks-IOqtk_Rr.js → vue-ui-tiremarks-CG5X5rgi.js} +9 -10
- package/dist/{vue-ui-treemap-JxNNtb7v.js → vue-ui-treemap-CNVB8Ng6.js} +501 -492
- package/dist/{vue-ui-waffle-D34mcJWi.js → vue-ui-waffle-DH5Rf1WM.js} +13 -14
- package/dist/{vue-ui-wheel-B_qEhyvk.js → vue-ui-wheel-BzEkxqDz.js} +10 -11
- package/dist/{vue-ui-word-cloud-TtObhd91.js → vue-ui-word-cloud-DbfGZ-hb.js} +15 -12
- package/dist/{vue-ui-world-R9o00A6c.js → vue-ui-world-CL6KcPcv.js} +10 -10
- package/dist/{vue-ui-xy-Do34-UbE.js → vue-ui-xy-4Xp7UoLs.js} +9 -9
- package/dist/{vue-ui-xy-CUt6sU1s.js → vue-ui-xy-BAmxfSSw.js} +1269 -1266
- package/dist/{vue-ui-xy-canvas-C6eRRH--.js → vue-ui-xy-canvas-7YSYRdwr.js} +27 -27
- package/package.json +3 -3
- package/dist/Slicer-WsWTQPKt.js +0 -1150
- package/dist/SlicerPreview-3n516NyE.js +0 -1688
- package/dist/useResponsive-BfnK0KxU.js +0 -19
- package/dist/vue-ui-accordion-Oo3IsX3-.js +0 -81
- package/dist/vue-ui-scatter-BBaOx94M.js +0 -2422
- package/dist/vue-ui-stackbar-nMXIY9x8.js +0 -2339
- package/dist/vue-ui-strip-plot-BCf5nthl.js +0 -1736
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
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-
|
|
3
|
-
import { t as ae } from "./useConfig-
|
|
4
|
-
import { t as oe } from "./usePrinter-
|
|
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
5
|
import { n as se, t as ce } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
-
import { t as le } from "./useSvgExport-
|
|
7
|
-
import { t as ue } from "./useNestedProp-
|
|
6
|
+
import { t as le } from "./useSvgExport-Ba9qBr9M.js";
|
|
7
|
+
import { t as ue } from "./useNestedProp-BY6DNN3i.js";
|
|
8
8
|
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
-
import { t as fe } from "./img-
|
|
10
|
-
import { n as pe } from "./Title-
|
|
9
|
+
import { t as fe } from "./img-Bikk1dGb.js";
|
|
10
|
+
import { n as pe } from "./Title-BuPs74IB.js";
|
|
11
11
|
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as _e } from "./BaseIcon-CDTIUIKV.js";
|
|
12
|
+
import { l as he, t as ge } from "./useResponsive-ZtArZtUf.js";
|
|
13
|
+
import { t as _e } from "./BaseIcon-CP5RWnqt.js";
|
|
15
14
|
import { t as ve } from "./DefGrad-DVBqDjhO.js";
|
|
16
|
-
import { t as ye } from "./BaseLegendToggle-
|
|
15
|
+
import { t as ye } from "./BaseLegendToggle-DsWphmIb.js";
|
|
17
16
|
import { t as be } from "./A11yDataTable-DdRsVULz.js";
|
|
18
17
|
import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
18
|
import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
-
import { t as Ce } from "./Legend-
|
|
19
|
+
import { t as Ce } from "./Legend-C0xAnJdO.js";
|
|
21
20
|
import { t as we } from "./usePrefersMotion-BC-CsqR1.js";
|
|
22
21
|
import { t as Te } from "./usePanZoom-CYU3B4T3.js";
|
|
23
22
|
import { t as Ee } from "./vue_ui_treemap-DoEtkRN6.js";
|
|
24
|
-
import { Fragment as
|
|
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
25
|
function Ge(e, t) {
|
|
27
26
|
let n = e.length;
|
|
@@ -162,28 +161,28 @@ function A(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 rt = /* @__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 rt = /* @__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: {
|
|
@@ -257,15 +257,15 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
257
257
|
"copyAlt"
|
|
258
258
|
],
|
|
259
259
|
setup(e, { expose: me, emit: Ge }) {
|
|
260
|
-
Ve((e) => ({
|
|
261
|
-
let Ke =
|
|
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-UA88lv4d.js").then((e) => e.n)), Xe = je(() => import("./Tooltip-CA1rtSyl.js")), Ze = je(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), Qe = je(() => import("./PackageVersion-Di3tpYst.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
262
|
Ie(() => {
|
|
263
|
-
|
|
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,10 +278,10 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
278
278
|
} }
|
|
279
279
|
},
|
|
280
280
|
userConfig: L.value.skeletonConfig ?? {}
|
|
281
|
-
})), { loading:
|
|
281
|
+
})), { loading: an, FINAL_DATASET: on, manualLoading: sn } = se({
|
|
282
282
|
...Be(A),
|
|
283
283
|
FINAL_CONFIG: L,
|
|
284
|
-
prepareConfig:
|
|
284
|
+
prepareConfig: dn,
|
|
285
285
|
skeletonDataset: A.config?.skeletonDataset ?? [{
|
|
286
286
|
name: "_",
|
|
287
287
|
value: 53,
|
|
@@ -319,10 +319,10 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
319
319
|
}],
|
|
320
320
|
skeletonConfig: te({
|
|
321
321
|
defaultConfig: L.value,
|
|
322
|
-
userConfig:
|
|
322
|
+
userConfig: rn.value
|
|
323
323
|
})
|
|
324
|
-
}), { userOptionsVisible:
|
|
325
|
-
function
|
|
324
|
+
}), { userOptionsVisible: cn, setUserOptionsVisibility: ln, keepUserOptionState: un } = xe({ config: L.value }), { svgRef: z } = Se({ config: L.value.style.chart.title });
|
|
325
|
+
function dn() {
|
|
326
326
|
let e = ue({
|
|
327
327
|
userConfig: A.config,
|
|
328
328
|
defaultConfig: et
|
|
@@ -342,13 +342,13 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
O(() => A.config, (e) => {
|
|
345
|
-
|
|
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
|
|
@@ -360,21 +360,21 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
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 rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
386
386
|
vbHeight: n - r,
|
|
387
387
|
offsetY: r
|
|
388
388
|
};
|
|
389
|
-
}), H = w(l(
|
|
389
|
+
}), H = w(l(on.value)), U = w(H.value), xn = E(/* @__PURE__ */ new Map());
|
|
390
390
|
O([H, () => L.value], () => {
|
|
391
|
-
|
|
391
|
+
Xt.value = null, Zt.value = /* @__PURE__ */ new Map();
|
|
392
392
|
}, { deep: !0 }), O(() => N.value, () => {
|
|
393
|
-
|
|
394
|
-
}, { deep: !0 }), O([() =>
|
|
395
|
-
|
|
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
399
|
e.id ||= o(), e.sourceColor === void 0 && (e.sourceColor = p(e.color) || null);
|
|
400
|
-
let n = e.sourceColor ||
|
|
401
|
-
n = p(n),
|
|
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
406
|
n.id ||= o(), n.parentId = e.id, n.sourceColor === void 0 && (n.sourceColor = p(n.color) || null);
|
|
407
407
|
let r = n.sourceColor || t;
|
|
408
|
-
n.color = r,
|
|
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 rt = /* @__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
|
-
O(() =>
|
|
435
|
-
H.value = l(
|
|
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 = E(null),
|
|
441
|
+
let W = E(null), En = E(null);
|
|
442
442
|
Ie(() => {
|
|
443
|
-
|
|
443
|
+
qt.value = !0, On();
|
|
444
444
|
});
|
|
445
|
-
let
|
|
446
|
-
function
|
|
445
|
+
let Dn = h(() => L.value.debug);
|
|
446
|
+
function On() {
|
|
447
447
|
if (t(A.dataset) && f({
|
|
448
448
|
componentName: "VueUiTreemap",
|
|
449
449
|
type: "dataset",
|
|
450
|
-
debug:
|
|
451
|
-
}),
|
|
450
|
+
debug: Dn.value
|
|
451
|
+
}), Sn(H.value), t(A.dataset) || (sn.value = L.value.loading), L.value.responsive) {
|
|
452
452
|
let e = he(() => {
|
|
453
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
467
|
Fe(() => {
|
|
468
|
-
W.value && (
|
|
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: p(e.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 -
|
|
485
|
+
function Nn(e, t, n) {
|
|
486
|
+
let i = L.value.style.chart.layout.rects.colorRatio - Mn(t, n);
|
|
487
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 o = e.sourceColor || p(e.color) || p(t) ||
|
|
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,14 +519,14 @@ var rt = /* @__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;
|
|
@@ -540,19 +540,19 @@ var rt = /* @__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 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) ||
|
|
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
557
|
...a,
|
|
558
558
|
id: e.id || o(),
|
|
@@ -561,7 +561,7 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
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 rt = /* @__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,7 +603,7 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
600
603
|
lineHeight: i
|
|
601
604
|
};
|
|
602
605
|
}
|
|
603
|
-
function
|
|
606
|
+
function Kn(e, t) {
|
|
604
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,
|
|
@@ -611,33 +614,33 @@ var rt = /* @__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 rt = /* @__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 rt = /* @__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 rt = /* @__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 rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
731
734
|
});
|
|
732
735
|
}
|
|
733
736
|
return e;
|
|
734
|
-
}), Z = E(null),
|
|
737
|
+
}), Z = E(null), or = h(() => H.value.map((e, t) => ({
|
|
735
738
|
...e,
|
|
736
|
-
color: p(e.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,70 +744,70 @@ var rt = /* @__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
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 < A.dataset.length - 1 && N.value.push(e.id),
|
|
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
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 {
|
|
@@ -817,23 +820,23 @@ var rt = /* @__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
|
|
834
|
+
function _r(e = null) {
|
|
832
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] /
|
|
839
|
+
[isNaN(Q.value.body[t] / An.value) ? "-" : Q.value.body[t] / An.value * 100]
|
|
837
840
|
]), n = i([
|
|
838
841
|
[L.value.style.chart.title.text],
|
|
839
842
|
[L.value.style.chart.title.subtitle.text],
|
|
@@ -849,7 +852,7 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
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,
|
|
@@ -868,8 +871,8 @@ var rt = /* @__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,28 +897,28 @@ var rt = /* @__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,
|
|
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);
|
|
919
922
|
O([
|
|
920
923
|
() => J.value.x,
|
|
921
924
|
() => J.value.y,
|
|
@@ -923,7 +926,7 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
923
926
|
() => J.value.height
|
|
924
927
|
], () => {
|
|
925
928
|
Ne(() => {
|
|
926
|
-
|
|
929
|
+
Ar({
|
|
927
930
|
x: J.value.x,
|
|
928
931
|
y: J.value.y,
|
|
929
932
|
width: Math.max(10, J.value.width),
|
|
@@ -931,33 +934,33 @@ var rt = /* @__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
965
|
let { width: t, height: n } = P.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
963
966
|
domElement: P.value,
|
|
@@ -974,7 +977,7 @@ var rt = /* @__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
983
|
component: e ? $e : Je,
|
|
@@ -984,7 +987,7 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
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
|
|
@@ -1006,50 +1009,50 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
1006
1009
|
};
|
|
1007
1010
|
});
|
|
1008
1011
|
O(() => B.value.showTable, (e) => {
|
|
1009
|
-
L.value.table.show || (e && L.value.table.useDialog &&
|
|
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 rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
1057
1060
|
lineHeight: n * 1.1
|
|
1058
1061
|
};
|
|
1059
1062
|
}
|
|
1060
|
-
function
|
|
1061
|
-
return Hn(e, Kr(e, t).fontSize);
|
|
1062
|
-
}
|
|
1063
|
-
function Jr(e) {
|
|
1063
|
+
function ei(e) {
|
|
1064
1064
|
return ne(e.color ?? L.value.style.chart.backgroundColor);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
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;
|
|
1070
|
+
}
|
|
1071
|
+
function ni() {
|
|
1072
|
+
return Number(L.value.style.chart.layout.labels.hideUnderProportion) === 0;
|
|
1073
|
+
}
|
|
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 rt = /* @__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
|
-
})),
|
|
1181
|
+
let gi = h(() => ({
|
|
1182
|
+
headers: vr.value?.colNames ?? [],
|
|
1183
|
+
rows: vr.value?.body ?? []
|
|
1184
|
+
})), _i = h(() => L.value.style.chart.color);
|
|
1177
1185
|
return me({
|
|
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) => (C(),
|
|
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: Pe(`vue-data-ui-component vue-ui-treemap ${
|
|
1204
|
+
class: Pe(`vue-data-ui-component vue-ui-treemap ${Lt.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1197
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}`),
|
|
1198
|
-
id: `treemap_${
|
|
1199
|
-
onMouseenter: t[3] ||= () => D(
|
|
1200
|
-
onMouseleave: t[4] ||= () => D(
|
|
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,15 +1224,15 @@ var rt = /* @__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 ? (C(),
|
|
1227
|
+
])) : _("", !0),
|
|
1228
|
+
L.value.userOptions.buttons.annotator ? (C(), g(D(qe), {
|
|
1221
1229
|
key: 1,
|
|
1222
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
1237
|
"annotator-action-close": k(() => [T(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1230
1238
|
"annotator-action-color": k(({ color: t }) => [T(e.$slots, "annotator-action-color", x(b({ color: t })), void 0, !0)]),
|
|
@@ -1239,21 +1247,21 @@ var rt = /* @__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 ? (C(),
|
|
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:
|
|
1261
|
+
ref: zt,
|
|
1254
1262
|
style: S(`width:100%;background:${L.value.style.chart.backgroundColor};padding-bottom:6px`)
|
|
1255
|
-
}, [(C(),
|
|
1256
|
-
key: `title_${
|
|
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 rt = /* @__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: D(
|
|
1276
|
-
isImaging: D(
|
|
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,31 +1291,31 @@ var rt = /* @__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: D(
|
|
1301
|
-
onGenerateCsv:
|
|
1302
|
-
onGenerateImage:
|
|
1303
|
-
onGenerateSvg:
|
|
1304
|
-
onToggleTable:
|
|
1305
|
-
onToggleTooltip:
|
|
1306
|
-
onToggleAnnotator:
|
|
1307
|
-
onToggleZoom:
|
|
1308
|
-
onCopyAlt:
|
|
1309
|
-
style: S({ visibility: D(
|
|
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
1321
|
fn: k(({ isOpen: t, color: n }) => [T(e.$slots, "menuIcon", x(b({
|
|
@@ -1385,65 +1393,65 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
1385
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 ? (C(),
|
|
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
|
-
}, [(C(!0),
|
|
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: [Ue(We((e) => r === X.value.length - 1 ? void 0 :
|
|
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
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 ? (C(),
|
|
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"])])) : (C(),
|
|
1419
|
-
|
|
1420
|
-
(C(),
|
|
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
1431
|
xmlns: D(ie),
|
|
1424
|
-
"aria-describedby": `chart-instructions-${
|
|
1432
|
+
"aria-describedby": `chart-instructions-${M.value}`,
|
|
1425
1433
|
class: Pe({
|
|
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": D(
|
|
1431
|
-
loading: D(
|
|
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
1441
|
viewBox: `${D($).x} ${D($).y} ${D($).width <= 0 ? 10 : D($).width} ${D($).height <= 0 ? 10 : D($).height}`,
|
|
1434
|
-
style: S(`max-width:100%; overflow:${
|
|
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
|
-
(C(!0),
|
|
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)",
|
|
@@ -1456,54 +1464,58 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
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
|
-
(C(!0),
|
|
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: We((n) =>
|
|
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
1488
|
style: S(`opacity:${Z.value ? Z.value.id === e.id ? 1 : L.value.style.chart.layout.rects.selected.unselectedOpacity : 1}`),
|
|
1481
|
-
class: Pe(["vue-ui-treemap-rect",
|
|
1482
|
-
}, null, 46,
|
|
1483
|
-
(C(!0),
|
|
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
|
-
}, ze(
|
|
1506
|
-
e.$slots.rect ? (C(),
|
|
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,32 +1525,29 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
1513
1525
|
"pointer-events": "none",
|
|
1514
1526
|
overflow: "hidden"
|
|
1515
1527
|
}
|
|
1516
|
-
}, [
|
|
1517
|
-
key: 0,
|
|
1518
|
-
ref_for: !0
|
|
1519
|
-
}, {
|
|
1528
|
+
}, [y("div", Ct, [D(an) ? _("", !0) : T(e.$slots, "rect", Me({ ref_for: !0 }, {
|
|
1520
1529
|
rect: {
|
|
1521
1530
|
...t,
|
|
1522
1531
|
height: K(t),
|
|
1523
1532
|
width: q(t),
|
|
1524
|
-
isSelected: Z.value
|
|
1533
|
+
isSelected: !Z.value || Z.value.id === t.id
|
|
1525
1534
|
},
|
|
1526
|
-
shouldShow:
|
|
1527
|
-
fontSize:
|
|
1528
|
-
isZoom:
|
|
1535
|
+
shouldShow: zn(t) || $n.value,
|
|
1536
|
+
fontSize: Xn(t, n),
|
|
1537
|
+
isZoom: $n.value,
|
|
1529
1538
|
textColor: D(ne)(t.color)
|
|
1530
|
-
}), void 0, !0)])], 8,
|
|
1539
|
+
}), void 0, !0, 0)])], 8, St))]))), 128))])) : _("", !0)
|
|
1531
1540
|
]),
|
|
1532
1541
|
T(e.$slots, "svg", x(b({
|
|
1533
1542
|
svg: V.value,
|
|
1534
|
-
isZoom:
|
|
1543
|
+
isZoom: $n.value,
|
|
1535
1544
|
rect: Z.value,
|
|
1536
1545
|
config: L.value,
|
|
1537
|
-
isPrintingImg: D(
|
|
1538
|
-
isPrintingSvg:
|
|
1546
|
+
isPrintingImg: D(fn) || D(pn) || Qt.value,
|
|
1547
|
+
isPrintingSvg: $t.value
|
|
1539
1548
|
})), void 0, !0)
|
|
1540
|
-
], 46,
|
|
1541
|
-
D(
|
|
1549
|
+
], 46, ft)),
|
|
1550
|
+
D(kr) ? (C(), v("div", wt, [T(e.$slots, "reset-action", { reset: D(Or) }, () => [y("button", {
|
|
1542
1551
|
"data-cy-reset": "",
|
|
1543
1552
|
tabindex: "0",
|
|
1544
1553
|
role: "button",
|
|
@@ -1547,68 +1556,68 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
1547
1556
|
background: L.value.style.chart.backgroundColor,
|
|
1548
1557
|
cursor: R.value ? "pointer" : "default"
|
|
1549
1558
|
}),
|
|
1550
|
-
onClick: t[0] ||= (e) => D(
|
|
1551
|
-
}, [
|
|
1559
|
+
onClick: t[0] ||= (e) => D(Or)(!0)
|
|
1560
|
+
}, [Ae(_e, {
|
|
1552
1561
|
name: "refresh",
|
|
1553
1562
|
stroke: L.value.style.chart.color
|
|
1554
|
-
}, null, 8, ["stroke"])], 4)], !0)])) :
|
|
1555
|
-
e.$slots.hint ? (C(),
|
|
1563
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : _("", !0),
|
|
1564
|
+
e.$slots.hint ? (C(), v("div", Tt, [T(e.$slots, "hint", x(b({
|
|
1556
1565
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
1557
|
-
isVisible:
|
|
1558
|
-
})), void 0, !0)])) :
|
|
1566
|
+
isVisible: nn.value
|
|
1567
|
+
})), void 0, !0)])) : _("", !0)
|
|
1559
1568
|
]),
|
|
1560
|
-
e.$slots.watermark ? (C(),
|
|
1561
|
-
|
|
1562
|
-
|
|
1569
|
+
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),
|
|
1570
|
+
y("div", { id: `legend-bottom-${M.value}` }, null, 8, Dt),
|
|
1571
|
+
qt.value && (L.value.style.chart.legend.show || e.$slots.legend) ? (C(), g(De, {
|
|
1563
1572
|
key: 7,
|
|
1564
|
-
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1565
|
-
}, [
|
|
1573
|
+
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${M.value}` : `#legend-bottom-${M.value}`
|
|
1574
|
+
}, [y("div", {
|
|
1566
1575
|
ref_key: "chartLegend",
|
|
1567
|
-
ref:
|
|
1568
|
-
}, [T(e.$slots, "legend", { legend:
|
|
1569
|
-
key: `legend_${
|
|
1570
|
-
legendSet:
|
|
1571
|
-
config:
|
|
1572
|
-
id: `treemap_legend_${
|
|
1576
|
+
ref: Bt
|
|
1577
|
+
}, [T(e.$slots, "legend", { legend: or.value }, () => [L.value.style.chart.legend.show ? (C(), g(Ce, {
|
|
1578
|
+
key: `legend_${Gt.value}`,
|
|
1579
|
+
legendSet: or.value,
|
|
1580
|
+
config: sr.value,
|
|
1581
|
+
id: `treemap_legend_${M.value}`,
|
|
1573
1582
|
isCursorPointer: R.value,
|
|
1574
|
-
onClickMarker: t[1] ||= ({ legend: e }) =>
|
|
1583
|
+
onClickMarker: t[1] ||= ({ legend: e }) => ur(e)
|
|
1575
1584
|
}, {
|
|
1576
|
-
item: k(({ legend: e, index: t }) => [D(
|
|
1585
|
+
item: k(({ legend: e, index: t }) => [D(an) ? _("", !0) : (C(), v("div", {
|
|
1577
1586
|
key: 0,
|
|
1578
|
-
onClick: (t) =>
|
|
1587
|
+
onClick: (t) => ur(e),
|
|
1579
1588
|
style: S(`opacity:${N.value.includes(e.id) ? .5 : 1}`)
|
|
1580
|
-
}, ze(e.display), 13,
|
|
1581
|
-
legendToggle: k(() => [
|
|
1589
|
+
}, ze(e.display), 13, Ot))]),
|
|
1590
|
+
legendToggle: k(() => [or.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !D(an) ? (C(), g(ye, {
|
|
1582
1591
|
key: 0,
|
|
1583
1592
|
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1584
1593
|
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
1585
1594
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
1586
1595
|
checked: N.value.length > 0,
|
|
1587
1596
|
isCursorPointer: R.value,
|
|
1588
|
-
onToggle:
|
|
1597
|
+
onToggle: lr
|
|
1589
1598
|
}, null, 8, [
|
|
1590
1599
|
"backgroundColor",
|
|
1591
1600
|
"color",
|
|
1592
1601
|
"fontSize",
|
|
1593
1602
|
"checked",
|
|
1594
1603
|
"isCursorPointer"
|
|
1595
|
-
])) :
|
|
1604
|
+
])) : _("", !0)]),
|
|
1596
1605
|
_: 1
|
|
1597
1606
|
}, 8, [
|
|
1598
1607
|
"legendSet",
|
|
1599
1608
|
"config",
|
|
1600
1609
|
"id",
|
|
1601
1610
|
"isCursorPointer"
|
|
1602
|
-
])) :
|
|
1603
|
-
e.$slots.source ? (C(),
|
|
1611
|
+
])) : _("", !0)], !0)], 512)], 8, ["to"])) : _("", !0),
|
|
1612
|
+
e.$slots.source ? (C(), v("div", {
|
|
1604
1613
|
key: 8,
|
|
1605
1614
|
ref_key: "source",
|
|
1606
|
-
ref:
|
|
1615
|
+
ref: Vt,
|
|
1607
1616
|
dir: "auto"
|
|
1608
|
-
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) :
|
|
1609
|
-
|
|
1617
|
+
}, [T(e.$slots, "source", {}, void 0, !0)], 512)) : _("", !0),
|
|
1618
|
+
Ae(D(Xe), {
|
|
1610
1619
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
1611
|
-
show: B.value.showTooltip &&
|
|
1620
|
+
show: B.value.showTooltip && Ft.value,
|
|
1612
1621
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
1613
1622
|
color: L.value.style.chart.tooltip.color,
|
|
1614
1623
|
fontSize: L.value.style.chart.tooltip.fontSize,
|
|
@@ -1620,19 +1629,19 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
1620
1629
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
1621
1630
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
1622
1631
|
parent: P.value,
|
|
1623
|
-
content:
|
|
1624
|
-
isFullscreen:
|
|
1632
|
+
content: It.value,
|
|
1633
|
+
isFullscreen: Lt.value,
|
|
1625
1634
|
isCustom: D(d)(L.value.style.chart.tooltip.customFormat),
|
|
1626
1635
|
smooth: L.value.style.chart.tooltip.smooth,
|
|
1627
1636
|
backdropFilter: L.value.style.chart.tooltip.backdropFilter,
|
|
1628
1637
|
smoothForce: L.value.style.chart.tooltip.smoothForce,
|
|
1629
1638
|
smoothSnapThreshold: L.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1630
|
-
isA11yMode:
|
|
1631
|
-
a11yPosition:
|
|
1639
|
+
isA11yMode: tn.value === "keyboard",
|
|
1640
|
+
a11yPosition: en.value
|
|
1632
1641
|
}, {
|
|
1633
|
-
"tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(b({ ...
|
|
1634
|
-
tooltip: k(() => [T(e.$slots, "tooltip", x(b({ ...
|
|
1635
|
-
"tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(b({ ...
|
|
1642
|
+
"tooltip-before": k(() => [T(e.$slots, "tooltip-before", x(b({ ...hr.value })), void 0, !0)]),
|
|
1643
|
+
tooltip: k(() => [T(e.$slots, "tooltip", x(b({ ...hr.value })), void 0, !0)]),
|
|
1644
|
+
"tooltip-after": k(() => [T(e.$slots, "tooltip-after", x(b({ ...hr.value })), void 0, !0)]),
|
|
1636
1645
|
_: 3
|
|
1637
1646
|
}, 8, [
|
|
1638
1647
|
"teleportTo",
|
|
@@ -1658,30 +1667,30 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
1658
1667
|
"isA11yMode",
|
|
1659
1668
|
"a11yPosition"
|
|
1660
1669
|
]),
|
|
1661
|
-
|
|
1670
|
+
Nt.value && L.value.userOptions.buttons.table ? (C(), g(Re(Wr.value.component), Me({ key: 9 }, Wr.value.props, {
|
|
1662
1671
|
ref_key: "tableUnit",
|
|
1663
|
-
ref:
|
|
1664
|
-
onClose:
|
|
1665
|
-
}),
|
|
1666
|
-
content: k(() => [(C(),
|
|
1667
|
-
key: `table_${
|
|
1668
|
-
colNames:
|
|
1669
|
-
head:
|
|
1670
|
-
body:
|
|
1671
|
-
config:
|
|
1672
|
-
title: L.value.table.useDialog ? "" :
|
|
1672
|
+
ref: Jt,
|
|
1673
|
+
onClose: Gr
|
|
1674
|
+
}), Oe({
|
|
1675
|
+
content: k(() => [(C(), g(D(Ke), {
|
|
1676
|
+
key: `table_${Wt.value}`,
|
|
1677
|
+
colNames: vr.value.colNames,
|
|
1678
|
+
head: vr.value.head,
|
|
1679
|
+
body: vr.value.body,
|
|
1680
|
+
config: vr.value.config,
|
|
1681
|
+
title: L.value.table.useDialog ? "" : Wr.value.title,
|
|
1673
1682
|
withCloseButton: !L.value.table.useDialog,
|
|
1674
1683
|
isCursorPointer: R.value,
|
|
1675
|
-
onClose:
|
|
1684
|
+
onClose: Gr
|
|
1676
1685
|
}, {
|
|
1677
|
-
th: k(({ th: e }) => [
|
|
1686
|
+
th: k(({ th: e }) => [y("div", {
|
|
1678
1687
|
innerHTML: e,
|
|
1679
1688
|
style: {
|
|
1680
1689
|
display: "flex",
|
|
1681
1690
|
"align-items": "center"
|
|
1682
1691
|
}
|
|
1683
|
-
}, null, 8,
|
|
1684
|
-
td: k(({ td: e }) => [
|
|
1692
|
+
}, null, 8, kt)]),
|
|
1693
|
+
td: k(({ td: e }) => [ke(ze(e.name || e), 1)]),
|
|
1685
1694
|
_: 1
|
|
1686
1695
|
}, 8, [
|
|
1687
1696
|
"colNames",
|
|
@@ -1695,24 +1704,24 @@ var rt = /* @__PURE__ */ e({ default: () => At }), it = ["id"], at = ["id"], ot
|
|
|
1695
1704
|
_: 2
|
|
1696
1705
|
}, [L.value.table.useDialog ? {
|
|
1697
1706
|
name: "title",
|
|
1698
|
-
fn: k(() => [
|
|
1707
|
+
fn: k(() => [ke(ze(Wr.value.title), 1)]),
|
|
1699
1708
|
key: "0"
|
|
1700
1709
|
} : void 0, L.value.table.useDialog ? {
|
|
1701
1710
|
name: "actions",
|
|
1702
|
-
fn: k(() => [
|
|
1711
|
+
fn: k(() => [y("button", {
|
|
1703
1712
|
tabindex: "0",
|
|
1704
1713
|
class: "vue-ui-user-options-button",
|
|
1705
|
-
onClick: t[2] ||= (e) =>
|
|
1714
|
+
onClick: t[2] ||= (e) => _r(L.value.userOptions.callbacks.csv),
|
|
1706
1715
|
style: S({ cursor: R.value ? "pointer" : "default" })
|
|
1707
|
-
}, [
|
|
1716
|
+
}, [Ae(_e, {
|
|
1708
1717
|
name: "fileCsv",
|
|
1709
|
-
stroke:
|
|
1718
|
+
stroke: Wr.value.props.color
|
|
1710
1719
|
}, null, 8, ["stroke"])], 4)]),
|
|
1711
1720
|
key: "1"
|
|
1712
|
-
} : void 0]), 1040)) :
|
|
1713
|
-
T(e.$slots, "skeleton", {}, () => [D(
|
|
1714
|
-
], 46,
|
|
1721
|
+
} : void 0]), 1040)) : _("", !0),
|
|
1722
|
+
T(e.$slots, "skeleton", {}, () => [D(an) ? (C(), g(ce, { key: 0 })) : _("", !0)], !0)
|
|
1723
|
+
], 46, rt));
|
|
1715
1724
|
}
|
|
1716
|
-
}, [["__scopeId", "data-v-
|
|
1725
|
+
}, [["__scopeId", "data-v-f5f2d850"]]);
|
|
1717
1726
|
//#endregion
|
|
1718
|
-
export {
|
|
1727
|
+
export { j as n, jt as t };
|