@formio/reporting 2.0.0-dev.tt.7 → 2.0.0-dev.tt.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/lib/Report.d.ts +2 -1
- package/lib/components/ReportingControls/ReportingControls.d.ts +3 -3
- package/lib/components/ReportingGrid/ReportingGrid.d.ts +6 -4
- package/lib/index.d.ts +321 -0
- package/lib/utils/AggregationOperators/AggregationOperator.d.ts +1 -1
- package/lib/utils/AggregationOperators/Concat.d.ts +2 -2
- package/lib/utils/AggregationOperators/DateDiff.d.ts +1 -1
- package/lib/utils/AggregationOperators/Divide.d.ts +1 -1
- package/lib/utils/AggregationOperators/Multiply.d.ts +1 -1
- package/lib/utils/AggregationOperators/Subtract.d.ts +1 -1
- package/lib/utils/AggregationOperators/Sum.d.ts +1 -1
- package/lib/utils/AggregationOperators/Week.d.ts +1 -1
- package/lib/utils/AggregationOperators/index.d.ts +2 -2
- package/lib/utils/configurationFormUtils.d.ts +34 -12
- package/lib/utils/controlsUtils.d.ts +5 -2
- package/lib/utils/index.d.ts +20 -4
- package/lib/utils/utils.d.ts +16 -2
- package/package.json +3 -3
- package/reporting.js +1 -1
package/lib/Report.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
declare const Report_base: any;
|
|
2
2
|
declare class Report extends Report_base {
|
|
3
|
+
constructor(elementOrForm: any, formOrOptions: any, options?: any);
|
|
3
4
|
setForm(reportParam: any): any;
|
|
4
5
|
create(): any;
|
|
5
|
-
static create(): any;
|
|
6
|
+
static create(elementOrForm: any, formOrOptions: any, options?: {}): any;
|
|
6
7
|
}
|
|
7
8
|
declare const _default: typeof Report;
|
|
8
9
|
export default _default;
|
|
@@ -9,21 +9,21 @@ export default class ReportingControls extends ReportingControls_base {
|
|
|
9
9
|
clearFilters: string;
|
|
10
10
|
performAction: string;
|
|
11
11
|
};
|
|
12
|
-
get singleFilterOperators():
|
|
12
|
+
get singleFilterOperators(): string[];
|
|
13
13
|
get reportingConfig(): any;
|
|
14
14
|
get reportingForms(): any;
|
|
15
15
|
get reportingId(): any;
|
|
16
16
|
get formioGrid(): any;
|
|
17
17
|
get controlsSaveKey(): string;
|
|
18
18
|
attach(element: any): any;
|
|
19
|
-
getFilterComponents(): any;
|
|
19
|
+
getFilterComponents(): any[];
|
|
20
20
|
getFilterValueCompFromGridComp(gridComp: any, filter: any, ind: any): any;
|
|
21
21
|
toggleFilterClass(filterInstance: any): void;
|
|
22
22
|
getTabs(): any[];
|
|
23
23
|
formatFilterValue(filterSettings: any, value: any): any;
|
|
24
24
|
getActionComponents(applyActionFor: any): any;
|
|
25
25
|
setGridFilters(filters?: {}): void;
|
|
26
|
-
getGridFilters():
|
|
26
|
+
getGridFilters(): {} | Exclude<this["formioGrid.options.fetchProvider.defaultFilters"], undefined>;
|
|
27
27
|
downloadPDF(action: any): Promise<void>;
|
|
28
28
|
exportCSV(action: any): void;
|
|
29
29
|
onApplyColumns(): void;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
2
|
+
import { Utils } from '@formio/js';
|
|
1
3
|
import ReportingUrlFetchProvider from '../../providers/ReportingUrlFetchProvider';
|
|
2
4
|
declare const ReportingGrid_base: any;
|
|
3
5
|
export default class ReportingGrid extends ReportingGrid_base {
|
|
@@ -12,13 +14,13 @@ export default class ReportingGrid extends ReportingGrid_base {
|
|
|
12
14
|
get reportingConfig(): any;
|
|
13
15
|
get reportingForms(): any;
|
|
14
16
|
get reportingId(): any;
|
|
15
|
-
get visibility():
|
|
17
|
+
get visibility(): {};
|
|
16
18
|
get fetchProvider(): ReportingUrlFetchProvider;
|
|
17
19
|
get iteratableRows(): any[];
|
|
18
20
|
addReportingColumnProperties(comp: any, columnSettings: any): void;
|
|
19
21
|
getCalculatedColumnSchema(columnSettings: any): any;
|
|
20
|
-
formatGridComponent(comp: any, columnSettings: any): any
|
|
21
|
-
isDefaultColumn(columnReportingSettings: any):
|
|
22
|
+
formatGridComponent(comp: any, columnSettings: any): Utils._.Omit<any, "logic" | "prefix" | "suffix" | "action" | "defaultValue" | "conditional" | "hideLabel" | "calculateValue" | "validate" | "hidden" | "customConditional">;
|
|
23
|
+
isDefaultColumn(columnReportingSettings: any): boolean;
|
|
22
24
|
addColumnsFromReportingForms(allColumns: any, fieldsGroupedByForm: any): void;
|
|
23
25
|
checkDeconstructions(fieldSettings: any): void;
|
|
24
26
|
checkDeconstructionRequirement(formId: any, compPath: any): void;
|
|
@@ -41,7 +43,7 @@ export default class ReportingGrid extends ReportingGrid_base {
|
|
|
41
43
|
resetValue: () => void;
|
|
42
44
|
};
|
|
43
45
|
customFilters(component: any): any;
|
|
44
|
-
getGridColumns(): any;
|
|
46
|
+
getGridColumns(): any[];
|
|
45
47
|
get preview(): any;
|
|
46
48
|
initFormioGrid(FormioGrid: any): Promise<any>;
|
|
47
49
|
transformFetchedData(responseData: any): any;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,329 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
2
|
+
/// <reference types="lodash" />
|
|
3
|
+
/// <reference types="lodash" />
|
|
4
|
+
/// <reference types="lodash" />
|
|
5
|
+
/// <reference types="lodash" />
|
|
6
|
+
/// <reference types="lodash" />
|
|
7
|
+
/// <reference types="lodash" />
|
|
8
|
+
/// <reference types="lodash" />
|
|
9
|
+
/// <reference types="lodash" />
|
|
10
|
+
/// <reference types="lodash" />
|
|
11
|
+
/// <reference types="lodash" />
|
|
12
|
+
/// <reference types="lodash" />
|
|
13
|
+
/// <reference types="lodash" />
|
|
14
|
+
import { Utils } from '@formio/js';
|
|
1
15
|
import Report from './Report';
|
|
2
16
|
import ReportingUtils from './utils';
|
|
3
17
|
import * as ReportingConfigUtils from './utils/configurationFormUtils';
|
|
4
18
|
export { Report, ReportingUtils };
|
|
5
19
|
declare const _default: {
|
|
20
|
+
Report: {
|
|
21
|
+
new (elementOrForm: any, formOrOptions: any, options?: any): {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
setForm(reportParam: any): any;
|
|
24
|
+
create(): any;
|
|
25
|
+
};
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
create(elementOrForm: any, formOrOptions: any, options?: {}): any;
|
|
28
|
+
};
|
|
29
|
+
ReportingUtils: {
|
|
30
|
+
FilterOperators: {
|
|
31
|
+
[x: string]: typeof import("@formio/js/lib/cjs/utils/conditionOperators/IsEqualTo").default | typeof import("@formio/js/lib/cjs/utils/conditionOperators/DateGreaterThan").default;
|
|
32
|
+
};
|
|
33
|
+
filtersQueries: {
|
|
34
|
+
equal: string;
|
|
35
|
+
notEqual: string;
|
|
36
|
+
startsWith: string;
|
|
37
|
+
contain: string;
|
|
38
|
+
notContain: string;
|
|
39
|
+
endsWith: string;
|
|
40
|
+
matches: string;
|
|
41
|
+
greaterThen: string;
|
|
42
|
+
greaterThenOrEqual: string;
|
|
43
|
+
lessThen: string;
|
|
44
|
+
lessThenOrEqual: string;
|
|
45
|
+
exist: string;
|
|
46
|
+
empty: string;
|
|
47
|
+
notEmpty: string;
|
|
48
|
+
notExist: string;
|
|
49
|
+
sort: string;
|
|
50
|
+
limit: string;
|
|
51
|
+
skip: string;
|
|
52
|
+
};
|
|
53
|
+
getColumnsTab(): {
|
|
54
|
+
label: string;
|
|
55
|
+
key: string;
|
|
56
|
+
components: ({
|
|
57
|
+
label: string;
|
|
58
|
+
hideLabel: boolean;
|
|
59
|
+
description: string;
|
|
60
|
+
widget: string;
|
|
61
|
+
multiple: boolean;
|
|
62
|
+
dataSrc: string;
|
|
63
|
+
valueProperty: string;
|
|
64
|
+
dataType: string;
|
|
65
|
+
key: string;
|
|
66
|
+
data: {
|
|
67
|
+
custom({ instance, _ }: {
|
|
68
|
+
instance: any;
|
|
69
|
+
_: any;
|
|
70
|
+
}): any;
|
|
71
|
+
};
|
|
72
|
+
customDefaultValue({ instance, _ }: {
|
|
73
|
+
instance: any;
|
|
74
|
+
_: any;
|
|
75
|
+
}): any;
|
|
76
|
+
type: string;
|
|
77
|
+
input: boolean;
|
|
78
|
+
action?: undefined;
|
|
79
|
+
showValidations?: undefined;
|
|
80
|
+
event?: undefined;
|
|
81
|
+
} | {
|
|
82
|
+
label: string;
|
|
83
|
+
action: string;
|
|
84
|
+
showValidations: boolean;
|
|
85
|
+
key: string;
|
|
86
|
+
type: string;
|
|
87
|
+
event: string;
|
|
88
|
+
input: boolean;
|
|
89
|
+
hideLabel?: undefined;
|
|
90
|
+
description?: undefined;
|
|
91
|
+
widget?: undefined;
|
|
92
|
+
multiple?: undefined;
|
|
93
|
+
dataSrc?: undefined;
|
|
94
|
+
valueProperty?: undefined;
|
|
95
|
+
dataType?: undefined;
|
|
96
|
+
data?: undefined;
|
|
97
|
+
})[];
|
|
98
|
+
};
|
|
99
|
+
getSingleFilterOperators(): string[];
|
|
100
|
+
getSingleFilterOperatorValueComp(filter: any): {
|
|
101
|
+
widget: string;
|
|
102
|
+
data: {
|
|
103
|
+
values: {
|
|
104
|
+
label: string;
|
|
105
|
+
value: string;
|
|
106
|
+
}[];
|
|
107
|
+
};
|
|
108
|
+
dataType: string;
|
|
109
|
+
type: string;
|
|
110
|
+
input: boolean;
|
|
111
|
+
};
|
|
112
|
+
getFilterSetStyleLogic(): {
|
|
113
|
+
name: string;
|
|
114
|
+
trigger: {
|
|
115
|
+
type: string;
|
|
116
|
+
javascript: string;
|
|
117
|
+
};
|
|
118
|
+
actions: {
|
|
119
|
+
name: string;
|
|
120
|
+
type: string;
|
|
121
|
+
customAction: string;
|
|
122
|
+
}[];
|
|
123
|
+
};
|
|
124
|
+
getFilterColumns(filterComponents: any, filtersPerRow?: number): any[];
|
|
125
|
+
getFiltersTab(filterComponents: any, filtersPerRow: any): {
|
|
126
|
+
label: string;
|
|
127
|
+
key: string;
|
|
128
|
+
components: ({
|
|
129
|
+
label: string;
|
|
130
|
+
key: string;
|
|
131
|
+
type: string;
|
|
132
|
+
input: boolean;
|
|
133
|
+
components: any[];
|
|
134
|
+
columns?: undefined;
|
|
135
|
+
} | {
|
|
136
|
+
label: string;
|
|
137
|
+
columns: ({
|
|
138
|
+
components: {
|
|
139
|
+
label: string;
|
|
140
|
+
action: string;
|
|
141
|
+
showValidations: boolean;
|
|
142
|
+
disableOnInvalid: boolean;
|
|
143
|
+
key: string;
|
|
144
|
+
type: string;
|
|
145
|
+
event: string;
|
|
146
|
+
input: boolean;
|
|
147
|
+
}[];
|
|
148
|
+
width: number;
|
|
149
|
+
offset: number;
|
|
150
|
+
push: number;
|
|
151
|
+
pull: number;
|
|
152
|
+
size: string;
|
|
153
|
+
currentWidth: number;
|
|
154
|
+
} | {
|
|
155
|
+
components: {
|
|
156
|
+
label: string;
|
|
157
|
+
action: string;
|
|
158
|
+
showValidations: boolean;
|
|
159
|
+
theme: string;
|
|
160
|
+
key: string;
|
|
161
|
+
type: string;
|
|
162
|
+
event: string;
|
|
163
|
+
input: boolean;
|
|
164
|
+
}[];
|
|
165
|
+
width: number;
|
|
166
|
+
offset: number;
|
|
167
|
+
push: number;
|
|
168
|
+
pull: number;
|
|
169
|
+
size: string;
|
|
170
|
+
currentWidth: number;
|
|
171
|
+
})[];
|
|
172
|
+
key: string;
|
|
173
|
+
type: string;
|
|
174
|
+
input: boolean;
|
|
175
|
+
components?: undefined;
|
|
176
|
+
})[];
|
|
177
|
+
};
|
|
178
|
+
getActionsTab(actions: any): {
|
|
179
|
+
label: string;
|
|
180
|
+
key: string;
|
|
181
|
+
components: ({
|
|
182
|
+
label: string;
|
|
183
|
+
widget: string;
|
|
184
|
+
data: {
|
|
185
|
+
values: {
|
|
186
|
+
label: any;
|
|
187
|
+
value: string;
|
|
188
|
+
}[];
|
|
189
|
+
};
|
|
190
|
+
dataType: string;
|
|
191
|
+
key: string;
|
|
192
|
+
type: string;
|
|
193
|
+
hideLabel: boolean;
|
|
194
|
+
placeholder: string;
|
|
195
|
+
description: string;
|
|
196
|
+
input: boolean;
|
|
197
|
+
action?: undefined;
|
|
198
|
+
event?: undefined;
|
|
199
|
+
disabled?: undefined;
|
|
200
|
+
logic?: undefined;
|
|
201
|
+
} | {
|
|
202
|
+
label: string;
|
|
203
|
+
action: string;
|
|
204
|
+
key: string;
|
|
205
|
+
type: string;
|
|
206
|
+
event: string;
|
|
207
|
+
input: boolean;
|
|
208
|
+
disabled: boolean;
|
|
209
|
+
logic: ({
|
|
210
|
+
name: string;
|
|
211
|
+
trigger: {
|
|
212
|
+
type: string;
|
|
213
|
+
javascript: string;
|
|
214
|
+
event?: undefined;
|
|
215
|
+
};
|
|
216
|
+
actions: {
|
|
217
|
+
name: string;
|
|
218
|
+
type: string;
|
|
219
|
+
property: {
|
|
220
|
+
label: string;
|
|
221
|
+
value: string;
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
state: boolean;
|
|
225
|
+
}[];
|
|
226
|
+
} | {
|
|
227
|
+
name: string;
|
|
228
|
+
trigger: {
|
|
229
|
+
type: string;
|
|
230
|
+
javascript: string;
|
|
231
|
+
event?: undefined;
|
|
232
|
+
};
|
|
233
|
+
actions: {
|
|
234
|
+
name: string;
|
|
235
|
+
type: string;
|
|
236
|
+
property: {
|
|
237
|
+
label: string;
|
|
238
|
+
value: string;
|
|
239
|
+
type: string;
|
|
240
|
+
};
|
|
241
|
+
text: string;
|
|
242
|
+
}[];
|
|
243
|
+
} | {
|
|
244
|
+
name: string;
|
|
245
|
+
trigger: {
|
|
246
|
+
type: string;
|
|
247
|
+
event: string;
|
|
248
|
+
javascript?: undefined;
|
|
249
|
+
};
|
|
250
|
+
actions: {
|
|
251
|
+
name: string;
|
|
252
|
+
type: string;
|
|
253
|
+
customAction: string;
|
|
254
|
+
}[];
|
|
255
|
+
})[];
|
|
256
|
+
widget?: undefined;
|
|
257
|
+
data?: undefined;
|
|
258
|
+
dataType?: undefined;
|
|
259
|
+
hideLabel?: undefined;
|
|
260
|
+
placeholder?: undefined;
|
|
261
|
+
description?: undefined;
|
|
262
|
+
})[];
|
|
263
|
+
};
|
|
264
|
+
getControlsTabsComponet({ title, collapsePanel, theme, tabs, }: {
|
|
265
|
+
title?: string;
|
|
266
|
+
collapsePanel?: boolean;
|
|
267
|
+
theme?: string;
|
|
268
|
+
tabs?: any[];
|
|
269
|
+
}): {
|
|
270
|
+
title: string;
|
|
271
|
+
collapsible: boolean;
|
|
272
|
+
key: string;
|
|
273
|
+
type: string;
|
|
274
|
+
label: string;
|
|
275
|
+
collapsed: boolean;
|
|
276
|
+
theme: string;
|
|
277
|
+
components: {
|
|
278
|
+
label: string;
|
|
279
|
+
components: any[];
|
|
280
|
+
key: string;
|
|
281
|
+
type: string;
|
|
282
|
+
input: boolean;
|
|
283
|
+
}[];
|
|
284
|
+
};
|
|
285
|
+
convertToCSV({ submissions, components, fileName }: {
|
|
286
|
+
submissions: any;
|
|
287
|
+
components: any;
|
|
288
|
+
fileName: any;
|
|
289
|
+
}): void;
|
|
290
|
+
reportingControlsConfig: {
|
|
291
|
+
controlsKey: string;
|
|
292
|
+
filtersCompKey: string;
|
|
293
|
+
actionCompKey: string;
|
|
294
|
+
displayedColumnsCompKey: string;
|
|
295
|
+
events: {
|
|
296
|
+
applyColumns: string;
|
|
297
|
+
filter: string;
|
|
298
|
+
clearFilters: string;
|
|
299
|
+
performAction: string;
|
|
300
|
+
};
|
|
301
|
+
filterSetClass: string;
|
|
302
|
+
};
|
|
303
|
+
getPDFDownloadUrl: ({ projectId, submissions, form }: {
|
|
304
|
+
projectId: any;
|
|
305
|
+
submissions: any;
|
|
306
|
+
form: any;
|
|
307
|
+
}) => Promise<string>;
|
|
308
|
+
reportingGridConfig: {
|
|
309
|
+
gridKey: string;
|
|
310
|
+
};
|
|
311
|
+
convertReportingFormCompIntoGridComp(comp: any, columnSettings: any): Utils._.Omit<any, "logic" | "prefix" | "suffix" | "action" | "defaultValue" | "conditional" | "hideLabel" | "calculateValue" | "validate" | "hidden" | "customConditional">;
|
|
312
|
+
getCalcOperatorFieldArgs(columnSettings: any): any;
|
|
313
|
+
convertReportingCalcSettingsIntoGridComp(columnSettings: any, reportingConfig?: any): any;
|
|
314
|
+
getPropertyFromFormId(formId: any): string;
|
|
315
|
+
getDataPath(setting: any): string;
|
|
316
|
+
getJoinedFormDataPathInJoinedObj(formId: any): string;
|
|
317
|
+
getAggrOperatorNumberField(settings: any, reportingConfig?: any): any;
|
|
318
|
+
_: Utils._.LoDashStatic;
|
|
319
|
+
valueTypes: any;
|
|
320
|
+
connectionByFullSubmissionObjectOptionValue: "submissionObject*";
|
|
321
|
+
defaultColumns: {
|
|
322
|
+
path: string;
|
|
323
|
+
component: any;
|
|
324
|
+
submissionRootPath: boolean;
|
|
325
|
+
}[];
|
|
326
|
+
};
|
|
6
327
|
components: {
|
|
7
328
|
reportingcontrols: typeof import("./components/ReportingControls/ReportingControls").default;
|
|
8
329
|
reportinggrid: typeof import("./components/ReportingGrid/ReportingGrid").default;
|
|
@@ -9,7 +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
|
+
static getFieldArgs(settings: any): any[];
|
|
13
13
|
static get acceptedValueTypes(): any[];
|
|
14
14
|
static get operatorTitle(): string;
|
|
15
15
|
static get aggregatedGroupOperator(): boolean;
|
|
@@ -4,13 +4,13 @@ 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
|
+
static getFieldArgs(settings: any): any[];
|
|
8
8
|
static get operatorTitle(): string;
|
|
9
9
|
static get acceptedValueTypes(): any[];
|
|
10
10
|
static get aggregatedGroupOperator(): boolean;
|
|
11
11
|
static get aggregatedCalculationOperator(): boolean;
|
|
12
12
|
static get calculationArgs(): string[];
|
|
13
13
|
getRequest(settings: any): {
|
|
14
|
-
$concat: any;
|
|
14
|
+
$concat: any[];
|
|
15
15
|
};
|
|
16
16
|
}
|
|
@@ -2,7 +2,7 @@ import AggregationOperator from './AggregationOperator';
|
|
|
2
2
|
export default class DateDiff extends AggregationOperator {
|
|
3
3
|
static get operatorKey(): string;
|
|
4
4
|
static getDisplayField(settings: any, reportingConfig?: any): any;
|
|
5
|
-
static getFieldArgs(settings: any): any;
|
|
5
|
+
static getFieldArgs(settings: any): any[];
|
|
6
6
|
static get operatorTitle(): string;
|
|
7
7
|
static get acceptedValueTypes(): any[];
|
|
8
8
|
static get aggregatedGroupOperator(): boolean;
|
|
@@ -2,7 +2,7 @@ import AggregationOperator from './AggregationOperator';
|
|
|
2
2
|
export default class Divide extends AggregationOperator {
|
|
3
3
|
static get operatorKey(): string;
|
|
4
4
|
static getDisplayField(settings: any, reportingConfig?: any): any;
|
|
5
|
-
static getFieldArgs(settings: any): any;
|
|
5
|
+
static getFieldArgs(settings: any): any[];
|
|
6
6
|
static get operatorTitle(): string;
|
|
7
7
|
static get aggregatedGroupOperator(): boolean;
|
|
8
8
|
static get acceptedValueTypes(): any[];
|
|
@@ -6,7 +6,7 @@ export default class Subtract extends AggregationOperator {
|
|
|
6
6
|
static get aggregatedGroupOperator(): boolean;
|
|
7
7
|
static get acceptedValueTypes(): any[];
|
|
8
8
|
static get aggregatedCalculationOperator(): boolean;
|
|
9
|
-
static getFieldArgs(settings: any): any;
|
|
9
|
+
static getFieldArgs(settings: any): any[];
|
|
10
10
|
static get calculationArgs(): string[];
|
|
11
11
|
getRequest(settings: any): {
|
|
12
12
|
$subtract: string[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import Year from './Year';
|
|
2
2
|
import DateDiff from './DateDiff';
|
|
3
3
|
import Divide from './Divide';
|
|
4
|
-
import Multiply from './Multiply';
|
|
5
4
|
import Sum from './Sum';
|
|
6
5
|
import Count from './Count';
|
|
7
6
|
import Max from './Max';
|
|
@@ -15,7 +14,8 @@ import DayOfMonth from './DayOfMonth';
|
|
|
15
14
|
import DayOfWeek from './DayOfWeek';
|
|
16
15
|
import DayOfYear from './DayOfYear';
|
|
17
16
|
import Subtract from './Subtract';
|
|
17
|
+
import Percentage from './Percentage';
|
|
18
18
|
declare const AggregationOperators: {
|
|
19
|
-
[x: string]: typeof Year | typeof DateDiff | typeof Divide | typeof
|
|
19
|
+
[x: string]: typeof Year | typeof DateDiff | typeof Divide | 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;
|
|
20
20
|
};
|
|
21
21
|
export default AggregationOperators;
|
|
@@ -1,18 +1,36 @@
|
|
|
1
|
-
export declare function getFilterOperatorOptions(operators?: any[]):
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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[];
|
|
5
14
|
export declare function getReportingFormAsOption(form: any): {
|
|
6
15
|
label: any;
|
|
7
16
|
value: any;
|
|
8
17
|
};
|
|
9
|
-
export declare function getConnectionBaseFormOptions(reportingForms: any[], connections: any[], compRowIndex: any):
|
|
10
|
-
|
|
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
|
+
}[];
|
|
11
26
|
export declare function getConnectionFormComponentsAsOptions(formId: any, reportingForms?: any[]): {
|
|
12
27
|
label: string;
|
|
13
28
|
value: string;
|
|
14
29
|
}[];
|
|
15
|
-
export declare function getAggregationOperatorsOptions(groupOperators?: boolean):
|
|
30
|
+
export declare function getAggregationOperatorsOptions(groupOperators?: boolean): {
|
|
31
|
+
value: string;
|
|
32
|
+
label: string;
|
|
33
|
+
}[];
|
|
16
34
|
export declare function getReportingFormComponentAsOption(form: any, comp: any, compPath: any): {
|
|
17
35
|
value: {
|
|
18
36
|
path: any;
|
|
@@ -32,20 +50,24 @@ export declare function addCalculatedColumnsOptions({ calculatedColumns, options
|
|
|
32
50
|
options: any;
|
|
33
51
|
operator?: any;
|
|
34
52
|
}): void;
|
|
35
|
-
export declare function getCalculationArgsOptions(reportingForms: any[], calculatedColumns: any[], operator: any, calculatedValueIndex: any): any;
|
|
53
|
+
export declare function getCalculationArgsOptions(reportingForms: any[], calculatedColumns: any[], operator: any, calculatedValueIndex: any): any[];
|
|
36
54
|
export declare function getReportingFormsComponentsAndExtraComponentsAsOptions({ reportingForms, calculatedColumns, selectedItems, operator, }: {
|
|
37
55
|
reportingForms?: any[];
|
|
38
56
|
calculatedColumns?: any[];
|
|
39
57
|
selectedItems?: any[];
|
|
40
58
|
operator?: any;
|
|
41
|
-
}): any;
|
|
59
|
+
}): any[];
|
|
42
60
|
export declare function getColumnsListOptions(reportingForms: any[], groupsSettings: any, calculatedColumns: any): any[];
|
|
43
|
-
export declare function getAvailableColumnsAsOptions(availableColumns: any, columnsList: any): any;
|
|
61
|
+
export declare function getAvailableColumnsAsOptions(availableColumns: any, columnsList: any): any[];
|
|
44
62
|
export declare function getCustomScriptAvailableVarialbles(): string;
|
|
45
|
-
export declare function getDateDiffUnitOptions(operator: any):
|
|
46
|
-
|
|
63
|
+
export declare function getDateDiffUnitOptions(operator: any): {
|
|
64
|
+
label: any;
|
|
65
|
+
value: any;
|
|
66
|
+
}[];
|
|
67
|
+
export declare function showAggregationOperatorArg(compKey: any, operator: any): boolean;
|
|
47
68
|
export declare function showGroupOperatorArg(operator: any): boolean;
|
|
48
69
|
export declare function getReportTypeInfo(data: any, instance: any): {
|
|
49
70
|
grouping: boolean;
|
|
50
71
|
typeChanged: boolean;
|
|
51
72
|
};
|
|
73
|
+
export declare function validateUniqueColumnKey(currentKeyValue: any, rowIndex: any, rows: any[], server: any): true | "The calculated column key must be unique.";
|
|
@@ -57,7 +57,7 @@ export declare function getColumnsTab(): {
|
|
|
57
57
|
data?: undefined;
|
|
58
58
|
})[];
|
|
59
59
|
};
|
|
60
|
-
export declare function getSingleFilterOperators():
|
|
60
|
+
export declare function getSingleFilterOperators(): string[];
|
|
61
61
|
export declare function getSingleFilterOperatorValueComp(filter: any): {
|
|
62
62
|
widget: string;
|
|
63
63
|
data: {
|
|
@@ -143,7 +143,10 @@ export declare function getActionsTab(actions: any): {
|
|
|
143
143
|
label: string;
|
|
144
144
|
widget: string;
|
|
145
145
|
data: {
|
|
146
|
-
values:
|
|
146
|
+
values: {
|
|
147
|
+
label: any;
|
|
148
|
+
value: string;
|
|
149
|
+
}[];
|
|
147
150
|
};
|
|
148
151
|
dataType: string;
|
|
149
152
|
key: string;
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
2
|
+
/// <reference types="lodash" />
|
|
3
|
+
/// <reference types="lodash" />
|
|
4
|
+
/// <reference types="lodash" />
|
|
5
|
+
/// <reference types="lodash" />
|
|
6
|
+
/// <reference types="lodash" />
|
|
7
|
+
/// <reference types="lodash" />
|
|
8
|
+
/// <reference types="lodash" />
|
|
9
|
+
/// <reference types="lodash" />
|
|
10
|
+
/// <reference types="lodash" />
|
|
11
|
+
/// <reference types="lodash" />
|
|
12
|
+
/// <reference types="lodash" />
|
|
13
|
+
/// <reference types="lodash" />
|
|
1
14
|
declare const ReportingUtils: {
|
|
2
15
|
FilterOperators: {
|
|
3
16
|
[x: string]: typeof import("@formio/js/lib/cjs/utils/conditionOperators/IsEqualTo").default | typeof import("@formio/js/lib/cjs/utils/conditionOperators/DateGreaterThan").default;
|
|
@@ -68,7 +81,7 @@ declare const ReportingUtils: {
|
|
|
68
81
|
data?: undefined;
|
|
69
82
|
})[];
|
|
70
83
|
};
|
|
71
|
-
getSingleFilterOperators():
|
|
84
|
+
getSingleFilterOperators(): string[];
|
|
72
85
|
getSingleFilterOperatorValueComp(filter: any): {
|
|
73
86
|
widget: string;
|
|
74
87
|
data: {
|
|
@@ -154,7 +167,10 @@ declare const ReportingUtils: {
|
|
|
154
167
|
label: string;
|
|
155
168
|
widget: string;
|
|
156
169
|
data: {
|
|
157
|
-
values:
|
|
170
|
+
values: {
|
|
171
|
+
label: any;
|
|
172
|
+
value: string;
|
|
173
|
+
}[];
|
|
158
174
|
};
|
|
159
175
|
dataType: string;
|
|
160
176
|
key: string;
|
|
@@ -277,14 +293,14 @@ declare const ReportingUtils: {
|
|
|
277
293
|
reportingGridConfig: {
|
|
278
294
|
gridKey: string;
|
|
279
295
|
};
|
|
280
|
-
convertReportingFormCompIntoGridComp(comp: any, columnSettings: any): any
|
|
296
|
+
convertReportingFormCompIntoGridComp(comp: any, columnSettings: any): import("lodash").Omit<any, "logic" | "prefix" | "suffix" | "action" | "defaultValue" | "conditional" | "hideLabel" | "calculateValue" | "validate" | "hidden" | "customConditional">;
|
|
281
297
|
getCalcOperatorFieldArgs(columnSettings: any): any;
|
|
282
298
|
convertReportingCalcSettingsIntoGridComp(columnSettings: any, reportingConfig?: any): any;
|
|
283
299
|
getPropertyFromFormId(formId: any): string;
|
|
284
300
|
getDataPath(setting: any): string;
|
|
285
301
|
getJoinedFormDataPathInJoinedObj(formId: any): string;
|
|
286
302
|
getAggrOperatorNumberField(settings: any, reportingConfig?: any): any;
|
|
287
|
-
_:
|
|
303
|
+
_: import("lodash").LoDashStatic;
|
|
288
304
|
valueTypes: any;
|
|
289
305
|
connectionByFullSubmissionObjectOptionValue: "submissionObject*";
|
|
290
306
|
defaultColumns: {
|