@devtable/dashboard 4.1.1 → 4.1.2

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 (76) hide show
  1. package/dist/api-caller/request.d.ts +1 -1
  2. package/dist/contexts/model-context.d.ts +60 -60
  3. package/dist/contexts/panel-context.d.ts +1 -1
  4. package/dist/dashboard.es.js +3825 -3835
  5. package/dist/dashboard.umd.js +23 -23
  6. package/dist/definition-editor/query-editor/index.d.ts +1 -4
  7. package/dist/definition-editor/sql-snippet-editor/editor.d.ts +2 -5
  8. package/dist/definition-editor/sql-snippet-editor/index.d.ts +1 -4
  9. package/dist/filter/filter-checkbox/render.d.ts +3 -3
  10. package/dist/filter/filter-date-range/render.d.ts +2 -2
  11. package/dist/filter/filter-multi-select/render.d.ts +2 -2
  12. package/dist/filter/filter-select/render.d.ts +2 -2
  13. package/dist/filter/filter-settings/filter-settings.d.ts +2 -5
  14. package/dist/filter/filter-text-input/render.d.ts +2 -2
  15. package/dist/filter/filter.d.ts +2 -2
  16. package/dist/filter/index.d.ts +2 -5
  17. package/dist/global.d.ts +2 -0
  18. package/dist/layout/read-only.d.ts +2 -2
  19. package/dist/main/actions.d.ts +1 -1
  20. package/dist/main/main.d.ts +1 -1
  21. package/dist/main/view-schema-modal.d.ts +1 -1
  22. package/dist/model/context.d.ts +3 -3
  23. package/dist/model/dashboard.d.ts +40 -40
  24. package/dist/model/filters/index.d.ts +3 -3
  25. package/dist/model/queries/index.d.ts +3 -3
  26. package/dist/model/queries/query.d.ts +1 -1
  27. package/dist/panel/error-boundary.d.ts +2 -2
  28. package/dist/panel/panel-description.d.ts +1 -4
  29. package/dist/panel/settings/common/data-field-selector.d.ts +1 -1
  30. package/dist/panel/settings/panel-config/index.d.ts +1 -4
  31. package/dist/panel/settings/pick-query/index.d.ts +1 -4
  32. package/dist/panel/settings/viz-config/index.d.ts +1 -4
  33. package/dist/panel/settings/viz-config/preview-viz.d.ts +1 -4
  34. package/dist/panel/title-bar.d.ts +1 -4
  35. package/dist/panel/viz/index.d.ts +1 -1
  36. package/dist/plugins/json-plugin-storage.d.ts +2 -2
  37. package/dist/plugins/plugin-data-migrator/plugin-data-migrator.d.ts +3 -3
  38. package/dist/plugins/plugin-data-migrator/version-based-migrator.d.ts +1 -1
  39. package/dist/plugins/viz-components/boxplot-chart/reference-lines/index.d.ts +1 -1
  40. package/dist/plugins/viz-components/boxplot-chart/reference-lines/reference-line.d.ts +1 -1
  41. package/dist/plugins/viz-components/boxplot-chart/variables/index.d.ts +2 -2
  42. package/dist/plugins/viz-components/boxplot-chart/variables/variable.d.ts +2 -2
  43. package/dist/plugins/viz-components/cartesian/option/index.d.ts +1 -1
  44. package/dist/plugins/viz-components/cartesian/option/regression.d.ts +2 -2
  45. package/dist/plugins/viz-components/cartesian/option/series.d.ts +1 -1
  46. package/dist/plugins/viz-components/cartesian/option/tooltip.d.ts +1 -1
  47. package/dist/plugins/viz-components/cartesian/option/x-axis.d.ts +1 -1
  48. package/dist/plugins/viz-components/cartesian/option/y-axis.d.ts +2 -2
  49. package/dist/plugins/viz-components/cartesian/panel/regressions/index.d.ts +2 -2
  50. package/dist/plugins/viz-components/cartesian/panel/regressions/regression-item.d.ts +2 -2
  51. package/dist/plugins/viz-components/cartesian/panel/series/fields.bar.d.ts +1 -1
  52. package/dist/plugins/viz-components/cartesian/panel/series/fields.line.d.ts +1 -1
  53. package/dist/plugins/viz-components/cartesian/panel/series/fields.scatter.d.ts +1 -1
  54. package/dist/plugins/viz-components/cartesian/panel/series/index.d.ts +2 -2
  55. package/dist/plugins/viz-components/cartesian/panel/series/series-item.d.ts +2 -2
  56. package/dist/plugins/viz-components/cartesian/panel/stats/index.d.ts +2 -2
  57. package/dist/plugins/viz-components/cartesian/panel/stats/variable.d.ts +2 -2
  58. package/dist/plugins/viz-components/cartesian/panel/y-axes.d.ts +1 -1
  59. package/dist/plugins/viz-components/radar-chart/option/index.d.ts +1 -1
  60. package/dist/plugins/viz-components/radar-chart/panel/dimensions.d.ts +2 -2
  61. package/dist/plugins/viz-components/regression-chart/option/index.d.ts +1 -1
  62. package/dist/plugins/viz-components/regression-chart/option/regression-expression.d.ts +1 -1
  63. package/dist/plugins/viz-components/regression-chart/option/regression-series.d.ts +1 -1
  64. package/dist/plugins/viz-components/regression-chart/regression-item.d.ts +2 -2
  65. package/dist/plugins/viz-components/stats/panel/variable.d.ts +2 -2
  66. package/dist/plugins/viz-components/stats/panel/variables.d.ts +2 -2
  67. package/dist/plugins/viz-components/table/value.d.ts +1 -1
  68. package/dist/plugins/viz-manager/components.d.ts +2 -2
  69. package/dist/types/utils.d.ts +1 -1
  70. package/dist/types/viz-panel.d.ts +1 -1
  71. package/dist/utils/aggregation.d.ts +1 -1
  72. package/dist/utils/download.d.ts +2 -2
  73. package/dist/utils/sql.d.ts +1 -1
  74. package/dist/utils/template/editor/variable-field.d.ts +1 -1
  75. package/dist/utils/template/utils.d.ts +1 -1
  76. package/package.json +1 -1
