mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Components added. Build issues fixed
This commit is contained in:
parent
5b66ed1093
commit
18c3721848
344 changed files with 12446 additions and 8758 deletions
38
components/dropdown/Dropdown.d.ts
vendored
38
components/dropdown/Dropdown.d.ts
vendored
|
@ -1,6 +1,6 @@
|
|||
import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
import { VirtualScrollerProps, VirtualScrollerItemOptions } from '../virtualscroller';
|
||||
import { VirtualScrollerItemOptions, VirtualScrollerProps } from '../virtualscroller';
|
||||
|
||||
type DropdownOptionLabelType = string | ((data: any) => string) | undefined;
|
||||
|
||||
|
@ -168,6 +168,10 @@ export interface DropdownProps {
|
|||
* Default value is 'pi pi-spinner pi-spin'.
|
||||
*/
|
||||
loadingIcon?: string | undefined;
|
||||
/**
|
||||
* Clears the filter value when hiding the dropdown.
|
||||
*/
|
||||
resetFilterOnHide?: boolean;
|
||||
/**
|
||||
* Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it.
|
||||
* @see VirtualScroller.VirtualScrollerProps
|
||||
|
@ -178,6 +182,16 @@ export interface DropdownProps {
|
|||
* Default value is true.
|
||||
*/
|
||||
autoOptionFocus?: boolean | undefined;
|
||||
/**
|
||||
* Whether to focus on the filter element when the overlay panel is shown.
|
||||
* Default value is false.
|
||||
*/
|
||||
autoFilterFocus?: boolean | undefined;
|
||||
/**
|
||||
* When enabled, the focused option is selected.
|
||||
* Default value is false.
|
||||
*/
|
||||
selectOnFocus?: boolean | undefined;
|
||||
/**
|
||||
* Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration.
|
||||
* Default value is '{0} results are available'.
|
||||
|
@ -210,11 +224,11 @@ export interface DropdownProps {
|
|||
/**
|
||||
* Defines a string value that labels an interactive element.
|
||||
*/
|
||||
"aria-label"?: string | undefined;
|
||||
'aria-label'?: string | undefined;
|
||||
/**
|
||||
* Identifier of the underlying input element.
|
||||
*/
|
||||
"aria-labelledby"?: string | undefined;
|
||||
'aria-labelledby'?: string | undefined;
|
||||
}
|
||||
|
||||
export interface DropdownSlots {
|
||||
|
@ -347,17 +361,17 @@ export declare type DropdownEmits = {
|
|||
* Callback to invoke on value change.
|
||||
* @param {DropdownChangeEvent} event - Custom change event.
|
||||
*/
|
||||
'change': (event: DropdownChangeEvent) => void;
|
||||
change: (event: DropdownChangeEvent) => void;
|
||||
/**
|
||||
* Callback to invoke when the component receives focus.
|
||||
* @param {Event} event - Browser event.
|
||||
*/
|
||||
'focus': (event: Event) => void;
|
||||
focus: (event: Event) => void;
|
||||
/**
|
||||
* Callback to invoke when the component loses focus.
|
||||
* @param {Event} event - Browser event.
|
||||
*/
|
||||
'blur': (event: Event) => void;
|
||||
blur: (event: Event) => void;
|
||||
/**
|
||||
* Callback to invoke before the overlay is shown.
|
||||
*/
|
||||
|
@ -369,17 +383,17 @@ export declare type DropdownEmits = {
|
|||
/**
|
||||
* Callback to invoke when the overlay is shown.
|
||||
*/
|
||||
'show': () => void;
|
||||
show: () => void;
|
||||
/**
|
||||
* Callback to invoke when the overlay is hidden.
|
||||
*/
|
||||
'hide': () => void;
|
||||
hide: () => void;
|
||||
/**
|
||||
* Callback to invoke on filter input.
|
||||
* @param {DropdownFilterEvent} event - Custom filter event.
|
||||
*/
|
||||
'filter': (event: DropdownFilterEvent) => void;
|
||||
}
|
||||
filter: (event: DropdownFilterEvent) => void;
|
||||
};
|
||||
|
||||
declare class Dropdown extends ClassComponent<DropdownProps, DropdownSlots, DropdownEmits> {
|
||||
/**
|
||||
|
@ -400,7 +414,7 @@ declare class Dropdown extends ClassComponent<DropdownProps, DropdownSlots, Drop
|
|||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface GlobalComponents {
|
||||
Dropdown: GlobalComponentConstructor<Dropdown>
|
||||
Dropdown: GlobalComponentConstructor<Dropdown>;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -410,7 +424,7 @@ declare module '@vue/runtime-core' {
|
|||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Dropdown](https://www.primefaces.org/primevue/showcase/#/dropdown)
|
||||
* - [Dropdown](https://www.primefaces.org/primevue/dropdown)
|
||||
*
|
||||
*/
|
||||
export default Dropdown;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue