@skysoftware-co/bayan-hr-widgets-ui 1.0.18 → 1.0.19
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 +2 -1
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs +94 -168
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs.map +1 -1
- package/lib/my-calendar-widget/my-calendar-widget.component.d.ts +16 -7
- package/lib/services/hr-self-widgets.service.d.ts +2 -8
- package/lib/shared/types/common.d.ts +0 -44
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/lib/shared/services/entitlements-cache.service.d.ts +0 -22
- /package/lib/{profile-job-information-salary-widget → profile-job-info-salary-widget}/profile-job-info-salary-widget.component.d.ts +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { HRSelfWidgetsService } from '../services/hr-self-widgets.service';
|
|
3
|
-
import { ScheduleCalenderVacation } from '../shared/types/common';
|
|
3
|
+
import { ScheduleCalenderVacation, ScheduleRequestsResponse } from '../shared/types/common';
|
|
4
4
|
import { HREmployeeCalendarComponent } from '../shared/components/hr-employee-calendar/hr-employee-calendar.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class MyCalendarWidgetComponent implements OnInit {
|
|
6
|
+
export declare class MyCalendarWidgetComponent implements OnInit, OnChanges {
|
|
7
7
|
private selfWidgetsService;
|
|
8
8
|
baseUrl: string;
|
|
9
9
|
headerContainerClass: string;
|
|
10
|
+
datasource: ScheduleRequestsResponse | null;
|
|
10
11
|
isLoadingChanged: EventEmitter<boolean>;
|
|
11
|
-
calendarIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
12
|
+
readonly calendarIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
12
13
|
legendContainerClass: string;
|
|
13
14
|
legendRowClass: string;
|
|
14
15
|
legendItemClass: string;
|
|
@@ -22,8 +23,8 @@ export declare class MyCalendarWidgetComponent implements OnInit {
|
|
|
22
23
|
vacationsIconClass: string;
|
|
23
24
|
calendarContainerClass: string;
|
|
24
25
|
calendarClass: string;
|
|
25
|
-
private constants;
|
|
26
|
-
private translatePipe;
|
|
26
|
+
private readonly constants;
|
|
27
|
+
private readonly translatePipe;
|
|
27
28
|
publicHolidayColor: string;
|
|
28
29
|
dayOffColor: string;
|
|
29
30
|
eventsColor: string;
|
|
@@ -31,11 +32,19 @@ export declare class MyCalendarWidgetComponent implements OnInit {
|
|
|
31
32
|
scheduleCalenderVacation: ScheduleCalenderVacation[];
|
|
32
33
|
minDate: Date;
|
|
33
34
|
maxDate: Date;
|
|
35
|
+
private baseCalendarData;
|
|
36
|
+
private hrVacations;
|
|
37
|
+
private calendarLoaded;
|
|
34
38
|
constructor(selfWidgetsService: HRSelfWidgetsService);
|
|
35
39
|
ngOnInit(): void;
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
41
|
+
private initDateRange;
|
|
36
42
|
private getCalendar;
|
|
37
43
|
private loadCalendar;
|
|
38
44
|
private mapCalendarData;
|
|
45
|
+
private buildCalendarData;
|
|
46
|
+
private refreshCalendar;
|
|
47
|
+
private mergeConsecutiveVacations;
|
|
39
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<MyCalendarWidgetComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MyCalendarWidgetComponent, "hr-my-calendar-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "headerContainerClass": { "alias": "headerContainerClass"; "required": false; }; "legendContainerClass": { "alias": "legendContainerClass"; "required": false; }; "legendRowClass": { "alias": "legendRowClass"; "required": false; }; "legendItemClass": { "alias": "legendItemClass"; "required": false; }; "legendDotClass": { "alias": "legendDotClass"; "required": false; }; "legendLabelClass": { "alias": "legendLabelClass"; "required": false; }; "publicHolidayDotClass": { "alias": "publicHolidayDotClass"; "required": false; }; "dayOffDotClass": { "alias": "dayOffDotClass"; "required": false; }; "eventsDotClass": { "alias": "eventsDotClass"; "required": false; }; "vacationsContainerClass": { "alias": "vacationsContainerClass"; "required": false; }; "vacationsItemClass": { "alias": "vacationsItemClass"; "required": false; }; "vacationsIconClass": { "alias": "vacationsIconClass"; "required": false; }; "calendarContainerClass": { "alias": "calendarContainerClass"; "required": false; }; "calendarClass": { "alias": "calendarClass"; "required": false; }; "publicHolidayColor": { "alias": "publicHolidayColor"; "required": false; }; "dayOffColor": { "alias": "dayOffColor"; "required": false; }; "eventsColor": { "alias": "eventsColor"; "required": false; }; }, { "isLoadingChanged": "isLoadingChanged"; }, never, never, true, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MyCalendarWidgetComponent, "hr-my-calendar-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "headerContainerClass": { "alias": "headerContainerClass"; "required": false; }; "datasource": { "alias": "datasource"; "required": false; }; "legendContainerClass": { "alias": "legendContainerClass"; "required": false; }; "legendRowClass": { "alias": "legendRowClass"; "required": false; }; "legendItemClass": { "alias": "legendItemClass"; "required": false; }; "legendDotClass": { "alias": "legendDotClass"; "required": false; }; "legendLabelClass": { "alias": "legendLabelClass"; "required": false; }; "publicHolidayDotClass": { "alias": "publicHolidayDotClass"; "required": false; }; "dayOffDotClass": { "alias": "dayOffDotClass"; "required": false; }; "eventsDotClass": { "alias": "eventsDotClass"; "required": false; }; "vacationsContainerClass": { "alias": "vacationsContainerClass"; "required": false; }; "vacationsItemClass": { "alias": "vacationsItemClass"; "required": false; }; "vacationsIconClass": { "alias": "vacationsIconClass"; "required": false; }; "calendarContainerClass": { "alias": "calendarContainerClass"; "required": false; }; "calendarClass": { "alias": "calendarClass"; "required": false; }; "publicHolidayColor": { "alias": "publicHolidayColor"; "required": false; }; "dayOffColor": { "alias": "dayOffColor"; "required": false; }; "eventsColor": { "alias": "eventsColor"; "required": false; }; }, { "isLoadingChanged": "isLoadingChanged"; }, never, never, true, never>;
|
|
41
50
|
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { EventOption, JobInformationContract, JobInformationMain, JobInformationSalary, JobInformationServiceCharge, MyBankInfo, PersonalInfoAddressDetails, PersonalInfoContactDetails, PersonalInfoMainDetails } from '../shared/types/common';
|
|
4
4
|
import { BankInformationCacheService } from '../shared/services/bank-information-cache.service';
|
|
5
|
-
import { EntitlementsCacheService } from '../shared/services/entitlements-cache.service';
|
|
6
5
|
import { JobInformationCacheService } from '../shared/services/job-information-cache.service';
|
|
7
6
|
import { PersonalInformationCacheService } from '../shared/services/personal-information-cache.service';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
export declare class HRSelfWidgetsService {
|
|
10
9
|
private http;
|
|
11
10
|
private readonly bankInformationCacheService;
|
|
12
|
-
private readonly entitlementsCacheService;
|
|
13
11
|
private readonly jobInformationCacheService;
|
|
14
12
|
private readonly personalInformationCacheService;
|
|
15
13
|
private readonly headers;
|
|
16
|
-
constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService,
|
|
14
|
+
constructor(http: HttpClient, bankInformationCacheService: BankInformationCacheService, jobInformationCacheService: JobInformationCacheService, personalInformationCacheService: PersonalInformationCacheService);
|
|
17
15
|
getMainDetails(baseUrl: string): Observable<any>;
|
|
18
16
|
getUpcomingEvents(baseUrl: string, eventOption: EventOption): Observable<any>;
|
|
19
17
|
getCalendar(baseUrl: string, month: number, year: number, monthsCount: number): Observable<any>;
|
|
@@ -30,10 +28,6 @@ export declare class HRSelfWidgetsService {
|
|
|
30
28
|
clearPersonalInformationCache(): void;
|
|
31
29
|
clearJobInformationCache(): void;
|
|
32
30
|
getVacationSummary(baseUrl: string): Observable<any>;
|
|
33
|
-
getEntitlementsVacation(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsVacation[] | null>;
|
|
34
|
-
getEntitlementsIndemnity(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsIndemnity | null>;
|
|
35
|
-
getEntitlementsTicket(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsTicket | null>;
|
|
36
|
-
getEntitlementsMedicalInsurance(baseUrl: string, forceRefresh?: boolean): Observable<EntitlementsMedicalInsurance | null>;
|
|
37
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<HRSelfWidgetsService, never>;
|
|
38
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<HRSelfWidgetsService>;
|
|
39
33
|
}
|
|
@@ -186,50 +186,6 @@ export declare enum VacationPopupType {
|
|
|
186
186
|
Upcoming = 1,
|
|
187
187
|
ExpectedToReturn = 2
|
|
188
188
|
}
|
|
189
|
-
export type EntitlementsVacation = {
|
|
190
|
-
VacationTypeName: string;
|
|
191
|
-
EntitlementDays: string;
|
|
192
|
-
};
|
|
193
|
-
export type EntitlementsIndemnity = {
|
|
194
|
-
IsEligibleForIndemnity: boolean | null;
|
|
195
|
-
IndemnityServiceYears: number | null;
|
|
196
|
-
IndemnityStartDate: Date | null;
|
|
197
|
-
IndemnitySalary: number | null;
|
|
198
|
-
};
|
|
199
|
-
export type EmployeeTicketDetails = {
|
|
200
|
-
EmployeeFirstName: string | null;
|
|
201
|
-
TicketSectorName: string | null;
|
|
202
|
-
TicketClassName: string | null;
|
|
203
|
-
MonthsPerTicketEntitlement: number | null;
|
|
204
|
-
};
|
|
205
|
-
export type DependantTicketDetails = {
|
|
206
|
-
DependantName: string | null;
|
|
207
|
-
DependantTypeName: string | null;
|
|
208
|
-
MonthsPerTicketEntitlement: number | null;
|
|
209
|
-
};
|
|
210
|
-
export type EntitlementsTicket = {
|
|
211
|
-
EmployeeTicketDetails: EmployeeTicketDetails | null;
|
|
212
|
-
DependantTicketDetails: DependantTicketDetails[] | null;
|
|
213
|
-
};
|
|
214
|
-
export type EmployeeMedicalInsurance = {
|
|
215
|
-
EmployeeFirstName: string | null;
|
|
216
|
-
MedicalInsuranceClassName: string | null;
|
|
217
|
-
MedicalInsuranceNumber: string | null;
|
|
218
|
-
CoverageDate: Date | null;
|
|
219
|
-
};
|
|
220
|
-
export type DependantsMedicalInsurance = {
|
|
221
|
-
DependantName: string | null;
|
|
222
|
-
DependantTypeName: string | null;
|
|
223
|
-
MedicalInsuranceClassName: string | null;
|
|
224
|
-
MedicalInsuranceNumber: string | null;
|
|
225
|
-
CoverageDate: Date | null;
|
|
226
|
-
};
|
|
227
|
-
export type EntitlementsMedicalInsurance = {
|
|
228
|
-
EmployeeMedicalInsurance: EmployeeMedicalInsurance | null;
|
|
229
|
-
DependantsMedicalInsurance: DependantsMedicalInsurance[] | null;
|
|
230
|
-
TotalEmployeeShare: number | null;
|
|
231
|
-
TotalEmployerShare: number | null;
|
|
232
|
-
};
|
|
233
189
|
export type ScheduleRequestsResponse = {
|
|
234
190
|
PendingVacationRequests: {
|
|
235
191
|
VacationTypeName: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export * from './lib/profile-personal-info-other-nationalities-widget/profile-pe
|
|
|
15
15
|
export * from './lib/profile-profile-personal-info-address-widget/profile-personal-info-address-widget.component';
|
|
16
16
|
export * from './lib/profile-job-info-main-widget/profile-job-info-main-widget.component';
|
|
17
17
|
export * from './lib/profile-job-info-contract-widget/profile-job-info-contract-widget.component';
|
|
18
|
-
export * from './lib/profile-job-
|
|
18
|
+
export * from './lib/profile-job-info-salary-widget/profile-job-info-salary-widget.component';
|
|
19
19
|
export * from './lib/profile-job-info-service-charge-widget/profile-job-info-service-charge-widget.component';
|
|
20
20
|
export * from './lib/my-vacation-team-widget/my-vacation-team-widget.component';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { EntitlementsIndemnity, EntitlementsMedicalInsurance, EntitlementsTicket, EntitlementsVacation } from '../types/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class EntitlementsCacheService {
|
|
5
|
-
private baseUrl;
|
|
6
|
-
private vacationDetails$;
|
|
7
|
-
private indemnityDetails$;
|
|
8
|
-
private ticketDetails$;
|
|
9
|
-
private medicalInsuranceDetails$;
|
|
10
|
-
getVacationDetails(baseUrl: string): Observable<EntitlementsVacation[] | null> | null;
|
|
11
|
-
setVacationDetails(baseUrl: string, value: Observable<EntitlementsVacation[] | null>): void;
|
|
12
|
-
getIndemnityDetails(baseUrl: string): Observable<EntitlementsIndemnity | null> | null;
|
|
13
|
-
setIndemnityDetails(baseUrl: string, value: Observable<EntitlementsIndemnity | null>): void;
|
|
14
|
-
getTicketDetails(baseUrl: string): Observable<EntitlementsTicket | null> | null;
|
|
15
|
-
setTicketDetails(baseUrl: string, value: Observable<EntitlementsTicket | null>): void;
|
|
16
|
-
getMedicalInsuranceDetails(baseUrl: string): Observable<EntitlementsMedicalInsurance | null> | null;
|
|
17
|
-
setMedicalInsuranceDetails(baseUrl: string, value: Observable<EntitlementsMedicalInsurance | null>): void;
|
|
18
|
-
clear(): void;
|
|
19
|
-
private ensureBaseUrl;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EntitlementsCacheService, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EntitlementsCacheService>;
|
|
22
|
-
}
|