simplify-angular
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.0.0.
109 lines (108 loc) • 5.58 kB
TypeScript
import { ApplicationRef, ElementRef, Injector, Renderer2, RendererFactory2, Type } from '@angular/core';
import { DynamicComponentService } from './dynamic-component.service';
import { ComponentsRegisterService } from './components-register.service';
import { DataDictionaryService } from './data-dictionary.service';
import { SimpleAlertService } from './simple-alert.service';
import { ViewportService } from './viewport.service';
import { SimpleActivityDetectionService } from './simple-activity-detection.service';
import { SimpleStorage } from '../utilities/simple-storage';
import { SimpleExtensionMethods } from '../utilities/simple-extension-methods';
import { SimpleLogger } from '../utilities/simple-logger';
import { DeviceDetectorService } from 'ngx-device-detector';
import * as i0 from "@angular/core";
export declare class SimplifyService {
platformId: Object;
appRef: ApplicationRef;
componentsRegisterService: ComponentsRegisterService;
dataDictionaryService: DataDictionaryService;
dynamicComponentService: DynamicComponentService;
injector: Injector;
rendererFactory: RendererFactory2;
simpleActivityDetectionService: SimpleActivityDetectionService;
simpleAlertService: SimpleAlertService;
viewportService: ViewportService;
deviceDetectorService: DeviceDetectorService;
renderer: Renderer2;
components: {
[name: string]: Type<any>;
};
configurations: any;
globals: any;
services: any;
_functions: any;
intersectionObserver: IntersectionObserver;
simpleStorage: SimpleStorage;
simpleExtensionMethods: SimpleExtensionMethods;
simpleLogger: SimpleLogger;
constructor(platformId: Object, appRef: ApplicationRef, componentsRegisterService: ComponentsRegisterService, dataDictionaryService: DataDictionaryService, dynamicComponentService: DynamicComponentService, injector: Injector, rendererFactory: RendererFactory2, simpleActivityDetectionService: SimpleActivityDetectionService, simpleAlertService: SimpleAlertService, viewportService: ViewportService, deviceDetectorService: DeviceDetectorService);
addComponentToElement(container: Element, component: any, data?: any): any;
applyButtonProcessing(element: any): void;
checkElementDataValue(element: any, value: any): any;
checkObjectValueSame(objectA: any, objectB: any): boolean;
commentElementTag(elementRef: ElementRef): void;
convertJsonStringToArray(jsonString: string): any[];
convertArrayToObject(sourceArray: any, keyField: any, params?: any): any;
convertObjectToRequestString(requestData: any): any;
copyObjectValues(source: any, destination: any): any;
disableElementControls(container: Element): void;
debug(message: any): void;
downloadFile(fileData: Blob | number[], fileName: string): void;
elementIndexInParent(element: any): number;
elementIsVisible(element: any): boolean;
elementPrepend(containerElement: any, newElement: any): void;
elementMoveToIndex(element: HTMLElement, newIndex: number): void;
elementReplace(elementToReplace: any, newElement: any): void;
elementSwap(elementA: HTMLElement, elementB: HTMLElement): void;
elementSwapByIndex(container: HTMLElement, indexA: number, indexB: number): void;
enableElementControls(container: Element): void;
escapeRegExp(string: string): string;
executeEventFunctions(event: string, functions: any, params?: any): void;
executeFunctions(functions: any, params?: any): void;
formatCurrencySymbol(currency: any): any;
formatDateTime(date: any, format: any, params?: any): any;
formatElement(element: any): void;
formatElementData(element: any): void;
formatNumber(number: any, format: any, params?: any): any;
generateId(): string;
generateRandomString(length?: number): string;
getClassNameFromInstance(instance: any): any;
getComponentInstance(identifier: any): any;
getComponentInstanceFromElement(element: Element): any;
getDeviceDetails(): string;
getDeviceId(): string;
getElementContentType(element: Element): string;
getElementData(mainElement: Element, params?: any): any;
getElementDataValue(element: any, params?: any): any;
getElementType(element: Element): string;
getExceptionDetails(ex: any): void;
getExtensionFromFileName(fileName: string): void;
getFileExtensionFromPath(filePath: string): string | undefined;
getFormattedData(element: any): any;
getMimeTypeFromFileName(fileName: string): any;
isBrowser(): boolean;
isDesktop(): boolean;
isJson(str: any): boolean;
isMobile(): boolean;
isTablet(): boolean;
on(event: any, callback: any): {
functions: any;
id: string;
};
printImage(src: string): void;
registerComponentInstance(instance: any, elementRef: ElementRef): string;
registerEventFunction(functions: any, event: string, callback: any): {
functions: any;
id: string;
};
registerService(service: any, serviceName?: string): void;
removeButtonProcessing(element: any): void;
setDeviceId(deviceId: string): void;
setElementData(mainElement: any, dataObject: any, params?: any): void;
setElementDataValue(element: any, data: any): void;
setElementDefaults(mainElement: any): void;
validPrimaryKey(value: any): boolean;
validValue(value: any): boolean;
unwrapElement(element: HTMLElement): void;
static ɵfac: i0.ɵɵFactoryDeclaration<SimplifyService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<SimplifyService>;
}