@datarailsshared/dr_renderer 1.2.85 → 1.2.88

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.85",
3
+ "version": "1.2.88",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -701,9 +701,7 @@ let initDRPivotTable = function($, window, document) {
701
701
  if(color_to_set){
702
702
  element.style.setProperty("background-color", color_to_set, "important");
703
703
  element.style.setProperty("border-color", color_to_set, "important");
704
- element.style.color = useNewUx && opts.chartOptions.table_options.use_new_table_design
705
- ? invertColors(color_to_set)
706
- : '#3a3b39';
704
+ element.style.color = invertColors(color_to_set);
707
705
  element.style.fontWeight = "bold";
708
706
  if (opts.chartOptions.table_options.freeze_panes && element.firstChild) {
709
707
  for (const child of element.children) {
@@ -733,9 +731,7 @@ let initDRPivotTable = function($, window, document) {
733
731
  element.style.setProperty("background-color", color_to_set, "important");
734
732
  element.style.setProperty("border-color", color_to_set, "important");
735
733
  element.style.setProperty("vertical-align", "baseline");
736
- element.style.color = useNewUx && opts.chartOptions.table_options.use_new_table_design
737
- ? invertColors(color_to_set)
738
- : '#3a3b39';
734
+ element.style.color = invertColors(color_to_set);
739
735
  element.style.fontWeight = "bold";
740
736
  if (opts.chartOptions.table_options.freeze_panes && element.firstChild) {
741
737
  for (const child of element.children) {
@@ -779,7 +775,7 @@ let initDRPivotTable = function($, window, document) {
779
775
  applyInlineStyles = function(element, className) {
780
776
  const tableDesignOptions = opts.chartOptions.table_design_options;
781
777
  let optionName;
782
- if (!className) return element;
778
+ if (!className || !tableDesignOptions) return element;
783
779
 
784
780
  if (element.className.includes('pvtAxisLabel') ||
785
781
  element.className.includes('pvtColLabel')) {
@@ -5121,7 +5121,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
5121
5121
  if (existing_options && lodash.has(existing_options, type + '.' + elem.value_name)) {
5122
5122
  valToReturn[elem.value_name] = lodash.get(existing_options, type + '.' + elem.value_name);
5123
5123
  }
5124
- if (valToReturn[elem.value_name] == undefined) {
5124
+ if (valToReturn[elem.value_name] == undefined && elem.element_type !== 'devider') {
5125
5125
  valToReturn[elem.value_name] = elem.default_value;
5126
5126
  }
5127
5127
  });