@versatiledatakit/shared
Version:
Versatile Data Kit Shared library enables reusability of shared features like: NgRx Redux, Error Handlers, Utils, Generic Components, etc.
62 lines (61 loc) • 2.21 kB
TypeScript
import { ElementRef, OnDestroy, Renderer2 } from '@angular/core';
import { ApiErrorMessage, ErrorRecord, TaurusObject } from '../../../common';
import * as i0 from "@angular/core";
export declare class PlaceholderService extends TaurusObject implements OnDestroy {
private readonly renderer2;
/**
* @inheritDoc
*/
static readonly CLASS_NAME: string;
/**
* @inheritDoc
*/
static readonly PUBLIC_NAME: string;
private _lookupInProgress;
private _isGridParentFound;
private _finderLookupTimeoutRef;
private _headElement;
private _gridStyleElement;
private _standalonePlaceholderStyleElement;
private readonly _gridRandomAttribute;
private readonly _standalonePlaceholderRandomAttribute;
private _elementRef;
private _hideDefaultEmptyStateImageInGrid;
/**
* ** Constructor.
*/
constructor(renderer2: Renderer2);
/**
* ** Extract public name of classes from multiple error records.
*/
static extractClassesPublicNames(errorRecords: ErrorRecord[]): string;
/**
* ** Extract class public name from provided error record.
*/
static extractClassPublicName(errorRecord: ErrorRecord): string;
/**
* ** Refines elements state and their corresponding styles.
*/
refineElementsState(elementRef: ElementRef<HTMLElement>, hideDefaultEmptyStateImageInGrid: boolean): void;
/**
* ** Get API formatted error message from provided Error.
*/
extractErrorInformation(error: Error): ApiErrorMessage;
/**
* @inheritDoc
*/
ngOnDestroy(): void;
private _findPlaceholderParentGrid;
private _traverseToFindParentGrid;
private _findHeadElement;
private _appendGridPlaceholderStyle;
private _appendStandalonePlaceholderStyle;
private _addGridDataAttribute;
private _addStandalonePlaceholderDataAttribute;
private _toggleGridPlaceholderStyle;
private _toggleStandalonePlaceholderStyle;
private _removeGridPlaceholderStyle;
private _removeStandalonePlaceholderStyle;
static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<PlaceholderService>;
}