@isoftdata/utility-dashboard-backend 4.2.0 → 4.2.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/types/chart.d.ts +16 -13
- package/package.json +1 -1
package/dist/types/chart.d.ts
CHANGED
|
@@ -153,17 +153,8 @@ export type TableStyleTemplate = {
|
|
|
153
153
|
[key: string]: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
export type ChartSuperType = 'google' | 'table' | 'embed' | 'markdown';
|
|
156
|
-
export
|
|
157
|
-
|
|
158
|
-
name: string;
|
|
159
|
-
showChart: boolean;
|
|
160
|
-
supertype: ChartSuperType;
|
|
161
|
-
title: string;
|
|
162
|
-
description?: string;
|
|
163
|
-
dataSourceName?: string;
|
|
164
|
-
rank?: number;
|
|
165
|
-
reportChartId?: number;
|
|
166
|
-
}
|
|
156
|
+
export type ChartCardStyleFields = 'backgroundColor' | 'backgroundAlpha';
|
|
157
|
+
export type ChartCardStyleOptions = Pick<ReportBodyStyleOptions, ChartCardStyleFields>;
|
|
167
158
|
export interface ChartJson {
|
|
168
159
|
allowExport?: boolean;
|
|
169
160
|
chartWrapper: ChartWrapper | ChartDimensions;
|
|
@@ -180,8 +171,20 @@ export interface ChartJson {
|
|
|
180
171
|
markdown?: {
|
|
181
172
|
content: string;
|
|
182
173
|
};
|
|
183
|
-
|
|
184
|
-
|
|
174
|
+
cardStyle?: ChartCardStyleOptions;
|
|
175
|
+
headerStyle?: ChartCardStyleOptions;
|
|
176
|
+
bodyStyle?: ChartCardStyleOptions;
|
|
177
|
+
}
|
|
178
|
+
export interface ChartBase extends ChartJson {
|
|
179
|
+
chartId: number;
|
|
180
|
+
name: string;
|
|
181
|
+
showChart: boolean;
|
|
182
|
+
supertype: ChartSuperType;
|
|
183
|
+
title: string;
|
|
184
|
+
description?: string;
|
|
185
|
+
dataSourceName?: string;
|
|
186
|
+
rank?: number;
|
|
187
|
+
reportChartId?: number;
|
|
185
188
|
}
|
|
186
189
|
interface GoogleChart extends ChartBase {
|
|
187
190
|
query: string;
|
package/package.json
CHANGED