@dashboard-designer/ui 0.2.3 → 0.2.4

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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
+ import { Dashboard, VariableValue, Widget, DashboardVariable, DashboardPrintHeader, AuthConfig, User, EmbedTokenRequest, EmbedTokenResponse, ConnectionConfig, ExecuteQueryRequest, QueryResult, ProcedureParameter, DashboardAclEntry, DashboardPermission, DashboardVersionMeta, DashboardVersion, FilterDef, WidgetType } from '@dashboard-designer/core';
2
+ export { AuthConfig, ConnectionConfig, DASHBOARD_FILE_FORMAT, DASHBOARD_FILE_VERSION, Dashboard, DashboardPrintHeader, DashboardPrintSettings, DashboardVariable, FilterDef, VariableValue, Widget, buildDashboardExportFile, cloneDashboardForImport, parseDashboardImport } from '@dashboard-designer/core';
1
3
  import * as React from 'react';
2
4
  import React__default, { ReactNode } from 'react';
3
- import { Dashboard, VariableValue, Widget, DashboardVariable, AuthConfig, User, EmbedTokenRequest, EmbedTokenResponse, ConnectionConfig, ExecuteQueryRequest, QueryResult, ProcedureParameter, DashboardAclEntry, DashboardPermission, DashboardVersionMeta, DashboardVersion, FilterDef, WidgetType } from '@dashboard-designer/core';
4
- export { AuthConfig, ConnectionConfig, DASHBOARD_FILE_FORMAT, DASHBOARD_FILE_VERSION, Dashboard, DashboardVariable, FilterDef, VariableValue, Widget, buildDashboardExportFile, cloneDashboardForImport, parseDashboardImport } from '@dashboard-designer/core';
5
5
  import * as i18next from 'i18next';
6
6
  export { default as i18n } from 'i18next';
7
7
  import * as lucide_react from 'lucide-react';
@@ -64,6 +64,7 @@ interface DashboardVariableProps {
64
64
 
65
65
  interface DashboardDesignerProps extends DashboardVariableProps, ChartDataActionProps, DashboardToolbarProps {
66
66
  dashboard?: Dashboard;
67
+ printHeader?: DashboardPrintHeader;
67
68
  apiBaseUrl: string;
68
69
  auth: AuthConfig;
69
70
  locale?: string;
@@ -73,10 +74,11 @@ interface DashboardDesignerProps extends DashboardVariableProps, ChartDataAction
73
74
  /** When set, shows Edit / Done in the dashboard toolbar. */
74
75
  onToggleEdit?: () => void;
75
76
  }
76
- declare function DashboardDesigner({ dashboard: initial, apiBaseUrl, auth, locale, onChange, onSave, readOnly, onToggleEdit, predefinedVariables, variableValues, variablesReady, resolveVariables, chartDataRowActions, toolbarButtons, hideToolbar, toolbarVisibility, }: DashboardDesignerProps): React__default.JSX.Element;
77
+ declare function DashboardDesigner({ dashboard: initial, printHeader, apiBaseUrl, auth, locale, onChange, onSave, readOnly, onToggleEdit, predefinedVariables, variableValues, variablesReady, resolveVariables, chartDataRowActions, toolbarButtons, hideToolbar, toolbarVisibility, }: DashboardDesignerProps): React__default.JSX.Element;
77
78
 
78
79
  interface DashboardViewerProps extends DashboardVariableProps, ChartDataActionProps, DashboardToolbarProps {
79
80
  dashboard: Dashboard;
81
+ printHeader?: DashboardPrintHeader;
80
82
  apiBaseUrl: string;
81
83
  auth: AuthConfig;
82
84
  locale?: string;
@@ -100,6 +102,13 @@ declare class DashboardApiClient {
100
102
  createEmbedToken(body: EmbedTokenRequest): Promise<EmbedTokenResponse>;
101
103
  listConnections(): Promise<{
102
104
  connections: ConnectionConfig[];
105
+ connectionVariables?: Record<string, string>;
106
+ }>;
107
+ listConnectionSources(): Promise<{
108
+ connections: ConnectionConfig[];
109
+ }>;
110
+ createConnectionVariable(name: string, connectionId: string): Promise<{
111
+ ok: boolean;
103
112
  }>;
104
113
  saveConnection(connection: ConnectionConfig): Promise<{
105
114
  connection: ConnectionConfig;