@datarailsshared/dr_renderer 1.2.94 → 1.2.97

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.94",
3
+ "version": "1.2.97",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -330,7 +330,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
330
330
  chart = chartElement.highcharts();
331
331
  } else {
332
332
  const graphId = Number(graph_id.split('_')[1]);
333
- chart = lodash.find(window.Highcharts.charts, function(value) {
333
+ chart = lodash.find(Highcharts.charts, function(value) {
334
334
  return value.options.widgetId === graphId;
335
335
  });
336
336
  }
@@ -6877,9 +6877,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
6877
6877
  ret['values'] = element.datetypevalues;
6878
6878
  else {
6879
6879
  ret['values'] = element['includes'] || element['excludes'] || [];
6880
- ret['values'] = ret['values'].filter(function (n) {
6880
+ ret['values'] = lodash.isArray(ret['values']) ? ret['values'].filter(function (n) {
6881
6881
  return n != undefined
6882
- });
6882
+ }) : ret['values'];
6883
6883
  }
6884
6884
  ret['is_excluded'] = element.hasOwnProperty('excludes') && element.excludes != null;
6885
6885
  ret['allow_nulls'] = element.hasOwnProperty('allow_nulls') ? element.allow_nulls : false;
package/src/pivot.css CHANGED
@@ -24,6 +24,11 @@ table.pvtTable thead tr th, table.pvtTable tbody tr th {
24
24
  font-weight: 700;
25
25
  }
26
26
 
27
+ table.pvtTable thead tr th > i,
28
+ table.pvtTable tbody tr th > i {
29
+ font-size: 10px;
30
+ }
31
+
27
32
  table.pvtTable .pvtColLabel {text-align: center;}
28
33
  table.pvtTable .pvtTotalLabel {text-align: right;}
29
34
 
package/src/pivottable.js CHANGED
@@ -926,7 +926,8 @@ let initPivotTable = function($, window, document) {
926
926
  return PivotData;
927
927
 
928
928
  })();
929
- window.$.pivotUtilities = $.pivotUtilities = {
929
+
930
+ $.pivotUtilities = {
930
931
  aggregatorTemplates: aggregatorTemplates,
931
932
  aggregators: aggregators,
932
933
  renderers: renderers,
@@ -938,6 +939,9 @@ let initPivotTable = function($, window, document) {
938
939
  PivotData: PivotData,
939
940
  errorHandling: errorHandling,
940
941
  };
942
+ if (window.$) {
943
+ window.$.pivotUtilities = $.pivotUtilities
944
+ }
941
945
 
942
946
  /*
943
947
  Default Renderer for hierarchical table layout