ecabs-components 1.1.72 → 1.1.74

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.
@@ -23,7 +23,7 @@ export interface GooglePlaceResult {
23
23
  }
24
24
  export interface WaypointQueryChange {
25
25
  waypoint_type: WaypointTypeEnum;
26
- query: string;
26
+ place_name: string;
27
27
  }
28
28
  export declare const WAYPOINT_SUGGESTIONS: WaypointSuggestion[];
29
29
  export declare const WAYPOINT_SUGGESTIONS2: WaypointSuggestion[];
@@ -22,7 +22,6 @@ export declare class EcabsDateRangePickerComponentV2 extends EcabsElementBaseCom
22
22
  excludeWeekends: boolean;
23
23
  specificDates: Date[];
24
24
  holidayOptions: EcabsDatePickerHolidayOptions;
25
- dateToOptional: boolean;
26
25
  onblur: EventEmitter<any>;
27
26
  val: {
28
27
  dateFrom: string;
@@ -66,5 +65,5 @@ export declare class EcabsDateRangePickerComponentV2 extends EcabsElementBaseCom
66
65
  isDateNotHoliday(date: Date): boolean;
67
66
  dateRangeValidator(control: UntypedFormControl): void;
68
67
  static ɵfac: i0.ɵɵFactoryDeclaration<EcabsDateRangePickerComponentV2, never>;
69
- static ɵcmp: i0.ɵɵComponentDeclaration<EcabsDateRangePickerComponentV2, "ecabs-date-range-picker-v2", never, { "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "applyLabel": { "alias": "applyLabel"; "required": false; }; "startDatePlaceholder": { "alias": "startDatePlaceholder"; "required": false; }; "endDatePlaceholder": { "alias": "endDatePlaceholder"; "required": false; }; "separatorLabel": { "alias": "separatorLabel"; "required": false; }; "excludeHolidays": { "alias": "excludeHolidays"; "required": false; }; "excludeWeekends": { "alias": "excludeWeekends"; "required": false; }; "specificDates": { "alias": "specificDates"; "required": false; }; "holidayOptions": { "alias": "holidayOptions"; "required": false; }; "dateToOptional": { "alias": "dateToOptional"; "required": false; }; }, { "onblur": "onblur"; }, never, never, false, never>;
68
+ static ɵcmp: i0.ɵɵComponentDeclaration<EcabsDateRangePickerComponentV2, "ecabs-date-range-picker-v2", never, { "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; "applyLabel": { "alias": "applyLabel"; "required": false; }; "startDatePlaceholder": { "alias": "startDatePlaceholder"; "required": false; }; "endDatePlaceholder": { "alias": "endDatePlaceholder"; "required": false; }; "separatorLabel": { "alias": "separatorLabel"; "required": false; }; "excludeHolidays": { "alias": "excludeHolidays"; "required": false; }; "excludeWeekends": { "alias": "excludeWeekends"; "required": false; }; "specificDates": { "alias": "specificDates"; "required": false; }; "holidayOptions": { "alias": "holidayOptions"; "required": false; }; }, { "onblur": "onblur"; }, never, never, false, never>;
70
69
  }
@@ -1,12 +1,11 @@
1
- /// <reference types="google.maps" />
2
- import { AfterViewInit, ElementRef, EventEmitter, Injector, NgZone, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, EventEmitter, Injector, NgZone, OnChanges, SimpleChanges } from '@angular/core';
3
2
  import { ControlValueAccessor } from '@angular/forms';
4
3
  import EcabsElementBaseComponent from '../base/element-base';
5
4
  import { WaypointTypeEnum } from '../base/consts/waypoint.consts';
6
5
  import { GooglePlaceResult, WaypointQueryChange, WaypointSuggestion } from '../base/models/waypoint.models';
7
6
  import { BehaviorSubject, Observable } from 'rxjs';
8
7
  import * as i0 from "@angular/core";
9
- export declare class EcabsPlaceAutocompleteV2Component extends EcabsElementBaseComponent implements OnDestroy, OnChanges, AfterViewInit, ControlValueAccessor {
8
+ export declare class EcabsPlaceAutocompleteV2Component extends EcabsElementBaseComponent implements OnChanges, AfterViewInit, ControlValueAccessor {
10
9
  private readonly ngZone;
11
10
  private readonly injector;
12
11
  matCustomInput: ElementRef;
@@ -16,6 +15,7 @@ export declare class EcabsPlaceAutocompleteV2Component extends EcabsElementBaseC
16
15
  countryCode: string;
17
16
  googleLoaded: boolean;
18
17
  waypointType: WaypointTypeEnum;
18
+ debounceTime: number;
19
19
  readonly placeResult: EventEmitter<GooglePlaceResult>;
20
20
  readonly deleteItem: EventEmitter<any>;
21
21
  readonly queryChanged: EventEmitter<WaypointQueryChange>;
@@ -24,32 +24,31 @@ export declare class EcabsPlaceAutocompleteV2Component extends EcabsElementBaseC
24
24
  waypointSuggestions$: Observable<WaypointSuggestion[]>;
25
25
  selectedIndex: number;
26
26
  displayedSuggestions: WaypointSuggestion[];
27
- val: string;
28
- listener: google.maps.MapsEventListener;
27
+ private _value;
29
28
  private mapAutocompleteService;
30
29
  private placesService;
31
30
  private sessionToken;
32
31
  get value(): string;
33
- set value(val: string);
32
+ set value(value: string);
34
33
  constructor(ngZone: NgZone, injector: Injector);
35
34
  ngOnChanges(changes: SimpleChanges): void;
36
35
  ngAfterViewInit(): void;
36
+ private onChange;
37
+ private onTouch;
37
38
  private getWaypointResults;
38
39
  private getPlacesResults;
40
+ private toWaypointSuggestions;
39
41
  onSelectSuggestion(suggestion: WaypointSuggestion): void;
40
42
  onKeyDown(event: KeyboardEvent): void;
41
- ngOnDestroy(): void;
42
- onChange: any;
43
- onTouch: any;
44
43
  onBlur(): void;
45
44
  onFocus(): void;
46
- writeValue(value: any): void;
47
- registerOnChange(fn: any): void;
48
- registerOnTouched(fn: any): void;
45
+ writeValue(nextValue?: string): void;
46
+ registerOnChange(fn: (value: string) => void): void;
47
+ registerOnTouched(fn: () => void): void;
49
48
  onDeleteItem(): void;
50
49
  onClean(): void;
51
50
  private initGoogle;
52
51
  private resetSessionToken;
53
52
  static ɵfac: i0.ɵɵFactoryDeclaration<EcabsPlaceAutocompleteV2Component, never>;
54
- static ɵcmp: i0.ɵɵComponentDeclaration<EcabsPlaceAutocompleteV2Component, "ecabs-place-autocomplete-v2", never, { "showDeleteItem": { "alias": "showDeleteItem"; "required": false; }; "waypointsHistory": { "alias": "waypointsHistory"; "required": false; }; "showSuffix": { "alias": "showSuffix"; "required": false; }; "countryCode": { "alias": "countryCode"; "required": false; }; "googleLoaded": { "alias": "googleLoaded"; "required": false; }; "waypointType": { "alias": "waypointType"; "required": false; }; }, { "placeResult": "placeResult"; "deleteItem": "deleteItem"; "queryChanged": "queryChanged"; }, never, never, false, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<EcabsPlaceAutocompleteV2Component, "ecabs-place-autocomplete-v2", never, { "showDeleteItem": { "alias": "showDeleteItem"; "required": false; }; "waypointsHistory": { "alias": "waypointsHistory"; "required": false; }; "showSuffix": { "alias": "showSuffix"; "required": false; }; "countryCode": { "alias": "countryCode"; "required": false; }; "googleLoaded": { "alias": "googleLoaded"; "required": false; }; "waypointType": { "alias": "waypointType"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; }, { "placeResult": "placeResult"; "deleteItem": "deleteItem"; "queryChanged": "queryChanged"; }, never, never, false, never>;
55
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecabs-components",
3
- "version": "1.1.72",
3
+ "version": "1.1.74",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.12",
6
6
  "@angular/common": "^16.2.12",