Skip to content

Commit 20c50b5

Browse files
committed
Types - Fix typing errors
1 parent ef11548 commit 20c50b5

File tree

1 file changed

+86
-62
lines changed

1 file changed

+86
-62
lines changed

types/vue-data-ui.d.ts

+86-62
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ declare module "vue-data-ui" {
739739

740740
export type VueUiMoleculeConfig = {
741741
theme?: Theme;
742+
customPalette?: string[];
742743
style?: {
743744
fontFamily?: string;
744745
chart?: {
@@ -962,6 +963,8 @@ declare module "vue-data-ui" {
962963
roundingValue?: number;
963964
bold?: boolean;
964965
formatter?: Formatter;
966+
prefix?: string;
967+
suffix?: string;
965968
};
966969
};
967970
title?: ChartTitle;
@@ -1247,6 +1250,7 @@ declare module "vue-data-ui" {
12471250

12481251
export type VueUiTiremarksConfig = {
12491252
theme?: Theme;
1253+
userOptions?: ChartUserOptions;
12501254
style?: {
12511255
fontFamily?: string;
12521256
chart?: {
@@ -1597,6 +1601,8 @@ declare module "vue-data-ui" {
15971601
fontSize?: number;
15981602
bold?: boolean;
15991603
margin?: string;
1604+
paddingLeft?: number;
1605+
paddingRight?: number;
16001606
subtitle?: {
16011607
color?: string;
16021608
text?: string;
@@ -1669,6 +1675,7 @@ declare module "vue-data-ui" {
16691675
prefix?: string;
16701676
suffix?: string;
16711677
formatter?: Formatter;
1678+
color?: string;
16721679
};
16731680
};
16741681
title?: ChartTitle;
@@ -2214,7 +2221,7 @@ declare module "vue-data-ui" {
22142221
export type VueUiScatterDatasetItem = {
22152222
name: string;
22162223
values: VueUiScatterDatasetValueItem[];
2217-
color: string;
2224+
color?: string;
22182225
shape?: Shape;
22192226
};
22202227

@@ -3448,6 +3455,7 @@ declare module "vue-data-ui" {
34483455
theme?: Theme;
34493456
useCssAnimation?: boolean;
34503457
zoomAnimationFrames?: number;
3458+
customPalette?: string[];
34513459
downsample?: {
34523460
threshold?: number;
34533461
};
@@ -3844,6 +3852,8 @@ declare module "vue-data-ui" {
38443852
bold?: boolean;
38453853
offsetY?: number;
38463854
textAlign?: TextAlign;
3855+
paddingLeft?: number;
3856+
paddingRight?: number;
38473857
subtitle?: {
38483858
text?: string;
38493859
color?: string;
@@ -3907,6 +3917,7 @@ declare module "vue-data-ui" {
39073917
customPalette?: string[];
39083918
useCssAnimation?: boolean;
39093919
useStartAnimation?: boolean;
3920+
useBlurOnHover?: boolean;
39103921
style?: {
39113922
fontFamily?: string;
39123923
chart?: {
@@ -4024,7 +4035,7 @@ declare module "vue-data-ui" {
40244035

40254036
export type VueUiVerticalBarDatasetChild = {
40264037
name: string;
4027-
value: string;
4038+
value: number;
40284039
};
40294040

40304041
export type VueUiVerticalBarDatasetItem = {
@@ -4497,7 +4508,7 @@ declare module "vue-data-ui" {
44974508
};
44984509
image?: {
44994510
src?: string;
4500-
inactiveOpacity?: string;
4511+
inactiveOpacity?: number;
45014512
alt?: string;
45024513
};
45034514
title?: {
@@ -4530,6 +4541,7 @@ declare module "vue-data-ui" {
45304541
bold?: boolean;
45314542
roundingValue?: number;
45324543
formatter?: Formatter;
4544+
boxShadow?: string;
45334545
};
45344546
};
45354547
};
@@ -4561,6 +4573,8 @@ declare module "vue-data-ui" {
45614573
bold?: boolean;
45624574
text?: string;
45634575
offsetY?: number;
4576+
paddingLeft?: number;
4577+
paddingRight?: number;
45644578
subtitle?: {
45654579
fontSize?: number;
45664580
color?: string;
@@ -4584,6 +4598,7 @@ declare module "vue-data-ui" {
45844598
bold?: boolean;
45854599
roundingValue?: number;
45864600
formatter?: Formatter;
4601+
boxShadow?: string;
45874602
};
45884603
};
45894604
};
@@ -4695,6 +4710,7 @@ declare module "vue-data-ui" {
46954710
backgroundColor?: string;
46964711
color?: string;
46974712
animated?: boolean;
4713+
maxHeight?: number;
46984714
circlePack?: {
46994715
color?: string;
47004716
};
@@ -4725,6 +4741,10 @@ declare module "vue-data-ui" {
47254741
bar3d?: {
47264742
color?: string;
47274743
};
4744+
sparkline?: {
4745+
color?: string;
4746+
strokeWidth?: number;
4747+
};
47284748
sparkHistogram?: {
47294749
color?: string;
47304750
};
@@ -5030,6 +5050,7 @@ declare module "vue-data-ui" {
50305050
pdf?: boolean;
50315051
img?: boolean;
50325052
fullscreen?: boolean;
5053+
annotator?: boolean;
50335054
};
50345055
userOptionsButtonTitles?: {
50355056
open?: string;
@@ -5038,6 +5059,7 @@ declare module "vue-data-ui" {
50385059
pdf?: string;
50395060
img?: string;
50405061
fullscreen?: string;
5062+
annotator?: string;
50415063
};
50425064
showUserOptionsOnChartHover?: boolean;
50435065
keepUserOptionsStateOnChartLeave?: boolean;
@@ -5295,7 +5317,7 @@ declare module "vue-data-ui" {
52955317
};
52965318

52975319
export type VueUiDumbbellConfig = {
5298-
reponsive?: boolean;
5320+
responsive?: boolean;
52995321
theme?: Theme;
53005322
useAnimation?: boolean;
53015323
animationSpeed?: number;
@@ -5520,11 +5542,7 @@ declare module "vue-data-ui" {
55205542
dashed?: boolean;
55215543
showHorizontalSelector?: boolean;
55225544
};
5523-
tooltip?: {
5524-
show?: boolean;
5525-
color?: string;
5526-
backgroundColor?: string;
5527-
fontSize?: number;
5545+
tooltip?: ChartTooltip & {
55285546
customFormat?:
55295547
| null
55305548
| ((
@@ -5534,9 +5552,6 @@ declare module "vue-data-ui" {
55345552
VueUiXyConfig
55355553
>
55365554
) => string);
5537-
borderRadius?: number;
5538-
borderColor?: string;
5539-
borderWidth?: number;
55405555
};
55415556
legend?: {
55425557
backgroundColor?: string;
@@ -5968,7 +5983,11 @@ declare module "vue-data-ui" {
59685983
hide?: boolean;
59695984
};
59705985
thead?: {
5986+
style?: {
5987+
verticalAlign?: string;
5988+
};
59715989
tr?: {
5990+
height?: number;
59725991
style?: {
59735992
backgroundColor?: string;
59745993
color?: string;
@@ -6221,62 +6240,65 @@ declare module "vue-data-ui" {
62216240
export type VueUiBulletConfig = {
62226241
theme?: Theme;
62236242
userOptions?: ChartUserOptions;
6224-
chart?: {
6225-
backgroundColor?: string;
6226-
color?: string;
6227-
height?: number;
6228-
width?: number;
6229-
padding?: ChartPadding;
6230-
animation?: {
6231-
show?: boolean;
6232-
animationFrames?: number;
6233-
};
6234-
segments?: {
6235-
baseColor?: string;
6236-
dataLabels?: {
6243+
style?: {
6244+
fontFamily?: string;
6245+
chart?: {
6246+
backgroundColor?: string;
6247+
color?: string;
6248+
height?: number;
6249+
width?: number;
6250+
padding?: ChartPadding;
6251+
animation?: {
62376252
show?: boolean;
6238-
color?: string;
6239-
fontSize?: number;
6240-
formatter?: Formatter;
6241-
bold?: boolean;
6242-
prefix?: string;
6243-
suffix?: string;
6244-
rounding?: number;
6245-
offsetY?: number;
6253+
animationFrames?: number;
62466254
};
6247-
ticks?: {
6248-
show?: boolean;
6249-
divisions?: number;
6255+
segments?: {
6256+
baseColor?: string;
6257+
dataLabels?: {
6258+
show?: boolean;
6259+
color?: string;
6260+
fontSize?: number;
6261+
formatter?: Formatter;
6262+
bold?: boolean;
6263+
prefix?: string;
6264+
suffix?: string;
6265+
rounding?: number;
6266+
offsetY?: number;
6267+
};
6268+
ticks?: {
6269+
show?: boolean;
6270+
divisions?: number;
6271+
stroke?: string;
6272+
};
6273+
};
6274+
target?: {
6275+
onTop?: boolean;
6276+
color?: string;
6277+
rounded?: boolean;
6278+
heightRatio?: number;
62506279
stroke?: string;
6280+
strokeWidth?: number;
6281+
width?: number;
62516282
};
6252-
};
6253-
target?: {
6254-
onTop?: boolean;
6255-
color?: string;
6256-
rounded?: boolean;
6257-
heightRatio?: number;
6258-
stroke?: string;
6259-
strokeWidth?: number;
6260-
width?: number;
6261-
};
6262-
valueBar?: {
6263-
color?: string;
6264-
heightRatio?: number;
6265-
stroke?: string;
6266-
strokeWidth?: number;
6267-
label?: {
6268-
show?: boolean;
6283+
valueBar?: {
62696284
color?: string;
6270-
fontSize?: number;
6271-
bold?: boolean;
6272-
offsetY?: number;
6285+
heightRatio?: number;
6286+
stroke?: string;
6287+
strokeWidth?: number;
6288+
label?: {
6289+
show?: boolean;
6290+
color?: string;
6291+
fontSize?: number;
6292+
bold?: boolean;
6293+
offsetY?: number;
6294+
};
6295+
};
6296+
title?: ChartTitle;
6297+
legend?: ChartBaseLegend & {
6298+
roundingValue?: number;
62736299
};
62746300
};
6275-
title?: ChartTitle;
6276-
legend?: ChartBaseLegend & {
6277-
roundingValue?: number;
6278-
};
6279-
};
6301+
}
62806302
};
62816303

62826304
export const VueUiBullet: DefineComponent<{
@@ -6392,7 +6414,9 @@ declare module "vue-data-ui" {
63926414
show?: boolean;
63936415
responsiveBreakpoint?: number;
63946416
th?: ChartTableCell;
6395-
td?: ChartTableCell;
6417+
td?: ChartTableCell & {
6418+
roundingValue?: number;
6419+
};
63966420
columnNames?: {
63976421
series?: string;
63986422
datapoint?: string;

0 commit comments

Comments
 (0)