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
|
@@ -5011,10 +5011,18 @@ class CreateCompViewComponent {
|
|
|
5011
5011
|
}
|
|
5012
5012
|
getDatasetForPlainJson(dataset) {
|
|
5013
5013
|
let requestapi = dataset.config.api + '?datasetId=' + dataset.datasetId;
|
|
5014
|
+
this.dataSourceModal = {};
|
|
5014
5015
|
this.service.getJsonDatasetPayload(requestapi).subscribe({
|
|
5015
5016
|
next: (data) => {
|
|
5016
5017
|
this.dataSourceModal['data'] = data.slice(0, 1);
|
|
5018
|
+
const payload = data["Payload"] || data;
|
|
5019
|
+
this.dataSourceModal['data'] = payload;
|
|
5020
|
+
this.dataSourceModal['requestId'] = dataset.config.serviceId;
|
|
5021
|
+
this.dataSourceModal['api'] = dataset.config.api;
|
|
5022
|
+
this.dataSourceModal['selectedViewType'] = this.selectedViewType;
|
|
5023
|
+
this.dataSourceModal['selectedWidgetConfig'] = (this.selectedDataSet.selectedWidgetConfig) ? this.selectedDataSet.selectedWidgetConfig : undefined;
|
|
5017
5024
|
this.isLoader = false;
|
|
5025
|
+
this.isGenerate = true;
|
|
5018
5026
|
},
|
|
5019
5027
|
error: (err) => {
|
|
5020
5028
|
console.error('Error:', err);
|
|
@@ -9030,8 +9038,13 @@ class PageConfigComponent {
|
|
|
9030
9038
|
let apiCalls = [];
|
|
9031
9039
|
this.service.getAppDatasetConfig(element.datasetId).subscribe({
|
|
9032
9040
|
next: (dataset) => {
|
|
9033
|
-
|
|
9034
|
-
|
|
9041
|
+
if (dataset.datasetType !== "sqlQuery" && dataset.datasetType !== "plainjson") {
|
|
9042
|
+
const datasetWithLimit = this.setDataSetsLimit(dataset);
|
|
9043
|
+
apiCalls.push(this.datasetService.getDataFromDataSet(datasetWithLimit, datasetWithLimit.datasetId, this.defaultApplyedFilter));
|
|
9044
|
+
}
|
|
9045
|
+
else {
|
|
9046
|
+
apiCalls.push(this.datasetService.getDataFromDataSet(dataset, dataset.datasetId, this.defaultApplyedFilter));
|
|
9047
|
+
}
|
|
9035
9048
|
Promise.all(apiCalls).then(() => {
|
|
9036
9049
|
this.uniqueDataSetObject = this.datasetService.getUniqueDataSetObject();
|
|
9037
9050
|
element.kpiConfig['dataSource'] = this.uniqueDataSetObject[element.datasetId];
|