/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import * as i0 from '@angular/core'; import { EventEmitter, TemplateRef, Renderer2, NgZone, ElementRef, OnInit, AfterViewInit, OnDestroy, QueryList, ChangeDetectorRef, Injector, OnChanges, SimpleChanges } from '@angular/core'; import { SVGIcon } from '@progress/kendo-svg-icons'; import { Button } from '@progress/kendo-angular-buttons'; import { LocalizationService, ComponentMessages } from '@progress/kendo-angular-l10n'; /** * Represents the possible selection options of the ListBox. * * The possible values are: * - `'single'` - allows the selection of a single item. * - `'multiple'` - allows the selection of multiple items. */ type SelectionMode = 'single' | 'multiple'; /** * Defines the event that fires when you make a new selection in the ListBox component. * */ interface ListBoxSelectionEvent { /** * The indices of items that were selected with the last selection operation. * Returns `null` if no items were selected. */ selectedIndices: number[] | null; /** * The indices of items that were deselected with the last selection operation. * Returns `null` if no items were deselected. */ deselectedIndices: number[] | null; } /** * @hidden */ declare class ListBoxSelectionService { selectedIndices: number[]; selectionMode: SelectionMode; lastSelectedOrUnselectedIndex: number | null; rangeSelectionTargetIndex: number | null; rangeSelectionAnchorIndex: number | null; isItemDisabled: (index: number) => boolean; onSelect: EventEmitter; select(index: number, ctrlKey?: boolean, shiftKey?: boolean): void; selectRange(targetIndex: number): void; setSelectedIndices(indices: number[]): void; addToSelectedIndices(index: number): void; selectAll(totalItems: number): void; areAllSelected(totalItems: number): boolean; isSelected(index: number): boolean; clearSelection(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Allows you to customize the rendering of each item in the Kendo UI ListBox for Angular. * * Place an `` with the `kendoListBoxItemTemplate` directive inside your `` component. * The template context exposes the current data item as `let-dataItem`. * * @example * ```typescript * @Component({ * selector: 'my-app', * template: ` * * * {{ dataItem }} item * * * ` * }) * export class AppComponent { } * ``` */ declare class ItemTemplateDirective { templateRef: TemplateRef; constructor(templateRef: TemplateRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Lets you customize the content shown when the ListBox has no data to display. * To define a no-data template, nest an `` tag * with the `kendoListBoxNoDataTemplate` directive inside the `` tag * ([see example](https://www.telerik.com/kendo-angular-ui/components/listbox/templates#no-data-template)). * * @example * ```html * * * No items to display. * * * ``` */ declare class NoDataTemplateDirective { templateRef: TemplateRef; constructor(templateRef: TemplateRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Defines the possible toolbar buttons that the ListBox can display. */ type ActionName = 'moveUp' | 'moveDown' | 'transferTo' | 'transferFrom' | 'transferAllTo' | 'transferAllFrom' | 'remove'; /** * Defines the possible values for customizing the toolbar position of the ListBox component. */ type ListBoxToolbarPosition = 'left' | 'right' | 'top' | 'bottom'; /** * Defines the possible tool and position settings that the ListBox can accept for its built-in toolbar. */ interface ListBoxToolbarConfig { /** * Specifies the set of tools to display in the toolbar. * When you omit this setting, all tools are included. */ tools?: ActionName[]; /** * Specifies the position of the toolbar. */ position?: ListBoxToolbarPosition; } /** * @hidden */ interface Tool { name: ActionName; label: string; icon: string; svgIcon: SVGIcon; } /** * @hidden */ type Direction = 'rtl' | 'ltr'; /** * Defines the possible size options of the ListBox. * The size affects the height of the listbox and the size of the items. */ type ListBoxSize = 'small' | 'medium' | 'large'; /** * @hidden * Internal event for keyboard navigation selection changes */ interface KeyboardSelectionEvent { index: number; prevIndex?: number; ctrlKey?: boolean; shiftKey?: boolean; } /** * @hidden */ declare class KeyboardNavigationService { private renderer; private zone; selectedListboxItemIndex: number; focusedListboxItemIndex: number; focusedToolIndex: number; onDeleteEvent: EventEmitter; onMoveSelectedItem: EventEmitter; onTransferAllEvent: EventEmitter; onShiftSelectedItem: EventEmitter; onSelectionChange: EventEmitter; onSelectAll: EventEmitter; onSelectToEnd: EventEmitter<{ direction: 'home' | 'end'; }>; constructor(renderer: Renderer2, zone: NgZone); onKeyDown(event: any, toolsRef: Array