@datarailsshared/dr_renderer 1.2.122 → 1.2.125

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.2.122",
3
+ "version": "1.2.125",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -447,7 +447,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
447
447
  cols = this.point.name;
448
448
  }
449
449
 
450
- var drOthersInColumn = lodash.find(pivotData.getColKeys(), keys => keys.length && keys.includes('DR_Others')) || [];
450
+ var drOthersInColumn = lodash.find(pivotData.getColKeys(), keys => keys.length && lodash.includes(keys, 'DR_Others')) || [];
451
451
  if (!lodash.isArray(cols) && drOthersInColumn[0] !== 'DR_Others') {
452
452
  cols = [cols];
453
453
  }
@@ -1378,7 +1378,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1378
1378
  var num_cols = col_n_keys.length;
1379
1379
  var num_rows = row_n_keys.length;
1380
1380
 
1381
- const isOthersIncludedInRow = num_rows === 1 && row_n_keys[0].includes('DR_Others');
1381
+ const isOthersIncludedInRow = num_rows === 1 && lodash.includes(row_n_keys[0], 'DR_Others');
1382
1382
  const othersName = lodash.get(opts, "total_value_options.filter_options.filteredOutFieldName") || 'Others';
1383
1383
 
1384
1384
  lodash.forEach(col_n_keys, function (col_n_value) {
@@ -4406,7 +4406,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
4406
4406
  };
4407
4407
 
4408
4408
  highchartsRenderer.isSystemField = function (field) {
4409
- var regex = new RegExp("^(FileBox_Name|DataMapper_Name|Doc_ID|Doc_version|Label|Submission_Date|User|table_id|Latest_In_Dim|Tab_name|CP_Name|DT_.+|VT_.+|System_.+)$", "m");
4409
+ var regex = new RegExp("^(Parent_Name|Parent_Id|FileBox_ID|FileBox_Name|DataMapper_Name|Doc_ID|Doc_version|Label|Submission_Date|User|table_id|Latest_In_Dim|Tab_name|CP_Name|DT_.+|VT_.+|System_.+)$", "m");
4410
4410
 
4411
4411
  return (field.category && field.category.includes("")) || regex.test(field.name)
4412
4412
  };
@@ -7361,7 +7361,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
7361
7361
  presentation_data_tag = local_current_dashboard.presentation_data_tag_object.value;
7362
7362
  }
7363
7363
  else if(local_current_dashboard && local_current_dashboard.date_tags && local_current_dashboard.date_tags.length > 0){
7364
- local_current_dashboard.presentation_data_tag_object = lodash.maxBy(local_current_dashboard.date_tags, 'value');
7364
+ local_current_dashboard.presentation_data_tag_object = lodash.clone(lodash.maxBy(local_current_dashboard.date_tags, 'value'));
7365
7365
  if(local_current_dashboard.presentation_data_tag_object){
7366
7366
  presentation_data_tag = local_current_dashboard.presentation_data_tag_object.value;
7367
7367
  }