@visactor/vseed 0.0.19 → 0.0.21

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.
Files changed (243) hide show
  1. package/dist/builder/builder/advanced/colorItems.d.ts +2 -0
  2. package/dist/builder/builder/advanced/index.d.ts +1 -0
  3. package/dist/builder/builder/builder.d.ts +259 -145
  4. package/dist/builder/register/chartType.d.ts +2 -0
  5. package/dist/builder/register/index.d.ts +1 -1
  6. package/dist/dataReshape/foldMeasures.d.ts +3 -3
  7. package/dist/index.cjs +930 -142
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +845 -135
  10. package/dist/index.js.map +1 -1
  11. package/dist/pipeline/advanced/chart/index.d.ts +1 -0
  12. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/area.d.ts +1 -1
  13. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/areaPercent.d.ts +1 -1
  14. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/bar.d.ts +1 -1
  15. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
  16. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
  17. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/column.d.ts +1 -1
  18. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
  19. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
  20. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/donut.d.ts +1 -1
  21. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
  22. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/line.d.ts +1 -1
  23. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/pie.d.ts +1 -1
  24. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/rose.d.ts +1 -1
  25. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
  26. package/dist/pipeline/advanced/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
  27. package/dist/pipeline/advanced/chart/pipes/annotation/annotation.d.ts +2 -0
  28. package/dist/pipeline/advanced/{pipes → chart/pipes}/config/config.d.ts +1 -1
  29. package/dist/pipeline/advanced/chart/pipes/encoding/encodingFunnel.d.ts +2 -0
  30. package/dist/pipeline/advanced/chart/pipes/encoding/encodingPie.d.ts +2 -0
  31. package/dist/pipeline/advanced/chart/pipes/encoding/encodingRose.d.ts +2 -0
  32. package/dist/pipeline/advanced/chart/pipes/encoding/encodingXY.d.ts +2 -0
  33. package/dist/pipeline/advanced/chart/pipes/encoding/encodingYX.d.ts +2 -0
  34. package/dist/pipeline/advanced/chart/pipes/encoding/encodingYY.d.ts +2 -0
  35. package/dist/pipeline/advanced/{pipes → chart/pipes}/encoding/index.d.ts +1 -0
  36. package/dist/pipeline/advanced/{pipes → chart/pipes}/index.d.ts +0 -1
  37. package/dist/pipeline/advanced/chart/pipes/init/autoDimensions.d.ts +2 -0
  38. package/dist/pipeline/advanced/chart/pipes/init/autoMeasures.d.ts +2 -0
  39. package/dist/pipeline/advanced/chart/pipes/init/initAdvancedVSeed.d.ts +2 -0
  40. package/dist/pipeline/advanced/chart/pipes/markStyle/markStyle.d.ts +2 -0
  41. package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/pivotAdapter.d.ts +1 -1
  42. package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D1M.d.ts +1 -1
  43. package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo1D2M.d.ts +1 -1
  44. package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/pivotReshapeTo2D1M.d.ts +1 -1
  45. package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D1M.d.ts +1 -1
  46. package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo1D2M.d.ts +1 -1
  47. package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/reshapeTo2D1M.d.ts +1 -1
  48. package/dist/pipeline/advanced/chart/pipes/theme/theme.d.ts +2 -0
  49. package/dist/pipeline/advanced/index.d.ts +2 -1
  50. package/dist/pipeline/advanced/table/index.d.ts +1 -0
  51. package/dist/pipeline/advanced/table/pipeline/index.d.ts +2 -0
  52. package/dist/pipeline/advanced/table/pipeline/pivotTable.d.ts +2 -0
  53. package/dist/pipeline/advanced/table/pipeline/table.d.ts +2 -0
  54. package/dist/pipeline/advanced/table/pipes/index.d.ts +2 -0
  55. package/dist/pipeline/advanced/table/pipes/init/autoDimensions.d.ts +2 -0
  56. package/dist/pipeline/advanced/table/pipes/init/autoMeasures.d.ts +2 -0
  57. package/dist/pipeline/advanced/table/pipes/init/autoPivotDimensions.d.ts +2 -0
  58. package/dist/pipeline/advanced/table/pipes/init/autoPivotMeasures.d.ts +2 -0
  59. package/dist/pipeline/advanced/table/pipes/init/index.d.ts +5 -0
  60. package/dist/pipeline/advanced/table/pipes/init/initAdvancedVSeed.d.ts +2 -0
  61. package/dist/pipeline/advanced/table/pipes/records/index.d.ts +1 -0
  62. package/dist/pipeline/advanced/table/pipes/records/records.d.ts +2 -0
  63. package/dist/pipeline/spec/chart/index.d.ts +1 -0
  64. package/dist/pipeline/spec/chart/pipeline/area.d.ts +1 -0
  65. package/dist/pipeline/spec/chart/pipeline/areaPercent.d.ts +1 -0
  66. package/dist/pipeline/spec/chart/pipeline/bar.d.ts +2 -0
  67. package/dist/pipeline/spec/{pipeline → chart/pipeline}/barParallel.d.ts +1 -1
  68. package/dist/pipeline/spec/{pipeline → chart/pipeline}/barPercent.d.ts +1 -1
  69. package/dist/pipeline/spec/chart/pipeline/column.d.ts +1 -0
  70. package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnParallel.d.ts +1 -1
  71. package/dist/pipeline/spec/{pipeline → chart/pipeline}/columnPercent.d.ts +1 -1
  72. package/dist/pipeline/spec/chart/pipeline/donut.d.ts +2 -0
  73. package/dist/pipeline/spec/{pipeline → chart/pipeline}/funnel.d.ts +1 -1
  74. package/dist/pipeline/spec/chart/pipeline/line.d.ts +2 -0
  75. package/dist/pipeline/spec/chart/pipeline/pie.d.ts +2 -0
  76. package/dist/pipeline/spec/chart/pipeline/rose.d.ts +1 -0
  77. package/dist/pipeline/spec/{pipeline → chart/pipeline}/roseParallel.d.ts +1 -1
  78. package/dist/pipeline/spec/{pipeline → chart/pipeline}/scatter.d.ts +1 -1
  79. package/dist/pipeline/spec/chart/pipes/index.d.ts +14 -0
  80. package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/index.d.ts +1 -0
  81. package/dist/pipeline/spec/index.d.ts +2 -1
  82. package/dist/pipeline/spec/table/index.d.ts +1 -0
  83. package/dist/pipeline/spec/table/pipeline/index.d.ts +2 -0
  84. package/dist/pipeline/spec/table/pipeline/pivotTable.d.ts +2 -0
  85. package/dist/pipeline/spec/table/pipeline/table.d.ts +2 -0
  86. package/dist/pipeline/spec/table/pipes/columns/index.d.ts +2 -0
  87. package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +3 -0
  88. package/dist/pipeline/spec/table/pipes/columns/pivotColumns.d.ts +2 -0
  89. package/dist/pipeline/spec/table/pipes/index.d.ts +5 -0
  90. package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
  91. package/dist/pipeline/spec/table/pipes/indicators/pivotIndicators.d.ts +2 -0
  92. package/dist/pipeline/spec/table/pipes/init/index.d.ts +2 -0
  93. package/dist/pipeline/spec/table/pipes/init/pivotTable.d.ts +2 -0
  94. package/dist/pipeline/spec/table/pipes/init/table.d.ts +2 -0
  95. package/dist/pipeline/spec/table/pipes/rows/index.d.ts +1 -0
  96. package/dist/pipeline/spec/table/pipes/rows/pivotRows.d.ts +2 -0
  97. package/dist/pipeline/spec/table/pipes/theme/bodyStyle.d.ts +2 -0
  98. package/dist/pipeline/spec/table/pipes/theme/cornerHeaderStyle.d.ts +2 -0
  99. package/dist/pipeline/spec/table/pipes/theme/frameStyle.d.ts +2 -0
  100. package/dist/pipeline/spec/table/pipes/theme/headerStyle.d.ts +2 -0
  101. package/dist/pipeline/spec/table/pipes/theme/index.d.ts +6 -0
  102. package/dist/pipeline/spec/table/pipes/theme/rowHeaderStyle.d.ts +2 -0
  103. package/dist/pipeline/spec/table/pipes/theme/scrollStyle.d.ts +2 -0
  104. package/dist/pipeline/spec/table/pipes/theme/selectionStyle.d.ts +2 -0
  105. package/dist/pipeline/utils/chatType.d.ts +4 -2
  106. package/dist/pipeline/utils/dimensions/find.d.ts +4 -0
  107. package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
  108. package/dist/pipeline/utils/index.d.ts +2 -0
  109. package/dist/pipeline/utils/measures/find.d.ts +4 -0
  110. package/dist/pipeline/utils/measures/index.d.ts +1 -1
  111. package/dist/pipeline/utils/tree/index.d.ts +1 -0
  112. package/dist/pipeline/utils/tree/traverse.d.ts +11 -0
  113. package/dist/types/advancedVSeed.d.ts +57 -52
  114. package/dist/types/builder/builder.d.ts +1 -0
  115. package/dist/types/chartType/area/area.d.ts +12 -51
  116. package/dist/types/chartType/areaPercent/areaPercent.d.ts +12 -51
  117. package/dist/types/chartType/bar/bar.d.ts +13 -51
  118. package/dist/types/chartType/barParallel/barParallel.d.ts +12 -51
  119. package/dist/types/chartType/barPercent/barPercent.d.ts +12 -51
  120. package/dist/types/chartType/column/column.d.ts +12 -51
  121. package/dist/types/chartType/columnParallel/columnParallel.d.ts +12 -51
  122. package/dist/types/chartType/columnPercent/columnPercent.d.ts +12 -51
  123. package/dist/types/chartType/donut/donut.d.ts +12 -51
  124. package/dist/types/chartType/dualAxis/dualAxis.d.ts +3 -3
  125. package/dist/types/chartType/funnel/funnel.d.ts +12 -51
  126. package/dist/types/chartType/index.d.ts +3 -3
  127. package/dist/types/chartType/line/line.d.ts +12 -51
  128. package/dist/types/chartType/pie/pie.d.ts +12 -51
  129. package/dist/types/chartType/pivotTable/index.d.ts +1 -1
  130. package/dist/types/chartType/pivotTable/pivotTable.d.ts +58 -2
  131. package/dist/types/chartType/rose/rose.d.ts +12 -50
  132. package/dist/types/chartType/roseParallel/roseParallel.d.ts +13 -51
  133. package/dist/types/chartType/scatter/scatter.d.ts +12 -51
  134. package/dist/types/chartType/table/index.d.ts +1 -1
  135. package/dist/types/chartType/table/table.d.ts +60 -4
  136. package/dist/types/properties/config/config.d.ts +50 -2
  137. package/dist/types/properties/dimensions/dimensions.d.ts +28 -10
  138. package/dist/types/properties/dimensions/index.d.ts +1 -2
  139. package/dist/types/properties/measures/measures.d.ts +44 -84
  140. package/dist/types/properties/theme/customTheme.d.ts +48 -4
  141. package/dist/types/vseed.d.ts +241 -720
  142. package/dist/umd/index.js +1202 -144
  143. package/dist/umd/index.js.map +1 -1
  144. package/package.json +1 -1
  145. package/dist/pipeline/advanced/pipes/annotation/annotation.d.ts +0 -2
  146. package/dist/pipeline/advanced/pipes/encoding/encodingFunnel.d.ts +0 -2
  147. package/dist/pipeline/advanced/pipes/encoding/encodingPie.d.ts +0 -2
  148. package/dist/pipeline/advanced/pipes/encoding/encodingRose.d.ts +0 -2
  149. package/dist/pipeline/advanced/pipes/encoding/encodingXY.d.ts +0 -2
  150. package/dist/pipeline/advanced/pipes/encoding/encodingYX.d.ts +0 -2
  151. package/dist/pipeline/advanced/pipes/encoding/encodingYY.d.ts +0 -2
  152. package/dist/pipeline/advanced/pipes/i18n/index.d.ts +0 -1
  153. package/dist/pipeline/advanced/pipes/i18n/locale.d.ts +0 -2
  154. package/dist/pipeline/advanced/pipes/init/autoDimensions.d.ts +0 -2
  155. package/dist/pipeline/advanced/pipes/init/autoMeasures.d.ts +0 -2
  156. package/dist/pipeline/advanced/pipes/init/initAdvancedVSeed.d.ts +0 -2
  157. package/dist/pipeline/advanced/pipes/init/utils.d.ts +0 -1
  158. package/dist/pipeline/advanced/pipes/markStyle/markStyle.d.ts +0 -2
  159. package/dist/pipeline/advanced/pipes/theme/theme.d.ts +0 -2
  160. package/dist/pipeline/spec/pipeline/area.d.ts +0 -1
  161. package/dist/pipeline/spec/pipeline/areaPercent.d.ts +0 -1
  162. package/dist/pipeline/spec/pipeline/bar.d.ts +0 -2
  163. package/dist/pipeline/spec/pipeline/column.d.ts +0 -1
  164. package/dist/pipeline/spec/pipeline/donut.d.ts +0 -2
  165. package/dist/pipeline/spec/pipeline/line.d.ts +0 -2
  166. package/dist/pipeline/spec/pipeline/pie.d.ts +0 -2
  167. package/dist/pipeline/spec/pipeline/rose.d.ts +0 -1
  168. package/dist/pipeline/spec/pipes/index.d.ts +0 -14
  169. package/dist/pipeline/utils/measures/findMeasureById.d.ts +0 -3
  170. /package/dist/pipeline/advanced/{pipeline → chart/pipeline}/index.d.ts +0 -0
  171. /package/dist/pipeline/advanced/{pipes → chart/pipes}/annotation/index.d.ts +0 -0
  172. /package/dist/pipeline/advanced/{pipes → chart/pipes}/config/index.d.ts +0 -0
  173. /package/dist/pipeline/advanced/{pipes → chart/pipes}/init/index.d.ts +0 -0
  174. /package/dist/pipeline/advanced/{pipes → chart/pipes}/markStyle/index.d.ts +0 -0
  175. /package/dist/pipeline/advanced/{pipes → chart/pipes}/pivot/index.d.ts +0 -0
  176. /package/dist/pipeline/advanced/{pipes → chart/pipes}/reshape/index.d.ts +0 -0
  177. /package/dist/pipeline/advanced/{pipes → chart/pipes}/theme/index.d.ts +0 -0
  178. /package/dist/pipeline/spec/{pipeline → chart/pipeline}/index.d.ts +0 -0
  179. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationArea.d.ts +0 -0
  180. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationAreaBand.d.ts +0 -0
  181. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationHorizontalLine.d.ts +0 -0
  182. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationPoint.d.ts +0 -0
  183. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/annotationVerticalLine.d.ts +0 -0
  184. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/index.d.ts +0 -0
  185. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/annotation/utils.d.ts +0 -0
  186. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/a.d.ts +0 -0
  187. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/angle.d.ts +0 -0
  188. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/index.d.ts +0 -0
  189. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/radius.d.ts +0 -0
  190. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xBand.d.ts +0 -0
  191. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/xLinear.d.ts +0 -0
  192. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yBand.d.ts +0 -0
  193. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/axes/yLinear.d.ts +0 -0
  194. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/background.d.ts +0 -0
  195. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/backgroundColor/index.d.ts +0 -0
  196. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/color.d.ts +0 -0
  197. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/color/index.d.ts +0 -0
  198. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairLine.d.ts +0 -0
  199. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/horizontalCrosshairRect.d.ts +0 -0
  200. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/index.d.ts +0 -0
  201. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairLine.d.ts +0 -0
  202. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/crosshair/verticalCrosshairRect.d.ts +0 -0
  203. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/dataset.d.ts +0 -0
  204. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/datasetPivot.d.ts +0 -0
  205. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/dataset/index.d.ts +0 -0
  206. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/area.d.ts +0 -0
  207. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/bar.d.ts +0 -0
  208. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/barParallel.d.ts +0 -0
  209. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/column.d.ts +0 -0
  210. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/columnParallel.d.ts +0 -0
  211. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/donut.d.ts +0 -0
  212. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/funnel.d.ts +0 -0
  213. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/line.d.ts +0 -0
  214. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pie.d.ts +0 -0
  215. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/pivot.d.ts +0 -0
  216. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/rose.d.ts +0 -0
  217. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/roseParallel.d.ts +0 -0
  218. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/init/scatter.d.ts +0 -0
  219. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/index.d.ts +0 -0
  220. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/label/label.d.ts +0 -0
  221. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/discreteLegend.d.ts +0 -0
  222. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/index.d.ts +0 -0
  223. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/legend/pivotDiscreteLegend.d.ts +0 -0
  224. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/areaStyle.d.ts +0 -0
  225. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/barStyle.d.ts +0 -0
  226. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/index.d.ts +0 -0
  227. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/lineStyle.d.ts +0 -0
  228. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointState.d.ts +0 -0
  229. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/markStyle/pointStyle.d.ts +0 -0
  230. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/index.d.ts +0 -0
  231. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/percent/percent.d.ts +0 -0
  232. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/index.d.ts +0 -0
  233. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotAdapter.d.ts +0 -0
  234. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotColumnDimensions.d.ts +0 -0
  235. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotGridStyle.d.ts +0 -0
  236. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotIndicators.d.ts +0 -0
  237. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/pivotChart/pivotRowDimensions.d.ts +0 -0
  238. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/index.d.ts +0 -0
  239. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stack.d.ts +0 -0
  240. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/stack/stackCornerRadius.d.ts +0 -0
  241. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/index.d.ts +0 -0
  242. /package/dist/pipeline/spec/{pipes/vchart → chart/pipes}/tooltip/tooltip.d.ts +0 -0
  243. /package/dist/pipeline/{constant.d.ts → utils/constant.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import type { Locale } from '../../i18n';
3
- import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, Theme, Tooltip } from '../../properties';
3
+ import type { BackgroundColor, Color, Dataset, Dimensions, Label, Legend, MeasureTree, Theme, Tooltip } from '../../properties';
4
4
  /**
5
5
  * 饼图类型定义
6
6
  * @description 饼图,适用于展示单一维度数据的占比关系,通过扇形面积大小表示各类别占比
@@ -40,10 +40,10 @@ export interface Pie {
40
40
  /**
41
41
  * 指标
42
42
  * @description 饼图的所有指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
43
- * @type {Measures}
43
+ * @type {DimensionTree}
44
44
  * @example [{id: 'value', alias: '数值占比', format: 'percent'}]
45
45
  */
