@visactor/vseed 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/dist/cjs/index.cjs +1 -1
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/esm/builder/builder/builder.d.ts +3372 -108
  4. package/dist/esm/pipeline/advanced/chart/pipes/encoding/{encodingAdapter.d.ts → adapter/encodingAdapter.d.ts} +1 -1
  5. package/dist/esm/pipeline/advanced/chart/pipes/encoding/{encodingAdapter.js → adapter/encodingAdapter.js} +1 -1
  6. package/dist/esm/pipeline/advanced/chart/pipes/encoding/adapter/encodingAdapter.js.map +1 -0
  7. package/dist/esm/pipeline/advanced/chart/pipes/encoding/adapter/index.d.ts +1 -0
  8. package/dist/esm/pipeline/advanced/chart/pipes/encoding/adapter/index.js +2 -0
  9. package/dist/esm/pipeline/advanced/chart/pipes/encoding/bar.js +4 -6
  10. package/dist/esm/pipeline/advanced/chart/pipes/encoding/bar.js.map +1 -1
  11. package/dist/esm/pipeline/advanced/chart/pipes/encoding/color/addColorToEncoding.d.ts +8 -0
  12. package/dist/esm/pipeline/advanced/chart/pipes/encoding/color/addColorToEncoding.js +13 -0
  13. package/dist/esm/pipeline/advanced/chart/pipes/encoding/color/addColorToEncoding.js.map +1 -0
  14. package/dist/esm/pipeline/advanced/chart/pipes/encoding/color/index.d.ts +1 -0
  15. package/dist/esm/pipeline/advanced/chart/pipes/encoding/color/index.js +2 -0
  16. package/dist/esm/pipeline/advanced/chart/pipes/encoding/column.js +4 -6
  17. package/dist/esm/pipeline/advanced/chart/pipes/encoding/column.js.map +1 -1
  18. package/dist/esm/pipeline/advanced/chart/pipes/encoding/dualAxis.js +4 -6
  19. package/dist/esm/pipeline/advanced/chart/pipes/encoding/dualAxis.js.map +1 -1
  20. package/dist/esm/pipeline/advanced/chart/pipes/encoding/funnel.js +4 -6
  21. package/dist/esm/pipeline/advanced/chart/pipes/encoding/funnel.js.map +1 -1
  22. package/dist/esm/pipeline/advanced/chart/pipes/encoding/heatmap.js +4 -6
  23. package/dist/esm/pipeline/advanced/chart/pipes/encoding/heatmap.js.map +1 -1
  24. package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.d.ts +1 -1
  25. package/dist/esm/pipeline/advanced/chart/pipes/encoding/index.js +1 -1
  26. package/dist/esm/pipeline/advanced/chart/pipes/encoding/line.js +4 -6
  27. package/dist/esm/pipeline/advanced/chart/pipes/encoding/line.js.map +1 -1
  28. package/dist/esm/pipeline/advanced/chart/pipes/encoding/pie.js +4 -6
  29. package/dist/esm/pipeline/advanced/chart/pipes/encoding/pie.js.map +1 -1
  30. package/dist/esm/pipeline/advanced/chart/pipes/encoding/radar.js +4 -6
  31. package/dist/esm/pipeline/advanced/chart/pipes/encoding/radar.js.map +1 -1
  32. package/dist/esm/pipeline/advanced/chart/pipes/encoding/rose.js +4 -6
  33. package/dist/esm/pipeline/advanced/chart/pipes/encoding/rose.js.map +1 -1
  34. package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js +2 -4
  35. package/dist/esm/pipeline/advanced/chart/pipes/encoding/scatter.js.map +1 -1
  36. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js +1 -3
  37. package/dist/esm/pipeline/spec/chart/pipeline/heatmap.js.map +1 -1
  38. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js +3 -3
  39. package/dist/esm/pipeline/spec/chart/pipeline/scatter.js.map +1 -1
  40. package/dist/esm/pipeline/spec/chart/pipes/axes/angle.js +1 -0
  41. package/dist/esm/pipeline/spec/chart/pipes/axes/angle.js.map +1 -1
  42. package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js +1 -0
  43. package/dist/esm/pipeline/spec/chart/pipes/axes/radius.js.map +1 -1
  44. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js +9 -3
  45. package/dist/esm/pipeline/spec/chart/pipes/axes/xLinear.js.map +1 -1
  46. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js +9 -3
  47. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinear.js.map +1 -1
  48. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js +8 -3
  49. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearPrimary.js.map +1 -1
  50. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js +8 -3
  51. package/dist/esm/pipeline/spec/chart/pipes/axes/yLinearSecondary.js.map +1 -1
  52. package/dist/esm/pipeline/spec/chart/pipes/label/index.d.ts +1 -1
  53. package/dist/esm/pipeline/spec/chart/pipes/label/index.js +2 -2
  54. package/dist/esm/pipeline/spec/chart/pipes/label/label.d.ts +5 -1
  55. package/dist/esm/pipeline/spec/chart/pipes/label/label.js +59 -38
  56. package/dist/esm/pipeline/spec/chart/pipes/label/label.js.map +1 -1
  57. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js +15 -52
  58. package/dist/esm/pipeline/spec/chart/pipes/label/labelDualAxis.js.map +1 -1
  59. package/dist/esm/pipeline/spec/chart/pipes/label/{labelColorInversion.d.ts → labelScatter.d.ts} +1 -1
  60. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js +19 -0
  61. package/dist/esm/pipeline/spec/chart/pipes/label/labelScatter.js.map +1 -0
  62. package/dist/esm/pipeline/spec/chart/pipes/legend/colorLegend.js +3 -3
  63. package/dist/esm/pipeline/spec/chart/pipes/legend/colorLegend.js.map +1 -1
  64. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js +4 -4
  65. package/dist/esm/pipeline/spec/chart/pipes/legend/discreteLegend.js.map +1 -1
  66. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js +3 -3
  67. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotColorLegend.js.map +1 -1
  68. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js +4 -4
  69. package/dist/esm/pipeline/spec/chart/pipes/legend/pivotDiscreteLegend.js.map +1 -1
  70. package/dist/esm/pipeline/spec/chart/pipes/series/series.js +1 -0
  71. package/dist/esm/pipeline/spec/chart/pipes/series/series.js.map +1 -1
  72. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.d.ts +3 -3
  73. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js +13 -30
  74. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltip.js.map +1 -1
  75. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js +6 -6
  76. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipDualAxis.js.map +1 -1
  77. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js +6 -18
  78. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipHeatmap.js.map +1 -1
  79. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js +6 -18
  80. package/dist/esm/pipeline/spec/chart/pipes/tooltip/tooltipScatter.js.map +1 -1
  81. package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js +8 -11
  82. package/dist/esm/pipeline/spec/table/pipes/columns/measuresToColumns.js.map +1 -1
  83. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js +8 -13
  84. package/dist/esm/pipeline/spec/table/pipes/indicators/pivotIndicators.js.map +1 -1
  85. package/dist/esm/pipeline/utils/constant.d.ts +1 -0
  86. package/dist/esm/pipeline/utils/constant.js +2 -1
  87. package/dist/esm/pipeline/utils/constant.js.map +1 -1
  88. package/dist/esm/pipeline/utils/format/createFormatter.d.ts +1 -1
  89. package/dist/esm/pipeline/utils/format/createFormatter.js +3 -2
  90. package/dist/esm/pipeline/utils/format/createFormatter.js.map +1 -1
  91. package/dist/esm/pipeline/utils/format/createFormatterByMeasure.d.ts +2 -0
  92. package/dist/esm/pipeline/utils/format/createFormatterByMeasure.js +13 -0
  93. package/dist/esm/pipeline/utils/format/createFormatterByMeasure.js.map +1 -0
  94. package/dist/esm/pipeline/utils/format/createNumFormatter.d.ts +1 -1
  95. package/dist/esm/pipeline/utils/format/createNumFormatter.js.map +1 -1
  96. package/dist/esm/pipeline/utils/format/index.d.ts +1 -0
  97. package/dist/esm/pipeline/utils/format/index.js +1 -0
  98. package/dist/esm/theme/dark.js +9 -3
  99. package/dist/esm/theme/dark.js.map +1 -1
  100. package/dist/esm/theme/light.js +27 -6
  101. package/dist/esm/theme/light.js.map +1 -1
  102. package/dist/esm/types/advancedVSeed.d.ts +2334 -36
  103. package/dist/esm/types/chartType/area/zArea.d.ts +99 -1
  104. package/dist/esm/types/chartType/areaPercent/zAreaPercent.d.ts +99 -1
  105. package/dist/esm/types/chartType/bar/zBar.d.ts +99 -1
  106. package/dist/esm/types/chartType/barParallel/zBarParallel.d.ts +99 -1
  107. package/dist/esm/types/chartType/barPercent/zBarPercent.d.ts +99 -1
  108. package/dist/esm/types/chartType/column/zColumn.d.ts +99 -1
  109. package/dist/esm/types/chartType/columnParallel/zColumnParallel.d.ts +99 -1
  110. package/dist/esm/types/chartType/columnPercent/zColumnPercent.d.ts +99 -1
  111. package/dist/esm/types/chartType/donut/zDonut.d.ts +69 -1
  112. package/dist/esm/types/chartType/dualAxis/zDualAxis.d.ts +309 -1
  113. package/dist/esm/types/chartType/funnel/zFunnel.d.ts +68 -0
  114. package/dist/esm/types/chartType/heatmap/zHeatmap.d.ts +68 -0
  115. package/dist/esm/types/chartType/line/zLine.d.ts +99 -1
  116. package/dist/esm/types/chartType/pie/zPie.d.ts +69 -1
  117. package/dist/esm/types/chartType/pivotTable/zPivotTable.d.ts +30 -0
  118. package/dist/esm/types/chartType/radar/zRadar.d.ts +69 -1
  119. package/dist/esm/types/chartType/rose/zRose.d.ts +69 -1
  120. package/dist/esm/types/chartType/roseParallel/zRoseParallel.d.ts +69 -1
  121. package/dist/esm/types/chartType/scatter/zScatter.d.ts +249 -1
  122. package/dist/esm/types/chartType/table/zTable.d.ts +30 -0
  123. package/dist/esm/types/properties/config/axes/bandAxis.d.ts +146 -82
  124. package/dist/esm/types/properties/config/axes/bandAxis.js +0 -48
  125. package/dist/esm/types/properties/config/axes/index.d.ts +4 -3
  126. package/dist/esm/types/properties/config/axes/index.js +2 -3
  127. package/dist/esm/types/properties/config/axes/linearAxis.d.ts +149 -84
  128. package/dist/esm/types/properties/config/axes/linearAxis.js +0 -45
  129. package/dist/esm/types/properties/config/axes/zBandAxis.d.ts +79 -0
  130. package/dist/esm/types/properties/config/axes/{axis.js → zBandAxis.js} +5 -11
  131. package/dist/esm/types/properties/config/axes/zBandAxis.js.map +1 -0
  132. package/dist/esm/types/properties/config/axes/zLinearAxis.d.ts +141 -0
  133. package/dist/esm/types/properties/config/axes/zLinearAxis.js +47 -0
  134. package/dist/esm/types/properties/config/axes/zLinearAxis.js.map +1 -0
  135. package/dist/esm/types/properties/config/config.d.ts +2304 -37
  136. package/dist/esm/types/properties/config/config.js +1 -2
  137. package/dist/esm/types/properties/config/config.js.map +1 -1
  138. package/dist/esm/types/properties/config/label/label.d.ts +37 -0
  139. package/dist/esm/types/properties/config/label/zLabel.d.ts +38 -0
  140. package/dist/esm/types/properties/config/label/zLabel.js +11 -1
  141. package/dist/esm/types/properties/config/label/zLabel.js.map +1 -1
  142. package/dist/esm/types/properties/config/legend/legend.d.ts +6 -2
  143. package/dist/esm/types/properties/config/legend/legend.js +1 -1
  144. package/dist/esm/types/properties/config/legend/legend.js.map +1 -1
  145. package/dist/esm/types/properties/format/numFormat.js.map +1 -0
  146. package/dist/esm/types/properties/index.d.ts +1 -0
  147. package/dist/esm/types/properties/index.js +1 -0
  148. package/dist/esm/types/properties/measures/index.d.ts +0 -1
  149. package/dist/esm/types/properties/measures/index.js +0 -1
  150. package/dist/esm/types/properties/measures/measures.d.ts +6 -2
  151. package/dist/esm/types/properties/measures/zDualMeasures.d.ts +240 -0
  152. package/dist/esm/types/properties/measures/zMeasures.d.ts +90 -0
  153. package/dist/esm/types/properties/measures/zMeasures.js +2 -1
  154. package/dist/esm/types/properties/measures/zMeasures.js.map +1 -1
  155. package/dist/esm/types/properties/measures/zScatterMeasures.d.ts +240 -0
  156. package/dist/esm/types/properties/theme/customTheme.d.ts +2304 -36
  157. package/dist/esm/types/zVseed.d.ts +2090 -116
  158. package/dist/umd/index.js +270 -335
  159. package/dist/umd/index.js.map +1 -1
  160. package/package.json +1 -1
  161. package/dist/esm/pipeline/advanced/chart/pipes/encoding/encodingAdapter.js.map +0 -1
  162. package/dist/esm/pipeline/spec/chart/pipes/label/labelColorInversion.js +0 -13
  163. package/dist/esm/pipeline/spec/chart/pipes/label/labelColorInversion.js.map +0 -1
  164. package/dist/esm/types/properties/config/axes/axis.d.ts +0 -255
  165. package/dist/esm/types/properties/config/axes/axis.js.map +0 -1
  166. package/dist/esm/types/properties/config/axes/bandAxis.js.map +0 -1
  167. package/dist/esm/types/properties/config/axes/linearAxis.js.map +0 -1
  168. package/dist/esm/types/properties/measures/format/numFormat.js.map +0 -1
  169. /package/dist/esm/types/properties/{measures/format → format}/formatter.d.ts +0 -0
  170. /package/dist/esm/types/properties/{measures/format → format}/formatter.js +0 -0
  171. /package/dist/esm/types/properties/{measures/format → format}/index.d.ts +0 -0
  172. /package/dist/esm/types/properties/{measures/format → format}/index.js +0 -0
  173. /package/dist/esm/types/properties/{measures/format → format}/numFormat.d.ts +0 -0
  174. /package/dist/esm/types/properties/{measures/format → format}/numFormat.js +0 -0
