@skysoftware-co/bayan-hr-widgets-ui 2.0.26 → 2.0.27

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 (104) hide show
  1. package/ng-package.json +9 -0
  2. package/package.json +3 -15
  3. package/src/assets/i18n/ar.json +166 -0
  4. package/src/assets/i18n/en.json +166 -0
  5. package/src/assets/i18n/fr.json +166 -0
  6. package/src/lib/my-calendar-widget/my-calendar-widget.component.html +25 -0
  7. package/src/lib/my-calendar-widget/my-calendar-widget.component.ts +220 -0
  8. package/src/lib/my-main-details-widget/my-main-details-widget.component.html +157 -0
  9. package/src/lib/my-main-details-widget/my-main-details-widget.component.ts +179 -0
  10. package/src/lib/my-next-week-vacation-insights-widget/components/next-week-vacation-insights-popup/next-week-vacation-insights-popup.component.html +131 -0
  11. package/src/lib/my-next-week-vacation-insights-widget/components/next-week-vacation-insights-popup/next-week-vacation-insights-popup.component.ts +119 -0
  12. package/src/lib/my-next-week-vacation-insights-widget/my-next-week-vacation-insights-widget.component.html +35 -0
  13. package/src/lib/my-next-week-vacation-insights-widget/my-next-week-vacation-insights-widget.component.ts +110 -0
  14. package/src/lib/my-profile/address-widget/my-profile-address-widget.component.html +57 -0
  15. package/src/lib/my-profile/address-widget/my-profile-address-widget.component.ts +70 -0
  16. package/src/lib/my-profile/bank-info-widget/my-profile-bank-info-widget.component.html +101 -0
  17. package/src/lib/my-profile/bank-info-widget/my-profile-bank-info-widget.component.ts +89 -0
  18. package/src/lib/my-profile/contact-widget/my-profile-contact-widget.component.html +89 -0
  19. package/src/lib/my-profile/contact-widget/my-profile-contact-widget.component.ts +78 -0
  20. package/src/lib/my-profile/contract-widget/my-profile-contract-widget.component.html +63 -0
  21. package/src/lib/my-profile/contract-widget/my-profile-contract-widget.component.ts +73 -0
  22. package/src/lib/my-profile/degrees-widget/my-profile-degrees-widget-component.html +86 -0
  23. package/src/lib/my-profile/degrees-widget/my-profile-degrees-widget-component.ts +98 -0
  24. package/src/lib/my-profile/dependents-documents-widget/my-profile-dependents-documents-widget.html +83 -0
  25. package/src/lib/my-profile/dependents-documents-widget/my-profile-dependents-documents-widget.ts +126 -0
  26. package/src/lib/my-profile/documents-widgets/components/document-card/document-card.component.html +53 -0
  27. package/src/lib/my-profile/documents-widgets/components/document-card/document-card.component.ts +50 -0
  28. package/src/lib/my-profile/documents-widgets/components/document-row/document-row.component.html +48 -0
  29. package/src/lib/my-profile/documents-widgets/components/document-row/document-row.component.ts +44 -0
  30. package/src/lib/my-profile/documents-widgets/components/document-tablet-card/document-tablet-card.component.html +46 -0
  31. package/src/lib/my-profile/documents-widgets/components/document-tablet-card/document-tablet-card.component.ts +47 -0
  32. package/src/lib/my-profile/employee-dependents-widget/my-profile-employee-dependents-component.html +50 -0
  33. package/src/lib/my-profile/employee-dependents-widget/my-profile-employee-dependents-component.ts +63 -0
  34. package/src/lib/my-profile/entitlements-others-widget/my-profile-entitlements-others-widget.component.html +26 -0
  35. package/src/lib/my-profile/entitlements-others-widget/my-profile-entitlements-others-widget.component.ts +66 -0
  36. package/src/lib/my-profile/experiences-widget/my-profile-experiences-widget-component.html +93 -0
  37. package/src/lib/my-profile/experiences-widget/my-profile-experiences-widget-component.ts +102 -0
  38. package/src/lib/my-profile/indemnity-widget/my-profile-indemnity-widget.component.html +49 -0
  39. package/src/lib/my-profile/indemnity-widget/my-profile-indemnity-widget.component.ts +79 -0
  40. package/src/lib/my-profile/job-info-widget/my-profile-job-info-widget.component.html +71 -0
  41. package/src/lib/my-profile/job-info-widget/my-profile-job-info-widget.component.ts +73 -0
  42. package/src/lib/my-profile/languages-widget/my-profile-languages-widget.component.html +23 -0
  43. package/src/lib/my-profile/languages-widget/my-profile-languages-widget.component.ts +70 -0
  44. package/src/lib/my-profile/medical-insurance-widget/components/medical-insurance-card/medical-insurance-card.component.html +18 -0
  45. package/src/lib/my-profile/medical-insurance-widget/components/medical-insurance-card/medical-insurance-card.component.ts +29 -0
  46. package/src/lib/my-profile/medical-insurance-widget/my-profile-medical-insurance-widget.component.html +52 -0
  47. package/src/lib/my-profile/medical-insurance-widget/my-profile-medical-insurance-widget.component.ts +103 -0
  48. package/src/lib/my-profile/official-documents-widget/my-profile-official-documents-widget.html +82 -0
  49. package/src/lib/my-profile/official-documents-widget/my-profile-official-documents-widget.ts +119 -0
  50. package/src/lib/my-profile/other-nationalities-widget/my-profile-other-nationalities-widget.component.html +23 -0
  51. package/src/lib/my-profile/other-nationalities-widget/my-profile-other-nationalities-widget.component.ts +70 -0
  52. package/src/lib/my-profile/personal-info-main-widget/my-profile-personal-info-main-widget.component.html +115 -0
  53. package/src/lib/my-profile/personal-info-main-widget/my-profile-personal-info-main-widget.component.ts +75 -0
  54. package/src/lib/my-profile/salary-widget/my-profile-salary-widget.component.html +37 -0
  55. package/src/lib/my-profile/salary-widget/my-profile-salary-widget.component.ts +85 -0
  56. package/src/lib/my-profile/service-charge-widget/my-profile-service-charge-widget.component.html +16 -0
  57. package/src/lib/my-profile/service-charge-widget/my-profile-service-charge-widget.component.ts +101 -0
  58. package/src/lib/my-profile/ticket-widget/components/ticket-card/ticket-card.component.html +23 -0
  59. package/src/lib/my-profile/ticket-widget/components/ticket-card/ticket-card.component.ts +26 -0
  60. package/src/lib/my-profile/ticket-widget/my-profile-ticket-widget.component.html +68 -0
  61. package/src/lib/my-profile/ticket-widget/my-profile-ticket-widget.component.ts +93 -0
  62. package/src/lib/my-profile/vacations-widget/my-profile-vacations-widget.component.html +34 -0
  63. package/src/lib/my-profile/vacations-widget/my-profile-vacations-widget.component.ts +66 -0
  64. package/src/lib/my-team-subordinates-popup-widget/components/employee-main-info-card/employee-information-card.component.ts +65 -0
  65. package/src/lib/my-team-subordinates-popup-widget/components/employee-main-info-card/employee-main-info-card.component.html +57 -0
  66. package/src/lib/my-team-subordinates-popup-widget/components/my-team-subordinates-popup/my-team-popup.component.html +108 -0
  67. package/src/lib/my-team-subordinates-popup-widget/components/my-team-subordinates-popup/my-team-popup.component.ts +332 -0
  68. package/src/lib/my-upcoming-events-widget/components/event-item/event-item.component.html +53 -0
  69. package/src/lib/my-upcoming-events-widget/components/event-item/event-item.component.ts +42 -0
  70. package/src/lib/my-upcoming-events-widget/components/event-tab-bar/event-tab-bar.component.html +21 -0
  71. package/src/lib/my-upcoming-events-widget/components/event-tab-bar/event-tab-bar.component.ts +44 -0
  72. package/src/lib/my-upcoming-events-widget/components/events-popup/events-popup.component.html +67 -0
  73. package/src/lib/my-upcoming-events-widget/components/events-popup/events-popup.component.ts +74 -0
  74. package/src/lib/my-upcoming-events-widget/my-upcoming-events-widget.component.html +74 -0
  75. package/src/lib/my-upcoming-events-widget/my-upcoming-events-widget.component.ts +199 -0
  76. package/src/lib/services/hr-self-widgets.service.ts +624 -0
  77. package/src/lib/shared/components/card-header/card-header.component.html +4 -0
  78. package/src/lib/shared/components/card-header/card-header.component.ts +18 -0
  79. package/src/lib/shared/components/hr-employee-calendar/hr-employee-calendar.component.html +47 -0
  80. package/src/lib/shared/components/hr-employee-calendar/hr-employee-calendar.component.ts +193 -0
  81. package/src/lib/shared/components/info-field/info-field.component.html +2 -0
  82. package/src/lib/shared/components/info-field/info-field.component.ts +20 -0
  83. package/src/lib/shared/components/widget-card/widget-card-component.html +3 -0
  84. package/src/lib/shared/components/widget-card/widget-card-component.ts +17 -0
  85. package/src/lib/shared/pipes/translate.pipe.ts +34 -0
  86. package/src/lib/shared/services/bank-information-cache.service.ts +29 -0
  87. package/src/lib/shared/services/common-methods.service.ts +33 -0
  88. package/src/lib/shared/services/constants.service.ts +12 -0
  89. package/src/lib/shared/services/entitlements-cache.service.ts +94 -0
  90. package/src/lib/shared/services/job-information-cache.service.ts +72 -0
  91. package/src/lib/shared/services/my-team-popup.service.ts +34 -0
  92. package/src/lib/shared/services/personal-information-cache.service.ts +77 -0
  93. package/src/lib/shared/services/profile-documents-cache-service.ts +44 -0
  94. package/src/lib/shared/services/profile-employee-dependents-cach.ts +37 -0
  95. package/src/lib/shared/services/qualifications-cache.service.ts +45 -0
  96. package/src/lib/shared/services/translate.service.ts +35 -0
  97. package/src/lib/shared/types/common.ts +359 -0
  98. package/src/public-api.ts +35 -0
  99. package/tsconfig.lib.json +11 -0
  100. package/tsconfig.lib.prod.json +9 -0
  101. package/tsconfig.spec.json +8 -0
  102. package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs +0 -4812
  103. package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs.map +0 -1
  104. package/types/skysoftware-co-bayan-hr-widgets-ui.d.ts +0 -1308