46
- measures?: Measures;
46
+ measures?: MeasureTree;
47
47
  /**
48
48
  * 图表的背景颜色
49
49
  * @default transparent 默认为透明背景
@@ -89,59 +89,20 @@ export interface Pie {
89
89
  export declare const zPie: z.ZodObject<{
90
90
  chartType: z.ZodLiteral<"pie">;
91
91
  dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
92
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
92
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
93
93
  id: z.ZodString;
94
94
  alias: z.ZodOptional<z.ZodString>;
95
- visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
95
+ location: z.ZodDefault<z.ZodEnum<{
97
96
  dimension: "dimension";
98
97
  rowDimension: "rowDimension";
99
98
  columnDimension: "columnDimension";
100
- }>>>;
101
- }, z.core.$strip>>>>;
102
- measures: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
103
- id: z.ZodString;
104
- alias: z.ZodOptional<z.ZodString>;
105
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
106
- id: z.ZodString;
107
- alias: z.ZodOptional<z.ZodString>;
108
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
109
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
110
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
111
- number: "number";
112
- percent: "percent";
113
- permille: "permille";
114
- scientific: "scientific";
115
- }>>>;
116
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
117
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
118
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
119
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
120
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
121
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
122
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
123
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
124
- morePrecision: "morePrecision";
125
- lessPrecision: "lessPrecision";
126
- }>>>;
127
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
128
- floor: "floor";
129
- ceil: "ceil";
130
- expand: "expand";
131
- trunc: "trunc";
132
- halfCeil: "halfCeil";
133
- halfFloor: "halfFloor";
134
- halfExpand: "halfExpand";
135
- halfTrunc: "halfTrunc";
136
- halfEven: "halfEven";
137
- }>>>;
138
- }, z.core.$strip>>>>;
139
- }, z.core.$strip>]>>>;
140
- }, z.core.$strip>, z.ZodObject<{
99
+ }>>;
100
+ }, z.core.$strip>>>;
101
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
141
102
  id: z.ZodString;
142
103
  alias: z.ZodOptional<z.ZodString>;
143
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
144
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
104
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
105
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
145
106
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
146
107
  number: "number";
147
108
  percent: "percent";
@@ -170,8 +131,8 @@ export declare const zPie: z.ZodObject<{
170
131
  halfTrunc: "halfTrunc";
171
132
  halfEven: "halfEven";
172
133
  }>>>;
173
- }, z.core.$strip>>>>;
174
- }, z.core.$strip>]>>>>;
134
+ }, z.core.$strip>>>;
135
+ }, z.core.$strip>]>>>;
175
136
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
176
137
  color: z.ZodOptional<z.ZodObject<{
177
138
  colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1 +1 @@
1
- export type { PivotTable } from './pivotTable';
1
+ export * from './pivotTable';
@@ -1,5 +1,7 @@
1
- import type { Locale } from '../../i18n';
2
- import type { BackgroundColor, Dataset, Dimensions, Measures, Theme } from '../../properties';
1
+ import { z } from 'zod';
2
+ import { type Locale } from '../../i18n';
3
+ import type { Measures } from '../../properties';
4
+ import { type BackgroundColor, type Dataset, type Dimensions, type Theme } from '../../properties';
3
5
  /**
4
6
  * 透视表类型定义
5
7
  * @description 透视表,适用于多维度数据交叉分析场景,可灵活配置行、列维度和指标计算方式
@@ -65,3 +67,57 @@ export interface PivotTable {
65
67
  */