@@ -4,6 +4,36 @@ export declare const zMeasure: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  alias: z.ZodOptional<z.ZodString>;
6
6
  autoFormat: z.ZodDefault<z.ZodBoolean>;
7
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
8
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
9
+ number: "number";
10
+ percent: "percent";
11
+ permille: "permille";
12
+ scientific: "scientific";
13
+ }>>>;
14
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
15
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
16
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
18
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
19
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
20
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
21
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
22
+ morePrecision: "morePrecision";
23
+ lessPrecision: "lessPrecision";
24
+ }>>>;
25
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
26
+ floor: "floor";
27
+ ceil: "ceil";
28
+ expand: "expand";
29
+ trunc: "trunc";
30
+ halfCeil: "halfCeil";
31
+ halfFloor: "halfFloor";
32
+ halfExpand: "halfExpand";
33
+ halfTrunc: "halfTrunc";
34
+ halfEven: "halfEven";
35
+ }>>>;
36
+ }, z.core.$strip>>>;
7
37
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
8
38
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
9
39
  number: "number";
@@ -55,6 +85,36 @@ export declare const zMeasures: z.ZodArray<z.ZodObject<{
55
85
  id: z.ZodString;
56
86
  alias: z.ZodOptional<z.ZodString>;
57
87
  autoFormat: z.ZodDefault<z.ZodBoolean>;
88
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
89
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
90
+ number: "number";
91
+ percent: "percent";
92
+ permille: "permille";
93
+ scientific: "scientific";
94
+ }>>>;
95
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
96
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
97
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
98
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
99
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
100
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
101
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
102
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
103
+ morePrecision: "morePrecision";
104
+ lessPrecision: "lessPrecision";
105
+ }>>>;
106
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
107
+ floor: "floor";
108
+ ceil: "ceil";
109
+ expand: "expand";
110
+ trunc: "trunc";
111
+ halfCeil: "halfCeil";
112
+ halfFloor: "halfFloor";
113
+ halfExpand: "halfExpand";
114
+ halfTrunc: "halfTrunc";
115
+ halfEven: "halfEven";
116
+ }>>>;
117
+ }, z.core.$strip>>>;
58
118
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
59
119
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
60
120
  number: "number";
