2023-03-02 11:35:08 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Focus Trap keeps focus within a certain DOM element while tabbing.
|
|
|
|
*
|
|
|
|
* - [Live Demo](https://primevue.org/focustrap)
|
2023-03-02 14:25:05 +00:00
|
|
|
*
|
|
|
|
* @module focustrap
|
2023-03-02 11:35:08 +00:00
|
|
|
*/
|
|
|
|
import { DirectiveBinding, ObjectDirective } from 'vue';
|
2022-12-08 11:04:25 +00:00
|
|
|
|
2023-03-02 11:35:08 +00:00
|
|
|
/**
|
|
|
|
* Defines options of FocusTrap.
|
|
|
|
*/
|
|
|
|
export interface FocusTrapOptions {
|
|
|
|
/**
|
|
|
|
* When present, it specifies that the directive should be disabled.
|
|
|
|
* @defaultValue false
|
|
|
|
*/
|
|
|
|
disabled?: boolean | undefined;
|
|
|
|
}
|
2022-12-08 11:04:25 +00:00
|
|
|
|
2023-03-02 11:35:08 +00:00
|
|
|
/**
|
|
|
|
* Binding of FocusTrap directive.
|
|
|
|
*/
|
|
|
|
export interface FocusTrapDirectiveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
|
|
|
|
/**
|
|
|
|
* Value of the FocusTrap.
|
|
|
|
*/
|
|
|
|
value?: FocusTrapOptions | undefined;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* **PrimeVue - FocusTrap**
|
|
|
|
*
|
|
|
|
* _FocusTrap directive provides advisory information for a component._
|
|
|
|
*
|
|
|
|
* [Live Demo](https://www.primevue.org/focustrap/)
|
|
|
|
* --- ---
|
|
|
|
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo.svg)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
declare const FocusTrap: ObjectDirective;
|
|
|
|
|
|
|
|
export default FocusTrap;
|