ca-components 2.0.58 → 2.0.60

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.
Files changed (27) hide show
  1. package/assets/scss/background.scss +11 -0
  2. package/assets/scss/sizing.scss +3 -0
  3. package/assets/scss/spacing.scss +2 -2
  4. package/assets/scss/text-size.scss +4 -0
  5. package/fesm2022/ca-components.mjs +476 -252
  6. package/fesm2022/ca-components.mjs.map +1 -1
  7. package/lib/components/ca-filters/ca-filter.component.d.ts +2 -2
  8. package/lib/components/ca-fuel-prices-range/utils/constants/fuel-prices-range.constants.d.ts +1 -0
  9. package/lib/components/ca-load-status/enums/load-status-background-colors.enum.d.ts +2 -1
  10. package/lib/components/ca-load-status/enums/load-status-icon-colors.enum.d.ts +2 -1
  11. package/lib/components/ca-load-status/enums/load-status-svg-colors.enum.d.ts +2 -1
  12. package/lib/components/ca-map/ca-map.component.d.ts +5 -3
  13. package/lib/components/ca-map/utils/helpers/map-marker-icon.helper.d.ts +1 -1
  14. package/lib/components/ca-map/utils/helpers/map.helper.d.ts +5 -0
  15. package/lib/components/ca-map/utils/services/map-marker-icon.service.d.ts +1 -1
  16. package/lib/components/ca-toolbar-dropdown/interfaces/dropdown-item.interface.d.ts +1 -0
  17. package/lib/components/ca-toolbar-tab-switch/ca-toolbar-tab-switch.component.d.ts +29 -0
  18. package/lib/components/ca-toolbar-tab-switch/enums/index.d.ts +1 -0
  19. package/lib/components/ca-toolbar-tab-switch/enums/toolbar-variant.enum.d.ts +4 -0
  20. package/lib/components/ca-toolbar-tab-switch/interfaces/index.d.ts +1 -0
  21. package/lib/components/ca-toolbar-tab-switch/interfaces/toolbar-tabs.interface.d.ts +6 -0
  22. package/lib/components/ca-toolbar-tab-switch/pipes/toolbar-tabs-class-pipe.d.ts +14 -0
  23. package/lib/components/ca-toolbar-tab-switch/types/index.d.ts +1 -0
  24. package/lib/components/ca-toolbar-tab-switch/types/toolbar-variant.type.d.ts +2 -0
  25. package/lib/utils/svg-routes/shared-svg.routes.d.ts +2 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +1 -0
@@ -57,8 +57,8 @@ export declare class CaFilterComponent implements OnDestroy {
57
57
  icon: string;
58
58
  usaStates: ArrayStatus[];
59
59
  canadaStates: ArrayStatus[];
60
- setFilter: EventEmitter<filterOutput | filterOutputWithParams>;
61
- clearAll: EventEmitter<filterOutput | filterOutputWithParams>;
60
+ setFilter: EventEmitter<filterOutputWithParams | filterOutput>;
61
+ clearAll: EventEmitter<filterOutputWithParams | filterOutput>;
62
62
  private destroy$;
63
63
  isSearchExpanded: boolean;
64
64
  isFilterActive: boolean;
@@ -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
  }
@@ -12,5 +12,6 @@ export declare enum eLoadStatusBackgroundColors {
12
12
  RED = "background-red-10",
13
13
  BROWN = "background-brown-bold",
14
14
  PURPLE = "background-purple-4",
15
- GREY = "background-light-gray-2"
15
+ GREY = "background-light-gray-2",
16
+ YELLOW = "background-yellow-5"
16
17
  }
@@ -8,5 +8,6 @@ export declare enum eLoadStatusIconColors {
8
8
  GOLD = "svg-fill-yellow-4",
9
9
  RED = "svg-fill-red-10",
10
10
  BROWN = "svg-fill-brown-bold",
11
- PURPLE = "svg-fill-purple-4"
11
+ PURPLE = "svg-fill-purple-4",
12
+ YELLOW = "svg-fill-yellow-5"
12
13
  }
@@ -7,5 +7,6 @@ export declare enum eLoadStatusSvgColors {
7
7
  GOLD_BOLD = "color-background-gold-bold",
8
8
  RED_BOLD = "color-background-red-bold",
9
9
  BROWN_BOLD = "color-background-brown-bold",
10
- BLACK_200 = "color-background-black-200"
10
+ BLACK_200 = "color-background-black-200",
11
+ YELLOW_BOLD = "color-background-yellow-bold"
11
12
  }
