@visactor/vseed 0.0.35 → 0.0.37

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 (115) hide show
  1. package/dist/builder/builder/builder.d.ts +8924 -8912
  2. package/dist/index.cjs +1128 -883
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.js +1097 -870
  5. package/dist/index.js.map +1 -1
  6. package/dist/pipeline/advanced/table/pipes/config/index.d.ts +2 -0
  7. package/dist/pipeline/advanced/table/pipes/config/pivotTableConfig.d.ts +2 -0
  8. package/dist/pipeline/advanced/table/pipes/config/tableConfig.d.ts +2 -0
  9. package/dist/pipeline/advanced/table/pipes/index.d.ts +1 -0
  10. package/dist/pipeline/spec/chart/pipes/series/index.d.ts +1 -1
  11. package/dist/pipeline/spec/chart/pipes/series/series.d.ts +1 -0
  12. package/dist/pipeline/spec/table/pipes/columns/dimensionsToColumns.d.ts +2 -0
  13. package/dist/pipeline/spec/table/pipes/columns/index.d.ts +1 -0
  14. package/dist/pipeline/spec/table/pipes/columns/measuresToColumns.d.ts +0 -1
  15. package/dist/pipeline/spec/table/pipes/indicators/index.d.ts +1 -0
  16. package/dist/pipeline/spec/table/pipes/indicators/pivotDataConfig.d.ts +2 -0
  17. package/dist/pipeline/utils/dimensions/index.d.ts +1 -0
  18. package/dist/pipeline/utils/dimensions/typeGuard.d.ts +4 -0
  19. package/dist/pipeline/utils/measures/index.d.ts +1 -0
  20. package/dist/pipeline/utils/measures/typeGuard.d.ts +4 -0
  21. package/dist/types/advancedVSeed.d.ts +3843 -3839
  22. package/dist/types/chartType/area/zArea.d.ts +569 -569
  23. package/dist/types/chartType/areaPercent/zAreaPercent.d.ts +569 -569
  24. package/dist/types/chartType/areaRange/zAreaRange.d.ts +550 -550
  25. package/dist/types/chartType/bar/bar.d.ts +0 -1183
  26. package/dist/types/chartType/bar/index.d.ts +2 -1
  27. package/dist/types/chartType/bar/zBar.d.ts +1183 -0
  28. package/dist/types/chartType/barParallel/barParallel.d.ts +0 -1183
  29. package/dist/types/chartType/barParallel/index.d.ts +2 -1
  30. package/dist/types/chartType/barParallel/zBarParallel.d.ts +1183 -0
  31. package/dist/types/chartType/barPercent/barPercent.d.ts +0 -1183
  32. package/dist/types/chartType/barPercent/index.d.ts +2 -1
  33. package/dist/types/chartType/barPercent/zBarPercent.d.ts +1183 -0
  34. package/dist/types/chartType/column/column.d.ts +0 -1183
  35. package/dist/types/chartType/column/index.d.ts +2 -1
  36. package/dist/types/chartType/column/zColumn.d.ts +1183 -0
  37. package/dist/types/chartType/columnParallel/columnParallel.d.ts +0 -1183
  38. package/dist/types/chartType/columnParallel/index.d.ts +2 -1
  39. package/dist/types/chartType/columnParallel/zColumnParallel.d.ts +1183 -0
  40. package/dist/types/chartType/columnPercent/columnPercent.d.ts +0 -1183
  41. package/dist/types/chartType/columnPercent/index.d.ts +2 -1
  42. package/dist/types/chartType/columnPercent/zColumnPercent.d.ts +1183 -0
  43. package/dist/types/chartType/donut/donut.d.ts +0 -119
  44. package/dist/types/chartType/donut/index.d.ts +2 -1
  45. package/dist/types/chartType/donut/zDonut.d.ts +119 -0
  46. package/dist/types/chartType/dualAxis/dualAxis.d.ts +58 -0
  47. package/dist/types/chartType/dualAxis/zDualAxis.d.ts +747 -749
  48. package/dist/types/chartType/funnel/funnel.d.ts +0 -89
  49. package/dist/types/chartType/funnel/index.d.ts +2 -1
  50. package/dist/types/chartType/funnel/zFunnel.d.ts +89 -0
  51. package/dist/types/chartType/heatmap/heatmap.d.ts +0 -89
  52. package/dist/types/chartType/heatmap/index.d.ts +2 -1
  53. package/dist/types/chartType/heatmap/zHeatmap.d.ts +89 -0
  54. package/dist/types/chartType/line/index.d.ts +2 -1
  55. package/dist/types/chartType/line/line.d.ts +0 -1365
  56. package/dist/types/chartType/line/zLine.d.ts +1365 -0
  57. package/dist/types/chartType/pie/index.d.ts +2 -1
  58. package/dist/types/chartType/pie/pie.d.ts +0 -119
  59. package/dist/types/chartType/pie/zPie.d.ts +119 -0
  60. package/dist/types/chartType/pivotTable/index.d.ts +2 -1
  61. package/dist/types/chartType/pivotTable/pivotTable.d.ts +44 -60
  62. package/dist/types/chartType/pivotTable/zPivotTable.d.ts +68 -0
  63. package/dist/types/chartType/radar/index.d.ts +2 -1
  64. package/dist/types/chartType/radar/radar.d.ts +0 -119
  65. package/dist/types/chartType/radar/zRadar.d.ts +119 -0
  66. package/dist/types/chartType/rose/index.d.ts +2 -1
  67. package/dist/types/chartType/rose/rose.d.ts +0 -119
  68. package/dist/types/chartType/rose/zRose.d.ts +119 -0
  69. package/dist/types/chartType/roseParallel/index.d.ts +2 -1
  70. package/dist/types/chartType/roseParallel/roseParallel.d.ts +0 -119
  71. package/dist/types/chartType/roseParallel/zRoseParallel.d.ts +119 -0
  72. package/dist/types/chartType/scatter/index.d.ts +2 -1
  73. package/dist/types/chartType/scatter/scatter.d.ts +0 -1191
  74. package/dist/types/chartType/scatter/zScatter.d.ts +1191 -0
  75. package/dist/types/chartType/table/index.d.ts +2 -1
  76. package/dist/types/chartType/table/table.d.ts +45 -64
  77. package/dist/types/chartType/table/zTable.d.ts +68 -0
  78. package/dist/types/dataSelector/selector.d.ts +16 -16
  79. package/dist/types/properties/analysis/analysis.d.ts +1 -1
  80. package/dist/types/properties/analysis/sort.d.ts +2 -4
  81. package/dist/types/properties/analysis/sortLegend.d.ts +2 -3
  82. package/dist/types/properties/annotation/annotation.d.ts +308 -308
  83. package/dist/types/properties/annotation/annotationArea.d.ts +20 -130
  84. package/dist/types/properties/annotation/annotationHorizontalLine.d.ts +31 -138
  85. package/dist/types/properties/annotation/annotationPoint.d.ts +20 -114
  86. package/dist/types/properties/annotation/annotationVerticalLine.d.ts +6 -113
  87. package/dist/types/properties/annotation/index.d.ts +8 -4
  88. package/dist/types/properties/annotation/zAnnotationArea.d.ts +110 -0
  89. package/dist/types/properties/annotation/zAnnotationHorizontalLine.d.ts +107 -0
  90. package/dist/types/properties/annotation/zAnnotationPoint.d.ts +94 -0
  91. package/dist/types/properties/annotation/zAnnotationVerticalLine.d.ts +107 -0
  92. package/dist/types/properties/config/axes/axis.d.ts +45 -45
  93. package/dist/types/properties/config/axes/bandAxis.d.ts +74 -74
  94. package/dist/types/properties/config/axes/linearAxis.d.ts +76 -76
  95. package/dist/types/properties/config/backgroundColor/backgroundColor.d.ts +1 -1
  96. package/dist/types/properties/config/color/color.d.ts +3 -3
  97. package/dist/types/properties/config/config.d.ts +3286 -3282
  98. package/dist/types/properties/config/crosshair/crosshair.d.ts +10 -10
  99. package/dist/types/properties/config/label/label.d.ts +1 -1
  100. package/dist/types/properties/config/legend/legend.d.ts +13 -13
  101. package/dist/types/properties/config/tooltip/tooltip.d.ts +1 -1
  102. package/dist/types/properties/datasetReshapeInfo/datasetReshapeInfo.d.ts +2 -2
  103. package/dist/types/properties/encoding/encoding.d.ts +8 -8
  104. package/dist/types/properties/markStyle/areaStyle.d.ts +20 -20
  105. package/dist/types/properties/markStyle/barStyle.d.ts +24 -24
  106. package/dist/types/properties/markStyle/lineStyle.d.ts +24 -24
  107. package/dist/types/properties/markStyle/markStyle.d.ts +194 -194
  108. package/dist/types/properties/markStyle/pointStyle.d.ts +35 -35
  109. package/dist/types/properties/measures/dualMeasures.d.ts +0 -2
  110. package/dist/types/properties/measures/zDualMeasures.d.ts +0 -4
  111. package/dist/types/properties/theme/customTheme.d.ts +3334 -3330
  112. package/dist/types/vseed.d.ts +6781 -6757
  113. package/dist/umd/index.js +1148 -905
  114. package/dist/umd/index.js.map +1 -1
  115. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -24,6 +24,7 @@ var __webpack_require__ = {};
24
24
  var __webpack_exports__ = {};
25
25
  __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
+ zTooltip: ()=>zTooltip,
27
28
  funnelAdvancedPipeline: ()=>funnelAdvancedPipeline,
28
29
  zHeatmapConfig: ()=>zHeatmapConfig,
29
30
  zBar: ()=>zBar,
