UNPKG

@larva.io/webcomponents

Version:

Fentrica SmartUnits WebComponents package

15 lines (14 loc) 819 B
import { ComponentRef } from '../interface'; export declare function hasShadowDom(el: HTMLElement): boolean; export declare function now(ev: UIEvent): number; export declare const clamp: (min: number, n: number, max: number) => number; export declare function renderHiddenInput(container: HTMLElement, name: string, value: string | undefined | null, disabled: boolean): void; export declare function isEmpty(obj: any): boolean; export declare function pick(object: any, keys: any): any; export declare function camelCasetoDashed(str: string): string; export declare function attachComponent(container: Element, component: ComponentRef, componentProps?: { [key: string]: any; }): Promise<HTMLElement>; export declare function assignComponentProps(el: HTMLElement, componentProps: { [key: string]: any; }): void;