gamma-app-controller 1.2.6 → 1.2.7

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
@@ -17649,125 +17661,18 @@ class KpiWithSingleLayoutService {
17649
17661
  return response;
17650
17662
  }), catchError(this.handleError));
17651
17663
  }
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';
17664
+ getFilterDataByDrillDown(apiName) {
17665
+ const apiUrl = this.environment.appUrl + apiName;
17726
17666
  return this.http
17727
17667
  .get(apiUrl, { withCredentials: true })
17728
17668
  .pipe(map((response) => {
17729
17669
  return response;
17730
17670
  }), catchError(this.handleError));
17731
17671
  }
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
17672
  }
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: [{
17673
+ 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 });
17674
+ KpiWithSingleLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithSingleLayoutService, providedIn: "root" });
17675
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithSingleLayoutService, decorators: [{
17771
17676
  type: Injectable,
17772
17677
  args: [{ providedIn: "root" }]
17773
17678
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
@@ -18124,12 +18029,12 @@ class SingleLayoutApplicationDatssetsCall {
18124
18029
  return this.uniqueDataSetObject;
18125
18030
  }
18126
18031
  }
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 });
18032
+ 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
18033
  SingleLayoutApplicationDatssetsCall.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, providedIn: "root" });
18129
18034
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, decorators: [{
18130
18035
  type: Injectable,
18131
18036
  args: [{ providedIn: "root" }]
18132
- }], ctorParameters: function () { return [{ type: KpiWithMultiLayoutService }, { type: kpicommonService$2 }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: undefined, decorators: [{
18037
+ }], ctorParameters: function () { return [{ type: KpiWithSingleLayoutService }, { type: kpicommonService$2 }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: undefined, decorators: [{
18133
18038
  type: Inject,
18134
18039
  args: [APP_ENVIRONMENT]
18135
18040
  }] }]; } });
@@ -19814,6 +19719,121 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
19814
19719
  args: ['modalConfigs']
19815
19720
  }] } });
19816
19721
 
19722
+ class KpiWithMultiLayoutService {
19723
+ constructor(http, environment) {
19724
+ this.http = http;
19725
+ this.environment = environment;
19726
+ this.headers = new HttpHeaders().set('Content-Type', 'application/json');
19727
+ this.options = { headers: this.headers, withCredentials: true };
19728
+ this._selectedKpiOnClick = new Subject();
19729
+ this._kpilist = new Subject();
19730
+ this._selectKpiFromDropDown = new Subject();
19731
+ this._componentRegistry = new Map();
19732
+ this.kpiFilter = new BehaviorSubject([]);
19733
+ }
19734
+ handleError(error) {
19735
+ return throwError(error);
19736
+ }
19737
+ getlistKpiBrowser() {
19738
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/listKpiBrowser';
19739
+ return this.http
19740
+ .get(apiUrl, { withCredentials: true })
19741
+ .pipe(map((response) => {
19742
+ return response;
19743
+ }), catchError(this.handleError));
19744
+ }
19745
+ getAppPageDetailConfig(pageId) {
19746
+ return this.http
19747
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageDetailConfig?pageConfigId=' + pageId, this.options)
19748
+ .pipe(map((response) => {
19749
+ return response;
19750
+ }), catchError(this.handleError));
19751
+ }
19752
+ getAppPageConfigs() {
19753
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppPageConfigs';
19754
+ return this.http
19755
+ .get(apiUrl, { withCredentials: true })
19756
+ .pipe(map((response) => {
19757
+ return response;
19758
+ }), catchError(this.handleError));
19759
+ }
19760
+ getAppDatasetConfigs() {
19761
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfigs';
19762
+ return this.http
19763
+ .get(apiUrl, { withCredentials: true })
19764
+ .pipe(map((response) => {
19765
+ return response;
19766
+ }), catchError(this.handleError));
19767
+ }
19768
+ getAppDatasetConfig(datasetId) {
19769
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppDatasetConfig?datasetId=' + datasetId;
19770
+ return this.http
19771
+ .get(apiUrl, { withCredentials: true })
19772
+ .pipe(map((response) => {
19773
+ return response;
19774
+ }), catchError(this.handleError));
19775
+ }
19776
+ getAppFilterConfig(filterId) {
19777
+ return this.http
19778
+ .get(this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppFilterConfig?filterId=' + filterId, this.options)
19779
+ .pipe(map((response) => {
19780
+ return response;
19781
+ }), catchError(this.handleError));
19782
+ }
19783
+ getAppViewConfigs() {
19784
+ const apiUrl = this.environment.appUrl + this.environment.apiVersion + '/kpi-config/getAppViewConfigs';
19785
+ return this.http
19786
+ .get(apiUrl, { withCredentials: true })
19787
+ .pipe(map((response) => {
19788
+ return response;
19789
+ }), catchError(this.handleError));
19790
+ }
19791
+ getData(body, requestID) {
19792
+ return this.http
19793
+ .post(this.environment.appUrl + this.environment.apiVersion + requestID, JSON.stringify(body), this.options)
19794
+ .pipe(map((response) => {
19795
+ return response;
19796
+ }), catchError(this.handleError));
19797
+ }
19798
+ getSimpleApiPostRequest(requestApi, body) {
19799
+ return this.http
19800
+ .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
19801
+ .pipe(map((response) => {
19802
+ return response;
19803
+ }), catchError(this.handleError));
19804
+ }
19805
+ getSimpleApiGetRequest(requestApi) {
19806
+ return this.http
19807
+ .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
19808
+ .pipe(map((response) => {
19809
+ return response;
19810
+ }), catchError(this.handleError));
19811
+ }
19812
+ getJsonDatasetPayload(requestApi) {
19813
+ return this.http
19814
+ .get(this.environment.appUrl + this.environment.apiVersion + requestApi, { withCredentials: true })
19815
+ .pipe(map((response) => {
19816
+ return response;
19817
+ }), catchError(this.handleError));
19818
+ }
19819
+ genericSqlQueryResponse(requestApi, body) {
19820
+ return this.http
19821
+ .post(this.environment.appUrl + this.environment.apiVersion + requestApi, JSON.stringify(body), this.options)
19822
+ .pipe(map((response) => {
19823
+ return response;
19824
+ }), catchError(this.handleError));
19825
+ }
19826
+ }
19827
+ 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 });
19828
+ KpiWithMultiLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultiLayoutService, providedIn: "root" });
19829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultiLayoutService, decorators: [{
19830
+ type: Injectable,
19831
+ args: [{ providedIn: "root" }]
19832
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
19833
+ type: Inject,
19834
+ args: [APP_ENVIRONMENT]
19835
+ }] }]; } });
19836
+
19817
19837
  class MultilayoutApplicationDatssetsCall {
19818
19838
  constructor(service, kpiService, toastr, environment) {
19819
19839
  this.service = service;