vue-data-ui 3.23.1 → 3.23.2
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/{PackageVersion-D6d8SCp9.js → PackageVersion-DXU7nRr9.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-hill.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-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/{package-KvlL5CqE.js → package-bsfpO6y3.js} +1 -1
- package/dist/{render-common-oDYGTc5P.js → render-common-C0PEe9so.js} +1 -1
- 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/vue-data-ui.d.ts +6 -0
- package/dist/{useSvgExport-DH-FfcqQ.js → useChartExport-DNiwdPmb.js} +47 -1
- package/dist/{useConfig-D3scuR88.js → useConfig-DlNpz6P8.js} +6 -0
- package/dist/{useObjectBindings-Brg8mm5J.js → useObjectBindings-BeWS5v0i.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DGWDPCwC.js → vue-data-ui-BNxtW8pK.js} +68 -68
- package/dist/vue-data-ui.js +69 -69
- package/dist/{vue-ui-3d-bar-C_Su9fve.js → vue-ui-3d-bar-BYumVxZG.js} +164 -182
- package/dist/{vue-ui-accordion-BxGriZik.js → vue-ui-accordion-DegI2lzR.js} +1 -1
- package/dist/vue-ui-age-pyramid-tJx_hCsS.js +1241 -0
- package/dist/{vue-ui-annotator-CCtnM8Rv.js → vue-ui-annotator-DfG79D4r.js} +2 -2
- package/dist/vue-ui-bullet-DrWG4jRy.js +700 -0
- package/dist/{vue-ui-bump-CcdzJZ9n.js → vue-ui-bump-mKysp0KO.js} +213 -263
- package/dist/vue-ui-candlestick-PgKcBZdy.js +1837 -0
- package/dist/vue-ui-carousel-table-DRvycNBl.js +467 -0
- package/dist/vue-ui-chestnut-Dpklo-VE.js +2014 -0
- package/dist/vue-ui-chord-7PPVH_iG.js +1345 -0
- package/dist/vue-ui-circle-pack-DW4Os6_8.js +1636 -0
- package/dist/{vue-ui-cursor-BqHr0n1Z.js → vue-ui-cursor-DIt7vOwc.js} +2 -2
- package/dist/{vue-ui-dag-jMLVoQkb.js → vue-ui-dag-Cl0WdSLb.js} +492 -515
- package/dist/{vue-ui-dashboard-DVAUFETR.js → vue-ui-dashboard-BwxRLR4E.js} +65 -65
- package/dist/{vue-ui-digits-Dy4gG6qm.js → vue-ui-digits-Bp1OH_t1.js} +2 -2
- package/dist/{vue-ui-donut-C0cWRLbU.js → vue-ui-donut-BZUT7QYt.js} +333 -359
- package/dist/vue-ui-donut-evolution-CQy3ZKXk.js +1549 -0
- package/dist/{vue-ui-donut-CYpxGBhl.js → vue-ui-donut-y6tOAVyY.js} +2 -2
- package/dist/{vue-ui-dumbbell-DxVbRjKR.js → vue-ui-dumbbell-BtKZcAOV.js} +378 -428
- package/dist/{vue-ui-flow-DWaZF4FS.js → vue-ui-flow-BF_cndsv.js} +182 -207
- package/dist/vue-ui-funnel-z3AeiDu6.js +750 -0
- package/dist/{vue-ui-galaxy-CWBP9oH9.js → vue-ui-galaxy-ClWaSOmM.js} +308 -334
- package/dist/vue-ui-gauge-CJstpakj.js +932 -0
- package/dist/{vue-ui-geo-ZA7CBy8f.js → vue-ui-geo-B1tOD3HC.js} +362 -413
- package/dist/{vue-ui-gizmo-SQCou0bQ.js → vue-ui-gizmo-foatosAv.js} +2 -2
- package/dist/{vue-ui-heatmap-CHd9gs_p.js → vue-ui-heatmap-By33A9dZ.js} +292 -315
- package/dist/vue-ui-hill-ewqkK9s5.js +1745 -0
- package/dist/{vue-ui-history-plot-BwnlC1mx.js → vue-ui-history-plot-FEIwXlsz.js} +258 -283
- package/dist/{vue-ui-horizontal-bar-BUar2HUH.js → vue-ui-horizontal-bar-D51sAeVu.js} +273 -298
- package/dist/{vue-ui-kpi-BF_9WWoo.js → vue-ui-kpi-y3EkgqJQ.js} +2 -2
- package/dist/{vue-ui-mini-loader-CvfukjXi.js → vue-ui-mini-loader-CtTewZJG.js} +1 -1
- package/dist/vue-ui-molecule-paWHp18h.js +935 -0
- package/dist/{vue-ui-mood-radar-_zpbmvJs.js → vue-ui-mood-radar-wBRTZI5k.js} +337 -386
- package/dist/vue-ui-nested-donuts-CB-HOLo2.js +1503 -0
- package/dist/{vue-ui-onion-CB5RYIy5.js → vue-ui-onion-B2Q2n55x.js} +257 -282
- package/dist/{vue-ui-parallel-coordinate-plot-BUwt-apg.js → vue-ui-parallel-coordinate-plot-GpkXiIZA.js} +190 -215
- package/dist/{vue-ui-quadrant-CoROD3er.js → vue-ui-quadrant-DOPuejDE.js} +213 -243
- package/dist/{vue-ui-quick-chart-BcH7eY4-.js → vue-ui-quick-chart-CgHX9njq.js} +52 -61
- package/dist/{vue-ui-radar-DGbaXGme.js → vue-ui-radar-BLvG-_zE.js} +343 -370
- package/dist/{vue-ui-rating-Bo3zD3yW.js → vue-ui-rating-BDVSVFA0.js} +8 -9
- package/dist/vue-ui-relation-circle-plOXwxJ5.js +903 -0
- package/dist/{vue-ui-ridgeline-BCaGcyfk.js → vue-ui-ridgeline-BbrnXvBo.js} +267 -317
- package/dist/{vue-ui-rings-BJUBn8_b.js → vue-ui-rings-B3cKfMWy.js} +407 -432
- package/dist/vue-ui-scatter-BY7waF2T.js +2403 -0
- package/dist/{vue-ui-skeleton-EeJcGbCo.js → vue-ui-skeleton-DwKxd7fk.js} +2 -2
- package/dist/{vue-ui-smiley-D0gibt5c.js → vue-ui-smiley-5iHJeTPc.js} +62 -63
- package/dist/{vue-ui-spark-trend-BRoQ7JpQ.js → vue-ui-spark-trend-MpvrV5Wd.js} +2 -2
- package/dist/{vue-ui-sparkbar-DFp2k7-7.js → vue-ui-sparkbar-s-2rBmEz.js} +97 -100
- package/dist/{vue-ui-sparkgauge-D0Bq85Hs.js → vue-ui-sparkgauge-B-BYVv4p.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-BPln7v63.js → vue-ui-sparkhistogram-D7D4NHdi.js} +7 -8
- package/dist/{vue-ui-sparkline-C6Q45Dqp.js → vue-ui-sparkline-RbeYtLWp.js} +6 -7
- package/dist/{vue-ui-sparkstackbar-CjK4bcQg.js → vue-ui-sparkstackbar-ohN7mtbg.js} +191 -195
- package/dist/{vue-ui-stackbar-Ca8EPf3e.js → vue-ui-stackbar-D2bpvQYt.js} +524 -549
- package/dist/{vue-ui-stackline-Pz5WWlWT.js → vue-ui-stackline-Bo1oE8yq.js} +570 -595
- package/dist/vue-ui-strip-plot-CZ-C4a5x.js +1734 -0
- package/dist/{vue-ui-table-Bjg-ujJu.js → vue-ui-table-3PPiJPV6.js} +3 -3
- package/dist/{vue-ui-table-heatmap-ljeYW8Wc.js → vue-ui-table-heatmap-D1bbPXKG.js} +48 -49
- package/dist/{vue-ui-table-sparkline-iRFmtK5S.js → vue-ui-table-sparkline-l1cUX3ny.js} +7 -9
- package/dist/{vue-ui-thermometer-D8uiOaeA.js → vue-ui-thermometer-DltAELO7.js} +240 -261
- package/dist/{vue-ui-timer-CYw983oL.js → vue-ui-timer-DWNdx47q.js} +2 -2
- package/dist/vue-ui-tiremarks-GYhji_fa.js +538 -0
- package/dist/{vue-ui-treemap-h4VbnqPA.js → vue-ui-treemap-DjNlnOG5.js} +498 -524
- package/dist/vue-ui-waffle-BAA9EX6O.js +1386 -0
- package/dist/{vue-ui-wheel-tLvJadk5.js → vue-ui-wheel-DrefGLos.js} +188 -209
- package/dist/{vue-ui-word-cloud-BjpGSsod.js → vue-ui-word-cloud-CQZ8AyOi.js} +375 -398
- package/dist/{vue-ui-world-B4fCS3jN.js → vue-ui-world-Y7a3VEjq.js} +428 -453
- package/dist/{vue-ui-xy-7ZT9IRD8.js → vue-ui-xy-CJcdttNL.js} +857 -883
- package/dist/{vue-ui-xy-gyNS0yH0.js → vue-ui-xy-DPxtkYGc.js} +2 -2
- package/dist/{vue-ui-xy-canvas-BnLEwBpi.js → vue-ui-xy-canvas-1rbwMA1m.js} +13 -12
- package/package.json +1 -1
- package/dist/Slicer-CIk57nL4.js +0 -1163
- package/dist/vue-ui-age-pyramid-D4k1MkAL.js +0 -1264
- package/dist/vue-ui-bullet-DLZr2Uk8.js +0 -724
- package/dist/vue-ui-candlestick-EEEt7ORC.js +0 -1866
- package/dist/vue-ui-carousel-table-BicIpNAD.js +0 -463
- package/dist/vue-ui-chestnut-BI7mC5dd.js +0 -2068
- package/dist/vue-ui-chord-DXaq8ZMu.js +0 -1396
- package/dist/vue-ui-circle-pack-XHJBMG51.js +0 -1659
- package/dist/vue-ui-donut-evolution-DwR47A2r.js +0 -1603
- package/dist/vue-ui-funnel-Bmpx5GHR.js +0 -797
- package/dist/vue-ui-gauge-ByE_txav.js +0 -953
- package/dist/vue-ui-hill-BT183G-_.js +0 -1768
- package/dist/vue-ui-molecule-Bi2CKHer.js +0 -958
- package/dist/vue-ui-nested-donuts-qHZAJ70u.js +0 -1528
- package/dist/vue-ui-relation-circle-DaU1eTsG.js +0 -925
- package/dist/vue-ui-scatter-Pcft1bUt.js +0 -2428
- package/dist/vue-ui-strip-plot-Dw4MGDSO.js +0 -1757
- package/dist/vue-ui-tiremarks-CekiW2Ru.js +0 -559
- package/dist/vue-ui-waffle-cu0w_s6L.js +0 -1412
|
@@ -2,12 +2,12 @@ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
|
2
2
|
import { $ as t, D as n, G as r, Ht as i, Jt as a, Kt as o, N as s, P as ee, Pt as c, Q as te, S as ne, V as re, X as l, ht as ie, i as u, jt as ae, pt as oe, q as se, r as ce, t as le, tt as ue, w as de } from "./lib-Bttd6u5E.js";
|
|
3
3
|
import { n as fe, t as pe } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as me } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
-
import { t as he } from "./useConfig-
|
|
5
|
+
import { t as he } from "./useConfig-DlNpz6P8.js";
|
|
6
6
|
import { t as ge } from "./usePrinter-DN5bYhTG.js";
|
|
7
7
|
import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
|
|
8
|
-
import { t as ye } from "./
|
|
9
|
-
import { t as be } from "./
|
|
10
|
-
import { t as xe } from "./
|
|
8
|
+
import { t as ye } from "./useNestedProp-vPNvh7rV.js";
|
|
9
|
+
import { t as be } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as xe } from "./useChartExport-DNiwdPmb.js";
|
|
11
11
|
import { t as Se } from "./useTimeLabelCollider-AEcY4Ioe.js";
|
|
12
12
|
import { t as Ce } from "./img-Bnokohej.js";
|
|
13
13
|
import { n as we } from "./Title-BE3qg9xl.js";
|
|
@@ -138,25 +138,25 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
138
138
|
"copyAlt"
|
|
139
139
|
],
|
|
140
140
|
setup(e, { expose: Ee, emit: qe }) {
|
|
141
|
-
let _t = _(() => import("./vue-ui-xy-
|
|
141
|
+
let _t = _(() => import("./vue-ui-xy-CJcdttNL.js").then((e) => e.n)), vt = _(() => import("./BaseIcon-BfndwIWE.js").then((e) => e.n)), yt = _(() => import("./vue-ui-accordion-DegI2lzR.js").then((e) => e.n)), bt = _(() => import("./DataTable-BbKgJ5UI.js")), xt = _(() => import("./PenAndPaper-DAE-tnEQ.js").then((e) => e.t)), St = _(() => import("./UserOptions-Dt98of5H.js").then((e) => e.n)), Ct = _(() => import("./PackageVersion-DXU7nRr9.js").then((e) => e.t)), wt = _(() => import("./BaseDraggableDialog-LoqqwRtV.js").then((e) => e.n)), { vue_ui_ridgeline: Tt } = he(), { isThemeValid: Et, warnInvalidTheme: Dt } = be(), k = e, Ot = f({
|
|
142
142
|
get() {
|
|
143
143
|
return Array.isArray(B.value) && B.value.length > 0;
|
|
144
144
|
},
|
|
145
145
|
set(e) {
|
|
146
146
|
return e;
|
|
147
147
|
}
|
|
148
|
-
}),
|
|
149
|
-
function
|
|
150
|
-
let e =
|
|
148
|
+
}), kt = qe, A = S(null), At = S(null), jt = S(null), j = We(null), M = We(null), Mt = S(null), Nt = S(null), Pt = S(0), Ft = S(0), It = S(0), N = S(se()), Lt = S(0), Rt = S(0), zt = S(512), P = S(null), F = S(null), Bt = S(null), Vt = S(0), Ht = S(null), I = S(null), Ut = S(null), L = S(null), Wt = S(!1);
|
|
149
|
+
function Gt() {
|
|
150
|
+
let e = ye({
|
|
151
151
|
userConfig: k.config,
|
|
152
152
|
defaultConfig: Tt
|
|
153
153
|
}), t = e.theme;
|
|
154
154
|
if (!t) return e;
|
|
155
155
|
if (!Et.value(e)) return Dt(e), e;
|
|
156
|
-
let n =
|
|
156
|
+
let n = ye({
|
|
157
157
|
userConfig: Fe[t] || k.config,
|
|
158
158
|
defaultConfig: e
|
|
159
|
-
}), r =
|
|
159
|
+
}), r = ye({
|
|
160
160
|
userConfig: k.config,
|
|
161
161
|
defaultConfig: n
|
|
162
162
|
});
|
|
@@ -165,7 +165,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
165
165
|
customPalette: r.customPalette.length ? r.customPalette : o[t] || c
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
|
-
let R = S(
|
|
168
|
+
let R = S(Gt());
|
|
169
169
|
fe({
|
|
170
170
|
config: () => R.value,
|
|
171
171
|
dataset: () => k.dataset,
|
|
@@ -202,7 +202,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
202
202
|
}
|
|
203
203
|
]
|
|
204
204
|
});
|
|
205
|
-
let z = f(() => R.value.userOptions.useCursorPointer),
|
|
205
|
+
let z = f(() => R.value.userOptions.useCursorPointer), Kt = f(() => a({
|
|
206
206
|
defaultConfig: {
|
|
207
207
|
userOptions: { show: !1 },
|
|
208
208
|
table: { show: !1 },
|
|
@@ -224,10 +224,10 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
224
224
|
} }
|
|
225
225
|
},
|
|
226
226
|
userConfig: R.value.skeletonConfig ?? {}
|
|
227
|
-
})), { loading:
|
|
227
|
+
})), { loading: qt, FINAL_DATASET: B, manualLoading: Jt } = _e({
|
|
228
228
|
...Ge(k),
|
|
229
229
|
FINAL_CONFIG: R,
|
|
230
|
-
prepareConfig:
|
|
230
|
+
prepareConfig: Gt,
|
|
231
231
|
skeletonDataset: k.config?.skeletonDataset ?? [
|
|
232
232
|
{
|
|
233
233
|
name: "_",
|
|
@@ -460,17 +460,17 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
460
460
|
],
|
|
461
461
|
skeletonConfig: a({
|
|
462
462
|
defaultConfig: R.value,
|
|
463
|
-
userConfig:
|
|
463
|
+
userConfig: Kt.value
|
|
464
464
|
})
|
|
465
|
-
}), V = S(Math.min(R.value.style.chart.areas.height, R.value.style.chart.areas.rowHeight)), { userOptionsVisible:
|
|
466
|
-
function
|
|
465
|
+
}), V = S(Math.min(R.value.style.chart.areas.height, R.value.style.chart.areas.rowHeight)), { userOptionsVisible: Yt, setUserOptionsVisibility: Xt, keepUserOptionState: Zt } = Me({ config: R.value }), { svgRef: H } = Ne({ config: R.value.style.chart.title }), Qt = f(() => R.value.debug);
|
|
466
|
+
function $t() {
|
|
467
467
|
let e = B.value || [];
|
|
468
468
|
if (!Array.isArray(e) || e.length === 0) {
|
|
469
469
|
ue({
|
|
470
470
|
componentName: "VueUiRidgeline",
|
|
471
471
|
type: "dataset",
|
|
472
|
-
debug:
|
|
473
|
-
}),
|
|
472
|
+
debug: Qt.value
|
|
473
|
+
}), Jt.value = !0;
|
|
474
474
|
return;
|
|
475
475
|
}
|
|
476
476
|
if (e.forEach((e, t) => {
|
|
@@ -483,7 +483,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
483
483
|
type: "datasetSerieAttribute",
|
|
484
484
|
property: e,
|
|
485
485
|
index: t,
|
|
486
|
-
debug:
|
|
486
|
+
debug: Qt.value
|
|
487
487
|
});
|
|
488
488
|
}), Array.isArray(e.datapoints) && e.datapoints.length && e.datapoints.forEach((e, n) => {
|
|
489
489
|
oe({
|
|
@@ -495,180 +495,180 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
495
495
|
type: "datasetSerieAttribute",
|
|
496
496
|
property: `datapoint.${e}`,
|
|
497
497
|
index: `${t}-${n}`,
|
|
498
|
-
debug:
|
|
498
|
+
debug: Qt.value
|
|
499
499
|
});
|
|
500
500
|
});
|
|
501
501
|
});
|
|
502
|
-
}),
|
|
502
|
+
}), Rt.value = e.length, V.value = Math.min(R.value.style.chart.areas.height, R.value.style.chart.areas.rowHeight), ae(k.dataset) || (Jt.value = R.value.loading), R.value.responsive) {
|
|
503
503
|
let t = De(() => {
|
|
504
504
|
let { width: t, height: n } = Oe({
|
|
505
|
-
chart:
|
|
506
|
-
title: R.value.style.chart.title.text ?
|
|
507
|
-
legend: R.value.style.chart.legend.show ?
|
|
508
|
-
source:
|
|
509
|
-
noTitle:
|
|
505
|
+
chart: A.value,
|
|
506
|
+
title: R.value.style.chart.title.text ? At.value : null,
|
|
507
|
+
legend: R.value.style.chart.legend.show ? jt.value : null,
|
|
508
|
+
source: Mt.value,
|
|
509
|
+
noTitle: Nt.value,
|
|
510
510
|
padding: R.value.style.chart.padding
|
|
511
511
|
});
|
|
512
512
|
requestAnimationFrame(() => {
|
|
513
|
-
|
|
513
|
+
zt.value = t, V.value = e.length ? n / e.length : 0, Vt.value = n - 12;
|
|
514
514
|
});
|
|
515
515
|
});
|
|
516
|
-
|
|
516
|
+
j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect()), j.value = new ResizeObserver(t), M.value = A.value?.parentNode || null, M.value && j.value.observe(M.value);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
He(() => {
|
|
520
|
-
|
|
520
|
+
j.value && (M.value && j.value.unobserve(M.value), j.value.disconnect());
|
|
521
521
|
});
|
|
522
|
-
let { isPrinting:
|
|
523
|
-
elementId: `vue-ui-ridgeline_${
|
|
522
|
+
let { isPrinting: en, isImaging: tn, generatePdf: nn, generateImage: rn } = ge({
|
|
523
|
+
elementId: `vue-ui-ridgeline_${N.value}`,
|
|
524
524
|
fileName: R.value.style.chart.title.text || "vue-ui-ridgeline",
|
|
525
525
|
options: R.value.userOptions.print
|
|
526
|
-
}),
|
|
526
|
+
}), an = f(() => R.value.userOptions.show && !R.value.style.chart.title.text), on = f(() => de(R.value.customPalette)), U = S({ showTable: R.value.table.show });
|
|
527
527
|
D(() => B.value, async (e) => {
|
|
528
|
-
Array.isArray(e) && e.length && (
|
|
528
|
+
Array.isArray(e) && e.length && (Yt.value = !R.value.userOptions.showOnChartHover, await Be(), $t(), Pt.value += 1, It.value += 1, U.value.showTable = R.value.table.show);
|
|
529
529
|
}, {
|
|
530
530
|
deep: !0,
|
|
531
531
|
immediate: !0
|
|
532
532
|
}), D(() => k.dataset, (e) => {
|
|
533
|
-
Array.isArray(e) && e.length > 0 && (
|
|
534
|
-
}, { deep: !0 }), D(() =>
|
|
535
|
-
e || (await Be(),
|
|
533
|
+
Array.isArray(e) && e.length > 0 && (Jt.value = !1);
|
|
534
|
+
}, { deep: !0 }), D(() => qt.value, async (e) => {
|
|
535
|
+
e || (await Be(), $t());
|
|
536
536
|
}, { immediate: !0 }), D(() => k.config, () => {
|
|
537
|
-
R.value =
|
|
537
|
+
R.value = Gt(B.value || null), Yt.value = !R.value.userOptions.showOnChartHover, V.value = Math.min(R.value.style.chart.areas.height, R.value.style.chart.areas.rowHeight), U.value.showTable = R.value.table.show, Pt.value += 1, It.value += 1;
|
|
538
538
|
}, { deep: !0 });
|
|
539
|
-
let
|
|
540
|
-
function
|
|
539
|
+
let sn = f(() => R.value.style.chart.areas.height / R.value.style.chart.areas.rowHeight);
|
|
540
|
+
function cn() {
|
|
541
541
|
X.value.length ? X.value = [] : Z.value.forEach((e) => {
|
|
542
542
|
X.value.push(e.id);
|
|
543
|
-
}),
|
|
543
|
+
}), kt("selectLegend", Y.value);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
546
|
-
X.value.includes(e) ? X.value = X.value.filter((t) => t !== e) : X.value.push(e),
|
|
545
|
+
function ln(e) {
|
|
546
|
+
X.value.includes(e) ? X.value = X.value.filter((t) => t !== e) : X.value.push(e), kt("selectLegend", Y.value);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
return Z.value.length ? Z.value.find((t) => t.name === e) || (
|
|
548
|
+
function un(e) {
|
|
549
|
+
return Z.value.length ? Z.value.find((t) => t.name === e) || (Qt.value && console.warn(`VueUiRidgeline - Series name not found "${e}"`), null) : (Qt.value && console.warn("VueUiRidgeline - There are no series to show."), null);
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
let t =
|
|
553
|
-
t !== null && X.value.includes(t.id) &&
|
|
551
|
+
function dn(e) {
|
|
552
|
+
let t = un(e);
|
|
553
|
+
t !== null && X.value.includes(t.id) && ln(t.id);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
let t =
|
|
557
|
-
t !== null && (X.value.includes(t.id) ||
|
|
555
|
+
function fn(e) {
|
|
556
|
+
let t = un(e);
|
|
557
|
+
t !== null && (X.value.includes(t.id) || ln(t.id));
|
|
558
558
|
}
|
|
559
559
|
let W = f(() => Ot.value ? (B.value || []).map((e) => ({
|
|
560
560
|
...e,
|
|
561
|
-
labelLen:
|
|
561
|
+
labelLen: En(e.name, R.value.style.chart.yAxis.labels.fontSize),
|
|
562
562
|
uid: se(),
|
|
563
563
|
datapoints: e.datapoints.map((e, t) => {
|
|
564
|
-
let n = e.color ? ne(e.color) :
|
|
564
|
+
let n = e.color ? ne(e.color) : on.value[t] || c[t] || c[t % c.length], r = i(e.name);
|
|
565
565
|
return {
|
|
566
566
|
...e,
|
|
567
567
|
color: n,
|
|
568
568
|
id: r
|
|
569
569
|
};
|
|
570
570
|
})
|
|
571
|
-
})) : []),
|
|
571
|
+
})) : []), pn = f(() => R.value.style.chart.padding.top + V.value * (B.value || []).length + V.value * sn.value + R.value.style.chart.padding.bottom), G = f(() => {
|
|
572
572
|
let e = R.value.style.chart.padding;
|
|
573
573
|
return {
|
|
574
|
-
width:
|
|
575
|
-
height:
|
|
574
|
+
width: zt.value,
|
|
575
|
+
height: pn.value,
|
|
576
576
|
padding: e
|
|
577
577
|
};
|
|
578
|
-
}),
|
|
579
|
-
|
|
578
|
+
}), mn = f(() => G.value.width), hn = f(() => G.value.height), gn = S(0), _n = De((e) => {
|
|
579
|
+
gn.value = e;
|
|
580
580
|
}, 100);
|
|
581
581
|
Ke((e) => {
|
|
582
|
-
let t =
|
|
582
|
+
let t = Ht.value;
|
|
583
583
|
if (!t) return;
|
|
584
584
|
let n = new ResizeObserver((e) => {
|
|
585
|
-
|
|
585
|
+
_n(e[0].contentRect.height);
|
|
586
586
|
});
|
|
587
587
|
n.observe(t), e(() => n.disconnect());
|
|
588
588
|
}), He(() => {
|
|
589
|
-
|
|
589
|
+
gn.value = 0;
|
|
590
590
|
});
|
|
591
591
|
let K = f(() => ({
|
|
592
|
-
fullHeight: G.value.height +
|
|
592
|
+
fullHeight: G.value.height + gn.value,
|
|
593
593
|
top: G.value.padding.top,
|
|
594
594
|
left: G.value.padding.left,
|
|
595
595
|
right: G.value.width - G.value.padding.right,
|
|
596
596
|
bottom: G.value.height - R.value.style.chart.padding.bottom,
|
|
597
597
|
width: G.value.width - (G.value.padding.left + G.value.padding.right)
|
|
598
|
-
})),
|
|
598
|
+
})), vn = f(() => Math.max(...W.value.flatMap((e) => e.datapoints.map((e) => e.values.length)))), q = S([]), yn = 0;
|
|
599
599
|
Ke(() => {
|
|
600
|
-
let e = ++
|
|
600
|
+
let e = ++yn;
|
|
601
601
|
(async () => {
|
|
602
602
|
let t = await me({
|
|
603
603
|
values: R.value.style.chart.xAxis.labels.values,
|
|
604
|
-
maxDatapoints:
|
|
604
|
+
maxDatapoints: vn.value,
|
|
605
605
|
formatter: R.value.style.chart.xAxis.labels.datetimeFormatter,
|
|
606
606
|
start: 0,
|
|
607
607
|
end: R.value.style.chart.xAxis.labels.values.length
|
|
608
608
|
});
|
|
609
|
-
e ===
|
|
609
|
+
e === yn && (q.value = t);
|
|
610
610
|
})();
|
|
611
611
|
});
|
|
612
612
|
let J = f(() => {
|
|
613
|
-
let e = Math.max(...W.value.map((e) => e.labelLen)), t = G.value.padding.left + e + 16 + R.value.style.chart.yAxis.labels.offsetX, n = (K.value.width - t) /
|
|
614
|
-
for (let e = 0; e <
|
|
613
|
+
let e = Math.max(...W.value.map((e) => e.labelLen)), t = G.value.padding.left + e + 16 + R.value.style.chart.yAxis.labels.offsetX, n = (K.value.width - t) / vn.value, r = [];
|
|
614
|
+
for (let e = 0; e < vn.value; e += 1) r.push({
|
|
615
615
|
selectorX: t + n * e,
|
|
616
616
|
x: t + n * e - n / 2,
|
|
617
617
|
y: K.value.top,
|
|
618
618
|
label: R.value.style.chart.xAxis.labels.values[e] ? q.value[e]?.text ?? "" : "",
|
|
619
619
|
index: e,
|
|
620
620
|
width: n,
|
|
621
|
-
height:
|
|
621
|
+
height: pn.value
|
|
622
622
|
});
|
|
623
623
|
return r;
|
|
624
624
|
});
|
|
625
|
-
function
|
|
625
|
+
function bn(e) {
|
|
626
626
|
return W.value.map((t) => t.datapoints.map((t) => ({
|
|
627
627
|
dp: t,
|
|
628
628
|
selected: t.values[e.index]
|
|
629
629
|
})));
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
|
|
633
|
-
let t =
|
|
631
|
+
function xn(e) {
|
|
632
|
+
P.value = e;
|
|
633
|
+
let t = bn(e);
|
|
634
634
|
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
635
635
|
datapoint: t,
|
|
636
636
|
seriesIndex: e.index
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
|
|
641
|
-
let t =
|
|
639
|
+
function Sn(e) {
|
|
640
|
+
P.value = null;
|
|
641
|
+
let t = bn(e);
|
|
642
642
|
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
643
643
|
datapoint: t,
|
|
644
644
|
seriesIndex: e.index
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
let t =
|
|
647
|
+
function Cn(e) {
|
|
648
|
+
let t = bn(e);
|
|
649
649
|
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
650
650
|
datapoint: t,
|
|
651
651
|
seriesIndex: e.index
|
|
652
|
-
}),
|
|
652
|
+
}), kt("selectX", t);
|
|
653
653
|
}
|
|
654
|
-
function
|
|
654
|
+
function wn(e, t) {
|
|
655
655
|
return e.length * t / 2 + t;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
658
|
-
return e +
|
|
657
|
+
function Tn(e, t, n) {
|
|
658
|
+
return e + wn(t, n) > K.value.right;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function En(e, t, n = "sans-serif") {
|
|
661
661
|
let r = document.createElement("canvas").getContext("2d");
|
|
662
662
|
return r.font = `${typeof t == "number" ? `${t}px` : t} ${n}`, r.measureText(e).width;
|
|
663
663
|
}
|
|
664
664
|
let Y = f(() => {
|
|
665
665
|
V.value;
|
|
666
|
-
let e = Math.max(...W.value.map((e) => e.labelLen)), t = Math.max(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = G.value.padding.left + e + 16 + R.value.style.chart.yAxis.labels.offsetX, i = (K.value.width - r) /
|
|
666
|
+
let e = Math.max(...W.value.map((e) => e.labelLen)), t = Math.max(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), n = Math.min(...W.value.flatMap((e) => e.datapoints.flatMap((e) => e.values))), r = G.value.padding.left + e + 16 + R.value.style.chart.yAxis.labels.offsetX, i = (K.value.width - r) / vn.value, a = Math.abs(Math.min(n, 0)), o = t + a;
|
|
667
667
|
function c(e) {
|
|
668
668
|
return isNaN(e / o) ? 0 : e / o;
|
|
669
669
|
}
|
|
670
670
|
return W.value.map((e, t) => {
|
|
671
|
-
let n = K.value.top + V.value * t, o = K.value.top + n + V.value *
|
|
671
|
+
let n = K.value.top + V.value * t, o = K.value.top + n + V.value * sn.value * (1 - c(a));
|
|
672
672
|
return {
|
|
673
673
|
...e,
|
|
674
674
|
label: {
|
|
@@ -687,7 +687,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
687
687
|
].includes(t) ? 0 : t || 0;
|
|
688
688
|
return {
|
|
689
689
|
x: r + i * s,
|
|
690
|
-
y: K.value.top + n + V.value *
|
|
690
|
+
y: K.value.top + n + V.value * sn.value * (1 - c(ee + a)),
|
|
691
691
|
value: t,
|
|
692
692
|
isMaxPoint: t === Math.max(...e.values),
|
|
693
693
|
zero: o
|
|
@@ -708,7 +708,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
708
708
|
};
|
|
709
709
|
});
|
|
710
710
|
}), X = S([]);
|
|
711
|
-
function
|
|
711
|
+
function Dn(e) {
|
|
712
712
|
let t = /* @__PURE__ */ new Map();
|
|
713
713
|
return e.forEach((e) => {
|
|
714
714
|
e.datapoints.forEach((e, n) => {
|
|
@@ -718,14 +718,14 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
718
718
|
name: e.name,
|
|
719
719
|
color: e.color,
|
|
720
720
|
shape: "circle",
|
|
721
|
-
segregate: () =>
|
|
721
|
+
segregate: () => ln(r),
|
|
722
722
|
isSegregated: X.value.includes(r),
|
|
723
723
|
opacity: X.value.includes(r) ? .5 : 1
|
|
724
724
|
});
|
|
725
725
|
});
|
|
726
726
|
}), Array.from(t.values());
|
|
727
727
|
}
|
|
728
|
-
let Z = f(() =>
|
|
728
|
+
let Z = f(() => Dn(W.value)), On = f(() => ({
|
|
729
729
|
cy: "donut-div-legend",
|
|
730
730
|
backgroundColor: R.value.style.chart.legend.backgroundColor,
|
|
731
731
|
color: R.value.style.chart.legend.color,
|
|
@@ -733,19 +733,19 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
733
733
|
paddingBottom: 12,
|
|
734
734
|
fontWeight: R.value.style.chart.legend.bold ? "bold" : ""
|
|
735
735
|
})), Q = S(!1);
|
|
736
|
-
function
|
|
737
|
-
Q.value = e,
|
|
736
|
+
function kn(e) {
|
|
737
|
+
Q.value = e, Lt.value += 1;
|
|
738
738
|
}
|
|
739
|
-
let
|
|
740
|
-
function
|
|
741
|
-
|
|
739
|
+
let An = S({}), jn = S([]);
|
|
740
|
+
function Mn(e) {
|
|
741
|
+
kt("selectDatapoint", e), R.value.style.chart.dialog.show && (jn.value = e.datapoints.map((e) => ({
|
|
742
742
|
name: e.name,
|
|
743
743
|
color: e.color,
|
|
744
744
|
type: "line",
|
|
745
745
|
useArea: !0,
|
|
746
746
|
smooth: R.value.style.chart.areas.smooth,
|
|
747
747
|
series: e.values
|
|
748
|
-
})),
|
|
748
|
+
})), F.value = e, An.value = te({
|
|
749
749
|
...R.value.style.chart.dialog.xyChart,
|
|
750
750
|
responsive: !0,
|
|
751
751
|
chart: {
|
|
@@ -782,23 +782,23 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
782
782
|
useCursorPointer: R.value.userOptions.useCursorPointer
|
|
783
783
|
}
|
|
784
784
|
}
|
|
785
|
-
}),
|
|
785
|
+
}), Bt.value && Bt.value.open());
|
|
786
|
+
}
|
|
787
|
+
let Nn = S(null);
|
|
788
|
+
function Pn(e) {
|
|
789
|
+
Nn.value = e;
|
|
786
790
|
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
Fn.value = e;
|
|
791
|
+
function Fn() {
|
|
792
|
+
Nn.value = null;
|
|
790
793
|
}
|
|
794
|
+
let In = S(!1);
|
|
791
795
|
function Ln() {
|
|
792
|
-
|
|
793
|
-
}
|
|
794
|
-
let Rn = S(!1);
|
|
795
|
-
function zn() {
|
|
796
|
-
Rn.value = !Rn.value;
|
|
796
|
+
In.value = !In.value;
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Rn() {
|
|
799
799
|
U.value.showTable = !U.value.showTable;
|
|
800
800
|
}
|
|
801
|
-
let
|
|
801
|
+
let zn = f(() => ({ body: Y.value.flatMap((e) => e.datapoints.flatMap((t) => ({
|
|
802
802
|
...t,
|
|
803
803
|
rowName: `${e.name}: ${t.name}`
|
|
804
804
|
}))).map((e) => [{
|
|
@@ -821,26 +821,26 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
821
821
|
return {
|
|
822
822
|
colNames: [R.value.table.columnNames.series, ...q.value.map((e) => e.text)],
|
|
823
823
|
head: e,
|
|
824
|
-
body:
|
|
824
|
+
body: zn.value.body,
|
|
825
825
|
config: t
|
|
826
826
|
};
|
|
827
827
|
});
|
|
828
|
-
function
|
|
828
|
+
function Bn(e = null) {
|
|
829
829
|
Be(() => {
|
|
830
|
-
let r = [[R.value.table.columnNames.series, ...q.map((e) => [e.text])], ...
|
|
830
|
+
let r = [[R.value.table.columnNames.series, ...q.map((e) => [e.text])], ...zn.value.body.map((e, t) => [e[0].name, ...e.slice(1)])], i = [[R.value.style.chart.title.text], [R.value.style.chart.title.subtitle.text]].concat(r), a = n(i);
|
|
831
831
|
e ? e(a) : t({
|
|
832
832
|
csvContent: a,
|
|
833
833
|
title: R.value.style.chart.title.text || "vue-ui-ridgeline"
|
|
834
834
|
});
|
|
835
835
|
});
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function Vn() {
|
|
838
838
|
return Y.value;
|
|
839
839
|
}
|
|
840
|
-
async function
|
|
841
|
-
if (!
|
|
842
|
-
let { width: t, height: n } =
|
|
843
|
-
domElement:
|
|
840
|
+
async function Hn({ scale: e = 2 } = {}) {
|
|
841
|
+
if (!A.value) return;
|
|
842
|
+
let { width: t, height: n } = A.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Ce({
|
|
843
|
+
domElement: A.value,
|
|
844
844
|
base64: !0,
|
|
845
845
|
img: !0,
|
|
846
846
|
scale: e
|
|
@@ -854,14 +854,14 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
854
854
|
aspectRatio: r
|
|
855
855
|
};
|
|
856
856
|
}
|
|
857
|
-
let
|
|
857
|
+
let Un = f(() => ({
|
|
858
858
|
min: 0,
|
|
859
|
-
max:
|
|
859
|
+
max: vn.value
|
|
860
860
|
}));
|
|
861
861
|
Se({
|
|
862
|
-
timeLabelsEls:
|
|
862
|
+
timeLabelsEls: Ht,
|
|
863
863
|
timeLabels: q,
|
|
864
|
-
slicer:
|
|
864
|
+
slicer: Un,
|
|
865
865
|
configRef: R,
|
|
866
866
|
rotationPath: [
|
|
867
867
|
"style",
|
|
@@ -879,12 +879,12 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
879
879
|
"enable"
|
|
880
880
|
],
|
|
881
881
|
isAutoSize: !1,
|
|
882
|
-
width:
|
|
883
|
-
height:
|
|
882
|
+
width: mn,
|
|
883
|
+
height: hn,
|
|
884
884
|
targetClass: ".vue-ui-ridgeline-x-axis-label",
|
|
885
885
|
angle: R.value.style.chart.xAxis.labels.autoRotate.angle
|
|
886
886
|
});
|
|
887
|
-
let
|
|
887
|
+
let Wn = f(() => {
|
|
888
888
|
let e = R.value.table.useDialog && !R.value.table.show, t = U.value.showTable;
|
|
889
889
|
return {
|
|
890
890
|
component: e ? wt : yt,
|
|
@@ -895,7 +895,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
895
895
|
headerColor: R.value.table.th.color,
|
|
896
896
|
headerBg: R.value.table.th.backgroundColor,
|
|
897
897
|
isFullscreen: Q.value,
|
|
898
|
-
fullscreenParent:
|
|
898
|
+
fullscreenParent: A.value,
|
|
899
899
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
900
900
|
isCursorPointer: z.value
|
|
901
901
|
} : {
|
|
@@ -916,135 +916,110 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
916
916
|
};
|
|
917
917
|
});
|
|
918
918
|
D(() => U.value.showTable, (e) => {
|
|
919
|
-
R.value.table.show || (e && R.value.table.useDialog &&
|
|
919
|
+
R.value.table.show || (e && R.value.table.useDialog && I.value ? I.value.open() : "close" in I.value && I.value.close());
|
|
920
920
|
});
|
|
921
|
-
function
|
|
921
|
+
function Gn() {
|
|
922
922
|
U.value.showTable = !1, Ut.value && Ut.value.setTableIconState(!1);
|
|
923
923
|
}
|
|
924
|
-
let
|
|
924
|
+
let Kn = f(() => R.value.style.chart.backgroundColor), qn = f(() => ({
|
|
925
925
|
...R.value.style.chart.legend,
|
|
926
926
|
position: "bottom"
|
|
927
|
-
})),
|
|
927
|
+
})), Jn = f(() => R.value.style.chart.title), { isCallbackImaging: Yn, isCallbackSvg: Xn, generateSvg: Zn, onGenerateImage: Qn } = xe({
|
|
928
928
|
svg: H,
|
|
929
|
-
title:
|
|
930
|
-
legend:
|
|
929
|
+
title: Jn,
|
|
930
|
+
legend: qn,
|
|
931
931
|
legendItems: Z,
|
|
932
|
-
backgroundColor:
|
|
932
|
+
backgroundColor: Kn,
|
|
933
|
+
getSvgCallback: () => R.value.userOptions.callbacks.svg,
|
|
934
|
+
generateImage: rn
|
|
933
935
|
});
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
try {
|
|
937
|
-
if (e) {
|
|
938
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await Qn();
|
|
939
|
-
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
940
|
-
blob: e,
|
|
941
|
-
url: t,
|
|
942
|
-
text: n,
|
|
943
|
-
dataUrl: r
|
|
944
|
-
}));
|
|
945
|
-
} else await Promise.resolve(Zn());
|
|
946
|
-
} finally {
|
|
947
|
-
Gt.value = !1;
|
|
948
|
-
}
|
|
936
|
+
function $n(e) {
|
|
937
|
+
er("xy-zoom", e.dataset, e.config);
|
|
949
938
|
}
|
|
950
|
-
function er(e) {
|
|
951
|
-
if (
|
|
952
|
-
Wt.value = !0;
|
|
953
|
-
return;
|
|
954
|
-
}
|
|
955
|
-
if (e?.stage === "end") {
|
|
956
|
-
Wt.value = !1;
|
|
957
|
-
return;
|
|
958
|
-
}
|
|
959
|
-
on();
|
|
960
|
-
}
|
|
961
|
-
function tr(e) {
|
|
962
|
-
nr("xy-zoom", e.dataset, e.config);
|
|
963
|
-
}
|
|
964
|
-
async function nr(e = "main-chart", t = null, n = null) {
|
|
965
|
-
if (A("copyAlt", {
|
|
939
|
+
async function er(e = "main-chart", t = null, n = null) {
|
|
940
|
+
if (kt("copyAlt", {
|
|
966
941
|
source: e,
|
|
967
|
-
config: e === "main-chart" ? R.value :
|
|
968
|
-
dataset: e === "main-chart" ? Y.value :
|
|
942
|
+
config: e === "main-chart" ? R.value : An.value,
|
|
943
|
+
dataset: e === "main-chart" ? Y.value : jn.value
|
|
969
944
|
}), !R.value.userOptions.callbacks.altCopy) {
|
|
970
945
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
971
946
|
return;
|
|
972
947
|
}
|
|
973
948
|
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
974
949
|
source: e,
|
|
975
|
-
config: e === "main-chart" ? R.value :
|
|
976
|
-
dataset: e === "main-chart" ? Y.value :
|
|
950
|
+
config: e === "main-chart" ? R.value : An.value,
|
|
951
|
+
dataset: e === "main-chart" ? Y.value : jn.value
|
|
977
952
|
}));
|
|
978
953
|
}
|
|
979
|
-
function
|
|
980
|
-
L.value = null,
|
|
954
|
+
function tr() {
|
|
955
|
+
L.value = null, Wt.value = !0;
|
|
981
956
|
}
|
|
982
|
-
function
|
|
983
|
-
|
|
957
|
+
function nr() {
|
|
958
|
+
or(), Wt.value = !1;
|
|
984
959
|
}
|
|
985
|
-
function
|
|
986
|
-
if (!H.value ||
|
|
960
|
+
function rr(e) {
|
|
961
|
+
if (!H.value || In.value || document.activeElement !== H.value || !Y.value.length) return;
|
|
987
962
|
let t = e.key === "ArrowUp", n = e.key === "ArrowDown", r = e.key === "ArrowLeft", i = e.key === "ArrowRight", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
988
963
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
989
964
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
990
|
-
|
|
965
|
+
or();
|
|
991
966
|
return;
|
|
992
967
|
}
|
|
993
968
|
if (a) {
|
|
994
969
|
if (L.value !== null) {
|
|
995
970
|
let e = Y.value[L.value];
|
|
996
|
-
e &&
|
|
971
|
+
e && Mn(e);
|
|
997
972
|
return;
|
|
998
973
|
}
|
|
999
|
-
|
|
974
|
+
P.value && Cn(P.value);
|
|
1000
975
|
return;
|
|
1001
976
|
}
|
|
1002
977
|
if (t || n) {
|
|
1003
978
|
let e = L.value;
|
|
1004
|
-
e = e === null ? n ? 0 : Y.value.length - 1 :
|
|
979
|
+
e = e === null ? n ? 0 : Y.value.length - 1 : ir(e + (n ? 1 : -1)), L.value = e, Nn.value = e;
|
|
1005
980
|
return;
|
|
1006
981
|
}
|
|
1007
982
|
if (!J.value.length) return;
|
|
1008
|
-
let s =
|
|
1009
|
-
s = s === null ? i ? 0 : J.value.length - 1 :
|
|
983
|
+
let s = P.value?.index ?? null;
|
|
984
|
+
s = s === null ? i ? 0 : J.value.length - 1 : ar(s + (i ? 1 : -1));
|
|
1010
985
|
let ee = J.value[s];
|
|
1011
|
-
ee &&
|
|
986
|
+
ee && xn(ee);
|
|
1012
987
|
}
|
|
1013
|
-
function
|
|
988
|
+
function ir(e) {
|
|
1014
989
|
let t = Y.value.length;
|
|
1015
990
|
return t ? (e % t + t) % t : null;
|
|
1016
991
|
}
|
|
1017
|
-
function
|
|
992
|
+
function ar(e) {
|
|
1018
993
|
let t = J.value.length;
|
|
1019
994
|
return t ? (e % t + t) % t : null;
|
|
1020
995
|
}
|
|
1021
|
-
function
|
|
1022
|
-
L.value = null,
|
|
996
|
+
function or() {
|
|
997
|
+
L.value = null, Nn.value = null, P.value ? Sn(P.value) : P.value = null;
|
|
1023
998
|
}
|
|
1024
|
-
let
|
|
999
|
+
let sr = f(() => ({
|
|
1025
1000
|
head: $.value.head,
|
|
1026
1001
|
body: $.value.body.map((e) => [e[0]?.name ?? "", ...e.slice(1)]),
|
|
1027
1002
|
caption: R.value.a11y.translations.tableCaption,
|
|
1028
1003
|
notice: R.value.a11y.translations.tableAvailable
|
|
1029
1004
|
}));
|
|
1030
1005
|
return Ee({
|
|
1031
|
-
getData:
|
|
1032
|
-
getImage:
|
|
1033
|
-
generateImage:
|
|
1034
|
-
generateSvg:
|
|
1035
|
-
generatePdf:
|
|
1036
|
-
generateCsv:
|
|
1037
|
-
hideSeries:
|
|
1038
|
-
showSeries:
|
|
1039
|
-
toggleAnnotator:
|
|
1040
|
-
toggleTable:
|
|
1041
|
-
toggleFullscreen:
|
|
1042
|
-
copyAlt:
|
|
1006
|
+
getData: Vn,
|
|
1007
|
+
getImage: Hn,
|
|
1008
|
+
generateImage: rn,
|
|
1009
|
+
generateSvg: Zn,
|
|
1010
|
+
generatePdf: nn,
|
|
1011
|
+
generateCsv: Bn,
|
|
1012
|
+
hideSeries: fn,
|
|
1013
|
+
showSeries: dn,
|
|
1014
|
+
toggleAnnotator: Ln,
|
|
1015
|
+
toggleTable: Rn,
|
|
1016
|
+
toggleFullscreen: kn,
|
|
1017
|
+
copyAlt: er
|
|
1043
1018
|
}), (e, t) => (x(), h("div", {
|
|
1044
1019
|
ref_key: "ridgelineChart",
|
|
1045
|
-
ref:
|
|
1020
|
+
ref: A,
|
|
1046
1021
|
class: Ve(`vue-data-ui-component vue-ui-ridgeline ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1047
|
-
id: `vue-ui-ridgeline_${
|
|
1022
|
+
id: `vue-ui-ridgeline_${N.value}`,
|
|
1048
1023
|
style: b({
|
|
1049
1024
|
fontFamily: R.value.style.fontFamily,
|
|
1050
1025
|
width: "100%",
|
|
@@ -1052,20 +1027,20 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1052
1027
|
background: R.value.style.chart.backgroundColor,
|
|
1053
1028
|
height: R.value.responsive ? "100%" : void 0
|
|
1054
1029
|
}),
|
|
1055
|
-
onMouseenter: t[3] ||= () => E(
|
|
1056
|
-
onMouseleave: t[4] ||= () => E(
|
|
1030
|
+
onMouseenter: t[3] ||= () => E(Xt)(!0),
|
|
1031
|
+
onMouseleave: t[4] ||= () => E(Xt)(!1)
|
|
1057
1032
|
}, [
|
|
1058
1033
|
g("div", {
|
|
1059
|
-
id: `chart-instructions-${
|
|
1034
|
+
id: `chart-instructions-${N.value}`,
|
|
1060
1035
|
class: "sr-only"
|
|
1061
1036
|
}, [g("p", null, T(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ye),
|
|
1062
|
-
|
|
1037
|
+
sr.value.body.length ? (x(), p(je, {
|
|
1063
1038
|
key: 0,
|
|
1064
|
-
uid:
|
|
1065
|
-
head:
|
|
1066
|
-
body:
|
|
1067
|
-
caption:
|
|
1068
|
-
notice:
|
|
1039
|
+
uid: N.value,
|
|
1040
|
+
head: sr.value.head,
|
|
1041
|
+
body: sr.value.body,
|
|
1042
|
+
caption: sr.value.caption,
|
|
1043
|
+
notice: sr.value.notice
|
|
1069
1044
|
}, null, 8, [
|
|
1070
1045
|
"uid",
|
|
1071
1046
|
"head",
|
|
@@ -1077,10 +1052,10 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1077
1052
|
key: 1,
|
|
1078
1053
|
color: R.value.style.chart.color,
|
|
1079
1054
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
1080
|
-
active:
|
|
1055
|
+
active: In.value,
|
|
1081
1056
|
svgRef: E(H),
|
|
1082
1057
|
isCursorPointer: z.value,
|
|
1083
|
-
onClose:
|
|
1058
|
+
onClose: Ln
|
|
1084
1059
|
}, {
|
|
1085
1060
|
"annotator-action-close": O(() => [w(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1086
1061
|
"annotator-action-color": O(({ color: t }) => [w(e.$slots, "annotator-action-color", y(v({ color: t })), void 0, !0)]),
|
|
@@ -1097,20 +1072,20 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1097
1072
|
"isCursorPointer"
|
|
1098
1073
|
])) : m("", !0),
|
|
1099
1074
|
w(e.$slots, "userConfig", {}, void 0, !0),
|
|
1100
|
-
|
|
1075
|
+
an.value ? (x(), h("div", {
|
|
1101
1076
|
key: 2,
|
|
1102
1077
|
ref_key: "noTitle",
|
|
1103
|
-
ref:
|
|
1078
|
+
ref: Nt,
|
|
1104
1079
|
class: "vue-data-ui-no-title-space",
|
|
1105
1080
|
style: "height:36px; width: 100%;background:transparent"
|
|
1106
1081
|
}, null, 512)) : m("", !0),
|
|
1107
1082
|
R.value.style.chart.title.text ? (x(), h("div", {
|
|
1108
1083
|
key: 3,
|
|
1109
1084
|
ref_key: "chartTitle",
|
|
1110
|
-
ref:
|
|
1085
|
+
ref: At,
|
|
1111
1086
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1112
1087
|
}, [(x(), p(we, {
|
|
1113
|
-
key: `title_${
|
|
1088
|
+
key: `title_${Pt.value}`,
|
|
1114
1089
|
config: {
|
|
1115
1090
|
title: {
|
|
1116
1091
|
cy: "ridgeline-div-title",
|
|
@@ -1122,15 +1097,15 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1122
1097
|
}
|
|
1123
1098
|
}
|
|
1124
1099
|
}, null, 8, ["config"]))], 512)) : m("", !0),
|
|
1125
|
-
R.value.userOptions.show && Ot.value && (E(
|
|
1100
|
+
R.value.userOptions.show && Ot.value && (E(Zt) || E(Yt)) ? (x(), p(E(St), {
|
|
1126
1101
|
ref_key: "userOptionsRef",
|
|
1127
1102
|
ref: Ut,
|
|
1128
|
-
key: `user_option_${
|
|
1103
|
+
key: `user_option_${Lt.value}`,
|
|
1129
1104
|
backgroundColor: R.value.style.chart.backgroundColor,
|
|
1130
1105
|
color: R.value.style.chart.color,
|
|
1131
|
-
isPrinting: E(
|
|
1132
|
-
isImaging: E(
|
|
1133
|
-
uid:
|
|
1106
|
+
isPrinting: E(en),
|
|
1107
|
+
isImaging: E(tn),
|
|
1108
|
+
uid: N.value,
|
|
1134
1109
|
hasTooltip: !1,
|
|
1135
1110
|
callbacks: R.value.userOptions.callbacks,
|
|
1136
1111
|
hasPdf: R.value.userOptions.buttons.pdf,
|
|
@@ -1143,23 +1118,23 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1143
1118
|
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
1144
1119
|
isFullscreen: Q.value,
|
|
1145
1120
|
printScale: R.value.userOptions.print.scale,
|
|
1146
|
-
chartElement:
|
|
1121
|
+
chartElement: A.value,
|
|
1147
1122
|
position: R.value.userOptions.position,
|
|
1148
1123
|
isTooltip: !1,
|
|
1149
1124
|
titles: { ...R.value.userOptions.buttonTitles },
|
|
1150
1125
|
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
1151
|
-
isAnnotation:
|
|
1126
|
+
isAnnotation: In.value,
|
|
1152
1127
|
tableDialog: R.value.table.useDialog,
|
|
1153
|
-
style: b({ visibility: E(
|
|
1128
|
+
style: b({ visibility: E(Zt) ? E(Yt) ? "visible" : "hidden" : "visible" }),
|
|
1154
1129
|
isCursorPointer: z.value,
|
|
1155
|
-
onToggleFullscreen:
|
|
1156
|
-
onGeneratePdf: E(
|
|
1157
|
-
onGenerateCsv:
|
|
1158
|
-
onGenerateImage:
|
|
1159
|
-
onGenerateSvg:
|
|
1160
|
-
onToggleTable:
|
|
1161
|
-
onToggleAnnotator:
|
|
1162
|
-
onCopyAlt:
|
|
1130
|
+
onToggleFullscreen: kn,
|
|
1131
|
+
onGeneratePdf: E(nn),
|
|
1132
|
+
onGenerateCsv: Bn,
|
|
1133
|
+
onGenerateImage: E(Qn),
|
|
1134
|
+
onGenerateSvg: E(Zn),
|
|
1135
|
+
onToggleTable: Rn,
|
|
1136
|
+
onToggleAnnotator: Ln,
|
|
1137
|
+
onCopyAlt: er
|
|
1163
1138
|
}, Ie({ _: 2 }, [
|
|
1164
1139
|
e.$slots.menuIcon ? {
|
|
1165
1140
|
name: "menuIcon",
|
|
@@ -1230,53 +1205,28 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1230
1205
|
fn: O(() => [w(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1231
1206
|
key: "11"
|
|
1232
1207
|
} : void 0
|
|
1233
|
-
]), 1032,
|
|
1234
|
-
"backgroundColor",
|
|
1235
|
-
"color",
|
|
1236
|
-
"isPrinting",
|
|
1237
|
-
"isImaging",
|
|
1238
|
-
"uid",
|
|
1239
|
-
"callbacks",
|
|
1240
|
-
"hasPdf",
|
|
1241
|
-
"hasImg",
|
|
1242
|
-
"hasSvg",
|
|
1243
|
-
"hasXls",
|
|
1244
|
-
"hasTable",
|
|
1245
|
-
"hasFullscreen",
|
|
1246
|
-
"hasAltCopy",
|
|
1247
|
-
"isFullscreen",
|
|
1248
|
-
"printScale",
|
|
1249
|
-
"chartElement",
|
|
1250
|
-
"position",
|
|
1251
|
-
"titles",
|
|
1252
|
-
"hasAnnotator",
|
|
1253
|
-
"isAnnotation",
|
|
1254
|
-
"tableDialog",
|
|
1255
|
-
"style",
|
|
1256
|
-
"isCursorPointer",
|
|
1257
|
-
"onGeneratePdf"
|
|
1258
|
-
])) : m("", !0),
|
|
1208
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.callbacks.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.printScale.chartElement.position.titles.hasAnnotator.isAnnotation.tableDialog.style.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg".split("."))) : m("", !0),
|
|
1259
1209
|
g("div", Xe, [(x(), h("svg", {
|
|
1260
1210
|
ref_key: "svgRef",
|
|
1261
1211
|
ref: H,
|
|
1262
1212
|
xmlns: E(le),
|
|
1263
|
-
"aria-describedby": `chart-instructions-${
|
|
1213
|
+
"aria-describedby": `chart-instructions-${N.value}`,
|
|
1264
1214
|
class: Ve({
|
|
1265
1215
|
"vue-data-ui-fullscreen--on": Q.value,
|
|
1266
1216
|
"vue-data-ui-fulscreen--off": !Q.value
|
|
1267
1217
|
}),
|
|
1268
1218
|
viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${K.value.fullHeight <= 0 ? 10 : K.value.fullHeight}`,
|
|
1269
|
-
style: b(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color};${R.value.responsive ? `height: ${
|
|
1219
|
+
style: b(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.chart.color};${R.value.responsive ? `height: ${Vt.value}px; width: 100%;` : ""}`),
|
|
1270
1220
|
tabindex: "0",
|
|
1271
|
-
onFocus:
|
|
1272
|
-
onBlur:
|
|
1273
|
-
onKeydown:
|
|
1221
|
+
onFocus: tr,
|
|
1222
|
+
onBlur: nr,
|
|
1223
|
+
onKeydown: rr
|
|
1274
1224
|
}, [
|
|
1275
1225
|
Re(E(Ct)),
|
|
1276
1226
|
g("defs", null, [(x(!0), h(d, null, C(Z.value, (e, t) => (x(), p(ke, {
|
|
1277
1227
|
t: "linear",
|
|
1278
|
-
id: `gradient-${e.id}-${
|
|
1279
|
-
key: `gradient-${e.id}-${
|
|
1228
|
+
id: `gradient-${e.id}-${N.value}`,
|
|
1229
|
+
key: `gradient-${e.id}-${N.value}`,
|
|
1280
1230
|
x1: "50%",
|
|
1281
1231
|
y1: "0%",
|
|
1282
1232
|
x2: "50%",
|
|
@@ -1306,7 +1256,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1306
1256
|
}, null, 8, ["id", "stops"]))), 128)), (x(!0), h(d, null, C(Y.value, (e, t) => (x(), h(d, null, [(x(!0), h(d, null, C(e.datapoints, (e, t) => (x(), p(ke, {
|
|
1307
1257
|
t: "linear",
|
|
1308
1258
|
key: `grad${e.id}`,
|
|
1309
|
-
id: `gradient-single-${
|
|
1259
|
+
id: `gradient-single-${N.value}-${e.uid}`,
|
|
1310
1260
|
x1: "50%",
|
|
1311
1261
|
y1: "0%",
|
|
1312
1262
|
x2: "50%",
|
|
@@ -1338,10 +1288,10 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1338
1288
|
e.$slots.pattern ? (x(), h("g", Qe, [g("defs", null, [w(e.$slots, "pattern", ze({ ref_for: !0 }, {
|
|
1339
1289
|
datapointIndex: n,
|
|
1340
1290
|
seriesIndex: r,
|
|
1341
|
-
patternId: `pattern_${
|
|
1291
|
+
patternId: `pattern_${N.value}_${t.uid}`
|
|
1342
1292
|
}), void 0, !0)])])) : m("", !0),
|
|
1343
1293
|
g("path", {
|
|
1344
|
-
fill: e.$slots.pattern ? `url(#pattern_${
|
|
1294
|
+
fill: e.$slots.pattern ? `url(#pattern_${N.value}_${t.uid})` : R.value.style.chart.backgroundColor,
|
|
1345
1295
|
stroke: "none",
|
|
1346
1296
|
"stroke-linecap": "round",
|
|
1347
1297
|
d: R.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
@@ -1360,7 +1310,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1360
1310
|
})
|
|
1361
1311
|
}, null, 12, et),
|
|
1362
1312
|
g("path", {
|
|
1363
|
-
fill: R.value.style.chart.areas.useGradient ? R.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${
|
|
1313
|
+
fill: R.value.style.chart.areas.useGradient ? R.value.style.chart.areas.useCommonColor ? `url(#gradient-${t.id}-${N.value})` : `url(#gradient-single-${N.value}-${t.uid})` : t.color,
|
|
1364
1314
|
stroke: "none",
|
|
1365
1315
|
d: R.value.style.chart.areas.smooth ? t.smoothPath : t.straightPath,
|
|
1366
1316
|
"stroke-linecap": "round",
|
|
@@ -1407,17 +1357,17 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1407
1357
|
"font-weight": R.value.style.chart.yAxis.labels.bold ? "bold" : "normal",
|
|
1408
1358
|
fill: R.value.style.chart.yAxis.labels.color,
|
|
1409
1359
|
style: b({ cursor: R.value.style.chart.dialog.show && z.value ? "pointer" : "default" }),
|
|
1410
|
-
"text-decoration": R.value.style.chart.dialog.show && (
|
|
1411
|
-
onMouseenter: (e) =>
|
|
1412
|
-
onMouseleave:
|
|
1413
|
-
onClick: (e) =>
|
|
1360
|
+
"text-decoration": R.value.style.chart.dialog.show && (Nn.value === n || F.value && t.uid === F.value.uid || L.value === n) ? "underline" : "",
|
|
1361
|
+
onMouseenter: (e) => Pn(n),
|
|
1362
|
+
onMouseleave: Fn,
|
|
1363
|
+
onClick: (e) => Mn(t)
|
|
1414
1364
|
}, T(t.name), 45, at)]))), 128)),
|
|
1415
1365
|
R.value.style.chart.xAxis.labels.values.length ? (x(), h("g", {
|
|
1416
1366
|
key: 0,
|
|
1417
1367
|
ref_key: "timeLabelsEls",
|
|
1418
|
-
ref:
|
|
1368
|
+
ref: Ht
|
|
1419
1369
|
}, [(x(!0), h(d, null, C(J.value, (t, n) => w(e.$slots, "time-label", ze({ ref_for: !0 }, {
|
|
1420
|
-
show: t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !R.value.style.chart.xAxis.labels.showOnlyAtModulo || t && R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t &&
|
|
1370
|
+
show: t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !R.value.style.chart.xAxis.labels.showOnlyAtModulo || t && R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && P.value && P.value.index === n || t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && R.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(J.value.length / R.value.style.chart.xAxis.labels.modulo) === 0,
|
|
1421
1371
|
fontSize: R.value.style.chart.xAxis.labels.fontSize,
|
|
1422
1372
|
content: t.label,
|
|
1423
1373
|
textAnchor: R.value.style.chart.xAxis.labels.rotation > 0 ? "start" : R.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
@@ -1425,7 +1375,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1425
1375
|
transform: `translate(${t.selectorX}, ${K.value.top + t.height + R.value.style.chart.xAxis.labels.offsetY}), rotate(${R.value.style.chart.xAxis.labels.rotation})`,
|
|
1426
1376
|
x: t.selectorX,
|
|
1427
1377
|
y: K.value.bottom + R.value.style.chart.xAxis.labels.offsetY
|
|
1428
|
-
}), () => [t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !R.value.style.chart.xAxis.labels.showOnlyAtModulo || t && R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t &&
|
|
1378
|
+
}), () => [t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && !R.value.style.chart.xAxis.labels.showOnlyAtModulo || t && R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && (n === 0 || n === J.value.length - 1) || t && P.value && P.value.index === n || t && !R.value.style.chart.xAxis.labels.showOnlyFirstAndLast && R.value.style.chart.xAxis.labels.showOnlyAtModulo && n % Math.floor(J.value.length / R.value.style.chart.xAxis.labels.modulo) === 0 ? (x(), h("g", ot, [String(t.label).includes("\n") ? (x(), h("text", {
|
|
1429
1379
|
key: 1,
|
|
1430
1380
|
class: "vue-ui-ridgeline-x-axis-label",
|
|
1431
1381
|
"font-size": R.value.style.chart.xAxis.labels.fontSize,
|
|
@@ -1433,7 +1383,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1433
1383
|
"font-weight": R.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1434
1384
|
transform: `translate(${t.selectorX}, ${K.value.bottom + R.value.style.chart.xAxis.labels.offsetY}), rotate(${R.value.style.chart.xAxis.labels.rotation})`,
|
|
1435
1385
|
"text-anchor": R.value.style.chart.xAxis.labels.rotation > 0 ? "start" : R.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1436
|
-
style: b({ opacity:
|
|
1386
|
+
style: b({ opacity: P.value ? P.value.index === n ? 1 : .2 : 1 }),
|
|
1437
1387
|
innerHTML: E(r)({
|
|
1438
1388
|
content: String(t.label),
|
|
1439
1389
|
fontSize: R.value.style.chart.xAxis.labels.fontSize,
|
|
@@ -1449,7 +1399,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1449
1399
|
"font-weight": R.value.style.chart.xAxis.labels.bold ? "bold" : "normal",
|
|
1450
1400
|
transform: `translate(${t.selectorX}, ${K.value.bottom + R.value.style.chart.xAxis.labels.offsetY}), rotate(${R.value.style.chart.xAxis.labels.rotation})`,
|
|
1451
1401
|
"text-anchor": R.value.style.chart.xAxis.labels.rotation > 0 ? "start" : R.value.style.chart.xAxis.labels.rotation < 0 ? "end" : "middle",
|
|
1452
|
-
style: b({ opacity:
|
|
1402
|
+
style: b({ opacity: P.value ? P.value.index === n ? 1 : .2 : 1 })
|
|
1453
1403
|
}, T(t.label), 13, st))])) : m("", !0)], !0)), 256))], 512)) : m("", !0),
|
|
1454
1404
|
g("g", null, [
|
|
1455
1405
|
(x(!0), h(d, null, C(J.value, (e, t) => (x(), h("rect", {
|
|
@@ -1458,23 +1408,23 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1458
1408
|
width: e.width < 0 ? .1 : e.width,
|
|
1459
1409
|
height: e.height < 0 ? .1 : e.height,
|
|
1460
1410
|
fill: "transparent",
|
|
1461
|
-
onMouseenter: (t) =>
|
|
1462
|
-
onMouseleave: (t) =>
|
|
1463
|
-
onClick: () =>
|
|
1411
|
+
onMouseenter: (t) => xn(e),
|
|
1412
|
+
onMouseleave: (t) => Sn(e),
|
|
1413
|
+
onClick: () => Cn(e)
|
|
1464
1414
|
}, null, 40, lt))), 256)),
|
|
1465
|
-
R.value.style.chart.selector.show &&
|
|
1415
|
+
R.value.style.chart.selector.show && P.value ? (x(), h("line", {
|
|
1466
1416
|
key: 0,
|
|
1467
|
-
x1:
|
|
1468
|
-
x2:
|
|
1469
|
-
y1:
|
|
1470
|
-
y2:
|
|
1417
|
+
x1: P.value.selectorX,
|
|
1418
|
+
x2: P.value.selectorX,
|
|
1419
|
+
y1: P.value.y,
|
|
1420
|
+
y2: P.value.y + P.value.height - V.value / 2,
|
|
1471
1421
|
stroke: R.value.style.chart.selector.stroke,
|
|
1472
1422
|
"stroke-width": R.value.style.chart.selector.strokeWidth,
|
|
1473
1423
|
"stroke-dasharray": R.value.style.chart.selector.strokeDasharray,
|
|
1474
1424
|
"stroke-linecap": "round",
|
|
1475
1425
|
style: { pointerEvents: "none" }
|
|
1476
1426
|
}, null, 8, ut)) : m("", !0),
|
|
1477
|
-
|
|
1427
|
+
P.value ? (x(!0), h(d, { key: 1 }, C(Y.value, (e) => (x(), h(d, null, [(x(!0), h(d, null, C(e.datapoints, (e) => (x(), h(d, null, [(x(!0), h(d, null, C(e.plots, (t, n) => (x(), h(d, null, [P.value && P.value.index === n ? (x(), h("circle", {
|
|
1478
1428
|
key: 0,
|
|
1479
1429
|
cx: t.x,
|
|
1480
1430
|
cy: t.y,
|
|
@@ -1483,16 +1433,16 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1483
1433
|
r: R.value.style.chart.selector.dot.radius,
|
|
1484
1434
|
fill: R.value.style.chart.selector.dot.useDatapointColor ? e.color : R.value.style.chart.selector.dot.fill,
|
|
1485
1435
|
style: { pointerEvents: "none" }
|
|
1486
|
-
}, null, 8, dt)) : m("", !0),
|
|
1436
|
+
}, null, 8, dt)) : m("", !0), P.value && P.value.index === n ? (x(), h("text", {
|
|
1487
1437
|
key: 1,
|
|
1488
|
-
x:
|
|
1438
|
+
x: Tn(t.x, E(u)(R.value.style.chart.selector.labels.formatter, t.value, E(l)({
|
|
1489
1439
|
p: R.value.style.chart.xAxis.labels.prefix,
|
|
1490
1440
|
v: t.value,
|
|
1491
1441
|
s: R.value.style.chart.xAxis.labels.suffix,
|
|
1492
1442
|
r: R.value.style.chart.selector.labels.rounding
|
|
1493
1443
|
})), R.value.style.chart.selector.labels.fontSize) ? t.x - R.value.style.chart.selector.labels.fontSize / 2 : t.x + R.value.style.chart.selector.labels.fontSize / 2,
|
|
1494
1444
|
y: t.y + R.value.style.chart.selector.labels.fontSize / 3,
|
|
1495
|
-
"text-anchor":
|
|
1445
|
+
"text-anchor": Tn(t.x, E(u)(R.value.style.chart.selector.labels.formatter, t.value, E(l)({
|
|
1496
1446
|
p: R.value.style.chart.xAxis.labels.prefix,
|
|
1497
1447
|
v: t.value,
|
|
1498
1448
|
s: R.value.style.chart.xAxis.labels.suffix,
|
|
@@ -1511,37 +1461,37 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1511
1461
|
w(e.$slots, "svg", { svg: {
|
|
1512
1462
|
...G.value,
|
|
1513
1463
|
drawingArea: K.value,
|
|
1514
|
-
isPrintingImg: E(
|
|
1515
|
-
isPrintingSvg:
|
|
1464
|
+
isPrintingImg: E(en) || E(tn) || E(Yn),
|
|
1465
|
+
isPrintingSvg: E(Xn)
|
|
1516
1466
|
} }, void 0, !0)
|
|
1517
1467
|
], 46, Ze)), e.$slots.hint ? (x(), h("div", pt, [w(e.$slots, "hint", y(v({
|
|
1518
1468
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
1519
|
-
isVisible:
|
|
1469
|
+
isVisible: Wt.value
|
|
1520
1470
|
})), void 0, !0)])) : m("", !0)]),
|
|
1521
|
-
e.$slots.watermark ? (x(), h("div", mt, [w(e.$slots, "watermark", y(v({ isPrinting: E(
|
|
1471
|
+
e.$slots.watermark ? (x(), h("div", mt, [w(e.$slots, "watermark", y(v({ isPrinting: E(en) || E(tn) || E(Yn) || E(Xn) })), void 0, !0)])) : m("", !0),
|
|
1522
1472
|
g("div", {
|
|
1523
1473
|
ref_key: "chartLegend",
|
|
1524
|
-
ref:
|
|
1474
|
+
ref: jt
|
|
1525
1475
|
}, [w(e.$slots, "legend", { legend: Z.value }, () => [R.value.style.chart.legend.show ? (x(), p(Pe, {
|
|
1526
|
-
key: `legend_${
|
|
1476
|
+
key: `legend_${It.value}`,
|
|
1527
1477
|
legendSet: Z.value,
|
|
1528
|
-
config:
|
|
1478
|
+
config: On.value,
|
|
1529
1479
|
isCursorPointer: z.value,
|
|
1530
|
-
onClickMarker: t[0] ||= ({ legend: e }) =>
|
|
1480
|
+
onClickMarker: t[0] ||= ({ legend: e }) => ln(e.id)
|
|
1531
1481
|
}, Ie({
|
|
1532
|
-
item: O(({ legend: e }) => [E(
|
|
1482
|
+
item: O(({ legend: e }) => [E(qt) ? m("", !0) : (x(), h("div", {
|
|
1533
1483
|
key: 0,
|
|
1534
1484
|
style: b(`opacity:${X.value.includes(e.id) ? .5 : 1}`),
|
|
1535
1485
|
onClick: (t) => e.segregate()
|
|
1536
1486
|
}, T(e.name), 13, ht))]),
|
|
1537
|
-
legendToggle: O(() => [Z.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(
|
|
1487
|
+
legendToggle: O(() => [Z.value.length > 2 && R.value.style.chart.legend.selectAllToggle.show && !E(qt) ? (x(), p(Ae, {
|
|
1538
1488
|
key: 0,
|
|
1539
1489
|
backgroundColor: R.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1540
1490
|
color: R.value.style.chart.legend.selectAllToggle.color,
|
|
1541
1491
|
fontSize: R.value.style.chart.legend.fontSize,
|
|
1542
1492
|
checked: X.value.length > 0,
|
|
1543
1493
|
isCursorPointer: z.value,
|
|
1544
|
-
onToggle:
|
|
1494
|
+
onToggle: cn
|
|
1545
1495
|
}, null, 8, [
|
|
1546
1496
|
"backgroundColor",
|
|
1547
1497
|
"color",
|
|
@@ -1560,7 +1510,7 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1560
1510
|
x: 30,
|
|
1561
1511
|
y: 30
|
|
1562
1512
|
},
|
|
1563
|
-
fill: `url(#pattern_${
|
|
1513
|
+
fill: `url(#pattern_${N.value}_${t})`
|
|
1564
1514
|
}, null, 8, ["shape", "fill"])]),
|
|
1565
1515
|
key: "0"
|
|
1566
1516
|
} : void 0]), 1032, [
|
|
@@ -1571,24 +1521,24 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1571
1521
|
e.$slots.source ? (x(), h("div", {
|
|
1572
1522
|
key: 6,
|
|
1573
1523
|
ref_key: "source",
|
|
1574
|
-
ref:
|
|
1524
|
+
ref: Mt,
|
|
1575
1525
|
dir: "auto"
|
|
1576
1526
|
}, [w(e.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1577
|
-
Ot.value && R.value.userOptions.buttons.table ? (x(), p(Ue(
|
|
1527
|
+
Ot.value && R.value.userOptions.buttons.table ? (x(), p(Ue(Wn.value.component), ze({ key: 7 }, Wn.value.props, {
|
|
1578
1528
|
ref_key: "tableUnit",
|
|
1579
|
-
ref:
|
|
1580
|
-
onClose:
|
|
1529
|
+
ref: I,
|
|
1530
|
+
onClose: Gn
|
|
1581
1531
|
}), Ie({
|
|
1582
1532
|
content: O(() => [(x(), p(E(bt), {
|
|
1583
|
-
key: `table_${
|
|
1533
|
+
key: `table_${Ft.value}`,
|
|
1584
1534
|
colNames: $.value.colNames,
|
|
1585
1535
|
head: $.value.head,
|
|
1586
1536
|
body: $.value.body,
|
|
1587
1537
|
config: $.value.config,
|
|
1588
|
-
title: R.value.table.useDialog ? "" :
|
|
1538
|
+
title: R.value.table.useDialog ? "" : Wn.value.title,
|
|
1589
1539
|
withCloseButton: !R.value.table.useDialog,
|
|
1590
1540
|
isCursorPointer: z.value,
|
|
1591
|
-
onClose:
|
|
1541
|
+
onClose: Gn
|
|
1592
1542
|
}, {
|
|
1593
1543
|
th: O(({ th: e }) => [g("div", { innerHTML: e }, null, 8, gt)]),
|
|
1594
1544
|
td: O(({ td: e }) => [Le(T(e.name ? e.name : E(u)(R.value.style.chart.selector.labels.formatter, e, E(l)({
|
|
@@ -1610,41 +1560,41 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1610
1560
|
_: 2
|
|
1611
1561
|
}, [R.value.table.useDialog ? {
|
|
1612
1562
|
name: "title",
|
|
1613
|
-
fn: O(() => [Le(T(
|
|
1563
|
+
fn: O(() => [Le(T(Wn.value.title), 1)]),
|
|
1614
1564
|
key: "0"
|
|
1615
1565
|
} : void 0, R.value.table.useDialog ? {
|
|
1616
1566
|
name: "actions",
|
|
1617
1567
|
fn: O(() => [g("button", {
|
|
1618
1568
|
tabindex: "0",
|
|
1619
1569
|
class: "vue-ui-user-options-button",
|
|
1620
|
-
onClick: t[1] ||= (e) =>
|
|
1570
|
+
onClick: t[1] ||= (e) => Bn(R.value.userOptions.callbacks.csv),
|
|
1621
1571
|
style: b({ cursor: z.value ? "pointer" : "default" })
|
|
1622
1572
|
}, [Re(E(vt), {
|
|
1623
1573
|
name: "fileCsv",
|
|
1624
|
-
stroke:
|
|
1574
|
+
stroke: Wn.value.props.color
|
|
1625
1575
|
}, null, 8, ["stroke"])], 4)]),
|
|
1626
1576
|
key: "1"
|
|
1627
1577
|
} : void 0]), 1040)) : m("", !0),
|
|
1628
1578
|
R.value.style.chart.dialog.show ? (x(), p(E(wt), {
|
|
1629
1579
|
key: 8,
|
|
1630
1580
|
ref_key: "dialog",
|
|
1631
|
-
ref:
|
|
1632
|
-
onClose: t[2] ||= (e) =>
|
|
1581
|
+
ref: Bt,
|
|
1582
|
+
onClose: t[2] ||= (e) => F.value = null,
|
|
1633
1583
|
backgroundColor: R.value.style.chart.dialog.backgroundColor,
|
|
1634
1584
|
color: R.value.style.chart.dialog.color,
|
|
1635
1585
|
headerBg: R.value.style.chart.dialog.header.backgroundColor,
|
|
1636
1586
|
headerColor: R.value.style.chart.dialog.header.color,
|
|
1637
1587
|
isFullscreen: Q.value,
|
|
1638
|
-
fullscreenParent:
|
|
1588
|
+
fullscreenParent: A.value,
|
|
1639
1589
|
isCursorPointer: z.value,
|
|
1640
1590
|
withPadding: ""
|
|
1641
1591
|
}, {
|
|
1642
|
-
title: O(() => [Le(T(
|
|
1643
|
-
content: O(() => [
|
|
1592
|
+
title: O(() => [Le(T(F.value.name), 1)]),
|
|
1593
|
+
content: O(() => [F.value ? (x(), p(E(_t), {
|
|
1644
1594
|
key: 0,
|
|
1645
|
-
config:
|
|
1646
|
-
dataset:
|
|
1647
|
-
onCopyAlt:
|
|
1595
|
+
config: An.value,
|
|
1596
|
+
dataset: jn.value,
|
|
1597
|
+
onCopyAlt: $n
|
|
1648
1598
|
}, null, 8, ["config", "dataset"])) : m("", !0)]),
|
|
1649
1599
|
_: 1
|
|
1650
1600
|
}, 8, [
|
|
@@ -1656,9 +1606,9 @@ var qe = /* @__PURE__ */ e({ default: () => _t }), Je = ["id"], Ye = ["id"], Xe
|
|
|
1656
1606
|
"fullscreenParent",
|
|
1657
1607
|
"isCursorPointer"
|
|
1658
1608
|
])) : m("", !0),
|
|
1659
|
-
w(e.$slots, "skeleton", {}, () => [E(
|
|
1609
|
+
w(e.$slots, "skeleton", {}, () => [E(qt) ? (x(), p(ve, { key: 0 })) : m("", !0)], !0)
|
|
1660
1610
|
], 46, Je));
|
|
1661
1611
|
}
|
|
1662
|
-
}, [["__scopeId", "data-v-
|
|
1612
|
+
}, [["__scopeId", "data-v-861273fd"]]);
|
|
1663
1613
|
//#endregion
|
|
1664
1614
|
export { qe as n, _t as t };
|