Update d.ts files

This commit is contained in:
mertsincan 2023-07-06 12:09:01 +01:00
parent a4529e5be0
commit e9a561a7d1
98 changed files with 638 additions and 322 deletions

View file

@ -7,6 +7,9 @@
* @module focustrap
*/
import { DirectiveBinding, ObjectDirective } from 'vue';
import { DirectiveHooks } from '../basedirective';
export declare type FocusTrapDirectivePassThroughOptionType = FocusTrapDirectivePassThroughAttributes | null | undefined;
/**
* Defines options of FocusTrap.
@ -36,83 +39,28 @@ export interface FocusTrapOptions {
export interface FocusTrapDirectivePassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
* @see {@link FocusTrapDirectivePassThroughDirectiveOptions}
*/
root?: FocusTrapDirectivePassThroughDirectiveOptions;
root?: FocusTrapDirectivePassThroughOptionType;
/**
* Uses to pass attributes to the first focusable element's DOM element.
* @see {@link FocusTrapDirectivePassThroughDirectiveOptions}
*/
firstFocusableElement?: FocusTrapDirectivePassThroughDirectiveOptions;
firstFocusableElement?: FocusTrapDirectivePassThroughOptionType;
/**
* Uses to pass attributes to the last focusable element's DOM element.
* @see {@link FocusTrapDirectivePassThroughDirectiveOptions}
*/
lastFocusableElement?: FocusTrapDirectivePassThroughDirectiveOptions;
lastFocusableElement?: FocusTrapDirectivePassThroughOptionType;
/**
* Uses to manage all lifecycle hooks
* @see {@link BaseDirective.DirectiveHooks}
*/
hooks?: DirectiveHooks;
}
/**
* Custom passthrough(pt) directive options.
* Custom passthrough attributes for each DOM elements
*/
export interface FocusTrapDirectivePassThroughDirectiveOptions {
/**
* Uses to pass attributes to the life cycle hooks.
* @see {@link FocusTrapDirectivePassThroughHooksOptions}
*/
hooks?: FocusTrapDirectivePassThroughHooksOptions;
/**
* Uses to pass attributes to the styles.
* @see {@link FocusTrapDirectivePassThroughCSSOptions}
*/
css?: FocusTrapDirectivePassThroughCSSOptions;
}
/**
* Custom passthrough(pt) hooks options.
*/
export interface FocusTrapDirectivePassThroughHooksOptions {
/**
* Called before bound element's attributes or event listeners are applied.
*/
created?: DirectiveBinding;
/**
* Called right before the element is inserted into the DOM.
*/
beforeMount?: DirectiveBinding;
/**
* Called when the bound element's parent component and all its children are mounted.
*/
mounted?: DirectiveBinding;
/**
* Called before the parent component is updated.
*/
beforeUpdate?: DirectiveBinding;
/**
* Called after the parent component and all of its children have updated all of its children have updated.
*/
updated?: DirectiveBinding;
/**
* Called before the parent component is unmounted.
*/
beforeUnmount?: DirectiveBinding;
/**
* Called when the parent component is unmounted.
*/
unmounted?: DirectiveBinding;
}
/**
* Custom passthrough(pt) css options.
*/
export interface FocusTrapDirectivePassThroughCSSOptions {
/**
* Style class of the element.
*/
class?: any;
/**
* Inline style of the element.
*/
style?: any;
export interface FocusTrapDirectivePassThroughAttributes {
[key: string]: any;
}
/**