@devtable/dashboard 5.9.2 → 5.10.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 +1869 -1802
- package/dist/dashboard.umd.js +33 -26
- package/dist/filter/pick-query-for-filter/expected-structure-for-select.d.ts +2 -0
- package/dist/filter/select-item.d.ts +7 -0
- package/dist/model/filters/filter/multi-select.d.ts +6 -0
- package/dist/model/filters/filter/select-base.d.ts +2 -0
- package/dist/model/filters/filter/select.d.ts +6 -0
- package/package.json +1 -1
- package/dist/model/filters/filter/index.d.ts +0 -20
- package/dist/model/filters/index.d.ts +0 -145
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ItemProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
label: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const FilterSelectItem: import("react").ForwardRefExoticComponent<ItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export {};
|
|
@@ -13,6 +13,8 @@ export declare const FilterConfigModel_MultiSelect: import("mobx-state-tree").IM
|
|
|
13
13
|
options_query_id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
14
14
|
select_first_by_default: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
15
15
|
}, {
|
|
16
|
+
readonly options: any;
|
|
17
|
+
} & {
|
|
16
18
|
addStaticOption(option: {
|
|
17
19
|
label: string;
|
|
18
20
|
value: string;
|
|
@@ -43,6 +45,8 @@ export declare const createFilterConfig_MultiSelect: () => {
|
|
|
43
45
|
options_query_id: string;
|
|
44
46
|
select_first_by_default: boolean;
|
|
45
47
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
48
|
+
readonly options: any;
|
|
49
|
+
} & {
|
|
46
50
|
addStaticOption(option: {
|
|
47
51
|
label: string;
|
|
48
52
|
value: string;
|
|
@@ -66,6 +70,8 @@ export declare const createFilterConfig_MultiSelect: () => {
|
|
|
66
70
|
options_query_id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
67
71
|
select_first_by_default: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
68
72
|
}, {
|
|
73
|
+
readonly options: any;
|
|
74
|
+
} & {
|
|
69
75
|
addStaticOption(option: {
|
|
70
76
|
label: string;
|
|
71
77
|
value: string;
|
|
@@ -18,6 +18,8 @@ export declare const FilterConfigModel_BaseSelect: import("mobx-state-tree").IMo
|
|
|
18
18
|
options_query_id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
19
19
|
select_first_by_default: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
20
20
|
}, {
|
|
21
|
+
readonly options: any;
|
|
22
|
+
} & {
|
|
21
23
|
addStaticOption(option: {
|
|
22
24
|
label: string;
|
|
23
25
|
value: string;
|
|
@@ -14,6 +14,8 @@ export declare const FilterConfigModel_Select: import("mobx-state-tree").IModelT
|
|
|
14
14
|
options_query_id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
15
15
|
select_first_by_default: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
16
16
|
}, {
|
|
17
|
+
readonly options: any;
|
|
18
|
+
} & {
|
|
17
19
|
addStaticOption(option: {
|
|
18
20
|
label: string;
|
|
19
21
|
value: string;
|
|
@@ -46,6 +48,8 @@ export declare const createFilterConfig_Select: () => {
|
|
|
46
48
|
options_query_id: string;
|
|
47
49
|
select_first_by_default: boolean;
|
|
48
50
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
51
|
+
readonly options: any;
|
|
52
|
+
} & {
|
|
49
53
|
addStaticOption(option: {
|
|
50
54
|
label: string;
|
|
51
55
|
value: string;
|
|
@@ -71,6 +75,8 @@ export declare const createFilterConfig_Select: () => {
|
|
|
71
75
|
options_query_id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
72
76
|
select_first_by_default: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
73
77
|
}, {
|
|
78
|
+
readonly options: any;
|
|
79
|
+
} & {
|
|
74
80
|
addStaticOption(option: {
|
|
75
81
|
label: string;
|
|
76
82
|
value: string;
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Instance } from 'mobx-state-tree';
|
|
2
|
-
import { DashboardFilterType } from './common';
|
|
3
|
-
export declare const FilterModel: import("mobx-state-tree").IModelType<{
|
|
4
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
-
label: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
order: import("mobx-state-tree").ISimpleType<number>;
|
|
8
|
-
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
9
|
-
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
10
|
-
config: import("mobx-state-tree").IAnyType;
|
|
11
|
-
}, {
|
|
12
|
-
readonly plainDefaultValue: any;
|
|
13
|
-
} & {
|
|
14
|
-
setKey(key: string): void;
|
|
15
|
-
setLabel(label: string): void;
|
|
16
|
-
setOrder(order: number): void;
|
|
17
|
-
setType(type: DashboardFilterType): void;
|
|
18
|
-
setVisibleInViewsIDs(ids: string[]): void;
|
|
19
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
20
|
-
export declare type FilterModelInstance = Instance<typeof FilterModel>;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { AnyObject } from '~/types';
|
|
2
|
-
import { FilterModelInstance } from './filter';
|
|
3
|
-
export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
4
|
-
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
5
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
label: import("mobx-state-tree").ISimpleType<string>;
|
|
8
|
-
order: import("mobx-state-tree").ISimpleType<number>;
|
|
9
|
-
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
10
|
-
type: import("mobx-state-tree").ISimpleType<import("./filter/common").DashboardFilterType>;
|
|
11
|
-
config: import("mobx-state-tree").IAnyType;
|
|
12
|
-
}, {
|
|
13
|
-
readonly plainDefaultValue: any;
|
|
14
|
-
} & {
|
|
15
|
-
setKey(key: string): void;
|
|
16
|
-
setLabel(label: string): void;
|
|
17
|
-
setOrder(order: number): void;
|
|
18
|
-
setType(type: import("./filter/common").DashboardFilterType): void;
|
|
19
|
-
setVisibleInViewsIDs(ids: string[]): void;
|
|
20
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
21
|
-
values: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
22
|
-
/**
|
|
23
|
-
* values to be displayed in preview content, e.g. Data Settings
|
|
24
|
-
*/
|
|
25
|
-
previewValues: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
26
|
-
}, {
|
|
27
|
-
readonly firstID: string | undefined;
|
|
28
|
-
readonly inOrder: ({
|
|
29
|
-
id: string;
|
|
30
|
-
key: string;
|
|
31
|
-
label: string;
|
|
32
|
-
order: number;
|
|
33
|
-
visibleInViewsIDs: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>>;
|
|
34
|
-
type: import("./filter/common").DashboardFilterType;
|
|
35
|
-
config: any;
|
|
36
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
37
|
-
readonly plainDefaultValue: any;
|
|
38
|
-
} & {
|
|
39
|
-
setKey(key: string): void;
|
|
40
|
-
setLabel(label: string): void;
|
|
41
|
-
setOrder(order: number): void;
|
|
42
|
-
setType(type: import("./filter/common").DashboardFilterType): void;
|
|
43
|
-
setVisibleInViewsIDs(ids: string[]): void;
|
|
44
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
45
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
46
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
47
|
-
label: import("mobx-state-tree").ISimpleType<string>;
|
|
48
|
-
order: import("mobx-state-tree").ISimpleType<number>;
|
|
49
|
-
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
50
|
-
type: import("mobx-state-tree").ISimpleType<import("./filter/common").DashboardFilterType>;
|
|
51
|
-
config: import("mobx-state-tree").IAnyType;
|
|
52
|
-
}, {
|
|
53
|
-
readonly plainDefaultValue: any;
|
|
54
|
-
} & {
|
|
55
|
-
setKey(key: string): void;
|
|
56
|
-
setLabel(label: string): void;
|
|
57
|
-
setOrder(order: number): void;
|
|
58
|
-
setType(type: import("./filter/common").DashboardFilterType): void;
|
|
59
|
-
setVisibleInViewsIDs(ids: string[]): void;
|
|
60
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
61
|
-
readonly empty: boolean;
|
|
62
|
-
visibleInView(viewID: string): ({
|
|
63
|
-
id: string;
|
|
64
|
-
key: string;
|
|
65
|
-
label: string;
|
|
66
|
-
order: number;
|
|
67
|
-
visibleInViewsIDs: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>>;
|
|
68
|
-
type: import("./filter/common").DashboardFilterType;
|
|
69
|
-
config: any;
|
|
70
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
71
|
-
readonly plainDefaultValue: any;
|
|
72
|
-
} & {
|
|
73
|
-
setKey(key: string): void;
|
|
74
|
-
setLabel(label: string): void;
|
|
75
|
-
setOrder(order: number): void;
|
|
76
|
-
setType(type: import("./filter/common").DashboardFilterType): void;
|
|
77
|
-
setVisibleInViewsIDs(ids: string[]): void;
|
|
78
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
79
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
80
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
81
|
-
label: import("mobx-state-tree").ISimpleType<string>;
|
|
82
|
-
order: import("mobx-state-tree").ISimpleType<number>;
|
|
83
|
-
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
84
|
-
type: import("mobx-state-tree").ISimpleType<import("./filter/common").DashboardFilterType>;
|
|
85
|
-
config: import("mobx-state-tree").IAnyType;
|
|
86
|
-
}, {
|
|
87
|
-
readonly plainDefaultValue: any;
|
|
88
|
-
} & {
|
|
89
|
-
setKey(key: string): void;
|
|
90
|
-
setLabel(label: string): void;
|
|
91
|
-
setOrder(order: number): void;
|
|
92
|
-
setType(type: import("./filter/common").DashboardFilterType): void;
|
|
93
|
-
setVisibleInViewsIDs(ids: string[]): void;
|
|
94
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
95
|
-
readonly firstFilterValueKey: string;
|
|
96
|
-
} & {
|
|
97
|
-
replace(current: Array<FilterModelInstance>): void;
|
|
98
|
-
append(item: FilterModelInstance): void;
|
|
99
|
-
remove(index: number): void;
|
|
100
|
-
setValues(values: Record<string, $TSFixMe>): void;
|
|
101
|
-
setValueByKey(key: string, value: $TSFixMe): void;
|
|
102
|
-
getValueByKey(key: string): any;
|
|
103
|
-
refreshValues(): void;
|
|
104
|
-
updatePreviewValues(values: AnyObject): void;
|
|
105
|
-
} & {
|
|
106
|
-
afterCreate(): void;
|
|
107
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
108
|
-
export * from './filter';
|
|
109
|
-
export declare type FilterValuesType = Record<string, $TSFixMe>;
|
|
110
|
-
export declare function getInitialFiltersPayload(filters: FilterModelInstance[]): {
|
|
111
|
-
current: ({
|
|
112
|
-
id: string;
|
|
113
|
-
key: string;
|
|
114
|
-
label: string;
|
|
115
|
-
order: number;
|
|
116
|
-
visibleInViewsIDs: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").ISimpleType<string>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>>;
|
|
117
|
-
type: import("./filter/common").DashboardFilterType;
|
|
118
|
-
config: any;
|
|
119
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
120
|
-
readonly plainDefaultValue: any;
|
|
121
|
-
} & {
|
|
122
|
-
setKey(key: string): void;
|
|
123
|
-
setLabel(label: string): void;
|
|
124
|
-
setOrder(order: number): void;
|
|
125
|
-
setType(type: import("./filter/common").DashboardFilterType): void;
|
|
126
|
-
setVisibleInViewsIDs(ids: string[]): void;
|
|
127
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
128
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
129
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
130
|
-
label: import("mobx-state-tree").ISimpleType<string>;
|
|
131
|
-
order: import("mobx-state-tree").ISimpleType<number>;
|
|
132
|
-
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
133
|
-
type: import("mobx-state-tree").ISimpleType<import("./filter/common").DashboardFilterType>;
|
|
134
|
-
config: import("mobx-state-tree").IAnyType;
|
|
135
|
-
}, {
|
|
136
|
-
readonly plainDefaultValue: any;
|
|
137
|
-
} & {
|
|
138
|
-
setKey(key: string): void;
|
|
139
|
-
setLabel(label: string): void;
|
|
140
|
-
setOrder(order: number): void;
|
|
141
|
-
setType(type: import("./filter/common").DashboardFilterType): void;
|
|
142
|
-
setVisibleInViewsIDs(ids: string[]): void;
|
|
143
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
144
|
-
values: FilterValuesType;
|
|
145
|
-
};
|