gamma-app-controller 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/application-controller/application-dataset-component/create-dataset/create-dataset.component.mjs +1 -5
- package/esm2020/lib/application-controller/application-dataset-component/dataset-query-bulder/dataset-query-bulder.component.mjs +1 -8
- package/esm2020/lib/application-controller/page-controller/page-config/page-config.component.mjs +1 -2
- package/esm2020/lib/application-controller/page-controller/page-config-multi-layout/page-config-multi-layout.component.mjs +1 -2
- package/esm2020/lib/application-controller/tokenStorage.servce.mjs +36 -0
- package/esm2020/lib/shared/advanced-component/app-advance-header/app-header.component.mjs +20 -18
- package/esm2020/lib/shared/advanced-component/gamma-advance-operator-table/gamma-advance-operator-table.component.mjs +1 -2
- package/esm2020/lib/template-module/bookmarked-template/bookmarked-template.component.mjs +10 -9
- package/esm2020/lib/template-module/defaulLandingComponent/landing-component.component.mjs +10 -9
- package/esm2020/lib/template-module/kpiWithMultiLayout/dynamin-modal-multi.component.mjs +1 -2
- package/esm2020/lib/template-module/kpiWithMultiLayout/kpi-with-multilayout.component.mjs +16 -15
- package/esm2020/lib/template-module/kpiWithSingleLayout/dynamin-modal.component.mjs +1 -2
- package/esm2020/lib/template-module/kpiWithSingleLayout/kpi-with-dataset.component.mjs +47 -29
- package/esm2020/lib/template-module/kpiWithSingleLayout/single-layout-dataset-call.service.mjs +6 -4
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/gamma-app-controller.mjs +101 -63
- package/fesm2015/gamma-app-controller.mjs.map +1 -1
- package/fesm2020/gamma-app-controller.mjs +97 -61
- package/fesm2020/gamma-app-controller.mjs.map +1 -1
- package/lib/application-controller/application-dataset-component/dataset-query-bulder/dataset-query-bulder.component.d.ts +0 -1
- package/lib/application-controller/tokenStorage.servce.d.ts +12 -0
- package/lib/shared/advanced-component/app-advance-header/app-header.component.d.ts +3 -1
- package/lib/template-module/bookmarked-template/bookmarked-template.component.d.ts +3 -1
- package/lib/template-module/defaulLandingComponent/landing-component.component.d.ts +3 -1
- package/lib/template-module/kpiWithMultiLayout/kpi-with-multilayout.component.d.ts +3 -1
- package/lib/template-module/kpiWithSingleLayout/kpi-with-dataset.component.d.ts +12 -1
- package/lib/template-module/kpiWithSingleLayout/single-layout-dataset-call.service.d.ts +3 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -3227,13 +3227,6 @@ class DatasetQueryBulderComponent {
|
|
|
3227
3227
|
});
|
|
3228
3228
|
this.toastr.success('Columns Saved Successfully');
|
|
3229
3229
|
}
|
|
3230
|
-
saveDataToStore() {
|
|
3231
|
-
const buildDate = localStorage.getItem('querybuilder');
|
|
3232
|
-
if (buildDate) {
|
|
3233
|
-
localStorage.removeItem(buildDate);
|
|
3234
|
-
}
|
|
3235
|
-
localStorage.setItem('querybuilder', JSON.stringify(this.queryBulderDataset));
|
|
3236
|
-
}
|
|
3237
3230
|
transformColumnsForMesurs(inputColumns) {
|
|
3238
3231
|
const measure = [];
|
|
3239
3232
|
inputColumns.forEach(col => {
|
|
@@ -7043,6 +7036,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
7043
7036
|
args: ['chartDataSource']
|
|
7044
7037
|
}] } });
|
|
7045
7038
|
|
|
7039
|
+
const TOKEN_KEY = 'x-auth-token';
|
|
7040
|
+
class AppLocalStorage {
|
|
7041
|
+
constructor(environment) {
|
|
7042
|
+
this.environment = environment;
|
|
7043
|
+
}
|
|
7044
|
+
save(type, token) {
|
|
7045
|
+
window.localStorage[this.getAppVariableName(type)] = token;
|
|
7046
|
+
}
|
|
7047
|
+
get(type) {
|
|
7048
|
+
return window.localStorage[this.getAppVariableName(type)];
|
|
7049
|
+
}
|
|
7050
|
+
delete(type) {
|
|
7051
|
+
return window.localStorage.removeItem[this.getAppVariableName(type)];
|
|
7052
|
+
}
|
|
7053
|
+
destroy() {
|
|
7054
|
+
window.localStorage.removeItem(TOKEN_KEY);
|
|
7055
|
+
}
|
|
7056
|
+
getAppVariableName(attributeName) {
|
|
7057
|
+
return this.environment.appName + '__' + attributeName;
|
|
7058
|
+
}
|
|
7059
|
+
}
|
|
7060
|
+
AppLocalStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppLocalStorage, deps: [{ token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7061
|
+
AppLocalStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppLocalStorage, providedIn: 'root' });
|
|
7062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppLocalStorage, decorators: [{
|
|
7063
|
+
type: Injectable,
|
|
7064
|
+
args: [{
|
|
7065
|
+
providedIn: 'root',
|
|
7066
|
+
}]
|
|
7067
|
+
}], ctorParameters: function () {
|
|
7068
|
+
return [{ type: undefined, decorators: [{
|
|
7069
|
+
type: Inject,
|
|
7070
|
+
args: [APP_ENVIRONMENT]
|
|
7071
|
+
}] }];
|
|
7072
|
+
} });
|
|
7073
|
+
|
|
7046
7074
|
class kpicommonService$1 {
|
|
7047
7075
|
constructor(commonService) {
|
|
7048
7076
|
this.commonService = commonService;
|
|
@@ -7975,10 +8003,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
7975
8003
|
}] } });
|
|
7976
8004
|
|
|
7977
8005
|
class AppAdvanceHeaderComponent {
|
|
7978
|
-
constructor(activatedRoute, route, commonService) {
|
|
8006
|
+
constructor(activatedRoute, route, commonService, storage) {
|
|
7979
8007
|
this.activatedRoute = activatedRoute;
|
|
7980
8008
|
this.route = route;
|
|
7981
8009
|
this.commonService = commonService;
|
|
8010
|
+
this.storage = storage;
|
|
7982
8011
|
this.toggleEvent = new EventEmitter();
|
|
7983
8012
|
this.autoload_button = true;
|
|
7984
8013
|
this.toolTipText = 'By Date Range';
|
|
@@ -8100,7 +8129,7 @@ class AppAdvanceHeaderComponent {
|
|
|
8100
8129
|
}
|
|
8101
8130
|
}
|
|
8102
8131
|
ngOnInit() {
|
|
8103
|
-
const userData =
|
|
8132
|
+
const userData = this.storage.get('user_name');
|
|
8104
8133
|
if (userData == 'admin') {
|
|
8105
8134
|
this.isEditButton = true;
|
|
8106
8135
|
}
|
|
@@ -8205,13 +8234,13 @@ class AppAdvanceHeaderComponent {
|
|
|
8205
8234
|
queryParamsHandling: "merge"
|
|
8206
8235
|
};
|
|
8207
8236
|
this.route.navigate([], navigation);
|
|
8208
|
-
const opName =
|
|
8237
|
+
const opName = this.storage.get('operator_key');
|
|
8209
8238
|
if (opName) {
|
|
8210
|
-
|
|
8211
|
-
|
|
8239
|
+
this.storage.delete('operator_key');
|
|
8240
|
+
this.storage.save('operator_key', event.value);
|
|
8212
8241
|
}
|
|
8213
8242
|
else {
|
|
8214
|
-
|
|
8243
|
+
this.storage.save('operator_key', event.value);
|
|
8215
8244
|
}
|
|
8216
8245
|
this.getOperatorName.emit(event.value);
|
|
8217
8246
|
}
|
|
@@ -8234,12 +8263,12 @@ class AppAdvanceHeaderComponent {
|
|
|
8234
8263
|
return operationFilter;
|
|
8235
8264
|
}
|
|
8236
8265
|
}
|
|
8237
|
-
AppAdvanceHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppAdvanceHeaderComponent, deps: [{ token: i2.ActivatedRoute }, { token: i2.Router }, { token: CommonService }], target: i0.ɵɵFactoryTarget.Component });
|
|
8266
|
+
AppAdvanceHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppAdvanceHeaderComponent, deps: [{ token: i2.ActivatedRoute }, { token: i2.Router }, { token: CommonService }, { token: AppLocalStorage }], target: i0.ɵɵFactoryTarget.Component });
|
|
8238
8267
|
AppAdvanceHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: AppAdvanceHeaderComponent, selector: "app-advance-header", inputs: { pageTitle: "pageTitle", bread_crumbs_container: "bread_crumbs_container", isEditButton: "isEditButton", isAdvanceButton: "isAdvanceButton", selectedDates: "selectedDates", filterItems: "filterItems", contextFilterItems: "contextFilterItems" }, outputs: { toggleEvent: "toggleEvent", selectedDateRangeOrServtype: "selectedDateRangeOrServtype", getFilterPageConfig: "getFilterPageConfig", getOperatorName: "getOperatorName", getContextFilterData: "getContextFilterData" }, ngImport: i0, template: "<div class=\"flex flex-col mb-2\">\n <div class=\"flex justify-between border-b dark:bg-transparent\">\n <div class=\"flex flex-col ml-1\">\n <div class=\"flex items-center float-start\">\n <div class=\"flex items-center overflow-hidden\">\n <mat-icon class=\"icon-size-2\" [svgIcon]=\"'heroicons_solid:template'\"></mat-icon>\n </div>\n <h2\n class=\"text-2xl md:text-2xl py-3 font-extrabold items-center ml-2 tracking-tight leading-5 truncate capitalize\">\n {{ pageTitle }}\n </h2>\n </div>\n <div class=\"\">\n <!-- INCOMING -->\n <gamma-bread-crumbs [kpi_data_container]=\"bread_crumbs_container\"></gamma-bread-crumbs>\n </div>\n </div>\n <div class=\"flex justify-between items-center border-l-2 p-0 m-0\">\n\n <div class=\"mx-2\" *ngIf=\"isEditButton\">\n <div (click)=\"editKpi()\"\n class=\"bg-blue-700 cursor-pointer dark:bg-blue-600 dark:focus:ring-blue-800 dark:hover:bg-blue-700 focus:outline-none focus:ring-4 focus:ring-blue-300 font-medium hover:bg-blue-800 mr-2 px-2.5 py-2 rounded text-sm text-white ng-star-inserted\">\n Edit\n </div>\n </div>\n <ng-container *ngIf=\"contextFilterItemsForFilter && contextFilterItemsForFilter.length !== 0 \">\n <div class=\"w-1 h-full border-l-2\"></div>\n <div class=\"mx-2\" >\n <dx-select-box [items]=\"contextFilterItemsForFilter\" (onValueChanged)=\"getContextMenuChange($event)\" displayExpr=\"label\" valueExpr=\"defaultFilterValue\"\n [(ngModel)]=\"defaultFilterValue\"></dx-select-box>\n </div>\n </ng-container>\n \n <div class=\"w-1 h-full border-l-2\" *ngIf=\"isEditButton\"></div>\n\n <div class=\"mx-2\">\n <div class=\"cursor-pointer\" (click)=\"advanceFilterKpi()\"> {{selectedDetesforView}}</div>\n </div>\n <div class=\"w-1 h-full border-l-2\"></div>\n <div class=\"mx-2\" *ngIf=\"isAdvanceButton\">\n <button class=\"mat-focus-indicator mat-menu-trigger mat-icon-button mat-button-base\"\n aria-haspopup=\"menu\" (click)=\"advanceFilterKpi()\">\n <span class=\"mat-button-wrapper\">\n <span class=\"relative\">\n <mat-icon title=\"Filters\" [svgIcon]=\"'heroicons_outline:adjustments'\">\n </mat-icon>\n </span>\n </span>\n </button>\n </div>\n\n\n <div class=\"w-1 h-full border-l-2\"></div>\n <!-- <div class=\"mx-2\">\n <button class=\"mat-focus-indicator mat-menu-trigger mat-icon-button mat-button-base\"\n aria-haspopup=\"menu\">\n <span class=\"mat-button-wrapper\">\n <span class=\"relative\">\n <mat-icon (click)=\"callPageDocumentation()\" title=\"Add Filters\" [svgIcon]=\"\n 'heroicons_outline:question-mark-circle'\n \">\n </mat-icon>\n </span>\n </span>\n <span class=\"mat-button-focus-overlay\"></span>\n </button>\n </div> -->\n\n </div>\n </div>\n</div>\n\n<dx-popup [(visible)]=\"isAdvanceFilter\" [closeOnOutsideClick]=\"false\" [dragEnabled]=\"false\" [width]=\"600\"\n [height]=\"'auto'\" [showTitle]=\"true\" class=\"popup\" title=\"Filter\">\n <div *dxTemplate=\"let data of 'content'\">\n <app-gamma-advance-filter [kpiId]=\"'231212'\" [filterOperatorData]=\"filterItemsForFilter\"\n [isButtonDesiable]=\"isAdvanceFilter\" [filterStartDate]=\"filterStartDate\" [filterEndDate]=\"filterEndDate\"\n (filterDataObject)=\"getSerchFilter($event)\"></app-gamma-advance-filter>\n </div>\n</dx-popup>", dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: 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: "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: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: GammaAdvanceFilterComponent, selector: "app-gamma-advance-filter", inputs: ["kpiId", "filterStartDate", "filterEndDate", "browser_api_config", "isButtonDesiable", "filterOperatorData"], outputs: ["filterDataObject"] }, { kind: "component", type: BreadCrumbsComponent, selector: "gamma-bread-crumbs", inputs: ["kpi_data_container"] }] });
|
|
8239
8268
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppAdvanceHeaderComponent, decorators: [{
|
|
8240
8269
|
type: Component,
|
|
8241
8270
|
args: [{ selector: 'app-advance-header', template: "<div class=\"flex flex-col mb-2\">\n <div class=\"flex justify-between border-b dark:bg-transparent\">\n <div class=\"flex flex-col ml-1\">\n <div class=\"flex items-center float-start\">\n <div class=\"flex items-center overflow-hidden\">\n <mat-icon class=\"icon-size-2\" [svgIcon]=\"'heroicons_solid:template'\"></mat-icon>\n </div>\n <h2\n class=\"text-2xl md:text-2xl py-3 font-extrabold items-center ml-2 tracking-tight leading-5 truncate capitalize\">\n {{ pageTitle }}\n </h2>\n </div>\n <div class=\"\">\n <!-- INCOMING -->\n <gamma-bread-crumbs [kpi_data_container]=\"bread_crumbs_container\"></gamma-bread-crumbs>\n </div>\n </div>\n <div class=\"flex justify-between items-center border-l-2 p-0 m-0\">\n\n <div class=\"mx-2\" *ngIf=\"isEditButton\">\n <div (click)=\"editKpi()\"\n class=\"bg-blue-700 cursor-pointer dark:bg-blue-600 dark:focus:ring-blue-800 dark:hover:bg-blue-700 focus:outline-none focus:ring-4 focus:ring-blue-300 font-medium hover:bg-blue-800 mr-2 px-2.5 py-2 rounded text-sm text-white ng-star-inserted\">\n Edit\n </div>\n </div>\n <ng-container *ngIf=\"contextFilterItemsForFilter && contextFilterItemsForFilter.length !== 0 \">\n <div class=\"w-1 h-full border-l-2\"></div>\n <div class=\"mx-2\" >\n <dx-select-box [items]=\"contextFilterItemsForFilter\" (onValueChanged)=\"getContextMenuChange($event)\" displayExpr=\"label\" valueExpr=\"defaultFilterValue\"\n [(ngModel)]=\"defaultFilterValue\"></dx-select-box>\n </div>\n </ng-container>\n \n <div class=\"w-1 h-full border-l-2\" *ngIf=\"isEditButton\"></div>\n\n <div class=\"mx-2\">\n <div class=\"cursor-pointer\" (click)=\"advanceFilterKpi()\"> {{selectedDetesforView}}</div>\n </div>\n <div class=\"w-1 h-full border-l-2\"></div>\n <div class=\"mx-2\" *ngIf=\"isAdvanceButton\">\n <button class=\"mat-focus-indicator mat-menu-trigger mat-icon-button mat-button-base\"\n aria-haspopup=\"menu\" (click)=\"advanceFilterKpi()\">\n <span class=\"mat-button-wrapper\">\n <span class=\"relative\">\n <mat-icon title=\"Filters\" [svgIcon]=\"'heroicons_outline:adjustments'\">\n </mat-icon>\n </span>\n </span>\n </button>\n </div>\n\n\n <div class=\"w-1 h-full border-l-2\"></div>\n <!-- <div class=\"mx-2\">\n <button class=\"mat-focus-indicator mat-menu-trigger mat-icon-button mat-button-base\"\n aria-haspopup=\"menu\">\n <span class=\"mat-button-wrapper\">\n <span class=\"relative\">\n <mat-icon (click)=\"callPageDocumentation()\" title=\"Add Filters\" [svgIcon]=\"\n 'heroicons_outline:question-mark-circle'\n \">\n </mat-icon>\n </span>\n </span>\n <span class=\"mat-button-focus-overlay\"></span>\n </button>\n </div> -->\n\n </div>\n </div>\n</div>\n\n<dx-popup [(visible)]=\"isAdvanceFilter\" [closeOnOutsideClick]=\"false\" [dragEnabled]=\"false\" [width]=\"600\"\n [height]=\"'auto'\" [showTitle]=\"true\" class=\"popup\" title=\"Filter\">\n <div *dxTemplate=\"let data of 'content'\">\n <app-gamma-advance-filter [kpiId]=\"'231212'\" [filterOperatorData]=\"filterItemsForFilter\"\n [isButtonDesiable]=\"isAdvanceFilter\" [filterStartDate]=\"filterStartDate\" [filterEndDate]=\"filterEndDate\"\n (filterDataObject)=\"getSerchFilter($event)\"></app-gamma-advance-filter>\n </div>\n</dx-popup>" }]
|
|
8242
|
-
}], ctorParameters: function () { return [{ type: i2.ActivatedRoute }, { type: i2.Router }, { type: CommonService }]; }, propDecorators: { pageTitle: [{
|
|
8271
|
+
}], ctorParameters: function () { return [{ type: i2.ActivatedRoute }, { type: i2.Router }, { type: CommonService }, { type: AppLocalStorage }]; }, propDecorators: { pageTitle: [{
|
|
8243
8272
|
type: Input
|
|
8244
8273
|
}], bread_crumbs_container: [{
|
|
8245
8274
|
type: Input
|
|
@@ -8534,7 +8563,6 @@ class GammaAdvanceOperatorTableComponent {
|
|
|
8534
8563
|
return;
|
|
8535
8564
|
}
|
|
8536
8565
|
else {
|
|
8537
|
-
debugger;
|
|
8538
8566
|
this.isLoader = true;
|
|
8539
8567
|
this.page_config = value;
|
|
8540
8568
|
this.page_parms = value.titleParams;
|
|
@@ -11491,11 +11519,9 @@ class CreateDatasetComponent {
|
|
|
11491
11519
|
else {
|
|
11492
11520
|
if (this.creatDatasetObject['datasetId']) {
|
|
11493
11521
|
this.updataNewDataSetCongig();
|
|
11494
|
-
localStorage.removeItem('querybuilder');
|
|
11495
11522
|
}
|
|
11496
11523
|
else {
|
|
11497
11524
|
this.createNeDataSetConfig();
|
|
11498
|
-
localStorage.removeItem('querybuilder');
|
|
11499
11525
|
}
|
|
11500
11526
|
}
|
|
11501
11527
|
}
|
|
@@ -11509,11 +11535,9 @@ class CreateDatasetComponent {
|
|
|
11509
11535
|
else {
|
|
11510
11536
|
if (this.creatDatasetObject['datasetId']) {
|
|
11511
11537
|
this.updataNewDataSetCongig();
|
|
11512
|
-
localStorage.removeItem('querybuilder');
|
|
11513
11538
|
}
|
|
11514
11539
|
else {
|
|
11515
11540
|
this.createNeDataSetConfig();
|
|
11516
|
-
localStorage.removeItem('querybuilder');
|
|
11517
11541
|
}
|
|
11518
11542
|
}
|
|
11519
11543
|
}
|
|
@@ -12297,7 +12321,6 @@ class PageConfigComponent {
|
|
|
12297
12321
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
12298
12322
|
}
|
|
12299
12323
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems) {
|
|
12300
|
-
let userName = localStorage.getItem('user_name');
|
|
12301
12324
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
12302
12325
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
12303
12326
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -13706,7 +13729,6 @@ class PageConfigMultilayoutComponent {
|
|
|
13706
13729
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
13707
13730
|
}
|
|
13708
13731
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems) {
|
|
13709
|
-
let userName = localStorage.getItem('user_name');
|
|
13710
13732
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
13711
13733
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
13712
13734
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -17762,10 +17784,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
17762
17784
|
} });
|
|
17763
17785
|
|
|
17764
17786
|
class SingleLayoutApplicationDatssetsCall {
|
|
17765
|
-
constructor(service, kpiService, toastr, environment) {
|
|
17787
|
+
constructor(service, kpiService, toastr, router, environment) {
|
|
17766
17788
|
this.service = service;
|
|
17767
17789
|
this.kpiService = kpiService;
|
|
17768
17790
|
this.toastr = toastr;
|
|
17791
|
+
this.router = router;
|
|
17769
17792
|
this.environment = environment;
|
|
17770
17793
|
this.uniqueDataSetObject = {};
|
|
17771
17794
|
}
|
|
@@ -18108,13 +18131,13 @@ class SingleLayoutApplicationDatssetsCall {
|
|
|
18108
18131
|
return this.uniqueDataSetObject;
|
|
18109
18132
|
}
|
|
18110
18133
|
}
|
|
18111
|
-
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: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18134
|
+
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 });
|
|
18112
18135
|
SingleLayoutApplicationDatssetsCall.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, providedIn: "root" });
|
|
18113
18136
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, decorators: [{
|
|
18114
18137
|
type: Injectable,
|
|
18115
18138
|
args: [{ providedIn: "root" }]
|
|
18116
18139
|
}], ctorParameters: function () {
|
|
18117
|
-
return [{ type: KpiWithMultiLayoutService }, { type: kpicommonService$2 }, { type: i3$1.ToastrService }, { type: undefined, decorators: [{
|
|
18140
|
+
return [{ type: KpiWithMultiLayoutService }, { type: kpicommonService$2 }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: undefined, decorators: [{
|
|
18118
18141
|
type: Inject,
|
|
18119
18142
|
args: [APP_ENVIRONMENT]
|
|
18120
18143
|
}] }];
|
|
@@ -18289,7 +18312,6 @@ class DynamicWidgetComponent {
|
|
|
18289
18312
|
return widgetDiv;
|
|
18290
18313
|
}
|
|
18291
18314
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
18292
|
-
let userName = localStorage.getItem('user_name');
|
|
18293
18315
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
18294
18316
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
18295
18317
|
const dynamicComponentInstance = this.CompRefs.instance;
|
|
@@ -18323,7 +18345,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
18323
18345
|
}] } });
|
|
18324
18346
|
|
|
18325
18347
|
class KpiWithDataSetTestComponent {
|
|
18326
|
-
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, chatApiService) {
|
|
18348
|
+
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, chatApiService, storage) {
|
|
18327
18349
|
this.commonService = commonService;
|
|
18328
18350
|
this.activatedRoute = activatedRoute;
|
|
18329
18351
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -18333,6 +18355,7 @@ class KpiWithDataSetTestComponent {
|
|
|
18333
18355
|
this.router = router;
|
|
18334
18356
|
this.datasetService = datasetService;
|
|
18335
18357
|
this.chatApiService = chatApiService;
|
|
18358
|
+
this.storage = storage;
|
|
18336
18359
|
this.dashbord_container = [];
|
|
18337
18360
|
this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
|
|
18338
18361
|
this.page_title = 'Dashboard';
|
|
@@ -18372,6 +18395,9 @@ class KpiWithDataSetTestComponent {
|
|
|
18372
18395
|
this.havingDataObject = {};
|
|
18373
18396
|
this.globalDefaultFilter = {};
|
|
18374
18397
|
this.defaultViewIds = [];
|
|
18398
|
+
this.defaultViewIdsOnPageRefresh = [];
|
|
18399
|
+
this.defaultMatchedFilters = { operationFilter: { startDate: "", endDate: "" } };
|
|
18400
|
+
this.isDefaultFilterParams = false;
|
|
18375
18401
|
}
|
|
18376
18402
|
ngOnInit() {
|
|
18377
18403
|
this.service.getlistKpiBrowser().subscribe({
|
|
@@ -18435,6 +18461,7 @@ class KpiWithDataSetTestComponent {
|
|
|
18435
18461
|
getComponentConfigSet() {
|
|
18436
18462
|
let dataset = this.service.getAppDatasetConfigs();
|
|
18437
18463
|
let viewComponent = this.service.getAppViewConfigs();
|
|
18464
|
+
this.defaultViewIds = [];
|
|
18438
18465
|
forkJoin({
|
|
18439
18466
|
datasetConfig: dataset,
|
|
18440
18467
|
viewConfig: viewComponent
|
|
@@ -18530,10 +18557,10 @@ class KpiWithDataSetTestComponent {
|
|
|
18530
18557
|
});
|
|
18531
18558
|
}
|
|
18532
18559
|
});
|
|
18533
|
-
|
|
18560
|
+
this.defaultViewIds = this.defaultViewIds.concat(this.defaultViewIdsOnPageRefresh.filter((item) => this.defaultViewIds.indexOf(item) < 0));
|
|
18534
18561
|
viewIds.forEach(element => {
|
|
18535
18562
|
let obj = {
|
|
18536
|
-
"filters": JSON.parse(JSON.stringify(defaultFilters)),
|
|
18563
|
+
"filters": (this.isDefaultFilterParams) ? JSON.parse(JSON.stringify(this.defaultMatchedFilters)) : JSON.parse(JSON.stringify(defaultFilters)),
|
|
18537
18564
|
"keyToPass": [],
|
|
18538
18565
|
"drillDownType": "natural",
|
|
18539
18566
|
"drilldownFrom": ""
|
|
@@ -18543,12 +18570,11 @@ class KpiWithDataSetTestComponent {
|
|
|
18543
18570
|
let obj = {
|
|
18544
18571
|
widgetId: widget.widgetId,
|
|
18545
18572
|
pageId: widget.pageId,
|
|
18546
|
-
filters: defaultFilters,
|
|
18573
|
+
filters: (this.isDefaultFilterParams) ? this.defaultMatchedFilters : defaultFilters,
|
|
18547
18574
|
datasetIds: datasetIds
|
|
18548
18575
|
};
|
|
18549
18576
|
this.allWidgetByDataset.push(obj);
|
|
18550
18577
|
});
|
|
18551
|
-
console.log(this.stateDataSource);
|
|
18552
18578
|
this.uniqueDataSetObject = {};
|
|
18553
18579
|
let apiCalls = [];
|
|
18554
18580
|
this.allWidgetByDataset.forEach(view => {
|
|
@@ -18777,7 +18803,7 @@ class KpiWithDataSetTestComponent {
|
|
|
18777
18803
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
18778
18804
|
}
|
|
18779
18805
|
loadFilterComponent(indexObj, containerElement, filterItems, context_filter) {
|
|
18780
|
-
let userName =
|
|
18806
|
+
let userName = this.storage.get('user_name');
|
|
18781
18807
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
18782
18808
|
const componentClass = this.componentClassMap['AppAdvanceHeaderComponent'];
|
|
18783
18809
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -18804,7 +18830,6 @@ class KpiWithDataSetTestComponent {
|
|
|
18804
18830
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
18805
18831
|
}
|
|
18806
18832
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
18807
|
-
let userName = localStorage.getItem('user_name');
|
|
18808
18833
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
18809
18834
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
18810
18835
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -18903,10 +18928,9 @@ class KpiWithDataSetTestComponent {
|
|
|
18903
18928
|
const stateData = Array.from(this.stateDataSource.keys());
|
|
18904
18929
|
const currentViewIndex = stateData.indexOf(event.viewId);
|
|
18905
18930
|
const deletedViewIds = [];
|
|
18931
|
+
console.log(this.defaultViewIds, "default view");
|
|
18906
18932
|
for (let i = currentViewIndex + 1; i < stateData.length; i++) {
|
|
18907
|
-
|
|
18908
|
-
deletedViewIds.push(stateData[i]);
|
|
18909
|
-
}
|
|
18933
|
+
deletedViewIds.push(stateData[i]);
|
|
18910
18934
|
}
|
|
18911
18935
|
const hourlyNode = this.dashBoardWidgetConfig.widgets
|
|
18912
18936
|
.map(widget => widget.widgetNode.find(node => this.getHourlyData(node)))
|
|
@@ -19030,7 +19054,6 @@ class KpiWithDataSetTestComponent {
|
|
|
19030
19054
|
this.scrollToBottom(this.mainPageDivElement);
|
|
19031
19055
|
}, 200);
|
|
19032
19056
|
});
|
|
19033
|
-
console.log(this.stateDataSource);
|
|
19034
19057
|
}
|
|
19035
19058
|
getModalViewByRowCLick(event, view) {
|
|
19036
19059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -19073,6 +19096,7 @@ class KpiWithDataSetTestComponent {
|
|
|
19073
19096
|
let appliedFilters = this.getSetOperatorFilter(event, this.stateDataSource.get(event.viewId));
|
|
19074
19097
|
view.compConfig.viewConfig.forEach(contentView => {
|
|
19075
19098
|
let found = this.dataSetModal.find(d => d.datasetId === contentView.datasetId);
|
|
19099
|
+
let queryParams = this.getFiltersForQueryParams(appliedFilters, found.config.queryConfig.mapedFilters);
|
|
19076
19100
|
if (found) {
|
|
19077
19101
|
apiCalls.push(this.datasetService.getDataFromDataSet(found, contentView.datasetId, appliedFilters));
|
|
19078
19102
|
chatApiCall.push(this.chatApiService.getDataForChatAi(this.pageId, contentView, appliedFilters));
|
|
@@ -19098,14 +19122,30 @@ class KpiWithDataSetTestComponent {
|
|
|
19098
19122
|
setTimeout(() => {
|
|
19099
19123
|
this.scrollToBottom(this.mainPageDivElement);
|
|
19100
19124
|
}, 200);
|
|
19101
|
-
let navigation = {
|
|
19102
|
-
queryParams: appliedFilters['operationFilter'],
|
|
19103
|
-
queryParamsHandling: "merge"
|
|
19104
|
-
};
|
|
19105
|
-
this.router.navigate([], navigation);
|
|
19106
|
-
console.log(this.stateDataSource);
|
|
19107
19125
|
});
|
|
19108
19126
|
}
|
|
19127
|
+
getFiltersForQueryParams(operators, filters) {
|
|
19128
|
+
debugger;
|
|
19129
|
+
const operationFilter = operators.operationFilter || {};
|
|
19130
|
+
const currentParams = this.activatedRoute.snapshot.queryParams;
|
|
19131
|
+
const newParams = {};
|
|
19132
|
+
const defaultViewsKeyToPass = [];
|
|
19133
|
+
filters.forEach(filter => {
|
|
19134
|
+
const localKey = filter.localColumn;
|
|
19135
|
+
const serverKey = filter.serverColumn;
|
|
19136
|
+
let value = operationFilter[localKey];
|
|
19137
|
+
if (value !== undefined && value !== "") {
|
|
19138
|
+
newParams[serverKey] = value;
|
|
19139
|
+
defaultViewsKeyToPass.push(localKey);
|
|
19140
|
+
}
|
|
19141
|
+
});
|
|
19142
|
+
const mergedParams = Object.assign(Object.assign({}, currentParams), newParams);
|
|
19143
|
+
const navigation = {
|
|
19144
|
+
queryParams: mergedParams,
|
|
19145
|
+
queryParamsHandling: 'merge'
|
|
19146
|
+
};
|
|
19147
|
+
this.router.navigate([], navigation);
|
|
19148
|
+
}
|
|
19109
19149
|
scrollToBottom(container) {
|
|
19110
19150
|
setTimeout(() => {
|
|
19111
19151
|
container.scrollIntoView({ block: 'end' });
|
|
@@ -19267,7 +19307,6 @@ class KpiWithDataSetTestComponent {
|
|
|
19267
19307
|
}
|
|
19268
19308
|
loadDataByOperator(opName) {
|
|
19269
19309
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19270
|
-
console.log(opName);
|
|
19271
19310
|
let filter = { operationFilter: { startDate: "", endDate: "", operator_key: "" } };
|
|
19272
19311
|
filter.operationFilter['startDate'] = this.defaultStartDate;
|
|
19273
19312
|
filter.operationFilter['endDate'] = this.defaultEndDate;
|
|
@@ -19342,12 +19381,12 @@ class KpiWithDataSetTestComponent {
|
|
|
19342
19381
|
}
|
|
19343
19382
|
}
|
|
19344
19383
|
}
|
|
19345
|
-
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 }], target: i0.ɵɵFactoryTarget.Component });
|
|
19384
|
+
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: AppLocalStorage }], target: i0.ɵɵFactoryTarget.Component });
|
|
19346
19385
|
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"] }] });
|
|
19347
19386
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithDataSetTestComponent, decorators: [{
|
|
19348
19387
|
type: Component,
|
|
19349
19388
|
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"] }]
|
|
19350
|
-
}], 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 }]; }, propDecorators: { dynamicComponentContainer: [{
|
|
19389
|
+
}], 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: AppLocalStorage }]; }, propDecorators: { dynamicComponentContainer: [{
|
|
19351
19390
|
type: ViewChild,
|
|
19352
19391
|
args: ['dynamicComponentContainer', { read: ViewContainerRef }]
|
|
19353
19392
|
}], containerRef: [{
|
|
@@ -19638,7 +19677,6 @@ class DynamicWidgetForMultilayoutComponent {
|
|
|
19638
19677
|
return widgetDiv;
|
|
19639
19678
|
}
|
|
19640
19679
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
19641
|
-
let userName = localStorage.getItem('user_name');
|
|
19642
19680
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
19643
19681
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
19644
19682
|
const dynamicComponentInstance = this.CompRefs.instance;
|
|
@@ -20031,7 +20069,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
20031
20069
|
} });
|
|
20032
20070
|
|
|
20033
20071
|
class KpiWithMultilayoutSetTestComponent {
|
|
20034
|
-
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService) {
|
|
20072
|
+
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage) {
|
|
20035
20073
|
this.commonService = commonService;
|
|
20036
20074
|
this.activatedRoute = activatedRoute;
|
|
20037
20075
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -20040,6 +20078,7 @@ class KpiWithMultilayoutSetTestComponent {
|
|
|
20040
20078
|
this.toastr = toastr;
|
|
20041
20079
|
this.router = router;
|
|
20042
20080
|
this.datasetService = datasetService;
|
|
20081
|
+
this.storage = storage;
|
|
20043
20082
|
this.dashbord_container = [];
|
|
20044
20083
|
this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
|
|
20045
20084
|
this.page_title = 'Dashboard';
|
|
@@ -20450,7 +20489,7 @@ class KpiWithMultilayoutSetTestComponent {
|
|
|
20450
20489
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
20451
20490
|
}
|
|
20452
20491
|
loadFilterComponent(indexObj, containerElement, filterItems, context_filter) {
|
|
20453
|
-
let userName =
|
|
20492
|
+
let userName = this.storage.get('user_name');
|
|
20454
20493
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
20455
20494
|
const componentClass = this.componentClassMap['AppAdvanceHeaderComponent'];
|
|
20456
20495
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -20477,7 +20516,6 @@ class KpiWithMultilayoutSetTestComponent {
|
|
|
20477
20516
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
20478
20517
|
}
|
|
20479
20518
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
20480
|
-
let userName = localStorage.getItem('user_name');
|
|
20481
20519
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
20482
20520
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
20483
20521
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -20993,12 +21031,12 @@ class KpiWithMultilayoutSetTestComponent {
|
|
|
20993
21031
|
}
|
|
20994
21032
|
}
|
|
20995
21033
|
}
|
|
20996
|
-
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 }], target: i0.ɵɵFactoryTarget.Component });
|
|
21034
|
+
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: AppLocalStorage }], target: i0.ɵɵFactoryTarget.Component });
|
|
20997
21035
|
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"] }] });
|
|
20998
21036
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultilayoutSetTestComponent, decorators: [{
|
|
20999
21037
|
type: Component,
|
|
21000
21038
|
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" }]
|
|
21001
|
-
}], 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 }]; }, propDecorators: { dynamicComponentContainer: [{
|
|
21039
|
+
}], 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: AppLocalStorage }]; }, propDecorators: { dynamicComponentContainer: [{
|
|
21002
21040
|
type: ViewChild,
|
|
21003
21041
|
args: ['dynamicComponentContainer', { read: ViewContainerRef }]
|
|
21004
21042
|
}], containerRef: [{
|
|
@@ -21627,7 +21665,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
21627
21665
|
} });
|
|
21628
21666
|
|
|
21629
21667
|
class LandingComponentComponent {
|
|
21630
|
-
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService) {
|
|
21668
|
+
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage) {
|
|
21631
21669
|
this.commonService = commonService;
|
|
21632
21670
|
this.activatedRoute = activatedRoute;
|
|
21633
21671
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -21636,6 +21674,7 @@ class LandingComponentComponent {
|
|
|
21636
21674
|
this.toastr = toastr;
|
|
21637
21675
|
this.router = router;
|
|
21638
21676
|
this.datasetService = datasetService;
|
|
21677
|
+
this.storage = storage;
|
|
21639
21678
|
this.dashbord_container = [];
|
|
21640
21679
|
this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
|
|
21641
21680
|
this.page_title = 'Dashboard';
|
|
@@ -22029,7 +22068,7 @@ class LandingComponentComponent {
|
|
|
22029
22068
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
22030
22069
|
}
|
|
22031
22070
|
loadFilterComponent(indexObj, containerElement, filterItems, context_filter) {
|
|
22032
|
-
let userName =
|
|
22071
|
+
let userName = this.storage.get('user_name');
|
|
22033
22072
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
22034
22073
|
const componentClass = this.componentClassMap['AppAdvanceHeaderComponent'];
|
|
22035
22074
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -22050,7 +22089,6 @@ class LandingComponentComponent {
|
|
|
22050
22089
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
22051
22090
|
}
|
|
22052
22091
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
22053
|
-
let userName = localStorage.getItem('user_name');
|
|
22054
22092
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
22055
22093
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
22056
22094
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -22470,12 +22508,12 @@ class LandingComponentComponent {
|
|
|
22470
22508
|
});
|
|
22471
22509
|
}
|
|
22472
22510
|
}
|
|
22473
|
-
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 }], target: i0.ɵɵFactoryTarget.Component });
|
|
22511
|
+
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: AppLocalStorage }], target: i0.ɵɵFactoryTarget.Component });
|
|
22474
22512
|
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 }], 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" }] });
|
|
22475
22513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LandingComponentComponent, decorators: [{
|
|
22476
22514
|
type: Component,
|
|
22477
22515
|
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>" }]
|
|
22478
|
-
}], 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 }]; }, propDecorators: { dynamicComponentContainer: [{
|
|
22516
|
+
}], 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: AppLocalStorage }]; }, propDecorators: { dynamicComponentContainer: [{
|
|
22479
22517
|
type: ViewChild,
|
|
22480
22518
|
args: ['dynamicComponentContainer', { read: ViewContainerRef }]
|
|
22481
22519
|
}], containerRef: [{
|
|
@@ -23100,7 +23138,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
23100
23138
|
} });
|
|
23101
23139
|
|
|
23102
23140
|
class BookmarkedTemplateComponent {
|
|
23103
|
-
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService) {
|
|
23141
|
+
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage) {
|
|
23104
23142
|
this.commonService = commonService;
|
|
23105
23143
|
this.activatedRoute = activatedRoute;
|
|
23106
23144
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -23109,6 +23147,7 @@ class BookmarkedTemplateComponent {
|
|
|
23109
23147
|
this.toastr = toastr;
|
|
23110
23148
|
this.router = router;
|
|
23111
23149
|
this.datasetService = datasetService;
|
|
23150
|
+
this.storage = storage;
|
|
23112
23151
|
this.dashbord_container = [];
|
|
23113
23152
|
this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
|
|
23114
23153
|
this.page_title = 'Dashboard';
|
|
@@ -23487,7 +23526,7 @@ class BookmarkedTemplateComponent {
|
|
|
23487
23526
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
23488
23527
|
}
|
|
23489
23528
|
loadFilterComponent(indexObj, containerElement, filterItems) {
|
|
23490
|
-
let userName =
|
|
23529
|
+
let userName = this.storage.get('user_name');
|
|
23491
23530
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
23492
23531
|
const componentClass = this.componentClassMap['AppAdvanceHeaderComponent'];
|
|
23493
23532
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -23507,7 +23546,6 @@ class BookmarkedTemplateComponent {
|
|
|
23507
23546
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
23508
23547
|
}
|
|
23509
23548
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
23510
|
-
let userName = localStorage.getItem('user_name');
|
|
23511
23549
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
23512
23550
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
23513
23551
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -23885,12 +23923,12 @@ class BookmarkedTemplateComponent {
|
|
|
23885
23923
|
});
|
|
23886
23924
|
}
|
|
23887
23925
|
}
|
|
23888
|
-
BookmarkedTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BookmarkedTemplateComponent, deps: [{ token: CommonService }, { token: i2.ActivatedRoute }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: BookmarkedService }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: BookmarkedApplicationDatssetsCall }], target: i0.ɵɵFactoryTarget.Component });
|
|
23926
|
+
BookmarkedTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BookmarkedTemplateComponent, deps: [{ token: CommonService }, { token: i2.ActivatedRoute }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: BookmarkedService }, { token: i3$1.ToastrService }, { token: i2.Router }, { token: BookmarkedApplicationDatssetsCall }, { token: AppLocalStorage }], target: i0.ɵɵFactoryTarget.Component });
|
|
23889
23927
|
BookmarkedTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: BookmarkedTemplateComponent, selector: "app-bookmarked-template", 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>", styles: [""], dependencies: [{ kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoadingComponent$1, selector: "app-loading" }] });
|
|
23890
23928
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BookmarkedTemplateComponent, decorators: [{
|
|
23891
23929
|
type: Component,
|
|
23892
23930
|
args: [{ selector: 'app-bookmarked-template', template: "<app-loading *ngIf=\"loadingModal\"></app-loading>\n\n<div class=\"w-full\">\n <div class=\"flex flex-wrap \" #dynamicContainer></div>\n</div>" }]
|
|
23893
|
-
}], ctorParameters: function () { return [{ type: CommonService }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: BookmarkedService }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: BookmarkedApplicationDatssetsCall }]; }, propDecorators: { dynamicComponentContainer: [{
|
|
23931
|
+
}], ctorParameters: function () { return [{ type: CommonService }, { type: i2.ActivatedRoute }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: BookmarkedService }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: BookmarkedApplicationDatssetsCall }, { type: AppLocalStorage }]; }, propDecorators: { dynamicComponentContainer: [{
|
|
23894
23932
|
type: ViewChild,
|
|
23895
23933
|
args: ['dynamicComponentContainer', { read: ViewContainerRef }]
|
|
23896
23934
|
}], containerRef: [{
|
|
@@ -24038,5 +24076,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
24038
24076
|
}]
|
|
24039
24077
|
}] });
|
|
24040
24078
|
|
|
24041
|
-
export { APP_ENVIRONMENT, AdvanceWidgetHeaderFilterComponent, AllMetricsConfigComponent, AppAdvanceHeaderComponent, AppHttpService, AppTitleComponent, ApplicationChatApiCallService, ApplicationContentService, ApplicationDatssetsCall, ApplicationFilterComponent, ApplicationViewsComponent, BookMarkedTemplatemodule, BookmarkedApplicationDatssetsCall, BookmarkedService, BookmarkedTemplateComponent, BreadCrumbsComponent, CdrConfigComponent, CdrConfigMoudule, CommonHeaderComponent, CommonService, CreateCompViewComponent, CreateDatasetComponent, CreateDatasetJsonComponent, CreateDatasetSqlComponent, CreateKpiTreeComponent, CreateMetricsComponent, DashChartComponent, DashTableComponent, DashTodayPreviousComponent, DefaultLandingComponenttModule, DynamicWidgetComponent, DynamicWidgetForMultilayoutComponent, ExceptionOperationComponent, ExceptionOperationModule, GamamWidgetComponent, GammSingleNumberCardComponent, GammaAdvanceChartComponent, GammaAdvanceFilterComponent, GammaAdvanceOperatorTableComponent, GammaAppControllerComponent, GammaAppControllerModule, GammaAppControllerService, GammaGeoChartComponent, GammaHeatChartComponent, GammaTableClumnBarChartComponent, GammaTableWithPercentageComponent, GammaTodayPreviousComponent, GeoMapComponent, GoogleGeoMapComponent, HeatMapSupportComponent, IconsModule, KpiCreationModule, KpiWithDataSetTestComponent, KpiWithMultiLayoutModule, KpiWithMultiLayoutService, KpiWithMultilayoutSetTestComponent, KpiWithSingleLayoutModule, KpiWithSingleLayoutService, LandingApplicationDatssetsCall, LandingComponentComponent, LandingComponentService, LoaderComponent, LoadingComponent, LoadingModule, MultilayoutApplicationDatssetsCall, OflineMetricsComponent, OnlineMetricsComponent, PackageApplicationControllerModule, PageConfigComponent, PageConfigMultilayoutComponent, PageControlerComponent, SafeHtmlPipe, SingleLayoutApplicationDatssetsCall, SqlPipe, TableWithBarComponent, TreeViewAsideItemComponent, TreeViewBasicItemComponent, TreeViewCollapsableItemComponent, TreeViewDividerItemComponent, TreeViewGroupItemComponent, TreeViewSpacerItemComponent, TreeviewComponent, contentSafeHtml, kpicommonService$2 as kpicommonService };
|
|
24079
|
+
export { APP_ENVIRONMENT, AdvanceWidgetHeaderFilterComponent, AllMetricsConfigComponent, AppAdvanceHeaderComponent, AppHttpService, AppLocalStorage, AppTitleComponent, ApplicationChatApiCallService, ApplicationContentService, ApplicationDatssetsCall, ApplicationFilterComponent, ApplicationViewsComponent, BookMarkedTemplatemodule, BookmarkedApplicationDatssetsCall, BookmarkedService, BookmarkedTemplateComponent, BreadCrumbsComponent, CdrConfigComponent, CdrConfigMoudule, CommonHeaderComponent, CommonService, CreateCompViewComponent, CreateDatasetComponent, CreateDatasetJsonComponent, CreateDatasetSqlComponent, CreateKpiTreeComponent, CreateMetricsComponent, DashChartComponent, DashTableComponent, DashTodayPreviousComponent, DefaultLandingComponenttModule, DynamicWidgetComponent, DynamicWidgetForMultilayoutComponent, ExceptionOperationComponent, ExceptionOperationModule, GamamWidgetComponent, GammSingleNumberCardComponent, GammaAdvanceChartComponent, GammaAdvanceFilterComponent, GammaAdvanceOperatorTableComponent, GammaAppControllerComponent, GammaAppControllerModule, GammaAppControllerService, GammaGeoChartComponent, GammaHeatChartComponent, GammaTableClumnBarChartComponent, GammaTableWithPercentageComponent, GammaTodayPreviousComponent, GeoMapComponent, GoogleGeoMapComponent, HeatMapSupportComponent, IconsModule, KpiCreationModule, KpiWithDataSetTestComponent, KpiWithMultiLayoutModule, KpiWithMultiLayoutService, KpiWithMultilayoutSetTestComponent, KpiWithSingleLayoutModule, KpiWithSingleLayoutService, LandingApplicationDatssetsCall, LandingComponentComponent, LandingComponentService, LoaderComponent, LoadingComponent, LoadingModule, MultilayoutApplicationDatssetsCall, OflineMetricsComponent, OnlineMetricsComponent, PackageApplicationControllerModule, PageConfigComponent, PageConfigMultilayoutComponent, PageControlerComponent, SafeHtmlPipe, SingleLayoutApplicationDatssetsCall, SqlPipe, TableWithBarComponent, TreeViewAsideItemComponent, TreeViewBasicItemComponent, TreeViewCollapsableItemComponent, TreeViewDividerItemComponent, TreeViewGroupItemComponent, TreeViewSpacerItemComponent, TreeviewComponent, contentSafeHtml, kpicommonService$2 as kpicommonService };
|
|
24042
24080
|
//# sourceMappingURL=gamma-app-controller.mjs.map
|