@devtable/dashboard 13.34.1 → 13.35.1
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-editor/dropdown-menu/query-menu-items.d.ts +4 -1
- package/dist/dashboard-editor/model/editor/index.d.ts +6 -1
- package/dist/dashboard.es.js +5119 -5089
- package/dist/dashboard.umd.js +70 -70
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/zh.d.ts +1 -0
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { ViewMetaInstance } from '../../../../model';
|
|
2
|
+
export declare const QueryMenuItems: (({ view }: {
|
|
3
|
+
view: ViewMetaInstance;
|
|
4
|
+
}) => import('./react/jsx-runtime').JSX.Element | null) & {
|
|
2
5
|
displayName: string;
|
|
3
6
|
};
|
|
@@ -18,11 +18,15 @@ export type NavLinkType = {
|
|
|
18
18
|
children?: NavOptionType[];
|
|
19
19
|
};
|
|
20
20
|
export type NavOptionType = NavLinkType | NavActionType;
|
|
21
|
-
export type
|
|
21
|
+
export type PanelTab = 'Data' | 'Panel' | 'Variables' | 'Visualization' | 'Interactions';
|
|
22
|
+
export type PanelPathType = ['_VIEWS_', string, '_PANELS_', string, '_TABS_', PanelTab];
|
|
23
|
+
export type ValidEditorPathType = ['_QUERY_VARS_'] | ['_MOCK_CONTEXT_'] | ['_FILTERS_'] | ['_FILTERS_', string] | ['_SQL_SNIPPETS_'] | ['_SQL_SNIPPETS_', string] | ['_QUERIES_'] | ['_QUERIES_', string] | ['_VIEWS_', string] | PanelPathType | [];
|
|
22
24
|
export declare const EditorModel: import("mobx-state-tree").IModelType<{
|
|
23
25
|
path: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<ValidEditorPathType, ValidEditorPathType, ValidEditorPathType>, [undefined]>;
|
|
24
26
|
settings_open: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
25
27
|
}, {
|
|
28
|
+
readonly isPanelPath: boolean;
|
|
29
|
+
readonly panelTab: PanelTab | null;
|
|
26
30
|
readonly navOptions: NavOptionType[];
|
|
27
31
|
isOptionActive(path: ValidEditorPathType, option: NavOptionType): boolean;
|
|
28
32
|
isOptionOpened(option: NavOptionType): boolean;
|
|
@@ -30,6 +34,7 @@ export declare const EditorModel: import("mobx-state-tree").IModelType<{
|
|
|
30
34
|
setPath(v: ValidEditorPathType): void;
|
|
31
35
|
setSettingsOpen(v: boolean): void;
|
|
32
36
|
} & {
|
|
37
|
+
setPanelTab(tab: PanelTab | null): void;
|
|
33
38
|
open(path: ValidEditorPathType): void;
|
|
34
39
|
close(): void;
|
|
35
40
|
navigate(o: NavOptionType): void;
|