gamma-app-controller 1.2.22 → 1.2.25

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.
@@ -8374,7 +8374,9 @@ class AppAdvanceHeaderComponent {
8374
8374
  else if (displayEndDate) {
8375
8375
  selectedText = displayEndDate;
8376
8376
  }
8377
- const element = document.getElementById(this.filterObjects.widgetId);
8377
+ const element = this.filterObjects?.widgetId
8378
+ ? document.getElementById(this.filterObjects.widgetId)
8379
+ : null;
8378
8380
  if (element) {
8379
8381
  element.innerText = selectedText;
8380
8382
  }
@@ -18487,7 +18489,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
18487
18489
  }] } });
18488
18490
 
18489
18491
  class KpiWithDataSetTestComponent {
18490
- constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, chatApiService, storage) {
18492
+ constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, chatApiService, storage, cdr) {
18491
18493
  this.commonService = commonService;
18492
18494
  this.activatedRoute = activatedRoute;
18493
18495
  this.viewContainerRef = viewContainerRef;
@@ -18498,6 +18500,7 @@ class KpiWithDataSetTestComponent {
18498
18500
  this.datasetService = datasetService;
18499
18501
  this.chatApiService = chatApiService;
18500
18502
  this.storage = storage;
18503
+ this.cdr = cdr;
18501
18504
  this.dashbord_container = [];
18502
18505
  this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
18503
18506
  this.page_title = 'Dashboard';
@@ -18549,29 +18552,32 @@ class KpiWithDataSetTestComponent {
18549
18552
  });
18550
18553
  this.loadingModal = true;
18551
18554
  this.pageId = this.activatedRoute.snapshot.queryParams['pageId'];
18555
+ const { pageId } = this.activatedRoute.snapshot.queryParams;
18556
+ if (this.pageId) {
18557
+ this.router.navigate([], {
18558
+ queryParams: { pageId },
18559
+ replaceUrl: true,
18560
+ });
18561
+ }
18552
18562
  this.getPadeDataSource(false);
18553
18563
  }
18554
18564
  async getFiltersForTemplate(filter) {
18555
18565
  this.filters = filter;
18556
- this.defaultStartDate = filter.startDate;
18557
- this.defaultEndDate = filter.endDate;
18558
18566
  filter.operationFilter['startDate'] = filter.startDate;
18559
18567
  filter.operationFilter['endDate'] = filter.endDate;
18560
18568
  this.loadingModal = true;
18561
- this.dashBoardWidgetConfig = [];
18562
- let navigation = {
18563
- queryParams: filter.operationFilter,
18564
- queryParamsHandling: "merge"
18565
- };
18566
- this.router.navigate([], navigation);
18567
18569
  await this.getPadeDataSource(true);
18568
18570
  this.uniqueDataSetObject = {};
18569
18571
  let apiCalls = [];
18570
18572
  this.allWidgetByDataset.forEach(view => {
18571
18573
  view.datasetIds.forEach(id => {
18572
- let found = this.dataSetModal.find(d => d.datasetId === id.datasetId);
18573
- if (found) {
18574
- apiCalls.push(this.datasetService.getDataFromDataSet(found, id.datasetId, filter));
18574
+ if (view.widgetId == filter.filterObjects.widgetId) {
18575
+ let found = this.dataSetModal.find(d => d.datasetId === id);
18576
+ let widgetFilter = this.getWidgetFilterItems(filter.filterObjects.filters.filterItems);
18577
+ view.filters = widgetFilter;
18578
+ if (found) {
18579
+ apiCalls.push(this.datasetService.getDataFromDataSet(found, id, widgetFilter));
18580
+ }
18575
18581
  }
18576
18582
  });
18577
18583
  });
@@ -18579,9 +18585,39 @@ class KpiWithDataSetTestComponent {
18579
18585
  this.globalDefaultFilter = filter;
18580
18586
  this.uniqueDataSetObject = this.datasetService.getUniqueDataSetObject();
18581
18587
  this.createDivElements(this.uniqueDataSetObject, true);
18588
+ this.cdr.detectChanges();
18582
18589
  this.loadingModal = false;
18583
18590
  });
18584
18591
  }
