@visactor/vseed 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder/builder/builder.d.ts +210 -118
- package/dist/index.cjs +383 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +363 -24
- package/dist/index.js.map +1 -1
- package/dist/pipeline/spec/table/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/theme/bodyStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/cornerHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/frameStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/headerStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/index.d.ts +6 -0
- package/dist/pipeline/spec/table/pipes/theme/rowHeaderStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/scrollStyle.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/theme/selectionStyle.d.ts +2 -0
- package/dist/types/advancedVSeed.d.ts +55 -61
- package/dist/types/chartType/area/area.d.ts +8 -46
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +8 -46
- package/dist/types/chartType/bar/bar.d.ts +9 -46
- package/dist/types/chartType/barParallel/barParallel.d.ts +8 -46
- package/dist/types/chartType/barPercent/barPercent.d.ts +8 -46
- package/dist/types/chartType/column/column.d.ts +8 -46
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +8 -46
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +8 -46
- package/dist/types/chartType/donut/donut.d.ts +8 -46
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +2 -2
- package/dist/types/chartType/funnel/funnel.d.ts +8 -46
- package/dist/types/chartType/line/line.d.ts +8 -46
- package/dist/types/chartType/pie/pie.d.ts +8 -46
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +8 -7
- package/dist/types/chartType/rose/rose.d.ts +9 -46
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +10 -47
- package/dist/types/chartType/scatter/scatter.d.ts +8 -46
- package/dist/types/chartType/table/table.d.ts +6 -44
- package/dist/types/properties/config/config.d.ts +50 -2
- package/dist/types/properties/dimensions/dimensions.d.ts +20 -44
- package/dist/types/properties/measures/measures.d.ts +11 -87
- package/dist/types/properties/theme/customTheme.d.ts +48 -4
- package/dist/types/vseed.d.ts +101 -709
- package/dist/umd/index.js +703 -40
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
@@ -1,6 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Locale } from '../../i18n';
|
3
|
-
import
|
3
|
+
import type { Measures } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Dataset, type Dimensions, type Theme } from '../../properties';
|
4
5
|
/**
|
5
6
|
* 透视表类型定义
|
6
7
|
* @description 透视表,适用于多维度数据交叉分析场景,可灵活配置行、列维度和指标计算方式
|
@@ -43,7 +44,7 @@ export interface PivotTable {
|
|
43
44
|
* @type {Measures}
|
44
45
|
* @example [{id: 'sales', alias: '销售额', aggregation: 'sum'}]
|
45
46
|
*/
|
46
|
-
measures?:
|
47
|
+
measures?: Measures;
|
47
48
|
/**
|
48
49
|
* 图表的背景颜色
|
49
50
|
* @default transparent 默认为透明背景
|
@@ -72,17 +73,17 @@ export declare const zPivotTable: z.ZodObject<{
|
|
72
73
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
73
74
|
id: z.ZodString;
|
74
75
|
alias: z.ZodOptional<z.ZodString>;
|
75
|
-
location: z.
|
76
|
+
location: z.ZodDefault<z.ZodEnum<{
|
76
77
|
dimension: "dimension";
|
77
78
|
rowDimension: "rowDimension";
|
78
79
|
columnDimension: "columnDimension";
|
79
|
-
}
|
80
|
+
}>>;
|
80
81
|
}, z.core.$strip>>>;
|
81
82
|
measures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
82
83
|
id: z.ZodString;
|
83
84
|
alias: z.ZodOptional<z.ZodString>;
|
84
|
-
autoFormat: z.
|
85
|
-
format: z.
|
85
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
86
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
86
87
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
87
88
|
number: "number";
|
88
89
|
percent: "percent";
|
@@ -111,7 +112,7 @@ export declare const zPivotTable: z.ZodObject<{
|
|
111
112
|
halfTrunc: "halfTrunc";
|
112
113
|
halfEven: "halfEven";
|
113
114
|
}>>>;
|
114
|
-
}, z.core.$strip
|
115
|
+
}, z.core.$strip>>>;
|
115
116
|
}, z.core.$strip>>>;
|
116
117
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
117
118
|
theme: z.ZodOptional<z.ZodString>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Locale } from '../../i18n';
|
3
|
-
import
|
3
|
+
import type { MeasureTree } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
4
5
|
/**
|
5
6
|
* 堆叠玫瑰图类型定义
|
6
7
|
* @description 堆叠玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
|
@@ -43,7 +44,7 @@ export interface Rose {
|
|
43
44
|
* @type {Measures}
|
44
45
|
* @example [{id: 'value', alias: '数值'}]
|
45
46
|
*/
|
46
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
47
48
|
/**
|
48
49
|
* 图表的背景颜色
|
49
50
|
* @default transparent 默认为透明背景
|
@@ -92,55 +93,17 @@ export declare const zRose: z.ZodObject<{
|
|
92
93
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
94
|
id: z.ZodString;
|
94
95
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
location: z.
|
96
|
+
location: z.ZodDefault<z.ZodEnum<{
|
96
97
|
dimension: "dimension";
|
97
98
|
rowDimension: "rowDimension";
|
98
99
|
columnDimension: "columnDimension";
|
99
|
-
}
|
100
|
+
}>>;
|
100
101
|
}, z.core.$strip>>>;
|
101
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
102
|
-
id: z.ZodString;
|
103
|
-
alias: z.ZodOptional<z.ZodString>;
|
104
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
105
|
-
id: z.ZodString;
|
106
|
-
alias: z.ZodOptional<z.ZodString>;
|
107
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
108
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
109
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
110
|
-
number: "number";
|
111
|
-
percent: "percent";
|
112
|
-
permille: "permille";
|
113
|
-
scientific: "scientific";
|
114
|
-
}>>>;
|
115
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
116
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
117
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
118
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
119
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
120
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
121
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
122
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
123
|
-
morePrecision: "morePrecision";
|
124
|
-
lessPrecision: "lessPrecision";
|
125
|
-
}>>>;
|
126
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
127
|
-
floor: "floor";
|
128
|
-
ceil: "ceil";
|
129
|
-
expand: "expand";
|
130
|
-
trunc: "trunc";
|
131
|
-
halfCeil: "halfCeil";
|
132
|
-
halfFloor: "halfFloor";
|
133
|
-
halfExpand: "halfExpand";
|
134
|
-
halfTrunc: "halfTrunc";
|
135
|
-
halfEven: "halfEven";
|
136
|
-
}>>>;
|
137
|
-
}, z.core.$strip>>>>;
|
138
|
-
}, z.core.$strip>]>>>;
|
139
|
-
}, z.core.$strip>, z.ZodObject<{
|
102
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
140
103
|
id: z.ZodString;
|
141
104
|
alias: z.ZodOptional<z.ZodString>;
|
142
|
-
autoFormat: z.
|
143
|
-
format: z.
|
105
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
106
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
144
107
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
108
|
number: "number";
|
146
109
|
percent: "percent";
|
@@ -169,7 +132,7 @@ export declare const zRose: z.ZodObject<{
|
|
169
132
|
halfTrunc: "halfTrunc";
|
170
133
|
halfEven: "halfEven";
|
171
134
|
}>>>;
|
172
|
-
}, z.core.$strip
|
135
|
+
}, z.core.$strip>>>;
|
173
136
|
}, z.core.$strip>]>>>;
|
174
137
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
175
138
|
color: z.ZodOptional<z.ZodObject<{
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { type Locale } from '../../i18n';
|
3
|
-
import
|
3
|
+
import type { MeasureTree } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
4
5
|
/**
|
5
6
|
* 分组玫瑰图类型定义
|
6
7
|
* @description 分组玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
|
@@ -40,10 +41,10 @@ export interface RoseParallel {
|
|
40
41
|
/**
|
41
42
|
* 指标
|
42
43
|
* @description 玫瑰图的指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
|
43
|
-
* @type {
|
44
|
+
* @type {MeasureTree}
|
44
45
|
* @example [{id: 'value', alias: '数值'}]
|
45
46
|
*/
|
46
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
47
48
|
/**
|
48
49
|
* 图表的背景颜色
|
49
50
|
* @default transparent 默认为透明背景
|
@@ -92,55 +93,17 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
92
93
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
94
|
id: z.ZodString;
|
94
95
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
location: z.
|
96
|
+
location: z.ZodDefault<z.ZodEnum<{
|
96
97
|
dimension: "dimension";
|
97
98
|
rowDimension: "rowDimension";
|
98
99
|
columnDimension: "columnDimension";
|
99
|
-
}
|
100
|
+
}>>;
|
100
101
|
}, z.core.$strip>>>;
|
101
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
102
|
-
id: z.ZodString;
|
103
|
-
alias: z.ZodOptional<z.ZodString>;
|
104
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
105
|
-
id: z.ZodString;
|
106
|
-
alias: z.ZodOptional<z.ZodString>;
|
107
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
108
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
109
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
110
|
-
number: "number";
|
111
|
-
percent: "percent";
|
112
|
-
permille: "permille";
|
113
|
-
scientific: "scientific";
|
114
|
-
}>>>;
|
115
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
116
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
117
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
118
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
119
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
120
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
121
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
122
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
123
|
-
morePrecision: "morePrecision";
|
124
|
-
lessPrecision: "lessPrecision";
|
125
|
-
}>>>;
|
126
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
127
|
-
floor: "floor";
|
128
|
-
ceil: "ceil";
|
129
|
-
expand: "expand";
|
130
|
-
trunc: "trunc";
|
131
|
-
halfCeil: "halfCeil";
|
132
|
-
halfFloor: "halfFloor";
|
133
|
-
halfExpand: "halfExpand";
|
134
|
-
halfTrunc: "halfTrunc";
|
135
|
-
halfEven: "halfEven";
|
136
|
-
}>>>;
|
137
|
-
}, z.core.$strip>>>>;
|
138
|
-
}, z.core.$strip>]>>>;
|
139
|
-
}, z.core.$strip>, z.ZodObject<{
|
102
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
140
103
|
id: z.ZodString;
|
141
104
|
alias: z.ZodOptional<z.ZodString>;
|
142
|
-
autoFormat: z.
|
143
|
-
format: z.
|
105
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
106
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
144
107
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
145
108
|
number: "number";
|
146
109
|
percent: "percent";
|
@@ -169,7 +132,7 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
169
132
|
halfTrunc: "halfTrunc";
|
170
133
|
halfEven: "halfEven";
|
171
134
|
}>>>;
|
172
|
-
}, z.core.$strip
|
135
|
+
}, z.core.$strip>>>;
|
173
136
|
}, z.core.$strip>]>>>;
|
174
137
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
175
138
|
color: z.ZodOptional<z.ZodObject<{
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, MeasureTree } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 散点图类型定义
|
@@ -41,7 +41,7 @@ export interface Scatter {
|
|
41
41
|
* @type {DimensionTree}
|
42
42
|
* @example [{id: "value", alias: "数值"}]
|
43
43
|
*/
|
44
|
-
measures?:
|
44
|
+
measures?: MeasureTree;
|
45
45
|
/**
|
46
46
|
* 图表的背景颜色
|
47
47
|
* @default transparent 默认为透明背景
|
@@ -134,55 +134,17 @@ export declare const zScatter: z.ZodObject<{
|
|
134
134
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
135
135
|
id: z.ZodString;
|
136
136
|
alias: z.ZodOptional<z.ZodString>;
|
137
|
-
location: z.
|
137
|
+
location: z.ZodDefault<z.ZodEnum<{
|
138
138
|
dimension: "dimension";
|
139
139
|
rowDimension: "rowDimension";
|
140
140
|
columnDimension: "columnDimension";
|
141
|
-
}
|
141
|
+
}>>;
|
142
142
|
}, z.core.$strip>>>;
|
143
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
144
|
-
id: z.ZodString;
|
145
|
-
alias: z.ZodOptional<z.ZodString>;
|
146
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
147
|
-
id: z.ZodString;
|
148
|
-
alias: z.ZodOptional<z.ZodString>;
|
149
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
150
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
151
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
152
|
-
number: "number";
|
153
|
-
percent: "percent";
|
154
|
-
permille: "permille";
|
155
|
-
scientific: "scientific";
|
156
|
-
}>>>;
|
157
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
158
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
159
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
160
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
161
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
162
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
163
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
164
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
165
|
-
morePrecision: "morePrecision";
|
166
|
-
lessPrecision: "lessPrecision";
|
167
|
-
}>>>;
|
168
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
169
|
-
floor: "floor";
|
170
|
-
ceil: "ceil";
|
171
|
-
expand: "expand";
|
172
|
-
trunc: "trunc";
|
173
|
-
halfCeil: "halfCeil";
|
174
|
-
halfFloor: "halfFloor";
|
175
|
-
halfExpand: "halfExpand";
|
176
|
-
halfTrunc: "halfTrunc";
|
177
|
-
halfEven: "halfEven";
|
178
|
-
}>>>;
|
179
|
-
}, z.core.$strip>>>>;
|
180
|
-
}, z.core.$strip>]>>>;
|
181
|
-
}, z.core.$strip>, z.ZodObject<{
|
143
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
182
144
|
id: z.ZodString;
|
183
145
|
alias: z.ZodOptional<z.ZodString>;
|
184
|
-
autoFormat: z.
|
185
|
-
format: z.
|
146
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
147
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
186
148
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
187
149
|
number: "number";
|
188
150
|
percent: "percent";
|
@@ -211,7 +173,7 @@ export declare const zScatter: z.ZodObject<{
|
|
211
173
|
halfTrunc: "halfTrunc";
|
212
174
|
halfEven: "halfEven";
|
213
175
|
}>>>;
|
214
|
-
}, z.core.$strip
|
176
|
+
}, z.core.$strip>>>;
|
215
177
|
}, z.core.$strip>]>>>;
|
216
178
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
217
179
|
color: z.ZodOptional<z.ZodObject<{
|
@@ -73,55 +73,17 @@ export declare const zTable: z.ZodObject<{
|
|
73
73
|
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
74
74
|
id: z.ZodString;
|
75
75
|
alias: z.ZodOptional<z.ZodString>;
|
76
|
-
location: z.
|
76
|
+
location: z.ZodDefault<z.ZodEnum<{
|
77
77
|
dimension: "dimension";
|
78
78
|
rowDimension: "rowDimension";
|
79
79
|
columnDimension: "columnDimension";
|
80
|
-
}
|
80
|
+
}>>;
|
81
81
|
}, z.core.$strip>>>;
|
82
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
82
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
83
83
|
id: z.ZodString;
|
84
84
|
alias: z.ZodOptional<z.ZodString>;
|
85
|
-
|
86
|
-
|
87
|
-
alias: z.ZodOptional<z.ZodString>;
|
88
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
89
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
90
|
-
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
91
|
-
number: "number";
|
92
|
-
percent: "percent";
|
93
|
-
permille: "permille";
|
94
|
-
scientific: "scientific";
|
95
|
-
}>>>;
|
96
|
-
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
97
|
-
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
98
|
-
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
99
|
-
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
100
|
-
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
101
|
-
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
102
|
-
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
103
|
-
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
104
|
-
morePrecision: "morePrecision";
|
105
|
-
lessPrecision: "lessPrecision";
|
106
|
-
}>>>;
|
107
|
-
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
108
|
-
floor: "floor";
|
109
|
-
ceil: "ceil";
|
110
|
-
expand: "expand";
|
111
|
-
trunc: "trunc";
|
112
|
-
halfCeil: "halfCeil";
|
113
|
-
halfFloor: "halfFloor";
|
114
|
-
halfExpand: "halfExpand";
|
115
|
-
halfTrunc: "halfTrunc";
|
116
|
-
halfEven: "halfEven";
|
117
|
-
}>>>;
|
118
|
-
}, z.core.$strip>>>>;
|
119
|
-
}, z.core.$strip>]>>>;
|
120
|
-
}, z.core.$strip>, z.ZodObject<{
|
121
|
-
id: z.ZodString;
|
122
|
-
alias: z.ZodOptional<z.ZodString>;
|
123
|
-
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
124
|
-
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
85
|
+
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
86
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
125
87
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
126
88
|
number: "number";
|
127
89
|
percent: "percent";
|
@@ -150,7 +112,7 @@ export declare const zTable: z.ZodObject<{
|
|
150
112
|
halfTrunc: "halfTrunc";
|
151
113
|
halfEven: "halfEven";
|
152
114
|
}>>>;
|
153
|
-
}, z.core.$strip
|
115
|
+
}, z.core.$strip>>>;
|
154
116
|
}, z.core.$strip>]>>>;
|
155
117
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
156
118
|
theme: z.ZodOptional<z.ZodString>;
|
@@ -1,4 +1,28 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
export declare const zTableConfig: z.ZodObject<{
|
3
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
4
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
5
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
6
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
7
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
8
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
9
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
10
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
11
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
12
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
13
|
+
}, z.core.$strip>;
|
14
|
+
export declare const zPivotTableConfig: z.ZodObject<{
|
15
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
16
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
17
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
18
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
19
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
20
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
21
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
22
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
23
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
24
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
25
|
+
}, z.core.$strip>;
|
2
26
|
export declare const zLineConfig: z.ZodObject<{
|
3
27
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
4
28
|
label: z.ZodOptional<z.ZodObject<{
|
@@ -1939,8 +1963,30 @@ export declare const zFunnelConfig: z.ZodObject<{
|
|
1939
1963
|
}, z.core.$strip>>;
|
1940
1964
|
}, z.core.$strip>;
|
1941
1965
|
export declare const zConfig: z.ZodObject<{
|
1942
|
-
table: z.ZodOptional<z.ZodObject<{
|
1943
|
-
|
1966
|
+
table: z.ZodOptional<z.ZodObject<{
|
1967
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
1968
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
1969
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
1970
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
1971
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
1972
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
1973
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
1974
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
1975
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
1976
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
1977
|
+
}, z.core.$strip>>;
|
1978
|
+
pivotTable: z.ZodOptional<z.ZodObject<{
|
1979
|
+
borderColor: z.ZodOptional<z.ZodString>;
|
1980
|
+
bodyFontSize: z.ZodOptional<z.ZodNumber>;
|
1981
|
+
bodyFontColor: z.ZodOptional<z.ZodString>;
|
1982
|
+
bodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
1983
|
+
hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
|
1984
|
+
headerFontSize: z.ZodOptional<z.ZodNumber>;
|
1985
|
+
headerFontColor: z.ZodOptional<z.ZodString>;
|
1986
|
+
headerBackgroundColor: z.ZodOptional<z.ZodString>;
|
1987
|
+
hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
|
1988
|
+
selectedBorderColor: z.ZodOptional<z.ZodString>;
|
1989
|
+
}, z.core.$strip>>;
|
1944
1990
|
line: z.ZodOptional<z.ZodObject<{
|
1945
1991
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
1946
1992
|
label: z.ZodOptional<z.ZodObject<{
|
@@ -3881,6 +3927,8 @@ export declare const zConfig: z.ZodObject<{
|
|
3881
3927
|
}, z.core.$strip>>;
|
3882
3928
|
}, z.core.$strip>>;
|
3883
3929
|
}, z.core.$strip>;
|
3930
|
+
export type TableConfig = z.infer<typeof zTableConfig>;
|
3931
|
+
export type PivotTableConfig = z.infer<typeof zPivotTableConfig>;
|
3884
3932
|
export type LineConfig = z.infer<typeof zLineConfig>;
|
3885
3933
|
export type ColumnConfig = z.infer<typeof zColumnConfig>;
|
3886
3934
|
export type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>;
|
@@ -1,65 +1,41 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
export type Dimension = {
|
3
|
+
id: string;
|
4
|
+
alias?: string;
|
5
|
+
location?: 'dimension' | 'rowDimension' | 'columnDimension';
|
6
|
+
};
|
7
|
+
export type DimensionGroup = {
|
8
|
+
id: string;
|
9
|
+
alias?: string;
|
10
|
+
children?: (Dimension | DimensionGroup)[];
|
11
|
+
};
|
12
|
+
export type Dimensions = Dimension[];
|
13
|
+
export type DimensionTree = (Dimension | DimensionGroup)[];
|
2
14
|
export declare const zDimension: z.ZodObject<{
|
3
15
|
id: z.ZodString;
|
4
16
|
alias: z.ZodOptional<z.ZodString>;
|
5
|
-
location: z.
|
17
|
+
location: z.ZodDefault<z.ZodEnum<{
|
6
18
|
dimension: "dimension";
|
7
19
|
rowDimension: "rowDimension";
|
8
20
|
columnDimension: "columnDimension";
|
9
|
-
}
|
10
|
-
}, z.core.$strip>;
|
11
|
-
export declare const zDimensionGroup: z.ZodObject<{
|
12
|
-
id: z.ZodString;
|
13
|
-
alias: z.ZodOptional<z.ZodString>;
|
14
|
-
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
15
|
-
id: z.ZodString;
|
16
|
-
alias: z.ZodOptional<z.ZodString>;
|
17
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
18
|
-
dimension: "dimension";
|
19
|
-
rowDimension: "rowDimension";
|
20
|
-
columnDimension: "columnDimension";
|
21
|
-
}>>>;
|
22
|
-
}, z.core.$strip>]>>>;
|
21
|
+
}>>;
|
23
22
|
}, z.core.$strip>;
|
23
|
+
export declare const zDimensionGroup: z.ZodType<DimensionGroup>;
|
24
24
|
export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
25
25
|
id: z.ZodString;
|
26
26
|
alias: z.ZodOptional<z.ZodString>;
|
27
|
-
location: z.
|
27
|
+
location: z.ZodDefault<z.ZodEnum<{
|
28
28
|
dimension: "dimension";
|
29
29
|
rowDimension: "rowDimension";
|
30
30
|
columnDimension: "columnDimension";
|
31
|
-
}
|
31
|
+
}>>;
|
32
32
|
}, z.core.$strip>>;
|
33
|
-
export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
33
|
+
export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodType<DimensionGroup, unknown, z.core.$ZodTypeInternals<DimensionGroup, unknown>>, z.ZodObject<{
|
34
34
|
id: z.ZodString;
|
35
35
|
alias: z.ZodOptional<z.ZodString>;
|
36
|
-
|
37
|
-
id: z.ZodString;
|
38
|
-
alias: z.ZodOptional<z.ZodString>;
|
39
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
40
|
-
dimension: "dimension";
|
41
|
-
rowDimension: "rowDimension";
|
42
|
-
columnDimension: "columnDimension";
|
43
|
-
}>>>;
|
44
|
-
}, z.core.$strip>]>>>;
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
46
|
-
id: z.ZodString;
|
47
|
-
alias: z.ZodOptional<z.ZodString>;
|
48
|
-
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
36
|
+
location: z.ZodDefault<z.ZodEnum<{
|
49
37
|
dimension: "dimension";
|
50
38
|
rowDimension: "rowDimension";
|
51
39
|
columnDimension: "columnDimension";
|
52
|
-
}
|
40
|
+
}>>;
|
53
41
|
}, z.core.$strip>]>>;
|
54
|
-
export type Dimension = {
|
55
|
-
id: string;
|
56
|
-
alias?: string;
|
57
|
-
location?: 'dimension' | 'rowDimension' | 'columnDimension';
|
58
|
-
};
|
59
|
-
export type DimensionGroup = {
|
60
|
-
id: string;
|
61
|
-
alias?: string;
|
62
|
-
children?: (Dimension | DimensionGroup)[];
|
63
|
-
};
|
64
|
-
export type Dimensions = Dimension[];
|
65
|
-
export type DimensionTree = (Dimension | DimensionGroup)[];
|