@@ -105,6 +165,36 @@ export declare const zMeasureTree: z.ZodArray<z.ZodUnion<[z.ZodType<MeasureGroup
105
165
  id: z.ZodString;
106
166
  alias: z.ZodOptional<z.ZodString>;
107
167
  autoFormat: z.ZodDefault<z.ZodBoolean>;
168
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
169
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
170
+ number: "number";
171
+ percent: "percent";
172
+ permille: "permille";
173
+ scientific: "scientific";
174
+ }>>>;
175
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
176
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
177
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
178
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
179
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
180
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
181
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
182
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
183
+ morePrecision: "morePrecision";
184
+ lessPrecision: "lessPrecision";
185
+ }>>>;
186
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
187
+ floor: "floor";
188
+ ceil: "ceil";
189
+ expand: "expand";
190
+ trunc: "trunc";
191
+ halfCeil: "halfCeil";
192
+ halfFloor: "halfFloor";
193
+ halfExpand: "halfExpand";
194
+ halfTrunc: "halfTrunc";
195
+ halfEven: "halfEven";
196
+ }>>>;
197
+ }, z.core.$strip>>>;
108
198
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
109
199
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
110
200
  number: "number";
@@ -1,9 +1,10 @@
1
1
  import { z } from "zod";
2
- import { zNumFormat } from "./format/numFormat.js";
2
+ import { zNumFormat } from "../format/numFormat.js";
3
3
  const zMeasure = z.object({
4
4
  id: z.string(),
5
5
  alias: z.string().optional(),
6
6
  autoFormat: z.boolean().default(true),
7
+ numFormat: zNumFormat["default"]({}),
7
8
  format: zNumFormat["default"]({}),
8
9
  encoding: z["enum"]([
9
10
  'primaryYAxis',
@@ -1 +1 @@
1
- {"version":3,"file":"types/properties/measures/zMeasures.js","sources":["webpack://@visactor/vseed/./src/types/properties/measures/zMeasures.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from './format/numFormat'\nimport type { MeasureGroup } from './measures'\n\nexport const zMeasure = z.object({\n id: z.string(),\n alias: z.string().optional(),\n autoFormat: z.boolean().default(true),\n format: zNumFormat.default({}),\n encoding: z\n .enum([\n 'primaryYAxis',\n 'secondaryYAxis',\n 'xAxis',\n 'yAxis',\n 'angle',\n 'radius',\n 'size',\n 'color',\n 'label',\n 'tooltip',\n 'detail',\n 'column',\n ])\n .optional(),\n parentId: z.string().optional(),\n})\n\nexport const zMeasureGroup: z.ZodType<MeasureGroup> = z.object({\n id: z.string(),\n alias: z.string().optional(),\n get children() {\n return z.array(zMeasureGroup.or(zMeasure)).optional()\n },\n})\n\nexport const zMeasures = z.array(zMeasure)\nexport const zMeasureTree = z.array(zMeasureGroup.or(zMeasure))\n"],"names":["zMeasure","z","zNumFormat","zMeasureGroup","zMeasures","zMeasureTree"],"mappings":";;AAIO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM,GAAG,QAAQ;IAC1B,YAAYA,EAAE,OAAO,GAAG,OAAO,CAAC;IAChC,QAAQC,UAAU,CAAVA,UAAkB,CAAC,CAAC;IAC5B,UAAUD,CAAC,CAADA,OACH,CAAC;QACJ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD,EACA,QAAQ;IACX,UAAUA,EAAE,MAAM,GAAG,QAAQ;AAC/B;AAEO,MAAME,gBAAyCF,EAAE,MAAM,CAAC;IAC7D,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM,GAAG,QAAQ;IAC1B,IAAI,YAAW;QACb,OAAOA,EAAE,KAAK,CAACE,cAAc,EAAE,CAACH,WAAW,QAAQ;IACrD;AACF;AAEO,MAAMI,YAAYH,EAAE,KAAK,CAACD;AAC1B,MAAMK,eAAeJ,EAAE,KAAK,CAACE,cAAc,EAAE,CAACH"}
1
+ {"version":3,"file":"types/properties/measures/zMeasures.js","sources":["webpack://@visactor/vseed/./src/types/properties/measures/zMeasures.ts"],"sourcesContent":["import { z } from 'zod'\nimport { zNumFormat } from '../format/numFormat'\nimport type { MeasureGroup } from './measures'\n\nexport const zMeasure = z.object({\n id: z.string(),\n alias: z.string().optional(),\n autoFormat: z.boolean().default(true),\n numFormat: zNumFormat.default({}),\n format: zNumFormat.default({}),\n encoding: z\n .enum([\n 'primaryYAxis',\n 'secondaryYAxis',\n 'xAxis',\n 'yAxis',\n 'angle',\n 'radius',\n 'size',\n 'color',\n 'label',\n 'tooltip',\n 'detail',\n 'column',\n ])\n .optional(),\n parentId: z.string().optional(),\n})\n\nexport const zMeasureGroup: z.ZodType<MeasureGroup> = z.object({\n id: z.string(),\n alias: z.string().optional(),\n get children() {\n return z.array(zMeasureGroup.or(zMeasure)).optional()\n },\n})\n\nexport const zMeasures = z.array(zMeasure)\nexport const zMeasureTree = z.array(zMeasureGroup.or(zMeasure))\n"],"names":["zMeasure","z","zNumFormat","zMeasureGroup","zMeasures","zMeasureTree"],"mappings":";;AAIO,MAAMA,WAAWC,EAAE,MAAM,CAAC;IAC/B,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM,GAAG,QAAQ;IAC1B,YAAYA,EAAE,OAAO,GAAG,OAAO,CAAC;IAChC,WAAWC,UAAU,CAAVA,UAAkB,CAAC,CAAC;IAC/B,QAAQA,UAAU,CAAVA,UAAkB,CAAC,CAAC;IAC5B,UAAUD,CAAC,CAADA,OACH,CAAC;QACJ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACD,EACA,QAAQ;IACX,UAAUA,EAAE,MAAM,GAAG,QAAQ;AAC/B;AAEO,MAAME,gBAAyCF,EAAE,MAAM,CAAC;IAC7D,IAAIA,EAAE,MAAM;IACZ,OAAOA,EAAE,MAAM,GAAG,QAAQ;IAC1B,IAAI,YAAW;QACb,OAAOA,EAAE,KAAK,CAACE,cAAc,EAAE,CAACH,WAAW,QAAQ;IACrD;AACF;AAEO,MAAMI,YAAYH,EAAE,KAAK,CAACD;AAC1B,MAAMK,eAAeJ,EAAE,KAAK,CAACE,cAAc,EAAE,CAACH"}
@@ -5,6 +5,36 @@ export declare const zScatterMeasure: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  alias: z.ZodOptional<z.ZodString>;
7
7
  autoFormat: z.ZodDefault<z.ZodBoolean>;
8
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
9
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
10
+ number: "number";
11
+ percent: "percent";
12
+ permille: "permille";
13
+ scientific: "scientific";
14
+ }>>>;
15
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
16
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
17
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
18
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
19
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
20
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
21
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
22
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
23
+ morePrecision: "morePrecision";
24
+ lessPrecision: "lessPrecision";
25
+ }>>>;
26
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
27
+ floor: "floor";
28
+ ceil: "ceil";
29
+ expand: "expand";
30
+ trunc: "trunc";
31
+ halfCeil: "halfCeil";
32
+ halfFloor: "halfFloor";
33
+ halfExpand: "halfExpand";
34
+ halfTrunc: "halfTrunc";
35
+ halfEven: "halfEven";
36
+ }>>>;
37
+ }, z.core.$strip>>>;
8
38
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
9
39
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
10
40
  number: "number";