66
68
  locale?: Locale;
67
69
  }
70
+ export declare const zPivotTable: z.ZodObject<{
71
+ chartType: z.ZodLiteral<"pivotTable">;
72
+ dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
73
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
+ id: z.ZodString;
75
+ alias: z.ZodOptional<z.ZodString>;
76
+ location: z.ZodDefault<z.ZodEnum<{
77
+ dimension: "dimension";
78
+ rowDimension: "rowDimension";
79
+ columnDimension: "columnDimension";
80
+ }>>;
81
+ }, z.core.$strip>>>;
82
+ measures: z.ZodOptional<z.ZodArray<z.ZodObject<{
83
+ id: z.ZodString;
84
+ alias: z.ZodOptional<z.ZodString>;
85
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
86
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
87
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
88
+ number: "number";
89
+ percent: "percent";
90
+ permille: "permille";
91
+ scientific: "scientific";
92
+ }>>>;
93
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
94
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
95
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
97
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
98
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
99
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
100
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
101
+ morePrecision: "morePrecision";
102
+ lessPrecision: "lessPrecision";
103
+ }>>>;
104
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
105
+ floor: "floor";
106
+ ceil: "ceil";
107
+ expand: "expand";
108
+ trunc: "trunc";
109
+ halfCeil: "halfCeil";
110
+ halfFloor: "halfFloor";
111
+ halfExpand: "halfExpand";
112
+ halfTrunc: "halfTrunc";
113
+ halfEven: "halfEven";
114
+ }>>>;
115
+ }, z.core.$strip>>>;
116
+ }, z.core.$strip>>>;
117
+ backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
118
+ theme: z.ZodOptional<z.ZodString>;
119
+ locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
120
+ "zh-CN": "zh-CN";
121
+ "en-US": "en-US";
122
+ }>>>;
123
+ }, z.core.$strip>;
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { type Locale } from '../../i18n';
3
- import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Measures, type Theme, type Tooltip } from '../../properties';
3
+ import type { MeasureTree } from '../../properties';
4
+ import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
4
5
  /**
5
6
  * 堆叠玫瑰图类型定义
6
7
  * @description 堆叠玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
@@ -43,7 +44,7 @@ export interface Rose {
43
44
  * @type {Measures}
44
45
  * @example [{id: 'value', alias: '数值'}]
45
46
  */
