@visactor/vseed 0.0.35 → 0.0.37

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/builder/builder/builder.d.ts +8924 -8912
  2. package/dist/index.cjs +1128 -883
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +1097 -870
  5. package/dist/index.js.map +1 -1
  6. package/dist/pipeline/advanced/table/pipes/config/index.d.ts +2 -0
  7. package/dist/pipeline/advanced/table/pipes/config/pivotTableConfig.d.ts +2 -0
  8. package/dist/pipeline/advanced/table/pipes/config/tableConfig.d.ts +2 -0
  9. package/dist/pipeline/advanced/table/pipes/index.d.ts +1 -0
  10. package/dist/pipeline/spec/chart/pipes/series/index.d.ts +1 -1
  11. package/dist/pipeline/spec/chart/pipes/series/series.d.ts +1 -0
  12. package/dist/pipeline/spec/table/pipes/columns/dimensionsToColumns.d.ts +2 -0
  13. package/dist/pipeline/spec/table/pipes/columns/index.d.ts +1 -0
  14. package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +0 -1
  15. package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
  16. package/dist/pipeline/spec/table/pipes/indicators/pivotDataConfig.d.ts +2 -0
  17. package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
  18. package/dist/pipeline/utils/dimensions/typeGuard.d.ts +4 -0
  19. package/dist/pipeline/utils/measures/index.d.ts +1 -0
  20. package/dist/pipeline/utils/measures/typeGuard.d.ts +4 -0
  21. package/dist/types/advancedVSeed.d.ts +3843 -3839
  22. package/dist/types/chartType/area/zArea.d.ts +569 -569
  23. package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +569 -569
  24. package/dist/types/chartType/areaRange/zAreaRange.d.ts +550 -550
  25. package/dist/types/chartType/bar/bar.d.ts +0 -1183
  26. package/dist/types/chartType/bar/index.d.ts +2 -1
  27. package/dist/types/chartType/bar/zBar.d.ts +1183 -0
  28. package/dist/types/chartType/barParallel/barParallel.d.ts +0 -1183
  29. package/dist/types/chartType/barParallel/index.d.ts +2 -1
  30. package/dist/types/chartType/barParallel/zBarParallel.d.ts +1183 -0
  31. package/dist/types/chartType/barPercent/barPercent.d.ts +0 -1183
  32. package/dist/types/chartType/barPercent/index.d.ts +2 -1
  33. package/dist/types/chartType/barPercent/zBarPercent.d.ts +1183 -0
  34. package/dist/types/chartType/column/column.d.ts +0 -1183
  35. package/dist/types/chartType/column/index.d.ts +2 -1
  36. package/dist/types/chartType/column/zColumn.d.ts +1183 -0
  37. package/dist/types/chartType/columnParallel/columnParallel.d.ts +0 -1183
  38. package/dist/types/chartType/columnParallel/index.d.ts +2 -1
  39. package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +1183 -0
  40. package/dist/types/chartType/columnPercent/columnPercent.d.ts +0 -1183
  41. package/dist/types/chartType/columnPercent/index.d.ts +2 -1
  42. package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +1183 -0
  43. package/dist/types/chartType/donut/donut.d.ts +0 -119
  44. package/dist/types/chartType/donut/index.d.ts +2 -1
  45. package/dist/types/chartType/donut/zDonut.d.ts +119 -0
  46. package/dist/types/chartType/dualAxis/dualAxis.d.ts +58 -0
  47. package/dist/types/chartType/dualAxis/zDualAxis.d.ts +747 -749
  48. package/dist/types/chartType/funnel/funnel.d.ts +0 -89
  49. package/dist/types/chartType/funnel/index.d.ts +2 -1
  50. package/dist/types/chartType/funnel/zFunnel.d.ts +89 -0
  51. package/dist/types/chartType/heatmap/heatmap.d.ts +0 -89
  52. package/dist/types/chartType/heatmap/index.d.ts +2 -1
  53. package/dist/types/chartType/heatmap/zHeatmap.d.ts +89 -0
  54. package/dist/types/chartType/line/index.d.ts +2 -1
  55. package/dist/types/chartType/line/line.d.ts +0 -1365
  56. package/dist/types/chartType/line/zLine.d.ts +1365 -0
  57. package/dist/types/chartType/pie/index.d.ts +2 -1
  58. package/dist/types/chartType/pie/pie.d.ts +0 -119
  59. package/dist/types/chartType/pie/zPie.d.ts +119 -0
  60. package/dist/types/chartType/pivotTable/index.d.ts +2 -1
  61. package/dist/types/chartType/pivotTable/pivotTable.d.ts +44 -60
  62. package/dist/types/chartType/pivotTable/zPivotTable.d.ts +68 -0
  63. package/dist/types/chartType/radar/index.d.ts +2 -1
  64. package/dist/types/chartType/radar/radar.d.ts +0 -119
  65. package/dist/types/chartType/radar/zRadar.d.ts +119 -0
  66. package/dist/types/chartType/rose/index.d.ts +2 -1
  67. package/dist/types/chartType/rose/rose.d.ts +0 -119
  68. package/dist/types/chartType/rose/zRose.d.ts +119 -0
  69. package/dist/types/chartType/roseParallel/index.d.ts +2 -1
  70. package/dist/types/chartType/roseParallel/roseParallel.d.ts +0 -119
  71. package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +119 -0
  72. package/dist/types/chartType/scatter/index.d.ts +2 -1
  73. package/dist/types/chartType/scatter/scatter.d.ts +0 -1191
  74. package/dist/types/chartType/scatter/zScatter.d.ts +1191 -0
  75. package/dist/types/chartType/table/index.d.ts +2 -1
  76. package/dist/types/chartType/table/table.d.ts +45 -64
  77. package/dist/types/chartType/table/zTable.d.ts +68 -0
  78. package/dist/types/dataSelector/selector.d.ts +16 -16
  79. package/dist/types/properties/analysis/analysis.d.ts +1 -1
  80. package/dist/types/properties/analysis/sort.d.ts +2 -4
  81. package/dist/types/properties/analysis/sortLegend.d.ts +2 -3
  82. package/dist/types/properties/annotation/annotation.d.ts +308 -308
  83. package/dist/types/properties/annotation/annotationArea.d.ts +20 -130
  84. package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +31 -138
  85. package/dist/types/properties/annotation/annotationPoint.d.ts +20 -114
  86. package/dist/types/properties/annotation/annotationVerticalLine.d.ts +6 -113
  87. package/dist/types/properties/annotation/index.d.ts +8 -4
  88. package/dist/types/properties/annotation/zAnnotationArea.d.ts +110 -0
  89. package/dist/types/properties/annotation/zAnnotationHorizontalLine.d.ts +107 -0
  90. package/dist/types/properties/annotation/zAnnotationPoint.d.ts +94 -0
  91. package/dist/types/properties/annotation/zAnnotationVerticalLine.d.ts +107 -0
  92. package/dist/types/properties/config/axes/axis.d.ts +45 -45
  93. package/dist/types/properties/config/axes/bandAxis.d.ts +74 -74
  94. package/dist/types/properties/config/axes/linearAxis.d.ts +76 -76
  95. package/dist/types/properties/config/backgroundColor/backgroundColor.d.ts +1 -1
  96. package/dist/types/properties/config/color/color.d.ts +3 -3
  97. package/dist/types/properties/config/config.d.ts +3286 -3282
  98. package/dist/types/properties/config/crosshair/crosshair.d.ts +10 -10
  99. package/dist/types/properties/config/label/label.d.ts +1 -1
  100. package/dist/types/properties/config/legend/legend.d.ts +13 -13
  101. package/dist/types/properties/config/tooltip/tooltip.d.ts +1 -1
  102. package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +2 -2
  103. package/dist/types/properties/encoding/encoding.d.ts +8 -8
  104. package/dist/types/properties/markStyle/areaStyle.d.ts +20 -20
  105. package/dist/types/properties/markStyle/barStyle.d.ts +24 -24
  106. package/dist/types/properties/markStyle/lineStyle.d.ts +24 -24
  107. package/dist/types/properties/markStyle/markStyle.d.ts +194 -194
  108. package/dist/types/properties/markStyle/pointStyle.d.ts +35 -35
  109. package/dist/types/properties/measures/dualMeasures.d.ts +0 -2
  110. package/dist/types/properties/measures/zDualMeasures.d.ts +0 -4
  111. package/dist/types/properties/theme/customTheme.d.ts +3334 -3330
  112. package/dist/types/vseed.d.ts +6781 -6757
  113. package/dist/umd/index.js +1148 -905
  114. package/dist/umd/index.js.map +1 -1
  115. package/package.json +1 -1
