@aggdirect/coolmap 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/esm2020/aggdirect-coolmap.mjs +5 -0
  2. package/esm2020/lib/component/job-code/job-code.component.mjs +114 -0
  3. package/esm2020/lib/component/map/map.component.mjs +35 -0
  4. package/esm2020/lib/component/nav/layout/add-route-nav/add-route-nav.component.mjs +87 -0
  5. package/esm2020/lib/component/nav/layout/job-code-nav/job-code-nav.component.mjs +89 -0
  6. package/esm2020/lib/component/nav/nav.component.mjs +52 -0
  7. package/esm2020/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.mjs +68 -0
  8. package/esm2020/lib/component/route-jobcode-list/route-jobcode-list.component.mjs +314 -0
  9. package/esm2020/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.mjs +19 -0
  10. package/esm2020/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.mjs +29 -0
  11. package/esm2020/lib/component/shared/dialog/dialog.component.mjs +29 -0
  12. package/esm2020/lib/component/shared/job-route-list/job-route-list.component.mjs +71 -0
  13. package/esm2020/lib/component/shared/jobcode-overview/jobcode-overview.component.mjs +19 -0
  14. package/esm2020/lib/component/shared/jobcode-status/jobcode-status.component.mjs +14 -0
  15. package/esm2020/lib/coolmap.component.mjs +22 -0
  16. package/esm2020/lib/coolmap.module.mjs +153 -0
  17. package/esm2020/public-api.mjs +10 -0
  18. package/fesm2015/aggdirect-coolmap.mjs +1037 -0
  19. package/fesm2015/aggdirect-coolmap.mjs.map +1 -0
  20. package/fesm2020/aggdirect-coolmap.mjs +1020 -0
  21. package/fesm2020/aggdirect-coolmap.mjs.map +1 -0
  22. package/index.d.ts +5 -0
  23. package/lib/component/job-code/job-code.component.d.ts +31 -0
  24. package/lib/component/map/map.component.d.ts +14 -0
  25. package/lib/component/nav/layout/add-route-nav/add-route-nav.component.d.ts +40 -0
  26. package/lib/component/nav/layout/job-code-nav/job-code-nav.component.d.ts +38 -0
  27. package/lib/component/nav/nav.component.d.ts +30 -0
  28. package/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.d.ts +19 -0
  29. package/lib/component/route-jobcode-list/route-jobcode-list.component.d.ts +42 -0
  30. package/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.d.ts +9 -0
  31. package/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.d.ts +11 -0
  32. package/lib/component/shared/dialog/dialog.component.d.ts +13 -0
  33. package/lib/component/shared/job-route-list/job-route-list.component.d.ts +26 -0
  34. package/lib/component/shared/jobcode-overview/jobcode-overview.component.d.ts +9 -0
  35. package/lib/component/shared/jobcode-status/jobcode-status.component.d.ts +8 -0
  36. package/lib/coolmap.component.d.ts +8 -0
  37. package/lib/coolmap.module.d.ts +39 -0
  38. package/package.json +28 -5
  39. package/{src/public-api.ts → public-api.d.ts} +0 -4
  40. package/karma.conf.js +0 -44
  41. package/ng-package.json +0 -7
  42. package/src/assets/mixin.scss +0 -28
  43. package/src/assets/palette.scss +0 -24
  44. package/src/assets/variable.scss +0 -15
  45. package/src/lib/component/add-route/add-route.component.html +0 -140
  46. package/src/lib/component/add-route/add-route.component.scss +0 -235
  47. package/src/lib/component/add-route/add-route.component.spec.ts +0 -23
  48. package/src/lib/component/add-route/add-route.component.ts +0 -270
  49. package/src/lib/component/job-code/job-code.component.html +0 -93
  50. package/src/lib/component/job-code/job-code.component.scss +0 -427
  51. package/src/lib/component/job-code/job-code.component.ts +0 -94
  52. package/src/lib/component/map/map.component.css +0 -0
  53. package/src/lib/component/map/map.component.html +0 -5
  54. package/src/lib/component/map/map.component.spec.ts +0 -23
  55. package/src/lib/component/map/map.component.ts +0 -33
  56. package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.html +0 -44
  57. package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.scss +0 -0
  58. package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.spec.ts +0 -23
  59. package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.ts +0 -70
  60. package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.html +0 -43
  61. package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.scss +0 -5
  62. package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.ts +0 -64
  63. package/src/lib/component/nav/nav.component.html +0 -19
  64. package/src/lib/component/nav/nav.component.scss +0 -65
  65. package/src/lib/component/nav/nav.component.ts +0 -38
  66. package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.html +0 -56
  67. package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.scss +0 -167
  68. package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.spec.ts +0 -23
  69. package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.ts +0 -42
  70. package/src/lib/component/route-jobcode-list/route-jobcode-list.component.html +0 -66
  71. package/src/lib/component/route-jobcode-list/route-jobcode-list.component.scss +0 -226
  72. package/src/lib/component/route-jobcode-list/route-jobcode-list.component.ts +0 -234
  73. package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.html +0 -7
  74. package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.scss +0 -10
  75. package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.spec.ts +0 -23
  76. package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.ts +0 -15
  77. package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.html +0 -30
  78. package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.scss +0 -172
  79. package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.spec.ts +0 -23
  80. package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.ts +0 -19
  81. package/src/lib/component/shared/dialog/dialog.component.html +0 -7
  82. package/src/lib/component/shared/dialog/dialog.component.scss +0 -30
  83. package/src/lib/component/shared/dialog/dialog.component.ts +0 -18
  84. package/src/lib/component/shared/job-route-list/job-route-list.component.html +0 -27
  85. package/src/lib/component/shared/job-route-list/job-route-list.component.scss +0 -3
  86. package/src/lib/component/shared/job-route-list/job-route-list.component.spec.ts +0 -23
  87. package/src/lib/component/shared/job-route-list/job-route-list.component.ts +0 -54
  88. package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.html +0 -8
  89. package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.scss +0 -12
  90. package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.spec.ts +0 -23
  91. package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.ts +0 -15
  92. package/src/lib/component/shared/jobcode-status/jobcode-status.component.html +0 -5
  93. package/src/lib/component/shared/jobcode-status/jobcode-status.component.scss +0 -32
  94. package/src/lib/component/shared/jobcode-status/jobcode-status.component.spec.ts +0 -23
  95. package/src/lib/component/shared/jobcode-status/jobcode-status.component.ts +0 -12
  96. package/src/lib/coolmap.component.ts +0 -20
  97. package/src/lib/coolmap.module.ts +0 -92
  98. package/src/test.ts +0 -27
  99. package/tsconfig.lib.json +0 -15
  100. package/tsconfig.lib.prod.json +0 -10
  101. package/tsconfig.spec.json +0 -17
