import { OnInit, EventEmitter, OnChanges, AfterViewInit } from '@angular/core'; import { MapMarker } from '../../../models/map-marker.model'; import { MapConversions } from '../../../utils/conversions'; import { MarkerInfo } from '../../../models/marker-info.model'; import { FormGroup } from '@angular/forms'; import { MarkerData } from '../../../models/marker-data.model'; import { LocationInfoService } from '../../../services/location-info.service'; import { IconImageObject } from '../../../models/icon-image-object.model'; import { MatIconRegistry } from '@angular/material/icon'; import { DomSanitizer } from '@angular/platform-browser'; export declare class LocationInfoFormComponent implements OnInit, OnChanges, AfterViewInit { protected mapConversions: MapConversions; private locationInfoService; private matIconRegistry; private domSanitizer; /** * Incomming MarkerData to display */ MarkerData: MarkerData; /** * Incomming form view */ FormView: string; DefaultMarker: IconImageObject; /** * Output to info-footer */ CloseFooter: EventEmitter; /** * Outgoing MapMarker */ NewMapMarker: EventEmitter; /** * The set of available marker icons and paths to those icons */ MarkerSet: Array; /** * The form used to get data from user and set the location's data to it */ NewMarkerForm: FormGroup; /** * The marker whose data will be set and created */ NewMarker: MapMarker; /** * The marker that is displaying the info */ Marker: MapMarker; /** * The chosen icon for the current location marker */ ChosenIcon: MarkerInfo; /** * Reflects whether the incoming location marker exists or not (if it exists, IsEdit is true) */ IsEdit: boolean; /** * The url to the locations instagram page */ InstagramUrl: string; /** * The url for the phone number */ LinkedPhoneNumber: string; /** * The type of location */ Type: string; constructor(mapConversions: MapConversions, locationInfoService: LocationInfoService, matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer); ngOnInit(): void; ngAfterViewInit(): void; ngOnChanges(): void; /** * Change FormView so basic info is diplayed */ ShowBasicInfo(): void; /** * Called when the user swiped down to go back to basic info */ SwipedDown(): void; Close(): void; /** * Sets the marker data to the user entered data */ SetMarkerData(): void; /** * * @param icon The icon chosen by the user * * Sets the current ChosenIcon to the icon the user selected */ SetIcon(icon: any): void; /** * * @param iconName The name of the current icon * * Initially sets the current ChosenIcon to the associated marker for recognition of active status */ protected setChosenIconIfExists(iconName: string): void; protected createFormGroup(): void; }