@@ -1 +1,2 @@
1
- export * from './table';
1
+ export type * from './table';
2
+ export * from './zTable';
@@ -1,9 +1,7 @@
1
- import { z } from 'zod';
2
1
  import { type Locale } from '../../i18n';
3
2
  import type { DimensionTree, MeasureTree } from '../../properties';
4
3
  import { type BackgroundColor, type Dataset, type Theme } from '../../properties';
5
4
  /**
6
- * 表格类型定义
7
5
  * @description 表格,适用于详细数据展示场景,行列分明,便于查看具体数值
8
6
  * 适用场景:
9
7
  * - 需要展示详细数据明细
@@ -18,106 +16,89 @@ import { type BackgroundColor, type Dataset, type Theme } from '../../properties
18
16
  */
19
17
  export interface Table {
20
18
  /**
21
- * 表格
22
19
  * @description 标准表格组件,用于展示详细数据
23
20
  * @type {'table'}
24
21
  * @example 'table'
25
22
  */
26
23
  chartType: 'table';
27
24
  /**
28
- * 数据集
29
25
  * @description 符合TidyData规范的且已经聚合的数据集,用于定义图表的数据来源和结构, 用户输入的数据集并不需要进行任何处理, 一个字段对应一列, 一个记录对应一行
30
26
  * @type {Array<Record<string|number, any>>}
31
27
  * @example [{id: 1, name: "A", value: 100}, {id: 2, name: "B", value: 200}]
32
28
  */
33
29
  dataset: Dataset;
34
30
  /**
35
- * 维度
36
31
  * @description 表格的每个维度会对应一列
37
32
  * @type {Dimensions}
38
33
  * @example [{id: "name", alias: "名称"}]
39
34
  */
40
35
  dimensions?: DimensionTree;
41
36
  /**
42
- * 指标
43
37
  * @description 表格的每个指标会对应一行, 并且天生支持指标组合.
44
38
  * @type {Measures}
45
39
  * @example [{id: "value", alias: "数值"}]
46
40
  */
47
41
  measures?: MeasureTree;
48
42
  /**
49
- * 图表的背景颜色
50
43
  * @default transparent 默认为透明背景
51
44
  * @description 背景颜色可以是颜色字符串, 例如'red', 'blue', 也可以是hex, rgb或rgba'#ff0000', 'rgba(255,0,0,0.5)'
52
45
  */
53
46
  backgroundColor?: BackgroundColor;
54
47
  /**
55
- * 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置
48
+ * @description 表格的边框颜色
49
+ */
50
+ borderColor?: string;
51
+ /**
52
+ * @description 表格体的字体大小
53
+ */
54
+ bodyFontSize?: number;
55
+ /**
56
+ * @description 表格体的字体颜色
57
+ */
58
+ bodyFontColor?: string;
59
+ /**
60
+ * @description 表格体的背景颜色
61
+ */
62
+ bodyBackgroundColor?: string;
63
+ /**
64
+ * @description 列表头的字体大小
65
+ */
66
+ headerFontSize?: number;
67
+ /**
68
+ * @description 列表头的字体颜色
69
+ */
70
+ headerFontColor?: string;
71
+ /**
72
+ * @description 列表头的背景颜色
73
+ */
74
+ headerBackgroundColor?: string;
75
+ /**
76
+ * @description 鼠标悬浮在列表头的单元格时的背景颜色, 用于突出显示鼠标所在的单元格
77
+ */
78
+ hoverHeaderBackgroundColor?: string;
79
+ /**
80
+ * @description 鼠标悬浮在列表头的时, 整行的单元格的背景颜色, 用于突出显示鼠标所在的行
81
+ */
82
+ hoverHeaderInlineBackgroundColor?: string;
83
+ /**
84
+ * @description 选中的单元格的边框颜色, 用于突出显示选中的单元格
85
+ */
86
+ selectedBorderColor?: string;
87
+ /**
88
+ * @description 选中的单元格的背景颜色, 用于突出显示选中的单元格
89
+ */
90
+ selectedBackgroundColor?: string;
91
+ /**
56
92
  * @default light 默认为亮色主题
57
- * @description 内置light与dark两种主题, 用户可以通过Builder自定义主题
93
+ * @description 图表的主题, 主题是优先级较低的功能配置, 包含所有图表类型共用的通用配置, 与单类图表类型共用的图表配置, 内置light与dark两种主题, 用户可以通过Builder自定义主题
58
94
  * @example 'dark'
59
95
  * @example 'light'
60
96
  * @example 'customThemeName'
61
97
  */
62
98
  theme?: Theme;
63
99
  /**
64
- * 语言
65
100
  * @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
66
101
  * @default 'zh-CN'
67
102
  */
68
103
  locale?: Locale;
69
104
  }
