vue-data-ui 3.0.0-next.2 → 3.0.0-next.20
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 +1 -1
- package/dist/{Arrow-Dck2Ea5K.js → Arrow-BUlbY5qN.js} +1 -1
- package/dist/{BaseDraggableDialog-CatHZ1ns.js → BaseDraggableDialog-DdMqvofL.js} +2 -2
- package/dist/{BaseIcon-BmZ4MREl.js → BaseIcon-GwmxkCYt.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-C1MXyD9Q.js → ColorPicker-CWPVu4Mn.js} +2 -2
- package/dist/{DataTable-CgL0Rz0x.js → DataTable-DiYlFcoN.js} +2 -2
- package/dist/{Legend-CYbP3Kfg.js → Legend-CJH2DwvF.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CcbcJm_U.js → NonSvgPenAndPaper-kP7w_wnX.js} +3 -3
- package/dist/{PackageVersion-CAkNkiIG.js → PackageVersion-C3IgYdy5.js} +1 -1
- package/dist/{PenAndPaper-Cx1-5zdD.js → PenAndPaper-DX7Vz7zG.js} +3 -3
- package/dist/{Shape-DBXkGxKt.js → Shape-M_osyQRq.js} +1 -1
- package/dist/{Slicer-nrMi5hzj.js → Slicer-DSoA99Qi.js} +2 -2
- package/dist/{SparkTooltip-fNzL4pIU.js → SparkTooltip-QHzSSaRw.js} +1 -1
- package/dist/{Title-pVYRzQXY.js → Title-BZzqwhfm.js} +1 -1
- package/dist/{Tooltip-NwATo4ZJ.js → Tooltip-CM7R4xmg.js} +1 -1
- package/dist/{UserOptions-DAsRxxrf.js → UserOptions-YnajLuA-.js} +2 -2
- package/dist/{dom-to-png-BF_4H_6u.js → dom-to-png-CwcljPsH.js} +1 -1
- package/dist/{img-ku4zevVD.js → img-BTcfCQH5.js} +1 -1
- package/dist/{index-BzfnuLnw.js → index-BAN_h_nZ.js} +799 -735
- package/dist/{pdf-CguiIsUc.js → pdf-BpoXwx5J.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +113 -15
- package/dist/types/vue-data-ui.d.ts +113 -15
- package/dist/{useNestedProp-DorElw91.js → useNestedProp-BV-XJ1SY.js} +1 -1
- package/dist/{usePrinter-C9qkgv0r.js → usePrinter-UlRss_LR.js} +2 -2
- package/dist/useTimeLabelCollider-V7AOiPLB.js +71 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DFkUfjfs.js} +211 -152
- package/dist/{vue-data-ui-DQef_oFO.js → vue-data-ui-djYxJCHp.js} +80 -74
- package/dist/vue-data-ui.js +54 -52
- package/dist/{vue-ui-3d-bar-DPSamIA-.js → vue-ui-3d-bar-C_4BSVNz.js} +6 -6
- package/dist/{vue-ui-accordion-DgZK-qDz.js → vue-ui-accordion-7QHuQc6-.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DVeGKvf9.js → vue-ui-age-pyramid-Bk6krIzr.js} +6 -6
- package/dist/{vue-ui-annotator-6ikkK-FK.js → vue-ui-annotator-CdX7H6hn.js} +2 -2
- package/dist/{vue-ui-bullet-Bg4hfFk2.js → vue-ui-bullet-DwyS1JQX.js} +7 -7
- package/dist/vue-ui-candlestick-DX_YX-vm.js +973 -0
- package/dist/{vue-ui-carousel-table-DitKhrFT.js → vue-ui-carousel-table-B1cAxuTm.js} +4 -4
- package/dist/{vue-ui-chestnut-D8wGAZod.js → vue-ui-chestnut-DpKv0sh4.js} +5 -5
- package/dist/{vue-ui-chord-C-uTVCDP.js → vue-ui-chord-CiPJPGiG.js} +8 -8
- package/dist/{vue-ui-circle-pack-CPy6xcxv.js → vue-ui-circle-pack-Bjkt4LB5.js} +6 -6
- package/dist/{vue-ui-cursor-Dd7vUd0q.js → vue-ui-cursor-D84ggJvK.js} +2 -2
- package/dist/{vue-ui-dashboard-CKurbu8M.js → vue-ui-dashboard-C_yR4UTa.js} +62 -62
- package/dist/{vue-ui-digits-DfdZI11G.js → vue-ui-digits-BqEMiolR.js} +2 -2
- package/dist/{vue-ui-donut-tECBFvud.js → vue-ui-donut-SC_gy9DF.js} +416 -401
- package/dist/{vue-ui-donut-evolution-CKbLO8yR.js → vue-ui-donut-evolution-NkWihGjp.js} +9 -9
- package/dist/{vue-ui-dumbbell-DI5Lj3r_.js → vue-ui-dumbbell-tCZEa_qU.js} +7 -7
- package/dist/{vue-ui-flow-CjU48s9z.js → vue-ui-flow-BsnqODVX.js} +7 -7
- package/dist/{vue-ui-funnel-DM_5vHZ4.js → vue-ui-funnel-rjuN7SMb.js} +6 -6
- package/dist/{vue-ui-galaxy-ocvZgZJx.js → vue-ui-galaxy-maMA25Pj.js} +5 -5
- package/dist/{vue-ui-gauge-DajNoY-D.js → vue-ui-gauge-DBk_QEqG.js} +6 -6
- package/dist/{vue-ui-gizmo-DTnzeQbm.js → vue-ui-gizmo-BbGKsycH.js} +3 -3
- package/dist/{vue-ui-heatmap-CfBS8jQe.js → vue-ui-heatmap-J0HrOp33.js} +7 -7
- package/dist/{vue-ui-history-plot-BuOPWQoP.js → vue-ui-history-plot-C1WCPCFB.js} +7 -7
- package/dist/{vue-ui-kpi-DLGHOIRj.js → vue-ui-kpi-DXP7mJmU.js} +3 -3
- package/dist/{vue-ui-mini-loader-CHAHi4c9.js → vue-ui-mini-loader-BDCUhVXV.js} +2 -2
- package/dist/{vue-ui-molecule-R5-oDFeW.js → vue-ui-molecule-BK4mr3zK.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ddf2gaES.js → vue-ui-mood-radar-CidQ7htJ.js} +7 -7
- package/dist/vue-ui-nested-donuts-CNNuwHVy.js +1282 -0
- package/dist/{vue-ui-onion-D2n4zUkV.js → vue-ui-onion-BKzAnhfX.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-CNWQqlxf.js → vue-ui-parallel-coordinate-plot-BVxjoZbs.js} +8 -8
- package/dist/{vue-ui-quadrant-CxNj2FEx.js → vue-ui-quadrant-DMTwRxJO.js} +8 -8
- package/dist/{vue-ui-quick-chart-Bm_VmhJR.js → vue-ui-quick-chart-Bh7Uzdkl.js} +7 -7
- package/dist/{vue-ui-radar-DSYMQJ6K.js → vue-ui-radar-CWneFyvx.js} +7 -7
- package/dist/{vue-ui-rating-BiQpwXnc.js → vue-ui-rating-Cpj3lgkf.js} +2 -2
- package/dist/{vue-ui-relation-circle-Cdxe78Bm.js → vue-ui-relation-circle-BbLMXzQC.js} +6 -6
- package/dist/{vue-ui-ridgeline-DpeM2hRi.js → vue-ui-ridgeline-DQOxy2Wd.js} +9 -9
- package/dist/{vue-ui-rings-BenmQHKv.js → vue-ui-rings-DQ0sF_fU.js} +8 -8
- package/dist/{vue-ui-scatter-mDMY1H6U.js → vue-ui-scatter-BtdXQwop.js} +8 -8
- package/dist/{vue-ui-skeleton-Ch_XkFuP.js → vue-ui-skeleton-B7V8lFmX.js} +3 -3
- package/dist/{vue-ui-smiley-DTig5lTU.js → vue-ui-smiley-ZOCueWUm.js} +2 -2
- package/dist/{vue-ui-spark-trend-BkDsp8E0.js → vue-ui-spark-trend-DFYHQJ_o.js} +3 -3
- package/dist/{vue-ui-sparkbar-CgqoyBOm.js → vue-ui-sparkbar-DDSLizGP.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B4jR_Y62.js → vue-ui-sparkgauge-B7WUdl3j.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-DfxjglLy.js → vue-ui-sparkhistogram-D8QDG-TS.js} +4 -4
- package/dist/{vue-ui-sparkline-M3QR8xJE.js → vue-ui-sparkline-DeU8AfL8.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-B2Ls-Mb8.js → vue-ui-sparkstackbar-ChW_4elU.js} +3 -3
- package/dist/vue-ui-stackbar-DHgP90mv.js +1354 -0
- package/dist/{vue-ui-strip-plot-B_ZLbu2D.js → vue-ui-strip-plot-DcUh22d6.js} +7 -7
- package/dist/{vue-ui-table-BhymhDOh.js → vue-ui-table-B1cY8Rpp.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DokRh4dS.js → vue-ui-table-heatmap-BvPtl3oA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DxBZGKZJ.js → vue-ui-table-sparkline-DGDQjRme.js} +4 -4
- package/dist/{vue-ui-thermometer-e2L6IdF-.js → vue-ui-thermometer-Dw3WZJ9y.js} +6 -6
- package/dist/{vue-ui-timer-BG2EwK3o.js → vue-ui-timer-InBkyjSR.js} +5 -5
- package/dist/{vue-ui-tiremarks-nzQH7woJ.js → vue-ui-tiremarks-B2K05981.js} +6 -6
- package/dist/{vue-ui-treemap-CZxyi6fl.js → vue-ui-treemap-CH0WwNHy.js} +8 -8
- package/dist/vue-ui-vertical-bar-Hc_kP36D.js +1106 -0
- package/dist/{vue-ui-waffle-D399D4UE.js → vue-ui-waffle-BZGzaNiM.js} +8 -8
- package/dist/{vue-ui-wheel-DtcwtHzJ.js → vue-ui-wheel-QBwIVAdZ.js} +6 -6
- package/dist/{vue-ui-word-cloud-CTDceQsf.js → vue-ui-word-cloud-Blri-0nB.js} +6 -6
- package/dist/{vue-ui-world-BjNSbqMZ.js → vue-ui-world-Ug4iiW5F.js} +6 -6
- package/dist/vue-ui-xy-DGdMvSQ8.js +2997 -0
- package/dist/{vue-ui-xy-canvas-BKAowbe0.js → vue-ui-xy-canvas-D_yxXjPt.js} +9 -9
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-Bi59FGXn.js +0 -873
- package/dist/vue-ui-nested-donuts-CksklV83.js +0 -1177
- package/dist/vue-ui-stackbar-DIHkn6__.js +0 -1207
- package/dist/vue-ui-vertical-bar-DahdX1Sn.js +0 -980
- package/dist/vue-ui-xy-BkTP-JpK.js +0 -2958
|
@@ -39,6 +39,7 @@ declare module "vue-data-ui" {
|
|
|
39
39
|
| VueUiThermometerDataset
|
|
40
40
|
| VueUiTiremarksDataset
|
|
41
41
|
| VueUiVerticalBarDatasetItem[]
|
|
42
|
+
| VueUiHorizontalBarDatasetItem[]
|
|
42
43
|
| VueUiWaffleDatasetItem[]
|
|
43
44
|
| VueUiWheelDataset
|
|
44
45
|
| VueUiXyDatasetItem[]
|
|
@@ -95,6 +96,7 @@ declare module "vue-data-ui" {
|
|
|
95
96
|
| VueUiThermometerConfig
|
|
96
97
|
| VueUiTiremarksConfig
|
|
97
98
|
| VueUiVerticalBarConfig
|
|
99
|
+
| VueUiHorizontalBarConfig
|
|
98
100
|
| VueUiWaffleConfig
|
|
99
101
|
| VueUiWheelConfig
|
|
100
102
|
| VueUiXyConfig
|
|
@@ -2370,6 +2372,8 @@ declare module "vue-data-ui" {
|
|
|
2370
2372
|
>;
|
|
2371
2373
|
|
|
2372
2374
|
export type VueUiCandlestickConfig = {
|
|
2375
|
+
debug?: boolean;
|
|
2376
|
+
loading?: boolean;
|
|
2373
2377
|
responsive?: boolean;
|
|
2374
2378
|
responsiveProportionalSizing?: boolean;
|
|
2375
2379
|
theme?: Theme;
|
|
@@ -2398,6 +2402,7 @@ declare module "vue-data-ui" {
|
|
|
2398
2402
|
offsetY?: number;
|
|
2399
2403
|
bold?: boolean;
|
|
2400
2404
|
rotation?: number;
|
|
2405
|
+
autoRotate?: boolean;
|
|
2401
2406
|
};
|
|
2402
2407
|
timeLabels?: {
|
|
2403
2408
|
datetimeFormatter?: AxisDateFormatter
|
|
@@ -2954,7 +2959,6 @@ declare module "vue-data-ui" {
|
|
|
2954
2959
|
export type VueUiXyConfig = {
|
|
2955
2960
|
debug?: boolean;
|
|
2956
2961
|
responsive?: boolean;
|
|
2957
|
-
autoSize?: boolean; // v3 opt-in
|
|
2958
2962
|
loading?: boolean; // v3
|
|
2959
2963
|
responsiveProportionalSizing?: boolean;
|
|
2960
2964
|
theme?: Theme;
|
|
@@ -3033,6 +3037,8 @@ declare module "vue-data-ui" {
|
|
|
3033
3037
|
groupColor?: string | null;
|
|
3034
3038
|
scaleLabelOffsetX?: number;
|
|
3035
3039
|
scaleValueOffsetX?: number;
|
|
3040
|
+
rounding?: number;
|
|
3041
|
+
serieNameFormatter?: Formatter;
|
|
3036
3042
|
};
|
|
3037
3043
|
xAxis?: {
|
|
3038
3044
|
showBaseline?: boolean;
|
|
@@ -3051,6 +3057,7 @@ declare module "vue-data-ui" {
|
|
|
3051
3057
|
showOnlyAtModulo?: boolean;
|
|
3052
3058
|
modulo?: number;
|
|
3053
3059
|
datetimeFormatter?: AxisDateFormatter;
|
|
3060
|
+
autoRotate?: boolean;
|
|
3054
3061
|
};
|
|
3055
3062
|
};
|
|
3056
3063
|
};
|
|
@@ -3291,21 +3298,24 @@ declare module "vue-data-ui" {
|
|
|
3291
3298
|
VueUiXyExpose
|
|
3292
3299
|
>;
|
|
3293
3300
|
|
|
3301
|
+
export type VueUiDonutEvent = null | (({datapoint, seriesIndex }: { datapoint: VueUiDonutDatapoint; seriesIndex: number }) => void);
|
|
3302
|
+
|
|
3294
3303
|
export type VueUiDonutConfig = {
|
|
3295
3304
|
debug?: boolean;
|
|
3296
3305
|
type?: "classic" | "polar";
|
|
3297
3306
|
loading?: boolean;
|
|
3298
3307
|
pie?: boolean;
|
|
3308
|
+
autoSize?: boolean;
|
|
3299
3309
|
responsive?: boolean;
|
|
3300
3310
|
theme?: Theme;
|
|
3301
3311
|
customPalette?: string[];
|
|
3302
3312
|
useBlurOnHover?: boolean;
|
|
3303
3313
|
useCssAnimation?: boolean;
|
|
3304
3314
|
events?: {
|
|
3305
|
-
datapointEnter?:
|
|
3306
|
-
datapointLeave?:
|
|
3307
|
-
datapointClick?:
|
|
3308
|
-
}
|
|
3315
|
+
datapointEnter?: VueUiDonutEvent;
|
|
3316
|
+
datapointLeave?: VueUiDonutEvent;
|
|
3317
|
+
datapointClick?: VueUiDonutEvent;
|
|
3318
|
+
};
|
|
3309
3319
|
serieToggleAnimation?: {
|
|
3310
3320
|
show?: boolean;
|
|
3311
3321
|
durationMs?: number;
|
|
@@ -3515,6 +3525,9 @@ declare module "vue-data-ui" {
|
|
|
3515
3525
|
};
|
|
3516
3526
|
|
|
3517
3527
|
export type VueUiNestedDonutsConfig = {
|
|
3528
|
+
debug?: boolean; // v3
|
|
3529
|
+
loading?: boolean; // v3
|
|
3530
|
+
autoSize?: boolean; // v3
|
|
3518
3531
|
responsive?: boolean;
|
|
3519
3532
|
theme?: Theme;
|
|
3520
3533
|
customPalette?: string[];
|
|
@@ -3560,6 +3573,7 @@ declare module "vue-data-ui" {
|
|
|
3560
3573
|
useSerieColor?: boolean;
|
|
3561
3574
|
showDonutName?: boolean;
|
|
3562
3575
|
boldDonutName?: boolean;
|
|
3576
|
+
curvedDonutName?: boolean;
|
|
3563
3577
|
donutNameAbbreviation?: boolean;
|
|
3564
3578
|
donutNameOffsetY?: number;
|
|
3565
3579
|
donutNameMaxAbbreviationSize?: number;
|
|
@@ -3567,6 +3581,7 @@ declare module "vue-data-ui" {
|
|
|
3567
3581
|
};
|
|
3568
3582
|
};
|
|
3569
3583
|
donut?: {
|
|
3584
|
+
radiusRatio?: number;
|
|
3570
3585
|
strokeWidth?: number;
|
|
3571
3586
|
borderWidth?: number;
|
|
3572
3587
|
spacingRatio?: number;
|
|
@@ -4699,23 +4714,34 @@ declare module "vue-data-ui" {
|
|
|
4699
4714
|
value: number;
|
|
4700
4715
|
};
|
|
4701
4716
|
|
|
4717
|
+
export type VueUiHorizontalBarDatasetChild = VueUiVerticalBarDatasetChild; // v3 renaming
|
|
4718
|
+
|
|
4702
4719
|
export type VueUiVerticalBarDatasetItem = {
|
|
4703
4720
|
name: string;
|
|
4704
4721
|
value: number;
|
|
4705
4722
|
color?: string;
|
|
4706
|
-
children?: VueUiVerticalBarDatasetChild[];
|
|
4723
|
+
children?: VueUiVerticalBarDatasetChild[] | VueUiHorizontalBarDatasetChild[];
|
|
4707
4724
|
};
|
|
4708
4725
|
|
|
4726
|
+
export type VueUiHorizontalBarDatasetItem = VueUiVerticalBarDatasetItem // v3 renaming
|
|
4727
|
+
|
|
4728
|
+
export type VueUiVerticalBarEvent = null | (({ datapoint, seriesIndex }: { datapoint: VueUiVerticalBarDatapoint | VueUiHorizontalBarDatapoint; seriesIndex: number }) => void);
|
|
4729
|
+
|
|
4730
|
+
export type VueUiHorizontalBarEvent = VueUiVerticalBarEvent; // v3 renaming
|
|
4731
|
+
|
|
4709
4732
|
export type VueUiVerticalBarConfig = {
|
|
4733
|
+
debug?: boolean;
|
|
4734
|
+
loading?: boolean;
|
|
4735
|
+
autoSize?: boolean;
|
|
4710
4736
|
responsive?: boolean;
|
|
4711
4737
|
theme?: Theme;
|
|
4712
4738
|
customPalette?: string[];
|
|
4713
4739
|
useCssAnimation?: boolean;
|
|
4714
4740
|
events?: {
|
|
4715
|
-
datapointEnter?:
|
|
4716
|
-
datapointLeave?:
|
|
4717
|
-
datapointClick?:
|
|
4718
|
-
}
|
|
4741
|
+
datapointEnter?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
|
|
4742
|
+
datapointLeave?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
|
|
4743
|
+
datapointClick?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
|
|
4744
|
+
};
|
|
4719
4745
|
style?: {
|
|
4720
4746
|
fontFamily?: string;
|
|
4721
4747
|
chart?: {
|
|
@@ -4775,6 +4801,7 @@ declare module "vue-data-ui" {
|
|
|
4775
4801
|
show?: boolean;
|
|
4776
4802
|
color?: string;
|
|
4777
4803
|
strokeWidth?: number;
|
|
4804
|
+
fullWidth?: boolean;
|
|
4778
4805
|
};
|
|
4779
4806
|
};
|
|
4780
4807
|
title?: ChartTitle;
|
|
@@ -4797,9 +4824,9 @@ declare module "vue-data-ui" {
|
|
|
4797
4824
|
| null
|
|
4798
4825
|
| ((
|
|
4799
4826
|
params: VueUiTooltipParams<
|
|
4800
|
-
VueUiVerticalBarDatapoint,
|
|
4801
|
-
VueUiVerticalBarSerie[],
|
|
4802
|
-
VueUiVerticalBarConfig
|
|
4827
|
+
VueUiVerticalBarDatapoint | VueUiHorizontalBarDatapoint,
|
|
4828
|
+
VueUiVerticalBarSerie[] | VueUiHorizontalBarSerie[],
|
|
4829
|
+
VueUiVerticalBarConfig | VueUiHorizontalBarConfig
|
|
4803
4830
|
>
|
|
4804
4831
|
) => string);
|
|
4805
4832
|
};
|
|
@@ -4826,6 +4853,8 @@ declare module "vue-data-ui" {
|
|
|
4826
4853
|
};
|
|
4827
4854
|
};
|
|
4828
4855
|
|
|
4856
|
+
export type VueUiHorizontalBarConfig = VueUiVerticalBarConfig; // v3 renaming;
|
|
4857
|
+
|
|
4829
4858
|
export type VueUiVerticalBarDatapoint = {
|
|
4830
4859
|
children?: Array<any>;
|
|
4831
4860
|
childIndex?: number;
|
|
@@ -4842,8 +4871,10 @@ declare module "vue-data-ui" {
|
|
|
4842
4871
|
value: number;
|
|
4843
4872
|
};
|
|
4844
4873
|
|
|
4874
|
+
export type VueUiHorizontalBarDatapoint = VueUiVerticalBarDatapoint; // v3 renaming
|
|
4875
|
+
|
|
4845
4876
|
export type VueUiVerticalBarSerie = {
|
|
4846
|
-
children: VueUiVerticalBarDatapoint[];
|
|
4877
|
+
children: VueUiVerticalBarDatapoint[] | VueUiHorizontalBarDatapoint[];
|
|
4847
4878
|
color: string;
|
|
4848
4879
|
hasChildren: boolean;
|
|
4849
4880
|
is: string;
|
|
@@ -4854,8 +4885,10 @@ declare module "vue-data-ui" {
|
|
|
4854
4885
|
value: number;
|
|
4855
4886
|
};
|
|
4856
4887
|
|
|
4888
|
+
export type VueUiHorizontalBarSerie = VueUiVerticalBarSerie; // v3 renaming
|
|
4889
|
+
|
|
4857
4890
|
export type VueUiVerticalBarExpose = {
|
|
4858
|
-
getData(): Promise<Array<VueUiVerticalBarDatasetItem & Record<string, any>>>
|
|
4891
|
+
getData(): Promise<Array<VueUiVerticalBarDatasetItem & Record<string, any>>> | Promise<Array<VueUiHorizontalBarDatasetItem & Record<string, any>>>
|
|
4859
4892
|
getImage(options?: { scale?: number }): GetImagePromise
|
|
4860
4893
|
recalculateHeight(): void,
|
|
4861
4894
|
generateCsv(): void
|
|
@@ -4868,6 +4901,8 @@ declare module "vue-data-ui" {
|
|
|
4868
4901
|
toggleFullscreen(): void
|
|
4869
4902
|
}
|
|
4870
4903
|
|
|
4904
|
+
export type VueUiHorizontalBarExpose = VueUiVerticalBarExpose; // v3 renaming
|
|
4905
|
+
|
|
4871
4906
|
export const VueUiVerticalBar: DefineComponent<
|
|
4872
4907
|
{
|
|
4873
4908
|
config?: VueUiVerticalBarConfig;
|
|
@@ -4876,6 +4911,17 @@ declare module "vue-data-ui" {
|
|
|
4876
4911
|
VueUiVerticalBarExpose
|
|
4877
4912
|
>;
|
|
4878
4913
|
|
|
4914
|
+
/**
|
|
4915
|
+
* Renamed from the v2 VueUiVerticalBar
|
|
4916
|
+
*/
|
|
4917
|
+
export const VueUiHorizontalBar: DefineComponent<
|
|
4918
|
+
{
|
|
4919
|
+
config?: VueUiHorizontalBarConfig;
|
|
4920
|
+
dataset: VueUiHorizontalBarDatasetItem[];
|
|
4921
|
+
},
|
|
4922
|
+
VueUiHorizontalBarExpose
|
|
4923
|
+
>;
|
|
4924
|
+
|
|
4879
4925
|
export type VueUiSparklineDatasetItem = {
|
|
4880
4926
|
period: string;
|
|
4881
4927
|
value: number;
|
|
@@ -7079,6 +7125,7 @@ declare module "vue-data-ui" {
|
|
|
7079
7125
|
datetimeFormatter?: AxisDateFormatter;
|
|
7080
7126
|
offsetY?: number;
|
|
7081
7127
|
rotation?: number;
|
|
7128
|
+
autoRotate?: boolean;
|
|
7082
7129
|
fontSize?: number;
|
|
7083
7130
|
color?: string;
|
|
7084
7131
|
bold?: boolean;
|
|
@@ -8100,6 +8147,7 @@ declare module "vue-data-ui" {
|
|
|
8100
8147
|
| VueUiThermometerConfig
|
|
8101
8148
|
| VueUiTiremarksConfig
|
|
8102
8149
|
| VueUiVerticalBarConfig
|
|
8150
|
+
| VueUiHorizontalBarConfig
|
|
8103
8151
|
| VueUiWaffleConfig
|
|
8104
8152
|
| VueUiWheelConfig
|
|
8105
8153
|
| VueUiXyConfig
|
|
@@ -8163,6 +8211,7 @@ declare module "vue-data-ui" {
|
|
|
8163
8211
|
| "vue_ui_thermometer"
|
|
8164
8212
|
| "vue_ui_tiremarks"
|
|
8165
8213
|
| "vue_ui_vertical_bar"
|
|
8214
|
+
| "vue_ui_horizontal_bar"
|
|
8166
8215
|
| "vue_ui_waffle"
|
|
8167
8216
|
| "vue_ui_wheel"
|
|
8168
8217
|
| "vue_ui_xy"
|
|
@@ -8478,6 +8527,55 @@ declare module "vue-data-ui" {
|
|
|
8478
8527
|
* @returns The shifted color in hexadecimal format.
|
|
8479
8528
|
*/
|
|
8480
8529
|
export const shiftColorHue: (color: string, strength: number) => string;
|
|
8530
|
+
|
|
8531
|
+
export type FormatSmallValueArgs = {
|
|
8532
|
+
value: number;
|
|
8533
|
+
maxDecimals?: number;
|
|
8534
|
+
fallbackFormatter?: (value: number) => string;
|
|
8535
|
+
removeTrailingZero?: boolean
|
|
8536
|
+
}
|
|
8537
|
+
|
|
8538
|
+
/**
|
|
8539
|
+
* Vue Data UI utility
|
|
8540
|
+
* ---
|
|
8541
|
+
* Formats numeric values with a controlled number of decimal places,
|
|
8542
|
+
* applying maxDecimals for all values when no fallbackFormatter is given,
|
|
8543
|
+
* or calling the fallbackFormatter for values ≥ 1 if provided.
|
|
8544
|
+
* ___
|
|
8545
|
+
* @example
|
|
8546
|
+
* // Zero value
|
|
8547
|
+
* formatSmallValue({ value: 0 }); // "0"
|
|
8548
|
+
*
|
|
8549
|
+
* // Values < 1 use minimal decimals
|
|
8550
|
+
* formatSmallValue({ value: 0.9 }); // "0.9"
|
|
8551
|
+
* formatSmallValue({ value: 0.0042 }); // "0.0042"
|
|
8552
|
+
* formatSmallValue({ value: 0.00420001 }); // "0.0042"
|
|
8553
|
+
*
|
|
8554
|
+
* // Retain trailing zeros
|
|
8555
|
+
* formatSmallValue({ value: 0.9, removeTrailingZero: false }); // "0.90"
|
|
8556
|
+
*
|
|
8557
|
+
* // Values ≥ 1 without fallback apply maxDecimals
|
|
8558
|
+
* formatSmallValue({ value: 1.61803, maxDecimals: 3 }); // "1.618"
|
|
8559
|
+
*
|
|
8560
|
+
* // Values ≥ 1 with fallbackFormatter
|
|
8561
|
+
* formatSmallValue({ value: 2.5, fallbackFormatter: v => v.toFixed(1) }); // "2.5"
|
|
8562
|
+
*
|
|
8563
|
+
* // Negative values
|
|
8564
|
+
* formatSmallValue({ value: -0.056 }); // "-0.056"
|
|
8565
|
+
*
|
|
8566
|
+
* @param {FormatSmallValueArgs} options - Configuration object for formatting.
|
|
8567
|
+
* @param {number} options.value - The numeric value to format.
|
|
8568
|
+
* @param {number} [options.maxDecimals=4] - Maximum decimal places to use.
|
|
8569
|
+
* @param {(value: number) => string} [options.fallbackFormatter] - Formatter for values ≥ 1.
|
|
8570
|
+
* @param {boolean} [options.removeTrailingZero=true] - Whether to strip unnecessary trailing zeros.
|
|
8571
|
+
* @returns {string} The formatted number as a string.
|
|
8572
|
+
*/
|
|
8573
|
+
export const formatSmallValue: ({
|
|
8574
|
+
value,
|
|
8575
|
+
maxDecimals,
|
|
8576
|
+
fallbackFormatter,
|
|
8577
|
+
removeTrailingZero
|
|
8578
|
+
}: FormatSmallValueArgs) => string
|
|
8481
8579
|
|
|
8482
8580
|
export type CreateTSpansArgs = {
|
|
8483
8581
|
content: string;
|
|
@@ -39,6 +39,7 @@ declare module "vue-data-ui" {
|
|
|
39
39
|
| VueUiThermometerDataset
|
|
40
40
|
| VueUiTiremarksDataset
|
|
41
41
|
| VueUiVerticalBarDatasetItem[]
|
|
42
|
+
| VueUiHorizontalBarDatasetItem[]
|
|
42
43
|
| VueUiWaffleDatasetItem[]
|
|
43
44
|
| VueUiWheelDataset
|
|
44
45
|
| VueUiXyDatasetItem[]
|
|
@@ -95,6 +96,7 @@ declare module "vue-data-ui" {
|
|
|
95
96
|
| VueUiThermometerConfig
|
|
96
97
|
| VueUiTiremarksConfig
|
|
97
98
|
| VueUiVerticalBarConfig
|
|
99
|
+
| VueUiHorizontalBarConfig
|
|
98
100
|
| VueUiWaffleConfig
|
|
99
101
|
| VueUiWheelConfig
|
|
100
102
|
| VueUiXyConfig
|
|
@@ -2370,6 +2372,8 @@ declare module "vue-data-ui" {
|
|
|
2370
2372
|
>;
|
|
2371
2373
|
|
|
2372
2374
|
export type VueUiCandlestickConfig = {
|
|
2375
|
+
debug?: boolean;
|
|
2376
|
+
loading?: boolean;
|
|
2373
2377
|
responsive?: boolean;
|
|
2374
2378
|
responsiveProportionalSizing?: boolean;
|
|
2375
2379
|
theme?: Theme;
|
|
@@ -2398,6 +2402,7 @@ declare module "vue-data-ui" {
|
|
|
2398
2402
|
offsetY?: number;
|
|
2399
2403
|
bold?: boolean;
|
|
2400
2404
|
rotation?: number;
|
|
2405
|
+
autoRotate?: boolean;
|
|
2401
2406
|
};
|
|
2402
2407
|
timeLabels?: {
|
|
2403
2408
|
datetimeFormatter?: AxisDateFormatter
|
|
@@ -2954,7 +2959,6 @@ declare module "vue-data-ui" {
|
|
|
2954
2959
|
export type VueUiXyConfig = {
|
|
2955
2960
|
debug?: boolean;
|
|
2956
2961
|
responsive?: boolean;
|
|
2957
|
-
autoSize?: boolean; // v3 opt-in
|
|
2958
2962
|
loading?: boolean; // v3
|
|
2959
2963
|
responsiveProportionalSizing?: boolean;
|
|
2960
2964
|
theme?: Theme;
|
|
@@ -3033,6 +3037,8 @@ declare module "vue-data-ui" {
|
|
|
3033
3037
|
groupColor?: string | null;
|
|
3034
3038
|
scaleLabelOffsetX?: number;
|
|
3035
3039
|
scaleValueOffsetX?: number;
|
|
3040
|
+
rounding?: number;
|
|
3041
|
+
serieNameFormatter?: Formatter;
|
|
3036
3042
|
};
|
|
3037
3043
|
xAxis?: {
|
|
3038
3044
|
showBaseline?: boolean;
|
|
@@ -3051,6 +3057,7 @@ declare module "vue-data-ui" {
|
|
|
3051
3057
|
showOnlyAtModulo?: boolean;
|
|
3052
3058
|
modulo?: number;
|
|
3053
3059
|
datetimeFormatter?: AxisDateFormatter;
|
|
3060
|
+
autoRotate?: boolean;
|
|
3054
3061
|
};
|
|
3055
3062
|
};
|
|
3056
3063
|
};
|
|
@@ -3291,21 +3298,24 @@ declare module "vue-data-ui" {
|
|
|
3291
3298
|
VueUiXyExpose
|
|
3292
3299
|
>;
|
|
3293
3300
|
|
|
3301
|
+
export type VueUiDonutEvent = null | (({datapoint, seriesIndex }: { datapoint: VueUiDonutDatapoint; seriesIndex: number }) => void);
|
|
3302
|
+
|
|
3294
3303
|
export type VueUiDonutConfig = {
|
|
3295
3304
|
debug?: boolean;
|
|
3296
3305
|
type?: "classic" | "polar";
|
|
3297
3306
|
loading?: boolean;
|
|
3298
3307
|
pie?: boolean;
|
|
3308
|
+
autoSize?: boolean;
|
|
3299
3309
|
responsive?: boolean;
|
|
3300
3310
|
theme?: Theme;
|
|
3301
3311
|
customPalette?: string[];
|
|
3302
3312
|
useBlurOnHover?: boolean;
|
|
3303
3313
|
useCssAnimation?: boolean;
|
|
3304
3314
|
events?: {
|
|
3305
|
-
datapointEnter?:
|
|
3306
|
-
datapointLeave?:
|
|
3307
|
-
datapointClick?:
|
|
3308
|
-
}
|
|
3315
|
+
datapointEnter?: VueUiDonutEvent;
|
|
3316
|
+
datapointLeave?: VueUiDonutEvent;
|
|
3317
|
+
datapointClick?: VueUiDonutEvent;
|
|
3318
|
+
};
|
|
3309
3319
|
serieToggleAnimation?: {
|
|
3310
3320
|
show?: boolean;
|
|
3311
3321
|
durationMs?: number;
|
|
@@ -3515,6 +3525,9 @@ declare module "vue-data-ui" {
|
|
|
3515
3525
|
};
|
|
3516
3526
|
|
|
3517
3527
|
export type VueUiNestedDonutsConfig = {
|
|
3528
|
+
debug?: boolean; // v3
|
|
3529
|
+
loading?: boolean; // v3
|
|
3530
|
+
autoSize?: boolean; // v3
|
|
3518
3531
|
responsive?: boolean;
|
|
3519
3532
|
theme?: Theme;
|
|
3520
3533
|
customPalette?: string[];
|
|
@@ -3560,6 +3573,7 @@ declare module "vue-data-ui" {
|
|
|
3560
3573
|
useSerieColor?: boolean;
|
|
3561
3574
|
showDonutName?: boolean;
|
|
3562
3575
|
boldDonutName?: boolean;
|
|
3576
|
+
curvedDonutName?: boolean;
|
|
3563
3577
|
donutNameAbbreviation?: boolean;
|
|
3564
3578
|
donutNameOffsetY?: number;
|
|
3565
3579
|
donutNameMaxAbbreviationSize?: number;
|
|
@@ -3567,6 +3581,7 @@ declare module "vue-data-ui" {
|
|
|
3567
3581
|
};
|
|
3568
3582
|
};
|
|
3569
3583
|
donut?: {
|
|
3584
|
+
radiusRatio?: number;
|
|
3570
3585
|
strokeWidth?: number;
|
|
3571
3586
|
borderWidth?: number;
|
|
3572
3587
|
spacingRatio?: number;
|
|
@@ -4699,23 +4714,34 @@ declare module "vue-data-ui" {
|
|
|
4699
4714
|
value: number;
|
|
4700
4715
|
};
|
|
4701
4716
|
|
|
4717
|
+
export type VueUiHorizontalBarDatasetChild = VueUiVerticalBarDatasetChild; // v3 renaming
|
|
4718
|
+
|
|
4702
4719
|
export type VueUiVerticalBarDatasetItem = {
|
|
4703
4720
|
name: string;
|
|
4704
4721
|
value: number;
|
|
4705
4722
|
color?: string;
|
|
4706
|
-
children?: VueUiVerticalBarDatasetChild[];
|
|
4723
|
+
children?: VueUiVerticalBarDatasetChild[] | VueUiHorizontalBarDatasetChild[];
|
|
4707
4724
|
};
|
|
4708
4725
|
|
|
4726
|
+
export type VueUiHorizontalBarDatasetItem = VueUiVerticalBarDatasetItem // v3 renaming
|
|
4727
|
+
|
|
4728
|
+
export type VueUiVerticalBarEvent = null | (({ datapoint, seriesIndex }: { datapoint: VueUiVerticalBarDatapoint | VueUiHorizontalBarDatapoint; seriesIndex: number }) => void);
|
|
4729
|
+
|
|
4730
|
+
export type VueUiHorizontalBarEvent = VueUiVerticalBarEvent; // v3 renaming
|
|
4731
|
+
|
|
4709
4732
|
export type VueUiVerticalBarConfig = {
|
|
4733
|
+
debug?: boolean;
|
|
4734
|
+
loading?: boolean;
|
|
4735
|
+
autoSize?: boolean;
|
|
4710
4736
|
responsive?: boolean;
|
|
4711
4737
|
theme?: Theme;
|
|
4712
4738
|
customPalette?: string[];
|
|
4713
4739
|
useCssAnimation?: boolean;
|
|
4714
4740
|
events?: {
|
|
4715
|
-
datapointEnter?:
|
|
4716
|
-
datapointLeave?:
|
|
4717
|
-
datapointClick?:
|
|
4718
|
-
}
|
|
4741
|
+
datapointEnter?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
|
|
4742
|
+
datapointLeave?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
|
|
4743
|
+
datapointClick?: VueUiVerticalBarEvent | VueUiHorizontalBarEvent;
|
|
4744
|
+
};
|
|
4719
4745
|
style?: {
|
|
4720
4746
|
fontFamily?: string;
|
|
4721
4747
|
chart?: {
|
|
@@ -4775,6 +4801,7 @@ declare module "vue-data-ui" {
|
|
|
4775
4801
|
show?: boolean;
|
|
4776
4802
|
color?: string;
|
|
4777
4803
|
strokeWidth?: number;
|
|
4804
|
+
fullWidth?: boolean;
|
|
4778
4805
|
};
|
|
4779
4806
|
};
|
|
4780
4807
|
title?: ChartTitle;
|
|
@@ -4797,9 +4824,9 @@ declare module "vue-data-ui" {
|
|
|
4797
4824
|
| null
|
|
4798
4825
|
| ((
|
|
4799
4826
|
params: VueUiTooltipParams<
|
|
4800
|
-
VueUiVerticalBarDatapoint,
|
|
4801
|
-
VueUiVerticalBarSerie[],
|
|
4802
|
-
VueUiVerticalBarConfig
|
|
4827
|
+
VueUiVerticalBarDatapoint | VueUiHorizontalBarDatapoint,
|
|
4828
|
+
VueUiVerticalBarSerie[] | VueUiHorizontalBarSerie[],
|
|
4829
|
+
VueUiVerticalBarConfig | VueUiHorizontalBarConfig
|
|
4803
4830
|
>
|
|
4804
4831
|
) => string);
|
|
4805
4832
|
};
|
|
@@ -4826,6 +4853,8 @@ declare module "vue-data-ui" {
|
|
|
4826
4853
|
};
|
|
4827
4854
|
};
|
|
4828
4855
|
|
|
4856
|
+
export type VueUiHorizontalBarConfig = VueUiVerticalBarConfig; // v3 renaming;
|
|
4857
|
+
|
|
4829
4858
|
export type VueUiVerticalBarDatapoint = {
|
|
4830
4859
|
children?: Array<any>;
|
|
4831
4860
|
childIndex?: number;
|
|
@@ -4842,8 +4871,10 @@ declare module "vue-data-ui" {
|
|
|
4842
4871
|
value: number;
|
|
4843
4872
|
};
|
|
4844
4873
|
|
|
4874
|
+
export type VueUiHorizontalBarDatapoint = VueUiVerticalBarDatapoint; // v3 renaming
|
|
4875
|
+
|
|
4845
4876
|
export type VueUiVerticalBarSerie = {
|
|
4846
|
-
children: VueUiVerticalBarDatapoint[];
|
|
4877
|
+
children: VueUiVerticalBarDatapoint[] | VueUiHorizontalBarDatapoint[];
|
|
4847
4878
|
color: string;
|
|
4848
4879
|
hasChildren: boolean;
|
|
4849
4880
|
is: string;
|
|
@@ -4854,8 +4885,10 @@ declare module "vue-data-ui" {
|
|
|
4854
4885
|
value: number;
|
|
4855
4886
|
};
|
|
4856
4887
|
|
|
4888
|
+
export type VueUiHorizontalBarSerie = VueUiVerticalBarSerie; // v3 renaming
|
|
4889
|
+
|
|
4857
4890
|
export type VueUiVerticalBarExpose = {
|
|
4858
|
-
getData(): Promise<Array<VueUiVerticalBarDatasetItem & Record<string, any>>>
|
|
4891
|
+
getData(): Promise<Array<VueUiVerticalBarDatasetItem & Record<string, any>>> | Promise<Array<VueUiHorizontalBarDatasetItem & Record<string, any>>>
|
|
4859
4892
|
getImage(options?: { scale?: number }): GetImagePromise
|
|
4860
4893
|
recalculateHeight(): void,
|
|
4861
4894
|
generateCsv(): void
|
|
@@ -4868,6 +4901,8 @@ declare module "vue-data-ui" {
|
|
|
4868
4901
|
toggleFullscreen(): void
|
|
4869
4902
|
}
|
|
4870
4903
|
|
|
4904
|
+
export type VueUiHorizontalBarExpose = VueUiVerticalBarExpose; // v3 renaming
|
|
4905
|
+
|
|
4871
4906
|
export const VueUiVerticalBar: DefineComponent<
|
|
4872
4907
|
{
|
|
4873
4908
|
config?: VueUiVerticalBarConfig;
|
|
@@ -4876,6 +4911,17 @@ declare module "vue-data-ui" {
|
|
|
4876
4911
|
VueUiVerticalBarExpose
|
|
4877
4912
|
>;
|
|
4878
4913
|
|
|
4914
|
+
/**
|
|
4915
|
+
* Renamed from the v2 VueUiVerticalBar
|
|
4916
|
+
*/
|
|
4917
|
+
export const VueUiHorizontalBar: DefineComponent<
|
|
4918
|
+
{
|
|
4919
|
+
config?: VueUiHorizontalBarConfig;
|
|
4920
|
+
dataset: VueUiHorizontalBarDatasetItem[];
|
|
4921
|
+
},
|
|
4922
|
+
VueUiHorizontalBarExpose
|
|
4923
|
+
>;
|
|
4924
|
+
|
|
4879
4925
|
export type VueUiSparklineDatasetItem = {
|
|
4880
4926
|
period: string;
|
|
4881
4927
|
value: number;
|
|
@@ -7079,6 +7125,7 @@ declare module "vue-data-ui" {
|
|
|
7079
7125
|
datetimeFormatter?: AxisDateFormatter;
|
|
7080
7126
|
offsetY?: number;
|
|
7081
7127
|
rotation?: number;
|
|
7128
|
+
autoRotate?: boolean;
|
|
7082
7129
|
fontSize?: number;
|
|
7083
7130
|
color?: string;
|
|
7084
7131
|
bold?: boolean;
|
|
@@ -8100,6 +8147,7 @@ declare module "vue-data-ui" {
|
|
|
8100
8147
|
| VueUiThermometerConfig
|
|
8101
8148
|
| VueUiTiremarksConfig
|
|
8102
8149
|
| VueUiVerticalBarConfig
|
|
8150
|
+
| VueUiHorizontalBarConfig
|
|
8103
8151
|
| VueUiWaffleConfig
|
|
8104
8152
|
| VueUiWheelConfig
|
|
8105
8153
|
| VueUiXyConfig
|
|
@@ -8163,6 +8211,7 @@ declare module "vue-data-ui" {
|
|
|
8163
8211
|
| "vue_ui_thermometer"
|
|
8164
8212
|
| "vue_ui_tiremarks"
|
|
8165
8213
|
| "vue_ui_vertical_bar"
|
|
8214
|
+
| "vue_ui_horizontal_bar"
|
|
8166
8215
|
| "vue_ui_waffle"
|
|
8167
8216
|
| "vue_ui_wheel"
|
|
8168
8217
|
| "vue_ui_xy"
|
|
@@ -8478,6 +8527,55 @@ declare module "vue-data-ui" {
|
|
|
8478
8527
|
* @returns The shifted color in hexadecimal format.
|
|
8479
8528
|
*/
|
|
8480
8529
|
export const shiftColorHue: (color: string, strength: number) => string;
|
|
8530
|
+
|
|
8531
|
+
export type FormatSmallValueArgs = {
|
|
8532
|
+
value: number;
|
|
8533
|
+
maxDecimals?: number;
|
|
8534
|
+
fallbackFormatter?: (value: number) => string;
|
|
8535
|
+
removeTrailingZero?: boolean
|
|
8536
|
+
}
|
|
8537
|
+
|
|
8538
|
+
/**
|
|
8539
|
+
* Vue Data UI utility
|
|
8540
|
+
* ---
|
|
8541
|
+
* Formats numeric values with a controlled number of decimal places,
|
|
8542
|
+
* applying maxDecimals for all values when no fallbackFormatter is given,
|
|
8543
|
+
* or calling the fallbackFormatter for values ≥ 1 if provided.
|
|
8544
|
+
* ___
|
|
8545
|
+
* @example
|
|
8546
|
+
* // Zero value
|
|
8547
|
+
* formatSmallValue({ value: 0 }); // "0"
|
|
8548
|
+
*
|
|
8549
|
+
* // Values < 1 use minimal decimals
|
|
8550
|
+
* formatSmallValue({ value: 0.9 }); // "0.9"
|
|
8551
|
+
* formatSmallValue({ value: 0.0042 }); // "0.0042"
|
|
8552
|
+
* formatSmallValue({ value: 0.00420001 }); // "0.0042"
|
|
8553
|
+
*
|
|
8554
|
+
* // Retain trailing zeros
|
|
8555
|
+
* formatSmallValue({ value: 0.9, removeTrailingZero: false }); // "0.90"
|
|
8556
|
+
*
|
|
8557
|
+
* // Values ≥ 1 without fallback apply maxDecimals
|
|
8558
|
+
* formatSmallValue({ value: 1.61803, maxDecimals: 3 }); // "1.618"
|
|
8559
|
+
*
|
|
8560
|
+
* // Values ≥ 1 with fallbackFormatter
|
|
8561
|
+
* formatSmallValue({ value: 2.5, fallbackFormatter: v => v.toFixed(1) }); // "2.5"
|
|
8562
|
+
*
|
|
8563
|
+
* // Negative values
|
|
8564
|
+
* formatSmallValue({ value: -0.056 }); // "-0.056"
|
|
8565
|
+
*
|
|
8566
|
+
* @param {FormatSmallValueArgs} options - Configuration object for formatting.
|
|
8567
|
+
* @param {number} options.value - The numeric value to format.
|
|
8568
|
+
* @param {number} [options.maxDecimals=4] - Maximum decimal places to use.
|
|
8569
|
+
* @param {(value: number) => string} [options.fallbackFormatter] - Formatter for values ≥ 1.
|
|
8570
|
+
* @param {boolean} [options.removeTrailingZero=true] - Whether to strip unnecessary trailing zeros.
|
|
8571
|
+
* @returns {string} The formatted number as a string.
|
|
8572
|
+
*/
|
|
8573
|
+
export const formatSmallValue: ({
|
|
8574
|
+
value,
|
|
8575
|
+
maxDecimals,
|
|
8576
|
+
fallbackFormatter,
|
|
8577
|
+
removeTrailingZero
|
|
8578
|
+
}: FormatSmallValueArgs) => string
|
|
8481
8579
|
|
|
8482
8580
|
export type CreateTSpansArgs = {
|
|
8483
8581
|
content: string;
|
|
@@ -10,7 +10,7 @@ function m({
|
|
|
10
10
|
!t || r.value || (r.value = !0, clearTimeout(n.value), n.value = setTimeout(async () => {
|
|
11
11
|
if (t)
|
|
12
12
|
try {
|
|
13
|
-
const { default: e } = await import("./pdf-
|
|
13
|
+
const { default: e } = await import("./pdf-BpoXwx5J.js");
|
|
14
14
|
await e({
|
|
15
15
|
domElement: document.getElementById(u),
|
|
16
16
|
fileName: l,
|
|
@@ -27,7 +27,7 @@ function m({
|
|
|
27
27
|
!t || a.value || (a.value = !0, clearTimeout(n.value), n.value = setTimeout(async () => {
|
|
28
28
|
if (t)
|
|
29
29
|
try {
|
|
30
|
-
const { default: e } = await import("./img-
|
|
30
|
+
const { default: e } = await import("./img-BTcfCQH5.js");
|
|
31
31
|
await e({
|
|
32
32
|
domElement: document.getElementById(u),
|
|
33
33
|
fileName: l,
|