@@ -0,0 +1,37 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import {
4
+ Dependent,
5
+ PersonalInfoAddressDetails,
6
+ PersonalInfoContactDetails,
7
+ PersonalInfoMainDetails,
8
+ } from '../types/common';
9
+
10
+ @Injectable({
11
+ providedIn: 'root',
12
+ })
13
+ export class ProfileEmployeeDependentsCach {
14
+ private baseUrl = '';
15
+
16
+ private dependents$: Observable<Dependent[]> | null = null;
17
+
18
+ clear(): void {
19
+ this.baseUrl = '';
20
+ }
21
+
22
+ private ensureBaseUrl(baseUrl: string): void {
23
+ if (this.baseUrl && this.baseUrl !== baseUrl) {
24
+ this.clear();
25
+ }
26
+ this.baseUrl = baseUrl;
27
+ }
28
+
29
+ setDependents(baseUrl: string, value: Observable<Dependent[]>): void {
30
+ this.ensureBaseUrl(baseUrl);
31
+ this.dependents$ = value;
32
+ }
33
+
34
+ getDependents(baseUrl: string): Observable<Dependent[]> | null {
35
+ return this.baseUrl === baseUrl ? this.dependents$ : null;
36
+ }
37
+ }
@@ -0,0 +1,45 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { Degree, Experience } from '../types/common';
4
+
5
+ @Injectable({
6
+ providedIn: 'root',
7
+ })
8
+ export class QualificationsCacheService {
9
+ private baseUrl = '';
10
+
11
+ private degrees$: Observable<Degree[]> | null = null;
12
+ private experiences$: Observable<Experience[]> | null = null;
13
+
14
+ getDegrees(baseUrl: string): Observable<Degree[]> | null {
15
+ return this.baseUrl === baseUrl ? this.degrees$ : null;
16
+ }
17
+
18
+ setDegrees(baseUrl: string, value: Observable<Degree[]>): void {
19
+ this.ensureBaseUrl(baseUrl);
20
+ this.degrees$ = value;
21
+ }
22
+
23
+ getExperiences(baseUrl: string): Observable<Experience[]> | null {
24
+ return this.baseUrl === baseUrl ? this.experiences$ : null;
25
+ }
26
+
27
+ setExperiences(baseUrl: string, value: Observable<Experience[]>): void {
28
+ this.ensureBaseUrl(baseUrl);
29
+ this.experiences$ = value;
30
+ }
31
+
32
+ clear(): void {
33
+ this.baseUrl = '';
34
+ this.degrees$ = null;
35
+ this.experiences$ = null;
36
+ }
37
+
38
+ private ensureBaseUrl(baseUrl: string): void {
39
+ if (this.baseUrl && this.baseUrl !== baseUrl) {
40
+ this.clear();
41
+ }
42
+
43
+ this.baseUrl = baseUrl;
44
+ }
45
+ }
@@ -0,0 +1,35 @@
1
+ import { Injectable } from '@angular/core';
2
+ import en from '../../../assets/i18n/en.json';
3
+ import ar from '../../../assets/i18n/ar.json';
4
+ import fr from '../../../assets/i18n/fr.json';
5
+
6
+ const BUILT_IN_LEXICONS: Record<string, Record<string, string>> = { en, ar, fr };
7
+
8
+ @Injectable({ providedIn: 'root' })
9
+ export class HRTranslateService {
10
+ private currentLanguage: string = 'en';
11
+ private lexicon: Record<string, string> = {};
12
+
13
+ setLanguage(language: string): void {
14
+ this.currentLanguage = language;
15
+ }
16
+
17
+ getLanguage(): string {
18
+ return this.currentLanguage;
19
+ }
20
+
21
+ setLexicon(lexicon: Record<string, string>): void {
22
+ this.lexicon = lexicon;
23
+ }
24
+
25
+ getLexicon(): Record<string, string> {
26
+ return this.lexicon;
27
+ }
28
+
29
+ translateBuiltIn(key: string): string {
30
+ if (!key) return '';
31
+ const builtIn = BUILT_IN_LEXICONS[this.currentLanguage] || {};
32
+ const foundKey = Object.keys(builtIn).find(k => k.toLowerCase() === key.toLowerCase());
33
+ return foundKey ? builtIn[foundKey] : key;
34
+ }
35
+ }
@@ -0,0 +1,359 @@
1
+ export type MyMainDetailsWidgetDetails = {
2
+ EmployeeNumber: string;
3
+ EmployeeName: string;
4
+ EmployeeNameInitials: string;
5
+ PositionName: string;
6
+ GradeName: string | null;
7
+ PhotoPath: string | null;
8
+ ReportingTo: string | null;
9
+ ServiceYears: string;
10
+ VacationBalances: VacationBalance[];
11
+ AttendanceUrl: string | null;
12
+ VacationStatementUrl: string | null;
13
+ };
14
+
15
+ export type VacationBalance = {
16
+ VacationTypeName: string;
17
+ VacationTypeColor: string;
18
+ CurrentBalance: number | null;
19
+ };
20
+
21
+ export enum MainWidgetShortcut {
22
+ Profile,
23
+ PaySlip,
24
+ Attendance,
25
+ VacationStatement,
26
+ Loans,
27
+ }
28
+
29
+ export enum EventOption {
30
+ Birthday = 1,
31
+ PublicHoliday = 2,
32
+ All = 3,
33
+ }
34
+
35
+ export enum RelativeDay {
36
+ Today = 0,
37
+ Tomorrow = 1,
38
+ TwoDays = 2,
39
+ }
40
+
41
+ export enum PublicHolidayWeekContext {
42
+ ThisWeek = 0,
43
+ NextWeek = 1,
44
+ }
45
+
46
+ export type Birthday = {
47
+ EmployeePropertySymbol: string;
48
+ EmployeePropertyName: string;
49
+ EmployeeShortName: string;
50
+ Birthdate: Date;
51
+ RelativeDay: RelativeDay;
52
+ };
53
+
54
+ export type PublicHoliday = {
55
+ StartDate: Date;
56
+ EndDate: Date;
57
+ Description: string;
58
+ WeekContext: PublicHolidayWeekContext;
59
+ };
60
+
61
+ export type UpcomingEventsV2 = {
62
+ Birthdays: Birthday[];
63
+ PublicHolidays: PublicHoliday[];
64
+ IsWeekendConfigured: boolean;
65
+ };
66
+
67
+ export enum EventTypeEnum {
68
+ Birthdays = 1,
69
+ PublicHolidays = 2,
70
+ }
71
+
72
+ export type FilteredUpcomingEvent = {
73
+ EventDate: Date;
74
+ Name: string;
75
+ EventType: EventTypeEnum;
76
+ Description: string;
77
+ StartDate?: Date;
78
+ EndDate?: Date;
79
+ IsIn2Days?: boolean;
80
+ PropertyName?: string;
81
+ PropertySymbol?: string;
82
+ };
83
+
84
+ // Calendar types
85
+
86
+ export type DatePeriod = {
87
+ StartDate: Date;
88
+ EndDate: Date;
89
+ };
90
+
91
+ export type CalendarResponse = {
92
+ OffDays: Date[];
93
+ PublicHolidays: { Description: string; StartDate: Date; EndDate: Date }[];
94
+ Vacations: { VacationTypeName: string; Color: string; StartDate: Date; EndDate: Date }[];
95
+ Events: { Description: string; StartDate: Date; EndDate: Date }[];
96
+ };
97
+
98
+ export type ScheduleCalenderVacation = {
99
+ Color: string | null;
100
+ VacationType: ScheduleVacationTypes;
101
+ Description: string;
102
+ VacationDays: DatePeriod;
103
+ };
104
+
105
+ export enum ScheduleVacationTypes {
106
+ DaysOff = 1,
107
+ PublicHoliday = 2,
108
+ Vacations = 3,
109
+ AddedVacations = 4,
110
+ Events = 5,
111
+ }
112
+
113
+ export type PersonalInfoMainDetails = {
114
+ EmployeeName: string | null;
115
+ EmployeeNameAlternate: string | null;
116
+ NationalityName: string | null;
117
+ NationalNumber: string | null;
118
+ SocialSecurityNumber: string | null;
119
+ MaritalStateName: string | null;
120
+ BirthDate: string | Date | null;
121
+ BirthPlace: string | null;
122
+ BloodTypeCode: string | null;
123
+ ReligionName: string | null;
124
+ MinistryOfLaborNumber: string | null;
125
+ };
126
+
127
+ export type PersonalInfoContactEmergencyContact = {
128
+ Name: string | null;
129
+ Relation: string | null;
130
+ PhoneNumber: string | null;
131
+ };
132
+
133
+ export type PersonalInfoContactDetails = {
134
+ MobileNumber: string | null;
135
+ HomePhone: string | null;
136
+ BusinessEmail: string | null;
137
+ Email: string | null;
138
+ EmergencyContactLegacy: string | null;
139
+ EmergencyContact: PersonalInfoContactEmergencyContact | null;
140
+ };
141
+
142
+ export type PersonalInfoAddressDetails = {
143
+ Address: string | null;
144
+ City: string | null;
145
+ POBox: string | null;
146
+ PostalCode: string | null;
147
+ };
148
+
149
+ export type MyBankInfo = {
150
+ IsMainBank: boolean;
151
+ BankName: string | null;
152
+ BranchName: string | null;
153
+ IBAN: string | null;
154
+ AccountNumber: string | null;
155
+ Beneficiary: string | null;
156
+ TransferAmount: number | null;
157
+ };
158
+
159
+ export type JobInformationMain = {
160
+ AdminUnitName: string | null;
161
+ PositionName: string | null;
162
+ GradeName: string | null;
163
+ JoiningDate: Date | null;
164
+ CorporateJoiningDate: Date | null;
165
+ SponsorName: string | null;
166
+ };
167
+
168
+ export type JobInformationContract = {
169
+ ContractTypeName: string | null;
170
+ ContractStartDate: Date | null;
171
+ ContractEndDate: Date | null;
172
+ ContractMaritalStateName: string | null;
173
+ ContractDependentsCount: number | null;
174
+ };
175
+
176
+ export type JobInformationSalary = {
177
+ GrossSalary: number | null;
178
+ BasicSalary: number | null;
179
+ CurrentBasicSalary?: number | null;
180
+ Allowances: Allowances[] | null;
181
+ };
182
+ export type Allowances = {
183
+ AllowanceName: string | null;
184
+ AllowanceAmount: number | null;
185
+ };
186
+
187
+ export enum ServiceChargeEntitlementMode {
188
+ Points = 1,
189
+ SalaryRatio = 2,
190
+ FixedAmount = 3,
191
+ FixedRate = 4,
192
+ }
193
+
194
+ export type JobInformationServiceCharge = {
195
+ ServiceChargeEntitlementMode: ServiceChargeEntitlementMode;
196
+ ServiceChargeValue: number | null;
197
+ };
198
+
199
+ export enum VacationPopupType {
200
+ Upcoming = 1,
201
+ ExpectedToReturn = 2,
202
+ }
203
+ export type ScheduleRequestsResponse = {
204
+ PendingVacationRequests: { VacationTypeName: string; Color: string; StartDate: Date; EndDate: Date }[];
205
+ PendingEventRequests: { Description: string; StartDate: Date; EndDate: Date }[];
206
+ };
207
+
208
+ export type EntitlementsVacation = {
209
+ VacationTypeName: string | null;
210
+ EntitlementDays: number | null;
211
+ };
212
+
213
+ export type EntitlementsIndemnity = {
214
+ IsEligibleForIndemnity: boolean | null;
215
+ IndemnityServiceYears: number | null;
216
+ IndemnityStartDate: string | Date | null;
217
+ IndemnitySalary: number | null;
218
+ };
219
+
220
+ export type EmployeeTicketDetails = {
221
+ EmployeeFirstName: string | null;
222
+ TicketSectorName: string | null;
223
+ TicketClassName: string | null;
224
+ MonthsPerTicketEntitlement: number | null;
225
+ };
226
+
227
+ export type DependentTicketDetails = {
228
+ DependentName: string | null;
229
+ DependentTypeName: string | null;
230
+ MonthsPerTicketEntitlement: number | null;
231
+ };
232
+
233
+ export type EntitlementsTicket = {
234
+ EmployeeTicketDetails: EmployeeTicketDetails | null;
235
+ DependentTicketDetails: DependentTicketDetails[] | null;
236
+ };
237
+
238
+ export type EmployeeMedicalInsurance = {
239
+ EmployeeFirstName: string | null;
240
+ MedicalInsuranceClassName: string | null;
241
+ MedicalInsuranceNumber: string | null;
242
+ CoverageDate: Date | null;
243
+ };
244
+
245
+ export type DependentsMedicalInsurance = {
246
+ DependentName: string | null;
247
+ DependentTypeName: string | null;
248
+ MedicalInsuranceClassName: string | null;
249
+ MedicalInsuranceNumber: string | null;
250
+ CoverageDate: Date | null;
251
+ };
252
+
253
+ export type EntitlementsMedicalInsurance = {
254
+ EmployeeMedicalInsurance: EmployeeMedicalInsurance | null;
255
+ DependentsMedicalInsurance: DependentsMedicalInsurance[] | null;
256
+ TotalEmployeeShare: number | null;
257
+ TotalEmployerShare: number | null;
258
+ };
259
+
260
+ export type Degree = {
261
+ DegreeName: string;
262
+ DegreeYear: string;
263
+ CountryName: string;
264
+ Specialty: string | null;
265
+ Institute: string | null;
266
+ Document: DocumentModel | null;
267
+ };
268
+
269
+ export type Experience = {
270
+ StartDate: string | Date;
271
+ EndDate: string | Date;
272
+ Employer: string;
273
+ Position: string;
274
+ TerminationReason: string;
275
+ Document: DocumentModel | null;
276
+ };
277
+
278
+ export type DocumentModel = {
279
+ Key: string;
280
+ ContentType: string;
281
+ };
282
+
283
+ export type Dependent = {
284
+ DependentName: string;
285
+ DependentTypeName: string;
286
+ BirthDate: string | Date;
287
+ NationalNumber: string | null;
288
+ };
289
+
290
+ export interface DependentDocumentsResponse {
291
+ ResponseData: DependentDocumentGroup[];
292
+ ApiVersion: string;
293
+ }
294
+
295
+ export interface DependentDocumentGroup {
296
+ DependentName: string;
297
+ DependentTypeName: string;
298
+ Documents: DocumentRow[];
299
+ }
300
+
301
+ export interface DocumentRow {
302
+ DocumentTypeName: string;
303
+ DocumentNumber: string;
304
+ IssueDate: string;
305
+ ExpiryDate: string;
306
+ Attachments: Attachment[];
307
+ }
308
+
309
+ export interface Attachment {
310
+ Key: string;
311
+ ContentType: string;
312
+ }
313
+
314
+ export interface PersonalDocument {
315
+ DocumentTypeName: string;
316
+ DocumentNumber: string;
317
+ IssueDate: string;
318
+ ExpiryDate: string;
319
+ Attachments: Attachment[];
320
+ }
321
+
322
+ export type SubordinateDTO = {
323
+ EmployeeNumber: string;
324
+ EmployeeName: string;
325
+ EmployeeNameInitials: string;
326
+ PositionName: string;
327
+ GradeName: string;
328
+ PhotoPath: string;
329
+ PropertyName?: string;
330
+ PropertySymbol?: string;
331
+ AdminUnitName?: string;
332
+ MobileNumber?: string;
333
+ PersonalEmail?: string;
334
+ BusinessEmail?: string;
335
+ };
336
+
337
+ export type SubordinatesPaginationDTO = {
338
+ PageIndex: number;
339
+ PageSize: number;
340
+ TotalPages: number;
341
+ TotalCount: number;
342
+ };
343
+
344
+ export type SubordinatesApiResponse = {
345
+ Data: SubordinateDTO[];
346
+ Pagination: SubordinatesPaginationDTO;
347
+ };
348
+
349
+ export type EmployeeMainInfo = {
350
+ EmployeeNumber: string;
351
+ EmployeeName: string;
352
+ PhotoKey: string;
353
+ PositionName: string;
354
+ AdminUnitName: string;
355
+ GradeName: string | null;
356
+ PropertyName: string;
357
+ PropertySymbol: string;
358
+ EmployeeNameInitials: string;
359
+ };
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Public API Surface of shared-ui
3
+ */
4
+
5
+ export * from './lib/my-main-details-widget/my-main-details-widget.component';
6
+ export * from './lib/my-upcoming-events-widget/my-upcoming-events-widget.component';
7
+ export * from './lib/shared/types/common';
8
+ export * from './lib/shared/services/constants.service';
9
+ export * from './lib/shared/components/card-header/card-header.component';
10
+ export * from './lib/my-calendar-widget/my-calendar-widget.component';
11
+ export * from './lib/shared/components/hr-employee-calendar/hr-employee-calendar.component';
12
+ export * from './lib/my-profile/bank-info-widget/my-profile-bank-info-widget.component';
13
+ export * from './lib/my-profile/personal-info-main-widget/my-profile-personal-info-main-widget.component';
14
+ export * from './lib/my-profile/contact-widget/my-profile-contact-widget.component';
15
+ export * from './lib/my-profile/languages-widget/my-profile-languages-widget.component';
16
+ export * from './lib/my-profile/other-nationalities-widget/my-profile-other-nationalities-widget.component';
17
+ export * from './lib/my-profile/address-widget/my-profile-address-widget.component';
18
+ export * from './lib/my-profile/job-info-widget/my-profile-job-info-widget.component';
19
+ export * from './lib/my-profile/contract-widget/my-profile-contract-widget.component';
20
+ export * from './lib/my-profile/salary-widget/my-profile-salary-widget.component';
21
+ export * from './lib/my-profile/service-charge-widget/my-profile-service-charge-widget.component';
22
+ export * from './lib/my-next-week-vacation-insights-widget/my-next-week-vacation-insights-widget.component';
23
+ export * from './lib/my-profile/experiences-widget/my-profile-experiences-widget-component';
24
+ export * from './lib/my-profile/degrees-widget/my-profile-degrees-widget-component';
25
+ export * from './lib/my-profile/employee-dependents-widget/my-profile-employee-dependents-component';
26
+ export * from './lib/my-profile/vacations-widget/my-profile-vacations-widget.component';
27
+ export * from './lib/my-profile/indemnity-widget/my-profile-indemnity-widget.component';
28
+ export * from './lib/my-profile/ticket-widget/my-profile-ticket-widget.component';
29
+ export * from './lib/my-profile/medical-insurance-widget/my-profile-medical-insurance-widget.component';
30
+ export * from './lib/my-profile/entitlements-others-widget/my-profile-entitlements-others-widget.component';
31
+ export * from './lib/my-profile/dependents-documents-widget/my-profile-dependents-documents-widget';
32
+ export * from './lib/my-profile/official-documents-widget/my-profile-official-documents-widget';
33
+ export * from './lib/shared/services/translate.service';
34
+ export * from './lib/shared/pipes/translate.pipe';
35
+ export * from './lib/my-team-subordinates-popup-widget/components/my-team-subordinates-popup/my-team-popup.component';
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../out-tsc/lib",
5
+ "declaration": true,
6
+ "declarationMap": true,
7
+ "inlineSources": true,
8
+ "types": []
9
+ },
10
+ "exclude": ["**/*.spec.ts"]
11
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.lib.json",
3
+ "compilerOptions": {
4
+ "declarationMap": false
5
+ },
6
+ "angularCompilerOptions": {
7
+ "compilationMode": "partial"
8
+ }
9
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../../out-tsc/spec",
5
+ "types": ["jasmine"]
6
+ },
7
+ "include": ["**/*.spec.ts", "**/*.d.ts"]
8
+ }