UNPKG

@spartacus/storefront

Version:

Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.

23 lines (22 loc) 1.48 kB
import { WindowRef } from '@spartacus/core'; import { PopoverPosition, PopoverPositionArray } from '../../components/popover/popover.model'; import * as i0 from "@angular/core"; export declare class PositioningService { protected winRef: WindowRef; constructor(winRef: WindowRef); protected get allowedPlacements(): Array<PopoverPositionArray>; protected get placementSeparator(): RegExp; protected get window(): Window | undefined; protected get document(): Document; protected getAllStyles(element: HTMLElement): CSSStyleDeclaration | undefined; protected getPositionStyleProperty(element: HTMLElement): string | undefined; protected isStaticPositioned(element: HTMLElement): boolean; protected offsetParent(element: HTMLElement): HTMLElement; protected position(element: HTMLElement, round?: boolean): ClientRect; protected offset(element: HTMLElement, round?: boolean): ClientRect; protected _positionElements(hostElement: HTMLElement, targetElement: HTMLElement, placement: string, appendToBody?: boolean): boolean; positionElements(hostElement: HTMLElement, targetElement: HTMLElement, placement: string | PopoverPosition | PopoverPositionArray, appendToBody?: boolean): PopoverPosition; getPositioningClass(position?: PopoverPosition, autoPositioning?: boolean): string; static ɵfac: i0.ɵɵFactoryDeclaration<PositioningService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<PositioningService>; }