@aggdirect/coolmap-services 4.0.7 → 10.2.3
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 +18 -43
- package/esm2022/aggdirect-coolmap-services.mjs +5 -0
- package/esm2022/lib/service/coolmap.service.mjs +626 -0
- package/esm2022/lib/service/data-model.mjs +90 -0
- package/esm2022/lib/service/utils.service.mjs +363 -0
- package/esm2022/public-api.mjs +7 -0
- package/fesm2022/aggdirect-coolmap-services.mjs +707 -1111
- package/fesm2022/aggdirect-coolmap-services.mjs.map +1 -1
- package/index.d.ts +5 -255
- package/lib/service/coolmap.service.d.ts +47 -0
- package/lib/service/data-model.d.ts +92 -0
- package/lib/service/utils.service.d.ts +61 -0
- package/package.json +26 -17
- package/public-api.d.ts +3 -0
package/index.d.ts
CHANGED
|
@@ -1,255 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import * as mapbox_gl from 'mapbox-gl';
|
|
7
|
-
|
|
8
|
-
declare class CoolmapServices {
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoolmapServices, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CoolmapServices, "lib-coolmap-services", never, {}, {}, never, never, true, never>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type ToastVariant = 'success' | 'error' | 'warning' | 'info';
|
|
14
|
-
type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
15
|
-
interface ToastConfig {
|
|
16
|
-
message: string;
|
|
17
|
-
title?: string;
|
|
18
|
-
variant?: ToastVariant;
|
|
19
|
-
duration?: number;
|
|
20
|
-
dismissible?: boolean;
|
|
21
|
-
action?: {
|
|
22
|
-
label: string;
|
|
23
|
-
onClick: () => void;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
interface Toast extends ToastConfig {
|
|
27
|
-
id: string;
|
|
28
|
-
variant: ToastVariant;
|
|
29
|
-
duration: number;
|
|
30
|
-
dismissible: boolean;
|
|
31
|
-
createdAt: Date;
|
|
32
|
-
}
|
|
33
|
-
declare class AgToastService {
|
|
34
|
-
private _toasts;
|
|
35
|
-
private defaultDuration;
|
|
36
|
-
private position;
|
|
37
|
-
toasts: i0.Signal<Toast[]>;
|
|
38
|
-
toastPosition: i0.Signal<ToastPosition>;
|
|
39
|
-
private generateId;
|
|
40
|
-
setPosition(pos: ToastPosition): void;
|
|
41
|
-
show(config: ToastConfig): string;
|
|
42
|
-
success(message: string, title?: string, duration?: number): string;
|
|
43
|
-
error(message: string, title?: string, duration?: number): string;
|
|
44
|
-
warning(message: string, title?: string, duration?: number): string;
|
|
45
|
-
info(message: string, title?: string, duration?: number): string;
|
|
46
|
-
dismiss(id: string): void;
|
|
47
|
-
dismissAll(): void;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AgToastService, never>;
|
|
49
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AgToastService>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface CoolmapRoute {
|
|
53
|
-
route_details_id?: string;
|
|
54
|
-
route_id?: string;
|
|
55
|
-
route_name?: string;
|
|
56
|
-
driver_id?: string | null;
|
|
57
|
-
driver_name?: string | null;
|
|
58
|
-
driver_phone?: string | null;
|
|
59
|
-
driver_email?: string | null;
|
|
60
|
-
truck_no?: string | null;
|
|
61
|
-
company_id?: string;
|
|
62
|
-
company_name?: string;
|
|
63
|
-
status?: string;
|
|
64
|
-
driver_flag?: string | null;
|
|
65
|
-
driver_first_login?: string | null;
|
|
66
|
-
start_time?: string | null;
|
|
67
|
-
is_overnight?: boolean;
|
|
68
|
-
route_visibility?: number;
|
|
69
|
-
pickup_location?: string;
|
|
70
|
-
delivery_location?: string;
|
|
71
|
-
order_number?: string;
|
|
72
|
-
customer_name?: string;
|
|
73
|
-
project?: string;
|
|
74
|
-
unit?: string;
|
|
75
|
-
material?: string;
|
|
76
|
-
job_id?: string;
|
|
77
|
-
path?: any;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
interface LocationAll {
|
|
81
|
-
city: string;
|
|
82
|
-
latitude: string;
|
|
83
|
-
location_id: string;
|
|
84
|
-
longitude: string;
|
|
85
|
-
name: string;
|
|
86
|
-
state: string;
|
|
87
|
-
street: string;
|
|
88
|
-
suite: null;
|
|
89
|
-
zip: string;
|
|
90
|
-
formatted_address: string;
|
|
91
|
-
complete_address: string;
|
|
92
|
-
}
|
|
93
|
-
declare class UtilsService {
|
|
94
|
-
private http;
|
|
95
|
-
private config;
|
|
96
|
-
private ngZone;
|
|
97
|
-
preventnavChange: BehaviorSubject<boolean>;
|
|
98
|
-
navChangeObserve: rxjs.Observable<boolean>;
|
|
99
|
-
clearViewRouteforJobCode: BehaviorSubject<boolean>;
|
|
100
|
-
clearViewRouteforJobCodeObserve: rxjs.Observable<boolean>;
|
|
101
|
-
preVentJobdetailclose: BehaviorSubject<boolean>;
|
|
102
|
-
getpreVentJobdetailclose: rxjs.Observable<boolean>;
|
|
103
|
-
routeDetailsUtility: BehaviorSubject<{}>;
|
|
104
|
-
getrouteDetailsUtility: rxjs.Observable<{}>;
|
|
105
|
-
removeMapEntity: BehaviorSubject<any>;
|
|
106
|
-
removeMapEntityUtility: rxjs.Observable<any>;
|
|
107
|
-
dict: Map<string, string>;
|
|
108
|
-
unitsList: any;
|
|
109
|
-
materialsList: any;
|
|
110
|
-
materialsListForCustomer: any;
|
|
111
|
-
customersList: any;
|
|
112
|
-
locationList: any;
|
|
113
|
-
pickupOptions: any[];
|
|
114
|
-
destOptions: any[];
|
|
115
|
-
ownerOptions: any[];
|
|
116
|
-
customerOptions: any[];
|
|
117
|
-
unitOptions: any[];
|
|
118
|
-
materialOptions: any[];
|
|
119
|
-
jcodeOptions: any[];
|
|
120
|
-
driverOption: any[];
|
|
121
|
-
truckingCompanayOption: any[];
|
|
122
|
-
routeNameOptions: any[];
|
|
123
|
-
getDateFormat(strVal: Date | null, seprater?: string): string;
|
|
124
|
-
getData(path: string): rxjs.Observable<Object>;
|
|
125
|
-
getRestData(path: string): rxjs.Observable<Object>;
|
|
126
|
-
postdata(path: string, data: any): rxjs.Observable<Object>;
|
|
127
|
-
postDataWithRestUrl(path: string, data: any): rxjs.Observable<Object>;
|
|
128
|
-
toastService: AgToastService;
|
|
129
|
-
openSnackBar(message: string, className?: string): void;
|
|
130
|
-
clearOptions(): void;
|
|
131
|
-
makeOptions(item: CoolmapRoute): void;
|
|
132
|
-
setdictValue(key: string, value: string): void;
|
|
133
|
-
getdictValue(key: string): any;
|
|
134
|
-
removedictValue(key: string): void;
|
|
135
|
-
filter(value: string, filters: any[]): any[];
|
|
136
|
-
getSearchResults(list: CoolmapRoute[], filterval: any[]): any[];
|
|
137
|
-
fetchUnitsList(): Promise<unknown>;
|
|
138
|
-
fetchMaterialsListForCustomer(): Promise<unknown>;
|
|
139
|
-
filtermaterialList(list: any[]): any[];
|
|
140
|
-
fetchCustomersList(): Promise<unknown>;
|
|
141
|
-
fetchLocationlist(): Promise<unknown>;
|
|
142
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
143
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
interface PopupData {
|
|
147
|
-
coordinate: [number, number];
|
|
148
|
-
pickup?: string;
|
|
149
|
-
drop?: string;
|
|
150
|
-
jobCode?: string;
|
|
151
|
-
customer?: string;
|
|
152
|
-
routeType?: string;
|
|
153
|
-
title?: string;
|
|
154
|
-
material?: string;
|
|
155
|
-
type?: string;
|
|
156
|
-
}
|
|
157
|
-
declare class MapboxService {
|
|
158
|
-
map: mapboxgl.Map;
|
|
159
|
-
mapContainer: HTMLElement | null;
|
|
160
|
-
private resizeObserver;
|
|
161
|
-
markerOriginList: Map<string, mapbox_gl.Marker>;
|
|
162
|
-
markerDestinationList: Map<string, mapbox_gl.Marker>;
|
|
163
|
-
private activeRoutesRegistry;
|
|
164
|
-
private pathCache;
|
|
165
|
-
svgOverlay: SVGSVGElement | null;
|
|
166
|
-
activeArcs: {
|
|
167
|
-
[index: string]: {
|
|
168
|
-
origin: [number, number];
|
|
169
|
-
destination: [number, number];
|
|
170
|
-
color: string;
|
|
171
|
-
pathEl: SVGPathElement;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
initiatecoolmap: BehaviorSubject<boolean>;
|
|
175
|
-
reintiatecoolmap: rxjs.Observable<boolean>;
|
|
176
|
-
isMapReady: i0.WritableSignal<boolean>;
|
|
177
|
-
bounds: mapbox_gl.LngLatBounds;
|
|
178
|
-
private originDestinationCordinates;
|
|
179
|
-
padding: any;
|
|
180
|
-
windowActualHeightWidth: any;
|
|
181
|
-
popup: mapboxgl.Popup;
|
|
182
|
-
customTopForCustomer: number;
|
|
183
|
-
utils: UtilsService;
|
|
184
|
-
config: _aggdirect_coolmap_services.CoolmapConfigModel;
|
|
185
|
-
private currentStyleIsDark;
|
|
186
|
-
constructor();
|
|
187
|
-
updateTheme(isDark: boolean): void;
|
|
188
|
-
getRegistryKeys(): string[];
|
|
189
|
-
initializeMap(el: HTMLElement, isDark?: boolean): Promise<unknown>;
|
|
190
|
-
loadMapProperty(pinRouteGeojson: any, index: number, unit: any, routeProps?: any, bottom?: number): Promise<unknown>;
|
|
191
|
-
createMarker(routeDetails: any): void;
|
|
192
|
-
showRoutePopup(arcDetails: any, event: any, isViewRoute?: boolean): void;
|
|
193
|
-
createPopup(datasetForPopup: PopupData): void;
|
|
194
|
-
drawLine(cordinates?: any, index?: number | any, route?: any, enablefitbound?: boolean, routeType?: string, isStyleRefresh?: boolean): Promise<void>;
|
|
195
|
-
provideLineColor(unitType: string, type?: string): string;
|
|
196
|
-
hexToRGB(hex: any): [number, number, number];
|
|
197
|
-
initSvgOverlay(): void;
|
|
198
|
-
updateSvgPaths(): void;
|
|
199
|
-
removeRouteAndMarker(index: number | string | any, routeType?: string): Promise<boolean>;
|
|
200
|
-
private reAddLayers;
|
|
201
|
-
findMarkerBound(index: any): void;
|
|
202
|
-
filterRoute(ID: any, visibility: 'visible' | 'none', showAllFitbound?: boolean): Promise<boolean>;
|
|
203
|
-
extendBound(route: any, showAllFitbound: boolean | undefined, id?: string): Promise<unknown>;
|
|
204
|
-
extendReBound(bottom?: number): Promise<unknown>;
|
|
205
|
-
plotRoute(route: any, i: number | any, type: string, enablefitbound?: boolean, showAllFitbound?: boolean): Promise<boolean>;
|
|
206
|
-
/**
|
|
207
|
-
* Batch toggle visibility for routes on the map.
|
|
208
|
-
* If visibleIds is empty, shows everything in the registry.
|
|
209
|
-
* Otherwise, shows only those in visibleIds and hides the rest.
|
|
210
|
-
*/
|
|
211
|
-
setRoutesVisibility(visibleIds: string[], showAllOverride?: boolean, prefix?: string): void;
|
|
212
|
-
private recalculateVisibleBounds;
|
|
213
|
-
clearAllRoutes(): Promise<boolean>;
|
|
214
|
-
clearBound(): void;
|
|
215
|
-
formateLatLong(latlong: string): number[] | null;
|
|
216
|
-
clearBoundWithCordinates(): void;
|
|
217
|
-
onResize(event: any): void;
|
|
218
|
-
setWindowHeight(screen: any): void;
|
|
219
|
-
setPadding(padding: any): void;
|
|
220
|
-
clearPadding(): void;
|
|
221
|
-
removeJobFromMap(data: any[]): void;
|
|
222
|
-
resize(): void;
|
|
223
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapboxService, never>;
|
|
224
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MapboxService>;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
interface CoolmapConfigModel {
|
|
228
|
-
analyticsRESTURL: string | null;
|
|
229
|
-
RESTURLPrefix: string | null;
|
|
230
|
-
repository: string | null;
|
|
231
|
-
mapboxStyle: string | null;
|
|
232
|
-
mapboxAccessToken: string | null;
|
|
233
|
-
}
|
|
234
|
-
declare const COOLMAP_CONFIG: InjectionToken<CoolmapConfigModel>;
|
|
235
|
-
declare function provideCoolmapConfig(config: CoolmapConfigModel): {
|
|
236
|
-
provide: InjectionToken<CoolmapConfigModel>;
|
|
237
|
-
useValue: CoolmapConfigModel;
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
declare class CoolmapService {
|
|
241
|
-
mapbox: MapboxService;
|
|
242
|
-
isLoading: i0.WritableSignal<boolean>;
|
|
243
|
-
isDataFetched: i0.WritableSignal<boolean>;
|
|
244
|
-
plottingIds: i0.WritableSignal<Set<string>>;
|
|
245
|
-
resetModals: i0.WritableSignal<number>;
|
|
246
|
-
plotRoute(route: any, i?: number | any, type?: string, enablefitbound?: boolean, showAllFitbound?: boolean): Promise<boolean> | undefined;
|
|
247
|
-
loadMapProperty(pinRouteGeojson: any, index: number, unit: any, routeProps?: any): void;
|
|
248
|
-
removeRouteAndMarker(index: number | any, type?: string): Promise<boolean>;
|
|
249
|
-
clearAllRoutes(): Promise<boolean>;
|
|
250
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CoolmapService, never>;
|
|
251
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CoolmapService>;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
export { AgToastService, COOLMAP_CONFIG, CoolmapService, CoolmapServices, MapboxService, UtilsService, provideCoolmapConfig };
|
|
255
|
-
export type { CoolmapConfigModel, CoolmapRoute, LocationAll, PopupData, Toast, ToastConfig, ToastPosition, ToastVariant };
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@aggdirect/coolmap-services" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
}
|
|
40
|
+
export declare const EstinationData: string[];
|
|
41
|
+
export declare enum EstinationEnum {
|
|
42
|
+
estimated_distance = "miles",
|
|
43
|
+
estimated_time = "time"
|
|
44
|
+
}
|
|
45
|
+
export declare const JobCodeOverviewData: string[];
|
|
46
|
+
export declare enum JobCodeOverviewEnum {
|
|
47
|
+
material = "Material",
|
|
48
|
+
order_number = "Job Code",
|
|
49
|
+
customer_name = "Customer",
|
|
50
|
+
customer_contact = "Customer Contact",
|
|
51
|
+
delivery_contact = "Delivery Contact",
|
|
52
|
+
project = "Project Name",
|
|
53
|
+
unit = "Job Type",
|
|
54
|
+
pickup_location = "Pickup",
|
|
55
|
+
delivery_location = "Delivery"
|
|
56
|
+
}
|
|
57
|
+
export declare const DriversmsCardKey: string[];
|
|
58
|
+
export declare enum DriverSmsCardEnum {
|
|
59
|
+
order_number = "Jobcode",
|
|
60
|
+
date = "Date",
|
|
61
|
+
values = "Total tasks",
|
|
62
|
+
material = "Material",
|
|
63
|
+
unit = "Unit",
|
|
64
|
+
pickup_location = "Pickup Address",
|
|
65
|
+
delivery_location = "Delivery Address"
|
|
66
|
+
}
|
|
67
|
+
export declare class PopupData {
|
|
68
|
+
coordinate: [number, number];
|
|
69
|
+
pickup: string | null;
|
|
70
|
+
jobCode?: string | null;
|
|
71
|
+
customer?: string | null;
|
|
72
|
+
drop: string | null;
|
|
73
|
+
routeType: string | null;
|
|
74
|
+
title: string | null;
|
|
75
|
+
material: string | null;
|
|
76
|
+
type: string | null;
|
|
77
|
+
}
|
|
78
|
+
export declare class CoolmapConfigModel {
|
|
79
|
+
analyticsRESTURL: string | null;
|
|
80
|
+
RESTURLPrefix: string | null;
|
|
81
|
+
repository: string | null;
|
|
82
|
+
mapboxStyle: string | null;
|
|
83
|
+
mapboxAccessToken: string | null;
|
|
84
|
+
}
|
|
85
|
+
export declare class CustomerRepoDetailsModel {
|
|
86
|
+
customer: CustomerDetailsModel | null;
|
|
87
|
+
projectId: string | null;
|
|
88
|
+
}
|
|
89
|
+
export declare class CustomerDetailsModel {
|
|
90
|
+
id: string | null;
|
|
91
|
+
name: string | null;
|
|
92
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { FormGroup } from '@angular/forms';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class UtilsService {
|
|
9
|
+
http: HttpClient;
|
|
10
|
+
snackBar: MatSnackBar;
|
|
11
|
+
private config;
|
|
12
|
+
ngZone: NgZone;
|
|
13
|
+
analyticsRESTURL: string;
|
|
14
|
+
RESTURLPrefix: string;
|
|
15
|
+
pickupOptions: any[];
|
|
16
|
+
destOptions: any[];
|
|
17
|
+
ownerOptions: any[];
|
|
18
|
+
customerOptions: any[];
|
|
19
|
+
unitOptions: any[];
|
|
20
|
+
materialOptions: any[];
|
|
21
|
+
jcodeOptions: any[];
|
|
22
|
+
driverOption: any[];
|
|
23
|
+
truckingCompanayOption: any[];
|
|
24
|
+
routeNameOptions: any[];
|
|
25
|
+
preventnavChange: BehaviorSubject<boolean>;
|
|
26
|
+
navChangeObserve: import("rxjs").Observable<boolean>;
|
|
27
|
+
clearViewRouteforJobCode: BehaviorSubject<boolean>;
|
|
28
|
+
clearViewRouteforJobCodeObserve: import("rxjs").Observable<boolean>;
|
|
29
|
+
preVentJobdetailclose: BehaviorSubject<boolean>;
|
|
30
|
+
getpreVentJobdetailclose: import("rxjs").Observable<boolean>;
|
|
31
|
+
routeDetailsUtility: BehaviorSubject<{}>;
|
|
32
|
+
getrouteDetailsUtility: import("rxjs").Observable<{}>;
|
|
33
|
+
removeMapEntity: BehaviorSubject<{}>;
|
|
34
|
+
removeMapEntityUtility: import("rxjs").Observable<{}>;
|
|
35
|
+
dict: Map<string, string>;
|
|
36
|
+
unitsList: any;
|
|
37
|
+
materialsList: any;
|
|
38
|
+
materialsListForCustomer: any;
|
|
39
|
+
customersList: any;
|
|
40
|
+
constructor(http: HttpClient, snackBar: MatSnackBar, config: CoolmapConfigModel, ngZone: NgZone);
|
|
41
|
+
getDateFormat(strVal: Date | null, seprater?: string): string;
|
|
42
|
+
getData(path: string): import("rxjs").Observable<Object>;
|
|
43
|
+
postdata(path: string, data: any): import("rxjs").Observable<Object>;
|
|
44
|
+
postDataWithRestUrl(path: string, data: any): import("rxjs").Observable<Object>;
|
|
45
|
+
autocomplete(searchElementRef: any, form?: FormGroup): Promise<unknown>;
|
|
46
|
+
openSnackBar(message: string, className?: string): void;
|
|
47
|
+
makeOptions(item: Route): void;
|
|
48
|
+
filter(value: string, filters: any): any[];
|
|
49
|
+
getSearchResults(list: Route[], filterval: any): any;
|
|
50
|
+
clearOptions(): void;
|
|
51
|
+
setdictValue(key: string, value: string): void;
|
|
52
|
+
getdictValue(key: string): any;
|
|
53
|
+
removedictValue(key: string): void;
|
|
54
|
+
conveySearchIcon(value: any): boolean;
|
|
55
|
+
fetchUnitsList(): Promise<unknown>;
|
|
56
|
+
fetchMaterialsList(): Promise<unknown>;
|
|
57
|
+
fetchMaterialsListForCustomer(): Promise<unknown>;
|
|
58
|
+
fetchCustomersList(): Promise<unknown>;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
60
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
61
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aggdirect/coolmap-services",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.2.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^17.0.8",
|
|
6
|
+
"@angular/core": "^17.0.8"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|
|
10
10
|
},
|
|
11
|
-
"
|
|
11
|
+
"allowedNonPeerDependencies": {
|
|
12
|
+
"mapbox-gl": "^2.10.0",
|
|
13
|
+
"@types/mapbox-gl": "^2.7.5",
|
|
14
|
+
"@turf/turf": "^6.5.0",
|
|
15
|
+
"deck.gl": "^8.4.16"
|
|
16
|
+
},
|
|
17
|
+
"description": "This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.",
|
|
18
|
+
"main": "karma.conf.js",
|
|
19
|
+
"author": "Navin Vishwakarma <navin@ogmaconceptions.com>",
|
|
20
|
+
"contributors": [
|
|
21
|
+
"Santanu Das <santanu.das@ogmaconceptions.com>"
|
|
22
|
+
],
|
|
23
|
+
"license": "ISC",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"Coolmap-service"
|
|
26
|
+
],
|
|
12
27
|
"module": "fesm2022/aggdirect-coolmap-services.mjs",
|
|
13
28
|
"typings": "index.d.ts",
|
|
14
29
|
"exports": {
|
|
@@ -17,22 +32,16 @@
|
|
|
17
32
|
},
|
|
18
33
|
".": {
|
|
19
34
|
"types": "./index.d.ts",
|
|
35
|
+
"esm2022": "./esm2022/aggdirect-coolmap-services.mjs",
|
|
36
|
+
"esm": "./esm2022/aggdirect-coolmap-services.mjs",
|
|
20
37
|
"default": "./fesm2022/aggdirect-coolmap-services.mjs"
|
|
21
38
|
}
|
|
22
39
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
40
|
+
"sideEffects": false,
|
|
41
|
+
"directories": {
|
|
42
|
+
"lib": "lib"
|
|
43
|
+
},
|
|
25
44
|
"scripts": {
|
|
26
45
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
27
|
-
}
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/bulldog-dev/npm-packages.git#coolmap-v2"
|
|
31
|
-
},
|
|
32
|
-
"author": "navin.ogma@gmail.com",
|
|
33
|
-
"license": "ISC",
|
|
34
|
-
"bugs": {
|
|
35
|
-
"url": "https://github.com/bulldog-dev/npm-packages/issues"
|
|
36
|
-
},
|
|
37
|
-
"homepage": "https://github.com/bulldog-dev/npm-packages/tree/coolmap-v2#readme"
|
|
46
|
+
}
|
|
38
47
|
}
|
package/public-api.d.ts
ADDED