ednl-liftstatus-web-components
Version:
The EDNL LiftStatus web components
57 lines (56 loc) • 1.45 kB
TypeScript
import "dayjs/locale/nl-be";
import { IStatusMessage } from "../../utils/types";
export declare class LsStatusMessages {
/**
* Whether or not to show the title of the component.
*/
readonly showTitle = true;
/**
* Allows user to filter messages based on severity
*/
readonly severityOptions = ",impact,informational,non-impact";
/**
* Used to store severity options after parsing
*/
private severityFilter;
/**
* The data received from the subscription is placed in this state.
* The component is automatically rerendered after the state changes.
*/
statusMessages: IStatusMessage[];
/**
* The timestamp of when the sensor last changed.
*/
lastChange: string;
/**
* The timer is used to update the relative timestamps.
*/
time: number;
/**
* The data from the socket server. This data is saved so that the relative timestamp can be updated.
*/
private sensorData;
/**
* The unique key that is used to identify store data.
*/
readonly idKey: string;
private store;
/**
* The sensor ID associated with the status messages.
*/
private readonly sensorId;
/**
* The title of the component.
*/
private componentTitle;
/**
* Keeps track of the setInterval ID.
*/
private timer;
private updateData;
private isSeverity;
connectedCallback(): void;
componentWillLoad(): Promise<void>;
render(): any;
disconnectedCallback(): void;
}