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
|
@@ -3216,13 +3216,6 @@ class DatasetQueryBulderComponent {
|
|
|
3216
3216
|
});
|
|
3217
3217
|
this.toastr.success('Columns Saved Successfully');
|
|
3218
3218
|
}
|
|
3219
|
-
saveDataToStore() {
|
|
3220
|
-
const buildDate = localStorage.getItem('querybuilder');
|
|
3221
|
-
if (buildDate) {
|
|
3222
|
-
localStorage.removeItem(buildDate);
|
|
3223
|
-
}
|
|
3224
|
-
localStorage.setItem('querybuilder', JSON.stringify(this.queryBulderDataset));
|
|
3225
|
-
}
|
|
3226
3219
|
transformColumnsForMesurs(inputColumns) {
|
|
3227
3220
|
const measure = [];
|
|
3228
3221
|
inputColumns.forEach(col => {
|
|
@@ -7033,6 +7026,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
7033
7026
|
args: ['chartDataSource']
|
|
7034
7027
|
}] } });
|
|
7035
7028
|
|
|
7029
|
+
const TOKEN_KEY = 'x-auth-token';
|
|
7030
|
+
class AppLocalStorage {
|
|
7031
|
+
constructor(environment) {
|
|
7032
|
+
this.environment = environment;
|
|
7033
|
+
}
|
|
7034
|
+
save(type, token) {
|
|
7035
|
+
window.localStorage[this.getAppVariableName(type)] = token;
|
|
7036
|
+
}
|
|
7037
|
+
get(type) {
|
|
7038
|
+
return window.localStorage[this.getAppVariableName(type)];
|
|
7039
|
+
}
|
|
7040
|
+
delete(type) {
|
|
7041
|
+
return window.localStorage.removeItem[this.getAppVariableName(type)];
|
|
7042
|
+
}
|
|
7043
|
+
destroy() {
|
|
7044
|
+
window.localStorage.removeItem(TOKEN_KEY);
|
|
7045
|
+
}
|
|
7046
|
+
getAppVariableName(attributeName) {
|
|
7047
|
+
return this.environment.appName + '__' + attributeName;
|
|
7048
|
+
}
|
|
7049
|
+
}
|
|
7050
|
+
AppLocalStorage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppLocalStorage, deps: [{ token: APP_ENVIRONMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7051
|
+
AppLocalStorage.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppLocalStorage, providedIn: 'root' });
|
|
7052
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppLocalStorage, decorators: [{
|
|
7053
|
+
type: Injectable,
|
|
7054
|
+
args: [{
|
|
7055
|
+
providedIn: 'root',
|
|
7056
|
+
}]
|
|
7057
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
7058
|
+
type: Inject,
|
|
7059
|
+
args: [APP_ENVIRONMENT]
|
|
7060
|
+
}] }]; } });
|
|
7061
|
+
|
|
7036
7062
|
class kpicommonService$1 {
|
|
7037
7063
|
constructor(commonService) {
|
|
7038
7064
|
this.commonService = commonService;
|
|
@@ -7963,10 +7989,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
7963
7989
|
}] } });
|
|
7964
7990
|
|
|
7965
7991
|
class AppAdvanceHeaderComponent {
|
|
7966
|
-
constructor(activatedRoute, route, commonService) {
|
|
7992
|
+
constructor(activatedRoute, route, commonService, storage) {
|
|
7967
7993
|
this.activatedRoute = activatedRoute;
|
|
7968
7994
|
this.route = route;
|
|
7969
7995
|
this.commonService = commonService;
|
|
7996
|
+
this.storage = storage;
|
|
7970
7997
|
this.toggleEvent = new EventEmitter();
|
|
7971
7998
|
this.autoload_button = true;
|
|
7972
7999
|
this.toolTipText = 'By Date Range';
|
|
@@ -8088,7 +8115,7 @@ class AppAdvanceHeaderComponent {
|
|
|
8088
8115
|
}
|
|
8089
8116
|
}
|
|
8090
8117
|
ngOnInit() {
|
|
8091
|
-
const userData =
|
|
8118
|
+
const userData = this.storage.get('user_name');
|
|
8092
8119
|
if (userData == 'admin') {
|
|
8093
8120
|
this.isEditButton = true;
|
|
8094
8121
|
}
|
|
@@ -8193,13 +8220,13 @@ class AppAdvanceHeaderComponent {
|
|
|
8193
8220
|
queryParamsHandling: "merge"
|
|
8194
8221
|
};
|
|
8195
8222
|
this.route.navigate([], navigation);
|
|
8196
|
-
const opName =
|
|
8223
|
+
const opName = this.storage.get('operator_key');
|
|
8197
8224
|
if (opName) {
|
|
8198
|
-
|
|
8199
|
-
|
|
8225
|
+
this.storage.delete('operator_key');
|
|
8226
|
+
this.storage.save('operator_key', event.value);
|
|
8200
8227
|
}
|
|
8201
8228
|
else {
|
|
8202
|
-
|
|
8229
|
+
this.storage.save('operator_key', event.value);
|
|
8203
8230
|
}
|
|
8204
8231
|
this.getOperatorName.emit(event.value);
|
|
8205
8232
|
}
|
|
@@ -8222,12 +8249,12 @@ class AppAdvanceHeaderComponent {
|
|
|
8222
8249
|
return operationFilter;
|
|
8223
8250
|
}
|
|
8224
8251
|
}
|
|
8225
|
-
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 });
|
|
8252
|
+
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 });
|
|
8226
8253
|
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"] }] });
|
|
8227
8254
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AppAdvanceHeaderComponent, decorators: [{
|
|
8228
8255
|
type: Component,
|
|
8229
8256
|
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>" }]
|
|
8230
|
-
}], ctorParameters: function () { return [{ type: i2.ActivatedRoute }, { type: i2.Router }, { type: CommonService }]; }, propDecorators: { pageTitle: [{
|
|
8257
|
+
}], ctorParameters: function () { return [{ type: i2.ActivatedRoute }, { type: i2.Router }, { type: CommonService }, { type: AppLocalStorage }]; }, propDecorators: { pageTitle: [{
|
|
8231
8258
|
type: Input
|
|
8232
8259
|
}], bread_crumbs_container: [{
|
|
8233
8260
|
type: Input
|
|
@@ -8521,7 +8548,6 @@ class GammaAdvanceOperatorTableComponent {
|
|
|
8521
8548
|
return;
|
|
8522
8549
|
}
|
|
8523
8550
|
else {
|
|
8524
|
-
debugger;
|
|
8525
8551
|
this.isLoader = true;
|
|
8526
8552
|
this.page_config = value;
|
|
8527
8553
|
this.page_parms = value.titleParams;
|
|
@@ -11479,11 +11505,9 @@ class CreateDatasetComponent {
|
|
|
11479
11505
|
else {
|
|
11480
11506
|
if (this.creatDatasetObject['datasetId']) {
|
|
11481
11507
|
this.updataNewDataSetCongig();
|
|
11482
|
-
localStorage.removeItem('querybuilder');
|
|
11483
11508
|
}
|
|
11484
11509
|
else {
|
|
11485
11510
|
this.createNeDataSetConfig();
|
|
11486
|
-
localStorage.removeItem('querybuilder');
|
|
11487
11511
|
}
|
|
11488
11512
|
}
|
|
11489
11513
|
}
|
|
@@ -11497,11 +11521,9 @@ class CreateDatasetComponent {
|
|
|
11497
11521
|
else {
|
|
11498
11522
|
if (this.creatDatasetObject['datasetId']) {
|
|
11499
11523
|
this.updataNewDataSetCongig();
|
|
11500
|
-
localStorage.removeItem('querybuilder');
|
|
11501
11524
|
}
|
|
11502
11525
|
else {
|
|
11503
11526
|
this.createNeDataSetConfig();
|
|
11504
|
-
localStorage.removeItem('querybuilder');
|
|
11505
11527
|
}
|
|
11506
11528
|
}
|
|
11507
11529
|
}
|
|
@@ -12283,7 +12305,6 @@ class PageConfigComponent {
|
|
|
12283
12305
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
12284
12306
|
}
|
|
12285
12307
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems) {
|
|
12286
|
-
let userName = localStorage.getItem('user_name');
|
|
12287
12308
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
12288
12309
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
12289
12310
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -13698,7 +13719,6 @@ class PageConfigMultilayoutComponent {
|
|
|
13698
13719
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
13699
13720
|
}
|
|
13700
13721
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems) {
|
|
13701
|
-
let userName = localStorage.getItem('user_name');
|
|
13702
13722
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
13703
13723
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
13704
13724
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -17750,10 +17770,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
17750
17770
|
}] }]; } });
|
|
17751
17771
|
|
|
17752
17772
|
class SingleLayoutApplicationDatssetsCall {
|
|
17753
|
-
constructor(service, kpiService, toastr, environment) {
|
|
17773
|
+
constructor(service, kpiService, toastr, router, environment) {
|
|
17754
17774
|
this.service = service;
|
|
17755
17775
|
this.kpiService = kpiService;
|
|
17756
17776
|
this.toastr = toastr;
|
|
17777
|
+
this.router = router;
|
|
17757
17778
|
this.environment = environment;
|
|
17758
17779
|
this.uniqueDataSetObject = {};
|
|
17759
17780
|
}
|
|
@@ -18096,12 +18117,12 @@ class SingleLayoutApplicationDatssetsCall {
|
|
|
18096
18117
|
return this.uniqueDataSetObject;
|
|
18097
18118
|
}
|
|
18098
18119
|
}
|
|
18099
|
-
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 });
|
|
18120
|
+
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 });
|
|
18100
18121
|
SingleLayoutApplicationDatssetsCall.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, providedIn: "root" });
|
|
18101
18122
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SingleLayoutApplicationDatssetsCall, decorators: [{
|
|
18102
18123
|
type: Injectable,
|
|
18103
18124
|
args: [{ providedIn: "root" }]
|
|
18104
|
-
}], ctorParameters: function () { return [{ type: KpiWithMultiLayoutService }, { type: kpicommonService$2 }, { type: i3$1.ToastrService }, { type: undefined, decorators: [{
|
|
18125
|
+
}], ctorParameters: function () { return [{ type: KpiWithMultiLayoutService }, { type: kpicommonService$2 }, { type: i3$1.ToastrService }, { type: i2.Router }, { type: undefined, decorators: [{
|
|
18105
18126
|
type: Inject,
|
|
18106
18127
|
args: [APP_ENVIRONMENT]
|
|
18107
18128
|
}] }]; } });
|
|
@@ -18273,7 +18294,6 @@ class DynamicWidgetComponent {
|
|
|
18273
18294
|
return widgetDiv;
|
|
18274
18295
|
}
|
|
18275
18296
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
18276
|
-
let userName = localStorage.getItem('user_name');
|
|
18277
18297
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
18278
18298
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
18279
18299
|
const dynamicComponentInstance = this.CompRefs.instance;
|
|
@@ -18307,7 +18327,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
18307
18327
|
}] } });
|
|
18308
18328
|
|
|
18309
18329
|
class KpiWithDataSetTestComponent {
|
|
18310
|
-
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, chatApiService) {
|
|
18330
|
+
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, chatApiService, storage) {
|
|
18311
18331
|
this.commonService = commonService;
|
|
18312
18332
|
this.activatedRoute = activatedRoute;
|
|
18313
18333
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -18317,6 +18337,7 @@ class KpiWithDataSetTestComponent {
|
|
|
18317
18337
|
this.router = router;
|
|
18318
18338
|
this.datasetService = datasetService;
|
|
18319
18339
|
this.chatApiService = chatApiService;
|
|
18340
|
+
this.storage = storage;
|
|
18320
18341
|
this.dashbord_container = [];
|
|
18321
18342
|
this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
|
|
18322
18343
|
this.page_title = 'Dashboard';
|
|
@@ -18356,6 +18377,9 @@ class KpiWithDataSetTestComponent {
|
|
|
18356
18377
|
this.havingDataObject = {};
|
|
18357
18378
|
this.globalDefaultFilter = {};
|
|
18358
18379
|
this.defaultViewIds = [];
|
|
18380
|
+
this.defaultViewIdsOnPageRefresh = [];
|
|
18381
|
+
this.defaultMatchedFilters = { operationFilter: { startDate: "", endDate: "" } };
|
|
18382
|
+
this.isDefaultFilterParams = false;
|
|
18359
18383
|
}
|
|
18360
18384
|
ngOnInit() {
|
|
18361
18385
|
this.service.getlistKpiBrowser().subscribe({
|
|
@@ -18417,6 +18441,7 @@ class KpiWithDataSetTestComponent {
|
|
|
18417
18441
|
getComponentConfigSet() {
|
|
18418
18442
|
let dataset = this.service.getAppDatasetConfigs();
|
|
18419
18443
|
let viewComponent = this.service.getAppViewConfigs();
|
|
18444
|
+
this.defaultViewIds = [];
|
|
18420
18445
|
forkJoin({
|
|
18421
18446
|
datasetConfig: dataset,
|
|
18422
18447
|
viewConfig: viewComponent
|
|
@@ -18512,10 +18537,10 @@ class KpiWithDataSetTestComponent {
|
|
|
18512
18537
|
});
|
|
18513
18538
|
}
|
|
18514
18539
|
});
|
|
18515
|
-
|
|
18540
|
+
this.defaultViewIds = this.defaultViewIds.concat(this.defaultViewIdsOnPageRefresh.filter((item) => this.defaultViewIds.indexOf(item) < 0));
|
|
18516
18541
|
viewIds.forEach(element => {
|
|
18517
18542
|
let obj = {
|
|
18518
|
-
"filters": JSON.parse(JSON.stringify(defaultFilters)),
|
|
18543
|
+
"filters": (this.isDefaultFilterParams) ? JSON.parse(JSON.stringify(this.defaultMatchedFilters)) : JSON.parse(JSON.stringify(defaultFilters)),
|
|
18519
18544
|
"keyToPass": [],
|
|
18520
18545
|
"drillDownType": "natural",
|
|
18521
18546
|
"drilldownFrom": ""
|
|
@@ -18525,12 +18550,11 @@ class KpiWithDataSetTestComponent {
|
|
|
18525
18550
|
let obj = {
|
|
18526
18551
|
widgetId: widget.widgetId,
|
|
18527
18552
|
pageId: widget.pageId,
|
|
18528
|
-
filters: defaultFilters,
|
|
18553
|
+
filters: (this.isDefaultFilterParams) ? this.defaultMatchedFilters : defaultFilters,
|
|
18529
18554
|
datasetIds: datasetIds
|
|
18530
18555
|
};
|
|
18531
18556
|
this.allWidgetByDataset.push(obj);
|
|
18532
18557
|
});
|
|
18533
|
-
console.log(this.stateDataSource);
|
|
18534
18558
|
this.uniqueDataSetObject = {};
|
|
18535
18559
|
let apiCalls = [];
|
|
18536
18560
|
this.allWidgetByDataset.forEach(view => {
|
|
@@ -18757,7 +18781,7 @@ class KpiWithDataSetTestComponent {
|
|
|
18757
18781
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
18758
18782
|
}
|
|
18759
18783
|
loadFilterComponent(indexObj, containerElement, filterItems, context_filter) {
|
|
18760
|
-
let userName =
|
|
18784
|
+
let userName = this.storage.get('user_name');
|
|
18761
18785
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
18762
18786
|
const componentClass = this.componentClassMap['AppAdvanceHeaderComponent'];
|
|
18763
18787
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -18784,7 +18808,6 @@ class KpiWithDataSetTestComponent {
|
|
|
18784
18808
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
18785
18809
|
}
|
|
18786
18810
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
18787
|
-
let userName = localStorage.getItem('user_name');
|
|
18788
18811
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
18789
18812
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
18790
18813
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -18882,10 +18905,9 @@ class KpiWithDataSetTestComponent {
|
|
|
18882
18905
|
const stateData = Array.from(this.stateDataSource.keys());
|
|
18883
18906
|
const currentViewIndex = stateData.indexOf(event.viewId);
|
|
18884
18907
|
const deletedViewIds = [];
|
|
18908
|
+
console.log(this.defaultViewIds, "default view");
|
|
18885
18909
|
for (let i = currentViewIndex + 1; i < stateData.length; i++) {
|
|
18886
|
-
|
|
18887
|
-
deletedViewIds.push(stateData[i]);
|
|
18888
|
-
}
|
|
18910
|
+
deletedViewIds.push(stateData[i]);
|
|
18889
18911
|
}
|
|
18890
18912
|
const hourlyNode = this.dashBoardWidgetConfig.widgets
|
|
18891
18913
|
.map(widget => widget.widgetNode.find(node => this.getHourlyData(node)))
|
|
@@ -19007,7 +19029,6 @@ class KpiWithDataSetTestComponent {
|
|
|
19007
19029
|
this.scrollToBottom(this.mainPageDivElement);
|
|
19008
19030
|
}, 200);
|
|
19009
19031
|
});
|
|
19010
|
-
console.log(this.stateDataSource);
|
|
19011
19032
|
}
|
|
19012
19033
|
async getModalViewByRowCLick(event, view) {
|
|
19013
19034
|
let apiCalls = [];
|
|
@@ -19047,6 +19068,7 @@ class KpiWithDataSetTestComponent {
|
|
|
19047
19068
|
let appliedFilters = this.getSetOperatorFilter(event, this.stateDataSource.get(event.viewId));
|
|
19048
19069
|
view.compConfig.viewConfig.forEach(contentView => {
|
|
19049
19070
|
let found = this.dataSetModal.find(d => d.datasetId === contentView.datasetId);
|
|
19071
|
+
let queryParams = this.getFiltersForQueryParams(appliedFilters, found.config.queryConfig.mapedFilters);
|
|
19050
19072
|
if (found) {
|
|
19051
19073
|
apiCalls.push(this.datasetService.getDataFromDataSet(found, contentView.datasetId, appliedFilters));
|
|
19052
19074
|
chatApiCall.push(this.chatApiService.getDataForChatAi(this.pageId, contentView, appliedFilters));
|
|
@@ -19072,12 +19094,28 @@ class KpiWithDataSetTestComponent {
|
|
|
19072
19094
|
setTimeout(() => {
|
|
19073
19095
|
this.scrollToBottom(this.mainPageDivElement);
|
|
19074
19096
|
}, 200);
|
|
19075
|
-
|
|
19076
|
-
|
|
19077
|
-
|
|
19097
|
+
}
|
|
19098
|
+
getFiltersForQueryParams(operators, filters) {
|
|
19099
|
+
debugger;
|
|
19100
|
+
const operationFilter = operators.operationFilter || {};
|
|
19101
|
+
const currentParams = this.activatedRoute.snapshot.queryParams;
|
|
19102
|
+
const newParams = {};
|
|
19103
|
+
const defaultViewsKeyToPass = [];
|
|
19104
|
+
filters.forEach(filter => {
|
|
19105
|
+
const localKey = filter.localColumn;
|
|
19106
|
+
const serverKey = filter.serverColumn;
|
|
19107
|
+
let value = operationFilter[localKey];
|
|
19108
|
+
if (value !== undefined && value !== "") {
|
|
19109
|
+
newParams[serverKey] = value;
|
|
19110
|
+
defaultViewsKeyToPass.push(localKey);
|
|
19111
|
+
}
|
|
19112
|
+
});
|
|
19113
|
+
const mergedParams = { ...currentParams, ...newParams };
|
|
19114
|
+
const navigation = {
|
|
19115
|
+
queryParams: mergedParams,
|
|
19116
|
+
queryParamsHandling: 'merge'
|
|
19078
19117
|
};
|
|
19079
19118
|
this.router.navigate([], navigation);
|
|
19080
|
-
console.log(this.stateDataSource);
|
|
19081
19119
|
}
|
|
19082
19120
|
scrollToBottom(container) {
|
|
19083
19121
|
setTimeout(() => {
|
|
@@ -19239,7 +19277,6 @@ class KpiWithDataSetTestComponent {
|
|
|
19239
19277
|
});
|
|
19240
19278
|
}
|
|
19241
19279
|
async loadDataByOperator(opName) {
|
|
19242
|
-
console.log(opName);
|
|
19243
19280
|
let filter = { operationFilter: { startDate: "", endDate: "", operator_key: "" } };
|
|
19244
19281
|
filter.operationFilter['startDate'] = this.defaultStartDate;
|
|
19245
19282
|
filter.operationFilter['endDate'] = this.defaultEndDate;
|
|
@@ -19311,12 +19348,12 @@ class KpiWithDataSetTestComponent {
|
|
|
19311
19348
|
}
|
|
19312
19349
|
}
|
|
19313
19350
|
}
|
|
19314
|
-
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 });
|
|
19351
|
+
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 });
|
|
19315
19352
|
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"] }] });
|
|
19316
19353
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithDataSetTestComponent, decorators: [{
|
|
19317
19354
|
type: Component,
|
|
19318
19355
|
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"] }]
|
|
19319
|
-
}], 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: [{
|
|
19356
|
+
}], 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: [{
|
|
19320
19357
|
type: ViewChild,
|
|
19321
19358
|
args: ['dynamicComponentContainer', { read: ViewContainerRef }]
|
|
19322
19359
|
}], containerRef: [{
|
|
@@ -19607,7 +19644,6 @@ class DynamicWidgetForMultilayoutComponent {
|
|
|
19607
19644
|
return widgetDiv;
|
|
19608
19645
|
}
|
|
19609
19646
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
19610
|
-
let userName = localStorage.getItem('user_name');
|
|
19611
19647
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
19612
19648
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
19613
19649
|
const dynamicComponentInstance = this.CompRefs.instance;
|
|
@@ -19998,7 +20034,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
19998
20034
|
}] }]; } });
|
|
19999
20035
|
|
|
20000
20036
|
class KpiWithMultilayoutSetTestComponent {
|
|
20001
|
-
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService) {
|
|
20037
|
+
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage) {
|
|
20002
20038
|
this.commonService = commonService;
|
|
20003
20039
|
this.activatedRoute = activatedRoute;
|
|
20004
20040
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -20007,6 +20043,7 @@ class KpiWithMultilayoutSetTestComponent {
|
|
|
20007
20043
|
this.toastr = toastr;
|
|
20008
20044
|
this.router = router;
|
|
20009
20045
|
this.datasetService = datasetService;
|
|
20046
|
+
this.storage = storage;
|
|
20010
20047
|
this.dashbord_container = [];
|
|
20011
20048
|
this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
|
|
20012
20049
|
this.page_title = 'Dashboard';
|
|
@@ -20413,7 +20450,7 @@ class KpiWithMultilayoutSetTestComponent {
|
|
|
20413
20450
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
20414
20451
|
}
|
|
20415
20452
|
loadFilterComponent(indexObj, containerElement, filterItems, context_filter) {
|
|
20416
|
-
let userName =
|
|
20453
|
+
let userName = this.storage.get('user_name');
|
|
20417
20454
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
20418
20455
|
const componentClass = this.componentClassMap['AppAdvanceHeaderComponent'];
|
|
20419
20456
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -20440,7 +20477,6 @@ class KpiWithMultilayoutSetTestComponent {
|
|
|
20440
20477
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
20441
20478
|
}
|
|
20442
20479
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
20443
|
-
let userName = localStorage.getItem('user_name');
|
|
20444
20480
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
20445
20481
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
20446
20482
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -20947,12 +20983,12 @@ class KpiWithMultilayoutSetTestComponent {
|
|
|
20947
20983
|
}
|
|
20948
20984
|
}
|
|
20949
20985
|
}
|
|
20950
|
-
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 });
|
|
20986
|
+
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 });
|
|
20951
20987
|
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"] }] });
|
|
20952
20988
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KpiWithMultilayoutSetTestComponent, decorators: [{
|
|
20953
20989
|
type: Component,
|
|
20954
20990
|
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" }]
|
|
20955
|
-
}], 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: [{
|
|
20991
|
+
}], 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: [{
|
|
20956
20992
|
type: ViewChild,
|
|
20957
20993
|
args: ['dynamicComponentContainer', { read: ViewContainerRef }]
|
|
20958
20994
|
}], containerRef: [{
|
|
@@ -21577,7 +21613,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
21577
21613
|
}] }]; } });
|
|
21578
21614
|
|
|
21579
21615
|
class LandingComponentComponent {
|
|
21580
|
-
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService) {
|
|
21616
|
+
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage) {
|
|
21581
21617
|
this.commonService = commonService;
|
|
21582
21618
|
this.activatedRoute = activatedRoute;
|
|
21583
21619
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -21586,6 +21622,7 @@ class LandingComponentComponent {
|
|
|
21586
21622
|
this.toastr = toastr;
|
|
21587
21623
|
this.router = router;
|
|
21588
21624
|
this.datasetService = datasetService;
|
|
21625
|
+
this.storage = storage;
|
|
21589
21626
|
this.dashbord_container = [];
|
|
21590
21627
|
this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
|
|
21591
21628
|
this.page_title = 'Dashboard';
|
|
@@ -21975,7 +22012,7 @@ class LandingComponentComponent {
|
|
|
21975
22012
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
21976
22013
|
}
|
|
21977
22014
|
loadFilterComponent(indexObj, containerElement, filterItems, context_filter) {
|
|
21978
|
-
let userName =
|
|
22015
|
+
let userName = this.storage.get('user_name');
|
|
21979
22016
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
21980
22017
|
const componentClass = this.componentClassMap['AppAdvanceHeaderComponent'];
|
|
21981
22018
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -21996,7 +22033,6 @@ class LandingComponentComponent {
|
|
|
21996
22033
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
21997
22034
|
}
|
|
21998
22035
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
21999
|
-
let userName = localStorage.getItem('user_name');
|
|
22000
22036
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
22001
22037
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
22002
22038
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -22412,12 +22448,12 @@ class LandingComponentComponent {
|
|
|
22412
22448
|
});
|
|
22413
22449
|
}
|
|
22414
22450
|
}
|
|
22415
|
-
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 });
|
|
22451
|
+
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 });
|
|
22416
22452
|
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" }] });
|
|
22417
22453
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: LandingComponentComponent, decorators: [{
|
|
22418
22454
|
type: Component,
|
|
22419
22455
|
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>" }]
|
|
22420
|
-
}], 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: [{
|
|
22456
|
+
}], 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: [{
|
|
22421
22457
|
type: ViewChild,
|
|
22422
22458
|
args: ['dynamicComponentContainer', { read: ViewContainerRef }]
|
|
22423
22459
|
}], containerRef: [{
|
|
@@ -23038,7 +23074,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
23038
23074
|
}] }]; } });
|
|
23039
23075
|
|
|
23040
23076
|
class BookmarkedTemplateComponent {
|
|
23041
|
-
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService) {
|
|
23077
|
+
constructor(commonService, activatedRoute, viewContainerRef, componentFactoryResolver, service, toastr, router, datasetService, storage) {
|
|
23042
23078
|
this.commonService = commonService;
|
|
23043
23079
|
this.activatedRoute = activatedRoute;
|
|
23044
23080
|
this.viewContainerRef = viewContainerRef;
|
|
@@ -23047,6 +23083,7 @@ class BookmarkedTemplateComponent {
|
|
|
23047
23083
|
this.toastr = toastr;
|
|
23048
23084
|
this.router = router;
|
|
23049
23085
|
this.datasetService = datasetService;
|
|
23086
|
+
this.storage = storage;
|
|
23050
23087
|
this.dashbord_container = [];
|
|
23051
23088
|
this.widget_width = ['w-full', 'w-1/2', 'w-1/3', 'w-1/4', 'w-1/5', 'w-1/6'];
|
|
23052
23089
|
this.page_title = 'Dashboard';
|
|
@@ -23421,7 +23458,7 @@ class BookmarkedTemplateComponent {
|
|
|
23421
23458
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
23422
23459
|
}
|
|
23423
23460
|
loadFilterComponent(indexObj, containerElement, filterItems) {
|
|
23424
|
-
let userName =
|
|
23461
|
+
let userName = this.storage.get('user_name');
|
|
23425
23462
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
23426
23463
|
const componentClass = this.componentClassMap['AppAdvanceHeaderComponent'];
|
|
23427
23464
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -23441,7 +23478,6 @@ class BookmarkedTemplateComponent {
|
|
|
23441
23478
|
containerElement.appendChild(this.CompRefs.location.nativeElement);
|
|
23442
23479
|
}
|
|
23443
23480
|
loadWidgetFilterComponent(indexObj, containerElement, filterItems, viewIds) {
|
|
23444
|
-
let userName = localStorage.getItem('user_name');
|
|
23445
23481
|
let selectedDates = { startDate: this.defaultStartDate, endDate: this.defaultEndDate };
|
|
23446
23482
|
const componentClass = this.componentClassMap['AdvanceWidgetHeaderFilterComponent'];
|
|
23447
23483
|
this.CompRefs = this.viewContainerRef.createComponent(componentClass);
|
|
@@ -23819,12 +23855,12 @@ class BookmarkedTemplateComponent {
|
|
|
23819
23855
|
});
|
|
23820
23856
|
}
|
|
23821
23857
|
}
|
|
23822
|
-
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 });
|
|
23858
|
+
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 });
|
|
23823
23859
|
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" }] });
|
|
23824
23860
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BookmarkedTemplateComponent, decorators: [{
|
|
23825
23861
|
type: Component,
|
|
23826
23862
|
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>" }]
|
|
23827
|
-
}], 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: [{
|
|
23863
|
+
}], 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: [{
|
|
23828
23864
|
type: ViewChild,
|
|
23829
23865
|
args: ['dynamicComponentContainer', { read: ViewContainerRef }]
|
|
23830
23866
|
}], containerRef: [{
|
|
@@ -23972,5 +24008,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
23972
24008
|
}]
|
|
23973
24009
|
}] });
|
|
23974
24010
|
|
|
23975
|
-
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 };
|
|
24011
|
+
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 };
|
|
23976
24012
|
//# sourceMappingURL=gamma-app-controller.mjs.map
|