Fixed #4951 - Add `attrs` param to all `pt` functions

pull/4954/head
mertsincan 2023-12-10 21:41:17 +00:00
parent 0e97a92a15
commit 7581419a2d
80 changed files with 319 additions and 1 deletions

View File

@ -31,6 +31,10 @@ export interface AccordionPassThroughMethodOptions {
* Defines current inline state.
*/
state: AccordionState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -27,6 +27,10 @@ export interface AccordionTabPassThroughMethodOptions {
* Defines valid properties.
*/
props: AccordionTabProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -38,6 +38,10 @@ export interface AutoCompletePassThroughMethodOptions {
* Defines current options.
*/
context: AutoCompleteContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -25,6 +25,10 @@ export interface AvatarPassThroughMethodOptions {
* Defines valid properties.
*/
props: AvatarProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -18,6 +18,10 @@ export declare type BadgeDirectivePassThroughOptionType = BadgeDirectivePassThro
*/
export interface BadgePassThroughMethodOptions {
context: BadgeContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -208,10 +208,12 @@ export default {
instance: this,
props: this.$props,
state: this.$data,
attrs: this.$attrs,
parent: {
instance: parentInstance,
props: parentInstance?.$props,
state: parentInstance?.$data
state: parentInstance?.$data,
attrs: this.$attrs
},
/* @deprecated since v3.43.0. Use the `parent.instance` instead of the `parentInstance`.*/
parentInstance

View File

@ -30,6 +30,10 @@ export interface BlockUIPassThroughMethodOptions {
* Defines current inline state.
*/
state: BlockUIState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -31,6 +31,10 @@ export interface BreadcrumbPassThroughMethodOptions {
* Defines current options.
*/
context: BreadcrumbContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -37,6 +37,10 @@ export interface CalendarPassThroughMethodOptions {
* Defines current options.
*/
context: CalendarContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface CarouselPassThroughMethodOptions {
* Defines current options.
*/
context: CarouselContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface CascadeSelectPassThroughMethodOptions {
* Defines current inline state.
*/
state: CascadeSelectState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -26,6 +26,10 @@ export interface ChartPassThroughMethodOptions {
* Defines valid properties.
*/
props: ChartProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface CheckboxPassThroughMethodOptions {
* Defines current options.
*/
context: CheckboxContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface ChipPassThroughMethodOptions {
* Defines current inline state.
*/
state: ChipState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface ChipsPassThroughMethodOptions {
* Defines current inline state.
*/
state: ChipsState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface ColorPickerPassThroughMethodOptions {
* Defines current inline state.
*/
state: ColorPickerState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface ColumnPassThroughMethodOptions {
* Defines valid properties.
*/
props: ColumnProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -23,6 +23,10 @@ export interface ColumnGroupPassThroughMethodOptions {
* Defines valid properties.
*/
props: ColumnGroupProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface ConfirmDialogPassThroughMethodOptions {
* Defines current inline state.
*/
state: ConfirmDialogState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface ConfirmPopupPassThroughMethodOptions {
* Defines current inline state.
*/
state: ConfirmPopupState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -38,6 +38,10 @@ export interface ContextMenuPassThroughMethodOptions {
* Defines current options.
*/
context: ContextMenuContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -41,6 +41,10 @@ export interface DataTablePassThroughMethodOptions {
* Defines current options.
*/
context: DataTableContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -31,6 +31,10 @@ export interface DataViewPassThroughMethodOptions {
* Defines current inline state.
*/
state: DataViewState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -35,6 +35,10 @@ export interface DataViewLayoutOptionsPassThroughMethodOptions {
* Defines current inline state.
*/
state: DataViewLayoutOptionsState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface DeferredContentPassThroughMethodOptions {
* Defines current inline state.
*/
state: DeferredContentState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -26,6 +26,10 @@ export interface DividerPassThroughMethodOptions {
* Defines valid properties.
*/
props: DividerProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -35,6 +35,10 @@ export interface DockPassThroughMethodOptions {
* Defines current options.
*/
context: DockContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface EditorPassThroughMethodOptions {
* Defines current inline state.
*/
state: EditorState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface FieldsetPassThroughMethodOptions {
* Defines current inline state.
*/
state: FieldsetState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -33,6 +33,10 @@ export interface FileUploadPassThroughMethodOptions {
* Defines current inline state.
*/
state: FileUploadState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -36,6 +36,10 @@ export interface GalleriaPassThroughMethodOptions {
* Defines current options.
*/
context: GalleriaContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface ImagePassThroughMethodOptions {
* Defines current inline state.
*/
state: ImageState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface InlineMessagePassThroughMethodOptions {
* Defines current inline state.
*/
state: InlineMessageState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface InplacePassThroughMethodOptions {
* Defines current inline state.
*/
state: InplaceState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -22,6 +22,10 @@ export interface InputGroupPassThroughMethodOptions {
* Defines instance.
*/
instance: any;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -22,6 +22,10 @@ export interface InputGroupAddonPassThroughMethodOptions {
* Defines instance.
*/
instance: any;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -29,6 +29,10 @@ export interface InputMaskPassThroughMethodOptions {
* Defines current options.
*/
context: InputMaskContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface InputSwitchPassThroughMethodOptions {
* Defines current inline state.
*/
state: InputSwitchState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -29,6 +29,10 @@ export interface KnobPassThroughMethodOptions {
* Defines current inline state.
*/
state: KnobState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -35,6 +35,10 @@ export interface ListboxPassThroughMethodOptions {
* Defines current options.
*/
context: ListboxContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -35,6 +35,10 @@ export interface MegaMenuPassThroughMethodOptions {
* Defines current options.
*/
context: MegaMenuContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -37,6 +37,10 @@ export interface MenuPassThroughMethodOptions {
* Defines current options.
*/
context: MenuContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -35,6 +35,10 @@ export interface MenubarPassThroughMethodOptions {
* Defines current options.
*/
context: MenubarContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -37,6 +37,10 @@ export interface MultiSelectPassThroughMethodOptions {
* Defines current options.
*/
context: MultiSelectContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -37,6 +37,10 @@ export interface OrderListPassThroughMethodOptions {
* Defines current options.
*/
context: OrderListContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface OrganizationChartPassThroughMethodOptions {
* Defines current options.
*/
context: OrganizationChartContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface OverlayPanelPassThroughMethodOptions {
* Defines current inline state.
*/
state: OverlayPanelState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface PanelPassThroughMethodOptions {
* Defines current inline state.
*/
state: PanelState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -37,6 +37,10 @@ export interface PanelMenuPassThroughMethodOptions {
* Defines current options.
*/
context: PanelMenuContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -33,6 +33,10 @@ export interface PasswordPassThroughMethodOptions {
* Defines current inline state.
*/
state: PasswordState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -37,6 +37,10 @@ export interface PickListPassThroughMethodOptions {
* Defines current options.
*/
context: PickListContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -25,6 +25,10 @@ export interface ProgressSpinnerPassThroughMethodOptions {
* Defines valid properties.
*/
props: ProgressSpinnerProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface RadioButtonPassThroughMethodOptions {
* Defines current inline state.
*/
state: RadioButtonState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface RatingPassThroughMethodOptions {
* Defines current options.
*/
context: RatingContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -22,6 +22,10 @@ export interface RowPassThroughMethodOptions {
* Defines valid properties.
*/
props: RowProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface ScrollPanelPassThroughMethodOptions {
* Defines current inline state.
*/
state: ScrollPanelState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface ScrollTopPassThroughMethodOptions {
* Defines current inline state.
*/
state: ScrollTopState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface SelectButtonPassThroughMethodOptions {
* Defines current options.
*/
context: SelectButtonContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface SidebarPassThroughMethodOptions {
* Defines current inline state.
*/
state: SidebarState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -25,6 +25,10 @@ export interface SkeletonPassThroughMethodOptions {
* Defines valid properties.
*/
props: SkeletonProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -25,6 +25,10 @@ export interface SliderPassThroughMethodOptions {
* Defines valid properties.
*/
props: SliderProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -36,6 +36,10 @@ export interface SpeedDialPassThroughMethodOptions {
* Defines current options.
*/
context: SpeedDialContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -33,6 +33,10 @@ export interface SplitButtonPassThroughMethodOptions {
* Defines current inline state.
*/
state: SplitButtonState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface SplitterPassThroughMethodOptions {
* Defines current options.
*/
context: SplitterContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface SplitterPanelPassThroughMethodOptions {
* Defines current options.
*/
context: SplitterPanelContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -31,6 +31,10 @@ export interface StepsPassThroughMethodOptions {
* Defines current options.
*/
context: StepsContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -35,6 +35,10 @@ export interface TabMenuPassThroughMethodOptions {
* Defines current options.
*/
context: TabMenuContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface TabPanelPassThroughMethodOptions {
* Defines current options.
*/
context: TabPanelContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -26,6 +26,10 @@ export interface TagPassThroughMethodOptions {
* Defines valid properties.
*/
props: TagProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -29,6 +29,10 @@ export interface TerminalPassThroughMethodOptions {
* Defines current inline state.
*/
state: TerminalState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface TextareaPassThroughMethodOptions {
* Defines current options.
*/
context: TextareaContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -29,6 +29,10 @@ export interface TimelinePassThroughMethodOptions {
* Defines current options.
*/
context: TimelineContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -32,6 +32,10 @@ export interface ToastPassThroughMethodOptions {
* Defines current inline state.
*/
state: ToastState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface ToggleButtonPassThroughMethodOptions {
* Defines current options.
*/
context: ToggleButtonContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -26,6 +26,10 @@ export interface ToolbarPassThroughMethodOptions {
* Defines valid properties.
*/
props: ToolbarProps;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -19,6 +19,10 @@ export declare type TooltipDirectivePassThroughOptionType = TooltipDirectivePass
*/
export interface TooltipPassThroughMethodOptions {
context: TooltipContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface TreeSelectPassThroughMethodOptions {
* Defines current inline state.
*/
state: TreeSelectState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -37,6 +37,10 @@ export interface TreeTablePassThroughMethodOptions {
* Defines current options.
*/
context: TreeTableContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -34,6 +34,10 @@ export interface TriStateCheckboxPassThroughMethodOptions {
* Defines current options.
*/
context: TriStateCheckboxContext;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/

View File

@ -30,6 +30,10 @@ export interface VirtualScrollerPassThroughMethodOptions {
* Defines current inline state.
*/
state: VirtualScrollerState;
/**
* Defines valid attributes.
*/
attrs: any;
/**
* Defines parent options.
*/