@skysoftware-co/bayan-hr-widgets-ui 1.0.4 → 1.0.5

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.
@@ -1,7 +1,9 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { EventTypeEnum } from '../../types/common';
2
+ import { EventTypeEnum } from '../../shared/types/common';
3
+ import { HRTranslatePipe } from '../../shared/pipes/translate.pipe';
3
4
  import * as i0 from "@angular/core";
4
- export declare class HrEventTabBarComponent {
5
+ export declare class HREventTabBarComponent {
6
+ private translatePipe;
5
7
  selectedType: EventTypeEnum | null;
6
8
  selectedLanguage: string;
7
9
  tabSelectedClass: string;
@@ -13,17 +15,17 @@ export declare class HrEventTabBarComponent {
13
15
  tabTextClass: string;
14
16
  tabIconClass: string;
15
17
  tabSelected: EventEmitter<EventTypeEnum | null>;
16
- private translatePipe;
18
+ constructor(translatePipe: HRTranslatePipe);
17
19
  tabList: ({
18
20
  id: null;
19
21
  icon: null;
20
22
  } | {
21
23
  id: EventTypeEnum;
22
- icon: import("@fortawesome/pro-light-svg-icons").IconDefinition;
24
+ icon: import("@fortawesome/fontawesome-common-types").IconDefinition;
23
25
  })[];
24
26
  getTabText(tab: {
25
27
  id: EventTypeEnum | null;
26
28
  }): string;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<HrEventTabBarComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<HrEventTabBarComponent, "hr-event-tab-bar", never, { "selectedType": { "alias": "selectedType"; "required": false; }; "selectedLanguage": { "alias": "selectedLanguage"; "required": false; }; "tabSelectedClass": { "alias": "tabSelectedClass"; "required": false; }; "tabNotSelectedClass": { "alias": "tabNotSelectedClass"; "required": false; }; "tabTextSelectedClass": { "alias": "tabTextSelectedClass"; "required": false; }; "tabTextNotSelectedClass": { "alias": "tabTextNotSelectedClass"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "tabItemClass": { "alias": "tabItemClass"; "required": false; }; "tabTextClass": { "alias": "tabTextClass"; "required": false; }; "tabIconClass": { "alias": "tabIconClass"; "required": false; }; }, { "tabSelected": "tabSelected"; }, never, never, true, never>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<HREventTabBarComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<HREventTabBarComponent, "hr-event-tab-bar", never, { "selectedType": { "alias": "selectedType"; "required": false; }; "selectedLanguage": { "alias": "selectedLanguage"; "required": false; }; "tabSelectedClass": { "alias": "tabSelectedClass"; "required": false; }; "tabNotSelectedClass": { "alias": "tabNotSelectedClass"; "required": false; }; "tabTextSelectedClass": { "alias": "tabTextSelectedClass"; "required": false; }; "tabTextNotSelectedClass": { "alias": "tabTextNotSelectedClass"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "tabItemClass": { "alias": "tabItemClass"; "required": false; }; "tabTextClass": { "alias": "tabTextClass"; "required": false; }; "tabIconClass": { "alias": "tabIconClass"; "required": false; }; }, { "tabSelected": "tabSelected"; }, never, never, true, never>;
29
31
  }
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { EventTypeEnum, FilteredUpcomingEvent } from '../../types/common';
2
+ import { EventTypeEnum, FilteredUpcomingEvent } from '../../shared/types/common';
3
3
  import * as i0 from "@angular/core";
4
- export declare class HrEventsPopupComponent {
4
+ export declare class HREventsPopupComponent {
5
5
  visible: boolean;
6
6
  events: FilteredUpcomingEvent[];
7
7
  hasBirthdays: boolean;
@@ -32,6 +32,6 @@ export declare class HrEventsPopupComponent {
32
32
  closed: EventEmitter<void>;
33
33
  onTabSelected(eventType: EventTypeEnum | null): void;
34
34
  onPopupClose(): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<HrEventsPopupComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<HrEventsPopupComponent, "hr-upcoming-events-popup", never, { "visible": { "alias": "visible"; "required": false; }; "events": { "alias": "events"; "required": false; }; "hasBirthdays": { "alias": "hasBirthdays"; "required": false; }; "hasHolidays": { "alias": "hasHolidays"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "selectedLanguage": { "alias": "selectedLanguage"; "required": false; }; "showProperty": { "alias": "showProperty"; "required": false; }; "weekendWarningDescription": { "alias": "weekendWarningDescription"; "required": false; }; "popupTitle": { "alias": "popupTitle"; "required": false; }; "selectedEventType": { "alias": "selectedEventType"; "required": false; }; "tabSelectedClass": { "alias": "tabSelectedClass"; "required": false; }; "tabNotSelectedClass": { "alias": "tabNotSelectedClass"; "required": false; }; "tabTextSelectedClass": { "alias": "tabTextSelectedClass"; "required": false; }; "tabTextNotSelectedClass": { "alias": "tabTextNotSelectedClass"; "required": false; }; "tabContainerClass": { "alias": "tabContainerClass"; "required": false; }; "tabItemClass": { "alias": "tabItemClass"; "required": false; }; "tabTextClass": { "alias": "tabTextClass"; "required": false; }; "tabIconClass": { "alias": "tabIconClass"; "required": false; }; "eventIconClass": { "alias": "eventIconClass"; "required": false; }; "eventNameBoldClass": { "alias": "eventNameBoldClass"; "required": false; }; "eventDescriptionClass": { "alias": "eventDescriptionClass"; "required": false; }; "propertyBadgeClass": { "alias": "propertyBadgeClass"; "required": false; }; "noEventsTextClass": { "alias": "noEventsTextClass"; "required": false; }; "warningTextClass": { "alias": "warningTextClass"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; }, { "visibleChange": "visibleChange"; "tabSelected": "tabSelected"; "closed": "closed"; }, never, never, true, never>;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<HREventsPopupComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<HREventsPopupComponent, "hr-upcoming-events-popup", never, { "visible": { "alias": "visible"; "required": false; }; "events": { "alias": "events"; "required": false; }; "hasBirthdays": { "alias": "hasBirthdays"; "required": false; }; "hasHolidays": { "alias": "hasHolidays"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "selectedLanguage": { "alias": "selectedLanguage"; "required": false; }; "showProperty": { "alias": "showProperty"; "required": false; }; "weekendWarningDescription": { "alias": "weekendWarningDescription"; "required": false; }; "popupTitle": { "alias": "popupTitle"; "required": false; }; "selectedEventType": { "alias": "selectedEventType"; "required": false; }; "tabSelectedClass": { "alias": "tabSelectedClass"; "required": false; }; "tabNotSelectedClass": { "alias": "tabNotSelectedClass"; "required": false; }; "tabTextSelectedClass": { "alias": "tabTextSelectedClass"; "required": false; }; "tabTextNotSelectedClass": { "alias": "tabTextNotSelectedClass"; "required": false; }; "tabContainerClass": { "alias": "tabContainerClass"; "required": false; }; "tabItemClass": { "alias": "tabItemClass"; "required": false; }; "tabTextClass": { "alias": "tabTextClass"; "required": false; }; "tabIconClass": { "alias": "tabIconClass"; "required": false; }; "eventIconClass": { "alias": "eventIconClass"; "required": false; }; "eventNameBoldClass": { "alias": "eventNameBoldClass"; "required": false; }; "eventDescriptionClass": { "alias": "eventDescriptionClass"; "required": false; }; "propertyBadgeClass": { "alias": "propertyBadgeClass"; "required": false; }; "noEventsTextClass": { "alias": "noEventsTextClass"; "required": false; }; "warningTextClass": { "alias": "warningTextClass"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; }, { "visibleChange": "visibleChange"; "tabSelected": "tabSelected"; "closed": "closed"; }, never, never, true, never>;
37
37
  }
@@ -1,11 +1,9 @@
1
1
  import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { HttpClient } from '@angular/common/http';
3
- import { SkyAlertToastService } from '@skysoftware-co/sky-components-ui';
4
- import { Birthday, PublicHoliday, EventTypeEnum, FilteredUpcomingEvent } from '../types/common';
3
+ import { Birthday, PublicHoliday, EventTypeEnum, FilteredUpcomingEvent } from '../shared/types/common';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class MyUpcomingEventsWidgetComponent implements OnInit {
7
6
  private http;
8
- private alertToastService;
9
7
  baseUrl: string;
10
8
  weekendWarningDescription: string;
11
9
  selectedLanguage: string;
@@ -33,14 +31,14 @@ export declare class MyUpcomingEventsWidgetComponent implements OnInit {
33
31
  externalViewAll: boolean;
34
32
  selectedEventType: EventTypeEnum | null;
35
33
  selectedPopupEventType: EventTypeEnum | null;
36
- calendarStar: import("@fortawesome/pro-light-svg-icons").IconDefinition;
34
+ calendarStar: import("@fortawesome/fontawesome-common-types").IconDefinition;
37
35
  filteredEvents: FilteredUpcomingEvent[];
38
36
  birthdays: Birthday[];
39
37
  holidays: PublicHoliday[];
40
38
  popupEvents: FilteredUpcomingEvent[];
41
39
  popupVisible: boolean;
42
40
  weekendWarning: string | null;
43
- constructor(http: HttpClient, alertToastService: SkyAlertToastService);
41
+ constructor(http: HttpClient);
44
42
  ngOnInit(): void;
45
43
  onTabClick(eventType: EventTypeEnum | null): void;
46
44
  onPopupTabClick(eventType: EventTypeEnum | null): void;
@@ -1,11 +1,11 @@
1
1
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class HrCardHeaderComponent {
3
+ export declare class HRCardHeaderComponent {
4
4
  icon: IconDefinition;
5
5
  title: string;
6
6
  containerClass: string;
7
7
  iconClass: string;
8
8
  titleClass: string;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<HrCardHeaderComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<HrCardHeaderComponent, "hr-card-header", never, { "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "titleClass": { "alias": "titleClass"; "required": false; }; }, {}, never, never, true, never>;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<HRCardHeaderComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<HRCardHeaderComponent, "hr-card-header", never, { "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "titleClass": { "alias": "titleClass"; "required": false; }; }, {}, never, never, true, never>;
11
11
  }
@@ -0,0 +1,35 @@
1
+ import { DxCalendarComponent } from 'devextreme-angular';
2
+ import { ScheduleCalenderVacation, ScheduleVacationTypes, DatePeriod } from '../../types/common';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HREmployeeCalendarComponent {
5
+ calendar: DxCalendarComponent;
6
+ showEvents: boolean;
7
+ showUpComingVacations: boolean;
8
+ scheduleCalenderVacation: ScheduleCalenderVacation[];
9
+ minDate: Date;
10
+ maxDate: Date;
11
+ legendContainerClass: string;
12
+ legendRowClass: string;
13
+ legendItemClass: string;
14
+ legendDotClass: string;
15
+ legendLabelClass: string;
16
+ publicHolidayDotClass: string;
17
+ dayOffDotClass: string;
18
+ eventsDotClass: string;
19
+ vacationsContainerClass: string;
20
+ vacationsItemClass: string;
21
+ vacationsIconClass: string;
22
+ calendarContainerClass: string;
23
+ calendarClass: string;
24
+ squreCheckIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
25
+ DaysOffVacationTypes: ScheduleVacationTypes;
26
+ PublicHolidaysVacationTypes: ScheduleVacationTypes;
27
+ private commonMethods;
28
+ customCellTemplate: (cellData: any) => string | HTMLElement;
29
+ private createDateSpan;
30
+ isDateInPeriod(date: Date, period: DatePeriod): boolean;
31
+ resetCalenderCurrentDate(currentDate?: Date): void;
32
+ preventInteraction(event: any): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<HREmployeeCalendarComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<HREmployeeCalendarComponent, "hr-employee-calendar", never, { "showEvents": { "alias": "showEvents"; "required": false; }; "showUpComingVacations": { "alias": "showUpComingVacations"; "required": false; }; "scheduleCalenderVacation": { "alias": "scheduleCalenderVacation"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "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; }; }, {}, never, never, true, never>;
35
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { HRTranslateService } from '../services/translate.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class HRTranslatePipe implements PipeTransform {
5
+ private translateService;
6
+ constructor(translateService: HRTranslateService);
7
+ transform(key?: string): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<HRTranslatePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<HRTranslatePipe, "HRTranslate", true>;
10
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class HRCommonMethodsService {
3
+ calculateDaysDifference(dateOne: string | Date, dateTwo: string | Date): number;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<HRCommonMethodsService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<HRCommonMethodsService>;
6
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class HRConstantsService {
3
+ defaultVacationBalanceColor: string;
4
+ defaultVacationColor: string;
5
+ defaultPublicHolidayColor: string;
6
+ defaultDayOffColor: string;
7
+ defaultEventsColor: string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<HRConstantsService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<HRConstantsService>;
10
+ }
@@ -70,3 +70,39 @@ export type FilteredUpcomingEvent = {
70
70
  PropertyName?: string;
71
71
  PropertySymbol?: string;
72
72
  };
73
+ export type DatePeriod = {
74
+ StartDate: Date;
75
+ EndDate: Date;
76
+ };
77
+ export type CalendarResponse = {
78
+ OffDays: Date[];
79
+ PublicHolidays: {
80
+ Description: string;
81
+ StartDate: Date;
82
+ EndDate: Date;
83
+ }[];
84
+ Vacations: {
85
+ VacationTypeName: string;
86
+ Color: string;
87
+ StartDate: Date;
88
+ EndDate: Date;
89
+ }[];
90
+ Events: {
91
+ Description: string;
92
+ StartDate: Date;
93
+ EndDate: Date;
94
+ }[];
95
+ };
96
+ export type ScheduleCalenderVacation = {
97
+ Color: string | null;
98
+ VacationType: ScheduleVacationTypes;
99
+ Description: string;
100
+ VacationDays: DatePeriod;
101
+ };
102
+ export declare enum ScheduleVacationTypes {
103
+ DaysOff = 1,
104
+ PublicHoliday = 2,
105
+ Vacations = 3,
106
+ AddedVacations = 4,
107
+ Events = 5
108
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skysoftware-co/bayan-hr-widgets-ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "19.2.14",
6
6
  "@angular/core": "19.2.14",
package/public-api.d.ts CHANGED
@@ -1,6 +1,9 @@
1
1
  export * from './lib/my-main-details-widget/my-main-details-widget.component';
2
2
  export * from './lib/my-upcoming-events-widget/my-upcoming-events-widget.component';
3
- export * from './lib/types/common';
4
- export * from './lib/common/constants.service';
5
- export * from './lib/common/translate.service';
6
- export * from './lib/pipes/translate.pipe';
3
+ export * from './lib/shared/types/common';
4
+ export * from './lib/shared/services/constants.service';
5
+ export * from './lib/shared/services/translate.service';
6
+ export * from './lib/shared/pipes/translate.pipe';
7
+ export * from './lib/shared/components/card-header/card-header.component';
8
+ export * from './lib/my-calendar-widget/my-calendar-widget.component';
9
+ export * from './lib/shared/components/hr-employee-calendar/hr-employee-calendar.component';
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class HrConstantsService {
3
- defaultVacationBalanceColor: string;
4
- defaultVacationColor: string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<HrConstantsService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<HrConstantsService>;
7
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class HRTranslateService {
3
- private currentLanguage;
4
- private lexicon;
5
- setLanguage(language: string): void;
6
- getLanguage(): string;
7
- setLexicon(lexicon: Record<string, string>): void;
8
- getLexicon(): Record<string, string>;
9
- translateBuiltIn(key: string): string;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<HRTranslateService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<HRTranslateService>;
12
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { HRTranslateService } from '../common/translate.service';
3
- import * as i0 from "@angular/core";
4
- export declare class HrTranslatePipe implements PipeTransform {
5
- private translateService;
6
- constructor(translateService: HRTranslateService);
7
- transform(key?: string): string;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<HrTranslatePipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<HrTranslatePipe, "hrTranslate", true>;
10
- }