@devtable/dashboard 0.0.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/api-caller/index.d.ts +1 -0
- package/dist/api-caller/request.d.ts +2 -0
- package/dist/contexts/context-info-context.d.ts +5 -0
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts/layout-state-context.d.ts +9 -0
- package/dist/contexts/panel-context.d.ts +16 -0
- package/dist/dashboard.es.js +82191 -0
- package/dist/dashboard.umd.js +4338 -0
- package/dist/index.d.ts +4 -0
- package/dist/layout/index.d.ts +16 -0
- package/dist/layout/toggle-mode.d.ts +8 -0
- package/dist/panel/index.d.ts +12 -0
- package/dist/panel/settings/common/mantine-color.d.ts +7 -0
- package/dist/panel/settings/common/mantine-size.d.ts +8 -0
- package/dist/panel/settings/common/mantine-weight.d.ts +8 -0
- package/dist/panel/settings/context-info/index.d.ts +5 -0
- package/dist/panel/settings/index.d.ts +5 -0
- package/dist/panel/settings/query-editor/index.d.ts +2 -0
- package/dist/panel/settings/query-editor/sql-query-editor/index.d.ts +5 -0
- package/dist/panel/settings/query-result/index.d.ts +5 -0
- package/dist/panel/settings/viz-config/description.d.ts +2 -0
- package/dist/panel/settings/viz-config/index.d.ts +5 -0
- package/dist/panel/settings/viz-config/title.d.ts +2 -0
- package/dist/panel/settings/viz-config/viz-conf.d.ts +2 -0
- package/dist/panel/title-bar.d.ts +5 -0
- package/dist/panel/viz/bar-3d/index.d.ts +9 -0
- package/dist/panel/viz/bar-3d/panel.d.ts +3 -0
- package/dist/panel/viz/bar-3d/type.d.ts +4 -0
- package/dist/panel/viz/index.d.ts +9 -0
- package/dist/panel/viz/line-bar/index.d.ts +9 -0
- package/dist/panel/viz/line-bar/panel.d.ts +3 -0
- package/dist/panel/viz/line-bar/type.d.ts +16 -0
- package/dist/panel/viz/sunburst/index.d.ts +9 -0
- package/dist/panel/viz/sunburst/panel.d.ts +3 -0
- package/dist/panel/viz/table/index.d.ts +10 -0
- package/dist/panel/viz/table/panel.d.ts +3 -0
- package/dist/panel/viz/table/type.d.ts +21 -0
- package/dist/panel/viz/table/value-type-selector.d.ts +10 -0
- package/dist/panel/viz/table/value.d.ts +8 -0
- package/dist/panel/viz/text/index.d.ts +9 -0
- package/dist/panel/viz/text/panel.d.ts +3 -0
- package/dist/style.css +1 -0
- package/dist/types/dashboard.d.ts +21 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/viz-panel.d.ts +5 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const queryBySQL: (sql: string, context: Record<string, any>) => () => Promise<any>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type TimeRangeType = [Date | null, Date | null];
|
|
3
|
+
export declare type ContextInfoContextType = Record<string, TimeRangeType | any | any[]>;
|
|
4
|
+
export declare const initialContextInfoContext: {};
|
|
5
|
+
export declare const ContextInfoContext: React.Context<ContextInfoContextType>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DashboardMode } from "../types/dashboard";
|
|
3
|
+
export interface ILayoutStateContext {
|
|
4
|
+
layoutFrozen: boolean;
|
|
5
|
+
freezeLayout: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
+
mode: DashboardMode;
|
|
7
|
+
inEditMode: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const LayoutStateContext: React.Context<ILayoutStateContext>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IVizConfig } from "../types/dashboard";
|
|
3
|
+
export interface IPanelContext {
|
|
4
|
+
data: any[];
|
|
5
|
+
loading: boolean;
|
|
6
|
+
title: string;
|
|
7
|
+
setTitle: React.Dispatch<React.SetStateAction<string>>;
|
|
8
|
+
description: string;
|
|
9
|
+
setDescription: React.Dispatch<React.SetStateAction<string>>;
|
|
10
|
+
sql: string;
|
|
11
|
+
setSQL: React.Dispatch<React.SetStateAction<string>>;
|
|
12
|
+
viz: IVizConfig;
|
|
13
|
+
setViz: React.Dispatch<React.SetStateAction<IVizConfig>>;
|
|
14
|
+
refreshData: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const PanelContext: React.Context<IPanelContext>;
|