vc-create-dashboard 3.0.83 → 3.0.85

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.
Files changed (178) hide show
  1. package/README.md +24 -24
  2. package/esm2022/lib/configurations.mjs +7 -7
  3. package/esm2022/lib/create-dashboard-container/categories/categories-config.mjs +2 -2
  4. package/esm2022/lib/create-dashboard-container/categories/categories.component.mjs +212 -212
  5. package/esm2022/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.mjs +350 -350
  6. package/esm2022/lib/create-dashboard-container/configure-widgets/configure-widgets/widget.interface.mjs +2 -2
  7. package/esm2022/lib/create-dashboard-container/configure-widgets/configure-widgets.module.mjs +47 -47
  8. package/esm2022/lib/create-dashboard-container/constants/assets.constant.mjs +37 -37
  9. package/esm2022/lib/create-dashboard-container/create-dashboard-config.mjs +2 -2
  10. package/esm2022/lib/create-dashboard-container/create-dashboard.component.mjs +1601 -1520
  11. package/esm2022/lib/create-dashboard-container/create-dashboard.module.mjs +127 -127
  12. package/esm2022/lib/create-dashboard-container/directives/directives.module.mjs +24 -24
  13. package/esm2022/lib/create-dashboard-container/directives/scroll-in-view.directive.mjs +36 -36
  14. package/esm2022/lib/create-dashboard-container/form-group/form-group.component.mjs +153 -153
  15. package/esm2022/lib/create-dashboard-container/frequency/frequency.component.mjs +309 -309
  16. package/esm2022/lib/create-dashboard-container/interfaces/widget-data-model.mjs +2 -2
  17. package/esm2022/lib/create-dashboard-container/pipes/filter.pipe.mjs +30 -30
  18. package/esm2022/lib/create-dashboard-container/pipes/search-program.pipe.mjs +37 -37
  19. package/esm2022/lib/create-dashboard-container/pipes/search.pipe.mjs +25 -25
  20. package/esm2022/lib/create-dashboard-container/pipes/text-count.pipe.mjs +18 -19
  21. package/esm2022/lib/create-dashboard-container/program-list/constant.mjs +31 -31
  22. package/esm2022/lib/create-dashboard-container/program-list/information-block/information-block.component.mjs +13 -13
  23. package/esm2022/lib/create-dashboard-container/program-list/interfaces/list-item.interface.mjs +2 -2
  24. package/esm2022/lib/create-dashboard-container/program-list/list-container/list-container.component.mjs +50 -50
  25. package/esm2022/lib/create-dashboard-container/program-list/pipes/check-selected-items.pipes.mjs +23 -23
  26. package/esm2022/lib/create-dashboard-container/program-list/program-list/program-list.component.mjs +294 -294
  27. package/esm2022/lib/create-dashboard-container/program-list/program-list.module.mjs +60 -60
  28. package/esm2022/lib/create-dashboard-container/program-list/services/list-utils.service.mjs +27 -27
  29. package/esm2022/lib/create-dashboard-container/program-list/services/program-list-api.service.mjs +28 -35
  30. package/esm2022/lib/create-dashboard-container/responsibility-center/responsibility-center.component.mjs +224 -149
  31. package/esm2022/lib/create-dashboard-container/risk-categories/risk-categories-config.mjs +2 -2
  32. package/esm2022/lib/create-dashboard-container/risk-categories/risk-categories.component.mjs +206 -206
  33. package/esm2022/lib/create-dashboard-container/services/configure-widgets.service.mjs +233 -238
  34. package/esm2022/lib/create-dashboard-container/services/create-dashboard.service.mjs +227 -243
  35. package/esm2022/lib/create-dashboard-container/services/pagination.service.mjs +28 -28
  36. package/esm2022/lib/create-dashboard-container/user-list/user-list.component.mjs +440 -440
  37. package/esm2022/lib/create-dashboard-container/user-list/user-list.config.mjs +2 -2
  38. package/esm2022/lib/create-dashboard-container/utils/dashboard-edit.utils.mjs +181 -181
  39. package/esm2022/lib/create-dashboard.service.mjs +14 -14
  40. package/esm2022/lib/ui-kit/dashboard-footer/dashboard-footer/dashboard-footer.component.mjs +52 -52
  41. package/esm2022/lib/ui-kit/dashboard-footer/dashboard-footer-config.mjs +2 -2
  42. package/esm2022/lib/ui-kit/dashboard-footer/dashboard-footer.module.mjs +32 -32
  43. package/esm2022/lib/ui-kit/dialog/dialog-config.mjs +7 -7
  44. package/esm2022/lib/ui-kit/dialog/dialog-injector.mjs +17 -17
  45. package/esm2022/lib/ui-kit/dialog/dialog-ref.mjs +11 -11
  46. package/esm2022/lib/ui-kit/dialog/dialog.component.mjs +96 -96
  47. package/esm2022/lib/ui-kit/dialog/dialog.module.mjs +20 -20
  48. package/esm2022/lib/ui-kit/dialog/dialog.service.mjs +56 -56
  49. package/esm2022/lib/ui-kit/dialog/insertion.directive.mjs +17 -17
  50. package/esm2022/lib/ui-kit/floating-bar/floating-bar.component.mjs +57 -57
  51. package/esm2022/lib/ui-kit/floating-bar/floating-bar.module.mjs +32 -32
  52. package/esm2022/lib/ui-kit/formgroup/click-outside.directive.mjs +30 -30
  53. package/esm2022/lib/ui-kit/formgroup/cs-checkbox/cs-checkbox.component.mjs +29 -29
  54. package/esm2022/lib/ui-kit/formgroup/cs-radio/cs-radio.component.mjs +34 -34
  55. package/esm2022/lib/ui-kit/formgroup/cs-radio-group/cs-radio-group.component.mjs +14 -14
  56. package/esm2022/lib/ui-kit/formgroup/cs-select/cs-select.component.mjs +119 -119
  57. package/esm2022/lib/ui-kit/formgroup/cs-switch/cs-switch.component.mjs +39 -39
  58. package/esm2022/lib/ui-kit/formgroup/formgroup.module.mjs +55 -55
  59. package/esm2022/lib/ui-kit/formgroup/pipes/pascal.pipe.mjs +19 -19
  60. package/esm2022/lib/ui-kit/formgroup/pipes/searchMultiSelect.pipe.mjs +24 -24
  61. package/esm2022/lib/ui-kit/loaders/loaders.module.mjs +24 -24
  62. package/esm2022/lib/ui-kit/loaders/table-loader/table-loader.component.mjs +18 -18
  63. package/esm2022/lib/ui-kit/no-data/no-data.component.mjs +47 -47
  64. package/esm2022/lib/ui-kit/no-data/no-data.module.mjs +18 -18
  65. package/esm2022/lib/ui-kit/pagination/pagination.component.mjs +130 -130
  66. package/esm2022/lib/ui-kit/pagination/pagination.module.mjs +18 -18
  67. package/esm2022/lib/ui-kit/popover/popover.component.mjs +129 -129
  68. package/esm2022/lib/ui-kit/popover/popover.directive.mjs +93 -93
  69. package/esm2022/lib/ui-kit/popover/popover.module.mjs +21 -21
  70. package/esm2022/lib/ui-kit/popover/popover.service.mjs +23 -23
  71. package/esm2022/lib/ui-kit/select/cs-option/cs-option.component.mjs +41 -41
  72. package/esm2022/lib/ui-kit/select/cs-select/cs-select.component.mjs +107 -107
  73. package/esm2022/lib/ui-kit/select/safe-html.pipe.mjs +21 -21
  74. package/esm2022/lib/ui-kit/select/select.module.mjs +21 -21
  75. package/esm2022/lib/ui-kit/services/cs-select.service.mjs +16 -16
  76. package/esm2022/lib/ui-kit/smiley-dialog/smiley-dialog.component.mjs +52 -52
  77. package/esm2022/lib/ui-kit/smiley-dialog/smiley-dialog.module.mjs +18 -18
  78. package/esm2022/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.mjs +46 -46
  79. package/esm2022/lib/ui-kit/snack-bar/snack-bar.module.mjs +18 -18
  80. package/esm2022/lib/ui-kit/snack-bar/snack-bar.service.mjs +23 -23
  81. package/esm2022/lib/ui-kit/tooltip/tooltip.directive.mjs +168 -168
  82. package/esm2022/lib/ui-kit/tooltip/tooltip.module.mjs +18 -18
  83. package/esm2022/lib/ui-kit/v-loader/loader/loader.component.mjs +24 -24
  84. package/esm2022/lib/ui-kit/v-loader/loader-inline/loader-inline.component.mjs +24 -24
  85. package/esm2022/lib/ui-kit/v-loader/v-loader.module.mjs +19 -19
  86. package/esm2022/public-api.mjs +10 -10
  87. package/esm2022/vc-create-dashboard.mjs +4 -4
  88. package/fesm2022/vc-create-dashboard.mjs +6438 -6333
  89. package/fesm2022/vc-create-dashboard.mjs.map +1 -1
  90. package/index.d.ts +5 -5
  91. package/lib/configurations.d.ts +4 -4
  92. package/lib/create-dashboard-container/categories/categories-config.d.ts +18 -18
  93. package/lib/create-dashboard-container/categories/categories.component.d.ts +66 -66
  94. package/lib/create-dashboard-container/configure-widgets/configure-widgets/configure-widgets.component.d.ts +113 -113
  95. package/lib/create-dashboard-container/configure-widgets/configure-widgets/widget.interface.d.ts +9 -9
  96. package/lib/create-dashboard-container/configure-widgets/configure-widgets.module.d.ts +14 -14
  97. package/lib/create-dashboard-container/constants/assets.constant.d.ts +35 -35
  98. package/lib/create-dashboard-container/create-dashboard-config.d.ts +18 -18
  99. package/lib/create-dashboard-container/create-dashboard.component.d.ts +219 -216
  100. package/lib/create-dashboard-container/create-dashboard.module.d.ts +37 -37
  101. package/lib/create-dashboard-container/directives/directives.module.d.ts +8 -8
  102. package/lib/create-dashboard-container/directives/scroll-in-view.directive.d.ts +12 -12
  103. package/lib/create-dashboard-container/form-group/form-group.component.d.ts +48 -48
  104. package/lib/create-dashboard-container/frequency/frequency.component.d.ts +39 -39
  105. package/lib/create-dashboard-container/interfaces/widget-data-model.d.ts +8 -8
  106. package/lib/create-dashboard-container/pipes/filter.pipe.d.ts +7 -7
  107. package/lib/create-dashboard-container/pipes/search-program.pipe.d.ts +7 -7
  108. package/lib/create-dashboard-container/pipes/search.pipe.d.ts +7 -7
  109. package/lib/create-dashboard-container/pipes/text-count.pipe.d.ts +7 -7
  110. package/lib/create-dashboard-container/program-list/constant.d.ts +24 -24
  111. package/lib/create-dashboard-container/program-list/information-block/information-block.component.d.ts +6 -6
  112. package/lib/create-dashboard-container/program-list/interfaces/list-item.interface.d.ts +5 -5
  113. package/lib/create-dashboard-container/program-list/list-container/list-container.component.d.ts +9 -9
  114. package/lib/create-dashboard-container/program-list/pipes/check-selected-items.pipes.d.ts +7 -7
  115. package/lib/create-dashboard-container/program-list/program-list/program-list.component.d.ts +119 -119
  116. package/lib/create-dashboard-container/program-list/program-list.module.d.ts +17 -17
  117. package/lib/create-dashboard-container/program-list/services/list-utils.service.d.ts +7 -7
  118. package/lib/create-dashboard-container/program-list/services/program-list-api.service.d.ts +12 -14
  119. package/lib/create-dashboard-container/responsibility-center/responsibility-center.component.d.ts +70 -62
  120. package/lib/create-dashboard-container/risk-categories/risk-categories-config.d.ts +18 -18
  121. package/lib/create-dashboard-container/risk-categories/risk-categories.component.d.ts +66 -66
  122. package/lib/create-dashboard-container/services/configure-widgets.service.d.ts +21 -23
  123. package/lib/create-dashboard-container/services/create-dashboard.service.d.ts +80 -82
  124. package/lib/create-dashboard-container/services/pagination.service.d.ts +12 -12
  125. package/lib/create-dashboard-container/user-list/user-list.component.d.ts +123 -123
  126. package/lib/create-dashboard-container/user-list/user-list.config.d.ts +13 -13
  127. package/lib/create-dashboard-container/utils/dashboard-edit.utils.d.ts +16 -16
  128. package/lib/create-dashboard.service.d.ts +6 -6
  129. package/lib/ui-kit/dashboard-footer/dashboard-footer/dashboard-footer.component.d.ts +17 -17
  130. package/lib/ui-kit/dashboard-footer/dashboard-footer-config.d.ts +11 -11
  131. package/lib/ui-kit/dashboard-footer/dashboard-footer.module.d.ts +10 -10
  132. package/lib/ui-kit/dialog/dialog-config.d.ts +6 -6
  133. package/lib/ui-kit/dialog/dialog-injector.d.ts +7 -7
  134. package/lib/ui-kit/dialog/dialog-ref.d.ts +7 -7
  135. package/lib/ui-kit/dialog/dialog.component.d.ts +33 -33
  136. package/lib/ui-kit/dialog/dialog.module.d.ts +9 -9
  137. package/lib/ui-kit/dialog/dialog.service.d.ts +17 -17
  138. package/lib/ui-kit/dialog/insertion.directive.d.ts +8 -8
  139. package/lib/ui-kit/floating-bar/floating-bar.component.d.ts +20 -20
  140. package/lib/ui-kit/floating-bar/floating-bar.module.d.ts +10 -10
  141. package/lib/ui-kit/formgroup/click-outside.directive.d.ts +10 -10
  142. package/lib/ui-kit/formgroup/cs-checkbox/cs-checkbox.component.d.ts +13 -13
  143. package/lib/ui-kit/formgroup/cs-radio/cs-radio.component.d.ts +15 -15
  144. package/lib/ui-kit/formgroup/cs-radio-group/cs-radio-group.component.d.ts +8 -8
  145. package/lib/ui-kit/formgroup/cs-select/cs-select.component.d.ts +36 -36
  146. package/lib/ui-kit/formgroup/cs-switch/cs-switch.component.d.ts +15 -15
  147. package/lib/ui-kit/formgroup/formgroup.module.d.ts +17 -17
  148. package/lib/ui-kit/formgroup/pipes/pascal.pipe.d.ts +7 -7
  149. package/lib/ui-kit/formgroup/pipes/searchMultiSelect.pipe.d.ts +7 -7
  150. package/lib/ui-kit/loaders/loaders.module.d.ts +8 -8
  151. package/lib/ui-kit/loaders/table-loader/table-loader.component.d.ts +9 -9
  152. package/lib/ui-kit/no-data/no-data.component.d.ts +19 -19
  153. package/lib/ui-kit/no-data/no-data.module.d.ts +8 -8
  154. package/lib/ui-kit/pagination/pagination.component.d.ts +21 -21
  155. package/lib/ui-kit/pagination/pagination.module.d.ts +8 -8
  156. package/lib/ui-kit/popover/popover.component.d.ts +28 -28
  157. package/lib/ui-kit/popover/popover.directive.d.ts +17 -17
  158. package/lib/ui-kit/popover/popover.module.d.ts +9 -9
  159. package/lib/ui-kit/popover/popover.service.d.ts +13 -13
  160. package/lib/ui-kit/select/cs-option/cs-option.component.d.ts +16 -16
  161. package/lib/ui-kit/select/cs-select/cs-select.component.d.ts +32 -32
  162. package/lib/ui-kit/select/safe-html.pipe.d.ts +10 -10
  163. package/lib/ui-kit/select/select.module.d.ts +11 -11
  164. package/lib/ui-kit/services/cs-select.service.d.ts +7 -7
  165. package/lib/ui-kit/smiley-dialog/smiley-dialog.component.d.ts +17 -17
  166. package/lib/ui-kit/smiley-dialog/smiley-dialog.module.d.ts +8 -8
  167. package/lib/ui-kit/snack-bar/snack-bar/snack-bar.component.d.ts +17 -17
  168. package/lib/ui-kit/snack-bar/snack-bar.module.d.ts +8 -8
  169. package/lib/ui-kit/snack-bar/snack-bar.service.d.ts +9 -9
  170. package/lib/ui-kit/tooltip/tooltip.directive.d.ts +28 -28
  171. package/lib/ui-kit/tooltip/tooltip.module.d.ts +8 -8
  172. package/lib/ui-kit/v-loader/loader/loader.component.d.ts +11 -11
  173. package/lib/ui-kit/v-loader/loader-inline/loader-inline.component.d.ts +11 -11
  174. package/lib/ui-kit/v-loader/v-loader.module.d.ts +9 -9
  175. package/package.json +1 -1
  176. package/public-api.d.ts +3 -3
  177. package/esm2022/lib/create-dashboard-container/services/auth.service.mjs +0 -31
  178. package/lib/create-dashboard-container/services/auth.service.d.ts +0 -11
