@aggdirect/coolmap 2.6.7 → 2.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +5 -30
- package/src/assets/mixin.scss +28 -0
- package/src/assets/palette.scss +24 -0
- package/src/assets/variable.scss +15 -0
- package/src/lib/component/add-route/add-route.component.html +136 -0
- package/src/lib/component/add-route/add-route.component.scss +236 -0
- package/src/lib/component/add-route/add-route.component.spec.ts +23 -0
- package/src/lib/component/add-route/add-route.component.ts +295 -0
- package/src/lib/component/job-code/job-code.component.html +79 -0
- package/src/lib/component/job-code/job-code.component.scss +396 -0
- package/src/lib/component/job-code/job-code.component.ts +157 -0
- package/src/lib/component/map/map.component.css +0 -0
- package/src/lib/component/map/map.component.html +4 -0
- package/src/lib/component/map/map.component.spec.ts +23 -0
- package/src/lib/component/map/map.component.ts +34 -0
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.html +46 -0
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.scss +18 -0
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.spec.ts +23 -0
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.ts +131 -0
- package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.html +48 -0
- package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.scss +24 -0
- package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.ts +154 -0
- package/src/lib/component/nav/nav.component.html +19 -0
- package/src/lib/component/nav/nav.component.scss +67 -0
- package/src/lib/component/nav/nav.component.ts +38 -0
- package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.html +56 -0
- package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.scss +168 -0
- package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.spec.ts +23 -0
- package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.ts +43 -0
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.html +66 -0
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.scss +232 -0
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.ts +234 -0
- package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.html +7 -0
- package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.scss +10 -0
- package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.spec.ts +23 -0
- package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.ts +15 -0
- package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.html +28 -0
- package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.scss +172 -0
- package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.spec.ts +23 -0
- package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.ts +20 -0
- package/src/lib/component/shared/dialog/dialog.component.html +7 -0
- package/src/lib/component/shared/dialog/dialog.component.scss +30 -0
- package/src/lib/component/shared/dialog/dialog.component.ts +18 -0
- package/src/lib/component/shared/estimation-display/estimation-display.component.html +7 -0
- package/src/lib/component/shared/estimation-display/estimation-display.component.scss +7 -0
- package/src/lib/component/shared/estimation-display/estimation-display.component.ts +13 -0
- package/src/lib/component/shared/job-route-list/job-route-list.component.html +30 -0
- package/src/lib/component/shared/job-route-list/job-route-list.component.scss +15 -0
- package/src/lib/component/shared/job-route-list/job-route-list.component.spec.ts +23 -0
- package/src/lib/component/shared/job-route-list/job-route-list.component.ts +54 -0
- package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.html +11 -0
- package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.scss +13 -0
- package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.spec.ts +23 -0
- package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.ts +19 -0
- package/src/lib/component/shared/jobcode-status/jobcode-status.component.html +5 -0
- package/src/lib/component/shared/jobcode-status/jobcode-status.component.scss +40 -0
- package/src/lib/component/shared/jobcode-status/jobcode-status.component.spec.ts +23 -0
- package/src/lib/component/shared/jobcode-status/jobcode-status.component.ts +11 -0
- package/src/lib/component/shared/route-info-card/route-info-card.component.html +11 -0
- package/src/lib/component/shared/route-info-card/route-info-card.component.scss +50 -0
- package/src/lib/component/shared/route-info-card/route-info-card.component.spec.ts +23 -0
- package/src/lib/component/shared/route-info-card/route-info-card.component.ts +69 -0
- package/src/lib/coolmap.module.ts +117 -0
- package/{public-api.d.ts → src/public-api.ts} +8 -0
- package/src/test.ts +27 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/esm2022/aggdirect-coolmap.mjs +0 -5
- package/esm2022/lib/component/add-route/add-route.component.mjs +0 -348
- package/esm2022/lib/component/job-code/job-code.component.mjs +0 -192
- package/esm2022/lib/component/map/map.component.mjs +0 -39
- package/esm2022/lib/component/nav/layout/add-route-nav/add-route-nav.component.mjs +0 -152
- package/esm2022/lib/component/nav/layout/job-code-nav/job-code-nav.component.mjs +0 -119
- package/esm2022/lib/component/nav/nav.component.mjs +0 -54
- package/esm2022/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.mjs +0 -77
- package/esm2022/lib/component/route-jobcode-list/route-jobcode-list.component.mjs +0 -321
- package/esm2022/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.mjs +0 -19
- package/esm2022/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.mjs +0 -37
- package/esm2022/lib/component/shared/dialog/dialog.component.mjs +0 -31
- package/esm2022/lib/component/shared/estimation-display/estimation-display.component.mjs +0 -18
- package/esm2022/lib/component/shared/job-route-list/job-route-list.component.mjs +0 -79
- package/esm2022/lib/component/shared/jobcode-overview/jobcode-overview.component.mjs +0 -24
- package/esm2022/lib/component/shared/jobcode-status/jobcode-status.component.mjs +0 -15
- package/esm2022/lib/component/shared/route-info-card/route-info-card.component.mjs +0 -57
- package/esm2022/lib/coolmap.module.mjs +0 -186
- package/esm2022/public-api.mjs +0 -19
- package/fesm2022/aggdirect-coolmap.mjs +0 -1644
- package/fesm2022/aggdirect-coolmap.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/component/add-route/add-route.component.d.ts +0 -61
- package/lib/component/job-code/job-code.component.d.ts +0 -42
- package/lib/component/map/map.component.d.ts +0 -15
- package/lib/component/nav/layout/add-route-nav/add-route-nav.component.d.ts +0 -49
- package/lib/component/nav/layout/job-code-nav/job-code-nav.component.d.ts +0 -42
- package/lib/component/nav/nav.component.d.ts +0 -31
- package/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.d.ts +0 -20
- package/lib/component/route-jobcode-list/route-jobcode-list.component.d.ts +0 -42
- package/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.d.ts +0 -9
- package/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.d.ts +0 -12
- package/lib/component/shared/dialog/dialog.component.d.ts +0 -13
- package/lib/component/shared/estimation-display/estimation-display.component.d.ts +0 -8
- package/lib/component/shared/job-route-list/job-route-list.component.d.ts +0 -26
- package/lib/component/shared/jobcode-overview/jobcode-overview.component.d.ts +0 -10
- package/lib/component/shared/jobcode-status/jobcode-status.component.d.ts +0 -7
- package/lib/component/shared/route-info-card/route-info-card.component.d.ts +0 -29
- package/lib/coolmap.module.d.ts +0 -44
package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.scss
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
@import "../../../../assets/variable.scss";
|
|
2
|
+
.innerbox{
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
.inputarea {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
input[type="checkbox"] {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
margin-right: 10px;
|
|
12
|
+
opacity: 0;
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 0px;
|
|
15
|
+
margin-left: 0;
|
|
16
|
+
top: 0;
|
|
17
|
+
z-index: 3;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
&:checked+label {
|
|
20
|
+
// TODO: Fix
|
|
21
|
+
// background: url("../../../../../assets/images/fill-radio.png") 10px 11px no-repeat;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
label {
|
|
25
|
+
// TODO: Fix
|
|
26
|
+
// background: url("../../../../../assets/images/blank-radio.png") 10px 11px no-repeat;
|
|
27
|
+
width: 100%;
|
|
28
|
+
position: relative;
|
|
29
|
+
z-index: 2;
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
color: #878787;
|
|
32
|
+
height: 100%;
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0px;
|
|
35
|
+
left: 0;
|
|
36
|
+
}
|
|
37
|
+
.border {
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
left: 0px;
|
|
42
|
+
right: 0;
|
|
43
|
+
top: -1px;
|
|
44
|
+
border-radius: 15px;
|
|
45
|
+
}
|
|
46
|
+
input {
|
|
47
|
+
&:checked~.border {
|
|
48
|
+
border-left: 3px solid $green;
|
|
49
|
+
border-right: 1px solid $green;
|
|
50
|
+
border-top: 1px solid $green;
|
|
51
|
+
border-bottom: 1px solid $green;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
h2 {
|
|
55
|
+
margin-left: 10px;
|
|
56
|
+
white-space: nowrap;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
max-width: 214px;
|
|
60
|
+
padding-left: 16px;
|
|
61
|
+
margin-bottom: 5px;
|
|
62
|
+
margin-top: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.job_intro{
|
|
66
|
+
width: 90%;
|
|
67
|
+
.heading{
|
|
68
|
+
display: flex;
|
|
69
|
+
font-size: 0.8rem;
|
|
70
|
+
h2{
|
|
71
|
+
margin: 0 4px 0 0;
|
|
72
|
+
font-size: 0.8rem;
|
|
73
|
+
}
|
|
74
|
+
span{
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
text-overflow: ellipsis;
|
|
78
|
+
width: 100px;
|
|
79
|
+
padding: 0 3px;
|
|
80
|
+
display: block;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.destinationprt{
|
|
84
|
+
display: flex;
|
|
85
|
+
margin-top: 10px;
|
|
86
|
+
font-size: 0.8rem;
|
|
87
|
+
span{
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
overflow: hidden;
|
|
90
|
+
text-overflow: ellipsis;
|
|
91
|
+
width: 132px;
|
|
92
|
+
padding: 0 5px;
|
|
93
|
+
display: block;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
.mat_cat{
|
|
97
|
+
margin-top: 10px;
|
|
98
|
+
font-size: 0.8rem;
|
|
99
|
+
}
|
|
100
|
+
.statusbar{
|
|
101
|
+
width: 100%;
|
|
102
|
+
position: relative;
|
|
103
|
+
height: 5px;
|
|
104
|
+
margin-top: 10px;
|
|
105
|
+
.status_percent{
|
|
106
|
+
position: absolute;
|
|
107
|
+
left: 0;
|
|
108
|
+
display: flex;
|
|
109
|
+
width: 100%;
|
|
110
|
+
height: 100%;
|
|
111
|
+
span{
|
|
112
|
+
display: block;
|
|
113
|
+
}
|
|
114
|
+
.done{
|
|
115
|
+
background: #008000;
|
|
116
|
+
}
|
|
117
|
+
.ongoing{
|
|
118
|
+
background: #ffcc00;
|
|
119
|
+
}
|
|
120
|
+
.open{
|
|
121
|
+
background: #bfbfbf;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
.statusarea{
|
|
127
|
+
display: flex;
|
|
128
|
+
flex-direction: column;
|
|
129
|
+
align-items: center;
|
|
130
|
+
width: 10%;
|
|
131
|
+
.statusunit{
|
|
132
|
+
border-radius: 30px;
|
|
133
|
+
font-size: 0;
|
|
134
|
+
color: $white;
|
|
135
|
+
text-transform: capitalize;
|
|
136
|
+
font-weight: 500;
|
|
137
|
+
width: 20px;
|
|
138
|
+
height: 20px;
|
|
139
|
+
text-align: center;
|
|
140
|
+
line-height: 20px;
|
|
141
|
+
&::first-letter{
|
|
142
|
+
font-size: 0.8rem;
|
|
143
|
+
}
|
|
144
|
+
&.routestatus{
|
|
145
|
+
right: 10px;
|
|
146
|
+
}
|
|
147
|
+
&.Ton {
|
|
148
|
+
background: $green;
|
|
149
|
+
}
|
|
150
|
+
&.Load {
|
|
151
|
+
background: $blue;
|
|
152
|
+
}
|
|
153
|
+
&.Hourly {
|
|
154
|
+
background: $orenge;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
.driver_icon, .infoicon{
|
|
158
|
+
z-index: 9999;
|
|
159
|
+
img{
|
|
160
|
+
width: 20px;
|
|
161
|
+
height: 20px;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.driver_icon{
|
|
165
|
+
margin: 5px 0;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.spec.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { JobCodeListCardComponent } from './job-code-list-card.component';
|
|
4
|
+
|
|
5
|
+
describe('JobCodeListCardComponent', () => {
|
|
6
|
+
let component: JobCodeListCardComponent;
|
|
7
|
+
let fixture: ComponentFixture<JobCodeListCardComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ JobCodeListCardComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(JobCodeListCardComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output, Inject } from '@angular/core';
|
|
2
|
+
import { CoolmapConfigModel, Route, UtilsService } from '@aggdirect/coolmap-services';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-job-code-list-card',
|
|
6
|
+
templateUrl: './job-code-list-card.component.html',
|
|
7
|
+
styleUrls: ['./job-code-list-card.component.scss']
|
|
8
|
+
})
|
|
9
|
+
export class JobCodeListCardComponent {
|
|
10
|
+
@Input() public route!: Route;
|
|
11
|
+
@Output() public routeSeletion = new EventEmitter();
|
|
12
|
+
@Output() public toggleDrivermenu = new EventEmitter();
|
|
13
|
+
@Input() public emitJobdetails: any;
|
|
14
|
+
@Input() public preventCloseDetails!: boolean;
|
|
15
|
+
constructor(public utils: UtilsService,
|
|
16
|
+
@Inject('memberData') public config: CoolmapConfigModel) { }
|
|
17
|
+
|
|
18
|
+
selectRoute(route: Route) { this.routeSeletion.emit(route) }
|
|
19
|
+
toggleDriverlist(mouseevntType: boolean | string, route: Route, isHoverOut?: boolean) {
|
|
20
|
+
const data = { mouseevntType, route, isHoverOut }
|
|
21
|
+
this.toggleDrivermenu.emit(data);
|
|
22
|
+
if (mouseevntType === 'click') this.utils.setdictValue('driver-details', JSON.stringify(this.route));
|
|
23
|
+
}
|
|
24
|
+
toggleJobCodeDetails(mouseEventType: boolean, route: Route) {
|
|
25
|
+
if (mouseEventType) { route['type'] = 'jobcode'; this.emitJobdetails.emitroute.emit(route) }
|
|
26
|
+
else if(!mouseEventType && this.preventCloseDetails){
|
|
27
|
+
route = this.utils.getdictValue('route-details');
|
|
28
|
+
route['type'] = 'jobcode'; this.emitJobdetails.emitroute.emit(route)
|
|
29
|
+
}
|
|
30
|
+
else if (!mouseEventType && !this.preventCloseDetails) this.emitJobdetails.clearJobDetailsFromList.emit(true);
|
|
31
|
+
}
|
|
32
|
+
calculateStatusPercentage(type: string, route: any) {
|
|
33
|
+
const total = route['Done'] + route['Ongoing'] + route['Open'];
|
|
34
|
+
if (type === 'done') { return Math.round((100 * route['Done']) / total) }
|
|
35
|
+
else if (type === 'ongoing') { return Math.round((100 * route['Ongoing']) / total) }
|
|
36
|
+
else if (type === 'open') { return Math.round((100 * route['Open']) / total) }
|
|
37
|
+
else { return null }
|
|
38
|
+
}
|
|
39
|
+
setRouteItem(){
|
|
40
|
+
this.utils.preVentJobdetailclose.next(true);
|
|
41
|
+
this.utils.setdictValue('route-details', JSON.stringify(this.route));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<div class="scrollprt addroutelist" [class.viewroute]="visiblesection('addroute')"
|
|
2
|
+
[class.jobList]="visiblesection('jobcode')">
|
|
3
|
+
<button (click)="showRoute()" [disabled]="loader" *ngIf="selectedRoute.selected.length" class="show_routebtn">Show all
|
|
4
|
+
route</button>
|
|
5
|
+
<cdk-virtual-scroll-viewport itemSize="50" [class.jobscroll]="visiblesection('jobcode')" class="example-viewport">
|
|
6
|
+
<mat-spinner *ngIf="loader"></mat-spinner>
|
|
7
|
+
<ul *ngIf="!loader && data.length > 0">
|
|
8
|
+
<li [class.active]="route['isActive'] && visiblesection('addroute')" *ngFor="let route of data">
|
|
9
|
+
<app-job-code-list-card *ngIf="visiblesection('jobcode')" (toggleDrivermenu)="toggleDrivermenu($event)"
|
|
10
|
+
(routeSeletion)="selectRoute($event)" [preventCloseDetails]="preventDetailsClose" [emitJobdetails]="{emitroute, clearJobDetailsFromList}" [route]="checkroutes(route)"></app-job-code-list-card>
|
|
11
|
+
<app-view-route-list-card [emitrouteevent]="emitroute" *ngIf="visiblesection('addroute')"
|
|
12
|
+
[route]="route"></app-view-route-list-card>
|
|
13
|
+
</li>
|
|
14
|
+
</ul>
|
|
15
|
+
<p *ngIf="!loader && data.length === 0">{{visiblesection('addroute') ? 'No Route found' : 'No Job code found.'}}</p>
|
|
16
|
+
</cdk-virtual-scroll-viewport>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="driver_list" *ngIf="isDriverList">
|
|
20
|
+
<div class="driver_headingprt">
|
|
21
|
+
<h2>Driver List</h2>
|
|
22
|
+
<button *ngIf="driverList.driver_list?.length > 0" (click)="isSmsList = true">SMS</button>
|
|
23
|
+
<div class="closebtn" (click)="isDriverList = false; preventMouseout = false; isSmsList = false">
|
|
24
|
+
<mat-icon>clear</mat-icon>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<ul class="driverList" *ngIf="driverList && driverList.driver_list">
|
|
28
|
+
<li *ngFor="let driver of driverList?.driver_list">
|
|
29
|
+
<img src="assets/images/driver_icon.png" [alt]="driver['driver_name']" />
|
|
30
|
+
<div class="driver_detail">
|
|
31
|
+
<b>{{driver['driver_name']}}</b> <span>{{driver['trucking_company']}}</span>
|
|
32
|
+
<div class="cont_del">
|
|
33
|
+
<small>Driver contact: <b>{{driver['driver_phone'] ? driver['driver_phone'] : 'N/A'}}</b></small>
|
|
34
|
+
<small>Company contact: <b>{{driver['trucking_company_phone'] ? driver['trucking_company_phone'] : 'N/A'}}</b></small>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</li>
|
|
38
|
+
<p *ngIf="driverList.driver_list?.length === 0" style="font-weight:700; text-align:center;">
|
|
39
|
+
No Driver found
|
|
40
|
+
</p>
|
|
41
|
+
</ul>
|
|
42
|
+
<div class="smslist" *ngIf="isSmsList">
|
|
43
|
+
<div class="heading">
|
|
44
|
+
<h2>SMS All Drivers</h2>
|
|
45
|
+
<div class="closebtn" (click)="isSmsList = false">
|
|
46
|
+
<mat-icon>clear</mat-icon>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="detailprt">
|
|
50
|
+
<app-sms-card-details-overview [jobValue]="driverList"></app-sms-card-details-overview>
|
|
51
|
+
<div class="form_input">
|
|
52
|
+
<mat-form-field class="example-full-width">
|
|
53
|
+
<textarea matInput placeholder="Text here..." autocomplete="nope" column="10"
|
|
54
|
+
[formControl]="driverMessage"></textarea>
|
|
55
|
+
<mat-hint>{{driverMessage.value?.length}} / 256</mat-hint>
|
|
56
|
+
</mat-form-field>
|
|
57
|
+
<button *ngIf="!messageLoader" [disabled]="!driverMessage.value || driverMessage.invalid" (click)="sendMessage()">
|
|
58
|
+
Send SMS
|
|
59
|
+
</button>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="loader">
|
|
63
|
+
<mat-spinner *ngIf="messageLoader"></mat-spinner>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
@@ -0,0 +1,232 @@
|
|
|
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 0.93em 0 0px;
|
|
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
|
+
width: 15.62em;
|
|
181
|
+
@media (min-width:2500px) {
|
|
182
|
+
height: 7.65vh;
|
|
183
|
+
}
|
|
184
|
+
@media (min-width:3300px) {
|
|
185
|
+
height: 5.61vh;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
.viewroute{
|
|
191
|
+
ul {
|
|
192
|
+
// margin: 0 15px 0 15px;
|
|
193
|
+
width: 100%;
|
|
194
|
+
li{
|
|
195
|
+
position: relative;
|
|
196
|
+
background: $softwhite;
|
|
197
|
+
padding: 7px 10px;
|
|
198
|
+
border-radius: 15px;
|
|
199
|
+
margin-bottom: 5px;
|
|
200
|
+
border: 1px solid $softwhite;
|
|
201
|
+
border-left: 3px solid $softwhite;
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
height: 16.4vh;
|
|
204
|
+
width: 15.62em;
|
|
205
|
+
@media (min-width:1600px) {
|
|
206
|
+
height: 12.4vh;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.active{
|
|
210
|
+
border: 1px solid $green;
|
|
211
|
+
border-left: 3px solid $green;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
.loader{
|
|
217
|
+
position: absolute;
|
|
218
|
+
height: 100%;
|
|
219
|
+
top: 0;
|
|
220
|
+
left: 0;
|
|
221
|
+
width: 100%;
|
|
222
|
+
display: flex;
|
|
223
|
+
align-items: center;
|
|
224
|
+
justify-content: center;
|
|
225
|
+
pointer-events: none;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
.example-viewport {
|
|
230
|
+
height: 900px;
|
|
231
|
+
}
|
|
232
|
+
|