@visactor/vseed 0.4.5 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/builder/builder/builder.d.ts +36 -127
- package/dist/esm/builder/builder/builder.js +10 -2
- package/dist/esm/builder/builder/builder.js.map +1 -1
- package/dist/esm/builder/builder/prepare.js +87 -153
- package/dist/esm/builder/builder/prepare.js.map +1 -1
- package/dist/esm/dataSelector/selector.d.ts +2 -2
- package/dist/esm/dataSelector/selector.js.map +1 -1
- package/dist/esm/i18n/i18nData.js +28 -0
- package/dist/esm/i18n/i18nData.js.map +1 -1
- package/dist/esm/pipeline/advanced/chart/pipes/default/defaultMeasures.js.map +1 -1
- package/dist/esm/pipeline/advanced/table/pipes/config/pivotTableConfig.js +2 -1
- package/dist/esm/pipeline/advanced/table/pipes/config/pivotTableConfig.js.map +1 -1
- package/dist/esm/pipeline/advanced/table/pipes/default/defaultMeasures.js.map +1 -1
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js +6 -2
- package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipeline/table.js +2 -1
- package/dist/esm/pipeline/spec/table/pipeline/table.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/columns/columnsAggregation.d.ts +8 -0
- package/dist/esm/pipeline/spec/table/pipes/columns/columnsAggregation.js +76 -0
- package/dist/esm/pipeline/spec/table/pipes/columns/columnsAggregation.js.map +1 -0
- package/dist/esm/pipeline/spec/table/pipes/columns/dimensionsToColumns.js +1 -27
- package/dist/esm/pipeline/spec/table/pipes/columns/dimensionsToColumns.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/columns/index.d.ts +1 -0
- package/dist/esm/pipeline/spec/table/pipes/columns/index.js +1 -0
- package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js +1 -27
- package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/columns/pivotColumns.js +12 -2
- package/dist/esm/pipeline/spec/table/pipes/columns/pivotColumns.js.map +1 -1
- package/dist/esm/pipeline/spec/table/pipes/columns/utils.d.ts +15 -0
- package/dist/esm/pipeline/spec/table/pipes/columns/utils.js +35 -0
- package/dist/esm/pipeline/spec/table/pipes/columns/utils.js.map +1 -0
- package/dist/esm/pipeline/spec/table/pipes/indicators/pivotDataConfig.js +39 -4
- package/dist/esm/pipeline/spec/table/pipes/indicators/pivotDataConfig.js.map +1 -1
- package/dist/esm/types/advancedVSeed.d.ts +2 -1
- package/dist/esm/types/advancedVSeed.js +3 -2
- package/dist/esm/types/advancedVSeed.js.map +1 -1
- package/dist/esm/types/chartType/area/zArea.d.ts +113 -8
- package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +113 -8
- package/dist/esm/types/chartType/bar/zBar.d.ts +97 -4
- package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +97 -4
- package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +97 -4
- package/dist/esm/types/chartType/boxPlot/zBoxPlot.d.ts +89 -2
- package/dist/esm/types/chartType/circlePacking/zCirclePacking.d.ts +81 -0
- package/dist/esm/types/chartType/column/zColumn.d.ts +97 -4
- package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +97 -4
- package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +97 -4
- package/dist/esm/types/chartType/donut/zDonut.d.ts +81 -0
- package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +121 -10
- package/dist/esm/types/chartType/funnel/zFunnel.d.ts +81 -0
- package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +81 -0
- package/dist/esm/types/chartType/histogram/zHistogram.d.ts +97 -4
- package/dist/esm/types/chartType/line/zLine.d.ts +105 -6
- package/dist/esm/types/chartType/pie/zPie.d.ts +81 -0
- package/dist/esm/types/chartType/pivotTable/pivotTable.d.ts +6 -1
- package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +12 -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/raceBar/zRaceBar.d.ts +97 -4
- package/dist/esm/types/chartType/raceColumn/zRaceColumn.d.ts +97 -4
- package/dist/esm/types/chartType/raceDonut/zRaceDonut.d.ts +81 -0
- package/dist/esm/types/chartType/raceLine/zRaceLine.d.ts +105 -6
- package/dist/esm/types/chartType/racePie/zRacePie.d.ts +81 -0
- package/dist/esm/types/chartType/raceScatter/zRaceScatter.d.ts +97 -4
- package/dist/esm/types/chartType/radar/zRadar.d.ts +81 -0
- package/dist/esm/types/chartType/rose/zRose.d.ts +81 -0
- package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +81 -0
- package/dist/esm/types/chartType/scatter/zScatter.d.ts +97 -4
- package/dist/esm/types/chartType/sunburst/zSunburst.d.ts +81 -0
- package/dist/esm/types/chartType/table/table.d.ts +11 -1
- package/dist/esm/types/chartType/table/zTable.d.ts +7 -0
- package/dist/esm/types/chartType/table/zTable.js +2 -1
- package/dist/esm/types/chartType/table/zTable.js.map +1 -1
- package/dist/esm/types/chartType/treeMap/zTreeMap.d.ts +81 -0
- package/dist/esm/types/dataSelector/selector.d.ts +53 -29
- package/dist/esm/types/dataSelector/selector.js +1 -1
- package/dist/esm/types/dataSelector/selector.js.map +1 -1
- package/dist/esm/types/properties/aggregation/aggregation.d.ts +9 -0
- package/dist/esm/types/properties/aggregation/aggregation.js +0 -0
- package/dist/esm/types/properties/aggregation/index.d.ts +2 -0
- package/dist/esm/types/properties/aggregation/index.js +2 -0
- package/dist/esm/types/properties/aggregation/zAggregation.d.ts +8 -0
- package/dist/esm/types/properties/aggregation/zAggregation.js +11 -0
- package/dist/esm/types/properties/aggregation/zAggregation.js.map +1 -0
- package/dist/esm/types/properties/annotation/annotation.d.ts +8 -2
- package/dist/esm/types/properties/annotation/zAnnotationPoint.d.ts +4 -1
- package/dist/esm/types/properties/config/annotation/zAnnotation.d.ts +8 -2
- package/dist/esm/types/properties/config/area.d.ts +170 -2
- package/dist/esm/types/properties/config/bar.d.ts +255 -3
- package/dist/esm/types/properties/config/boxplot.d.ts +85 -1
- package/dist/esm/types/properties/config/circlePacking.d.ts +81 -0
- package/dist/esm/types/properties/config/column.d.ts +255 -3
- package/dist/esm/types/properties/config/config.d.ts +2425 -19
- package/dist/esm/types/properties/config/dualAxis.d.ts +85 -1
- package/dist/esm/types/properties/config/funnel.d.ts +81 -0
- package/dist/esm/types/properties/config/heatmap.d.ts +81 -0
- package/dist/esm/types/properties/config/histogram.d.ts +85 -1
- package/dist/esm/types/properties/config/label/label.d.ts +18 -1
- package/dist/esm/types/properties/config/label/zLabel.d.ts +81 -0
- package/dist/esm/types/properties/config/label/zLabel.js +3 -2
- package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
- package/dist/esm/types/properties/config/label/zPieLabel.d.ts +81 -0
- package/dist/esm/types/properties/config/line.d.ts +85 -1
- package/dist/esm/types/properties/config/pie.d.ts +243 -0
- package/dist/esm/types/properties/config/race.d.ts +510 -6
- package/dist/esm/types/properties/config/rose.d.ts +162 -0
- package/dist/esm/types/properties/config/scatter.d.ts +85 -1
- package/dist/esm/types/properties/config/sunburst.d.ts +81 -0
- package/dist/esm/types/properties/config/treeMap.d.ts +81 -0
- package/dist/esm/types/properties/index.d.ts +2 -0
- package/dist/esm/types/properties/index.js +2 -0
- package/dist/esm/types/properties/markStyle/barStyle.d.ts +4 -1
- package/dist/esm/types/properties/markStyle/lineStyle.d.ts +4 -1
- package/dist/esm/types/properties/markStyle/markStyle.d.ts +32 -8
- package/dist/esm/types/properties/markStyle/pointStyle.d.ts +4 -1
- package/dist/esm/types/properties/markStyle/zAreaStyle.d.ts +4 -1
- package/dist/esm/types/properties/theme/customTheme.d.ts +4850 -38
- package/dist/esm/types/properties/totals/index.d.ts +2 -0
- package/dist/esm/types/properties/totals/index.js +2 -0
- package/dist/esm/types/properties/totals/totals.d.ts +34 -0
- package/dist/esm/types/properties/totals/totals.js +0 -0
- package/dist/esm/types/properties/totals/zTotals.d.ts +18 -0
- package/dist/esm/types/properties/totals/zTotals.js +13 -0
- package/dist/esm/types/properties/totals/zTotals.js.map +1 -0
- package/dist/umd/index.js +301 -213
- package/dist/umd/index.js.map +1 -1
- package/package.json +8 -5
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ColumnsDefine } from '@visactor/vtable';
|
|
2
|
+
/**
|
|
3
|
+
* 从树形结构中提取所有叶子节点的ID
|
|
4
|
+
*/
|
|
5
|
+
export declare function extractLeafIds<T extends {
|
|
6
|
+
id: string;
|
|
7
|
+
}>(tree: T[]): Set<string>;
|
|
8
|
+
export declare const treeTreeToColumns: <T extends {
|
|
9
|
+
id: string;
|
|
10
|
+
alias?: string;
|
|
11
|
+
}, U extends {
|
|
12
|
+
id: string;
|
|
13
|
+
alias?: string;
|
|
14
|
+
children?: (T | U)[];
|
|
15
|
+
}>(tree: (T | U)[], callback?: (node: T | U) => object) => ColumnsDefine[];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { findTreeNodesBy } from "../../../../utils/index.js";
|
|
2
|
+
function extractLeafIds(tree) {
|
|
3
|
+
const leafNodes = findTreeNodesBy(tree, ()=>true);
|
|
4
|
+
return new Set(leafNodes.map((node)=>node.id));
|
|
5
|
+
}
|
|
6
|
+
const treeTreeToColumns = (tree, callback)=>{
|
|
7
|
+
const result = tree.map((item)=>{
|
|
8
|
+
if ('children' in item && Array.isArray(item.children)) {
|
|
9
|
+
const groupNode = item;
|
|
10
|
+
const field = groupNode.id;
|
|
11
|
+
const title = groupNode.alias ?? groupNode.id;
|
|
12
|
+
const props = callback?.(groupNode) || {};
|
|
13
|
+
return {
|
|
14
|
+
field,
|
|
15
|
+
title,
|
|
16
|
+
columns: treeTreeToColumns(item.children, callback),
|
|
17
|
+
...props
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
{
|
|
21
|
+
const field = item.id;
|
|
22
|
+
const title = item.alias ?? item.id;
|
|
23
|
+
const props = callback?.(item) || {};
|
|
24
|
+
return {
|
|
25
|
+
field,
|
|
26
|
+
title,
|
|
27
|
+
...props
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return result || [];
|
|
32
|
+
};
|
|
33
|
+
export { extractLeafIds, treeTreeToColumns };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipeline/spec/table/pipes/columns/utils.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/columns/utils.ts"],"sourcesContent":["import type { ColumnsDefine } from '@visactor/vtable'\nimport { findTreeNodesBy } from 'src/pipeline/utils'\n\n/**\n * 从树形结构中提取所有叶子节点的ID\n */\nexport function extractLeafIds<T extends { id: string }>(tree: T[]): Set<string> {\n const leafNodes = findTreeNodesBy(tree, () => true)\n return new Set(leafNodes.map((node) => node.id))\n}\n\nexport const treeTreeToColumns = <\n T extends { id: string; alias?: string },\n U extends { id: string; alias?: string; children?: (T | U)[] },\n>(\n tree: (T | U)[],\n callback?: (node: T | U) => object,\n): ColumnsDefine[] => {\n const result = tree.map((item) => {\n if ('children' in item && Array.isArray(item.children)) {\n const groupNode = item as unknown as U\n const field = groupNode.id\n const title = groupNode.alias ?? groupNode.id\n const props = callback?.(groupNode) || {}\n // group\n return {\n field,\n title,\n columns: treeTreeToColumns(item.children, callback),\n ...props,\n }\n } else {\n const field = item.id\n const title = item.alias ?? item.id\n const props = callback?.(item) || {}\n // leaf\n return {\n field,\n title,\n ...props,\n }\n }\n }) as unknown as ColumnsDefine[]\n\n return result || []\n}\n"],"names":["extractLeafIds","tree","leafNodes","findTreeNodesBy","Set","node","treeTreeToColumns","callback","result","item","Array","groupNode","field","title","props"],"mappings":";AAMO,SAASA,eAAyCC,IAAS;IAChE,MAAMC,YAAYC,gBAAgBF,MAAM,IAAM;IAC9C,OAAO,IAAIG,IAAIF,UAAU,GAAG,CAAC,CAACG,OAASA,KAAK,EAAE;AAChD;AAEO,MAAMC,oBAAoB,CAI/BL,MACAM;IAEA,MAAMC,SAASP,KAAK,GAAG,CAAC,CAACQ;QACvB,IAAI,cAAcA,QAAQC,MAAM,OAAO,CAACD,KAAK,QAAQ,GAAG;YACtD,MAAME,YAAYF;YAClB,MAAMG,QAAQD,UAAU,EAAE;YAC1B,MAAME,QAAQF,UAAU,KAAK,IAAIA,UAAU,EAAE;YAC7C,MAAMG,QAAQP,WAAWI,cAAc,CAAC;YAExC,OAAO;gBACLC;gBACAC;gBACA,SAASP,kBAAkBG,KAAK,QAAQ,EAAEF;gBAC1C,GAAGO,KAAK;YACV;QACF;QAAO;YACL,MAAMF,QAAQH,KAAK,EAAE;YACrB,MAAMI,QAAQJ,KAAK,KAAK,IAAIA,KAAK,EAAE;YACnC,MAAMK,QAAQP,WAAWE,SAAS,CAAC;YAEnC,OAAO;gBACLG;gBACAC;gBACA,GAAGC,KAAK;YACV;QACF;IACF;IAEA,OAAON,UAAU,EAAE;AACrB"}
|
|
@@ -1,17 +1,52 @@
|
|
|
1
|
+
import { intl } from "../../../../../i18n/index.js";
|
|
1
2
|
import { findAllMeasures } from "../../../../utils/index.js";
|
|
2
3
|
const dataConfig = (spec, context)=>{
|
|
3
|
-
const { advancedVSeed } = context;
|
|
4
|
+
const { advancedVSeed, vseed } = context;
|
|
4
5
|
const measures = findAllMeasures(advancedVSeed.measureTree);
|
|
5
6
|
const aggregationRules = measures.map((measure)=>({
|
|
6
7
|
field: measure.id,
|
|
7
8
|
aggregationType: 'NONE',
|
|
8
9
|
indicatorKey: measure.id
|
|
9
10
|
}));
|
|
11
|
+
const dataConfigObj = {
|
|
12
|
+
aggregationRules
|
|
13
|
+
};
|
|
14
|
+
const { totals } = vseed;
|
|
15
|
+
if (totals) {
|
|
16
|
+
const grandTotalLabel = intl.i18n`总计`;
|
|
17
|
+
const subTotalLabel = intl.i18n`小计`;
|
|
18
|
+
const dimensionIds = (advancedVSeed.dimensionTree || []).map((dim)=>dim.id);
|
|
19
|
+
dataConfigObj.totals = {};
|
|
20
|
+
if (totals.row) {
|
|
21
|
+
const rowSubDimensions = totals.row.subTotalsDimensions?.filter((dim)=>dimensionIds.includes(dim));
|
|
22
|
+
const normalizedRowSubDimensions = totals.row.showSubTotals && (!rowSubDimensions || 0 === rowSubDimensions.length) ? dimensionIds.length > 0 ? [
|
|
23
|
+
dimensionIds[0]
|
|
24
|
+
] : [] : rowSubDimensions;
|
|
25
|
+
dataConfigObj.totals.row = {
|
|
26
|
+
showGrandTotals: totals.row.showGrandTotals ?? false,
|
|
27
|
+
showSubTotals: totals.row.showSubTotals ?? false,
|
|
28
|
+
subTotalsDimensions: normalizedRowSubDimensions,
|
|
29
|
+
grandTotalLabel,
|
|
30
|
+
subTotalLabel
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
if (totals.column) {
|
|
34
|
+
const columnSubDimensions = totals.column.subTotalsDimensions?.filter((dim)=>dimensionIds.includes(dim));
|
|
35
|
+
const normalizedColumnSubDimensions = totals.column.showSubTotals && (!columnSubDimensions || 0 === columnSubDimensions.length) ? dimensionIds.length > 0 ? [
|
|
36
|
+
dimensionIds[0]
|
|
37
|
+
] : [] : columnSubDimensions;
|
|
38
|
+
dataConfigObj.totals.column = {
|
|
39
|
+
showGrandTotals: totals.column.showGrandTotals ?? false,
|
|
40
|
+
showSubTotals: totals.column.showSubTotals ?? false,
|
|
41
|
+
subTotalsDimensions: normalizedColumnSubDimensions,
|
|
42
|
+
grandTotalLabel,
|
|
43
|
+
subTotalLabel
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
10
47
|
return {
|
|
11
48
|
...spec,
|
|
12
|
-
dataConfig:
|
|
13
|
-
aggregationRules
|
|
14
|
-
}
|
|
49
|
+
dataConfig: dataConfigObj
|
|
15
50
|
};
|
|
16
51
|
};
|
|
17
52
|
export { dataConfig };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline/spec/table/pipes/indicators/pivotDataConfig.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/indicators/pivotDataConfig.ts"],"sourcesContent":["import { findAllMeasures } from 'src/pipeline/utils'\nimport type { PivotTableSpecPipe } from 'src/types'\n\nexport const dataConfig: PivotTableSpecPipe = (spec, context) => {\n const { advancedVSeed } = context\n const measures = findAllMeasures(advancedVSeed.measureTree)\n\n const aggregationRules = measures.map((measure) => ({\n field: measure.id,\n aggregationType: 'NONE',\n indicatorKey: measure.id,\n }))\n\n
|
|
1
|
+
{"version":3,"file":"pipeline/spec/table/pipes/indicators/pivotDataConfig.js","sources":["webpack://@visactor/vseed/./src/pipeline/spec/table/pipes/indicators/pivotDataConfig.ts"],"sourcesContent":["import { intl } from 'src/i18n'\nimport { findAllMeasures } from 'src/pipeline/utils'\nimport type { PivotTable, PivotTableSpecPipe } from 'src/types'\n\nexport const dataConfig: PivotTableSpecPipe = (spec, context) => {\n const { advancedVSeed, vseed } = context\n const measures = findAllMeasures(advancedVSeed.measureTree)\n\n const aggregationRules = measures.map((measure) => ({\n field: measure.id,\n aggregationType: 'NONE',\n indicatorKey: measure.id,\n }))\n\n const dataConfigObj: any = {\n aggregationRules,\n }\n\n // 处理totals配置\n const { totals } = vseed as PivotTable\n if (totals) {\n const grandTotalLabel = intl.i18n`总计`\n const subTotalLabel = intl.i18n`小计`\n const dimensionIds = (advancedVSeed.dimensionTree || []).map((dim) => dim.id)\n\n dataConfigObj.totals = {}\n\n // 处理行配置\n if (totals.row) {\n const rowSubDimensions = totals.row.subTotalsDimensions?.filter((dim) => dimensionIds.includes(dim))\n const normalizedRowSubDimensions =\n totals.row.showSubTotals && (!rowSubDimensions || rowSubDimensions.length === 0)\n ? dimensionIds.length > 0\n ? [dimensionIds[0]]\n : []\n : rowSubDimensions\n\n dataConfigObj.totals.row = {\n showGrandTotals: totals.row.showGrandTotals ?? false,\n showSubTotals: totals.row.showSubTotals ?? false,\n subTotalsDimensions: normalizedRowSubDimensions,\n grandTotalLabel,\n subTotalLabel,\n }\n }\n\n // 处理列配置\n if (totals.column) {\n const columnSubDimensions = totals.column.subTotalsDimensions?.filter((dim) => dimensionIds.includes(dim))\n const normalizedColumnSubDimensions =\n totals.column.showSubTotals && (!columnSubDimensions || columnSubDimensions.length === 0)\n ? dimensionIds.length > 0\n ? [dimensionIds[0]]\n : []\n : columnSubDimensions\n\n dataConfigObj.totals.column = {\n showGrandTotals: totals.column.showGrandTotals ?? false,\n showSubTotals: totals.column.showSubTotals ?? false,\n subTotalsDimensions: normalizedColumnSubDimensions,\n grandTotalLabel,\n subTotalLabel,\n }\n }\n }\n\n return {\n ...spec,\n dataConfig: dataConfigObj,\n }\n}\n"],"names":["dataConfig","spec","context","advancedVSeed","vseed","measures","findAllMeasures","aggregationRules","measure","dataConfigObj","totals","grandTotalLabel","intl","subTotalLabel","dimensionIds","dim","rowSubDimensions","normalizedRowSubDimensions","columnSubDimensions","normalizedColumnSubDimensions"],"mappings":";;AAIO,MAAMA,aAAiC,CAACC,MAAMC;IACnD,MAAM,EAAEC,aAAa,EAAEC,KAAK,EAAE,GAAGF;IACjC,MAAMG,WAAWC,gBAAgBH,cAAc,WAAW;IAE1D,MAAMI,mBAAmBF,SAAS,GAAG,CAAC,CAACG,UAAa;YAClD,OAAOA,QAAQ,EAAE;YACjB,iBAAiB;YACjB,cAAcA,QAAQ,EAAE;QAC1B;IAEA,MAAMC,gBAAqB;QACzBF;IACF;IAGA,MAAM,EAAEG,MAAM,EAAE,GAAGN;IACnB,IAAIM,QAAQ;QACV,MAAMC,kBAAkBC,KAAK,IAAI,CAAC,EAAE,CAAC;QACrC,MAAMC,gBAAgBD,KAAK,IAAI,CAAC,EAAE,CAAC;QACnC,MAAME,eAAgBX,AAAAA,CAAAA,cAAc,aAAa,IAAI,EAAC,EAAG,GAAG,CAAC,CAACY,MAAQA,IAAI,EAAE;QAE5EN,cAAc,MAAM,GAAG,CAAC;QAGxB,IAAIC,OAAO,GAAG,EAAE;YACd,MAAMM,mBAAmBN,OAAO,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAACK,MAAQD,aAAa,QAAQ,CAACC;YAC/F,MAAME,6BACJP,OAAO,GAAG,CAAC,aAAa,IAAK,EAACM,oBAAoBA,AAA4B,MAA5BA,iBAAiB,MAAM,AAAK,IAC1EF,aAAa,MAAM,GAAG,IACpB;gBAACA,YAAY,CAAC,EAAE;aAAC,GACjB,EAAE,GACJE;YAENP,cAAc,MAAM,CAAC,GAAG,GAAG;gBACzB,iBAAiBC,OAAO,GAAG,CAAC,eAAe,IAAI;gBAC/C,eAAeA,OAAO,GAAG,CAAC,aAAa,IAAI;gBAC3C,qBAAqBO;gBACrBN;gBACAE;YACF;QACF;QAGA,IAAIH,OAAO,MAAM,EAAE;YACjB,MAAMQ,sBAAsBR,OAAO,MAAM,CAAC,mBAAmB,EAAE,OAAO,CAACK,MAAQD,aAAa,QAAQ,CAACC;YACrG,MAAMI,gCACJT,OAAO,MAAM,CAAC,aAAa,IAAK,EAACQ,uBAAuBA,AAA+B,MAA/BA,oBAAoB,MAAM,AAAK,IACnFJ,aAAa,MAAM,GAAG,IACpB;gBAACA,YAAY,CAAC,EAAE;aAAC,GACjB,EAAE,GACJI;YAENT,cAAc,MAAM,CAAC,MAAM,GAAG;gBAC5B,iBAAiBC,OAAO,MAAM,CAAC,eAAe,IAAI;gBAClD,eAAeA,OAAO,MAAM,CAAC,aAAa,IAAI;gBAC9C,qBAAqBS;gBACrBR;gBACAE;YACF;QACF;IACF;IAEA,OAAO;QACL,GAAGZ,IAAI;QACP,YAAYQ;IACd;AACF"}
|
|
@@ -7,7 +7,7 @@ import { zEncoding } from './properties/encoding';
|
|
|
7
7
|
import { zDatasetReshapeInfo } from './properties/datasetReshapeInfo';
|
|
8
8
|
import { zTheme, zCustomThemeConfig } from './properties/theme';
|
|
9
9
|
import { type Config } from './properties/config';
|
|
10
|
-
import { zAnalysis, zAnnotation, zRegressionLine, zMarkStyle, zPage } from './properties';
|
|
10
|
+
import { zAnalysis, zAnnotation, zRegressionLine, zMarkStyle, zPage, type PivotTableTotals } from './properties';
|
|
11
11
|
import { zLocale } from './i18n';
|
|
12
12
|
import { zCellStyle } from './properties/cellStyle/cellStyle';
|
|
13
13
|
export type AdvancedVSeed = {
|
|
@@ -32,5 +32,6 @@ export type AdvancedVSeed = {
|
|
|
32
32
|
annotation: z.infer<typeof zAnnotation>;
|
|
33
33
|
locale: z.infer<typeof zLocale>;
|
|
34
34
|
regressionLine: z.infer<typeof zRegressionLine>;
|
|
35
|
+
totals?: PivotTableTotals;
|
|
35
36
|
};
|
|
36
37
|
export declare const zAdvancedVSeed: z.ZodType<AdvancedVSeed>;
|
|
@@ -7,7 +7,7 @@ import { zEncoding } from "./properties/encoding/index.js";
|
|
|
7
7
|
import { zDatasetReshapeInfo } from "./properties/datasetReshapeInfo/index.js";
|
|
8
8
|
import { zCustomThemeConfig, zTheme } from "./properties/theme/index.js";
|
|
9
9
|
import { zConfig } from "./properties/config/index.js";
|
|
10
|
-
import { zAnalysis, zAnnotation, zMarkStyle, zPage, zRegressionLine } from "./properties/index.js";
|
|
10
|
+
import { zAnalysis, zAnnotation, zMarkStyle, zPage, zPivotTableTotals, zRegressionLine } from "./properties/index.js";
|
|
11
11
|
import { zLocale } from "./i18n/index.js";
|
|
12
12
|
import { zCellStyle } from "./properties/cellStyle/cellStyle.js";
|
|
13
13
|
const zAdvancedVSeed = z.object({
|
|
@@ -31,7 +31,8 @@ const zAdvancedVSeed = z.object({
|
|
|
31
31
|
customTheme: zCustomThemeConfig,
|
|
32
32
|
annotation: zAnnotation,
|
|
33
33
|
locale: zLocale,
|
|
34
|
-
regressionLine: zRegressionLine
|
|
34
|
+
regressionLine: zRegressionLine,
|
|
35
|
+
totals: zPivotTableTotals.optional()
|
|
35
36
|
});
|
|
36
37
|
export { zAdvancedVSeed };
|
|
37
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types/advancedVSeed.js","sources":["webpack://@visactor/vseed/./src/types/advancedVSeed.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zChartType } from './properties/chartType'\nimport { zDataset } from './properties/dataset'\nimport { zDimensions, zDimensionTree } from './properties/dimensions'\nimport { zMeasures, zMeasureTree } from './properties/measures'\nimport { zEncoding } from './properties/encoding'\nimport { zDatasetReshapeInfo } from './properties/datasetReshapeInfo'\nimport { zTheme, zCustomThemeConfig } from './properties/theme'\nimport { zConfig, type Config } from './properties/config'\nimport {
|
|
1
|
+
{"version":3,"file":"types/advancedVSeed.js","sources":["webpack://@visactor/vseed/./src/types/advancedVSeed.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zChartType } from './properties/chartType'\nimport { zDataset } from './properties/dataset'\nimport { zDimensions, zDimensionTree } from './properties/dimensions'\nimport { zMeasures, zMeasureTree } from './properties/measures'\nimport { zEncoding } from './properties/encoding'\nimport { zDatasetReshapeInfo } from './properties/datasetReshapeInfo'\nimport { zTheme, zCustomThemeConfig } from './properties/theme'\nimport { zConfig, type Config } from './properties/config'\nimport {\n zAnalysis,\n zAnnotation,\n zRegressionLine,\n zMarkStyle,\n zPage,\n zPivotTableTotals,\n type PivotTableTotals,\n} from './properties'\nimport { zLocale } from './i18n'\nimport { zCellStyle } from './properties/cellStyle/cellStyle'\n\nexport type AdvancedVSeed = {\n chartType: z.infer<typeof zChartType>\n dataset: z.infer<typeof zDataset>\n datasetReshapeInfo: z.infer<typeof zDatasetReshapeInfo>\n pivotAllDatasetReshapeInfo: z.infer<typeof zDatasetReshapeInfo>\n dimensions?: z.infer<typeof zDimensions>\n measures?: z.infer<typeof zMeasures>\n reshapeMeasures?: z.infer<typeof zMeasures>[]\n reshapeDimensions?: z.infer<typeof zDimensions>\n measureTree?: z.infer<typeof zMeasureTree>\n dimensionTree?: z.infer<typeof zDimensionTree>\n encoding: z.infer<typeof zEncoding>\n page?: z.infer<typeof zPage>\n config: Config\n analysis: z.infer<typeof zAnalysis>\n theme: z.infer<typeof zTheme>\n markStyle: z.infer<typeof zMarkStyle>\n cellStyle: z.infer<typeof zCellStyle>\n customTheme: z.infer<typeof zCustomThemeConfig>\n annotation: z.infer<typeof zAnnotation>\n locale: z.infer<typeof zLocale>\n regressionLine: z.infer<typeof zRegressionLine>\n totals?: PivotTableTotals\n}\n\nexport const zAdvancedVSeed: z.ZodType<AdvancedVSeed> = z.object({\n chartType: zChartType,\n dataset: zDataset,\n datasetReshapeInfo: zDatasetReshapeInfo,\n pivotAllDatasetReshapeInfo: zDatasetReshapeInfo,\n dimensions: zDimensions.optional(),\n measures: zMeasures.optional(),\n reshapeMeasures: z.array(zMeasures).optional(),\n reshapeDimensions: zDimensions.optional(),\n measureTree: zMeasureTree.optional(), // 现在只有表格中可能会配置这种树状结构\n dimensionTree: zDimensionTree.optional(), // 现在只有表格中可能会配置这种树状结构\n encoding: zEncoding,\n page: zPage.optional(),\n config: zConfig,\n analysis: zAnalysis,\n theme: zTheme,\n markStyle: zMarkStyle,\n cellStyle: zCellStyle,\n customTheme: zCustomThemeConfig,\n annotation: zAnnotation,\n locale: zLocale,\n regressionLine: zRegressionLine,\n totals: zPivotTableTotals.optional(),\n})\n"],"names":["zAdvancedVSeed","z","zChartType","zDataset","zDatasetReshapeInfo","zDimensions","zMeasures","zMeasureTree","zDimensionTree","zEncoding","zPage","zConfig","zAnalysis","zTheme","zMarkStyle","zCellStyle","zCustomThemeConfig","zAnnotation","zLocale","zRegressionLine","zPivotTableTotals"],"mappings":";;;;;;;;;;;;AA8CO,MAAMA,iBAA2CC,EAAE,MAAM,CAAC;IAC/D,WAAWC;IACX,SAASC;IACT,oBAAoBC;IACpB,4BAA4BA;IAC5B,YAAYC,YAAY,QAAQ;IAChC,UAAUC,UAAU,QAAQ;IAC5B,iBAAiBL,EAAE,KAAK,CAACK,WAAW,QAAQ;IAC5C,mBAAmBD,YAAY,QAAQ;IACvC,aAAaE,aAAa,QAAQ;IAClC,eAAeC,eAAe,QAAQ;IACtC,UAAUC;IACV,MAAMC,MAAM,QAAQ;IACpB,QAAQC;IACR,UAAUC;IACV,OAAOC;IACP,WAAWC;IACX,WAAWC;IACX,aAAaC;IACb,YAAYC;IACZ,QAAQC;IACR,gBAAgBC;IAChB,QAAQC,kBAAkB,QAAQ;AACpC"}
|
|
@@ -264,6 +264,87 @@ export declare const zArea: z.ZodObject<{
|
|
|
264
264
|
}>>>;
|
|
265
265
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
266
266
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
267
|
+
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
268
|
+
type: z.ZodLiteral<"row-with-field">;
|
|
269
|
+
description: z.ZodOptional<z.ZodString>;
|
|
270
|
+
code: z.ZodString;
|
|
271
|
+
fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
272
|
+
field: z.ZodString;
|
|
273
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
274
|
+
"=": "=";
|
|
275
|
+
"==": "==";
|
|
276
|
+
"!=": "!=";
|
|
277
|
+
">": ">";
|
|
278
|
+
"<": "<";
|
|
279
|
+
">=": ">=";
|
|
280
|
+
"<=": "<=";
|
|
281
|
+
between: "between";
|
|
282
|
+
}>>>;
|
|
283
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
284
|
+
"=": "=";
|
|
285
|
+
"==": "==";
|
|
286
|
+
"!=": "!=";
|
|
287
|
+
">": ">";
|
|
288
|
+
"<": "<";
|
|
289
|
+
">=": ">=";
|
|
290
|
+
"<=": "<=";
|
|
291
|
+
between: "between";
|
|
292
|
+
}>>>;
|
|
293
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
294
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
295
|
+
field: z.ZodString;
|
|
296
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
297
|
+
in: "in";
|
|
298
|
+
"not in": "not in";
|
|
299
|
+
}>>>;
|
|
300
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
301
|
+
in: "in";
|
|
302
|
+
"not in": "not in";
|
|
303
|
+
}>>>;
|
|
304
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
305
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
306
|
+
field: z.ZodString;
|
|
307
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
308
|
+
"=": "=";
|
|
309
|
+
"==": "==";
|
|
310
|
+
"!=": "!=";
|
|
311
|
+
">": ">";
|
|
312
|
+
"<": "<";
|
|
313
|
+
">=": ">=";
|
|
314
|
+
"<=": "<=";
|
|
315
|
+
between: "between";
|
|
316
|
+
}>>>;
|
|
317
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
318
|
+
"=": "=";
|
|
319
|
+
"==": "==";
|
|
320
|
+
"!=": "!=";
|
|
321
|
+
">": ">";
|
|
322
|
+
"<": "<";
|
|
323
|
+
">=": ">=";
|
|
324
|
+
"<=": "<=";
|
|
325
|
+
between: "between";
|
|
326
|
+
}>>>;
|
|
327
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
328
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
329
|
+
field: z.ZodString;
|
|
330
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
331
|
+
in: "in";
|
|
332
|
+
"not in": "not in";
|
|
333
|
+
}>>>;
|
|
334
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
335
|
+
in: "in";
|
|
336
|
+
"not in": "not in";
|
|
337
|
+
}>>>;
|
|
338
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
339
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
340
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
success: z.ZodBoolean;
|
|
342
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
343
|
+
__row_index: z.ZodNumber;
|
|
344
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
345
|
+
}, z.core.$strip>>>;
|
|
346
|
+
}, z.core.$strip>>;
|
|
347
|
+
}, z.core.$strip>>;
|
|
267
348
|
}, z.core.$strip>>>;
|
|
268
349
|
legend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
269
350
|
enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
@@ -632,7 +713,10 @@ export declare const zArea: z.ZodObject<{
|
|
|
632
713
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
633
714
|
result: z.ZodOptional<z.ZodObject<{
|
|
634
715
|
success: z.ZodBoolean;
|
|
635
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
716
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
717
|
+
__row_index: z.ZodNumber;
|
|
718
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
719
|
+
}, z.core.$strip>>>;
|
|
636
720
|
}, z.core.$strip>>;
|
|
637
721
|
}, z.core.$strip>>;
|
|
638
722
|
pointVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -791,7 +875,10 @@ export declare const zArea: z.ZodObject<{
|
|
|
791
875
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
792
876
|
result: z.ZodOptional<z.ZodObject<{
|
|
793
877
|
success: z.ZodBoolean;
|
|
794
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
878
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
879
|
+
__row_index: z.ZodNumber;
|
|
880
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
881
|
+
}, z.core.$strip>>>;
|
|
795
882
|
}, z.core.$strip>>;
|
|
796
883
|
}, z.core.$strip>>;
|
|
797
884
|
pointVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -951,7 +1038,10 @@ export declare const zArea: z.ZodObject<{
|
|
|
951
1038
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
952
1039
|
result: z.ZodOptional<z.ZodObject<{
|
|
953
1040
|
success: z.ZodBoolean;
|
|
954
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1041
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1042
|
+
__row_index: z.ZodNumber;
|
|
1043
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1044
|
+
}, z.core.$strip>>>;
|
|
955
1045
|
}, z.core.$strip>>;
|
|
956
1046
|
}, z.core.$strip>>;
|
|
957
1047
|
lineVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1109,7 +1199,10 @@ export declare const zArea: z.ZodObject<{
|
|
|
1109
1199
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1110
1200
|
result: z.ZodOptional<z.ZodObject<{
|
|
1111
1201
|
success: z.ZodBoolean;
|
|
1112
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1202
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1203
|
+
__row_index: z.ZodNumber;
|
|
1204
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1205
|
+
}, z.core.$strip>>>;
|
|
1113
1206
|
}, z.core.$strip>>;
|
|
1114
1207
|
}, z.core.$strip>>;
|
|
1115
1208
|
lineVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1268,7 +1361,10 @@ export declare const zArea: z.ZodObject<{
|
|
|
1268
1361
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1269
1362
|
result: z.ZodOptional<z.ZodObject<{
|
|
1270
1363
|
success: z.ZodBoolean;
|
|
1271
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1364
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1365
|
+
__row_index: z.ZodNumber;
|
|
1366
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1367
|
+
}, z.core.$strip>>>;
|
|
1272
1368
|
}, z.core.$strip>>;
|
|
1273
1369
|
}, z.core.$strip>>;
|
|
1274
1370
|
areaVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1419,7 +1515,10 @@ export declare const zArea: z.ZodObject<{
|
|
|
1419
1515
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1420
1516
|
result: z.ZodOptional<z.ZodObject<{
|
|
1421
1517
|
success: z.ZodBoolean;
|
|
1422
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1518
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1519
|
+
__row_index: z.ZodNumber;
|
|
1520
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1521
|
+
}, z.core.$strip>>>;
|
|
1423
1522
|
}, z.core.$strip>>;
|
|
1424
1523
|
}, z.core.$strip>>;
|
|
1425
1524
|
areaVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1571,7 +1670,10 @@ export declare const zArea: z.ZodObject<{
|
|
|
1571
1670
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1572
1671
|
result: z.ZodOptional<z.ZodObject<{
|
|
1573
1672
|
success: z.ZodBoolean;
|
|
1574
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1673
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1674
|
+
__row_index: z.ZodNumber;
|
|
1675
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1676
|
+
}, z.core.$strip>>>;
|
|
1575
1677
|
}, z.core.$strip>>;
|
|
1576
1678
|
}, z.core.$strip>>;
|
|
1577
1679
|
text: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
@@ -1741,7 +1843,10 @@ export declare const zArea: z.ZodObject<{
|
|
|
1741
1843
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1742
1844
|
result: z.ZodOptional<z.ZodObject<{
|
|
1743
1845
|
success: z.ZodBoolean;
|
|
1744
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1846
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1847
|
+
__row_index: z.ZodNumber;
|
|
1848
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1849
|
+
}, z.core.$strip>>>;
|
|
1745
1850
|
}, z.core.$strip>>;
|
|
1746
1851
|
}, z.core.$strip>>;
|
|
1747
1852
|
text: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
@@ -264,6 +264,87 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
264
264
|
}>>>;
|
|
265
265
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
266
266
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>>;
|
|
267
|
+
dynamicFilter: z.ZodOptional<z.ZodObject<{
|
|
268
|
+
type: z.ZodLiteral<"row-with-field">;
|
|
269
|
+
description: z.ZodOptional<z.ZodString>;
|
|
270
|
+
code: z.ZodString;
|
|
271
|
+
fallback: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
272
|
+
field: z.ZodString;
|
|
273
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
274
|
+
"=": "=";
|
|
275
|
+
"==": "==";
|
|
276
|
+
"!=": "!=";
|
|
277
|
+
">": ">";
|
|
278
|
+
"<": "<";
|
|
279
|
+
">=": ">=";
|
|
280
|
+
"<=": "<=";
|
|
281
|
+
between: "between";
|
|
282
|
+
}>>>;
|
|
283
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
284
|
+
"=": "=";
|
|
285
|
+
"==": "==";
|
|
286
|
+
"!=": "!=";
|
|
287
|
+
">": ">";
|
|
288
|
+
"<": "<";
|
|
289
|
+
">=": ">=";
|
|
290
|
+
"<=": "<=";
|
|
291
|
+
between: "between";
|
|
292
|
+
}>>>;
|
|
293
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
294
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
295
|
+
field: z.ZodString;
|
|
296
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
297
|
+
in: "in";
|
|
298
|
+
"not in": "not in";
|
|
299
|
+
}>>>;
|
|
300
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
301
|
+
in: "in";
|
|
302
|
+
"not in": "not in";
|
|
303
|
+
}>>>;
|
|
304
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
305
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
306
|
+
field: z.ZodString;
|
|
307
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
308
|
+
"=": "=";
|
|
309
|
+
"==": "==";
|
|
310
|
+
"!=": "!=";
|
|
311
|
+
">": ">";
|
|
312
|
+
"<": "<";
|
|
313
|
+
">=": ">=";
|
|
314
|
+
"<=": "<=";
|
|
315
|
+
between: "between";
|
|
316
|
+
}>>>;
|
|
317
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
318
|
+
"=": "=";
|
|
319
|
+
"==": "==";
|
|
320
|
+
"!=": "!=";
|
|
321
|
+
">": ">";
|
|
322
|
+
"<": "<";
|
|
323
|
+
">=": ">=";
|
|
324
|
+
"<=": "<=";
|
|
325
|
+
between: "between";
|
|
326
|
+
}>>>;
|
|
327
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
328
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
329
|
+
field: z.ZodString;
|
|
330
|
+
operator: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
331
|
+
in: "in";
|
|
332
|
+
"not in": "not in";
|
|
333
|
+
}>>>;
|
|
334
|
+
op: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
335
|
+
in: "in";
|
|
336
|
+
"not in": "not in";
|
|
337
|
+
}>>>;
|
|
338
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>]>;
|
|
339
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
340
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
success: z.ZodBoolean;
|
|
342
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
343
|
+
__row_index: z.ZodNumber;
|
|
344
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
345
|
+
}, z.core.$strip>>>;
|
|
346
|
+
}, z.core.$strip>>;
|
|
347
|
+
}, z.core.$strip>>;
|
|
267
348
|
}, z.core.$strip>>>;
|
|
268
349
|
legend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
269
350
|
enable: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
@@ -632,7 +713,10 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
632
713
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
633
714
|
result: z.ZodOptional<z.ZodObject<{
|
|
634
715
|
success: z.ZodBoolean;
|
|
635
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
716
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
717
|
+
__row_index: z.ZodNumber;
|
|
718
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
719
|
+
}, z.core.$strip>>>;
|
|
636
720
|
}, z.core.$strip>>;
|
|
637
721
|
}, z.core.$strip>>;
|
|
638
722
|
pointVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -791,7 +875,10 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
791
875
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
792
876
|
result: z.ZodOptional<z.ZodObject<{
|
|
793
877
|
success: z.ZodBoolean;
|
|
794
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
878
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
879
|
+
__row_index: z.ZodNumber;
|
|
880
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
881
|
+
}, z.core.$strip>>>;
|
|
795
882
|
}, z.core.$strip>>;
|
|
796
883
|
}, z.core.$strip>>;
|
|
797
884
|
pointVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -951,7 +1038,10 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
951
1038
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
952
1039
|
result: z.ZodOptional<z.ZodObject<{
|
|
953
1040
|
success: z.ZodBoolean;
|
|
954
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1041
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1042
|
+
__row_index: z.ZodNumber;
|
|
1043
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1044
|
+
}, z.core.$strip>>>;
|
|
955
1045
|
}, z.core.$strip>>;
|
|
956
1046
|
}, z.core.$strip>>;
|
|
957
1047
|
lineVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1109,7 +1199,10 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
1109
1199
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1110
1200
|
result: z.ZodOptional<z.ZodObject<{
|
|
1111
1201
|
success: z.ZodBoolean;
|
|
1112
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1202
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1203
|
+
__row_index: z.ZodNumber;
|
|
1204
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1205
|
+
}, z.core.$strip>>>;
|
|
1113
1206
|
}, z.core.$strip>>;
|
|
1114
1207
|
}, z.core.$strip>>;
|
|
1115
1208
|
lineVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1268,7 +1361,10 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
1268
1361
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1269
1362
|
result: z.ZodOptional<z.ZodObject<{
|
|
1270
1363
|
success: z.ZodBoolean;
|
|
1271
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1364
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1365
|
+
__row_index: z.ZodNumber;
|
|
1366
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1367
|
+
}, z.core.$strip>>>;
|
|
1272
1368
|
}, z.core.$strip>>;
|
|
1273
1369
|
}, z.core.$strip>>;
|
|
1274
1370
|
areaVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1419,7 +1515,10 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
1419
1515
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1420
1516
|
result: z.ZodOptional<z.ZodObject<{
|
|
1421
1517
|
success: z.ZodBoolean;
|
|
1422
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1518
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1519
|
+
__row_index: z.ZodNumber;
|
|
1520
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1521
|
+
}, z.core.$strip>>>;
|
|
1423
1522
|
}, z.core.$strip>>;
|
|
1424
1523
|
}, z.core.$strip>>;
|
|
1425
1524
|
areaVisible: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1571,7 +1670,10 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
1571
1670
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1572
1671
|
result: z.ZodOptional<z.ZodObject<{
|
|
1573
1672
|
success: z.ZodBoolean;
|
|
1574
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1673
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1674
|
+
__row_index: z.ZodNumber;
|
|
1675
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1676
|
+
}, z.core.$strip>>>;
|
|
1575
1677
|
}, z.core.$strip>>;
|
|
1576
1678
|
}, z.core.$strip>>;
|
|
1577
1679
|
text: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>>;
|
|
@@ -1741,7 +1843,10 @@ export declare const zAreaPercent: z.ZodObject<{
|
|
|
1741
1843
|
}, z.core.$strip>, z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>]>>]>>;
|
|
1742
1844
|
result: z.ZodOptional<z.ZodObject<{
|
|
1743
1845
|
success: z.ZodBoolean;
|
|
1744
|
-
data: z.ZodOptional<z.ZodArray<z.
|
|
1846
|
+
data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1847
|
+
__row_index: z.ZodNumber;
|
|
1848
|
+
field: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"*">]>;
|
|
1849
|
+
}, z.core.$strip>>>;
|
|
1745
1850
|
}, z.core.$strip>>;
|
|
1746
1851
|
}, z.core.$strip>>;
|
|
1747
1852
|
text: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString>]>>>;
|