ca-components 2.0.57 → 2.0.59

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,8 +1,8 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
1
+ import { EventEmitter, TemplateRef, OnDestroy } from '@angular/core';
2
2
  import { eColor, eGeneralActions, ePosition } from '../../enums';
3
3
  import { SharedSvgRoutes } from '../../utils/svg-routes';
4
4
  import * as i0 from "@angular/core";
5
- export declare class CaCustomCardComponent<T> {
5
+ export declare class CaCustomCardComponent<T> implements OnDestroy {
6
6
  headerLeftSideTemplate: TemplateRef<T>;
7
7
  headerRightSideTemplate: TemplateRef<T>;
8
8
  headerLeftSideContext: any;
@@ -36,9 +36,11 @@ export declare class CaCustomCardComponent<T> {
36
36
  action: string;
37
37
  }>;
38
38
  onOpenCard: EventEmitter<boolean>;
39
+ private isCardOpenAnimatedTimeout;
39
40
  isHeaderHover: boolean;
40
41
  noActive: string;
41
42
  _isCardOpen: boolean;
43
+ isCardOpenAnimated: boolean;
42
44
  isCardHover: boolean;
43
45
  sharedSvgRoutes: typeof SharedSvgRoutes;
44
46
  eColor: typeof eColor;
@@ -48,6 +50,7 @@ export declare class CaCustomCardComponent<T> {
48
50
  onIsCardOpenChange(value: boolean): void;
49
51
  isCardOpenEvent(event: MouseEvent): void;
50
52
  onPlusIconClick(event: MouseEvent): void;
53
+ ngOnDestroy(): void;
51
54
  static ɵfac: i0.ɵɵFactoryDeclaration<CaCustomCardComponent<any>, never>;
52
55
  static ɵcmp: i0.ɵɵComponentDeclaration<CaCustomCardComponent<any>, "app-ca-custom-card", never, { "headerLeftSideTemplate": { "alias": "headerLeftSideTemplate"; "required": false; }; "headerRightSideTemplate": { "alias": "headerRightSideTemplate"; "required": false; }; "headerLeftSideContext": { "alias": "headerLeftSideContext"; "required": false; }; "headerRightSideClass": { "alias": "headerRightSideClass"; "required": false; }; "cardHeight": { "alias": "cardHeight"; "required": false; }; "isAnimationsDisabled": { "alias": "isAnimationsDisabled"; "required": false; }; "cardName": { "alias": "cardName"; "required": false; }; "cardSubText": { "alias": "cardSubText"; "required": false; }; "hasArrow": { "alias": "hasArrow"; "required": false; }; "hasPlusIcon": { "alias": "hasPlusIcon"; "required": false; }; "isPlusIconDisabled": { "alias": "isPlusIconDisabled"; "required": false; }; "plusIconTooltip": { "alias": "plusIconTooltip"; "required": false; }; "isHeaderSvgEnabled": { "alias": "isHeaderSvgEnabled"; "required": false; }; "counter": { "alias": "counter"; "required": false; }; "hasDivider": { "alias": "hasDivider"; "required": false; }; "hasBodyData": { "alias": "hasBodyData"; "required": false; }; "hasScrollBody": { "alias": "hasScrollBody"; "required": false; }; "isStayOpen": { "alias": "isStayOpen"; "required": false; }; "isDisabledCard": { "alias": "isDisabledCard"; "required": false; }; "isHeaderHidden": { "alias": "isHeaderHidden"; "required": false; }; "animationMarginParams": { "alias": "animationMarginParams"; "required": false; }; "isCardOpen": { "alias": "isCardOpen"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "customNameClass": { "alias": "customNameClass"; "required": false; }; "customDividerClass": { "alias": "customDividerClass"; "required": false; }; }, { "onActionEvent": "onActionEvent"; "onOpenCard": "onOpenCard"; }, never, ["*"], true, never>;
53
56
  }
@@ -1,4 +1,5 @@
1
1
  export declare class FuelPricesRangeConstants {
2
2
  static FUEL_PRICES_RANGE_CIRCLE_SVG_CLASS_COLOR: Record<string, string>;
3
3
  static FUEL_PRICES_RANGE_ARROW_SVG_CLASS_COLOR: Record<string, string>;
4
+ static FUEL_PRICES_RANGE_BACKGROUND_CLASS_COLOR: Record<string, string>;
4
5
  }
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, Renderer2 } fro
2
2
  import { GoogleMap, MapAdvancedMarker } from '@angular/google-maps';
3
3
  import { IMapMarkers, ICaMapProps, IMapOptions, IRoutePath, IMapBoundsZoom, IMapAreaFilter } from '../ca-map/models';
4
4
  import { MapMarkerIconService } from './utils/services';
5
+ import { SharedSvgRoutes } from '../../utils/svg-routes';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class CaMapComponent {
7
8
  cd: ChangeDetectorRef;
@@ -29,6 +30,8 @@ export declare class CaMapComponent {
29
30
  map: google.maps.Map | null;
30
31
  mapStyleId: string;
31
32
  mapData: ICaMapProps;
33
+ mapScaleMilesLabel: number;
34
+ mapScalePixelWidth: number;
32
35
  openedInfoWindowData: IMapMarkers | null;
33
36
  selectedRoutingMarker: IMapMarkers | null;
34
37
  areaFilterData: IMapAreaFilter | null;
@@ -39,8 +42,7 @@ export declare class CaMapComponent {
39
42
  isMapCenterSet: boolean;
40
43
  openDropdownTimeout: ReturnType<typeof setTimeout> | number;
41
44
  selectRoutingTimeout: ReturnType<typeof setTimeout> | number;
42
- private clusterMarkerIds;
43
- private routingMarkerIds;
45
+ sharedSvgRoutes: typeof SharedSvgRoutes;
44
46
  ngOnInit(): void;
45
47
  ngAfterViewInit(): void;
46
48
  onClusterMarkerClick(markerItem: IMapMarkers): void;
@@ -73,8 +75,8 @@ export declare class CaMapComponent {
73
75
  private highlightSingleMarker;
74
76
  private updatePolylineColorsByRoute;
75
77
  private updatePolylineColorsByMarker;
76
- private getMarkerServiceData;
77
78
  private storeRoutePathColors;
79
+ private getScaleDistance;
78
80
  ngOnDestroy(): void;
79
81
  static ɵfac: i0.ɵɵFactoryDeclaration<CaMapComponent, never>;
80
82
  static ɵcmp: i0.ɵɵComponentDeclaration<CaMapComponent, "app-ca-map", never, { "data": { "alias": "data"; "required": false; }; }, { "resetSelectedMarkerItem": "resetSelectedMarkerItem"; "routingMarkerClick": "routingMarkerClick"; "clusterMarkerClick": "clusterMarkerClick"; "clusterListScrollEvent": "clusterListScrollEvent"; "getInfoWindowData": "getInfoWindowData"; "boundsChanged": "boundsChanged"; "openInMapEvent": "openInMapEvent"; }, never, never, true, never>;
@@ -12,4 +12,9 @@ export declare class MapHelper {
12
12
  bounds?: google.maps.LatLngBounds | null;
13
13
  mapZoom?: number | null;
14
14
  };
15
+ static getMapScaleDistance(map: google.maps.Map): {
16
+ roundedMiles: number;
17
+ pixelLength: number;
18
+ };
19
+ static getRoundedMiles(miles: number): number;
15
20
  }
@@ -13,7 +13,7 @@ export declare class MapMarkerIconService {
13
13
  private clusterElements;
14
14
  private routingElements;
15
15
  constructor(rendererFactory: RendererFactory2);
16
- getMarkerIcon(markerId: number, labelName?: string, isClosed?: boolean, isFavorite?: boolean, isAlwaysSelected?: boolean, fuelMarkerClass?: string, secondLabelName?: string): HTMLElement;
16
+ getMarkerIcon(markerId: number, labelName?: string, isClosed?: boolean, isFavorite?: boolean, isAlwaysSelected?: boolean, fuelMarkerClass?: string, secondLabelName?: string, isCreateNewMarker?: boolean): HTMLElement;
17
17
  getClusterMarkerIcon(markerData: IMapMarkers, isFuelMarker?: boolean): HTMLElement;
18
18
  getRoutingMarkerIcon(markerData: IMapMarkers, stopNumber: number, stopType: string, isStopChecked?: boolean, isLightMode?: boolean, labelName?: string): HTMLElement;
19
19
  getCurrentLocationMarkerIcon(markerData: IMapMarkers, motionStatus: eGpsMotionStatus): HTMLElement;
@@ -3,8 +3,9 @@ import { NgbPopover } from '@ng-bootstrap/ng-bootstrap';
3
3
  import { SortDropdownSvgRoutes } from './utils/svg-routes';
4
4
  import { SortColumn } from './models';
5
5
  import { SortDropdownEnum } from './enums';
6
- import { eStringPlaceholder } from '../../enums';
6
+ import { eColor, eStringPlaceholder } from '../../enums';
7
7
  import { sortDirectionType } from './types';
8
+ import { ISortDropdownAction } from './interfaces';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class CaSortDropdownComponent implements OnDestroy {
10
11
  set sortColumns(values: SortColumn[]);
@@ -14,11 +15,7 @@ export declare class CaSortDropdownComponent implements OnDestroy {
14
15
  isDarkVariation: boolean;
15
16
  isLargeVariation: boolean;
16
17
  customPopoverClass: string;
17
- onSortChange: EventEmitter<{
18
- column: SortColumn;
19
- sortName: string;
20
- direction: string;
21
- }>;
18
+ onSortChange: EventEmitter<ISortDropdownAction>;
22
19
  isSortPopoverOpened: EventEmitter<boolean>;
23
20
  private destroy$;
24
21
  sortDropdownSvgRoutes: typeof SortDropdownSvgRoutes;
@@ -28,6 +25,7 @@ export declare class CaSortDropdownComponent implements OnDestroy {
28
25
  isDropdownOpen: boolean;
29
26
  _sortColumns: SortColumn[];
30
27
  eStringPlaceholder: typeof eStringPlaceholder;
28
+ eColor: typeof eColor;
31
29
  sortDirectionChange(): void;
32
30
  sortChangeEvent(column?: SortColumn): void;
33
31
  emitPopoverState(): void;
@@ -0,0 +1 @@
1
+ export * from './sort-dropdown-action.interface';
@@ -0,0 +1,7 @@
1
+ import { SortDropdownEnum } from '../enums';
2
+ import { SortColumn } from '../models/sort-column.model';
3
+ export interface ISortDropdownAction {
4
+ column: SortColumn;
5
+ sortName: string;
6
+ direction: SortDropdownEnum;
7
+ }
@@ -45,4 +45,6 @@ export declare class SharedSvgRoutes {
45
45
  static NEW_SORT_ICON: string;
46
46
  static NEW_SORT_ICON_ASCENDING: string;
47
47
  static NEW_SORT_ICON_DESCENDING: string;
48
+ static MINUS_ICON: string;
49
+ static MAP_LOCATION_ICON: string;
48
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "2.0.57",
3
+ "version": "2.0.59",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",