@@ -54,6 +84,36 @@ export declare const zScatterMeasure: z.ZodObject<{
54
84
  id: z.ZodString;
55
85
  alias: z.ZodOptional<z.ZodString>;
56
86
  autoFormat: z.ZodDefault<z.ZodBoolean>;
87
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
88
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
89
+ number: "number";
90
+ percent: "percent";
91
+ permille: "permille";
92
+ scientific: "scientific";
93
+ }>>>;
94
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
95
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
96
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
97
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
98
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
99
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
100
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
101
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
102
+ morePrecision: "morePrecision";
103
+ lessPrecision: "lessPrecision";
104
+ }>>>;
105
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
106
+ floor: "floor";
107
+ ceil: "ceil";
108
+ expand: "expand";
109
+ trunc: "trunc";
110
+ halfCeil: "halfCeil";
111
+ halfFloor: "halfFloor";
112
+ halfExpand: "halfExpand";
113
+ halfTrunc: "halfTrunc";
114
+ halfEven: "halfEven";
115
+ }>>>;
116
+ }, z.core.$strip>>>;
57
117
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
58
118
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
59
119
  number: "number";
@@ -104,6 +164,36 @@ export declare const zScatterMeasure: z.ZodObject<{
104
164
  id: z.ZodString;
105
165
  alias: z.ZodOptional<z.ZodString>;
106
166
  autoFormat: z.ZodDefault<z.ZodBoolean>;
167
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
168
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
169
+ number: "number";
170
+ percent: "percent";
171
+ permille: "permille";
172
+ scientific: "scientific";
173
+ }>>>;
174
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
175
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
176
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
177
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
178
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
179
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
180
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
181
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
182
+ morePrecision: "morePrecision";
183
+ lessPrecision: "lessPrecision";
184
+ }>>>;
185
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
186
+ floor: "floor";
187
+ ceil: "ceil";
188
+ expand: "expand";
189
+ trunc: "trunc";
190
+ halfCeil: "halfCeil";
191
+ halfFloor: "halfFloor";
192
+ halfExpand: "halfExpand";
193
+ halfTrunc: "halfTrunc";
194
+ halfEven: "halfEven";
195
+ }>>>;
196
+ }, z.core.$strip>>>;
107
197
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
108
198
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
109
199
  number: "number";