46
- measures?: Measures;
47
+ measures?: MeasureTree;
47
48
  /**
48
49
  * 图表的背景颜色
49
50
  * @default transparent 默认为透明背景
@@ -89,59 +90,20 @@ export interface Rose {
89
90
  export declare const zRose: z.ZodObject<{
90
91
  chartType: z.ZodLiteral<"rose">;
91
92
  dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
92
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
93
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
93
94
  id: z.ZodString;
94
95
  alias: z.ZodOptional<z.ZodString>;
95
- visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
96
+ location: z.ZodDefault<z.ZodEnum<{
97
97
  dimension: "dimension";
98
98
  rowDimension: "rowDimension";
99
99
  columnDimension: "columnDimension";
100
- }>>>;
101
- }, z.core.$strip>>>>;
102
- measures: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
103
- id: z.ZodString;
104
- alias: z.ZodOptional<z.ZodString>;
105
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
106
- id: z.ZodString;
107
- alias: z.ZodOptional<z.ZodString>;
108
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
109
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
110
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
111
- number: "number";
112
- percent: "percent";
113
- permille: "permille";
114
- scientific: "scientific";
115
- }>>>;
116
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
117
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
118
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
119
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
120
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
121
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
122
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
123
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
124
- morePrecision: "morePrecision";
125
- lessPrecision: "lessPrecision";
126
- }>>>;
127
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
128
- floor: "floor";
129
- ceil: "ceil";
130
- expand: "expand";
131
- trunc: "trunc";
132
- halfCeil: "halfCeil";
133
- halfFloor: "halfFloor";
134
- halfExpand: "halfExpand";
135
- halfTrunc: "halfTrunc";
136
- halfEven: "halfEven";
137
- }>>>;
138
- }, z.core.$strip>>>>;
139
- }, z.core.$strip>]>>>;
140
- }, z.core.$strip>, z.ZodObject<{
100
+ }>>;
101
+ }, z.core.$strip>>>;
102
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
141
103
  id: z.ZodString;
142
104
  alias: z.ZodOptional<z.ZodString>;
143
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
144
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
105
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
106
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
145
107
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
146
108
  number: "number";
147
109
  percent: "percent";
@@ -170,8 +132,8 @@ export declare const zRose: z.ZodObject<{
170
132
  halfTrunc: "halfTrunc";
171
133
  halfEven: "halfEven";
172
134
  }>>>;
173
- }, z.core.$strip>>>>;
174
- }, z.core.$strip>]>>>>;
135
+ }, z.core.$strip>>>;
136
+ }, z.core.$strip>]>>>;
175
137
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
176
138
  color: z.ZodOptional<z.ZodObject<{
177
139
  colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { type Locale } from '../../i18n';
3
- import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Measures, type Theme, type Tooltip } from '../../properties';
3
+ import type { MeasureTree } from '../../properties';
4
+ import { type BackgroundColor, type Color, type Dataset, type Dimensions, type Label, type Legend, type Theme, type Tooltip } from '../../properties';
4
5
  /**
5
6
  * 分组玫瑰图类型定义
6
7
  * @description 分组玫瑰图,适用于多维度数据对比场景,通过极坐标系下的扇形弧度和半径展示数据大小
@@ -40,10 +41,10 @@ export interface RoseParallel {
40
41
  /**
41
42
  * 指标
42
43
  * @description 玫瑰图的指标会自动合并为一个指标, 映射到半径轴, 存在多个指标时, 指标名称会与其余维度合并, 作为图例项展示.
43
- * @type {Measures}
44
+ * @type {MeasureTree}
44
45
  * @example [{id: 'value', alias: '数值'}]
45
46
  */
