@ic3/reporting-api 8.4.11 → 8.4.12

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/ApiUtils.js CHANGED
@@ -8,7 +8,7 @@ const ReportingVersion_1 = __importDefault(require("./ReportingVersion"));
8
8
  class ApiUtils {
9
9
  static makePlugin(definition) {
10
10
  return () => {
11
- return Object.assign({ apiVersion: new ReportingVersion_1.default("8.4.11" || "-", "Thu, 02 May 2024 04:28:30 GMT" || "-") }, definition);
11
+ return Object.assign({ apiVersion: new ReportingVersion_1.default("8.4.12" || "-", "Mon, 03 Jun 2024 08:22:54 GMT" || "-") }, definition);
12
12
  };
13
13
  }
14
14
  /**
@@ -1,5 +1,5 @@
1
1
  import { CSSInterpolation } from "@mui/system";
2
- import { ic3Components } from "./PublicTheme";
2
+ import { Components } from "@mui/material/styles";
3
3
  export declare enum EmbeddedThemeNames {
4
4
  Statos = "ic3-statos"
5
5
  }
@@ -66,10 +66,10 @@ export interface IThemeManager {
66
66
  * The theme decorator allows to setup the Theme.components and Theme.ic3 using the theme
67
67
  * created from its partial options (e.g., using palette, typography, spacing, etc...)
68
68
  */
69
- registerTheme(themeOptions: any, themeDecorator?: (theme: any) => ic3Components, baseTheme?: EmbeddedThemeNames): void;
69
+ registerTheme(themeOptions: any, themeDecorator?: (theme: any) => Components, baseTheme?: EmbeddedThemeNames): void;
70
70
  /**
71
71
  * Register editor themes. Change the editor theme in ic3report-config.js by setting defaultEditorThemeId to a
72
72
  * themeId from a theme using this method.
73
73
  */
74
- registerEditorTheme(themeOptions: any, themeDecorator?: (theme: any) => ic3Components): void;
74
+ registerEditorTheme(themeOptions: any, themeDecorator?: (theme: any) => Components): void;
75
75
  }
@@ -315,6 +315,12 @@ export interface IWidgetPublicContext extends IPublicContext {
315
315
  * Returns true if and only if the widgets has a header (from the chart box settings).
316
316
  */
317
317
  widgetHasHeader(): boolean;
318
+ getBoxSettings(): IPublicWidgetBoxSettings | undefined;
319
+ }
320
+ export interface IPublicWidgetBoxSettings {
321
+ widgetId: string;
322
+ waitingEventOrResult?: string;
323
+ emptyResult?: string;
318
324
  }
