@visactor/vseed 0.0.12 → 0.0.13
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 +3 -0
- package/dist/i18n/i18n.d.ts +17 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/index.cjs +200 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +146 -17
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/pipes/i18n/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/i18n/locale.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/index.d.ts +1 -0
- package/dist/pipeline/constant.d.ts +1 -1
- package/dist/pipeline/utils/format/createFormatter.d.ts +2 -1
- package/dist/pipeline/utils/format/createNumFormatter.d.ts +2 -1
- package/dist/pipeline/utils/format/index.d.ts +2 -2
- package/dist/types/advancedVSeed.d.ts +8 -4
- package/dist/types/chartType/area/area.d.ts +7 -0
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +7 -0
- package/dist/types/chartType/bar/bar.d.ts +7 -0
- package/dist/types/chartType/barParallel/barParallel.d.ts +7 -0
- package/dist/types/chartType/barPercent/barPercent.d.ts +7 -0
- package/dist/types/chartType/column/column.d.ts +7 -0
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +7 -0
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +7 -0
- package/dist/types/chartType/donut/donut.d.ts +7 -0
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +7 -0
- package/dist/types/chartType/line/line.d.ts +7 -0
- package/dist/types/chartType/pie/pie.d.ts +7 -0
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +7 -0
- package/dist/types/chartType/rose/rose.d.ts +7 -0
- package/dist/types/chartType/table/table.d.ts +7 -0
- package/dist/types/i18n/i18n.d.ts +9 -0
- package/dist/types/i18n/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/properties/measures/measures.d.ts +8 -8
- package/dist/types/vseed.d.ts +13 -9
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export * from './locale';
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export declare const ANNOTATION_Z_INDEX = 1000;
|
2
|
-
export declare const LINEAR_AXIS_INNER_OFFSET_TOP =
|
2
|
+
export declare const LINEAR_AXIS_INNER_OFFSET_TOP = 7;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import type { Formatter, NumFormat } from '../../../types';
|
1
|
+
import type { Formatter, Locale, NumFormat } from '../../../types';
|
2
2
|
export declare const createFormatter: (format: Partial<NumFormat>) => Formatter;
|
3
|
+
export declare const autoFormatter: (value?: number | string, locale?: Locale) => string;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import type { Formatter, NumFormat } from '../../../types';
|
1
|
+
import type { Formatter, Locale, NumFormat } from '../../../types';
|
2
2
|
export declare const createNumFormatter: (format: NumFormat) => Formatter;
|
3
|
+
export declare const autoNumFormatter: (value?: number | string, locale?: Locale) => string;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export
|
2
|
-
export
|
1
|
+
export * from './createNumFormatter';
|
2
|
+
export * from './createFormatter';
|
@@ -50,7 +50,7 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
50
50
|
alias: z.ZodOptional<z.ZodString>;
|
51
51
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
52
52
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
53
|
-
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
53
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
54
54
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
55
55
|
number: "number";
|
56
56
|
percent: "percent";
|
@@ -67,14 +67,14 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
67
67
|
}>>>;
|
68
68
|
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
69
69
|
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
70
|
-
}, z.core.$strip
|
70
|
+
}, z.core.$strip>>>>;
|
71
71
|
}, z.core.$strip>]>>>;
|
72
72
|
}, z.core.$strip>, z.ZodObject<{
|
73
73
|
id: z.ZodString;
|
74
74
|
alias: z.ZodOptional<z.ZodString>;
|
75
75
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
76
76
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
77
|
-
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
77
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
78
78
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
79
79
|
number: "number";
|
80
80
|
percent: "percent";
|
@@ -91,7 +91,7 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
91
91
|
}>>>;
|
92
92
|
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
93
93
|
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
94
|
-
}, z.core.$strip
|
94
|
+
}, z.core.$strip>>>>;
|
95
95
|
}, z.core.$strip>]>>>;
|
96
96
|
encoding: z.ZodArray<z.ZodObject<{
|
97
97
|
x: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -4709,5 +4709,9 @@ export declare const zAdvancedVSeed: z.ZodObject<{
|
|
4709
4709
|
outerPadding: z.ZodOptional<z.ZodNumber>;
|
4710
4710
|
}, z.core.$strip>>]>>;
|
4711
4711
|
}, z.core.$strip>;
|
4712
|
+
locale: z.ZodDefault<z.ZodEnum<{
|
4713
|
+
"zh-CN": "zh-CN";
|
4714
|
+
"en-US": "en-US";
|
4715
|
+
}>>;
|
4712
4716
|
}, z.core.$strip>;
|
4713
4717
|
export type AdvancedVSeed = z.infer<typeof zAdvancedVSeed>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, Measures, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 面积图类型定义
|
@@ -140,4 +141,10 @@ export interface Area {
|
|
140
141
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
141
142
|
*/
|
142
143
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
144
|
+
/**
|
145
|
+
* 语言
|
146
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
147
|
+
* @default 'zh-CN'
|
148
|
+
*/
|
149
|
+
locale?: Locale;
|
143
150
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, AreaStyle, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, Measures, PointStyle, Theme, Tooltip, XBandAxis, YLinearAxis, CrosshairLine } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 百分比面积图类型定义
|
@@ -139,4 +140,10 @@ export interface AreaPercent {
|
|
139
140
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
140
141
|
*/
|
141
142
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
143
|
+
/**
|
144
|
+
* 语言
|
145
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
146
|
+
* @default 'zh-CN'
|
147
|
+
*/
|
148
|
+
locale?: Locale;
|
142
149
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 条形图类型定义
|
@@ -127,4 +128,10 @@ export interface Bar {
|
|
127
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
129
|
*/
|
129
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
130
137
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 并列条形图类型定义
|
@@ -127,4 +128,10 @@ export interface BarParallel {
|
|
127
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
129
|
*/
|
129
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
130
137
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XLinearAxis, YBandAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 百分比条形图类型定义
|
@@ -127,4 +128,10 @@ export interface BarPercent {
|
|
127
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
129
|
*/
|
129
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
130
137
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 柱状图类型定义
|
@@ -127,4 +128,10 @@ export interface Column {
|
|
127
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
129
|
*/
|
129
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
130
137
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 并列柱状图类型定义
|
@@ -127,4 +128,10 @@ export interface ColumnParallel {
|
|
127
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
129
|
*/
|
129
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
130
137
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, BarStyle, Color, CrosshairRect, Dataset, Dimensions, Label, Legend, Measures, StackCornerRadius, Theme, Tooltip, XBandAxis, YLinearAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 百分比柱状图类型定义
|
@@ -127,4 +128,10 @@ export interface ColumnPercent {
|
|
127
128
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
128
129
|
*/
|
129
130
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
131
|
+
/**
|
132
|
+
* 语言
|
133
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
134
|
+
* @default 'zh-CN'
|
135
|
+
*/
|
136
|
+
locale?: Locale;
|
130
137
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 环形图类型定义
|
@@ -77,4 +78,10 @@ export interface Donut {
|
|
77
78
|
* @example 'customThemeName'
|
78
79
|
*/
|
79
80
|
theme?: Theme;
|
81
|
+
/**
|
82
|
+
* 语言
|
83
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
84
|
+
* @default 'zh-CN'
|
85
|
+
*/
|
86
|
+
locale?: Locale;
|
80
87
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 双轴图类型定义
|
@@ -79,4 +80,10 @@ export interface DualAxis {
|
|
79
80
|
* @example 'customThemeName'
|
80
81
|
*/
|
81
82
|
theme?: Theme;
|
83
|
+
/**
|
84
|
+
* 语言
|
85
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
86
|
+
* @default 'zh-CN'
|
87
|
+
*/
|
88
|
+
locale?: Locale;
|
82
89
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, LineStyle, Measures, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 折线图类型定义
|
@@ -130,4 +131,10 @@ export interface Line {
|
|
130
131
|
* @description 标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
|
131
132
|
*/
|
132
133
|
annotationArea?: AnnotationArea | AnnotationArea[];
|
134
|
+
/**
|
135
|
+
* 语言
|
136
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
137
|
+
* @default 'zh-CN'
|
138
|
+
*/
|
139
|
+
locale?: Locale;
|
133
140
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 饼图类型定义
|
@@ -77,4 +78,10 @@ export interface Pie {
|
|
77
78
|
* @example 'customThemeName'
|
78
79
|
*/
|
79
80
|
theme?: Theme;
|
81
|
+
/**
|
82
|
+
* 语言
|
83
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
84
|
+
* @default 'zh-CN'
|
85
|
+
*/
|
86
|
+
locale?: Locale;
|
80
87
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Dataset, Dimensions, Measures, Theme } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 透视表类型定义
|
@@ -57,4 +58,10 @@ export interface PivotTable {
|
|
57
58
|
* @example 'customThemeName'
|
58
59
|
*/
|
59
60
|
theme?: Theme;
|
61
|
+
/**
|
62
|
+
* 语言
|
63
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
64
|
+
* @default 'zh-CN'
|
65
|
+
*/
|
66
|
+
locale?: Locale;
|
60
67
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 玫瑰图类型定义
|
@@ -77,4 +78,10 @@ export interface Rose {
|
|
77
78
|
* @example 'customThemeName'
|
78
79
|
*/
|
79
80
|
theme?: Theme;
|
81
|
+
/**
|
82
|
+
* 语言
|
83
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
84
|
+
* @default 'zh-CN'
|
85
|
+
*/
|
86
|
+
locale?: Locale;
|
80
87
|
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { Locale } from '../../i18n';
|
1
2
|
import type { BackgroundColor, Dataset, Dimensions, Measures, Theme } from '../../properties';
|
2
3
|
/**
|
3
4
|
* 表格类型定义
|
@@ -57,4 +58,10 @@ export interface Table {
|
|
57
58
|
* @example 'customThemeName'
|
58
59
|
*/
|
59
60
|
theme?: Theme;
|
61
|
+
/**
|
62
|
+
* 语言
|
63
|
+
* @description 图表语言配置, 支持'zh-CN'与'en-US'两种语言, 另外可以调用 intl.setLocale('zh-CN') 方法设置语言
|
64
|
+
* @default 'zh-CN'
|
65
|
+
*/
|
66
|
+
locale?: Locale;
|
60
67
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './i18n';
|
package/dist/types/index.d.ts
CHANGED
@@ -4,7 +4,7 @@ export declare const zMeasure: z.ZodObject<{
|
|
4
4
|
alias: z.ZodOptional<z.ZodString>;
|
5
5
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
6
6
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
7
|
-
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
7
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
8
8
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
9
9
|
number: "number";
|
10
10
|
percent: "percent";
|
@@ -21,7 +21,7 @@ export declare const zMeasure: z.ZodObject<{
|
|
21
21
|
}>>>;
|
22
22
|
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
23
23
|
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
24
|
-
}, z.core.$strip
|
24
|
+
}, z.core.$strip>>>>;
|
25
25
|
}, z.core.$strip>;
|
26
26
|
export declare const zMeasureGroup: z.ZodObject<{
|
27
27
|
id: z.ZodString;
|
@@ -32,7 +32,7 @@ export declare const zMeasureGroup: z.ZodObject<{
|
|
32
32
|
alias: z.ZodOptional<z.ZodString>;
|
33
33
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
34
34
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
35
|
-
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
35
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
36
36
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
37
37
|
number: "number";
|
38
38
|
percent: "percent";
|
@@ -49,7 +49,7 @@ export declare const zMeasureGroup: z.ZodObject<{
|
|
49
49
|
}>>>;
|
50
50
|
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
51
51
|
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
52
|
-
}, z.core.$strip
|
52
|
+
}, z.core.$strip>>>>;
|
53
53
|
}, z.core.$strip>]>>>;
|
54
54
|
}, z.core.$strip>;
|
55
55
|
export declare const zMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
@@ -61,7 +61,7 @@ export declare const zMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject
|
|
61
61
|
alias: z.ZodOptional<z.ZodString>;
|
62
62
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
63
63
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
64
|
-
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
64
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
65
65
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
66
66
|
number: "number";
|
67
67
|
percent: "percent";
|
@@ -78,14 +78,14 @@ export declare const zMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject
|
|
78
78
|
}>>>;
|
79
79
|
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
80
80
|
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
81
|
-
}, z.core.$strip
|
81
|
+
}, z.core.$strip>>>>;
|
82
82
|
}, z.core.$strip>]>>>;
|
83
83
|
}, z.core.$strip>, z.ZodObject<{
|
84
84
|
id: z.ZodString;
|
85
85
|
alias: z.ZodOptional<z.ZodString>;
|
86
86
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
87
87
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
88
|
-
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
88
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
89
89
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
90
90
|
number: "number";
|
91
91
|
percent: "percent";
|
@@ -102,7 +102,7 @@ export declare const zMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject
|
|
102
102
|
}>>>;
|
103
103
|
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
104
104
|
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
105
|
-
}, z.core.$strip
|
105
|
+
}, z.core.$strip>>>>;
|
106
106
|
}, z.core.$strip>]>>>;
|
107
107
|
export type Measures = z.infer<typeof zMeasures>;
|
108
108
|
export type Measure = z.infer<typeof zMeasure>;
|
package/dist/types/vseed.d.ts
CHANGED
@@ -34,7 +34,7 @@ export declare const zVSeed: z.ZodObject<{
|
|
34
34
|
dualAxis: "dualAxis";
|
35
35
|
}>;
|
36
36
|
dataset: z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>;
|
37
|
-
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
37
|
+
dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
38
38
|
id: z.ZodString;
|
39
39
|
alias: z.ZodOptional<z.ZodString>;
|
40
40
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -43,8 +43,8 @@ export declare const zVSeed: z.ZodObject<{
|
|
43
43
|
rowDimension: "rowDimension";
|
44
44
|
columnDimension: "columnDimension";
|
45
45
|
}>;
|
46
|
-
}, z.core.$strip
|
47
|
-
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
46
|
+
}, z.core.$strip>>>>;
|
47
|
+
measures: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
48
48
|
id: z.ZodString;
|
49
49
|
alias: z.ZodOptional<z.ZodString>;
|
50
50
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
@@ -53,7 +53,7 @@ export declare const zVSeed: z.ZodObject<{
|
|
53
53
|
alias: z.ZodOptional<z.ZodString>;
|
54
54
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
55
55
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
56
|
-
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
56
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
57
57
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
58
58
|
number: "number";
|
59
59
|
percent: "percent";
|
@@ -70,14 +70,14 @@ export declare const zVSeed: z.ZodObject<{
|
|
70
70
|
}>>>;
|
71
71
|
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
72
72
|
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
73
|
-
}, z.core.$strip
|
73
|
+
}, z.core.$strip>>>>;
|
74
74
|
}, z.core.$strip>]>>>;
|
75
75
|
}, z.core.$strip>, z.ZodObject<{
|
76
76
|
id: z.ZodString;
|
77
77
|
alias: z.ZodOptional<z.ZodString>;
|
78
78
|
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
79
79
|
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
80
|
-
format: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
80
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
81
81
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
82
82
|
number: "number";
|
83
83
|
percent: "percent";
|
@@ -94,8 +94,12 @@ export declare const zVSeed: z.ZodObject<{
|
|
94
94
|
}>>>;
|
95
95
|
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
96
96
|
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
97
|
-
}, z.core.$strip
|
98
|
-
}, z.core.$strip>]
|
99
|
-
backgroundColor: z.ZodOptional<z.ZodDefault<z.ZodString
|
97
|
+
}, z.core.$strip>>>>;
|
98
|
+
}, z.core.$strip>]>>>>;
|
99
|
+
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
100
|
+
locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
101
|
+
"zh-CN": "zh-CN";
|
102
|
+
"en-US": "en-US";
|
103
|
+
}>>>;
|
100
104
|
}, z.core.$strip>;
|
101
105
|
export declare const VSeedJSONSchema: z.core.JSONSchema.JSONSchema;
|