@visactor/vseed 0.0.20 → 0.0.21

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.
Files changed (41) hide show
  1. package/dist/builder/builder/builder.d.ts +210 -118
  2. package/dist/index.cjs +383 -38
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +363 -24
  5. package/dist/index.js.map +1 -1
  6. package/dist/pipeline/spec/table/pipes/index.d.ts +1 -0
  7. package/dist/pipeline/spec/table/pipes/theme/bodyStyle.d.ts +2 -0
  8. package/dist/pipeline/spec/table/pipes/theme/cornerHeaderStyle.d.ts +2 -0
  9. package/dist/pipeline/spec/table/pipes/theme/frameStyle.d.ts +2 -0
  10. package/dist/pipeline/spec/table/pipes/theme/headerStyle.d.ts +2 -0
  11. package/dist/pipeline/spec/table/pipes/theme/index.d.ts +6 -0
  12. package/dist/pipeline/spec/table/pipes/theme/rowHeaderStyle.d.ts +2 -0
  13. package/dist/pipeline/spec/table/pipes/theme/scrollStyle.d.ts +2 -0
  14. package/dist/pipeline/spec/table/pipes/theme/selectionStyle.d.ts +2 -0
  15. package/dist/types/advancedVSeed.d.ts +55 -61
  16. package/dist/types/chartType/area/area.d.ts +8 -46
  17. package/dist/types/chartType/areaPercent/areaPercent.d.ts +8 -46
  18. package/dist/types/chartType/bar/bar.d.ts +9 -46
  19. package/dist/types/chartType/barParallel/barParallel.d.ts +8 -46
  20. package/dist/types/chartType/barPercent/barPercent.d.ts +8 -46
  21. package/dist/types/chartType/column/column.d.ts +8 -46
  22. package/dist/types/chartType/columnParallel/columnParallel.d.ts +8 -46
  23. package/dist/types/chartType/columnPercent/columnPercent.d.ts +8 -46
  24. package/dist/types/chartType/donut/donut.d.ts +8 -46
  25. package/dist/types/chartType/dualAxis/dualAxis.d.ts +2 -2
  26. package/dist/types/chartType/funnel/funnel.d.ts +8 -46
  27. package/dist/types/chartType/line/line.d.ts +8 -46
  28. package/dist/types/chartType/pie/pie.d.ts +8 -46
  29. package/dist/types/chartType/pivotTable/pivotTable.d.ts +8 -7
  30. package/dist/types/chartType/rose/rose.d.ts +9 -46
  31. package/dist/types/chartType/roseParallel/roseParallel.d.ts +10 -47
  32. package/dist/types/chartType/scatter/scatter.d.ts +8 -46
  33. package/dist/types/chartType/table/table.d.ts +6 -44
  34. package/dist/types/properties/config/config.d.ts +50 -2
  35. package/dist/types/properties/dimensions/dimensions.d.ts +20 -44
  36. package/dist/types/properties/measures/measures.d.ts +11 -87
  37. package/dist/types/properties/theme/customTheme.d.ts +48 -4
  38. package/dist/types/vseed.d.ts +101 -709
  39. package/dist/umd/index.js +703 -40
  40. package/dist/umd/index.js.map +1 -1
  41. package/package.json +1 -1
@@ -24,24 +24,15 @@ export declare class Builder implements VSeedBuilder {
24
24
  groupName: string;
25
25
  };
26
26
  }[];
