gamma-app-controller 1.2.6 → 1.2.8

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.
@@ -1,5 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Inject, Component, ViewEncapsulation, NgModule, InjectionToken, Input, ViewChild, EventEmitter, Output, Pipe, HostListener, ViewContainerRef, ChangeDetectionStrategy, HostBinding } from '@angular/core';
2
+ import { InjectionToken, Injectable, Inject, Component, ViewEncapsulation, NgModule, Input, ViewChild, EventEmitter, Output, Pipe, HostListener, ViewContainerRef, ChangeDetectionStrategy, HostBinding } from '@angular/core';
3
+ import { map, catchError, throwError, BehaviorSubject, Subject, ReplaySubject, takeUntil, filter, forkJoin } from 'rxjs';
4
+ import * as i1 from '@angular/common/http';
5
+ import { HttpHeaders } from '@angular/common/http';
3
6
  import * as i2 from '@angular/router';
4
7
  import { RouterModule, NavigationEnd } from '@angular/router';
5
8
  import * as i4$1 from '@angular/common';
@@ -11,9 +14,6 @@ import { DxScrollViewComponent, DevExtremeModule, DxButtonModule, DxCheckBoxModu
11
14
  import * as i8 from '@angular/forms';
12
15
  import { FormsModule, ReactiveFormsModule } from '@angular/forms';
13
16
  import { confirm } from 'devextreme/ui/dialog';
14
- import * as i1 from '@angular/common/http';
15
- import { HttpHeaders } from '@angular/common/http';
16
- import { BehaviorSubject, throwError, map, catchError, Subject, ReplaySubject, takeUntil, filter, forkJoin } from 'rxjs';
17
17
  import momentNamespace from 'moment';
18
18
  import * as i3$1 from 'ngx-toastr';
19
19
  import * as i5 from 'devextreme-angular/core';
@@ -42,13 +42,27 @@ import * as i10$2 from 'devextreme-angular/ui/html-editor';
42
42
  import * as i2$1 from '@angular/cdk/overlay';
43
43
  import { trigger, state, style, transition, animate, keyframes } from '@angular/animations';
44
44
 
45
+ const APP_ENVIRONMENT = new InjectionToken('APP_ENVIRONMENT');
46
+
45
47
  class GammaAppControllerService {
46
- constructor(env) {
47
- this.env = env;
48
- console.log(this.env.apiEndpoint);
48
+ constructor(environment, http) {
49
+ this.environment = environment;
50
+ this.http = http;
51
+ console.log(this.environment.apiEndpoint);
52
+ }
53
+ getFilterDataByDrillDown(apiName) {
54
+ const apiUrl = this.environment.appUrl + apiName;
55
+ return this.http
56
+ .get(apiUrl, { withCredentials: true })
57
+ .pipe(map((response) => {
58
+ return response;
59
+ }), catchError(this.handleError));
60
+ }
61
+ handleError(error) {
62
+ return throwError(error);
49
63
  }
50
64
  }
51
- GammaAppControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerService, deps: [{ token: 'APP_ENVIRONMENT' }], target: i0.ɵɵFactoryTarget.Injectable });
65
+ GammaAppControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerService, deps: [{ token: APP_ENVIRONMENT }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
52
66
  GammaAppControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerService, providedIn: 'root' });
53
67
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAppControllerService, decorators: [{
54
68
  type: Injectable,
@@ -57,8 +71,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
57
71
  }]
58
72
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
59
73
  type: Inject,
60
- args: ['APP_ENVIRONMENT']
61
- }] }]; } });
74
+ args: [APP_ENVIRONMENT]
75
+ }] }, { type: i1.HttpClient }]; } });
62
76
 
63
77
  class GammaAppControllerComponent {
64
78
  }
@@ -127,8 +141,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
127
141
  }]
128
142
  }] });
129
143
 
130
- const APP_ENVIRONMENT = new InjectionToken('APP_ENVIRONMENT');
131
-
132
144
  class ApplicationContentService {
133
145
  constructor(http, environment) {
134
146
  this.http = http;
@@ -7828,12 +7840,12 @@ class GammaAdvanceFilterComponent {
7828
7840
  }
7829
7841
  }
7830
7842
  }
