awf-test-lib 0.1.16 → 0.1.18
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/esm2020/lib/models/emailType.mjs +3 -1
- package/esm2020/lib/shared/choose-another-date/choose-another-date.component.mjs +1 -1
- package/esm2020/lib/shared/confirm-dialog/confirm-dialog.component.mjs +3 -3
- package/esm2020/lib/shared/contact-support/contact-support.component.mjs +10 -2
- package/esm2020/lib/shared/maintenance-list/maintenance-list.component.mjs +7 -3
- package/esm2020/lib/shared/shared.module.mjs +1 -1
- package/fesm2015/awf-test-lib.mjs +19 -5
- package/fesm2015/awf-test-lib.mjs.map +1 -1
- package/fesm2020/awf-test-lib.mjs +19 -5
- package/fesm2020/awf-test-lib.mjs.map +1 -1
- package/lib/models/emailType.d.ts +2 -0
- package/lib/shared/contact-support/contact-support.component.d.ts +1 -0
- package/lib/shared/maintenance-list/maintenance-list.component.d.ts +1 -0
- package/package.json +1 -1
@@ -705,10 +705,10 @@ class ConfirmDialogComponent {
|
|
705
705
|
}
|
706
706
|
}
|
707
707
|
ConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i1$3.MessageService }], target: i0.ɵɵFactoryTarget.Component });
|
708
|
-
ConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.10", type: ConfirmDialogComponent, selector: "app-confirm-dialog", inputs: { displayConfirmDialog: "displayConfirmDialog", startDateTime: "startDateTime", endDateTime: "endDateTime", globaltranslate: "globaltranslate", translate: "translate", isProposedDate: "isProposedDate", detailedPmJobLinkedList: "detailedPmJobLinkedList" }, outputs: { closeConfirmDialog: "closeConfirmDialog" }, ngImport: i0, template: "<p-dialog [header]=\"globaltranslate.confirmation\" [(visible)]=\"displayConfirmDialog\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"rejectDate()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n
|
708
|
+
ConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.10", type: ConfirmDialogComponent, selector: "app-confirm-dialog", inputs: { displayConfirmDialog: "displayConfirmDialog", startDateTime: "startDateTime", endDateTime: "endDateTime", globaltranslate: "globaltranslate", translate: "translate", isProposedDate: "isProposedDate", detailedPmJobLinkedList: "detailedPmJobLinkedList" }, outputs: { closeConfirmDialog: "closeConfirmDialog" }, ngImport: i0, template: "<p-dialog [header]=\"globaltranslate.confirmation\" [(visible)]=\"displayConfirmDialog\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"rejectDate()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n <div>\r\n {{ isProposedDate ? translate.textProposed : translate.textAlternative }}\r\n <div>\r\n <br> <br>{{translate.start}} : <i class=\"pi pi-calendar\"></i> <strong>\r\n {{startDateTime | date: \"EEE dd MMM yyyy\":\"\":language}} </strong> {{translate.from}}: <strong>08:00 </strong>\r\n <div *ngIf=\"detailedPmJobLinkedList.length>0\">\r\n <br> <p style=\"color:rgb(245, 57, 57) ;\"><strong>{{ translate.textWarn }}</strong></p>\r\n <ul>\r\n <strong><li *ngFor=\"let detailedPmJob of detailedPmJobLinkedList\">{{ detailedPmJob.pmJob.workorderNumber }}</li></strong>\r\n \r\n </ul>\r\n </div>\r\n <br><br>\r\n <p>{{translate.infoEmail}}</p>\r\n \r\n </div>\r\n \r\n </div>\r\n\r\n <ng-template pTemplate=\"footer\">\r\n <p-button icon=\"pi pi-times\" (click)=\"rejectDate()\" class=\"annuler\" [label]=\"globaltranslate.no\"></p-button>\r\n <p-button icon=\"pi pi-check\" (click)=\"confirmDate()\" [label]=\"globaltranslate.yes\" class=\"p-button-text\"></p-button>\r\n </ng-template>\r\n</p-dialog>\r\n<p-toast position=\"top-center\"></p-toast>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i5.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "component", type: i4$2.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i6$1.Dialog, selector: "p-dialog", inputs: ["header", "draggable", "resizable", "positionLeft", "positionTop", "contentStyle", "contentStyleClass", "modal", "closeOnEscape", "dismissableMask", "rtl", "closable", "responsive", "appendTo", "breakpoints", "styleClass", "maskStyleClass", "showHeader", "breakpoint", "blockScroll", "autoZIndex", "baseZIndex", "minX", "minY", "focusOnShow", "maximizable", "keepInViewport", "focusTrap", "transitionOptions", "closeIcon", "closeAriaLabel", "closeTabindex", "minimizeIcon", "maximizeIcon", "visible", "style", "position"], outputs: ["onShow", "onHide", "visibleChange", "onResizeInit", "onResizeEnd", "onDragEnd", "onMaximize"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }] });
|
709
709
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
|
710
710
|
type: Component,
|
711
|
-
args: [{ selector: 'app-confirm-dialog', template: "<p-dialog [header]=\"globaltranslate.confirmation\" [(visible)]=\"displayConfirmDialog\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"rejectDate()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n
|
711
|
+
args: [{ selector: 'app-confirm-dialog', template: "<p-dialog [header]=\"globaltranslate.confirmation\" [(visible)]=\"displayConfirmDialog\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"rejectDate()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n <div>\r\n {{ isProposedDate ? translate.textProposed : translate.textAlternative }}\r\n <div>\r\n <br> <br>{{translate.start}} : <i class=\"pi pi-calendar\"></i> <strong>\r\n {{startDateTime | date: \"EEE dd MMM yyyy\":\"\":language}} </strong> {{translate.from}}: <strong>08:00 </strong>\r\n <div *ngIf=\"detailedPmJobLinkedList.length>0\">\r\n <br> <p style=\"color:rgb(245, 57, 57) ;\"><strong>{{ translate.textWarn }}</strong></p>\r\n <ul>\r\n <strong><li *ngFor=\"let detailedPmJob of detailedPmJobLinkedList\">{{ detailedPmJob.pmJob.workorderNumber }}</li></strong>\r\n \r\n </ul>\r\n </div>\r\n <br><br>\r\n <p>{{translate.infoEmail}}</p>\r\n \r\n </div>\r\n \r\n </div>\r\n\r\n <ng-template pTemplate=\"footer\">\r\n <p-button icon=\"pi pi-times\" (click)=\"rejectDate()\" class=\"annuler\" [label]=\"globaltranslate.no\"></p-button>\r\n <p-button icon=\"pi pi-check\" (click)=\"confirmDate()\" [label]=\"globaltranslate.yes\" class=\"p-button-text\"></p-button>\r\n </ng-template>\r\n</p-dialog>\r\n<p-toast position=\"top-center\"></p-toast>" }]
|
712
712
|
}], ctorParameters: function () { return [{ type: i1$3.MessageService }]; }, propDecorators: { displayConfirmDialog: [{
|
713
713
|
type: Input
|
714
714
|
}], startDateTime: [{
|
@@ -822,7 +822,7 @@ class ContactSupportComponent {
|
|
822
822
|
this.form = this.formBuilder.group({
|
823
823
|
name: [name !== 'null' ? name : '', [Validators.required, Validators.minLength(3)]],
|
824
824
|
email: [email !== 'null' ? email : '', [Validators.required, Validators.email]],
|
825
|
-
phone: [phone
|
825
|
+
phone: [this.checkPhone(phone) ? phone : '', [Validators.required]],
|
826
826
|
extentionOrComment: [''],
|
827
827
|
reason: [{ value: '' }, [Validators.required]],
|
828
828
|
system: [{ value: this.detailedPmJob.systemName + ' ' + this.detailedPmJob.systemId, disabled: true }, [Validators.required]],
|
@@ -830,6 +830,14 @@ class ContactSupportComponent {
|
|
830
830
|
message: ['', (this.reasonContact === ReasonContact.MoreDatesFormPm) ? [] : [Validators.required, Validators.minLength(15)]],
|
831
831
|
});
|
832
832
|
}
|
833
|
+
checkPhone(phone) {
|
834
|
+
if (phone == null || phone == 'null' || phone == undefined || phone.length == 0) {
|
835
|
+
return false;
|
836
|
+
}
|
837
|
+
else {
|
838
|
+
return true;
|
839
|
+
}
|
840
|
+
}
|
833
841
|
contacted() {
|
834
842
|
this.sendContactMeEmailMethode();
|
835
843
|
}
|
@@ -909,6 +917,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
|
|
909
917
|
|
910
918
|
var EmailType;
|
911
919
|
(function (EmailType) {
|
920
|
+
EmailType["Accepted_Clients_Alternate"] = "Accepted_Clients_Alternate";
|
921
|
+
EmailType["Accepted_CSC_Alternate"] = "Accepted_CSC_Alternate";
|
912
922
|
EmailType["Accepted_Clients"] = "Accepted_Clients";
|
913
923
|
EmailType["Accepted_CSC"] = "Accepted_CSC";
|
914
924
|
EmailType["CancelPM_Clients"] = "CancelPM_Clients";
|
@@ -1057,6 +1067,7 @@ class MaintenanceListComponent {
|
|
1057
1067
|
this.alternativeDatesSelected = [];
|
1058
1068
|
this.displaycontactSupport = false;
|
1059
1069
|
this.displayConfirmDialog = false;
|
1070
|
+
this.displayConfirmDateAlternativeDialog = false;
|
1060
1071
|
this.displayConfirmDialogContact = false;
|
1061
1072
|
this.displayShowLinks = false;
|
1062
1073
|
this.displayAnotherDate = false;
|
@@ -1128,17 +1139,20 @@ class MaintenanceListComponent {
|
|
1128
1139
|
this.displayConfirmDialog = true;
|
1129
1140
|
}
|
1130
1141
|
closeConfirmDialog(confirm) {
|
1142
|
+
console.log(this.isProposedDate);
|
1131
1143
|
this.displayConfirmDialog = false;
|
1132
1144
|
this.maintenanceSelected.futureStatus = PmJobStatus.ACCEPTED;
|
1133
1145
|
if (confirm) {
|
1134
1146
|
if (!this.isProposedDate) {
|
1147
|
+
this.emailTypes.push(EmailType.Accepted_CSC_Alternate);
|
1148
|
+
this.emailTypes.push(EmailType.Accepted_Clients_Alternate);
|
1135
1149
|
this.updateAlternativeDate();
|
1136
1150
|
}
|
1137
1151
|
else {
|
1152
|
+
this.emailTypes.push(EmailType.Accepted_CSC);
|
1153
|
+
this.emailTypes.push(EmailType.Accepted_Clients);
|
1138
1154
|
this.updateProposedDate();
|
1139
1155
|
}
|
1140
|
-
this.emailTypes.push(EmailType.Accepted_CSC);
|
1141
|
-
this.emailTypes.push(EmailType.Accepted_Clients);
|
1142
1156
|
this.updatePmJob();
|
1143
1157
|
}
|
1144
1158
|
}
|