27
- dimensions: ({
27
+ dimensions: (import("../../types").DimensionGroup | {
28
28
  id: string;
29
+ location: "dimension" | "rowDimension" | "columnDimension";
29
30
  alias?: string | undefined;
30
- location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
31
- } | {
32
- id: string;
33
- alias?: string | undefined;
34
- children?: ({
35
- id: string;
36
- alias?: string | undefined;
37
- location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
38
- } | /*elided*/ any)[] | undefined;
39
31
  })[];
40
- measures: ({
32
+ measures: (import("../../types").MeasureGroup | {
41
33
  id: string;
42
- alias?: string | undefined;
43
- autoFormat?: boolean | undefined;
44
- format?: {
34
+ autoFormat: boolean;
35
+ format: {
45
36
  type?: "number" | "percent" | "permille" | "scientific" | undefined;
46
37
  ratio?: number | undefined;
47
38
  symbol?: string | undefined;
@@ -52,27 +43,8 @@ export declare class Builder implements VSeedBuilder {
52
43
  significantDigits?: number | undefined;
53
44
  roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
54
45
  roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
55
- } | undefined;
56
- } | {
57
- id: string;
46
+ };
58
47
  alias?: string | undefined;
59
- children?: ({
60
- id: string;
61
- alias?: string | undefined;
62
- autoFormat?: boolean | undefined;
63
- format?: {
64
- type?: "number" | "percent" | "permille" | "scientific" | undefined;
65
- ratio?: number | undefined;
66
- symbol?: string | undefined;
67
- thousandSeparator?: boolean | undefined;
68
- prefix?: string | undefined;
69
- suffix?: string | undefined;
70
- fractionDigits?: number | undefined;
71
- significantDigits?: number | undefined;
72
- roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
73
- roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
74
- } | undefined;
75
- } | /*elided*/ any)[] | undefined;
76
48
  })[];
77
49
  encoding: {
78
50
  x?: string[] | undefined;
@@ -85,8 +57,30 @@ export declare class Builder implements VSeedBuilder {
85
57
  size?: string[] | undefined;
86
58
  }[];
87
59
  config: {
88
- table?: Record<string, never> | undefined;
89
- pivotTable?: Record<string, never> | undefined;
60
+ table?: {
61
+ borderColor?: string | undefined;
62
+ bodyFontSize?: number | undefined;
63
+ bodyFontColor?: string | undefined;
64
+ bodyBackgroundColor?: string | undefined;
65
+ hoverBodyBackgroundColor?: string | undefined;
66
+ headerFontSize?: number | undefined;
67
+ headerFontColor?: string | undefined;
68
+ headerBackgroundColor?: string | undefined;
69
+ hoverHeaderBackgroundColor?: string | undefined;
70
+ selectedBorderColor?: string | undefined;
71
+ } | undefined;
72
+ pivotTable?: {
73
+ borderColor?: string | undefined;
74
+ bodyFontSize?: number | undefined;
75
+ bodyFontColor?: string | undefined;
76
+ bodyBackgroundColor?: string | undefined;
77
+ hoverBodyBackgroundColor?: string | undefined;
78
+ headerFontSize?: number | undefined;
79
+ headerFontColor?: string | undefined;
80
+ headerBackgroundColor?: string | undefined;
81
+ hoverHeaderBackgroundColor?: string | undefined;
82
+ selectedBorderColor?: string | undefined;
83
+ } | undefined;
90
84
  line?: {
91
85
  backgroundColor?: string | undefined;
92
86
  label?: {
@@ -1546,8 +1540,30 @@ export declare class Builder implements VSeedBuilder {
1546
1540
  };
1547
1541
  customTheme: {
1548
1542
  config?: {
1549
- table?: Record<string, never> | undefined;
1550
- pivotTable?: Record<string, never> | undefined;
1543
+ table?: {
1544
+ borderColor?: string | undefined;
1545
+ bodyFontSize?: number | undefined;
1546
+ bodyFontColor?: string | undefined;
1547
+ bodyBackgroundColor?: string | undefined;
1548
+ hoverBodyBackgroundColor?: string | undefined;
1549
+ headerFontSize?: number | undefined;
1550
+ headerFontColor?: string | undefined;
1551
+ headerBackgroundColor?: string | undefined;
1552
+ hoverHeaderBackgroundColor?: string | undefined;
1553
+ selectedBorderColor?: string | undefined;
1554
+ } | undefined;
1555
+ pivotTable?: {
1556
+ borderColor?: string | undefined;
1557
+ bodyFontSize?: number | undefined;
1558
+ bodyFontColor?: string | undefined;
1559
+ bodyBackgroundColor?: string | undefined;
1560
+ hoverBodyBackgroundColor?: string | undefined;
1561
+ headerFontSize?: number | undefined;
1562
+ headerFontColor?: string | undefined;
1563
+ headerBackgroundColor?: string | undefined;
1564
+ hoverHeaderBackgroundColor?: string | undefined;
1565
+ selectedBorderColor?: string | undefined;
1566
+ } | undefined;
1551
1567
  line?: {
1552
1568
  backgroundColor?: string | undefined;
1553
1569
  label?: {
@@ -3111,8 +3127,30 @@ export declare class Builder implements VSeedBuilder {
3111
3127
  getSpecPipeline: (chartType: ChartType) => SpecPipeline;
3112
3128
  getTheme: (themeKey: string) => {
3113
3129
  config?: {
3114
- table?: Record<string, never> | undefined;
3115
- pivotTable?: Record<string, never> | undefined;
3130
+ table?: {
3131
+ borderColor?: string | undefined;
3132
+ bodyFontSize?: number | undefined;
3133
+ bodyFontColor?: string | undefined;
3134
+ bodyBackgroundColor?: string | undefined;
3135
+ hoverBodyBackgroundColor?: string | undefined;
3136
+ headerFontSize?: number | undefined;
3137
+ headerFontColor?: string | undefined;
3138
+ headerBackgroundColor?: string | undefined;
3139
+ hoverHeaderBackgroundColor?: string | undefined;
3140
+ selectedBorderColor?: string | undefined;
3141
+ } | undefined;
3142
+ pivotTable?: {
3143
+ borderColor?: string | undefined;
3144
+ bodyFontSize?: number | undefined;
3145
+ bodyFontColor?: string | undefined;
3146
+ bodyBackgroundColor?: string | undefined;
3147
+ hoverBodyBackgroundColor?: string | undefined;
3148
+ headerFontSize?: number | undefined;
3149
+ headerFontColor?: string | undefined;
3150
+ headerBackgroundColor?: string | undefined;
3151
+ hoverHeaderBackgroundColor?: string | undefined;
3152
+ selectedBorderColor?: string | undefined;
3153
+ } | undefined;
3116
3154
  line?: {
3117
3155
  backgroundColor?: string | undefined;
3118
3156
  label?: {
@@ -4352,8 +4390,30 @@ export declare class Builder implements VSeedBuilder {
4352
4390
  };
4353
4391
  getThemeMap: () => Record<string, {
4354
4392
  config?: {
4355
- table?: Record<string, never> | undefined;
4356
- pivotTable?: Record<string, never> | undefined;
4393
+ table?: {
4394
+ borderColor?: string | undefined;
4395
+ bodyFontSize?: number | undefined;
4396
+ bodyFontColor?: string | undefined;
4397
+ bodyBackgroundColor?: string | undefined;
4398
+ hoverBodyBackgroundColor?: string | undefined;
4399
+ headerFontSize?: number | undefined;
4400
+ headerFontColor?: string | undefined;
4401
+ headerBackgroundColor?: string | undefined;
4402
+ hoverHeaderBackgroundColor?: string | undefined;
4403
+ selectedBorderColor?: string | undefined;
4404
+ } | undefined;
4405
+ pivotTable?: {
4406
+ borderColor?: string | undefined;
4407
+ bodyFontSize?: number | undefined;
4408
+ bodyFontColor?: string | undefined;
4409
+ bodyBackgroundColor?: string | undefined;
4410
+ hoverBodyBackgroundColor?: string | undefined;
4411
+ headerFontSize?: number | undefined;
4412
+ headerFontColor?: string | undefined;
4413
+ headerBackgroundColor?: string | undefined;
4414
+ hoverHeaderBackgroundColor?: string | undefined;
4415
+ selectedBorderColor?: string | undefined;
4416
+ } | undefined;
4357
4417
  line?: {
4358
4418
  backgroundColor?: string | undefined;
4359
4419
  label?: {
@@ -5612,24 +5672,15 @@ export declare class Builder implements VSeedBuilder {
5612
5672
  groupName: string;
5613
5673
  };
5614
5674
  }[];
5615
- dimensions: ({
5616
- id: string;
5617
- alias?: string | undefined;
5618
- location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
5619
- } | {
5675
+ dimensions: (import("../../types").DimensionGroup | {
5620
5676
  id: string;
5677
+ location: "dimension" | "rowDimension" | "columnDimension";
5621
5678
  alias?: string | undefined;
5622
- children?: ({
5623
- id: string;
5624
- alias?: string | undefined;
5625
- location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
5626
- } | /*elided*/ any)[] | undefined;
5627
5679
  })[];
5628
- measures: ({
5680
+ measures: (import("../../types").MeasureGroup | {
5629
5681
  id: string;
5630
- alias?: string | undefined;
5631
- autoFormat?: boolean | undefined;
5632
- format?: {
5682
+ autoFormat: boolean;
5683
+ format: {
5633
5684
  type?: "number" | "percent" | "permille" | "scientific" | undefined;
5634
5685
  ratio?: number | undefined;
5635
5686
  symbol?: string | undefined;
@@ -5640,27 +5691,8 @@ export declare class Builder implements VSeedBuilder {
5640
5691
  significantDigits?: number | undefined;
5641
5692
  roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
5642
5693
  roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
5643
- } | undefined;
5644
- } | {
5645
- id: string;
5694
+ };
5646
5695
  alias?: string | undefined;
5647
- children?: ({
5648
- id: string;
5649
- alias?: string | undefined;
5650
- autoFormat?: boolean | undefined;
5651
- format?: {
5652
- type?: "number" | "percent" | "permille" | "scientific" | undefined;
5653
- ratio?: number | undefined;
5654
- symbol?: string | undefined;
5655
- thousandSeparator?: boolean | undefined;
5656
- prefix?: string | undefined;
5657
- suffix?: string | undefined;
5658
- fractionDigits?: number | undefined;
5659
- significantDigits?: number | undefined;
5660
- roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
5661
- roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
5662
- } | undefined;
5663
- } | /*elided*/ any)[] | undefined;
5664
5696
  })[];
5665
5697
  encoding: {
5666
5698
  x?: string[] | undefined;
@@ -5673,8 +5705,30 @@ export declare class Builder implements VSeedBuilder {
5673
5705
  size?: string[] | undefined;
5674
5706
  }[];
5675
5707
  config: {
5676
- table?: Record<string, never> | undefined;
5677
- pivotTable?: Record<string, never> | undefined;
5708
+ table?: {
5709
+ borderColor?: string | undefined;
5710
+ bodyFontSize?: number | undefined;
5711
+ bodyFontColor?: string | undefined;
5712
+ bodyBackgroundColor?: string | undefined;
5713
+ hoverBodyBackgroundColor?: string | undefined;
5714
+ headerFontSize?: number | undefined;
5715
+ headerFontColor?: string | undefined;
5716
+ headerBackgroundColor?: string | undefined;
5717
+ hoverHeaderBackgroundColor?: string | undefined;
5718
+ selectedBorderColor?: string | undefined;
5719
+ } | undefined;
5720
+ pivotTable?: {
5721
+ borderColor?: string | undefined;
5722
+ bodyFontSize?: number | undefined;
5723
+ bodyFontColor?: string | undefined;
5724
+ bodyBackgroundColor?: string | undefined;
5725
+ hoverBodyBackgroundColor?: string | undefined;
5726
+ headerFontSize?: number | undefined;
5727
+ headerFontColor?: string | undefined;
5728
+ headerBackgroundColor?: string | undefined;
5729
+ hoverHeaderBackgroundColor?: string | undefined;
5730
+ selectedBorderColor?: string | undefined;
5731
+ } | undefined;
5678
5732
  line?: {
5679
5733
  backgroundColor?: string | undefined;
5680
5734
  label?: {
@@ -7134,8 +7188,30 @@ export declare class Builder implements VSeedBuilder {
7134
7188
  };
7135
7189
  customTheme: {
7136
7190
  config?: {
7137
- table?: Record<string, never> | undefined;
7138
- pivotTable?: Record<string, never> | undefined;
7191
+ table?: {
7192
+ borderColor?: string | undefined;
7193
+ bodyFontSize?: number | undefined;
7194
+ bodyFontColor?: string | undefined;
7195
+ bodyBackgroundColor?: string | undefined;
7196
+ hoverBodyBackgroundColor?: string | undefined;
7197
+ headerFontSize?: number | undefined;
7198
+ headerFontColor?: string | undefined;
7199
+ headerBackgroundColor?: string | undefined;
7200
+ hoverHeaderBackgroundColor?: string | undefined;
7201
+ selectedBorderColor?: string | undefined;
7202
+ } | undefined;
7203
+ pivotTable?: {
7204
+ borderColor?: string | undefined;
7205
+ bodyFontSize?: number | undefined;
7206
+ bodyFontColor?: string | undefined;
7207
+ bodyBackgroundColor?: string | undefined;
7208
+ hoverBodyBackgroundColor?: string | undefined;
7209
+ headerFontSize?: number | undefined;
7210
+ headerFontColor?: string | undefined;
7211
+ headerBackgroundColor?: string | undefined;
7212
+ hoverHeaderBackgroundColor?: string | undefined;
7213
+ selectedBorderColor?: string | undefined;
7214
+ } | undefined;
7139
7215
  line?: {
7140
7216
  backgroundColor?: string | undefined;
7141
7217
  label?: {
@@ -8713,24 +8789,15 @@ export declare class Builder implements VSeedBuilder {
8713
8789
  groupName: string;
8714
8790
  };
8715
8791
  }[];
8716
- dimensions: ({
8717
- id: string;
8718
- alias?: string | undefined;
8719
- location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
8720
- } | {
8792
+ dimensions: (import("../../types").DimensionGroup | {
8721
8793
  id: string;
8794
+ location: "dimension" | "rowDimension" | "columnDimension";
8722
8795
  alias?: string | undefined;
8723
- children?: ({
8724
- id: string;
8725
- alias?: string | undefined;
8726
- location?: "dimension" | "rowDimension" | "columnDimension" | undefined;
8727
- } | /*elided*/ any)[] | undefined;
8728
8796
  })[];
8729
- measures: ({
8797
+ measures: (import("src/types").MeasureGroup | {
8730
8798
  id: string;
8731
- alias?: string | undefined;
8732
- autoFormat?: boolean | undefined;
8733
- format?: {
8799
+ autoFormat: boolean;
8800
+ format: {
8734
8801
  type?: "number" | "percent" | "permille" | "scientific" | undefined;
8735
8802
  ratio?: number | undefined;
8736
8803
  symbol?: string | undefined;
@@ -8741,27 +8808,8 @@ export declare class Builder implements VSeedBuilder {
8741
8808
  significantDigits?: number | undefined;
8742
8809
  roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
8743
8810
  roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
8744
- } | undefined;
8745
- } | {
8746
- id: string;
8811
+ };
8747
8812
  alias?: string | undefined;
8748
- children?: ({
8749
- id: string;
8750
- alias?: string | undefined;
8751
- autoFormat?: boolean | undefined;
8752
- format?: {
8753
- type?: "number" | "percent" | "permille" | "scientific" | undefined;
8754
- ratio?: number | undefined;
8755
- symbol?: string | undefined;
8756
- thousandSeparator?: boolean | undefined;
8757
- prefix?: string | undefined;
8758
- suffix?: string | undefined;
8759
- fractionDigits?: number | undefined;
8760
- significantDigits?: number | undefined;
8761
- roundingPriority?: "morePrecision" | "lessPrecision" | undefined;
8762
- roundingMode?: "floor" | "ceil" | "expand" | "trunc" | "halfCeil" | "halfFloor" | "halfExpand" | "halfTrunc" | "halfEven" | undefined;
8763
- } | undefined;
8764
- } | /*elided*/ any)[] | undefined;
8765
8813
  })[];
8766
8814
  encoding: {
8767
8815
  x?: string[] | undefined;
@@ -8774,8 +8822,30 @@ export declare class Builder implements VSeedBuilder {
8774
8822
  size?: string[] | undefined;
8775
8823
  }[];
8776
8824
  config: {
8777
- table?: Record<string, never> | undefined;
8778
- pivotTable?: Record<string, never> | undefined;
8825
+ table?: {
8826
+ borderColor?: string | undefined;
8827
+ bodyFontSize?: number | undefined;
8828
+ bodyFontColor?: string | undefined;
8829
+ bodyBackgroundColor?: string | undefined;
8830
+ hoverBodyBackgroundColor?: string | undefined;
8831
+ headerFontSize?: number | undefined;
8832
+ headerFontColor?: string | undefined;
8833
+ headerBackgroundColor?: string | undefined;
8834
+ hoverHeaderBackgroundColor?: string | undefined;
8835
+ selectedBorderColor?: string | undefined;
8836
+ } | undefined;
8837
+ pivotTable?: {
8838
+ borderColor?: string | undefined;
8839
+ bodyFontSize?: number | undefined;
8840
+ bodyFontColor?: string | undefined;
8841
+ bodyBackgroundColor?: string | undefined;
8842
+ hoverBodyBackgroundColor?: string | undefined;
8843
+ headerFontSize?: number | undefined;
8844
+ headerFontColor?: string | undefined;
8845
+ headerBackgroundColor?: string | undefined;
8846
+ hoverHeaderBackgroundColor?: string | undefined;
8847
+ selectedBorderColor?: string | undefined;
8848
+ } | undefined;
8779
8849
  line?: {
8780
8850
  backgroundColor?: string | undefined;
8781
8851
  label?: {
@@ -10235,8 +10305,30 @@ export declare class Builder implements VSeedBuilder {
10235
10305
  };
10236
10306
  customTheme: {
10237
10307
  config?: {
10238
- table?: Record<string, never> | undefined;
10239
- pivotTable?: Record<string, never> | undefined;
10308
+ table?: {
10309
+ borderColor?: string | undefined;
10310
+ bodyFontSize?: number | undefined;
10311
+ bodyFontColor?: string | undefined;
10312
+ bodyBackgroundColor?: string | undefined;
10313
+ hoverBodyBackgroundColor?: string | undefined;
10314
+ headerFontSize?: number | undefined;
10315
+ headerFontColor?: string | undefined;
10316
+ headerBackgroundColor?: string | undefined;
10317
+ hoverHeaderBackgroundColor?: string | undefined;
10318
+ selectedBorderColor?: string | undefined;
10319
+ } | undefined;
10320
+ pivotTable?: {
10321
+ borderColor?: string | undefined;
10322
+ bodyFontSize?: number | undefined;
10323
+ bodyFontColor?: string | undefined;
10324
+ bodyBackgroundColor?: string | undefined;
10325
+ hoverBodyBackgroundColor?: string | undefined;
10326
+ headerFontSize?: number | undefined;
10327
+ headerFontColor?: string | undefined;
10328
+ headerBackgroundColor?: string | undefined;
10329
+ hoverHeaderBackgroundColor?: string | undefined;
10330
+ selectedBorderColor?: string | undefined;
10331
+ } | undefined;
10240
10332
  line?: {
10241
10333
  backgroundColor?: string | undefined;
10242
10334
  label?: {