18592
+ getWidgetFilterItems(widgetFilterData) {
18593
+ let apiJsonObject = {};
18594
+ apiJsonObject['operationFilter'] = {};
18595
+ widgetFilterData.forEach(element => {
18596
+ if (element.filterType == 'date' || element.filterType == 'datetime') {
18597
+ apiJsonObject['operationFilter'][element.apiName] = moment$1(element.filterDataSourceValue).format(element.momentFormat);
18598
+ }
18599
+ else {
18600
+ if ((typeof element.filterDataSourceValue === "string" && element.filterDataSourceValue !== "") ||
18601
+ (Array.isArray(element.filterDataSourceValue) && element.filterDataSourceValue.length > 0)) {
18602
+ if (element.operatorName !== "") {
18603
+ if (element.filterType == "content") {
18604
+ apiJsonObject['operationFilter'][element.operatorName] = element.filterDataSourceValue;
18605
+ }
18606
+ if (element.filterType == "single") {
18607
+ apiJsonObject['operationFilter'][element.operatorName] = element.filterDataSourceValue;
18608
+ }
18609
+ else {
18610
+ apiJsonObject['operationFilter'][element.operatorName] = Array.isArray(element.filterDataSourceValue) ? element.filterDataSourceValue : [element.filterDataSourceValue];
18611
+ }
18612
+ }
18613
+ else {
18614
+ apiJsonObject[element.apiName] = element.filterDataSourceValue;
18615
+ }
18616
+ }
18617
+ }
18618
+ });
18619
+ return apiJsonObject;
18620
+ }
18585
18621
  getPadeDataSource(context) {
18586
18622
  return new Promise((resolve, reject) => {
18587
18623
  this.service.getAppPageDetailConfig(this.pageId).subscribe({
@@ -18615,7 +18651,7 @@ class KpiWithDataSetTestComponent {
18615
18651
  this.componentConfigDataSource = viewConfig;
18616
18652
  this.dataSetModal = datasetConfig;
18617
18653
  this.allWidgetByDataset = [];
18618
- const { pageId, startDate, endDate, ...params } = this.activatedRoute.snapshot.queryParams;
18654
+ const { pageId, startDate, endDate, id, name, ...params } = this.activatedRoute.snapshot.queryParams;
18619
18655
  let defaultFilters = { operationFilter: { startDate: "", endDate: "", ...params } };
18620
18656
  this.dashBoardWidgetConfig.widgets.forEach(widget => {
18621
18657
  widget.filters.filterItems.forEach(element => {
@@ -18977,6 +19013,7 @@ class KpiWithDataSetTestComponent {
18977
19013
  dynamicComponentInstance.selectedDates = selectedDates;
18978
19014
  dynamicComponentInstance.filterItems = filterItems;
18979
19015
  dynamicComponentInstance.contextFilterItems = context_filter;
19016
+ dynamicComponentInstance.filterObjects = indexObj;
18980
19017
  dynamicComponentInstance.pageTitle = this.pageTitle;
18981
19018
  dynamicComponentInstance.bread_crumbs_container = this.kpi_breadcrumbs_container;
18982
19019
  dynamicComponentInstance.isEditButton = (userName && userName == "admin") ? true : false;
@@ -19143,7 +19180,7 @@ class KpiWithDataSetTestComponent {
19143
19180
  else if (eventType == 'navigateToPage') {
19144
19181
  this.service.getAppPageDetailConfig(associatedPage).subscribe({
19145
19182
  next: (data) => {
19146
- let { pageId, ...params } = this.activatedRoute.snapshot.queryParams;
19183
+ let { pageId, id, name, ...params } = this.activatedRoute.snapshot.queryParams;
19147
19184
  let associatedParamsTemplate = clickEventOptions.associatedParams;
19148
19185
  let appliedFilters = this.getSetOperatorFilter(event, this.stateDataSource.get(event.viewId));
19149
19186
  event.keyToPass.forEach(element => {
@@ -19664,12 +19701,12 @@ class KpiWithDataSetTestComponent {
19664
19701
  return results.join('\n');
19665
19702
  }
19666
19703
  }
19667
- KpiWithDataSetTestComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithDataSetTestComponent, deps: [{ token: CommonService }, { token: i2.ActivatedRoute }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: KpiWithSingleLayoutService }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: SingleLayoutApplicationDatssetsCall }, { token: ApplicationChatApiCallService }, { token: AppSingleLayoutLocalStorage }], target: i0.ɵɵFactoryTarget.Component });
19704
+ KpiWithDataSetTestComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithDataSetTestComponent, deps: [{ token: CommonService }, { token: i2.ActivatedRoute }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: KpiWithSingleLayoutService }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: SingleLayoutApplicationDatssetsCall }, { token: ApplicationChatApiCallService }, { token: AppSingleLayoutLocalStorage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
19668
19705
  KpiWithDataSetTestComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: KpiWithDataSetTestComponent, selector: "app-kpi-with-dataset", viewQueries: [{ propertyName: "dynamicComponentContainer", first: true, predicate: ["dynamicComponentContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "dynamicContainer", first: true, predicate: ["dynamicContainer"], descendants: true, static: true }, { propertyName: "dynamicContainerForPopup", first: true, predicate: ["dynamicContainerForPopup"], descendants: true, static: true }], ngImport: i0, template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n\n<div class=\"w-full\">\n <div class=\"flex flex-wrap \" #dynamicContainer></div>\n</div>\n\n<dx-popup [(visible)]=\"isWidgetFilters\" [closeOnOutsideClick]=\"false\" [dragEnabled]=\"false\" [width]=\"800\" [height]=\"400\"\n [showTitle]=\"true\" class=\"popup\" title=\"Dataset Filter\">\n <div *dxTemplate=\"let data of 'content'\">\n <div class=\"my-2\">\n <dx-scroll-view [width]=\"'100%'\" [height]=\"'85%'\">\n <ng-container *ngFor=\"let item of nodeproperticeFilterDataSource.havingConfig; let i = index\">\n <div class=\"flex flex-row my-2\">\n <div class=\"m-1\">\n <dx-text-box [(ngModel)]=\"item.columnName\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <dx-select-box [items]=\"['get','let']\" [(ngModel)]=\"item.operator\"\n placeholder=\"Operator\"></dx-select-box>\n </div>\n <div class=\"m-1\">\n <dx-text-box [(ngModel)]=\"item.value\"></dx-text-box>\n </div>\n </div>\n </ng-container>\n\n </dx-scroll-view>\n <div class=\"flex justify-end mx-1 flex-grow border-t\">\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mt-2\"\n (click)=\"submitFilter()\">Submit</button>\n </div>\n\n </div>\n\n </div>\n</dx-popup>\n<dx-popup [(visible)]=\"isPopupView\" [closeOnOutsideClick]=\"false\" [dragEnabled]=\"false\" [width]=\"1000\" [height]=\"'auto'\"\n [showTitle]=\"true\" class=\"popup\" title=\"Popup View\">\n <div *dxTemplate=\"let data of 'content'\">\n <div class=\"w-full\">\n <app-dynamic-widget [modalConfigs]=\"modalConfigs\" [contextMenuDataSource]=\"contextMenuDataSource\">\n </app-dynamic-widget>\n </div>\n </div>\n</dx-popup>", styles: [".custom-tooltip{display:none;position:absolute;top:100%;left:0;background:rgba(0,0,0,.8);color:#fff;padding:8px;border-radius:5px;font-size:12px;white-space:nowrap;z-index:100}\n"], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoadingComponent$1, selector: "app-loading" }, { kind: "directive", type: i5.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: i9$1.DxPopupComponent, selector: "dx-popup", inputs: ["accessKey", "animation", "closeOnOutsideClick", "container", "contentTemplate", "copyRootClassesToWrapper", "deferRendering", "disabled", "dragAndResizeArea", "dragEnabled", "dragOutsideBoundary", "elementAttr", "focusStateEnabled", "fullScreen", "height", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "resizeEnabled", "restorePosition", "rtlEnabled", "shading", "shadingColor", "showCloseButton", "showTitle", "tabIndex", "title", "titleTemplate", "toolbarItems", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onResize", "onResizeEnd", "onResizeStart", "onShowing", "onShown", "onTitleRendered", "accessKeyChange", "animationChange", "closeOnOutsideClickChange", "containerChange", "contentTemplateChange", "copyRootClassesToWrapperChange", "deferRenderingChange", "disabledChange", "dragAndResizeAreaChange", "dragEnabledChange", "dragOutsideBoundaryChange", "elementAttrChange", "focusStateEnabledChange", "fullScreenChange", "heightChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "resizeEnabledChange", "restorePositionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showCloseButtonChange", "showTitleChange", "tabIndexChange", "titleChange", "titleTemplateChange", "toolbarItemsChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "component", type: i10$1.DxScrollViewComponent, selector: "dx-scroll-view", inputs: ["bounceEnabled", "direction", "disabled", "elementAttr", "height", "pulledDownText", "pullingDownText", "reachBottomText", "refreshingText", "rtlEnabled", "scrollByContent", "scrollByThumb", "showScrollbar", "useNative", "width"], outputs: ["onDisposing", "onInitialized", "onOptionChanged", "onPullDown", "onReachBottom", "onScroll", "onUpdated", "bounceEnabledChange", "directionChange", "disabledChange", "elementAttrChange", "heightChange", "pulledDownTextChange", "pullingDownTextChange", "reachBottomTextChange", "refreshingTextChange", "rtlEnabledChange", "scrollByContentChange", "scrollByThumbChange", "showScrollbarChange", "useNativeChange", "widthChange"] }, { kind: "component", type: i6$1.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "component", type: i7.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "directive", type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DynamicWidgetComponent, selector: "app-dynamic-widget", inputs: ["view", "datasetById", "contextMenuDataSource", "modalConfigs"] }] });
19669
19706
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithDataSetTestComponent, decorators: [{
19670
19707
  type: Component,
19671
19708
  args: [{ selector: 'app-kpi-with-dataset', template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n\n<div class=\"w-full\">\n <div class=\"flex flex-wrap \" #dynamicContainer></div>\n</div>\n\n<dx-popup [(visible)]=\"isWidgetFilters\" [closeOnOutsideClick]=\"false\" [dragEnabled]=\"false\" [width]=\"800\" [height]=\"400\"\n [showTitle]=\"true\" class=\"popup\" title=\"Dataset Filter\">\n <div *dxTemplate=\"let data of 'content'\">\n <div class=\"my-2\">\n <dx-scroll-view [width]=\"'100%'\" [height]=\"'85%'\">\n <ng-container *ngFor=\"let item of nodeproperticeFilterDataSource.havingConfig; let i = index\">\n <div class=\"flex flex-row my-2\">\n <div class=\"m-1\">\n <dx-text-box [(ngModel)]=\"item.columnName\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <dx-select-box [items]=\"['get','let']\" [(ngModel)]=\"item.operator\"\n placeholder=\"Operator\"></dx-select-box>\n </div>\n <div class=\"m-1\">\n <dx-text-box [(ngModel)]=\"item.value\"></dx-text-box>\n </div>\n </div>\n </ng-container>\n\n </dx-scroll-view>\n <div class=\"flex justify-end mx-1 flex-grow border-t\">\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mt-2\"\n (click)=\"submitFilter()\">Submit</button>\n </div>\n\n </div>\n\n </div>\n</dx-popup>\n<dx-popup [(visible)]=\"isPopupView\" [closeOnOutsideClick]=\"false\" [dragEnabled]=\"false\" [width]=\"1000\" [height]=\"'auto'\"\n [showTitle]=\"true\" class=\"popup\" title=\"Popup View\">\n <div *dxTemplate=\"let data of 'content'\">\n <div class=\"w-full\">\n <app-dynamic-widget [modalConfigs]=\"modalConfigs\" [contextMenuDataSource]=\"contextMenuDataSource\">\n </app-dynamic-widget>\n </div>\n </div>\n</dx-popup>", styles: [".custom-tooltip{display:none;position:absolute;top:100%;left:0;background:rgba(0,0,0,.8);color:#fff;padding:8px;border-radius:5px;font-size:12px;white-space:nowrap;z-index:100}\n"] }]
19672
- }], ctorParameters: function () { return [{ type: CommonService }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: KpiWithSingleLayoutService }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: SingleLayoutApplicationDatssetsCall }, { type: ApplicationChatApiCallService }, { type: AppSingleLayoutLocalStorage }]; }, propDecorators: { dynamicComponentContainer: [{
19709
+ }], ctorParameters: function () { return [{ type: CommonService }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: KpiWithSingleLayoutService }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: SingleLayoutApplicationDatssetsCall }, { type: ApplicationChatApiCallService }, { type: AppSingleLayoutLocalStorage }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { dynamicComponentContainer: [{
19673
19710
  type: ViewChild,
19674
19711
  args: ['dynamicComponentContainer', { read: ViewContainerRef }]
19675
19712
  }], containerRef: [{
@@ -20498,7 +20535,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
20498
20535
  }] }]; } });
20499
20536
 
20500
20537
  class KpiWithMultilayoutSetTestComponent {
20501
- constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage) {
20538
+ constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage, cdr) {
20502
20539
  this.commonService = commonService;
20503
20540
  this.activatedRoute = activatedRoute;
20504
20541
  this.viewContainerRef = viewContainerRef;
@@ -20508,6 +20545,7 @@ class KpiWithMultilayoutSetTestComponent {
20508
20545
  this.router = router;
20509
20546
  this.datasetService = datasetService;
20510
20547
  this.storage = storage;
20548
+ this.cdr = cdr;
20511
20549
  this.dashbord_container = [];
20512
20550
  this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
20513
20551
  this.page_title = 'Dashboard';
@@ -20584,6 +20622,35 @@ class KpiWithMultilayoutSetTestComponent {
20584
20622
  this.loadingModal = false;
20585
20623
  });
20586
20624
  }
20625
+ getWidgetFilterItems(widgetFilterData) {
20626
+ let apiJsonObject = {};
20627
+ apiJsonObject['operationFilter'] = {};
20628
+ widgetFilterData.forEach(element => {
20629
+ if (element.filterType == 'date' || element.filterType == 'datetime') {
20630
+ apiJsonObject['operationFilter'][element.apiName] = moment$1(element.filterDataSourceValue).format(element.momentFormat);
20631
+ }
20632
+ else {
20633
+ if ((typeof element.filterDataSourceValue === "string" && element.filterDataSourceValue !== "") ||
20634
+ (Array.isArray(element.filterDataSourceValue) && element.filterDataSourceValue.length > 0)) {
20635
+ if (element.operatorName !== "") {
20636
+ if (element.filterType == "content") {
20637
+ apiJsonObject['operationFilter'][element.operatorName] = element.filterDataSourceValue;
20638
+ }
20639
+ if (element.filterType == "single") {
20640
+ apiJsonObject['operationFilter'][element.operatorName] = element.filterDataSourceValue;
20641
+ }
20642
+ else {
20643
+ apiJsonObject['operationFilter'][element.operatorName] = Array.isArray(element.filterDataSourceValue) ? element.filterDataSourceValue : [element.filterDataSourceValue];
20644
+ }
20645
+ }
20646
+ else {
20647
+ apiJsonObject[element.apiName] = element.filterDataSourceValue;
20648
+ }
20649
+ }
20650
+ }
20651
+ });
20652
+ return apiJsonObject;
20653
+ }
20587
20654
  getPadeDataSource(context) {
20588
20655
  return new Promise((resolve, reject) => {
20589
20656
  this.service.getAppPageDetailConfig(this.pageId).subscribe({
@@ -20922,6 +20989,7 @@ class KpiWithMultilayoutSetTestComponent {
20922
20989
  dynamicComponentInstance.selectedDates = selectedDates;
20923
20990
  dynamicComponentInstance.filterItems = filterItems;
20924
20991
  dynamicComponentInstance.contextFilterItems = context_filter;
20992
+ dynamicComponentInstance.filterObjects = indexObj;
20925
20993
  dynamicComponentInstance.pageTitle = this.pageTitle;
20926
20994
  dynamicComponentInstance.bread_crumbs_container = this.kpi_breadcrumbs_container;
20927
20995
  dynamicComponentInstance.isEditButton = (userName && userName == "admin") ? true : false;
@@ -21447,12 +21515,12 @@ class KpiWithMultilayoutSetTestComponent {
21447
21515
  }
21448
21516
  }
21449
21517
  }
21450
- KpiWithMultilayoutSetTestComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultilayoutSetTestComponent, deps: [{ token: CommonService }, { token: i2.ActivatedRoute }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: KpiWithMultiLayoutService }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: MultilayoutApplicationDatssetsCall }, { token: AppMultiLayoutLocalStorage }], target: i0.ɵɵFactoryTarget.Component });
21518
+ KpiWithMultilayoutSetTestComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultilayoutSetTestComponent, deps: [{ token: CommonService }, { token: i2.ActivatedRoute }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: KpiWithMultiLayoutService }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: MultilayoutApplicationDatssetsCall }, { token: AppMultiLayoutLocalStorage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
21451
21519
  KpiWithMultilayoutSetTestComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: KpiWithMultilayoutSetTestComponent, selector: "app-kpi-with-multilayout", viewQueries: [{ propertyName: "dynamicComponentContainer", first: true, predicate: ["dynamicComponentContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "dynamicContainer", first: true, predicate: ["dynamicContainer"], descendants: true, static: true }], ngImport: i0, template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n\n<div class=\"w-full\">\n <div class=\"flex flex-wrap \" #dynamicContainer></div>\n</div>\n\n<dx-popup [(visible)]=\"isWidgetFilters\" [closeOnOutsideClick]=\"false\" [dragEnabled]=\"false\" [width]=\"800\" [height]=\"400\"\n [showTitle]=\"true\" class=\"popup\" title=\"Dataset Filter\">\n <div *dxTemplate=\"let data of 'content'\">\n <div class=\"my-2\">\n <dx-scroll-view [width]=\"'100%'\" [height]=\"'85%'\">\n <ng-container *ngFor=\"let item of nodeproperticeFilterDataSource.havingConfig; let i = index\">\n <div class=\"flex flex-row my-2\">\n <div class=\"m-1\">\n <dx-text-box [(ngModel)]=\"item.columnName\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <dx-select-box [items]=\"['get','let']\" [(ngModel)]=\"item.operator\"\n placeholder=\"Operator\"></dx-select-box>\n </div>\n <div class=\"m-1\">\n <dx-text-box [(ngModel)]=\"item.value\"></dx-text-box>\n </div>\n </div>\n </ng-container>\n\n </dx-scroll-view>\n <div class=\"flex justify-end mx-1 flex-grow border-t\">\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mt-2\"\n (click)=\"submitFilter()\">Submit</button>\n </div>\n\n </div>\n\n </div>\n</dx-popup>\n\n\n\n", styles: [""], dependencies: [{ kind: "directive", type: i4$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoadingComponent$1, selector: "app-loading" }, { kind: "directive", type: i5.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: i9$1.DxPopupComponent, selector: "dx-popup", inputs: ["accessKey", "animation", "closeOnOutsideClick", "container", "contentTemplate", "copyRootClassesToWrapper", "deferRendering", "disabled", "dragAndResizeArea", "dragEnabled", "dragOutsideBoundary", "elementAttr", "focusStateEnabled", "fullScreen", "height", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "resizeEnabled", "restorePosition", "rtlEnabled", "shading", "shadingColor", "showCloseButton", "showTitle", "tabIndex", "title", "titleTemplate", "toolbarItems", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onResize", "onResizeEnd", "onResizeStart", "onShowing", "onShown", "onTitleRendered", "accessKeyChange", "animationChange", "closeOnOutsideClickChange", "containerChange", "contentTemplateChange", "copyRootClassesToWrapperChange", "deferRenderingChange", "disabledChange", "dragAndResizeAreaChange", "dragEnabledChange", "dragOutsideBoundaryChange", "elementAttrChange", "focusStateEnabledChange", "fullScreenChange", "heightChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "resizeEnabledChange", "restorePositionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showCloseButtonChange", "showTitleChange", "tabIndexChange", "titleChange", "titleTemplateChange", "toolbarItemsChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "component", type: i10$1.DxScrollViewComponent, selector: "dx-scroll-view", inputs: ["bounceEnabled", "direction", "disabled", "elementAttr", "height", "pulledDownText", "pullingDownText", "reachBottomText", "refreshingText", "rtlEnabled", "scrollByContent", "scrollByThumb", "showScrollbar", "useNative", "width"], outputs: ["onDisposing", "onInitialized", "onOptionChanged", "onPullDown", "onReachBottom", "onScroll", "onUpdated", "bounceEnabledChange", "directionChange", "disabledChange", "elementAttrChange", "heightChange", "pulledDownTextChange", "pullingDownTextChange", "reachBottomTextChange", "refreshingTextChange", "rtlEnabledChange", "scrollByContentChange", "scrollByThumbChange", "showScrollbarChange", "useNativeChange", "widthChange"] }, { kind: "component", type: i6$1.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "component", type: i7.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "directive", type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
21452
21520
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultilayoutSetTestComponent, decorators: [{
21453
21521
  type: Component,
21454
21522
  args: [{ selector: 'app-kpi-with-multilayout', template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n\n<div class=\"w-full\">\n <div class=\"flex flex-wrap \" #dynamicContainer></div>\n</div>\n\n<dx-popup [(visible)]=\"isWidgetFilters\" [closeOnOutsideClick]=\"false\" [dragEnabled]=\"false\" [width]=\"800\" [height]=\"400\"\n [showTitle]=\"true\" class=\"popup\" title=\"Dataset Filter\">\n <div *dxTemplate=\"let data of 'content'\">\n <div class=\"my-2\">\n <dx-scroll-view [width]=\"'100%'\" [height]=\"'85%'\">\n <ng-container *ngFor=\"let item of nodeproperticeFilterDataSource.havingConfig; let i = index\">\n <div class=\"flex flex-row my-2\">\n <div class=\"m-1\">\n <dx-text-box [(ngModel)]=\"item.columnName\"></dx-text-box>\n </div>\n <div class=\"m-1\">\n <dx-select-box [items]=\"['get','let']\" [(ngModel)]=\"item.operator\"\n placeholder=\"Operator\"></dx-select-box>\n </div>\n <div class=\"m-1\">\n <dx-text-box [(ngModel)]=\"item.value\"></dx-text-box>\n </div>\n </div>\n </ng-container>\n\n </dx-scroll-view>\n <div class=\"flex justify-end mx-1 flex-grow border-t\">\n <button class=\"{{commonService.btn_success_md}} cursor-pointer mt-2\"\n (click)=\"submitFilter()\">Submit</button>\n </div>\n\n </div>\n\n </div>\n</dx-popup>\n\n\n\n" }]
21455
- }], ctorParameters: function () { return [{ type: CommonService }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: KpiWithMultiLayoutService }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: MultilayoutApplicationDatssetsCall }, { type: AppMultiLayoutLocalStorage }]; }, propDecorators: { dynamicComponentContainer: [{
21523
+ }], ctorParameters: function () { return [{ type: CommonService }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: KpiWithMultiLayoutService }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: MultilayoutApplicationDatssetsCall }, { type: AppMultiLayoutLocalStorage }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { dynamicComponentContainer: [{
21456
21524
  type: ViewChild,
21457
21525
  args: ['dynamicComponentContainer', { read: ViewContainerRef }]
21458
21526
  }], containerRef: [{
@@ -22110,7 +22178,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
22110
22178
  }] }]; } });
22111
22179
 
22112
22180
  class LandingComponentComponent {
22113
- constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage) {
22181
+ constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage, cdr) {
22114
22182
  this.commonService = commonService;
22115
22183
  this.activatedRoute = activatedRoute;
22116
22184
  this.viewContainerRef = viewContainerRef;
@@ -22120,6 +22188,7 @@ class LandingComponentComponent {
22120
22188
  this.router = router;
22121
22189
  this.datasetService = datasetService;
22122
22190
  this.storage = storage;
22191
+ this.cdr = cdr;
22123
22192
  this.dashbord_container = [];
22124
22193
  this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
22125
22194
  this.page_title = 'Dashboard';
@@ -22166,29 +22235,43 @@ class LandingComponentComponent {
22166
22235
  ngOnInit() {
22167
22236
  this.loadingModal = true;
22168
22237
  this.pageId = this.activatedRoute.snapshot.queryParams['pageId'];
22169
- this.getPadeDataSource(false);
22238
+ const { pageId } = this.activatedRoute.snapshot.queryParams;
22239
+ if (this.pageId) {
22240
+ this.router.navigate([], {
22241
+ queryParams: { pageId },
22242
+ replaceUrl: true,
22243
+ });
22244
+ }
22170
22245
  }
22171
22246
  async getFiltersForTemplate(filter) {
22172
22247
  this.filters = filter;
22173
- this.defaultStartDate = filter.startDate;
22174
- this.defaultEndDate = filter.endDate;
22175
22248
  filter.operationFilter['startDate'] = filter.startDate;
22176
22249
  filter.operationFilter['endDate'] = filter.endDate;
22177
- let navigation = {
22178
- queryParams: filter.operationFilter,
22179
- queryParamsHandling: "merge"
22180
- };
22181
- this.router.navigate([], navigation);
22182
22250
  this.loadingModal = true;
22183
- this.dashBoardWidgetConfig = [];
22184
- await this.getPadeDataSource(true);
22251
+ if (filter.filterObjects && Object.entries(filter.filterObjects).length !== 0) {
22252
+ if (Array.isArray(this.dashBoardWidgetConfig.widgets)) {
22253
+ const index = this.dashBoardWidgetConfig.widgets.findIndex((widget) => widget.widgetId === filter.filterObjects.widgetId);
22254
+ if (index !== -1) {
22255
+ this.dashBoardWidgetConfig.widgets[index] = filter.filterObjects;
22256
+ }
22257
+ else {
22258
+ }
22259
+ }
22260
+ }
22261
+ else {
22262
+ await this.getPadeDataSource(true);
22263
+ }
22185
22264
  this.uniqueDataSetObject = {};
22186
22265
  let apiCalls = [];
22187
22266
  this.allWidgetByDataset.forEach(view => {
22188
22267
  view.datasetIds.forEach(id => {
22189
- let found = this.dataSetModal.find(d => d.datasetId === id.datasetId);
22190
- if (found) {
22191
- apiCalls.push(this.datasetService.getDataFromDataSet(found, id.datasetId, filter));
22268
+ if (view.widgetId == filter.filterObjects.widgetId) {
22269
+ let found = this.dataSetModal.find(d => d.datasetId === id);
22270
+ let widgetFilter = this.getWidgetFilterItems(filter.filterObjects.filters.filterItems);
22271
+ view.filters = widgetFilter;
22272
+ if (found) {
22273
+ apiCalls.push(this.datasetService.getDataFromDataSet(found, id, widgetFilter));
22274
+ }
22192
22275
  }
22193
22276
  });
22194
22277
  });
@@ -22196,9 +22279,39 @@ class LandingComponentComponent {
22196
22279
  this.globalDefaultFilter = filter;
22197
22280
  this.uniqueDataSetObject = this.datasetService.getUniqueDataSetObject();
22198
22281
  this.createDivElements(this.uniqueDataSetObject, true);
22282
+ this.cdr.detectChanges();
22199
22283
  this.loadingModal = false;
22200
22284
  });
22201
22285
  }
22286
+ getWidgetFilterItems(widgetFilterData) {
22287
+ let apiJsonObject = {};
22288
+ apiJsonObject['operationFilter'] = {};
22289
+ widgetFilterData.forEach(element => {
22290
+ if (element.filterType == 'date' || element.filterType == 'datetime') {
22291
+ apiJsonObject['operationFilter'][element.apiName] = moment$1(element.filterDataSourceValue).format(element.momentFormat);
22292
+ }
22293
+ else {
22294
+ if ((typeof element.filterDataSourceValue === "string" && element.filterDataSourceValue !== "") ||
22295
+ (Array.isArray(element.filterDataSourceValue) && element.filterDataSourceValue.length > 0)) {
22296
+ if (element.operatorName !== "") {
22297
+ if (element.filterType == "content") {
22298
+ apiJsonObject['operationFilter'][element.operatorName] = element.filterDataSourceValue;
22299
+ }
22300
+ if (element.filterType == "single") {
22301
+ apiJsonObject['operationFilter'][element.operatorName] = element.filterDataSourceValue;
22302
+ }
22303
+ else {
22304
+ apiJsonObject['operationFilter'][element.operatorName] = Array.isArray(element.filterDataSourceValue) ? element.filterDataSourceValue : [element.filterDataSourceValue];
22305
+ }
22306
+ }
22307
+ else {
22308
+ apiJsonObject[element.apiName] = element.filterDataSourceValue;
22309
+ }
22310
+ }
22311
+ }
22312
+ });
22313
+ return apiJsonObject;
22314
+ }
22202
22315
  getPadeDataSource(context) {
22203
22316
  return new Promise((resolve, reject) => {
22204
22317
  this.service.getAppPageDetailConfig(this.pageId).subscribe({
@@ -22232,7 +22345,7 @@ class LandingComponentComponent {
22232
22345
  this.componentConfigDataSource = viewConfig;
22233
22346
  this.dataSetModal = datasetConfig;
22234
22347
  this.allWidgetByDataset = [];
22235
- const { pageId, startDate, endDate, ...params } = this.activatedRoute.snapshot.queryParams;
22348
+ const { pageId, startDate, endDate, id, name, ...params } = this.activatedRoute.snapshot.queryParams;
22236
22349
  let defaultFilters = { operationFilter: { startDate: "", endDate: "", ...params } };
22237
22350
  this.dashBoardWidgetConfig.widgets.forEach(widget => {
22238
22351
  widget.filters.filterItems.forEach(element => {
@@ -22596,6 +22709,7 @@ class LandingComponentComponent {
22596
22709
  dynamicComponentInstance.selectedDates = selectedDates;
22597
22710
  dynamicComponentInstance.filterItems = filterItems;
22598
22711
  dynamicComponentInstance.contextFilterItems = context_filter;
22712
+ dynamicComponentInstance.filterObjects = indexObj;
22599
22713
  dynamicComponentInstance.pageTitle = this.pageTitle;
22600
22714
  dynamicComponentInstance.bread_crumbs_container = this.kpi_breadcrumbs_container;
22601
22715
  dynamicComponentInstance.isEditButton = (userName && userName == "admin") ? true : false;
@@ -22761,7 +22875,7 @@ class LandingComponentComponent {
22761
22875
  else if (eventType == 'navigateToPage') {
22762
22876
  this.service.getAppPageDetailConfig(associatedPage).subscribe({
22763
22877
  next: (data) => {
22764
- let { pageId, ...params } = this.activatedRoute.snapshot.queryParams;
22878
+ let { pageId, id, name, ...params } = this.activatedRoute.snapshot.queryParams;
22765
22879
  let associatedParamsTemplate = clickEventOptions.associatedParams;
22766
22880
  let appliedFilters = this.getSetOperatorFilter(event, this.stateDataSource.get(event.viewId));
22767
22881
  event.keyToPass.forEach(element => {
@@ -23279,12 +23393,12 @@ class LandingComponentComponent {
23279
23393
  return results.join('\n');
23280
23394
  }
23281
23395
  }
23282
- LandingComponentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LandingComponentComponent, deps: [{ token: CommonService }, { token: i2.ActivatedRoute }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: LandingComponentService }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: LandingApplicationDatssetsCall }, { token: AppLandingLayoutLocalStorage }], target: i0.ɵɵFactoryTarget.Component });
23396
+ LandingComponentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LandingComponentComponent, deps: [{ token: CommonService }, { token: i2.ActivatedRoute }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: LandingComponentService }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: LandingApplicationDatssetsCall }, { token: AppLandingLayoutLocalStorage }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
23283
23397
  LandingComponentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: LandingComponentComponent, selector: "app-landing-component", viewQueries: [{ propertyName: "dynamicComponentContainer", first: true, predicate: ["dynamicComponentContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "dynamicContainer", first: true, predicate: ["dynamicContainer"], descendants: true, static: true }, { propertyName: "dynamicContainerForPopup", first: true, predicate: ["dynamicContainerForPopup"], descendants: true, static: true }], ngImport: i0, template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n\n<div class=\"w-full\">\n <div class=\"flex flex-wrap \" #dynamicContainer></div>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoadingComponent$1, selector: "app-loading" }] });
23284
23398
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LandingComponentComponent, decorators: [{
23285
23399
  type: Component,
23286
23400
  args: [{ selector: 'app-landing-component', template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n\n<div class=\"w-full\">\n <div class=\"flex flex-wrap \" #dynamicContainer></div>\n</div>" }]
23287
- }], ctorParameters: function () { return [{ type: CommonService }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: LandingComponentService }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: LandingApplicationDatssetsCall }, { type: AppLandingLayoutLocalStorage }]; }, propDecorators: { dynamicComponentContainer: [{
23401
+ }], ctorParameters: function () { return [{ type: CommonService }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: LandingComponentService }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: LandingApplicationDatssetsCall }, { type: AppLandingLayoutLocalStorage }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { dynamicComponentContainer: [{
23288
23402
  type: ViewChild,
23289
23403
  args: ['dynamicComponentContainer', { read: ViewContainerRef }]
23290
23404
  }], containerRef: [{
@@ -24131,7 +24245,7 @@ class MultiLayoutLandingComponentComponent {
24131
24245
  this.componentConfigDataSource = viewConfig;
24132
24246
  this.dataSetModal = datasetConfig;
24133
24247
  this.allWidgetByDataset = [];
24134
- const { pageId, startDate, endDate, ...params } = this.activatedRoute.snapshot.queryParams;
24248
+ const { pageId, startDate, endDate, id, name, ...params } = this.activatedRoute.snapshot.queryParams;
24135
24249
  this.dashBoardWidgetConfig.widgets.forEach(widget => {
24136
24250
  let defaultFilters = { operationFilter: { startDate: "", endDate: "", ...params } };
24137
24251
  widget.filters.filterItems.forEach(element => {
@@ -24655,7 +24769,7 @@ class MultiLayoutLandingComponentComponent {
24655
24769
  else if (eventType == 'navigateToPage') {
24656
24770
  this.service.getAppPageDetailConfig(associatedPage).subscribe({
24657
24771
  next: (data) => {
24658
- let { pageId, ...params } = this.activatedRoute.snapshot.queryParams;
24772
+ let { pageId, id, name, ...params } = this.activatedRoute.snapshot.queryParams;
24659
24773
  let associatedParamsTemplate = clickEventOptions.associatedParams;
24660
24774
  let appliedFilters = this.getSetOperatorFilter(event, this.stateDataSource.get(event.viewId));
24661
24775
  event.keyToPass.forEach(element => {