common-header-lib 0.0.20 → 0.20.1

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 (98) hide show
  1. package/README.md +143 -24
  2. package/assets/i18n/ar.json +4 -1
  3. package/assets/i18n/de.json +4 -1
  4. package/assets/i18n/en.json +4 -1
  5. package/assets/i18n/es.json +4 -1
  6. package/assets/i18n/fr.json +4 -1
  7. package/assets/i18n/hi.json +4 -1
  8. package/assets/i18n/ja.json +4 -1
  9. package/assets/i18n/ko.json +4 -1
  10. package/fesm2022/common-header-lib.mjs +3380 -0
  11. package/fesm2022/common-header-lib.mjs.map +1 -0
  12. package/index.d.ts +459 -5
  13. package/package.json +20 -31
  14. package/src/assets/i18n/ar.json +4 -1
  15. package/src/assets/i18n/de.json +4 -1
  16. package/src/assets/i18n/en.json +4 -1
  17. package/src/assets/i18n/es.json +4 -1
  18. package/src/assets/i18n/fr.json +4 -1
  19. package/src/assets/i18n/hi.json +4 -1
  20. package/src/assets/i18n/ja.json +4 -1
  21. package/src/assets/i18n/ko.json +4 -1
  22. package/assets/scss/_sidebar.scss +0 -267
  23. package/assets/scss/styles.scss +0 -577
  24. package/esm2020/common-header-lib.mjs +0 -5
  25. package/esm2020/lib/Validators/noSpaceAllowed.mjs +0 -16
  26. package/esm2020/lib/common-header-lib.component.mjs +0 -629
  27. package/esm2020/lib/common-header-lib.module.mjs +0 -174
  28. package/esm2020/lib/common-header-lib.service.mjs +0 -200
  29. package/esm2020/lib/components/confirm-dialog/confirm-dialog.component.mjs +0 -49
  30. package/esm2020/lib/components/general-configuration/general-configuration.component.mjs +0 -399
  31. package/esm2020/lib/components/general-configuration/landingpg-config/landingpg-config.component.mjs +0 -124
  32. package/esm2020/lib/components/general-configuration/timezone-configuration/timezone-configuration.component.mjs +0 -137
  33. package/esm2020/lib/components/grid-pagination/grid-pagination.component.mjs +0 -38
  34. package/esm2020/lib/components/ng-translation/ng-translation.component.mjs +0 -82
  35. package/esm2020/lib/components/no-service-my-access-pg/no-service-my-access-pg.component.mjs +0 -19
  36. package/esm2020/lib/components/notification-sidebar/notification-sidebar.component.mjs +0 -40
  37. package/esm2020/lib/components/side-popup/side-popup.component.mjs +0 -34
  38. package/esm2020/lib/components/user-mailbox/user-mailbox.component.mjs +0 -168
  39. package/esm2020/lib/components/user-sidebar/user-sidebar.component.mjs +0 -254
  40. package/esm2020/lib/components/viewpassword-popup/viewpassword-popup.component.mjs +0 -197
  41. package/esm2020/lib/model/data_model.mjs +0 -229
  42. package/esm2020/lib/pipes/custome-dateformat.pipe.mjs +0 -27
  43. package/esm2020/lib/pipes/date-diff.pipe.mjs +0 -55
  44. package/esm2020/lib/pipes/slice-to-two.pipe.mjs +0 -34
  45. package/esm2020/lib/services/EncrypDecryp_RSA.service.mjs +0 -100
  46. package/esm2020/lib/services/async-passwordcheck.service.mjs +0 -70
  47. package/esm2020/lib/services/cookie-storage-manager.service.mjs +0 -78
  48. package/esm2020/lib/services/encrpdata.service.mjs +0 -55
  49. package/esm2020/lib/services/encrydecrydata.service.mjs +0 -205
  50. package/esm2020/lib/services/event.service.mjs +0 -132
  51. package/esm2020/lib/services/http/http-common.service.mjs +0 -245
  52. package/esm2020/lib/services/http/http-general-config.service.mjs +0 -84
  53. package/esm2020/lib/services/rest-login-form.service.mjs +0 -294
  54. package/esm2020/lib/services/rest-signalr.service.mjs +0 -104
  55. package/esm2020/lib/services/storage.service.mjs +0 -33
  56. package/esm2020/lib/services/toast-msg.service.mjs +0 -101
  57. package/esm2020/lib/services/vapt-validation.service.mjs +0 -31
  58. package/esm2020/public-api.mjs +0 -13
  59. package/fesm2015/common-header-lib.mjs +0 -4182
  60. package/fesm2015/common-header-lib.mjs.map +0 -1
  61. package/fesm2020/common-header-lib.mjs +0 -4162
  62. package/fesm2020/common-header-lib.mjs.map +0 -1
  63. package/lib/Validators/noSpaceAllowed.d.ts +0 -2
  64. package/lib/common-header-lib.component.d.ts +0 -149
  65. package/lib/common-header-lib.module.d.ts +0 -55
  66. package/lib/common-header-lib.service.d.ts +0 -25
  67. package/lib/components/confirm-dialog/confirm-dialog.component.d.ts +0 -13
  68. package/lib/components/general-configuration/general-configuration.component.d.ts +0 -86
  69. package/lib/components/general-configuration/landingpg-config/landingpg-config.component.d.ts +0 -37
  70. package/lib/components/general-configuration/timezone-configuration/timezone-configuration.component.d.ts +0 -38
  71. package/lib/components/grid-pagination/grid-pagination.component.d.ts +0 -20
  72. package/lib/components/ng-translation/ng-translation.component.d.ts +0 -21
  73. package/lib/components/no-service-my-access-pg/no-service-my-access-pg.component.d.ts +0 -8
  74. package/lib/components/notification-sidebar/notification-sidebar.component.d.ts +0 -16
  75. package/lib/components/side-popup/side-popup.component.d.ts +0 -14
  76. package/lib/components/user-mailbox/user-mailbox.component.d.ts +0 -40
  77. package/lib/components/user-sidebar/user-sidebar.component.d.ts +0 -60
  78. package/lib/components/viewpassword-popup/viewpassword-popup.component.d.ts +0 -47
  79. package/lib/model/data_model.d.ts +0 -185
  80. package/lib/pipes/custome-dateformat.pipe.d.ts +0 -8
  81. package/lib/pipes/date-diff.pipe.d.ts +0 -9
  82. package/lib/pipes/slice-to-two.pipe.d.ts +0 -7
  83. package/lib/services/EncrypDecryp_RSA.service.d.ts +0 -15
  84. package/lib/services/async-passwordcheck.service.d.ts +0 -18
  85. package/lib/services/cookie-storage-manager.service.d.ts +0 -16
  86. package/lib/services/encrpdata.service.d.ts +0 -12
  87. package/lib/services/encrydecrydata.service.d.ts +0 -33
  88. package/lib/services/event.service.d.ts +0 -30
  89. package/lib/services/http/http-common.service.d.ts +0 -40
  90. package/lib/services/http/http-general-config.service.d.ts +0 -15
  91. package/lib/services/rest-login-form.service.d.ts +0 -39
  92. package/lib/services/rest-signalr.service.d.ts +0 -23
  93. package/lib/services/storage.service.d.ts +0 -11
  94. package/lib/services/toast-msg.service.d.ts +0 -23
  95. package/lib/services/vapt-validation.service.d.ts +0 -7
  96. package/public-api.d.ts +0 -8
  97. package/src/assets/scss/_sidebar.scss +0 -267
  98. package/src/assets/scss/styles.scss +0 -577
