@datarailsshared/dr_renderer 1.2.363 → 1.2.365
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_pivottable.js +14 -63
- package/src/highcharts_renderer.js +1095 -1386
- package/src/novix_renderer.js +11 -13
- package/src/pivottable.js +4 -28
- package/tests/highcharts_renderer.test.js +14 -5386
- package/src/dr-renderer-helpers.js +0 -7
- package/tests/dr-renderer-helpers.test.js +0 -34
- package/tests/mock/add-in-dynamic-ranges.json +0 -133
- package/tests/mock/add-in-functions.json +0 -412
- package/tests/mock/add-in-tables.json +0 -347
- package/tests/mock/tables.json +0 -2258
- package/tests/mock/widgets.json +0 -411
package/tests/mock/widgets.json
DELETED
@@ -1,411 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id": 9422,
|
4
|
-
"template_id": 7199,
|
5
|
-
"rows": [
|
6
|
-
{
|
7
|
-
"name": "Scenario",
|
8
|
-
"id": 161922,
|
9
|
-
"type": "Text",
|
10
|
-
"idx": 18,
|
11
|
-
"format": null,
|
12
|
-
"allow_blanks": true,
|
13
|
-
"is_calculated": false,
|
14
|
-
"calculated_formula": null,
|
15
|
-
"sorting": null,
|
16
|
-
"is_consolidated": false,
|
17
|
-
"consolidated_fields": [],
|
18
|
-
"error_policy": "SET_DEFAULT",
|
19
|
-
"default_value": null,
|
20
|
-
"date_split_options": null,
|
21
|
-
"date_field_before_split": null,
|
22
|
-
"category": [],
|
23
|
-
"mandatory": false,
|
24
|
-
"letter_case": null,
|
25
|
-
"trim": true,
|
26
|
-
"kind": null,
|
27
|
-
"date_format": "infer",
|
28
|
-
"consider_fiscal_in_view": false,
|
29
|
-
"description": null,
|
30
|
-
"is_hidden": false,
|
31
|
-
"usage_info": {
|
32
|
-
"usage_info": {
|
33
|
-
"ex_tables": [
|
34
|
-
7076
|
35
|
-
]
|
36
|
-
}
|
37
|
-
},
|
38
|
-
"ignore_hours": true,
|
39
|
-
"alias": ""
|
40
|
-
}
|
41
|
-
],
|
42
|
-
"cols": [
|
43
|
-
{
|
44
|
-
"name": "Account level 1",
|
45
|
-
"id": 161918,
|
46
|
-
"type": "Text",
|
47
|
-
"idx": 14,
|
48
|
-
"format": null,
|
49
|
-
"allow_blanks": true,
|
50
|
-
"is_calculated": false,
|
51
|
-
"calculated_formula": null,
|
52
|
-
"sorting": null,
|
53
|
-
"is_consolidated": false,
|
54
|
-
"consolidated_fields": [],
|
55
|
-
"error_policy": "SET_DEFAULT",
|
56
|
-
"default_value": null,
|
57
|
-
"date_split_options": null,
|
58
|
-
"date_field_before_split": null,
|
59
|
-
"category": [],
|
60
|
-
"mandatory": false,
|
61
|
-
"letter_case": null,
|
62
|
-
"trim": true,
|
63
|
-
"kind": null,
|
64
|
-
"date_format": "infer",
|
65
|
-
"consider_fiscal_in_view": false,
|
66
|
-
"description": null,
|
67
|
-
"is_hidden": false,
|
68
|
-
"usage_info": {
|
69
|
-
"usage_info": {
|
70
|
-
"ex_tables": [
|
71
|
-
7076
|
72
|
-
]
|
73
|
-
}
|
74
|
-
},
|
75
|
-
"ignore_hours": true,
|
76
|
-
"alias": ""
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"name": "Account level 2",
|
80
|
-
"id": 161919,
|
81
|
-
"type": "Text",
|
82
|
-
"idx": 15,
|
83
|
-
"format": null,
|
84
|
-
"allow_blanks": true,
|
85
|
-
"is_calculated": false,
|
86
|
-
"calculated_formula": null,
|
87
|
-
"sorting": null,
|
88
|
-
"is_consolidated": false,
|
89
|
-
"consolidated_fields": [],
|
90
|
-
"error_policy": "SET_DEFAULT",
|
91
|
-
"default_value": null,
|
92
|
-
"date_split_options": null,
|
93
|
-
"date_field_before_split": null,
|
94
|
-
"category": [],
|
95
|
-
"mandatory": false,
|
96
|
-
"letter_case": null,
|
97
|
-
"trim": true,
|
98
|
-
"kind": null,
|
99
|
-
"date_format": "infer",
|
100
|
-
"consider_fiscal_in_view": false,
|
101
|
-
"description": null,
|
102
|
-
"is_hidden": false,
|
103
|
-
"usage_info": {
|
104
|
-
"usage_info": {
|
105
|
-
"ex_tables": [
|
106
|
-
7076
|
107
|
-
]
|
108
|
-
}
|
109
|
-
},
|
110
|
-
"ignore_hours": true,
|
111
|
-
"alias": ""
|
112
|
-
},
|
113
|
-
{
|
114
|
-
"name": "Posting Date",
|
115
|
-
"id": 161923,
|
116
|
-
"type": "Date",
|
117
|
-
"idx": 19,
|
118
|
-
"format": null,
|
119
|
-
"allow_blanks": true,
|
120
|
-
"is_calculated": false,
|
121
|
-
"calculated_formula": null,
|
122
|
-
"sorting": null,
|
123
|
-
"is_consolidated": false,
|
124
|
-
"consolidated_fields": [],
|
125
|
-
"error_policy": "SET_DEFAULT",
|
126
|
-
"default_value": null,
|
127
|
-
"date_split_options": null,
|
128
|
-
"date_field_before_split": null,
|
129
|
-
"category": [],
|
130
|
-
"mandatory": false,
|
131
|
-
"letter_case": null,
|
132
|
-
"trim": true,
|
133
|
-
"kind": null,
|
134
|
-
"date_format": "infer",
|
135
|
-
"consider_fiscal_in_view": false,
|
136
|
-
"description": null,
|
137
|
-
"is_hidden": false,
|
138
|
-
"usage_info": {
|
139
|
-
"usage_info": {
|
140
|
-
"ex_tables": [
|
141
|
-
7076
|
142
|
-
]
|
143
|
-
}
|
144
|
-
},
|
145
|
-
"ignore_hours": true,
|
146
|
-
"alias": ""
|
147
|
-
}
|
148
|
-
],
|
149
|
-
"calculated_values": [
|
150
|
-
{
|
151
|
-
"calc_id": 23,
|
152
|
-
"name": "Test value",
|
153
|
-
"field": 161922,
|
154
|
-
"side": "legend",
|
155
|
-
"format": null
|
156
|
-
}
|
157
|
-
],
|
158
|
-
"filters": [
|
159
|
-
{
|
160
|
-
"field": 161918,
|
161
|
-
"name": "Account level 1",
|
162
|
-
"values": [
|
163
|
-
"Expenses",
|
164
|
-
"Income",
|
165
|
-
"Other Expense",
|
166
|
-
"Other Income"
|
167
|
-
],
|
168
|
-
"is_excluded": false,
|
169
|
-
"allow_nulls": true,
|
170
|
-
"show_in_graph": true,
|
171
|
-
"type": "Text",
|
172
|
-
"override_global_filter": true
|
173
|
-
},
|
174
|
-
{
|
175
|
-
"field": 161923,
|
176
|
-
"name": "Posting Date",
|
177
|
-
"values": {
|
178
|
-
"datetype": "range",
|
179
|
-
"val": {
|
180
|
-
"fromdate": 1641859200,
|
181
|
-
"todate": 1653696000
|
182
|
-
}
|
183
|
-
},
|
184
|
-
"is_excluded": false,
|
185
|
-
"allow_nulls": false,
|
186
|
-
"show_in_graph": false,
|
187
|
-
"type": "Date",
|
188
|
-
"override_global_filter": false
|
189
|
-
},
|
190
|
-
{
|
191
|
-
"field": 161924,
|
192
|
-
"name": "Reporting Date",
|
193
|
-
"values": [
|
194
|
-
1646006400,
|
195
|
-
1643587200
|
196
|
-
],
|
197
|
-
"is_excluded": false,
|
198
|
-
"allow_nulls": true,
|
199
|
-
"show_in_graph": true,
|
200
|
-
"type": "Date",
|
201
|
-
"override_global_filter": true
|
202
|
-
}
|
203
|
-
],
|
204
|
-
"options": {
|
205
|
-
"chartOptions": {
|
206
|
-
"axisY": {
|
207
|
-
"autoylabel": true,
|
208
|
-
"name": "Amount",
|
209
|
-
"min": null,
|
210
|
-
"max": null
|
211
|
-
},
|
212
|
-
"axisX": {
|
213
|
-
"autoxlabel": true,
|
214
|
-
"name": "Account level 1",
|
215
|
-
"min": null,
|
216
|
-
"max": null,
|
217
|
-
"label_step": null,
|
218
|
-
"zoom_x": false
|
219
|
-
},
|
220
|
-
"tooltips": {
|
221
|
-
"show": true,
|
222
|
-
"font_style": "Poppins",
|
223
|
-
"font_size": "12",
|
224
|
-
"font_color": "#545a6b",
|
225
|
-
"show_x_axis": true,
|
226
|
-
"show_data_series": true,
|
227
|
-
"show_value": true,
|
228
|
-
"show_out_of_x_axis": false,
|
229
|
-
"show_out_of_data_series": false
|
230
|
-
},
|
231
|
-
"label": {
|
232
|
-
"show": true,
|
233
|
-
"overlap": false,
|
234
|
-
"font_style": "Poppins",
|
235
|
-
"font_size": "11",
|
236
|
-
"font_color": "#151a41",
|
237
|
-
"show_value": true,
|
238
|
-
"show_out_of_x_axis": false,
|
239
|
-
"show_out_of_data_series": false
|
240
|
-
},
|
241
|
-
"subtitle": {
|
242
|
-
"subtitle": ""
|
243
|
-
},
|
244
|
-
"widget_library": {
|
245
|
-
"categories": "",
|
246
|
-
"description": "",
|
247
|
-
"tags": []
|
248
|
-
},
|
249
|
-
"table_options": {
|
250
|
-
"table_colors_offset": 0,
|
251
|
-
"show_column_total": true,
|
252
|
-
"show_row_total": true,
|
253
|
-
"show_subtotals_for_columns": false,
|
254
|
-
"show_subtotals_for_rows": false,
|
255
|
-
"show_subtotals_in_brackets": false,
|
256
|
-
"transpose_table": false,
|
257
|
-
"start_collapsed_rows": false,
|
258
|
-
"start_collapsed_columns": false,
|
259
|
-
"colorize_headers": true,
|
260
|
-
"remove_underscores": true,
|
261
|
-
"use_handsOnTable": false,
|
262
|
-
"use_new_table_design": true,
|
263
|
-
"hide_nulls_in_headers": true,
|
264
|
-
"show_all": false,
|
265
|
-
"freeze_panes": true,
|
266
|
-
"eliminate_calc_totals": false
|
267
|
-
},
|
268
|
-
"table_design_options": {
|
269
|
-
"columns_font_style": "Poppins",
|
270
|
-
"columns_font_size": "10",
|
271
|
-
"columns_align_text": "left",
|
272
|
-
"rows_font_style": "Poppins",
|
273
|
-
"rows_font_size": "10",
|
274
|
-
"rows_align_text": "left",
|
275
|
-
"values_font_style": "Poppins",
|
276
|
-
"values_font_size": "10",
|
277
|
-
"values_align_text": "left",
|
278
|
-
"totals_font_style": "Poppins",
|
279
|
-
"totals_font_size": "10",
|
280
|
-
"totals_align_text": "left"
|
281
|
-
},
|
282
|
-
"chart": {
|
283
|
-
"colors_offset": 0,
|
284
|
-
"zoom_type": "None",
|
285
|
-
"show": true
|
286
|
-
},
|
287
|
-
"delta_column": {
|
288
|
-
"field": "",
|
289
|
-
"name": "_Variance",
|
290
|
-
"formula": "x2-x1",
|
291
|
-
"chart": "",
|
292
|
-
"only_variant": false,
|
293
|
-
"same_yaxis": false,
|
294
|
-
"same_xaxis": false,
|
295
|
-
"is_percentage": false,
|
296
|
-
"sort_by_variance": false,
|
297
|
-
"sort_by_absolute_variance": false
|
298
|
-
},
|
299
|
-
"advanced": {
|
300
|
-
"error_policy": "None",
|
301
|
-
"from_latest": ""
|
302
|
-
},
|
303
|
-
"legends_position": {
|
304
|
-
"value": "top"
|
305
|
-
},
|
306
|
-
"hideChartHeader": true
|
307
|
-
},
|
308
|
-
"useDefaultFormat": false,
|
309
|
-
"average": false,
|
310
|
-
"total": false,
|
311
|
-
"comboOptions": {
|
312
|
-
"secondaryAxisSettings": {
|
313
|
-
"name": "Secondary Axis",
|
314
|
-
"max": null,
|
315
|
-
"min": null,
|
316
|
-
"is_percentage": false
|
317
|
-
},
|
318
|
-
"seriesOptions": []
|
319
|
-
},
|
320
|
-
"error_params": null,
|
321
|
-
"chart_title": "New Widget234",
|
322
|
-
"chartLabels": {
|
323
|
-
"legend": "Data series",
|
324
|
-
"axis": "X - Axis"
|
325
|
-
},
|
326
|
-
"widgetId": 9422,
|
327
|
-
"paletteOptions": {
|
328
|
-
"dashboardPalette": {
|
329
|
-
"id": 7615,
|
330
|
-
"is_default": true,
|
331
|
-
"colors": [
|
332
|
-
"rgba(205, 229, 255, 1)",
|
333
|
-
"rgba(0, 0, 0, 1)",
|
334
|
-
"rgba(94, 149, 105, 1)",
|
335
|
-
"rgba(251, 5, 86, 1)",
|
336
|
-
"#0E3E9E",
|
337
|
-
"#7DC5FF",
|
338
|
-
"#269AFF",
|
339
|
-
"#3DC5AA",
|
340
|
-
"rgba(112, 32, 100, 1)",
|
341
|
-
"#1591AD"
|
342
|
-
],
|
343
|
-
"name": "testOne1212",
|
344
|
-
"organization": 1,
|
345
|
-
"variance_color": "#3DC5AA"
|
346
|
-
}
|
347
|
-
},
|
348
|
-
"insightsTooltipFunc": null,
|
349
|
-
"chart_series": [
|
350
|
-
"Actuals"
|
351
|
-
],
|
352
|
-
"resetSortingElement": null,
|
353
|
-
"show_more_max_items": 5,
|
354
|
-
"value_drill_down_fn": null,
|
355
|
-
"defaults_colors": [
|
356
|
-
"#0087FE",
|
357
|
-
"#3AD4D4",
|
358
|
-
"#EF4760",
|
359
|
-
"#FFCF33",
|
360
|
-
"#0E3E9E",
|
361
|
-
"#7DC5FF",
|
362
|
-
"#269AFF",
|
363
|
-
"#3DC5AA",
|
364
|
-
"#66FF99",
|
365
|
-
"#1591AD"
|
366
|
-
],
|
367
|
-
"date_aggregation_configs": [
|
368
|
-
{
|
369
|
-
"field_id": 161923,
|
370
|
-
"field_name": "Posting Date",
|
371
|
-
"fnc": "sum",
|
372
|
-
"aggregate_by": "month",
|
373
|
-
"type": "YTD",
|
374
|
-
"rolling_month_before": 12,
|
375
|
-
"is_end_of_period": true,
|
376
|
-
"is_formatting_by_aggregation_method": true
|
377
|
-
}
|
378
|
-
],
|
379
|
-
"fields_allow_null_in_filters": [
|
380
|
-
161918,
|
381
|
-
161924
|
382
|
-
],
|
383
|
-
"error_has_occurred": false
|
384
|
-
},
|
385
|
-
"vals": [
|
386
|
-
{
|
387
|
-
"field": 161925,
|
388
|
-
"name": "Amount",
|
389
|
-
"aggregator": "SUM",
|
390
|
-
"type": "Float"
|
391
|
-
}
|
392
|
-
],
|
393
|
-
"value_filter_options": "{}",
|
394
|
-
"values_format": "#,###",
|
395
|
-
"chart_type": "column-chart-stacked",
|
396
|
-
"widget_template_id": null,
|
397
|
-
"dashboard_name": "123",
|
398
|
-
"published_item": null,
|
399
|
-
"name": "New Widget234",
|
400
|
-
"dashboard": 9013,
|
401
|
-
"width": 6,
|
402
|
-
"height": 8,
|
403
|
-
"x": 0,
|
404
|
-
"y": 0,
|
405
|
-
"is_analysis": false,
|
406
|
-
"is_drill_down": false,
|
407
|
-
"is_any_field_is_empty": false,
|
408
|
-
"showTable": false,
|
409
|
-
"mydrilldownFunc": null
|
410
|
-
}
|
411
|
-
]
|