2021-10-01 08:10:01 +00:00
|
|
|
export declare class ConnectedOverlayScrollHandler {
|
|
|
|
constructor(element: any, listener?: () => void);
|
|
|
|
bindScrollListener(): void;
|
|
|
|
unbindScrollListener(): void;
|
|
|
|
destroy(): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class DomHandler {
|
|
|
|
static innerWidth(el: HTMLElement): number;
|
|
|
|
static width(el: HTMLElement): number;
|
|
|
|
static getWindowScrollTop(): number;
|
|
|
|
static getWindowScrollLeft(): number;
|
|
|
|
static getOuterWidth(el: HTMLElement, margin: boolean): number;
|
|
|
|
static getOuterHeight(el: HTMLElement, margin: boolean): number;
|
|
|
|
static getClientHeight(el: HTMLElement, margin: boolean): number;
|
2022-09-14 11:26:01 +00:00
|
|
|
static getViewport(): { width: number; height: number };
|
|
|
|
static getOffset(el: HTMLElement): { top: any; left: any };
|
2021-10-01 08:10:01 +00:00
|
|
|
static index(el: HTMLElement): number;
|
2023-10-26 00:54:11 +00:00
|
|
|
static addMultipleClasses(el: HTMLElement, classNames: string | string[]): void;
|
|
|
|
static addRemoveClasses(el: HTMLElement, classNames: string | string[]): void;
|
2021-10-01 08:10:01 +00:00
|
|
|
static addClass(el: HTMLElement, className: string): void;
|
|
|
|
static removeClass(el: HTMLElement, className: string): void;
|
|
|
|
static hasClass(el: HTMLElement, className: string): boolean;
|
2023-06-26 12:11:25 +00:00
|
|
|
static addStyles(el: HTMLElement, styles: object): void;
|
2021-10-01 08:10:01 +00:00
|
|
|
static find(el: HTMLElement, selector: string): any[];
|
|
|
|
static findSingle(el: HTMLElement, selector: string): any;
|
2023-07-03 22:21:33 +00:00
|
|
|
static createElement(type: string, attributes: object, ...children: any): HTMLElement;
|
2023-08-11 01:34:02 +00:00
|
|
|
static setAttribute(el: HTMLElement, attribute: string, value: any): void;
|
2023-07-03 22:21:33 +00:00
|
|
|
static setAttributes(el: HTMLElement, attributes: object): void;
|
2023-06-26 12:11:25 +00:00
|
|
|
static getAttribute(el: HTMLElement, name: string): any;
|
|
|
|
static isAttributeEquals(el: HTMLElement, name: string, value: any): boolean;
|
|
|
|
static isAttributeNotEquals(el: HTMLElement, name: string, value: any): boolean;
|
2021-10-01 08:10:01 +00:00
|
|
|
static getHeight(el: HTMLElement): number;
|
|
|
|
static getWidth(el: HTMLElement): number;
|
|
|
|
static absolutePosition(el: HTMLElement, target: HTMLElement): void;
|
|
|
|
static relativePosition(el: HTMLElement, target: HTMLElement): void;
|
|
|
|
static getParents(el: HTMLElement, parents?: any[]): any[];
|
|
|
|
static getScrollableParents(el: HTMLElement): any[];
|
|
|
|
static getHiddenElementOuterHeight(el: HTMLElement): number;
|
|
|
|
static getHiddenElementOuterWidth(el: HTMLElement): number;
|
2022-09-14 11:26:01 +00:00
|
|
|
static getHiddenElementDimensions(el: HTMLElement): { width?: number; height?: number };
|
2021-10-01 08:10:01 +00:00
|
|
|
static fadeIn(el: HTMLElement, duration: number): void;
|
|
|
|
static fadeOut(el: HTMLElement, duration: number): void;
|
|
|
|
static getUserAgent(): string;
|
|
|
|
static appendChild(el: HTMLElement, target: HTMLElement): void;
|
|
|
|
static scrollInView(container: HTMLElement, item: HTMLElement): void;
|
|
|
|
static clearSelection(): void;
|
2022-12-08 11:04:25 +00:00
|
|
|
static getSelection(): string | null;
|
2021-10-01 08:10:01 +00:00
|
|
|
static calculateScrollbarWidth(): number;
|
2023-10-10 22:36:20 +00:00
|
|
|
static calculateBodyScrollbarWidth(): number;
|
2021-10-01 08:10:01 +00:00
|
|
|
static getBrowser(): object;
|
2022-09-14 11:26:01 +00:00
|
|
|
static resolveUserAgent(): { browser: string; version: string };
|
2021-10-01 08:10:01 +00:00
|
|
|
static isVisible(el: HTMLElement): boolean;
|
|
|
|
static invokeElementMethod(el: HTMLElement, methodName: string, args: any): void;
|
2022-09-14 11:26:01 +00:00
|
|
|
static isExist(el: HTMLElement): boolean;
|
2022-06-01 06:36:32 +00:00
|
|
|
static isClient(): boolean;
|
2022-09-14 11:26:01 +00:00
|
|
|
static focus(el: HTMLElement, options?: FocusOptions): void;
|
2022-07-29 00:55:23 +00:00
|
|
|
static getFocusableElements(el: HTMLElement, selector?: string): any[];
|
|
|
|
static getFirstFocusableElement(el: HTMLElement, selector?: string): any;
|
2022-12-08 11:04:25 +00:00
|
|
|
static getLastFocusableElement(el: HTMLElement, selector?: string): any;
|
2021-10-01 08:10:01 +00:00
|
|
|
static isClickable(el: HTMLElement): boolean;
|
|
|
|
static applyStyle(el: HTMLElement, style: any): void;
|
|
|
|
static isIOS(): boolean;
|
|
|
|
static isAndroid(): boolean;
|
|
|
|
static isTouchDevice(): boolean;
|
2023-08-04 10:06:26 +00:00
|
|
|
static hasCSSAnimation(el: HTMLElement): boolean;
|
|
|
|
static hasCSSTransition(el: HTMLElement): boolean;
|
2021-12-06 07:18:55 +00:00
|
|
|
static exportCSV(csv: any, filename: string): void;
|
2023-10-10 22:36:20 +00:00
|
|
|
static blockBodyScroll(className?: string): void;
|
|
|
|
static unblockBodyScroll(className?: string): void;
|
2021-10-01 08:10:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare class ObjectUtils {
|
|
|
|
static equals(obj1: any, obj2: any, field: string): boolean;
|
|
|
|
static deepEquals(a: any, b: any): boolean;
|
|
|
|
static resolveFieldData(data: any, field: string): any;
|
|
|
|
static filter(value: any, fields: any, filterValue: any): any;
|
|
|
|
static reorderArray(value: any, from: number, to: number): void;
|
|
|
|
static findIndexInList(value: any, list: any[], dataKey?: string): number;
|
|
|
|
static contains(value: any, list: any[]): boolean;
|
|
|
|
static insertIntoOrderedArray(item: any, index: number, arr: any[], sourceArr: any[]): void;
|
|
|
|
static removeAccents(str: any): string;
|
2023-07-10 09:34:48 +00:00
|
|
|
static toFlatCase(str: string): string;
|
|
|
|
static toCapitalCase(str: string): string;
|
2023-07-13 21:36:18 +00:00
|
|
|
static toKebabCase(str: string): string;
|
2021-12-05 17:21:16 +00:00
|
|
|
static isEmpty(value: any): boolean;
|
|
|
|
static isNotEmpty(value: any): boolean;
|
2023-06-26 12:13:09 +00:00
|
|
|
static isFunction(value: any): boolean;
|
2023-07-13 21:36:18 +00:00
|
|
|
static isObject(value: any, empty?: boolean): boolean;
|
2023-06-26 12:13:09 +00:00
|
|
|
static isDate(value: any): boolean;
|
2023-07-13 21:36:18 +00:00
|
|
|
static isArray(value: any, empty?: boolean): boolean;
|
|
|
|
static isString(value: any, empty?: boolean): boolean;
|
2022-07-29 00:55:23 +00:00
|
|
|
static isPrintableCharacter(char: string): boolean;
|
2022-12-08 11:04:25 +00:00
|
|
|
static findLast(value: any[], callback: () => any): any;
|
|
|
|
static findLastIndex(value: any[], callback: () => any): number;
|
2023-10-06 02:00:36 +00:00
|
|
|
static sort(value1: any, value2: any, order: number, comparator: (a: any, b: any) => any, nullSortOrder: number): number;
|
|
|
|
static compare(value1: any, value2: any, comparator: (a: any, b: any) => any, order: number): number;
|
2023-08-10 22:44:47 +00:00
|
|
|
static nestedKeys(obj: object, parentKey?: string): string[];
|
2021-10-01 08:10:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export declare namespace ZIndexUtils {
|
|
|
|
export function get(el?: HTMLElement): number;
|
|
|
|
export function set(key: string, el: HTMLElement, baseZIndex?: number): void;
|
|
|
|
export function clear(el: HTMLElement): void;
|
|
|
|
export function getCurrent(): number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare function UniqueComponentId(prefix?: string): string;
|
|
|
|
|
|
|
|
export declare function EventBus(): {
|
|
|
|
on(type: string, fn: any): void;
|
|
|
|
emit(type: string, evt?: any): void;
|
|
|
|
off(type: string, fn: any): void;
|
2022-09-14 11:26:01 +00:00
|
|
|
};
|