@visactor/vseed 0.1.43 → 0.1.44

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 (213) hide show
  1. package/dist/cjs/index.cjs +3 -3
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +4380 -0
  4. package/dist/esm/dataSelector/selector.d.ts +1 -1
  5. package/dist/esm/dataSelector/selector.js +1 -2
  6. package/dist/esm/dataSelector/selector.js.map +1 -1
  7. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js +2 -0
  8. package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -1
  9. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.d.ts +1 -0
  10. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js +35 -2
  11. package/dist/esm/pipeline/advanced/chart/pipes/config/histogram.js.map +1 -1
  12. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js +1 -1
  13. package/dist/esm/pipeline/advanced/chart/pipes/regressionLine/regressionLine.js.map +1 -1
  14. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +22 -2
  15. package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -1
  16. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js +22 -3
  17. package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js.map +1 -1
  18. package/dist/esm/pipeline/advanced/table/pipeline/pivotTable.js +3 -2
  19. package/dist/esm/pipeline/advanced/table/pipeline/pivotTable.js.map +1 -1
  20. package/dist/esm/pipeline/advanced/table/pipeline/table.js +2 -1
  21. package/dist/esm/pipeline/advanced/table/pipeline/table.js.map +1 -1
  22. package/dist/esm/pipeline/advanced/table/pipes/{default/defaultMeasureName.d.ts → cellStyle/cellStyle.d.ts} +1 -1
  23. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/cellStyle.js +16 -0
  24. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/cellStyle.js.map +1 -0
  25. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/index.d.ts +1 -0
  26. package/dist/esm/pipeline/advanced/table/pipes/cellStyle/index.js +2 -0
  27. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureId.d.ts +2 -0
  28. package/dist/esm/pipeline/advanced/table/pipes/default/{defaultMeasureName.js → defaultMeasureId.js} +5 -5
  29. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureId.js.map +1 -0
  30. package/dist/esm/pipeline/advanced/table/pipes/default/index.d.ts +1 -1
  31. package/dist/esm/pipeline/advanced/table/pipes/default/index.js +2 -2
  32. package/dist/esm/pipeline/advanced/table/pipes/index.d.ts +1 -0
  33. package/dist/esm/pipeline/advanced/table/pipes/index.js +1 -0
  34. package/dist/esm/pipeline/spec/chart/pipeline/histogram.js.map +1 -1
  35. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js +2 -0
  36. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationArea.js.map +1 -1
  37. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js +2 -0
  38. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationAreaBand.js.map +1 -1
  39. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js +22 -3
  40. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationHorizontalLine.js.map +1 -1
  41. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js +2 -0
  42. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationPoint.js.map +1 -1
  43. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js +20 -1
  44. package/dist/esm/pipeline/spec/chart/pipes/annotation/annotationVerticalLine.js.map +1 -1
  45. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js +23 -7
  46. package/dist/esm/pipeline/spec/chart/pipes/annotation/splitLine.js.map +1 -1
  47. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +2 -1
  48. package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
  49. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +2 -1
  50. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
  51. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +2 -1
  52. package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
  53. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +2 -1
  54. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
  55. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +2 -1
  56. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
  57. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +2 -1
  58. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
  59. package/dist/esm/pipeline/spec/chart/pipes/init/histogram.js +4 -0
  60. package/dist/esm/pipeline/spec/chart/pipes/init/histogram.js.map +1 -1
  61. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +2 -1
  62. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  63. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js +1 -1
  64. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js.map +1 -1
  65. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js +1 -0
  66. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js.map +1 -1
  67. package/dist/esm/pipeline/spec/chart/pipes/markStyle/barStyle.js +5 -7
  68. package/dist/esm/pipeline/spec/chart/pipes/markStyle/barStyle.js.map +1 -1
  69. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js +23 -6
  70. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotAxisStyle.js.map +1 -1
  71. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js +39 -34
  72. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotGridStyle.js.map +1 -1
  73. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js +10 -3
  74. package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotIndicators.js.map +1 -1
  75. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js +1 -1
  76. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/ecdfRegressionLine.js.map +1 -1
  77. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js +1 -1
  78. package/dist/esm/pipeline/spec/chart/pipes/regressionLine/kdeRegressionLine.js.map +1 -1
  79. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +4 -2
  80. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
  81. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js +2 -0
  82. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -1
  83. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +2 -0
  84. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  85. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js +2 -0
  86. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js.map +1 -1
  87. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js +2 -0
  88. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHistogram.js.map +1 -1
  89. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +2 -0
  90. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
  91. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipStyle.d.ts +3 -0
  92. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipStyle.js +31 -0
  93. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipStyle.js.map +1 -0
  94. package/dist/esm/pipeline/spec/table/pipeline/pivotTable.js +3 -2
  95. package/dist/esm/pipeline/spec/table/pipeline/pivotTable.js.map +1 -1
  96. package/dist/esm/pipeline/spec/table/pipeline/table.js +3 -2
  97. package/dist/esm/pipeline/spec/table/pipeline/table.js.map +1 -1
  98. package/dist/esm/pipeline/spec/table/pipes/cellStyle/common.d.ts +2 -0
  99. package/dist/esm/pipeline/spec/table/pipes/cellStyle/common.js +14 -0
  100. package/dist/esm/pipeline/spec/table/pipes/cellStyle/common.js.map +1 -0
  101. package/dist/esm/pipeline/spec/table/pipes/cellStyle/index.d.ts +2 -0
  102. package/dist/esm/pipeline/spec/table/pipes/cellStyle/index.js +2 -0
  103. package/dist/esm/pipeline/spec/table/pipes/cellStyle/pivot.d.ts +2 -0
  104. package/dist/esm/pipeline/spec/table/pipes/cellStyle/pivot.js +49 -0
  105. package/dist/esm/pipeline/spec/table/pipes/cellStyle/pivot.js.map +1 -0
  106. package/dist/esm/pipeline/spec/table/pipes/cellStyle/table.d.ts +2 -0
  107. package/dist/esm/pipeline/spec/table/pipes/cellStyle/table.js +41 -0
  108. package/dist/esm/pipeline/spec/table/pipes/cellStyle/table.js.map +1 -0
  109. package/dist/esm/pipeline/spec/table/pipes/index.d.ts +1 -0
  110. package/dist/esm/pipeline/spec/table/pipes/index.js +1 -0
  111. package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js +13 -3
  112. package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js.map +1 -1
  113. package/dist/esm/pipeline/utils/constant.d.ts +3 -1
  114. package/dist/esm/pipeline/utils/constant.js +4 -2
  115. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  116. package/dist/esm/pipeline/utils/measures/depth.js.map +1 -1
  117. package/dist/esm/pipeline/utils/measures/find.js.map +1 -1
  118. package/dist/esm/pipeline/utils/tree/traverse.d.ts +1 -11
  119. package/dist/esm/pipeline/utils/tree/traverse.js +3 -4
  120. package/dist/esm/pipeline/utils/tree/traverse.js.map +1 -1
  121. package/dist/esm/theme/common/axes.js +2 -2
  122. package/dist/esm/theme/common/axes.js.map +1 -1
  123. package/dist/esm/theme/common/table.d.ts +30 -22
  124. package/dist/esm/theme/common/table.js +12 -2
  125. package/dist/esm/theme/common/table.js.map +1 -1
  126. package/dist/esm/theme/common/tooltip.d.ts +3 -2
  127. package/dist/esm/theme/common/tooltip.js +24 -2
  128. package/dist/esm/theme/common/tooltip.js.map +1 -1
  129. package/dist/esm/theme/dark/dark.js +2 -2
  130. package/dist/esm/theme/dark/dark.js.map +1 -1
  131. package/dist/esm/theme/light/light.js +2 -2
  132. package/dist/esm/theme/light/light.js.map +1 -1
  133. package/dist/esm/types/advancedVSeed.d.ts +3442 -0
  134. package/dist/esm/types/advancedVSeed.js +2 -0
  135. package/dist/esm/types/advancedVSeed.js.map +1 -1
  136. package/dist/esm/types/chartType/area/zArea.d.ts +80 -0
  137. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +80 -0
  138. package/dist/esm/types/chartType/bar/zBar.d.ts +80 -0
  139. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +80 -0
  140. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +80 -0
  141. package/dist/esm/types/chartType/boxplot/zBoxplot.d.ts +80 -0
  142. package/dist/esm/types/chartType/column/zColumn.d.ts +82 -0
  143. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +80 -0
  144. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +80 -0
  145. package/dist/esm/types/chartType/donut/zDonut.d.ts +80 -0
  146. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +80 -0
  147. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +80 -0
  148. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +80 -0
  149. package/dist/esm/types/chartType/histogram/histogram.d.ts +2 -2
  150. package/dist/esm/types/chartType/histogram/zHistogram.d.ts +88 -4
  151. package/dist/esm/types/chartType/histogram/zHistogram.js +2 -2
  152. package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
  153. package/dist/esm/types/chartType/line/zLine.d.ts +80 -0
  154. package/dist/esm/types/chartType/pie/zPie.d.ts +80 -0
  155. package/dist/esm/types/chartType/pivotTable/pivotTable.d.ts +5 -1
  156. package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +76 -0
  157. package/dist/esm/types/chartType/pivotTable/zPivotTable.js +2 -1
  158. package/dist/esm/types/chartType/pivotTable/zPivotTable.js.map +1 -1
  159. package/dist/esm/types/chartType/radar/zRadar.d.ts +80 -0
  160. package/dist/esm/types/chartType/rose/zRose.d.ts +80 -0
  161. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +80 -0
  162. package/dist/esm/types/chartType/scatter/zScatter.d.ts +88 -0
  163. package/dist/esm/types/chartType/table/table.d.ts +5 -1
  164. package/dist/esm/types/chartType/table/zTable.d.ts +76 -0
  165. package/dist/esm/types/chartType/table/zTable.js +2 -1
  166. package/dist/esm/types/chartType/table/zTable.js.map +1 -1
  167. package/dist/esm/types/properties/cellStyle/bodyCellStyle.d.ts +138 -0
  168. package/dist/esm/types/properties/cellStyle/bodyCellStyle.js +16 -0
  169. package/dist/esm/types/properties/cellStyle/bodyCellStyle.js.map +1 -0
  170. package/dist/esm/types/properties/cellStyle/cellStyle.d.ts +80 -0
  171. package/dist/esm/types/properties/cellStyle/cellStyle.js +8 -0
  172. package/dist/esm/types/properties/cellStyle/cellStyle.js.map +1 -0
  173. package/dist/esm/types/properties/cellStyle/index.d.ts +1 -0
  174. package/dist/esm/types/properties/cellStyle/index.js +1 -0
  175. package/dist/esm/types/properties/config/area.d.ts +164 -0
  176. package/dist/esm/types/properties/config/bar.d.ts +246 -0
  177. package/dist/esm/types/properties/config/boxplot.d.ts +82 -0
  178. package/dist/esm/types/properties/config/column.d.ts +258 -0
  179. package/dist/esm/types/properties/config/config.d.ts +1676 -0
  180. package/dist/esm/types/properties/config/dualAxis.d.ts +82 -0
  181. package/dist/esm/types/properties/config/funnel.d.ts +82 -0
  182. package/dist/esm/types/properties/config/heatmap.d.ts +82 -0
  183. package/dist/esm/types/properties/config/histogram.d.ts +94 -0
  184. package/dist/esm/types/properties/config/label/label.d.ts +5 -0
  185. package/dist/esm/types/properties/config/label/zLabel.d.ts +69 -0
  186. package/dist/esm/types/properties/config/label/zLabel.js +6 -1
  187. package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
  188. package/dist/esm/types/properties/config/label/zPieLabel.d.ts +69 -0
  189. package/dist/esm/types/properties/config/line.d.ts +82 -0
  190. package/dist/esm/types/properties/config/pie.d.ts +246 -0
  191. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.d.ts +2 -0
  192. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js +3 -1
  193. package/dist/esm/types/properties/config/pivotGrid/pivotGrid.js.map +1 -1
  194. package/dist/esm/types/properties/config/rose.d.ts +164 -0
  195. package/dist/esm/types/properties/config/scatter.d.ts +94 -0
  196. package/dist/esm/types/properties/config/tooltip/tooltip.d.ts +12 -0
  197. package/dist/esm/types/properties/config/tooltip/tooltip.js +12 -1
  198. package/dist/esm/types/properties/config/tooltip/tooltip.js.map +1 -1
  199. package/dist/esm/types/properties/index.d.ts +1 -0
  200. package/dist/esm/types/properties/index.js +1 -0
  201. package/dist/esm/types/properties/markStyle/barStyle.d.ts +5 -0
  202. package/dist/esm/types/properties/markStyle/barStyle.js.map +1 -1
  203. package/dist/esm/types/properties/regressionLine/ecdfRegressionLine.d.ts +4 -0
  204. package/dist/esm/types/properties/regressionLine/kdeRegressionLine.d.ts +4 -0
  205. package/dist/esm/types/properties/regressionLine/zRegressionLine.d.ts +18 -0
  206. package/dist/esm/types/properties/regressionLine/zRegressionLine.js +1 -0
  207. package/dist/esm/types/properties/regressionLine/zRegressionLine.js.map +1 -1
  208. package/dist/esm/types/properties/theme/customTheme.d.ts +3352 -0
  209. package/dist/esm/types/zVseed.d.ts +1890 -124
  210. package/dist/umd/index.js +726 -349
  211. package/dist/umd/index.js.map +1 -1
  212. package/package.json +3 -3
  213. package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasureName.js.map +0 -1