46
- measures?: Measures;
47
+ measures?: MeasureTree;
47
48
  /**
48
49
  * 图表的背景颜色
49
50
  * @default transparent 默认为透明背景
@@ -89,59 +90,20 @@ export interface RoseParallel {
89
90
  export declare const zRoseParallel: z.ZodObject<{
90
91
  chartType: z.ZodLiteral<"roseParallel">;
91
92
  dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
92
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
93
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
93
94
  id: z.ZodString;
94
95
  alias: z.ZodOptional<z.ZodString>;
95
- visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
96
+ location: z.ZodDefault<z.ZodEnum<{
97
97
  dimension: "dimension";
98
98
  rowDimension: "rowDimension";
99
99
  columnDimension: "columnDimension";
100
- }>>>;
101
- }, z.core.$strip>>>>;
102
- measures: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
103
- id: z.ZodString;
104
- alias: z.ZodOptional<z.ZodString>;
105
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
106
- id: z.ZodString;
107
- alias: z.ZodOptional<z.ZodString>;
108
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
109
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
110
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
111
- number: "number";
112
- percent: "percent";
113
- permille: "permille";
114
- scientific: "scientific";
115
- }>>>;
116
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
117
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
118
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
119
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
120
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
121
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
122
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
123
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
124
- morePrecision: "morePrecision";
125
- lessPrecision: "lessPrecision";
126
- }>>>;
127
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
128
- floor: "floor";
129
- ceil: "ceil";
130
- expand: "expand";
131
- trunc: "trunc";
132
- halfCeil: "halfCeil";
133
- halfFloor: "halfFloor";
134
- halfExpand: "halfExpand";
135
- halfTrunc: "halfTrunc";
136
- halfEven: "halfEven";
137
- }>>>;
138
- }, z.core.$strip>>>>;
139
- }, z.core.$strip>]>>>;
140
- }, z.core.$strip>, z.ZodObject<{
100
+ }>>;
101
+ }, z.core.$strip>>>;
102
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
141
103
  id: z.ZodString;
142
104
  alias: z.ZodOptional<z.ZodString>;
143
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
144
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
105
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
106
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
145
107
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
146
108
  number: "number";
147
109
  percent: "percent";
@@ -170,8 +132,8 @@ export declare const zRoseParallel: z.ZodObject<{
170
132
  halfTrunc: "halfTrunc";
171
133
  halfEven: "halfEven";
172
134
  }>>>;
173
- }, z.core.$strip>>>>;
174
- }, z.core.$strip>]>>>>;
135
+ }, z.core.$strip>>>;
136
+ }, z.core.$strip>]>>>;
175
137
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
176
138
  color: z.ZodOptional<z.ZodObject<{
177
139
  colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1,5 +1,5 @@
1
1
  import type { Locale } from '../../i18n';
2
- import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, Measures, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis } from '../../properties';
2
+ import type { AnnotationArea, AnnotationHorizontalLine, AnnotationPoint, AnnotationVerticalLine, BackgroundColor, Color, Dataset, Dimensions, Label, Legend, PointStyle, Theme, Tooltip, CrosshairLine, YLinearAxis, XLinearAxis, MeasureTree } from '../../properties';
3
3
  import { z } from 'zod';
4
4
  /**
5
5
  * 散点图类型定义
@@ -38,10 +38,10 @@ export interface Scatter {
38
38
  /**
39
39
  * 指标
40
40
  * @description 散点图的第一个指标字段会放至X轴, 其余指标会进行合并, 映射至Y轴
41
- * @type {Measures}
41
+ * @type {DimensionTree}
42
42
  * @example [{id: "value", alias: "数值"}]
43
43
  */