@@ -1,216 +1,219 @@
1
- import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { EditorConfig } from '@vcomply/editor';
3
- import { DatePickerComponent, IDatePickerConfig } from 'ng2-date-picker';
4
- import { CreateDashboardService } from './services/create-dashboard.service';
5
- import { PaginationService } from './services/pagination.service';
6
- import { UserListConfiguration } from './user-list/user-list.config';
7
- import { CreateDashboardForm } from './create-dashboard-config';
8
- import { SnackBarService } from '../ui-kit/snack-bar/snack-bar.service';
9
- import { PopoverService } from '../ui-kit/popover/popover.service';
10
- import { TextCountPipe } from './pipes/text-count.pipe';
11
- import { ListItem } from './program-list/interfaces/list-item.interface';
12
- import * as i0 from "@angular/core";
13
- export declare class CreateDashboardComponent implements OnInit, OnChanges {
14
- private createDashboardService;
15
- private paginationService;
16
- private cdr;
17
- private snackBar;
18
- popoverService: PopoverService;
19
- private textCount;
20
- feature: any;
21
- activeSelector: string;
22
- disabled: boolean;
23
- mode: string;
24
- dashboardId: string;
25
- dashboardDetails: any;
26
- /** API dashboard object from createDashboard response (used when navigating after create). */
27
- private createdDashboard;
28
- close: EventEmitter<any>;
29
- createdBy: number;
30
- fromDatePicker: DatePickerComponent;
31
- toDatePicker: DatePickerComponent;
32
- animation: boolean;
33
- configureWidget: boolean;
34
- ASSETS: any;
35
- totalPages: number;
36
- totalList: number;
37
- usersList: any[];
38
- vLoader: boolean;
39
- userListLoaded: boolean;
40
- groupListLoaded: boolean;
41
- rcListLoaded: boolean;
42
- hideToDate: boolean;
43
- listDetails: UserListConfiguration;
44
- dashboardDescription: EditorConfig;
45
- responsibilityCategoriesTree: any;
46
- allComplianceCategories: any[];
47
- allRiskCategories: any[];
48
- showRiskCategory: boolean;
49
- showCriteria: boolean;
50
- dashboardForm: CreateDashboardForm;
51
- openConfigureWidgets: boolean;
52
- selectedWidgets: any;
53
- displayedWidgets: any;
54
- responsibilityCentersList: any[];
55
- datePickerOverlay: boolean;
56
- dayNames: string[];
57
- monthNames: string[];
58
- quarters: string[];
59
- showRiskWidgets: boolean;
60
- showComplianceWidgets: boolean;
61
- isManageRisk: boolean;
62
- riskCategoryList: {
63
- strategic: {
64
- list: never[];
65
- selectedList: never[];
66
- };
67
- operational: {
68
- list: never[];
69
- selectedList: never[];
70
- };
71
- compliance: {
72
- list: never[];
73
- selectedList: never[];
74
- };
75
- others: {
76
- list: never[];
77
- selectedList: never[];
78
- };
79
- };
80
- programListUrl: any;
81
- fromDatePickerConfig: IDatePickerConfig;
82
- toDatePickerConfig: IDatePickerConfig;
83
- isSmiley: boolean;
84
- smileyMessage: string;
85
- groupList: any;
86
- groupsEnabled: boolean;
87
- totalgroups: any;
88
- fromDatePickerPopup: ElementRef;
89
- toDatePickerPopup: ElementRef;
90
- openedDatePicker: string;
91
- selectedPrograms: any;
92
- allProgamSelected: any[];
93
- private pendingEditRcIds;
94
- private pendingEditRcEntries;
95
- private editFormHydrated;
96
- /** Tracks in-flight EDIT hydration HTTP calls; loader stays on until zero. */
97
- private editHydrationCount;
98
- constructor(createDashboardService: CreateDashboardService, paginationService: PaginationService, cdr: ChangeDetectorRef, snackBar: SnackBarService, popoverService: PopoverService, textCount: TextCountPipe);
99
- ngOnChanges(changes: SimpleChanges): void;
100
- onKeydownHandler(event: KeyboardEvent): void;
101
- ngOnInit(): void;
102
- animateContainer(): void;
103
- getUserInfo(): void;
104
- /**
105
- * Displays the listing pages the left side of policy form to set and edit the dropdown fields values
106
- * @param type holds name of particular list is to be displayed
107
- * @param event contains boolean value to display the list or not
108
- */
109
- activateSelector(type: any, event: boolean): void;
110
- onProgramSelectionChange(items: ListItem[]): void;
111
- selectCategory(): void;
112
- checkDefaultProgramOnRemove(event: any): void;
113
- removeProgram(program: any): void;
114
- private syncProgramSelectionMapFromForm;
115
- private hydrateProgramsFromDashboardData;
116
- private applyFlatProgramCategories;
117
- private applyResponsibilityCategoryWidgetFilters;
118
- openFromDatePicker(): void;
119
- openToDatePicker(): void;
120
- closeFromDatePicker(): void;
121
- closeToDatePicker(): void;
122
- animateImage(): void;
123
- saveFrequency(eventValues: any): void;
124
- getCurrentDate(): string;
125
- setToDate(data: string): string;
126
- getFromDate(data: string): string;
127
- /**
128
- * @param data - the date you want to format
129
- * @returns Date string in YYYY-MM-DD format, e.g. 2026-05-19
130
- */
131
- getDateFormate(data: string): string;
132
- configureDashboard(): void;
133
- /**
134
- * Get users list by making api call and pre selects all admins by adding to viewers
135
- * @param url contains query params for organization users api
136
- */
137
- getUsersList(url: any): void;
138
- getGroupList(): void;
139
- /**
140
- * It is to ensure whether all required lists on Policy from is loaded from the api call or not
141
- */
142
- checkWhetherAllListsLoaded(): void;
143
- setSelectedWidgets(data: any): void;
144
- extractWidgetCodes(widgets: any[]): any[];
145
- closeConfigureWidgets(event: boolean): void;
146
- /**
147
- * Filter list user's list based on pagination by making api call
148
- * @param event specifies a boolean value to call api
149
- */
150
- paginationFilter(event: any): void;
151
- getRCList(): void;
152
- /**
153
- * #### Description
154
- *
155
- * Returns the unique array of object based on unique key
156
- * @param array
157
- * @param key
158
- * @returns
159
- */
160
- uniqueByProp(array: any, key: string): unknown[];
161
- saveSelectedList(type: string, selectedItems: any): void;
162
- remove(type: any, event: any, removeIndex?: any): void;
163
- setList(list: any[], ids: any[], key: string): any[];
164
- private setListByIds;
165
- private flattenRcTree;
166
- private normalizeRcList;
167
- private resolveRcFromTree;
168
- private applyPreresolvedRcEntries;
169
- private applyPendingResponsibilityCenters;
170
- private beginEditHydration;
171
- private finishEditHydration;
172
- private tryCompleteEditHydration;
173
- private wrapEditRequest;
174
- private syncProgramsForEdit;
175
- private applyProgramsFromDashboardIds;
176
- private ensureProgramSelectionMapForList;
177
- private applyProgramSelectionMap;
178
- private categoryMatchesId;
179
- private loadProgramsForEdit;
180
- /** Custom dashboards often store program ids only — resolve names for form chips. */
181
- private resolveProgramIdsForEdit;
182
- private buildEditDashboardData;
183
- submitted: boolean;
184
- /**
185
- * Returns id's from a particular list elements
186
- * @param list actual selected list
187
- * @param key contains key to extract id from the list
188
- */
189
- returnIds(list: any[], key: string): any[];
190
- /**
191
- * Validates the data submitted on create dashboard form
192
- */
193
- validateDashboard(): boolean;
194
- /**
195
- * Makes an api call to create a dashboad
196
- * @param dashboard contains dashboardForm data
197
- */
198
- submitDashboard(): false | undefined;
199
- closeContainer(message: string): void;
200
- onSubmitDashboard(): void;
201
- saveDashboard(payload: any): void;
202
- private getCreatedDashboardCdid;
203
- private hydrateEditForm;
204
- private applyWidgetsFromGetWidgetsResponse;
205
- /** EDIT mode only: GET getWidgets?dashboardId={cdid} */
206
- private loadEditModeWidgets;
207
- editDashboard(): void;
208
- populateDashboardForm(data: any): void;
209
- ngAfterViewChecked(): void;
210
- setPermission(roleActions: any): void;
211
- getElementClassName(el: any): string;
212
- documentClick(event: any): void;
213
- documentClickListener(target: any, openedElements: ElementRef, selectedDatePicker: any): void;
214
- static ɵfac: i0.ɵɵFactoryDeclaration<CreateDashboardComponent, never>;
215
- static ɵcmp: i0.ɵɵComponentDeclaration<CreateDashboardComponent, "app-create-dashboard", never, { "feature": { "alias": "feature"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "dashboardId": { "alias": "dashboardId"; "required": false; }; "dashboardDetails": { "alias": "dashboardDetails"; "required": false; }; "createdBy": { "alias": "createdBy"; "required": false; }; "configureWidget": { "alias": "configureWidget"; "required": false; }; }, { "close": "close"; }, never, never, false, never>;
216
- }
1
+ import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { EditorConfig } from '@vcomply/editor';
3
+ import { DatePickerComponent, IDatePickerConfig } from 'ng2-date-picker';
4
+ import { CreateDashboardService } from './services/create-dashboard.service';
5
+ import { PaginationService } from './services/pagination.service';
6
+ import { UserListConfiguration } from './user-list/user-list.config';
7
+ import { CreateDashboardForm } from './create-dashboard-config';
8
+ import { SnackBarService } from '../ui-kit/snack-bar/snack-bar.service';
9
+ import { PopoverService } from '../ui-kit/popover/popover.service';
10
+ import { TextCountPipe } from './pipes/text-count.pipe';
11
+ import { ListItem } from './program-list/interfaces/list-item.interface';
12
+ import * as i0 from "@angular/core";
13
+ export declare class CreateDashboardComponent implements OnInit, OnChanges {
14
+ private createDashboardService;
15
+ private paginationService;
16
+ private cdr;
17
+ private snackBar;
18
+ popoverService: PopoverService;
19
+ private textCount;
20
+ feature: any;
21
+ activeSelector: string;
22
+ disabled: boolean;
23
+ mode: string;
24
+ dashboardId: string;
25
+ dashboardDetails: any;
26
+ /** API dashboard object from createDashboard response (used when navigating after create). */
27
+ private createdDashboard;
28
+ /** True after CREATE API succeeds; widget save should emit `created` for app redirect. */
29
+ private redirectAfterCreate;
30
+ close: EventEmitter<any>;
31
+ createdBy: number;
32
+ fromDatePicker: DatePickerComponent;
33
+ toDatePicker: DatePickerComponent;
34
+ animation: boolean;
35
+ configureWidget: boolean;
36
+ ASSETS: any;
37
+ totalPages: number;
38
+ totalList: number;
39
+ usersList: any[];
40
+ vLoader: boolean;
41
+ userListLoaded: boolean;
42
+ groupListLoaded: boolean;
43
+ rcListLoaded: boolean;
44
+ hideToDate: boolean;
45
+ listDetails: UserListConfiguration;
46
+ dashboardDescription: EditorConfig;
47
+ responsibilityCategoriesTree: any;
48
+ allComplianceCategories: any[];
49
+ allRiskCategories: any[];
50
+ showRiskCategory: boolean;
51
+ showCriteria: boolean;
52
+ dashboardForm: CreateDashboardForm;
53
+ openConfigureWidgets: boolean;
54
+ selectedWidgets: any;
55
+ displayedWidgets: any;
56
+ responsibilityCentersList: any[];
57
+ datePickerOverlay: boolean;
58
+ dayNames: string[];
59
+ monthNames: string[];
60
+ quarters: string[];
61
+ showRiskWidgets: boolean;
62
+ showComplianceWidgets: boolean;
63
+ isManageRisk: boolean;
64
+ riskCategoryList: {
65
+ strategic: {
66
+ list: never[];
67
+ selectedList: never[];
68
+ };
69
+ operational: {
70
+ list: never[];
71
+ selectedList: never[];
72
+ };
73
+ compliance: {
74
+ list: never[];
75
+ selectedList: never[];
76
+ };
77
+ others: {
78
+ list: never[];
79
+ selectedList: never[];
80
+ };
81
+ };
82
+ programListUrl: any;
83
+ private readonly datePickerBaseConfig;
84
+ fromDatePickerConfig: IDatePickerConfig;
85
+ toDatePickerConfig: IDatePickerConfig;
86
+ isSmiley: boolean;
87
+ smileyMessage: string;
88
+ groupList: any;
89
+ groupsEnabled: boolean;
90
+ totalgroups: any;
91
+ openedDatePicker: string;
92
+ selectedPrograms: any;
93
+ allProgamSelected: any[];
94
+ private pendingEditRcIds;
95
+ private pendingEditRcEntries;
96
+ private editFormHydrated;
97
+ /** Tracks in-flight EDIT hydration HTTP calls; loader stays on until zero. */
98
+ private editHydrationCount;
99
+ constructor(createDashboardService: CreateDashboardService, paginationService: PaginationService, cdr: ChangeDetectorRef, snackBar: SnackBarService, popoverService: PopoverService, textCount: TextCountPipe);
100
+ ngOnChanges(changes: SimpleChanges): void;
101
+ onKeydownHandler(event: KeyboardEvent): void;
102
+ ngOnInit(): void;
103
+ animateContainer(): void;
104
+ getUserInfo(): void;
105
+ /**
106
+ * Displays the listing pages the left side of policy form to set and edit the dropdown fields values
107
+ * @param type holds name of particular list is to be displayed
108
+ * @param event contains boolean value to display the list or not
109
+ */
110
+ activateSelector(type: any, event: boolean): void;
111
+ onProgramSelectionChange(items: ListItem[]): void;
112
+ selectCategory(): void;
113
+ checkDefaultProgramOnRemove(event: any): void;
114
+ removeProgram(program: any): void;
115
+ private syncProgramSelectionMapFromForm;
116
+ private hydrateProgramsFromDashboardData;
117
+ private applyFlatProgramCategories;
118
+ private applyResponsibilityCategoryWidgetFilters;
119
+ openFromDatePicker(event?: Event): void;
120
+ openToDatePicker(event?: Event): void;
121
+ closeFromDatePicker(): void;
122
+ closeToDatePicker(): void;
123
+ animateImage(): void;
124
+ saveFrequency(eventValues: any): void;
125
+ getCurrentDate(): string;
126
+ setToDate(data: string): string;
127
+ getFromDate(data: string): string;
128
+ /**
129
+ * @param data - the date you want to format
130
+ * @returns Date string in YYYY-MM-DD format, e.g. 2026-05-19
131
+ */
132
+ getDateFormate(data: string): string;
133
+ configureDashboard(): void;
134
+ /**
135
+ * Get users list by making api call and pre selects all admins by adding to viewers
136
+ * @param url contains query params for organization users api
137
+ */
138
+ getUsersList(url: any): void;
139
+ getGroupList(): void;
140
+ /**
141
+ * It is to ensure whether all required lists on Policy from is loaded from the api call or not
142
+ */
143
+ checkWhetherAllListsLoaded(): void;
144
+ setSelectedWidgets(data: any): void;
145
+ extractWidgetCodes(widgets: any[]): any[];
146
+ closeConfigureWidgets(event: boolean): void;
147
+ /**
148
+ * Filter list user's list based on pagination by making api call
149
+ * @param event specifies a boolean value to call api
150
+ */
151
+ paginationFilter(event: any): void;
152
+ getRCList(): void;
153
+ /**
154
+ * #### Description
155
+ *
156
+ * Returns the unique array of object based on unique key
157
+ * @param array
158
+ * @param key
159
+ * @returns
160
+ */
161
+ uniqueByProp(array: any, key: string): unknown[];
162
+ saveSelectedList(type: string, selectedItems: any): void;
163
+ remove(type: any, event: any, removeIndex?: any): void;
164
+ setList(list: any[], ids: any[], key: string): any[];
165
+ private setListByIds;
166
+ private flattenRcTree;
167
+ private getRcNodeId;
168
+ private collectNestedChildIds;
169
+ private isNestedRc;
170
+ private resolveAllDescendantIds;
171
+ private normalizeRcList;
172
+ private resolveRcFromTree;
173
+ private applyPreresolvedRcEntries;
174
+ private applyPendingResponsibilityCenters;
175
+ private beginEditHydration;
176
+ private finishEditHydration;
177
+ private tryCompleteEditHydration;
178
+ private wrapEditRequest;
179
+ private syncProgramsForEdit;
180
+ private applyProgramsFromDashboardIds;
181
+ private ensureProgramSelectionMapForList;
182
+ private applyProgramSelectionMap;
183
+ private categoryMatchesId;
184
+ private loadProgramsForEdit;
185
+ /** Custom dashboards often store program ids only — resolve names for form chips. */
186
+ private resolveProgramIdsForEdit;
187
+ private buildEditDashboardData;
188
+ submitted: boolean;
189
+ /**
190
+ * Returns id's from a particular list elements
191
+ * @param list actual selected list
192
+ * @param key contains key to extract id from the list
193
+ */
194
+ returnIds(list: any[], key: string): any[];
195
+ /**
196
+ * Validates the data submitted on create dashboard form
197
+ */
198
+ validateDashboard(): boolean;
199
+ /**
200
+ * Makes an api call to create a dashboad
201
+ * @param dashboard contains dashboardForm data
202
+ */
203
+ submitDashboard(): false | undefined;
204
+ closeContainer(message: string): void;
205
+ onSubmitDashboard(): void;
206
+ saveDashboard(payload: any): void;
207
+ private getCreatedDashboardCdid;
208
+ private hydrateEditForm;
209
+ private applyWidgetsFromGetWidgetsResponse;
210
+ /** EDIT mode only: GET getWidgets?dashboardId={cdid} */
211
+ private loadEditModeWidgets;
212
+ editDashboard(): void;
213
+ populateDashboardForm(data: any): void;
214
+ ngAfterViewChecked(): void;
215
+ setPermission(roleActions: any): void;
216
+ documentClick(event: MouseEvent): void;
217
+ static ɵfac: i0.ɵɵFactoryDeclaration<CreateDashboardComponent, never>;
218
+ static ɵcmp: i0.ɵɵComponentDeclaration<CreateDashboardComponent, "app-create-dashboard", never, { "feature": { "alias": "feature"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "dashboardId": { "alias": "dashboardId"; "required": false; }; "dashboardDetails": { "alias": "dashboardDetails"; "required": false; }; "createdBy": { "alias": "createdBy"; "required": false; }; "configureWidget": { "alias": "configureWidget"; "required": false; }; }, { "close": "close"; }, never, never, false, never>;
219
+ }
@@ -1,37 +1,37 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { Configurations } from '../configurations';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./create-dashboard.component";
5
- import * as i2 from "./user-list/user-list.component";
6
- import * as i3 from "./form-group/form-group.component";
7
- import * as i4 from "./responsibility-center/responsibility-center.component";
8
- import * as i5 from "./categories/categories.component";
9
- import * as i6 from "./risk-categories/risk-categories.component";
10
- import * as i7 from "./frequency/frequency.component";
11
- import * as i8 from "./pipes/filter.pipe";
12
- import * as i9 from "./pipes/text-count.pipe";
13
- import * as i10 from "@angular/common";
14
- import * as i11 from "@vcomply/editor";
15
- import * as i12 from "../ui-kit/formgroup/formgroup.module";
16
- import * as i13 from "@angular/forms";
17
- import * as i14 from "../ui-kit/tooltip/tooltip.module";
18
- import * as i15 from "../ui-kit/select/select.module";
19
- import * as i16 from "../ui-kit/dashboard-footer/dashboard-footer.module";
20
- import * as i17 from "../ui-kit/pagination/pagination.module";
21
- import * as i18 from "../ui-kit/floating-bar/floating-bar.module";
22
- import * as i19 from "../ui-kit/dialog/dialog.module";
23
- import * as i20 from "./configure-widgets/configure-widgets.module";
24
- import * as i21 from "../ui-kit/popover/popover.module";
25
- import * as i22 from "../ui-kit/v-loader/v-loader.module";
26
- import * as i23 from "../ui-kit/snack-bar/snack-bar.module";
27
- import * as i24 from "../ui-kit/no-data/no-data.module";
28
- import * as i25 from "./directives/directives.module";
29
- import * as i26 from "../ui-kit/smiley-dialog/smiley-dialog.module";
30
- import * as i27 from "ng2-date-picker";
31
- import * as i28 from "./program-list/program-list.module";
32
- export declare class CreateDashboardModule {
33
- static forRoot(environmentConfig: Configurations): ModuleWithProviders<CreateDashboardModule>;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<CreateDashboardModule, never>;
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]>;
36
- static ɵinj: i0.ɵɵInjectorDeclaration<CreateDashboardModule>;
37
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { Configurations } from '../configurations';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "./create-dashboard.component";
5
+ import * as i2 from "./user-list/user-list.component";
6
+ import * as i3 from "./form-group/form-group.component";
7
+ import * as i4 from "./responsibility-center/responsibility-center.component";
8
+ import * as i5 from "./categories/categories.component";
9
+ import * as i6 from "./risk-categories/risk-categories.component";
10
+ import * as i7 from "./frequency/frequency.component";
11
+ import * as i8 from "./pipes/filter.pipe";
12
+ import * as i9 from "./pipes/text-count.pipe";
13
+ import * as i10 from "@angular/common";
14
+ import * as i11 from "@vcomply/editor";
15
+ import * as i12 from "../ui-kit/formgroup/formgroup.module";
16
+ import * as i13 from "@angular/forms";
17
+ import * as i14 from "../ui-kit/tooltip/tooltip.module";
18
+ import * as i15 from "../ui-kit/select/select.module";
19
+ import * as i16 from "../ui-kit/dashboard-footer/dashboard-footer.module";
20
+ import * as i17 from "../ui-kit/pagination/pagination.module";
21
+ import * as i18 from "../ui-kit/floating-bar/floating-bar.module";
22
+ import * as i19 from "../ui-kit/dialog/dialog.module";
23
+ import * as i20 from "./configure-widgets/configure-widgets.module";
24
+ import * as i21 from "../ui-kit/popover/popover.module";
25
+ import * as i22 from "../ui-kit/v-loader/v-loader.module";
26
+ import * as i23 from "../ui-kit/snack-bar/snack-bar.module";
27
+ import * as i24 from "../ui-kit/no-data/no-data.module";
28
+ import * as i25 from "./directives/directives.module";
29
+ import * as i26 from "../ui-kit/smiley-dialog/smiley-dialog.module";
30
+ import * as i27 from "ng2-date-picker";
31
+ import * as i28 from "./program-list/program-list.module";
32
+ export declare class CreateDashboardModule {
33
+ static forRoot(environmentConfig: Configurations): ModuleWithProviders<CreateDashboardModule>;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<CreateDashboardModule, never>;
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]>;
36
+ static ɵinj: i0.ɵɵInjectorDeclaration<CreateDashboardModule>;
37
+ }
@@ -1,8 +1,8 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./scroll-in-view.directive";
3
- import * as i2 from "@angular/common";
4
- export declare class DirectivesModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<DirectivesModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<DirectivesModule, [typeof i1.ScrollInViewDirective], [typeof i2.CommonModule], [typeof i1.ScrollInViewDirective]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<DirectivesModule>;
8
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./scroll-in-view.directive";
3
+ import * as i2 from "@angular/common";
4
+ export declare class DirectivesModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DirectivesModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DirectivesModule, [typeof i1.ScrollInViewDirective], [typeof i2.CommonModule], [typeof i1.ScrollInViewDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<DirectivesModule>;
8
+ }
@@ -1,12 +1,12 @@
1
- import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ScrollInViewDirective implements OnChanges {
4
- private el;
5
- appScrollInView: boolean;
6
- constructor(el: ElementRef);
7
- ngOnChanges(change: SimpleChanges): void;
8
- ngAfterViewInit(): void;
9
- scroll(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ScrollInViewDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollInViewDirective, "[appScrollInView]", never, { "appScrollInView": { "alias": "appScrollInView"; "required": false; }; }, {}, never, never, false, never>;
12
- }
1
+ import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ScrollInViewDirective implements OnChanges {
4
+ private el;
5
+ appScrollInView: boolean;
6
+ constructor(el: ElementRef);
7
+ ngOnChanges(change: SimpleChanges): void;
8
+ ngAfterViewInit(): void;
9
+ scroll(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollInViewDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollInViewDirective, "[appScrollInView]", never, { "appScrollInView": { "alias": "appScrollInView"; "required": false; }; }, {}, never, never, false, never>;
12
+ }