7831
- GammaAdvanceFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAdvanceFilterComponent, deps: [{ token: ApplicationContentService }, { token: kpicommonService$1 }, { token: i3$1.ToastrService }, { token: CommonService }], target: i0.ɵɵFactoryTarget.Component });
7843
+ GammaAdvanceFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAdvanceFilterComponent, deps: [{ token: GammaAppControllerService }, { token: kpicommonService$1 }, { token: i3$1.ToastrService }, { token: CommonService }], target: i0.ɵɵFactoryTarget.Component });
7832
7844
  GammaAdvanceFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: GammaAdvanceFilterComponent, selector: "app-gamma-advance-filter", inputs: { kpiId: "kpiId", filterStartDate: "filterStartDate", filterEndDate: "filterEndDate", browser_api_config: "browser_api_config", isButtonDesiable: "isButtonDesiable", filterOperatorData: "filterOperatorData" }, outputs: { filterDataObject: "filterDataObject" }, host: { listeners: { "document:click": "onDocumentClick($event)" } }, viewQueries: [{ propertyName: "menuIcon", first: true, predicate: ["menuIcon"], descendants: true }], ngImport: i0, template: "<app-loader *ngIf=\"isLoader\"></app-loader>\n\n\n<ng-container *ngIf=\"!isLoader\">\n <div class=\"flex flex-col border-b\">\n <div class=\"flex flex-row justify-end mb-4\" *ngIf=\"quickDateSelector\">\n <div class=\"w-1/4\">\n <dx-select-box [dataSource]=\"ranges\" valueExpr=\"value\" displayExpr=\"name\"\n (onValueChanged)=\"getQuickDateClick($event)\" placeholder=\"Quick Dates\">\n </dx-select-box>\n </div>\n </div>\n\n <ng-container *ngFor=\"let filter of kpiFilterData\">\n\n <div class=\"flex flex-row justify-between\">\n <ng-container *ngIf=\"filter.filterType == 'date'\">\n <ng-container *ngIf=\"filter.display\">\n <div class=\"mb-2\">{{getCapitalize(filter.label)}}</div>\n <div class=\"mb-2\">\n <div class=\"w-80\" *ngIf=\"filter.momentFunction == 'monthPicker'\">\n <dx-date-box (onValueChanged)=\"startDateChangeForMonthPicker($event,filter.momentFormat)\"\n displayFormat=\"monthAndYear\" placeholder=\"Select Month\"\n [calendarOptions]=\"{maxZoomLevel: 'year', minZoomLevel: 'century'}\"\n type=\"{{filter.filterType}}\" [(ngModel)]=\"filter.filterDataSourceValue\">\n </dx-date-box>\n </div>\n <div class=\"w-80\" *ngIf=\"filter.momentFunction == 'weekPicker'\">\n <dx-date-box (onValueChanged)=\"startDateChange($event)\" displayFormat=\"yyyy-MM-dd\"\n type=\"{{filter.filterType}}\" [(ngModel)]=\"filter.filterDataSourceValue\">\n </dx-date-box>\n </div>\n <div class=\"w-80\"\n *ngIf=\"filter.momentFunction !== 'monthPicker' && filter.momentFunction !== 'weekPicker'\">\n <dx-date-box (onValueChanged)=\"startDateChange($event)\" displayFormat=\"yyyy-MM-dd\"\n type=\"{{filter.filterType}}\" [(ngModel)]=\"filter.filterDataSourceValue\">\n </dx-date-box>\n </div>\n </div>\n </ng-container>\n\n\n </ng-container>\n <ng-container *ngIf=\"filter.filterType == 'datetime'\">\n <div class=\"mb-2\">{{getCapitalize(filter.label)}}</div>\n <div class=\"mb-2\">\n <div class=\"w-80\">\n <dx-date-box (onValueChanged)=\"startDateChange($event)\" displayFormat=\"yyyy-MM-dd HH:mm:ss\"\n type=\"{{filter.filterType}}\" [(ngModel)]=\"filter.filterDataSourceValue\">\n </dx-date-box>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"filter.filterType !== 'date' && filter.filterType !== 'datetime'\">\n <div class=\"mb-2\">\n {{getCapitalize(filter.label)}}\n </div>\n <div class=\"mb-2\">\n <ng-container *ngIf=\"filter.filterType == 'multiple'\">\n <div class=\"w-80\">\n <dx-tag-box [dataSource]=\"filter.filterDataSource\" valueExpr=\"value\" displayExpr=\"name\"\n [searchEnabled]=\"true\" [multiline]=\"true\" [maxDisplayedTags]=\"6\"\n [(ngModel)]=\"filter.filterDataSourceValue\" [showSelectionControls]=\"true\"\n [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </ng-container>\n <ng-container *ngIf=\"filter.filterType == 'single'\">\n <div class=\"w-80\">\n <dx-select-box [items]=\"filter.filterDataSource\"\n [(ngModel)]=\"filter.filterDataSourceValue\" displayExpr=\"name\"\n valueExpr=\"value\"></dx-select-box>\n </div>\n </ng-container>\n <ng-container *ngIf=\"filter.filterType == 'content'\">\n <div class=\"w-80\">\n <dx-text-box [(ngModel)]=\"filter.filterDataSourceValue\"></dx-text-box>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n <div class=\"flex flex-row justify-end pl-3\">\n\n\n <button class=\"{{commonService.BtnLightWhite}} cursor-pointer mt-2\" (click)=\"reseteFilter()\">Reset</button>\n <button class=\"{{commonService.btnPrimaryBlue}} cursor-pointer mt-2\" (click)=\"searchByFilter()\"\n *ngIf=\"isButtonDesiable\">Search</button>\n </div>\n</ng-container>", styles: ["::ng-deep .dx-timeview{width:250px!important}::ng-deep .dx-timeview-field .dx-numberbox{width:70px!important}::ng-deep .dx-timeview-format12{width:70px!important}::ng-deep .dx-numberbox-spin-container{width:18px!important}::ng-deep .dx-texteditor{margin-bottom:10px}.floating-menu{position:absolute;display:none;background:white;border:1px solid #ccc;box-shadow:0 4px 8px #0000001a;z-index:1000;min-width:150px}.floating-menu.show{display:block;z-index:99999}.floating-menu ul{list-style:none;padding:0;margin:0}.floating-menu ul li{padding:10px;cursor:pointer}.floating-menu ul li:hover{background:#f0f0f0}\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: i11.DxDateBoxComponent, selector: "dx-date-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "adaptivityEnabled", "applyButtonText", "applyValueMode", "buttons", "calendarOptions", "cancelButtonText", "dateOutOfRangeMessage", "dateSerializationFormat", "deferRendering", "disabled", "disabledDates", "displayFormat", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "interval", "invalidDateMessage", "isValid", "label", "labelMode", "max", "maxLength", "min", "name", "opened", "openOnFieldClick", "pickerType", "placeholder", "readOnly", "rtlEnabled", "showAnalogClock", "showClearButton", "showDropDownButton", "spellcheck", "stylingMode", "tabIndex", "text", "type", "useMaskBehavior", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "adaptivityEnabledChange", "applyButtonTextChange", "applyValueModeChange", "buttonsChange", "calendarOptionsChange", "cancelButtonTextChange", "dateOutOfRangeMessageChange", "dateSerializationFormatChange", "deferRenderingChange", "disabledChange", "disabledDatesChange", "displayFormatChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "intervalChange", "invalidDateMessageChange", "isValidChange", "labelChange", "labelModeChange", "maxChange", "maxLengthChange", "minChange", "nameChange", "openedChange", "openOnFieldClickChange", "pickerTypeChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showAnalogClockChange", "showClearButtonChange", "showDropDownButtonChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "typeChange", "useMaskBehaviorChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { 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: i8$1.DxTagBoxComponent, selector: "dx-tag-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "applyValueMode", "buttons", "dataSource", "deferRendering", "disabled", "displayExpr", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hideSelectedItems", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxDisplayedTags", "maxFilterQueryLength", "maxLength", "minSearchLength", "multiline", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectAllMode", "selectAllText", "selectedItems", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showMultiTagOnly", "showSelectionControls", "stylingMode", "tabIndex", "tagTemplate", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationStatus", "value", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCustomItemCreating", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onMultiTagPreparing", "onOpened", "onOptionChanged", "onSelectAllValueChanged", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "applyValueModeChange", "buttonsChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hideSelectedItemsChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxDisplayedTagsChange", "maxFilterQueryLengthChange", "maxLengthChange", "minSearchLengthChange", "multilineChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectAllModeChange", "selectAllTextChange", "selectedItemsChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showMultiTagOnlyChange", "showSelectionControlsChange", "stylingModeChange", "tabIndexChange", "tagTemplateChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationStatusChange", "valueChange", "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: LoaderComponent, selector: "app-loader" }] });