package/index.d.ts CHANGED
@@ -1,5 +1,459 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="common-header-lib" />
5
- export * from './public-api';
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit, PipeTransform, AfterViewInit } from '@angular/core';
3
+ import { Observable } from 'rxjs';
4
+ import { DynamicDialogConfig } from 'primeng/dynamicdialog';
5
+ import * as i7 from '@ngx-translate/core';
6
+ import { HttpInterceptorFn } from '@angular/common/http';
7
+
8
+ declare class ConfirmDialogComponent {
9
+ header: _angular_core.InputSignal<string>;
10
+ message: _angular_core.InputSignal<string>;
11
+ result: _angular_core.OutputEmitterRef<boolean>;
12
+ private readonly confirmationService;
13
+ openConfirmModal(event: Event): void;
14
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
15
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmDialogComponent, "confirm-dialog", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; }, { "result": "result"; }, never, never, true, never>;
16
+ }
17
+
18
+ interface Language {
19
+ langKey: string;
20
+ langName: string;
21
+ }
22
+ declare class GlobalConstants {
23
+ static readonly loggedInUserName: string;
24
+ static readonly COOKIEDELETEVENT: string;
25
+ static readonly ALLCOOKIEDELET: string;
26
+ static token: string;
27
+ static TimeForEncToken: number;
28
+ static ErrorCode: string;
29
+ static AgGridPaginationSize: number;
30
+ static Version: string;
31
+ static reconcileServiceLimit: number;
32
+ static baseURL: string;
33
+ static ssoURL: string;
34
+ static workflowURL: string;
35
+ static signalRURL: string;
36
+ static accessToken: string;
37
+ static authToken: string;
38
+ static refreshToken: string;
39
+ static ERRCODE: string;
40
+ static loggedInUserId: number;
41
+ static applicationName: string;
42
+ static publicKey: string;
43
+ static TokenURL: string;
44
+ static tokenExpired: number;
45
+ static validUntil: string;
46
+ static PAMPluginURL: string;
47
+ static APPName: string;
48
+ static MFAURL: string;
49
+ static MFA_ACCESSTOKEN: string;
50
+ static isPAMPluginInstalled: string;
51
+ static PlugInDownloadURL: string;
52
+ static cipluginversion: string;
53
+ static localInstalledCIPluginVersion: string;
54
+ static isPAMPluginRequired: boolean;
55
+ static PCI_DSS_Standard: boolean;
56
+ static MFAEnable: boolean;
57
+ static setCookies: boolean;
58
+ static TOKENTIME: number;
59
+ static LOGOUTIMER: number;
60
+ static PAGEROW: number;
61
+ static CONFIGCONNECTORS: boolean;
62
+ static USERLANGUAGES: {
63
+ langKey: string;
64
+ langName: string;
65
+ }[];
66
+ static USERFILTEREDLANGUAGES: Language[];
67
+ static DEFAULTLANG: Language;
68
+ static DEFAULTLANGKEY: string;
69
+ static DEFAULT_IMGPATH: string;
70
+ static DEFAULT_BGIMG: string;
71
+ static DEFAULT_LOGO: string;
72
+ static IMG_CODE: string;
73
+ static DYNAMIC_LOGO: string;
74
+ static DYNAMIC_BGIMG: string;
75
+ static APP_VERSION: string;
76
+ }
77
+ declare class COOKIECONSTANT {
78
+ static LOBNAME: string;
79
+ static DOMAINAME: string;
80
+ static DOMAINID: string;
81
+ static USERDETAILS: string;
82
+ static SESSIONID: string;
83
+ static USERNAME: string;
84
+ static USERID: string;
85
+ static _AT: string;
86
+ static _RT: string;
87
+ static USERDISPLAYNAME: string;
88
+ static ENCRYPTEDKEY: string;
89
+ static MFASTATUS: string;
90
+ static EVENTNAME: string;
91
+ static MACHINEDETAILS: string;
92
+ static COOKIEDELETEVENT: string;
93
+ static COOKIECREATEEVENT: string;
94
+ static COOKIEUPDATEEVENT: string;
95
+ static ALLCOOKIEDELET: string;
96
+ static NEWUSER: string;
97
+ static UNLOCKACC: string;
98
+ static ERRORCODE: string;
99
+ static PUBLICCODE: string;
100
+ static USERLANG: string;
101
+ static MFATIMEOUT: number;
102
+ static MFASTATUSCHECK: string;
103
+ static MFASTATUSCHECKFAIL: string;
104
+ static MFACLI: string;
105
+ static WINDOWAUTH_HEADER: string;
106
+ static SIGNALR_INDEX: string;
107
+ static ONETIME_TOKEN: string;
108
+ static THICKCLIENT_KEY: string;
109
+ }
110
+
111
+ interface AppDetails {
112
+ applicationName: string;
113
+ applicationId: number;
114
+ appCode: string;
115
+ privileges: any;
116
+ applicationUrl: string;
117
+ isAssignedLanding: boolean;
118
+ }
119
+ /**
120
+ * 9-dots waffle panel — shows the list of applications the logged-in user can access.
121
+ *
122
+ * Extracted from CommonHeaderLibComponent to remove the God class smell.
123
+ * Responsibilities:
124
+ * - Toggle the PrimeNG popover on the 9-dots button click
125
+ * - Lazily load the app list on first open (avoids an API call if never opened)
126
+ * - Run pre-connection checks for specific apps before launching them
127
+ */
128
+ declare class AppPanelComponent {
129
+ private readonly httpCommonService;
130
+ private readonly msgService;
131
+ private readonly destroyRef;
132
+ private readonly cdRef;
133
+ private readonly popoverRef;
134
+ private readonly APP_PANEL_SKELETON_COUNT;
135
+ /** List of apps the user is privileged to access. */
136
+ ListOfUserPrivillegedApp: AppDetails[];
137
+ /** Controls skeleton loader while the app list is being fetched. */
138
+ userAppLoaderLoadder: boolean;
139
+ readonly repeatLoader: any[];
140
+ private readonly APP_CONNECTION_CHECKS;
141
+ /** Toggles the popover and fetches the app list the first time it opens. */
142
+ toggle(event: Event): void;
143
+ /** Fetches the apps assigned to the current user. */
144
+ private getUserAssignedApp;
145
+ /** Handles a click on an app tile.
146
+ * Apps with special pre-validation (MFA, internal config) are checked first;
147
+ * all other apps open immediately. */
148
+ getConnectionofApplication(appCode: string): void;
149
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppPanelComponent, never>;
150
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppPanelComponent, "app-panel", never, {}, {}, never, never, true, never>;
151
+ }
152
+
153
+ interface LoadOptions {
154
+ enableNotifications: boolean;
155
+ enableProfile: boolean;
156
+ enableTimeZone: boolean;
157
+ enableMail: boolean;
158
+ userId: string;
159
+ }
160
+ /**
161
+ * Handles all data loading and real-time state for the header.
162
+ *
163
+ * Extracted from CommonHeaderLibComponent to remove the God class smell.
164
+ * Responsibilities:
165
+ * - Load header data on init via a single forkJoin (notifications, user info, timezone, email count)
166
+ * - Listen for real-time updates: SignalR notifications, timezone changes, email count, language
167
+ * - Expose all results as signals so the template re-renders automatically
168
+ *
169
+ * Provided at the component level (not root) so each header instance gets its own state
170
+ * and the service lifetime is tied to the component.
171
+ */
172
+ declare class HeaderDataService {
173
+ private readonly http;
174
+ private readonly signalR;
175
+ private readonly eventService;
176
+ private readonly translate;
177
+ private readonly destroyRef;
178
+ /** Base64-encoded header logo string (set after loadLogo() completes) */
179
+ readonly headerLogo: _angular_core.WritableSignal<string>;
180
+ /** True once the forkJoin in loadAll() has finished (success or error) */
181
+ readonly isHeaderContentLoaded: _angular_core.WritableSignal<boolean>;
182
+ /** Logged-in user's display name */
183
+ readonly userdisplayName: _angular_core.WritableSignal<string>;
184
+ /** Formatted notification count string (e.g. "5", "99+", or "" when zero) */
185
+ readonly userNotificationCount: _angular_core.WritableSignal<string>;
186
+ /** User's preferred timezone abbreviation (e.g. "IST") */
187
+ readonly userTimeZoneAbbreviations: _angular_core.WritableSignal<string>;
188
+ /** User's full timezone name shown as a tooltip */
189
+ readonly userTimeZoneFullForm: _angular_core.WritableSignal<string>;
190
+ /** Formatted unread email count string */
191
+ readonly totalEmails: _angular_core.WritableSignal<string>;
192
+ /** Event-wise notification data pushed by SignalR; null until first push */
193
+ readonly signalREventwiseData: _angular_core.WritableSignal<any[] | null>;
194
+ /** Set whenever a timezone update arrives (initial load or live change) */
195
+ readonly timezoneEmitValue: _angular_core.WritableSignal<any>;
196
+ /** Set after the logo API returns; carries the raw response for getBgImage output */
197
+ readonly bgImageEmitValue: _angular_core.WritableSignal<any>;
198
+ private userNotificationCountObj;
199
+ private readonly accessTypes;
200
+ private readonly translateKeys;
201
+ /** Fetches the header logo and sets headerLogo + bgImageEmitValue signals. */
202
+ loadLogo(): void;
203
+ /** Runs all enabled header APIs in parallel using forkJoin.
204
+ * Only the APIs the host app has enabled are included in the request batch,
205
+ * so disabled features never make unnecessary network calls. */
206
+ loadAll(options: LoadOptions): void;
207
+ /** Registers all real-time listeners. Call once from ngOnInit.
208
+ * All subscriptions clean up automatically when the component is destroyed. */
209
+ initListeners(): void;
210
+ /** Returns "" for zero/negative counts, "99+" for counts above 99. */
211
+ formatCount(count: number): string;
212
+ private processNotifications;
213
+ private processUserInfo;
214
+ /** Updates timezone signals and sets the bridge signal for the output emit. */
215
+ private processTimeZone;
216
+ private refreshTranslations;
217
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<HeaderDataService, never>;
218
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<HeaderDataService>;
219
+ }
220
+
221
+ interface LobItem {
222
+ LOBId: any;
223
+ LOBName: string;
224
+ CustomLOBSetByParent: boolean;
225
+ }
226
+ /**
227
+ * Manages Line of Business (LOB) state and selection logic for the header.
228
+ *
229
+ * Extracted from CommonHeaderLibComponent to remove the God class smell.
230
+ * Responsibilities:
231
+ * - Fetch the LOB list from the API
232
+ * - Restore the previously selected LOB from localStorage on load
233
+ * - Persist the confirmed LOB selection back to localStorage
234
+ * - Revert the dropdown to the last confirmed LOB when the user cancels
235
+ * - Validate LOB IDs set programmatically by the host app
236
+ *
237
+ * Provided at the component level so each header instance has isolated LOB state.
238
+ */
239
+ declare class LobService {
240
+ private readonly http;
241
+ private readonly msgService;
242
+ private readonly translate;
243
+ private readonly destroyRef;
244
+ /** Full LOB list used as options for the dropdown. */
245
+ userLOBList: any[];
246
+ /** Controls the skeleton loader shown while the LOB list is being fetched. */
247
+ showLobLoader: boolean;
248
+ /** Tracks the last confirmed LOB ID so changes can be reverted on cancel. */
249
+ private tempSelectedLobId;
250
+ /** Fetches the LOB list and resolves the initial selection.
251
+ * - If localStorage has a valid pre-selected LOB, it is restored.
252
+ * - Otherwise the first item in the list is selected and saved to localStorage. */
253
+ loadLOBs(showAllLOB: boolean): Observable<{
254
+ initialLobSelected: LobItem;
255
+ selectedLobId: any;
256
+ }>;
257
+ /** Called when the user confirms the LOB change dialog.
258
+ * Updates the temp reference and persists the new selection to localStorage. */
259
+ confirmChange(selectedLobId: any): LobItem;
260
+ /** Called when the user cancels the LOB change dialog.
261
+ * Returns the last confirmed LOB ID so the dropdown can be reverted. */
262
+ revertChange(): any;
263
+ /** Validates a LOB ID set programmatically by the host app (via setCustomLobId).
264
+ * Shows an error toast if the ID does not exist in the current list. */
265
+ validateCustomLobId(lobId: any): LobItem | null;
266
+ /** Finds a LOB in the list by its ID and returns a normalised LobItem.
267
+ * Returns an empty object cast as LobItem when no match is found. */
268
+ getLobById(list: any[], id: any): LobItem;
269
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<LobService, never>;
270
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<LobService>;
271
+ }
272
+
273
+ /**
274
+ * Main header component — acts as a thin coordinator.
275
+ *
276
+ * Responsibilities kept here:
277
+ * - Declare signal inputs and outputs (public API for the host app)
278
+ * - Toggle UI panels (mailbox, user profile, notifications)
279
+ * - Coordinate LOB selection + confirmation dialog
280
+ * - Wire service signals to Angular outputs via effects
281
+ *
282
+ * Heavy logic is delegated to:
283
+ * - HeaderDataService — data loading, SignalR/event listeners, state signals
284
+ * - LobService — LOB list loading, selection persistence, validation
285
+ * - AppPanelComponent — 9-dots waffle panel (app list + connection checks)
286
+ * - NotificationPanelComponent — notification sidebar (event counts, refresh)
287
+ */
288
+ declare class CommonHeaderLibComponent implements OnInit {
289
+ EnableLogo: _angular_core.InputSignal<boolean>;
290
+ moduleName: _angular_core.InputSignal<string>;
291
+ EnableTimeZone: _angular_core.InputSignal<boolean>;
292
+ EnableLOB: _angular_core.InputSignal<boolean>;
293
+ showAllLOB: _angular_core.InputSignal<boolean>;
294
+ EnableMail: _angular_core.InputSignal<boolean>;
295
+ EnableNotifications: _angular_core.InputSignal<boolean>;
296
+ EnableMoreApps: _angular_core.InputSignal<boolean>;
297
+ EnableProfile: _angular_core.InputSignal<boolean>;
298
+ languages: _angular_core.InputSignal<Language[]>;
299
+ timezoneDetails: _angular_core.OutputEmitterRef<any>;
300
+ lobSelected: _angular_core.OutputEmitterRef<any>;
301
+ getBgImage: _angular_core.OutputEmitterRef<any>;
302
+ langChange: _angular_core.OutputEmitterRef<any>;
303
+ overlayStateChange: _angular_core.OutputEmitterRef<boolean>;
304
+ confirmDialog: _angular_core.Signal<ConfirmDialogComponent>;
305
+ appPanelRef: _angular_core.Signal<AppPanelComponent>;
306
+ readonly headerData: HeaderDataService;
307
+ readonly lobService: LobService;
308
+ selectedLOBId: any;
309
+ isOpenSidePopup: boolean;
310
+ showUserDetails: boolean;
311
+ showMailboxScreenflag: boolean;
312
+ isNotificationPanelOpen: boolean;
313
+ private readonly cdRef;
314
+ constructor();
315
+ ngOnInit(): void;
316
+ showMailBoxScreen(): void;
317
+ hideMailBoxScreen(): void;
318
+ languageChange(event: any): void;
319
+ showUserAppsPanel(event: Event): void;
320
+ showUserDetailsPanel(): void;
321
+ closeSidePopup(): void;
322
+ OpenNotificationModal(): void;
323
+ closeModal(): void;
324
+ /** Called when the user picks a different LOB from the dropdown.
325
+ * Stores the new value and opens the confirmation dialog before committing. */
326
+ onLobChangeEvent(event: any): void;
327
+ /** Called when the user confirms the LOB change dialog.
328
+ * Persists the new selection and emits it to the host app. */
329
+ confirmLobChange(): void;
330
+ /** Called when the user cancels the LOB change dialog.
331
+ * Reverts the dropdown back to the previously confirmed LOB. */
332
+ revertLobChange(): void;
333
+ /** Public API — allows the host app to force-select a specific LOB by ID. */
334
+ setCustomLobId(lobId: any): void;
335
+ /** Sets the base API URL once. Falls back to the current browser origin
336
+ * if no URL has been stored in localStorage under '_WAU'. */
337
+ private setWebAPIURL;
338
+ /** Loads the LOB list and emits the initially selected LOB to the host app.
339
+ * detectChanges() is used (not markForCheck) because lobService properties
340
+ * are plain values, not signals — we need an immediate re-render after the
341
+ * subscription updates showLobLoader and userLOBList on the service. */
342
+ private getListofLOB;
343
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommonHeaderLibComponent, never>;
344
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CommonHeaderLibComponent, "lib-app-header", never, { "EnableLogo": { "alias": "EnableLogo"; "required": false; "isSignal": true; }; "moduleName": { "alias": "moduleName"; "required": false; "isSignal": true; }; "EnableTimeZone": { "alias": "EnableTimeZone"; "required": false; "isSignal": true; }; "EnableLOB": { "alias": "EnableLOB"; "required": false; "isSignal": true; }; "showAllLOB": { "alias": "showAllLOB"; "required": false; "isSignal": true; }; "EnableMail": { "alias": "EnableMail"; "required": false; "isSignal": true; }; "EnableNotifications": { "alias": "EnableNotifications"; "required": false; "isSignal": true; }; "EnableMoreApps": { "alias": "EnableMoreApps"; "required": false; "isSignal": true; }; "EnableProfile": { "alias": "EnableProfile"; "required": false; "isSignal": true; }; "languages": { "alias": "languages"; "required": false; "isSignal": true; }; }, { "timezoneDetails": "timezoneDetails"; "lobSelected": "lobSelected"; "getBgImage": "getBgImage"; "langChange": "langChange"; "overlayStateChange": "overlayStateChange"; }, never, never, true, never>;
345
+ }
346
+
347
+ declare class SliceToTwoPipe implements PipeTransform {
348
+ transform(textName: string): string;
349
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliceToTwoPipe, never>;
350
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<SliceToTwoPipe, "sliceToTwo", true>;
351
+ }
352
+
353
+ declare class CustomDateFormatPipe implements PipeTransform {
354
+ private datePipe;
355
+ transform(value: any): string;
356
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomDateFormatPipe, never>;
357
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<CustomDateFormatPipe, "customDateFormat", true>;
358
+ }
359
+
360
+ declare class DateDiffPipe implements PipeTransform {
361
+ transform(date: string): string;
362
+ private convertUTCToLocal;
363
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateDiffPipe, never>;
364
+ static ɵpipe: _angular_core.ɵɵPipeDeclaration<DateDiffPipe, "dateDiff", true>;
365
+ }
366
+
367
+ declare class ViewpasswordPopupComponent implements OnInit, AfterViewInit {
368
+ mailDetails: any;
369
+ protected servicePassword: string;
370
+ showVaultBtn: boolean;
371
+ isContentLoaded: boolean;
372
+ isValueUpdated: boolean;
373
+ OpenTillDate: string;
374
+ private readonly destroyRef;
375
+ private readonly cdr;
376
+ readonly dialogService: DynamicDialogConfig<any, any>;
377
+ private readonly msgService;
378
+ private readonly _eventService;
379
+ private readonly translateService;
380
+ private readonly httpCommonService;
381
+ private totalEmails;
382
+ private SSHFileType;
383
+ private SSHFileName;
384
+ isSSHKey: boolean;
385
+ isPasswordVisible: boolean;
386
+ private PasswordViewSuccessMsg;
387
+ private SSHPasswordViewSuccessMsg;
388
+ private SSHPasswordViewErrorMsg;
389
+ private sshKeyForDownload;
390
+ constructor();
391
+ ngAfterViewInit(): void;
392
+ ngOnInit(): void;
393
+ private getSelectedGridData;
394
+ private getTranslateContent;
395
+ getAccessServicePassword(): void;
396
+ getHideServicePassword(): void;
397
+ private getCurrentEmailsCount;
398
+ getGenerateFile(): void;
399
+ private generateSSHKeyFile;
400
+ private updateMailCount;
401
+ copyToClipboard(text: string): void;
402
+ togglePasswordVisibility(): void;
403
+ showPassword(): boolean;
404
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ViewpasswordPopupComponent, never>;
405
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ViewpasswordPopupComponent, "app-viewpassword-popup", never, {}, {}, never, never, true, never>;
406
+ }
407
+
408
+ /**
409
+ * Thin re-export wrapper for NgModule-based host apps.
410
+ *
411
+ * All components and pipes are now standalone. This module simply imports and
412
+ * re-exports the public API so that existing NgModule consumers can continue
413
+ * using `CommonHeaderLibModule` without changes.
414
+ *
415
+ * Translation initialization (app initializer, languages.json validation,
416
+ * fallback chain, language-file loading) is OWNED BY THE CONSUMING APP.
417
+ * TranslateModule is re-exported here so that consumers get access to the
418
+ * translate pipe. Do NOT use forChild({ isolate: true }) — library components
419
+ * share the host app's TranslateService singleton.
420
+ */
421
+ declare class CommonHeaderLibModule {
422
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CommonHeaderLibModule, never>;
423
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<CommonHeaderLibModule, never, [typeof CommonHeaderLibComponent, typeof SliceToTwoPipe, typeof CustomDateFormatPipe, typeof DateDiffPipe, typeof ConfirmDialogComponent, typeof ViewpasswordPopupComponent, typeof i7.TranslateModule], [typeof CommonHeaderLibComponent, typeof SliceToTwoPipe, typeof DateDiffPipe, typeof CustomDateFormatPipe, typeof ConfirmDialogComponent, typeof ViewpasswordPopupComponent, typeof i7.TranslateModule]>;
424
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<CommonHeaderLibModule>;
425
+ }
426
+
427
+ declare class StorageService {
428
+ saveData(key: string, value: string): void;
429
+ getData(key: string): string | null;
430
+ removeData(key: string): void;
431
+ clearData(): void;
432
+ checkData(key: string): boolean;
433
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<StorageService, never>;
434
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<StorageService>;
435
+ }
436
+
437
+ declare class ToastMsgService {
438
+ private toastType_sucess;
439
+ private toastType_info;
440
+ private toastType_error;
441
+ private toastType_warning;
442
+ private readonly toastr;
443
+ private readonly translateService;
444
+ success(textMessage: string, title?: string): void;
445
+ error(textMessage: string, title?: string): void;
446
+ info(textMessage: string, title?: string): void;
447
+ warning(textMessage: string, title?: string): void;
448
+ private updateActiveToastMessage;
449
+ private isToastMsgActive;
450
+ private getActiveToastMessagesByType;
451
+ private checkActiveToastMessagesByType;
452
+ clear(): void;
453
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastMsgService, never>;
454
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastMsgService>;
455
+ }
456
+
457
+ declare const httpErrorInterceptor: HttpInterceptorFn;
458
+
459
+ export { COOKIECONSTANT, CommonHeaderLibComponent, CommonHeaderLibModule, ConfirmDialogComponent, CustomDateFormatPipe, DateDiffPipe, GlobalConstants, SliceToTwoPipe, StorageService, ToastMsgService, ViewpasswordPopupComponent, httpErrorInterceptor };
package/package.json CHANGED
@@ -1,49 +1,38 @@
1
1
  {
2
2
  "name": "common-header-lib",
3
- "version": "0.0.20",
3
+ "version": "0.20.01",
4
4
  "peerDependencies": {
5
- "@angular/common": "^14.2.0",
6
- "@angular/core": "^14.2.0",
7
- "@angular/forms": "^14.2.0",
8
- "@ngx-translate/core": "^13.0.0",
9
- "@angular/router": "^14.3.0",
10
- "@microsoft/signalr": "^7.0.12",
11
- "ngx-cookie-service": "^15.0.0",
12
- "ngx-toastr": "^15.2.2",
13
- "@msgpack/msgpack": "^2.8.0",
14
- "jsencrypt": "^3.3.2",
5
+ "@angular/cdk": "^20.2.0",
6
+ "@angular/common": "^20.3.0",
7
+ "@angular/core": "^20.3.0",
8
+ "@angular/forms": "^20.3.0",
9
+ "@angular/router": "^20.3.0",
10
+ "@ng-bootstrap/ng-bootstrap": "^19.0.0",
11
+ "@microsoft/signalr": "^7.0.12 || ^8.0.0",
12
+ "@msgpack/msgpack": "^2.8.0 || ^3.0.0",
13
+ "@ngx-translate/core": "^17.0.0",
14
+ "@ngx-translate/http-loader": "^17.0.0",
15
+ "bigint-crypto-utils": "^2.2.1 || ^3.0.0",
16
+ "bootstrap": "^5.3.6",
15
17
  "crypto-js": "^4.1.1",
16
- "bigint-crypto-utils": "^2.2.1",
17
- "@ngx-translate/http-loader": "^6.0.0",
18
- "@ng-bootstrap/ng-bootstrap": "^13.0.0",
19
- "bootstrap": "^5.3.6"
18
+ "jsencrypt": "^3.3.2",
19
+ "ngx-cookie-service": "^20.0.0",
20
+ "ngx-toastr": "^19.0.0",
21
+ "primeng": "^20.0.0"
20
22
  },
21
23
  "dependencies": {
22
24
  "tslib": "^2.3.0"
23
25
  },
24
- "type": "module",
26
+ "module": "fesm2022/common-header-lib.mjs",
27
+ "typings": "index.d.ts",
25
28
  "exports": {
26
- "./": {
27
- "import": "./fesm2020/your-lib.mjs",
28
- "require": "./bundles/your-lib.umd.js"
29
- },
30
29
  "./package.json": {
31
30
  "default": "./package.json"
32
31
  },
33
32
  ".": {
34
33
  "types": "./index.d.ts",
35
- "esm2020": "./esm2020/common-header-lib.mjs",
36
- "es2020": "./fesm2020/common-header-lib.mjs",
37
- "es2015": "./fesm2015/common-header-lib.mjs",
38
- "node": "./fesm2015/common-header-lib.mjs",
39
- "default": "./fesm2020/common-header-lib.mjs"
34
+ "default": "./fesm2022/common-header-lib.mjs"
40
35
  }
41
36
  },
42
- "module": "fesm2015/common-header-lib.mjs",
43
- "es2020": "fesm2020/common-header-lib.mjs",
44
- "esm2020": "esm2020/common-header-lib.mjs",
45
- "fesm2020": "fesm2020/common-header-lib.mjs",
46
- "fesm2015": "fesm2015/common-header-lib.mjs",
47
- "typings": "index.d.ts",
48
37
  "sideEffects": false
49
38
  }
