ngx-bootstrap
Version:
Angular Bootstrap
91 lines (90 loc) • 2.57 kB
TypeScript
export interface Offsets {
width: number;
height: number;
bottom?: number;
left?: number;
right?: number;
top?: number;
marginTop?: number;
marginLeft?: number;
}
export interface Data {
options: Options;
instance: {
target: HTMLElement;
host: HTMLElement;
arrow?: HTMLElement;
};
offsets: {
target: Offsets;
host: Offsets;
arrow?: Record<string, string | number | HTMLElement>;
};
positionFixed: boolean;
placement: string;
placementAuto: boolean;
}
export interface Options {
placement?: string;
modifiers: {
flip?: {
enabled: boolean;
};
preventOverflow?: {
enabled: boolean;
boundariesElement?: string;
};
};
allowedPositions?: string[];
}
export declare enum MapPlacementInToRL {
top = "top",
bottom = "bottom",
left = "left",
right = "right",
auto = "auto",
end = "right",
start = "left",
'top left' = "top left",
'top right' = "top right",
'right top' = "right top",
'right bottom' = "right bottom",
'bottom right' = "bottom right",
'bottom left' = "bottom left",
'left bottom' = "left bottom",
'left top' = "left top",
'top start' = "top left",
'top end' = "top right",
'end top' = "right top",
'end bottom' = "right bottom",
'bottom end' = "bottom right",
'bottom start' = "bottom left",
'start bottom' = "start bottom",
'start top' = "left top"
}
export declare enum PlacementForBs5 {
top = "top",
bottom = "bottom",
left = "start",
right = "end",
auto = "auto",
end = "end",
start = "start",
'top left' = "top start",
'top right' = "top end",
'right top' = "end top",
'right bottom' = "end bottom",
'bottom right' = "bottom end",
'bottom left' = "bottom start",
'left bottom' = "start bottom",
'left top' = "start top",
'top start' = "top start",
'top end' = "top end",
'end top' = "end top",
'end bottom' = "end bottom",
'bottom end' = "bottom end",
'bottom start' = "bottom start",
'start bottom' = "start bottom",
'start top' = "start top"
}
export type AvailbleBSPositions = 'top' | 'bottom' | 'left' | 'right' | 'auto' | 'top left' | 'top right' | 'right top' | 'right bottom' | 'bottom right' | 'bottom left' | 'left bottom' | 'left top' | 'start' | 'end' | 'top start' | 'top end' | 'end top' | 'end bottom' | 'bottom end' | 'bottom start' | 'start bottom' | 'start top';