@isoftdata/utility-dashboard-backend 4.1.0-beta.3 → 4.2.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.
- package/dist/types/chart.d.ts +3 -0
- package/dist/types/report.d.ts +12 -0
- package/package.json +1 -1
package/dist/types/chart.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { NumberFormatOptions, MediumDateFormatOptions, LongDateFormatOptions } from '../formatting-templates.js';
|
|
2
|
+
import type { ReportBodyStyleOptions } from './report.js';
|
|
2
3
|
export type GoogleDataTableCell = {
|
|
3
4
|
v?: unknown;
|
|
4
5
|
f?: string | undefined;
|
|
@@ -179,6 +180,8 @@ export interface ChartJson {
|
|
|
179
180
|
markdown?: {
|
|
180
181
|
content: string;
|
|
181
182
|
};
|
|
183
|
+
headerStyle?: Pick<ReportBodyStyleOptions, 'backgroundColor' | 'backgroundAlpha'>;
|
|
184
|
+
bodyStyle?: Pick<ReportBodyStyleOptions, 'backgroundColor' | 'backgroundAlpha'>;
|
|
182
185
|
}
|
|
183
186
|
interface GoogleChart extends ChartBase {
|
|
184
187
|
query: string;
|
package/dist/types/report.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface Report {
|
|
|
10
10
|
parameterValues: DashboardReportParameter[];
|
|
11
11
|
autoRefreshInterval: number | null;
|
|
12
12
|
hideParameters?: boolean;
|
|
13
|
+
bodyStyle?: ReportBodyStyleOptions;
|
|
13
14
|
}
|
|
14
15
|
export interface ReportInput {
|
|
15
16
|
dashboardReportId: number;
|
|
@@ -21,5 +22,16 @@ export interface ReportInput {
|
|
|
21
22
|
ownerId: number | null;
|
|
22
23
|
autoRefreshInterval: number | null;
|
|
23
24
|
parameters: DashboardReportParameter[];
|
|
25
|
+
bodyStyle?: ReportBodyStyleOptions;
|
|
24
26
|
}
|
|
25
27
|
export type ShareType = 'everyone' | 'store' | 'user' | 'group';
|
|
28
|
+
export type ReportBodyStyleOptions = {
|
|
29
|
+
backgroundColor: string | undefined;
|
|
30
|
+
backgroundAlpha: string | undefined;
|
|
31
|
+
backgroundImage: string | undefined;
|
|
32
|
+
backgroundPosition: 'top' | 'bottom' | 'left' | 'right' | 'center' | 'CUSTOM' | undefined;
|
|
33
|
+
backgroundPositionX: string | undefined;
|
|
34
|
+
backgroundPositionY: string | undefined;
|
|
35
|
+
backgroundSize: 'auto' | 'contain' | 'cover' | 'CUSTOM' | undefined;
|
|
36
|
+
backgroundSizePercent: string | undefined;
|
|
37
|
+
};
|
package/package.json
CHANGED