@aggdirect/coolmap 0.1.3 → 1.0.1
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/README.md +33 -0
- package/esm2020/aggdirect-coolmap.mjs +5 -0
- package/esm2020/lib/component/add-route/add-route.component.mjs +310 -0
- package/esm2020/lib/component/job-code/job-code.component.mjs +114 -0
- package/esm2020/lib/component/map/map.component.mjs +39 -0
- package/esm2020/lib/component/nav/layout/add-route-nav/add-route-nav.component.mjs +87 -0
- package/esm2020/lib/component/nav/layout/job-code-nav/job-code-nav.component.mjs +89 -0
- package/esm2020/lib/component/nav/nav.component.mjs +52 -0
- package/esm2020/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.mjs +68 -0
- package/esm2020/lib/component/route-jobcode-list/route-jobcode-list.component.mjs +314 -0
- package/esm2020/lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component.mjs +19 -0
- package/esm2020/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.mjs +29 -0
- package/esm2020/lib/component/shared/dialog/dialog.component.mjs +29 -0
- package/esm2020/lib/component/shared/job-route-list/job-route-list.component.mjs +71 -0
- package/esm2020/lib/component/shared/jobcode-overview/jobcode-overview.component.mjs +19 -0
- package/esm2020/lib/component/shared/jobcode-status/jobcode-status.component.mjs +14 -0
- package/esm2020/lib/coolmap.component.mjs +22 -0
- package/esm2020/lib/coolmap.module.mjs +156 -0
- package/esm2020/lib/event.service.mjs +26 -0
- package/esm2020/public-api.mjs +16 -0
- package/fesm2015/aggdirect-coolmap.mjs +1367 -0
- package/fesm2015/aggdirect-coolmap.mjs.map +1 -0
- package/fesm2020/aggdirect-coolmap.mjs +1340 -0
- package/fesm2020/aggdirect-coolmap.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/component/add-route/add-route.component.d.ts +62 -0
- package/lib/component/job-code/job-code.component.d.ts +31 -0
- package/lib/component/map/map.component.d.ts +16 -0
- package/lib/component/nav/layout/add-route-nav/add-route-nav.component.d.ts +40 -0
- package/lib/component/nav/layout/job-code-nav/job-code-nav.component.d.ts +38 -0
- package/lib/component/nav/nav.component.d.ts +30 -0
- package/lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component.d.ts +19 -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 +11 -0
- package/lib/component/shared/dialog/dialog.component.d.ts +13 -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 +9 -0
- package/lib/component/shared/jobcode-status/jobcode-status.component.d.ts +8 -0
- package/lib/coolmap.component.d.ts +8 -0
- package/lib/coolmap.module.d.ts +40 -0
- package/lib/event.service.d.ts +19 -0
- package/package.json +31 -5
- package/public-api.d.ts +12 -0
- 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 -140
- package/src/lib/component/add-route/add-route.component.scss +0 -235
- package/src/lib/component/add-route/add-route.component.spec.ts +0 -23
- package/src/lib/component/add-route/add-route.component.ts +0 -270
- package/src/lib/component/job-code/job-code.component.html +0 -93
- package/src/lib/component/job-code/job-code.component.scss +0 -427
- package/src/lib/component/job-code/job-code.component.ts +0 -94
- package/src/lib/component/map/map.component.css +0 -0
- package/src/lib/component/map/map.component.html +0 -5
- package/src/lib/component/map/map.component.spec.ts +0 -23
- package/src/lib/component/map/map.component.ts +0 -33
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.html +0 -44
- package/src/lib/component/nav/layout/add-route-nav/add-route-nav.component.scss +0 -0
- 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 -70
- package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.html +0 -43
- package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.scss +0 -5
- package/src/lib/component/nav/layout/job-code-nav/job-code-nav.component.ts +0 -64
- package/src/lib/component/nav/nav.component.html +0 -19
- package/src/lib/component/nav/nav.component.scss +0 -65
- 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 -167
- 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 -42
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.html +0 -66
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.scss +0 -226
- package/src/lib/component/route-jobcode-list/route-jobcode-list.component.ts +0 -234
- 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 -30
- 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 -19
- 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/job-route-list/job-route-list.component.html +0 -27
- package/src/lib/component/shared/job-route-list/job-route-list.component.scss +0 -3
- 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 -8
- package/src/lib/component/shared/jobcode-overview/jobcode-overview.component.scss +0 -12
- 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 -15
- 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 -32
- 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 -12
- package/src/lib/coolmap.component.ts +0 -20
- package/src/lib/coolmap.module.ts +0 -92
- package/src/public-api.ts +0 -10
- 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,19 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Route, UtilsService } from 'coolmap-services';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class JobCodeListCardComponent {
|
|
5
|
+
utils: UtilsService;
|
|
6
|
+
route: Route;
|
|
7
|
+
routeSeletion: EventEmitter<any>;
|
|
8
|
+
toggleDrivermenu: EventEmitter<any>;
|
|
9
|
+
emitJobdetails: any;
|
|
10
|
+
preventCloseDetails: boolean;
|
|
11
|
+
constructor(utils: UtilsService);
|
|
12
|
+
selectRoute(route: Route): void;
|
|
13
|
+
toggleDriverlist(mouseevntType: boolean | string, route: Route, isHoverOut?: boolean): void;
|
|
14
|
+
toggleJobCodeDetails(mouseEventType: boolean, route: Route): void;
|
|
15
|
+
calculateStatusPercentage(type: string, route: any): number;
|
|
16
|
+
setRouteItem(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobCodeListCardComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobCodeListCardComponent, "app-job-code-list-card", never, { "route": "route"; "emitJobdetails": "emitJobdetails"; "preventCloseDetails": "preventCloseDetails"; }, { "routeSeletion": "routeSeletion"; "toggleDrivermenu": "toggleDrivermenu"; }, never, never, false>;
|
|
19
|
+
}
|
|
@@ -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 'coolmap-services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class RouteJobCodeListComponent implements OnInit, OnChanges {
|
|
7
|
+
private coolMap;
|
|
8
|
+
private utils;
|
|
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": "loader"; "type": "type"; "data": "data"; "currentNav": "currentNav"; "searchTerm": "searchTerm"; "clearListSeletion": "clearListSeletion"; }, { "emitroute": "emitroute"; "showAllRoute": "showAllRoute"; "clearJobDetailsFromList": "clearJobDetailsFromList"; }, never, never, false>;
|
|
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": "jobValue"; }, {}, never, never, false>;
|
|
9
|
+
}
|
package/lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Route, UtilsService } from 'coolmap-services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ViewRouteListCardComponent {
|
|
4
|
+
private utils;
|
|
5
|
+
route: Route;
|
|
6
|
+
emitrouteevent: any;
|
|
7
|
+
constructor(utils: UtilsService);
|
|
8
|
+
detailsDict(event: boolean | string, route: Route): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ViewRouteListCardComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ViewRouteListCardComponent, "app-view-route-list-card", never, { "route": "route"; "emitrouteevent": "emitrouteevent"; }, {}, never, never, false>;
|
|
11
|
+
}
|
|
@@ -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>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { CoolmapService, Route, UtilsService } from 'coolmap-services';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class JobRouteListComponent {
|
|
7
|
+
utils: UtilsService;
|
|
8
|
+
private coolMap;
|
|
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": "routes"; "selectedRoute": "selectedRoute"; "masterRoutes": "masterRoutes"; }, { "changeNav": "changeNav"; "changeRoutes": "changeRoutes"; "changeSelectedRoute": "changeSelectedRoute"; }, never, never, false>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class JobcodeOverviewComponent {
|
|
3
|
+
jobValue: any;
|
|
4
|
+
label: string[];
|
|
5
|
+
overViewEnum: any;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobcodeOverviewComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobcodeOverviewComponent, "app-jobcode-overview", never, { "jobValue": "jobValue"; }, {}, never, never, false>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Route } from 'coolmap-services';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class JobcodeStatusComponent {
|
|
4
|
+
jobValue: Route;
|
|
5
|
+
constructor();
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JobcodeStatusComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<JobcodeStatusComponent, "app-jobcode-status", never, { "jobValue": "jobValue"; }, {}, never, never, false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CoolmapComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoolmapComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoolmapComponent, "lib-coolmap", never, {}, {}, never, never, false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./coolmap.component";
|
|
3
|
+
import * as i2 from "./component/map/map.component";
|
|
4
|
+
import * as i3 from "./component/nav/nav.component";
|
|
5
|
+
import * as i4 from "./component/nav/layout/add-route-nav/add-route-nav.component";
|
|
6
|
+
import * as i5 from "./component/nav/layout/job-code-nav/job-code-nav.component";
|
|
7
|
+
import * as i6 from "./component/route-jobcode-list/route-jobcode-list.component";
|
|
8
|
+
import * as i7 from "./component/route-jobcode-list/view-route-list-card/view-route-list-card.component";
|
|
9
|
+
import * as i8 from "./component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component";
|
|
10
|
+
import * as i9 from "./component/route-jobcode-list/job-code-list-card/job-code-list-card.component";
|
|
11
|
+
import * as i10 from "./component/job-code/job-code.component";
|
|
12
|
+
import * as i11 from "./component/shared/job-route-list/job-route-list.component";
|
|
13
|
+
import * as i12 from "./component/shared/jobcode-status/jobcode-status.component";
|
|
14
|
+
import * as i13 from "./component/shared/jobcode-overview/jobcode-overview.component";
|
|
15
|
+
import * as i14 from "./component/shared/dialog/dialog.component";
|
|
16
|
+
import * as i15 from "./component/add-route/add-route.component";
|
|
17
|
+
import * as i16 from "@angular/common";
|
|
18
|
+
import * as i17 from "@angular/material/snack-bar";
|
|
19
|
+
import * as i18 from "@angular/material/sidenav";
|
|
20
|
+
import * as i19 from "@angular/cdk/drag-drop";
|
|
21
|
+
import * as i20 from "@angular/forms";
|
|
22
|
+
import * as i21 from "@angular/material/input";
|
|
23
|
+
import * as i22 from "@angular/material/select";
|
|
24
|
+
import * as i23 from "@angular/material/icon";
|
|
25
|
+
import * as i24 from "@angular/material/autocomplete";
|
|
26
|
+
import * as i25 from "@angular/material/form-field";
|
|
27
|
+
import * as i26 from "@angular/material/progress-spinner";
|
|
28
|
+
import * as i27 from "@angular/material/chips";
|
|
29
|
+
import * as i28 from "@angular/material/dialog";
|
|
30
|
+
import * as i29 from "@angular/material/tooltip";
|
|
31
|
+
import * as i30 from "@angular/material/datepicker";
|
|
32
|
+
import * as i31 from "@angular/material/core";
|
|
33
|
+
import * as i32 from "ngx-perfect-scrollbar";
|
|
34
|
+
import * as i33 from "@angular/material/button";
|
|
35
|
+
import * as i34 from "@angular/material/progress-bar";
|
|
36
|
+
export declare class CoolmapModule {
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoolmapModule, never>;
|
|
38
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoolmapModule, [typeof i1.CoolmapComponent, typeof i2.MapComponent, typeof i3.NavComponent, typeof i4.AddRouteNavComponent, typeof i5.JobCodeNavComponent, typeof i6.RouteJobCodeListComponent, typeof i7.ViewRouteListCardComponent, typeof i8.SmsCardDetailsOverviewComponent, typeof i9.JobCodeListCardComponent, typeof i10.JobCodeComponent, typeof i11.JobRouteListComponent, typeof i12.JobcodeStatusComponent, typeof i13.JobcodeOverviewComponent, typeof i14.DialogComponent, typeof i15.AddRouteComponent], [typeof i16.CommonModule, typeof i17.MatSnackBarModule, typeof i18.MatSidenavModule, typeof i19.DragDropModule, typeof i20.FormsModule, typeof i21.MatInputModule, typeof i22.MatSelectModule, typeof i23.MatIconModule, typeof i20.ReactiveFormsModule, typeof i24.MatAutocompleteModule, typeof i25.MatFormFieldModule, typeof i26.MatProgressSpinnerModule, typeof i27.MatChipsModule, typeof i28.MatDialogModule, typeof i29.MatTooltipModule, typeof i30.MatDatepickerModule, typeof i31.MatNativeDateModule, typeof i32.PerfectScrollbarModule, typeof i31.MatPseudoCheckboxModule, typeof i33.MatButtonModule, typeof i34.MatProgressBarModule], [typeof i1.CoolmapComponent, typeof i2.MapComponent, typeof i3.NavComponent, typeof i4.AddRouteNavComponent, typeof i5.JobCodeNavComponent]>;
|
|
39
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CoolmapModule>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EventService {
|
|
4
|
+
initiatecoolmap: BehaviorSubject<boolean>;
|
|
5
|
+
reintiatecoolmap: import("rxjs").Observable<boolean>;
|
|
6
|
+
preventnavChange: BehaviorSubject<boolean>;
|
|
7
|
+
navChangeObserve: import("rxjs").Observable<boolean>;
|
|
8
|
+
clearViewRouteforJobCode: BehaviorSubject<boolean>;
|
|
9
|
+
clearViewRouteforJobCodeObserve: import("rxjs").Observable<boolean>;
|
|
10
|
+
preVentJobdetailclose: BehaviorSubject<boolean>;
|
|
11
|
+
getpreVentJobdetailclose: import("rxjs").Observable<boolean>;
|
|
12
|
+
routeDetailsUtility: BehaviorSubject<{}>;
|
|
13
|
+
getrouteDetailsUtility: import("rxjs").Observable<{}>;
|
|
14
|
+
removeMapEntity: BehaviorSubject<{}>;
|
|
15
|
+
removeMapEntityUtility: import("rxjs").Observable<{}>;
|
|
16
|
+
constructor();
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aggdirect/coolmap",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^14.2.0",
|
|
6
6
|
"@angular/core": "^14.2.0"
|
|
@@ -16,12 +16,38 @@
|
|
|
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>"
|
|
25
22
|
],
|
|
26
|
-
"license": "ISC"
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"coolmap"
|
|
26
|
+
],
|
|
27
|
+
"module": "fesm2015/aggdirect-coolmap.mjs",
|
|
28
|
+
"es2020": "fesm2020/aggdirect-coolmap.mjs",
|
|
29
|
+
"esm2020": "esm2020/aggdirect-coolmap.mjs",
|
|
30
|
+
"fesm2020": "fesm2020/aggdirect-coolmap.mjs",
|
|
31
|
+
"fesm2015": "fesm2015/aggdirect-coolmap.mjs",
|
|
32
|
+
"typings": "index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
"./package.json": {
|
|
35
|
+
"default": "./package.json"
|
|
36
|
+
},
|
|
37
|
+
".": {
|
|
38
|
+
"types": "./index.d.ts",
|
|
39
|
+
"esm2020": "./esm2020/aggdirect-coolmap.mjs",
|
|
40
|
+
"es2020": "./fesm2020/aggdirect-coolmap.mjs",
|
|
41
|
+
"es2015": "./fesm2015/aggdirect-coolmap.mjs",
|
|
42
|
+
"node": "./fesm2015/aggdirect-coolmap.mjs",
|
|
43
|
+
"default": "./fesm2020/aggdirect-coolmap.mjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"sideEffects": false,
|
|
47
|
+
"directories": {
|
|
48
|
+
"lib": "lib"
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
52
|
+
}
|
|
27
53
|
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './lib/coolmap.component';
|
|
2
|
+
export * from './lib/coolmap.module';
|
|
3
|
+
export * from './lib/component/map/map.component';
|
|
4
|
+
export * from './lib/component/nav/nav.component';
|
|
5
|
+
export * from './lib/component/nav/layout/add-route-nav/add-route-nav.component';
|
|
6
|
+
export * from './lib/component/nav/layout/job-code-nav/job-code-nav.component';
|
|
7
|
+
export * from './lib/component/add-route/add-route.component';
|
|
8
|
+
export * from './lib/component/job-code/job-code.component';
|
|
9
|
+
export * from './lib/component/route-jobcode-list/route-jobcode-list.component';
|
|
10
|
+
export * from './lib/component/route-jobcode-list/job-code-list-card/job-code-list-card.component';
|
|
11
|
+
export * from './lib/component/route-jobcode-list/sms-card-details-overview/sms-card-details-overview.component';
|
|
12
|
+
export * from './lib/component/route-jobcode-list/view-route-list-card/view-route-list-card.component';
|
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
|
-
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
<div class="addroutebox">
|
|
2
|
-
<div class="routedetailbox" *ngIf="enablePopUp">
|
|
3
|
-
<div class="closebtnroutedetail">
|
|
4
|
-
<mat-icon (click)="prevantPopupClose = false; enablePopUp = false;">clear</mat-icon>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="destination">
|
|
7
|
-
<div class="duration">
|
|
8
|
-
<p class="pickprt"><b>Pickup:</b>{{popupDetails['pickup_location']}}</p>
|
|
9
|
-
<p class="dropprt"><b>Delivery:</b>{{popupDetails['delivery_location']}}</p>
|
|
10
|
-
</div>
|
|
11
|
-
<span><b>Name:</b> {{popupDetails['route_name']}}</span>
|
|
12
|
-
<span><b>Customer:</b> {{popupDetails['customer_name']}}</span>
|
|
13
|
-
<span><b>Material:</b> {{popupDetails['material']}}</span>
|
|
14
|
-
<span><b>Type:</b> {{popupDetails['unit']}}</span>
|
|
15
|
-
<span><b>Distance:</b> {{popupDetails['estimated_distance']}}</span>
|
|
16
|
-
<span><b>Travel Time:</b> {{popupDetails['estimated_time']}}</span>
|
|
17
|
-
|
|
18
|
-
<span class="routenotes"><b>Notes:</b> {{popupDetails['note']}}</span>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="createTxt">
|
|
21
|
-
<small>
|
|
22
|
-
Created by {{popupDetails['created_by_name']}} on {{popupDetails['created_at']}}
|
|
23
|
-
</small>
|
|
24
|
-
<button class="editbtn" (click)="editEvent()">Edit</button>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="add_add_route_box" cdkDrag [style.visibility]="!enableForm ? 'hidden' : 'visible'">
|
|
28
|
-
<div class="topheadingprt">
|
|
29
|
-
<h2> {{routeId? 'EDIT' : 'ADD'}} ROUTE </h2>
|
|
30
|
-
<div class="buttonprt">
|
|
31
|
-
<button class="delbtn" (click)="openDialog()">Delete</button>
|
|
32
|
-
<button mat-raised-button type="submit" class="closebtn" (click)="changeNav.next('Addroute')">Close</button>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<form [formGroup]="addRouteForm">
|
|
36
|
-
<div class="route_form_area">
|
|
37
|
-
<div class="col-6">
|
|
38
|
-
<mat-form-field>
|
|
39
|
-
<mat-label>Route Name</mat-label>
|
|
40
|
-
<input matInput formControlName="route_name" autocomplete="nope" (mousedown)="$event.stopPropagation()">
|
|
41
|
-
<mat-error *ngIf="addRouteForm.controls['route_name'].hasError('required')">
|
|
42
|
-
Route Name is required
|
|
43
|
-
</mat-error>
|
|
44
|
-
</mat-form-field>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="col-6">
|
|
47
|
-
<mat-form-field>
|
|
48
|
-
<input type="text" placeholder="Customer Name" matInput formControlName="customer_name" [matAutocomplete]="auto" (mousedown)="$event.stopPropagation()">
|
|
49
|
-
<mat-autocomplete autoActiveFirstOption #auto="matAutocomplete">
|
|
50
|
-
<mat-option *ngFor="let customer of customersList$ | async" [value]="customer['customer_name']">
|
|
51
|
-
{{customer['customer_name']}}
|
|
52
|
-
</mat-option>
|
|
53
|
-
</mat-autocomplete>
|
|
54
|
-
<mat-error *ngIf="addRouteForm.controls['customer_name'].hasError('required')">
|
|
55
|
-
Customer name is required.
|
|
56
|
-
</mat-error>
|
|
57
|
-
</mat-form-field>
|
|
58
|
-
</div>
|
|
59
|
-
<div class="col-6">
|
|
60
|
-
<mat-form-field>
|
|
61
|
-
<mat-label>Pickup</mat-label>
|
|
62
|
-
<input type="text" placeholder="Search..." matInput #filterPickup [matAutocomplete]="pickupAutocomplete"
|
|
63
|
-
formControlName="pickup_location" (mousedown)="$event.stopPropagation()">
|
|
64
|
-
|
|
65
|
-
<mat-autocomplete #pickupAutocomplete="matAutocomplete">
|
|
66
|
-
<mat-option (click)="selectedLongLat('pickup', option)" *ngFor="let option of pickupOptions"
|
|
67
|
-
[value]="option?.place_name">
|
|
68
|
-
{{option?.place_name}}
|
|
69
|
-
</mat-option>
|
|
70
|
-
</mat-autocomplete>
|
|
71
|
-
</mat-form-field>
|
|
72
|
-
<mat-error *ngIf="addRouteForm.controls['pickup_lat_lng'].touched && addRouteForm.controls['pickup_lat_lng'].hasError('required')">
|
|
73
|
-
Please select pickup location from the list.
|
|
74
|
-
</mat-error>
|
|
75
|
-
</div>
|
|
76
|
-
<div class="col-6">
|
|
77
|
-
<mat-form-field>
|
|
78
|
-
<mat-label>Delivery</mat-label>
|
|
79
|
-
<input type="text" placeholder="Search..." matInput #filterDelivery [matAutocomplete]="deliveryAutocomplete"
|
|
80
|
-
formControlName="delivery_location" (mousedown)="$event.stopPropagation()">
|
|
81
|
-
<mat-autocomplete #deliveryAutocomplete="matAutocomplete">
|
|
82
|
-
<mat-option (click)="selectedLongLat('delivery', option)" *ngFor="let option of deliveryOptions"
|
|
83
|
-
[value]="option?.place_name">
|
|
84
|
-
{{option?.place_name}}
|
|
85
|
-
</mat-option>
|
|
86
|
-
</mat-autocomplete>
|
|
87
|
-
</mat-form-field>
|
|
88
|
-
<mat-error *ngIf="addRouteForm.controls['delivery_lat_lng'].touched && addRouteForm.controls['delivery_lat_lng'].hasError('required')">
|
|
89
|
-
Please select delivery location from the list.
|
|
90
|
-
</mat-error>
|
|
91
|
-
</div>
|
|
92
|
-
<div class="col-6">
|
|
93
|
-
<mat-form-field>
|
|
94
|
-
<mat-label>Notes</mat-label>
|
|
95
|
-
<textarea style="height: 18px; resize: none;" matInput name="" id="" cols="30" rows="10" formControlName="note" autocomplete="nope" (mousedown)="$event.stopPropagation()"></textarea>
|
|
96
|
-
<mat-error *ngIf="addRouteForm.controls['note'].hasError('maxlength')">
|
|
97
|
-
Notes should be within 2048 characters.
|
|
98
|
-
</mat-error>
|
|
99
|
-
</mat-form-field>
|
|
100
|
-
</div>
|
|
101
|
-
|
|
102
|
-
<div class="col-6 d-flex">
|
|
103
|
-
<div class="inputbox m-0">
|
|
104
|
-
<mat-form-field>
|
|
105
|
-
<mat-label>Unit type</mat-label>
|
|
106
|
-
<mat-select formControlName="unit_id" (selectionChange)="checkAndFetchRouteInformation()" (mousedown)="$event.stopPropagation()">
|
|
107
|
-
<mat-option *ngFor="let unit of unitsList" [value]="unit?.id"> {{unit?.type}} </mat-option>
|
|
108
|
-
</mat-select>
|
|
109
|
-
<mat-error *ngIf="addRouteForm.controls['unit_id'].hasError('required')">
|
|
110
|
-
Unit is required
|
|
111
|
-
</mat-error>
|
|
112
|
-
</mat-form-field>
|
|
113
|
-
</div>
|
|
114
|
-
|
|
115
|
-
<div class="inputbox m-0">
|
|
116
|
-
<mat-form-field>
|
|
117
|
-
<mat-label>Material</mat-label>
|
|
118
|
-
<mat-select formControlName="materials_id" (mousedown)="$event.stopPropagation()">
|
|
119
|
-
<mat-option *ngFor="let material of materialsList" [value]="material?.material_id"> {{material?.material}}
|
|
120
|
-
</mat-option>
|
|
121
|
-
</mat-select>
|
|
122
|
-
<mat-error *ngIf="addRouteForm.controls['materials_id'].hasError('required')">
|
|
123
|
-
Meterial is required
|
|
124
|
-
</mat-error>
|
|
125
|
-
</mat-form-field>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
<div class="col-6">
|
|
129
|
-
<app-estimation-display *ngIf="addRouteForm?.value?.pickup_lat_lng && addRouteForm?.value?.delivery_lat_lng" [value]="addRouteForm['value']"></app-estimation-display>
|
|
130
|
-
</div>
|
|
131
|
-
<button mat-raised-button type="submit" (click)="saveRoute()" *ngIf="preventSave"
|
|
132
|
-
[disabled]="addRouteForm.invalid && preventSave || preventInitialSave">{{routeId? 'Update' : 'Save'}}
|
|
133
|
-
</button>
|
|
134
|
-
<div class="loader">
|
|
135
|
-
<mat-spinner *ngIf="!preventSave"></mat-spinner>
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
</form>
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|