@progress/kendo-angular-conversational-ui 21.0.0-develop.2 → 21.0.0-develop.21
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/chat/api/files-layout.d.ts +12 -0
- package/chat/api/index.d.ts +4 -1
- package/chat/api/message-settings.interface.d.ts +41 -0
- package/chat/api/message-width-mode.d.ts +1 -1
- package/chat/api/message.interface.d.ts +5 -1
- package/chat/api/suggestions-layout.d.ts +20 -0
- package/chat/api/timestamp-visibility.d.ts +10 -0
- package/chat/chat.component.d.ts +111 -34
- package/chat/chat.directives.d.ts +18 -0
- package/chat/chat.module.d.ts +15 -8
- package/chat/common/chat.service.d.ts +36 -3
- package/chat/common/models/model-fields.d.ts +0 -6
- package/chat/common/scroll-button.component.d.ts +32 -0
- package/chat/common/scroll.service.d.ts +39 -0
- package/chat/common/utils.d.ts +13 -1
- package/chat/l10n/messages.d.ts +9 -1
- package/chat/message-list.component.d.ts +22 -3
- package/chat/message.component.d.ts +40 -16
- package/chat/suggested-actions.component.d.ts +30 -5
- package/chat/templates/author-message-content-template.directive.d.ts +28 -0
- package/chat/templates/author-message-template.directive.d.ts +28 -0
- package/chat/templates/message-content-template.directive.d.ts +28 -0
- package/chat/templates/message-template.directive.d.ts +1 -1
- package/chat/templates/no-data-template.directive.d.ts +27 -0
- package/chat/templates/receiver-message-content-template.directive.d.ts +28 -0
- package/chat/templates/receiver-message-template.directive.d.ts +28 -0
- package/chat/templates/user-status-template.directive.d.ts +27 -0
- package/codemods/utils.js +477 -375
- package/codemods/v20/chat-user.js +7 -5
- package/codemods/v21/chat-messagetoolbarvisibility.js +53 -0
- package/codemods/v21/chat-pinnedbyfield.js +19 -0
- package/conversational-ui.module.d.ts +18 -11
- package/directives.d.ts +9 -2
- package/esm2022/chat/api/index.mjs +4 -1
- package/{chat/api/message-toolbar-visibility.d.ts → esm2022/chat/api/message-settings.interface.mjs} +1 -4
- package/esm2022/chat/api/suggestions-layout.mjs +5 -0
- package/esm2022/chat/api/timestamp-visibility.mjs +5 -0
- package/esm2022/chat/builtin-actions.mjs +2 -0
- package/esm2022/chat/chat-file.component.mjs +2 -2
- package/esm2022/chat/chat.component.mjs +295 -71
- package/esm2022/chat/chat.directives.mjs +18 -0
- package/esm2022/chat/chat.module.mjs +16 -9
- package/esm2022/chat/common/chat.service.mjs +86 -4
- package/esm2022/chat/common/models/default-model-fields.mjs +0 -1
- package/esm2022/chat/common/scroll-button.component.mjs +81 -0
- package/esm2022/chat/common/scroll.service.mjs +110 -0
- package/esm2022/chat/common/utils.mjs +22 -3
- package/esm2022/chat/l10n/messages.mjs +13 -1
- package/esm2022/chat/message-attachments.component.mjs +2 -2
- package/esm2022/chat/message-box.component.mjs +5 -2
- package/esm2022/chat/message-list.component.mjs +184 -40
- package/esm2022/chat/message.component.mjs +487 -326
- package/esm2022/chat/suggested-actions.component.mjs +298 -80
- package/esm2022/chat/templates/author-message-content-template.directive.mjs +39 -0
- package/esm2022/chat/templates/author-message-template.directive.mjs +39 -0
- package/esm2022/chat/templates/message-content-template.directive.mjs +39 -0
- package/esm2022/chat/templates/message-template.directive.mjs +1 -1
- package/esm2022/chat/templates/no-data-template.directive.mjs +38 -0
- package/esm2022/chat/templates/receiver-message-content-template.directive.mjs +39 -0
- package/esm2022/chat/templates/receiver-message-template.directive.mjs +39 -0
- package/esm2022/chat/templates/user-status-template.directive.mjs +38 -0
- package/esm2022/conversational-ui.module.mjs +19 -12
- package/esm2022/directives.mjs +15 -1
- package/esm2022/index.mjs +7 -0
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-conversational-ui.mjs +1822 -567
- package/index.d.ts +7 -0
- package/package.json +26 -14
- /package/esm2022/chat/api/{message-toolbar-visibility.mjs → files-layout.mjs} +0 -0
|
@@ -34,10 +34,12 @@ const utils_1 = require("../utils");
|
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlBoundAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-chat', 'user', 'authorId', 'id');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
const j = api.jscodeshift;
|
|
@@ -45,6 +47,6 @@ function default_1(fileInfo, api) {
|
|
|
45
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
46
48
|
(0, utils_1.templateBoundAttributeTransformer)(root, 'kendo-chat', 'user', 'authorId', 'id');
|
|
47
49
|
});
|
|
48
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'ChatComponent', 'user', 'authorId', 'id');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'ChatComponent', 'user', 'authorId', 'id');
|
|
49
51
|
return rootSource.toSource();
|
|
50
52
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
+
if (mod && mod.__esModule) return mod;
|
|
24
|
+
var result = {};
|
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
+
__setModuleDefault(result, mod);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.default = default_1;
|
|
31
|
+
const fs = __importStar(require("fs"));
|
|
32
|
+
const index_1 = require("../template-transformer/index");
|
|
33
|
+
const utils_1 = require("../utils");
|
|
34
|
+
function default_1(fileInfo, api) {
|
|
35
|
+
const filePath = fileInfo.path;
|
|
36
|
+
if (filePath.endsWith('.html')) {
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeRemoval)({ ...fileInfo, source: updatedContent }, 'kendo-chat', 'messageToolbarVisibility');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const j = api.jscodeshift;
|
|
46
|
+
const rootSource = j(fileInfo.source);
|
|
47
|
+
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
48
|
+
(0, utils_1.templateAttributeRemoval)(root, 'kendo-chat', 'messageToolbarVisibility');
|
|
49
|
+
});
|
|
50
|
+
(0, utils_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, 'ChatComponent', 'messageToolbarVisibility');
|
|
51
|
+
(0, utils_1.tsComponentPropertyRemoval)(fileInfo.source, rootSource, j, 'ChatComponent', 'messageToolbarVisibility');
|
|
52
|
+
return rootSource.toSource();
|
|
53
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = default_1;
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
function default_1(fileInfo, api) {
|
|
10
|
+
const filePath = fileInfo.path;
|
|
11
|
+
if (filePath.endsWith('.html')) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const j = api.jscodeshift;
|
|
15
|
+
const rootSource = j(fileInfo.source);
|
|
16
|
+
(0, utils_1.tsPropertyRemoval)(fileInfo.source, rootSource, j, 'ConversationalUIModelFields', 'pinnedByField');
|
|
17
|
+
(0, utils_1.tsComponentPropertyRemoval)(fileInfo.source, rootSource, j, 'ConversationalUIModelFields', 'pinnedByField');
|
|
18
|
+
return rootSource.toSource();
|
|
19
|
+
}
|
|
@@ -16,16 +16,23 @@ import * as i10 from "./ai-prompt/templates/aiprompt-output-body-template.direct
|
|
|
16
16
|
import * as i11 from "./chat/chat.component";
|
|
17
17
|
import * as i12 from "./chat/l10n/custom-messages.component";
|
|
18
18
|
import * as i13 from "./chat/templates/attachment-template.directive";
|
|
19
|
-
import * as i14 from "./chat/templates/message-template.directive";
|
|
20
|
-
import * as i15 from "./chat/
|
|
21
|
-
import * as i16 from "./chat/templates/message-
|
|
22
|
-
import * as i17 from "./chat/templates/
|
|
23
|
-
import * as i18 from "./chat/templates/
|
|
24
|
-
import * as i19 from "./chat/templates/
|
|
25
|
-
import * as i20 from "./chat/
|
|
26
|
-
import * as i21 from "./
|
|
27
|
-
import * as i22 from "./
|
|
28
|
-
import * as i23 from "./
|
|
19
|
+
import * as i14 from "./chat/templates/author-message-content-template.directive";
|
|
20
|
+
import * as i15 from "./chat/templates/receiver-message-content-template.directive";
|
|
21
|
+
import * as i16 from "./chat/templates/message-content-template.directive";
|
|
22
|
+
import * as i17 from "./chat/templates/author-message-template.directive";
|
|
23
|
+
import * as i18 from "./chat/templates/receiver-message-template.directive";
|
|
24
|
+
import * as i19 from "./chat/templates/message-template.directive";
|
|
25
|
+
import * as i20 from "./chat/cards/hero-card.component";
|
|
26
|
+
import * as i21 from "./chat/templates/message-box.directive";
|
|
27
|
+
import * as i22 from "./chat/templates/header-template.directive";
|
|
28
|
+
import * as i23 from "./chat/templates/no-data-template.directive";
|
|
29
|
+
import * as i24 from "./chat/templates/timestamp-template.directive";
|
|
30
|
+
import * as i25 from "./chat/templates/status-template.directive";
|
|
31
|
+
import * as i26 from "./chat/templates/suggestion-template.directive";
|
|
32
|
+
import * as i27 from "./chat/templates/user-status-template.directive";
|
|
33
|
+
import * as i28 from "./inline-ai-prompt/inlineaiprompt.component";
|
|
34
|
+
import * as i29 from "./inline-ai-prompt/output-template.directive";
|
|
35
|
+
import * as i30 from "./inline-ai-prompt/localization/custom-messages.component";
|
|
29
36
|
/**
|
|
30
37
|
* Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) for the Conversational UI components.
|
|
31
38
|
*
|
|
@@ -46,6 +53,6 @@ import * as i23 from "./inline-ai-prompt/localization/custom-messages.component"
|
|
|
46
53
|
*/
|
|
47
54
|
export declare class ConversationalUIModule {
|
|
48
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConversationalUIModule, never>;
|
|
49
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ConversationalUIModule, never, [typeof i1.AIPromptComponent, typeof i2.PromptViewComponent, typeof i3.OutputViewComponent, typeof i4.CommandViewComponent, typeof i5.CustomViewComponent, typeof i6.AIPromptCustomMessagesComponent, typeof i7.AIPromptToolbarActionsDirective, typeof i8.AIPromptToolbarFocusableDirective, typeof i9.AIPromptOutputTemplateDirective, typeof i10.AIPromptOutputBodyTemplateDirective, typeof i11.ChatComponent, typeof i12.CustomMessagesComponent, typeof i13.AttachmentTemplateDirective, typeof i14.
|
|
56
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ConversationalUIModule, never, [typeof i1.AIPromptComponent, typeof i2.PromptViewComponent, typeof i3.OutputViewComponent, typeof i4.CommandViewComponent, typeof i5.CustomViewComponent, typeof i6.AIPromptCustomMessagesComponent, typeof i7.AIPromptToolbarActionsDirective, typeof i8.AIPromptToolbarFocusableDirective, typeof i9.AIPromptOutputTemplateDirective, typeof i10.AIPromptOutputBodyTemplateDirective, typeof i11.ChatComponent, typeof i12.CustomMessagesComponent, typeof i13.AttachmentTemplateDirective, typeof i14.AuthorMessageContentTemplateDirective, typeof i15.ReceiverMessageContentTemplateDirective, typeof i16.MessageContentTemplateDirective, typeof i17.AuthorMessageTemplateDirective, typeof i18.ReceiverMessageTemplateDirective, typeof i19.MessageTemplateDirective, typeof i20.HeroCardComponent, typeof i21.ChatMessageBoxTemplateDirective, typeof i22.ChatHeaderTemplateDirective, typeof i23.NoDataTemplateDirective, typeof i24.ChatTimestampTemplateDirective, typeof i25.ChatStatusTemplateDirective, typeof i26.ChatSuggestionTemplateDirective, typeof i27.ChatUserStatusTemplateDirective, typeof i28.InlineAIPromptComponent, typeof i29.InlineAIPromptOutputTemplateDirective, typeof i30.InlineAIPromptCustomMessagesComponent], [typeof i1.AIPromptComponent, typeof i2.PromptViewComponent, typeof i3.OutputViewComponent, typeof i4.CommandViewComponent, typeof i5.CustomViewComponent, typeof i6.AIPromptCustomMessagesComponent, typeof i7.AIPromptToolbarActionsDirective, typeof i8.AIPromptToolbarFocusableDirective, typeof i9.AIPromptOutputTemplateDirective, typeof i10.AIPromptOutputBodyTemplateDirective, typeof i11.ChatComponent, typeof i12.CustomMessagesComponent, typeof i13.AttachmentTemplateDirective, typeof i14.AuthorMessageContentTemplateDirective, typeof i15.ReceiverMessageContentTemplateDirective, typeof i16.MessageContentTemplateDirective, typeof i17.AuthorMessageTemplateDirective, typeof i18.ReceiverMessageTemplateDirective, typeof i19.MessageTemplateDirective, typeof i20.HeroCardComponent, typeof i21.ChatMessageBoxTemplateDirective, typeof i22.ChatHeaderTemplateDirective, typeof i23.NoDataTemplateDirective, typeof i24.ChatTimestampTemplateDirective, typeof i25.ChatStatusTemplateDirective, typeof i26.ChatSuggestionTemplateDirective, typeof i27.ChatUserStatusTemplateDirective, typeof i28.InlineAIPromptComponent, typeof i29.InlineAIPromptOutputTemplateDirective, typeof i30.InlineAIPromptCustomMessagesComponent]>;
|
|
50
57
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConversationalUIModule>;
|
|
51
58
|
}
|
package/directives.d.ts
CHANGED
|
@@ -12,11 +12,17 @@ import { OutputViewComponent, PromptViewComponent } from "./ai-prompt/views";
|
|
|
12
12
|
import { ChatComponent } from "./chat/chat.component";
|
|
13
13
|
import { CustomMessagesComponent } from "./chat/l10n/custom-messages.component";
|
|
14
14
|
import { AttachmentTemplateDirective } from "./chat/templates/attachment-template.directive";
|
|
15
|
+
import { AuthorMessageContentTemplateDirective } from "./chat/templates/author-message-content-template.directive";
|
|
16
|
+
import { ReceiverMessageContentTemplateDirective } from "./chat/templates/receiver-message-content-template.directive";
|
|
17
|
+
import { MessageContentTemplateDirective } from "./chat/templates/message-content-template.directive";
|
|
18
|
+
import { AuthorMessageTemplateDirective } from "./chat/templates/author-message-template.directive";
|
|
19
|
+
import { ReceiverMessageTemplateDirective } from "./chat/templates/receiver-message-template.directive";
|
|
15
20
|
import { MessageTemplateDirective } from "./chat/templates/message-template.directive";
|
|
16
21
|
import { ChatTimestampTemplateDirective } from "./chat/templates/timestamp-template.directive";
|
|
17
22
|
import { HeroCardComponent } from "./chat/cards/hero-card.component";
|
|
18
23
|
import { ChatMessageBoxTemplateDirective } from "./chat/templates/message-box.directive";
|
|
19
24
|
import { ChatHeaderTemplateDirective } from "./chat/templates/header-template.directive";
|
|
25
|
+
import { NoDataTemplateDirective } from "./chat/templates/no-data-template.directive";
|
|
20
26
|
import { AIPromptOutputBodyTemplateDirective } from "./ai-prompt/templates/aiprompt-output-body-template.directive";
|
|
21
27
|
import { AIPromptOutputTemplateDirective } from "./ai-prompt/templates/aiprompt-output-template.directive";
|
|
22
28
|
import { InlineAIPromptComponent } from "./inline-ai-prompt/inlineaiprompt.component";
|
|
@@ -24,6 +30,7 @@ import { InlineAIPromptOutputTemplateDirective } from "./inline-ai-prompt/output
|
|
|
24
30
|
import { InlineAIPromptCustomMessagesComponent } from "./inline-ai-prompt/localization/custom-messages.component";
|
|
25
31
|
import { ChatStatusTemplateDirective } from "./chat/templates/status-template.directive";
|
|
26
32
|
import { ChatSuggestionTemplateDirective } from "./chat/templates/suggestion-template.directive";
|
|
33
|
+
import { ChatUserStatusTemplateDirective } from "./chat/templates/user-status-template.directive";
|
|
27
34
|
/**
|
|
28
35
|
* Utility array that contains all AIPrompt related components and directives.
|
|
29
36
|
*
|
|
@@ -59,7 +66,7 @@ export declare const KENDO_AIPROMPT: readonly [typeof AIPromptComponent, typeof
|
|
|
59
66
|
* export class AppComponent {}
|
|
60
67
|
* ```
|
|
61
68
|
*/
|
|
62
|
-
export declare const KENDO_CHAT: readonly [typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatHeaderTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective];
|
|
69
|
+
export declare const KENDO_CHAT: readonly [typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof AuthorMessageContentTemplateDirective, typeof ReceiverMessageContentTemplateDirective, typeof MessageContentTemplateDirective, typeof AuthorMessageTemplateDirective, typeof ReceiverMessageTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatHeaderTemplateDirective, typeof NoDataTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof ChatUserStatusTemplateDirective];
|
|
63
70
|
/**
|
|
64
71
|
* Utility array that contains all InlineAIPrompt related components and directives.
|
|
65
72
|
*
|
|
@@ -98,4 +105,4 @@ export declare const KENDO_INLINEAIPROMPT: readonly [typeof InlineAIPromptCompon
|
|
|
98
105
|
* export class AppComponent {}
|
|
99
106
|
* ```
|
|
100
107
|
*/
|
|
101
|
-
export declare const KENDO_CONVERSATIONALUI: readonly [typeof AIPromptComponent, typeof PromptViewComponent, typeof OutputViewComponent, typeof CommandViewComponent, typeof CustomViewComponent, typeof AIPromptCustomMessagesComponent, typeof AIPromptToolbarActionsDirective, typeof AIPromptToolbarFocusableDirective, typeof AIPromptOutputTemplateDirective, typeof AIPromptOutputBodyTemplateDirective, typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatHeaderTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent];
|
|
108
|
+
export declare const KENDO_CONVERSATIONALUI: readonly [typeof AIPromptComponent, typeof PromptViewComponent, typeof OutputViewComponent, typeof CommandViewComponent, typeof CustomViewComponent, typeof AIPromptCustomMessagesComponent, typeof AIPromptToolbarActionsDirective, typeof AIPromptToolbarFocusableDirective, typeof AIPromptOutputTemplateDirective, typeof AIPromptOutputBodyTemplateDirective, typeof ChatComponent, typeof CustomMessagesComponent, typeof AttachmentTemplateDirective, typeof AuthorMessageContentTemplateDirective, typeof ReceiverMessageContentTemplateDirective, typeof MessageContentTemplateDirective, typeof AuthorMessageTemplateDirective, typeof ReceiverMessageTemplateDirective, typeof MessageTemplateDirective, typeof HeroCardComponent, typeof ChatMessageBoxTemplateDirective, typeof ChatHeaderTemplateDirective, typeof NoDataTemplateDirective, typeof ChatTimestampTemplateDirective, typeof ChatStatusTemplateDirective, typeof ChatSuggestionTemplateDirective, typeof ChatUserStatusTemplateDirective, typeof InlineAIPromptComponent, typeof InlineAIPromptOutputTemplateDirective, typeof InlineAIPromptCustomMessagesComponent];
|
|
@@ -8,11 +8,14 @@ export * from './chat-file-interface';
|
|
|
8
8
|
export * from './chat-suggestion.interface';
|
|
9
9
|
export * from './execute-action-event';
|
|
10
10
|
export * from './message-action';
|
|
11
|
-
export * from './message-toolbar-visibility';
|
|
12
11
|
export * from './message-width-mode';
|
|
13
12
|
export * from './message.interface';
|
|
13
|
+
export * from './message-settings.interface';
|
|
14
14
|
export * from './post-message-event';
|
|
15
15
|
export * from './user.interface';
|
|
16
16
|
export * from './file-action';
|
|
17
17
|
export * from './file-download-event.interface';
|
|
18
18
|
export * from './send-button-settings';
|
|
19
|
+
export * from './files-layout';
|
|
20
|
+
export * from './suggestions-layout';
|
|
21
|
+
export * from './timestamp-visibility';
|
package/{chat/api/message-toolbar-visibility.d.ts → esm2022/chat/api/message-settings.interface.mjs}
RENAMED
|
@@ -2,7 +2,4 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
* Represents the visibility options for the message toolbar.
|
|
7
|
-
*/
|
|
8
|
-
export type MessageToolbarVisibility = 'always' | 'hidden';
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
* Copyright © 2025 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { guid } from '@progress/kendo-angular-common';
|
|
5
6
|
import { SendMessageEvent } from './api/post-message-event';
|
|
6
7
|
const noop = () => { };
|
|
7
8
|
const handlers = {
|
|
8
9
|
'reply': (action, sender) => {
|
|
9
10
|
sender.sendMessage.emit(new SendMessageEvent({
|
|
11
|
+
id: guid(),
|
|
10
12
|
author: { id: sender.authorId },
|
|
11
13
|
text: action.value,
|
|
12
14
|
timestamp: new Date()
|
|
@@ -50,7 +50,7 @@ export class ChatFileComponent extends ChatItem {
|
|
|
50
50
|
useExisting: forwardRef(() => ChatFileComponent)
|
|
51
51
|
}], usesInheritance: true, ngImport: i0, template: `
|
|
52
52
|
<kendo-icon-wrapper
|
|
53
|
-
size="
|
|
53
|
+
size="xlarge"
|
|
54
54
|
[name]="fileGroupClass(chatFile.extension)"
|
|
55
55
|
[svgIcon]="fileThumbnail(chatFile.extension)"
|
|
56
56
|
>
|
|
@@ -91,7 +91,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
91
91
|
}],
|
|
92
92
|
template: `
|
|
93
93
|
<kendo-icon-wrapper
|
|
94
|
-
size="
|
|
94
|
+
size="xlarge"
|
|
95
95
|
[name]="fileGroupClass(chatFile.extension)"
|
|
96
96
|
[svgIcon]="fileThumbnail(chatFile.extension)"
|
|
97
97
|
>
|