@devtable/dashboard 2.3.0 → 2.6.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/api-caller/index.d.ts +14 -8
- package/dist/api-caller/types.d.ts +1 -1
- package/dist/contexts/dashboard-action-context.d.ts +1 -1
- package/dist/contexts/index.d.ts +1 -3
- package/dist/contexts/layout-state-context.d.ts +2 -2
- package/dist/contexts/model-context.d.ts +24165 -0
- package/dist/contexts/panel-context.d.ts +2 -3
- package/dist/dashboard.es.js +8102 -4305
- package/dist/dashboard.umd.js +41 -5
- package/dist/definition-editor/data-editor-modal.d.ts +2 -2
- package/dist/definition-editor/global-variables-guide.d.ts +3 -3
- package/dist/definition-editor/query-editor/data-preview.d.ts +3 -3
- package/dist/definition-editor/query-editor/editor.d.ts +2 -2
- package/dist/definition-editor/query-editor/form.d.ts +4 -5
- package/dist/definition-editor/query-editor/index.d.ts +2 -2
- package/dist/definition-editor/query-editor/select-or-add-query.d.ts +2 -2
- package/dist/definition-editor/sql-snippet-editor/editor.d.ts +2 -2
- package/dist/filter/filter-checkbox/editor.d.ts +3 -5
- package/dist/filter/filter-checkbox/render.d.ts +3 -2
- package/dist/filter/filter-date-range/editor.d.ts +3 -6
- package/dist/filter/filter-date-range/render.d.ts +3 -2
- package/dist/filter/filter-multi-select/editor.d.ts +3 -7
- package/dist/filter/filter-multi-select/render.d.ts +4 -3
- package/dist/filter/filter-query-field/index.d.ts +5 -5
- package/dist/filter/filter-query-field/select-data-source.d.ts +5 -5
- package/dist/filter/filter-query-field/test-query.d.ts +7 -0
- package/dist/filter/filter-select/editor.d.ts +3 -7
- package/dist/filter/filter-select/render.d.ts +3 -2
- package/dist/filter/filter-settings/filter-setting.d.ts +4 -7
- package/dist/filter/filter-settings/filter-settings.d.ts +2 -5
- package/dist/filter/filter-settings/index.d.ts +2 -5
- package/dist/filter/filter-settings/preview-filter.d.ts +4 -8
- package/dist/filter/filter-text-input/editor.d.ts +3 -6
- package/dist/filter/filter-text-input/render.d.ts +3 -2
- package/dist/filter/filter.d.ts +3 -3
- package/dist/filter/index.d.ts +2 -6
- package/dist/index.d.ts +1 -0
- package/dist/layout/index.d.ts +3 -3
- package/dist/layout/read-only.d.ts +3 -3
- package/dist/main/actions.d.ts +3 -5
- package/dist/main/full-screen-panel.d.ts +3 -3
- package/dist/main/main.d.ts +5 -5
- package/dist/main/read-only.d.ts +4 -4
- package/dist/main/toggle-mode.d.ts +2 -2
- package/dist/main/use-panel-full-screen.d.ts +1 -1
- package/dist/main/use-sticky-area-style.d.ts +1 -0
- package/dist/model/context.d.ts +11 -0
- package/dist/model/dashboard.d.ts +15998 -0
- package/dist/model/filters/filter/checkbox.d.ts +16 -0
- package/dist/model/filters/filter/common.d.ts +14 -0
- package/dist/model/filters/filter/date-range.d.ts +28 -0
- package/dist/model/filters/filter/index.d.ts +172 -0
- package/dist/model/filters/filter/multi-select.d.ts +81 -0
- package/dist/model/filters/filter/select.d.ts +95 -0
- package/dist/model/filters/filter/text-input.d.ts +22 -0
- package/dist/model/filters/index.d.ts +3542 -0
- package/dist/model/index.d.ts +5 -0
- package/dist/model/queries/index.d.ts +116 -0
- package/dist/model/queries/mute-query.d.ts +17 -0
- package/dist/model/queries/query.d.ts +31 -0
- package/dist/model/queries/types.d.ts +5 -0
- package/dist/model/sql-snippets/index.d.ts +26 -0
- package/dist/model/sql-snippets/sql-snippet.d.ts +9 -0
- package/dist/panel/error-boundary.d.ts +1 -1
- package/dist/panel/index.d.ts +2 -2
- package/dist/panel/settings/common/aggregation-selector.d.ts +2 -2
- package/dist/panel/settings/common/color-array-input.d.ts +1 -1
- package/dist/panel/settings/common/data-field-selector.d.ts +2 -2
- package/dist/panel/settings/common/mantine-color.d.ts +1 -1
- package/dist/panel/settings/common/mantine-font-weight.d.ts +1 -1
- package/dist/panel/settings/common/numbro-format-selector.d.ts +1 -1
- package/dist/panel/settings/common/text-array-input.d.ts +1 -1
- package/dist/panel/settings/index.d.ts +2 -2
- package/dist/panel/settings/pick-query/index.d.ts +2 -2
- package/dist/panel/title-bar.d.ts +2 -2
- package/dist/panel/viz/bar-3d/panel.d.ts +1 -1
- package/dist/panel/viz/cartesian/panel/index.d.ts +1 -1
- package/dist/panel/viz/cartesian/panel/regressions/index.d.ts +2 -2
- package/dist/panel/viz/cartesian/panel/regressions/regression-item.d.ts +2 -2
- package/dist/panel/viz/cartesian/panel/series/fields.bar.d.ts +3 -3
- package/dist/panel/viz/cartesian/panel/series/index.d.ts +2 -2
- package/dist/panel/viz/cartesian/panel/series/series-item.d.ts +2 -2
- package/dist/panel/viz/cartesian/panel/stats/index.d.ts +2 -2
- package/dist/panel/viz/cartesian/panel/stats/variable.d.ts +2 -2
- package/dist/panel/viz/cartesian/panel/y-axes.d.ts +2 -2
- package/dist/panel/viz/cartesian/type.d.ts +3 -3
- package/dist/panel/viz/index.d.ts +3 -3
- package/dist/panel/viz/pie/panel.d.ts +1 -1
- package/dist/panel/viz/rich-text/panel.d.ts +1 -1
- package/dist/panel/viz/rich-text/type.d.ts +1 -1
- package/dist/panel/viz/stats/panel/index.d.ts +3 -3
- package/dist/panel/viz/stats/panel/variable.d.ts +2 -2
- package/dist/panel/viz/stats/panel/variables.d.ts +2 -2
- package/dist/panel/viz/stats/types.d.ts +1 -1
- package/dist/panel/viz/stats/update/index.d.ts +2 -2
- package/dist/panel/viz/sunburst/panel.d.ts +1 -1
- package/dist/panel/viz/table/index.d.ts +1 -1
- package/dist/panel/viz/table/panel.d.ts +1 -1
- package/dist/panel/viz/table/value-type-selector.d.ts +1 -1
- package/dist/panel/viz/table/value.d.ts +1 -1
- package/dist/plugins/json-plugin-storage.d.ts +8 -0
- package/dist/plugins/message-channels.d.ts +8 -0
- package/dist/plugins/plugin-context.d.ts +12 -0
- package/dist/plugins/plugin-manager.d.ts +18 -0
- package/dist/plugins/viz-manager/components.d.ts +23 -0
- package/dist/plugins/viz-manager/impl.d.ts +10 -0
- package/dist/plugins/viz-manager/index.d.ts +3 -0
- package/dist/plugins/viz-manager/types.d.ts +12 -0
- package/dist/style.css +1 -1
- package/dist/types/dashboard.d.ts +6 -14
- package/dist/types/filter.d.ts +6 -38
- package/dist/types/plugin/index.d.ts +97 -0
- package/dist/types/viz-panel.d.ts +1 -1
- package/dist/utils/download.d.ts +6 -0
- package/dist/utils/sql.d.ts +7 -6
- package/dist/utils/template/editor.d.ts +3 -3
- package/dist/utils/template/render.d.ts +1 -1
- package/dist/utils/template/types.d.ts +2 -2
- package/package.json +22 -4
- package/dist/contexts/context-info-context.d.ts +0 -5
- package/dist/contexts/definition-context.d.ts +0 -7
- package/dist/contexts/filter-values-context.d.ts +0 -4
- package/dist/filter/filter-settings/types.d.ts +0 -4
- package/dist/main/use-filters.d.ts +0 -8
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { FilterValuesType } from '../model';
|
|
2
|
+
import { ContextInfoType } from '../model/context';
|
|
3
|
+
import { DataSourceType } from '../model/queries/types';
|
|
4
|
+
import { SQLSnippetModelInstance } from '../model/sql-snippets';
|
|
5
|
+
import { IDataSource } from './types';
|
|
4
6
|
interface IQueryByStaticSQL {
|
|
5
7
|
type: 'postgresql';
|
|
6
8
|
key: string;
|
|
@@ -8,13 +10,17 @@ interface IQueryByStaticSQL {
|
|
|
8
10
|
}
|
|
9
11
|
export declare const queryByStaticSQL: ({ type, key, sql }: IQueryByStaticSQL) => () => Promise<any>;
|
|
10
12
|
interface IQueryBySQL {
|
|
11
|
-
context:
|
|
12
|
-
|
|
13
|
+
context: ContextInfoType;
|
|
14
|
+
sqlSnippets: SQLSnippetModelInstance[];
|
|
13
15
|
title: string;
|
|
14
|
-
query
|
|
15
|
-
|
|
16
|
+
query: {
|
|
17
|
+
type: DataSourceType;
|
|
18
|
+
key: string;
|
|
19
|
+
sql: string;
|
|
20
|
+
};
|
|
21
|
+
filterValues: FilterValuesType;
|
|
16
22
|
}
|
|
17
|
-
export declare
|
|
23
|
+
export declare function queryBySQL({ context, sqlSnippets, title, query, filterValues }: IQueryBySQL): Promise<any>;
|
|
18
24
|
export declare type TQuerySources = Record<string, string[]>;
|
|
19
25
|
export declare function listDataSources(): Promise<IDataSource[]>;
|
|
20
26
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { DataSourceType } from '../model/queries/types';
|
|
1
2
|
export declare type PaginationResponse<T> = {
|
|
2
3
|
total: number;
|
|
3
4
|
offset: number;
|
|
4
5
|
data: T[];
|
|
5
6
|
};
|
|
6
|
-
export declare type DataSourceType = 'postgresql' | 'mysql' | 'http';
|
|
7
7
|
export interface IDataSource {
|
|
8
8
|
id: string;
|
|
9
9
|
type: DataSourceType;
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { DashboardMode } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DashboardMode } from '../types/dashboard';
|
|
3
3
|
export interface ILayoutStateContext {
|
|
4
4
|
layoutFrozen: boolean;
|
|
5
5
|
freezeLayout: React.Dispatch<React.SetStateAction<boolean>>;
|