@@ -79,6 +79,8 @@
79
79
  "Copy": "نسخ",
80
80
  "YouHaveNNotifications": "لديك {{count}} إشعارات",
81
81
  "Refresh": "تحديث",
82
+ "Required": "مطلوب",
83
+ "RequiredField": "حقل مطلوب",
82
84
  "LandingPageValidation": "يرجى اختيار اسم التطبيق",
83
85
  "SettingInvalidLobIdMsg": "خط الأعمال الذي تحاول تعيينه غير متوفر.",
84
86
  "Successful": "ناجح",
@@ -88,6 +90,7 @@
88
90
  "FailedToLoadLanguageFile": "فشل في تحميل ملف اللغة.",
89
91
  "PasswordViewSuccessMsg": "تم نسخ كلمة المرور إلى الحافظة",
90
92
  "SSHPasswordViewSuccessMsg": "تم إنشاء ملف كلمة المرور وتنزيله",
91
- "SSHPasswordViewErrorMsg": "فشل في إنشاء وتنزيل ملف كلمة المرور"
93
+ "SSHPasswordViewErrorMsg": "فشل في إنشاء وتنزيل ملف كلمة المرور",
94
+ "SessionTokenError": "خطأ في رمز الجلسة!"
92
95
  }
93
96
  }
