vue-data-ui 3.22.4 → 3.22.5
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-Cm-3hwIF.js → PackageVersion-CqE8ssFu.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.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-kpi.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-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-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-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.js +1 -1
- package/dist/{package-CRlwXCDr.js → package-YOcaZtwF.js} +1 -1
- package/dist/{render-common-D6ny-Fwu.js → render-common-B80rr2N_.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 +1 -0
- package/dist/{vue-data-ui-DTWqd0R2.js → vue-data-ui-mqURXOql.js} +60 -60
- package/dist/vue-data-ui.js +60 -60
- package/dist/{vue-ui-3d-bar-DBpSRV-C.js → vue-ui-3d-bar-BZ1Slxfu.js} +1 -1
- package/dist/{vue-ui-age-pyramid-e09oK-Fp.js → vue-ui-age-pyramid-uUVFZo8M.js} +1 -1
- package/dist/{vue-ui-bullet-tlj5_z_z.js → vue-ui-bullet-RGCGF_cO.js} +1 -1
- package/dist/{vue-ui-bump-BD0Uq3As.js → vue-ui-bump-CiUmHi6k.js} +1 -1
- package/dist/{vue-ui-candlestick-CZxsNGKS.js → vue-ui-candlestick-BJUk5fMm.js} +1 -1
- package/dist/{vue-ui-carousel-table-ycbcmBKt.js → vue-ui-carousel-table-BksIDurC.js} +1 -1
- package/dist/{vue-ui-chestnut-CnEsjvh4.js → vue-ui-chestnut-B3OHA5rg.js} +1 -1
- package/dist/{vue-ui-chord-BZhXsZXp.js → vue-ui-chord-DETV2viY.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPC6zUis.js → vue-ui-circle-pack-DddaioRm.js} +1 -1
- package/dist/{vue-ui-cursor-DF_e5k1s.js → vue-ui-cursor-D2-hWt_G.js} +1 -1
- package/dist/{vue-ui-dag-BIo4-Oa8.js → vue-ui-dag-Dp7pV6Ps.js} +1 -1
- package/dist/{vue-ui-dashboard-BEtF6UX2.js → vue-ui-dashboard-D91C5cXo.js} +57 -57
- package/dist/{vue-ui-digits-07IxTlNO.js → vue-ui-digits-CMA3U4ZS.js} +1 -1
- package/dist/{vue-ui-donut-C4FcvXm3.js → vue-ui-donut-DObpw5zP.js} +1 -1
- package/dist/{vue-ui-donut-C5oRCxAO.js → vue-ui-donut-DpiS28CQ.js} +1 -1
- package/dist/{vue-ui-donut-evolution-BSeyPC9k.js → vue-ui-donut-evolution-2B61hvv2.js} +1 -1
- package/dist/{vue-ui-dumbbell-Cykw4WYn.js → vue-ui-dumbbell-Cmr65TNE.js} +1 -1
- package/dist/{vue-ui-flow-R_dLE1WS.js → vue-ui-flow-7Yfsu6AY.js} +1 -1
- package/dist/{vue-ui-funnel-Ct5xQdak.js → vue-ui-funnel-BLRBDW1a.js} +1 -1
- package/dist/{vue-ui-galaxy-B5BkdIt5.js → vue-ui-galaxy-B9cxOcoE.js} +1 -1
- package/dist/{vue-ui-gauge-AbzY-7Gg.js → vue-ui-gauge-yo4G5HMt.js} +1 -1
- package/dist/{vue-ui-geo-DVT9XEC3.js → vue-ui-geo-BOHI6oMZ.js} +1 -1
- package/dist/{vue-ui-gizmo-DJTRXao8.js → vue-ui-gizmo-DI-35oK-.js} +1 -1
- package/dist/{vue-ui-heatmap-BCFId15K.js → vue-ui-heatmap-DBVM90VE.js} +1 -1
- package/dist/{vue-ui-history-plot-DCeroetw.js → vue-ui-history-plot-BiWpOHKE.js} +601 -586
- package/dist/{vue-ui-horizontal-bar-j3jszojt.js → vue-ui-horizontal-bar-XBrvSxtJ.js} +1 -1
- package/dist/{vue-ui-kpi-DJjF6tcf.js → vue-ui-kpi-55wwhSBh.js} +1 -1
- package/dist/{vue-ui-molecule-2pfoR63d.js → vue-ui-molecule-DB3rmTw1.js} +1 -1
- package/dist/{vue-ui-mood-radar-DP_4LHfZ.js → vue-ui-mood-radar-izcbwGOc.js} +1 -1
- package/dist/{vue-ui-nested-donuts-DFsLZEqx.js → vue-ui-nested-donuts-DRJ1QT2n.js} +1 -1
- package/dist/{vue-ui-onion-CzXx3Rme.js → vue-ui-onion-xTZOmmtb.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BY6dptUG.js → vue-ui-parallel-coordinate-plot-BxQ7D2_o.js} +1 -1
- package/dist/{vue-ui-quadrant-Br_iZmcw.js → vue-ui-quadrant-BvAmtyAE.js} +1 -1
- package/dist/{vue-ui-quick-chart-CnIFPFPv.js → vue-ui-quick-chart-CJ1xQgYc.js} +1 -1
- package/dist/{vue-ui-radar-CNwKFbHc.js → vue-ui-radar-C26C6p7e.js} +1 -1
- package/dist/{vue-ui-relation-circle-BVDIikGi.js → vue-ui-relation-circle-Dl1aWFAI.js} +1 -1
- package/dist/{vue-ui-ridgeline-Kw50zROq.js → vue-ui-ridgeline-BbJa5C-d.js} +1 -1
- package/dist/{vue-ui-rings-BDJyoWvT.js → vue-ui-rings-CyrvskTi.js} +1 -1
- package/dist/{vue-ui-scatter-DoL5Kh1Y.js → vue-ui-scatter-D9Iw5xlb.js} +1 -1
- package/dist/{vue-ui-skeleton-BOHwJSdz.js → vue-ui-skeleton-C4D0i9ho.js} +1 -1
- package/dist/{vue-ui-spark-trend-OgSFIFh0.js → vue-ui-spark-trend-CMb7UI2t.js} +1 -1
- package/dist/{vue-ui-sparkbar-D8FdqMB_.js → vue-ui-sparkbar-DEawjWhg.js} +1 -1
- package/dist/{vue-ui-sparkgauge-CBpPbVkw.js → vue-ui-sparkgauge-mubHGQF_.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BQjbLa2k.js → vue-ui-sparkhistogram-D8N-jNBt.js} +1 -1
- package/dist/{vue-ui-sparkline-BJfh5Lje.js → vue-ui-sparkline-D4p0PS3-.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-1WUQrqd7.js → vue-ui-sparkstackbar-DnrZkIIc.js} +1 -1
- package/dist/{vue-ui-stackbar-Dqs7_g8D.js → vue-ui-stackbar-BzHSHKqe.js} +1 -1
- package/dist/{vue-ui-stackline-IRjugedp.js → vue-ui-stackline-CWSvsW1n.js} +1 -1
- package/dist/{vue-ui-strip-plot-B7D6Hk8R.js → vue-ui-strip-plot-pPiVqFYo.js} +1 -1
- package/dist/{vue-ui-table-Bqi9XNvY.js → vue-ui-table-BzqQKuL-.js} +2 -2
- package/dist/{vue-ui-table-sparkline-0Ffb2jdf.js → vue-ui-table-sparkline-BnavmY2R.js} +1 -1
- package/dist/{vue-ui-thermometer-Di5PXtEO.js → vue-ui-thermometer-ePIxpTuE.js} +1 -1
- package/dist/{vue-ui-timer-9CDcd-gP.js → vue-ui-timer-BQZxD91f.js} +1 -1
- package/dist/{vue-ui-tiremarks-BAQ-cCSq.js → vue-ui-tiremarks-CDOlCWS8.js} +1 -1
- package/dist/{vue-ui-treemap-CLOlWiDE.js → vue-ui-treemap-DrZlX_7n.js} +1 -1
- package/dist/{vue-ui-waffle-DG2IfACo.js → vue-ui-waffle-BpZrFfUb.js} +1 -1
- package/dist/{vue-ui-wheel-BfXJFCjv.js → vue-ui-wheel-DRfyK9q9.js} +1 -1
- package/dist/{vue-ui-word-cloud-3NJy1z6d.js → vue-ui-word-cloud-D0JUA9I9.js} +1 -1
- package/dist/{vue-ui-world-vrGT5g1H.js → vue-ui-world-Dx-41fUM.js} +1 -1
- package/dist/{vue-ui-xy-Dg0wxSeC.js → vue-ui-xy-BLSGO4Lm.js} +1 -1
- package/dist/{vue-ui-xy-Cb7u46JN.js → vue-ui-xy-DpRqQ09J.js} +1 -1
- package/package.json +1 -1
|
@@ -179,88 +179,88 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
179
179
|
"copyAlt"
|
|
180
180
|
],
|
|
181
181
|
setup(e, { expose: we, emit: Ke }) {
|
|
182
|
-
let zt = v(() => import("./Tooltip-BhKov422.js")), Bt = v(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), Vt = v(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), Ht = v(() => import("./DataTable-PidUPOit.js")), Ut = v(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Wt = v(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Gt = v(() => import("./PackageVersion-
|
|
182
|
+
let zt = v(() => import("./Tooltip-BhKov422.js")), Bt = v(() => import("./BaseIcon-xBuW2jjI.js").then((e) => e.n)), Vt = v(() => import("./vue-ui-accordion-B64IJyPU.js").then((e) => e.n)), Ht = v(() => import("./DataTable-PidUPOit.js")), Ut = v(() => import("./PenAndPaper-ISUbDKXq.js").then((e) => e.t)), Wt = v(() => import("./UserOptions-BxT1XHzN.js").then((e) => e.n)), Gt = v(() => import("./PackageVersion-CqE8ssFu.js").then((e) => e.t)), Kt = v(() => import("./BaseDraggableDialog-DjzNWkiE.js").then((e) => e.n)), { vue_ui_history_plot: qt } = me(), { isThemeValid: Jt, warnInvalidTheme: Yt } = be(), A = e, j = w(null), Xt = w(null), Zt = w(0), Qt = w(null), $t = w(0), en = w(0), tn = w(0), M = He(null), N = He(null), nn = w(null), P = w(re()), rn = w(!1), an = w(""), F = w([]), I = w(!1), L = w(null), on = w(!1), sn = w(null), cn = w(!1), ln = w(null), un = w(null), dn = w(!1), fn = w(!1), pn = w(null), mn = w(null), hn = w(null), gn = w(null), R = w(null), z = w(null), _n = w({
|
|
183
183
|
x: 0,
|
|
184
184
|
y: 0
|
|
185
|
-
}),
|
|
185
|
+
}), vn = w("pointer"), yn = w(!1), bn = p({
|
|
186
186
|
get: () => !!A.dataset && A.dataset.length,
|
|
187
187
|
set: (e) => e
|
|
188
|
-
}),
|
|
188
|
+
}), xn = Ke;
|
|
189
189
|
Be(() => {
|
|
190
|
-
|
|
190
|
+
cn.value = !0, Cn();
|
|
191
191
|
});
|
|
192
|
-
let
|
|
193
|
-
function
|
|
192
|
+
let Sn = p(() => !!B.value.debug);
|
|
193
|
+
function Cn() {
|
|
194
194
|
if (s(A.dataset) ? (c({
|
|
195
195
|
componentName: "VueUiHistoryPlot",
|
|
196
196
|
type: "dataset",
|
|
197
|
-
debug:
|
|
198
|
-
}),
|
|
197
|
+
debug: Sn.value
|
|
198
|
+
}), On.value = !0) : A.dataset.forEach((e, t) => {
|
|
199
199
|
de({
|
|
200
200
|
datasetObject: e,
|
|
201
201
|
requiredAttributes: ["name", "values"]
|
|
202
202
|
}).forEach((e) => {
|
|
203
|
-
|
|
203
|
+
bn.value = !1, c({
|
|
204
204
|
componentName: "VueUiHistoryPlot",
|
|
205
205
|
type: "datasetSerieAttribute",
|
|
206
206
|
property: e,
|
|
207
207
|
index: t,
|
|
208
|
-
debug:
|
|
208
|
+
debug: Sn.value
|
|
209
209
|
});
|
|
210
210
|
});
|
|
211
|
-
}), s(A.dataset) || (
|
|
211
|
+
}), s(A.dataset) || (On.value = B.value.loading), B.value.responsive) {
|
|
212
212
|
let e = Te(() => {
|
|
213
213
|
let { width: e, height: t } = Ee({
|
|
214
214
|
chart: j.value,
|
|
215
|
-
title:
|
|
215
|
+
title: B.value.style.chart.title.text ? Xt.value : null,
|
|
216
216
|
noTitle: nn.value,
|
|
217
|
-
legend:
|
|
218
|
-
source:
|
|
217
|
+
legend: B.value.style.chart.legend.show ? Qt.value : null,
|
|
218
|
+
source: sn.value
|
|
219
219
|
});
|
|
220
220
|
requestAnimationFrame(() => {
|
|
221
|
-
|
|
221
|
+
W.value.width = e, W.value.height = t, B.value.responsiveProportionalSizing ? (K.value.plots = l({
|
|
222
222
|
relator: Math.min(e, t),
|
|
223
223
|
adjuster: 600,
|
|
224
|
-
source:
|
|
224
|
+
source: B.value.style.chart.plots.radius,
|
|
225
225
|
threshold: 3,
|
|
226
226
|
fallback: 3
|
|
227
|
-
}),
|
|
227
|
+
}), K.value.indexLabels = l({
|
|
228
228
|
relator: Math.min(e, t),
|
|
229
229
|
adjuster: 600,
|
|
230
|
-
source:
|
|
230
|
+
source: B.value.style.chart.plots.indexLabels.fontSize,
|
|
231
231
|
threshold: 6,
|
|
232
232
|
fallback: 6
|
|
233
|
-
}),
|
|
233
|
+
}), K.value.labels = l({
|
|
234
234
|
relator: Math.min(e, t),
|
|
235
235
|
adjuster: 600,
|
|
236
|
-
source:
|
|
236
|
+
source: B.value.style.chart.plots.labels.fontSize,
|
|
237
237
|
threshold: 6,
|
|
238
238
|
fallback: 6
|
|
239
|
-
}),
|
|
239
|
+
}), K.value.xAxisLabels = l({
|
|
240
240
|
relator: Math.min(e, t),
|
|
241
241
|
adjuster: 600,
|
|
242
|
-
source:
|
|
242
|
+
source: B.value.style.chart.axes.x.labels.fontSize,
|
|
243
243
|
threshold: 6,
|
|
244
244
|
fallback: 6
|
|
245
|
-
}),
|
|
245
|
+
}), K.value.xAxisName = l({
|
|
246
246
|
relator: Math.min(e, t),
|
|
247
247
|
adjuster: 600,
|
|
248
|
-
source:
|
|
248
|
+
source: B.value.style.chart.axes.x.name.fontSize,
|
|
249
249
|
threshold: 6,
|
|
250
250
|
fallback: 6
|
|
251
|
-
}),
|
|
251
|
+
}), K.value.yAxisLabels = l({
|
|
252
252
|
relator: Math.min(e, t),
|
|
253
253
|
adjuster: 600,
|
|
254
|
-
source:
|
|
254
|
+
source: B.value.style.chart.axes.y.labels.fontSize,
|
|
255
255
|
threshold: 6,
|
|
256
256
|
fallback: 6
|
|
257
|
-
}),
|
|
257
|
+
}), K.value.yAxisName = l({
|
|
258
258
|
relator: Math.min(e, t),
|
|
259
259
|
adjuster: 600,
|
|
260
|
-
source:
|
|
260
|
+
source: B.value.style.chart.axes.y.name.fontSize,
|
|
261
261
|
threshold: 6,
|
|
262
262
|
fallback: 6
|
|
263
|
-
})) : (
|
|
263
|
+
})) : (K.value.plots = B.value.style.chart.plots.radius, K.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, K.value.labels = B.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = B.value.style.chart.axes.y.name.fontSize);
|
|
264
264
|
});
|
|
265
265
|
});
|
|
266
266
|
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect()), M.value = new ResizeObserver(e), N.value = j.value.parentNode, M.value.observe(N.value);
|
|
@@ -269,7 +269,7 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
269
269
|
ze(() => {
|
|
270
270
|
M.value && (N.value && M.value.unobserve(N.value), M.value.disconnect());
|
|
271
271
|
});
|
|
272
|
-
function
|
|
272
|
+
function wn() {
|
|
273
273
|
let e = ye({
|
|
274
274
|
userConfig: A.config,
|
|
275
275
|
defaultConfig: qt
|
|
@@ -291,7 +291,7 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
291
291
|
else t = e;
|
|
292
292
|
return t;
|
|
293
293
|
}
|
|
294
|
-
let
|
|
294
|
+
let B = w(wn()), V = p(() => B.value.userOptions.useCursorPointer), Tn = p(() => n({
|
|
295
295
|
defaultConfig: {
|
|
296
296
|
userOptions: { show: !1 },
|
|
297
297
|
table: { show: !1 },
|
|
@@ -329,11 +329,11 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
329
329
|
}
|
|
330
330
|
} }
|
|
331
331
|
},
|
|
332
|
-
userConfig:
|
|
333
|
-
})), { loading:
|
|
332
|
+
userConfig: B.value.skeletonConfig ?? {}
|
|
333
|
+
})), { loading: En, FINAL_DATASET: Dn, manualLoading: On } = ge({
|
|
334
334
|
...Ue(A),
|
|
335
|
-
FINAL_CONFIG:
|
|
336
|
-
prepareConfig:
|
|
335
|
+
FINAL_CONFIG: B,
|
|
336
|
+
prepareConfig: wn,
|
|
337
337
|
skeletonDataset: A.config?.skeletonDataset ?? [{
|
|
338
338
|
name: "",
|
|
339
339
|
color: "#CACACA",
|
|
@@ -361,131 +361,132 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
361
361
|
]
|
|
362
362
|
}],
|
|
363
363
|
skeletonConfig: n({
|
|
364
|
-
defaultConfig:
|
|
365
|
-
userConfig:
|
|
364
|
+
defaultConfig: B.value,
|
|
365
|
+
userConfig: Tn.value
|
|
366
366
|
})
|
|
367
|
-
}), { userOptionsVisible:
|
|
367
|
+
}), { userOptionsVisible: kn, setUserOptionsVisibility: An, keepUserOptionState: jn } = ke({ config: B.value }), { svgRef: H } = Ae({ config: B.value.style.chart.title });
|
|
368
368
|
We(() => A.config, (e) => {
|
|
369
|
-
|
|
369
|
+
En.value || (B.value = wn()), kn.value = !B.value.userOptions.showOnChartHover, Cn(), Zt.value += 1, en.value += 1, $t.value += 1, W.value.height = B.value.style.chart.height, W.value.width = B.value.style.chart.width, K.value.plots = B.value.style.chart.plots.radius, K.value.indexLabels = B.value.style.chart.plots.indexLabels.fontSize, K.value.labels = B.value.style.chart.plots.labels.fontSize, K.value.xAxisLabels = B.value.style.chart.axes.x.labels.fontSize, K.value.xAxisName = B.value.style.chart.axes.x.name.fontSize, K.value.yAxisLabels = B.value.style.chart.axes.y.labels.fontSize, K.value.yAxisName = B.value.style.chart.axes.y.name.fontSize, U.value.showTable = B.value.table.show, U.value.showTooltip = B.value.style.chart.tooltip.show;
|
|
370
370
|
}, { deep: !0 }), We(() => A.dataset, (e) => {
|
|
371
|
-
Array.isArray(e) && e.length > 0 && (
|
|
371
|
+
Array.isArray(e) && e.length > 0 && (On.value = !1);
|
|
372
372
|
}, { deep: !0 });
|
|
373
|
-
let { isPrinting:
|
|
373
|
+
let { isPrinting: Mn, isImaging: Nn, generatePdf: Pn, generateImage: Fn } = he({
|
|
374
374
|
elementId: `history_plot_${P.value}`,
|
|
375
|
-
fileName:
|
|
376
|
-
options:
|
|
377
|
-
}),
|
|
378
|
-
showTable:
|
|
379
|
-
showTooltip:
|
|
375
|
+
fileName: B.value.style.chart.title.text || "vue-ui-history-plot",
|
|
376
|
+
options: B.value.userOptions.print
|
|
377
|
+
}), In = p(() => B.value.userOptions.show && !B.value.style.chart.title.text), Ln = p(() => ee(B.value.customPalette)), U = w({
|
|
378
|
+
showTable: B.value.table.show,
|
|
379
|
+
showTooltip: B.value.style.chart.tooltip.show
|
|
380
380
|
});
|
|
381
|
-
We(
|
|
382
|
-
|
|
383
|
-
showTable:
|
|
384
|
-
showTooltip:
|
|
381
|
+
We(B, () => {
|
|
382
|
+
U.value = {
|
|
383
|
+
showTable: B.value.table.show,
|
|
384
|
+
showTooltip: B.value.style.chart.tooltip.show
|
|
385
385
|
};
|
|
386
386
|
}, { immediate: !0 });
|
|
387
|
-
let
|
|
388
|
-
height:
|
|
389
|
-
width:
|
|
390
|
-
}),
|
|
391
|
-
function
|
|
387
|
+
let W = w({
|
|
388
|
+
height: B.value.style.chart.height,
|
|
389
|
+
width: B.value.style.chart.width
|
|
390
|
+
}), Rn = p(() => W.value.width), zn = p(() => W.value.height);
|
|
391
|
+
function Bn() {
|
|
392
392
|
let e = 0;
|
|
393
|
-
|
|
393
|
+
gn.value && (e = Array.from(gn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
394
394
|
let n = t.getComputedTextLength();
|
|
395
395
|
return n > e ? n : e;
|
|
396
396
|
}, 0));
|
|
397
|
-
let t =
|
|
397
|
+
let t = mn.value ? mn.value.getBoundingClientRect().width : 0;
|
|
398
398
|
return e + t + (t ? 24 : 0);
|
|
399
399
|
}
|
|
400
|
-
let
|
|
401
|
-
|
|
400
|
+
let Vn = w(0), Hn = Te((e) => {
|
|
401
|
+
Vn.value = e;
|
|
402
402
|
});
|
|
403
403
|
Ge((e) => {
|
|
404
|
-
let t =
|
|
404
|
+
let t = hn.value;
|
|
405
405
|
if (!t) return;
|
|
406
406
|
let n = new ResizeObserver((e) => {
|
|
407
|
-
|
|
407
|
+
Hn(e[0].contentRect.height);
|
|
408
408
|
});
|
|
409
409
|
n.observe(t), e(() => n.disconnect());
|
|
410
410
|
});
|
|
411
|
-
let
|
|
411
|
+
let Un = p(() => {
|
|
412
412
|
let e = 0;
|
|
413
|
-
|
|
413
|
+
pn.value && (e = pn.value.getBBox().height + K.value.xAxisName / 2);
|
|
414
414
|
let t = 0;
|
|
415
|
-
return
|
|
416
|
-
}),
|
|
417
|
-
let e =
|
|
415
|
+
return hn.value && (t = Vn.value), e + t;
|
|
416
|
+
}), G = p(() => {
|
|
417
|
+
let e = B.value.style.chart.padding.left, t = B.value.style.chart.padding.top, n = Bn(), r = B.value.style.chart.plots.radius;
|
|
418
418
|
return {
|
|
419
|
-
left: e + n +
|
|
419
|
+
left: e + n + B.value.style.chart.axes.y.name.offsetX,
|
|
420
420
|
top: t + r,
|
|
421
|
-
right:
|
|
422
|
-
bottom:
|
|
423
|
-
width:
|
|
424
|
-
height:
|
|
421
|
+
right: W.value.width - B.value.style.chart.padding.right - r - B.value.style.chart.axes.y.name.offsetX,
|
|
422
|
+
bottom: W.value.height - B.value.style.chart.padding.bottom - Un.value - r - B.value.style.chart.axes.x.name.offsetY,
|
|
423
|
+
width: W.value.width - e - B.value.style.chart.padding.right - n - r - B.value.style.chart.axes.y.name.offsetX,
|
|
424
|
+
height: W.value.height - t - B.value.style.chart.padding.bottom - Un.value - r * 2 - B.value.style.chart.axes.x.name.offsetY
|
|
425
425
|
};
|
|
426
|
-
}),
|
|
427
|
-
plots:
|
|
428
|
-
indexLabels:
|
|
429
|
-
labels:
|
|
430
|
-
xAxisLabels:
|
|
431
|
-
xAxisName:
|
|
432
|
-
yAxisLabels:
|
|
433
|
-
yAxisName:
|
|
434
|
-
}),
|
|
426
|
+
}), K = w({
|
|
427
|
+
plots: B.value.style.chart.plots.radius,
|
|
428
|
+
indexLabels: B.value.style.chart.plots.indexLabels.fontSize,
|
|
429
|
+
labels: B.value.style.chart.plots.labels.fontSize,
|
|
430
|
+
xAxisLabels: B.value.style.chart.axes.x.labels.fontSize,
|
|
431
|
+
xAxisName: B.value.style.chart.axes.x.name.fontSize,
|
|
432
|
+
yAxisLabels: B.value.style.chart.axes.y.labels.fontSize,
|
|
433
|
+
yAxisName: B.value.style.chart.axes.y.name.fontSize
|
|
434
|
+
}), q = p(() => Dn.value.map((e, t) => {
|
|
435
435
|
let n = Array.isArray(e.temperatureColors) && e.temperatureColors.length ? e.temperatureColors.map((e) => oe(e)) : void 0;
|
|
436
436
|
return {
|
|
437
437
|
...e,
|
|
438
|
-
color: e.color ? oe(e.color) :
|
|
438
|
+
color: e.color ? oe(e.color) : Ln.value[t] || ce[t] || ce[t % ce.length],
|
|
439
439
|
temperatureColors: n,
|
|
440
|
-
temperatureAngle:
|
|
440
|
+
temperatureAngle: Wn(e.temperatureAngle),
|
|
441
|
+
temperatureIndependant: e.temperatureIndependant === !0,
|
|
441
442
|
usePlotTemperatureColors: e.usePlotTemperatureColors !== !1,
|
|
442
443
|
seriesIndex: t
|
|
443
444
|
};
|
|
444
445
|
}));
|
|
445
|
-
function
|
|
446
|
+
function Wn(e = 0) {
|
|
446
447
|
let t = Number(e);
|
|
447
448
|
return Number.isFinite(t) ? (t % 360 + 360) % 360 : 0;
|
|
448
449
|
}
|
|
449
|
-
let
|
|
450
|
-
let e = Math.min(...
|
|
450
|
+
let Gn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)))), Kn = p(() => {
|
|
451
|
+
let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.x)));
|
|
451
452
|
return e < 0 ? e : 0;
|
|
452
|
-
}),
|
|
453
|
-
let e = Math.min(...
|
|
453
|
+
}), qn = p(() => Math.max(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)))), Jn = p(() => {
|
|
454
|
+
let e = Math.min(...q.value.filter((e) => !F.value.includes(e.seriesIndex)).flatMap((e) => e.values.map((e) => e.y)));
|
|
454
455
|
return e < 0 ? e : 0;
|
|
455
|
-
}),
|
|
456
|
-
let e = se(
|
|
456
|
+
}), J = p(() => {
|
|
457
|
+
let e = se(B.value.style.chart.axes.x.scaleMin ?? Kn.value, B.value.style.chart.axes.x.scaleMax ?? Gn.value, B.value.style.chart.axes.x.ticks), t = se(B.value.style.chart.axes.y.scaleMin ?? Jn.value, B.value.style.chart.axes.y.scaleMax ?? qn.value, B.value.style.chart.axes.y.ticks);
|
|
457
458
|
return {
|
|
458
459
|
x: e,
|
|
459
460
|
y: t,
|
|
460
461
|
tickX: e.ticks.map((t) => ({
|
|
461
|
-
x:
|
|
462
|
-
y1:
|
|
463
|
-
y2:
|
|
462
|
+
x: G.value.left + (t - e.min) / (e.max - e.min) * G.value.width,
|
|
463
|
+
y1: G.value.top,
|
|
464
|
+
y2: G.value.bottom,
|
|
464
465
|
value: t
|
|
465
466
|
})),
|
|
466
467
|
tickY: t.ticks.map((e) => ({
|
|
467
|
-
y:
|
|
468
|
-
x1:
|
|
469
|
-
x2:
|
|
468
|
+
y: G.value.bottom - (e - t.min) / (t.max - t.min) * G.value.height,
|
|
469
|
+
x1: G.value.left,
|
|
470
|
+
x2: G.value.right,
|
|
470
471
|
value: e
|
|
471
472
|
}))
|
|
472
473
|
};
|
|
473
474
|
});
|
|
474
|
-
function Jn(e) {
|
|
475
|
-
let t = Y.value.x.min < 0 ? Math.abs(Y.value.x.min) : Y.value.x.min > 0 ? -Y.value.x.min : 0;
|
|
476
|
-
return K.value.left + ((e || 0) + t) / (Y.value.x.max + t) * K.value.width;
|
|
477
|
-
}
|
|
478
475
|
function Yn(e) {
|
|
479
|
-
let t =
|
|
480
|
-
return
|
|
476
|
+
let t = J.value.x.min < 0 ? Math.abs(J.value.x.min) : J.value.x.min > 0 ? -J.value.x.min : 0;
|
|
477
|
+
return G.value.left + ((e || 0) + t) / (J.value.x.max + t) * G.value.width;
|
|
478
|
+
}
|
|
479
|
+
function Xn(e) {
|
|
480
|
+
let t = J.value.y.min < 0 ? Math.abs(J.value.y.min) : J.value.y.min > 0 ? -J.value.y.min : 0;
|
|
481
|
+
return G.value.bottom - ((e || 0) + t) / (J.value.y.max + t) * G.value.height;
|
|
481
482
|
}
|
|
482
|
-
let
|
|
483
|
+
let Y = p(() => q.value.filter((e) => !F.value.includes(e.seriesIndex)).map((e, n) => {
|
|
483
484
|
let r = e.values.map((t, n) => ({
|
|
484
485
|
valueX: t.x,
|
|
485
486
|
valueY: t.y,
|
|
486
487
|
label: t.label,
|
|
487
|
-
x:
|
|
488
|
-
y:
|
|
488
|
+
x: Yn(t.x),
|
|
489
|
+
y: Xn(t.y),
|
|
489
490
|
color: e.color,
|
|
490
491
|
seriesName: e.name,
|
|
491
492
|
id: re()
|
|
@@ -496,22 +497,22 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
496
497
|
plots: r,
|
|
497
498
|
path: `M${i}`
|
|
498
499
|
};
|
|
499
|
-
})),
|
|
500
|
-
if (L.value === null ||
|
|
501
|
-
let e =
|
|
502
|
-
if (e === -1) return
|
|
503
|
-
let t =
|
|
500
|
+
})), Zn = p(() => {
|
|
501
|
+
if (L.value === null || R.value === null) return Y.value;
|
|
502
|
+
let e = Y.value.findIndex((e) => e.seriesIndex === R.value);
|
|
503
|
+
if (e === -1) return Y.value;
|
|
504
|
+
let t = Y.value[e];
|
|
504
505
|
return [
|
|
505
|
-
...
|
|
506
|
-
...
|
|
506
|
+
...Y.value.slice(0, e),
|
|
507
|
+
...Y.value.slice(e + 1),
|
|
507
508
|
t
|
|
508
509
|
];
|
|
509
|
-
}),
|
|
510
|
-
function
|
|
510
|
+
}), Qn = p(() => Y.value.some((e) => X(e)));
|
|
511
|
+
function X(e) {
|
|
511
512
|
return Array.isArray(e?.temperatureColors) && e.temperatureColors.length;
|
|
512
513
|
}
|
|
513
514
|
function $n(e) {
|
|
514
|
-
return
|
|
515
|
+
return X(e) && e.usePlotTemperatureColors;
|
|
515
516
|
}
|
|
516
517
|
function er(e) {
|
|
517
518
|
let t = Array.isArray(e?.plots) ? e.plots : [];
|
|
@@ -533,8 +534,22 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
533
534
|
height: s - o
|
|
534
535
|
};
|
|
535
536
|
}
|
|
536
|
-
function tr(
|
|
537
|
-
let
|
|
537
|
+
function tr() {
|
|
538
|
+
let e = G.value;
|
|
539
|
+
return {
|
|
540
|
+
minX: e.left,
|
|
541
|
+
maxX: e.right,
|
|
542
|
+
minY: e.top,
|
|
543
|
+
maxY: e.bottom,
|
|
544
|
+
width: e.width,
|
|
545
|
+
height: e.height
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
function nr(e) {
|
|
549
|
+
return e?.temperatureIndependant ? er(e) : tr();
|
|
550
|
+
}
|
|
551
|
+
function rr(e) {
|
|
552
|
+
let t = Wn(e?.temperatureAngle) * Math.PI / 180, n = Math.sin(t), r = Math.cos(t), i = nr(e), a = i.minX + i.width / 2, o = i.minY + i.height / 2, s = (Math.abs(n) * i.width + Math.abs(r) * i.height) / 2 || 1;
|
|
538
553
|
return {
|
|
539
554
|
x1: a - n * s,
|
|
540
555
|
y1: o - r * s,
|
|
@@ -542,8 +557,8 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
542
557
|
y2: o + r * s
|
|
543
558
|
};
|
|
544
559
|
}
|
|
545
|
-
function
|
|
546
|
-
let { x1: n, y1: r, x2: i, y2: a } =
|
|
560
|
+
function ir(e, t) {
|
|
561
|
+
let { x1: n, y1: r, x2: i, y2: a } = rr(e), o = i - n, s = a - r, c = o * o + s * s;
|
|
547
562
|
if (!c) return 0;
|
|
548
563
|
let ee = ((t.x - n) * o + (t.y - r) * s) / c;
|
|
549
564
|
return Math.min(1, Math.max(0, ee));
|
|
@@ -551,247 +566,247 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
551
566
|
function Z(e, t) {
|
|
552
567
|
return ae({
|
|
553
568
|
colors: e.temperatureColors,
|
|
554
|
-
ratio:
|
|
569
|
+
ratio: ir(e, t)
|
|
555
570
|
});
|
|
556
571
|
}
|
|
557
|
-
function
|
|
572
|
+
function ar(e, t) {
|
|
558
573
|
return `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`;
|
|
559
574
|
}
|
|
560
|
-
function
|
|
561
|
-
return $n(e) ?
|
|
575
|
+
function or(e, t, n) {
|
|
576
|
+
return $n(e) ? B.value.style.chart.plots.gradient.show ? `url(#${ar(e, t)})` : Z(e, t) : B.value.style.chart.plots.gradient.show ? `url(#gradient_${n}_${P.value})` : t.color;
|
|
562
577
|
}
|
|
563
|
-
function
|
|
578
|
+
function sr(e, t) {
|
|
564
579
|
return $n(e) ? Z(e, t) : e.color;
|
|
565
580
|
}
|
|
566
|
-
function
|
|
567
|
-
return
|
|
581
|
+
function cr(e, t) {
|
|
582
|
+
return B.value.style.chart.plots.indexLabels.adaptColorToBackground ? le(sr(e, t)) : B.value.style.chart.plots.indexLabels.color;
|
|
568
583
|
}
|
|
569
|
-
function
|
|
570
|
-
let n =
|
|
584
|
+
function lr(e, t) {
|
|
585
|
+
let n = Y.value.find((t) => t.seriesIndex === e);
|
|
571
586
|
return n && $n(n) ? Z(n, t) : t.color;
|
|
572
587
|
}
|
|
573
|
-
function
|
|
574
|
-
return
|
|
588
|
+
function ur(e) {
|
|
589
|
+
return X(e) ? `url(#temperature_grad_history_${e.seriesIndex}_${P.value})` : B.value.style.chart.paths.useSerieColor ? e.color : B.value.style.chart.paths.stroke;
|
|
575
590
|
}
|
|
576
|
-
function
|
|
577
|
-
return L.value === null ||
|
|
591
|
+
function dr(e) {
|
|
592
|
+
return L.value === null || R.value === e ? 1 : Math.min(1, B.value.style.chart.plots.unselectedOpacity);
|
|
578
593
|
}
|
|
579
|
-
p(() => L.value !== null &&
|
|
580
|
-
let
|
|
594
|
+
p(() => L.value !== null && R.value !== null);
|
|
595
|
+
let fr = w(!1);
|
|
581
596
|
function Q() {
|
|
582
|
-
return
|
|
597
|
+
return B.value.useCssAnimation && !En.value && !fr.value;
|
|
583
598
|
}
|
|
584
|
-
function
|
|
599
|
+
function pr() {
|
|
585
600
|
return "opacity 0.2s ease-in-out";
|
|
586
601
|
}
|
|
587
|
-
function
|
|
588
|
-
F.value.length ? F.value = [] :
|
|
602
|
+
function mr() {
|
|
603
|
+
F.value.length ? F.value = [] : yr.value.forEach((e) => {
|
|
589
604
|
F.value.push(e.seriesIndex);
|
|
590
|
-
}),
|
|
591
|
-
}
|
|
592
|
-
function pr(e) {
|
|
593
|
-
F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), bn("selectLegend", X.value);
|
|
594
|
-
}
|
|
595
|
-
function mr(e) {
|
|
596
|
-
return J.value.length ? J.value.find((t) => t.name === e) || (V.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (V.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
|
|
605
|
+
}), xn("selectLegend", Y.value);
|
|
597
606
|
}
|
|
598
607
|
function hr(e) {
|
|
599
|
-
|
|
600
|
-
t !== null && F.value.includes(t.seriesIndex) && pr(t.seriesIndex);
|
|
608
|
+
F.value.includes(e) ? F.value = F.value.filter((t) => t !== e) : F.value.push(e), xn("selectLegend", Y.value);
|
|
601
609
|
}
|
|
602
610
|
function gr(e) {
|
|
603
|
-
|
|
604
|
-
|
|
611
|
+
return q.value.length ? q.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiHistoryPlot - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiHistoryPlot - There are no series to show."), null);
|
|
612
|
+
}
|
|
613
|
+
function _r(e) {
|
|
614
|
+
let t = gr(e);
|
|
615
|
+
t !== null && F.value.includes(t.seriesIndex) && hr(t.seriesIndex);
|
|
605
616
|
}
|
|
606
|
-
|
|
607
|
-
let t =
|
|
617
|
+
function vr(e) {
|
|
618
|
+
let t = gr(e);
|
|
619
|
+
t !== null && (F.value.includes(t.seriesIndex) || hr(t.seriesIndex));
|
|
620
|
+
}
|
|
621
|
+
let yr = p(() => q.value.map((e) => {
|
|
622
|
+
let t = X(e) ? e.temperatureColors : null;
|
|
608
623
|
return {
|
|
609
624
|
...e,
|
|
610
625
|
gradientColors: t,
|
|
611
626
|
opacity: F.value.includes(e.seriesIndex) ? .5 : 1,
|
|
612
|
-
segregate: () =>
|
|
627
|
+
segregate: () => hr(e.seriesIndex),
|
|
613
628
|
isSegregated: F.value.includes(e.seriesIndex),
|
|
614
629
|
shape: t ? "gradient" : "circle"
|
|
615
630
|
};
|
|
616
|
-
})),
|
|
631
|
+
})), br = p(() => ({
|
|
617
632
|
cy: "history-plot-div-legend",
|
|
618
|
-
backgroundColor:
|
|
619
|
-
color:
|
|
620
|
-
fontSize:
|
|
633
|
+
backgroundColor: B.value.style.chart.legend.backgroundColor,
|
|
634
|
+
color: B.value.style.chart.legend.color,
|
|
635
|
+
fontSize: B.value.style.chart.legend.fontSize,
|
|
621
636
|
paddingBottom: 12,
|
|
622
|
-
fontWeight:
|
|
637
|
+
fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
|
|
623
638
|
}));
|
|
624
|
-
function
|
|
625
|
-
|
|
639
|
+
function xr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
640
|
+
B.value.events.datapointClick && B.value.events.datapointClick({
|
|
626
641
|
datapoint: {
|
|
627
642
|
...e,
|
|
628
643
|
plotIndex: t,
|
|
629
644
|
seriesIndex: n
|
|
630
645
|
},
|
|
631
646
|
seriesIndex: n
|
|
632
|
-
}),
|
|
647
|
+
}), xn("selectDatapoint", e);
|
|
633
648
|
}
|
|
634
|
-
function
|
|
649
|
+
function Sr(e) {
|
|
635
650
|
I.value = e, tn.value += 1;
|
|
636
651
|
}
|
|
637
|
-
let
|
|
638
|
-
function
|
|
639
|
-
|
|
652
|
+
let Cr = w(null);
|
|
653
|
+
function wr({ datapoint: e, plotIndex: t, seriesIndex: n }) {
|
|
654
|
+
B.value.events.datapointLeave && B.value.events.datapointLeave({
|
|
640
655
|
datapoint: {
|
|
641
656
|
...e,
|
|
642
657
|
plotIndex: t,
|
|
643
658
|
seriesIndex: n
|
|
644
659
|
},
|
|
645
660
|
seriesIndex: n
|
|
646
|
-
}), !(
|
|
661
|
+
}), !(vn.value === "keyboard" && R.value === n && z.value === t) && (rn.value = !1, L.value = null);
|
|
647
662
|
}
|
|
648
|
-
function
|
|
649
|
-
if (!
|
|
650
|
-
let n =
|
|
663
|
+
function Tr(e, t) {
|
|
664
|
+
if (!H.value) return;
|
|
665
|
+
let n = Y.value.find((t) => t.seriesIndex === e);
|
|
651
666
|
if (!n) return;
|
|
652
667
|
let r = n.plots[t];
|
|
653
668
|
if (!r) return;
|
|
654
|
-
let a = i(r.x, r.y,
|
|
655
|
-
a && (
|
|
669
|
+
let a = i(r.x, r.y, H.value);
|
|
670
|
+
a && (_n.value = a);
|
|
656
671
|
}
|
|
657
|
-
function
|
|
658
|
-
|
|
672
|
+
function Er({ datapoint: e, plotIndex: t, seriesIndex: n, triggerMode: r = "pointer" }) {
|
|
673
|
+
B.value.events.datapointEnter && B.value.events.datapointEnter({
|
|
659
674
|
datapoint: {
|
|
660
675
|
...e,
|
|
661
676
|
plotIndex: t,
|
|
662
677
|
seriesIndex: n
|
|
663
678
|
},
|
|
664
679
|
seriesIndex: n
|
|
665
|
-
}),
|
|
666
|
-
let i =
|
|
680
|
+
}), R.value = n, z.value = t, vn.value = r, fr.value = !0;
|
|
681
|
+
let i = lr(n, e), a = {
|
|
667
682
|
...e,
|
|
668
683
|
color: i
|
|
669
684
|
};
|
|
670
|
-
|
|
685
|
+
Cr.value = {
|
|
671
686
|
datapoint: a,
|
|
672
687
|
color: i,
|
|
673
688
|
seriesIndex: n,
|
|
674
689
|
plotIndex: t,
|
|
675
|
-
config:
|
|
676
|
-
series:
|
|
690
|
+
config: B.value,
|
|
691
|
+
series: q.value
|
|
677
692
|
}, L.value = e;
|
|
678
|
-
let o =
|
|
679
|
-
if (
|
|
693
|
+
let o = B.value.style.chart.tooltip.customFormat;
|
|
694
|
+
if (on.value = !1, fe(o)) try {
|
|
680
695
|
let e = o({
|
|
681
696
|
seriesIndex: n,
|
|
682
697
|
datapoint: a,
|
|
683
698
|
color: i,
|
|
684
699
|
plotIndex: t,
|
|
685
|
-
series:
|
|
686
|
-
config:
|
|
700
|
+
series: q.value,
|
|
701
|
+
config: B.value
|
|
687
702
|
});
|
|
688
|
-
typeof e == "string" && (an.value = e,
|
|
703
|
+
typeof e == "string" && (an.value = e, on.value = !0);
|
|
689
704
|
} catch {
|
|
690
|
-
console.warn("Custom format cannot be applied."),
|
|
705
|
+
console.warn("Custom format cannot be applied."), on.value = !1;
|
|
691
706
|
}
|
|
692
|
-
if (!
|
|
707
|
+
if (!on.value) {
|
|
693
708
|
let t = "";
|
|
694
|
-
t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${
|
|
695
|
-
p:
|
|
709
|
+
t += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;border-bottom:1px solid ${B.value.style.chart.tooltip.borderColor};margin-bottom:3px;padding-bottom:6px;"><svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="none" fill="${i}"/></svg><span>${e.seriesName}</span></div>`, t += `<div>${e.label}</div>`, t += `<div>${B.value.style.chart.axes.x.name.text || "x"}: ${u(B.value.style.chart.axes.x.labels.formatter, e.valueX, d({
|
|
710
|
+
p: B.value.style.chart.axes.x.labels.prefix,
|
|
696
711
|
v: e.valueX,
|
|
697
|
-
s:
|
|
698
|
-
r:
|
|
699
|
-
}))}</div>`, t += `<div>${
|
|
700
|
-
p:
|
|
712
|
+
s: B.value.style.chart.axes.x.labels.suffix,
|
|
713
|
+
r: B.value.style.chart.axes.x.labels.rounding
|
|
714
|
+
}))}</div>`, t += `<div>${B.value.style.chart.axes.y.name.text || "y"}: ${u(B.value.style.chart.axes.y.labels.formatter, e.valueY, d({
|
|
715
|
+
p: B.value.style.chart.axes.y.labels.prefix,
|
|
701
716
|
v: e.valueY,
|
|
702
|
-
s:
|
|
703
|
-
r:
|
|
717
|
+
s: B.value.style.chart.axes.y.labels.suffix,
|
|
718
|
+
r: B.value.style.chart.axes.y.labels.rounding
|
|
704
719
|
}))}</div>`, an.value = `<div>${t}</div>`;
|
|
705
720
|
}
|
|
706
721
|
rn.value = !0, r === "keyboard" && Re(() => {
|
|
707
|
-
|
|
722
|
+
Tr(n, t);
|
|
708
723
|
});
|
|
709
724
|
}
|
|
710
|
-
p(() => ({ head:
|
|
725
|
+
p(() => ({ head: Y.value.map((e) => ({
|
|
711
726
|
name: e.name,
|
|
712
727
|
color: e.color
|
|
713
728
|
})) }));
|
|
714
729
|
let $ = p(() => {
|
|
715
730
|
let e = [
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
731
|
+
B.value.table.columnNames.series,
|
|
732
|
+
B.value.table.columnNames.datapoint,
|
|
733
|
+
B.value.table.columnNames.x,
|
|
734
|
+
B.value.table.columnNames.y
|
|
720
735
|
];
|
|
721
736
|
return {
|
|
722
737
|
head: e,
|
|
723
|
-
body:
|
|
738
|
+
body: Y.value.flatMap((e) => e.plots.map((e) => [
|
|
724
739
|
{
|
|
725
740
|
color: e.color,
|
|
726
741
|
name: e.seriesName
|
|
727
742
|
},
|
|
728
743
|
e.label,
|
|
729
|
-
u(
|
|
730
|
-
p:
|
|
744
|
+
u(B.value.style.chart.axes.x.labels.formatter, e.valueX, d({
|
|
745
|
+
p: B.value.style.chart.axes.x.labels.prefix,
|
|
731
746
|
v: e.valueX,
|
|
732
|
-
s:
|
|
733
|
-
r:
|
|
747
|
+
s: B.value.style.chart.axes.x.labels.suffix,
|
|
748
|
+
r: B.value.style.chart.axes.x.labels.rounding
|
|
734
749
|
})),
|
|
735
|
-
u(
|
|
736
|
-
p:
|
|
750
|
+
u(B.value.style.chart.axes.y.labels.formatter, e.valueY, d({
|
|
751
|
+
p: B.value.style.chart.axes.y.labels.prefix,
|
|
737
752
|
v: e.valueY,
|
|
738
|
-
s:
|
|
739
|
-
r:
|
|
753
|
+
s: B.value.style.chart.axes.y.labels.suffix,
|
|
754
|
+
r: B.value.style.chart.axes.y.labels.rounding
|
|
740
755
|
}))
|
|
741
756
|
])),
|
|
742
757
|
config: {
|
|
743
758
|
th: {
|
|
744
|
-
backgroundColor:
|
|
745
|
-
color:
|
|
746
|
-
outline:
|
|
759
|
+
backgroundColor: B.value.table.th.backgroundColor,
|
|
760
|
+
color: B.value.table.th.color,
|
|
761
|
+
outline: B.value.table.th.outline
|
|
747
762
|
},
|
|
748
763
|
td: {
|
|
749
|
-
backgroundColor:
|
|
750
|
-
color:
|
|
751
|
-
outline:
|
|
764
|
+
backgroundColor: B.value.table.td.backgroundColor,
|
|
765
|
+
color: B.value.table.td.color,
|
|
766
|
+
outline: B.value.table.td.outline
|
|
752
767
|
},
|
|
753
|
-
breakpoint:
|
|
768
|
+
breakpoint: B.value.table.responsiveBreakpoint
|
|
754
769
|
},
|
|
755
770
|
colNames: e
|
|
756
771
|
};
|
|
757
772
|
});
|
|
758
|
-
function
|
|
773
|
+
function Dr(e = null) {
|
|
759
774
|
Re(() => {
|
|
760
775
|
let t = [
|
|
761
|
-
[
|
|
762
|
-
[
|
|
763
|
-
[
|
|
764
|
-
[
|
|
765
|
-
], n =
|
|
776
|
+
[B.value.table.columnNames.series],
|
|
777
|
+
[B.value.table.columnNames.datapoint],
|
|
778
|
+
[B.value.table.columnNames.x],
|
|
779
|
+
[B.value.table.columnNames.y]
|
|
780
|
+
], n = Y.value.flatMap((e) => e.plots.map((e) => [
|
|
766
781
|
[e.seriesName],
|
|
767
782
|
[e.label],
|
|
768
783
|
[e.valueX],
|
|
769
784
|
[e.valueY]
|
|
770
785
|
])), r = pe([
|
|
771
|
-
[
|
|
772
|
-
[
|
|
786
|
+
[B.value.style.chart.title.text],
|
|
787
|
+
[B.value.style.chart.title.subtitle.text],
|
|
773
788
|
t
|
|
774
789
|
].concat(n));
|
|
775
790
|
e ? e(r) : ie({
|
|
776
791
|
csvContent: r,
|
|
777
|
-
title:
|
|
792
|
+
title: B.value.style.chart.title.text || "vue-ui-history-plot"
|
|
778
793
|
});
|
|
779
794
|
});
|
|
780
795
|
}
|
|
781
|
-
let
|
|
782
|
-
function Dr() {
|
|
783
|
-
Er.value = !Er.value;
|
|
784
|
-
}
|
|
785
|
-
function Or() {
|
|
786
|
-
W.value.showTable = !W.value.showTable;
|
|
787
|
-
}
|
|
796
|
+
let Or = w(!1);
|
|
788
797
|
function kr() {
|
|
789
|
-
|
|
798
|
+
Or.value = !Or.value;
|
|
790
799
|
}
|
|
791
800
|
function Ar() {
|
|
792
|
-
|
|
801
|
+
U.value.showTable = !U.value.showTable;
|
|
802
|
+
}
|
|
803
|
+
function jr() {
|
|
804
|
+
U.value.showTooltip = !U.value.showTooltip;
|
|
793
805
|
}
|
|
794
|
-
|
|
806
|
+
function Mr() {
|
|
807
|
+
return Y.value;
|
|
808
|
+
}
|
|
809
|
+
async function Nr({ scale: e = 2 } = {}) {
|
|
795
810
|
if (!j.value) return;
|
|
796
811
|
let { width: t, height: n } = j.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Se({
|
|
797
812
|
domElement: j.value,
|
|
@@ -802,20 +817,20 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
802
817
|
return {
|
|
803
818
|
imageUri: i,
|
|
804
819
|
base64: a,
|
|
805
|
-
title:
|
|
820
|
+
title: B.value.style.chart.title.text,
|
|
806
821
|
width: t,
|
|
807
822
|
height: n,
|
|
808
823
|
aspectRatio: r
|
|
809
824
|
};
|
|
810
825
|
}
|
|
811
826
|
xe({
|
|
812
|
-
timeLabelsEls:
|
|
813
|
-
timeLabels: p(() =>
|
|
827
|
+
timeLabelsEls: hn,
|
|
828
|
+
timeLabels: p(() => J.value.tickX),
|
|
814
829
|
slicer: p(() => ({
|
|
815
830
|
start: 0,
|
|
816
|
-
end:
|
|
831
|
+
end: J.value.tickX.length
|
|
817
832
|
})),
|
|
818
|
-
configRef:
|
|
833
|
+
configRef: B,
|
|
819
834
|
rotationPath: [
|
|
820
835
|
"style",
|
|
821
836
|
"chart",
|
|
@@ -834,21 +849,21 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
834
849
|
"enable"
|
|
835
850
|
],
|
|
836
851
|
isAutoSize: !1,
|
|
837
|
-
width:
|
|
838
|
-
height:
|
|
852
|
+
width: Rn,
|
|
853
|
+
height: zn,
|
|
839
854
|
targetClass: ".vue-ui-history-plot-x-axis-scale",
|
|
840
|
-
rotation:
|
|
855
|
+
rotation: B.value.style.chart.axes.x.labels.autoRotate.angle
|
|
841
856
|
});
|
|
842
|
-
let
|
|
843
|
-
let e =
|
|
857
|
+
let Pr = p(() => {
|
|
858
|
+
let e = B.value.table.useDialog && !B.value.table.show, t = U.value.showTable;
|
|
844
859
|
return {
|
|
845
860
|
component: e ? Kt : Vt,
|
|
846
|
-
title: `${
|
|
861
|
+
title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
|
|
847
862
|
props: e ? {
|
|
848
|
-
backgroundColor:
|
|
849
|
-
color:
|
|
850
|
-
headerColor:
|
|
851
|
-
headerBg:
|
|
863
|
+
backgroundColor: B.value.table.th.backgroundColor,
|
|
864
|
+
color: B.value.table.th.color,
|
|
865
|
+
headerColor: B.value.table.th.color,
|
|
866
|
+
headerBg: B.value.table.th.backgroundColor,
|
|
852
867
|
isFullscreen: I.value,
|
|
853
868
|
fullscreenParent: j.value,
|
|
854
869
|
forcedWidth: Math.min(800, window.innerWidth * .8)
|
|
@@ -858,71 +873,71 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
858
873
|
open: t,
|
|
859
874
|
maxHeight: 1e4,
|
|
860
875
|
body: {
|
|
861
|
-
backgroundColor:
|
|
862
|
-
color:
|
|
876
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
877
|
+
color: B.value.style.chart.color
|
|
863
878
|
},
|
|
864
879
|
head: {
|
|
865
|
-
backgroundColor:
|
|
866
|
-
color:
|
|
880
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
881
|
+
color: B.value.style.chart.color
|
|
867
882
|
}
|
|
868
883
|
}
|
|
869
884
|
}
|
|
870
885
|
};
|
|
871
886
|
});
|
|
872
|
-
We(() =>
|
|
873
|
-
|
|
887
|
+
We(() => U.value.showTable, (e) => {
|
|
888
|
+
B.value.table.show || (e && B.value.table.useDialog && ln.value ? ln.value.open() : "close" in ln.value && ln.value.close());
|
|
874
889
|
});
|
|
875
|
-
function
|
|
876
|
-
|
|
890
|
+
function Fr() {
|
|
891
|
+
U.value.showTable = !1, un.value && un.value.setTableIconState(!1);
|
|
877
892
|
}
|
|
878
|
-
let
|
|
879
|
-
svg:
|
|
880
|
-
title: p(() =>
|
|
881
|
-
legend:
|
|
882
|
-
legendItems:
|
|
883
|
-
backgroundColor:
|
|
893
|
+
let Ir = p(() => B.value.style.chart.backgroundColor), Lr = p(() => B.value.style.chart.legend), { exportSvg: Rr, getSvg: zr } = ve({
|
|
894
|
+
svg: H,
|
|
895
|
+
title: p(() => B.value.style.chart.title),
|
|
896
|
+
legend: Lr,
|
|
897
|
+
legendItems: yr,
|
|
898
|
+
backgroundColor: Ir
|
|
884
899
|
});
|
|
885
|
-
async function
|
|
886
|
-
|
|
900
|
+
async function Br({ isCb: e }) {
|
|
901
|
+
fn.value = !0, await Re();
|
|
887
902
|
try {
|
|
888
903
|
if (e) {
|
|
889
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
890
|
-
await Promise.resolve(
|
|
904
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await zr();
|
|
905
|
+
await Promise.resolve(B.value.userOptions.callbacks.svg({
|
|
891
906
|
blob: e,
|
|
892
907
|
url: t,
|
|
893
908
|
text: n,
|
|
894
909
|
dataUrl: r
|
|
895
910
|
}));
|
|
896
|
-
} else await Promise.resolve(
|
|
911
|
+
} else await Promise.resolve(Rr());
|
|
897
912
|
} finally {
|
|
898
|
-
|
|
913
|
+
fn.value = !1;
|
|
899
914
|
}
|
|
900
915
|
}
|
|
901
|
-
function
|
|
916
|
+
function Vr(e) {
|
|
902
917
|
if (e?.stage === "start") {
|
|
903
|
-
|
|
918
|
+
dn.value = !0;
|
|
904
919
|
return;
|
|
905
920
|
}
|
|
906
921
|
if (e?.stage === "end") {
|
|
907
|
-
|
|
922
|
+
dn.value = !1;
|
|
908
923
|
return;
|
|
909
924
|
}
|
|
910
|
-
|
|
925
|
+
Fn();
|
|
911
926
|
}
|
|
912
|
-
async function
|
|
913
|
-
if (
|
|
914
|
-
config:
|
|
915
|
-
dataset:
|
|
916
|
-
}), !
|
|
927
|
+
async function Hr() {
|
|
928
|
+
if (xn("copyAlt", {
|
|
929
|
+
config: B.value,
|
|
930
|
+
dataset: Y.value
|
|
931
|
+
}), !B.value.userOptions.callbacks.altCopy) {
|
|
917
932
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
918
933
|
return;
|
|
919
934
|
}
|
|
920
|
-
await Promise.resolve(
|
|
921
|
-
config:
|
|
922
|
-
dataset:
|
|
935
|
+
await Promise.resolve(B.value.userOptions.callbacks.altCopy({
|
|
936
|
+
config: B.value,
|
|
937
|
+
dataset: Y.value
|
|
923
938
|
}));
|
|
924
939
|
}
|
|
925
|
-
let
|
|
940
|
+
let Ur = p(() => ({
|
|
926
941
|
head: $.value.head,
|
|
927
942
|
body: $.value.body.map((e) => [
|
|
928
943
|
e[0]?.name || "",
|
|
@@ -930,49 +945,49 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
930
945
|
e[2],
|
|
931
946
|
e[3]
|
|
932
947
|
]),
|
|
933
|
-
caption:
|
|
934
|
-
notice:
|
|
948
|
+
caption: B.value.a11y.translations.tableCaption,
|
|
949
|
+
notice: B.value.a11y.translations.tableAvailable
|
|
935
950
|
}));
|
|
936
|
-
function
|
|
937
|
-
return
|
|
951
|
+
function Wr(e) {
|
|
952
|
+
return Y.value.findIndex((t) => t.seriesIndex === e);
|
|
938
953
|
}
|
|
939
|
-
function
|
|
940
|
-
if (
|
|
941
|
-
let e =
|
|
942
|
-
e &&
|
|
954
|
+
function Gr() {
|
|
955
|
+
if (R.value !== null && z.value !== null) {
|
|
956
|
+
let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
|
|
957
|
+
e && wr({
|
|
943
958
|
datapoint: e,
|
|
944
|
-
plotIndex:
|
|
945
|
-
seriesIndex:
|
|
959
|
+
plotIndex: z.value,
|
|
960
|
+
seriesIndex: R.value
|
|
946
961
|
});
|
|
947
962
|
}
|
|
948
|
-
|
|
963
|
+
R.value = null, z.value = null, vn.value = "pointer", rn.value = !1, L.value = null;
|
|
949
964
|
}
|
|
950
|
-
function
|
|
951
|
-
|
|
965
|
+
function Kr() {
|
|
966
|
+
R.value = null, z.value = null, yn.value = !0;
|
|
952
967
|
}
|
|
953
|
-
function
|
|
954
|
-
|
|
968
|
+
function qr() {
|
|
969
|
+
Gr(), yn.value = !1;
|
|
955
970
|
}
|
|
956
|
-
function
|
|
971
|
+
function Jr(e, t) {
|
|
957
972
|
if (!e?.plots?.length) return null;
|
|
958
973
|
let n = e.plots.length;
|
|
959
974
|
return (t % n + n) % n;
|
|
960
975
|
}
|
|
961
|
-
function
|
|
962
|
-
if (!
|
|
963
|
-
let r =
|
|
976
|
+
function Yr({ seriesIndex: e, plotIndex: t, direction: n }) {
|
|
977
|
+
if (!Y.value.length) return null;
|
|
978
|
+
let r = Wr(e);
|
|
964
979
|
if (r === -1) return null;
|
|
965
980
|
if (n === "up" || n === "down") {
|
|
966
|
-
let e =
|
|
981
|
+
let e = Y.value[r];
|
|
967
982
|
if (!e?.plots?.length) return null;
|
|
968
|
-
let i =
|
|
983
|
+
let i = Jr(e, t + (n === "up" ? -1 : 1));
|
|
969
984
|
return {
|
|
970
985
|
seriesIndex: e.seriesIndex,
|
|
971
986
|
plotIndex: i
|
|
972
987
|
};
|
|
973
988
|
}
|
|
974
989
|
if (n === "left" || n === "right") {
|
|
975
|
-
let e = ((r + (n === "left" ? -1 : 1)) %
|
|
990
|
+
let e = ((r + (n === "left" ? -1 : 1)) % Y.value.length + Y.value.length) % Y.value.length, i = Y.value[e];
|
|
976
991
|
if (!i?.plots?.length) return null;
|
|
977
992
|
let a = Math.min(t, i.plots.length - 1);
|
|
978
993
|
return {
|
|
@@ -982,53 +997,53 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
982
997
|
}
|
|
983
998
|
return null;
|
|
984
999
|
}
|
|
985
|
-
function
|
|
986
|
-
if (!
|
|
1000
|
+
function Xr(e) {
|
|
1001
|
+
if (!H.value || Or.value || document.activeElement !== H.value || !Y.value.length) return;
|
|
987
1002
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
988
1003
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
989
1004
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
990
|
-
|
|
1005
|
+
Gr();
|
|
991
1006
|
return;
|
|
992
1007
|
}
|
|
993
1008
|
if (a) {
|
|
994
|
-
if (
|
|
995
|
-
let e =
|
|
1009
|
+
if (R.value === null || z.value === null) return;
|
|
1010
|
+
let e = Y.value.find((e) => e.seriesIndex === R.value)?.plots?.[z.value];
|
|
996
1011
|
if (!e) return;
|
|
997
|
-
|
|
1012
|
+
xr({
|
|
998
1013
|
datapoint: e,
|
|
999
|
-
plotIndex:
|
|
1000
|
-
seriesIndex:
|
|
1014
|
+
plotIndex: z.value,
|
|
1015
|
+
seriesIndex: R.value
|
|
1001
1016
|
});
|
|
1002
1017
|
return;
|
|
1003
1018
|
}
|
|
1004
1019
|
let s = null;
|
|
1005
|
-
if (
|
|
1006
|
-
let e =
|
|
1020
|
+
if (R.value === null || z.value === null) {
|
|
1021
|
+
let e = Y.value[0];
|
|
1007
1022
|
if (!e?.plots?.length) return;
|
|
1008
1023
|
s = {
|
|
1009
1024
|
seriesIndex: e.seriesIndex,
|
|
1010
1025
|
plotIndex: 0
|
|
1011
1026
|
};
|
|
1012
|
-
} else r ? s =
|
|
1013
|
-
seriesIndex:
|
|
1014
|
-
plotIndex:
|
|
1027
|
+
} else r ? s = Yr({
|
|
1028
|
+
seriesIndex: R.value,
|
|
1029
|
+
plotIndex: z.value,
|
|
1015
1030
|
direction: "up"
|
|
1016
|
-
}) : i ? s =
|
|
1017
|
-
seriesIndex:
|
|
1018
|
-
plotIndex:
|
|
1031
|
+
}) : i ? s = Yr({
|
|
1032
|
+
seriesIndex: R.value,
|
|
1033
|
+
plotIndex: z.value,
|
|
1019
1034
|
direction: "down"
|
|
1020
|
-
}) : t ? s =
|
|
1021
|
-
seriesIndex:
|
|
1022
|
-
plotIndex:
|
|
1035
|
+
}) : t ? s = Yr({
|
|
1036
|
+
seriesIndex: R.value,
|
|
1037
|
+
plotIndex: z.value,
|
|
1023
1038
|
direction: "left"
|
|
1024
|
-
}) : n && (s =
|
|
1025
|
-
seriesIndex:
|
|
1026
|
-
plotIndex:
|
|
1039
|
+
}) : n && (s = Yr({
|
|
1040
|
+
seriesIndex: R.value,
|
|
1041
|
+
plotIndex: z.value,
|
|
1027
1042
|
direction: "right"
|
|
1028
1043
|
}));
|
|
1029
1044
|
if (!s) return;
|
|
1030
|
-
let c =
|
|
1031
|
-
c &&
|
|
1045
|
+
let c = Y.value.find((e) => e.seriesIndex === s.seriesIndex)?.plots?.[s.plotIndex];
|
|
1046
|
+
c && Er({
|
|
1032
1047
|
datapoint: c,
|
|
1033
1048
|
plotIndex: s.plotIndex,
|
|
1034
1049
|
seriesIndex: s.seriesIndex,
|
|
@@ -1036,19 +1051,19 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1036
1051
|
});
|
|
1037
1052
|
}
|
|
1038
1053
|
return we({
|
|
1039
|
-
getData:
|
|
1040
|
-
getImage:
|
|
1041
|
-
generatePdf:
|
|
1042
|
-
generateCsv:
|
|
1043
|
-
generateImage:
|
|
1044
|
-
generateSvg:
|
|
1045
|
-
hideSeries:
|
|
1046
|
-
showSeries:
|
|
1047
|
-
toggleTable:
|
|
1048
|
-
toggleTooltip:
|
|
1049
|
-
toggleAnnotator:
|
|
1050
|
-
toggleFullscreen:
|
|
1051
|
-
copyAlt:
|
|
1054
|
+
getData: Mr,
|
|
1055
|
+
getImage: Nr,
|
|
1056
|
+
generatePdf: Pn,
|
|
1057
|
+
generateCsv: Dr,
|
|
1058
|
+
generateImage: Fn,
|
|
1059
|
+
generateSvg: Br,
|
|
1060
|
+
hideSeries: vr,
|
|
1061
|
+
showSeries: _r,
|
|
1062
|
+
toggleTable: Ar,
|
|
1063
|
+
toggleTooltip: jr,
|
|
1064
|
+
toggleAnnotator: kr,
|
|
1065
|
+
toggleFullscreen: Sr,
|
|
1066
|
+
copyAlt: Hr
|
|
1052
1067
|
}), (e, t) => (C(), g("div", {
|
|
1053
1068
|
id: `history_plot_${P.value}`,
|
|
1054
1069
|
ref_key: "historyPlotChart",
|
|
@@ -1058,21 +1073,21 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1058
1073
|
"vue-ui-history-plot": !0,
|
|
1059
1074
|
"vue-data-ui-wrapper-fullscreen": I.value
|
|
1060
1075
|
}),
|
|
1061
|
-
style: S(`background:${
|
|
1062
|
-
onMouseenter: t[2] ||= () => O(
|
|
1063
|
-
onMouseleave: t[3] ||= () => O(
|
|
1076
|
+
style: S(`background:${B.value.style.chart.backgroundColor};color:${B.value.style.chart.color};font-family:${B.value.style.fontFamily}; position: relative; ${B.value.responsive ? "height: 100%" : ""}`),
|
|
1077
|
+
onMouseenter: t[2] ||= () => O(An)(!0),
|
|
1078
|
+
onMouseleave: t[3] ||= () => O(An)(!1)
|
|
1064
1079
|
}, [
|
|
1065
1080
|
_("div", {
|
|
1066
1081
|
id: `chart-instructions-${P.value}`,
|
|
1067
1082
|
class: "sr-only"
|
|
1068
|
-
}, [_("p", null, D(
|
|
1069
|
-
|
|
1083
|
+
}, [_("p", null, D(B.value.a11y.translations.keyboardNavigation), 1)], 8, Je),
|
|
1084
|
+
Ur.value.body.length ? (C(), m(Oe, {
|
|
1070
1085
|
key: 0,
|
|
1071
1086
|
uid: P.value,
|
|
1072
|
-
head:
|
|
1073
|
-
body:
|
|
1074
|
-
caption:
|
|
1075
|
-
notice:
|
|
1087
|
+
head: Ur.value.head,
|
|
1088
|
+
body: Ur.value.body,
|
|
1089
|
+
caption: Ur.value.caption,
|
|
1090
|
+
notice: Ur.value.notice
|
|
1076
1091
|
}, null, 8, [
|
|
1077
1092
|
"uid",
|
|
1078
1093
|
"head",
|
|
@@ -1081,14 +1096,14 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1081
1096
|
"notice"
|
|
1082
1097
|
])) : h("", !0),
|
|
1083
1098
|
E(e.$slots, "userConfig", {}, void 0, !0),
|
|
1084
|
-
|
|
1099
|
+
B.value.userOptions.buttons.annotator ? (C(), m(O(Ut), {
|
|
1085
1100
|
key: 1,
|
|
1086
|
-
svgRef: O(
|
|
1087
|
-
backgroundColor:
|
|
1088
|
-
color:
|
|
1089
|
-
active:
|
|
1090
|
-
isCursorPointer:
|
|
1091
|
-
onClose:
|
|
1101
|
+
svgRef: O(H),
|
|
1102
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1103
|
+
color: B.value.style.chart.color,
|
|
1104
|
+
active: Or.value,
|
|
1105
|
+
isCursorPointer: V.value,
|
|
1106
|
+
onClose: kr
|
|
1092
1107
|
}, {
|
|
1093
1108
|
"annotator-action-close": k(() => [E(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1094
1109
|
"annotator-action-color": k(({ color: t }) => [E(e.$slots, "annotator-action-color", x(y({ color: t })), void 0, !0)]),
|
|
@@ -1104,72 +1119,72 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1104
1119
|
"active",
|
|
1105
1120
|
"isCursorPointer"
|
|
1106
1121
|
])) : h("", !0),
|
|
1107
|
-
|
|
1122
|
+
In.value ? (C(), g("div", {
|
|
1108
1123
|
key: 2,
|
|
1109
1124
|
ref_key: "noTitle",
|
|
1110
1125
|
ref: nn,
|
|
1111
1126
|
class: "vue-data-ui-no-title-space",
|
|
1112
1127
|
style: "height:36px; width: 100%;background:transparent"
|
|
1113
1128
|
}, null, 512)) : h("", !0),
|
|
1114
|
-
|
|
1129
|
+
B.value.style.chart.title.text ? (C(), g("div", {
|
|
1115
1130
|
key: 3,
|
|
1116
1131
|
ref_key: "chartTitle",
|
|
1117
1132
|
ref: Xt,
|
|
1118
1133
|
class: "vue-ui-xy-title",
|
|
1119
|
-
style: S(`font-family:${
|
|
1134
|
+
style: S(`font-family:${B.value.style.fontFamily}`)
|
|
1120
1135
|
}, [(C(), m(Ce, {
|
|
1121
1136
|
key: `title_${Zt.value}`,
|
|
1122
1137
|
config: {
|
|
1123
1138
|
title: {
|
|
1124
1139
|
cy: "history-plot-div-title",
|
|
1125
|
-
...
|
|
1140
|
+
...B.value.style.chart.title
|
|
1126
1141
|
},
|
|
1127
1142
|
subtitle: {
|
|
1128
1143
|
cy: "history-plot-div-subtitle",
|
|
1129
|
-
...
|
|
1144
|
+
...B.value.style.chart.title.subtitle
|
|
1130
1145
|
}
|
|
1131
1146
|
}
|
|
1132
1147
|
}, null, 8, ["config"]))], 4)) : h("", !0),
|
|
1133
1148
|
_("div", { id: `legend-top-${P.value}` }, null, 8, Ye),
|
|
1134
|
-
|
|
1149
|
+
B.value.userOptions.show && bn.value && (O(jn) || O(kn)) ? (C(), m(O(Wt), {
|
|
1135
1150
|
ref_key: "userOptionsRef",
|
|
1136
|
-
ref:
|
|
1151
|
+
ref: un,
|
|
1137
1152
|
key: `user_option_${tn.value}`,
|
|
1138
|
-
backgroundColor:
|
|
1139
|
-
color:
|
|
1140
|
-
isPrinting: O(
|
|
1141
|
-
isImaging: O(
|
|
1153
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1154
|
+
color: B.value.style.chart.color,
|
|
1155
|
+
isPrinting: O(Mn),
|
|
1156
|
+
isImaging: O(Nn),
|
|
1142
1157
|
uid: P.value,
|
|
1143
|
-
hasTooltip:
|
|
1144
|
-
hasPdf:
|
|
1145
|
-
hasImg:
|
|
1146
|
-
hasSvg:
|
|
1147
|
-
hasXls:
|
|
1148
|
-
hasTable:
|
|
1158
|
+
hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
|
|
1159
|
+
hasPdf: B.value.userOptions.buttons.pdf,
|
|
1160
|
+
hasImg: B.value.userOptions.buttons.img,
|
|
1161
|
+
hasSvg: B.value.userOptions.buttons.svg,
|
|
1162
|
+
hasXls: B.value.userOptions.buttons.csv,
|
|
1163
|
+
hasTable: B.value.userOptions.buttons.table,
|
|
1149
1164
|
hasLabel: !1,
|
|
1150
|
-
hasFullscreen:
|
|
1151
|
-
hasAltCopy:
|
|
1165
|
+
hasFullscreen: B.value.userOptions.buttons.fullscreen,
|
|
1166
|
+
hasAltCopy: B.value.userOptions.buttons.altCopy,
|
|
1152
1167
|
isFullscreen: I.value,
|
|
1153
1168
|
chartElement: j.value,
|
|
1154
|
-
position:
|
|
1155
|
-
isTooltip:
|
|
1156
|
-
titles: { ...
|
|
1157
|
-
hasAnnotator:
|
|
1158
|
-
isAnnotation:
|
|
1159
|
-
callbacks:
|
|
1160
|
-
printScale:
|
|
1161
|
-
tableDialog:
|
|
1162
|
-
isCursorPointer:
|
|
1163
|
-
onToggleFullscreen:
|
|
1164
|
-
onGeneratePdf: O(
|
|
1165
|
-
onGenerateCsv:
|
|
1166
|
-
onGenerateImage:
|
|
1167
|
-
onGenerateSvg:
|
|
1168
|
-
onToggleTable:
|
|
1169
|
-
onToggleTooltip:
|
|
1170
|
-
onToggleAnnotator:
|
|
1171
|
-
onCopyAlt:
|
|
1172
|
-
style: S({ visibility: O(
|
|
1169
|
+
position: B.value.userOptions.position,
|
|
1170
|
+
isTooltip: U.value.showTooltip,
|
|
1171
|
+
titles: { ...B.value.userOptions.buttonTitles },
|
|
1172
|
+
hasAnnotator: B.value.userOptions.buttons.annotator,
|
|
1173
|
+
isAnnotation: Or.value,
|
|
1174
|
+
callbacks: B.value.userOptions.callbacks,
|
|
1175
|
+
printScale: B.value.userOptions.print.scale,
|
|
1176
|
+
tableDialog: B.value.table.useDialog,
|
|
1177
|
+
isCursorPointer: V.value,
|
|
1178
|
+
onToggleFullscreen: Sr,
|
|
1179
|
+
onGeneratePdf: O(Pn),
|
|
1180
|
+
onGenerateCsv: Dr,
|
|
1181
|
+
onGenerateImage: Vr,
|
|
1182
|
+
onGenerateSvg: Br,
|
|
1183
|
+
onToggleTable: Ar,
|
|
1184
|
+
onToggleTooltip: jr,
|
|
1185
|
+
onToggleAnnotator: kr,
|
|
1186
|
+
onCopyAlt: Hr,
|
|
1187
|
+
style: S({ visibility: O(jn) ? O(kn) ? "visible" : "hidden" : "visible" })
|
|
1173
1188
|
}, Pe({ _: 2 }, [
|
|
1174
1189
|
e.$slots.menuIcon ? {
|
|
1175
1190
|
name: "menuIcon",
|
|
@@ -1243,33 +1258,33 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1243
1258
|
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : h("", !0),
|
|
1244
1259
|
_("div", Xe, [(C(), g("svg", {
|
|
1245
1260
|
ref_key: "svgRef",
|
|
1246
|
-
ref:
|
|
1261
|
+
ref: H,
|
|
1247
1262
|
xmlns: O(ue),
|
|
1248
|
-
viewBox: `0 0 ${
|
|
1249
|
-
style: S(`max-width:100%;overflow:visible;background:transparent;color:${
|
|
1263
|
+
viewBox: `0 0 ${W.value.width < 0 ? .1 : W.value.width} ${W.value.height < 0 ? .1 : W.value.height}`,
|
|
1264
|
+
style: S(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
|
|
1250
1265
|
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1251
1266
|
tabindex: "0",
|
|
1252
|
-
onFocus:
|
|
1253
|
-
onBlur:
|
|
1254
|
-
onKeydown:
|
|
1267
|
+
onFocus: Kr,
|
|
1268
|
+
onBlur: qr,
|
|
1269
|
+
onKeydown: Xr
|
|
1255
1270
|
}, [
|
|
1256
1271
|
Ie(O(Gt)),
|
|
1257
1272
|
e.$slots["chart-background"] ? (C(), g("foreignObject", {
|
|
1258
1273
|
key: 0,
|
|
1259
|
-
x:
|
|
1260
|
-
y:
|
|
1261
|
-
width:
|
|
1262
|
-
height:
|
|
1274
|
+
x: G.value.left,
|
|
1275
|
+
y: G.value.top,
|
|
1276
|
+
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
1277
|
+
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
1263
1278
|
style: { pointerEvents: "none" }
|
|
1264
1279
|
}, [E(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : h("", !0),
|
|
1265
|
-
|
|
1280
|
+
B.value.style.chart.plots.gradient.show || Qn.value ? (C(), g("defs", $e, [B.value.style.chart.plots.gradient.show ? (C(!0), g(f, { key: 0 }, T(Y.value, (e, t) => (C(), g("radialGradient", {
|
|
1266
1281
|
key: `gradient_${t}_${P.value}`,
|
|
1267
1282
|
id: `gradient_${t}_${P.value}`,
|
|
1268
1283
|
fy: "30%"
|
|
1269
1284
|
}, [
|
|
1270
1285
|
_("stop", {
|
|
1271
1286
|
offset: "10%",
|
|
1272
|
-
"stop-color": O(te)(e.color,
|
|
1287
|
+
"stop-color": O(te)(e.color, B.value.style.chart.plots.gradient.intensity / 100)
|
|
1273
1288
|
}, null, 8, tt),
|
|
1274
1289
|
_("stop", {
|
|
1275
1290
|
offset: "90%",
|
|
@@ -1279,14 +1294,14 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1279
1294
|
offset: "100%",
|
|
1280
1295
|
"stop-color": e.color
|
|
1281
1296
|
}, null, 8, rt)
|
|
1282
|
-
], 8, et))), 128)) : h("", !0), (C(!0), g(f, null, T(
|
|
1297
|
+
], 8, et))), 128)) : h("", !0), (C(!0), g(f, null, T(Y.value, (e) => (C(), g(f, { key: `temperature_grad_history_template_${e.seriesIndex}_${P.value}` }, [B.value.style.chart.plots.gradient.show && $n(e) ? (C(!0), g(f, { key: 0 }, T(e.plots, (t) => (C(), g("radialGradient", {
|
|
1283
1298
|
key: `temperature_plot_grad_history_${e.seriesIndex}_${t.id}_${P.value}`,
|
|
1284
|
-
id:
|
|
1299
|
+
id: ar(e, t),
|
|
1285
1300
|
fy: "30%"
|
|
1286
1301
|
}, [
|
|
1287
1302
|
_("stop", {
|
|
1288
1303
|
offset: "10%",
|
|
1289
|
-
"stop-color": O(te)(Z(e, t),
|
|
1304
|
+
"stop-color": O(te)(Z(e, t), B.value.style.chart.plots.gradient.intensity / 100)
|
|
1290
1305
|
}, null, 8, at),
|
|
1291
1306
|
_("stop", {
|
|
1292
1307
|
offset: "90%",
|
|
@@ -1296,144 +1311,144 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1296
1311
|
offset: "100%",
|
|
1297
1312
|
"stop-color": Z(e, t)
|
|
1298
1313
|
}, null, 8, st)
|
|
1299
|
-
], 8, it))), 128)) : h("", !0),
|
|
1314
|
+
], 8, it))), 128)) : h("", !0), X(e) ? (C(), g("linearGradient", {
|
|
1300
1315
|
key: 1,
|
|
1301
1316
|
id: `temperature_grad_history_${e.seriesIndex}_${P.value}`,
|
|
1302
1317
|
gradientUnits: "userSpaceOnUse",
|
|
1303
|
-
x1:
|
|
1304
|
-
y1:
|
|
1305
|
-
x2:
|
|
1306
|
-
y2:
|
|
1318
|
+
x1: rr(e).x1,
|
|
1319
|
+
y1: rr(e).y1,
|
|
1320
|
+
x2: rr(e).x2,
|
|
1321
|
+
y2: rr(e).y2
|
|
1307
1322
|
}, [(C(!0), g(f, null, T(e.temperatureColors, (t, n) => (C(), g("stop", {
|
|
1308
1323
|
key: `temperature_grad_history_stop_${e.seriesIndex}_${n}_${P.value}`,
|
|
1309
1324
|
"stop-color": t,
|
|
1310
1325
|
offset: e.temperatureColors.length === 1 ? "0%" : O(a)(n, e.temperatureColors.length)
|
|
1311
1326
|
}, null, 8, lt))), 128))], 8, ct)) : h("", !0)], 64))), 128))])) : h("", !0),
|
|
1312
|
-
|
|
1327
|
+
B.value.style.chart.grid.verticalLines.show ? (C(), g("g", ut, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
|
|
1313
1328
|
x1: e.x,
|
|
1314
1329
|
x2: e.x,
|
|
1315
1330
|
y1: e.y1,
|
|
1316
1331
|
y2: e.y2,
|
|
1317
|
-
stroke:
|
|
1318
|
-
"stroke-width":
|
|
1332
|
+
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1333
|
+
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1319
1334
|
"stroke-linecap": "round"
|
|
1320
1335
|
}, null, 8, dt))), 256))])) : h("", !0),
|
|
1321
|
-
|
|
1322
|
-
stroke:
|
|
1323
|
-
"stroke-width":
|
|
1336
|
+
B.value.style.chart.axes.y.labels.show ? (C(), g("g", ft, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
|
|
1337
|
+
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1338
|
+
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1324
1339
|
"stroke-linecap": "round",
|
|
1325
|
-
x1:
|
|
1326
|
-
x2:
|
|
1340
|
+
x1: G.value.left - 5,
|
|
1341
|
+
x2: G.value.left,
|
|
1327
1342
|
y1: e.y,
|
|
1328
1343
|
y2: e.y
|
|
1329
1344
|
}, null, 8, pt))), 256))])) : h("", !0),
|
|
1330
|
-
|
|
1345
|
+
B.value.style.chart.axes.y.labels.show ? (C(), g("g", {
|
|
1331
1346
|
key: 4,
|
|
1332
1347
|
ref_key: "yAxisScales",
|
|
1333
|
-
ref:
|
|
1334
|
-
}, [(C(!0), g(f, null, T(
|
|
1335
|
-
x:
|
|
1336
|
-
y: e.y +
|
|
1337
|
-
fill:
|
|
1338
|
-
"font-size":
|
|
1348
|
+
ref: gn
|
|
1349
|
+
}, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("text", {
|
|
1350
|
+
x: G.value.left + B.value.style.chart.axes.y.labels.offsetX - 4 - B.value.style.chart.plots.radius,
|
|
1351
|
+
y: e.y + K.value.yAxisLabels / 3,
|
|
1352
|
+
fill: B.value.style.chart.axes.y.labels.color,
|
|
1353
|
+
"font-size": K.value.yAxisLabels,
|
|
1339
1354
|
"text-anchor": "end"
|
|
1340
|
-
}, D(O(u)(
|
|
1341
|
-
p:
|
|
1355
|
+
}, D(O(u)(B.value.style.chart.axes.y.labels.formatter, e.value, O(d)({
|
|
1356
|
+
p: B.value.style.chart.axes.y.labels.prefix,
|
|
1342
1357
|
v: e.value,
|
|
1343
|
-
s:
|
|
1344
|
-
r:
|
|
1358
|
+
s: B.value.style.chart.axes.y.labels.suffix,
|
|
1359
|
+
r: B.value.style.chart.axes.y.labels.rounding
|
|
1345
1360
|
}))), 9, mt))), 256))], 512)) : h("", !0),
|
|
1346
|
-
|
|
1361
|
+
B.value.style.chart.axes.y.name.text ? (C(), g("text", {
|
|
1347
1362
|
key: 5,
|
|
1348
1363
|
ref_key: "yAxisLabel",
|
|
1349
|
-
ref:
|
|
1350
|
-
transform: `translate(${
|
|
1351
|
-
"font-size":
|
|
1352
|
-
fill:
|
|
1353
|
-
"font-weight":
|
|
1364
|
+
ref: mn,
|
|
1365
|
+
transform: `translate(${K.value.yAxisName}, ${W.value.height / 2 + B.value.style.chart.axes.y.name.offsetY}), rotate(-90)`,
|
|
1366
|
+
"font-size": K.value.yAxisName,
|
|
1367
|
+
fill: B.value.style.chart.axes.y.name.color,
|
|
1368
|
+
"font-weight": B.value.style.chart.axes.y.name.bold ? "bold" : "normal",
|
|
1354
1369
|
"text-anchor": "middle"
|
|
1355
|
-
}, D(
|
|
1356
|
-
|
|
1370
|
+
}, D(B.value.style.chart.axes.y.name.text), 9, ht)) : h("", !0),
|
|
1371
|
+
B.value.style.chart.grid.horizontalLines.show ? (C(), g("g", gt, [(C(!0), g(f, null, T(J.value.tickY, (e) => (C(), g("line", {
|
|
1357
1372
|
x1: e.x1,
|
|
1358
1373
|
x2: e.x2,
|
|
1359
1374
|
y1: e.y,
|
|
1360
1375
|
y2: e.y,
|
|
1361
|
-
stroke:
|
|
1362
|
-
"stroke-width":
|
|
1376
|
+
stroke: B.value.style.chart.grid.horizontalLines.stroke,
|
|
1377
|
+
"stroke-width": B.value.style.chart.grid.horizontalLines.strokeWidth,
|
|
1363
1378
|
"stroke-linecap": "round"
|
|
1364
1379
|
}, null, 8, _t))), 256))])) : h("", !0),
|
|
1365
|
-
|
|
1366
|
-
stroke:
|
|
1367
|
-
"stroke-width":
|
|
1380
|
+
B.value.style.chart.axes.x.labels.show ? (C(), g("g", vt, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("line", {
|
|
1381
|
+
stroke: B.value.style.chart.grid.verticalLines.stroke,
|
|
1382
|
+
"stroke-width": B.value.style.chart.grid.verticalLines.strokeWidth,
|
|
1368
1383
|
"stroke-linecap": "round",
|
|
1369
1384
|
x1: e.x,
|
|
1370
1385
|
x2: e.x,
|
|
1371
|
-
y1:
|
|
1372
|
-
y2:
|
|
1386
|
+
y1: G.value.bottom,
|
|
1387
|
+
y2: G.value.bottom + 5
|
|
1373
1388
|
}, null, 8, yt))), 256))])) : h("", !0),
|
|
1374
|
-
|
|
1389
|
+
B.value.style.chart.axes.x.labels.show ? (C(), g("g", {
|
|
1375
1390
|
key: 8,
|
|
1376
1391
|
ref_key: "xAxisScales",
|
|
1377
|
-
ref:
|
|
1378
|
-
}, [(C(!0), g(f, null, T(
|
|
1392
|
+
ref: hn
|
|
1393
|
+
}, [(C(!0), g(f, null, T(J.value.tickX, (e) => (C(), g("text", {
|
|
1379
1394
|
class: "vue-ui-history-plot-x-axis-scale",
|
|
1380
|
-
transform: `translate(${e.x}, ${
|
|
1381
|
-
fill:
|
|
1382
|
-
"font-size":
|
|
1383
|
-
"text-anchor":
|
|
1384
|
-
}, D(O(u)(
|
|
1385
|
-
p:
|
|
1395
|
+
transform: `translate(${e.x}, ${G.value.bottom + B.value.style.chart.axes.x.labels.offsetY + K.value.xAxisLabels + B.value.style.chart.plots.radius}), rotate(${B.value.style.chart.axes.x.labels.rotation})`,
|
|
1396
|
+
fill: B.value.style.chart.axes.x.labels.color,
|
|
1397
|
+
"font-size": K.value.xAxisLabels,
|
|
1398
|
+
"text-anchor": B.value.style.chart.axes.x.labels.rotation > 0 ? "start" : B.value.style.chart.axes.x.labels.rotation < 0 ? "end" : "middle"
|
|
1399
|
+
}, D(O(u)(B.value.style.chart.axes.x.labels.formatter, e.value, O(d)({
|
|
1400
|
+
p: B.value.style.chart.axes.x.labels.prefix,
|
|
1386
1401
|
v: e.value,
|
|
1387
|
-
s:
|
|
1388
|
-
r:
|
|
1402
|
+
s: B.value.style.chart.axes.x.labels.suffix,
|
|
1403
|
+
r: B.value.style.chart.axes.x.labels.rounding
|
|
1389
1404
|
}))), 9, bt))), 256))], 512)) : h("", !0),
|
|
1390
|
-
|
|
1405
|
+
B.value.style.chart.axes.x.name.text ? (C(), g("text", {
|
|
1391
1406
|
key: 9,
|
|
1392
1407
|
ref_key: "xAxisLabel",
|
|
1393
|
-
ref:
|
|
1394
|
-
x:
|
|
1395
|
-
y:
|
|
1396
|
-
"font-size":
|
|
1397
|
-
fill:
|
|
1398
|
-
"font-weight":
|
|
1408
|
+
ref: pn,
|
|
1409
|
+
x: W.value.width / 2 + B.value.style.chart.axes.x.name.offsetX,
|
|
1410
|
+
y: W.value.height,
|
|
1411
|
+
"font-size": K.value.xAxisName,
|
|
1412
|
+
fill: B.value.style.chart.axes.x.name.color,
|
|
1413
|
+
"font-weight": B.value.style.chart.axes.x.name.bold ? "bold" : "normal",
|
|
1399
1414
|
"text-anchor": "middle"
|
|
1400
|
-
}, D(
|
|
1401
|
-
|
|
1415
|
+
}, D(B.value.style.chart.axes.x.name.text), 9, xt)) : h("", !0),
|
|
1416
|
+
B.value.style.chart.grid.xAxis.show ? (C(), g("line", {
|
|
1402
1417
|
key: 10,
|
|
1403
|
-
x1:
|
|
1404
|
-
x2:
|
|
1405
|
-
y1:
|
|
1406
|
-
y2:
|
|
1407
|
-
stroke:
|
|
1408
|
-
"stroke-width":
|
|
1418
|
+
x1: G.value.left,
|
|
1419
|
+
x2: G.value.left + G.value.width,
|
|
1420
|
+
y1: G.value.bottom,
|
|
1421
|
+
y2: G.value.bottom,
|
|
1422
|
+
stroke: B.value.style.chart.grid.xAxis.stroke,
|
|
1423
|
+
"stroke-width": B.value.style.chart.grid.xAxis.strokeWidth,
|
|
1409
1424
|
"stroke-linecap": "round"
|
|
1410
1425
|
}, null, 8, St)) : h("", !0),
|
|
1411
|
-
|
|
1426
|
+
B.value.style.chart.grid.yAxis.show ? (C(), g("line", {
|
|
1412
1427
|
key: 11,
|
|
1413
|
-
x1:
|
|
1414
|
-
x2:
|
|
1415
|
-
y1:
|
|
1416
|
-
y2:
|
|
1417
|
-
stroke:
|
|
1418
|
-
"stroke-width":
|
|
1428
|
+
x1: G.value.left,
|
|
1429
|
+
x2: G.value.left,
|
|
1430
|
+
y1: G.value.top,
|
|
1431
|
+
y2: G.value.bottom,
|
|
1432
|
+
stroke: B.value.style.chart.grid.yAxis.stroke,
|
|
1433
|
+
"stroke-width": B.value.style.chart.grid.yAxis.strokeWidth,
|
|
1419
1434
|
"stroke-linecap": "round"
|
|
1420
1435
|
}, null, 8, Ct)) : h("", !0),
|
|
1421
|
-
(C(!0), g(f, null, T(
|
|
1422
|
-
|
|
1436
|
+
(C(!0), g(f, null, T(Zn.value, (e) => (C(), g("g", { key: `history_plot_serie_${e.seriesIndex}_${P.value}` }, [
|
|
1437
|
+
B.value.style.chart.paths.show ? (C(), g("g", {
|
|
1423
1438
|
key: 0,
|
|
1424
|
-
style: S({ opacity:
|
|
1439
|
+
style: S({ opacity: dr(e.seriesIndex) })
|
|
1425
1440
|
}, [_("path", {
|
|
1426
1441
|
d: e.path,
|
|
1427
|
-
stroke:
|
|
1428
|
-
"stroke-width":
|
|
1442
|
+
stroke: B.value.style.chart.backgroundColor,
|
|
1443
|
+
"stroke-width": B.value.style.chart.paths.strokeWidth + 4,
|
|
1429
1444
|
fill: "none",
|
|
1430
1445
|
"stroke-linecap": "round",
|
|
1431
1446
|
"stroke-linejoin": "round",
|
|
1432
1447
|
class: b({ animated: Q() })
|
|
1433
1448
|
}, null, 10, wt), _("path", {
|
|
1434
1449
|
d: e.path,
|
|
1435
|
-
stroke:
|
|
1436
|
-
"stroke-width":
|
|
1450
|
+
stroke: ur(e),
|
|
1451
|
+
"stroke-width": B.value.style.chart.paths.strokeWidth,
|
|
1437
1452
|
fill: "none",
|
|
1438
1453
|
"stroke-linecap": "round",
|
|
1439
1454
|
"stroke-linejoin": "round",
|
|
@@ -1442,133 +1457,133 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1442
1457
|
(C(!0), g(f, null, T(e.plots, (e) => (C(), g("circle", {
|
|
1443
1458
|
cx: e.x,
|
|
1444
1459
|
cy: e.y,
|
|
1445
|
-
fill:
|
|
1446
|
-
r:
|
|
1460
|
+
fill: B.value.style.chart.backgroundColor,
|
|
1461
|
+
r: K.value.plots,
|
|
1447
1462
|
stroke: "none"
|
|
1448
1463
|
}, null, 8, Et))), 256)),
|
|
1449
1464
|
(C(!0), g(f, null, T(e.plots, (t) => (C(), g("circle", {
|
|
1450
1465
|
cx: t.x,
|
|
1451
1466
|
cy: t.y,
|
|
1452
|
-
fill:
|
|
1453
|
-
r:
|
|
1454
|
-
stroke:
|
|
1455
|
-
"stroke-width":
|
|
1467
|
+
fill: or(e, t, e.gradientIndex),
|
|
1468
|
+
r: K.value.plots,
|
|
1469
|
+
stroke: B.value.style.chart.plots.stroke,
|
|
1470
|
+
"stroke-width": B.value.style.chart.plots.strokeWidth,
|
|
1456
1471
|
class: b({ animated: Q() }),
|
|
1457
1472
|
style: S({
|
|
1458
|
-
opacity:
|
|
1459
|
-
transition:
|
|
1473
|
+
opacity: dr(e.seriesIndex),
|
|
1474
|
+
transition: pr()
|
|
1460
1475
|
})
|
|
1461
1476
|
}, null, 14, Dt))), 256)),
|
|
1462
|
-
|
|
1477
|
+
B.value.style.chart.plots.labels.show ? (C(), g("g", Ot, [(C(!0), g(f, null, T(e.plots, (t) => (C(), g("g", null, [String(t.label).includes("\n") ? (C(), g("text", {
|
|
1463
1478
|
key: 1,
|
|
1464
|
-
x: t.x +
|
|
1465
|
-
y: t.y +
|
|
1466
|
-
"font-size":
|
|
1467
|
-
fill:
|
|
1468
|
-
"font-weight":
|
|
1479
|
+
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1480
|
+
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
|
|
1481
|
+
"font-size": K.value.labels,
|
|
1482
|
+
fill: B.value.style.chart.plots.labels.color,
|
|
1483
|
+
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1469
1484
|
"text-anchor": "middle",
|
|
1470
1485
|
class: b({ animated: Q() }),
|
|
1471
1486
|
style: S({
|
|
1472
|
-
opacity:
|
|
1473
|
-
transition:
|
|
1487
|
+
opacity: dr(e.seriesIndex),
|
|
1488
|
+
transition: pr()
|
|
1474
1489
|
}),
|
|
1475
1490
|
innerHTML: O(r)({
|
|
1476
1491
|
content: String(t.label),
|
|
1477
|
-
fontSize:
|
|
1478
|
-
fill:
|
|
1479
|
-
x: t.x +
|
|
1480
|
-
y: t.y +
|
|
1492
|
+
fontSize: K.value.labels,
|
|
1493
|
+
fill: B.value.style.chart.plots.labels.color,
|
|
1494
|
+
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1495
|
+
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels
|
|
1481
1496
|
})
|
|
1482
1497
|
}, null, 14, At)) : (C(), g("text", {
|
|
1483
1498
|
key: 0,
|
|
1484
|
-
x: t.x +
|
|
1485
|
-
y: t.y +
|
|
1486
|
-
"font-size":
|
|
1487
|
-
fill:
|
|
1488
|
-
"font-weight":
|
|
1499
|
+
x: t.x + B.value.style.chart.plots.labels.offsetX,
|
|
1500
|
+
y: t.y + B.value.style.chart.plots.labels.offsetY + K.value.plots + K.value.labels,
|
|
1501
|
+
"font-size": K.value.labels,
|
|
1502
|
+
fill: B.value.style.chart.plots.labels.color,
|
|
1503
|
+
"font-weight": B.value.style.chart.plots.labels.bold ? "bold" : "normal",
|
|
1489
1504
|
"text-anchor": "middle",
|
|
1490
1505
|
class: b({ animated: Q() }),
|
|
1491
1506
|
style: S({
|
|
1492
|
-
opacity:
|
|
1493
|
-
transition:
|
|
1507
|
+
opacity: dr(e.seriesIndex),
|
|
1508
|
+
transition: pr()
|
|
1494
1509
|
})
|
|
1495
1510
|
}, D(t.label), 15, kt))]))), 256))])) : h("", !0),
|
|
1496
|
-
|
|
1497
|
-
x: t.x +
|
|
1498
|
-
y: t.y +
|
|
1499
|
-
"font-size":
|
|
1500
|
-
"font-weight":
|
|
1501
|
-
fill:
|
|
1511
|
+
B.value.style.chart.plots.indexLabels.show ? (C(), g("g", jt, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("text", {
|
|
1512
|
+
x: t.x + B.value.style.chart.plots.indexLabels.offsetX,
|
|
1513
|
+
y: t.y + B.value.style.chart.plots.indexLabels.offsetY + K.value.indexLabels / 3,
|
|
1514
|
+
"font-size": K.value.indexLabels,
|
|
1515
|
+
"font-weight": B.value.style.chart.plots.indexLabels.bold ? "bold" : "normal",
|
|
1516
|
+
fill: cr(e, t),
|
|
1502
1517
|
"text-anchor": "middle",
|
|
1503
1518
|
class: b({ animated: Q() }),
|
|
1504
1519
|
style: S({
|
|
1505
|
-
opacity:
|
|
1506
|
-
transition:
|
|
1520
|
+
opacity: dr(e.seriesIndex),
|
|
1521
|
+
transition: pr()
|
|
1507
1522
|
})
|
|
1508
|
-
}, D(
|
|
1523
|
+
}, D(B.value.style.chart.plots.indexLabels.startAtZero ? n : n + 1), 15, Mt))), 256))])) : h("", !0)
|
|
1509
1524
|
]))), 128)),
|
|
1510
|
-
(C(!0), g(f, null, T(
|
|
1525
|
+
(C(!0), g(f, null, T(Zn.value, (e) => (C(), g("g", { key: `history_plot_trap_serie_${e.seriesIndex}_${P.value}` }, [(C(!0), g(f, null, T(e.plots, (t, n) => (C(), g("circle", {
|
|
1511
1526
|
cx: t.x,
|
|
1512
1527
|
cy: t.y,
|
|
1513
1528
|
fill: "transparent",
|
|
1514
|
-
r:
|
|
1529
|
+
r: K.value.plots,
|
|
1515
1530
|
stroke: "none",
|
|
1516
|
-
onMouseenter: (r) =>
|
|
1531
|
+
onMouseenter: (r) => Er({
|
|
1517
1532
|
datapoint: t,
|
|
1518
1533
|
plotIndex: n,
|
|
1519
1534
|
seriesIndex: e.seriesIndex,
|
|
1520
1535
|
triggerMode: "pointer"
|
|
1521
1536
|
}),
|
|
1522
|
-
onMouseleave: (r) =>
|
|
1537
|
+
onMouseleave: (r) => wr({
|
|
1523
1538
|
datapoint: t,
|
|
1524
1539
|
plotIndex: n,
|
|
1525
1540
|
seriesIndex: e.seriesIndex
|
|
1526
1541
|
}),
|
|
1527
|
-
onClick: (r) =>
|
|
1542
|
+
onClick: (r) => xr({
|
|
1528
1543
|
datapoint: t,
|
|
1529
1544
|
plotIndex: n,
|
|
1530
1545
|
seriesIndex: e.seriesIndex
|
|
1531
1546
|
})
|
|
1532
1547
|
}, null, 40, Nt))), 256))]))), 128)),
|
|
1533
1548
|
E(e.$slots, "svg", { svg: {
|
|
1534
|
-
...
|
|
1535
|
-
drawingArea:
|
|
1536
|
-
isPrintingImg: O(
|
|
1537
|
-
isPrintingSvg:
|
|
1549
|
+
...W.value,
|
|
1550
|
+
drawingArea: G.value,
|
|
1551
|
+
isPrintingImg: O(Mn) || O(Nn) || dn.value,
|
|
1552
|
+
isPrintingSvg: fn.value
|
|
1538
1553
|
} }, void 0, !0)
|
|
1539
1554
|
], 44, Ze)), e.$slots.hint ? (C(), g("div", Pt, [E(e.$slots, "hint", x(y({
|
|
1540
|
-
hint:
|
|
1541
|
-
isVisible:
|
|
1555
|
+
hint: B.value.a11y.translations.keyboardNavigation,
|
|
1556
|
+
isVisible: yn.value
|
|
1542
1557
|
})), void 0, !0)])) : h("", !0)]),
|
|
1543
|
-
e.$slots.watermark ? (C(), g("div", Ft, [E(e.$slots, "watermark", x(y({ isPrinting: O(
|
|
1558
|
+
e.$slots.watermark ? (C(), g("div", Ft, [E(e.$slots, "watermark", x(y({ isPrinting: O(Mn) || O(Nn) || dn.value || fn.value })), void 0, !0)])) : h("", !0),
|
|
1544
1559
|
_("div", { id: `legend-bottom-${P.value}` }, null, 8, It),
|
|
1545
|
-
|
|
1560
|
+
cn.value && (B.value.style.chart.legend.show || e.$slots.legend) ? (C(), m(Ne, {
|
|
1546
1561
|
key: 6,
|
|
1547
|
-
to:
|
|
1562
|
+
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
1548
1563
|
}, [_("div", {
|
|
1549
1564
|
ref_key: "chartLegend",
|
|
1550
1565
|
ref: Qt
|
|
1551
|
-
}, [E(e.$slots, "legend", { legend:
|
|
1566
|
+
}, [E(e.$slots, "legend", { legend: yr.value }, () => [B.value.style.chart.legend.show && bn.value ? (C(), m(je, {
|
|
1552
1567
|
key: `legend_${$t.value}`,
|
|
1553
|
-
legendSet:
|
|
1554
|
-
config:
|
|
1555
|
-
isCursorPointer:
|
|
1568
|
+
legendSet: yr.value,
|
|
1569
|
+
config: br.value,
|
|
1570
|
+
isCursorPointer: V.value,
|
|
1556
1571
|
onClickMarker: t[0] ||= ({ legend: e }) => {
|
|
1557
|
-
|
|
1572
|
+
hr(e.seriesIndex);
|
|
1558
1573
|
}
|
|
1559
1574
|
}, {
|
|
1560
1575
|
item: k(({ legend: e, index: t }) => [_("div", {
|
|
1561
1576
|
onClick: (t) => e.segregate(),
|
|
1562
1577
|
style: S(`opacity:${F.value.includes(e.seriesIndex) ? .5 : 1}`)
|
|
1563
1578
|
}, D(e.name), 13, Lt)]),
|
|
1564
|
-
legendToggle: k(() => [
|
|
1579
|
+
legendToggle: k(() => [yr.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !O(En) ? (C(), m(De, {
|
|
1565
1580
|
key: 0,
|
|
1566
|
-
backgroundColor:
|
|
1567
|
-
color:
|
|
1568
|
-
fontSize:
|
|
1581
|
+
backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1582
|
+
color: B.value.style.chart.legend.selectAllToggle.color,
|
|
1583
|
+
fontSize: B.value.style.chart.legend.fontSize,
|
|
1569
1584
|
checked: F.value.length > 0,
|
|
1570
|
-
isCursorPointer:
|
|
1571
|
-
onToggle:
|
|
1585
|
+
isCursorPointer: V.value,
|
|
1586
|
+
onToggle: mr
|
|
1572
1587
|
}, null, 8, [
|
|
1573
1588
|
"backgroundColor",
|
|
1574
1589
|
"color",
|
|
@@ -1585,36 +1600,36 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1585
1600
|
e.$slots.source ? (C(), g("div", {
|
|
1586
1601
|
key: 7,
|
|
1587
1602
|
ref_key: "source",
|
|
1588
|
-
ref:
|
|
1603
|
+
ref: sn,
|
|
1589
1604
|
dir: "auto"
|
|
1590
1605
|
}, [E(e.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1591
1606
|
Ie(O(zt), {
|
|
1592
|
-
teleportTo:
|
|
1593
|
-
show:
|
|
1594
|
-
backgroundColor:
|
|
1595
|
-
color:
|
|
1596
|
-
fontSize:
|
|
1597
|
-
borderRadius:
|
|
1598
|
-
borderColor:
|
|
1599
|
-
borderWidth:
|
|
1600
|
-
backgroundOpacity:
|
|
1601
|
-
position:
|
|
1602
|
-
offsetX:
|
|
1603
|
-
offsetY:
|
|
1607
|
+
teleportTo: B.value.style.chart.tooltip.teleportTo,
|
|
1608
|
+
show: U.value.showTooltip && rn.value,
|
|
1609
|
+
backgroundColor: B.value.style.chart.tooltip.backgroundColor,
|
|
1610
|
+
color: B.value.style.chart.tooltip.color,
|
|
1611
|
+
fontSize: B.value.style.chart.tooltip.fontSize,
|
|
1612
|
+
borderRadius: B.value.style.chart.tooltip.borderRadius,
|
|
1613
|
+
borderColor: B.value.style.chart.tooltip.borderColor,
|
|
1614
|
+
borderWidth: B.value.style.chart.tooltip.borderWidth,
|
|
1615
|
+
backgroundOpacity: B.value.style.chart.tooltip.backgroundOpacity,
|
|
1616
|
+
position: B.value.style.chart.tooltip.position,
|
|
1617
|
+
offsetX: B.value.style.chart.tooltip.offsetX,
|
|
1618
|
+
offsetY: B.value.style.chart.tooltip.offsetY,
|
|
1604
1619
|
parent: j.value,
|
|
1605
1620
|
content: an.value,
|
|
1606
|
-
isCustom:
|
|
1621
|
+
isCustom: on.value,
|
|
1607
1622
|
isFullscreen: I.value,
|
|
1608
|
-
smooth:
|
|
1609
|
-
backdropFilter:
|
|
1610
|
-
smoothForce:
|
|
1611
|
-
smoothSnapThreshold:
|
|
1612
|
-
isA11yMode:
|
|
1613
|
-
a11yPosition:
|
|
1623
|
+
smooth: B.value.style.chart.tooltip.smooth,
|
|
1624
|
+
backdropFilter: B.value.style.chart.tooltip.backdropFilter,
|
|
1625
|
+
smoothForce: B.value.style.chart.tooltip.smoothForce,
|
|
1626
|
+
smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1627
|
+
isA11yMode: vn.value === "keyboard",
|
|
1628
|
+
a11yPosition: _n.value
|
|
1614
1629
|
}, {
|
|
1615
|
-
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...
|
|
1616
|
-
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...
|
|
1617
|
-
"tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...
|
|
1630
|
+
"tooltip-before": k(() => [E(e.$slots, "tooltip-before", x(y({ ...Cr.value })), void 0, !0)]),
|
|
1631
|
+
tooltip: k(() => [E(e.$slots, "tooltip", x(y({ ...Cr.value })), void 0, !0)]),
|
|
1632
|
+
"tooltip-after": k(() => [E(e.$slots, "tooltip-after", x(y({ ...Cr.value })), void 0, !0)]),
|
|
1618
1633
|
_: 3
|
|
1619
1634
|
}, 8, [
|
|
1620
1635
|
"teleportTo",
|
|
@@ -1640,10 +1655,10 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1640
1655
|
"isA11yMode",
|
|
1641
1656
|
"a11yPosition"
|
|
1642
1657
|
]),
|
|
1643
|
-
|
|
1658
|
+
bn.value && B.value.userOptions.buttons.table ? (C(), m(Ve(Pr.value.component), Le({ key: 8 }, Pr.value.props, {
|
|
1644
1659
|
ref_key: "tableUnit",
|
|
1645
|
-
ref:
|
|
1646
|
-
onClose:
|
|
1660
|
+
ref: ln,
|
|
1661
|
+
onClose: Fr
|
|
1647
1662
|
}), Pe({
|
|
1648
1663
|
content: k(() => [(C(), m(O(Ht), {
|
|
1649
1664
|
key: `table_${en.value}`,
|
|
@@ -1651,10 +1666,10 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1651
1666
|
head: $.value.head,
|
|
1652
1667
|
body: $.value.body,
|
|
1653
1668
|
config: $.value.config,
|
|
1654
|
-
title:
|
|
1655
|
-
withCloseButton: !
|
|
1656
|
-
isCursorPointer:
|
|
1657
|
-
onClose:
|
|
1669
|
+
title: B.value.table.useDialog ? "" : Pr.value.title,
|
|
1670
|
+
withCloseButton: !B.value.table.useDialog,
|
|
1671
|
+
isCursorPointer: V.value,
|
|
1672
|
+
onClose: Fr
|
|
1658
1673
|
}, {
|
|
1659
1674
|
th: k(({ th: e }) => [_("div", {
|
|
1660
1675
|
innerHTML: e,
|
|
@@ -1675,26 +1690,26 @@ var Ke = /* @__PURE__ */ e({ default: () => zt }), qe = ["id"], Je = ["id"], Ye
|
|
|
1675
1690
|
"isCursorPointer"
|
|
1676
1691
|
]))]),
|
|
1677
1692
|
_: 2
|
|
1678
|
-
}, [
|
|
1693
|
+
}, [B.value.table.useDialog ? {
|
|
1679
1694
|
name: "title",
|
|
1680
|
-
fn: k(() => [Fe(D(
|
|
1695
|
+
fn: k(() => [Fe(D(Pr.value.title), 1)]),
|
|
1681
1696
|
key: "0"
|
|
1682
|
-
} : void 0,
|
|
1697
|
+
} : void 0, B.value.table.useDialog ? {
|
|
1683
1698
|
name: "actions",
|
|
1684
1699
|
fn: k(() => [_("button", {
|
|
1685
1700
|
tabindex: "0",
|
|
1686
1701
|
class: "vue-ui-user-options-button",
|
|
1687
|
-
onClick: t[1] ||= (e) =>
|
|
1688
|
-
style: S({ cursor:
|
|
1702
|
+
onClick: t[1] ||= (e) => Dr(B.value.userOptions.callbacks.csv),
|
|
1703
|
+
style: S({ cursor: V.value ? "pointer" : "default" })
|
|
1689
1704
|
}, [Ie(O(Bt), {
|
|
1690
1705
|
name: "fileCsv",
|
|
1691
|
-
stroke:
|
|
1706
|
+
stroke: Pr.value.props.color
|
|
1692
1707
|
}, null, 8, ["stroke"])], 4)]),
|
|
1693
1708
|
key: "1"
|
|
1694
1709
|
} : void 0]), 1040)) : h("", !0),
|
|
1695
|
-
E(e.$slots, "skeleton", {}, () => [O(
|
|
1710
|
+
E(e.$slots, "skeleton", {}, () => [O(En) ? (C(), m(_e, { key: 0 })) : h("", !0)], !0)
|
|
1696
1711
|
], 46, qe));
|
|
1697
1712
|
}
|
|
1698
|
-
}, [["__scopeId", "data-v-
|
|
1713
|
+
}, [["__scopeId", "data-v-76063362"]]);
|
|
1699
1714
|
//#endregion
|
|
1700
1715
|
export { Ke as n, zt as t };
|