@ic3/reporting-api 8.4.4 → 8.4.5

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.4" || "-", "Thu, 31 Aug 2023 12:11:04 GMT" || "-") }, definition);
11
+ return Object.assign({ apiVersion: new ReportingVersion_1.default("8.4.5" || "-", "Fri, 15 Sep 2023 04:53:02 GMT" || "-") }, definition);
12
12
  };
13
13
  }
14
14
  /**
@@ -77,7 +77,7 @@ export interface IWidgetLayoutResponsivenessDefinition {
77
77
  */
78
78
  themeSpacing: number;
79
79
  /**
80
- * The grid column span multiplier (i.e. x2 when the tables so widgets are twice as wide)
80
+ * The grid column span multiplier (i.e., x2 when the tables so widgets are twice as wide).
81
81
  */
82
82
  multiplier: ResponsiveValue;
83
83
  /**
@@ -96,12 +96,12 @@ export interface IWidgetLayoutResponsivenessDefinition {
96
96
  * Defines a grid to snap the height of the widgets in group.
97
97
  *
98
98
  * When the group grid is defined as %, the grid percentages will be kept on group height resizing
99
- * (not the case if the grid is defined in pixels)
99
+ * (not the case if the grid is defined in pixels).
100
100
  *
101
101
  * <ul>
102
102
  * <li> undefined : no constraint.
103
103
  * <li> array : a list of percentages to snap the widgets (e.g., [0.1,.0.2,0.3....1.0] to have
104
- * a grid 10% of group height, 20%, etc...).
104
+ * a grid 10% of group height, 20%, etc...).
105
105
  * <li> number < 1 : a percentage of the group height.
106
106
  * <li> number >= 1 : grid in pixels
107
107
  * </ul>
@@ -169,7 +169,13 @@ export interface IWidgetLayoutDefinition {
169
169
  * Not relevant if responsiveness is being defined: always an unlimited portrait.
170
170
  */
171
171
  pageSize: IKnownPageSize | IManualPageSize | IUnlimitedPageSize;
172
+ /**
173
+ * Not relevant if responsiveness is being defined: always an unlimited portrait.
174
+ */
172
175
  pageOrientation: PaperOrientation;
176
+ /**
177
+ * Not relevant if responsiveness is being defined: margins are defined per breakpoint.
178
+ */
173
179
  pageMargin: IPageMargin;
174
180
  /**
175
181
  * Use the one defined from the theme (ic3 palette) when not defined here.
@@ -181,7 +187,8 @@ export interface IWidgetLayoutDefinition {
181
187
  */
182
188
  expandH?: boolean;
183
189
  /**
184
- * Control how this layout is responding to width change.
190
+ * Control how this layout is responding to width change : check ic3-demo-plugin-them
191
+ * (https://github.com/ic3-software/ic3-demo-plugin-theme) for a complete example.
185
192
  */
186
193
  responsiveness?: IWidgetLayoutResponsivenessDefinition;
187
194
  /**
@@ -290,8 +290,9 @@ export type FormFieldType =
290
290
  * @see IFormLayoutFieldDef
291
291
  */
292
292
  "layout";
293
- export type FormFieldTidyTableExprType = "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericExpr" | "tidyTableNumericColumnExpr" | "tidyTableNumericJSColumnExpr" | "tidyTableNumericRowExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableNumericStringColumnExpr" | "tidyTableTextRowExpr" | "tidyTableStringRowExpr" | "tidyTableColorRowExpr";
293
+ export type FormFieldTidyTableExprType = "tidyTableColorRowExpr" | "tidyTableHtmlExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericColumnExpr" | "tidyTableNumericExpr" | "tidyTableNumericJSColumnExpr" | "tidyTableNumericRowExpr" | "tidyTableNumericStringColumnExpr" | "tidyTableScaleRowExpr" | "tidyTableTextExpr" | "tidyTableTextRowExpr" | "tidyTableStringRowExpr";
294
294
  export declare function isTidyTableExpr(type: FormFieldType): type is FormFieldTidyTableExprType;
295
+ export declare function isTidyTableExprJS(type: FormFieldType): boolean;
295
296
  export declare function isTidyTableExprTable(type: FormFieldType): boolean;
296
297
  export declare function isTidyTableExprColumn(type: FormFieldType): boolean;
297
298
  export declare function isTidyTableExprRow(type: FormFieldType): boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutocompleteActions = exports.AutocompleteNoOptionsText = exports.isTidyTableExprScale = exports.isTidyTableExprNumeric = exports.isTidyTableExprTextHtml = exports.isTidyTableExprText = exports.isTidyTableExprNumericJS = exports.isTidyTableExprNumericString = exports.isTidyTableExprRow = exports.isTidyTableExprColumn = exports.isTidyTableExprTable = exports.isTidyTableExpr = exports.IFormFieldGroupTypes = exports.formFieldIsSelection = void 0;
