@datarailsshared/dr_renderer 1.2.110 → 1.2.111

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.110",
3
+ "version": "1.2.111",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -242,7 +242,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
242
242
 
243
243
  highchartsRenderer.createFilterObject = function (value) {
244
244
  var filtOb = {};
245
- if ((value.values && value.values.datetype && value.values.datetype != 'list') || (value.datetypevalues && value.datetypevalues.datetype != 'list')) {
245
+ if ((value.values && value.values.datetype && value.values.datetype != 'list') ||
246
+ (value.datetypevalues && value.datetypevalues.datetype != 'list') ||
247
+ (value.values && value.values.type === 'advanced')) {
246
248
  filtOb.values = value.datetypevalues || value.values;
247
249
  filtOb.is_excluded = false;
248
250
  } else if (value.excludes) {
@@ -5157,7 +5159,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
5157
5159
 
5158
5160
  highchartsRenderer.getDefaultValueForSubOptions = function (type, existing_options) {
5159
5161
  var valToReturn = {};
5160
- var option = highchartsRenderer.suboptions[type];
5162
+ var option = highchartsRenderer.suboptions[type] || lodash.find(highchartsRenderer.suboptions, suboption => suboption.category_type === type);
5161
5163
  if (option) {
5162
5164
  lodash.forEach(option.elements, function (elem) {
5163
5165
  if (existing_options && lodash.has(existing_options, type + '.' + elem.value_name)) {