@aggdirect/coolmap 2.9.6 → 2.9.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 +10 -19
- 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 +172 -0
- package/src/lib/component/add-route/add-route.component.scss +243 -0
- package/src/lib/component/add-route/add-route.component.spec.ts +23 -0
- package/src/lib/component/add-route/add-route.component.ts +394 -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 +146 -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 +130 -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 +143 -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 +73 -0
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.scss +227 -0
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.ts +233 -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 +46 -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 +19 -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 +74 -0
- package/src/lib/component/shared/searchoptiongroup/searchoptiongroup.component.css +3 -0
- package/src/lib/component/shared/searchoptiongroup/searchoptiongroup.component.html +6 -0
- package/src/lib/component/shared/searchoptiongroup/searchoptiongroup.component.spec.ts +23 -0
- package/src/lib/component/shared/searchoptiongroup/searchoptiongroup.component.ts +21 -0
- package/src/lib/coolmap.module.ts +120 -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 -433
- package/esm2022/lib/component/job-code/job-code.component.mjs +0 -181
- 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 -151
- package/esm2022/lib/component/nav/layout/job-code-nav/job-code-nav.component.mjs +0 -150
- 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 -319
- 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 -62
- package/esm2022/lib/component/shared/searchoptiongroup/searchoptiongroup.component.mjs +0 -25
- package/esm2022/lib/coolmap.module.mjs +0 -193
- package/esm2022/public-api.mjs +0 -19
- package/fesm2022/aggdirect-coolmap.mjs +0 -1778
- 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 -73
- package/lib/component/job-code/job-code.component.d.ts +0 -41
- 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 -32
- package/lib/component/shared/searchoptiongroup/searchoptiongroup.component.d.ts +0 -14
- package/lib/coolmap.module.d.ts +0 -46
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.routeCard span {
|
|
2
|
+
padding: 5px 0;
|
|
3
|
+
&.notes{
|
|
4
|
+
max-height: 200px;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
white-space: pre-wrap;
|
|
7
|
+
word-break: break-all;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.routeCard .duration {
|
|
12
|
+
padding: 10px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
.listRoutecard{
|
|
17
|
+
.duration{
|
|
18
|
+
background: #444343;
|
|
19
|
+
border: 1px solid #918e8e;
|
|
20
|
+
padding: 10px;
|
|
21
|
+
color:#fff;
|
|
22
|
+
b{
|
|
23
|
+
color: #fff;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.pickprt, .dropprt {
|
|
27
|
+
&:before {
|
|
28
|
+
background: #fff;
|
|
29
|
+
}
|
|
30
|
+
b{
|
|
31
|
+
&:before {
|
|
32
|
+
background: #fff;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
span{
|
|
37
|
+
line-height: 20px;
|
|
38
|
+
color: #fff;
|
|
39
|
+
padding: 3px 0;
|
|
40
|
+
b{
|
|
41
|
+
color: #fff;
|
|
42
|
+
}
|
|
43
|
+
&.notes{
|
|
44
|
+
max-height: 200px;
|
|
45
|
+
overflow: auto;
|
|
46
|
+
white-space: pre-wrap;
|
|
47
|
+
word-break: break-all;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { RouteInfoCardComponent } from './route-info-card.component';
|
|
4
|
+
|
|
5
|
+
describe('RouteInfoCardComponent', () => {
|
|
6
|
+
let component: RouteInfoCardComponent;
|
|
7
|
+
let fixture: ComponentFixture<RouteInfoCardComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ RouteInfoCardComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(RouteInfoCardComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, Input } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface CardEntity {
|
|
4
|
+
pickup_location: string,
|
|
5
|
+
delivery_location: string,
|
|
6
|
+
route_name: string,
|
|
7
|
+
customer_name: string,
|
|
8
|
+
material: string,
|
|
9
|
+
materialName: string;
|
|
10
|
+
unit: string,
|
|
11
|
+
estimated_distance: string,
|
|
12
|
+
estimated_time: string,
|
|
13
|
+
trucker_pay_estimate: string,
|
|
14
|
+
customer_price_estimate: string,
|
|
15
|
+
note: string,
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface CardPropEntity {
|
|
19
|
+
className: string,
|
|
20
|
+
repository: string
|
|
21
|
+
}
|
|
22
|
+
const CardKeysValue = [
|
|
23
|
+
'route_name',
|
|
24
|
+
'customer_name',
|
|
25
|
+
'unit',
|
|
26
|
+
'estimated_distance',
|
|
27
|
+
'estimated_time',
|
|
28
|
+
'trucker_pay_estimate',
|
|
29
|
+
'customer_price_estimate',
|
|
30
|
+
'note',
|
|
31
|
+
'pickup_location',
|
|
32
|
+
'delivery_location',
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
enum CardElements {
|
|
36
|
+
route_name = 'Name',
|
|
37
|
+
customer_name = 'Customer',
|
|
38
|
+
unit = 'Type',
|
|
39
|
+
estimated_distance = 'Distance',
|
|
40
|
+
estimated_time = 'Travel Time',
|
|
41
|
+
trucker_pay_estimate = 'Trucker Pay Estimate',
|
|
42
|
+
customer_price_estimate = 'Customer Price Estimate',
|
|
43
|
+
note = 'Notes',
|
|
44
|
+
pickup_location = 'Pickup',
|
|
45
|
+
delivery_location = 'Delivery'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@Component({
|
|
50
|
+
selector: 'lib-route-info-card',
|
|
51
|
+
templateUrl: './route-info-card.component.html',
|
|
52
|
+
styleUrls: ['./route-info-card.component.scss']
|
|
53
|
+
})
|
|
54
|
+
export class RouteInfoCardComponent {
|
|
55
|
+
@Input() popupData: CardEntity;
|
|
56
|
+
@Input() propData: CardPropEntity;
|
|
57
|
+
cardKeysElement = CardKeysValue;
|
|
58
|
+
constructor(public cdr: ChangeDetectorRef){}
|
|
59
|
+
ngAfterViewInit(): void {
|
|
60
|
+
if (this.propData['repository'] === 'customer') {
|
|
61
|
+
this.cardKeysElement = this.cardKeysElement.filter(ele => ele !== 'trucker_pay_estimate');
|
|
62
|
+
this.cdr.detectChanges();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
66
|
+
createLabel(itemName) {
|
|
67
|
+
let obj;
|
|
68
|
+
obj = { label: CardElements[itemName], value: this.popupData[itemName] }
|
|
69
|
+
if (itemName === 'trucker_pay_estimate' || itemName === 'customer_price_estimate') {
|
|
70
|
+
obj['value'] = obj['value'] ? '$' + obj['value'] : '';
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<div class="selected_prt">
|
|
2
|
+
<mat-radio-group aria-label="Select an option" [formControl]="searchOption" (change)="changeSearchOption($event)">
|
|
3
|
+
<mat-radio-button value="system">System Search</mat-radio-button>
|
|
4
|
+
<mat-radio-button value="google">Google Search</mat-radio-button>
|
|
5
|
+
</mat-radio-group>
|
|
6
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { SearchoptiongroupComponent } from './searchoptiongroup.component';
|
|
4
|
+
|
|
5
|
+
describe('SearchoptiongroupComponent', () => {
|
|
6
|
+
let component: SearchoptiongroupComponent;
|
|
7
|
+
let fixture: ComponentFixture<SearchoptiongroupComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [SearchoptiongroupComponent]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(SearchoptiongroupComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'lib-searchoptiongroup',
|
|
6
|
+
templateUrl: './searchoptiongroup.component.html',
|
|
7
|
+
styleUrl: './searchoptiongroup.component.css',
|
|
8
|
+
})
|
|
9
|
+
export class SearchoptiongroupComponent {
|
|
10
|
+
@Input() searchConfig: { form: FormGroup; controlname: string };
|
|
11
|
+
@Output() onUpdatePickUpSearchOption: EventEmitter<string> = new EventEmitter();
|
|
12
|
+
get searchOption() {
|
|
13
|
+
return this.searchConfig.form.get(
|
|
14
|
+
this.searchConfig.controlname
|
|
15
|
+
) as FormControl;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
changeSearchOption(value: string) {
|
|
19
|
+
this.onUpdatePickUpSearchOption.emit(value);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
2
|
+
import { MapComponent } from './component/map/map.component';
|
|
3
|
+
import { NavComponent } from './component/nav/nav.component';
|
|
4
|
+
|
|
5
|
+
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
6
|
+
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
7
|
+
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
8
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
9
|
+
import { MatInputModule } from '@angular/material/input';
|
|
10
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
11
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
13
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
14
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
15
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
16
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
|
17
|
+
import { CommonModule } from '@angular/common';
|
|
18
|
+
import {MatTooltipModule} from '@angular/material/tooltip';
|
|
19
|
+
import { AddRouteNavComponent } from './component/nav/layout/add-route-nav/add-route-nav.component';
|
|
20
|
+
import { JobCodeNavComponent } from './component/nav/layout/job-code-nav/job-code-nav.component';
|
|
21
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
22
|
+
import { MatNativeDateModule, MatPseudoCheckboxModule } from '@angular/material/core';
|
|
23
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
24
|
+
import {MatProgressBarModule} from '@angular/material/progress-bar';
|
|
25
|
+
import { RouteJobCodeListComponent } from './component/route-jobcode-list/route-jobcode-list.component';
|
|
26
|
+
import { ViewRouteListCardComponent } from './component/route-jobcode-list/view-route-list-card/view-route-list-card.component';
|
|
27
|
+
import { SmsCardDetailsOverviewComponent } from './component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component';
|
|
28
|
+
import { JobCodeListCardComponent } from './component/route-jobcode-list/job-code-list-card/job-code-list-card.component';
|
|
29
|
+
import { JobCodeComponent } from './component/job-code/job-code.component';
|
|
30
|
+
import { JobcodeStatusComponent } from './component/shared/jobcode-status/jobcode-status.component';
|
|
31
|
+
import { JobRouteListComponent } from './component/shared/job-route-list/job-route-list.component';
|
|
32
|
+
import { JobcodeOverviewComponent } from './component/shared/jobcode-overview/jobcode-overview.component';
|
|
33
|
+
import { DialogComponent } from './component/shared/dialog/dialog.component';
|
|
34
|
+
import { AddRouteComponent } from './component/add-route/add-route.component';
|
|
35
|
+
import { EstimationDisplayComponent } from './component/shared/estimation-display/estimation-display.component';
|
|
36
|
+
import { RouteInfoCardComponent } from './component/shared/route-info-card/route-info-card.component';
|
|
37
|
+
import { CoolmapConfigModel } from '@aggdirect/coolmap-services';
|
|
38
|
+
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
39
|
+
import {MatRadioModule} from '@angular/material/radio';
|
|
40
|
+
import { SearchoptiongroupComponent } from './component/shared/searchoptiongroup/searchoptiongroup.component';
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@NgModule({
|
|
44
|
+
declarations: [
|
|
45
|
+
MapComponent,
|
|
46
|
+
NavComponent,
|
|
47
|
+
AddRouteNavComponent,
|
|
48
|
+
JobCodeNavComponent,
|
|
49
|
+
RouteJobCodeListComponent,
|
|
50
|
+
ViewRouteListCardComponent,
|
|
51
|
+
SmsCardDetailsOverviewComponent,
|
|
52
|
+
JobCodeListCardComponent,
|
|
53
|
+
JobCodeComponent,
|
|
54
|
+
JobRouteListComponent,
|
|
55
|
+
JobcodeStatusComponent,
|
|
56
|
+
JobcodeOverviewComponent,
|
|
57
|
+
DialogComponent,
|
|
58
|
+
AddRouteComponent,
|
|
59
|
+
EstimationDisplayComponent,
|
|
60
|
+
RouteInfoCardComponent,
|
|
61
|
+
SearchoptiongroupComponent
|
|
62
|
+
],
|
|
63
|
+
imports: [
|
|
64
|
+
CommonModule,
|
|
65
|
+
MatSnackBarModule,
|
|
66
|
+
MatSidenavModule,
|
|
67
|
+
DragDropModule,
|
|
68
|
+
FormsModule,
|
|
69
|
+
MatInputModule,
|
|
70
|
+
MatSelectModule,
|
|
71
|
+
MatIconModule,
|
|
72
|
+
ReactiveFormsModule,
|
|
73
|
+
MatAutocompleteModule,
|
|
74
|
+
MatFormFieldModule,
|
|
75
|
+
MatProgressSpinnerModule,
|
|
76
|
+
MatChipsModule,
|
|
77
|
+
MatDialogModule,
|
|
78
|
+
MatTooltipModule,
|
|
79
|
+
MatDatepickerModule,
|
|
80
|
+
MatNativeDateModule,
|
|
81
|
+
MatPseudoCheckboxModule,
|
|
82
|
+
MatButtonModule,
|
|
83
|
+
MatProgressBarModule,
|
|
84
|
+
ScrollingModule,
|
|
85
|
+
MatRadioModule
|
|
86
|
+
],
|
|
87
|
+
exports: [
|
|
88
|
+
MapComponent,
|
|
89
|
+
NavComponent,
|
|
90
|
+
AddRouteNavComponent,
|
|
91
|
+
JobCodeNavComponent,
|
|
92
|
+
RouteJobCodeListComponent,
|
|
93
|
+
ViewRouteListCardComponent,
|
|
94
|
+
SmsCardDetailsOverviewComponent,
|
|
95
|
+
JobCodeListCardComponent,
|
|
96
|
+
JobCodeComponent,
|
|
97
|
+
JobRouteListComponent,
|
|
98
|
+
JobcodeStatusComponent,
|
|
99
|
+
JobcodeOverviewComponent,
|
|
100
|
+
DialogComponent,
|
|
101
|
+
AddRouteComponent
|
|
102
|
+
],
|
|
103
|
+
// TODO: entryComponents is no longer supported. Find out if this breaks something
|
|
104
|
+
// entryComponents: [
|
|
105
|
+
// DialogComponent,
|
|
106
|
+
// JobCodeComponent,
|
|
107
|
+
// AddRouteComponent
|
|
108
|
+
// ],
|
|
109
|
+
providers: [
|
|
110
|
+
]
|
|
111
|
+
})
|
|
112
|
+
|
|
113
|
+
export class CoolmapModule {
|
|
114
|
+
public static forRoot(memberData: CoolmapConfigModel): ModuleWithProviders<CoolmapModule> {
|
|
115
|
+
return {
|
|
116
|
+
ngModule: CoolmapModule,
|
|
117
|
+
providers: [{provide: 'memberData', useValue: memberData}]
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of coolmap
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
export * from './lib/coolmap.module';
|
|
2
6
|
export * from './lib/component/map/map.component';
|
|
3
7
|
export * from './lib/component/nav/nav.component';
|
|
4
8
|
export * from './lib/component/nav/layout/add-route-nav/add-route-nav.component';
|
|
5
9
|
export * from './lib/component/nav/layout/job-code-nav/job-code-nav.component';
|
|
10
|
+
|
|
6
11
|
export * from './lib/component/route-jobcode-list/route-jobcode-list.component';
|
|
7
12
|
export * from './lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component';
|
|
8
13
|
export * from './lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component';
|
|
@@ -13,3 +18,6 @@ export * from './lib/component/shared/jobcode-status/jobcode-status.component';
|
|
|
13
18
|
export * from './lib/component/shared/job-route-list/job-route-list.component';
|
|
14
19
|
export * from './lib/component/shared/jobcode-overview/jobcode-overview.component';
|
|
15
20
|
export * from './lib/component/shared/dialog/dialog.component';
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
package/src/test.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
|
2
|
+
|
|
3
|
+
import 'zone.js';
|
|
4
|
+
import 'zone.js/testing';
|
|
5
|
+
import { getTestBed } from '@angular/core/testing';
|
|
6
|
+
import {
|
|
7
|
+
BrowserDynamicTestingModule,
|
|
8
|
+
platformBrowserDynamicTesting
|
|
9
|
+
} from '@angular/platform-browser-dynamic/testing';
|
|
10
|
+
|
|
11
|
+
declare const require: {
|
|
12
|
+
context(path: string, deep?: boolean, filter?: RegExp): {
|
|
13
|
+
<T>(id: string): T;
|
|
14
|
+
keys(): string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// First, initialize the Angular testing environment.
|
|
19
|
+
getTestBed().initTestEnvironment(
|
|
20
|
+
BrowserDynamicTestingModule,
|
|
21
|
+
platformBrowserDynamicTesting(),
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
// Then we find all the tests.
|
|
25
|
+
const context = require.context('./', true, /\.spec\.ts$/);
|
|
26
|
+
// And load the modules.
|
|
27
|
+
context.keys().forEach(context);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/lib",
|
|
6
|
+
"declaration": true,
|
|
7
|
+
"declarationMap": true,
|
|
8
|
+
"inlineSources": true,
|
|
9
|
+
"types": []
|
|
10
|
+
},
|
|
11
|
+
"exclude": [
|
|
12
|
+
"src/test.ts",
|
|
13
|
+
"**/*.spec.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
+
{
|
|
3
|
+
"extends": "../../tsconfig.json",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"outDir": "../../out-tsc/spec",
|
|
6
|
+
"types": [
|
|
7
|
+
"jasmine"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/test.ts"
|
|
12
|
+
],
|
|
13
|
+
"include": [
|
|
14
|
+
"**/*.spec.ts",
|
|
15
|
+
"**/*.d.ts"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdnZGlyZWN0LWNvb2xtYXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9jb29sbWFwL3NyYy9hZ2dkaXJlY3QtY29vbG1hcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|