awf-test-lib 0.0.14 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/core/core.module.mjs +4 -4
- package/esm2020/lib/core/menu/menu.component.mjs +6 -6
- package/esm2020/lib/core/{application/consomer-portal/menu-consomer → menu-consomer}/menu-consomer.component.mjs +3 -3
- package/esm2020/lib/core/{application/ge-portal/menu-ge-portal → menu-ge-portal}/menu-ge-portal.component.mjs +3 -3
- package/esm2020/lib/core/{application/warranty-portal/menu-warranty → menu-warranty}/menu-warranty.component.mjs +3 -3
- package/esm2020/lib/core/not-found/not-found.component.mjs +3 -3
- package/esm2020/lib/ge/choose-another-date/choose-another-date.component.mjs +107 -0
- package/esm2020/lib/ge/confirm-dialog/confirm-dialog.component.mjs +45 -0
- package/esm2020/lib/ge/confirm-dialog-validated-to-waiting/confirm-dialog-validated-to-waiting.component.mjs +45 -0
- package/esm2020/lib/ge/confirmed-date-information/confirmed-date-information.component.mjs +33 -0
- package/esm2020/lib/ge/contact/contact.component.mjs +76 -0
- package/esm2020/lib/ge/contact-support/contact-support.component.mjs +82 -0
- package/esm2020/lib/ge/ge.module.mjs +109 -6
- package/esm2020/lib/ge/maintenance-list/maintenance-list.component.mjs +277 -0
- package/esm2020/lib/ge/show-links/show-links.component.mjs +73 -0
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/awf-test-lib.mjs +830 -64
- package/fesm2015/awf-test-lib.mjs.map +1 -1
- package/fesm2020/awf-test-lib.mjs +827 -64
- package/fesm2020/awf-test-lib.mjs.map +1 -1
- package/lib/core/core.module.d.ts +3 -3
- package/lib/core/{application/consomer-portal/menu-consomer → menu-consomer}/menu-consomer.component.d.ts +1 -1
- package/lib/core/{application/ge-portal/menu-ge-portal → menu-ge-portal}/menu-ge-portal.component.d.ts +1 -1
- package/lib/core/{application/warranty-portal/menu-warranty → menu-warranty}/menu-warranty.component.d.ts +1 -1
- package/lib/ge/choose-another-date/choose-another-date.component.d.ts +31 -0
- package/lib/ge/confirm-dialog/confirm-dialog.component.d.ts +20 -0
- package/lib/ge/confirm-dialog-validated-to-waiting/confirm-dialog-validated-to-waiting.component.d.ts +20 -0
- package/lib/ge/confirmed-date-information/confirmed-date-information.component.d.ts +14 -0
- package/lib/ge/contact/contact.component.d.ts +26 -0
- package/lib/ge/contact-support/contact-support.component.d.ts +35 -0
- package/lib/ge/ge.module.d.ts +33 -6
- package/lib/ge/maintenance-list/maintenance-list.component.d.ts +73 -0
- package/lib/ge/show-links/show-links.component.d.ts +22 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
@@ -1,17 +1,45 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { NgModule, EventEmitter, Component, Input, Output, Pipe, ViewChild } from '@angular/core';
|
2
|
+
import { NgModule, EventEmitter, Component, Input, Output, Pipe, ViewChild, ViewEncapsulation } from '@angular/core';
|
3
3
|
import * as i1$1 from '@angular/common';
|
4
4
|
import { CommonModule } from '@angular/common';
|
5
5
|
import * as i2 from '@angular/router';
|
6
6
|
import { RouterModule } from '@angular/router';
|
7
7
|
import * as i1 from 'primeng/megamenu';
|
8
8
|
import { MegaMenuModule } from 'primeng/megamenu';
|
9
|
-
import * as
|
10
|
-
import { MessageService } from 'primeng/api';
|
9
|
+
import * as i1$3 from 'primeng/api';
|
10
|
+
import { MessageService, ConfirmationService } from 'primeng/api';
|
11
11
|
import * as i1$2 from 'primeng/table';
|
12
12
|
import { TableModule } from 'primeng/table';
|
13
13
|
import * as i3 from 'primeng/inputtext';
|
14
14
|
import { InputTextModule } from 'primeng/inputtext';
|
15
|
+
import * as i1$4 from '@angular/forms';
|
16
|
+
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
17
|
+
import * as i3$1 from 'primeng/toast';
|
18
|
+
import { ToastModule } from 'primeng/toast';
|
19
|
+
import * as i6 from 'primeng/inputtextarea';
|
20
|
+
import { InputTextareaModule } from 'primeng/inputtextarea';
|
21
|
+
import * as i7 from 'primeng/multiselect';
|
22
|
+
import { MultiSelectModule } from 'primeng/multiselect';
|
23
|
+
import * as i4 from 'primeng/calendar';
|
24
|
+
import { CalendarModule } from 'primeng/calendar';
|
25
|
+
import * as i4$1 from 'primeng/button';
|
26
|
+
import { ButtonModule } from 'primeng/button';
|
27
|
+
import * as i5 from 'primeng/dialog';
|
28
|
+
import { DialogModule } from 'primeng/dialog';
|
29
|
+
import * as i3$2 from 'primeng/tooltip';
|
30
|
+
import { TooltipModule } from 'primeng/tooltip';
|
31
|
+
import * as i7$1 from 'primeng/overlaypanel';
|
32
|
+
import { OverlayPanelModule } from 'primeng/overlaypanel';
|
33
|
+
import { SliderModule } from 'primeng/slider';
|
34
|
+
import { ContextMenuModule } from 'primeng/contextmenu';
|
35
|
+
import { DropdownModule } from 'primeng/dropdown';
|
36
|
+
import { ToolbarModule } from 'primeng/toolbar';
|
37
|
+
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
38
|
+
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
39
|
+
import { ConfirmPopupModule } from 'primeng/confirmpopup';
|
40
|
+
import { SelectButtonModule } from 'primeng/selectbutton';
|
41
|
+
import { RadioButtonModule } from 'primeng/radiobutton';
|
42
|
+
import { CheckboxModule } from 'primeng/checkbox';
|
15
43
|
|
16
44
|
const routes$1 = [];
|
17
45
|
class CoreRoutingModule {
|
@@ -65,6 +93,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
65
93
|
type: Output
|
66
94
|
}] } });
|
67
95
|
|
96
|
+
class NotFoundComponent {
|
97
|
+
constructor() { }
|
98
|
+
ngOnChanges() {
|
99
|
+
console.log();
|
100
|
+
}
|
101
|
+
}
|
102
|
+
NotFoundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: NotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
103
|
+
NotFoundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: NotFoundComponent, selector: "awf-not-found", inputs: { translate: "translate", applicationName: "applicationName" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"translate\">\r\n <h2>{{translate.title}}</h2>\r\n <h3>{{translate.oops}}</h3>\r\n <p>{{translate.checkUrl}}</p>\r\n <p>{{translate.otherwise}}<a routerLink=\"./home\">{{translate.clickHere}} </a>{{translate.redirect}}</p>\r\n</div>\r\n", styles: [".container{display:flex;flex-direction:column;align-items:center;width:100%;background-color:#5ca3dd93}h2{font-size:150px;margin:0;text-shadow:15px 5px 2px black}h3{font-size:40px;margin:20px}p{font-size:18px;margin:5px}p:last-of-type{margin-bottom:35px}a{text-decoration:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: NotFoundComponent, decorators: [{
|
105
|
+
type: Component,
|
106
|
+
args: [{ selector: 'awf-not-found', template: "<div class=\"container\" *ngIf=\"translate\">\r\n <h2>{{translate.title}}</h2>\r\n <h3>{{translate.oops}}</h3>\r\n <p>{{translate.checkUrl}}</p>\r\n <p>{{translate.otherwise}}<a routerLink=\"./home\">{{translate.clickHere}} </a>{{translate.redirect}}</p>\r\n</div>\r\n", styles: [".container{display:flex;flex-direction:column;align-items:center;width:100%;background-color:#5ca3dd93}h2{font-size:150px;margin:0;text-shadow:15px 5px 2px black}h3{font-size:40px;margin:20px}p{font-size:18px;margin:5px}p:last-of-type{margin-bottom:35px}a{text-decoration:none}\n"] }]
|
107
|
+
}], ctorParameters: function () { return []; }, propDecorators: { translate: [{
|
108
|
+
type: Input
|
109
|
+
}], applicationName: [{
|
110
|
+
type: Input
|
111
|
+
}] } });
|
112
|
+
|
68
113
|
class MenuWarrantyComponent {
|
69
114
|
constructor() {
|
70
115
|
this.logOutClick = new EventEmitter();
|
@@ -80,10 +125,10 @@ class MenuWarrantyComponent {
|
|
80
125
|
}
|
81
126
|
}
|
82
127
|
MenuWarrantyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MenuWarrantyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
83
|
-
MenuWarrantyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MenuWarrantyComponent, selector: "
|
128
|
+
MenuWarrantyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MenuWarrantyComponent, selector: "awf-menu-warranty", inputs: { isAdmin: "isAdmin", translate: "translate", haveConsumerDataId: "haveConsumerDataId" }, outputs: { logOutClick: "logOutClick", hideMenu: "hideMenu" }, ngImport: i0, template: "<div class=\"layout-menu\" *ngIf=\"translate\">\r\n <div class=\"menu-category\"> <i class=\"pi pi-home\"></i> {{translate.general}}</div>\r\n <div class=\"menu-items\">\r\n <a routerLink=\"./warranties\" (click)=\"hideMenuMethode()\">{{translate.Homepage}}</a>\r\n <a routerLink=\"./device\" (click)=\"hideMenuMethode()\">{{translate.devices}}</a>\r\n </div>\r\n <div class=\"menu-category\" *ngIf=\"isAdmin \"> <i class=\"pi pi-cog\"></i> {{translate.config}}</div>\r\n <div class=\"menu-items\" *ngIf=\"isAdmin \">\r\n\r\n <a routerLink=\"./theme\" (click)=\"hideMenuMethode()\">{{translate.themes}}</a>\r\n <a routerLink=\"./servicesConfig\" (click)=\"hideMenuMethode()\">{{translate.services}}</a>\r\n </div>\r\n <div class=\"menu-category\"> <i class=\"pi pi-user\"></i> {{translate.account}}</div>\r\n <div class=\"menu-items\">\r\n <a routerLink=\"./account\" *ngIf=\"haveConsumerDataId\" (click)=\"hideMenuMethode()\">{{translate.personalData}}</a>\r\n <a routerLink=\"./account/optionsList\" *ngIf=\"haveConsumerDataId\" (click)=\"hideMenuMethode()\">{{translate.optionsList}}</a>\r\n <a routerLink=\"./account/change-password\" *ngIf=\"haveConsumerDataId\" (click)=\"hideMenuMethode()\">{{translate.changePassword}}</a>\r\n <a (click)=\"logout()\">{{translate.logout}}</a>\r\n </div>\r\n</div>", styles: [".layout-menu .logo img{width:150px;max-height:20px;margin-left:24px}@media (max-width: var(--smscreen)){.layout-menu .logo img{max-height:33px;margin-left:0}}.layout-menu .a{font-family:var(--font)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
84
129
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MenuWarrantyComponent, decorators: [{
|
85
130
|
type: Component,
|
86
|
-
args: [{ selector: '
|
131
|
+
args: [{ selector: 'awf-menu-warranty', template: "<div class=\"layout-menu\" *ngIf=\"translate\">\r\n <div class=\"menu-category\"> <i class=\"pi pi-home\"></i> {{translate.general}}</div>\r\n <div class=\"menu-items\">\r\n <a routerLink=\"./warranties\" (click)=\"hideMenuMethode()\">{{translate.Homepage}}</a>\r\n <a routerLink=\"./device\" (click)=\"hideMenuMethode()\">{{translate.devices}}</a>\r\n </div>\r\n <div class=\"menu-category\" *ngIf=\"isAdmin \"> <i class=\"pi pi-cog\"></i> {{translate.config}}</div>\r\n <div class=\"menu-items\" *ngIf=\"isAdmin \">\r\n\r\n <a routerLink=\"./theme\" (click)=\"hideMenuMethode()\">{{translate.themes}}</a>\r\n <a routerLink=\"./servicesConfig\" (click)=\"hideMenuMethode()\">{{translate.services}}</a>\r\n </div>\r\n <div class=\"menu-category\"> <i class=\"pi pi-user\"></i> {{translate.account}}</div>\r\n <div class=\"menu-items\">\r\n <a routerLink=\"./account\" *ngIf=\"haveConsumerDataId\" (click)=\"hideMenuMethode()\">{{translate.personalData}}</a>\r\n <a routerLink=\"./account/optionsList\" *ngIf=\"haveConsumerDataId\" (click)=\"hideMenuMethode()\">{{translate.optionsList}}</a>\r\n <a routerLink=\"./account/change-password\" *ngIf=\"haveConsumerDataId\" (click)=\"hideMenuMethode()\">{{translate.changePassword}}</a>\r\n <a (click)=\"logout()\">{{translate.logout}}</a>\r\n </div>\r\n</div>", styles: [".layout-menu .logo img{width:150px;max-height:20px;margin-left:24px}@media (max-width: var(--smscreen)){.layout-menu .logo img{max-height:33px;margin-left:0}}.layout-menu .a{font-family:var(--font)}\n"] }]
|
87
132
|
}], ctorParameters: function () { return []; }, propDecorators: { logOutClick: [{
|
88
133
|
type: Output
|
89
134
|
}], hideMenu: [{
|
@@ -107,10 +152,10 @@ class MenuConsomerComponent {
|
|
107
152
|
}
|
108
153
|
}
|
109
154
|
MenuConsomerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MenuConsomerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
110
|
-
MenuConsomerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MenuConsomerComponent, selector: "
|
155
|
+
MenuConsomerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MenuConsomerComponent, selector: "awf-menu-consomer", inputs: { translate: "translate", isAdmin: "isAdmin" }, outputs: { logOutClick: "logOutClick" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"layout-menu\" *ngIf=\"translate\">\r\n <div class=\"menu-category\"> <i class=\"pi pi-home\"></i> {{translate.general}}</div>\r\n <div class=\"menu-items\">\r\n <a routerLink=\"./\">{{translate.Homepage}}</a>\r\n <a routerLink=\"./device\">{{translate.myDevices}}</a>\r\n <a routerLink=\"./personalData\">{{translate.personalData}}</a>\r\n </div>\r\n \r\n <div class=\"menu-category\" *ngIf=\"isAdmin \"> <i class=\"pi pi-cog\"></i> {{translate.config}}</div>\r\n <div class=\"menu-items\" *ngIf=\"isAdmin \">\r\n <a routerLink=\"./theme\">{{translate.themes}}</a>\r\n <a routerLink=\"./servicesConfig\">{{translate.services}}</a>\r\n </div>\r\n\r\n <div class=\"menu-category\"> <i class=\"pi pi-user\"></i> {{translate.account}}</div>\r\n <div class=\"menu-items\">\r\n <a >{{translate.profile}}</a>\r\n <a (click)=\"logout()\">{{translate.logout}}</a>\r\n </div>\r\n</div>\r\n", styles: [".layout-menu .logo img{width:150px;max-height:20px;margin-left:24px}@media (max-width: var(--smscreen)){.layout-menu .logo img{max-height:33px;margin-left:0}}.layout-menu .a{font-family:var(--font)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
111
156
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MenuConsomerComponent, decorators: [{
|
112
157
|
type: Component,
|
113
|
-
args: [{ selector: '
|
158
|
+
args: [{ selector: 'awf-menu-consomer', template: "<div class=\"layout-menu\" *ngIf=\"translate\">\r\n <div class=\"menu-category\"> <i class=\"pi pi-home\"></i> {{translate.general}}</div>\r\n <div class=\"menu-items\">\r\n <a routerLink=\"./\">{{translate.Homepage}}</a>\r\n <a routerLink=\"./device\">{{translate.myDevices}}</a>\r\n <a routerLink=\"./personalData\">{{translate.personalData}}</a>\r\n </div>\r\n \r\n <div class=\"menu-category\" *ngIf=\"isAdmin \"> <i class=\"pi pi-cog\"></i> {{translate.config}}</div>\r\n <div class=\"menu-items\" *ngIf=\"isAdmin \">\r\n <a routerLink=\"./theme\">{{translate.themes}}</a>\r\n <a routerLink=\"./servicesConfig\">{{translate.services}}</a>\r\n </div>\r\n\r\n <div class=\"menu-category\"> <i class=\"pi pi-user\"></i> {{translate.account}}</div>\r\n <div class=\"menu-items\">\r\n <a >{{translate.profile}}</a>\r\n <a (click)=\"logout()\">{{translate.logout}}</a>\r\n </div>\r\n</div>\r\n", styles: [".layout-menu .logo img{width:150px;max-height:20px;margin-left:24px}@media (max-width: var(--smscreen)){.layout-menu .logo img{max-height:33px;margin-left:0}}.layout-menu .a{font-family:var(--font)}\n"] }]
|
114
159
|
}], ctorParameters: function () { return []; }, propDecorators: { logOutClick: [{
|
115
160
|
type: Output
|
116
161
|
}], translate: [{
|
@@ -132,10 +177,10 @@ class MenuGePortalComponent {
|
|
132
177
|
}
|
133
178
|
}
|
134
179
|
MenuGePortalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MenuGePortalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
135
|
-
MenuGePortalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MenuGePortalComponent, selector: "
|
180
|
+
MenuGePortalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MenuGePortalComponent, selector: "awf-menu-ge-portal", inputs: { translate: "translate", isAdmin: "isAdmin" }, outputs: { logOutClick: "logOutClick", hideMenu: "hideMenu" }, ngImport: i0, template: "<div class=\"layout-menu\" *ngIf=\"translate\">\r\n <div class=\"menu\" routerLink=\"./\" (click)=\"hideMenuMethode()\"> <i class=\"pi pi-home\"></i> {{translate.home}}</div>\r\n <div class=\"menu\" routerLink=\"./contact\" (click)=\"hideMenuMethode()\"> <i class=\"pi pi-phone\"></i> {{translate.contact}}</div>\r\n <div class=\"menu\" routerLink=\"./systems\" (click)=\"hideMenuMethode()\"> <i class=\"pi pi-eye\"></i> {{translate.systems}}</div>\r\n <div class=\"menu\" routerLink=\"./maintenance\" (click)=\"hideMenuMethode()\"> <i class=\"pi pi-inbox\"></i> {{translate.maintenance}}</div>\r\n <div class=\"menu\" (click)=\"logout()\"> <i class=\"pi pi-power-off\"></i> {{translate.logout}}</div>\r\n</div> ", styles: [".layout-menu{margin-left:50px}.layout-menu .menu{display:block;color:#8da1b5;font-weight:300;padding:1rem 0 .5rem;font-size:16px;cursor:pointer}.layout-menu .menu:hover{font-weight:700;color:var(--primarycolor)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
136
181
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MenuGePortalComponent, decorators: [{
|
137
182
|
type: Component,
|
138
|
-
args: [{ selector: '
|
183
|
+
args: [{ selector: 'awf-menu-ge-portal', template: "<div class=\"layout-menu\" *ngIf=\"translate\">\r\n <div class=\"menu\" routerLink=\"./\" (click)=\"hideMenuMethode()\"> <i class=\"pi pi-home\"></i> {{translate.home}}</div>\r\n <div class=\"menu\" routerLink=\"./contact\" (click)=\"hideMenuMethode()\"> <i class=\"pi pi-phone\"></i> {{translate.contact}}</div>\r\n <div class=\"menu\" routerLink=\"./systems\" (click)=\"hideMenuMethode()\"> <i class=\"pi pi-eye\"></i> {{translate.systems}}</div>\r\n <div class=\"menu\" routerLink=\"./maintenance\" (click)=\"hideMenuMethode()\"> <i class=\"pi pi-inbox\"></i> {{translate.maintenance}}</div>\r\n <div class=\"menu\" (click)=\"logout()\"> <i class=\"pi pi-power-off\"></i> {{translate.logout}}</div>\r\n</div> ", styles: [".layout-menu{margin-left:50px}.layout-menu .menu{display:block;color:#8da1b5;font-weight:300;padding:1rem 0 .5rem;font-size:16px;cursor:pointer}.layout-menu .menu:hover{font-weight:700;color:var(--primarycolor)}\n"] }]
|
139
184
|
}], ctorParameters: function () { return []; }, propDecorators: { logOutClick: [{
|
140
185
|
type: Output
|
141
186
|
}], translate: [{
|
@@ -146,23 +191,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
146
191
|
type: Output
|
147
192
|
}] } });
|
148
193
|
|
149
|
-
class NotFoundComponent {
|
150
|
-
constructor() { }
|
151
|
-
ngOnChanges() {
|
152
|
-
console.log();
|
153
|
-
}
|
154
|
-
}
|
155
|
-
NotFoundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: NotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
156
|
-
NotFoundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: NotFoundComponent, selector: "awf-not-found", inputs: { translate: "translate", applicationName: "applicationName" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"container\" *ngIf=\"translate\">\n <h2>{{translate.title}}</h2>\n <h3>{{translate.oops}}</h3>\n <p>{{translate.checkUrl}}</p>\n <p>{{translate.otherwise}}<a routerLink=\"./home\">{{translate.clickHere}} </a>{{translate.redirect}}</p>\n</div>\n", styles: [".container{display:flex;flex-direction:column;align-items:center;width:100%;background-color:#5ca3dd93}h2{font-size:150px;margin:0;text-shadow:15px 5px 2px black}h3{font-size:40px;margin:20px}p{font-size:18px;margin:5px}p:last-of-type{margin-bottom:35px}a{text-decoration:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: NotFoundComponent, decorators: [{
|
158
|
-
type: Component,
|
159
|
-
args: [{ selector: 'awf-not-found', template: "<div class=\"container\" *ngIf=\"translate\">\n <h2>{{translate.title}}</h2>\n <h3>{{translate.oops}}</h3>\n <p>{{translate.checkUrl}}</p>\n <p>{{translate.otherwise}}<a routerLink=\"./home\">{{translate.clickHere}} </a>{{translate.redirect}}</p>\n</div>\n", styles: [".container{display:flex;flex-direction:column;align-items:center;width:100%;background-color:#5ca3dd93}h2{font-size:150px;margin:0;text-shadow:15px 5px 2px black}h3{font-size:40px;margin:20px}p{font-size:18px;margin:5px}p:last-of-type{margin-bottom:35px}a{text-decoration:none}\n"] }]
|
160
|
-
}], ctorParameters: function () { return []; }, propDecorators: { translate: [{
|
161
|
-
type: Input
|
162
|
-
}], applicationName: [{
|
163
|
-
type: Input
|
164
|
-
}] } });
|
165
|
-
|
166
194
|
class MenuComponent {
|
167
195
|
constructor() {
|
168
196
|
this.logOutClick = new EventEmitter();
|
@@ -177,10 +205,10 @@ class MenuComponent {
|
|
177
205
|
}
|
178
206
|
}
|
179
207
|
MenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
180
|
-
MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MenuComponent, selector: "awf-menu", inputs: { active: "active", isAdmin: "isAdmin", translate: "translate", applicationName: "applicationName", haveConsumerDataId: "haveConsumerDataId" }, outputs: { logOutClick: "logOutClick", hideMenu: "hideMenu" }, ngImport: i0, template: "\r\n\r\n <
|
208
|
+
MenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MenuComponent, selector: "awf-menu", inputs: { active: "active", isAdmin: "isAdmin", translate: "translate", applicationName: "applicationName", haveConsumerDataId: "haveConsumerDataId" }, outputs: { logOutClick: "logOutClick", hideMenu: "hideMenu" }, ngImport: i0, template: "\r\n\r\n <awf-menu-warranty [haveConsumerDataId]=\"haveConsumerDataId\" [translate]=\"translate\" [isAdmin]=\"isAdmin\" *ngIf=\"applicationName ==='WarrantyPortal' \" (logOutClick)=logout() (hideMenu)=\"hideMenuMethode()\">\r\n </awf-menu-warranty>\r\n <awf-menu-consomer [translate]=\"translate\" [isAdmin]=\"isAdmin\" *ngIf=\"applicationName ==='ConsomerPortal' \" (logOutClick)=logout() (hideMenu)=\"hideMenuMethode()\">\r\n </awf-menu-consomer>\r\n <awf-menu-ge-portal [translate]=\"translate\" [isAdmin]=\"isAdmin\" *ngIf=\"applicationName ==='GEPortal' \" (logOutClick)=logout() (hideMenu)=\"hideMenuMethode()\">\r\n </awf-menu-ge-portal> \r\n", styles: [".layout-menu .logo img{width:150px;max-height:20px;margin-left:24px}@media (max-width: var(--smscreen)){.layout-menu .logo img{max-height:33px;margin-left:0}}.layout-menu .a{font-family:var(--font)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MenuWarrantyComponent, selector: "awf-menu-warranty", inputs: ["isAdmin", "translate", "haveConsumerDataId"], outputs: ["logOutClick", "hideMenu"] }, { kind: "component", type: MenuConsomerComponent, selector: "awf-menu-consomer", inputs: ["translate", "isAdmin"], outputs: ["logOutClick"] }, { kind: "component", type: MenuGePortalComponent, selector: "awf-menu-ge-portal", inputs: ["translate", "isAdmin"], outputs: ["logOutClick", "hideMenu"] }] });
|
181
209
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MenuComponent, decorators: [{
|
182
210
|
type: Component,
|
183
|
-
args: [{ selector: 'awf-menu', template: "\r\n\r\n <
|
211
|
+
args: [{ selector: 'awf-menu', template: "\r\n\r\n <awf-menu-warranty [haveConsumerDataId]=\"haveConsumerDataId\" [translate]=\"translate\" [isAdmin]=\"isAdmin\" *ngIf=\"applicationName ==='WarrantyPortal' \" (logOutClick)=logout() (hideMenu)=\"hideMenuMethode()\">\r\n </awf-menu-warranty>\r\n <awf-menu-consomer [translate]=\"translate\" [isAdmin]=\"isAdmin\" *ngIf=\"applicationName ==='ConsomerPortal' \" (logOutClick)=logout() (hideMenu)=\"hideMenuMethode()\">\r\n </awf-menu-consomer>\r\n <awf-menu-ge-portal [translate]=\"translate\" [isAdmin]=\"isAdmin\" *ngIf=\"applicationName ==='GEPortal' \" (logOutClick)=logout() (hideMenu)=\"hideMenuMethode()\">\r\n </awf-menu-ge-portal> \r\n", styles: [".layout-menu .logo img{width:150px;max-height:20px;margin-left:24px}@media (max-width: var(--smscreen)){.layout-menu .logo img{max-height:33px;margin-left:0}}.layout-menu .a{font-family:var(--font)}\n"] }]
|
184
212
|
}], ctorParameters: function () { return []; }, propDecorators: { logOutClick: [{
|
185
213
|
type: Output
|
186
214
|
}], hideMenu: [{
|
@@ -275,7 +303,7 @@ class SystemListComponent {
|
|
275
303
|
}
|
276
304
|
}
|
277
305
|
SystemListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: SystemListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
278
|
-
SystemListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: SystemListComponent, selector: "awf-system-list", inputs: { translate: "translate", globaltranslate: "globaltranslate", systems: "systems" }, providers: [MessageService], viewQueries: [{ propertyName: "dt", first: true, predicate: ["dt"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<p-table #dt [value]=\"systems\" responsiveLayout=\"stack\" [rows]=\"5\" [showCurrentPageReport]=\"true\" [rowsPerPageOptions]=\"[5,10,25,50]\" [paginator]=\"true\" [globalFilterFields]=\"['id','systemId','name','modality','installDate']\" [rowHover]=\"true\" dataKey=\"id\"\n [currentPageReportTemplate]=\"globaltranslate.countPages\" [showCurrentPageReport]=\"true\">\n <ng-template pTemplate=\"caption\">\n <div>\n <span class=\"p-input-icon-left\">\n <i class=\"pi pi-search\"></i>\n <input pInputText type=\"text\" (input)=\"applyFilterGlobal($event, 'contains')\"\n [placeholder]=\"globaltranslate.search\" />\n </span>\n </div>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <!-- <th pSortableColumn=\"caseId\">Case Id <p-sortIcon field=\"caseId\"></p-sortIcon> -->\n <th pSortableColumn=\"id\">Id\n <p-sortIcon field=\"id\"></p-sortIcon>\n <th pSortableColumn=\"systemId\">System Id\n <p-sortIcon field=\"systemId\"></p-sortIcon>\n <th pSortableColumn=\"name\">Name\n <p-sortIcon field=\"name\"></p-sortIcon>\n <th pSortableColumn=\"modality\">Modality\n <p-sortIcon field=\"modality\"></p-sortIcon>\n <th pSortableColumn=\"installDate\">Install Date\n <!-- <p-sortIcon field=\"installDate\"></p-sortIcon>\n <th> Action</th> -->\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-product let-columns=\"columns\">\n <tr>\n\n <td>{{product.id }}</td>\n <td>{{product.systemId }}</td>\n <td>{{product.name }}</td>\n <td>{{product.modality }}</td>\n <td>{{product.installDate | substring :0:10 }}</td>\n\n <!-- <td>\n <button pButton pRipple type=\"button\" label=\"\" icon=\"pi pi-pencil\" class=\"p-button-rounded\" [disabled]=\"product.status ==='waiting'\"></button>\n </td> -->\n </tr>\n </ng-template>\n <ng-template pTemplate=\"summary\">\n <div class=\"p-d-flex p-ai-center p-jc-between\">\n {{globaltranslate.count}} {{systems ? systems.length : 0 }} {{globaltranslate.elements}}.\n </div>\n </ng-template>\n</p-table>\n", styles: [""], dependencies: [{ kind: "component", type: i1$2.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "virtualRowHeight", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["selectAllChange", "selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type:
|
306
|
+
SystemListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: SystemListComponent, selector: "awf-system-list", inputs: { translate: "translate", globaltranslate: "globaltranslate", systems: "systems" }, providers: [MessageService], viewQueries: [{ propertyName: "dt", first: true, predicate: ["dt"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<p-table #dt [value]=\"systems\" responsiveLayout=\"stack\" [rows]=\"5\" [showCurrentPageReport]=\"true\" [rowsPerPageOptions]=\"[5,10,25,50]\" [paginator]=\"true\" [globalFilterFields]=\"['id','systemId','name','modality','installDate']\" [rowHover]=\"true\" dataKey=\"id\"\n [currentPageReportTemplate]=\"globaltranslate.countPages\" [showCurrentPageReport]=\"true\">\n <ng-template pTemplate=\"caption\">\n <div>\n <span class=\"p-input-icon-left\">\n <i class=\"pi pi-search\"></i>\n <input pInputText type=\"text\" (input)=\"applyFilterGlobal($event, 'contains')\"\n [placeholder]=\"globaltranslate.search\" />\n </span>\n </div>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <!-- <th pSortableColumn=\"caseId\">Case Id <p-sortIcon field=\"caseId\"></p-sortIcon> -->\n <th pSortableColumn=\"id\">Id\n <p-sortIcon field=\"id\"></p-sortIcon>\n <th pSortableColumn=\"systemId\">System Id\n <p-sortIcon field=\"systemId\"></p-sortIcon>\n <th pSortableColumn=\"name\">Name\n <p-sortIcon field=\"name\"></p-sortIcon>\n <th pSortableColumn=\"modality\">Modality\n <p-sortIcon field=\"modality\"></p-sortIcon>\n <th pSortableColumn=\"installDate\">Install Date\n <!-- <p-sortIcon field=\"installDate\"></p-sortIcon>\n <th> Action</th> -->\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-product let-columns=\"columns\">\n <tr>\n\n <td>{{product.id }}</td>\n <td>{{product.systemId }}</td>\n <td>{{product.name }}</td>\n <td>{{product.modality }}</td>\n <td>{{product.installDate | substring :0:10 }}</td>\n\n <!-- <td>\n <button pButton pRipple type=\"button\" label=\"\" icon=\"pi pi-pencil\" class=\"p-button-rounded\" [disabled]=\"product.status ==='waiting'\"></button>\n </td> -->\n </tr>\n </ng-template>\n <ng-template pTemplate=\"summary\">\n <div class=\"p-d-flex p-ai-center p-jc-between\">\n {{globaltranslate.count}} {{systems ? systems.length : 0 }} {{globaltranslate.elements}}.\n </div>\n </ng-template>\n</p-table>\n", styles: [""], dependencies: [{ kind: "component", type: i1$2.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "virtualRowHeight", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["selectAllChange", "selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$2.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "component", type: i1$2.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "directive", type: i3.InputText, selector: "[pInputText]" }, { kind: "pipe", type: SubstringPipe, name: "substring" }] });
|
279
307
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: SystemListComponent, decorators: [{
|
280
308
|
type: Component,
|
281
309
|
args: [{ selector: 'awf-system-list', providers: [MessageService], template: "<p-table #dt [value]=\"systems\" responsiveLayout=\"stack\" [rows]=\"5\" [showCurrentPageReport]=\"true\" [rowsPerPageOptions]=\"[5,10,25,50]\" [paginator]=\"true\" [globalFilterFields]=\"['id','systemId','name','modality','installDate']\" [rowHover]=\"true\" dataKey=\"id\"\n [currentPageReportTemplate]=\"globaltranslate.countPages\" [showCurrentPageReport]=\"true\">\n <ng-template pTemplate=\"caption\">\n <div>\n <span class=\"p-input-icon-left\">\n <i class=\"pi pi-search\"></i>\n <input pInputText type=\"text\" (input)=\"applyFilterGlobal($event, 'contains')\"\n [placeholder]=\"globaltranslate.search\" />\n </span>\n </div>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <!-- <th pSortableColumn=\"caseId\">Case Id <p-sortIcon field=\"caseId\"></p-sortIcon> -->\n <th pSortableColumn=\"id\">Id\n <p-sortIcon field=\"id\"></p-sortIcon>\n <th pSortableColumn=\"systemId\">System Id\n <p-sortIcon field=\"systemId\"></p-sortIcon>\n <th pSortableColumn=\"name\">Name\n <p-sortIcon field=\"name\"></p-sortIcon>\n <th pSortableColumn=\"modality\">Modality\n <p-sortIcon field=\"modality\"></p-sortIcon>\n <th pSortableColumn=\"installDate\">Install Date\n <!-- <p-sortIcon field=\"installDate\"></p-sortIcon>\n <th> Action</th> -->\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-product let-columns=\"columns\">\n <tr>\n\n <td>{{product.id }}</td>\n <td>{{product.systemId }}</td>\n <td>{{product.name }}</td>\n <td>{{product.modality }}</td>\n <td>{{product.installDate | substring :0:10 }}</td>\n\n <!-- <td>\n <button pButton pRipple type=\"button\" label=\"\" icon=\"pi pi-pencil\" class=\"p-button-rounded\" [disabled]=\"product.status ==='waiting'\"></button>\n </td> -->\n </tr>\n </ng-template>\n <ng-template pTemplate=\"summary\">\n <div class=\"p-d-flex p-ai-center p-jc-between\">\n {{globaltranslate.count}} {{systems ? systems.length : 0 }} {{globaltranslate.elements}}.\n </div>\n </ng-template>\n</p-table>\n" }]
|
@@ -324,33 +352,797 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
324
352
|
}]
|
325
353
|
}] });
|
326
354
|
|
355
|
+
class ContactComponent {
|
356
|
+
constructor(formBuilder, messageService) {
|
357
|
+
this.formBuilder = formBuilder;
|
358
|
+
this.messageService = messageService;
|
359
|
+
this.loading = false;
|
360
|
+
this.submitted = false;
|
361
|
+
this.systems = [];
|
362
|
+
this.selectedSystems = [];
|
363
|
+
this.sendForm = new EventEmitter();
|
364
|
+
}
|
365
|
+
;
|
366
|
+
ngOnChanges() {
|
367
|
+
this.loadForm();
|
368
|
+
}
|
369
|
+
// convenience getter for easy access to form fields
|
370
|
+
get f() {
|
371
|
+
return this.form.controls;
|
372
|
+
}
|
373
|
+
preventStringKeypress(event) {
|
374
|
+
if (isNaN(Number(String.fromCharCode(event.charCode))) ||
|
375
|
+
String.fromCharCode(event.charCode) === ' ') {
|
376
|
+
event.preventDefault();
|
377
|
+
}
|
378
|
+
}
|
379
|
+
onSubmit() {
|
380
|
+
this.submitted = true;
|
381
|
+
if (this.form.invalid) {
|
382
|
+
this.messageService.add({
|
383
|
+
severity: 'error',
|
384
|
+
summary: 'Error',
|
385
|
+
detail: 'The form is invalid',
|
386
|
+
});
|
387
|
+
return;
|
388
|
+
}
|
389
|
+
this.sendForm.emit(this.form);
|
390
|
+
}
|
391
|
+
loadForm() {
|
392
|
+
this.form = this.formBuilder.group({
|
393
|
+
name: ['', [Validators.required, Validators.minLength(3)]],
|
394
|
+
email: ['', [Validators.required, Validators.email]],
|
395
|
+
phone: ['', [Validators.required]],
|
396
|
+
systems: [[], []],
|
397
|
+
message: ['', [Validators.required, Validators.minLength(15)]],
|
398
|
+
});
|
399
|
+
}
|
400
|
+
}
|
401
|
+
ContactComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ContactComponent, deps: [{ token: i1$4.FormBuilder }, { token: i1$3.MessageService }], target: i0.ɵɵFactoryTarget.Component });
|
402
|
+
ContactComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ContactComponent, selector: "awf-contact", inputs: { loading: "loading", submitted: "submitted", systems: "systems", selectedSystems: "selectedSystems", translate: "translate" }, outputs: { sendForm: "sendForm" }, providers: [MessageService], usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"translate\">\n <section class=\"pt-0\">\n <div class=\"app-section-header-img\">\n <div class=\"container pt-4\">\n <div class=\"\">\n <h2>{{translate.title}}</h2>\n </div>\n </div>\n </div>\n </section>\n <section class=\"py-5 background-light\">\n <div class=\"container px-lg-5\">\n <div class=\"row align-items-center\">\n <div class=\"col-md-6\">\n <div class=\"container-contact100\">\n <div class=\"wrap-contact100\">\n <form [formGroup]=\"form\" *ngIf=\"form && systems\" class=\"contact100-form validate-form\">\n <span class=\"contact100-form-title\">{{translate.title}}</span>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.placeholderName}}</span> <span class=\"requis\">* </span>:\n <input [placeholder]=\"translate.placeholderName\" type=\"text\" pInputText formControlName=\"name\" [ngClass]=\"{ 'is-invalid': submitted && f.name.invalid }\">\n <div *ngIf=\"submitted && f.name.errors\">\n <div class=\"requis\" *ngIf=\"f.name.errors.required\">{{translate.requiredName}}</div>\n <div class=\"requis\" *ngIf=\"f.name.errors.minlength\">{{translate.requiredNameMin}}</div>\n </div>\n </div>\n </div>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.placeholderEmail}}</span> <span class=\"requis\">*</span>:\n <input [placeholder]=\"translate.placeholderEmail\" type=\"text\" pInputText formControlName=\"email\" [ngClass]=\"{ 'is-invalid': submitted && f.email.invalid }\">\n <div *ngIf=\"submitted && f.email.errors\">\n <div class=\"requis\" *ngIf=\"f.email.errors.required\">{{translate.requiredEmail}}</div>\n <div class=\"requis\" *ngIf=\"f.email.errors.email\">{{translate.requiredEmailFormat}}</div>\n </div>\n </div>\n </div>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.placeholderPhone}}</span> <span class=\"requis\">*</span>:\n <input [placeholder]=\"translate.placeholderPhone\" type=\"text\" pInputText formControlName=\"phone\" [ngClass]=\"{ 'is-invalid': submitted && f.phone.invalid }\" (keypress)=\"preventStringKeypress($event)\">\n <div *ngIf=\"submitted && f.phone.errors\">\n <div class=\"requis\" *ngIf=\"f.phone.errors.required\">{{translate.requiredPhone}}</div>\n </div>\n </div>\n </div>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.RelatedSystems}}</span> <span class=\"requis\"> </span>\n <p-multiSelect formControlName=\"systems\" [options]=\"systems\" [(ngModel)]=\"selectedSystems\" [defaultLabel]=\"translate.selectAsystem\" [optionLabel]=\"'name'\" display=\"chip\"></p-multiSelect>\n </div>\n </div>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.placeholderMessage}}</span> <span class=\"requis\">*</span>:\n <textarea pInputTextarea [placeholder]=\"translate.placeholderMessage +'...'\" formControlName=\"message\" [ngClass]=\"{ 'is-invalid': submitted && f.message.errors }\"></textarea>\n <div *ngIf=\"submitted && f.message.errors\">\n <div class=\"requis\" *ngIf=\"f.message.errors.required\">{{translate.requiredMessage}}</div>\n <div class=\"requis\" *ngIf=\"f.message.errors.minlength\">{{translate.requiredMessageMin}}</div>\n </div>\n </div>\n </div>\n <div class=\"container-contact100-form-btn\">\n <div class=\"wrap-contact100-form-btn\">\n <div class=\"contact100-form-bgbtn\"></div>\n <button class=\"btn-warranty mt-3\" (click)=\"onSubmit()\">\n {{translate.send}}\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n <div class=\"col-md-6 contact\">\n <iframe src=\"https://maps.google.com/maps?q=283,%20Rue%20De%20la%20Miniere-BP34%20%2078533%20BUC%20%E2%80%93%20Cedex&t=&z=13&ie=UTF8&iwloc=&output=embed\" width=\"600\" height=\"250\" style=\"border:0;\" allowfullscreen=\"\" loading=\"lazy\"></iframe>\n <h6 class=\"fs-4 mt-3\"> {{translate.information}}</h6>\n <section class=\"mb-4\">\n <div class=\"\">\n <i class=\"pi pi-envelope\"></i><label> E-mail</label>\n <p class=\"\">info@ge.com (To be replaced) </p>\n </div>\n <div class=\" mt-4\">\n <i class=\"pi pi-map\"></i><label> {{translate.address}}</label>\n <p class=\"\">GE Medical Systems, 283, Rue De la Miniere-BP34</p>\n <p class=\"\">78533 BUC \u2013 Cedex France</p>\n <p class=\"\">France</p>\n </div>\n </section>\n </div>\n\n </div>\n </div>\n </section>\n</div>\n\n<p-toast position=\"top-center\"></p-toast>\n", styles: ["h1,h2,h3,h4,h5,h6,p,span,label,::placeholder{font-family:var(--font)}.app-section-header-img{background-image:url(/assets/img/GEPortal/contact.png);background-repeat:no-repeat;background-size:cover;background-position:center center;display:flex;align-items:center;height:237px}@media (max-width: var(--smallscreen)){.app-section-header-img{height:auto}}.app-section-header-img h2{font-size:48px;font-family:var(--font);font-weight:600;color:#fff;text-align:center}@media (max-width: var(--smallscreen)){.app-section-header-img h2{font-size:30px}}@media (max-width: var(--smallscreen)){.app-section-header-img{padding-left:15px;padding-right:15px}}@media (max-width: var(--tinyscreen)){.app-section-header-img{height:200px}}h2{font-weight:600}a:focus{outline:none!important}a:hover{text-decoration:none}input{outline:none;border:none}input.input100{height:62px;padding:0 20px 0 58px}input[type=number]{appearance:none;-webkit-appearance:none}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}textarea{outline:none;border:none}textarea.input100{min-height:199px;padding:19px 20px 0 23px}textarea:focus,input:focus{border-color:transparent!important}.container-contact100{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:15px}.wrap-contact100{width:550px;background:transparent;padding:30px 0 80px}.contact100-form-title{display:block;font-family:var(--font);font-size:30px;color:#43383e;line-height:1.2;text-align:left;padding-bottom:35px}.wrap-input100{width:100%;position:relative;background-color:#fff;margin-bottom:17px}.label-input100{display:flex;justify-content:center;align-items:center;width:58px;height:62px;position:absolute;top:0;left:0;cursor:pointer;font-size:18px;color:#999}.input100{display:block;width:100%;background:transparent;font-size:15px;color:#43383e;line-height:1.2;padding:0 5px}@media (max-width: var(--smallscreen)){.contact iframe{width:auto}}.contact label{margin-left:10px;color:#a2a2a2;font-weight:700}.contact i{color:#a2a2a2;font-weight:700}.contact .social li{display:inline;padding:10px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.InputText, selector: "[pInputText]" }, { kind: "component", type: i3$1.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "directive", type: i6.InputTextarea, selector: "[pInputTextarea]", inputs: ["autoResize"], outputs: ["onResize"] }, { kind: "component", type: i7.MultiSelect, selector: "p-multiSelect", inputs: ["style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "appendTo", "dataKey", "name", "label", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "autoZIndex", "baseZIndex", "filterBy", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "autocomplete", "showClear", "defaultLabel", "placeholder", "options", "filterValue", "itemSize"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onClear", "onPanelShow", "onPanelHide", "onLazyLoad"] }, { kind: "directive", type: i1$4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }] });
|
403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ContactComponent, decorators: [{
|
404
|
+
type: Component,
|
405
|
+
args: [{ selector: 'awf-contact', providers: [MessageService], template: "<div *ngIf=\"translate\">\n <section class=\"pt-0\">\n <div class=\"app-section-header-img\">\n <div class=\"container pt-4\">\n <div class=\"\">\n <h2>{{translate.title}}</h2>\n </div>\n </div>\n </div>\n </section>\n <section class=\"py-5 background-light\">\n <div class=\"container px-lg-5\">\n <div class=\"row align-items-center\">\n <div class=\"col-md-6\">\n <div class=\"container-contact100\">\n <div class=\"wrap-contact100\">\n <form [formGroup]=\"form\" *ngIf=\"form && systems\" class=\"contact100-form validate-form\">\n <span class=\"contact100-form-title\">{{translate.title}}</span>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.placeholderName}}</span> <span class=\"requis\">* </span>:\n <input [placeholder]=\"translate.placeholderName\" type=\"text\" pInputText formControlName=\"name\" [ngClass]=\"{ 'is-invalid': submitted && f.name.invalid }\">\n <div *ngIf=\"submitted && f.name.errors\">\n <div class=\"requis\" *ngIf=\"f.name.errors.required\">{{translate.requiredName}}</div>\n <div class=\"requis\" *ngIf=\"f.name.errors.minlength\">{{translate.requiredNameMin}}</div>\n </div>\n </div>\n </div>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.placeholderEmail}}</span> <span class=\"requis\">*</span>:\n <input [placeholder]=\"translate.placeholderEmail\" type=\"text\" pInputText formControlName=\"email\" [ngClass]=\"{ 'is-invalid': submitted && f.email.invalid }\">\n <div *ngIf=\"submitted && f.email.errors\">\n <div class=\"requis\" *ngIf=\"f.email.errors.required\">{{translate.requiredEmail}}</div>\n <div class=\"requis\" *ngIf=\"f.email.errors.email\">{{translate.requiredEmailFormat}}</div>\n </div>\n </div>\n </div>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.placeholderPhone}}</span> <span class=\"requis\">*</span>:\n <input [placeholder]=\"translate.placeholderPhone\" type=\"text\" pInputText formControlName=\"phone\" [ngClass]=\"{ 'is-invalid': submitted && f.phone.invalid }\" (keypress)=\"preventStringKeypress($event)\">\n <div *ngIf=\"submitted && f.phone.errors\">\n <div class=\"requis\" *ngIf=\"f.phone.errors.required\">{{translate.requiredPhone}}</div>\n </div>\n </div>\n </div>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.RelatedSystems}}</span> <span class=\"requis\"> </span>\n <p-multiSelect formControlName=\"systems\" [options]=\"systems\" [(ngModel)]=\"selectedSystems\" [defaultLabel]=\"translate.selectAsystem\" [optionLabel]=\"'name'\" display=\"chip\"></p-multiSelect>\n </div>\n </div>\n <div class=\"p-grid p-fluid p-mt-2\">\n <div class=\"p-col-12 p-md-12 \">\n <span class=\"titre\">{{translate.placeholderMessage}}</span> <span class=\"requis\">*</span>:\n <textarea pInputTextarea [placeholder]=\"translate.placeholderMessage +'...'\" formControlName=\"message\" [ngClass]=\"{ 'is-invalid': submitted && f.message.errors }\"></textarea>\n <div *ngIf=\"submitted && f.message.errors\">\n <div class=\"requis\" *ngIf=\"f.message.errors.required\">{{translate.requiredMessage}}</div>\n <div class=\"requis\" *ngIf=\"f.message.errors.minlength\">{{translate.requiredMessageMin}}</div>\n </div>\n </div>\n </div>\n <div class=\"container-contact100-form-btn\">\n <div class=\"wrap-contact100-form-btn\">\n <div class=\"contact100-form-bgbtn\"></div>\n <button class=\"btn-warranty mt-3\" (click)=\"onSubmit()\">\n {{translate.send}}\n </button>\n </div>\n </div>\n </form>\n </div>\n </div>\n </div>\n <div class=\"col-md-6 contact\">\n <iframe src=\"https://maps.google.com/maps?q=283,%20Rue%20De%20la%20Miniere-BP34%20%2078533%20BUC%20%E2%80%93%20Cedex&t=&z=13&ie=UTF8&iwloc=&output=embed\" width=\"600\" height=\"250\" style=\"border:0;\" allowfullscreen=\"\" loading=\"lazy\"></iframe>\n <h6 class=\"fs-4 mt-3\"> {{translate.information}}</h6>\n <section class=\"mb-4\">\n <div class=\"\">\n <i class=\"pi pi-envelope\"></i><label> E-mail</label>\n <p class=\"\">info@ge.com (To be replaced) </p>\n </div>\n <div class=\" mt-4\">\n <i class=\"pi pi-map\"></i><label> {{translate.address}}</label>\n <p class=\"\">GE Medical Systems, 283, Rue De la Miniere-BP34</p>\n <p class=\"\">78533 BUC \u2013 Cedex France</p>\n <p class=\"\">France</p>\n </div>\n </section>\n </div>\n\n </div>\n </div>\n </section>\n</div>\n\n<p-toast position=\"top-center\"></p-toast>\n", styles: ["h1,h2,h3,h4,h5,h6,p,span,label,::placeholder{font-family:var(--font)}.app-section-header-img{background-image:url(/assets/img/GEPortal/contact.png);background-repeat:no-repeat;background-size:cover;background-position:center center;display:flex;align-items:center;height:237px}@media (max-width: var(--smallscreen)){.app-section-header-img{height:auto}}.app-section-header-img h2{font-size:48px;font-family:var(--font);font-weight:600;color:#fff;text-align:center}@media (max-width: var(--smallscreen)){.app-section-header-img h2{font-size:30px}}@media (max-width: var(--smallscreen)){.app-section-header-img{padding-left:15px;padding-right:15px}}@media (max-width: var(--tinyscreen)){.app-section-header-img{height:200px}}h2{font-weight:600}a:focus{outline:none!important}a:hover{text-decoration:none}input{outline:none;border:none}input.input100{height:62px;padding:0 20px 0 58px}input[type=number]{appearance:none;-webkit-appearance:none}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}textarea{outline:none;border:none}textarea.input100{min-height:199px;padding:19px 20px 0 23px}textarea:focus,input:focus{border-color:transparent!important}.container-contact100{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;padding:15px}.wrap-contact100{width:550px;background:transparent;padding:30px 0 80px}.contact100-form-title{display:block;font-family:var(--font);font-size:30px;color:#43383e;line-height:1.2;text-align:left;padding-bottom:35px}.wrap-input100{width:100%;position:relative;background-color:#fff;margin-bottom:17px}.label-input100{display:flex;justify-content:center;align-items:center;width:58px;height:62px;position:absolute;top:0;left:0;cursor:pointer;font-size:18px;color:#999}.input100{display:block;width:100%;background:transparent;font-size:15px;color:#43383e;line-height:1.2;padding:0 5px}@media (max-width: var(--smallscreen)){.contact iframe{width:auto}}.contact label{margin-left:10px;color:#a2a2a2;font-weight:700}.contact i{color:#a2a2a2;font-weight:700}.contact .social li{display:inline;padding:10px}\n"] }]
|
406
|
+
}], ctorParameters: function () { return [{ type: i1$4.FormBuilder }, { type: i1$3.MessageService }]; }, propDecorators: { loading: [{
|
407
|
+
type: Input
|
408
|
+
}], submitted: [{
|
409
|
+
type: Input
|
410
|
+
}], systems: [{
|
411
|
+
type: Input
|
412
|
+
}], selectedSystems: [{
|
413
|
+
type: Input
|
414
|
+
}], translate: [{
|
415
|
+
type: Input
|
416
|
+
}], sendForm: [{
|
417
|
+
type: Output
|
418
|
+
}] } });
|
419
|
+
|
420
|
+
class ChooseAnotherDateComponent {
|
421
|
+
constructor(messageService) {
|
422
|
+
this.messageService = messageService;
|
423
|
+
this.closeAnotherDate = new EventEmitter();
|
424
|
+
this.acceptDate = new EventEmitter();
|
425
|
+
this.dates = [];
|
426
|
+
this.datesRef = [];
|
427
|
+
this.show = false;
|
428
|
+
this.dateslength = 0;
|
429
|
+
this.indexSelectedDate = 0;
|
430
|
+
}
|
431
|
+
ngOnInit() {
|
432
|
+
this.loadDates();
|
433
|
+
}
|
434
|
+
ngOnChanges() { }
|
435
|
+
close() {
|
436
|
+
this.closeAnotherDate.emit(true);
|
437
|
+
this.messageService.add({ severity: 'error', summary: this.globaltranslate.summaryReject, detail: this.globaltranslate.detailReject });
|
438
|
+
}
|
439
|
+
accept() {
|
440
|
+
this.controlAlternativeDates();
|
441
|
+
this.acceptDate.emit(this.alternativeDatesList);
|
442
|
+
}
|
443
|
+
askDate() {
|
444
|
+
this.closeAnotherDate.emit(false);
|
445
|
+
}
|
446
|
+
controlAlternativeDates() {
|
447
|
+
let i = 0;
|
448
|
+
this.alternativeDatesList.forEach((item) => {
|
449
|
+
item.selected = (i === this.indexSelectedDate) ? "Yes" : "No";
|
450
|
+
i++;
|
451
|
+
});
|
452
|
+
}
|
453
|
+
loadDates() {
|
454
|
+
this.dates = [];
|
455
|
+
this.datesRef = [];
|
456
|
+
if (this.alternativeDatesList) {
|
457
|
+
this.alternativeDatesList.forEach((element) => {
|
458
|
+
this.dates.push(new Date(element.startDateTime));
|
459
|
+
this.datesRef.push(new Date(element.startDateTime));
|
460
|
+
});
|
461
|
+
}
|
462
|
+
this.dateslength = this.dates.length;
|
463
|
+
}
|
464
|
+
onSelect() {
|
465
|
+
if (this.dateslength < this.dates.length) {
|
466
|
+
this.loadDates();
|
467
|
+
}
|
468
|
+
else if (this.dateslength > this.dates.length) {
|
469
|
+
this.selectedDate = this.arrdiff(this.datesRef, this.dates)[0];
|
470
|
+
for (var i = 0; i < this.datesRef.length; i++) {
|
471
|
+
if (this.datesRef[i] == this.selectedDate) {
|
472
|
+
this.indexSelectedDate = i;
|
473
|
+
}
|
474
|
+
}
|
475
|
+
this.controlAlternativeDates();
|
476
|
+
this.accept();
|
477
|
+
this.loadDates();
|
478
|
+
}
|
479
|
+
this.dates;
|
480
|
+
}
|
481
|
+
arrdiff(a1, a2) {
|
482
|
+
var a = [], diff = [];
|
483
|
+
for (var i = 0; i < a1.length; i++) {
|
484
|
+
a[a1[i]] = true;
|
485
|
+
}
|
486
|
+
for (var i = 0; i < a2.length; i++) {
|
487
|
+
if (a[a2[i]]) {
|
488
|
+
delete a[a2[i]];
|
489
|
+
}
|
490
|
+
else {
|
491
|
+
a[a2[i]] = true;
|
492
|
+
}
|
493
|
+
}
|
494
|
+
for (var k in a) {
|
495
|
+
diff.push(k);
|
496
|
+
}
|
497
|
+
return diff;
|
498
|
+
}
|
499
|
+
}
|
500
|
+
ChooseAnotherDateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ChooseAnotherDateComponent, deps: [{ token: i1$3.MessageService }], target: i0.ɵɵFactoryTarget.Component });
|
501
|
+
ChooseAnotherDateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ChooseAnotherDateComponent, selector: "app-choose-another-date", inputs: { displayAnotherDate: "displayAnotherDate", globaltranslate: "globaltranslate", translate: "translate", alternativeDatesList: "alternativeDatesList" }, outputs: { closeAnotherDate: "closeAnotherDate", acceptDate: "acceptDate" }, usesOnChanges: true, ngImport: i0, template: "<p-toast position=\"top-center\"></p-toast>\r\n<div>\r\n <p-dialog [header]=\"translate.text\" [(visible)]=\"displayAnotherDate\" [modal]=\"true\" [style]=\"{width: '2000px',height:'600px'}\" [draggable]=\"false\" [resizable]=\"false\" (onHide)=\"close()\">\r\n <p-calendar [(ngModel)]=\"dates\" selectionMode=\"multiple\" [numberOfMonths]=\"2\" [touchUI]=\"true\" [inline]=\"true\" inputId=\"multiplemonths\" (click)=\"onSelect()\"></p-calendar>\r\n <ng-template pTemplate=\"footer\">\r\n <p-button icon=\"pi pi-calendar-plus\" (click)=\"askDate()\" [label]=\"translate.ask\" class=\"p-button-text\"></p-button>\r\n </ng-template>\r\n </p-dialog>\r\n</div>", styles: [".p-datepicker table td.p-datepicker-today>span.p-highlight{color:#fff;background:var(--primarycolor)}\n"], dependencies: [{ kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i3$1.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "directive", type: i1$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i4.Calendar, selector: "p-calendar", inputs: ["style", "styleClass", "inputStyle", "inputId", "name", "inputStyleClass", "placeholder", "ariaLabelledBy", "iconAriaLabel", "disabled", "dateFormat", "multipleSeparator", "rangeSeparator", "inline", "showOtherMonths", "selectOtherMonths", "showIcon", "icon", "appendTo", "readonlyInput", "shortYearCutoff", "monthNavigator", "yearNavigator", "hourFormat", "timeOnly", "stepHour", "stepMinute", "stepSecond", "showSeconds", "required", "showOnFocus", "showWeek", "showClear", "dataType", "selectionMode", "maxDateCount", "showButtonBar", "todayButtonStyleClass", "clearButtonStyleClass", "autoZIndex", "baseZIndex", "panelStyleClass", "panelStyle", "keepInvalid", "hideOnDateTimeSelect", "touchUI", "timeSeparator", "focusTrap", "showTransitionOptions", "hideTransitionOptions", "tabindex", "view", "defaultDate", "minDate", "maxDate", "disabledDates", "disabledDays", "yearRange", "showTime", "responsiveOptions", "numberOfMonths", "firstDayOfWeek", "locale"], outputs: ["onFocus", "onBlur", "onClose", "onSelect", "onClear", "onInput", "onTodayClick", "onClearClick", "onMonthChange", "onYearChange", "onClickOutside", "onShow"] }, { kind: "component", type: i4$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i5.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"] }], encapsulation: i0.ViewEncapsulation.None });
|
502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ChooseAnotherDateComponent, decorators: [{
|
503
|
+
type: Component,
|
504
|
+
args: [{ selector: 'app-choose-another-date', encapsulation: ViewEncapsulation.None, template: "<p-toast position=\"top-center\"></p-toast>\r\n<div>\r\n <p-dialog [header]=\"translate.text\" [(visible)]=\"displayAnotherDate\" [modal]=\"true\" [style]=\"{width: '2000px',height:'600px'}\" [draggable]=\"false\" [resizable]=\"false\" (onHide)=\"close()\">\r\n <p-calendar [(ngModel)]=\"dates\" selectionMode=\"multiple\" [numberOfMonths]=\"2\" [touchUI]=\"true\" [inline]=\"true\" inputId=\"multiplemonths\" (click)=\"onSelect()\"></p-calendar>\r\n <ng-template pTemplate=\"footer\">\r\n <p-button icon=\"pi pi-calendar-plus\" (click)=\"askDate()\" [label]=\"translate.ask\" class=\"p-button-text\"></p-button>\r\n </ng-template>\r\n </p-dialog>\r\n</div>", styles: [".p-datepicker table td.p-datepicker-today>span.p-highlight{color:#fff;background:var(--primarycolor)}\n"] }]
|
505
|
+
}], ctorParameters: function () { return [{ type: i1$3.MessageService }]; }, propDecorators: { displayAnotherDate: [{
|
506
|
+
type: Input
|
507
|
+
}], globaltranslate: [{
|
508
|
+
type: Input
|
509
|
+
}], translate: [{
|
510
|
+
type: Input
|
511
|
+
}], alternativeDatesList: [{
|
512
|
+
type: Input
|
513
|
+
}], closeAnotherDate: [{
|
514
|
+
type: Output
|
515
|
+
}], acceptDate: [{
|
516
|
+
type: Output
|
517
|
+
}] } });
|
518
|
+
|
519
|
+
class ConfirmDialogComponent {
|
520
|
+
constructor(messageService) {
|
521
|
+
this.messageService = messageService;
|
522
|
+
this.detailedPmJobLinkedList = [];
|
523
|
+
this.closeConfirmDialog = new EventEmitter();
|
524
|
+
}
|
525
|
+
rejectDate() {
|
526
|
+
this.closeConfirmDialog.emit(false);
|
527
|
+
this.messageService.add({ severity: 'error', summary: this.globaltranslate.summaryReject, detail: this.globaltranslate.detailReject });
|
528
|
+
}
|
529
|
+
confirmDate() {
|
530
|
+
this.closeConfirmDialog.emit(true);
|
531
|
+
}
|
532
|
+
}
|
533
|
+
ConfirmDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ConfirmDialogComponent, deps: [{ token: i1$3.MessageService }], target: i0.ɵɵFactoryTarget.Component });
|
534
|
+
ConfirmDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", 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 {{ isProposedDate ? translate.textProposed : translate.textAlternative }}<br> <br>{{translate.start}} : <i class=\"pi pi-calendar\"></i> <strong>\r\n {{startDateTime | substring :0:16}} </strong> {{translate.end}}: <i class=\"pi pi-calendar\"></i> \r\n <strong> {{endDateTime | substring :0:16 }}</strong>\r\n <div *ngIf=\"detailedPmJobLinkedList.length>0\">\r\n <br> {{ translate.textWarn }}\r\n <ul>\r\n <strong><li *ngFor=\"let detailedPmJob of detailedPmJobLinkedList\">{{ detailedPmJob.pmJob.workorderId }}</li></strong>\r\n\r\n </ul>\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: i3$1.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "component", type: i4$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i5.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: SubstringPipe, name: "substring" }] });
|
535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ConfirmDialogComponent, decorators: [{
|
536
|
+
type: Component,
|
537
|
+
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 {{ isProposedDate ? translate.textProposed : translate.textAlternative }}<br> <br>{{translate.start}} : <i class=\"pi pi-calendar\"></i> <strong>\r\n {{startDateTime | substring :0:16}} </strong> {{translate.end}}: <i class=\"pi pi-calendar\"></i> \r\n <strong> {{endDateTime | substring :0:16 }}</strong>\r\n <div *ngIf=\"detailedPmJobLinkedList.length>0\">\r\n <br> {{ translate.textWarn }}\r\n <ul>\r\n <strong><li *ngFor=\"let detailedPmJob of detailedPmJobLinkedList\">{{ detailedPmJob.pmJob.workorderId }}</li></strong>\r\n\r\n </ul>\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>" }]
|
538
|
+
}], ctorParameters: function () { return [{ type: i1$3.MessageService }]; }, propDecorators: { displayConfirmDialog: [{
|
539
|
+
type: Input
|
540
|
+
}], startDateTime: [{
|
541
|
+
type: Input
|
542
|
+
}], endDateTime: [{
|
543
|
+
type: Input
|
544
|
+
}], globaltranslate: [{
|
545
|
+
type: Input
|
546
|
+
}], translate: [{
|
547
|
+
type: Input
|
548
|
+
}], isProposedDate: [{
|
549
|
+
type: Input
|
550
|
+
}], detailedPmJobLinkedList: [{
|
551
|
+
type: Input
|
552
|
+
}], closeConfirmDialog: [{
|
553
|
+
type: Output
|
554
|
+
}] } });
|
555
|
+
|
556
|
+
class ConfirmDialogValidatedToWaitingComponent {
|
557
|
+
constructor(messageService) {
|
558
|
+
this.messageService = messageService;
|
559
|
+
this.detailedPmJobLinkedList = [];
|
560
|
+
this.closeConfirmDialogValidatedToWaiting = new EventEmitter();
|
561
|
+
}
|
562
|
+
rejectDate() {
|
563
|
+
this.closeConfirmDialogValidatedToWaiting.emit(false);
|
564
|
+
this.messageService.add({ severity: 'error', summary: this.globaltranslate.summaryReject, detail: this.globaltranslate.detailReject });
|
565
|
+
}
|
566
|
+
confirmDate() {
|
567
|
+
this.closeConfirmDialogValidatedToWaiting.emit(true);
|
568
|
+
}
|
569
|
+
}
|
570
|
+
ConfirmDialogValidatedToWaitingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ConfirmDialogValidatedToWaitingComponent, deps: [{ token: i1$3.MessageService }], target: i0.ɵɵFactoryTarget.Component });
|
571
|
+
ConfirmDialogValidatedToWaitingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ConfirmDialogValidatedToWaitingComponent, selector: "app-confirm-dialog-validated-to-waiting", inputs: { displayConfirmValidatedToWaiting: "displayConfirmValidatedToWaiting", startDateTime: "startDateTime", endDateTime: "endDateTime", globaltranslate: "globaltranslate", translate: "translate", alreadyScheduledMsg: "alreadyScheduledMsg", detailedPmJobLinkedList: "detailedPmJobLinkedList" }, outputs: { closeConfirmDialogValidatedToWaiting: "closeConfirmDialogValidatedToWaiting" }, ngImport: i0, template: "<p-dialog [header]=\"globaltranslate.confirmation\" [(visible)]=\"displayConfirmValidatedToWaiting\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"rejectDate()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n {{ alreadyScheduledMsg ? translate.textProposed : translate.textNewDates }} <br> \r\n \r\n <div *ngIf=\"alreadyScheduledMsg\">\r\n <br>{{translate.start}} : <i class=\"pi pi-calendar\"></i> <strong>\r\n {{startDateTime | substring :0:16}} </strong> {{translate.end}}: <i class=\"pi pi-calendar\"></i> \r\n <strong> {{endDateTime | substring :0:16 }}</strong>\r\n <div *ngIf=\"detailedPmJobLinkedList.length>0\">\r\n <br> {{ translate.textWarn }}\r\n <ul>\r\n <strong><li *ngFor=\"let detailedPmJob of detailedPmJobLinkedList\">{{ detailedPmJob.pmJob.workorderId }}</li></strong>\r\n \r\n </ul>\r\n </div>\r\n\r\n </div>\r\n\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>\r\n", 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: i3$1.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "component", type: i4$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i5.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: SubstringPipe, name: "substring" }] });
|
572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ConfirmDialogValidatedToWaitingComponent, decorators: [{
|
573
|
+
type: Component,
|
574
|
+
args: [{ selector: 'app-confirm-dialog-validated-to-waiting', template: "<p-dialog [header]=\"globaltranslate.confirmation\" [(visible)]=\"displayConfirmValidatedToWaiting\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"rejectDate()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n {{ alreadyScheduledMsg ? translate.textProposed : translate.textNewDates }} <br> \r\n \r\n <div *ngIf=\"alreadyScheduledMsg\">\r\n <br>{{translate.start}} : <i class=\"pi pi-calendar\"></i> <strong>\r\n {{startDateTime | substring :0:16}} </strong> {{translate.end}}: <i class=\"pi pi-calendar\"></i> \r\n <strong> {{endDateTime | substring :0:16 }}</strong>\r\n <div *ngIf=\"detailedPmJobLinkedList.length>0\">\r\n <br> {{ translate.textWarn }}\r\n <ul>\r\n <strong><li *ngFor=\"let detailedPmJob of detailedPmJobLinkedList\">{{ detailedPmJob.pmJob.workorderId }}</li></strong>\r\n \r\n </ul>\r\n </div>\r\n\r\n </div>\r\n\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>\r\n" }]
|
575
|
+
}], ctorParameters: function () { return [{ type: i1$3.MessageService }]; }, propDecorators: { displayConfirmValidatedToWaiting: [{
|
576
|
+
type: Input
|
577
|
+
}], startDateTime: [{
|
578
|
+
type: Input
|
579
|
+
}], endDateTime: [{
|
580
|
+
type: Input
|
581
|
+
}], globaltranslate: [{
|
582
|
+
type: Input
|
583
|
+
}], translate: [{
|
584
|
+
type: Input
|
585
|
+
}], alreadyScheduledMsg: [{
|
586
|
+
type: Input
|
587
|
+
}], detailedPmJobLinkedList: [{
|
588
|
+
type: Input
|
589
|
+
}], closeConfirmDialogValidatedToWaiting: [{
|
590
|
+
type: Output
|
591
|
+
}] } });
|
592
|
+
|
593
|
+
class ConfirmedDateInformationComponent {
|
594
|
+
constructor() {
|
595
|
+
this.closeConfirmedDateInfo = new EventEmitter();
|
596
|
+
}
|
597
|
+
confirmDate() {
|
598
|
+
this.closeConfirmedDateInfo.emit(true);
|
599
|
+
}
|
600
|
+
}
|
601
|
+
ConfirmedDateInformationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ConfirmedDateInformationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
602
|
+
ConfirmedDateInformationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ConfirmedDateInformationComponent, selector: "app-confirmed-date-information", inputs: { displayConfirmedDateInfo: "displayConfirmedDateInfo", startDateTime: "startDateTime", endDateTime: "endDateTime", globaltranslate: "globaltranslate", translate: "translate" }, outputs: { closeConfirmedDateInfo: "closeConfirmedDateInfo" }, ngImport: i0, template: "<p-dialog [header]=\"globaltranslate.confirmation\" [(visible)]=\"displayConfirmedDateInfo\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"confirmDate()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n <i class=\"pi pi-check icon-check\"></i>\r\n <div class=\"text-center\">\r\n <p> {{translate.text }} <br> {{translate.start}} : <i class=\"pi pi-calendar\"></i> <strong>\r\n {{startDateTime | substring :0:16}}</strong> <br> {{translate.end }} : <i class=\"pi pi-calendar\"></i> \r\n <strong> {{endDateTime | substring :0:16}}</strong></p>\r\n </div>\r\n <ng-template pTemplate=\"footer\">\r\n <p-button icon=\"pi pi-times \" (click)=\"confirmDate()\" label=\"Close\" class=\" text-center d-block\"></p-button>\r\n </ng-template>\r\n</p-dialog>", styles: ["p-dialog p{font-size:14px;line-height:34px;margin-top:30px}p-dialog .icon-check{text-align:center;color:#fff;background:var(--primarycolor);width:80px;height:80px;display:flex;justify-content:center;align-items:center;border-radius:50%;font-size:30px;font-weight:700;margin:auto}\n"], dependencies: [{ kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: i4$1.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "component", type: i5.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: SubstringPipe, name: "substring" }] });
|
603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ConfirmedDateInformationComponent, decorators: [{
|
604
|
+
type: Component,
|
605
|
+
args: [{ selector: 'app-confirmed-date-information', template: "<p-dialog [header]=\"globaltranslate.confirmation\" [(visible)]=\"displayConfirmedDateInfo\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"confirmDate()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n <i class=\"pi pi-check icon-check\"></i>\r\n <div class=\"text-center\">\r\n <p> {{translate.text }} <br> {{translate.start}} : <i class=\"pi pi-calendar\"></i> <strong>\r\n {{startDateTime | substring :0:16}}</strong> <br> {{translate.end }} : <i class=\"pi pi-calendar\"></i> \r\n <strong> {{endDateTime | substring :0:16}}</strong></p>\r\n </div>\r\n <ng-template pTemplate=\"footer\">\r\n <p-button icon=\"pi pi-times \" (click)=\"confirmDate()\" label=\"Close\" class=\" text-center d-block\"></p-button>\r\n </ng-template>\r\n</p-dialog>", styles: ["p-dialog p{font-size:14px;line-height:34px;margin-top:30px}p-dialog .icon-check{text-align:center;color:#fff;background:var(--primarycolor);width:80px;height:80px;display:flex;justify-content:center;align-items:center;border-radius:50%;font-size:30px;font-weight:700;margin:auto}\n"] }]
|
606
|
+
}], ctorParameters: function () { return []; }, propDecorators: { displayConfirmedDateInfo: [{
|
607
|
+
type: Input
|
608
|
+
}], startDateTime: [{
|
609
|
+
type: Input
|
610
|
+
}], endDateTime: [{
|
611
|
+
type: Input
|
612
|
+
}], globaltranslate: [{
|
613
|
+
type: Input
|
614
|
+
}], translate: [{
|
615
|
+
type: Input
|
616
|
+
}], closeConfirmedDateInfo: [{
|
617
|
+
type: Output
|
618
|
+
}] } });
|
619
|
+
|
620
|
+
class ContactSupportComponent {
|
621
|
+
constructor(messageService, formBuilder) {
|
622
|
+
this.messageService = messageService;
|
623
|
+
this.formBuilder = formBuilder;
|
624
|
+
this.closeContactSupportPopup = new EventEmitter();
|
625
|
+
this.sendContactMeEmail = new EventEmitter();
|
626
|
+
this.loading = false;
|
627
|
+
this.submitted = false;
|
628
|
+
this.displayNumber = false;
|
629
|
+
}
|
630
|
+
ngOnChanges() {
|
631
|
+
this.setDateRules();
|
632
|
+
this.loadForm();
|
633
|
+
}
|
634
|
+
cancelcontactSupport() {
|
635
|
+
this.messageService.add({ severity: 'error', summary: this.globaltranslate.summaryReject, detail: this.globaltranslate.detailReject });
|
636
|
+
this.displaycontactSupport = false;
|
637
|
+
this.closeContactSupportPopup.emit(true);
|
638
|
+
}
|
639
|
+
saveForm() {
|
640
|
+
this.closeContactSupportPopup.emit(true);
|
641
|
+
}
|
642
|
+
setDateRules() {
|
643
|
+
let today = new Date();
|
644
|
+
let month = today.getMonth();
|
645
|
+
let year = today.getFullYear();
|
646
|
+
let prevMonth = (month === 0) ? 11 : month - 1;
|
647
|
+
let prevYear = (prevMonth === 11) ? year - 1 : year;
|
648
|
+
this.minDate = new Date();
|
649
|
+
this.minDate.setMonth(month);
|
650
|
+
this.minDate.setFullYear(prevYear);
|
651
|
+
}
|
652
|
+
loadForm() {
|
653
|
+
this.contactform = this.formBuilder.group({
|
654
|
+
dates: ['', Validators.required],
|
655
|
+
});
|
656
|
+
}
|
657
|
+
contacted() {
|
658
|
+
this.sendContactMeEmailMethode();
|
659
|
+
this.messageService.add({ severity: 'info', summary: this.translate.info, detail: this.translate.contactedflashMsg });
|
660
|
+
this.displaycontactSupport = false;
|
661
|
+
this.closeContactSupportPopup.emit(true);
|
662
|
+
}
|
663
|
+
contact() {
|
664
|
+
this.displayNumber = true;
|
665
|
+
}
|
666
|
+
closeNumber() {
|
667
|
+
this.displayNumber = false;
|
668
|
+
}
|
669
|
+
sendContactMeEmailMethode() {
|
670
|
+
this.sendContactMeEmail.emit(this.detailedPmJob);
|
671
|
+
}
|
672
|
+
}
|
673
|
+
ContactSupportComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ContactSupportComponent, deps: [{ token: i1$3.MessageService }, { token: i1$4.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
674
|
+
ContactSupportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ContactSupportComponent, selector: "app-contact-support", inputs: { displaycontactSupport: "displaycontactSupport", globaltranslate: "globaltranslate", translate: "translate", showDate: "showDate", detailedPmJob: "detailedPmJob" }, outputs: { closeContactSupportPopup: "closeContactSupportPopup", sendContactMeEmail: "sendContactMeEmail" }, usesOnChanges: true, ngImport: i0, template: "<p-dialog header=\"\" [modal]=\"true\" [(visible)]=\"displaycontactSupport\" [maximizable]=\"true\" [breakpoints]=\"{'960px': '75vw'}\" [style]=\"{width: '700px',height:'600px'}\" [draggable]=\"false\" [resizable]=\"false\" (onHide)=\"cancelcontactSupport()\">\r\n\r\n <strong>\r\n <h3 class=\"text-center title\"> {{translate.header}} </h3>\r\n </strong>\r\n <br>\r\n <form [formGroup]=\"contactform\">\r\n <div class=\"row\">\r\n \r\n <div class=\"col-md-6 card-bg\" >\r\n <div class=\"conteur contact-bloc\">\r\n <img class=\"d-block mx-auto\" src=\"assets/img/GEPortal/phone-call-.png\">\r\n <p class=\"counter contact-icon text-center mt-4\">{{translate.contacted}}</p>\r\n </div>\r\n <br>\r\n <button pButton pRipple class=\"d-block mx-auto\" [label]=\"translate.accept\" icon=\"pi pi-thumbs-up\" [pTooltip]=\"translate.accept\" tooltipPosition=\"bottom\" (click)=\"contacted()\"></button>\r\n </div>\r\n <div class=\"col-md-6 card-bg\" >\r\n <div class=\"conteur contact-bloc\">\r\n <img class=\"d-block mx-auto\" src=\"assets/img/GEPortal/phone-called.png\">\r\n <p class=\"counter contact-icon text-center mt-4\">{{translate.contact}}</p>\r\n </div>\r\n <br>\r\n <button pButton pRipple class=\"d-block mx-auto\" [label]=\"translate.seeNumber\" icon=\"pi pi-eye\" [pTooltip]=\"translate.accept\" tooltipPosition=\"bottom\" (click)=\"contact()\"></button>\r\n </div>\r\n </div>\r\n\r\n </form>\r\n\r\n</p-dialog>\r\n<p-dialog [header]=\"translate.serviceCenterPhoneText\" [modal]=\"true\" [(visible)]=\"displayNumber\" [breakpoints]=\"{'960px': '75vw'}\" [style]=\"{width: '400px',height:'200px'}\" [draggable]=\"false\" [resizable]=\"false\" (onHide)=\"closeNumber()\">\r\n<br>\r\n <h4 class=\"number\"> <strong> <i class=\"pi pi-phone\"></i> 06 06 06 06 06</strong></h4>\r\n</p-dialog>", styles: [".contact-icon{font-weight:inherit;font-size:15px}.number{text-align:center;color:#0084ff}\n"], dependencies: [{ kind: "directive", type: i1$4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "directive", type: i4$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "component", type: i5.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"] }] });
|
675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ContactSupportComponent, decorators: [{
|
676
|
+
type: Component,
|
677
|
+
args: [{ selector: 'app-contact-support', template: "<p-dialog header=\"\" [modal]=\"true\" [(visible)]=\"displaycontactSupport\" [maximizable]=\"true\" [breakpoints]=\"{'960px': '75vw'}\" [style]=\"{width: '700px',height:'600px'}\" [draggable]=\"false\" [resizable]=\"false\" (onHide)=\"cancelcontactSupport()\">\r\n\r\n <strong>\r\n <h3 class=\"text-center title\"> {{translate.header}} </h3>\r\n </strong>\r\n <br>\r\n <form [formGroup]=\"contactform\">\r\n <div class=\"row\">\r\n \r\n <div class=\"col-md-6 card-bg\" >\r\n <div class=\"conteur contact-bloc\">\r\n <img class=\"d-block mx-auto\" src=\"assets/img/GEPortal/phone-call-.png\">\r\n <p class=\"counter contact-icon text-center mt-4\">{{translate.contacted}}</p>\r\n </div>\r\n <br>\r\n <button pButton pRipple class=\"d-block mx-auto\" [label]=\"translate.accept\" icon=\"pi pi-thumbs-up\" [pTooltip]=\"translate.accept\" tooltipPosition=\"bottom\" (click)=\"contacted()\"></button>\r\n </div>\r\n <div class=\"col-md-6 card-bg\" >\r\n <div class=\"conteur contact-bloc\">\r\n <img class=\"d-block mx-auto\" src=\"assets/img/GEPortal/phone-called.png\">\r\n <p class=\"counter contact-icon text-center mt-4\">{{translate.contact}}</p>\r\n </div>\r\n <br>\r\n <button pButton pRipple class=\"d-block mx-auto\" [label]=\"translate.seeNumber\" icon=\"pi pi-eye\" [pTooltip]=\"translate.accept\" tooltipPosition=\"bottom\" (click)=\"contact()\"></button>\r\n </div>\r\n </div>\r\n\r\n </form>\r\n\r\n</p-dialog>\r\n<p-dialog [header]=\"translate.serviceCenterPhoneText\" [modal]=\"true\" [(visible)]=\"displayNumber\" [breakpoints]=\"{'960px': '75vw'}\" [style]=\"{width: '400px',height:'200px'}\" [draggable]=\"false\" [resizable]=\"false\" (onHide)=\"closeNumber()\">\r\n<br>\r\n <h4 class=\"number\"> <strong> <i class=\"pi pi-phone\"></i> 06 06 06 06 06</strong></h4>\r\n</p-dialog>", styles: [".contact-icon{font-weight:inherit;font-size:15px}.number{text-align:center;color:#0084ff}\n"] }]
|
678
|
+
}], ctorParameters: function () { return [{ type: i1$3.MessageService }, { type: i1$4.FormBuilder }]; }, propDecorators: { displaycontactSupport: [{
|
679
|
+
type: Input
|
680
|
+
}], closeContactSupportPopup: [{
|
681
|
+
type: Output
|
682
|
+
}], globaltranslate: [{
|
683
|
+
type: Input
|
684
|
+
}], translate: [{
|
685
|
+
type: Input
|
686
|
+
}], showDate: [{
|
687
|
+
type: Input
|
688
|
+
}], detailedPmJob: [{
|
689
|
+
type: Input
|
690
|
+
}], sendContactMeEmail: [{
|
691
|
+
type: Output
|
692
|
+
}] } });
|
693
|
+
|
694
|
+
var EmailType;
|
695
|
+
(function (EmailType) {
|
696
|
+
EmailType["ACCEPTED"] = "Accepted";
|
697
|
+
EmailType["SENDNEWDATES"] = "SendNewDates";
|
698
|
+
EmailType["CANCEL"] = "Cancel";
|
699
|
+
EmailType["REPORTANDCANCEL"] = "ReportAndCancel";
|
700
|
+
})(EmailType || (EmailType = {}));
|
701
|
+
|
702
|
+
var EventStatus;
|
703
|
+
(function (EventStatus) {
|
704
|
+
EventStatus["ASSIGNEDANC"] = "Assigned ANC";
|
705
|
+
EventStatus["ASSIGNED"] = "Assigned";
|
706
|
+
EventStatus["ASSIGNEDPINNED"] = "Assigned Pinned";
|
707
|
+
EventStatus["COMPLETE"] = "Complete";
|
708
|
+
EventStatus["INCOMPLETE"] = "Incomplete";
|
709
|
+
})(EventStatus || (EventStatus = {}));
|
710
|
+
|
711
|
+
var PmJobStatus;
|
712
|
+
(function (PmJobStatus) {
|
713
|
+
PmJobStatus["NEW"] = "new";
|
714
|
+
PmJobStatus["ACCEPTED"] = "accepted";
|
715
|
+
PmJobStatus["CLOSED"] = "closed";
|
716
|
+
PmJobStatus["Late"] = "late";
|
717
|
+
PmJobStatus["OPEN"] = "open";
|
718
|
+
PmJobStatus["WAITING"] = "waiting";
|
719
|
+
PmJobStatus["DONE"] = "done";
|
720
|
+
PmJobStatus["VALIDATED"] = "validated";
|
721
|
+
})(PmJobStatus || (PmJobStatus = {}));
|
722
|
+
|
723
|
+
class ShowLinksComponent {
|
724
|
+
constructor() {
|
725
|
+
this.closeShowLinks = new EventEmitter();
|
726
|
+
this.detailedPmJobLinkedList = [];
|
727
|
+
this.header = "header";
|
728
|
+
this.header = "PM : " + this.selectedWorkorderId;
|
729
|
+
}
|
730
|
+
close() {
|
731
|
+
this.closeShowLinks.emit(false);
|
732
|
+
}
|
733
|
+
applyFilterGlobal($event, stringVal) {
|
734
|
+
this.dt?.filterGlobal($event.target.value, stringVal);
|
735
|
+
}
|
736
|
+
transformStatus(status) {
|
737
|
+
switch (status) {
|
738
|
+
case PmJobStatus.NEW: return this.status.new;
|
739
|
+
case PmJobStatus.ACCEPTED: return this.status.accepted;
|
740
|
+
case PmJobStatus.CLOSED: return this.status.closed;
|
741
|
+
case PmJobStatus.Late: return this.status.late;
|
742
|
+
case PmJobStatus.OPEN: return this.status.open;
|
743
|
+
case PmJobStatus.WAITING: return this.status.waiting;
|
744
|
+
case PmJobStatus.DONE: return this.status.done;
|
745
|
+
case PmJobStatus.VALIDATED: return this.status.validated;
|
746
|
+
default: return "Erreur";
|
747
|
+
}
|
748
|
+
}
|
749
|
+
getStatusTooltip(status) {
|
750
|
+
switch (status) {
|
751
|
+
case PmJobStatus.ACCEPTED: return this.status.acceptedTooltip;
|
752
|
+
case PmJobStatus.NEW: return this.status.newTooltip;
|
753
|
+
case PmJobStatus.CLOSED: return this.status.closedTooltip;
|
754
|
+
case PmJobStatus.Late: return this.status.lateTooltip;
|
755
|
+
case PmJobStatus.OPEN: return this.status.openTooltip;
|
756
|
+
case PmJobStatus.WAITING: return this.status.waitingTooltip;
|
757
|
+
case PmJobStatus.DONE: return this.status.doneTooltip;
|
758
|
+
case PmJobStatus.VALIDATED: return this.status.validatedTooltip;
|
759
|
+
default: return "Erreur";
|
760
|
+
}
|
761
|
+
}
|
762
|
+
}
|
763
|
+
ShowLinksComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ShowLinksComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
764
|
+
ShowLinksComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: ShowLinksComponent, selector: "app-show-links", inputs: { displayShowLinks: "displayShowLinks", detailedPmJobLinkedList: "detailedPmJobLinkedList", selectedWorkorderId: "selectedWorkorderId", globaltranslate: "globaltranslate", translate: "translate", status: "status" }, outputs: { closeShowLinks: "closeShowLinks" }, viewQueries: [{ propertyName: "dt", first: true, predicate: ["dt"], descendants: true }], ngImport: i0, template: "<p-dialog [header]=\"translate.titleShowLinks+ selectedWorkorderId \" [(visible)]=\"displayShowLinks\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"close()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n <p-table #dt [value]=\"detailedPmJobLinkedList\" responsiveLayout=\"stack\" [rows]=\"5\" [showCurrentPageReport]=\"true\" [rowsPerPageOptions]=\"[5,10,25,50]\" [paginator]=\"true\" [globalFilterFields]=\"['systemId','pmJob.caseId','systemName','pmJob.workorderId','pmJob.startDateTime','pmJob.endDateTime','pmJob.case_type','pmJob.case_category','status']\"\r\n [rowHover]=\"true\" dataKey=\"id\" [currentPageReportTemplate]=\"globaltranslate.countPages\">\r\n <ng-template pTemplate=\"caption\">\r\n <div>\r\n <span class=\"p-input-icon-left\">\r\n <i class=\"pi pi-search\"></i>\r\n <input pInputText type=\"text\" (input)=\"applyFilterGlobal($event, 'contains')\"\r\n [placeholder]=\"globaltranslate.search\" />\r\n </span>\r\n </div>\r\n </ng-template>\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <th pSortableColumn=\"systemName\">{{translate.maintenanceList.system}}\r\n <p-sortIcon field=\"systemId\"></p-sortIcon>\r\n <th pSortableColumn=\"systemId\">System Id\r\n <p-sortIcon field=\"systemName\"></p-sortIcon>\r\n <th pSortableColumn=\"workorderId\">{{translate.maintenanceList.workOrder}}\r\n <p-sortIcon field=\"workorderId\"></p-sortIcon>\r\n <th pSortableColumn=\"startDateTime\">{{translate.maintenanceList.startDate}}\r\n <p-sortIcon field=\"startDateTime\"></p-sortIcon>\r\n <th pSortableColumn=\"status\">{{translate.maintenanceList.status}}\r\n <p-sortIcon field=\"status\"></p-sortIcon>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-product let-columns=\"columns\">\r\n <tr>\r\n <td>{{product.systemName }}</td>\r\n <td>{{product.systemId }}</td>\r\n <td>{{product.pmJob.workorderId }}</td>\r\n <td>{{product.pmJob.startDateTime | substring :0:10 }}</td>\r\n\r\n <td><span [class]=\"'product-status status-' + product.status\" [pTooltip]=\"getStatusTooltip(product.status)\">{{transformStatus(product.status) }}</span>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"summary\">\r\n <div class=\"p-d-flex p-ai-center p-jc-between\">\r\n {{globaltranslate.count}} {{detailedPmJobLinkedList ? detailedPmJobLinkedList.length : 0 }} {{globaltranslate.elements}}.\r\n </div>\r\n </ng-template>\r\n </p-table>\r\n\r\n</p-dialog>", styles: [""], dependencies: [{ kind: "component", type: i1$2.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "virtualRowHeight", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["selectAllChange", "selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$2.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "component", type: i1$2.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "directive", type: i3.InputText, selector: "[pInputText]" }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i5.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: SubstringPipe, name: "substring" }] });
|
765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: ShowLinksComponent, decorators: [{
|
766
|
+
type: Component,
|
767
|
+
args: [{ selector: 'app-show-links', template: "<p-dialog [header]=\"translate.titleShowLinks+ selectedWorkorderId \" [(visible)]=\"displayShowLinks\" [modal]=\"true\" [style]=\"{width: '50vw'}\" (onHide)=\"close()\" [maximizable]=\"true\" [baseZIndex]=\"10000\" [draggable]=\"false\" [resizable]=\"false\">\r\n <p-table #dt [value]=\"detailedPmJobLinkedList\" responsiveLayout=\"stack\" [rows]=\"5\" [showCurrentPageReport]=\"true\" [rowsPerPageOptions]=\"[5,10,25,50]\" [paginator]=\"true\" [globalFilterFields]=\"['systemId','pmJob.caseId','systemName','pmJob.workorderId','pmJob.startDateTime','pmJob.endDateTime','pmJob.case_type','pmJob.case_category','status']\"\r\n [rowHover]=\"true\" dataKey=\"id\" [currentPageReportTemplate]=\"globaltranslate.countPages\">\r\n <ng-template pTemplate=\"caption\">\r\n <div>\r\n <span class=\"p-input-icon-left\">\r\n <i class=\"pi pi-search\"></i>\r\n <input pInputText type=\"text\" (input)=\"applyFilterGlobal($event, 'contains')\"\r\n [placeholder]=\"globaltranslate.search\" />\r\n </span>\r\n </div>\r\n </ng-template>\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <th pSortableColumn=\"systemName\">{{translate.maintenanceList.system}}\r\n <p-sortIcon field=\"systemId\"></p-sortIcon>\r\n <th pSortableColumn=\"systemId\">System Id\r\n <p-sortIcon field=\"systemName\"></p-sortIcon>\r\n <th pSortableColumn=\"workorderId\">{{translate.maintenanceList.workOrder}}\r\n <p-sortIcon field=\"workorderId\"></p-sortIcon>\r\n <th pSortableColumn=\"startDateTime\">{{translate.maintenanceList.startDate}}\r\n <p-sortIcon field=\"startDateTime\"></p-sortIcon>\r\n <th pSortableColumn=\"status\">{{translate.maintenanceList.status}}\r\n <p-sortIcon field=\"status\"></p-sortIcon>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-product let-columns=\"columns\">\r\n <tr>\r\n <td>{{product.systemName }}</td>\r\n <td>{{product.systemId }}</td>\r\n <td>{{product.pmJob.workorderId }}</td>\r\n <td>{{product.pmJob.startDateTime | substring :0:10 }}</td>\r\n\r\n <td><span [class]=\"'product-status status-' + product.status\" [pTooltip]=\"getStatusTooltip(product.status)\">{{transformStatus(product.status) }}</span>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"summary\">\r\n <div class=\"p-d-flex p-ai-center p-jc-between\">\r\n {{globaltranslate.count}} {{detailedPmJobLinkedList ? detailedPmJobLinkedList.length : 0 }} {{globaltranslate.elements}}.\r\n </div>\r\n </ng-template>\r\n </p-table>\r\n\r\n</p-dialog>" }]
|
768
|
+
}], ctorParameters: function () { return []; }, propDecorators: { dt: [{
|
769
|
+
type: ViewChild,
|
770
|
+
args: ['dt']
|
771
|
+
}], displayShowLinks: [{
|
772
|
+
type: Input
|
773
|
+
}], closeShowLinks: [{
|
774
|
+
type: Output
|
775
|
+
}], detailedPmJobLinkedList: [{
|
776
|
+
type: Input
|
777
|
+
}], selectedWorkorderId: [{
|
778
|
+
type: Input
|
779
|
+
}], globaltranslate: [{
|
780
|
+
type: Input
|
781
|
+
}], translate: [{
|
782
|
+
type: Input
|
783
|
+
}], status: [{
|
784
|
+
type: Input
|
785
|
+
}] } });
|
786
|
+
|
787
|
+
class MaintenanceListComponent {
|
788
|
+
constructor(messageService) {
|
789
|
+
this.messageService = messageService;
|
790
|
+
this.maintenanceList = [];
|
791
|
+
this.pmJobList = [];
|
792
|
+
this.displayConfirmedDateInfo = false;
|
793
|
+
//@Output() refreshMaintenanceList = new EventEmitter<boolean>();
|
794
|
+
this.emitForUpdate = new EventEmitter();
|
795
|
+
this.emitForAlternativeDates = new EventEmitter();
|
796
|
+
this.pmJobLinkedList = [];
|
797
|
+
this.detailedPmJobLinkedList = [];
|
798
|
+
this.alternativeDatesSelected = [];
|
799
|
+
this.displaycontactSupport = false;
|
800
|
+
this.displayConfirmValidatedToWaiting = false;
|
801
|
+
this.displayConfirmDialog = false;
|
802
|
+
this.displayShowLinks = false;
|
803
|
+
this.displayAnotherDate = false;
|
804
|
+
this.isLinks = false;
|
805
|
+
this.isProposedDate = true;
|
806
|
+
}
|
807
|
+
ngOnChanges(changes) {
|
808
|
+
}
|
809
|
+
ngOnDestroy() {
|
810
|
+
if (this.updatePmSubscription) {
|
811
|
+
this.updatePmSubscription.unsubscribe();
|
812
|
+
}
|
813
|
+
if (this.alternativeDatesSubscription) {
|
814
|
+
this.alternativeDatesSubscription.unsubscribe();
|
815
|
+
}
|
816
|
+
}
|
817
|
+
applyFilterGlobal($event, stringVal) {
|
818
|
+
this.dt?.filterGlobal($event.target.value, stringVal);
|
819
|
+
}
|
820
|
+
selectElement(element) {
|
821
|
+
this.alternativeDatesList = [];
|
822
|
+
if (element) {
|
823
|
+
this.pmSelectedStatus = element.status;
|
824
|
+
}
|
825
|
+
if (element.pmJob.groupList) {
|
826
|
+
this.isLinks = element.pmJob.groupList?.length > 0 ? true : false;
|
827
|
+
}
|
828
|
+
this.selectedWorkorderId = element.pmJob.workorderId;
|
829
|
+
this.maintenanceSelected = element;
|
830
|
+
if (!this.isAlreadyScheduled) {
|
831
|
+
this.getAlternativeDates(element.pmJob);
|
832
|
+
this.startDateTime = this.maintenanceSelected.pmJob.startDateTime;
|
833
|
+
this.endDateTime = this.maintenanceSelected.pmJob.endDateTime;
|
834
|
+
}
|
835
|
+
this.getLinkedPmJob();
|
836
|
+
}
|
837
|
+
confirmDialog() {
|
838
|
+
this.isProposedDate = true;
|
839
|
+
this.op.hide();
|
840
|
+
this.displayConfirmDialog = true;
|
841
|
+
}
|
842
|
+
closeConfirmDialog(confirm) {
|
843
|
+
this.displayConfirmDialog = false;
|
844
|
+
if (confirm) {
|
845
|
+
if (!this.isProposedDate) {
|
846
|
+
this.updateAlternativeDate();
|
847
|
+
}
|
848
|
+
else {
|
849
|
+
this.updateProposedDate();
|
850
|
+
}
|
851
|
+
this.emailType = EmailType.ACCEPTED;
|
852
|
+
this.updatePmJob();
|
853
|
+
}
|
854
|
+
}
|
855
|
+
proposeAnotherDate() {
|
856
|
+
this.isProposedDate = false;
|
857
|
+
this.op.hide();
|
858
|
+
this.displayAnotherDate = true;
|
859
|
+
}
|
860
|
+
contactSupport() {
|
861
|
+
this.op.hide();
|
862
|
+
this.displaycontactSupport = true;
|
863
|
+
}
|
864
|
+
closeContactSupport() {
|
865
|
+
this.displaycontactSupport = false;
|
866
|
+
this.showDate = false;
|
867
|
+
}
|
868
|
+
showLinks() {
|
869
|
+
this.op.hide();
|
870
|
+
this.displayShowLinks = true;
|
871
|
+
}
|
872
|
+
closeShowLinks() {
|
873
|
+
this.displayShowLinks = false;
|
874
|
+
}
|
875
|
+
closeConfirmedDateInfo() {
|
876
|
+
this.displayConfirmedDateInfo = false;
|
877
|
+
}
|
878
|
+
acceptDate(alternativeDates) {
|
879
|
+
this.displayConfirmDialog = true;
|
880
|
+
this.alternativeDatesSelected = alternativeDates;
|
881
|
+
this.findDatesSelected();
|
882
|
+
}
|
883
|
+
findDatesSelected() {
|
884
|
+
this.alternativeDatesSelected.forEach((alternativeDate) => {
|
885
|
+
if (alternativeDate.selected === "Yes") {
|
886
|
+
this.startDateTime = alternativeDate.startDateTime;
|
887
|
+
this.endDateTime = alternativeDate.endDateTime;
|
888
|
+
return;
|
889
|
+
}
|
890
|
+
});
|
891
|
+
}
|
892
|
+
closeAnotherDate(event) {
|
893
|
+
this.displayAnotherDate = false;
|
894
|
+
if (event === false) {
|
895
|
+
//alert('getOtherDates');
|
896
|
+
this.alreadyScheduledMsg = false;
|
897
|
+
this.op.hide();
|
898
|
+
this.displayConfirmValidatedToWaiting = true;
|
899
|
+
}
|
900
|
+
}
|
901
|
+
updatePmJob() {
|
902
|
+
this.pmJobList = [];
|
903
|
+
this.pmJobList.push(this.maintenanceSelected);
|
904
|
+
if (this.pmJobLinkedList.length > 0) {
|
905
|
+
this.pmJobLinkedList.forEach((pMJob) => {
|
906
|
+
this.pmJobList.push(pMJob);
|
907
|
+
});
|
908
|
+
}
|
909
|
+
this.callApiToUpdate();
|
910
|
+
}
|
911
|
+
editPm() {
|
912
|
+
this.alreadyScheduledMsg = true;
|
913
|
+
this.op.hide();
|
914
|
+
this.displayConfirmValidatedToWaiting = true;
|
915
|
+
if (this.maintenanceSelected.pmJob.customerAccepted === "Yes") {
|
916
|
+
this.startDateTime = this.maintenanceSelected.pmJob.startDateTime;
|
917
|
+
this.endDateTime = this.maintenanceSelected.pmJob.endDateTime;
|
918
|
+
}
|
919
|
+
else {
|
920
|
+
this.alternativeDatesSelected = this.maintenanceSelected.pmJob.alternativeDates;
|
921
|
+
this.findDatesSelected();
|
922
|
+
}
|
923
|
+
}
|
924
|
+
closeConfirmDialogValidatedToWaiting(confirm) {
|
925
|
+
this.displayConfirmValidatedToWaiting = false;
|
926
|
+
if (confirm) {
|
927
|
+
this.validatedToWaitingUpdate();
|
928
|
+
}
|
929
|
+
}
|
930
|
+
validatedToWaitingUpdate() {
|
931
|
+
this.maintenanceSelected.pmJob.customObject = {};
|
932
|
+
this.maintenanceSelected.pmJob.customObject.customerWaiting = 'Yes';
|
933
|
+
this.pmJobLinkedList.forEach((item) => {
|
934
|
+
item.pmJob.customObject.customerWaiting = 'Yes';
|
935
|
+
});
|
936
|
+
this.emailType = this.alreadyScheduledMsg ? EmailType.REPORTANDCANCEL : EmailType.SENDNEWDATES;
|
937
|
+
this.updatePmJob();
|
938
|
+
}
|
939
|
+
updateProposedDate() {
|
940
|
+
this.maintenanceSelected.pmJob.customerAccepted = 'Yes';
|
941
|
+
this.maintenanceSelected.pmJob.eventStatus = EventStatus.ASSIGNEDANC;
|
942
|
+
this.pmJobLinkedList.forEach((item) => {
|
943
|
+
item.pmJob.customerAccepted = 'Yes';
|
944
|
+
item.pmJob.eventStatus = EventStatus.ASSIGNEDANC;
|
945
|
+
});
|
946
|
+
}
|
947
|
+
updateAlternativeDate() {
|
948
|
+
this.findDatesSelected();
|
949
|
+
this.maintenanceSelected.pmJob.alternativeDates = this.alternativeDatesSelected;
|
950
|
+
this.pmJobLinkedList.forEach((item) => {
|
951
|
+
item.pmJob.alternativeDates = this.alternativeDatesSelected;
|
952
|
+
item.pmJob.eventStatus = EventStatus.ASSIGNEDANC;
|
953
|
+
});
|
954
|
+
this.displayAnotherDate = false;
|
955
|
+
}
|
956
|
+
getAlternativeDates(pmJob) {
|
957
|
+
alert();
|
958
|
+
let pmJobReques = {};
|
959
|
+
pmJobReques.countrymodule = "France";
|
960
|
+
pmJobReques.pmJob = pmJob;
|
961
|
+
this.emitForAlternativeDates.emit(pmJob);
|
962
|
+
}
|
963
|
+
getLinkedPmJob() {
|
964
|
+
this.pmJobLinkedList = [];
|
965
|
+
this.detailedPmJobLinkedList = [];
|
966
|
+
if (this.maintenanceSelected.pmJob.groupList) {
|
967
|
+
this.maintenanceSelected.pmJob.groupList.forEach((linked) => {
|
968
|
+
this.maintenanceList.forEach((item) => {
|
969
|
+
if (linked.workorderId == item.pmJob.workorderId) {
|
970
|
+
this.pmJobLinkedList.push(item);
|
971
|
+
this.detailedPmJobLinkedList.push(item);
|
972
|
+
}
|
973
|
+
});
|
974
|
+
});
|
975
|
+
}
|
976
|
+
}
|
977
|
+
callApiToUpdate() {
|
978
|
+
let PmJobListForUpdate = {};
|
979
|
+
PmJobListForUpdate.pmJobList = this.pmJobList;
|
980
|
+
PmJobListForUpdate.emailType = this.emailType;
|
981
|
+
this.emitForUpdate.emit(PmJobListForUpdate);
|
982
|
+
}
|
983
|
+
transformStatus(status) {
|
984
|
+
switch (status) {
|
985
|
+
case PmJobStatus.NEW: return this.status.new;
|
986
|
+
case PmJobStatus.ACCEPTED: return this.status.accepted;
|
987
|
+
case PmJobStatus.CLOSED: return this.status.closed;
|
988
|
+
case PmJobStatus.Late: return this.status.late;
|
989
|
+
case PmJobStatus.OPEN: return this.status.open;
|
990
|
+
case PmJobStatus.WAITING: return this.status.waiting;
|
991
|
+
case PmJobStatus.DONE: return this.status.done;
|
992
|
+
case PmJobStatus.VALIDATED: return this.status.validated;
|
993
|
+
default: return "Erreur";
|
994
|
+
}
|
995
|
+
}
|
996
|
+
getStatusTooltip(status) {
|
997
|
+
switch (status) {
|
998
|
+
case PmJobStatus.ACCEPTED: return this.status.acceptedTooltip;
|
999
|
+
case PmJobStatus.NEW: return this.status.newTooltip;
|
1000
|
+
case PmJobStatus.CLOSED: return this.status.closedTooltip;
|
1001
|
+
case PmJobStatus.Late: return this.status.lateTooltip;
|
1002
|
+
case PmJobStatus.OPEN: return this.status.openTooltip;
|
1003
|
+
case PmJobStatus.WAITING: return this.status.waitingTooltip;
|
1004
|
+
case PmJobStatus.DONE: return this.status.doneTooltip;
|
1005
|
+
case PmJobStatus.VALIDATED: return this.status.validatedTooltip;
|
1006
|
+
default: return "Erreur";
|
1007
|
+
}
|
1008
|
+
}
|
1009
|
+
}
|
1010
|
+
MaintenanceListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaintenanceListComponent, deps: [{ token: i1$3.MessageService }], target: i0.ɵɵFactoryTarget.Component });
|
1011
|
+
MaintenanceListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.0", type: MaintenanceListComponent, selector: "awf-maintenance-list", inputs: { translate: "translate", globaltranslate: "globaltranslate", maintenanceList: "maintenanceList", pmJobList: "pmJobList", isAlreadyScheduled: "isAlreadyScheduled", displayConfirmedDateInfo: "displayConfirmedDateInfo", alternativeDatesList: "alternativeDatesList", status: "status" }, outputs: { emitForUpdate: "emitForUpdate", emitForAlternativeDates: "emitForAlternativeDates" }, providers: [MessageService, ConfirmationService], viewQueries: [{ propertyName: "dt", first: true, predicate: ["dt"], descendants: true }, { propertyName: "op", first: true, predicate: ["op"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<p-table #dt [value]=\"maintenanceList\" responsiveLayout=\"stack\" [rows]=\"10\" [showCurrentPageReport]=\"true\" [rowsPerPageOptions]=\"[5,10,25,50]\" [paginator]=\"true\" [globalFilterFields]=\"['systemId','pmJob.caseId','systemName','pmJob.workorderId','pmJob.startDateTime','pmJob.endDateTime','pmJob.case_type','pmJob.case_category','status']\"\r\n [rowHover]=\"true\" dataKey=\"id\" [currentPageReportTemplate]=\"globaltranslate.countPages\">\r\n <ng-template pTemplate=\"caption\">\r\n <div>\r\n <span class=\"p-input-icon-left\">\r\n <i class=\"pi pi-search\"></i>\r\n <input pInputText type=\"text\" (input)=\"applyFilterGlobal($event, 'contains')\"\r\n [placeholder]=\"globaltranslate.search\" />\r\n </span>\r\n </div>\r\n </ng-template>\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <!-- <th pSortableColumn=\"caseId\">Case Id <p-sortIcon field=\"caseId\"></p-sortIcon> -->\r\n <th pSortableColumn=\"systemName\">{{translate.maintenanceList.system}}\r\n <p-sortIcon field=\"systemId\"></p-sortIcon>\r\n <th pSortableColumn=\"systemId\">System Id\r\n <p-sortIcon field=\"systemName\"></p-sortIcon>\r\n <th pSortableColumn=\"workorderId\">{{translate.maintenanceList.workOrder}}\r\n <p-sortIcon field=\"workorderId\"></p-sortIcon>\r\n <th pSortableColumn=\"startDateTime\">{{translate.maintenanceList.startDate}}\r\n <p-sortIcon field=\"startDateTime\"></p-sortIcon>\r\n <th pSortableColumn=\"endDateTime\">{{translate.maintenanceList.endDate}}\r\n <p-sortIcon field=\"endDateTime\"></p-sortIcon>\r\n <th pSortableColumn=\"case_type\">{{translate.maintenanceList.type}}\r\n <p-sortIcon field=\"case_type\"></p-sortIcon>\r\n <th pSortableColumn=\"case_category\">{{translate.maintenanceList.category}}\r\n <p-sortIcon field=\"case_category\"></p-sortIcon>\r\n <th pSortableColumn=\"status\">{{translate.maintenanceList.status}}\r\n <p-sortIcon field=\"status\"></p-sortIcon>\r\n <th pSortableColumn=\"status\" >{{translate.maintenanceList.NbrLinks}}\r\n <p-sortIcon field=\"status\"></p-sortIcon>\r\n <th> Action</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-product let-columns=\"columns\">\r\n <tr> \r\n <td>{{product.systemName }}</td>\r\n <td>{{product.systemId }}</td>\r\n <td>{{product.pmJob.workorderId }}</td>\r\n <td>{{product.pmJob.startDateTime | substring :0:10 }}</td>\r\n <td>{{product.pmJob.endDateTime | substring :0:10}}</td>\r\n <td>{{product.pmJob.caseType }}</td>\r\n <td>{{product.pmJob.caseCategory }}</td>\r\n <td><span [class]=\"'product-status status-' + product.status\" [pTooltip]=\"getStatusTooltip(product.status)\">{{transformStatus(product.status) }}</span>\r\n </td>\r\n <td *ngIf=\"product.pmJob.groupList.length>0 \"> <span class=\"circle\">{{product.pmJob.groupList.length }}</span> <i class=\"pi pi-link\" style=\"font-size: 1rem\"></i> </td>\r\n <td *ngIf=\"product.pmJob.groupList.length===0 \"> <span class=\"circlelinked\">{{product.pmJob.groupList.length }}</span> <i class=\"pi pi-link\" style=\"font-size: 1rem\"></i> </td>\r\n <td>\r\n <button pButton pRipple type=\"button\" label=\"\" icon=\"pi pi-calendar\" class=\"p-button-rounded\" #actualTarget (click)=\"selectElement(product)\" (click)=\"op.toggle($event)\" [disabled]=\"((product.status ==='late' || product.status ==='accepted') && !isAlreadyScheduled) || product.status ==='waiting'\"></button>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"summary\">\r\n <div class=\"p-d-flex p-ai-center p-jc-between\">\r\n {{globaltranslate.count}} {{maintenanceList ? maintenanceList.length : 0 }} {{globaltranslate.elements}}.\r\n </div>\r\n </ng-template>\r\n</p-table>\r\n\r\n<p-toast position=\"top-center\"></p-toast>\r\n<p-overlayPanel #op [dismissable]=\"true\" [showCloseIcon]=\"false\" [showTransitionOptions]=\"'0ms'\" [hideTransitionOptions]=\"'0ms'\">\r\n <ng-template pTemplate>\r\n\r\n <button style=\"width: 100%;\" *ngIf=\"!isAlreadyScheduled\" icon=\"pi pi-thumbs-up\" (click)=\"confirmDialog()\" [label]=\"translate.maintenanceList.confirmDate\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\">\r\n </button>\r\n <hr *ngIf=\"!isAlreadyScheduled\">\r\n <button style=\"width: 100%;\" *ngIf=\"!isAlreadyScheduled && (alternativeDatesList.length>0) \" icon=\"pi pi-calendar-plus\" (click)=\"proposeAnotherDate()\" [label]=\"translate.maintenanceList.chooseAnotherDate\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\"></button>\r\n <hr *ngIf=\"!isAlreadyScheduled && (alternativeDatesList.length>0) \">\r\n <button style=\"width: 100%;\" icon=\"pi pi-phone\" (click)=\"contactSupport()\" [label]=\"translate.maintenanceList.contactSuppor\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\"></button>\r\n <hr *ngIf=\" isLinks\">\r\n <button style=\"width: 100%;\" icon=\"pi pi-link\" *ngIf=\" isLinks\" (click)=\"showLinks()\" [label]=\"translate.maintenanceList.showLinks\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\"></button>\r\n <hr *ngIf=\"isAlreadyScheduled && pmSelectedStatus ==='validated'\">\r\n <button style=\"width: 100%;\" *ngIf=\"isAlreadyScheduled && pmSelectedStatus ==='validated'\" icon=\"pi pi-pencil\" (click)=\"editPm()\" [label]=\"translate.maintenanceList.cancel\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\">\r\n </button>\r\n </ng-template>\r\n</p-overlayPanel>\r\n\r\n<div *ngIf=\"displaycontactSupport\">\r\n <app-contact-support [detailedPmJob] =\"maintenanceSelected\" [globaltranslate]=\"globaltranslate\" [translate]=\"translate.contactSupport\" [displaycontactSupport]=\"displaycontactSupport\" [showDate]=\"showDate\" (closeContactSupportPopup)=\"closeContactSupport()\"></app-contact-support>\r\n</div>\r\n<div *ngIf=\"displayConfirmDialog\">\r\n <app-confirm-dialog [detailedPmJobLinkedList]=\"detailedPmJobLinkedList\" [isProposedDate]=\"isProposedDate\" [globaltranslate]=\"globaltranslate\" [translate]=\"translate.confirmDialog\"\r\n [startDateTime]=\"startDateTime\" [endDateTime]=\"endDateTime\" [displayConfirmDialog]=\"displayConfirmDialog\" (closeConfirmDialog)=\"closeConfirmDialog($event)\">\r\n </app-confirm-dialog>\r\n</div>\r\n<div *ngIf=\"displayConfirmValidatedToWaiting\">\r\n <app-confirm-dialog-validated-to-waiting [detailedPmJobLinkedList]=\"detailedPmJobLinkedList\" [alreadyScheduledMsg]=\"alreadyScheduledMsg\" [globaltranslate]=\"globaltranslate\" [translate]=\"translate.confirmValidatedToWaitingDialog\"\r\n [startDateTime]=\"startDateTime\" [endDateTime]=\"endDateTime\" [displayConfirmValidatedToWaiting]=\"displayConfirmValidatedToWaiting\" (closeConfirmDialogValidatedToWaiting)=\"closeConfirmDialogValidatedToWaiting($event)\">\r\n </app-confirm-dialog-validated-to-waiting>\r\n</div>\r\n<div *ngIf=\"displayConfirmedDateInfo\">\r\n <app-confirmed-date-information [globaltranslate]=\"globaltranslate\" [translate]=\"translate.confirmDateInformation\" [startDateTime]=\"startDateTime\" [endDateTime]=\"endDateTime\" [displayConfirmedDateInfo]=\"displayConfirmedDateInfo\" (closeConfirmedDateInfo)=\"closeConfirmedDateInfo()\"></app-confirmed-date-information>\r\n</div>\r\n<div *ngIf=\"displayAnotherDate && alternativeDatesList\">\r\n <app-choose-another-date [globaltranslate]=\"globaltranslate\" [translate]=\"translate.chooseAnotherDate\" [alternativeDatesList]=\"alternativeDatesList\" [displayAnotherDate]=\"displayAnotherDate\" (closeAnotherDate)=\"closeAnotherDate($event)\" (acceptDate)=\"acceptDate($event)\">\r\n </app-choose-another-date>\r\n</div>\r\n<div *ngIf=\"displayShowLinks && selectedWorkorderId\">\r\n <app-show-links [status]=\"status\" [selectedWorkorderId]=\"selectedWorkorderId\" [translate]=\"translate\" [globaltranslate]=\"globaltranslate\" [displayShowLinks]=\"displayShowLinks\" (closeShowLinks)=\"closeShowLinks()\" [detailedPmJobLinkedList]=\"detailedPmJobLinkedList\"></app-show-links>\r\n</div>\r\n\r\n\r\n", styles: ["span.circle{background:#f86359;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;color:#f8f8f8;display:inline-block;font-weight:700;line-height:20px;margin-right:5px;text-align:center;width:20px}span.circlelinked{background:#80a161;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;color:#fff;display:inline-block;font-weight:700;line-height:20px;margin-right:5px;text-align:center;width:20px}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$2.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "virtualRowHeight", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll"], outputs: ["selectAllChange", "selectionChange", "contextMenuSelectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i1$3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i1$2.SortableColumn, selector: "[pSortableColumn]", inputs: ["pSortableColumn", "pSortableColumnDisabled"] }, { kind: "component", type: i1$2.SortIcon, selector: "p-sortIcon", inputs: ["field"] }, { kind: "directive", type: i3.InputText, selector: "[pInputText]" }, { kind: "component", type: i3$1.Toast, selector: "p-toast", inputs: ["key", "autoZIndex", "baseZIndex", "style", "styleClass", "position", "preventOpenDuplicates", "preventDuplicates", "showTransformOptions", "hideTransformOptions", "showTransitionOptions", "hideTransitionOptions", "breakpoints"], outputs: ["onClose"] }, { kind: "directive", type: i3$2.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i7$1.OverlayPanel, selector: "p-overlayPanel", inputs: ["dismissable", "showCloseIcon", "style", "styleClass", "appendTo", "autoZIndex", "ariaCloseLabel", "baseZIndex", "focusOnShow", "showTransitionOptions", "hideTransitionOptions"], outputs: ["onShow", "onHide"] }, { kind: "directive", type: i4$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }, { kind: "component", type: ChooseAnotherDateComponent, selector: "app-choose-another-date", inputs: ["displayAnotherDate", "globaltranslate", "translate", "alternativeDatesList"], outputs: ["closeAnotherDate", "acceptDate"] }, { kind: "component", type: ConfirmDialogComponent, selector: "app-confirm-dialog", inputs: ["displayConfirmDialog", "startDateTime", "endDateTime", "globaltranslate", "translate", "isProposedDate", "detailedPmJobLinkedList"], outputs: ["closeConfirmDialog"] }, { kind: "component", type: ConfirmDialogValidatedToWaitingComponent, selector: "app-confirm-dialog-validated-to-waiting", inputs: ["displayConfirmValidatedToWaiting", "startDateTime", "endDateTime", "globaltranslate", "translate", "alreadyScheduledMsg", "detailedPmJobLinkedList"], outputs: ["closeConfirmDialogValidatedToWaiting"] }, { kind: "component", type: ConfirmedDateInformationComponent, selector: "app-confirmed-date-information", inputs: ["displayConfirmedDateInfo", "startDateTime", "endDateTime", "globaltranslate", "translate"], outputs: ["closeConfirmedDateInfo"] }, { kind: "component", type: ContactSupportComponent, selector: "app-contact-support", inputs: ["displaycontactSupport", "globaltranslate", "translate", "showDate", "detailedPmJob"], outputs: ["closeContactSupportPopup", "sendContactMeEmail"] }, { kind: "component", type: ShowLinksComponent, selector: "app-show-links", inputs: ["displayShowLinks", "detailedPmJobLinkedList", "selectedWorkorderId", "globaltranslate", "translate", "status"], outputs: ["closeShowLinks"] }, { kind: "pipe", type: SubstringPipe, name: "substring" }] });
|
1012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: MaintenanceListComponent, decorators: [{
|
1013
|
+
type: Component,
|
1014
|
+
args: [{ selector: 'awf-maintenance-list', providers: [MessageService, ConfirmationService], template: "<p-table #dt [value]=\"maintenanceList\" responsiveLayout=\"stack\" [rows]=\"10\" [showCurrentPageReport]=\"true\" [rowsPerPageOptions]=\"[5,10,25,50]\" [paginator]=\"true\" [globalFilterFields]=\"['systemId','pmJob.caseId','systemName','pmJob.workorderId','pmJob.startDateTime','pmJob.endDateTime','pmJob.case_type','pmJob.case_category','status']\"\r\n [rowHover]=\"true\" dataKey=\"id\" [currentPageReportTemplate]=\"globaltranslate.countPages\">\r\n <ng-template pTemplate=\"caption\">\r\n <div>\r\n <span class=\"p-input-icon-left\">\r\n <i class=\"pi pi-search\"></i>\r\n <input pInputText type=\"text\" (input)=\"applyFilterGlobal($event, 'contains')\"\r\n [placeholder]=\"globaltranslate.search\" />\r\n </span>\r\n </div>\r\n </ng-template>\r\n <ng-template pTemplate=\"header\" let-columns>\r\n <tr>\r\n <!-- <th pSortableColumn=\"caseId\">Case Id <p-sortIcon field=\"caseId\"></p-sortIcon> -->\r\n <th pSortableColumn=\"systemName\">{{translate.maintenanceList.system}}\r\n <p-sortIcon field=\"systemId\"></p-sortIcon>\r\n <th pSortableColumn=\"systemId\">System Id\r\n <p-sortIcon field=\"systemName\"></p-sortIcon>\r\n <th pSortableColumn=\"workorderId\">{{translate.maintenanceList.workOrder}}\r\n <p-sortIcon field=\"workorderId\"></p-sortIcon>\r\n <th pSortableColumn=\"startDateTime\">{{translate.maintenanceList.startDate}}\r\n <p-sortIcon field=\"startDateTime\"></p-sortIcon>\r\n <th pSortableColumn=\"endDateTime\">{{translate.maintenanceList.endDate}}\r\n <p-sortIcon field=\"endDateTime\"></p-sortIcon>\r\n <th pSortableColumn=\"case_type\">{{translate.maintenanceList.type}}\r\n <p-sortIcon field=\"case_type\"></p-sortIcon>\r\n <th pSortableColumn=\"case_category\">{{translate.maintenanceList.category}}\r\n <p-sortIcon field=\"case_category\"></p-sortIcon>\r\n <th pSortableColumn=\"status\">{{translate.maintenanceList.status}}\r\n <p-sortIcon field=\"status\"></p-sortIcon>\r\n <th pSortableColumn=\"status\" >{{translate.maintenanceList.NbrLinks}}\r\n <p-sortIcon field=\"status\"></p-sortIcon>\r\n <th> Action</th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-product let-columns=\"columns\">\r\n <tr> \r\n <td>{{product.systemName }}</td>\r\n <td>{{product.systemId }}</td>\r\n <td>{{product.pmJob.workorderId }}</td>\r\n <td>{{product.pmJob.startDateTime | substring :0:10 }}</td>\r\n <td>{{product.pmJob.endDateTime | substring :0:10}}</td>\r\n <td>{{product.pmJob.caseType }}</td>\r\n <td>{{product.pmJob.caseCategory }}</td>\r\n <td><span [class]=\"'product-status status-' + product.status\" [pTooltip]=\"getStatusTooltip(product.status)\">{{transformStatus(product.status) }}</span>\r\n </td>\r\n <td *ngIf=\"product.pmJob.groupList.length>0 \"> <span class=\"circle\">{{product.pmJob.groupList.length }}</span> <i class=\"pi pi-link\" style=\"font-size: 1rem\"></i> </td>\r\n <td *ngIf=\"product.pmJob.groupList.length===0 \"> <span class=\"circlelinked\">{{product.pmJob.groupList.length }}</span> <i class=\"pi pi-link\" style=\"font-size: 1rem\"></i> </td>\r\n <td>\r\n <button pButton pRipple type=\"button\" label=\"\" icon=\"pi pi-calendar\" class=\"p-button-rounded\" #actualTarget (click)=\"selectElement(product)\" (click)=\"op.toggle($event)\" [disabled]=\"((product.status ==='late' || product.status ==='accepted') && !isAlreadyScheduled) || product.status ==='waiting'\"></button>\r\n </td>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"summary\">\r\n <div class=\"p-d-flex p-ai-center p-jc-between\">\r\n {{globaltranslate.count}} {{maintenanceList ? maintenanceList.length : 0 }} {{globaltranslate.elements}}.\r\n </div>\r\n </ng-template>\r\n</p-table>\r\n\r\n<p-toast position=\"top-center\"></p-toast>\r\n<p-overlayPanel #op [dismissable]=\"true\" [showCloseIcon]=\"false\" [showTransitionOptions]=\"'0ms'\" [hideTransitionOptions]=\"'0ms'\">\r\n <ng-template pTemplate>\r\n\r\n <button style=\"width: 100%;\" *ngIf=\"!isAlreadyScheduled\" icon=\"pi pi-thumbs-up\" (click)=\"confirmDialog()\" [label]=\"translate.maintenanceList.confirmDate\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\">\r\n </button>\r\n <hr *ngIf=\"!isAlreadyScheduled\">\r\n <button style=\"width: 100%;\" *ngIf=\"!isAlreadyScheduled && (alternativeDatesList.length>0) \" icon=\"pi pi-calendar-plus\" (click)=\"proposeAnotherDate()\" [label]=\"translate.maintenanceList.chooseAnotherDate\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\"></button>\r\n <hr *ngIf=\"!isAlreadyScheduled && (alternativeDatesList.length>0) \">\r\n <button style=\"width: 100%;\" icon=\"pi pi-phone\" (click)=\"contactSupport()\" [label]=\"translate.maintenanceList.contactSuppor\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\"></button>\r\n <hr *ngIf=\" isLinks\">\r\n <button style=\"width: 100%;\" icon=\"pi pi-link\" *ngIf=\" isLinks\" (click)=\"showLinks()\" [label]=\"translate.maintenanceList.showLinks\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\"></button>\r\n <hr *ngIf=\"isAlreadyScheduled && pmSelectedStatus ==='validated'\">\r\n <button style=\"width: 100%;\" *ngIf=\"isAlreadyScheduled && pmSelectedStatus ==='validated'\" icon=\"pi pi-pencil\" (click)=\"editPm()\" [label]=\"translate.maintenanceList.cancel\" class=\"p-button-text p-button-raised\" pButton pRipple type=\"button\">\r\n </button>\r\n </ng-template>\r\n</p-overlayPanel>\r\n\r\n<div *ngIf=\"displaycontactSupport\">\r\n <app-contact-support [detailedPmJob] =\"maintenanceSelected\" [globaltranslate]=\"globaltranslate\" [translate]=\"translate.contactSupport\" [displaycontactSupport]=\"displaycontactSupport\" [showDate]=\"showDate\" (closeContactSupportPopup)=\"closeContactSupport()\"></app-contact-support>\r\n</div>\r\n<div *ngIf=\"displayConfirmDialog\">\r\n <app-confirm-dialog [detailedPmJobLinkedList]=\"detailedPmJobLinkedList\" [isProposedDate]=\"isProposedDate\" [globaltranslate]=\"globaltranslate\" [translate]=\"translate.confirmDialog\"\r\n [startDateTime]=\"startDateTime\" [endDateTime]=\"endDateTime\" [displayConfirmDialog]=\"displayConfirmDialog\" (closeConfirmDialog)=\"closeConfirmDialog($event)\">\r\n </app-confirm-dialog>\r\n</div>\r\n<div *ngIf=\"displayConfirmValidatedToWaiting\">\r\n <app-confirm-dialog-validated-to-waiting [detailedPmJobLinkedList]=\"detailedPmJobLinkedList\" [alreadyScheduledMsg]=\"alreadyScheduledMsg\" [globaltranslate]=\"globaltranslate\" [translate]=\"translate.confirmValidatedToWaitingDialog\"\r\n [startDateTime]=\"startDateTime\" [endDateTime]=\"endDateTime\" [displayConfirmValidatedToWaiting]=\"displayConfirmValidatedToWaiting\" (closeConfirmDialogValidatedToWaiting)=\"closeConfirmDialogValidatedToWaiting($event)\">\r\n </app-confirm-dialog-validated-to-waiting>\r\n</div>\r\n<div *ngIf=\"displayConfirmedDateInfo\">\r\n <app-confirmed-date-information [globaltranslate]=\"globaltranslate\" [translate]=\"translate.confirmDateInformation\" [startDateTime]=\"startDateTime\" [endDateTime]=\"endDateTime\" [displayConfirmedDateInfo]=\"displayConfirmedDateInfo\" (closeConfirmedDateInfo)=\"closeConfirmedDateInfo()\"></app-confirmed-date-information>\r\n</div>\r\n<div *ngIf=\"displayAnotherDate && alternativeDatesList\">\r\n <app-choose-another-date [globaltranslate]=\"globaltranslate\" [translate]=\"translate.chooseAnotherDate\" [alternativeDatesList]=\"alternativeDatesList\" [displayAnotherDate]=\"displayAnotherDate\" (closeAnotherDate)=\"closeAnotherDate($event)\" (acceptDate)=\"acceptDate($event)\">\r\n </app-choose-another-date>\r\n</div>\r\n<div *ngIf=\"displayShowLinks && selectedWorkorderId\">\r\n <app-show-links [status]=\"status\" [selectedWorkorderId]=\"selectedWorkorderId\" [translate]=\"translate\" [globaltranslate]=\"globaltranslate\" [displayShowLinks]=\"displayShowLinks\" (closeShowLinks)=\"closeShowLinks()\" [detailedPmJobLinkedList]=\"detailedPmJobLinkedList\"></app-show-links>\r\n</div>\r\n\r\n\r\n", styles: ["span.circle{background:#f86359;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;color:#f8f8f8;display:inline-block;font-weight:700;line-height:20px;margin-right:5px;text-align:center;width:20px}span.circlelinked{background:#80a161;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;color:#fff;display:inline-block;font-weight:700;line-height:20px;margin-right:5px;text-align:center;width:20px}\n"] }]
|
1015
|
+
}], ctorParameters: function () { return [{ type: i1$3.MessageService }]; }, propDecorators: { dt: [{
|
1016
|
+
type: ViewChild,
|
1017
|
+
args: ['dt']
|
1018
|
+
}], op: [{
|
1019
|
+
type: ViewChild,
|
1020
|
+
args: ['op']
|
1021
|
+
}], translate: [{
|
1022
|
+
type: Input
|
1023
|
+
}], globaltranslate: [{
|
1024
|
+
type: Input
|
1025
|
+
}], maintenanceList: [{
|
1026
|
+
type: Input
|
1027
|
+
}], pmJobList: [{
|
1028
|
+
type: Input
|
1029
|
+
}], isAlreadyScheduled: [{
|
1030
|
+
type: Input
|
1031
|
+
}], displayConfirmedDateInfo: [{
|
1032
|
+
type: Input
|
1033
|
+
}], alternativeDatesList: [{
|
1034
|
+
type: Input
|
1035
|
+
}], emitForUpdate: [{
|
1036
|
+
type: Output
|
1037
|
+
}], emitForAlternativeDates: [{
|
1038
|
+
type: Output
|
1039
|
+
}], status: [{
|
1040
|
+
type: Input
|
1041
|
+
}] } });
|
1042
|
+
|
327
1043
|
class GeModule {
|
328
1044
|
}
|
329
1045
|
GeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: GeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
330
|
-
GeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: GeModule, declarations: [SystemListComponent
|
1046
|
+
GeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.0", ngImport: i0, type: GeModule, declarations: [SystemListComponent,
|
1047
|
+
ContactComponent,
|
1048
|
+
ChooseAnotherDateComponent,
|
1049
|
+
ConfirmDialogComponent,
|
1050
|
+
ConfirmDialogValidatedToWaitingComponent,
|
1051
|
+
ConfirmedDateInformationComponent,
|
1052
|
+
ContactSupportComponent,
|
1053
|
+
MaintenanceListComponent,
|
1054
|
+
ShowLinksComponent], imports: [CommonModule,
|
331
1055
|
GeRoutingModule,
|
332
1056
|
TableModule,
|
333
1057
|
InputTextModule,
|
334
|
-
PipesModule
|
1058
|
+
PipesModule,
|
1059
|
+
ToastModule,
|
1060
|
+
InputTextareaModule,
|
1061
|
+
MultiSelectModule,
|
1062
|
+
FormsModule,
|
1063
|
+
ReactiveFormsModule,
|
1064
|
+
ProgressSpinnerModule,
|
1065
|
+
RadioButtonModule,
|
1066
|
+
CheckboxModule,
|
1067
|
+
SelectButtonModule,
|
1068
|
+
TooltipModule,
|
1069
|
+
OverlayPanelModule,
|
1070
|
+
CalendarModule,
|
1071
|
+
SliderModule,
|
1072
|
+
DialogModule,
|
1073
|
+
ConfirmPopupModule,
|
1074
|
+
ConfirmDialogModule,
|
1075
|
+
ContextMenuModule,
|
1076
|
+
DropdownModule,
|
1077
|
+
ButtonModule,
|
1078
|
+
ToolbarModule], exports: [SystemListComponent, ContactComponent, MaintenanceListComponent] });
|
335
1079
|
GeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: GeModule, imports: [CommonModule,
|
336
1080
|
GeRoutingModule,
|
337
1081
|
TableModule,
|
338
1082
|
InputTextModule,
|
339
|
-
PipesModule
|
1083
|
+
PipesModule,
|
1084
|
+
ToastModule,
|
1085
|
+
InputTextareaModule,
|
1086
|
+
MultiSelectModule,
|
1087
|
+
FormsModule,
|
1088
|
+
ReactiveFormsModule,
|
1089
|
+
ProgressSpinnerModule,
|
1090
|
+
RadioButtonModule,
|
1091
|
+
CheckboxModule,
|
1092
|
+
SelectButtonModule,
|
1093
|
+
TooltipModule,
|
1094
|
+
OverlayPanelModule,
|
1095
|
+
CalendarModule,
|
1096
|
+
SliderModule,
|
1097
|
+
DialogModule,
|
1098
|
+
ConfirmPopupModule,
|
1099
|
+
ConfirmDialogModule,
|
1100
|
+
ContextMenuModule,
|
1101
|
+
DropdownModule,
|
1102
|
+
ButtonModule,
|
1103
|
+
ToolbarModule] });
|
340
1104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: GeModule, decorators: [{
|
341
1105
|
type: NgModule,
|
342
1106
|
args: [{
|
343
1107
|
declarations: [
|
344
1108
|
SystemListComponent,
|
1109
|
+
ContactComponent,
|
1110
|
+
ChooseAnotherDateComponent,
|
1111
|
+
ConfirmDialogComponent,
|
1112
|
+
ConfirmDialogValidatedToWaitingComponent,
|
1113
|
+
ConfirmedDateInformationComponent,
|
1114
|
+
ContactSupportComponent,
|
1115
|
+
MaintenanceListComponent,
|
1116
|
+
ShowLinksComponent
|
345
1117
|
],
|
346
1118
|
imports: [
|
347
1119
|
CommonModule,
|
348
1120
|
GeRoutingModule,
|
349
1121
|
TableModule,
|
350
1122
|
InputTextModule,
|
351
|
-
PipesModule
|
1123
|
+
PipesModule,
|
1124
|
+
ToastModule,
|
1125
|
+
InputTextareaModule,
|
1126
|
+
MultiSelectModule,
|
1127
|
+
FormsModule,
|
1128
|
+
ReactiveFormsModule,
|
1129
|
+
ProgressSpinnerModule,
|
1130
|
+
RadioButtonModule,
|
1131
|
+
CheckboxModule,
|
1132
|
+
SelectButtonModule,
|
1133
|
+
TooltipModule,
|
1134
|
+
OverlayPanelModule,
|
1135
|
+
CalendarModule,
|
1136
|
+
SliderModule,
|
1137
|
+
DialogModule,
|
1138
|
+
ConfirmPopupModule,
|
1139
|
+
ConfirmDialogModule,
|
1140
|
+
ContextMenuModule,
|
1141
|
+
DropdownModule,
|
1142
|
+
ButtonModule,
|
1143
|
+
ToolbarModule,
|
352
1144
|
],
|
353
|
-
exports: [SystemListComponent]
|
1145
|
+
exports: [SystemListComponent, ContactComponent, MaintenanceListComponent]
|
354
1146
|
}]
|
355
1147
|
}] });
|
356
1148
|
|
@@ -388,23 +1180,6 @@ var EmailStatus;
|
|
388
1180
|
EmailStatus[EmailStatus["Failed"] = 1] = "Failed";
|
389
1181
|
})(EmailStatus || (EmailStatus = {}));
|
390
1182
|
|
391
|
-
var EmailType;
|
392
|
-
(function (EmailType) {
|
393
|
-
EmailType["ACCEPTED"] = "Accepted";
|
394
|
-
EmailType["SENDNEWDATES"] = "SendNewDates";
|
395
|
-
EmailType["CANCEL"] = "Cancel";
|
396
|
-
EmailType["REPORTANDCANCEL"] = "ReportAndCancel";
|
397
|
-
})(EmailType || (EmailType = {}));
|
398
|
-
|
399
|
-
var EventStatus;
|
400
|
-
(function (EventStatus) {
|
401
|
-
EventStatus["ASSIGNEDANC"] = "Assigned ANC";
|
402
|
-
EventStatus["ASSIGNED"] = "Assigned";
|
403
|
-
EventStatus["ASSIGNEDPINNED"] = "Assigned Pinned";
|
404
|
-
EventStatus["COMPLETE"] = "Complete";
|
405
|
-
EventStatus["INCOMPLETE"] = "Incomplete";
|
406
|
-
})(EventStatus || (EventStatus = {}));
|
407
|
-
|
408
1183
|
var Field;
|
409
1184
|
(function (Field) {
|
410
1185
|
Field["Textbox"] = "textbox";
|
@@ -430,18 +1205,6 @@ class PmJob {
|
|
430
1205
|
class PmJobRequest {
|
431
1206
|
}
|
432
1207
|
|
433
|
-
var PmJobStatus;
|
434
|
-
(function (PmJobStatus) {
|
435
|
-
PmJobStatus["NEW"] = "new";
|
436
|
-
PmJobStatus["ACCEPTED"] = "accepted";
|
437
|
-
PmJobStatus["CLOSED"] = "closed";
|
438
|
-
PmJobStatus["Late"] = "late";
|
439
|
-
PmJobStatus["OPEN"] = "open";
|
440
|
-
PmJobStatus["WAITING"] = "waiting";
|
441
|
-
PmJobStatus["DONE"] = "done";
|
442
|
-
PmJobStatus["VALIDATED"] = "validated";
|
443
|
-
})(PmJobStatus || (PmJobStatus = {}));
|
444
|
-
|
445
1208
|
class ReportDateMailRequest extends MailRequest {
|
446
1209
|
}
|
447
1210
|
|
@@ -496,5 +1259,5 @@ class Warranty {
|
|
496
1259
|
* Generated bundle index. Do not edit.
|
497
1260
|
*/
|
498
1261
|
|
499
|
-
export { Account, AlternativeDate, ApplicationName, CancelPMMailRequest, ContactRequest, CoreModule, CustomObject, DetailedPmJob, EmailStatus, EmailType, EventStatus, Field, GeModule, Language, MailRequest, MenuComponent, NotFoundComponent, PMGroupedJob, PipesModule, PmJob, PmJobRequest, PmJobStatus, ReportDateMailRequest, Role, Service, ServiceName, SocialLoginRequest, SocialMadia, SubrtringWPipe, SubstringPipe, System, SystemListComponent, TokenStatus, TopBarComponent, Warranty };
|
1262
|
+
export { Account, AlternativeDate, ApplicationName, CancelPMMailRequest, ContactComponent, ContactRequest, CoreModule, CustomObject, DetailedPmJob, EmailStatus, EmailType, EventStatus, Field, GeModule, Language, MailRequest, MaintenanceListComponent, MenuComponent, NotFoundComponent, PMGroupedJob, PipesModule, PmJob, PmJobRequest, PmJobStatus, ReportDateMailRequest, Role, Service, ServiceName, SocialLoginRequest, SocialMadia, SubrtringWPipe, SubstringPipe, System, SystemListComponent, TokenStatus, TopBarComponent, Warranty };
|
500
1263
|
//# sourceMappingURL=awf-test-lib.mjs.map
|