3
+ exports.AutocompleteActions = exports.AutocompleteNoOptionsText = exports.isTidyTableExprScale = exports.isTidyTableExprNumeric = exports.isTidyTableExprTextHtml = exports.isTidyTableExprText = exports.isTidyTableExprNumericJS = exports.isTidyTableExprNumericString = exports.isTidyTableExprRow = exports.isTidyTableExprColumn = exports.isTidyTableExprTable = exports.isTidyTableExprJS = exports.isTidyTableExpr = exports.IFormFieldGroupTypes = exports.formFieldIsSelection = void 0;
4
4
  function formFieldIsSelection(field) {
5
5
  return field.group === IFormFieldGroupTypes.Selection;
6
6
  }
@@ -12,20 +12,31 @@ var IFormFieldGroupTypes;
12
12
  IFormFieldGroupTypes["FilterItem"] = "filterItemGroup";
13
13
  })(IFormFieldGroupTypes = exports.IFormFieldGroupTypes || (exports.IFormFieldGroupTypes = {}));
14
14
  function isTidyTableExpr(type) {
15
- return type === "tidyTableHtmlExpr"
15
+ return type === "tidyTableColorRowExpr"
16
+ || type === "tidyTableHtmlExpr"
16
17
  || type === "tidyTableHtmlRowExpr"
17
- || type === "tidyTableTextExpr"
18
- || type === "tidyTableNumericStringColumnExpr"
18
+ || type === "tidyTableNumericColumnExpr"
19
+ || type === "tidyTableNumericExpr"
19
20
  || type === "tidyTableNumericJSColumnExpr"
21
+ || type === "tidyTableNumericRowExpr"
22
+ || type === "tidyTableNumericStringColumnExpr"
23
+ || type === "tidyTableScaleRowExpr"
24
+ || type === "tidyTableTextExpr"
20
25
  || type === "tidyTableTextRowExpr"
26
+ || type === "tidyTableStringRowExpr";
27
+ }
28
+ exports.isTidyTableExpr = isTidyTableExpr;
29
+ function isTidyTableExprJS(type) {
30
+ return type === "tidyTableColorRowExpr"
31
+ || type === "tidyTableStringRowExpr"
32
+ || type === "tidyTableScaleRowExpr"
21
33
  || type === "tidyTableNumericExpr"
22
34
  || type === "tidyTableNumericColumnExpr"
23
- || type === "tidyTableNumericRowExpr"
24
- || type === "tidyTableStringRowExpr"
25
- || type === "tidyTableColorRowExpr"
26
- || type === "tidyTableScaleRowExpr";
35
+ || type === "tidyTableNumericStringColumnExpr"
36
+ || type === "tidyTableNumericJSColumnExpr"
37
+ || type === "tidyTableNumericRowExpr";
27
38
  }
28
- exports.isTidyTableExpr = isTidyTableExpr;
39
+ exports.isTidyTableExprJS = isTidyTableExprJS;
29
40
  function isTidyTableExprTable(type) {
30
41
  return type === "tidyTableHtmlExpr"
31
42
  || type === "tidyTableTextExpr"
@@ -1 +1 @@
1
- {"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAkBA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AAmKD,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,oDAA4B,CAAA;IAC5B,yEAAiD,CAAA;IACjD,sDAA8B,CAAA;AAClC,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AA4MD,SAAgB,eAAe,CAAC,IAAmB;IAC/C,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,kCAAkC;WAC3C,IAAI,KAAK,8BAA8B;WACvC,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,4BAA4B;WACrC,I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C;AAED,SAAgB,uBAAuB,CAAC,IAAmB;IACvD,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AAJD,0DAIC;AAED,SAAgB,sBAAsB,CAAC,IAAmB;IACtD,OAAO,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,4BAA4B;WACrC,IAAI,KAAK,yBAAyB,CACpC;AACT,CAAC;AALD,wDAKC;AAED,SAAgB,oBAAoB,CAAC,IAAmB;IACpD,OAAO,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AAHD,oDAGC;AAED;;;GAGG;AACH,IAAY,yBAKX;AALD,WAAY,yBAAyB;IACjC,sDAAyB,CAAA;IACzB,sDAAyB,CAAA;IACzB,gEAAmC,CAAA;IACnC,gEAAmC,CAAA;AACvC,CAAC,EALW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAKpC;AAED;;GAEG;AACH,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;AAC3B,CAAC,EAFW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAE9B"}
@@ -446,9 +446,9 @@ export interface ic3Theme {
446
446
  cursor: {
447
447
  color: Property.Color;
448
448
  /**
449
- * The radius of the dot when hovering
449
+ * the width as percentage of the viewport of the cursor line when hovering
450
450
  */
451
- radius: number;
451
+ lineWidth: number;
452
452
  /**
453
453
  * The width of the stroke when hovering
454
454
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic3/reporting-api",
3
- "version": "8.4.4",
3
+ "version": "8.4.5",
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,16 +11,16 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@mui/material": "5.14.6",
15
- "@mui/system": "5.14.6",
14
+ "@mui/material": "5.14.8",
15
+ "@mui/system": "5.14.8",
16
16
  "@emotion/react": "11.11.1",
17
17
  "@emotion/styled": "11.11.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/markerclustererplus": "2.1.33",
21
- "@types/node": "20.5.7",
21
+ "@types/node": "20.6.0",
22
22
  "@types/react": "18.2.21",
23
- "del-cli": "5.0.1",
23
+ "del-cli": "5.1.0",
24
24
  "typescript": "4.9.5"
25
25
  },
26
26
  "overrides": {