@isoftdata/utility-dashboard-backend 2.4.6 → 2.4.8

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.
@@ -20,77 +20,78 @@ export type GoogleDataTable = {
20
20
  rows: GoogleDataTableRow[];
21
21
  p?: unknown;
22
22
  };
23
- export type ChartWrapper = ({
24
- options: google.visualization.TreeMapOptions;
23
+ interface WidthAndHeight {
24
+ height: number | undefined;
25
+ width: number | undefined;
26
+ }
27
+ export type ChartWrapper = {
28
+ options: google.visualization.TreeMapOptions & WidthAndHeight;
25
29
  dataTable?: GoogleDataTable;
26
30
  chartType: 'TreeMap';
27
31
  } | {
28
- options: google.visualization.GeoChartOptions;
32
+ options: google.visualization.GeoChartOptions & WidthAndHeight;
29
33
  dataTable?: GoogleDataTable;
30
34
  chartType: 'GeoChart';
31
35
  } | {
32
- options: google.visualization.ScatterChartOptions;
36
+ options: google.visualization.ScatterChartOptions & WidthAndHeight;
33
37
  dataTable?: GoogleDataTable;
34
38
  chartType: 'ScatterChart';
35
39
  } | {
36
- options: google.visualization.ColumnChartOptions;
40
+ options: google.visualization.ColumnChartOptions & WidthAndHeight;
37
41
  dataTable?: GoogleDataTable;
38
42
  chartType: 'ColumnChart';
39
43
  } | {
40
- options: google.visualization.HistogramOptions;
44
+ options: google.visualization.HistogramOptions & WidthAndHeight;
41
45
  dataTable?: GoogleDataTable;
42
46
  chartType: 'HistogramOptions';
43
47
  } | {
44
- options: google.visualization.BarChartOptions;
48
+ options: google.visualization.BarChartOptions & WidthAndHeight;
45
49
  dataTable?: GoogleDataTable;
46
50
  chartType: 'BarChart';
47
51
  } | {
48
- options: google.visualization.ComboChartOptions;
52
+ options: google.visualization.ComboChartOptions & WidthAndHeight;
49
53
  dataTable?: GoogleDataTable;
50
54
  chartType: 'ComboChart';
51
55
  } | {
52
- options: google.visualization.AreaChartOptions;
56
+ options: google.visualization.AreaChartOptions & WidthAndHeight;
53
57
  dataTable?: GoogleDataTable;
54
58
  chartType: 'AreaChart';
55
59
  } | {
56
- options: google.visualization.SteppedAreaChartOptions;
60
+ options: google.visualization.SteppedAreaChartOptions & WidthAndHeight;
57
61
  dataTable?: GoogleDataTable;
58
62
  chartType: 'SteppedAreaChart';
59
63
  } | {
60
- options: google.visualization.LineChartOptions;
64
+ options: google.visualization.LineChartOptions & WidthAndHeight;
61
65
  dataTable?: GoogleDataTable;
62
66
  chartType: 'LineChart';
63
67
  } | {
64
- options: google.visualization.PieChartOptions;
68
+ options: google.visualization.PieChartOptions & WidthAndHeight;
65
69
  dataTable?: GoogleDataTable;
66
70
  chartType: 'PieChart';
67
71
  } | {
68
- options: google.visualization.BubbleChartOptions;
72
+ options: google.visualization.BubbleChartOptions & WidthAndHeight;
69
73
  dataTable?: GoogleDataTable;
70
74
  chartType: 'BubbleChart';
71
75
  } | {
72
- options: google.visualization.OrgChartOptions;
76
+ options: google.visualization.OrgChartOptions & WidthAndHeight;
73
77
  dataTable?: GoogleDataTable;
74
78
  chartType: 'OrgChart';
75
79
  } | {
76
- options: google.visualization.TimelineOptions;
80
+ options: google.visualization.TimelineOptions & WidthAndHeight;
77
81
  dataTable?: GoogleDataTable;
78
82
  chartType: 'Timeline';
79
83
  } | {
80
- options: google.visualization.GaugeChartOptions;
84
+ options: google.visualization.GaugeChartOptions & WidthAndHeight;
81
85
  dataTable?: GoogleDataTable;
82
86
  chartType: 'GaugeChart';
83
87
  } | {
84
- options: google.visualization.CandlestickChartOptions;
88
+ options: google.visualization.CandlestickChartOptions & WidthAndHeight;
85
89
  dataTable?: GoogleDataTable;
86
90
  chartType: 'CandlestickChart';
87
91
  } | {
88
- options: google.visualization.TableOptions;
92
+ options: google.visualization.TableOptions & WidthAndHeight;
89
93
  dataTable?: GoogleDataTable;
90
94
  chartType: 'Table';
91
- }) & {
92
- height: number;
93
- width: number;
94
95
  };
95
96
  export type MultiSeriesOptions = {
96
97
  value: string;
@@ -137,6 +138,8 @@ export type Table = {
137
138
  style?: TableStyleTemplateObject;
138
139
  filterEnabled?: boolean;
139
140
  perPageCount?: number;
141
+ showFooter?: boolean;
142
+ allowExport?: boolean;
140
143
  };
141
144
  export type TableStyleTemplateObject = Record<string, TableStyleTemplate>;
142
145
  export type TableStyleTemplate = {
@@ -165,3 +168,4 @@ export type Chart = {
165
168
  rank?: number;
166
169
  reportChartId?: number;
167
170
  };
171
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isoftdata/utility-dashboard-backend",
3
- "version": "2.4.6",
3
+ "version": "2.4.8",
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
  "scripts": {