vc-create-dashboard 3.0.80 → 3.0.81
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/esm2022/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.mjs +16 -223
- package/esm2022/lib/create-dashboard-container/configure-widgets/configure-widgets/widget.interface.mjs +1 -1
- package/esm2022/lib/create-dashboard-container/constants/assets.constant.mjs +1 -1
- package/esm2022/lib/create-dashboard-container/create-dashboard.component.mjs +177 -343
- package/esm2022/lib/create-dashboard-container/create-dashboard.module.mjs +7 -3
- package/esm2022/lib/create-dashboard-container/pipes/search-progra.pipe.mjs +37 -0
- package/esm2022/lib/create-dashboard-container/program-list/constant.mjs +31 -0
- package/esm2022/lib/create-dashboard-container/program-list/information-block/information-block.component.mjs +13 -0
- package/esm2022/lib/create-dashboard-container/program-list/interfaces/list-item.interface.mjs +2 -0
- package/esm2022/lib/create-dashboard-container/program-list/list-container/list-container.component.mjs +50 -0
- package/esm2022/lib/create-dashboard-container/program-list/pipes/check-selected-items.pipes.mjs +23 -0
- package/esm2022/lib/create-dashboard-container/program-list/program-list/program-list.component.mjs +280 -0
- package/esm2022/lib/create-dashboard-container/program-list/program-list.module.mjs +60 -0
- package/esm2022/lib/create-dashboard-container/program-list/services/list-utils.service.mjs +27 -0
- package/esm2022/lib/create-dashboard-container/program-list/services/program-list-api.service.mjs +35 -0
- package/esm2022/lib/create-dashboard-container/services/configure-widgets.service.mjs +80 -72
- package/esm2022/lib/create-dashboard-container/services/create-dashboard.service.mjs +27 -2
- package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +24 -0
- package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +18 -0
- package/fesm2022/vc-create-dashboard.mjs +2302 -2094
- package/fesm2022/vc-create-dashboard.mjs.map +1 -1
- package/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.d.ts +1 -16
- package/lib/create-dashboard-container/configure-widgets/configure-widgets/widget.interface.d.ts +1 -1
- package/lib/create-dashboard-container/create-dashboard.component.d.ts +24 -11
- package/lib/create-dashboard-container/create-dashboard.module.d.ts +2 -1
- package/lib/create-dashboard-container/pipes/search-progra.pipe.d.ts +7 -0
- package/lib/create-dashboard-container/program-list/constant.d.ts +24 -0
- package/lib/create-dashboard-container/program-list/information-block/information-block.component.d.ts +6 -0
- package/lib/create-dashboard-container/program-list/interfaces/list-item.interface.d.ts +5 -0
- package/lib/create-dashboard-container/program-list/list-container/list-container.component.d.ts +9 -0
- package/lib/create-dashboard-container/program-list/pipes/check-selected-items.pipes.d.ts +7 -0
- package/lib/create-dashboard-container/program-list/program-list/program-list.component.d.ts +118 -0
- package/lib/create-dashboard-container/program-list/program-list.module.d.ts +17 -0
- package/lib/create-dashboard-container/program-list/services/list-utils.service.d.ts +7 -0
- package/lib/create-dashboard-container/program-list/services/program-list-api.service.d.ts +14 -0
- package/lib/create-dashboard-container/services/configure-widgets.service.d.ts +1 -16
- package/lib/create-dashboard-container/services/create-dashboard.service.d.ts +18 -0
- package/lib/ui-kit/loaders/loaders.module.d.ts +8 -0
- package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +9 -0
- package/package.json +1 -1
- package/esm2022/lib/create-dashboard-container/services/urlConfig.service.mjs +0 -29
- package/lib/create-dashboard-container/services/urlConfig.service.d.ts +0 -10
|
@@ -96,23 +96,8 @@ export declare class ConfigureWidgetsComponent implements OnInit, OnChanges {
|
|
|
96
96
|
visibility: boolean;
|
|
97
97
|
}[];
|
|
98
98
|
})[];
|
|
99
|
-
RISK: {
|
|
100
|
-
title: string;
|
|
101
|
-
id: string;
|
|
102
|
-
description: string;
|
|
103
|
-
widgetImage: string;
|
|
104
|
-
value: boolean;
|
|
105
|
-
visibility: boolean;
|
|
106
|
-
module: string;
|
|
107
|
-
subWidgets: {
|
|
108
|
-
title: string;
|
|
109
|
-
id: string;
|
|
110
|
-
value: boolean;
|
|
111
|
-
visibility: boolean;
|
|
112
|
-
}[];
|
|
113
|
-
}[];
|
|
114
99
|
};
|
|
115
|
-
selectWidget(event: any, module: 'COMPLIANCE'
|
|
100
|
+
selectWidget(event: any, module: 'COMPLIANCE', widgetId: string, subWidgetId?: string): void;
|
|
116
101
|
setSelectedWidgets(): void;
|
|
117
102
|
removeWidget(widget: widgetConfig): void;
|
|
118
103
|
onNextClick(): void;
|
|
@@ -9,6 +9,7 @@ import { SnackBarService } from '../ui-kit/snack-bar/snack-bar.service';
|
|
|
9
9
|
import { ConfigureWidgetsService } from './services/configure-widgets.service';
|
|
10
10
|
import { PopoverService } from '../ui-kit/popover/popover.service';
|
|
11
11
|
import { TextCountPipe } from './pipes/text-count.pipe';
|
|
12
|
+
import { ListItem } from './program-list/interfaces/list-item.interface';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class CreateDashboardComponent implements OnInit, OnChanges {
|
|
14
15
|
private createDashboardService;
|
|
@@ -23,6 +24,8 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
|
|
|
23
24
|
disabled: boolean;
|
|
24
25
|
mode: string;
|
|
25
26
|
dashboardId: string;
|
|
27
|
+
/** API dashboard object from createDashboard response (used when navigating after create). */
|
|
28
|
+
private createdDashboard;
|
|
26
29
|
close: EventEmitter<any>;
|
|
27
30
|
createdBy: number;
|
|
28
31
|
fromDatePicker: DatePickerComponent;
|
|
@@ -77,6 +80,8 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
|
|
|
77
80
|
selectedList: never[];
|
|
78
81
|
};
|
|
79
82
|
};
|
|
83
|
+
programListUrl: any;
|
|
84
|
+
programSelections: Record<string, any[]>;
|
|
80
85
|
fromDatePickerConfig: IDatePickerConfig;
|
|
81
86
|
toDatePickerConfig: IDatePickerConfig;
|
|
82
87
|
isSmiley: boolean;
|
|
@@ -87,16 +92,29 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
|
|
|
87
92
|
fromDatePickerPopup: ElementRef;
|
|
88
93
|
toDatePickerPopup: ElementRef;
|
|
89
94
|
openedDatePicker: string;
|
|
95
|
+
selectedPrograms: any;
|
|
96
|
+
allProgamSelected: any[];
|
|
90
97
|
constructor(createDashboardService: CreateDashboardService, paginationService: PaginationService, cdr: ChangeDetectorRef, snackBar: SnackBarService, popoverService: PopoverService, configureWidgetsService: ConfigureWidgetsService, textCount: TextCountPipe);
|
|
91
98
|
ngOnChanges(): void;
|
|
92
99
|
onKeydownHandler(event: KeyboardEvent): void;
|
|
93
100
|
ngOnInit(): void;
|
|
101
|
+
animateContainer(): void;
|
|
102
|
+
getUserInfo(): void;
|
|
94
103
|
/**
|
|
95
104
|
* Displays the listing pages the left side of policy form to set and edit the dropdown fields values
|
|
96
105
|
* @param type holds name of particular list is to be displayed
|
|
97
106
|
* @param event contains boolean value to display the list or not
|
|
98
107
|
*/
|
|
99
108
|
activateSelector(type: any, event: boolean): void;
|
|
109
|
+
onProgramSelectionChange(items: ListItem[]): void;
|
|
110
|
+
activeDeselector(): void;
|
|
111
|
+
selectCategory(): void;
|
|
112
|
+
checkDefaultProgramOnRemove(event: any): void;
|
|
113
|
+
removeProgram(program: any): void;
|
|
114
|
+
private getProgramSelectionMap;
|
|
115
|
+
private flattenProgramSelectionMap;
|
|
116
|
+
private normalizeProgramCategories;
|
|
117
|
+
private applyResponsibilityCategoryWidgetFilters;
|
|
100
118
|
openFromDatePicker(): void;
|
|
101
119
|
openToDatePicker(): void;
|
|
102
120
|
closeFromDatePicker(): void;
|
|
@@ -107,25 +125,17 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
|
|
|
107
125
|
setToDate(data: string): string;
|
|
108
126
|
getFromDate(data: string): string;
|
|
109
127
|
/**
|
|
110
|
-
*
|
|
111
|
-
* @
|
|
112
|
-
* @returns A string in the format of YYYY-MM-DD
|
|
128
|
+
* @param data - the date you want to format
|
|
129
|
+
* @returns Date string in YYYY-MM-DD format, e.g. 2026-05-19
|
|
113
130
|
*/
|
|
114
131
|
getDateFormate(data: string): string;
|
|
115
132
|
configureDashboard(): void;
|
|
116
|
-
/**
|
|
117
|
-
* Fetches organization users count api to get total number of pages
|
|
118
|
-
* @param Url contains prams
|
|
119
|
-
*/
|
|
120
|
-
getOrganizationUsersCount(Url: any): void;
|
|
121
133
|
/**
|
|
122
134
|
* Get users list by making api call and pre selects all admins by adding to viewers
|
|
123
135
|
* @param url contains query params for organization users api
|
|
124
136
|
*/
|
|
125
137
|
getUsersList(url: any): void;
|
|
126
138
|
getGroupList(): void;
|
|
127
|
-
getComplianceCategoryList(): void;
|
|
128
|
-
getCategoryList(): void;
|
|
129
139
|
/**
|
|
130
140
|
* It is to ensure whether all required lists on Policy from is loaded from the api call or not
|
|
131
141
|
*/
|
|
@@ -167,9 +177,12 @@ export declare class CreateDashboardComponent implements OnInit, OnChanges {
|
|
|
167
177
|
* @param dashboard contains dashboardForm data
|
|
168
178
|
*/
|
|
169
179
|
submitDashboard(): false | undefined;
|
|
180
|
+
closeContainer(message: string): void;
|
|
181
|
+
onSubmitDashboard(): void;
|
|
182
|
+
saveDashboard(payload: any): void;
|
|
183
|
+
private getCreatedDashboardCdid;
|
|
170
184
|
editDashboard(): void;
|
|
171
185
|
populateDashboardForm(data: any): void;
|
|
172
|
-
setFrequency(event: any, mode: any): string | undefined;
|
|
173
186
|
ngAfterViewChecked(): void;
|
|
174
187
|
setPermission(roleActions: any): void;
|
|
175
188
|
getElementClassName(el: any): string;
|
|
@@ -28,9 +28,10 @@ import * as i24 from "../ui-kit/no-data/no-data.module";
|
|
|
28
28
|
import * as i25 from "./directives/directives.module";
|
|
29
29
|
import * as i26 from "../ui-kit/smiley-dialog/smiley-dialog.module";
|
|
30
30
|
import * as i27 from "ng2-date-picker";
|
|
31
|
+
import * as i28 from "./program-list/program-list.module";
|
|
31
32
|
export declare class CreateDashboardModule {
|
|
32
33
|
static forRoot(environmentConfig: Configurations): ModuleWithProviders<CreateDashboardModule>;
|
|
33
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateDashboardModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CreateDashboardModule, [typeof i1.CreateDashboardComponent, typeof i2.UserListComponent, typeof i3.FormGroupComponent, typeof i4.ResponsibilityCenterComponent, typeof i5.CategoriesComponent, typeof i6.RiskCategoriesComponent, typeof i7.FrequencyComponent, typeof i8.FilterPipe, typeof i9.TextCountPipe], [typeof i10.CommonModule, typeof i11.VcomplyEditorModule, typeof i12.FormgroupModule, typeof i13.FormsModule, typeof i14.TooltipModule, typeof i15.SelectModule, typeof i16.DashboardFooterModule, typeof i17.PaginationModule, typeof i18.FloatingBarModule, typeof i19.DialogModule, typeof i20.ConfigureWidgetsModule, typeof i21.PopoverModule, typeof i22.VLoaderModule, typeof i23.SnackBarModule, typeof i24.NoDataModule, typeof i25.DirectivesModule, typeof i26.SmileyDialogModule, typeof i27.DpDatePickerModule, typeof i10.NgOptimizedImage], [typeof i1.CreateDashboardComponent]>;
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CreateDashboardModule, [typeof i1.CreateDashboardComponent, typeof i2.UserListComponent, typeof i3.FormGroupComponent, typeof i4.ResponsibilityCenterComponent, typeof i5.CategoriesComponent, typeof i6.RiskCategoriesComponent, typeof i7.FrequencyComponent, typeof i8.FilterPipe, typeof i9.TextCountPipe], [typeof i10.CommonModule, typeof i11.VcomplyEditorModule, typeof i12.FormgroupModule, typeof i13.FormsModule, typeof i14.TooltipModule, typeof i15.SelectModule, typeof i16.DashboardFooterModule, typeof i17.PaginationModule, typeof i18.FloatingBarModule, typeof i19.DialogModule, typeof i20.ConfigureWidgetsModule, typeof i21.PopoverModule, typeof i22.VLoaderModule, typeof i23.SnackBarModule, typeof i24.NoDataModule, typeof i25.DirectivesModule, typeof i26.SmileyDialogModule, typeof i27.DpDatePickerModule, typeof i10.NgOptimizedImage, typeof i28.ProgramListModule], [typeof i1.CreateDashboardComponent]>;
|
|
35
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<CreateDashboardModule>;
|
|
36
37
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SearchProgramPipe implements PipeTransform {
|
|
4
|
+
transform(items: any[], ...args: any[]): any[];
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchProgramPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SearchProgramPipe, "searchProgram", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const PROGRAM_TABLE_HEADERS: string[];
|
|
2
|
+
export declare const PAGINATION_OPTIONS: {
|
|
3
|
+
PAGE_SIZE: number;
|
|
4
|
+
DEFAULT_CURRENT_PAGE: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const PROGRAM_TYPE_LIST: {
|
|
7
|
+
name: string;
|
|
8
|
+
id: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const PROGRAM_OBJECT: {
|
|
11
|
+
regulations: number;
|
|
12
|
+
standards: number;
|
|
13
|
+
internal_controls: number;
|
|
14
|
+
others: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const PROGRAM_NO_DATA: {
|
|
17
|
+
programList: string;
|
|
18
|
+
categoryList: string;
|
|
19
|
+
search: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const PROGRAM_LIST_API: {
|
|
22
|
+
programList: string;
|
|
23
|
+
categoryList: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class InformationBlockComponent {
|
|
3
|
+
constructor();
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InformationBlockComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InformationBlockComponent, "app-information-block", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
package/lib/create-dashboard-container/program-list/list-container/list-container.component.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ListContainerComponent {
|
|
4
|
+
heading: string;
|
|
5
|
+
close: EventEmitter<void>;
|
|
6
|
+
onClose(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListContainerComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListContainerComponent, "app-list-container", never, { "heading": { "alias": "heading"; "required": false; }; }, { "close": "close"; }, never, ["[body]", "[footer]"], false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CheckSelectedItemsPipe implements PipeTransform {
|
|
4
|
+
transform(id: string, selectedItems: any): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckSelectedItemsPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CheckSelectedItemsPipe, "checkSelectedItems", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ListItem } from '../interfaces/list-item.interface';
|
|
3
|
+
import { ListUtilsService } from '../services/list-utils.service';
|
|
4
|
+
import { ProgramListApiService } from '../services/program-list-api.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ProgramListComponent<T extends ListItem> implements OnInit, OnChanges, OnDestroy {
|
|
7
|
+
private listUtils;
|
|
8
|
+
private programListApiService;
|
|
9
|
+
/** Array of items to be displayed in the list */
|
|
10
|
+
items: T[];
|
|
11
|
+
/** Object containing selected items, keyed by program ID */
|
|
12
|
+
selectedItems: any | null;
|
|
13
|
+
/** URL configuration object for API endpoints */
|
|
14
|
+
url: any;
|
|
15
|
+
/** Event emitted when an item is selected */
|
|
16
|
+
itemSelected: EventEmitter<T>;
|
|
17
|
+
/** Event emitted when an item is deselected */
|
|
18
|
+
itemDeselected: EventEmitter<T>;
|
|
19
|
+
/** Event emitted when the selection changes */
|
|
20
|
+
itemsSelectedChange: EventEmitter<T[]>;
|
|
21
|
+
tableHeaders: string[];
|
|
22
|
+
currentPage: number;
|
|
23
|
+
pageSize: number;
|
|
24
|
+
totalPages: number;
|
|
25
|
+
searchTerm: string;
|
|
26
|
+
paginatedItems: T[];
|
|
27
|
+
activeProgram: any | null;
|
|
28
|
+
categoryList: any;
|
|
29
|
+
programTypeList: any[];
|
|
30
|
+
selectedProgramType: any[];
|
|
31
|
+
loaderState: any;
|
|
32
|
+
appliedProgramType: any[];
|
|
33
|
+
PROGRAM_NO_DATA: any;
|
|
34
|
+
ASSETS: any;
|
|
35
|
+
programCategoryList: any;
|
|
36
|
+
/** Subject for handling debounced search */
|
|
37
|
+
private searchSubject;
|
|
38
|
+
/** Subject for cleanup subscriptions */
|
|
39
|
+
private destroy$;
|
|
40
|
+
constructor(listUtils: ListUtilsService, programListApiService: ProgramListApiService);
|
|
41
|
+
/** Initialize component by fetching program list */
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
/** Handle changes to inputs */
|
|
44
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
45
|
+
/** Fetch program list from API */
|
|
46
|
+
getProgramList(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Load data and initialize pagination
|
|
49
|
+
* @param data Array of items to load
|
|
50
|
+
*/
|
|
51
|
+
loadData(data: any): void;
|
|
52
|
+
/**
|
|
53
|
+
* Handle item selection/deselection
|
|
54
|
+
* @param event Selection event
|
|
55
|
+
* @param item Item being selected/deselected
|
|
56
|
+
*/
|
|
57
|
+
selectItem(event: any, item: any): void;
|
|
58
|
+
/**
|
|
59
|
+
* Deselect a specific item
|
|
60
|
+
* @param item Item to deselect
|
|
61
|
+
*/
|
|
62
|
+
deselectItem(item: T): void;
|
|
63
|
+
/**
|
|
64
|
+
* Check if an item is selected
|
|
65
|
+
* @param item Item to check
|
|
66
|
+
* @returns Boolean indicating if item is selected
|
|
67
|
+
*/
|
|
68
|
+
isSelected(item: T): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Navigate to specific page
|
|
71
|
+
* @param page Page number to navigate to
|
|
72
|
+
* @param data Data to paginate
|
|
73
|
+
*/
|
|
74
|
+
goToPage(page: number, data: any): void;
|
|
75
|
+
/**
|
|
76
|
+
* Get array of page numbers for pagination
|
|
77
|
+
* @returns Array of page numbers
|
|
78
|
+
*/
|
|
79
|
+
getPageNumbers(): number[];
|
|
80
|
+
/**
|
|
81
|
+
* Paginate items and update view
|
|
82
|
+
* @param data Data to paginate
|
|
83
|
+
*/
|
|
84
|
+
paginateItems(data: any): void;
|
|
85
|
+
/**
|
|
86
|
+
* View categories for a selected program
|
|
87
|
+
* @param item Program to view categories for
|
|
88
|
+
*/
|
|
89
|
+
viewCategory(item?: any): void;
|
|
90
|
+
checkProgramCategoryExists(id: string): void;
|
|
91
|
+
fetchProgramCategoryList(id: string): void;
|
|
92
|
+
/**
|
|
93
|
+
* Add parent tree information to categories
|
|
94
|
+
* @param categories Array of categories
|
|
95
|
+
* @returns Categories with parent tree information
|
|
96
|
+
*/
|
|
97
|
+
addParentTreeToCategories(categories: any[]): any[];
|
|
98
|
+
/**
|
|
99
|
+
* Handle program type filter selection
|
|
100
|
+
* @param event Selection event
|
|
101
|
+
* @param item Program type being selected/deselected
|
|
102
|
+
*/
|
|
103
|
+
selectFilter(event: any, item: any): void;
|
|
104
|
+
/** Reset all applied filters */
|
|
105
|
+
resetFilter(): void;
|
|
106
|
+
/** Apply selected filters to the program list */
|
|
107
|
+
onFilterChange(): void;
|
|
108
|
+
checkCategoryAvailbility(): void;
|
|
109
|
+
/** Trigger debounced search */
|
|
110
|
+
search(): void;
|
|
111
|
+
/** Perform search on items */
|
|
112
|
+
private performSearch;
|
|
113
|
+
/** Cleanup subscriptions on component destruction */
|
|
114
|
+
ngOnDestroy(): void;
|
|
115
|
+
closePopover(event: any): void;
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListComponent<any>, never>;
|
|
117
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProgramListComponent<any>, "app-program-list", never, { "items": { "alias": "items"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "url": { "alias": "url"; "required": false; }; }, { "itemSelected": "itemSelected"; "itemDeselected": "itemDeselected"; "itemsSelectedChange": "itemsSelectedChange"; }, never, never, false, never>;
|
|
118
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./program-list/program-list.component";
|
|
3
|
+
import * as i2 from "./pipes/check-selected-items.pipes";
|
|
4
|
+
import * as i3 from "./list-container/list-container.component";
|
|
5
|
+
import * as i4 from "../pipes/search-progra.pipe";
|
|
6
|
+
import * as i5 from "./information-block/information-block.component";
|
|
7
|
+
import * as i6 from "@angular/common";
|
|
8
|
+
import * as i7 from "@angular/forms";
|
|
9
|
+
import * as i8 from "../../ui-kit/formgroup/formgroup.module";
|
|
10
|
+
import * as i9 from "../../ui-kit/no-data/no-data.module";
|
|
11
|
+
import * as i10 from "../../ui-kit/popover/popover.module";
|
|
12
|
+
import * as i11 from "../../ui-kit/loaders/loaders.module";
|
|
13
|
+
export declare class ProgramListModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ProgramListModule, [typeof i1.ProgramListComponent, typeof i2.CheckSelectedItemsPipe, typeof i3.ListContainerComponent, typeof i4.SearchProgramPipe, typeof i5.InformationBlockComponent], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i8.FormgroupModule, typeof i9.NoDataModule, typeof i10.PopoverModule, typeof i11.LoadersModule], [typeof i1.ProgramListComponent, typeof i3.ListContainerComponent, typeof i5.InformationBlockComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ProgramListModule>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ListUtilsService {
|
|
3
|
+
paginate<T>(items: T[], currentPage: number, pageSize: number): T[];
|
|
4
|
+
getPageNumbers(totalItems: number, pageSize: number): number[];
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListUtilsService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ListUtilsService>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Configurations } from '../../../configurations';
|
|
4
|
+
import { AuthService } from '../../services/auth.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ProgramListApiService {
|
|
7
|
+
private http;
|
|
8
|
+
private authService;
|
|
9
|
+
env: any;
|
|
10
|
+
constructor(http: HttpClient, authService: AuthService, config?: Configurations);
|
|
11
|
+
getProgramList(apiUrl: string): Observable<any>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProgramListApiService, [null, null, { optional: true; }]>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProgramListApiService>;
|
|
14
|
+
}
|
|
@@ -7,21 +7,6 @@ export declare class ConfigureWidgetsService {
|
|
|
7
7
|
private authService;
|
|
8
8
|
env: any;
|
|
9
9
|
constructor(http: HttpClient, authService: AuthService, config?: Configurations);
|
|
10
|
-
complianceWidgetsData: ({
|
|
11
|
-
title: string;
|
|
12
|
-
id: string;
|
|
13
|
-
description: string;
|
|
14
|
-
widgetImage: string;
|
|
15
|
-
value: number;
|
|
16
|
-
tabOption?: undefined;
|
|
17
|
-
} | {
|
|
18
|
-
title: string;
|
|
19
|
-
id: string;
|
|
20
|
-
description: string;
|
|
21
|
-
widgetImage: string;
|
|
22
|
-
tabOption: boolean;
|
|
23
|
-
value: number;
|
|
24
|
-
})[];
|
|
25
10
|
riskWidgetsData: {
|
|
26
11
|
title: string;
|
|
27
12
|
id: string;
|
|
@@ -32,7 +17,7 @@ export declare class ConfigureWidgetsService {
|
|
|
32
17
|
auditWidgetsData: never[];
|
|
33
18
|
policyWidgetsData: never[];
|
|
34
19
|
dashBoardWidgetUpdate(widGetJson: any): import("rxjs").Observable<Object>;
|
|
35
|
-
moduleType(identifier: string): "
|
|
20
|
+
moduleType(identifier: string): "RISK" | undefined;
|
|
36
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigureWidgetsService, [null, null, { optional: true; }]>;
|
|
37
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigureWidgetsService>;
|
|
38
23
|
}
|
|
@@ -40,6 +40,24 @@ export declare class CreateDashboardService {
|
|
|
40
40
|
getUserInformation(): import("rxjs").Observable<ArrayBuffer>;
|
|
41
41
|
_ID(): any;
|
|
42
42
|
checkDuplicateDashboardName(payload: any): import("rxjs").Observable<ArrayBuffer>;
|
|
43
|
+
createDashboard(payload: any): import("rxjs").Observable<ArrayBuffer>;
|
|
44
|
+
saveWidgetDetails(payload: any): import("rxjs").Observable<ArrayBuffer>;
|
|
45
|
+
buildPayload(payload: any): {
|
|
46
|
+
dashboard: {
|
|
47
|
+
name: any;
|
|
48
|
+
description: any;
|
|
49
|
+
viewer: {
|
|
50
|
+
userId: any;
|
|
51
|
+
userGroupId: any;
|
|
52
|
+
};
|
|
53
|
+
responsibilityCenterId: any;
|
|
54
|
+
programId: any;
|
|
55
|
+
timeframe: {
|
|
56
|
+
from: any;
|
|
57
|
+
to: any;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
43
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<CreateDashboardService, [null, null, { optional: true; }]>;
|
|
44
62
|
static ɵprov: i0.ɵɵInjectableDeclaration<CreateDashboardService>;
|
|
45
63
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./table-loader/table-loader.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class LoadersModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadersModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LoadersModule, [typeof i1.TableLoaderComponent], [typeof i2.CommonModule], [typeof i1.TableLoaderComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LoadersModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TableLoaderComponent implements OnInit {
|
|
4
|
+
listSize: number[];
|
|
5
|
+
constructor();
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableLoaderComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableLoaderComponent, "app-table-loader", never, { "listSize": { "alias": "listSize"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vc-create-dashboard",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.81",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x ",
|
|
6
6
|
"@angular/core": " 12.x || 13.x || 14.x || 15.x || 16.x || 17.x || 18.x || 19.x "
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Injectable, Optional } from '@angular/core';
|
|
2
|
-
import { ASSETS } from '../constants/assets.constant';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../../configurations";
|
|
5
|
-
export class ConfigureBaseUrlService {
|
|
6
|
-
ASSETS = ASSETS;
|
|
7
|
-
env;
|
|
8
|
-
constructor(config) {
|
|
9
|
-
if (config) {
|
|
10
|
-
this.env = config?.envConfig;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
updateBaseUrl() {
|
|
14
|
-
Object.keys(this.ASSETS).forEach((key) => {
|
|
15
|
-
this.ASSETS[key] = `${this.env?.cdnUrl}${this.ASSETS[key]}`;
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigureBaseUrlService, deps: [{ token: i1.Configurations, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
19
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigureBaseUrlService, providedIn: 'root' });
|
|
20
|
-
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigureBaseUrlService, decorators: [{
|
|
22
|
-
type: Injectable,
|
|
23
|
-
args: [{
|
|
24
|
-
providedIn: 'root',
|
|
25
|
-
}]
|
|
26
|
-
}], ctorParameters: function () { return [{ type: i1.Configurations, decorators: [{
|
|
27
|
-
type: Optional
|
|
28
|
-
}] }]; } });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsQ29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jcmVhdGUtZGFzaGJvYXJkL3NyYy9saWIvY3JlYXRlLWRhc2hib2FyZC1jb250YWluZXIvc2VydmljZXMvdXJsQ29uZmlnLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFckQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLDhCQUE4QixDQUFDOzs7QUFLdEQsTUFBTSxPQUFPLHVCQUF1QjtJQUNsQyxNQUFNLEdBQVEsTUFBTSxDQUFDO0lBQ2QsR0FBRyxDQUFPO0lBQ2pCLFlBQXdCLE1BQXVCO1FBQzdDLElBQUksTUFBTSxFQUFFO1lBQ1YsSUFBSSxDQUFDLEdBQUcsR0FBRyxNQUFNLEVBQUUsU0FBUyxDQUFDO1NBQzlCO0lBQ0gsQ0FBQztJQUNELGFBQWE7UUFDWCxNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxHQUFHLEVBQUUsRUFBRTtZQUN2QyxJQUFJLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxHQUFHLEdBQUcsSUFBSSxDQUFDLEdBQUcsRUFBRSxNQUFNLEdBQUcsSUFBSSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDO1FBQzlELENBQUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQzt3R0FaVSx1QkFBdUI7NEdBQXZCLHVCQUF1QixjQUZ0QixNQUFNOzs0RkFFUCx1QkFBdUI7a0JBSG5DLFVBQVU7bUJBQUM7b0JBQ1YsVUFBVSxFQUFFLE1BQU07aUJBQ25COzswQkFJYyxRQUFRIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0YWJsZSwgT3B0aW9uYWwgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbmZpZ3VyYXRpb25zIH0gZnJvbSAnLi4vLi4vY29uZmlndXJhdGlvbnMnO1xuaW1wb3J0IHsgQVNTRVRTIH0gZnJvbSAnLi4vY29uc3RhbnRzL2Fzc2V0cy5jb25zdGFudCc7XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnLFxufSlcbmV4cG9ydCBjbGFzcyBDb25maWd1cmVCYXNlVXJsU2VydmljZSB7XG4gIEFTU0VUUzogYW55ID0gQVNTRVRTO1xuICBwdWJsaWMgZW52ITogYW55O1xuICBjb25zdHJ1Y3RvcihAT3B0aW9uYWwoKSBjb25maWc/OiBDb25maWd1cmF0aW9ucykge1xuICAgIGlmIChjb25maWcpIHtcbiAgICAgIHRoaXMuZW52ID0gY29uZmlnPy5lbnZDb25maWc7XG4gICAgfVxuICB9XG4gIHVwZGF0ZUJhc2VVcmwoKSB7XG4gICAgT2JqZWN0LmtleXModGhpcy5BU1NFVFMpLmZvckVhY2goKGtleSkgPT4ge1xuICAgICAgdGhpcy5BU1NFVFNba2V5XSA9IGAke3RoaXMuZW52Py5jZG5Vcmx9JHt0aGlzLkFTU0VUU1trZXldfWA7XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Configurations } from '../../configurations';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ConfigureBaseUrlService {
|
|
4
|
-
ASSETS: any;
|
|
5
|
-
env: any;
|
|
6
|
-
constructor(config?: Configurations);
|
|
7
|
-
updateBaseUrl(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigureBaseUrlService, [{ optional: true; }]>;
|
|
9
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigureBaseUrlService>;
|
|
10
|
-
}
|