@devtable/dashboard 4.2.0 → 4.4.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.
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { Control, UseFormWatch } from 'react-hook-form';
3
+ import { ICartesianChartConf } from '../../type';
4
+ interface IReferenceLinesField {
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
+ watch: UseFormWatch<ICartesianChartConf>;
7
+ }
8
+ export declare function ReferenceLinesField({ control, watch }: IReferenceLinesField): JSX.Element;
9
+ export {};
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { Control, UseFieldArrayRemove } from 'react-hook-form';
3
+ import { ICartesianChartConf } from '../../type';
4
+ interface IReferenceLineField {
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
+ index: number;
7
+ remove: UseFieldArrayRemove;
8
+ variableOptions: {
9
+ label: string;
10
+ value: string;
11
+ }[];
12
+ }
13
+ export declare function ReferenceLineField({ control, index, remove, variableOptions }: IReferenceLineField): JSX.Element;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { Control, UseFormWatch } from 'react-hook-form';
3
+ import { ICartesianChartConf } from '../../type';
4
+ interface IVariablesField {
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
+ watch: UseFormWatch<ICartesianChartConf>;
7
+ data: $TSFixMe[];
8
+ }
9
+ export declare function VariablesField({ control, watch, data }: IVariablesField): JSX.Element;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { Control, UseFieldArrayRemove } from 'react-hook-form';
3
+ import { ICartesianChartConf } from '../../type';
4
+ interface VariableField {
5
+ control: Control<ICartesianChartConf, $TSFixMe>;
6
+ index: number;
7
+ remove: UseFieldArrayRemove;
8
+ data: $TSFixMe[];
9
+ }
10
+ export declare function VariableField({ control, index, remove, data }: VariableField): JSX.Element;
11
+ export {};
@@ -39,6 +39,11 @@ export interface IRegressionConf {
39
39
  name: string;
40
40
  y_axis_data_key: string;
41
41
  }
42
+ export interface ICartesianReferenceLine {
43
+ name: string;
44
+ template: string;
45
+ variable_key: string;
46
+ }
42
47
  export interface ICartesianChartConf {
43
48
  x_axis_data_key: string;
44
49
  x_axis_name: string;
@@ -52,5 +57,7 @@ export interface ICartesianChartConf {
52
57
  };
53
58
  variables: ITemplateVariable[];
54
59
  };
60
+ variables: ITemplateVariable[];
61
+ reference_lines: ICartesianReferenceLine[];
55
62
  }
56
63
  export declare const DEFAULT_CONFIG: ICartesianChartConf;
@@ -0,0 +1,2 @@
1
+ import { VizComponent } from '../../../types/plugin';
2
+ export declare const ParetoChartVizComponent: VizComponent;
@@ -0,0 +1,16 @@
1
+ export interface IParetoChartConf {
2
+ x_axis: {
3
+ name: string;
4
+ data_key: string;
5
+ };
6
+ data_key: string;
7
+ bar: {
8
+ name: string;
9
+ color: string;
10
+ };
11
+ line: {
12
+ name: string;
13
+ color: string;
14
+ };
15
+ }
16
+ export declare const DEFAULT_CONFIG: IParetoChartConf;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { VizConfigProps } from '~/types/plugin';
3
+ export declare function VizParetoChartPanel({ context }: VizConfigProps): JSX.Element;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { VizViewProps } from '../../../types/plugin';
3
+ export declare function VizParetoChart({ context }: VizViewProps): JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { Header } from '@tanstack/react-table';
3
+ import { AnyObject } from '~/types';
4
+ export declare const HeadCell: ({ header, cx, }: {
5
+ header: Header<AnyObject, unknown>;
6
+ cx: (...args: unknown[]) => string;
7
+ }) => JSX.Element;
@@ -20,3 +20,7 @@ export interface ITableConf {
20
20
  highlightOnHover: boolean;
21
21
  }
22
22
  export declare const DEFAULT_CONFIG: ITableConf;
23
+ export interface ITableCellContext {
24
+ getClickHandler(): (() => void) | undefined;
25
+ isClickable(): boolean;
26
+ }
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { ValueType } from './type';
2
+ import { ITableCellContext, ValueType } from './type';
3
3
  interface ICellValue {
4
4
  value: $TSFixMe;
5
5
  type: ValueType;
6
- onContentClick?: () => void;
6
+ tableCellContext: ITableCellContext;
7
7
  }
8
8
  export declare function CellValue(props: ICellValue): JSX.Element;
9
9
  export {};
@@ -0,0 +1,5 @@
1
+ export declare const useTableStyles: (params: void, options?: import("@mantine/core").UseStylesOptions<"root" | "thead"> | undefined) => {
2
+ classes: Record<"root" | "thead", string>;
3
+ cx: (...args: any) => string;
4
+ theme: import("@mantine/core").MantineTheme;
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "4.2.0",
3
+ "version": "4.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -31,10 +31,12 @@
31
31
  "coverage": "vitest --coverage"
32
32
  },
33
33
  "dependencies": {
34
+ "@tanstack/react-table": "^8.5.13",
34
35
  "eventemitter2": "^6.4.6",
35
36
  "file-saver": "2.0.5",
36
37
  "jszip": "3.10.1",
37
38
  "popmotion": "^11.0.3",
39
+ "react-virtual": "^2.10.4",
38
40
  "stickybits": "3.7.11"
39
41
  },
40
42
  "devDependencies": {