From 82883bcfc1cebc5ad0168f2bb861a149cd6478b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 2 Mar 2023 14:35:08 +0300 Subject: [PATCH] FocusTrap .d.ts updated --- components/focustrap/FocusTrap.d.ts | 43 +++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/components/focustrap/FocusTrap.d.ts b/components/focustrap/FocusTrap.d.ts index 3a7786254..d779386c2 100644 --- a/components/focustrap/FocusTrap.d.ts +++ b/components/focustrap/FocusTrap.d.ts @@ -1,5 +1,42 @@ -import { ObjectDirective } from 'vue'; +/** + * + * Focus Trap keeps focus within a certain DOM element while tabbing. + * + * - [Live Demo](https://primevue.org/focustrap) + */ +import { DirectiveBinding, ObjectDirective } from 'vue'; -declare const Ripple: ObjectDirective; +/** + * Defines options of FocusTrap. + */ +export interface FocusTrapOptions { + /** + * When present, it specifies that the directive should be disabled. + * @defaultValue false + */ + disabled?: boolean | undefined; +} -export default Ripple; +/** + * Binding of FocusTrap directive. + */ +export interface FocusTrapDirectiveBinding extends Omit { + /** + * 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;