gamma-app-controller 1.2.21 → 1.2.24

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.
@@ -4389,16 +4389,21 @@ class DashChartComponent {
4389
4389
  this.bubbleChartData = value.data;
4390
4390
  this.previewData = value.data;
4391
4391
  if (value.selectedWidgetConfig) {
4392
+ this.chartConfig = value.selectedWidgetConfig.dataConfig;
4392
4393
  this.mainChartCourceObject['kpiConfig'] = value.selectedWidgetConfig;
4393
4394
  value.selectedWidgetConfig['keyToPass'] = (value.selectedWidgetConfig['keyToPass']) ? value.selectedWidgetConfig['keyToPass'] : [];
4394
- value.selectedWidgetConfig['kpiConfig']['dataConfig']['chartGroupBy'] = (value.selectedWidgetConfig['kpiConfig']['dataConfig']['chartGroupBy']) ? value.selectedWidgetConfig['kpiConfig']['dataConfig']['chartGroupBy'] : "";
4395
+ value.selectedWidgetConfig['dataConfig']['chartGroupBy'] = (value.selectedWidgetConfig['dataConfig']['chartGroupBy']) ? value.selectedWidgetConfig['dataConfig']['chartGroupBy'] : "";
4396
+ if (value.selectedWidgetConfig['dataConfig']['chartGroupBy']) {
4397
+ const { dataSourceForChart, listOfGroupByData } = this.getStackBarChart(this.previewData, this.chartConfig.argumentField, this.chartConfig.chart_config[0].valueField, value.selectedWidgetConfig['dataConfig']['chartGroupBy']);
4398
+ this.dataSourseForChart = dataSourceForChart;
4399
+ this.stackbarChartSerise = listOfGroupByData;
4400
+ }
4395
4401
  if (!value.selectedWidgetConfig.commonConfig) {
4396
4402
  value.selectedWidgetConfig['commonConfig'] = {
4397
4403
  "title": "",
4398
4404
  "dataField": "",
4399
4405
  };
4400
4406
  }
4401
- this.chartConfig = value.selectedWidgetConfig.dataConfig;
4402
4407
  if (value.selectedWidgetConfig.dataConfig['chartType'] && value.selectedWidgetConfig.dataConfig['chartType'] == 'bubble') {
4403
4408
  this.getHeatmapData();
4404
4409
  }
@@ -18631,7 +18636,7 @@ class KpiWithDataSetTestComponent {
18631
18636
  this.componentConfigDataSource = viewConfig;
18632
18637
  this.dataSetModal = datasetConfig;
18633
18638
  this.allWidgetByDataset = [];
18634
- const _a = this.activatedRoute.snapshot.queryParams, { pageId, startDate, endDate } = _a, params = __rest(_a, ["pageId", "startDate", "endDate"]);
18639
+ const _a = this.activatedRoute.snapshot.queryParams, { pageId, startDate, endDate, id, name } = _a, params = __rest(_a, ["pageId", "startDate", "endDate", "id", "name"]);
18635
18640
  let defaultFilters = { operationFilter: Object.assign({ startDate: "", endDate: "" }, params) };
18636
18641
  this.dashBoardWidgetConfig.widgets.forEach(widget => {
18637
18642
  var _a;
@@ -19166,7 +19171,7 @@ class KpiWithDataSetTestComponent {
19166
19171
  else if (eventType == 'navigateToPage') {
19167
19172
  this.service.getAppPageDetailConfig(associatedPage).subscribe({
19168
19173
  next: (data) => {
19169
- let _a = this.activatedRoute.snapshot.queryParams, { pageId } = _a, params = __rest(_a, ["pageId"]);
19174
+ let _a = this.activatedRoute.snapshot.queryParams, { pageId, id, name } = _a, params = __rest(_a, ["pageId", "id", "name"]);
19170
19175
  let associatedParamsTemplate = clickEventOptions.associatedParams;
19171
19176
  let appliedFilters = this.getSetOperatorFilter(event, this.stateDataSource.get(event.viewId));
19172
19177
  event.keyToPass.forEach(element => {
@@ -22289,7 +22294,7 @@ class LandingComponentComponent {
22289
22294
  this.componentConfigDataSource = viewConfig;
22290
22295
  this.dataSetModal = datasetConfig;
22291
22296
  this.allWidgetByDataset = [];
22292
- const _a = this.activatedRoute.snapshot.queryParams, { pageId, startDate, endDate } = _a, params = __rest(_a, ["pageId", "startDate", "endDate"]);
22297
+ const _a = this.activatedRoute.snapshot.queryParams, { pageId, startDate, endDate, id, name } = _a, params = __rest(_a, ["pageId", "startDate", "endDate", "id", "name"]);
22293
22298
  let defaultFilters = { operationFilter: Object.assign({ startDate: "", endDate: "" }, params) };
22294
22299
  this.dashBoardWidgetConfig.widgets.forEach(widget => {
22295
22300
  var _a;
@@ -22825,7 +22830,7 @@ class LandingComponentComponent {
22825
22830
  else if (eventType == 'navigateToPage') {
22826
22831
  this.service.getAppPageDetailConfig(associatedPage).subscribe({
22827
22832
  next: (data) => {
22828
- let _a = this.activatedRoute.snapshot.queryParams, { pageId } = _a, params = __rest(_a, ["pageId"]);
22833
+ let _a = this.activatedRoute.snapshot.queryParams, { pageId, id, name } = _a, params = __rest(_a, ["pageId", "id", "name"]);
22829
22834
  let associatedParamsTemplate = clickEventOptions.associatedParams;
22830
22835
  let appliedFilters = this.getSetOperatorFilter(event, this.stateDataSource.get(event.viewId));
22831
22836
  event.keyToPass.forEach(element => {
@@ -24210,7 +24215,7 @@ class MultiLayoutLandingComponentComponent {
24210
24215
  this.componentConfigDataSource = viewConfig;
24211
24216
  this.dataSetModal = datasetConfig;
24212
24217
  this.allWidgetByDataset = [];
24213
- const _a = this.activatedRoute.snapshot.queryParams, { pageId, startDate, endDate } = _a, params = __rest(_a, ["pageId", "startDate", "endDate"]);
24218
+ const _a = this.activatedRoute.snapshot.queryParams, { pageId, startDate, endDate, id, name } = _a, params = __rest(_a, ["pageId", "startDate", "endDate", "id", "name"]);
24214
24219
  this.dashBoardWidgetConfig.widgets.forEach(widget => {
24215
24220
  var _a;
24216
24221
  let defaultFilters = { operationFilter: Object.assign({ startDate: "", endDate: "" }, params) };
@@ -24741,7 +24746,7 @@ class MultiLayoutLandingComponentComponent {
24741
24746
  else if (eventType == 'navigateToPage') {
24742
24747
  this.service.getAppPageDetailConfig(associatedPage).subscribe({
24743
24748
  next: (data) => {
24744
- let _a = this.activatedRoute.snapshot.queryParams, { pageId } = _a, params = __rest(_a, ["pageId"]);
24749
+ let _a = this.activatedRoute.snapshot.queryParams, { pageId, id, name } = _a, params = __rest(_a, ["pageId", "id", "name"]);
24745
24750
  let associatedParamsTemplate = clickEventOptions.associatedParams;
24746
24751
  let appliedFilters = this.getSetOperatorFilter(event, this.stateDataSource.get(event.viewId));
24747
24752
  event.keyToPass.forEach(element => {