@visactor/vseed 0.0.19 → 0.0.20
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/advanced/colorItems.d.ts +2 -0
- package/dist/builder/builder/advanced/index.d.ts +1 -0
- package/dist/builder/builder/builder.d.ts +132 -110
- package/dist/builder/register/chartType.d.ts +2 -0
- package/dist/builder/register/index.d.ts +1 -1
- package/dist/dataReshape/foldMeasures.d.ts +3 -3
- package/dist/index.cjs +580 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +501 -130
- package/dist/index.js.map +1 -1
- package/dist/pipeline/advanced/chart/index.d.ts +1 -0
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/area.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/areaPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/bar.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/column.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/donut.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/line.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/pie.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/rose.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
- package/dist/pipeline/advanced/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/annotation/annotation.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/config/config.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingFunnel.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingPie.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingRose.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingXY.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingYX.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/encoding/encodingYY.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/encoding/index.d.ts +1 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/index.d.ts +0 -1
- package/dist/pipeline/advanced/chart/pipes/init/autoDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/init/autoMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/init/initAdvancedVSeed.d.ts +2 -0
- package/dist/pipeline/advanced/chart/pipes/markStyle/markStyle.d.ts +2 -0
- package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/pivotAdapter.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D2M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo2D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D1M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D2M.d.ts +1 -1
- package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo2D1M.d.ts +1 -1
- package/dist/pipeline/advanced/chart/pipes/theme/theme.d.ts +2 -0
- package/dist/pipeline/advanced/index.d.ts +2 -1
- package/dist/pipeline/advanced/table/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipeline/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipeline/pivotTable.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipeline/table.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/index.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoPivotDimensions.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/autoPivotMeasures.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/init/index.d.ts +5 -0
- package/dist/pipeline/advanced/table/pipes/init/initAdvancedVSeed.d.ts +2 -0
- package/dist/pipeline/advanced/table/pipes/records/index.d.ts +1 -0
- package/dist/pipeline/advanced/table/pipes/records/records.d.ts +2 -0
- package/dist/pipeline/spec/chart/index.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/area.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/areaPercent.d.ts +1 -0
- package/dist/pipeline/spec/chart/pipeline/bar.d.ts +2 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/column.d.ts +1 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/donut.d.ts +2 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipeline/line.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/pie.d.ts +2 -0
- package/dist/pipeline/spec/chart/pipeline/rose.d.ts +1 -0
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
- package/dist/pipeline/spec/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
- package/dist/pipeline/spec/chart/pipes/index.d.ts +14 -0
- package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/index.d.ts +1 -0
- package/dist/pipeline/spec/index.d.ts +2 -1
- package/dist/pipeline/spec/table/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipeline/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipeline/pivotTable.d.ts +2 -0
- package/dist/pipeline/spec/table/pipeline/table.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +3 -0
- package/dist/pipeline/spec/table/pipes/columns/pivotColumns.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/index.d.ts +4 -0
- package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/indicators/pivotIndicators.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/index.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/pivotTable.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/init/table.d.ts +2 -0
- package/dist/pipeline/spec/table/pipes/rows/index.d.ts +1 -0
- package/dist/pipeline/spec/table/pipes/rows/pivotRows.d.ts +2 -0
- package/dist/pipeline/utils/chatType.d.ts +4 -2
- package/dist/pipeline/utils/dimensions/find.d.ts +4 -0
- package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
- package/dist/pipeline/utils/index.d.ts +2 -0
- package/dist/pipeline/utils/measures/find.d.ts +4 -0
- package/dist/pipeline/utils/measures/index.d.ts +1 -1
- package/dist/pipeline/utils/tree/index.d.ts +1 -0
- package/dist/pipeline/utils/tree/traverse.d.ts +11 -0
- package/dist/types/advancedVSeed.d.ts +16 -5
- package/dist/types/builder/builder.d.ts +1 -0
- package/dist/types/chartType/area/area.d.ts +7 -8
- package/dist/types/chartType/areaPercent/areaPercent.d.ts +7 -8
- package/dist/types/chartType/bar/bar.d.ts +7 -8
- package/dist/types/chartType/barParallel/barParallel.d.ts +7 -8
- package/dist/types/chartType/barPercent/barPercent.d.ts +7 -8
- package/dist/types/chartType/column/column.d.ts +7 -8
- package/dist/types/chartType/columnParallel/columnParallel.d.ts +7 -8
- package/dist/types/chartType/columnPercent/columnPercent.d.ts +7 -8
- package/dist/types/chartType/donut/donut.d.ts +7 -8
- package/dist/types/chartType/dualAxis/dualAxis.d.ts +3 -3
- package/dist/types/chartType/funnel/funnel.d.ts +7 -8
- package/dist/types/chartType/index.d.ts +3 -3
- package/dist/types/chartType/line/line.d.ts +7 -8
- package/dist/types/chartType/pie/pie.d.ts +7 -8
- package/dist/types/chartType/pivotTable/index.d.ts +1 -1
- package/dist/types/chartType/pivotTable/pivotTable.d.ts +58 -3
- package/dist/types/chartType/rose/rose.d.ts +4 -5
- package/dist/types/chartType/roseParallel/roseParallel.d.ts +4 -5
- package/dist/types/chartType/scatter/scatter.d.ts +7 -8
- package/dist/types/chartType/table/index.d.ts +1 -1
- package/dist/types/chartType/table/table.d.ts +98 -4
- package/dist/types/properties/dimensions/dimensions.d.ts +48 -6
- package/dist/types/properties/dimensions/index.d.ts +1 -2
- package/dist/types/properties/measures/measures.d.ts +39 -3
- package/dist/types/vseed.d.ts +205 -76
- package/dist/umd/index.js +532 -137
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingFunnel.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingPie.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingRose.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingXY.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingYX.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/encoding/encodingYY.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/i18n/index.d.ts +0 -1
- package/dist/pipeline/advanced/pipes/i18n/locale.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/autoDimensions.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/autoMeasures.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/initAdvancedVSeed.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/init/utils.d.ts +0 -1
- package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts +0 -2
- package/dist/pipeline/advanced/pipes/theme/theme.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/area.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/areaPercent.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/bar.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/column.d.ts +0 -1
- package/dist/pipeline/spec/pipeline/donut.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/line.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/pie.d.ts +0 -2
- package/dist/pipeline/spec/pipeline/rose.d.ts +0 -1
- package/dist/pipeline/spec/pipes/index.d.ts +0 -14
- package/dist/pipeline/utils/measures/findMeasureById.d.ts +0 -3
- /package/dist/pipeline/advanced/{pipeline → chart/pipeline}/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/annotation/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/config/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/init/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/markStyle/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/index.d.ts +0 -0
- /package/dist/pipeline/advanced/{pipes → chart/pipes}/theme/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipeline → chart/pipeline}/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationArea.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationAreaBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationHorizontalLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationPoint.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationVerticalLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/utils.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/a.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/angle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/radius.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xLinear.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yBand.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yLinear.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/background.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/color.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairRect.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairLine.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairRect.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/dataset.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/datasetPivot.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/area.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/bar.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/barParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/column.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/columnParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/donut.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/funnel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/line.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pie.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pivot.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/rose.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/roseParallel.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/scatter.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/label.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/discreteLegend.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/pivotDiscreteLegend.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/areaStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/barStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/lineStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointState.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/percent.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotAdapter.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotColumnDimensions.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotGridStyle.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotIndicators.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotRowDimensions.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stack.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stackCornerRadius.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/index.d.ts +0 -0
- /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/tooltip.d.ts +0 -0
- /package/dist/pipeline/{constant.d.ts → utils/constant.d.ts} +0 -0
@@ -1,5 +1,6 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { type Locale } from '../../i18n';
|
3
|
+
import { type DimensionTree, type BackgroundColor, type Dataset, type Dimensions, type Theme } from '../../properties';
|
3
4
|
/**
|
4
5
|
* 透视表类型定义
|
5
6
|
* @description 透视表,适用于多维度数据交叉分析场景,可灵活配置行、列维度和指标计算方式
|
@@ -42,7 +43,7 @@ export interface PivotTable {
|
|
42
43
|
* @type {Measures}
|
43
44
|
* @example [{id: 'sales', alias: '销售额', aggregation: 'sum'}]
|
44
45
|
*/
|
45
|
-
measures?:
|
46
|
+
measures?: DimensionTree;
|
46
47
|
/**
|
47
48
|
* 图表的背景颜色
|
48
49
|
* @default transparent 默认为透明背景
|
@@ -65,3 +66,57 @@ export interface PivotTable {
|
|
65
66
|
*/
|
66
67
|
locale?: Locale;
|
67
68
|
}
|
69
|
+
export declare const zPivotTable: z.ZodObject<{
|
70
|
+
chartType: z.ZodLiteral<"pivotTable">;
|
71
|
+
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
72
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
73
|
+
id: z.ZodString;
|
74
|
+
alias: z.ZodOptional<z.ZodString>;
|
75
|
+
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
76
|
+
dimension: "dimension";
|
77
|
+
rowDimension: "rowDimension";
|
78
|
+
columnDimension: "columnDimension";
|
79
|
+
}>>>;
|
80
|
+
}, z.core.$strip>>>;
|
81
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
82
|
+
id: z.ZodString;
|
83
|
+
alias: z.ZodOptional<z.ZodString>;
|
84
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
85
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
86
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
87
|
+
number: "number";
|
88
|
+
percent: "percent";
|
89
|
+
permille: "permille";
|
90
|
+
scientific: "scientific";
|
91
|
+
}>>>;
|
92
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
93
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
94
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
95
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
96
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
97
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
98
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
99
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
100
|
+
morePrecision: "morePrecision";
|
101
|
+
lessPrecision: "lessPrecision";
|
102
|
+
}>>>;
|
103
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
104
|
+
floor: "floor";
|
105
|
+
ceil: "ceil";
|
106
|
+
expand: "expand";
|
107
|
+
trunc: "trunc";
|
108
|
+
halfCeil: "halfCeil";
|
109
|
+
halfFloor: "halfFloor";
|
110
|
+
halfExpand: "halfExpand";
|
111
|
+
halfTrunc: "halfTrunc";
|
112
|
+
halfEven: "halfEven";
|
113
|
+
}>>>;
|
114
|
+
}, z.core.$strip>>>>;
|
115
|
+
}, z.core.$strip>>>;
|
116
|
+
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
117
|
+
theme: z.ZodOptional<z.ZodString>;
|
118
|
+
locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
119
|
+
"zh-CN": "zh-CN";
|
120
|
+
"en-US": "en-US";
|
121
|
+
}>>>;
|
122
|
+
}, z.core.$strip>;
|
@@ -89,17 +89,16 @@ export interface Rose {
|
|
89
89
|
export declare const zRose: z.ZodObject<{
|
90
90
|
chartType: z.ZodLiteral<"rose">;
|
91
91
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
92
|
-
dimensions: z.ZodOptional<z.
|
92
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
93
|
id: z.ZodString;
|
94
94
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
96
95
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
97
96
|
dimension: "dimension";
|
98
97
|
rowDimension: "rowDimension";
|
99
98
|
columnDimension: "columnDimension";
|
100
99
|
}>>>;
|
101
|
-
}, z.core.$strip
|
102
|
-
measures: z.ZodOptional<z.
|
100
|
+
}, z.core.$strip>>>;
|
101
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
103
102
|
id: z.ZodString;
|
104
103
|
alias: z.ZodOptional<z.ZodString>;
|
105
104
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -171,7 +170,7 @@ export declare const zRose: z.ZodObject<{
|
|
171
170
|
halfEven: "halfEven";
|
172
171
|
}>>>;
|
173
172
|
}, z.core.$strip>>>>;
|
174
|
-
}, z.core.$strip>]
|
173
|
+
}, z.core.$strip>]>>>;
|
175
174
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
176
175
|
color: z.ZodOptional<z.ZodObject<{
|
177
176
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -89,17 +89,16 @@ export interface RoseParallel {
|
|
89
89
|
export declare const zRoseParallel: z.ZodObject<{
|
90
90
|
chartType: z.ZodLiteral<"roseParallel">;
|
91
91
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
92
|
-
dimensions: z.ZodOptional<z.
|
92
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
93
93
|
id: z.ZodString;
|
94
94
|
alias: z.ZodOptional<z.ZodString>;
|
95
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
96
95
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
97
96
|
dimension: "dimension";
|
98
97
|
rowDimension: "rowDimension";
|
99
98
|
columnDimension: "columnDimension";
|
100
99
|
}>>>;
|
101
|
-
}, z.core.$strip
|
102
|
-
measures: z.ZodOptional<z.
|
100
|
+
}, z.core.$strip>>>;
|
101
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
103
102
|
id: z.ZodString;
|
104
103
|
alias: z.ZodOptional<z.ZodString>;
|
105
104
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -171,7 +170,7 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
171
170
|
halfEven: "halfEven";
|
172
171
|
}>>>;
|
173
172
|
}, z.core.$strip>>>>;
|
174
|
-
}, z.core.$strip>]
|
173
|
+
}, z.core.$strip>]>>>;
|
175
174
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
176
175
|
color: z.ZodOptional<z.ZodObject<{
|
177
176
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Locale } from '../../i18n';
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend,
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, DimensionTree, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis } from '../../properties';
|
3
3
|
import { z } from 'zod';
|
4
4
|
/**
|
5
5
|
* 散点图类型定义
|
@@ -38,10 +38,10 @@ export interface Scatter {
|
|
38
38
|
/**
|
39
39
|
* 指标
|
40
40
|
* @description 散点图的第一个指标字段会放至X轴, 其余指标会进行合并, 映射至Y轴
|
41
|
-
* @type {
|
41
|
+
* @type {DimensionTree}
|
42
42
|
* @example [{id: "value", alias: "数值"}]
|
43
43
|
*/
|
44
|
-
measures?:
|
44
|
+
measures?: DimensionTree;
|
45
45
|
/**
|
46
46
|
* 图表的背景颜色
|
47
47
|
* @default transparent 默认为透明背景
|
@@ -131,17 +131,16 @@ export interface Scatter {
|
|
131
131
|
export declare const zScatter: z.ZodObject<{
|
132
132
|
chartType: z.ZodLiteral<"scatter">;
|
133
133
|
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
134
|
-
dimensions: z.ZodOptional<z.
|
134
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
135
135
|
id: z.ZodString;
|
136
136
|
alias: z.ZodOptional<z.ZodString>;
|
137
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
138
137
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
139
138
|
dimension: "dimension";
|
140
139
|
rowDimension: "rowDimension";
|
141
140
|
columnDimension: "columnDimension";
|
142
141
|
}>>>;
|
143
|
-
}, z.core.$strip
|
144
|
-
measures: z.ZodOptional<z.
|
142
|
+
}, z.core.$strip>>>;
|
143
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
145
144
|
id: z.ZodString;
|
146
145
|
alias: z.ZodOptional<z.ZodString>;
|
147
146
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -213,7 +212,7 @@ export declare const zScatter: z.ZodObject<{
|
|
213
212
|
halfEven: "halfEven";
|
214
213
|
}>>>;
|
215
214
|
}, z.core.$strip>>>>;
|
216
|
-
}, z.core.$strip>]
|
215
|
+
}, z.core.$strip>]>>>;
|
217
216
|
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
218
217
|
color: z.ZodOptional<z.ZodObject<{
|
219
218
|
colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export * from './table';
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { type Locale } from '../../i18n';
|
3
|
+
import type { DimensionTree, MeasureTree } from '../../properties';
|
4
|
+
import { type BackgroundColor, type Dataset, type Theme } from '../../properties';
|
3
5
|
/**
|
4
6
|
* 表格类型定义
|
5
7
|
* @description 表格,适用于详细数据展示场景,行列分明,便于查看具体数值
|
@@ -35,14 +37,14 @@ export interface Table {
|
|
35
37
|
* @type {Dimensions}
|
36
38
|
* @example [{id: "name", alias: "名称"}]
|
37
39
|
*/
|
38
|
-
dimensions?:
|
40
|
+
dimensions?: DimensionTree;
|
39
41
|
/**
|
40
42
|
* 指标
|
41
43
|
* @description 表格的每个指标会对应一行, 并且天生支持指标组合.
|
42
44
|
* @type {Measures}
|
43
45
|
* @example [{id: "value", alias: "数值"}]
|
44
46
|
*/
|
45
|
-
measures?:
|
47
|
+
measures?: MeasureTree;
|
46
48
|
/**
|
47
49
|
* 图表的背景颜色
|
48
50
|
* @default transparent 默认为透明背景
|
@@ -65,3 +67,95 @@ export interface Table {
|
|
65
67
|
*/
|
66
68
|
locale?: Locale;
|
67
69
|
}
|
70
|
+
export declare const zTable: z.ZodObject<{
|
71
|
+
chartType: z.ZodLiteral<"table">;
|
72
|
+
dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
|
73
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
74
|
+
id: z.ZodString;
|
75
|
+
alias: z.ZodOptional<z.ZodString>;
|
76
|
+
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
77
|
+
dimension: "dimension";
|
78
|
+
rowDimension: "rowDimension";
|
79
|
+
columnDimension: "columnDimension";
|
80
|
+
}>>>;
|
81
|
+
}, z.core.$strip>>>;
|
82
|
+
measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
83
|
+
id: z.ZodString;
|
84
|
+
alias: z.ZodOptional<z.ZodString>;
|
85
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
86
|
+
id: z.ZodString;
|
87
|
+
alias: z.ZodOptional<z.ZodString>;
|
88
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
89
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
90
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
91
|
+
number: "number";
|
92
|
+
percent: "percent";
|
93
|
+
permille: "permille";
|
94
|
+
scientific: "scientific";
|
95
|
+
}>>>;
|
96
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
97
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
98
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
99
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
100
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
101
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
102
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
103
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
104
|
+
morePrecision: "morePrecision";
|
105
|
+
lessPrecision: "lessPrecision";
|
106
|
+
}>>>;
|
107
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
108
|
+
floor: "floor";
|
109
|
+
ceil: "ceil";
|
110
|
+
expand: "expand";
|
111
|
+
trunc: "trunc";
|
112
|
+
halfCeil: "halfCeil";
|
113
|
+
halfFloor: "halfFloor";
|
114
|
+
halfExpand: "halfExpand";
|
115
|
+
halfTrunc: "halfTrunc";
|
116
|
+
halfEven: "halfEven";
|
117
|
+
}>>>;
|
118
|
+
}, z.core.$strip>>>>;
|
119
|
+
}, z.core.$strip>]>>>;
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
121
|
+
id: z.ZodString;
|
122
|
+
alias: z.ZodOptional<z.ZodString>;
|
123
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
124
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
125
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
126
|
+
number: "number";
|
127
|
+
percent: "percent";
|
128
|
+
permille: "permille";
|
129
|
+
scientific: "scientific";
|
130
|
+
}>>>;
|
131
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
132
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
133
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
134
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
135
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
136
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
137
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
138
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
139
|
+
morePrecision: "morePrecision";
|
140
|
+
lessPrecision: "lessPrecision";
|
141
|
+
}>>>;
|
142
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
143
|
+
floor: "floor";
|
144
|
+
ceil: "ceil";
|
145
|
+
expand: "expand";
|
146
|
+
trunc: "trunc";
|
147
|
+
halfCeil: "halfCeil";
|
148
|
+
halfFloor: "halfFloor";
|
149
|
+
halfExpand: "halfExpand";
|
150
|
+
halfTrunc: "halfTrunc";
|
151
|
+
halfEven: "halfEven";
|
152
|
+
}>>>;
|
153
|
+
}, z.core.$strip>>>>;
|
154
|
+
}, z.core.$strip>]>>>;
|
155
|
+
backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
|
156
|
+
theme: z.ZodOptional<z.ZodString>;
|
157
|
+
locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
158
|
+
"zh-CN": "zh-CN";
|
159
|
+
"en-US": "en-US";
|
160
|
+
}>>>;
|
161
|
+
}, z.core.$strip>;
|
@@ -2,22 +2,64 @@ import { z } from 'zod';
|
|
2
2
|
export declare const zDimension: z.ZodObject<{
|
3
3
|
id: z.ZodString;
|
4
4
|
alias: z.ZodOptional<z.ZodString>;
|
5
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
6
5
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
7
6
|
dimension: "dimension";
|
8
7
|
rowDimension: "rowDimension";
|
9
8
|
columnDimension: "columnDimension";
|
10
9
|
}>>>;
|
11
10
|
}, z.core.$strip>;
|
12
|
-
export declare const
|
11
|
+
export declare const zDimensionGroup: z.ZodObject<{
|
12
|
+
id: z.ZodString;
|
13
|
+
alias: z.ZodOptional<z.ZodString>;
|
14
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
15
|
+
id: z.ZodString;
|
16
|
+
alias: z.ZodOptional<z.ZodString>;
|
17
|
+
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
18
|
+
dimension: "dimension";
|
19
|
+
rowDimension: "rowDimension";
|
20
|
+
columnDimension: "columnDimension";
|
21
|
+
}>>>;
|
22
|
+
}, z.core.$strip>]>>>;
|
23
|
+
}, z.core.$strip>;
|
24
|
+
export declare const zDimensions: z.ZodArray<z.ZodObject<{
|
25
|
+
id: z.ZodString;
|
26
|
+
alias: z.ZodOptional<z.ZodString>;
|
27
|
+
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
28
|
+
dimension: "dimension";
|
29
|
+
rowDimension: "rowDimension";
|
30
|
+
columnDimension: "columnDimension";
|
31
|
+
}>>>;
|
32
|
+
}, z.core.$strip>>;
|
33
|
+
export declare const zDimensionTree: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
34
|
+
id: z.ZodString;
|
35
|
+
alias: z.ZodOptional<z.ZodString>;
|
36
|
+
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
37
|
+
id: z.ZodString;
|
38
|
+
alias: z.ZodOptional<z.ZodString>;
|
39
|
+
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
40
|
+
dimension: "dimension";
|
41
|
+
rowDimension: "rowDimension";
|
42
|
+
columnDimension: "columnDimension";
|
43
|
+
}>>>;
|
44
|
+
}, z.core.$strip>]>>>;
|
45
|
+
}, z.core.$strip>, z.ZodObject<{
|
13
46
|
id: z.ZodString;
|
14
47
|
alias: z.ZodOptional<z.ZodString>;
|
15
|
-
visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
16
48
|
location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
17
49
|
dimension: "dimension";
|
18
50
|
rowDimension: "rowDimension";
|
19
51
|
columnDimension: "columnDimension";
|
20
52
|
}>>>;
|
21
|
-
}, z.core.$strip
|
22
|
-
export type Dimension =
|
23
|
-
|
53
|
+
}, z.core.$strip>]>>;
|
54
|
+
export type Dimension = {
|
55
|
+
id: string;
|
56
|
+
alias?: string;
|
57
|
+
location?: 'dimension' | 'rowDimension' | 'columnDimension';
|
58
|
+
};
|
59
|
+
export type DimensionGroup = {
|
60
|
+
id: string;
|
61
|
+
alias?: string;
|
62
|
+
children?: (Dimension | DimensionGroup)[];
|
63
|
+
};
|
64
|
+
export type Dimensions = Dimension[];
|
65
|
+
export type DimensionTree = (Dimension | DimensionGroup)[];
|
@@ -1,2 +1 @@
|
|
1
|
-
export
|
2
|
-
export { zDimension, zDimensions } from './dimensions';
|
1
|
+
export * from './dimensions';
|
@@ -35,7 +35,8 @@ export type MeasureGroup = {
|
|
35
35
|
*/
|
36
36
|
children?: (Measure | MeasureGroup)[];
|
37
37
|
};
|
38
|
-
export type Measures =
|
38
|
+
export type Measures = Measure[];
|
39
|
+
export type MeasureTree = (Measure | MeasureGroup)[];
|
39
40
|
export declare const zMeasure: z.ZodObject<{
|
40
41
|
id: z.ZodString;
|
41
42
|
alias: z.ZodOptional<z.ZodString>;
|
@@ -110,7 +111,42 @@ export declare const zMeasureGroup: z.ZodObject<{
|
|
110
111
|
}, z.core.$strip>>>>;
|
111
112
|
}, z.core.$strip>]>>>;
|
112
113
|
}, z.core.$strip>;
|
113
|
-
export declare const zMeasures: z.
|
114
|
+
export declare const zMeasures: z.ZodArray<z.ZodObject<{
|
115
|
+
id: z.ZodString;
|
116
|
+
alias: z.ZodOptional<z.ZodString>;
|
117
|
+
autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
118
|
+
format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
119
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
120
|
+
number: "number";
|
121
|
+
percent: "percent";
|
122
|
+
permille: "permille";
|
123
|
+
scientific: "scientific";
|
124
|
+
}>>>;
|
125
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
126
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
127
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
128
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
129
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
130
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
131
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
132
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
133
|
+
morePrecision: "morePrecision";
|
134
|
+
lessPrecision: "lessPrecision";
|
135
|
+
}>>>;
|
136
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
137
|
+
floor: "floor";
|
138
|
+
ceil: "ceil";
|
139
|
+
expand: "expand";
|
140
|
+
trunc: "trunc";
|
141
|
+
halfCeil: "halfCeil";
|
142
|
+
halfFloor: "halfFloor";
|
143
|
+
halfExpand: "halfExpand";
|
144
|
+
halfTrunc: "halfTrunc";
|
145
|
+
halfEven: "halfEven";
|
146
|
+
}>>>;
|
147
|
+
}, z.core.$strip>>>>;
|
148
|
+
}, z.core.$strip>>;
|
149
|
+
export declare const zMeasureTree: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
114
150
|
id: z.ZodString;
|
115
151
|
alias: z.ZodOptional<z.ZodString>;
|
116
152
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
|
@@ -182,4 +218,4 @@ export declare const zMeasures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject
|
|
182
218
|
halfEven: "halfEven";
|
183
219
|
}>>>;
|
184
220
|
}, z.core.$strip>>>>;
|
185
|
-
}, z.core.$strip>]
|
221
|
+
}, z.core.$strip>]>>;
|