@skysoftware-co/bayan-hr-widgets-ui 1.0.24 → 1.0.25
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.
|
@@ -11,9 +11,9 @@ import { SkyShortcutIconComponent, SkySectionDividerComponent, SkyEmptyDesignCar
|
|
|
11
11
|
import * as i1 from '@angular/common/http';
|
|
12
12
|
import { HttpParams } from '@angular/common/http';
|
|
13
13
|
import { map, shareReplay, catchError, throwError, lastValueFrom } from 'rxjs';
|
|
14
|
-
import { faCakeCandles, faTreePalm, faCalendarStar, faMoneyCheckDollarPen, faMemoCircleInfo, faPhone, faBolt, faLanguage, faEarthAfrica, faHouse, faFileSignature, faSackDollar, faEnvelopeOpenDollar, faXmark
|
|
14
|
+
import { faCakeCandles, faTreePalm, faCalendarStar, faMoneyCheckDollarPen, faMemoCircleInfo, faPhone, faBolt, faLanguage, faEarthAfrica, faHouse, faFileSignature, faSackDollar, faEnvelopeOpenDollar, faXmark } from '@fortawesome/pro-light-svg-icons';
|
|
15
15
|
import * as i2 from 'devextreme-angular/core';
|
|
16
|
-
import { faCircle, faCalendarDays
|
|
16
|
+
import { faCircle, faCalendarDays } from '@fortawesome/pro-regular-svg-icons';
|
|
17
17
|
import moment from 'moment';
|
|
18
18
|
import { faPlaneDeparture, faPlaneArrival } from '@fortawesome/pro-solid-svg-icons';
|
|
19
19
|
import CustomStore from 'devextreme/data/custom_store';
|
|
@@ -2523,11 +2523,11 @@ class HRInfoFieldComponent {
|
|
|
2523
2523
|
valueClass = 'fs-14 fw-medium';
|
|
2524
2524
|
fallbackValue = '—';
|
|
2525
2525
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: HRInfoFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2526
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: HRInfoFieldComponent, isStandalone: true, selector: "hr-info-field", inputs: { labelKey: "labelKey", value: "value", labelClass: "labelClass", valueClass: "valueClass", fallbackValue: "fallbackValue" }, ngImport: i0, template: "<div [ngClass]=\"labelClass\">{{labelKey | HRTranslate}}</div>\r\n<div [ngClass]=\"valueClass\">{{value || fallbackValue}}</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: HRTranslatePipe, name: "HRTranslate" }] });
|
|
2526
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.20", type: HRInfoFieldComponent, isStandalone: true, selector: "hr-info-field", inputs: { labelKey: "labelKey", value: "value", labelClass: "labelClass", valueClass: "valueClass", fallbackValue: "fallbackValue" }, ngImport: i0, template: "<div [ngClass]=\"labelClass\">{{labelKey | HRTranslate}}</div>\r\n<div [ngClass]=\"valueClass\" [title]=\"value|| fallbackValue\">{{value || fallbackValue}}</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: HRTranslatePipe, name: "HRTranslate" }] });
|
|
2527
2527
|
}
|
|
2528
2528
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: HRInfoFieldComponent, decorators: [{
|
|
2529
2529
|
type: Component,
|
|
2530
|
-
args: [{ selector: 'hr-info-field', standalone: true, imports: [CommonModule, HRTranslatePipe], template: "<div [ngClass]=\"labelClass\">{{labelKey | HRTranslate}}</div>\r\n<div [ngClass]=\"valueClass\">{{value || fallbackValue}}</div>\r\n" }]
|
|
2530
|
+
args: [{ selector: 'hr-info-field', standalone: true, imports: [CommonModule, HRTranslatePipe], template: "<div [ngClass]=\"labelClass\">{{labelKey | HRTranslate}}</div>\r\n<div [ngClass]=\"valueClass\" [title]=\"value|| fallbackValue\">{{value || fallbackValue}}</div>\r\n" }]
|
|
2531
2531
|
}], propDecorators: { labelKey: [{
|
|
2532
2532
|
type: Input,
|
|
2533
2533
|
args: [{ required: true }]
|
|
@@ -3690,246 +3690,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
3690
3690
|
type: Output
|
|
3691
3691
|
}] } });
|
|
3692
3692
|
|
|
3693
|
-
class ProfileExperiencesWidgetComponent {
|
|
3694
|
-
service;
|
|
3695
|
-
experiences = [];
|
|
3696
|
-
isLoading = true;
|
|
3697
|
-
baseUrl = '';
|
|
3698
|
-
sectionTitle = 'experiences';
|
|
3699
|
-
viewIcon = faEye;
|
|
3700
|
-
downloadIcon = faFolderArrowDown;
|
|
3701
|
-
experienceIcon = faUsersRays;
|
|
3702
|
-
headerIconClass = 'primary-icon-xl';
|
|
3703
|
-
headerTextClass = 'fs-16 mt-2 text-secondary';
|
|
3704
|
-
headerDividerClass = 'flex-grow-1 ms-2';
|
|
3705
|
-
rowClass = 'mt-4';
|
|
3706
|
-
itemRowClass = 'row col-10 mt-3';
|
|
3707
|
-
itemColumnClass = 'col-3';
|
|
3708
|
-
labelClass = 'field-secondary-label-sm';
|
|
3709
|
-
valueClass = 'text-dark-gray fs-14 text-ellipsis-one-line cursor-pointer';
|
|
3710
|
-
actionsColumnClass = 'col-2 mt-3';
|
|
3711
|
-
viewIconClass = 'fs-15 text-dark cursor-pointer';
|
|
3712
|
-
downloadIconClass = 'fs-15 text-dark cursor-pointer mx-2';
|
|
3713
|
-
emptyStateContainerClass = 'd-flex flex-column justify-content-center align-items-center my-5';
|
|
3714
|
-
emptyStateTextClass = 'field-secondary-label-md';
|
|
3715
|
-
isLoadingChanged = new EventEmitter();
|
|
3716
|
-
attachmentViewed = new EventEmitter();
|
|
3717
|
-
attachmentDownloaded = new EventEmitter();
|
|
3718
|
-
errorOccurred = new EventEmitter();
|
|
3719
|
-
constructor(service) {
|
|
3720
|
-
this.service = service;
|
|
3721
|
-
}
|
|
3722
|
-
ngOnInit() {
|
|
3723
|
-
if (!this.baseUrl) {
|
|
3724
|
-
this.isLoading = false;
|
|
3725
|
-
return;
|
|
3726
|
-
}
|
|
3727
|
-
this.isLoadingChanged.emit(true);
|
|
3728
|
-
this.service.getEmployeeExperiences(this.baseUrl).subscribe({
|
|
3729
|
-
next: (res) => {
|
|
3730
|
-
this.experiences = res ?? [];
|
|
3731
|
-
this.isLoading = false;
|
|
3732
|
-
this.isLoadingChanged.emit(false);
|
|
3733
|
-
},
|
|
3734
|
-
error: (error) => {
|
|
3735
|
-
this.experiences = [];
|
|
3736
|
-
this.isLoading = false;
|
|
3737
|
-
this.errorOccurred.emit(error.error.ResponseData.Errors[0].Message);
|
|
3738
|
-
this.isLoadingChanged.emit(false);
|
|
3739
|
-
}
|
|
3740
|
-
});
|
|
3741
|
-
}
|
|
3742
|
-
onAttachmentView(file) {
|
|
3743
|
-
this.attachmentViewed.emit(file);
|
|
3744
|
-
}
|
|
3745
|
-
onAttachmentDownload(file) {
|
|
3746
|
-
this.attachmentDownloaded.emit(file);
|
|
3747
|
-
}
|
|
3748
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProfileExperiencesWidgetComponent, deps: [{ token: HRSelfWidgetsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3749
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ProfileExperiencesWidgetComponent, isStandalone: true, selector: "hr-profile-experiences-widget", inputs: { baseUrl: "baseUrl", sectionTitle: "sectionTitle", viewIcon: "viewIcon", downloadIcon: "downloadIcon", experienceIcon: "experienceIcon", headerIconClass: "headerIconClass", headerTextClass: "headerTextClass", headerDividerClass: "headerDividerClass", rowClass: "rowClass", itemRowClass: "itemRowClass", itemColumnClass: "itemColumnClass", labelClass: "labelClass", valueClass: "valueClass", actionsColumnClass: "actionsColumnClass", viewIconClass: "viewIconClass", downloadIconClass: "downloadIconClass", emptyStateContainerClass: "emptyStateContainerClass", emptyStateTextClass: "emptyStateTextClass" }, outputs: { isLoadingChanged: "isLoadingChanged", attachmentViewed: "attachmentViewed", attachmentDownloaded: "attachmentDownloaded", errorOccurred: "errorOccurred" }, ngImport: i0, template: "<sky-section-divider [fontAwesomeIcon]=\"experienceIcon\"\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@if(experiences.length > 0){\r\n\r\n<div [class]=\"rowClass\">\r\n\r\n @for (experience of experiences; track experience){\r\n\r\n <div [class]=\"itemRowClass\">\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Period\"\r\n [value]=\"(experience.StartDate | date:'dd/MM/yyyy') + ' - ' + (experience.EndDate | 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]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Employer\"\r\n [value]=\"experience.Employer\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Position\"\r\n [value]=\"experience.Position\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"TerminationReason\"\r\n [value]=\"experience.TerminationReason\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n </div>\r\n\r\n @if(experience.Document){\r\n <div [class]=\"actionsColumnClass\">\r\n <fa-icon [icon]=\"viewIcon\" [class]=\"viewIconClass\" (click)=\"onAttachmentView(experience.Document)\"></fa-icon>\r\n <fa-icon [icon]=\"downloadIcon\" [class]=\"downloadIconClass\" (click)=\"onAttachmentDownload(experience.Document)\"></fa-icon>\r\n </div>\r\n }\r\n\r\n }\r\n\r\n</div>\r\n\r\n}@else{\r\n\r\n\r\n<sky-empty-design-card [containerClass]=\"emptyStateContainerClass\"\r\n [cardBodyClass]=\"''\"\r\n [cardBodyContainerClass]=\"''\"\r\n [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('ThereIsNoExperiencesYet' | HRTranslate)\">\r\n</sky-empty-design-card>\r\n\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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: i1$2.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"] }] });
|
|
3750
|
-
}
|
|
3751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProfileExperiencesWidgetComponent, decorators: [{
|
|
3752
|
-
type: Component,
|
|
3753
|
-
args: [{ selector: 'hr-profile-experiences-widget', standalone: true, imports: [CommonModule, SkySectionDividerComponent,
|
|
3754
|
-
HRTranslatePipe, SkyEmptyDesignCardComponent, FontAwesomeModule, HRInfoFieldComponent], template: "<sky-section-divider [fontAwesomeIcon]=\"experienceIcon\"\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@if(experiences.length > 0){\r\n\r\n<div [class]=\"rowClass\">\r\n\r\n @for (experience of experiences; track experience){\r\n\r\n <div [class]=\"itemRowClass\">\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Period\"\r\n [value]=\"(experience.StartDate | date:'dd/MM/yyyy') + ' - ' + (experience.EndDate | 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]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Employer\"\r\n [value]=\"experience.Employer\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Position\"\r\n [value]=\"experience.Position\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"TerminationReason\"\r\n [value]=\"experience.TerminationReason\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n </div>\r\n\r\n @if(experience.Document){\r\n <div [class]=\"actionsColumnClass\">\r\n <fa-icon [icon]=\"viewIcon\" [class]=\"viewIconClass\" (click)=\"onAttachmentView(experience.Document)\"></fa-icon>\r\n <fa-icon [icon]=\"downloadIcon\" [class]=\"downloadIconClass\" (click)=\"onAttachmentDownload(experience.Document)\"></fa-icon>\r\n </div>\r\n }\r\n\r\n }\r\n\r\n</div>\r\n\r\n}@else{\r\n\r\n\r\n<sky-empty-design-card [containerClass]=\"emptyStateContainerClass\"\r\n [cardBodyClass]=\"''\"\r\n [cardBodyContainerClass]=\"''\"\r\n [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('ThereIsNoExperiencesYet' | HRTranslate)\">\r\n</sky-empty-design-card>\r\n\r\n}\r\n" }]
|
|
3755
|
-
}], ctorParameters: () => [{ type: HRSelfWidgetsService }], propDecorators: { baseUrl: [{
|
|
3756
|
-
type: Input
|
|
3757
|
-
}], sectionTitle: [{
|
|
3758
|
-
type: Input
|
|
3759
|
-
}], viewIcon: [{
|
|
3760
|
-
type: Input
|
|
3761
|
-
}], downloadIcon: [{
|
|
3762
|
-
type: Input
|
|
3763
|
-
}], experienceIcon: [{
|
|
3764
|
-
type: Input
|
|
3765
|
-
}], headerIconClass: [{
|
|
3766
|
-
type: Input
|
|
3767
|
-
}], headerTextClass: [{
|
|
3768
|
-
type: Input
|
|
3769
|
-
}], headerDividerClass: [{
|
|
3770
|
-
type: Input
|
|
3771
|
-
}], rowClass: [{
|
|
3772
|
-
type: Input
|
|
3773
|
-
}], itemRowClass: [{
|
|
3774
|
-
type: Input
|
|
3775
|
-
}], itemColumnClass: [{
|
|
3776
|
-
type: Input
|
|
3777
|
-
}], labelClass: [{
|
|
3778
|
-
type: Input
|
|
3779
|
-
}], valueClass: [{
|
|
3780
|
-
type: Input
|
|
3781
|
-
}], actionsColumnClass: [{
|
|
3782
|
-
type: Input
|
|
3783
|
-
}], viewIconClass: [{
|
|
3784
|
-
type: Input
|
|
3785
|
-
}], downloadIconClass: [{
|
|
3786
|
-
type: Input
|
|
3787
|
-
}], emptyStateContainerClass: [{
|
|
3788
|
-
type: Input
|
|
3789
|
-
}], emptyStateTextClass: [{
|
|
3790
|
-
type: Input
|
|
3791
|
-
}], isLoadingChanged: [{
|
|
3792
|
-
type: Output
|
|
3793
|
-
}], attachmentViewed: [{
|
|
3794
|
-
type: Output
|
|
3795
|
-
}], attachmentDownloaded: [{
|
|
3796
|
-
type: Output
|
|
3797
|
-
}], errorOccurred: [{
|
|
3798
|
-
type: Output
|
|
3799
|
-
}] } });
|
|
3800
|
-
|
|
3801
|
-
class ProfileDegreesWidgetComponent {
|
|
3802
|
-
service;
|
|
3803
|
-
degrees = [];
|
|
3804
|
-
isLoading = true;
|
|
3805
|
-
baseUrl = '';
|
|
3806
|
-
sectionTitle = 'Degrees';
|
|
3807
|
-
degreesIcon = faFileCertificate;
|
|
3808
|
-
viewIcon = faEye;
|
|
3809
|
-
downloadIcon = faFolderArrowDown;
|
|
3810
|
-
headerIconClass = 'primary-icon-xl';
|
|
3811
|
-
headerTextClass = 'fs-16 mt-2 text-secondary';
|
|
3812
|
-
headerDividerClass = 'flex-grow-1 ms-2';
|
|
3813
|
-
rowClass = 'mt-4';
|
|
3814
|
-
rowMarginBottomClass = 'mb-5';
|
|
3815
|
-
rowMarginBottomEmptyClass = 'mb-4';
|
|
3816
|
-
headerRowClass = 'row col-10';
|
|
3817
|
-
actionsSpacerClass = 'col-2';
|
|
3818
|
-
itemRowClass = 'row col-10 mt-3';
|
|
3819
|
-
itemColumnClass = 'col-3';
|
|
3820
|
-
labelClass = 'field-secondary-label-sm';
|
|
3821
|
-
valueClass = 'text-dark-gray fs-14';
|
|
3822
|
-
valueEllipsisClass = 'text-dark-gray fs-14 text-ellipsis-one-line cursor-pointer';
|
|
3823
|
-
actionsColumnClass = 'col-2 align-items-end mt-3';
|
|
3824
|
-
viewIconClass = 'fs-15 text-dark cursor-pointer';
|
|
3825
|
-
downloadIconClass = 'fs-15 mx-3 text-dark cursor-pointer';
|
|
3826
|
-
emptyStateContainerClass = 'd-flex flex-column justify-content-center align-items-center my-5';
|
|
3827
|
-
emptyStateTextClass = 'field-secondary-label-md';
|
|
3828
|
-
isLoadingChanged = new EventEmitter();
|
|
3829
|
-
attachmentViewed = new EventEmitter();
|
|
3830
|
-
attachmentDownloaded = new EventEmitter();
|
|
3831
|
-
errorOccurred = new EventEmitter();
|
|
3832
|
-
constructor(service) {
|
|
3833
|
-
this.service = service;
|
|
3834
|
-
}
|
|
3835
|
-
ngOnInit() {
|
|
3836
|
-
if (!this.baseUrl) {
|
|
3837
|
-
this.isLoading = false;
|
|
3838
|
-
return;
|
|
3839
|
-
}
|
|
3840
|
-
this.isLoadingChanged.emit(true);
|
|
3841
|
-
this.service.getEmployeeDegrees(this.baseUrl).subscribe({
|
|
3842
|
-
next: (res) => {
|
|
3843
|
-
this.degrees = res ?? [];
|
|
3844
|
-
this.isLoading = false;
|
|
3845
|
-
this.isLoadingChanged.emit(false);
|
|
3846
|
-
},
|
|
3847
|
-
error: (error) => {
|
|
3848
|
-
this.degrees = [];
|
|
3849
|
-
this.isLoading = false;
|
|
3850
|
-
this.errorOccurred.emit(error.error.ResponseData.Errors[0].Message);
|
|
3851
|
-
this.isLoadingChanged.emit(false);
|
|
3852
|
-
}
|
|
3853
|
-
});
|
|
3854
|
-
}
|
|
3855
|
-
get wrapperClass() {
|
|
3856
|
-
const classes = [this.rowClass];
|
|
3857
|
-
if (this.degrees.length > 0) {
|
|
3858
|
-
classes.push(this.rowMarginBottomClass);
|
|
3859
|
-
}
|
|
3860
|
-
else {
|
|
3861
|
-
classes.push(this.rowMarginBottomEmptyClass);
|
|
3862
|
-
}
|
|
3863
|
-
return classes.join(' ');
|
|
3864
|
-
}
|
|
3865
|
-
onAttachmentView(file) {
|
|
3866
|
-
this.attachmentViewed.emit(file);
|
|
3867
|
-
}
|
|
3868
|
-
onAttachmentDownload(file) {
|
|
3869
|
-
this.attachmentDownloaded.emit(file);
|
|
3870
|
-
}
|
|
3871
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProfileDegreesWidgetComponent, deps: [{ token: HRSelfWidgetsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3872
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.20", type: ProfileDegreesWidgetComponent, isStandalone: true, selector: "hr-profile-degrees-widget", inputs: { baseUrl: "baseUrl", sectionTitle: "sectionTitle", degreesIcon: "degreesIcon", viewIcon: "viewIcon", downloadIcon: "downloadIcon", headerIconClass: "headerIconClass", headerTextClass: "headerTextClass", headerDividerClass: "headerDividerClass", rowClass: "rowClass", rowMarginBottomClass: "rowMarginBottomClass", rowMarginBottomEmptyClass: "rowMarginBottomEmptyClass", headerRowClass: "headerRowClass", actionsSpacerClass: "actionsSpacerClass", itemRowClass: "itemRowClass", itemColumnClass: "itemColumnClass", labelClass: "labelClass", valueClass: "valueClass", valueEllipsisClass: "valueEllipsisClass", actionsColumnClass: "actionsColumnClass", viewIconClass: "viewIconClass", downloadIconClass: "downloadIconClass", emptyStateContainerClass: "emptyStateContainerClass", emptyStateTextClass: "emptyStateTextClass" }, outputs: { isLoadingChanged: "isLoadingChanged", attachmentViewed: "attachmentViewed", attachmentDownloaded: "attachmentDownloaded", errorOccurred: "errorOccurred" }, ngImport: i0, template: "<sky-section-divider [fontAwesomeIcon]=\"degreesIcon\"\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]=\"wrapperClass\">\r\n\r\n@if(degrees.length > 0){\r\n\r\n @for (qualification of degrees; track qualification){\r\n\r\n <div [class]=\"itemRowClass\">\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Degree/Year\"\r\n [value]=\"(qualification.DegreeName + ' / ' + qualification.DegreeYear)\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Country\"\r\n [value]=\"qualification.CountryName\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueEllipsisClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Specialty\"\r\n [value]=\"qualification.Specialty\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueEllipsisClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Institute\"\r\n [value]=\"qualification.Institute\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueEllipsisClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n\r\n @if(qualification.Document){\r\n <div [class]=\"actionsColumnClass\">\r\n <fa-icon [icon]=\"viewIcon\" [class]=\"viewIconClass\" (click)=\"onAttachmentView(qualification.Document)\"></fa-icon>\r\n <fa-icon [icon]=\"downloadIcon\" [class]=\"downloadIconClass\" (click)=\"onAttachmentDownload(qualification.Document)\"></fa-icon>\r\n </div>\r\n }\r\n </div>\r\n\r\n }\r\n\r\n}@else{\r\n\r\n <sky-empty-design-card [containerClass]=\"emptyStateContainerClass\"\r\n [cardBodyClass]=\"''\"\r\n [cardBodyContainerClass]=\"''\"\r\n [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('ThereIsNoDegreesYet' | HRTranslate)\">\r\n </sky-empty-design-card>\r\n\r\n}\r\n\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i2$1.UpperCasePipe, name: "uppercase" }, { 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: i1$2.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"] }] });
|
|
3873
|
-
}
|
|
3874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ProfileDegreesWidgetComponent, decorators: [{
|
|
3875
|
-
type: Component,
|
|
3876
|
-
args: [{ selector: 'hr-profile-degrees-widget', standalone: true, imports: [CommonModule, SkySectionDividerComponent, HRTranslatePipe, SkyEmptyDesignCardComponent, FontAwesomeModule, HRInfoFieldComponent], template: "<sky-section-divider [fontAwesomeIcon]=\"degreesIcon\"\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]=\"wrapperClass\">\r\n\r\n@if(degrees.length > 0){\r\n\r\n @for (qualification of degrees; track qualification){\r\n\r\n <div [class]=\"itemRowClass\">\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Degree/Year\"\r\n [value]=\"(qualification.DegreeName + ' / ' + qualification.DegreeYear)\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Country\"\r\n [value]=\"qualification.CountryName\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueEllipsisClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Specialty\"\r\n [value]=\"qualification.Specialty\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueEllipsisClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n <div [class]=\"itemColumnClass\">\r\n <hr-info-field labelKey=\"Institute\"\r\n [value]=\"qualification.Institute\"\r\n [labelClass]=\"labelClass\"\r\n [valueClass]=\"valueEllipsisClass\">\r\n </hr-info-field>\r\n </div>\r\n\r\n\r\n @if(qualification.Document){\r\n <div [class]=\"actionsColumnClass\">\r\n <fa-icon [icon]=\"viewIcon\" [class]=\"viewIconClass\" (click)=\"onAttachmentView(qualification.Document)\"></fa-icon>\r\n <fa-icon [icon]=\"downloadIcon\" [class]=\"downloadIconClass\" (click)=\"onAttachmentDownload(qualification.Document)\"></fa-icon>\r\n </div>\r\n }\r\n </div>\r\n\r\n }\r\n\r\n}@else{\r\n\r\n <sky-empty-design-card [containerClass]=\"emptyStateContainerClass\"\r\n [cardBodyClass]=\"''\"\r\n [cardBodyContainerClass]=\"''\"\r\n [visibleIcon]=\"false\"\r\n [visibleQuickAction]=\"false\"\r\n [emptyTextClass]=\"emptyStateTextClass\"\r\n [emptyText]=\"isLoading ? ((sectionTitle | HRTranslate) + ' ' + ('IsLoading' | HRTranslate)) : ('ThereIsNoDegreesYet' | HRTranslate)\">\r\n </sky-empty-design-card>\r\n\r\n}\r\n\r\n</div>\r\n" }]
|
|
3877
|
-
}], ctorParameters: () => [{ type: HRSelfWidgetsService }], propDecorators: { baseUrl: [{
|
|
3878
|
-
type: Input
|
|
3879
|
-
}], sectionTitle: [{
|
|
3880
|
-
type: Input
|
|
3881
|
-
}], degreesIcon: [{
|
|
3882
|
-
type: Input
|
|
3883
|
-
}], viewIcon: [{
|
|
3884
|
-
type: Input
|
|
3885
|
-
}], downloadIcon: [{
|
|
3886
|
-
type: Input
|
|
3887
|
-
}], headerIconClass: [{
|
|
3888
|
-
type: Input
|
|
3889
|
-
}], headerTextClass: [{
|
|
3890
|
-
type: Input
|
|
3891
|
-
}], headerDividerClass: [{
|
|
3892
|
-
type: Input
|
|
3893
|
-
}], rowClass: [{
|
|
3894
|
-
type: Input
|
|
3895
|
-
}], rowMarginBottomClass: [{
|
|
3896
|
-
type: Input
|
|
3897
|
-
}], rowMarginBottomEmptyClass: [{
|
|
3898
|
-
type: Input
|
|
3899
|
-
}], headerRowClass: [{
|
|
3900
|
-
type: Input
|
|
3901
|
-
}], actionsSpacerClass: [{
|
|
3902
|
-
type: Input
|
|
3903
|
-
}], itemRowClass: [{
|
|
3904
|
-
type: Input
|
|
3905
|
-
}], itemColumnClass: [{
|
|
3906
|
-
type: Input
|
|
3907
|
-
}], labelClass: [{
|
|
3908
|
-
type: Input
|
|
3909
|
-
}], valueClass: [{
|
|
3910
|
-
type: Input
|
|
3911
|
-
}], valueEllipsisClass: [{
|
|
3912
|
-
type: Input
|
|
3913
|
-
}], actionsColumnClass: [{
|
|
3914
|
-
type: Input
|
|
3915
|
-
}], viewIconClass: [{
|
|
3916
|
-
type: Input
|
|
3917
|
-
}], downloadIconClass: [{
|
|
3918
|
-
type: Input
|
|
3919
|
-
}], emptyStateContainerClass: [{
|
|
3920
|
-
type: Input
|
|
3921
|
-
}], emptyStateTextClass: [{
|
|
3922
|
-
type: Input
|
|
3923
|
-
}], isLoadingChanged: [{
|
|
3924
|
-
type: Output
|
|
3925
|
-
}], attachmentViewed: [{
|
|
3926
|
-
type: Output
|
|
3927
|
-
}], attachmentDownloaded: [{
|
|
3928
|
-
type: Output
|
|
3929
|
-
}], errorOccurred: [{
|
|
3930
|
-
type: Output
|
|
3931
|
-
}] } });
|
|
3932
|
-
|
|
3933
3693
|
/*
|
|
3934
3694
|
* Public API Surface of shared-ui
|
|
3935
3695
|
*/
|
|
@@ -3938,5 +3698,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
3938
3698
|
* Generated bundle index. Do not edit.
|
|
3939
3699
|
*/
|
|
3940
3700
|
|
|
3941
|
-
export { EventOption, EventTypeEnum, HRCardHeaderComponent, HRConstantsService, HREmployeeCalendarComponent, HRTranslatePipe, HRTranslateService, MainWidgetShortcut, MyCalendarWidgetComponent, MyMainDetailsWidgetComponent, MyUpcomingEventsWidgetComponent, MyVacationTeamWidgetComponent, ProfileBankInfoWidgetComponent,
|
|
3701
|
+
export { EventOption, EventTypeEnum, HRCardHeaderComponent, HRConstantsService, HREmployeeCalendarComponent, HRTranslatePipe, HRTranslateService, MainWidgetShortcut, MyCalendarWidgetComponent, MyMainDetailsWidgetComponent, MyUpcomingEventsWidgetComponent, MyVacationTeamWidgetComponent, ProfileBankInfoWidgetComponent, ProfileJobInfoContractWidgetComponent, ProfileJobInfoMainWidgetComponent, ProfileJobInfoSalaryWidgetComponent, ProfileJobInfoServiceChargeWidgetComponent, ProfilePersonalInfoAddressWidgetComponent, ProfilePersonalInfoContactWidgetComponent, ProfilePersonalInfoLanguagesWidgetComponent, ProfilePersonalInfoMainWidgetComponent, ProfilePersonalInfoOtherNationalitiesWidgetComponent, PublicHolidayWeekContext, RelativeDay, ScheduleVacationTypes, ServiceChargeEntitlementMode, VacationPopupType };
|
|
3942
3702
|
//# sourceMappingURL=skysoftware-co-bayan-hr-widgets-ui.mjs.map
|