@visactor/vseed 0.1.34 → 0.1.36

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 (115) hide show
  1. package/dist/cjs/index.cjs +2 -2
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +31 -1069
  4. package/dist/esm/pipeline/advanced/chart/pipes/config/column.d.ts +2 -0
  5. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js +31 -0
  6. package/dist/esm/pipeline/advanced/chart/pipes/config/column.js.map +1 -0
  7. package/dist/esm/pipeline/advanced/chart/pipes/config/index.d.ts +19 -3
  8. package/dist/esm/pipeline/advanced/chart/pipes/config/index.js +21 -3
  9. package/dist/esm/pipeline/advanced/chart/pipes/config/index.js.map +1 -0
  10. package/dist/esm/pipeline/advanced/chart/pipes/config/line.d.ts +2 -0
  11. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js +30 -0
  12. package/dist/esm/pipeline/advanced/chart/pipes/config/line.js.map +1 -0
  13. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.d.ts +2 -0
  14. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js +27 -0
  15. package/dist/esm/pipeline/advanced/chart/pipes/config/pie.js.map +1 -0
  16. package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js +1 -3
  17. package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js.map +1 -1
  18. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +2 -2
  19. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
  20. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +5 -4
  21. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  22. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js +26 -11
  23. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js.map +1 -1
  24. package/dist/esm/pipeline/spec/chart/pipes/legend/heatmapColorLegend.d.ts +2 -0
  25. package/dist/esm/pipeline/spec/chart/pipes/legend/heatmapColorLegend.js +19 -0
  26. package/dist/esm/pipeline/spec/chart/pipes/legend/heatmapColorLegend.js.map +1 -0
  27. package/dist/esm/pipeline/spec/chart/pipes/legend/index.d.ts +1 -0
  28. package/dist/esm/pipeline/spec/chart/pipes/legend/index.js +2 -1
  29. package/dist/esm/pipeline/spec/chart/pipes/markStyle/barStyle.js +6 -7
  30. package/dist/esm/pipeline/spec/chart/pipes/markStyle/barStyle.js.map +1 -1
  31. package/dist/esm/pipeline/spec/chart/pipes/markStyle/cellStyle.js +8 -3
  32. package/dist/esm/pipeline/spec/chart/pipes/markStyle/cellStyle.js.map +1 -1
  33. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js +0 -1
  34. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js.map +1 -1
  35. package/dist/esm/pipeline/utils/constant.d.ts +1 -0
  36. package/dist/esm/pipeline/utils/constant.js +2 -1
  37. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  38. package/dist/esm/theme/common/heatmapCell.d.ts +3 -0
  39. package/dist/esm/theme/common/heatmapCell.js +9 -0
  40. package/dist/esm/theme/common/heatmapCell.js.map +1 -0
  41. package/dist/esm/theme/common/table.d.ts +47 -5
  42. package/dist/esm/theme/common/table.js.map +1 -1
  43. package/dist/esm/theme/dark/dark.js +2 -0
  44. package/dist/esm/theme/dark/dark.js.map +1 -1
  45. package/dist/esm/theme/light/light.js +2 -0
  46. package/dist/esm/theme/light/light.js.map +1 -1
  47. package/dist/esm/types/advancedVSeed.d.ts +8 -406
  48. package/dist/esm/types/properties/config/annotation/zAnnotaion.d.ts +1 -1
  49. package/dist/esm/types/properties/config/annotation/zAnnotaion.js +2 -2
  50. package/dist/esm/types/properties/config/annotation/zAnnotaion.js.map +1 -1
  51. package/dist/esm/types/properties/config/area.d.ts +647 -0
  52. package/dist/esm/types/properties/config/area.js +26 -0
  53. package/dist/esm/types/properties/config/area.js.map +1 -0
  54. package/dist/esm/types/properties/config/axes/bandAxis.d.ts +149 -1
  55. package/dist/esm/types/properties/config/axes/linearAxis.d.ts +151 -1
  56. package/dist/esm/types/properties/config/bar.d.ts +970 -0
  57. package/dist/esm/types/properties/config/bar.js +29 -0
  58. package/dist/esm/types/properties/config/bar.js.map +1 -0
  59. package/dist/esm/types/properties/config/column.d.ts +970 -0
  60. package/dist/esm/types/properties/config/column.js +29 -0
  61. package/dist/esm/types/properties/config/column.js.map +1 -0
  62. package/dist/esm/types/properties/config/config.d.ts +4 -5133
  63. package/dist/esm/types/properties/config/config.js +13 -151
  64. package/dist/esm/types/properties/config/config.js.map +1 -1
  65. package/dist/esm/types/properties/config/dualAxis.d.ts +566 -0
  66. package/dist/esm/types/properties/config/dualAxis.js +29 -0
  67. package/dist/esm/types/properties/config/dualAxis.js.map +1 -0
  68. package/dist/esm/types/properties/config/funnel.d.ts +124 -0
  69. package/dist/esm/types/properties/config/funnel.js +20 -0
  70. package/dist/esm/types/properties/config/funnel.js.map +1 -0
  71. package/dist/esm/types/properties/config/funnelTransform/index.d.ts +1 -1
  72. package/dist/esm/types/properties/config/heatmap/heatmap.d.ts +17 -0
  73. package/dist/esm/types/properties/config/heatmap/heatmap.js +0 -0
  74. package/dist/esm/types/properties/config/heatmap/index.d.ts +2 -0
  75. package/dist/esm/types/properties/config/heatmap/index.js +1 -0
  76. package/dist/esm/types/properties/config/heatmap/zHeatmap.d.ts +6 -0
  77. package/dist/esm/types/properties/config/heatmap/zHeatmap.js +9 -0
  78. package/dist/esm/types/properties/config/heatmap/zHeatmap.js.map +1 -0
  79. package/dist/esm/types/properties/config/heatmap.d.ts +125 -0
  80. package/dist/esm/types/properties/config/heatmap.js +20 -0
  81. package/dist/esm/types/properties/config/heatmap.js.map +1 -0
  82. package/dist/esm/types/properties/config/index.d.ts +17 -2
  83. package/dist/esm/types/properties/config/index.js +17 -2
  84. package/dist/esm/types/properties/config/line.d.ts +324 -0
  85. package/dist/esm/types/properties/config/line.js +25 -0
  86. package/dist/esm/types/properties/config/line.js.map +1 -0
  87. package/dist/esm/types/properties/config/pie.d.ts +364 -0
  88. package/dist/esm/types/properties/config/pie.js +21 -0
  89. package/dist/esm/types/properties/config/pie.js.map +1 -0
  90. package/dist/esm/types/properties/config/pivotGrid/index.d.ts +2 -0
  91. package/dist/esm/types/properties/config/pivotGrid/index.js +2 -0
  92. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +10 -0
  93. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +12 -0
  94. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -0
  95. package/dist/esm/types/properties/config/pivotTable.d.ts +18 -0
  96. package/dist/esm/types/properties/config/pivotTable.js +5 -0
  97. package/dist/esm/types/properties/config/pivotTable.js.map +1 -0
  98. package/dist/esm/types/properties/config/rose.d.ts +241 -0
  99. package/dist/esm/types/properties/config/rose.js +19 -0
  100. package/dist/esm/types/properties/config/rose.js.map +1 -0
  101. package/dist/esm/types/properties/config/scatter.d.ts +357 -0
  102. package/dist/esm/types/properties/config/scatter.js +27 -0
  103. package/dist/esm/types/properties/config/scatter.js.map +1 -0
  104. package/dist/esm/types/properties/config/table.d.ts +18 -0
  105. package/dist/esm/types/properties/config/table.js +21 -0
  106. package/dist/esm/types/properties/config/table.js.map +1 -0
  107. package/dist/esm/types/properties/theme/customTheme.d.ts +8 -406
  108. package/dist/umd/index.js +209 -147
  109. package/dist/umd/index.js.map +1 -1
  110. package/package.json +3 -3
  111. package/dist/esm/pipeline/advanced/chart/pipes/config/config.d.ts +0 -17
  112. package/dist/esm/pipeline/advanced/chart/pipes/config/config.js +0 -89
  113. package/dist/esm/pipeline/advanced/chart/pipes/config/config.js.map +0 -1
  114. /package/dist/esm/types/properties/config/funnelTransform/{funntlTransform.d.ts → funnelTransform.d.ts} +0 -0
  115. /package/dist/esm/types/properties/config/funnelTransform/{funntlTransform.js → funnelTransform.js} +0 -0
