gamma-app-controller 1.3.1 → 1.3.3

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.
@@ -4866,6 +4866,7 @@ class DashTableComponent {
4866
4866
  this.getTableConfigOutPut = new EventEmitter();
4867
4867
  }
4868
4868
  set chartconfigData(value) {
4869
+ var _a;
4869
4870
  if (value === undefined || value.length === 0) {
4870
4871
  return;
4871
4872
  }
@@ -4874,7 +4875,7 @@ class DashTableComponent {
4874
4875
  this.configColume = Object.keys(value.data[0]);
4875
4876
  this.dataSourseForTable = value.data.slice(0, 10);
4876
4877
  this.selectedViewConfigs = value;
4877
- this.userOptionContainer = value.selectedWidgetConfig.permissions ? value.selectedWidgetConfig.permissions : [];
4878
+ this.userOptionContainer = ((_a = value.selectedWidgetConfig) === null || _a === void 0 ? void 0 : _a.permissions) ? value.selectedWidgetConfig.permissions : [];
4878
4879
  this.selectedTableViewType = value.selectedViewType;
4879
4880
  if (value.selectedWidgetConfig) {
4880
4881
  this.table_columns_config['kpiConfig'] = value.selectedWidgetConfig;
@@ -5317,6 +5318,7 @@ class TableWithBarComponent {
5317
5318
  this.selectedViews = [];
5318
5319
  }
5319
5320
  set chartconfigData(value) {
5321
+ var _a;
5320
5322
  if (value === undefined || value.length === 0) {
5321
5323
  return;
5322
5324
  }
@@ -5325,7 +5327,7 @@ class TableWithBarComponent {
5325
5327
  this.configColume = Object.keys(value.data[0]);
5326
5328
  this.dataSourseForTable = value.data.slice(0, 5);
5327
5329
  this.selectedViewConfigs = value;
5328
- this.userOptionContainer = value.selectedWidgetConfig.permissions ? value.selectedWidgetConfig.permissions : [];
5330
+ this.userOptionContainer = ((_a = value.selectedWidgetConfig) === null || _a === void 0 ? void 0 : _a.permissions) ? value.selectedWidgetConfig.permissions : [];
5329
5331
  this.selectedTableViewType = value.selectedViewType;
5330
5332
  if (value.selectedWidgetConfig) {
5331
5333
  this.table_columns_config['kpiConfig'] = value.selectedWidgetConfig;
@@ -6637,10 +6639,15 @@ class CreateCompViewComponent {
6637
6639
  this.getDataSet();
6638
6640
  }
6639
6641
  getViewType(e) {
6640
- this.isKpiConfigSelected = false;
6641
- this.isKpiSelected = false;
6642
- this.isGenerate = false;
6643
- this.isCreateNewView = false;
6642
+ if (e.event) {
6643
+ this.isKpiConfigSelected = false;
6644
+ this.isKpiSelected = false;
6645
+ this.isGenerate = false;
6646
+ this.isCreateNewView = false;
6647
+ this.creatCompViewObject['viewName'] = this.selectedDataSet.datasetName + ' ' + e.value;
6648
+ this.creatCompViewObject['viewLabel'] = this.selectedDataSet.datasetName + ' ' + e.value;
6649
+ ;
6650
+ }
6644
6651
  }
6645
6652
  getDataSet() {
6646
6653
  this.service.getAppDatasetConfigs().subscribe({