import { PositioningShorthandValues } from "@horizon-msft/web-components"; import { FASTElement } from "@microsoft/fast-element"; import { AnchorTarget } from "@microsoft/fast-foundation"; /** * # Citation * * Citation gives context to references. It's an actionable (clickable) element that can reveal a popover with information pertaining to the reference. * * ```html * * ${x => x.index} * * ``` */ export declare class Citation extends FASTElement { constructor(); /** * ## index * * Index to display in ui for citation number */ index?: number; /** * ## indexReference * * a reference to the slotted index element */ indexReference?: Array; indexReferenceChanged(): void; /** * ## size * * Controls the size of the popover, popover padding, and size of beak. */ size?: "small" | "medium" | "large"; /** * ## href * * For the link to the citation reference */ href?: string; /** * ## popoverPlacement * * Sets the location of the popover when user hovers over citation */ popoverPosition: PositioningShorthandValues; /** * # popoverContent * * The content which is rendered inside of the popover */ popoverContent: HTMLElement[]; /** * # popoverContentChanged * * Sets hasPopover to true when there is content. When there is no popover content the citation should not allow popover to open. */ popoverContentChanged(): void; /** * # hasPopover * * Controls whether the popover is openable/showable */ hasPopover: boolean; /** * # show * * shows popover when set to true */ show?: boolean; target: AnchorTarget; popoverReference: any | undefined; popoverReferenceChanged(): void; private mouseInPopover; /** * # handleHoverEnter * * handler for popover showing * @param event */ handleHoverEnter(): void; /** * # handleHoverLeave * * handler for popover hiding * @param event */ handleHoverLeave: () => void; /** * # handleKeyboardEvents */ handleKeyEvents(event: KeyboardEvent): void; /** * # handlePopoverEnter */ handlePopoverEnter: () => void; /** * # handlePopoverLeave */ handlePopoverLeave: () => void; /** * # addMouseOverEventListeners */ addMouseOverEventListeners: () => void; /** * # removeMouseOverEventListeners */ removeMouseOverEventListeners(): void; addKeyboardEventListeners(): void; removeKeyboardEventListeners(): void; connectedCallback(): void; disconnectedCallback(): void; } //# sourceMappingURL=citation.d.ts.map