@datarailsshared/dr_renderer 1.2.123 → 1.2.126

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.
@@ -29,7 +29,17 @@ jobs:
29
29
  - run:
30
30
  name: Publish package
31
31
  command: npm publish . --access=public
32
-
32
+ - run:
33
+ name: prepare git tag
34
+ command: |
35
+ VERSION="1.2.$CIRCLE_BUILD_NUM"
36
+ git config --global user.email noreplay@circleci.com
37
+ git config --global user.name circleci
38
+ git config --global -l
39
+ git tag -a "$CIRCLE_BRANCH/$VERSION" -m "circleci build"
40
+ ssh -o "StrictHostKeyChecking no" -T git@bitbucket.org
41
+ git push --tags origin
42
+ echo 555
33
43
  workflows:
34
44
  version: 2
35
45
  npm-publish:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.2.123",
3
+ "version": "1.2.126",
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
  };
@@ -7895,13 +7895,21 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
7895
7895
  }
7896
7896
 
7897
7897
  // another code for charts and tables
7898
+ let default_show = lodash.get(widget_obj.options, 'chartOptions.default_show.value', 'chart');
7898
7899
 
7899
7900
  let subopts = null;
7901
+ let is_table = false;
7900
7902
 
7901
- subopts = highchartsRenderer.getSupOptionsForPivot(widget_obj, pivot, true);
7902
- subopts.onlyOptions = true;
7903
+ if (default_show == "table"){
7904
+ subopts = highchartsRenderer.getOptionsForTable(widget_obj, pivot);
7905
+ is_table = true;
7906
+ }
7907
+ else{
7908
+ subopts = highchartsRenderer.getSupOptionsForPivot(widget_obj, pivot, true);
7909
+ subopts.onlyOptions = true;
7910
+ }
7903
7911
 
7904
- let hc_options = highchartsRenderer.rhPivotView(res, subopts, false);
7912
+ let hc_options = highchartsRenderer.rhPivotView(res, subopts, is_table);
7905
7913
 
7906
7914
  return hc_options;
7907
7915
  }