44
- measures?: Measures;
44
+ measures?: MeasureTree;
45
45
  /**
46
46
  * 图表的背景颜色
47
47
  * @default transparent 默认为透明背景
@@ -131,59 +131,20 @@ export interface Scatter {
131
131
  export declare const zScatter: z.ZodObject<{
132
132
  chartType: z.ZodLiteral<"scatter">;
133
133
  dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
134
- dimensions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
134
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
135
135
  id: z.ZodString;
136
136
  alias: z.ZodOptional<z.ZodString>;
137
- visible: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
138
- location: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
137
+ location: z.ZodDefault<z.ZodEnum<{
139
138
  dimension: "dimension";
140
139
  rowDimension: "rowDimension";
141
140
  columnDimension: "columnDimension";
142
- }>>>;
143
- }, z.core.$strip>>>>;
144
- measures: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
145
- id: z.ZodString;
146
- alias: z.ZodOptional<z.ZodString>;
147
- children: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject</*elided*/ any, z.core.$strip>, z.ZodObject<{
148
- id: z.ZodString;
149
- alias: z.ZodOptional<z.ZodString>;
150
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
151
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
152
- type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
153
- number: "number";
154
- percent: "percent";
155
- permille: "permille";
156
- scientific: "scientific";
157
- }>>>;
158
- ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
159
- symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
160
- thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
161
- prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
162
- suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
163
- fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
164
- significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
165
- roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
166
- morePrecision: "morePrecision";
167
- lessPrecision: "lessPrecision";
168
- }>>>;
169
- roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
170
- floor: "floor";
171
- ceil: "ceil";
172
- expand: "expand";
173
- trunc: "trunc";
174
- halfCeil: "halfCeil";
175
- halfFloor: "halfFloor";
176
- halfExpand: "halfExpand";
177
- halfTrunc: "halfTrunc";
178
- halfEven: "halfEven";
179
- }>>>;
180
- }, z.core.$strip>>>>;
181
- }, z.core.$strip>]>>>;
182
- }, z.core.$strip>, z.ZodObject<{
141
+ }>>;
142
+ }, z.core.$strip>>>;
143
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
183
144
  id: z.ZodString;
