@visactor/vseed 0.4.12 → 0.4.14
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/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/dataReshape/dataReshapeByEncoding.d.ts +2 -1
- package/dist/esm/dataReshape/dataReshapeByEncoding.js +7 -2
- package/dist/esm/dataReshape/dataReshapeByEncoding.js.map +1 -1
- package/dist/esm/dataReshape/unfoldDimensions.d.ts +1 -0
- package/dist/esm/dataReshape/unfoldDimensions.js +5 -4
- package/dist/esm/dataReshape/unfoldDimensions.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js +11 -3
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithBoxplotEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js +4 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithDualEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js +8 -3
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithHistogramEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js +4 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/pivotReshapeWithScatterEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js +11 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithBoxplotEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js +4 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithDualEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js +8 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithHistogramEncoding.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js +4 -2
- package/dist/esm/pipeline/advanced/chart/pipes/reshape/reshapeWithScatterEncoding.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/area.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/area.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/areaPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/column.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/funnel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/line.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceBar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceColumn.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceDonut.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/raceLine.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/racePie.js +3 -1
- package/dist/esm/pipeline/spec/chart/pipeline/racePie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/radar.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/heatmapBandAxis.js +14 -0
- package/dist/esm/pipeline/spec/chart/pipes/axes/heatmapBandAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/radarAngle.js +27 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/radarAngle.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js +15 -2
- package/dist/esm/pipeline/spec/chart/pipes/axes/xBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js +15 -2
- package/dist/esm/pipeline/spec/chart/pipes/axes/yBand.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +3 -3
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js +4 -3
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelBoxPlot.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelBoxPlot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelCirclePacking.js +18 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelCirclePacking.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelPie.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelSunburst.js +18 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelSunburst.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapGroup.js +12 -4
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapGroup.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapLeaf.js +4 -2
- package/dist/esm/pipeline/spec/chart/pipes/label/labelTreeMapLeaf.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js +5 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotColumnDimensions.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.js +5 -0
- package/dist/esm/pipeline/spec/chart/pipes/pivotChart/pivotRowDimensions.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +5 -3
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +51 -32
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js +8 -7
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipBoxplot.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +15 -2
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHierarchy.js +6 -5
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHierarchy.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +3 -2
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipTreeMap.js +14 -6
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipTreeMap.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/columns/dimensionsToColumns.js +6 -2
- package/dist/esm/pipeline/spec/table/pipes/columns/dimensionsToColumns.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/columns/pivotColumns.js +8 -3
- package/dist/esm/pipeline/spec/table/pipes/columns/pivotColumns.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js +8 -3
- package/dist/esm/pipeline/spec/table/pipes/rows/pivotRows.js.map +1 -1
- package/dist/esm/pipeline/utils/constant.d.ts +1 -0
- package/dist/esm/pipeline/utils/constant.js +1 -0
- package/dist/esm/pipeline/utils/constant.js.map +1 -1
- package/dist/esm/pipeline/utils/format/createFormatterByDimension.d.ts +2 -0
- package/dist/esm/pipeline/utils/format/createFormatterByDimension.js +10 -0
- package/dist/esm/pipeline/utils/format/createFormatterByDimension.js.map +1 -0
- package/dist/esm/pipeline/utils/format/createTimeFormatter.d.ts +2 -0
- package/dist/esm/pipeline/utils/format/createTimeFormatter.js +154 -0
- package/dist/esm/pipeline/utils/format/createTimeFormatter.js.map +1 -0
- package/dist/esm/pipeline/utils/format/index.d.ts +2 -0
- package/dist/esm/pipeline/utils/format/index.js +2 -0
- package/dist/esm/types/chartType/area/zArea.d.ts +12 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +12 -0
- package/dist/esm/types/chartType/bar/zBar.d.ts +12 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +12 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +12 -0
- package/dist/esm/types/chartType/boxPlot/zBoxPlot.d.ts +12 -0
- package/dist/esm/types/chartType/circlePacking/zCirclePacking.d.ts +12 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +12 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +12 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +12 -0
- package/dist/esm/types/chartType/donut/zDonut.d.ts +12 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +12 -0
- package/dist/esm/types/chartType/funnel/zFunnel.d.ts +12 -0
- package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +12 -0
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +12 -0
- package/dist/esm/types/chartType/line/zLine.d.ts +12 -0
- package/dist/esm/types/chartType/pie/zPie.d.ts +12 -0
- package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +12 -0
- package/dist/esm/types/chartType/raceBar/zRaceBar.d.ts +12 -0
- package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +12 -0
- package/dist/esm/types/chartType/raceDonut/zRaceDonut.d.ts +12 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +12 -0
- package/dist/esm/types/chartType/racePie/zRacePie.d.ts +12 -0
- package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +12 -0
- package/dist/esm/types/chartType/radar/zRadar.d.ts +12 -0
- package/dist/esm/types/chartType/rose/zRose.d.ts +12 -0
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +12 -0
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +12 -0
- package/dist/esm/types/chartType/sunburst/zSunburst.d.ts +12 -0
- package/dist/esm/types/chartType/table/zTable.d.ts +12 -0
- package/dist/esm/types/chartType/treeMap/zTreeMap.d.ts +12 -0
- package/dist/esm/types/properties/cellStyle/bodyCellStyle.d.ts +1 -1
- package/dist/esm/types/properties/cellStyle/bodyCellStyle.js.map +1 -1
- package/dist/esm/types/properties/dimensions/baseDimension.d.ts +5 -0
- package/dist/esm/types/properties/dimensions/zDimensions.d.ts +36 -0
- package/dist/esm/types/properties/dimensions/zDimensions.js +3 -1
- package/dist/esm/types/properties/dimensions/zDimensions.js.map +1 -1
- package/dist/esm/types/properties/format/index.d.ts +1 -0
- package/dist/esm/types/properties/format/index.js +1 -0
- package/dist/esm/types/properties/format/timeFormat.d.ts +20 -0
- package/dist/esm/types/properties/format/timeFormat.js +16 -0
- package/dist/esm/types/properties/format/timeFormat.js.map +1 -0
- package/dist/umd/index.js +592 -147
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -18,6 +18,18 @@ export declare const zPivotTable: z.ZodObject<{
|
|
|
18
18
|
player: "player";
|
|
19
19
|
hierarchy: "hierarchy";
|
|
20
20
|
}>>;
|
|
21
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
year: "year";
|
|
24
|
+
quarter: "quarter";
|
|
25
|
+
month: "month";
|
|
26
|
+
week: "week";
|
|
27
|
+
day: "day";
|
|
28
|
+
hour: "hour";
|
|
29
|
+
minute: "minute";
|
|
30
|
+
second: "second";
|
|
31
|
+
}>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
21
33
|
}, z.core.$strip>>>>;
|
|
22
34
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
35
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zRaceBar: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zRaceColumn: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zRaceDonut: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zRaceLine: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zRacePie: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zRaceScatter: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zRadar: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zRose: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -42,6 +42,18 @@ export declare const zScatter: z.ZodObject<{
|
|
|
42
42
|
player: "player";
|
|
43
43
|
hierarchy: "hierarchy";
|
|
44
44
|
}>>;
|
|
45
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
46
|
+
type: z.ZodEnum<{
|
|
47
|
+
year: "year";
|
|
48
|
+
quarter: "quarter";
|
|
49
|
+
month: "month";
|
|
50
|
+
week: "week";
|
|
51
|
+
day: "day";
|
|
52
|
+
hour: "hour";
|
|
53
|
+
minute: "minute";
|
|
54
|
+
second: "second";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$strip>>>;
|
|
45
57
|
}, z.core.$strip>>>>;
|
|
46
58
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
47
59
|
id: z.ZodString;
|
|
@@ -18,6 +18,18 @@ export declare const zSunburst: z.ZodObject<{
|
|
|
18
18
|
player: "player";
|
|
19
19
|
hierarchy: "hierarchy";
|
|
20
20
|
}>>;
|
|
21
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
year: "year";
|
|
24
|
+
quarter: "quarter";
|
|
25
|
+
month: "month";
|
|
26
|
+
week: "week";
|
|
27
|
+
day: "day";
|
|
28
|
+
hour: "hour";
|
|
29
|
+
minute: "minute";
|
|
30
|
+
second: "second";
|
|
31
|
+
}>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
21
33
|
}, z.core.$strip>>>>;
|
|
22
34
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
35
|
id: z.ZodString;
|
|
@@ -18,6 +18,18 @@ export declare const zTable: z.ZodObject<{
|
|
|
18
18
|
player: "player";
|
|
19
19
|
hierarchy: "hierarchy";
|
|
20
20
|
}>>;
|
|
21
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
year: "year";
|
|
24
|
+
quarter: "quarter";
|
|
25
|
+
month: "month";
|
|
26
|
+
week: "week";
|
|
27
|
+
day: "day";
|
|
28
|
+
hour: "hour";
|
|
29
|
+
minute: "minute";
|
|
30
|
+
second: "second";
|
|
31
|
+
}>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
21
33
|
}, z.core.$strip>>>>;
|
|
22
34
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
|
|
23
35
|
id: z.ZodString;
|
|
@@ -18,6 +18,18 @@ export declare const zTreeMap: z.ZodObject<{
|
|
|
18
18
|
player: "player";
|
|
19
19
|
hierarchy: "hierarchy";
|
|
20
20
|
}>>;
|
|
21
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
22
|
+
type: z.ZodEnum<{
|
|
23
|
+
year: "year";
|
|
24
|
+
quarter: "quarter";
|
|
25
|
+
month: "month";
|
|
26
|
+
week: "week";
|
|
27
|
+
day: "day";
|
|
28
|
+
hour: "hour";
|
|
29
|
+
minute: "minute";
|
|
30
|
+
second: "second";
|
|
31
|
+
}>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
21
33
|
}, z.core.$strip>>>>;
|
|
22
34
|
measures: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
35
|
id: z.ZodString;
|
|
@@ -10,7 +10,7 @@ export type BodyCellStyle = {
|
|
|
10
10
|
*
|
|
11
11
|
* 注意: selector 和 dynamicFilter 不能同时使用,dynamicFilter 优先级更高
|
|
12
12
|
*
|
|
13
|
-
* @type {Selector | Selectors}
|
|
13
|
+
* @type {Selector | Selectors | FieldSelector}
|
|
14
14
|
* @example 数值选择器
|
|
15
15
|
* selector = "tool"
|
|
16
16
|
* selector = ["tool", "book"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/cellStyle/bodyCellStyle.js","sources":["webpack://@visactor/vseed/./src/types/properties/cellStyle/bodyCellStyle.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { FieldSelector, TableDynamicFilter } from '../../dataSelector'\nimport {\n zFieldSelector,\n zSelector,\n zSelectors,\n zTableDynamicFilter,\n type Selector,\n type Selectors,\n} from '../../dataSelector'\n\nexport type BodyCellStyle = {\n /**\n * 数据选择器\n * @description\n * 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力\n * 若未配置selector, 则样式全局生效.\n *\n * 注意: selector 和 dynamicFilter 不能同时使用,dynamicFilter 优先级更高\n *\n * @type {Selector | Selectors}\n * @example 数值选择器\n * selector = \"tool\"\n * selector = [\"tool\", \"book\"]\n * selector = 100\n * selector = [100, 200]\n * @example 局部数据选择器\n * selector = { profit: 100 }\n * selector = [{ profit: 100 }, { profit: 200 }]\n * @example 条件维度选择器\n * selector = {\n * field: 'category',\n * operator: 'in',\n * value: 'tool'\n * }\n * selector = {\n * field: 'category',\n * operator: 'not in',\n * value: 'book'\n * }\n * @example 条件指标选择器\n * selector = {\n * field: 'profit',\n * operator: '>=',\n * value: 100\n * }\n * selector = {\n * field: 'profit',\n * operator: 'between'\n * value: [100, 300]\n * }\n * @example 字段列筛选\n * selector = {\n * field: 'category'\n * }\n * selector = {\n * field: ['category', 'profit']\n * }\n */\n selector?: Selector | Selectors | FieldSelector\n /**\n * 动态筛选器(代码驱动)\n * @description\n * 通过 AI 生成的 JavaScript 代码实现复杂数据筛选逻辑\n * 适用于 Top N、统计分析、复杂条件等静态 selector 难以表达的场景\n *\n * 核心能力:\n * - 支持任意复杂的数据筛选条件\n * - 使用 内置工具函数 进行数据操作\n * - 在浏览器环境中安全执行(Web Worker 沙箱)\n *\n * 环境要求: 仅支持浏览器环境,Node.js 环境将使用 fallback\n *\n * 注意: selector 和 dynamicFilter 不能同时使用,dynamicFilter 优先级更高\n *\n * @type {TableDynamicFilter}\n */\n dynamicFilter?: TableDynamicFilter\n /**\n * 单元格背景色\n */\n backgroundColor?: string\n /**\n * 是否开启背景色的色阶配置(color scale)\n */\n enableBackgroundColorScale?: boolean\n /**\n * 单元格背景色scale映射,优先级高于backgroundColor\n */\n backgroundColorScale?: {\n /** 最小值,不配置时默认为当前数据列中的最小值 */\n minValue?: number\n /** 最大值,不配置时默认为当前数据列中的最大值 */\n maxValue?: number\n /** 最小值对应的颜色 */\n minColor: string\n /** 最大值对应的颜色 */\n maxColor: string\n }\n /**\n * 是否开启背景数据条条(一个条形柱来显示当前单元格的大小)功能,默认不开启\n */\n enableProgressBar?: boolean\n /**\n * 当前单元格直为正数时的背景数据条颜色\n */\n barPositiveColor?: string\n /**\n * 数值为负数时的背景数据条条颜色\n */\n barNegativeColor?: string\n /**\n * 进度条最小值\n * @description 未配置时自动计算列的最小值\n */\n barMin?: number\n /**\n * 进度条最大值\n * @description 未配置时自动计算列的最大值\n */\n barMax?: number\n /** * 单元格文字颜色\n */\n textColor?: string\n /**\n * 单元格文字大小\n */\n textFontSize?: number\n /**\n * 单元格边框颜色\n */\n borderColor?: string\n /**\n * 单元格边框线宽\n */\n borderLineWidth?: number\n}\n\nexport const zBodyCellStyle = z.object({\n selector: z.union([zSelector, zSelectors, zFieldSelector]).nullish(),\n dynamicFilter: zTableDynamicFilter.nullish(),\n backgroundColor: z.string().nullish(),\n enableBackgroundColorScale: z.boolean().nullish(),\n backgroundColorScale: z\n .object({\n minValue: z.number().optional(),\n maxValue: z.number().optional(),\n minColor: z.string(),\n maxColor: z.string(),\n })\n .nullish(),\n textFontSize: z.number().nullish(),\n borderColor: z.string().nullish(),\n borderLineWidth: z.number().nullish(),\n enableProgressBar: z.boolean().nullish(),\n barMin: z.number().nullish(),\n barMax: z.number().nullish(),\n barPositiveColor: z.string().nullish(),\n barNegativeColor: z.string().nullish(),\n})\n"],"names":["zBodyCellStyle","z","zSelector","zSelectors","zFieldSelector","zTableDynamicFilter"],"mappings":";;AA0IO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,UAAUA,EAAE,KAAK,CAAC;QAACC;QAAWC;QAAYC;KAAe,EAAE,OAAO;IAClE,eAAeC,oBAAoB,OAAO;IAC1C,iBAAiBJ,EAAE,MAAM,GAAG,OAAO;IACnC,4BAA4BA,EAAE,OAAO,GAAG,OAAO;IAC/C,sBAAsBA,EAAAA,MACb,CAAC;QACN,UAAUA,EAAE,MAAM,GAAG,QAAQ;QAC7B,UAAUA,EAAE,MAAM,GAAG,QAAQ;QAC7B,UAAUA,EAAE,MAAM;QAClB,UAAUA,EAAE,MAAM;IACpB,GACC,OAAO;IACV,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,aAAaA,EAAE,MAAM,GAAG,OAAO;IAC/B,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,mBAAmBA,EAAE,OAAO,GAAG,OAAO;IACtC,QAAQA,EAAE,MAAM,GAAG,OAAO;IAC1B,QAAQA,EAAE,MAAM,GAAG,OAAO;IAC1B,kBAAkBA,EAAE,MAAM,GAAG,OAAO;IACpC,kBAAkBA,EAAE,MAAM,GAAG,OAAO;AACtC"}
|
|
1
|
+
{"version":3,"file":"types/properties/cellStyle/bodyCellStyle.js","sources":["webpack://@visactor/vseed/./src/types/properties/cellStyle/bodyCellStyle.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { FieldSelector, TableDynamicFilter } from '../../dataSelector'\nimport {\n zFieldSelector,\n zSelector,\n zSelectors,\n zTableDynamicFilter,\n type Selector,\n type Selectors,\n} from '../../dataSelector'\n\nexport type BodyCellStyle = {\n /**\n * 数据选择器\n * @description\n * 若配置selector, 提供数值 selector, 局部数据 selector, 条件维度 selector, 条件指标 selector 共四类数据匹配能力\n * 若未配置selector, 则样式全局生效.\n *\n * 注意: selector 和 dynamicFilter 不能同时使用,dynamicFilter 优先级更高\n *\n * @type {Selector | Selectors | FieldSelector}\n * @example 数值选择器\n * selector = \"tool\"\n * selector = [\"tool\", \"book\"]\n * selector = 100\n * selector = [100, 200]\n * @example 局部数据选择器\n * selector = { profit: 100 }\n * selector = [{ profit: 100 }, { profit: 200 }]\n * @example 条件维度选择器\n * selector = {\n * field: 'category',\n * operator: 'in',\n * value: 'tool'\n * }\n * selector = {\n * field: 'category',\n * operator: 'not in',\n * value: 'book'\n * }\n * @example 条件指标选择器\n * selector = {\n * field: 'profit',\n * operator: '>=',\n * value: 100\n * }\n * selector = {\n * field: 'profit',\n * operator: 'between'\n * value: [100, 300]\n * }\n * @example 字段列筛选\n * selector = {\n * field: 'category'\n * }\n * selector = {\n * field: ['category', 'profit']\n * }\n */\n selector?: Selector | Selectors | FieldSelector\n /**\n * 动态筛选器(代码驱动)\n * @description\n * 通过 AI 生成的 JavaScript 代码实现复杂数据筛选逻辑\n * 适用于 Top N、统计分析、复杂条件等静态 selector 难以表达的场景\n *\n * 核心能力:\n * - 支持任意复杂的数据筛选条件\n * - 使用 内置工具函数 进行数据操作\n * - 在浏览器环境中安全执行(Web Worker 沙箱)\n *\n * 环境要求: 仅支持浏览器环境,Node.js 环境将使用 fallback\n *\n * 注意: selector 和 dynamicFilter 不能同时使用,dynamicFilter 优先级更高\n *\n * @type {TableDynamicFilter}\n */\n dynamicFilter?: TableDynamicFilter\n /**\n * 单元格背景色\n */\n backgroundColor?: string\n /**\n * 是否开启背景色的色阶配置(color scale)\n */\n enableBackgroundColorScale?: boolean\n /**\n * 单元格背景色scale映射,优先级高于backgroundColor\n */\n backgroundColorScale?: {\n /** 最小值,不配置时默认为当前数据列中的最小值 */\n minValue?: number\n /** 最大值,不配置时默认为当前数据列中的最大值 */\n maxValue?: number\n /** 最小值对应的颜色 */\n minColor: string\n /** 最大值对应的颜色 */\n maxColor: string\n }\n /**\n * 是否开启背景数据条条(一个条形柱来显示当前单元格的大小)功能,默认不开启\n */\n enableProgressBar?: boolean\n /**\n * 当前单元格直为正数时的背景数据条颜色\n */\n barPositiveColor?: string\n /**\n * 数值为负数时的背景数据条条颜色\n */\n barNegativeColor?: string\n /**\n * 进度条最小值\n * @description 未配置时自动计算列的最小值\n */\n barMin?: number\n /**\n * 进度条最大值\n * @description 未配置时自动计算列的最大值\n */\n barMax?: number\n /** * 单元格文字颜色\n */\n textColor?: string\n /**\n * 单元格文字大小\n */\n textFontSize?: number\n /**\n * 单元格边框颜色\n */\n borderColor?: string\n /**\n * 单元格边框线宽\n */\n borderLineWidth?: number\n}\n\nexport const zBodyCellStyle = z.object({\n selector: z.union([zSelector, zSelectors, zFieldSelector]).nullish(),\n dynamicFilter: zTableDynamicFilter.nullish(),\n backgroundColor: z.string().nullish(),\n enableBackgroundColorScale: z.boolean().nullish(),\n backgroundColorScale: z\n .object({\n minValue: z.number().optional(),\n maxValue: z.number().optional(),\n minColor: z.string(),\n maxColor: z.string(),\n })\n .nullish(),\n textFontSize: z.number().nullish(),\n borderColor: z.string().nullish(),\n borderLineWidth: z.number().nullish(),\n enableProgressBar: z.boolean().nullish(),\n barMin: z.number().nullish(),\n barMax: z.number().nullish(),\n barPositiveColor: z.string().nullish(),\n barNegativeColor: z.string().nullish(),\n})\n"],"names":["zBodyCellStyle","z","zSelector","zSelectors","zFieldSelector","zTableDynamicFilter"],"mappings":";;AA0IO,MAAMA,iBAAiBC,EAAE,MAAM,CAAC;IACrC,UAAUA,EAAE,KAAK,CAAC;QAACC;QAAWC;QAAYC;KAAe,EAAE,OAAO;IAClE,eAAeC,oBAAoB,OAAO;IAC1C,iBAAiBJ,EAAE,MAAM,GAAG,OAAO;IACnC,4BAA4BA,EAAE,OAAO,GAAG,OAAO;IAC/C,sBAAsBA,EAAAA,MACb,CAAC;QACN,UAAUA,EAAE,MAAM,GAAG,QAAQ;QAC7B,UAAUA,EAAE,MAAM,GAAG,QAAQ;QAC7B,UAAUA,EAAE,MAAM;QAClB,UAAUA,EAAE,MAAM;IACpB,GACC,OAAO;IACV,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,aAAaA,EAAE,MAAM,GAAG,OAAO;IAC/B,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,mBAAmBA,EAAE,OAAO,GAAG,OAAO;IACtC,QAAQA,EAAE,MAAM,GAAG,OAAO;IAC1B,QAAQA,EAAE,MAAM,GAAG,OAAO;IAC1B,kBAAkBA,EAAE,MAAM,GAAG,OAAO;IACpC,kBAAkBA,EAAE,MAAM,GAAG,OAAO;AACtC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DimensionEncoding } from '../encoding';
|
|
2
|
+
import type { TimeFormat } from '../format';
|
|
2
3
|
export type BaseDimension = {
|
|
3
4
|
/**
|
|
4
5
|
* 维度对应的字段id
|
|
@@ -8,6 +9,10 @@ export type BaseDimension = {
|
|
|
8
9
|
* 维度别名
|
|
9
10
|
*/
|
|
10
11
|
alias?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @description 维度时间格式化配置
|
|
14
|
+
*/
|
|
15
|
+
timeFormat?: TimeFormat;
|
|
11
16
|
};
|
|
12
17
|
/**
|
|
13
18
|
* @description 维度
|
|
@@ -16,6 +16,18 @@ export declare const zDimension: z.ZodObject<{
|
|
|
16
16
|
player: "player";
|
|
17
17
|
hierarchy: "hierarchy";
|
|
18
18
|
}>>;
|
|
19
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
20
|
+
type: z.ZodEnum<{
|
|
21
|
+
year: "year";
|
|
22
|
+
quarter: "quarter";
|
|
23
|
+
month: "month";
|
|
24
|
+
week: "week";
|
|
25
|
+
day: "day";
|
|
26
|
+
hour: "hour";
|
|
27
|
+
minute: "minute";
|
|
28
|
+
second: "second";
|
|
29
|
+
}>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
19
31
|
}, z.core.$strip>;
|
|
20
32
|
export declare const zDimensionGroup: z.ZodType<DimensionGroup>;
|
|
21
33
|
export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
|
@@ -34,6 +46,18 @@ export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
|
|
34
46
|
player: "player";
|
|
35
47
|
hierarchy: "hierarchy";
|
|
36
48
|
}>>;
|
|
49
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
50
|
+
type: z.ZodEnum<{
|
|
51
|
+
year: "year";
|
|
52
|
+
quarter: "quarter";
|
|
53
|
+
month: "month";
|
|
54
|
+
week: "week";
|
|
55
|
+
day: "day";
|
|
56
|
+
hour: "hour";
|
|
57
|
+
minute: "minute";
|
|
58
|
+
second: "second";
|
|
59
|
+
}>;
|
|
60
|
+
}, z.core.$strip>>>;
|
|
37
61
|
}, z.core.$strip>>;
|
|
38
62
|
export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodType<DimensionGroup, unknown, z.core.$ZodTypeInternals<DimensionGroup, unknown>>, z.ZodObject<{
|
|
39
63
|
id: z.ZodString;
|
|
@@ -51,4 +75,16 @@ export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodType<DimensionG
|
|
|
51
75
|
player: "player";
|
|
52
76
|
hierarchy: "hierarchy";
|
|
53
77
|
}>>;
|
|
78
|
+
timeFormat: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
79
|
+
type: z.ZodEnum<{
|
|
80
|
+
year: "year";
|
|
81
|
+
quarter: "quarter";
|
|
82
|
+
month: "month";
|
|
83
|
+
week: "week";
|
|
84
|
+
day: "day";
|
|
85
|
+
hour: "hour";
|
|
86
|
+
minute: "minute";
|
|
87
|
+
second: "second";
|
|
88
|
+
}>;
|
|
89
|
+
}, z.core.$strip>>>;
|
|
54
90
|
}, z.core.$strip>]>>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zDimensionEncoding } from "../encoding/index.js";
|
|
3
|
+
import { zTimeFormat } from "../format/index.js";
|
|
3
4
|
const zDimension = z.object({
|
|
4
5
|
id: z.string(),
|
|
5
6
|
alias: z.string().optional(),
|
|
6
|
-
encoding: zDimensionEncoding.optional()
|
|
7
|
+
encoding: zDimensionEncoding.optional(),
|
|
8
|
+
timeFormat: zTimeFormat.optional()
|
|
7
9
|
});
|
|
8
10
|
const zDimensionGroup = z.object({
|
|
9
11
|
id: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/properties/dimensions/zDimensions.js","sources":["webpack://@visactor/vseed/./src/types/properties/dimensions/zDimensions.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zDimensionEncoding } from '../encoding'\nimport type { DimensionGroup } from './tableDimension'\n\nexport const zDimension = z.object({\n id: z.string(),\n alias: z.string().optional(),\n encoding: zDimensionEncoding.optional(),\n})\nexport const zDimensionGroup: z.ZodType<DimensionGroup> = z.object({\n id: z.string(),\n alias: z.string().optional(),\n get children() {\n return z.array(zDimensionGroup.or(zDimension)).optional()\n },\n})\nexport const zDimensions = z.array(zDimension)\nexport const zDimensionTree = z.array(zDimensionGroup.or(zDimension))\n"],"names":["zDimension","z","zDimensionEncoding","zDimensionGroup","zDimensions","zDimensionTree"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types/properties/dimensions/zDimensions.js","sources":["webpack://@visactor/vseed/./src/types/properties/dimensions/zDimensions.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zDimensionEncoding } from '../encoding'\nimport { zTimeFormat } from '../format'\nimport type { DimensionGroup } from './tableDimension'\n\nexport const zDimension = z.object({\n id: z.string(),\n alias: z.string().optional(),\n encoding: zDimensionEncoding.optional(),\n timeFormat: zTimeFormat.optional(),\n})\nexport const zDimensionGroup: z.ZodType<DimensionGroup> = z.object({\n id: z.string(),\n alias: z.string().optional(),\n get children() {\n return z.array(zDimensionGroup.or(zDimension)).optional()\n },\n})\nexport const zDimensions = z.array(zDimension)\nexport const zDimensionTree = z.array(zDimensionGroup.or(zDimension))\n"],"names":["zDimension","z","zDimensionEncoding","zTimeFormat","zDimensionGroup","zDimensions","zDimensionTree"],"mappings":";;;AAKO,MAAMA,aAAaC,EAAE,MAAM,CAAC;IACjC,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM,GAAG,QAAQ;IAC1B,UAAUC,mBAAmB,QAAQ;IACrC,YAAYC,YAAY,QAAQ;AAClC;AACO,MAAMC,kBAA6CH,EAAE,MAAM,CAAC;IACjE,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM,GAAG,QAAQ;IAC1B,IAAI,YAAW;QACb,OAAOA,EAAE,KAAK,CAACG,gBAAgB,EAAE,CAACJ,aAAa,QAAQ;IACzD;AACF;AACO,MAAMK,cAAcJ,EAAE,KAAK,CAACD;AAC5B,MAAMM,iBAAiBL,EAAE,KAAK,CAACG,gBAAgB,EAAE,CAACJ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export type TimeGranularity = 'year' | 'quarter' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second';
|
|
3
|
+
export interface TimeFormat {
|
|
4
|
+
/**
|
|
5
|
+
* @description 时间粒度,决定日期展示精度
|
|
6
|
+
*/
|
|
7
|
+
type: TimeGranularity;
|
|
8
|
+
}
|
|
9
|
+
export declare const zTimeFormat: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
type: z.ZodEnum<{
|
|
11
|
+
year: "year";
|
|
12
|
+
quarter: "quarter";
|
|
13
|
+
month: "month";
|
|
14
|
+
week: "week";
|
|
15
|
+
day: "day";
|
|
16
|
+
hour: "hour";
|
|
17
|
+
minute: "minute";
|
|
18
|
+
second: "second";
|
|
19
|
+
}>;
|
|
20
|
+
}, z.core.$strip>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
const zTimeFormat = z.object({
|
|
3
|
+
type: z["enum"]([
|
|
4
|
+
'year',
|
|
5
|
+
'quarter',
|
|
6
|
+
'month',
|
|
7
|
+
'week',
|
|
8
|
+
'day',
|
|
9
|
+
'hour',
|
|
10
|
+
'minute',
|
|
11
|
+
'second'
|
|
12
|
+
])
|
|
13
|
+
}).optional();
|
|
14
|
+
export { zTimeFormat };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=timeFormat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types/properties/format/timeFormat.js","sources":["webpack://@visactor/vseed/./src/types/properties/format/timeFormat.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport type TimeGranularity = 'year' | 'quarter' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second'\n\nexport interface TimeFormat {\n /**\n * @description 时间粒度,决定日期展示精度\n */\n type: TimeGranularity\n}\n\nexport const zTimeFormat = z\n .object({\n type: z.enum(['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second']),\n })\n .optional()\n"],"names":["zTimeFormat","z"],"mappings":";AAWO,MAAMA,cAAcC,EAAAA,MAClB,CAAC;IACN,MAAMA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAQ;QAAW;QAAS;QAAQ;QAAO;QAAQ;QAAU;KAAS;AACtF,GACC,QAAQ"}
|