@datarailsshared/dr_renderer 1.2.365 → 1.2.366
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/.circleci/config.yml +2 -2
- package/package.json +1 -1
- package/src/dr-renderer-helpers.js +7 -0
- package/src/dr_pivottable.js +63 -14
- package/src/highcharts_renderer.js +1378 -1087
- package/src/novix_renderer.js +13 -11
- package/src/pivottable.js +28 -4
- package/tests/dr-renderer-helpers.test.js +34 -0
- package/tests/highcharts_renderer.test.js +5386 -14
- package/tests/mock/add-in-dynamic-ranges.json +133 -0
- package/tests/mock/add-in-functions.json +412 -0
- package/tests/mock/add-in-tables.json +347 -0
- package/tests/mock/tables.json +2258 -0
- package/tests/mock/widgets.json +411 -0
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": 7121,
|
|
4
|
+
"name": "Unit_test_Table",
|
|
5
|
+
"vals": [
|
|
6
|
+
{
|
|
7
|
+
"id": 161925,
|
|
8
|
+
"name": "Amount",
|
|
9
|
+
"type": "Float",
|
|
10
|
+
"aggregator": "SUM"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"template_id": 7199,
|
|
14
|
+
"filters": [
|
|
15
|
+
{
|
|
16
|
+
"field": 161918,
|
|
17
|
+
"name": "Account level 1",
|
|
18
|
+
"values": [
|
|
19
|
+
"Expenses",
|
|
20
|
+
"Income"
|
|
21
|
+
],
|
|
22
|
+
"is_excluded": false,
|
|
23
|
+
"show_in_graph": false,
|
|
24
|
+
"allow_nulls": true,
|
|
25
|
+
"type": "Text",
|
|
26
|
+
"override_global_filter": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"field": 161919,
|
|
30
|
+
"name": "Account level 2",
|
|
31
|
+
"values": [
|
|
32
|
+
"Auto"
|
|
33
|
+
],
|
|
34
|
+
"is_excluded": true,
|
|
35
|
+
"show_in_graph": false,
|
|
36
|
+
"type": "Text",
|
|
37
|
+
"override_global_filter": false
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"field": 161917,
|
|
41
|
+
"name": "Account Name",
|
|
42
|
+
"values": {
|
|
43
|
+
"type": "advanced",
|
|
44
|
+
"val": [
|
|
45
|
+
{
|
|
46
|
+
"operator": null,
|
|
47
|
+
"condition": "contains",
|
|
48
|
+
"value": "a"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"is_excluded": false,
|
|
53
|
+
"show_in_graph": false,
|
|
54
|
+
"type": "Text",
|
|
55
|
+
"override_global_filter": false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"field": 161924,
|
|
59
|
+
"name": "Reporting Date",
|
|
60
|
+
"values": [
|
|
61
|
+
1646006400,
|
|
62
|
+
1643587200
|
|
63
|
+
],
|
|
64
|
+
"is_excluded": false,
|
|
65
|
+
"show_in_graph": false,
|
|
66
|
+
"type": "Date",
|
|
67
|
+
"override_global_filter": false
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"field": 161923,
|
|
71
|
+
"name": "Posting Date",
|
|
72
|
+
"values": {
|
|
73
|
+
"datetype": "range",
|
|
74
|
+
"val": {
|
|
75
|
+
"fromdate": 1641859200,
|
|
76
|
+
"todate": 1653696000
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"is_excluded": false,
|
|
80
|
+
"show_in_graph": false,
|
|
81
|
+
"type": "Date",
|
|
82
|
+
"override_global_filter": false
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"field": 161928,
|
|
86
|
+
"name": "System_Date",
|
|
87
|
+
"values": {
|
|
88
|
+
"datetype": "list",
|
|
89
|
+
"val": [
|
|
90
|
+
1677542400
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"is_excluded": true,
|
|
94
|
+
"show_in_graph": false,
|
|
95
|
+
"type": "Date",
|
|
96
|
+
"override_global_filter": false
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"fields": [
|
|
100
|
+
{
|
|
101
|
+
"name": "Account level 1",
|
|
102
|
+
"id": 161918,
|
|
103
|
+
"type": "Text",
|
|
104
|
+
"idx": 14,
|
|
105
|
+
"format": null,
|
|
106
|
+
"allow_blanks": true,
|
|
107
|
+
"is_calculated": false,
|
|
108
|
+
"calculated_formula": null,
|
|
109
|
+
"sorting": null,
|
|
110
|
+
"is_consolidated": false,
|
|
111
|
+
"consolidated_fields": [],
|
|
112
|
+
"error_policy": "SET_DEFAULT",
|
|
113
|
+
"default_value": null,
|
|
114
|
+
"date_split_options": null,
|
|
115
|
+
"date_field_before_split": null,
|
|
116
|
+
"category": [],
|
|
117
|
+
"mandatory": false,
|
|
118
|
+
"letter_case": null,
|
|
119
|
+
"trim": true,
|
|
120
|
+
"kind": null,
|
|
121
|
+
"date_format": "infer",
|
|
122
|
+
"consider_fiscal_in_view": false,
|
|
123
|
+
"description": null,
|
|
124
|
+
"is_hidden": false,
|
|
125
|
+
"usage_info": {
|
|
126
|
+
"usage_info": {
|
|
127
|
+
"ex_tables": [
|
|
128
|
+
7076
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"ignore_hours": true,
|
|
133
|
+
"alias": ""
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "Account level 2",
|
|
137
|
+
"id": 161919,
|
|
138
|
+
"type": "Text",
|
|
139
|
+
"idx": 15,
|
|
140
|
+
"format": null,
|
|
141
|
+
"allow_blanks": true,
|
|
142
|
+
"is_calculated": false,
|
|
143
|
+
"calculated_formula": null,
|
|
144
|
+
"sorting": null,
|
|
145
|
+
"is_consolidated": false,
|
|
146
|
+
"consolidated_fields": [],
|
|
147
|
+
"error_policy": "SET_DEFAULT",
|
|
148
|
+
"default_value": null,
|
|
149
|
+
"date_split_options": null,
|
|
150
|
+
"date_field_before_split": null,
|
|
151
|
+
"category": [],
|
|
152
|
+
"mandatory": false,
|
|
153
|
+
"letter_case": null,
|
|
154
|
+
"trim": true,
|
|
155
|
+
"kind": null,
|
|
156
|
+
"date_format": "infer",
|
|
157
|
+
"consider_fiscal_in_view": false,
|
|
158
|
+
"description": null,
|
|
159
|
+
"is_hidden": false,
|
|
160
|
+
"usage_info": {
|
|
161
|
+
"usage_info": {
|
|
162
|
+
"ex_tables": [
|
|
163
|
+
7076
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"ignore_hours": true,
|
|
168
|
+
"alias": ""
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "Account Name",
|
|
172
|
+
"id": 161917,
|
|
173
|
+
"type": "Text",
|
|
174
|
+
"idx": 13,
|
|
175
|
+
"format": null,
|
|
176
|
+
"allow_blanks": true,
|
|
177
|
+
"is_calculated": false,
|
|
178
|
+
"calculated_formula": null,
|
|
179
|
+
"sorting": null,
|
|
180
|
+
"is_consolidated": false,
|
|
181
|
+
"consolidated_fields": [],
|
|
182
|
+
"error_policy": "SET_DEFAULT",
|
|
183
|
+
"default_value": null,
|
|
184
|
+
"date_split_options": null,
|
|
185
|
+
"date_field_before_split": null,
|
|
186
|
+
"category": [],
|
|
187
|
+
"mandatory": false,
|
|
188
|
+
"letter_case": null,
|
|
189
|
+
"trim": true,
|
|
190
|
+
"kind": null,
|
|
191
|
+
"date_format": "infer",
|
|
192
|
+
"consider_fiscal_in_view": false,
|
|
193
|
+
"description": null,
|
|
194
|
+
"is_hidden": false,
|
|
195
|
+
"usage_info": {
|
|
196
|
+
"usage_info": {
|
|
197
|
+
"ex_tables": [
|
|
198
|
+
7076
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"ignore_hours": true,
|
|
203
|
+
"alias": ""
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "Amount",
|
|
207
|
+
"id": 161925,
|
|
208
|
+
"type": "Float",
|
|
209
|
+
"idx": 21,
|
|
210
|
+
"format": null,
|
|
211
|
+
"allow_blanks": true,
|
|
212
|
+
"is_calculated": false,
|
|
213
|
+
"calculated_formula": null,
|
|
214
|
+
"sorting": null,
|
|
215
|
+
"is_consolidated": false,
|
|
216
|
+
"consolidated_fields": [],
|
|
217
|
+
"error_policy": "SET_DEFAULT",
|
|
218
|
+
"default_value": null,
|
|
219
|
+
"date_split_options": null,
|
|
220
|
+
"date_field_before_split": null,
|
|
221
|
+
"category": [],
|
|
222
|
+
"mandatory": false,
|
|
223
|
+
"letter_case": null,
|
|
224
|
+
"trim": true,
|
|
225
|
+
"kind": null,
|
|
226
|
+
"date_format": "infer",
|
|
227
|
+
"consider_fiscal_in_view": false,
|
|
228
|
+
"description": null,
|
|
229
|
+
"is_hidden": false,
|
|
230
|
+
"usage_info": {
|
|
231
|
+
"usage_info": {
|
|
232
|
+
"ex_tables": [
|
|
233
|
+
7076
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"ignore_hours": true,
|
|
238
|
+
"alias": ""
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "Reporting Date",
|
|
242
|
+
"id": 161924,
|
|
243
|
+
"type": "Date",
|
|
244
|
+
"idx": 20,
|
|
245
|
+
"format": null,
|
|
246
|
+
"allow_blanks": true,
|
|
247
|
+
"is_calculated": false,
|
|
248
|
+
"calculated_formula": null,
|
|
249
|
+
"sorting": null,
|
|
250
|
+
"is_consolidated": false,
|
|
251
|
+
"consolidated_fields": [],
|
|
252
|
+
"error_policy": "SET_DEFAULT",
|
|
253
|
+
"default_value": null,
|
|
254
|
+
"date_split_options": null,
|
|
255
|
+
"date_field_before_split": null,
|
|
256
|
+
"category": [],
|
|
257
|
+
"mandatory": false,
|
|
258
|
+
"letter_case": null,
|
|
259
|
+
"trim": true,
|
|
260
|
+
"kind": null,
|
|
261
|
+
"date_format": "infer",
|
|
262
|
+
"consider_fiscal_in_view": false,
|
|
263
|
+
"description": null,
|
|
264
|
+
"is_hidden": false,
|
|
265
|
+
"usage_info": {
|
|
266
|
+
"usage_info": {
|
|
267
|
+
"ex_tables": [
|
|
268
|
+
7076
|
|
269
|
+
]
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"ignore_hours": true,
|
|
273
|
+
"alias": ""
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "System_Date",
|
|
277
|
+
"id": 161928,
|
|
278
|
+
"type": "Date",
|
|
279
|
+
"idx": 24,
|
|
280
|
+
"format": null,
|
|
281
|
+
"allow_blanks": true,
|
|
282
|
+
"is_calculated": false,
|
|
283
|
+
"calculated_formula": null,
|
|
284
|
+
"sorting": null,
|
|
285
|
+
"is_consolidated": false,
|
|
286
|
+
"consolidated_fields": [],
|
|
287
|
+
"error_policy": "SET_DEFAULT",
|
|
288
|
+
"default_value": null,
|
|
289
|
+
"date_split_options": null,
|
|
290
|
+
"date_field_before_split": null,
|
|
291
|
+
"category": [
|
|
292
|
+
"system"
|
|
293
|
+
],
|
|
294
|
+
"mandatory": false,
|
|
295
|
+
"letter_case": null,
|
|
296
|
+
"trim": false,
|
|
297
|
+
"kind": null,
|
|
298
|
+
"date_format": "infer",
|
|
299
|
+
"consider_fiscal_in_view": false,
|
|
300
|
+
"description": null,
|
|
301
|
+
"is_hidden": false,
|
|
302
|
+
"usage_info": {},
|
|
303
|
+
"ignore_hours": true,
|
|
304
|
+
"alias": ""
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"value_field": 161925,
|
|
308
|
+
"aggfun": "SUM",
|
|
309
|
+
"dimension_field": {
|
|
310
|
+
"name": "Account level 2",
|
|
311
|
+
"id": 161919,
|
|
312
|
+
"type": "Text",
|
|
313
|
+
"idx": 15,
|
|
314
|
+
"format": null,
|
|
315
|
+
"allow_blanks": true,
|
|
316
|
+
"is_calculated": false,
|
|
317
|
+
"calculated_formula": null,
|
|
318
|
+
"sorting": null,
|
|
319
|
+
"is_consolidated": false,
|
|
320
|
+
"consolidated_fields": [],
|
|
321
|
+
"error_policy": "SET_DEFAULT",
|
|
322
|
+
"default_value": null,
|
|
323
|
+
"date_split_options": null,
|
|
324
|
+
"date_field_before_split": null,
|
|
325
|
+
"category": [],
|
|
326
|
+
"mandatory": false,
|
|
327
|
+
"letter_case": null,
|
|
328
|
+
"trim": true,
|
|
329
|
+
"kind": null,
|
|
330
|
+
"date_format": "infer",
|
|
331
|
+
"consider_fiscal_in_view": false,
|
|
332
|
+
"description": null,
|
|
333
|
+
"is_hidden": false,
|
|
334
|
+
"usage_info": {
|
|
335
|
+
"usage_info": {
|
|
336
|
+
"ex_tables": [
|
|
337
|
+
7076
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"ignore_hours": true,
|
|
342
|
+
"alias": ""
|
|
343
|
+
},
|
|
344
|
+
"is_distinct": false,
|
|
345
|
+
"keep_table_structure": false
|
|
346
|
+
}
|
|
347
|
+
]
|