@datarailsshared/dr_renderer 1.5.168 → 1.5.174
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/package.json +1 -1
- package/src/graph-table-renderer.js +0 -7
- package/src/highcharts_renderer.js +7 -18
- package/src/index.d.ts +0 -4
- package/src/index.js +0 -1
package/package.json
CHANGED
|
@@ -183,8 +183,6 @@ export class GraphTableRenderer {
|
|
|
183
183
|
* This includes:
|
|
184
184
|
* - Destroying the Highcharts instance (if exists)
|
|
185
185
|
* - Calling destroy on table result (freeze panes observers, Handsontable instances, etc.)
|
|
186
|
-
* - Disposing the pivot model
|
|
187
|
-
* - Resetting internal state
|
|
188
186
|
* @returns {void}
|
|
189
187
|
*/
|
|
190
188
|
destroy() {
|
|
@@ -208,11 +206,6 @@ export class GraphTableRenderer {
|
|
|
208
206
|
}
|
|
209
207
|
}
|
|
210
208
|
this.#tableResult = null;
|
|
211
|
-
|
|
212
|
-
this.disposePivotModel();
|
|
213
|
-
|
|
214
|
-
this.#options = null;
|
|
215
|
-
this.#rows = [];
|
|
216
209
|
}
|
|
217
210
|
}
|
|
218
211
|
|
|
@@ -3999,9 +3999,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
3999
3999
|
calculated_formats: calculated_info.formats,
|
|
4000
4000
|
isChangeable: false,
|
|
4001
4001
|
push: function (record) {
|
|
4002
|
-
|
|
4003
|
-
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4004
|
-
}
|
|
4002
|
+
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4005
4003
|
|
|
4006
4004
|
if (record.hasOwnProperty('data_types') && $.isArray(record['data_types'])) {
|
|
4007
4005
|
this.data_types = this.data_types.concat(record['data_types']);
|
|
@@ -4168,9 +4166,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
4168
4166
|
var val = parseFloat(record[attr]);
|
|
4169
4167
|
|
|
4170
4168
|
if (!isNaN(val)) {
|
|
4171
|
-
|
|
4172
|
-
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4173
|
-
}
|
|
4169
|
+
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4174
4170
|
|
|
4175
4171
|
if (record.hasOwnProperty('data_types') && $.isArray(record['data_types'])) {
|
|
4176
4172
|
this.data_types = this.data_types.concat(record['data_types']);
|
|
@@ -4263,9 +4259,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
4263
4259
|
var ref, x;
|
|
4264
4260
|
x = parseFloat(record[attr]);
|
|
4265
4261
|
if (!isNaN(x)) {
|
|
4266
|
-
|
|
4267
|
-
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4268
|
-
}
|
|
4262
|
+
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4269
4263
|
|
|
4270
4264
|
if (record.hasOwnProperty('data_types') && $.isArray(record['data_types'])) {
|
|
4271
4265
|
this.data_types = this.data_types.concat(record['data_types']);
|
|
@@ -4356,9 +4350,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
4356
4350
|
var ref, x;
|
|
4357
4351
|
x = parseFloat(record[attr]);
|
|
4358
4352
|
if (!isNaN(x)) {
|
|
4359
|
-
|
|
4360
|
-
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4361
|
-
}
|
|
4353
|
+
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4362
4354
|
|
|
4363
4355
|
if (record.hasOwnProperty('data_types') && $.isArray(record['data_types'])) {
|
|
4364
4356
|
this.data_types = this.data_types.concat(record['data_types']);
|
|
@@ -4450,9 +4442,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
4450
4442
|
var ref, x;
|
|
4451
4443
|
x = parseFloat(record[attr]);
|
|
4452
4444
|
if (!isNaN(x)) {
|
|
4453
|
-
|
|
4454
|
-
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4455
|
-
}
|
|
4445
|
+
record.formats = highchartsRenderer.getRecordFormats(render_options, record['DR_Values']);
|
|
4456
4446
|
|
|
4457
4447
|
if (record.hasOwnProperty('data_types') && $.isArray(record['data_types'])) {
|
|
4458
4448
|
this.data_types = this.data_types.concat(record['data_types']);
|
|
@@ -8179,12 +8169,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
8179
8169
|
}
|
|
8180
8170
|
|
|
8181
8171
|
// Will be FALSE when all 4 conditions true: 1. User applies SecondaryAxis 2. Format on 'format editor panel' is same as any Value field table format
|
|
8182
|
-
// 3. Chart has more than one value fields in Values block
|
|
8183
|
-
// In that case we apply for both value fields their format from the table
|
|
8172
|
+
// 3. Chart has more than one value fields in Values block
|
|
8184
8173
|
// In all other cases we are applying format from editor panel to both of them (specification: DR-20955)
|
|
8185
8174
|
highchartsRenderer.isUsingWidgetValuesFormat = function (pivotData, render_options, widget_values_format) {
|
|
8186
8175
|
const { isSecondaryAxis, isCustomFormat } = highchartsRenderer.checkFormats(render_options, widget_values_format);
|
|
8187
|
-
return !highchartsRenderer.
|
|
8176
|
+
return !highchartsRenderer.isChartWithMultiValues(pivotData) || !isSecondaryAxis || isCustomFormat;
|
|
8188
8177
|
}
|
|
8189
8178
|
|
|
8190
8179
|
highchartsRenderer.isFormattingNumberAxis = function (pivotData) {
|
package/src/index.d.ts
CHANGED
|
@@ -71,10 +71,6 @@ export type EnvironmentOptions = {
|
|
|
71
71
|
* - Enable stacked percent charts
|
|
72
72
|
*/
|
|
73
73
|
enableStackedPercentCharts?: boolean | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* - TODO: remove in DR-42736
|
|
76
|
-
*/
|
|
77
|
-
enabledNewWidgetValueFormatting?: boolean | undefined;
|
|
78
74
|
/**
|
|
79
75
|
* - Allow custom gauge goal title
|
|
80
76
|
*/
|
package/src/index.js
CHANGED
|
@@ -22,7 +22,6 @@ const freezePanes = require('./pivot-table/freeze-panes');
|
|
|
22
22
|
* @property {number} [fiscal_year_starts_from] - Fiscal year start month
|
|
23
23
|
* @property {boolean} [fiscal_year_back] - Fiscal year direction
|
|
24
24
|
* @property {boolean} [enableStackedPercentCharts] - Enable stacked percent charts
|
|
25
|
-
* @property {boolean} [enabledNewWidgetValueFormatting] - TODO: remove in DR-42736
|
|
26
25
|
* @property {boolean} [enableGaugeDynamicGoal] - Allow custom gauge goal title
|
|
27
26
|
*/
|
|
28
27
|
|