@visactor/vseed 0.1.33 → 0.1.35

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 (129) 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 +1189 -3271
  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/spec/chart/pipeline/funnel.js +3 -1
  17. package/dist/esm/pipeline/spec/chart/pipeline/funnel.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/init/funnel.js +0 -3
  21. package/dist/esm/pipeline/spec/chart/pipes/init/funnel.js.map +1 -1
  22. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +5 -4
  23. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  24. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js +26 -11
  25. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js.map +1 -1
  26. package/dist/esm/pipeline/spec/chart/pipes/legend/heatmapColorLegend.d.ts +2 -0
  27. package/dist/esm/pipeline/spec/chart/pipes/legend/heatmapColorLegend.js +19 -0
  28. package/dist/esm/pipeline/spec/chart/pipes/legend/heatmapColorLegend.js.map +1 -0
  29. package/dist/esm/pipeline/spec/chart/pipes/legend/index.d.ts +1 -0
  30. package/dist/esm/pipeline/spec/chart/pipes/legend/index.js +2 -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/markStyle/funnelStyle.js +1 -1
  34. package/dist/esm/pipeline/spec/chart/pipes/markStyle/funnelStyle.js.map +1 -1
  35. package/dist/esm/pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.d.ts +2 -0
  36. package/dist/esm/pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.js +22 -0
  37. package/dist/esm/pipeline/spec/chart/pipes/markStyle/funnelTransformStyle.js.map +1 -0
  38. package/dist/esm/pipeline/spec/chart/pipes/markStyle/index.d.ts +1 -0
  39. package/dist/esm/pipeline/spec/chart/pipes/markStyle/index.js +2 -1
  40. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js +0 -1
  41. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js.map +1 -1
  42. package/dist/esm/pipeline/utils/constant.d.ts +1 -0
  43. package/dist/esm/pipeline/utils/constant.js +2 -1
  44. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  45. package/dist/esm/theme/common/funnelTransform.d.ts +3 -0
  46. package/dist/esm/theme/common/funnelTransform.js +11 -0
  47. package/dist/esm/theme/common/funnelTransform.js.map +1 -0
  48. package/dist/esm/theme/common/heatmapCell.d.ts +3 -0
  49. package/dist/esm/theme/common/heatmapCell.js +9 -0
  50. package/dist/esm/theme/common/heatmapCell.js.map +1 -0
  51. package/dist/esm/theme/common/table.d.ts +47 -5
  52. package/dist/esm/theme/common/table.js.map +1 -1
  53. package/dist/esm/theme/dark/dark.js +4 -0
  54. package/dist/esm/theme/dark/dark.js.map +1 -1
  55. package/dist/esm/theme/light/light.js +4 -0
  56. package/dist/esm/theme/light/light.js.map +1 -1
  57. package/dist/esm/types/advancedVSeed.d.ts +160 -958
  58. package/dist/esm/types/properties/config/annotation/zAnnotaion.d.ts +1 -1
  59. package/dist/esm/types/properties/config/annotation/zAnnotaion.js +2 -2
  60. package/dist/esm/types/properties/config/annotation/zAnnotaion.js.map +1 -1
  61. package/dist/esm/types/properties/config/area.d.ts +647 -0
  62. package/dist/esm/types/properties/config/area.js +26 -0
  63. package/dist/esm/types/properties/config/area.js.map +1 -0
  64. package/dist/esm/types/properties/config/axes/bandAxis.d.ts +149 -1
  65. package/dist/esm/types/properties/config/axes/linearAxis.d.ts +151 -1
  66. package/dist/esm/types/properties/config/bar.d.ts +970 -0
  67. package/dist/esm/types/properties/config/bar.js +29 -0
  68. package/dist/esm/types/properties/config/bar.js.map +1 -0
  69. package/dist/esm/types/properties/config/column.d.ts +970 -0
  70. package/dist/esm/types/properties/config/column.js +29 -0
  71. package/dist/esm/types/properties/config/column.js.map +1 -0
  72. package/dist/esm/types/properties/config/config.d.ts +138 -5667
  73. package/dist/esm/types/properties/config/config.js +13 -142
  74. package/dist/esm/types/properties/config/config.js.map +1 -1
  75. package/dist/esm/types/properties/config/dualAxis.d.ts +566 -0
  76. package/dist/esm/types/properties/config/dualAxis.js +29 -0
  77. package/dist/esm/types/properties/config/dualAxis.js.map +1 -0
  78. package/dist/esm/types/properties/config/funnel.d.ts +124 -0
  79. package/dist/esm/types/properties/config/funnel.js +20 -0
  80. package/dist/esm/types/properties/config/funnel.js.map +1 -0
  81. package/dist/esm/types/properties/config/funnelTransform/funnelTransform.d.ts +13 -0
  82. package/dist/esm/types/properties/config/funnelTransform/funnelTransform.js +0 -0
  83. package/dist/esm/types/properties/config/funnelTransform/index.d.ts +2 -0
  84. package/dist/esm/types/properties/config/funnelTransform/index.js +1 -0
  85. package/dist/esm/types/properties/config/funnelTransform/zFunnelTransform.d.ts +5 -0
  86. package/dist/esm/types/properties/config/funnelTransform/zFunnelTransform.js +8 -0
  87. package/dist/esm/types/properties/config/funnelTransform/zFunnelTransform.js.map +1 -0
  88. package/dist/esm/types/properties/config/heatmap/heatmap.d.ts +17 -0
  89. package/dist/esm/types/properties/config/heatmap/heatmap.js +0 -0
  90. package/dist/esm/types/properties/config/heatmap/index.d.ts +2 -0
  91. package/dist/esm/types/properties/config/heatmap/index.js +1 -0
  92. package/dist/esm/types/properties/config/heatmap/zHeatmap.d.ts +6 -0
  93. package/dist/esm/types/properties/config/heatmap/zHeatmap.js +9 -0
  94. package/dist/esm/types/properties/config/heatmap/zHeatmap.js.map +1 -0
  95. package/dist/esm/types/properties/config/heatmap.d.ts +125 -0
  96. package/dist/esm/types/properties/config/heatmap.js +20 -0
  97. package/dist/esm/types/properties/config/heatmap.js.map +1 -0
  98. package/dist/esm/types/properties/config/index.d.ts +17 -2
  99. package/dist/esm/types/properties/config/index.js +17 -2
  100. package/dist/esm/types/properties/config/line.d.ts +324 -0
  101. package/dist/esm/types/properties/config/line.js +25 -0
  102. package/dist/esm/types/properties/config/line.js.map +1 -0
  103. package/dist/esm/types/properties/config/pie.d.ts +364 -0
  104. package/dist/esm/types/properties/config/pie.js +21 -0
  105. package/dist/esm/types/properties/config/pie.js.map +1 -0
  106. package/dist/esm/types/properties/config/pivotGrid/index.d.ts +2 -0
  107. package/dist/esm/types/properties/config/pivotGrid/index.js +2 -0
  108. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +10 -0
  109. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +12 -0
  110. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -0
  111. package/dist/esm/types/properties/config/pivotTable.d.ts +18 -0
  112. package/dist/esm/types/properties/config/pivotTable.js +5 -0
  113. package/dist/esm/types/properties/config/pivotTable.js.map +1 -0
  114. package/dist/esm/types/properties/config/rose.d.ts +241 -0
  115. package/dist/esm/types/properties/config/rose.js +19 -0
  116. package/dist/esm/types/properties/config/rose.js.map +1 -0
  117. package/dist/esm/types/properties/config/scatter.d.ts +357 -0
  118. package/dist/esm/types/properties/config/scatter.js +27 -0
  119. package/dist/esm/types/properties/config/scatter.js.map +1 -0
  120. package/dist/esm/types/properties/config/table.d.ts +18 -0
  121. package/dist/esm/types/properties/config/table.js +21 -0
  122. package/dist/esm/types/properties/config/table.js.map +1 -0
  123. package/dist/esm/types/properties/theme/customTheme.d.ts +161 -959
  124. package/dist/umd/index.js +241 -137
  125. package/dist/umd/index.js.map +1 -1
  126. package/package.json +3 -3
  127. package/dist/esm/pipeline/advanced/chart/pipes/config/config.d.ts +0 -17
  128. package/dist/esm/pipeline/advanced/chart/pipes/config/config.js +0 -89
  129. package/dist/esm/pipeline/advanced/chart/pipes/config/config.js.map +0 -1
