@formio/reporting 1.0.3 → 2.0.0-dev.tt.2
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 +1 -1
- package/lib/licenseCheck/common.d.ts +5 -1
- package/lib/licenseCheck/index.d.ts +1 -2
- package/lib/licenseCheck/noLicenseCheck.d.ts +5 -1
- package/lib/providers/ReportingUrlFetchProvider.d.ts +2 -0
- package/lib/utils/AggregationOperators/AggregationOperator.d.ts +1 -0
- package/lib/utils/AggregationOperators/Avg.d.ts +1 -3
- package/lib/utils/AggregationOperators/Concat.d.ts +1 -0
- package/lib/utils/AggregationOperators/Count.d.ts +1 -3
- package/lib/utils/AggregationOperators/DateDiff.d.ts +2 -3
- package/lib/utils/AggregationOperators/DayOfMonth.d.ts +1 -3
- package/lib/utils/AggregationOperators/DayOfWeek.d.ts +1 -3
- package/lib/utils/AggregationOperators/DayOfYear.d.ts +1 -3
- package/lib/utils/AggregationOperators/Divide.d.ts +9 -4
- package/lib/utils/AggregationOperators/Max.d.ts +1 -3
- package/lib/utils/AggregationOperators/Min.d.ts +1 -3
- package/lib/utils/AggregationOperators/Month.d.ts +1 -3
- package/lib/utils/AggregationOperators/Multiply.d.ts +1 -3
- package/lib/utils/AggregationOperators/Percentage.d.ts +1 -3
- package/lib/utils/AggregationOperators/Size.d.ts +1 -3
- package/lib/utils/AggregationOperators/Subtract.d.ts +1 -3
- package/lib/utils/AggregationOperators/Sum.d.ts +1 -3
- package/lib/utils/AggregationOperators/Week.d.ts +1 -3
- package/lib/utils/AggregationOperators/Year.d.ts +1 -3
- package/lib/utils/FilterOperators.d.ts +3 -1
- package/lib/utils/configurationFormUtils.d.ts +1 -1
- package/lib/utils/controlsUtils.d.ts +1 -1
- package/lib/utils/index.d.ts +6 -5
- package/lib/utils/utils.d.ts +2 -3
- package/package.json +75 -1
- package/reporting.js +1 -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
|
@@ -4,7 +4,6 @@ declare const _default: {
|
|
|
4
4
|
reportingcontrols: typeof import("./components/ReportingControls/ReportingControls").default;
|
|
5
5
|
reportinggrid: typeof import("./components/ReportingGrid/ReportingGrid").default;
|
|
6
6
|
};
|
|
7
|
-
utils: typeof ReportingConfigUtils;
|
|
8
7
|
templates: {
|
|
9
8
|
bootstrap: {
|
|
10
9
|
reportingGrid: {
|
|
@@ -18,6 +17,7 @@ declare const _default: {
|
|
|
18
17
|
};
|
|
19
18
|
semantic: {};
|
|
20
19
|
};
|
|
20
|
+
utils: typeof ReportingConfigUtils;
|
|
21
21
|
library: string;
|
|
22
22
|
};
|
|
23
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>;
|
|
@@ -9,6 +9,7 @@ export default class AggregationOperator implements IAggregationOperator {
|
|
|
9
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,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;
|
|
@@ -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,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,8 @@
|
|
|
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
|
-
|
|
6
|
-
};
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): any;
|
|
5
|
+
static getFieldArgs(settings: any): any;
|
|
7
6
|
static get operatorTitle(): string;
|
|
8
7
|
static get acceptedValueTypes(): any[];
|
|
9
8
|
static get aggregatedGroupOperator(): boolean;
|
|
@@ -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,15 +1,20 @@
|
|
|
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
|
-
|
|
6
|
-
};
|
|
4
|
+
static getDisplayField(settings: any, reportingConfig?: any): any;
|
|
5
|
+
static getFieldArgs(settings: any): any;
|
|
7
6
|
static get operatorTitle(): string;
|
|
8
7
|
static get aggregatedGroupOperator(): boolean;
|
|
9
8
|
static get acceptedValueTypes(): any[];
|
|
10
9
|
static get aggregatedCalculationOperator(): boolean;
|
|
11
10
|
static get calculationArgs(): string[];
|
|
12
11
|
getRequest(settings: any): {
|
|
13
|
-
$
|
|
12
|
+
$cond: (string | {
|
|
13
|
+
$eq: (string | number)[];
|
|
14
|
+
$divide?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
$divide: string[];
|
|
17
|
+
$eq?: undefined;
|
|
18
|
+
})[];
|
|
14
19
|
};
|
|
15
20
|
}
|
|
@@ -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[];
|
|
@@ -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;
|
|
@@ -32,7 +32,7 @@ export declare function addCalculatedColumnsOptions({ calculatedColumns, options
|
|
|
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
|
+
export declare function getCalculationArgsOptions(reportingForms: any[], calculatedColumns: any[], operator: any, calculatedValueIndex: any): any;
|
|
36
36
|
export declare function getReportingFormsComponentsAndExtraComponentsAsOptions({ reportingForms, calculatedColumns, selectedItems, operator, }: {
|
|
37
37
|
reportingForms?: any[];
|
|
38
38
|
calculatedColumns?: 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,13 +278,12 @@ declare const ReportingUtils: {
|
|
|
276
278
|
gridKey: string;
|
|
277
279
|
};
|
|
278
280
|
convertReportingFormCompIntoGridComp(comp: any, columnSettings: any): any;
|
|
281
|
+
getCalcOperatorFieldArgs(columnSettings: any): any;
|
|
279
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, reportingConfig?: any):
|
|
284
|
-
type: string;
|
|
285
|
-
};
|
|
286
|
+
getAggrOperatorNumberField(settings: any, reportingConfig?: any): any;
|
|
286
287
|
_: any;
|
|
287
288
|
valueTypes: any;
|
|
288
289
|
connectionByFullSubmissionObjectOptionValue: "submissionObject*";
|
package/lib/utils/utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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 getCalcOperatorFieldArgs(columnSettings: any): any;
|
|
4
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;
|
|
@@ -11,6 +12,4 @@ export declare const defaultColumns: {
|
|
|
11
12
|
component: any;
|
|
12
13
|
submissionRootPath: boolean;
|
|
13
14
|
}[];
|
|
14
|
-
export declare function getAggrOperatorNumberField(settings: any, reportingConfig?: any):
|
|
15
|
-
type: string;
|
|
16
|
-
};
|
|
15
|
+
export declare function getAggrOperatorNumberField(settings: any, reportingConfig?: any): any;
|
package/package.json
CHANGED
|
@@ -1 +1,75 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@formio/reporting",
|
|
3
|
+
"version": "2.0.0-dev.tt.2",
|
|
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 --tag=dev.tt"
|
|
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.68",
|
|
39
|
+
"@formio/license": "^2.0.0-rc.4",
|
|
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": "^9.0.0",
|
|
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.68"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"file-saver": "^2.0.5",
|
|
73
|
+
"jose": "^5.6.3"
|
|
74
|
+
}
|
|
75
|
+
}
|