@@ -79,6 +79,8 @@
79
79
  "Copy": "Kopieren",
80
80
  "YouHaveNNotifications": "Sie haben {{count}} Benachrichtigungen",
81
81
  "Refresh": "Aktualisieren",
82
+ "Required": "erforderlich",
83
+ "RequiredField": "Pflichtfeld",
82
84
  "LandingPageValidation": "Bitte wählen Sie den Anwendungsnamen",
83
85
  "SettingInvalidLobIdMsg": "Die LOB, die Sie festlegen möchten, ist nicht verfügbar.",
84
86
  "Successful": "Erfolgreich",
@@ -88,6 +90,7 @@
88
90
  "FailedToLoadLanguageFile": "Fehler beim Laden der Sprachdatei.",
89
91
  "PasswordViewSuccessMsg": "Passwort in die Zwischenablage kopiert",
90
92
  "SSHPasswordViewSuccessMsg": "Passwortdatei wurde erstellt und heruntergeladen",
91
- "SSHPasswordViewErrorMsg": "Fehler beim Erstellen und Herunterladen der Passwortdatei"
93
+ "SSHPasswordViewErrorMsg": "Fehler beim Erstellen und Herunterladen der Passwortdatei",
94
+ "SessionTokenError": "Sitzungstoken-Fehler!"
92
95
  }
