@progress/kendo-angular-conversational-ui 24.2.2 → 25.0.0-develop.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +228 -228
- package/index.d.ts +4350 -51
- package/package-metadata.mjs +2 -2
- package/package.json +18 -18
- package/ai-prompt/aiprompt.component.d.ts +0 -203
- package/ai-prompt/aiprompt.module.d.ts +0 -38
- package/ai-prompt/common/aiprompt.service.d.ts +0 -36
- package/ai-prompt/common/output-card.component.d.ts +0 -42
- package/ai-prompt/common/toolbar-focusable.directive.d.ts +0 -24
- package/ai-prompt/common/toolbar-navigation.service.d.ts +0 -24
- package/ai-prompt/localization/custom-messages.component.d.ts +0 -28
- package/ai-prompt/localization/localized-messages.directive.d.ts +0 -16
- package/ai-prompt/localization/messages.d.ts +0 -53
- package/ai-prompt/models/ai-prompt-settings.d.ts +0 -60
- package/ai-prompt/models/command-execute-event.d.ts +0 -24
- package/ai-prompt/models/command.interface.d.ts +0 -30
- package/ai-prompt/models/index.d.ts +0 -11
- package/ai-prompt/models/output-rating-change-event.d.ts +0 -19
- package/ai-prompt/models/prompt-output.interface.d.ts +0 -41
- package/ai-prompt/models/prompt-request-event.d.ts +0 -23
- package/ai-prompt/models/view-type.d.ts +0 -8
- package/ai-prompt/templates/aiprompt-output-body-template.directive.d.ts +0 -24
- package/ai-prompt/templates/aiprompt-output-template.directive.d.ts +0 -24
- package/ai-prompt/templates/toolbar-actions.template.d.ts +0 -28
- package/ai-prompt/utils.d.ts +0 -19
- package/ai-prompt/views/base-view.d.ts +0 -46
- package/ai-prompt/views/command-view.component.d.ts +0 -36
- package/ai-prompt/views/custom-view.component.d.ts +0 -30
- package/ai-prompt/views/index.d.ts +0 -8
- package/ai-prompt/views/output-view.component.d.ts +0 -33
- package/ai-prompt/views/prompt-view.component.d.ts +0 -76
- package/chat/api/action.interface.d.ts +0 -30
- package/chat/api/attachment.interface.d.ts +0 -33
- package/chat/api/chat-file-interface.d.ts +0 -41
- package/chat/api/chat-load-more-event.d.ts +0 -18
- package/chat/api/chat-referenced-message-click-event.d.ts +0 -18
- package/chat/api/chat-suggestion.interface.d.ts +0 -25
- package/chat/api/execute-action-event.d.ts +0 -27
- package/chat/api/file-action.d.ts +0 -45
- package/chat/api/file-download-event.interface.d.ts +0 -21
- package/chat/api/files-layout.d.ts +0 -12
- package/chat/api/index.d.ts +0 -25
- package/chat/api/message-action.d.ts +0 -45
- package/chat/api/message-box.d.ts +0 -28
- package/chat/api/message-settings.interface.d.ts +0 -41
- package/chat/api/message-status.interface.d.ts +0 -22
- package/chat/api/message-width-mode.d.ts +0 -10
- package/chat/api/message.interface.d.ts +0 -77
- package/chat/api/post-message-event.d.ts +0 -29
- package/chat/api/preventable-event.d.ts +0 -24
- package/chat/api/scroll-mode.d.ts +0 -12
- package/chat/api/send-button-settings.d.ts +0 -24
- package/chat/api/suggestions-layout.d.ts +0 -20
- package/chat/api/timestamp-visibility.d.ts +0 -10
- package/chat/api/user.interface.d.ts +0 -30
- package/chat/attachment.component.d.ts +0 -22
- package/chat/builtin-actions.d.ts +0 -14
- package/chat/cards/hero-card.component.d.ts +0 -49
- package/chat/chat-file.component.d.ts +0 -34
- package/chat/chat-item.d.ts +0 -11
- package/chat/chat-view.d.ts +0 -54
- package/chat/chat.component.d.ts +0 -561
- package/chat/chat.directives.d.ts +0 -18
- package/chat/chat.module.d.ts +0 -51
- package/chat/common/chat.service.d.ts +0 -99
- package/chat/common/endless-scroll-state.d.ts +0 -36
- package/chat/common/models/default-model-fields.d.ts +0 -9
- package/chat/common/models/formatted-text-parts.d.ts +0 -12
- package/chat/common/models/model-fields.d.ts +0 -111
- package/chat/common/models/pending-scroll-action.d.ts +0 -11
- package/chat/common/scroll-anchor.directive.d.ts +0 -72
- package/chat/common/scroll-button.component.d.ts +0 -32
- package/chat/common/scroll.service.d.ts +0 -39
- package/chat/common/utils.d.ts +0 -87
- package/chat/l10n/custom-messages.component.d.ts +0 -28
- package/chat/l10n/localized-messages.directive.d.ts +0 -16
- package/chat/l10n/messages.d.ts +0 -98
- package/chat/message-attachments.component.d.ts +0 -56
- package/chat/message-box.component.d.ts +0 -82
- package/chat/message-list.component.d.ts +0 -85
- package/chat/message-reference-content.component.d.ts +0 -24
- package/chat/message.component.d.ts +0 -106
- package/chat/suggested-actions.component.d.ts +0 -72
- package/chat/templates/attachment-template.directive.d.ts +0 -32
- package/chat/templates/author-message-content-template.directive.d.ts +0 -28
- package/chat/templates/author-message-template.directive.d.ts +0 -28
- package/chat/templates/header-template.directive.d.ts +0 -24
- package/chat/templates/message-box-end-affix-template.directive.d.ts +0 -26
- package/chat/templates/message-box-start-affix-template.directive.d.ts +0 -26
- package/chat/templates/message-box-top-affix-template.directive.d.ts +0 -26
- package/chat/templates/message-box.directive.d.ts +0 -27
- package/chat/templates/message-content-template.directive.d.ts +0 -28
- package/chat/templates/message-template.directive.d.ts +0 -28
- package/chat/templates/no-data-template.directive.d.ts +0 -27
- package/chat/templates/receiver-message-content-template.directive.d.ts +0 -28
- package/chat/templates/receiver-message-template.directive.d.ts +0 -28
- package/chat/templates/status-template.directive.d.ts +0 -24
- package/chat/templates/suggestion-template.directive.d.ts +0 -27
- package/chat/templates/timestamp-template.directive.d.ts +0 -31
- package/chat/templates/user-status-template.directive.d.ts +0 -27
- package/conversational-ui.module.d.ts +0 -70
- package/directives.d.ts +0 -138
- package/inline-ai-prompt/inlineaiprompt-content.component.d.ts +0 -82
- package/inline-ai-prompt/inlineaiprompt.component.d.ts +0 -159
- package/inline-ai-prompt/inlineaiprompt.module.d.ts +0 -31
- package/inline-ai-prompt/inlineaiprompt.service.d.ts +0 -48
- package/inline-ai-prompt/localization/custom-messages.component.d.ts +0 -25
- package/inline-ai-prompt/localization/localized-messages.directive.d.ts +0 -16
- package/inline-ai-prompt/localization/messages.d.ts +0 -25
- package/inline-ai-prompt/models/command.interface.d.ts +0 -38
- package/inline-ai-prompt/models/index.d.ts +0 -12
- package/inline-ai-prompt/models/inlineaiprompt-popupsettings.d.ts +0 -10
- package/inline-ai-prompt/models/inlineaiprompt-settings.d.ts +0 -66
- package/inline-ai-prompt/models/messages.d.ts +0 -21
- package/inline-ai-prompt/models/output-action-click-event.d.ts +0 -19
- package/inline-ai-prompt/models/output-action.interface.d.ts +0 -54
- package/inline-ai-prompt/models/prompt-output.interface.d.ts +0 -25
- package/inline-ai-prompt/models/prompt-request-event.d.ts +0 -17
- package/inline-ai-prompt/output-template.directive.d.ts +0 -27
- package/inline-ai-prompt/utils.d.ts +0 -17
- package/package-metadata.d.ts +0 -9
- package/promptbox/affixes/promptbox-end-affix.component.d.ts +0 -26
- package/promptbox/affixes/promptbox-start-affix.component.d.ts +0 -26
- package/promptbox/affixes/promptbox-top-affix.component.d.ts +0 -26
- package/promptbox/common/header-template.directive.d.ts +0 -17
- package/promptbox/common/models/action-button.d.ts +0 -66
- package/promptbox/common/models/fileselect-button.d.ts +0 -62
- package/promptbox/common/models/index.d.ts +0 -7
- package/promptbox/common/models/promptbox-mode.d.ts +0 -12
- package/promptbox/common/utils.d.ts +0 -18
- package/promptbox/localization/custom-messages.component.d.ts +0 -26
- package/promptbox/localization/localized-messages.directive.d.ts +0 -16
- package/promptbox/localization/messages.d.ts +0 -37
- package/promptbox/promptbox.component.d.ts +0 -385
- package/promptbox/tools/action-button.component.d.ts +0 -63
- package/promptbox/tools/base-tool.d.ts +0 -65
- package/promptbox/tools/fileselect-button.component.d.ts +0 -63
- package/promptbox/tools/promptbox-file.component.d.ts +0 -30
- package/promptbox/tools/speech-to-text-button.component.d.ts +0 -87
package/chat/chat.module.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./chat.component";
|
|
7
|
-
import * as i2 from "./l10n/custom-messages.component";
|
|
8
|
-
import * as i3 from "./templates/attachment-template.directive";
|
|
9
|
-
import * as i4 from "./templates/author-message-content-template.directive";
|
|
10
|
-
import * as i5 from "./templates/receiver-message-content-template.directive";
|
|
11
|
-
import * as i6 from "./templates/message-content-template.directive";
|
|
12
|
-
import * as i7 from "./templates/author-message-template.directive";
|
|
13
|
-
import * as i8 from "./templates/receiver-message-template.directive";
|
|
14
|
-
import * as i9 from "./templates/message-template.directive";
|
|
15
|
-
import * as i10 from "./cards/hero-card.component";
|
|
16
|
-
import * as i11 from "./templates/message-box.directive";
|
|
17
|
-
import * as i12 from "./templates/message-box-start-affix-template.directive";
|
|
18
|
-
import * as i13 from "./templates/message-box-end-affix-template.directive";
|
|
19
|
-
import * as i14 from "./templates/message-box-top-affix-template.directive";
|
|
20
|
-
import * as i15 from "./templates/header-template.directive";
|
|
21
|
-
import * as i16 from "./templates/no-data-template.directive";
|
|
22
|
-
import * as i17 from "./templates/timestamp-template.directive";
|
|
23
|
-
import * as i18 from "./templates/status-template.directive";
|
|
24
|
-
import * as i19 from "./templates/suggestion-template.directive";
|
|
25
|
-
import * as i20 from "./templates/user-status-template.directive";
|
|
26
|
-
/**
|
|
27
|
-
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) for the Chat component.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts-no-run
|
|
31
|
-
* import { NgModule } from '@angular/core';
|
|
32
|
-
* import { Component } from '@angular/core';
|
|
33
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
34
|
-
*
|
|
35
|
-
* import { ChatModule } from '@progress/kendo-angular-conversational-ui';
|
|
36
|
-
* import { AppComponent } from './app.component';
|
|
37
|
-
*
|
|
38
|
-
* _@NgModule({
|
|
39
|
-
* imports: [BrowserModule, ChatModule],
|
|
40
|
-
* declarations: [AppComponent],
|
|
41
|
-
* bootstrap: [AppComponent]
|
|
42
|
-
* })
|
|
43
|
-
*
|
|
44
|
-
* export class AppModule { }
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare class ChatModule {
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatModule, never>;
|
|
49
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ChatModule, never, [typeof i1.ChatComponent, typeof i2.CustomMessagesComponent, typeof i3.AttachmentTemplateDirective, typeof i4.AuthorMessageContentTemplateDirective, typeof i5.ReceiverMessageContentTemplateDirective, typeof i6.MessageContentTemplateDirective, typeof i7.AuthorMessageTemplateDirective, typeof i8.ReceiverMessageTemplateDirective, typeof i9.MessageTemplateDirective, typeof i10.HeroCardComponent, typeof i11.ChatMessageBoxTemplateDirective, typeof i12.ChatMessageBoxStartAffixTemplateDirective, typeof i13.ChatMessageBoxEndAffixTemplateDirective, typeof i14.ChatMessageBoxTopAffixTemplateDirective, typeof i15.ChatHeaderTemplateDirective, typeof i16.NoDataTemplateDirective, typeof i17.ChatTimestampTemplateDirective, typeof i18.ChatStatusTemplateDirective, typeof i19.ChatSuggestionTemplateDirective, typeof i20.ChatUserStatusTemplateDirective], [typeof i1.ChatComponent, typeof i2.CustomMessagesComponent, typeof i3.AttachmentTemplateDirective, typeof i4.AuthorMessageContentTemplateDirective, typeof i5.ReceiverMessageContentTemplateDirective, typeof i6.MessageContentTemplateDirective, typeof i7.AuthorMessageTemplateDirective, typeof i8.ReceiverMessageTemplateDirective, typeof i9.MessageTemplateDirective, typeof i10.HeroCardComponent, typeof i11.ChatMessageBoxTemplateDirective, typeof i12.ChatMessageBoxStartAffixTemplateDirective, typeof i13.ChatMessageBoxEndAffixTemplateDirective, typeof i14.ChatMessageBoxTopAffixTemplateDirective, typeof i15.ChatHeaderTemplateDirective, typeof i16.NoDataTemplateDirective, typeof i17.ChatTimestampTemplateDirective, typeof i18.ChatStatusTemplateDirective, typeof i19.ChatSuggestionTemplateDirective, typeof i20.ChatUserStatusTemplateDirective]>;
|
|
50
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ChatModule>;
|
|
51
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ViewContainerRef, ElementRef, NgZone } from '@angular/core';
|
|
6
|
-
import { SpeechToTextButtonSettings } from '@progress/kendo-angular-buttons';
|
|
7
|
-
import { MessageWidthMode } from '../api/message-width-mode';
|
|
8
|
-
import { FileAction, FileActionEvent, FileDownloadEvent, FilesLayoutMode, Message, MessageAction, MessageActionEvent, MessageSettings, QuickActionsLayoutMode, ResendMessageEvent, SendButtonSettings, SuggestionsLayoutMode } from '../api';
|
|
9
|
-
import { FileSelectButtonSettings } from '../../promptbox/common/models';
|
|
10
|
-
import { MessageBoxSettings } from '../api/message-box';
|
|
11
|
-
import { ContextMenuComponent } from '@progress/kendo-angular-menu';
|
|
12
|
-
import { TimestampVisibilityMode } from '../api/timestamp-visibility';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare class ChatService {
|
|
18
|
-
private zone;
|
|
19
|
-
authorId: string | number;
|
|
20
|
-
messageWidthMode: MessageWidthMode;
|
|
21
|
-
messageContextMenuActions: MessageAction[];
|
|
22
|
-
calculatedContextMenuActions: MessageAction[];
|
|
23
|
-
fileActions: FileAction[];
|
|
24
|
-
toggleMessageState: boolean;
|
|
25
|
-
layoutChangeInProgress: boolean;
|
|
26
|
-
reply: Message;
|
|
27
|
-
messages: Message[];
|
|
28
|
-
repliedToMessages: Message[];
|
|
29
|
-
chatElement: ViewContainerRef;
|
|
30
|
-
messageElementsMap: Map<string | number, ElementRef>;
|
|
31
|
-
messagesContextMenu: ContextMenuComponent;
|
|
32
|
-
activeMessage: Message;
|
|
33
|
-
activeMessageElement: any;
|
|
34
|
-
selectOnMenuClose: boolean;
|
|
35
|
-
active: boolean;
|
|
36
|
-
messageFilesLayout: FilesLayoutMode;
|
|
37
|
-
timestampVisibility: TimestampVisibilityMode;
|
|
38
|
-
showUsername: boolean;
|
|
39
|
-
showAvatar: boolean;
|
|
40
|
-
private _speechToTextButton;
|
|
41
|
-
private _fileSelectButton;
|
|
42
|
-
private _sendButtonSettings;
|
|
43
|
-
private _messageBoxSettings;
|
|
44
|
-
private _suggestionsLayout;
|
|
45
|
-
private _quickActionsLayout;
|
|
46
|
-
private _messageToolbarActions;
|
|
47
|
-
_authorMessageSettings: MessageSettings;
|
|
48
|
-
_receiverMessageSettings: MessageSettings;
|
|
49
|
-
private _allowMessageCollapse;
|
|
50
|
-
private subjects;
|
|
51
|
-
toolbarAction$: import("rxjs").Observable<MessageActionEvent>;
|
|
52
|
-
contextMenuAction$: import("rxjs").Observable<MessageActionEvent>;
|
|
53
|
-
fileAction$: import("rxjs").Observable<FileActionEvent>;
|
|
54
|
-
fileDownload$: import("rxjs").Observable<FileDownloadEvent>;
|
|
55
|
-
resendMessage$: import("rxjs").Observable<ResendMessageEvent>;
|
|
56
|
-
replyReferenceClick$: import("rxjs").Observable<string | number>;
|
|
57
|
-
inputValueChange$: import("rxjs").Observable<string>;
|
|
58
|
-
contextMenuVisibilityChange$: import("rxjs").Observable<boolean>;
|
|
59
|
-
suggestionsLayoutChange$: import("rxjs").Observable<SuggestionsLayoutMode>;
|
|
60
|
-
quickActionsLayoutChange$: import("rxjs").Observable<SuggestionsLayoutMode>;
|
|
61
|
-
authorMessageSettingsChange$: import("rxjs").Observable<MessageSettings>;
|
|
62
|
-
receiverMessageSettingsChange$: import("rxjs").Observable<MessageSettings>;
|
|
63
|
-
allowMessageCollapseChange$: import("rxjs").Observable<boolean>;
|
|
64
|
-
messageToolbarActionsChange$: import("rxjs").Observable<MessageAction[]>;
|
|
65
|
-
constructor(zone: NgZone);
|
|
66
|
-
set authorMessageSettings(settings: MessageSettings);
|
|
67
|
-
get authorMessageSettings(): MessageSettings;
|
|
68
|
-
set receiverMessageSettings(settings: MessageSettings);
|
|
69
|
-
get receiverMessageSettings(): MessageSettings;
|
|
70
|
-
set speechToTextButton(settings: boolean | SpeechToTextButtonSettings);
|
|
71
|
-
get speechToTextButton(): SpeechToTextButtonSettings | null;
|
|
72
|
-
set fileSelectButton(settings: boolean | FileSelectButtonSettings);
|
|
73
|
-
get fileSelectButton(): FileSelectButtonSettings | null;
|
|
74
|
-
set sendButton(settings: boolean | SendButtonSettings);
|
|
75
|
-
get sendButton(): SendButtonSettings | null;
|
|
76
|
-
set messageBoxSettings(settings: MessageBoxSettings);
|
|
77
|
-
get messageBoxSettings(): MessageBoxSettings;
|
|
78
|
-
set suggestionsLayout(layoutMode: SuggestionsLayoutMode);
|
|
79
|
-
get suggestionsLayout(): SuggestionsLayoutMode;
|
|
80
|
-
set quickActionsLayout(layoutMode: QuickActionsLayoutMode);
|
|
81
|
-
get quickActionsLayout(): QuickActionsLayoutMode;
|
|
82
|
-
set messageToolbarActions(value: MessageAction[]);
|
|
83
|
-
get messageToolbarActions(): MessageAction[];
|
|
84
|
-
set allowMessageCollapse(value: boolean);
|
|
85
|
-
get allowMessageCollapse(): boolean;
|
|
86
|
-
calculateContextMenuActions(isOwn: boolean): void;
|
|
87
|
-
emit(subjectKey: string, value?: any): void;
|
|
88
|
-
getMessageById(id: string | number): Message | undefined;
|
|
89
|
-
registerMessageElement(messageId: string | number, elementRef: ElementRef): void;
|
|
90
|
-
unregisterMessageElement(messageId: string | number): void;
|
|
91
|
-
scrollToMessage(messageId: string | number, behavior?: ScrollBehavior): void;
|
|
92
|
-
focusActiveMessageElement(): void;
|
|
93
|
-
isOwnMessage(message: Message): boolean;
|
|
94
|
-
private getScrollContainer;
|
|
95
|
-
private computeScrollTarget;
|
|
96
|
-
private updateComponentSettings;
|
|
97
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatService, never>;
|
|
98
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ChatService>;
|
|
99
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*
|
|
8
|
-
* Tracks the rendered range for endless scroll mode.
|
|
9
|
-
* Pure logic — no Angular dependency.
|
|
10
|
-
*/
|
|
11
|
-
export interface EndlessScrollRange {
|
|
12
|
-
start: number;
|
|
13
|
-
end: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export declare class EndlessScrollState {
|
|
19
|
-
startIndex: number;
|
|
20
|
-
endIndex: number;
|
|
21
|
-
isLoading: boolean;
|
|
22
|
-
get isAtStart(): boolean;
|
|
23
|
-
get isAtEnd(): boolean;
|
|
24
|
-
private _total;
|
|
25
|
-
private _pageSize;
|
|
26
|
-
get pageSize(): number;
|
|
27
|
-
init(total: number, pageSize: number): EndlessScrollRange;
|
|
28
|
-
extendUp(): EndlessScrollRange | null;
|
|
29
|
-
extendDown(): EndlessScrollRange | null;
|
|
30
|
-
jumpTo(targetIndex: number): EndlessScrollRange;
|
|
31
|
-
jumpToEnd(): EndlessScrollRange;
|
|
32
|
-
updateTotal(total: number): void;
|
|
33
|
-
reset(): void;
|
|
34
|
-
contains(index: number): boolean;
|
|
35
|
-
syncFromInputs(start: number, end: number, total: number): void;
|
|
36
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ConversationalUIModelFields } from "./model-fields";
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const defaultModelFields: ConversationalUIModelFields;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export interface FormattedTextPart {
|
|
9
|
-
type: 'text' | 'link';
|
|
10
|
-
content: string;
|
|
11
|
-
href?: string;
|
|
12
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Defines the model fields that will be used for creating `Message` instances.
|
|
7
|
-
*/
|
|
8
|
-
export interface ConversationalUIModelFields {
|
|
9
|
-
/**
|
|
10
|
-
* Field name for message ID.
|
|
11
|
-
*
|
|
12
|
-
* @default "id"
|
|
13
|
-
*/
|
|
14
|
-
idField?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Field name for message text content.
|
|
17
|
-
*
|
|
18
|
-
* @default "text"
|
|
19
|
-
*/
|
|
20
|
-
textField?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Field name for message author ID.
|
|
23
|
-
*
|
|
24
|
-
* @default "authorId"
|
|
25
|
-
*/
|
|
26
|
-
authorIdField?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Field name for message author name (when flattened in data source).
|
|
29
|
-
*
|
|
30
|
-
* @default "authorName"
|
|
31
|
-
*/
|
|
32
|
-
authorNameField?: string;
|
|
33
|
-
/**
|
|
34
|
-
* Field name for message author avatar URL (when flattened in data source).
|
|
35
|
-
*
|
|
36
|
-
* @default "authorImageUrl"
|
|
37
|
-
*/
|
|
38
|
-
authorImageUrlField?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Field name for alt text of the author's avatar (when flattened in data source).
|
|
41
|
-
*
|
|
42
|
-
* @default "authorImageAltText"
|
|
43
|
-
*/
|
|
44
|
-
authorImageAltTextField?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Field name for message timestamp.
|
|
47
|
-
*
|
|
48
|
-
* @default "timestamp"
|
|
49
|
-
*/
|
|
50
|
-
timestampField?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Field name for message status. Use this when status is a string or an object.
|
|
53
|
-
*
|
|
54
|
-
* @default "status"
|
|
55
|
-
*/
|
|
56
|
-
statusField?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Field name for file attachments.
|
|
59
|
-
*
|
|
60
|
-
* @default "files"
|
|
61
|
-
*/
|
|
62
|
-
filesField?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Field name for message attachments.
|
|
65
|
-
*
|
|
66
|
-
* @default "attachments"
|
|
67
|
-
*/
|
|
68
|
-
attachmentsField?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Field name for message attachment layout.
|
|
71
|
-
*
|
|
72
|
-
* @default "attachmentLayout"
|
|
73
|
-
*/
|
|
74
|
-
attachmentLayoutField?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Field name for suggested actions.
|
|
77
|
-
*
|
|
78
|
-
* @default "suggestedActions"
|
|
79
|
-
*/
|
|
80
|
-
suggestedActionsField?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Field name for message pinned status.
|
|
83
|
-
*
|
|
84
|
-
* @default "isPinned"
|
|
85
|
-
*/
|
|
86
|
-
isPinnedField?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Field name for reply-to message ID.
|
|
89
|
-
*
|
|
90
|
-
* @default "replyToId"
|
|
91
|
-
*/
|
|
92
|
-
replyToIdField?: string;
|
|
93
|
-
/**
|
|
94
|
-
* Field name for message deletion status.
|
|
95
|
-
*
|
|
96
|
-
* @default "isDeleted"
|
|
97
|
-
*/
|
|
98
|
-
isDeletedField?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Field name for the typing indicator.
|
|
101
|
-
*
|
|
102
|
-
* @default "typing"
|
|
103
|
-
*/
|
|
104
|
-
typingField?: string;
|
|
105
|
-
/**
|
|
106
|
-
* Field name for the failed status.
|
|
107
|
-
*
|
|
108
|
-
* @default "failed"
|
|
109
|
-
*/
|
|
110
|
-
failedField?: string;
|
|
111
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
* Scroll action scheduled after a new message is appended.
|
|
8
|
-
* `author` — the local user sent the message; scroll fully to the bottom.
|
|
9
|
-
* `receiver` — a remote message arrived while the user was near the bottom; scroll with threshold.
|
|
10
|
-
*/
|
|
11
|
-
export type PendingScrollAction = 'author' | 'receiver';
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare class ScrollAnchorDirective implements AfterViewInit, OnInit, OnDestroy {
|
|
11
|
-
private element;
|
|
12
|
-
private zone;
|
|
13
|
-
private renderer;
|
|
14
|
-
private cdr;
|
|
15
|
-
autoScroll: boolean;
|
|
16
|
-
autoScrollThreshold: number | string;
|
|
17
|
-
set endlessMode(value: boolean);
|
|
18
|
-
get endlessMode(): boolean;
|
|
19
|
-
rangeIsAtEnd: boolean;
|
|
20
|
-
autoScrollChange: EventEmitter<boolean>;
|
|
21
|
-
nearTop: EventEmitter<void>;
|
|
22
|
-
nearBottom: EventEmitter<void>;
|
|
23
|
-
overflowAnchor: string;
|
|
24
|
-
get scrollBehaviorStyle(): string;
|
|
25
|
-
showScrollToBottomButton: boolean;
|
|
26
|
-
showMessageBoxSeparator: boolean;
|
|
27
|
-
private scrolling;
|
|
28
|
-
private unsubscribe;
|
|
29
|
-
private scrollUpdate;
|
|
30
|
-
private _previousScrollHeight;
|
|
31
|
-
private _previousScrollTop;
|
|
32
|
-
private _pendingScrollPreservation;
|
|
33
|
-
private _endlessMode;
|
|
34
|
-
private _nearTopLocked;
|
|
35
|
-
private _nearBottomLocked;
|
|
36
|
-
private _scrollingToMessage;
|
|
37
|
-
private _initialScrollDone;
|
|
38
|
-
private _subs;
|
|
39
|
-
private _streamingFollow;
|
|
40
|
-
private _thresholdScrollCap;
|
|
41
|
-
private _streamingPrevScrollTop;
|
|
42
|
-
private _streamingPrevHeight;
|
|
43
|
-
private _streamingPrevMsgCount;
|
|
44
|
-
private _mutationObserver;
|
|
45
|
-
constructor(element: ElementRef, zone: NgZone, renderer: Renderer2, cdr: ChangeDetectorRef);
|
|
46
|
-
ngOnInit(): void;
|
|
47
|
-
ngAfterViewInit(): void;
|
|
48
|
-
ngOnDestroy(): void;
|
|
49
|
-
onScroll(): void;
|
|
50
|
-
autoScrollToBottom(): void;
|
|
51
|
-
scrollToBottom(): void;
|
|
52
|
-
scrollToBottomWithSettle(onComplete?: () => void): void;
|
|
53
|
-
scrollWithThreshold(messageEl: HTMLElement): void;
|
|
54
|
-
recordScrollHeight(): void;
|
|
55
|
-
preserveScrollPosition(): void;
|
|
56
|
-
calculateMessageBoxSeparator(): void;
|
|
57
|
-
getDistanceFromBottom(): number;
|
|
58
|
-
setAriaLive(value: string): void;
|
|
59
|
-
lockForMessageScroll(): void;
|
|
60
|
-
unlockForMessageScroll(): void;
|
|
61
|
-
getAutoScrollThresholdPx(): number;
|
|
62
|
-
get isFollowingThreshold(): boolean;
|
|
63
|
-
private followStreamingContent;
|
|
64
|
-
private updateScrollToBottomButton;
|
|
65
|
-
private detectStreamingScrollUp;
|
|
66
|
-
private parseThreshold;
|
|
67
|
-
private getPinnedBarHeight;
|
|
68
|
-
private setupScrollUpdate;
|
|
69
|
-
private performScroll;
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScrollAnchorDirective, never>;
|
|
71
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollAnchorDirective, "[kendoChatScrollAnchor]", ["scrollAnchor"], { "autoScroll": { "alias": "autoScroll"; "required": false; }; "autoScrollThreshold": { "alias": "autoScrollThreshold"; "required": false; }; "endlessMode": { "alias": "endlessMode"; "required": false; }; "rangeIsAtEnd": { "alias": "rangeIsAtEnd"; "required": false; }; }, { "autoScrollChange": "autoScrollChange"; "nearTop": "nearTop"; "nearBottom": "nearBottom"; }, never, never, true, never>;
|
|
72
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef, Renderer2, NgZone, AfterViewInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
6
|
-
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { ScrollButtonType } from './utils';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare class ChatScrollableButtonComponent implements AfterViewInit, OnDestroy {
|
|
14
|
-
host: ElementRef;
|
|
15
|
-
private renderer;
|
|
16
|
-
private ngZone;
|
|
17
|
-
private localization;
|
|
18
|
-
role: string;
|
|
19
|
-
prev: boolean;
|
|
20
|
-
onClick: EventEmitter<ScrollButtonType>;
|
|
21
|
-
get scrollButtonIconClass(): string;
|
|
22
|
-
get scrollButtonSVGIcon(): SVGIcon;
|
|
23
|
-
private chevronLeftIcon;
|
|
24
|
-
private chevronRightIcon;
|
|
25
|
-
private subs;
|
|
26
|
-
constructor(host: ElementRef, renderer: Renderer2, ngZone: NgZone, localization: LocalizationService);
|
|
27
|
-
ngAfterViewInit(): void;
|
|
28
|
-
ngOnDestroy(): void;
|
|
29
|
-
private clickHandler;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChatScrollableButtonComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChatScrollableButtonComponent, "[kendoChatScrollableButton]", never, { "prev": { "alias": "prev"; "required": false; }; }, { "onClick": "onClick"; }, never, never, true, never>;
|
|
32
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgZone } from '@angular/core';
|
|
6
|
-
import { Subject } from 'rxjs';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { SuggestedActionsComponent } from '../suggested-actions.component';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export type ScrollButtonActiveStateChange = {
|
|
14
|
-
buttonType: string;
|
|
15
|
-
active: boolean;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare class SuggestionsScrollService {
|
|
21
|
-
private ngZone;
|
|
22
|
-
private localization;
|
|
23
|
-
owner: SuggestedActionsComponent;
|
|
24
|
-
position: number;
|
|
25
|
-
scrollButtonActiveStateChange: Subject<ScrollButtonActiveStateChange>;
|
|
26
|
-
get scrollElement(): HTMLElement;
|
|
27
|
-
get scrollContainerOverflowSize(): number;
|
|
28
|
-
get suggestionsOverflow(): boolean;
|
|
29
|
-
constructor(ngZone: NgZone, localization: LocalizationService);
|
|
30
|
-
toggleScrollButtonsState(): void;
|
|
31
|
-
onScroll(e: Event): void;
|
|
32
|
-
scrollSuggestions(direction: string): void;
|
|
33
|
-
updateScrollPosition(element: HTMLElement): void;
|
|
34
|
-
calculateListPosition(direction: string, scrollSpeed: number): void;
|
|
35
|
-
private toggleButtonActiveState;
|
|
36
|
-
private isDisabled;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SuggestionsScrollService, never>;
|
|
38
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SuggestionsScrollService>;
|
|
39
|
-
}
|
package/chat/common/utils.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Message, SendButtonSettings, MessageAction, FileAction, SuggestionsLayoutMode } from "../api";
|
|
6
|
-
import { ConversationalUIModelFields } from "./models/model-fields";
|
|
7
|
-
import { FileSelectButtonSettings } from '../../promptbox/common/models';
|
|
8
|
-
import { SpeechToTextButtonSettings } from "@progress/kendo-angular-buttons";
|
|
9
|
-
import { MessageBoxSettings } from "../api/message-box";
|
|
10
|
-
import { NgZone } from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*
|
|
14
|
-
* Show the scroll-to-bottom button when the user is this many pixels from the bottom.
|
|
15
|
-
*/
|
|
16
|
-
export declare const scrollButtonThreshold = 100;
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*
|
|
20
|
-
* Pins a scroll container to a computed target across layout shifts.
|
|
21
|
-
* Observers extend the idle window until layout has settled; the initial and
|
|
22
|
-
* final pins bracket the settle window so the viewport lands exactly on target.
|
|
23
|
-
*/
|
|
24
|
-
export declare const settleScroll: (zone: NgZone, el: HTMLElement, computeTarget: () => number | null, onComplete: () => void, idleMs?: number, timeoutMs?: number) => void;
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export declare const closest: (node: any, predicate: any) => any;
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export declare const URL_REGEX: RegExp;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export declare const DOWNLOAD_ALL_SELECTOR = ".k-chat-download-button";
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export declare const FILE_ACTION_BTN_SELECTOR = ".k-menu-button";
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export declare const MENU_ITEM_SELECTOR = ".k-menu-link";
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
* Default settings for the Speech to Text button.
|
|
48
|
-
* These settings can be overridden by the user.
|
|
49
|
-
*/
|
|
50
|
-
export declare const STB_DEFAULT_SETTINGS: SpeechToTextButtonSettings;
|
|
51
|
-
/**
|
|
52
|
-
* @hidden
|
|
53
|
-
*/
|
|
54
|
-
export declare const SEND_BTN_DEFAULT_SETTINGS: SendButtonSettings;
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
export declare const FILESELECT_BUTTON_DEFAULT_SETTINGS: FileSelectButtonSettings;
|
|
59
|
-
/**
|
|
60
|
-
* @hidden
|
|
61
|
-
*/
|
|
62
|
-
export declare const SUGGESTIONS_LAYOUT_DEFAULT_SETTINGS: SuggestionsLayoutMode;
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
export type ScrollButtonType = 'prev' | 'next';
|
|
67
|
-
/**
|
|
68
|
-
* @hidden
|
|
69
|
-
*/
|
|
70
|
-
export declare const CONTEXT_MENU_ACTIONS: MessageAction[];
|
|
71
|
-
/**
|
|
72
|
-
* @hidden
|
|
73
|
-
*/
|
|
74
|
-
export declare const FILE_ACTIONS: FileAction[];
|
|
75
|
-
export declare const MESSAGE_BOX_SETTINGS: MessageBoxSettings;
|
|
76
|
-
/**
|
|
77
|
-
* @hidden
|
|
78
|
-
*/
|
|
79
|
-
export declare const processMessages: (messages: any[], fields?: ConversationalUIModelFields) => Message[];
|
|
80
|
-
/**
|
|
81
|
-
* @hidden
|
|
82
|
-
*/
|
|
83
|
-
export declare const parseMessage: (message: any, fields?: ConversationalUIModelFields) => Message;
|
|
84
|
-
/**
|
|
85
|
-
* @hidden
|
|
86
|
-
*/
|
|
87
|
-
export declare const transformActions: (actions: MessageAction[]) => any[];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
-
import { Messages } from './messages';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Represents the custom messages component of the Chat.
|
|
10
|
-
*
|
|
11
|
-
* Use this component to override default messages for the Chat
|
|
12
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/globalization#custom-messages)).
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```html
|
|
16
|
-
* <kendo-chat-messages
|
|
17
|
-
* send="Send Message"
|
|
18
|
-
* messagePlaceholder="Type here...">
|
|
19
|
-
* </kendo-chat-messages>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare class CustomMessagesComponent extends Messages {
|
|
23
|
-
protected service: LocalizationService;
|
|
24
|
-
constructor(service: LocalizationService);
|
|
25
|
-
protected get override(): boolean;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessagesComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-chat-messages", never, {}, {}, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
-
import { Messages } from './messages';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare class LocalizedMessagesDirective extends Messages {
|
|
12
|
-
protected service: LocalizationService;
|
|
13
|
-
constructor(service: LocalizationService);
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoChatLocalizedMessages]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|