@@ -48,6 +49,7 @@ __webpack_require__.d(__webpack_exports__, {
48
49
  zDualMeasure: ()=>zDualMeasure,
49
50
  zSortLegend: ()=>zSortLegend,
50
51
  pivotTableAdvancedPipeline: ()=>pivotTableAdvancedPipeline,
52
+ isMeasures: ()=>isMeasures,
51
53
  zYBandAxis: ()=>zYBandAxis,
52
54
  dataReshapeFor1D2M: ()=>dataReshapeFor1D2M,
53
55
  zAnnotationHorizontalLine: ()=>zAnnotationHorizontalLine,
@@ -101,31 +103,31 @@ __webpack_require__.d(__webpack_exports__, {
101
103
  registerLightTheme: ()=>registerLightTheme,
102
104
  roseAdvancedPipeline: ()=>roseAdvancedPipeline,
103
105
  zBarParallel: ()=>zBarParallel,
104
- isPartialDatumSelector: ()=>isPartialDatumSelector,
106
+ registerDarkTheme: ()=>registerDarkTheme,
105
107
  registerPivotTable: ()=>registerPivotTable,
106
- tableAdvancedPipeline: ()=>tableAdvancedPipeline,
107
- pieSpecPipeline: ()=>pieSpecPipeline,
108
+ isPartialDatumSelector: ()=>isPartialDatumSelector,
109
+ isDimensionGroup: ()=>isDimensionGroup,
108
110
  dualAxisSpecPipeline: ()=>dualAxisSpecPipeline,
109
- registerDarkTheme: ()=>registerDarkTheme,
110
- zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
111
+ pieSpecPipeline: ()=>pieSpecPipeline,
112
+ tableAdvancedPipeline: ()=>tableAdvancedPipeline,
111
113
  barSpecPipeline: ()=>barSpecPipeline,
112
- zChartType: ()=>zChartType,
114
+ zAnnotationVerticalLine: ()=>zAnnotationVerticalLine,
113
115
  registerRose: ()=>registerRose,
114
- zCrosshairLine: ()=>zCrosshairLine,
116
+ zChartType: ()=>zChartType,
115
117
  unfoldDimensions: ()=>unfoldDimensions,
116
118
  roseParallelAdvancedPipeline: ()=>roseParallelAdvancedPipeline,
117
119
  registerTable: ()=>registerTable,
118
120
  autoFormatter: ()=>autoFormatter,
121
+ isMeasureGroup: ()=>isMeasureGroup,
119
122
  findFirstDimension: ()=>findFirstDimension,
120
- Builder: ()=>Builder,
121
123
  registerAll: ()=>registerAll,
122
124
  registerBar: ()=>registerBar,
123
125
  isVChart: ()=>isVChart,
124
126
  radarSpecPipeline: ()=>radarSpecPipeline,
127
+ Builder: ()=>Builder,
128
+ zCrosshairLine: ()=>zCrosshairLine,
125
129
  zMeasureTree: ()=>zMeasureTree,
126
130
  zPieConfig: ()=>zPieConfig,
127
- zPivotTable: ()=>zPivotTable,
128
- zRadar: ()=>zRadar,
129
131
  registerLine: ()=>registerLine,
130
132
  registerCustomTheme: ()=>registerCustomTheme,
131
133
  zColor: ()=>zColor,
@@ -145,7 +147,7 @@ __webpack_require__.d(__webpack_exports__, {
145
147
  zAxis: ()=>zAxis,
146
148
  isVTable: ()=>isVTable,
147
149
  zMeasures: ()=>zMeasures,
148
- zRadarConfig: ()=>zRadarConfig,
150
+ zPivotTable: ()=>zPivotTable,
149
151
  zLine: ()=>zLine,
150
152
  columnSpecPipeline: ()=>columnSpecPipeline,
151
153
  UnfoldDimensionGroup: ()=>UnfoldDimensionGroup,
@@ -154,8 +156,9 @@ __webpack_require__.d(__webpack_exports__, {
154
156
  zLinearColor: ()=>zLinearColor,
155
157
  zAreaStyle: ()=>zAreaStyle,
156
158
  ORIGINAL_DATA: ()=>ORIGINAL_DATA,
157
- zStackCornerRadius: ()=>zStackCornerRadius,
159
+ zRadarConfig: ()=>zRadarConfig,
158
160
  zAnnotationArea: ()=>zAnnotationArea,
161
+ zStackCornerRadius: ()=>zStackCornerRadius,
159
162
  zUnfoldInfo: ()=>zUnfoldInfo,
160
163
  zRose: ()=>zRose,
161
164
  columnParallelSpecPipeline: ()=>columnParallelSpecPipeline,
@@ -166,7 +169,9 @@ __webpack_require__.d(__webpack_exports__, {
166
169
  registerColumnParallel: ()=>registerColumnParallel,
167
170
  updateAdvanced: ()=>updateAdvanced,
168
171
  zDimension: ()=>zDimension,
172
+ zRadar: ()=>zRadar,
169
173
  zTable: ()=>zTable,
174
+ isMeasure: ()=>isMeasure,
170
175
  FoldSecondaryMeasureValue: ()=>FoldSecondaryMeasureValue,
171
176
  zSort: ()=>zSort,
172
177
  isPivotChart: ()=>isPivotChart,
@@ -188,8 +193,8 @@ __webpack_require__.d(__webpack_exports__, {
188
193
  registerBarParallel: ()=>registerBarParallel,
189
194
  registerRadar: ()=>registerRadar,
190
195
  zLocale: ()=>zLocale,
196
+ isDimension: ()=>isDimension,
191
197
  pivotTableSpecPipeline: ()=>pivotTableSpecPipeline,
192
- zMeasure: ()=>zMeasure,
193
198
  areaRangeSpecPipeline: ()=>areaRangeSpecPipeline,
194
199
  areaRangeAdvancedPipeline: ()=>areaRangeAdvancedPipeline,
195
200
  dualAxisAdvancedPipeline: ()=>dualAxisAdvancedPipeline,
@@ -202,9 +207,10 @@ __webpack_require__.d(__webpack_exports__, {
202
207
  zConfig: ()=>zConfig,
203
208
  zEncoding: ()=>zEncoding,
204
209
  zBarStyle: ()=>zBarStyle,
210
+ zMeasure: ()=>zMeasure,
205
211
  zRoseParallelConfig: ()=>zRoseParallelConfig,
206
- zXLinearAxis: ()=>zXLinearAxis,
207
212
  zAreaPercent: ()=>zAreaPercent,
213
+ zXLinearAxis: ()=>zXLinearAxis,
208
214
  columnParallelAdvancedPipeline: ()=>columnParallelAdvancedPipeline,
209
215
  isValueSelector: ()=>isValueSelector,
210
216
  donutAdvancedPipeline: ()=>donutAdvancedPipeline,
@@ -222,8 +228,8 @@ __webpack_require__.d(__webpack_exports__, {
222
228
  lineAdvancedPipeline: ()=>lineAdvancedPipeline,
223
229
  zBarPercentConfig: ()=>zBarPercentConfig,
224
230
  lineSpecPipeline: ()=>lineSpecPipeline,
231
+ isDimensions: ()=>isDimensions,
225
232
  zScatterConfig: ()=>zScatterConfig,
226
- zTooltip: ()=>zTooltip,
227
233
  createFormatter: ()=>createFormatter,
228
234
  zDimensionGroup: ()=>zDimensionGroup,
229
235
  isMeasureSelector: ()=>isMeasureSelector,
@@ -520,6 +526,33 @@ const records_records = (advancedVSeed, context)=>{
520
526
  dataset
521
527
  };
522
528
  };
529
+ const tableConfig_tableConfig = (advancedVSeed, context)=>{
530
+ const { vseed } = context;
531
+ const { chartType } = vseed;
532
+ const result = {
533
+ ...advancedVSeed
534
+ };
535
+ const config = (0, external_remeda_namespaceObject.pick)(vseed, [
536
+ 'backgroundColor',
537
+ 'bodyFontSize',
538
+ 'bodyFontColor',
539
+ 'bodyBackgroundColor',
540
+ 'headerFontSize',
541
+ 'headerFontColor',
542
+ 'headerBackgroundColor',
543
+ 'hoverHeaderBackgroundColor',
544
+ 'hoverHeaderInlineBackgroundColor',
545
+ 'selectedBorderColor',
546
+ 'selectedBackgroundColor'
547
+ ]);
548
+ result.config = {
549
+ ...result.config || {},
550
+ [chartType]: {
551
+ ...config
552
+ }
553
+ };
554
+ return result;
555
+ };
523
556
  const theme_theme = (advancedVSeed, context)=>{
524
557
  const { customTheme, vseed } = context;
525
558
  const { theme = 'light', chartType } = vseed;
@@ -531,6 +564,10 @@ const theme_theme = (advancedVSeed, context)=>{
531
564
  if (chartConfigTheme) {
532
565
  const chartConfig = result.config?.[chartType] || {};
533
566
  const mergedConfig = (0, external_remeda_namespaceObject.mergeDeep)(chartConfigTheme, (0, external_remeda_namespaceObject.clone)(chartConfig));
567
+ for(const _k in mergedConfig){
568
+ const key = _k;
569
+ if (Array.isArray(mergedConfig[key])) mergedConfig[key] = mergeArray(mergedConfig[key], chartConfigTheme[key]);
570
+ }
534
571
  result.config = {
535
572
  [chartType]: mergedConfig
536
573
  };
@@ -543,16 +580,25 @@ const theme_theme = (advancedVSeed, context)=>{
543
580
  };
544
581
  return result;
545
582
  };
583
+ const mergeArray = (arr, themeItem)=>{
584
+ if ((0, external_remeda_namespaceObject.isNullish)(themeItem) || (0, external_remeda_namespaceObject.isString)(themeItem) || (0, external_remeda_namespaceObject.isNumber)(themeItem)) return arr;
585
+ if (!Array.isArray(arr)) return arr;
586
+ if (arr.some((d)=>!(0, external_remeda_namespaceObject.isObjectType)(d))) return arr;
587
+ return arr.map((item)=>(0, external_remeda_namespaceObject.merge)(themeItem, item));
588
+ };
546
589
  const tableAdvancedPipeline = [
547
590
  initAdvancedVSeed,
548
591
  autoMeasures,
549
592
  autoDimensions,
550
593
  records_records,
594
+ tableConfig_tableConfig,
551
595
  theme_theme
552
596
  ];
553
597
  const initTable = (spec, context)=>{
554
598
  const { advancedVSeed } = context;
555
599
  const { dataset } = advancedVSeed;
600
+ const { config } = advancedVSeed;
601
+ const { backgroundColor = 'transparent' } = config.table || {};
556
602
  return {
557
603
  ...spec,
558
604
  records: dataset,
@@ -574,23 +620,26 @@ const initTable = (spec, context)=>{
574
620
  highlightMode: 'row'
575
621
  },
576
622
  theme: {
577
- underlayBackgroundColor: 'transparent'
623
+ underlayBackgroundColor: backgroundColor
578
624
  }
579
625
  };
580
626
  };
581
- const measureTreeToColumns = (spec, context)=>{
627
+ const isMeasure = (measure)=>!('children' in measure);
628
+ const isMeasureGroup = (measure)=>'children' in measure;
629
+ const isMeasures = (measures)=>measures.every(isMeasure);
630
+ const dimensionTreeToColumns = (spec, context)=>{
582
631
  const { advancedVSeed } = context;
583
- const measures = advancedVSeed.measures;
632
+ const dimensions = advancedVSeed.dimensions;
584
633
  const result = {
585
634
  ...spec
586
635
  };
587
636
  const eachNode = (node)=>{
588
- if ('children' in node) return {};
589
- return {
637
+ if (isMeasure(node)) return {
590
638
  width: 'auto'
591
639
  };
640
+ return {};
592
641
  };
593
- const columns = treeTreeToColumns(measures, eachNode);
642
+ const columns = treeTreeToColumns(dimensions, eachNode);
594
643
  return {
595
644
  ...result,
596
645
  columns: [
@@ -599,19 +648,106 @@ const measureTreeToColumns = (spec, context)=>{
599
648
  ]
600
649
  };
601
650
  };
602
- const dimensionTreeToColumns = (spec, context)=>{
651
+ const treeTreeToColumns = (tree, callback)=>{
652
+ const result = tree.map((item)=>{
653
+ if ('children' in item && Array.isArray(item.children)) {
654
+ const groupNode = item;
655
+ const field = groupNode.id;
656
+ const title = groupNode.alias ?? groupNode.id;
657
+ const props = callback?.(groupNode) || {};
658
+ return {
659
+ field,
660
+ title,
661
+ columns: treeTreeToColumns(item.children, callback),
662
+ ...props
663
+ };
664
+ }
665
+ {
666
+ const field = item.id;
667
+ const title = item.alias ?? item.id;
668
+ const props = callback?.(item) || {};
669
+ return {
670
+ field,
671
+ title,
672
+ ...props
673
+ };
674
+ }
675
+ });
676
+ return result || [];
677
+ };
678
+ const createNumFormatter = (format, locale = intl.getLocale())=>{
679
+ const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
680
+ const numFormatterOptions = {
681
+ style: 'decimal',
682
+ notation: 'scientific' === type ? 'scientific' : 'standard',
683
+ roundingMode,
684
+ roundingPriority
685
+ };
686
+ if ((0, external_remeda_namespaceObject.isNumber)(fractionDigits)) {
687
+ if (fractionDigits >= 0) {
688
+ numFormatterOptions.minimumFractionDigits = fractionDigits;
689
+ numFormatterOptions.maximumFractionDigits = fractionDigits;
690
+ }
691
+ }
692
+ if ((0, external_remeda_namespaceObject.isNumber)(significantDigits) && significantDigits > 0) {
693
+ if (significantDigits > 0) {
694
+ numFormatterOptions.minimumSignificantDigits = significantDigits;
695
+ numFormatterOptions.maximumSignificantDigits = significantDigits;
696
+ }
697
+ }
698
+ const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
699
+ return (value)=>{
700
+ let num = Number(value);
701
+ let typeSymbol = '';
702
+ if (Number.isNaN(num)) return String(value);
703
+ if ('percent' === type) {
704
+ num *= 100;
705
+ typeSymbol = '%';
706
+ } else if ('permille' === type) {
707
+ num *= 1000;
708
+ typeSymbol = "\u2030";
709
+ } else if ('number' === type) num /= ratio || 1;
710
+ let numStr = numFormatter.format(num);
711
+ if (thousandSeparator) {
712
+ const parts = numStr.split('.');
713
+ parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
714
+ numStr = parts.join('.');
715
+ }
716
+ return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
717
+ };
718
+ };
719
+ const autoNumFormatter = (value, locale = intl.getLocale())=>{
720
+ if (null == value) return String(value);
721
+ const num = Number(value);
722
+ if (Number.isNaN(num)) return String(value);
723
+ const numFormatterOptions = {
724
+ style: 'decimal',
725
+ notation: 'compact'
726
+ };
727
+ numFormatterOptions.minimumFractionDigits = 0;
728
+ numFormatterOptions.maximumFractionDigits = 2;
729
+ const numFormatter = new Intl.NumberFormat(locale, {
730
+ ...numFormatterOptions
731
+ });
732
+ return numFormatter.format(Number(value));
733
+ };
734
+ const createFormatter = (format)=>createNumFormatter(format);
735
+ const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
736
+ const measureTreeToColumns = (spec, context)=>{
603
737
  const { advancedVSeed } = context;
604
- const dimensions = advancedVSeed.dimensions;
738
+ const { locale } = advancedVSeed;
739
+ const measures = advancedVSeed.measures;
605
740
  const result = {
606
741
  ...spec
607
742
  };
608
743
  const eachNode = (node)=>{
609
- if ('children' in node) return {};
610
- return {
611
- width: 'auto'
744
+ if (isMeasure(node)) return {
745
+ width: 'auto',
746
+ fieldFormat: fieldFormat(node, locale)
612
747
  };
748
+ return {};
613
749
  };
614
- const columns = treeTreeToColumns(dimensions, eachNode);
750
+ const columns = measuresToColumns_treeTreeToColumns(measures, eachNode);
615
751
  return {
616
752
  ...result,
617
753
  columns: [
@@ -620,7 +756,16 @@ const dimensionTreeToColumns = (spec, context)=>{
620
756
  ]
621
757
  };
622
758
  };
623
- const treeTreeToColumns = (tree, callback)=>{
759
+ const fieldFormat = (node, locale)=>(datum)=>{
760
+ const { format = {}, autoFormat = true, id } = node;
761
+ const value = datum[id];
762
+ if (!(0, external_remeda_namespaceObject.isEmpty)(format)) {
763
+ const formatter = createFormatter(format);
764
+ return formatter(value);
765
+ }
766
+ if (autoFormat) return autoFormatter(value, locale);
767
+ };
768
+ const measuresToColumns_treeTreeToColumns = (tree, callback)=>{
624
769
  const result = tree.map((item)=>{
625
770
  if ('children' in item && Array.isArray(item.children)) {
626
771
  const groupNode = item;
@@ -630,7 +775,7 @@ const treeTreeToColumns = (tree, callback)=>{
630
775
  return {
631
776
  field,
632
777
  title,
633
- columns: treeTreeToColumns(item.children, callback),
778
+ columns: measuresToColumns_treeTreeToColumns(item.children, callback),
634
779
  ...props
635
780
  };
636
781
  }
@@ -652,8 +797,8 @@ const bodyStyle = (spec, context)=>{
652
797
  ...spec
653
798
  };
654
799
  const { advancedVSeed } = context;
655
- const { customTheme, chartType } = advancedVSeed;
656
- const themeConfig = customTheme?.config?.[chartType];
800
+ const { chartType, config } = advancedVSeed;
801
+ const themeConfig = config?.[chartType];
657
802
  if (!result.theme || !themeConfig) return result;
658
803
  const borderColor = themeConfig.borderColor || 'rgb(224, 224, 224)';
659
804
  const backgroundColor = themeConfig.bodyBackgroundColor || '#fff';
@@ -691,8 +836,8 @@ const headerStyle = (spec, context)=>{
691
836
  ...spec
692
837
  };
693
838
  const { advancedVSeed } = context;
694
- const { customTheme, chartType } = advancedVSeed;
695
- const themConfig = customTheme?.config?.[chartType];
839
+ const { config, chartType } = advancedVSeed;
840
+ const themConfig = config?.[chartType];
696
841
  if (!result.theme || !themConfig) return result;
697
842
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
698
843
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -739,8 +884,8 @@ const frameStyle = (spec, context)=>{
739
884
  ...spec
740
885
  };
741
886
  const { advancedVSeed } = context;
742
- const { customTheme, chartType } = advancedVSeed;
743
- const themConfig = customTheme?.config?.[chartType];
887
+ const { config, chartType } = advancedVSeed;
888
+ const themConfig = config?.[chartType];
744
889
  if (!result.theme || !themConfig) return result;
745
890
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
746
891
  result.theme.frameStyle = {
@@ -755,8 +900,8 @@ const selectionStyle = (spec, context)=>{
755
900
  ...spec
756
901
  };
757
902
  const { advancedVSeed } = context;
758
- const { customTheme, chartType } = advancedVSeed;
759
- const themConfig = customTheme?.config?.[chartType];
903
+ const { config, chartType } = advancedVSeed;
904
+ const themConfig = config?.[chartType];
760
905
  if (!result.theme || !themConfig) return result;
761
906
  const borderColor = themConfig.selectedBorderColor || 'rgb(224, 224, 224)';
762
907
  const backgroundColor = themConfig.selectedBackgroundColor || 'rgb(224, 224, 224, 0.5)';
@@ -880,16 +1025,46 @@ const autoPivotDimensions = (advancedVSeed, context)=>{
880
1025
  }));
881
1026
  return result;
882
1027
  };
1028
+ const pivotTableConfig = (advancedVSeed, context)=>{
1029
+ const { vseed } = context;
1030
+ const { chartType } = vseed;
1031
+ const result = {
1032
+ ...advancedVSeed
1033
+ };
1034
+ const config = (0, external_remeda_namespaceObject.pick)(vseed, [
1035
+ 'backgroundColor',
1036
+ 'bodyFontSize',
1037
+ 'bodyFontColor',
1038
+ 'bodyBackgroundColor',
1039
+ 'headerFontSize',
1040
+ 'headerFontColor',
1041
+ 'headerBackgroundColor',
1042
+ 'hoverHeaderBackgroundColor',
1043
+ 'hoverHeaderInlineBackgroundColor',
1044
+ 'selectedBorderColor',
1045
+ 'selectedBackgroundColor'
1046
+ ]);
1047
+ result.config = {
1048
+ ...result.config || {},
1049
+ [chartType]: {
1050
+ ...config
1051
+ }
1052
+ };
1053
+ return result;
1054
+ };
883
1055
  const pivotTableAdvancedPipeline = [
884
1056
  initAdvancedVSeed,
885
1057
  autoPivotMeasures,
886
1058
  autoPivotDimensions,
887
1059
  records_records,
1060
+ pivotTableConfig,
888
1061
  theme_theme
889
1062
  ];
890
1063
  const initPivotTable = (spec, context)=>{
891
1064
  const { advancedVSeed } = context;
892
1065
  const { dataset } = advancedVSeed;
1066
+ const { config } = advancedVSeed;
1067
+ const { backgroundColor = 'transparent' } = config.pivotTable || {};
893
1068
  return {
894
1069
  ...spec,
895
1070
  records: dataset,
@@ -918,7 +1093,7 @@ const initPivotTable = (spec, context)=>{
918
1093
  direction: 'row'
919
1094
  },
920
1095
  theme: {
921
- underlayBackgroundColor: 'transparent'
1096
+ underlayBackgroundColor: backgroundColor
922
1097
  }
923
1098
  };
924
1099
  };
@@ -950,26 +1125,39 @@ const pivotRows = (spec, context)=>{
950
1125
  };
951
1126
  const pivotIndicators = (spec, context)=>{
952
1127
  const { advancedVSeed } = context;
1128
+ const { locale } = advancedVSeed;
953
1129
  const measures = advancedVSeed.measures;
954
1130
  return {
955
1131
  ...spec,
956
1132
  indicatorsAsCol: true,
957
1133
  indicatorTitle: intl.i18n`指标名称`,
958
- indicators: measures.map((item)=>({
1134
+ indicators: measures.map((item)=>{
1135
+ if (isMeasure(item)) return {
959
1136
  cellType: 'text',
960
1137
  indicatorKey: item.id,
961
1138
  title: item.alias || item.id,
962
- width: 'auto'
963
- }))
1139
+ width: 'auto',
1140
+ format: pivotIndicators_fieldFormat(item, locale)
1141
+ };
1142
+ return {};
1143
+ })
964
1144
  };
965
1145
  };
1146
+ const pivotIndicators_fieldFormat = (node, locale)=>(value)=>{
1147
+ const { format = {}, autoFormat = true } = node;
1148
+ if (!(0, external_remeda_namespaceObject.isEmpty)(format)) {
1149
+ const formatter = createFormatter(format);
1150
+ return formatter(value);
1151
+ }
1152
+ if (autoFormat) return autoFormatter(value, locale);
1153
+ };
966
1154
  const rowHeaderStyle = (spec, context)=>{
967
1155
  const result = {
968
1156
  ...spec
969
1157
  };
970
1158
  const { advancedVSeed } = context;
971
- const { customTheme, chartType } = advancedVSeed;
972
- const themConfig = customTheme?.config?.[chartType];
1159
+ const { config, chartType } = advancedVSeed;
1160
+ const themConfig = config?.[chartType];
973
1161
  if (!result.theme || !themConfig) return result;
974
1162
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
975
1163
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -1016,8 +1204,8 @@ const cornerHeaderStyle = (spec, context)=>{
1016
1204
  ...spec
1017
1205
  };
1018
1206
  const { advancedVSeed } = context;
1019
- const { customTheme, chartType } = advancedVSeed;
1020
- const themConfig = customTheme?.config?.[chartType];
1207
+ const { config, chartType } = advancedVSeed;
1208
+ const themConfig = config?.[chartType];
1021
1209
  if (!result.theme || !themConfig) return result;
1022
1210
  const borderColor = themConfig.borderColor || 'rgb(224, 224, 224)';
1023
1211
  const backgroundColor = themConfig.headerBackgroundColor || '#EEF1F5';
@@ -1039,9 +1227,9 @@ const cornerHeaderStyle = (spec, context)=>{
1039
1227
  ],
1040
1228
  textAlign: 'left',
1041
1229
  hover: {
1042
- cellBgColor: hoverCellColor,
1043
- inlineRowBgColor: hoverInlineColor,
1044
- inlineColumnBgColor: hoverInlineColor
1230
+ cellBgColor: hoverCellColor || void 0,
1231
+ inlineRowBgColor: hoverInlineColor || void 0,
1232
+ inlineColumnBgColor: hoverInlineColor || void 0
1045
1233
  },
1046
1234
  frameStyle: {
1047
1235
  borderColor: [
@@ -1062,6 +1250,29 @@ const cornerHeaderStyle = (spec, context)=>{
1062
1250
  };
1063
1251
  return result;
1064
1252
  };
1253
+ var new_data_set_AggregationType;
1254
+ !function(AggregationType) {
1255
+ AggregationType.RECORD = "RECORD", AggregationType.NONE = "NONE", AggregationType.SUM = "SUM", AggregationType.MIN = "MIN", AggregationType.MAX = "MAX", AggregationType.AVG = "AVG", AggregationType.COUNT = "COUNT", AggregationType.CUSTOM = "CUSTOM", AggregationType.RECALCULATE = "RECALCULATE";
1256
+ }(new_data_set_AggregationType || (new_data_set_AggregationType = {}));
1257
+ var new_data_set_SortType;
1258
+ !function(SortType) {
1259
+ SortType.ASC = "ASC", SortType.DESC = "DESC", SortType.NORMAL = "NORMAL", SortType.desc = "desc", SortType.asc = "asc", SortType.normal = "normal";
1260
+ }(new_data_set_SortType || (new_data_set_SortType = {}));
1261
+ const dataConfig = (spec, context)=>{
1262
+ const { advancedVSeed } = context;
1263
+ const measures = findAllMeasures(advancedVSeed.measures);
1264
+ const aggregationRules = measures.map((measure)=>({
1265
+ field: measure.id,
1266
+ aggregationType: new_data_set_AggregationType.NONE,
1267
+ indicatorKey: measure.id
1268
+ }));
1269
+ return {
1270
+ ...spec,
1271
+ dataConfig: {
1272
+ aggregationRules
1273
+ }
1274
+ };
1275
+ };
1065
1276
  const pivotTableSpecPipeline = [
1066
1277
  initPivotTable,
1067
1278
  pivotColumns,
@@ -1072,7 +1283,8 @@ const pivotTableSpecPipeline = [
1072
1283
  rowHeaderStyle,
1073
1284
  cornerHeaderStyle,
1074
1285
  frameStyle,
1075
- selectionStyle
1286
+ selectionStyle,
1287
+ dataConfig
1076
1288
  ];
1077
1289
  const registerPivotTable = ()=>{
1078
1290
  Builder._advancedPipelineMap.pivotTable = pivotTableAdvancedPipeline;
@@ -1767,7 +1979,7 @@ const background_backgroundColor = (spec, context)=>{
1767
1979
  const datasetXY = (spec, context)=>{
1768
1980
  const { advancedVSeed, vseed } = context;
1769
1981
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
1770
- const { orderMapping = {} } = analysis ?? {};
1982
+ const orderMapping = analysis?.orderMapping || {};
1771
1983
  const angle = encoding[0]?.angle?.[0];
1772
1984
  const x = encoding[0]?.x?.[0];
1773
1985
  const group = encoding[0]?.group?.[0];
@@ -1812,7 +2024,7 @@ const progressive = (spec, context)=>{
1812
2024
  ...spec
1813
2025
  };
1814
2026
  const { advancedVSeed } = context;
1815
- const { dataset } = advancedVSeed;
2027
+ const { dataset = [] } = advancedVSeed;
1816
2028
  const size = dataset.length;
1817
2029
  if (size < 5000) return result;
1818
2030
  result.large = true;
@@ -1917,64 +2129,6 @@ const xBand = (spec, context)=>{
1917
2129
  };
1918
2130
  const ANNOTATION_Z_INDEX = 1000;
1919
2131
  const LINEAR_AXIS_INNER_OFFSET_TOP = 7;
1920
- const createNumFormatter = (format, locale = intl.getLocale())=>{
1921
- const { type = 'number', ratio = 1, symbol = '', thousandSeparator = true, prefix = '', suffix = '', fractionDigits = 2, significantDigits, roundingMode = 'halfExpand', roundingPriority = 'auto' } = format || {};
1922
- const numFormatterOptions = {
1923
- style: 'decimal',
1924
- notation: 'scientific' === type ? 'scientific' : 'standard',
1925
- roundingMode,
1926
- roundingPriority
1927
- };
1928
- if ((0, external_remeda_namespaceObject.isNumber)(fractionDigits)) {
1929
- if (fractionDigits >= 0) {
1930
- numFormatterOptions.minimumFractionDigits = fractionDigits;
1931
- numFormatterOptions.maximumFractionDigits = fractionDigits;
1932
- }
1933
- }
1934
- if ((0, external_remeda_namespaceObject.isNumber)(significantDigits) && significantDigits > 0) {
1935
- if (significantDigits > 0) {
1936
- numFormatterOptions.minimumSignificantDigits = significantDigits;
1937
- numFormatterOptions.maximumSignificantDigits = significantDigits;
1938
- }
1939
- }
1940
- const numFormatter = new Intl.NumberFormat(locale, numFormatterOptions);
1941
- return (value)=>{
1942
- let num = Number(value);
1943
- let typeSymbol = '';
1944
- if (Number.isNaN(num)) return num.toString();
1945
- if ('percent' === type) {
1946
- num *= 100;
1947
- typeSymbol = '%';
1948
- } else if ('permille' === type) {
1949
- num *= 1000;
1950
- typeSymbol = "\u2030";
1951
- } else if ('number' === type) num /= ratio || 1;
1952
- let numStr = numFormatter.format(num);
1953
- if (thousandSeparator) {
1954
- const parts = numStr.split('.');
1955
- parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
1956
- numStr = parts.join('.');
1957
- }
1958
- return `${prefix}${numStr}${typeSymbol}${symbol}${suffix}`;
1959
- };
1960
- };
1961
- const autoNumFormatter = (value, locale = intl.getLocale())=>{
1962
- if (null == value) return String(value);
1963
- const num = Number(value);
1964
- if (Number.isNaN(num)) return String(value);
1965
- const numFormatterOptions = {
1966
- style: 'decimal',
1967
- notation: 'compact'
1968
- };
1969
- numFormatterOptions.minimumFractionDigits = 0;
1970
- numFormatterOptions.maximumFractionDigits = 2;
1971
- const numFormatter = new Intl.NumberFormat(locale, {
1972
- ...numFormatterOptions
1973
- });
1974
- return numFormatter.format(Number(value));
1975
- };
1976
- const createFormatter = (format)=>createNumFormatter(format);
1977
- const autoFormatter = (value, locale)=>autoNumFormatter(value, locale);
1978
2132
  const yLinear = (spec, context)=>{
1979
2133
  const result = {
1980
2134
  ...spec
@@ -2177,7 +2331,11 @@ const verticalCrosshairLine = (spec, context)=>{
2177
2331
  const config = advancedVSeed.config?.[chartType]?.crosshairLine;
2178
2332
  if (!config) return result;
2179
2333
  if (!result.crosshair) result.crosshair = {};
2180
- const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
2334
+ const visible = config.visible || true;
2335
+ const lineColor = config.lineColor || void 0;
2336
+ const labelColor = config.labelColor || void 0;
2337
+ const labelVisible = config.labelVisible || void 0;
2338
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
2181
2339
  const crosshair = result.crosshair;
2182
2340
  crosshair.xField = {
2183
2341
  visible,
@@ -2567,7 +2725,7 @@ const annotationPoint_annotationPoint = (spec, context)=>{
2567
2725
  annotationPoint
2568
2726
  ];
2569
2727
  const markPoint = annotationPointList.flatMap((annotationPoint)=>{
2570
- const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundBorderColor, backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundColor = '#212121', backgroundPadding = 2, backgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
2728
+ const { selector: selectorPoint, text = '', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundBorderColor, textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundColor = '#212121', textBackgroundPadding = 2, textBackgroundVisible = true, offsetX = 0, offsetY = 0 } = annotationPoint;
2571
2729
  const dataset = advancedVSeed.dataset.flat();
2572
2730
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
2573
2731
  return selectedData.map((datum)=>({
@@ -2596,20 +2754,20 @@ const annotationPoint_annotationPoint = (spec, context)=>{
2596
2754
  textAlign: textAlign,
2597
2755
  textBaseline: textBaseline,
2598
2756
  fill: textColor,
2599
- stroke: backgroundColor,
2757
+ stroke: textBackgroundColor,
2600
2758
  lineWidth: 1,
2601
2759
  fontSize: textFontSize,
2602
2760
  fontWeight: textFontWeight,
2603
2761
  dy: textFontSize
2604
2762
  },
2605
2763
  labelBackground: {
2606
- visible: backgroundVisible,
2607
- padding: backgroundPadding,
2764
+ visible: textBackgroundVisible,
2765
+ padding: textBackgroundPadding,
2608
2766
  style: {
2609
- cornerRadius: backgroundBorderRadius ?? 4,
2610
- fill: backgroundColor,
2611
- stroke: backgroundBorderColor,
2612
- lineWidth: backgroundBorderWidth,
2767
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2768
+ fill: textBackgroundColor,
2769
+ stroke: textBackgroundBorderColor,
2770
+ lineWidth: textBackgroundBorderWidth,
2613
2771
  dy: textFontSize
2614
2772
  }
2615
2773
  }
@@ -2639,7 +2797,7 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2639
2797
  insideEnd: 'insideEndTop'
2640
2798
  };
2641
2799
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2642
- const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', backgroundVisible = true, backgroundBorderColor = '#212121', backgroundColor = '#212121', backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundPadding = 2, lineVisible = true, lineColor = '#212121', lineWidth = 1, lineStyle = 'dashed', offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2800
+ const { selector: selectorPoint, xValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', textBackgroundVisible = true, textBackgroundBorderColor = '#212121', textBackgroundColor = '#212121', textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundPadding = 2, lineVisible = true, lineColor = '#212121', lineWidth = 1, lineStyle = 'dashed', offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2643
2801
  const dataset = advancedVSeed.dataset.flat();
2644
2802
  const generateOneMarkLine = (x)=>({
2645
2803
  x: x,
@@ -2665,10 +2823,10 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2665
2823
  },
2666
2824
  label: {
2667
2825
  text: text,
2668
- position: positionMap[textPosition],
2826
+ position: positionMap[textPosition || 'insideEnd'],
2669
2827
  style: {
2670
2828
  visible: true,
2671
- stroke: backgroundColor,
2829
+ stroke: textBackgroundColor,
2672
2830
  lineWidth: 1,
2673
2831
  textAlign: textAlign,
2674
2832
  textBaseline: textBaseline,
@@ -2678,20 +2836,20 @@ const annotationVerticalLine_annotationVerticalLine = (spec, context)=>{
2678
2836
  dy: textFontSize
2679
2837
  },
2680
2838
  labelBackground: {
2681
- visible: backgroundVisible,
2682
- padding: backgroundPadding,
2839
+ visible: textBackgroundVisible,
2840
+ padding: textBackgroundPadding,
2683
2841
  style: {
2684
2842
  dy: textFontSize,
2685
- cornerRadius: backgroundBorderRadius ?? 4,
2686
- fill: backgroundColor,
2687
- stroke: backgroundBorderColor,
2688
- lineWidth: backgroundBorderWidth
2843
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2844
+ fill: textBackgroundColor,
2845
+ stroke: textBackgroundBorderColor,
2846
+ lineWidth: textBackgroundBorderWidth
2689
2847
  }
2690
2848
  }
2691
2849
  },
2692
2850
  endSymbol: {
2693
2851
  visible: true,
2694
- size: 10 + lineWidth,
2852
+ size: 10 + (lineWidth || 1),
2695
2853
  style: {
2696
2854
  dy: 4,
2697
2855
  fill: lineColor
@@ -2738,7 +2896,7 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2738
2896
  insideEnd: 'insideEndTop'
2739
2897
  };
2740
2898
  const markLine = annotationVerticalLineList.flatMap((annotationVerticalLine)=>{
2741
- const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, backgroundVisible = true, backgroundColor = '#212121', backgroundBorderColor = '#212121', backgroundBorderRadius = 4, backgroundBorderWidth = 1, backgroundPadding = 2, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2899
+ const { selector: selectorPoint, yValue, text = '', textPosition = 'insideEnd', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'right', textBaseline = 'top', lineColor = '#212121', lineStyle = 'dashed', lineVisible = true, lineWidth = 1, textBackgroundVisible = true, textBackgroundColor = '#212121', textBackgroundBorderColor = '#212121', textBackgroundBorderRadius = 4, textBackgroundBorderWidth = 1, textBackgroundPadding = 2, offsetX = 0, offsetY = 0 } = annotationVerticalLine;
2742
2900
  const dataset = advancedVSeed.dataset.flat();
2743
2901
  const generateOneMarkLine = (y)=>({
2744
2902
  y,
@@ -2764,11 +2922,11 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2764
2922
  },
2765
2923
  label: {
2766
2924
  text: text,
2767
- position: positionMap[textPosition],
2925
+ position: positionMap[textPosition || 'insideEnd'],
2768
2926
  style: {
2769
2927
  visible: true,
2770
2928
  dy: textFontSize,
2771
- stroke: backgroundColor,
2929
+ stroke: textBackgroundColor,
2772
2930
  lineWidth: 1,
2773
2931
  textAlign: textAlign,
2774
2932
  textBaseline: textBaseline,
@@ -2777,20 +2935,20 @@ const annotationHorizontalLine_annotationHorizontalLine = (spec, context)=>{
2777
2935
  fontWeight: textFontWeight
2778
2936
  },
2779
2937
  labelBackground: {
2780
- visible: backgroundVisible,
2781
- padding: backgroundPadding,
2938
+ visible: textBackgroundVisible,
2939
+ padding: textBackgroundPadding,
2782
2940
  style: {
2783
2941
  dy: textFontSize,
2784
- cornerRadius: backgroundBorderRadius ?? 4,
2785
- fill: backgroundColor,
2786
- stroke: backgroundBorderColor,
2787
- lineWidth: backgroundBorderWidth
2942
+ cornerRadius: textBackgroundBorderRadius ?? 4,
2943
+ fill: textBackgroundColor,
2944
+ stroke: textBackgroundBorderColor,
2945
+ lineWidth: textBackgroundBorderWidth
2788
2946
  }
2789
2947
  }
2790
2948
  },
2791
2949
  endSymbol: {
2792
2950
  visible: true,
2793
- size: 10 + lineWidth,
2951
+ size: 10 + (lineWidth || 1),
2794
2952
  style: {
2795
2953
  dx: -4,
2796
2954
  fill: lineColor
@@ -2839,9 +2997,11 @@ const annotationArea_annotationArea = (spec, context)=>{
2839
2997
  right: 'insideRight'
2840
2998
  };
2841
2999
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
2842
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundVisible = true, backgroundColor = '#191d24', backgroundBorderColor = '#191d24', backgroundBorderWidth = 1, backgroundBorderRadius = 4, backgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
3000
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = true, textBackgroundColor = '#191d24', textBackgroundBorderColor = '#191d24', textBackgroundBorderWidth = 1, textBackgroundBorderRadius = 4, textBackgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
2843
3001
  const dataset = advancedVSeed.dataset.flat();
2844
3002
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3003
+ const labelPosition = positionMap[textPosition || 'top'];
3004
+ const isBottom = labelPosition.toLocaleLowerCase().includes('bottom');
2845
3005
  return {
2846
3006
  zIndex: ANNOTATION_Z_INDEX,
2847
3007
  regionRelative: true,
@@ -2854,8 +3014,8 @@ const annotationArea_annotationArea = (spec, context)=>{
2854
3014
  const xAxisHelper = context.getXAxisHelper();
2855
3015
  if ('function' == typeof xAxisHelper?.getBandwidth) {
2856
3016
  const yScale = yAxisHelper.getScale();
2857
- const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
2858
- const maxX = Math.max(...xyList.map((item)=>item.x)) + outerPadding;
3017
+ const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
3018
+ const maxX = Math.max(...xyList.map((item)=>item.x)) + (outerPadding || 4);
2859
3019
  const minY = Math.min(...yScale.range());
2860
3020
  const maxY = Math.max(...yScale.range());
2861
3021
  return [
@@ -2879,8 +3039,8 @@ const annotationArea_annotationArea = (spec, context)=>{
2879
3039
  }
2880
3040
  if ('function' == typeof yAxisHelper?.getBandwidth) {
2881
3041
  const xScale = xAxisHelper.getScale();
2882
- const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
2883
- const maxY = Math.max(...xyList.map((item)=>item.y)) + outerPadding;
3042
+ const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
3043
+ const maxY = Math.max(...xyList.map((item)=>item.y)) + (outerPadding || 4);
2884
3044
  const minX = Math.min(...xScale.range());
2885
3045
  const maxX = Math.max(...xScale.range());
2886
3046
  return [
@@ -2905,28 +3065,28 @@ const annotationArea_annotationArea = (spec, context)=>{
2905
3065
  return [];
2906
3066
  },
2907
3067
  label: {
2908
- position: positionMap[textPosition],
3068
+ position: labelPosition,
2909
3069
  visible: true,
2910
3070
  text: text,
2911
3071
  style: {
2912
- dy: textFontSize,
3072
+ dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
2913
3073
  textAlign: textAlign,
2914
3074
  textBaseline: textBaseline,
2915
3075
  fill: textColor,
2916
- stroke: backgroundColor,
3076
+ stroke: textBackgroundColor,
2917
3077
  lineWidth: 1,
2918
3078
  fontSize: textFontSize,
2919
3079
  fontWeight: textFontWeight
2920
3080
  },
2921
3081
  labelBackground: {
2922
- visible: backgroundVisible,
2923
- padding: backgroundPadding,
3082
+ visible: textBackgroundVisible,
3083
+ padding: textBackgroundPadding,
2924
3084
  style: {
2925
- dy: textFontSize,
2926
- cornerRadius: backgroundBorderRadius ?? 4,
2927
- fill: backgroundColor,
2928
- stroke: backgroundBorderColor,
2929
- lineWidth: backgroundBorderWidth
3085
+ dy: isBottom ? 2 * -(textFontSize || 12) : textFontSize,
3086
+ cornerRadius: textBackgroundBorderRadius ?? 4,
3087
+ fill: textBackgroundColor,
3088
+ stroke: textBackgroundBorderColor,
3089
+ lineWidth: textBackgroundBorderWidth
2930
3090
  }
2931
3091
  }
2932
3092
  },
@@ -3568,7 +3728,11 @@ const verticalCrosshairRect = (spec, context)=>{
3568
3728
  const config = advancedVSeed.config?.[chartType]?.crosshairRect;
3569
3729
  if (!config) return result;
3570
3730
  if (!result.crosshair) result.crosshair = {};
3571
- const { visible = true, rectColor, labelColor, labelVisible, labelBackgroundColor } = config;
3731
+ const visible = config.visible || true;
3732
+ const rectColor = config.rectColor || void 0;
3733
+ const labelColor = config.labelColor || void 0;
3734
+ const labelVisible = config.labelVisible || false;
3735
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
3572
3736
  const crosshair = result.crosshair;
3573
3737
  crosshair.xField = {
3574
3738
  visible,
@@ -3597,14 +3761,13 @@ const verticalCrosshairRect = (spec, context)=>{
3597
3761
  };
3598
3762
  const barStyle_barStyle = (spec, context)=>{
3599
3763
  const { advancedVSeed } = context;
3600
- const { markStyle, dataset } = advancedVSeed;
3764
+ const { markStyle, dataset = [] } = advancedVSeed;
3601
3765
  const { barStyle } = markStyle;
3602
3766
  const showStroke = dataset.length <= 100;
3603
3767
  const result = {
3604
3768
  ...spec,
3605
3769
  bar: {
3606
3770
  style: {
3607
- stroke: '#fff',
3608
3771
  lineWidth: showStroke ? 1 : 0
3609
3772
  },
3610
3773
  state: {
@@ -3680,7 +3843,7 @@ const annotationAreaBand = (spec, context)=>{
3680
3843
  right: 'insideRight'
3681
3844
  };
3682
3845
  const markArea = annotationAreaList.flatMap((annotationArea)=>{
3683
- const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', backgroundVisible = true, backgroundColor = '#191d24', backgroundBorderColor = '#191d24', backgroundBorderWidth = 1, backgroundBorderRadius = 4, backgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
3846
+ const { selector: selectorPoint, text = '', textPosition = 'top', textColor = '#ffffff', textFontSize = 12, textFontWeight = 400, textAlign = 'center', textBaseline = 'top', textBackgroundVisible = true, textBackgroundColor = '#191d24', textBackgroundBorderColor = '#191d24', textBackgroundBorderWidth = 1, textBackgroundBorderRadius = 4, textBackgroundPadding = 4, areaColor = '#888888', areaColorOpacity = 0.15, areaBorderColor = '#888888', areaBorderRadius = 4, areaBorderWidth = 1, outerPadding = 4, offsetX = 0, offsetY = 0 } = annotationArea;
3684
3847
  const dataset = advancedVSeed.dataset.flat();
3685
3848
  const selectedData = selectorPoint ? dataset.filter((datum)=>selector_selector(datum, selectorPoint)) : [];
3686
3849
  return {
@@ -3697,8 +3860,8 @@ const annotationAreaBand = (spec, context)=>{
3697
3860
  const depth = context.fieldX.length ?? 0;
3698
3861
  const xBandWidth = xAxisHelper?.getBandwidth?.(depth - 1);
3699
3862
  const yScale = yAxisHelper.getScale();
3700
- const minX = Math.min(...xyList.map((item)=>item.x)) - outerPadding;
3701
- const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + outerPadding;
3863
+ const minX = Math.min(...xyList.map((item)=>item.x)) - (outerPadding || 4);
3864
+ const maxX = Math.max(...xyList.map((item)=>item.x)) + xBandWidth + (outerPadding || 4);
3702
3865
  const minY = Math.min(...yScale.range());
3703
3866
  const maxY = Math.max(...yScale.range());
3704
3867
  return [
@@ -3724,8 +3887,8 @@ const annotationAreaBand = (spec, context)=>{
3724
3887
  const depth = context.fieldY.length ?? 0;
3725
3888
  const yBandWidth = yAxisHelper?.getBandwidth?.(depth - 1);
3726
3889
  const xScale = xAxisHelper.getScale();
3727
- const minY = Math.min(...xyList.map((item)=>item.y)) - outerPadding;
3728
- const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + outerPadding;
3890
+ const minY = Math.min(...xyList.map((item)=>item.y)) - (outerPadding || 4);
3891
+ const maxY = Math.max(...xyList.map((item)=>item.y)) + yBandWidth + (outerPadding || 4);
3729
3892
  const minX = Math.min(...xScale.range());
3730
3893
  const maxX = Math.max(...xScale.range());
3731
3894
  return [
@@ -3750,28 +3913,28 @@ const annotationAreaBand = (spec, context)=>{
3750
3913
  return [];
3751
3914
  },
3752
3915
  label: {
3753
- position: positionMap[textPosition],
3916
+ position: positionMap[textPosition || 'top'],
3754
3917
  visible: true,
3755
3918
  text: text,
3756
3919
  style: {
3757
3920
  dy: textFontSize,
3758
3921
  textAlign: textAlign,
3759
3922
  textBaseline: textBaseline,
3760
- stroke: backgroundColor,
3923
+ stroke: textBackgroundColor,
3761
3924
  lineWidth: 1,
3762
3925
  fill: textColor,
3763
3926
  fontSize: textFontSize,
3764
3927
  fontWeight: textFontWeight
3765
3928
  },
3766
3929
  labelBackground: {
3767
- visible: backgroundVisible,
3768
- padding: backgroundPadding,
3930
+ visible: textBackgroundVisible,
3931
+ padding: textBackgroundPadding,
3769
3932
  style: {
3770
3933
  dy: textFontSize,
3771
- cornerRadius: backgroundBorderRadius ?? 4,
3772
- fill: backgroundColor,
3773
- stroke: backgroundBorderColor,
3774
- lineWidth: backgroundBorderWidth
3934
+ cornerRadius: textBackgroundBorderRadius ?? 4,
3935
+ fill: textBackgroundColor,
3936
+ stroke: textBackgroundBorderColor,
3937
+ lineWidth: textBackgroundBorderWidth
3775
3938
  }
3776
3939
  }
3777
3940
  },
@@ -4101,7 +4264,7 @@ const initBar = (spec, context)=>{
4101
4264
  const datasetYX = (spec, context)=>{
4102
4265
  const { advancedVSeed, vseed } = context;
4103
4266
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
4104
- const { orderMapping = {} } = analysis ?? {};
4267
+ const orderMapping = analysis?.orderMapping || {};
4105
4268
  const angle = encoding[0]?.angle?.[0];
4106
4269
  const y = encoding[0]?.y?.[0];
4107
4270
  const group = encoding[0]?.group?.[0];
@@ -4254,7 +4417,7 @@ const yBand = (spec, context)=>{
4254
4417
  label: {
4255
4418
  visible: label?.visible,
4256
4419
  flush: true,
4257
- containerAlign: 'left',
4420
+ containerAlign: 'right',
4258
4421
  space: 8,
4259
4422
  style: {
4260
4423
  maxLineWidth: labelAutoLimitLength,
@@ -4327,7 +4490,11 @@ const horizontalCrosshairRect = (spec, context)=>{
4327
4490
  const config = advancedVSeed.config?.[chartType]?.crosshairRect;
4328
4491
  if (!config) return result;
4329
4492
  if (!result.crosshair) result.crosshair = {};
4330
- const { visible = true, rectColor, labelColor, labelVisible, labelBackgroundColor } = config;
4493
+ const visible = config.visible || true;
4494
+ const rectColor = config.rectColor || void 0;
4495
+ const labelColor = config.labelColor || void 0;
4496
+ const labelVisible = config.labelVisible || false;
4497
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
4331
4498
  const crosshair = result.crosshair;
4332
4499
  crosshair.yField = {
4333
4500
  visible,
@@ -5046,6 +5213,35 @@ const series = (...args)=>{
5046
5213
  return result;
5047
5214
  };
5048
5215
  };
5216
+ const seriesDualAxis = (...args)=>{
5217
+ const result = {
5218
+ type: 'common',
5219
+ padding: 0,
5220
+ region: [
5221
+ {
5222
+ clip: true
5223
+ }
5224
+ ]
5225
+ };
5226
+ const createDualContext = (context, index)=>{
5227
+ const { advancedVSeed } = context;
5228
+ const dataset = advancedVSeed.dataset[index];
5229
+ return {
5230
+ ...context,
5231
+ advancedVSeed: {
5232
+ ...advancedVSeed,
5233
+ dataset: dataset
5234
+ }
5235
+ };
5236
+ };
5237
+ return (_, context)=>{
5238
+ result.series = args.map((pipeline, index)=>{
5239
+ const seriesContext = createDualContext(context, index);
5240
+ return execPipeline(pipeline, seriesContext, {});
5241
+ });
5242
+ return result;
5243
+ };
5244
+ };
5049
5245
  const initAreaRange = (spec, context)=>{
5050
5246
  const result = {
5051
5247
  ...spec
@@ -5475,7 +5671,11 @@ const horizontalCrosshairLine = (spec, context)=>{
5475
5671
  const config = advancedVSeed.config?.[chartType]?.crosshairLine;
5476
5672
  if (!config) return result;
5477
5673
  if (!result.crosshair) result.crosshair = {};
5478
- const { visible = true, lineColor, labelColor, labelVisible, labelBackgroundColor } = config;
5674
+ const visible = config.visible || true;
5675
+ const lineColor = config.lineColor || void 0;
5676
+ const labelColor = config.labelColor || void 0;
5677
+ const labelVisible = config.labelVisible || void 0;
5678
+ const labelBackgroundColor = config.labelBackgroundColor || void 0;
5479
5679
  const crosshair = result.crosshair;
5480
5680
  crosshair.yField = {
5481
5681
  visible,
@@ -5790,15 +5990,18 @@ const autoDualMeasures = (advancedVSeed, context)=>{
5790
5990
  };
5791
5991
  const dualMeasuresToMeasureTree = (dualMeasures)=>{
5792
5992
  const measureTree = dualMeasures.map((item, index)=>{
5793
- const { primaryMeasures, secondaryMeasures, primaryAlias, secondaryAlias } = item;
5993
+ const { primaryMeasures, secondaryMeasures } = item;
5794
5994
  const groupChildren = [];
5995
+ let id = '';
5795
5996
  if (primaryMeasures) {
5796
5997
  const arrPrimaryMeasures = Array.isArray(primaryMeasures) ? primaryMeasures : [
5797
5998
  primaryMeasures
5798
5999
  ];
6000
+ const alias = arrPrimaryMeasures.map((item)=>item.alias || item.id).toString();
6001
+ id += alias;
5799
6002
  groupChildren.push({
5800
6003
  id: `${index}-primary`,
5801
- alias: primaryAlias || arrPrimaryMeasures.map((item)=>item.alias || item.id).toString(),
6004
+ alias: arrPrimaryMeasures.map((item)=>item.alias || item.id).toString(),
5802
6005
  children: arrPrimaryMeasures
5803
6006
  });
5804
6007
  }
@@ -5806,17 +6009,14 @@ const dualMeasuresToMeasureTree = (dualMeasures)=>{
5806
6009
  const arrSecondaryMeasures = Array.isArray(secondaryMeasures) ? secondaryMeasures : [
5807
6010
  secondaryMeasures
5808
6011
  ];
6012
+ const alias = arrSecondaryMeasures.map((item)=>item.alias || item.id).toString();
6013
+ id += alias;
5809
6014
  groupChildren.push({
5810
6015
  id: `${index}-secondary`,
5811
- alias: secondaryAlias || arrSecondaryMeasures.map((item)=>item.alias || item.id).toString(),
6016
+ alias: arrSecondaryMeasures.map((item)=>item.alias || item.id).toString(),
5812
6017
  children: arrSecondaryMeasures
5813
6018
  });
5814
6019
  }
5815
- const id = [
5816
- primaryAlias,
5817
- secondaryAlias,
5818
- index
5819
- ].filter((d)=>!(0, external_remeda_namespaceObject.isNullish)(d)).join('-');
5820
6020
  return {
5821
6021
  id,
5822
6022
  alias: id,
@@ -5978,7 +6178,7 @@ const dualChartTypeSecondary = (spec, context)=>{
5978
6178
  const datasetPrimary = (spec, context)=>{
5979
6179
  const { advancedVSeed, vseed } = context;
5980
6180
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
5981
- const { orderMapping = {} } = analysis ?? {};
6181
+ const orderMapping = analysis?.orderMapping || {};
5982
6182
  const x = encoding[0]?.x?.[0];
5983
6183
  const group = encoding[0]?.group?.[0];
5984
6184
  const id = datasetReshapeInfo[0].id;
@@ -6009,7 +6209,7 @@ const datasetPrimary = (spec, context)=>{
6009
6209
  ...spec,
6010
6210
  data: {
6011
6211
  id: `${id}-primary-dataset`,
6012
- values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset[0],
6212
+ values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
6013
6213
  fields: fields
6014
6214
  }
6015
6215
  };
@@ -6017,7 +6217,7 @@ const datasetPrimary = (spec, context)=>{
6017
6217
  const datasetSecondary = (spec, context)=>{
6018
6218
  const { advancedVSeed, vseed } = context;
6019
6219
  const { encoding, analysis, datasetReshapeInfo } = advancedVSeed;
6020
- const { orderMapping = {} } = analysis ?? {};
6220
+ const orderMapping = analysis?.orderMapping || {};
6021
6221
  const x = encoding[0]?.x?.[0];
6022
6222
  const group = encoding[0]?.group?.[0];
6023
6223
  const id = datasetReshapeInfo[0].id;
@@ -6048,7 +6248,7 @@ const datasetSecondary = (spec, context)=>{
6048
6248
  ...spec,
6049
6249
  data: {
6050
6250
  id: `${id}-secondary-dataset`,
6051
- values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset[1],
6251
+ values: isPivotChart(vseed) ? void 0 : advancedVSeed.dataset,
6052
6252
  fields: fields
6053
6253
  }
6054
6254
  };
@@ -6290,7 +6490,9 @@ const yLinearPrimary = (spec, context)=>{
6290
6490
  const { advancedVSeed, vseed } = context;
6291
6491
  const { chartType } = vseed;
6292
6492
  const { locale, datasetReshapeInfo } = advancedVSeed;
6293
- const config = advancedVSeed.config?.[chartType]?.primaryYAxis;
6493
+ const index = datasetReshapeInfo[0].index;
6494
+ const primaryYAxis = advancedVSeed.config?.[chartType]?.primaryYAxis;
6495
+ const config = Array.isArray(primaryYAxis) ? primaryYAxis[index] || primaryYAxis[0] : primaryYAxis;
6294
6496
  if (datasetReshapeInfo[0].foldInfoList?.[0] && (0, external_remeda_namespaceObject.isEmpty)(datasetReshapeInfo[0].foldInfoList[0].foldMap)) return result;
6295
6497
  const id = `${datasetReshapeInfo[0].id}-primary-axis`;
6296
6498
  const seriesId = `${datasetReshapeInfo[0].id}-primary-series`;
@@ -6389,7 +6591,9 @@ const yLinearSecondary = (spec, context)=>{
6389
6591
  const { advancedVSeed, vseed } = context;
6390
6592
  const { chartType } = vseed;
6391
6593
  const { locale, datasetReshapeInfo } = advancedVSeed;
6392
- const config = advancedVSeed.config?.[chartType]?.secondaryYAxis;
6594
+ const index = datasetReshapeInfo[0].index;
6595
+ const secondaryYAxis = advancedVSeed.config?.[chartType]?.secondaryYAxis;
6596
+ const config = Array.isArray(secondaryYAxis) ? secondaryYAxis[index] || secondaryYAxis[0] : secondaryYAxis;
6393
6597
  if ((0, external_remeda_namespaceObject.isNullish)(datasetReshapeInfo[0].foldInfoList?.[1])) return result;
6394
6598
  const id = `${datasetReshapeInfo[0].id}-secondary-axis`;
6395
6599
  const seriesId = `${datasetReshapeInfo[0].id}-secondary-series`;
@@ -6472,7 +6676,7 @@ const yLinearSecondary = (spec, context)=>{
6472
6676
  return result;
6473
6677
  };
6474
6678
  const dualAxis = [
6475
- series([
6679
+ seriesDualAxis([
6476
6680
  initDualAxisPrimary,
6477
6681
  dualChartTypePrimary,
6478
6682
  datasetPrimary,
@@ -6515,7 +6719,7 @@ const pivotDualAxis = [
6515
6719
  pivotIndicators_pivotIndicatorsAsRow,
6516
6720
  datasetPivot,
6517
6721
  pivotIndicators_pivotIndicators([
6518
- series([
6722
+ seriesDualAxis([
6519
6723
  initDualAxisPrimary,
6520
6724
  dualChartTypePrimary,
6521
6725
  datasetPrimary,
@@ -7909,7 +8113,8 @@ const lightTheme = ()=>{
7909
8113
  hoverHeaderBackgroundColor: '#D9DDE4',
7910
8114
  hoverHeaderInlineBackgroundColor: '#D9DDE455',
7911
8115
  selectedBorderColor: '#4080ff',
7912
- selectedBackgroundColor: '#bedaff33'
8116
+ selectedBackgroundColor: '#bedaff33',
8117
+ backgroundColor: 'transparent'
7913
8118
  };
7914
8119
  return {
7915
8120
  config: {
@@ -7929,8 +8134,8 @@ const lightTheme = ()=>{
7929
8134
  stackCornerRadius: [
7930
8135
  4,
7931
8136
  4,
7932
- 0,
7933
- 0
8137
+ 4,
8138
+ 4
7934
8139
  ]
7935
8140
  },
7936
8141
  columnParallel: {
@@ -7941,8 +8146,8 @@ const lightTheme = ()=>{
7941
8146
  stackCornerRadius: [
7942
8147
  4,
7943
8148
  4,
7944
- 0,
7945
- 0
8149
+ 4,
8150
+ 4
7946
8151
  ]
7947
8152
  },
7948
8153
  columnPercent: {
@@ -7953,8 +8158,8 @@ const lightTheme = ()=>{
7953
8158
  stackCornerRadius: [
7954
8159
  4,
7955
8160
  4,
7956
- 0,
7957
- 0
8161
+ 4,
8162
+ 4
7958
8163
  ]
7959
8164
  },
7960
8165
  bar: {
@@ -7963,10 +8168,10 @@ const lightTheme = ()=>{
7963
8168
  yAxis: barBandAxis,
7964
8169
  crosshairRect,
7965
8170
  stackCornerRadius: [
7966
- 0,
7967
8171
  4,
7968
8172
  4,
7969
- 0
8173
+ 4,
8174
+ 4
7970
8175
  ]
7971
8176
  },
7972
8177
  barParallel: {
@@ -7975,10 +8180,10 @@ const lightTheme = ()=>{
7975
8180
  yAxis: barBandAxis,
7976
8181
  crosshairRect,
7977
8182
  stackCornerRadius: [
7978
- 0,
7979
8183
  4,
7980
8184
  4,
7981
- 0
8185
+ 4,
8186
+ 4
7982
8187
  ]
7983
8188
  },
7984
8189
  barPercent: {
@@ -7987,10 +8192,10 @@ const lightTheme = ()=>{
7987
8192
  yAxis: barBandAxis,
7988
8193
  crosshairRect,
7989
8194
  stackCornerRadius: [
7990
- 0,
7991
8195
  4,
7992
8196
  4,
7993
- 0
8197
+ 4,
8198
+ 4
7994
8199
  ]
7995
8200
  },
7996
8201
  area: {
@@ -8267,8 +8472,8 @@ const darkTheme = ()=>{
8267
8472
  stackCornerRadius: [
8268
8473
  4,
8269
8474
  4,
8270
- 0,
8271
- 0
8475
+ 4,
8476
+ 4
8272
8477
  ]
8273
8478
  },
8274
8479
  columnParallel: {
@@ -8279,8 +8484,8 @@ const darkTheme = ()=>{
8279
8484
  stackCornerRadius: [
8280
8485
  4,
8281
8486
  4,
8282
- 0,
8283
- 0
8487
+ 4,
8488
+ 4
8284
8489
  ]
8285
8490
  },
8286
8491
  columnPercent: {
@@ -8291,8 +8496,8 @@ const darkTheme = ()=>{
8291
8496
  stackCornerRadius: [
8292
8497
  4,
8293
8498
  4,
8294
- 0,
8295
- 0
8499
+ 4,
8500
+ 4
8296
8501
  ]
8297
8502
  },
8298
8503
  bar: {
@@ -8313,10 +8518,10 @@ const darkTheme = ()=>{
8313
8518
  yAxis: barBandAxis,
8314
8519
  crosshairRect: crosshairRect,
8315
8520
  stackCornerRadius: [
8316
- 0,
8317
8521
  4,
8318
8522
  4,
8319
- 0
8523
+ 4,
8524
+ 4
8320
8525
  ]
8321
8526
  },
8322
8527
  barPercent: {
@@ -8325,10 +8530,10 @@ const darkTheme = ()=>{
8325
8530
  yAxis: barBandAxis,
8326
8531
  crosshairRect: crosshairRect,
8327
8532
  stackCornerRadius: [
8328
- 0,
8329
8533
  4,
8330
8534
  4,
8331
- 0
8535
+ 4,
8536
+ 4
8332
8537
  ]
8333
8538
  },
8334
8539
  area: {
@@ -8465,6 +8670,9 @@ const updateAdvanced = (chartType, advancedPipe)=>{
8465
8670
  const updateSpec = (chartType, specPipe)=>{
8466
8671
  Builder._customSpecPipe[chartType] = specPipe;
8467
8672
  };
8673
+ const isDimension = (dimension)=>!('children' in dimension);
8674
+ const isDimensionGroup = (dimension)=>'children' in dimension;
8675
+ const isDimensions = (dimensions)=>dimensions.every(isDimension);
8468
8676
  const external_zod_namespaceObject = require("zod");
8469
8677
  const zChartType = external_zod_namespaceObject.z["enum"]([
8470
8678
  'table',
@@ -8573,9 +8781,7 @@ const zMeasureTree = external_zod_namespaceObject.z.array(zMeasureGroup.or(zMeas
8573
8781
  const zDualMeasure = external_zod_namespaceObject.z.object({
8574
8782
  id: external_zod_namespaceObject.z.string(),
8575
8783
  primaryMeasures: external_zod_namespaceObject.z.array(zMeasure).or(zMeasure).optional(),
8576
- primaryAlias: external_zod_namespaceObject.z.string().optional(),
8577
- secondaryMeasures: external_zod_namespaceObject.z.array(zMeasure).or(zMeasure).optional(),
8578
- secondaryAlias: external_zod_namespaceObject.z.string().optional()
8784
+ secondaryMeasures: external_zod_namespaceObject.z.array(zMeasure).or(zMeasure).optional()
8579
8785
  });
8580
8786
  const zDualMeasures = external_zod_namespaceObject.z.array(zDualMeasure);
8581
8787
  const zFoldInfo = external_zod_namespaceObject.z.object({
@@ -8594,117 +8800,117 @@ const zDatasetReshapeInfo = external_zod_namespaceObject.z.array(external_zod_na
8594
8800
  id: external_zod_namespaceObject.z.string(),
8595
8801
  index: external_zod_namespaceObject.z.number(),
8596
8802
  foldInfo: zFoldInfo,
8597
- foldInfoList: external_zod_namespaceObject.z.array(zFoldInfo).optional(),
8803
+ foldInfoList: external_zod_namespaceObject.z.array(zFoldInfo).nullish(),
8598
8804
  unfoldInfo: zUnfoldInfo
8599
8805
  }));
8600
8806
  const zEncoding = external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.object({
8601
- x: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8602
- y: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8603
- color: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8604
- group: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8605
- angle: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8606
- radius: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8607
- tooltip: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8608
- size: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional()
8807
+ x: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8808
+ y: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8809
+ color: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8810
+ group: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8811
+ angle: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8812
+ radius: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8813
+ tooltip: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8814
+ size: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish()
8609
8815
  }));
8610
8816
  const zXBandAxis = external_zod_namespaceObject.z.object({
8611
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8612
- labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).optional(),
8613
- labelAutoHideGap: external_zod_namespaceObject.z.number().default(0).optional(),
8614
- labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).optional(),
8817
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8818
+ labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8819
+ labelAutoHideGap: external_zod_namespaceObject.z.number().default(0).nullish(),
8820
+ labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8615
8821
  labelAutoRotateAngleRange: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number()).default([
8616
8822
  0,
8617
8823
  -45,
8618
8824
  -90
8619
- ]).optional(),
8620
- labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).optional(),
8621
- labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).optional(),
8825
+ ]).nullish(),
8826
+ labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8827
+ labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).nullish(),
8622
8828
  label: external_zod_namespaceObject.z.object({
8623
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8624
- labelColor: external_zod_namespaceObject.z.string().default('#797B85').optional(),
8625
- labelFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8626
- labelFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
8627
- labelAngle: external_zod_namespaceObject.z.number().default(0).optional()
8628
- }).optional(),
8829
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8830
+ labelColor: external_zod_namespaceObject.z.string().default('#797B85').nullish(),
8831
+ labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
8832
+ labelFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
8833
+ labelAngle: external_zod_namespaceObject.z.number().default(0).nullish()
8834
+ }).nullish(),
8629
8835
  line: external_zod_namespaceObject.z.object({
8630
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8631
- lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8632
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional()
8633
- }).optional(),
8836
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8837
+ lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8838
+ lineWidth: external_zod_namespaceObject.z.number().default(1).nullish()
8839
+ }).nullish(),
8634
8840
  tick: external_zod_namespaceObject.z.object({
8635
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8636
- tickInside: external_zod_namespaceObject.z.boolean().default(false).optional(),
8637
- tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8638
- tickSize: external_zod_namespaceObject.z.number().default(4).optional()
8639
- }).optional(),
8841
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8842
+ tickInside: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8843
+ tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8844
+ tickSize: external_zod_namespaceObject.z.number().default(4).nullish()
8845
+ }).nullish(),
8640
8846
  title: external_zod_namespaceObject.z.object({
8641
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8642
- titleText: external_zod_namespaceObject.z.string().default('').optional(),
8643
- titleColor: external_zod_namespaceObject.z.string().default('#646A73').optional(),
8644
- titleFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8645
- titleFontWeight: external_zod_namespaceObject.z.number().default(400).optional()
8646
- }).optional(),
8847
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8848
+ titleText: external_zod_namespaceObject.z.string().default('').nullish(),
8849
+ titleColor: external_zod_namespaceObject.z.string().default('#646A73').nullish(),
8850
+ titleFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
8851
+ titleFontWeight: external_zod_namespaceObject.z.number().default(400).nullish()
8852
+ }).nullish(),
8647
8853
  grid: external_zod_namespaceObject.z.object({
8648
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8649
- gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').optional(),
8650
- gridWidth: external_zod_namespaceObject.z.number().default(0.5).optional()
8651
- }).optional()
8854
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8855
+ gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
8856
+ gridWidth: external_zod_namespaceObject.z.number().default(0.5).nullish()
8857
+ }).nullish()
8652
8858
  });
8653
8859
  const zYBandAxis = zXBandAxis;
8654
8860
  const zXLinearAxis = external_zod_namespaceObject.z.object({
8655
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8656
- min: external_zod_namespaceObject.z.number().optional(),
8657
- max: external_zod_namespaceObject.z.number().optional(),
8658
- nice: external_zod_namespaceObject.z.boolean().default(true).optional(),
8659
- zero: external_zod_namespaceObject.z.boolean().default(true).optional(),
8660
- log: external_zod_namespaceObject.z.boolean().default(false).optional(),
8661
- logBase: external_zod_namespaceObject.z.number().default(10).optional(),
8662
- inverse: external_zod_namespaceObject.z.boolean().default(false).optional(),
8861
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8862
+ min: external_zod_namespaceObject.z.number().nullish(),
8863
+ max: external_zod_namespaceObject.z.number().nullish(),
8864
+ nice: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8865
+ zero: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8866
+ log: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8867
+ logBase: external_zod_namespaceObject.z.number().default(10).nullish(),
8868
+ inverse: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8663
8869
  label: external_zod_namespaceObject.z.object({
8664
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8665
- labelColor: external_zod_namespaceObject.z.string().default('#797B85').optional(),
8666
- labelFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8667
- labelFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
8668
- labelAngle: external_zod_namespaceObject.z.number().default(0).optional()
8669
- }).optional(),
8870
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8871
+ labelColor: external_zod_namespaceObject.z.string().default('#797B85').nullish(),
8872
+ labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
8873
+ labelFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
8874
+ labelAngle: external_zod_namespaceObject.z.number().default(0).nullish()
8875
+ }).nullish(),
8670
8876
  line: external_zod_namespaceObject.z.object({
8671
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8672
- lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8673
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional()
8674
- }).optional(),
8877
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8878
+ lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8879
+ lineWidth: external_zod_namespaceObject.z.number().default(1).nullish()
8880
+ }).nullish(),
8675
8881
  tick: external_zod_namespaceObject.z.object({
8676
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8677
- tickInside: external_zod_namespaceObject.z.boolean().default(false).optional(),
8678
- tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8679
- tickSize: external_zod_namespaceObject.z.number().default(4).optional()
8680
- }).optional(),
8882
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8883
+ tickInside: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8884
+ tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
8885
+ tickSize: external_zod_namespaceObject.z.number().default(4).nullish()
8886
+ }).nullish(),
8681
8887
  title: external_zod_namespaceObject.z.object({
8682
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8683
- titleText: external_zod_namespaceObject.z.string().default('').optional(),
8684
- titleColor: external_zod_namespaceObject.z.string().default('#646A73').optional(),
8685
- titleFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8686
- titleFontWeight: external_zod_namespaceObject.z.number().default(400).optional()
8687
- }).optional(),
8888
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8889
+ titleText: external_zod_namespaceObject.z.string().default('').nullish(),
8890
+ titleColor: external_zod_namespaceObject.z.string().default('#646A73').nullish(),
8891
+ titleFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
8892
+ titleFontWeight: external_zod_namespaceObject.z.number().default(400).nullish()
8893
+ }).nullish(),
8688
8894
  grid: external_zod_namespaceObject.z.object({
8689
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8690
- gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').optional(),
8691
- gridWidth: external_zod_namespaceObject.z.number().default(0.5).optional()
8692
- }).optional()
8895
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
8896
+ gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
8897
+ gridWidth: external_zod_namespaceObject.z.number().default(0.5).nullish()
8898
+ }).nullish()
8693
8899
  });
8694
8900
  const zYLinearAxis = zXLinearAxis;
8695
8901
  const zCrosshairLine = external_zod_namespaceObject.z.object({
8696
- visible: external_zod_namespaceObject.z.boolean().optional(),
8697
- lineColor: external_zod_namespaceObject.z.string().optional(),
8698
- labelColor: external_zod_namespaceObject.z.string().optional(),
8699
- labelVisible: external_zod_namespaceObject.z.boolean().optional(),
8700
- labelBackgroundColor: external_zod_namespaceObject.z.string().optional()
8902
+ visible: external_zod_namespaceObject.z.boolean().nullish(),
8903
+ lineColor: external_zod_namespaceObject.z.string().nullish(),
8904
+ labelColor: external_zod_namespaceObject.z.string().nullish(),
8905
+ labelVisible: external_zod_namespaceObject.z.boolean().nullish(),
8906
+ labelBackgroundColor: external_zod_namespaceObject.z.string().nullish()
8701
8907
  });
8702
8908
  const zCrosshairRect = external_zod_namespaceObject.z.object({
8703
- visible: external_zod_namespaceObject.z.boolean().optional(),
8704
- rectColor: external_zod_namespaceObject.z.string().optional(),
8705
- labelColor: external_zod_namespaceObject.z.string().optional(),
8706
- labelVisible: external_zod_namespaceObject.z.boolean().optional(),
8707
- labelBackgroundColor: external_zod_namespaceObject.z.string().optional()
8909
+ visible: external_zod_namespaceObject.z.boolean().nullish(),
8910
+ rectColor: external_zod_namespaceObject.z.string().nullish(),
8911
+ labelColor: external_zod_namespaceObject.z.string().nullish(),
8912
+ labelVisible: external_zod_namespaceObject.z.boolean().nullish(),
8913
+ labelBackgroundColor: external_zod_namespaceObject.z.string().nullish()
8708
8914
  });
8709
8915
  const zStackCornerRadius = external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number())).default([
8710
8916
  3,
@@ -8712,21 +8918,21 @@ const zStackCornerRadius = external_zod_namespaceObject.z.number().or(external_z
8712
8918
  0,
8713
8919
  0
8714
8920
  ]);
8715
- const zBackgroundColor = external_zod_namespaceObject.z.string().default('transparent').optional();
8921
+ const zBackgroundColor = external_zod_namespaceObject.z.string().default('transparent').nullish();
8716
8922
  const zColor = external_zod_namespaceObject.z.object({
8717
- colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
8718
- colorMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.string()).optional()
8923
+ colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish(),
8924
+ colorMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.string()).nullish()
8719
8925
  });
8720
8926
  const zLinearColor = external_zod_namespaceObject.z.object({
8721
- colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional()
8927
+ colorScheme: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).nullish()
8722
8928
  });
8723
8929
  const zLabel = external_zod_namespaceObject.z.object({
8724
- enable: external_zod_namespaceObject.z.boolean().default(true).optional()
8930
+ enable: external_zod_namespaceObject.z.boolean().default(true).nullish()
8725
8931
  });
8726
8932
  const zLegend = external_zod_namespaceObject.z.object({
8727
- enable: external_zod_namespaceObject.z.boolean().default(true).optional(),
8728
- border: external_zod_namespaceObject.z.boolean().default(true).optional(),
8729
- maxSize: external_zod_namespaceObject.z.number().default(1).optional(),
8933
+ enable: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8934
+ border: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8935
+ maxSize: external_zod_namespaceObject.z.number().default(1).nullish(),
8730
8936
  shapeType: external_zod_namespaceObject.z["enum"]([
8731
8937
  'circle',
8732
8938
  'cross',
@@ -8750,7 +8956,7 @@ const zLegend = external_zod_namespaceObject.z.object({
8750
8956
  'arrowRight',
8751
8957
  'rectRound',
8752
8958
  'roundLine'
8753
- ]).default('rectRound').optional(),
8959
+ ]).default('rectRound').nullish(),
8754
8960
  position: external_zod_namespaceObject.z["enum"]([
8755
8961
  'left',
8756
8962
  'leftTop',
@@ -8772,10 +8978,10 @@ const zLegend = external_zod_namespaceObject.z.object({
8772
8978
  'bottomRight',
8773
8979
  'bl',
8774
8980
  'br'
8775
- ]).default('bottom').optional(),
8776
- labelFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8777
- labelFontColor: external_zod_namespaceObject.z.string().default('#fff').optional(),
8778
- labelFontWeight: external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.string()).default(400).optional()
8981
+ ]).default('bottom').nullish(),
8982
+ labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
8983
+ labelFontColor: external_zod_namespaceObject.z.string().default('#fff').nullish(),
8984
+ labelFontWeight: external_zod_namespaceObject.z.number().or(external_zod_namespaceObject.z.string()).default(400).nullish()
8779
8985
  });
8780
8986
  const zColorLegend = external_zod_namespaceObject.z.object({
8781
8987
  position: external_zod_namespaceObject.z["enum"]([
@@ -8799,194 +9005,195 @@ const zColorLegend = external_zod_namespaceObject.z.object({
8799
9005
  'bottomRight',
8800
9006
  'bl',
8801
9007
  'br'
8802
- ]).default('bottom').optional(),
8803
- enable: external_zod_namespaceObject.z.boolean().default(true).optional()
9008
+ ]).default('bottom').nullish(),
9009
+ enable: external_zod_namespaceObject.z.boolean().default(true).nullish()
8804
9010
  });
8805
9011
  const zTooltip = external_zod_namespaceObject.z.object({
8806
- enable: external_zod_namespaceObject.z.boolean().default(true).optional()
9012
+ enable: external_zod_namespaceObject.z.boolean().default(true).nullish()
8807
9013
  });
8808
9014
  const zTableConfig = external_zod_namespaceObject.z.object({
8809
- borderColor: external_zod_namespaceObject.z.string().optional(),
8810
- bodyFontSize: external_zod_namespaceObject.z.number().optional(),
8811
- bodyFontColor: external_zod_namespaceObject.z.string().optional(),
8812
- bodyBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8813
- hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8814
- hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8815
- headerFontSize: external_zod_namespaceObject.z.number().optional(),
8816
- headerFontColor: external_zod_namespaceObject.z.string().optional(),
8817
- headerBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8818
- hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8819
- hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().optional(),
8820
- selectedBorderColor: external_zod_namespaceObject.z.string().optional(),
8821
- selectedBackgroundColor: external_zod_namespaceObject.z.string().optional()
9015
+ backgroundColor: zBackgroundColor.nullish(),
9016
+ borderColor: external_zod_namespaceObject.z.string().nullish(),
9017
+ bodyFontSize: external_zod_namespaceObject.z.number().nullish(),
9018
+ bodyFontColor: external_zod_namespaceObject.z.string().nullish(),
9019
+ bodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9020
+ hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9021
+ hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9022
+ headerFontSize: external_zod_namespaceObject.z.number().nullish(),
9023
+ headerFontColor: external_zod_namespaceObject.z.string().nullish(),
9024
+ headerBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9025
+ hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9026
+ hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9027
+ selectedBorderColor: external_zod_namespaceObject.z.string().nullish(),
9028
+ selectedBackgroundColor: external_zod_namespaceObject.z.string().nullish()
8822
9029
  });
8823
9030
  const zPivotTableConfig = zTableConfig;
8824
9031
  const zLineConfig = external_zod_namespaceObject.z.object({
8825
- backgroundColor: zBackgroundColor.optional(),
8826
- label: zLabel.optional(),
8827
- color: zColor.optional(),
8828
- tooltip: zTooltip.optional(),
8829
- legend: zLegend.optional(),
8830
- xAxis: zXBandAxis.optional(),
8831
- yAxis: zYLinearAxis.optional(),
8832
- crosshairLine: zCrosshairLine.optional()
9032
+ backgroundColor: zBackgroundColor.nullish(),
9033
+ label: zLabel.nullish(),
9034
+ color: zColor.nullish(),
9035
+ tooltip: zTooltip.nullish(),
9036
+ legend: zLegend.nullish(),
9037
+ xAxis: zXBandAxis.nullish(),
9038
+ yAxis: zYLinearAxis.nullish(),
9039
+ crosshairLine: zCrosshairLine.nullish()
8833
9040
  });
8834
9041
  const zColumnConfig = external_zod_namespaceObject.z.object({
8835
- backgroundColor: zBackgroundColor.optional(),
8836
- label: zLabel.optional(),
8837
- color: zColor.optional(),
8838
- tooltip: zTooltip.optional(),
8839
- legend: zLegend.optional(),
8840
- xAxis: zXBandAxis.optional(),
8841
- yAxis: zYLinearAxis.optional(),
8842
- crosshairRect: zCrosshairRect.optional(),
8843
- stackCornerRadius: zStackCornerRadius.optional()
9042
+ backgroundColor: zBackgroundColor.nullish(),
9043
+ label: zLabel.nullish(),
9044
+ color: zColor.nullish(),
9045
+ tooltip: zTooltip.nullish(),
9046
+ legend: zLegend.nullish(),
9047
+ xAxis: zXBandAxis.nullish(),
9048
+ yAxis: zYLinearAxis.nullish(),
9049
+ crosshairRect: zCrosshairRect.nullish(),
9050
+ stackCornerRadius: zStackCornerRadius.nullish()
8844
9051
  });
8845
9052
  const zColumnParallelConfig = zColumnConfig;
8846
9053
  const zColumnPercentConfig = zColumnConfig;
8847
9054
  const zBarConfig = external_zod_namespaceObject.z.object({
8848
- backgroundColor: zBackgroundColor.optional(),
8849
- label: zLabel.optional(),
8850
- color: zColor.optional(),
8851
- tooltip: zTooltip.optional(),
8852
- legend: zLegend.optional(),
8853
- xAxis: zXLinearAxis.optional(),
8854
- yAxis: zYBandAxis.optional(),
8855
- crosshairRect: zCrosshairRect.optional(),
8856
- stackCornerRadius: zStackCornerRadius.optional()
9055
+ backgroundColor: zBackgroundColor.nullish(),
9056
+ label: zLabel.nullish(),
9057
+ color: zColor.nullish(),
9058
+ tooltip: zTooltip.nullish(),
9059
+ legend: zLegend.nullish(),
9060
+ xAxis: zXLinearAxis.nullish(),
9061
+ yAxis: zYBandAxis.nullish(),
9062
+ crosshairRect: zCrosshairRect.nullish(),
9063
+ stackCornerRadius: zStackCornerRadius.nullish()
8857
9064
  });
8858
9065
  const zBarParallelConfig = zBarConfig;
8859
9066
  const zBarPercentConfig = zBarConfig;
8860
9067
  const zAreaConfig = external_zod_namespaceObject.z.object({
8861
- backgroundColor: zBackgroundColor.optional(),
8862
- label: zLabel.optional(),
8863
- color: zColor.optional(),
8864
- tooltip: zTooltip.optional(),
8865
- legend: zLegend.optional(),
8866
- xAxis: zXBandAxis.optional(),
8867
- yAxis: zYLinearAxis.optional(),
8868
- crosshairLine: zCrosshairLine.optional()
9068
+ backgroundColor: zBackgroundColor.nullish(),
9069
+ label: zLabel.nullish(),
9070
+ color: zColor.nullish(),
9071
+ tooltip: zTooltip.nullish(),
9072
+ legend: zLegend.nullish(),
9073
+ xAxis: zXBandAxis.nullish(),
9074
+ yAxis: zYLinearAxis.nullish(),
9075
+ crosshairLine: zCrosshairLine.nullish()
8869
9076
  });
8870
9077
  const zAreaPercentConfig = zAreaConfig;
8871
9078
  const zAreaRangeConfig = zAreaConfig;
8872
9079
  const zDualAxisConfig = external_zod_namespaceObject.z.object({
8873
- backgroundColor: zBackgroundColor.optional(),
8874
- label: zLabel.optional(),
8875
- color: zColor.optional(),
8876
- tooltip: zTooltip.optional(),
8877
- legend: zLegend.optional(),
8878
- dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).optional(),
8879
- primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).optional(),
8880
- secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).optional(),
8881
- xAxis: zXBandAxis.optional(),
8882
- crosshairRect: zCrosshairRect.optional()
9080
+ backgroundColor: zBackgroundColor.nullish(),
9081
+ label: zLabel.nullish(),
9082
+ color: zColor.nullish(),
9083
+ tooltip: zTooltip.nullish(),
9084
+ legend: zLegend.nullish(),
9085
+ dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).nullish(),
9086
+ primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9087
+ secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9088
+ xAxis: zXBandAxis.nullish(),
9089
+ crosshairRect: zCrosshairRect.nullish()
8883
9090
  });
8884
9091
  const zScatterConfig = external_zod_namespaceObject.z.object({
8885
- backgroundColor: zBackgroundColor.optional(),
8886
- label: zLabel.optional(),
8887
- color: zColor.optional(),
8888
- tooltip: zTooltip.optional(),
8889
- legend: zLegend.optional(),
8890
- xAxis: zXLinearAxis.optional(),
8891
- yAxis: zYLinearAxis.optional(),
8892
- crosshairLine: zCrosshairLine.optional()
9092
+ backgroundColor: zBackgroundColor.nullish(),
9093
+ label: zLabel.nullish(),
9094
+ color: zColor.nullish(),
9095
+ tooltip: zTooltip.nullish(),
9096
+ legend: zLegend.nullish(),
9097
+ xAxis: zXLinearAxis.nullish(),
9098
+ yAxis: zYLinearAxis.nullish(),
9099
+ crosshairLine: zCrosshairLine.nullish()
8893
9100
  });
8894
9101
  const zRoseConfig = external_zod_namespaceObject.z.object({
8895
- backgroundColor: zBackgroundColor.optional(),
8896
- label: zLabel.optional(),
8897
- color: zColor.optional(),
8898
- tooltip: zTooltip.optional(),
8899
- legend: zLegend.optional()
9102
+ backgroundColor: zBackgroundColor.nullish(),
9103
+ label: zLabel.nullish(),
9104
+ color: zColor.nullish(),
9105
+ tooltip: zTooltip.nullish(),
9106
+ legend: zLegend.nullish()
8900
9107
  });
8901
9108
  const zRoseParallelConfig = zRoseConfig;
8902
9109
  const zPieConfig = external_zod_namespaceObject.z.object({
8903
- backgroundColor: zBackgroundColor.optional(),
8904
- label: zLabel.optional(),
8905
- color: zColor.optional(),
8906
- tooltip: zTooltip.optional(),
8907
- legend: zLegend.optional()
9110
+ backgroundColor: zBackgroundColor.nullish(),
9111
+ label: zLabel.nullish(),
9112
+ color: zColor.nullish(),
9113
+ tooltip: zTooltip.nullish(),
9114
+ legend: zLegend.nullish()
8908
9115
  });
8909
9116
  const zDonutConfig = zPieConfig;
8910
9117
  const zRadarConfig = zPieConfig;
8911
9118
  const zFunnelConfig = zPieConfig;
8912
9119
  const zHeatmapConfig = zPieConfig;
8913
9120
  const zConfig = external_zod_namespaceObject.z.object({
8914
- table: zTableConfig.optional(),
8915
- pivotTable: zPivotTableConfig.optional(),
8916
- line: zLineConfig.optional(),
8917
- column: zColumnConfig.optional(),
8918
- columnParallel: zColumnParallelConfig.optional(),
8919
- columnPercent: zColumnPercentConfig.optional(),
8920
- bar: zBarConfig.optional(),
8921
- barParallel: zBarParallelConfig.optional(),
8922
- barPercent: zBarPercentConfig.optional(),
8923
- area: zAreaConfig.optional(),
8924
- areaPercent: zAreaPercentConfig.optional(),
8925
- areaRange: zAreaRangeConfig.optional(),
8926
- scatter: zScatterConfig.optional(),
8927
- dualAxis: zDualAxisConfig.optional(),
8928
- rose: zRoseConfig.optional(),
8929
- roseParallel: zRoseParallelConfig.optional(),
8930
- pie: zPieConfig.optional(),
8931
- donut: zDonutConfig.optional(),
8932
- radar: zRadarConfig.optional(),
8933
- funnel: zFunnelConfig.optional(),
8934
- heatmap: zHeatmapConfig.optional()
9121
+ table: zTableConfig.nullish(),
9122
+ pivotTable: zPivotTableConfig.nullish(),
9123
+ line: zLineConfig.nullish(),
9124
+ column: zColumnConfig.nullish(),
9125
+ columnParallel: zColumnParallelConfig.nullish(),
9126
+ columnPercent: zColumnPercentConfig.nullish(),
9127
+ bar: zBarConfig.nullish(),
9128
+ barParallel: zBarParallelConfig.nullish(),
9129
+ barPercent: zBarPercentConfig.nullish(),
9130
+ area: zAreaConfig.nullish(),
9131
+ areaPercent: zAreaPercentConfig.nullish(),
9132
+ areaRange: zAreaRangeConfig.nullish(),
9133
+ scatter: zScatterConfig.nullish(),
9134
+ dualAxis: zDualAxisConfig.nullish(),
9135
+ rose: zRoseConfig.nullish(),
9136
+ roseParallel: zRoseParallelConfig.nullish(),
9137
+ pie: zPieConfig.nullish(),
9138
+ donut: zDonutConfig.nullish(),
9139
+ radar: zRadarConfig.nullish(),
9140
+ funnel: zFunnelConfig.nullish(),
9141
+ heatmap: zHeatmapConfig.nullish()
8935
9142
  });
8936
9143
  const zAxis = external_zod_namespaceObject.z.object({
8937
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8938
- min: external_zod_namespaceObject.z.number().optional(),
8939
- max: external_zod_namespaceObject.z.number().optional(),
8940
- nice: external_zod_namespaceObject.z.boolean().default(true).optional(),
8941
- zero: external_zod_namespaceObject.z.boolean().default(true).optional(),
8942
- inverse: external_zod_namespaceObject.z.boolean().default(false).optional(),
8943
- log: external_zod_namespaceObject.z.boolean().default(false).optional(),
8944
- logBase: external_zod_namespaceObject.z.number().default(10).optional(),
8945
- labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).optional(),
8946
- labelAutoHideGap: external_zod_namespaceObject.z.number().default(4).optional(),
8947
- labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).optional(),
9144
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9145
+ min: external_zod_namespaceObject.z.number().nullish(),
9146
+ max: external_zod_namespaceObject.z.number().nullish(),
9147
+ nice: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9148
+ zero: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9149
+ inverse: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9150
+ log: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9151
+ logBase: external_zod_namespaceObject.z.number().default(10).nullish(),
9152
+ labelAutoHide: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9153
+ labelAutoHideGap: external_zod_namespaceObject.z.number().default(4).nullish(),
9154
+ labelAutoRotate: external_zod_namespaceObject.z.boolean().default(true).nullish(),
8948
9155
  labelAutoRotateAngleRange: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number()).default([
8949
9156
  0,
8950
9157
  -45,
8951
9158
  -90
8952
- ]).optional(),
8953
- labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).optional(),
8954
- labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).optional(),
9159
+ ]).nullish(),
9160
+ labelAutoLimit: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9161
+ labelAutoLimitLength: external_zod_namespaceObject.z.number().default(100).nullish(),
8955
9162
  label: external_zod_namespaceObject.z.object({
8956
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8957
- labelColor: external_zod_namespaceObject.z.string().default('#797B85').optional(),
8958
- labelFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8959
- labelFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
8960
- labelAngle: external_zod_namespaceObject.z.number().default(0).optional()
8961
- }).optional(),
9163
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9164
+ labelColor: external_zod_namespaceObject.z.string().default('#797B85').nullish(),
9165
+ labelFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9166
+ labelFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9167
+ labelAngle: external_zod_namespaceObject.z.number().default(0).nullish()
9168
+ }).nullish(),
8962
9169
  line: external_zod_namespaceObject.z.object({
8963
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8964
- lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8965
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional()
8966
- }).optional(),
9170
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9171
+ lineColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
9172
+ lineWidth: external_zod_namespaceObject.z.number().default(1).nullish()
9173
+ }).nullish(),
8967
9174
  tick: external_zod_namespaceObject.z.object({
8968
- visible: external_zod_namespaceObject.z.boolean().default(true).optional(),
8969
- tickInside: external_zod_namespaceObject.z.boolean().default(false).optional(),
8970
- tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').optional(),
8971
- tickSize: external_zod_namespaceObject.z.number().default(4).optional()
8972
- }).optional(),
9175
+ visible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9176
+ tickInside: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9177
+ tickColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.30)').nullish(),
9178
+ tickSize: external_zod_namespaceObject.z.number().default(4).nullish()
9179
+ }).nullish(),
8973
9180
  title: external_zod_namespaceObject.z.object({
8974
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8975
- titleText: external_zod_namespaceObject.z.string().default('').optional(),
8976
- titleColor: external_zod_namespaceObject.z.string().default('#646A73').optional(),
8977
- titleFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
8978
- titleFontWeight: external_zod_namespaceObject.z.number().default(400).optional()
8979
- }).optional(),
9181
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9182
+ titleText: external_zod_namespaceObject.z.string().default('').nullish(),
9183
+ titleColor: external_zod_namespaceObject.z.string().default('#646A73').nullish(),
9184
+ titleFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9185
+ titleFontWeight: external_zod_namespaceObject.z.number().default(400).nullish()
9186
+ }).nullish(),
8980
9187
  grid: external_zod_namespaceObject.z.object({
8981
- visible: external_zod_namespaceObject.z.boolean().default(false).optional(),
8982
- gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').optional(),
8983
- gridWidth: external_zod_namespaceObject.z.number().default(0.5).optional()
8984
- }).optional()
9188
+ visible: external_zod_namespaceObject.z.boolean().default(false).nullish(),
9189
+ gridColor: external_zod_namespaceObject.z.string().default('rgba(54, 65, 89, 0.15)').nullish(),
9190
+ gridWidth: external_zod_namespaceObject.z.number().default(0.5).nullish()
9191
+ }).nullish()
8985
9192
  });
8986
9193
  const zCustomThemeConfig = external_zod_namespaceObject.z.object({
8987
- config: zConfig.optional()
9194
+ config: zConfig.nullish()
8988
9195
  });
8989
- const zCustomTheme = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), zCustomThemeConfig).optional();
9196
+ const zCustomTheme = external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), zCustomThemeConfig).nullish();
8990
9197
  const zTheme = external_zod_namespaceObject.z.string();
8991
9198
  const zSelector = external_zod_namespaceObject.z.union([
8992
9199
  external_zod_namespaceObject.z.string(),
@@ -9002,7 +9209,7 @@ const zSelector = external_zod_namespaceObject.z.union([
9002
9209
  '>=',
9003
9210
  '<=',
9004
9211
  'between'
9005
- ]).optional(),
9212
+ ]).nullish(),
9006
9213
  op: external_zod_namespaceObject.z["enum"]([
9007
9214
  '=',
9008
9215
  '==',
@@ -9012,7 +9219,7 @@ const zSelector = external_zod_namespaceObject.z.union([
9012
9219
  '>=',
9013
9220
  '<=',
9014
9221
  'between'
9015
- ]).optional(),
9222
+ ]).nullish(),
9016
9223
  value: external_zod_namespaceObject.z.union([
9017
9224
  external_zod_namespaceObject.z.string(),
9018
9225
  external_zod_namespaceObject.z.number(),
@@ -9027,11 +9234,11 @@ const zSelector = external_zod_namespaceObject.z.union([
9027
9234
  operator: external_zod_namespaceObject.z["enum"]([
9028
9235
  'in',
9029
9236
  'not in'
9030
- ]).optional(),
9237
+ ]).nullish(),
9031
9238
  op: external_zod_namespaceObject.z["enum"]([
9032
9239
  'in',
9033
9240
  'not in'
9034
- ]).optional(),
9241
+ ]).nullish(),
9035
9242
  value: external_zod_namespaceObject.z.union([
9036
9243
  external_zod_namespaceObject.z.string(),
9037
9244
  external_zod_namespaceObject.z.number(),
@@ -9047,103 +9254,103 @@ const zBarStyle = external_zod_namespaceObject.z.object({
9047
9254
  selector: external_zod_namespaceObject.z.union([
9048
9255
  zSelector,
9049
9256
  zSelectors
9050
- ]).optional(),
9051
- barColor: external_zod_namespaceObject.z.string().optional(),
9052
- barColorOpacity: external_zod_namespaceObject.z.number().optional(),
9053
- barBorderColor: external_zod_namespaceObject.z.string().optional(),
9054
- barBorderWidth: external_zod_namespaceObject.z.number().optional(),
9257
+ ]).nullish(),
9258
+ barColor: external_zod_namespaceObject.z.string().nullish(),
9259
+ barColorOpacity: external_zod_namespaceObject.z.number().nullish(),
9260
+ barBorderColor: external_zod_namespaceObject.z.string().nullish(),
9261
+ barBorderWidth: external_zod_namespaceObject.z.number().nullish(),
9055
9262
  barBorderStyle: external_zod_namespaceObject.z.union([
9056
9263
  external_zod_namespaceObject.z.literal('solid'),
9057
9264
  external_zod_namespaceObject.z.literal('dashed'),
9058
9265
  external_zod_namespaceObject.z.literal('dotted')
9059
- ]).optional(),
9266
+ ]).nullish(),
9060
9267
  barRadius: external_zod_namespaceObject.z.union([
9061
9268
  external_zod_namespaceObject.z.number(),
9062
9269
  external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.number())
9063
- ]).optional()
9270
+ ]).nullish()
9064
9271
  });
9065
9272
  const zPointStyle = external_zod_namespaceObject.z.object({
9066
9273
  selector: external_zod_namespaceObject.z.union([
9067
9274
  zSelector,
9068
9275
  zSelectors
9069
- ]).optional(),
9070
- pointSize: external_zod_namespaceObject.z.number().optional(),
9071
- pointColor: external_zod_namespaceObject.z.string().optional(),
9072
- pointColorOpacity: external_zod_namespaceObject.z.number().optional(),
9073
- pointBorderColor: external_zod_namespaceObject.z.string().optional(),
9074
- pointBorderWidth: external_zod_namespaceObject.z.number().optional(),
9276
+ ]).nullish(),
9277
+ pointSize: external_zod_namespaceObject.z.number().nullish(),
9278
+ pointColor: external_zod_namespaceObject.z.string().nullish(),
9279
+ pointColorOpacity: external_zod_namespaceObject.z.number().nullish(),
9280
+ pointBorderColor: external_zod_namespaceObject.z.string().nullish(),
9281
+ pointBorderWidth: external_zod_namespaceObject.z.number().nullish(),
9075
9282
  pointBorderStyle: external_zod_namespaceObject.z.union([
9076
9283
  external_zod_namespaceObject.z["enum"]([
9077
9284
  'solid',
9078
9285
  'dashed',
9079
9286
  'dotted'
9080
9287
  ])
9081
- ]).optional()
9288
+ ]).nullish()
9082
9289
  });
9083
9290
  const zLineStyle = external_zod_namespaceObject.z.object({
9084
9291
  selector: external_zod_namespaceObject.z.union([
9085
9292
  zSelector,
9086
9293
  zSelectors
9087
- ]).optional(),
9088
- lineSmooth: external_zod_namespaceObject.z.boolean().optional(),
9089
- lineColor: external_zod_namespaceObject.z.string().optional(),
9090
- lineColorOpacity: external_zod_namespaceObject.z.number().optional(),
9091
- lineWidth: external_zod_namespaceObject.z.number().optional(),
9294
+ ]).nullish(),
9295
+ lineSmooth: external_zod_namespaceObject.z.boolean().nullish(),
9296
+ lineColor: external_zod_namespaceObject.z.string().nullish(),
9297
+ lineColorOpacity: external_zod_namespaceObject.z.number().nullish(),
9298
+ lineWidth: external_zod_namespaceObject.z.number().nullish(),
9092
9299
  lineStyle: external_zod_namespaceObject.z.union([
9093
9300
  external_zod_namespaceObject.z["enum"]([
9094
9301
  'solid',
9095
9302
  'dashed',
9096
9303
  'dotted'
9097
9304
  ])
9098
- ]).optional()
9305
+ ]).nullish()
9099
9306
  });
9100
9307
  const zAreaStyle = external_zod_namespaceObject.z.object({
9101
9308
  selector: external_zod_namespaceObject.z.union([
9102
9309
  zSelector,
9103
9310
  zSelectors
9104
- ]).optional(),
9105
- areaColor: external_zod_namespaceObject.z.string().optional(),
9106
- areaColorOpacity: external_zod_namespaceObject.z.number().optional()
9311
+ ]).nullish(),
9312
+ areaColor: external_zod_namespaceObject.z.string().nullish(),
9313
+ areaColorOpacity: external_zod_namespaceObject.z.number().nullish()
9107
9314
  });
9108
9315
  const zMarkStyle = external_zod_namespaceObject.z.object({
9109
- barStyle: zBarStyle.or(external_zod_namespaceObject.z.array(zBarStyle)).optional(),
9110
- pointStyle: zPointStyle.or(external_zod_namespaceObject.z.array(zPointStyle)).optional(),
9111
- lineStyle: zLineStyle.or(external_zod_namespaceObject.z.array(zLineStyle)).optional(),
9112
- areaStyle: zAreaStyle.or(external_zod_namespaceObject.z.array(zAreaStyle)).optional()
9316
+ barStyle: zBarStyle.or(external_zod_namespaceObject.z.array(zBarStyle)).nullish(),
9317
+ pointStyle: zPointStyle.or(external_zod_namespaceObject.z.array(zPointStyle)).nullish(),
9318
+ lineStyle: zLineStyle.or(external_zod_namespaceObject.z.array(zLineStyle)).nullish(),
9319
+ areaStyle: zAreaStyle.or(external_zod_namespaceObject.z.array(zAreaStyle)).nullish()
9113
9320
  });
9114
9321
  const zAnnotationPoint = external_zod_namespaceObject.z.object({
9115
9322
  selector: external_zod_namespaceObject.z.union([
9116
9323
  zSelector,
9117
9324
  zSelectors
9118
9325
  ]),
9119
- text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
9120
- textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
9121
- textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
9122
- textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
9326
+ text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
9327
+ textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
9328
+ textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9329
+ textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9123
9330
  textAlign: external_zod_namespaceObject.z["enum"]([
9124
9331
  'left',
9125
9332
  'right',
9126
9333
  'center'
9127
- ]).default('center').optional(),
9334
+ ]).default('center').nullish(),
9128
9335
  textBaseline: external_zod_namespaceObject.z["enum"]([
9129
9336
  'top',
9130
9337
  'middle',
9131
9338
  'bottom'
9132
- ]).default('middle').optional(),
9133
- backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9134
- backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9135
- backgroundBorderColor: external_zod_namespaceObject.z.string().optional(),
9136
- backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9137
- backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
9138
- backgroundPadding: external_zod_namespaceObject.z.number().optional(),
9139
- offsetY: external_zod_namespaceObject.z.number().default(0).optional(),
9140
- offsetX: external_zod_namespaceObject.z.number().default(0).optional()
9339
+ ]).default('middle').nullish(),
9340
+ textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9341
+ textBackgroundColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9342
+ textBackgroundBorderColor: external_zod_namespaceObject.z.string().nullish(),
9343
+ textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9344
+ textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9345
+ textBackgroundPadding: external_zod_namespaceObject.z.number().nullish(),
9346
+ offsetY: external_zod_namespaceObject.z.number().default(0).nullish(),
9347
+ offsetX: external_zod_namespaceObject.z.number().default(0).nullish()
9141
9348
  });
9142
9349
  const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
9143
9350
  selector: external_zod_namespaceObject.z.union([
9144
9351
  zSelector,
9145
9352
  zSelectors
9146
- ]).optional(),
9353
+ ]).nullish(),
9147
9354
  xValue: external_zod_namespaceObject.z.union([
9148
9355
  external_zod_namespaceObject.z.number(),
9149
9356
  external_zod_namespaceObject.z.string(),
@@ -9151,8 +9358,8 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
9151
9358
  external_zod_namespaceObject.z.number(),
9152
9359
  external_zod_namespaceObject.z.string()
9153
9360
  ]))
9154
- ]).optional(),
9155
- text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
9361
+ ]).nullish(),
9362
+ text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
9156
9363
  textPosition: external_zod_namespaceObject.z["enum"]([
9157
9364
  'outsideStart',
9158
9365
  'outsideEnd',
@@ -9160,34 +9367,34 @@ const zAnnotationVerticalLine = external_zod_namespaceObject.z.object({
9160
9367
  'insideStart',
9161
9368
  'insideMiddle',
9162
9369
  'insideEnd'
9163
- ]).default('insideEnd').optional(),
9164
- textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
9165
- textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
9166
- textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
9370
+ ]).default('insideEnd').nullish(),
9371
+ textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
9372
+ textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9373
+ textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9167
9374
  textAlign: external_zod_namespaceObject.z["enum"]([
9168
9375
  'left',
9169
9376
  'right',
9170
9377
  'center'
9171
- ]).default('right').optional(),
9378
+ ]).default('right').nullish(),
9172
9379
  textBaseline: external_zod_namespaceObject.z["enum"]([
9173
9380
  'top',
9174
9381
  'middle',
9175
9382
  'bottom'
9176
- ]).default('top').optional(),
9177
- lineVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9178
- lineColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9179
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9383
+ ]).default('top').nullish(),
9384
+ textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9385
+ textBackgroundColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9386
+ textBackgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9387
+ textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9388
+ textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9389
+ textBackgroundPadding: external_zod_namespaceObject.z.number().default(2).nullish(),
9390
+ lineVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9391
+ lineColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9392
+ lineWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9180
9393
  lineStyle: external_zod_namespaceObject.z.union([
9181
9394
  external_zod_namespaceObject.z.literal('solid'),
9182
9395
  external_zod_namespaceObject.z.literal('dashed'),
9183
9396
  external_zod_namespaceObject.z.literal('dotted')
9184
- ]).default('dashed').optional(),
9185
- backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9186
- backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9187
- backgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9188
- backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
9189
- backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9190
- backgroundPadding: external_zod_namespaceObject.z.number().default(2).optional(),
9397
+ ]).default('dashed').nullish(),
9191
9398
  offsetX: external_zod_namespaceObject.z.number().default(0),
9192
9399
  offsetY: external_zod_namespaceObject.z.number().default(0)
9193
9400
  });
@@ -9195,7 +9402,7 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
9195
9402
  selector: external_zod_namespaceObject.z.union([
9196
9403
  zSelector,
9197
9404
  zSelectors
9198
- ]).optional(),
9405
+ ]).nullish(),
9199
9406
  yValue: external_zod_namespaceObject.z.union([
9200
9407
  external_zod_namespaceObject.z.number(),
9201
9408
  external_zod_namespaceObject.z.string(),
@@ -9203,8 +9410,8 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
9203
9410
  external_zod_namespaceObject.z.number(),
9204
9411
  external_zod_namespaceObject.z.string()
9205
9412
  ]))
9206
- ]).optional(),
9207
- text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
9413
+ ]).nullish(),
9414
+ text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
9208
9415
  textPosition: external_zod_namespaceObject.z["enum"]([
9209
9416
  'outsideStart',
9210
9417
  'outsideEnd',
@@ -9212,34 +9419,34 @@ const zAnnotationHorizontalLine = external_zod_namespaceObject.z.object({
9212
9419
  'insideStart',
9213
9420
  'insideMiddle',
9214
9421
  'insideEnd'
9215
- ]).default('insideEnd').optional(),
9216
- textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
9217
- textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
9218
- textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
9422
+ ]).default('insideEnd').nullish(),
9423
+ textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
9424
+ textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9425
+ textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9219
9426
  textAlign: external_zod_namespaceObject.z["enum"]([
9220
9427
  'left',
9221
9428
  'right',
9222
9429
  'center'
9223
- ]).default('right').optional(),
9430
+ ]).default('right').nullish(),
9224
9431
  textBaseline: external_zod_namespaceObject.z["enum"]([
9225
9432
  'top',
9226
9433
  'middle',
9227
9434
  'bottom'
9228
- ]).default('top').optional(),
9229
- lineVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9230
- lineColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9231
- lineWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9435
+ ]).default('top').nullish(),
9436
+ lineVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9437
+ lineColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9438
+ lineWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9232
9439
  lineStyle: external_zod_namespaceObject.z.union([
9233
9440
  external_zod_namespaceObject.z.literal('solid'),
9234
9441
  external_zod_namespaceObject.z.literal('dashed'),
9235
9442
  external_zod_namespaceObject.z.literal('dotted')
9236
- ]).default('dashed').optional(),
9237
- backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9238
- backgroundColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9239
- backgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').optional(),
9240
- backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
9241
- backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9242
- backgroundPadding: external_zod_namespaceObject.z.number().default(2).optional(),
9443
+ ]).default('dashed').nullish(),
9444
+ textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9445
+ textBackgroundColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9446
+ textBackgroundBorderColor: external_zod_namespaceObject.z.string().default('#212121').nullish(),
9447
+ textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9448
+ textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9449
+ textBackgroundPadding: external_zod_namespaceObject.z.number().default(2).nullish(),
9243
9450
  offsetX: external_zod_namespaceObject.z.number().default(0),
9244
9451
  offsetY: external_zod_namespaceObject.z.number().default(0)
9245
9452
  });
@@ -9257,60 +9464,60 @@ const zAnnotationArea = external_zod_namespaceObject.z.object({
9257
9464
  'bottomRight',
9258
9465
  'left',
9259
9466
  'right'
9260
- ]).default('top').optional(),
9261
- text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional(),
9262
- textColor: external_zod_namespaceObject.z.string().default('#ffffff').optional(),
9263
- textFontSize: external_zod_namespaceObject.z.number().default(12).optional(),
9264
- textFontWeight: external_zod_namespaceObject.z.number().default(400).optional(),
9467
+ ]).default('top').nullish(),
9468
+ text: external_zod_namespaceObject.z.string().or(external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish(),
9469
+ textColor: external_zod_namespaceObject.z.string().default('#ffffff').nullish(),
9470
+ textFontSize: external_zod_namespaceObject.z.number().default(12).nullish(),
9471
+ textFontWeight: external_zod_namespaceObject.z.number().default(400).nullish(),
9265
9472
  textAlign: external_zod_namespaceObject.z["enum"]([
9266
9473
  'left',
9267
9474
  'right',
9268
9475
  'center'
9269
- ]).default('center').optional(),
9476
+ ]).default('center').nullish(),
9270
9477
  textBaseline: external_zod_namespaceObject.z["enum"]([
9271
9478
  'top',
9272
9479
  'middle',
9273
9480
  'bottom'
9274
- ]).default('top').optional(),
9275
- backgroundVisible: external_zod_namespaceObject.z.boolean().default(true).optional(),
9276
- backgroundColor: external_zod_namespaceObject.z.string().default('#191d24').optional(),
9277
- backgroundBorderColor: external_zod_namespaceObject.z.string().default('#191d24').optional(),
9278
- backgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9279
- backgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
9280
- backgroundPadding: external_zod_namespaceObject.z.number().default(4).optional(),
9281
- areaColor: external_zod_namespaceObject.z.string().default('#888888').optional(),
9282
- areaColorOpacity: external_zod_namespaceObject.z.number().default(0.15).optional(),
9283
- areaBorderColor: external_zod_namespaceObject.z.string().default('#888888').optional(),
9284
- areaBorderWidth: external_zod_namespaceObject.z.number().default(1).optional(),
9285
- areaBorderRadius: external_zod_namespaceObject.z.number().default(4).optional(),
9286
- outerPadding: external_zod_namespaceObject.z.number().default(4).optional(),
9287
- offsetX: external_zod_namespaceObject.z.number().default(0).optional(),
9288
- offsetY: external_zod_namespaceObject.z.number().default(0).optional()
9481
+ ]).default('top').nullish(),
9482
+ textBackgroundVisible: external_zod_namespaceObject.z.boolean().default(true).nullish(),
9483
+ textBackgroundColor: external_zod_namespaceObject.z.string().default('#191d24').nullish(),
9484
+ textBackgroundBorderColor: external_zod_namespaceObject.z.string().default('#191d24').nullish(),
9485
+ textBackgroundBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9486
+ textBackgroundBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9487
+ textBackgroundPadding: external_zod_namespaceObject.z.number().default(4).nullish(),
9488
+ areaColor: external_zod_namespaceObject.z.string().default('#888888').nullish(),
9489
+ areaColorOpacity: external_zod_namespaceObject.z.number().default(0.15).nullish(),
9490
+ areaBorderColor: external_zod_namespaceObject.z.string().default('#888888').nullish(),
9491
+ areaBorderWidth: external_zod_namespaceObject.z.number().default(1).nullish(),
9492
+ areaBorderRadius: external_zod_namespaceObject.z.number().default(4).nullish(),
9493
+ outerPadding: external_zod_namespaceObject.z.number().default(4).nullish(),
9494
+ offsetX: external_zod_namespaceObject.z.number().default(0).nullish(),
9495
+ offsetY: external_zod_namespaceObject.z.number().default(0).nullish()
9289
9496
  });
9290
9497
  const zAnnotation = external_zod_namespaceObject.z.object({
9291
- annotationPoint: zAnnotationPoint.or(external_zod_namespaceObject.z.array(zAnnotationPoint)).optional(),
9292
- annotationVerticalLine: zAnnotationVerticalLine.or(external_zod_namespaceObject.z.array(zAnnotationVerticalLine)).optional(),
9293
- annotationHorizontalLine: zAnnotationHorizontalLine.or(external_zod_namespaceObject.z.array(zAnnotationHorizontalLine)).optional(),
9294
- annotationArea: zAnnotationArea.or(external_zod_namespaceObject.z.array(zAnnotationArea)).optional()
9498
+ annotationPoint: zAnnotationPoint.or(external_zod_namespaceObject.z.array(zAnnotationPoint)).nullish(),
9499
+ annotationVerticalLine: zAnnotationVerticalLine.or(external_zod_namespaceObject.z.array(zAnnotationVerticalLine)).nullish(),
9500
+ annotationHorizontalLine: zAnnotationHorizontalLine.or(external_zod_namespaceObject.z.array(zAnnotationHorizontalLine)).nullish(),
9501
+ annotationArea: zAnnotationArea.or(external_zod_namespaceObject.z.array(zAnnotationArea)).nullish()
9295
9502
  });
9296
9503
  const zSort = external_zod_namespaceObject.z.object({
9297
9504
  order: external_zod_namespaceObject.z["enum"]([
9298
9505
  'asc',
9299
9506
  'desc'
9300
9507
  ]).default('asc'),
9301
- orderBy: external_zod_namespaceObject.z.string().optional(),
9302
- customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).optional()
9508
+ orderBy: external_zod_namespaceObject.z.string().nullish(),
9509
+ customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).nullish()
9303
9510
  });
9304
9511
  const zSortLegend = external_zod_namespaceObject.z.object({
9305
9512
  order: external_zod_namespaceObject.z["enum"]([
9306
9513
  'asc',
9307
9514
  'desc'
9308
9515
  ]).default('asc'),
9309
- orderBy: external_zod_namespaceObject.z.string().optional(),
9310
- customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).optional()
9516
+ orderBy: external_zod_namespaceObject.z.string().nullish(),
9517
+ customOrder: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.any()).nullish()
9311
9518
  });