93
96
  }
@@ -79,6 +79,8 @@
79
79
  "Copy": "Copy",
80
80
  "YouHaveNNotifications": "You have {{count}} notifications",
81
81
  "Refresh": "Refresh",
82
+ "Required": "required",
83
+ "RequiredField": "Required field",
82
84
  "LandingPageValidation": "Please Select Application Name",
83
85
  "SettingInvalidLobIdMsg": "The LOB you are trying to set is not available.",
84
86
  "Successful": "Successful",
@@ -88,6 +90,7 @@
88
90
  "FailedToLoadLanguageFile": "Failed to load language file.",
89
91
  "PasswordViewSuccessMsg": "Password Copied to Clipboard",
90
92
  "SSHPasswordViewSuccessMsg": "Password file generated and downloaded.",
91
- "SSHPasswordViewErrorMsg": "Failed to generate and download the password file."
93
+ "SSHPasswordViewErrorMsg": "Failed to generate and download the password file.",
94
+ "SessionTokenError": "Session Token Error!"
92
95
  }
93
96
  }
@@ -79,6 +79,8 @@
79
79
  "Copy": "Copiar",
80
80
  "YouHaveNNotifications": "Tienes {{count}} notificaciones",
81
81
  "Refresh": "Actualizar",
82
+ "Required": "obligatorio",
83
+ "RequiredField": "Campo obligatorio",
82
84
  "LandingPageValidation": "Por favor seleccione el nombre de la aplicación",