319
325
  export interface IWidgetEditorPublicContext {
320
326
  /**
@@ -16,4 +16,5 @@ var IContentMessageType;
16
16
  IContentMessageType[IContentMessageType["info"] = 0] = "info";
17
17
  IContentMessageType[IContentMessageType["error"] = 1] = "error";
18
18
  })(IContentMessageType || (exports.IContentMessageType = IContentMessageType = {}));
19
+ ;
19
20
  //# sourceMappingURL=PublicContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;AAaA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,uEAAO,CAAA;IACP,mEAAK,CAAA;AACT,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,mCAAnB,mBAAmB,QAAe"}
1
+ {"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;AAaA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,uEAAO,CAAA;IACP,mEAAK,CAAA;AACT,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,mCAAnB,mBAAmB,QAAe;AA4X7C,CAAC"}
@@ -884,7 +884,8 @@ interface ic3BaseComponents {
884
884
  };
885
885
  }
886
886
  /**
887
- * For Typing purpose extending MUI Theme with ic3 components
887
+ * For Typing purpose extending MUI Theme with ic3 components.
888
+ * @deprecated Please use `Components` with `import { Components } from "@mui/material/styles";`.
888
889
  */
889
890
  export interface ic3Components extends ic3BaseComponents, Components {
890
891
  }
@@ -1527,7 +1527,8 @@ export interface Am4ScatterSeriesOptions extends FormFieldObject, IStrokeStylePr
1527
1527
  export interface Am4ChartOptions extends FormFieldObject {
1528
1528
  widgetVariant?: string;
1529
1529
  /**
1530
- * In-place processing of the amCharts 4 chart instance.
1530
+ * Hook to change the chart series, axes and other components. This hook is called for each data or options update
1531
+ * and after all the component have updated. You can use it to change the settings in the chart.
1531
1532
  *
1532
1533
  * <pre>
1533
1534
  * ( value: PublicAmchartsBase<amcharts4.Chart, options> ) => void;
@@ -1538,7 +1539,7 @@ export interface Am4ChartOptions extends FormFieldObject {
1538
1539
  */
1539
1540
  postRenderHook?: Hook<PublicAmCharts4Base<any, any>, any>;
1540
1541
  /**
1541
- * Called after the chart is created.
1542
+ * Called once, directly after the chart is created.
1542
1543
  *
1543
1544
  * <pre>
1544
1545
  * ( chart: amcharts4.Chart, options: Am4ChartOptions ) => void;
@@ -7,9 +7,13 @@ export declare enum TableColumnSizing {
7
7
  }
8
8
  export interface BaseTableChartOptions extends FormFieldObject {
9
9
  /**
10
- * If active, the color defined in the Tidy Table are applied to the table
10
+ * If active, the color defined in the Tidy Table are applied to the table.
11
11
  */
12
12
  applyHeaderColorDecoration?: boolean;
13
+ /**
14
+ * If enabled, show tooltips on every cell in the table (excluding renderers). Default = true.
15
+ */
16
+ cellTooltips: boolean;
13
17
  /**
14
18
  * Row Height.
15
19
  */
@@ -38,6 +38,12 @@ export declare enum DatePickerRangeDirection {
38
38
  * @see WidgetTemplateChartOptions
39
39
  */
40
40
  export interface DatePickerChartOptions extends FormFieldObject {
41
+ /**
42
+ * Variant.
43
+ *
44
+ * Allows for selecting a set of preset options. Note that a variant is possibly overriding defined options.
45
+ */
46
+ variant?: string;
41
47
  /**
42
48
  * The label content (i.e Date)
43
49
  */
@@ -196,6 +202,10 @@ interface IShortcut<D, T> {
196
202
  export type DatePickerShortcut<T = any> = IShortcut<T, T | null>;
197
203
  export type DateRangePickerShortcut<T = any> = IShortcut<T, [T | null, T | null]>;
198
204
  export interface FilterDatePickerProps {
205
+ /**
206
+ * Variant defined in the theme. If the theme has variants, then the user can select one.
207
+ */
208
+ variant?: string;
199
209
  }
200
210
  export declare enum InitialDateFrom {
201
211
  MANUAL_DATES = "manual",
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeDatePicker.js","sourceRoot":"","sources":["../../src/theme/ThemeDatePicker.ts"],"names":[],"mappings":";;;AAIA,4BAA4B;AAC5B,MAAa,iBAAiB;;AAA9B,8CA0BC;AAxBG;;GAEG;AACa,sBAAI,GAAG,oBAAoB,CAAC;AAE5C;;GAEG;AACa,2BAAS,GAAG,yBAAyB,CAAC;AAGtC,8BAAY,GAAG,6BAA6B,CAAC;AAE7C,iCAAe,GAAG,gCAAgC,CAAC;AAEnE;;GAEG;AACa,gCAAc,GAAG,8BAA8B,CAAC;AAEhE;;GAEG;AACa,+BAAa,GAAG,6BAA6B,CAAC;AAKlE,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,yCAAa,CAAA;IACb,qDAAyB,CAAA;IACzB,iDAAqB,CAAA;AACzB,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AAkND,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
1
+ {"version":3,"file":"ThemeDatePicker.js","sourceRoot":"","sources":["../../src/theme/ThemeDatePicker.ts"],"names":[],"mappings":";;;AAIA,4BAA4B;AAC5B,MAAa,iBAAiB;;AAA9B,8CA0BC;AAxBG;;GAEG;AACa,sBAAI,GAAG,oBAAoB,CAAC;AAE5C;;GAEG;AACa,2BAAS,GAAG,yBAAyB,CAAC;AAGtC,8BAAY,GAAG,6BAA6B,CAAC;AAE7C,iCAAe,GAAG,gCAAgC,CAAC;AAEnE;;GAEG;AACa,gCAAc,GAAG,8BAA8B,CAAC;AAEhE;;GAEG;AACa,+BAAa,GAAG,6BAA6B,CAAC;AAKlE,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,yCAAa,CAAA;IACb,qDAAyB,CAAA;IACzB,iDAAqB,CAAA;AACzB,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC;AA8ND,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -3,4 +3,8 @@ export declare class ThemeIc3TableCellClasses {
3
3
  export declare type ThemeIc3TableCellClassesKey = keyof ThemeIc3TableCellClasses;
4
4
  export interface Ic3TableCellProps {
5
5
  align?: 'left' | 'right' | 'center';
6
+ /**
7
+ * True if and only if the cell has a cell-renderer.
8
+ */
9
+ hasRenderer?: boolean;
6
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic3/reporting-api",
3
- "version": "8.4.11",
3
+ "version": "8.4.12",
4
4
  "description": "icCube dashboards API",
5
5
  "homepage": "https://github.com/ic3-software/ic3-reporting-api",
6
6
  "repository": "https://github.com/ic3-software/ic3-reporting-api",
@@ -11,15 +11,15 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@mui/material": "5.15.15",
14
+ "@mui/material": "5.15.18",
15
15
  "@mui/system": "5.15.15",
16
16
  "@emotion/react": "11.11.4",
17
17
  "@emotion/styled": "11.11.5"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/markerclustererplus": "2.1.33",
21
- "@types/node": "20.12.7",
22
- "@types/react": "18.3.1",
21
+ "@types/node": "20.12.12",
22
+ "@types/react": "18.3.3",
23
23
  "del-cli": "5.1.0",
24
24
  "typescript": "5.4.5"
25
25
  },