gamma-app-controller 1.3.4 → 1.3.5

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.
@@ -5083,8 +5083,16 @@ class DashTableComponent {
5083
5083
  if (event.event) {
5084
5084
  const fineName = event.value.join('_&_');
5085
5085
  this.tableDataConfig.file_name = "report_by_" + fineName;
5086
+ this.tableDataConfig.commonConfig.title = "| " + this.formatFieldName(fineName) + " = ";
5087
+ this.table_columns_config.kpiConfig.formate = "monthly";
5086
5088
  }
5087
5089
  }
5090
+ formatFieldName(name) {
5091
+ return name
5092
+ .replace(/([a-z])([A-Z])/g, '$1 $2')
5093
+ .replace(/_/g, ' ')
5094
+ .replace(/\b\w/g, char => char.toUpperCase());
5095
+ }
5088
5096
  resetViewProprstise() {
5089
5097
  this.viewProperties = {
5090
5098
  enableClickEvent: false,
@@ -11180,7 +11188,12 @@ class ApplicationDatssetsCall {
11180
11188
  resultObj.value = value;
11181
11189
  }
11182
11190
  if (mapping.serverColumn.includes('date') && typeof resultObj.value === 'string') {
11183
- resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
11191
+ if (mapping.formatter && mapping.formatter !== "") {
11192
+ resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(mapping.formatter);
11193
+ }
11194
+ else {
11195
+ resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
11196
+ }
11184
11197
  }
11185
11198
  }
11186
11199
  }
@@ -18423,14 +18436,6 @@ class TemplateDatasetCallService {
18423
18436
  value: mapping.defaultValue,
18424
18437
  aliasColumnName: mapping.localColumn
18425
18438
  };
18426
- if (mapping.serverColumn.includes('date') && typeof resultObj.value === 'string') {
18427
- if (mapping.formatter && mapping.formatter !== "") {
18428
- resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(mapping.formatter);
18429
- }
18430
- else {
18431
- resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
18432
- }
18433
- }
18434
18439
  const filter = filterdata.find(f => f.hasOwnProperty(mapping.localColumn));
18435
18440
  if (filter) {
18436
18441
  if (mapping.defaultValue === "") {
@@ -18443,7 +18448,12 @@ class TemplateDatasetCallService {
18443
18448
  resultObj.value = value;
18444
18449
  }
18445
18450
  if (mapping.serverColumn.includes('date') && typeof resultObj.value === 'string') {
18446
- resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
18451
+ if (mapping.formatter && mapping.formatter !== "") {
18452
+ resultObj.value = moment$1(resultObj.value, this.environment.dataFormat).format(mapping.formatter);
18453
+ }
18454
+ else {
18455
+ resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
18456
+ }
18447
18457
  }
18448
18458
  }
18449
18459
  }
@@ -19504,7 +19514,7 @@ class KpiWithDataSetTestComponent {
19504
19514
  const hourlyNode = this.dashBoardWidgetConfig.widgets
19505
19515
  .map(widget => widget.widgetNode.find(node => this.getHourlyData(node)))
19506
19516
  .find(node => node);
19507
- if (hourlyNode && event.keyToPass.includes("recordDate")) {
19517
+ if (hourlyNode && event.keyToPass.includes("recordDate") || event.keyToPass.includes("record_date")) {
19508
19518
  this.getViewByRowCLickForHourlyChart(event, hourlyNode);
19509
19519
  }
19510
19520
  const currentViewNode = this.dashBoardWidgetConfig.widgets