@progress/kendo-angular-grid
Version:
Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.
157 lines (156 loc) • 8.12 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* 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 } 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 { SegmentedButtonSettings } from "../segmented-control/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<any>;
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<any>;
close: EventEmitter<any>;
focus: EventEmitter<any>;
blur: EventEmitter<any>;
aiAssistantPromptRequest: EventEmitter<SmartBoxRequestEvent>;
aiAssistantResponseSuccess: EventEmitter<SmartBoxResponseSuccessEvent>;
aiAssistantResponseError: EventEmitter<SmartBoxResponseErrorEvent>;
aiAssistantCancelRequest: EventEmitter<undefined>;
search: EventEmitter<SmartBoxSearchEvent>;
semanticSearch: EventEmitter<SmartBoxSemanticSearchEvent>;
modeChange: EventEmitter<GridSmartBoxMode>;
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;
fileClockOutlineIcon: SVGIcon;
searchIcon: SVGIcon;
zoomSparkleIcon: SVGIcon;
sparklesIcon: SVGIcon;
arrowUpOutlineIcon: SVGIcon;
stopSmIcon: SVGIcon;
xIcon: SVGIcon;
lightbulbOutlineIcon: SVGIcon;
searchListData: Array<{
text: string;
description: string;
selected: boolean;
}>;
aiAssistantHistory: HistoryItem[];
searchHistory: HistoryItem[];
semanticSearchHistory: HistoryItem[];
get segmentedControlButtons(): SegmentedButtonSettings[];
get prefixIconName(): string;
get prefixSVGIcon(): SVGIcon;
messageFor(message: string): string;
formatDate(date: Date, format: string): string;
onModeChange(button: SegmentedButtonSettings): 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 updateHistoryData;
private processResponse;
private handleError;
private clearValue;
static ɵfac: i0.ɵɵFactoryDeclaration<SmartBoxComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SmartBoxComponent, "kendo-smartbox", never, { "searchMode": { "alias": "searchMode"; "required": false; }; "semanticSearchMode": { "alias": "semanticSearchMode"; "required": false; }; "aiAssistantMode": { "alias": "aiAssistantMode"; "required": false; }; "activeMode": { "alias": "activeMode"; "required": false; }; "history": { "alias": "history"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "size": { "alias": "size"; "required": false; }; "promptSuggestionTemplate": { "alias": "promptSuggestionTemplate"; "required": false; }; "historyItemTemplate": { "alias": "historyItemTemplate"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "open": "open"; "close": "close"; "focus": "focus"; "blur": "blur"; "aiAssistantPromptRequest": "aiAssistantPromptRequest"; "aiAssistantResponseSuccess": "aiAssistantResponseSuccess"; "aiAssistantResponseError": "aiAssistantResponseError"; "aiAssistantCancelRequest": "aiAssistantCancelRequest"; "search": "search"; "semanticSearch": "semanticSearch"; "modeChange": "modeChange"; }, never, never, true, never>;
}