2022-09-12 07:13:52 +00:00
const CascadeSelectProps = [
{
2022-09-14 14:26:41 +00:00
name : 'modelValue' ,
type : 'any' ,
default : 'null' ,
description : 'Value of the component.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'options' ,
type : 'array' ,
default : 'null' ,
description : 'An array of selectitems to display as the available options.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'optionLabel' ,
type : 'string | function' ,
default : 'null' ,
description : 'Property name or getter function to use as the label of an option.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'optionValue' ,
type : 'string | function' ,
default : 'null' ,
description : 'Property name or getter function to use as the value of an option, defaults to the option itself when not defined.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'optionDisabled' ,
type : 'boolean' ,
default : 'null' ,
description : 'Property name or getter function to use as the disabled flag of an option, defaults to false when not defined.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'optionGroupLabel' ,
type : 'string | function' ,
default : 'null' ,
description : 'Property name or getter function to use as the label of an option group.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'optionGroupChildren' ,
type : 'array | function' ,
default : 'null' ,
description : 'Property name or getter function to retrieve the items of a group.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'placeholder' ,
type : 'string' ,
default : 'null' ,
description : 'Default text to display when no option is selected.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'disabled' ,
type : 'boolean' ,
default : 'false' ,
description : 'When present, it specifies that the component should be disabled.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'dataKey' ,
type : 'string' ,
default : 'null' ,
description : 'A property to uniquely identify an option.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'inputStyle' ,
type : 'object' ,
default : 'null' ,
description : 'Inline style of the input field.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'inputClass' ,
type : 'string' ,
default : 'null' ,
description : 'Style class of the input field.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'inputProps' ,
type : 'object' ,
default : 'null' ,
description : 'Uses to pass all properties of the HTMLInputElement/HTMLSpanElement to the focusable input element inside the component.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'panelStyle' ,
type : 'object' ,
default : 'null' ,
description : 'Inline style of the overlay panel.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'panelClass' ,
type : 'string' ,
default : 'null' ,
description : 'Style class of the overlay panel.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'panelProps' ,
type : 'object' ,
default : 'null' ,
description : 'Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'appendTo' ,
type : 'string' ,
default : 'body' ,
2022-09-12 07:13:52 +00:00
description : '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.'
} ,
{
2022-09-14 14:26:41 +00:00
name : 'loading' ,
type : 'boolean' ,
default : 'false' ,
description : 'Whether the multiselect is in loading state.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'loadingIcon' ,
type : 'string' ,
default : 'pi pi-spinner pi-spin' ,
description : 'Icon to display in loading state.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'autoOptionFocus' ,
type : 'boolean' ,
default : 'true' ,
description : 'Whether to focus on the first visible or selected element when the overlay panel is shown.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'selectOnFocus' ,
type : 'boolean' ,
default : 'false' ,
description : 'When enabled, the focused option is selected/opened.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'searchLocale' ,
type : 'string' ,
default : 'undefined' ,
2022-09-12 07:13:52 +00:00
description : "Locale to use in searching. The default locale is the host environment's current locale."
} ,
{
2022-09-14 14:26:41 +00:00
name : 'searchMessage' ,
type : 'string' ,
default : '{0} results are available' ,
description : 'Text to be displayed in hidden accessible field when filtering returns any results. Defaults to value from PrimeVue locale configuration.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'selectionMessage' ,
type : 'string' ,
default : '{0} items selected' ,
description : 'Text to be displayed in hidden accessible field when options are selected. Defaults to value from PrimeVue locale configuration.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'emptySelectionMessage' ,
type : 'string' ,
default : 'No selected item' ,
description : 'Text to be displayed in hidden accessible field when any option is not selected. Defaults to value from PrimeVue locale configuration.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'emptySearchMessage' ,
type : 'string' ,
default : 'No results found' ,
description : 'Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'tabindex' ,
type : 'number' ,
default : '0' ,
description : 'Index of the element in tabbing order.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'aria-label' ,
type : 'string' ,
default : 'null' ,
description : 'Defines a string value that labels an interactive element.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'aria-labelledby' ,
type : 'string' ,
default : 'null' ,
description : 'Identifier of the underlying input element.'
2022-09-12 07:13:52 +00:00
}
] ;
const CascadeSelectEvents = [
{
2022-09-14 14:26:41 +00:00
name : 'change' ,
description : 'Callback to invoke on value change.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'originalEvent' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'value' ,
type : 'object' ,
description : 'Selected option value'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'focus' ,
description : 'Callback to invoke when component receives focus.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'blur' ,
description : 'Callback to invoke when component loses focus.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'click' ,
description : 'Callback to invoke on click.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'event' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'group-change' ,
description : 'Callback to invoke when a group changes.' ,
2022-09-12 07:13:52 +00:00
arguments : [
{
2022-09-14 14:26:41 +00:00
name : 'originalEvent' ,
type : 'object' ,
description : 'Browser event'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'value' ,
type : 'object' ,
description : 'Selected option value'
2022-09-12 07:13:52 +00:00
}
]
} ,
{
2022-09-14 14:26:41 +00:00
name : 'before-show' ,
description : 'Callback to invoke before the overlay is shown.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'before-hide' ,
description : 'Callback to invoke before the overlay is hidden.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'show' ,
description : 'Callback to invoke when the overlay is shown.'
2022-09-12 07:13:52 +00:00
} ,
{
2022-09-14 14:26:41 +00:00
name : 'hide' ,
description : 'Callback to invoke when the overlay is hidden.'
2022-09-12 07:13:52 +00:00
}
] ;
const CascadeSelectSlots = [
{
2022-09-14 14:26:41 +00:00
name : 'value' ,
2022-09-12 07:13:52 +00:00
description : "Custom content for the item's value"
} ,
{
2022-09-14 14:26:41 +00:00
name : 'option' ,
2022-09-12 07:13:52 +00:00
description : "Custom content for the item's option"
} ,
{
2022-09-14 14:26:41 +00:00
name : 'indicator' ,
description : 'Custom content for the dropdown indicator'
2022-09-12 07:13:52 +00:00
}
] ;
module . exports = {
cascadeselect : {
2022-09-14 14:26:41 +00:00
name : 'CascadeSelect' ,
description : 'CascadeSelect displays a nested structure of options.' ,
2022-09-12 07:13:52 +00:00
props : CascadeSelectProps ,
events : CascadeSelectEvents ,
slots : CascadeSelectSlots
}
} ;