@vertical-insure/web-components
Version:
Vertical Insure Web Components using Lit and Open Web Standards
109 lines (108 loc) • 3.2 kB
TypeScript
import { CSSResultGroup, PropertyValueMap, ReactiveControllerHost, TemplateResult } from "lit";
import { QuoteController } from '../lib/quote-controller';
import { PolicyAttributes } from '../lib/model/policy-attributes';
import { Policy } from '../lib/model/policy';
import { Customer } from '../lib/model/customer';
import { BaseElement } from '../lib/base-element';
export type ProductTemplate = {
promotional_header: string | undefined;
promotional_description: string | undefined;
accept_action_text: string | undefined;
decline_action_text: string | undefined;
};
declare const QuoteElement_base: import("./mixin/mixin-constructor").Constructor<import('../lib/mixin/offer-payment-mixin').OfferPaymentElementInterface> & typeof BaseElement;
/**
* @attribute {string} customer-first-name
* @attribute {string} customer-last-name
* @attribute {string} customer-email-address
* @attribute {string} customer-street-address
* @attribute {string} customer-state
* @attribute {string} customer-city
* @attribute {string} customer-postal-code
*/
export declare abstract class QuoteElement<T extends PolicyAttributes> extends QuoteElement_base implements ReactiveControllerHost {
static styles: CSSResultGroup;
/**
* @ignore
*/
product: string;
customerFirstName?: string;
customerLastName?: string;
customerEmailAddress?: string;
customerStreetAddress?: string;
customerState?: string;
customerCity?: string;
customerPostalCode?: string;
customerCountry?: "US" | "CA";
/**
* @ignore
*/
landingPageAction: boolean;
shouldOverrideQuote: boolean;
quoteOverride?: Policy<any>;
/**
* @ignore
*/
quoteController?: QuoteController<T>;
/**
* @ignore
*/
quoteContext: Policy<T> | undefined;
/**
* All implementations must override this function and return their own policy attribute object appropriate for
* the product
* @ignore
*/
abstract get policyAttributes(): T;
get quote(): Policy<T> | undefined;
constructor(product: string);
protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
connectedCallback(): void;
/**
* @ignore
*/
get customer(): Customer;
/**
* @ignore
*/
get productTemplate(): ProductTemplate;
accept(): void;
decline(): void;
reset(): void;
get total(): number | undefined;
/**
* @ignore
*/
get quoteId(): string;
/**
* @ignore
*/
set quoteId(quoteId: string);
/**
* @ignore
*/
unsetQuoteId(): void;
private get storageKey();
/**
* @ignore
*/
get offerId(): string | undefined | null;
/**
* @ignore
*/
set offerId(offerId: string | undefined);
/**
* @ignore
*/
unsetOfferId(): void;
/**
* @ignore
*/
private get offerIdStorageKey();
protected get displayPaymentElement(): boolean;
protected triggerOfferStateChangeEvent(): void;
protected toggleOfferSelection(): void;
render(): TemplateResult;
protected _renderStandardDisplay(): TemplateResult;
}
export {};