@siemens/element-ng 51.6.0 → 51.8.0
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/README.md +3 -4
- package/element-ng.scss +3 -1
- package/fesm2022/siemens-element-ng-accordion.mjs +2 -2
- package/fesm2022/siemens-element-ng-accordion.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ag-grid.mjs +9 -9
- package/fesm2022/siemens-element-ng-ag-grid.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-application-header.mjs +10 -7
- package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-avatar.mjs +3 -3
- package/fesm2022/siemens-element-ng-avatar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-card.mjs +22 -15
- package/fesm2022/siemens-element-ng-card.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-carousel.mjs +6 -4
- package/fesm2022/siemens-element-ng-carousel.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-chat-messages.mjs +621 -46
- package/fesm2022/siemens-element-ng-chat-messages.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-color-picker.mjs +55 -39
- package/fesm2022/siemens-element-ng-color-picker.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-content-action-bar.mjs +2 -2
- package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-dashboard.mjs +13 -15
- package/fesm2022/siemens-element-ng-dashboard.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +3 -3
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-datepicker.mjs +5 -4
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-empty-state.mjs +13 -6
- package/fesm2022/siemens-element-ng-empty-state.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-file-uploader.mjs +2 -2
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-filter-bar.mjs +4 -4
- package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-footer.mjs +2 -2
- package/fesm2022/siemens-element-ng-form.mjs +4 -4
- package/fesm2022/siemens-element-ng-formly.mjs +1 -1
- package/fesm2022/siemens-element-ng-formly.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-icon.mjs +2 -1
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-info-page.mjs +20 -7
- package/fesm2022/siemens-element-ng-info-page.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-inline-notification.mjs +2 -2
- package/fesm2022/siemens-element-ng-inline-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-landing-page.mjs +2 -2
- package/fesm2022/siemens-element-ng-landing-page.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-list-details.mjs +2 -2
- package/fesm2022/siemens-element-ng-list-details.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-loading-spinner.mjs +2 -2
- package/fesm2022/siemens-element-ng-loading-spinner.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-maplibre.mjs +133 -10
- package/fesm2022/siemens-element-ng-maplibre.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-menu.mjs +6 -6
- package/fesm2022/siemens-element-ng-menu.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-modal.mjs +71 -84
- package/fesm2022/siemens-element-ng-modal.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar-vertical-next.mjs +64 -14
- package/fesm2022/siemens-element-ng-navbar-vertical-next.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs +4 -4
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar.mjs +7 -2
- package/fesm2022/siemens-element-ng-navbar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-notification-item.mjs +2 -2
- package/fesm2022/siemens-element-ng-notification-item.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-number-input.mjs +2 -2
- package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-password-strength.mjs +2 -2
- package/fesm2022/siemens-element-ng-password-strength.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-phone-number.mjs +32 -23
- package/fesm2022/siemens-element-ng-phone-number.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-photo-upload.mjs +7 -2
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-pills-input.mjs +2 -2
- package/fesm2022/siemens-element-ng-pills-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-result-details-list.mjs +11 -6
- package/fesm2022/siemens-element-ng-result-details-list.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-search-bar.mjs +188 -15
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-select.mjs +631 -764
- package/fesm2022/siemens-element-ng-select.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-side-panel.mjs +19 -10
- package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-slider.mjs +2 -2
- package/fesm2022/siemens-element-ng-slider.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-source-chip.mjs +2 -2
- package/fesm2022/siemens-element-ng-source-chip.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-split.mjs +2 -2
- package/fesm2022/siemens-element-ng-split.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-bar.mjs +12 -12
- package/fesm2022/siemens-element-ng-status-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-counter.mjs +2 -2
- package/fesm2022/siemens-element-ng-status-counter.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-toggle.mjs +2 -2
- package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-summary-chip.mjs +2 -2
- package/fesm2022/siemens-element-ng-summary-chip.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-summary-widget.mjs +2 -2
- package/fesm2022/siemens-element-ng-summary-widget.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs-legacy.mjs +2 -1
- package/fesm2022/siemens-element-ng-tabs-legacy.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs.mjs +3 -6
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-theme.mjs +9 -5
- package/fesm2022/siemens-element-ng-theme.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-threshold.mjs +2 -2
- package/fesm2022/siemens-element-ng-threshold.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-toast-notification.mjs +2 -2
- package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tour.mjs +2 -2
- package/fesm2022/siemens-element-ng-tour.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tree-view.mjs +8 -25
- package/fesm2022/siemens-element-ng-tree-view.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-typeahead.mjs +42 -30
- package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-wizard.mjs +2 -2
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -1
- package/maplibre/styles/maplibre-gl.scss +2 -2
- package/package.json +8 -8
- package/schematics/collection.json +5 -0
- package/schematics/migrate-search-bar/index.js +5 -0
- package/schematics/migrate-search-bar/migrate-search-bar-rule.js +733 -0
- package/schematics/migrate-search-bar/schema.json +14 -0
- package/schematics/migrate-search-bar/search-bar-template.js +742 -0
- package/schematics/migrate-search-bar/text-edits.js +23 -0
- package/schematics/migrations/data/css-custom-properties.js +11 -11
- package/schematics/utils/project-utils.js +2 -1
- package/template-i18n.json +8 -0
- package/types/siemens-element-ng-application-header.d.ts +1 -0
- package/types/siemens-element-ng-avatar.d.ts +1 -1
- package/types/siemens-element-ng-card.d.ts +17 -11
- package/types/siemens-element-ng-chat-messages.d.ts +518 -127
- package/types/siemens-element-ng-color-picker.d.ts +18 -9
- package/types/siemens-element-ng-dashboard.d.ts +2 -1
- package/types/siemens-element-ng-empty-state.d.ts +9 -2
- package/types/siemens-element-ng-info-page.d.ts +17 -5
- package/types/siemens-element-ng-maplibre.d.ts +39 -2
- package/types/siemens-element-ng-modal.d.ts +6 -4
- package/types/siemens-element-ng-navbar-vertical-next.d.ts +31 -2
- package/types/siemens-element-ng-navbar.d.ts +1 -0
- package/types/siemens-element-ng-phone-number.d.ts +5 -6
- package/types/siemens-element-ng-photo-upload.d.ts +1 -0
- package/types/siemens-element-ng-result-details-list.d.ts +7 -2
- package/types/siemens-element-ng-search-bar.d.ts +110 -5
- package/types/siemens-element-ng-select.d.ts +257 -286
- package/types/siemens-element-ng-side-panel.d.ts +5 -1
- package/types/siemens-element-ng-status-bar.d.ts +2 -2
- package/types/siemens-element-ng-tabs-legacy.d.ts +2 -1
- package/types/siemens-element-ng-theme.d.ts +1 -0
- package/types/siemens-element-ng-tour.d.ts +11 -0
- package/types/siemens-element-ng-translate.d.ts +8 -0
- package/types/siemens-element-ng-tree-view.d.ts +0 -8
|
@@ -1,41 +1,221 @@
|
|
|
1
|
-
import * as _siemens_element_translate_ng_translate from '@siemens/element-translate-ng/translate';
|
|
2
|
-
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
3
1
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import { TemplateRef, AfterContentInit, OnDestroy, AfterViewInit, ElementRef } from '@angular/core';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import { TemplateRef, Signal, AfterContentInit, OnDestroy, AfterViewInit, ElementRef, InjectionToken, isSignal } from '@angular/core';
|
|
3
|
+
import * as _siemens_element_ng_menu from '@siemens/element-ng/menu';
|
|
4
|
+
import { MenuItemAction } from '@siemens/element-ng/menu';
|
|
5
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate-types';
|
|
6
|
+
import * as _siemens_element_translate_ng_translate from '@siemens/element-translate-ng/translate';
|
|
7
|
+
import { TranslatableString as TranslatableString$1 } from '@siemens/element-translate-ng/translate';
|
|
7
8
|
import { SiModalService } from '@siemens/element-ng/modal';
|
|
9
|
+
import { SourceReference } from '@siemens/element-ng/source-chip';
|
|
8
10
|
import { FileUploadError, UploadFile } from '@siemens/element-ng/file-uploader';
|
|
9
11
|
import * as i1 from '@siemens/element-ng/resize-observer';
|
|
12
|
+
import { BackgroundColorVariant } from '@siemens/element-ng/common';
|
|
13
|
+
import { SiMarkdownOptions } from '@siemens/element-ng/markdown';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Attachment item interface for file attachments in chat messages, used by {@link SiAttachmentListComponent} and inside {@link SiUserMessageComponent} as well as {@link SiChatInputComponent}.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link SiAttachmentListComponent} for the attachment list component
|
|
19
|
+
* @see {@link SiUserMessageComponent} for the user message
|
|
20
|
+
* @see {@link SiChatInputComponent} for the chat input component
|
|
21
|
+
*
|
|
22
|
+
* @experimental
|
|
23
|
+
*/
|
|
24
|
+
interface Attachment {
|
|
25
|
+
/** File name */
|
|
26
|
+
name: string;
|
|
27
|
+
/** Optionally show a preview of the attachment by providing a template that is shown in a modal when clicked (optional) */
|
|
28
|
+
previewTemplate?: TemplateRef<any> | (() => TemplateRef<any>);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Attachment list component for displaying file attachments in chat messages.
|
|
32
|
+
*
|
|
33
|
+
* This component renders a list of file attachments with icons, names, and optional
|
|
34
|
+
* preview and remove functionality. It's designed to work with chat message components
|
|
35
|
+
* to show files that have been uploaded or shared in conversations.
|
|
36
|
+
*
|
|
37
|
+
* This component provides:
|
|
38
|
+
* - A list of pills showing each attachment's name and an icon
|
|
39
|
+
* - Optional preview modal for attachments
|
|
40
|
+
* - Optional remove functionality for editable messages
|
|
41
|
+
*
|
|
42
|
+
* The component is included within {@link SiUserMessageComponent}, {@link SiAiMessageComponent} and {@link SiChatInputComponent} but can also be used inside custom chat messages with {@link SiChatMessageComponent}
|
|
43
|
+
*
|
|
44
|
+
* @see {@link SiUserMessageComponent} for user message display
|
|
45
|
+
* @see {@link SiAiMessageComponent} for AI message display
|
|
46
|
+
* @see {@link SiChatMessageComponent} for custom chat message display
|
|
47
|
+
* @see {@link SiChatInputComponent} for chat input with attachment support
|
|
48
|
+
* @see {@link Attachment} for attachment data structure
|
|
49
|
+
*
|
|
50
|
+
* @experimental
|
|
51
|
+
*/
|
|
52
|
+
declare class SiAttachmentListComponent {
|
|
53
|
+
protected modalService: SiModalService;
|
|
54
|
+
protected readonly icons: Record<"elementStateClose" | "elementDocument", string>;
|
|
55
|
+
/**
|
|
56
|
+
* List of attachments to display
|
|
57
|
+
* @defaultValue []
|
|
58
|
+
*/
|
|
59
|
+
readonly attachments: _angular_core.InputSignal<Attachment[]>;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to align attachments to the end (right) or start (left)
|
|
62
|
+
* @defaultValue 'start'
|
|
63
|
+
*/
|
|
64
|
+
readonly alignment: _angular_core.InputSignal<"start" | "end">;
|
|
65
|
+
/**
|
|
66
|
+
* Whether to show remove buttons on attachments
|
|
67
|
+
* @defaultValue false
|
|
68
|
+
*/
|
|
69
|
+
readonly removable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
70
|
+
/**
|
|
71
|
+
* Label for remove attachment button.
|
|
72
|
+
* The attachment name is available with `{{attachment}}`.
|
|
73
|
+
*
|
|
74
|
+
* @defaultValue
|
|
75
|
+
* ```
|
|
76
|
+
* t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
readonly removeLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>;
|
|
80
|
+
/**
|
|
81
|
+
* Emitted when an attachment should be removed
|
|
82
|
+
*/
|
|
83
|
+
readonly remove: _angular_core.OutputEmitterRef<Attachment>;
|
|
84
|
+
private getPreviewTemplate;
|
|
85
|
+
protected openPreview(event: Event, attachment: Attachment): void;
|
|
86
|
+
protected getFileIcon(name: string): string;
|
|
87
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiAttachmentListComponent, never>;
|
|
88
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiAttachmentListComponent, "si-attachment-list", never, { "attachments": { "alias": "attachments"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "removeLabel": { "alias": "removeLabel"; "required": false; "isSignal": true; }; }, { "remove": "remove"; }, never, never, true, never>;
|
|
89
|
+
}
|
|
10
90
|
|
|
11
91
|
/**
|
|
12
92
|
* Copyright (c) Siemens 2016 - 2026
|
|
13
93
|
* SPDX-License-Identifier: MIT
|
|
14
94
|
*/
|
|
15
95
|
|
|
96
|
+
type ActivityDetailsDisplay = 'auto' | 'inputs' | 'outputs' | 'both';
|
|
16
97
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
98
|
+
* Base interface for all chat messages. Messages can be rendered either with content
|
|
99
|
+
* or with a custom template for advanced styling and functionality.
|
|
19
100
|
*
|
|
20
|
-
* @see {@link
|
|
21
|
-
* @see {@link
|
|
101
|
+
* @see {@link ChatMessage} for the chat message type union
|
|
102
|
+
* @see {@link UserChatMessage} for user messages
|
|
103
|
+
* @see {@link AiChatMessage} for AI messages
|
|
104
|
+
* @see {@link TemplateChatMessage} for template-based messages
|
|
22
105
|
*
|
|
23
106
|
* @experimental
|
|
24
107
|
*/
|
|
25
|
-
interface
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
108
|
+
interface BaseChatMessage {
|
|
109
|
+
/** Type of message */
|
|
110
|
+
type: 'user' | 'ai';
|
|
111
|
+
/** Message content - can be a string or a Signal<string>, empty string shows loading state */
|
|
112
|
+
content?: string | Signal<string>;
|
|
113
|
+
/** Whether the message is currently loading/being generated - can be a boolean or Signal<boolean> */
|
|
114
|
+
loading?: boolean | Signal<boolean>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* User chat message for AI chats
|
|
118
|
+
*
|
|
119
|
+
* @see {@link SiAiChatComponent} for the AI chat container where this is used
|
|
120
|
+
*
|
|
121
|
+
* @experimental
|
|
122
|
+
*/
|
|
123
|
+
interface UserChatMessage extends BaseChatMessage {
|
|
124
|
+
/** Type of message */
|
|
125
|
+
type: 'user';
|
|
126
|
+
/** Message content, should be a string, empty string shows loading state */
|
|
127
|
+
content: string;
|
|
128
|
+
/** Attachments (for user messages) */
|
|
129
|
+
attachments?: Attachment[];
|
|
130
|
+
/** Actions available for this message */
|
|
131
|
+
actions?: MenuItemAction[];
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* AI chat message
|
|
135
|
+
*
|
|
136
|
+
* @see {@link SiAiChatComponent} for the AI chat container where this is used
|
|
137
|
+
*
|
|
138
|
+
* @experimental
|
|
139
|
+
*/
|
|
140
|
+
interface AiChatMessage extends BaseChatMessage {
|
|
141
|
+
/** Type of message */
|
|
142
|
+
type: 'ai';
|
|
143
|
+
/** Message content - can be a string or a Signal<string>, empty string shows loading state, set signal back to string to end "streaming" state */
|
|
144
|
+
content: string | Signal<string>;
|
|
145
|
+
/** Actions available for this message */
|
|
146
|
+
actions?: MenuItemAction[];
|
|
147
|
+
}
|
|
148
|
+
/** Progress or intermediate activity shown between chat messages. */
|
|
149
|
+
interface ActivityChatMessage {
|
|
150
|
+
type: 'activity';
|
|
151
|
+
/** Activity name. Defaults to the reasoning label for content-only activities. */
|
|
152
|
+
name?: TranslatableString;
|
|
153
|
+
/** Activity inputs. Record entries are rendered as individual message parts. */
|
|
154
|
+
input?: string | string[] | Record<string, string>;
|
|
155
|
+
/** Label for the input arguments section. */
|
|
156
|
+
inputArgumentsLabel?: TranslatableString;
|
|
157
|
+
/** Output from the activity. */
|
|
158
|
+
output?: string;
|
|
159
|
+
/** Label for the output section. */
|
|
160
|
+
outputLabel?: TranslatableString;
|
|
161
|
+
/** Reasoning content rendered directly in the activity. */
|
|
162
|
+
content?: string | Signal<string>;
|
|
163
|
+
/** Whether the activity is still running. */
|
|
164
|
+
loading?: boolean | Signal<boolean>;
|
|
165
|
+
/** Alternative icon. Set to false to show the generic activity marker. */
|
|
166
|
+
icon?: string | false;
|
|
167
|
+
/** Nested activities. */
|
|
168
|
+
messages?: ActivityChatMessage[];
|
|
169
|
+
/** Overrides automatic expansion for this activity. */
|
|
170
|
+
autoExpand?: boolean;
|
|
171
|
+
/** Overrides automatic input expansion. Record keys can be selected individually. */
|
|
172
|
+
autoExpandInputs?: boolean | string[];
|
|
173
|
+
/** Overrides automatic output expansion. */
|
|
174
|
+
autoExpandOutputs?: boolean;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Related activities grouped under a shared collapsible heading.
|
|
178
|
+
* The latest trace stays expanded until a user message follows it.
|
|
179
|
+
*/
|
|
180
|
+
interface ActivityTraceChatMessage {
|
|
181
|
+
type: 'activity-trace';
|
|
182
|
+
/** Activity trace name. */
|
|
183
|
+
name: TranslatableString;
|
|
184
|
+
/** Activities in execution order. */
|
|
185
|
+
messages: ActivityChatMessage[];
|
|
186
|
+
/** Overrides automatic expansion for this trace. */
|
|
187
|
+
autoExpand?: boolean;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Render custom chat message via template, consider using {@link SiChatMessageComponent} inside the template for consistent styling
|
|
191
|
+
*
|
|
192
|
+
* @see {@link SiAiChatComponent} for the AI chat container where this is used
|
|
193
|
+
* @see {@link SiChatMessageComponent} for the chat message wrapper component which can be used inside the template
|
|
194
|
+
*
|
|
195
|
+
* @experimental
|
|
196
|
+
*/
|
|
197
|
+
interface TemplateChatMessage {
|
|
32
198
|
/**
|
|
33
|
-
*
|
|
199
|
+
* Template to render the message
|
|
34
200
|
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
|
|
201
|
+
template: TemplateRef<any>;
|
|
202
|
+
/** Context data to pass to the template */
|
|
203
|
+
templateContext?: any;
|
|
38
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Chat message type union of all supported message types in the AI chat container.
|
|
207
|
+
*
|
|
208
|
+
* @see {@link UserChatMessage} for user messages
|
|
209
|
+
* @see {@link AiChatMessage} for AI messages
|
|
210
|
+
* @see {@link ActivityChatMessage} for individual activities
|
|
211
|
+
* @see {@link ActivityTraceChatMessage} for grouped activities
|
|
212
|
+
* @see {@link TemplateChatMessage} for template-based messages
|
|
213
|
+
* @see {@link BaseChatMessage} for the base chat message interface
|
|
214
|
+
* @see {@link SiAiChatComponent} for the AI chat container where this is used
|
|
215
|
+
*
|
|
216
|
+
* @experimental
|
|
217
|
+
*/
|
|
218
|
+
type ChatMessage = UserChatMessage | AiChatMessage | ActivityChatMessage | ActivityTraceChatMessage | TemplateChatMessage;
|
|
39
219
|
|
|
40
220
|
/**
|
|
41
221
|
* AI message component for displaying AI-generated responses in conversational interfaces.
|
|
@@ -57,7 +237,6 @@ interface MessageAction {
|
|
|
57
237
|
* @experimental
|
|
58
238
|
*/
|
|
59
239
|
declare class SiAiMessageComponent {
|
|
60
|
-
protected readonly icons: Record<"elementOptionsVertical", string>;
|
|
61
240
|
/**
|
|
62
241
|
* The AI-generated message content
|
|
63
242
|
* @defaultValue ''
|
|
@@ -73,12 +252,12 @@ declare class SiAiMessageComponent {
|
|
|
73
252
|
* All actions displayed inline
|
|
74
253
|
* @defaultValue []
|
|
75
254
|
*/
|
|
76
|
-
readonly actions: _angular_core.InputSignal<
|
|
255
|
+
readonly actions: _angular_core.InputSignal<MenuItemAction[]>;
|
|
77
256
|
/**
|
|
78
257
|
* Secondary actions available in dropdown menu, first use primary actions and only add secondary actions additionally
|
|
79
258
|
* @defaultValue []
|
|
80
259
|
*/
|
|
81
|
-
readonly secondaryActions: _angular_core.InputSignal<
|
|
260
|
+
readonly secondaryActions: _angular_core.InputSignal<MenuItemAction[]>;
|
|
82
261
|
/** Parameter to pass to action handlers */
|
|
83
262
|
readonly actionParam: _angular_core.InputSignal<unknown>;
|
|
84
263
|
/** Source references */
|
|
@@ -105,7 +284,7 @@ declare class SiAiMessageComponent {
|
|
|
105
284
|
*/
|
|
106
285
|
declare class SiActivityMessageComponent {
|
|
107
286
|
/** Activity heading. */
|
|
108
|
-
readonly heading: _angular_core.InputSignal<TranslatableString>;
|
|
287
|
+
readonly heading: _angular_core.InputSignal<TranslatableString$1>;
|
|
109
288
|
/** Activity icon. */
|
|
110
289
|
readonly icon: _angular_core.InputSignal<string | undefined>;
|
|
111
290
|
/** Current state of the activity. */
|
|
@@ -128,7 +307,7 @@ declare class SiActivityMessageComponent {
|
|
|
128
307
|
*/
|
|
129
308
|
declare class SiActivityMessagePartComponent {
|
|
130
309
|
/** Part heading. */
|
|
131
|
-
readonly heading: _angular_core.InputSignal<TranslatableString>;
|
|
310
|
+
readonly heading: _angular_core.InputSignal<TranslatableString$1>;
|
|
132
311
|
/**
|
|
133
312
|
* Whether the part can be collapsed and expanded.
|
|
134
313
|
*
|
|
@@ -153,7 +332,7 @@ declare class SiActivityMessagePartComponent {
|
|
|
153
332
|
*/
|
|
154
333
|
declare class SiActivityTraceComponent {
|
|
155
334
|
/** Trace heading. */
|
|
156
|
-
readonly heading: _angular_core.InputSignal<TranslatableString>;
|
|
335
|
+
readonly heading: _angular_core.InputSignal<TranslatableString$1>;
|
|
157
336
|
/**
|
|
158
337
|
* Whether the trace content is expanded.
|
|
159
338
|
*
|
|
@@ -165,82 +344,6 @@ declare class SiActivityTraceComponent {
|
|
|
165
344
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiActivityTraceComponent, "si-activity-trace", never, { "heading": { "alias": "heading"; "required": true; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["*"], true, never>;
|
|
166
345
|
}
|
|
167
346
|
|
|
168
|
-
/**
|
|
169
|
-
* Attachment item interface for file attachments in chat messages, used by {@link SiAttachmentListComponent} and inside {@link SiUserMessageComponent} as well as {@link SiChatInputComponent}.
|
|
170
|
-
*
|
|
171
|
-
* @see {@link SiAttachmentListComponent} for the attachment list component
|
|
172
|
-
* @see {@link SiUserMessageComponent} for the user message
|
|
173
|
-
* @see {@link SiChatInputComponent} for the chat input component
|
|
174
|
-
*
|
|
175
|
-
* @experimental
|
|
176
|
-
*/
|
|
177
|
-
interface Attachment {
|
|
178
|
-
/** File name */
|
|
179
|
-
name: string;
|
|
180
|
-
/** Optionally show a preview of the attachment by providing a template that is shown in a modal when clicked (optional) */
|
|
181
|
-
previewTemplate?: TemplateRef<any> | (() => TemplateRef<any>);
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Attachment list component for displaying file attachments in chat messages.
|
|
185
|
-
*
|
|
186
|
-
* This component renders a list of file attachments with icons, names, and optional
|
|
187
|
-
* preview and remove functionality. It's designed to work with chat message components
|
|
188
|
-
* to show files that have been uploaded or shared in conversations.
|
|
189
|
-
*
|
|
190
|
-
* This component provides:
|
|
191
|
-
* - A list of pills showing each attachment's name and an icon
|
|
192
|
-
* - Optional preview modal for attachments
|
|
193
|
-
* - Optional remove functionality for editable messages
|
|
194
|
-
*
|
|
195
|
-
* The component is included within {@link SiUserMessageComponent}, {@link SiAiMessageComponent} and {@link SiChatInputComponent} but can also be used inside custom chat messages with {@link SiChatMessageComponent}
|
|
196
|
-
*
|
|
197
|
-
* @see {@link SiUserMessageComponent} for user message display
|
|
198
|
-
* @see {@link SiAiMessageComponent} for AI message display
|
|
199
|
-
* @see {@link SiChatMessageComponent} for custom chat message display
|
|
200
|
-
* @see {@link SiChatInputComponent} for chat input with attachment support
|
|
201
|
-
* @see {@link Attachment} for attachment data structure
|
|
202
|
-
*
|
|
203
|
-
* @experimental
|
|
204
|
-
*/
|
|
205
|
-
declare class SiAttachmentListComponent {
|
|
206
|
-
protected modalService: SiModalService;
|
|
207
|
-
protected readonly icons: Record<"elementStateClose" | "elementDocument", string>;
|
|
208
|
-
/**
|
|
209
|
-
* List of attachments to display
|
|
210
|
-
* @defaultValue []
|
|
211
|
-
*/
|
|
212
|
-
readonly attachments: _angular_core.InputSignal<Attachment[]>;
|
|
213
|
-
/**
|
|
214
|
-
* Whether to align attachments to the end (right) or start (left)
|
|
215
|
-
* @defaultValue 'start'
|
|
216
|
-
*/
|
|
217
|
-
readonly alignment: _angular_core.InputSignal<"start" | "end">;
|
|
218
|
-
/**
|
|
219
|
-
* Whether to show remove buttons on attachments
|
|
220
|
-
* @defaultValue false
|
|
221
|
-
*/
|
|
222
|
-
readonly removable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
223
|
-
/**
|
|
224
|
-
* Label for remove attachment button.
|
|
225
|
-
* The attachment name is available with `{{attachment}}`.
|
|
226
|
-
*
|
|
227
|
-
* @defaultValue
|
|
228
|
-
* ```
|
|
229
|
-
* t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)
|
|
230
|
-
* ```
|
|
231
|
-
*/
|
|
232
|
-
readonly removeLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>;
|
|
233
|
-
/**
|
|
234
|
-
* Emitted when an attachment should be removed
|
|
235
|
-
*/
|
|
236
|
-
readonly remove: _angular_core.OutputEmitterRef<Attachment>;
|
|
237
|
-
private getPreviewTemplate;
|
|
238
|
-
protected openPreview(event: Event, attachment: Attachment): void;
|
|
239
|
-
protected getFileIcon(name: string): string;
|
|
240
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiAttachmentListComponent, never>;
|
|
241
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiAttachmentListComponent, "si-attachment-list", never, { "attachments": { "alias": "attachments"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "removable": { "alias": "removable"; "required": false; "isSignal": true; }; "removeLabel": { "alias": "removeLabel"; "required": false; "isSignal": true; }; }, { "remove": "remove"; }, never, never, true, never>;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
347
|
/**
|
|
245
348
|
* A declarative container component for displaying a chat interface with automatic scroll-to-bottom behavior.
|
|
246
349
|
*
|
|
@@ -341,7 +444,8 @@ declare class SiChatContainerInputDirective {
|
|
|
341
444
|
* @see {@link Attachment} for base attachment interface
|
|
342
445
|
* @see {@link SiAttachmentListComponent} for the attachment list component
|
|
343
446
|
* @see {@link SiChatInputComponent} for the chat input component
|
|
344
|
-
* @see {@link SiChatContainerComponent} for the chat container component
|
|
447
|
+
* @see {@link SiChatContainerComponent} for the base chat container component where this can be used
|
|
448
|
+
* @see {@link SiAiChatComponent} for the AI chat container where this needs to be used
|
|
345
449
|
*
|
|
346
450
|
* @experimental
|
|
347
451
|
*/
|
|
@@ -367,6 +471,7 @@ interface ChatInputAttachment extends Attachment {
|
|
|
367
471
|
* - Displaying primary and secondary actions.
|
|
368
472
|
*
|
|
369
473
|
* Additionally to the inputs and outputs documented here, the component supports content projection via the following slots:
|
|
474
|
+
*
|
|
370
475
|
* - Default content: Custom action buttons to display inline, prefer using the `actions` input for buttons, can be used in addition.
|
|
371
476
|
* - `siChatInputDisclaimer` selector: Custom disclaimer content to display below the input area, prefer using the `disclaimer` input for simple text disclaimers.
|
|
372
477
|
*
|
|
@@ -381,6 +486,8 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
381
486
|
private readonly fileUploadDirective;
|
|
382
487
|
protected readonly fileInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
383
488
|
protected readonly icons: Record<"elementAttachment" | "elementPlus" | "elementSendFilled" | "elementStopFilled", string>;
|
|
489
|
+
private readonly parent;
|
|
490
|
+
constructor();
|
|
384
491
|
/**
|
|
385
492
|
* Current input value
|
|
386
493
|
* @defaultValue ''
|
|
@@ -394,7 +501,7 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
394
501
|
* t(() => $localize`:@@SI_CHAT_INPUT.PLACEHOLDER:Enter a message…`)
|
|
395
502
|
* ```
|
|
396
503
|
*/
|
|
397
|
-
readonly placeholder: _angular_core.InputSignal<TranslatableString>;
|
|
504
|
+
readonly placeholder: _angular_core.InputSignal<TranslatableString$1>;
|
|
398
505
|
/**
|
|
399
506
|
* Whether the input is disabled
|
|
400
507
|
* @defaultValue false
|
|
@@ -404,14 +511,14 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
404
511
|
* Whether a message is currently being sent, also prevent the sending of new ones while still allowing the user to type
|
|
405
512
|
* @defaultValue false
|
|
406
513
|
*/
|
|
407
|
-
readonly sending: _angular_core.
|
|
514
|
+
readonly sending: _angular_core.ModelSignal<boolean>;
|
|
408
515
|
/**
|
|
409
516
|
* Whether the input supports interrupting ongoing operations. When active,
|
|
410
517
|
* the send button transforms into an interrupt button (with element-stop-filled icon).
|
|
411
518
|
* If sending is true, the interrupt button will be disabled.
|
|
412
519
|
* @defaultValue false
|
|
413
520
|
*/
|
|
414
|
-
readonly interruptible: _angular_core.
|
|
521
|
+
readonly interruptible: _angular_core.ModelSignal<boolean>;
|
|
415
522
|
/**
|
|
416
523
|
* Maximum number of characters allowed
|
|
417
524
|
*/
|
|
@@ -422,17 +529,17 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
422
529
|
* If not provided, the component will look for projected content with the `siChatInputDisclaimer` directive.
|
|
423
530
|
* If both are empty, no disclaimer section will be shown (handled via CSS :empty).
|
|
424
531
|
*/
|
|
425
|
-
readonly disclaimer: _angular_core.InputSignal<TranslatableString | undefined>;
|
|
532
|
+
readonly disclaimer: _angular_core.InputSignal<TranslatableString$1 | undefined>;
|
|
426
533
|
/**
|
|
427
534
|
* Primary actions available in the input. Provide at most one action.
|
|
428
535
|
* @defaultValue []
|
|
429
536
|
*/
|
|
430
|
-
readonly actions: _angular_core.InputSignal<
|
|
537
|
+
readonly actions: _angular_core.InputSignal<MenuItemAction[]>;
|
|
431
538
|
/**
|
|
432
539
|
* Secondary actions available in dropdown menu
|
|
433
540
|
* @defaultValue []
|
|
434
541
|
*/
|
|
435
|
-
readonly secondaryActions: _angular_core.InputSignal<
|
|
542
|
+
readonly secondaryActions: _angular_core.InputSignal<MenuItemAction[]>;
|
|
436
543
|
/**
|
|
437
544
|
* Whether file attachments are supported
|
|
438
545
|
* @defaultValue false
|
|
@@ -471,7 +578,7 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
471
578
|
* t(() => $localize`:@@SI_CHAT_INPUT.SEND:Send`)
|
|
472
579
|
* ```
|
|
473
580
|
*/
|
|
474
|
-
readonly sendButtonLabel: _angular_core.InputSignal<TranslatableString>;
|
|
581
|
+
readonly sendButtonLabel: _angular_core.InputSignal<TranslatableString$1>;
|
|
475
582
|
/**
|
|
476
583
|
* Send button icon
|
|
477
584
|
*
|
|
@@ -486,7 +593,7 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
486
593
|
* t(() => $localize`:@@SI_CHAT_INPUT.INTERRUPT:Stop processing`)
|
|
487
594
|
* ```
|
|
488
595
|
*/
|
|
489
|
-
readonly interruptButtonLabel: _angular_core.InputSignal<TranslatableString>;
|
|
596
|
+
readonly interruptButtonLabel: _angular_core.InputSignal<TranslatableString$1>;
|
|
490
597
|
/**
|
|
491
598
|
* Auto-focus the input on component initialization
|
|
492
599
|
* @defaultValue false
|
|
@@ -500,7 +607,7 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
500
607
|
* t(() => $localize`:@@SI_CHAT_INPUT.ATTACH_FILE:Attach file`)
|
|
501
608
|
* ```
|
|
502
609
|
*/
|
|
503
|
-
readonly attachFileLabel: _angular_core.InputSignal<TranslatableString>;
|
|
610
|
+
readonly attachFileLabel: _angular_core.InputSignal<TranslatableString$1>;
|
|
504
611
|
/**
|
|
505
612
|
* Remove attachment aria label.
|
|
506
613
|
* The attachment name is available with `{{attachment}}`.
|
|
@@ -510,7 +617,7 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
510
617
|
* t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)
|
|
511
618
|
* ```
|
|
512
619
|
*/
|
|
513
|
-
readonly removeAttachmentLabel: _angular_core.InputSignal<TranslatableString>;
|
|
620
|
+
readonly removeAttachmentLabel: _angular_core.InputSignal<TranslatableString$1>;
|
|
514
621
|
/**
|
|
515
622
|
* More actions button aria label
|
|
516
623
|
*
|
|
@@ -519,7 +626,7 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
519
626
|
* t(() => $localize`:@@SI_CHAT_INPUT.SECONDARY_ACTIONS:Additional actions`)
|
|
520
627
|
* ```
|
|
521
628
|
*/
|
|
522
|
-
readonly secondaryActionsLabel: _angular_core.InputSignal<TranslatableString>;
|
|
629
|
+
readonly secondaryActionsLabel: _angular_core.InputSignal<TranslatableString$1>;
|
|
523
630
|
/**
|
|
524
631
|
* Suggested follow-up prompts to display as pill buttons above the chat input.
|
|
525
632
|
* Use `followUpPromptSelected` to handle selection and update the input value.
|
|
@@ -552,27 +659,27 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
552
659
|
protected readonly hasAttachments: _angular_core.Signal<boolean>;
|
|
553
660
|
protected readonly hasActions: _angular_core.Signal<boolean>;
|
|
554
661
|
protected readonly hasSecondaryActions: _angular_core.Signal<boolean>;
|
|
555
|
-
protected readonly combinedMenuActions: _angular_core.Signal<
|
|
662
|
+
protected readonly combinedMenuActions: _angular_core.Signal<MenuItemAction[]>;
|
|
556
663
|
protected readonly hasMenuActions: _angular_core.Signal<boolean>;
|
|
557
664
|
protected triggerFileInput(): void;
|
|
558
665
|
protected readonly canSend: _angular_core.Signal<boolean>;
|
|
559
666
|
protected readonly showInterruptButton: _angular_core.Signal<boolean>;
|
|
560
667
|
protected readonly buttonDisabled: _angular_core.Signal<boolean>;
|
|
561
668
|
protected readonly buttonIcon: _angular_core.Signal<string>;
|
|
562
|
-
protected readonly buttonLabel: _angular_core.Signal<TranslatableString>;
|
|
669
|
+
protected readonly buttonLabel: _angular_core.Signal<TranslatableString$1>;
|
|
563
670
|
protected readonly dragOver: _angular_core.WritableSignal<boolean>;
|
|
564
|
-
private readonly
|
|
565
|
-
protected
|
|
671
|
+
private readonly menuActionService;
|
|
672
|
+
protected runAction(action: MenuItemAction): void;
|
|
566
673
|
protected selectFollowUpPrompt(prompt: string): void;
|
|
567
674
|
protected onSend(): void;
|
|
568
675
|
protected onButtonClick(): void;
|
|
569
676
|
protected onKeyDown(event: KeyboardEvent): void;
|
|
677
|
+
protected onInput(event: Event): void;
|
|
570
678
|
protected onFilesAdded(uploadFiles: UploadFile[]): void;
|
|
571
679
|
protected onFileError(error: FileUploadError): void;
|
|
572
680
|
protected removeAttachment(attachment: Attachment): void;
|
|
573
681
|
protected onContainerClick(event: Event): void;
|
|
574
682
|
ngAfterViewInit(): void;
|
|
575
|
-
protected adjustTextareaHeight(event: Event): void;
|
|
576
683
|
/**
|
|
577
684
|
* Focus the textarea input
|
|
578
685
|
*/
|
|
@@ -581,8 +688,26 @@ declare class SiChatInputComponent implements AfterViewInit {
|
|
|
581
688
|
protected dragOverHandler(event: DragEvent): void;
|
|
582
689
|
private setTextareaHeight;
|
|
583
690
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChatInputComponent, never>;
|
|
584
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChatInputComponent, "si-chat-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "sending": { "alias": "sending"; "required": false; "isSignal": true; }; "interruptible": { "alias": "interruptible"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "disclaimer": { "alias": "disclaimer"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "secondaryActions": { "alias": "secondaryActions"; "required": false; "isSignal": true; }; "allowAttachments": { "alias": "allowAttachments"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "attachments": { "alias": "attachments"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "actionParam": { "alias": "actionParam"; "required": false; "isSignal": true; }; "sendButtonLabel": { "alias": "sendButtonLabel"; "required": false; "isSignal": true; }; "sendButtonIcon": { "alias": "sendButtonIcon"; "required": false; "isSignal": true; }; "interruptButtonLabel": { "alias": "interruptButtonLabel"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "attachFileLabel": { "alias": "attachFileLabel"; "required": false; "isSignal": true; }; "removeAttachmentLabel": { "alias": "removeAttachmentLabel"; "required": false; "isSignal": true; }; "secondaryActionsLabel": { "alias": "secondaryActionsLabel"; "required": false; "isSignal": true; }; "followUpPrompts": { "alias": "followUpPrompts"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "attachments": "attachmentsChange"; "followUpPromptSelected": "followUpPromptSelected"; "send": "send"; "interrupt": "interrupt"; "fileError": "fileError"; }, never, ["*", "[siChatInputDisclaimer]"], true, never>;
|
|
691
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChatInputComponent, "si-chat-input", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "sending": { "alias": "sending"; "required": false; "isSignal": true; }; "interruptible": { "alias": "interruptible"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "disclaimer": { "alias": "disclaimer"; "required": false; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "secondaryActions": { "alias": "secondaryActions"; "required": false; "isSignal": true; }; "allowAttachments": { "alias": "allowAttachments"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; "isSignal": true; }; "attachments": { "alias": "attachments"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "actionParam": { "alias": "actionParam"; "required": false; "isSignal": true; }; "sendButtonLabel": { "alias": "sendButtonLabel"; "required": false; "isSignal": true; }; "sendButtonIcon": { "alias": "sendButtonIcon"; "required": false; "isSignal": true; }; "interruptButtonLabel": { "alias": "interruptButtonLabel"; "required": false; "isSignal": true; }; "autoFocus": { "alias": "autoFocus"; "required": false; "isSignal": true; }; "attachFileLabel": { "alias": "attachFileLabel"; "required": false; "isSignal": true; }; "removeAttachmentLabel": { "alias": "removeAttachmentLabel"; "required": false; "isSignal": true; }; "secondaryActionsLabel": { "alias": "secondaryActionsLabel"; "required": false; "isSignal": true; }; "followUpPrompts": { "alias": "followUpPrompts"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "sending": "sendingChange"; "interruptible": "interruptibleChange"; "attachments": "attachmentsChange"; "followUpPromptSelected": "followUpPromptSelected"; "send": "send"; "interrupt": "interrupt"; "fileError": "fileError"; }, never, ["*", "[siChatInputDisclaimer]"], true, never>;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
696
|
+
* SPDX-License-Identifier: MIT
|
|
697
|
+
*/
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Parent contract used by {@link SiChatInputComponent} when it is projected into a chat container.
|
|
701
|
+
*/
|
|
702
|
+
interface SiChatInputParent {
|
|
703
|
+
readonly inputSending: Signal<boolean>;
|
|
704
|
+
readonly inputInterruptible: Signal<boolean>;
|
|
705
|
+
onInputSend(): void;
|
|
585
706
|
}
|
|
707
|
+
/**
|
|
708
|
+
* Optional parent contract for {@link SiChatInputComponent}.
|
|
709
|
+
*/
|
|
710
|
+
declare const SI_CHAT_INPUT_PARENT: InjectionToken<SiChatInputParent>;
|
|
586
711
|
|
|
587
712
|
/**
|
|
588
713
|
* Directive to mark content as chat input disclaimer into {@link SiChatInputComponent}.
|
|
@@ -628,6 +753,38 @@ declare class SiChatMessageActionDirective {
|
|
|
628
753
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SiChatMessageActionDirective, "[siChatMessageAction]", never, {}, {}, never, never, true, never>;
|
|
629
754
|
}
|
|
630
755
|
|
|
756
|
+
/**
|
|
757
|
+
* Shared action controls for user and AI messages.
|
|
758
|
+
*
|
|
759
|
+
* Pass the pre-split primary and secondary actions to this component.
|
|
760
|
+
*
|
|
761
|
+
* @experimental
|
|
762
|
+
*/
|
|
763
|
+
declare class SiChatMessageActionsComponent {
|
|
764
|
+
private readonly menuActionService;
|
|
765
|
+
protected readonly icons: Record<"elementOptionsVertical", string>;
|
|
766
|
+
/** Primary message actions displayed inline.
|
|
767
|
+
* @defaultValue []
|
|
768
|
+
*/
|
|
769
|
+
readonly actions: _angular_core.InputSignal<MenuItemAction[]>;
|
|
770
|
+
/** Secondary actions displayed in the menu.
|
|
771
|
+
* @defaultValue []
|
|
772
|
+
*/
|
|
773
|
+
readonly secondaryActions: _angular_core.InputSignal<MenuItemAction[]>;
|
|
774
|
+
/** Parameter passed to action handlers. */
|
|
775
|
+
readonly actionParam: _angular_core.InputSignal<unknown>;
|
|
776
|
+
/** More actions button aria label.
|
|
777
|
+
* @defaultValue
|
|
778
|
+
* ```
|
|
779
|
+
* t(() => $localize`:@@SI_CHAT_MESSAGE_ACTIONS.SECONDARY_ACTIONS:Additional actions`)
|
|
780
|
+
* ```
|
|
781
|
+
*/
|
|
782
|
+
readonly secondaryActionsLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>;
|
|
783
|
+
protected runAction(action: MenuItemAction): void;
|
|
784
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChatMessageActionsComponent, never>;
|
|
785
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChatMessageActionsComponent, "si-chat-message-actions", never, { "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "secondaryActions": { "alias": "secondaryActions"; "required": false; "isSignal": true; }; "actionParam": { "alias": "actionParam"; "required": false; "isSignal": true; }; "secondaryActionsLabel": { "alias": "secondaryActionsLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
786
|
+
}
|
|
787
|
+
|
|
631
788
|
/**
|
|
632
789
|
* Base declarative chat message component that provides the layout structure for chat messages.
|
|
633
790
|
*
|
|
@@ -699,7 +856,6 @@ declare class SiChatMessageComponent {
|
|
|
699
856
|
* @experimental
|
|
700
857
|
*/
|
|
701
858
|
declare class SiUserMessageComponent {
|
|
702
|
-
protected readonly icons: Record<"elementOptionsVertical", string>;
|
|
703
859
|
/**
|
|
704
860
|
* The user message content
|
|
705
861
|
* @defaultValue ''
|
|
@@ -710,12 +866,12 @@ declare class SiUserMessageComponent {
|
|
|
710
866
|
* All actions displayed inline
|
|
711
867
|
* @defaultValue []
|
|
712
868
|
*/
|
|
713
|
-
readonly actions: _angular_core.InputSignal<
|
|
869
|
+
readonly actions: _angular_core.InputSignal<MenuItemAction[]>;
|
|
714
870
|
/**
|
|
715
871
|
* Secondary actions available in dropdown menu, first use primary actions and only add secondary actions additionally
|
|
716
872
|
* @defaultValue []
|
|
717
873
|
*/
|
|
718
|
-
readonly secondaryActions: _angular_core.InputSignal<
|
|
874
|
+
readonly secondaryActions: _angular_core.InputSignal<MenuItemAction[]>;
|
|
719
875
|
/**
|
|
720
876
|
* List of attachments included with this message
|
|
721
877
|
* @defaultValue []
|
|
@@ -738,10 +894,10 @@ declare class SiUserMessageComponent {
|
|
|
738
894
|
}
|
|
739
895
|
|
|
740
896
|
interface PromptCategory {
|
|
741
|
-
label: TranslatableString;
|
|
897
|
+
label: TranslatableString$1;
|
|
742
898
|
}
|
|
743
899
|
interface PromptSuggestion {
|
|
744
|
-
text: TranslatableString;
|
|
900
|
+
text: TranslatableString$1;
|
|
745
901
|
}
|
|
746
902
|
/**
|
|
747
903
|
* AI welcome screen component for displaying initial state in AI chat interfaces.
|
|
@@ -756,6 +912,7 @@ interface PromptSuggestion {
|
|
|
756
912
|
* - Clickable prompt suggestion cards
|
|
757
913
|
* - Optional refresh button to regenerate suggestions
|
|
758
914
|
*
|
|
915
|
+
* @see {@link SiAiChatComponent} for the AI chat container which uses this component
|
|
759
916
|
* @see {@link SiChatContainerComponent} for the base chat container
|
|
760
917
|
*
|
|
761
918
|
* @experimental
|
|
@@ -786,5 +943,239 @@ declare class SiAiWelcomeScreenComponent {
|
|
|
786
943
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiAiWelcomeScreenComponent, "si-ai-welcome-screen", never, { "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "selectedCategory": { "alias": "selectedCategory"; "required": false; "isSignal": true; }; "promptSuggestions": { "alias": "promptSuggestions"; "required": false; "isSignal": true; }; }, { "selectedCategory": "selectedCategoryChange"; "promptSelected": "promptSelected"; }, never, ["*"], true, never>;
|
|
787
944
|
}
|
|
788
945
|
|
|
789
|
-
|
|
790
|
-
|
|
946
|
+
interface ActivityInputPart {
|
|
947
|
+
content?: string;
|
|
948
|
+
heading: TranslatableString$1;
|
|
949
|
+
key?: string;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* A model-driven chat container component for displaying an AI chat interface with automatic scroll-to-bottom behavior.
|
|
953
|
+
*
|
|
954
|
+
* This component provides an AI chat interface, managing scrolling behavior
|
|
955
|
+
* to keep the newest messages visible while respecting user scrolling actions. It automatically
|
|
956
|
+
* scrolls to the bottom when new content is added, unless the user has scrolled up to view older messages.
|
|
957
|
+
*
|
|
958
|
+
* Required content projection:
|
|
959
|
+
* - `si-chat-input`: Input controls for composing messages
|
|
960
|
+
*
|
|
961
|
+
* @see {@link ChatMessage} for the chat message model
|
|
962
|
+
* @see {@link AiChatMessage} for the AI chat message model
|
|
963
|
+
* @see {@link UserChatMessage} for the user chat message model
|
|
964
|
+
* @see {@link TemplateChatMessage} for the template chat message model
|
|
965
|
+
* @see {@link SiChatInputComponent} for the chat input component
|
|
966
|
+
* @see {@link SiChatContainerComponent} for the base chat container component
|
|
967
|
+
* @see {@link SiAiMessageComponent} for the used AI message component
|
|
968
|
+
* @see {@link SiUserMessageComponent} for the used user message component
|
|
969
|
+
* @see {@link SiChatMessageComponent} for the base wrapper chat message component used by AI and user message components
|
|
970
|
+
*
|
|
971
|
+
* @experimental
|
|
972
|
+
*/
|
|
973
|
+
declare class SiAiChatComponent implements SiChatInputParent {
|
|
974
|
+
private readonly chatInput;
|
|
975
|
+
private readonly chatContainer;
|
|
976
|
+
constructor();
|
|
977
|
+
/**
|
|
978
|
+
* List of chat messages to display. Messages can contain either content (string)
|
|
979
|
+
* or a template (TemplateRef) for custom rendering. When both content and template
|
|
980
|
+
* are provided, the template takes precedence.
|
|
981
|
+
*/
|
|
982
|
+
readonly messages: _angular_core.InputSignal<ChatMessage[] | undefined>;
|
|
983
|
+
/**
|
|
984
|
+
* Whether the latest activity details are expanded automatically.
|
|
985
|
+
* @defaultValue true
|
|
986
|
+
*/
|
|
987
|
+
readonly autoExpand: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
988
|
+
/**
|
|
989
|
+
* Which activity input and output parts are shown.
|
|
990
|
+
* @defaultValue 'auto'
|
|
991
|
+
*/
|
|
992
|
+
readonly show: _angular_core.InputSignal<ActivityDetailsDisplay>;
|
|
993
|
+
/**
|
|
994
|
+
* Whether a message is currently being sent, disables input and shows a loading state in the input area.
|
|
995
|
+
* If you want to show a loading state for the latest AI message, set {@link loading} to true instead.
|
|
996
|
+
* @defaultValue false
|
|
997
|
+
*/
|
|
998
|
+
readonly sending: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
999
|
+
/**
|
|
1000
|
+
* Whether a pending loading AI message should be shown (e.g. while waiting for response).
|
|
1001
|
+
* If you also want to prevent the user from sending new messages, set {@link sending} to true as well.
|
|
1002
|
+
* @defaultValue false
|
|
1003
|
+
*/
|
|
1004
|
+
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1005
|
+
/**
|
|
1006
|
+
* Whether to disable the interrupt functionality
|
|
1007
|
+
* @defaultValue false
|
|
1008
|
+
*/
|
|
1009
|
+
readonly disableInterrupt: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Whether the system is currently interrupting an operation. When true,
|
|
1012
|
+
* forces interruptible mode and shows sending state on the input.
|
|
1013
|
+
* @defaultValue false
|
|
1014
|
+
*/
|
|
1015
|
+
readonly interrupting: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1016
|
+
/**
|
|
1017
|
+
* Disable auto-scroll to bottom when new messages are added
|
|
1018
|
+
* @defaultValue false
|
|
1019
|
+
*/
|
|
1020
|
+
readonly noAutoScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
1021
|
+
/**
|
|
1022
|
+
* Custom AI icon name, used for empty state
|
|
1023
|
+
* @defaultValue 'element-ai'
|
|
1024
|
+
*/
|
|
1025
|
+
readonly aiIcon: _angular_core.InputSignal<string>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Color to use for component background.
|
|
1028
|
+
* @defaultValue 'base-0'
|
|
1029
|
+
*/
|
|
1030
|
+
readonly colorVariant: _angular_core.InputSignal<BackgroundColorVariant>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Options used to render chat message markdown.
|
|
1033
|
+
* @defaultValue
|
|
1034
|
+
* ```
|
|
1035
|
+
* makeSiMarkdownOptions()
|
|
1036
|
+
* ```
|
|
1037
|
+
*/
|
|
1038
|
+
readonly markdownOptions: _angular_core.InputSignal<SiMarkdownOptions>;
|
|
1039
|
+
/**
|
|
1040
|
+
* The greeting text for the welcome screen
|
|
1041
|
+
* @defaultValue
|
|
1042
|
+
* ```
|
|
1043
|
+
* t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_GREETING:Hello,`)
|
|
1044
|
+
* ```
|
|
1045
|
+
*/
|
|
1046
|
+
readonly greeting: _angular_core.InputSignal<TranslatableString$1>;
|
|
1047
|
+
/**
|
|
1048
|
+
* The welcome message text for the welcome screen
|
|
1049
|
+
* @defaultValue
|
|
1050
|
+
* ```
|
|
1051
|
+
* t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_MESSAGE:how can I help you today?`)
|
|
1052
|
+
* ```
|
|
1053
|
+
*/
|
|
1054
|
+
readonly welcomeMessage: _angular_core.InputSignal<TranslatableString$1>;
|
|
1055
|
+
/**
|
|
1056
|
+
* The list of prompt suggestions for the welcome screen, either as an array or a record mapping category labels to suggestion arrays
|
|
1057
|
+
* @defaultValue []
|
|
1058
|
+
*/
|
|
1059
|
+
readonly promptSuggestions: _angular_core.InputSignal<PromptSuggestion[] | Record<string, PromptSuggestion[]>>;
|
|
1060
|
+
/**
|
|
1061
|
+
* More actions button aria label
|
|
1062
|
+
*
|
|
1063
|
+
* @defaultValue
|
|
1064
|
+
* ```
|
|
1065
|
+
* t(() => $localize`:@@SI_AI_CHAT_CONTAINER.SECONDARY_ACTIONS:More actions`)
|
|
1066
|
+
* ```
|
|
1067
|
+
*/
|
|
1068
|
+
readonly secondaryActionsLabel: _angular_core.InputSignal<TranslatableString$1>;
|
|
1069
|
+
/**
|
|
1070
|
+
* Status notification severity
|
|
1071
|
+
*/
|
|
1072
|
+
readonly statusSeverity: _angular_core.InputSignal<"info" | "success" | "warning" | "danger" | "caution" | "critical" | undefined>;
|
|
1073
|
+
/**
|
|
1074
|
+
* Status notification heading
|
|
1075
|
+
*/
|
|
1076
|
+
readonly statusHeading: _angular_core.InputSignal<string | undefined>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Status notification message
|
|
1079
|
+
*/
|
|
1080
|
+
readonly statusMessage: _angular_core.InputSignal<string | undefined>;
|
|
1081
|
+
/**
|
|
1082
|
+
* Status notification action link
|
|
1083
|
+
*/
|
|
1084
|
+
readonly statusAction: _angular_core.InputSignal<{
|
|
1085
|
+
title: string;
|
|
1086
|
+
href: string;
|
|
1087
|
+
target?: string;
|
|
1088
|
+
} | undefined>;
|
|
1089
|
+
/**
|
|
1090
|
+
* Label for activity input arguments.
|
|
1091
|
+
* @defaultValue
|
|
1092
|
+
* ```
|
|
1093
|
+
* t(() => $localize`:@@SI_AI_CHAT_CONTAINER.INPUT_ARGUMENTS:Input arguments`)
|
|
1094
|
+
* ```
|
|
1095
|
+
*/
|
|
1096
|
+
readonly activityInputArgumentsLabel: _angular_core.InputSignal<TranslatableString$1>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Label for activity output.
|
|
1099
|
+
* @defaultValue
|
|
1100
|
+
* ```
|
|
1101
|
+
* t(() => $localize`:@@SI_AI_CHAT_CONTAINER.OUTPUT:Output`)
|
|
1102
|
+
* ```
|
|
1103
|
+
*/
|
|
1104
|
+
readonly activityOutputLabel: _angular_core.InputSignal<TranslatableString$1>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Default name for reasoning activities.
|
|
1107
|
+
* @defaultValue
|
|
1108
|
+
* ```
|
|
1109
|
+
* t(() => $localize`:@@SI_AI_CHAT_CONTAINER.REASONING:Reasoning`)
|
|
1110
|
+
* ```
|
|
1111
|
+
*/
|
|
1112
|
+
readonly activityReasoningLabel: _angular_core.InputSignal<TranslatableString$1>;
|
|
1113
|
+
/**
|
|
1114
|
+
* Emitted when a new message is sent
|
|
1115
|
+
*/
|
|
1116
|
+
readonly messageSent: _angular_core.OutputEmitterRef<{
|
|
1117
|
+
content: string;
|
|
1118
|
+
attachments: ChatInputAttachment[];
|
|
1119
|
+
}>;
|
|
1120
|
+
/**
|
|
1121
|
+
* Internal selected category state
|
|
1122
|
+
*/
|
|
1123
|
+
protected readonly selectedCategory: _angular_core.WritableSignal<string | undefined>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Computed list of categories derived from promptSuggestions
|
|
1126
|
+
*/
|
|
1127
|
+
protected readonly promptCategories: Signal<{
|
|
1128
|
+
label: string;
|
|
1129
|
+
}[]>;
|
|
1130
|
+
/**
|
|
1131
|
+
* Resolved prompt suggestions based on selected category.
|
|
1132
|
+
*/
|
|
1133
|
+
protected readonly resolvedPromptSuggestions: Signal<PromptSuggestion[]>;
|
|
1134
|
+
protected readonly isEmpty: Signal<boolean>;
|
|
1135
|
+
readonly inputInterruptible: Signal<boolean>;
|
|
1136
|
+
readonly inputSending: Signal<boolean>;
|
|
1137
|
+
protected readonly displayMessages: Signal<ChatMessage[]>;
|
|
1138
|
+
protected readonly renderedMessages: Signal<{
|
|
1139
|
+
message: ChatMessage;
|
|
1140
|
+
primaryActions: _siemens_element_ng_menu.MenuItemAction[];
|
|
1141
|
+
secondaryActions: _siemens_element_ng_menu.MenuItemAction[];
|
|
1142
|
+
}[]>;
|
|
1143
|
+
protected isTemplateMessage(message: ChatMessage): message is TemplateChatMessage;
|
|
1144
|
+
/**
|
|
1145
|
+
* Scrolls to the bottom of the messages container immediately.
|
|
1146
|
+
* This method forces a scroll even if the user has scrolled up.
|
|
1147
|
+
*/
|
|
1148
|
+
scrollToBottom(): void;
|
|
1149
|
+
onInputSend(): void;
|
|
1150
|
+
/**
|
|
1151
|
+
* Focuses the chat input component if it exists.
|
|
1152
|
+
*/
|
|
1153
|
+
focus(): void;
|
|
1154
|
+
protected getContentValue(content: string | Signal<string> | undefined): string;
|
|
1155
|
+
protected getMarkdownContent(content: string | object | Signal<string | object> | undefined): string;
|
|
1156
|
+
private isEmptyContent;
|
|
1157
|
+
protected getLoadingValue(loading: boolean | Signal<boolean> | undefined): boolean;
|
|
1158
|
+
private isStreamingContent;
|
|
1159
|
+
protected getLoadingState(messageLoading: boolean | Signal<boolean> | undefined, content: string | Signal<string> | undefined, isLatest: boolean, globalLoading?: boolean): boolean;
|
|
1160
|
+
protected isLatestMessage(message: ChatMessage): boolean;
|
|
1161
|
+
protected isLatestActivityMessage(message: ActivityChatMessage | ActivityTraceChatMessage): boolean;
|
|
1162
|
+
protected shouldAutoExpandTrace(message: ActivityTraceChatMessage): boolean;
|
|
1163
|
+
protected shouldAutoExpandActivity(message: ActivityChatMessage, active: boolean, inheritedAutoExpand: boolean): boolean;
|
|
1164
|
+
private hasExplicitAutoExpand;
|
|
1165
|
+
protected hasActivityDetails(message: ActivityChatMessage): boolean;
|
|
1166
|
+
protected getActivityInputs(message: ActivityChatMessage): ActivityInputPart[];
|
|
1167
|
+
protected hasActivityOutput(message: ActivityChatMessage): boolean;
|
|
1168
|
+
protected getDirectActivityDetail(message: ActivityChatMessage): string | undefined;
|
|
1169
|
+
private getDirectActivityDetailType;
|
|
1170
|
+
protected shouldShowActivityInputs(message: ActivityChatMessage): boolean;
|
|
1171
|
+
protected shouldShowActivityOutput(message: ActivityChatMessage): boolean;
|
|
1172
|
+
protected shouldAutoExpandInput(message: ActivityChatMessage, inputPart: ActivityInputPart, active: boolean, inheritedAutoExpand: boolean): boolean;
|
|
1173
|
+
protected shouldAutoExpandOutput(message: ActivityChatMessage, active: boolean, inheritedAutoExpand: boolean): boolean;
|
|
1174
|
+
protected readonly isSignal: typeof isSignal;
|
|
1175
|
+
protected onPromptSelected(suggestion: PromptSuggestion): void;
|
|
1176
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiAiChatComponent, never>;
|
|
1177
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiAiChatComponent, "si-ai-chat", never, { "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "autoExpand": { "alias": "autoExpand"; "required": false; "isSignal": true; }; "show": { "alias": "show"; "required": false; "isSignal": true; }; "sending": { "alias": "sending"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disableInterrupt": { "alias": "disableInterrupt"; "required": false; "isSignal": true; }; "interrupting": { "alias": "interrupting"; "required": false; "isSignal": true; }; "noAutoScroll": { "alias": "noAutoScroll"; "required": false; "isSignal": true; }; "aiIcon": { "alias": "aiIcon"; "required": false; "isSignal": true; }; "colorVariant": { "alias": "colorVariant"; "required": false; "isSignal": true; }; "markdownOptions": { "alias": "markdownOptions"; "required": false; "isSignal": true; }; "greeting": { "alias": "greeting"; "required": false; "isSignal": true; }; "welcomeMessage": { "alias": "welcomeMessage"; "required": false; "isSignal": true; }; "promptSuggestions": { "alias": "promptSuggestions"; "required": false; "isSignal": true; }; "secondaryActionsLabel": { "alias": "secondaryActionsLabel"; "required": false; "isSignal": true; }; "statusSeverity": { "alias": "statusSeverity"; "required": false; "isSignal": true; }; "statusHeading": { "alias": "statusHeading"; "required": false; "isSignal": true; }; "statusMessage": { "alias": "statusMessage"; "required": false; "isSignal": true; }; "statusAction": { "alias": "statusAction"; "required": false; "isSignal": true; }; "activityInputArgumentsLabel": { "alias": "activityInputArgumentsLabel"; "required": false; "isSignal": true; }; "activityOutputLabel": { "alias": "activityOutputLabel"; "required": false; "isSignal": true; }; "activityReasoningLabel": { "alias": "activityReasoningLabel"; "required": false; "isSignal": true; }; }, { "messageSent": "messageSent"; }, ["chatInput"], ["[welcomeScreen]", "si-chat-input"], true, never>;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export { SI_CHAT_INPUT_PARENT, SiActivityMessageComponent, SiActivityMessagePartComponent, SiActivityTraceComponent, SiAiChatComponent, SiAiMessageComponent, SiAiWelcomeScreenComponent, SiAttachmentListComponent, SiChatContainerComponent, SiChatContainerInputDirective, SiChatInputComponent, SiChatInputDisclaimerDirective, SiChatMessageActionDirective, SiChatMessageActionsComponent, SiChatMessageComponent, SiUserMessageComponent };
|
|
1181
|
+
export type { ActivityChatMessage, ActivityDetailsDisplay, ActivityTraceChatMessage, AiChatMessage, Attachment, BaseChatMessage, ChatInputAttachment, ChatMessage, PromptCategory, PromptSuggestion, SiChatInputParent, TemplateChatMessage, UserChatMessage };
|