gamma-app-controller 1.0.3 → 1.0.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.
- package/esm2020/lib/application-controller/application-view-components/create-comp-view/create-comp-view.component.mjs +9 -1
- package/esm2020/lib/application-controller/page-controller/page-config/page-config.component.mjs +8 -3
- package/fesm2015/gamma-app-controller.mjs +15 -2
- package/fesm2015/gamma-app-controller.mjs.map +1 -1
- package/fesm2020/gamma-app-controller.mjs +15 -2
- package/fesm2020/gamma-app-controller.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5014,10 +5014,18 @@ class CreateCompViewComponent {
|
|
|
5014
5014
|
}
|
|
5015
5015
|
getDatasetForPlainJson(dataset) {
|
|
5016
5016
|
let requestapi = dataset.config.api + '?datasetId=' + dataset.datasetId;
|
|
5017
|
+
this.dataSourceModal = {};
|
|
5017
5018
|
this.service.getJsonDatasetPayload(requestapi).subscribe({
|
|
5018
5019
|
next: (data) => {
|
|
5019
5020
|
this.dataSourceModal['data'] = data.slice(0, 1);
|
|
5021
|
+
const payload = data["Payload"] || data;
|
|
5022
|
+
this.dataSourceModal['data'] = payload;
|
|
5023
|
+
this.dataSourceModal['requestId'] = dataset.config.serviceId;
|
|
5024
|
+
this.dataSourceModal['api'] = dataset.config.api;
|
|
5025
|
+
this.dataSourceModal['selectedViewType'] = this.selectedViewType;
|
|
5026
|
+
this.dataSourceModal['selectedWidgetConfig'] = (this.selectedDataSet.selectedWidgetConfig) ? this.selectedDataSet.selectedWidgetConfig : undefined;
|
|
5020
5027
|
this.isLoader = false;
|
|
5028
|
+
this.isGenerate = true;
|
|
5021
5029
|
},
|
|
5022
5030
|
error: (err) => {
|
|
5023
5031
|
console.error('Error:', err);
|
|
@@ -9037,8 +9045,13 @@ class PageConfigComponent {
|
|
|
9037
9045
|
let apiCalls = [];
|
|
9038
9046
|
this.service.getAppDatasetConfig(element.datasetId).subscribe({
|
|
9039
9047
|
next: (dataset) => {
|
|
9040
|
-
|
|
9041
|
-
|
|
9048
|
+
if (dataset.datasetType !== "sqlQuery" && dataset.datasetType !== "plainjson") {
|
|
9049
|
+
const datasetWithLimit = this.setDataSetsLimit(dataset);
|
|
9050
|
+
apiCalls.push(this.datasetService.getDataFromDataSet(datasetWithLimit, datasetWithLimit.datasetId, this.defaultApplyedFilter));
|
|
9051
|
+
}
|
|
9052
|
+
else {
|
|
9053
|
+
apiCalls.push(this.datasetService.getDataFromDataSet(dataset, dataset.datasetId, this.defaultApplyedFilter));
|
|
9054
|
+
}
|
|
9042
9055
|
Promise.all(apiCalls).then(() => {
|
|
9043
9056
|
this.uniqueDataSetObject = this.datasetService.getUniqueDataSetObject();
|
|
9044
9057
|
element.kpiConfig['dataSource'] = this.uniqueDataSetObject[element.datasetId];
|