@cellaware/utils 9.3.0 → 9.4.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.
@@ -7,7 +7,14 @@ export interface DatagridStateBase {
7
7
  isPivotMode?: boolean;
8
8
  filterModel?: FilterModel;
9
9
  columnFormats?: ColumnFormat[];
10
+ chartSettings?: ChartSettings;
10
11
  }
12
+ export interface ChartSettings {
13
+ labels: boolean;
14
+ trendline: boolean;
15
+ }
16
+ /** Since chart settings were added late, we need to make sure the structure is full/complete at any given time. */
17
+ export declare function initChartSettings(chartSettings?: ChartSettings): ChartSettings;
11
18
  export interface DatagridState extends DatagridStateBase {
12
19
  adjRows: any[];
13
20
  }
@@ -3,6 +3,21 @@ import { CHATWMS_DEFAULT_LANGUAGE } from "./user.js";
3
3
  export const DATAGRID_HTML_ROWS = 1000;
4
4
  export const DATAGRID_HTML_COLS = 8;
5
5
  export const DATAGRID_TEAMS_ROWS = 24;
6
+ /** Since chart settings were added late, we need to make sure the structure is full/complete at any given time. */
7
+ export function initChartSettings(chartSettings) {
8
+ if (!!chartSettings) {
9
+ return {
10
+ ...initChartSettings(),
11
+ ...chartSettings
12
+ };
13
+ }
14
+ else {
15
+ return {
16
+ labels: false,
17
+ trendline: false
18
+ };
19
+ }
20
+ }
6
21
  export function initDatagridState() {
7
22
  return {
8
23
  adjRows: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "9.3.0",
3
+ "version": "9.4.0",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",