@@ -1,145 +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
- const zTableConfig = z.object({
13
- backgroundColor: zBackgroundColor.nullish(),
14
- borderColor: z.string().nullish(),
15
- bodyFontSize: z.number().nullish(),
16
- bodyFontColor: z.string().nullish(),
17
- bodyBackgroundColor: z.string().nullish(),
18
- hoverBodyBackgroundColor: z.string().nullish(),
19
- hoverBodyInlineBackgroundColor: z.string().nullish(),
20
- headerFontSize: z.number().nullish(),
21
- headerFontColor: z.string().nullish(),
22
- headerBackgroundColor: z.string().nullish(),
23
- hoverHeaderBackgroundColor: z.string().nullish(),
24
- hoverHeaderInlineBackgroundColor: z.string().nullish(),
25
- selectedBorderColor: z.string().nullish(),
26
- selectedBackgroundColor: z.string().nullish()
27
- });
28
- const zPivotTableConfig = zTableConfig;
29
- const zPivotChartGridConfig = z.object({
30
- borderColor: z.string().nullish(),
31
- bodyFontColor: z.string().nullish(),
32
- headerFontColor: z.string().nullish(),
33
- headerBackgroundColor: z.string().nullish(),
34
- hoverHeaderBackgroundColor: z.string().nullish(),
35
- hoverHeaderInlineBackgroundColor: z.string().nullish()
36
- });
37
- const zLineConfig = z.object({
38
- backgroundColor: zBackgroundColor.nullish(),
39
- label: zLabel.nullish(),
40
- color: zColor.nullish(),
41
- tooltip: zTooltip.nullish(),
42
- legend: zLegend.nullish(),
43
- xAxis: zXBandAxis.nullish(),
44
- yAxis: zYLinearAxis.nullish(),
45
- crosshairLine: zCrosshairLine.nullish(),
46
- pivotGrid: zPivotChartGridConfig.nullish(),
47
- annotation: zAnnotaionConfig.nullish()
48
- });
49
- const zColumnConfig = z.object({
50
- backgroundColor: zBackgroundColor.nullish(),
51
- label: zLabel.nullish(),
52
- color: zColor.nullish(),
53
- tooltip: zTooltip.nullish(),
54
- legend: zLegend.nullish(),
55
- xAxis: zXBandAxis.nullish(),
56
- yAxis: zYLinearAxis.nullish(),
57
- crosshairRect: zCrosshairRect.nullish(),
58
- stackCornerRadius: zStackCornerRadius.nullish(),
59
- pivotGrid: zPivotChartGridConfig.nullish(),
60
- annotation: zAnnotaionConfig.nullish()
61
- });
62
- const zColumnParallelConfig = zColumnConfig;
63
- const zColumnPercentConfig = zColumnConfig;
64
- const zBarConfig = z.object({
65
- backgroundColor: zBackgroundColor.nullish(),
66
- label: zLabel.nullish(),
67
- color: zColor.nullish(),
68
- tooltip: zTooltip.nullish(),
69
- legend: zLegend.nullish(),
70
- xAxis: zXLinearAxis.nullish(),
71
- yAxis: zYBandAxis.nullish(),
72
- crosshairRect: zCrosshairRect.nullish(),
73
- stackCornerRadius: zStackCornerRadius.nullish(),
74
- pivotGrid: zPivotChartGridConfig.nullish(),
75
- annotation: zAnnotaionConfig.nullish()
76
- });
77
- const zBarParallelConfig = zBarConfig;
78
- const zBarPercentConfig = zBarConfig;
79
- const zAreaConfig = z.object({
80
- backgroundColor: zBackgroundColor.nullish(),
81
- label: zLabel.nullish(),
82
- color: zColor.nullish(),
83
- tooltip: zTooltip.nullish(),
84
- legend: zLegend.nullish(),
85
- xAxis: zXBandAxis.nullish(),
86
- yAxis: zYLinearAxis.nullish(),
87
- crosshairLine: zCrosshairLine.nullish(),
88
- pivotGrid: zPivotChartGridConfig.nullish(),
89
- annotation: zAnnotaionConfig.nullish()
90
- });
91
- const zAreaPercentConfig = zAreaConfig;
92
- const zDualAxisConfig = z.object({
93
- backgroundColor: zBackgroundColor.nullish(),
94
- label: zLabel.nullish(),
95
- color: zColor.nullish(),
96
- tooltip: zTooltip.nullish(),
97
- legend: zLegend.nullish(),
98
- dualChartType: z.array(zDualChartType).or(zDualChartType).nullish(),
99
- alignTicks: z.array(z.boolean()).or(z.boolean()).nullish(),
100
- primaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
101
- secondaryYAxis: z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
102
- xAxis: zXBandAxis.nullish(),
103
- crosshairRect: zCrosshairRect.nullish(),
104
- pivotGrid: zPivotChartGridConfig.nullish(),
105
- annotation: zAnnotaionConfig.nullish()
106
- });
107
- const zScatterConfig = z.object({
108
- backgroundColor: zBackgroundColor.nullish(),
109
- label: zLabel.nullish(),
110
- color: zColor.nullish(),
111
- tooltip: zTooltip.nullish(),
112
- legend: zLegend.nullish(),
113
- xAxis: zXLinearAxis.nullish(),
114
- yAxis: zYLinearAxis.nullish(),
115
- crosshairLine: zCrosshairLine.nullish(),
116
- size: z.number().or(z.array(z.number())).nullish(),
117
- sizeRange: z.number().or(z.array(z.number())).nullish(),
118
- pivotGrid: zPivotChartGridConfig.nullish(),
119
- annotation: zAnnotaionConfig.nullish()
120
- });
121
- const zRoseConfig = z.object({
122
- backgroundColor: zBackgroundColor.nullish(),
123
- label: zPieLabel.nullish(),
124
- color: zColor.nullish(),
125
- tooltip: zTooltip.nullish(),
126
- legend: zLegend.nullish(),
127
- pivotGrid: zPivotChartGridConfig.nullish()
128
- });
129
- const zRoseParallelConfig = zRoseConfig;
130
- const zPieConfig = z.object({
131
- backgroundColor: zBackgroundColor.nullish(),
132
- label: zPieLabel.nullish(),
133
- color: zColor.nullish(),
134
- tooltip: zTooltip.nullish(),
135
- legend: zLegend.nullish(),
136
- pivotGrid: zPivotChartGridConfig.nullish(),
137
- cornerRadius: z.number().nullish()
138
- });
139
- const zDonutConfig = zPieConfig;
140
- const zRadarConfig = zPieConfig;
141
- const zFunnelConfig = zAreaConfig;
142
- 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";
143
14
  const zConfig = z.object({
144
15
  table: zTableConfig.nullish(),
145
16
  pivotTable: zPivotTableConfig.nullish(),
@@ -162,6 +33,6 @@ const zConfig = z.object({
162
33
  funnel: zFunnelConfig.nullish(),
163
34
  heatmap: zHeatmapConfig.nullish()
164
35
  });
165
- 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 };
166
37
 
167
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'\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\nexport const zFunnelConfig = zAreaConfig\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","zHeatmapConfig","zConfig"],"mappings":";;;;;;;;;;;AAeO,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;I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WAAW,OAAO;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,SAASC,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"}