@formio/reporting 2.0.1-rc.3 → 2.0.1-rc.4

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.
Files changed (46) hide show
  1. package/lib/Report.d.ts +8 -0
  2. package/lib/ReportForm.d.ts +7 -0
  3. package/lib/components/ReportingControls/ReportingControls.d.ts +36 -0
  4. package/lib/components/ReportingGrid/ReportingGrid.d.ts +56 -0
  5. package/lib/components/ReportingGrid/customFilters.d.ts +12 -0
  6. package/lib/components/index.d.ts +7 -0
  7. package/lib/index.d.ts +32 -0
  8. package/lib/licenseCheck/common.d.ts +5 -0
  9. package/lib/licenseCheck/index.d.ts +1 -0
  10. package/lib/licenseCheck/noLicenseCheck.d.ts +5 -0
  11. package/lib/providers/ReportingUrlFetchProvider.d.ts +85 -0
  12. package/lib/providers/index.d.ts +5 -0
  13. package/lib/services/ReportingStorageService.d.ts +7 -0
  14. package/lib/templates/bootstrap/index.d.ts +6 -0
  15. package/lib/templates/bootstrap/reportingGrid/index.d.ts +4 -0
  16. package/lib/templates/index.d.ts +23 -0
  17. package/lib/utils/AggregationOperators/AggregationOperator.d.ts +24 -0
  18. package/lib/utils/AggregationOperators/Avg.d.ts +15 -0
  19. package/lib/utils/AggregationOperators/Concat.d.ts +16 -0
  20. package/lib/utils/AggregationOperators/Count.d.ts +17 -0
  21. package/lib/utils/AggregationOperators/DateDiff.d.ts +20 -0
  22. package/lib/utils/AggregationOperators/DayOfMonth.d.ts +18 -0
  23. package/lib/utils/AggregationOperators/DayOfWeek.d.ts +18 -0
  24. package/lib/utils/AggregationOperators/DayOfYear.d.ts +18 -0
  25. package/lib/utils/AggregationOperators/Divide.d.ts +22 -0
  26. package/lib/utils/AggregationOperators/Max.d.ts +15 -0
  27. package/lib/utils/AggregationOperators/Min.d.ts +15 -0
  28. package/lib/utils/AggregationOperators/Month.d.ts +18 -0
  29. package/lib/utils/AggregationOperators/Multiply.d.ts +15 -0
  30. package/lib/utils/AggregationOperators/Percentage.d.ts +15 -0
  31. package/lib/utils/AggregationOperators/Size.d.ts +23 -0
  32. package/lib/utils/AggregationOperators/Subtract.d.ts +16 -0
  33. package/lib/utils/AggregationOperators/Sum.d.ts +18 -0
  34. package/lib/utils/AggregationOperators/Week.d.ts +18 -0
  35. package/lib/utils/AggregationOperators/Year.d.ts +18 -0
  36. package/lib/utils/AggregationOperators/index.d.ts +22 -0
  37. package/lib/utils/FilterOperators.d.ts +4 -0
  38. package/lib/utils/configurationFormUtils.d.ts +72 -0
  39. package/lib/utils/controlsUtils.d.ts +255 -0
  40. package/lib/utils/filtersQueries.d.ts +21 -0
  41. package/lib/utils/gridUtils.d.ts +3 -0
  42. package/lib/utils/index.d.ts +314 -0
  43. package/lib/utils/libraryName.d.ts +2 -0
  44. package/lib/utils/utils.d.ts +31 -0
  45. package/package.json +2 -2
  46. package/reporting.js +1 -1
