@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
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EventEmitter, SimpleChanges, OnDestroy } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { CoolmapConfigModel, CustomerRepoDetailsModel, Route, UtilsService } from '@aggdirect/coolmap-services';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface Filter {
|
|
8
|
+
name?: string;
|
|
9
|
+
type: string;
|
|
10
|
+
value: any;
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class AddRouteNavComponent implements OnDestroy {
|
|
14
|
+
utils: UtilsService;
|
|
15
|
+
private config;
|
|
16
|
+
filterForm: FormGroup<{
|
|
17
|
+
search: FormControl<any>;
|
|
18
|
+
}>;
|
|
19
|
+
filteredOptions: Observable<any[]> | undefined;
|
|
20
|
+
filters: Filter[];
|
|
21
|
+
loaderVal: boolean;
|
|
22
|
+
routes: Route[];
|
|
23
|
+
changeNav: EventEmitter<any>;
|
|
24
|
+
navValue: string;
|
|
25
|
+
addemit: EventEmitter<any>;
|
|
26
|
+
updateRouteList: boolean;
|
|
27
|
+
customerRepoDetails: CustomerRepoDetailsModel;
|
|
28
|
+
destroyer$: Subject<boolean>;
|
|
29
|
+
preventListUpdate: boolean;
|
|
30
|
+
unitList: any;
|
|
31
|
+
materialsList: any;
|
|
32
|
+
constructor(utils: UtilsService, config: CoolmapConfigModel);
|
|
33
|
+
showAddForm(): void;
|
|
34
|
+
filterSearch(e: any): void;
|
|
35
|
+
removeFromFilter(filter: any): void;
|
|
36
|
+
ngAfterViewInit(): void;
|
|
37
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
38
|
+
getRoute(event: Route): void;
|
|
39
|
+
checkAndCallRouteList(): void;
|
|
40
|
+
getUnitName(data: any): string;
|
|
41
|
+
getMaterialName(data: any): string;
|
|
42
|
+
getRouteListForCoolMap(): void;
|
|
43
|
+
getRouteListForCustomer(): void;
|
|
44
|
+
resetSearch(): void;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddRouteNavComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddRouteNavComponent, "app-add-route-nav", never, { "navValue": { "alias": "navValue"; "required": false; }; "updateRouteList": { "alias": "updateRouteList"; "required": false; }; "customerRepoDetails": { "alias": "customerRepoDetails"; "required": false; }; }, { "changeNav": "changeNav"; "addemit": "addemit"; }, never, never, false, never>;
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { MatDatepickerInputEvent } from '@angular/material/datepicker';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { CoolmapConfigModel, CustomerRepoDetailsModel, Route, UtilsService } from '@aggdirect/coolmap-services';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
interface Filter {
|
|
9
|
+
name?: string;
|
|
10
|
+
type: string;
|
|
11
|
+
value: any;
|
|
12
|
+
label?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class JobCodeNavComponent implements OnDestroy, OnChanges {
|
|
15
|
+
utils: UtilsService;
|
|
16
|
+
private config;
|
|
17
|
+
filterForm: FormGroup<{
|
|
18
|
+
search: FormControl<any>;
|
|
19
|
+
}>;
|
|
20
|
+
listData: Route[];
|
|
21
|
+
loaderVal: boolean;
|
|
22
|
+
dateValue: Date;
|
|
23
|
+
jobemit: EventEmitter<any>;
|
|
24
|
+
value: string;
|
|
25
|
+
filteredOptions: Observable<any[]> | undefined;
|
|
26
|
+
filters: Filter[];
|
|
27
|
+
clearJobDetails: EventEmitter<any>;
|
|
28
|
+
destroyer$: Subject<boolean>;
|
|
29
|
+
customerRepoDetails: CustomerRepoDetailsModel;
|
|
30
|
+
selectedDate: string;
|
|
31
|
+
constructor(utils: UtilsService, config: CoolmapConfigModel);
|
|
32
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
+
loadData(value: string): void;
|
|
34
|
+
getRoute(job: Route): void;
|
|
35
|
+
getDate(ev: MatDatepickerInputEvent<Date>): void;
|
|
36
|
+
filterSearch(e: any): void;
|
|
37
|
+
removeFromFilter(filter: any): void;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobCodeNavComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobCodeNavComponent, "app-job-code-nav", never, { "customerRepoDetails": { "alias": "customerRepoDetails"; "required": false; }; }, { "jobemit": "jobemit"; "clearJobDetails": "clearJobDetails"; }, never, never, false, never>;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CoolmapService, UtilsService } from '@aggdirect/coolmap-services';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NavComponent implements OnDestroy {
|
|
6
|
+
utils: UtilsService;
|
|
7
|
+
coolMap: CoolmapService;
|
|
8
|
+
drawer: EventEmitter<boolean>;
|
|
9
|
+
changeNav: EventEmitter<string>;
|
|
10
|
+
navValue: string;
|
|
11
|
+
isnavChange: boolean;
|
|
12
|
+
paddinForJobCode: {
|
|
13
|
+
top: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
left: number;
|
|
16
|
+
right: number;
|
|
17
|
+
};
|
|
18
|
+
paddinForViewRoute: {
|
|
19
|
+
top: number;
|
|
20
|
+
bottom: number;
|
|
21
|
+
left: number;
|
|
22
|
+
right: number;
|
|
23
|
+
};
|
|
24
|
+
destroyer$: Subject<boolean>;
|
|
25
|
+
constructor(utils: UtilsService, coolMap: CoolmapService);
|
|
26
|
+
openDrawer(): void;
|
|
27
|
+
chnageNav(name: string): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavComponent, "app-nav", never, {}, { "drawer": "drawer"; "changeNav": "changeNav"; }, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { CoolmapConfigModel, Route, UtilsService } from '@aggdirect/coolmap-services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class JobCodeListCardComponent {
|
|
5
|
+
utils: UtilsService;
|
|
6
|
+
config: CoolmapConfigModel;
|
|
7
|
+
route: Route;
|
|
8
|
+
routeSeletion: EventEmitter<any>;
|
|
9
|
+
toggleDrivermenu: EventEmitter<any>;
|
|
10
|
+
emitJobdetails: any;
|
|
11
|
+
preventCloseDetails: boolean;
|
|
12
|
+
constructor(utils: UtilsService, config: CoolmapConfigModel);
|
|
13
|
+
selectRoute(route: Route): void;
|
|
14
|
+
toggleDriverlist(mouseevntType: boolean | string, route: Route, isHoverOut?: boolean): void;
|
|
15
|
+
toggleJobCodeDetails(mouseEventType: boolean, route: Route): void;
|
|
16
|
+
calculateStatusPercentage(type: string, route: any): number;
|
|
17
|
+
setRouteItem(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobCodeListCardComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobCodeListCardComponent, "app-job-code-list-card", never, { "route": { "alias": "route"; "required": false; }; "emitJobdetails": { "alias": "emitJobdetails"; "required": false; }; "preventCloseDetails": { "alias": "preventCloseDetails"; "required": false; }; }, { "routeSeletion": "routeSeletion"; "toggleDrivermenu": "toggleDrivermenu"; }, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
3
|
+
import { FormControl } from '@angular/forms';
|
|
4
|
+
import { CoolmapService, Route, UtilsService } from '@aggdirect/coolmap-services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class RouteJobCodeListComponent implements OnInit, OnChanges {
|
|
7
|
+
coolMap: CoolmapService;
|
|
8
|
+
utils: UtilsService;
|
|
9
|
+
loader: boolean;
|
|
10
|
+
type: string;
|
|
11
|
+
data: Route[];
|
|
12
|
+
currentNav: string;
|
|
13
|
+
emitroute: EventEmitter<any>;
|
|
14
|
+
showAllRoute: EventEmitter<any>;
|
|
15
|
+
preventMouseout: boolean;
|
|
16
|
+
filterList: Route[];
|
|
17
|
+
searchTerm: any;
|
|
18
|
+
isDriverList: boolean;
|
|
19
|
+
selectedRoute: SelectionModel<any>;
|
|
20
|
+
driverList: any;
|
|
21
|
+
preventListSelect: boolean;
|
|
22
|
+
clearJobDetailsFromList: EventEmitter<any>;
|
|
23
|
+
preventDetailsClose: boolean;
|
|
24
|
+
messageLoader: boolean;
|
|
25
|
+
driverMessage: FormControl<string>;
|
|
26
|
+
clearListSeletion: boolean;
|
|
27
|
+
isSmsList: boolean;
|
|
28
|
+
constructor(coolMap: CoolmapService, utils: UtilsService);
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
passRoute(job: Route): void;
|
|
31
|
+
selectRoute(route: any): void;
|
|
32
|
+
checkroutes(route: Route): Route;
|
|
33
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
+
showRoute(): void;
|
|
35
|
+
toggleDrivermenu(event: any): void;
|
|
36
|
+
visiblesection(value: string): boolean;
|
|
37
|
+
toggleFilterRoute(filterList: Route[]): void;
|
|
38
|
+
clearList(): void;
|
|
39
|
+
sendMessage(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouteJobCodeListComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RouteJobCodeListComponent, "app-route-jobcode-list", never, { "loader": { "alias": "loader"; "required": false; }; "type": { "alias": "type"; "required": false; }; "data": { "alias": "data"; "required": false; }; "currentNav": { "alias": "currentNav"; "required": false; }; "searchTerm": { "alias": "searchTerm"; "required": false; }; "clearListSeletion": { "alias": "clearListSeletion"; "required": false; }; }, { "emitroute": "emitroute"; "showAllRoute": "showAllRoute"; "clearJobDetailsFromList": "clearJobDetailsFromList"; }, never, never, false, never>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SmsCardDetailsOverviewComponent {
|
|
3
|
+
jobValue: any;
|
|
4
|
+
label: string[];
|
|
5
|
+
overViewEnum: any;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmsCardDetailsOverviewComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmsCardDetailsOverviewComponent, "app-sms-card-details-overview", never, { "jobValue": { "alias": "jobValue"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
package/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CoolmapConfigModel, Route, UtilsService } from '@aggdirect/coolmap-services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ViewRouteListCardComponent {
|
|
4
|
+
utils: UtilsService;
|
|
5
|
+
config: CoolmapConfigModel;
|
|
6
|
+
route: Route;
|
|
7
|
+
emitrouteevent: any;
|
|
8
|
+
constructor(utils: UtilsService, config: CoolmapConfigModel);
|
|
9
|
+
detailsDict(event: boolean | string, route: Route): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewRouteListCardComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ViewRouteListCardComponent, "app-view-route-list-card", never, { "route": { "alias": "route"; "required": false; }; "emitrouteevent": { "alias": "emitrouteevent"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DialogComponent {
|
|
4
|
+
dialogRef: MatDialogRef<DialogComponent>;
|
|
5
|
+
data: any;
|
|
6
|
+
body: string;
|
|
7
|
+
positive: string;
|
|
8
|
+
negative: string;
|
|
9
|
+
constructor(dialogRef: MatDialogRef<DialogComponent>, data: any);
|
|
10
|
+
onClose(result: boolean): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "app-dialog", never, {}, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class EstimationDisplayComponent {
|
|
3
|
+
value: any;
|
|
4
|
+
label: string[];
|
|
5
|
+
Estinationlabel: any;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EstimationDisplayComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EstimationDisplayComponent, "app-estimation-display", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { CoolmapService, Route, UtilsService } from '@aggdirect/coolmap-services';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class JobRouteListComponent {
|
|
7
|
+
utils: UtilsService;
|
|
8
|
+
coolMap: CoolmapService;
|
|
9
|
+
changeNav: EventEmitter<any>;
|
|
10
|
+
filteredOptions: Observable<any[]> | undefined;
|
|
11
|
+
preventListUpdate: boolean;
|
|
12
|
+
filterForm: FormGroup<{
|
|
13
|
+
search: FormControl<any>;
|
|
14
|
+
}>;
|
|
15
|
+
filters: any[];
|
|
16
|
+
routes: Route[];
|
|
17
|
+
selectedRoute: any;
|
|
18
|
+
changeRoutes: EventEmitter<any>;
|
|
19
|
+
changeSelectedRoute: EventEmitter<any>;
|
|
20
|
+
masterRoutes: Route[];
|
|
21
|
+
constructor(utils: UtilsService, coolMap: CoolmapService);
|
|
22
|
+
filterSearch(e: any): void;
|
|
23
|
+
removeFromFilter(filter: any): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobRouteListComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobRouteListComponent, "app-job-route-list", never, { "routes": { "alias": "routes"; "required": false; }; "selectedRoute": { "alias": "selectedRoute"; "required": false; }; "masterRoutes": { "alias": "masterRoutes"; "required": false; }; }, { "changeNav": "changeNav"; "changeRoutes": "changeRoutes"; "changeSelectedRoute": "changeSelectedRoute"; }, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class JobcodeOverviewComponent {
|
|
3
|
+
jobValue: any;
|
|
4
|
+
label: string[];
|
|
5
|
+
overViewEnum: any;
|
|
6
|
+
constructor();
|
|
7
|
+
makeValueObject(item: string): any;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobcodeOverviewComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobcodeOverviewComponent, "app-jobcode-overview", never, { "jobValue": { "alias": "jobValue"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Route } from '@aggdirect/coolmap-services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class JobcodeStatusComponent {
|
|
4
|
+
jobValue: Route;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobcodeStatusComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobcodeStatusComponent, "app-jobcode-status", never, { "jobValue": { "alias": "jobValue"; "required": false; }; }, {}, never, never, false, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
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
|
+
interface CardPropEntity {
|
|
18
|
+
className: string;
|
|
19
|
+
repository: string;
|
|
20
|
+
}
|
|
21
|
+
export declare class RouteInfoCardComponent {
|
|
22
|
+
cdr: ChangeDetectorRef;
|
|
23
|
+
popupData: CardEntity;
|
|
24
|
+
propData: CardPropEntity;
|
|
25
|
+
cardKeysElement: string[];
|
|
26
|
+
constructor(cdr: ChangeDetectorRef);
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
createLabel(itemName: any): any;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouteInfoCardComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RouteInfoCardComponent, "lib-route-info-card", never, { "popupData": { "alias": "popupData"; "required": false; }; "propData": { "alias": "propData"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SearchoptiongroupComponent {
|
|
5
|
+
searchConfig: {
|
|
6
|
+
form: FormGroup;
|
|
7
|
+
controlname: string;
|
|
8
|
+
};
|
|
9
|
+
onUpdatePickUpSearchOption: EventEmitter<string>;
|
|
10
|
+
get searchOption(): FormControl<any>;
|
|
11
|
+
changeSearchOption(value: string): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchoptiongroupComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchoptiongroupComponent, "lib-searchoptiongroup", never, { "searchConfig": { "alias": "searchConfig"; "required": false; }; }, { "onUpdatePickUpSearchOption": "onUpdatePickUpSearchOption"; }, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { CoolmapConfigModel } from '@aggdirect/coolmap-services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./component/map/map.component";
|
|
5
|
+
import * as i2 from "./component/nav/nav.component";
|
|
6
|
+
import * as i3 from "./component/nav/layout/add-route-nav/add-route-nav.component";
|
|
7
|
+
import * as i4 from "./component/nav/layout/job-code-nav/job-code-nav.component";
|
|
8
|
+
import * as i5 from "./component/route-jobcode-list/route-jobcode-list.component";
|
|
9
|
+
import * as i6 from "./component/route-jobcode-list/view-route-list-card/view-route-list-card.component";
|
|
10
|
+
import * as i7 from "./component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component";
|
|
11
|
+
import * as i8 from "./component/route-jobcode-list/job-code-list-card/job-code-list-card.component";
|
|
12
|
+
import * as i9 from "./component/job-code/job-code.component";
|
|
13
|
+
import * as i10 from "./component/shared/job-route-list/job-route-list.component";
|
|
14
|
+
import * as i11 from "./component/shared/jobcode-status/jobcode-status.component";
|
|
15
|
+
import * as i12 from "./component/shared/jobcode-overview/jobcode-overview.component";
|
|
16
|
+
import * as i13 from "./component/shared/dialog/dialog.component";
|
|
17
|
+
import * as i14 from "./component/add-route/add-route.component";
|
|
18
|
+
import * as i15 from "./component/shared/estimation-display/estimation-display.component";
|
|
19
|
+
import * as i16 from "./component/shared/route-info-card/route-info-card.component";
|
|
20
|
+
import * as i17 from "./component/shared/searchoptiongroup/searchoptiongroup.component";
|
|
21
|
+
import * as i18 from "@angular/common";
|
|
22
|
+
import * as i19 from "@angular/material/snack-bar";
|
|
23
|
+
import * as i20 from "@angular/material/sidenav";
|
|
24
|
+
import * as i21 from "@angular/cdk/drag-drop";
|
|
25
|
+
import * as i22 from "@angular/forms";
|
|
26
|
+
import * as i23 from "@angular/material/input";
|
|
27
|
+
import * as i24 from "@angular/material/select";
|
|
28
|
+
import * as i25 from "@angular/material/icon";
|
|
29
|
+
import * as i26 from "@angular/material/autocomplete";
|
|
30
|
+
import * as i27 from "@angular/material/form-field";
|
|
31
|
+
import * as i28 from "@angular/material/progress-spinner";
|
|
32
|
+
import * as i29 from "@angular/material/chips";
|
|
33
|
+
import * as i30 from "@angular/material/dialog";
|
|
34
|
+
import * as i31 from "@angular/material/tooltip";
|
|
35
|
+
import * as i32 from "@angular/material/datepicker";
|
|
36
|
+
import * as i33 from "@angular/material/core";
|
|
37
|
+
import * as i34 from "@angular/material/button";
|
|
38
|
+
import * as i35 from "@angular/material/progress-bar";
|
|
39
|
+
import * as i36 from "@angular/cdk/scrolling";
|
|
40
|
+
import * as i37 from "@angular/material/radio";
|
|
41
|
+
export declare class CoolmapModule {
|
|
42
|
+
static forRoot(memberData: CoolmapConfigModel): ModuleWithProviders<CoolmapModule>;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoolmapModule, never>;
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoolmapModule, [typeof i1.MapComponent, typeof i2.NavComponent, typeof i3.AddRouteNavComponent, typeof i4.JobCodeNavComponent, typeof i5.RouteJobCodeListComponent, typeof i6.ViewRouteListCardComponent, typeof i7.SmsCardDetailsOverviewComponent, typeof i8.JobCodeListCardComponent, typeof i9.JobCodeComponent, typeof i10.JobRouteListComponent, typeof i11.JobcodeStatusComponent, typeof i12.JobcodeOverviewComponent, typeof i13.DialogComponent, typeof i14.AddRouteComponent, typeof i15.EstimationDisplayComponent, typeof i16.RouteInfoCardComponent, typeof i17.SearchoptiongroupComponent], [typeof i18.CommonModule, typeof i19.MatSnackBarModule, typeof i20.MatSidenavModule, typeof i21.DragDropModule, typeof i22.FormsModule, typeof i23.MatInputModule, typeof i24.MatSelectModule, typeof i25.MatIconModule, typeof i22.ReactiveFormsModule, typeof i26.MatAutocompleteModule, typeof i27.MatFormFieldModule, typeof i28.MatProgressSpinnerModule, typeof i29.MatChipsModule, typeof i30.MatDialogModule, typeof i31.MatTooltipModule, typeof i32.MatDatepickerModule, typeof i33.MatNativeDateModule, typeof i33.MatPseudoCheckboxModule, typeof i34.MatButtonModule, typeof i35.MatProgressBarModule, typeof i36.ScrollingModule, typeof i37.MatRadioModule], [typeof i1.MapComponent, typeof i2.NavComponent, typeof i3.AddRouteNavComponent, typeof i4.JobCodeNavComponent, typeof i5.RouteJobCodeListComponent, typeof i6.ViewRouteListCardComponent, typeof i7.SmsCardDetailsOverviewComponent, typeof i8.JobCodeListCardComponent, typeof i9.JobCodeComponent, typeof i10.JobRouteListComponent, typeof i11.JobcodeStatusComponent, typeof i12.JobcodeOverviewComponent, typeof i13.DialogComponent, typeof i14.AddRouteComponent]>;
|
|
45
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CoolmapModule>;
|
|
46
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aggdirect/coolmap",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^17.0.8",
|
|
6
6
|
"@angular/core": "^17.0.8"
|
|
@@ -16,9 +16,6 @@
|
|
|
16
16
|
},
|
|
17
17
|
"description": "This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.",
|
|
18
18
|
"main": "karma.conf.js",
|
|
19
|
-
"scripts": {
|
|
20
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
21
|
-
},
|
|
22
19
|
"author": "Navin Vishwakarma <navin@ogmaconceptions.com>",
|
|
23
20
|
"contributors": [
|
|
24
21
|
"Santanu Das <santanu.das@ogmaconceptions.com>"
|
|
@@ -34,5 +31,25 @@
|
|
|
34
31
|
"bugs": {
|
|
35
32
|
"url": "https://github.com/bulldog-dev/npm-packages/issues"
|
|
36
33
|
},
|
|
37
|
-
"homepage": "https://github.com/bulldog-dev/npm-packages/tree/stage#readme"
|
|
34
|
+
"homepage": "https://github.com/bulldog-dev/npm-packages/tree/stage#readme",
|
|
35
|
+
"module": "fesm2022/aggdirect-coolmap.mjs",
|
|
36
|
+
"typings": "index.d.ts",
|
|
37
|
+
"exports": {
|
|
38
|
+
"./package.json": {
|
|
39
|
+
"default": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./index.d.ts",
|
|
43
|
+
"esm2022": "./esm2022/aggdirect-coolmap.mjs",
|
|
44
|
+
"esm": "./esm2022/aggdirect-coolmap.mjs",
|
|
45
|
+
"default": "./fesm2022/aggdirect-coolmap.mjs"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"sideEffects": false,
|
|
49
|
+
"directories": {
|
|
50
|
+
"lib": "lib"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
54
|
+
}
|
|
38
55
|
}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of coolmap
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
1
|
export * from './lib/coolmap.module';
|
|
6
2
|
export * from './lib/component/map/map.component';
|
|
7
3
|
export * from './lib/component/nav/nav.component';
|
|
8
4
|
export * from './lib/component/nav/layout/add-route-nav/add-route-nav.component';
|
|
9
5
|
export * from './lib/component/nav/layout/job-code-nav/job-code-nav.component';
|
|
10
|
-
|
|
11
6
|
export * from './lib/component/route-jobcode-list/route-jobcode-list.component';
|
|
12
7
|
export * from './lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component';
|
|
13
8
|
export * from './lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component';
|
|
@@ -18,6 +13,3 @@ export * from './lib/component/shared/jobcode-status/jobcode-status.component';
|
|
|
18
13
|
export * from './lib/component/shared/job-route-list/job-route-list.component';
|
|
19
14
|
export * from './lib/component/shared/jobcode-overview/jobcode-overview.component';
|
|
20
15
|
export * from './lib/component/shared/dialog/dialog.component';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
package/karma.conf.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Karma configuration file, see link for more information
|
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
module.exports = function (config) {
|
|
5
|
-
config.set({
|
|
6
|
-
basePath: '',
|
|
7
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
-
plugins: [
|
|
9
|
-
require('karma-jasmine'),
|
|
10
|
-
require('karma-chrome-launcher'),
|
|
11
|
-
require('karma-jasmine-html-reporter'),
|
|
12
|
-
require('karma-coverage'),
|
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
-
],
|
|
15
|
-
client: {
|
|
16
|
-
jasmine: {
|
|
17
|
-
// you can add configuration options for Jasmine here
|
|
18
|
-
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
-
// for example, you can disable the random execution with `random: false`
|
|
20
|
-
// or set a specific seed with `seed: 4321`
|
|
21
|
-
},
|
|
22
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
-
},
|
|
24
|
-
jasmineHtmlReporter: {
|
|
25
|
-
suppressAll: true // removes the duplicated traces
|
|
26
|
-
},
|
|
27
|
-
coverageReporter: {
|
|
28
|
-
dir: require('path').join(__dirname, '../../coverage/coolmap'),
|
|
29
|
-
subdir: '.',
|
|
30
|
-
reporters: [
|
|
31
|
-
{ type: 'html' },
|
|
32
|
-
{ type: 'text-summary' }
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
reporters: ['progress', 'kjhtml'],
|
|
36
|
-
port: 9876,
|
|
37
|
-
colors: true,
|
|
38
|
-
logLevel: config.LOG_INFO,
|
|
39
|
-
autoWatch: true,
|
|
40
|
-
browsers: ['Chrome'],
|
|
41
|
-
singleRun: false,
|
|
42
|
-
restartOnFileChange: true
|
|
43
|
-
});
|
|
44
|
-
};
|
package/ng-package.json
DELETED
package/src/assets/mixin.scss
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@mixin ul{
|
|
2
|
-
margin: 0;
|
|
3
|
-
padding: 0;
|
|
4
|
-
list-style: none;
|
|
5
|
-
}
|
|
6
|
-
@mixin img{
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
vertical-align: middle;
|
|
9
|
-
}
|
|
10
|
-
@mixin justify-start{
|
|
11
|
-
display:flex;
|
|
12
|
-
justify-content: flex-start;
|
|
13
|
-
}
|
|
14
|
-
@mixin justify-center{
|
|
15
|
-
display:flex;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
}
|
|
18
|
-
@mixin justify-space-between{
|
|
19
|
-
display:flex;
|
|
20
|
-
justify-content: space-between;
|
|
21
|
-
}
|
|
22
|
-
@mixin justify-end{
|
|
23
|
-
display:flex;
|
|
24
|
-
justify-content: flex-start;
|
|
25
|
-
}
|
|
26
|
-
@mixin align-center{
|
|
27
|
-
align-items: center;
|
|
28
|
-
}
|
package/src/assets/palette.scss
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
$color-key:'base' !default;
|
|
2
|
-
$colors:(
|
|
3
|
-
|
|
4
|
-
'primary':(50: #000, 100: #fff, 200: #326ad3, 300: #ffad56, 400: #39c471, 500: #e8e8e8, 600: #767676, 700: #fbfbfb, 800: #3f51b5),
|
|
5
|
-
|
|
6
|
-
);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@function palette(
|
|
10
|
-
$name: 'primary',
|
|
11
|
-
$variant: $color-key,
|
|
12
|
-
$opacity: 1) {
|
|
13
|
-
$color: null;
|
|
14
|
-
$color-spectrum: map-get($colors, $name);
|
|
15
|
-
@if $color-spectrum {
|
|
16
|
-
$color: map-get($color-spectrum, $variant);
|
|
17
|
-
}
|
|
18
|
-
$alpha: if(type-of($opacity) == 'number', $opacity, map-get($color-opacity, $opacity));
|
|
19
|
-
@if $alpha {
|
|
20
|
-
$color: rgba($color, $alpha);
|
|
21
|
-
}
|
|
22
|
-
@return $color;
|
|
23
|
-
}
|
|
24
|
-
|
package/src/assets/variable.scss
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@import './palette.scss';
|
|
2
|
-
@import './mixin.scss';
|
|
3
|
-
|
|
4
|
-
$black: palette('primary', 50);
|
|
5
|
-
$white: palette('primary', 100);
|
|
6
|
-
$blue: palette('primary', 200);
|
|
7
|
-
$orenge: palette('primary', 300);
|
|
8
|
-
$green: palette('primary', 400);
|
|
9
|
-
$grey: palette('primary', 500);
|
|
10
|
-
$softgrey: palette('primary', 600);
|
|
11
|
-
$softwhite: palette('primary', 700);
|
|
12
|
-
$buttoncolor: palette('primary', 800);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|