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.
@@ -5072,8 +5072,16 @@ class DashTableComponent {
5072
5072
  if (event.event) {
5073
5073
  const fineName = event.value.join('_&_');
5074
5074
  this.tableDataConfig.file_name = "report_by_" + fineName;
5075
+ this.tableDataConfig.commonConfig.title = "| " + this.formatFieldName(fineName) + " = ";
5076
+ this.table_columns_config.kpiConfig.formate = "monthly";
5075
5077
  }
5076
5078
  }
5079
+ formatFieldName(name) {
5080
+ return name
5081
+ .replace(/([a-z])([A-Z])/g, '$1 $2')
5082
+ .replace(/_/g, ' ')
5083
+ .replace(/\b\w/g, char => char.toUpperCase());
5084
+ }
5077
5085
  resetViewProprstise() {
5078
5086
  this.viewProperties = {
5079
5087
  enableClickEvent: false,
@@ -11163,7 +11171,12 @@ class ApplicationDatssetsCall {
11163
11171
  resultObj.value = value;
11164
11172
  }
11165
11173
  if (mapping.serverColumn.includes('date') && typeof resultObj.value === 'string') {
11166
- resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
11174
+ if (mapping.formatter && mapping.formatter !== "") {
11175
+ resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(mapping.formatter);
11176
+ }
11177
+ else {
11178
+ resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
11179
+ }
11167
11180
  }
11168
11181
  }
11169
11182
  }
@@ -18406,14 +18419,6 @@ class TemplateDatasetCallService {
18406
18419
  value: mapping.defaultValue,
18407
18420
  aliasColumnName: mapping.localColumn
18408
18421
  };
18409
- if (mapping.serverColumn.includes('date') && typeof resultObj.value === 'string') {
18410
- if (mapping.formatter && mapping.formatter !== "") {
18411
- resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(mapping.formatter);
18412
- }
18413
- else {
18414
- resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
18415
- }
18416
- }
18417
18422
  const filter = filterdata.find(f => f.hasOwnProperty(mapping.localColumn));
18418
18423
  if (filter) {
18419
18424
  if (mapping.defaultValue === "") {
@@ -18426,7 +18431,12 @@ class TemplateDatasetCallService {
18426
18431
  resultObj.value = value;
18427
18432
  }
18428
18433
  if (mapping.serverColumn.includes('date') && typeof resultObj.value === 'string') {
18429
- resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
18434
+ if (mapping.formatter && mapping.formatter !== "") {
18435
+ resultObj.value = moment$1(resultObj.value, this.environment.dataFormat).format(mapping.formatter);
18436
+ }
18437
+ else {
18438
+ resultObj.value = moment$1(resultObj.value, "YYYY-MM-DD").format(this.environment.dataFormat);
18439
+ }
18430
18440
  }
18431
18441
  }
18432
18442
  }
@@ -19469,7 +19479,7 @@ class KpiWithDataSetTestComponent {
19469
19479
  const hourlyNode = this.dashBoardWidgetConfig.widgets
19470
19480
  .map(widget => widget.widgetNode.find(node => this.getHourlyData(node)))
19471
19481
  .find(node => node);
19472
- if (hourlyNode && event.keyToPass.includes("recordDate")) {
19482
+ if (hourlyNode && event.keyToPass.includes("recordDate") || event.keyToPass.includes("record_date")) {
19473
19483
  this.getViewByRowCLickForHourlyChart(event, hourlyNode);
19474
19484
  }
19475
19485
  const currentViewNode = this.dashBoardWidgetConfig.widgets