@@ -153,6 +243,36 @@ export declare const zScatterMeasure: z.ZodObject<{
153
243
  id: z.ZodString;
154
244
  alias: z.ZodOptional<z.ZodString>;
155
245
  autoFormat: z.ZodDefault<z.ZodBoolean>;
246
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
247
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
248
+ number: "number";
249
+ percent: "percent";
250
+ permille: "permille";
251
+ scientific: "scientific";
252
+ }>>>;
253
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
254
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
255
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
256
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
257
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
258
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
259
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
260
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
261
+ morePrecision: "morePrecision";
262
+ lessPrecision: "lessPrecision";
263
+ }>>>;
264
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
265
+ floor: "floor";
266
+ ceil: "ceil";
267
+ expand: "expand";
268
+ trunc: "trunc";
269
+ halfCeil: "halfCeil";
270
+ halfFloor: "halfFloor";
271
+ halfExpand: "halfExpand";
272
+ halfTrunc: "halfTrunc";
273
+ halfEven: "halfEven";
274
+ }>>>;
275
+ }, z.core.$strip>>>;
156
276
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
157
277
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
158
278
  number: "number";
@@ -206,6 +326,36 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
206
326
  id: z.ZodString;
207
327
  alias: z.ZodOptional<z.ZodString>;
208
328
  autoFormat: z.ZodDefault<z.ZodBoolean>;
