ca-components 2.0.25 → 2.0.27

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.
@@ -73,8 +73,6 @@ export declare class CaMapComponent {
73
73
  private highlightSingleMarker;
74
74
  private updatePolylineColorsByRoute;
75
75
  private updatePolylineColorsByMarker;
76
- private getClusterId;
77
- private getRoutingId;
78
76
  private getMarkerServiceData;
79
77
  private storeRoutePathColors;
80
78
  ngOnDestroy(): void;
@@ -46,6 +46,8 @@ export interface IMapOptions {
46
46
  panControl: boolean;
47
47
  gestureHandling: string;
48
48
  mapTypeControl?: boolean;
49
+ zoom?: number;
50
+ center?: IRoutePath;
49
51
  }
50
52
  export interface IMapStyles {
51
53
  elementType?: string | null;
@@ -1,9 +1,9 @@
1
1
  import { ICaMapProps, IMapAreaFilter, IMapDashedRouteIcon, IMapDashedRouteStyle, IMapOptions, IMapPagination, IRoutePath } from '../../models';
2
2
  export declare class MapOptionsConstants {
3
- static DEFAULT_MAP_OPTIONS: IMapOptions;
4
- static DEFAULT_MAP_CONFIG: ICaMapProps;
5
3
  static DEFAULT_MAP_ZOOM: number;
6
4
  static DEFAULT_MAP_CENTER: IRoutePath;
5
+ static DEFAULT_MAP_OPTIONS: IMapOptions;
6
+ static DEFAULT_MAP_CONFIG: ICaMapProps;
7
7
  static MAP_LIST_PAGINATION: IMapPagination;
8
8
  static AREA_FILTER_DATA: IMapAreaFilter;
9
9
  static ROUTING_MARKER_DARK_COLORS: Record<string, string>;
@@ -1,9 +1,12 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  export interface MapDropdownContent {
2
3
  mainContent?: MapDropdownContentItem[];
3
4
  expandedContent?: MapDropdownContentItem[];
4
5
  clusterData?: MapDropdownClusterItem[];
5
6
  selectedClusterItemData?: any;
6
7
  isAlwaysExpanded?: boolean;
8
+ mainContentTemplate?: TemplateRef<any>;
9
+ expandedContentTemplate?: TemplateRef<any>;
7
10
  }
8
11
  export interface MapDropdownContentItem {
9
12
  template: 'header-title' | 'rating-review' | 'divider' | 'repair-shop-services' | 'fuel-price-range' | 'stop-type' | 'icon-text' | 'title' | 'title-count' | 'subtitle' | 'text' | 'money-text' | 'open-hours' | 'small-subtitle' | 'text-count' | 'side-by-side' | 'date' | 'travel-time';
@@ -18,4 +18,5 @@ export declare class MapDropdownSvgRoutes {
18
18
  static permanentlyClosedRoute: string;
19
19
  static favoriteRoute: string;
20
20
  static backButtonRoute: string;
21
+ static dateDeactivatedRoute: string;
21
22
  }
@@ -0,0 +1,41 @@
1
+ import { ChangeDetectorRef, ElementRef, EventEmitter, Renderer2, AfterViewInit } from '@angular/core';
2
+ import { SortColumn } from '../ca-sort-dropdown/models/sort-column.model';
3
+ import { SharedSvgRoutes } from '../../utils/svg-routes/shared-svg.routes';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CaMapListComponent<T> implements AfterViewInit {
6
+ private cdRef;
7
+ private renderer;
8
+ mapListContainerRef: ElementRef<HTMLElement>;
9
+ mapListRef: ElementRef<HTMLElement>;
10
+ mapListBodyRef: ElementRef<HTMLElement>;
11
+ sortColumns: SortColumn[];
12
+ activeSortColumn: SortColumn | null;
13
+ set mapListData(values: T);
14
+ onSearchEvent: EventEmitter<string>;
15
+ onCloseSearchEvent: EventEmitter<void>;
16
+ onSortEvent: EventEmitter<{
17
+ column: SortColumn;
18
+ sortName: string;
19
+ }>;
20
+ onMapListScrollEvent: EventEmitter<void>;
21
+ private fullContentHeight;
22
+ isHoveredList: boolean;
23
+ isExpandButtonShown: boolean;
24
+ isMapListExpanded: boolean;
25
+ previousScrollTime: number;
26
+ svgRoutes: typeof SharedSvgRoutes;
27
+ constructor(cdRef: ChangeDetectorRef, renderer: Renderer2);
28
+ ngAfterViewInit(): void;
29
+ onHoverList(isHovered: boolean): void;
30
+ onCloseSearch(): void;
31
+ onSearch(searchText: string): void;
32
+ onSortChange(event: {
33
+ column: SortColumn;
34
+ sortName: string;
35
+ }): void;
36
+ mapListScroll(event: Event): void;
37
+ resizeMapList(): void;
38
+ checkResizeButton(): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaMapListComponent<any>, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaMapListComponent<any>, "app-ca-map-list", never, { "sortColumns": { "alias": "sortColumns"; "required": false; }; "activeSortColumn": { "alias": "activeSortColumn"; "required": false; }; "mapListData": { "alias": "mapListData"; "required": false; }; }, { "onSearchEvent": "onSearchEvent"; "onCloseSearchEvent": "onCloseSearchEvent"; "onSortEvent": "onSortEvent"; "onMapListScrollEvent": "onMapListScrollEvent"; }, never, ["*"], true, never>;
41
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter, TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class CaMapListCardComponent<T> {
4
+ cardData: T;
5
+ cardTitleTemplate: TemplateRef<any>;
6
+ cardMiddleContentTemplate: TemplateRef<any>;
7
+ cardBottomContentTemplate: TemplateRef<any>;
8
+ isSelected: boolean;
9
+ onCardClickEvent: EventEmitter<T>;
10
+ onCardClick(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CaMapListCardComponent<any>, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaMapListCardComponent<any>, "app-ca-map-list-card", never, { "cardData": { "alias": "cardData"; "required": false; }; "cardTitleTemplate": { "alias": "cardTitleTemplate"; "required": false; }; "cardMiddleContentTemplate": { "alias": "cardMiddleContentTemplate"; "required": false; }; "cardBottomContentTemplate": { "alias": "cardBottomContentTemplate"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; }, { "onCardClickEvent": "onCardClickEvent"; }, never, never, true, never>;
13
+ }
@@ -9,6 +9,7 @@ export declare class CaSearchMultipleStatesComponent implements OnInit, OnDestro
9
9
  toolbarSearch?: boolean;
10
10
  selectedTabData: ITabData;
11
11
  searchType: string;
12
+ isAlwaysOpenSearch: boolean;
12
13
  set isDetailsPageSearch(value: boolean);
13
14
  close: EventEmitter<void>;
14
15
  onSearch: EventEmitter<string>;
@@ -17,6 +18,7 @@ export declare class CaSearchMultipleStatesComponent implements OnInit, OnDestro
17
18
  openSearch: boolean;
18
19
  searchText: string;
19
20
  searchIsActive: boolean;
21
+ isInputFocused: boolean;
20
22
  chipToDelete: number;
21
23
  private chipsForHighlightSearch;
22
24
  private typingTimeout;
@@ -39,7 +41,8 @@ export declare class CaSearchMultipleStatesComponent implements OnInit, OnDestro
39
41
  getSvgPath(propertyName: keyof typeof SearchMultipleStatesRoutes): string;
40
42
  capitalizeInput(text: string): void;
41
43
  emitSearchEvent(): void;
44
+ onInputFocus(isFocused: boolean): void;
42
45
  ngOnDestroy(): void;
43
46
  static ɵfac: i0.ɵɵFactoryDeclaration<CaSearchMultipleStatesComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<CaSearchMultipleStatesComponent, "app-ca-search-multiple-states", never, { "toolbarSearch": { "alias": "toolbarSearch"; "required": false; }; "selectedTabData": { "alias": "selectedTabData"; "required": false; }; "searchType": { "alias": "searchType"; "required": false; }; "isDetailsPageSearch": { "alias": "isDetailsPageSearch"; "required": false; }; }, { "close": "close"; "onSearch": "onSearch"; }, never, never, true, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<CaSearchMultipleStatesComponent, "app-ca-search-multiple-states", never, { "toolbarSearch": { "alias": "toolbarSearch"; "required": false; }; "selectedTabData": { "alias": "selectedTabData"; "required": false; }; "searchType": { "alias": "searchType"; "required": false; }; "isAlwaysOpenSearch": { "alias": "isAlwaysOpenSearch"; "required": false; }; "isDetailsPageSearch": { "alias": "isDetailsPageSearch"; "required": false; }; }, { "close": "close"; "onSearch": "onSearch"; }, never, never, true, never>;
45
48
  }
@@ -1,5 +1,7 @@
1
+ import { TemplateRef } from '@angular/core';
1
2
  export interface SortColumn {
2
3
  name: string;
3
4
  sortName: string;
4
5
  isDisabled?: boolean;
6
+ template?: TemplateRef<any>;
5
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ca-components",
3
- "version": "2.0.25",
3
+ "version": "2.0.27",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",
package/public-api.d.ts CHANGED
@@ -10,6 +10,10 @@ export * from './lib/components/ca-input-dropdown-test/ca-input-dropdown-test.co
10
10
  export * from './lib/components/ca-input-radiobuttons/ca-input-radiobuttons.component';
11
11
  export * from './lib/components/ca-map/ca-map.component';
12
12
  export * from './lib/components/ca-map-dropdown/ca-map-dropdown.component';
13
+ export * from './lib/components/ca-map-list/ca-map-list.component';
14
+ export * from './lib/components/ca-map-list-card/ca-map-list-card.component';
15
+ export * from './lib/components/ca-map-dropdown/utils/svg-routes';
16
+ export * from './lib/components/ca-map-dropdown/models';
13
17
  export * from './lib/components/ca-note/ca-note.component';
14
18
  export * from './lib/components/ca-note-container/ca-note-container.component';
15
19
  export * from './lib/components/ca-payroll-list-summary-overview/ca-payroll-list-summary-overview.component';