@larva.io/webcomponents
Version:
Fentrica SmartUnits WebComponents package
98 lines (97 loc) • 2.67 kB
TypeScript
import { EventEmitter } from '../../stencil-public-runtime';
import { Color, Size } from '../../interface';
import { Button, DataIn, SipOpts } from './intercom-interface';
import { CameraOpts } from '../rtsp-h264-mjpeg/rtsp-h264-mjpeg-interface';
export declare class LarvaIntercom {
el: HTMLElement;
/**
* Component main icon
*/
icon?: string;
/**
* The color to use from your application's color palette.
* Detrouble options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`.
*/
color?: Color;
/**
* The color to use from your application's color palette for Components modal window.
*/
colorModal?: Color;
/**
* The color to use from your application's color palette for inputs
*/
colorInputs?: Color;
/**
* The color to use from your application's color palette for indication icon
*/
colorIconSmall?: Color;
/**
* Disable quck actions
*/
disableQuickActions: boolean;
/**
* Hide node titles
*/
hideTitles?: boolean;
/**
* Component superscript title
*/
supTitle?: string;
/**
* Component subtitle
*/
subTitle?: string;
/**
* Is logging for this component enabled (lar-log subcomponent loaded)
*/
log: boolean;
/**
* Try to play ring sound if ringing
* Please note that you may get DOMException: play() failed because the user didn't interact with the document first
* in webkit audio must be handled externally or user interaction policy needs to be disabled
*/
playSound: boolean;
/**
* Component main title
*/
mainTitle: string;
/**
* Node size
*/
nodeSize?: Size;
/**
* @see {@link ../readme.md} chapter "Components input and output" for further information.
*/
output: EventEmitter;
/**
* @see {@link ../readme.md} chapter "Sub-Components requests and responses" for further information.
*/
request: EventEmitter;
/**
* Use upstream proxy for cameras
*/
useUplinkProxy: boolean;
/**
* server for cameras
*/
server: string;
loading: boolean;
camera?: CameraOpts;
sip?: SipOpts;
buttons: Button[];
ring: boolean;
componentDidRender(): Promise<void>;
private node;
componentWillLoad(): void;
componentDidLoad(): void;
/**
* Larva error input
*/
error(data: any): Promise<void>;
/**
* Larva input message
*/
input(data: DataIn): Promise<void>;
private handleOutoput;
render(): any[];
}