@devtable/dashboard 1.16.0 → 1.19.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.
Files changed (37) hide show
  1. package/dist/api-caller/index.d.ts +3 -3
  2. package/dist/contexts/definition-context.d.ts +2 -2
  3. package/dist/contexts/panel-context.d.ts +2 -2
  4. package/dist/dashboard.es.js +463 -332
  5. package/dist/dashboard.umd.js +8 -8
  6. package/dist/definition-editor/data-editor-modal.d.ts +7 -0
  7. package/dist/definition-editor/index.d.ts +1 -2
  8. package/dist/definition-editor/{data-source-editor → query-editor}/context-and-snippets.d.ts +0 -0
  9. package/dist/definition-editor/{data-source-editor → query-editor}/data-preview.d.ts +0 -0
  10. package/dist/definition-editor/query-editor/editor.d.ts +7 -0
  11. package/dist/definition-editor/query-editor/form.d.ts +8 -0
  12. package/dist/definition-editor/query-editor/index.d.ts +5 -0
  13. package/dist/definition-editor/query-editor/preview-sql.d.ts +6 -0
  14. package/dist/definition-editor/query-editor/select-or-add-query.d.ts +7 -0
  15. package/dist/definition-editor/sql-snippet-editor/guide.d.ts +2 -0
  16. package/dist/definition-editor/sql-snippet-editor/index.d.ts +2 -4
  17. package/dist/definition-editor/sql-snippet-editor/preview-snippet.d.ts +6 -0
  18. package/dist/panel/index.d.ts +1 -1
  19. package/dist/panel/settings/common/data-field-selector.d.ts +12 -0
  20. package/dist/panel/settings/pick-query/index.d.ts +5 -0
  21. package/dist/panel/viz/bar-3d/panel.d.ts +2 -2
  22. package/dist/panel/viz/cartesian/panel/index.d.ts +1 -1
  23. package/dist/panel/viz/cartesian/panel/series.d.ts +2 -1
  24. package/dist/panel/viz/pie/panel.d.ts +1 -1
  25. package/dist/panel/viz/stats/panel.d.ts +1 -1
  26. package/dist/panel/viz/sunburst/panel.d.ts +1 -1
  27. package/dist/panel/viz/table/panel.d.ts +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/types/dashboard.d.ts +3 -3
  30. package/dist/types/viz-panel.d.ts +1 -0
  31. package/dist/utils/sql.d.ts +6 -0
  32. package/package.json +1 -1
  33. package/dist/definition-editor/data-source-editor/editor.d.ts +0 -7
  34. package/dist/definition-editor/data-source-editor/form.d.ts +0 -8
  35. package/dist/definition-editor/data-source-editor/index.d.ts +0 -7
  36. package/dist/definition-editor/data-source-editor/select-or-add-data-source.d.ts +0 -7
  37. package/dist/panel/settings/pick-data-source/index.d.ts +0 -5
@@ -0,0 +1,6 @@
1
+ import { ContextInfoContextType } from "../contexts";
2
+ import { IDashboardDefinition } from "../types";
3
+ export declare function explainSQLSnippet(snippet: string, context: ContextInfoContextType): any;
4
+ export declare function formatSQL(sql: string, params: Record<string, any>): any;
5
+ export declare function getSQLParams(context: ContextInfoContextType, definitions: IDashboardDefinition): Record<string, any> & ContextInfoContextType;
6
+ export declare function explainSQL(sql: string, context: ContextInfoContextType, definitions: IDashboardDefinition): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "1.16.0",
3
+ "version": "1.19.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface IDataSourceEditor {
3
- id: string;
4
- setID: React.Dispatch<React.SetStateAction<string>>;
5
- }
6
- export declare function DataSourceEditor({ id, setID }: IDataSourceEditor): JSX.Element | null;
7
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { IDataSource } from "../../types";
3
- interface IDataSourceForm {
4
- value: IDataSource;
5
- onChange: any;
6
- }
7
- export declare function DataSourceForm({ value, onChange }: IDataSourceForm): JSX.Element;
8
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface IEditDataSourcesModal {
3
- opened: boolean;
4
- close: () => void;
5
- }
6
- export declare function EditDataSourcesModal({ opened, close }: IEditDataSourcesModal): JSX.Element;
7
- export {};
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface ISelectOrAddDataSource {
3
- id: string;
4
- setID: React.Dispatch<React.SetStateAction<string>>;
5
- }
6
- export declare function SelectOrAddDataSource({ id, setID }: ISelectOrAddDataSource): JSX.Element;
7
- export {};
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- interface IPickDataSource {
3
- }
4
- export declare function PickDataSource({}: IPickDataSource): JSX.Element;
5
- export {};