UNPKG

@progressive-development/pd-contact

Version:

Progressive Development Contact component

63 lines 1.78 kB
import { LitElement, PropertyValues, CSSResultGroup } from 'lit'; import { PdContactData, PdContactMatch } from '../types'; /** * @tagname pd-contact */ export declare class PdContact extends LitElement { /** * Title shown above address block. */ addressTitle: string; /** * If true, phone and email are rendered as clickable links with icons. */ phoneMailLink: boolean; /** * If true, render only summary view instead of full editable form. */ summary: boolean; /** * Whether the Baujahr / propertyDate should be shown in the form. * TODO: Refactor, give selectable property dates from outside, show if set */ withPropertyDate: boolean; /** * List of required input field keys (optional). */ requiredFields: string[]; /** * List of fields to be rendered (optional). */ inputFields: string[]; /** * Contact object to show or edit. */ contact?: PdContactData; /** * Optional location match data. */ match?: PdContactMatch; /** * Business or private contact (internal flag). */ private _business; private _contactForm; static styles: CSSResultGroup; willUpdate(changedProps: PropertyValues<this>): void; render(): import('lit').TemplateResult<1>; private _renderEditContact; private _getRadioValue; private _renderViewContact; get valid(): boolean; triggerValidate(): Promise<boolean>; getValues(): PdContactData; private _switchAddressType; private _isRequired; private _showInput; private _setFormData; private _getFullName; private _getFullStreet; private _getFullLocation; private static _getFullVal; } //# sourceMappingURL=PdContact.d.ts.map