@carbon/ibm-products-web-components
Version:
Carbon for IBM Products Web Components
57 lines • 1.54 kB
TypeScript
/**
* @license
*
* Copyright IBM Corp. 2026
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { LitElement } from 'lit';
/**
* Add Select Content component - contains the list of selectable items
* @element c4p-add-select-content
* @slot default - Contains c4p-add-select-row components
*/
declare class CDSAddSelectContent extends LitElement {
/**
* Whether this is a multi-select list (inherited from parent c4p-add-select)
* @private
*/
private get _multi();
/**
* Current focused item index
*/
private _focusedIndex;
/**
* Track if user has interacted with keyboard navigation
*/
private _hasKeyboardInteraction;
/**
* Get all item elements
*/
private _getItems;
/**
* Update focus on items - only one item should have tabindex="0"
*/
private _updateItemFocus;
/**
* Handle keyboard navigation
*/
private _handleKeyDown;
/**
* Initialize focus management after first update
*/
firstUpdated(): void;
/**
* Handle slot change to update focus management
*/
private _handleSlotChange;
/**
* Update lifecycle - ensure focus is maintained when items change
*/
updated(changedProperties: Map<string, any>): void;
render(): import("lit-html").TemplateResult<1>;
static styles: any;
}
export default CDSAddSelectContent;
//# sourceMappingURL=add-select-content.d.ts.map