@skysoftware-co/bayan-hr-widgets-ui 1.0.38 → 1.0.39

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.
@@ -0,0 +1,43 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { HRSelfWidgetsService } from '../../services/hr-self-widgets.service';
3
+ import { IconDefinition } from '@fortawesome/angular-fontawesome';
4
+ import { DependentDocument, DependentDocumentGroup } from '../../shared/types/common';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ProfileDependentsDocumentsWidgetComponent implements OnInit {
7
+ private readonly service;
8
+ documents: DependentDocument[];
9
+ groupedDocuments: DependentDocumentGroup[];
10
+ isLoading: boolean;
11
+ baseUrl: string;
12
+ sectionTitle: string;
13
+ icon: import("@fortawesome/pro-light-svg-icons").IconDefinition;
14
+ viewIcon: IconDefinition;
15
+ downloadIcon: import("@fortawesome/pro-light-svg-icons").IconDefinition;
16
+ headerIconClass: string;
17
+ headerTextClass: string;
18
+ headerDividerClass: string;
19
+ valueClass: string;
20
+ viewIconClass: string;
21
+ downloadIconClass: string;
22
+ emptyStateContainerClass: string;
23
+ emptyStateTextClass: string;
24
+ cardClass: string;
25
+ rowClass: string;
26
+ rowPtClass: string;
27
+ columnClass: string;
28
+ responsiveTopSpacingColClass: string;
29
+ topSpacingColClass: string;
30
+ labelClass: string;
31
+ actionsColumnClass: string;
32
+ isLoadingChanged: EventEmitter<boolean>;
33
+ attachmentViewed: EventEmitter<any>;
34
+ attachmentDownloaded: EventEmitter<any>;
35
+ errorOccurred: EventEmitter<string>;
36
+ constructor(service: HRSelfWidgetsService);
37
+ groups: any[];
38
+ ngOnInit(): void;
39
+ onAttachmentView(doc: any): void;
40
+ onDownload(group: any): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProfileDependentsDocumentsWidgetComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProfileDependentsDocumentsWidgetComponent, "hr-profile-dependents-documents-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "sectionTitle": { "alias": "sectionTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "viewIcon": { "alias": "viewIcon"; "required": false; }; "downloadIcon": { "alias": "downloadIcon"; "required": false; }; "headerIconClass": { "alias": "headerIconClass"; "required": false; }; "headerTextClass": { "alias": "headerTextClass"; "required": false; }; "headerDividerClass": { "alias": "headerDividerClass"; "required": false; }; "valueClass": { "alias": "valueClass"; "required": false; }; "viewIconClass": { "alias": "viewIconClass"; "required": false; }; "downloadIconClass": { "alias": "downloadIconClass"; "required": false; }; "emptyStateContainerClass": { "alias": "emptyStateContainerClass"; "required": false; }; "emptyStateTextClass": { "alias": "emptyStateTextClass"; "required": false; }; "cardClass": { "alias": "cardClass"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "rowPtClass": { "alias": "rowPtClass"; "required": false; }; "columnClass": { "alias": "columnClass"; "required": false; }; "responsiveTopSpacingColClass": { "alias": "responsiveTopSpacingColClass"; "required": false; }; "topSpacingColClass": { "alias": "topSpacingColClass"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "actionsColumnClass": { "alias": "actionsColumnClass"; "required": false; }; }, { "isLoadingChanged": "isLoadingChanged"; "attachmentViewed": "attachmentViewed"; "attachmentDownloaded": "attachmentDownloaded"; "errorOccurred": "errorOccurred"; }, never, never, true, never>;
43
+ }
@@ -18,8 +18,6 @@ export declare class ProfilePersonalInfoContactWidgetComponent implements OnInit
18
18
  labelClass: string;
19
19
  valueClass: string;
20
20
  emergencyContactLabelClass: string;
21
- emergencyContactColumnClass: string;
22
- emergencyContactResponsiveColumnClass: string;
23
21
  emptyStateContainerClass: string;
24
22
  emptyStateTextClass: string;
25
23
  contactIcon: import("@fortawesome/pro-light-svg-icons").IconDefinition;
@@ -32,5 +30,5 @@ export declare class ProfilePersonalInfoContactWidgetComponent implements OnInit
32
30
  constructor(hrSelfWidgetsService: HRSelfWidgetsService);
33
31
  ngOnInit(): void;
34
32
  static ɵfac: i0.ɵɵFactoryDeclaration<ProfilePersonalInfoContactWidgetComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<ProfilePersonalInfoContactWidgetComponent, "hr-profile-personal-info-contact-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": true; }; "headerIconClass": { "alias": "headerIconClass"; "required": false; }; "headerTextClass": { "alias": "headerTextClass"; "required": false; }; "headerDividerClass": { "alias": "headerDividerClass"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "columnClass": { "alias": "columnClass"; "required": false; }; "responsiveTopSpacingColumnClass": { "alias": "responsiveTopSpacingColumnClass"; "required": false; }; "topSpacingBottomMdSpacingColumnClass": { "alias": "topSpacingBottomMdSpacingColumnClass"; "required": false; }; "topSpacingBottomSpacingColumnClass": { "alias": "topSpacingBottomSpacingColumnClass"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "valueClass": { "alias": "valueClass"; "required": false; }; "emergencyContactLabelClass": { "alias": "emergencyContactLabelClass"; "required": false; }; "emergencyContactColumnClass": { "alias": "emergencyContactColumnClass"; "required": false; }; "emergencyContactResponsiveColumnClass": { "alias": "emergencyContactResponsiveColumnClass"; "required": false; }; "emptyStateContainerClass": { "alias": "emptyStateContainerClass"; "required": false; }; "emptyStateTextClass": { "alias": "emptyStateTextClass"; "required": false; }; "contactIcon": { "alias": "contactIcon"; "required": false; }; "emergencyContactIcon": { "alias": "emergencyContactIcon"; "required": false; }; "sectionTitle": { "alias": "sectionTitle"; "required": false; }; "showEmergencyContact": { "alias": "showEmergencyContact"; "required": false; }; "emergencyContactRowClass": { "alias": "emergencyContactRowClass"; "required": false; }; }, { "isLoadingChanged": "isLoadingChanged"; "errorOccurred": "errorOccurred"; }, never, never, true, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProfilePersonalInfoContactWidgetComponent, "hr-profile-personal-info-contact-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": true; }; "headerIconClass": { "alias": "headerIconClass"; "required": false; }; "headerTextClass": { "alias": "headerTextClass"; "required": false; }; "headerDividerClass": { "alias": "headerDividerClass"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "columnClass": { "alias": "columnClass"; "required": false; }; "responsiveTopSpacingColumnClass": { "alias": "responsiveTopSpacingColumnClass"; "required": false; }; "topSpacingBottomMdSpacingColumnClass": { "alias": "topSpacingBottomMdSpacingColumnClass"; "required": false; }; "topSpacingBottomSpacingColumnClass": { "alias": "topSpacingBottomSpacingColumnClass"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "valueClass": { "alias": "valueClass"; "required": false; }; "emergencyContactLabelClass": { "alias": "emergencyContactLabelClass"; "required": false; }; "emptyStateContainerClass": { "alias": "emptyStateContainerClass"; "required": false; }; "emptyStateTextClass": { "alias": "emptyStateTextClass"; "required": false; }; "contactIcon": { "alias": "contactIcon"; "required": false; }; "emergencyContactIcon": { "alias": "emergencyContactIcon"; "required": false; }; "sectionTitle": { "alias": "sectionTitle"; "required": false; }; "showEmergencyContact": { "alias": "showEmergencyContact"; "required": false; }; "emergencyContactRowClass": { "alias": "emergencyContactRowClass"; "required": false; }; }, { "isLoadingChanged": "isLoadingChanged"; "errorOccurred": "errorOccurred"; }, never, never, true, never>;
36
34
  }
