gamma-app-controller 1.2.15 → 1.2.16
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/template-module/defaulLandingComponent/landing-component.component.mjs +8 -6
- package/esm2020/lib/template-module/kpiWithSingleLayout/kpi-with-dataset.component.mjs +7 -4
- package/fesm2015/gamma-app-controller.mjs +13 -8
- package/fesm2015/gamma-app-controller.mjs.map +1 -1
- package/fesm2020/gamma-app-controller.mjs +13 -8
- package/fesm2020/gamma-app-controller.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -18603,6 +18603,7 @@ class KpiWithDataSetTestComponent {
|
|
|
18603
18603
|
});
|
|
18604
18604
|
let datasetIds = new Set();
|
|
18605
18605
|
let viewIds = new Set();
|
|
18606
|
+
let datasetIdsSet = new Set();
|
|
18606
18607
|
widget.widgetNode.forEach(node => {
|
|
18607
18608
|
if (node.nodeProperties.display) {
|
|
18608
18609
|
node.compConfig.viewConfig.forEach(view => {
|
|
@@ -18621,6 +18622,7 @@ class KpiWithDataSetTestComponent {
|
|
|
18621
18622
|
viewId: view.viewId,
|
|
18622
18623
|
filter: derivedFilters
|
|
18623
18624
|
};
|
|
18625
|
+
datasetIdsSet.add(view.datasetId);
|
|
18624
18626
|
datasetIds.add(node);
|
|
18625
18627
|
viewIds.add(view.viewId);
|
|
18626
18628
|
});
|
|
@@ -18635,11 +18637,12 @@ class KpiWithDataSetTestComponent {
|
|
|
18635
18637
|
const newViews = this.defaultViewIdsOnPageRefresh.map(item => item.viewId);
|
|
18636
18638
|
this.defaultViewIds = [...this.defaultViewIds, ...newViews.filter(item => !this.defaultViewIds.includes(item))];
|
|
18637
18639
|
}
|
|
18640
|
+
let uniquedatasetIds = Array.from(datasetIdsSet);
|
|
18638
18641
|
let obj = {
|
|
18639
18642
|
widgetId: widget.widgetId,
|
|
18640
18643
|
pageId: widget.pageId,
|
|
18641
18644
|
filters: defaultFilters,
|
|
18642
|
-
datasetIds:
|
|
18645
|
+
datasetIds: uniquedatasetIds
|
|
18643
18646
|
};
|
|
18644
18647
|
this.allWidgetByDataset.push(obj);
|
|
18645
18648
|
});
|
|
@@ -18647,9 +18650,9 @@ class KpiWithDataSetTestComponent {
|
|
|
18647
18650
|
let apiCalls = [];
|
|
18648
18651
|
this.allWidgetByDataset.forEach(view => {
|
|
18649
18652
|
view.datasetIds.forEach(id => {
|
|
18650
|
-
let found = datasetConfig.find(d => d.datasetId === id
|
|
18653
|
+
let found = datasetConfig.find(d => d.datasetId === id);
|
|
18651
18654
|
if (found) {
|
|
18652
|
-
apiCalls.push(this.datasetService.getDataFromDataSet(found, id
|
|
18655
|
+
apiCalls.push(this.datasetService.getDataFromDataSet(found, id, view.filters));
|
|
18653
18656
|
}
|
|
18654
18657
|
});
|
|
18655
18658
|
});
|
|
@@ -22217,6 +22220,7 @@ class LandingComponentComponent {
|
|
|
22217
22220
|
});
|
|
22218
22221
|
let datasetIds = new Set();
|
|
22219
22222
|
let viewIds = new Set();
|
|
22223
|
+
let datasetIdsSet = new Set();
|
|
22220
22224
|
widget.widgetNode.forEach(node => {
|
|
22221
22225
|
if (node.nodeProperties.display) {
|
|
22222
22226
|
node.compConfig.viewConfig.forEach(view => {
|
|
@@ -22235,6 +22239,7 @@ class LandingComponentComponent {
|
|
|
22235
22239
|
viewId: view.viewId,
|
|
22236
22240
|
filter: derivedFilters
|
|
22237
22241
|
};
|
|
22242
|
+
datasetIdsSet.add(view.datasetId);
|
|
22238
22243
|
datasetIds.add(node);
|
|
22239
22244
|
viewIds.add(view.viewId);
|
|
22240
22245
|
});
|
|
@@ -22249,21 +22254,23 @@ class LandingComponentComponent {
|
|
|
22249
22254
|
const newViews = this.defaultViewIdsOnPageRefresh.map(item => item.viewId);
|
|
22250
22255
|
this.defaultViewIds = [...this.defaultViewIds, ...newViews.filter(item => !this.defaultViewIds.includes(item))];
|
|
22251
22256
|
}
|
|
22257
|
+
let uniquedatasetIds = Array.from(datasetIdsSet);
|
|
22252
22258
|
let obj = {
|
|
22253
22259
|
widgetId: widget.widgetId,
|
|
22254
22260
|
pageId: widget.pageId,
|
|
22255
22261
|
filters: defaultFilters,
|
|
22256
|
-
datasetIds:
|
|
22262
|
+
datasetIds: uniquedatasetIds
|
|
22257
22263
|
};
|
|
22258
22264
|
this.allWidgetByDataset.push(obj);
|
|
22259
22265
|
});
|
|
22266
|
+
debugger;
|
|
22260
22267
|
this.uniqueDataSetObject = {};
|
|
22261
22268
|
let apiCalls = [];
|
|
22262
22269
|
this.allWidgetByDataset.forEach(view => {
|
|
22263
22270
|
view.datasetIds.forEach(id => {
|
|
22264
|
-
let found = datasetConfig.find(d => d.datasetId === id
|
|
22271
|
+
let found = datasetConfig.find(d => d.datasetId === id);
|
|
22265
22272
|
if (found) {
|
|
22266
|
-
apiCalls.push(this.datasetService.getDataFromDataSet(found, id
|
|
22273
|
+
apiCalls.push(this.datasetService.getDataFromDataSet(found, id, view.filters));
|
|
22267
22274
|
}
|
|
22268
22275
|
});
|
|
22269
22276
|
});
|
|
@@ -22335,7 +22342,6 @@ class LandingComponentComponent {
|
|
|
22335
22342
|
const itemDiv = document.createElement('div');
|
|
22336
22343
|
itemDiv.id = elementId;
|
|
22337
22344
|
itemDiv.classList.add(item.nodeProperties.width, w_height, 'mb-2');
|
|
22338
|
-
debugger;
|
|
22339
22345
|
if (item.nodeProperties.widgetTitle !== "") {
|
|
22340
22346
|
const widgetDiv = this.getWidgetTitleDiv(item);
|
|
22341
22347
|
itemDiv.appendChild(widgetDiv);
|
|
@@ -22357,7 +22363,6 @@ class LandingComponentComponent {
|
|
|
22357
22363
|
else if (existingElement) {
|
|
22358
22364
|
const itemDiv = existingElement;
|
|
22359
22365
|
itemDiv.innerHTML = '';
|
|
22360
|
-
debugger;
|
|
22361
22366
|
if (item.nodeProperties.widgetTitle !== "") {
|
|
22362
22367
|
const widgetDiv = this.getWidgetTitleDiv(item);
|
|
22363
22368
|
itemDiv.appendChild(widgetDiv);
|