@@ -0,0 +1,138 @@
1
+ import { z } from 'zod';
2
+ import { type Selector, type Selectors } from '../../dataSelector';
3
+ export type BodyCellStyle = {
4
+ /**
5
+ * 数据选择器
6
+ * @description
7
+ * 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力
8
+ * 若未配置selector, 则样式全局生效.
9
+ * @type {Selector | Selectors}
10
+ * @example 数值选择器
11
+ * selector = "tool"
12
+ * selector = ["tool", "book"]
13
+ * selector = 100
14
+ * selector = [100, 200]
15
+ * @example 局部数据选择器
16
+ * selector = { profit: 100 }
17
+ * selector = [{ profit: 100 }, { profit: 200 }]
18
+ * @example 条件维度选择器
19
+ * selector = {
20
+ * field: 'category',
21
+ * operator: 'in',
22
+ * value: 'tool'
23
+ * }
24
+ * selector = {
25
+ * field: 'category',
26
+ * operator: 'not in',
27
+ * value: 'book'
28
+ * }
29
+ * @example 条件指标选择器
30
+ * selector = {
31
+ * field: 'profit',
32
+ * operator: '>=',
33
+ * value: 100
34
+ * }
35
+ * selector = {
36
+ * field: 'profit',
37
+ * operator: 'between'
38
+ * value: [100, 300]
39
+ * }
40
+ */
41
+ selector?: Selector | Selectors;
42
+ /**
43
+ * 单元格背景色
44
+ */
45
+ backgroundColor?: string;
46
+ /**
47
+ * 单元格文字颜色
48
+ */
49
+ textColor?: string;
50
+ /**
51
+ * 单元格文字大小
52
+ */
53
+ textFontSize?: number;
54
+ /**
55
+ * 单元格边框颜色
56
+ */
57
+ borderColor?: string;
58
+ /**
59
+ * 单元格边框线宽
60
+ */
61
+ borderLineWidth?: number;
62
+ };
63
+ export declare const zBodyCellStyle: z.ZodObject<{
64
+ selector: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
65
+ field: z.ZodString;
66
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
67
+ "=": "=";
68
+ "==": "==";
69
+ "!=": "!=";
70
+ ">": ">";
71
+ "<": "<";
72
+ ">=": ">=";
73
+ "<=": "<=";
74
+ between: "between";
75
+ }>>>;
76
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
77
+ "=": "=";
78
+ "==": "==";
79
+ "!=": "!=";
80
+ ">": ">";
81
+ "<": "<";
82
+ ">=": ">=";
83
+ "<=": "<=";
84
+ between: "between";
85
+ }>>>;
86
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ field: z.ZodString;
89
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
90
+ in: "in";
91
+ "not in": "not in";
92
+ }>>>;
93
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
94
+ in: "in";
95
+ "not in": "not in";
96
+ }>>>;
97
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
98
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
99
+ field: z.ZodString;
100
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
101
+ "=": "=";
102
+ "==": "==";
103
+ "!=": "!=";
104
+ ">": ">";
105
+ "<": "<";
106
+ ">=": ">=";
107
+ "<=": "<=";
108
+ between: "between";
109
+ }>>>;
110
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
111
+ "=": "=";
112
+ "==": "==";
113
+ "!=": "!=";
114
+ ">": ">";
115
+ "<": "<";
116
+ ">=": ">=";
117
+ "<=": "<=";
118
+ between: "between";
119
+ }>>>;
120
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
121
+ }, z.core.$strip>, z.ZodObject<{
122
+ field: z.ZodString;
123
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
124
+ in: "in";
125
+ "not in": "not in";
126
+ }>>>;
127
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
128
+ in: "in";
129
+ "not in": "not in";
130
+ }>>>;
131
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
132
+ }, z.core.$strip>]>>]>>>;
133
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
136
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ borderLineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
138
+ }, z.core.$strip>;
@@ -0,0 +1,16 @@
1
+ import { z } from "zod";
2
+ import { zSelector, zSelectors } from "../../dataSelector/index.js";
3
+ const zBodyCellStyle = z.object({
4
+ selector: z.union([
5
+ zSelector,
6
+ zSelectors
7
+ ]).nullish(),
8
+ backgroundColor: z.string().nullish(),
9
+ textColor: z.string().nullish(),
10
+ textFontSize: z.number().nullish(),
11
+ borderColor: z.string().nullish(),
12
+ borderLineWidth: z.number().nullish()
13
+ });
14
+ export { zBodyCellStyle };
15
+
16
+ //# sourceMappingURL=bodyCellStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types/properties/cellStyle/bodyCellStyle.js","sources":["webpack://@visactor/vseed/./src/types/properties/cellStyle/bodyCellStyle.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zSelector, zSelectors, type Selector, type Selectors } from '../../dataSelector'\n\nexport type BodyCellStyle = {\n /**\n * 数据选择器\n * @description\n * 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力\n * 若未配置selector, 则样式全局生效.\n * @type {Selector | Selectors}\n * @example 数值选择器\n * selector = \"tool\"\n * selector = [\"tool\", \"book\"]\n * selector = 100\n * selector = [100, 200]\n * @example 局部数据选择器\n * selector = { profit: 100 }\n * selector = [{ profit: 100 }, { profit: 200 }]\n * @example 条件维度选择器\n * selector = {\n * field: 'category',\n * operator: 'in',\n * value: 'tool'\n * }\n * selector = {\n * field: 'category',\n * operator: 'not in',\n * value: 'book'\n * }\n * @example 条件指标选择器\n * selector = {\n * field: 'profit',\n * operator: '>=',\n * value: 100\n * }\n * selector = {\n * field: 'profit',\n * operator: 'between'\n * value: [100, 300]\n * }\n */\n selector?: Selector | Selectors\n /**\n * 单元格背景色\n */\n backgroundColor?: string\n /**\n * 单元格文字颜色\n */\n textColor?: string\n /**\n * 单元格文字大小\n */\n textFontSize?: number\n /**\n * 单元格边框颜色\n */\n borderColor?: string\n /**\n * 单元格边框线宽\n */\n borderLineWidth?: number\n}\n\nexport const zBodyCellStyle = z.object({\n selector: z.union([zSelector, zSelectors]).nullish(),\n backgroundColor: z.string().nullish(),\n textColor: z.string().nullish(),\n textFontSize: z.number().nullish(),\n borderColor: z.string().nullish(),\n borderLineWidth: z.number().nullish(),\n})\n"],"names":["zBodyCellStyle","z","zSelector","zSelectors"],"mappings":";;AAgEO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,UAAUA,EAAE,KAAK,CAAC;QAACC;QAAWC;KAAW,EAAE,OAAO;IAClD,iBAAiBF,EAAE,MAAM,GAAG,OAAO;IACnC,WAAWA,EAAE,MAAM,GAAG,OAAO;IAC7B,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,aAAaA,EAAE,MAAM,GAAG,OAAO;IAC/B,iBAAiBA,EAAE,MAAM,GAAG,OAAO;AACrC"}
@@ -0,0 +1,80 @@
1
+ import { z } from 'zod';
2
+ export declare const zCellStyle: z.ZodObject<{
3
+ bodyCellStyle: z.ZodOptional<z.ZodNullable<z.ZodObject<{
4
+ selector: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
5
+ field: z.ZodString;
6
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
7
+ "=": "=";
8
+ "==": "==";
9
+ "!=": "!=";
10
+ ">": ">";
11
+ "<": "<";
12
+ ">=": ">=";
13
+ "<=": "<=";
14
+ between: "between";
15
+ }>>>;
16
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
17
+ "=": "=";
18
+ "==": "==";
19
+ "!=": "!=";
20
+ ">": ">";
21
+ "<": "<";
22
+ ">=": ">=";
23
+ "<=": "<=";
24
+ between: "between";
25
+ }>>>;
26
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ field: z.ZodString;
29
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
30
+ in: "in";
31
+ "not in": "not in";
32
+ }>>>;
33
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
34
+ in: "in";
35
+ "not in": "not in";
36
+ }>>>;
37
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
38
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
39
+ field: z.ZodString;
40
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
41
+ "=": "=";
42
+ "==": "==";
43
+ "!=": "!=";
44
+ ">": ">";
45
+ "<": "<";
46
+ ">=": ">=";
47
+ "<=": "<=";
48
+ between: "between";
49
+ }>>>;
50
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
51
+ "=": "=";
52
+ "==": "==";
53
+ "!=": "!=";
54
+ ">": ">";
55
+ "<": "<";
56
+ ">=": ">=";
57
+ "<=": "<=";
58
+ between: "between";
59
+ }>>>;
60
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ field: z.ZodString;
63
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
64
+ in: "in";
65
+ "not in": "not in";
66
+ }>>>;
67
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
68
+ in: "in";
69
+ "not in": "not in";
70
+ }>>>;
71
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
72
+ }, z.core.$strip>]>>]>>>;
73
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ textFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
76
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ borderLineWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
+ }, z.core.$strip>>>;
79
+ }, z.core.$strip>;
80
+ export type CellStyle = z.infer<typeof zCellStyle>;
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ import { zBodyCellStyle } from "./bodyCellStyle.js";
3
+ const zCellStyle = z.object({
4
+ bodyCellStyle: zBodyCellStyle.nullish()
5
+ });
6
+ export { zCellStyle };
7
+
8
+ //# sourceMappingURL=cellStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types/properties/cellStyle/cellStyle.js","sources":["webpack://@visactor/vseed/./src/types/properties/cellStyle/cellStyle.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zBodyCellStyle } from './bodyCellStyle'\n\nexport const zCellStyle = z.object({\n bodyCellStyle: zBodyCellStyle.nullish(),\n})\n\nexport type CellStyle = z.infer<typeof zCellStyle>\n"],"names":["zCellStyle","z","zBodyCellStyle"],"mappings":";;AAGO,MAAMA,aAAaC,EAAE,MAAM,CAAC;IACjC,eAAeC,eAAe,OAAO;AACvC"}
@@ -0,0 +1 @@
1
+ export * from './bodyCellStyle';
@@ -0,0 +1 @@
1
+ export * from "./bodyCellStyle.js";
@@ -45,6 +45,75 @@ export declare const zAreaConfig: z.ZodObject<{
45
45
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
46
46
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
47
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
48
+ selector: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
49
+ field: z.ZodString;
50
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
51
+ "=": "=";
52
+ "==": "==";
53
+ "!=": "!=";
54
+ ">": ">";
55
+ "<": "<";
56
+ ">=": ">=";
57
+ "<=": "<=";
58
+ between: "between";
59
+ }>>>;
60
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
61
+ "=": "=";
62
+ "==": "==";
63
+ "!=": "!=";
64
+ ">": ">";
65
+ "<": "<";
66
+ ">=": ">=";
67
+ "<=": "<=";
68
+ between: "between";
69
+ }>>>;
70
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
71
+ }, z.core.$strip>, z.ZodObject<{
72
+ field: z.ZodString;
73
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
74
+ in: "in";
75
+ "not in": "not in";
76
+ }>>>;
77
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
78
+ in: "in";
79
+ "not in": "not in";
80
+ }>>>;
81
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
82
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
83
+ field: z.ZodString;
84
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
85
+ "=": "=";
86
+ "==": "==";
87
+ "!=": "!=";
88
+ ">": ">";
89
+ "<": "<";
90
+ ">=": ">=";
91
+ "<=": "<=";
92
+ between: "between";
93
+ }>>>;
94
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
95
+ "=": "=";
96
+ "==": "==";
97
+ "!=": "!=";
98
+ ">": ">";
99
+ "<": "<";
100
+ ">=": ">=";
101
+ "<=": "<=";
102
+ between: "between";
103
+ }>>>;
104
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ field: z.ZodString;
107
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
108
+ in: "in";
109
+ "not in": "not in";
110
+ }>>>;
111
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
112
+ in: "in";
113
+ "not in": "not in";
114
+ }>>>;
115
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
116
+ }, z.core.$strip>]>>]>>>;
48
117
  }, z.core.$strip>>>;
