UNPKG

reblendjs

Version:

ReblendJs uses Reactjs pradigm to build UI components, with isolated state for each components.

37 lines (36 loc) 1.95 kB
import { IAny } from '../interface/IAny'; export declare function objectEquals(obj1: { [x: string]: any; } | null, obj2: { [x: string]: any; } | null): boolean; export declare function getDefinedValuesFrom(object: { [key: string]: any; }): { [key: string]: any; }; export declare function escapeRegExp(value: string): string; export declare function sumField(objArr: { [key: string]: any; }[], ...field: string[]): number; export declare function getObjectField(obj: { [key: string]: any; }, fields: string[]): any; export declare const shallowRemoveDuplicates: (arr: any[]) => any[]; export declare const snakeCase: (camelCase: string) => string; export declare const appendChildren: (parent: HTMLElement | null, ...children: HTMLElement[]) => HTMLElement; export declare const removeLastChild: (parent: HTMLElement | null) => ChildNode; export declare const cssString: (styleObject: IAny) => string; export declare const cssObjectFromString: (styleString: string) => CSSStyleDeclaration; export declare const spreadTo: (parentObj: IAny, objToSpread: IAny) => IAny; export declare function registerElement(name: string, element: typeof HTMLElement): any; export declare function capitalize(str: string): string; export declare const rand: (min?: number, max?: number) => number; export declare const isCallable: (obj: any) => boolean; export declare const replaceOrAddItemToList: <T extends Array<any> | Set<any>>(list: T, oldItem: any, newItem: any) => T; export declare const getConfig: () => import("../internal/ConfigUtil").IReblendAppConfig; export declare const donotDeffer: () => boolean | undefined; export declare const REBLEND_COMPONENT = "reblendcomponent"; export declare const REBLEND_WRAPPER_FOR_REACT_COMPONENT = "reblendwrapperforreactcomponent"; export declare const REBLEND_CHILDREN_WRAPPER_FOR_REACT_COMPONENT = "reblendchildrenwrapperforreactcomponent"; export declare const CUSTOM_TAGNAME = "customTagName";