import 'dayjs/locale/nl'; import { ILiftStatusWebComponentError } from '../../utils/types'; import { SensorRowMap } from './ls-counters.utils'; /** * @slot - Additional content, rendered at the end of the component. * @slot loading - Replaces the built-in loading message. * * @part container - The outer wrapper. * @part title - The component heading. * @part period - The line describing the period the counters cover. * @part table-container - The wrapper that scrolls the table horizontally when it is wider than the component. * @part table - The per-stop statistics table. * @part caption - The table caption. Visually hidden by default. * @part table-head - The table head. * @part header-row - The row inside the table head. * @part column-header - A single column header cell. * @part table-body - The table body. * @part row - A single stop row. * @part stop-cell - The first cell of a row, holding the stop number. * @part cell - A value cell in the table body. * @part empty-value - A cell or tile value without data, rendered as an em dash. * @part totals - The wrapper around the counter tiles. * @part total - A single counter tile. * @part total-label - The label inside a counter tile. * @part total-value - The value inside a counter tile. * @part loading - The loading message. * @part empty - The message shown when the period holds no counter data. */ export declare class LsCounters { /** The unique key that is used to identify store data. */ readonly idKey: string; /** Whether or not to show the title of the component. */ readonly hideTitle: boolean; /** Whether or not to show the line describing the period the counters cover. */ readonly hidePeriod: boolean; /** Whether or not to hide the table with a row per stop. */ readonly hideStops: boolean; /** Whether or not to hide the tiles with the installation wide counters. */ readonly hideTotals: boolean; /** Start of the period, ISO 8601. A date without a time covers the whole day. */ readonly from?: string; /** End of the period, ISO 8601. Defaults to now, or the end of today when `from` is a date. */ readonly to?: string; /** * Format of the dates in the period line when the period spans a day or more, * uses dayjs formatting. See https://day.js.org/docs/en/display/format */ readonly dateFormat: string; /** * Format of the dates in the period line when the period spans less than a * day, uses dayjs formatting. See https://day.js.org/docs/en/display/format */ readonly dateTimeFormat: string; sensorRows: SensorRowMap; hasBackDoor: boolean; isLoading: boolean; isRefreshing: boolean; /** Centralized error state for tracking component errors. */ errorState: ILiftStatusWebComponentError; private store; private isComponentMounted; private storeUnsubscribes; private containerElement?; /** Bumped per request, so a slow response cannot overwrite a newer one. */ private requestSequence; private warnedPeriodProps; private readonly scheduleLoad; handlePeriodPropChange(): void; componentWillLoad(): Promise; componentDidLoad(): void; disconnectedCallback(): void; private get locale(); private logError; private setErrorState; private updateErrorState; private applyErrorOverlay; /** * The period is resolved on every render, so the same unusable props are only * reported the first time they are seen. */ private readonly warnAboutPeriod; private resolveCustomPeriod; private resolvePeriod; /** A method, so TypeScript does not keep a stale narrowing of the field across an await. */ private isMounted; private loadData; private get activePerStopSensorIds(); private formatNumber; private formatRatio; private getPeriodLabel; /** The table columns, built once so head and body cannot drift apart. */ private getColumns; /** The counter tiles. Energy is only shown when the meter reports usage. */ private getTotals; private renderTable; private renderTotals; render(): any; }