@skysoftware-co/bayan-hr-widgets-ui 1.0.40 → 1.0.41
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/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs +281 -55
- package/fesm2022/skysoftware-co-bayan-hr-widgets-ui.mjs.map +1 -1
- package/lib/profile-documents-widgets/profile-official-documents-widget/profile-official-documents-widget.d.ts +41 -0
- package/lib/services/hr-self-widgets.service.d.ts +2 -1
- package/lib/shared/services/profile-documents-cache-service.d.ts +4 -1
- package/lib/shared/types/common.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -215,6 +215,10 @@ var TotalEmployerShare$2 = "Total employer share";
|
|
|
215
215
|
var Dependents$2 = "Dependents";
|
|
216
216
|
var NotEntitled$2 = "Not entitled";
|
|
217
217
|
var ThereAreNoDependentsYet$2 = "There are no dependents yet";
|
|
218
|
+
var PersonalDocuments$2 = "Personal Documents";
|
|
219
|
+
var ThereAreNoPersonalDocumentsYet$1 = "There are no personal documents yet";
|
|
220
|
+
var ThereAreNoDependentsDocumentsYet$1 = "There are no dependents' documents yet";
|
|
221
|
+
var DependentsDocuments$2 = "Dependents Documents";
|
|
218
222
|
var en = {
|
|
219
223
|
ReportingTo: ReportingTo$2,
|
|
220
224
|
NotAnknown: NotAnknown$2,
|
|
@@ -367,7 +371,11 @@ var en = {
|
|
|
367
371
|
NotEntitled: NotEntitled$2,
|
|
368
372
|
"TicketEvery{{value}}Months": "Ticket every {{value}} months",
|
|
369
373
|
"TicketEvery{{value}}Month": "Ticket every {{value}} month",
|
|
370
|
-
ThereAreNoDependentsYet: ThereAreNoDependentsYet$2
|
|
374
|
+
ThereAreNoDependentsYet: ThereAreNoDependentsYet$2,
|
|
375
|
+
PersonalDocuments: PersonalDocuments$2,
|
|
376
|
+
ThereAreNoPersonalDocumentsYet: ThereAreNoPersonalDocumentsYet$1,
|
|
377
|
+
ThereAreNoDependentsDocumentsYet: ThereAreNoDependentsDocumentsYet$1,
|
|
378
|
+
DependentsDocuments: DependentsDocuments$2
|
|
371
379
|
};
|
|
372
380
|
|
|
373
381
|
var ReportingTo$1 = "مفوض الى";
|
|
@@ -489,31 +497,35 @@ var ThereIsNoDegreesYet$1 = "لا توجد مؤهلات علمية بعد";
|
|
|
489
497
|
var ThereIsNoExperiencesYet$1 = "لا توجد خبرات بعد";
|
|
490
498
|
var ThereIsNoDependentsYet$1 = "لا يوجد معالون حتى الآن";
|
|
491
499
|
var DependentTypeName$1 = "نوع المعال";
|
|
492
|
-
var Vacations = "الاجازات";
|
|
493
|
-
var Indemnity = "التعويض";
|
|
494
|
-
var MedicalInsurance = "التأمين الطبي";
|
|
495
|
-
var Tickets = "تذاكر";
|
|
496
|
-
var Others = "آخرين";
|
|
497
|
-
var Type = "النوع";
|
|
498
|
-
var Entitlement = "الاستحقاق";
|
|
499
|
-
var IndemnityEligibility = "أهلية التعويض";
|
|
500
|
-
var OvertimeEligibility = "أهلية العمل الإضافي";
|
|
501
|
-
var SocialSecurityEligibility = "أهلية الضمان الاجتماعي";
|
|
502
|
-
var Class = "الفئة";
|
|
503
|
-
var Sector = "القطاع";
|
|
504
|
-
var Me = "أنا";
|
|
505
|
-
var Eligible = "مؤهل";
|
|
506
|
-
var NotEligible = "غير مؤهل";
|
|
507
|
-
var Member = "عضو";
|
|
508
|
-
var NotMember = "ليس عضوًا";
|
|
509
|
-
var NotCoveredByMedicalInsurance = "غير مشمول بالتأمين الطبي";
|
|
510
|
-
var NoTicketEntitlement = "لا يوجد استحقاق تذكرة";
|
|
511
|
-
var CoverageDate = "تاريخ التغطية";
|
|
512
|
-
var TotalEmployeeShare = "إجمالي حصة الموظف";
|
|
513
|
-
var TotalEmployerShare = "إجمالي حصة صاحب العمل";
|
|
514
|
-
var Dependents = "المعالون";
|
|
515
|
-
var NotEntitled = "غير مستحق";
|
|
516
|
-
var ThereAreNoDependentsYet = "لا يوجد معالون حتى الآن";
|
|
500
|
+
var Vacations$1 = "الاجازات";
|
|
501
|
+
var Indemnity$1 = "التعويض";
|
|
502
|
+
var MedicalInsurance$1 = "التأمين الطبي";
|
|
503
|
+
var Tickets$1 = "تذاكر";
|
|
504
|
+
var Others$1 = "آخرين";
|
|
505
|
+
var Type$1 = "النوع";
|
|
506
|
+
var Entitlement$1 = "الاستحقاق";
|
|
507
|
+
var IndemnityEligibility$1 = "أهلية التعويض";
|
|
508
|
+
var OvertimeEligibility$1 = "أهلية العمل الإضافي";
|
|
509
|
+
var SocialSecurityEligibility$1 = "أهلية الضمان الاجتماعي";
|
|
510
|
+
var Class$1 = "الفئة";
|
|
511
|
+
var Sector$1 = "القطاع";
|
|
512
|
+
var Me$1 = "أنا";
|
|
513
|
+
var Eligible$1 = "مؤهل";
|
|
514
|
+
var NotEligible$1 = "غير مؤهل";
|
|
515
|
+
var Member$1 = "عضو";
|
|
516
|
+
var NotMember$1 = "ليس عضوًا";
|
|
517
|
+
var NotCoveredByMedicalInsurance$1 = "غير مشمول بالتأمين الطبي";
|
|
518
|
+
var NoTicketEntitlement$1 = "لا يوجد استحقاق تذكرة";
|
|
519
|
+
var CoverageDate$1 = "تاريخ التغطية";
|
|
520
|
+
var TotalEmployeeShare$1 = "إجمالي حصة الموظف";
|
|
521
|
+
var TotalEmployerShare$1 = "إجمالي حصة صاحب العمل";
|
|
522
|
+
var Dependents$1 = "المعالون";
|
|
523
|
+
var NotEntitled$1 = "غير مستحق";
|
|
524
|
+
var ThereAreNoDependentsYet$1 = "لا يوجد معالون حتى الآن";
|
|
525
|
+
var PersonalDocuments$1 = "المستندات الشخصية";
|
|
526
|
+
var ThereIsNoPersonalDocumentsYet = "لا توجد مستندات شخصية بعد";
|
|
527
|
+
var ThereIsNoDependentsDocumentsYet = "لا توجد مستندات للمعالون بعد";
|
|
528
|
+
var DependentsDocuments$1 = "مستندات المعالون";
|
|
517
529
|
var ar = {
|
|
518
530
|
ReportingTo: ReportingTo$1,
|
|
519
531
|
NotAnknown: NotAnknown$1,
|
|
@@ -637,35 +649,39 @@ var ar = {
|
|
|
637
649
|
ThereIsNoExperiencesYet: ThereIsNoExperiencesYet$1,
|
|
638
650
|
ThereIsNoDependentsYet: ThereIsNoDependentsYet$1,
|
|
639
651
|
DependentTypeName: DependentTypeName$1,
|
|
640
|
-
Vacations: Vacations,
|
|
641
|
-
Indemnity: Indemnity,
|
|
642
|
-
MedicalInsurance: MedicalInsurance,
|
|
643
|
-
Tickets: Tickets,
|
|
644
|
-
Others: Others,
|
|
645
|
-
Type: Type,
|
|
646
|
-
Entitlement: Entitlement,
|
|
647
|
-
IndemnityEligibility: IndemnityEligibility,
|
|
648
|
-
OvertimeEligibility: OvertimeEligibility,
|
|
649
|
-
SocialSecurityEligibility: SocialSecurityEligibility,
|
|
650
|
-
Class: Class,
|
|
651
|
-
Sector: Sector,
|
|
652
|
-
Me: Me,
|
|
653
|
-
Eligible: Eligible,
|
|
654
|
-
NotEligible: NotEligible,
|
|
655
|
-
Member: Member,
|
|
656
|
-
NotMember: NotMember,
|
|
652
|
+
Vacations: Vacations$1,
|
|
653
|
+
Indemnity: Indemnity$1,
|
|
654
|
+
MedicalInsurance: MedicalInsurance$1,
|
|
655
|
+
Tickets: Tickets$1,
|
|
656
|
+
Others: Others$1,
|
|
657
|
+
Type: Type$1,
|
|
658
|
+
Entitlement: Entitlement$1,
|
|
659
|
+
IndemnityEligibility: IndemnityEligibility$1,
|
|
660
|
+
OvertimeEligibility: OvertimeEligibility$1,
|
|
661
|
+
SocialSecurityEligibility: SocialSecurityEligibility$1,
|
|
662
|
+
Class: Class$1,
|
|
663
|
+
Sector: Sector$1,
|
|
664
|
+
Me: Me$1,
|
|
665
|
+
Eligible: Eligible$1,
|
|
666
|
+
NotEligible: NotEligible$1,
|
|
667
|
+
Member: Member$1,
|
|
668
|
+
NotMember: NotMember$1,
|
|
657
669
|
"There'sNoInformationInThisSectionYet": "لا توجد معلومات في هذا القسم حتى الآن",
|
|
658
|
-
NotCoveredByMedicalInsurance: NotCoveredByMedicalInsurance,
|
|
659
|
-
NoTicketEntitlement: NoTicketEntitlement,
|
|
670
|
+
NotCoveredByMedicalInsurance: NotCoveredByMedicalInsurance$1,
|
|
671
|
+
NoTicketEntitlement: NoTicketEntitlement$1,
|
|
660
672
|
"Number": "العدد",
|
|
661
|
-
CoverageDate: CoverageDate,
|
|
662
|
-
TotalEmployeeShare: TotalEmployeeShare,
|
|
663
|
-
TotalEmployerShare: TotalEmployerShare,
|
|
664
|
-
Dependents: Dependents,
|
|
665
|
-
NotEntitled: NotEntitled,
|
|
673
|
+
CoverageDate: CoverageDate$1,
|
|
674
|
+
TotalEmployeeShare: TotalEmployeeShare$1,
|
|
675
|
+
TotalEmployerShare: TotalEmployerShare$1,
|
|
676
|
+
Dependents: Dependents$1,
|
|
677
|
+
NotEntitled: NotEntitled$1,
|
|
666
678
|
"TicketEvery{{value}}Months": "تذكرة كل {{value}} شهر",
|
|
667
679
|
"TicketEvery{{value}}Month": "تذكرة كل {{value}} شهر",
|
|
668
|
-
ThereAreNoDependentsYet: ThereAreNoDependentsYet
|
|
680
|
+
ThereAreNoDependentsYet: ThereAreNoDependentsYet$1,
|
|
681
|
+
PersonalDocuments: PersonalDocuments$1,
|
|
682
|
+
ThereIsNoPersonalDocumentsYet: ThereIsNoPersonalDocumentsYet,
|
|
683
|
+
ThereIsNoDependentsDocumentsYet: ThereIsNoDependentsDocumentsYet,
|
|
684
|
+
DependentsDocuments: DependentsDocuments$1
|
|
669
685
|
};
|
|
670
686
|
|
|
671
687
|
var ReportingTo = "Rapport à";
|
|
@@ -788,6 +804,35 @@ var ThereIsNoDegreesYet = "Il n'y a pas encore de diplomes";
|
|
|
788
804
|
var ThereIsNoExperiencesYet = "Il n'y a pas encore d'experiences";
|
|
789
805
|
var ThereIsNoDependentsYet = "Il n'y a pas encore de personnes à charge";
|
|
790
806
|
var DependentTypeName = "Type de personne à charge";
|
|
807
|
+
var Vacations = "Vacances";
|
|
808
|
+
var Indemnity = "Indemnité";
|
|
809
|
+
var MedicalInsurance = "Assurance médicale";
|
|
810
|
+
var Tickets = "Billets";
|
|
811
|
+
var Others = "Autres";
|
|
812
|
+
var Type = "Type";
|
|
813
|
+
var Entitlement = "Droit";
|
|
814
|
+
var IndemnityEligibility = "Admissibilité à l'indemnisation";
|
|
815
|
+
var OvertimeEligibility = "Admissibilité aux heures supplémentaires";
|
|
816
|
+
var SocialSecurityEligibility = "Admissibilité à la sécurité sociale";
|
|
817
|
+
var Class = "Classe";
|
|
818
|
+
var Sector = "Secteur";
|
|
819
|
+
var Me = "Moi";
|
|
820
|
+
var Eligible = "Admissible";
|
|
821
|
+
var NotEligible = "Non éligible";
|
|
822
|
+
var Member = "Membre";
|
|
823
|
+
var NotMember = "Non membre";
|
|
824
|
+
var NotCoveredByMedicalInsurance = "Non couvert par l'assurance médicale";
|
|
825
|
+
var NoTicketEntitlement = "Aucun droit au billet";
|
|
826
|
+
var CoverageDate = "Date de couverture";
|
|
827
|
+
var TotalEmployeeShare = "Part totale des employés";
|
|
828
|
+
var TotalEmployerShare = "Part totale de l'employeur";
|
|
829
|
+
var Dependents = "Personnes à charge";
|
|
830
|
+
var NotEntitled = "Non éligible au droit";
|
|
831
|
+
var ThereAreNoDependentsYet = "Il n'y a pas encore de personnes à charge";
|
|
832
|
+
var PersonalDocuments = "Documents personnels";
|
|
833
|
+
var ThereAreNoPersonalDocumentsYet = "Il n'y a pas encore de documents personnels";
|
|
834
|
+
var ThereAreNoDependentsDocumentsYet = "Il n'y a pas encore de documents pour les personnes à charge";
|
|
835
|
+
var DependentsDocuments = "Documents des personnes à charge";
|
|
791
836
|
var fr = {
|
|
792
837
|
ReportingTo: ReportingTo,
|
|
793
838
|
NotAnknown: NotAnknown,
|
|
@@ -911,7 +956,40 @@ var fr = {
|
|
|
911
956
|
ThereIsNoDegreesYet: ThereIsNoDegreesYet,
|
|
912
957
|
ThereIsNoExperiencesYet: ThereIsNoExperiencesYet,
|
|
913
958
|
ThereIsNoDependentsYet: ThereIsNoDependentsYet,
|
|
914
|
-
DependentTypeName: DependentTypeName
|
|
959
|
+
DependentTypeName: DependentTypeName,
|
|
960
|
+
Vacations: Vacations,
|
|
961
|
+
Indemnity: Indemnity,
|
|
962
|
+
MedicalInsurance: MedicalInsurance,
|
|
963
|
+
Tickets: Tickets,
|
|
964
|
+
Others: Others,
|
|
965
|
+
Type: Type,
|
|
966
|
+
Entitlement: Entitlement,
|
|
967
|
+
IndemnityEligibility: IndemnityEligibility,
|
|
968
|
+
OvertimeEligibility: OvertimeEligibility,
|
|
969
|
+
SocialSecurityEligibility: SocialSecurityEligibility,
|
|
970
|
+
Class: Class,
|
|
971
|
+
Sector: Sector,
|
|
972
|
+
Me: Me,
|
|
973
|
+
Eligible: Eligible,
|
|
974
|
+
NotEligible: NotEligible,
|
|
975
|
+
Member: Member,
|
|
976
|
+
NotMember: NotMember,
|
|
977
|
+
"There'sNoInformationInThisSectionYet": "Il n'y a pas encore d'informations dans cette section",
|
|
978
|
+
NotCoveredByMedicalInsurance: NotCoveredByMedicalInsurance,
|
|
979
|
+
NoTicketEntitlement: NoTicketEntitlement,
|
|
980
|
+
"Number": "Nombre",
|
|
981
|
+
CoverageDate: CoverageDate,
|
|
982
|
+
TotalEmployeeShare: TotalEmployeeShare,
|
|
983
|
+
TotalEmployerShare: TotalEmployerShare,
|
|
984
|
+
Dependents: Dependents,
|
|
985
|
+
NotEntitled: NotEntitled,
|
|
986
|
+
"TicketEvery{{value}}Months": "Billet tous les {{value}} mois",
|
|
987
|
+
"TicketEvery{{value}}Month": "Billet tous les {{value}} mois",
|
|
988
|
+
ThereAreNoDependentsYet: ThereAreNoDependentsYet,
|
|
989
|
+
PersonalDocuments: PersonalDocuments,
|
|
990
|
+
ThereAreNoPersonalDocumentsYet: ThereAreNoPersonalDocumentsYet,
|
|
991
|
+
ThereAreNoDependentsDocumentsYet: ThereAreNoDependentsDocumentsYet,
|
|
992
|
+
DependentsDocuments: DependentsDocuments
|
|
915
993
|
};
|
|
916
994
|
|
|
917
995
|
const BUILT_IN_LEXICONS = { en, ar, fr };
|
|
@@ -1282,6 +1360,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
1282
1360
|
class ProfileDocumentsCacheService {
|
|
1283
1361
|
baseUrl = '';
|
|
1284
1362
|
dependentDocuments$ = null;
|
|
1363
|
+
personalDocuments$ = null;
|
|
1285
1364
|
getDependentDocuments(baseUrl) {
|
|
1286
1365
|
return this.baseUrl === baseUrl ? this.dependentDocuments$ : null;
|
|
1287
1366
|
}
|
|
@@ -1289,9 +1368,17 @@ class ProfileDocumentsCacheService {
|
|
|
1289
1368
|
this.ensureBaseUrl(baseUrl);
|
|
1290
1369
|
this.dependentDocuments$ = value;
|
|
1291
1370
|
}
|
|
1371
|
+
getPersonalDocuments(baseUrl) {
|
|
1372
|
+
return this.baseUrl === baseUrl ? this.personalDocuments$ : null;
|
|
1373
|
+
}
|
|
1374
|
+
setPersonalDocuments(baseUrl, value) {
|
|
1375
|
+
this.ensureBaseUrl(baseUrl);
|
|
1376
|
+
this.personalDocuments$ = value;
|
|
1377
|
+
}
|
|
1292
1378
|
clear() {
|
|
1293
1379
|
this.baseUrl = '';
|
|
1294
1380
|
this.dependentDocuments$ = null;
|
|
1381
|
+
this.personalDocuments$ = null;
|
|
1295
1382
|
}
|
|
1296
1383
|
ensureBaseUrl(baseUrl) {
|
|
1297
1384
|
if (this.baseUrl && this.baseUrl !== baseUrl) {
|
|
@@ -1714,6 +1801,21 @@ class HRSelfWidgetsService {
|
|
|
1714
1801
|
this.profileDocumentsCacheService.setDependentDocuments(baseUrl, request$);
|
|
1715
1802
|
return request$;
|
|
1716
1803
|
}
|
|
1804
|
+
getPersonalDocuments(baseUrl, forceRefresh = false) {
|
|
1805
|
+
if (!forceRefresh) {
|
|
1806
|
+
const cached$ = this.profileDocumentsCacheService.getPersonalDocuments(baseUrl);
|
|
1807
|
+
if (cached$)
|
|
1808
|
+
return cached$;
|
|
1809
|
+
}
|
|
1810
|
+
const request$ = this.http
|
|
1811
|
+
.get(`${baseUrl}/hr/widgets/me/profile/documents/personal`, { headers: this.headers })
|
|
1812
|
+
.pipe(map(res => res?.ResponseData ?? []), shareReplay(1), catchError(error => {
|
|
1813
|
+
this.profileDocumentsCacheService.clear();
|
|
1814
|
+
return throwError(() => error);
|
|
1815
|
+
}));
|
|
1816
|
+
this.profileDocumentsCacheService.setPersonalDocuments(baseUrl, request$);
|
|
1817
|
+
return request$;
|
|
1818
|
+
}
|
|
1717
1819
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: HRSelfWidgetsService, deps: [{ token: i1.HttpClient }, { token: BankInformationCacheService }, { token: EntitlementsCacheService }, { token: JobInformationCacheService }, { token: PersonalInformationCacheService }, { token: QualificationsCacheService }, { token: ProfileEmployeeDependentsCach }, { token: ProfileDocumentsCacheService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1718
1820
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: HRSelfWidgetsService, providedIn: 'root' });
|
|
1719
1821
|
}
|
|
@@ -4972,11 +5074,11 @@ class ProfileDependentsDocumentsWidgetComponent {
|
|
|
4972
5074
|
this.attachmentDownloaded.emit(attachments);
|
|
4973
5075
|
}
|
|
4974
5076
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProfileDependentsDocumentsWidgetComponent, deps: [{ token: HRSelfWidgetsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4975
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ProfileDependentsDocumentsWidgetComponent, isStandalone: true, selector: "hr-profile-dependents-documents-widget", inputs: { baseUrl: "baseUrl", sectionTitle: "sectionTitle", icon: "icon", viewIcon: "viewIcon", downloadIcon: "downloadIcon", headerIconClass: "headerIconClass", headerTextClass: "headerTextClass", headerDividerClass: "headerDividerClass", valueClass: "valueClass", viewIconClass: "viewIconClass", downloadIconClass: "downloadIconClass", emptyStateContainerClass: "emptyStateContainerClass", emptyStateTextClass: "emptyStateTextClass", cardClass: "cardClass", rowClass: "rowClass", rowPtClass: "rowPtClass", columnClass: "columnClass", responsiveTopSpacingColClass: "responsiveTopSpacingColClass", topSpacingColClass: "topSpacingColClass", labelClass: "labelClass", actionsColumnClass: "actionsColumnClass" }, outputs: { isLoadingChanged: "isLoadingChanged", attachmentViewed: "attachmentViewed", attachmentDownloaded: "attachmentDownloaded", errorOccurred: "errorOccurred" }, ngImport: i0, template: "<sky-section-divider [fontAwesomeIcon]=\"icon\"\r\n [text]=\"(sectionTitle | HRTranslate | uppercase)\"\r\n [iconClass]=\"headerIconClass\"\r\n [textClass]=\"headerTextClass\"\r\n [dividerClass]=\"headerDividerClass\">\r\n</sky-section-divider>\r\n\r\n<div class=\"mt-4\">\r\n\r\n @if(groups.length) {\r\n\r\n @for(group of groups; track group; let first = $first) {\r\n\r\n <div [class]=\"cardClass\" [class.mt-3]=\"!first\">\r\n\r\n <div class=\"px-3 pt-3\">\r\n <span class=\"text-dark fs-16\" [title]=\"group.DependentName\">\r\n {{ group.DependentName }}\r\n </span>\r\n <span class=\"text-dark fs-16 mx-1\">\r\n ({{ group.DependentTypeName }})\r\n </span>\r\n\r\n </div>\r\n\r\n @for(doc of group.Documents; track doc; let last = $last) {\r\n\r\n <div [ngClass]=\"[rowClass, rowPtClass]\">\r\n\r\n <div [class]=\"columnClass\">\r\n <hr-info-field [labelKey]=\"'Type'\"\r\n [value]=\"doc.DocumentTypeName\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"columnClass\">\r\n <hr-info-field [labelKey]=\"'IssueDate'\"\r\n [value]=\"doc.IssueDate ? (doc.IssueDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"responsiveTopSpacingColClass\">\r\n <hr-info-field [labelKey]=\"'ExpiryDate'\"\r\n [value]=\"doc.ExpiryDate ? (doc.ExpiryDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n @if(last) {\r\n <div [class]=\"actionsColumnClass\">\r\n @if(doc.Attachments?.length) {\r\n\r\n @if(doc.Attachments.length === 1) {\r\n <fa-icon [icon]=\"viewIcon\"\r\n [class]=\"viewIconClass\"\r\n (click)=\"onAttachmentView(doc)\">\r\n </fa-icon>\r\n }\r\n\r\n <fa-icon [icon]=\"downloadIcon\"\r\n [class]=\"downloadIconClass\"\r\n (click)=\"onDownload(group)\">\r\n </fa-icon>\r\n\r\n }\r\n\r\n </div>\r\n }\r\n\r\n </div>\r\n\r\n }\r\n\r\n </div>\r\n\r\n }\r\n\r\n } @else {\r\n\r\n <sky-empty-design-card [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [containerClass]=\"emptyStateContainerClass\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('
|
|
5077
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ProfileDependentsDocumentsWidgetComponent, isStandalone: true, selector: "hr-profile-dependents-documents-widget", inputs: { baseUrl: "baseUrl", sectionTitle: "sectionTitle", icon: "icon", viewIcon: "viewIcon", downloadIcon: "downloadIcon", headerIconClass: "headerIconClass", headerTextClass: "headerTextClass", headerDividerClass: "headerDividerClass", valueClass: "valueClass", viewIconClass: "viewIconClass", downloadIconClass: "downloadIconClass", emptyStateContainerClass: "emptyStateContainerClass", emptyStateTextClass: "emptyStateTextClass", cardClass: "cardClass", rowClass: "rowClass", rowPtClass: "rowPtClass", columnClass: "columnClass", responsiveTopSpacingColClass: "responsiveTopSpacingColClass", topSpacingColClass: "topSpacingColClass", labelClass: "labelClass", actionsColumnClass: "actionsColumnClass" }, outputs: { isLoadingChanged: "isLoadingChanged", attachmentViewed: "attachmentViewed", attachmentDownloaded: "attachmentDownloaded", errorOccurred: "errorOccurred" }, ngImport: i0, template: "<sky-section-divider [fontAwesomeIcon]=\"icon\"\r\n [text]=\"(sectionTitle | HRTranslate | uppercase)\"\r\n [iconClass]=\"headerIconClass\"\r\n [textClass]=\"headerTextClass\"\r\n [dividerClass]=\"headerDividerClass\">\r\n</sky-section-divider>\r\n\r\n<div class=\"mt-4\">\r\n\r\n @if(groups.length) {\r\n\r\n @for(group of groups; track group; let first = $first) {\r\n\r\n <div [class]=\"cardClass\" [class.mt-3]=\"!first\">\r\n\r\n <div class=\"px-3 pt-3\">\r\n <span class=\"text-dark fs-16\" [title]=\"group.DependentName\">\r\n {{ group.DependentName }}\r\n </span>\r\n <span class=\"text-dark fs-16 mx-1\">\r\n ({{ group.DependentTypeName }})\r\n </span>\r\n\r\n </div>\r\n\r\n @for(doc of group.Documents; track doc; let last = $last) {\r\n\r\n <div [ngClass]=\"[rowClass, rowPtClass]\">\r\n\r\n <div [class]=\"columnClass\">\r\n <hr-info-field [labelKey]=\"'Type'\"\r\n [value]=\"doc.DocumentTypeName\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"columnClass\">\r\n <hr-info-field [labelKey]=\"'IssueDate'\"\r\n [value]=\"doc.IssueDate ? (doc.IssueDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"responsiveTopSpacingColClass\">\r\n <hr-info-field [labelKey]=\"'ExpiryDate'\"\r\n [value]=\"doc.ExpiryDate ? (doc.ExpiryDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n @if(last) {\r\n <div [class]=\"actionsColumnClass\">\r\n @if(doc.Attachments?.length) {\r\n\r\n @if(doc.Attachments.length === 1) {\r\n <fa-icon [icon]=\"viewIcon\"\r\n [class]=\"viewIconClass\"\r\n (click)=\"onAttachmentView(doc)\">\r\n </fa-icon>\r\n }\r\n\r\n <fa-icon [icon]=\"downloadIcon\"\r\n [class]=\"downloadIconClass\"\r\n (click)=\"onDownload(group)\">\r\n </fa-icon>\r\n\r\n }\r\n\r\n </div>\r\n }\r\n\r\n </div>\r\n\r\n }\r\n\r\n </div>\r\n\r\n }\r\n\r\n } @else {\r\n\r\n <sky-empty-design-card [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [containerClass]=\"emptyStateContainerClass\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('ThereAreNoDependentsDocumentsYet' | HRTranslate)\">\r\n </sky-empty-design-card>\r\n\r\n }\r\n\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2$1.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "component", type: SkySectionDividerComponent, selector: "sky-section-divider", inputs: ["text", "fontAwesomeIcon", "textClass", "dividerClass", "iconClass"] }, { kind: "pipe", type: HRTranslatePipe, name: "HRTranslate" }, { kind: "component", type: SkyEmptyDesignCardComponent, selector: "sky-empty-design-card", inputs: ["emptyIcon", "emptyIconClass", "emptyText", "emptyTextClass", "actionTitle", "actionIcon", "actionDisabled", "textColor", "disabledTitleClass", "activeTitleClass", "disabledIconClass", "activeIconClass", "actionClass", "containerClass", "cardBodyClass", "cardBodyContainerClass", "visibleIcon", "visibleQuickAction"], outputs: ["onActionClick"] }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i3.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { kind: "component", type: HRInfoFieldComponent, selector: "hr-info-field", inputs: ["labelKey", "value", "labelClass", "valueClass", "fallbackValue"] }] });
|
|
4976
5078
|
}
|
|
4977
5079
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProfileDependentsDocumentsWidgetComponent, decorators: [{
|
|
4978
5080
|
type: Component,
|
|
4979
|
-
args: [{ selector: 'hr-profile-dependents-documents-widget', standalone: true, imports: [CommonModule, SkySectionDividerComponent, HRTranslatePipe, SkyEmptyDesignCardComponent, FontAwesomeModule, HRInfoFieldComponent], template: "<sky-section-divider [fontAwesomeIcon]=\"icon\"\r\n [text]=\"(sectionTitle | HRTranslate | uppercase)\"\r\n [iconClass]=\"headerIconClass\"\r\n [textClass]=\"headerTextClass\"\r\n [dividerClass]=\"headerDividerClass\">\r\n</sky-section-divider>\r\n\r\n<div class=\"mt-4\">\r\n\r\n @if(groups.length) {\r\n\r\n @for(group of groups; track group; let first = $first) {\r\n\r\n <div [class]=\"cardClass\" [class.mt-3]=\"!first\">\r\n\r\n <div class=\"px-3 pt-3\">\r\n <span class=\"text-dark fs-16\" [title]=\"group.DependentName\">\r\n {{ group.DependentName }}\r\n </span>\r\n <span class=\"text-dark fs-16 mx-1\">\r\n ({{ group.DependentTypeName }})\r\n </span>\r\n\r\n </div>\r\n\r\n @for(doc of group.Documents; track doc; let last = $last) {\r\n\r\n <div [ngClass]=\"[rowClass, rowPtClass]\">\r\n\r\n <div [class]=\"columnClass\">\r\n <hr-info-field [labelKey]=\"'Type'\"\r\n [value]=\"doc.DocumentTypeName\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"columnClass\">\r\n <hr-info-field [labelKey]=\"'IssueDate'\"\r\n [value]=\"doc.IssueDate ? (doc.IssueDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"responsiveTopSpacingColClass\">\r\n <hr-info-field [labelKey]=\"'ExpiryDate'\"\r\n [value]=\"doc.ExpiryDate ? (doc.ExpiryDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n @if(last) {\r\n <div [class]=\"actionsColumnClass\">\r\n @if(doc.Attachments?.length) {\r\n\r\n @if(doc.Attachments.length === 1) {\r\n <fa-icon [icon]=\"viewIcon\"\r\n [class]=\"viewIconClass\"\r\n (click)=\"onAttachmentView(doc)\">\r\n </fa-icon>\r\n }\r\n\r\n <fa-icon [icon]=\"downloadIcon\"\r\n [class]=\"downloadIconClass\"\r\n (click)=\"onDownload(group)\">\r\n </fa-icon>\r\n\r\n }\r\n\r\n </div>\r\n }\r\n\r\n </div>\r\n\r\n }\r\n\r\n </div>\r\n\r\n }\r\n\r\n } @else {\r\n\r\n <sky-empty-design-card [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [containerClass]=\"emptyStateContainerClass\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('
|
|
5081
|
+
args: [{ selector: 'hr-profile-dependents-documents-widget', standalone: true, imports: [CommonModule, SkySectionDividerComponent, HRTranslatePipe, SkyEmptyDesignCardComponent, FontAwesomeModule, HRInfoFieldComponent], template: "<sky-section-divider [fontAwesomeIcon]=\"icon\"\r\n [text]=\"(sectionTitle | HRTranslate | uppercase)\"\r\n [iconClass]=\"headerIconClass\"\r\n [textClass]=\"headerTextClass\"\r\n [dividerClass]=\"headerDividerClass\">\r\n</sky-section-divider>\r\n\r\n<div class=\"mt-4\">\r\n\r\n @if(groups.length) {\r\n\r\n @for(group of groups; track group; let first = $first) {\r\n\r\n <div [class]=\"cardClass\" [class.mt-3]=\"!first\">\r\n\r\n <div class=\"px-3 pt-3\">\r\n <span class=\"text-dark fs-16\" [title]=\"group.DependentName\">\r\n {{ group.DependentName }}\r\n </span>\r\n <span class=\"text-dark fs-16 mx-1\">\r\n ({{ group.DependentTypeName }})\r\n </span>\r\n\r\n </div>\r\n\r\n @for(doc of group.Documents; track doc; let last = $last) {\r\n\r\n <div [ngClass]=\"[rowClass, rowPtClass]\">\r\n\r\n <div [class]=\"columnClass\">\r\n <hr-info-field [labelKey]=\"'Type'\"\r\n [value]=\"doc.DocumentTypeName\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"columnClass\">\r\n <hr-info-field [labelKey]=\"'IssueDate'\"\r\n [value]=\"doc.IssueDate ? (doc.IssueDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"responsiveTopSpacingColClass\">\r\n <hr-info-field [labelKey]=\"'ExpiryDate'\"\r\n [value]=\"doc.ExpiryDate ? (doc.ExpiryDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n @if(last) {\r\n <div [class]=\"actionsColumnClass\">\r\n @if(doc.Attachments?.length) {\r\n\r\n @if(doc.Attachments.length === 1) {\r\n <fa-icon [icon]=\"viewIcon\"\r\n [class]=\"viewIconClass\"\r\n (click)=\"onAttachmentView(doc)\">\r\n </fa-icon>\r\n }\r\n\r\n <fa-icon [icon]=\"downloadIcon\"\r\n [class]=\"downloadIconClass\"\r\n (click)=\"onDownload(group)\">\r\n </fa-icon>\r\n\r\n }\r\n\r\n </div>\r\n }\r\n\r\n </div>\r\n\r\n }\r\n\r\n </div>\r\n\r\n }\r\n\r\n } @else {\r\n\r\n <sky-empty-design-card [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [containerClass]=\"emptyStateContainerClass\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('ThereAreNoDependentsDocumentsYet' | HRTranslate)\">\r\n </sky-empty-design-card>\r\n\r\n }\r\n\r\n</div>\r\n" }]
|
|
4980
5082
|
}], ctorParameters: () => [{ type: HRSelfWidgetsService }], propDecorators: { baseUrl: [{
|
|
4981
5083
|
type: Input
|
|
4982
5084
|
}], sectionTitle: [{
|
|
@@ -5029,6 +5131,130 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
5029
5131
|
type: Output
|
|
5030
5132
|
}] } });
|
|
5031
5133
|
|
|
5134
|
+
class ProfilePersonalDocumentsWidgetComponent {
|
|
5135
|
+
service;
|
|
5136
|
+
documents = [];
|
|
5137
|
+
isLoading = true;
|
|
5138
|
+
baseUrl = '';
|
|
5139
|
+
employeeName = '';
|
|
5140
|
+
sectionTitle = 'PersonalDocuments';
|
|
5141
|
+
icon = faFileLines;
|
|
5142
|
+
viewIcon = faEye;
|
|
5143
|
+
downloadIcon = faFolderArrowDown;
|
|
5144
|
+
headerIconClass = 'primary-icon-xl';
|
|
5145
|
+
headerTextClass = 'fs-16 mt-2 text-secondary';
|
|
5146
|
+
headerDividerClass = 'flex-grow-1 ms-2';
|
|
5147
|
+
valueClass = 'text-dark-gray fs-14';
|
|
5148
|
+
viewIconClass = 'fs-15 text-dark cursor-pointer';
|
|
5149
|
+
downloadIconClass = 'fs-15 mx-3 text-dark cursor-pointer';
|
|
5150
|
+
emptyStateContainerClass = 'd-flex flex-column justify-content-center align-items-center my-5';
|
|
5151
|
+
emptyStateTextClass = 'field-secondary-label-md';
|
|
5152
|
+
cardClass = 'mt-4 card-shadow position-relative';
|
|
5153
|
+
rowClass = 'row px-4 pb-3';
|
|
5154
|
+
rowPtClass = 'pt-3';
|
|
5155
|
+
columnClass = 'col-md-3 col-6';
|
|
5156
|
+
responsiveTopSpacingColClass = 'col-md-3 col-6 mt-md-0 mt-4';
|
|
5157
|
+
topSpacingColClass = 'col-md-3 col-6 mt-4';
|
|
5158
|
+
labelClass = 'field-secondary-label-sm mb-1';
|
|
5159
|
+
actionsColumnClass = 'col-2 align-items-end mt-3';
|
|
5160
|
+
isLoadingChanged = new EventEmitter();
|
|
5161
|
+
attachmentViewed = new EventEmitter();
|
|
5162
|
+
attachmentDownloaded = new EventEmitter();
|
|
5163
|
+
errorOccurred = new EventEmitter();
|
|
5164
|
+
constructor(service) {
|
|
5165
|
+
this.service = service;
|
|
5166
|
+
}
|
|
5167
|
+
ngOnInit() {
|
|
5168
|
+
if (!this.baseUrl) {
|
|
5169
|
+
this.isLoading = false;
|
|
5170
|
+
return;
|
|
5171
|
+
}
|
|
5172
|
+
this.isLoadingChanged.emit(true);
|
|
5173
|
+
this.service.getPersonalDocuments(this.baseUrl).subscribe({
|
|
5174
|
+
next: (res) => {
|
|
5175
|
+
this.documents = res ?? [];
|
|
5176
|
+
this.isLoading = false;
|
|
5177
|
+
this.isLoadingChanged.emit(false);
|
|
5178
|
+
},
|
|
5179
|
+
error: (error) => {
|
|
5180
|
+
this.documents = [];
|
|
5181
|
+
this.isLoading = false;
|
|
5182
|
+
this.errorOccurred.emit(error.error.ResponseData.Errors[0].Message);
|
|
5183
|
+
this.isLoadingChanged.emit(false);
|
|
5184
|
+
}
|
|
5185
|
+
});
|
|
5186
|
+
}
|
|
5187
|
+
onAttachmentView(doc) {
|
|
5188
|
+
if (doc.Attachments?.length) {
|
|
5189
|
+
this.attachmentViewed.emit(doc.Attachments[0]);
|
|
5190
|
+
}
|
|
5191
|
+
}
|
|
5192
|
+
onDownload(doc) {
|
|
5193
|
+
const attachments = doc.Attachments ?? [];
|
|
5194
|
+
if (!attachments.length)
|
|
5195
|
+
return;
|
|
5196
|
+
this.attachmentDownloaded.emit(attachments);
|
|
5197
|
+
}
|
|
5198
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProfilePersonalDocumentsWidgetComponent, deps: [{ token: HRSelfWidgetsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5199
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ProfilePersonalDocumentsWidgetComponent, isStandalone: true, selector: "hr-profile-personal-documents-widget", inputs: { baseUrl: "baseUrl", employeeName: "employeeName", sectionTitle: "sectionTitle", icon: "icon", viewIcon: "viewIcon", downloadIcon: "downloadIcon", headerIconClass: "headerIconClass", headerTextClass: "headerTextClass", headerDividerClass: "headerDividerClass", valueClass: "valueClass", viewIconClass: "viewIconClass", downloadIconClass: "downloadIconClass", emptyStateContainerClass: "emptyStateContainerClass", emptyStateTextClass: "emptyStateTextClass", cardClass: "cardClass", rowClass: "rowClass", rowPtClass: "rowPtClass", columnClass: "columnClass", responsiveTopSpacingColClass: "responsiveTopSpacingColClass", topSpacingColClass: "topSpacingColClass", labelClass: "labelClass", actionsColumnClass: "actionsColumnClass" }, outputs: { isLoadingChanged: "isLoadingChanged", attachmentViewed: "attachmentViewed", attachmentDownloaded: "attachmentDownloaded", errorOccurred: "errorOccurred" }, ngImport: i0, template: "<sky-section-divider [fontAwesomeIcon]=\"icon\"\r\n [text]=\"(sectionTitle | HRTranslate | uppercase)\"\r\n [iconClass]=\"headerIconClass\"\r\n [textClass]=\"headerTextClass\"\r\n [dividerClass]=\"headerDividerClass\">\r\n</sky-section-divider>\r\n\r\n<div class=\"mt-4\">\r\n @if(documents.length) {\r\n <div [class]=\"cardClass\">\r\n <div class=\"px-3 pt-3\">\r\n <span class=\"text-dark fs-16\">\r\n {{ employeeName }}\r\n </span>\r\n <span class=\"text-dark fs-16 mx-1\">\r\n ({{ 'Me' | HRTranslate }})\r\n </span>\r\n </div>\r\n @for(doc of documents; track doc; let last = $last) {\r\n <div [ngClass]=\"[rowClass, rowPtClass]\">\r\n <div [class]=\"columnClass\" [title]=\"doc.DocumentTypeName\">\r\n <hr-info-field [labelKey]=\"'Type'\"\r\n [value]=\"doc.DocumentTypeName\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n <div [class]=\"columnClass\" [title]=\"doc.DocumentNumber\">\r\n <hr-info-field [labelKey]=\"'DocumentNumber'\"\r\n [value]=\"doc.DocumentNumber || '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n <div [class]=\"responsiveTopSpacingColClass\" [title]=\"doc.IssueDate\">\r\n <hr-info-field [labelKey]=\"'IssueDate'\"\r\n [value]=\"doc.IssueDate ? (doc.IssueDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n <div [class]=\"responsiveTopSpacingColClass\" [title]=\"doc.ExpiryDate\">\r\n <hr-info-field [labelKey]=\"'ExpiryDate'\"\r\n [value]=\"doc.ExpiryDate ? (doc.ExpiryDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n @if(last) {\r\n <div [class]=\"actionsColumnClass\">\r\n @if(doc.Attachments?.length) {\r\n @if(doc.Attachments.length === 1) {\r\n <fa-icon [icon]=\"viewIcon\"\r\n [class]=\"viewIconClass\"\r\n (click)=\"onAttachmentView(doc)\">\r\n </fa-icon>\r\n }\r\n <fa-icon [icon]=\"downloadIcon\"\r\n [class]=\"downloadIconClass\"\r\n (click)=\"onDownload(doc)\">\r\n </fa-icon>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <sky-empty-design-card [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [containerClass]=\"emptyStateContainerClass\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('ThereAreNoPersonalDocumentsYet' | HRTranslate)\">\r\n </sky-empty-design-card>\r\n }\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2$1.UpperCasePipe, name: "uppercase" }, { kind: "pipe", type: i2$1.DatePipe, name: "date" }, { kind: "component", type: SkySectionDividerComponent, selector: "sky-section-divider", inputs: ["text", "fontAwesomeIcon", "textClass", "dividerClass", "iconClass"] }, { kind: "pipe", type: HRTranslatePipe, name: "HRTranslate" }, { kind: "component", type: SkyEmptyDesignCardComponent, selector: "sky-empty-design-card", inputs: ["emptyIcon", "emptyIconClass", "emptyText", "emptyTextClass", "actionTitle", "actionIcon", "actionDisabled", "textColor", "disabledTitleClass", "activeTitleClass", "disabledIconClass", "activeIconClass", "actionClass", "containerClass", "cardBodyClass", "cardBodyContainerClass", "visibleIcon", "visibleQuickAction"], outputs: ["onActionClick"] }, { kind: "ngmodule", type: FontAwesomeModule }, { kind: "component", type: i3.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { kind: "component", type: HRInfoFieldComponent, selector: "hr-info-field", inputs: ["labelKey", "value", "labelClass", "valueClass", "fallbackValue"] }] });
|
|
5200
|
+
}
|
|
5201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProfilePersonalDocumentsWidgetComponent, decorators: [{
|
|
5202
|
+
type: Component,
|
|
5203
|
+
args: [{ selector: 'hr-profile-personal-documents-widget', standalone: true, imports: [CommonModule, SkySectionDividerComponent, HRTranslatePipe, SkyEmptyDesignCardComponent, FontAwesomeModule, HRInfoFieldComponent], template: "<sky-section-divider [fontAwesomeIcon]=\"icon\"\r\n [text]=\"(sectionTitle | HRTranslate | uppercase)\"\r\n [iconClass]=\"headerIconClass\"\r\n [textClass]=\"headerTextClass\"\r\n [dividerClass]=\"headerDividerClass\">\r\n</sky-section-divider>\r\n\r\n<div class=\"mt-4\">\r\n @if(documents.length) {\r\n <div [class]=\"cardClass\">\r\n <div class=\"px-3 pt-3\">\r\n <span class=\"text-dark fs-16\">\r\n {{ employeeName }}\r\n </span>\r\n <span class=\"text-dark fs-16 mx-1\">\r\n ({{ 'Me' | HRTranslate }})\r\n </span>\r\n </div>\r\n @for(doc of documents; track doc; let last = $last) {\r\n <div [ngClass]=\"[rowClass, rowPtClass]\">\r\n <div [class]=\"columnClass\" [title]=\"doc.DocumentTypeName\">\r\n <hr-info-field [labelKey]=\"'Type'\"\r\n [value]=\"doc.DocumentTypeName\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n <div [class]=\"columnClass\" [title]=\"doc.DocumentNumber\">\r\n <hr-info-field [labelKey]=\"'DocumentNumber'\"\r\n [value]=\"doc.DocumentNumber || '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n <div [class]=\"responsiveTopSpacingColClass\" [title]=\"doc.IssueDate\">\r\n <hr-info-field [labelKey]=\"'IssueDate'\"\r\n [value]=\"doc.IssueDate ? (doc.IssueDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n <div [class]=\"responsiveTopSpacingColClass\" [title]=\"doc.ExpiryDate\">\r\n <hr-info-field [labelKey]=\"'ExpiryDate'\"\r\n [value]=\"doc.ExpiryDate ? (doc.ExpiryDate | date:'dd/MM/yyyy') : '-'\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n @if(last) {\r\n <div [class]=\"actionsColumnClass\">\r\n @if(doc.Attachments?.length) {\r\n @if(doc.Attachments.length === 1) {\r\n <fa-icon [icon]=\"viewIcon\"\r\n [class]=\"viewIconClass\"\r\n (click)=\"onAttachmentView(doc)\">\r\n </fa-icon>\r\n }\r\n <fa-icon [icon]=\"downloadIcon\"\r\n [class]=\"downloadIconClass\"\r\n (click)=\"onDownload(doc)\">\r\n </fa-icon>\r\n }\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n } @else {\r\n <sky-empty-design-card [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [containerClass]=\"emptyStateContainerClass\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('ThereAreNoPersonalDocumentsYet' | HRTranslate)\">\r\n </sky-empty-design-card>\r\n }\r\n</div>\r\n" }]
|
|
5204
|
+
}], ctorParameters: () => [{ type: HRSelfWidgetsService }], propDecorators: { baseUrl: [{
|
|
5205
|
+
type: Input
|
|
5206
|
+
}], employeeName: [{
|
|
5207
|
+
type: Input
|
|
5208
|
+
}], sectionTitle: [{
|
|
5209
|
+
type: Input
|
|
5210
|
+
}], icon: [{
|
|
5211
|
+
type: Input
|
|
5212
|
+
}], viewIcon: [{
|
|
5213
|
+
type: Input
|
|
5214
|
+
}], downloadIcon: [{
|
|
5215
|
+
type: Input
|
|
5216
|
+
}], headerIconClass: [{
|
|
5217
|
+
type: Input
|
|
5218
|
+
}], headerTextClass: [{
|
|
5219
|
+
type: Input
|
|
5220
|
+
}], headerDividerClass: [{
|
|
5221
|
+
type: Input
|
|
5222
|
+
}], valueClass: [{
|
|
5223
|
+
type: Input
|
|
5224
|
+
}], viewIconClass: [{
|
|
5225
|
+
type: Input
|
|
5226
|
+
}], downloadIconClass: [{
|
|
5227
|
+
type: Input
|
|
5228
|
+
}], emptyStateContainerClass: [{
|
|
5229
|
+
type: Input
|
|
5230
|
+
}], emptyStateTextClass: [{
|
|
5231
|
+
type: Input
|
|
5232
|
+
}], cardClass: [{
|
|
5233
|
+
type: Input
|
|
5234
|
+
}], rowClass: [{
|
|
5235
|
+
type: Input
|
|
5236
|
+
}], rowPtClass: [{
|
|
5237
|
+
type: Input
|
|
5238
|
+
}], columnClass: [{
|
|
5239
|
+
type: Input
|
|
5240
|
+
}], responsiveTopSpacingColClass: [{
|
|
5241
|
+
type: Input
|
|
5242
|
+
}], topSpacingColClass: [{
|
|
5243
|
+
type: Input
|
|
5244
|
+
}], labelClass: [{
|
|
5245
|
+
type: Input
|
|
5246
|
+
}], actionsColumnClass: [{
|
|
5247
|
+
type: Input
|
|
5248
|
+
}], isLoadingChanged: [{
|
|
5249
|
+
type: Output
|
|
5250
|
+
}], attachmentViewed: [{
|
|
5251
|
+
type: Output
|
|
5252
|
+
}], attachmentDownloaded: [{
|
|
5253
|
+
type: Output
|
|
5254
|
+
}], errorOccurred: [{
|
|
5255
|
+
type: Output
|
|
5256
|
+
}] } });
|
|
5257
|
+
|
|
5032
5258
|
/*
|
|
5033
5259
|
* Public API Surface of shared-ui
|
|
5034
5260
|
*/
|
|
@@ -5037,5 +5263,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
5037
5263
|
* Generated bundle index. Do not edit.
|
|
5038
5264
|
*/
|
|
5039
5265
|
|
|
5040
|
-
export { DependentsWidgetComponent, EventOption, EventTypeEnum, HRCardHeaderComponent, HRConstantsService, HREmployeeCalendarComponent, HRHighlightPipe, HRMedicalInsuranceCardComponent, HRTranslatePipe, HRTranslateService, MainWidgetShortcut, MyCalendarWidgetComponent, MyMainDetailsWidgetComponent, MyNextWeekVacationInsightsWidgetComponent, MyUpcomingEventsWidgetComponent, ProfileBankInfoWidgetComponent, ProfileDegreesWidgetComponent, ProfileDependentsDocumentsWidgetComponent, ProfileEntitlementsIndemnityWidgetComponent, ProfileEntitlementsMedicalInsuranceWidgetComponent, ProfileEntitlementsOthersWidgetComponent, ProfileEntitlementsTicketWidgetComponent, ProfileEntitlementsVacationsWidgetComponent, ProfileExperiencesWidgetComponent, ProfileJobInfoContractWidgetComponent, ProfileJobInfoMainWidgetComponent, ProfileJobInfoSalaryWidgetComponent, ProfileJobInfoServiceChargeWidgetComponent, ProfilePersonalInfoAddressWidgetComponent, ProfilePersonalInfoContactWidgetComponent, ProfilePersonalInfoLanguagesWidgetComponent, ProfilePersonalInfoMainWidgetComponent, ProfilePersonalInfoOtherNationalitiesWidgetComponent, PublicHolidayWeekContext, RelativeDay, ScheduleVacationTypes, ServiceChargeEntitlementMode, VacationPopupType };
|
|
5266
|
+
export { DependentsWidgetComponent, EventOption, EventTypeEnum, HRCardHeaderComponent, HRConstantsService, HREmployeeCalendarComponent, HRHighlightPipe, HRMedicalInsuranceCardComponent, HRTranslatePipe, HRTranslateService, MainWidgetShortcut, MyCalendarWidgetComponent, MyMainDetailsWidgetComponent, MyNextWeekVacationInsightsWidgetComponent, MyUpcomingEventsWidgetComponent, ProfileBankInfoWidgetComponent, ProfileDegreesWidgetComponent, ProfileDependentsDocumentsWidgetComponent, ProfileEntitlementsIndemnityWidgetComponent, ProfileEntitlementsMedicalInsuranceWidgetComponent, ProfileEntitlementsOthersWidgetComponent, ProfileEntitlementsTicketWidgetComponent, ProfileEntitlementsVacationsWidgetComponent, ProfileExperiencesWidgetComponent, ProfileJobInfoContractWidgetComponent, ProfileJobInfoMainWidgetComponent, ProfileJobInfoSalaryWidgetComponent, ProfileJobInfoServiceChargeWidgetComponent, ProfilePersonalDocumentsWidgetComponent, ProfilePersonalInfoAddressWidgetComponent, ProfilePersonalInfoContactWidgetComponent, ProfilePersonalInfoLanguagesWidgetComponent, ProfilePersonalInfoMainWidgetComponent, ProfilePersonalInfoOtherNationalitiesWidgetComponent, PublicHolidayWeekContext, RelativeDay, ScheduleVacationTypes, ServiceChargeEntitlementMode, VacationPopupType };
|
|
5041
5267
|
//# sourceMappingURL=skysoftware-co-bayan-hr-widgets-ui.mjs.map
|