9312
9519
  const zAnalysis = external_zod_namespaceObject.z.object({
9313
- orderMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).optional()
9520
+ orderMapping: external_zod_namespaceObject.z.record(external_zod_namespaceObject.z.string(), external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string())).nullish()
9314
9521
  });
9315
9522
  const zLocale = external_zod_namespaceObject.z["enum"]([
9316
9523
  'zh-CN',
@@ -9318,384 +9525,410 @@ const zLocale = external_zod_namespaceObject.z["enum"]([
9318
9525
  ]).default('zh-CN');
9319
9526
  const zTable = external_zod_namespaceObject.z.object({
9320
9527
  chartType: external_zod_namespaceObject.z.literal('table'),
9321
- dataset: zDataset.optional(),
9322
- dimensions: zDimensions.optional(),
9323
- measures: zMeasureTree.optional(),
9324
- backgroundColor: zBackgroundColor.optional(),
9325
- theme: zTheme.optional(),
9326
- locale: zLocale.optional()
9528
+ dataset: zDataset.nullish(),
9529
+ dimensions: zDimensions.nullish(),
9530
+ measures: zMeasureTree.nullish(),
9531
+ backgroundColor: zBackgroundColor.nullish(),
9532
+ borderColor: external_zod_namespaceObject.z.string().nullish(),
9533
+ bodyFontSize: external_zod_namespaceObject.z.number().nullish(),
9534
+ bodyFontColor: external_zod_namespaceObject.z.string().nullish(),
9535
+ bodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9536
+ hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9537
+ hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9538
+ headerFontSize: external_zod_namespaceObject.z.number().nullish(),
9539
+ headerFontColor: external_zod_namespaceObject.z.string().nullish(),
9540
+ headerBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9541
+ hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9542
+ hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9543
+ selectedBorderColor: external_zod_namespaceObject.z.string().nullish(),
9544
+ selectedBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9545
+ theme: zTheme.nullish(),
9546
+ locale: zLocale.nullish()
9327
9547
  });
9328
9548
  const zPivotTable = external_zod_namespaceObject.z.object({
9329
9549
  chartType: external_zod_namespaceObject.z.literal('pivotTable'),
9330
- dataset: zDataset.optional(),
9331
- dimensions: zDimensions.optional(),
9332
- measures: zMeasures.optional(),
9333
- backgroundColor: zBackgroundColor.optional(),
9334
- theme: zTheme.optional(),
9335
- locale: zLocale.optional()
9550
+ dataset: zDataset.nullish(),
9551
+ dimensions: zDimensions.nullish(),
9552
+ measures: zMeasures.nullish(),
9553
+ backgroundColor: zBackgroundColor.nullish(),
9554
+ borderColor: external_zod_namespaceObject.z.string().nullish(),
9555
+ bodyFontSize: external_zod_namespaceObject.z.number().nullish(),
9556
+ bodyFontColor: external_zod_namespaceObject.z.string().nullish(),
9557
+ bodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9558
+ hoverBodyBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9559
+ hoverBodyInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9560
+ headerFontSize: external_zod_namespaceObject.z.number().nullish(),
9561
+ headerFontColor: external_zod_namespaceObject.z.string().nullish(),
9562
+ headerBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9563
+ hoverHeaderBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9564
+ hoverHeaderInlineBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9565
+ selectedBorderColor: external_zod_namespaceObject.z.string().nullish(),
9566
+ selectedBackgroundColor: external_zod_namespaceObject.z.string().nullish(),
9567
+ theme: zTheme.nullish(),
9568
+ locale: zLocale.nullish()
9336
9569
  });
9337
9570
  const zLine = external_zod_namespaceObject.z.object({
9338
9571
  chartType: external_zod_namespaceObject.z.literal('line'),
9339
- dataset: zDataset.optional(),
9340
- dimensions: zDimensions.optional(),
9341
- measures: zMeasureTree.optional(),
9342
- backgroundColor: zBackgroundColor.optional(),
9343
- color: zColor.optional(),
9344
- label: zLabel.optional(),
9345
- legend: zLegend.optional(),
9346
- tooltip: zTooltip.optional(),
9347
- xAxis: zXBandAxis.optional(),
9348
- yAxis: zYLinearAxis.optional(),
9349
- crosshairLine: zCrosshairLine.optional(),
9350
- sort: zSort.optional(),
9351
- sortLegend: zSortLegend.optional(),
9352
- theme: zTheme.optional(),
9353
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9354
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9355
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9356
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9357
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9358
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9359
- locale: zLocale.optional()
9572
+ dataset: zDataset.nullish(),
9573
+ dimensions: zDimensions.nullish(),
9574
+ measures: zMeasureTree.nullish(),
9575
+ backgroundColor: zBackgroundColor.nullish(),
9576
+ color: zColor.nullish(),
9577
+ label: zLabel.nullish(),
9578
+ legend: zLegend.nullish(),
9579
+ tooltip: zTooltip.nullish(),
9580
+ xAxis: zXBandAxis.nullish(),
9581
+ yAxis: zYLinearAxis.nullish(),
9582
+ crosshairLine: zCrosshairLine.nullish(),
9583
+ sort: zSort.nullish(),
9584
+ sortLegend: zSortLegend.nullish(),
9585
+ theme: zTheme.nullish(),
9586
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9587
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9588
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9589
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9590
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9591
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9592
+ locale: zLocale.nullish()
9360
9593
  });
9361
9594
  const zColumn = external_zod_namespaceObject.z.object({
9362
9595
  chartType: external_zod_namespaceObject.z.literal('column'),
9363
- dataset: zDataset.optional(),
9364
- dimensions: zDimensions.optional(),
9365
- measures: zMeasureTree.optional(),
9366
- backgroundColor: zBackgroundColor.optional(),
9367
- color: zColor.optional(),
9368
- label: zLabel.optional(),
9369
- legend: zLegend.optional(),
9370
- tooltip: zTooltip.optional(),
9371
- xAxis: zXBandAxis.optional(),
9372
- yAxis: zYLinearAxis.optional(),
9373
- crosshairRect: zCrosshairRect.optional(),
9374
- stackCornerRadius: zStackCornerRadius.optional(),
9375
- theme: zTheme.optional(),
9376
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9377
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9378
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9379
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9380
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9381
- locale: zLocale.optional()
9596
+ dataset: zDataset.nullish(),
9597
+ dimensions: zDimensions.nullish(),
9598
+ measures: zMeasureTree.nullish(),
9599
+ backgroundColor: zBackgroundColor.nullish(),
9600
+ color: zColor.nullish(),
9601
+ label: zLabel.nullish(),
9602
+ legend: zLegend.nullish(),
9603
+ tooltip: zTooltip.nullish(),
9604
+ xAxis: zXBandAxis.nullish(),
9605
+ yAxis: zYLinearAxis.nullish(),
9606
+ crosshairRect: zCrosshairRect.nullish(),
9607
+ stackCornerRadius: zStackCornerRadius.nullish(),
9608
+ theme: zTheme.nullish(),
9609
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9610
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9611
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9612
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9613
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9614
+ locale: zLocale.nullish()
9382
9615
  });
9383
9616
  const zColumnParallel = external_zod_namespaceObject.z.object({
9384
9617
  chartType: external_zod_namespaceObject.z.literal('columnParallel'),
9385
- dataset: zDataset.optional(),
9386
- dimensions: zDimensions.optional(),
9387
- measures: zMeasureTree.optional(),
9388
- backgroundColor: zBackgroundColor.optional(),
9389
- color: zColor.optional(),
9390
- label: zLabel.optional(),
9391
- legend: zLegend.optional(),
9392
- tooltip: zTooltip.optional(),
9393
- xAxis: zXBandAxis.optional(),
9394
- yAxis: zYLinearAxis.optional(),
9395
- crosshairRect: zCrosshairRect.optional(),
9396
- stackCornerRadius: zStackCornerRadius.optional(),
9397
- theme: zTheme.optional(),
9398
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9399
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9400
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9401
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9402
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9403
- locale: zLocale.optional()
9618
+ dataset: zDataset.nullish(),
9619
+ dimensions: zDimensions.nullish(),
9620
+ measures: zMeasureTree.nullish(),
9621
+ backgroundColor: zBackgroundColor.nullish(),
9622
+ color: zColor.nullish(),
9623
+ label: zLabel.nullish(),
9624
+ legend: zLegend.nullish(),
9625
+ tooltip: zTooltip.nullish(),
9626
+ xAxis: zXBandAxis.nullish(),
9627
+ yAxis: zYLinearAxis.nullish(),
9628
+ crosshairRect: zCrosshairRect.nullish(),
9629
+ stackCornerRadius: zStackCornerRadius.nullish(),
9630
+ theme: zTheme.nullish(),
9631
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9632
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9633
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9634
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9635
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9636
+ locale: zLocale.nullish()
9404
9637
  });
9405
9638
  const zColumnPercent = external_zod_namespaceObject.z.object({
9406
9639
  chartType: external_zod_namespaceObject.z.literal('columnPercent'),
9407
- dataset: zDataset.optional(),
9408
- dimensions: zDimensions.optional(),
9409
- measures: zMeasureTree.optional(),
9410
- backgroundColor: zBackgroundColor.optional(),
9411
- color: zColor.optional(),
9412
- label: zLabel.optional(),
9413
- legend: zLegend.optional(),
9414
- tooltip: zTooltip.optional(),
9415
- xAxis: zXBandAxis.optional(),
9416
- yAxis: zYLinearAxis.optional(),
9417
- crosshairRect: zCrosshairRect.optional(),
9418
- stackCornerRadius: zStackCornerRadius.optional(),
9419
- theme: zTheme.optional(),
9420
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9421
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9422
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9423
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9424
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9425
- locale: zLocale.optional()
9640
+ dataset: zDataset.nullish(),
9641
+ dimensions: zDimensions.nullish(),
9642
+ measures: zMeasureTree.nullish(),
9643
+ backgroundColor: zBackgroundColor.nullish(),
9644
+ color: zColor.nullish(),
9645
+ label: zLabel.nullish(),
9646
+ legend: zLegend.nullish(),
9647
+ tooltip: zTooltip.nullish(),
9648
+ xAxis: zXBandAxis.nullish(),
9649
+ yAxis: zYLinearAxis.nullish(),
9650
+ crosshairRect: zCrosshairRect.nullish(),
9651
+ stackCornerRadius: zStackCornerRadius.nullish(),
9652
+ theme: zTheme.nullish(),
9653
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9654
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9655
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9656
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9657
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9658
+ locale: zLocale.nullish()
9426
9659
  });
9427
9660
  const zBar = external_zod_namespaceObject.z.object({
9428
9661
  chartType: external_zod_namespaceObject.z.literal('bar'),
9429
- dataset: zDataset.optional(),
9430
- dimensions: zDimensions.optional(),
9431
- measures: zMeasureTree.optional(),
9432
- backgroundColor: zBackgroundColor.optional(),
9433
- color: zColor.optional(),
9434
- label: zLabel.optional(),
9435
- legend: zLegend.optional(),
9436
- tooltip: zTooltip.optional(),
9437
- xAxis: zXLinearAxis.optional(),
9438
- yAxis: zYBandAxis.optional(),
9439
- crosshairRect: zCrosshairRect.optional(),
9440
- stackCornerRadius: zStackCornerRadius.optional(),
9441
- theme: zTheme.optional(),
9442
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9443
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9444
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9445
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9446
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9447
- locale: zLocale.optional()
9662
+ dataset: zDataset.nullish(),
9663
+ dimensions: zDimensions.nullish(),
9664
+ measures: zMeasureTree.nullish(),
9665
+ backgroundColor: zBackgroundColor.nullish(),
9666
+ color: zColor.nullish(),
9667
+ label: zLabel.nullish(),
9668
+ legend: zLegend.nullish(),
9669
+ tooltip: zTooltip.nullish(),
9670
+ xAxis: zXLinearAxis.nullish(),
9671
+ yAxis: zYBandAxis.nullish(),
9672
+ crosshairRect: zCrosshairRect.nullish(),
9673
+ stackCornerRadius: zStackCornerRadius.nullish(),
9674
+ theme: zTheme.nullish(),
9675
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9676
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9677
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9678
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9679
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9680
+ locale: zLocale.nullish()
9448
9681
  });
9449
9682
  const zBarParallel = external_zod_namespaceObject.z.object({
9450
9683
  chartType: external_zod_namespaceObject.z.literal('barParallel'),
9451
- dataset: zDataset.optional(),
9452
- dimensions: zDimensions.optional(),
9453
- measures: zMeasureTree.optional(),
9454
- backgroundColor: zBackgroundColor.optional(),
9455
- color: zColor.optional(),
9456
- label: zLabel.optional(),
9457
- legend: zLegend.optional(),
9458
- tooltip: zTooltip.optional(),
9459
- xAxis: zXLinearAxis.optional(),
9460
- yAxis: zYBandAxis.optional(),
9461
- crosshairRect: zCrosshairRect.optional(),
9462
- stackCornerRadius: zStackCornerRadius.optional(),
9463
- theme: zTheme.optional(),
9464
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9465
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9466
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9467
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9468
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9469
- locale: zLocale.optional()
9684
+ dataset: zDataset.nullish(),
9685
+ dimensions: zDimensions.nullish(),
9686
+ measures: zMeasureTree.nullish(),
9687
+ backgroundColor: zBackgroundColor.nullish(),
9688
+ color: zColor.nullish(),
9689
+ label: zLabel.nullish(),
9690
+ legend: zLegend.nullish(),
9691
+ tooltip: zTooltip.nullish(),
9692
+ xAxis: zXLinearAxis.nullish(),
9693
+ yAxis: zYBandAxis.nullish(),
9694
+ crosshairRect: zCrosshairRect.nullish(),
9695
+ stackCornerRadius: zStackCornerRadius.nullish(),
9696
+ theme: zTheme.nullish(),
9697
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9698
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9699
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9700
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9701
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9702
+ locale: zLocale.nullish()
9470
9703
  });
9471
9704
  const zBarPercent = external_zod_namespaceObject.z.object({
9472
9705
  chartType: external_zod_namespaceObject.z.literal('barPercent'),
9473
- dataset: zDataset.optional(),
9474
- dimensions: zDimensions.optional(),
9475
- measures: zMeasureTree.optional(),
9476
- backgroundColor: zBackgroundColor.optional(),
9477
- color: zColor.optional(),
9478
- label: zLabel.optional(),
9479
- legend: zLegend.optional(),
9480
- tooltip: zTooltip.optional(),
9481
- xAxis: zXLinearAxis.optional(),
9482
- yAxis: zYBandAxis.optional(),
9483
- crosshairRect: zCrosshairRect.optional(),
9484
- stackCornerRadius: zStackCornerRadius.optional(),
9485
- theme: zTheme.optional(),
9486
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9487
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9488
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9489
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9490
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9491
- locale: zLocale.optional()
9706
+ dataset: zDataset.nullish(),
9707
+ dimensions: zDimensions.nullish(),
9708
+ measures: zMeasureTree.nullish(),
9709
+ backgroundColor: zBackgroundColor.nullish(),
9710
+ color: zColor.nullish(),
9711
+ label: zLabel.nullish(),
9712
+ legend: zLegend.nullish(),
9713
+ tooltip: zTooltip.nullish(),
9714
+ xAxis: zXLinearAxis.nullish(),
9715
+ yAxis: zYBandAxis.nullish(),
9716
+ crosshairRect: zCrosshairRect.nullish(),
9717
+ stackCornerRadius: zStackCornerRadius.nullish(),
9718
+ theme: zTheme.nullish(),
9719
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9720
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9721
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9722
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9723
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9724
+ locale: zLocale.nullish()
9492
9725
  });
9493
9726
  const zArea = external_zod_namespaceObject.z.object({
9494
9727
  chartType: external_zod_namespaceObject.z.literal('area'),
9495
- dataset: zDataset.optional(),
9496
- dimensions: zDimensions.optional(),
9497
- measures: zMeasureTree.optional(),
9498
- backgroundColor: zBackgroundColor.optional(),
9499
- color: zColor.optional(),
9500
- label: zLabel.optional(),
9501
- legend: zLegend.optional(),
9502
- tooltip: zTooltip.optional(),
9503
- xAxis: zXBandAxis.optional(),
9504
- yAxis: zYLinearAxis.optional(),
9505
- crosshairLine: zCrosshairLine.optional(),
9506
- theme: zTheme.optional(),
9507
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9508
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9509
- areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).optional(),
9510
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9511
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9512
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9513
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9514
- locale: zLocale.optional()
9728
+ dataset: zDataset.nullish(),
9729
+ dimensions: zDimensions.nullish(),
9730
+ measures: zMeasureTree.nullish(),
9731
+ backgroundColor: zBackgroundColor.nullish(),
9732
+ color: zColor.nullish(),
9733
+ label: zLabel.nullish(),
9734
+ legend: zLegend.nullish(),
9735
+ tooltip: zTooltip.nullish(),
9736
+ xAxis: zXBandAxis.nullish(),
9737
+ yAxis: zYLinearAxis.nullish(),
9738
+ crosshairLine: zCrosshairLine.nullish(),
9739
+ theme: zTheme.nullish(),
9740
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9741
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9742
+ areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
9743
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9744
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9745
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9746
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9747
+ locale: zLocale.nullish()
9515
9748
  });
9516
9749
  const zAreaPercent = external_zod_namespaceObject.z.object({
9517
9750
  chartType: external_zod_namespaceObject.z.literal('areaPercent'),
9518
- dataset: zDataset.optional(),
9519
- dimensions: zDimensions.optional(),
9520
- measures: zMeasureTree.optional(),
9521
- backgroundColor: zBackgroundColor.optional(),
9522
- color: zColor.optional(),
9523
- label: zLabel.optional(),
9524
- legend: zLegend.optional(),
9525
- tooltip: zTooltip.optional(),
9526
- xAxis: zXBandAxis.optional(),
9527
- yAxis: zYLinearAxis.optional(),
9528
- crosshairLine: zCrosshairLine.optional(),
9529
- theme: zTheme.optional(),
9530
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9531
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9532
- areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).optional(),
9533
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9534
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9535
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9536
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9537
- locale: zLocale.optional()
9751
+ dataset: zDataset.nullish(),
9752
+ dimensions: zDimensions.nullish(),
9753
+ measures: zMeasureTree.nullish(),
9754
+ backgroundColor: zBackgroundColor.nullish(),
9755
+ color: zColor.nullish(),
9756
+ label: zLabel.nullish(),
9757
+ legend: zLegend.nullish(),
9758
+ tooltip: zTooltip.nullish(),
9759
+ xAxis: zXBandAxis.nullish(),
9760
+ yAxis: zYLinearAxis.nullish(),
9761
+ crosshairLine: zCrosshairLine.nullish(),
9762
+ theme: zTheme.nullish(),
9763
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9764
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9765
+ areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
9766
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9767
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9768
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9769
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9770
+ locale: zLocale.nullish()
9538
9771
  });
