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.
Files changed (218) hide show
  1. package/karma.conf.js +44 -0
  2. package/ng-package.json +7 -0
  3. package/package.json +10 -30
  4. package/src/lib/core/core-routing.module.ts +10 -0
  5. package/src/lib/core/core.module.ts +35 -0
  6. package/src/lib/core/menu/menu.component.css +18 -0
  7. package/src/lib/core/menu/menu.component.html +8 -0
  8. package/src/lib/core/menu/menu.component.spec.ts +23 -0
  9. package/src/lib/core/menu/menu.component.ts +28 -0
  10. package/src/lib/core/menu-consomer/menu-consomer.component.html +20 -0
  11. package/src/lib/core/menu-consomer/menu-consomer.component.scss +20 -0
  12. package/src/lib/core/menu-consomer/menu-consomer.component.spec.ts +25 -0
  13. package/src/lib/core/menu-consomer/menu-consomer.component.ts +21 -0
  14. package/src/lib/core/menu-ge-portal/menu-ge-portal.component.html +7 -0
  15. package/src/lib/core/menu-ge-portal/menu-ge-portal.component.scss +17 -0
  16. package/src/lib/core/menu-ge-portal/menu-ge-portal.component.spec.ts +25 -0
  17. package/src/lib/core/menu-ge-portal/menu-ge-portal.component.ts +83 -0
  18. package/src/lib/core/menu-warranty/menu-warranty.component.html +20 -0
  19. package/src/lib/core/menu-warranty/menu-warranty.component.scss +16 -0
  20. package/src/lib/core/menu-warranty/menu-warranty.component.spec.ts +25 -0
  21. package/src/lib/core/menu-warranty/menu-warranty.component.ts +31 -0
  22. package/src/lib/core/not-found/not-found.component.css +31 -0
  23. package/src/lib/core/not-found/not-found.component.html +6 -0
  24. package/src/lib/core/not-found/not-found.component.spec.ts +23 -0
  25. package/src/lib/core/not-found/not-found.component.ts +15 -0
  26. package/src/lib/core/top-bar/top-bar.component.css +116 -0
  27. package/src/lib/core/top-bar/top-bar.component.html +1 -0
  28. package/src/lib/core/top-bar/top-bar.component.spec.ts +23 -0
  29. package/src/lib/core/top-bar/top-bar.component.ts +39 -0
  30. package/{lib/models/account.model.d.ts → src/lib/models/account.model.ts} +6 -3
  31. package/src/lib/models/alternativeDate.model.ts +6 -0
  32. package/src/lib/models/applicationName.ts +6 -0
  33. package/{lib/models/cancelPMMailRequest.model.d.ts → src/lib/models/cancelPMMailRequest.model.ts} +3 -1
  34. package/src/lib/models/customObject.model.ts +4 -0
  35. package/src/lib/models/detailedPmJob.model.ts +25 -0
  36. package/src/lib/models/emailStatus.ts +4 -0
  37. package/src/lib/models/emailType.ts +19 -0
  38. package/src/lib/models/eventStatus.ts +8 -0
  39. package/src/lib/models/field.ts +7 -0
  40. package/src/lib/models/language.ts +4 -0
  41. package/{lib/models/mailRequest.model.d.ts → src/lib/models/mailRequest.model.ts} +3 -1
  42. package/src/lib/models/pMGroupedJob.model.ts +4 -0
  43. package/{lib/models/pmJob.model.d.ts → src/lib/models/pmJob.model.ts} +7 -6
  44. package/src/lib/models/pmJobRequest.model.ts +6 -0
  45. package/{lib/models/pmJobStatus.d.ts → src/lib/models/pmJobStatus.ts} +8 -3
  46. package/src/lib/models/reason.model.ts +7 -0
  47. package/src/lib/models/reasonCode.ts +9 -0
  48. package/src/lib/models/reasonContact.ts +7 -0
  49. package/{lib/models/reportDateMailRequest.model.d.ts → src/lib/models/reportDateMailRequest.model.ts} +3 -1
  50. package/src/lib/models/role.ts +5 -0
  51. package/src/lib/models/service.model.ts +8 -0
  52. package/src/lib/models/serviceName.ts +14 -0
  53. package/{lib/models/socialLoginRequest.model.d.ts → src/lib/models/socialLoginRequest.model.ts} +1 -1
  54. package/src/lib/models/socialMadia.ts +4 -0
  55. package/src/lib/models/stingBoolean.ts +7 -0
  56. package/src/lib/models/system.ts +15 -0
  57. package/{lib/models/theme.model.d.ts → src/lib/models/theme.model.ts} +18 -11
  58. package/src/lib/models/tokenStatus.ts +6 -0
  59. package/src/lib/models/warranty.ts +18 -0
  60. package/src/lib/pipes/pipes/pipes.module.ts +14 -0
  61. package/src/lib/pipes/subrtring-w.pipe.spec.ts +8 -0
  62. package/src/lib/pipes/subrtring-w.pipe.ts +16 -0
  63. package/src/lib/pipes/substring.pipe.spec.ts +8 -0
  64. package/src/lib/pipes/substring.pipe.ts +15 -0
  65. package/src/lib/shared/choose-another-date/choose-another-date.component.html +12 -0
  66. package/src/lib/shared/choose-another-date/choose-another-date.component.scss +12 -0
  67. package/src/lib/shared/choose-another-date/choose-another-date.component.spec.ts +25 -0
  68. package/src/lib/shared/choose-another-date/choose-another-date.component.ts +127 -0
  69. package/src/lib/shared/confirm-dialog/confirm-dialog.component.html +26 -0
  70. package/src/lib/shared/confirm-dialog/confirm-dialog.component.scss +0 -0
  71. package/src/lib/shared/confirm-dialog/confirm-dialog.component.spec.ts +25 -0
  72. package/src/lib/shared/confirm-dialog/confirm-dialog.component.ts +39 -0
  73. package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.css +0 -0
  74. package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.html +19 -0
  75. package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.spec.ts +23 -0
  76. package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.ts +36 -0
  77. package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.html +25 -0
  78. package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.scss +23 -0
  79. package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.spec.ts +25 -0
  80. package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.ts +30 -0
  81. package/src/lib/shared/contact/contact.component.css +144 -0
  82. package/src/lib/shared/contact/contact.component.html +136 -0
  83. package/src/lib/shared/contact/contact.component.spec.ts +23 -0
  84. package/src/lib/shared/contact/contact.component.ts +169 -0
  85. package/src/lib/shared/contact-support/contact-support.component.html +130 -0
  86. package/src/lib/shared/contact-support/contact-support.component.scss +10 -0
  87. package/src/lib/shared/contact-support/contact-support.component.spec.ts +25 -0
  88. package/src/lib/shared/contact-support/contact-support.component.ts +188 -0
  89. package/src/lib/shared/dashboard/dashboard.component.html +81 -0
  90. package/src/lib/shared/dashboard/dashboard.component.scss +5 -0
  91. package/src/lib/shared/dashboard/dashboard.component.spec.ts +23 -0
  92. package/src/lib/shared/dashboard/dashboard.component.ts +23 -0
  93. package/src/lib/shared/maintenance-list/maintenance-list.component.html +105 -0
  94. package/src/lib/shared/maintenance-list/maintenance-list.component.scss +26 -0
  95. package/src/lib/shared/maintenance-list/maintenance-list.component.spec.ts +25 -0
  96. package/src/lib/shared/maintenance-list/maintenance-list.component.ts +403 -0
  97. package/src/lib/shared/shared-routing.module.ts +10 -0
  98. package/src/lib/shared/shared.module.ts +80 -0
  99. package/src/lib/shared/show-links/show-links.component.html +49 -0
  100. package/src/lib/shared/show-links/show-links.component.scss +0 -0
  101. package/src/lib/shared/show-links/show-links.component.spec.ts +25 -0
  102. package/src/lib/shared/show-links/show-links.component.ts +78 -0
  103. package/src/lib/shared/system-list/system-list.component.css +0 -0
  104. package/src/lib/shared/system-list/system-list.component.html +40 -0
  105. package/src/lib/shared/system-list/system-list.component.spec.ts +23 -0
  106. package/src/lib/shared/system-list/system-list.component.ts +26 -0
  107. package/{public-api.d.ts → src/public-api.ts} +16 -1
  108. package/src/test.ts +27 -0
  109. package/tsconfig.lib.dev.json +10 -0
  110. package/tsconfig.lib.json +15 -0
  111. package/tsconfig.lib.pp.json +10 -0
  112. package/tsconfig.lib.prod.json +10 -0
  113. package/tsconfig.spec.json +17 -0
  114. package/esm2020/awf-test-lib.mjs +0 -5
  115. package/esm2020/lib/core/core-routing.module.mjs +0 -18
  116. package/esm2020/lib/core/core.module.mjs +0 -51
  117. package/esm2020/lib/core/menu/menu.component.mjs +0 -40
  118. package/esm2020/lib/core/menu-consomer/menu-consomer.component.mjs +0 -27
  119. package/esm2020/lib/core/menu-ge-portal/menu-ge-portal.component.mjs +0 -105
  120. package/esm2020/lib/core/menu-warranty/menu-warranty.component.mjs +0 -35
  121. package/esm2020/lib/core/not-found/not-found.component.mjs +0 -19
  122. package/esm2020/lib/core/top-bar/top-bar.component.mjs +0 -41
  123. package/esm2020/lib/models/account.model.mjs +0 -3
  124. package/esm2020/lib/models/alternativeDate.model.mjs +0 -3
  125. package/esm2020/lib/models/applicationName.mjs +0 -7
  126. package/esm2020/lib/models/cancelPMMailRequest.model.mjs +0 -4
  127. package/esm2020/lib/models/customObject.model.mjs +0 -3
  128. package/esm2020/lib/models/detailedPmJob.model.mjs +0 -3
  129. package/esm2020/lib/models/emailStatus.mjs +0 -6
  130. package/esm2020/lib/models/emailType.mjs +0 -17
  131. package/esm2020/lib/models/eventStatus.mjs +0 -9
  132. package/esm2020/lib/models/field.mjs +0 -9
  133. package/esm2020/lib/models/language.mjs +0 -6
  134. package/esm2020/lib/models/mailRequest.model.mjs +0 -3
  135. package/esm2020/lib/models/pMGroupedJob.model.mjs +0 -3
  136. package/esm2020/lib/models/pmJob.model.mjs +0 -3
  137. package/esm2020/lib/models/pmJobRequest.model.mjs +0 -3
  138. package/esm2020/lib/models/pmJobStatus.mjs +0 -17
  139. package/esm2020/lib/models/reason.model.mjs +0 -3
  140. package/esm2020/lib/models/reasonCode.mjs +0 -9
  141. package/esm2020/lib/models/reasonContact.mjs +0 -8
  142. package/esm2020/lib/models/reportDateMailRequest.model.mjs +0 -4
  143. package/esm2020/lib/models/role.mjs +0 -7
  144. package/esm2020/lib/models/service.model.mjs +0 -3
  145. package/esm2020/lib/models/serviceName.mjs +0 -12
  146. package/esm2020/lib/models/socialLoginRequest.model.mjs +0 -3
  147. package/esm2020/lib/models/socialMadia.mjs +0 -5
  148. package/esm2020/lib/models/stingBoolean.mjs +0 -6
  149. package/esm2020/lib/models/system.mjs +0 -3
  150. package/esm2020/lib/models/theme.model.mjs +0 -2
  151. package/esm2020/lib/models/tokenStatus.mjs +0 -7
  152. package/esm2020/lib/models/warranty.mjs +0 -3
  153. package/esm2020/lib/pipes/pipes/pipes.module.mjs +0 -21
  154. package/esm2020/lib/pipes/subrtring-w.pipe.mjs +0 -20
  155. package/esm2020/lib/pipes/substring.pipe.mjs +0 -16
  156. package/esm2020/lib/shared/choose-another-date/choose-another-date.component.mjs +0 -110
  157. package/esm2020/lib/shared/confirm-dialog/confirm-dialog.component.mjs +0 -45
  158. package/esm2020/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.mjs +0 -42
  159. package/esm2020/lib/shared/confirmed-date-information/confirmed-date-information.component.mjs +0 -39
  160. package/esm2020/lib/shared/contact/contact.component.mjs +0 -160
  161. package/esm2020/lib/shared/contact-support/contact-support.component.mjs +0 -172
  162. package/esm2020/lib/shared/dashboard/dashboard.component.mjs +0 -35
  163. package/esm2020/lib/shared/maintenance-list/maintenance-list.component.mjs +0 -352
  164. package/esm2020/lib/shared/shared-routing.module.mjs +0 -18
  165. package/esm2020/lib/shared/shared.module.mjs +0 -144
  166. package/esm2020/lib/shared/show-links/show-links.component.mjs +0 -80
  167. package/esm2020/lib/shared/system-list/system-list.component.mjs +0 -33
  168. package/esm2020/public-api.mjs +0 -48
  169. package/fesm2015/awf-test-lib.mjs +0 -1654
  170. package/fesm2015/awf-test-lib.mjs.map +0 -1
  171. package/fesm2020/awf-test-lib.mjs +0 -1650
  172. package/fesm2020/awf-test-lib.mjs.map +0 -1
  173. package/index.d.ts +0 -5
  174. package/lib/core/core-routing.module.d.ts +0 -7
  175. package/lib/core/core.module.d.ts +0 -15
  176. package/lib/core/menu/menu.component.d.ts +0 -17
  177. package/lib/core/menu-consomer/menu-consomer.component.d.ts +0 -12
  178. package/lib/core/menu-ge-portal/menu-ge-portal.component.d.ts +0 -20
  179. package/lib/core/menu-warranty/menu-warranty.component.d.ts +0 -15
  180. package/lib/core/not-found/not-found.component.d.ts +0 -10
  181. package/lib/core/top-bar/top-bar.component.d.ts +0 -13
  182. package/lib/models/alternativeDate.model.d.ts +0 -6
  183. package/lib/models/applicationName.d.ts +0 -5
  184. package/lib/models/customObject.model.d.ts +0 -3
  185. package/lib/models/detailedPmJob.model.d.ts +0 -23
  186. package/lib/models/emailStatus.d.ts +0 -4
  187. package/lib/models/emailType.d.ts +0 -15
  188. package/lib/models/eventStatus.d.ts +0 -7
  189. package/lib/models/field.d.ts +0 -7
  190. package/lib/models/language.d.ts +0 -4
  191. package/lib/models/pMGroupedJob.model.d.ts +0 -3
  192. package/lib/models/pmJobRequest.model.d.ts +0 -5
  193. package/lib/models/reason.model.d.ts +0 -4
  194. package/lib/models/reasonCode.d.ts +0 -7
  195. package/lib/models/reasonContact.d.ts +0 -6
  196. package/lib/models/role.d.ts +0 -5
  197. package/lib/models/service.model.d.ts +0 -8
  198. package/lib/models/serviceName.d.ts +0 -10
  199. package/lib/models/socialMadia.d.ts +0 -3
  200. package/lib/models/stingBoolean.d.ts +0 -4
  201. package/lib/models/system.d.ts +0 -14
  202. package/lib/models/tokenStatus.d.ts +0 -5
  203. package/lib/models/warranty.d.ts +0 -17
  204. package/lib/pipes/pipes/pipes.module.d.ts +0 -9
  205. package/lib/pipes/subrtring-w.pipe.d.ts +0 -7
  206. package/lib/pipes/substring.pipe.d.ts +0 -7
  207. package/lib/shared/choose-another-date/choose-another-date.component.d.ts +0 -33
  208. package/lib/shared/confirm-dialog/confirm-dialog.component.d.ts +0 -21
  209. package/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.d.ts +0 -19
  210. package/lib/shared/confirmed-date-information/confirmed-date-information.component.d.ts +0 -17
  211. package/lib/shared/contact/contact.component.d.ts +0 -39
  212. package/lib/shared/contact-support/contact-support.component.d.ts +0 -50
  213. package/lib/shared/dashboard/dashboard.component.d.ts +0 -18
  214. package/lib/shared/maintenance-list/maintenance-list.component.d.ts +0 -81
  215. package/lib/shared/shared-routing.module.d.ts +0 -7
  216. package/lib/shared/shared.module.d.ts +0 -40
  217. package/lib/shared/show-links/show-links.component.d.ts +0 -24
  218. 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