@@ -1,12 +1,13 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { Degree, Dependent, EntitlementsIndemnity, EntitlementsMedicalInsurance, EntitlementsTicket, EntitlementsVacation, EventOption, Experience, JobInformationContract, JobInformationMain, JobInformationSalary, JobInformationServiceCharge, MyBankInfo, PersonalInfoAddressDetails, PersonalInfoContactDetails, PersonalInfoMainDetails } from '../shared/types/common';
3
+ import { Degree, Dependent, DependentDocumentGroup, EntitlementsIndemnity, EntitlementsMedicalInsurance, EntitlementsTicket, EntitlementsVacation, EventOption, Experience, JobInformationContract, JobInformationMain, JobInformationSalary, JobInformationServiceCharge, MyBankInfo, PersonalInfoAddressDetails, PersonalInfoContactDetails, PersonalInfoMainDetails } from '../shared/types/common';
4
4
  import { BankInformationCacheService } from '../shared/services/bank-information-cache.service';
5
5
  import { EntitlementsCacheService } from '../shared/services/entitlements-cache.service';
6
6
  import { JobInformationCacheService } from '../shared/services/job-information-cache.service';
7
7
  import { PersonalInformationCacheService } from '../shared/services/personal-information-cache.service';
8
8
  import { QualificationsCacheService } from '../shared/services/qualifications-cache.service';
