import { EventEmitter } from '../../stencil-public-runtime'; import { VehicleLookupDTO } from "../../global/types/generated/vehicle-lookup/vehicle-lookup-dto"; import accessoriesSchema from "../../locales/vehicleLookup/accessories/type"; import { PageSize } from './components/VehicleAccessoriesPanel'; import { VehicleInfoLayoutInterface, VerdictState } from "../../features/vehicle-info-layout/index"; import { BlazorInvokable, DotNetObjectReference, BlazorInvokableFunction } from "../../features/blazor-ref/index"; import { VehicleLookupComponent, VehicleLookupMock } from "../../features/vehicle-lookup-component/index"; import { ComponentLocale, ErrorKeys, LanguageKeys, MultiLingual } from "../../features/multi-lingual/index"; export declare class VehicleAccessories implements MultiLingual, VehicleInfoLayoutInterface, VehicleLookupComponent, BlazorInvokable { language: LanguageKeys; locale: ComponentLocale; componentWillLoad(): Promise; changeLanguage(newLanguage: LanguageKeys): Promise; coreOnly: boolean; /** The picture open in the viewer, or empty. */ expandedImage?: string; private imageViewer?; /** Opens the viewer on `src`, growing out of the thumbnail `origin`. The same picture again while open is ignored. */ private openImage; /** The viewer closed (overlay, key or hide()): the panel no longer has a picture open. */ private onViewerChange; blazorRef?: DotNetObjectReference; setBlazorRef(newBlazorRef: DotNetObjectReference): Promise; isDev: boolean; today?: string; disableVinValidation: boolean; baseUrl: string; headers: object; queryString: string; /** * Comma-separated column names to leave out: `partNumber`, `description`, `image`. A shown column * with no value reads as a dash; a hidden one has no heading, no cell and no caption. By default * every column is shown. */ hiddenFields: string; errorCallback?: BlazorInvokableFunction<(errorMessage: ErrorKeys) => void>; loadingStateChange?: BlazorInvokableFunction<(isLoading: boolean) => void>; loadedResponse?: BlazorInvokableFunction<(response: VehicleLookupDTO) => void>; isError: boolean; errorMessage?: ErrorKeys; isLoading: boolean; vehicleLookup?: VehicleLookupDTO; el: HTMLElement; mockData: any; abortController: AbortController; networkTimeoutRef: ReturnType; setMockData(newMockData: VehicleLookupMock): Promise; fetchVin(newData: VehicleLookupDTO | string, headers?: object): Promise; setErrorMessage(message: ErrorKeys): Promise; clearData(): Promise; onLoadingChange(newValue: boolean): void; /** The panel is on its way to empty or to an error: the head leaves and the body is shutting over its rows. */ leaving: boolean; private leaveGeneration; /** How long a state change takes to settle: the --settle token plus a margin for the frame it starts on. */ private settleMs; /** * Shuts the body over whatever it holds and resolves once it has settled, so the caller can swap * the content while nothing is on screen. True when the caller may go on; false when a newer call * took over meanwhile. Resolves at once when there is nothing to leave. */ private leave; private emptyPanel; /** The hidden set the render uses. It trails `hiddenFields` by a settle: the body shuts, this swaps, the body reopens. */ applied: ReadonlySet; reconfiguring: boolean; private configGeneration; reconfigure(): Promise; /** * Fires whenever the panel's verdict changes — including back to idle when the vehicle is * cleared — so a composite that draws one card for several panels can colour its accent from the * active one. */ verdictChange: EventEmitter; private lastVerdict?; private currentVerdict; private announceVerdict; private retainedBody; private retainTimer?; private retainedNotice; /** Remembers the body's kind and forgets it a settle after the body shut, so rows slide away with it. */ private retainBody; pagination: boolean; onPaginationChange(): void; /** The reader's page size, kept in this browser (localStorage) so the panel opens on it next time. */ pageSize: PageSize; page: number; /** A page is changing: the values on screen are fading out; the next page is swapped in once they are out. */ paging: boolean; private pagingGeneration; private pagingTimer?; private stopFollowing?; private revealPending; private initialPageSize; /** Reads the stored size. Storage can be missing or throw (private windows, blocked site data); the default stands then. */ private readPageSize; private storePageSize; onVehicleChange(): void; /** * Moves to `page` at `size`. Nothing is fetched, so there is no skeleton: when a row's content * changes, the values fade out, the page swaps while they are out, and they fade back in; rows * the new page adds slide open and rows it drops slide shut. When every row on screen stays (a * bigger page from the first one), nothing fades and the new rows simply open below. */ private goTo; private onPage; private onPageSize; /** Before a page that is shorter than the one on screen: whether the controls will rise off the top of the screen. */ private prepareReveal; /** The page's rows as they were last rendered, and whether the body was open on them. */ private shownBefore; private bodyWasOpen; /** Rows the body no longer holds, kept in their slots while those shut; dropped a settle later. */ private outgoing; private outgoingVeil; private outgoingTimer?; /** How many of the current rows' slots are open; new slots start shut and are opened a frame later. */ private opened; private openPending; /** What changed the rows: a lookup (rows leave under the skeleton) or a page (rows leave faded). */ private swapCause; private lastVeil; /** * Works out, once per change of the rows on screen, which slots stay, which arrive and which * leave. A slot that stays keeps its element: its values change under the cover (a lookup) or * while faded (a page). Rows past the new count leave in place, still covered or faded, as their * slots shut; rows past the old count arrive shut and are opened on the next frame, so they slide. * When the body itself opens or shuts, it carries every row and no slot moves on its own. */ private updateSlots; private heightAnnouncer?; private layoutSignature?; /** Everything that moves the panel's height, joined; a render that changes none of it announces nothing. */ private signature; componentDidRender(): void; disconnectedCallback(): void; private errorText; private panelState; render(): any; }