@visactor/vseed 0.0.1 → 0.0.2
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 +216 -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 +3 -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 +616 -4
- package/dist/index.d.ts +5 -1
- package/dist/index.js +533 -2
- package/dist/pipeline/advanced/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipeline/bar.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/column.d.ts +2 -0
- package/dist/pipeline/advanced/pipeline/index.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/encoding/encodingCartesian.d.ts +2 -0
- package/dist/pipeline/advanced/pipes/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/pipes/index.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/bar.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/column.d.ts +2 -0
- package/dist/pipeline/spec/pipeline/index.d.ts +2 -0
- package/dist/pipeline/spec/pipes/axes/index.d.ts +4 -0
- package/dist/pipeline/spec/pipes/axes/xBand copy.d.ts +0 -0
- package/dist/pipeline/spec/pipes/axes/xBand.d.ts +2 -0
- package/dist/pipeline/spec/pipes/axes/xLinear copy.d.ts +0 -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 copy.d.ts +0 -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 +3 -0
- package/dist/pipeline/spec/pipes/init/bar.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/column.d.ts +2 -0
- package/dist/pipeline/spec/pipes/init/index.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,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
|
+
table: "table";
|
9
|
+
pivotTable: "pivotTable";
|
10
|
+
line: "line";
|
11
|
+
column: "column";
|
12
|
+
columnPercent: "columnPercent";
|
13
|
+
columnParallel: "columnParallel";
|
14
|
+
bar: "bar";
|
15
|
+
barPercent: "barPercent";
|
16
|
+
barParallel: "barParallel";
|
17
|
+
area: "area";
|
18
|
+
areaPercent: "areaPercent";
|
19
|
+
rose: "rose";
|
20
|
+
pie: "pie";
|
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.2",
|
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"
|