83
85
  "SettingInvalidLobIdMsg": "El LOB que está intentando establecer no está disponible.",
84
86
  "Successful": "Exitoso",
@@ -88,6 +90,7 @@
88
90
  "FailedToLoadLanguageFile": "Error al cargar el archivo de idioma.",
89
91
  "PasswordViewSuccessMsg": "Contraseña copiada al portapapeles",
90
92
  "SSHPasswordViewSuccessMsg": "El archivo de contraseña se generó y descargó",
91
- "SSHPasswordViewErrorMsg": "Error al generar y descargar el archivo de contraseña"
93
+ "SSHPasswordViewErrorMsg": "Error al generar y descargar el archivo de contraseña",
94
+ "SessionTokenError": "¡Error de token de sesión!"
92
95
  }
93
96
  }
@@ -79,6 +79,8 @@
79
79
  "Copy": "Copier",
80
80
  "YouHaveNNotifications": "Vous avez {{count}} notifications",
81
81
  "Refresh": "Actualiser",
82
+ "Required": "obligatoire",
83
+ "RequiredField": "Champ obligatoire",
82
84
  "LandingPageValidation": "Veuillez sélectionner le nom de l'application",
83
85
  "SettingInvalidLobIdMsg": "Le LOB que vous essayez de définir n'est pas disponible.",