329
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
330
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
331
+ number: "number";
332
+ percent: "percent";
333
+ permille: "permille";
334
+ scientific: "scientific";
335
+ }>>>;
336
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
337
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
338
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
339
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
340
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
341
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
342
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
343
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
344
+ morePrecision: "morePrecision";
345
+ lessPrecision: "lessPrecision";
346
+ }>>>;
347
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
348
+ floor: "floor";
349
+ ceil: "ceil";
350
+ expand: "expand";
351
+ trunc: "trunc";
352
+ halfCeil: "halfCeil";
353
+ halfFloor: "halfFloor";
354
+ halfExpand: "halfExpand";
355
+ halfTrunc: "halfTrunc";
356
+ halfEven: "halfEven";
357
+ }>>>;
358
+ }, z.core.$strip>>>;
209
359
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
210
360
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
211
361
  number: "number";
@@ -255,6 +405,36 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
255
405
  id: z.ZodString;
256
406
  alias: z.ZodOptional<z.ZodString>;
257
407
  autoFormat: z.ZodDefault<z.ZodBoolean>;
408
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
409
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
410
+ number: "number";
411
+ percent: "percent";
412
+ permille: "permille";
413
+ scientific: "scientific";
414
+ }>>>;
415
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
416
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
417
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
418
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
419
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
420
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
421
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
422
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
423
+ morePrecision: "morePrecision";
424
+ lessPrecision: "lessPrecision";
425
+ }>>>;
426
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
427
+ floor: "floor";
428
+ ceil: "ceil";
429
+ expand: "expand";
430
+ trunc: "trunc";
431
+ halfCeil: "halfCeil";
432
+ halfFloor: "halfFloor";
433
+ halfExpand: "halfExpand";
434
+ halfTrunc: "halfTrunc";
435
+ halfEven: "halfEven";
436
+ }>>>;
437
+ }, z.core.$strip>>>;
258
438
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
259
439
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
260
440
  number: "number";