49
118
  color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
50
119
  colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -53,6 +122,17 @@ export declare const zAreaConfig: z.ZodObject<{
53
122
  }, z.core.$strip>>>;
54
123
  tooltip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
55
124
  enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
125
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
+ borderWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
127
+ borderRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
128
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
129
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
131
+ fontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
132
+ lineSpace: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
133
+ keyColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
+ titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
136
  }, z.core.$strip>>>;
57
137
  legend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
138
  enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -241,6 +321,8 @@ export declare const zAreaConfig: z.ZodObject<{
241
321
  titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
242
322
  titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
243
323
  titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
+ chartGridColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
+ axisLabelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
326
  }, z.core.$strip>>>;
245
327
  annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
246
328
  annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -374,6 +456,75 @@ export declare const zAreaPercentConfig: z.ZodObject<{
374
456
  labelColorSmartInvert: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
375
457
  labelPosition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
458
  labelOverlap: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
459
+ selector: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
460
+ field: z.ZodString;
461
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
462
+ "=": "=";
463
+ "==": "==";
464
+ "!=": "!=";
465
+ ">": ">";
466
+ "<": "<";
467
+ ">=": ">=";
468
+ "<=": "<=";
469
+ between: "between";
470
+ }>>>;
471
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
472
+ "=": "=";
473
+ "==": "==";
474
+ "!=": "!=";
475
+ ">": ">";
476
+ "<": "<";
477
+ ">=": ">=";
478
+ "<=": "<=";
479
+ between: "between";
480
+ }>>>;
481
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
482
+ }, z.core.$strip>, z.ZodObject<{
483
+ field: z.ZodString;
484
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
485
+ in: "in";
486
+ "not in": "not in";
487
+ }>>>;
488
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
489
+ in: "in";
490
+ "not in": "not in";
491
+ }>>>;
492
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
493
+ }, z.core.$strip>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
494
+ field: z.ZodString;
495
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
496
+ "=": "=";
497
+ "==": "==";
498
+ "!=": "!=";
499
+ ">": ">";
500
+ "<": "<";
501
+ ">=": ">=";
502
+ "<=": "<=";
503
+ between: "between";
504
+ }>>>;
505
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
506
+ "=": "=";
507
+ "==": "==";
508
+ "!=": "!=";
509
+ ">": ">";
510
+ "<": "<";
511
+ ">=": ">=";
512
+ "<=": "<=";
513
+ between: "between";
514
+ }>>>;
515
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
516
+ }, z.core.$strip>, z.ZodObject<{
517
+ field: z.ZodString;
518
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
519
+ in: "in";
520
+ "not in": "not in";
521
+ }>>>;
522
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
523
+ in: "in";
524
+ "not in": "not in";
525
+ }>>>;
526
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
527
+ }, z.core.$strip>]>>]>>>;
377
528
  }, z.core.$strip>>>;
378
529
  color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
379
530
  colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -382,6 +533,17 @@ export declare const zAreaPercentConfig: z.ZodObject<{
382
533
  }, z.core.$strip>>>;
383
534
  tooltip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
384
535
  enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
536
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
537
+ borderWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
538
+ borderRadius: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
539
+ padding: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
540
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
541
+ lineHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
542
+ fontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
543
+ lineSpace: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
544
+ keyColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
+ valueColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
546
+ titleColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
385
547
  }, z.core.$strip>>>;
386
548
  legend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
387
549
  enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
@@ -570,6 +732,8 @@ export declare const zAreaPercentConfig: z.ZodObject<{
570
732
  titleFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
571
733
  titleFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
572
734
  titleFontWeight: z.ZodOptional<z.ZodNullable<z.ZodString>>;
735
+ chartGridColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
736
+ axisLabelColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
573
737
  }, z.core.$strip>>>;
574
738
  annotation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
575
739
  annotationPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{