Fixed #2891 - Update all html prop types

pull/2892/head
mertsincan 2022-08-25 15:37:03 +01:00
parent ab957ad53d
commit 93b6b04cdf
14 changed files with 40 additions and 34 deletions

View File

@ -1,4 +1,4 @@
import { VNode } from 'vue';
import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
@ -174,7 +174,7 @@ export interface AutoCompleteProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Inline style of the overlay panel.
*/
@ -186,7 +186,7 @@ export interface AutoCompleteProps {
/**
* Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.
*/
panelProps?: HTMLDivElement | undefined;
panelProps?: HTMLAttributes | undefined;
/**
* Icon to display in loading state.
* Default value is 'pi pi-spinner pi-spin'.

View File

@ -1,4 +1,4 @@
import { VNode } from 'vue';
import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
type CalendarValueType = Date | Date[] | undefined;
@ -266,7 +266,7 @@ export interface CalendarProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Inline style of the overlay panel.
*/
@ -278,7 +278,7 @@ export interface CalendarProps {
/**
* Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.
*/
panelProps?: HTMLDivElement | undefined;
panelProps?: HTMLAttributes | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/

View File

@ -1,4 +1,4 @@
import { VNode } from 'vue';
import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
type CascadeSelectOptionLabelType = string | ((data: any) => string) | undefined;
@ -88,7 +88,7 @@ export interface CascadeSelectProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Inline style of the overlay panel.
*/
@ -100,7 +100,7 @@ export interface CascadeSelectProps {
/**
* Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.
*/
panelProps?: HTMLDivElement | undefined;
panelProps?: HTMLAttributes | undefined;
/**
* A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself.
* @see CascadeSelectAppendToType

View File

@ -1,3 +1,4 @@
import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
export interface CheckboxProps {
@ -56,7 +57,7 @@ export interface CheckboxProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/

View File

@ -1,4 +1,4 @@
import { VNode } from 'vue';
import { InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
export interface ChipsAddEvent {
@ -54,7 +54,7 @@ export interface ChipsProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* When present, it specifies that the element should be disabled.
*/

View File

@ -1,4 +1,4 @@
import { VNode } from 'vue';
import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
@ -132,7 +132,7 @@ export interface DropdownProps {
/**
* Uses to pass all properties of the HTMLInputElement/HTMLSpanElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | HTMLSpanElement | undefined;
inputProps?: InputHTMLAttributes | HTMLAttributes | undefined;
/**
* Inline style of the overlay panel.
*/
@ -144,15 +144,15 @@ export interface DropdownProps {
/**
* Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.
*/
panelProps?: HTMLDivElement | undefined;
panelProps?: HTMLAttributes | undefined;
/**
* Uses to pass all properties of the HTMLInputElement to the filter input inside the component.
*/
filterInputProps?: HTMLInputElement | undefined;
filterInputProps?: InputHTMLAttributes | undefined;
/**
* Uses to pass all properties of the HTMLElement to the clear icon inside the component.
*/
clearIconProps?: HTMLElement | undefined;
clearIconProps?: HTMLAttributes | undefined;
/**
* A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are 'body' for document body and 'self' for the element itself.
* @see DropdownAppendToType

View File

@ -1,3 +1,4 @@
import { ButtonHTMLAttributes, InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
type InputNumberButtonLayoutType = 'stacked' | 'horizontal' | 'vertical' | undefined;
@ -160,15 +161,15 @@ export interface InputNumberProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Uses to pass all properties of the HTMLButtonElement to increment button inside the component.
*/
incrementButtonProps?: HTMLButtonElement | undefined;
incrementButtonProps?: ButtonHTMLAttributes | undefined;
/**
* Uses to pass all properties of the HTMLButtonElement to decrement button inside the component.
*/
decrementButtonProps?: HTMLButtonElement | undefined;
decrementButtonProps?: ButtonHTMLAttributes | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/

View File

@ -1,3 +1,4 @@
import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
export interface InputSwitchProps {
@ -28,7 +29,7 @@ export interface InputSwitchProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/

View File

@ -1,4 +1,4 @@
import { VNode } from 'vue';
import { InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
@ -111,7 +111,7 @@ export interface ListboxProps {
/**
* Uses to pass all properties of the HTMLInputElement to the filter input inside the component.
*/
filterInputProps?: HTMLInputElement | undefined;
filterInputProps?: InputHTMLAttributes | undefined;
/**
* Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
* @see VirtualScroller.VirtualScrollerProps

View File

@ -1,4 +1,4 @@
import { VNode } from 'vue';
import { ButtonHTMLAttributes, HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
@ -98,7 +98,7 @@ export interface MultiSelectProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Inline style of the overlay panel.
*/
@ -110,15 +110,15 @@ export interface MultiSelectProps {
/**
* Uses to pass all properties of the HTMLDivElement to the overlay panel.
*/
panelProps?: HTMLDivElement | undefined;
panelProps?: HTMLAttributes | undefined;
/**
* Uses to pass all properties of the HTMLInputElement to the filter input inside the overlay panel.
*/
filterInputProps?: HTMLInputElement | undefined;
filterInputProps?: InputHTMLAttributes | undefined;
/**
* Uses to pass all properties of the HTMLButtonElement to the clear button inside the overlay panel.
*/
closeButtonProps?: HTMLButtonElement | undefined;
closeButtonProps?: ButtonHTMLAttributes | undefined;
/**
* A property to uniquely identify an option.
*/

View File

@ -1,4 +1,4 @@
import { VNode, InputHTMLAttributes } from 'vue';
import { VNode, InputHTMLAttributes, HTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
type PasswordAppendToType = 'body' | 'self' | string | undefined | HTMLElement;
@ -82,7 +82,7 @@ export interface PasswordProps extends InputHTMLAttributes {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Identifier of the underlying overlay panel element.
*/
@ -98,7 +98,7 @@ export interface PasswordProps extends InputHTMLAttributes {
/**
* Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.
*/
panelProps?: HTMLDivElement | undefined;
panelProps?: HTMLAttributes | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/

View File

@ -1,3 +1,4 @@
import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
export interface RadioButtonProps {
@ -32,7 +33,7 @@ export interface RadioButtonProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/

View File

@ -1,3 +1,4 @@
import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
type ToggleButtonType = 'left' | 'right' | undefined;
@ -54,7 +55,7 @@ export interface ToggleButtonProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/

View File

@ -1,3 +1,4 @@
import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
export interface TriStateCheckboxProps {
@ -20,7 +21,7 @@ export interface TriStateCheckboxProps {
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: HTMLInputElement | undefined;
inputProps?: InputHTMLAttributes | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/