@pega/angular-sdk-components 0.25.4 → 0.25.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.
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { AngularPConnectData, AngularPConnectService } from '../../../_bridge/angular-pconnect';
|
|
4
|
-
import { GoogleMapsLoaderService } from '../../../_services/google-maps-loader.service';
|
|
5
|
-
import { Utils } from '../../../_helpers/utils';
|
|
1
|
+
import { FieldBase } from '../field.base';
|
|
6
2
|
import { PConnFieldProps } from '../../../_types/PConnProps.interface';
|
|
7
3
|
import * as i0 from "@angular/core";
|
|
8
4
|
interface LocationProps extends PConnFieldProps {
|
|
@@ -11,51 +7,31 @@ interface LocationProps extends PConnFieldProps {
|
|
|
11
7
|
onlyCoordinates: boolean;
|
|
12
8
|
showMapReadOnly: boolean;
|
|
13
9
|
}
|
|
14
|
-
export declare class LocationComponent
|
|
10
|
+
export declare class LocationComponent extends FieldBase {
|
|
15
11
|
private loader;
|
|
16
|
-
private angularPConnect;
|
|
17
|
-
private utils;
|
|
18
|
-
private cdRef;
|
|
19
|
-
pConn$: typeof PConnect;
|
|
20
|
-
formGroup$: FormGroup;
|
|
21
12
|
private autocompleteService;
|
|
22
13
|
private geocoder;
|
|
23
14
|
mapReady: boolean;
|
|
24
15
|
isLocating: boolean;
|
|
25
|
-
searchControl: FormControl<string | null>;
|
|
26
16
|
showMap: boolean;
|
|
27
17
|
filteredOptions: string[];
|
|
28
18
|
center: google.maps.LatLngLiteral;
|
|
29
19
|
markerPosition: google.maps.LatLngLiteral | null;
|
|
30
|
-
angularPConnectData: AngularPConnectData;
|
|
31
20
|
configProps$: LocationProps;
|
|
32
|
-
label$: string;
|
|
33
21
|
onlyCoordinates: boolean;
|
|
34
22
|
coordinates: string;
|
|
35
|
-
bRequired$: boolean;
|
|
36
|
-
bReadonly$: boolean;
|
|
37
23
|
showMapReadOnly$: boolean;
|
|
38
|
-
bDisabled$: boolean;
|
|
39
|
-
bVisible$: boolean;
|
|
40
|
-
controlName$: string;
|
|
41
|
-
bHasForm$: boolean;
|
|
42
|
-
testId: string;
|
|
43
|
-
helperText: string;
|
|
44
|
-
placeholder: string;
|
|
45
|
-
actionsApi: object;
|
|
46
24
|
valueProp: string;
|
|
47
25
|
coordinatesProp: string;
|
|
48
|
-
constructor(loader: GoogleMapsLoaderService, angularPConnect: AngularPConnectService, utils: Utils, cdRef: ChangeDetectorRef);
|
|
49
26
|
ngOnInit(): Promise<void>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Updates the component when there are changes in the state.
|
|
29
|
+
*/
|
|
53
30
|
updateSelf(): void;
|
|
54
31
|
onOptionSelected(event: any): void;
|
|
55
32
|
fieldOnBlur(): void;
|
|
56
33
|
locateMe(): void;
|
|
57
34
|
onMapClick(event: google.maps.MapMouseEvent): void;
|
|
58
|
-
getErrorMessage(): string;
|
|
59
35
|
private tryGetLocation;
|
|
60
36
|
private initializeGoogleServices;
|
|
61
37
|
private getPlacePredictions;
|
|
@@ -66,6 +42,6 @@ export declare class LocationComponent implements OnInit, OnDestroy {
|
|
|
66
42
|
private setCoordinates;
|
|
67
43
|
private setLocationValue;
|
|
68
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocationComponent, never>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LocationComponent, "app-location", never, {
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocationComponent, "app-location", never, {}, {}, never, never, true, never>;
|
|
70
46
|
}
|
|
71
47
|
export {};
|