@aggdirect/coolmap-services 1.4.9 → 4.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.
@@ -1 +0,0 @@
1
- {"version":3,"file":"aggdirect-coolmap-services.mjs","sources":["../../../../projects/coolmap-services/src/lib/service/data-model.ts","../../../../projects/coolmap-services/src/lib/service/utils.service.ts","../../../../projects/coolmap-services/src/lib/service/coolmap.service.ts","../../../../projects/coolmap-services/src/public-api.ts","../../../../projects/coolmap-services/src/aggdirect-coolmap-services.ts"],"sourcesContent":["\nexport class Route {\n index: number = 0;\n type?: string | null;\n // Job Code\n customer_contact?: string | null;\n customer_name?: string | null;\n delivery_contact?: string | null;\n delivery_lat?: number | null;\n delivery_location?: string | null | undefined;\n delivery_lon?: number | null;\n driver_list?: Array<any>;\n material?: string | null;\n order_number?: string | null;\n pickup_lat?: number | null;\n pickup_location?: string | null | undefined;\n pickup_lon?: number | null;\n project?: string | null;\n total_count?: number;\n unit?: string | null;\n values: any;\n job_id?: string;\n isSelected?: boolean;\n date?: string;\n // Add Route\n created_at?: string | null;\n created_by_name?: string | null;\n customer_id?: string | null;\n delivery_lat_lng?: string | null;\n estimated_distance?: string | null;\n estimated_time?: string | null;\n materials_id?: string | null;\n path?: [number, number];\n pickup_lat_lng?: string | null;\n route_id?: string | null;\n route_name?: string | null;\n unit_id?: string | null;\n note?: string | null;\n materialLabel?: string | null;\n isActive?: boolean;\n prevent?: boolean;\n is_system_pickup?: boolean;\n is_system_delivery?: boolean;\n}\n\nexport const EstinationData = ['estimated_distance', 'estimated_time']\nexport enum EstinationEnum {\n estimated_distance = \"miles\",\n estimated_time = \"time\"\n}\n\nexport const JobCodeOverviewData = ['order_number', 'customer_name', 'project', 'unit', 'material', 'customer_contact', 'delivery_contact', 'pickup_location', 'delivery_location']\nexport enum JobCodeOverviewEnum {\n material = \"Material\",\n order_number = \"Job Code\",\n customer_name = \"Customer\",\n customer_contact = \"Customer Contact\",\n delivery_contact = \"Delivery Contact\",\n project = \"Project Name\",\n unit = \"Job Type\",\n pickup_location = \"Pickup\",\n delivery_location = \"Delivery\",\n}\n\nexport const DriversmsCardKey = ['order_number', 'date', 'values', 'material', 'unit', 'pickup_location', 'delivery_location']\nexport enum DriverSmsCardEnum {\n order_number = 'Jobcode',\n date = 'Date',\n values = 'Total tasks',\n material = 'Material',\n unit = 'Unit',\n pickup_location = 'Pickup Address',\n delivery_location = 'Delivery Address'\n}\n\nexport class PopupData {\n coordinate: [number, number];\n pickup: string | null;\n jobCode?: string | null;\n customer?: string | null;\n drop: string | null;\n routeType: string | null;\n title: string | null;\n material: string | null;\n type: string | null;\n}\n\nexport class CoolmapConfigModel {\n analyticsRESTURL: string | null;\n RESTURLPrefix: string | null;\n repository: string | null;\n mapboxStyle: string | null;\n mapboxAccessToken: string | null;\n}\n\nexport declare class CustomerRepoDetailsModel {\n customer: CustomerDetailsModel | null;\n projectId: string | null;\n}\n\nexport declare class CustomerDetailsModel {\n id: string | null;\n name: string | null;\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, Inject, NgZone } from '@angular/core';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport { BehaviorSubject, map } from 'rxjs';\nimport { CoolmapConfigModel, Route } from './data-model';\ndeclare var google: any;\nexport interface LocationAll {\n city: string;\n latitude: string;\n location_id: string;\n longitude: string;\n name: string;\n state: string;\n street: string;\n suite: null;\n zip: string;\n formatted_address: string;\n complete_address: string;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class UtilsService {\n analyticsRESTURL = '';\n RESTURLPrefix = '';\n pickupOptions: any[] = [];\n destOptions: any[] = [];\n ownerOptions: any[] = [];\n customerOptions: any[] = [];\n unitOptions: any[] = [];\n materialOptions: any[] = [];\n jcodeOptions: any[] = [];\n driverOption: any[] = [];\n truckingCompanayOption: any[] = [];\n routeNameOptions: any[] = [];\n public preventnavChange = new BehaviorSubject(false);\n navChangeObserve = this.preventnavChange.asObservable();\n clearViewRouteforJobCode = new BehaviorSubject(false);\n clearViewRouteforJobCodeObserve =\n this.clearViewRouteforJobCode.asObservable();\n preVentJobdetailclose = new BehaviorSubject(false);\n getpreVentJobdetailclose = this.preVentJobdetailclose.asObservable();\n routeDetailsUtility = new BehaviorSubject({});\n getrouteDetailsUtility = this.routeDetailsUtility.asObservable();\n removeMapEntity = new BehaviorSubject({});\n removeMapEntityUtility = this.removeMapEntity.asObservable();\n dict = new Map<string, string>();\n unitsList: any;\n materialsList: any;\n materialsListForCustomer: any;\n customersList: any;\n locationList: any;\n pickUpAutocomplete: any;\n \n constructor(\n public http: HttpClient,\n public snackBar: MatSnackBar,\n @Inject('memberData') private config: CoolmapConfigModel,\n public ngZone: NgZone,\n ) {\n this.analyticsRESTURL = config.analyticsRESTURL;\n this.RESTURLPrefix = config.RESTURLPrefix;\n }\n getDateFormat(strVal: Date | null, seprater?: string) {\n seprater = seprater ? seprater : '-';\n const mydate = strVal;\n return (\n mydate?.getFullYear() +\n seprater +\n ((mydate ? mydate.getMonth() : 0) + 1) +\n seprater +\n mydate?.getDate()\n );\n }\n getData(path: string) {\n return this.http.get(\n `${this.analyticsRESTURL}${this.config.repository}/${path}`\n );\n }\n getRestData(path: string) {\n return this.http.get(\n `${this.RESTURLPrefix}${path}`\n );\n }\n postdata(path: string, data: any) {\n return this.http.post(\n `${this.analyticsRESTURL}${this.config.repository}/${path}`,\n data\n );\n }\n postDataWithRestUrl(path: string, data: any) {\n return this.http.post(`${this.RESTURLPrefix}${path}`, data);\n }\n \n autocomplete(searchElementRef, type?) {\n return new Promise((resolve, reject) => {\n const autocomplete = new google.maps.places.Autocomplete(searchElementRef.nativeElement, {\n types: ['address']\n });\n google.maps.event.addListener(autocomplete, 'place_changed', () => {\n this.ngZone.run(() => {\n const place = autocomplete.getPlace();\n resolve({lat: place.geometry.location.lat(), lng: place.geometry.location.lng(), formatted_address: place['formatted_address']})\n });\n });\n });\n }\n\n openSnackBar(message: string, className?: string) {\n this.snackBar.open(message, '', {\n duration: 5000,\n verticalPosition: 'top',\n horizontalPosition: 'center',\n panelClass: [className ? className : 'default'],\n });\n }\n\n makeOptions(item: Route) {\n if (item.order_number) {\n this.jcodeOptions.findIndex((elem) => elem.job_id === item.job_id) === -1\n ? this.jcodeOptions.push({\n job_code: item.order_number,\n job_id: item.job_id,\n })\n : null;\n if (item.driver_list && item.driver_list?.length > 0) {\n item.driver_list.forEach((driver) => {\n this.driverOption.findIndex(\n (elem) => elem === driver['driver_name']\n ) === -1\n ? this.driverOption.push(driver['driver_name'])\n : null;\n this.truckingCompanayOption.findIndex(\n (elem) => elem === driver['trucking_company']\n ) === -1\n ? this.truckingCompanayOption.push(driver['trucking_company'])\n : null;\n });\n }\n }\n this.pickupOptions.findIndex((elem) => elem === item.pickup_location) === -1\n ? this.pickupOptions.push(item.pickup_location)\n : null;\n this.destOptions.findIndex((elem) => elem === item.delivery_location) === -1\n ? this.destOptions.push(item.delivery_location)\n : null;\n this.customerOptions.findIndex(\n (customer) => customer === item.customer_name\n ) === -1\n ? this.customerOptions.push(item.customer_name)\n : null;\n this.unitOptions.findIndex((elem) => elem === item.unit) === -1\n ? this.unitOptions.push(item.unit)\n : null;\n\n if(item.material) {\n this.materialOptions.findIndex((elem) => elem === item.material) === -1\n ? this.materialOptions.push(item.material)\n : null;\n }\n if (item.route_name)\n this.routeNameOptions.findIndex((elem) => elem === item.route_name) === -1\n ? this.routeNameOptions.push(item.route_name)\n : null;\n }\n\n filter(value: string, filters: any) {\n if (typeof value !== 'string') {\n return [];\n }\n const filterValue = value.toLowerCase();\n if (filterValue === '') {\n return [];\n }\n const searchResults: any[] = [];\n this.unitOptions.map((unit) => {\n if (unit.toLowerCase().includes(filterValue)) {\n searchResults.push({ type: 'unit', label: unit, value: unit });\n }\n });\n this.customerOptions.map((unit) => {\n if (unit.toLowerCase().includes(filterValue)) {\n searchResults.push({ type: 'customer', label: unit, value: unit });\n }\n });\n\n if(this.materialOptions.length) {\n this.materialOptions.map((unit) => {\n if (unit.toLowerCase().includes(filterValue)) {\n searchResults.push({ type: 'material', label: unit, value: unit });\n }\n });\n }\n this.pickupOptions.map((unit) => {\n if (unit.toLowerCase().includes(filterValue)) {\n searchResults.push({\n type: 'pickup location',\n label: unit,\n value: unit,\n });\n }\n });\n this.destOptions.map((unit) => {\n if (unit.toLowerCase().includes(filterValue)) {\n searchResults.push({\n type: 'destination location',\n label: unit,\n value: unit,\n });\n }\n });\n this.jcodeOptions.map((unit) => {\n if (unit.job_code.toLowerCase().includes(filterValue)) {\n searchResults.push({\n type: 'job',\n label: unit['job_code'],\n value: unit,\n });\n }\n });\n this.driverOption.map((unit) => {\n if (unit.toLowerCase().includes(filterValue)) {\n searchResults.push({ type: 'Driver', label: unit, value: unit });\n }\n });\n\n this.truckingCompanayOption.map((unit) => {\n if (unit.toLowerCase().includes(filterValue)) {\n searchResults.push({\n type: 'Trucking Company',\n label: unit,\n value: unit,\n });\n }\n });\n this.routeNameOptions.map((unit) => {\n if (unit.toLowerCase().includes(filterValue)) {\n searchResults.push({ type: 'Route name', label: unit, value: unit });\n }\n });\n const searchDict: any = {};\n filters.map((filter: { [x: string]: any }) => {\n searchDict[filter['name'] + filter['type']] = filter;\n });\n const furtherFilter: any[] = [];\n searchResults.map((search) => {\n if (search['label'] + search['type'] in searchDict) {\n } else {\n furtherFilter.push(search);\n }\n });\n return furtherFilter;\n }\n\n getSearchResults(list: Route[], filterval: any): any {\n return list.filter((element) => {\n const result_list_boolean = [];\n if (filterval.length > 0) {\n if (filterval[0]['type'] === 'unit') {\n result_list_boolean.push(\n filterval[0]['name'] ===\n element[filterval[0]['type'] as keyof Route]\n );\n }\n if (filterval[0]['type'] === 'customer') {\n result_list_boolean.push(\n filterval[0]['name'] === element['customer_name']\n );\n }\n if (filterval[0]['type'] === 'material') {\n result_list_boolean.push(\n filterval[0]['name'] ===\n element[filterval[0]['type'] as keyof Route]\n );\n }\n if (filterval[0]['type'] === 'pickup location') {\n result_list_boolean.push(\n filterval[0]['name'] === element['pickup_location']\n );\n }\n if (filterval[0]['type'] === 'destination location') {\n result_list_boolean.push(\n filterval[0]['name'] === element['delivery_location']\n );\n }\n if (filterval[0]['type'] === 'job') {\n result_list_boolean.push(\n filterval[0]['name'] === element['order_number']\n );\n }\n if (filterval[0]['type'] === 'Route name') {\n result_list_boolean.push(\n filterval[0]['name'] === element['route_name']\n );\n }\n if (filterval[0]['type'] === 'Driver') {\n const index = element.driver_list?.findIndex((ele) => {\n return filterval[0]['name'] === ele['driver_name'];\n });\n if (index !== -1) result_list_boolean.push(true);\n }\n if (filterval[0]['type'] === 'Trucking Company') {\n const index = element.driver_list?.findIndex((ele) => {\n return filterval[0]['name'] === ele['trucking_company'];\n });\n if (index !== -1) result_list_boolean.push(true);\n }\n }\n if (result_list_boolean.length > 0) {\n return result_list_boolean.reduce((prev, curr) => prev && curr);\n }\n return false;\n });\n }\n\n clearOptions() {\n this.pickupOptions = [];\n this.destOptions = [];\n this.ownerOptions = [];\n this.customerOptions = [];\n this.unitOptions = [];\n this.materialOptions = [];\n this.jcodeOptions = [];\n this.routeNameOptions = [];\n }\n setdictValue(key: string, value: string) {\n this.dict.set(key, value);\n }\n getdictValue(key: string) {\n return JSON.parse(this.dict.get(key));\n }\n removedictValue(key: string) {\n this.dict.delete(key);\n }\n conveySearchIcon(value: any): boolean {\n if (value && typeof value !== 'object') return true;\n return false;\n }\n fetchUnitsList() {\n return new Promise((resolve, reject) => {\n if (!this.unitsList) {\n this.getData('unit/list/view').subscribe((res: any) => {\n if (res) {\n this.unitsList = res.data;\n resolve(this.unitsList);\n }\n });\n } else {\n resolve(this.unitsList);\n }\n });\n }\n\n fetchMaterialsList() {\n return new Promise((resolve, reject) => {\n if (!this.materialsList) {\n this.getData('material/list/view').subscribe((res: any) => {\n this.materialsList = this.filtermaterialList(res.data);\n resolve(this.materialsList);\n });\n } else {\n resolve(this.materialsList);\n }\n });\n }\n fetchMaterialsListForCustomer() {\n return new Promise((resolve, reject) => {\n if (!this.materialsListForCustomer) {\n this.getData('material/list/view').subscribe((res: any) => {\n this.materialsListForCustomer = this.filtermaterialList(res.data);\n resolve(this.materialsListForCustomer);\n });\n } else {\n resolve(this.materialsListForCustomer);\n }\n });\n }\n filtermaterialList(list) {\n let meterialList = [];\n list.map((item) => {\n if (item.sub.length > 0) {\n item.sub.map((subItem) => {\n if (subItem.add_to_marketplace) {\n subItem.material = item.material;\n subItem.material_id = item.material_id;\n subItem.label = item.material + ' | ' + subItem.sub_material;\n meterialList.push(subItem);\n }\n });\n }\n });\n meterialList.sort((a: any, b: any) => a.label.localeCompare(b.label));\n return meterialList;\n }\n fetchCustomersList() {\n return new Promise((resolve, reject) => {\n if (!this.customersList) {\n this.getData('company/list/view').subscribe((res: any) => {\n if (res) {\n this.customersList = res.data;\n resolve(this.customersList);\n }\n });\n } else {\n resolve(this.customersList);\n }\n });\n }\n\n fetchLocationlist() {\n return new Promise((resolve, reject) => {\n this.getRestData('locations/all').subscribe((res: { data: LocationAll }) => {\n if (res) {\n this.locationList = res.data;\n this.locationList = this.locationList.map((object) => {\n object.formatted_address = `${object.name} | ${object.street} ${object.city}, ${object.state} ${object.zip}`;\n const newItem = {\n city: object.city,\n lng: object.longitude,\n location_id: object.location_id,\n lat: object.latitude,\n name: object.name,\n state: object.state,\n street: object.street,\n zip: object.zip,\n formatted_address: object.formatted_address\n }\n return newItem;\n })\n resolve(this.locationList);\n }\n }, err => {\n console.log(err);\n });\n });\n }\n}\n","import { Injectable, Inject } from '@angular/core';\nimport * as mapboxgl from 'mapbox-gl';\nimport * as turf from '@turf/turf';\nimport { BehaviorSubject } from 'rxjs';\nimport { CoolmapConfigModel, PopupData, Route } from './data-model';\nimport { UtilsService } from './utils.service';\nimport { EventManager } from '@angular/platform-browser';\nimport { MapboxLayer } from '@deck.gl/mapbox';\nimport { ArcLayer } from '@deck.gl/layers';\n\ndeclare const Threebox: any;\n\n@Injectable({ providedIn: 'root' })\nexport class CoolmapService {\n map!: mapboxgl.Map;\n markerOriginList: mapboxgl.Marker[] = [];\n markerDestinationList: mapboxgl.Marker[] = [];\n initiatecoolmap = new BehaviorSubject(true);\n reintiatecoolmap = this.initiatecoolmap.asObservable();\n bounds = new mapboxgl.LngLatBounds();\n originDestinationCordinates: any = [];\n padding!: any;\n windowActualHeightWidth!: any;\n popup: mapboxgl.Popup;\n customTopForCustomer: number;\n\n constructor(\n public utils: UtilsService,\n public eventManager: EventManager,\n @Inject('memberData') private config: CoolmapConfigModel\n ) {\n this.customTopForCustomer = this.config.repository === 'customer' ? 65 : 0;\n this.windowActualHeightWidth = { availHeight: 0 };\n window.addEventListener('resize', this.onResize.bind(this));\n }\n\n initiateMapForAddRoute(el: HTMLElement) {\n return new Promise((resolve, reject) => {\n if (this.map) this.map.remove();\n this.map = new mapboxgl.Map({\n accessToken: this.config.mapboxAccessToken,\n container: el,\n style: this.config.mapboxStyle,\n center: [-77.036873, 38.907192],\n zoom: 10,\n bearing: 0,\n pitch: 65,\n interactive: true,\n });\n this.map.once('load', (res) => {\n resolve(res);\n });\n });\n }\n // Below method Load route with animation\n loadMapProperty(\n pinRouteGeojson: any,\n index: number,\n unit: any,\n route?: any,\n bottom?: number\n ) {\n return new Promise((resolve, reject) => {\n let origin = pinRouteGeojson.features[0].geometry.coordinates[0];\n const linecolor =\n unit === 'Ton' ? '#ff7272' : unit === 'Load' ? '#a3c52e' : '#ae23d1';\n let destination =\n pinRouteGeojson.features[0].geometry.coordinates[\n pinRouteGeojson.features[0].geometry.coordinates.length - 1\n ];\n this.extendBound(\n pinRouteGeojson.features[0].geometry.coordinates,\n true\n ).then((res: any) => {\n const point: any = {\n type: 'FeatureCollection',\n features: [\n {\n type: 'Feature',\n properties: {},\n geometry: { type: 'Point', coordinates: origin },\n },\n ],\n };\n const lineDistance = turf.length(pinRouteGeojson.features[0]);\n const arc = [];\n const steps =\n 10 * pinRouteGeojson.features[0].geometry.coordinates.length;\n for (let i = 0; i < lineDistance; i += lineDistance / steps) {\n const segment = turf.along(pinRouteGeojson.features[0], i);\n arc.push(segment.geometry.coordinates);\n }\n pinRouteGeojson.features[0].geometry.coordinates = arc;\n const pinRoute = pinRouteGeojson.features[0].geometry.coordinates;\n if(pinRoute && pinRoute.length) {\n const marker = new mapboxgl.Marker(document.createElement('div'))\n .setLngLat(pinRoute[0])\n .addTo(this.map)\n .togglePopup();\n\n if (this.map.getSource(`line${index}`)) {\n this.removeRouteAndMarker(index).then(() => {});\n }\n\n this.map.addSource(`line${index}`, {\n type: 'geojson',\n lineMetrics: true,\n data: pinRouteGeojson,\n });\n this.map.addLayer({\n type: 'line',\n source: `line${index}`,\n id: `line${index}`,\n paint: {\n 'line-width': 2,\n 'line-gradient': [\n 'interpolate',\n ['linear'],\n ['line-progress'],\n 0,\n unit === 'Ton'\n ? '#d7f7e4'\n : unit === 'Load'\n ? '#c9d8f5'\n : '#f5dcc1',\n 1,\n unit === 'Ton'\n ? '#ff7272'\n : unit === 'Load'\n ? '#a3c52e'\n : '#ae23d1',\n ],\n },\n layout: { 'line-cap': 'round', 'line-join': 'round' },\n });\n\n const dataSetForMap = {\n counter: 0,\n pinRouteGeojson,\n steps,\n point,\n pointId: `point${index}`,\n marker,\n pinRoute,\n lineId: `line${index}`,\n index,\n origin,\n destination,\n lineDistance,\n linecolor,\n route,\n isViewRoute: true,\n };\n this.createMarker(dataSetForMap);\n this.map.on('mouseenter', `line${index}`, (e) => {\n this.map.setPaintProperty(`line${index}`, 'line-width', 5);\n this.map.setPaintProperty(`line${index}`, 'line-opacity', 1);\n const datasetForPopup: PopupData = {\n coordinate: [e.lngLat.lng, e.lngLat.lat],\n pickup: route.pickup_location ? route.pickup_location : '',\n drop: route.delivery_location ? route.delivery_location : '',\n routeType: route.project ? 'Project' : 'Route',\n title: route.project\n ? route.project\n : route.route_name\n ? route.route_name\n : '',\n material: route.material ? route.material : '',\n type: route.unit ? route.unit : '',\n };\n if(this.popup) this.popup.remove();\n this.createPopup(datasetForPopup);\n });\n this.map.on('mouseleave', `line${index}`, (e) => {\n this.map.setPaintProperty(`line${index}`, 'line-width', 2);\n if (this.popup) {\n this.popup.remove();\n }\n });\n }\n });\n\n this.map.once('idle', (res) => {\n resolve(true);\n });\n });\n }\n // Below method Load route without animation\n drawLine(\n cordinates?: any,\n index?: number | any,\n route?: any,\n enablefitbound?: boolean,\n routeType?: string\n ) {\n let linecolor: any;\n let origin = cordinates[0];\n let destination = cordinates[cordinates.length - 1];\n if (\n origin[0] &&\n origin[1] &&\n destination &&\n destination[0] &&\n destination[1]\n ) {\n this.map.once('idle', (res) => {\n linecolor = this.provideLineColor(route['unit'], routeType);\n if (enablefitbound) {\n const padding = {\n top: this.padding.top + this.customTopForCustomer,\n bottom:\n this.padding.bottom +\n (this.windowActualHeightWidth.availHeight -\n (window.innerHeight - 65)),\n left: this.padding.left,\n right: this.padding.right,\n };\n this.map.fitBounds(\n [origin, destination],\n { padding, pitch: 65 },\n { fitboundCompleteJob: true }\n );\n }\n if (this.map.getSource(`route-source-for-job-code${index}`)) {\n this.removeRouteAndMarker(index).then(() => {});\n }\n this.map.addSource(`route-source-for-job-code${index}`, {\n type: 'geojson',\n data: {\n type: 'Feature',\n properties: {},\n geometry: { type: 'LineString', coordinates: cordinates },\n },\n });\n this.map.addLayer({\n id: `route-for-job-code${index}`,\n type: 'line',\n source: `route-source-for-job-code${index}`,\n paint: { 'line-color': linecolor, 'line-width': 2 },\n layout: { 'line-cap': 'round', 'line-join': 'round' },\n });\n const dataSetForMap = {\n origin,\n destination,\n index,\n linecolor,\n route,\n };\n this.createMarker(dataSetForMap);\n this.map.on('mouseenter', `route-for-job-code${index}`, (e) => {\n if (this.popup) {\n this.popup.remove();\n }\n this.map.setPaintProperty(\n `route-for-job-code${index}`,\n 'line-width',\n 5\n );\n this.map.setPaintProperty(\n `route-for-job-code${index}`,\n 'line-opacity',\n 1\n );\n const datasetForPopup: PopupData = {\n coordinate: [e.lngLat.lng, e.lngLat.lat],\n pickup: route.pickup_location ? route.pickup_location : '',\n drop: route.delivery_location ? route.delivery_location : '',\n jobCode: route.project ? route.order_number : null,\n customer: route.project ? route.customer_name : null,\n routeType: route.project ? 'Project' : 'Route',\n title: route.project\n ? route.project\n : route.route_name\n ? route.route_name\n : '',\n material: route.material ? route.material : '',\n type: route.unit ? route.unit : '',\n };\n this.createPopup(datasetForPopup);\n });\n this.map.on('mouseleave', `route-for-job-code${index}`, (e) => {\n this.map.setPaintProperty(\n `route-for-job-code${index}`,\n 'line-width',\n 2\n );\n if (this.popup) {\n this.popup.remove();\n }\n });\n });\n\n }\n }\n\n provideLineColor(unitType: string, type?: string | undefined) {\n let checkType =\n type && !['jobrouteList', 'addroute'].includes(type) ? true : false;\n let color;\n switch (unitType) {\n case 'Ton':\n color = checkType ? '#39c471' : '#ff7272';\n break;\n case 'Load':\n color = checkType ? '#326ad3' : '#a3c52e';\n break;\n case 'Hourly':\n color = checkType ? '#ffad56' : '#ae23d1';\n break;\n }\n return color;\n }\n\n showRoutePopup(arcDetails, event, isViewRoute?): void {\n if (this.popup) {\n this.popup.remove();\n this.map.setPaintProperty(\n `${isViewRoute ? 'line' : 'route-for-job-code'}${\n arcDetails.layer.props.data.index\n }`,\n 'line-width',\n 2\n );\n }\n if (\n arcDetails.color &&\n this.map.getLayoutProperty(arcDetails.layer.id, 'visibility') !== 'none'\n ) {\n this.map.setPaintProperty(\n `${isViewRoute ? 'line' : 'route-for-job-code'}${\n arcDetails.layer.props.data.index\n }`,\n 'line-width',\n 5\n );\n this.map.setPaintProperty(\n `${isViewRoute ? 'line' : 'route-for-job-code'}${\n arcDetails.layer.props.data.index\n }`,\n 'line-opacity',\n 1\n );\n\n const datasetForPopup: PopupData = {\n coordinate: arcDetails.coordinate,\n pickup: arcDetails.layer.props.data.route.pickup_location\n ? arcDetails.layer.props.data.route.pickup_location\n : '',\n drop: arcDetails.layer.props.data.route.delivery_location\n ? arcDetails.layer.props.data.route.delivery_location\n : '',\n jobCode: arcDetails.layer.props.data.route.project\n ? arcDetails.layer.props.data.route.order_number\n : '',\n customer: arcDetails.layer.props.data.route.project\n ? arcDetails.layer.props.data.route.customer_name\n : '',\n routeType: arcDetails.layer.props.data.route.project\n ? 'Project'\n : 'Route',\n title: arcDetails.layer.props.data.route.project\n ? arcDetails.layer.props.data.route.project\n : arcDetails.layer.props.data.route.route_name\n ? arcDetails.layer.props.data.route.route_name\n : '',\n material: arcDetails.layer.props.data.route.material\n ? arcDetails.layer.props.data.route.material\n : '',\n type: arcDetails.layer.props.data.route.unit\n ? arcDetails.layer.props.data.route.unit\n : '',\n };\n this.createPopup(datasetForPopup);\n }\n }\n\n createPopup(datasetForPopup: PopupData): void {\n this.popup = new mapboxgl.Popup({\n closeButton: false,\n closeOnClick: false,\n closeOnMove: true,\n anchor: 'bottom-left',\n });\n this.popup\n .setLngLat(datasetForPopup.coordinate)\n .setHTML(\n `<div class=\"destination\">\n <div class=\"duration\">\n <p class=\"pickprt\"><b>Pickup Location:</b> ${\n datasetForPopup.pickup?.split('|')[1] ? datasetForPopup.pickup.split('|')[1] : datasetForPopup.pickup\n }</p>\n <p class=\"dropprt\"><b>Drop Location:</b> ${\n datasetForPopup.drop?.split('|')[1] ? \n datasetForPopup.drop.split('|')[1] : \n datasetForPopup.drop}</p>\n </div>\n ${\n datasetForPopup.jobCode\n ? '<span><b>Job Code:</b> ' + datasetForPopup.jobCode + '</span>'\n : ''\n }\n ${\n datasetForPopup.customer\n ? '<span><b>Customer:</b> ' + datasetForPopup.customer + '</span>'\n : ''\n }\n <span>\n <b>${datasetForPopup.routeType} Name:</b> \n ${datasetForPopup.title}\n </span>\n ${\n datasetForPopup.material\n ? '<span><b>Material:</b> ' + datasetForPopup.material + '</span>'\n : ''\n }\n <span><b>Type:</b> ${datasetForPopup.type}</span>\n </div>`\n )\n .addTo(this.map);\n }\n\n hexToRGB(hex: any): [number, number, number] {\n return hex\n .replace(\n /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,\n (m, r, g, b) => '#' + r + r + g + g + b + b\n )\n .substring(1)\n .match(/.{2}/g)\n .map((x) => parseInt(x, 16));\n }\n\n createMarker(routeDetails) {\n if (\n routeDetails.origin[0] &&\n routeDetails.origin[1] &&\n routeDetails.destination[0] &&\n routeDetails.destination[1]\n ) {\n const popup = new mapboxgl.Popup({ closeButton: false }).setHTML(\n '<b>Pickup: </b>' + routeDetails.route?.pickup_location\n );\n const popupForDestination = new mapboxgl.Popup({\n closeButton: false,\n }).setHTML('<b>Delivery: </b>' + routeDetails.route?.delivery_location);\n\n const el = document.createElement('div');\n el.className = 'marker';\n el.innerHTML = `<span class='markerPointer' style='background:${routeDetails.linecolor}'><b>P</b><span class='markerSpan' style='border-top: 10px solid ${routeDetails.linecolor}'></span></span>`;\n\n const originMarker = new mapboxgl.Marker(el)\n .setPopup(popup)\n .setLngLat(routeDetails.origin)\n .addTo(this.map);\n\n originMarker\n .getElement()\n .addEventListener('mouseenter', () => originMarker.togglePopup());\n originMarker\n .getElement()\n .addEventListener('mouseleave', () => originMarker.togglePopup());\n\n const elementForDestination = document.createElement('div');\n elementForDestination.className = 'marker';\n elementForDestination.innerHTML = `<span class='markerPointer' style='background:${routeDetails.linecolor}'><b>D</b><span class='markerSpan' style='border-top: 10px solid ${routeDetails.linecolor}'></span></span>`;\n\n const destinationMarker = new mapboxgl.Marker(elementForDestination)\n .setPopup(popupForDestination)\n .setLngLat(routeDetails.destination)\n .addTo(this.map);\n destinationMarker\n .getElement()\n .addEventListener('mouseenter', () => destinationMarker.togglePopup());\n destinationMarker\n .getElement()\n .addEventListener('mouseleave', () => destinationMarker.togglePopup());\n this.markerOriginList[routeDetails.index] = originMarker;\n this.markerDestinationList[routeDetails.index] = destinationMarker;\n\n const colorArray = this.hexToRGB(routeDetails.linecolor);\n const arcLayer = new MapboxLayer({\n id: 'arc-layer' + routeDetails.index,\n type: ArcLayer,\n pickable: true,\n data: { route: routeDetails.route, index: routeDetails.index },\n getWidth: 1,\n getSourcePosition: routeDetails.origin,\n getTargetPosition: routeDetails.destination,\n getTargetColor: [255, 255, 255],\n getSourceColor: [colorArray[0], colorArray[1], colorArray[2]],\n onHover: (info, event) =>\n this.showRoutePopup(info, event, routeDetails.isViewRoute),\n });\n this.map.addLayer(arcLayer);\n }\n }\n\n async removeRouteAndMarker(index: number | string | any) {\n if (this.map) {\n this.map.getLayer(`arc-layer${index}`)\n ? this.map.removeLayer(`arc-layer${index}`)\n : '';\n this.map.getLayer(`line${index}`)\n ? this.map.removeLayer(`line${index}`)\n : '';\n this.map.getLayer(`custom_layer${index}`)\n ? this.map.removeLayer(`custom_layer${index}`)\n : '';\n this.map.getSource(`line${index}`)\n ? this.map.removeSource(`line${index}`)\n : '';\n this.map.getLayer(`route-for-job-code${index}`)\n ? this.map.removeLayer(`route-for-job-code${index}`)\n : '';\n this.map.getSource(`route-source-for-job-code${index}`)\n ? this.map.removeSource(`route-source-for-job-code${index}`)\n : '';\n this.findMarkerBound(index);\n this.markerOriginList[index] ? this.markerOriginList[index].remove() : '';\n this.markerDestinationList[index]\n ? this.markerDestinationList[index].remove()\n : '';\n await true;\n }\n }\n findMarkerBound(index: any) {\n const indexOfCordinates = this.originDestinationCordinates.findIndex(\n (x: any) =>\n x[0][0].toFixed(6) ==\n this.markerOriginList[index]?.getLngLat()?.lng.toFixed(6) &&\n x[0][1].toFixed(6) ==\n this.markerOriginList[index]?.getLngLat()?.lat.toFixed(6)\n );\n if (indexOfCordinates >= 0) {\n this.originDestinationCordinates.splice(indexOfCordinates, 1);\n }\n }\n async filterRoute(ID: any, visibility: string, showAllFitbound?: boolean) {\n if (ID) {\n if (this.map.getLayer(`route-for-job-code${ID}`)) {\n this.map.setLayoutProperty(\n `route-for-job-code${ID}`,\n 'visibility',\n visibility\n );\n const originM = this.markerOriginList[ID].getElement();\n originM.style.display = visibility === 'visible' ? 'block' : visibility;\n const destinationM = this.markerDestinationList[ID].getElement();\n destinationM.style.display =\n visibility === 'visible' ? 'block' : visibility;\n if (visibility === 'none' && showAllFitbound) {\n this.findMarkerBound(ID);\n this.extendReBound();\n }\n }\n if (this.map.getLayer(`arc-layer${ID}`)) {\n this.map.setLayoutProperty(`arc-layer${ID}`, 'visibility', visibility);\n }\n }\n await true;\n }\n extendBound(route: any, showAllFitbound: boolean | undefined) {\n return new Promise((resolve, reject) => {\n if (route) {\n if (typeof route === 'string') {\n let path: any = route.split(';');\n path = path.map((ele: string | any) => {\n return (ele = this.formateLatLong(ele));\n });\n path.forEach((ele: any, index: number) => {\n if (ele.length === 1) path.splice(index, 1);\n });\n route = path;\n }\n if (\n route[0][0] &&\n route[0][1] &&\n route[route.length - 1][0] &&\n route[route.length - 1][1]\n ) {\n this.originDestinationCordinates.push(route);\n route.map((item: any) => {\n this.bounds.extend(item);\n });\n }\n }\n if (showAllFitbound) {\n setTimeout(() => {\n if (showAllFitbound && Object.keys(this.bounds).length > 0)\n this.map.fitBounds(\n this.bounds,\n { pitch: 65 },\n { fitboundComplete: true }\n );\n }, 100);\n\n this.map.once('moveend', (event: any) => {\n if (event.fitboundComplete) {\n resolve(true);\n }\n });\n }\n });\n }\n\n extendReBound(bottom?: number) {\n return new Promise((resolve, reject) => {\n this.bounds = new mapboxgl.LngLatBounds();\n\n if (this.originDestinationCordinates.length >= 0) {\n this.originDestinationCordinates.map((item: any, index: number) => {\n item.map((route: any) => {\n this.bounds.extend(route);\n });\n if (index === this.originDestinationCordinates.length - 1) {\n const padding = {\n top: this.padding.top + this.customTopForCustomer,\n bottom:\n this.padding.bottom +\n (this.windowActualHeightWidth.availHeight -\n (window.innerHeight - 65)),\n left: this.padding.left,\n right: this.padding.right,\n };\n setTimeout(() => {\n if (this.originDestinationCordinates.length > 0)\n this.map.fitBounds(this.bounds, { padding, pitch: 65 });\n }, 500);\n resolve(true);\n }\n });\n } else {\n resolve(true);\n }\n });\n }\n plotRoute(\n route: any,\n i: number | any,\n type: string,\n enablefitbound?: boolean,\n showAllFitbound?: boolean\n ) {\n return new Promise((resolve, reject) => {\n let param: any = {};\n if (['jobcode'].includes(type)) {\n param['job'] = route['job_id'];\n this.utils.postDataWithRestUrl('schedule/job/path', param).subscribe(\n (res: any) => {\n if (res['data']['route']) {\n let path = res['data']['route'].split(';');\n path = path.map((ele: string | any) => {\n return (ele = this.formateLatLong(ele));\n });\n path.forEach((ele: any, index: number) => {\n if (ele.length === 1) path.splice(index, 1);\n });\n route['path'] = path;\n this.extendBound(route['path'], showAllFitbound);\n if (route['path'] && route['path'].length > 0)\n this.drawLine(route['path'], i, route, enablefitbound, type);\n route['index'] = i;\n } else {\n this.extendBound(null, showAllFitbound);\n }\n resolve(true);\n },\n (err) => {\n if (err) {\n reject(false);\n }\n }\n );\n } else if (['jobrouteList', 'addroute'].includes(type)) {\n if (route['path'] && route['path'].length > 0) {\n let path = route['path'].split(';');\n path = path.map((ele: string | any) => {\n return (ele = this.formateLatLong(ele));\n });\n path.forEach((ele: any, index: number) => {\n if (ele.length === 1) path.splice(index, 1);\n });\n this.extendBound(path, showAllFitbound);\n this.drawLine(path, i, route, enablefitbound, type);\n }\n }\n });\n }\n clearBound() {\n this.bounds = new mapboxgl.LngLatBounds();\n this.originDestinationCordinates = [];\n this.clearPadding();\n }\n formateLatLong(latlong: string) {\n return latlong\n ? latlong\n .split(',')\n .map((x) => +x)\n .reverse()\n : null;\n }\n clearBoundWithCordinates() {\n this.bounds = new mapboxgl.LngLatBounds();\n this.originDestinationCordinates = [];\n }\n\n onResize(event: any) {\n if (!this.bounds.isEmpty()) {\n this.windowActualHeightWidth.availHeight =\n window.innerHeight > window.screen.availHeight\n ? window.innerHeight\n : window.screen.availHeight;\n setTimeout(() => {\n this.map.fitBounds(this.bounds, {\n padding: {\n top: this.padding.top + this.customTopForCustomer,\n bottom:\n this.padding.bottom +\n (this.windowActualHeightWidth.availHeight -\n (event.target.innerHeight - 65)),\n left: this.padding.left,\n right: this.padding.right,\n },\n pitch: 65,\n });\n }, 500);\n }\n }\n\n setWindowHeight(screen: any) {\n this.windowActualHeightWidth.availHeight = screen;\n }\n setPadding(padding: any) {\n this.padding = padding;\n }\n clearPadding() {\n this.padding = null;\n }\n removeJobFromMap(data: Route[]) {\n data.map((ele: any, index: number) => {\n const id = ele['job_id'] ? ele['job_id'] : ele['route_id'];\n this.removeRouteAndMarker(id);\n if (index === data.length - 1) {\n this.extendReBound();\n }\n });\n }\n}\n","/*\n * Public API Surface of @aggdirect/coolmap-services\n */\nexport * from './lib/service/coolmap.service';\nexport * from './lib/service/utils.service';\nexport * from './lib/service/data-model';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;MACa,KAAK,CAAA;IAChB,KAAK,GAAW,CAAC,CAAC;AAClB,IAAA,IAAI,CAAiB;;AAErB,IAAA,gBAAgB,CAAiB;AACjC,IAAA,aAAa,CAAiB;AAC9B,IAAA,gBAAgB,CAAiB;AACjC,IAAA,YAAY,CAAiB;AAC7B,IAAA,iBAAiB,CAA6B;AAC9C,IAAA,YAAY,CAAiB;AAC7B,IAAA,WAAW,CAAc;AACzB,IAAA,QAAQ,CAAiB;AACzB,IAAA,YAAY,CAAiB;AAC7B,IAAA,UAAU,CAAiB;AAC3B,IAAA,eAAe,CAA6B;AAC5C,IAAA,UAAU,CAAiB;AAC3B,IAAA,OAAO,CAAiB;AACxB,IAAA,WAAW,CAAU;AACrB,IAAA,IAAI,CAAiB;AACrB,IAAA,MAAM,CAAM;AACZ,IAAA,MAAM,CAAU;AAChB,IAAA,UAAU,CAAW;AACrB,IAAA,IAAI,CAAU;;AAEd,IAAA,UAAU,CAAiB;AAC3B,IAAA,eAAe,CAAiB;AAChC,IAAA,WAAW,CAAiB;AAC5B,IAAA,gBAAgB,CAAiB;AACjC,IAAA,kBAAkB,CAAiB;AACnC,IAAA,cAAc,CAAiB;AAC/B,IAAA,YAAY,CAAiB;AAC7B,IAAA,IAAI,CAAoB;AACxB,IAAA,cAAc,CAAiB;AAC/B,IAAA,QAAQ,CAAiB;AACzB,IAAA,UAAU,CAAiB;AAC3B,IAAA,OAAO,CAAiB;AACxB,IAAA,IAAI,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A,cAAc,cADD,MAAM,EAAA,CAAA,CAAA;;2FACnB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;0BAiB7B,MAAM;2BAAC,YAAY,CAAA;;;AC7BxB;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,47 +0,0 @@
1
- import * as mapboxgl from 'mapbox-gl';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { CoolmapConfigModel, PopupData, Route } from './data-model';
4
- import { UtilsService } from './utils.service';
5
- import { EventManager } from '@angular/platform-browser';
6
- import * as i0 from "@angular/core";
7
- export declare class CoolmapService {
8
- utils: UtilsService;
9
- eventManager: EventManager;
10
- private config;
11
- map: mapboxgl.Map;
12
- markerOriginList: mapboxgl.Marker[];
13
- markerDestinationList: mapboxgl.Marker[];
14
- initiatecoolmap: BehaviorSubject<boolean>;
15
- reintiatecoolmap: import("rxjs").Observable<boolean>;
16
- bounds: mapboxgl.LngLatBounds;
17
- originDestinationCordinates: any;
18
- padding: any;
19
- windowActualHeightWidth: any;
20
- popup: mapboxgl.Popup;
21
- customTopForCustomer: number;
22
- constructor(utils: UtilsService, eventManager: EventManager, config: CoolmapConfigModel);
23
- initiateMapForAddRoute(el: HTMLElement): Promise<unknown>;
24
- loadMapProperty(pinRouteGeojson: any, index: number, unit: any, route?: any, bottom?: number): Promise<unknown>;
25
- drawLine(cordinates?: any, index?: number | any, route?: any, enablefitbound?: boolean, routeType?: string): void;
26
- provideLineColor(unitType: string, type?: string | undefined): any;
27
- showRoutePopup(arcDetails: any, event: any, isViewRoute?: any): void;
28
- createPopup(datasetForPopup: PopupData): void;
29
- hexToRGB(hex: any): [number, number, number];
30
- createMarker(routeDetails: any): void;
31
- removeRouteAndMarker(index: number | string | any): Promise<void>;
32
- findMarkerBound(index: any): void;
33
- filterRoute(ID: any, visibility: string, showAllFitbound?: boolean): Promise<void>;
34
- extendBound(route: any, showAllFitbound: boolean | undefined): Promise<unknown>;
35
- extendReBound(bottom?: number): Promise<unknown>;
36
- plotRoute(route: any, i: number | any, type: string, enablefitbound?: boolean, showAllFitbound?: boolean): Promise<unknown>;
37
- clearBound(): void;
38
- formateLatLong(latlong: string): number[];
39
- clearBoundWithCordinates(): void;
40
- onResize(event: any): void;
41
- setWindowHeight(screen: any): void;
42
- setPadding(padding: any): void;
43
- clearPadding(): void;
44
- removeJobFromMap(data: Route[]): void;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<CoolmapService, never>;
46
- static ɵprov: i0.ɵɵInjectableDeclaration<CoolmapService>;
47
- }
@@ -1,94 +0,0 @@
1
- export declare class Route {
2
- index: number;
3
- type?: string | null;
4
- customer_contact?: string | null;
5
- customer_name?: string | null;
6
- delivery_contact?: string | null;
7
- delivery_lat?: number | null;
8
- delivery_location?: string | null | undefined;
9
- delivery_lon?: number | null;
10
- driver_list?: Array<any>;
11
- material?: string | null;
12
- order_number?: string | null;
13
- pickup_lat?: number | null;
14
- pickup_location?: string | null | undefined;
15
- pickup_lon?: number | null;
16
- project?: string | null;
17
- total_count?: number;
18
- unit?: string | null;
19
- values: any;
20
- job_id?: string;
21
- isSelected?: boolean;
22
- date?: string;
23
- created_at?: string | null;
24
- created_by_name?: string | null;
25
- customer_id?: string | null;
26
- delivery_lat_lng?: string | null;
27
- estimated_distance?: string | null;
28
- estimated_time?: string | null;
29
- materials_id?: string | null;
30
- path?: [number, number];
31
- pickup_lat_lng?: string | null;
32
- route_id?: string | null;
33
- route_name?: string | null;
34
- unit_id?: string | null;
35
- note?: string | null;
36
- materialLabel?: string | null;
37
- isActive?: boolean;
38
- prevent?: boolean;
39
- is_system_pickup?: boolean;
40
- is_system_delivery?: boolean;
41
- }
42
- export declare const EstinationData: string[];
43
- export declare enum EstinationEnum {
44
- estimated_distance = "miles",
45
- estimated_time = "time"
46
- }
47
- export declare const JobCodeOverviewData: string[];
48
- export declare enum JobCodeOverviewEnum {
49
- material = "Material",
50
- order_number = "Job Code",
51
- customer_name = "Customer",
52
- customer_contact = "Customer Contact",
53
- delivery_contact = "Delivery Contact",
54
- project = "Project Name",
55
- unit = "Job Type",
56
- pickup_location = "Pickup",
57
- delivery_location = "Delivery"
58
- }
59
- export declare const DriversmsCardKey: string[];
60
- export declare enum DriverSmsCardEnum {
61
- order_number = "Jobcode",
62
- date = "Date",
63
- values = "Total tasks",
64
- material = "Material",
65
- unit = "Unit",
66
- pickup_location = "Pickup Address",
67
- delivery_location = "Delivery Address"
68
- }
69
- export declare class PopupData {
70
- coordinate: [number, number];
71
- pickup: string | null;
72
- jobCode?: string | null;
73
- customer?: string | null;
74
- drop: string | null;
75
- routeType: string | null;
76
- title: string | null;
77
- material: string | null;
78
- type: string | null;
79
- }
80
- export declare class CoolmapConfigModel {
81
- analyticsRESTURL: string | null;
82
- RESTURLPrefix: string | null;
83
- repository: string | null;
84
- mapboxStyle: string | null;
85
- mapboxAccessToken: string | null;
86
- }
87
- export declare class CustomerRepoDetailsModel {
88
- customer: CustomerDetailsModel | null;
89
- projectId: string | null;
90
- }
91
- export declare class CustomerDetailsModel {
92
- id: string | null;
93
- name: string | null;
94
- }
@@ -1,78 +0,0 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { NgZone } from '@angular/core';
3
- import { MatSnackBar } from '@angular/material/snack-bar';
4
- import { BehaviorSubject } from 'rxjs';
5
- import { CoolmapConfigModel, Route } from './data-model';
6
- import * as i0 from "@angular/core";
7
- export interface LocationAll {
8
- city: string;
9
- latitude: string;
10
- location_id: string;
11
- longitude: string;
12
- name: string;
13
- state: string;
14
- street: string;
15
- suite: null;
16
- zip: string;
17
- formatted_address: string;
18
- complete_address: string;
19
- }
20
- export declare class UtilsService {
21
- http: HttpClient;
22
- snackBar: MatSnackBar;
23
- private config;
24
- ngZone: NgZone;
25
- analyticsRESTURL: string;
26
- RESTURLPrefix: string;
27
- pickupOptions: any[];
28
- destOptions: any[];
29
- ownerOptions: any[];
30
- customerOptions: any[];
31
- unitOptions: any[];
32
- materialOptions: any[];
33
- jcodeOptions: any[];
34
- driverOption: any[];
35
- truckingCompanayOption: any[];
36
- routeNameOptions: any[];
37
- preventnavChange: BehaviorSubject<boolean>;
38
- navChangeObserve: import("rxjs").Observable<boolean>;
39
- clearViewRouteforJobCode: BehaviorSubject<boolean>;
40
- clearViewRouteforJobCodeObserve: import("rxjs").Observable<boolean>;
41
- preVentJobdetailclose: BehaviorSubject<boolean>;
42
- getpreVentJobdetailclose: import("rxjs").Observable<boolean>;
43
- routeDetailsUtility: BehaviorSubject<{}>;
44
- getrouteDetailsUtility: import("rxjs").Observable<{}>;
45
- removeMapEntity: BehaviorSubject<{}>;
46
- removeMapEntityUtility: import("rxjs").Observable<{}>;
47
- dict: Map<string, string>;
48
- unitsList: any;
49
- materialsList: any;
50
- materialsListForCustomer: any;
51
- customersList: any;
52
- locationList: any;
53
- pickUpAutocomplete: any;
54
- constructor(http: HttpClient, snackBar: MatSnackBar, config: CoolmapConfigModel, ngZone: NgZone);
55
- getDateFormat(strVal: Date | null, seprater?: string): string;
56
- getData(path: string): import("rxjs").Observable<Object>;
57
- getRestData(path: string): import("rxjs").Observable<Object>;
58
- postdata(path: string, data: any): import("rxjs").Observable<Object>;
59
- postDataWithRestUrl(path: string, data: any): import("rxjs").Observable<Object>;
60
- autocomplete(searchElementRef: any, type?: any): Promise<unknown>;
61
- openSnackBar(message: string, className?: string): void;
62
- makeOptions(item: Route): void;
63
- filter(value: string, filters: any): any[];
64
- getSearchResults(list: Route[], filterval: any): any;
65
- clearOptions(): void;
66
- setdictValue(key: string, value: string): void;
67
- getdictValue(key: string): any;
68
- removedictValue(key: string): void;
69
- conveySearchIcon(value: any): boolean;
70
- fetchUnitsList(): Promise<unknown>;
71
- fetchMaterialsList(): Promise<unknown>;
72
- fetchMaterialsListForCustomer(): Promise<unknown>;
73
- filtermaterialList(list: any): any[];
74
- fetchCustomersList(): Promise<unknown>;
75
- fetchLocationlist(): Promise<unknown>;
76
- static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
77
- static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
78
- }
package/public-api.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './lib/service/coolmap.service';
2
- export * from './lib/service/utils.service';
3
- export * from './lib/service/data-model';