@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.
- package/dist/builder/builder/builder.d.ts +210 -118
- package/dist/index.cjs +383 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +363 -24
- package/dist/index.js.map +1 -1
- package/dist/pipeline/spec/table/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/theme/bodyStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/cornerHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/frameStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/headerStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/index.d.ts +6 -0
- package/dist/pipeline/spec/table/pipes/theme/rowHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/scrollStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/selectionStyle.d.ts +2 -0
- package/dist/types/advancedVSeed.d.ts +55 -61
- package/dist/types/chartType/area/area.d.ts +8 -46
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +8 -46
- package/dist/types/chartType/bar/bar.d.ts +9 -46
- package/dist/types/chartType/barParallel/barParallel.d.ts +8 -46
- package/dist/types/chartType/barPercent/barPercent.d.ts +8 -46
- package/dist/types/chartType/column/column.d.ts +8 -46
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +8 -46
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +8 -46
- package/dist/types/chartType/donut/donut.d.ts +8 -46
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +2 -2
- package/dist/types/chartType/funnel/funnel.d.ts +8 -46
- package/dist/types/chartType/line/line.d.ts +8 -46
- package/dist/types/chartType/pie/pie.d.ts +8 -46
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +8 -7
- package/dist/types/chartType/rose/rose.d.ts +9 -46
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +10 -47
- package/dist/types/chartType/scatter/scatter.d.ts +8 -46
- package/dist/types/chartType/table/table.d.ts +6 -44
- package/dist/types/properties/config/config.d.ts +50 -2
- package/dist/types/properties/dimensions/dimensions.d.ts +20 -44
- package/dist/types/properties/measures/measures.d.ts +11 -87
- package/dist/types/properties/theme/customTheme.d.ts +48 -4
- package/dist/types/vseed.d.ts +101 -709
- package/dist/umd/index.js +703 -40
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -67,6 +67,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
67
67
|
barPercentAdvancedPipeline: ()=>barPercentAdvancedPipeline,
|
68
68
|
findAllDimensions: ()=>findAllDimensions,
|
69
69
|
findDimensionById: ()=>findDimensionById,
|
70
|
+
zPivotTableConfig: ()=>zPivotTableConfig,
|
70
71
|
zArea: ()=>zArea,
|
71
72
|
zColumnParallel: ()=>zColumnParallel,
|
72
73
|
zDimensions: ()=>zDimensions,
|
@@ -146,6 +147,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
146
147
|
zColumn: ()=>zColumn,
|
147
148
|
zCustomTheme: ()=>zCustomTheme,
|
148
149
|
zLineConfig: ()=>zLineConfig,
|
150
|
+
zTableConfig: ()=>zTableConfig,
|
149
151
|
zXBandAxis: ()=>zXBandAxis,
|
150
152
|
zColumnPercentConfig: ()=>zColumnPercentConfig,
|
151
153
|
findMeasureById: ()=>findMeasureById,
|
@@ -4768,7 +4770,54 @@ const initTable = (spec, context)=>{
|
|
4768
4770
|
heightMode: 'autoHeight',
|
4769
4771
|
autoWrapText: true,
|
4770
4772
|
columnResizeMode: 'all',
|
4771
|
-
showHeader: true
|
4773
|
+
showHeader: true,
|
4774
|
+
tooltip: {
|
4775
|
+
isShowOverflowTextTooltip: true
|
4776
|
+
},
|
4777
|
+
animationAppear: {
|
4778
|
+
duration: 300,
|
4779
|
+
delay: 250,
|
4780
|
+
type: 'one-by-one',
|
4781
|
+
direction: 'row'
|
4782
|
+
},
|
4783
|
+
theme: {
|
4784
|
+
underlayBackgroundColor: 'transparent'
|
4785
|
+
}
|
4786
|
+
};
|
4787
|
+
};
|
4788
|
+
const initPivotTable = (spec, context)=>{
|
4789
|
+
const { advancedVSeed } = context;
|
4790
|
+
const { dataset } = advancedVSeed;
|
4791
|
+
return {
|
4792
|
+
...spec,
|
4793
|
+
records: dataset,
|
4794
|
+
widthMode: 'standard',
|
4795
|
+
heightMode: 'autoHeight',
|
4796
|
+
autoWrapText: true,
|
4797
|
+
columnResizeMode: 'all',
|
4798
|
+
columnResizeType: 'column',
|
4799
|
+
showColumnHeader: true,
|
4800
|
+
showRowHeader: true,
|
4801
|
+
select: {
|
4802
|
+
highlightMode: 'cell',
|
4803
|
+
headerSelectMode: 'inline'
|
4804
|
+
},
|
4805
|
+
hover: {
|
4806
|
+
highlightMode: 'cross'
|
4807
|
+
},
|
4808
|
+
tooltip: {
|
4809
|
+
isShowOverflowTextTooltip: true
|
4810
|
+
},
|
4811
|
+
widthAdaptiveMode: 'all',
|
4812
|
+
animationAppear: {
|
4813
|
+
duration: 300,
|
4814
|
+
delay: 250,
|
4815
|
+
type: 'one-by-one',
|
4816
|
+
direction: 'row'
|
4817
|
+
},
|
4818
|
+
theme: {
|
4819
|
+
underlayBackgroundColor: 'transparent'
|
4820
|
+
}
|
4772
4821
|
};
|
4773
4822
|
};
|
4774
4823
|
const measureTreeToColumns = (spec, context)=>{
|
@@ -4777,7 +4826,13 @@ const measureTreeToColumns = (spec, context)=>{
|
|
4777
4826
|
const result = {
|
4778
4827
|
...spec
|
4779
4828
|
};
|
4780
|
-
const
|
4829
|
+
const eachNode = (node)=>{
|
4830
|
+
if ('children' in node) return {};
|
4831
|
+
return {
|
4832
|
+
width: 'auto'
|
4833
|
+
};
|
4834
|
+
};
|
4835
|
+
const columns = treeTreeToColumns(measures, eachNode);
|
4781
4836
|
return {
|
4782
4837
|
...result,
|
4783
4838
|
columns: [
|
@@ -4792,7 +4847,13 @@ const dimensionTreeToColumns = (spec, context)=>{
|
|
4792
4847
|
const result = {
|
4793
4848
|
...spec
|
4794
4849
|
};
|
4795
|
-
const
|
4850
|
+
const eachNode = (node)=>{
|
4851
|
+
if ('children' in node) return {};
|
4852
|
+
return {
|
4853
|
+
width: 'auto'
|
4854
|
+
};
|
4855
|
+
};
|
4856
|
+
const columns = treeTreeToColumns(dimensions, eachNode);
|
4796
4857
|
return {
|
4797
4858
|
...result,
|
4798
4859
|
columns: [
|
@@ -4801,39 +4862,33 @@ const dimensionTreeToColumns = (spec, context)=>{
|
|
4801
4862
|
]
|
4802
4863
|
};
|
4803
4864
|
};
|
4804
|
-
const treeTreeToColumns = (tree
|
4865
|
+
const treeTreeToColumns = (tree, callback)=>{
|
4805
4866
|
const result = tree.map((item)=>{
|
4806
|
-
|
4807
|
-
|
4808
|
-
|
4809
|
-
|
4810
|
-
|
4811
|
-
|
4812
|
-
|
4813
|
-
|
4814
|
-
|
4815
|
-
|
4816
|
-
|
4867
|
+
if ('children' in item && Array.isArray(item.children)) {
|
4868
|
+
const groupNode = item;
|
4869
|
+
const field = groupNode.id;
|
4870
|
+
const title = groupNode.alias ?? groupNode.id;
|
4871
|
+
const props = callback?.(groupNode) || {};
|
4872
|
+
return {
|
4873
|
+
field,
|
4874
|
+
title,
|
4875
|
+
columns: treeTreeToColumns(item.children, callback),
|
4876
|
+
...props
|
4877
|
+
};
|
4878
|
+
}
|
4879
|
+
{
|
4880
|
+
const field = item.id;
|
4881
|
+
const title = item.alias ?? item.id;
|
4882
|
+
const props = callback?.(item) || {};
|
4883
|
+
return {
|
4884
|
+
field,
|
4885
|
+
title,
|
4886
|
+
...props
|
4887
|
+
};
|
4888
|
+
}
|
4817
4889
|
});
|
4818
4890
|
return result || [];
|
4819
4891
|
};
|
4820
|
-
const tableSpecPipeline = [
|
4821
|
-
initTable,
|
4822
|
-
dimensionTreeToColumns,
|
4823
|
-
measureTreeToColumns
|
4824
|
-
];
|
4825
|
-
const initPivotTable = (spec, context)=>{
|
4826
|
-
const { advancedVSeed } = context;
|
4827
|
-
const { dataset } = advancedVSeed;
|
4828
|
-
return {
|
4829
|
-
...spec,
|
4830
|
-
records: dataset,
|
4831
|
-
widthMode: 'standard',
|
4832
|
-
heightMode: 'autoHeight',
|
4833
|
-
autoWrapText: true,
|
4834
|
-
columnResizeMode: 'all'
|
4835
|
-
};
|
4836
|
-
};
|
4837
4892
|
const pivotColumns = (spec, context)=>{
|
4838
4893
|
const { advancedVSeed } = context;
|
4839
4894
|
const dimensions = advancedVSeed.dimensions;
|
@@ -4866,6 +4921,7 @@ const pivotIndicators_pivotIndicators = (spec, context)=>{
|
|
4866
4921
|
return {
|
4867
4922
|
...spec,
|
4868
4923
|
indicatorsAsCol: true,
|
4924
|
+
indicatorTitle: intl.i18n`指标名称`,
|
4869
4925
|
indicators: measures.map((item)=>({
|
4870
4926
|
cellType: 'text',
|
4871
4927
|
indicatorKey: item.id,
|
@@ -4874,11 +4930,255 @@ const pivotIndicators_pivotIndicators = (spec, context)=>{
|
|
4874
4930
|
}))
|
4875
4931
|
};
|
4876
4932
|
};
|
4933
|
+
const external_d3_color_namespaceObject = require("d3-color");
|
4934
|
+
const bodyStyle = (spec, context)=>{
|
4935
|
+
const result = {
|
4936
|
+
...spec
|
4937
|
+
};
|
4938
|
+
const { advancedVSeed } = context;
|
4939
|
+
const { customTheme, chartType } = advancedVSeed;
|
4940
|
+
const themConfig = customTheme?.config?.[chartType];
|
4941
|
+
if (!result.theme || !themConfig) return result;
|
4942
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
4943
|
+
const backgroundColor = themConfig.bodyBackgroundColor || '#fff';
|
4944
|
+
const fontColor = themConfig.bodyFontColor || '#1B1F23';
|
4945
|
+
const fontSize = themConfig.bodyFontSize || 12;
|
4946
|
+
const hoverCellBgColor = themConfig.hoverBodyBackgroundColor || '#bedaff';
|
4947
|
+
const hoverInlineColor = (0, external_d3_color_namespaceObject.color)(hoverCellBgColor)?.copy({
|
4948
|
+
opacity: 0.1
|
4949
|
+
}).toString();
|
4950
|
+
result.theme.bodyStyle = {
|
4951
|
+
borderColor: borderColor,
|
4952
|
+
borderLineWidth: 1,
|
4953
|
+
padding: [
|
4954
|
+
8.6,
|
4955
|
+
12,
|
4956
|
+
8.6,
|
4957
|
+
12
|
4958
|
+
],
|
4959
|
+
textAlign: 'right',
|
4960
|
+
hover: {
|
4961
|
+
cellBgColor: hoverCellBgColor,
|
4962
|
+
inlineRowBgColor: hoverInlineColor,
|
4963
|
+
inlineColumnBgColor: hoverInlineColor
|
4964
|
+
},
|
4965
|
+
color: fontColor,
|
4966
|
+
fontSize: fontSize,
|
4967
|
+
fontStyle: 'normal',
|
4968
|
+
fontWeight: 'normal',
|
4969
|
+
fontVariant: 'normal',
|
4970
|
+
bgColor: backgroundColor,
|
4971
|
+
lineHeight: 1.5 * fontSize
|
4972
|
+
};
|
4973
|
+
return result;
|
4974
|
+
};
|
4975
|
+
const headerStyle = (spec, context)=>{
|
4976
|
+
const result = {
|
4977
|
+
...spec
|
4978
|
+
};
|
4979
|
+
const { advancedVSeed } = context;
|
4980
|
+
const { customTheme, chartType } = advancedVSeed;
|
4981
|
+
const themConfig = customTheme?.config?.[chartType];
|
4982
|
+
if (!result.theme || !themConfig) return result;
|
4983
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
4984
|
+
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
4985
|
+
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
4986
|
+
const fontSize = themConfig.headerFontSize || 12;
|
4987
|
+
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
4988
|
+
const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
|
4989
|
+
result.theme.headerStyle = {
|
4990
|
+
borderColor: borderColor,
|
4991
|
+
borderLineWidth: 1,
|
4992
|
+
padding: [
|
4993
|
+
8,
|
4994
|
+
12,
|
4995
|
+
8,
|
4996
|
+
12
|
4997
|
+
],
|
4998
|
+
textAlign: 'center',
|
4999
|
+
hover: {
|
5000
|
+
cellBgColor: (0, external_d3_color_namespaceObject.color)(hoverCellBgColor)?.copy({
|
5001
|
+
opacity: 1
|
5002
|
+
}).brighter(0.5).toString(),
|
5003
|
+
inlineRowBgColor: hoverInlineColor,
|
5004
|
+
inlineColumnBgColor: hoverInlineColor
|
5005
|
+
},
|
5006
|
+
frameStyle: {
|
5007
|
+
borderColor: [
|
5008
|
+
null,
|
5009
|
+
null,
|
5010
|
+
borderColor,
|
5011
|
+
null
|
5012
|
+
],
|
5013
|
+
borderLineWidth: 1
|
5014
|
+
},
|
5015
|
+
fontSize: fontSize,
|
5016
|
+
fontVariant: 'normal',
|
5017
|
+
fontStyle: 'normal',
|
5018
|
+
fontWeight: 'bold',
|
5019
|
+
color: fontColor,
|
5020
|
+
bgColor: backgroundColor,
|
5021
|
+
lineHeight: 1.5 * fontSize
|
5022
|
+
};
|
5023
|
+
return result;
|
5024
|
+
};
|
5025
|
+
const rowHeaderStyle = (spec, context)=>{
|
5026
|
+
const result = {
|
5027
|
+
...spec
|
5028
|
+
};
|
5029
|
+
const { advancedVSeed } = context;
|
5030
|
+
const { customTheme, chartType } = advancedVSeed;
|
5031
|
+
const themConfig = customTheme?.config?.[chartType];
|
5032
|
+
if (!result.theme || !themConfig) return result;
|
5033
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
5034
|
+
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
5035
|
+
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
5036
|
+
const fontSize = themConfig.headerFontSize || 12;
|
5037
|
+
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
5038
|
+
const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
|
5039
|
+
result.theme.rowHeaderStyle = {
|
5040
|
+
borderColor: borderColor,
|
5041
|
+
borderLineWidth: 1,
|
5042
|
+
padding: [
|
5043
|
+
8.6,
|
5044
|
+
12,
|
5045
|
+
8.6,
|
5046
|
+
12
|
5047
|
+
],
|
5048
|
+
textAlign: 'left',
|
5049
|
+
hover: {
|
5050
|
+
cellBgColor: (0, external_d3_color_namespaceObject.color)(hoverCellBgColor)?.copy({
|
5051
|
+
opacity: 1
|
5052
|
+
}).brighter(0.5).toString(),
|
5053
|
+
inlineRowBgColor: hoverInlineColor,
|
5054
|
+
inlineColumnBgColor: hoverInlineColor
|
5055
|
+
},
|
5056
|
+
frameStyle: {
|
5057
|
+
borderColor: [
|
5058
|
+
null,
|
5059
|
+
borderColor,
|
5060
|
+
null,
|
5061
|
+
null
|
5062
|
+
],
|
5063
|
+
borderLineWidth: 1
|
5064
|
+
},
|
5065
|
+
fontSize: fontSize,
|
5066
|
+
fontVariant: 'normal',
|
5067
|
+
fontStyle: 'normal',
|
5068
|
+
fontWeight: 'bold',
|
5069
|
+
color: fontColor,
|
5070
|
+
bgColor: backgroundColor,
|
5071
|
+
lineHeight: 1.5 * fontSize
|
5072
|
+
};
|
5073
|
+
return result;
|
5074
|
+
};
|
5075
|
+
const cornerHeaderStyle = (spec, context)=>{
|
5076
|
+
const result = {
|
5077
|
+
...spec
|
5078
|
+
};
|
5079
|
+
const { advancedVSeed } = context;
|
5080
|
+
const { customTheme, chartType } = advancedVSeed;
|
5081
|
+
const themConfig = customTheme?.config?.[chartType];
|
5082
|
+
if (!result.theme || !themConfig) return result;
|
5083
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
5084
|
+
const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
|
5085
|
+
const fontColor = themConfig.headerFontColor || '#1B1F23';
|
5086
|
+
const fontSize = themConfig.headerFontSize || 12;
|
5087
|
+
const hoverCellBgColor = themConfig.hoverHeaderBackgroundColor || '#bedaff';
|
5088
|
+
const hoverInlineColor = themConfig.hoverHeaderBackgroundColor;
|
5089
|
+
result.theme.cornerHeaderStyle = {
|
5090
|
+
borderColor: [
|
5091
|
+
borderColor,
|
5092
|
+
borderColor
|
5093
|
+
],
|
5094
|
+
borderLineWidth: 1,
|
5095
|
+
padding: [
|
5096
|
+
8,
|
5097
|
+
12,
|
5098
|
+
8,
|
5099
|
+
12
|
5100
|
+
],
|
5101
|
+
textAlign: 'left',
|
5102
|
+
hover: {
|
5103
|
+
cellBgColor: (0, external_d3_color_namespaceObject.color)(hoverCellBgColor)?.copy({
|
5104
|
+
opacity: 1
|
5105
|
+
}).brighter(0.5).toString(),
|
5106
|
+
inlineRowBgColor: hoverInlineColor,
|
5107
|
+
inlineColumnBgColor: hoverInlineColor
|
5108
|
+
},
|
5109
|
+
frameStyle: {
|
5110
|
+
borderColor: [
|
5111
|
+
null,
|
5112
|
+
borderColor,
|
5113
|
+
borderColor,
|
5114
|
+
null
|
5115
|
+
],
|
5116
|
+
borderLineWidth: 1
|
5117
|
+
},
|
5118
|
+
fontSize: fontSize,
|
5119
|
+
fontVariant: 'normal',
|
5120
|
+
fontStyle: 'normal',
|
5121
|
+
fontWeight: 'bold',
|
5122
|
+
color: fontColor,
|
5123
|
+
bgColor: backgroundColor,
|
5124
|
+
lineHeight: 1.5 * fontSize
|
5125
|
+
};
|
5126
|
+
return result;
|
5127
|
+
};
|
5128
|
+
const frameStyle = (spec, context)=>{
|
5129
|
+
const result = {
|
5130
|
+
...spec
|
5131
|
+
};
|
5132
|
+
const { advancedVSeed } = context;
|
5133
|
+
const { customTheme, chartType } = advancedVSeed;
|
5134
|
+
const themConfig = customTheme?.config?.[chartType];
|
5135
|
+
if (!result.theme || !themConfig) return result;
|
5136
|
+
const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
|
5137
|
+
result.theme.frameStyle = {
|
5138
|
+
borderColor,
|
5139
|
+
borderLineWidth: 0,
|
5140
|
+
cornerRadius: 0
|
5141
|
+
};
|
5142
|
+
return result;
|
5143
|
+
};
|
5144
|
+
const selectionStyle = (spec, context)=>{
|
5145
|
+
const result = {
|
5146
|
+
...spec
|
5147
|
+
};
|
5148
|
+
const { advancedVSeed } = context;
|
5149
|
+
const { customTheme, chartType } = advancedVSeed;
|
5150
|
+
const themConfig = customTheme?.config?.[chartType];
|
5151
|
+
if (!result.theme || !themConfig) return result;
|
5152
|
+
const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
|
5153
|
+
result.theme.selectionStyle = {
|
5154
|
+
cellBorderColor: borderColor,
|
5155
|
+
cellBorderLineWidth: 2,
|
5156
|
+
cellBgColor: (0, external_d3_color_namespaceObject.color)(borderColor)?.copy({
|
5157
|
+
opacity: 0.15
|
5158
|
+
}).toString()
|
5159
|
+
};
|
5160
|
+
return result;
|
5161
|
+
};
|
5162
|
+
const tableSpecPipeline = [
|
5163
|
+
initTable,
|
5164
|
+
dimensionTreeToColumns,
|
5165
|
+
measureTreeToColumns,
|
5166
|
+
bodyStyle,
|
5167
|
+
headerStyle,
|
5168
|
+
frameStyle,
|
5169
|
+
selectionStyle
|
5170
|
+
];
|
4877
5171
|
const pivotTableSpecPipeline = [
|
4878
5172
|
initPivotTable,
|
4879
5173
|
pivotColumns,
|
4880
5174
|
pivotRows,
|
4881
|
-
pivotIndicators_pivotIndicators
|
5175
|
+
pivotIndicators_pivotIndicators,
|
5176
|
+
bodyStyle,
|
5177
|
+
headerStyle,
|
5178
|
+
rowHeaderStyle,
|
5179
|
+
cornerHeaderStyle,
|
5180
|
+
frameStyle,
|
5181
|
+
selectionStyle
|
4882
5182
|
];
|
4883
5183
|
const buildAdvanced = (builder)=>{
|
4884
5184
|
const { chartType } = builder.vseed;
|
@@ -5176,8 +5476,22 @@ const lightTheme = ()=>{
|
|
5176
5476
|
labelFontWeight: 400
|
5177
5477
|
}
|
5178
5478
|
};
|
5479
|
+
const tableConfig = {
|
5480
|
+
borderColor: '#e3e5eb',
|
5481
|
+
bodyFontSize: 12,
|
5482
|
+
bodyFontColor: '#141414',
|
5483
|
+
bodyBackgroundColor: 'transparent',
|
5484
|
+
headerFontSize: 12,
|
5485
|
+
headerFontColor: '#21252c',
|
5486
|
+
headerBackgroundColor: '#f6f7f9',
|
5487
|
+
hoverBodyBackgroundColor: '#bedaff',
|
5488
|
+
hoverHeaderBackgroundColor: '#D9DDE488',
|
5489
|
+
selectedBorderColor: '#4080ff'
|
5490
|
+
};
|
5179
5491
|
return {
|
5180
5492
|
config: {
|
5493
|
+
table: tableConfig,
|
5494
|
+
pivotTable: tableConfig,
|
5181
5495
|
line: {
|
5182
5496
|
...baseConfig,
|
5183
5497
|
xAxis: bandAxis,
|
@@ -5455,8 +5769,22 @@ const darkTheme = ()=>{
|
|
5455
5769
|
labelFontWeight: 400
|
5456
5770
|
}
|
5457
5771
|
};
|
5772
|
+
const tableConfig = {
|
5773
|
+
borderColor: '#4b4e53',
|
5774
|
+
bodyFontSize: 12,
|
5775
|
+
bodyFontColor: '#fdfdfd',
|
5776
|
+
bodyBackgroundColor: 'transparent',
|
5777
|
+
headerFontSize: 12,
|
5778
|
+
headerFontColor: '#fdfdfd',
|
5779
|
+
headerBackgroundColor: '#36393e',
|
5780
|
+
hoverBodyBackgroundColor: '#4284ff66',
|
5781
|
+
hoverHeaderBackgroundColor: '#5f5f5f88',
|
5782
|
+
selectedBorderColor: '#3073F2'
|
5783
|
+
};
|
5458
5784
|
return {
|
5459
5785
|
config: {
|
5786
|
+
table: tableConfig,
|
5787
|
+
pivotTable: tableConfig,
|
5460
5788
|
line: {
|
5461
5789
|
...baseConfig,
|
5462
5790
|
xAxis: bandAxis,
|
@@ -5661,7 +5989,7 @@ const zDimension = external_zod_namespaceObject.z.object({
|
|
5661
5989
|
'dimension',
|
5662
5990
|
'rowDimension',
|
5663
5991
|
'columnDimension'
|
5664
|
-
]).default('dimension')
|
5992
|
+
]).default('dimension')
|
5665
5993
|
});
|
5666
5994
|
const zDimensionGroup = external_zod_namespaceObject.z.object({
|
5667
5995
|
id: external_zod_namespaceObject.z.string(),
|
@@ -5705,8 +6033,8 @@ const zNumFormat = external_zod_namespaceObject.z.object({
|
|
5705
6033
|
const zMeasure = external_zod_namespaceObject.z.object({
|
5706
6034
|
id: external_zod_namespaceObject.z.string(),
|
5707
6035
|
alias: external_zod_namespaceObject.z.string().optional(),
|
5708
|
-
autoFormat: external_zod_namespaceObject.z.boolean().default(true)
|
5709
|
-
format: zNumFormat["default"]({})
|
6036
|
+
autoFormat: external_zod_namespaceObject.z.boolean().default(true),
|
6037
|
+
format: zNumFormat["default"]({})
|
5710
6038
|
});
|
5711
6039
|
const zMeasureGroup = external_zod_namespaceObject.z.object({
|
5712
6040
|
id: external_zod_namespaceObject.z.string(),
|
@@ -5914,6 +6242,19 @@ const zLegend = external_zod_namespaceObject.z.object({
|
|
5914
6242
|
const zTooltip = external_zod_namespaceObject.z.object({
|
5915
6243
|
enable: external_zod_namespaceObject.z.boolean().default(true).optional()
|
5916
6244
|
});
|
6245
|
+
const zTableConfig = external_zod_namespaceObject.z.object({
|
6246
|
+
borderColor: external_zod_namespaceObject.z.string().optional(),
|
6247
|
+
bodyFontSize: external_zod_namespaceObject.z.number().optional(),
|
6248
|
+
bodyFontColor: external_zod_namespaceObject.z.string().optional(),
|
6249
|
+
bodyBackgroundColor: external_zod_namespaceObject.z.string().optional(),
|
6250
|
+
hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().optional(),
|
6251
|
+
headerFontSize: external_zod_namespaceObject.z.number().optional(),
|
6252
|
+
headerFontColor: external_zod_namespaceObject.z.string().optional(),
|
6253
|
+
headerBackgroundColor: external_zod_namespaceObject.z.string().optional(),
|
6254
|
+
hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().optional(),
|
6255
|
+
selectedBorderColor: external_zod_namespaceObject.z.string().optional()
|
6256
|
+
});
|
6257
|
+
const zPivotTableConfig = zTableConfig;
|
5917
6258
|
const zLineConfig = external_zod_namespaceObject.z.object({
|
5918
6259
|
backgroundColor: zBackgroundColor.optional(),
|
5919
6260
|
label: zLabel.optional(),
|
@@ -6002,8 +6343,8 @@ const zFunnelConfig = external_zod_namespaceObject.z.object({
|
|
6002
6343
|
legend: zLegend.optional()
|
6003
6344
|
});
|
6004
6345
|
const zConfig = external_zod_namespaceObject.z.object({
|
6005
|
-
table:
|
6006
|
-
pivotTable:
|
6346
|
+
table: zTableConfig.optional(),
|
6347
|
+
pivotTable: zPivotTableConfig.optional(),
|
6007
6348
|
line: zLineConfig.optional(),
|
6008
6349
|
column: zColumnConfig.optional(),
|
6009
6350
|
columnParallel: zColumnParallelConfig.optional(),
|
@@ -6867,6 +7208,7 @@ exports.zNumFormat = __webpack_exports__.zNumFormat;
|
|
6867
7208
|
exports.zPie = __webpack_exports__.zPie;
|
6868
7209
|
exports.zPieConfig = __webpack_exports__.zPieConfig;
|
6869
7210
|
exports.zPivotTable = __webpack_exports__.zPivotTable;
|
7211
|
+
exports.zPivotTableConfig = __webpack_exports__.zPivotTableConfig;
|
6870
7212
|
exports.zPointStyle = __webpack_exports__.zPointStyle;
|
6871
7213
|
exports.zRose = __webpack_exports__.zRose;
|
6872
7214
|
exports.zRoseConfig = __webpack_exports__.zRoseConfig;
|
@@ -6876,6 +7218,7 @@ exports.zScatter = __webpack_exports__.zScatter;
|
|
6876
7218
|
exports.zScatterConfig = __webpack_exports__.zScatterConfig;
|
6877
7219
|
exports.zStackCornerRadius = __webpack_exports__.zStackCornerRadius;
|
6878
7220
|
exports.zTable = __webpack_exports__.zTable;
|
7221
|
+
exports.zTableConfig = __webpack_exports__.zTableConfig;
|
6879
7222
|
exports.zTheme = __webpack_exports__.zTheme;
|
6880
7223
|
exports.zTooltip = __webpack_exports__.zTooltip;
|
6881
7224
|
exports.zUnfoldInfo = __webpack_exports__.zUnfoldInfo;
|
@@ -7036,6 +7379,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7036
7379
|
"zPie",
|
7037
7380
|
"zPieConfig",
|
7038
7381
|
"zPivotTable",
|
7382
|
+
"zPivotTableConfig",
|
7039
7383
|
"zPointStyle",
|
7040
7384
|
"zRose",
|
7041
7385
|
"zRoseConfig",
|
@@ -7045,6 +7389,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
7045
7389
|
"zScatterConfig",
|
7046
7390
|
"zStackCornerRadius",
|
7047
7391
|
"zTable",
|
7392
|
+
"zTableConfig",
|
7048
7393
|
"zTheme",
|
7049
7394
|
"zTooltip",
|
7050
7395
|
"zUnfoldInfo",
|