9539
9772
  const zAreaRange = external_zod_namespaceObject.z.object({
9540
9773
  chartType: external_zod_namespaceObject.z.literal('areaRange'),
9541
- dataset: zDataset.optional(),
9542
- dimensions: zDimensions.optional(),
9543
- measures: zMeasureTree.optional(),
9544
- backgroundColor: zBackgroundColor.optional(),
9545
- label: zLabel.optional(),
9546
- xAxis: zXBandAxis.optional(),
9547
- yAxis: zYLinearAxis.optional(),
9548
- crosshairLine: zCrosshairLine.optional(),
9549
- theme: zTheme.optional(),
9550
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9551
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9552
- areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).optional(),
9553
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9554
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9555
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9556
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9557
- locale: zLocale.optional()
9774
+ dataset: zDataset.nullish(),
9775
+ dimensions: zDimensions.nullish(),
9776
+ measures: zMeasureTree.nullish(),
9777
+ backgroundColor: zBackgroundColor.nullish(),
9778
+ label: zLabel.nullish(),
9779
+ xAxis: zXBandAxis.nullish(),
9780
+ yAxis: zYLinearAxis.nullish(),
9781
+ crosshairLine: zCrosshairLine.nullish(),
9782
+ theme: zTheme.nullish(),
9783
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9784
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9785
+ areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
9786
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9787
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9788
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9789
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9790
+ locale: zLocale.nullish()
9558
9791
  });