@@ -305,6 +485,36 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
305
485
  id: z.ZodString;
306
486
  alias: z.ZodOptional<z.ZodString>;
307
487
  autoFormat: z.ZodDefault<z.ZodBoolean>;
488
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
489
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
490
+ number: "number";
491
+ percent: "percent";
492
+ permille: "permille";
493
+ scientific: "scientific";
494
+ }>>>;
495
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
496
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
497
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
498
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
499
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
500
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
501
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
502
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
503
+ morePrecision: "morePrecision";
504
+ lessPrecision: "lessPrecision";
505
+ }>>>;
506
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
507
+ floor: "floor";
508
+ ceil: "ceil";
509
+ expand: "expand";
510
+ trunc: "trunc";
511
+ halfCeil: "halfCeil";
512
+ halfFloor: "halfFloor";
513
+ halfExpand: "halfExpand";
514
+ halfTrunc: "halfTrunc";
515
+ halfEven: "halfEven";
516
+ }>>>;
517
+ }, z.core.$strip>>>;
308
518
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
309
519
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
310
520
  number: "number";
@@ -354,6 +564,36 @@ export declare const zScatterMeasures: z.ZodArray<z.ZodObject<{
354
564
  id: z.ZodString;
355
565
  alias: z.ZodOptional<z.ZodString>;
356
566
  autoFormat: z.ZodDefault<z.ZodBoolean>;
567
+ numFormat: z.ZodDefault<z.ZodOptional<z.ZodObject<{
568
+ type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
569
+ number: "number";
570
+ percent: "percent";
571
+ permille: "permille";
572
+ scientific: "scientific";
573
+ }>>>;
574
+ ratio: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
575
+ symbol: z.ZodOptional<z.ZodDefault<z.ZodString>>;
576
+ thousandSeparator: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
577
+ prefix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
578
+ suffix: z.ZodOptional<z.ZodDefault<z.ZodString>>;
579
+ fractionDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
580
+ significantDigits: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
581
+ roundingPriority: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
582
+ morePrecision: "morePrecision";
583
+ lessPrecision: "lessPrecision";
584
+ }>>>;
585
+ roundingMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
586
+ floor: "floor";
587
+ ceil: "ceil";
588
+ expand: "expand";
589
+ trunc: "trunc";
590
+ halfCeil: "halfCeil";
591
+ halfFloor: "halfFloor";
592
+ halfExpand: "halfExpand";
593
+ halfTrunc: "halfTrunc";
594
+ halfEven: "halfEven";
595
+ }>>>;
596
+ }, z.core.$strip>>>;
357
597
  format: z.ZodDefault<z.ZodOptional<z.ZodObject<{
358
598
  type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
359
599
  number: "number";