@formio/reporting 2.0.0-rc.4 → 2.0.0-rc.8
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/README.md +5 -2
- package/lib/components/ReportingGrid/ReportingGrid.d.ts +2 -1
- package/lib/index.d.ts +2 -0
- package/lib/licenseCheck/common.d.ts +5 -1
- package/lib/licenseCheck/index.d.ts +1 -2
- package/lib/licenseCheck/noLicenseCheck.d.ts +5 -0
- package/lib/providers/ReportingUrlFetchProvider.d.ts +2 -0
- package/lib/utils/AggregationOperators/AggregationOperator.d.ts +2 -1
- package/lib/utils/AggregationOperators/Avg.d.ts +1 -1
- package/lib/utils/AggregationOperators/Concat.d.ts +1 -0
- package/lib/utils/AggregationOperators/Count.d.ts +1 -1
- package/lib/utils/AggregationOperators/DateDiff.d.ts +2 -1
- package/lib/utils/AggregationOperators/DayOfMonth.d.ts +1 -1
- package/lib/utils/AggregationOperators/DayOfWeek.d.ts +1 -1
- package/lib/utils/AggregationOperators/DayOfYear.d.ts +1 -1
- package/lib/utils/AggregationOperators/Divide.d.ts +9 -2
- package/lib/utils/AggregationOperators/Max.d.ts +1 -1
- package/lib/utils/AggregationOperators/Min.d.ts +1 -1
- package/lib/utils/AggregationOperators/Month.d.ts +1 -1
- package/lib/utils/AggregationOperators/Multiply.d.ts +1 -1
- package/lib/utils/AggregationOperators/Percentage.d.ts +15 -0
- package/lib/utils/AggregationOperators/Size.d.ts +1 -1
- package/lib/utils/AggregationOperators/Subtract.d.ts +16 -0
- package/lib/utils/AggregationOperators/Sum.d.ts +1 -1
- package/lib/utils/AggregationOperators/Week.d.ts +1 -1
- package/lib/utils/AggregationOperators/Year.d.ts +1 -1
- package/lib/utils/AggregationOperators/index.d.ts +2 -1
- package/lib/utils/FilterOperators.d.ts +3 -1
- package/lib/utils/configurationFormUtils.d.ts +9 -8
- package/lib/utils/controlsUtils.d.ts +1 -1
- package/lib/utils/index.d.ts +7 -4
- package/lib/utils/utils.d.ts +3 -2
- package/package.json +74 -1
- package/reporting.js +1 -1
- package/lib/licenseCheck/portal.d.ts +0 -1
package/README.md
CHANGED
|
@@ -6,9 +6,12 @@ This module contains the reporting components for form.io.
|
|
|
6
6
|
|
|
7
7
|
```javascript
|
|
8
8
|
import reporting from '@formio/reporting';
|
|
9
|
-
import { Formio } from '
|
|
9
|
+
import { Formio } from '@formio/js';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
// You need to have a valid Library License key to use this package.
|
|
12
|
+
// If you don't have one yet, please contact sales@form.io.
|
|
13
|
+
Formio.license = 'yourLibraryLicenseKey';
|
|
14
|
+
Formio.use(reporting);
|
|
12
15
|
```
|
|
13
16
|
You also need to include styles from the **'/node_modules/@formio/reporting/reporting.css'** into your project to make all the components work correctly.
|
|
14
17
|
|
|
@@ -3,7 +3,6 @@ declare const ReportingGrid_base: any;
|
|
|
3
3
|
export default class ReportingGrid extends ReportingGrid_base {
|
|
4
4
|
static schema(...extend: any[]): any;
|
|
5
5
|
static get builderInfo(): {};
|
|
6
|
-
FormioCore: any;
|
|
7
6
|
formioGrid: any;
|
|
8
7
|
columns: {};
|
|
9
8
|
initComponents: any[];
|
|
@@ -21,6 +20,8 @@ export default class ReportingGrid extends ReportingGrid_base {
|
|
|
21
20
|
formatGridComponent(comp: any, columnSettings: any): any;
|
|
22
21
|
isDefaultColumn(columnReportingSettings: any): any;
|
|
23
22
|
addColumnsFromReportingForms(allColumns: any, fieldsGroupedByForm: any): void;
|
|
23
|
+
checkDeconstructions(fieldSettings: any): void;
|
|
24
|
+
checkDeconstructionRequirement(formId: any, compPath: any): void;
|
|
24
25
|
addCalculatedColumns(allColumns: any, allCalculatedColumns?: any[], requiredCalculatedColumnsPaths?: any): void;
|
|
25
26
|
init(): any;
|
|
26
27
|
render(): any;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as ReportingConfigUtils from './utils/configurationFormUtils';
|
|
1
2
|
declare const _default: {
|
|
2
3
|
components: {
|
|
3
4
|
reportingcontrols: typeof import("./components/ReportingControls/ReportingControls").default;
|
|
@@ -16,6 +17,7 @@ declare const _default: {
|
|
|
16
17
|
};
|
|
17
18
|
semantic: {};
|
|
18
19
|
};
|
|
20
|
+
utils: typeof ReportingConfigUtils;
|
|
19
21
|
library: string;
|
|
20
22
|
};
|
|
21
23
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default checkLicense;
|
|
1
|
+
export declare const checkLicense: () => Promise<void>, checkEndpointAllowed: (endpointUrl: string) => Promise<void>;
|
|
@@ -3,6 +3,7 @@ export default class ReportingUrlFetchProvider {
|
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
reportingConfig: any;
|
|
5
5
|
formio: any;
|
|
6
|
+
dataDeconstructions: any;
|
|
6
7
|
};
|
|
7
8
|
defaultFilters: any;
|
|
8
9
|
constructor(options: any);
|
|
@@ -77,6 +78,7 @@ export default class ReportingUrlFetchProvider {
|
|
|
77
78
|
}[];
|
|
78
79
|
$or?: undefined;
|
|
79
80
|
};
|
|
81
|
+
addDataDeconscructionStages(requestBody: any[], formId: string, pathToFormData: string): void;
|
|
80
82
|
getAggregatedRequestBody(params?: any): any[];
|
|
81
83
|
makeRequest(params?: any): Promise<any>;
|
|
82
84
|
getData(params?: any): Promise<any>;
|
|
@@ -6,9 +6,10 @@ interface IAggregationOperator {
|
|
|
6
6
|
}
|
|
7
7
|
export default class AggregationOperator implements IAggregationOperator {
|
|
8
8
|
static get operatorKey(): string;
|
|
9
|
-
static getDisplayField(settings: any): {
|
|
9
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
10
10
|
type: string;
|
|
11
11
|
};
|
|
12
|
+
static getFieldArgs(settings: any): any;
|
|
12
13
|
static get acceptedValueTypes(): any[];
|
|
13
14
|
static get operatorTitle(): string;
|
|
14
15
|
static get aggregatedGroupOperator(): boolean;
|
|
@@ -2,7 +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): {
|
|
5
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
6
6
|
type: string;
|
|
7
7
|
};
|
|
8
8
|
static get acceptedValueTypes(): any[];
|
|
@@ -4,6 +4,7 @@ export default class Concat extends AggregationOperator {
|
|
|
4
4
|
static getDisplayField(settings: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
|
+
static getFieldArgs(settings: any): any;
|
|
7
8
|
static get operatorTitle(): string;
|
|
8
9
|
static get acceptedValueTypes(): any[];
|
|
9
10
|
static get aggregatedGroupOperator(): boolean;
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -1,9 +1,10 @@
|
|
|
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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
|
+
static getFieldArgs(settings: any): any;
|
|
7
8
|
static get operatorTitle(): string;
|
|
8
9
|
static get acceptedValueTypes(): any[];
|
|
9
10
|
static get aggregatedGroupOperator(): boolean;
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -1,15 +1,22 @@
|
|
|
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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
|
+
static getFieldArgs(settings: any): any;
|
|
7
8
|
static get operatorTitle(): string;
|
|
8
9
|
static get aggregatedGroupOperator(): boolean;
|
|
9
10
|
static get acceptedValueTypes(): any[];
|
|
10
11
|
static get aggregatedCalculationOperator(): boolean;
|
|
11
12
|
static get calculationArgs(): string[];
|
|
12
13
|
getRequest(settings: any): {
|
|
13
|
-
$
|
|
14
|
+
$cond: (string | {
|
|
15
|
+
$eq: (string | number)[];
|
|
16
|
+
$divide?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
$divide: string[];
|
|
19
|
+
$eq?: undefined;
|
|
20
|
+
})[];
|
|
14
21
|
};
|
|
15
22
|
}
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import AggregationOperator from './AggregationOperator';
|
|
2
|
+
export default class Percentage extends AggregationOperator {
|
|
3
|
+
static get operatorKey(): string;
|
|
4
|
+
static getDisplayField(settings: any): {
|
|
5
|
+
type: string;
|
|
6
|
+
};
|
|
7
|
+
static get operatorTitle(): string;
|
|
8
|
+
static get aggregatedGroupOperator(): boolean;
|
|
9
|
+
static get acceptedValueTypes(): any[];
|
|
10
|
+
static get aggregatedCalculationOperator(): boolean;
|
|
11
|
+
static get calculationArgs(): string[];
|
|
12
|
+
getRequest(settings: any): {
|
|
13
|
+
$multiply: (string | number)[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import AggregationOperator from './AggregationOperator';
|
|
2
|
+
export default class Subtract extends AggregationOperator {
|
|
3
|
+
static get operatorKey(): string;
|
|
4
|
+
static getDisplayField(settings: any): {
|
|
5
|
+
type: string;
|
|
6
|
+
};
|
|
7
|
+
static get operatorTitle(): string;
|
|
8
|
+
static get aggregatedGroupOperator(): boolean;
|
|
9
|
+
static get acceptedValueTypes(): any[];
|
|
10
|
+
static get aggregatedCalculationOperator(): boolean;
|
|
11
|
+
static getFieldArgs(settings: any): any;
|
|
12
|
+
static get calculationArgs(): string[];
|
|
13
|
+
getRequest(settings: any): {
|
|
14
|
+
$subtract: string[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -1,7 +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): {
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): {
|
|
5
5
|
type: string;
|
|
6
6
|
};
|
|
7
7
|
static get operatorTitle(): string;
|
|
@@ -14,7 +14,8 @@ import Week from './Week';
|
|
|
14
14
|
import DayOfMonth from './DayOfMonth';
|
|
15
15
|
import DayOfWeek from './DayOfWeek';
|
|
16
16
|
import DayOfYear from './DayOfYear';
|
|
17
|
+
import Subtract from './Subtract';
|
|
17
18
|
declare const AggregationOperators: {
|
|
18
|
-
[x: string]: typeof Year | typeof DateDiff | typeof Divide | typeof Multiply | typeof Sum | typeof Count | typeof Max | typeof Min | typeof Avg | typeof Concat | typeof Size | typeof Month | typeof Week | typeof DayOfMonth | typeof DayOfWeek | typeof DayOfYear;
|
|
19
|
+
[x: string]: typeof Year | typeof DateDiff | typeof Divide | typeof Multiply | typeof Sum | typeof Count | typeof Max | typeof Min | typeof Avg | typeof Concat | typeof Size | typeof Month | typeof Week | typeof DayOfMonth | typeof DayOfWeek | typeof DayOfYear | typeof Subtract;
|
|
19
20
|
};
|
|
20
21
|
export default AggregationOperators;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const FilterOperators:
|
|
1
|
+
declare const FilterOperators: {
|
|
2
|
+
[x: string]: typeof import("@formio/js/lib/cjs/utils/conditionOperators/IsEqualTo").default | typeof import("@formio/js/lib/cjs/utils/conditionOperators/DateGreaterThan").default;
|
|
3
|
+
};
|
|
2
4
|
export default FilterOperators;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare function getFilterOperatorOptions(operators?: any[]): any;
|
|
2
2
|
export declare function getFilterOperatorsOptionsForCompType(compType: any): any;
|
|
3
|
-
export declare function getControlsFilterOperators(columnSettings: any, reportingForms
|
|
3
|
+
export declare function getControlsFilterOperators(columnSettings: any, reportingForms?: any[], calculatedColumnsSettings?: any[]): any;
|
|
4
4
|
export declare function getUnselectedColumnsOptions(columnsOptions: any, selectedColumns: any): any;
|
|
5
5
|
export declare function getReportingFormAsOption(form: any): {
|
|
6
6
|
label: any;
|
|
7
7
|
value: any;
|
|
8
8
|
};
|
|
9
|
-
export declare function getConnectionBaseFormOptions(reportingForms: any, connections: any, compRowIndex: any): any;
|
|
10
|
-
export declare function getConnectionJoiningFormOptions(reportingForms: any, connections: any, compRowIndex: any): any;
|
|
11
|
-
export declare function getConnectionFormComponentsAsOptions(formId: any, reportingForms
|
|
9
|
+
export declare function getConnectionBaseFormOptions(reportingForms: any[], connections: any[], compRowIndex: any): any;
|
|
10
|
+
export declare function getConnectionJoiningFormOptions(reportingForms: any[], connections: any[], compRowIndex: any): any;
|
|
11
|
+
export declare function getConnectionFormComponentsAsOptions(formId: any, reportingForms?: any[]): {
|
|
12
12
|
label: string;
|
|
13
13
|
value: string;
|
|
14
14
|
}[];
|
|
@@ -28,17 +28,18 @@ export declare function getCalculatedColumnAsOption(column: any): {
|
|
|
28
28
|
label: string;
|
|
29
29
|
};
|
|
30
30
|
export declare function addCalculatedColumnsOptions({ calculatedColumns, options, operator, }: {
|
|
31
|
-
calculatedColumns
|
|
31
|
+
calculatedColumns?: any[];
|
|
32
32
|
options: any;
|
|
33
33
|
operator?: any;
|
|
34
34
|
}): void;
|
|
35
|
+
export declare function getCalculationArgsOptions(reportingForms: any[], calculatedColumns: any[], operator: any, calculatedValueIndex: any): any;
|
|
35
36
|
export declare function getReportingFormsComponentsAndExtraComponentsAsOptions({ reportingForms, calculatedColumns, selectedItems, operator, }: {
|
|
36
|
-
reportingForms
|
|
37
|
-
calculatedColumns
|
|
37
|
+
reportingForms?: any[];
|
|
38
|
+
calculatedColumns?: any[];
|
|
38
39
|
selectedItems?: any[];
|
|
39
40
|
operator?: any;
|
|
40
41
|
}): any;
|
|
41
|
-
export declare function getColumnsListOptions(reportingForms: any, groupsSettings: any, calculatedColumns: any): any[];
|
|
42
|
+
export declare function getColumnsListOptions(reportingForms: any[], groupsSettings: any, calculatedColumns: any): any[];
|
|
42
43
|
export declare function getAvailableColumnsAsOptions(availableColumns: any, columnsList: any): any;
|
|
43
44
|
export declare function getCustomScriptAvailableVarialbles(): string;
|
|
44
45
|
export declare function getDateDiffUnitOptions(operator: any): any;
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const ReportingUtils: {
|
|
2
|
-
FilterOperators:
|
|
2
|
+
FilterOperators: {
|
|
3
|
+
[x: string]: typeof import("@formio/js/lib/cjs/utils/conditionOperators/IsEqualTo").default | typeof import("@formio/js/lib/cjs/utils/conditionOperators/DateGreaterThan").default;
|
|
4
|
+
};
|
|
3
5
|
filtersQueries: {
|
|
4
6
|
equal: string;
|
|
5
7
|
notEqual: string;
|
|
@@ -71,7 +73,7 @@ declare const ReportingUtils: {
|
|
|
71
73
|
widget: string;
|
|
72
74
|
data: {
|
|
73
75
|
values: {
|
|
74
|
-
label:
|
|
76
|
+
label: string;
|
|
75
77
|
value: string;
|
|
76
78
|
}[];
|
|
77
79
|
};
|
|
@@ -276,11 +278,12 @@ declare const ReportingUtils: {
|
|
|
276
278
|
gridKey: string;
|
|
277
279
|
};
|
|
278
280
|
convertReportingFormCompIntoGridComp(comp: any, columnSettings: any): any;
|
|
279
|
-
|
|
281
|
+
getCalcOperatorFieldArgs(columnSettings: any): any;
|
|
282
|
+
convertReportingCalcSettingsIntoGridComp(columnSettings: any, reportingConfig?: any): any;
|
|
280
283
|
getPropertyFromFormId(formId: any): string;
|
|
281
284
|
getDataPath(setting: any): string;
|
|
282
285
|
getJoinedFormDataPathInJoinedObj(formId: any): string;
|
|
283
|
-
getAggrOperatorNumberField(settings: any): {
|
|
286
|
+
getAggrOperatorNumberField(settings: any, reportingConfig?: any): {
|
|
284
287
|
type: string;
|
|
285
288
|
};
|
|
286
289
|
_: any;
|
package/lib/utils/utils.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare const _: any;
|
|
2
2
|
export declare const valueTypes: any;
|
|
3
3
|
export declare function convertReportingFormCompIntoGridComp(comp: any, columnSettings: any): any;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function getCalcOperatorFieldArgs(columnSettings: any): any;
|
|
5
|
+
export declare function convertReportingCalcSettingsIntoGridComp(columnSettings: any, reportingConfig?: any): any;
|
|
5
6
|
export declare function getPropertyFromFormId(formId: any): string;
|
|
6
7
|
export declare function getDataPath(setting: any): string;
|
|
7
8
|
export declare function getJoinedFormDataPathInJoinedObj(formId: any): string;
|
|
@@ -11,6 +12,6 @@ export declare const defaultColumns: {
|
|
|
11
12
|
component: any;
|
|
12
13
|
submissionRootPath: boolean;
|
|
13
14
|
}[];
|
|
14
|
-
export declare function getAggrOperatorNumberField(settings: any): {
|
|
15
|
+
export declare function getAggrOperatorNumberField(settings: any, reportingConfig?: any): {
|
|
15
16
|
type: string;
|
|
16
17
|
};
|
package/package.json
CHANGED
|
@@ -1 +1,74 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@formio/reporting",
|
|
3
|
+
"version": "2.0.0-rc.8",
|
|
4
|
+
"description": "Reporting components for form.io",
|
|
5
|
+
"main": "reporting.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"watch": "tsc -w",
|
|
8
|
+
"build:style": "node-sass ./src/sass/reporting.scss ./dist/reporting.css",
|
|
9
|
+
"build:dist": "rm -rf lib && rm -rf dist && gulp licenseCheck && tsc && gulp templates && webpack --config=config/webpack.prod.js && gulp modifyPackage && yarn build:style",
|
|
10
|
+
"build:dev": "rm -rf lib && rm -rf dist && gulp licenseCheck && tsc && gulp templates && webpack --config=config/webpack.dev.js && gulp changeEntry && yarn build:style",
|
|
11
|
+
"build:portal": "rm -rf lib && rm -f build/reporting.js && rm -f build/reporting.css && gulp licenseCheck:noCheck && tsc && gulp templates && gulp report-config-template && webpack --config=config/webpack.portal.js && node-sass ./src/sass/reporting.scss ./build/reporting.css",
|
|
12
|
+
"build:vm": "rm -rf lib && rm -f build/reporting.vm.js && gulp licenseCheck:noCheck && tsc && gulp templates && webpack --config=config/webpack.vm.js",
|
|
13
|
+
"build": "yarn build:portal && yarn build:vm && yarn build:dist",
|
|
14
|
+
"lint": "tslint -p .",
|
|
15
|
+
"release": "yarn build && yarn publish ./dist --access public"
|
|
16
|
+
},
|
|
17
|
+
"pre-commit": [
|
|
18
|
+
"lint"
|
|
19
|
+
],
|
|
20
|
+
"files": [
|
|
21
|
+
"*"
|
|
22
|
+
],
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/formio/reporting"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"Form.io",
|
|
29
|
+
"components"
|
|
30
|
+
],
|
|
31
|
+
"license": "UNLICENSED",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/formio/reporting/issues"
|
|
34
|
+
},
|
|
35
|
+
"reportConfigVersion": 5,
|
|
36
|
+
"homepage": "https://github.com/formio/reporting#readme",
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@formio/js": "^5.0.0-rc.47",
|
|
39
|
+
"@formio/license": "^2.0.0-rc.2",
|
|
40
|
+
"@types/file-saver": "^2.0.5",
|
|
41
|
+
"@types/mocha": "^10.0.1",
|
|
42
|
+
"@types/node": "^20.1.5",
|
|
43
|
+
"chai": "^4.3.7",
|
|
44
|
+
"copy-webpack-plugin": "^9.0.1",
|
|
45
|
+
"ejsify": "^1.0.0",
|
|
46
|
+
"esm": "^3.2.25",
|
|
47
|
+
"gulp": "^4.0.2",
|
|
48
|
+
"gulp-insert": "^0.5.0",
|
|
49
|
+
"gulp-rename": "^2.0.0",
|
|
50
|
+
"gulp-template": "^5.0.0",
|
|
51
|
+
"javascript-obfuscator": "^4.0.2",
|
|
52
|
+
"jsdom": "^17.0.0",
|
|
53
|
+
"jsdom-global": "^3.0.2",
|
|
54
|
+
"mocha": "^10.2.0",
|
|
55
|
+
"node-sass": "^7.0.3",
|
|
56
|
+
"nyc": "^15.1.0",
|
|
57
|
+
"pre-commit": "^1.2.2",
|
|
58
|
+
"request": "^2.88.2",
|
|
59
|
+
"ts-node": "^10.9.1",
|
|
60
|
+
"ts-sinon": "^2.0.2",
|
|
61
|
+
"tslint": "^6.1.2",
|
|
62
|
+
"typescript": "5.1.6",
|
|
63
|
+
"webpack": "^5.88.1",
|
|
64
|
+
"webpack-cli": "^4.9.2",
|
|
65
|
+
"webpack-node-externals": "^3.0.0",
|
|
66
|
+
"webpack-obfuscator": "^3.5.1"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"@formio/js": "^5.0.0-rc.47"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"file-saver": "^2.0.5"
|
|
73
|
+
}
|
|
74
|
+
}
|