@visactor/vseed 0.3.7 → 0.3.9
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 +8 -0
- package/dist/esm/pipeline/advanced/chart/pipeline/area.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/area.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/areaPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/bar.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/bar.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/barPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/boxplot.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/column.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/columnPercent.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/donut.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/dualAxis.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/funnel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/heatmap.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/histogram.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/line.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/line.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/pie.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/radar.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/radar.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/rose.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/rose.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/roseParallel.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js +2 -1
- package/dist/esm/pipeline/advanced/chart/pipeline/scatter.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/index.js +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/page/index.d.ts +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/page/index.js +1 -0
- package/dist/esm/pipeline/advanced/chart/pipes/page/page.d.ts +2 -0
- package/dist/esm/pipeline/advanced/chart/pipes/page/page.js +16 -0
- package/dist/esm/pipeline/advanced/chart/pipes/page/page.js.map +1 -0
- package/dist/esm/pipeline/advanced/table/pipeline/pivotTable.js +2 -1
- package/dist/esm/pipeline/advanced/table/pipeline/pivotTable.js.map +1 -1
- package/dist/esm/pipeline/advanced/table/pipeline/table.js +2 -1
- package/dist/esm/pipeline/advanced/table/pipeline/table.js.map +1 -1
- package/dist/esm/pipeline/advanced/table/pipes/index.d.ts +1 -0
- package/dist/esm/pipeline/advanced/table/pipes/index.js +1 -0
- package/dist/esm/pipeline/advanced/table/pipes/page/index.d.ts +1 -0
- package/dist/esm/pipeline/advanced/table/pipes/page/index.js +1 -0
- package/dist/esm/pipeline/advanced/table/pipes/page/page.d.ts +2 -0
- package/dist/esm/pipeline/advanced/table/pipes/page/page.js +16 -0
- package/dist/esm/pipeline/advanced/table/pipes/page/page.js.map +1 -0
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +15 -10
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +4 -0
- package/dist/esm/types/advancedVSeed.js +2 -1
- package/dist/esm/types/advancedVSeed.js.map +1 -1
- package/dist/esm/types/chartType/area/area.d.ts +6 -1
- package/dist/esm/types/chartType/area/zArea.d.ts +4 -0
- package/dist/esm/types/chartType/area/zArea.js +2 -1
- package/dist/esm/types/chartType/area/zArea.js.map +1 -1
- package/dist/esm/types/chartType/areaPercent/areaPercent.d.ts +6 -1
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +4 -0
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.js +2 -1
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.js.map +1 -1
- package/dist/esm/types/chartType/bar/bar.d.ts +6 -1
- package/dist/esm/types/chartType/bar/zBar.d.ts +4 -0
- package/dist/esm/types/chartType/bar/zBar.js +2 -1
- package/dist/esm/types/chartType/bar/zBar.js.map +1 -1
- package/dist/esm/types/chartType/barParallel/barParallel.d.ts +6 -1
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +4 -0
- package/dist/esm/types/chartType/barParallel/zBarParallel.js +3 -2
- package/dist/esm/types/chartType/barParallel/zBarParallel.js.map +1 -1
- package/dist/esm/types/chartType/barPercent/barPercent.d.ts +6 -1
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +4 -0
- package/dist/esm/types/chartType/barPercent/zBarPercent.js +2 -1
- package/dist/esm/types/chartType/barPercent/zBarPercent.js.map +1 -1
- package/dist/esm/types/chartType/boxPlot/boxPlot.d.ts +5 -1
- package/dist/esm/types/chartType/boxPlot/zBoxPlot.d.ts +4 -0
- package/dist/esm/types/chartType/boxPlot/zBoxPlot.js +2 -1
- package/dist/esm/types/chartType/boxPlot/zBoxPlot.js.map +1 -1
- package/dist/esm/types/chartType/column/column.d.ts +5 -1
- package/dist/esm/types/chartType/column/zColumn.d.ts +4 -0
- package/dist/esm/types/chartType/column/zColumn.js +2 -1
- package/dist/esm/types/chartType/column/zColumn.js.map +1 -1
- package/dist/esm/types/chartType/columnParallel/columnParallel.d.ts +5 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +4 -0
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js +2 -1
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.js.map +1 -1
- package/dist/esm/types/chartType/columnPercent/columnPercent.d.ts +5 -1
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +4 -0
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js +2 -1
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.js.map +1 -1
- package/dist/esm/types/chartType/donut/donut.d.ts +5 -1
- package/dist/esm/types/chartType/donut/zDonut.d.ts +4 -0
- package/dist/esm/types/chartType/donut/zDonut.js +2 -1
- package/dist/esm/types/chartType/donut/zDonut.js.map +1 -1
- package/dist/esm/types/chartType/dualAxis/dualAxis.d.ts +5 -1
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +4 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.js +2 -1
- package/dist/esm/types/chartType/dualAxis/zDualAxis.js.map +1 -1
- package/dist/esm/types/chartType/funnel/funnel.d.ts +5 -1
- package/dist/esm/types/chartType/funnel/zFunnel.d.ts +4 -0
- package/dist/esm/types/chartType/funnel/zFunnel.js +2 -1
- package/dist/esm/types/chartType/funnel/zFunnel.js.map +1 -1
- package/dist/esm/types/chartType/heatmap/heatmap.d.ts +5 -1
- package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +4 -0
- package/dist/esm/types/chartType/heatmap/zHeatmap.js +2 -1
- package/dist/esm/types/chartType/heatmap/zHeatmap.js.map +1 -1
- package/dist/esm/types/chartType/histogram/histogram.d.ts +5 -1
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +4 -0
- package/dist/esm/types/chartType/histogram/zHistogram.js +2 -1
- package/dist/esm/types/chartType/histogram/zHistogram.js.map +1 -1
- package/dist/esm/types/chartType/line/line.d.ts +5 -1
- package/dist/esm/types/chartType/line/zLine.d.ts +4 -0
- package/dist/esm/types/chartType/line/zLine.js +2 -1
- package/dist/esm/types/chartType/line/zLine.js.map +1 -1
- package/dist/esm/types/chartType/pie/pie.d.ts +5 -1
- package/dist/esm/types/chartType/pie/zPie.d.ts +4 -0
- package/dist/esm/types/chartType/pie/zPie.js +2 -1
- package/dist/esm/types/chartType/pie/zPie.js.map +1 -1
- package/dist/esm/types/chartType/pivotTable/pivotTable.d.ts +5 -1
- package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +4 -0
- package/dist/esm/types/chartType/pivotTable/zPivotTable.js +2 -1
- package/dist/esm/types/chartType/pivotTable/zPivotTable.js.map +1 -1
- package/dist/esm/types/chartType/radar/radar.d.ts +5 -1
- package/dist/esm/types/chartType/radar/zRadar.d.ts +4 -0
- package/dist/esm/types/chartType/radar/zRadar.js +2 -1
- package/dist/esm/types/chartType/radar/zRadar.js.map +1 -1
- package/dist/esm/types/chartType/rose/rose.d.ts +5 -1
- package/dist/esm/types/chartType/rose/zRose.d.ts +4 -0
- package/dist/esm/types/chartType/rose/zRose.js +2 -1
- package/dist/esm/types/chartType/rose/zRose.js.map +1 -1
- package/dist/esm/types/chartType/roseParallel/roseParallel.d.ts +5 -1
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +4 -0
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.js +2 -1
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.js.map +1 -1
- package/dist/esm/types/chartType/scatter/scatter.d.ts +5 -1
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +4 -0
- package/dist/esm/types/chartType/scatter/zScatter.js +2 -1
- package/dist/esm/types/chartType/scatter/zScatter.js.map +1 -1
- package/dist/esm/types/chartType/table/table.d.ts +5 -1
- package/dist/esm/types/chartType/table/zTable.d.ts +4 -0
- package/dist/esm/types/chartType/table/zTable.js +2 -0
- package/dist/esm/types/chartType/table/zTable.js.map +1 -1
- package/dist/esm/types/properties/index.d.ts +1 -0
- package/dist/esm/types/properties/index.js +1 -0
- package/dist/esm/types/properties/page/index.d.ts +2 -0
- package/dist/esm/types/properties/page/index.js +2 -0
- package/dist/esm/types/properties/page/page.d.ts +11 -0
- package/dist/esm/types/properties/page/page.js +0 -0
- package/dist/esm/types/properties/page/zPage.d.ts +5 -0
- package/dist/esm/types/properties/page/zPage.js +8 -0
- package/dist/esm/types/properties/page/zPage.js.map +1 -0
- package/dist/esm/types/zVseed.d.ts +88 -0
- package/dist/umd/index.js +95 -14
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, Sort, SortLegend, DimensionLinkage, LineMeasure, LineDimension } from '../../properties';
|
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, Page, LineStyle, PointStyle, Theme, Tooltip, CrosshairLine, XBandAxis, YLinearAxis, Sort, SortLegend, DimensionLinkage, LineMeasure, LineDimension } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 折线图,适用于展示数据随时间或有序类别变化的趋势,通过线段连接数据点形成趋势线
|
|
5
5
|
* 适用场景:
|
|
@@ -47,6 +47,10 @@ export interface Line {
|
|
|
47
47
|
* @example [{id: "value", alias: "数值"}]
|
|
48
48
|
*/
|
|
49
49
|
measures?: LineMeasure[];
|
|
50
|
+
/**
|
|
51
|
+
* @description 分页配置
|
|
52
|
+
*/
|
|
53
|
+
page?: Page;
|
|
50
54
|
/**
|
|
51
55
|
* 图表的背景颜色
|
|
52
56
|
* @description 图表的背景颜色, 默认为透明背景, 背景颜色可以是颜色字符串, 例如'red', 'blue', 也可以是hex, rgb或rgba'#ff0000', 'rgba(255,0,0,0.5)'
|
|
@@ -138,6 +138,10 @@ export declare const zLine: z.ZodObject<{
|
|
|
138
138
|
scatter: "scatter";
|
|
139
139
|
}>>;
|
|
140
140
|
}, z.core.$strip>>>>;
|
|
141
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
142
|
+
field: z.ZodString;
|
|
143
|
+
currentValue: z.ZodString;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
141
145
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
142
146
|
color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
143
147
|
colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { zLocale } from "../../i18n/index.js";
|
|
2
|
-
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineStyle, zMeasures, zPointStyle, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
2
|
+
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLineStyle, zMeasures, zPage, zPointStyle, zSort, zSortLegend, zTheme, zTooltip, zXBandAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
const zLine = z.object({
|
|
5
5
|
chartType: z.literal('line'),
|
|
@@ -7,6 +7,7 @@ const zLine = z.object({
|
|
|
7
7
|
encoding: zEncoding.nullish(),
|
|
8
8
|
dimensions: zDimensions.nullish(),
|
|
9
9
|
measures: zMeasures.nullish(),
|
|
10
|
+
page: zPage.nullish(),
|
|
10
11
|
backgroundColor: zBackgroundColor.nullish(),
|
|
11
12
|
color: zColor.nullish(),
|
|
12
13
|
label: zLabel.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/line/zLine.js","sources":["webpack://@visactor/vseed/./src/types/chartType/line/zLine.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasures,\n zPointStyle,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zLine = z.object({\n chartType: z.literal('line'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zLine","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairLine","zSort","zSortLegend","zTheme","zPointStyle","zLineStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/line/zLine.js","sources":["webpack://@visactor/vseed/./src/types/chartType/line/zLine.ts"],"sourcesContent":["import { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLineStyle,\n zMeasures,\n zPointStyle,\n zSort,\n zSortLegend,\n zTheme,\n zTooltip,\n zBrush,\n zXBandAxis,\n zYLinearAxis,\n zPage,\n} from '../../properties'\n\nimport { z } from 'zod'\n\nexport const zLine = z.object({\n chartType: z.literal('line'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXBandAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n sort: zSort.nullish(),\n sortLegend: zSortLegend.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n lineStyle: z.array(zLineStyle).or(zLineStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zLine","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zXBandAxis","zYLinearAxis","zCrosshairLine","zSort","zSortLegend","zTheme","zPointStyle","zLineStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zDimensionLinkage","zLocale"],"mappings":";;;AA8BO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,WAAW,OAAO;IACzB,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,MAAMC,MAAM,OAAO;IACnB,YAAYC,YAAY,OAAO;IAC/B,OAAOC,OAAO,OAAO;IACrB,YAAYjB,EAAE,KAAK,CAACkB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,WAAWlB,EAAE,KAAK,CAACmB,YAAY,EAAE,CAACA,YAAY,OAAO;IACrD,iBAAiBnB,EAAE,KAAK,CAACoB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBpB,EAAE,KAAK,CAACqB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BrB,EAAE,KAAK,CAACsB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBtB,EAAE,KAAK,CAACuB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { BackgroundColor, Color, Dataset, PieDimension, Legend, PieMeasure, PieLabel, Theme, Tooltip } from '../../properties';
|
|
2
|
+
import type { BackgroundColor, Color, Dataset, PieDimension, Legend, PieMeasure, PieLabel, Theme, Tooltip, Page } from '../../properties';
|
|
3
3
|
import type { Brush } from '../../properties';
|
|
4
4
|
/**
|
|
5
5
|
* @description 饼图,适用于展示单一维度数据的占比关系,通过扇形面积大小表示各类别占比
|
|
@@ -52,6 +52,10 @@ export interface Pie {
|
|
|
52
52
|
* @example [{id: 'value', alias: '数值占比', format: 'percent'}]
|
|
53
53
|
*/
|
|
54
54
|
measures?: PieMeasure[];
|
|
55
|
+
/**
|
|
56
|
+
* @description 分页配置, 用于指定分页的字段名, 必须是维度
|
|
57
|
+
*/
|
|
58
|
+
page?: Page;
|
|
55
59
|
/**
|
|
56
60
|
* 图表的背景颜色
|
|
57
61
|
* @default transparent 默认为透明背景
|
|
@@ -138,6 +138,10 @@ export declare const zPie: z.ZodObject<{
|
|
|
138
138
|
scatter: "scatter";
|
|
139
139
|
}>>;
|
|
140
140
|
}, z.core.$strip>>>>;
|
|
141
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
142
|
+
field: z.ZodString;
|
|
143
|
+
currentValue: z.ZodString;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
141
145
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
142
146
|
color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
143
147
|
colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
|
|
3
|
+
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLegend, zMeasures, zPage, zPieLabel, zTheme, zTooltip } from "../../properties/index.js";
|
|
4
4
|
const zPie = z.object({
|
|
5
5
|
chartType: z.literal('pie'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
7
7
|
encoding: zEncoding.nullish(),
|
|
8
8
|
dimensions: zDimensions.nullish(),
|
|
9
9
|
measures: zMeasures.nullish(),
|
|
10
|
+
page: zPage.nullish(),
|
|
10
11
|
backgroundColor: zBackgroundColor.nullish(),
|
|
11
12
|
color: zColor.nullish(),
|
|
12
13
|
label: zPieLabel.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/pie/zPie.js","sources":["webpack://@visactor/vseed/./src/types/chartType/pie/zPie.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasures,\n zPieLabel,\n zTheme,\n zTooltip,\n zBrush,\n} from '../../properties'\n\nexport const zPie = z.object({\n chartType: z.literal('pie'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zPie","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/pie/zPie.js","sources":["webpack://@visactor/vseed/./src/types/chartType/pie/zPie.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLegend,\n zMeasures,\n zPieLabel,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n} from '../../properties'\n\nexport const zPie = z.object({\n chartType: z.literal('pie'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zPieLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zPie","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zPieLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAiBO,MAAMA,OAAOC,EAAE,MAAM,CAAC;IAC3B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,UAAU,OAAO;IACxB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Locale } from '../../i18n';
|
|
2
|
-
import type { BodyCellStyle, TableDimension, TableMeasure } from '../../properties';
|
|
2
|
+
import type { BodyCellStyle, Page, TableDimension, TableMeasure } from '../../properties';
|
|
3
3
|
import { type BackgroundColor, type Dataset, type Theme } from '../../properties';
|
|
4
4
|
/**
|
|
5
5
|
* @description 透视表格,适用于多维度数据交叉分析场景,可灵活配置行、列维度和指标计算方式
|
|
@@ -48,6 +48,10 @@ export interface PivotTable {
|
|
|
48
48
|
* @example [{id: 'sales', alias: '销售额', aggregation: 'sum'}]
|
|
49
49
|
*/
|
|
50
50
|
measures?: TableMeasure[];
|
|
51
|
+
/**
|
|
52
|
+
* @description 分页配置, 用于指定分页的字段名, 必须是维度
|
|
53
|
+
*/
|
|
54
|
+
page?: Page;
|
|
51
55
|
/**
|
|
52
56
|
* @default transparent 默认为透明背景
|
|
53
57
|
* @description 背景颜色可以是颜色字符串, 例如'red', 'blue', 也可以是hex, rgb或rgba'#ff0000', 'rgba(255,0,0,0.5)'
|
|
@@ -115,6 +115,10 @@ export declare const zPivotTable: z.ZodObject<{
|
|
|
115
115
|
scatter: "scatter";
|
|
116
116
|
}>>;
|
|
117
117
|
}, z.core.$strip>>>>;
|
|
118
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
119
|
+
field: z.ZodString;
|
|
120
|
+
currentValue: z.ZodString;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
118
122
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
119
123
|
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
124
|
bodyFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zBackgroundColor, zBodyCellStyle, zDataset, zDimensions, zMeasures, zTheme } from "../../properties/index.js";
|
|
3
|
+
import { zBackgroundColor, zBodyCellStyle, zDataset, zDimensions, zMeasures, zPage, zTheme } from "../../properties/index.js";
|
|
4
4
|
const zPivotTable = z.object({
|
|
5
5
|
chartType: z.literal('pivotTable'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
7
7
|
dimensions: zDimensions.nullish(),
|
|
8
8
|
measures: zMeasures.nullish(),
|
|
9
|
+
page: zPage.nullish(),
|
|
9
10
|
backgroundColor: zBackgroundColor.nullish(),
|
|
10
11
|
borderColor: z.string().nullish(),
|
|
11
12
|
bodyFontSize: z.number().nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/pivotTable/zPivotTable.js","sources":["webpack://@visactor/vseed/./src/types/chartType/pivotTable/zPivotTable.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport { zBackgroundColor, zDataset, zDimensions, zTheme, zMeasures, zBodyCellStyle } from '../../properties'\n\nexport const zPivotTable = z.object({\n chartType: z.literal('pivotTable'),\n dataset: zDataset.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n borderColor: z.string().nullish(),\n bodyFontSize: z.number().nullish(),\n bodyFontColor: z.string().nullish(),\n bodyBackgroundColor: z.string().nullish(),\n hoverBodyBackgroundColor: z.string().nullish(),\n hoverBodyInlineBackgroundColor: z.string().nullish(),\n headerFontSize: z.number().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n selectedBorderColor: z.string().nullish(),\n selectedBackgroundColor: z.string().nullish(),\n bodyCellStyle: zBodyCellStyle.nullish(),\n\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zPivotTable","z","zDataset","zDimensions","zMeasures","zBackgroundColor","zBodyCellStyle","zTheme","zLocale"],"mappings":";;;AAIO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;
|
|
1
|
+
{"version":3,"file":"types/chartType/pivotTable/zPivotTable.js","sources":["webpack://@visactor/vseed/./src/types/chartType/pivotTable/zPivotTable.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport { zBackgroundColor, zDataset, zDimensions, zTheme, zMeasures, zBodyCellStyle, zPage } from '../../properties'\n\nexport const zPivotTable = z.object({\n chartType: z.literal('pivotTable'),\n dataset: zDataset.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n borderColor: z.string().nullish(),\n bodyFontSize: z.number().nullish(),\n bodyFontColor: z.string().nullish(),\n bodyBackgroundColor: z.string().nullish(),\n hoverBodyBackgroundColor: z.string().nullish(),\n hoverBodyInlineBackgroundColor: z.string().nullish(),\n headerFontSize: z.number().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n selectedBorderColor: z.string().nullish(),\n selectedBackgroundColor: z.string().nullish(),\n bodyCellStyle: zBodyCellStyle.nullish(),\n\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zPivotTable","z","zDataset","zDimensions","zMeasures","zPage","zBackgroundColor","zBodyCellStyle","zTheme","zLocale"],"mappings":";;;AAIO,MAAMA,cAAcC,EAAE,MAAM,CAAC;IAClC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,aAAaL,EAAE,MAAM,GAAG,OAAO;IAC/B,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IACvC,0BAA0BA,EAAE,MAAM,GAAG,OAAO;IAC5C,gCAAgCA,EAAE,MAAM,GAAG,OAAO;IAClD,gBAAgBA,EAAE,MAAM,GAAG,OAAO;IAClC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,uBAAuBA,EAAE,MAAM,GAAG,OAAO;IACzC,4BAA4BA,EAAE,MAAM,GAAG,OAAO;IAC9C,kCAAkCA,EAAE,MAAM,GAAG,OAAO;IACpD,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IACvC,yBAAyBA,EAAE,MAAM,GAAG,OAAO;IAC3C,eAAeM,eAAe,OAAO;IAErC,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Locale } from '../../i18n';
|
|
2
2
|
import type { AreaStyle, LineStyle, PointStyle, RadarDimension, RadarMeasure } from '../../properties';
|
|
3
|
-
import { type BackgroundColor, type Color, type Dataset, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
|
|
3
|
+
import { type BackgroundColor, type Color, type Dataset, type Label, type Legend, type Theme, type Tooltip, type Page } from '../../properties';
|
|
4
4
|
import type { Brush } from '../../properties';
|
|
5
5
|
/**
|
|
6
6
|
* @description 雷达图,适用于多维度数据的对比分析,通过多轴坐标系展示各维度的数值分布
|
|
@@ -53,6 +53,10 @@ export interface Radar {
|
|
|
53
53
|
* @example [{id: 'value', alias: '数值'}]
|
|
54
54
|
*/
|
|
55
55
|
measures?: RadarMeasure[];
|
|
56
|
+
/**
|
|
57
|
+
* @description 分页配置, 用于指定分页的字段名, 必须是维度
|
|
58
|
+
*/
|
|
59
|
+
page?: Page;
|
|
56
60
|
/**
|
|
57
61
|
* 图表的背景颜色
|
|
58
62
|
* @default transparent 默认为透明背景
|
|
@@ -138,6 +138,10 @@ export declare const zRadar: z.ZodObject<{
|
|
|
138
138
|
scatter: "scatter";
|
|
139
139
|
}>>;
|
|
140
140
|
}, z.core.$strip>>>>;
|
|
141
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
142
|
+
field: z.ZodString;
|
|
143
|
+
currentValue: z.ZodString;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
141
145
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
142
146
|
color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
143
147
|
colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
|
|
3
|
+
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zTheme, zTooltip } from "../../properties/index.js";
|
|
4
4
|
const zRadar = z.object({
|
|
5
5
|
chartType: z.literal('radar'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
7
7
|
encoding: zEncoding.nullish(),
|
|
8
8
|
dimensions: zDimensions.nullish(),
|
|
9
9
|
measures: zMeasures.nullish(),
|
|
10
|
+
page: zPage.nullish(),
|
|
10
11
|
backgroundColor: zBackgroundColor.nullish(),
|
|
11
12
|
color: zColor.nullish(),
|
|
12
13
|
label: zLabel.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/radar/zRadar.js","sources":["webpack://@visactor/vseed/./src/types/chartType/radar/zRadar.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n} from '../../properties'\n\nexport const zRadar = z.object({\n chartType: z.literal('radar'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRadar","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/radar/zRadar.js","sources":["webpack://@visactor/vseed/./src/types/chartType/radar/zRadar.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n} from '../../properties'\n\nexport const zRadar = z.object({\n chartType: z.literal('radar'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRadar","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAkBO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Locale } from '../../i18n';
|
|
2
|
-
import type { RoseDimension, RoseMeasure, PieLabel } from '../../properties';
|
|
2
|
+
import type { RoseDimension, RoseMeasure, PieLabel, Page } from '../../properties';
|
|
3
3
|
import { type BackgroundColor, type Color, type Dataset, type Legend, type Theme, type Tooltip } from '../../properties';
|
|
4
4
|
import type { Brush } from '../../properties';
|
|
5
5
|
/**
|
|
@@ -54,6 +54,10 @@ export interface Rose {
|
|
|
54
54
|
* @example [{id: 'value', alias: '数值'}]
|
|
55
55
|
*/
|
|
56
56
|
measures?: RoseMeasure[];
|
|
57
|
+
/**
|
|
58
|
+
* @description 分页配置, 用于指定分页的字段名, 必须是维度
|
|
59
|
+
*/
|
|
60
|
+
page?: Page;
|
|
57
61
|
/**
|
|
58
62
|
* 图表的背景颜色
|
|
59
63
|
* @default transparent 默认为透明背景
|
|
@@ -138,6 +138,10 @@ export declare const zRose: z.ZodObject<{
|
|
|
138
138
|
scatter: "scatter";
|
|
139
139
|
}>>;
|
|
140
140
|
}, z.core.$strip>>>>;
|
|
141
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
142
|
+
field: z.ZodString;
|
|
143
|
+
currentValue: z.ZodString;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
141
145
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
142
146
|
color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
143
147
|
colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
|
|
3
|
+
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zTheme, zTooltip } from "../../properties/index.js";
|
|
4
4
|
const zRose = z.object({
|
|
5
5
|
chartType: z.literal('rose'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
7
7
|
encoding: zEncoding.nullish(),
|
|
8
8
|
dimensions: zDimensions.nullish(),
|
|
9
9
|
measures: zMeasures.nullish(),
|
|
10
|
+
page: zPage.nullish(),
|
|
10
11
|
backgroundColor: zBackgroundColor.nullish(),
|
|
11
12
|
color: zColor.nullish(),
|
|
12
13
|
label: zLabel.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/rose/zRose.js","sources":["webpack://@visactor/vseed/./src/types/chartType/rose/zRose.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n} from '../../properties'\n\nexport const zRose = z.object({\n chartType: z.literal('rose'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRose","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/rose/zRose.js","sources":["webpack://@visactor/vseed/./src/types/chartType/rose/zRose.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\n\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n} from '../../properties'\n\nexport const zRose = z.object({\n chartType: z.literal('rose'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRose","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAkBO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IACnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Locale } from '../../i18n';
|
|
2
|
-
import type { RoseParallelDimension, RoseParallelMeasure, PieLabel } from '../../properties';
|
|
2
|
+
import type { RoseParallelDimension, RoseParallelMeasure, PieLabel, Page } from '../../properties';
|
|
3
3
|
import { type BackgroundColor, type Color, type Dataset, type Legend, type Theme, type Tooltip } from '../../properties';
|
|
4
4
|
import type { Brush } from '../../properties';
|
|
5
5
|
/**
|
|
@@ -54,6 +54,10 @@ export interface RoseParallel {
|
|
|
54
54
|
* @example [{id: 'value', alias: '数值'}]
|
|
55
55
|
*/
|
|
56
56
|
measures?: RoseParallelMeasure[];
|
|
57
|
+
/**
|
|
58
|
+
* @description 分页配置, 用于指定分页的字段名, 必须是维度
|
|
59
|
+
*/
|
|
60
|
+
page?: Page;
|
|
57
61
|
/**
|
|
58
62
|
* 图表的背景颜色
|
|
59
63
|
* @default transparent 默认为透明背景
|
|
@@ -138,6 +138,10 @@ export declare const zRoseParallel: z.ZodObject<{
|
|
|
138
138
|
scatter: "scatter";
|
|
139
139
|
}>>;
|
|
140
140
|
}, z.core.$strip>>>>;
|
|
141
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
142
|
+
field: z.ZodString;
|
|
143
|
+
currentValue: z.ZodString;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
141
145
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
142
146
|
color: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
143
147
|
colorScheme: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zTheme, zTooltip } from "../../properties/index.js";
|
|
3
|
+
import { zBackgroundColor, zBrush, zColor, zDataset, zDimensions, zEncoding, zLabel, zLegend, zMeasures, zPage, zTheme, zTooltip } from "../../properties/index.js";
|
|
4
4
|
const zRoseParallel = z.object({
|
|
5
5
|
chartType: z.literal('roseParallel'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
7
7
|
encoding: zEncoding.nullish(),
|
|
8
8
|
dimensions: zDimensions.nullish(),
|
|
9
9
|
measures: zMeasures.nullish(),
|
|
10
|
+
page: zPage.nullish(),
|
|
10
11
|
backgroundColor: zBackgroundColor.nullish(),
|
|
11
12
|
color: zColor.nullish(),
|
|
12
13
|
label: zLabel.nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/roseParallel/zRoseParallel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/roseParallel/zRoseParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n} from '../../properties'\n\nexport const zRoseParallel = z.object({\n chartType: z.literal('roseParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRoseParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/roseParallel/zRoseParallel.js","sources":["webpack://@visactor/vseed/./src/types/chartType/roseParallel/zRoseParallel.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zBackgroundColor,\n zColor,\n zDataset,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zMeasures,\n zTheme,\n zTooltip,\n zBrush,\n zPage,\n} from '../../properties'\n\nexport const zRoseParallel = z.object({\n chartType: z.literal('roseParallel'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zRoseParallel","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zTheme","zLocale"],"mappings":";;;AAiBO,MAAMA,gBAAgBC,EAAE,MAAM,CAAC;IACpC,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from '../../i18n';
|
|
2
|
-
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, ScatterDimension, ScatterMeasure, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, LinearRegressionLine, LowessRegressionLine, PolynomialRegressionLine, LogisticRegressionLine, DimensionLinkage } from '../../properties';
|
|
2
|
+
import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Brush, Color, Dataset, Label, Legend, ScatterDimension, ScatterMeasure, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, LinearRegressionLine, LowessRegressionLine, PolynomialRegressionLine, LogisticRegressionLine, DimensionLinkage, Page } from '../../properties';
|
|
3
3
|
/**
|
|
4
4
|
* @description 散点图,适用于展示数据的分布情况,通过点的位置表示数据的数值
|
|
5
5
|
* 适用场景:
|
|
@@ -56,6 +56,10 @@ export interface Scatter {
|
|
|
56
56
|
* ]
|
|
57
57
|
*/
|
|
58
58
|
measures?: ScatterMeasure[];
|
|
59
|
+
/**
|
|
60
|
+
* @description 分页配置, 用于指定分页的字段名, 必须是维度
|
|
61
|
+
*/
|
|
62
|
+
page?: Page;
|
|
59
63
|
/**
|
|
60
64
|
* @description 散点图指标的大小, 用于定义散点图中数据点的大小 或 大小范围
|
|
61
65
|
* - 若大小范围是一个数字, 例如10, 表示数据点的大小范围固定为10
|
|
@@ -138,6 +138,10 @@ export declare const zScatter: z.ZodObject<{
|
|
|
138
138
|
scatter: "scatter";
|
|
139
139
|
}>>;
|
|
140
140
|
}, z.core.$strip>>>>;
|
|
141
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
142
|
+
field: z.ZodString;
|
|
143
|
+
currentValue: z.ZodString;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
141
145
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
142
146
|
size: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
143
147
|
sizeRange: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber>]>>>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
|
-
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLinearRegressionLine, zLogisticRegressionLine, zLowessRegressionLine, zMeasures, zPointStyle, zPolynomialRegressionLine, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
|
|
3
|
+
import { zAnnotationArea, zAnnotationHorizontalLine, zAnnotationPoint, zAnnotationVerticalLine, zBackgroundColor, zBrush, zColor, zCrosshairLine, zDataset, zDimensionLinkage, zDimensions, zEncoding, zLabel, zLegend, zLinearRegressionLine, zLogisticRegressionLine, zLowessRegressionLine, zMeasures, zPage, zPointStyle, zPolynomialRegressionLine, zTheme, zTooltip, zXLinearAxis, zYLinearAxis } from "../../properties/index.js";
|
|
4
4
|
const zScatter = z.object({
|
|
5
5
|
chartType: z.literal('scatter'),
|
|
6
6
|
dataset: zDataset.nullish(),
|
|
7
7
|
encoding: zEncoding.nullish(),
|
|
8
8
|
dimensions: zDimensions.nullish(),
|
|
9
9
|
measures: zMeasures.nullish(),
|
|
10
|
+
page: zPage.nullish(),
|
|
10
11
|
backgroundColor: zBackgroundColor.nullish(),
|
|
11
12
|
size: z.number().or(z.array(z.number())).nullish(),
|
|
12
13
|
sizeRange: z.number().or(z.array(z.number())).nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["webpack://@visactor/vseed/./src/types/chartType/scatter/zScatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLinearRegressionLine,\n zLogisticRegressionLine,\n zLowessRegressionLine,\n zMeasures,\n zPointStyle,\n zPolynomialRegressionLine,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYLinearAxis,\n} from '../../properties'\n\nexport const zScatter = z.object({\n chartType: z.literal('scatter'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n backgroundColor: zBackgroundColor.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n linearRegressionLine: z.array(zLinearRegressionLine).or(zLinearRegressionLine).nullish(),\n lowessRegressionLine: z.array(zLowessRegressionLine).or(zLowessRegressionLine).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).nullish(),\n logisticRegressionLine: z.array(zLogisticRegressionLine).or(zLogisticRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasures","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLinearRegressionLine","zLowessRegressionLine","zPolynomialRegressionLine","zLogisticRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types/chartType/scatter/zScatter.js","sources":["webpack://@visactor/vseed/./src/types/chartType/scatter/zScatter.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport {\n zAnnotationArea,\n zAnnotationHorizontalLine,\n zAnnotationPoint,\n zAnnotationVerticalLine,\n zBackgroundColor,\n zColor,\n zCrosshairLine,\n zDataset,\n zDimensionLinkage,\n zDimensions,\n zEncoding,\n zLabel,\n zLegend,\n zLinearRegressionLine,\n zLogisticRegressionLine,\n zLowessRegressionLine,\n zMeasures,\n zPointStyle,\n zPolynomialRegressionLine,\n zTheme,\n zTooltip,\n zBrush,\n zXLinearAxis,\n zYLinearAxis,\n zPage,\n} from '../../properties'\n\nexport const zScatter = z.object({\n chartType: z.literal('scatter'),\n dataset: zDataset.nullish(),\n encoding: zEncoding.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasures.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n size: z.number().or(z.array(z.number())).nullish(),\n sizeRange: z.number().or(z.array(z.number())).nullish(),\n color: zColor.nullish(),\n label: zLabel.nullish(),\n legend: zLegend.nullish(),\n tooltip: zTooltip.nullish(),\n brush: zBrush.nullish(),\n xAxis: zXLinearAxis.nullish(),\n yAxis: zYLinearAxis.nullish(),\n crosshairLine: zCrosshairLine.nullish(),\n theme: zTheme.nullish(),\n pointStyle: z.array(zPointStyle).or(zPointStyle).nullish(),\n annotationPoint: z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),\n annotationVerticalLine: z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),\n annotationHorizontalLine: z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),\n annotationArea: z.array(zAnnotationArea).or(zAnnotationArea).nullish(),\n linearRegressionLine: z.array(zLinearRegressionLine).or(zLinearRegressionLine).nullish(),\n lowessRegressionLine: z.array(zLowessRegressionLine).or(zLowessRegressionLine).nullish(),\n polynomialRegressionLine: z.array(zPolynomialRegressionLine).or(zPolynomialRegressionLine).nullish(),\n logisticRegressionLine: z.array(zLogisticRegressionLine).or(zLogisticRegressionLine).nullish(),\n dimensionLinkage: zDimensionLinkage.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zScatter","z","zDataset","zEncoding","zDimensions","zMeasures","zPage","zBackgroundColor","zColor","zLabel","zLegend","zTooltip","zBrush","zXLinearAxis","zYLinearAxis","zCrosshairLine","zTheme","zPointStyle","zAnnotationPoint","zAnnotationVerticalLine","zAnnotationHorizontalLine","zAnnotationArea","zLinearRegressionLine","zLowessRegressionLine","zPolynomialRegressionLine","zLogisticRegressionLine","zDimensionLinkage","zLocale"],"mappings":";;;AA8BO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,UAAUC,UAAU,OAAO;IAC3B,YAAYC,YAAY,OAAO;IAC/B,UAAUC,UAAU,OAAO;IAC3B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,MAAMN,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IAChD,WAAWA,EAAE,MAAM,GAAG,EAAE,CAACA,EAAE,KAAK,CAACA,EAAE,MAAM,KAAK,OAAO;IACrD,OAAOO,OAAO,OAAO;IACrB,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;IACvB,SAASC,SAAS,OAAO;IACzB,OAAOC,OAAO,OAAO;IACrB,OAAOC,aAAa,OAAO;IAC3B,OAAOC,aAAa,OAAO;IAC3B,eAAeC,eAAe,OAAO;IACrC,OAAOC,OAAO,OAAO;IACrB,YAAYf,EAAE,KAAK,CAACgB,aAAa,EAAE,CAACA,aAAa,OAAO;IACxD,iBAAiBhB,EAAE,KAAK,CAACiB,kBAAkB,EAAE,CAACA,kBAAkB,OAAO;IACvE,wBAAwBjB,EAAE,KAAK,CAACkB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,0BAA0BlB,EAAE,KAAK,CAACmB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,gBAAgBnB,EAAE,KAAK,CAACoB,iBAAiB,EAAE,CAACA,iBAAiB,OAAO;IACpE,sBAAsBpB,EAAE,KAAK,CAACqB,uBAAuB,EAAE,CAACA,uBAAuB,OAAO;IACtF,sBAAsBrB,EAAE,KAAK,CAACsB,uBAAuB,EAAE,CAACA,uBAAuB,OAAO;IACtF,0BAA0BtB,EAAE,KAAK,CAACuB,2BAA2B,EAAE,CAACA,2BAA2B,OAAO;IAClG,wBAAwBvB,EAAE,KAAK,CAACwB,yBAAyB,EAAE,CAACA,yBAAyB,OAAO;IAC5F,kBAAkBC,kBAAkB,OAAO;IAC3C,QAAQC,QAAQ,OAAO;AACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Locale } from '../../i18n';
|
|
2
|
-
import type { BodyCellStyle, DimensionTree, MeasureTree } from '../../properties';
|
|
2
|
+
import type { BodyCellStyle, DimensionTree, MeasureTree, Page } from '../../properties';
|
|
3
3
|
import { type BackgroundColor, type Dataset, type Theme } from '../../properties';
|
|
4
4
|
/**
|
|
5
5
|
* @description 表格,适用于详细数据展示场景,行列分明,便于查看具体数值
|
|
@@ -45,6 +45,10 @@ export interface Table {
|
|
|
45
45
|
* @example [{id: "value", alias: "数值"}]
|
|
46
46
|
*/
|
|
47
47
|
measures?: MeasureTree;
|
|
48
|
+
/**
|
|
49
|
+
* @description 分页配置, 用于指定分页的字段名, 必须是维度
|
|
50
|
+
*/
|
|
51
|
+
page?: Page;
|
|
48
52
|
/**
|
|
49
53
|
* @default transparent 默认为透明背景
|
|
50
54
|
* @description 背景颜色可以是颜色字符串, 例如'red', 'blue', 也可以是hex, rgb或rgba'#ff0000', 'rgba(255,0,0,0.5)'
|
|
@@ -115,6 +115,10 @@ export declare const zTable: z.ZodObject<{
|
|
|
115
115
|
scatter: "scatter";
|
|
116
116
|
}>>;
|
|
117
117
|
}, z.core.$strip>]>>>>;
|
|
118
|
+
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
119
|
+
field: z.ZodString;
|
|
120
|
+
currentValue: z.ZodString;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
118
122
|
backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>>>;
|
|
119
123
|
borderColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
124
|
bodyFontSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { zLocale } from "../../i18n/index.js";
|
|
3
3
|
import { zBackgroundColor, zBodyCellStyle, zDataset, zDimensions, zMeasureTree, zTheme } from "../../properties/index.js";
|
|
4
|
+
import { zPage } from "../../properties/page/index.js";
|
|
4
5
|
const zTable = z.object({
|
|
5
6
|
chartType: z.literal('table'),
|
|
6
7
|
dataset: zDataset.nullish(),
|
|
7
8
|
dimensions: zDimensions.nullish(),
|
|
8
9
|
measures: zMeasureTree.nullish(),
|
|
10
|
+
page: zPage.nullish(),
|
|
9
11
|
backgroundColor: zBackgroundColor.nullish(),
|
|
10
12
|
borderColor: z.string().nullish(),
|
|
11
13
|
bodyFontSize: z.number().nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/chartType/table/zTable.js","sources":["webpack://@visactor/vseed/./src/types/chartType/table/zTable.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport { zBackgroundColor, zBodyCellStyle, zDataset, zDimensions, zMeasureTree, zTheme } from '../../properties'\n\nexport const zTable = z.object({\n chartType: z.literal('table'),\n dataset: zDataset.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n borderColor: z.string().nullish(),\n bodyFontSize: z.number().nullish(),\n bodyFontColor: z.string().nullish(),\n bodyBackgroundColor: z.string().nullish(),\n hoverBodyBackgroundColor: z.string().nullish(),\n hoverBodyInlineBackgroundColor: z.string().nullish(),\n headerFontSize: z.number().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n selectedBorderColor: z.string().nullish(),\n selectedBackgroundColor: z.string().nullish(),\n bodyCellStyle: zBodyCellStyle.nullish(),\n\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zTable","z","zDataset","zDimensions","zMeasureTree","zBackgroundColor","zBodyCellStyle","zTheme","zLocale"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types/chartType/table/zTable.js","sources":["webpack://@visactor/vseed/./src/types/chartType/table/zTable.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zLocale } from '../../i18n'\nimport { zBackgroundColor, zBodyCellStyle, zDataset, zDimensions, zMeasureTree, zTheme } from '../../properties'\nimport { zPage } from '../../properties/page'\n\nexport const zTable = z.object({\n chartType: z.literal('table'),\n dataset: zDataset.nullish(),\n dimensions: zDimensions.nullish(),\n measures: zMeasureTree.nullish(),\n page: zPage.nullish(),\n\n backgroundColor: zBackgroundColor.nullish(),\n borderColor: z.string().nullish(),\n bodyFontSize: z.number().nullish(),\n bodyFontColor: z.string().nullish(),\n bodyBackgroundColor: z.string().nullish(),\n hoverBodyBackgroundColor: z.string().nullish(),\n hoverBodyInlineBackgroundColor: z.string().nullish(),\n headerFontSize: z.number().nullish(),\n headerFontColor: z.string().nullish(),\n headerBackgroundColor: z.string().nullish(),\n hoverHeaderBackgroundColor: z.string().nullish(),\n hoverHeaderInlineBackgroundColor: z.string().nullish(),\n selectedBorderColor: z.string().nullish(),\n selectedBackgroundColor: z.string().nullish(),\n bodyCellStyle: zBodyCellStyle.nullish(),\n\n theme: zTheme.nullish(),\n locale: zLocale.nullish(),\n})\n"],"names":["zTable","z","zDataset","zDimensions","zMeasureTree","zPage","zBackgroundColor","zBodyCellStyle","zTheme","zLocale"],"mappings":";;;;AAKO,MAAMA,SAASC,EAAE,MAAM,CAAC;IAC7B,WAAWA,EAAE,OAAO,CAAC;IACrB,SAASC,SAAS,OAAO;IACzB,YAAYC,YAAY,OAAO;IAC/B,UAAUC,aAAa,OAAO;IAC9B,MAAMC,MAAM,OAAO;IAEnB,iBAAiBC,iBAAiB,OAAO;IACzC,aAAaL,EAAE,MAAM,GAAG,OAAO;IAC/B,cAAcA,EAAE,MAAM,GAAG,OAAO;IAChC,eAAeA,EAAE,MAAM,GAAG,OAAO;IACjC,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IACvC,0BAA0BA,EAAE,MAAM,GAAG,OAAO;IAC5C,gCAAgCA,EAAE,MAAM,GAAG,OAAO;IAClD,gBAAgBA,EAAE,MAAM,GAAG,OAAO;IAClC,iBAAiBA,EAAE,MAAM,GAAG,OAAO;IACnC,uBAAuBA,EAAE,MAAM,GAAG,OAAO;IACzC,4BAA4BA,EAAE,MAAM,GAAG,OAAO;IAC9C,kCAAkCA,EAAE,MAAM,GAAG,OAAO;IACpD,qBAAqBA,EAAE,MAAM,GAAG,OAAO;IACvC,yBAAyBA,EAAE,MAAM,GAAG,OAAO;IAC3C,eAAeM,eAAe,OAAO;IAErC,OAAOC,OAAO,OAAO;IACrB,QAAQC,QAAQ,OAAO;AACzB"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types/properties/page/zPage.js","sources":["webpack://@visactor/vseed/./src/types/properties/page/zPage.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const zPage = z.object({\n field: z.string(),\n currentValue: z.string(),\n})\n"],"names":["zPage","z"],"mappings":";AAEO,MAAMA,QAAQC,EAAE,MAAM,CAAC;IAC5B,OAAOA,EAAE,MAAM;IACf,cAAcA,EAAE,MAAM;AACxB"}
|