@devtable/dashboard 12.7.0 → 12.8.0

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 (132) hide show
  1. package/dist/components/filter/filter-date-range/widget/shortcuts/shortcuts.d.ts +1 -1
  2. package/dist/components/panel/settings/common/data-field-selector.d.ts +1 -0
  3. package/dist/components/panel/settings/common/mantine-size-selector.d.ts +6 -3
  4. package/dist/components/plugins/common-echarts-fields/axis-label-rotate/axis-label-rotate-input.d.ts +10 -0
  5. package/dist/components/plugins/common-echarts-fields/axis-label-rotate/index.d.ts +1 -0
  6. package/dist/components/plugins/common-echarts-fields/label-position/label-position-selector.d.ts +3 -2
  7. package/dist/components/plugins/common-echarts-fields/line-type/index.d.ts +2 -0
  8. package/dist/components/plugins/common-echarts-fields/line-type/line-type-selector.d.ts +11 -0
  9. package/dist/components/plugins/common-echarts-fields/line-type/types.d.ts +1 -0
  10. package/dist/components/plugins/common-echarts-fields/name-text-align/index.d.ts +2 -0
  11. package/dist/components/plugins/common-echarts-fields/name-text-align/name-text-align-selector.d.ts +12 -0
  12. package/dist/components/plugins/common-echarts-fields/name-text-align/types.d.ts +1 -0
  13. package/dist/components/plugins/common-echarts-fields/orientation/index.d.ts +2 -0
  14. package/dist/components/plugins/common-echarts-fields/orientation/orientation-selector.d.ts +12 -0
  15. package/dist/components/plugins/common-echarts-fields/orientation/types.d.ts +1 -0
  16. package/dist/components/plugins/common-echarts-fields/regression-line/types.d.ts +3 -2
  17. package/dist/components/plugins/{viz-components/cartesian/editors/scatter-size-select → common-echarts-fields/symbol-size}/dynamic-size-function-editor.d.ts +3 -3
  18. package/dist/components/plugins/common-echarts-fields/symbol-size/dynamic.d.ts +6 -0
  19. package/dist/components/plugins/common-echarts-fields/symbol-size/index.d.ts +2 -0
  20. package/dist/components/plugins/common-echarts-fields/symbol-size/static.d.ts +7 -0
  21. package/dist/components/plugins/common-echarts-fields/symbol-size/symbol-size-selector.d.ts +9 -0
  22. package/dist/components/plugins/common-echarts-fields/symbol-size/types.d.ts +13 -0
  23. package/dist/components/plugins/common-echarts-fields/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +2 -1
  24. package/dist/components/plugins/common-echarts-fields/x-axis-label-formatter/index.d.ts +4 -9
  25. package/dist/components/plugins/common-echarts-fields/x-axis-label-formatter/types.d.ts +1 -1
  26. package/dist/components/plugins/{viz-components/cartesian/editors/x-axis/x-axis-label-formatter/index.d.ts → common-echarts-fields/x-axis-label-formatter/x-axis-label-formatter-field.d.ts} +1 -0
  27. package/dist/components/plugins/common-echarts-fields/x-axis-position/index.d.ts +2 -0
  28. package/dist/components/plugins/common-echarts-fields/x-axis-position/types.d.ts +1 -0
  29. package/dist/components/plugins/common-echarts-fields/x-axis-position/x-axis-position-selector.d.ts +11 -0
  30. package/dist/components/plugins/common-echarts-fields/y-axis-position/index.d.ts +2 -0
  31. package/dist/components/plugins/common-echarts-fields/y-axis-position/types.d.ts +1 -0
  32. package/dist/components/plugins/common-echarts-fields/y-axis-position/y-axis-position-selector.d.ts +11 -0
  33. package/dist/components/plugins/editor-components/color-type/color-type-selector.d.ts +11 -0
  34. package/dist/components/plugins/editor-components/color-type/index.d.ts +2 -0
  35. package/dist/components/plugins/editor-components/color-type/type.d.ts +1 -0
  36. package/dist/components/plugins/editor-components/flex/align-items-selector.d.ts +11 -0
  37. package/dist/components/plugins/editor-components/flex/index.d.ts +3 -0
  38. package/dist/components/plugins/editor-components/flex/justify-content-selector.d.ts +11 -0
  39. package/dist/components/plugins/editor-components/flex/type.d.ts +2 -0
  40. package/dist/components/plugins/editor-components/horizontal-align-selector.d.ts +11 -0
  41. package/dist/components/plugins/editor-components/index.d.ts +7 -0
  42. package/dist/components/plugins/editor-components/vertical-align-selector.d.ts +11 -0
  43. package/dist/components/plugins/editor-components/viz-config-banner.d.ts +5 -0
  44. package/dist/components/plugins/viz-components/bar-3d-chart/translation.d.ts +2 -0
  45. package/dist/components/plugins/viz-components/boxplot-chart/type.d.ts +3 -3
  46. package/dist/components/plugins/viz-components/button/translation.d.ts +2 -0
  47. package/dist/components/plugins/viz-components/button/type.d.ts +3 -2
  48. package/dist/components/plugins/viz-components/calendar-heatmap/option/formatters.d.ts +1 -1
  49. package/dist/components/plugins/viz-components/calendar-heatmap/translation.d.ts +2 -0
  50. package/dist/components/plugins/viz-components/cartesian/migrators/index.d.ts +1 -1
  51. package/dist/components/plugins/viz-components/cartesian/option/series/get-echarts-symbol-size.d.ts +2 -0
  52. package/dist/components/plugins/viz-components/cartesian/option/series/reference_lines.d.ts +1 -1
  53. package/dist/components/plugins/viz-components/cartesian/translation.d.ts +2 -0
  54. package/dist/components/plugins/viz-components/cartesian/type.d.ts +15 -10
  55. package/dist/components/plugins/viz-components/funnel/translation.d.ts +2 -0
  56. package/dist/components/plugins/viz-components/funnel/type.d.ts +2 -1
  57. package/dist/components/plugins/viz-components/heatmap/option/formatters.d.ts +1 -1
  58. package/dist/components/plugins/viz-components/heatmap/option/x-axis.d.ts +1 -1
  59. package/dist/components/plugins/viz-components/heatmap/option/y-axis.d.ts +1 -1
  60. package/dist/components/plugins/viz-components/heatmap/translation.d.ts +2 -0
  61. package/dist/components/plugins/viz-components/heatmap/type.d.ts +3 -2
  62. package/dist/components/plugins/viz-components/horizontal-bar-chart/option/series/reference_lines.d.ts +2 -2
  63. package/dist/components/plugins/viz-components/horizontal-bar-chart/translation.d.ts +2 -0
  64. package/dist/components/plugins/viz-components/horizontal-bar-chart/type.d.ts +11 -6
  65. package/dist/components/plugins/viz-components/merico-estimation-chart/option/x-axis.d.ts +1 -1
  66. package/dist/components/plugins/viz-components/merico-estimation-chart/translation.d.ts +2 -0
  67. package/dist/components/plugins/viz-components/merico-estimation-chart/type.d.ts +1 -1
  68. package/dist/components/plugins/viz-components/merico-heatmap/render/option/formatters.d.ts +1 -1
  69. package/dist/components/plugins/viz-components/merico-heatmap/render/option/x-axis.d.ts +1 -1
  70. package/dist/components/plugins/viz-components/merico-heatmap/render/option/y-axis.d.ts +1 -1
  71. package/dist/components/plugins/viz-components/merico-heatmap/translation.d.ts +2 -0
  72. package/dist/components/plugins/viz-components/merico-heatmap/type.d.ts +4 -3
  73. package/dist/components/plugins/viz-components/merico-stats/translation.d.ts +2 -0
  74. package/dist/components/plugins/viz-components/merico-stats/type.d.ts +3 -3
  75. package/dist/components/plugins/viz-components/pareto-chart/translation.d.ts +2 -0
  76. package/dist/components/plugins/viz-components/pareto-chart/type.d.ts +4 -3
  77. package/dist/components/plugins/viz-components/pie-chart/translation.d.ts +2 -0
  78. package/dist/components/plugins/viz-components/radar-chart/translation.d.ts +2 -0
  79. package/dist/components/plugins/viz-components/regression-chart/migrators/index.d.ts +1 -1
  80. package/dist/components/plugins/viz-components/regression-chart/translation.d.ts +2 -0
  81. package/dist/components/plugins/viz-components/regression-chart/type.d.ts +1 -1
  82. package/dist/components/plugins/viz-components/rich-text/translation.d.ts +2 -0
  83. package/dist/components/plugins/viz-components/scatter-chart/option/get-echarts-symbol-size.d.ts +2 -0
  84. package/dist/components/plugins/viz-components/scatter-chart/translation.d.ts +2 -0
  85. package/dist/components/plugins/viz-components/scatter-chart/type.d.ts +5 -4
  86. package/dist/components/plugins/viz-components/stats/translation.d.ts +2 -0
  87. package/dist/components/plugins/viz-components/stats/type.d.ts +3 -2
  88. package/dist/components/plugins/viz-components/sunburst/translation.d.ts +2 -0
  89. package/dist/components/plugins/viz-components/table/translation.d.ts +2 -0
  90. package/dist/components/plugins/viz-components/table/type.d.ts +2 -1
  91. package/dist/components/plugins/viz-components/table/value-type-selector.d.ts +0 -1
  92. package/dist/components/plugins/viz-components/text/translation.d.ts +2 -0
  93. package/dist/components/plugins/viz-components/text/type.d.ts +2 -1
  94. package/dist/components/plugins/viz-components/viz-merico-gqm/translation.d.ts +2 -0
  95. package/dist/contexts/dates-provider.d.ts +4 -0
  96. package/dist/contexts/index.d.ts +1 -0
  97. package/dist/dashboard.es.js +16783 -15865
  98. package/dist/dashboard.umd.js +116 -121
  99. package/dist/i18n/en.d.ts +451 -6
  100. package/dist/i18n/zh.d.ts +451 -6
  101. package/dist/stats.html +1 -1
  102. package/package.json +1 -1
  103. package/dist/components/panel/settings/common/css-types.d.ts +0 -10
  104. package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/dynamic.d.ts +0 -6
  105. package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/get-echarts-symbol-size.d.ts +0 -2
  106. package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/index.d.ts +0 -9
  107. package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/static.d.ts +0 -7
  108. package/dist/components/plugins/viz-components/cartesian/editors/scatter-size-select/types.d.ts +0 -13
  109. package/dist/components/plugins/viz-components/cartesian/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -7
  110. package/dist/components/plugins/viz-components/cartesian/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -2
  111. package/dist/components/plugins/viz-components/cartesian/editors/x-axis/x-axis-label-formatter/types.d.ts +0 -8
  112. package/dist/components/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -7
  113. package/dist/components/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -3
  114. package/dist/components/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -8
  115. package/dist/components/plugins/viz-components/heatmap/editors/x-axis/x-axis-label-formatter/types.d.ts +0 -8
  116. package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -7
  117. package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -3
  118. package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -8
  119. package/dist/components/plugins/viz-components/merico-heatmap/editors/x-axis/x-axis-label-formatter/types.d.ts +0 -8
  120. package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/dynamic-size-function-editor.d.ts +0 -7
  121. package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/dynamic.d.ts +0 -6
  122. package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/get-echarts-symbol-size.d.ts +0 -2
  123. package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/index.d.ts +0 -9
  124. package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/static.d.ts +0 -7
  125. package/dist/components/plugins/viz-components/scatter-chart/editors/scatter/scatter-size-select/types.d.ts +0 -13
  126. package/dist/components/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/function-editor.d.ts +0 -7
  127. package/dist/components/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label.d.ts +0 -2
  128. package/dist/components/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/index.d.ts +0 -8
  129. package/dist/components/plugins/viz-components/scatter-chart/editors/x-axis/x-axis-label-formatter/types.d.ts +0 -5
  130. /package/dist/components/plugins/{controls → editor-components}/color-interpolation-select/index.d.ts +0 -0
  131. /package/dist/components/plugins/{controls → editor-components}/color-mapping-editor/index.d.ts +0 -0
  132. /package/dist/components/plugins/{controls → editor-components}/color-mapping-editor/style.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { DateRangeValue } from '../type';
