@dashboard-designer/ui 0.2.2 → 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 +15 -4
- package/dist/index.js +2243 -1479
- package/dist/styles.css +162 -145
- package/package.json +2 -2
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;
|
|
@@ -220,6 +229,8 @@ interface ChartRendererProps {
|
|
|
220
229
|
declare function ChartRenderer({ widget, data, locale, currency, loading, onDrillDown, onDataClick, listboxSelection, onListboxSelectionChange, chartColors, }: ChartRendererProps): React__default.JSX.Element;
|
|
221
230
|
|
|
222
231
|
interface FilterBarProps {
|
|
232
|
+
clearable?: boolean;
|
|
233
|
+
suggestionRows?: Record<string, unknown>[];
|
|
223
234
|
filters: FilterDef[];
|
|
224
235
|
onChange: (filters: FilterDef[]) => void;
|
|
225
236
|
title?: string;
|
|
@@ -235,7 +246,7 @@ interface FilterBarProps {
|
|
|
235
246
|
/** Applied to newly added filters (where = row-level, having = aggregated). */
|
|
236
247
|
defaultClause?: 'where' | 'having';
|
|
237
248
|
}
|
|
238
|
-
declare function FilterBar({ filters, onChange, title, hint, editable, fieldOptions, fieldPlaceholder, fieldEmptyLabel, fieldDisabled, hideHeader, defaultClause, }: FilterBarProps): React__default.JSX.Element;
|
|
249
|
+
declare function FilterBar({ filters, suggestionRows, clearable, onChange, title, hint, editable, fieldOptions, fieldPlaceholder, fieldEmptyLabel, fieldDisabled, hideHeader, defaultClause, }: FilterBarProps): React__default.JSX.Element;
|
|
239
250
|
|
|
240
251
|
declare function ensureI18n(locale?: string): i18next.i18n;
|
|
241
252
|
|