novo-elements 13.1.0-next.5 → 13.1.0-next.6

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.
@@ -20,10 +20,7 @@ declare class GooglePlacesService {
20
20
  loadGoogleMaps(settings: PlacesSettings): Promise<void>;
21
21
  private injectGoogleMapsScript;
22
22
  getPredictions(url: string, query: string, sessionToken?: string): Promise<any>;
23
- getLatLngDetail(url: string, lat: number, lng: number): Promise<any>;
24
23
  getPlaceDetails(url: string, placeId: string, sessionToken?: string): Promise<any>;
25
- getGeoCurrentLocation(): Promise<any>;
26
- getGeoLatLngDetail(latlng: any): Promise<any>;
27
24
  getGeoPrediction(params: any): Promise<any>;
28
25
  getGeoPlaceDetail(placeId: string): Promise<any>;
29
26
  getGeoPaceDetailByReferance(referance: string): Promise<any>;
@@ -63,6 +60,8 @@ interface PlacesSettings {
63
60
  googleApiKey?: string;
64
61
  /** Extra Maps JS loader query params, merged over the defaults (libraries=places, loading=async). */
65
62
  googleMapsLoaderParams?: Record<string, string>;
63
+ /** When false/undefined, the address-block inline autocomplete overlay is suppressed even when this config is present. */
64
+ addressBlockEnabled?: boolean;
66
65
  }
67
66
  /** Normalized address prediction; raw provider records are mapped into this via normalizePrediction. */
68
67
  interface AddressLookupPrediction {
@@ -75,7 +74,6 @@ interface AddressLookupPrediction {
75
74
  raw?: any;
76
75
  }
77
76
  declare class PlacesListComponent extends BasePickerResults implements OnInit, OnChanges, ControlValueAccessor {
78
- private platformId;
79
77
  private _elmRef;
80
78
  private _global;
81
79
  private _googlePlacesService;
@@ -87,7 +85,6 @@ declare class PlacesListComponent extends BasePickerResults implements OnInit, O
87
85
  select: EventEmitter<any>;
88
86
  matchesUpdated: EventEmitter<AddressLookupPrediction[]>;
89
87
  locationInput: string;
90
- gettingCurrentLocationFlag: boolean;
91
88
  dropdownOpen: boolean;
92
89
  recentDropdownOpen: boolean;
93
90
  isSettingsError: boolean;
@@ -103,7 +100,7 @@ declare class PlacesListComponent extends BasePickerResults implements OnInit, O
103
100
  model: any;
104
101
  onModelChange: Function;
105
102
  onModelTouched: Function;
106
- constructor(platformId: Object, _elmRef: ElementRef, _global: GlobalRef, _googlePlacesService: GooglePlacesService, cdr: ChangeDetectorRef, addressConfig?: PlacesSettings);
103
+ constructor(_elmRef: ElementRef, _global: GlobalRef, _googlePlacesService: GooglePlacesService, cdr: ChangeDetectorRef, addressConfig?: PlacesSettings);
107
104
  ngOnInit(): any;
108
105
  ngOnChanges(): any;
109
106
  writeValue(model: any): void;
@@ -116,7 +113,6 @@ declare class PlacesListComponent extends BasePickerResults implements OnInit, O
116
113
  selectMatch(match: AddressLookupPrediction): any;
117
114
  closeAutocomplete(event: any): any;
118
115
  userQuerySubmit(selectedOption?: any): any;
119
- currentLocationSelected(): any;
120
116
  normalizePrediction(raw: any): AddressLookupPrediction;
121
117
  onKeyDown(event: KeyboardEvent): void;
122
118
  search(term: any, mode?: any): Observable<any>;
@@ -130,11 +126,10 @@ declare class PlacesListComponent extends BasePickerResults implements OnInit, O
130
126
  private extractServerList;
131
127
  private updateListItem;
132
128
  private showRecentSearch;
133
- private getCurrentLocationInfo;
134
129
  private getPlaceLocationInfo;
135
130
  private setRecentLocation;
136
131
  private getRecentLocations;
137
- static ɵfac: i0.ɵɵFactoryDeclaration<PlacesListComponent, [null, null, null, null, null, { optional: true; }]>;
132
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlacesListComponent, [null, null, null, null, { optional: true; }]>;
138
133
  static ɵcmp: i0.ɵɵComponentDeclaration<PlacesListComponent, "google-places-list", never, { "userSettings": { "alias": "userSettings"; "required": false; }; }, { "termChange": "termChange"; "select": "select"; "matchesUpdated": "matchesUpdated"; }, never, never, false, never>;
139
134
  }
140
135
 
@@ -191,7 +191,7 @@ interface AddressData {
191
191
  formattedAddress?: string;
192
192
  location?: AddressGeoPoint;
193
193
  viewport?: AddressDetailViewport;
194
- referenceId?: string;
194
+ placeId?: string;
195
195
  postalCodes?: string[];
196
196
  radius?: AddressRadius;
197
197
  postal_codes?: string[];
@@ -4192,7 +4192,7 @@ class NovoAddressElement {
4192
4192
  [disabled]="disabled.address1"
4193
4193
  />
4194
4194
  </span>
4195
- <novo-overlay-template *ngIf="addressConfig" [parent]="address1ElRef" position="above-below">
4195
+ <novo-overlay-template *ngIf="addressConfig?.addressBlockEnabled" [parent]="address1ElRef" position="above-below">
4196
4196
  <google-places-list
4197
4197
  [term]="debouncedSearch"
4198
4198
  [userSettings]="addressConfig"
@@ -4354,7 +4354,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
4354
4354
  [disabled]="disabled.address1"
4355
4355
  />
4356
4356
  </span>
4357
- <novo-overlay-template *ngIf="addressConfig" [parent]="address1ElRef" position="above-below">
4357
+ <novo-overlay-template *ngIf="addressConfig?.addressBlockEnabled" [parent]="address1ElRef" position="above-below">
4358
4358
  <google-places-list
4359
4359
  [term]="debouncedSearch"
4360
4360
  [userSettings]="addressConfig"