@skysoftware-co/bayan-hr-widgets-ui 1.0.33 → 1.0.35
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/README.md +97 -12
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs +141 -8
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs.map +1 -1
- package/lib/my-vacation-team-widget/components/vacation-subordinates-popup/vacation-subordinates-popup.component.d.ts +38 -0
- package/lib/my-vacation-team-widget/my-vacation-team-widget.component.d.ts +33 -0
- package/lib/profile-employee-dependents-widget/profile-employee-dependents-component.d.ts +22 -0
- package/lib/services/hr-self-widgets.service.d.ts +5 -2
- package/lib/shared/components/widget-card/widget-card-component.d.ts +10 -0
- package/lib/shared/services/profile-employee-dependents-cach.d.ts +13 -0
- package/lib/shared/types/common.d.ts +9 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { DxDataGridComponent } from 'devextreme-angular';
|
|
3
|
+
import { BayanEmployeeBadgeDTO } from '@skysoftware-co/bayan-components-ui';
|
|
4
|
+
import { HttpClient } from '@angular/common/http';
|
|
5
|
+
import CustomStore from 'devextreme/data/custom_store';
|
|
6
|
+
import { VacationPopupType } from '../../../shared/types/common';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class HRVacationSubordinatesPopupComponent {
|
|
9
|
+
private http;
|
|
10
|
+
dataGrid: DxDataGridComponent;
|
|
11
|
+
popupVisible: boolean;
|
|
12
|
+
popupType: VacationPopupType;
|
|
13
|
+
baseUrl: string;
|
|
14
|
+
width: string;
|
|
15
|
+
height: string;
|
|
16
|
+
gridHeight: string;
|
|
17
|
+
pageSize: number;
|
|
18
|
+
showProperty: boolean;
|
|
19
|
+
closePopupClickHandler: EventEmitter<any>;
|
|
20
|
+
popupTitle: string;
|
|
21
|
+
popupSubTitle: string;
|
|
22
|
+
keyExpr: string;
|
|
23
|
+
VacationPopupType: typeof VacationPopupType;
|
|
24
|
+
dataSource: CustomStore | null;
|
|
25
|
+
xMarkIcon: import("@fortawesome/pro-light-svg-icons").IconDefinition;
|
|
26
|
+
searchValue: string;
|
|
27
|
+
constructor(http: HttpClient);
|
|
28
|
+
onShown(): void;
|
|
29
|
+
private initDataSource;
|
|
30
|
+
onSearchValueChanged(e: any): void;
|
|
31
|
+
getPopupTitle(): string;
|
|
32
|
+
onPopupClose(): void;
|
|
33
|
+
onHidden(): void;
|
|
34
|
+
getEmployeeBadge(item: any): BayanEmployeeBadgeDTO;
|
|
35
|
+
handleEmployeePhotoError(employee: any): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HRVacationSubordinatesPopupComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HRVacationSubordinatesPopupComponent, "hr-vacation-subordinates-popup", never, { "popupVisible": { "alias": "popupVisible"; "required": false; }; "popupType": { "alias": "popupType"; "required": false; }; "baseUrl": { "alias": "baseUrl"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "gridHeight": { "alias": "gridHeight"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "showProperty": { "alias": "showProperty"; "required": false; }; }, { "closePopupClickHandler": "closePopupClickHandler"; }, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { HRTranslatePipe } from '../shared/pipes/translate.pipe';
|
|
3
|
+
import { SkyWidgetSectionItem } from '@skysoftware-co/sky-components-ui';
|
|
4
|
+
import { HRSelfWidgetsService } from '../services/hr-self-widgets.service';
|
|
5
|
+
import { VacationPopupType } from '../shared/types/common';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class MyVacationTeamWidgetComponent implements OnInit {
|
|
8
|
+
private selfWidgetsService;
|
|
9
|
+
private translatePipe;
|
|
10
|
+
baseUrl: string;
|
|
11
|
+
showProperty: boolean;
|
|
12
|
+
cardClass: string;
|
|
13
|
+
titleClass: string;
|
|
14
|
+
valueClass: string;
|
|
15
|
+
disabledValueClass: string;
|
|
16
|
+
upcomingContainerClass: string;
|
|
17
|
+
expectedContainerClass: string;
|
|
18
|
+
isLoadingChanged: EventEmitter<boolean>;
|
|
19
|
+
popupVisible: boolean;
|
|
20
|
+
popupType: VacationPopupType;
|
|
21
|
+
popupBaseUrl: string;
|
|
22
|
+
VacationPopupType: typeof VacationPopupType;
|
|
23
|
+
upcomingVacationsBadge: SkyWidgetSectionItem;
|
|
24
|
+
expectedToReturnBadge: SkyWidgetSectionItem;
|
|
25
|
+
constructor(selfWidgetsService: HRSelfWidgetsService, translatePipe: HRTranslatePipe);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
private loadVacationSummary;
|
|
28
|
+
openPopup(type: VacationPopupType): void;
|
|
29
|
+
closePopup(): void;
|
|
30
|
+
private initBadges;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MyVacationTeamWidgetComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MyVacationTeamWidgetComponent, "hr-my-vacation-team-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "showProperty": { "alias": "showProperty"; "required": false; }; "cardClass": { "alias": "cardClass"; "required": false; }; "titleClass": { "alias": "titleClass"; "required": false; }; "valueClass": { "alias": "valueClass"; "required": false; }; "disabledValueClass": { "alias": "disabledValueClass"; "required": false; }; "upcomingContainerClass": { "alias": "upcomingContainerClass"; "required": false; }; "expectedContainerClass": { "alias": "expectedContainerClass"; "required": false; }; }, { "isLoadingChanged": "isLoadingChanged"; }, never, never, true, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Dependent } from '../shared/types/common';
|
|
3
|
+
import { HRSelfWidgetsService } from '../services/hr-self-widgets.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DependentsWidgetComponent implements OnInit {
|
|
6
|
+
private readonly service;
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
sectionTitle: string;
|
|
9
|
+
icon: import("@fortawesome/pro-light-svg-icons").IconDefinition;
|
|
10
|
+
headerIconClass: string;
|
|
11
|
+
headerTextClass: string;
|
|
12
|
+
headerDividerClass: string;
|
|
13
|
+
emptyStateContainerClass: string;
|
|
14
|
+
emptyStateTextClass: string;
|
|
15
|
+
dependents: Dependent[];
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
isLoadingChanged: EventEmitter<boolean>;
|
|
18
|
+
constructor(service: HRSelfWidgetsService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DependentsWidgetComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DependentsWidgetComponent, "hr-profile-dependents-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "sectionTitle": { "alias": "sectionTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "headerIconClass": { "alias": "headerIconClass"; "required": false; }; "headerTextClass": { "alias": "headerTextClass"; "required": false; }; "headerDividerClass": { "alias": "headerDividerClass"; "required": false; }; "emptyStateContainerClass": { "alias": "emptyStateContainerClass"; "required": false; }; "emptyStateTextClass": { "alias": "emptyStateTextClass"; "required": false; }; }, { "isLoadingChanged": "isLoadingChanged"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { Degree, EntitlementsIndemnity, EntitlementsMedicalInsurance, EntitlementsTicket, EntitlementsVacation, EventOption, Experience, JobInformationContract, JobInformationMain, JobInformationSalary, JobInformationServiceCharge, MyBankInfo, PersonalInfoAddressDetails, PersonalInfoContactDetails, PersonalInfoMainDetails } from '../shared/types/common';
|
|
3
|
+
import { Degree, Dependent, 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
|
+
import { ProfileEmployeeDependentsCach } from '../shared/services/profile-employee-dependents-cach';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class HRSelfWidgetsService {
|
|
11
12
|
private http;
|
|
@@ -14,8 +15,9 @@ export declare class HRSelfWidgetsService {
|
|
|
14
15
|
private readonly jobInformationCacheService;
|
|
15
16
|
private readonly personalInformationCacheService;
|
|
16
17
|
private readonly qualificationsCacheService;
|
|
18
|
+
private readonly profileEmployeeDependentsCachService;
|
|
17
19
|
private readonly headers;
|
|
18
|
-
constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService, entitlementsCacheService: EntitlementsCacheService, jobInformationCacheService: JobInformationCacheService, personalInformationCacheService: PersonalInformationCacheService, qualificationsCacheService: QualificationsCacheService);
|
|
20
|
+
constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService, entitlementsCacheService: EntitlementsCacheService, jobInformationCacheService: JobInformationCacheService, personalInformationCacheService: PersonalInformationCacheService, qualificationsCacheService: QualificationsCacheService, profileEmployeeDependentsCachService: ProfileEmployeeDependentsCach);
|
|
19
21
|
getMainDetails(baseUrl: string): Observable<any>;
|
|
20
22
|
getUpcomingEvents(baseUrl: string, eventOption: EventOption): Observable<any>;
|
|
21
23
|
getCalendar(baseUrl: string, month: number, year: number, monthsCount: number): Observable<any>;
|
|
@@ -37,6 +39,7 @@ export declare class HRSelfWidgetsService {
|
|
|
37
39
|
getEntitlementsTicket(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsTicket | null>;
|
|
38
40
|
getEntitlementsMedicalInsurance(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsMedicalInsurance | null>;
|
|
39
41
|
getEmployeeDegrees(baseUrl: string, forceRefresh?: boolean): Observable<Degree[]>;
|
|
42
|
+
getEmployeeDependents(baseUrl: string, forceRefresh?: boolean): Observable<Dependent[]>;
|
|
40
43
|
getEmployeeExperiences(baseUrl: string, forceRefresh?: boolean): Observable<Experience[]>;
|
|
41
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<HRSelfWidgetsService, never>;
|
|
42
45
|
static ɵprov: i0.ɵɵInjectableDeclaration<HRSelfWidgetsService>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class WidgetCardComponent {
|
|
4
|
+
cardClass: string;
|
|
5
|
+
height: number;
|
|
6
|
+
contentTemplate: TemplateRef<any>;
|
|
7
|
+
context: any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetCardComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetCardComponent, "hr-widget-card", never, { "cardClass": { "alias": "cardClass"; "required": false; }; "height": { "alias": "height"; "required": false; }; "contentTemplate": { "alias": "contentTemplate"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Dependent } from '../types/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ProfileEmployeeDependentsCach {
|
|
5
|
+
private baseUrl;
|
|
6
|
+
private dependents$;
|
|
7
|
+
clear(): void;
|
|
8
|
+
private ensureBaseUrl;
|
|
9
|
+
setDependents(baseUrl: string, value: Observable<Dependent[]>): void;
|
|
10
|
+
getDependents(baseUrl: string): Observable<Dependent[]> | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileEmployeeDependentsCach, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileEmployeeDependentsCach>;
|
|
13
|
+
}
|
|
@@ -243,6 +243,10 @@ export type EntitlementsMedicalInsurance = {
|
|
|
243
243
|
TotalEmployeeShare: number | null;
|
|
244
244
|
TotalEmployerShare: number | null;
|
|
245
245
|
};
|
|
246
|
+
export type DocumentModel = {
|
|
247
|
+
Key: string;
|
|
248
|
+
ContentType: string;
|
|
249
|
+
};
|
|
246
250
|
export type Degree = {
|
|
247
251
|
DegreeName: string;
|
|
248
252
|
DegreeYear: string;
|
|
@@ -259,7 +263,9 @@ export type Experience = {
|
|
|
259
263
|
TerminationReason: string;
|
|
260
264
|
Document: DocumentModel | null;
|
|
261
265
|
};
|
|
262
|
-
export type
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
export type Dependent = {
|
|
267
|
+
DependentName: string;
|
|
268
|
+
DependentTypeName: string;
|
|
269
|
+
BirthDate: string | Date;
|
|
270
|
+
NationalNumber: string | null;
|
|
265
271
|
};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -21,3 +21,4 @@ export * from './lib/profile-job-info-service-charge-widget/profile-job-info-ser
|
|
|
21
21
|
export * from './lib/my-next-week-vacation-insights-widget/my-next-week-vacation-insights-widget.component';
|
|
22
22
|
export * from './lib/profile-experiences-widget/profile-experiences-widget-component';
|
|
23
23
|
export * from './lib/profile-degrees-widget/profile-degrees-widget-component';
|
|
24
|
+
export * from './lib/profile-employee-dependents-widget/profile-employee-dependents-component';
|