@siemens/element-ng 51.6.0 → 51.7.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.
Files changed (150) hide show
  1. package/README.md +3 -4
  2. package/element-ng.scss +3 -1
  3. package/fesm2022/siemens-element-ng-accordion.mjs +2 -2
  4. package/fesm2022/siemens-element-ng-accordion.mjs.map +1 -1
  5. package/fesm2022/siemens-element-ng-ag-grid.mjs +9 -9
  6. package/fesm2022/siemens-element-ng-ag-grid.mjs.map +1 -1
  7. package/fesm2022/siemens-element-ng-application-header.mjs +10 -7
  8. package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
  9. package/fesm2022/siemens-element-ng-avatar.mjs +3 -3
  10. package/fesm2022/siemens-element-ng-avatar.mjs.map +1 -1
  11. package/fesm2022/siemens-element-ng-card.mjs +6 -5
  12. package/fesm2022/siemens-element-ng-card.mjs.map +1 -1
  13. package/fesm2022/siemens-element-ng-carousel.mjs +6 -4
  14. package/fesm2022/siemens-element-ng-carousel.mjs.map +1 -1
  15. package/fesm2022/siemens-element-ng-chat-messages.mjs +605 -32
  16. package/fesm2022/siemens-element-ng-chat-messages.mjs.map +1 -1
  17. package/fesm2022/siemens-element-ng-color-picker.mjs +55 -39
  18. package/fesm2022/siemens-element-ng-color-picker.mjs.map +1 -1
  19. package/fesm2022/siemens-element-ng-content-action-bar.mjs +2 -2
  20. package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -1
  21. package/fesm2022/siemens-element-ng-dashboard.mjs +13 -15
  22. package/fesm2022/siemens-element-ng-dashboard.mjs.map +1 -1
  23. package/fesm2022/siemens-element-ng-date-range-filter.mjs +3 -3
  24. package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -1
  25. package/fesm2022/siemens-element-ng-datepicker.mjs +5 -4
  26. package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -1
  27. package/fesm2022/siemens-element-ng-empty-state.mjs +13 -6
  28. package/fesm2022/siemens-element-ng-empty-state.mjs.map +1 -1
  29. package/fesm2022/siemens-element-ng-file-uploader.mjs +2 -2
  30. package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -1
  31. package/fesm2022/siemens-element-ng-filter-bar.mjs +4 -4
  32. package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -1
  33. package/fesm2022/siemens-element-ng-footer.mjs +2 -2
  34. package/fesm2022/siemens-element-ng-form.mjs +4 -4
  35. package/fesm2022/siemens-element-ng-formly.mjs +1 -1
  36. package/fesm2022/siemens-element-ng-formly.mjs.map +1 -1
  37. package/fesm2022/siemens-element-ng-icon.mjs +2 -1
  38. package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
  39. package/fesm2022/siemens-element-ng-info-page.mjs +20 -7
  40. package/fesm2022/siemens-element-ng-info-page.mjs.map +1 -1
  41. package/fesm2022/siemens-element-ng-inline-notification.mjs +2 -2
  42. package/fesm2022/siemens-element-ng-inline-notification.mjs.map +1 -1
  43. package/fesm2022/siemens-element-ng-landing-page.mjs +2 -2
  44. package/fesm2022/siemens-element-ng-landing-page.mjs.map +1 -1
  45. package/fesm2022/siemens-element-ng-list-details.mjs +2 -2
  46. package/fesm2022/siemens-element-ng-list-details.mjs.map +1 -1
  47. package/fesm2022/siemens-element-ng-loading-spinner.mjs +2 -2
  48. package/fesm2022/siemens-element-ng-loading-spinner.mjs.map +1 -1
  49. package/fesm2022/siemens-element-ng-maplibre.mjs +133 -10
  50. package/fesm2022/siemens-element-ng-maplibre.mjs.map +1 -1
  51. package/fesm2022/siemens-element-ng-menu.mjs +6 -6
  52. package/fesm2022/siemens-element-ng-menu.mjs.map +1 -1
  53. package/fesm2022/siemens-element-ng-modal.mjs +71 -84
  54. package/fesm2022/siemens-element-ng-modal.mjs.map +1 -1
  55. package/fesm2022/siemens-element-ng-navbar-vertical-next.mjs +64 -14
  56. package/fesm2022/siemens-element-ng-navbar-vertical-next.mjs.map +1 -1
  57. package/fesm2022/siemens-element-ng-navbar-vertical.mjs +4 -4
  58. package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -1
  59. package/fesm2022/siemens-element-ng-navbar.mjs +7 -2
  60. package/fesm2022/siemens-element-ng-navbar.mjs.map +1 -1
  61. package/fesm2022/siemens-element-ng-notification-item.mjs +2 -2
  62. package/fesm2022/siemens-element-ng-notification-item.mjs.map +1 -1
  63. package/fesm2022/siemens-element-ng-number-input.mjs +2 -2
  64. package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -1
  65. package/fesm2022/siemens-element-ng-password-strength.mjs +2 -2
  66. package/fesm2022/siemens-element-ng-password-strength.mjs.map +1 -1
  67. package/fesm2022/siemens-element-ng-phone-number.mjs +32 -23
  68. package/fesm2022/siemens-element-ng-phone-number.mjs.map +1 -1
  69. package/fesm2022/siemens-element-ng-photo-upload.mjs +7 -2
  70. package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -1
  71. package/fesm2022/siemens-element-ng-pills-input.mjs +2 -2
  72. package/fesm2022/siemens-element-ng-pills-input.mjs.map +1 -1
  73. package/fesm2022/siemens-element-ng-result-details-list.mjs +11 -6
  74. package/fesm2022/siemens-element-ng-result-details-list.mjs.map +1 -1
  75. package/fesm2022/siemens-element-ng-search-bar.mjs +188 -15
  76. package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -1
  77. package/fesm2022/siemens-element-ng-select.mjs +631 -764
  78. package/fesm2022/siemens-element-ng-select.mjs.map +1 -1
  79. package/fesm2022/siemens-element-ng-side-panel.mjs +19 -10
  80. package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
  81. package/fesm2022/siemens-element-ng-slider.mjs +2 -2
  82. package/fesm2022/siemens-element-ng-slider.mjs.map +1 -1
  83. package/fesm2022/siemens-element-ng-source-chip.mjs +2 -2
  84. package/fesm2022/siemens-element-ng-source-chip.mjs.map +1 -1
  85. package/fesm2022/siemens-element-ng-split.mjs +2 -2
  86. package/fesm2022/siemens-element-ng-split.mjs.map +1 -1
  87. package/fesm2022/siemens-element-ng-status-bar.mjs +12 -12
  88. package/fesm2022/siemens-element-ng-status-bar.mjs.map +1 -1
  89. package/fesm2022/siemens-element-ng-status-counter.mjs +2 -2
  90. package/fesm2022/siemens-element-ng-status-counter.mjs.map +1 -1
  91. package/fesm2022/siemens-element-ng-status-toggle.mjs +2 -2
  92. package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -1
  93. package/fesm2022/siemens-element-ng-summary-chip.mjs +2 -2
  94. package/fesm2022/siemens-element-ng-summary-chip.mjs.map +1 -1
  95. package/fesm2022/siemens-element-ng-summary-widget.mjs +2 -2
  96. package/fesm2022/siemens-element-ng-summary-widget.mjs.map +1 -1
  97. package/fesm2022/siemens-element-ng-tabs-legacy.mjs +2 -1
  98. package/fesm2022/siemens-element-ng-tabs-legacy.mjs.map +1 -1
  99. package/fesm2022/siemens-element-ng-tabs.mjs +3 -6
  100. package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -1
  101. package/fesm2022/siemens-element-ng-theme.mjs +9 -5
  102. package/fesm2022/siemens-element-ng-theme.mjs.map +1 -1
  103. package/fesm2022/siemens-element-ng-threshold.mjs +2 -2
  104. package/fesm2022/siemens-element-ng-threshold.mjs.map +1 -1
  105. package/fesm2022/siemens-element-ng-toast-notification.mjs +2 -2
  106. package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -1
  107. package/fesm2022/siemens-element-ng-tour.mjs +2 -2
  108. package/fesm2022/siemens-element-ng-tour.mjs.map +1 -1
  109. package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
  110. package/fesm2022/siemens-element-ng-tree-view.mjs +8 -25
  111. package/fesm2022/siemens-element-ng-tree-view.mjs.map +1 -1
  112. package/fesm2022/siemens-element-ng-typeahead.mjs +42 -30
  113. package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -1
  114. package/fesm2022/siemens-element-ng-wizard.mjs +2 -2
  115. package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -1
  116. package/maplibre/styles/maplibre-gl.scss +2 -2
  117. package/package.json +8 -8
  118. package/schematics/collection.json +5 -0
  119. package/schematics/migrate-search-bar/index.js +5 -0
  120. package/schematics/migrate-search-bar/migrate-search-bar-rule.js +733 -0
  121. package/schematics/migrate-search-bar/schema.json +14 -0
  122. package/schematics/migrate-search-bar/search-bar-template.js +742 -0
  123. package/schematics/migrate-search-bar/text-edits.js +23 -0
  124. package/schematics/migrations/data/css-custom-properties.js +11 -11
  125. package/schematics/utils/project-utils.js +2 -1
  126. package/template-i18n.json +8 -0
  127. package/types/siemens-element-ng-application-header.d.ts +1 -0
  128. package/types/siemens-element-ng-avatar.d.ts +1 -1
  129. package/types/siemens-element-ng-card.d.ts +2 -2
  130. package/types/siemens-element-ng-chat-messages.d.ts +517 -124
  131. package/types/siemens-element-ng-color-picker.d.ts +18 -9
  132. package/types/siemens-element-ng-dashboard.d.ts +2 -1
  133. package/types/siemens-element-ng-empty-state.d.ts +9 -2
  134. package/types/siemens-element-ng-info-page.d.ts +17 -5
  135. package/types/siemens-element-ng-maplibre.d.ts +39 -2
  136. package/types/siemens-element-ng-modal.d.ts +6 -4
  137. package/types/siemens-element-ng-navbar-vertical-next.d.ts +31 -2
  138. package/types/siemens-element-ng-navbar.d.ts +1 -0
  139. package/types/siemens-element-ng-phone-number.d.ts +5 -6
  140. package/types/siemens-element-ng-photo-upload.d.ts +1 -0
  141. package/types/siemens-element-ng-result-details-list.d.ts +7 -2
  142. package/types/siemens-element-ng-search-bar.d.ts +110 -5
  143. package/types/siemens-element-ng-select.d.ts +257 -286
  144. package/types/siemens-element-ng-side-panel.d.ts +5 -1
  145. package/types/siemens-element-ng-status-bar.d.ts +2 -2
  146. package/types/siemens-element-ng-tabs-legacy.d.ts +2 -1
  147. package/types/siemens-element-ng-theme.d.ts +1 -0
  148. package/types/siemens-element-ng-tour.d.ts +11 -0
  149. package/types/siemens-element-ng-translate.d.ts +8 -0
  150. 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 { MenuItem } from '@siemens/element-ng/menu';