9559
9792
  const zScatter = external_zod_namespaceObject.z.object({
9560
9793
  chartType: external_zod_namespaceObject.z.literal('scatter'),
9561
- dataset: zDataset.optional(),
9562
- dimensions: zDimensions.optional(),
9563
- measures: zMeasureTree.optional(),
9564
- backgroundColor: zBackgroundColor.optional(),
9565
- color: zColor.optional(),
9566
- label: zLabel.optional(),
9567
- legend: zLegend.optional(),
9568
- tooltip: zTooltip.optional(),
9569
- xAxis: zXLinearAxis.optional(),
9570
- yAxis: zYLinearAxis.optional(),
9571
- crosshairLine: zCrosshairLine.optional(),
9572
- theme: zTheme.optional(),
9573
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9574
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9575
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9576
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9577
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9578
- locale: zLocale.optional()
9794
+ dataset: zDataset.nullish(),
9795
+ dimensions: zDimensions.nullish(),
9796
+ measures: zMeasureTree.nullish(),
9797
+ backgroundColor: zBackgroundColor.nullish(),
9798
+ color: zColor.nullish(),
9799
+ label: zLabel.nullish(),
9800
+ legend: zLegend.nullish(),
9801
+ tooltip: zTooltip.nullish(),
9802
+ xAxis: zXLinearAxis.nullish(),
9803
+ yAxis: zYLinearAxis.nullish(),
9804
+ crosshairLine: zCrosshairLine.nullish(),
9805
+ theme: zTheme.nullish(),
9806
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9807
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9808
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9809
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9810
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9811
+ locale: zLocale.nullish()
9579
9812
  });
