@aggdirect/coolmap 2.9.8 → 3.0.0
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/esm2022/aggdirect-coolmap.mjs +5 -0
- package/esm2022/lib/component/add-route/add-route.component.mjs +433 -0
- package/esm2022/lib/component/job-code/job-code.component.mjs +181 -0
- package/esm2022/lib/component/map/map.component.mjs +39 -0
- package/esm2022/lib/component/nav/layout/add-route-nav/add-route-nav.component.mjs +151 -0
- package/esm2022/lib/component/nav/layout/job-code-nav/job-code-nav.component.mjs +141 -0
- package/esm2022/lib/component/nav/nav.component.mjs +54 -0
- package/esm2022/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.mjs +77 -0
- package/esm2022/lib/component/route-jobcode-list/route-jobcode-list.component.mjs +319 -0
- package/esm2022/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.mjs +19 -0
- package/esm2022/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.mjs +37 -0
- package/esm2022/lib/component/shared/dialog/dialog.component.mjs +31 -0
- package/esm2022/lib/component/shared/estimation-display/estimation-display.component.mjs +18 -0
- package/esm2022/lib/component/shared/job-route-list/job-route-list.component.mjs +79 -0
- package/esm2022/lib/component/shared/jobcode-overview/jobcode-overview.component.mjs +24 -0
- package/esm2022/lib/component/shared/jobcode-status/jobcode-status.component.mjs +15 -0
- package/esm2022/lib/component/shared/route-info-card/route-info-card.component.mjs +62 -0
- package/esm2022/lib/component/shared/searchoptiongroup/searchoptiongroup.component.mjs +25 -0
- package/esm2022/lib/coolmap.module.mjs +193 -0
- package/esm2022/public-api.mjs +19 -0
- package/fesm2022/aggdirect-coolmap.mjs +1769 -0
- package/fesm2022/aggdirect-coolmap.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/component/add-route/add-route.component.d.ts +73 -0
- package/lib/component/job-code/job-code.component.d.ts +41 -0
- package/lib/component/map/map.component.d.ts +15 -0
- package/lib/component/nav/layout/add-route-nav/add-route-nav.component.d.ts +49 -0
- package/lib/component/nav/layout/job-code-nav/job-code-nav.component.d.ts +42 -0
- package/lib/component/nav/nav.component.d.ts +31 -0
- package/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.d.ts +20 -0
- package/lib/component/route-jobcode-list/route-jobcode-list.component.d.ts +42 -0
- package/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.d.ts +9 -0
- package/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.d.ts +12 -0
- package/lib/component/shared/dialog/dialog.component.d.ts +13 -0
- package/lib/component/shared/estimation-display/estimation-display.component.d.ts +8 -0
- package/lib/component/shared/job-route-list/job-route-list.component.d.ts +26 -0
- package/lib/component/shared/jobcode-overview/jobcode-overview.component.d.ts +10 -0
- package/lib/component/shared/jobcode-status/jobcode-status.component.d.ts +7 -0
- package/lib/component/shared/route-info-card/route-info-card.component.d.ts +32 -0
- package/lib/component/shared/searchoptiongroup/searchoptiongroup.component.d.ts +14 -0
- package/lib/coolmap.module.d.ts +46 -0
- package/package.json +22 -5
- package/{src/public-api.ts → public-api.d.ts} +0 -8
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/assets/mixin.scss +0 -28
- package/src/assets/palette.scss +0 -24
- package/src/assets/variable.scss +0 -15
- package/src/lib/component/add-route/add-route.component.html +0 -172
- package/src/lib/component/add-route/add-route.component.scss +0 -243
- package/src/lib/component/add-route/add-route.component.spec.ts +0 -23
- package/src/lib/component/add-route/add-route.component.ts +0 -394
- package/src/lib/component/job-code/job-code.component.html +0 -79
- package/src/lib/component/job-code/job-code.component.scss +0 -396
- package/src/lib/component/job-code/job-code.component.ts +0 -146
- package/src/lib/component/map/map.component.css +0 -0
- package/src/lib/component/map/map.component.html +0 -4
- package/src/lib/component/map/map.component.spec.ts +0 -23
- package/src/lib/component/map/map.component.ts +0 -34
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.html +0 -46
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.scss +0 -18
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.spec.ts +0 -23
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.ts +0 -130
- package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.html +0 -48
- package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.scss +0 -24
- package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.ts +0 -143
- package/src/lib/component/nav/nav.component.html +0 -19
- package/src/lib/component/nav/nav.component.scss +0 -67
- package/src/lib/component/nav/nav.component.ts +0 -38
- package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.html +0 -56
- package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.scss +0 -168
- package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.spec.ts +0 -23
- package/src/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.ts +0 -43
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.html +0 -73
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.scss +0 -227
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.ts +0 -233
- package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.html +0 -7
- package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.scss +0 -10
- package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.spec.ts +0 -23
- package/src/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.ts +0 -15
- package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.html +0 -28
- package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.scss +0 -172
- package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.spec.ts +0 -23
- package/src/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.ts +0 -20
- package/src/lib/component/shared/dialog/dialog.component.html +0 -7
- package/src/lib/component/shared/dialog/dialog.component.scss +0 -30
- package/src/lib/component/shared/dialog/dialog.component.ts +0 -18
- package/src/lib/component/shared/estimation-display/estimation-display.component.html +0 -7
- package/src/lib/component/shared/estimation-display/estimation-display.component.scss +0 -7
- package/src/lib/component/shared/estimation-display/estimation-display.component.ts +0 -13
- package/src/lib/component/shared/job-route-list/job-route-list.component.html +0 -46
- package/src/lib/component/shared/job-route-list/job-route-list.component.scss +0 -15
- package/src/lib/component/shared/job-route-list/job-route-list.component.spec.ts +0 -23
- package/src/lib/component/shared/job-route-list/job-route-list.component.ts +0 -54
- package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.html +0 -11
- package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.scss +0 -13
- package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.spec.ts +0 -23
- package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.ts +0 -19
- package/src/lib/component/shared/jobcode-status/jobcode-status.component.html +0 -5
- package/src/lib/component/shared/jobcode-status/jobcode-status.component.scss +0 -40
- package/src/lib/component/shared/jobcode-status/jobcode-status.component.spec.ts +0 -23
- package/src/lib/component/shared/jobcode-status/jobcode-status.component.ts +0 -11
- package/src/lib/component/shared/route-info-card/route-info-card.component.html +0 -19
- package/src/lib/component/shared/route-info-card/route-info-card.component.scss +0 -50
- package/src/lib/component/shared/route-info-card/route-info-card.component.spec.ts +0 -23
- package/src/lib/component/shared/route-info-card/route-info-card.component.ts +0 -74
- package/src/lib/component/shared/searchoptiongroup/searchoptiongroup.component.css +0 -3
- package/src/lib/component/shared/searchoptiongroup/searchoptiongroup.component.html +0 -6
- package/src/lib/component/shared/searchoptiongroup/searchoptiongroup.component.spec.ts +0 -23
- package/src/lib/component/shared/searchoptiongroup/searchoptiongroup.component.ts +0 -21
- package/src/lib/coolmap.module.ts +0 -120
- package/src/test.ts +0 -27
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,74 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
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>
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
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
|
-
}
|
package/src/test.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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);
|
package/tsconfig.lib.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
package/tsconfig.lib.prod.json
DELETED
package/tsconfig.spec.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|