9
9
  import { ProfileEmployeeDependentsCach } from '../shared/services/profile-employee-dependents-cach';
10
+ import { ProfileDocumentsCacheService } from '../shared/services/profile-documents-cache-service';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class HRSelfWidgetsService {
12
13
  private http;
@@ -16,8 +17,9 @@ export declare class HRSelfWidgetsService {
16
17
  private readonly personalInformationCacheService;
17
18
  private readonly qualificationsCacheService;
18
19
  private readonly profileEmployeeDependentsCachService;
20
+ private readonly profileDocumentsCacheService;
19
21
  private readonly headers;
20
- constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService, entitlementsCacheService: EntitlementsCacheService, jobInformationCacheService: JobInformationCacheService, personalInformationCacheService: PersonalInformationCacheService, qualificationsCacheService: QualificationsCacheService, profileEmployeeDependentsCachService: ProfileEmployeeDependentsCach);
22
+ constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService, entitlementsCacheService: EntitlementsCacheService, jobInformationCacheService: JobInformationCacheService, personalInformationCacheService: PersonalInformationCacheService, qualificationsCacheService: QualificationsCacheService, profileEmployeeDependentsCachService: ProfileEmployeeDependentsCach, profileDocumentsCacheService: ProfileDocumentsCacheService);
21
23
  getMainDetails(baseUrl: string): Observable<any>;
22
24
  getUpcomingEvents(baseUrl: string, eventOption: EventOption): Observable<any>;
23
25
  getCalendar(baseUrl: string, month: number, year: number, monthsCount: number): Observable<any>;
@@ -43,6 +45,7 @@ export declare class HRSelfWidgetsService {
43
45
  getEmployeeDegrees(baseUrl: string, forceRefresh?: boolean): Observable<Degree[]>;
44
46
  getEmployeeDependents(baseUrl: string, forceRefresh?: boolean): Observable<Dependent[]>;
45
47
  getEmployeeExperiences(baseUrl: string, forceRefresh?: boolean): Observable<Experience[]>;
48
+ getDependentDocuments(baseUrl: string, forceRefresh?: boolean): Observable<DependentDocumentGroup[]>;
46
49
  static ɵfac: i0.ɵɵFactoryDeclaration<HRSelfWidgetsService, never>;
47
50
  static ɵprov: i0.ɵɵInjectableDeclaration<HRSelfWidgetsService>;
48
51
  }
@@ -0,0 +1,13 @@
1
+ import { Observable } from 'rxjs';
2
+ import { DependentDocumentGroup } from '../types/common';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ProfileDocumentsCacheService {
5
+ private baseUrl;
6
+ private dependentDocuments$;
7
+ getDependentDocuments(baseUrl: string): Observable<DependentDocumentGroup[]> | null;
8
+ setDependentDocuments(baseUrl: string, value: Observable<DependentDocumentGroup[]>): void;
9
+ clear(): void;
10
+ private ensureBaseUrl;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProfileDocumentsCacheService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<ProfileDocumentsCacheService>;
13
+ }
@@ -269,3 +269,23 @@ export type Dependent = {
269
269
  BirthDate: string | Date;
270
270
  NationalNumber: string | null;
271
271
  };
272
+ export interface DependentDocumentsResponse {
273
+ ResponseData: DependentDocumentGroup[];
274
+ ApiVersion: string;
275
+ }
276
+ export interface DependentDocumentGroup {
277
+ DependentName: string;
278
+ DependentTypeName: string;
279
+ Documents: DependentDocument[];
280
+ }
281
+ export interface DependentDocument {
282
+ DocumentTypeName: string;
283
+ DocumentNumber: string;
284
+ IssueDate: string;
285
+ ExpiryDate: string;
286
+ Attachments: Attachment[];
287
+ }
288
+ export interface Attachment {
289
+ Key: string;
290
+ ContentType: string;
291
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skysoftware-co/bayan-hr-widgets-ui",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "19.2.14",
6
6
  "@angular/core": "19.2.14",
package/public-api.d.ts CHANGED
@@ -28,3 +28,4 @@ export * from './lib/entitlements/profile-entitlements-ticket-widget/profile-ent
28
28
  export * from './lib/entitlements/profile-entitlements-medical-insurance-widget/profile-entitlements-medical-insurance-widget.component';
29
29
  export * from './lib/entitlements/profile-entitlements-medical-insurance-widget/components/medical-insurance-card/medical-insurance-card.component';
30
30
  export * from './lib/entitlements/profile-entitlements-others-widget/profile-entitlements-others-widget.component';
31
+ export * from './lib/profile-documents-widgets/profile-dependents-documents-widget/profile-dependents-documents-widget';