9580
9813
  const zDualAxis = external_zod_namespaceObject.z.object({
9581
9814
  chartType: external_zod_namespaceObject.z.literal('dualAxis'),
9582
- dataset: zDataset.optional(),
9583
- dimensions: zDimensions.optional(),
9584
- measures: zMeasureTree.optional(),
9585
- dualMeasures: zDualMeasures.optional(),
9586
- dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).optional(),
9587
- primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).optional(),
9588
- secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).optional(),
9589
- xAxis: zXBandAxis.optional(),
9590
- backgroundColor: zBackgroundColor.optional(),
9591
- color: zColor.optional(),
9592
- label: zLabel.optional(),
9593
- legend: zLegend.optional(),
9594
- tooltip: zTooltip.optional(),
9595
- crosshairRect: zCrosshairRect.optional(),
9596
- sort: zSort.optional(),
9597
- sortLegend: zSortLegend.optional(),
9598
- theme: zTheme.optional(),
9599
- barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).optional(),
9600
- pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).optional(),
9601
- lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).optional(),
9602
- areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).optional(),
9603
- annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).optional(),
9604
- annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).optional(),
9605
- annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).optional(),
9606
- annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).optional(),
9607
- locale: zLocale.optional()
9815
+ dataset: zDataset.nullish(),
9816
+ dimensions: zDimensions.nullish(),
9817
+ measures: zMeasureTree.nullish(),
9818
+ dualMeasures: zDualMeasures.nullish(),
9819
+ dualChartType: external_zod_namespaceObject.z.array(zDualChartType).or(zDualChartType).nullish(),
9820
+ primaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9821
+ secondaryYAxis: external_zod_namespaceObject.z.array(zYLinearAxis).or(zYLinearAxis).nullish(),
9822
+ xAxis: zXBandAxis.nullish(),
9823
+ backgroundColor: zBackgroundColor.nullish(),
9824
+ color: zColor.nullish(),
9825
+ label: zLabel.nullish(),
9826
+ legend: zLegend.nullish(),
9827
+ tooltip: zTooltip.nullish(),
9828
+ crosshairRect: zCrosshairRect.nullish(),
9829
+ sort: zSort.nullish(),
9830
+ sortLegend: zSortLegend.nullish(),
9831
+ theme: zTheme.nullish(),
9832
+ barStyle: external_zod_namespaceObject.z.array(zBarStyle).or(zBarStyle).nullish(),
9833
+ pointStyle: external_zod_namespaceObject.z.array(zPointStyle).or(zPointStyle).nullish(),
9834
+ lineStyle: external_zod_namespaceObject.z.array(zLineStyle).or(zLineStyle).nullish(),
9835
+ areaStyle: external_zod_namespaceObject.z.array(zAreaStyle).or(zAreaStyle).nullish(),
9836
+ annotationPoint: external_zod_namespaceObject.z.array(zAnnotationPoint).or(zAnnotationPoint).nullish(),
9837
+ annotationVerticalLine: external_zod_namespaceObject.z.array(zAnnotationVerticalLine).or(zAnnotationVerticalLine).nullish(),
9838
+ annotationHorizontalLine: external_zod_namespaceObject.z.array(zAnnotationHorizontalLine).or(zAnnotationHorizontalLine).nullish(),
9839
+ annotationArea: external_zod_namespaceObject.z.array(zAnnotationArea).or(zAnnotationArea).nullish(),
9840
+ locale: zLocale.nullish()
9608
9841
  });
