@ic3/reporting-api 8.0.0-rc.2 → 8.0.0-rc.3
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 +1 -1
- package/dist/PublicContext.d.ts +17 -3
- package/dist/PublicTemplate.d.ts +6 -6
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateForm.d.ts +2 -0
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTidyMath.d.ts +2 -2
- package/dist/PublicTidyTableInteractions.d.ts +5 -0
- package/package.json +6 -6
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.0.0-rc.
|
|
11
|
+
return Object.assign({ apiVersion: new ReportingVersion_1.default("8.0.0-rc.3" || "-", "Fri, 21 Jan 2022 09:28:37 GMT" || "-") }, definition);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
/**
|
package/dist/PublicContext.d.ts
CHANGED
|
@@ -24,13 +24,27 @@ export interface IPublicContext {
|
|
|
24
24
|
getUserName(): string;
|
|
25
25
|
getReportLocale(): string;
|
|
26
26
|
getNumberFormatter(format: ThemeTextFormatter): (value: any | undefined) => string;
|
|
27
|
+
/**
|
|
28
|
+
* translate the content of a report (the title of widgets, content of some widgets...). This does use another file
|
|
29
|
+
*
|
|
30
|
+
* aka content localization
|
|
31
|
+
*/
|
|
32
|
+
translateContent(content: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* localized report application tags (e.g. edit, write, save.. )
|
|
35
|
+
*/
|
|
36
|
+
localize(name: string, ...args: any[]): string;
|
|
37
|
+
/**
|
|
38
|
+
* localized report application error tags
|
|
39
|
+
*/
|
|
40
|
+
localizeError(name: string, ...args: any[]): string;
|
|
41
|
+
/**
|
|
42
|
+
* Localization for transformations
|
|
43
|
+
*/
|
|
27
44
|
localizeTransformationCaption(template: ITidyTableTransformation<any>): {
|
|
28
45
|
info: string;
|
|
29
46
|
description?: string;
|
|
30
47
|
};
|
|
31
|
-
localizeError(name: string, ...args: any[]): string;
|
|
32
|
-
localize(name: string, ...args: any[]): string;
|
|
33
|
-
translateContent(content: string): string;
|
|
34
48
|
/**
|
|
35
49
|
* A bunch of mathematical functions related to the tidy table.
|
|
36
50
|
*/
|
package/dist/PublicTemplate.d.ts
CHANGED
|
@@ -24,14 +24,10 @@ export interface IWidgetTemplateMdxBuilderAxisProps {
|
|
|
24
24
|
*/
|
|
25
25
|
isOptional?: true;
|
|
26
26
|
/**
|
|
27
|
-
* All axes with the same (not null) value for mdxAxisName are put as a tuple on the same axis.
|
|
28
|
-
*
|
|
27
|
+
* All axes with the same (not null) value for mdxAxisName are put as a tuple on the same axis. And the roles are
|
|
28
|
+
* comma separated.
|
|
29
29
|
*/
|
|
30
30
|
mdxAxisName?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The test used to generated the axis role (see KPI card).
|
|
33
|
-
*/
|
|
34
|
-
mdxAxisRole?: string;
|
|
35
31
|
/**
|
|
36
32
|
* Disable empty
|
|
37
33
|
*/
|
|
@@ -314,6 +310,10 @@ interface IPublicCommonWidgetTemplateDefinition {
|
|
|
314
310
|
* When defining new widgets using amCharts 4, this method registers the icCube license.
|
|
315
311
|
*/
|
|
316
312
|
registerAmCharts4?: (callback: (am4core: any) => void) => void;
|
|
313
|
+
/**
|
|
314
|
+
* When opening "Use Global Filter" option on Interaction tab
|
|
315
|
+
*/
|
|
316
|
+
enableUseGlobalFilter?: boolean;
|
|
317
317
|
}
|
|
318
318
|
/**
|
|
319
319
|
* *********************************************************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AAcA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;
|
|
1
|
+
{"version":3,"file":"PublicTemplate.js","sourceRoot":"","sources":["../src/PublicTemplate.ts"],"names":[],"mappings":";;;AAcA,IAAY,4CAIX;AAJD,WAAY,4CAA4C;IACpD,qEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,2EAA2B,CAAA;AAC/B,CAAC,EAJW,4CAA4C,GAA5C,oDAA4C,KAA5C,oDAA4C,QAIvD;AA8ID;;GAEG;AAEH,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACnC,6EAA8C,CAAA;IAC9C,+EAAgD,CAAA;IAChD,mEAAoC,CAAA;AACxC,CAAC,EAJW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAItC;AAiOD;;;;GAIG;AACH,IAAY,4BAKX;AALD,WAAY,4BAA4B;IACpC,+CAAe,CAAA;IACf,iDAAiB,CAAA;IACjB,2CAAW,CAAA;IACX,6CAAa,CAAA;AACjB,CAAC,EALW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAKvC;AAkCD;;GAEG;AACH,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IAEvB,gBAAgB;IAChB,0DAA8B,CAAA;IAC9B,iEAAqC,CAAA;AACzC,CAAC,EANW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAMnC"}
|
|
@@ -62,6 +62,8 @@ export interface IFormFieldDef<DEFAULT_VALUE_TYPE> {
|
|
|
62
62
|
visibility?: boolean | ((context: IWidgetEditorPublicContext) => boolean);
|
|
63
63
|
/**
|
|
64
64
|
* When defined the content of the field is translated (using context.translateContent).
|
|
65
|
+
*
|
|
66
|
+
* Only works for chart/widgetOptions !!
|
|
65
67
|
*/
|
|
66
68
|
translated?: boolean;
|
|
67
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAOA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;
|
|
1
|
+
{"version":3,"file":"PublicTemplateForm.js","sourceRoot":"","sources":["../src/PublicTemplateForm.ts"],"names":[],"mappings":";;;AAOA,SAAgB,oBAAoB,CAAC,KAAyB;IAC1D,OAAO,KAAK,CAAC,KAAK,KAAK,oBAAoB,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oDAEC;AA2ID,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,+CAAuB,CAAA;IACvB,yEAAiD,CAAA;IACjD,sDAA8B,CAAA;AAClC,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAkJD,SAAgB,eAAe,CAAC,IAAmB;IAC/C,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,yBAAyB;WAClC,IAAI,KAAK,wBAAwB;WACjC,IAAI,KAAK,uBAAuB;WAChC,IAAI,KAAK,uBAAuB,CAClC;AACT,CAAC;AAXD,0CAWC;AAED,SAAgB,oBAAoB,CAAC,IAAmB;IACpD,OAAO,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,mBAAmB;WAC5B,IAAI,KAAK,sBAAsB,CACjC;AACT,CAAC;AALD,oDAKC;AAED,SAAgB,kBAAkB,CAAC,IAAmB;IAClD,OAAO,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,sBAAsB;WAC/B,IAAI,KAAK,yBAAyB;WAClC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ACN,CAAC;AAND,4CAMC"}
|
package/dist/PublicTidyMath.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { ITidyBaseColumnReadonly } from "./PublicTidyColumn";
|
|
|
2
2
|
import { HistogramData, HistogramOptions } from "./PublicTidyTableTypes";
|
|
3
3
|
export interface ITidyMath {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sum of all values in the column.
|
|
6
6
|
*/
|
|
7
|
-
sum(column: ITidyBaseColumnReadonly<number | null>): number;
|
|
7
|
+
sum(column: ITidyBaseColumnReadonly<number | null>): number | null;
|
|
8
8
|
/**
|
|
9
9
|
* Get the extreme value of the column. Null values are skipped.
|
|
10
10
|
* @param column
|
|
@@ -185,6 +185,11 @@ export interface ITidyTableInteraction extends ITidyTableInteractionSelection, I
|
|
|
185
185
|
*/
|
|
186
186
|
isLoading(column: ITidyColumn, rowIdx: number): boolean;
|
|
187
187
|
setSelectionColumns(columns: ITidyColumn[]): void;
|
|
188
|
+
/**
|
|
189
|
+
* Change the default drilldown column.
|
|
190
|
+
* @param column column to use for the drill-downs. Use undefined to reset to default.
|
|
191
|
+
*/
|
|
192
|
+
setDrilldownColumn(column: ITidyColumn | undefined): void;
|
|
188
193
|
/**
|
|
189
194
|
* Pivot Type behavior ( nodes can collapse/expand + drilldown might return some values)
|
|
190
195
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic3/reporting-api",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.3",
|
|
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",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"access": "public"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@mui/material": "5.
|
|
18
|
-
"@mui/system": "5.
|
|
17
|
+
"@mui/material": "5.3.0",
|
|
18
|
+
"@mui/system": "5.3.0",
|
|
19
19
|
"@types/googlemaps": "3.43.3",
|
|
20
20
|
"@types/markerclustererplus": "2.1.33",
|
|
21
|
-
"@types/node": "
|
|
22
|
-
"@types/react": "17.0.
|
|
21
|
+
"@types/node": "17.0.9",
|
|
22
|
+
"@types/react": "17.0.38",
|
|
23
23
|
"del-cli": "4.0.1",
|
|
24
|
-
"typescript": "4.5.
|
|
24
|
+
"typescript": "4.5.4"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "del-cli dist && npx tsc",
|