mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
parent updates for .d.ts files and apidoc
This commit is contained in:
parent
da84f55507
commit
8eea973282
30 changed files with 1171 additions and 393 deletions
42
components/lib/inputnumber/InputNumber.d.ts
vendored
42
components/lib/inputnumber/InputNumber.d.ts
vendored
|
@ -9,17 +9,17 @@
|
|||
*/
|
||||
import { ButtonHTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
|
||||
import { ComponentHooks } from '../basecomponent';
|
||||
import { ButtonPassThroughOptionType } from '../button';
|
||||
import { InputTextPassThroughOptionType } from '../inputtext';
|
||||
import { ButtonPassThroughOptions } from '../button';
|
||||
import { InputTextPassThroughOptions } from '../inputtext';
|
||||
import { PassThroughOptions } from '../passthrough';
|
||||
import { ClassComponent, GlobalComponentConstructor, Nullable, PassThrough } from '../ts-helpers';
|
||||
|
||||
export declare type InputNumberPassThroughOptionType = InputNumberPassThroughAttributes | ((options: InputNumberPassThroughMethodOptions) => InputNumberPassThroughAttributes | string) | string | null | undefined;
|
||||
export declare type InputNumberPassThroughOptionType<T = any> = InputNumberPassThroughAttributes | ((options: InputNumberPassThroughMethodOptions<T>) => InputNumberPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
/**
|
||||
* Custom passthrough(pt) option method.
|
||||
*/
|
||||
export interface InputNumberPassThroughMethodOptions {
|
||||
export interface InputNumberPassThroughMethodOptions<T> {
|
||||
/**
|
||||
* Defines instance.
|
||||
*/
|
||||
|
@ -32,12 +32,30 @@ export interface InputNumberPassThroughMethodOptions {
|
|||
* Defines current inline state.
|
||||
*/
|
||||
state: InputNumberState;
|
||||
/**
|
||||
* Defines parent instance.
|
||||
*/
|
||||
parent: T;
|
||||
/**
|
||||
* Defines passthrough(pt) options in global config.
|
||||
*/
|
||||
global: object | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom shared passthrough(pt) option method.
|
||||
*/
|
||||
export interface InputNumberSharedPassThroughMethodOptions {
|
||||
/**
|
||||
* Defines valid properties.
|
||||
*/
|
||||
props: InputNumberProps;
|
||||
/**
|
||||
* Defines current inline state.
|
||||
*/
|
||||
state: InputNumberState;
|
||||
}
|
||||
|
||||
/**
|
||||
* Custom input event.
|
||||
* @see {@link InputNumberEmits.input}
|
||||
|
@ -72,30 +90,30 @@ export interface InputNumberBlurEvent {
|
|||
* Custom passthrough(pt) options.
|
||||
* @see {@link InputNumberProps.pt}
|
||||
*/
|
||||
export interface InputNumberPassThroughOptions {
|
||||
export interface InputNumberPassThroughOptions<T = any> {
|
||||
/**
|
||||
* Used to pass attributes to the root's DOM element.
|
||||
*/
|
||||
root?: InputNumberPassThroughOptionType;
|
||||
root?: InputNumberPassThroughOptionType<T>;
|
||||
/**
|
||||
* Used to pass attributes to the Input component.
|
||||
* @see {@link InputTextPassThroughOptionType}
|
||||
* Used to pass attributes to the InputText component.
|
||||
* @see {@link InputTextPassThroughOptions}
|
||||
*/
|
||||
input?: InputTextPassThroughOptionType;
|
||||
input?: InputTextPassThroughOptions<InputNumberSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the button group's DOM element.
|
||||
*/
|
||||
buttonGroup?: InputNumberPassThroughOptionType;
|
||||
buttonGroup?: InputNumberPassThroughOptionType<T>;
|
||||
/**
|
||||
* Used to pass attributes to the Button component.
|
||||
* @see {@link ButtonPassThroughOptions}
|
||||
*/
|
||||
incrementButton?: ButtonPassThroughOptionType;
|
||||
incrementButton?: ButtonPassThroughOptions<InputNumberSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to pass attributes to the Button component.
|
||||
* @see {@link ButtonPassThroughOptions}
|
||||
*/
|
||||
decrementButton?: ButtonPassThroughOptionType;
|
||||
decrementButton?: ButtonPassThroughOptions<InputNumberSharedPassThroughMethodOptions>;
|
||||
/**
|
||||
* Used to manage all lifecycle hooks.
|
||||
* @see {@link BaseComponent.ComponentHooks}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue