/** * @license * Copyright (c) 2000 - 2024 Vaadin Ltd. * * This program is available under Vaadin Commercial License and Service Terms. * * * See https://vaadin.com/commercial-license-and-service-terms for the full * license. */ import type { Constructor } from '@open-wc/dedupe-mixin'; import type { KeyboardDirectionMixinClass } from '@vaadin/component-base/src/keyboard-direction-mixin.js'; import type { KeyboardMixinClass } from '@vaadin/component-base/src/keyboard-mixin.js'; /** * A mixin for `nav` elements, facilitating navigation and selection of childNodes. */ export declare function ListMixin>( base: T, ): Constructor & Constructor & Constructor & T; export declare class ListMixinClass { /** * Used for mixin detection because `instanceof` does not work with mixins. */ _hasVaadinListMixin: boolean; /** * The index of the item selected in the items array. * Note: Not updated when used in `multiple` selection mode. */ selected: number | null | undefined; /** * Define how items are disposed in the dom. * Possible values are: `horizontal|vertical`. * It also changes navigation keys from left/right to up/down. */ orientation: 'horizontal' | 'vertical'; /** * The list of items from which a selection can be made. * It is populated from the elements passed to the light DOM, * and updated dynamically when adding or removing items. * * The item elements must implement `Vaadin.ItemMixin`. * * Note: unlike ``, this property is read-only, * so if you want to provide items by iterating array of data, * you have to use `dom-repeat` and place it to the light DOM. */ readonly items: Element[] | undefined; protected readonly _scrollerElement: HTMLElement; }