@@ -1,226 +0,0 @@
1
- @import "../../../assets/variable.scss";
2
- .driver_iconprt{
3
- position: absolute;
4
- right: 10px;
5
- top: 12px;
6
- z-index: 9999;
7
- img{
8
- width: 25px;
9
- height: 25px;
10
- }
11
- }
12
- .driver_list{
13
- background: $white;
14
- position: fixed;
15
- width: 300px;
16
- top: 10px;
17
- left: 360px;
18
- border-top-left-radius: 20px;
19
- border-top-right-radius: 20px;
20
- .driver_headingprt{
21
- display: flex;
22
- justify-content: space-between;
23
- align-items: center;
24
- padding: 0 15px;
25
- button{
26
- background: none;
27
- border: 1px solid #ccc;
28
- border-radius: 10px;
29
- padding: 5px 20px;
30
- &:hover{
31
- background: $blue;
32
- color: $white;
33
- }
34
- }
35
- }
36
- h2{
37
- font-size: 20px;
38
- }
39
- .driverList{
40
- height: 300px;
41
- overflow: auto;
42
- li{
43
- display: flex;
44
- padding: 10px;
45
- align-items: flex-start;
46
- cursor: pointer;
47
- border-bottom: 1px solid $white;
48
- background: #eee;
49
- img{
50
- width: 35px;
51
- height: 35px;
52
- border-radius: 100%;
53
- margin-right: 10px;
54
- }
55
- .driver_detail{
56
- width: calc(100% - 45px);
57
- display: flex;
58
- flex-direction: column;
59
- justify-content: flex-start;
60
- b{
61
- white-space: nowrap;
62
- overflow: hidden;
63
- text-overflow: ellipsis;
64
- max-width: 135px;
65
- font-size: 0.9rem;
66
- }
67
- span{
68
- white-space: nowrap;
69
- overflow: hidden;
70
- text-overflow: ellipsis;
71
- max-width: 150px;
72
- font-size: 0.8rem;
73
- }
74
- }
75
- }
76
- }
77
-
78
- &:after{
79
- height: 10px;
80
- background: $white;
81
- border-bottom-right-radius: 20px;
82
- border-bottom-left-radius: 20px;
83
- content: "";
84
- position: absolute;
85
- bottom: -9px;
86
- width: 100%;
87
- }
88
- }
89
- .smslist{
90
- background: $white;
91
- position: absolute;
92
- width: 480px;
93
- top: 0px;
94
- left: 105%;
95
- border-radius: 20px;
96
- padding-bottom: 20px;
97
- .heading{
98
- display: flex;
99
- justify-content: space-between;
100
- align-items: center;
101
- padding: 0 15px;
102
- }
103
- .detailprt{
104
- padding: 0 15px;
105
- span{
106
- display: flex;
107
- margin-bottom: 12px;
108
- font-size: 0.8rem;
109
- align-items: center;
110
- label{
111
- font-weight: 600;
112
- width: 37%;
113
- }
114
- }
115
- .form_input{
116
- display: flex;
117
- flex-direction: column;
118
- font-size: 0.8rem;
119
- button{
120
- background: $blue;
121
- padding: 10px 18px 10px 18px;
122
- color: white;
123
- font-size: 0.8125rem;
124
- border-radius: 30px;
125
- display: flex;
126
- align-self: flex-end;
127
- }
128
- }
129
- }
130
- }
131
- .closebtn{
132
- box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.11);
133
- border-radius: 100%;
134
- width: 30px;
135
- height: 30px;
136
- display: flex;
137
- justify-content: center;
138
- align-items: center;
139
- cursor: pointer;
140
- background: #f5f5f5;
141
- }
142
- .show_routebtn{
143
- font-size: 0.9rem;
144
- margin-bottom: 20px;
145
- padding: 6px 11px;
146
- border-radius: 5%;
147
- position: absolute;
148
- top: 8px;
149
- right: 10px;
150
- background-color: transparent;
151
- color: $buttoncolor;
152
- border: 1px solid $buttoncolor;
153
- border-radius: 10px;
154
- box-shadow: none;
155
- &:hover{
156
- background-color: $buttoncolor;
157
- color: $white;
158
- }
159
- }
160
- .cont_del{
161
- margin-top: 10px;
162
- small{
163
- display: block;
164
- }
165
- }
166
- .jobList{
167
- ul {
168
- margin: 0 15px 0 10px;
169
- width: 100%;
170
- li{
171
- position: relative;
172
- background: $softwhite;
173
- padding: 10px 10px;
174
- border-radius: 15px;
175
- margin-bottom: 5px;
176
- border: 1px solid $softwhite;
177
- border-left: 3px solid $softwhite;
178
- cursor: pointer;
179
- height: inherit;
180
- @media (min-width:2500px) {
181
- height: 7.65vh;
182
- }
183
- @media (min-width:3300px) {
184
- height: 5.61vh;
185
- }
186
- }
187
- }
188
- }
189
- .viewroute{
190
- ul {
191
- margin: 0 15px 0 15px;
192
- width: 100%;
193
- li{
194
- position: relative;
195
- background: $softwhite;
196
- padding: 7px 10px;
197
- border-radius: 15px;
198
- margin-bottom: 5px;
199
- border: 1px solid $softwhite;
200
- border-left: 3px solid $softwhite;
201
- cursor: pointer;
202
- height: 16.4vh;
203
- @media (min-width:1600px) {
204
- height: 12.4vh;
205
- }
206
-
207
- &.active{
208
- border: 1px solid $green;
209
- border-left: 3px solid $green;
210
- }
211
- }
212
- }
213
- }
214
- .loader{
215
- position: absolute;
216
- height: 100%;
217
- top: 0;
218
- left: 0;
219
- width: 100%;
220
- display: flex;
221
- align-items: center;
222
- justify-content: center;
223
- pointer-events: none;
224
- }
225
-
226
-
@@ -1,234 +0,0 @@
1
- import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from '@angular/core';
2
- import { SelectionModel } from '@angular/cdk/collections';
3
- import { FormControl, Validators } from '@angular/forms';
4
- import { CoolmapService, Route, UtilsService } from 'coolmap-services';
5
-
6
- @Component({
7
- selector: 'app-route-jobcode-list',
8
- templateUrl: './route-jobcode-list.component.html',
9
- styleUrls: ['./route-jobcode-list.component.scss']
10
- })
11
- export class RouteJobCodeListComponent implements OnInit, OnChanges {
12
- @Input() loader = true;
13
- @Input() type: string = '';
14
- @Input() data: Route[] = [];
15
- @Input() currentNav: string = ''
16
- @Output() emitroute = new EventEmitter();
17
- @Output() showAllRoute = new EventEmitter();
18
- preventMouseout: boolean = false;
19
- filterList: Route[] = this.data;
20
- @Input() searchTerm!: any;
21
- isDriverList: boolean = false;
22
- public selectedRoute = new SelectionModel<any>(true, [])
23
- driverList!: any;
24
- preventListSelect: boolean = false;
25
- @Output() clearJobDetailsFromList = new EventEmitter();
26
- preventDetailsClose = false;
27
- messageLoader: boolean = false;
28
- driverMessage = new FormControl('', [Validators.maxLength(256)]);
29
- @Input() clearListSeletion: boolean;
30
- isSmsList: boolean = false;
31
- constructor(private coolMap: CoolmapService, private utils: UtilsService) { this.driverList = [] }
32
- ngOnInit(): void {
33
- this.utils.getpreVentJobdetailclose.subscribe(res => { this.preventDetailsClose = res });
34
- this.utils.removeMapEntityUtility.subscribe((res: Route) => {this.passRoute(res)});
35
- }
36
- passRoute(job: Route) {
37
- this.data.forEach((each) => { if (each['route_id'] !== job['route_id']) { each['isActive'] = false } else { each['isActive'] = true } });
38
- if (this.type == 'addroute') this.filterList.forEach(ele => this.coolMap.filterRoute(ele['route_id'], 'none'));
39
- }
40
- selectRoute(route: any) {
41
- if (!this.preventListSelect) {
42
- this.preventListSelect = true;
43
- this.selectedRoute.toggle(route);
44
- this.clearJobDetailsFromList.emit(true);
45
- this.utils.preVentJobdetailclose.next(false);
46
- this.filterList.forEach(ele => this.coolMap.filterRoute(ele['job_id'], 'none'));
47
- this.clearList();
48
- this.selectedRoute.selected.forEach((ele, index) => {
49
- this.coolMap.filterRoute(ele['job_id'], 'visible', ((this.selectedRoute.selected.length - 1) === index)).then(() => {
50
- this.preventListSelect = false;
51
- })
52
- });
53
- if (!this.selectedRoute.selected.length) {
54
- this.preventListSelect = false
55
- this.data.forEach(ele => this.coolMap.filterRoute(ele['job_id'], 'visible'));
56
- };
57
- }
58
- }
59
- checkroutes(route: Route) {
60
- const selectedRoute = this.selectedRoute.selected;
61
- this.filterList = this.filterList.map(ele => { ele['isSelected'] = false; return ele })
62
- if (selectedRoute.length > 0) {
63
- selectedRoute.forEach(ele => {
64
- if (route['order_number'] === ele['order_number']) { ele['isSelected'] = true }
65
- });
66
- } return route
67
- }
68
- ngOnChanges(changes: SimpleChanges) {
69
- setTimeout(() => {
70
- if (this.currentNav === 'Addroute' && (this.data.length < this.filterList.length)) {
71
- const index = this.filterList.findIndex(ele => ele.isActive);
72
- if (index > 0) this.filterList[index].isActive = false;
73
- this.data.forEach((ele: Route, indexForData: number) => {
74
- const id = (ele['job_id'] ? ele['job_id'] : ele['route_id'])
75
- this.coolMap.plotRoute(ele, id, this.type, false, (indexForData === (this.data.length - 1))).then((res) => {
76
- });
77
- });
78
- }
79
- }, 500);
80
- if (changes['data'] && changes['data']['currentValue']) {
81
- this.filterList = changes['data']['currentValue'];
82
- if (this.searchTerm) {
83
- if (this.searchTerm.length > 0) {
84
-
85
- this.data = this.utils.getSearchResults(changes['data']['currentValue'], this.searchTerm);
86
- this.filterList = this.data;
87
- } else {
88
- this.filterList = changes['data']['currentValue'];
89
- }
90
- }
91
-
92
- if (this.type === 'jobcode') {
93
- this.loader = true; this.clearList();
94
- if (this.filterList.length === 0) this.loader = false;
95
- }
96
-
97
- if (this.type !== 'jobcode') {
98
- if (changes['data']['previousValue'] && this.currentNav === 'addForm') {
99
- const activeRoute = changes['data']['previousValue'].find((ele: Route) => ele.isActive);
100
- if (activeRoute) {
101
- this.filterList.map((item: any) => {
102
- if (item.route_id === activeRoute.route_id) {
103
- item.isActive = true;
104
- }
105
- })
106
- }
107
- }
108
- }
109
- if (changes['data']['previousValue'] && this.currentNav !== 'addForm') {
110
- this.coolMap.removeJobFromMap(changes['data']['previousValue']);
111
- this.selectedRoute.clear();
112
- };
113
- if (this.currentNav !== 'addForm') {
114
- changes['data']['currentValue'].forEach((ele: Route, indexForData: number) => {
115
- const id = (ele['job_id'] ? ele['job_id'] : ele['route_id'])
116
- this.coolMap.plotRoute(ele, id, this.type, false, (indexForData === (this.data.length - 1))).then((res) => {
117
- if (indexForData === (this.data.length - 1)) {
118
- this.loader = false;
119
- this.utils.preventnavChange.next(true);
120
- }
121
- });
122
- });
123
- }
124
- }
125
- if (changes['searchTerm']) {
126
- if (this.filterList) {
127
- this.data = this.filterList;
128
- this.clearList();
129
- if (changes['searchTerm']['currentValue'].length > 0) {
130
- this.coolMap.removeRouteAndMarker(1);
131
- this.data = this.utils.getSearchResults(this.data, changes['searchTerm']['currentValue']);
132
- } else { this.data = this.filterList; }
133
- setTimeout(() => {
134
- this.coolMap.clearBoundWithCordinates();
135
- if (this.currentNav !== 'addForm' && !this.selectedRoute['selected'].length) {
136
- this.coolMap.removeRouteAndMarker(1);
137
- this.toggleFilterRoute(this.filterList);
138
- }
139
- }, 500);
140
- if (this.currentNav !== 'addForm' && this.selectedRoute['selected'].length) {
141
- if (this.data && this.data.length > 0) {
142
- this.clearList();
143
- this.clearJobDetailsFromList.emit(true)
144
- this.coolMap.removeJobFromMap(this.selectedRoute.selected);
145
- setTimeout(() => {
146
- this.data.forEach((ele, indexForData) => {
147
- this.coolMap.plotRoute(ele, ele['job_id'], this.type, false, (indexForData === (this.data.length - 1))).then(() => {
148
- if (indexForData === (this.data.length - 1)) { this.loader = false; this.utils.preventnavChange.next(true) }
149
- if (this.selectedRoute['selected'].length && this.selectedRoute['selected'][0]['job_id'] === ele['job_id']) {
150
- this.selectedRoute.clear()
151
- }
152
- });
153
- })
154
- }, 500);
155
- }
156
- }
157
- }
158
- }
159
- }
160
- showRoute() {
161
- this.utils.preventnavChange.next(false);
162
- this.loader = true; this.clearList();
163
- this.showAllRoute.emit(true);
164
- if (this.filterList && this.filterList.length > 0) {
165
- this.coolMap.removeJobFromMap(this.selectedRoute.selected);
166
- setTimeout(() => {
167
- this.filterList.forEach((ele, indexForData) => {
168
- this.coolMap.plotRoute(ele, ele['job_id'], this.type, false, (indexForData === this.filterList.length - 1)).then(() => {
169
- if (indexForData === this.filterList.length - 1) { this.loader = false; this.utils.preventnavChange.next(true) }
170
- if (this.selectedRoute['selected'].length && this.selectedRoute['selected'][0]['job_id'] === ele['job_id']) {
171
- this.selectedRoute.clear();
172
- }
173
- });
174
- })
175
- }, 500);
176
- }
177
- }
178
- toggleDrivermenu(event: any) {
179
- const mouseevntType = event.mouseevntType; let route = event.route;
180
- const isHoverOut = event.isHoverOut;
181
- if(typeof(mouseevntType) === 'string') {if(this.preventMouseout){this.isDriverList = !this.isDriverList}; this.preventMouseout = true}
182
- if (typeof(mouseevntType) === 'boolean' &&!mouseevntType && !this.preventMouseout) { this.isDriverList = mouseevntType };
183
- if (typeof(mouseevntType) === 'boolean' && mouseevntType && !this.preventMouseout) { this.isDriverList = mouseevntType };
184
- if(this.preventMouseout && !this.isDriverList) this.preventMouseout = false;
185
- if (isHoverOut) {
186
- if (this.preventMouseout) {
187
- route = this.utils.getdictValue('driver-details');
188
- this.driverList = route;
189
- }
190
- if (!this.preventMouseout) {
191
- this.driverList = route
192
- }
193
- } else {
194
- this.driverList = route
195
- }
196
- }
197
- visiblesection(value: string) { if (this.type === value) { return true } else return false }
198
- toggleFilterRoute(filterList: Route[]) {
199
- filterList.forEach((ele) => {
200
- const filterItem = (this.type === 'jobcode') ? 'job_id' : 'route_id';
201
- const index = this.data.findIndex((ele1) => { return (ele1[`${filterItem}`] === ele[`${filterItem}`]) });
202
- const id = (ele['job_id'] ? ele['job_id'] : ele['route_id']);
203
- if (id && index < 0) this.coolMap.filterRoute(id, 'none');
204
- if (id && index >= 0) {
205
- this.data[index].isActive = false;
206
- this.coolMap.filterRoute(id, 'visible');
207
- this.coolMap.extendBound(ele['path'], (index === (this.data.length - 1)));
208
- };
209
- });
210
- }
211
- clearList() {
212
- this.isDriverList = false; this.driverList = null; this.preventMouseout = false; this.isSmsList = false;
213
- }
214
- sendMessage() {
215
- this.messageLoader = true
216
- if (this.driverMessage.valid) {
217
- const data = {
218
- order_number: this.driverList['order_number'],
219
- date: this.driverList['date'],
220
- message: this.driverMessage.value,
221
- }
222
- this.utils.postdata('coolmap/jobs_report_chat', data).subscribe((res: any) => {
223
- if (res['data']['status'] === 'Success.') {
224
- this.messageLoader = false;
225
- this.driverMessage.reset();
226
- this.utils.openSnackBar('Message Sent', 'success');
227
- } else {
228
- this.messageLoader = false;
229
- this.utils.openSnackBar('Message not sent', 'error');
230
- }
231
- }, err => {if(err) {this.messageLoader = false}})
232
- }
233
- }
234
- }
@@ -1,7 +0,0 @@
1
- <ng-container *ngFor="let item of label">
2
- <span>
3
- <label>{{overViewEnum[item]}}</label>
4
- <ng-container *ngIf="item !== 'values'">{{jobValue[item] ? jobValue[item] : 'N/A'}}</ng-container>
5
- <ng-container *ngIf="item === 'values'">{{jobValue[item]['Done'] + jobValue[item]['Ongoing'] + jobValue[item]['Open']}}</ng-container>
6
- </span>
7
- </ng-container>
@@ -1,10 +0,0 @@
1
- span{
2
- display: flex;
3
- margin-bottom: 12px;
4
- font-size: 0.8rem;
5
- align-items: center;
6
- label{
7
- font-weight: 600;
8
- width: 37%;
9
- }
10
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { SmsCardDetailsOverviewComponent } from './sms-card-details-overview.component';
4
-
5
- describe('SmsCardDetailsOverviewComponent', () => {
6
- let component: SmsCardDetailsOverviewComponent;
7
- let fixture: ComponentFixture<SmsCardDetailsOverviewComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ SmsCardDetailsOverviewComponent ]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(SmsCardDetailsOverviewComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,15 +0,0 @@
1
- import { Component, Input } from '@angular/core';
2
- import { DriverSmsCardEnum, DriversmsCardKey } from 'coolmap-services';
3
-
4
- @Component({
5
- selector: 'app-sms-card-details-overview',
6
- templateUrl: './sms-card-details-overview.component.html',
7
- styleUrls: ['./sms-card-details-overview.component.scss']
8
- })
9
- export class SmsCardDetailsOverviewComponent {
10
- @Input() jobValue: any;
11
- label = DriversmsCardKey;
12
- overViewEnum: any = DriverSmsCardEnum;
13
- constructor() { }
14
-
15
- }
@@ -1,30 +0,0 @@
1
- <div class="routebox">
2
- <span>
3
- <mat-icon>directions</mat-icon>
4
- <h2 [ngClass]="{'routeheading': route['route_name']}">
5
- {{route['route_name']}}
6
- </h2>
7
- </span>
8
- <h3>{{route['customer_name']}} | {{route['material']}}</h3>
9
-
10
- <div class="pickdropprt">
11
- <div class="pickprt">
12
- <b>
13
- <h4>{{route['pickup_location']}}</h4>
14
- </b>
15
- </div>
16
- <div class="dropprt">
17
- <b>
18
- <h4>{{route['delivery_location']}}</h4>
19
- </b>
20
- </div>
21
- </div>
22
- <div class="infoicon" (click)="detailsDict('click', route)" (mouseover)="detailsDict(true, route)"
23
- (mouseleave)="detailsDict(false, route)">
24
- <img src="assets/images/info_icon.png" [alt]="" />
25
- </div>
26
- <div class="status routestatus" [ngClass]="route['unit']">{{route['unit']}}</div>
27
- </div>
28
-
29
-
30
-