@visactor/vseed 0.0.1 → 0.0.3
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/build.d.ts +3 -0
- package/dist/builder/builder/buildAdvanced.d.ts +3 -0
- package/dist/builder/builder/buildSpec.d.ts +4 -0
- package/dist/builder/builder/builder.d.ts +18 -0
- package/dist/builder/builder/index.d.ts +1 -0
- package/dist/builder/index.d.ts +2 -0
- package/dist/builder/register/index.d.ts +1 -0
- package/dist/builder/register/register.d.ts +10 -0
- package/dist/dataReshape/constant.d.ts +5 -0
- package/dist/dataReshape/dataReshapeFor1D1M.d.ts +13 -0
- package/dist/dataReshape/dataReshapeFor2D1M.d.ts +13 -0
- package/dist/dataReshape/foldMeasures.d.ts +31 -0
- package/dist/dataReshape/index.d.ts +4 -0
- package/dist/dataReshape/unfoldDimensions.d.ts +19 -0
- package/dist/index.cjs +893 -4
- package/dist/index.d.ts +5 -1
- package/dist/index.js +768 -2
- package/dist/pipeline/advanced/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/area.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/areaPercent.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/bar.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/barParallel.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/barPercent.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/column.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/columnParallel.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/columnPercent.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/index.d.ts +9 -0
- package/dist/pipeline/advanced/pipeline/line.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingCartesian.d.ts +3 -0
- package/dist/pipeline/advanced/pipes/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/index.d.ts +3 -0
- package/dist/pipeline/advanced/pipes/init/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/init/initAdvancedVSeed.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/reshape/index.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo1D1M.d.ts +8 -0
- package/dist/pipeline/advanced/pipes/reshape/reshapeTo2D1M.d.ts +8 -0
- package/dist/pipeline/index.d.ts +3 -0
- package/dist/pipeline/spec/index.d.ts +1 -0
- package/dist/pipeline/spec/pipeline/area.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/areaPercent.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/bar.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/barParallel.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/barPercent.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/column.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/columnParallel.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/columnPercent.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/index.d.ts +9 -0
- package/dist/pipeline/spec/pipeline/line.d.ts +2 -0
- package/dist/pipeline/spec/pipes/axes/index.d.ts +4 -0
- package/dist/pipeline/spec/pipes/axes/xBand.d.ts +2 -0
- package/dist/pipeline/spec/pipes/axes/xLinear.d.ts +2 -0
- package/dist/pipeline/spec/pipes/axes/yBand.d.ts +2 -0
- package/dist/pipeline/spec/pipes/axes/yLinear.d.ts +2 -0
- package/dist/pipeline/spec/pipes/dataset/dataset.d.ts +2 -0
- package/dist/pipeline/spec/pipes/dataset/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/index.d.ts +5 -0
- package/dist/pipeline/spec/pipes/init/area.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/bar.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/barParallel.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/column.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/columnParallel.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/index.d.ts +6 -0
- package/dist/pipeline/spec/pipes/init/line.d.ts +2 -0
- package/dist/pipeline/spec/pipes/percent/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/percent/percent.d.ts +2 -0
- package/dist/pipeline/spec/pipes/stack/index.d.ts +1 -0
- package/dist/pipeline/spec/pipes/stack/stack.d.ts +2 -0
- package/dist/pipeline/utils/index.d.ts +1 -0
- package/dist/pipeline/utils/pipeline.d.ts +9 -0
- package/dist/types/builder/builder.d.ts +10 -0
- package/dist/types/builder/index.d.ts +1 -0
- package/dist/types/chartType/area/area.d.ts +46 -0
- package/dist/types/chartType/area/index.d.ts +1 -0
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +45 -0
- package/dist/types/chartType/areaPercent/index.d.ts +1 -0
- package/dist/types/chartType/bar/bar.d.ts +45 -0
- package/dist/types/chartType/bar/index.d.ts +1 -0
- package/dist/types/chartType/barParallel/barParallel.d.ts +45 -0
- package/dist/types/chartType/barParallel/index.d.ts +1 -0
- package/dist/types/chartType/barPercent/barPercent.d.ts +45 -0
- package/dist/types/chartType/barPercent/index.d.ts +1 -0
- package/dist/types/chartType/column/column.d.ts +45 -0
- package/dist/types/chartType/column/index.d.ts +1 -0
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +45 -0
- package/dist/types/chartType/columnParallel/index.d.ts +1 -0
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +45 -0
- package/dist/types/chartType/columnPercent/index.d.ts +1 -0
- package/dist/types/chartType/donut/donut.d.ts +45 -0
- package/dist/types/chartType/donut/index.d.ts +1 -0
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +47 -0
- package/dist/types/chartType/dualAxis/index.d.ts +1 -0
- package/dist/types/chartType/index.d.ts +16 -0
- package/dist/types/chartType/line/index.d.ts +1 -0
- package/dist/types/chartType/line/line.d.ts +45 -0
- package/dist/types/chartType/pie/index.d.ts +1 -0
- package/dist/types/chartType/pie/pie.d.ts +45 -0
- package/dist/types/chartType/pivotTable/index.d.ts +1 -0
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +45 -0
- package/dist/types/chartType/rose/index.d.ts +1 -0
- package/dist/types/chartType/rose/rose.d.ts +45 -0
- package/dist/types/chartType/table/index.d.ts +1 -0
- package/dist/types/chartType/table/table.d.ts +45 -0
- package/dist/types/chartType/vseedDSL.d.ts +16 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/pipeline/advancedVSeed/advancedVSeed.d.ts +7 -0
- package/dist/types/pipeline/advancedVSeed/index.d.ts +1 -0
- package/dist/types/pipeline/index.d.ts +3 -0
- package/dist/types/pipeline/pipeline.d.ts +2 -0
- package/dist/types/pipeline/spec/index.d.ts +1 -0
- package/dist/types/pipeline/spec/spec.d.ts +9 -0
- package/dist/types/properties/advancedVSeed.d.ts +105 -0
- package/dist/types/properties/chartType/index.d.ts +2 -0
- package/dist/types/properties/chartType/zChartType.d.ts +36 -0
- package/dist/types/properties/dataset/dataset.d.ts +15 -0
- package/dist/types/properties/dataset/index.d.ts +2 -0
- package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +34 -0
- package/dist/types/properties/datasetReshapeInfo/index.d.ts +2 -0
- package/dist/types/properties/dimensions/dimensions.d.ts +23 -0
- package/dist/types/properties/dimensions/index.d.ts +2 -0
- package/dist/types/properties/encoding/encoding.d.ts +19 -0
- package/dist/types/properties/encoding/index.d.ts +2 -0
- package/dist/types/properties/index.d.ts +8 -0
- package/dist/types/properties/measures/index.d.ts +2 -0
- package/dist/types/properties/measures/measures.d.ts +109 -0
- package/dist/types/properties/vseed.d.ts +94 -0
- package/package.json +13 -2
@@ -0,0 +1,34 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export type FoldInfo = {
|
3
|
+
foldMap: Record<string, string | undefined>;
|
4
|
+
measureId: string;
|
5
|
+
measureName: string;
|
6
|
+
measureValue: string;
|
7
|
+
};
|
8
|
+
export type UnfoldInfo = {
|
9
|
+
groupName: string;
|
10
|
+
colorItems: string[];
|
11
|
+
};
|
12
|
+
export declare const zFoldInfo: z.ZodObject<{
|
13
|
+
foldMap: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
|
14
|
+
measureId: z.ZodString;
|
15
|
+
measureName: z.ZodString;
|
16
|
+
measureValue: z.ZodString;
|
17
|
+
}, z.core.$strip>;
|
18
|
+
export declare const zUnfoldInfo: z.ZodObject<{
|
19
|
+
colorItems: z.ZodArray<z.ZodString>;
|
20
|
+
groupName: z.ZodString;
|
21
|
+
}, z.core.$strip>;
|
22
|
+
export declare const zDatasetReshapeInfo: z.ZodObject<{
|
23
|
+
foldInfo: z.ZodObject<{
|
24
|
+
foldMap: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodUndefined]>>;
|
25
|
+
measureId: z.ZodString;
|
26
|
+
measureName: z.ZodString;
|
27
|
+
measureValue: z.ZodString;
|
28
|
+
}, z.core.$strip>;
|
29
|
+
unfoldInfo: z.ZodObject<{
|
30
|
+
colorItems: z.ZodArray<z.ZodString>;
|
31
|
+
groupName: z.ZodString;
|
32
|
+
}, z.core.$strip>;
|
33
|
+
}, z.core.$strip>;
|
34
|
+
export type DatasetReshapeInfo = z.infer<typeof zDatasetReshapeInfo>;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zDimension: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
alias: z.ZodOptional<z.ZodString>;
|
5
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
6
|
+
location: z.ZodEnum<{
|
7
|
+
dimension: "dimension";
|
8
|
+
rowDimension: "rowDimension";
|
9
|
+
columnDimension: "columnDimension";
|
10
|
+
}>;
|
11
|
+
}, z.core.$strip>;
|
12
|
+
export declare const zDimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
13
|
+
id: z.ZodString;
|
14
|
+
alias: z.ZodOptional<z.ZodString>;
|
15
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
16
|
+
location: z.ZodEnum<{
|
17
|
+
dimension: "dimension";
|
18
|
+
rowDimension: "rowDimension";
|
19
|
+
columnDimension: "columnDimension";
|
20
|
+
}>;
|
21
|
+
}, z.core.$strip>>>;
|
22
|
+
export type Dimension = z.infer<typeof zDimension>;
|
23
|
+
export type Dimensions = z.infer<typeof zDimensions>;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zEncoding: z.ZodArray<z.ZodObject<{
|
3
|
+
x: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
4
|
+
y: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
5
|
+
color: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
6
|
+
group: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
7
|
+
angle: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
8
|
+
radius: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
9
|
+
tooltip: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
10
|
+
}, z.core.$strip>>;
|
11
|
+
export type Encoding = Array<{
|
12
|
+
x?: string[];
|
13
|
+
y?: string[];
|
14
|
+
color?: string[];
|
15
|
+
group?: string[];
|
16
|
+
angle?: string[];
|
17
|
+
radius?: string[];
|
18
|
+
tooltip?: string[];
|
19
|
+
}>;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const zMeasure: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
alias: z.ZodOptional<z.ZodString>;
|
5
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
6
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
7
|
+
format: z.ZodOptional<z.ZodObject<{
|
8
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
9
|
+
number: "number";
|
10
|
+
percent: "percent";
|
11
|
+
permille: "permille";
|
12
|
+
}>>>;
|
13
|
+
ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
14
|
+
symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
15
|
+
thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
16
|
+
decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
17
|
+
round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
18
|
+
round: "round";
|
19
|
+
floor: "floor";
|
20
|
+
ceil: "ceil";
|
21
|
+
}>>>;
|
22
|
+
prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
23
|
+
suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
24
|
+
}, z.core.$strip>>;
|
25
|
+
}, z.core.$strip>;
|
26
|
+
export declare const zMeasureGroup: z.ZodObject<{
|
27
|
+
id: z.ZodString;
|
28
|
+
alias: z.ZodOptional<z.ZodString>;
|
29
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
30
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
31
|
+
id: z.ZodString;
|
32
|
+
alias: z.ZodOptional<z.ZodString>;
|
33
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
34
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
35
|
+
format: z.ZodOptional<z.ZodObject<{
|
36
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
37
|
+
number: "number";
|
38
|
+
percent: "percent";
|
39
|
+
permille: "permille";
|
40
|
+
}>>>;
|
41
|
+
ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
42
|
+
symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
43
|
+
thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
44
|
+
decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
45
|
+
round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
46
|
+
round: "round";
|
47
|
+
floor: "floor";
|
48
|
+
ceil: "ceil";
|
49
|
+
}>>>;
|
50
|
+
prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
51
|
+
suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
52
|
+
}, z.core.$strip>>;
|
53
|
+
}, z.core.$strip>]>>>;
|
54
|
+
}, z.core.$strip>;
|
55
|
+
export declare const zMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
56
|
+
id: z.ZodString;
|
57
|
+
alias: z.ZodOptional<z.ZodString>;
|
58
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
59
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
60
|
+
id: z.ZodString;
|
61
|
+
alias: z.ZodOptional<z.ZodString>;
|
62
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
63
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
64
|
+
format: z.ZodOptional<z.ZodObject<{
|
65
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
66
|
+
number: "number";
|
67
|
+
percent: "percent";
|
68
|
+
permille: "permille";
|
69
|
+
}>>>;
|
70
|
+
ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
71
|
+
symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
72
|
+
thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
73
|
+
decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
74
|
+
round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
75
|
+
round: "round";
|
76
|
+
floor: "floor";
|
77
|
+
ceil: "ceil";
|
78
|
+
}>>>;
|
79
|
+
prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
80
|
+
suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
81
|
+
}, z.core.$strip>>;
|
82
|
+
}, z.core.$strip>]>>>;
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
84
|
+
id: z.ZodString;
|
85
|
+
alias: z.ZodOptional<z.ZodString>;
|
86
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
87
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
88
|
+
format: z.ZodOptional<z.ZodObject<{
|
89
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
90
|
+
number: "number";
|
91
|
+
percent: "percent";
|
92
|
+
permille: "permille";
|
93
|
+
}>>>;
|
94
|
+
ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
95
|
+
symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
96
|
+
thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
97
|
+
decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
98
|
+
round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
99
|
+
round: "round";
|
100
|
+
floor: "floor";
|
101
|
+
ceil: "ceil";
|
102
|
+
}>>>;
|
103
|
+
prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
104
|
+
suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
105
|
+
}, z.core.$strip>>;
|
106
|
+
}, z.core.$strip>]>>>;
|
107
|
+
export type Measures = z.infer<typeof zMeasures>;
|
108
|
+
export type Measure = z.infer<typeof zMeasure>;
|
109
|
+
export type MeasureGroup = z.infer<typeof zMeasureGroup>;
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import type { ChartType } from './chartType';
|
3
|
+
import type { Dataset } from './dataset';
|
4
|
+
import type { Dimensions } from './dimensions';
|
5
|
+
import type { Measures } from './measures';
|
6
|
+
export declare const zVSeed: z.ZodObject<{
|
7
|
+
chartType: z.ZodEnum<{
|
8
|
+
area: "area";
|
9
|
+
line: "line";
|
10
|
+
bar: "bar";
|
11
|
+
pie: "pie";
|
12
|
+
rose: "rose";
|
13
|
+
column: "column";
|
14
|
+
areaPercent: "areaPercent";
|
15
|
+
barPercent: "barPercent";
|
16
|
+
columnPercent: "columnPercent";
|
17
|
+
columnParallel: "columnParallel";
|
18
|
+
barParallel: "barParallel";
|
19
|
+
table: "table";
|
20
|
+
pivotTable: "pivotTable";
|
21
|
+
donut: "donut";
|
22
|
+
dualAxis: "dualAxis";
|
23
|
+
}>;
|
24
|
+
dataset: z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>;
|
25
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
26
|
+
id: z.ZodString;
|
27
|
+
alias: z.ZodOptional<z.ZodString>;
|
28
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
29
|
+
location: z.ZodEnum<{
|
30
|
+
dimension: "dimension";
|
31
|
+
rowDimension: "rowDimension";
|
32
|
+
columnDimension: "columnDimension";
|
33
|
+
}>;
|
34
|
+
}, z.core.$strip>>>;
|
35
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
36
|
+
id: z.ZodString;
|
37
|
+
alias: z.ZodOptional<z.ZodString>;
|
38
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
39
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
40
|
+
id: z.ZodString;
|
41
|
+
alias: z.ZodOptional<z.ZodString>;
|
42
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
43
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
44
|
+
format: z.ZodOptional<z.ZodObject<{
|
45
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
46
|
+
number: "number";
|
47
|
+
percent: "percent";
|
48
|
+
permille: "permille";
|
49
|
+
}>>>;
|
50
|
+
ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
51
|
+
symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
52
|
+
thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
53
|
+
decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
54
|
+
round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
55
|
+
round: "round";
|
56
|
+
floor: "floor";
|
57
|
+
ceil: "ceil";
|
58
|
+
}>>>;
|
59
|
+
prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
60
|
+
suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
61
|
+
}, z.core.$strip>>;
|
62
|
+
}, z.core.$strip>]>>>;
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
64
|
+
id: z.ZodString;
|
65
|
+
alias: z.ZodOptional<z.ZodString>;
|
66
|
+
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
67
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
68
|
+
format: z.ZodOptional<z.ZodObject<{
|
69
|
+
type: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
70
|
+
number: "number";
|
71
|
+
percent: "percent";
|
72
|
+
permille: "permille";
|
73
|
+
}>>>;
|
74
|
+
ratio: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
75
|
+
symbol: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
76
|
+
thousandSeparator: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
77
|
+
decimalPlaces: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
78
|
+
round: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
79
|
+
round: "round";
|
80
|
+
floor: "floor";
|
81
|
+
ceil: "ceil";
|
82
|
+
}>>>;
|
83
|
+
prefix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
84
|
+
suffix: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
85
|
+
}, z.core.$strip>>;
|
86
|
+
}, z.core.$strip>]>>>;
|
87
|
+
}, z.core.$strip>;
|
88
|
+
export type VSeed = {
|
89
|
+
chartType: ChartType;
|
90
|
+
dataset: Dataset;
|
91
|
+
dimensions?: Dimensions;
|
92
|
+
measures?: Measures;
|
93
|
+
};
|
94
|
+
export declare const VSeedJSONSchema: z.core.JSONSchema.JSONSchema;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@visactor/vseed",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.3",
|
4
4
|
"type": "module",
|
5
5
|
"exports": {
|
6
6
|
".": {
|
@@ -14,10 +14,19 @@
|
|
14
14
|
"files": [
|
15
15
|
"dist"
|
16
16
|
],
|
17
|
+
"dependencies": {
|
18
|
+
"zod": "4.0.14"
|
19
|
+
},
|
20
|
+
"peerDependencies": {
|
21
|
+
"@visactor/vchart": ">2.0.0",
|
22
|
+
"@visactor/vtable": ">1.19.0"
|
23
|
+
},
|
17
24
|
"devDependencies": {
|
18
25
|
"@eslint/js": "^9.30.0",
|
26
|
+
"@rsdoctor/rspack-plugin": "^1.1.10",
|
19
27
|
"@rslib/core": "^0.11.0",
|
20
28
|
"@types/node": "^22.16.5",
|
29
|
+
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
21
30
|
"eslint": "^9.30.0",
|
22
31
|
"globals": "^16.2.0",
|
23
32
|
"typescript": "^5.8.3",
|
@@ -25,8 +34,10 @@
|
|
25
34
|
"vitest": "^3.2.4"
|
26
35
|
},
|
27
36
|
"scripts": {
|
28
|
-
"build": "rslib build",
|
29
37
|
"dev": "rslib build --watch",
|
38
|
+
"build": "rslib build",
|
39
|
+
"dev:rsdoctor": "RSDOCTOR=true rsbuild dev",
|
40
|
+
"build:rsdoctor": "RSDOCTOR=true rsbuild build",
|
30
41
|
"format": "prettier --write .",
|
31
42
|
"lint": "eslint .",
|
32
43
|
"test": "vitest run"
|