@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.
@@ -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 interface ChartBase extends ChartJson {
157
- chartId: number;
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
- headerStyle?: Pick<ReportBodyStyleOptions, 'backgroundColor' | 'backgroundAlpha'>;
184
- bodyStyle?: Pick<ReportBodyStyleOptions, 'backgroundColor' | 'backgroundAlpha'>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/utility-dashboard-backend",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "A utility for formatting chart and report data to be usable by the frontend dashboard component.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",