70
- export declare const zTable: z.ZodObject<{
71
- chartType: z.ZodLiteral<"table">;
72
- dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
73
- dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
- id: z.ZodString;
75
- alias: z.ZodOptional<z.ZodString>;
76
- location: z.ZodDefault<z.ZodEnum<{
77
- dimension: "dimension";
78
- rowDimension: "rowDimension";
79
- columnDimension: "columnDimension";
80
- }>>;
81
- }, z.core.$strip>>>;
82
- measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
83
- id: z.ZodString;
84
- alias: z.ZodOptional<z.ZodString>;
85
- autoFormat: z.ZodDefault<z.ZodBoolean>;
86
- format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
87
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
88
- number: "number";
89
- percent: "percent";
90
- permille: "permille";
91
- scientific: "scientific";
92
- }>>>;
93
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
94
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
95
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
97
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
98
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
99
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
100
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
101
- morePrecision: "morePrecision";
102
- lessPrecision: "lessPrecision";
103
- }>>>;
104
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
105
- floor: "floor";
106
- ceil: "ceil";
107
- expand: "expand";
108
- trunc: "trunc";
109
- halfCeil: "halfCeil";
110
- halfFloor: "halfFloor";
111
- halfExpand: "halfExpand";
112
- halfTrunc: "halfTrunc";
113
- halfEven: "halfEven";
114
- }>>>;
115
- }, z.core.$strip>>>;
116
- }, z.core.$strip>]>>>;
117
- backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
118
- theme: z.ZodOptional<z.ZodString>;
119
- locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
120
- "zh-CN": "zh-CN";
121
- "en-US": "en-US";
122
- }>>>;
123
- }, z.core.$strip>;
@@ -0,0 +1,68 @@
1
+ import { z } from 'zod';
2
+ export declare const zTable: z.ZodObject<{
3
+ chartType: z.ZodLiteral<"table">;
4
+ dataset: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>>;
5
+ dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
6
+ id: z.ZodString;
7
+ alias: z.ZodOptional<z.ZodString>;
8
+ location: z.ZodDefault<z.ZodEnum<{
9
+ dimension: "dimension";
10
+ rowDimension: "rowDimension";
11
+ columnDimension: "columnDimension";
12
+ }>>;
13
+ }, z.core.$strip>>>>;
14
+ measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
15
+ id: z.ZodString;
16
+ alias: z.ZodOptional<z.ZodString>;
17
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
18
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
19
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
20
+ number: "number";
21
+ percent: "percent";
22
+ permille: "permille";
23
+ scientific: "scientific";
24
+ }>>>;
25
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
26
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
27
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
28
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
29
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
30
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
31
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
32
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
33
+ morePrecision: "morePrecision";
34
+ lessPrecision: "lessPrecision";
35
+ }>>>;
36
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
37
+ floor: "floor";
38
+ ceil: "ceil";
39
+ expand: "expand";
40
+ trunc: "trunc";
41
+ halfCeil: "halfCeil";
42
+ halfFloor: "halfFloor";
43
+ halfExpand: "halfExpand";
44
+ halfTrunc: "halfTrunc";
45
+ halfEven: "halfEven";
46
+ }>>>;
47
+ }, z.core.$strip>>>;
48
+ }, z.core.$strip>]>>>>;
49
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
50
+ borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ bodyFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
52
+ bodyFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ bodyBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ hoverBodyBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ hoverBodyInlineBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
+ headerFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
57
+ headerFontColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ headerBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ hoverHeaderBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ hoverHeaderInlineBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ selectedBorderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ selectedBackgroundColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ locale: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodEnum<{
65
+ "zh-CN": "zh-CN";
66
+ "en-US": "en-US";
67
+ }>>>>;
68
+ }, z.core.$strip>;
@@ -18,7 +18,7 @@ export type Selector = ValueSelector | PartialDatumSelector | MeasureSelector |
18
18
  export type Selectors = Array<Selector>;
