2023-03-01 10:19:01 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* OverlayPanel is a container component positioned as connected to its target.
|
|
|
|
*
|
2024-04-18 14:16:37 +00:00
|
|
|
* [Live Demo](https://primevue.org/popover)
|
2023-03-01 10:19:01 +00:00
|
|
|
*
|
|
|
|
* @module overlaypanel
|
|
|
|
*
|
|
|
|
*/
|
2024-04-18 14:16:37 +00:00
|
|
|
import 'vue';
|
|
|
|
import * as Popover from '../popover';
|
|
|
|
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
2023-08-02 14:07:22 +00:00
|
|
|
|
2023-04-24 11:44:13 +00:00
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) option method.
|
|
|
|
*/
|
2024-04-18 14:16:37 +00:00
|
|
|
export interface OverlayPanelPassThroughMethodOptions extends Popover.PopoverPassThroughMethodOptions {}
|
2023-04-24 11:44:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough(pt) options.
|
|
|
|
* @see {@link OverlayPanelProps.pt}
|
|
|
|
*/
|
2024-04-18 14:16:37 +00:00
|
|
|
export interface OverlayPanelPassThroughOptions extends Popover.PopoverPassThroughOptions {}
|
2023-04-24 11:44:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom passthrough attributes for each DOM elements
|
|
|
|
*/
|
2024-04-18 14:16:37 +00:00
|
|
|
export interface OverlayPanelPassThroughAttributes extends Popover.PopoverPassThroughAttributes {
|
2023-04-24 11:44:13 +00:00
|
|
|
[key: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines current inline state in OverlayPanel component.
|
|
|
|
*/
|
2024-04-18 14:16:37 +00:00
|
|
|
export interface OverlayPanelState extends Popover.PopoverState {}
|
2023-04-24 11:44:13 +00:00
|
|
|
|
2023-03-01 10:19:01 +00:00
|
|
|
/**
|
|
|
|
* OverlayPanel breakpoint metadata.
|
|
|
|
*/
|
2024-04-18 14:16:37 +00:00
|
|
|
export interface OverlayPanelBreakpoints extends Popover.PopoverBreakpoints {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2023-03-01 10:19:01 +00:00
|
|
|
/**
|
|
|
|
* Defines valid properties in OverlayPanel component.
|
|
|
|
*/
|
2024-04-18 14:16:37 +00:00
|
|
|
export interface OverlayPanelProps extends Popover.PopoverProps {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2023-03-01 10:19:01 +00:00
|
|
|
/**
|
|
|
|
* Defines valid slots in OverlayPanel component.
|
|
|
|
*/
|
2024-04-18 14:16:37 +00:00
|
|
|
export interface OverlayPanelSlots extends Popover.PopoverSlots {}
|
2022-09-06 12:03:37 +00:00
|
|
|
|
2023-11-15 17:00:50 +00:00
|
|
|
/**
|
|
|
|
* Defines valid emits in OverlayPanel component.
|
|
|
|
*/
|
2024-04-18 14:16:37 +00:00
|
|
|
export interface OverlayPanelEmits extends Popover.PopoverEmits {}
|
2023-11-15 17:00:50 +00:00
|
|
|
|
2023-03-01 10:19:01 +00:00
|
|
|
/**
|
2024-04-18 14:16:37 +00:00
|
|
|
* @deprecated Deprecated since v4. Use Popover component instead.
|
|
|
|
*
|
2023-03-01 10:19:01 +00:00
|
|
|
* **PrimeVue - OverlayPanel**
|
|
|
|
*
|
|
|
|
* _OverlayPanel, also known as Popover, is a container component that can overlay other components on page._
|
|
|
|
*
|
2024-04-18 14:16:37 +00:00
|
|
|
* [Live Demo](https://www.primevue.org/popover/)
|
2023-03-01 10:19:01 +00:00
|
|
|
* --- ---
|
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
|
|
|
*
|
|
|
|
* @group Component
|
|
|
|
*/
|
2023-03-01 14:48:23 +00:00
|
|
|
declare class OverlayPanel extends ClassComponent<OverlayPanelProps, OverlayPanelSlots, OverlayPanelEmits> {
|
2024-01-12 09:37:02 +00:00
|
|
|
/**
|
|
|
|
* Aligns overlay panel based on the current position of the container.
|
|
|
|
*/
|
|
|
|
alignOverlay(): void;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Toggles the visibility of the overlay.
|
|
|
|
* @param {Event} event - Browser event.
|
2022-12-08 11:04:25 +00:00
|
|
|
* @param {*} [target] - Optional target if event.currentTarget should not be used.
|
2022-09-06 12:03:37 +00:00
|
|
|
*
|
|
|
|
* @memberof OverlayPanel
|
|
|
|
*/
|
2023-03-01 10:19:01 +00:00
|
|
|
toggle(event: Event, target?: any): void;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Shows the overlay.
|
|
|
|
* @param {Event} event - Browser event.
|
|
|
|
* @param {*} [target] - Optional target if event.currentTarget should not be used.
|
|
|
|
*
|
|
|
|
* @memberof OverlayPanel
|
|
|
|
*/
|
2023-03-01 10:19:01 +00:00
|
|
|
show(event: Event, target?: any): void;
|
2022-09-06 12:03:37 +00:00
|
|
|
/**
|
|
|
|
* Hides the overlay.
|
|
|
|
*
|
|
|
|
* @memberof OverlayPanel
|
|
|
|
*/
|
2023-03-01 10:19:01 +00:00
|
|
|
hide(): void;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
|
2024-03-14 22:58:11 +00:00
|
|
|
declare module 'vue' {
|
|
|
|
export interface GlobalComponents {
|
2022-09-14 11:26:01 +00:00
|
|
|
OverlayPanel: GlobalComponentConstructor<OverlayPanel>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default OverlayPanel;
|