184
145
  alias: z.ZodOptional<z.ZodString>;
185
- autoFormat: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
186
- format: z.ZodOptional<z.ZodDefault<z.ZodOptional<z.ZodObject<{
146
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
147
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
187
148
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
188
149
  number: "number";
189
150
  percent: "percent";
@@ -212,8 +173,8 @@ export declare const zScatter: z.ZodObject<{
212
173
  halfTrunc: "halfTrunc";
213
174
  halfEven: "halfEven";
214
175
  }>>>;
215
- }, z.core.$strip>>>>;
216
- }, z.core.$strip>]>>>>;
176
+ }, z.core.$strip>>>;
177
+ }, z.core.$strip>]>>>;
217
178
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
218
179
  color: z.ZodOptional<z.ZodObject<{
219
180
  colorScheme: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1 +1 @@
1
- export type { Table } from './table';
1
+ export * from './table';
@@ -1,5 +1,7 @@
1
- import type { Locale } from '../../i18n';
2
- import type { BackgroundColor, Dataset, Dimensions, Measures, Theme } from '../../properties';
1
+ import { z } from 'zod';
2
+ import { type Locale } from '../../i18n';
3
+ import type { DimensionTree, MeasureTree } from '../../properties';
4
+ import { type BackgroundColor, type Dataset, type Theme } from '../../properties';
3
5
  /**
4
6
  * 表格类型定义
5
7
  * @description 表格,适用于详细数据展示场景,行列分明,便于查看具体数值
@@ -35,14 +37,14 @@ export interface Table {
35
37
  * @type {Dimensions}
36
38
  * @example [{id: "name", alias: "名称"}]
37
39
  */
38
- dimensions?: Dimensions;
40
+ dimensions?: DimensionTree;
39
41
  /**
40
42
  * 指标
41
43
  * @description 表格的每个指标会对应一行, 并且天生支持指标组合.
42
44
  * @type {Measures}
43
45
  * @example [{id: "value", alias: "数值"}]
44
46
  */
45
- measures?: Measures;
47
+ measures?: MeasureTree;
46
48
  /**
47
49
  * 图表的背景颜色
48
50
  * @default transparent 默认为透明背景
@@ -65,3 +67,57 @@ export interface Table {
65
67
  */
66
68
  locale?: Locale;
67
69
  }
70
+ export declare const zTable: z.ZodObject<{
71
+ chartType: z.ZodLiteral<"table">;
72
+ dataset: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodAny>>>;
73
+ dimensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
+ id: z.ZodString;
75
+ alias: z.ZodOptional<z.ZodString>;
76
+ location: z.ZodDefault<z.ZodEnum<{
77
+ dimension: "dimension";
78
+ rowDimension: "rowDimension";
79
+ columnDimension: "columnDimension";
80
+ }>>;
81
+ }, z.core.$strip>>>;
82
+ measures: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodType<import("../..").MeasureGroup, unknown, z.core.$ZodTypeInternals<import("../..").MeasureGroup, unknown>>, z.ZodObject<{
83
+ id: z.ZodString;
84
+ alias: z.ZodOptional<z.ZodString>;
85
+ autoFormat: z.ZodDefault<z.ZodBoolean>;
86
+ format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
87
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
88
+ number: "number";
89
+ percent: "percent";
90
+ permille: "permille";
91
+ scientific: "scientific";
92
+ }>>>;
93
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
94
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
95
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
96
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
97
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
98
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
99
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
100
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
101
+ morePrecision: "morePrecision";
102
+ lessPrecision: "lessPrecision";
103
+ }>>>;
104
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
105
+ floor: "floor";
106
+ ceil: "ceil";
107
+ expand: "expand";
108
+ trunc: "trunc";
109
+ halfCeil: "halfCeil";
110
+ halfFloor: "halfFloor";
111
+ halfExpand: "halfExpand";
112
+ halfTrunc: "halfTrunc";
113
+ halfEven: "halfEven";
114
+ }>>>;
115
+ }, z.core.$strip>>>;
116
+ }, z.core.$strip>]>>>;
117
+ backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
118
+ theme: z.ZodOptional<z.ZodString>;
119
+ locale: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
120
+ "zh-CN": "zh-CN";
121
+ "en-US": "en-US";
122
+ }>>>;
123
+ }, z.core.$strip>;
@@ -1,4 +1,28 @@
1
1
  import { z } from 'zod';