@@ -7,7 +7,7 @@ export declare const QueryModel: import("mobx-state-tree").IModelType<{
7
7
  sql: import("mobx-state-tree").ISimpleType<string>;
8
8
  } & {
9
9
  state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"idle" | "loading" | "error">, [undefined]>;
10
- data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Object, Object, Object>>, [undefined]>;
10
+ data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
11
11
  error: import("mobx-state-tree").IType<any, any, any>;
12
12
  }, {
13
13
  readonly valid: string;
@@ -3,11 +3,11 @@ declare type PropType = {
3
3
  children: React.ReactNode;
4
4
  };
5
5
  declare type StateType = {
6
- error: null | any;
6
+ error: null | $TSFixMe;
7
7
  };
8
8
  export declare class ErrorBoundary extends React.Component<PropType, StateType> {
9
9
  constructor(props: PropType);
10
- componentDidCatch(error: any): void;
10
+ componentDidCatch(error: $TSFixMe): void;
11
11
  render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
12
12
  }
13
13
  export {};
@@ -1,5 +1,2 @@
1
1
  /// <reference types="react" />
2
- interface IDescriptionPopover {
3
- }
4
- export declare function DescriptionPopover({}: IDescriptionPopover): JSX.Element | null;
5
- export {};
2
+ export declare function DescriptionPopover(): JSX.Element | null;
@@ -5,7 +5,7 @@ interface IDataFieldSelector {
5
5
  required?: boolean;
6
6
  value: string;
7
7
  onChange: (v: string) => void;
8
- data: any[];
8
+ data: $TSFixMe[];
9
9
  clearable?: boolean;
10
10
  sx?: Sx;
11
11
  }
@@ -1,5 +1,2 @@
1
1
  /// <reference types="react" />
2
- interface IPanelConfig {
3
- }
4
- export declare function PanelConfig({}: IPanelConfig): JSX.Element;
5
- export {};
2
+ export declare function PanelConfig(): JSX.Element;
@@ -1,5 +1,2 @@
1
1
  import React from 'react';
2
- interface IPickQuery {
3
- }
4
- export declare const PickQuery: React.FunctionComponent<IPickQuery>;
5
- export {};
2
+ export declare const PickQuery: React.FunctionComponent<object>;
@@ -1,5 +1,2 @@
1
1
  /// <reference types="react" />
2
- interface IVizConfig {
3
- }
4
- export declare function VizConfig({}: IVizConfig): JSX.Element;
5
- export {};
2
+ export declare function VizConfig(): JSX.Element;
@@ -1,5 +1,2 @@
1
1
  /// <reference types="react" />
2
- interface IPreviewViz {
3
- }
4
- export declare function PreviewViz({}: IPreviewViz): JSX.Element;
5
- export {};
2
+ export declare function PreviewViz(): JSX.Element;
@@ -1,5 +1,2 @@
1
1
  import React from 'react';
2
- interface IPanelTitleBar {
3
- }
4
- export declare const PanelTitleBar: React.FunctionComponent<IPanelTitleBar>;
5
- export {};
2
+ export declare const PanelTitleBar: React.FunctionComponent<object>;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { IVizConfig } from '../../types';
3
3
  interface IViz {
4
4
  viz: IVizConfig;
5
- data: any;
5
+ data: $TSFixMe;
6
6
  loading: boolean;
7
7
  }
8
8
  export declare const Viz: React.FunctionComponent<IViz>;
@@ -1,9 +1,9 @@
1
1
  import { IWatchOptions, PluginStorage } from '~/types/plugin';
2
2
  export declare class JsonPluginStorage implements PluginStorage {
3
3
  protected rootRef: {
4
- current: Record<string, any>;
4
+ current: Record<string, $TSFixMe>;
5
5
  };
6
- constructor(initValue: Record<string, any>);
6
+ constructor(initValue: Record<string, $TSFixMe>);
7
7
  deleteItem(key: string): Promise<void>;
8
8
  getItem<T>(key: string | null): Promise<T>;
9
9
  private getValueFromRoot;
@@ -1,13 +1,13 @@
1
1
  interface IMigration {
2
2
  version: number;
3
- handler: (data: any) => any;
3
+ handler: (data: $TSFixMe) => $TSFixMe;
4
4
  }
5
5
  export declare class PluginDataMigrator {
6
6
  protected migrations: IMigration[];
7
- version(version: number, handler: (data: any) => any): PluginDataMigrator;
7
+ version(version: number, handler: (data: $TSFixMe) => $TSFixMe): PluginDataMigrator;
8
8
  run(migrationTarget: {
9
9
  from: number;
10
10
  to: number;
11
- }, val: any): any;
11
+ }, val: $TSFixMe): any;
12
12
  }