2
2
  export type GetRange = () => DateRangeValue;
3
3
  type Shrotcut = {
4
- label: string;
4
+ key: string;
5
5
  value: string;
6
6
  group: 'last' | 'recent' | 'this';
7
7
  getRange: GetRange;
@@ -7,6 +7,7 @@ interface IDataFieldSelector {
7
7
  onChange: (v: string) => void;
8
8
  clearable?: boolean;
9
9
  sx?: Sx;
10
+ description?: string;
10
11
  }
11
12
  export declare const DataFieldSelector: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IDataFieldSelector & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>>;
12
13
  export {};
@@ -1,8 +1,11 @@
1
- import { MantineSize } from '@mantine/core';
2
- interface IMantineSizeSelector {
1
+ /// <reference types="react" />
2
+ import { MantineSize, Sx } from '@mantine/core';
3
+ interface Props {
3
4
  label: string;
4
5
  value: MantineSize;
5
6
  onChange: (v: MantineSize) => void;
7
+ sx?: Sx;
8
+ disabled?: boolean;
6
9
  }
7
- export declare const MantineSizeSelector: ({ label, value, onChange }: IMantineSizeSelector) => import('./react/jsx-runtime').JSX.Element;
10
+ export declare const MantineSizeSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
8
11
  export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ interface Props {
4
+ label?: string;
5
+ value?: number;
6
+ onChange: (v: number) => void;
7
+ sx?: Sx;
8
+ }
9
+ export declare const AxisLabelRotateInput: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
10
+ export {};
@@ -0,0 +1 @@
1
+ export * from './axis-label-rotate-input';
@@ -2,9 +2,10 @@
2
2
  import { IEchartsLabelPosition, LabelPositionOptionType } from './types';
3
3
  interface ILabelPositionSelector {
4
4
  label: string;
5
- value: IEchartsLabelPosition;
6
- onChange: (v: IEchartsLabelPosition) => void;
5
+ value?: IEchartsLabelPosition;
6
+ onChange: (v: IEchartsLabelPosition | undefined) => void;
7
7
  options?: LabelPositionOptionType[];
8
+ withOffOption?: boolean;
8
9
  }
9
10
  export declare const LabelPositionSelector: import('./react').ForwardRefExoticComponent<ILabelPositionSelector & import('./react').RefAttributes<HTMLInputElement>>;
10
11
  export {};
@@ -0,0 +1,2 @@
1
+ export * from './line-type-selector';
2
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ import { IEChartsLineType } from './types';
4
+ interface Props {
5
+ label?: string;
6
+ value?: IEChartsLineType;
7
+ onChange: (v: IEChartsLineType) => void;
8
+ sx?: Sx;
9
+ }
10
+ export declare const LineTypeSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1 @@
1
+ export type IEChartsLineType = 'solid' | 'dashed' | 'dotted';
@@ -0,0 +1,2 @@
1
+ export * from './name-text-align-selector';
2
+ export * from './types';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ import { EChartsNameTextAlign } from './types';
4
+ interface Props {
5
+ label?: string;
6
+ value?: EChartsNameTextAlign;
7
+ onChange: (v: EChartsNameTextAlign) => void;
8
+ sx?: Sx;
9
+ disabled?: boolean;
10
+ }
11
+ export declare const NameTextAlignSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
12
+ export {};
@@ -0,0 +1 @@
1
+ export type EChartsNameTextAlign = 'left' | 'center' | 'right';
@@ -0,0 +1,2 @@
1
+ export * from './orientation-selector';
2
+ export * from './types';
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ import { ChartingOrientation } from './types';
4
+ interface Props {
5
+ label?: string;
6
+ value?: ChartingOrientation;
7
+ onChange: (v: ChartingOrientation) => void;
8
+ sx?: Sx;
9
+ disabled?: boolean;
10
+ }
11
+ export declare const OrientationSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
12
+ export {};
@@ -0,0 +1 @@
1
+ export type ChartingOrientation = 'horizontal' | 'vertical';
@@ -1,8 +1,9 @@
1
1
  import { AnyObject } from '../../../../types';
2
+ import { IEChartsLineType } from '../line-type';
2
3
  export interface IRegressionTransform {
3
4
  type: 'ecStat:regression';
4
5
  config: {
5
- method: 'linear' | 'exponential' | 'logarithmic' | 'polynomial';
6
+ method: 'linear' | 'exponential' | 'logistic' | 'polynomial';
6
7
  order: number;
7
8
  formulaOn: 'end';
8
9
  };
@@ -12,7 +13,7 @@ export interface IRegressionLineConf {
12
13
  yAxisIndex: number;
13
14
  color: string;
14
15
  lineStyle: {
15
- type: 'solid' | 'dashed' | 'dotted';
16
+ type: IEChartsLineType;
16
17
  width: number;
17
18
  };
18
19
  }
@@ -1,7 +1,7 @@
1
- import { TScatterSize_Dynamic } from './types';
1
+ import { SymbolSize_Dynamic } from './types';
2
2
  interface IDynamicSizeFunctionEditor {
3
- value: TScatterSize_Dynamic['func_content'];
4
- onChange: (v: TScatterSize_Dynamic['func_content']) => void;
3
+ value: SymbolSize_Dynamic['func_content'];
4
+ onChange: (v: SymbolSize_Dynamic['func_content']) => void;
5
5
  }
6
6
  export declare const DynamicSizeFunctionEditor: ({ value, onChange }: IDynamicSizeFunctionEditor) => import('./react/jsx-runtime').JSX.Element;
7
7
  export {};
@@ -0,0 +1,6 @@
1
+ import { SymbolSize } from './types';
2
+ export interface IDynamicSymbolSizeField {
3
+ value: SymbolSize;
4
+ onChange: (v: SymbolSize) => void;
5
+ }
6
+ export declare const DynamicSymbolSizeField: ({ value, onChange }: IDynamicSymbolSizeField) => import('./react/jsx-runtime').JSX.Element | null;
@@ -0,0 +1,2 @@
1
+ export * from './symbol-size-selector';
2
+ export * from './types';
@@ -0,0 +1,7 @@
1
+ import { SymbolSize } from './types';
2
+ interface IStaticSymbolSizeField {
3
+ value: SymbolSize;
4
+ onChange: (v: SymbolSize) => void;
5
+ }
6
+ export declare const StaticSymbolSizeField: ({ value, onChange }: IStaticSymbolSizeField) => import('./react/jsx-runtime').JSX.Element | null;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { SymbolSize } from './types';
3
+ interface ISymbolSizeSelect {
4
+ label?: string;
5
+ value: SymbolSize;
6
+ onChange: (v: SymbolSize) => void;
7
+ }
8
+ export declare const SymbolSizeSelector: import('./react').ForwardRefExoticComponent<ISymbolSizeSelect & import('./react').RefAttributes<HTMLInputElement>>;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ export type SymbolSize_Static = {
2
+ type: 'static';
3
+ size: number;
4
+ };
5
+ export type SymbolSize_Dynamic = {
6
+ type: 'dynamic';
7
+ func_content: string;
8
+ };
9
+ export type SymbolSize = SymbolSize_Static | SymbolSize_Dynamic;
10
+ export declare const DEFAULT_SCATTER_SIZE: {
11
+ static: SymbolSize_Static;
12
+ dynamic: SymbolSize_Dynamic;
13
+ };
@@ -1,2 +1,3 @@
1
1
  import { IXAxisLabelFormatter } from './types';
2
- export declare function getEchartsXAxisLabel({ enabled, func_content }: IXAxisLabelFormatter): (value: number | string, index: number) => any;
2
+ export type FormatterFuncType = (value: string | number, index?: number) => string | number;
3
+ export declare function getEchartsXAxisLabel({ enabled, func_content }: IXAxisLabelFormatter): FormatterFuncType;
@@ -1,9 +1,4 @@
1
- /// <reference types="react" />
2
- import { IXAxisLabelFormatter } from './types';
3
- interface IXAxisLabelFormatterField {
4
- value: IXAxisLabelFormatter;
5
- onChange: (v: IXAxisLabelFormatter) => void;
6
- triggerButtonText?: string;
7
- }
8
- export declare const XAxisLabelFormatterField: import('./react').ForwardRefExoticComponent<IXAxisLabelFormatterField & import('./react').RefAttributes<unknown>>;
9
- export {};
1
+ export * from './function-editor';
2
+ export * from './get-echarts-x-axis-tick-label';
3
+ export * from './x-axis-label-formatter-field';
4
+ export * from './types';
@@ -2,4 +2,4 @@ export interface IXAxisLabelFormatter {
2
2
  enabled: boolean;
3
3
  func_content: string;
4
4
  }
5
- export declare const DEFAULT_X_AXIS_LABEL_FORMATTER: IXAxisLabelFormatter;
5
+ export declare function getDefaultXAxisLabelFormatter(): IXAxisLabelFormatter;
@@ -3,6 +3,7 @@ import { IXAxisLabelFormatter } from './types';
3
3
  interface IXAxisLabelFormatterField {
4
4
  value: IXAxisLabelFormatter;
5
5
  onChange: (v: IXAxisLabelFormatter) => void;
6
+ triggerButtonText?: string;
6
7
  }
7
8
  export declare const XAxisLabelFormatterField: import('./react').ForwardRefExoticComponent<IXAxisLabelFormatterField & import('./react').RefAttributes<unknown>>;
8
9
  export {};
@@ -0,0 +1,2 @@
1
+ export * from './x-axis-position-selector';
2
+ export * from './types';
@@ -0,0 +1 @@
1
+ export type EChartsXAxisPosition = 'top' | 'bottom';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ import { EChartsXAxisPosition } from './types';
4
+ interface Props {
5
+ label?: string;
6
+ value?: EChartsXAxisPosition;
7
+ onChange: (v: EChartsXAxisPosition) => void;
8
+ sx?: Sx;
9
+ }
10
+ export declare const XAxisPositionSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './y-axis-position-selector';
2
+ export * from './types';
@@ -0,0 +1 @@
1
+ export type EChartsYAxisPosition = 'left' | 'right';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ import { EChartsYAxisPosition } from './types';
4
+ interface Props {
5
+ label?: string;
6
+ value?: EChartsYAxisPosition;
7
+ onChange: (v: EChartsYAxisPosition) => void;
8
+ sx?: Sx;
9
+ }
10
+ export declare const YAxisPositionSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ import { ColorType } from './type';
4
+ interface Props {
5
+ label?: string;
6
+ value?: ColorType;
7
+ onChange: (v: ColorType) => void;
8
+ sx?: Sx;
9
+ }
10
+ export declare const ColorTypeSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './color-type-selector';
2
+ export * from './type';
@@ -0,0 +1 @@
1
+ export type ColorType = 'static' | 'interpolation' | 'none';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ import { AlignItems } from './type';
4
+ interface Props {
5
+ label?: string;
6
+ value?: AlignItems;
7
+ onChange: (v: AlignItems) => void;
8
+ sx?: Sx;
9
+ }
10
+ export declare const AlignItemsSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './justify-content-selector';
2
+ export * from './align-items-selector';
3
+ export * from './type';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ import { JustifyContent } from './type';
4
+ interface Props {
5
+ label?: string;
6
+ value?: JustifyContent;
7
+ onChange: (v: JustifyContent) => void;
8
+ sx?: Sx;
9
+ }
10
+ export declare const JustifyContentSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1,2 @@
1
+ export type JustifyContent = 'center' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly';
2
+ export type AlignItems = 'start' | 'center' | 'end' | 'stretch';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ export type HorizontalAlign = 'left' | 'center' | 'right';
4
+ interface Props {
5
+ label?: string;
6
+ value?: HorizontalAlign;
7
+ onChange: (v: HorizontalAlign) => void;
8
+ sx?: Sx;
9
+ }
10
+ export declare const HorizontalAlignSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from './viz-config-banner';
2
+ export * from './horizontal-align-selector';
3
+ export * from './vertical-align-selector';
4
+ export * from './color-interpolation-select';
5
+ export * from './color-mapping-editor';
6
+ export * from './color-type';
7
+ export * from './flex';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Sx } from '@mantine/core';
3
+ export type VerticalAlign = 'top' | 'center' | 'bottom';
4
+ interface Props {
5
+ label?: string;
6
+ value?: VerticalAlign;
7
+ onChange: (v: VerticalAlign) => void;
8
+ sx?: Sx;
9
+ }
10
+ export declare const VerticalAlignSelector: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLInputElement>>;
11
+ export {};
@@ -0,0 +1,5 @@
1
+ type Props = {
2
+ canSubmit: boolean;
3
+ };
4
+ export declare function VizConfigBanner({ canSubmit }: Props): import('./react/jsx-runtime').JSX.Element;
5
+ export {};
@@ -0,0 +1,2 @@
1
+ import { TranslationPatch } from '../../../../types/plugin';
2
+ export declare const translation: TranslationPatch;
@@ -2,21 +2,21 @@ import { IAxisLabelOverflow } from '../../../../components/plugins/common-echart
2
2
  import { IEchartsTooltipMetric } from '../../../../components/plugins/common-echarts-fields/tooltip-metric';
3
3
  import { AnyObject } from '../../../../types';
4
4
  import { TNumberFormat } from '../../../../utils';
5
- import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
5
+ import { ChartingOrientation } from '../../common-echarts-fields/orientation';
6
+ import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
6
7
  import { TEchartsDataZoomConfig } from '../cartesian/editors/echarts-zooming-field/types';
7
8
  export interface IBoxplotReferenceLine {
8
9
  name: string;
9
10
  template: string;
10
11
  variable_key: string;
11
12
  }
12
- export type TLegendOrientation = 'horizontal' | 'vertical';
13
13
  export type TBoxplotLegend = {
14
14
  show: boolean;
15
15
  top: string;
16
16
  right: string;
17
17
  bottom: string;
18
18
  left: string;
19
- orient: TLegendOrientation;
19
+ orient: ChartingOrientation;
20
20
  type: 'scroll';
21
21
  };
22
22
  export interface IBoxplotChartConf {
@@ -0,0 +1,2 @@
1
+ import { TranslationPatch } from '../../../../types/plugin';
2
+ export declare const translation: TranslationPatch;
@@ -1,11 +1,12 @@
1
1
  import { MantineColor, MantineSize, Variants } from '@mantine/core';
2
+ import { HorizontalAlign, VerticalAlign } from '../../editor-components';
2
3
  export interface IButtonConf {
3
4
  content: string;
4
5
  variant: Variants<'filled' | 'outline' | 'light' | 'white' | 'default' | 'subtle' | 'gradient'>;
5
6
  color: MantineColor;
6
7
  size: MantineSize;
7
8
  compact: boolean;
8
- horizontal_align: 'left' | 'center' | 'right';
9
- vertical_align: 'top' | 'center' | 'bottom';
9
+ horizontal_align: HorizontalAlign;
10
+ vertical_align: VerticalAlign;
10
11
  }
11
12
  export declare const DEFAULT_CONFIG: IButtonConf;
@@ -1,5 +1,5 @@
1
- import { FormatterFuncType } from '../../heatmap/editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
2
1
  import { ICalendarHeatmapConf } from '../type';
2
+ import { FormatterFuncType } from '../../../../../components/plugins/common-echarts-fields/x-axis-label-formatter';
3
3
  export type ValueFormattersType = {
4
4
  heat_block: FormatterFuncType;
5
5
  };
@@ -0,0 +1,2 @@
1
+ import { TranslationPatch } from '../../../../types/plugin';
2
+ export declare const translation: TranslationPatch;
@@ -1,7 +1,7 @@
1
+ import { IMigrationEnv } from '../../../../../components/plugins';
1
2
  import { AnyObject } from '../../../../../types';
2
3
  import { ITemplateVariable } from '../../../../../utils';
3
4
  import { ICartesianChartConf } from '../type';
4
- import { IMigrationEnv } from '../../../../../components/plugins';
5
5
  export declare function updateSchema2(legacyConf: ICartesianChartConf & {
6
6
  variables: ITemplateVariable[];
7
7
  }): AnyObject;
@@ -0,0 +1,2 @@
1
+ import { SymbolSize } from '../../../../common-echarts-fields/symbol-size/types';
2
+ export declare function getEChartsSymbolSize({ type, ...rest }: SymbolSize, data: TPanelData, x_axis_data_key: string, variableValueMap: Record<string, string | number>): number | ((_value: number, params: $TSFixMe) => any);
@@ -20,7 +20,7 @@ export declare function getReferenceLines(reference_lines: ICartesianReferenceLi
20
20
  silent: boolean;
21
21
  symbol: string[];
22
22
  lineStyle: {
23
- type: "dashed" | "dotted" | "solid";
23
+ type: import("../../../../common-echarts-fields/line-type").IEChartsLineType;
24
24
  width: number;
25
25
  color: string;
26
26
  };
@@ -0,0 +1,2 @@
1
+ import { TranslationPatch } from '../../../../types/plugin';
2
+ export declare const translation: TranslationPatch;
@@ -1,19 +1,24 @@
1
1
  import { IAxisLabelOverflow } from '../../../../components/plugins/common-echarts-fields/axis-label-overflow';
2
2
  import { IRegressionLineConf, IRegressionTransform } from '../../../../components/plugins/common-echarts-fields/regression-line';
3
3
  import { AggregationType, TNumberFormat } from '../../../../utils';
4
- import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
5
- import { TScatterSize } from './editors/scatter-size-select/types';
6
- import { IXAxisLabelFormatter } from './editors/x-axis/x-axis-label-formatter/types';
4
+ import { IEchartsLabelPosition } from '../../common-echarts-fields/label-position';
5
+ import { IEChartsLineType } from '../../common-echarts-fields/line-type';
6
+ import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-align';
7
+ import { ChartingOrientation } from '../../common-echarts-fields/orientation';
8
+ import { SymbolSize } from '../../common-echarts-fields/symbol-size';
7
9
  import { IEchartsTooltipMetric } from '../../common-echarts-fields/tooltip-metric';
10
+ import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
11
+ import { EChartsYAxisPosition } from '../../common-echarts-fields/y-axis-position';
12
+ import { TEchartsDataZoomConfig } from './editors/echarts-zooming-field/types';
8
13
  export interface ICartesianChartSeriesItem {
9
14
  type: 'line' | 'bar' | 'scatter';
10
15
  name: string;
11
16
  display_name_on_line: boolean;
12
17
  showSymbol: boolean;
13
- symbolSize: TScatterSize;
18
+ symbolSize: SymbolSize;
14
19
  y_axis_data_key: TDataKey;
15
20
  yAxisIndex: number;
16
- label_position?: string;
21
+ label_position?: IEchartsLabelPosition;
17
22
  stack: string;
18
23
  color?: string;
19
24
  barMinWidth: string;
@@ -25,7 +30,7 @@ export interface ICartesianChartSeriesItem {
25
30
  group_by_key: string;
26
31
  aggregation_on_value?: AggregationType;
27
32
  lineStyle: {
28
- type: 'solid' | 'dashed' | 'dotted';
33
+ type: IEChartsLineType;
29
34
  width: number;
30
35
  };
31
36
  hide_in_legend: boolean;
@@ -35,8 +40,8 @@ export interface IYAxisConf {
35
40
  max: string;
36
41
  name: string;
37
42
  show: boolean;
38
- position: 'left' | 'right';
39
- nameAlignment: 'left' | 'center' | 'right';
43
+ position: EChartsYAxisPosition;
44
+ nameAlignment: EChartsNameTextAlign;
40
45
  label_formatter: TNumberFormat;
41
46
  }
42
47
  export interface IRegressionConf {
@@ -50,10 +55,10 @@ export interface ICartesianReferenceLine {
50
55
  name: string;
51
56
  template: string;
52
57
  variable_key: string;
53
- orientation: 'horizontal' | 'vertical';
58
+ orientation: ChartingOrientation;
54
59
  yAxisIndex: number;
55
60
  lineStyle: {
56
- type: 'solid' | 'dashed' | 'dotted';
61
+ type: IEChartsLineType;
57
62
  width: number;
58
63
  color: string;
59
64
  };
@@ -0,0 +1,2 @@
1
+ import { TranslationPatch } from '../../../../types/plugin';
2
+ export declare const translation: TranslationPatch;
@@ -1,5 +1,6 @@
1
1
  import { IAxisLabelOverflow } from '../../../../components/plugins/common-echarts-fields/axis-label-overflow';
2
2
  import { IEchartsLabelPosition } from '../../../../components/plugins/common-echarts-fields/label-position';
3
+ import { ChartingOrientation } from '../../common-echarts-fields/orientation';
3
4
  export declare function getNewSeriesItem(id?: string): IFunnelSeriesItem;
4
5
  export interface IFunnelSeriesItem {
5
6
  id: string;
@@ -23,7 +24,7 @@ export interface IFunnelSeriesItem {
23
24
  overflow: IAxisLabelOverflow;
24
25
  };
25
26
  sort: 'ascending' | 'descending' | 'none';
26
- orient: 'horizontal' | 'vertical';
27
+ orient: ChartingOrientation;
27
28
  funnelAlign: 'left' | 'right' | 'center';
28
29
  }
29
30
  export interface IFunnelConf {
@@ -1,5 +1,5 @@
1
- import { FormatterFuncType } from '../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
2
1
  import { IHeatmapConf } from '../type';
2
+ import { FormatterFuncType } from '../../../../../components/plugins/common-echarts-fields/x-axis-label-formatter';
3
3
  export type LabelFormattersType = {
4
4
  x_axis: FormatterFuncType;
5
5
  y_axis: FormatterFuncType;
@@ -1,3 +1,3 @@
1
- import { FormatterFuncType } from '../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
2
1
  import { IHeatmapConf } from '../type';
2
+ import { FormatterFuncType } from '../../../../../components/plugins/common-echarts-fields/x-axis-label-formatter';
3
3
  export declare function getXAxis(conf: IHeatmapConf, xData: any[], formatterFunc: FormatterFuncType, borderWidth: number): any;
@@ -1,3 +1,3 @@
1
- import { FormatterFuncType } from '../editors/x-axis/x-axis-label-formatter/get-echarts-x-axis-tick-label';
2
1
  import { IHeatmapConf } from '../type';
2
+ import { FormatterFuncType } from '../../../../../components/plugins/common-echarts-fields/x-axis-label-formatter';
3
3
  export declare function getYAxis(conf: IHeatmapConf, yData: any[], formatterFunc: FormatterFuncType, borderWidth: number): any;
@@ -0,0 +1,2 @@
1
+ import { TranslationPatch } from '../../../../types/plugin';
2
+ export declare const translation: TranslationPatch;
@@ -2,7 +2,8 @@ import { IAxisLabelOverflow } from '../../../../components/plugins/common-echart
2
2
  import { TNumberOrDynamic } from '../../../../components/plugins/common-echarts-fields/number-or-dynamic-value/types';
3
3
  import { IEchartsTooltipMetric } from '../../../../components/plugins/common-echarts-fields/tooltip-metric';
4
4
  import { TNumberFormat } from '../../../../utils';
5
- import { IXAxisLabelFormatter } from '../cartesian/editors/x-axis/x-axis-label-formatter/types';
5
+ import { EChartsNameTextAlign } from '../../common-echarts-fields/name-text-align';
6
+ import { IXAxisLabelFormatter } from '../../common-echarts-fields/x-axis-label-formatter';
6
7
  export interface IHeatmapConf {
7
8
  x_axis: {
8
9
  name: string;
@@ -16,7 +17,7 @@ export interface IHeatmapConf {
16
17
  y_axis: {
17
18
  name: string;
18
19
  data_key: TDataKey;
19
- nameAlignment: 'left' | 'center' | 'right';
20
+ nameAlignment: EChartsNameTextAlign;
20
21
  axisLabel: {
21
22
  rotate: number;
22
23
  formatter: IXAxisLabelFormatter;