@skysoftware-co/bayan-hr-widgets-ui 1.2.0 → 1.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skysoftware-co/bayan-hr-widgets-ui",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.0.0",
6
6
  "@angular/core": "^21.0.0",
@@ -1,14 +1,13 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable } from 'rxjs';
3
3
  import * as i0 from '@angular/core';
4
- import { OnInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
4
+ import { PipeTransform, OnInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
5
5
  import { HttpClient } from '@angular/common/http';
6
6
  import { BayanEmployeeBadgeDTO } from '@skysoftware-co/bayan-components-ui';
7
- import { ShortcutIconDTO, TranslatePipe, SkyWidgetSectionItem } from '@skysoftware-co/sky-components-ui';
7
+ import { ShortcutIconDTO, SkyWidgetSectionItem } from '@skysoftware-co/sky-components-ui';
8
8
  import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
9
9
  import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
10
10
  import { DxCalendarComponent } from 'devextreme-angular';
11
- import { TranslateService } from '@ngx-translate/core';
12
11
  import { IconDefinition as IconDefinition$1 } from '@fortawesome/angular-fontawesome';
13
12
 
14
13
  type MyMainDetailsWidgetDetails = {
@@ -480,6 +479,26 @@ declare class HRConstantsService {
480
479
  static ɵprov: i0.ɵɵInjectableDeclaration<HRConstantsService>;
481
480
  }
482
481
 
482
+ declare class HRTranslateService {
483
+ private currentLanguage;
484
+ private lexicon;
485
+ setLanguage(language: string): void;
486
+ getLanguage(): string;
487
+ setLexicon(lexicon: Record<string, string>): void;
488
+ getLexicon(): Record<string, string>;
489
+ translateBuiltIn(key: string): string;
490
+ static ɵfac: i0.ɵɵFactoryDeclaration<HRTranslateService, never>;
491
+ static ɵprov: i0.ɵɵInjectableDeclaration<HRTranslateService>;
492
+ }
493
+
494
+ declare class HRTranslatePipe implements PipeTransform {
495
+ private readonly payrollTranslateService;
496
+ constructor(payrollTranslateService: HRTranslateService);
497
+ transform(key?: string): string;
498
+ static ɵfac: i0.ɵɵFactoryDeclaration<HRTranslatePipe, never>;
499
+ static ɵpipe: i0.ɵɵPipeDeclaration<HRTranslatePipe, "translate", true>;
500
+ }
501
+
483
502
  declare class MyMainDetailsWidgetComponent implements OnInit, OnChanges {
484
503
  private selfWidgetsService;
485
504
  private constants;
@@ -528,7 +547,7 @@ declare class MyMainDetailsWidgetComponent implements OnInit, OnChanges {
528
547
  isMobile: boolean;
529
548
  isTablet: boolean;
530
549
  shortcuts: ShortcutIconDTO[];
531
- constructor(selfWidgetsService: HRSelfWidgetsService, constants: HRConstantsService, translatePipe: TranslatePipe);
550
+ constructor(selfWidgetsService: HRSelfWidgetsService, constants: HRConstantsService, translatePipe: HRTranslatePipe);
532
551
  ngOnInit(): void;
533
552
  ngOnChanges(changes: SimpleChanges): void;
534
553
  loadEmployeeMainInfo(): void;
@@ -682,7 +701,7 @@ declare class MyCalendarWidgetComponent implements OnInit, OnChanges {
682
701
 
683
702
  declare class HRCommonMethodsService {
684
703
  private readonly translateService;
685
- constructor(translateService: TranslateService);
704
+ constructor(translateService: HRTranslateService);
686
705
  calculateDaysDifference(dateOne: string | Date, dateTwo: string | Date): number;
687
706
  currencyDecimalFormat(value: number, currencyDecimalsNumber: number): string | null;
688
707
  static ɵfac: i0.ɵɵFactoryDeclaration<HRCommonMethodsService, never>;
@@ -1000,7 +1019,7 @@ declare class MyNextWeekVacationInsightsWidgetComponent implements OnInit {
1000
1019
  VacationPopupType: typeof VacationPopupType;
1001
1020
  upcomingVacationsBadge: SkyWidgetSectionItem;
1002
1021
  expectedToReturnBadge: SkyWidgetSectionItem;
1003
- constructor(selfWidgetsService: HRSelfWidgetsService, translatePipe: TranslatePipe);
1022
+ constructor(selfWidgetsService: HRSelfWidgetsService, translatePipe: HRTranslatePipe);
1004
1023
  ngOnInit(): void;
1005
1024
  private loadVacationSummary;
1006
1025
  openPopup(type: VacationPopupType): void;
@@ -1188,7 +1207,7 @@ declare class MyProfileTicketWidgetComponent implements OnInit {
1188
1207
  ticketDetails: EntitlementsTicket | null;
1189
1208
  isLoading: boolean;
1190
1209
  hasData: boolean;
1191
- constructor(selfWidgetsService: HRSelfWidgetsService, translatePipe: TranslatePipe);
1210
+ constructor(selfWidgetsService: HRSelfWidgetsService, translatePipe: HRTranslatePipe);
1192
1211
  ngOnInit(): void;
1193
1212
  private loadData;
1194
1213
  getMonthsPerTicketEntitlement(monthsPerTicketEntitlement: number | null): string;
@@ -1373,5 +1392,5 @@ declare class MyProfilePersonalDocumentsWidgetComponent implements OnInit {
1373
1392
  static ɵcmp: i0.ɵɵComponentDeclaration<MyProfilePersonalDocumentsWidgetComponent, "hr-my-profile-personal-documents-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "employeeName": { "alias": "employeeName"; "required": false; }; "sectionTitle": { "alias": "sectionTitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "viewIcon": { "alias": "viewIcon"; "required": false; }; "downloadIcon": { "alias": "downloadIcon"; "required": false; }; "headerIconClass": { "alias": "headerIconClass"; "required": false; }; "headerTextClass": { "alias": "headerTextClass"; "required": false; }; "headerDividerClass": { "alias": "headerDividerClass"; "required": false; }; "valueClass": { "alias": "valueClass"; "required": false; }; "viewIconClass": { "alias": "viewIconClass"; "required": false; }; "downloadIconClass": { "alias": "downloadIconClass"; "required": false; }; "emptyStateContainerClass": { "alias": "emptyStateContainerClass"; "required": false; }; "emptyStateTextClass": { "alias": "emptyStateTextClass"; "required": false; }; "cardClass": { "alias": "cardClass"; "required": false; }; "topSpacingColClass": { "alias": "topSpacingColClass"; "required": false; }; "titleContainerClass": { "alias": "titleContainerClass"; "required": false; }; "titleClass": { "alias": "titleClass"; "required": false; }; "labelClass": { "alias": "labelClass"; "required": false; }; "actionsColumnClass": { "alias": "actionsColumnClass"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "dataColClass": { "alias": "dataColClass"; "required": false; }; "dataColSpacingClass": { "alias": "dataColSpacingClass"; "required": false; }; "dataRowClass": { "alias": "dataRowClass"; "required": false; }; "typeColClass": { "alias": "typeColClass"; "required": false; }; "numberColClass": { "alias": "numberColClass"; "required": false; }; "issueDateColClass": { "alias": "issueDateColClass"; "required": false; }; "expiryDateColClass": { "alias": "expiryDateColClass"; "required": false; }; "actionsColClass": { "alias": "actionsColClass"; "required": false; }; "actionsWrapperClass": { "alias": "actionsWrapperClass"; "required": false; }; "downloadContainerClass": { "alias": "downloadContainerClass"; "required": false; }; "tabletContainerClass": { "alias": "tabletContainerClass"; "required": false; }; "tabletCardClass": { "alias": "tabletCardClass"; "required": false; }; "tabletCardHeight": { "alias": "tabletCardHeight"; "required": false; }; "tabletColWithAttachmentClass": { "alias": "tabletColWithAttachmentClass"; "required": false; }; "tabletColWithoutAttachmentClass": { "alias": "tabletColWithoutAttachmentClass"; "required": false; }; "tabletActionsColClass": { "alias": "tabletActionsColClass"; "required": false; }; "tabletBottomRowSpacingClass": { "alias": "tabletBottomRowSpacingClass"; "required": false; }; "tabletDownloadCountClass": { "alias": "tabletDownloadCountClass"; "required": false; }; "isMobile": { "alias": "isMobile"; "required": false; }; "isTablet": { "alias": "isTablet"; "required": false; }; }, { "isLoadingChanged": "isLoadingChanged"; "attachmentViewed": "attachmentViewed"; "attachmentDownloaded": "attachmentDownloaded"; "errorOccurred": "errorOccurred"; }, never, never, true, never>;
1374
1393
  }
1375
1394
 
1376
- export { EventOption, EventTypeEnum, HRCardHeaderComponent, HRConstantsService, HREmployeeCalendarComponent, MainWidgetShortcut, MyCalendarWidgetComponent, MyDependentsWidgetComponent, MyMainDetailsWidgetComponent, MyNextWeekVacationInsightsWidgetComponent, MyProfileAddressWidgetComponent, MyProfileBankInfoWidgetComponent, MyProfileContactWidgetComponent, MyProfileContractWidgetComponent, MyProfileDegreesWidgetComponent, MyProfileDependentsDocumentsWidgetComponent, MyProfileEntitlementsOthersWidgetComponent, MyProfileExperiencesWidgetComponent, MyProfileIndemnityWidgetComponent, MyProfileJobInfoWidgetComponent, MyProfileLanguagesWidgetComponent, MyProfileMedicalInsuranceWidgetComponent, MyProfileOtherNationalitiesWidgetComponent, MyProfilePersonalDocumentsWidgetComponent, MyProfileSalaryWidgetComponent, MyProfileServiceChargeWidgetComponent, MyProfileTicketWidgetComponent, MyProfileVacationsWidgetComponent, MyUpcomingEventsWidgetComponent, ProfilePersonalInfoMainWidgetComponent, PublicHolidayWeekContext, RelativeDay, ScheduleVacationTypes, ServiceChargeEntitlementMode, VacationPopupType };
1395
+ export { EventOption, EventTypeEnum, HRCardHeaderComponent, HRConstantsService, HREmployeeCalendarComponent, HRTranslatePipe, HRTranslateService, MainWidgetShortcut, MyCalendarWidgetComponent, MyDependentsWidgetComponent, MyMainDetailsWidgetComponent, MyNextWeekVacationInsightsWidgetComponent, MyProfileAddressWidgetComponent, MyProfileBankInfoWidgetComponent, MyProfileContactWidgetComponent, MyProfileContractWidgetComponent, MyProfileDegreesWidgetComponent, MyProfileDependentsDocumentsWidgetComponent, MyProfileEntitlementsOthersWidgetComponent, MyProfileExperiencesWidgetComponent, MyProfileIndemnityWidgetComponent, MyProfileJobInfoWidgetComponent, MyProfileLanguagesWidgetComponent, MyProfileMedicalInsuranceWidgetComponent, MyProfileOtherNationalitiesWidgetComponent, MyProfilePersonalDocumentsWidgetComponent, MyProfileSalaryWidgetComponent, MyProfileServiceChargeWidgetComponent, MyProfileTicketWidgetComponent, MyProfileVacationsWidgetComponent, MyUpcomingEventsWidgetComponent, ProfilePersonalInfoMainWidgetComponent, PublicHolidayWeekContext, RelativeDay, ScheduleVacationTypes, ServiceChargeEntitlementMode, VacationPopupType };
1377
1396
  export type { Allowances, Attachment, Birthday, CalendarResponse, DatePeriod, Degree, Dependent, DependentDocumentGroup, DependentDocumentsResponse, DependentTicketDetails, DependentsMedicalInsurance, DocumentModel, DocumentRow, EmployeeMedicalInsurance, EmployeeTicketDetails, EntitlementsIndemnity, EntitlementsMedicalInsurance, EntitlementsTicket, EntitlementsVacation, Experience, FilteredUpcomingEvent, JobInformationContract, JobInformationMain, JobInformationSalary, JobInformationServiceCharge, MyBankInfo, MyMainDetailsWidgetDetails, PersonalDocument, PersonalInfoAddressDetails, PersonalInfoContactDetails, PersonalInfoContactEmergencyContact, PersonalInfoMainDetails, PublicHoliday, ScheduleCalenderVacation, ScheduleRequestsResponse, UpcomingEventsV2, VacationBalance };