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';
|
2024-05-16 10:50:43 +00:00
|
|
|
import { DefineComponent, EmitFn, 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-05-16 14:05:43 +00:00
|
|
|
export interface OverlayPanelEmitsOptions {}
|
2023-11-15 17:00:50 +00:00
|
|
|
|
2024-05-16 10:50:43 +00:00
|
|
|
export declare type OverlayPanelEmits = EmitFn<OverlayPanelEmitsOptions> & Popover.PopoverEmits;
|
|
|
|
|
|
|
|
export interface OverlayPanelMethods {
|
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-05-16 10:50:43 +00:00
|
|
|
/**
|
2024-06-06 08:18:48 +00:00
|
|
|
* @deprecated since v4. Use Popover component instead.
|
2024-05-16 10:50:43 +00:00
|
|
|
*
|
|
|
|
* **PrimeVue - OverlayPanel**
|
|
|
|
*
|
|
|
|
* _OverlayPanel, also known as Popover, is a container component that can overlay other components on page._
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/popover/)
|
|
|
|
* --- ---
|
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
|
|
|
|
*
|
|
|
|
* @group Component
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
declare const OverlayPanel: DefineComponent<OverlayPanelProps, OverlayPanelSlots, OverlayPanelEmits, OverlayPanelMethods>;
|
|
|
|
|
2024-03-14 22:58:11 +00:00
|
|
|
declare module 'vue' {
|
|
|
|
export interface GlobalComponents {
|
2024-05-16 10:50:43 +00:00
|
|
|
OverlayPanel: GlobalComponentConstructor<OverlayPanelProps, OverlayPanelSlots, OverlayPanelEmits, OverlayPanelMethods>;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default OverlayPanel;
|