@devtable/dashboard 11.8.0 → 11.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/components/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +2 -95
- package/dist/components/plugins/plugin-context.d.ts +2 -95
- package/dist/components/plugins/viz-manager/components.d.ts +6 -6
- package/dist/components/view/layout/edit-layout.d.ts +9 -0
- package/dist/components/view/layout/index.d.ts +2 -2
- package/dist/components/view/layout/render-layout.d.ts +9 -0
- package/dist/contexts/panel-context.d.ts +4 -189
- package/dist/dashboard-editor/dashboard-editor.d.ts +1 -0
- package/dist/dashboard-editor/model/filters/index.d.ts +1 -0
- package/dist/dashboard-editor/model/layouts/index.d.ts +1 -0
- package/dist/dashboard-editor/model/layouts/layouts.d.ts +1159 -0
- package/dist/dashboard-editor/model/panels/panel.d.ts +1 -38
- package/dist/dashboard-editor/model/views/index.d.ts +3 -0
- package/dist/dashboard-editor/model/views/view.d.ts +1 -0
- package/dist/dashboard-editor/ui/header/breakpoint-switcher/edit-breakpoints.d.ts +5 -0
- package/dist/dashboard-editor/ui/header/breakpoint-switcher/index.d.ts +3 -0
- package/dist/dashboard-render/dashboard-render.d.ts +2 -1
- package/dist/dashboard.es.js +7052 -6539
- package/dist/dashboard.umd.js +95 -95
- package/dist/model/meta-model/dashboard/content/index.d.ts +1 -0
- package/dist/model/meta-model/dashboard/content/initial-content.d.ts +1 -1
- package/dist/model/meta-model/dashboard/content/layout/index.d.ts +2 -0
- package/dist/model/meta-model/dashboard/content/{panel/layout.d.ts → layout/layout-item.d.ts} +20 -1
- package/dist/model/meta-model/dashboard/content/layout/layout-set.d.ts +192 -0
- package/dist/model/meta-model/dashboard/content/panel/index.d.ts +0 -1
- package/dist/model/meta-model/dashboard/content/panel/panel.d.ts +0 -30
- package/dist/model/render-model/dashboard/content/filters/filters.d.ts +3 -2
- package/dist/model/render-model/dashboard/content/index.d.ts +1 -0
- package/dist/model/render-model/dashboard/content/layouts/index.d.ts +1 -0
- package/dist/model/render-model/dashboard/content/layouts/layouts.d.ts +1141 -0
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +1 -38
- package/dist/stats.html +1 -1
- package/dist/types/dashboard.d.ts +2 -9
- package/package.json +1 -1
- package/dist/components/view/layout/main-layout.d.ts +0 -9
- package/dist/components/view/layout/read-only-layout.d.ts +0 -8
package/dist/model/meta-model/dashboard/content/{panel/layout.d.ts → layout/layout-item.d.ts}
RENAMED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { Instance } from 'mobx-state-tree';
|
|
1
2
|
import { Layout } from 'react-grid-layout';
|
|
2
|
-
export declare const
|
|
3
|
+
export declare const LayoutItemMeta: import("mobx-state-tree").IModelType<{
|
|
4
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
+
panelID: import("mobx-state-tree").ISimpleType<string>;
|
|
3
6
|
x: import("mobx-state-tree").ISimpleType<number>;
|
|
4
7
|
y: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<number>>;
|
|
5
8
|
w: import("mobx-state-tree").ISimpleType<number>;
|
|
@@ -12,11 +15,27 @@ export declare const PanelLayoutMeta: import("mobx-state-tree").IModelType<{
|
|
|
12
15
|
w: number;
|
|
13
16
|
x: number;
|
|
14
17
|
y: number;
|
|
18
|
+
id: string;
|
|
15
19
|
moved: boolean;
|
|
16
20
|
static: boolean;
|
|
21
|
+
panelID: string;
|
|
17
22
|
};
|
|
23
|
+
readonly contentModel: any;
|
|
24
|
+
readonly panel: any;
|
|
25
|
+
readonly layoutProperies: Layout;
|
|
18
26
|
} & {
|
|
19
27
|
set(layout: Omit<Layout, 'i'>): void;
|
|
20
28
|
setWidth(w: number): void;
|
|
21
29
|
setHeight(h: number): void;
|
|
22
30
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
31
|
+
export type LayoutItemMetaInstance = Instance<typeof LayoutItemMeta>;
|
|
32
|
+
export type LayoutItem = {
|
|
33
|
+
id: string;
|
|
34
|
+
panelID: string;
|
|
35
|
+
x: number;
|
|
36
|
+
y: number | null;
|
|
37
|
+
w: number;
|
|
38
|
+
h: number;
|
|
39
|
+
moved?: boolean;
|
|
40
|
+
static?: boolean;
|
|
41
|
+
};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { Instance, SnapshotIn, SnapshotOut } from 'mobx-state-tree';
|
|
2
|
+
import { LayoutItem } from './layout-item';
|
|
3
|
+
import { Layout } from 'react-grid-layout';
|
|
4
|
+
export type LayoutSetInfo = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
breakpoint: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const LayoutSetMeta: import("mobx-state-tree").IModelType<{
|
|
10
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
11
|
+
name: import("mobx-state-tree").ISimpleType<string>;
|
|
12
|
+
breakpoint: import("mobx-state-tree").ISimpleType<number>;
|
|
13
|
+
list: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
14
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
15
|
+
panelID: import("mobx-state-tree").ISimpleType<string>;
|
|
16
|
+
x: import("mobx-state-tree").ISimpleType<number>;
|
|
17
|
+
y: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<number>>;
|
|
18
|
+
w: import("mobx-state-tree").ISimpleType<number>;
|
|
19
|
+
h: import("mobx-state-tree").ISimpleType<number>;
|
|
20
|
+
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
21
|
+
static: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
22
|
+
}, {
|
|
23
|
+
readonly json: {
|
|
24
|
+
h: number;
|
|
25
|
+
w: number;
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
id: string;
|
|
29
|
+
moved: boolean;
|
|
30
|
+
static: boolean;
|
|
31
|
+
panelID: string;
|
|
32
|
+
};
|
|
33
|
+
readonly contentModel: any;
|
|
34
|
+
readonly panel: any;
|
|
35
|
+
readonly layoutProperies: Layout;
|
|
36
|
+
} & {
|
|
37
|
+
set(layout: Omit<Layout, "i">): void;
|
|
38
|
+
setWidth(w: number): void;
|
|
39
|
+
setHeight(h: number): void;
|
|
40
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
41
|
+
}, {
|
|
42
|
+
readonly json: {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
breakpoint: number;
|
|
46
|
+
list: {
|
|
47
|
+
h: number;
|
|
48
|
+
w: number;
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
id: string;
|
|
52
|
+
moved: boolean;
|
|
53
|
+
static: boolean;
|
|
54
|
+
panelID: string;
|
|
55
|
+
}[];
|
|
56
|
+
};
|
|
57
|
+
jsonByPanelIDSet(panelIDSet: Set<string>): {
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
breakpoint: number;
|
|
61
|
+
list: {
|
|
62
|
+
h: number;
|
|
63
|
+
w: number;
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
id: string;
|
|
67
|
+
moved: boolean;
|
|
68
|
+
static: boolean;
|
|
69
|
+
panelID: string;
|
|
70
|
+
}[];
|
|
71
|
+
};
|
|
72
|
+
findByID(id: string): ({
|
|
73
|
+
id: string;
|
|
74
|
+
panelID: string;
|
|
75
|
+
x: number;
|
|
76
|
+
y: number | null;
|
|
77
|
+
w: number;
|
|
78
|
+
h: number;
|
|
79
|
+
moved: boolean;
|
|
80
|
+
static: boolean;
|
|
81
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
82
|
+
readonly json: {
|
|
83
|
+
h: number;
|
|
84
|
+
w: number;
|
|
85
|
+
x: number;
|
|
86
|
+
y: number;
|
|
87
|
+
id: string;
|
|
88
|
+
moved: boolean;
|
|
89
|
+
static: boolean;
|
|
90
|
+
panelID: string;
|
|
91
|
+
};
|
|
92
|
+
readonly contentModel: any;
|
|
93
|
+
readonly panel: any;
|
|
94
|
+
readonly layoutProperies: Layout;
|
|
95
|
+
} & {
|
|
96
|
+
set(layout: Omit<Layout, "i">): void;
|
|
97
|
+
setWidth(w: number): void;
|
|
98
|
+
setHeight(h: number): void;
|
|
99
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
100
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
101
|
+
panelID: import("mobx-state-tree").ISimpleType<string>;
|
|
102
|
+
x: import("mobx-state-tree").ISimpleType<number>;
|
|
103
|
+
y: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<number>>;
|
|
104
|
+
w: import("mobx-state-tree").ISimpleType<number>;
|
|
105
|
+
h: import("mobx-state-tree").ISimpleType<number>;
|
|
106
|
+
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
107
|
+
static: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
108
|
+
}, {
|
|
109
|
+
readonly json: {
|
|
110
|
+
h: number;
|
|
111
|
+
w: number;
|
|
112
|
+
x: number;
|
|
113
|
+
y: number;
|
|
114
|
+
id: string;
|
|
115
|
+
moved: boolean;
|
|
116
|
+
static: boolean;
|
|
117
|
+
panelID: string;
|
|
118
|
+
};
|
|
119
|
+
readonly contentModel: any;
|
|
120
|
+
readonly panel: any;
|
|
121
|
+
readonly layoutProperies: Layout;
|
|
122
|
+
} & {
|
|
123
|
+
set(layout: Omit<Layout, "i">): void;
|
|
124
|
+
setWidth(w: number): void;
|
|
125
|
+
setHeight(h: number): void;
|
|
126
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
127
|
+
findByPanelID(panelID: string): ({
|
|
128
|
+
id: string;
|
|
129
|
+
panelID: string;
|
|
130
|
+
x: number;
|
|
131
|
+
y: number | null;
|
|
132
|
+
w: number;
|
|
133
|
+
h: number;
|
|
134
|
+
moved: boolean;
|
|
135
|
+
static: boolean;
|
|
136
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
137
|
+
readonly json: {
|
|
138
|
+
h: number;
|
|
139
|
+
w: number;
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
id: string;
|
|
143
|
+
moved: boolean;
|
|
144
|
+
static: boolean;
|
|
145
|
+
panelID: string;
|
|
146
|
+
};
|
|
147
|
+
readonly contentModel: any;
|
|
148
|
+
readonly panel: any;
|
|
149
|
+
readonly layoutProperies: Layout;
|
|
150
|
+
} & {
|
|
151
|
+
set(layout: Omit<Layout, "i">): void;
|
|
152
|
+
setWidth(w: number): void;
|
|
153
|
+
setHeight(h: number): void;
|
|
154
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
155
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
156
|
+
panelID: import("mobx-state-tree").ISimpleType<string>;
|
|
157
|
+
x: import("mobx-state-tree").ISimpleType<number>;
|
|
158
|
+
y: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<number>>;
|
|
159
|
+
w: import("mobx-state-tree").ISimpleType<number>;
|
|
160
|
+
h: import("mobx-state-tree").ISimpleType<number>;
|
|
161
|
+
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
162
|
+
static: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
163
|
+
}, {
|
|
164
|
+
readonly json: {
|
|
165
|
+
h: number;
|
|
166
|
+
w: number;
|
|
167
|
+
x: number;
|
|
168
|
+
y: number;
|
|
169
|
+
id: string;
|
|
170
|
+
moved: boolean;
|
|
171
|
+
static: boolean;
|
|
172
|
+
panelID: string;
|
|
173
|
+
};
|
|
174
|
+
readonly contentModel: any;
|
|
175
|
+
readonly panel: any;
|
|
176
|
+
readonly layoutProperies: Layout;
|
|
177
|
+
} & {
|
|
178
|
+
set(layout: Omit<Layout, "i">): void;
|
|
179
|
+
setWidth(w: number): void;
|
|
180
|
+
setHeight(h: number): void;
|
|
181
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
182
|
+
} & {
|
|
183
|
+
setName(v: string): void;
|
|
184
|
+
setBreakpoint(v: number): void;
|
|
185
|
+
addLayout(layoutItem: LayoutItem): void;
|
|
186
|
+
addNewLayout(panelID: string): void;
|
|
187
|
+
removeByPanelID(panelID: string): void;
|
|
188
|
+
updateLayoutItem(item: Layout): void;
|
|
189
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
190
|
+
export type LayoutSetMetaInstance = Instance<typeof LayoutSetMeta>;
|
|
191
|
+
export type LayoutSetMetaSnapshotIn = SnapshotIn<LayoutSetMetaInstance>;
|
|
192
|
+
export type LayoutSetMetaSnapshotOut = SnapshotOut<LayoutSetMetaInstance>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react-grid-layout" />
|
|
2
1
|
import { VariableMetaInstance, VariableMetaSnapshotIn } from './variable';
|
|
3
2
|
export declare const PanelMeta: import("mobx-state-tree").IModelType<{
|
|
4
3
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -13,27 +12,6 @@ export declare const PanelMeta: import("mobx-state-tree").IModelType<{
|
|
|
13
12
|
setShow(v: boolean): void;
|
|
14
13
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
15
14
|
description: import("mobx-state-tree").ISimpleType<string>;
|
|
16
|
-
layout: import("mobx-state-tree").IModelType<{
|
|
17
|
-
x: import("mobx-state-tree").ISimpleType<number>;
|
|
18
|
-
y: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<number>>;
|
|
19
|
-
w: import("mobx-state-tree").ISimpleType<number>;
|
|
20
|
-
h: import("mobx-state-tree").ISimpleType<number>;
|
|
21
|
-
moved: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
22
|
-
static: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
23
|
-
}, {
|
|
24
|
-
readonly json: {
|
|
25
|
-
h: number;
|
|
26
|
-
w: number;
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
moved: boolean;
|
|
30
|
-
static: boolean;
|
|
31
|
-
};
|
|
32
|
-
} & {
|
|
33
|
-
set(layout: Omit<import("react-grid-layout").Layout, "i">): void;
|
|
34
|
-
setWidth(w: number): void;
|
|
35
|
-
setHeight(h: number): void;
|
|
36
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
37
15
|
queryIDs: import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>;
|
|
38
16
|
viz: import("mobx-state-tree").IModelType<{
|
|
39
17
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -446,14 +424,6 @@ export declare const PanelMeta: import("mobx-state-tree").IModelType<{
|
|
|
446
424
|
title: {
|
|
447
425
|
show: boolean;
|
|
448
426
|
};
|
|
449
|
-
layout: {
|
|
450
|
-
h: number;
|
|
451
|
-
w: number;
|
|
452
|
-
x: number;
|
|
453
|
-
y: number;
|
|
454
|
-
moved: boolean;
|
|
455
|
-
static: boolean;
|
|
456
|
-
};
|
|
457
427
|
queryIDs: string[];
|
|
458
428
|
variables: {
|
|
459
429
|
name: string;
|
|
@@ -715,6 +715,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
715
715
|
getSelectOption(id: string): any;
|
|
716
716
|
} & {
|
|
717
717
|
setValues(values: Record<string, $TSFixMe>): void;
|
|
718
|
+
patchValues(values: Record<string, any>): void;
|
|
718
719
|
setValueByKey(key: string, value: $TSFixMe): void;
|
|
719
720
|
getValueByKey(key: string): any;
|
|
720
721
|
getSchema(ids: string[], raw?: boolean): {
|
|
@@ -734,7 +735,7 @@ export declare const FiltersRenderModel: import("mobx-state-tree").IModelType<{
|
|
|
734
735
|
downloadSchema(ids: string[]): void;
|
|
735
736
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
736
737
|
export type FiltersRenderModelInstance = Instance<typeof FiltersRenderModel>;
|
|
737
|
-
export declare function getInitialFiltersConfig(filters: FilterMetaSnapshotOut[], context: ContextRecordType, mock_context: ContextRecordType): {
|
|
738
|
+
export declare function getInitialFiltersConfig(filters: FilterMetaSnapshotOut[], context: ContextRecordType, mock_context: ContextRecordType, filterValues: Record<string, any>): {
|
|
738
739
|
current: import("mobx-state-tree").ModelSnapshotType<{
|
|
739
740
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
740
741
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -809,5 +810,5 @@ export declare function getInitialFiltersConfig(filters: FilterMetaSnapshotOut[]
|
|
|
809
810
|
required: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
810
811
|
}>, any>;
|
|
811
812
|
}>[];
|
|
812
|
-
values: import('../../../../../model').FilterValuesType
|
|
813
|
+
values: NonNullable<import('../../../../../model').FilterValuesType & Record<string, any>>;
|
|
813
814
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './layouts';
|