awf-test-lib 0.1.23 → 0.1.25
Sign up to get free protection for your applications and to get access to all the features.
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +10 -30
- package/src/lib/core/core-routing.module.ts +10 -0
- package/src/lib/core/core.module.ts +35 -0
- package/src/lib/core/menu/menu.component.css +18 -0
- package/src/lib/core/menu/menu.component.html +8 -0
- package/src/lib/core/menu/menu.component.spec.ts +23 -0
- package/src/lib/core/menu/menu.component.ts +28 -0
- package/src/lib/core/menu-consomer/menu-consomer.component.html +20 -0
- package/src/lib/core/menu-consomer/menu-consomer.component.scss +20 -0
- package/src/lib/core/menu-consomer/menu-consomer.component.spec.ts +25 -0
- package/src/lib/core/menu-consomer/menu-consomer.component.ts +21 -0
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.html +7 -0
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.scss +17 -0
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.spec.ts +25 -0
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.ts +83 -0
- package/src/lib/core/menu-warranty/menu-warranty.component.html +20 -0
- package/src/lib/core/menu-warranty/menu-warranty.component.scss +16 -0
- package/src/lib/core/menu-warranty/menu-warranty.component.spec.ts +25 -0
- package/src/lib/core/menu-warranty/menu-warranty.component.ts +31 -0
- package/src/lib/core/not-found/not-found.component.css +31 -0
- package/src/lib/core/not-found/not-found.component.html +6 -0
- package/src/lib/core/not-found/not-found.component.spec.ts +23 -0
- package/src/lib/core/not-found/not-found.component.ts +15 -0
- package/src/lib/core/top-bar/top-bar.component.css +116 -0
- package/src/lib/core/top-bar/top-bar.component.html +1 -0
- package/src/lib/core/top-bar/top-bar.component.spec.ts +23 -0
- package/src/lib/core/top-bar/top-bar.component.ts +39 -0
- package/{lib/models/account.model.d.ts → src/lib/models/account.model.ts} +6 -3
- package/src/lib/models/alternativeDate.model.ts +6 -0
- package/src/lib/models/applicationName.ts +6 -0
- package/{lib/models/cancelPMMailRequest.model.d.ts → src/lib/models/cancelPMMailRequest.model.ts} +3 -1
- package/src/lib/models/customObject.model.ts +4 -0
- package/src/lib/models/detailedPmJob.model.ts +25 -0
- package/src/lib/models/emailStatus.ts +4 -0
- package/src/lib/models/emailType.ts +19 -0
- package/src/lib/models/eventStatus.ts +8 -0
- package/src/lib/models/field.ts +7 -0
- package/src/lib/models/language.ts +4 -0
- package/{lib/models/mailRequest.model.d.ts → src/lib/models/mailRequest.model.ts} +3 -1
- package/src/lib/models/pMGroupedJob.model.ts +4 -0
- package/{lib/models/pmJob.model.d.ts → src/lib/models/pmJob.model.ts} +7 -6
- package/src/lib/models/pmJobRequest.model.ts +6 -0
- package/{lib/models/pmJobStatus.d.ts → src/lib/models/pmJobStatus.ts} +8 -3
- package/src/lib/models/reason.model.ts +7 -0
- package/src/lib/models/reasonCode.ts +9 -0
- package/src/lib/models/reasonContact.ts +7 -0
- package/{lib/models/reportDateMailRequest.model.d.ts → src/lib/models/reportDateMailRequest.model.ts} +3 -1
- package/src/lib/models/role.ts +5 -0
- package/src/lib/models/service.model.ts +8 -0
- package/src/lib/models/serviceName.ts +14 -0
- package/{lib/models/socialLoginRequest.model.d.ts → src/lib/models/socialLoginRequest.model.ts} +1 -1
- package/src/lib/models/socialMadia.ts +4 -0
- package/src/lib/models/stingBoolean.ts +7 -0
- package/src/lib/models/system.ts +15 -0
- package/{lib/models/theme.model.d.ts → src/lib/models/theme.model.ts} +18 -11
- package/src/lib/models/tokenStatus.ts +6 -0
- package/src/lib/models/warranty.ts +18 -0
- package/src/lib/pipes/pipes/pipes.module.ts +14 -0
- package/src/lib/pipes/subrtring-w.pipe.spec.ts +8 -0
- package/src/lib/pipes/subrtring-w.pipe.ts +16 -0
- package/src/lib/pipes/substring.pipe.spec.ts +8 -0
- package/src/lib/pipes/substring.pipe.ts +15 -0
- package/src/lib/shared/choose-another-date/choose-another-date.component.html +12 -0
- package/src/lib/shared/choose-another-date/choose-another-date.component.scss +12 -0
- package/src/lib/shared/choose-another-date/choose-another-date.component.spec.ts +25 -0
- package/src/lib/shared/choose-another-date/choose-another-date.component.ts +127 -0
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.html +26 -0
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.scss +0 -0
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.spec.ts +25 -0
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.ts +39 -0
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.css +0 -0
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.html +19 -0
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.spec.ts +23 -0
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.ts +36 -0
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.html +25 -0
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.scss +23 -0
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.spec.ts +25 -0
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.ts +30 -0
- package/src/lib/shared/contact/contact.component.css +144 -0
- package/src/lib/shared/contact/contact.component.html +136 -0
- package/src/lib/shared/contact/contact.component.spec.ts +23 -0
- package/src/lib/shared/contact/contact.component.ts +169 -0
- package/src/lib/shared/contact-support/contact-support.component.html +130 -0
- package/src/lib/shared/contact-support/contact-support.component.scss +10 -0
- package/src/lib/shared/contact-support/contact-support.component.spec.ts +25 -0
- package/src/lib/shared/contact-support/contact-support.component.ts +188 -0
- package/src/lib/shared/dashboard/dashboard.component.html +81 -0
- package/src/lib/shared/dashboard/dashboard.component.scss +5 -0
- package/src/lib/shared/dashboard/dashboard.component.spec.ts +23 -0
- package/src/lib/shared/dashboard/dashboard.component.ts +23 -0
- package/src/lib/shared/maintenance-list/maintenance-list.component.html +105 -0
- package/src/lib/shared/maintenance-list/maintenance-list.component.scss +26 -0
- package/src/lib/shared/maintenance-list/maintenance-list.component.spec.ts +25 -0
- package/src/lib/shared/maintenance-list/maintenance-list.component.ts +403 -0
- package/src/lib/shared/shared-routing.module.ts +10 -0
- package/src/lib/shared/shared.module.ts +80 -0
- package/src/lib/shared/show-links/show-links.component.html +49 -0
- package/src/lib/shared/show-links/show-links.component.scss +0 -0
- package/src/lib/shared/show-links/show-links.component.spec.ts +25 -0
- package/src/lib/shared/show-links/show-links.component.ts +78 -0
- package/src/lib/shared/system-list/system-list.component.css +0 -0
- package/src/lib/shared/system-list/system-list.component.html +40 -0
- package/src/lib/shared/system-list/system-list.component.spec.ts +23 -0
- package/src/lib/shared/system-list/system-list.component.ts +26 -0
- package/{public-api.d.ts → src/public-api.ts} +16 -1
- package/src/test.ts +27 -0
- package/tsconfig.lib.dev.json +10 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.pp.json +10 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/esm2020/awf-test-lib.mjs +0 -5
- package/esm2020/lib/core/core-routing.module.mjs +0 -18
- package/esm2020/lib/core/core.module.mjs +0 -51
- package/esm2020/lib/core/menu/menu.component.mjs +0 -40
- package/esm2020/lib/core/menu-consomer/menu-consomer.component.mjs +0 -27
- package/esm2020/lib/core/menu-ge-portal/menu-ge-portal.component.mjs +0 -105
- package/esm2020/lib/core/menu-warranty/menu-warranty.component.mjs +0 -35
- package/esm2020/lib/core/not-found/not-found.component.mjs +0 -19
- package/esm2020/lib/core/top-bar/top-bar.component.mjs +0 -41
- package/esm2020/lib/models/account.model.mjs +0 -3
- package/esm2020/lib/models/alternativeDate.model.mjs +0 -3
- package/esm2020/lib/models/applicationName.mjs +0 -7
- package/esm2020/lib/models/cancelPMMailRequest.model.mjs +0 -4
- package/esm2020/lib/models/customObject.model.mjs +0 -3
- package/esm2020/lib/models/detailedPmJob.model.mjs +0 -3
- package/esm2020/lib/models/emailStatus.mjs +0 -6
- package/esm2020/lib/models/emailType.mjs +0 -17
- package/esm2020/lib/models/eventStatus.mjs +0 -9
- package/esm2020/lib/models/field.mjs +0 -9
- package/esm2020/lib/models/language.mjs +0 -6
- package/esm2020/lib/models/mailRequest.model.mjs +0 -3
- package/esm2020/lib/models/pMGroupedJob.model.mjs +0 -3
- package/esm2020/lib/models/pmJob.model.mjs +0 -3
- package/esm2020/lib/models/pmJobRequest.model.mjs +0 -3
- package/esm2020/lib/models/pmJobStatus.mjs +0 -17
- package/esm2020/lib/models/reason.model.mjs +0 -3
- package/esm2020/lib/models/reasonCode.mjs +0 -9
- package/esm2020/lib/models/reasonContact.mjs +0 -8
- package/esm2020/lib/models/reportDateMailRequest.model.mjs +0 -4
- package/esm2020/lib/models/role.mjs +0 -7
- package/esm2020/lib/models/service.model.mjs +0 -3
- package/esm2020/lib/models/serviceName.mjs +0 -12
- package/esm2020/lib/models/socialLoginRequest.model.mjs +0 -3
- package/esm2020/lib/models/socialMadia.mjs +0 -5
- package/esm2020/lib/models/stingBoolean.mjs +0 -6
- package/esm2020/lib/models/system.mjs +0 -3
- package/esm2020/lib/models/theme.model.mjs +0 -2
- package/esm2020/lib/models/tokenStatus.mjs +0 -7
- package/esm2020/lib/models/warranty.mjs +0 -3
- package/esm2020/lib/pipes/pipes/pipes.module.mjs +0 -21
- package/esm2020/lib/pipes/subrtring-w.pipe.mjs +0 -20
- package/esm2020/lib/pipes/substring.pipe.mjs +0 -16
- package/esm2020/lib/shared/choose-another-date/choose-another-date.component.mjs +0 -110
- package/esm2020/lib/shared/confirm-dialog/confirm-dialog.component.mjs +0 -45
- package/esm2020/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.mjs +0 -42
- package/esm2020/lib/shared/confirmed-date-information/confirmed-date-information.component.mjs +0 -39
- package/esm2020/lib/shared/contact/contact.component.mjs +0 -160
- package/esm2020/lib/shared/contact-support/contact-support.component.mjs +0 -172
- package/esm2020/lib/shared/dashboard/dashboard.component.mjs +0 -35
- package/esm2020/lib/shared/maintenance-list/maintenance-list.component.mjs +0 -352
- package/esm2020/lib/shared/shared-routing.module.mjs +0 -18
- package/esm2020/lib/shared/shared.module.mjs +0 -144
- package/esm2020/lib/shared/show-links/show-links.component.mjs +0 -80
- package/esm2020/lib/shared/system-list/system-list.component.mjs +0 -33
- package/esm2020/public-api.mjs +0 -48
- package/fesm2015/awf-test-lib.mjs +0 -1654
- package/fesm2015/awf-test-lib.mjs.map +0 -1
- package/fesm2020/awf-test-lib.mjs +0 -1650
- package/fesm2020/awf-test-lib.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/core/core-routing.module.d.ts +0 -7
- package/lib/core/core.module.d.ts +0 -15
- package/lib/core/menu/menu.component.d.ts +0 -17
- package/lib/core/menu-consomer/menu-consomer.component.d.ts +0 -12
- package/lib/core/menu-ge-portal/menu-ge-portal.component.d.ts +0 -20
- package/lib/core/menu-warranty/menu-warranty.component.d.ts +0 -15
- package/lib/core/not-found/not-found.component.d.ts +0 -10
- package/lib/core/top-bar/top-bar.component.d.ts +0 -13
- package/lib/models/alternativeDate.model.d.ts +0 -6
- package/lib/models/applicationName.d.ts +0 -5
- package/lib/models/customObject.model.d.ts +0 -3
- package/lib/models/detailedPmJob.model.d.ts +0 -23
- package/lib/models/emailStatus.d.ts +0 -4
- package/lib/models/emailType.d.ts +0 -15
- package/lib/models/eventStatus.d.ts +0 -7
- package/lib/models/field.d.ts +0 -7
- package/lib/models/language.d.ts +0 -4
- package/lib/models/pMGroupedJob.model.d.ts +0 -3
- package/lib/models/pmJobRequest.model.d.ts +0 -5
- package/lib/models/reason.model.d.ts +0 -4
- package/lib/models/reasonCode.d.ts +0 -7
- package/lib/models/reasonContact.d.ts +0 -6
- package/lib/models/role.d.ts +0 -5
- package/lib/models/service.model.d.ts +0 -8
- package/lib/models/serviceName.d.ts +0 -10
- package/lib/models/socialMadia.d.ts +0 -3
- package/lib/models/stingBoolean.d.ts +0 -4
- package/lib/models/system.d.ts +0 -14
- package/lib/models/tokenStatus.d.ts +0 -5
- package/lib/models/warranty.d.ts +0 -17
- package/lib/pipes/pipes/pipes.module.d.ts +0 -9
- package/lib/pipes/subrtring-w.pipe.d.ts +0 -7
- package/lib/pipes/substring.pipe.d.ts +0 -7
- package/lib/shared/choose-another-date/choose-another-date.component.d.ts +0 -33
- package/lib/shared/confirm-dialog/confirm-dialog.component.d.ts +0 -21
- package/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.d.ts +0 -19
- package/lib/shared/confirmed-date-information/confirmed-date-information.component.d.ts +0 -17
- package/lib/shared/contact/contact.component.d.ts +0 -39
- package/lib/shared/contact-support/contact-support.component.d.ts +0 -50
- package/lib/shared/dashboard/dashboard.component.d.ts +0 -18
- package/lib/shared/maintenance-list/maintenance-list.component.d.ts +0 -81
- package/lib/shared/shared-routing.module.d.ts +0 -7
- package/lib/shared/shared.module.d.ts +0 -40
- package/lib/shared/show-links/show-links.component.d.ts +0 -24
- package/lib/shared/system-list/system-list.component.d.ts +0 -16
@@ -0,0 +1,116 @@
|
|
1
|
+
body {
|
2
|
+
background: #f6f7f8;
|
3
|
+
}
|
4
|
+
#main {
|
5
|
+
margin-top: 60px;
|
6
|
+
padding: 20px 30px;
|
7
|
+
transition: all 0.3s;
|
8
|
+
}
|
9
|
+
.layout-topbar .toggle-sidebar-btn {
|
10
|
+
font-size: 26px;
|
11
|
+
padding-left: 10px;
|
12
|
+
cursor: pointer;
|
13
|
+
color: var(--secondarycolor);
|
14
|
+
}
|
15
|
+
.layout-topbar .search-bar {
|
16
|
+
min-width: 650px;
|
17
|
+
padding: 0 20px;
|
18
|
+
}
|
19
|
+
@media (max-width: var(--smallscreen)) {
|
20
|
+
.layout-topbar .search-bar {
|
21
|
+
position: fixed;
|
22
|
+
top: 50px;
|
23
|
+
left: 0;
|
24
|
+
right: 0;
|
25
|
+
padding: 20px;
|
26
|
+
box-shadow: 0px 0px 15px 0px rgba(1, 41, 112, 0.1);
|
27
|
+
background: var(--primarycolorwhite);
|
28
|
+
z-index: 9999;
|
29
|
+
transition: 0.3s;
|
30
|
+
visibility: hidden;
|
31
|
+
opacity: 0;
|
32
|
+
min-width: 432px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
@media (max-width: var(--largescreen)) {
|
36
|
+
.layout-topbar .search-bar-show {
|
37
|
+
top: 60px;
|
38
|
+
visibility: visible;
|
39
|
+
opacity: 1;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
.layout-topbar .search-form {
|
43
|
+
width: 100%;
|
44
|
+
}
|
45
|
+
.layout-topbar .search-form input {
|
46
|
+
border: 0;
|
47
|
+
font-size: 14px;
|
48
|
+
color: #012970;
|
49
|
+
border: 1px solid rgba(1, 41, 112, 0.2);
|
50
|
+
padding: 7px 38px 7px 8px;
|
51
|
+
border-radius: 3px;
|
52
|
+
transition: 0.3s;
|
53
|
+
width: 500px;
|
54
|
+
}
|
55
|
+
.layout-topbar .search-form input:hover, .layout-topbar .search-form input:focus {
|
56
|
+
outline: none;
|
57
|
+
box-shadow: 0 0 10px 0 rgba(1, 41, 112, 0.15);
|
58
|
+
border: 1px solid rgba(1, 41, 112, 0.3);
|
59
|
+
}
|
60
|
+
@media (max-width: var(--largescreen)) {
|
61
|
+
.layout-topbar .search-form input {
|
62
|
+
width: 100%;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
.layout-topbar .search-form button {
|
66
|
+
border: 0;
|
67
|
+
padding: 0;
|
68
|
+
margin-left: -70px;
|
69
|
+
background: #f8f9fa;
|
70
|
+
padding: 5px 26px;
|
71
|
+
border-left: 1px solid rgba(1, 41, 112, 0.2);
|
72
|
+
border-radius: 0 0 5px 0px;
|
73
|
+
}
|
74
|
+
/*--------------------------------------------------------------
|
75
|
+
# Header Nav
|
76
|
+
--------------------------------------------------------------*/
|
77
|
+
.topbar-menu ul {
|
78
|
+
margin: 0;
|
79
|
+
padding: 0;
|
80
|
+
list-style: none;
|
81
|
+
}
|
82
|
+
.topbar-menu .nav-profile img {
|
83
|
+
max-height: 36px;
|
84
|
+
}
|
85
|
+
.topbar-menu .nav-profile span {
|
86
|
+
font-size: 14px;
|
87
|
+
font-weight: 600;
|
88
|
+
}
|
89
|
+
.topbar-menu .profile {
|
90
|
+
min-width: 240px;
|
91
|
+
padding-bottom: 0;
|
92
|
+
}
|
93
|
+
.topbar-menu .profile .dropdown-header h6 {
|
94
|
+
font-size: 18px;
|
95
|
+
margin-bottom: 0;
|
96
|
+
font-weight: 600;
|
97
|
+
color: #444444;
|
98
|
+
}
|
99
|
+
.topbar-menu .profile .dropdown-header span {
|
100
|
+
font-size: 14px;
|
101
|
+
}
|
102
|
+
.p-megamenu {
|
103
|
+
background: transparent;
|
104
|
+
border: none;
|
105
|
+
}
|
106
|
+
.p-megamenu .p-menuitem-link .p-menuitem-text {
|
107
|
+
line-height: 20px;
|
108
|
+
}
|
109
|
+
.p-megamenu .p-megamenu-grid .p-menuitem-link:not(.p-disabled):hover {
|
110
|
+
background: #e9ecef;
|
111
|
+
border-left: 4px solid var(--primarycolor);
|
112
|
+
}
|
113
|
+
.p-megamenu-panel .p-megamenu-col-12 {
|
114
|
+
padding: 0.5rem 0;
|
115
|
+
}
|
116
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
<p-megaMenu [model]="items"></p-megaMenu>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
2
|
+
|
3
|
+
import { TopBarComponent } from './top-bar.component';
|
4
|
+
|
5
|
+
describe('TopBarComponent', () => {
|
6
|
+
let component: TopBarComponent;
|
7
|
+
let fixture: ComponentFixture<TopBarComponent>;
|
8
|
+
|
9
|
+
beforeEach(async () => {
|
10
|
+
await TestBed.configureTestingModule({
|
11
|
+
declarations: [ TopBarComponent ]
|
12
|
+
})
|
13
|
+
.compileComponents();
|
14
|
+
|
15
|
+
fixture = TestBed.createComponent(TopBarComponent);
|
16
|
+
component = fixture.componentInstance;
|
17
|
+
fixture.detectChanges();
|
18
|
+
});
|
19
|
+
|
20
|
+
it('should create', () => {
|
21
|
+
expect(component).toBeTruthy();
|
22
|
+
});
|
23
|
+
});
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { Component, OnChanges,Input, EventEmitter,Output } from '@angular/core';
|
2
|
+
|
3
|
+
@Component({
|
4
|
+
selector: 'awf-top-bar',
|
5
|
+
templateUrl: './top-bar.component.html',
|
6
|
+
styleUrls: ['./top-bar.component.css']
|
7
|
+
})
|
8
|
+
export class TopBarComponent implements OnChanges {
|
9
|
+
@Input() translate!: any;
|
10
|
+
@Input() applicationName!: any;
|
11
|
+
@Output() logOutClick: EventEmitter<any> = new EventEmitter();
|
12
|
+
items!: any[];
|
13
|
+
constructor() { }
|
14
|
+
|
15
|
+
ngOnChanges(): void {
|
16
|
+
this.items = [
|
17
|
+
{
|
18
|
+
label: this.translate.parameters , icon: 'pi pi-fw pi-user',
|
19
|
+
items: [
|
20
|
+
[
|
21
|
+
{
|
22
|
+
label: this.translate.account,
|
23
|
+
items: [
|
24
|
+
{label: this.translate.logout ,icon: 'pi pi-fw pi-power-off',command: () => {this.logout()}},
|
25
|
+
]
|
26
|
+
},
|
27
|
+
],
|
28
|
+
]
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
32
|
+
|
33
|
+
logout() {
|
34
|
+
this.logOutClick.emit();
|
35
|
+
}
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
|
@@ -1,11 +1,14 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
|
3
|
+
export class Account {
|
2
4
|
id?: string;
|
3
5
|
title?: string;
|
4
6
|
firstName?: string;
|
5
7
|
lastName?: string;
|
6
8
|
email?: string;
|
7
|
-
language?:
|
8
|
-
isVerified?:
|
9
|
+
language?:string;
|
10
|
+
isVerified?:boolean;
|
11
|
+
|
9
12
|
role?: string;
|
10
13
|
accessToken?: string;
|
11
14
|
refreshToken?: string;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { PmJob } from "./pmJob.model";
|
2
|
+
|
3
|
+
export class DetailedPmJob {
|
4
|
+
systemId?: string;
|
5
|
+
systemName?: string;
|
6
|
+
status!:string;
|
7
|
+
siteName?:string;
|
8
|
+
siteCity?:string;
|
9
|
+
language?:string;
|
10
|
+
pmJob!: PmJob;
|
11
|
+
comment?:string;
|
12
|
+
name?: string;
|
13
|
+
email?: string;
|
14
|
+
phone?: string;
|
15
|
+
extentionOrComment? : string;
|
16
|
+
reason?: string;
|
17
|
+
reasonContact?: string;
|
18
|
+
futureStatus?:string;
|
19
|
+
selectedDate?:string;
|
20
|
+
toUpdate?:boolean;
|
21
|
+
WorkorderNumberSelected?:string;
|
22
|
+
sitePostalCode?:string;
|
23
|
+
room ?:string;
|
24
|
+
|
25
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export enum EmailType {
|
2
|
+
Accepted_Clients_Alternate = 'Accepted_Clients_Alternate',
|
3
|
+
Accepted_CSC_Alternate = 'Accepted_CSC_Alternate',
|
4
|
+
Accepted_Clients = 'Accepted_Clients',
|
5
|
+
Accepted_CSC = 'Accepted_CSC',
|
6
|
+
CancelPM_Clients = 'CancelPM_Clients',
|
7
|
+
CancelPM_CSC = 'CancelPM_CSC',
|
8
|
+
ContactMe_Clients = 'ContactMe_Clients',
|
9
|
+
ContactMe_CSC = 'ContactMe_CSC',
|
10
|
+
ReportDate_Clients = 'ReportDate_Clients',
|
11
|
+
ReportDate_CSC = 'ReportDate_CSC',
|
12
|
+
SendNewDates_Clients = 'SendNewDates_Clients',
|
13
|
+
SendNewDates_CSC = 'SendNewDates_CSC',
|
14
|
+
DesynchroPM_CSC = 'DesynchroPM_CSC',
|
15
|
+
|
16
|
+
|
17
|
+
}
|
18
|
+
|
19
|
+
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { AlternativeDate } from "./alternativeDate.model";
|
2
2
|
import { PMGroupedJob } from "./pMGroupedJob.model";
|
3
3
|
import { CustomObject } from "./customObject.model";
|
4
|
-
|
4
|
+
|
5
|
+
export class PmJob {
|
5
6
|
caseId?: string;
|
6
7
|
caseNumber?: string;
|
7
8
|
workorderId?: string;
|
@@ -9,16 +10,16 @@ export declare class PmJob {
|
|
9
10
|
workorderStatus?: string;
|
10
11
|
eventId?: string;
|
11
12
|
eventStatus?: string;
|
12
|
-
startDateTime
|
13
|
-
endDateTime
|
13
|
+
startDateTime!: string;
|
14
|
+
endDateTime!: string;
|
14
15
|
caseType?: string;
|
15
16
|
caseCategory?: string;
|
16
17
|
levelOfService?: string;
|
17
18
|
fseSSO?: string;
|
18
19
|
customerAccepted?: string;
|
19
|
-
alternativeDates
|
20
|
-
groupList
|
21
|
-
customObject
|
20
|
+
alternativeDates!: AlternativeDate[];
|
21
|
+
groupList!: PMGroupedJob[];
|
22
|
+
customObject!:CustomObject ;
|
22
23
|
caseDescription?: string;
|
23
24
|
fseName?: string;
|
24
25
|
caseStatus?: string;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export
|
2
|
-
NEW =
|
1
|
+
export enum PmJobStatus {
|
2
|
+
NEW = 'new',
|
3
3
|
ACCEPTED = "accepted",
|
4
4
|
CLOSED = "closed",
|
5
5
|
Late = "late",
|
@@ -7,8 +7,13 @@ export declare enum PmJobStatus {
|
|
7
7
|
WAITING = "waiting",
|
8
8
|
DONE = "done",
|
9
9
|
VALIDATED = "validated",
|
10
|
+
// statues if i select reason in contact page
|
10
11
|
DESINSTALLED = "desinstalled",
|
11
12
|
REPORTED = "reported",
|
12
13
|
CANCELLED = "cancelled",
|
13
|
-
OTHER = "other"
|
14
|
+
OTHER = "other",
|
15
|
+
|
16
|
+
|
14
17
|
}
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export enum ServiceName {
|
2
|
+
Repairer = 'repairer',
|
3
|
+
WarrantyContract = 'warrantyContract',
|
4
|
+
Devices = 'devices',
|
5
|
+
TrackRepairs = 'trackRepairs',
|
6
|
+
ExtendedWarranty = 'extendedWarranty',
|
7
|
+
ScheduleAppointment = 'scheduleAppointment',
|
8
|
+
Documentation = 'documentation',
|
9
|
+
RepairabilityIndex = 'repairabilityIndex',
|
10
|
+
}
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { PmJob } from "./pmJob.model";
|
2
|
+
|
3
|
+
export class System {
|
4
|
+
id!: string;
|
5
|
+
systemId!: string;
|
6
|
+
name!: string;
|
7
|
+
modality?: string;
|
8
|
+
installDate?:string;
|
9
|
+
siteName?:string;
|
10
|
+
siteCity?:string;
|
11
|
+
pmJobs!:PmJob[];
|
12
|
+
description?:string;
|
13
|
+
sitePostalCode?:string;
|
14
|
+
room?:string;
|
15
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
export interface Theme {
|
2
3
|
cardColor: string;
|
3
4
|
cardBackground: string;
|
@@ -10,29 +11,35 @@ export interface Theme {
|
|
10
11
|
headerColor: string;
|
11
12
|
primarycolor: string;
|
12
13
|
secondarycolor: string;
|
13
|
-
primarycolorwhite:
|
14
|
-
navBackground:
|
15
|
-
navColor:
|
14
|
+
primarycolorwhite:string;
|
15
|
+
navBackground:string;
|
16
|
+
navColor:string;
|
16
17
|
borderbutton: string;
|
17
|
-
borderraduis:
|
18
|
-
bordercolor: string;
|
18
|
+
borderraduis :string;
|
19
|
+
bordercolor : string;
|
19
20
|
fontsizeH1: string;
|
20
|
-
fontsizeH2:
|
21
|
-
fontsizeH3: string;
|
21
|
+
fontsizeH2 :string;
|
22
|
+
fontsizeH3 : string;
|
22
23
|
fontsizeH4: string;
|
23
|
-
fontsizeH5:
|
24
|
-
fontsizeH6: string;
|
25
|
-
fontsizeP: string;
|
24
|
+
fontsizeH5 :string;
|
25
|
+
fontsizeH6 : string;
|
26
|
+
fontsizeP : string;
|
26
27
|
font: string;
|
28
|
+
|
27
29
|
verySmallscreen: string;
|
28
30
|
tinyscreen: string;
|
29
31
|
smallscreen: string;
|
30
32
|
smscreen: string;
|
31
33
|
mediumscreen: string;
|
32
34
|
largescreen: string;
|
33
|
-
|
35
|
+
|
36
|
+
//primarycolor: string;
|
37
|
+
ligthprimarycolor:string;
|
34
38
|
Dangercolor: string;
|
35
39
|
Successcolor: string;
|
36
40
|
Warnigcolor: string;
|
37
41
|
Infocolor: string;
|
38
42
|
}
|
43
|
+
|
44
|
+
|
45
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
export class Warranty {
|
3
|
+
manufacturerId!: number;
|
4
|
+
contractId!: number;
|
5
|
+
contractProductId?: number;
|
6
|
+
contractProductParentId?: number;
|
7
|
+
contractCode!: string;
|
8
|
+
saleDate?: Date;
|
9
|
+
brand!: string;
|
10
|
+
family!: string;
|
11
|
+
commercialReference!: string;
|
12
|
+
technicalReference!: string;
|
13
|
+
productDescription!: string;
|
14
|
+
startDate?: Date;
|
15
|
+
endDate?: Date;
|
16
|
+
PdfLink?:string;
|
17
|
+
consId?:number;
|
18
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { SubstringPipe } from '../substring.pipe';
|
4
|
+
import { SubrtringWPipe } from '../subrtring-w.pipe';
|
5
|
+
|
6
|
+
|
7
|
+
@NgModule({
|
8
|
+
declarations: [SubstringPipe,SubrtringWPipe],
|
9
|
+
exports: [SubstringPipe,SubrtringWPipe],
|
10
|
+
imports: [
|
11
|
+
CommonModule
|
12
|
+
]
|
13
|
+
})
|
14
|
+
export class PipesModule { }
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
2
|
+
|
3
|
+
@Pipe({
|
4
|
+
name: 'subrtringW'
|
5
|
+
})
|
6
|
+
export class SubrtringWPipe implements PipeTransform {
|
7
|
+
|
8
|
+
transform(brand: string, manufacturerId: number): string {
|
9
|
+
if(manufacturerId==4 && (brand.substring(0, 2)==='FR') )
|
10
|
+
{
|
11
|
+
return brand.substring(2, 12);
|
12
|
+
}
|
13
|
+
else
|
14
|
+
return brand
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
3
|
+
|
4
|
+
|
5
|
+
@Pipe({
|
6
|
+
name: 'substring'
|
7
|
+
})
|
8
|
+
export class SubstringPipe implements PipeTransform {
|
9
|
+
|
10
|
+
transform(time: string, arg1: number, arg2: number): string {
|
11
|
+
return time.substring(arg1, arg2);
|
12
|
+
}
|
13
|
+
|
14
|
+
}
|
15
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<p-toast position="top-center"></p-toast>
|
2
|
+
<div>
|
3
|
+
<p-dialog [header]="translate.text" [(visible)]="displayAnotherDate" [modal]="true" [style]="{width: '2000px',height:'600px'}" [draggable]="false" [resizable]="false" (onHide)="close()">
|
4
|
+
<p-calendar #calendar [(ngModel)]="dates" selectionMode="multiple" [numberOfMonths]="2" [touchUI]="true" [inline]="true" inputId="multiplemonths" (click)="onSelect()"></p-calendar>
|
5
|
+
<ng-template pTemplate="footer">
|
6
|
+
<div class="popup-footer">
|
7
|
+
<p class="popup-footer-message">{{translate.message}}</p>
|
8
|
+
<p-button icon="pi pi-calendar-plus" (click)="askDate()" [label]="translate.ask" class="p-button-text"></p-button>
|
9
|
+
</div>
|
10
|
+
</ng-template>
|
11
|
+
</p-dialog>
|
12
|
+
</div>
|