@devtable/dashboard 7.8.1 → 7.9.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.
- package/dist/dashboard.es.js +1341 -1321
- package/dist/dashboard.umd.js +36 -36
- package/dist/model/filters/filter/select.d.ts +6 -0
- package/dist/model/filters/filter/text-input.d.ts +6 -0
- package/dist/plugins/viz-components/table/table-cell-context.d.ts +18 -0
- package/dist/plugins/viz-components/table/type.d.ts +2 -0
- package/dist/plugins/viz-components/table/viz-table.styles.d.ts +1 -1
- package/package.json +1 -1
|
@@ -26,6 +26,8 @@ export declare const FilterConfigModel_Select: import("mobx-state-tree").IModelT
|
|
|
26
26
|
removeStaticOption(index: number): void;
|
|
27
27
|
setDefaultSelectionCount(v: number): void;
|
|
28
28
|
setOptionsQueryID(id: string | null): void;
|
|
29
|
+
} & {
|
|
30
|
+
truthy(value: any): boolean;
|
|
29
31
|
} & {
|
|
30
32
|
setRequired(required: boolean): void;
|
|
31
33
|
setDefaultValue(default_value: string): void;
|
|
@@ -64,6 +66,8 @@ export declare const createFilterConfig_Select: () => {
|
|
|
64
66
|
removeStaticOption(index: number): void;
|
|
65
67
|
setDefaultSelectionCount(v: number): void;
|
|
66
68
|
setOptionsQueryID(id: string | null): void;
|
|
69
|
+
} & {
|
|
70
|
+
truthy(value: any): boolean;
|
|
67
71
|
} & {
|
|
68
72
|
setRequired(required: boolean): void;
|
|
69
73
|
setDefaultValue(default_value: string): void;
|
|
@@ -95,6 +99,8 @@ export declare const createFilterConfig_Select: () => {
|
|
|
95
99
|
removeStaticOption(index: number): void;
|
|
96
100
|
setDefaultSelectionCount(v: number): void;
|
|
97
101
|
setOptionsQueryID(id: string | null): void;
|
|
102
|
+
} & {
|
|
103
|
+
truthy(value: any): boolean;
|
|
98
104
|
} & {
|
|
99
105
|
setRequired(required: boolean): void;
|
|
100
106
|
setDefaultValue(default_value: string): void;
|
|
@@ -4,6 +4,8 @@ export declare const FilterConfigModel_TextInput: import("mobx-state-tree").IMod
|
|
|
4
4
|
required: import("mobx-state-tree").ISimpleType<boolean>;
|
|
5
5
|
default_value: import("mobx-state-tree").ISimpleType<string>;
|
|
6
6
|
}, {
|
|
7
|
+
truthy(value: any): boolean;
|
|
8
|
+
} & {
|
|
7
9
|
setRequired(required: boolean): void;
|
|
8
10
|
setDefaultValue(default_value: string): void;
|
|
9
11
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -13,6 +15,8 @@ export declare const createFilterConfig_TextInput: () => {
|
|
|
13
15
|
required: boolean;
|
|
14
16
|
default_value: string;
|
|
15
17
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
18
|
+
truthy(value: any): boolean;
|
|
19
|
+
} & {
|
|
16
20
|
setRequired(required: boolean): void;
|
|
17
21
|
setDefaultValue(default_value: string): void;
|
|
18
22
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
@@ -20,6 +24,8 @@ export declare const createFilterConfig_TextInput: () => {
|
|
|
20
24
|
required: import("mobx-state-tree").ISimpleType<boolean>;
|
|
21
25
|
default_value: import("mobx-state-tree").ISimpleType<string>;
|
|
22
26
|
}, {
|
|
27
|
+
truthy(value: any): boolean;
|
|
28
|
+
} & {
|
|
23
29
|
setRequired(required: boolean): void;
|
|
24
30
|
setDefaultValue(default_value: string): void;
|
|
25
31
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Cell } from '@tanstack/react-table';
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { ITriggerSnapshot, IVizInteractionManager } from '~/types/plugin';
|
|
4
|
+
import { IColorManager } from '../..';
|
|
5
|
+
import { IColumnConf, ITableCellContext, TriggerConfigType } from './type';
|
|
6
|
+
export declare class TableCellContext implements ITableCellContext {
|
|
7
|
+
private getColIndex;
|
|
8
|
+
cell: Cell<AnyObject, unknown>;
|
|
9
|
+
triggers: ITriggerSnapshot<TriggerConfigType>[];
|
|
10
|
+
interactionManager: IVizInteractionManager;
|
|
11
|
+
colorManager: IColorManager;
|
|
12
|
+
constructor(getColIndex: (cell: Cell<AnyObject, unknown>) => number, cell: Cell<AnyObject, unknown>, triggers: ITriggerSnapshot<TriggerConfigType>[], interactionManager: IVizInteractionManager, colorManager: IColorManager);
|
|
13
|
+
getClickHandler(): (() => void) | undefined;
|
|
14
|
+
private getRelatedTrigger;
|
|
15
|
+
isClickable(): boolean;
|
|
16
|
+
get columnConf(): IColumnConf;
|
|
17
|
+
get bgColor(): string | undefined;
|
|
18
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IColorInterpolationConfig } from '~/types/plugin';
|
|
2
|
+
import { IClickCellContentConfig } from './triggers/click-cell-content';
|
|
2
3
|
export declare enum ValueType {
|
|
3
4
|
string = "string",
|
|
4
5
|
number = "number",
|
|
@@ -35,3 +36,4 @@ export interface ITableCellContext {
|
|
|
35
36
|
isClickable(): boolean;
|
|
36
37
|
bgColor: string | undefined;
|
|
37
38
|
}
|
|
39
|
+
export declare type TriggerConfigType = IClickCellContentConfig;
|