ca-components 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/ca-components.module.mjs +12 -6
- package/esm2022/lib/components/ca-dots-menu/ca-dots-menu.component.mjs +33 -0
- package/esm2022/lib/components/ca-dropdown/ca-dropdown.component.mjs +3 -3
- package/esm2022/lib/components/ca-input/components/ca-input-placeholder-icon/ca-input-placeholder-icon.component.mjs +3 -3
- package/esm2022/lib/components/ca-map/ca-map.component.mjs +270 -187
- package/esm2022/lib/components/ca-map/models/map.model.mjs +1 -1
- package/esm2022/lib/components/ca-map/utils/constants/map-info-window-options.constants.mjs +2 -2
- package/esm2022/lib/components/ca-map/utils/constants/map-options.constants.mjs +15 -1
- package/esm2022/lib/components/ca-map-dropdown/ca-map-dropdown.component.mjs +43 -14
- package/esm2022/lib/components/ca-map-dropdown/models/index.mjs +2 -0
- package/esm2022/lib/components/ca-map-dropdown/models/map-dropdown-content.model.mjs +2 -0
- package/esm2022/lib/components/ca-map-dropdown/pipes/index.mjs +3 -0
- package/esm2022/lib/components/ca-map-dropdown/pipes/map-dropdown-cluster-content-type.pipe.mjs +19 -0
- package/esm2022/lib/components/ca-map-dropdown/pipes/map-dropdown-content-type.pipe.mjs +19 -0
- package/esm2022/lib/components/ca-map-dropdown/utils/svg-routes/map-dropdown-svg-routes.mjs +4 -1
- package/esm2022/lib/components/ca-period-content/components/ca-period-content-payment/ca-period-content-payment.component.mjs +8 -4
- package/esm2022/lib/components/ca-progress-bar/ca-progress-bar.component.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ca-components.mjs +403 -212
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/ca-components.module.d.ts +2 -1
- package/lib/components/ca-dots-menu/ca-dots-menu.component.d.ts +12 -0
- package/lib/components/ca-map/ca-map.component.d.ts +48 -16
- package/lib/components/ca-map/models/map.model.d.ts +15 -3
- package/lib/components/ca-map/utils/constants/map-options.constants.d.ts +18 -0
- package/lib/components/ca-map-dropdown/ca-map-dropdown.component.d.ts +13 -6
- package/lib/components/ca-map-dropdown/models/index.d.ts +1 -0
- package/lib/components/ca-map-dropdown/models/map-dropdown-content.model.d.ts +28 -0
- package/lib/components/ca-map-dropdown/pipes/index.d.ts +2 -0
- package/lib/components/ca-map-dropdown/pipes/map-dropdown-cluster-content-type.pipe.d.ts +8 -0
- package/lib/components/ca-map-dropdown/pipes/map-dropdown-content-type.pipe.d.ts +8 -0
- package/lib/components/ca-map-dropdown/utils/svg-routes/map-dropdown-svg-routes.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/assets/ca-components/svg/map/ic_date_checked.svg +1 -0
- package/src/assets/ca-components/svg/map/ic_date_deactivated.svg +3 -0
- package/src/assets/ca-components/svg/map/ic_favorite.svg +3 -0
- package/src/assets/ca-components/svg/map/ic_permanently_closed.svg +4 -0
|
@@ -30,8 +30,9 @@ import * as i28 from "./components/ca-right-side-panel/components/ca-right-side-
|
|
|
30
30
|
import * as i29 from "./components/ca-right-side-panel/components/ca-right-side-panel-top-bar/ca-right-side-panel-top-bar.component";
|
|
31
31
|
import * as i30 from "./components/ca-right-side-panel/ca-right-side-panel.component";
|
|
32
32
|
import * as i31 from "./components/ca-chart/ca-chart.component";
|
|
33
|
+
import * as i32 from "./components/ca-dots-menu/ca-dots-menu.component";
|
|
33
34
|
export declare class CaComponentsLibModule {
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaComponentsLibModule, never>;
|
|
35
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CaComponentsLibModule, never, [typeof i1.CommonModule, typeof i2.CaProfileImageComponent, typeof i3.CaRatingReviewComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaInputDropdownComponent, typeof i11.CaMapComponent, typeof i12.CaMapDropdownComponent, typeof i13.CaNoteComponent, typeof i14.CaNoteContainerComponent, typeof i15.CaPayrollListSummaryOverviewComponent, typeof i16.CaPayrollListSummaryOverviewTableComponent, typeof i17.PickupDeliveryBlockComponent, typeof i18.ProgressBarComponent, typeof i19.CaSearchMultipleStatesComponent, typeof i20.CaSpinnerComponent, typeof i21.CaTodoComponent, typeof i22.CaTruckTrailerProgresBarComponent, typeof i23.CaPeriodContentComponent, typeof i24.CaInputNoteComponent, typeof i25.CaInputAddressDropdownComponent, typeof i26.CaMainTableComponent, typeof i27.CaActivityLogListComponent, typeof i28.CaRightSidePanelMenuComponent, typeof i29.CaRightSidePanelTopBarComponent, typeof i30.CaRightSidePanelComponent, typeof i31.CaChartComponent], [typeof i2.CaProfileImageComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i3.CaRatingReviewComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaInputDropdownComponent, typeof i11.CaMapComponent, typeof i12.CaMapDropdownComponent, typeof i13.CaNoteComponent, typeof i14.CaNoteContainerComponent, typeof i15.CaPayrollListSummaryOverviewComponent, typeof i16.CaPayrollListSummaryOverviewTableComponent, typeof i17.PickupDeliveryBlockComponent, typeof i18.ProgressBarComponent, typeof i19.CaSearchMultipleStatesComponent, typeof i20.CaSpinnerComponent, typeof i22.CaTruckTrailerProgresBarComponent, typeof i23.CaPeriodContentComponent, typeof i24.CaInputNoteComponent, typeof i26.CaMainTableComponent, typeof i27.CaActivityLogListComponent, typeof i28.CaRightSidePanelMenuComponent, typeof i29.CaRightSidePanelTopBarComponent, typeof i30.CaRightSidePanelComponent, typeof i31.CaChartComponent]>;
|
|
36
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CaComponentsLibModule, never, [typeof i1.CommonModule, typeof i2.CaProfileImageComponent, typeof i3.CaRatingReviewComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaInputDropdownComponent, typeof i11.CaMapComponent, typeof i12.CaMapDropdownComponent, typeof i13.CaNoteComponent, typeof i14.CaNoteContainerComponent, typeof i15.CaPayrollListSummaryOverviewComponent, typeof i16.CaPayrollListSummaryOverviewTableComponent, typeof i17.PickupDeliveryBlockComponent, typeof i18.ProgressBarComponent, typeof i19.CaSearchMultipleStatesComponent, typeof i20.CaSpinnerComponent, typeof i21.CaTodoComponent, typeof i22.CaTruckTrailerProgresBarComponent, typeof i23.CaPeriodContentComponent, typeof i24.CaInputNoteComponent, typeof i25.CaInputAddressDropdownComponent, typeof i26.CaMainTableComponent, typeof i27.CaActivityLogListComponent, typeof i28.CaRightSidePanelMenuComponent, typeof i29.CaRightSidePanelTopBarComponent, typeof i30.CaRightSidePanelComponent, typeof i31.CaChartComponent, typeof i32.CaDotsMenuComponent], [typeof i2.CaProfileImageComponent, typeof i4.CaAppTooltipV2Component, typeof i5.CaDetailsDropdownComponent, typeof i3.CaRatingReviewComponent, typeof i6.CaDropdownComponent, typeof i7.CaFilterComponent, typeof i8.CaInputComponent, typeof i9.CaInputRadiobuttonsComponent, typeof i10.CaInputDropdownComponent, typeof i11.CaMapComponent, typeof i12.CaMapDropdownComponent, typeof i13.CaNoteComponent, typeof i14.CaNoteContainerComponent, typeof i15.CaPayrollListSummaryOverviewComponent, typeof i16.CaPayrollListSummaryOverviewTableComponent, typeof i17.PickupDeliveryBlockComponent, typeof i18.ProgressBarComponent, typeof i19.CaSearchMultipleStatesComponent, typeof i20.CaSpinnerComponent, typeof i22.CaTruckTrailerProgresBarComponent, typeof i23.CaPeriodContentComponent, typeof i24.CaInputNoteComponent, typeof i26.CaMainTableComponent, typeof i27.CaActivityLogListComponent, typeof i28.CaRightSidePanelMenuComponent, typeof i29.CaRightSidePanelTopBarComponent, typeof i30.CaRightSidePanelComponent, typeof i31.CaChartComponent, typeof i32.CaDotsMenuComponent]>;
|
|
36
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<CaComponentsLibModule>;
|
|
37
38
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IItemList } from '../../models/dropdown.model';
|
|
2
|
+
import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CaDotsMenuComponent {
|
|
5
|
+
icon: string;
|
|
6
|
+
itemList: IItemList[];
|
|
7
|
+
toggleMenu(event: Event): void;
|
|
8
|
+
identity(index: number, item: IItemList): string;
|
|
9
|
+
openMenu(event: Event, t2: NgbPopover): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CaDotsMenuComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaDotsMenuComponent, "ca-dots-menu", never, { "icon": { "alias": "icon"; "required": false; }; "itemList": { "alias": "itemList"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
|
-
import { ChangeDetectorRef, EventEmitter
|
|
3
|
-
import { GoogleMap, MapInfoWindow
|
|
4
|
-
import { IMapMarkers, ICaMapProps, IMapOptions, IRoutePath } from '../ca-map/models/map.model';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { GoogleMap, MapInfoWindow } from '@angular/google-maps';
|
|
4
|
+
import { IMapMarkers, ICaMapProps, IMapOptions, IRoutePath, IMapBoundsZoom, IMapSelectedMarkerData } from '../ca-map/models/map.model';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class CaMapComponent {
|
|
7
7
|
cd: ChangeDetectorRef;
|
|
8
8
|
constructor(cd: ChangeDetectorRef);
|
|
9
|
-
data: ICaMapProps
|
|
10
|
-
|
|
9
|
+
set data(values: ICaMapProps);
|
|
10
|
+
resetSelectedMarkerItem: EventEmitter<boolean>;
|
|
11
|
+
clusterMarkerClick: EventEmitter<IMapMarkers>;
|
|
12
|
+
clusterListScrollEvent: EventEmitter<IMapMarkers>;
|
|
13
|
+
getInfoWindowData: EventEmitter<number>;
|
|
14
|
+
boundsChanged: EventEmitter<IMapBoundsZoom>;
|
|
11
15
|
maps: GoogleMap;
|
|
12
|
-
|
|
13
|
-
infoWindowsView: QueryList<MapInfoWindow>;
|
|
14
|
-
markerRouting: QueryList<MapMarker>;
|
|
15
|
-
infoWindowsViewRouting: QueryList<MapInfoWindow>;
|
|
16
|
+
infoWindowsView: MapInfoWindow;
|
|
16
17
|
currentlyOpenWindow: MapInfoWindow | null;
|
|
17
|
-
currentlyOpenWindowIndex: number | null;
|
|
18
18
|
currentlyOpenWindowRouting: MapInfoWindow | null;
|
|
19
|
-
currentlyOpenWindowIndexRouting: number | null;
|
|
20
|
-
showLabel: boolean;
|
|
21
19
|
previousIconUrl: string;
|
|
22
|
-
focusedIcon: number | null;
|
|
23
20
|
previousIconUrlRouting: string;
|
|
24
21
|
focusedIconRouting: number;
|
|
25
22
|
private directionService;
|
|
@@ -31,17 +28,40 @@ export declare class CaMapComponent {
|
|
|
31
28
|
initialMarkerIcons: {
|
|
32
29
|
url: string;
|
|
33
30
|
labelOrigin?: google.maps.Point;
|
|
31
|
+
zIndex?: number;
|
|
34
32
|
}[];
|
|
35
33
|
infoWindowOptions: google.maps.InfoWindowOptions;
|
|
36
34
|
mapOptions: IMapOptions;
|
|
37
35
|
mapZoom: number;
|
|
38
36
|
mapCenter: IRoutePath;
|
|
39
37
|
map: google.maps.Map | null;
|
|
38
|
+
isMapCenterSet: boolean;
|
|
39
|
+
clusterMarkersData: IMapMarkers[];
|
|
40
|
+
markersData: IMapMarkers[];
|
|
41
|
+
mapData: ICaMapProps;
|
|
42
|
+
openedInfoWindowData: IMapMarkers | null;
|
|
43
|
+
areaFilterData: {
|
|
44
|
+
options: {
|
|
45
|
+
fillColor: string;
|
|
46
|
+
strokeWeight: number;
|
|
47
|
+
fillOpacity: number;
|
|
48
|
+
editable: boolean;
|
|
49
|
+
draggable: boolean;
|
|
50
|
+
clickable: boolean;
|
|
51
|
+
};
|
|
52
|
+
center: {
|
|
53
|
+
lat: number;
|
|
54
|
+
lng: number;
|
|
55
|
+
};
|
|
56
|
+
radius: number;
|
|
57
|
+
};
|
|
58
|
+
isAreaFilterActive: boolean;
|
|
40
59
|
ngOnInit(): void;
|
|
41
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
42
60
|
storeInitialIconForMarker(): void;
|
|
43
61
|
storeInitialIconForRoutingMarker(): void;
|
|
44
|
-
|
|
62
|
+
onClusterMarkerClick(markerItem: IMapMarkers): void;
|
|
63
|
+
getMarkerInfoWindow(markerId: number): void;
|
|
64
|
+
onMarkerClick(markerItem: IMapMarkers): void;
|
|
45
65
|
setDirectionsOnMap(): void;
|
|
46
66
|
calculateAndDisplayRoute(): void;
|
|
47
67
|
onRoutingMarkerClick(i: number, event: google.maps.MapMouseEvent, markeritem: IMapMarkers): void;
|
|
@@ -55,8 +75,20 @@ export declare class CaMapComponent {
|
|
|
55
75
|
fillOpacity?: number;
|
|
56
76
|
} | void;
|
|
57
77
|
setMapStyles(): void;
|
|
78
|
+
getMapIdleEvent(map: google.maps.Map): void;
|
|
79
|
+
sendBoundsChangedEvent(): void;
|
|
80
|
+
onClusterBackButtonClick(): void;
|
|
81
|
+
private getNewData;
|
|
82
|
+
openMarkerInfoWindow(markerItem: IMapSelectedMarkerData): void;
|
|
83
|
+
checkInfoWindowPosition(markerItem: IMapMarkers, markerItem2?: IMapMarkers | null): boolean;
|
|
84
|
+
closeInfoWindow(): void;
|
|
85
|
+
handleMapData(newData: ICaMapProps): void;
|
|
86
|
+
onClusterListScrollToEnd(): void;
|
|
87
|
+
checkClusterDataChanges(newData: IMapMarkers, previousData?: IMapMarkers | null): boolean;
|
|
88
|
+
trackById(index: number, marker: IMapMarkers): number;
|
|
89
|
+
trackByPosition(index: number, marker: IMapMarkers): number;
|
|
58
90
|
identity(index: number): number;
|
|
59
91
|
ngOnDestroy(): void;
|
|
60
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaMapComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaMapComponent, "app-ca-map", never, { "data": { "alias": "data"; "required": false; }; }, { "
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaMapComponent, "app-ca-map", never, { "data": { "alias": "data"; "required": false; }; }, { "resetSelectedMarkerItem": "resetSelectedMarkerItem"; "clusterMarkerClick": "clusterMarkerClick"; "clusterListScrollEvent": "clusterListScrollEvent"; "getInfoWindowData": "getInfoWindowData"; "boundsChanged": "boundsChanged"; }, never, never, true, never>;
|
|
62
94
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
|
+
import { MapDropdownContent } from '../../ca-map-dropdown/models';
|
|
2
3
|
export interface IRoutePath {
|
|
3
4
|
lat: number;
|
|
4
5
|
lng: number;
|
|
@@ -7,6 +8,7 @@ export interface ICaMapProps {
|
|
|
7
8
|
clusterMarkers?: IMapMarkers[];
|
|
8
9
|
routingMarkers?: IMapMarkers[];
|
|
9
10
|
routePaths?: IMapRoutePath[];
|
|
11
|
+
selectedMarkerData?: IMapSelectedMarkerData;
|
|
10
12
|
isAccidentMap?: boolean;
|
|
11
13
|
stateBoundariesUrl?: {
|
|
12
14
|
url: string;
|
|
@@ -15,7 +17,6 @@ export interface ICaMapProps {
|
|
|
15
17
|
view?: string;
|
|
16
18
|
isUnitViewStops?: boolean;
|
|
17
19
|
isDriverMiles?: boolean;
|
|
18
|
-
viewData?: any[];
|
|
19
20
|
mapType?: string;
|
|
20
21
|
darkMode?: boolean;
|
|
21
22
|
}
|
|
@@ -52,13 +53,17 @@ export interface IMapColor {
|
|
|
52
53
|
}
|
|
53
54
|
export interface IMapMarkers {
|
|
54
55
|
position: IRoutePath;
|
|
55
|
-
icon
|
|
56
|
-
infoWindowContent?:
|
|
56
|
+
icon: IMapMarkersIcon;
|
|
57
|
+
infoWindowContent?: MapDropdownContent;
|
|
57
58
|
label?: IMarkerLabel;
|
|
58
59
|
labelOrigin?: {
|
|
59
60
|
x: number;
|
|
60
61
|
y: number;
|
|
61
62
|
};
|
|
63
|
+
data?: any;
|
|
64
|
+
options?: {
|
|
65
|
+
zIndex?: number;
|
|
66
|
+
};
|
|
62
67
|
}
|
|
63
68
|
export interface IMapMarkersIcon {
|
|
64
69
|
url: string;
|
|
@@ -77,3 +82,10 @@ export interface IMapRoutePath {
|
|
|
77
82
|
strokeOpacity?: number;
|
|
78
83
|
strokeWeight?: number;
|
|
79
84
|
}
|
|
85
|
+
export interface IMapBoundsZoom {
|
|
86
|
+
bounds: google.maps.LatLngBounds;
|
|
87
|
+
zoom: number;
|
|
88
|
+
}
|
|
89
|
+
export interface IMapSelectedMarkerData extends IMapMarkers {
|
|
90
|
+
isClusterMarker?: boolean;
|
|
91
|
+
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
1
2
|
import { IMapOptions, IRoutePath } from '../../models/map.model';
|
|
2
3
|
export declare class MapOptionsConstants {
|
|
3
4
|
static defaultMapOptions: IMapOptions;
|
|
4
5
|
static defaultMapZoom: number;
|
|
5
6
|
static defaultMapCenter: IRoutePath;
|
|
7
|
+
static defaultMarkerSize: google.maps.Size;
|
|
8
|
+
static largeMarkerSize: google.maps.Size;
|
|
9
|
+
static areaFilterData: {
|
|
10
|
+
options: {
|
|
11
|
+
fillColor: string;
|
|
12
|
+
strokeWeight: number;
|
|
13
|
+
fillOpacity: number;
|
|
14
|
+
editable: boolean;
|
|
15
|
+
draggable: boolean;
|
|
16
|
+
clickable: boolean;
|
|
17
|
+
};
|
|
18
|
+
center: {
|
|
19
|
+
lat: number;
|
|
20
|
+
lng: number;
|
|
21
|
+
};
|
|
22
|
+
radius: number;
|
|
23
|
+
};
|
|
6
24
|
}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { MapDropdownSvgRoutes } from '../ca-map-dropdown/utils/svg-routes/map-dropdown-svg-routes';
|
|
3
3
|
import { DropDownData, IDropDownActions } from '../ca-details-dropdown/models/detail-dropdown.model';
|
|
4
|
+
import { MapDropdownClusterItem, MapDropdownContent } from './models';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class CaMapDropdownComponent {
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
infoWindowContent?: MapDropdownContent;
|
|
8
|
+
markerData?: any;
|
|
9
|
+
onClusterItemClick: EventEmitter<number>;
|
|
10
|
+
onClusterListScrollToEnd: EventEmitter<any>;
|
|
11
|
+
onBackButtonClick: EventEmitter<any>;
|
|
8
12
|
bodyActions: EventEmitter<IDropDownActions>;
|
|
9
|
-
isPopupShown: boolean;
|
|
10
13
|
isHidden: boolean;
|
|
11
|
-
|
|
14
|
+
isShowAllDaysActive: boolean;
|
|
12
15
|
data: DropDownData[];
|
|
13
|
-
openSideMenu(): void;
|
|
14
16
|
showHiddenData(): void;
|
|
15
17
|
callBodyAction(action: IDropDownActions): void;
|
|
16
18
|
getSvgPath(propertyName: keyof typeof MapDropdownSvgRoutes): string;
|
|
19
|
+
clusterItemClick(item: MapDropdownClusterItem): void;
|
|
20
|
+
backButtonClick(): void;
|
|
21
|
+
showAllDaysClick(): void;
|
|
22
|
+
onClusterListScroll(event: Event): void;
|
|
23
|
+
identity(index: number): number;
|
|
17
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<CaMapDropdownComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CaMapDropdownComponent, "app-ca-map-dropdown", never, { "
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CaMapDropdownComponent, "app-ca-map-dropdown", never, { "infoWindowContent": { "alias": "infoWindowContent"; "required": false; }; "markerData": { "alias": "markerData"; "required": false; }; }, { "onClusterItemClick": "onClusterItemClick"; "onClusterListScrollToEnd": "onClusterListScrollToEnd"; "onBackButtonClick": "onBackButtonClick"; "bodyActions": "bodyActions"; }, never, never, true, never>;
|
|
19
26
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './map-dropdown-content.model';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface MapDropdownContent {
|
|
2
|
+
mainContent?: MapDropdownContentItem[];
|
|
3
|
+
expandedContent?: MapDropdownContentItem[];
|
|
4
|
+
clusterData?: MapDropdownClusterItem[];
|
|
5
|
+
selectedClusterItemData?: any;
|
|
6
|
+
}
|
|
7
|
+
export interface MapDropdownContentItem {
|
|
8
|
+
template: 'header-title' | 'rating-review' | 'divider' | 'repair-shop-services' | 'icon-text' | 'title' | 'title-count' | 'subtitle' | 'text' | 'money-text' | 'open-hours' | 'side-by-side';
|
|
9
|
+
field: string;
|
|
10
|
+
url?: string;
|
|
11
|
+
count?: number;
|
|
12
|
+
title?: string;
|
|
13
|
+
iconTooltipText?: string;
|
|
14
|
+
hasBackButton?: boolean;
|
|
15
|
+
customClassContainer?: string;
|
|
16
|
+
customClassText?: string;
|
|
17
|
+
sideBySideInfo?: {
|
|
18
|
+
leftSide: MapDropdownContentItem;
|
|
19
|
+
rightSide: MapDropdownContentItem;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface MapDropdownClusterItem {
|
|
23
|
+
id?: number;
|
|
24
|
+
name?: string | null;
|
|
25
|
+
favourite?: boolean;
|
|
26
|
+
isClosed?: boolean;
|
|
27
|
+
pricePerGallon?: number | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { MapDropdownClusterItem } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MapDropdownClusterContentPipe implements PipeTransform {
|
|
5
|
+
transform(item: MapDropdownClusterItem): MapDropdownClusterItem | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapDropdownClusterContentPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MapDropdownClusterContentPipe, "mapDropdownClusterContentType", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { MapDropdownContentItem } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MapDropdownContentPipe implements PipeTransform {
|
|
5
|
+
transform(item: MapDropdownContentItem): MapDropdownContentItem | null;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapDropdownContentPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MapDropdownContentPipe, "mapDropdownContentType", true>;
|
|
8
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -35,4 +35,5 @@ export * from './lib/components/ca-todo/ca-todo.component';
|
|
|
35
35
|
export * from './lib/components/ca-progress-expiration/ca-progress-expiration.component';
|
|
36
36
|
export * from './lib/components/ca-chart/ca-chart.component';
|
|
37
37
|
export * from './lib/components/ca-modal/ca-modal.component';
|
|
38
|
+
export * from './lib/components/ca-dots-menu/ca-dots-menu.component';
|
|
38
39
|
export * from './lib/models';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"><g transform="translate(-745 -501)"><rect width="18" height="18" transform="translate(745 501)" fill="#aaa" opacity="0"/><path d="M13.8,5.063H.38A.38.38,0,0,1,0,4.683V3.544A1.519,1.519,0,0,1,1.519,2.025H3.037V.38A.38.38,0,0,1,3.417,0H4.683a.38.38,0,0,1,.38.38V2.025h4.05V.38A.38.38,0,0,1,9.492,0h1.266a.38.38,0,0,1,.38.38V2.025h1.519a1.519,1.519,0,0,1,1.519,1.519V4.683A.38.38,0,0,1,13.8,5.063ZM.38,6.075H13.8a.38.38,0,0,1,.38.38v8.227A1.519,1.519,0,0,1,12.656,16.2H1.519A1.519,1.519,0,0,1,0,14.681V6.455A.38.38,0,0,1,.38,6.075ZM10.925,9.111l-.891-.9a.38.38,0,0,0-.537,0L6.142,11.538,4.687,10.072a.38.38,0,0,0-.537,0l-.9.891a.38.38,0,0,0,0,.537l2.614,2.635a.38.38,0,0,0,.537,0l4.523-4.487a.38.38,0,0,0,0-.537Z" transform="translate(746.912 501.9)" fill="#aaa"/></g></svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M15.8139 5.9629H2.1857C2.08344 5.96264 1.98544 5.92252 1.91313 5.85131C1.84082 5.7801 1.80007 5.6836 1.7998 5.5829V4.4439C1.7998 4.04104 1.96232 3.65467 2.25161 3.36981C2.5409 3.08494 2.93326 2.9249 3.34237 2.9249H4.88392V1.2799C4.88419 1.1792 4.92493 1.0827 4.99725 1.01149C5.06956 0.940287 5.16756 0.900166 5.26982 0.899902L6.55546 0.899902C6.65772 0.900166 6.75572 0.940287 6.82803 1.01149C6.90035 1.0827 6.94109 1.1792 6.94136 1.2799V2.9249H11.0542V1.2799C11.0545 1.17937 11.0951 1.08302 11.1672 1.01184C11.2392 0.940666 11.337 0.90043 11.4391 0.899902H12.7247C12.827 0.900166 12.925 0.940287 12.9973 1.01149C13.0696 1.0827 13.1103 1.1792 13.1106 1.2799V2.9249H14.6532C15.0623 2.9249 15.4546 3.08494 15.7439 3.36981C16.0332 3.65467 16.1957 4.04104 16.1957 4.4439V5.5829C16.1955 5.68291 16.1553 5.77882 16.0839 5.84991C16.0124 5.92101 15.9155 5.96159 15.8139 5.9629ZM2.1857 6.9749H15.8139C15.9162 6.97516 16.0142 7.01528 16.0865 7.08649C16.1588 7.1577 16.1995 7.2542 16.1998 7.3549V15.5819C16.1997 15.7817 16.1595 15.9795 16.0816 16.164C16.0037 16.3485 15.8896 16.5161 15.7458 16.6571C15.6021 16.7981 15.4315 16.9098 15.2438 16.9858C15.0561 17.0618 14.8551 17.1006 14.6522 17.0999H3.34237C3.1398 17.0999 2.93921 17.0606 2.75206 16.9843C2.5649 16.9079 2.39485 16.796 2.25161 16.655C2.10837 16.5139 1.99475 16.3465 1.91723 16.1622C1.8397 15.9779 1.7998 15.7804 1.7998 15.5809L1.7998 7.3549C1.80007 7.2542 1.84082 7.1577 1.91313 7.08649C1.98544 7.01528 2.08344 6.97516 2.1857 6.9749ZM11.955 13.0499C12.0572 13.0496 12.1552 13.0095 12.2275 12.9383C12.2998 12.8671 12.3406 12.7706 12.3408 12.6699V11.3999C12.3406 11.2992 12.2998 11.2027 12.2275 11.1315C12.1552 11.0603 12.0572 11.0202 11.955 11.0199H6.04161C5.93935 11.0202 5.84135 11.0603 5.76904 11.1315C5.69673 11.2027 5.65598 11.2992 5.65571 11.3999V12.6699C5.65598 12.7706 5.69673 12.8671 5.76904 12.9383C5.84135 13.0095 5.93935 13.0496 6.04161 13.0499H11.955Z" fill="#6C6C6C"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
|
|
2
|
+
<path id="star" d="M17.952,7.3a.965.965,0,0,0-.823-.686l-5.2-.492L9.88,1.1a.942.942,0,0,0-1.76,0L6.066,6.12l-5.2.492A.968.968,0,0,0,.047,7.3,1.028,1.028,0,0,0,.326,8.359l3.928,3.594L3.1,17.275a1.02,1.02,0,0,0,.372,1.031.922.922,0,0,0,1.052.049L9,15.559l4.48,2.8a.923.923,0,0,0,1.052-.049,1.02,1.02,0,0,0,.372-1.031l-1.158-5.323,3.928-3.594A1.028,1.028,0,0,0,17.952,7.3ZM9.086,15.5" transform="translate(0 -0.496)" fill="#6692F1"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18">
|
|
2
|
+
<rect id="Rectangle_61748" data-name="Rectangle 61748" width="18" height="18" fill="#e57373" opacity="0"/>
|
|
3
|
+
<path id="times-circle" d="M16.1,8a8.1,8.1,0,1,0,8.1,8.1A8.1,8.1,0,0,0,16.1,8Zm3.972,10.226a.392.392,0,0,1,0,.555l-1.293,1.29a.392.392,0,0,1-.555,0L16.1,17.929l-2.126,2.143a.392.392,0,0,1-.555,0l-1.29-1.293a.392.392,0,0,1,0-.555L14.271,16.1l-2.143-2.126a.392.392,0,0,1,0-.555l1.293-1.293a.392.392,0,0,1,.555,0L16.1,14.271l2.126-2.143a.392.392,0,0,1,.555,0l1.293,1.293a.392.392,0,0,1,0,.555L17.929,16.1Z" transform="translate(-7.1 -7.1)" fill="#e57373"/>
|
|
4
|
+
</svg>
|