2
+ export declare const zTableConfig: z.ZodObject<{
3
+ borderColor: z.ZodOptional<z.ZodString>;
4
+ bodyFontSize: z.ZodOptional<z.ZodNumber>;
5
+ bodyFontColor: z.ZodOptional<z.ZodString>;
6
+ bodyBackgroundColor: z.ZodOptional<z.ZodString>;
7
+ hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
8
+ headerFontSize: z.ZodOptional<z.ZodNumber>;
9
+ headerFontColor: z.ZodOptional<z.ZodString>;
10
+ headerBackgroundColor: z.ZodOptional<z.ZodString>;
11
+ hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
12
+ selectedBorderColor: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ export declare const zPivotTableConfig: z.ZodObject<{
15
+ borderColor: z.ZodOptional<z.ZodString>;
16
+ bodyFontSize: z.ZodOptional<z.ZodNumber>;
17
+ bodyFontColor: z.ZodOptional<z.ZodString>;
18
+ bodyBackgroundColor: z.ZodOptional<z.ZodString>;
19
+ hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
20
+ headerFontSize: z.ZodOptional<z.ZodNumber>;
21
+ headerFontColor: z.ZodOptional<z.ZodString>;
22
+ headerBackgroundColor: z.ZodOptional<z.ZodString>;
23
+ hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
24
+ selectedBorderColor: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$strip>;
2
26
  export declare const zLineConfig: z.ZodObject<{
3
27
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
4
28
  label: z.ZodOptional<z.ZodObject<{
@@ -1939,8 +1963,30 @@ export declare const zFunnelConfig: z.ZodObject<{
1939
1963
  }, z.core.$strip>>;
1940
1964
  }, z.core.$strip>;
1941
1965
  export declare const zConfig: z.ZodObject<{
1942
- table: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
1943
- pivotTable: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
1966
+ table: z.ZodOptional<z.ZodObject<{
1967
+ borderColor: z.ZodOptional<z.ZodString>;
1968
+ bodyFontSize: z.ZodOptional<z.ZodNumber>;
1969
+ bodyFontColor: z.ZodOptional<z.ZodString>;
1970
+ bodyBackgroundColor: z.ZodOptional<z.ZodString>;
1971
+ hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
1972
+ headerFontSize: z.ZodOptional<z.ZodNumber>;
1973
+ headerFontColor: z.ZodOptional<z.ZodString>;
1974
+ headerBackgroundColor: z.ZodOptional<z.ZodString>;
1975
+ hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
1976
+ selectedBorderColor: z.ZodOptional<z.ZodString>;
1977
+ }, z.core.$strip>>;
1978
+ pivotTable: z.ZodOptional<z.ZodObject<{
1979
+ borderColor: z.ZodOptional<z.ZodString>;
1980
+ bodyFontSize: z.ZodOptional<z.ZodNumber>;
1981
+ bodyFontColor: z.ZodOptional<z.ZodString>;
1982
+ bodyBackgroundColor: z.ZodOptional<z.ZodString>;
1983
+ hoverBodyBackgroundColor: z.ZodOptional<z.ZodString>;
1984
+ headerFontSize: z.ZodOptional<z.ZodNumber>;
1985
+ headerFontColor: z.ZodOptional<z.ZodString>;
1986
+ headerBackgroundColor: z.ZodOptional<z.ZodString>;
1987
+ hoverHeaderBackgroundColor: z.ZodOptional<z.ZodString>;
1988
+ selectedBorderColor: z.ZodOptional<z.ZodString>;
1989
+ }, z.core.$strip>>;
1944
1990
  line: z.ZodOptional<z.ZodObject<{
1945
1991
  backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodDefault<z.ZodString>>>;
1946
1992
  label: z.ZodOptional<z.ZodObject<{
@@ -3881,6 +3927,8 @@ export declare const zConfig: z.ZodObject<{
3881
3927
  }, z.core.$strip>>;
3882
3928
  }, z.core.$strip>>;
3883
3929
  }, z.core.$strip>;
3930
+ export type TableConfig = z.infer<typeof zTableConfig>;
3931
+ export type PivotTableConfig = z.infer<typeof zPivotTableConfig>;
3884
3932
  export type LineConfig = z.infer<typeof zLineConfig>;
3885
3933
  export type ColumnConfig = z.infer<typeof zColumnConfig>;
3886
3934
  export type ColumnParallelConfig = z.infer<typeof zColumnParallelConfig>;