- export declare class Account {
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?: string;
8
- isVerified?: boolean;
9
+ language?:string;
10
+ isVerified?:boolean;
11
+
9
12
  role?: string;
10
13
  accessToken?: string;
11
14
  refreshToken?: string;
@@ -0,0 +1,6 @@
1
+ export class AlternativeDate {
2
+ startDateTime!: string;
3
+ endDateTime!: string;
4
+ fseSSO?: string[];
5
+ selected?: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ export enum ApplicationName {
2
+ ConsomerPortal = 'ConsomerPortal',
3
+ WarrantyPortal = 'WarrantyPortal',
4
+ GEPortal = 'GEPortal'
5
+ }
6
+
@@ -1,5 +1,7 @@
1
1
  import { MailRequest } from "./mailRequest.model";
2
- export declare class CancelPMMailRequest extends MailRequest {
2
+
3
+ export class CancelPMMailRequest extends MailRequest
4
+ {
3
5
  pm_Number?: string;
4
6
  motive?: string;
5
7
  }
@@ -0,0 +1,4 @@
1
+ export class CustomObject {
2
+ customerWaiting?: string;
3
+ }
4
+
@@ -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,4 @@
1
+ export enum EmailStatus {
2
+ Verifying,
3
+ Failed
4
+ }
@@ -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
+
@@ -0,0 +1,8 @@
1
+ export enum EventStatus {
2
+ ASSIGNEDANC = 'Assigned ANC',
3
+ ASSIGNED = "Assigned",
4
+ ASSIGNEDPINNED = "Assigned Pinned",
5
+ COMPLETE = "Complete",
6
+ INCOMPLETE = "Incomplete",
7
+
8
+ }
@@ -0,0 +1,7 @@
1
+ export enum Field {
2
+ Textbox = 'textbox',
3
+ File = 'file',
4
+ Dropdown = 'dropdown',
5
+ Radio = 'radio',
6
+ Checkbox = 'checkbox'
7
+ }
@@ -0,0 +1,4 @@
1
+ export enum Language {
2
+ FR = "fr-FR",
3
+ EN = "en-US",
4
+ }
@@ -1,4 +1,6 @@
1
- export declare class MailRequest {
1
+ import { System } from "./system";
2
+
3
+ export class MailRequest {
2
4
  sr_Number?: string;
3
5
  facility_name?: string;
4
6
  city?: string;
@@ -0,0 +1,4 @@
1
+ export class PMGroupedJob
2
+ {
3
+ workorderId!: string;
4
+ }
@@ -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
- export declare class PmJob {
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: string;
13
- endDateTime: string;
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: AlternativeDate[];
20
- groupList: PMGroupedJob[];
21
- customObject: CustomObject;
20
+ alternativeDates!: AlternativeDate[];
21
+ groupList!: PMGroupedJob[];
22
+ customObject!:CustomObject ;
22
23
  caseDescription?: string;
23
24
  fseName?: string;
24
25
  caseStatus?: string;
@@ -0,0 +1,6 @@
1
+ import { PmJob } from "./pmJob.model";
2
+
3
+ export class PmJobRequest {
4
+ countrymodule?:string;
5
+ pmJob?: PmJob;
6
+ }
@@ -1,5 +1,5 @@
1
- export declare enum PmJobStatus {
2
- NEW = "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,7 @@
1
+
2
+
3
+ export class Reason {
4
+ name!: string;
5
+ code!: string;
6
+ }
7
+
@@ -0,0 +1,9 @@
1
+ export enum ReasonCode {
2
+ MPM = 'MPM',
3
+ RPM = "RPM",
4
+ CPM = "CPM",
5
+ SDI = "SDI",
6
+ OTH = "OTH",
7
+
8
+ }
9
+
@@ -0,0 +1,7 @@
1
+ export enum ReasonContact {
2
+ MoreDatesFormPm = 'MoreDatesFormPm',
3
+ ContactFormPm = 'ContactFormPm',
4
+ CancelFormPm = 'CancelFormPm',
5
+ Contact = 'Contact'
6
+ }
7
+
@@ -1,5 +1,7 @@
1
1
  import { MailRequest } from "./mailRequest.model";
2
- export declare class ReportDateMailRequest extends MailRequest {
2
+
3
+ export class ReportDateMailRequest extends MailRequest
4
+ {
3
5
  pm_Number?: string;
4
6
  date?: string;
5
7
  }
@@ -0,0 +1,5 @@
1
+ export enum Role {
2
+ User = 'BasicUser',
3
+ Admin = 'Admin',
4
+ RGPDUser = "RGPDUser"
5
+ }
@@ -0,0 +1,8 @@
1
+ export class Service {
2
+ id?: string;
3
+ label!: string;
4
+ name!: string;
5
+ routerLink!: string;
6
+ description!: string;
7
+ display!: boolean
8
+ }
@@ -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
+
@@ -1,4 +1,4 @@
1
- export declare class SocialLoginRequest {
1
+ export class SocialLoginRequest {
2
2
  acessToken?: string;
3
3
  userName?: string;
4
4
  applicationName?: string;
@@ -0,0 +1,4 @@
1
+ export enum SocialMadia {
2
+ Gmail = 'Gmail',
3
+ }
4
+
@@ -0,0 +1,7 @@
1
+
2
+
3
+ export enum StingBoolean {
4
+ YES = 'Yes',
5
+ NO = 'No',
6
+ }
7
+
@@ -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: string;
14
- navBackground: string;
15
- navColor: string;
14
+ primarycolorwhite:string;
15
+ navBackground:string;
16
+ navColor:string;
16
17
  borderbutton: string;
17
- borderraduis: string;
18
- bordercolor: string;
18
+ borderraduis :string;
19
+ bordercolor : string;
19
20
  fontsizeH1: string;
20
- fontsizeH2: string;
21
- fontsizeH3: string;
21
+ fontsizeH2 :string;
22
+ fontsizeH3 : string;
22
23
  fontsizeH4: string;
23
- fontsizeH5: string;
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
- ligthprimarycolor: string;
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,6 @@
1
+
2
+ export enum TokenStatus {
3
+ Validating,
4
+ Valid,
5
+ Invalid
6
+ }
@@ -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,8 @@
1
+ import { SubrtringWPipe } from './subrtring-w.pipe';
2
+
3
+ describe('SubrtringWPipe', () => {
4
+ it('create an instance', () => {
5
+ const pipe = new SubrtringWPipe();
6
+ expect(pipe).toBeTruthy();
7
+ });
8
+ });
@@ -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,8 @@
1
+ import { SubstringPipe } from "./SubstringPipe";
2
+
3
+ describe('SubstringPipe', () => {
4
+ it('create an instance', () => {
5
+ const pipe = new SubstringPipe();
6
+ expect(pipe).toBeTruthy();
7
+ });
8
+ });
@@ -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>