@devtable/dashboard 6.7.0 → 6.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +3329 -3262
- package/dist/dashboard.umd.js +18 -18
- package/dist/definition-editor/minimal-monaco-editor.d.ts +9 -0
- package/dist/definition-editor/sql-snippet-editor/item-editor.d.ts +11 -0
- package/dist/model/sql-snippets/index.d.ts +27 -0
- package/dist/model/sql-snippets/sql-snippet.d.ts +1 -0
- package/dist/model/sql-snippets/types.d.ts +3 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IMinimalMonacoEditor {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange?: (v: string) => void;
|
|
5
|
+
height?: string;
|
|
6
|
+
defaultLanguage?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const MinimalMonacoEditor: ({ value, onChange, height, defaultLanguage, }: IMinimalMonacoEditor) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SQLSnippetModelInstance } from '~/model';
|
|
3
|
+
interface ISQLSnippetItemEditor {
|
|
4
|
+
item: SQLSnippetModelInstance;
|
|
5
|
+
remove: () => void;
|
|
6
|
+
onKeyChanged: (newKey: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const SQLSnippetItemEditor: (({ item, remove, onKeyChanged }: ISQLSnippetItemEditor) => JSX.Element) & {
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -8,6 +8,7 @@ export declare const SQLSnippetsModel: import("mobx-state-tree").IModelType<{
|
|
|
8
8
|
key: string;
|
|
9
9
|
value: string;
|
|
10
10
|
};
|
|
11
|
+
isADuplicatedKey(newKey: string): boolean;
|
|
11
12
|
} & {
|
|
12
13
|
setKey(key: string): void;
|
|
13
14
|
setValue(value: string): void;
|
|
@@ -18,6 +19,32 @@ export declare const SQLSnippetsModel: import("mobx-state-tree").IModelType<{
|
|
|
18
19
|
value: string;
|
|
19
20
|
}[];
|
|
20
21
|
readonly record: Record<string, string>;
|
|
22
|
+
readonly firstKey: string | undefined;
|
|
23
|
+
findByKey(key: string): ({
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
27
|
+
readonly json: {
|
|
28
|
+
key: string;
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
isADuplicatedKey(newKey: string): boolean;
|
|
32
|
+
} & {
|
|
33
|
+
setKey(key: string): void;
|
|
34
|
+
setValue(value: string): void;
|
|
35
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
36
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
37
|
+
value: import("mobx-state-tree").ISimpleType<string>;
|
|
38
|
+
}, {
|
|
39
|
+
readonly json: {
|
|
40
|
+
key: string;
|
|
41
|
+
value: string;
|
|
42
|
+
};
|
|
43
|
+
isADuplicatedKey(newKey: string): boolean;
|
|
44
|
+
} & {
|
|
45
|
+
setKey(key: string): void;
|
|
46
|
+
setValue(value: string): void;
|
|
47
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
21
48
|
} & {
|
|
22
49
|
replace(current: Array<SQLSnippetModelInstance>): void;
|
|
23
50
|
append(item: SQLSnippetModelInstance): void;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.filter-settings-tabs{width:100%;height:100%}.filter-settings-tabs .mantine-Tabs-panel{height:calc(100% - 25px)}.filter-settings-tabs .mantine-Tabs-tabsListWrapper{flex:0}.filter-settings-tabs .mantine-Tabs-body{flex:1;overflow:scroll}.panel-root{height:100%;width:100%;max-width:100%;background:transparent;border-radius:4px;position:relative}.panel-settings-tabs{width:100%;height:100%}.panel-settings-tabs .mantine-Tabs-panel{height:calc(100% - 25px)}.panel-settings-tabs .mantine-Tabs-tabsListWrapper{flex:0}.panel-settings-tabs .mantine-Tabs-body{flex:1;overflow:scroll}.viz-root{width:100%;overflow:scroll;flex-grow:1;background-color:#fff}.panel-dropdown-target{text-align:center;transition:background-color .3s ease}.panel-dropdown-target:hover{cursor:pointer;background-color:#6464640d}.react-grid-item{padding:0}.remove-panel{position:absolute;right:2px;top:0;cursor:pointer}.code-textarea textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.dashboard-root{overflow:scroll;padding:0 10px 10px;height:100%}.dashboard-sticky-area{z-index:100;background:white;margin:0;padding:0 10px}*::-webkit-scrollbar{width:0!important;height:0!important}*{overflow:-moz-scrollbars-none;-ms-overflow-style:none}
|
|
1
|
+
.filter-settings-tabs{width:100%;height:100%}.filter-settings-tabs .mantine-Tabs-panel{height:calc(100% - 25px)}.filter-settings-tabs .mantine-Tabs-tabsListWrapper{flex:0}.filter-settings-tabs .mantine-Tabs-body{flex:1;overflow:scroll}.panel-root{height:100%;width:100%;max-width:100%;background:transparent;border-radius:4px;position:relative}.panel-settings-tabs{width:100%;height:100%}.panel-settings-tabs .mantine-Tabs-panel{height:calc(100% - 25px)}.panel-settings-tabs .mantine-Tabs-tabsListWrapper{flex:0}.panel-settings-tabs .mantine-Tabs-body{flex:1;overflow:scroll}.viz-root{width:100%;overflow:scroll;flex-grow:1;background-color:#fff}.panel-dropdown-target{text-align:center;transition:background-color .3s ease}.panel-dropdown-target:hover{cursor:pointer;background-color:#6464640d}.react-grid-item{padding:0}.remove-panel{position:absolute;right:2px;top:0;cursor:pointer}.code-textarea textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.dashboard-root{overflow:scroll;padding:0 10px 10px;height:100%}.dashboard-sticky-area{z-index:100;background:white;margin:0;padding:0 10px}*::-webkit-scrollbar{width:0!important;height:0!important}*{overflow:-moz-scrollbars-none;-ms-overflow-style:none}.minimal-monaco-editor{border-radius:4px;overflow:hidden;background-color:#1e1e1e;padding-top:14px}
|