gamma-app-controller 1.2.19 → 1.2.20
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/shared/advanced-component/gamma-today-previous/gamma-today-previous.component.mjs +1 -2
- package/esm2020/lib/template-module/defaulLandingComponent/landing-component.component.mjs +2 -3
- package/esm2020/lib/template-module/defaulLandingMultiLayoutComponent/defaulLandingMultiLayout.component.mjs +4 -5
- package/fesm2015/gamma-app-controller.mjs +4 -7
- package/fesm2015/gamma-app-controller.mjs.map +1 -1
- package/fesm2020/gamma-app-controller.mjs +4 -7
- package/fesm2020/gamma-app-controller.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7096,7 +7096,6 @@ class GammaTodayPreviousComponent {
|
|
|
7096
7096
|
}
|
|
7097
7097
|
this.currentDateData = sortedData[0];
|
|
7098
7098
|
const timeValue = parseInt(value.kpiConfig?.dataConfig?.timeValue) || 1;
|
|
7099
|
-
console.log(timeValue);
|
|
7100
7099
|
this.prevousDaysData = this.isPreviousDay ? sortedData[timeValue] || null : null;
|
|
7101
7100
|
if (this.isPreviousDay && this.prevousDaysData) {
|
|
7102
7101
|
let calValue = Math.abs((parseInt(this.getDynamicValue(this.currentDateData)) - parseInt(this.getDynamicValue(this.prevousDaysData))) /
|
|
@@ -22363,6 +22362,7 @@ class LandingComponentComponent {
|
|
|
22363
22362
|
const innerDiv = document.createElement('div');
|
|
22364
22363
|
innerDiv.classList.add('rounded', 'justify-center', 'items-center', 'border', 'p-1', 'm-1', 'flex', 'flex-row');
|
|
22365
22364
|
item.compConfig.viewConfig.forEach(element => {
|
|
22365
|
+
console.log(element);
|
|
22366
22366
|
element.kpiConfig['dataSource'] = datasetById[element.datasetId];
|
|
22367
22367
|
element.kpiConfig['contextMenu'] = this.contextMenuDataSource;
|
|
22368
22368
|
element['titleParams'] = item.nodeProperties.widgetParams || "";
|
|
@@ -22710,7 +22710,6 @@ class LandingComponentComponent {
|
|
|
22710
22710
|
const queryString = new URLSearchParams(params).toString();
|
|
22711
22711
|
const fullUrl = this.router.serializeUrl(this.router.createUrlTree([data.pageUrl], { queryParams: params }));
|
|
22712
22712
|
this.router.navigate([data.pageUrl], { queryParams });
|
|
22713
|
-
console.log(data);
|
|
22714
22713
|
}
|
|
22715
22714
|
}
|
|
22716
22715
|
});
|
|
@@ -22859,7 +22858,6 @@ class LandingComponentComponent {
|
|
|
22859
22858
|
queryParamsHandling: "merge"
|
|
22860
22859
|
};
|
|
22861
22860
|
this.router.navigate([], navigation);
|
|
22862
|
-
console.log(this.stateDataSource);
|
|
22863
22861
|
setTimeout(() => {
|
|
22864
22862
|
this.scrollToBottom(this.mainPageDivElement);
|
|
22865
22863
|
}, 200);
|
|
@@ -24061,9 +24059,10 @@ class MultiLayoutLandingComponentComponent {
|
|
|
24061
24059
|
this.dataSetModal = datasetConfig;
|
|
24062
24060
|
this.allWidgetByDataset = [];
|
|
24063
24061
|
const { pageId, startDate, endDate, ...params } = this.activatedRoute.snapshot.queryParams;
|
|
24064
|
-
let defaultFilters = { operationFilter: { startDate: "", endDate: "", ...params } };
|
|
24065
24062
|
this.dashBoardWidgetConfig.widgets.forEach(widget => {
|
|
24063
|
+
let defaultFilters = { operationFilter: { startDate: "", endDate: "", ...params } };
|
|
24066
24064
|
widget.filters.filterItems.forEach(element => {
|
|
24065
|
+
debugger;
|
|
24067
24066
|
if (element.filterType === 'date' || element.filterType === 'datetime') {
|
|
24068
24067
|
if (element.defaultFilterType === "dynamic" && element.momentFunction !== "" && element.defaultFilterValue !== "" && element.momentFormat !== "") {
|
|
24069
24068
|
if (element.momentFunction == "monthPicker") {
|
|
@@ -24191,8 +24190,6 @@ class MultiLayoutLandingComponentComponent {
|
|
|
24191
24190
|
this.uniqueDataSetObject = this.datasetService.getUniqueDataSetObject();
|
|
24192
24191
|
this.createDivElements(this.uniqueDataSetObject, false);
|
|
24193
24192
|
this.loadingModal = false;
|
|
24194
|
-
let urlParams = defaultFilters.operationFilter;
|
|
24195
|
-
urlParams['pageId'] = this.pageId;
|
|
24196
24193
|
});
|
|
24197
24194
|
}), error: (err) => {
|
|
24198
24195
|
this.loadingModal = false;
|
|
@@ -24219,6 +24216,7 @@ class MultiLayoutLandingComponentComponent {
|
|
|
24219
24216
|
rowDiv.classList.add(div.widgetProperties.width, w_height);
|
|
24220
24217
|
const filterDiv = document.createElement('div');
|
|
24221
24218
|
const filterItems = (div.filters) ? div.filters.filterItems : [];
|
|
24219
|
+
debugger;
|
|
24222
24220
|
this.loadFilterComponent(div, filterDiv, filterItems, context_filter);
|
|
24223
24221
|
rowDiv.appendChild(filterDiv);
|
|
24224
24222
|
if (div.widgetNode.length != 0) {
|
|
@@ -24417,7 +24415,6 @@ class MultiLayoutLandingComponentComponent {
|
|
|
24417
24415
|
selectedDates = { startDate: view.filters.operationFilter['startDate'], endDate: view.filters.operationFilter['endDate'] };
|
|
24418
24416
|
}
|
|
24419
24417
|
});
|
|
24420
|
-
debugger;
|
|
24421
24418
|
const componentClass = this.componentClassMap['AppAdvanceHeaderComponent'];
|
|
24422
24419
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
24423
24420
|
const dynamicComponentInstance = this.CompRefs.instance;
|