@@ -1,154 +1,16 @@
1
1
  import { z } from "zod";
2
- import { zXBandAxis, zXLinearAxis, zYBandAxis, zYLinearAxis } from "./axes/index.js";
3
- import { zCrosshairLine, zCrosshairRect } from "./crosshair/index.js";
4
- import { zStackCornerRadius } from "./stackCornerRadius/stackCornerRadius.js";
5
- import { zBackgroundColor } from "./backgroundColor/backgroundColor.js";
6
- import { zColor } from "./color/color.js";
7
- import { zLabel, zPieLabel } from "./label/index.js";
8
- import { zLegend } from "./legend/legend.js";
9
- import { zTooltip } from "./tooltip/tooltip.js";
10
- import { zDualChartType } from "../chartType/index.js";
11
- import { zAnnotaionConfig } from "./annotation/zAnnotaion.js";
12
- import { zFunnelTransform } from "./funnelTransform/zFunnelTransform.js";
13
- const zTableConfig = z.object({
14
- backgroundColor: zBackgroundColor.nullish(),
15
- borderColor: z.string().nullish(),
16
- bodyFontSize: z.number().nullish(),
17
- bodyFontColor: z.string().nullish(),
18
- bodyBackgroundColor: z.string().nullish(),
19
- hoverBodyBackgroundColor: z.string().nullish(),
20
- hoverBodyInlineBackgroundColor: z.string().nullish(),
21
- headerFontSize: z.number().nullish(),
22
- headerFontColor: z.string().nullish(),
23
- headerBackgroundColor: z.string().nullish(),
24
- hoverHeaderBackgroundColor: z.string().nullish(),
25
- hoverHeaderInlineBackgroundColor: z.string().nullish(),
26
- selectedBorderColor: z.string().nullish(),
27
- selectedBackgroundColor: z.string().nullish()
28
- });
29
- const zPivotTableConfig = zTableConfig;
30
- const zPivotChartGridConfig = z.object({
31
- borderColor: z.string().nullish(),
32
- bodyFontColor: z.string().nullish(),
33
- headerFontColor: z.string().nullish(),
34
- headerBackgroundColor: z.string().nullish(),
35
- hoverHeaderBackgroundColor: z.string().nullish(),
36
- hoverHeaderInlineBackgroundColor: z.string().nullish()
37
- });
38
- const zLineConfig = z.object({
39
- backgroundColor: zBackgroundColor.nullish(),
40
- label: zLabel.nullish(),
41
- color: zColor.nullish(),
42
- tooltip: zTooltip.nullish(),
43
- legend: zLegend.nullish(),
44
- xAxis: zXBandAxis.nullish(),
45
- yAxis: zYLinearAxis.nullish(),
46
- crosshairLine: zCrosshairLine.nullish(),
47
- pivotGrid: zPivotChartGridConfig.nullish(),
48
- annotation: zAnnotaionConfig.nullish()
49
- });
50
- const zColumnConfig = z.object({
51
- backgroundColor: zBackgroundColor.nullish(),
52
- label: zLabel.nullish(),
53
- color: zColor.nullish(),
54
- tooltip: zTooltip.nullish(),
55
- legend: zLegend.nullish(),
56
- xAxis: zXBandAxis.nullish(),
57
- yAxis: zYLinearAxis.nullish(),
58
- crosshairRect: zCrosshairRect.nullish(),
59
- stackCornerRadius: zStackCornerRadius.nullish(),
60
- pivotGrid: zPivotChartGridConfig.nullish(),
61
- annotation: zAnnotaionConfig.nullish()
62
- });
63
- const zColumnParallelConfig = zColumnConfig;
64
- const zColumnPercentConfig = zColumnConfig;
65
- const zBarConfig = z.object({
66
- backgroundColor: zBackgroundColor.nullish(),
67
- label: zLabel.nullish(),
68
- color: zColor.nullish(),
69
- tooltip: zTooltip.nullish(),
70
- legend: zLegend.nullish(),
71
- xAxis: zXLinearAxis.nullish(),
72
- yAxis: zYBandAxis.nullish(),
73
- crosshairRect: zCrosshairRect.nullish(),
74
- stackCornerRadius: zStackCornerRadius.nullish(),
75
- pivotGrid: zPivotChartGridConfig.nullish(),
76
- annotation: zAnnotaionConfig.nullish()
77
- });
78
- const zBarParallelConfig = zBarConfig;
79
- const zBarPercentConfig = zBarConfig;
80
- const zAreaConfig = z.object({
81
- backgroundColor: zBackgroundColor.nullish(),
82
- label: zLabel.nullish(),
83
- color: zColor.nullish(),
84
- tooltip: zTooltip.nullish(),
85
- legend: zLegend.nullish(),
86
- xAxis: zXBandAxis.nullish(),
87
- yAxis: zYLinearAxis.nullish(),
88
- crosshairLine: zCrosshairLine.nullish(),
89
- pivotGrid: zPivotChartGridConfig.nullish(),
90
- annotation: zAnnotaionConfig.nullish()
91
- });
92
- const zAreaPercentConfig = zAreaConfig;
93
- const zDualAxisConfig = z.object({
94
- backgroundColor: zBackgroundColor.nullish(),
95
- label: zLabel.nullish(),
96
- color: zColor.nullish(),
97
- tooltip: zTooltip.nullish(),
98
- legend: zLegend.nullish(),
99
- dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),
100
- alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),
101
- primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
102
- secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
103
- xAxis: zXBandAxis.nullish(),
104
- crosshairRect: zCrosshairRect.nullish(),
105
- pivotGrid: zPivotChartGridConfig.nullish(),
106
- annotation: zAnnotaionConfig.nullish()
107
- });
108
- const zScatterConfig = z.object({
109
- backgroundColor: zBackgroundColor.nullish(),
110
- label: zLabel.nullish(),
111
- color: zColor.nullish(),
112
- tooltip: zTooltip.nullish(),
113
- legend: zLegend.nullish(),
114
- xAxis: zXLinearAxis.nullish(),
115
- yAxis: zYLinearAxis.nullish(),
116
- crosshairLine: zCrosshairLine.nullish(),
117
- size: z.number().or(z.array(z.number())).nullish(),
118
- sizeRange: z.number().or(z.array(z.number())).nullish(),
119
- pivotGrid: zPivotChartGridConfig.nullish(),
120
- annotation: zAnnotaionConfig.nullish()
121
- });
122
- const zRoseConfig = z.object({
123
- backgroundColor: zBackgroundColor.nullish(),
124
- label: zPieLabel.nullish(),
125
- color: zColor.nullish(),
126
- tooltip: zTooltip.nullish(),
127
- legend: zLegend.nullish(),
128
- pivotGrid: zPivotChartGridConfig.nullish()
129
- });
130
- const zRoseParallelConfig = zRoseConfig;
131
- const zPieConfig = z.object({
132
- backgroundColor: zBackgroundColor.nullish(),
133
- label: zPieLabel.nullish(),
134
- color: zColor.nullish(),
135
- tooltip: zTooltip.nullish(),
136
- legend: zLegend.nullish(),
137
- pivotGrid: zPivotChartGridConfig.nullish(),
138
- cornerRadius: z.number().nullish()
139
- });
140
- const zDonutConfig = zPieConfig;
141
- const zRadarConfig = zPieConfig;
142
- const zFunnelConfig = z.object({
143
- backgroundColor: zBackgroundColor.nullish(),
144
- label: zLabel.nullish(),
145
- color: zColor.nullish(),
146
- tooltip: zTooltip.nullish(),
147
- legend: zLegend.nullish(),
148
- pivotGrid: zPivotChartGridConfig.nullish(),
149
- transform: zFunnelTransform.nullish()
150
- });
151
- const zHeatmapConfig = zAreaConfig;
2
+ import { zTableConfig } from "./table.js";
3
+ import { zLineConfig } from "./line.js";
4
+ import { zColumnConfig, zColumnParallelConfig, zColumnPercentConfig } from "./column.js";
5
+ import { zBarConfig, zBarParallelConfig, zBarPercentConfig } from "./bar.js";
6
+ import { zAreaConfig, zAreaPercentConfig } from "./area.js";
7
+ import { zScatterConfig } from "./scatter.js";
8
+ import { zDualAxisConfig } from "./dualAxis.js";
9
+ import { zDonutConfig, zPieConfig, zRadarConfig } from "./pie.js";
10
+ import { zRoseConfig, zRoseParallelConfig } from "./rose.js";
11
+ import { zFunnelConfig } from "./funnel.js";
12
+ import { zHeatmapConfig } from "./heatmap.js";
13
+ import { zPivotTableConfig } from "./pivotTable.js";
152
14
  const zConfig = z.object({
153
15
  table: zTableConfig.nullish(),
154
16
  pivotTable: zPivotTableConfig.nullish(),
@@ -171,6 +33,6 @@ const zConfig = z.object({
171
33
  funnel: zFunnelConfig.nullish(),
172
34
  heatmap: zHeatmapConfig.nullish()
173
35
  });
174
- export { zAreaConfig, zAreaPercentConfig, zBarConfig, zBarParallelConfig, zBarPercentConfig, zColumnConfig, zColumnParallelConfig, zColumnPercentConfig, zConfig, zDonutConfig, zDualAxisConfig, zFunnelConfig, zHeatmapConfig, zLineConfig, zPieConfig, zPivotChartGridConfig, zPivotTableConfig, zRadarConfig, zRoseConfig, zRoseParallelConfig, zScatterConfig, zTableConfig };
36
+ export { zConfig };
175
37
 
176
38
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types/properties/config/config.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/config.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zXBandAxis, zYBandAxis, zXLinearAxis, zYLinearAxis } from './axes'\nimport { zCrosshairLine, zCrosshairRect } from './crosshair'\nimport { zStackCornerRadius } from './stackCornerRadius/stackCornerRadius'\nimport { zBackgroundColor } from './backgroundColor/backgroundColor'\nimport { zColor } from './color/color'\nimport { zLabel, zPieLabel } from './label'\nimport { zLegend } from './legend/legend'\nimport { zTooltip } from './tooltip/tooltip'\nimport { zDualChartType } from '../chartType'\nimport { zAnnotaionConfig } from './annotation/zAnnotaion'\nimport { zFunnelTransform } from './funnelTransform/zFunnelTransform'\n\n/**\n * zConfig by 图表类型\n */\nexport const zTableConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n\n // Border\n borderColor: z.string().nullish(),\n\n // Body\n bodyFontSize: z.number().nullish(),\n bodyFontColor: z.string().nullish(),\n bodyBackgroundColor: z.string().nullish(),\n // Body interaction\n hoverBodyBackgroundColor: z.string().nullish(),\n hoverBodyInlineBackgroundColor: z.string().nullish(),\n\n // Header\n headerFontSize: z.number().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n // Header interaction\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n\n // Interaction\n selectedBorderColor: z.string().nullish(),\n selectedBackgroundColor: z.string().nullish(),\n})\nexport const zPivotTableConfig = zTableConfig\n\nexport const zPivotChartGridConfig = z.object({\n borderColor: z.string().nullish(),\n bodyFontColor: z.string().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n})\n\nexport const zLineConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zColumnConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zColumnParallelConfig = zColumnConfig\nexport const zColumnPercentConfig = zColumnConfig\nexport const zBarConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n stackCornerRadius: zStackCornerRadius.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zBarParallelConfig = zBarConfig\nexport const zBarPercentConfig = zBarConfig\nexport const zAreaConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zAreaPercentConfig = zAreaConfig\n\nexport const zDualAxisConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),\n alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),\n primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),\n\n xAxis: zXBandAxis.nullish(),\n crosshairRect: zCrosshairRect.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\nexport const zScatterConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n annotation: zAnnotaionConfig.nullish(),\n})\n\n// polar\nexport const zRoseConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zPieLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n})\nexport const zRoseParallelConfig = zRoseConfig\nexport const zPieConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zPieLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n pivotGrid: zPivotChartGridConfig.nullish(),\n cornerRadius: z.number().nullish(),\n})\nexport const zDonutConfig = zPieConfig\nexport const zRadarConfig = zPieConfig\n// other\n\nexport const zFunnelConfig = z.object({\n backgroundColor: zBackgroundColor.nullish(),\n label: zLabel.nullish(),\n color: zColor.nullish(),\n tooltip: zTooltip.nullish(),\n legend: zLegend.nullish(),\n\n pivotGrid: zPivotChartGridConfig.nullish(),\n transform: zFunnelTransform.nullish(),\n})\nexport const zHeatmapConfig = zAreaConfig\n\n/**\n * ---\n * Type config by chart type\n */\nexport type TableConfig = z.infer<typeof zTableConfig>\nexport type PivotTableConfig = z.infer<typeof zPivotTableConfig>\nexport type PivotChartGridConfig = z.infer<typeof zPivotChartGridConfig>\n// cartesian\nexport type LineConfig = z.infer<typeof zLineConfig>\nexport type ColumnConfig = z.infer<typeof zColumnConfig>\nexport type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>\nexport type ColumnPercentConfig = z.infer<typeof zColumnPercentConfig>\nexport type BarConfig = z.infer<typeof zBarConfig>\nexport type BarParallelConfig = z.infer<typeof zBarParallelConfig>\nexport type BarPercentConfig = z.infer<typeof zBarPercentConfig>\nexport type AreaConfig = z.infer<typeof zAreaConfig>\nexport type AreaPercentConfig = z.infer<typeof zAreaPercentConfig>\n\nexport type ScatterConfig = z.infer<typeof zScatterConfig>\nexport type DualAxisConfig = z.infer<typeof zDualAxisConfig>\n// polar\nexport type RoseConfig = z.infer<typeof zRoseConfig>\nexport type RoseParallelConfig = z.infer<typeof zRoseParallelConfig>\nexport type PieConfig = z.infer<typeof zPieConfig>\nexport type DonutConfig = z.infer<typeof zDonutConfig>\nexport type RadarConfig = z.infer<typeof zRadarConfig>\n// other\nexport type FunnelConfig = z.infer<typeof zFunnelConfig>\nexport type HeatmapConfig = z.infer<typeof zHeatmapConfig>\n\n/**\n * config and type\n */\nexport type Config = z.infer<typeof zConfig>\nexport const zConfig = z.object({\n table: zTableConfig.nullish(),\n pivotTable: zPivotTableConfig.nullish(),\n\n // cartesian\n line: zLineConfig.nullish(),\n column: zColumnConfig.nullish(),\n columnParallel: zColumnParallelConfig.nullish(),\n columnPercent: zColumnPercentConfig.nullish(),\n bar: zBarConfig.nullish(),\n barParallel: zBarParallelConfig.nullish(),\n barPercent: zBarPercentConfig.nullish(),\n area: zAreaConfig.nullish(),\n areaPercent: zAreaPercentConfig.nullish(),\n\n scatter: zScatterConfig.nullish(),\n dualAxis: zDualAxisConfig.nullish(),\n\n // polar\n rose: zRoseConfig.nullish(),\n roseParallel: zRoseParallelConfig.nullish(),\n pie: zPieConfig.nullish(),\n donut: zDonutConfig.nullish(),\n radar: zRadarConfig.nullish(),\n // other\n funnel: zFunnelConfig.nullish(),\n heatmap: zHeatmapConfig.nullish(),\n})\n"],"names":["zTableConfig","z","zBackgroundColor","zPivotTableConfig","zPivotChartGridConfig","zLineConfig","zLabel","zColor","zTooltip","zLegend","zXBandAxis","zYLinearAxis","zCrosshairLine","zAnnotaionConfig","zColumnConfig","zCrosshairRect","zStackCornerRadius","zColumnParallelConfig","zColumnPercentConfig","zBarConfig","zXLinearAxis","zYBandAxis","zBarParallelConfig","zBarPercentConfig","zAreaConfig","zAreaPercentConfig","zDualAxisConfig","zDualChartType","zScatterConfig","zRoseConfig","zPieLabel","zRoseParallelConfig","zPieConfig","zDonutConfig","zRadarConfig","zFunnelConfig","zFunnelTransform","zHeatmapConfig","zConfig"],"mappings":";;;;;;;;;;;;AAgBO,MAAMA,eAAeC,EAAE,MAAM,CAAC;IACnC,iBAAiBC,iBAAiB,OAAO;IAGzC,aAAaD,EAAE,MAAM,GAAG,OAAO;IAG/B,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IAEvC,0BAA0BA,EAAE,MAAM,GAAG,OAAO;IAC5C,gCAAgCA,EAAE,MAAM,GAAG,OAAO;IAGlD,gBAAgBA,EAAE,MAAM,GAAG,OAAO;IAClC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,uBAAuBA,EAAE,MAAM,GAAG,OAAO;IAEzC,4BAA4BA,EAAE,MAAM,GAAG,OAAO;IAC9C,kCAAkCA,EAAE,MAAM,GAAG,OAAO;IAGpD,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IACvC,yBAAyBA,EAAE,MAAM,GAAG,OAAO;AAC7C;AACO,MAAME,oBAAoBH;AAE1B,MAAMI,wBAAwBH,EAAE,MAAM,CAAC;IAC5C,aAAaA,EAAE,MAAM,GAAG,O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;IACvB,aAAaG,mBAAmB,OAAO;IACvC,YAAYC,kBAAkB,OAAO;IACrC,MAAMC,YAAY,OAAO;IACzB,aAAaC,mBAAmB,OAAO;IAEvC,SAASG,eAAe,OAAO;IAC/B,UAAUF,gBAAgB,OAAO;IAGjC,MAAMG,YAAY,OAAO;IACzB,cAAcE,oBAAoB,OAAO;IACzC,KAAKC,WAAW,OAAO;IACvB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAE3B,QAAQC,cAAc,OAAO;IAC7B,SAASE,eAAe,OAAO;AACjC"}
1
+ {"version":3,"file":"types/properties/config/config.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/config.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zTableConfig } from './table'\nimport { zLineConfig } from './line'\nimport { zColumnConfig, zColumnParallelConfig, zColumnPercentConfig } from './column'\nimport { zBarConfig, zBarParallelConfig, zBarPercentConfig } from './bar'\nimport { zAreaConfig, zAreaPercentConfig } from './area'\nimport { zScatterConfig } from './scatter'\nimport { zDualAxisConfig } from './dualAxis'\nimport { zDonutConfig, zPieConfig, zRadarConfig } from './pie'\nimport { zRoseConfig, zRoseParallelConfig } from './rose'\nimport { zFunnelConfig } from './funnel'\nimport { zHeatmapConfig } from './heatmap'\nimport { zPivotTableConfig } from './pivotTable'\n\nexport type Config = z.infer<typeof zConfig>\nexport const zConfig = z.object({\n table: zTableConfig.nullish(),\n pivotTable: zPivotTableConfig.nullish(),\n\n // cartesian\n line: zLineConfig.nullish(),\n column: zColumnConfig.nullish(),\n columnParallel: zColumnParallelConfig.nullish(),\n columnPercent: zColumnPercentConfig.nullish(),\n bar: zBarConfig.nullish(),\n barParallel: zBarParallelConfig.nullish(),\n barPercent: zBarPercentConfig.nullish(),\n area: zAreaConfig.nullish(),\n areaPercent: zAreaPercentConfig.nullish(),\n\n scatter: zScatterConfig.nullish(),\n dualAxis: zDualAxisConfig.nullish(),\n\n // polar\n rose: zRoseConfig.nullish(),\n roseParallel: zRoseParallelConfig.nullish(),\n pie: zPieConfig.nullish(),\n donut: zDonutConfig.nullish(),\n radar: zRadarConfig.nullish(),\n // other\n funnel: zFunnelConfig.nullish(),\n heatmap: zHeatmapConfig.nullish(),\n})\n"],"names":["zConfig","z","zTableConfig","zPivotTableConfig","zLineConfig","zColumnConfig","zColumnParallelConfig","zColumnPercentConfig","zBarConfig","zBarParallelConfig","zBarPercentConfig","zAreaConfig","zAreaPercentConfig","zScatterConfig","zDualAxisConfig","zRoseConfig","zRoseParallelConfig","zPieConfig","zDonutConfig","zRadarConfig","zFunnelConfig","zHeatmapConfig"],"mappings":";;;;;;;;;;;;;AAeO,MAAMA,UAAUC,EAAE,MAAM,CAAC;IAC9B,OAAOC,aAAa,OAAO;IAC3B,YAAYC,kBAAkB,OAAO;IAGrC,MAAMC,YAAY,OAAO;IACzB,QAAQC,cAAc,OAAO;IAC7B,gBAAgBC,sBAAsB,OAAO;IAC7C,eAAeC,qBAAqB,OAAO;IAC3C,KAAKC,WAAW,OAAO;IACvB,aAAaC,mBAAmB,OAAO;IACvC,YAAYC,kBAAkB,OAAO;IACrC,MAAMC,YAAY,OAAO;IACzB,aAAaC,mBAAmB,OAAO;IAEvC,SAASC,eAAe,OAAO;IAC/B,UAAUC,gBAAgB,OAAO;IAGjC,MAAMC,YAAY,OAAO;IACzB,cAAcC,oBAAoB,OAAO;IACzC,KAAKC,WAAW,OAAO;IACvB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAE3B,QAAQC,cAAc,OAAO;IAC7B,SAASC,eAAe,OAAO;AACjC"}