vue-data-ui 3.6.0 → 3.7.0
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/README.md +26 -26
- package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
- package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
- package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
- package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
- package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
- package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
- package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
- package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
- package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
- package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
- package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
- package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
- package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
- package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
- package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
- package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +3 -3
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +3 -3
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +3 -3
- package/dist/components/vue-ui-candlestick.js +3 -3
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +3 -3
- package/dist/components/vue-ui-chord.js +3 -3
- package/dist/components/vue-ui-circle-pack.js +3 -3
- package/dist/components/vue-ui-cursor.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 +2 -2
- package/dist/components/vue-ui-donut.js +3 -3
- package/dist/components/vue-ui-dumbbell.js +3 -3
- package/dist/components/vue-ui-flow.js +3 -3
- package/dist/components/vue-ui-funnel.js +2 -2
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.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 +3 -3
- package/dist/components/vue-ui-horizontal-bar.js +3 -3
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +3 -3
- package/dist/components/vue-ui-mood-radar.js +3 -3
- package/dist/components/vue-ui-nested-donuts.js +2 -2
- package/dist/components/vue-ui-onion.js +3 -3
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +3 -3
- package/dist/components/vue-ui-quick-chart.js +3 -3
- package/dist/components/vue-ui-radar.js +3 -3
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +3 -3
- package/dist/components/vue-ui-ridgeline.js +3 -3
- package/dist/components/vue-ui-rings.js +3 -3
- package/dist/components/vue-ui-scatter.js +3 -3
- 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 +2 -2
- package/dist/components/vue-ui-sparkgauge.js +3 -3
- package/dist/components/vue-ui-sparkhistogram.js +3 -3
- package/dist/components/vue-ui-sparkline.js +3 -3
- package/dist/components/vue-ui-sparkstackbar.js +2 -2
- package/dist/components/vue-ui-stackbar.js +3 -3
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +3 -3
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +2 -2
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +3 -3
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +2 -2
- package/dist/components/vue-ui-treemap.js +3 -3
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +2 -2
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +3 -3
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +3 -3
- package/dist/components/vue-ui-xy.js +3 -3
- package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
- package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
- package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
- package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
- package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
- package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
- package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
- package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
- package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
- package/dist/vue-data-ui.js +225 -205
- package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
- package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
- package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
- package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
- package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
- package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
- package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
- package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
- package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
- package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
- package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
- package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
- package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
- package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
- package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
- package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
- package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
- package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
- package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
- package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
- package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
- package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
- package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
- package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
- package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
- package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
- package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
- package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
- package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
- package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
- package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
- package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
- package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
- package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
- package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
- package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
- package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
- package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
- package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
- package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
- package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
- package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
- package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
- package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
- package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
- package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
- package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
- package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
- package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
- package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
- package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
- package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
- package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
- package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
- package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
- package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
- package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
- package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
- package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
- package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
- package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
- package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
- package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
- package/package.json +5 -5
- package/dist/themes-DH-N_ePR.js +0 -54
- package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
- package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
- package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
- package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
- package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
- package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
- package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
- package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
- package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
- package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
- package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
- package/dist/vue-ui-molecule-CasngKZI.js +0 -753
- package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
- package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
- package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
- package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
- package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
- package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
- package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
- package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
- package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
- package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
- package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
- package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
- package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
- package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
- package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
- package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
- package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
- package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
- package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
- package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
- package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
- package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
- package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
- package/dist/vue-ui-xy-BT67faLv.js +0 -3424
- package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
package/README.md
CHANGED
|
@@ -128,7 +128,7 @@ app.component("VueUiRadar", VueUiRadar);
|
|
|
128
128
|
app.mount("#app");
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
Or you can import just what you need
|
|
131
|
+
Or you can import just what you need into your files:
|
|
132
132
|
|
|
133
133
|
```js
|
|
134
134
|
<script setup>import {(VueUiRadar, VueUiXy)} from "vue-data-ui";</script>
|
|
@@ -208,7 +208,7 @@ customFormat: ({ seriesIndex, datapoint, series, config }) => {
|
|
|
208
208
|
Data labels can be customized using the `formatter` config attribute (since v2.3.29 on all chart components):
|
|
209
209
|
|
|
210
210
|
```
|
|
211
|
-
// the formatter attribute is generally placed under label or dataLabel config attribute objects
|
|
211
|
+
// the formatter attribute is generally placed under the label or dataLabel config attribute objects
|
|
212
212
|
|
|
213
213
|
const config = ref({
|
|
214
214
|
formatter: ({ value, config }) => {
|
|
@@ -269,8 +269,8 @@ It is recommended to set the show legend config attribute to false, to hide the
|
|
|
269
269
|
|
|
270
270
|
## Tooltip #tooltip-before & #tooltip-after slots
|
|
271
271
|
|
|
272
|
-
Customize tooltip contents with #tooltip-before and #tooltip-after slots.
|
|
273
|
-
It
|
|
272
|
+
Customize tooltip contents with #tooltip-before and #tooltip-after slots, to include an image, another chart or any other rich content into your tooltips.
|
|
273
|
+
It's an alternative to the config option `tooltip.customFormat`, in case richer tooltip content is needed.
|
|
274
274
|
|
|
275
275
|
Both slots expose the following object:
|
|
276
276
|
|
|
@@ -333,13 +333,13 @@ The following charts bear these slots:
|
|
|
333
333
|
</template>
|
|
334
334
|
<template #tooltip-after={ datapoint, seriesIndex, dataset, config }">
|
|
335
335
|
<div>
|
|
336
|
-
This content shows last
|
|
336
|
+
This content shows the last
|
|
337
337
|
</div>
|
|
338
338
|
</template>
|
|
339
339
|
</VueUiDonut>
|
|
340
340
|
```
|
|
341
341
|
|
|
342
|
-
The #tooltip-before & #tooltip-after slots also
|
|
342
|
+
The #tooltip-before & #tooltip-after slots also work when using the VueDataUi universal component, if the component it wraps supports them.
|
|
343
343
|
|
|
344
344
|
## Add a watermark using the #watermark slot
|
|
345
345
|
|
|
@@ -539,8 +539,8 @@ All names of available icons are available in the vue-data-ui.d.ts file under th
|
|
|
539
539
|
|
|
540
540
|
# User options
|
|
541
541
|
|
|
542
|
-
User options menu is accessible in the burger menu located on the top right of charts, and visible by default.
|
|
543
|
-
To hide user options menu, set config.userOptions.show to false:
|
|
542
|
+
User options menu is accessible in the burger menu located on the top right of the charts, and visible by default.
|
|
543
|
+
To hide the user options menu, set config.userOptions.show to false:
|
|
544
544
|
|
|
545
545
|
```js
|
|
546
546
|
const config = ref({
|
|
@@ -551,7 +551,7 @@ const config = ref({
|
|
|
551
551
|
})
|
|
552
552
|
```
|
|
553
553
|
|
|
554
|
-
|
|
554
|
+
The user options menu can be set to appear only when hovering over the component:
|
|
555
555
|
|
|
556
556
|
```js
|
|
557
557
|
const config = ref({
|
|
@@ -563,7 +563,7 @@ const config = ref({
|
|
|
563
563
|
});
|
|
564
564
|
```
|
|
565
565
|
|
|
566
|
-
Predefined actions in user options menu depend on the type of chart. Some charts have more or
|
|
566
|
+
Predefined actions in the user options menu depend on the type of chart. Some charts have more or fewer actions available. Action buttons contain predefined icons by default.
|
|
567
567
|
|
|
568
568
|
To hide a given action, set the userOption.buttons, for example:
|
|
569
569
|
|
|
@@ -596,7 +596,7 @@ What happens when the button is clicked is taken care of by the component, excep
|
|
|
596
596
|
</VueUiDonut>
|
|
597
597
|
```
|
|
598
598
|
|
|
599
|
-
You can pass a callback
|
|
599
|
+
You can pass a callback through the config, for each button, to override the default behavior:
|
|
600
600
|
|
|
601
601
|
```ts
|
|
602
602
|
const config = {
|
|
@@ -611,7 +611,7 @@ const config = {
|
|
|
611
611
|
csv: (csvStr: string) => {
|
|
612
612
|
console.log(csvStr);
|
|
613
613
|
},
|
|
614
|
-
// the other
|
|
614
|
+
// the other attributes also have the same names as the buttons
|
|
615
615
|
},
|
|
616
616
|
},
|
|
617
617
|
};
|
|
@@ -752,7 +752,7 @@ Accepted color formats: HEX, RGB, HSL, named colors.
|
|
|
752
752
|
# Responsive charts
|
|
753
753
|
|
|
754
754
|
By default, all charts will scale to the width of their container.
|
|
755
|
-
However the
|
|
755
|
+
However the following charts can be made fully responsive, making them better to use in resizable containers:
|
|
756
756
|
|
|
757
757
|
| Component | Responsive feature implemented |
|
|
758
758
|
| --------------------------- | ------------------------------ |
|
|
@@ -824,14 +824,14 @@ const config = ref({
|
|
|
824
824
|
Very large datasets (> 5k or > 10k datapoints) will cause the browsers rendering engines to slow down, caused by too many SVG DOM elements to render.
|
|
825
825
|
The following charts use the LTTB algorithm (Largest-Triangle-Three-Bucket) beyond a certain threshold to downsample the rendered dataset while preserving its shape. These components are the most susceptible to be used with very large datasets:
|
|
826
826
|
|
|
827
|
-
| Component | Default Threshold | Remark
|
|
828
|
-
| --------------- | ----------------- |
|
|
829
|
-
| VueUiXy | 1095 |
|
|
830
|
-
| VueUiXyCanvas | 10000 | Since this chart uses canvas,
|
|
831
|
-
| VueUiQuadrant | 1095 |
|
|
832
|
-
| VueUiScatter | 1095 |
|
|
833
|
-
| VueUiSparkline | 1095 |
|
|
834
|
-
| VueUiSparkTrend | 1095 |
|
|
827
|
+
| Component | Default Threshold | Remark |
|
|
828
|
+
| --------------- | ----------------- | ------------------------------------------------------------- |
|
|
829
|
+
| VueUiXy | 1095 | |
|
|
830
|
+
| VueUiXyCanvas | 10000 | Since this chart uses canvas, the threshold can be set higher |
|
|
831
|
+
| VueUiQuadrant | 1095 | |
|
|
832
|
+
| VueUiScatter | 1095 | |
|
|
833
|
+
| VueUiSparkline | 1095 | |
|
|
834
|
+
| VueUiSparkTrend | 1095 | |
|
|
835
835
|
|
|
836
836
|
The downsample threshold for each component can be set in the config prop passed to components:
|
|
837
837
|
|
|
@@ -884,7 +884,7 @@ A pattern element must be used inside this slot. It will be injected inside a de
|
|
|
884
884
|
```html
|
|
885
885
|
<VueUiDonut :config="config" :dataset="dataset">
|
|
886
886
|
<template #pattern="{ seriesIndex, patternId }">
|
|
887
|
-
<!-- Apply a
|
|
887
|
+
<!-- Apply a pattern on the first datapoint only -->
|
|
888
888
|
<pattern
|
|
889
889
|
v-if="seriesIndex === 0"
|
|
890
890
|
:id="patternId"
|
|
@@ -913,7 +913,7 @@ The #pattern slot is available on the following components:
|
|
|
913
913
|
- VueUiWorld
|
|
914
914
|
- VueUiXy
|
|
915
915
|
|
|
916
|
-
A set of 12 readymade patterns
|
|
916
|
+
A set of 12 readymade patterns is available through the VueUiPattern component:
|
|
917
917
|
|
|
918
918
|
```js
|
|
919
919
|
import { VueUiPattern } from "vue-data-ui";
|
|
@@ -956,7 +956,7 @@ List of available patterns:
|
|
|
956
956
|
|
|
957
957
|
# Utility functions
|
|
958
958
|
|
|
959
|
-
A set of
|
|
959
|
+
A set of utility functions is available:
|
|
960
960
|
|
|
961
961
|
```js
|
|
962
962
|
import {
|
|
@@ -1111,7 +1111,7 @@ const merged = mergeConfigs({
|
|
|
1111
1111
|
|
|
1112
1112
|
## Multiline data labels
|
|
1113
1113
|
|
|
1114
|
-
Some components will display labels on
|
|
1114
|
+
Some components will display labels on multiple lines when the provided text contains a line break. (example: "I contain\na line break").
|
|
1115
1115
|
Below is a table of the places where such line breaks can be used:
|
|
1116
1116
|
|
|
1117
1117
|
| Component | Label displayed | Where to use line breaks |
|
|
@@ -1129,7 +1129,7 @@ Below is a table of the places where such line breaks can be used:
|
|
|
1129
1129
|
|
|
1130
1130
|
## PDF generation
|
|
1131
1131
|
|
|
1132
|
-
This package requires jspdf as a peer dependency. Please install it in your project if you intend
|
|
1132
|
+
This package requires jspdf as a peer dependency. Please install it in your project if you intend to use the PDF printing feature.
|
|
1133
1133
|
|
|
1134
1134
|
## `useObjectBindings`
|
|
1135
1135
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as u, createElementBlock as d, openBlock as m, createElementVNode as t, unref as o } from "vue";
|
|
2
|
-
import { c as n } from "./lib-
|
|
2
|
+
import { c as n } from "./lib-C5BH09_g.js";
|
|
3
3
|
const s = { class: "vue-ui-element-arrow" }, f = ["id", "viewBox", "refX", "refY", "markerWidth", "markerHeight"], c = ["d", "fill"], h = ["id", "viewBox", "refX", "refY", "markerWidth", "markerHeight"], y = ["d", "fill"], v = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap", "stroke-dasharray", "marker-end", "marker-start"], z = {
|
|
4
4
|
__name: "Arrow",
|
|
5
5
|
props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as L, reactive as P, computed as N, onMounted as R, onUnmounted as F, createBlock as I, openBlock as z, Teleport as V, createElementBlock as B, createCommentVNode as j, withModifiers as s, normalizeStyle as D, createElementVNode as o, unref as K, renderSlot as S, createVNode as U, normalizeClass as q, nextTick as A } from "vue";
|
|
2
|
-
import G from "./BaseIcon-
|
|
3
|
-
import { X as J } from "./lib-
|
|
2
|
+
import G from "./BaseIcon-CofSxalQ.js";
|
|
3
|
+
import { X as J } from "./lib-C5BH09_g.js";
|
|
4
4
|
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const Z = ["xmlns"], _ = { class: "modal-title" }, ee = { class: "draggable-dialog-actions" }, te = {
|
|
6
6
|
__name: "BaseDraggableDialog",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as e, createElementBlock as s, openBlock as i, normalizeClass as k, unref as L } from "vue";
|
|
2
|
-
import { X as l } from "./lib-
|
|
2
|
+
import { X as l } from "./lib-C5BH09_g.js";
|
|
3
3
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const M = ["xmlns", "viewBox", "height", "width", "innerHTML"], h = {
|
|
5
5
|
__name: "BaseIcon",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as u, computed as T, watchEffect as U, onMounted as
|
|
2
|
-
import g from "./BaseIcon-
|
|
3
|
-
import {
|
|
1
|
+
import { ref as u, computed as T, watchEffect as U, onMounted as W, onBeforeUnmount as Y, watch as j, withDirectives as q, createElementBlock as d, openBlock as s, withKeys as A, createElementVNode as i, createCommentVNode as R, createBlock as G, normalizeStyle as a, renderSlot as H, normalizeProps as J, guardReactiveProps as Q, createVNode as C, withModifiers as n, Fragment as M, renderList as N, Teleport as X, unref as Z, nextTick as _ } from "vue";
|
|
2
|
+
import g from "./BaseIcon-CofSxalQ.js";
|
|
3
|
+
import { w as ee } from "./lib-C5BH09_g.js";
|
|
4
4
|
import { v as oe } from "./vClickOutside-C6WiFswA.js";
|
|
5
5
|
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ne = ["onClick"], le = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-46%)" } }, re = ["value"], ie = ["onClick"], ue = { style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%,-46%)" } }, se = ["value"], ae = {
|
|
@@ -79,11 +79,11 @@ const ne = ["onClick"], le = { style: { position: "absolute", top: "50%", left:
|
|
|
79
79
|
function P() {
|
|
80
80
|
document.visibilityState === "visible" && k();
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
W(() => {
|
|
83
83
|
window.addEventListener("scroll", f, { passive: !0 }), window.addEventListener("resize", f, { passive: !0 }), window.addEventListener("focus", h), document.addEventListener("visibilitychange", P);
|
|
84
|
-
}),
|
|
84
|
+
}), Y(() => {
|
|
85
85
|
window.removeEventListener("scroll", f), window.removeEventListener("resize", f), window.removeEventListener("focus", h), document.removeEventListener("visibilitychange", P);
|
|
86
|
-
}),
|
|
86
|
+
}), j(
|
|
87
87
|
() => v.value,
|
|
88
88
|
(o) => {
|
|
89
89
|
c.value && (c.value.value = o);
|
|
@@ -100,10 +100,10 @@ const ne = ["onClick"], le = { style: { position: "absolute", top: "50%", left:
|
|
|
100
100
|
"#FF1493",
|
|
101
101
|
"#00CED1"
|
|
102
102
|
]);
|
|
103
|
-
return (o, e) =>
|
|
103
|
+
return (o, e) => q((s(), d("div", {
|
|
104
104
|
ref_key: "wrapperRef",
|
|
105
105
|
ref: O,
|
|
106
|
-
onKeydown:
|
|
106
|
+
onKeydown: A(x, ["esc"]),
|
|
107
107
|
style: { height: "100%", width: "100%", position: "relative" }
|
|
108
108
|
}, [
|
|
109
109
|
i("button", {
|
|
@@ -114,7 +114,7 @@ const ne = ["onClick"], le = { style: { position: "absolute", top: "50%", left:
|
|
|
114
114
|
style: a(V.value),
|
|
115
115
|
type: "button"
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
H(o.$slots, "annotator-action-color", J(Q({ color: p.value })), () => [
|
|
118
118
|
C(g, {
|
|
119
119
|
name: "palette",
|
|
120
120
|
stroke: p.value,
|
|
@@ -174,7 +174,7 @@ const ne = ["onClick"], le = { style: { position: "absolute", top: "50%", left:
|
|
|
174
174
|
}, null, 40, re)
|
|
175
175
|
], 36)
|
|
176
176
|
], 36)) : R("", !0),
|
|
177
|
-
r.value && t.teleported ? (s(),
|
|
177
|
+
r.value && t.teleported ? (s(), G(X, {
|
|
178
178
|
key: 1,
|
|
179
179
|
to: "body"
|
|
180
180
|
}, [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCssVars as A, unref as e, computed as D, ref as k, onMounted as E, createElementBlock as o, openBlock as l, normalizeClass as C, normalizeStyle as r, createCommentVNode as m, createElementVNode as a, withKeys as R, createVNode as B, toDisplayString as I, Fragment as g, renderList as v, renderSlot as N } from "vue";
|
|
2
|
-
import { _ as K } from "./Shape-
|
|
3
|
-
import O from "./BaseIcon-
|
|
2
|
+
import { _ as K } from "./Shape-DE6X_t31.js";
|
|
3
|
+
import O from "./BaseIcon-CofSxalQ.js";
|
|
4
4
|
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const j = { class: "vue-ui-data-table" }, F = { style: { display: "flex", "align-items": "center", "justify-content": "flex-end", "padding-right": "3px", gap: "3px" } }, L = { style: { width: "12px", height: "12px" } }, M = {
|
|
6
6
|
key: 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElementBlock as n, openBlock as a, normalizeStyle as d, renderSlot as r, Fragment as u, renderList as m, normalizeClass as g, createCommentVNode as p, createVNode as h, mergeProps as k, unref as v } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as x } from "./Shape-
|
|
2
|
+
import { D as y } from "./lib-C5BH09_g.js";
|
|
3
|
+
import { _ as x } from "./Shape-DE6X_t31.js";
|
|
4
4
|
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const S = ["id"], $ = ["onClick", "viewBox"], B = {
|
|
6
6
|
__name: "Legend",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as i, computed as we, onMounted as ke, nextTick as be, onBeforeUnmount as Ce, watch as oe, createElementBlock as x, openBlock as y, Fragment as q, createCommentVNode as Y, normalizeStyle as b, normalizeClass as D, createElementVNode as C, withDirectives as ae, createVNode as M, toDisplayString as re, unref as se, vModelText as ue, withModifiers as ie, renderList as ce } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import R from "./BaseIcon-
|
|
4
|
-
import { C as Ee } from "./ColorPicker-
|
|
2
|
+
import { n as $e, d as Se, X as Ae } from "./lib-C5BH09_g.js";
|
|
3
|
+
import R from "./BaseIcon-CofSxalQ.js";
|
|
4
|
+
import { C as Ee } from "./ColorPicker-e1-OSGlQ.js";
|
|
5
5
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const Te = {
|
|
7
7
|
class: /* @__PURE__ */ D({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as e, openBlock as t, toDisplayString as o, unref as r } from "vue";
|
|
2
|
-
const n = "3.
|
|
2
|
+
const n = "3.7.0", a = { "aria-hidden": "true" }, p = {
|
|
3
3
|
__name: "PackageVersion",
|
|
4
4
|
setup(s) {
|
|
5
5
|
return (c, i) => (t(), e("desc", a, "Composed with Vue Data UI " + o(r(n)), 1));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as c, computed as he, watch as z, nextTick as se, onMounted as Ae, onBeforeUnmount as we, createElementBlock as W, createCommentVNode as O, openBlock as j, normalizeStyle as x, createElementVNode as
|
|
2
|
-
import F from "./BaseIcon-
|
|
3
|
-
import { C as Ce } from "./ColorPicker-
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { ref as c, computed as he, watch as z, nextTick as se, onMounted as Ae, onBeforeUnmount as we, createElementBlock as W, createCommentVNode as O, openBlock as j, normalizeStyle as x, createElementVNode as E, withDirectives as re, renderSlot as B, createVNode as R, withCtx as be, normalizeProps as T, guardReactiveProps as M, normalizeClass as Y, toDisplayString as xe, unref as ye, vModelText as ue } from "vue";
|
|
2
|
+
import F from "./BaseIcon-CofSxalQ.js";
|
|
3
|
+
import { C as Ce } from "./ColorPicker-e1-OSGlQ.js";
|
|
4
|
+
import { n as ke, d as Ee } from "./lib-C5BH09_g.js";
|
|
5
|
+
const Se = {
|
|
6
6
|
class: "vue-ui-pen-and-paper-action",
|
|
7
7
|
style: { padding: "0 !important" }
|
|
8
8
|
}, $e = ["disabled"], De = {
|
|
@@ -31,13 +31,13 @@ const Ee = {
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["close"],
|
|
33
33
|
setup(d, { emit: ie }) {
|
|
34
|
-
const s = d, ve = ie, b = c([]), y = c([]),
|
|
34
|
+
const s = d, ve = ie, b = c([]), y = c([]), S = c(s.color), N = c(2), Q = c(!1), V = c(""), o = c(null), A = c(null), I = c(null), p = c("draw"), K = c(!1), f = c(null), q = c({ x: 0, y: 0 }), D = c([""]), P = c({ row: 0, col: 0 }), $ = c(16), J = c("url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto");
|
|
35
35
|
function Z(n) {
|
|
36
36
|
if (!o.value || p.value !== "text" || K.value) return;
|
|
37
37
|
const { x: e, y: l } = U(n);
|
|
38
38
|
q.value = { x: e, y: l }, D.value = [""], P.value = { row: 0, col: 0 };
|
|
39
39
|
const t = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
40
|
-
t.setAttribute("x", e), t.setAttribute("y", l), t.setAttribute("fill",
|
|
40
|
+
t.setAttribute("x", e), t.setAttribute("y", l), t.setAttribute("fill", S.value), t.setAttribute("font-size", $.value * s.scale), t.setAttribute("font-family", "sans-serif"), t.setAttribute("class", "vue-data-ui-doodle"), t.setAttribute("dominant-baseline", "hanging"), t.setAttribute("pointer-events", "all");
|
|
41
41
|
const a = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
42
42
|
a.setAttribute("x", e), a.setAttribute("dy", "0"), a.textContent = "", t.appendChild(a), t.style.pointerEvents = "none", t.style.userSelect = "none", o.value.appendChild(t), f.value = t, K.value = !0, window.addEventListener("keydown", _), window.addEventListener("mousedown", ne, !0), ee(), te();
|
|
43
43
|
}
|
|
@@ -96,7 +96,7 @@ const Ee = {
|
|
|
96
96
|
o.value.removeChild(i);
|
|
97
97
|
let h = t + a * u * 1.2, k = l + m.width;
|
|
98
98
|
const w = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
99
|
-
w.setAttribute("x", k), w.setAttribute("y", h), w.setAttribute("width", 2), w.setAttribute("height", u), w.setAttribute("fill",
|
|
99
|
+
w.setAttribute("x", k), w.setAttribute("y", h), w.setAttribute("width", 2), w.setAttribute("height", u), w.setAttribute("fill", S.value), w.setAttribute("class", "vue-data-ui-svg-caret"), o.value.appendChild(w);
|
|
100
100
|
}
|
|
101
101
|
function ne(n) {
|
|
102
102
|
if (f.value && !f.value.contains(n.target)) {
|
|
@@ -185,7 +185,7 @@ const Ee = {
|
|
|
185
185
|
if (p.value !== "draw" || !s.active || !o.value) return;
|
|
186
186
|
Q.value = !0;
|
|
187
187
|
const { x: e, y: l } = U(n);
|
|
188
|
-
I.value = { x: e, y: l }, V.value = `M ${e} ${l}`, A.value = document.createElementNS("http://www.w3.org/2000/svg", "path"), A.value.setAttribute("stroke",
|
|
188
|
+
I.value = { x: e, y: l }, V.value = `M ${e} ${l}`, A.value = document.createElementNS("http://www.w3.org/2000/svg", "path"), A.value.setAttribute("stroke", S.value), A.value.setAttribute("stroke-width", N.value * s.scale), A.value.setAttribute("fill", "none"), A.value.setAttribute("stroke-linecap", "round"), A.value.setAttribute("stroke-linejoin", "round"), A.value.setAttribute("class", "vue-data-ui-doodle"), o.value.appendChild(A.value);
|
|
189
189
|
}
|
|
190
190
|
function H(n) {
|
|
191
191
|
if (!Q.value || !o.value || !A.value) return;
|
|
@@ -197,7 +197,7 @@ const Ee = {
|
|
|
197
197
|
const { x: e, y: l } = U(n);
|
|
198
198
|
if (I.value && I.value.x === e && I.value.y === l) {
|
|
199
199
|
const t = document.createElementNS("http://www.w3.org/2000/svg", "circle");
|
|
200
|
-
t.setAttribute("cx", e), t.setAttribute("cy", l), t.setAttribute("r", N.value * s.scale / 2), t.setAttribute("fill",
|
|
200
|
+
t.setAttribute("cx", e), t.setAttribute("cy", l), t.setAttribute("r", N.value * s.scale / 2), t.setAttribute("fill", S.value), t.setAttribute("class", "vue-data-ui-doodle"), o.value.appendChild(t), b.value.push(t);
|
|
201
201
|
} else {
|
|
202
202
|
const t = A.value;
|
|
203
203
|
t.setAttribute("d", fe(ce(V.value))), b.value.push(t);
|
|
@@ -248,7 +248,7 @@ const Ee = {
|
|
|
248
248
|
class: "vue-ui-pen-and-paper-actions",
|
|
249
249
|
style: x({ backgroundColor: d.backgroundColor })
|
|
250
250
|
}, [
|
|
251
|
-
|
|
251
|
+
E("button", {
|
|
252
252
|
class: "vue-ui-pen-and-paper-action",
|
|
253
253
|
onClick: e[0] || (e[0] = (l) => ve("close")),
|
|
254
254
|
style: x({
|
|
@@ -263,10 +263,10 @@ const Ee = {
|
|
|
263
263
|
}, null, 8, ["stroke"])
|
|
264
264
|
])
|
|
265
265
|
], 4),
|
|
266
|
-
|
|
266
|
+
E("button", Se, [
|
|
267
267
|
R(Ce, {
|
|
268
|
-
value:
|
|
269
|
-
"onUpdate:value": e[1] || (e[1] = (l) =>
|
|
268
|
+
value: S.value,
|
|
269
|
+
"onUpdate:value": e[1] || (e[1] = (l) => S.value = l),
|
|
270
270
|
backgroundColor: d.backgroundColor,
|
|
271
271
|
buttonBorderColor: C.value
|
|
272
272
|
}, {
|
|
@@ -276,7 +276,7 @@ const Ee = {
|
|
|
276
276
|
_: 3
|
|
277
277
|
}, 8, ["value", "backgroundColor", "buttonBorderColor"])
|
|
278
278
|
]),
|
|
279
|
-
|
|
279
|
+
E("button", {
|
|
280
280
|
class: Y(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": p.value === "text" }]),
|
|
281
281
|
onClick: e[2] || (e[2] = (l) => p.value = p.value === "text" ? "draw" : "text"),
|
|
282
282
|
style: x({
|
|
@@ -290,7 +290,7 @@ const Ee = {
|
|
|
290
290
|
stroke: d.color
|
|
291
291
|
}, null, 8, ["name", "stroke"])
|
|
292
292
|
]),
|
|
293
|
-
|
|
293
|
+
E("div", {
|
|
294
294
|
style: x({
|
|
295
295
|
position: "absolute",
|
|
296
296
|
bottom: "-20px",
|
|
@@ -300,13 +300,13 @@ const Ee = {
|
|
|
300
300
|
fontSize: "12px",
|
|
301
301
|
fontVariantNumeric: "tabular-nums"
|
|
302
302
|
})
|
|
303
|
-
}, xe(ye(
|
|
303
|
+
}, xe(ye(Ee)({
|
|
304
304
|
v: p.value === "draw" ? N.value : $.value,
|
|
305
305
|
s: "px",
|
|
306
306
|
r: 1
|
|
307
307
|
})), 5)
|
|
308
308
|
], 6),
|
|
309
|
-
|
|
309
|
+
E("button", {
|
|
310
310
|
class: Y(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !b.value.length }]),
|
|
311
311
|
disabled: !b.value.length,
|
|
312
312
|
onClick: ge,
|
|
@@ -323,7 +323,7 @@ const Ee = {
|
|
|
323
323
|
}, null, 8, ["stroke"])
|
|
324
324
|
])
|
|
325
325
|
], 14, $e),
|
|
326
|
-
|
|
326
|
+
E("button", {
|
|
327
327
|
class: Y(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !y.value.length }]),
|
|
328
328
|
onClick: pe,
|
|
329
329
|
style: x({
|
|
@@ -339,7 +339,7 @@ const Ee = {
|
|
|
339
339
|
}, null, 8, ["stroke"])
|
|
340
340
|
])
|
|
341
341
|
], 6),
|
|
342
|
-
|
|
342
|
+
E("button", {
|
|
343
343
|
class: Y(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !b.value.length }]),
|
|
344
344
|
onClick: me,
|
|
345
345
|
style: x({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed as u, createElementBlock as r, openBlock as l, createCommentVNode as a, normalizeStyle as d } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
const g = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], S = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"],
|
|
2
|
+
import { b as f, e as p } from "./lib-C5BH09_g.js";
|
|
3
|
+
const g = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], S = ["d", "fill", "stroke", "stroke-width"], x = ["points", "fill", "stroke", "stroke-width"], b = {
|
|
4
4
|
__name: "Shape",
|
|
5
5
|
props: {
|
|
6
6
|
color: String,
|
|
@@ -112,5 +112,5 @@ const g = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], S = ["d", "fill",
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
export {
|
|
115
|
-
|
|
115
|
+
b as _
|
|
116
116
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useCssVars as Ot, computed as s, ref as d, onMounted as lt, onBeforeUnmount as Le, watch as Z, nextTick as ve, onUpdated as Ut, createElementBlock as i, openBlock as u, createElementVNode as P, createCommentVNode as m, renderSlot as Zt, normalizeStyle as L, createVNode as
|
|
2
|
-
import { c as Kt, X as Qt,
|
|
1
|
+
import { useCssVars as Ot, computed as s, ref as d, onMounted as lt, onBeforeUnmount as Le, watch as Z, nextTick as ve, onUpdated as Ut, createElementBlock as i, openBlock as u, createElementVNode as P, createCommentVNode as m, renderSlot as Zt, normalizeStyle as L, createVNode as Yt, withDirectives as at, unref as me, Fragment as M, renderList as R, normalizeProps as Jt, mergeProps as qt, normalizeClass as Y, vModelText as nt, toDisplayString as $e } from "vue";
|
|
2
|
+
import { c as Kt, X as Qt, w as Ee, y as it, z as ut, A as ot, B as rt, C as st } from "./lib-C5BH09_g.js";
|
|
3
3
|
import { t as ct, d as jt, u as _t } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import el from "./BaseIcon-
|
|
4
|
+
import el from "./BaseIcon-CofSxalQ.js";
|
|
5
5
|
import { _ as tl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const ll = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|
|
@@ -171,7 +171,7 @@ const ll = {
|
|
|
171
171
|
window.removeEventListener("resize", l);
|
|
172
172
|
});
|
|
173
173
|
});
|
|
174
|
-
const ht = s(() => a.refreshEndPoint === null ? a.max : a.refreshEndPoint),
|
|
174
|
+
const ht = s(() => a.refreshEndPoint === null ? a.max : a.refreshEndPoint), J = mt, q = s(() => {
|
|
175
175
|
if ($.value) {
|
|
176
176
|
const l = Math.max(1, ue.value - 1);
|
|
177
177
|
return xe.value / l * 100;
|
|
@@ -247,7 +247,7 @@ const ll = {
|
|
|
247
247
|
return e;
|
|
248
248
|
});
|
|
249
249
|
function Fe() {
|
|
250
|
-
|
|
250
|
+
J("reset");
|
|
251
251
|
}
|
|
252
252
|
Z(
|
|
253
253
|
() => a.min,
|
|
@@ -393,14 +393,14 @@ const ll = {
|
|
|
393
393
|
function Pt(e) {
|
|
394
394
|
E.value = e;
|
|
395
395
|
const l = I.value, t = X.value;
|
|
396
|
-
e >= l && e < t && !F.value &&
|
|
396
|
+
e >= l && e < t && !F.value && J("trapMouse", e - l);
|
|
397
397
|
}
|
|
398
398
|
const ke = d(null), we = d(null);
|
|
399
399
|
function _(e) {
|
|
400
|
-
w.value = e, ke.value && (ke.value.value = e),
|
|
400
|
+
w.value = e, ke.value && (ke.value.value = e), J("update:start", Number(w.value));
|
|
401
401
|
}
|
|
402
402
|
function ee(e) {
|
|
403
|
-
S.value = e, we.value && (we.value.value = e),
|
|
403
|
+
S.value = e, we.value && (we.value.value = e), J("update:end", Number(S.value));
|
|
404
404
|
}
|
|
405
405
|
const Se = s(() => a.valueEnd - a.valueStart), Nt = s(() => Se.value < a.max - a.min), te = d(!1);
|
|
406
406
|
let Rt = d(null);
|
|
@@ -431,7 +431,7 @@ const ll = {
|
|
|
431
431
|
Ce.value = Number(w.value), Oe.value = Number(S.value), At.value = Tt.value, T = l ? "touchmove" : "mousemove", A = l ? "touchend" : "mouseup", B = l ? Vt : Bt, V = l ? It : Ft, window.addEventListener(T, B, { passive: !1 }), window.addEventListener(A, V);
|
|
432
432
|
};
|
|
433
433
|
function Bt(e) {
|
|
434
|
-
te.value &&
|
|
434
|
+
te.value && Ye(e.clientX);
|
|
435
435
|
}
|
|
436
436
|
function Vt(e) {
|
|
437
437
|
if (!te.value || !k.value) return;
|
|
@@ -439,9 +439,9 @@ const ll = {
|
|
|
439
439
|
if (!(l instanceof Element) || !k.value.contains(l) || l.classList && l.classList.contains("range-handle")) return;
|
|
440
440
|
e.preventDefault();
|
|
441
441
|
const t = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
442
|
-
t &&
|
|
442
|
+
t && Ye(t.clientX);
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Ye(e) {
|
|
445
445
|
if (!te.value) return;
|
|
446
446
|
const l = Pe(Ge.value), o = Pe(e) - l, r = Math.max(1, Oe.value - Ce.value);
|
|
447
447
|
let h = Math.round(Ce.value + o);
|
|
@@ -451,12 +451,12 @@ const ll = {
|
|
|
451
451
|
_(h), ee(z);
|
|
452
452
|
}
|
|
453
453
|
function Ft() {
|
|
454
|
-
|
|
454
|
+
Je();
|
|
455
455
|
}
|
|
456
456
|
function It() {
|
|
457
|
-
|
|
457
|
+
Je();
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function Je() {
|
|
460
460
|
te.value = !1, T && B && window.removeEventListener(T, B), A && V && window.removeEventListener(A, V), T = A = null, B = V = null;
|
|
461
461
|
}
|
|
462
462
|
const F = d(!1), le = d(null), ae = d(null), Ne = d(1), ce = d(1), W = d(!1);
|
|
@@ -558,7 +558,7 @@ const ll = {
|
|
|
558
558
|
}),
|
|
559
559
|
onClick: Fe
|
|
560
560
|
}, [
|
|
561
|
-
|
|
561
|
+
Yt(el, {
|
|
562
562
|
name: "refresh",
|
|
563
563
|
stroke: n.textColor
|
|
564
564
|
}, null, 8, ["stroke"])
|
|
@@ -681,7 +681,7 @@ const ll = {
|
|
|
681
681
|
opacity: n.minimapSelectedColorOpacity
|
|
682
682
|
})
|
|
683
683
|
}, null, 12, fl),
|
|
684
|
-
E.value !== null && !F.value ? (u(), i("line",
|
|
684
|
+
E.value !== null && !F.value ? (u(), i("line", Jt(qt({ key: 3 }, Dt.value)), null, 16)) : m("", !0),
|
|
685
685
|
!n.minimapMerged && Mt.value < 0 ? (u(), i("line", {
|
|
686
686
|
key: 4,
|
|
687
687
|
class: "slicer-minimap-zero-line",
|
|
@@ -856,7 +856,7 @@ const ll = {
|
|
|
856
856
|
onMouseup: l[1] || (l[1] = (r) => F.value = !1),
|
|
857
857
|
onMouseenter: (r) => Pt(t),
|
|
858
858
|
onMouseleave: l[2] || (l[2] = (r) => {
|
|
859
|
-
E.value = null,
|
|
859
|
+
E.value = null, J("trapMouse", null);
|
|
860
860
|
})
|
|
861
861
|
}, null, 44, Bl))), 256))
|
|
862
862
|
], 8, il))
|
|
@@ -866,7 +866,7 @@ const ll = {
|
|
|
866
866
|
style: L({ visibility: b.value && n.minimapCompact ? "hidden" : "visible" })
|
|
867
867
|
}, null, 4),
|
|
868
868
|
P("div", {
|
|
869
|
-
class:
|
|
869
|
+
class: Y({
|
|
870
870
|
"range-highlight": !0,
|
|
871
871
|
move: n.enableSelectionDrag
|
|
872
872
|
}),
|
|
@@ -883,7 +883,7 @@ const ll = {
|
|
|
883
883
|
ref_key: "rangeStart",
|
|
884
884
|
ref: ke,
|
|
885
885
|
type: "range",
|
|
886
|
-
class:
|
|
886
|
+
class: Y({
|
|
887
887
|
"range-left": !0,
|
|
888
888
|
"range-handle": !0,
|
|
889
889
|
"range-minimap": b.value && n.verticalHandles,
|
|
@@ -907,7 +907,7 @@ const ll = {
|
|
|
907
907
|
ref_key: "rangeEnd",
|
|
908
908
|
ref: we,
|
|
909
909
|
type: "range",
|
|
910
|
-
class:
|
|
910
|
+
class: Y({
|
|
911
911
|
"range-right": !0,
|
|
912
912
|
"range-handle": !0,
|
|
913
913
|
"range-minimap": b.value && n.verticalHandles,
|
|
@@ -930,7 +930,7 @@ const ll = {
|
|
|
930
930
|
key: 3,
|
|
931
931
|
ref_key: "tooltipLeft",
|
|
932
932
|
ref: le,
|
|
933
|
-
class:
|
|
933
|
+
class: Y({
|
|
934
934
|
"range-tooltip": !0,
|
|
935
935
|
"range-tooltip-visible": W.value,
|
|
936
936
|
"range-tooltip-arrow": N.value.arrowLeft && !n.verticalHandles,
|
|
@@ -949,7 +949,7 @@ const ll = {
|
|
|
949
949
|
(ne.value || n.labelLeft === n.labelRight) && (n.labelLeft || n.labelRight) ? (u(), i("div", {
|
|
950
950
|
key: 4,
|
|
951
951
|
ref: "tooltipMerge",
|
|
952
|
-
class:
|
|
952
|
+
class: Y({
|
|
953
953
|
"range-tooltip": !0,
|
|
954
954
|
"range-tooltip-visible": W.value,
|
|
955
955
|
"range-tooltip-arrow": !0,
|
|
@@ -970,7 +970,7 @@ const ll = {
|
|
|
970
970
|
key: 5,
|
|
971
971
|
ref_key: "tooltipRight",
|
|
972
972
|
ref: ae,
|
|
973
|
-
class:
|
|
973
|
+
class: Y({
|
|
974
974
|
"range-tooltip": !0,
|
|
975
975
|
"range-tooltip-visible": W.value,
|
|
976
976
|
"range-tooltip-arrow": N.value.arrowRight && !n.verticalHandles,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as el, computed as s, ref as h, watch as Q, onMounted as tl, onBeforeUnmount as Ve, onUpdated as ct, nextTick as xe, createElementBlock as n, openBlock as i, createElementVNode as $, createCommentVNode as c, renderSlot as vt, normalizeStyle as F, createVNode as ll, withDirectives as mt, unref as pe, Fragment as g, renderList as S, normalizeProps as ht, mergeProps as dt, normalizeClass as _, withKeys as ft, vModelText as gt, toDisplayString as De } from "vue";
|
|
2
|
-
import { c as al,
|
|
2
|
+
import { c as al, x as nl, X as il, w as ze, y as yt, z as xt, A as pt, B as bt, C as Mt } from "./lib-C5BH09_g.js";
|
|
3
3
|
import { t as We, d as ul, u as ol } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import rl from "./BaseIcon-
|
|
4
|
+
import rl from "./BaseIcon-CofSxalQ.js";
|
|
5
5
|
import { _ as sl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const cl = {
|
|
7
7
|
class: "vue-data-ui-slicer-labels",
|