7833
7845
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: GammaAdvanceFilterComponent, decorators: [{
7834
7846
  type: Component,
7835
7847
  args: [{ selector: 'app-gamma-advance-filter', template: "<app-loader *ngIf=\"isLoader\"></app-loader>\n\n\n<ng-container *ngIf=\"!isLoader\">\n <div class=\"flex flex-col border-b\">\n <div class=\"flex flex-row justify-end mb-4\" *ngIf=\"quickDateSelector\">\n <div class=\"w-1/4\">\n <dx-select-box [dataSource]=\"ranges\" valueExpr=\"value\" displayExpr=\"name\"\n (onValueChanged)=\"getQuickDateClick($event)\" placeholder=\"Quick Dates\">\n </dx-select-box>\n </div>\n </div>\n\n <ng-container *ngFor=\"let filter of kpiFilterData\">\n\n <div class=\"flex flex-row justify-between\">\n <ng-container *ngIf=\"filter.filterType == 'date'\">\n <ng-container *ngIf=\"filter.display\">\n <div class=\"mb-2\">{{getCapitalize(filter.label)}}</div>\n <div class=\"mb-2\">\n <div class=\"w-80\" *ngIf=\"filter.momentFunction == 'monthPicker'\">\n <dx-date-box (onValueChanged)=\"startDateChangeForMonthPicker($event,filter.momentFormat)\"\n displayFormat=\"monthAndYear\" placeholder=\"Select Month\"\n [calendarOptions]=\"{maxZoomLevel: 'year', minZoomLevel: 'century'}\"\n type=\"{{filter.filterType}}\" [(ngModel)]=\"filter.filterDataSourceValue\">\n </dx-date-box>\n </div>\n <div class=\"w-80\" *ngIf=\"filter.momentFunction == 'weekPicker'\">\n <dx-date-box (onValueChanged)=\"startDateChange($event)\" displayFormat=\"yyyy-MM-dd\"\n type=\"{{filter.filterType}}\" [(ngModel)]=\"filter.filterDataSourceValue\">\n </dx-date-box>\n </div>\n <div class=\"w-80\"\n *ngIf=\"filter.momentFunction !== 'monthPicker' && filter.momentFunction !== 'weekPicker'\">\n <dx-date-box (onValueChanged)=\"startDateChange($event)\" displayFormat=\"yyyy-MM-dd\"\n type=\"{{filter.filterType}}\" [(ngModel)]=\"filter.filterDataSourceValue\">\n </dx-date-box>\n </div>\n </div>\n </ng-container>\n\n\n </ng-container>\n <ng-container *ngIf=\"filter.filterType == 'datetime'\">\n <div class=\"mb-2\">{{getCapitalize(filter.label)}}</div>\n <div class=\"mb-2\">\n <div class=\"w-80\">\n <dx-date-box (onValueChanged)=\"startDateChange($event)\" displayFormat=\"yyyy-MM-dd HH:mm:ss\"\n type=\"{{filter.filterType}}\" [(ngModel)]=\"filter.filterDataSourceValue\">\n </dx-date-box>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"filter.filterType !== 'date' && filter.filterType !== 'datetime'\">\n <div class=\"mb-2\">\n {{getCapitalize(filter.label)}}\n </div>\n <div class=\"mb-2\">\n <ng-container *ngIf=\"filter.filterType == 'multiple'\">\n <div class=\"w-80\">\n <dx-tag-box [dataSource]=\"filter.filterDataSource\" valueExpr=\"value\" displayExpr=\"name\"\n [searchEnabled]=\"true\" [multiline]=\"true\" [maxDisplayedTags]=\"6\"\n [(ngModel)]=\"filter.filterDataSourceValue\" [showSelectionControls]=\"true\"\n [searchEnabled]=\"true\">\n </dx-tag-box>\n </div>\n </ng-container>\n <ng-container *ngIf=\"filter.filterType == 'single'\">\n <div class=\"w-80\">\n <dx-select-box [items]=\"filter.filterDataSource\"\n [(ngModel)]=\"filter.filterDataSourceValue\" displayExpr=\"name\"\n valueExpr=\"value\"></dx-select-box>\n </div>\n </ng-container>\n <ng-container *ngIf=\"filter.filterType == 'content'\">\n <div class=\"w-80\">\n <dx-text-box [(ngModel)]=\"filter.filterDataSourceValue\"></dx-text-box>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n </ng-container>\n </div>\n <div class=\"flex flex-row justify-end pl-3\">\n\n\n <button class=\"{{commonService.BtnLightWhite}} cursor-pointer mt-2\" (click)=\"reseteFilter()\">Reset</button>\n <button class=\"{{commonService.btnPrimaryBlue}} cursor-pointer mt-2\" (click)=\"searchByFilter()\"\n *ngIf=\"isButtonDesiable\">Search</button>\n </div>\n</ng-container>", styles: ["::ng-deep .dx-timeview{width:250px!important}::ng-deep .dx-timeview-field .dx-numberbox{width:70px!important}::ng-deep .dx-timeview-format12{width:70px!important}::ng-deep .dx-numberbox-spin-container{width:18px!important}::ng-deep .dx-texteditor{margin-bottom:10px}.floating-menu{position:absolute;display:none;background:white;border:1px solid #ccc;box-shadow:0 4px 8px #0000001a;z-index:1000;min-width:150px}.floating-menu.show{display:block;z-index:99999}.floating-menu ul{list-style:none;padding:0;margin:0}.floating-menu ul li{padding:10px;cursor:pointer}.floating-menu ul li:hover{background:#f0f0f0}\n"] }]
7836
- }], ctorParameters: function () { return [{ type: ApplicationContentService }, { type: kpicommonService$1 }, { type: i3$1.ToastrService }, { type: CommonService }]; }, propDecorators: { kpiId: [{
7848
+ }], ctorParameters: function () { return [{ type: GammaAppControllerService }, { type: kpicommonService$1 }, { type: i3$1.ToastrService }, { type: CommonService }]; }, propDecorators: { kpiId: [{
7837
7849
  type: Input
7838
7850
  }], filterStartDate: [{
7839
7851
  type: Input
@@ -8552,7 +8564,6 @@ class GammaAdvanceOperatorTableComponent {
8552
8564
  return;
8553
8565
  }
8554
8566
  else {
8555
- debugger;
8556
8567
  this.isLoader = true;
8557
8568
  this.page_config = value;
8558
8569
  this.page_parms = value.titleParams;
@@ -17649,125 +17660,18 @@ class KpiWithSingleLayoutService {
17649
17660
  return response;
17650
17661
  }), catchError(this.handleError));
17651
17662
  }
17652
- }
17653
- KpiWithSingleLayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithSingleLayoutService, deps: [{ token: i1.HttpClient }, { token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
17654
- KpiWithSingleLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithSingleLayoutService, providedIn: "root" });
17655
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithSingleLayoutService, decorators: [{
17656
- type: Injectable,
17657
- args: [{ providedIn: "root" }]
17658
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
17659
- type: Inject,
17660
- args: [APP_ENVIRONMENT]
17661
- }] }]; } });
17662
-
17663
- class KpiWithMultiLayoutService {
17664
- constructor(http, environment) {
17665
- this.http = http;
17666
- this.environment = environment;
17667
- this.headers = new HttpHeaders().set('Content-Type', 'application/json');
17668
- this.options = { headers: this.headers, withCredentials: true };
17669
- this._selectedKpiOnClick = new Subject();
17670
- this._kpilist = new Subject();
17671
- this._selectKpiFromDropDown = new Subject();
17672
- this._componentRegistry = new Map();
17673
- this.kpiFilter = new BehaviorSubject([]);
17674
- }
17675
- handleError(error) {
17676
- return throwError(error);
17677
- }
17678
- getlistKpiBrowser() {
17679
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/listKpiBrowser';
17680
- return this.http
17681
- .get(apiUrl, { withCredentials: true })
17682
- .pipe(map((response) => {
17683
- return response;
17684
- }), catchError(this.handleError));
17685
- }
17686
- getAppPageDetailConfig(pageId) {
17687
- return this.http
17688
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageDetailConfig?pageConfigId=' + pageId, this.options)
17689
- .pipe(map((response) => {
17690
- return response;
17691
- }), catchError(this.handleError));
17692
- }
17693
- getAppPageConfigs() {
17694
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageConfigs';
17695
- return this.http
17696
- .get(apiUrl, { withCredentials: true })
17697
- .pipe(map((response) => {
17698
- return response;
17699
- }), catchError(this.handleError));
17700
- }
17701
- getAppDatasetConfigs() {
17702
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfigs';
17703
- return this.http
17704
- .get(apiUrl, { withCredentials: true })
17705
- .pipe(map((response) => {
17706
- return response;
17707
- }), catchError(this.handleError));
17708
- }
17709
- getAppDatasetConfig(datasetId) {
17710
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfig?datasetId=' + datasetId;
17711
- return this.http
17712
- .get(apiUrl, { withCredentials: true })
17713
- .pipe(map((response) => {
17714
- return response;
17715
- }), catchError(this.handleError));
17716
- }
17717
- getAppFilterConfig(filterId) {
17718
- return this.http
17719
- .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfig?filterId=' + filterId, this.options)
17720
- .pipe(map((response) => {
17721
- return response;
17722
- }), catchError(this.handleError));
17723
- }
17724
- getAppViewConfigs() {
17725
- const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfigs';
17663
+ getFilterDataByDrillDown(apiName) {
17664
+ const apiUrl = this.environment.appUrl + apiName;
17726
17665
  return this.http
17727
17666
  .get(apiUrl, { withCredentials: true })
17728
17667
  .pipe(map((response) => {
17729
17668
  return response;
17730
17669
  }), catchError(this.handleError));
17731
17670
  }
17732
- getData(body, requestID) {
17733
- return this.http
17734
- .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
17735
- .pipe(map((response) => {
17736
- return response;
17737
- }), catchError(this.handleError));
17738
- }
17739
- getSimpleApiPostRequest(requestApi, body) {
17740
- return this.http
17741
- .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
17742
- .pipe(map((response) => {
17743
- return response;
17744
- }), catchError(this.handleError));
17745
- }
17746
- getSimpleApiGetRequest(requestApi) {
17747
- return this.http
17748
- .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
17749
- .pipe(map((response) => {
17750
- return response;
17751
- }), catchError(this.handleError));
17752
- }
17753
- getJsonDatasetPayload(requestApi) {
17754
- return this.http
17755
- .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
17756
- .pipe(map((response) => {
17757
- return response;
17758
- }), catchError(this.handleError));
17759
- }
17760
- genericSqlQueryResponse(requestApi, body) {
17761
- return this.http
17762
- .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
17763
- .pipe(map((response) => {
17764
- return response;
17765
- }), catchError(this.handleError));
17766
- }
17767
17671
  }
17768
- KpiWithMultiLayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultiLayoutService, deps: [{ token: i1.HttpClient }, { token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
17769
- KpiWithMultiLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultiLayoutService, providedIn: "root" });
17770
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultiLayoutService, decorators: [{
17672
+ KpiWithSingleLayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithSingleLayoutService, deps: [{ token: i1.HttpClient }, { token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
17673
+ KpiWithSingleLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithSingleLayoutService, providedIn: "root" });
17674
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithSingleLayoutService, decorators: [{
17771
17675
  type: Injectable,
17772
17676
  args: [{ providedIn: "root" }]
17773
17677
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
@@ -18124,12 +18028,12 @@ class SingleLayoutApplicationDatssetsCall {
18124
18028
  return this.uniqueDataSetObject;
18125
18029
  }
18126
18030
  }
18127
- SingleLayoutApplicationDatssetsCall.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, deps: [{ token: KpiWithMultiLayoutService }, { token: kpicommonService$2 }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
18031
+ SingleLayoutApplicationDatssetsCall.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, deps: [{ token: KpiWithSingleLayoutService }, { token: kpicommonService$2 }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
18128
18032
  SingleLayoutApplicationDatssetsCall.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, providedIn: "root" });
18129
18033
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, decorators: [{
18130
18034
  type: Injectable,
18131
18035
  args: [{ providedIn: "root" }]
18132
- }], ctorParameters: function () { return [{ type: KpiWithMultiLayoutService }, { type: kpicommonService$2 }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: undefined, decorators: [{
18036
+ }], ctorParameters: function () { return [{ type: KpiWithSingleLayoutService }, { type: kpicommonService$2 }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: undefined, decorators: [{
18133
18037
  type: Inject,
18134
18038
  args: [APP_ENVIRONMENT]
18135
18039
  }] }]; } });
@@ -18444,9 +18348,9 @@ class KpiWithDataSetTestComponent {
18444
18348
  let apiCalls = [];
18445
18349
  this.allWidgetByDataset.forEach(view => {
18446
18350
  view.datasetIds.forEach(id => {
18447
- let found = this.dataSetModal.find(d => d.datasetId === id);
18351
+ let found = this.dataSetModal.find(d => d.datasetId === id.datasetId);
18448
18352
  if (found) {
18449
- apiCalls.push(this.datasetService.getDataFromDataSet(found, id, filter));
18353
+ apiCalls.push(this.datasetService.getDataFromDataSet(found, id.datasetId, filter));
18450
18354
  }
18451
18355
  });
18452
18356
  });
@@ -19331,9 +19235,9 @@ class KpiWithDataSetTestComponent {
19331
19235
  let apiCalls = [];
19332
19236
  this.allWidgetByDataset.forEach(view => {
19333
19237
  view.datasetIds.forEach(id => {
19334
- let found = this.dataSetModal.find(d => d.datasetId === id);
19238
+ let found = this.dataSetModal.find(d => d.datasetId === id.datasetId);
19335
19239
  if (found) {
19336
- apiCalls.push(this.datasetService.getDataFromDataSet(found, id, filter));
19240
+ apiCalls.push(this.datasetService.getDataFromDataSet(found, id.datasetId, filter));
19337
19241
  }
19338
19242
  });
19339
19243
  });
@@ -19362,9 +19266,9 @@ class KpiWithDataSetTestComponent {
19362
19266
  let apiCalls = [];
19363
19267
  this.allWidgetByDataset.forEach(view => {
19364
19268
  view.datasetIds.forEach(id => {
19365
- let found = this.dataSetModal.find(d => d.datasetId === id);
19269
+ let found = this.dataSetModal.find(d => d.datasetId === id.datasetId);
19366
19270
  if (found) {
19367
- apiCalls.push(this.datasetService.getDataFromDataSet(found, id, filter));
19271
+ apiCalls.push(this.datasetService.getDataFromDataSet(found, id.datasetId, filter));
19368
19272
  }
19369
19273
  });
19370
19274
  });
@@ -19388,6 +19292,7 @@ class KpiWithDataSetTestComponent {
19388
19292
  this.defaultViewIdsOnPageRefresh = [];
19389
19293
  const params = this.activatedRoute.snapshot.queryParams;
19390
19294
  this.defaultViewIdsOnPageRefresh = (params['views'] && params['views'] !== "") ? JSON.parse(decodeURIComponent(params['views'])) : [];
19295
+ debugger;
19391
19296
  all_views.forEach(element => {
19392
19297
  for (let entry of element.widgetNode) {
19393
19298
  let shouldDisplay = false;
@@ -19437,6 +19342,7 @@ class KpiWithDataSetTestComponent {
19437
19342
  const encodedViews = encodeURIComponent(JSON.stringify(currentViews));
19438
19343
  const mergedParams = {
19439
19344
  ...currentParams,
19345
+ views: encodedViews
19440
19346
  };
19441
19347
  const navigation = {
19442
19348
  queryParams: mergedParams,
@@ -19814,6 +19720,121 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
19814
19720
  args: ['modalConfigs']
19815
19721
  }] } });
19816
19722
 
19723
+ class KpiWithMultiLayoutService {
19724
+ constructor(http, environment) {
19725
+ this.http = http;
19726
+ this.environment = environment;
19727
+ this.headers = new HttpHeaders().set('Content-Type', 'application/json');
19728
+ this.options = { headers: this.headers, withCredentials: true };
19729
+ this._selectedKpiOnClick = new Subject();
19730
+ this._kpilist = new Subject();
19731
+ this._selectKpiFromDropDown = new Subject();
19732
+ this._componentRegistry = new Map();
19733
+ this.kpiFilter = new BehaviorSubject([]);
19734
+ }
19735
+ handleError(error) {
19736
+ return throwError(error);
19737
+ }
19738
+ getlistKpiBrowser() {
19739
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/listKpiBrowser';
19740
+ return this.http
19741
+ .get(apiUrl, { withCredentials: true })
19742
+ .pipe(map((response) => {
19743
+ return response;
19744
+ }), catchError(this.handleError));
19745
+ }
19746
+ getAppPageDetailConfig(pageId) {
19747
+ return this.http
19748
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageDetailConfig?pageConfigId=' + pageId, this.options)
19749
+ .pipe(map((response) => {
19750
+ return response;
19751
+ }), catchError(this.handleError));
19752
+ }
19753
+ getAppPageConfigs() {
19754
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageConfigs';
19755
+ return this.http
19756
+ .get(apiUrl, { withCredentials: true })
19757
+ .pipe(map((response) => {
19758
+ return response;
19759
+ }), catchError(this.handleError));
19760
+ }
19761
+ getAppDatasetConfigs() {
19762
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfigs';
19763
+ return this.http
19764
+ .get(apiUrl, { withCredentials: true })
19765
+ .pipe(map((response) => {
19766
+ return response;
19767
+ }), catchError(this.handleError));
19768
+ }
19769
+ getAppDatasetConfig(datasetId) {
19770
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfig?datasetId=' + datasetId;
19771
+ return this.http
19772
+ .get(apiUrl, { withCredentials: true })
19773
+ .pipe(map((response) => {
19774
+ return response;
19775
+ }), catchError(this.handleError));
19776
+ }
19777
+ getAppFilterConfig(filterId) {
19778
+ return this.http
19779
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfig?filterId=' + filterId, this.options)
19780
+ .pipe(map((response) => {
19781
+ return response;
19782
+ }), catchError(this.handleError));
19783
+ }
19784
+ getAppViewConfigs() {
19785
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfigs';
19786
+ return this.http
19787
+ .get(apiUrl, { withCredentials: true })
19788
+ .pipe(map((response) => {
19789
+ return response;
19790
+ }), catchError(this.handleError));
19791
+ }
19792
+ getData(body, requestID) {
19793
+ return this.http
19794
+ .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
19795
+ .pipe(map((response) => {
19796
+ return response;
19797
+ }), catchError(this.handleError));
19798
+ }
19799
+ getSimpleApiPostRequest(requestApi, body) {
19800
+ return this.http
19801
+ .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
19802
+ .pipe(map((response) => {
19803
+ return response;
19804
+ }), catchError(this.handleError));
19805
+ }
19806
+ getSimpleApiGetRequest(requestApi) {
19807
+ return this.http
19808
+ .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
19809
+ .pipe(map((response) => {
19810
+ return response;
19811
+ }), catchError(this.handleError));
19812
+ }
19813
+ getJsonDatasetPayload(requestApi) {
19814
+ return this.http
19815
+ .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
19816
+ .pipe(map((response) => {
19817
+ return response;
19818
+ }), catchError(this.handleError));
19819
+ }
19820
+ genericSqlQueryResponse(requestApi, body) {
19821
+ return this.http
19822
+ .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
19823
+ .pipe(map((response) => {
19824
+ return response;
19825
+ }), catchError(this.handleError));
19826
+ }
19827
+ }
19828
+ KpiWithMultiLayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultiLayoutService, deps: [{ token: i1.HttpClient }, { token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
19829
+ KpiWithMultiLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultiLayoutService, providedIn: "root" });
19830
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultiLayoutService, decorators: [{
19831
+ type: Injectable,
19832
+ args: [{ providedIn: "root" }]
19833
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
19834
+ type: Inject,
19835
+ args: [APP_ENVIRONMENT]
19836
+ }] }]; } });
19837
+
19817
19838
  class MultilayoutApplicationDatssetsCall {
19818
19839
  constructor(service, kpiService, toastr, environment) {
19819
19840
  this.service = service;