@skysoftware-co/bayan-hr-widgets-ui 1.0.14 → 1.0.15
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.
|
@@ -3257,6 +3257,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
3257
3257
|
|
|
3258
3258
|
class MyVacationTeamWidgetComponent {
|
|
3259
3259
|
selfWidgetsService;
|
|
3260
|
+
translatePipe;
|
|
3260
3261
|
baseUrl = '';
|
|
3261
3262
|
showProperty = false;
|
|
3262
3263
|
cardClass = 'card rounded rounded-4 card-shadow p-16 border-top-0 h-100 p-4';
|
|
@@ -3272,8 +3273,9 @@ class MyVacationTeamWidgetComponent {
|
|
|
3272
3273
|
VacationPopupType = VacationPopupType;
|
|
3273
3274
|
upcomingVacationsBadge;
|
|
3274
3275
|
expectedToReturnBadge;
|
|
3275
|
-
constructor(selfWidgetsService) {
|
|
3276
|
+
constructor(selfWidgetsService, translatePipe) {
|
|
3276
3277
|
this.selfWidgetsService = selfWidgetsService;
|
|
3278
|
+
this.translatePipe = translatePipe;
|
|
3277
3279
|
}
|
|
3278
3280
|
ngOnInit() {
|
|
3279
3281
|
this.initBadges(0, 0);
|
|
@@ -3312,24 +3314,24 @@ class MyVacationTeamWidgetComponent {
|
|
|
3312
3314
|
initBadges(upcomingVacations, expectedToReturn) {
|
|
3313
3315
|
this.upcomingVacationsBadge = {
|
|
3314
3316
|
Id: 1,
|
|
3315
|
-
Title: 'UpcomingVacations',
|
|
3317
|
+
Title: this.translatePipe.transform('UpcomingVacations'),
|
|
3316
3318
|
Value: upcomingVacations,
|
|
3317
3319
|
Icon: faPlaneDeparture
|
|
3318
3320
|
};
|
|
3319
3321
|
this.expectedToReturnBadge = {
|
|
3320
3322
|
Id: 2,
|
|
3321
|
-
Title: 'ExpectedToReturn',
|
|
3323
|
+
Title: this.translatePipe.transform('ExpectedToReturn'),
|
|
3322
3324
|
Value: expectedToReturn,
|
|
3323
3325
|
Icon: faPlaneArrival
|
|
3324
3326
|
};
|
|
3325
3327
|
}
|
|
3326
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MyVacationTeamWidgetComponent, deps: [{ token: HRSelfWidgetsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3328
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MyVacationTeamWidgetComponent, deps: [{ token: HRSelfWidgetsService }, { token: HRTranslatePipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
3327
3329
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: MyVacationTeamWidgetComponent, isStandalone: true, selector: "hr-my-vacation-team-widget", inputs: { baseUrl: "baseUrl", showProperty: "showProperty", cardClass: "cardClass", titleClass: "titleClass", valueClass: "valueClass", disabledValueClass: "disabledValueClass", upcomingContainerClass: "upcomingContainerClass", expectedContainerClass: "expectedContainerClass" }, outputs: { isLoadingChanged: "isLoadingChanged" }, ngImport: i0, template: "<div [class]=\"cardClass\">\r\n <div class=\"card-body d-flex flex-column p-0\">\r\n <div [class]=\"titleClass\">\r\n {{'NextWeekVacationInsights' | HRTranslate}}\r\n </div>\r\n <div class=\"d-flex flex-column mt-4\">\r\n <sky-widget-section-item\r\n [data]=\"upcomingVacationsBadge\"\r\n [containerClass]=\"upcomingContainerClass\"\r\n [valueClass]=\"upcomingVacationsBadge?.Value === 0 ? disabledValueClass : valueClass\"\r\n [ngClass]=\"{'pe-none': upcomingVacationsBadge?.Value === 0}\"\r\n (OnWidgetSectionClick)=\"openPopup(VacationPopupType.Upcoming)\">\r\n </sky-widget-section-item>\r\n <sky-widget-section-item\r\n [data]=\"expectedToReturnBadge\"\r\n [containerClass]=\"expectedContainerClass\"\r\n [valueClass]=\"expectedToReturnBadge?.Value === 0 ? disabledValueClass : valueClass\"\r\n [ngClass]=\"{'pe-none': expectedToReturnBadge?.Value === 0}\"\r\n (OnWidgetSectionClick)=\"openPopup(VacationPopupType.ExpectedToReturn)\">\r\n </sky-widget-section-item>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<hr-vacation-subordinates-popup\r\n [popupVisible]=\"popupVisible\"\r\n [popupType]=\"popupType\"\r\n [baseUrl]=\"popupBaseUrl\"\r\n [showProperty]=\"showProperty\"\r\n (closePopupClickHandler)=\"closePopup()\">\r\n</hr-vacation-subordinates-popup>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: HRTranslatePipe, name: "HRTranslate" }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: SkyWidgetSectionItemComponent, selector: "sky-widget-section-item", inputs: ["data", "iconContainerClass", "iconClass", "iconSize", "iconWidth", "iconHeight", "buttonClass", "titleClass", "valueClass", "containerClass", "borderColorClass"], outputs: ["OnWidgetSectionClick"] }, { kind: "component", type: HRVacationSubordinatesPopupComponent, selector: "hr-vacation-subordinates-popup", inputs: ["popupVisible", "popupType", "baseUrl", "width", "height", "gridHeight", "pageSize", "showProperty"], outputs: ["closePopupClickHandler"] }] });
|
|
3328
3330
|
}
|
|
3329
3331
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: MyVacationTeamWidgetComponent, decorators: [{
|
|
3330
3332
|
type: Component,
|
|
3331
3333
|
args: [{ selector: 'hr-my-vacation-team-widget', standalone: true, imports: [CommonModule, HRTranslatePipe, FontAwesomeModule, SkyWidgetSectionItemComponent, HRVacationSubordinatesPopupComponent], template: "<div [class]=\"cardClass\">\r\n <div class=\"card-body d-flex flex-column p-0\">\r\n <div [class]=\"titleClass\">\r\n {{'NextWeekVacationInsights' | HRTranslate}}\r\n </div>\r\n <div class=\"d-flex flex-column mt-4\">\r\n <sky-widget-section-item\r\n [data]=\"upcomingVacationsBadge\"\r\n [containerClass]=\"upcomingContainerClass\"\r\n [valueClass]=\"upcomingVacationsBadge?.Value === 0 ? disabledValueClass : valueClass\"\r\n [ngClass]=\"{'pe-none': upcomingVacationsBadge?.Value === 0}\"\r\n (OnWidgetSectionClick)=\"openPopup(VacationPopupType.Upcoming)\">\r\n </sky-widget-section-item>\r\n <sky-widget-section-item\r\n [data]=\"expectedToReturnBadge\"\r\n [containerClass]=\"expectedContainerClass\"\r\n [valueClass]=\"expectedToReturnBadge?.Value === 0 ? disabledValueClass : valueClass\"\r\n [ngClass]=\"{'pe-none': expectedToReturnBadge?.Value === 0}\"\r\n (OnWidgetSectionClick)=\"openPopup(VacationPopupType.ExpectedToReturn)\">\r\n </sky-widget-section-item>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<hr-vacation-subordinates-popup\r\n [popupVisible]=\"popupVisible\"\r\n [popupType]=\"popupType\"\r\n [baseUrl]=\"popupBaseUrl\"\r\n [showProperty]=\"showProperty\"\r\n (closePopupClickHandler)=\"closePopup()\">\r\n</hr-vacation-subordinates-popup>\r\n" }]
|
|
3332
|
-
}], ctorParameters: () => [{ type: HRSelfWidgetsService }], propDecorators: { baseUrl: [{
|
|
3334
|
+
}], ctorParameters: () => [{ type: HRSelfWidgetsService }, { type: HRTranslatePipe }], propDecorators: { baseUrl: [{
|
|
3333
3335
|
type: Input
|
|
3334
3336
|
}], showProperty: [{
|
|
3335
3337
|
type: Input
|