UNPKG

@porsche-design-system/components-react

Version:

Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.

40 lines (39 loc) 2.31 kB
import { Component } from 'react'; /** * @slot {"name": "label", "description": "Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." } * @slot {"name": "label-after", "description": "Places additional content after the label text (for content that should not be part of the label, e.g. external links or `p-popover`)."} * @slot {"name": "description", "description": "Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." } * @slot {"name": "selected", "description": "Use this slot to provide custom markup for the selected option display in the button area." } * @slot {"name": "", "description": "Default slot for the `p-select-option` tags." } * @slot {"name": "options-status", "description": "When implementing a custom filter with the `filter` slot, use this slot for loading, error and no results status." } * @slot {"name": "message", "description": "Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed." } * @slot {"name": "filter", "description": "Optional slot for providing a custom `p-input-search` input. When used, the default filter input is replaced and the built-in filter logic is disabled, giving full control over filtering behavior." } * * @controlled { "props": ["value"], "event": "update", "isInternallyMutated": true } */ export declare class DSRSelect extends Component<any> { host: HTMLElement; private isOpen; private hasFilterResults; private selectedOption; private internals; private defaultValue; private buttonElement; private popoverElement; private inputSearchElement; private filterSlot; private listboxElement; private selectOptions; private selectOptgroups; private preventOptionUpdate; private searchString; private searchTimeout; private hasNativePopoverSupport; private cleanUpAutoUpdate; private currentlyHighlightedOption; private get hasFilter(); formDisabledCallback(): void; formStateRestoreCallback(): void; formResetCallback(): void; render(): JSX.Element; }