@aggdirect/coolmap 5.0.4 → 5.0.6

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/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as _angular_core from '@angular/core';
2
2
  import { OnInit, AfterViewInit, OnChanges, ElementRef, SimpleChanges } from '@angular/core';
3
3
  import * as lucide_angular from 'lucide-angular';
4
4
  import * as _aggdirect_coolmap_services from '@aggdirect/coolmap-services';
5
- import { CoolmapService, UtilsService, MapboxService, CoolmapRoute } from '@aggdirect/coolmap-services';
5
+ import { CoolmapService, UtilsService, MapboxService, CoolmapRoute, AgToastService, Toast } from '@aggdirect/coolmap-services';
6
6
  import { FormGroup, FormControl } from '@angular/forms';
7
7
 
8
8
  declare class Coolmap {
@@ -12,7 +12,7 @@ declare class Coolmap {
12
12
 
13
13
  declare class CoolmapComponent implements OnInit, AfterViewInit, OnChanges {
14
14
  mobileMode: boolean;
15
- activeSection: 'Jobcode' | 'ViewRoute';
15
+ activeSection: _angular_core.InputSignal<"Jobcode" | "ViewRoute">;
16
16
  customerRepoDetails?: {
17
17
  customer: {
18
18
  id?: string;
@@ -20,27 +20,32 @@ declare class CoolmapComponent implements OnInit, AfterViewInit, OnChanges {
20
20
  };
21
21
  projectId: string;
22
22
  };
23
+ userDetails?: any;
23
24
  darkMode: _angular_core.InputSignal<boolean>;
24
25
  mapContainer: ElementRef;
26
+ searchContainer: ElementRef;
25
27
  coolmapService: CoolmapService;
26
28
  utils: UtilsService;
27
29
  config: _aggdirect_coolmap_services.CoolmapConfigModel;
28
30
  mapService: MapboxService;
31
+ elRef: ElementRef<any>;
29
32
  showRouteList: boolean;
30
33
  addRouteModal: boolean;
34
+ showShareModal: _angular_core.WritableSignal<boolean>;
35
+ shareRouteData: _angular_core.WritableSignal<any>;
31
36
  routesList: _angular_core.WritableSignal<CoolmapRoute[]>;
32
37
  viewRoutesList: _angular_core.WritableSignal<CoolmapRoute[]>;
33
38
  filters: _angular_core.WritableSignal<any[]>;
34
39
  filteredOptions: _angular_core.WritableSignal<any[]>;
35
40
  dropdownOpen: _angular_core.WritableSignal<boolean>;
36
41
  dateValue: _angular_core.WritableSignal<string>;
42
+ displayDate: _angular_core.Signal<string>;
37
43
  selectedRouteIds: _angular_core.WritableSignal<string[]>;
38
44
  modalPlottedIds: _angular_core.WritableSignal<string[]>;
39
45
  modalPlottedRoutes: _angular_core.WritableSignal<CoolmapRoute[]>;
40
46
  selectedRouteForEdit: _angular_core.WritableSignal<CoolmapRoute | null>;
41
47
  unitList: _angular_core.WritableSignal<any[]>;
42
48
  materialsList: _angular_core.WritableSignal<any[]>;
43
- private currentlyPlottedIds;
44
49
  private skipNextRefresh;
45
50
  private mapOpQueue;
46
51
  activeFilteredRoutes: _angular_core.Signal<any[]>;
@@ -62,8 +67,10 @@ declare class CoolmapComponent implements OnInit, AfterViewInit, OnChanges {
62
67
  Search: lucide_angular.LucideIconData;
63
68
  X: lucide_angular.LucideIconData;
64
69
  LoaderCircle: lucide_angular.LucideIconData;
70
+ Calendar: lucide_angular.LucideIconData;
65
71
  };
66
72
  constructor();
73
+ onClick(event: MouseEvent): void;
67
74
  ngOnInit(): void;
68
75
  getUnitList(): void;
69
76
  getMaterialsList(): void;
@@ -76,6 +83,7 @@ declare class CoolmapComponent implements OnInit, AfterViewInit, OnChanges {
76
83
  getUnitName(data: any): string;
77
84
  getMaterialName(data: any): string;
78
85
  onDateChange(event: Event): void;
86
+ onSearchFocus(): void;
79
87
  selectFilter(option: any): void;
80
88
  removeFilter(filter: any): void;
81
89
  /**
@@ -94,8 +102,25 @@ declare class CoolmapComponent implements OnInit, AfterViewInit, OnChanges {
94
102
  getRouteId(route: CoolmapRoute): string;
95
103
  clearSelection(): void;
96
104
  ngAfterViewInit(): void;
105
+ handleShareRoute(data: any): void;
97
106
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CoolmapComponent, never>;
98
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CoolmapComponent, "lib-coolmap", never, { "mobileMode": { "alias": "mobileMode"; "required": false; }; "activeSection": { "alias": "activeSection"; "required": false; }; "customerRepoDetails": { "alias": "customerRepoDetails"; "required": false; }; "darkMode": { "alias": "darkMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
107
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CoolmapComponent, "lib-coolmap", never, { "mobileMode": { "alias": "mobileMode"; "required": false; }; "activeSection": { "alias": "activeSection"; "required": false; "isSignal": true; }; "customerRepoDetails": { "alias": "customerRepoDetails"; "required": false; }; "userDetails": { "alias": "userDetails"; "required": false; }; "darkMode": { "alias": "darkMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
99
108
  }
100
109
 
101
- export { Coolmap, CoolmapComponent };
110
+ declare class AgToastContainerComponent {
111
+ toastService: AgToastService;
112
+ successIcon: any;
113
+ errorIcon: any;
114
+ warningIcon: any;
115
+ infoIcon: any;
116
+ closeIcon: any;
117
+ get containerClasses(): string;
118
+ getToastClasses(toast: Toast): string;
119
+ getIconClasses(toast: Toast): string;
120
+ dismiss(toast: Toast): void;
121
+ onActionClick(toast: Toast): void;
122
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AgToastContainerComponent, never>;
123
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AgToastContainerComponent, "ag-toast-container", never, {}, {}, never, never, true, never>;
124
+ }
125
+
126
+ export { AgToastContainerComponent, Coolmap, CoolmapComponent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aggdirect/coolmap",
3
- "version": "5.0.4",
3
+ "version": "5.0.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0",
@@ -28,8 +28,12 @@
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
31
- "url": "https://github.com/bulldog-dev/npm-packages/blob/coolmap-v2/packages/coolmap-v2/README.md"
31
+ "url": "git+https://github.com/bulldog-dev/npm-packages.git#coolmap-v2"
32
32
  },
33
33
  "author": "navin.ogma@gmail.com",
34
- "license": "ISC"
34
+ "license": "ISC",
35
+ "bugs": {
36
+ "url": "https://github.com/bulldog-dev/npm-packages/issues"
37
+ },
38
+ "homepage": "https://github.com/bulldog-dev/npm-packages/tree/coolmap-v2#readme"
35
39
  }