13
13
  export {};
@@ -12,7 +12,7 @@ export declare abstract class VersionBasedMigrator extends PluginDataMigrator im
12
12
  abstract readonly VERSION: number;
13
13
  abstract configVersions(): void;
14
14
  constructor();
15
- version(version: number, handler: (data: any) => any): PluginDataMigrator;
15
+ version(version: number, handler: (data: $TSFixMe) => $TSFixMe): PluginDataMigrator;
16
16
  migrate({ instanceData }: VizComponentMigrationContext): Promise<void>;
17
17
  needMigration({ instanceData }: VizComponentMigrationContext): Promise<boolean>;
18
18
  }
@@ -2,7 +2,7 @@
2
2
  import { Control, UseFormWatch } from 'react-hook-form';
3
3
  import { IBoxplotChartConf } from '../type';
4
4
  interface IReferenceLinesField {
5
- control: Control<IBoxplotChartConf, any>;
5
+ control: Control<IBoxplotChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IBoxplotChartConf>;
7
7
  }
8
8
  export declare function ReferenceLinesField({ control, watch }: IReferenceLinesField): JSX.Element;
@@ -2,7 +2,7 @@
2
2
  import { Control, UseFieldArrayRemove } from 'react-hook-form';
3
3
  import { IBoxplotChartConf } from '../type';
