@skysoftware-co/bayan-hr-widgets-ui 1.0.33 → 1.0.34
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 +67 -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/services/hr-self-widgets.service.d.ts +5 -2
- package/lib/shared/services/profile-employee-dependents-cach.d.ts +13 -0
- package/lib/shared/types/common.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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,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
|
+
}
|