@visactor/vseed 0.1.14 → 0.1.15
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 +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +1113 -9
- package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +1 -3
- package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -3
- package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +9 -3
- package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +9 -3
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +8 -3
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +8 -3
- package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/index.d.ts +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/index.js +2 -2
- package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +5 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js +40 -32
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js +15 -52
- package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/{labelColorInversion.d.ts → labelScatter.d.ts} +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js +19 -0
- package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/series/series.js +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/series/series.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +3 -3
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +13 -30
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +6 -6
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js +6 -18
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +6 -18
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js +8 -11
- package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js +8 -13
- package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js.map +1 -1
- package/dist/esm/pipeline/utils/constant.d.ts +1 -0
- package/dist/esm/pipeline/utils/constant.js +2 -1
- package/dist/esm/pipeline/utils/constant.js.map +1 -1
- package/dist/esm/pipeline/utils/format/createFormatter.d.ts +1 -1
- package/dist/esm/pipeline/utils/format/createFormatter.js +3 -2
- package/dist/esm/pipeline/utils/format/createFormatter.js.map +1 -1
- package/dist/esm/pipeline/utils/format/createFormatterByMeasure.d.ts +2 -0
- package/dist/esm/pipeline/utils/format/createFormatterByMeasure.js +13 -0
- package/dist/esm/pipeline/utils/format/createFormatterByMeasure.js.map +1 -0
- package/dist/esm/pipeline/utils/format/createNumFormatter.d.ts +1 -1
- package/dist/esm/pipeline/utils/format/createNumFormatter.js.map +1 -1
- package/dist/esm/pipeline/utils/format/index.d.ts +1 -0
- package/dist/esm/pipeline/utils/format/index.js +1 -0
- package/dist/esm/theme/dark.js +5 -1
- package/dist/esm/theme/dark.js.map +1 -1
- package/dist/esm/theme/light.js +23 -4
- package/dist/esm/theme/light.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +947 -17
- package/dist/esm/types/chartType/area/zArea.d.ts +60 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +60 -0
- package/dist/esm/types/chartType/bar/zBar.d.ts +60 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +60 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +60 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +60 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +60 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +60 -0
- package/dist/esm/types/chartType/donut/zDonut.d.ts +30 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +270 -0
- package/dist/esm/types/chartType/funnel/zFunnel.d.ts +30 -0
- package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +30 -0
- package/dist/esm/types/chartType/line/zLine.d.ts +60 -0
- package/dist/esm/types/chartType/pie/zPie.d.ts +30 -0
- package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +30 -0
- package/dist/esm/types/chartType/radar/zRadar.d.ts +30 -0
- package/dist/esm/types/chartType/rose/zRose.d.ts +30 -0
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +30 -0
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +210 -0
- package/dist/esm/types/chartType/table/zTable.d.ts +30 -0
- package/dist/esm/types/properties/config/axes/bandAxis.d.ts +146 -3
- package/dist/esm/types/properties/config/axes/index.d.ts +0 -2
- package/dist/esm/types/properties/config/axes/index.js +0 -1
- package/dist/esm/types/properties/config/axes/linearAxis.d.ts +149 -3
- package/dist/esm/types/properties/config/axes/zLinearAxis.d.ts +60 -0
- package/dist/esm/types/properties/config/axes/zLinearAxis.js +2 -0
- package/dist/esm/types/properties/config/axes/zLinearAxis.js.map +1 -1
- package/dist/esm/types/properties/config/config.d.ts +916 -16
- package/dist/esm/types/properties/config/label/label.d.ts +2 -2
- package/dist/esm/types/properties/config/label/zLabel.js +1 -1
- package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
- package/dist/esm/types/properties/format/numFormat.js.map +1 -0
- package/dist/esm/types/properties/index.d.ts +1 -0
- package/dist/esm/types/properties/index.js +1 -0
- package/dist/esm/types/properties/measures/index.d.ts +0 -1
- package/dist/esm/types/properties/measures/index.js +0 -1
- package/dist/esm/types/properties/measures/measures.d.ts +6 -2
- package/dist/esm/types/properties/measures/zDualMeasures.d.ts +240 -0
- package/dist/esm/types/properties/measures/zMeasures.d.ts +90 -0
- package/dist/esm/types/properties/measures/zMeasures.js +2 -1
- package/dist/esm/types/properties/measures/zMeasures.js.map +1 -1
- package/dist/esm/types/properties/measures/zScatterMeasures.d.ts +240 -0
- package/dist/esm/types/properties/theme/customTheme.d.ts +916 -16
- package/dist/esm/types/zVseed.d.ts +1389 -99
- package/dist/umd/index.js +181 -252
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/labelColorInversion.js +0 -13
- package/dist/esm/pipeline/spec/chart/pipes/label/labelColorInversion.js.map +0 -1
- package/dist/esm/types/properties/config/axes/axis.d.ts +0 -208
- package/dist/esm/types/properties/config/axes/axis.js +0 -0
- package/dist/esm/types/properties/config/axes/zAxis.d.ts +0 -47
- package/dist/esm/types/properties/config/axes/zAxis.js +0 -54
- package/dist/esm/types/properties/config/axes/zAxis.js.map +0 -1
- package/dist/esm/types/properties/measures/format/numFormat.js.map +0 -1
- /package/dist/esm/types/properties/{measures/format → format}/formatter.d.ts +0 -0
- /package/dist/esm/types/properties/{measures/format → format}/formatter.js +0 -0
- /package/dist/esm/types/properties/{measures/format → format}/index.d.ts +0 -0
- /package/dist/esm/types/properties/{measures/format → format}/index.js +0 -0
- /package/dist/esm/types/properties/{measures/format → format}/numFormat.d.ts +0 -0
- /package/dist/esm/types/properties/{measures/format → format}/numFormat.js +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { NumFormat } from '../../
|
1
|
+
import type { NumFormat } from '../../format';
|
2
2
|
export type Label = {
|
3
3
|
/**
|
4
4
|
* @description 标签功能是否开启
|
@@ -19,7 +19,7 @@ export type Label = {
|
|
19
19
|
*/
|
20
20
|
showValuePercent?: boolean;
|
21
21
|
/**
|
22
|
-
* @description
|
22
|
+
* @description 标签数值是否自动格式化, 当配置了 numFormat 时, 该配置项失效
|
23
23
|
*/
|
24
24
|
autoFormat?: boolean;
|
25
25
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types/properties/config/label/zLabel.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/label/zLabel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from '../../
|
1
|
+
{"version":3,"file":"types/properties/config/label/zLabel.js","sources":["webpack://@visactor/vseed/./src/types/properties/config/label/zLabel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from '../../format'\n\nexport const zLabel = z.object({\n enable: z.boolean().nullish(),\n wrap: z.boolean().nullish(),\n showValue: z.boolean().nullish(),\n showValuePercent: z.boolean().nullish(),\n autoFormat: z.boolean().nullish(),\n numFormat: zNumFormat.nullish(),\n labelFontSize: z.number().nullish(),\n labelFontWeight: z.number().or(z.string()).nullish(),\n labelBackgroundColor: z.string().nullish(),\n labelColor: z.string().nullish(),\n labelColorSmartInvert: z.boolean().nullish(),\n labelPosition: z.string().nullish(),\n labelOverlap: z.boolean().nullish(),\n})\n"],"names":["zLabel","z","zNumFormat"],"mappings":";;AAGO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,QAAQA,EAAE,OAAO,GAAG,OAAO;IAC3B,MAAMA,EAAE,OAAO,GAAG,OAAO;IACzB,WAAWA,EAAE,OAAO,GAAG,OAAO;IAC9B,kBAAkBA,EAAE,OAAO,GAAG,OAAO;IACrC,YAAYA,EAAE,OAAO,GAAG,OAAO;IAC/B,WAAWC,WAAW,OAAO;IAC7B,eAAeD,EAAE,MAAM,GAAG,OAAO;IACjC,iBAAiBA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,MAAM,IAAI,OAAO;IAClD,sBAAsBA,EAAE,MAAM,GAAG,OAAO;IACxC,YAAYA,EAAE,MAAM,GAAG,OAAO;IAC9B,uBAAuBA,EAAE,OAAO,GAAG,OAAO;IAC1C,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,cAAcA,EAAE,OAAO,GAAG,OAAO;AACnC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types/properties/format/numFormat.js","sources":["webpack://@visactor/vseed/./src/types/properties/format/numFormat.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport interface NumFormat {\n /**\n * @description 数字格式化类型, 支持数值(十进制)、百分比(%)、千分比(‰)、科学计数法\n * @default 'number'\n */\n type?: 'number' | 'percent' | 'permille' | 'scientific'\n\n /**\n * @description 数值格式化比例, 百分比和千分比需要设置比例\n * @default 1\n * @example\n * - 100000 转换为 10万, ratio:10000, symbol:\"万\"\n * - 100000 转换为 10K, ratio:1000, symbol:\"K\"\n * - 100000 转换为 100%, ratio:100, symbol:\"%\"\n * - 100000 转换为 100‰, ratio:1000, symbol:\"‰\"\n */\n ratio?: number\n\n /**\n * @description 数值格式化符号, 例如%、‰\n * @default ''\n * @example\n * - 100000 转换为 10万, ratio:10000, symbol:\"万\"\n * - 100000 转换为 10K, ratio:1000, symbol:\"K\"\n * - 100000 转换为 100%, ratio:100, symbol:\"%\"\n * - 100000 转换为 100‰, ratio:1000, symbol:\"‰\"\n */\n symbol?: string\n\n /**\n * @description 数值格式化千分位分隔符\n * @default true\n */\n thousandSeparator?: boolean\n\n /**\n * @description 数值格式化后缀\n * @default ''\n */\n suffix?: string\n /**\n * @description 数值格式化前缀\n * @default ''\n */\n prefix?: string\n\n /**\n * @description 数值格式化小数位, 使用浏览器提供的 Intl.NumberFormat 中的 minimumFractionDigits 和 maximumFractionDigits 进行格式化, 优先级低于 significantDigits\n * @default 2\n * @example\n * - 1234.5678 转换为 1235, fractionDigits:0 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.6, fractionDigits:1 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.57, fractionDigits:2 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1230.568, fractionDigits:3 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.5678, fractionDigits:4 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.56780, fractionDigits:5 (roundingMode:halfCeil)\n */\n fractionDigits?: number\n\n /**\n * @description 数值格式化有效位, 使用浏览器提供的 Intl.NumberFormat 中的 minimumSignificantDigits 和 maximumSignificantDigits 进行格式化, 优先级高于 fractionDigits\n * @default undefined\n * @example\n * - 1234.5678 转换为 1000, significantDigits:1\n * - 1234.5678 转换为 1200, significantDigits:2\n * - 1234.5678 转换为 1230, significantDigits:3\n * - 1234.5678 转换为 1234, significantDigits:4\n * - 1234.5678 转换为 1234.6, significantDigits:5 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.57, significantDigits:6 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.568, significantDigits:7 (roundingMode:halfCeil)\n * - 1234.5678 转换为 1234.5678, significantDigits:8 (roundingMode:halfCeil)\n */\n significantDigits?: number\n\n /**\n * @description 数值格式化舍入优先级, 处理同时设置了 significantDigits 和 fractionDigits 时的舍入优先级, 使用浏览器提供的 Intl.NumberFormat 进行格式化, 规则同 Intl.NumberFormat 中的 roundingPriority\n * @default 'morePrecision'\n * @example\n * - 1234.5678 转换为 1230, significantDigits:3 (roundingPriority:lessPrecision)\n * - 1234.5678 转换为 1234.5678, significantDigits:3 (roundingPriority:morePrecision)\n */\n roundingPriority?: 'morePrecision' | 'lessPrecision'\n\n /**\n * @description 数值格式化舍入模式, 使用浏览器提供的 Intl.NumberFormat 进行格式化, 规则同 Intl.NumberFormat 中的 roundingMode\n * @default 'halfExpand'\n * @example\n */\n roundingMode?:\n | 'floor'\n | 'ceil'\n | 'expand'\n | 'trunc'\n | 'halfCeil'\n | 'halfFloor'\n | 'halfExpand'\n | 'halfTrunc'\n | 'halfEven'\n}\n\nexport const zNumFormat = z\n .object({\n type: z.enum(['number', 'percent', 'permille', 'scientific']).default('number').optional(),\n ratio: z.number().default(1).optional(),\n symbol: z.string().default('').optional(),\n thousandSeparator: z.boolean().default(false).optional(),\n prefix: z.string().default('').optional(),\n suffix: z.string().default('').optional(),\n\n fractionDigits: z.number().default(2).optional(),\n significantDigits: z.number().default(0).optional(),\n roundingPriority: z.enum(['morePrecision', 'lessPrecision']).default('morePrecision').optional(),\n roundingMode: z\n .enum(['floor', 'ceil', 'halfEven', 'expand', 'trunc', 'halfFloor', 'halfCeil', 'halfExpand', 'halfTrunc'])\n .default('halfCeil')\n .optional(),\n })\n .optional()\n"],"names":["zNumFormat","z"],"mappings":";AAsGO,MAAMA,aAAaC,EAAAA,MACjB,CAAC;IACN,MAAMA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAU;QAAW;QAAY;KAAa,EAAE,OAAO,CAAC,UAAU,QAAQ;IACxF,OAAOA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,QAAQ;IACrC,QAAQA,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,QAAQ;IACvC,mBAAmBA,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,QAAQ;IACtD,QAAQA,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,QAAQ;IACvC,QAAQA,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,QAAQ;IAEvC,gBAAgBA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,QAAQ;IAC9C,mBAAmBA,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,QAAQ;IACjD,kBAAkBA,CAAC,CAADA,OAAM,CAAC;QAAC;QAAiB;KAAgB,EAAE,OAAO,CAAC,iBAAiB,QAAQ;IAC9F,cAAcA,CAAC,CAADA,OACP,CAAC;QAAC;QAAS;QAAQ;QAAY;QAAU;QAAS;QAAa;QAAY;QAAc;KAAY,EACzG,OAAO,CAAC,YACR,QAAQ;AACb,GACC,QAAQ"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { MeasureEncoding } from '../encoding';
|
2
|
-
import type { NumFormat } from '
|
2
|
+
import type { NumFormat } from '../format/numFormat';
|
3
3
|
/**
|
4
4
|
* @description 指标
|
5
5
|
*/
|
@@ -14,7 +14,7 @@ export type Measure = {
|
|
14
14
|
*/
|
15
15
|
alias?: string;
|
16
16
|
/**
|
17
|
-
* @description 自动数值格式化
|
17
|
+
* @description 自动数值格式化 当配置了 format 时, 该配置项失效
|
18
18
|
* 开启后, 图表的数据标签、提示信息, 会根据指标的数值, 自动根据语言环境, 选择合适的格式化方式
|
19
19
|
* 格式化规则为设置为十进制数值, 开启compact notation, 最小0位小数, 最大2位小数, 自动四舍五入, 使用浏览器提供的 Intl.NumberFormatOptions 实现该逻辑.
|
20
20
|
* 例如:
|
@@ -26,6 +26,10 @@ export type Measure = {
|
|
26
26
|
/**
|
27
27
|
* @description 指标的数值格式化, 会自动应用于label、tooltip
|
28
28
|
*/
|
29
|
+
numFormat?: NumFormat;
|
30
|
+
/**
|
31
|
+
* @description same as numFormat, 指标的数值格式化, 会自动应用于label、tooltip
|
32
|
+
*/
|
29
33
|
format?: NumFormat;
|
30
34
|
/**
|
31
35
|
* @description 指标映射的通道
|
@@ -5,6 +5,36 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
6
6
|
alias: z.ZodOptional<z.ZodString>;
|
7
7
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
8
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
9
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
10
|
+
number: "number";
|
11
|
+
percent: "percent";
|
12
|
+
permille: "permille";
|
13
|
+
scientific: "scientific";
|
14
|
+
}>>>;
|
15
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
16
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
17
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
18
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
19
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
20
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
21
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
22
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
23
|
+
morePrecision: "morePrecision";
|
24
|
+
lessPrecision: "lessPrecision";
|
25
|
+
}>>>;
|
26
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
27
|
+
floor: "floor";
|
28
|
+
ceil: "ceil";
|
29
|
+
expand: "expand";
|
30
|
+
trunc: "trunc";
|
31
|
+
halfCeil: "halfCeil";
|
32
|
+
halfFloor: "halfFloor";
|
33
|
+
halfExpand: "halfExpand";
|
34
|
+
halfTrunc: "halfTrunc";
|
35
|
+
halfEven: "halfEven";
|
36
|
+
}>>>;
|
37
|
+
}, z.core.$strip>>>;
|
8
38
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
9
39
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
10
40
|
number: "number";
|
@@ -54,6 +84,36 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
54
84
|
id: z.ZodString;
|
55
85
|
alias: z.ZodOptional<z.ZodString>;
|
56
86
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
87
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
88
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
89
|
+
number: "number";
|
90
|
+
percent: "percent";
|
91
|
+
permille: "permille";
|
92
|
+
scientific: "scientific";
|
93
|
+
}>>>;
|
94
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
95
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
96
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
97
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
98
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
99
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
100
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
101
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
102
|
+
morePrecision: "morePrecision";
|
103
|
+
lessPrecision: "lessPrecision";
|
104
|
+
}>>>;
|
105
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
106
|
+
floor: "floor";
|
107
|
+
ceil: "ceil";
|
108
|
+
expand: "expand";
|
109
|
+
trunc: "trunc";
|
110
|
+
halfCeil: "halfCeil";
|
111
|
+
halfFloor: "halfFloor";
|
112
|
+
halfExpand: "halfExpand";
|
113
|
+
halfTrunc: "halfTrunc";
|
114
|
+
halfEven: "halfEven";
|
115
|
+
}>>>;
|
116
|
+
}, z.core.$strip>>>;
|
57
117
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
58
118
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
59
119
|
number: "number";
|
@@ -104,6 +164,36 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
104
164
|
id: z.ZodString;
|
105
165
|
alias: z.ZodOptional<z.ZodString>;
|
106
166
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
167
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
168
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
169
|
+
number: "number";
|
170
|
+
percent: "percent";
|
171
|
+
permille: "permille";
|
172
|
+
scientific: "scientific";
|
173
|
+
}>>>;
|
174
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
175
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
176
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
177
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
178
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
179
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
180
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
181
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
182
|
+
morePrecision: "morePrecision";
|
183
|
+
lessPrecision: "lessPrecision";
|
184
|
+
}>>>;
|
185
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
186
|
+
floor: "floor";
|
187
|
+
ceil: "ceil";
|
188
|
+
expand: "expand";
|
189
|
+
trunc: "trunc";
|
190
|
+
halfCeil: "halfCeil";
|
191
|
+
halfFloor: "halfFloor";
|
192
|
+
halfExpand: "halfExpand";
|
193
|
+
halfTrunc: "halfTrunc";
|
194
|
+
halfEven: "halfEven";
|
195
|
+
}>>>;
|
196
|
+
}, z.core.$strip>>>;
|
107
197
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
108
198
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
109
199
|
number: "number";
|
@@ -153,6 +243,36 @@ export declare const zDualMeasure: z.ZodObject<{
|
|
153
243
|
id: z.ZodString;
|
154
244
|
alias: z.ZodOptional<z.ZodString>;
|
155
245
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
246
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
247
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
248
|
+
number: "number";
|
249
|
+
percent: "percent";
|
250
|
+
permille: "permille";
|
251
|
+
scientific: "scientific";
|
252
|
+
}>>>;
|
253
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
254
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
255
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
256
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
257
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
258
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
259
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
260
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
261
|
+
morePrecision: "morePrecision";
|
262
|
+
lessPrecision: "lessPrecision";
|
263
|
+
}>>>;
|
264
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
265
|
+
floor: "floor";
|
266
|
+
ceil: "ceil";
|
267
|
+
expand: "expand";
|
268
|
+
trunc: "trunc";
|
269
|
+
halfCeil: "halfCeil";
|
270
|
+
halfFloor: "halfFloor";
|
271
|
+
halfExpand: "halfExpand";
|
272
|
+
halfTrunc: "halfTrunc";
|
273
|
+
halfEven: "halfEven";
|
274
|
+
}>>>;
|
275
|
+
}, z.core.$strip>>>;
|
156
276
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
157
277
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
158
278
|
number: "number";
|
@@ -206,6 +326,36 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
206
326
|
id: z.ZodString;
|
207
327
|
alias: z.ZodOptional<z.ZodString>;
|
208
328
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
329
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
330
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
331
|
+
number: "number";
|
332
|
+
percent: "percent";
|
333
|
+
permille: "permille";
|
334
|
+
scientific: "scientific";
|
335
|
+
}>>>;
|
336
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
337
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
338
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
339
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
340
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
341
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
342
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
343
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
344
|
+
morePrecision: "morePrecision";
|
345
|
+
lessPrecision: "lessPrecision";
|
346
|
+
}>>>;
|
347
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
348
|
+
floor: "floor";
|
349
|
+
ceil: "ceil";
|
350
|
+
expand: "expand";
|
351
|
+
trunc: "trunc";
|
352
|
+
halfCeil: "halfCeil";
|
353
|
+
halfFloor: "halfFloor";
|
354
|
+
halfExpand: "halfExpand";
|
355
|
+
halfTrunc: "halfTrunc";
|
356
|
+
halfEven: "halfEven";
|
357
|
+
}>>>;
|
358
|
+
}, z.core.$strip>>>;
|
209
359
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
210
360
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
211
361
|
number: "number";
|
@@ -255,6 +405,36 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
255
405
|
id: z.ZodString;
|
256
406
|
alias: z.ZodOptional<z.ZodString>;
|
257
407
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
408
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
409
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
410
|
+
number: "number";
|
411
|
+
percent: "percent";
|
412
|
+
permille: "permille";
|
413
|
+
scientific: "scientific";
|
414
|
+
}>>>;
|
415
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
416
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
417
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
418
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
419
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
420
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
421
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
422
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
423
|
+
morePrecision: "morePrecision";
|
424
|
+
lessPrecision: "lessPrecision";
|
425
|
+
}>>>;
|
426
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
427
|
+
floor: "floor";
|
428
|
+
ceil: "ceil";
|
429
|
+
expand: "expand";
|
430
|
+
trunc: "trunc";
|
431
|
+
halfCeil: "halfCeil";
|
432
|
+
halfFloor: "halfFloor";
|
433
|
+
halfExpand: "halfExpand";
|
434
|
+
halfTrunc: "halfTrunc";
|
435
|
+
halfEven: "halfEven";
|
436
|
+
}>>>;
|
437
|
+
}, z.core.$strip>>>;
|
258
438
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
259
439
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
260
440
|
number: "number";
|
@@ -305,6 +485,36 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
305
485
|
id: z.ZodString;
|
306
486
|
alias: z.ZodOptional<z.ZodString>;
|
307
487
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
488
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
489
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
490
|
+
number: "number";
|
491
|
+
percent: "percent";
|
492
|
+
permille: "permille";
|
493
|
+
scientific: "scientific";
|
494
|
+
}>>>;
|
495
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
496
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
497
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
498
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
499
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
500
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
501
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
502
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
503
|
+
morePrecision: "morePrecision";
|
504
|
+
lessPrecision: "lessPrecision";
|
505
|
+
}>>>;
|
506
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
507
|
+
floor: "floor";
|
508
|
+
ceil: "ceil";
|
509
|
+
expand: "expand";
|
510
|
+
trunc: "trunc";
|
511
|
+
halfCeil: "halfCeil";
|
512
|
+
halfFloor: "halfFloor";
|
513
|
+
halfExpand: "halfExpand";
|
514
|
+
halfTrunc: "halfTrunc";
|
515
|
+
halfEven: "halfEven";
|
516
|
+
}>>>;
|
517
|
+
}, z.core.$strip>>>;
|
308
518
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
309
519
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
310
520
|
number: "number";
|
@@ -354,6 +564,36 @@ export declare const zDualMeasures: z.ZodArray<z.ZodObject<{
|
|
354
564
|
id: z.ZodString;
|
355
565
|
alias: z.ZodOptional<z.ZodString>;
|
356
566
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
567
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
568
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
569
|
+
number: "number";
|
570
|
+
percent: "percent";
|
571
|
+
permille: "permille";
|
572
|
+
scientific: "scientific";
|
573
|
+
}>>>;
|
574
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
575
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
576
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
577
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
578
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
579
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
580
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
581
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
582
|
+
morePrecision: "morePrecision";
|
583
|
+
lessPrecision: "lessPrecision";
|
584
|
+
}>>>;
|
585
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
586
|
+
floor: "floor";
|
587
|
+
ceil: "ceil";
|
588
|
+
expand: "expand";
|
589
|
+
trunc: "trunc";
|
590
|
+
halfCeil: "halfCeil";
|
591
|
+
halfFloor: "halfFloor";
|
592
|
+
halfExpand: "halfExpand";
|
593
|
+
halfTrunc: "halfTrunc";
|
594
|
+
halfEven: "halfEven";
|
595
|
+
}>>>;
|
596
|
+
}, z.core.$strip>>>;
|
357
597
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
358
598
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
359
599
|
number: "number";
|
@@ -4,6 +4,36 @@ export declare const zMeasure: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
5
5
|
alias: z.ZodOptional<z.ZodString>;
|
6
6
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
7
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
8
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
9
|
+
number: "number";
|
10
|
+
percent: "percent";
|
11
|
+
permille: "permille";
|
12
|
+
scientific: "scientific";
|
13
|
+
}>>>;
|
14
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
15
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
16
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
17
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
18
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
19
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
20
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
21
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
22
|
+
morePrecision: "morePrecision";
|
23
|
+
lessPrecision: "lessPrecision";
|
24
|
+
}>>>;
|
25
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
26
|
+
floor: "floor";
|
27
|
+
ceil: "ceil";
|
28
|
+
expand: "expand";
|
29
|
+
trunc: "trunc";
|
30
|
+
halfCeil: "halfCeil";
|
31
|
+
halfFloor: "halfFloor";
|
32
|
+
halfExpand: "halfExpand";
|
33
|
+
halfTrunc: "halfTrunc";
|
34
|
+
halfEven: "halfEven";
|
35
|
+
}>>>;
|
36
|
+
}, z.core.$strip>>>;
|
7
37
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
8
38
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
9
39
|
number: "number";
|
@@ -55,6 +85,36 @@ export declare const zMeasures: z.ZodArray<z.ZodObject<{
|
|
55
85
|
id: z.ZodString;
|
56
86
|
alias: z.ZodOptional<z.ZodString>;
|
57
87
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
88
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
89
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
90
|
+
number: "number";
|
91
|
+
percent: "percent";
|
92
|
+
permille: "permille";
|
93
|
+
scientific: "scientific";
|
94
|
+
}>>>;
|
95
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
96
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
97
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
98
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
99
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
100
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
101
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
102
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
103
|
+
morePrecision: "morePrecision";
|
104
|
+
lessPrecision: "lessPrecision";
|
105
|
+
}>>>;
|
106
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
107
|
+
floor: "floor";
|
108
|
+
ceil: "ceil";
|
109
|
+
expand: "expand";
|
110
|
+
trunc: "trunc";
|
111
|
+
halfCeil: "halfCeil";
|
112
|
+
halfFloor: "halfFloor";
|
113
|
+
halfExpand: "halfExpand";
|
114
|
+
halfTrunc: "halfTrunc";
|
115
|
+
halfEven: "halfEven";
|
116
|
+
}>>>;
|
117
|
+
}, z.core.$strip>>>;
|
58
118
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
59
119
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
60
120
|
number: "number";
|
@@ -105,6 +165,36 @@ export declare const zMeasureTree: z.ZodArray<z.ZodUnion<[z.ZodType<MeasureGroup
|
|
105
165
|
id: z.ZodString;
|
106
166
|
alias: z.ZodOptional<z.ZodString>;
|
107
167
|
autoFormat: z.ZodDefault<z.ZodBoolean>;
|
168
|
+
numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
169
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
170
|
+
number: "number";
|
171
|
+
percent: "percent";
|
172
|
+
permille: "permille";
|
173
|
+
scientific: "scientific";
|
174
|
+
}>>>;
|
175
|
+
ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
176
|
+
symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
177
|
+
thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
178
|
+
prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
179
|
+
suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
180
|
+
fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
181
|
+
significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
182
|
+
roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
183
|
+
morePrecision: "morePrecision";
|
184
|
+
lessPrecision: "lessPrecision";
|
185
|
+
}>>>;
|
186
|
+
roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
187
|
+
floor: "floor";
|
188
|
+
ceil: "ceil";
|
189
|
+
expand: "expand";
|
190
|
+
trunc: "trunc";
|
191
|
+
halfCeil: "halfCeil";
|
192
|
+
halfFloor: "halfFloor";
|
193
|
+
halfExpand: "halfExpand";
|
194
|
+
halfTrunc: "halfTrunc";
|
195
|
+
halfEven: "halfEven";
|
196
|
+
}>>>;
|
197
|
+
}, z.core.$strip>>>;
|
108
198
|
format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
109
199
|
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
110
200
|
number: "number";
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import { z } from "zod";
|
2
|
-
import { zNumFormat } from "
|
2
|
+
import { zNumFormat } from "../format/numFormat.js";
|
3
3
|
const zMeasure = z.object({
|
4
4
|
id: z.string(),
|
5
5
|
alias: z.string().optional(),
|
6
6
|
autoFormat: z.boolean().default(true),
|
7
|
+
numFormat: zNumFormat["default"]({}),
|
7
8
|
format: zNumFormat["default"]({}),
|
8
9
|
encoding: z["enum"]([
|
9
10
|
'primaryYAxis',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types/properties/measures/zMeasures.js","sources":["webpack://@visactor/vseed/./src/types/properties/measures/zMeasures.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from '
|
1
|
+
{"version":3,"file":"types/properties/measures/zMeasures.js","sources":["webpack://@visactor/vseed/./src/types/properties/measures/zMeasures.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from '../format/numFormat'\nimport type { MeasureGroup } from './measures'\n\nexport const zMeasure = z.object({\n id: z.string(),\n alias: z.string().optional(),\n autoFormat: z.boolean().default(true),\n numFormat: zNumFormat.default({}),\n format: zNumFormat.default({}),\n encoding: z\n .enum([\n 'primaryYAxis',\n 'secondaryYAxis',\n 'xAxis',\n 'yAxis',\n 'angle',\n 'radius',\n 'size',\n 'color',\n 'label',\n 'tooltip',\n 'detail',\n 'column',\n ])\n .optional(),\n parentId: z.string().optional(),\n})\n\nexport const zMeasureGroup: z.ZodType<MeasureGroup> = z.object({\n id: z.string(),\n alias: z.string().optional(),\n get children() {\n return z.array(zMeasureGroup.or(zMeasure)).optional()\n },\n})\n\nexport const zMeasures = z.array(zMeasure)\nexport const zMeasureTree = z.array(zMeasureGroup.or(zMeasure))\n"],"names":["zMeasure","z","zNumFormat","zMeasureGroup","zMeasures","zMeasureTree"],"mappings":";;AAIO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM,GAAG,QAAQ;IAC1B,YAAYA,EAAE,OAAO,GAAG,OAAO,CAAC;IAChC,WAAWC,UAAU,CAAVA,UAAkB,CAAC,CAAC;IAC/B,QAAQA,UAAU,CAAVA,UAAkB,CAAC,CAAC;IAC5B,UAAUD,CAAC,CAADA,OACH,CAAC;QACJ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD,EACA,QAAQ;IACX,UAAUA,EAAE,MAAM,GAAG,QAAQ;AAC/B;AAEO,MAAME,gBAAyCF,EAAE,MAAM,CAAC;IAC7D,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM,GAAG,QAAQ;IAC1B,IAAI,YAAW;QACb,OAAOA,EAAE,KAAK,CAACE,cAAc,EAAE,CAACH,WAAW,QAAQ;IACrD;AACF;AAEO,MAAMI,YAAYH,EAAE,KAAK,CAACD;AAC1B,MAAMK,eAAeJ,EAAE,KAAK,CAACE,cAAc,EAAE,CAACH"}
|