simplify-angular
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.
64 lines (63 loc) • 3.42 kB
TypeScript
import { Type } from '@angular/core';
import { SimpleLogger } from './simple-logger';
export declare class Simplify {
static logger: SimpleLogger;
static uniqueIds: any;
static decimalPlaces: number;
static characters: string;
static checkElementDataValue(element: any, value: any): any;
static checkObjectValueSame(objectA: any, objectB: any): boolean;
static convertJsonStringToArray(jsonString: string): any[];
static convertArrayToObject(sourceArray: any, keyField: any, params?: any): any;
static convertObjectToRequestString(requestData: any): any;
static copyObjectValues(source: any, destination: any): any;
static disableElementControls(container: Element): void;
static debug(message: any): void;
static downloadFile(fileData: Blob | number[] | File, fileName?: string): Promise<void>;
static elementIndexInParent(element: any): number;
static elementIsVisible(element: any): boolean;
static elementPrepend(containerElement: any, newElement: any): void;
static elementMoveToIndex(element: HTMLElement, newIndex: number): void;
static elementReplace(elementToReplace: any, newElement: any): void;
static elementSwap(elementA: HTMLElement, elementB: HTMLElement): void;
static elementSwapByIndex(container: HTMLElement, indexA: number, indexB: number): void;
static enableElementControls(container: Element): void;
static escapeRegExp(string: string): string;
static executeEventFunctions(event: string, functions: any, params?: any): void;
static executeFunctions(functions: any, params?: any): void;
static formatCurrencySymbol(currency: any): any;
static formatDateTime(date: any, format: any, params?: any): any;
static formatElement(element: any): void;
static formatElementData(element: any): void;
static formatNumber(number: any, format: any, params?: any): any;
static generateGuid(): string;
static generateId(): string;
static generateRandomString(length?: number): string;
static getClassNameFromInstance(instance: any): any;
static getClassNameFromType(type: Type<any>): string;
static getElementContentType(element: Element): string;
static getElementData(mainElement: Element, params?: any): any;
static getElementDataValue(element: any, params?: any): any;
static getElementType(element: Element): string;
static getExceptionDetails(ex: any): void;
static getExtensionFromFileName(fileName: string): string | undefined;
static getFileExtensionFromPath(filePath: string): string | undefined;
static getFormattedData(element: any): any;
static getMimeTypeFromFileName(fileName: string): any;
static isJson(str: any): boolean;
static isMobileView(): boolean;
static log(message: any): void;
static openUrlInNewTab(url: string): void;
static printImage(src: string): void;
static registerEventFunction(functions: any, event: string, callback: any): {
functions: any;
id: string;
};
static removeButtonProcessing(element: any): void;
static setElementDataValue(element: any, data: any): void;
static setElementDefaults(mainElement: any): void;
static setElementData(mainElement: any, dataObject: any, params?: any): void;
static validPrimaryKey(value: any): boolean;
static validValue(value: any): boolean;
static unwrapElement(element: HTMLElement): void;
}