9609
9842
  const zRose = external_zod_namespaceObject.z.object({
9610
9843
  chartType: external_zod_namespaceObject.z.literal('rose'),
9611
- dataset: zDataset.optional(),
9612
- dimensions: zDimensions.optional(),
9613
- measures: zMeasureTree.optional(),
9614
- backgroundColor: zBackgroundColor.optional(),
9615
- color: zColor.optional(),
9616
- label: zLabel.optional(),
9617
- legend: zLegend.optional(),
9618
- tooltip: zTooltip.optional(),
9619
- theme: zTheme.optional(),
9620
- locale: zLocale.optional()
9844
+ dataset: zDataset.nullish(),
9845
+ dimensions: zDimensions.nullish(),
9846
+ measures: zMeasureTree.nullish(),
9847
+ backgroundColor: zBackgroundColor.nullish(),
9848
+ color: zColor.nullish(),
9849
+ label: zLabel.nullish(),
9850
+ legend: zLegend.nullish(),
9851
+ tooltip: zTooltip.nullish(),
9852
+ theme: zTheme.nullish(),
9853
+ locale: zLocale.nullish()
9621
9854
  });
9622
9855
  const zRoseParallel = external_zod_namespaceObject.z.object({
9623
9856
  chartType: external_zod_namespaceObject.z.literal('roseParallel'),
9624
- dataset: zDataset.optional(),
9625
- dimensions: zDimensions.optional(),
9626
- measures: zMeasureTree.optional(),
9627
- backgroundColor: zBackgroundColor.optional(),
9628
- color: zColor.optional(),
9629
- label: zLabel.optional(),
9630
- legend: zLegend.optional(),
9631
- tooltip: zTooltip.optional(),
9632
- theme: zTheme.optional(),
9633
- locale: zLocale.optional()
9857
+ dataset: zDataset.nullish(),
9858
+ dimensions: zDimensions.nullish(),
9859
+ measures: zMeasureTree.nullish(),
9860
+ backgroundColor: zBackgroundColor.nullish(),
9861
+ color: zColor.nullish(),
9862
+ label: zLabel.nullish(),
9863
+ legend: zLegend.nullish(),
9864
+ tooltip: zTooltip.nullish(),
9865
+ theme: zTheme.nullish(),
9866
+ locale: zLocale.nullish()
9634
9867
  });
