Refactor #3965 - For Directives .d.ts

pull/4084/head
Tuğçe Küçükoğlu 2023-06-23 17:51:42 +03:00
parent 2f33571ee3
commit ab880af36c
5 changed files with 61 additions and 50 deletions

View File

@ -11,46 +11,46 @@ import { DirectiveBinding, ObjectDirective } from 'vue';
/**
* Defines options of Badge.
*/
export interface BadgeOptions {
export interface BadgeDirectiveOptions {
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {BadgePassThroughOptions}
* @type {BadgeDirectivePassThroughOptions}
*/
pt?: BadgePassThroughOptions;
pt?: BadgeDirectivePassThroughOptions;
}
/**
* Custom passthrough(pt) options.
* @see {@link BadgeOptions.pt}
* @see {@link BadgeDirectiveOptions.pt}
*/
export interface BadgePassThroughOptions {
export interface BadgeDirectivePassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
* @see {@link BadgePassThroughDirectiveOptions}
* @see {@link BadgeDirectivePassThroughDirectiveOptions}
*/
root?: BadgePassThroughDirectiveOptions;
root?: BadgeDirectivePassThroughDirectiveOptions;
}
/**
* Custom passthrough(pt) directive options.
*/
export interface BadgePassThroughDirectiveOptions {
export interface BadgeDirectivePassThroughDirectiveOptions {
/**
* Uses to pass attributes to the life cycle hooks.
* @see {@link BadgePassThroughHooksOptions}
* @see {@link BadgeDirectivePassThroughHooksOptions}
*/
hooks?: BadgePassThroughHooksOptions;
hooks?: BadgeDirectivePassThroughHooksOptions;
/**
* Uses to pass attributes to the styles.
* @see {@link BadgePassThroughCSSOptions}
* @see {@link BadgeDirectivePassThroughCSSOptions}
*/
css?: BadgePassThroughCSSOptions;
css?: BadgeDirectivePassThroughCSSOptions;
}
/**
* Custom passthrough(pt) hooks options.
*/
export interface BadgePassThroughHooksOptions {
export interface BadgeDirectivePassThroughHooksOptions {
/**
* Called before bound element's attributes or event listeners are applied.
*/
@ -84,7 +84,7 @@ export interface BadgePassThroughHooksOptions {
/**
* Custom passthrough(pt) css options.
*/
export interface BadgePassThroughCSSOptions {
export interface BadgeDirectivePassThroughCSSOptions {
/**
* Style class of the element.
*/
@ -128,7 +128,7 @@ export interface BadgeDirectiveBinding extends Omit<DirectiveBinding, 'modifiers
/**
* Value of the Badge.
*/
value?: string | BadgeOptions | undefined;
value?: string | BadgeDirectiveOptions | undefined;
/**
* Modifiers of the Badge.
* @type {BadgeDirectiveModifiers}

View File

@ -4,6 +4,7 @@ import { AccordionTabPassThroughOptions } from '../accordiontab';
import { AutoCompletePassThroughOptions } from '../autocomplete';
import { AvatarPassThroughOptions } from '../avatar';
import { BadgePassThroughOptions } from '../badge';
import { BadgeDirectivePassThroughOptions } from '../badgedirective';
import { BlockUIPassThroughOptions } from '../blockui';
import { BreadcrumbPassThroughOptions } from '../breadcrumb';
import { ButtonPassThroughOptions } from '../button';
@ -31,6 +32,7 @@ import { DropdownPassThroughOptions } from '../dropdown';
import { EditorPassThroughOptions } from '../editor';
import { FieldsetPassThroughOptions } from '../fieldset';
import { FileUploadPassThroughOptions } from '../fileupload';
import { FocusTrapDirectivePassThroughOptions } from '../focustrap';
import { GalleriaPassThroughOptions } from '../galleria';
import { ImagePassThroughOptions } from '../image';
import { InlineMessagePassThroughOptions } from '../inlinemessage';
@ -57,6 +59,7 @@ import { PickListPassThroughOptions } from '../picklist';
import { ProgressBarPassThroughOptions } from '../progressbar';
import { ProgressSpinnerPassThroughOptions } from '../progressspinner';
import { RadioButtonPassThroughOptions } from '../radiobutton';
import { RippleDirectivePassThroughOptions } from '../ripple';
import { RowPassThroughOptions } from '../row';
import { ScrollPanelPassThroughOptions } from '../scrollpanel';
import { ScrollTopPassThroughOptions } from '../scrolltop';
@ -66,6 +69,8 @@ import { SkeletonPassThroughOptions } from '../skeleton';
import { SpeedDialPassThroughOptions } from '../speeddial';
import { SplitButtonPassThroughOptions } from '../splitbutton';
import { SplitterPassThroughOptions } from '../splitter';
import { StepsPassThroughOptions } from '../steps';
import { StyleClassDirectivePassThroughOptions } from '../styleclass';
import { TabMenuPassThroughOptions } from '../tabmenu';
import { TabPanelPassThroughOptions } from '../tabpanel';
import { TabViewPassThroughOptions } from '../tabview';
@ -76,6 +81,7 @@ import { TieredMenuPassThroughOptions } from '../tieredmenu';
import { TimelinePassThroughOptions } from '../timeline';
import { ToastPassThroughOptions } from '../toast';
import { ToolbarPassThroughOptions } from '../toolbar';
import { TooltipPassThroughOptions } from '../tooltip';
import { TreePassThroughOptions } from '../tree';
import { TreeSelectPassThroughOptions } from '../treeselect';
import { TreeTablePassThroughOptions } from '../treetable';
@ -105,6 +111,7 @@ interface PrimeVuePTOptions {
autocomplete?: DefaultPTOptions<AutoCompletePassThroughOptions>;
avatar?: DefaultPTOptions<AvatarPassThroughOptions>;
badge?: DefaultPTOptions<BadgePassThroughOptions>;
badgedirective?: DefaultPTOptions<BadgeDirectivePassThroughOptions>;
blockui?: DefaultPTOptions<BlockUIPassThroughOptions>;
breadcrumb?: DefaultPTOptions<BreadcrumbPassThroughOptions>;
button?: DefaultPTOptions<ButtonPassThroughOptions>;
@ -133,6 +140,7 @@ interface PrimeVuePTOptions {
editor?: DefaultPTOptions<EditorPassThroughOptions>;
fieldset?: DefaultPTOptions<FieldsetPassThroughOptions>;
fileupload?: DefaultPTOptions<FileUploadPassThroughOptions>;
focustrap?: DefaultPTOptions<FocusTrapDirectivePassThroughOptions>;
galleria?: DefaultPTOptions<GalleriaPassThroughOptions>;
image?: DefaultPTOptions<ImagePassThroughOptions>;
inlinemessage?: DefaultPTOptions<InlineMessagePassThroughOptions>;
@ -159,6 +167,7 @@ interface PrimeVuePTOptions {
progressbar?: DefaultPTOptions<ProgressBarPassThroughOptions>;
progressspinner?: DefaultPTOptions<ProgressSpinnerPassThroughOptions>;
radiobutton?: DefaultPTOptions<RadioButtonPassThroughOptions>;
ripple?: DefaultPTOptions<RippleDirectivePassThroughOptions>;
row?: DefaultPTOptions<RowPassThroughOptions>;
scrollpanel?: DefaultPTOptions<ScrollPanelPassThroughOptions>;
scrolltop?: DefaultPTOptions<ScrollTopPassThroughOptions>;
@ -168,7 +177,8 @@ interface PrimeVuePTOptions {
selectbutton?: DefaultPTOptions<SelectButtonPassThroughOptions>;
splitbutton?: DefaultPTOptions<SplitButtonPassThroughOptions>;
splitter?: DefaultPTOptions<SplitterPassThroughOptions>;
steps?: DefaultPTOptions<PanelMenuPassThroughOptions>;
steps?: DefaultPTOptions<StepsPassThroughOptions>;
styleclass?: DefaultPTOptions<StyleClassDirectivePassThroughOptions>;
tabmenu?: DefaultPTOptions<TabMenuPassThroughOptions>;
tabpanel?: DefaultPTOptions<TabPanelPassThroughOptions>;
tabview?: DefaultPTOptions<TabViewPassThroughOptions>;
@ -179,6 +189,7 @@ interface PrimeVuePTOptions {
timeline?: DefaultPTOptions<TimelinePassThroughOptions>;
toast?: DefaultPTOptions<ToastPassThroughOptions>;
toolbar?: DefaultPTOptions<ToolbarPassThroughOptions>;
tooltip?: DefaultPTOptions<TooltipPassThroughOptions>;
tree?: DefaultPTOptions<TreePassThroughOptions>;
treeselect?: DefaultPTOptions<TreeSelectPassThroughOptions>;
treetable?: DefaultPTOptions<TreeTablePassThroughOptions>;

View File

@ -24,53 +24,53 @@ export interface FocusTrapOptions {
autoFocus?: boolean | undefined;
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {FocusTrapPassThroughOptions}
* @type {FocusTrapDirectivePassThroughOptions}
*/
pt?: FocusTrapPassThroughOptions;
pt?: FocusTrapDirectivePassThroughOptions;
}
/**
* Custom passthrough(pt) options.
* @see {@link FocusTrapOptions.pt}
*/
export interface FocusTrapPassThroughOptions {
export interface FocusTrapDirectivePassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
* @see {@link FocusTrapPassThroughDirectiveOptions}
* @see {@link FocusTrapDirectivePassThroughDirectiveOptions}
*/
root?: FocusTrapPassThroughDirectiveOptions;
root?: FocusTrapDirectivePassThroughDirectiveOptions;
/**
* Uses to pass attributes to the first focusable element's DOM element.
* @see {@link FocusTrapPassThroughDirectiveOptions}
* @see {@link FocusTrapDirectivePassThroughDirectiveOptions}
*/
firstFocusableElement?: FocusTrapPassThroughDirectiveOptions;
firstFocusableElement?: FocusTrapDirectivePassThroughDirectiveOptions;
/**
* Uses to pass attributes to the last focusable element's DOM element.
* @see {@link FocusTrapPassThroughDirectiveOptions}
* @see {@link FocusTrapDirectivePassThroughDirectiveOptions}
*/
lastFocusableElement?: FocusTrapPassThroughDirectiveOptions;
lastFocusableElement?: FocusTrapDirectivePassThroughDirectiveOptions;
}
/**
* Custom passthrough(pt) directive options.
*/
export interface FocusTrapPassThroughDirectiveOptions {
export interface FocusTrapDirectivePassThroughDirectiveOptions {
/**
* Uses to pass attributes to the life cycle hooks.
* @see {@link FocusTrapPassThroughHooksOptions}
* @see {@link FocusTrapDirectivePassThroughHooksOptions}
*/
hooks?: FocusTrapPassThroughHooksOptions;
hooks?: FocusTrapDirectivePassThroughHooksOptions;
/**
* Uses to pass attributes to the styles.
* @see {@link FocusTrapPassThroughCSSOptions}
* @see {@link FocusTrapDirectivePassThroughCSSOptions}
*/
css?: FocusTrapPassThroughCSSOptions;
css?: FocusTrapDirectivePassThroughCSSOptions;
}
/**
* Custom passthrough(pt) hooks options.
*/
export interface FocusTrapPassThroughHooksOptions {
export interface FocusTrapDirectivePassThroughHooksOptions {
/**
* Called before bound element's attributes or event listeners are applied.
*/
@ -104,7 +104,7 @@ export interface FocusTrapPassThroughHooksOptions {
/**
* Custom passthrough(pt) css options.
*/
export interface FocusTrapPassThroughCSSOptions {
export interface FocusTrapDirectivePassThroughCSSOptions {
/**
* Style class of the element.
*/

View File

@ -14,43 +14,43 @@ import { DirectiveBinding, ObjectDirective } from 'vue';
export interface RippleOptions {
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {RipplePassThroughOptions}
* @type {RippleDirectivePassThroughOptions}
*/
pt?: RipplePassThroughOptions;
pt?: RippleDirectivePassThroughOptions;
}
/**
* Custom passthrough(pt) options.
* @see {@link RippleOptions.pt}
*/
export interface RipplePassThroughOptions {
export interface RippleDirectivePassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
* @see {@link RipplePassThroughDirectiveOptions}
* @see {@link RippleDirectivePassThroughOptions}
*/
root?: RipplePassThroughDirectiveOptions;
root?: RippleDirectivePassThroughOptions;
}
/**
* Custom passthrough(pt) directive options.
*/
export interface RipplePassThroughDirectiveOptions {
export interface RippleDirectivePassThroughOptions {
/**
* Uses to pass attributes to the life cycle hooks.
* @see {@link RipplePassThroughHooksOptions}
* @see {@link RippleDirectivePassThroughHooksOptions}
*/
hooks?: RipplePassThroughHooksOptions;
hooks?: RippleDirectivePassThroughHooksOptions;
/**
* Uses to pass attributes to the styles.
* @see {@link RipplePassThroughCSSOptions}
* @see {@link RippleDirectivePassThroughCSSOptions}
*/
css?: RipplePassThroughCSSOptions;
css?: RippleDirectivePassThroughCSSOptions;
}
/**
* Custom passthrough(pt) hooks options.
*/
export interface RipplePassThroughHooksOptions {
export interface RippleDirectivePassThroughHooksOptions {
/**
* Called before bound element's attributes or event listeners are applied.
*/
@ -84,7 +84,7 @@ export interface RipplePassThroughHooksOptions {
/**
* Custom passthrough(pt) css options.
*/
export interface RipplePassThroughCSSOptions {
export interface RippleDirectivePassThroughCSSOptions {
/**
* Style class of the element.
*/

View File

@ -51,26 +51,26 @@ export interface StyleClassOptions {
toggleClass?: string | undefined;
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {StyleClassPassThroughDirectiveOptions}
* @type {StyleClassDirectivePassThroughOptions}
*/
pt?: StyleClassPassThroughDirectiveOptions;
pt?: StyleClassDirectivePassThroughOptions;
}
/**
* Custom passthrough(pt) directive options.
*/
export interface StyleClassPassThroughDirectiveOptions {
export interface StyleClassDirectivePassThroughOptions {
/**
* Uses to pass attributes to the life cycle hooks.
* @see {@link StyleClassPassThroughHooksOptions}
* @see {@link StyleClassDirectivePassThroughHooksOptions}
*/
hooks?: StyleClassPassThroughHooksOptions;
hooks?: StyleClassDirectivePassThroughHooksOptions;
}
/**
* Custom passthrough(pt) hooks options.
*/
export interface StyleClassPassThroughHooksOptions {
export interface StyleClassDirectivePassThroughHooksOptions {
/**
* Called before bound element's attributes or event listeners are applied.
*/