@skysoftware-co/bayan-hr-widgets-ui 1.0.40 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs +281 -55
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs.map +1 -1
- package/lib/profile-documents-widgets/profile-official-documents-widget/profile-official-documents-widget.d.ts +41 -0
- package/lib/services/hr-self-widgets.service.d.ts +2 -1
- package/lib/shared/services/profile-documents-cache-service.d.ts +4 -1
- package/lib/shared/types/common.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,41 @@
|
|
|
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 * as i0 from "@angular/core";
|
|
5
|
+
export declare class ProfilePersonalDocumentsWidgetComponent implements OnInit {
|
|
6
|
+
private readonly service;
|
|
7
|
+
documents: any[];
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
employeeName: string;
|
|
11
|
+
sectionTitle: string;
|
|
12
|
+
icon: import("@fortawesome/pro-light-svg-icons").IconDefinition;
|
|
13
|
+
viewIcon: IconDefinition;
|
|
14
|
+
downloadIcon: import("@fortawesome/pro-light-svg-icons").IconDefinition;
|
|
15
|
+
headerIconClass: string;
|
|
16
|
+
headerTextClass: string;
|
|
17
|
+
headerDividerClass: string;
|
|
18
|
+
valueClass: string;
|
|
19
|
+
viewIconClass: string;
|
|
20
|
+
downloadIconClass: string;
|
|
21
|
+
emptyStateContainerClass: string;
|
|
22
|
+
emptyStateTextClass: string;
|
|
23
|
+
cardClass: string;
|
|
24
|
+
rowClass: string;
|
|
25
|
+
rowPtClass: string;
|
|
26
|
+
columnClass: string;
|
|
27
|
+
responsiveTopSpacingColClass: string;
|
|
28
|
+
topSpacingColClass: string;
|
|
29
|
+
labelClass: string;
|
|
30
|
+
actionsColumnClass: string;
|
|
31
|
+
isLoadingChanged: EventEmitter<boolean>;
|
|
32
|
+
attachmentViewed: EventEmitter<any>;
|
|
33
|
+
attachmentDownloaded: EventEmitter<any>;
|
|
34
|
+
errorOccurred: EventEmitter<string>;
|
|
35
|
+
constructor(service: HRSelfWidgetsService);
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
onAttachmentView(doc: any): void;
|
|
38
|
+
onDownload(doc: any): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfilePersonalDocumentsWidgetComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProfilePersonalDocumentsWidgetComponent, "hr-profile-personal-documents-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "employeeName": { "alias": "employeeName"; "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>;
|
|
41
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Degree, Dependent, DependentDocumentGroup, 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, PersonalDocument, 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';
|
|
@@ -46,6 +46,7 @@ export declare class HRSelfWidgetsService {
|
|
|
46
46
|
getEmployeeDependents(baseUrl: string, forceRefresh?: boolean): Observable<Dependent[]>;
|
|
47
47
|
getEmployeeExperiences(baseUrl: string, forceRefresh?: boolean): Observable<Experience[]>;
|
|
48
48
|
getDependentDocuments(baseUrl: string, forceRefresh?: boolean): Observable<DependentDocumentGroup[]>;
|
|
49
|
+
getPersonalDocuments(baseUrl: string, forceRefresh?: boolean): Observable<PersonalDocument[]>;
|
|
49
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<HRSelfWidgetsService, never>;
|
|
50
51
|
static ɵprov: i0.ɵɵInjectableDeclaration<HRSelfWidgetsService>;
|
|
51
52
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { DependentDocumentGroup } from '../types/common';
|
|
2
|
+
import { DependentDocumentGroup, PersonalDocument } from '../types/common';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ProfileDocumentsCacheService {
|
|
5
5
|
private baseUrl;
|
|
6
6
|
private dependentDocuments$;
|
|
7
|
+
private personalDocuments$;
|
|
7
8
|
getDependentDocuments(baseUrl: string): Observable<DependentDocumentGroup[]> | null;
|
|
8
9
|
setDependentDocuments(baseUrl: string, value: Observable<DependentDocumentGroup[]>): void;
|
|
10
|
+
getPersonalDocuments(baseUrl: string): Observable<PersonalDocument[]> | null;
|
|
11
|
+
setPersonalDocuments(baseUrl: string, value: Observable<PersonalDocument[]>): void;
|
|
9
12
|
clear(): void;
|
|
10
13
|
private ensureBaseUrl;
|
|
11
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileDocumentsCacheService, never>;
|
|
@@ -289,3 +289,10 @@ export interface Attachment {
|
|
|
289
289
|
Key: string;
|
|
290
290
|
ContentType: string;
|
|
291
291
|
}
|
|
292
|
+
export interface PersonalDocument {
|
|
293
|
+
DocumentTypeName: string;
|
|
294
|
+
DocumentNumber: string;
|
|
295
|
+
IssueDate: string;
|
|
296
|
+
ExpiryDate: string;
|
|
297
|
+
Attachments: Attachment[];
|
|
298
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -29,3 +29,4 @@ export * from './lib/entitlements/profile-entitlements-medical-insurance-widget/
|
|
|
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
31
|
export * from './lib/profile-documents-widgets/profile-dependents-documents-widget/profile-dependents-documents-widget';
|
|
32
|
+
export * from './lib/profile-documents-widgets/profile-official-documents-widget/profile-official-documents-widget';
|