@devtable/dashboard 2.2.0 → 2.5.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 (122) hide show
  1. package/dist/dashboard.es.js +8052 -4307
  2. package/dist/dashboard.umd.js +41 -5
  3. package/package.json +22 -5
  4. package/dist/api-caller/index.d.ts +0 -20
  5. package/dist/api-caller/request.d.ts +0 -5
  6. package/dist/api-caller/types.d.ts +0 -11
  7. package/dist/contexts/context-info-context.d.ts +0 -5
  8. package/dist/contexts/dashboard-action-context.d.ts +0 -9
  9. package/dist/contexts/definition-context.d.ts +0 -7
  10. package/dist/contexts/filter-values-context.d.ts +0 -4
  11. package/dist/contexts/index.d.ts +0 -5
  12. package/dist/contexts/layout-state-context.d.ts +0 -11
  13. package/dist/contexts/panel-context.d.ts +0 -17
  14. package/dist/definition-editor/data-editor-modal.d.ts +0 -7
  15. package/dist/definition-editor/global-variables-guide.d.ts +0 -8
  16. package/dist/definition-editor/index.d.ts +0 -1
  17. package/dist/definition-editor/query-editor/data-preview.d.ts +0 -4
  18. package/dist/definition-editor/query-editor/editor.d.ts +0 -7
  19. package/dist/definition-editor/query-editor/form.d.ts +0 -8
  20. package/dist/definition-editor/query-editor/index.d.ts +0 -5
  21. package/dist/definition-editor/query-editor/preview-sql.d.ts +0 -6
  22. package/dist/definition-editor/query-editor/select-or-add-query.d.ts +0 -7
  23. package/dist/definition-editor/sql-snippet-editor/editor.d.ts +0 -5
  24. package/dist/definition-editor/sql-snippet-editor/index.d.ts +0 -5
  25. package/dist/definition-editor/sql-snippet-editor/preview-snippet.d.ts +0 -6
  26. package/dist/filter/filter-checkbox/editor.d.ts +0 -10
  27. package/dist/filter/filter-checkbox/render.d.ts +0 -9
  28. package/dist/filter/filter-date-range/editor.d.ts +0 -10
  29. package/dist/filter/filter-date-range/render.d.ts +0 -9
  30. package/dist/filter/filter-multi-select/editor.d.ts +0 -11
  31. package/dist/filter/filter-multi-select/render.d.ts +0 -9
  32. package/dist/filter/filter-query-field/index.d.ts +0 -8
  33. package/dist/filter/filter-query-field/select-data-source.d.ts +0 -8
  34. package/dist/filter/filter-select/editor.d.ts +0 -11
  35. package/dist/filter/filter-select/render.d.ts +0 -9
  36. package/dist/filter/filter-settings/filter-setting.d.ts +0 -11
  37. package/dist/filter/filter-settings/filter-settings.d.ts +0 -8
  38. package/dist/filter/filter-settings/index.d.ts +0 -10
  39. package/dist/filter/filter-settings/preview-filter.d.ts +0 -11
  40. package/dist/filter/filter-settings/types.d.ts +0 -4
  41. package/dist/filter/filter-text-input/editor.d.ts +0 -10
  42. package/dist/filter/filter-text-input/render.d.ts +0 -9
  43. package/dist/filter/filter.d.ts +0 -9
  44. package/dist/filter/index.d.ts +0 -9
  45. package/dist/index.d.ts +0 -5
  46. package/dist/layout/index.d.ts +0 -12
  47. package/dist/layout/read-only.d.ts +0 -9
  48. package/dist/main/actions.d.ts +0 -14
  49. package/dist/main/full-screen-panel.d.ts +0 -6
  50. package/dist/main/index.d.ts +0 -2
  51. package/dist/main/main.d.ts +0 -12
  52. package/dist/main/read-only.d.ts +0 -11
  53. package/dist/main/toggle-mode.d.ts +0 -8
  54. package/dist/main/use-filters.d.ts +0 -8
  55. package/dist/main/use-panel-full-screen.d.ts +0 -7
  56. package/dist/main/view-schema-modal.d.ts +0 -8
  57. package/dist/panel/error-boundary.d.ts +0 -13
  58. package/dist/panel/index.d.ts +0 -7
  59. package/dist/panel/panel-description.d.ts +0 -5
  60. package/dist/panel/settings/common/aggregation-selector.d.ts +0 -9
  61. package/dist/panel/settings/common/color-array-input.d.ts +0 -8
  62. package/dist/panel/settings/common/data-field-selector.d.ts +0 -12
  63. package/dist/panel/settings/common/mantine-color.d.ts +0 -7
  64. package/dist/panel/settings/common/mantine-font-weight.d.ts +0 -8
  65. package/dist/panel/settings/common/numbro-format-selector.d.ts +0 -13
  66. package/dist/panel/settings/common/text-array-input.d.ts +0 -8
  67. package/dist/panel/settings/index.d.ts +0 -7
  68. package/dist/panel/settings/panel-config/description.d.ts +0 -2
  69. package/dist/panel/settings/panel-config/index.d.ts +0 -5
  70. package/dist/panel/settings/panel-config/preview-panel.d.ts +0 -2
  71. package/dist/panel/settings/panel-config/title.d.ts +0 -2
  72. package/dist/panel/settings/pick-query/index.d.ts +0 -5
  73. package/dist/panel/settings/viz-config/index.d.ts +0 -5
  74. package/dist/panel/settings/viz-config/preview-viz.d.ts +0 -5
  75. package/dist/panel/settings/viz-config/viz-conf.d.ts +0 -2
  76. package/dist/panel/title-bar.d.ts +0 -5
  77. package/dist/panel/viz/bar-3d/index.d.ts +0 -9
  78. package/dist/panel/viz/bar-3d/panel.d.ts +0 -3
  79. package/dist/panel/viz/cartesian/index.d.ts +0 -10
  80. package/dist/panel/viz/cartesian/option/regression.d.ts +0 -20
  81. package/dist/panel/viz/cartesian/panel/index.d.ts +0 -3
  82. package/dist/panel/viz/cartesian/panel/regressions/index.d.ts +0 -11
  83. package/dist/panel/viz/cartesian/panel/regressions/regression-item.d.ts +0 -16
  84. package/dist/panel/viz/cartesian/panel/series/fields.bar.d.ts +0 -9
  85. package/dist/panel/viz/cartesian/panel/series/fields.line.d.ts +0 -9
  86. package/dist/panel/viz/cartesian/panel/series/fields.scatter.d.ts +0 -9
  87. package/dist/panel/viz/cartesian/panel/series/index.d.ts +0 -11
  88. package/dist/panel/viz/cartesian/panel/series/series-item.d.ts +0 -16
  89. package/dist/panel/viz/cartesian/panel/stats/index.d.ts +0 -10
  90. package/dist/panel/viz/cartesian/panel/stats/variable.d.ts +0 -11
  91. package/dist/panel/viz/cartesian/panel/y-axes.d.ts +0 -9
  92. package/dist/panel/viz/cartesian/type.d.ts +0 -58
  93. package/dist/panel/viz/index.d.ts +0 -9
  94. package/dist/panel/viz/pie/index.d.ts +0 -9
  95. package/dist/panel/viz/pie/panel.d.ts +0 -3
  96. package/dist/panel/viz/rich-text/index.d.ts +0 -10
  97. package/dist/panel/viz/rich-text/panel.d.ts +0 -3
  98. package/dist/panel/viz/rich-text/type.d.ts +0 -8
  99. package/dist/panel/viz/stats/index.d.ts +0 -10
  100. package/dist/panel/viz/stats/panel/index.d.ts +0 -10
  101. package/dist/panel/viz/stats/panel/variable.d.ts +0 -11
  102. package/dist/panel/viz/stats/panel/variables.d.ts +0 -10
  103. package/dist/panel/viz/stats/types.d.ts +0 -6
  104. package/dist/panel/viz/stats/update/index.d.ts +0 -15
  105. package/dist/panel/viz/sunburst/index.d.ts +0 -9
  106. package/dist/panel/viz/sunburst/panel.d.ts +0 -3
  107. package/dist/panel/viz/table/index.d.ts +0 -10
  108. package/dist/panel/viz/table/panel.d.ts +0 -3
  109. package/dist/panel/viz/table/type.d.ts +0 -21
  110. package/dist/panel/viz/table/value-type-selector.d.ts +0 -10
  111. package/dist/panel/viz/table/value.d.ts +0 -8
  112. package/dist/types/dashboard.d.ts +0 -49
  113. package/dist/types/filter.d.ts +0 -39
  114. package/dist/types/index.d.ts +0 -3
  115. package/dist/types/viz-panel.d.ts +0 -6
  116. package/dist/utils/aggregation.d.ts +0 -2
  117. package/dist/utils/color-mapping.d.ts +0 -9
  118. package/dist/utils/sql.d.ts +0 -8
  119. package/dist/utils/template/editor.d.ts +0 -16
  120. package/dist/utils/template/render.d.ts +0 -3
  121. package/dist/utils/template/types.d.ts +0 -21
  122. package/dist/vite-env.d.ts +0 -1
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { IDashboardPanel } from '../types/dashboard';
3
- interface IPanel extends IDashboardPanel {
4
- update?: (panel: IDashboardPanel) => void;
5
- }
6
- export declare function Panel({ viz: initialViz, queryID: initialQueryID, title: initialTitle, description: initialDesc, update, layout, id, }: IPanel): JSX.Element;
7
- export {};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- interface IDescriptionPopover {
3
- }
4
- export declare function DescriptionPopover({}: IDescriptionPopover): JSX.Element | null;
5
- export {};
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { AggregationType } from "../../../utils/aggregation";
3
- interface IAggregationSelector {
4
- value: AggregationType;
5
- onChange: (v: AggregationType) => void;
6
- label: string;
7
- }
8
- export declare const AggregationSelector: React.ForwardRefExoticComponent<IAggregationSelector & React.RefAttributes<unknown>>;
9
- export {};
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface IColorArrayInput {
3
- label: React.ReactNode;
4
- value: string[];
5
- onChange: (value: string[]) => void;
6
- }
7
- export declare const ColorArrayInput: React.ForwardRefExoticComponent<IColorArrayInput & React.RefAttributes<unknown>>;
8
- export {};
@@ -1,12 +0,0 @@
1
- import { Sx } from "@mantine/core";
2
- import React from "react";
3
- interface IDataFieldSelector {
4
- label: string;
5
- required?: boolean;
6
- value: string;
7
- onChange: (v: string) => void;
8
- data: any[];
9
- sx?: Sx;
10
- }
11
- export declare const DataFieldSelector: React.ForwardRefExoticComponent<IDataFieldSelector & React.RefAttributes<unknown>>;
12
- export {};
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface IMantineColorSelector {
3
- value?: string;
4
- onChange: (value: string) => void;
5
- }
6
- export declare const MantineColorSelector: React.ForwardRefExoticComponent<IMantineColorSelector & React.RefAttributes<unknown>>;
7
- export {};
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface IMantineFontWeightSlider {
3
- label: string;
4
- value: string;
5
- onChange: (value: string) => void;
6
- }
7
- export declare const MantineFontWeightSlider: React.ForwardRefExoticComponent<IMantineFontWeightSlider & React.RefAttributes<unknown>>;
8
- export {};
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- export declare type TNumbroFormat = {
3
- mantissa: number;
4
- output: 'percent' | 'number';
5
- trimMantissa?: boolean;
6
- };
7
- export declare const defaultNumbroFormat: TNumbroFormat;
8
- interface INumbroFormatSelector {
9
- value: TNumbroFormat;
10
- onChange: (v: TNumbroFormat) => void;
11
- }
12
- export declare const NumbroFormatSelector: React.ForwardRefExoticComponent<INumbroFormatSelector & React.RefAttributes<unknown>>;
13
- export {};
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- interface ITextArrayInput {
3
- label: React.ReactNode;
4
- value: string[] | number[];
5
- onChange: (value: string[] | number[]) => void;
6
- }
7
- export declare const TextArrayInput: React.ForwardRefExoticComponent<ITextArrayInput & React.RefAttributes<unknown>>;
8
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface IPanelSettingsModal {
3
- opened: boolean;
4
- close: () => void;
5
- }
6
- export declare function PanelSettingsModal({ opened, close }: IPanelSettingsModal): JSX.Element;
7
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function EditDescription(): JSX.Element;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- interface IPanelConfig {
3
- }
4
- export declare function PanelConfig({}: IPanelConfig): JSX.Element;
5
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function PreviewPanel(): JSX.Element;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function EditTitle(): JSX.Element;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- interface IPickQuery {
3
- }
4
- export declare function PickQuery({}: IPickQuery): JSX.Element;
5
- export {};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- interface IVizConfig {
3
- }
4
- export declare function VizConfig({}: IVizConfig): JSX.Element;
5
- export {};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- interface IPreviewViz {
3
- }
4
- export declare function PreviewViz({}: IPreviewViz): JSX.Element;
5
- export {};
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function EditVizConf(): JSX.Element;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- interface IPanelTitleBar {
3
- }
4
- export declare function PanelTitleBar({}: IPanelTitleBar): JSX.Element;
5
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- interface IVizBar3D {
3
- conf: any;
4
- data: any[];
5
- width: number;
6
- height: number;
7
- }
8
- export declare function VizBar3D({ conf, data, width, height }: IVizBar3D): JSX.Element;
9
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IVizPanelProps } from "../../../types";
3
- export declare function VizBar3DPanel({ conf, setConf, data }: IVizPanelProps): JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { ICartesianChartConf } from './type';
3
- interface ICartesianChart {
4
- conf: ICartesianChartConf;
5
- data: any[];
6
- width: number;
7
- height: number;
8
- }
9
- export declare function VizCartesianChart({ conf, data, width, height }: ICartesianChart): JSX.Element;
10
- export {};
@@ -1,20 +0,0 @@
1
- import { ICartesianChartConf, IRegressionLineConf, IRegressionTransform } from '../type';
2
- interface IRegressionDataSetItem {
3
- id: string;
4
- fromDatasetId?: string;
5
- source?: number[][];
6
- transform?: IRegressionTransform;
7
- }
8
- interface IRegressionSeriesItem extends IRegressionLineConf {
9
- datasetId: string;
10
- xAxisId: string;
11
- name: string;
12
- showSymbol: boolean;
13
- tooltip: Record<string, any>;
14
- }
15
- export declare function getRegressionConfs({ regressions }: ICartesianChartConf, data: any[]): {
16
- regressionDataSets: IRegressionDataSetItem[];
17
- regressionSeries: IRegressionSeriesItem[];
18
- regressionXAxes: Record<string, any>[];
19
- };
20
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IVizCartesianChartPanel } from "../type";
3
- export declare function VizCartesianChartPanel({ conf, setConf, data }: IVizCartesianChartPanel): JSX.Element;
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control, UseFormGetValues, UseFormWatch } from "react-hook-form";
3
- import { ICartesianChartConf } from "../../type";
4
- interface IRegressionsField {
5
- control: Control<ICartesianChartConf, any>;
6
- watch: UseFormWatch<ICartesianChartConf>;
7
- getValues: UseFormGetValues<ICartesianChartConf>;
8
- data: any[];
9
- }
10
- export declare function RegressionsField({ control, watch, getValues, data }: IRegressionsField): JSX.Element;
11
- export {};
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control, UseFieldArrayRemove } from "react-hook-form";
3
- import { ICartesianChartConf, IRegressionConf } from "../../type";
4
- interface IRegressionField {
5
- control: Control<ICartesianChartConf, any>;
6
- regressionItem: IRegressionConf;
7
- index: number;
8
- remove: UseFieldArrayRemove;
9
- yAxisOptions: {
10
- label: string;
11
- value: string;
12
- }[];
13
- data: any[];
14
- }
15
- export declare function RegressionField({ control, regressionItem, index, remove, yAxisOptions, data }: IRegressionField): JSX.Element;
16
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control } from "react-hook-form";
3
- import { ICartesianChartConf } from "../../type";
4
- interface IBarFields {
5
- control: Control<ICartesianChartConf, any>;
6
- index: number;
7
- }
8
- export declare function BarFields({ control, index, }: IBarFields): JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control } from 'react-hook-form';
3
- import { ICartesianChartConf } from '../../type';
4
- interface ILineFields {
5
- control: Control<ICartesianChartConf, any>;
6
- index: number;
7
- }
8
- export declare function LineFields({ control, index }: ILineFields): JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control } from 'react-hook-form';
3
- import { ICartesianChartConf } from '../../type';
4
- interface IScatterFields {
5
- control: Control<ICartesianChartConf, any>;
6
- index: number;
7
- }
8
- export declare function ScatterFields({ control, index }: IScatterFields): JSX.Element;
9
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control, UseFormGetValues, UseFormWatch } from "react-hook-form";
3
- import { ICartesianChartConf } from "../../type";
4
- interface ISeriesField {
5
- control: Control<ICartesianChartConf, any>;
6
- watch: UseFormWatch<ICartesianChartConf>;
7
- getValues: UseFormGetValues<ICartesianChartConf>;
8
- data: any[];
9
- }
10
- export declare function SeriesField({ control, watch, getValues, data }: ISeriesField): JSX.Element;
11
- export {};
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control, UseFieldArrayRemove } from "react-hook-form";
3
- import { ICartesianChartConf, ICartesianChartSeriesItem } from "../../type";
4
- interface ISeriesItemField {
5
- control: Control<ICartesianChartConf, any>;
6
- index: number;
7
- remove: UseFieldArrayRemove;
8
- seriesItem: ICartesianChartSeriesItem;
9
- yAxisOptions: {
10
- label: string;
11
- value: string;
12
- }[];
13
- data: any[];
14
- }
15
- export declare function SeriesItemField({ control, index, remove, seriesItem, yAxisOptions, data }: ISeriesItemField): JSX.Element;
16
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control, UseFormWatch } from "react-hook-form";
3
- import { ICartesianChartConf } from "../../type";
4
- interface IVariablesField {
5
- control: Control<ICartesianChartConf, any>;
6
- watch: UseFormWatch<ICartesianChartConf>;
7
- data: any[];
8
- }
9
- export declare function StatsField({ control, watch, data }: IVariablesField): JSX.Element;
10
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control, UseFieldArrayRemove } from "react-hook-form";
3
- import { ICartesianChartConf } from "../../type";
4
- interface VariableField {
5
- control: Control<ICartesianChartConf, any>;
6
- index: number;
7
- remove: UseFieldArrayRemove;
8
- data: any[];
9
- }
10
- export declare function VariableField({ control, index, remove, data }: VariableField): JSX.Element;
11
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control, UseFormWatch } from "react-hook-form";
3
- import { ICartesianChartConf } from "../type";
4
- interface IYAxesField {
5
- control: Control<ICartesianChartConf, any>;
6
- watch: UseFormWatch<ICartesianChartConf>;
7
- }
8
- export declare function YAxesField({ control, watch }: IYAxesField): JSX.Element;
9
- export {};
@@ -1,58 +0,0 @@
1
- import { IVizPanelProps } from "../../../types";
2
- import { ITemplateVariable } from "../../../utils/template/types";
3
- import { TNumbroFormat } from "../../settings/common/numbro-format-selector";
4
- export interface ICartesianChartSeriesItem {
5
- type: 'line' | 'bar' | 'scatter';
6
- name: string;
7
- showSymbol: false;
8
- symbolSize: number;
9
- y_axis_data_key: string;
10
- yAxisIndex: number;
11
- label_position?: string;
12
- stack: string;
13
- color?: string;
14
- barWidth: string;
15
- smooth: boolean;
16
- step: false | 'start' | 'middle' | 'end';
17
- }
18
- export interface IYAxisConf {
19
- name: string;
20
- label_formatter: TNumbroFormat;
21
- }
22
- export interface IRegressionTransform {
23
- type: 'ecStat:regression';
24
- config: {
25
- method: 'linear' | 'exponential' | 'logarithmic' | 'polynomial';
26
- order: number;
27
- formulaOn: 'end';
28
- };
29
- }
30
- export interface IRegressionLineConf {
31
- type: 'line';
32
- yAxisIndex: number;
33
- color: string;
34
- }
35
- export interface IRegressionConf {
36
- transform: IRegressionTransform;
37
- plot: IRegressionLineConf;
38
- name: string;
39
- y_axis_data_key: string;
40
- }
41
- export interface ICartesianChartConf {
42
- x_axis_data_key: string;
43
- x_axis_name: string;
44
- y_axes: IYAxisConf[];
45
- series: ICartesianChartSeriesItem[];
46
- regressions: IRegressionConf[];
47
- stats: {
48
- templates: {
49
- top: string;
50
- bottom: string;
51
- };
52
- variables: ITemplateVariable[];
53
- };
54
- }
55
- export interface IVizCartesianChartPanel extends Omit<IVizPanelProps, 'conf' | 'setConf'> {
56
- conf: ICartesianChartConf;
57
- setConf: (values: ICartesianChartConf) => void;
58
- }
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { IVizConfig } from "../../types/dashboard";
3
- interface IViz {
4
- viz: IVizConfig;
5
- data: any;
6
- loading: boolean;
7
- }
8
- export declare function Viz({ viz, data, loading }: IViz): JSX.Element;
9
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- interface IVizPie {
3
- conf: any;
4
- data: any[];
5
- width: number;
6
- height: number;
7
- }
8
- export declare function VizPie({ conf, data, width, height }: IVizPie): JSX.Element;
9
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IVizPanelProps } from "../../../types/viz-panel";
3
- export declare function VizPiePanel({ conf: { label_field, value_field }, setConf, data }: IVizPanelProps): JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { IRichTextConf } from './type';
3
- interface IRichText {
4
- conf: IRichTextConf;
5
- data: any[];
6
- width: number;
7
- height: number;
8
- }
9
- export declare function VizRichText({ conf, width, height }: IRichText): JSX.Element | null;
10
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IVizRichTextPanel } from "./type";
3
- export declare function VizRichTextPanel({ conf, setConf }: IVizRichTextPanel): JSX.Element;
@@ -1,8 +0,0 @@
1
- import { IVizPanelProps } from "../../../types";
2
- export interface IRichTextConf {
3
- content: '';
4
- }
5
- export interface IVizRichTextPanel extends Omit<IVizPanelProps, 'conf' | 'setConf'> {
6
- conf: IRichTextConf;
7
- setConf: (values: IRichTextConf) => void;
8
- }
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { IVizStatsConf } from './types';
3
- interface IVizStats {
4
- conf: IVizStatsConf;
5
- data: any;
6
- width: number;
7
- height: number;
8
- }
9
- export declare function VizStats({ conf: { template, variables, align }, data }: IVizStats): JSX.Element;
10
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { IVizPanelProps } from "../../../../types/viz-panel";
3
- import { IVizStatsConf } from "../types";
4
- import { ILegacyStatsConf } from "../update";
5
- interface IVizStatsPanel extends Omit<IVizPanelProps, 'conf' | 'setConf'> {
6
- conf: IVizStatsConf | ILegacyStatsConf;
7
- setConf: (conf: IVizStatsConf) => void;
8
- }
9
- export declare function VizStatsPanel({ conf, setConf, data }: IVizStatsPanel): JSX.Element;
10
- export {};
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control, UseFieldArrayRemove } from "react-hook-form";
3
- import { IVizStatsConf } from "../types";
4
- interface VariableField {
5
- control: Control<IVizStatsConf, any>;
6
- index: number;
7
- remove: UseFieldArrayRemove;
8
- data: any[];
9
- }
10
- export declare function VariableField({ control, index, remove, data }: VariableField): JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Control, UseFormWatch } from "react-hook-form";
3
- import { IVizStatsConf } from "../types";
4
- interface IVariablesField {
5
- control: Control<IVizStatsConf, any>;
6
- watch: UseFormWatch<IVizStatsConf>;
7
- data: any[];
8
- }
9
- export declare function VariablesField({ control, watch, data }: IVariablesField): JSX.Element;
10
- export {};
@@ -1,6 +0,0 @@
1
- import { ITemplateVariable } from "../../../utils/template/types";
2
- export interface IVizStatsConf {
3
- align: 'center';
4
- template: string;
5
- variables: ITemplateVariable[];
6
- }
@@ -1,15 +0,0 @@
1
- import { TNumbroFormat } from "../../../settings/common/numbro-format-selector";
2
- import { IVizStatsConf } from "../types";
3
- export interface ILegacyStatsConf {
4
- align: 'center';
5
- size: string;
6
- weight: string;
7
- color: any;
8
- content: {
9
- prefix: string;
10
- data_field: string;
11
- formatter: TNumbroFormat;
12
- postfix: string;
13
- };
14
- }
15
- export declare function updateSchema(legacyConf: IVizStatsConf | ILegacyStatsConf): IVizStatsConf;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- interface ISunbrust {
3
- conf: any;
4
- data: any[];
5
- width: number;
6
- height: number;
7
- }
8
- export declare function Sunbrust({ conf, data, width, height }: ISunbrust): JSX.Element;
9
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IVizPanelProps } from "../../../types/viz-panel";
3
- export declare function SunburstPanel({ conf: { label_field, value_field }, setConf, data }: IVizPanelProps): JSX.Element;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { ITableConf } from "./type";
3
- interface IVizTable {
4
- conf: ITableConf;
5
- data: any;
6
- width: number;
7
- height: number;
8
- }
9
- export declare function VizTable({ conf, data, width, height }: IVizTable): JSX.Element;
10
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IVizPanelProps } from "../../../types/viz-panel";
3
- export declare function VizTablePanel({ conf: { columns, ...restConf }, setConf, data }: IVizPanelProps): JSX.Element;
@@ -1,21 +0,0 @@
1
- export declare enum ValueType {
2
- string = "string",
3
- number = "number",
4
- eloc = "eloc",
5
- percentage = "percentage"
6
- }
7
- export interface IColumnConf {
8
- label: string;
9
- value_field: string;
10
- value_type: ValueType;
11
- }
12
- export interface ITableConf {
13
- id_field: string;
14
- use_raw_columns: boolean;
15
- columns: IColumnConf[];
16
- fontSize: string;
17
- horizontalSpacing: string;
18
- verticalSpacing: string;
19
- striped: boolean;
20
- highlightOnHover: boolean;
21
- }
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import { Sx } from "@mantine/core";
3
- interface IValueTypeSelector {
4
- label: string;
5
- value: string;
6
- onChange: (value: string) => void;
7
- sx?: Sx;
8
- }
9
- export declare function ValueTypeSelector({ label, value, onChange, sx }: IValueTypeSelector): JSX.Element;
10
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ValueType } from "./type";
3
- interface ICellValue {
4
- value: any;
5
- type: ValueType;
6
- }
7
- export declare function CellValue({ value, type }: ICellValue): JSX.Element;
8
- export {};