@visactor/vseed 0.0.9 → 0.0.11
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 +1035 -36
- package/dist/index.cjs +923 -66
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +905 -63
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/annotation/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/annotation/annotationArea.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationAreaBand.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationHorizontalLine.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationPoint.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/annotationVerticalLine.d.ts +2 -0
- package/dist/pipeline/spec/pipes/annotation/index.d.ts +5 -0
- package/dist/pipeline/spec/pipes/annotation/utils.d.ts +2 -0
- package/dist/pipeline/spec/pipes/index.d.ts +1 -0
- package/dist/types/advancedVSeed.d.ts +886 -12
- package/dist/types/builder/builder.d.ts +3 -0
- package/dist/types/chartType/area/area.d.ts +21 -1
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +21 -1
- package/dist/types/chartType/bar/bar.d.ts +21 -1
- package/dist/types/chartType/barParallel/barParallel.d.ts +21 -1
- package/dist/types/chartType/barPercent/barPercent.d.ts +21 -1
- package/dist/types/chartType/column/column.d.ts +21 -1
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +21 -1
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +21 -1
- package/dist/types/chartType/line/line.d.ts +21 -1
- package/dist/types/dataSelector/selector.d.ts +60 -6
- package/dist/types/properties/annotation/annotation.d.ts +824 -0
- package/dist/types/properties/annotation/annotationArea.d.ts +248 -0
- package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +253 -0
- package/dist/types/properties/annotation/annotationPoint.d.ts +199 -0
- package/dist/types/properties/annotation/annotationVerticalLine.d.ts +253 -0
- package/dist/types/properties/annotation/index.d.ts +5 -0
- package/dist/types/properties/index.d.ts +1 -0
- package/dist/types/properties/markStyle/barStyle.d.ts +65 -13
- package/dist/types/properties/markStyle/markStyle.d.ts +64 -12
- package/package.json +1 -1
@@ -10,6 +10,9 @@ export interface VSeedBuilder {
|
|
10
10
|
getAdvancedPipeline: (chartType: ChartType) => AdvancedPipeline;
|
11
11
|
getSpecPipeline: (chartType: ChartType) => SpecPipeline;
|
12
12
|
getTheme: (themeKey: string) => CustomThemeConfig;
|
13
|
+
getThemeMap: () => Record<string, CustomThemeConfig>;
|
14
|
+
get spec(): Spec | null;
|
15
|
+
set spec(value: Spec | null);
|
13
16
|
get vseed(): VSeed;
|
14
17
|
set vseed(value: VSeed);
|
15
18
|
get advancedVSeed(): AdvancedVSeed | null;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 面积图类型定义
|
4
4
|
* @description 面积图, 适用于展示数据随时间变化的趋势及累积关系, 通过填充区域增强数据对比. X轴为类目轴(分类数据), Y轴为数值轴(连续数据).
|
@@ -88,4 +88,24 @@ export interface Area {
|
|
88
88
|
* @example 'customThemeName'
|
89
89
|
*/
|
90
90
|
theme?: Theme;
|
91
|
+
/**
|
92
|
+
* 标注点
|
93
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
94
|
+
*/
|
95
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
96
|
+
/**
|
97
|
+
* 标注垂直线
|
98
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
99
|
+
*/
|
100
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
101
|
+
/**
|
102
|
+
* 标注水平线
|
103
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
104
|
+
*/
|
105
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
106
|
+
/**
|
107
|
+
* 标注区域
|
108
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
109
|
+
*/
|
110
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
91
111
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比面积图类型定义
|
4
4
|
* @description 百分比面积图,适用于展示多类别占比随时间变化的趋势,Y轴以百分比形式展示占比关系
|
@@ -87,4 +87,24 @@ export interface AreaPercent {
|
|
87
87
|
* @example 'customThemeName'
|
88
88
|
*/
|
89
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 标注点
|
92
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
93
|
+
*/
|
94
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
95
|
+
/**
|
96
|
+
* 标注垂直线
|
97
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
98
|
+
*/
|
99
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
100
|
+
/**
|
101
|
+
* 标注水平线
|
102
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
103
|
+
*/
|
104
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
105
|
+
/**
|
106
|
+
* 标注区域
|
107
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
108
|
+
*/
|
109
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
90
110
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 条形图类型定义
|
4
4
|
* @description 条形图,适用于横向数据对比场景,Y轴为类目轴(分类数据),X轴为数值轴(连续数据),柱子横向排列
|
@@ -96,4 +96,24 @@ export interface Bar {
|
|
96
96
|
* 若未配置selector, 则样式全局生效.
|
97
97
|
*/
|
98
98
|
barStyle?: BarStyle;
|
99
|
+
/**
|
100
|
+
* 标注点
|
101
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
|
+
*/
|
103
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
104
|
+
/**
|
105
|
+
* 标注垂直线
|
106
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
107
|
+
*/
|
108
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
109
|
+
/**
|
110
|
+
* 标注水平线
|
111
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
112
|
+
*/
|
113
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
114
|
+
/**
|
115
|
+
* 标注区域
|
116
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
|
+
*/
|
118
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
99
119
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 并列条形图类型定义
|
4
4
|
* @description 并列条形图,适用于多指标横向并行对比场景,多个条形平行排列展示不同指标值
|
@@ -96,4 +96,24 @@ export interface BarParallel {
|
|
96
96
|
* 若未配置selector, 则样式全局生效.
|
97
97
|
*/
|
98
98
|
barStyle?: BarStyle;
|
99
|
+
/**
|
100
|
+
* 标注点
|
101
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
|
+
*/
|
103
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
104
|
+
/**
|
105
|
+
* 标注垂直线
|
106
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
107
|
+
*/
|
108
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
109
|
+
/**
|
110
|
+
* 标注水平线
|
111
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
112
|
+
*/
|
113
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
114
|
+
/**
|
115
|
+
* 标注区域
|
116
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
|
+
*/
|
118
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
99
119
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比条形图类型定义
|
4
4
|
* @description 百分比条形图,适用于横向展示各类别占比关系的场景,X轴以百分比形式展示数据占比
|
@@ -96,4 +96,24 @@ export interface BarPercent {
|
|
96
96
|
* 若未配置selector, 则样式全局生效.
|
97
97
|
*/
|
98
98
|
barStyle?: BarStyle;
|
99
|
+
/**
|
100
|
+
* 标注点
|
101
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
|
+
*/
|
103
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
104
|
+
/**
|
105
|
+
* 标注垂直线
|
106
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
107
|
+
*/
|
108
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
109
|
+
/**
|
110
|
+
* 标注水平线
|
111
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
112
|
+
*/
|
113
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
114
|
+
/**
|
115
|
+
* 标注区域
|
116
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
|
+
*/
|
118
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
99
119
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 柱状图类型定义
|
4
4
|
* @description 柱状图,适用于纵向数据对比场景,X轴为类目轴(分类数据),Y轴为数值轴(连续数据),柱子纵向排列
|
@@ -96,4 +96,24 @@ export interface Column {
|
|
96
96
|
* 若未配置selector, 则样式全局生效.
|
97
97
|
*/
|
98
98
|
barStyle?: BarStyle;
|
99
|
+
/**
|
100
|
+
* 标注点
|
101
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
|
+
*/
|
103
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
104
|
+
/**
|
105
|
+
* 标注垂直线
|
106
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
107
|
+
*/
|
108
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
109
|
+
/**
|
110
|
+
* 标注水平线
|
111
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
112
|
+
*/
|
113
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
114
|
+
/**
|
115
|
+
* 标注区域
|
116
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
|
+
*/
|
118
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
99
119
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 并列柱状图类型定义
|
4
4
|
* @description 并列柱状图,适用于多指标并行对比场景,多个柱子并列排列展示不同指标值
|
@@ -96,4 +96,24 @@ export interface ColumnParallel {
|
|
96
96
|
* 若未配置selector, 则样式全局生效.
|
97
97
|
*/
|
98
98
|
barStyle?: BarStyle;
|
99
|
+
/**
|
100
|
+
* 标注点
|
101
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
|
+
*/
|
103
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
104
|
+
/**
|
105
|
+
* 标注垂直线
|
106
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
107
|
+
*/
|
108
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
109
|
+
/**
|
110
|
+
* 标注水平线
|
111
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
112
|
+
*/
|
113
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
114
|
+
/**
|
115
|
+
* 标注区域
|
116
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
|
+
*/
|
118
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
99
119
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 百分比柱状图类型定义
|
4
4
|
* @description 百分比柱状图,适用于展示各类别占比关系的场景,Y轴以百分比形式展示数据占比
|
@@ -96,4 +96,24 @@ export interface ColumnPercent {
|
|
96
96
|
* 若未配置selector, 则样式全局生效.
|
97
97
|
*/
|
98
98
|
barStyle?: BarStyle;
|
99
|
+
/**
|
100
|
+
* 标注点
|
101
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
102
|
+
*/
|
103
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
104
|
+
/**
|
105
|
+
* 标注垂直线
|
106
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
107
|
+
*/
|
108
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
109
|
+
/**
|
110
|
+
* 标注水平线
|
111
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
112
|
+
*/
|
113
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
114
|
+
/**
|
115
|
+
* 标注区域
|
116
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
117
|
+
*/
|
118
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
99
119
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
1
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
2
|
/**
|
3
3
|
* 折线图类型定义
|
4
4
|
* @description 折线图,适用于展示数据随时间或有序类别变化的趋势,通过线段连接数据点形成趋势线
|
@@ -87,4 +87,24 @@ export interface Line {
|
|
87
87
|
* @example 'customThemeName'
|
88
88
|
*/
|
89
89
|
theme?: Theme;
|
90
|
+
/**
|
91
|
+
* 标注点
|
92
|
+
* @description 标注点配置, 根据选择的数据, 定义图表的标注点, 包括标注点的位置, 格式, 样式等.
|
93
|
+
*/
|
94
|
+
annotationPoint?: AnnotationPoint | AnnotationPoint[];
|
95
|
+
/**
|
96
|
+
* 标注垂直线
|
97
|
+
* @description 标注垂直线配置, 根据选择的数据, 定义图表的标注垂直线, 包括标注垂直线的位置, 样式等.
|
98
|
+
*/
|
99
|
+
annotationVerticalLine?: AnnotationVerticalLine | AnnotationVerticalLine[];
|
100
|
+
/**
|
101
|
+
* 标注水平线
|
102
|
+
* @description 标注水平线配置, 根据选择的数据, 定义图表的标注水平线, 包括标注水平线的位置, 样式等.
|
103
|
+
*/
|
104
|
+
annotationHorizontalLine?: AnnotationHorizontalLine | AnnotationHorizontalLine[];
|
105
|
+
/**
|
106
|
+
* 标注区域
|
107
|
+
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
108
|
+
*/
|
109
|
+
annotationArea?: AnnotationArea | AnnotationArea[];
|
90
110
|
}
|
@@ -4,31 +4,85 @@ export type ValueSelector = string | number;
|
|
4
4
|
export type PartialDatumSelector = Datum;
|
5
5
|
export type MeasureSelector = {
|
6
6
|
field: string;
|
7
|
-
operator
|
7
|
+
operator?: '=' | '==' | '!=' | '>' | '<' | '>=' | '<=' | 'between';
|
8
|
+
op?: '=' | '==' | '!=' | '>' | '<' | '>=' | '<=' | 'between';
|
8
9
|
value: string | number | Array<string | number>;
|
9
10
|
};
|
10
11
|
export type DimensionSelector = {
|
11
12
|
field: string;
|
12
|
-
operator
|
13
|
+
operator?: 'in' | 'not in';
|
14
|
+
op?: 'in' | 'not in';
|
13
15
|
value: string | number | Array<string | number>;
|
14
16
|
};
|
15
17
|
export type Selector = ValueSelector | PartialDatumSelector | MeasureSelector | DimensionSelector;
|
16
18
|
export type Selectors = Array<Selector>;
|
17
19
|
export declare const zSelector: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
18
20
|
field: z.ZodString;
|
19
|
-
operator: z.
|
21
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
22
|
+
"=": "=";
|
23
|
+
"==": "==";
|
24
|
+
"!=": "!=";
|
25
|
+
">": ">";
|
26
|
+
"<": "<";
|
27
|
+
">=": ">=";
|
28
|
+
"<=": "<=";
|
29
|
+
between: "between";
|
30
|
+
}>>;
|
31
|
+
op: z.ZodOptional<z.ZodEnum<{
|
32
|
+
"=": "=";
|
33
|
+
"==": "==";
|
34
|
+
"!=": "!=";
|
35
|
+
">": ">";
|
36
|
+
"<": "<";
|
37
|
+
">=": ">=";
|
38
|
+
"<=": "<=";
|
39
|
+
between: "between";
|
40
|
+
}>>;
|
20
41
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
21
42
|
}, z.core.$strip>, z.ZodObject<{
|
22
43
|
field: z.ZodString;
|
23
|
-
operator: z.
|
44
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
45
|
+
in: "in";
|
46
|
+
"not in": "not in";
|
47
|
+
}>>;
|
48
|
+
op: z.ZodOptional<z.ZodEnum<{
|
49
|
+
in: "in";
|
50
|
+
"not in": "not in";
|
51
|
+
}>>;
|
24
52
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
25
53
|
}, z.core.$strip>]>;
|
26
54
|
export declare const zSelectors: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
27
55
|
field: z.ZodString;
|
28
|
-
operator: z.
|
56
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
57
|
+
"=": "=";
|
58
|
+
"==": "==";
|
59
|
+
"!=": "!=";
|
60
|
+
">": ">";
|
61
|
+
"<": "<";
|
62
|
+
">=": ">=";
|
63
|
+
"<=": "<=";
|
64
|
+
between: "between";
|
65
|
+
}>>;
|
66
|
+
op: z.ZodOptional<z.ZodEnum<{
|
67
|
+
"=": "=";
|
68
|
+
"==": "==";
|
69
|
+
"!=": "!=";
|
70
|
+
">": ">";
|
71
|
+
"<": "<";
|
72
|
+
">=": ">=";
|
73
|
+
"<=": "<=";
|
74
|
+
between: "between";
|
75
|
+
}>>;
|
29
76
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
30
77
|
}, z.core.$strip>, z.ZodObject<{
|
31
78
|
field: z.ZodString;
|
32
|
-
operator: z.
|
79
|
+
operator: z.ZodOptional<z.ZodEnum<{
|
80
|
+
in: "in";
|
81
|
+
"not in": "not in";
|
82
|
+
}>>;
|
83
|
+
op: z.ZodOptional<z.ZodEnum<{
|
84
|
+
in: "in";
|
85
|
+
"not in": "not in";
|
86
|
+
}>>;
|
33
87
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
34
88
|
}, z.core.$strip>]>>;
|