9635
9868
  const zPie = external_zod_namespaceObject.z.object({
9636
9869
  chartType: external_zod_namespaceObject.z.literal('pie'),
9637
- dataset: zDataset.optional(),
9638
- dimensions: zDimensions.optional(),
9639
- measures: zMeasureTree.optional(),
9640
- backgroundColor: zBackgroundColor.optional(),
9641
- color: zColor.optional(),
9642
- label: zLabel.optional(),
9643
- legend: zLegend.optional(),
9644
- tooltip: zTooltip.optional(),
9645
- theme: zTheme.optional(),
9646
- locale: zLocale.optional()
9870
+ dataset: zDataset.nullish(),
9871
+ dimensions: zDimensions.nullish(),
9872
+ measures: zMeasureTree.nullish(),
9873
+ backgroundColor: zBackgroundColor.nullish(),
9874
+ color: zColor.nullish(),
9875
+ label: zLabel.nullish(),
9876
+ legend: zLegend.nullish(),
9877
+ tooltip: zTooltip.nullish(),
9878
+ theme: zTheme.nullish(),
9879
+ locale: zLocale.nullish()
9647
9880
  });
9648
9881
  const zDonut = external_zod_namespaceObject.z.object({
9649
9882
  chartType: external_zod_namespaceObject.z.literal('donut'),
9650
- dataset: zDataset.optional(),
9651
- dimensions: zDimensions.optional(),
9652
- measures: zMeasureTree.optional(),
9653
- backgroundColor: zBackgroundColor.optional(),
9654
- color: zColor.optional(),
9655
- label: zLabel.optional(),
9656
- legend: zLegend.optional(),
9657
- tooltip: zTooltip.optional(),
9658
- theme: zTheme.optional(),
9659
- locale: zLocale.optional()
9883
+ dataset: zDataset.nullish(),
9884
+ dimensions: zDimensions.nullish(),
9885
+ measures: zMeasureTree.nullish(),
9886
+ backgroundColor: zBackgroundColor.nullish(),
9887
+ color: zColor.nullish(),
9888
+ label: zLabel.nullish(),
9889
+ legend: zLegend.nullish(),
9890
+ tooltip: zTooltip.nullish(),
9891
+ theme: zTheme.nullish(),
9892
+ locale: zLocale.nullish()
9660
9893
  });
9661
9894
  const zRadar = external_zod_namespaceObject.z.object({
9662
9895
  chartType: external_zod_namespaceObject.z.literal('radar'),
9663
- dataset: zDataset.optional(),
9664
- dimensions: zDimensions.optional(),
9665
- measures: zMeasureTree.optional(),
9666
- backgroundColor: zBackgroundColor.optional(),
9667
- color: zColor.optional(),
9668
- label: zLabel.optional(),
9669
- legend: zLegend.optional(),
9670
- tooltip: zTooltip.optional(),
9671
- theme: zTheme.optional(),
9672
- locale: zLocale.optional()
9896
+ dataset: zDataset.nullish(),
9897
+ dimensions: zDimensions.nullish(),
9898
+ measures: zMeasureTree.nullish(),
9899
+ backgroundColor: zBackgroundColor.nullish(),
9900
+ color: zColor.nullish(),
9901
+ label: zLabel.nullish(),
9902
+ legend: zLegend.nullish(),
9903
+ tooltip: zTooltip.nullish(),
9904
+ theme: zTheme.nullish(),
9905
+ locale: zLocale.nullish()
9673
9906
  });
9674
9907
  const zFunnel = external_zod_namespaceObject.z.object({
9675
9908
  chartType: external_zod_namespaceObject.z.literal('funnel'),
9676
- dataset: zDataset.optional(),
9677
- dimensions: zDimensions.optional(),
9678
- measures: zMeasureTree.optional(),
9679
- backgroundColor: zBackgroundColor.optional(),
9680
- color: zLinearColor.optional(),
9681
- label: zLabel.optional(),
9682
- legend: zColorLegend.optional(),
9683
- tooltip: zTooltip.optional(),
9684
- theme: zTheme.optional(),
9685
- locale: zLocale.optional()
9909
+ dataset: zDataset.nullish(),
9910
+ dimensions: zDimensions.nullish(),
9911
+ measures: zMeasureTree.nullish(),
9912
+ backgroundColor: zBackgroundColor.nullish(),
9913
+ color: zLinearColor.nullish(),
9914
+ label: zLabel.nullish(),
9915
+ legend: zColorLegend.nullish(),
9916
+ tooltip: zTooltip.nullish(),
9917
+ theme: zTheme.nullish(),
9918
+ locale: zLocale.nullish()
9686
9919
  });
9687
9920
  const zHeatmap = external_zod_namespaceObject.z.object({
9688
9921
  chartType: external_zod_namespaceObject.z.literal('heatmap'),
9689
- dataset: zDataset.optional(),
9690
- dimensions: zDimensions.optional(),
9691
- measures: zMeasureTree.optional(),
9692
- backgroundColor: zBackgroundColor.optional(),
9693
- color: zLinearColor.optional(),
9694
- label: zLabel.optional(),
9695
- legend: zColorLegend.optional(),
9696
- tooltip: zTooltip.optional(),
9697
- theme: zTheme.optional(),
9698
- locale: zLocale.optional()
9922
+ dataset: zDataset.nullish(),
9923
+ dimensions: zDimensions.nullish(),
9924
+ measures: zMeasureTree.nullish(),
9925
+ backgroundColor: zBackgroundColor.nullish(),
9926
+ color: zLinearColor.nullish(),
9927
+ label: zLabel.nullish(),
9928
+ legend: zColorLegend.nullish(),
9929
+ tooltip: zTooltip.nullish(),
9930
+ theme: zTheme.nullish(),
9931
+ locale: zLocale.nullish()
9699
9932
  });
9700
9933
  const zVSeed = external_zod_namespaceObject.z.discriminatedUnion('chartType', [
9701
9934
  zTable,
@@ -9791,8 +10024,14 @@ exports.heatmapAdvancedPipeline = __webpack_exports__.heatmapAdvancedPipeline;
9791
10024
  exports.heatmapSpecPipeline = __webpack_exports__.heatmapSpecPipeline;
9792
10025
  exports.i18n = __webpack_exports__.i18n;
9793
10026
  exports.intl = __webpack_exports__.intl;
10027
+ exports.isDimension = __webpack_exports__.isDimension;
10028
+ exports.isDimensionGroup = __webpack_exports__.isDimensionGroup;
9794
10029
  exports.isDimensionSelector = __webpack_exports__.isDimensionSelector;
10030
+ exports.isDimensions = __webpack_exports__.isDimensions;
10031
+ exports.isMeasure = __webpack_exports__.isMeasure;
10032
+ exports.isMeasureGroup = __webpack_exports__.isMeasureGroup;
9795
10033
  exports.isMeasureSelector = __webpack_exports__.isMeasureSelector;
10034
+ exports.isMeasures = __webpack_exports__.isMeasures;
9796
10035
  exports.isPartialDatumSelector = __webpack_exports__.isPartialDatumSelector;
9797
10036
  exports.isPivotChart = __webpack_exports__.isPivotChart;
9798
10037
  exports.isPivotTable = __webpack_exports__.isPivotTable;
@@ -10000,8 +10239,14 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
10000
10239
  "heatmapSpecPipeline",
10001
10240
  "i18n",
10002
10241
  "intl",
10242
+ "isDimension",
10243
+ "isDimensionGroup",
10003
10244
  "isDimensionSelector",
10245
+ "isDimensions",
10246
+ "isMeasure",
10247
+ "isMeasureGroup",
10004
10248
  "isMeasureSelector",
10249
+ "isMeasures",
10005
10250
  "isPartialDatumSelector",
10006
10251
  "isPivotChart",
10007
10252
  "isPivotTable",