6
- import { SourceReference } from '@siemens/element-ng/source-chip';
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
- * Actions for messages representing an action with icon, label (for accessibility), and handler, for use within {@link SiAiMessageComponent} and {@link SiUserMessageComponent}.
18
- * Only the icon will be displayed.
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 SiAiMessageComponent} for the AI message
21
- * @see {@link SiUserMessageComponent} for thee user message
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 MessageAction {
26
- /** Label that is shown to the user. */
27
- label: TranslatableString;
28
- /**
29
- * Icon used to represent the action
30
- */
31
- icon: string;
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
- * Action that is called when the item is triggered.
199
+ * Template to render the message
34
200
  */
35
- action: (actionParam: any, source: this) => void;
36
- /** Whether the menu item is disabled. */
37
- disabled?: boolean;
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<MessageAction[]>;
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<MenuItem[]>;
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.InputSignalWithTransform<boolean, unknown>;
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.InputSignalWithTransform<boolean, unknown>;
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<MessageAction[]>;
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<MenuItem[]>;
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,16 +659,18 @@ 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<MenuItem[]>;
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
671
  private readonly injector;
672
+ private readonly menuActionService;
673
+ protected runAction(action: MenuItemAction): void;
565
674
  protected onInputChange(value: string): void;
566
675
  protected selectFollowUpPrompt(prompt: string): void;
567
676
  protected onSend(): void;
@@ -581,8 +690,26 @@ declare class SiChatInputComponent implements AfterViewInit {
581
690
  protected dragOverHandler(event: DragEvent): void;
582
691
  private setTextareaHeight;
583
692
  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>;
693
+ 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>;
694
+ }
695
+
696
+ /**
697
+ * Copyright (c) Siemens 2016 - 2026
698
+ * SPDX-License-Identifier: MIT
699
+ */
700
+
701
+ /**
702
+ * Parent contract used by {@link SiChatInputComponent} when it is projected into a chat container.
703
+ */
704
+ interface SiChatInputParent {
705
+ readonly inputSending: Signal<boolean>;
706
+ readonly inputInterruptible: Signal<boolean>;
707
+ onInputSend(): void;
585
708
  }
709
+ /**
710
+ * Optional parent contract for {@link SiChatInputComponent}.
711
+ */
712
+ declare const SI_CHAT_INPUT_PARENT: InjectionToken<SiChatInputParent>;
586
713
 
587
714
  /**
588
715
  * Directive to mark content as chat input disclaimer into {@link SiChatInputComponent}.
@@ -628,6 +755,38 @@ declare class SiChatMessageActionDirective {
628
755
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SiChatMessageActionDirective, "[siChatMessageAction]", never, {}, {}, never, never, true, never>;
629
756
  }
630
757
 
758
+ /**
759
+ * Shared action controls for user and AI messages.
760
+ *
761
+ * Pass the pre-split primary and secondary actions to this component.
762
+ *
763
+ * @experimental
764
+ */
765
+ declare class SiChatMessageActionsComponent {
766
+ private readonly menuActionService;
767
+ protected readonly icons: Record<"elementOptionsVertical", string>;
768
+ /** Primary message actions displayed inline.
769
+ * @defaultValue []
770
+ */
771
+ readonly actions: _angular_core.InputSignal<MenuItemAction[]>;
772
+ /** Secondary actions displayed in the menu.
773
+ * @defaultValue []
774
+ */
775
+ readonly secondaryActions: _angular_core.InputSignal<MenuItemAction[]>;
776
+ /** Parameter passed to action handlers. */
777
+ readonly actionParam: _angular_core.InputSignal<unknown>;
778
+ /** More actions button aria label.
779
+ * @defaultValue
780
+ * ```
781
+ * t(() => $localize`:@@SI_CHAT_MESSAGE_ACTIONS.SECONDARY_ACTIONS:Additional actions`)
782
+ * ```
783
+ */
784
+ readonly secondaryActionsLabel: _angular_core.InputSignal<_siemens_element_translate_ng_translate.TranslatableString>;
785
+ protected runAction(action: MenuItemAction): void;
786
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChatMessageActionsComponent, never>;
787
+ 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>;
788
+ }
789
+
631
790
  /**
632
791
  * Base declarative chat message component that provides the layout structure for chat messages.
633
792
  *
@@ -699,7 +858,6 @@ declare class SiChatMessageComponent {
699
858
  * @experimental
700
859
  */
701
860
  declare class SiUserMessageComponent {
702
- protected readonly icons: Record<"elementOptionsVertical", string>;
703
861
  /**
704
862
  * The user message content
705
863
  * @defaultValue ''
@@ -710,12 +868,12 @@ declare class SiUserMessageComponent {
710
868
  * All actions displayed inline
711
869
  * @defaultValue []
712
870
  */
713
- readonly actions: _angular_core.InputSignal<MessageAction[]>;
871
+ readonly actions: _angular_core.InputSignal<MenuItemAction[]>;
714
872
  /**
715
873
  * Secondary actions available in dropdown menu, first use primary actions and only add secondary actions additionally
716
874
  * @defaultValue []
717
875
  */
718
- readonly secondaryActions: _angular_core.InputSignal<MenuItem[]>;
876
+ readonly secondaryActions: _angular_core.InputSignal<MenuItemAction[]>;
719
877
  /**
720
878
  * List of attachments included with this message
721
879
  * @defaultValue []
@@ -738,10 +896,10 @@ declare class SiUserMessageComponent {
738
896
  }
739
897
 
740
898
  interface PromptCategory {
741
- label: TranslatableString;
899
+ label: TranslatableString$1;
742
900
  }
743
901
  interface PromptSuggestion {
744
- text: TranslatableString;
902
+ text: TranslatableString$1;
745
903
  }
746
904
  /**
747
905
  * AI welcome screen component for displaying initial state in AI chat interfaces.
@@ -756,6 +914,7 @@ interface PromptSuggestion {
756
914
  * - Clickable prompt suggestion cards
757
915
  * - Optional refresh button to regenerate suggestions
758
916
  *
917
+ * @see {@link SiAiChatComponent} for the AI chat container which uses this component
759
918
  * @see {@link SiChatContainerComponent} for the base chat container
760
919
  *
761
920
  * @experimental
@@ -786,5 +945,239 @@ declare class SiAiWelcomeScreenComponent {
786
945
  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
946
  }
788
947
 
789
- export { SiActivityMessageComponent, SiActivityMessagePartComponent, SiActivityTraceComponent, SiAiMessageComponent, SiAiWelcomeScreenComponent, SiAttachmentListComponent, SiChatContainerComponent, SiChatContainerInputDirective, SiChatInputComponent, SiChatInputDisclaimerDirective, SiChatMessageActionDirective, SiChatMessageComponent, SiUserMessageComponent };
790
- export type { Attachment, ChatInputAttachment, MessageAction, PromptCategory, PromptSuggestion };
948
+ interface ActivityInputPart {
949
+ content?: string;
950
+ heading: TranslatableString$1;
951
+ key?: string;
952
+ }
953
+ /**
954
+ * A model-driven chat container component for displaying an AI chat interface with automatic scroll-to-bottom behavior.
955
+ *
956
+ * This component provides an AI chat interface, managing scrolling behavior
957
+ * to keep the newest messages visible while respecting user scrolling actions. It automatically
958
+ * scrolls to the bottom when new content is added, unless the user has scrolled up to view older messages.
959
+ *
960
+ * Required content projection:
961
+ * - `si-chat-input`: Input controls for composing messages
962
+ *
963
+ * @see {@link ChatMessage} for the chat message model
964
+ * @see {@link AiChatMessage} for the AI chat message model
965
+ * @see {@link UserChatMessage} for the user chat message model
966
+ * @see {@link TemplateChatMessage} for the template chat message model
967
+ * @see {@link SiChatInputComponent} for the chat input component
968
+ * @see {@link SiChatContainerComponent} for the base chat container component
969
+ * @see {@link SiAiMessageComponent} for the used AI message component
970
+ * @see {@link SiUserMessageComponent} for the used user message component
971
+ * @see {@link SiChatMessageComponent} for the base wrapper chat message component used by AI and user message components
972
+ *
973
+ * @experimental
974
+ */
975
+ declare class SiAiChatComponent implements SiChatInputParent {
976
+ private readonly chatInput;
977
+ private readonly chatContainer;
978
+ constructor();
979
+ /**
980
+ * List of chat messages to display. Messages can contain either content (string)
981
+ * or a template (TemplateRef) for custom rendering. When both content and template
982
+ * are provided, the template takes precedence.
983
+ */
984
+ readonly messages: _angular_core.InputSignal<ChatMessage[] | undefined>;
985
+ /**
986
+ * Whether the latest activity details are expanded automatically.
987
+ * @defaultValue true
988
+ */
989
+ readonly autoExpand: _angular_core.InputSignalWithTransform<boolean, unknown>;
990
+ /**
991
+ * Which activity input and output parts are shown.
992
+ * @defaultValue 'auto'
993
+ */
994
+ readonly show: _angular_core.InputSignal<ActivityDetailsDisplay>;
995
+ /**
996
+ * Whether a message is currently being sent, disables input and shows a loading state in the input area.
997
+ * If you want to show a loading state for the latest AI message, set {@link loading} to true instead.
998
+ * @defaultValue false
999
+ */
1000
+ readonly sending: _angular_core.InputSignalWithTransform<boolean, unknown>;
1001
+ /**
1002
+ * Whether a pending loading AI message should be shown (e.g. while waiting for response).
1003
+ * If you also want to prevent the user from sending new messages, set {@link sending} to true as well.
1004
+ * @defaultValue false
1005
+ */
1006
+ readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
1007
+ /**
1008
+ * Whether to disable the interrupt functionality
1009
+ * @defaultValue false
1010
+ */
1011
+ readonly disableInterrupt: _angular_core.InputSignalWithTransform<boolean, unknown>;
1012
+ /**
1013
+ * Whether the system is currently interrupting an operation. When true,
1014
+ * forces interruptible mode and shows sending state on the input.
1015
+ * @defaultValue false
1016
+ */
1017
+ readonly interrupting: _angular_core.InputSignalWithTransform<boolean, unknown>;
1018
+ /**
1019
+ * Disable auto-scroll to bottom when new messages are added
1020
+ * @defaultValue false
1021
+ */
1022
+ readonly noAutoScroll: _angular_core.InputSignalWithTransform<boolean, unknown>;
1023
+ /**
1024
+ * Custom AI icon name, used for empty state
1025
+ * @defaultValue 'element-ai'
1026
+ */
1027
+ readonly aiIcon: _angular_core.InputSignal<string>;
1028
+ /**
1029
+ * Color to use for component background.
1030
+ * @defaultValue 'base-0'
1031
+ */
1032
+ readonly colorVariant: _angular_core.InputSignal<BackgroundColorVariant>;
1033
+ /**
1034
+ * Options used to render chat message markdown.
1035
+ * @defaultValue
1036
+ * ```
1037
+ * makeSiMarkdownOptions()
1038
+ * ```
1039
+ */
1040
+ readonly markdownOptions: _angular_core.InputSignal<SiMarkdownOptions>;
1041
+ /**
1042
+ * The greeting text for the welcome screen
1043
+ * @defaultValue
1044
+ * ```
1045
+ * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_GREETING:Hello,`)
1046
+ * ```
1047
+ */
1048
+ readonly greeting: _angular_core.InputSignal<TranslatableString$1>;
1049
+ /**
1050
+ * The welcome message text for the welcome screen
1051
+ * @defaultValue
1052
+ * ```
1053
+ * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_MESSAGE:how can I help you today?`)
1054
+ * ```
1055
+ */
1056
+ readonly welcomeMessage: _angular_core.InputSignal<TranslatableString$1>;
1057
+ /**
1058
+ * The list of prompt suggestions for the welcome screen, either as an array or a record mapping category labels to suggestion arrays
1059
+ * @defaultValue []
1060
+ */
1061
+ readonly promptSuggestions: _angular_core.InputSignal<PromptSuggestion[] | Record<string, PromptSuggestion[]>>;
1062
+ /**
1063
+ * More actions button aria label
1064
+ *
1065
+ * @defaultValue
1066
+ * ```
1067
+ * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.SECONDARY_ACTIONS:More actions`)
1068
+ * ```
1069
+ */
1070
+ readonly secondaryActionsLabel: _angular_core.InputSignal<TranslatableString$1>;
1071
+ /**
1072
+ * Status notification severity
1073
+ */
1074
+ readonly statusSeverity: _angular_core.InputSignal<"info" | "success" | "warning" | "danger" | "caution" | "critical" | undefined>;
1075
+ /**
1076
+ * Status notification heading
1077
+ */
1078
+ readonly statusHeading: _angular_core.InputSignal<string | undefined>;
1079
+ /**
1080
+ * Status notification message
1081
+ */
1082
+ readonly statusMessage: _angular_core.InputSignal<string | undefined>;
1083
+ /**
1084
+ * Status notification action link
1085
+ */
1086
+ readonly statusAction: _angular_core.InputSignal<{
1087
+ title: string;
1088
+ href: string;
1089
+ target?: string;
1090
+ } | undefined>;
1091
+ /**
1092
+ * Label for activity input arguments.
1093
+ * @defaultValue
1094
+ * ```
1095
+ * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.INPUT_ARGUMENTS:Input arguments`)
1096
+ * ```
1097
+ */
1098
+ readonly activityInputArgumentsLabel: _angular_core.InputSignal<TranslatableString$1>;
1099
+ /**
1100
+ * Label for activity output.
1101
+ * @defaultValue
1102
+ * ```
1103
+ * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.OUTPUT:Output`)
1104
+ * ```
1105
+ */
1106
+ readonly activityOutputLabel: _angular_core.InputSignal<TranslatableString$1>;
1107
+ /**
1108
+ * Default name for reasoning activities.
1109
+ * @defaultValue
1110
+ * ```
1111
+ * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.REASONING:Reasoning`)
1112
+ * ```
1113
+ */
1114
+ readonly activityReasoningLabel: _angular_core.InputSignal<TranslatableString$1>;
1115
+ /**
1116
+ * Emitted when a new message is sent
1117
+ */
1118
+ readonly messageSent: _angular_core.OutputEmitterRef<{
1119
+ content: string;
1120
+ attachments: ChatInputAttachment[];
1121
+ }>;
1122
+ /**
1123
+ * Internal selected category state
1124
+ */
1125
+ protected readonly selectedCategory: _angular_core.WritableSignal<string | undefined>;
1126
+ /**
1127
+ * Computed list of categories derived from promptSuggestions
1128
+ */
1129
+ protected readonly promptCategories: Signal<{
1130
+ label: string;
1131
+ }[]>;
1132
+ /**
1133
+ * Resolved prompt suggestions based on selected category.
1134
+ */
1135
+ protected readonly resolvedPromptSuggestions: Signal<PromptSuggestion[]>;
1136
+ protected readonly isEmpty: Signal<boolean>;
1137
+ readonly inputInterruptible: Signal<boolean>;
1138
+ readonly inputSending: Signal<boolean>;
1139
+ protected readonly displayMessages: Signal<ChatMessage[]>;
1140
+ protected readonly renderedMessages: Signal<{
1141
+ message: ChatMessage;
1142
+ primaryActions: _siemens_element_ng_menu.MenuItemAction[];
1143
+ secondaryActions: _siemens_element_ng_menu.MenuItemAction[];
1144
+ }[]>;
1145
+ protected isTemplateMessage(message: ChatMessage): message is TemplateChatMessage;
1146
+ /**
1147
+ * Scrolls to the bottom of the messages container immediately.
1148
+ * This method forces a scroll even if the user has scrolled up.
1149
+ */
1150
+ scrollToBottom(): void;
1151
+ onInputSend(): void;
1152
+ /**
1153
+ * Focuses the chat input component if it exists.
1154
+ */
1155
+ focus(): void;
1156
+ protected getContentValue(content: string | Signal<string> | undefined): string;
1157
+ protected getMarkdownContent(content: string | object | Signal<string | object> | undefined): string;
1158
+ private isEmptyContent;
1159
+ protected getLoadingValue(loading: boolean | Signal<boolean> | undefined): boolean;
1160
+ private isStreamingContent;
1161
+ protected getLoadingState(messageLoading: boolean | Signal<boolean> | undefined, content: string | Signal<string> | undefined, isLatest: boolean, globalLoading?: boolean): boolean;
1162
+ protected isLatestMessage(message: ChatMessage): boolean;
1163
+ protected isLatestActivityMessage(message: ActivityChatMessage | ActivityTraceChatMessage): boolean;
1164
+ protected shouldAutoExpandTrace(message: ActivityTraceChatMessage): boolean;
1165
+ protected shouldAutoExpandActivity(message: ActivityChatMessage, active: boolean, inheritedAutoExpand: boolean): boolean;
1166
+ private hasExplicitAutoExpand;
1167
+ protected hasActivityDetails(message: ActivityChatMessage): boolean;
1168
+ protected getActivityInputs(message: ActivityChatMessage): ActivityInputPart[];
1169
+ protected hasActivityOutput(message: ActivityChatMessage): boolean;
1170
+ protected getDirectActivityDetail(message: ActivityChatMessage): string | undefined;
1171
+ private getDirectActivityDetailType;
1172
+ protected shouldShowActivityInputs(message: ActivityChatMessage): boolean;
1173
+ protected shouldShowActivityOutput(message: ActivityChatMessage): boolean;
1174
+ protected shouldAutoExpandInput(message: ActivityChatMessage, inputPart: ActivityInputPart, active: boolean, inheritedAutoExpand: boolean): boolean;
1175
+ protected shouldAutoExpandOutput(message: ActivityChatMessage, active: boolean, inheritedAutoExpand: boolean): boolean;
1176
+ protected readonly isSignal: typeof isSignal;
1177
+ protected onPromptSelected(suggestion: PromptSuggestion): void;
1178
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiAiChatComponent, never>;
1179
+ 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>;
1180
+ }
1181
+
1182
+ export { SI_CHAT_INPUT_PARENT, SiActivityMessageComponent, SiActivityMessagePartComponent, SiActivityTraceComponent, SiAiChatComponent, SiAiMessageComponent, SiAiWelcomeScreenComponent, SiAttachmentListComponent, SiChatContainerComponent, SiChatContainerInputDirective, SiChatInputComponent, SiChatInputDisclaimerDirective, SiChatMessageActionDirective, SiChatMessageActionsComponent, SiChatMessageComponent, SiUserMessageComponent };
1183
+ export type { ActivityChatMessage, ActivityDetailsDisplay, ActivityTraceChatMessage, AiChatMessage, Attachment, BaseChatMessage, ChatInputAttachment, ChatMessage, PromptCategory, PromptSuggestion, SiChatInputParent, TemplateChatMessage, UserChatMessage };