84
86
  "Successful": "Réussi",
@@ -88,6 +90,7 @@
88
90
  "FailedToLoadLanguageFile": "Échec du chargement du fichier de langue.",
89
91
  "PasswordViewSuccessMsg": "Mot de passe copié dans le presse-papiers",
90
92
  "SSHPasswordViewSuccessMsg": "Le fichier de mot de passe a été généré et téléchargé",
91
- "SSHPasswordViewErrorMsg": "Échec de la génération et du téléchargement du fichier de mot de passe"
93
+ "SSHPasswordViewErrorMsg": "Échec de la génération et du téléchargement du fichier de mot de passe",
94
+ "SessionTokenError": "Erreur de jeton de session !"
92
95
  }
93
96
  }
@@ -79,6 +79,8 @@
79
79
  "Copy": "कॉपी",
80
80
  "YouHaveNNotifications": "आपके पास {{count}} सूचनाएँ हैं",
81
81
  "Refresh": "रीफ़्रेश",
82
+ "Required": "आवश्यक",
83
+ "RequiredField": "आवश्यक फ़ील्ड",
82
84
  "LandingPageValidation": "कृपया एप्लिकेशन का नाम चुनें",
83
85
  "SettingInvalidLobIdMsg": "जिस LOB को आप सेट करने का प्रयास कर रहे हैं वह उपलब्ध नहीं है।",