19
19
  export declare const zSelector: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
20
20
  field: z.ZodString;
21
- operator: z.ZodOptional<z.ZodEnum<{
21
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
22
22
  "=": "=";
23
23
  "==": "==";
24
24
  "!=": "!=";
@@ -27,8 +27,8 @@ export declare const zSelector: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z
27
27
  ">=": ">=";
28
28
  "<=": "<=";
29
29
  between: "between";
30
- }>>;
31
- op: z.ZodOptional<z.ZodEnum<{
30
+ }>>>;
31
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
32
32
  "=": "=";
33
33
  "==": "==";
34
34
  "!=": "!=";
@@ -37,23 +37,23 @@ export declare const zSelector: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z
37
37
  ">=": ">=";
38
38
  "<=": "<=";
39
39
  between: "between";
40
- }>>;
40
+ }>>>;
41
41
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
42
42
  }, z.core.$strip>, z.ZodObject<{
43
43
  field: z.ZodString;
44
- operator: z.ZodOptional<z.ZodEnum<{
44
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
45
45
  in: "in";
46
46
  "not in": "not in";
47
- }>>;
48
- op: z.ZodOptional<z.ZodEnum<{
47
+ }>>>;
48
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
49
49
  in: "in";
50
50
  "not in": "not in";
51
- }>>;
51
+ }>>>;
52
52
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
53
53
  }, z.core.$strip>]>;