@@ -0,0 +1,18 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Week extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: 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
+ $week: {
14
+ date: string;
15
+ timezone: string;
16
+ };
17
+ };
18
+ }
@@ -0,0 +1,18 @@
1
+ import AggregationOperator from './AggregationOperator';
2
+ export default class Year extends AggregationOperator {
3
+ static get operatorKey(): string;
4
+ static getDisplayField(settings: any, reportingConfig?: 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
+ $year: {
14
+ date: string;
15
+ timezone: string;
16
+ };
17
+ };
18
+ }
@@ -0,0 +1,22 @@
1
+ import Year from './Year';
2
+ import DateDiff from './DateDiff';
3
+ import Divide from './Divide';
4
+ import Multiply from './Multiply';
5
+ import Sum from './Sum';
6
+ import Count from './Count';
7
+ import Max from './Max';
8
+ import Min from './Min';
9
+ import Avg from './Avg';
10
+ import Concat from './Concat';
11
+ import Size from './Size';
12
+ import Month from './Month';
13
+ import Week from './Week';
14
+ import DayOfMonth from './DayOfMonth';
15
+ import DayOfWeek from './DayOfWeek';
16
+ import DayOfYear from './DayOfYear';
17
+ import Subtract from './Subtract';
18
+ import Percentage from './Percentage';
19
+ declare const AggregationOperators: {
20
+ [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 | typeof Percentage;
21
+ };
22
+ export default AggregationOperators;
@@ -0,0 +1,4 @@
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
+ };
4
+ export default FilterOperators;
@@ -0,0 +1,72 @@
1
+ export declare function getFilterOperatorOptions(operators?: any[]): {
2
+ label: string;
3
+ value: string;
4
+ }[];
5
+ export declare function getFilterOperatorsOptionsForCompType(compType: any): {
6
+ label: string;
7
+ value: string;
8
+ }[];
9
+ export declare function getControlsFilterOperators(columnSettings: any, reportingForms?: any[], calculatedColumnsSettings?: any[]): {
10
+ label: string;
11
+ value: string;
12
+ }[];
13
+ export declare function getUnselectedColumnsOptions(columnsOptions: any, selectedColumns: any): any[];
14
+ export declare function getReportingFormAsOption(form: any): {
15
+ label: any;
16
+ value: any;
17
+ };
18
+ export declare function getConnectionBaseFormOptions(reportingForms: any[], connections: any[], compRowIndex: any): {
19
+ label: any;
20
+ value: any;
21
+ }[];
22
+ export declare function getConnectionJoiningFormOptions(reportingForms: any[], connections: any[], compRowIndex: any): {
23
+ label: any;
24
+ value: any;
25
+ }[];
26
+ export declare function getConnectionFormComponentsAsOptions(formId: any, reportingForms?: any[]): {
27
+ label: string;
28
+ value: string;
29
+ }[];
30
+ export declare function getAggregationOperatorsOptions(groupOperators?: boolean): {
31
+ value: string;
32
+ label: string;
33
+ }[];
34
+ export declare function getReportingFormComponentAsOption(form: any, comp: any, compPath: any): {
35
+ value: {
36
+ path: any;
37
+ formId: any;
38
+ };
39
+ label: string;
40
+ };
41
+ export declare function getReportingFormsComponentsAsOptions(reportingForms: any, operator?: any): any[];
42
+ export declare function getCalculatedColumnAsOption(column: any): {
43
+ value: {
44
+ path: any;
45
+ };
46
+ label: string;
47
+ };
48
+ export declare function addCalculatedColumnsOptions({ calculatedColumns, options, operator, }: {
49
+ calculatedColumns?: any[];
50
+ options: any;
51
+ operator?: any;
52
+ }): void;
53
+ export declare function getCalculationArgsOptions(reportingForms: any[], calculatedColumns: any[], operator: any, calculatedValueIndex: any): any[];
54
+ export declare function getReportingFormsComponentsAndExtraComponentsAsOptions({ reportingForms, calculatedColumns, selectedItems, operator, }: {
55
+ reportingForms?: any[];
56
+ calculatedColumns?: any[];
57
+ selectedItems?: any[];
58
+ operator?: any;
59
+ }): any[];
60
+ export declare function getColumnsListOptions(reportingForms: any[], groupsSettings: any, calculatedColumns: any): any[];
61
+ export declare function getAvailableColumnsAsOptions(availableColumns: any, columnsList: any): any[];
62
+ export declare function getCustomScriptAvailableVarialbles(): string;
63
+ export declare function getDateDiffUnitOptions(operator: any): {
64
+ label: any;
65
+ value: any;
66
+ }[];
67
+ export declare function showAggregationOperatorArg(compKey: any, operator: any): boolean;
68
+ export declare function showGroupOperatorArg(operator: any): boolean;
69
+ export declare function getReportTypeInfo(data: any, instance: any): {
70
+ grouping: boolean;
71
+ typeChanged: boolean;
72
+ };
@@ -0,0 +1,255 @@
1
+ export declare const reportingControlsConfig: {
2
+ controlsKey: string;
3
+ filtersCompKey: string;
4
+ actionCompKey: string;
5
+ displayedColumnsCompKey: string;
6
+ events: {
7
+ applyColumns: string;
8
+ filter: string;
9
+ clearFilters: string;
10
+ performAction: string;
11
+ };
12
+ filterSetClass: string;
13
+ };
14
+ export declare function getColumnsTab(): {
15
+ label: string;
16
+ key: string;
17
+ components: ({
18
+ label: string;
19
+ hideLabel: boolean;
20
+ description: string;
21
+ widget: string;
22
+ multiple: boolean;
23
+ dataSrc: string;
24
+ valueProperty: string;
25
+ dataType: string;
26
+ key: string;
27
+ data: {
28
+ custom({ instance, _ }: {
29
+ instance: any;
30
+ _: any;
31
+ }): any;
32
+ };
33
+ customDefaultValue({ instance, _ }: {
34
+ instance: any;
35
+ _: any;
36
+ }): any;
37
+ type: string;
38
+ input: boolean;
39
+ action?: undefined;
40
+ showValidations?: undefined;
41
+ event?: undefined;
42
+ } | {
43
+ label: string;
44
+ action: string;
45
+ showValidations: boolean;
46
+ key: string;
47
+ type: string;
48
+ event: string;
49
+ input: boolean;
50
+ hideLabel?: undefined;
51
+ description?: undefined;
52
+ widget?: undefined;
53
+ multiple?: undefined;
54
+ dataSrc?: undefined;
55
+ valueProperty?: undefined;
56
+ dataType?: undefined;
57
+ data?: undefined;
58
+ })[];
59
+ };
60
+ export declare function getSingleFilterOperators(): string[];
61
+ export declare function getSingleFilterOperatorValueComp(filter: any): {
62
+ widget: string;
63
+ data: {
64
+ values: {
65
+ label: string;
66
+ value: string;
67
+ }[];
68
+ };
69
+ dataType: string;
70
+ type: string;
71
+ input: boolean;
72
+ };
73
+ export declare function getFilterSetStyleLogic(): {
74
+ name: string;
75
+ trigger: {
76
+ type: string;
77
+ javascript: string;
78
+ };
79
+ actions: {
80
+ name: string;
81
+ type: string;
82
+ customAction: string;
83
+ }[];
84
+ };
85
+ export declare function getFilterColumns(filterComponents: any, filtersPerRow?: number): any[];
86
+ export declare function getFiltersTab(filterComponents: any, filtersPerRow: any): {
87
+ label: string;
88
+ key: string;
89
+ components: ({
90
+ label: string;
91
+ key: string;
92
+ type: string;
93
+ input: boolean;
94
+ components: any[];
95
+ columns?: undefined;
96
+ } | {
97
+ label: string;
98
+ columns: ({
99
+ components: {
100
+ label: string;
101
+ action: string;
102
+ showValidations: boolean;
103
+ disableOnInvalid: boolean;
104
+ key: string;
105
+ type: string;
106
+ event: string;
107
+ input: boolean;
108
+ }[];
109
+ width: number;
110
+ offset: number;
111
+ push: number;
112
+ pull: number;
113
+ size: string;
114
+ currentWidth: number;
115
+ } | {
116
+ components: {
117
+ label: string;
118
+ action: string;
119
+ showValidations: boolean;
120
+ theme: string;
121
+ key: string;
122
+ type: string;
123
+ event: string;
124
+ input: boolean;
125
+ }[];
126
+ width: number;
127
+ offset: number;
128
+ push: number;
129
+ pull: number;
130
+ size: string;
131
+ currentWidth: number;
132
+ })[];
133
+ key: string;
134
+ type: string;
135
+ input: boolean;
136
+ components?: undefined;
137
+ })[];
138
+ };
139
+ export declare function getActionsTab(actions: any): {
140
+ label: string;
141
+ key: string;
142
+ components: ({
143
+ label: string;
144
+ widget: string;
145
+ data: {
146
+ values: {
147
+ label: any;
148
+ value: string;
149
+ }[];
150
+ };
151
+ dataType: string;
152
+ key: string;
153
+ type: string;
154
+ hideLabel: boolean;
155
+ placeholder: string;
156
+ description: string;
157
+ input: boolean;
158
+ action?: undefined;
159
+ event?: undefined;
160
+ disabled?: undefined;
161
+ logic?: undefined;
162
+ } | {
163
+ label: string;
164
+ action: string;
165
+ key: string;
166
+ type: string;
167
+ event: string;
168
+ input: boolean;
169
+ disabled: boolean;
170
+ logic: ({
171
+ name: string;
172
+ trigger: {
173
+ type: string;
174
+ javascript: string;
175
+ event?: undefined;
176
+ };
177
+ actions: {
178
+ name: string;
179
+ type: string;
180
+ property: {
181
+ label: string;
182
+ value: string;
183
+ type: string;
184
+ };
185
+ state: boolean;
186
+ }[];
187
+ } | {
188
+ name: string;
189
+ trigger: {
190
+ type: string;
191
+ javascript: string;
192
+ event?: undefined;
193
+ };
194
+ actions: {
195
+ name: string;
196
+ type: string;
197
+ property: {
198
+ label: string;
199
+ value: string;
200
+ type: string;
201
+ };
202
+ text: string;
203
+ }[];
204
+ } | {
205
+ name: string;
206
+ trigger: {
207
+ type: string;
208
+ event: string;
209
+ javascript?: undefined;
210
+ };
211
+ actions: {
212
+ name: string;
213
+ type: string;
214
+ customAction: string;
215
+ }[];
216
+ })[];
217
+ widget?: undefined;
218
+ data?: undefined;
219
+ dataType?: undefined;
220
+ hideLabel?: undefined;
221
+ placeholder?: undefined;
222
+ description?: undefined;
223
+ })[];
224
+ };
225
+ export declare function getControlsTabsComponet({ title, collapsePanel, theme, tabs, }: {
226
+ title?: string;
227
+ collapsePanel?: boolean;
228
+ theme?: string;
229
+ tabs?: any[];
230
+ }): {
231
+ title: string;
232
+ collapsible: boolean;
233
+ key: string;
234
+ type: string;
235
+ label: string;
236
+ collapsed: boolean;
237
+ theme: string;
238
+ components: {
239
+ label: string;
240
+ components: any[];
241
+ key: string;
242
+ type: string;
243
+ input: boolean;
244
+ }[];
245
+ };
246
+ export declare function convertToCSV({ submissions, components, fileName }: {
247
+ submissions: any;
248
+ components: any;
249
+ fileName: any;
250
+ }): void;
251
+ export declare const getPDFDownloadUrl: ({ projectId, submissions, form }: {
252
+ projectId: any;
253
+ submissions: any;
254
+ form: any;
255
+ }) => Promise<string>;
@@ -0,0 +1,21 @@
1
+ declare const filtersQueries: {
2
+ equal: string;
3
+ notEqual: string;
4
+ startsWith: string;
5
+ contain: string;
6
+ notContain: string;
7
+ endsWith: string;
8
+ matches: string;
9
+ greaterThen: string;
10
+ greaterThenOrEqual: string;
11
+ lessThen: string;
12
+ lessThenOrEqual: string;
13
+ exist: string;
14
+ empty: string;
15
+ notEmpty: string;
16
+ notExist: string;
17
+ sort: string;
18
+ limit: string;
19
+ skip: string;
20
+ };
21
+ export default filtersQueries;
@@ -0,0 +1,3 @@
1
+ export declare const reportingGridConfig: {
2
+ gridKey: string;
3
+ };