84
86
  "Successful": "सफल",
@@ -88,6 +90,7 @@
88
90
  "FailedToLoadLanguageFile": "भाषा फ़ाइल लोड करने में विफल।",
89
91
  "PasswordViewSuccessMsg": "पासवर्ड क्लिपबोर्ड पर कॉपी किया गया।",
90
92
  "SSHPasswordViewSuccessMsg": "पासवर्ड फ़ाइल बनाई गई और डाउनलोड की गई।",
91
- "SSHPasswordViewErrorMsg": "पासवर्ड फ़ाइल बनाने और डाउनलोड करने में विफल।"
93
+ "SSHPasswordViewErrorMsg": "पासवर्ड फ़ाइल बनाने और डाउनलोड करने में विफल।",
94
+ "SessionTokenError": "सत्र टोकन त्रुटि!"
92
95
  }
93
96
  }
@@ -79,6 +79,8 @@
79
79
  "Copy": "コピー",
80
80
  "YouHaveNNotifications": "{{count}} 件の通知があります",
81
81
  "Refresh": "更新",
82
+ "Required": "必須",
83
+ "RequiredField": "必須フィールド",
82
84
  "LandingPageValidation": "アプリケーション名を選択してください",
83
85
  "SettingInvalidLobIdMsg": "設定しようとしているLOBは利用できません。",
84
86
  "Successful": "成功",
@@ -88,6 +90,7 @@
88
90
  "FailedToLoadLanguageFile": "言語ファイルの読み込みに失敗しました。",
89
91
  "PasswordViewSuccessMsg": "パスワードがクリップボードにコピーされました",
90
92
  "SSHPasswordViewSuccessMsg": "パスワードファイルが生成され、ダウンロードされました",
91
- "SSHPasswordViewErrorMsg": "パスワードファイルの生成とダウンロードに失敗しました"
93
+ "SSHPasswordViewErrorMsg": "パスワードファイルの生成とダウンロードに失敗しました",
94
+ "SessionTokenError": "セッショントークンエラー!"
92
95
  }
93
96
  }