54
54
  export declare const zSelectors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
55
55
  field: z.ZodString;
56
- operator: z.ZodOptional<z.ZodEnum<{
56
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
57
57
  "=": "=";
58
58
  "==": "==";
59
59
  "!=": "!=";
@@ -62,8 +62,8 @@ export declare const zSelectors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.
62
62
  ">=": ">=";
63
63
  "<=": "<=";
64
64
  between: "between";
65
- }>>;
66
- op: z.ZodOptional<z.ZodEnum<{
65
+ }>>>;
66
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
67
67
  "=": "=";
68
68
  "==": "==";
69
69
  "!=": "!=";
@@ -72,17 +72,17 @@ export declare const zSelectors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.
72
72
  ">=": ">=";
73
73
  "<=": "<=";
74
74
  between: "between";
75
- }>>;
75
+ }>>>;
76
76
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
77
77
  }, z.core.$strip>, z.ZodObject<{
78
78
  field: z.ZodString;
79
- operator: z.ZodOptional<z.ZodEnum<{
79
+ operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
80
80
  in: "in";
81
81
  "not in": "not in";
82
- }>>;
83
- op: z.ZodOptional<z.ZodEnum<{
82
+ }>>>;
83
+ op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
84
84
  in: "in";
85
85
  "not in": "not in";
86
- }>>;
86
+ }>>>;
87
87
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
88
88
  }, z.core.$strip>]>>;
@@ -1,4 +1,4 @@
1
1
  import { z } from 'zod';
2
2
  export declare const zAnalysis: z.ZodObject<{
3
- orderMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3
+ orderMapping: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
4
4
  }, z.core.$strip>;
@@ -4,8 +4,8 @@ export declare const zSort: z.ZodObject<{
4
4
  asc: "asc";
5
5
  desc: "desc";
6
6
  }>>;
7
- orderBy: z.ZodOptional<z.ZodString>;
8
- customOrder: z.ZodOptional<z.ZodArray<z.ZodAny>>;
7
+ orderBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ customOrder: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny>>>;
9
9
  }, z.core.$strip>;
10
10
  /**
11
11
  * @description 类目轴排序配置, 支持根据维度或指标排序, 以及自定义排序顺序
@@ -19,14 +19,12 @@ export declare const zSort: z.ZodObject<{
19
19
  export type Sort = {
20
20
  /**
21
21
  * @description 排序顺序, 可选值为 'asc' 或 'desc'
22
- * @default 'asc'
23
22
  * @enum ['asc', 'desc']
24
23
  * @example order:'asc'
25
24
  */
26
25
  order?: 'asc' | 'desc';
27
26
  /**
28
27
  * @description 排序依赖的字段, 可以是维度id或指标id
29
- * @default ''
30
28
  * @example
31
29
  * - orderBy:'date'
32
30
  * - orderBy:'profit'
@@ -4,8 +4,8 @@ export declare const zSortLegend: z.ZodObject<{
4
4
  asc: "asc";
5
5
  desc: "desc";
6
6
  }>>;
7
- orderBy: z.ZodOptional<z.ZodString>;
8
- customOrder: z.ZodOptional<z.ZodArray<z.ZodAny>>;
7
+ orderBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ customOrder: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny>>>;
9
9
  }, z.core.$strip>;
10
10
  /**
11
11
  * @description 图例排序配置, 支持根据维度或指标排序, 以及自定义排序顺序; 排序数组遵循从左到右或从上到下的顺序
@@ -26,7 +26,6 @@ export type SortLegend = {
26
26
  order?: 'asc' | 'desc';
27
27
  /**
28
28
  * @description 排序依赖的字段, 可以是维度id或指标id
29
- * @default ''
30
29
  * @example
31
30
  * - orderBy:'date'
32
31
  * - orderBy:'profit'