@@ -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>;
@@ -10,7 +10,7 @@ export declare class MapMarkerIconHelper {
10
10
  static getMapMarker(isFavorite?: boolean, isClosed?: boolean): string;
11
11
  static getClusterMarker(count: number, isSelected?: boolean, isFuelMarker?: boolean): string;
12
12
  static getCurrentLocationMarkerSvg(motionStatus: eGpsMotionStatus): string;
13
- static getGpsMarkerElement(motionStatus: eGpsMotionStatus, headingDirection: string, isIgnition?: boolean, index?: number): HTMLElement;
13
+ static getGpsMarkerElement(motionStatus: eGpsMotionStatus, headingDirection: string, isIgnition?: boolean, index?: number, labelName?: string, secondLabelName?: string): HTMLElement;
14
14
  static getGpsMarkerSvg(motionStatus: eGpsMotionStatus, headingDirection: string, isIgnition?: boolean): string;
15
15
  static getGpsMovingMarkerSvg(headingDirection: string): string;
16
16
  static getGpsStopMarkerSvg(motionStatus: eGpsMotionStatus, isIgnition?: boolean): string;
@@ -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,4 +3,5 @@ export interface IDropdownItem {
3
3
  title: string;
4
4
  count: number;
5
5
  isSelected: boolean;
6
+ isCountHidden?: boolean;
6
7
  }
@@ -0,0 +1,29 @@
1
+ import { ChangeDetectorRef, ElementRef, AfterViewInit, Renderer2 } from '@angular/core';
2
+ import { EventEmitter } from '@angular/core';
3
+ import { eToolbarVariant } from './enums';
4
+ import { IToolbarTabs } from './interfaces';
5
+ import { ToolbarVariantType } from './types';
6
+ import * as i0 from "@angular/core";
7
+ export declare class CaToolbarTabSwitchComponent implements AfterViewInit {
8
+ private render;
9
+ private cdRef;
10
+ private elem;
11
+ set selectedTab(value: string | undefined);
12
+ data: IToolbarTabs[];
13
+ variant: ToolbarVariantType;
14
+ tabSelected: EventEmitter<string>;
15
+ private indexSwitch;
16
+ private selectedItem;
17
+ private isAnimating;
18
+ private _selectedTab?;
19
+ toolbarVariant: typeof eToolbarVariant;
20
+ constructor(render: Renderer2, cdRef: ChangeDetectorRef, elem: ElementRef);
21
+ get selectedTab(): string | undefined;
22
+ ngAfterViewInit(): void;
23
+ private setSwitchActive;
24
+ private animateTabSwitch;
25
+ private finalizeTabSwitch;
26
+ onTabClick(event: MouseEvent, index: number, tabName: string): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaToolbarTabSwitchComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaToolbarTabSwitchComponent, "ca-toolbar-tab-switch", never, { "selectedTab": { "alias": "selectedTab"; "required": false; }; "data": { "alias": "data"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, { "tabSelected": "tabSelected"; }, never, never, true, never>;
29
+ }
@@ -0,0 +1 @@
1
+ export * from './toolbar-variant.enum';
@@ -0,0 +1,4 @@
1
+ export declare enum eToolbarVariant {
2
+ Large = 1,
3
+ Small = 2
4
+ }
@@ -0,0 +1 @@
1
+ export * from './toolbar-tabs.interface';
@@ -0,0 +1,6 @@
1
+ export interface IToolbarTabs {
2
+ title?: string;
3
+ name?: string;
4
+ length?: number;
5
+ isDisabled?: boolean;
6
+ }
@@ -0,0 +1,14 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ToolbarTabsClassPipe implements PipeTransform {
4
+ transform({ isLargeLayout, isLargeAndActive, isLargeAndInActive, isSmallActive, isSmallAndInActive, isDisabled, }: {
5
+ isLargeLayout: boolean;
6
+ isLargeAndActive: boolean;
7
+ isLargeAndInActive: boolean;
8
+ isSmallActive: boolean;
9
+ isSmallAndInActive: boolean;
10
+ isDisabled: boolean;
11
+ }): string;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarTabsClassPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<ToolbarTabsClassPipe, "toolbarTabsClassPipe", true>;
14
+ }
@@ -0,0 +1 @@
1
+ export * from './toolbar-variant.type';
@@ -0,0 +1,2 @@
1
+ import { eToolbarVariant } from '../enums';
2
+ export type ToolbarVariantType = eToolbarVariant.Large | eToolbarVariant.Small;
@@ -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.58",
3
+ "version": "2.0.60",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",
package/public-api.d.ts CHANGED
@@ -131,3 +131,4 @@ export * from './lib/utils/constants';
131
131
  export * from './lib/components/ca-modal-spinner/ca-modal-spinner.component';
132
132
  export * from './lib/components/ca-progress-bar-v2/ca-progress-bar-v2.component';
133
133
  export * from './lib/components/ca-new-filter/utils/helpers/time-filter.helper';
134
+ export * from './lib/components/ca-toolbar-tab-switch/ca-toolbar-tab-switch.component';