@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
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { FilterMetaInstance } from '../../../model';
|
|
3
3
|
interface IFilterEditorCheckbox {
|
|
4
|
-
|
|
5
|
-
index: number;
|
|
4
|
+
filter: FilterMetaInstance;
|
|
6
5
|
}
|
|
7
6
|
export declare const FilterEditorCheckbox: import('./react').FunctionComponent<IFilterEditorCheckbox>;
|
|
8
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { FilterMetaInstance } from '../../../model';
|
|
3
3
|
interface IFilterEditorDateRange {
|
|
4
|
-
|
|
4
|
+
filter: FilterMetaInstance;
|
|
5
5
|
}
|
|
6
6
|
export declare const FilterEditorDateRange: import('./react').FunctionComponent<IFilterEditorDateRange>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { FilterMetaInstance } from '../../../model';
|
|
3
3
|
interface IFilterEditorMultiSelect {
|
|
4
|
-
|
|
4
|
+
filter: FilterMetaInstance;
|
|
5
5
|
}
|
|
6
6
|
export declare const FilterEditorMultiSelect: import('./react').FunctionComponent<IFilterEditorMultiSelect>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { FilterMetaInstance } from '../../../model';
|
|
3
3
|
interface IFilterEditorSelect {
|
|
4
|
-
|
|
4
|
+
filter: FilterMetaInstance;
|
|
5
5
|
}
|
|
6
6
|
export declare const FilterEditorSelect: import('./react').FunctionComponent<IFilterEditorSelect>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { FilterMetaInstance } from '../../../model';
|
|
3
3
|
interface IFilterEditorTextInput {
|
|
4
|
-
|
|
4
|
+
filter: FilterMetaInstance;
|
|
5
5
|
}
|
|
6
6
|
export declare const FilterEditorTextInput: import('./react').FunctionComponent<IFilterEditorTextInput>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { FilterMetaInstance } from '../../../model';
|
|
3
3
|
interface IFilterEditorTreeSelect {
|
|
4
|
-
|
|
4
|
+
filter: FilterMetaInstance;
|
|
5
5
|
}
|
|
6
6
|
export declare const FilterEditorTreeSelect: import('./react').FunctionComponent<IFilterEditorTreeSelect>;
|
|
7
7
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FilterMetaInstance } from '../../../../model';
|
|
2
|
-
import { FilterTreeSelectConfigInstance } from '../../../../model';
|
|
1
|
+
import { FilterMetaInstance, FilterTreeSelectConfigInstance } from '../../../../model';
|
|
3
2
|
interface IFilterTreeSelect extends Omit<FilterMetaInstance, 'key' | 'type' | 'config'> {
|
|
4
3
|
config: FilterTreeSelectConfigInstance;
|
|
5
4
|
value: $TSFixMe;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { ReactNode } from './react';
|
|
2
2
|
import { AnyObject } from '../../../types';
|
|
3
3
|
interface Props {
|
|
4
|
+
title: string;
|
|
4
5
|
value: TFunctionString;
|
|
5
6
|
onChange: (v: TFunctionString) => void;
|
|
6
7
|
defaultValue: TFunctionString;
|
|
7
8
|
label: string;
|
|
9
|
+
description?: ReactNode;
|
|
8
10
|
triggerLabel?: string;
|
|
9
11
|
triggerButtonProps?: AnyObject;
|
|
10
12
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { ReactNode } from './react';
|
|
2
|
+
import { ContextRecordType } from '../model';
|
|
3
|
+
import { DashboardContentDBType, IDashboard } from '../types/dashboard';
|
|
4
|
+
import { IDashboardConfig } from '..';
|
|
5
|
+
interface IDashboardProps {
|
|
6
|
+
context: ContextRecordType;
|
|
7
|
+
dashboard: IDashboard;
|
|
8
|
+
content: DashboardContentDBType;
|
|
9
|
+
className?: string;
|
|
10
|
+
update: (d: IDashboard, c: DashboardContentDBType) => Promise<void>;
|
|
11
|
+
config: IDashboardConfig;
|
|
12
|
+
onChange?: (dashboard: IDashboard) => void;
|
|
13
|
+
headerSlot?: ReactNode;
|
|
14
|
+
onFilterValuesChange?: (filterValues: Record<string, any>) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface IDashboardModel {
|
|
17
|
+
readonly json: IDashboard;
|
|
18
|
+
updateCurrent: (dashboard: IDashboard, content: DashboardContentDBType) => void;
|
|
19
|
+
updateCurrentContent: (content: DashboardContentDBType) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const DashboardEditor: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IDashboardProps & React.RefAttributes<IDashboardModel>, "ref"> & React.RefAttributes<IDashboardModel>>>;
|
|
22
|
+
export {};
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { DashboardContentDBType, IDashboard } from '../types/dashboard';
|
|
4
|
-
import { IDashboardConfig } from '..';
|
|
5
|
-
interface IDashboardProps {
|
|
6
|
-
context: ContextRecordType;
|
|
7
|
-
dashboard: IDashboard;
|
|
8
|
-
content: DashboardContentDBType;
|
|
9
|
-
className?: string;
|
|
10
|
-
update: (d: IDashboard, c: DashboardContentDBType) => Promise<void>;
|
|
11
|
-
config: IDashboardConfig;
|
|
12
|
-
onChange?: (dashboard: IDashboard) => void;
|
|
13
|
-
headerSlot?: ReactNode;
|
|
14
|
-
}
|
|
15
|
-
export interface IDashboardModel {
|
|
16
|
-
readonly json: IDashboard;
|
|
17
|
-
updateCurrent: (dashboard: IDashboard, content: DashboardContentDBType) => void;
|
|
18
|
-
updateCurrentContent: (content: DashboardContentDBType) => void;
|
|
19
|
-
}
|
|
20
|
-
export declare const DashboardEditor: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<IDashboardProps & React.RefAttributes<IDashboardModel>, "ref"> & React.RefAttributes<IDashboardModel>>>;
|
|
21
|
-
export {};
|
|
1
|
+
export * from './dashboard-editor';
|
|
2
|
+
export * from './model';
|
|
@@ -9,6 +9,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
9
9
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
10
10
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
11
11
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
12
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
12
13
|
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
13
14
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
14
15
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -75,8 +76,12 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
75
76
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
76
77
|
}>, any>;
|
|
77
78
|
}, {
|
|
79
|
+
readonly contentModel: any;
|
|
80
|
+
readonly filters: any;
|
|
78
81
|
readonly plainDefaultValue: any;
|
|
79
82
|
readonly usingDefaultValue: boolean;
|
|
83
|
+
readonly usingDefaultValueFunc: boolean;
|
|
84
|
+
readonly formattedDefaultValue: any;
|
|
80
85
|
readonly auto_submit_supported: boolean;
|
|
81
86
|
} & {
|
|
82
87
|
readonly json: {
|
|
@@ -88,6 +93,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
88
93
|
config: any;
|
|
89
94
|
auto_submit: boolean;
|
|
90
95
|
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>>>;
|
|
96
|
+
default_value_func: string;
|
|
91
97
|
};
|
|
92
98
|
readonly visibleInViewsIDSet: Set<string>;
|
|
93
99
|
readonly should_auto_submit: boolean;
|
|
@@ -99,6 +105,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
99
105
|
setType(type: DashboardFilterType): void;
|
|
100
106
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
101
107
|
setAutoSubmit(v: boolean): void;
|
|
108
|
+
setDefaultValueFunc(v: string): void;
|
|
102
109
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
103
110
|
values: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
104
111
|
} & {
|
|
@@ -113,7 +120,12 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
113
120
|
config: any;
|
|
114
121
|
auto_submit: boolean;
|
|
115
122
|
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>>>;
|
|
123
|
+
default_value_func: string;
|
|
116
124
|
}[];
|
|
125
|
+
readonly contentModel: any;
|
|
126
|
+
readonly context: any;
|
|
127
|
+
readonly initialValuesDep: string;
|
|
128
|
+
readonly formattedDefaultValues: import('../../../model').FilterValuesType;
|
|
117
129
|
readonly firstID: string | undefined;
|
|
118
130
|
findByID(id: string): ({
|
|
119
131
|
id: string;
|
|
@@ -122,11 +134,16 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
122
134
|
order: number;
|
|
123
135
|
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>>>;
|
|
124
136
|
auto_submit: boolean;
|
|
137
|
+
default_value_func: string;
|
|
125
138
|
type: DashboardFilterType;
|
|
126
139
|
config: any;
|
|
127
140
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
141
|
+
readonly contentModel: any;
|
|
142
|
+
readonly filters: any;
|
|
128
143
|
readonly plainDefaultValue: any;
|
|
129
144
|
readonly usingDefaultValue: boolean;
|
|
145
|
+
readonly usingDefaultValueFunc: boolean;
|
|
146
|
+
readonly formattedDefaultValue: any;
|
|
130
147
|
readonly auto_submit_supported: boolean;
|
|
131
148
|
} & {
|
|
132
149
|
readonly json: {
|
|
@@ -138,6 +155,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
138
155
|
config: any;
|
|
139
156
|
auto_submit: boolean;
|
|
140
157
|
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>>>;
|
|
158
|
+
default_value_func: string;
|
|
141
159
|
};
|
|
142
160
|
readonly visibleInViewsIDSet: Set<string>;
|
|
143
161
|
readonly should_auto_submit: boolean;
|
|
@@ -149,6 +167,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
149
167
|
setType(type: DashboardFilterType): void;
|
|
150
168
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
151
169
|
setAutoSubmit(v: boolean): void;
|
|
170
|
+
setDefaultValueFunc(v: string): void;
|
|
152
171
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
153
172
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
154
173
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -156,6 +175,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
156
175
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
157
176
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
158
177
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
178
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
159
179
|
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
160
180
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
161
181
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -222,8 +242,12 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
222
242
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
223
243
|
}>, any>;
|
|
224
244
|
}, {
|
|
245
|
+
readonly contentModel: any;
|
|
246
|
+
readonly filters: any;
|
|
225
247
|
readonly plainDefaultValue: any;
|
|
226
248
|
readonly usingDefaultValue: boolean;
|
|
249
|
+
readonly usingDefaultValueFunc: boolean;
|
|
250
|
+
readonly formattedDefaultValue: any;
|
|
227
251
|
readonly auto_submit_supported: boolean;
|
|
228
252
|
} & {
|
|
229
253
|
readonly json: {
|
|
@@ -235,6 +259,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
235
259
|
config: any;
|
|
236
260
|
auto_submit: boolean;
|
|
237
261
|
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>>>;
|
|
262
|
+
default_value_func: string;
|
|
238
263
|
};
|
|
239
264
|
readonly visibleInViewsIDSet: Set<string>;
|
|
240
265
|
readonly should_auto_submit: boolean;
|
|
@@ -246,6 +271,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
246
271
|
setType(type: DashboardFilterType): void;
|
|
247
272
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
248
273
|
setAutoSubmit(v: boolean): void;
|
|
274
|
+
setDefaultValueFunc(v: string): void;
|
|
249
275
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
250
276
|
findByIDSet(idset: Set<string>): ({
|
|
251
277
|
id: string;
|
|
@@ -254,11 +280,16 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
254
280
|
order: number;
|
|
255
281
|
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>>>;
|
|
256
282
|
auto_submit: boolean;
|
|
283
|
+
default_value_func: string;
|
|
257
284
|
type: DashboardFilterType;
|
|
258
285
|
config: any;
|
|
259
286
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
287
|
+
readonly contentModel: any;
|
|
288
|
+
readonly filters: any;
|
|
260
289
|
readonly plainDefaultValue: any;
|
|
261
290
|
readonly usingDefaultValue: boolean;
|
|
291
|
+
readonly usingDefaultValueFunc: boolean;
|
|
292
|
+
readonly formattedDefaultValue: any;
|
|
262
293
|
readonly auto_submit_supported: boolean;
|
|
263
294
|
} & {
|
|
264
295
|
readonly json: {
|
|
@@ -270,6 +301,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
270
301
|
config: any;
|
|
271
302
|
auto_submit: boolean;
|
|
272
303
|
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>>>;
|
|
304
|
+
default_value_func: string;
|
|
273
305
|
};
|
|
274
306
|
readonly visibleInViewsIDSet: Set<string>;
|
|
275
307
|
readonly should_auto_submit: boolean;
|
|
@@ -281,6 +313,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
281
313
|
setType(type: DashboardFilterType): void;
|
|
282
314
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
283
315
|
setAutoSubmit(v: boolean): void;
|
|
316
|
+
setDefaultValueFunc(v: string): void;
|
|
284
317
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
285
318
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
286
319
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -288,6 +321,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
288
321
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
289
322
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
290
323
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
324
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
291
325
|
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
292
326
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
293
327
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -354,8 +388,12 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
354
388
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
355
389
|
}>, any>;
|
|
356
390
|
}, {
|
|
391
|
+
readonly contentModel: any;
|
|
392
|
+
readonly filters: any;
|
|
357
393
|
readonly plainDefaultValue: any;
|
|
358
394
|
readonly usingDefaultValue: boolean;
|
|
395
|
+
readonly usingDefaultValueFunc: boolean;
|
|
396
|
+
readonly formattedDefaultValue: any;
|
|
359
397
|
readonly auto_submit_supported: boolean;
|
|
360
398
|
} & {
|
|
361
399
|
readonly json: {
|
|
@@ -367,6 +405,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
367
405
|
config: any;
|
|
368
406
|
auto_submit: boolean;
|
|
369
407
|
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>>>;
|
|
408
|
+
default_value_func: string;
|
|
370
409
|
};
|
|
371
410
|
readonly visibleInViewsIDSet: Set<string>;
|
|
372
411
|
readonly should_auto_submit: boolean;
|
|
@@ -378,6 +417,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
378
417
|
setType(type: DashboardFilterType): void;
|
|
379
418
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
380
419
|
setAutoSubmit(v: boolean): void;
|
|
420
|
+
setDefaultValueFunc(v: string): void;
|
|
381
421
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
382
422
|
readonly inOrder: ({
|
|
383
423
|
id: string;
|
|
@@ -386,11 +426,16 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
386
426
|
order: number;
|
|
387
427
|
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>>>;
|
|
388
428
|
auto_submit: boolean;
|
|
429
|
+
default_value_func: string;
|
|
389
430
|
type: DashboardFilterType;
|
|
390
431
|
config: any;
|
|
391
432
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
433
|
+
readonly contentModel: any;
|
|
434
|
+
readonly filters: any;
|
|
392
435
|
readonly plainDefaultValue: any;
|
|
393
436
|
readonly usingDefaultValue: boolean;
|
|
437
|
+
readonly usingDefaultValueFunc: boolean;
|
|
438
|
+
readonly formattedDefaultValue: any;
|
|
394
439
|
readonly auto_submit_supported: boolean;
|
|
395
440
|
} & {
|
|
396
441
|
readonly json: {
|
|
@@ -402,6 +447,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
402
447
|
config: any;
|
|
403
448
|
auto_submit: boolean;
|
|
404
449
|
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>>>;
|
|
450
|
+
default_value_func: string;
|
|
405
451
|
};
|
|
406
452
|
readonly visibleInViewsIDSet: Set<string>;
|
|
407
453
|
readonly should_auto_submit: boolean;
|
|
@@ -413,6 +459,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
413
459
|
setType(type: DashboardFilterType): void;
|
|
414
460
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
415
461
|
setAutoSubmit(v: boolean): void;
|
|
462
|
+
setDefaultValueFunc(v: string): void;
|
|
416
463
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
417
464
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
418
465
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -420,6 +467,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
420
467
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
421
468
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
422
469
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
470
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
423
471
|
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
424
472
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
425
473
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -486,8 +534,12 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
486
534
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
487
535
|
}>, any>;
|
|
488
536
|
}, {
|
|
537
|
+
readonly contentModel: any;
|
|
538
|
+
readonly filters: any;
|
|
489
539
|
readonly plainDefaultValue: any;
|
|
490
540
|
readonly usingDefaultValue: boolean;
|
|
541
|
+
readonly usingDefaultValueFunc: boolean;
|
|
542
|
+
readonly formattedDefaultValue: any;
|
|
491
543
|
readonly auto_submit_supported: boolean;
|
|
492
544
|
} & {
|
|
493
545
|
readonly json: {
|
|
@@ -499,6 +551,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
499
551
|
config: any;
|
|
500
552
|
auto_submit: boolean;
|
|
501
553
|
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>>>;
|
|
554
|
+
default_value_func: string;
|
|
502
555
|
};
|
|
503
556
|
readonly visibleInViewsIDSet: Set<string>;
|
|
504
557
|
readonly should_auto_submit: boolean;
|
|
@@ -510,6 +563,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
510
563
|
setType(type: DashboardFilterType): void;
|
|
511
564
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
512
565
|
setAutoSubmit(v: boolean): void;
|
|
566
|
+
setDefaultValueFunc(v: string): void;
|
|
513
567
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
514
568
|
readonly empty: boolean;
|
|
515
569
|
visibleInView(viewID: string): ({
|
|
@@ -519,11 +573,16 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
519
573
|
order: number;
|
|
520
574
|
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>>>;
|
|
521
575
|
auto_submit: boolean;
|
|
576
|
+
default_value_func: string;
|
|
522
577
|
type: DashboardFilterType;
|
|
523
578
|
config: any;
|
|
524
579
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
580
|
+
readonly contentModel: any;
|
|
581
|
+
readonly filters: any;
|
|
525
582
|
readonly plainDefaultValue: any;
|
|
526
583
|
readonly usingDefaultValue: boolean;
|
|
584
|
+
readonly usingDefaultValueFunc: boolean;
|
|
585
|
+
readonly formattedDefaultValue: any;
|
|
527
586
|
readonly auto_submit_supported: boolean;
|
|
528
587
|
} & {
|
|
529
588
|
readonly json: {
|
|
@@ -535,6 +594,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
535
594
|
config: any;
|
|
536
595
|
auto_submit: boolean;
|
|
537
596
|
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>>>;
|
|
597
|
+
default_value_func: string;
|
|
538
598
|
};
|
|
539
599
|
readonly visibleInViewsIDSet: Set<string>;
|
|
540
600
|
readonly should_auto_submit: boolean;
|
|
@@ -546,6 +606,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
546
606
|
setType(type: DashboardFilterType): void;
|
|
547
607
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
548
608
|
setAutoSubmit(v: boolean): void;
|
|
609
|
+
setDefaultValueFunc(v: string): void;
|
|
549
610
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
550
611
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
551
612
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -553,6 +614,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
553
614
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
554
615
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
555
616
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
617
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
556
618
|
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
557
619
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
558
620
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -619,8 +681,12 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
619
681
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
620
682
|
}>, any>;
|
|
621
683
|
}, {
|
|
684
|
+
readonly contentModel: any;
|
|
685
|
+
readonly filters: any;
|
|
622
686
|
readonly plainDefaultValue: any;
|
|
623
687
|
readonly usingDefaultValue: boolean;
|
|
688
|
+
readonly usingDefaultValueFunc: boolean;
|
|
689
|
+
readonly formattedDefaultValue: any;
|
|
624
690
|
readonly auto_submit_supported: boolean;
|
|
625
691
|
} & {
|
|
626
692
|
readonly json: {
|
|
@@ -632,6 +698,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
632
698
|
config: any;
|
|
633
699
|
auto_submit: boolean;
|
|
634
700
|
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>>>;
|
|
701
|
+
default_value_func: string;
|
|
635
702
|
};
|
|
636
703
|
readonly visibleInViewsIDSet: Set<string>;
|
|
637
704
|
readonly should_auto_submit: boolean;
|
|
@@ -643,6 +710,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
643
710
|
setType(type: DashboardFilterType): void;
|
|
644
711
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
645
712
|
setAutoSubmit(v: boolean): void;
|
|
713
|
+
setDefaultValueFunc(v: string): void;
|
|
646
714
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
647
715
|
readonly firstFilterValueKey: string;
|
|
648
716
|
readonly keySet: Set<string>;
|
|
@@ -662,6 +730,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
662
730
|
order: number;
|
|
663
731
|
config: any;
|
|
664
732
|
auto_submit: boolean;
|
|
733
|
+
default_value_func: string;
|
|
665
734
|
}[];
|
|
666
735
|
version: string;
|
|
667
736
|
};
|
|
@@ -689,11 +758,16 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
689
758
|
order: number;
|
|
690
759
|
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>>>;
|
|
691
760
|
auto_submit: boolean;
|
|
761
|
+
default_value_func: string;
|
|
692
762
|
type: DashboardFilterType;
|
|
693
763
|
config: any;
|
|
694
764
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
765
|
+
readonly contentModel: any;
|
|
766
|
+
readonly filters: any;
|
|
695
767
|
readonly plainDefaultValue: any;
|
|
696
768
|
readonly usingDefaultValue: boolean;
|
|
769
|
+
readonly usingDefaultValueFunc: boolean;
|
|
770
|
+
readonly formattedDefaultValue: any;
|
|
697
771
|
readonly auto_submit_supported: boolean;
|
|
698
772
|
} & {
|
|
699
773
|
readonly json: {
|
|
@@ -705,6 +779,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
705
779
|
config: any;
|
|
706
780
|
auto_submit: boolean;
|
|
707
781
|
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>>>;
|
|
782
|
+
default_value_func: string;
|
|
708
783
|
};
|
|
709
784
|
readonly visibleInViewsIDSet: Set<string>;
|
|
710
785
|
readonly should_auto_submit: boolean;
|
|
@@ -716,6 +791,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
716
791
|
setType(type: DashboardFilterType): void;
|
|
717
792
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
718
793
|
setAutoSubmit(v: boolean): void;
|
|
794
|
+
setDefaultValueFunc(v: string): void;
|
|
719
795
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
720
796
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
721
797
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -723,6 +799,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
723
799
|
order: import("mobx-state-tree").ISimpleType<number>;
|
|
724
800
|
visibleInViewsIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
725
801
|
auto_submit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
802
|
+
default_value_func: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
726
803
|
type: import("mobx-state-tree").ISimpleType<DashboardFilterType>;
|
|
727
804
|
config: import("mobx-state-tree").ITypeUnion<any, import("mobx-state-tree").ModelSnapshotType<{
|
|
728
805
|
_name: import("mobx-state-tree").ISimpleType<"multi-select">;
|
|
@@ -789,8 +866,12 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
789
866
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
790
867
|
}>, any>;
|
|
791
868
|
}, {
|
|
869
|
+
readonly contentModel: any;
|
|
870
|
+
readonly filters: any;
|
|
792
871
|
readonly plainDefaultValue: any;
|
|
793
872
|
readonly usingDefaultValue: boolean;
|
|
873
|
+
readonly usingDefaultValueFunc: boolean;
|
|
874
|
+
readonly formattedDefaultValue: any;
|
|
794
875
|
readonly auto_submit_supported: boolean;
|
|
795
876
|
} & {
|
|
796
877
|
readonly json: {
|
|
@@ -802,6 +883,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
802
883
|
config: any;
|
|
803
884
|
auto_submit: boolean;
|
|
804
885
|
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>>>;
|
|
886
|
+
default_value_func: string;
|
|
805
887
|
};
|
|
806
888
|
readonly visibleInViewsIDSet: Set<string>;
|
|
807
889
|
readonly should_auto_submit: boolean;
|
|
@@ -813,6 +895,7 @@ export declare const FiltersModel: import("mobx-state-tree").IModelType<{
|
|
|
813
895
|
setType(type: DashboardFilterType): void;
|
|
814
896
|
setVisibleInViewsIDs(ids: string[]): void;
|
|
815
897
|
setAutoSubmit(v: boolean): void;
|
|
898
|
+
setDefaultValueFunc(v: string): void;
|
|
816
899
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
|
|
817
900
|
} & {
|
|
818
901
|
replace(current: Array<FilterMetaInstance>): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ContextRecordType } from '../model';
|
|
2
|
+
import { IDashboardConfig } from '..';
|
|
3
|
+
import { DashboardContentDBType, IDashboard } from '../types/dashboard';
|
|
4
|
+
interface IReadOnlyDashboard {
|
|
5
|
+
context: ContextRecordType;
|
|
6
|
+
dashboard: IDashboard;
|
|
7
|
+
content: DashboardContentDBType;
|
|
8
|
+
className?: string;
|
|
9
|
+
config: IDashboardConfig;
|
|
10
|
+
fullScreenPanelID: string;
|
|
11
|
+
setFullScreenPanelID: (v: string) => void;
|
|
12
|
+
onFilterValuesChange?: (filterValues: Record<string, any>) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const ReadOnlyDashboard: (({ context, dashboard, content, className, config, fullScreenPanelID, setFullScreenPanelID, onFilterValuesChange, }: IReadOnlyDashboard) => import('./react/jsx-runtime').JSX.Element) & {
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IDashboardConfig } from '..';
|
|
4
|
-
interface IReadOnlyDashboard {
|
|
5
|
-
context: ContextRecordType;
|
|
6
|
-
dashboard: IDashboard;
|
|
7
|
-
content: DashboardContentDBType;
|
|
8
|
-
className?: string;
|
|
9
|
-
config: IDashboardConfig;
|
|
10
|
-
fullScreenPanelID: string;
|
|
11
|
-
setFullScreenPanelID: (v: string) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const ReadOnlyDashboard: (({ context, dashboard, content, className, config, fullScreenPanelID, setFullScreenPanelID, }: IReadOnlyDashboard) => import('./react/jsx-runtime').JSX.Element) & {
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
1
|
+
export * from './dashboard-render';
|
|
2
|
+
export * from './model';
|