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

@ -8,6 +8,9 @@
*
*/
import { DirectiveBinding, ObjectDirective } from 'vue';
import { DirectiveHooks } from '../basedirective';
export declare type TooltipDirectivePassThroughOptionType = TooltipDirectivePassThroughAttributes | null | undefined;
/**
* Defines options of Tooltip.
@ -52,9 +55,9 @@ export interface TooltipOptions {
hideDelay?: number | undefined;
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {TooltipPassThroughOptions}
* @type {TooltipDirectivePassThroughOptions}
*/
pt?: TooltipPassThroughOptions;
pt?: TooltipDirectivePassThroughOptions;
/**
* When enabled, it removes component related styles in the core.
* @defaultValue false
@ -62,6 +65,37 @@ export interface TooltipOptions {
unstyled?: boolean;
}
/**
* Custom passthrough(pt) options.
* @see {@link TooltipOptions.pt}
*/
export interface TooltipDirectivePassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
*/
root?: TooltipDirectivePassThroughOptionType;
/**
* Uses to pass attributes to the text's DOM element.
*/
text?: TooltipDirectivePassThroughOptionType;
/**
* Uses to pass attributes to the arrow's DOM element.
*/
arrow?: TooltipDirectivePassThroughOptionType;
/**
* Uses to manage all lifecycle hooks
* @see {@link BaseDirective.DirectiveHooks}
*/
hooks?: DirectiveHooks;
}
/**
* Custom passthrough attributes for each DOM elements
*/
export interface TooltipDirectivePassThroughAttributes {
[key: string]: any;
}
/**
* Defines modifiers of Tooltip.
*/
@ -93,92 +127,6 @@ export interface TooltipDirectiveModifiers {
focus?: boolean | undefined;
}
/**
* Custom passthrough(pt) options.
* @see {@link TooltipOptions.pt}
*/
export interface TooltipPassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
* @see {@link TooltipPassThroughDirectiveOptions}
*/
root?: TooltipPassThroughDirectiveOptions;
/**
* Uses to pass attributes to the text's DOM element.
* @see {@link TooltipPassThroughDirectiveOptions}
*/
text?: TooltipPassThroughDirectiveOptions;
/**
* Uses to pass attributes to the arrow's DOM element.
* @see {@link TooltipPassThroughDirectiveOptions}
*/
arrow?: TooltipPassThroughDirectiveOptions;
}
/**
* Custom passthrough(pt) directive options.
*/
export interface TooltipPassThroughDirectiveOptions {
/**
* Uses to pass attributes to the life cycle hooks.
* @see {@link TooltipPassThroughHooksOptions}
*/
hooks?: TooltipPassThroughHooksOptions;
/**
* Uses to pass attributes to the styles.
* @see {@link TooltipPassThroughCSSOptions}
*/
css?: TooltipPassThroughCSSOptions;
}
/**
* Custom passthrough(pt) hooks options.
*/
export interface TooltipPassThroughHooksOptions {
/**
* 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 TooltipPassThroughCSSOptions {
/**
* Style class of the element.
*/
class?: any;
/**
* Inline style of the element.
*/
style?: any;
}
/**
* Binding of Tooltip directive.
*/