4
4
  interface IReferenceLineField {
5
- control: Control<IBoxplotChartConf, any>;
5
+ control: Control<IBoxplotChartConf, $TSFixMe>;
6
6
  index: number;
7
7
  remove: UseFieldArrayRemove;
8
8
  variableOptions: {
@@ -2,9 +2,9 @@
2
2
  import { Control, UseFormWatch } from 'react-hook-form';
3
3
  import { IBoxplotChartConf } from '../type';
4
4
  interface IVariablesField {
5
- control: Control<IBoxplotChartConf, any>;
5
+ control: Control<IBoxplotChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IBoxplotChartConf>;
7
- data: any[];
7
+ data: $TSFixMe[];
8
8
  }
9
9
  export declare function VariablesField({ control, watch, data }: IVariablesField): JSX.Element;
10
10
  export {};
@@ -2,10 +2,10 @@
2
2
  import { Control, UseFieldArrayRemove } from 'react-hook-form';
3
3
  import { IBoxplotChartConf } from '../type';
4
4
  interface VariableField {
5
- control: Control<IBoxplotChartConf, any>;
5
+ control: Control<IBoxplotChartConf, $TSFixMe>;
6
6
  index: number;
7
7
  remove: UseFieldArrayRemove;
8
- data: any[];
8
+ data: $TSFixMe[];
9
9
  }
10
10
  export declare function VariableField({ control, index, remove, data }: VariableField): JSX.Element;
11
11
  export {};
@@ -1,2 +1,2 @@
1
1
  import { ICartesianChartConf } from '../type';
2
- export declare function getOption(conf: ICartesianChartConf, data: any[]): any;
2
+ export declare function getOption(conf: ICartesianChartConf, data: $TSFixMe[]): any;
@@ -10,9 +10,9 @@ interface IRegressionSeriesItem extends IRegressionLineConf {
10
10
  xAxisId: string;
11
11
  name: string;
12
12
  showSymbol: boolean;
13
- tooltip: Record<string, any>;
13
+ tooltip: Record<string, $TSFixMe>;
14
14
  }
15
- export declare function getRegressionConfs({ regressions }: ICartesianChartConf, data: any[]): {
15
+ export declare function getRegressionConfs({ regressions }: ICartesianChartConf, data: $TSFixMe[]): {
16
16
  regressionDataSets: IRegressionDataSetItem[];
17
17
  regressionSeries: IRegressionSeriesItem[];
18
18
  regressionXAxes: Record<string, any>[];
@@ -1,2 +1,2 @@
1
1
  import { ICartesianChartConf } from '../type';
2
- export declare function getSeries(conf: ICartesianChartConf, xAxisData: any[], data: any[], labelFormatters: Record<string, any>): any[];
2
+ export declare function getSeries(conf: ICartesianChartConf, xAxisData: $TSFixMe[], data: $TSFixMe[], labelFormatters: Record<string, $TSFixMe>): any[];
@@ -1,5 +1,5 @@
1
1
  import { TopLevelFormatterParams } from 'echarts/types/dist/shared';
2
2
  import { ICartesianChartConf } from '../type';
3
- export declare function getTooltip(conf: ICartesianChartConf, labelFormatters: Record<string, (p: any) => string>): {
3
+ export declare function getTooltip(conf: ICartesianChartConf, labelFormatters: Record<string, (p: $TSFixMe) => string>): {
4
4
  formatter: (params: TopLevelFormatterParams) => string;
5
5
  };
@@ -1,2 +1,2 @@
1
1
  import { ICartesianChartConf } from '../type';
2
- export declare function getXAxes(conf: ICartesianChartConf, xAxisData: any[], regressionXAxes: any[]): any[];
2
+ export declare function getXAxes(conf: ICartesianChartConf, xAxisData: $TSFixMe[], regressionXAxes: $TSFixMe[]): any[];
@@ -1,8 +1,8 @@
1
1
  import { ICartesianChartConf } from '../type';
2
- export declare function getYAxes(conf: ICartesianChartConf, labelFormatters: Record<string, (p: any) => string>): {
2
+ export declare function getYAxes(conf: ICartesianChartConf, labelFormatters: Record<string, (p: $TSFixMe) => string>): {
3
3
  axisLabel: {
4
4
  show: boolean;
5
- formatter: (p: any) => string;
5
+ formatter: (p: $TSFixMe) => string;
6
6
  };
7
7
  nameTextStyle: {
8
8
  fontWeight: string;
@@ -2,9 +2,9 @@
2
2
  import { Control, UseFormWatch } from 'react-hook-form';
3
3
  import { ICartesianChartConf } from '../../type';
4
4
  interface IRegressionsField {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICartesianChartConf>;
7
- data: any[];
7
+ data: $TSFixMe[];
8
8
  }
9
9
  export declare function RegressionsField({ control, watch, data }: IRegressionsField): JSX.Element;
10
10
  export {};
@@ -2,7 +2,7 @@
2
2
  import { Control, UseFieldArrayRemove } from 'react-hook-form';
3
3
  import { ICartesianChartConf, IRegressionConf } from '../../type';
4
4
  interface IRegressionField {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  regressionItem: IRegressionConf;
7
7
  index: number;
8
8
  remove: UseFieldArrayRemove;
@@ -10,7 +10,7 @@ interface IRegressionField {
10
10
  label: string;
11
11
  value: string;
12
12
  }[];
13
- data: any[];
13
+ data: $TSFixMe[];
14
14
  }
15
15
  export declare function RegressionField({ control, regressionItem, index, remove, yAxisOptions, data }: IRegressionField): JSX.Element;
16
16
  export {};
@@ -2,7 +2,7 @@
2
2
  import { Control } from 'react-hook-form';
3
3
  import { ICartesianChartConf } from '../../type';
4
4
  interface IBarFields {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  index: number;
7
7
  }
8
8
  export declare function BarFields({ control, index }: IBarFields): JSX.Element;
@@ -2,7 +2,7 @@
2
2
  import { Control } from 'react-hook-form';
3
3
  import { ICartesianChartConf } from '../../type';
4
4
  interface ILineFields {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  index: number;
7
7
  }
8
8
  export declare function LineFields({ control, index }: ILineFields): JSX.Element;
@@ -2,7 +2,7 @@
2
2
  import { Control } from 'react-hook-form';
3
3
  import { ICartesianChartConf } from '../../type';
4
4
  interface IScatterFields {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  index: number;
7
7
  }
8
8
  export declare function ScatterFields({ control, index }: IScatterFields): JSX.Element;
@@ -2,9 +2,9 @@
2
2
  import { Control, UseFormWatch } from 'react-hook-form';
3
3
  import { ICartesianChartConf } from '../../type';
4
4
  interface ISeriesField {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICartesianChartConf>;
7
- data: any[];
7
+ data: $TSFixMe[];
8
8
  }
9
9
  export declare function SeriesField({ control, watch, data }: ISeriesField): JSX.Element;
10
10
  export {};
@@ -2,7 +2,7 @@
2
2
  import { Control, UseFieldArrayRemove } from 'react-hook-form';
3
3
  import { ICartesianChartConf, ICartesianChartSeriesItem } from '../../type';
4
4
  interface ISeriesItemField {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  index: number;
7
7
  remove: UseFieldArrayRemove;
8
8
  seriesItem: ICartesianChartSeriesItem;
@@ -10,7 +10,7 @@ interface ISeriesItemField {
10
10
  label: string;
11
11
  value: string;
12
12
  }[];
13
- data: any[];
13
+ data: $TSFixMe[];
14
14
  }
15
15
  export declare function SeriesItemField({ control, index, remove, seriesItem, yAxisOptions, data }: ISeriesItemField): JSX.Element;
16
16
  export {};
@@ -2,9 +2,9 @@
2
2
  import { Control, UseFormWatch } from 'react-hook-form';
3
3
  import { ICartesianChartConf } from '../../type';
4
4
  interface IVariablesField {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICartesianChartConf>;
7
- data: any[];
7
+ data: $TSFixMe[];
8
8
  }
9
9
  export declare function StatsField({ control, watch, data }: IVariablesField): JSX.Element;
10
10
  export {};
@@ -2,10 +2,10 @@
2
2
  import { Control, UseFieldArrayRemove } from 'react-hook-form';
3
3
  import { ICartesianChartConf } from '../../type';
4
4
  interface VariableField {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  index: number;
7
7
  remove: UseFieldArrayRemove;
8
- data: any[];
8
+ data: $TSFixMe[];
9
9
  }
10
10
  export declare function VariableField({ control, index, remove, data }: VariableField): JSX.Element;
11
11
  export {};
@@ -2,7 +2,7 @@
2
2
  import { Control, UseFormWatch } from 'react-hook-form';
3
3
  import { ICartesianChartConf } from '../type';
4
4
  interface IYAxesField {
5
- control: Control<ICartesianChartConf, any>;
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<ICartesianChartConf>;
7
7
  }
8
8
  export declare function YAxesField({ control, watch }: IYAxesField): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { IRadarChartConf } from '../type';
2
- export declare function getOption(conf: IRadarChartConf, data: any[]): {
2
+ export declare function getOption(conf: IRadarChartConf, data: $TSFixMe[]): {
3
3
  legend: {
4
4
  show: boolean;
5
5
  bottom: number;
@@ -2,9 +2,9 @@
2
2
  import { Control, UseFormWatch } from 'react-hook-form';
3
3
  import { IRadarChartConf } from '../type';
4
4
  interface IDimensionsField {
5
- control: Control<IRadarChartConf, any>;
5
+ control: Control<IRadarChartConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IRadarChartConf>;
7
- data: any[];
7
+ data: $TSFixMe[];
8
8
  }
9
9
  export declare function DimensionsField({ control, watch, data }: IDimensionsField): JSX.Element;
10
10
  export {};
@@ -1,2 +1,2 @@
1
1
  import { IRegressionChartConf } from '../type';
2
- export declare function getOption(conf: IRegressionChartConf, data: any[]): any;
2
+ export declare function getOption(conf: IRegressionChartConf, data: $TSFixMe[]): any;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { IRegressionChartConf } from '../type';
3
- export declare function getRegressionDescription(data: any[], conf?: IRegressionChartConf): {
3
+ export declare function getRegressionDescription(data: $TSFixMe[], conf?: IRegressionChartConf): {
4
4
  expression: JSX.Element;
5
5
  rSquared: any;
6
6
  adjustedRSquared: number;
@@ -4,7 +4,7 @@ interface IRegressionSeriesItem extends IRegressionLineConf {
4
4
  data: number[][];
5
5
  name: string;
6
6
  showSymbol: boolean;
7
- tooltip: Record<string, any>;
7
+ tooltip: Record<string, $TSFixMe>;
8
8
  smooth: boolean;
9
9
  }
10
10
  export declare function getRegressionConf({ regression }: IRegressionChartConf, data: number[][]): {
@@ -6,9 +6,9 @@
6
6
  import { Control, UseFormWatch } from 'react-hook-form';
7
7
  import { IRegressionChartConf } from './type';
8
8
  interface IRegressionField {
9
- control: Control<IRegressionChartConf, any>;
9
+ control: Control<IRegressionChartConf, $TSFixMe>;
10
10
  watch: UseFormWatch<IRegressionChartConf>;
11
- data: any[];
11
+ data: $TSFixMe[];
12
12
  }
13
13
  export declare function RegressionField({ control, watch, data }: IRegressionField): JSX.Element;
14
14
  export {};
@@ -2,10 +2,10 @@
2
2
  import { Control, UseFieldArrayRemove } from 'react-hook-form';
3
3
  import { IVizStatsConf } from '../type';
4
4
  interface VariableField {
5
- control: Control<IVizStatsConf, any>;
5
+ control: Control<IVizStatsConf, $TSFixMe>;
6
6
  index: number;
7
7
  remove: UseFieldArrayRemove;
8
- data: any[];
8
+ data: $TSFixMe[];
9
9
  }
10
10
  export declare function VariableField({ control, index, remove, data }: VariableField): JSX.Element;
11
11
  export {};
@@ -2,9 +2,9 @@
2
2
  import { Control, UseFormWatch } from 'react-hook-form';
3
3
  import { IVizStatsConf } from '../type';
4
4
  interface IVariablesField {
5
- control: Control<IVizStatsConf, any>;
5
+ control: Control<IVizStatsConf, $TSFixMe>;
6
6
  watch: UseFormWatch<IVizStatsConf>;
7
- data: any[];
7
+ data: $TSFixMe[];
8
8
  }
9
9
  export declare function VariablesField({ control, watch, data }: IVariablesField): JSX.Element;
10
10
  export {};
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { ValueType } from './type';
3
3
  interface ICellValue {
4
- value: any;
4
+ value: $TSFixMe;
5
5
  type: ValueType;
6
6
  onContentClick?: () => void;
7
7
  }
@@ -9,7 +9,7 @@ export declare type IViewPanelInfo = IPanelInfo & {
9
9
  };
10
10
  export declare type IViewComponentProps<TDebug = Record<string, unknown>> = {
11
11
  panel: IViewPanelInfo;
12
- data: any;
12
+ data: $TSFixMe;
13
13
  vizManager: IVizManager;
14
14
  } & TDebug;
15
15
  export declare const VizViewComponent: <T>(props: IViewComponentProps<T>) => JSX.Element;
@@ -17,6 +17,6 @@ export declare type IConfigComponentProps<TDebug = Record<string, unknown>> = {
17
17
  panel: IPanelInfo;
18
18
  panelInfoEditor: IPanelInfoEditor;
19
19
  vizManager: IVizManager;
20
- data: any;
20
+ data: $TSFixMe;
21
21
  } & TDebug;
22
22
  export declare const VizConfigComponent: <T>(props: IConfigComponentProps<T>) => JSX.Element;
@@ -1,4 +1,4 @@
1
- export declare type AnyObject = Record<string, any>;
1
+ export declare type AnyObject = Record<string, $TSFixMe>;
2
2
  export declare type Ready<T, TK extends keyof T> = T & {
3
3
  [P in TK]-?: NonNullable<T[P]>;
4
4
  };
@@ -2,5 +2,5 @@ import { IVizConfig } from './dashboard';
2
2
  export interface IVizPanelProps {
3
3
  conf: IVizConfig['conf'];
4
4
  setConf: (conf: IVizConfig['conf']) => void;
5
- data: any[];
5
+ data: $TSFixMe[];
6
6
  }
@@ -1,6 +1,6 @@
1
1
  export declare type AggregationType = {
2
2
  type: 'none' | 'sum' | 'mean' | 'median' | 'max' | 'min';
3
- config: Record<any, never>;
3
+ config: Record<$TSFixMe, never>;
4
4
  } | {
5
5
  type: 'quantile';
6
6
  config: {
@@ -1,6 +1,6 @@
1
1
  export declare function downloadCSV(id: string, csv: string): void;
2
2
  export declare function downloadDataListAsZip(idDataList: Array<{
3
3
  id: string;
4
- data: any[];
4
+ data: $TSFixMe[];
5
5
  }>): void;
6
- export declare function makeCSV(data: any | any[]): string;
6
+ export declare function makeCSV(data: $TSFixMe | $TSFixMe[]): string;
@@ -2,7 +2,7 @@ import { FilterValuesType } from '../model';
2
2
  import { ContextInfoType } from '../model/context';
3
3
  import { SQLSnippetModelInstance } from '../model/sql-snippets';
4
4
  export declare function explainSQLSnippet(snippet: string, context: ContextInfoType): any;
5
- export declare function formatSQL(sql: string, params: Record<string, any>): any;
5
+ export declare function formatSQL(sql: string, params: Record<string, $TSFixMe>): any;
6
6
  export declare function getSQLParams(context: ContextInfoType, sqlSnippets: SQLSnippetModelInstance[], filterValues: FilterValuesType): Record<string, any> & ContextInfoType & {
7
7
  filters: FilterValuesType;
8
8
  };
@@ -3,7 +3,7 @@ import { ITemplateVariable } from '../types';
3
3
  interface ITemplateVariableField {
4
4
  value: ITemplateVariable;
5
5
  onChange: (v: ITemplateVariable) => void;
6
- data: any[];
6
+ data: $TSFixMe[];
7
7
  withStyle?: boolean;
8
8
  }
9
9
  export declare const TemplateVariableField: React.ForwardRefExoticComponent<ITemplateVariableField & React.RefAttributes<unknown>>;
@@ -1,4 +1,4 @@
1
1
  import { ITemplateVariable } from './types';
2
- export declare function getNonStatsDataText(data: any): any;
2
+ export declare function getNonStatsDataText(data: $TSFixMe): any;
3
3
  export declare function getAggregatedValue({ data_field, aggregation }: ITemplateVariable, data: Record<string, number>[]): number;
4
4
  export declare function formatAggregatedValue({ formatter }: ITemplateVariable, value: number | string): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"