1 | export interface Offsets {
|
2 | width: number;
|
3 | height: number;
|
4 | bottom?: number;
|
5 | left?: number;
|
6 | right?: number;
|
7 | top?: number;
|
8 | marginTop?: number;
|
9 | marginLeft?: number;
|
10 | }
|
11 | export interface Data {
|
12 | options: Options;
|
13 | instance: {
|
14 | target: HTMLElement;
|
15 | host: HTMLElement;
|
16 | arrow?: HTMLElement;
|
17 | };
|
18 | offsets: {
|
19 | target: Offsets;
|
20 | host: Offsets;
|
21 | arrow?: Record<string, string | number | HTMLElement>;
|
22 | };
|
23 | positionFixed: boolean;
|
24 | placement: string;
|
25 | placementAuto: boolean;
|
26 | }
|
27 | export interface Options {
|
28 | placement?: string;
|
29 | modifiers: {
|
30 | flip?: {
|
31 | enabled: boolean;
|
32 | };
|
33 | preventOverflow?: {
|
34 | enabled: boolean;
|
35 | boundariesElement?: string;
|
36 | };
|
37 | };
|
38 | allowedPositions?: string[];
|
39 | }
|
40 | export declare enum MapPlacementInToRL {
|
41 | top = "top",
|
42 | bottom = "bottom",
|
43 | left = "left",
|
44 | right = "right",
|
45 | auto = "auto",
|
46 | end = "right",
|
47 | start = "left",
|
48 | 'top left' = "top left",
|
49 | 'top right' = "top right",
|
50 | 'right top' = "right top",
|
51 | 'right bottom' = "right bottom",
|
52 | 'bottom right' = "bottom right",
|
53 | 'bottom left' = "bottom left",
|
54 | 'left bottom' = "left bottom",
|
55 | 'left top' = "left top",
|
56 | 'top start' = "top left",
|
57 | 'top end' = "top right",
|
58 | 'end top' = "right top",
|
59 | 'end bottom' = "right bottom",
|
60 | 'bottom end' = "bottom right",
|
61 | 'bottom start' = "bottom left",
|
62 | 'start bottom' = "start bottom",
|
63 | 'start top' = "left top"
|
64 | }
|
65 | export declare enum PlacementForBs5 {
|
66 | top = "top",
|
67 | bottom = "bottom",
|
68 | left = "start",
|
69 | right = "end",
|
70 | auto = "auto",
|
71 | end = "end",
|
72 | start = "start",
|
73 | 'top left' = "top start",
|
74 | 'top right' = "top end",
|
75 | 'right top' = "end top",
|
76 | 'right bottom' = "end bottom",
|
77 | 'bottom right' = "bottom end",
|
78 | 'bottom left' = "bottom start",
|
79 | 'left bottom' = "start bottom",
|
80 | 'left top' = "start top",
|
81 | 'top start' = "top start",
|
82 | 'top end' = "top end",
|
83 | 'end top' = "end top",
|
84 | 'end bottom' = "end bottom",
|
85 | 'bottom end' = "bottom end",
|
86 | 'bottom start' = "bottom start",
|
87 | 'start bottom' = "start bottom",
|
88 | 'start top' = "start top"
|
89 | }
|
90 | export declare 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';
|