@devtable/dashboard 10.60.3 → 10.61.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/components/filter/custom-default-value-editor.d.ts +8 -0
- package/dist/components/filter/filter-checkbox/editor.d.ts +2 -3
- package/dist/components/filter/filter-date-range/editor.d.ts +2 -2
- package/dist/components/filter/filter-multi-select/editor.d.ts +2 -2
- package/dist/components/filter/filter-select/editor.d.ts +2 -2
- package/dist/components/filter/filter-text-input/editor.d.ts +2 -2
- package/dist/components/filter/filter-tree-select/editor.d.ts +2 -2
- package/dist/components/filter/filter-tree-select/render/index.d.ts +1 -2
- package/dist/components/widgets/modal-function-editor/index.d.ts +3 -1
- package/dist/dashboard-editor/dashboard-editor.d.ts +22 -0
- package/dist/dashboard-editor/index.d.ts +2 -21
- package/dist/dashboard-editor/model/filters/index.d.ts +83 -0
- package/dist/dashboard-render/dashboard-render.d.ts +17 -0
- package/dist/dashboard-render/index.d.ts +2 -16
- package/dist/dashboard.es.js +6507 -6387
- package/dist/dashboard.umd.js +68 -67
- package/dist/index.d.ts +0 -1
- package/dist/model/meta-model/dashboard/content/filter/filter.d.ts +7 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/multi-select.d.ts +6 -3
- package/dist/model/meta-model/dashboard/content/filter/widgets/select-base.d.ts +1 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/select.d.ts +6 -3
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select.d.ts +9 -3
- package/dist/model/render-model/dashboard/content/filters/filters.d.ts +72 -2
- package/dist/model/render-model/dashboard/content/filters/utils.d.ts +14 -3
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './components/view';
|
|
|
6
6
|
export * from './components/panel';
|
|
7
7
|
export * from './contexts';
|
|
8
8
|
export * from './types';
|
|
9
|
-
export * from './dashboard-editor/model';
|
|
10
9
|
export * from './model';
|
|
11
10
|
export * from './api-caller/request';
|
|
12
11
|
export type { AnyObject } from './types/utils';
|
|
@@ -7,6 +7,7 @@ export declare const FilterMeta: import("mobx-state-tree").IModelType<{
|
|
|
7
7
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
8
8
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
9
9
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
10
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
10
11
|
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
11
12
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
12
13
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -73,8 +74,12 @@ export declare const FilterMeta: import("mobx-state-tree").IModelType<{
|
|
|
73
74
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
74
75
|
}>, any>;
|
|
75
76
|
}, {
|
|
77
|
+
readonly contentModel: any;
|
|
78
|
+
readonly filters: any;
|
|
76
79
|
readonly plainDefaultValue: any;
|
|
77
80
|
readonly usingDefaultValue: boolean;
|
|
81
|
+
readonly usingDefaultValueFunc: boolean;
|
|
82
|
+
readonly formattedDefaultValue: any;
|
|
78
83
|
readonly auto_submit_supported: boolean;
|
|
79
84
|
} & {
|
|
80
85
|
readonly json: {
|
|
@@ -86,6 +91,7 @@ export declare const FilterMeta: import("mobx-state-tree").IModelType<{
|
|
|
86
91
|
config: any;
|
|
87
92
|
auto_submit: boolean;
|
|
88
93
|
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>>>;
|
|
94
|
+
default_value_func: string;
|
|
89
95
|
};
|
|
90
96
|
readonly visibleInViewsIDSet: Set<string>;
|
|
91
97
|
readonly should_auto_submit: boolean;
|
|
@@ -97,6 +103,7 @@ export declare const FilterMeta: import("mobx-state-tree").IModelType<{
|
|
|
97
103
|
setType(type: DashboardFilterType): void;
|
|
98
104
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
99
105
|
setAutoSubmit(v: boolean): void;
|
|
106
|
+
setDefaultValueFunc(v: string): void;
|
|
100
107
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
101
108
|
export type FilterMetaInstance = Instance<typeof FilterMeta>;
|
|
102
109
|
export type FilterMetaSnapshotOut = SnapshotOut<FilterMetaInstance>;
|
|
@@ -16,6 +16,7 @@ export declare const FilterMultiSelectConfigMeta: import("mobx-state-tree").IMod
|
|
|
16
16
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
17
17
|
}, {
|
|
18
18
|
readonly contentModel: any;
|
|
19
|
+
readonly filter: any;
|
|
19
20
|
readonly usingQuery: boolean;
|
|
20
21
|
} & {
|
|
21
22
|
readonly options: import("./select-base").TSelectOption[];
|
|
@@ -50,7 +51,7 @@ export declare const FilterMultiSelectConfigMeta: import("mobx-state-tree").IMod
|
|
|
50
51
|
options_query_id: string;
|
|
51
52
|
default_selection_count: number;
|
|
52
53
|
};
|
|
53
|
-
readonly default_selection: any
|
|
54
|
+
readonly default_selection: any;
|
|
54
55
|
truthy(value: any): boolean;
|
|
55
56
|
} & {
|
|
56
57
|
setDefaultValue(default_value: string[]): void;
|
|
@@ -82,6 +83,7 @@ export declare const createFilterMultiSelectConfig: () => {
|
|
|
82
83
|
required: boolean;
|
|
83
84
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
84
85
|
readonly contentModel: any;
|
|
86
|
+
readonly filter: any;
|
|
85
87
|
readonly usingQuery: boolean;
|
|
86
88
|
} & {
|
|
87
89
|
readonly options: import("./select-base").TSelectOption[];
|
|
@@ -116,7 +118,7 @@ export declare const createFilterMultiSelectConfig: () => {
|
|
|
116
118
|
options_query_id: string;
|
|
117
119
|
default_selection_count: number;
|
|
118
120
|
};
|
|
119
|
-
readonly default_selection: any
|
|
121
|
+
readonly default_selection: any;
|
|
120
122
|
truthy(value: any): boolean;
|
|
121
123
|
} & {
|
|
122
124
|
setDefaultValue(default_value: string[]): void;
|
|
@@ -141,6 +143,7 @@ export declare const createFilterMultiSelectConfig: () => {
|
|
|
141
143
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
142
144
|
}, {
|
|
143
145
|
readonly contentModel: any;
|
|
146
|
+
readonly filter: any;
|
|
144
147
|
readonly usingQuery: boolean;
|
|
145
148
|
} & {
|
|
146
149
|
readonly options: import("./select-base").TSelectOption[];
|
|
@@ -175,7 +178,7 @@ export declare const createFilterMultiSelectConfig: () => {
|
|
|
175
178
|
options_query_id: string;
|
|
176
179
|
default_selection_count: number;
|
|
177
180
|
};
|
|
178
|
-
readonly default_selection: any
|
|
181
|
+
readonly default_selection: any;
|
|
179
182
|
truthy(value: any): boolean;
|
|
180
183
|
} & {
|
|
181
184
|
setDefaultValue(default_value: string[]): void;
|
|
@@ -25,6 +25,7 @@ export declare const FilterBaseSelectConfigMeta: import("mobx-state-tree").IMode
|
|
|
25
25
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
26
26
|
}, {
|
|
27
27
|
readonly contentModel: any;
|
|
28
|
+
readonly filter: any;
|
|
28
29
|
readonly usingQuery: boolean;
|
|
29
30
|
} & {
|
|
30
31
|
readonly options: TSelectOption[];
|
|
@@ -16,6 +16,7 @@ export declare const FilterSelectConfigMeta: import("mobx-state-tree").IModelTyp
|
|
|
16
16
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
17
17
|
}, {
|
|
18
18
|
readonly contentModel: any;
|
|
19
|
+
readonly filter: any;
|
|
19
20
|
readonly usingQuery: boolean;
|
|
20
21
|
} & {
|
|
21
22
|
readonly options: import("./select-base").TSelectOption[];
|
|
@@ -52,7 +53,7 @@ export declare const FilterSelectConfigMeta: import("mobx-state-tree").IModelTyp
|
|
|
52
53
|
};
|
|
53
54
|
truthy(value: any): boolean;
|
|
54
55
|
getSelectOption(value: string): import("./select-base").TSelectOption | undefined;
|
|
55
|
-
readonly default_selection:
|
|
56
|
+
readonly default_selection: any;
|
|
56
57
|
} & {
|
|
57
58
|
setDefaultValue(default_value: string): void;
|
|
58
59
|
setWidth(v: string): void;
|
|
@@ -83,6 +84,7 @@ export declare const createFilterSelectConfig: () => {
|
|
|
83
84
|
required: boolean;
|
|
84
85
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
85
86
|
readonly contentModel: any;
|
|
87
|
+
readonly filter: any;
|
|
86
88
|
readonly usingQuery: boolean;
|
|
87
89
|
} & {
|
|
88
90
|
readonly options: import("./select-base").TSelectOption[];
|
|
@@ -119,7 +121,7 @@ export declare const createFilterSelectConfig: () => {
|
|
|
119
121
|
};
|
|
120
122
|
truthy(value: any): boolean;
|
|
121
123
|
getSelectOption(value: string): import("./select-base").TSelectOption | undefined;
|
|
122
|
-
readonly default_selection:
|
|
124
|
+
readonly default_selection: any;
|
|
123
125
|
} & {
|
|
124
126
|
setDefaultValue(default_value: string): void;
|
|
125
127
|
setWidth(v: string): void;
|
|
@@ -143,6 +145,7 @@ export declare const createFilterSelectConfig: () => {
|
|
|
143
145
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
144
146
|
}, {
|
|
145
147
|
readonly contentModel: any;
|
|
148
|
+
readonly filter: any;
|
|
146
149
|
readonly usingQuery: boolean;
|
|
147
150
|
} & {
|
|
148
151
|
readonly options: import("./select-base").TSelectOption[];
|
|
@@ -179,7 +182,7 @@ export declare const createFilterSelectConfig: () => {
|
|
|
179
182
|
};
|
|
180
183
|
truthy(value: any): boolean;
|
|
181
184
|
getSelectOption(value: string): import("./select-base").TSelectOption | undefined;
|
|
182
|
-
readonly default_selection:
|
|
185
|
+
readonly default_selection: any;
|
|
183
186
|
} & {
|
|
184
187
|
setDefaultValue(default_value: string): void;
|
|
185
188
|
setWidth(v: string): void;
|
|
@@ -17,6 +17,7 @@ export declare const FilterTreeSelectConfigMeta: import("mobx-state-tree").IMode
|
|
|
17
17
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
18
18
|
}, {
|
|
19
19
|
readonly contentModel: any;
|
|
20
|
+
readonly filter: any;
|
|
20
21
|
readonly usingQuery: boolean;
|
|
21
22
|
} & {
|
|
22
23
|
readonly options: import("./select-base").TSelectOption[];
|
|
@@ -57,8 +58,9 @@ export declare const FilterTreeSelectConfigMeta: import("mobx-state-tree").IMode
|
|
|
57
58
|
readonly errorMessage: any;
|
|
58
59
|
readonly treeDataLoading: boolean;
|
|
59
60
|
readonly defaultSelection: any[];
|
|
60
|
-
truthy(value: any): boolean;
|
|
61
61
|
valueObjects(value: string[]): any;
|
|
62
|
+
readonly defaultSelectionOptions: any;
|
|
63
|
+
truthy(value: any): boolean;
|
|
62
64
|
} & {
|
|
63
65
|
setDefaultValue(default_value: string[]): void;
|
|
64
66
|
setMinWidth(v: string): void;
|
|
@@ -90,6 +92,7 @@ export declare const createFilterTreeSelectConfig: () => {
|
|
|
90
92
|
required: boolean;
|
|
91
93
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
92
94
|
readonly contentModel: any;
|
|
95
|
+
readonly filter: any;
|
|
93
96
|
readonly usingQuery: boolean;
|
|
94
97
|
} & {
|
|
95
98
|
readonly options: import("./select-base").TSelectOption[];
|
|
@@ -130,8 +133,9 @@ export declare const createFilterTreeSelectConfig: () => {
|
|
|
130
133
|
readonly errorMessage: any;
|
|
131
134
|
readonly treeDataLoading: boolean;
|
|
132
135
|
readonly defaultSelection: any[];
|
|
133
|
-
truthy(value: any): boolean;
|
|
134
136
|
valueObjects(value: string[]): any;
|
|
137
|
+
readonly defaultSelectionOptions: any;
|
|
138
|
+
truthy(value: any): boolean;
|
|
135
139
|
} & {
|
|
136
140
|
setDefaultValue(default_value: string[]): void;
|
|
137
141
|
setMinWidth(v: string): void;
|
|
@@ -156,6 +160,7 @@ export declare const createFilterTreeSelectConfig: () => {
|
|
|
156
160
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
157
161
|
}, {
|
|
158
162
|
readonly contentModel: any;
|
|
163
|
+
readonly filter: any;
|
|
159
164
|
readonly usingQuery: boolean;
|
|
160
165
|
} & {
|
|
161
166
|
readonly options: import("./select-base").TSelectOption[];
|
|
@@ -196,8 +201,9 @@ export declare const createFilterTreeSelectConfig: () => {
|
|
|
196
201
|
readonly errorMessage: any;
|
|
197
202
|
readonly treeDataLoading: boolean;
|
|
198
203
|
readonly defaultSelection: any[];
|
|
199
|
-
truthy(value: any): boolean;
|
|
200
204
|
valueObjects(value: string[]): any;
|
|
205
|
+
readonly defaultSelectionOptions: any;
|
|
206
|
+
truthy(value: any): boolean;
|
|
201
207
|
} & {
|
|
202
208
|
setDefaultValue(default_value: string[]): void;
|
|
203
209
|
setMinWidth(v: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
|
-
import { FilterMetaSnapshotOut } from '../../../../../model';
|
|
2
|
+
import { ContextRecordType, FilterMetaSnapshotOut } from '../../../../../model';
|
|
3
3
|
export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
4
4
|
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
5
5
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -8,6 +8,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
8
8
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
9
9
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
10
10
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
11
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
11
12
|
type: import("mobx-state-tree").ISimpleType<import('../../../../../model').DashboardFilterType>;
|
|
12
13
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
13
14
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -74,8 +75,12 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
74
75
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
75
76
|
}>, any>;
|
|
76
77
|
}, {
|
|
78
|
+
readonly contentModel: any;
|
|
79
|
+
readonly filters: any;
|
|
77
80
|
readonly plainDefaultValue: any;
|
|
78
81
|
readonly usingDefaultValue: boolean;
|
|
82
|
+
readonly usingDefaultValueFunc: boolean;
|
|
83
|
+
readonly formattedDefaultValue: any;
|
|
79
84
|
readonly auto_submit_supported: boolean;
|
|
80
85
|
} & {
|
|
81
86
|
readonly json: {
|
|
@@ -87,6 +92,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
87
92
|
config: any;
|
|
88
93
|
auto_submit: boolean;
|
|
89
94
|
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>>>;
|
|
95
|
+
default_value_func: string;
|
|
90
96
|
};
|
|
91
97
|
readonly visibleInViewsIDSet: Set<string>;
|
|
92
98
|
readonly should_auto_submit: boolean;
|
|
@@ -98,6 +104,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
98
104
|
setType(type: import('../../../../../model').DashboardFilterType): void;
|
|
99
105
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
100
106
|
setAutoSubmit(v: boolean): void;
|
|
107
|
+
setDefaultValueFunc(v: string): void;
|
|
101
108
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
102
109
|
values: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
103
110
|
}, {
|
|
@@ -110,7 +117,12 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
110
117
|
config: any;
|
|
111
118
|
auto_submit: boolean;
|
|
112
119
|
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>>>;
|
|
120
|
+
default_value_func: string;
|
|
113
121
|
}[];
|
|
122
|
+
readonly contentModel: any;
|
|
123
|
+
readonly context: any;
|
|
124
|
+
readonly initialValuesDep: string;
|
|
125
|
+
readonly formattedDefaultValues: import('../../../../../model').FilterValuesType;
|
|
114
126
|
readonly firstID: string | undefined;
|
|
115
127
|
findByID(id: string): ({
|
|
116
128
|
id: string;
|
|
@@ -119,11 +131,16 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
119
131
|
order: number;
|
|
120
132
|
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>>>;
|
|
121
133
|
auto_submit: boolean;
|
|
134
|
+
default_value_func: string;
|
|
122
135
|
type: import('../../../../../model').DashboardFilterType;
|
|
123
136
|
config: any;
|
|
124
137
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
138
|
+
readonly contentModel: any;
|
|
139
|
+
readonly filters: any;
|
|
125
140
|
readonly plainDefaultValue: any;
|
|
126
141
|
readonly usingDefaultValue: boolean;
|
|
142
|
+
readonly usingDefaultValueFunc: boolean;
|
|
143
|
+
readonly formattedDefaultValue: any;
|
|
127
144
|
readonly auto_submit_supported: boolean;
|
|
128
145
|
} & {
|
|
129
146
|
readonly json: {
|
|
@@ -135,6 +152,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
135
152
|
config: any;
|
|
136
153
|
auto_submit: boolean;
|
|
137
154
|
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>>>;
|
|
155
|
+
default_value_func: string;
|
|
138
156
|
};
|
|
139
157
|
readonly visibleInViewsIDSet: Set<string>;
|
|
140
158
|
readonly should_auto_submit: boolean;
|
|
@@ -146,6 +164,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
146
164
|
setType(type: import('../../../../../model').DashboardFilterType): void;
|
|
147
165
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
148
166
|
setAutoSubmit(v: boolean): void;
|
|
167
|
+
setDefaultValueFunc(v: string): void;
|
|
149
168
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
150
169
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
151
170
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -153,6 +172,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
153
172
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
154
173
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
155
174
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
175
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
156
176
|
type: import("mobx-state-tree").ISimpleType<import('../../../../../model').DashboardFilterType>;
|
|
157
177
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
158
178
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -219,8 +239,12 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
219
239
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
220
240
|
}>, any>;
|
|
221
241
|
}, {
|
|
242
|
+
readonly contentModel: any;
|
|
243
|
+
readonly filters: any;
|
|
222
244
|
readonly plainDefaultValue: any;
|
|
223
245
|
readonly usingDefaultValue: boolean;
|
|
246
|
+
readonly usingDefaultValueFunc: boolean;
|
|
247
|
+
readonly formattedDefaultValue: any;
|
|
224
248
|
readonly auto_submit_supported: boolean;
|
|
225
249
|
} & {
|
|
226
250
|
readonly json: {
|
|
@@ -232,6 +256,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
232
256
|
config: any;
|
|
233
257
|
auto_submit: boolean;
|
|
234
258
|
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>>>;
|
|
259
|
+
default_value_func: string;
|
|
235
260
|
};
|
|
236
261
|
readonly visibleInViewsIDSet: Set<string>;
|
|
237
262
|
readonly should_auto_submit: boolean;
|
|
@@ -243,6 +268,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
243
268
|
setType(type: import('../../../../../model').DashboardFilterType): void;
|
|
244
269
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
245
270
|
setAutoSubmit(v: boolean): void;
|
|
271
|
+
setDefaultValueFunc(v: string): void;
|
|
246
272
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
247
273
|
findByIDSet(idset: Set<string>): ({
|
|
248
274
|
id: string;
|
|
@@ -251,11 +277,16 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
251
277
|
order: number;
|
|
252
278
|
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>>>;
|
|
253
279
|
auto_submit: boolean;
|
|
280
|
+
default_value_func: string;
|
|
254
281
|
type: import('../../../../../model').DashboardFilterType;
|
|
255
282
|
config: any;
|
|
256
283
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
284
|
+
readonly contentModel: any;
|
|
285
|
+
readonly filters: any;
|
|
257
286
|
readonly plainDefaultValue: any;
|
|
258
287
|
readonly usingDefaultValue: boolean;
|
|
288
|
+
readonly usingDefaultValueFunc: boolean;
|
|
289
|
+
readonly formattedDefaultValue: any;
|
|
259
290
|
readonly auto_submit_supported: boolean;
|
|
260
291
|
} & {
|
|
261
292
|
readonly json: {
|
|
@@ -267,6 +298,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
267
298
|
config: any;
|
|
268
299
|
auto_submit: boolean;
|
|
269
300
|
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>>>;
|
|
301
|
+
default_value_func: string;
|
|
270
302
|
};
|
|
271
303
|
readonly visibleInViewsIDSet: Set<string>;
|
|
272
304
|
readonly should_auto_submit: boolean;
|
|
@@ -278,6 +310,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
278
310
|
setType(type: import('../../../../../model').DashboardFilterType): void;
|
|
279
311
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
280
312
|
setAutoSubmit(v: boolean): void;
|
|
313
|
+
setDefaultValueFunc(v: string): void;
|
|
281
314
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
282
315
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
283
316
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -285,6 +318,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
285
318
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
286
319
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
287
320
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
321
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
288
322
|
type: import("mobx-state-tree").ISimpleType<import('../../../../../model').DashboardFilterType>;
|
|
289
323
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
290
324
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -351,8 +385,12 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
351
385
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
352
386
|
}>, any>;
|
|
353
387
|
}, {
|
|
388
|
+
readonly contentModel: any;
|
|
389
|
+
readonly filters: any;
|
|
354
390
|
readonly plainDefaultValue: any;
|
|
355
391
|
readonly usingDefaultValue: boolean;
|
|
392
|
+
readonly usingDefaultValueFunc: boolean;
|
|
393
|
+
readonly formattedDefaultValue: any;
|
|
356
394
|
readonly auto_submit_supported: boolean;
|
|
357
395
|
} & {
|
|
358
396
|
readonly json: {
|
|
@@ -364,6 +402,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
364
402
|
config: any;
|
|
365
403
|
auto_submit: boolean;
|
|
366
404
|
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>>>;
|
|
405
|
+
default_value_func: string;
|
|
367
406
|
};
|
|
368
407
|
readonly visibleInViewsIDSet: Set<string>;
|
|
369
408
|
readonly should_auto_submit: boolean;
|
|
@@ -375,6 +414,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
375
414
|
setType(type: import('../../../../../model').DashboardFilterType): void;
|
|
376
415
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
377
416
|
setAutoSubmit(v: boolean): void;
|
|
417
|
+
setDefaultValueFunc(v: string): void;
|
|
378
418
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
379
419
|
readonly inOrder: ({
|
|
380
420
|
id: string;
|
|
@@ -383,11 +423,16 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
383
423
|
order: number;
|
|
384
424
|
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>>>;
|
|
385
425
|
auto_submit: boolean;
|
|
426
|
+
default_value_func: string;
|
|
386
427
|
type: import('../../../../../model').DashboardFilterType;
|
|
387
428
|
config: any;
|
|
388
429
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
430
|
+
readonly contentModel: any;
|
|
431
|
+
readonly filters: any;
|
|
389
432
|
readonly plainDefaultValue: any;
|
|
390
433
|
readonly usingDefaultValue: boolean;
|
|
434
|
+
readonly usingDefaultValueFunc: boolean;
|
|
435
|
+
readonly formattedDefaultValue: any;
|
|
391
436
|
readonly auto_submit_supported: boolean;
|
|
392
437
|
} & {
|
|
393
438
|
readonly json: {
|
|
@@ -399,6 +444,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
399
444
|
config: any;
|
|
400
445
|
auto_submit: boolean;
|
|
401
446
|
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>>>;
|
|
447
|
+
default_value_func: string;
|
|
402
448
|
};
|
|
403
449
|
readonly visibleInViewsIDSet: Set<string>;
|
|
404
450
|
readonly should_auto_submit: boolean;
|
|
@@ -410,6 +456,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
410
456
|
setType(type: import('../../../../../model').DashboardFilterType): void;
|
|
411
457
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
412
458
|
setAutoSubmit(v: boolean): void;
|
|
459
|
+
setDefaultValueFunc(v: string): void;
|
|
413
460
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
414
461
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
415
462
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -417,6 +464,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
417
464
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
418
465
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
419
466
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
467
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
420
468
|
type: import("mobx-state-tree").ISimpleType<import('../../../../../model').DashboardFilterType>;
|
|
421
469
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
422
470
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -483,8 +531,12 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
483
531
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
484
532
|
}>, any>;
|
|
485
533
|
}, {
|
|
534
|
+
readonly contentModel: any;
|
|
535
|
+
readonly filters: any;
|
|
486
536
|
readonly plainDefaultValue: any;
|
|
487
537
|
readonly usingDefaultValue: boolean;
|
|
538
|
+
readonly usingDefaultValueFunc: boolean;
|
|
539
|
+
readonly formattedDefaultValue: any;
|
|
488
540
|
readonly auto_submit_supported: boolean;
|
|
489
541
|
} & {
|
|
490
542
|
readonly json: {
|
|
@@ -496,6 +548,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
496
548
|
config: any;
|
|
497
549
|
auto_submit: boolean;
|
|
498
550
|
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>>>;
|
|
551
|
+
default_value_func: string;
|
|
499
552
|
};
|
|
500
553
|
readonly visibleInViewsIDSet: Set<string>;
|
|
501
554
|
readonly should_auto_submit: boolean;
|
|
@@ -507,6 +560,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
507
560
|
setType(type: import('../../../../../model').DashboardFilterType): void;
|
|
508
561
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
509
562
|
setAutoSubmit(v: boolean): void;
|
|
563
|
+
setDefaultValueFunc(v: string): void;
|
|
510
564
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
511
565
|
readonly empty: boolean;
|
|
512
566
|
visibleInView(viewID: string): ({
|
|
@@ -516,11 +570,16 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
516
570
|
order: number;
|
|
517
571
|
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>>>;
|
|
518
572
|
auto_submit: boolean;
|
|
573
|
+
default_value_func: string;
|
|
519
574
|
type: import('../../../../../model').DashboardFilterType;
|
|
520
575
|
config: any;
|
|
521
576
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
577
|
+
readonly contentModel: any;
|
|
578
|
+
readonly filters: any;
|
|
522
579
|
readonly plainDefaultValue: any;
|
|
523
580
|
readonly usingDefaultValue: boolean;
|
|
581
|
+
readonly usingDefaultValueFunc: boolean;
|
|
582
|
+
readonly formattedDefaultValue: any;
|
|
524
583
|
readonly auto_submit_supported: boolean;
|
|
525
584
|
} & {
|
|
526
585
|
readonly json: {
|
|
@@ -532,6 +591,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
532
591
|
config: any;
|
|
533
592
|
auto_submit: boolean;
|
|
534
593
|
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>>>;
|
|
594
|
+
default_value_func: string;
|
|
535
595
|
};
|
|
536
596
|
readonly visibleInViewsIDSet: Set<string>;
|
|
537
597
|
readonly should_auto_submit: boolean;
|
|
@@ -543,6 +603,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
543
603
|
setType(type: import('../../../../../model').DashboardFilterType): void;
|
|
544
604
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
545
605
|
setAutoSubmit(v: boolean): void;
|
|
606
|
+
setDefaultValueFunc(v: string): void;
|
|
546
607
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
547
608
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
548
609
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -550,6 +611,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
550
611
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
551
612
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
552
613
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
614
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
553
615
|
type: import("mobx-state-tree").ISimpleType<import('../../../../../model').DashboardFilterType>;
|
|
554
616
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
555
617
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -616,8 +678,12 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
616
678
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
617
679
|
}>, any>;
|
|
618
680
|
}, {
|
|
681
|
+
readonly contentModel: any;
|
|
682
|
+
readonly filters: any;
|
|
619
683
|
readonly plainDefaultValue: any;
|
|
620
684
|
readonly usingDefaultValue: boolean;
|
|
685
|
+
readonly usingDefaultValueFunc: boolean;
|
|
686
|
+
readonly formattedDefaultValue: any;
|
|
621
687
|
readonly auto_submit_supported: boolean;
|
|
622
688
|
} & {
|
|
623
689
|
readonly json: {
|
|
@@ -629,6 +695,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
629
695
|
config: any;
|
|
630
696
|
auto_submit: boolean;
|
|
631
697
|
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>>>;
|
|
698
|
+
default_value_func: string;
|
|
632
699
|
};
|
|
633
700
|
readonly visibleInViewsIDSet: Set<string>;
|
|
634
701
|
readonly should_auto_submit: boolean;
|
|
@@ -640,6 +707,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
640
707
|
setType(type: import('../../../../../model').DashboardFilterType): void;
|
|
641
708
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
642
709
|
setAutoSubmit(v: boolean): void;
|
|
710
|
+
setDefaultValueFunc(v: string): void;
|
|
643
711
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
644
712
|
readonly firstFilterValueKey: string;
|
|
645
713
|
readonly keySet: Set<string>;
|
|
@@ -659,13 +727,14 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
659
727
|
order: number;
|
|
660
728
|
config: any;
|
|
661
729
|
auto_submit: boolean;
|
|
730
|
+
default_value_func: string;
|
|
662
731
|
}[];
|
|
663
732
|
version: string;
|
|
664
733
|
};
|
|
665
734
|
downloadSchema(ids: string[]): void;
|
|
666
735
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
667
736
|
export type FiltersRenderModelInstance = Instance<typeof FiltersRenderModel>;
|
|
668
|
-
export declare function getInitialFiltersConfig(filters: FilterMetaSnapshotOut[]): {
|
|
737
|
+
export declare function getInitialFiltersConfig(filters: FilterMetaSnapshotOut[], context: ContextRecordType, mock_context: ContextRecordType): {
|
|
669
738
|
current: import("mobx-state-tree").ModelSnapshotType<{
|
|
670
739
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
671
740
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -673,6 +742,7 @@ export declare function getInitialFiltersConfig(filters: FilterMetaSnapshotOut[]
|
|
|
673
742
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
674
743
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
675
744
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
745
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
676
746
|
type: import("mobx-state-tree").ISimpleType<import('../../../../../model').DashboardFilterType>;
|
|
677
747
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
678
748
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import { FilterMetaSnapshotOut } from '../../../../../model';
|
|
1
|
+
import { ContextRecordType, FilterMetaSnapshotOut } from '../../../../../model';
|
|
2
2
|
import { FilterValuesType } from './types';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type LocalFilterMetaSnapshotOut = {
|
|
4
|
+
config: {
|
|
5
|
+
_name: string;
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
default_value_func: string;
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
};
|
|
11
|
+
export declare function getStaticDefaultValue(filter: LocalFilterMetaSnapshotOut): any;
|
|
12
|
+
export declare function getDefaultValueWithFunc(filter: LocalFilterMetaSnapshotOut, context: ContextRecordType): any;
|
|
13
|
+
export declare function formatDefaultValue(filter: LocalFilterMetaSnapshotOut, context: ContextRecordType): any;
|
|
14
|
+
export declare function getValuesFromFilters(filters: FilterMetaSnapshotOut[], context: ContextRecordType): FilterValuesType;
|
|
15
|
+
export {};
|