/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges, TemplateRef } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { SVGIcon } from '@progress/kendo-svg-icons'; import { PopupService } from '@progress/kendo-angular-popup'; import { SpeechToTextButtonSettings, SegmentedItemSettings } from "@progress/kendo-angular-buttons"; import { IntlService } from '@progress/kendo-angular-intl'; import { HistoryItem, SmartBoxAIAssistantSettings, SmartBoxHistorySettings, SmartBoxRequestEvent, SmartBoxResponseErrorEvent, SmartBoxResponseSuccessEvent, SmartBoxSearchEvent, SmartBoxSearchSettings, SmartBoxSemanticSearchEvent, SmartBoxSemanticSearchSettings, SmartBoxSize } from './models'; import { GridSmartBoxMode } from '../models'; import { ContextService } from '../../../../../common/provider.service'; import { GridAIRequestResponseService } from '../../ai-assistant/ai-request-response.service'; import { GridSmartBoxPromptSuggestionTemplateDirective } from '../smartbox-suggestion.template'; import { GridSmartBoxHistoryItemTemplateDirective } from '../smartbox-history-item.template'; import { ColumnInfoService } from '../../../../../common/column-info.service'; import { SearchService } from '../search.service'; import * as i0 from "@angular/core"; /** * @hidden */ export declare class SmartBoxComponent implements AfterViewInit, OnChanges, OnDestroy { private popupService; private wrapper; private cdr; private zone; private intl; private ctx; private aiRequestResponseService; private http; private renderer; private columnInfoService; private searchService; popupTemplate: TemplateRef; input: ElementRef; innerWrapper: ElementRef; set searchMode(mode: boolean | SmartBoxSearchSettings); get searchMode(): SmartBoxSearchSettings; set semanticSearchMode(mode: boolean | SmartBoxSemanticSearchSettings); get semanticSearchMode(): SmartBoxSemanticSearchSettings; set aiAssistantMode(mode: boolean | SmartBoxAIAssistantSettings); get aiAssistantMode(): SmartBoxAIAssistantSettings; set speechToTextButton(value: SpeechToTextButtonSettings | boolean); get speechToTextButton(): SpeechToTextButtonSettings; get searchHistorySettings(): SmartBoxHistorySettings; get semanticSearchHistorySettings(): SmartBoxHistorySettings; get aiAssistantHistorySettings(): SmartBoxHistorySettings; get inputPlaceholder(): string; set activeMode(value: GridSmartBoxMode); get activeMode(): GridSmartBoxMode; set history(value: boolean | SmartBoxHistorySettings); get history(): SmartBoxHistorySettings; placeholder: string; set size(size: SmartBoxSize); get size(): SmartBoxSize; promptSuggestionTemplate: GridSmartBoxPromptSuggestionTemplateDirective; historyItemTemplate: GridSmartBoxHistoryItemTemplateDirective; loading: boolean; open: EventEmitter; close: EventEmitter; focus: EventEmitter; blur: EventEmitter; aiAssistantPromptRequest: EventEmitter; aiAssistantResponseSuccess: EventEmitter; aiAssistantResponseError: EventEmitter; aiAssistantCancelRequest: EventEmitter; search: EventEmitter; semanticSearch: EventEmitter; modeChange: EventEmitter; constructor(popupService: PopupService, wrapper: ElementRef, cdr: ChangeDetectorRef, zone: NgZone, intl: IntlService, ctx: ContextService, aiRequestResponseService: GridAIRequestResponseService, http: HttpClient, renderer: Renderer2, columnInfoService: ColumnInfoService, searchService: SearchService); ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; ngOnDestroy(): void; focusableId: string; selectedView: GridSmartBoxMode; isOpen: boolean; checkIcon: SVGIcon; clockArrowRotateIcon: SVGIcon; fileClockIcon: SVGIcon; searchIcon: SVGIcon; zoomSparkleIcon: SVGIcon; sparklesIcon: SVGIcon; arrowUpIcon: SVGIcon; stopIcon: SVGIcon; xIcon: SVGIcon; lightbulbIcon: SVGIcon; searchListData: Array<{ text: string; description: string; selected: boolean; }>; aiAssistantHistory: HistoryItem[]; searchHistory: HistoryItem[]; semanticSearchHistory: HistoryItem[]; segmentedControlButtons: SegmentedItemSettings[]; segmentedControlSelectedIndex: number; get prefixIconName(): string; get prefixSVGIcon(): SVGIcon; messageFor(message: string): string; formatDate(date: Date, format: string): string; onModeChange(index: number): void; onSearchItemClick(item: any): void; onListItemClick(item: string): void; handleInput: (_event: any) => void; handleInputValueChange(): void; handleInputFocus: () => void; handleInputBlur: () => void; handleInputClick: () => void; handleInputKeydown: (event: KeyboardEvent) => void; onIconClick: () => void; onIconMouseDown: (args: any) => void; clearButtonClick(event: any): void; private _searchMode; private _semanticSearchMode; private _aiAssistantMode; private _activeMode; private _history; private _size; private _speechToTextButton; private popupRef; private popupMouseDownHandler; private requestData; private currentRequestSubscription; private searchSubscription; private columns; private leafColumns; private searchTypingTimeout; private lastSearchValue; togglePopup(open: boolean): void; onPromptSubmit(): void; onSpeechToTextResult(event: any): void; onSpeechToTextError(event: any): void; get searchPlaceholder(): string; get semanticSearchPlaceholder(): string; get aiAssistantPlaceholder(): string; get inputDisabled(): boolean; private createPopup; private destroyPopup; private _toggle; private clearTypingTimeout; private sendPromptRequest; handleResponseCancel(): void; private unsubscribeCurrentRequest; private get popupWidth(); private handleSizeClass; private updateModeSettingsFromSharedInputs; private updateSearchListData; private updateSelectedView; private updateSegmentedControlState; private updateHistoryData; private processResponse; private handleError; private clearValue; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }