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.
- package/fesm2022/ca-components.mjs +171 -24
- package/fesm2022/ca-components.mjs.map +1 -1
- package/lib/components/ca-map/ca-map.component.d.ts +0 -2
- package/lib/components/ca-map/models/map.model.d.ts +2 -0
- package/lib/components/ca-map/utils/constants/map-options.constants.d.ts +2 -2
- package/lib/components/ca-map-dropdown/models/map-dropdown-content.model.d.ts +3 -0
- package/lib/components/ca-map-dropdown/utils/svg-routes/map-dropdown-svg-routes.d.ts +1 -0
- package/lib/components/ca-map-list/ca-map-list.component.d.ts +41 -0
- package/lib/components/ca-map-list-card/ca-map-list-card.component.d.ts +13 -0
- package/lib/components/ca-search-multiple-states/ca-search-multiple-states.component.d.ts +4 -1
- package/lib/components/ca-sort-dropdown/models/sort-column.model.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +4 -0
|
@@ -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;
|
|
@@ -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';
|
|
@@ -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
|
}
|
package/package.json
CHANGED
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';
|