@formio/reporting 2.3.0 → 2.3.1

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/lib/index.d.ts CHANGED
@@ -298,9 +298,7 @@ declare const _default: {
298
298
  getPropertyFromFormId(formId: any): string;
299
299
  getDataPath(setting: any): string;
300
300
  getJoinedFormDataPathInJoinedObj(formId: any): string;
301
- getAggrOperatorNumberField(settings: any, reportingConfig?: any): {
302
- type: string;
303
- };
301
+ getAggrOperatorNumberField(settings: any, reportingConfig?: any): any;
304
302
  _: any;
305
303
  valueTypes: any;
306
304
  connectionByFullSubmissionObjectOptionValue: "submissionObject*";
package/lib/index.vm.d.ts CHANGED
@@ -295,9 +295,7 @@ declare const _default: {
295
295
  getPropertyFromFormId(formId: any): string;
296
296
  getDataPath(setting: any): string;
297
297
  getJoinedFormDataPathInJoinedObj(formId: any): string;
298
- getAggrOperatorNumberField(settings: any, reportingConfig?: any): {
299
- type: string;
300
- };
298
+ getAggrOperatorNumberField(settings: any, reportingConfig?: any): any;
301
299
  _: any;
302
300
  valueTypes: any;
303
301
  connectionByFullSubmissionObjectOptionValue: "submissionObject*";
@@ -2,9 +2,7 @@ import AggregationOperator from './AggregationOperator';
2
2
  export default class Avg extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
4
  static get operatorTitle(): string;
5
- static getDisplayField(settings: any, reportingConfig?: any): {
6
- type: string;
7
- };
5
+ static getDisplayField(settings: any, reportingConfig?: any): any;
8
6
  static get acceptedValueTypes(): any[];
9
7
  static get aggregatedGroupOperator(): boolean;
10
8
  static get aggregatedCalculationOperator(): boolean;
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Count extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get aggregatedCalculationOperator(): boolean;
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class DateDiff extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static getFieldArgs(settings: any): any;
8
6
  static get operatorTitle(): string;
9
7
  static get acceptedValueTypes(): any[];
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class DayOfMonth extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get acceptedValueTypes(): any[];
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class DayOfWeek extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get acceptedValueTypes(): any[];
9
7
  static get aggregatedGroupOperator(): boolean;
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class DayOfYear extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get aggregatedCalculationOperator(): boolean;
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Divide extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static getFieldArgs(settings: any): any;
8
6
  static get operatorTitle(): string;
9
7
  static get aggregatedGroupOperator(): boolean;
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Max extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get aggregatedCalculationOperator(): boolean;
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Min extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get acceptedValueTypes(): any[];
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Month extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get acceptedValueTypes(): any[];
9
7
  static get aggregatedGroupOperator(): boolean;
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Multiply extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get acceptedValueTypes(): any[];
9
7
  static get aggregatedGroupOperator(): boolean;
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Percentage extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get acceptedValueTypes(): any[];
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Size extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get acceptedValueTypes(): any[];
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Subtract extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get acceptedValueTypes(): any[];
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Sum extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get aggregatedCalculationOperator(): boolean;
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Week extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get acceptedValueTypes(): any[];
@@ -1,9 +1,7 @@
1
1
  import AggregationOperator from './AggregationOperator';
2
2
  export default class Year extends AggregationOperator {
3
3
  static get operatorKey(): string;
4
- static getDisplayField(settings: any, reportingConfig?: any): {
5
- type: string;
6
- };
4
+ static getDisplayField(settings: any, reportingConfig?: any): any;
7
5
  static get operatorTitle(): string;
8
6
  static get aggregatedGroupOperator(): boolean;
9
7
  static get acceptedValueTypes(): any[];
@@ -284,9 +284,7 @@ declare const ReportingUtils: {
284
284
  getPropertyFromFormId(formId: any): string;
285
285
  getDataPath(setting: any): string;
286
286
  getJoinedFormDataPathInJoinedObj(formId: any): string;
287
- getAggrOperatorNumberField(settings: any, reportingConfig?: any): {
288
- type: string;
289
- };
287
+ getAggrOperatorNumberField(settings: any, reportingConfig?: any): any;
290
288
  _: any;
291
289
  valueTypes: any;
292
290
  connectionByFullSubmissionObjectOptionValue: "submissionObject*";
@@ -12,6 +12,4 @@ export declare const defaultColumns: {
12
12
  component: any;
13
13
  submissionRootPath: boolean;
14
14
  }[];
15
- export declare function getAggrOperatorNumberField(settings: any, reportingConfig?: any): {
16
- type: string;
17
- };
15
+ export declare function getAggrOperatorNumberField(settings: any, reportingConfig?: any): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/reporting",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Reporting components for form.io",
5
5
  "main": "reporting.js",
6
6
  "types": "lib/index.d.ts",
@@ -66,11 +66,11 @@
66
66
  "webpack-cli": "^4.9.2",
67
67
  "webpack-node-externals": "^3.0.0",
68
68
  "webpack-obfuscator": "^3.5.1",
69
- "@formio/js": "^5.4.0",
69
+ "@formio/js": "^5.4.1",
70
70
  "@formio/license": "^2.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "@formio/js": "^5.4.0"
73
+ "@formio/js": "^5.4.1"
74
74
  },
75
75
  "dependencies": {
76
76
  "file-saver": "^2.0.5",
@@ -78,10 +78,11 @@
78
78
  },
79
79
  "scripts": {
80
80
  "watch": "tsc -w",
81
+ "update-form-definitions": "gulp report-config-template",
81
82
  "build:style": "sass ./src/sass/reporting.scss ./dist/reporting.css",
82
83
  "build:dist": "rm -rf lib && rm -rf dist && gulp licenseCheck && tsc && gulp templates && webpack --config=config/webpack.dist.js && npm run build:style",
83
84
  "build:dev": "rm -rf lib && rm -rf dist && gulp licenseCheck && tsc && gulp templates && webpack --config=config/webpack.dev.js && gulp modifyPackage && npm run build:style",
84
- "build:portal": "rm -rf lib && rm -rf dist && rm -f build/reporting.css && gulp licenseCheck:noCheck && tsc && gulp templates && gulp report-config-template && webpack --config=config/webpack.portal.js && npm run build:style",
85
+ "build:portal": "rm -rf lib && rm -rf dist && rm -f build/reporting.css && gulp licenseCheck:noCheck && tsc && gulp templates && npm run update-form-definitions && webpack --config=config/webpack.portal.js && npm run build:style",
85
86
  "build:vm": "rm -rf lib && rm -f dist/reporting.vm.js && gulp licenseCheck:noCheck && tsc && gulp templates && webpack --config=config/webpack.vm.js",
86
87
  "build": "npm run build:portal && npm run build:vm",
87
88
  "lint": "tslint -p .",